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
hfl/chinese-roberta-wwm-ext
hfl
"2022-03-01T09:13:56Z"
44,443
194
transformers
[ "transformers", "pytorch", "tf", "jax", "bert", "fill-mask", "zh", "arxiv:1906.08101", "arxiv:2004.13922", "license:apache-2.0", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
fill-mask
"2022-03-02T23:29:05Z"
--- language: - zh tags: - bert license: "apache-2.0" --- # Please use 'Bert' related functions to load this model! ## Chinese BERT with Whole Word Masking For further accelerating Chinese natural language processing, we provide **Chinese pre-trained BERT with Whole Word Masking**. **[Pre-Training with Whole Word Masking for Chinese BERT](https://arxiv.org/abs/1906.08101)** Yiming Cui, Wanxiang Che, Ting Liu, Bing Qin, Ziqing Yang, Shijin Wang, Guoping Hu This repository is developed based on:https://github.com/google-research/bert You may also interested in, - Chinese BERT series: https://github.com/ymcui/Chinese-BERT-wwm - Chinese MacBERT: https://github.com/ymcui/MacBERT - Chinese ELECTRA: https://github.com/ymcui/Chinese-ELECTRA - Chinese XLNet: https://github.com/ymcui/Chinese-XLNet - Knowledge Distillation Toolkit - TextBrewer: https://github.com/airaria/TextBrewer More resources by HFL: https://github.com/ymcui/HFL-Anthology ## Citation If you find the technical report or resource is useful, please cite the following technical report in your paper. - Primary: https://arxiv.org/abs/2004.13922 ``` @inproceedings{cui-etal-2020-revisiting, title = "Revisiting Pre-Trained Models for {C}hinese Natural Language Processing", author = "Cui, Yiming and Che, Wanxiang and Liu, Ting and Qin, Bing and Wang, Shijin and Hu, Guoping", booktitle = "Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: Findings", month = nov, year = "2020", address = "Online", publisher = "Association for Computational Linguistics", url = "https://www.aclweb.org/anthology/2020.findings-emnlp.58", pages = "657--668", } ``` - Secondary: https://arxiv.org/abs/1906.08101 ``` @article{chinese-bert-wwm, title={Pre-Training with Whole Word Masking for Chinese BERT}, author={Cui, Yiming and Che, Wanxiang and Liu, Ting and Qin, Bing and Yang, Ziqing and Wang, Shijin and Hu, Guoping}, journal={arXiv preprint arXiv:1906.08101}, year={2019} } ```
[ -0.38377925753593445, -0.789090633392334, 0.30876415967941284, 0.5061649680137634, -0.4024651050567627, -0.19995129108428955, -0.5694940686225891, -0.7172288298606873, 0.3272828757762909, 0.46404990553855896, -0.48886534571647644, -0.5350450277328491, -0.5432922840118408, 0.0014405034016817808, -0.055084049701690674, 0.8133541941642761, -0.012072347104549408, 0.21275223791599274, 0.24352532625198364, 0.10033005475997925, -0.0874452218413353, -0.7755125761032104, -0.6603118181228638, -0.43439140915870667, 0.46580833196640015, -0.02195786125957966, 0.36259913444519043, 0.5725821256637573, 0.30060532689094543, 0.351622611284256, -0.1282702386379242, 0.1939554214477539, -0.22040890157222748, -0.14256206154823303, 0.26656273007392883, -0.08015569299459457, -0.5336273908615112, 0.13699667155742645, 0.7145668864250183, 0.5962608456611633, 0.06985624879598618, -0.05284854397177696, 0.17688916623592377, 0.5425339341163635, -0.5840552449226379, 0.11008305847644806, -0.7443431615829468, 0.0360027477145195, -0.48931705951690674, 0.05118094012141228, -0.42296093702316284, -0.31674298644065857, 0.2871348261833191, -0.7547405362129211, 0.1997053176164627, 0.055355098098516464, 1.525646686553955, -0.171676903963089, -0.1069520115852356, -0.0004948830464854836, -0.4480763077735901, 0.7522416114807129, -1.219153642654419, 0.4089055359363556, 0.5599287748336792, -0.09646707028150558, -0.19925016164779663, -1.0364421606063843, -0.8761271834373474, -0.3453483283519745, -0.16255858540534973, 0.20040519535541534, 0.04093889519572258, 0.34019148349761963, 0.2422618567943573, 0.4025140106678009, -0.6668633222579956, 0.1655491292476654, -0.3002071678638458, -0.5633686184883118, 0.6993485689163208, -0.23366105556488037, 0.3583437204360962, -0.13892720639705658, -0.3844032287597656, -0.48632168769836426, -0.341706246137619, 0.23313690721988678, 0.30315348505973816, 0.28859373927116394, -0.13428010046482086, 0.1667117476463318, -0.05734071508049965, 0.6984531879425049, -0.10198984295129776, 0.02782285585999489, 0.6696022152900696, -0.4593181908130646, -0.3716602921485901, 0.05401461943984032, 1.107641339302063, -0.0269693024456501, 0.17097386717796326, 0.036223188042640686, -0.27981695532798767, -0.35483670234680176, -0.02379593998193741, -0.8054344654083252, -0.3956149220466614, 0.1121111512184143, -0.5032535791397095, -0.09005428105592728, 0.23127661645412445, -0.6425643563270569, -0.2305443435907364, -0.21975336968898773, 0.5671920776367188, -0.5609440207481384, -0.3314248025417328, 0.24746094644069672, -0.12266809493303299, 0.4697597920894623, 0.04240070655941963, -0.7484273910522461, 0.13408209383487701, 0.4538196623325348, 0.7010221481323242, 0.07274502515792847, -0.5088043212890625, -0.3477334976196289, -0.09751375764608383, -0.16363666951656342, 0.6797993779182434, -0.30022963881492615, -0.05721691623330116, 0.22894473373889923, 0.12705646455287933, -0.16355599462985992, -0.2393975704908371, 0.8449602127075195, -0.42854607105255127, 0.4797761142253876, -0.28920140862464905, -0.3851087689399719, -0.36272507905960083, 0.19586245715618134, -0.6519260406494141, 1.2076326608657837, -0.27570241689682007, -0.8446865081787109, 0.16006657481193542, -0.8327414989471436, -0.6756036281585693, -0.003061886876821518, 0.21486282348632812, -0.5672929883003235, -0.279838502407074, 0.37544941902160645, 0.37686532735824585, -0.14565879106521606, 0.24860303103923798, -0.24312303960323334, -0.3275272250175476, 0.08380858600139618, -0.3890751302242279, 1.2956912517547607, 0.25524595379829407, -0.4175455570220947, 0.27332600951194763, -0.9239198565483093, 0.07813717424869537, 0.23216411471366882, -0.2649475634098053, -0.2966104745864868, -0.02672182396054268, 0.27478912472724915, 0.2899981439113617, 0.6237807273864746, -0.7626368999481201, -0.11475697159767151, -0.6558103561401367, 0.46318134665489197, 0.7865210771560669, -0.2611338496208191, 0.22152802348136902, -0.31650927662849426, 0.24395793676376343, 0.04365852102637291, 0.0654241070151329, -0.39164406061172485, -0.5370418429374695, -0.94181227684021, -0.2605170011520386, 0.6321526765823364, 0.693259060382843, -0.8526292443275452, 0.8708716034889221, -0.23278629779815674, -0.6076128482818604, -0.7016733884811401, -0.1422535479068756, 0.5046885013580322, 0.47924795746803284, 0.5371049642562866, -0.30728405714035034, -0.8647514581680298, -0.751348614692688, -0.1602925956249237, -0.2734360992908478, -0.10819152742624283, 0.05922221019864082, 0.27157309651374817, -0.12835106253623962, 0.8161519765853882, -0.6645639538764954, -0.4894862473011017, -0.24006964266300201, 0.4668543040752411, 0.2233889400959015, 0.49299338459968567, 0.5202230215072632, -0.6531950235366821, -0.6071348190307617, -0.16517877578735352, -0.40538549423217773, -0.25363901257514954, -0.21786005795001984, -0.4291975200176239, 0.41851717233657837, 0.49379125237464905, -0.420785129070282, 0.47188493609428406, 0.35315462946891785, -0.17830504477024078, 0.751796543598175, -0.35682880878448486, -0.06792978942394257, -1.131447672843933, 0.17075954377651215, 0.17410258948802948, 0.02767602726817131, -0.8199177980422974, 0.01994653418660164, 0.04341741278767586, 0.12004433572292328, -0.4474080502986908, 0.5858718156814575, -0.7156373858451843, 0.32636240124702454, -0.18477369844913483, 0.3425101935863495, 0.09815863519906998, 0.9781854748725891, 0.3011249601840973, 0.5495474934577942, 0.5700491666793823, -0.7652493715286255, 0.15800555050373077, 0.18336927890777588, -0.40746068954467773, -0.25247520208358765, -0.771640956401825, 0.14301232993602753, 0.003964190371334553, 0.37188833951950073, -1.1603072881698608, 0.11605805158615112, 0.4978615939617157, -0.7039539217948914, 0.41586413979530334, 0.35077908635139465, -0.7423800230026245, -0.3946097791194916, -0.7646761536598206, 0.16999588906764984, 0.4956299066543579, -0.4986668825149536, 0.36426064372062683, 0.276935338973999, 0.015560049563646317, -0.6184968948364258, -0.8574284315109253, 0.1480017900466919, 0.1111384704709053, -0.7117590308189392, 0.8410050272941589, -0.3232342004776001, 0.1663816273212433, 0.02145054005086422, 0.14758722484111786, -0.38002297282218933, 0.0714549869298935, -0.17984573543071747, 0.46709322929382324, -0.3051297068595886, 0.1783170849084854, -0.11185148358345032, 0.13591881096363068, 0.06727863103151321, -0.26316049695014954, 0.6397043466567993, 0.14127522706985474, -0.17597950994968414, -0.4104156196117401, 0.19543536007404327, 0.20706462860107422, -0.420044481754303, 0.8768174052238464, 1.1451594829559326, -0.68525230884552, 0.07921598851680756, -0.672511637210846, -0.192722350358963, -0.4844779372215271, 0.5004878640174866, -0.12270310521125793, -0.8661574125289917, 0.49016639590263367, 0.43224355578422546, 0.41977831721305847, 0.695586085319519, 0.45856916904449463, -0.00810362957417965, 0.7760670185089111, 0.645020604133606, -0.3407890498638153, 0.8190581798553467, -0.07768389582633972, 0.464228093624115, -0.9936727285385132, 0.03125588968396187, -0.6457127928733826, -0.2077074646949768, -0.706752598285675, -0.2000552862882614, -0.02409592643380165, 0.08724991977214813, -0.3240014612674713, 0.5093013048171997, -0.7575478553771973, 0.20083898305892944, 0.7268712520599365, 0.10918387025594711, 0.10735829174518585, 0.09589514136314392, -0.4104200005531311, -0.07338003069162369, -0.4203610122203827, -0.39856866002082825, 0.9301796555519104, 0.35829928517341614, 0.29314085841178894, -0.17686055600643158, 0.7560409307479858, 0.07473678141832352, 0.1862867772579193, -0.5836665034294128, 0.7379993200302124, -0.3807833790779114, -0.6368154287338257, -0.5370501279830933, -0.28846654295921326, -1.160238265991211, 0.5039016604423523, -0.3230782747268677, -0.8147342801094055, 0.10921541601419449, -0.061542659997940063, -0.3613322377204895, 0.534043550491333, -0.72904372215271, 0.597957193851471, -0.19191598892211914, -0.13397100567817688, 0.09471955895423889, -0.7339332699775696, 0.5069534778594971, -0.08807753026485443, 0.12097136676311493, 0.0010812226682901382, 0.22067241370677948, 1.0769752264022827, -0.43423521518707275, 0.9619800448417664, -0.26344189047813416, -0.27438023686408997, 0.3250979781150818, -0.4560886323451996, 0.39552822709083557, -0.278205007314682, -0.09750610589981079, 0.5384054183959961, -0.0966825783252716, -0.2952759861946106, -0.234553724527359, 0.5477989912033081, -0.8995992541313171, -0.6239977478981018, -0.7523730397224426, -0.305757611989975, 0.028134092688560486, 0.5162290334701538, 0.6205663084983826, 0.22404566407203674, 0.015353352762758732, 0.11633486300706863, 0.7204288244247437, -0.5245360136032104, 0.7512452602386475, 0.6075620055198669, -0.10750965029001236, -0.5069406032562256, 0.8926061391830444, 0.3894372880458832, -0.0008539321133866906, 0.6665146350860596, 0.20321263372898102, -0.2142825722694397, -0.6245520710945129, -0.1602581888437271, 0.4229820668697357, -0.46732330322265625, -0.04127642884850502, -0.7795605063438416, -0.8358032703399658, -0.7898736000061035, 0.16773353517055511, -0.06507985293865204, -0.35940176248550415, -0.5864642262458801, 0.036457229405641556, 0.16044452786445618, 0.28651076555252075, -0.25438499450683594, 0.28564244508743286, -0.8523856997489929, 0.40984562039375305, 0.26939958333969116, 0.34477975964546204, 0.3026720881462097, -0.7604320645332336, -0.6051103472709656, 0.3578357696533203, -0.49144884943962097, -0.6403185725212097, 0.6154884099960327, 0.21608056128025055, 0.8509047031402588, 0.35442879796028137, 0.32234612107276917, 0.6784537434577942, -0.5552476048469543, 1.1818088293075562, 0.25118446350097656, -1.0180959701538086, 0.423425555229187, -0.096387580037117, 0.3591335713863373, 0.39708197116851807, 0.16689364612102509, -0.6589066982269287, -0.24364827573299408, -0.5438449382781982, -1.075591802597046, 0.9712534546852112, 0.2329973429441452, 0.1984073519706726, -0.004751912783831358, 0.10827256739139557, -0.08696337789297104, -0.049894120544195175, -1.2588527202606201, -0.5206178426742554, -0.34638214111328125, -0.07429782301187515, 0.06718233227729797, -0.4704563617706299, 0.20710650086402893, -0.453852117061615, 1.124101161956787, 0.22486163675785065, 0.567716121673584, 0.5416198372840881, -0.2362002283334732, 0.024411140009760857, 0.2685638666152954, 0.8419291377067566, 0.3937024176120758, -0.3857952058315277, -0.05786881595849991, 0.1430249661207199, -0.8139095306396484, -0.2997475266456604, 0.5089201331138611, -0.05346085876226425, 0.30732429027557373, 0.6122168302536011, 0.9041956067085266, 0.1334187388420105, -0.451815128326416, 0.5465044379234314, -0.13885128498077393, -0.5577884316444397, -0.4276737868785858, -0.12982213497161865, 0.002121422905474901, -0.13267286121845245, 0.5574010610580444, -0.21255478262901306, 0.027303287759423256, -0.3279971778392792, 0.016322387382388115, 0.2640899121761322, -0.5269011855125427, -0.36045143008232117, 0.5788255929946899, 0.18838365375995636, -0.18641945719718933, 0.6453717947006226, -0.4242944121360779, -0.909380316734314, 0.5499266386032104, 0.5799846649169922, 1.313129186630249, -0.10984202474355698, -0.07045955210924149, 0.6812595129013062, 0.5833970308303833, 0.0296394694596529, 0.2558387517929077, -0.12514682114124298, -1.020371437072754, -0.5837475061416626, -0.6160656809806824, -0.1809476912021637, 0.5083063244819641, -0.4318336248397827, 0.22600582242012024, -0.44219812750816345, -0.06845671683549881, -0.011962124146521091, 0.29644274711608887, -0.5037792921066284, 0.19024474918842316, 0.48398110270500183, 0.9859088063240051, -0.5589510202407837, 1.2749419212341309, 0.8722313046455383, -0.5021615624427795, -0.7959580421447754, 0.3241085708141327, -0.3252757787704468, -0.7106794118881226, 0.740493893623352, 0.18775318562984467, -0.10660625994205475, -0.14674857258796692, -0.7430599331855774, -0.7519515156745911, 1.0658172369003296, 0.14873895049095154, -0.45990872383117676, -0.03885717689990997, -0.03741804510354996, 0.6259092688560486, -0.06918875873088837, 0.29541125893592834, 0.3559989035129547, 0.6709876656532288, -0.05883529409766197, -1.0260533094406128, 0.039696648716926575, -0.4785917103290558, 0.1032792404294014, -0.05315655469894409, -0.7715924978256226, 1.0090928077697754, 0.0020335130393505096, -0.38324201107025146, 0.03914628177881241, 0.8455311059951782, 0.305046409368515, 0.35074901580810547, 0.5716555118560791, 0.6137576103210449, 0.7779275178909302, -0.11595950275659561, 0.5319623947143555, -0.2930164933204651, 0.15315133333206177, 1.0439622402191162, -0.11307168751955032, 0.7748686671257019, 0.13642479479312897, -0.4088504910469055, 0.6798665523529053, 0.817376971244812, 0.04925568029284477, 0.5128710269927979, 0.2807430922985077, -0.11475519835948944, -0.08944141119718552, -0.12791797518730164, -0.666628360748291, 0.2532981336116791, 0.1615370810031891, -0.28098011016845703, 0.016959503293037415, -0.08322373777627945, 0.3831423223018646, 0.05606672540307045, -0.1265694797039032, 0.6381465196609497, 0.10277289152145386, -0.5481290817260742, 0.7401121258735657, 0.25296178460121155, 1.30325448513031, -0.9427145719528198, -0.07838273048400879, -0.12006688117980957, -0.21068699657917023, -0.11947385221719742, -0.5543906092643738, -0.03165294602513313, -0.13908006250858307, -0.21116092801094055, -0.16892144083976746, 0.7767008543014526, -0.5421673655509949, -0.5023608803749084, 0.5073637366294861, 0.16024497151374817, 0.14240866899490356, -0.004465967882424593, -0.674981951713562, -0.07171490043401718, 0.30184826254844666, -0.5127872228622437, 0.39707425236701965, 0.6239739060401917, 0.04473559930920601, 0.38961461186408997, 1.003079891204834, 0.336224764585495, 0.1971140056848526, 0.1781359314918518, 0.8233977556228638, -0.7719724178314209, -0.5556900501251221, -0.8591043949127197, 0.46144965291023254, -0.2524747848510742, -0.3853222131729126, 0.7033179402351379, 0.3481161296367645, 1.0058057308197021, 0.026798570528626442, 0.857690691947937, -0.0898759514093399, 0.47839677333831787, -0.4905121922492981, 1.1022777557373047, -0.5373116731643677, 0.1936950981616974, -0.4563869535923004, -0.864667534828186, -0.46752187609672546, 0.6588020324707031, -0.15379473567008972, 0.08177588135004044, 0.7184463143348694, 0.6403261423110962, 0.3620729446411133, -0.11717495322227478, 0.36990806460380554, 0.42216333746910095, 0.4341059625148773, 0.4669986963272095, 0.3618257939815521, -0.6891557574272156, 0.66427081823349, -0.4963197708129883, -0.22393861413002014, -0.12622109055519104, -1.0587962865829468, -0.8122475147247314, -0.9102686047554016, -0.3514500856399536, -0.1463395059108734, -0.12225548923015594, 0.8950678110122681, 0.7131980061531067, -0.9519986510276794, -0.19282880425453186, 0.10636045038700104, 0.15900759398937225, -0.36127057671546936, -0.2653261721134186, 0.7687564492225647, -0.5182813405990601, -0.7490379810333252, 0.05559014156460762, 0.011748895980417728, 0.012174253351986408, -0.1496388018131256, -0.02581685222685337, -0.7499203085899353, 0.15890128910541534, 0.6107111573219299, 0.35399723052978516, -0.8080666661262512, -0.13642653822898865, 0.018289688974618912, -0.2248261719942093, 0.04807927832007408, 0.5659750699996948, -0.6848810911178589, 0.4881937503814697, 0.6445454955101013, 0.5815617442131042, 0.4301997721195221, -0.3028831481933594, 0.38917139172554016, -0.7755951285362244, 0.15930843353271484, 0.05585000291466713, 0.4501760005950928, 0.28815510869026184, -0.4214347302913666, 0.43340420722961426, 0.21329285204410553, -0.5112373232841492, -0.8280330300331116, -0.16862718760967255, -0.9729925394058228, -0.3739778399467468, 0.956290602684021, -0.35823336243629456, -0.19857850670814514, -0.06396086513996124, -0.4102349579334259, 0.6911805868148804, -0.43533334136009216, 0.7151243090629578, 1.1081429719924927, 0.18259267508983612, -0.22077862918376923, -0.3115576207637787, 0.47344303131103516, 0.3713645935058594, -0.6454087495803833, 0.07519205659627914, 0.17903222143650055, -0.019045980647206306, 0.30126214027404785, 0.7062584161758423, -0.04279366880655289, 0.04542070999741554, -0.23589175939559937, 0.5820930004119873, -0.16621586680412292, 0.03525634482502937, -0.29538512229919434, -0.208770751953125, -0.10552626848220825, -0.5110374689102173 ]
AdamCodd/distilbert-base-uncased-finetuned-sentiment-amazon
AdamCodd
"2023-11-10T17:35:29Z"
44,368
1
transformers
[ "transformers", "pytorch", "onnx", "distilbert", "text-classification", "dataset:amazon_polarity", "base_model:distilbert-base-uncased", "license:apache-2.0", "model-index", "endpoints_compatible", "region:us" ]
text-classification
"2023-10-06T23:02:11Z"
--- license: apache-2.0 datasets: - amazon_polarity base_model: distilbert-base-uncased model-index: - name: distilbert-base-uncased-finetuned-sentiment-amazon results: - task: type: text-classification name: Text Classification dataset: name: amazon_polarity type: sentiment args: default metrics: - type: accuracy value: 0.961 name: Accuracy - type: loss value: 0.116 name: Loss - type: f1 value: 0.960 name: F1 - task: type: text-classification name: Text Classification dataset: name: amazon_polarity type: amazon_polarity config: amazon_polarity split: test metrics: - type: accuracy value: 0.94112 name: Accuracy verified: true verifyToken: >- eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiMzlmMzdhYjNmN2U0NDBkM2U5ZDgwNzc3YjE1OGE4MWUxMDY1N2U0ODc0YzllODE5ODIyMzdkOWFhNzVjYmI5MyIsInZlcnNpb24iOjF9.3nlcLa4IpPQtklp7_U9XzC__Q_JVf_cWs6JVVII8trhX5zg_q9HEyQOQs4sRf6O-lIJg8zb3mgobZDJShuSJAQ - type: precision value: 0.9321570625232675 name: Precision verified: true verifyToken: >- eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiZjI2MDY4NGNlYjhjMGMxODBiNTc2ZjM5YzY1NjkxNTU4MDA2ZDIyY2QyZjUyZmE4YWY0N2Y1ODU5YTc2ZDM0NiIsInZlcnNpb24iOjF9.egEikTa2UyHV6SAGkHJKaa8FRwGHoZmJRCmqUQaJqeF5yxkz2V-WeCHoWDrCXsHCbXEs8UhLlyo7Lr83BPfkBg - type: recall value: 0.95149 name: Recall verified: true verifyToken: >- eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiM2E3M2Y3MDU4ZTM2YjdlZjQ0NTY3NGYwMmQ3NTk5ZmZkZWUwZWZiZDZjNjk2ZWE5MmY4MmZiM2FmN2U2M2QyNCIsInZlcnNpb24iOjF9.4VNbiWRmSee4cxuIZ5m7bN30i4BpK7xtHQ1BF8AuFIXkWQgzOmGdX35bLhLGWW8KL3ClA4RDPVBKYCIrw0YUBw - type: auc value: 0.9849019044624999 name: AUC verified: true verifyToken: >- eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiYTkwODk2ZTUwOTViNjBhYTU0ODk1MDA3MDY1NDkyZDc2YmRlNTQzNDE3YmE3YTVkYjNhN2JmMDAxZWQ0NjUxZSIsInZlcnNpb24iOjF9.YEr6OhqOL7QnqYqjUTQFMdkgU_uS1-vVnkJtn_-1UwSoX754UV_bL9S9KSH3DX4m5QFoRXdZxfeOocm1JbzaCA - type: f1 value: 0.9417243188138998 name: F1 verified: true verifyToken: >- eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiMzIyMmViNTQ3ZGU0M2I5ZmRjOGI1OWMwZGEwYmE5OGU5YTZlZTkzZjdkOTQ4YzJmOTc2MDliMDY4NDQ1NGRlNyIsInZlcnNpb24iOjF9.p05MGHTfHTAzp4u-qfiIn6Zmh5c3TW_uwjXWgbb982pL_oCILQb6jFXqhPpWXL321fPye7qaUVbGhcTJd8sdCA - type: loss value: 0.16342754662036896 name: loss verified: true verifyToken: >- eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiNzgxMDc4M2IxYjhkNjRhZmYyNzY1MTNkNzhmYjk2NmU1NjFiOTk1NDIzNzI1ZGU3MDYyYjQ2YmQ1NTI2N2NhMyIsInZlcnNpb24iOjF9.Zuf0nzn8XdvwRChKtE9CwJ0pgpc6Zey6oTR3jRiSkvNY2sNbo2bvAgFimGzgGYkDvRvYkTCXzCyxdb27l3QnAg --- # distilbert-sentiment This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on a subset of the [amazon-polarity dataset](https://huggingface.co/datasets/amazon_polarity). <b>[Update 10/10/23]</b> The model has been retrained on a larger part of the dataset with an improvement on the loss, f1 score and accuracy. It achieves the following results on the evaluation set: - Loss: 0.116 - Accuracy: 0.961 - F1_score: 0.960 ## Model description This sentiment classifier has been trained on 360_000 samples for the training set, 40_000 samples for the validation set and 40_000 samples for the test set. ## Intended uses & limitations ```python from transformers import pipeline # Create the pipeline sentiment_classifier = pipeline('text-classification', model='AdamCodd/distilbert-base-uncased-finetuned-sentiment-amazon') # Now you can use the pipeline to get the sentiment result = sentiment_classifier("This product doesn't fit me at all.") print(result) #[{'label': 'negative', 'score': 0.9994848966598511}] ``` ## Training and evaluation data More information needed ## Training procedure ### Training hyperparameters The following hyperparameters were used during training: - learning_rate: 3e-05 - train_batch_size: 32 - eval_batch_size: 32 - seed: 1270 - optimizer: AdamW with betas=(0.9,0.999) and epsilon=1e-08 - lr_scheduler_type: linear - lr_scheduler_warmup_steps: 150 - num_epochs: 2 - weight_decay: 0.01 ### Training results (Previous results before retraining from the model evaluator) | key | value | | --- | ----- | | eval_accuracy | 0.94112 | | eval_auc | 0.9849 | | eval_f1_score | 0.9417 | | eval_precision | 0.9321 | | eval_recall | 0.95149 | ### Framework versions - Transformers 4.34.0 - Pytorch lightning 2.0.9 - Tokenizers 0.14.0 If you want to support me, you can [here](https://ko-fi.com/adamcodd).
[ -0.4167814552783966, -0.5043578147888184, 0.190647155046463, 0.15599793195724487, -0.31869903206825256, 0.06715966016054153, -0.0687953308224678, 0.06487894058227539, 0.19889919459819794, 0.26452434062957764, -0.8006978034973145, -0.7778103351593018, -0.780164361000061, -0.10189253091812134, -0.23888306319713593, 1.531631350517273, 0.16094934940338135, 0.2195613533258438, -0.12222075462341309, -0.2432263195514679, -0.1466299444437027, -0.7622448801994324, -0.554843544960022, -0.49923956394195557, 0.5584143996238708, 0.3527333438396454, 0.7280185222625732, 0.27844661474227905, 0.6456460356712341, 0.25225579738616943, -0.4192001223564148, -0.3290095031261444, -0.3551695644855499, -0.07341265678405762, 0.09068836271762848, -0.624899685382843, -0.7768905162811279, 0.2547540068626404, 0.49372175335884094, 0.6854418516159058, -0.2859073877334595, 0.5257812738418579, 0.24972809851169586, 0.7392427325248718, -0.604449450969696, 0.3182012736797333, -0.6001434326171875, 0.35715579986572266, 0.09877149760723114, -0.033097248524427414, -0.30954602360725403, -0.08197207003831863, 0.26790252327919006, -0.4762870669364929, 0.6702448129653931, 0.19935645163059235, 0.9162624478340149, 0.5462715029716492, -0.29618552327156067, 0.007846739143133163, -0.599660336971283, 1.118355631828308, -0.9545263648033142, 0.3623018264770508, 0.26903387904167175, 0.20310810208320618, 0.07283278554677963, -0.7229428291320801, -0.5790140628814697, -0.02369404211640358, -0.026346880942583084, 0.37810948491096497, -0.21315033733844757, 0.11462453752756119, 0.6388159394264221, 0.7031826376914978, -0.48162540793418884, -0.06225956603884697, -0.48980364203453064, -0.15701717138290405, 0.6606208086013794, 0.23096232116222382, -0.43351227045059204, -0.2750089764595032, -0.4173857569694519, -0.27173545956611633, -0.2268984019756317, 0.4040124714374542, 0.529228150844574, 0.3226146996021271, -0.11474010348320007, 0.5912430882453918, -0.4601956605911255, 0.5885476469993591, 0.23745320737361908, -0.13732421398162842, 0.9106371998786926, 0.10858206450939178, -0.48643890023231506, -0.00024146730720531195, 0.9874856472015381, 0.6629095673561096, 0.01336281094700098, 0.1703662872314453, -0.47924017906188965, 0.005153029225766659, 0.28812575340270996, -0.8852614760398865, -0.32321393489837646, 0.4722808301448822, -0.5018793940544128, -0.7283200621604919, 0.16323456168174744, -0.599503755569458, -0.09412916004657745, -0.4466138184070587, 0.35431408882141113, -0.30873963236808777, -0.11533055454492569, 0.30574649572372437, -0.37560033798217773, 0.22991140186786652, 0.2020193189382553, -0.7800495624542236, 0.17238569259643555, 0.6799290776252747, 0.7119883894920349, 0.26716309785842896, -0.4326065480709076, -0.3353949189186096, -0.5514835119247437, -0.1594979166984558, 0.5103403925895691, -0.055441148579120636, -0.15240302681922913, -0.07928398251533508, 0.3118745684623718, 0.14229397475719452, -0.530129611492157, 0.8687938451766968, -0.4254361391067505, 0.4324708878993988, -0.19851115345954895, -0.6079674959182739, -0.29553985595703125, 0.478721022605896, -0.5132094025611877, 1.1120235919952393, 0.3849429488182068, -0.8880916833877563, 0.6367208957672119, -0.41204237937927246, -0.22133520245552063, -0.1528409719467163, 0.22320812940597534, -0.8685727119445801, 0.09710656106472015, 0.019473958760499954, 0.5739190578460693, -0.3034680187702179, 0.2007462978363037, -0.73753821849823, -0.3713466227054596, 0.3029276430606842, -0.46104127168655396, 1.1515460014343262, 0.06319447606801987, -0.43060338497161865, -0.06983279436826706, -1.0342001914978027, 0.13641750812530518, 0.09400582313537598, -0.48058080673217773, -0.0003490328090265393, -0.15611323714256287, 0.2434869259595871, 0.23601007461547852, 0.316849023103714, -0.6916886568069458, 0.1716122180223465, -0.4330037534236908, 0.5319045782089233, 0.6864948868751526, -0.10372751951217651, 0.2224183976650238, -0.34444281458854675, 0.5543215274810791, 0.35783645510673523, 0.49635905027389526, 0.31290239095687866, -0.4136488139629364, -1.036961555480957, -0.15451116859912872, 0.345355361700058, 0.5192986726760864, -0.23720546066761017, 1.0780303478240967, -0.10093799978494644, -0.645104706287384, -0.6565014123916626, 0.2588791251182556, 0.32269087433815, 0.8473239541053772, 0.48738765716552734, -0.26626479625701904, -0.5900675654411316, -0.9379428625106812, 0.07238288223743439, -0.22781497240066528, -0.08814474195241928, 0.07040172815322876, 0.5977835059165955, -0.3847886323928833, 0.8823978304862976, -0.6417802572250366, -0.30220091342926025, -0.16874951124191284, 0.3401459753513336, 0.7510219812393188, 0.4358104467391968, 0.6043999791145325, -0.48615923523902893, -0.5239032506942749, -0.25685781240463257, -0.7467501163482666, 0.12238899618387222, 0.20811298489570618, -0.10619261860847473, 0.12631310522556305, 0.23967361450195312, -0.5969626903533936, 0.40609535574913025, 0.5448032021522522, -0.2700178325176239, 0.6243966817855835, 0.028349846601486206, -0.0996478796005249, -1.195468783378601, 0.03882359340786934, 0.2921588718891144, -0.18689560890197754, -0.1907627284526825, -0.11444927752017975, -0.06631919741630554, -0.08920907974243164, -0.6056100130081177, 0.1634342521429062, -0.1003580391407013, 0.12125538289546967, -0.2071252018213272, -0.25076359510421753, 0.3912372291088104, 0.7689816951751709, -0.006444970145821571, 0.48422035574913025, 0.8160914182662964, -0.371897429227829, 0.6950290203094482, 0.39565926790237427, -0.3186655342578888, 0.6208329200744629, -1.0304628610610962, 0.062277570366859436, -0.18788693845272064, 0.31095096468925476, -0.9252234697341919, 0.003278785850852728, 0.40624237060546875, -0.4229498505592346, 0.18710555136203766, -0.43971192836761475, -0.3513198792934418, -0.5225099325180054, -0.4694055914878845, 0.1840895265340805, 0.7388789653778076, -0.4574410617351532, 0.3338439166545868, 0.049677979201078415, 0.047076266258955, -1.0018447637557983, -0.8462246060371399, -0.3326725661754608, -0.3949086666107178, -0.3363942503929138, 0.1418967992067337, -0.09818819910287857, -0.06442786008119583, -0.11759503930807114, -0.09399306774139404, -0.016884764656424522, 0.009000277146697044, 0.3458898961544037, 0.40992361307144165, -0.19886504113674164, 0.05420443415641785, 0.11249515414237976, -0.30994343757629395, 0.4263673424720764, -0.21042242646217346, 0.5641381144523621, -0.3826163411140442, -0.19372104108333588, -0.6885272264480591, -0.06275814771652222, 0.6730363965034485, 0.015726322308182716, 0.9808468222618103, 0.6799928545951843, -0.30699482560157776, -0.1510489583015442, -0.3110388219356537, -0.32960376143455505, -0.4585866332054138, 0.37278106808662415, -0.21327820420265198, -0.470700204372406, 0.5913054347038269, 0.07663137465715408, 0.11499884724617004, 0.7933825254440308, 0.4475821554660797, -0.2602457106113434, 1.21942138671875, 0.32434606552124023, -0.3007386326789856, 0.3766830861568451, -0.8531293869018555, 0.16160358488559723, -1.0361757278442383, -0.2020275592803955, -0.29495903849601746, -0.5872082710266113, -0.5831207633018494, -0.021626917645335197, 0.14787530899047852, 0.3145228326320648, -0.6305928230285645, 0.3318469524383545, -0.7021012306213379, 0.22737210988998413, 0.7720485329627991, 0.37039175629615784, 0.09147126227617264, 0.03313521668314934, -0.0930667594075203, -0.06682277470827103, -0.625731885433197, -0.46228790283203125, 1.448947548866272, 0.5895124673843384, 0.867080569267273, -0.2398914247751236, 0.654288113117218, 0.24219700694084167, 0.17328870296478271, -1.0844463109970093, 0.23398509621620178, -0.11491122096776962, -0.7708009481430054, -0.043847471475601196, -0.3560863137245178, -0.6184529066085815, 0.12372894585132599, -0.34139513969421387, -0.34505030512809753, 0.20261098444461823, 0.2754054069519043, -0.4977911710739136, 0.18583621084690094, -0.6384204030036926, 1.1051058769226074, -0.42209091782569885, -0.27133819460868835, -0.09640864282846451, -0.6553685665130615, -0.08650947362184525, 0.07135060429573059, -0.16496551036834717, -0.24844393134117126, 0.26552602648735046, 0.7967573404312134, -0.6131641864776611, 0.920454740524292, -0.42745405435562134, 0.18651513755321503, 0.3732264041900635, -0.3012654781341553, 0.2928885817527771, 0.20944397151470184, -0.30145931243896484, 0.5276120901107788, -0.08665166050195694, -0.5550065040588379, -0.5635296702384949, 0.5979562997817993, -1.145257592201233, -0.3911885917186737, -0.794339120388031, -0.3582318127155304, -0.10930806398391724, 0.15506422519683838, 0.6049461960792542, 0.5100923776626587, -0.2244914472103119, 0.5041424632072449, 0.6232068538665771, 0.00562404515221715, 0.23247544467449188, 0.22806721925735474, -0.17266106605529785, -0.5344838500022888, 0.7208917737007141, -0.09571053832769394, 0.18095993995666504, 0.252464234828949, 0.32839474081993103, -0.5426554083824158, -0.36486145853996277, -0.48465538024902344, 0.09071552008390427, -0.7510749697685242, -0.4563699960708618, -0.5566784739494324, -0.3869994878768921, -0.4585722088813782, -0.06351931393146515, -0.5024431347846985, -0.44969743490219116, -0.4698769450187683, -0.35204601287841797, 0.671977162361145, 0.43333446979522705, 0.14587116241455078, 0.5719040632247925, -0.6057447195053101, -0.13461589813232422, 0.1780950278043747, 0.27489131689071655, -0.15020626783370972, -0.8490042686462402, -0.18966063857078552, 0.36838772892951965, -0.6886089444160461, -0.6749043464660645, 0.47319790720939636, 0.18297025561332703, 0.3560446500778198, 0.5592607259750366, 0.17022107541561127, 0.5059128403663635, -0.14094017446041107, 0.6913096904754639, 0.37119314074516296, -0.8271414637565613, 0.6386885046958923, -0.2774842083454132, 0.10168682783842087, 0.6966471076011658, 0.6037092804908752, -0.24975581467151642, -0.22882772982120514, -0.9933417439460754, -0.8942828178405762, 0.803501307964325, 0.12701213359832764, 0.02376045472919941, 0.2236681878566742, 0.35434287786483765, 0.1178027093410492, 0.59914630651474, -0.9052667021751404, -0.4398646652698517, -0.49535927176475525, -0.3669707477092743, -0.32587844133377075, -0.19070452451705933, -0.26414456963539124, -0.7092055678367615, 0.8951943516731262, -0.16823796927928925, 0.18851587176322937, 0.14460408687591553, 0.19309915602207184, -0.016378136351704597, 0.1615310162305832, -0.05737686902284622, 0.39983701705932617, -0.7035670280456543, -0.07848531007766724, 0.2026064544916153, -0.4026311933994293, 0.10544516891241074, 0.2002519965171814, -0.15964721143245697, 0.042685069143772125, 0.15626949071884155, 1.0802690982818604, -0.03469347208738327, -0.31122905015945435, 0.6758295893669128, -0.11137422174215317, -0.45899251103401184, -0.7195796966552734, 0.006790585350245237, -0.0993802547454834, 0.28330332040786743, 0.20980370044708252, 0.42485493421554565, 0.3137349784374237, -0.46320050954818726, 0.0490562841296196, 0.43361198902130127, -0.6200608611106873, -0.3732379078865051, 0.6546794176101685, 0.16522802412509918, -0.21169662475585938, 1.0090748071670532, -0.36306557059288025, -0.6833515167236328, 0.659064769744873, 0.3297254741191864, 0.9648910760879517, 0.20602017641067505, 0.28334712982177734, 0.6586502194404602, 0.07498709112405777, -0.15788300335407257, 0.32656237483024597, 0.09108872711658478, -0.7681822180747986, -0.15279452502727509, -0.9087041616439819, -0.48108524084091187, 0.2547999918460846, -1.130686640739441, 0.5344376564025879, -0.7927327156066895, -0.5418488383293152, 0.14801982045173645, 0.19457177817821503, -0.8926917910575867, 0.5736675262451172, 0.0008606172050349414, 0.7584887742996216, -1.0352061986923218, 0.582699179649353, 0.8958030939102173, -0.589414119720459, -0.8852583765983582, -0.16561375558376312, -0.07621657848358154, -0.6945707201957703, 0.5159878134727478, 0.26986002922058105, 0.10654912889003754, 0.0022686151787638664, -0.5130268931388855, -0.6201706528663635, 1.1687369346618652, 0.23172298073768616, -0.744547426700592, 0.25020653009414673, 0.3048931360244751, 0.759922444820404, -0.3115820288658142, 0.46634867787361145, 0.4293142855167389, 0.07753428816795349, 0.08069371432065964, -0.6215310096740723, -0.08366546034812927, -0.36802878975868225, -0.23461714386940002, 0.11277522146701813, -0.9112690091133118, 1.1683778762817383, 0.0019094927702099085, 0.34876179695129395, -0.12568973004817963, 0.4471697211265564, 0.27102726697921753, 0.4512035548686981, 0.6271701455116272, 1.1309677362442017, 0.6530491709709167, -0.19631288945674896, 0.8671480417251587, -0.4520065188407898, 1.0365402698516846, 0.8036706447601318, -0.15154875814914703, 0.8777148127555847, 0.49618586897850037, -0.4254646301269531, 0.74125736951828, 0.7040768265724182, -0.16039535403251648, 0.5766787528991699, 0.0644451454281807, -0.216458261013031, -0.29481083154678345, 0.0877750962972641, -0.4488726258277893, 0.3698178827762604, -0.014109062030911446, -0.6370692253112793, 0.027890900149941444, -0.16855153441429138, -0.06723267585039139, -0.3609461486339569, -0.15811708569526672, 0.5103805661201477, 0.060332562774419785, -0.45567724108695984, 0.7824905514717102, -0.10428312420845032, 0.8170946836471558, -0.3498201072216034, 0.1494406759738922, -0.12287865579128265, 0.6696198582649231, -0.4079248905181885, -0.7813491821289062, 0.2740960717201233, -0.021910762414336205, -0.41538938879966736, -0.13798946142196655, 0.3697482645511627, -0.21362581849098206, -0.9850239157676697, 0.26057398319244385, 0.32277894020080566, -0.00741823622956872, -0.2513074278831482, -1.1367039680480957, -0.07261697202920914, 0.10867433249950409, -0.523379921913147, 0.1309855878353119, 0.4389807879924774, 0.4110910892486572, 0.5106337070465088, 0.673466145992279, -0.08722059428691864, -0.07810518145561218, 0.2190721482038498, 0.9423009157180786, -0.5898477435112, -0.39512208104133606, -0.7235618829727173, 0.7207744121551514, -0.14204661548137665, -0.8486857414245605, 0.5647084712982178, 0.780758261680603, 1.0527037382125854, -0.19581782817840576, 0.8318490386009216, -0.1600974202156067, 0.5846419930458069, -0.2398155927658081, 0.6560415625572205, -0.7201284170150757, 0.017735686153173447, -0.23883986473083496, -1.0438272953033447, -0.004714858252555132, 0.9090234637260437, -0.26791977882385254, 0.047979097813367844, 0.6122010350227356, 0.7287358045578003, -0.2181147336959839, 0.0787297859787941, -0.05725683644413948, 0.14258694648742676, 0.11535529792308807, 0.4433205723762512, 0.7949532866477966, -0.9342660307884216, 0.30634307861328125, -0.8424249887466431, -0.4112749397754669, -0.15364424884319305, -0.7749997973442078, -0.9446418285369873, -0.41423606872558594, -0.5748553276062012, -0.6210059523582458, -0.16707919538021088, 1.0000663995742798, 0.7327261567115784, -0.8826290965080261, -0.17518167197704315, -0.2968255579471588, -0.2763868570327759, -0.3755875825881958, -0.31472522020339966, 0.1589173972606659, -0.27289363741874695, -0.8725853562355042, -0.1745358407497406, -0.26680976152420044, 0.05247819796204567, -0.3574521839618683, -0.11181921511888504, 0.13091063499450684, -0.36751070618629456, 0.5072354078292847, 0.05241350457072258, -0.517150342464447, -0.3170820474624634, 0.2357608675956726, 0.0430009625852108, 0.14669160544872284, 0.4109061658382416, -0.6696321964263916, 0.13651558756828308, 0.4578225612640381, 0.33279645442962646, 0.5051048994064331, 0.043643154203891754, 0.3318585753440857, -0.8412556648254395, 0.41236063838005066, 0.4521903395652771, 0.7002590298652649, 0.4147835671901703, -0.4140005111694336, 0.3037864863872528, 0.46800729632377625, -0.7690334320068359, -0.6344633102416992, 0.008042266592383385, -1.2447094917297363, 0.057484548538923264, 1.1135408878326416, -0.16200217604637146, -0.3263908326625824, 0.23635582625865936, -0.312454491853714, 0.30691230297088623, -0.5316131711006165, 0.9615055322647095, 0.7993067502975464, -0.04009807109832764, 0.02905406430363655, -0.27909502387046814, 0.3419828712940216, 0.5835914611816406, -0.3341389000415802, 0.005200171377509832, 0.40761852264404297, 0.5823418498039246, 0.14051485061645508, 0.3473988175392151, 0.06155293434858322, 0.1053013876080513, 0.09295260906219482, 0.22224301099777222, 0.02703051082789898, -0.24698933959007263, -0.4065087139606476, -0.1402917057275772, 0.2476985603570938, -0.4919312000274658 ]
laion/CLIP-ViT-B-16-DataComp.XL-s13B-b90K
laion
"2023-09-29T22:41:47Z"
44,342
1
open_clip
[ "open_clip", "zero-shot-image-classification", "dataset:mlfoundations/datacomp_pools", "arxiv:2304.14108", "license:mit", "region:us" ]
zero-shot-image-classification
"2023-05-15T19:27:18Z"
--- license: mit widget: - src: >- https://huggingface.co/datasets/mishig/sample_images/resolve/main/cat-dog-music.png candidate_labels: playing music, playing sports example_title: Cat & Dog library_name: open_clip datasets: - mlfoundations/datacomp_pools pipeline_tag: zero-shot-image-classification --- # Model card for CLIP ViT-B-16 trained DataComp-1B # Table of Contents 1. [Model Details](#model-details) 2. [Uses](#uses) 3. [Training Details](#training-details) 4. [Evaluation](#evaluation) 5. [Acknowledgements](#acknowledgements) 6. [Citation](#citation) 7. [How To Get Started With the Model](#how-to-get-started-with-the-model) # Model Details ## Model Description A CLIP ViT-B/16 model trained with the DataComp-1B (https://github.com/mlfoundations/datacomp) using OpenCLIP (https://github.com/mlfoundations/open_clip). Model training done on the [stability.ai](https://stability.ai/) cluster. # Uses As per the original [OpenAI CLIP model card](https://github.com/openai/CLIP/blob/d50d76daa670286dd6cacf3bcd80b5e4823fc8e1/model-card.md), this model is intended as a research output for research communities. We hope that this model will enable researchers to better understand and explore zero-shot, arbitrary image classification. We also hope it can be used for interdisciplinary studies of the potential impact of such model. The OpenAI CLIP paper includes a discussion of potential downstream impacts to provide an example for this sort of analysis. Additionally, the DataComp paper (https://arxiv.org/abs/2304.14108) include additional discussion as it relates specifically to the training dataset. ## Direct Use Zero-shot image classification, image and text retrieval, among others. ## Downstream Use Image classification and other image task fine-tuning, linear probe image classification, image generation guiding and conditioning, among others. ## Out-of-Scope Use As per the OpenAI models, **Any** deployed use case of the model - whether commercial or not - is currently out of scope. Non-deployed use cases such as image search in a constrained environment, are also not recommended unless there is thorough in-domain testing of the model with a specific, fixed class taxonomy. This is because our safety assessment demonstrated a high need for task specific testing especially given the variability of CLIP’s performance with different class taxonomies. This makes untested and unconstrained deployment of the model in any use case currently potentially harmful. Certain use cases which would fall under the domain of surveillance and facial recognition are always out-of-scope regardless of performance of the model. This is because the use of artificial intelligence for tasks such as these can be premature currently given the lack of testing norms and checks to ensure its fair use. # Training Details ## Training Data This model was trained with the 1.4 Billion samples of the DataComp-1B dataset (https://arxiv.org/abs/2304.14108). **IMPORTANT NOTE:** The motivation behind dataset creation is to democratize research and experimentation around large-scale multi-modal model training and handling of uncurated, large-scale datasets crawled from publically available internet. Our recommendation is therefore to use the dataset for research purposes. Be aware that this large-scale dataset is uncurated. Keep in mind that the uncurated nature of the dataset means that collected links may lead to strongly discomforting and disturbing content for a human viewer. Therefore, please use the demo links with caution and at your own risk. It is possible to extract a “safe” subset by filtering out samples based on the safety tags (using a customized trained NSFW classifier that we built). While this strongly reduces the chance for encountering potentially harmful content when viewing, we cannot entirely exclude the possibility for harmful content being still present in safe mode, so that the warning holds also there. We think that providing the dataset openly to broad research and other interested communities will allow for transparent investigation of benefits that come along with training large-scale models as well as pitfalls and dangers that may stay unreported or unnoticed when working with closed large datasets that remain restricted to a small community. Providing our dataset openly, we however do not recommend using it for creating ready-to-go industrial products, as the basic research about general properties and safety of such large-scale models, which we would like to encourage with this release, is still in progress. ## Training Procedure Please see https://arxiv.org/abs/2304.14108. # Evaluation Evaluation done on 38 datasets, using the [DataComp repo](https://github.com/mlfoundations/datacomp) and the [LAION CLIP Benchmark](https://github.com/LAION-AI/CLIP_benchmark). ## Testing Data, Factors & Metrics ### Testing Data The testing is performed on a suite of 38 datasets. See our paper for more details (https://arxiv.org/abs/2304.14108). ## Results The model achieves a 73.5% zero-shot top-1 accuracy on ImageNet-1k. See our paper for more details and results (https://arxiv.org/abs/2304.14108). # Acknowledgements Acknowledging [stability.ai](https://stability.ai/) for the compute used to train this model. # Citation **BibTeX:** DataComp ```bibtex @article{datacomp, title={DataComp: In search of the next generation of multimodal datasets}, author={Samir Yitzhak Gadre, Gabriel Ilharco, Alex Fang, Jonathan Hayase, Georgios Smyrnis, Thao Nguyen, Ryan Marten, Mitchell Wortsman, Dhruba Ghosh, Jieyu Zhang, Eyal Orgad, Rahim Entezari, Giannis Daras, Sarah Pratt, Vivek Ramanujan, Yonatan Bitton, Kalyani Marathe, Stephen Mussmann, Richard Vencu, Mehdi Cherti, Ranjay Krishna, Pang Wei Koh, Olga Saukh, Alexander Ratner, Shuran Song, Hannaneh Hajishirzi, Ali Farhadi, Romain Beaumont, Sewoong Oh, Alex Dimakis, Jenia Jitsev, Yair Carmon, Vaishaal Shankar, Ludwig Schmidt}, journal={arXiv preprint arXiv:2304.14108}, year={2023} } ``` OpenAI CLIP paper ``` @inproceedings{Radford2021LearningTV, title={Learning Transferable Visual Models From Natural Language Supervision}, author={Alec Radford and Jong Wook Kim and Chris Hallacy and A. Ramesh and Gabriel Goh and Sandhini Agarwal and Girish Sastry and Amanda Askell and Pamela Mishkin and Jack Clark and Gretchen Krueger and Ilya Sutskever}, booktitle={ICML}, year={2021} } ``` OpenCLIP software ``` @software{ilharco_gabriel_2021_5143773, author = {Ilharco, Gabriel and Wortsman, Mitchell and Wightman, Ross and Gordon, Cade and Carlini, Nicholas and Taori, Rohan and Dave, Achal and Shankar, Vaishaal and Namkoong, Hongseok and Miller, John and Hajishirzi, Hannaneh and Farhadi, Ali and Schmidt, Ludwig}, title = {OpenCLIP}, month = jul, year = 2021, note = {If you use this software, please cite it as below.}, publisher = {Zenodo}, version = {0.1}, doi = {10.5281/zenodo.5143773}, url = {https://doi.org/10.5281/zenodo.5143773} } ``` # How to Get Started with the Model See https://github.com/mlfoundations/open_clip
[ -0.42208796739578247, -0.640346109867096, 0.16087910532951355, 0.0362965352833271, -0.3906821608543396, -0.43100717663764954, -0.18635249137878418, -0.5623437762260437, 0.04877261817455292, 0.3971216380596161, -0.5483238697052002, -0.599635124206543, -0.615821897983551, -0.09792469441890717, -0.43171757459640503, 0.8694210648536682, -0.1406962126493454, -0.0448824018239975, -0.36191675066947937, -0.3254905045032501, -0.5386382341384888, -0.5031927227973938, -0.3370254933834076, 0.1210678294301033, 0.18199943006038666, 0.3371591567993164, 0.6511090397834778, 0.7322441339492798, 0.7713837623596191, 0.21424522995948792, -0.00965330470353365, 0.10542024672031403, -0.5735453367233276, -0.4156467020511627, -0.10928366333246231, -0.28900182247161865, -0.5083243250846863, 0.21452079713344574, 0.5862246155738831, 0.4279891848564148, -0.0873788595199585, 0.23628389835357666, -0.08807747066020966, 0.5002016425132751, -0.7345800995826721, 0.2465570569038391, -0.6126459240913391, 0.020042283460497856, -0.21317227184772491, -0.019858015701174736, -0.30268213152885437, -0.16900178790092468, 0.1728944331407547, -0.723867654800415, 0.17067104578018188, -0.02465030364692211, 1.214037299156189, 0.22452659904956818, -0.3183622360229492, 0.20207563042640686, -0.6382496953010559, 0.7697814702987671, -0.7097011804580688, 0.31146055459976196, 0.33957991003990173, 0.4834313988685608, 0.07650235295295715, -0.7400404214859009, -0.49528056383132935, -0.0757015123963356, 0.1601172685623169, 0.15439464151859283, -0.38743510842323303, 0.041180070489645004, 0.45434853434562683, 0.2353437840938568, -0.4121883511543274, 0.029806045815348625, -0.6512553095817566, 0.006143487524241209, 0.6257806420326233, 0.1446547955274582, 0.3435650169849396, -0.2562711238861084, -0.74797523021698, -0.43119773268699646, -0.5964778065681458, 0.39667221903800964, 0.18088369071483612, 0.1454506516456604, -0.4737429916858673, 0.4896640181541443, 0.008235988207161427, 0.4757077991962433, -0.10615323483943939, -0.23334962129592896, 0.5074560046195984, -0.5007216334342957, -0.30644509196281433, -0.15843579173088074, 0.9916276931762695, 0.7079500555992126, 0.184007465839386, 0.08711224794387817, 0.056375086307525635, 0.007328365929424763, 0.34964269399642944, -1.0101052522659302, -0.10854566097259521, 0.0763714462518692, -0.548326313495636, -0.270317941904068, 0.43719592690467834, -0.8643168807029724, -0.012871427461504936, -0.2802274227142334, 0.5291638374328613, -0.4769863486289978, -0.2976749539375305, 0.05220934376120567, -0.07056409120559692, 0.22535428404808044, 0.33578988909721375, -0.660284698009491, 0.22348082065582275, 0.36345556378364563, 1.1281113624572754, -0.2847342789173126, -0.33578410744667053, -0.2531825006008148, 0.11089180409908295, -0.32045358419418335, 0.4682754874229431, -0.2925316095352173, -0.3326772153377533, -0.07590039074420929, 0.3799818456172943, -0.1515393853187561, -0.5003604292869568, 0.46600085496902466, -0.20002180337905884, -0.012525064870715141, -0.18050047755241394, -0.22338351607322693, -0.5614646077156067, 0.21850335597991943, -0.6918180584907532, 0.8523631691932678, 0.04289527237415314, -0.861204981803894, 0.3782474100589752, -0.6764307022094727, -0.10870817303657532, -0.2733975648880005, -0.09274815768003464, -0.6337481737136841, -0.281629353761673, 0.4970471262931824, 0.5007143020629883, -0.31934529542922974, 0.46772387623786926, -0.6800791025161743, -0.32019519805908203, 0.2062675505876541, -0.4161892831325531, 0.9513369798660278, 0.04015422239899635, -0.31741130352020264, 0.14399543404579163, -0.6766130328178406, -0.0772872045636177, 0.24040687084197998, 0.02586175873875618, -0.2464817613363266, -0.24568361043930054, 0.05970191955566406, 0.30736637115478516, 0.045078206807374954, -0.6603759527206421, 0.06313549727201462, -0.09028041362762451, 0.4152027368545532, 0.7327709197998047, 0.13647812604904175, 0.2518552839756012, -0.4245583713054657, 0.6074665784835815, 0.25534120202064514, 0.6024127006530762, -0.31566452980041504, -0.4872230589389801, -0.6232298016548157, -0.5916956067085266, 0.3235122561454773, 0.4925168752670288, -0.6978761553764343, 0.41506263613700867, -0.2852717339992523, -0.6298161745071411, -0.3622438907623291, -0.017357468605041504, 0.4675900340080261, 0.5725976824760437, 0.5080701112747192, -0.5429766178131104, -0.5230923891067505, -0.8839532136917114, 0.30642303824424744, 0.06669698655605316, 0.05982677638530731, 0.4862045645713806, 0.7185850143432617, -0.19991403818130493, 1.059496283531189, -0.6472528576850891, -0.5054517388343811, -0.11140936613082886, 0.026483943685889244, 0.1185784786939621, 0.5899872183799744, 0.9321717023849487, -0.9110687375068665, -0.35324427485466003, -0.21969355642795563, -1.0480355024337769, 0.14218461513519287, 0.02851032093167305, -0.31002694368362427, 0.08639691025018692, 0.43209558725357056, -0.569296658039093, 0.7470613121986389, 0.4589976966381073, -0.0011400616494938731, 0.48712673783302307, -0.07506079971790314, 0.09842982888221741, -1.0670865774154663, 0.4490468502044678, 0.23432575166225433, -0.14053457975387573, -0.5264516472816467, -0.05232628434896469, 0.013314364477992058, -0.36400550603866577, -0.7471576929092407, 0.47062253952026367, -0.3161233365535736, 0.03016677498817444, -0.061556555330753326, -0.03653423860669136, 0.06587622314691544, 0.7355472445487976, 0.06776118278503418, 0.8417296409606934, 0.8101356029510498, -0.6312965750694275, 0.10425557941198349, 0.4704582095146179, -0.4540826380252838, 0.3726142644882202, -0.8835131525993347, -0.07514128088951111, -0.0919332504272461, 0.1994573324918747, -0.5822385549545288, -0.29786476492881775, 0.4055609405040741, -0.42429831624031067, 0.3632912039756775, -0.29488033056259155, -0.2924034297466278, -0.35806581377983093, -0.552616536617279, 0.5215733051300049, 0.48658841848373413, -0.6046143174171448, 0.25880855321884155, 0.5036601424217224, 0.033067021518945694, -0.666552722454071, -0.7845728397369385, -0.25147169828414917, -0.2269582450389862, -0.6566557288169861, 0.31897592544555664, -0.15038223564624786, 0.024045763537287712, 0.025798926129937172, 0.06811670958995819, -0.18763870000839233, -0.12136536091566086, 0.6731045842170715, 0.6301624178886414, -0.06905290484428406, -0.0608418770134449, -0.1074272096157074, -0.05782334506511688, -0.03188933804631233, 0.003103093709796667, 0.17278122901916504, -0.12563440203666687, -0.44348689913749695, -0.4896385073661804, 0.28329166769981384, 0.6249080896377563, -0.4196784198284149, 0.6531285047531128, 0.6232261061668396, -0.36668112874031067, 0.02822774089872837, -0.32662126421928406, -0.04962576925754547, -0.45377790927886963, 0.43007779121398926, 0.08539877086877823, -0.6461640000343323, 0.5487011671066284, 0.13607017695903778, -0.028719982132315636, 0.4810827374458313, 0.36669686436653137, 0.1049942895770073, 0.9178506135940552, 0.8279066681861877, 0.023880034685134888, 0.7242298722267151, -0.6923755407333374, 0.09647320210933685, -0.9080070853233337, -0.39835071563720703, -0.19777777791023254, -0.18529027700424194, -0.5749894380569458, -0.5811697840690613, 0.6933157444000244, 0.15830905735492706, -0.2053021788597107, 0.4148356020450592, -0.429226815700531, 0.19764038920402527, 0.5838680267333984, 0.47797074913978577, 0.07742265611886978, -0.030590396374464035, -0.010203100740909576, -0.1264171451330185, -0.6686015129089355, -0.334531307220459, 1.183323621749878, 0.541642427444458, 0.8428227305412292, -0.073863185942173, 0.35405340790748596, 0.15969303250312805, -0.05617789551615715, -0.6955914497375488, 0.6000269651412964, -0.2935113310813904, -0.7399736642837524, -0.26777544617652893, -0.3596380054950714, -0.8556172847747803, 0.05824108421802521, -0.18476536870002747, -0.7117899656295776, 0.5812621712684631, 0.09922926872968674, -0.28792333602905273, 0.49468061327934265, -0.5988214612007141, 1.0443209409713745, -0.31306570768356323, -0.32710304856300354, 0.07312959432601929, -0.7760360836982727, 0.5299761891365051, 0.11657031625509262, 0.08606788516044617, -0.20050573348999023, 0.06337352842092514, 0.8750811219215393, -0.6502932906150818, 0.9863457083702087, -0.24287386238574982, 0.2401784211397171, 0.5973591804504395, -0.20666399598121643, 0.16913868486881256, 0.05003063380718231, 0.12429110705852509, 0.6215746998786926, 0.08424950391054153, -0.18078257143497467, -0.42182645201683044, 0.46970778703689575, -0.818886935710907, -0.25678035616874695, -0.3915866017341614, -0.531859278678894, 0.12150314450263977, 0.3318835496902466, 0.45085078477859497, 0.7338348627090454, -0.06849002093076706, 0.42658087611198425, 0.6478407979011536, -0.3401377499103546, 0.46682411432266235, 0.30074542760849, -0.20117628574371338, -0.6501769423484802, 0.9844648241996765, 0.3650292754173279, 0.3503815829753876, 0.18394410610198975, -0.006286476273089647, -0.04896414279937744, -0.45715633034706116, -0.4434066116809845, 0.15258148312568665, -0.7618186473846436, -0.43046191334724426, -0.47385695576667786, -0.2971765697002411, -0.33410295844078064, -0.054672472178936005, -0.5130762457847595, -0.28803443908691406, -0.5541445016860962, -0.0743948444724083, 0.47259485721588135, 0.4336039125919342, -0.21435031294822693, 0.18803638219833374, -0.7651010155677795, 0.3131120800971985, 0.2803286910057068, 0.4804633557796478, 0.030685916543006897, -0.5588789582252502, -0.2911664545536041, 0.24197208881378174, -0.5524314641952515, -0.5586637258529663, 0.36209481954574585, 0.2747398912906647, 0.5810847282409668, 0.5454092025756836, 0.22242330014705658, 0.6575273275375366, -0.33291178941726685, 0.9605912566184998, 0.3903014063835144, -0.7044546008110046, 0.6302375197410583, -0.5455389618873596, 0.2639448940753937, 0.6858382225036621, 0.7330834865570068, -0.1529802829027176, -0.02949543297290802, -0.609665036201477, -0.9458796381950378, 0.9100252985954285, 0.11394278705120087, -0.014361314475536346, 0.04278422147035599, 0.16261713206768036, 0.04905296862125397, 0.2423631250858307, -0.8105093240737915, -0.15783563256263733, -0.49263516068458557, 0.010223873890936375, 0.12567199766635895, -0.144688680768013, -0.19117535650730133, -0.47512784600257874, 0.6889051795005798, -0.2072063386440277, 0.5972548127174377, 0.28770846128463745, -0.0578484833240509, -0.19895601272583008, -0.03634558618068695, 0.4949409067630768, 0.6748100519180298, -0.4964820444583893, -0.18077875673770905, -0.03024361841380596, -0.6447410583496094, -0.1101265624165535, 0.15740373730659485, -0.4353739619255066, -0.07359632104635239, 0.3757542073726654, 1.1603337526321411, 0.3249213397502899, -0.7205625176429749, 0.9450168013572693, 0.0659036710858345, -0.3845062553882599, -0.33432722091674805, 0.1180468201637268, -0.3852531313896179, 0.20281317830085754, 0.24282747507095337, 0.22758474946022034, 0.14823241531848907, -0.5834939479827881, 0.27034205198287964, 0.497134804725647, -0.4608919620513916, -0.3446386754512787, 0.7952454686164856, -0.013465845957398415, 0.10512012988328934, 0.5968888401985168, -0.017832498997449875, -0.4051094949245453, 0.7179584503173828, 0.36417707800865173, 0.8425889611244202, 0.061362337321043015, 0.2708176076412201, 0.6897211074829102, 0.2566089928150177, -0.1720373034477234, 0.09771721810102463, 0.13709086179733276, -0.47159188985824585, -0.131975919008255, -0.3726489543914795, -0.4443507790565491, 0.1883651316165924, -0.9336286187171936, 0.5361135601997375, -0.6584591269493103, -0.3448559045791626, -0.09235914051532745, -0.3382773697376251, -0.5560415387153625, 0.15626908838748932, 0.1699366718530655, 0.9777517318725586, -0.8355411887168884, 0.694767415523529, 0.5889797210693359, -0.8436763882637024, -0.7311402559280396, -0.06188922002911568, -0.047263260930776596, -0.5308889150619507, 0.39711761474609375, 0.48415347933769226, 0.03863457590341568, -0.2666662335395813, -1.0040969848632812, -0.9605134725570679, 1.454519271850586, 0.5011871457099915, -0.29270392656326294, -0.08442969620227814, 0.05418256297707558, 0.35891222953796387, -0.26717206835746765, 0.38219141960144043, 0.1794709712266922, 0.2240954339504242, 0.27838972210884094, -1.030045986175537, 0.022818084806203842, -0.3840197026729584, 0.16801363229751587, 0.08021929860115051, -0.9135469794273376, 0.9638540148735046, -0.30883294343948364, -0.2557848393917084, 0.03341414034366608, 0.517987072467804, 0.10482363402843475, 0.41273048520088196, 0.3488290011882782, 0.6987570524215698, 0.416885107755661, -0.0008572933147661388, 0.9637711644172668, -0.12074395269155502, 0.3733908534049988, 1.068655252456665, -0.006733984220772982, 0.9474574327468872, 0.3287102282047272, -0.24156910181045532, 0.3673210144042969, 0.43509402871131897, -0.4485073387622833, 0.7621445655822754, -0.2719725966453552, 0.19271427392959595, -0.18332640826702118, -0.3792133331298828, -0.47047296166419983, 0.5095891952514648, 0.07086409628391266, -0.45038077235221863, -0.17937609553337097, 0.3928721249103546, -0.004850213881582022, -0.19681048393249512, -0.20914852619171143, 0.5209286212921143, 0.09544068574905396, -0.40562042593955994, 0.8163634538650513, -0.11429974436759949, 0.7181151509284973, -0.7768073081970215, -0.1438719481229782, -0.016276206821203232, 0.19099725782871246, -0.23437346518039703, -0.7628788352012634, 0.24271197617053986, -0.010295910760760307, -0.21006682515144348, -0.09666714072227478, 0.6260154247283936, -0.22915557026863098, -0.45672503113746643, 0.38788437843322754, 0.05057060718536377, 0.141287699341774, 0.0061904448084533215, -0.6566929817199707, 0.1918344497680664, -0.02036658488214016, -0.20390290021896362, 0.4363129734992981, 0.22925464808940887, -0.08712679147720337, 0.7057862877845764, 0.5722067356109619, -0.21755383908748627, 0.15923500061035156, -0.17567786574363708, 1.1408143043518066, -0.4621596038341522, -0.4435538649559021, -0.5306077599525452, 0.659320056438446, -0.08677327632904053, -0.4576571583747864, 0.7458434104919434, 0.54123455286026, 1.0246418714523315, -0.14979587495326996, 0.7467247247695923, -0.3142303228378296, 0.37650638818740845, -0.5893980264663696, 0.5809998512268066, -0.6463219523429871, 0.051677901297807693, -0.5780922174453735, -0.6964001059532166, -0.2284674495458603, 0.4937727451324463, -0.30755388736724854, 0.06341378390789032, 0.5899102687835693, 0.8623455166816711, -0.3312101662158966, -0.019276531413197517, 0.2216610312461853, 0.08856146782636642, 0.25860533118247986, 0.5110709071159363, 0.43566930294036865, -0.7034316062927246, 0.6741194128990173, -0.7362621426582336, -0.31832996010780334, -0.1908353567123413, -0.8728770613670349, -1.0541499853134155, -0.6192339658737183, -0.43305516242980957, -0.08350075036287308, -0.0687444657087326, 0.8955535888671875, 0.9470970034599304, -0.7231772541999817, -0.21325774490833282, 0.09871280193328857, -0.23281225562095642, -0.3226763606071472, -0.2126069962978363, 0.3737276494503021, 0.17333416640758514, -0.5471242666244507, 0.18376551568508148, 0.13447879254817963, 0.25186580419540405, -0.16378940641880035, -0.028403718024492264, -0.5060412287712097, -0.12251190841197968, 0.4404189884662628, 0.44726240634918213, -0.5088455080986023, -0.20223870873451233, 0.0029980880208313465, 0.0684058740735054, 0.3189406394958496, 0.528996467590332, -0.5379990339279175, 0.6419017314910889, 0.44621968269348145, 0.44982728362083435, 0.5867550373077393, 0.20759522914886475, 0.23804445564746857, -0.6420510411262512, 0.3804042935371399, 0.004306345246732235, 0.3382423520088196, 0.31263190507888794, -0.310273140668869, 0.6960868239402771, 0.38624003529548645, -0.43713149428367615, -0.8967771530151367, -0.1216864362359047, -1.2906070947647095, -0.12991517782211304, 1.0950394868850708, -0.4573878347873688, -0.40835171937942505, 0.2646901607513428, -0.22126968204975128, 0.3379310369491577, -0.43734437227249146, 0.43548500537872314, 0.3642261028289795, 0.05177345871925354, -0.4212220013141632, -0.8440660238265991, 0.2772635221481323, 0.01057345513254404, -0.8518300652503967, -0.06210094690322876, 0.49986687302589417, 0.30484461784362793, 0.2689811587333679, 0.4019884467124939, -0.35230448842048645, 0.36841604113578796, -0.009106604382395744, 0.3073588013648987, -0.5040420293807983, -0.5965358018875122, -0.414654940366745, 0.03759206831455231, -0.1964118778705597, -0.5569974184036255 ]
microsoft/mpnet-base
microsoft
"2023-09-15T12:13:46Z"
44,262
21
transformers
[ "transformers", "pytorch", "tf", "safetensors", "mpnet", "fill-mask", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
fill-mask
"2022-03-02T23:29:05Z"
Entry not found
[ -0.3227650225162506, -0.22568431496620178, 0.862226128578186, 0.43461495637893677, -0.5282987952232361, 0.7012965679168701, 0.7915717363357544, 0.07618638128042221, 0.7746025919914246, 0.2563219666481018, -0.7852817177772522, -0.22573819756507874, -0.9104480743408203, 0.5715669393539429, -0.3992334008216858, 0.5791245698928833, -0.14494505524635315, -0.10751161724328995, 0.28233757615089417, -0.2768954336643219, -0.5409224033355713, -0.36855220794677734, -1.1902776956558228, 0.061491113156080246, 0.5316578149795532, 0.7435142397880554, 0.7584060430526733, 0.3652167320251465, 0.6432578563690186, 0.3932291269302368, -0.23138920962810516, 0.4827055037021637, -0.04171813279390335, 0.00260411505587399, -0.3524433970451355, -0.5516898036003113, -0.28596609830856323, 0.07584730535745621, 1.0961304903030396, 0.966687798500061, -0.284663587808609, 0.05330817773938179, -0.3063621520996094, 0.33088892698287964, -0.49734312295913696, 0.3054099678993225, -0.022506045177578926, 0.16318801045417786, -0.7041513919830322, -0.5535354018211365, 0.012794834561645985, -0.7361212968826294, 0.17926570773124695, -0.690081000328064, 0.8269098401069641, 0.18583157658576965, 1.1533750295639038, 0.14819414913654327, -0.462487131357193, -0.8161764144897461, -0.6538989543914795, 0.5711171627044678, -0.32703715562820435, 0.39680248498916626, 0.7028235197067261, -0.048573412001132965, -0.9820332527160645, -0.6745741367340088, -0.46466192603111267, 0.2923962473869324, 0.35402774810791016, -0.3411678075790405, -0.17522086203098297, -0.3058989644050598, 0.15792037546634674, 0.12811517715454102, -0.4841994643211365, -0.5543919205665588, -0.5475160479545593, -0.3960252106189728, 0.6206658482551575, 0.3482950031757355, 0.2429177463054657, -0.1888415813446045, -0.3228583335876465, 0.0880163162946701, -0.4160851538181305, 0.3402571678161621, 0.6335517168045044, 0.7114017009735107, -0.5811444520950317, 0.560215950012207, -0.04927587881684303, 0.7439703941345215, 0.11445561796426773, -0.27478092908859253, 0.41460567712783813, -0.14724725484848022, 0.055171746760606766, 0.4226345121860504, 0.31524422764778137, 0.2841312289237976, -0.3273695111274719, 0.2032228708267212, -0.3215144872665405, -0.30496224761009216, -0.22332167625427246, -0.29490774869918823, -0.3592180609703064, 0.5492289066314697, -0.3314017057418823, -0.42855486273765564, 1.143175721168518, -0.4200771450996399, -0.7302224040031433, 0.33156412839889526, 0.4065209925174713, -0.0994480773806572, -0.37146568298339844, -0.052260834723711014, -0.8458789587020874, -0.007907390594482422, 0.7491172552108765, -0.7198970913887024, 0.3371737599372864, 0.4728063642978668, 0.7417217493057251, 0.19650575518608093, -0.14034469425678253, -0.42949390411376953, 0.2971969544887543, -0.8659994006156921, 0.6320174336433411, -0.20135220885276794, -1.0051977634429932, 0.11150479316711426, 0.8971705436706543, -0.37896400690078735, -1.2094876766204834, 1.0605159997940063, -0.6887932419776917, 0.16017857193946838, -0.676761269569397, -0.14661237597465515, -0.07118501514196396, -0.005096632521599531, -0.6088156700134277, 0.7567102313041687, 0.587267279624939, -0.4995276927947998, 0.21429483592510223, -0.26029831171035767, -0.39151400327682495, 0.38824859261512756, -0.07935450226068497, -0.21858926117420197, 0.713833212852478, -0.6647079586982727, -0.26932814717292786, 0.2942774295806885, 0.2368936538696289, -0.35706108808517456, -0.7931919097900391, 0.08478113263845444, -0.05786270648241043, 1.550750494003296, -0.03868847340345383, -0.3586106300354004, -0.679383397102356, -1.1506240367889404, -0.07070787996053696, 0.6886883974075317, -0.9194989204406738, -0.27839475870132446, -0.046410128474235535, -0.26169314980506897, 0.08994917571544647, 0.7390589714050293, -1.1194051504135132, 0.2832726836204529, -0.05092663690447807, -0.22794683277606964, 0.8271058797836304, 0.15387225151062012, 0.24758946895599365, 0.14913396537303925, 0.42958706617355347, 0.527725338935852, 0.11115207523107529, 0.683587908744812, -0.34720373153686523, -0.9694353938102722, 0.6154631972312927, 0.25266361236572266, 0.8121447563171387, -0.49945297837257385, 0.2685093879699707, 0.27025535702705383, -0.3409680724143982, -0.5682371854782104, -0.3102838397026062, 0.09025752544403076, 0.14930562674999237, 0.11142510175704956, -0.5721710324287415, -0.6576125025749207, -0.9689140319824219, -0.13590654730796814, -0.4314374029636383, -0.3571570813655853, 0.21006910502910614, 0.5792906284332275, -1.1975523233413696, 0.4128875136375427, -0.7705625891685486, -0.7038741111755371, -0.01065548975020647, -0.19338123500347137, 0.7540656328201294, 0.43240174651145935, 0.5033966898918152, -0.6397148370742798, -0.5661987066268921, -0.22470176219940186, -1.0333747863769531, -0.13280506432056427, 0.24819621443748474, 0.3065737783908844, -0.13423344492912292, -0.2744963765144348, -0.48740333318710327, 0.8100387454032898, 0.14789170026779175, -0.5391897559165955, 0.5220767259597778, -0.3020317256450653, 0.17224803566932678, -0.6369150280952454, -0.06916818022727966, -0.661676287651062, -0.0009071884560398757, -0.3608308732509613, -0.5737438797950745, 0.14772287011146545, 0.07017494738101959, -0.16065457463264465, 0.28808408975601196, -0.909277081489563, -0.0010852962732315063, -0.7442210912704468, 0.379071980714798, 0.06394772231578827, -0.3145078718662262, -0.017517540603876114, 1.0000386238098145, 0.7784460783004761, -0.3848048746585846, 0.721744179725647, 0.4440041184425354, 0.19036155939102173, 0.7630521059036255, -0.18725109100341797, 0.16478213667869568, -0.5245416760444641, -0.12161104381084442, -0.8887597918510437, -1.0982946157455444, 0.7320570349693298, -0.6114250421524048, 0.36542922258377075, -0.4277869760990143, 0.2589159905910492, -0.6919258832931519, -0.03885362669825554, 0.4808599352836609, -0.05936325341463089, -0.6863942742347717, 0.5232570171356201, 0.45317530632019043, -0.2019241601228714, -0.6609031558036804, -0.530157208442688, 0.39365822076797485, 0.6154114007949829, -0.16390392184257507, 0.06878514587879181, 0.14941060543060303, -0.5441926121711731, -0.040802597999572754, -0.38691970705986023, -0.45766758918762207, 0.054224006831645966, 0.13053473830223083, -0.005750799085944891, -0.404820054769516, -0.0868026465177536, -0.35842007398605347, -0.4656120240688324, 0.21876516938209534, 0.3011947274208069, -0.04096309468150139, -0.42599788308143616, -0.3619818687438965, -0.888181209564209, 0.6719610095024109, 0.5370282530784607, 0.05281545966863632, 0.7555549740791321, 0.16819314658641815, -0.8014987707138062, -0.13532210886478424, -0.1760706603527069, 0.2696830928325653, -0.5588056445121765, 0.13849826157093048, -0.013484534807503223, -0.0637492910027504, 0.26297882199287415, 0.25386232137680054, -0.4300556778907776, 0.9276250004768372, -0.2615274488925934, -0.3592521846294403, 0.7960181832313538, 0.5974742770195007, 0.49583131074905396, 0.16503219306468964, -0.044541798532009125, 0.900709331035614, -1.1966516971588135, -0.6563175916671753, -0.7409549355506897, -0.15945707261562347, -0.43510833382606506, -0.032105933874845505, 0.6254412531852722, 0.2900990843772888, -0.1333388388156891, 0.4756395220756531, -0.5243489742279053, 0.3556033670902252, 1.01198410987854, 0.35748639702796936, 0.3435698449611664, -0.7570229172706604, -0.2515777349472046, -0.1402427852153778, -0.9998157620429993, -0.2631377875804901, 0.8871029019355774, 0.22752606868743896, 0.844460666179657, 0.5992541313171387, 0.6784542798995972, 0.1367226243019104, 0.2523828148841858, -0.30590319633483887, 0.3920294940471649, 0.4376082420349121, -1.0401138067245483, -0.42758408188819885, 0.021418681368231773, -0.9703338742256165, -0.14227519929409027, -0.03495011106133461, -0.42617112398147583, 0.7681737542152405, 0.00016589462757110596, -0.4076709747314453, 0.7732734084129333, -0.455583393573761, 0.7562873363494873, -0.4473648965358734, -0.02663906291127205, 0.4699096083641052, -0.7070636749267578, 0.4677430987358093, 0.12878790497779846, 0.6205843091011047, -0.015572631731629372, -0.04078587517142296, 0.7104941606521606, -0.9129160046577454, 0.25438642501831055, -0.6348397135734558, 0.22421300411224365, 0.24246945977210999, 0.51606285572052, 0.5969953536987305, 0.4371243417263031, 0.10119888931512833, -0.23920902609825134, 0.04115807265043259, -0.8241125345230103, -0.210506409406662, 0.697515606880188, -0.7186890840530396, -0.6864197850227356, -1.2355337142944336, 0.14438660442829132, 0.27347055077552795, 0.389305055141449, 0.7959296107292175, 0.571408748626709, 0.1289544403553009, 0.680525004863739, 0.9888588190078735, -0.0688566341996193, 0.9166924357414246, 0.3224477171897888, 0.09175168722867966, -0.21944808959960938, 0.7036820650100708, 0.26627904176712036, -0.24707956612110138, -0.11939732730388641, 0.20913465321063995, -0.11069409549236298, -0.591761589050293, -0.49990686774253845, 0.3701757788658142, -0.6731787919998169, -0.18303893506526947, -0.6243735551834106, -0.6043769717216492, -0.511759340763092, 0.06927360594272614, -0.7147687673568726, 0.23979046940803528, -0.7753565907478333, -0.10574902594089508, 0.04323432594537735, 0.9792009592056274, -0.589311957359314, 0.5805224180221558, -1.1218582391738892, 0.19345788657665253, -0.07949887961149216, 0.7921058535575867, 0.21395787596702576, -0.7344395518302917, -0.3975418508052826, -0.11592631042003632, -0.3729911744594574, -1.3576762676239014, 0.21404948830604553, -0.2454141080379486, 0.23094046115875244, 0.6145404577255249, 0.1397707313299179, 0.5258248448371887, -0.34326282143592834, 0.7029101848602295, -0.057017259299755096, -0.7069286704063416, 0.7934495210647583, -0.5026894807815552, 0.4963534474372864, 0.9765996932983398, 0.5333835482597351, -0.7984007596969604, 0.035741209983825684, -1.041123390197754, -0.6008695363998413, 0.38426393270492554, 0.11928944289684296, -0.03601083159446716, -0.6659559011459351, -0.054019637405872345, -0.16143807768821716, 0.6043745279312134, -1.039069414138794, -0.7858356237411499, 0.2576698362827301, 0.5277302861213684, 0.0816856250166893, -0.5653398633003235, 0.20880667865276337, -0.544416069984436, 1.0657774209976196, 0.45109400153160095, 0.3274499475955963, 0.8406060934066772, 0.46492424607276917, -0.3823164403438568, 0.09252490103244781, 0.7662695050239563, 0.6666232347488403, -0.5239797830581665, -0.2908027470111847, -0.08827541768550873, -0.9143403768539429, 0.05927472561597824, 0.11168918758630753, -0.013455932028591633, 0.9082110524177551, 0.5793083310127258, 0.2539709210395813, 0.4514279365539551, -0.726460337638855, 0.8859451413154602, -0.14954176545143127, -0.12472866475582123, -1.0677239894866943, 0.1948619782924652, -0.23984959721565247, 0.5006402134895325, 1.0061326026916504, 0.5250048041343689, -0.047630298882722855, -0.8143380880355835, -0.01473585981875658, 0.6939172148704529, -0.7091123461723328, -0.17449834942817688, 0.944853663444519, 0.3847099542617798, -1.2953051328659058, 1.106776475906372, -0.5381771326065063, -0.560332179069519, 0.9121301770210266, 0.522956907749176, 1.1221847534179688, -0.44204121828079224, 0.0008676342549733818, 0.2662237286567688, 0.41378432512283325, 0.5423170328140259, 1.0869629383087158, 0.431413471698761, -0.7931063771247864, 0.8826584815979004, -0.24776044487953186, -0.40361151099205017, -0.05347571521997452, -0.42859897017478943, 0.16892178356647491, -0.4406192898750305, -0.10713007301092148, -0.3444187641143799, 0.28543180227279663, -0.7072042226791382, 0.42807620763778687, -0.0838567465543747, 0.8653068542480469, -0.8553727269172668, 0.47207626700401306, 0.635470449924469, -0.3337355852127075, -0.8508191108703613, -0.26198428869247437, -0.11448462307453156, -0.6389466524124146, 0.30214807391166687, -0.4554102420806885, 0.044398851692676544, 0.09623463451862335, -0.649151623249054, -1.1778275966644287, 0.9093633890151978, -0.639612078666687, -0.2784462869167328, 0.20464053750038147, -0.11514760553836823, 0.28811705112457275, -0.2524643540382385, 0.010661216452717781, 0.41876548528671265, 0.748940110206604, 0.2844654619693756, -0.7727053761482239, -0.3694884479045868, 0.0015032943338155746, -0.44474777579307556, 0.7582978010177612, -0.6002101898193359, 1.1840779781341553, -0.5563543438911438, -0.059654366225004196, 0.44384512305259705, 0.24690914154052734, 0.21076197922229767, 0.6629220843315125, 0.1442081481218338, 0.7282265424728394, 1.07012140750885, -0.40835219621658325, 0.8811809420585632, 0.26432839035987854, 0.47430819272994995, 0.7238501906394958, -0.6487724781036377, 0.7513749003410339, 0.31810489296913147, -0.5682924389839172, 0.9228013753890991, 1.2906063795089722, -0.15699204802513123, 0.8079374432563782, 0.05136508867144585, -1.081600546836853, 0.325833261013031, -0.20724765956401825, -0.7530064582824707, 0.3150254189968109, 0.19055864214897156, -0.6920982599258423, -0.5770308971405029, -0.24046507477760315, -0.35662803053855896, -0.11552901566028595, -0.7631728649139404, 0.6720563769340515, -0.016969164833426476, -0.5103683471679688, 0.18857547640800476, 0.2877499461174011, 0.17368432879447937, -0.5235732793807983, -0.02939440682530403, -0.22823619842529297, 0.2660655975341797, -0.5670853853225708, -0.5234526991844177, 0.5724433064460754, -0.32430219650268555, -0.5343255400657654, 0.18147465586662292, 0.763587236404419, -0.16923809051513672, -0.4515409469604492, 0.32472723722457886, 0.6959525346755981, 0.1665852814912796, 0.4250282347202301, -0.23511263728141785, 0.24480605125427246, -0.08044824004173279, -0.06651552021503448, 0.27714768052101135, 0.3449169099330902, 0.22435641288757324, 0.4450142979621887, 0.43285664916038513, -0.01808755099773407, -0.10736498981714249, -0.382819801568985, 0.4124940037727356, -0.9542785882949829, -0.5713282823562622, -0.6307113766670227, 0.2740660607814789, -0.02315417304635048, -1.0836423635482788, 0.4145168364048004, 1.4406683444976807, 1.0359982252120972, -0.4756383001804352, 1.067226529121399, -0.21818485856056213, 0.9594791531562805, 0.41483086347579956, 0.5420440435409546, -0.6030411720275879, 0.03835370019078255, -0.4364396035671234, -1.076962947845459, -0.35716333985328674, 0.4539391100406647, -0.022899555042386055, -0.3429867625236511, 0.872571587562561, 0.5887166261672974, -0.33473607897758484, -0.11728022992610931, 0.048487238585948944, -0.029941488057374954, -0.12433847039937973, 0.5145376324653625, 0.7648399472236633, -0.9344304800033569, -0.10680416971445084, -0.21577754616737366, -0.6382725834846497, -0.5047279000282288, -0.9632009267807007, -0.12959396839141846, -0.16037796437740326, 0.035343267023563385, -0.5662806630134583, 0.00255737011320889, 1.208324909210205, 0.5684957504272461, -1.1113994121551514, -0.5303789377212524, 0.3371853232383728, 0.3920421898365021, -0.1874791383743286, -0.24202413856983185, 0.2984568774700165, 0.15382249653339386, -0.5908876657485962, 0.6875665783882141, 0.8089625239372253, 0.208888977766037, 0.19554761052131653, 0.15893013775348663, -0.8229473829269409, -0.14913435280323029, 0.17440445721149445, 0.9450570344924927, -0.939853310585022, -0.7114843130111694, -0.03168516233563423, -0.27094873785972595, -0.05765746906399727, 0.17102102935314178, -0.4046344757080078, 0.5180677175521851, 0.34591493010520935, 0.49933457374572754, 0.0561608150601387, -0.054746925830841064, 0.5409556031227112, -0.9069057703018188, 0.09425963461399078, 0.4134361147880554, 0.4154115319252014, -0.4000864028930664, -0.5910194516181946, 0.6713420748710632, 1.0073972940444946, -0.6594868898391724, -0.8743268847465515, -0.19846712052822113, -1.0016002655029297, 0.04189709946513176, 0.6762762069702148, 0.5009527802467346, -0.4806513786315918, -0.4174500107765198, -0.5617399215698242, -0.1254672110080719, -0.1369970738887787, 0.7621601819992065, 1.179680585861206, -0.7432094812393188, 0.07975747436285019, -1.038639783859253, 0.6594986915588379, -0.2419457733631134, -0.3457581698894501, -0.48644304275512695, 0.3832802176475525, 0.35236993432044983, 0.440481036901474, 0.614812433719635, 0.1408471167087555, 0.8338426351547241, 0.3126053214073181, -0.1702686995267868, 0.2698982357978821, -0.4559200704097748, -0.028932858258485794, -0.057962555438280106, 0.31015971302986145, -1.0262157917022705 ]
sshleifer/tiny-distilbert-base-cased-distilled-squad
sshleifer
"2020-05-14T16:54:23Z"
44,245
0
transformers
[ "transformers", "pytorch", "tf", "distilbert", "question-answering", "autotrain_compatible", "endpoints_compatible", "region:us" ]
question-answering
"2022-03-02T23:29:05Z"
Entry not found
[ -0.3227650225162506, -0.22568431496620178, 0.862226128578186, 0.43461495637893677, -0.5282987952232361, 0.7012965679168701, 0.7915717363357544, 0.07618638128042221, 0.7746025919914246, 0.2563219666481018, -0.7852817177772522, -0.22573819756507874, -0.9104480743408203, 0.5715669393539429, -0.3992334008216858, 0.5791245698928833, -0.14494505524635315, -0.10751161724328995, 0.28233757615089417, -0.2768954336643219, -0.5409224033355713, -0.36855220794677734, -1.1902776956558228, 0.061491113156080246, 0.5316578149795532, 0.7435142397880554, 0.7584060430526733, 0.3652167320251465, 0.6432578563690186, 0.3932291269302368, -0.23138920962810516, 0.4827055037021637, -0.04171813279390335, 0.00260411505587399, -0.3524433970451355, -0.5516898036003113, -0.28596609830856323, 0.07584730535745621, 1.0961304903030396, 0.966687798500061, -0.284663587808609, 0.05330817773938179, -0.3063621520996094, 0.33088892698287964, -0.49734312295913696, 0.3054099678993225, -0.022506045177578926, 0.16318801045417786, -0.7041513919830322, -0.5535354018211365, 0.012794834561645985, -0.7361212968826294, 0.17926570773124695, -0.690081000328064, 0.8269098401069641, 0.18583157658576965, 1.1533750295639038, 0.14819414913654327, -0.462487131357193, -0.8161764144897461, -0.6538989543914795, 0.5711171627044678, -0.32703715562820435, 0.39680248498916626, 0.7028235197067261, -0.048573412001132965, -0.9820332527160645, -0.6745741367340088, -0.46466192603111267, 0.2923962473869324, 0.35402774810791016, -0.3411678075790405, -0.17522086203098297, -0.3058989644050598, 0.15792037546634674, 0.12811517715454102, -0.4841994643211365, -0.5543919205665588, -0.5475160479545593, -0.3960252106189728, 0.6206658482551575, 0.3482950031757355, 0.2429177463054657, -0.1888415813446045, -0.3228583335876465, 0.0880163162946701, -0.4160851538181305, 0.3402571678161621, 0.6335517168045044, 0.7114017009735107, -0.5811444520950317, 0.560215950012207, -0.04927587881684303, 0.7439703941345215, 0.11445561796426773, -0.27478092908859253, 0.41460567712783813, -0.14724725484848022, 0.055171746760606766, 0.4226345121860504, 0.31524422764778137, 0.2841312289237976, -0.3273695111274719, 0.2032228708267212, -0.3215144872665405, -0.30496224761009216, -0.22332167625427246, -0.29490774869918823, -0.3592180609703064, 0.5492289066314697, -0.3314017057418823, -0.42855486273765564, 1.143175721168518, -0.4200771450996399, -0.7302224040031433, 0.33156412839889526, 0.4065209925174713, -0.0994480773806572, -0.37146568298339844, -0.052260834723711014, -0.8458789587020874, -0.007907390594482422, 0.7491172552108765, -0.7198970913887024, 0.3371737599372864, 0.4728063642978668, 0.7417217493057251, 0.19650575518608093, -0.14034469425678253, -0.42949390411376953, 0.2971969544887543, -0.8659994006156921, 0.6320174336433411, -0.20135220885276794, -1.0051977634429932, 0.11150479316711426, 0.8971705436706543, -0.37896400690078735, -1.2094876766204834, 1.0605159997940063, -0.6887932419776917, 0.16017857193946838, -0.676761269569397, -0.14661237597465515, -0.07118501514196396, -0.005096632521599531, -0.6088156700134277, 0.7567102313041687, 0.587267279624939, -0.4995276927947998, 0.21429483592510223, -0.26029831171035767, -0.39151400327682495, 0.38824859261512756, -0.07935450226068497, -0.21858926117420197, 0.713833212852478, -0.6647079586982727, -0.26932814717292786, 0.2942774295806885, 0.2368936538696289, -0.35706108808517456, -0.7931919097900391, 0.08478113263845444, -0.05786270648241043, 1.550750494003296, -0.03868847340345383, -0.3586106300354004, -0.679383397102356, -1.1506240367889404, -0.07070787996053696, 0.6886883974075317, -0.9194989204406738, -0.27839475870132446, -0.046410128474235535, -0.26169314980506897, 0.08994917571544647, 0.7390589714050293, -1.1194051504135132, 0.2832726836204529, -0.05092663690447807, -0.22794683277606964, 0.8271058797836304, 0.15387225151062012, 0.24758946895599365, 0.14913396537303925, 0.42958706617355347, 0.527725338935852, 0.11115207523107529, 0.683587908744812, -0.34720373153686523, -0.9694353938102722, 0.6154631972312927, 0.25266361236572266, 0.8121447563171387, -0.49945297837257385, 0.2685093879699707, 0.27025535702705383, -0.3409680724143982, -0.5682371854782104, -0.3102838397026062, 0.09025752544403076, 0.14930562674999237, 0.11142510175704956, -0.5721710324287415, -0.6576125025749207, -0.9689140319824219, -0.13590654730796814, -0.4314374029636383, -0.3571570813655853, 0.21006910502910614, 0.5792906284332275, -1.1975523233413696, 0.4128875136375427, -0.7705625891685486, -0.7038741111755371, -0.01065548975020647, -0.19338123500347137, 0.7540656328201294, 0.43240174651145935, 0.5033966898918152, -0.6397148370742798, -0.5661987066268921, -0.22470176219940186, -1.0333747863769531, -0.13280506432056427, 0.24819621443748474, 0.3065737783908844, -0.13423344492912292, -0.2744963765144348, -0.48740333318710327, 0.8100387454032898, 0.14789170026779175, -0.5391897559165955, 0.5220767259597778, -0.3020317256450653, 0.17224803566932678, -0.6369150280952454, -0.06916818022727966, -0.661676287651062, -0.0009071884560398757, -0.3608308732509613, -0.5737438797950745, 0.14772287011146545, 0.07017494738101959, -0.16065457463264465, 0.28808408975601196, -0.909277081489563, -0.0010852962732315063, -0.7442210912704468, 0.379071980714798, 0.06394772231578827, -0.3145078718662262, -0.017517540603876114, 1.0000386238098145, 0.7784460783004761, -0.3848048746585846, 0.721744179725647, 0.4440041184425354, 0.19036155939102173, 0.7630521059036255, -0.18725109100341797, 0.16478213667869568, -0.5245416760444641, -0.12161104381084442, -0.8887597918510437, -1.0982946157455444, 0.7320570349693298, -0.6114250421524048, 0.36542922258377075, -0.4277869760990143, 0.2589159905910492, -0.6919258832931519, -0.03885362669825554, 0.4808599352836609, -0.05936325341463089, -0.6863942742347717, 0.5232570171356201, 0.45317530632019043, -0.2019241601228714, -0.6609031558036804, -0.530157208442688, 0.39365822076797485, 0.6154114007949829, -0.16390392184257507, 0.06878514587879181, 0.14941060543060303, -0.5441926121711731, -0.040802597999572754, -0.38691970705986023, -0.45766758918762207, 0.054224006831645966, 0.13053473830223083, -0.005750799085944891, -0.404820054769516, -0.0868026465177536, -0.35842007398605347, -0.4656120240688324, 0.21876516938209534, 0.3011947274208069, -0.04096309468150139, -0.42599788308143616, -0.3619818687438965, -0.888181209564209, 0.6719610095024109, 0.5370282530784607, 0.05281545966863632, 0.7555549740791321, 0.16819314658641815, -0.8014987707138062, -0.13532210886478424, -0.1760706603527069, 0.2696830928325653, -0.5588056445121765, 0.13849826157093048, -0.013484534807503223, -0.0637492910027504, 0.26297882199287415, 0.25386232137680054, -0.4300556778907776, 0.9276250004768372, -0.2615274488925934, -0.3592521846294403, 0.7960181832313538, 0.5974742770195007, 0.49583131074905396, 0.16503219306468964, -0.044541798532009125, 0.900709331035614, -1.1966516971588135, -0.6563175916671753, -0.7409549355506897, -0.15945707261562347, -0.43510833382606506, -0.032105933874845505, 0.6254412531852722, 0.2900990843772888, -0.1333388388156891, 0.4756395220756531, -0.5243489742279053, 0.3556033670902252, 1.01198410987854, 0.35748639702796936, 0.3435698449611664, -0.7570229172706604, -0.2515777349472046, -0.1402427852153778, -0.9998157620429993, -0.2631377875804901, 0.8871029019355774, 0.22752606868743896, 0.844460666179657, 0.5992541313171387, 0.6784542798995972, 0.1367226243019104, 0.2523828148841858, -0.30590319633483887, 0.3920294940471649, 0.4376082420349121, -1.0401138067245483, -0.42758408188819885, 0.021418681368231773, -0.9703338742256165, -0.14227519929409027, -0.03495011106133461, -0.42617112398147583, 0.7681737542152405, 0.00016589462757110596, -0.4076709747314453, 0.7732734084129333, -0.455583393573761, 0.7562873363494873, -0.4473648965358734, -0.02663906291127205, 0.4699096083641052, -0.7070636749267578, 0.4677430987358093, 0.12878790497779846, 0.6205843091011047, -0.015572631731629372, -0.04078587517142296, 0.7104941606521606, -0.9129160046577454, 0.25438642501831055, -0.6348397135734558, 0.22421300411224365, 0.24246945977210999, 0.51606285572052, 0.5969953536987305, 0.4371243417263031, 0.10119888931512833, -0.23920902609825134, 0.04115807265043259, -0.8241125345230103, -0.210506409406662, 0.697515606880188, -0.7186890840530396, -0.6864197850227356, -1.2355337142944336, 0.14438660442829132, 0.27347055077552795, 0.389305055141449, 0.7959296107292175, 0.571408748626709, 0.1289544403553009, 0.680525004863739, 0.9888588190078735, -0.0688566341996193, 0.9166924357414246, 0.3224477171897888, 0.09175168722867966, -0.21944808959960938, 0.7036820650100708, 0.26627904176712036, -0.24707956612110138, -0.11939732730388641, 0.20913465321063995, -0.11069409549236298, -0.591761589050293, -0.49990686774253845, 0.3701757788658142, -0.6731787919998169, -0.18303893506526947, -0.6243735551834106, -0.6043769717216492, -0.511759340763092, 0.06927360594272614, -0.7147687673568726, 0.23979046940803528, -0.7753565907478333, -0.10574902594089508, 0.04323432594537735, 0.9792009592056274, -0.589311957359314, 0.5805224180221558, -1.1218582391738892, 0.19345788657665253, -0.07949887961149216, 0.7921058535575867, 0.21395787596702576, -0.7344395518302917, -0.3975418508052826, -0.11592631042003632, -0.3729911744594574, -1.3576762676239014, 0.21404948830604553, -0.2454141080379486, 0.23094046115875244, 0.6145404577255249, 0.1397707313299179, 0.5258248448371887, -0.34326282143592834, 0.7029101848602295, -0.057017259299755096, -0.7069286704063416, 0.7934495210647583, -0.5026894807815552, 0.4963534474372864, 0.9765996932983398, 0.5333835482597351, -0.7984007596969604, 0.035741209983825684, -1.041123390197754, -0.6008695363998413, 0.38426393270492554, 0.11928944289684296, -0.03601083159446716, -0.6659559011459351, -0.054019637405872345, -0.16143807768821716, 0.6043745279312134, -1.039069414138794, -0.7858356237411499, 0.2576698362827301, 0.5277302861213684, 0.0816856250166893, -0.5653398633003235, 0.20880667865276337, -0.544416069984436, 1.0657774209976196, 0.45109400153160095, 0.3274499475955963, 0.8406060934066772, 0.46492424607276917, -0.3823164403438568, 0.09252490103244781, 0.7662695050239563, 0.6666232347488403, -0.5239797830581665, -0.2908027470111847, -0.08827541768550873, -0.9143403768539429, 0.05927472561597824, 0.11168918758630753, -0.013455932028591633, 0.9082110524177551, 0.5793083310127258, 0.2539709210395813, 0.4514279365539551, -0.726460337638855, 0.8859451413154602, -0.14954176545143127, -0.12472866475582123, -1.0677239894866943, 0.1948619782924652, -0.23984959721565247, 0.5006402134895325, 1.0061326026916504, 0.5250048041343689, -0.047630298882722855, -0.8143380880355835, -0.01473585981875658, 0.6939172148704529, -0.7091123461723328, -0.17449834942817688, 0.944853663444519, 0.3847099542617798, -1.2953051328659058, 1.106776475906372, -0.5381771326065063, -0.560332179069519, 0.9121301770210266, 0.522956907749176, 1.1221847534179688, -0.44204121828079224, 0.0008676342549733818, 0.2662237286567688, 0.41378432512283325, 0.5423170328140259, 1.0869629383087158, 0.431413471698761, -0.7931063771247864, 0.8826584815979004, -0.24776044487953186, -0.40361151099205017, -0.05347571521997452, -0.42859897017478943, 0.16892178356647491, -0.4406192898750305, -0.10713007301092148, -0.3444187641143799, 0.28543180227279663, -0.7072042226791382, 0.42807620763778687, -0.0838567465543747, 0.8653068542480469, -0.8553727269172668, 0.47207626700401306, 0.635470449924469, -0.3337355852127075, -0.8508191108703613, -0.26198428869247437, -0.11448462307453156, -0.6389466524124146, 0.30214807391166687, -0.4554102420806885, 0.044398851692676544, 0.09623463451862335, -0.649151623249054, -1.1778275966644287, 0.9093633890151978, -0.639612078666687, -0.2784462869167328, 0.20464053750038147, -0.11514760553836823, 0.28811705112457275, -0.2524643540382385, 0.010661216452717781, 0.41876548528671265, 0.748940110206604, 0.2844654619693756, -0.7727053761482239, -0.3694884479045868, 0.0015032943338155746, -0.44474777579307556, 0.7582978010177612, -0.6002101898193359, 1.1840779781341553, -0.5563543438911438, -0.059654366225004196, 0.44384512305259705, 0.24690914154052734, 0.21076197922229767, 0.6629220843315125, 0.1442081481218338, 0.7282265424728394, 1.07012140750885, -0.40835219621658325, 0.8811809420585632, 0.26432839035987854, 0.47430819272994995, 0.7238501906394958, -0.6487724781036377, 0.7513749003410339, 0.31810489296913147, -0.5682924389839172, 0.9228013753890991, 1.2906063795089722, -0.15699204802513123, 0.8079374432563782, 0.05136508867144585, -1.081600546836853, 0.325833261013031, -0.20724765956401825, -0.7530064582824707, 0.3150254189968109, 0.19055864214897156, -0.6920982599258423, -0.5770308971405029, -0.24046507477760315, -0.35662803053855896, -0.11552901566028595, -0.7631728649139404, 0.6720563769340515, -0.016969164833426476, -0.5103683471679688, 0.18857547640800476, 0.2877499461174011, 0.17368432879447937, -0.5235732793807983, -0.02939440682530403, -0.22823619842529297, 0.2660655975341797, -0.5670853853225708, -0.5234526991844177, 0.5724433064460754, -0.32430219650268555, -0.5343255400657654, 0.18147465586662292, 0.763587236404419, -0.16923809051513672, -0.4515409469604492, 0.32472723722457886, 0.6959525346755981, 0.1665852814912796, 0.4250282347202301, -0.23511263728141785, 0.24480605125427246, -0.08044824004173279, -0.06651552021503448, 0.27714768052101135, 0.3449169099330902, 0.22435641288757324, 0.4450142979621887, 0.43285664916038513, -0.01808755099773407, -0.10736498981714249, -0.382819801568985, 0.4124940037727356, -0.9542785882949829, -0.5713282823562622, -0.6307113766670227, 0.2740660607814789, -0.02315417304635048, -1.0836423635482788, 0.4145168364048004, 1.4406683444976807, 1.0359982252120972, -0.4756383001804352, 1.067226529121399, -0.21818485856056213, 0.9594791531562805, 0.41483086347579956, 0.5420440435409546, -0.6030411720275879, 0.03835370019078255, -0.4364396035671234, -1.076962947845459, -0.35716333985328674, 0.4539391100406647, -0.022899555042386055, -0.3429867625236511, 0.872571587562561, 0.5887166261672974, -0.33473607897758484, -0.11728022992610931, 0.048487238585948944, -0.029941488057374954, -0.12433847039937973, 0.5145376324653625, 0.7648399472236633, -0.9344304800033569, -0.10680416971445084, -0.21577754616737366, -0.6382725834846497, -0.5047279000282288, -0.9632009267807007, -0.12959396839141846, -0.16037796437740326, 0.035343267023563385, -0.5662806630134583, 0.00255737011320889, 1.208324909210205, 0.5684957504272461, -1.1113994121551514, -0.5303789377212524, 0.3371853232383728, 0.3920421898365021, -0.1874791383743286, -0.24202413856983185, 0.2984568774700165, 0.15382249653339386, -0.5908876657485962, 0.6875665783882141, 0.8089625239372253, 0.208888977766037, 0.19554761052131653, 0.15893013775348663, -0.8229473829269409, -0.14913435280323029, 0.17440445721149445, 0.9450570344924927, -0.939853310585022, -0.7114843130111694, -0.03168516233563423, -0.27094873785972595, -0.05765746906399727, 0.17102102935314178, -0.4046344757080078, 0.5180677175521851, 0.34591493010520935, 0.49933457374572754, 0.0561608150601387, -0.054746925830841064, 0.5409556031227112, -0.9069057703018188, 0.09425963461399078, 0.4134361147880554, 0.4154115319252014, -0.4000864028930664, -0.5910194516181946, 0.6713420748710632, 1.0073972940444946, -0.6594868898391724, -0.8743268847465515, -0.19846712052822113, -1.0016002655029297, 0.04189709946513176, 0.6762762069702148, 0.5009527802467346, -0.4806513786315918, -0.4174500107765198, -0.5617399215698242, -0.1254672110080719, -0.1369970738887787, 0.7621601819992065, 1.179680585861206, -0.7432094812393188, 0.07975747436285019, -1.038639783859253, 0.6594986915588379, -0.2419457733631134, -0.3457581698894501, -0.48644304275512695, 0.3832802176475525, 0.35236993432044983, 0.440481036901474, 0.614812433719635, 0.1408471167087555, 0.8338426351547241, 0.3126053214073181, -0.1702686995267868, 0.2698982357978821, -0.4559200704097748, -0.028932858258485794, -0.057962555438280106, 0.31015971302986145, -1.0262157917022705 ]
Linaqruf/animagine-xl
Linaqruf
"2023-08-21T07:06:06Z"
44,213
250
diffusers
[ "diffusers", "stable-diffusion", "stable-diffusion-diffusers", "stable-diffusion-xl", "text-to-image", "en", "dataset:Linaqruf/animagine-datasets", "license:openrail++", "endpoints_compatible", "has_space", "diffusers:StableDiffusionXLPipeline", "region:us" ]
text-to-image
"2023-08-04T08:55:23Z"
--- license: openrail++ language: - en pipeline_tag: text-to-image tags: - stable-diffusion - stable-diffusion-diffusers - stable-diffusion-xl inference: parameter: negative_prompt: lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry widget: - text: >- face focus, cute, masterpiece, best quality, 1girl, green hair, sweater, looking at viewer, upper body, beanie, outdoors, night, turtleneck example_title: example 1girl - text: >- face focus, bishounen, masterpiece, best quality, 1boy, green hair, sweater, looking at viewer, upper body, beanie, outdoors, night, turtleneck example_title: example 1boy library_name: diffusers datasets: - Linaqruf/animagine-datasets --- <style> .title-container { display: flex; justify-content: center; align-items: center; height: 100vh; /* Adjust this value to position the title vertically */ } .title { font-size: 3em; text-align: center; color: #333; font-family: 'Helvetica Neue', sans-serif; text-transform: uppercase; letter-spacing: 0.1em; padding: 0.5em 0; background: transparent; } .title span { background: -webkit-linear-gradient(45deg, #7ed56f, #28b485); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } .custom-table { table-layout: fixed; width: 100%; border-collapse: collapse; margin-top: 2em; } .custom-table td { width: 50%; vertical-align: top; padding: 10px; box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.15); } .custom-image { width: 100%; height: auto; object-fit: cover; border-radius: 10px; transition: transform .2s; margin-bottom: 1em; } .custom-image:hover { transform: scale(1.05); } </style> <h1 class="title"><span>Animagine XL</span></h1> <table class="custom-table"> <tr> <td> <a href="https://huggingface.co/Linaqruf/animagine-xl/blob/main/sample_images/image1.png"> <img class="custom-image" src="https://huggingface.co/Linaqruf/animagine-xl/resolve/main/sample_images/image1.png" alt="sample1"> </a> <a href="https://huggingface.co/Linaqruf/animagine-xl/blob/main/sample_images/image4.png"> <img class="custom-image" src="https://huggingface.co/Linaqruf/animagine-xl/resolve/main/sample_images/image4.png" alt="sample3"> </a> </td> <td> <a href="https://huggingface.co/Linaqruf/animagine-xl/blob/main/sample_images/image2.png"> <img class="custom-image" src="https://huggingface.co/Linaqruf/animagine-xl/resolve/main/sample_images/image2.png" alt="sample2"> </a> <a href="https://huggingface.co/Linaqruf/animagine-xl/blob/main/sample_images/image3.png"> <img class="custom-image" src="https://huggingface.co/Linaqruf/animagine-xl/resolve/main/sample_images/image3.png" alt="sample4"> </a> </td> </tr> </table> <hr> ## Overview **Animagine XL** is a high-resolution, latent text-to-image diffusion model. The model has been fine-tuned using a learning rate of `4e-7` over 27000 global steps with a batch size of 16 on a curated dataset of superior-quality anime-style images. This model is derived from Stable Diffusion XL 1.0. - Use it with the [`Stable Diffusion Webui`](https://github.com/AUTOMATIC1111/stable-diffusion-webui) - Use it with 🧨 [`diffusers`](https://huggingface.co/docs/diffusers/index) - Use it with the [`ComfyUI`](https://github.com/comfyanonymous/ComfyUI) **(recommended)** Like other anime-style Stable Diffusion models, it also supports Danbooru tags to generate images. e.g. _**face focus, cute, masterpiece, best quality, 1girl, green hair, sweater, looking at viewer, upper body, beanie, outdoors, night, turtleneck**_ <hr> ## Features 1. High-Resolution Images: The model trained with 1024x1024 resolution. The model is trained using [NovelAI Aspect Ratio Bucketing Tool](https://github.com/NovelAI/novelai-aspect-ratio-bucketing) so that it can be trained at non-square resolutions. 2. Anime-styled Generation: Based on given text prompts, the model can create high quality anime-styled images. 3. Fine-Tuned Diffusion Process: The model utilizes a fine-tuned diffusion process to ensure high quality and unique image output. <hr> ## Model Details - **Developed by:** [Linaqruf](https://github.com/Linaqruf) - **Model type:** Diffusion-based text-to-image generative model - **Model Description:** This is a model that can be used to generate and modify high quality anime-themed images based on text prompts. - **License:** [CreativeML Open RAIL++-M License](https://huggingface.co/stabilityai/stable-diffusion-2/blob/main/LICENSE-MODEL) - **Finetuned from model:** [Stable Diffusion XL 1.0](https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0) <hr> ## How to Use: - Download `Animagine XL` [here](https://huggingface.co/Linaqruf/animagine-xl/resolve/main/animagine-xl.safetensors), the model is in `.safetensors` format. - You need to use Danbooru-style tag as prompt instead of natural language, otherwise you will get realistic result instead of anime - You can use any generic negative prompt or use the following suggested negative prompt to guide the model towards high aesthetic generationse: ``` lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry ``` - And, the following should also be prepended to prompts to get high aesthetic results: ``` masterpiece, best quality ``` - Use this cheat sheet to find the best resolution: ``` 768 x 1344: Vertical (9:16) 915 x 1144: Portrait (4:5) 1024 x 1024: Square (1:1) 1182 x 886: Photo (4:3) 1254 x 836: Landscape (3:2) 1365 x 768: Widescreen (16:9) 1564 x 670: Cinematic (21:9) ``` <hr> ## Gradio & Colab We also support a [Gradio](https://github.com/gradio-app/gradio) Web UI and Colab with Diffusers to run **Animagine XL**: [![Open In Spaces](https://camo.githubusercontent.com/00380c35e60d6b04be65d3d94a58332be5cc93779f630bcdfc18ab9a3a7d3388/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f25463025394625413425393725323048756767696e67253230466163652d5370616365732d626c7565)](https://huggingface.co/spaces/Linaqruf/Animagine-XL) [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/#fileId=https%3A//huggingface.co/Linaqruf/animagine-xl/blob/main/Animagine_XL_demo.ipynb) ## 🧨 Diffusers Make sure to upgrade diffusers to >= 0.18.2: ``` 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 ``` Running the pipeline (if you don't swap the scheduler it will run with the default **EulerDiscreteScheduler** in this example we are swapping it to **EulerAncestralDiscreteScheduler**: ```py import torch from torch import autocast from diffusers import StableDiffusionXLPipeline, EulerAncestralDiscreteScheduler model = "Linaqruf/animagine-xl" pipe = StableDiffusionXLPipeline.from_pretrained( model, torch_dtype=torch.float16, use_safetensors=True, variant="fp16" ) pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config) pipe.to('cuda') prompt = "face focus, cute, masterpiece, best quality, 1girl, green hair, sweater, looking at viewer, upper body, beanie, outdoors, night, turtleneck" negative_prompt = "lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry" image = pipe( prompt, negative_prompt=negative_prompt, width=1024, height=1024, guidance_scale=12, target_size=(1024,1024), original_size=(4096,4096), num_inference_steps=50 ).images[0] image.save("anime_girl.png") ``` <hr> ## Limitation This model inherit Stable Diffusion XL 1.0 [limitation](https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0#limitations)
[ -0.6181884407997131, -0.8510346412658691, 0.2913155257701874, 0.32742443680763245, -0.2526584565639496, -0.10472549498081207, 0.21480289101600647, -0.4569934904575348, 0.54653400182724, 0.2790272533893585, -0.6654660701751709, -0.5423929691314697, -0.6616380214691162, -0.0065148998983204365, -0.13578680157661438, 0.7954373955726624, 0.0455651730298996, -0.3609789311885834, -0.08939504623413086, -0.05128226801753044, -0.40378209948539734, 0.039044130593538284, -0.9304862022399902, -0.3941217064857483, 0.26806217432022095, 0.25746095180511475, 1.0147323608398438, 0.9011915922164917, 0.2545064687728882, 0.32121309638023376, -0.21844005584716797, -0.12280027568340302, -0.3757787048816681, -0.08846601843833923, 0.1140751913189888, -0.31734514236450195, -0.5956380367279053, 0.03349132090806961, 0.5901070833206177, 0.09903273731470108, -0.19517838954925537, -0.023569520562887192, -0.07692009210586548, 0.7675362229347229, -0.25371652841567993, -0.04949051886796951, -0.13031677901744843, 0.336598664522171, -0.1725919097661972, -0.038692183792591095, -0.14723113179206848, -0.4932112693786621, 0.07386978715658188, -0.8872699737548828, 0.09838972240686417, -0.03087856061756611, 1.5294729471206665, 0.27139797806739807, -0.2810252010822296, -0.03088092990219593, -0.38933655619621277, 0.6940246224403381, -0.6698384284973145, 0.31944939494132996, 0.10670678317546844, 0.15704767405986786, 0.07128353416919708, -0.9256592392921448, -0.5062862634658813, 0.022508464753627777, -0.30270254611968994, 0.39148572087287903, -0.5590852499008179, -0.2142401933670044, 0.23565764725208282, 0.4381069540977478, -0.6423076391220093, -0.1680735945701599, -0.17127379775047302, 0.03198370337486267, 0.5800732374191284, 0.17830419540405273, 0.8060365319252014, -0.09848179668188095, -0.5412028431892395, -0.15682056546211243, -0.32793882489204407, 0.06888917088508606, 0.31544002890586853, -0.3574979603290558, -0.7882985472679138, 0.1966787576675415, 0.10818325728178024, 0.5044902563095093, 0.42714783549308777, -0.17470340430736542, 0.40369367599487305, -0.08265966176986694, -0.24649406969547272, -0.3817552924156189, 1.0832085609436035, 0.5972575545310974, 0.010041861794888973, 0.052507542073726654, 0.01643182896077633, 0.06840353459119797, 0.03877740725874901, -1.19179368019104, -0.23311364650726318, 0.25388914346694946, -0.4326472878456116, -0.27663567662239075, -0.3841557800769806, -1.010648250579834, -0.15690487623214722, -0.04492850601673126, 0.42653509974479675, -0.5348961353302002, -0.3805781304836273, 0.06789932399988174, -0.5393282771110535, 0.09817609935998917, 0.5079988837242126, -0.6412965059280396, 0.20466147363185883, -0.00847237091511488, 0.9910691976547241, -0.21719293296337128, 0.0366414338350296, -0.1737631857395172, 0.10203854739665985, -0.2031710296869278, 0.7280800342559814, -0.41461101174354553, -0.41028836369514465, -0.206648588180542, 0.18281111121177673, -0.19852200150489807, -0.36350104212760925, 0.5287607312202454, -0.18020941317081451, 0.394378125667572, -0.19563473761081696, -0.4497552514076233, -0.20363053679466248, 0.05027027055621147, -0.42277106642723083, 0.8706613183021545, 0.2672531008720398, -1.1176193952560425, 0.12798306345939636, -0.6822811961174011, -0.21673434972763062, 0.0850086361169815, -0.030224069952964783, -0.6907380819320679, -0.20116478204727173, 0.18647004663944244, 0.48657703399658203, -0.0862274169921875, -0.036440879106521606, -0.23909485340118408, -0.06139455363154411, 0.19745157659053802, -0.2503929138183594, 1.0641484260559082, 0.3556171655654907, -0.5210632085800171, 0.0757342204451561, -0.6625890135765076, -0.1593419462442398, 0.4054584503173828, -0.18815818428993225, -0.13004881143569946, -0.2807283103466034, 0.2744084298610687, 0.2964198589324951, 0.3642028272151947, -0.5372796058654785, 0.19707046449184418, -0.22288057208061218, 0.4440578520298004, 0.5904740691184998, 0.1635371595621109, 0.6861476898193359, -0.5120173096656799, 0.5898443460464478, 0.14020147919654846, 0.3810470998287201, -0.10033009946346283, -0.5808928608894348, -0.7530427575111389, -0.5318595170974731, 0.11455170810222626, 0.5279703140258789, -0.6611546277999878, 0.46057966351509094, -0.03701362386345863, -0.6530584096908569, -0.4031420350074768, 0.069666787981987, 0.258110374212265, 0.6966448426246643, 0.3577520251274109, -0.7458651661872864, -0.22423529624938965, -0.7645531892776489, 0.24070167541503906, 0.07605817914009094, -0.039694905281066895, 0.48136040568351746, 0.6052017211914062, -0.4367474317550659, 0.713134765625, -0.6175910234451294, -0.5058763027191162, -0.10246645659208298, 0.09050032496452332, 0.36582741141319275, 0.750987708568573, 0.9343224167823792, -0.7937490344047546, -0.8361488580703735, 0.06446192413568497, -0.8610822558403015, -0.13259027898311615, -0.05731171369552612, -0.5174126625061035, 0.3107277750968933, 0.08127803355455399, -0.6508205533027649, 0.4858328402042389, 0.5674739480018616, -0.77937251329422, 0.5615811944007874, -0.4427800476551056, 0.25516223907470703, -1.0567902326583862, 0.22112788259983063, 0.39057663083076477, -0.32078874111175537, -0.6468169093132019, 0.3173171281814575, -0.03129155561327934, -0.02744840830564499, -0.49787572026252747, 0.7865224480628967, -0.4414174556732178, 0.354563444852829, -0.18750208616256714, -0.15286995470523834, 0.2883744537830353, 0.3980790376663208, 0.28138577938079834, 0.4634931683540344, 0.9036588668823242, -0.5584669709205627, 0.36054572463035583, 0.41474711894989014, -0.12187860161066055, 0.8875610828399658, -0.7756096720695496, 0.1173333004117012, -0.2564733028411865, 0.12705914676189423, -1.0296244621276855, -0.28428345918655396, 0.46996501088142395, -0.43406233191490173, 0.566184401512146, -0.21288582682609558, -0.44445309042930603, -0.34922656416893005, -0.3459755480289459, 0.18131175637245178, 0.8835135698318481, -0.46288159489631653, 0.6019462943077087, 0.29034101963043213, -0.0011982469586655498, -0.4429984986782074, -0.7057594060897827, 0.0018008975312113762, -0.48815613985061646, -0.9724282622337341, 0.6460321545600891, -0.2836720645427704, 0.0516858845949173, 0.20632803440093994, 0.11247530579566956, -0.15703298151493073, -0.1782798022031784, 0.23290008306503296, 0.35495850443840027, -0.04812350124120712, -0.3307107388973236, 0.08043991029262543, -0.07160273939371109, -0.16489683091640472, 0.04907941073179245, 0.7165176272392273, -0.14764825999736786, 0.06190594285726547, -1.0625048875808716, 0.14714010059833527, 0.6023876070976257, -0.00023031611635815352, 0.7468442320823669, 0.9864417910575867, -0.3744344413280487, 0.3396785855293274, -0.6279675364494324, -0.06977081298828125, -0.4990714490413666, -0.010762214660644531, -0.09881936013698578, -0.43033942580223083, 0.8029516935348511, 0.17930708825588226, 0.18529722094535828, 0.49020642042160034, 0.48687314987182617, -0.20286139845848083, 1.1018460988998413, 0.5324431657791138, 0.04951874539256096, 0.744299054145813, -0.7945711016654968, -0.31165701150894165, -0.7430515885353088, -0.4068588614463806, -0.2714974582195282, -0.3944854438304901, -0.339753121137619, -0.48092272877693176, 0.5488656163215637, 0.0740005150437355, -0.42657336592674255, 0.49939125776290894, -0.5769263505935669, 0.2146834135055542, 0.27495649456977844, 0.27568531036376953, 0.2467128336429596, 0.1524229645729065, -0.1251395046710968, -0.14385637640953064, -0.4940076470375061, -0.3902323544025421, 0.3638990521430969, 0.5416538715362549, 0.8205609321594238, 0.14598530530929565, 0.7014360427856445, 0.02172308787703514, 0.3458133935928345, -0.45443737506866455, 0.3823670446872711, -0.08818072825670242, -0.7138640284538269, -0.1865914911031723, -0.4150259792804718, -1.0517150163650513, 0.26481664180755615, -0.4459100067615509, -0.6915848255157471, 0.39373376965522766, 0.19195786118507385, -0.13561946153640747, 0.30969640612602234, -0.8371251821517944, 0.8821378350257874, 0.037341028451919556, -0.748016357421875, 0.12030564993619919, -0.5039256811141968, 0.2190459668636322, 0.43216052651405334, 0.25601768493652344, -0.17342345416545868, -0.16649244725704193, 0.5848701000213623, -0.5246986746788025, 0.8101159334182739, -0.367500364780426, -0.0009781430708244443, 0.25646334886550903, 0.11817821115255356, 0.3550510108470917, 0.2230662703514099, -0.13294829428195953, 0.09174032509326935, 0.07479225099086761, -0.47214868664741516, -0.5128699541091919, 0.5921909809112549, -0.738262951374054, -0.4579814076423645, -0.4008130133152008, -0.4109470546245575, 0.3164367079734802, 0.14372961223125458, 0.7285977005958557, 0.3456365764141083, -0.1511380523443222, -0.010158703662455082, 0.6953369975090027, -0.3648597002029419, 0.6443008184432983, 0.1868123710155487, -0.1548798680305481, -0.5802707076072693, 0.7674962878227234, 0.09008701145648956, 0.20327703654766083, 0.2502458691596985, 0.4848412573337555, -0.4399110972881317, -0.12974432110786438, -0.7925418019294739, 0.44693905115127563, -0.434137761592865, -0.35817214846611023, -0.6266680359840393, -0.21645069122314453, -0.38298726081848145, -0.32415950298309326, -0.37973374128341675, -0.2281503826379776, -0.7649744749069214, 0.23678143322467804, 0.6342226266860962, 0.5559730529785156, 0.014047253876924515, 0.2890537679195404, -0.4531956613063812, 0.26665621995925903, 0.31319060921669006, 0.27450305223464966, 0.17437081038951874, -0.7750678062438965, 0.12183631956577301, -0.08910462260246277, -0.724774956703186, -0.9035930037498474, 0.9208526611328125, 0.19979986548423767, 0.36410292983055115, 0.5387892723083496, -0.13169656693935394, 0.8897820115089417, -0.44383668899536133, 0.6148310899734497, 0.6357299089431763, -0.8028112649917603, 0.6080561280250549, -0.48350030183792114, 0.43033352494239807, 0.13031597435474396, 0.6280716061592102, -0.47843536734580994, -0.44991910457611084, -0.8052557706832886, -0.736772894859314, 0.4161684215068817, 0.45639094710350037, 0.2836870551109314, 0.1490810066461563, 0.573987603187561, -0.11254004389047623, -0.0636739581823349, -0.8942363262176514, -0.6457257866859436, -0.2795393466949463, -0.044232551008462906, 0.037681322544813156, 0.11597742885351181, 0.02455921471118927, -0.6261860132217407, 0.7266910076141357, 0.03159816190600395, 0.50373774766922, 0.3421618640422821, 0.17883582413196564, -0.3489939272403717, 0.03791694715619087, 0.44944944977760315, 0.42859429121017456, -0.03248877823352814, -0.23343589901924133, 0.014283244498074055, -0.4560887813568115, 0.10304021835327148, 0.0617673434317112, -0.4220980703830719, 0.17306293547153473, -0.0020394502207636833, 0.8529444336891174, -0.17676430940628052, -0.23921862244606018, 0.5748983025550842, -0.26559534668922424, -0.33063626289367676, -0.3597218096256256, 0.19332171976566315, 0.2434713989496231, 0.3036639988422394, 0.3419824540615082, 0.25790807604789734, 0.25091230869293213, -0.4744749069213867, 0.12644170224666595, 0.4722186326980591, -0.2679974138736725, -0.35386016964912415, 1.013588547706604, -0.06097214296460152, -0.1323889046907425, 0.24957694113254547, -0.3637138903141022, -0.40433937311172485, 0.7118269801139832, 0.6675161719322205, 0.5255112051963806, -0.30851319432258606, 0.5256311297416687, 0.7283318638801575, -0.07268298417329788, -0.0394335500895977, 0.1674971878528595, 0.24259012937545776, -0.5263985991477966, -0.0326588973402977, -0.681931734085083, -0.10664691776037216, 0.14985066652297974, -0.4189285933971405, 0.477883905172348, -0.6012223362922668, -0.3843176066875458, -0.005386183969676495, 0.13744908571243286, -0.6255215406417847, 0.2916668951511383, -0.06965813040733337, 0.7863444685935974, -0.8819535970687866, 0.6575878262519836, 0.5702906847000122, -0.6179682612419128, -0.7520059943199158, -0.1285444051027298, 0.03491292893886566, -0.663934051990509, 0.37628060579299927, 0.07862195372581482, 0.14021357893943787, 0.21934518218040466, -0.5786548256874084, -0.8137427568435669, 1.2912706136703491, 0.5455746650695801, -0.19856886565685272, -0.16544222831726074, -0.32684192061424255, 0.659163236618042, -0.49701789021492004, 0.4366157054901123, 0.46172529458999634, 0.4327176809310913, 0.48036885261535645, -0.674441397190094, 0.23823457956314087, -0.4897216260433197, 0.26977747678756714, -0.02811458893120289, -0.9496520161628723, 0.7348343729972839, -0.1876501590013504, -0.3870069980621338, 0.3306106925010681, 0.5969957709312439, 0.16471250355243683, 0.18148654699325562, 0.4576171338558197, 0.9419545531272888, 0.48266682028770447, -0.24644704163074493, 1.113942265510559, -0.008544880896806717, 0.431334912776947, 0.4760117828845978, 0.2269803285598755, 0.5924327373504639, 0.2184644639492035, -0.14893504977226257, 0.8483096957206726, 0.6634876132011414, -0.1970263570547104, 0.5284388065338135, 0.050126999616622925, -0.24699793756008148, 0.016396231949329376, -0.24180418252944946, -0.5329010486602783, 0.014452490955591202, 0.3685183525085449, -0.32079824805259705, -0.08379765599966049, 0.03925745561718941, 0.12445738166570663, 0.08105874806642532, -0.12761680781841278, 0.6529293060302734, 0.0011259798193350434, -0.31659233570098877, 0.7799643874168396, -0.09208566695451736, 1.0045931339263916, -0.3282928764820099, -0.010716071352362633, -0.34191492199897766, -0.06402464956045151, -0.4592567980289459, -0.8737533092498779, 0.31239497661590576, -0.017291869968175888, 0.09462961554527283, -0.2979104816913605, 0.48830971121788025, -0.32167482376098633, -0.40692684054374695, 0.2647564709186554, 0.2056332528591156, 0.29098185896873474, 0.31662070751190186, -1.1081209182739258, 0.30295777320861816, -0.03227562457323074, -0.3933700919151306, 0.211582750082016, 0.31719639897346497, 0.418088436126709, 0.6598682403564453, 0.23376642167568207, 0.08479970693588257, 0.16457168757915497, 0.004526572767645121, 0.6543380618095398, -0.3282043933868408, -0.49785685539245605, -0.8053487539291382, 0.6924411058425903, -0.22078104317188263, -0.22000813484191895, 0.5919948220252991, 0.5249651074409485, 0.6976678967475891, -0.37801986932754517, 0.5083054900169373, -0.43395301699638367, 0.08016414195299149, -0.3646620213985443, 0.9333802461624146, -0.9258957505226135, -0.07868097722530365, -0.6252763271331787, -0.7395087480545044, -0.27279937267303467, 0.9152611494064331, 0.01442006602883339, 0.07814016193151474, 0.45493683218955994, 0.8153761029243469, -0.08521836251020432, -0.3925938308238983, 0.17569606006145477, 0.1435917466878891, 0.19124802947044373, 0.6071738600730896, 0.6125636696815491, -0.7010700702667236, 0.3930121958255768, -0.6693810820579529, -0.3009950816631317, -0.004354387987405062, -0.8974360823631287, -0.9028517007827759, -0.7259758114814758, -0.8807834386825562, -0.4508664608001709, -0.1813434511423111, 0.6325814723968506, 0.9506937265396118, -0.48691466450691223, -0.27424097061157227, -0.19747689366340637, 0.11397591233253479, -0.12915323674678802, -0.3316967487335205, 0.2500535249710083, 0.04633612930774689, -1.180501937866211, -0.2531678378582001, 0.13211388885974884, 0.6483782529830933, 0.11135440319776535, -0.28715434670448303, -0.26618045568466187, -0.10469145327806473, 0.4105035960674286, 0.43545958399772644, -0.5348596572875977, -0.16396477818489075, -0.17562656104564667, -0.051808521151542664, 0.43221327662467957, 0.09258870780467987, -0.3713911473751068, 0.21726973354816437, 0.5985461473464966, 0.2274557501077652, 0.7674906253814697, -0.01135493814945221, 0.17925500869750977, -0.7021572589874268, 0.20194609463214874, -0.03190333768725395, 0.4117834270000458, 0.26606485247612, -0.5601774454116821, 0.6113272905349731, 0.5480039119720459, -0.5295183062553406, -0.6315023899078369, 0.07768448442220688, -1.1714340448379517, -0.18305525183677673, 0.950609564781189, -0.2338760644197464, -0.403689444065094, 0.15721581876277924, -0.4035588800907135, 0.2368212789297104, -0.6018412113189697, 0.6147544980049133, 0.5002491474151611, -0.37836629152297974, -0.43909499049186707, -0.5016763806343079, 0.4179052412509918, 0.17158539593219757, -0.8058176636695862, -0.4242823123931885, 0.4291095733642578, 0.709894061088562, 0.505891740322113, 0.6946482062339783, -0.34953099489212036, 0.31047216057777405, -0.09988828748464584, 0.24065718054771423, 0.1961831897497177, -0.04365124925971031, -0.41036373376846313, -0.05998822674155235, -0.192435160279274, -0.05914835259318352 ]
medical-ner-proj/bert-medical-ner-proj
medical-ner-proj
"2023-05-07T02:46:47Z"
44,153
21
transformers
[ "transformers", "pytorch", "bert", "token-classification", "license:openrail", "autotrain_compatible", "endpoints_compatible", "region:us" ]
token-classification
"2023-05-05T04:33:38Z"
--- license: openrail --- Medical documents NER model by fine tuning BERT widget: - example_title: "example 1" text: "John Doe has a history of hypertension, which is well-controlled with medication. He has no history of allergies or surgeries. He is not currently taking any medication except for his blood pressure medication." - example_title: "example 2" text: "On physical examination, John Doe appears acutely ill. He has a temperature of 38.5°C and a heart rate of 105 beats per minute. His blood pressure is 140/90 mmHg, and his oxygen saturation is 90% on room air. His lungs have diminished breath sounds and wheezing. There is no cyanosis, and his heart sounds are normal." - example_title: "example 3" text: "Based on Mary Smith's symptoms and physical examination, she is suspected to have suffered a stroke, likely caused by hypertension. Her history of migraines may also be a contributing factor."
[ -0.16242289543151855, -0.9424222111701965, 0.8770573139190674, -0.3481738269329071, -0.184760183095932, -0.6908562183380127, 0.08317398279905319, -0.33765968680381775, 0.48017972707748413, 0.8144979476928711, -0.39384517073631287, -0.43882372975349426, -0.8015531301498413, 0.09062617272138596, -0.4212714433670044, 1.471747875213623, 0.1372029334306717, 0.3140174150466919, 0.007017839699983597, 0.36205771565437317, -0.43540531396865845, -0.4883658289909363, -0.7774786949157715, -0.6108051538467407, 0.6311588287353516, 0.28806373476982117, 0.9016849994659424, 0.3434349298477173, 0.8740407824516296, 0.280343234539032, -0.3924283981323242, -0.2933329641819, -0.4050791263580322, 0.42969316244125366, 0.12201952189207077, -0.16547100245952606, -0.8001354932785034, -0.1969386339187622, 0.5465337634086609, 0.2669191062450409, 0.02684718742966652, -0.058801811188459396, -0.1346266120672226, 0.8862977623939514, -0.07292287796735764, 0.001369183650240302, -0.3105625510215759, -0.15547873079776764, -0.05420222878456116, -0.28263041377067566, -0.3683449327945709, -0.1621718853712082, 0.5098534822463989, -0.7068442106246948, 0.3776489496231079, -0.13006435334682465, 1.5289270877838135, 0.2833593785762787, -0.5708097219467163, -0.20559942722320557, -0.6316714286804199, 0.5128973126411438, -1.0194662809371948, 0.28337860107421875, 0.5583065748214722, 0.0873749703168869, -0.4976973533630371, -0.7793759703636169, -0.5726773142814636, -0.24835205078125, -0.12043513357639313, 0.22231844067573547, -0.41935425996780396, 0.012377030216157436, 0.3837079703807831, 0.4990912079811096, -0.6288108229637146, -0.03080753982067108, -0.5208960175514221, -0.25130629539489746, 0.30463314056396484, 0.6488455533981323, 0.2364608347415924, -0.5493015646934509, -0.37478822469711304, -0.06597267836332321, -0.16806918382644653, -0.0424768403172493, 0.2667272388935089, 0.35884588956832886, -0.37121936678886414, 0.5704312920570374, -0.07809972018003464, 1.1679710149765015, 0.2279069572687149, -0.4532514810562134, 0.5458330512046814, -0.17447136342525482, -0.43642693758010864, -0.006782868877053261, 0.5620744228363037, 0.5360435247421265, 0.2929135262966156, 0.08411756157875061, -0.30522313714027405, -0.20728376507759094, 0.6704186201095581, -0.8959846496582031, -0.6997716426849365, 0.14401590824127197, -0.9045265316963196, -0.030001675710082054, -0.03395676985383034, -0.600060224533081, -0.3807678520679474, -0.5942787528038025, 0.7419629693031311, -0.7254584431648254, -0.1270928680896759, -0.24564193189144135, -0.5091063380241394, -0.023825449869036674, 0.331339567899704, -0.6251714825630188, 0.2788129150867462, 0.2754363715648651, 0.47416451573371887, 0.3129185736179352, 0.08443935960531235, -0.2365187108516693, 0.07814504206180573, -0.12564125657081604, 0.8996064066886902, -0.4212421774864197, -0.6005606651306152, -0.19915273785591125, 0.18818055093288422, 0.0059078349731862545, -0.20698393881320953, 0.7840020060539246, -0.1352711021900177, 0.3415238559246063, -0.43920040130615234, -0.6310647130012512, -0.32491448521614075, 0.1506435126066208, -0.7481997609138489, 0.7118508815765381, 0.2409665435552597, -0.9779189825057983, 0.5600438117980957, -0.6576509475708008, -0.6143592596054077, 0.013704837299883366, -0.03013646975159645, -0.5942190885543823, 0.16154272854328156, 0.09470765292644501, 0.474802166223526, -0.13065330684185028, 0.1669384241104126, -0.28427988290786743, -0.21474146842956543, 0.2773182988166809, -0.2196374088525772, 0.6224956512451172, 0.04404199495911598, 0.248147651553154, 0.0898958146572113, -0.9263229966163635, 0.19352765381336212, 0.06263809651136398, -0.4486368000507355, -0.5969418883323669, 0.11664988845586777, 0.46711134910583496, 0.14357396960258484, 0.42195531725883484, -0.5887047648429871, 0.34473809599876404, -0.6460986733436584, 0.10254013538360596, 0.33256903290748596, 0.6797041296958923, 0.15666714310646057, -0.8551433086395264, 0.1508285105228424, -0.15610414743423462, 0.5425215363502502, 0.16306667029857635, -0.805999755859375, -0.8232958912849426, -0.3286503851413727, 0.17066025733947754, 0.5064910650253296, -0.3888400197029114, 0.4746394753456116, -0.06506887823343277, -0.6152946949005127, -0.31765469908714294, -0.04065351560711861, 0.44534653425216675, 1.2221198081970215, 0.5531413555145264, -0.06104205176234245, -0.5039612054824829, -1.1501778364181519, -0.06855393201112747, -0.07120873779058456, -0.029881929978728294, 0.44352206587791443, 0.446757972240448, -0.40452080965042114, 0.39481768012046814, -0.7097764611244202, -0.609850287437439, -0.21300257742404938, 0.536640465259552, 0.7870875000953674, 0.5226216912269592, 0.41744643449783325, -0.7381333708763123, -0.32815057039260864, 0.030559174716472626, -0.4807107746601105, -0.03854819014668465, -0.06757059693336487, -0.03508888557553291, 0.44770336151123047, 0.6161260008811951, -0.2720732092857361, 0.8970136046409607, 0.33405107259750366, -0.5308640599250793, 0.29172757267951965, -0.9168872833251953, -0.029441766440868378, -1.4823778867721558, 0.28884556889533997, 0.27097636461257935, 0.04733942449092865, -0.7423000931739807, -0.1750214397907257, 0.09238212555646896, -0.0010218026582151651, -0.16657637059688568, 0.5785092115402222, -0.45916399359703064, 0.43699517846107483, -0.6150262951850891, -0.22365312278270721, 0.23256349563598633, 0.015051629394292831, -0.10250216722488403, 0.146537184715271, 0.3978135585784912, -0.6880740523338318, -0.01684120111167431, 0.32977670431137085, 0.00009299667726736516, 0.5960173010826111, -0.9427891373634338, -0.271610826253891, -0.24056366086006165, -0.10191212594509125, -0.7137230634689331, -0.44481733441352844, -0.1902925968170166, -0.6645354628562927, 0.6091204881668091, -0.0340094193816185, -0.8331553936004639, -0.18658192455768585, -0.011027931235730648, -0.38011541962623596, 0.5943557024002075, 0.03091426007449627, 0.7633500695228577, 0.28418079018592834, -0.3413398861885071, -0.1760442703962326, -0.49539756774902344, -0.06273689866065979, 0.11395471543073654, -0.4736182689666748, 0.5331407785415649, -0.14293751120567322, -0.1054573804140091, 0.29241928458213806, -0.15479837357997894, -0.8496602177619934, 0.004581395070999861, 0.6114661693572998, 0.6654676198959351, -0.06324701011180878, 0.47788292169570923, 0.09240052849054337, -0.08374188840389252, 0.08387664705514908, 0.4755527079105377, 0.3424687683582306, -0.08347824960947037, 0.04499427229166031, -0.7552927136421204, 0.6326919794082642, 0.7267041206359863, 0.2652779817581177, 0.4527146518230438, 0.6245107054710388, -0.6425042152404785, 0.5518084168434143, -0.7556832432746887, -0.3145933151245117, -0.34645217657089233, 0.2572195529937744, -0.25283336639404297, -0.36122339963912964, 0.7789303064346313, 0.3489288091659546, -0.22671806812286377, 0.8793839812278748, 0.6661227941513062, -0.5147246718406677, 0.964301586151123, 0.7053715586662292, 0.07224338501691818, 0.46399593353271484, 0.02563493140041828, 0.23446431756019592, -0.9408543705940247, -0.41322270035743713, -0.814843475818634, -0.3562084138393402, -0.777157723903656, 0.16804267466068268, 0.7664765119552612, -0.08897281438112259, -0.43129345774650574, 0.31461843848228455, -0.7792056202888489, 0.42611926794052124, 0.7336572408676147, 0.5365312695503235, -0.04724932089447975, -0.25282663106918335, -0.4215550720691681, -0.11825495958328247, -0.6125808954238892, -0.4371449649333954, 1.1089946031570435, 0.20810054242610931, 0.9498295187950134, 0.039153072983026505, 0.8148163557052612, -0.15781639516353607, 0.316335529088974, -0.5281559228897095, 0.137101411819458, -0.5607209205627441, -1.326818585395813, -0.5499871373176575, -0.12422813475131989, -1.2405030727386475, -0.38566043972969055, -0.9600728154182434, -0.8103699088096619, 0.13202744722366333, 0.21603964269161224, -0.2711646854877472, 0.03591398149728775, -0.9321724772453308, 0.6579164862632751, -0.2125129997730255, -0.19674919545650482, 0.17112883925437927, -0.7859628200531006, 0.24925655126571655, -0.009717648848891258, 0.0432596355676651, -0.03720378130674362, 0.13326524198055267, 0.7777866125106812, -0.6695688366889954, 0.7112399339675903, -0.20188581943511963, 0.4457703232765198, -0.10145648568868637, -0.14864133298397064, 0.36802324652671814, -0.13792826235294342, -0.08524131774902344, 0.020576195791363716, 0.24473688006401062, -0.391313374042511, -0.37581539154052734, 0.8723791837692261, -0.7430493831634521, -0.20056889951229095, -0.7240541577339172, -0.8667546510696411, 0.11407466232776642, 0.5214151740074158, 0.5309489965438843, 0.4539828300476074, -0.026290498673915863, 0.16503621637821198, 0.5248371362686157, -0.2122494876384735, 0.40551018714904785, 0.8124032020568848, 0.13801832497119904, -0.4349740147590637, 0.3635634183883667, 0.26307156682014465, 0.05338330194354057, 0.35343584418296814, 0.4929429292678833, -0.19090695679187775, -0.398113489151001, -0.15885484218597412, 0.2764558494091034, -0.5895184278488159, -0.22768576443195343, -0.6411150097846985, -0.5150309205055237, -0.4487365484237671, -0.2666977643966675, 0.10815488547086716, -0.03057781234383583, -0.8235818147659302, 0.2129039615392685, 0.8524555563926697, 0.9627506732940674, 0.1494227796792984, 0.3823266923427582, -0.9278544187545776, 0.5344880223274231, 0.2944684326648712, 0.26273420453071594, -0.01242193952202797, -0.6756588220596313, -0.08216069638729095, -0.5555371642112732, -0.4327002167701721, -1.0277000665664673, 0.6274999976158142, -0.05878723785281181, 0.7651189565658569, 0.4820694625377655, 0.20180043578147888, 1.1048001050949097, -0.4787589907646179, 0.6349568963050842, 0.3834006190299988, -0.8159682750701904, 0.7536606788635254, -0.4271087050437927, 0.43874064087867737, 0.6606900095939636, 0.5124598145484924, -0.2823672592639923, -0.3725336492061615, -0.9078877568244934, -0.9774990677833557, 0.27929288148880005, 0.060518473386764526, 0.057673439383506775, -0.08119606971740723, 0.4372071325778961, 0.024783458560705185, -0.3891806900501251, -0.8283714056015015, -0.18404385447502136, -0.05917033180594444, -0.025528160855174065, 0.014122307300567627, -0.3186993896961212, -0.1779061257839203, -0.7813339829444885, 0.8400596380233765, 0.11910513043403625, 0.24237751960754395, 0.7928253412246704, 0.2456173300743103, -0.09164340049028397, 0.3629456162452698, 0.8259783983230591, 0.7236669063568115, -0.9349818825721741, -0.1737273782491684, 0.008940414525568485, -0.5496758222579956, -0.2787039577960968, 0.48570936918258667, -0.17756111919879913, 0.40618187189102173, 0.49801528453826904, 0.7165008783340454, 0.2621839642524719, -0.2091549038887024, 0.6174819469451904, -0.260084331035614, -0.583366334438324, -0.5399468541145325, 0.377628892660141, 0.10404060035943985, -0.02033325657248497, 0.3002057671546936, 0.1494346708059311, 0.1892976015806198, -0.46363916993141174, 0.11631030589342117, 0.37217992544174194, -0.6175050735473633, 0.009568160399794579, 0.6630810499191284, 0.3241942524909973, -0.4092403054237366, 0.730233907699585, 0.06600099802017212, -0.18380530178546906, 0.45151010155677795, 0.5714126825332642, 0.5664159059524536, -0.035046160221099854, -0.3398396074771881, 0.5218390226364136, 0.39364251494407654, 0.17580349743366241, 1.0772373676300049, 0.4706144332885742, -0.2600806951522827, -0.37069371342658997, -0.5117954015731812, -0.45229414105415344, 0.47312530875205994, -1.111804485321045, 0.34126710891723633, -0.45297104120254517, -0.7279500961303711, 0.7877962589263916, -0.0248013474047184, -0.8179743885993958, 0.6088179349899292, -0.18320930004119873, 1.0029901266098022, -1.0460798740386963, 1.0190101861953735, 0.6588149070739746, -0.43261468410491943, -0.9466435313224792, 0.15867944061756134, 0.014901721850037575, -0.5110510587692261, 0.7270665168762207, -0.11621271073818207, 0.4733690917491913, -0.46380773186683655, -0.3154466152191162, -0.916449248790741, 0.9470562934875488, 0.0024414779618382454, -0.6542981863021851, 0.0009455409599468112, -0.7948992848396301, 0.8413668274879456, 0.03200443089008331, 0.21536360681056976, 0.08614110946655273, 0.684678852558136, -0.1727810651063919, -1.1133166551589966, -0.07761963456869125, -0.4433329105377197, -0.1215704157948494, 0.5641484260559082, -0.15391559898853302, 1.3286298513412476, -0.39446982741355896, 0.18740597367286682, 0.07256381958723068, 0.011760837398469448, 0.06055723503232002, 0.7150499224662781, 0.2771632671356201, 0.8652788400650024, 0.6832308769226074, -0.1192549467086792, 1.423335313796997, -0.39124247431755066, 0.09678920358419418, 1.2385039329528809, -0.22889798879623413, 1.0580673217773438, 0.7535840272903442, 0.03846902772784233, 0.7971715927124023, 0.3431088328361511, -0.11695852875709534, 0.5182549357414246, 0.23152533173561096, -0.14640754461288452, -0.15072987973690033, 0.08475961536169052, -0.7636224627494812, 0.4051975607872009, 0.5562360286712646, -0.9499607682228088, -0.2628069818019867, -0.22917146980762482, 0.24756579101085663, 0.04275056719779968, -0.28209441900253296, 0.8898187875747681, -0.2953895032405853, -0.6548542380332947, 0.6492114663124084, -0.19738173484802246, 0.2566949725151062, -0.6345606446266174, -0.24064794182777405, 0.12849871814250946, 0.09226246178150177, -0.2501848638057709, -0.6974861025810242, 0.4359714686870575, 0.04484638571739197, -0.9460768699645996, -0.0714002326130867, 0.7890734076499939, 0.21715013682842255, -0.7355383634567261, 0.13382188975811005, 0.38319116830825806, 0.4522932171821594, 0.21154841780662537, -0.5624642968177795, -0.17710407078266144, -0.11165455728769302, -0.05091748386621475, 0.315839946269989, 0.34136348962783813, 0.14115206897258759, 0.37770938873291016, 0.9062617421150208, 0.392387330532074, -0.35687747597694397, 0.017934750765562057, 0.782664954662323, -0.7615930438041687, -0.34149041771888733, -0.5650085806846619, 0.3269072473049164, -0.37108227610588074, -0.897936224937439, 0.5326279401779175, 0.5612177848815918, 0.47125574946403503, -0.18759188055992126, 0.4412383437156677, -0.05999727174639702, 0.935507595539093, -0.5944848656654358, 1.1490353345870972, -0.7176293134689331, -0.28466537594795227, -0.48426252603530884, -0.5708310008049011, -0.38297104835510254, 0.7945379018783569, -0.3090609014034271, -0.1306966096162796, 1.019330382347107, 0.7744495272636414, 0.23436568677425385, -0.22401152551174164, 0.08845629543066025, 0.45614558458328247, 0.09461131691932678, 0.5683189630508423, 0.1627930998802185, -0.4654243290424347, 0.32367873191833496, -0.23477937281131744, -0.16956683993339539, -0.6434926986694336, -1.0627844333648682, -1.0166751146316528, -0.7200271487236023, -0.33480677008628845, -0.5963447690010071, 0.01288518961519003, 0.5781609416007996, 0.9565333724021912, -0.578410267829895, 0.30162009596824646, 0.07524001598358154, -0.039206575602293015, -0.05487380176782608, -0.2109200358390808, 0.3947892189025879, 0.033782992511987686, -0.3598547577857971, 0.20225542783737183, 0.2643364667892456, 0.6977306008338928, 0.1945033073425293, 0.0874708816409111, -0.17996320128440857, -0.04170011356472969, 0.2583591938018799, 0.26006409525871277, -0.9715802669525146, -0.06348442286252975, -0.03955357149243355, -0.4550252854824066, 0.016890790313482285, 0.3067748248577118, -0.5956924557685852, 0.7695503830909729, 0.6900173425674438, 0.06968237459659576, 0.6626185178756714, -0.18031392991542816, 0.05263681709766388, -0.4933253824710846, -0.11703573912382126, 0.532687783241272, 0.4805343747138977, 0.11956249922513962, -0.5231822729110718, 0.046822257339954376, -0.17626670002937317, -0.7858612537384033, -0.7025289535522461, -0.15860715508460999, -1.4347479343414307, -0.37432777881622314, 0.6920335292816162, 0.15156716108322144, -0.25490131974220276, -0.20088955760002136, -0.19241440296173096, 0.24333104491233826, -0.6927043795585632, 0.7919748425483704, 0.7738832235336304, -0.6894591450691223, 0.20950080454349518, -0.9976806640625, 0.025473948568105698, 0.33435186743736267, -0.5906836986541748, -0.3997544050216675, 0.39985084533691406, 0.6714692711830139, 0.302811861038208, 0.5246307253837585, -0.13032233715057373, 0.5027414560317993, 0.08664796501398087, 0.3133982717990875, -0.16515865921974182, -0.011289894580841064, -0.16067707538604736, 0.015743974596261978, 0.053427763283252716, -0.2089158147573471 ]
rungalileo/onnx_roberta_large_goemotions
rungalileo
"2023-09-27T15:50:29Z"
44,136
0
transformers
[ "transformers", "onnx", "roberta", "text-classification", "endpoints_compatible", "region:us" ]
text-classification
"2023-09-27T15:47:28Z"
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 ]
JiaqiLee/imdb-finetuned-bert-base-uncased
JiaqiLee
"2023-03-28T08:07:13Z"
43,983
3
transformers
[ "transformers", "pytorch", "bert", "text-classification", "en", "dataset:imdb", "license:openrail", "endpoints_compatible", "region:us" ]
text-classification
"2023-03-24T12:23:18Z"
--- license: openrail datasets: - imdb language: - en metrics: - accuracy library_name: transformers pipeline_tag: text-classification --- ## Model description This model is a fine-tuned version of the [bert-base-uncased](https://huggingface.co/transformers/model_doc/bert.html) model to classify the sentiment of movie reviews into one of two categories: negative(label 0), positive(label 1). ## How to use You can use the model with the following code. ```python from transformers import BertForSequenceClassification, BertTokenizer, TextClassificationPipeline model_path = "JiaqiLee/imdb-finetuned-bert-base-uncased" tokenizer = BertTokenizer.from_pretrained(model_path) model = BertForSequenceClassification.from_pretrained(model_path, num_labels=2) pipeline = TextClassificationPipeline(model=model, tokenizer=tokenizer) print(pipeline("The movie depicted well the psychological battles that Harry Vardon fought within himself, from his childhood trauma of being evicted to his own inability to break that glass ceiling that prevents him from being accepted as an equal in English golf society.")) ``` ## Training data The training data comes from HuggingFace [IMDB dataset](https://huggingface.co/datasets/imdb). We use 90% of the `train.csv` data to train the model and the remaining 10% for evaluation. ## Evaluation results The model achieves 0.91 classification accuracy in IMDB test dataset.
[ -0.6809847950935364, -0.40846318006515503, -0.10649888217449188, 0.19459566473960876, -0.5443185567855835, -0.012807483784854412, 0.0029841794166713953, -0.11900948733091354, 0.3600194454193115, 0.5017411112785339, -0.8402675986289978, -0.3674204349517822, -0.6959536671638489, -0.12115095555782318, -0.4614753723144531, 1.8262085914611816, 0.08515378832817078, 0.5884503126144409, -0.1712014377117157, -0.1256706267595291, 0.07444970309734344, -0.780396044254303, -0.16595818102359772, -0.5691718459129333, 0.39826709032058716, 0.04103942960500717, 0.7107616662979126, 0.06124044209718704, 0.5516928434371948, 0.2765306532382965, -0.158835768699646, -0.1397826075553894, -0.47776949405670166, -0.1285724937915802, -0.21157629787921906, -0.345868319272995, -0.33466747403144836, 0.2320144772529602, 0.34966403245925903, 0.33306461572647095, -0.034605059772729874, 0.3969603478908539, 0.04454660043120384, 0.4304070472717285, -0.1519871950149536, 0.31912657618522644, -0.45972928404808044, 0.22814004123210907, 0.06310504674911499, 0.1684034913778305, -0.22689349949359894, -0.4094655215740204, 0.263584703207016, -0.2133672833442688, 0.45159393548965454, -0.1382889747619629, 1.2548809051513672, 0.06305774301290512, -0.23783759772777557, -0.08929881453514099, -0.6063106060028076, 0.8554171919822693, -0.7151983976364136, 0.17511072754859924, 0.13105149567127228, 0.11894074082374573, 0.15911708772182465, -0.22082345187664032, -0.7587219476699829, -0.14016008377075195, 0.05399629473686218, 0.046172235161066055, -0.15251976251602173, 0.19547179341316223, 0.31550201773643494, 0.6581150889396667, -0.23102346062660217, -0.038834214210510254, -0.5852444171905518, -0.3538118004798889, 0.4754219651222229, 0.005223373882472515, 0.035103753209114075, -0.7069122195243835, -0.5310960412025452, -0.36450010538101196, -0.026662705466151237, 0.49624812602996826, 0.33264675736427307, 0.3442411422729492, -0.07252248376607895, 0.8339992761611938, -0.08683183044195175, 0.2917070984840393, 0.3154396712779999, 0.05882994085550308, 0.581344723701477, 0.06259480118751526, -0.25397756695747375, 0.0022843170445412397, 0.6601195931434631, 0.9054793119430542, 0.5538594126701355, 0.12587082386016846, -0.44800060987472534, 0.5321191549301147, 0.46123573184013367, -0.9517930746078491, -0.21156057715415955, 0.29067757725715637, -0.611443281173706, -0.5403384566307068, 0.16185662150382996, -0.7568106651306152, -0.4942304193973541, -0.2728840410709381, 0.6942199468612671, -0.4936767816543579, -0.3263952434062958, -0.09810252487659454, -0.2968314290046692, 0.37360236048698425, 0.24544823169708252, -0.7701336145401001, -0.022125981748104095, 0.5086544752120972, 0.7346839904785156, 0.060882970690727234, -0.17450134456157684, -0.24422532320022583, -0.22862693667411804, -0.06978639215230942, 0.7685409188270569, -0.18027806282043457, -0.277137815952301, 0.30309590697288513, 0.03093591332435608, 0.17306771874427795, -0.24890509247779846, 0.8379650115966797, -0.45899540185928345, 0.3868756592273712, 0.09809055924415588, -0.6063091158866882, -0.36681362986564636, 0.6736716628074646, -0.5281322002410889, 0.6372708678245544, 0.3636137843132019, -0.7482178211212158, 0.5199905037879944, -0.4776545464992523, -0.19316504895687103, -0.24169015884399414, 0.10595202445983887, -0.7359205484390259, 0.1549978107213974, 0.14089439809322357, 0.48259487748146057, -0.01071076188236475, 0.26383906602859497, -0.627500593662262, -0.4011421799659729, 0.1982935220003128, -0.091883085668087, 0.776456356048584, 0.2599390149116516, -0.04478602856397629, 0.13757577538490295, -0.6212408542633057, 0.08045579493045807, -0.18607255816459656, -0.35651883482933044, -0.1525518149137497, -0.09719981998205185, 0.3878548741340637, 0.4767902195453644, 0.15800313651561737, -0.7581900358200073, 0.24729834496974945, -0.5143240690231323, 0.0942939892411232, 0.679972231388092, 0.09273514896631241, 0.47537627816200256, -0.3458179235458374, 0.380832314491272, 0.37664932012557983, 0.36455586552619934, 0.19760912656784058, -0.299033522605896, -1.0970591306686401, -0.14141452312469482, 0.25113236904144287, 0.5232250094413757, -0.4597748816013336, 0.6006509065628052, -0.037341099232435226, -0.633658230304718, -0.6026766300201416, 0.025980239734053612, 0.29908379912376404, 0.3714626133441925, 0.3972529172897339, -0.6824092268943787, -0.7440887093544006, -0.9842383861541748, 0.07091329991817474, -0.4986926019191742, -0.10532039403915405, 0.280358225107193, 0.33035406470298767, -0.6600430011749268, 0.7987961173057556, -0.2714843153953552, -0.6663050651550293, -0.10051050782203674, 0.3515416979789734, 0.8384072184562683, 0.5299569964408875, 0.3771592080593109, -0.49345651268959045, -0.2456110119819641, -0.37031665444374084, -0.8357602953910828, 0.06162836030125618, 0.1048486977815628, -0.15661540627479553, 0.1732398271560669, 0.15706050395965576, -0.6896166801452637, 0.3599454164505005, 0.24590729176998138, -0.3840547800064087, 0.6601407527923584, 0.06735335290431976, 0.10716996341943741, -0.8518208861351013, -0.2655850648880005, 0.2746005356311798, 0.1406068652868271, -0.370667964220047, -0.1170244812965393, -0.1596013307571411, -0.007722258567810059, -0.3278336822986603, 0.3026816248893738, 0.0675995945930481, 0.16693496704101562, -0.12841954827308655, -0.27927422523498535, 0.042016658931970596, 0.792595386505127, 0.1498933881521225, 0.10331668704748154, 0.5086951851844788, -0.6160176396369934, 0.4978851079940796, 0.5381324291229248, -0.474111407995224, 0.551288366317749, -0.5725260972976685, -0.0647149607539177, -0.38471755385398865, 0.146797314286232, -1.0513269901275635, -0.22904840111732483, 0.07581999897956848, -0.5894116163253784, 0.2231394350528717, -0.17168577015399933, -0.3733298182487488, -0.5549094080924988, -0.630084216594696, -0.07854804396629333, 0.6607363820075989, -0.6025823354721069, 0.8004651069641113, 0.4240892827510834, 0.07376335561275482, -0.6528480052947998, -0.6353532671928406, -0.418231725692749, -0.23603913187980652, -0.46910780668258667, 0.15059174597263336, -0.17172007262706757, -0.06320201605558395, -0.18622855842113495, -0.14609366655349731, -0.3968328535556793, -0.42137935757637024, 0.4142321050167084, 0.47009456157684326, -0.06717479974031448, 0.12495195120573044, 0.058782681822776794, -0.009513740427792072, 0.2596910297870636, 0.2435675710439682, 0.48692092299461365, -0.3255435824394226, 0.22613944113254547, -0.21068577468395233, 0.13412810862064362, 0.5749686360359192, 0.07885386794805527, 0.6047802567481995, 1.1261457204818726, -0.19199177622795105, -0.2663225829601288, -0.40147942304611206, -0.3828199505805969, -0.42346566915512085, 0.5693840980529785, -0.2956364154815674, -0.6152776479721069, 0.5279280543327332, 0.2380640208721161, 0.09623631834983826, 0.5939926505088806, 0.6316107511520386, -0.4958620071411133, 1.1519396305084229, 0.7878104448318481, -0.19496099650859833, 0.5558717250823975, -0.4176235795021057, 0.19203563034534454, -0.6546199917793274, -0.379489541053772, -0.2716916501522064, -0.22436700761318207, -0.5873352885246277, -0.04191135615110397, 0.24471139907836914, 0.41528818011283875, -0.5835183262825012, 0.4541158974170685, -0.7780829071998596, 0.3214069902896881, 0.6509166955947876, 0.24860475957393646, -0.0063669076189398766, 0.1544431447982788, -0.1525733917951584, -0.16084983944892883, -0.30247440934181213, -0.647747278213501, 0.8398376703262329, 0.613750696182251, 1.1530736684799194, 0.295574814081192, 0.486668199300766, 0.4340890049934387, 0.5509265065193176, -0.884383499622345, 0.497984379529953, -0.5031899809837341, -0.9984354972839355, -0.030315494164824486, -0.05085230618715286, -0.3860378861427307, 0.08157078921794891, -0.41771531105041504, -0.6792241930961609, 0.3654159605503082, -0.029052285477519035, -0.20571255683898926, 0.3123045563697815, -0.8788742423057556, 0.8281261920928955, -0.16128641366958618, -0.2170800417661667, -0.217437282204628, -0.6506662368774414, 0.38801005482673645, -0.1068979874253273, 0.024992862716317177, -0.22878243029117584, 0.42147693037986755, 0.8638763427734375, -0.3795087933540344, 0.9649574756622314, -0.45699355006217957, 0.12313783913850784, 0.37883174419403076, 0.2411663979291916, 0.0352867990732193, 0.17980976402759552, -0.2841950058937073, 0.48013874888420105, 0.26880690455436707, -0.11137885600328445, -0.25480496883392334, 0.5369208455085754, -1.272418737411499, -0.29308292269706726, -0.753655195236206, -0.30769896507263184, -0.2665724754333496, 0.12989839911460876, 0.3663833439350128, 0.2847824692726135, -0.15190817415714264, 0.16710729897022247, 0.4665008783340454, -0.27970367670059204, 0.34254762530326843, 0.46222391724586487, -0.5139074325561523, -0.5195536613464355, 0.6493866443634033, -0.05859668180346489, -0.023413749411702156, 0.31212541460990906, 0.12965893745422363, -0.4994252324104309, -0.148548886179924, -0.21221818029880524, 0.184922993183136, -0.7847769856452942, -0.4029901325702667, -0.674961507320404, -0.6847542524337769, -0.25337734818458557, 0.10034402459859848, -0.24630995094776154, -0.22516268491744995, -0.2509819567203522, -0.2906666696071625, 0.5028976798057556, 0.6294916272163391, -0.16575966775417328, 0.43243151903152466, -0.616136372089386, 0.18912041187286377, 0.31150639057159424, 0.6933166980743408, -0.18462829291820526, -0.8000017404556274, -0.32694438099861145, -0.05292115733027458, -0.4912686049938202, -0.6923983097076416, 0.5423775911331177, 0.2703956067562103, 0.17232179641723633, 0.4796592891216278, 0.07834932953119278, 0.49945560097694397, -0.2536022365093231, 0.9132517576217651, 0.39877715706825256, -0.9260213375091553, 0.3993927836418152, -0.31881722807884216, 0.1355917900800705, 0.6284094452857971, 0.4651696979999542, -0.315838485956192, -0.19866158068180084, -0.5871384143829346, -0.7065864205360413, 0.9494542479515076, 0.0973295047879219, 0.4045455753803253, 0.15125146508216858, 0.06798720359802246, 0.2359716147184372, 0.4796292781829834, -1.2434749603271484, -0.10752016305923462, -0.7113468647003174, -0.1541670560836792, -0.37038931250572205, -0.3639151453971863, 0.017247147858142853, -0.6709421873092651, 0.895662248134613, 0.1668386161327362, 0.6131284832954407, 0.1427200883626938, -0.06621324270963669, -0.2501016855239868, 0.13884150981903076, 0.06545136868953705, 0.12834705412387848, -1.1735810041427612, 0.03876945748925209, -0.1388646960258484, -0.3423924148082733, -0.0006498069851659238, 0.1468852460384369, -0.04302861541509628, 0.3677137792110443, 0.14824038743972778, 0.8376356363296509, -0.2733444273471832, -0.4719831943511963, 0.5799011588096619, -0.14755403995513916, -0.15861104428768158, -0.4823666214942932, 0.05921211093664169, -0.25633978843688965, 0.2806943655014038, 0.2019379436969757, 0.3686824440956116, 0.13357394933700562, -0.6319300532341003, 0.46331557631492615, 0.3767097592353821, -0.6713243722915649, -0.17298176884651184, 0.47774872183799744, 0.22469086945056915, -0.336465060710907, 0.9105146527290344, -0.14191986620426178, -0.7076804041862488, 0.436354398727417, 0.25151386857032776, 1.0028636455535889, -0.11383148282766342, 0.4192136824131012, 0.7305509448051453, 0.17848917841911316, 0.21178945899009705, 0.11785492300987244, -0.07300187647342682, -1.0606682300567627, -0.2371901124715805, -1.1085952520370483, -0.5572872757911682, 0.3043542802333832, -0.8096535801887512, 0.5475742220878601, -0.7192122936248779, -0.3873734176158905, 0.29904666543006897, -0.11433839052915573, -0.538402795791626, 0.47910937666893005, 0.3790857195854187, 0.8276681303977966, -0.9308227300643921, 0.9772874712944031, 0.6463517546653748, -0.8932960033416748, -0.8108904957771301, -0.24825701117515564, -0.2748482823371887, -0.5768957734107971, 0.6109544634819031, 0.5817863941192627, 0.16305360198020935, -0.2528611421585083, -0.5325103998184204, -0.5196444988250732, 0.4711414873600006, -0.0913562998175621, -0.3479127883911133, -0.009280609898269176, -0.1302398145198822, 0.8703503012657166, -0.5145658850669861, 0.5999106168746948, 0.42727363109588623, 0.0921824648976326, 0.03931504115462303, -0.6757782101631165, -0.5125763416290283, -0.5523527264595032, -0.12306440621614456, 0.1234583929181099, -0.488616943359375, 0.9982650279998779, -0.10833501070737839, 0.22270682454109192, 0.15656158328056335, 0.4055106043815613, 0.2665572464466095, 0.24322247505187988, 0.7544765472412109, 0.37293729186058044, 0.17466053366661072, -0.2549782693386078, 0.9252458214759827, -0.15384872257709503, 0.9459691047668457, 0.6804114580154419, -0.05613791197538376, 0.86069256067276, 0.554607093334198, -0.2994620203971863, 1.018102765083313, 0.8472791910171509, -0.5676940083503723, 0.8715106844902039, 0.2588561773300171, -0.17941641807556152, -0.22681032121181488, -0.24927504360675812, -0.1824999898672104, 0.3439822494983673, 0.2740848958492279, -0.5537100434303284, -0.21478602290153503, 0.06200861558318138, -0.19447818398475647, -0.12030964344739914, -0.5469239950180054, 0.6796101331710815, 0.03315119072794914, -0.7796210646629333, 0.5388869643211365, 0.051005154848098755, 1.0542274713516235, -0.7655696868896484, 0.03806489706039429, -0.13567514717578888, 0.6385682225227356, -0.39336541295051575, -0.9825382232666016, 0.20533891022205353, 0.14978185296058655, -0.6326509714126587, -0.07027910649776459, 0.5070973038673401, -0.5621188282966614, -0.6754451394081116, 0.28261423110961914, 0.015047076158225536, 0.454000324010849, 0.11357353627681732, -1.0987982749938965, 0.04870038479566574, 0.3291719853878021, -0.14550817012786865, -0.027460670098662376, 0.027935154736042023, 0.10533346980810165, 0.46699923276901245, 0.42887142300605774, -0.18061651289463043, -0.18747419118881226, 0.3888810873031616, 0.7416821122169495, -0.6780886650085449, -0.5337436199188232, -0.7416043877601624, 0.6669848561286926, -0.17717236280441284, -0.47435498237609863, 0.6827823519706726, 0.45360252261161804, 0.7535451650619507, -0.5832830667495728, 0.42302918434143066, -0.3070767819881439, 0.6483784914016724, -0.12750007212162018, 0.6826112866401672, -0.3920843303203583, 0.05979802832007408, -0.5240892767906189, -1.0736640691757202, -0.18793940544128418, 1.004746913909912, -0.2014717161655426, 0.3330068588256836, 0.48507580161094666, 0.9281542897224426, 0.03857376053929329, -0.034121397882699966, 0.04256452992558479, 0.37939709424972534, 0.21766391396522522, 0.37375789880752563, 0.906273603439331, -0.5294474959373474, 0.43251827359199524, -0.5249500870704651, -0.27625638246536255, -0.2540074288845062, -0.6958402395248413, -1.1845849752426147, -0.5087659955024719, -0.395101934671402, -1.0110329389572144, -0.3597634732723236, 1.025504231452942, 0.9106022715568542, -1.03712797164917, -0.3805024325847626, 0.029508279636502266, 0.015463588759303093, -0.06866154074668884, -0.3086268901824951, 0.3258763253688812, -0.09092046320438385, -0.7905958890914917, -0.21407458186149597, -0.04086143523454666, 0.04335125535726547, -0.4248625636100769, -0.09280306845903397, -0.1841726005077362, 0.18046951293945312, 0.5685036182403564, -0.023986153304576874, -0.7111050486564636, -0.21755634248256683, -0.27121156454086304, -0.2015286237001419, -0.004125751554965973, 0.24199317395687103, -0.631929874420166, 0.6313309073448181, 0.3677631616592407, 0.22129076719284058, 0.7442249655723572, 0.08236386626958847, 0.4415524899959564, -0.7877794504165649, -0.05799301713705063, 0.25679314136505127, 0.48939114809036255, 0.4155886173248291, -0.3863726556301117, 0.4600059688091278, 0.14202821254730225, -0.5806256532669067, -0.8171460032463074, -0.038531530648469925, -1.4519219398498535, -0.09461485594511032, 1.071584701538086, 0.239807590842247, -0.2798398435115814, 0.20962825417518616, -0.4452328085899353, 0.3245672285556793, -0.549669086933136, 0.866729736328125, 0.8759375810623169, -0.24572716653347015, -0.16257895529270172, 0.0009726519347168505, 0.506759524345398, 0.38669824600219727, -0.17996461689472198, -0.394722580909729, 0.3585438132286072, 0.4658755958080292, 0.5715030431747437, 0.24593034386634827, -0.3080415427684784, 0.21203117072582245, -0.13314460217952728, 0.6973310708999634, 0.15836003422737122, -0.020672889426350594, -0.4476259648799896, 0.15992961823940277, -0.022953206673264503, -0.24145250022411346 ]
h2oai/h2ogpt-4096-llama2-70b-chat
h2oai
"2023-08-24T18:35:23Z"
43,909
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:18Z"
--- 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 70B Chat](https://huggingface.co/meta-llama/Llama-2-70b-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, 8192, padding_idx=0) (layers): ModuleList( (0-79): 80 x LlamaDecoderLayer( (self_attn): LlamaAttention( (q_proj): Linear4bit(in_features=8192, out_features=8192, bias=False) (k_proj): Linear4bit(in_features=8192, out_features=1024, bias=False) (v_proj): Linear4bit(in_features=8192, out_features=1024, bias=False) (o_proj): Linear4bit(in_features=8192, out_features=8192, bias=False) (rotary_emb): LlamaRotaryEmbedding() ) (mlp): LlamaMLP( (gate_proj): Linear4bit(in_features=8192, out_features=28672, bias=False) (up_proj): Linear4bit(in_features=8192, out_features=28672, bias=False) (down_proj): Linear4bit(in_features=28672, out_features=8192, bias=False) (act_fn): SiLUActivation() ) (input_layernorm): LlamaRMSNorm() (post_attention_layernorm): LlamaRMSNorm() ) ) (norm): LlamaRMSNorm() ) (lm_head): Linear(in_features=8192, out_features=32000, bias=False) ) ```
[ -0.2803195118904114, -0.7305083274841309, 0.5177844762802124, 0.4746696650981903, -0.39272674918174744, 0.2583894729614258, 0.05255269631743431, -0.5244506597518921, 0.483678936958313, 0.311538428068161, -0.4259498417377472, -0.6894746422767639, -0.6859915256500244, -0.28266972303390503, -0.22648392617702484, 0.812949538230896, 0.030590521171689034, -0.18248990178108215, -0.2837989628314972, -0.12458008527755737, -0.39162132143974304, -0.48818689584732056, -0.708827018737793, -0.5874893665313721, 0.17715871334075928, 0.21532471477985382, 0.6987067461013794, 0.4737197160720825, 0.5610458850860596, 0.27907320857048035, -0.389419823884964, 0.1032356321811676, -0.49445202946662903, -0.19706659018993378, 0.020426658913493156, -0.3658941388130188, -0.8534495234489441, 0.03463679552078247, 0.5013198256492615, 0.09079166501760483, -0.14539502561092377, 0.6218913793563843, 0.31987184286117554, 0.33650970458984375, -0.4736318290233612, 0.3911694586277008, -0.6199927926063538, 0.1025298610329628, -0.0356416217982769, -0.1877875179052353, -0.2729122042655945, -0.011070815846323967, 0.08320225030183792, -0.38503172993659973, -0.18145880103111267, 0.20030109584331512, 1.1166949272155762, 0.4448223114013672, -0.46644923090934753, -0.256397008895874, -0.4464249610900879, 0.7846271991729736, -1.210049033164978, 0.15926091372966766, 0.6187071204185486, 0.32559290528297424, -0.1474372297525406, -0.7628953456878662, -0.5482187867164612, -0.1275932788848877, 0.03487541526556015, 0.30441439151763916, -0.43978849053382874, -0.03784181922674179, 0.17528484761714935, 0.25406503677368164, -0.567251443862915, 0.1710169017314911, -0.3866911828517914, -0.3957332670688629, 0.6472804546356201, 0.08244039863348007, -0.03332602605223656, -0.41792184114456177, -0.650651752948761, -0.08889257907867432, -0.6182498931884766, 0.10990934073925018, 0.49106261134147644, -0.18073199689388275, -0.4408678710460663, 0.7384907603263855, -0.3638201355934143, 0.5957645177841187, 0.3503892123699188, -0.6725499033927917, 0.5413572788238525, -0.38674551248550415, -0.29122281074523926, -0.009974504821002483, 0.9947866797447205, 0.7271313071250916, -0.15557631850242615, 0.41241636872291565, -0.14374490082263947, -0.26949572563171387, -0.014582495205104351, -0.9489308595657349, -0.1842471957206726, 0.44005417823791504, -0.6507593393325806, -0.5298373103141785, -0.13471876084804535, -0.7863670587539673, -0.1756303459405899, 0.07232118397951126, 0.467590868473053, -0.19954630732536316, -0.20682959258556366, 0.020516114309430122, 0.0008574305684305727, 0.5651825070381165, 0.3198365271091461, -0.6217143535614014, 0.2031443566083908, 0.7972151041030884, 1.131637454032898, -0.28903746604919434, -0.09742607176303864, -0.08141456544399261, 0.12305783480405807, 0.014449582435190678, 0.8574221730232239, -0.3627582788467407, -0.3514258861541748, -0.3980632722377777, -0.12905606627464294, 0.08603940904140472, -0.553501307964325, 0.3661932945251465, -0.2844867706298828, 0.39282888174057007, -0.03088170662522316, -0.42120125889778137, -0.45290452241897583, 0.5483871698379517, -0.4346049726009369, 1.1834739446640015, 0.04259570315480232, -0.756094217300415, 0.14406555891036987, -0.6006139516830444, -0.13205242156982422, -0.20894980430603027, -0.2680228352546692, -0.6611558794975281, -0.3580603301525116, 0.21511363983154297, 0.5080333948135376, -0.25778061151504517, 0.05936655029654503, -0.5965192317962646, -0.5107481479644775, 0.3288581073284149, -0.43382272124290466, 0.8431704640388489, 0.1686265617609024, -0.6565777659416199, 0.11986283212900162, -0.7889748215675354, 0.13459713757038116, 0.166498064994812, -0.5349066853523254, 0.13024647533893585, -0.05115969851613045, -0.2179192751646042, 0.317413330078125, 0.3767130672931671, -0.44687697291374207, 0.16035255789756775, -0.16994822025299072, 0.7773275971412659, 0.7167853116989136, 0.18632420897483826, 0.29316121339797974, -0.5281966924667358, 0.5592057704925537, -0.12153852730989456, 0.393627792596817, 0.11545443534851074, -0.9312935471534729, -0.6246347427368164, -0.7711948752403259, 0.18036691844463348, 0.8561633229255676, -0.4975649118423462, 0.6258015632629395, -0.14644820988178253, -0.6181847453117371, -0.6873424053192139, 0.22660526633262634, 0.47208431363105774, 0.4204447865486145, 0.38942989706993103, -0.47476381063461304, -0.4085465669631958, -1.083952784538269, 0.34570205211639404, -0.33487600088119507, -0.2455296665430069, 0.7287529706954956, 0.5403006076812744, -0.4338180720806122, 0.6152558922767639, -0.36991170048713684, -0.28909847140312195, -0.168252095580101, -0.1404084414243698, 0.5855328440666199, 0.3941830098628998, 0.6796663999557495, -0.31481245160102844, -0.39751121401786804, -0.26028138399124146, -0.8389832973480225, -0.20406842231750488, -0.015444197691977024, -0.45316019654273987, 0.1345420926809311, 0.2572847604751587, -0.983579158782959, 0.771933913230896, 0.773330807685852, -0.29331040382385254, 0.41194796562194824, -0.06954916566610336, 0.15908204019069672, -1.3168607950210571, 0.12359610944986343, -0.4409392476081848, -0.34641823172569275, -0.29975879192352295, 0.047146108001470566, -0.0397847443819046, 0.12691542506217957, -0.7675619721412659, 0.5720875263214111, -0.5074485540390015, -0.36075660586357117, -0.29728347063064575, 0.06316500157117844, 0.010295681655406952, 0.7287825345993042, -0.14463065564632416, 0.7060692310333252, 0.4142598509788513, -0.22803062200546265, 0.6293598413467407, 0.4359636902809143, -0.4589507281780243, 0.2372501939535141, -1.137012004852295, 0.30189481377601624, 0.22484241425991058, 0.6893899440765381, -1.352746605873108, -0.31802603602409363, 0.4375467598438263, -0.5910168886184692, 0.13800698518753052, -0.27652138471603394, -0.45538023114204407, -0.489335834980011, -0.8374823331832886, 0.5025431513786316, 0.8520596623420715, -0.5063138604164124, 0.42369675636291504, 0.4624015986919403, -0.04362315312027931, -0.7932804822921753, -0.922022819519043, 0.1688791960477829, -0.31980395317077637, -0.6590303182601929, 0.4112401008605957, 0.01635577902197838, -0.03429746255278587, 0.017617372795939445, -0.06313833594322205, 0.18212130665779114, 0.02860378287732601, 0.7402330636978149, 0.3450634479522705, -0.10012288391590118, -0.3596082627773285, 0.00892744492739439, 0.052218206226825714, 0.04475998878479004, -0.06345201283693314, 1.052553415298462, -0.08122961223125458, -0.6256421208381653, -0.8615086078643799, -0.00009889403736451641, 0.41777434945106506, 0.04592796415090561, 0.3678710162639618, 0.7907577157020569, -0.3836444318294525, 0.08025042712688446, -0.6731840372085571, -0.1357349306344986, -0.5057768225669861, 0.19518345594406128, -0.3277994692325592, -0.8440539836883545, 0.5684048533439636, 0.1773671954870224, 0.07369732856750488, 0.47715240716934204, 1.0603066682815552, -0.32596689462661743, 0.8622762560844421, 0.3025091290473938, -0.14778171479701996, 0.5453875660896301, -0.5157485604286194, 0.012250612489879131, -0.9748572111129761, -0.32733532786369324, 0.013464359566569328, -0.6383182406425476, -0.6567367315292358, -0.8353761434555054, 0.2937081456184387, 0.29236164689064026, -0.2303115427494049, 0.49450457096099854, -0.39840126037597656, 0.3461836576461792, 0.7141188979148865, 0.4075668752193451, 0.15933378040790558, 0.18023435771465302, -0.14574317634105682, 0.00812673382461071, -0.6641511917114258, -0.7545631527900696, 1.363587498664856, 0.6525576114654541, 0.8309428095817566, 0.13926106691360474, 0.8520362973213196, 0.3372304439544678, 0.3599488139152527, -0.6888159513473511, 0.7072766423225403, 0.19708998501300812, -0.639146089553833, -0.0853532925248146, -0.22988981008529663, -0.7664275169372559, 0.2744150757789612, -0.41284802556037903, -0.8129144906997681, 0.123375803232193, 0.4030003547668457, -0.5021524429321289, 0.37986138463020325, -0.4585522711277008, 0.5818468332290649, -0.15559157729148865, -0.48921018838882446, -0.21337558329105377, -0.6811045408248901, 0.5915526151657104, 0.02800649404525757, 0.09742815047502518, -0.40310800075531006, -0.13308320939540863, 0.7554335594177246, -0.3583386540412903, 0.9748532772064209, 0.06077259033918381, -0.028059015050530434, 0.8190408945083618, 0.16813355684280396, 0.3717647194862366, 0.4053128957748413, -0.10214066505432129, 0.4509458839893341, -0.0920211598277092, -0.5117616653442383, -0.3502139151096344, 0.6143682599067688, -1.0577082633972168, -0.7714958786964417, -0.34424206614494324, -0.31368130445480347, 0.07667556405067444, -0.008961444720625877, 0.25686413049697876, 0.27030694484710693, 0.04542708769440651, 0.3590802550315857, 0.1915164440870285, -0.31281617283821106, 0.37208908796310425, 0.23849338293075562, -0.4178224205970764, -0.7560746073722839, 0.7529290318489075, -0.23895277082920074, 0.48714956641197205, 0.34619325399398804, 0.05080419406294823, -0.257596880197525, -0.5303011536598206, -0.4166683852672577, 0.2921316921710968, -0.5749444365501404, -0.420722097158432, -0.774297297000885, -0.5742583870887756, -0.46267634630203247, 0.07002440840005875, -0.3761778473854065, -0.7000707387924194, -0.386711984872818, -0.3269317150115967, 0.3327897787094116, 0.5210961103439331, -0.39596304297447205, 0.3468773365020752, -0.5818532705307007, 0.20924924314022064, 0.6067712306976318, -0.17034244537353516, -0.12282724678516388, -1.0150208473205566, 0.2286679446697235, 0.2736981511116028, -0.6580542325973511, -1.0085999965667725, 0.5141906142234802, 0.19896678626537323, 0.7324648499488831, 0.49014076590538025, -0.30141681432724, 0.8319593071937561, -0.3118351399898529, 1.052320122718811, 0.16764812171459198, -0.9069827198982239, 0.5252231359481812, -0.18686489760875702, 0.09091701358556747, 0.39721694588661194, 0.32959452271461487, -0.18972216546535492, -0.4198453724384308, -0.7328835725784302, -0.9106603264808655, 0.45763882994651794, 0.4748064875602722, 0.10600690543651581, 0.19447533786296844, 0.4197186529636383, 0.01429233979433775, 0.2667112648487091, -0.8222911357879639, -0.19549700617790222, -0.4049704372882843, -0.30367106199264526, -0.01142337266355753, -0.4975452721118927, -0.16216152906417847, -0.3788381516933441, 0.6067354679107666, -0.037053871899843216, 0.772735595703125, 0.14573881030082703, -0.01837802864611149, 0.07717691361904144, -0.07414255291223526, 0.9187591671943665, 0.7290315628051758, -0.6062620282173157, 0.4399685263633728, 0.5498130917549133, -0.5018872022628784, 0.025322694331407547, -0.14387419819831848, -0.27456188201904297, -0.094952292740345, 0.8413243889808655, 0.9439548850059509, 0.25558510422706604, -0.6789709329605103, 0.6749769449234009, 0.0011271052062511444, -0.46246033906936646, -0.360026091337204, 0.06197633221745491, 0.39162808656692505, 0.6950181722640991, 0.15065596997737885, -0.1374770998954773, 0.11104698479175568, -0.5512298941612244, 0.20582543313503265, 0.4215959310531616, -0.21586108207702637, -0.4240387976169586, 0.9117684960365295, 0.1819930374622345, -0.4392082095146179, 0.49866020679473877, -0.2557383179664612, -0.7416123151779175, 0.788657546043396, 0.5620025992393494, 0.700512170791626, -0.000501129194162786, 0.24147166311740875, 0.5893814563751221, 0.27356913685798645, -0.09698652476072311, 0.45966821908950806, -0.2257131040096283, -0.7112975716590881, -0.2711745500564575, -0.5687872767448425, -0.6591053605079651, 0.23237940669059753, -0.6083437204360962, 0.286410391330719, -0.6788840293884277, -0.5414478778839111, -0.1808416098356247, 0.10410048067569733, -0.7416945695877075, -0.20638348162174225, 0.33633315563201904, 0.8907178044319153, -0.5109717845916748, 1.0546891689300537, 0.5216014385223389, -0.06078703701496124, -0.5026694536209106, -0.1732504516839981, 0.23404288291931152, -1.4320720434188843, 0.6264333724975586, 0.31338927149772644, 0.05037372559309006, -0.15313006937503815, -0.7896276116371155, -1.2474428415298462, 1.868902564048767, 0.18527568876743317, -0.6641708016395569, 0.07138005644083023, 0.10730195790529251, 0.4741068184375763, -0.49173784255981445, 0.4169686436653137, 0.39671915769577026, 0.37920644879341125, 0.21727736294269562, -1.2170073986053467, 0.2339915782213211, -0.18401074409484863, -0.14945711195468903, -0.4023427367210388, -1.1076403856277466, 1.0259350538253784, -0.3874513804912567, -0.14927369356155396, 0.11380594968795776, 0.6406415700912476, 0.7183917164802551, 0.3403771221637726, 0.619499921798706, 0.6882970929145813, 0.439906507730484, 0.08117792755365372, 0.9064813256263733, -0.5778137445449829, 0.5620555281639099, 1.1337782144546509, -0.23028072714805603, 1.241383671760559, 0.5678938627243042, -0.2798226773738861, 0.49261924624443054, 0.8753045201301575, -0.05026533082127571, 0.6761142015457153, 0.2634738087654114, -0.07008805871009827, -0.2514321208000183, 0.009959295392036438, -0.5347318053245544, 0.6569655537605286, 0.267598032951355, -0.22053758800029755, -0.018837781623005867, -0.3765229284763336, 0.1708623170852661, -0.4688301980495453, 0.08770674467086792, 0.6897405385971069, 0.21649618446826935, -0.2800884246826172, 0.6538965106010437, 0.04723604395985603, 0.9465667605400085, -0.4237537682056427, -0.08467285335063934, -0.3938243091106415, 0.20395801961421967, -0.2154926210641861, -0.939852237701416, 0.13605038821697235, 0.014613292180001736, 0.25058600306510925, -0.062138598412275314, 0.8486534953117371, -0.44395899772644043, -0.42639246582984924, 0.481180340051651, 0.5623603463172913, 0.3623662292957306, 0.09292437881231308, -0.9077591300010681, 0.2562863826751709, 0.11147985607385635, -0.7010392546653748, 0.21785473823547363, 0.07390092313289642, 0.13504433631896973, 0.827613353729248, 0.7448968291282654, -0.003995449747890234, 0.23146362602710724, -0.2537165582180023, 0.9057760238647461, -0.7476770281791687, -0.32635292410850525, -1.0289568901062012, 0.32043012976646423, -0.2835555672645569, -0.49350056052207947, 0.7239475250244141, 0.5881404876708984, 0.8226568102836609, 0.0029409241396933794, 0.5370028018951416, 0.04006681591272354, 0.22459843754768372, -0.5579963326454163, 0.5392875671386719, -0.6067783236503601, 0.25055262446403503, -0.07187571376562119, -0.965753972530365, -0.06768875569105148, 0.8550306558609009, -0.004698968958109617, -0.08944278210401535, 0.4116617441177368, 1.0557633638381958, -0.07072017341852188, -0.2910313606262207, 0.2045396864414215, 0.2949780821800232, 0.41074249148368835, 0.9710409641265869, 1.1523545980453491, -0.5471612811088562, 0.6898382902145386, -0.4383643865585327, -0.34468522667884827, -0.5775471925735474, -0.9702320694923401, -1.1588836908340454, -0.10591203719377518, -0.32265374064445496, -0.5054399371147156, -0.0062141078524291515, 1.064805030822754, 0.9576207995414734, -0.7924851179122925, -0.33323124051094055, 0.4975091814994812, 0.24316376447677612, -0.17154955863952637, -0.17324261367321014, 0.36898237466812134, 0.4325498044490814, -0.6496983766555786, 0.3302544951438904, 0.2871859073638916, 0.2997453212738037, -0.2017979621887207, -0.18424250185489655, -0.245875746011734, 0.17042475938796997, 0.752620279788971, 0.14220845699310303, -0.840055525302887, -0.5875847935676575, -0.11480443924665451, -0.33824190497398376, 0.03021458350121975, 0.35291537642478943, -0.5128074884414673, -0.08787193149328232, 0.678098201751709, 0.47407856583595276, 0.9711330533027649, 0.11393193900585175, 0.1391134262084961, -0.5467173457145691, 0.4091174602508545, -0.01768539659678936, 0.3798789083957672, 0.2510882318019867, -0.2711150348186493, 0.6377198696136475, 0.419294536113739, -0.6743168830871582, -0.9271419644355774, 0.06245323643088341, -1.5408587455749512, -0.05000396445393562, 1.558394193649292, -0.16379114985466003, -0.3394711911678314, 0.33300262689590454, -0.4221019446849823, 0.08957412093877792, -0.5183432102203369, 0.8340035676956177, 0.5410916805267334, -0.24752256274223328, -0.05408420413732529, -0.7303177714347839, 0.24360743165016174, 0.2150181084871292, -0.9080756306648254, -0.5283424854278564, 0.23553550243377686, 0.6541505455970764, 0.04223048686981201, 0.951474130153656, -0.08041819930076599, 0.122637540102005, -0.0118057020008564, 0.14139418303966522, -0.3302341103553772, -0.09182792156934738, -0.1018061563372612, 0.11471597105264664, -0.158418670296669, -0.5179641246795654 ]
rungalileo/onnx_roberta_sexist_classifier
rungalileo
"2023-09-27T15:12:06Z"
43,835
0
transformers
[ "transformers", "onnx", "xlm-roberta", "text-classification", "endpoints_compatible", "region:us" ]
text-classification
"2023-09-27T14:43:06Z"
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 ]
rungalileo/onnx_unitary_toxic_bert
rungalileo
"2023-09-27T15:12:15Z"
43,778
0
transformers
[ "transformers", "onnx", "bert", "text-classification", "endpoints_compatible", "region:us" ]
text-classification
"2023-09-27T15:04:04Z"
Entry not found
[ -0.3227650225162506, -0.22568431496620178, 0.862226128578186, 0.43461495637893677, -0.5282987952232361, 0.7012965679168701, 0.7915717363357544, 0.07618638128042221, 0.7746025919914246, 0.2563219666481018, -0.7852817177772522, -0.22573819756507874, -0.9104480743408203, 0.5715669393539429, -0.3992334008216858, 0.5791245698928833, -0.14494505524635315, -0.10751161724328995, 0.28233757615089417, -0.2768954336643219, -0.5409224033355713, -0.36855220794677734, -1.1902776956558228, 0.061491113156080246, 0.5316578149795532, 0.7435142397880554, 0.7584060430526733, 0.3652167320251465, 0.6432578563690186, 0.3932291269302368, -0.23138920962810516, 0.4827055037021637, -0.04171813279390335, 0.00260411505587399, -0.3524433970451355, -0.5516898036003113, -0.28596609830856323, 0.07584730535745621, 1.0961304903030396, 0.966687798500061, -0.284663587808609, 0.05330817773938179, -0.3063621520996094, 0.33088892698287964, -0.49734312295913696, 0.3054099678993225, -0.022506045177578926, 0.16318801045417786, -0.7041513919830322, -0.5535354018211365, 0.012794834561645985, -0.7361212968826294, 0.17926570773124695, -0.690081000328064, 0.8269098401069641, 0.18583157658576965, 1.1533750295639038, 0.14819414913654327, -0.462487131357193, -0.8161764144897461, -0.6538989543914795, 0.5711171627044678, -0.32703715562820435, 0.39680248498916626, 0.7028235197067261, -0.048573412001132965, -0.9820332527160645, -0.6745741367340088, -0.46466192603111267, 0.2923962473869324, 0.35402774810791016, -0.3411678075790405, -0.17522086203098297, -0.3058989644050598, 0.15792037546634674, 0.12811517715454102, -0.4841994643211365, -0.5543919205665588, -0.5475160479545593, -0.3960252106189728, 0.6206658482551575, 0.3482950031757355, 0.2429177463054657, -0.1888415813446045, -0.3228583335876465, 0.0880163162946701, -0.4160851538181305, 0.3402571678161621, 0.6335517168045044, 0.7114017009735107, -0.5811444520950317, 0.560215950012207, -0.04927587881684303, 0.7439703941345215, 0.11445561796426773, -0.27478092908859253, 0.41460567712783813, -0.14724725484848022, 0.055171746760606766, 0.4226345121860504, 0.31524422764778137, 0.2841312289237976, -0.3273695111274719, 0.2032228708267212, -0.3215144872665405, -0.30496224761009216, -0.22332167625427246, -0.29490774869918823, -0.3592180609703064, 0.5492289066314697, -0.3314017057418823, -0.42855486273765564, 1.143175721168518, -0.4200771450996399, -0.7302224040031433, 0.33156412839889526, 0.4065209925174713, -0.0994480773806572, -0.37146568298339844, -0.052260834723711014, -0.8458789587020874, -0.007907390594482422, 0.7491172552108765, -0.7198970913887024, 0.3371737599372864, 0.4728063642978668, 0.7417217493057251, 0.19650575518608093, -0.14034469425678253, -0.42949390411376953, 0.2971969544887543, -0.8659994006156921, 0.6320174336433411, -0.20135220885276794, -1.0051977634429932, 0.11150479316711426, 0.8971705436706543, -0.37896400690078735, -1.2094876766204834, 1.0605159997940063, -0.6887932419776917, 0.16017857193946838, -0.676761269569397, -0.14661237597465515, -0.07118501514196396, -0.005096632521599531, -0.6088156700134277, 0.7567102313041687, 0.587267279624939, -0.4995276927947998, 0.21429483592510223, -0.26029831171035767, -0.39151400327682495, 0.38824859261512756, -0.07935450226068497, -0.21858926117420197, 0.713833212852478, -0.6647079586982727, -0.26932814717292786, 0.2942774295806885, 0.2368936538696289, -0.35706108808517456, -0.7931919097900391, 0.08478113263845444, -0.05786270648241043, 1.550750494003296, -0.03868847340345383, -0.3586106300354004, -0.679383397102356, -1.1506240367889404, -0.07070787996053696, 0.6886883974075317, -0.9194989204406738, -0.27839475870132446, -0.046410128474235535, -0.26169314980506897, 0.08994917571544647, 0.7390589714050293, -1.1194051504135132, 0.2832726836204529, -0.05092663690447807, -0.22794683277606964, 0.8271058797836304, 0.15387225151062012, 0.24758946895599365, 0.14913396537303925, 0.42958706617355347, 0.527725338935852, 0.11115207523107529, 0.683587908744812, -0.34720373153686523, -0.9694353938102722, 0.6154631972312927, 0.25266361236572266, 0.8121447563171387, -0.49945297837257385, 0.2685093879699707, 0.27025535702705383, -0.3409680724143982, -0.5682371854782104, -0.3102838397026062, 0.09025752544403076, 0.14930562674999237, 0.11142510175704956, -0.5721710324287415, -0.6576125025749207, -0.9689140319824219, -0.13590654730796814, -0.4314374029636383, -0.3571570813655853, 0.21006910502910614, 0.5792906284332275, -1.1975523233413696, 0.4128875136375427, -0.7705625891685486, -0.7038741111755371, -0.01065548975020647, -0.19338123500347137, 0.7540656328201294, 0.43240174651145935, 0.5033966898918152, -0.6397148370742798, -0.5661987066268921, -0.22470176219940186, -1.0333747863769531, -0.13280506432056427, 0.24819621443748474, 0.3065737783908844, -0.13423344492912292, -0.2744963765144348, -0.48740333318710327, 0.8100387454032898, 0.14789170026779175, -0.5391897559165955, 0.5220767259597778, -0.3020317256450653, 0.17224803566932678, -0.6369150280952454, -0.06916818022727966, -0.661676287651062, -0.0009071884560398757, -0.3608308732509613, -0.5737438797950745, 0.14772287011146545, 0.07017494738101959, -0.16065457463264465, 0.28808408975601196, -0.909277081489563, -0.0010852962732315063, -0.7442210912704468, 0.379071980714798, 0.06394772231578827, -0.3145078718662262, -0.017517540603876114, 1.0000386238098145, 0.7784460783004761, -0.3848048746585846, 0.721744179725647, 0.4440041184425354, 0.19036155939102173, 0.7630521059036255, -0.18725109100341797, 0.16478213667869568, -0.5245416760444641, -0.12161104381084442, -0.8887597918510437, -1.0982946157455444, 0.7320570349693298, -0.6114250421524048, 0.36542922258377075, -0.4277869760990143, 0.2589159905910492, -0.6919258832931519, -0.03885362669825554, 0.4808599352836609, -0.05936325341463089, -0.6863942742347717, 0.5232570171356201, 0.45317530632019043, -0.2019241601228714, -0.6609031558036804, -0.530157208442688, 0.39365822076797485, 0.6154114007949829, -0.16390392184257507, 0.06878514587879181, 0.14941060543060303, -0.5441926121711731, -0.040802597999572754, -0.38691970705986023, -0.45766758918762207, 0.054224006831645966, 0.13053473830223083, -0.005750799085944891, -0.404820054769516, -0.0868026465177536, -0.35842007398605347, -0.4656120240688324, 0.21876516938209534, 0.3011947274208069, -0.04096309468150139, -0.42599788308143616, -0.3619818687438965, -0.888181209564209, 0.6719610095024109, 0.5370282530784607, 0.05281545966863632, 0.7555549740791321, 0.16819314658641815, -0.8014987707138062, -0.13532210886478424, -0.1760706603527069, 0.2696830928325653, -0.5588056445121765, 0.13849826157093048, -0.013484534807503223, -0.0637492910027504, 0.26297882199287415, 0.25386232137680054, -0.4300556778907776, 0.9276250004768372, -0.2615274488925934, -0.3592521846294403, 0.7960181832313538, 0.5974742770195007, 0.49583131074905396, 0.16503219306468964, -0.044541798532009125, 0.900709331035614, -1.1966516971588135, -0.6563175916671753, -0.7409549355506897, -0.15945707261562347, -0.43510833382606506, -0.032105933874845505, 0.6254412531852722, 0.2900990843772888, -0.1333388388156891, 0.4756395220756531, -0.5243489742279053, 0.3556033670902252, 1.01198410987854, 0.35748639702796936, 0.3435698449611664, -0.7570229172706604, -0.2515777349472046, -0.1402427852153778, -0.9998157620429993, -0.2631377875804901, 0.8871029019355774, 0.22752606868743896, 0.844460666179657, 0.5992541313171387, 0.6784542798995972, 0.1367226243019104, 0.2523828148841858, -0.30590319633483887, 0.3920294940471649, 0.4376082420349121, -1.0401138067245483, -0.42758408188819885, 0.021418681368231773, -0.9703338742256165, -0.14227519929409027, -0.03495011106133461, -0.42617112398147583, 0.7681737542152405, 0.00016589462757110596, -0.4076709747314453, 0.7732734084129333, -0.455583393573761, 0.7562873363494873, -0.4473648965358734, -0.02663906291127205, 0.4699096083641052, -0.7070636749267578, 0.4677430987358093, 0.12878790497779846, 0.6205843091011047, -0.015572631731629372, -0.04078587517142296, 0.7104941606521606, -0.9129160046577454, 0.25438642501831055, -0.6348397135734558, 0.22421300411224365, 0.24246945977210999, 0.51606285572052, 0.5969953536987305, 0.4371243417263031, 0.10119888931512833, -0.23920902609825134, 0.04115807265043259, -0.8241125345230103, -0.210506409406662, 0.697515606880188, -0.7186890840530396, -0.6864197850227356, -1.2355337142944336, 0.14438660442829132, 0.27347055077552795, 0.389305055141449, 0.7959296107292175, 0.571408748626709, 0.1289544403553009, 0.680525004863739, 0.9888588190078735, -0.0688566341996193, 0.9166924357414246, 0.3224477171897888, 0.09175168722867966, -0.21944808959960938, 0.7036820650100708, 0.26627904176712036, -0.24707956612110138, -0.11939732730388641, 0.20913465321063995, -0.11069409549236298, -0.591761589050293, -0.49990686774253845, 0.3701757788658142, -0.6731787919998169, -0.18303893506526947, -0.6243735551834106, -0.6043769717216492, -0.511759340763092, 0.06927360594272614, -0.7147687673568726, 0.23979046940803528, -0.7753565907478333, -0.10574902594089508, 0.04323432594537735, 0.9792009592056274, -0.589311957359314, 0.5805224180221558, -1.1218582391738892, 0.19345788657665253, -0.07949887961149216, 0.7921058535575867, 0.21395787596702576, -0.7344395518302917, -0.3975418508052826, -0.11592631042003632, -0.3729911744594574, -1.3576762676239014, 0.21404948830604553, -0.2454141080379486, 0.23094046115875244, 0.6145404577255249, 0.1397707313299179, 0.5258248448371887, -0.34326282143592834, 0.7029101848602295, -0.057017259299755096, -0.7069286704063416, 0.7934495210647583, -0.5026894807815552, 0.4963534474372864, 0.9765996932983398, 0.5333835482597351, -0.7984007596969604, 0.035741209983825684, -1.041123390197754, -0.6008695363998413, 0.38426393270492554, 0.11928944289684296, -0.03601083159446716, -0.6659559011459351, -0.054019637405872345, -0.16143807768821716, 0.6043745279312134, -1.039069414138794, -0.7858356237411499, 0.2576698362827301, 0.5277302861213684, 0.0816856250166893, -0.5653398633003235, 0.20880667865276337, -0.544416069984436, 1.0657774209976196, 0.45109400153160095, 0.3274499475955963, 0.8406060934066772, 0.46492424607276917, -0.3823164403438568, 0.09252490103244781, 0.7662695050239563, 0.6666232347488403, -0.5239797830581665, -0.2908027470111847, -0.08827541768550873, -0.9143403768539429, 0.05927472561597824, 0.11168918758630753, -0.013455932028591633, 0.9082110524177551, 0.5793083310127258, 0.2539709210395813, 0.4514279365539551, -0.726460337638855, 0.8859451413154602, -0.14954176545143127, -0.12472866475582123, -1.0677239894866943, 0.1948619782924652, -0.23984959721565247, 0.5006402134895325, 1.0061326026916504, 0.5250048041343689, -0.047630298882722855, -0.8143380880355835, -0.01473585981875658, 0.6939172148704529, -0.7091123461723328, -0.17449834942817688, 0.944853663444519, 0.3847099542617798, -1.2953051328659058, 1.106776475906372, -0.5381771326065063, -0.560332179069519, 0.9121301770210266, 0.522956907749176, 1.1221847534179688, -0.44204121828079224, 0.0008676342549733818, 0.2662237286567688, 0.41378432512283325, 0.5423170328140259, 1.0869629383087158, 0.431413471698761, -0.7931063771247864, 0.8826584815979004, -0.24776044487953186, -0.40361151099205017, -0.05347571521997452, -0.42859897017478943, 0.16892178356647491, -0.4406192898750305, -0.10713007301092148, -0.3444187641143799, 0.28543180227279663, -0.7072042226791382, 0.42807620763778687, -0.0838567465543747, 0.8653068542480469, -0.8553727269172668, 0.47207626700401306, 0.635470449924469, -0.3337355852127075, -0.8508191108703613, -0.26198428869247437, -0.11448462307453156, -0.6389466524124146, 0.30214807391166687, -0.4554102420806885, 0.044398851692676544, 0.09623463451862335, -0.649151623249054, -1.1778275966644287, 0.9093633890151978, -0.639612078666687, -0.2784462869167328, 0.20464053750038147, -0.11514760553836823, 0.28811705112457275, -0.2524643540382385, 0.010661216452717781, 0.41876548528671265, 0.748940110206604, 0.2844654619693756, -0.7727053761482239, -0.3694884479045868, 0.0015032943338155746, -0.44474777579307556, 0.7582978010177612, -0.6002101898193359, 1.1840779781341553, -0.5563543438911438, -0.059654366225004196, 0.44384512305259705, 0.24690914154052734, 0.21076197922229767, 0.6629220843315125, 0.1442081481218338, 0.7282265424728394, 1.07012140750885, -0.40835219621658325, 0.8811809420585632, 0.26432839035987854, 0.47430819272994995, 0.7238501906394958, -0.6487724781036377, 0.7513749003410339, 0.31810489296913147, -0.5682924389839172, 0.9228013753890991, 1.2906063795089722, -0.15699204802513123, 0.8079374432563782, 0.05136508867144585, -1.081600546836853, 0.325833261013031, -0.20724765956401825, -0.7530064582824707, 0.3150254189968109, 0.19055864214897156, -0.6920982599258423, -0.5770308971405029, -0.24046507477760315, -0.35662803053855896, -0.11552901566028595, -0.7631728649139404, 0.6720563769340515, -0.016969164833426476, -0.5103683471679688, 0.18857547640800476, 0.2877499461174011, 0.17368432879447937, -0.5235732793807983, -0.02939440682530403, -0.22823619842529297, 0.2660655975341797, -0.5670853853225708, -0.5234526991844177, 0.5724433064460754, -0.32430219650268555, -0.5343255400657654, 0.18147465586662292, 0.763587236404419, -0.16923809051513672, -0.4515409469604492, 0.32472723722457886, 0.6959525346755981, 0.1665852814912796, 0.4250282347202301, -0.23511263728141785, 0.24480605125427246, -0.08044824004173279, -0.06651552021503448, 0.27714768052101135, 0.3449169099330902, 0.22435641288757324, 0.4450142979621887, 0.43285664916038513, -0.01808755099773407, -0.10736498981714249, -0.382819801568985, 0.4124940037727356, -0.9542785882949829, -0.5713282823562622, -0.6307113766670227, 0.2740660607814789, -0.02315417304635048, -1.0836423635482788, 0.4145168364048004, 1.4406683444976807, 1.0359982252120972, -0.4756383001804352, 1.067226529121399, -0.21818485856056213, 0.9594791531562805, 0.41483086347579956, 0.5420440435409546, -0.6030411720275879, 0.03835370019078255, -0.4364396035671234, -1.076962947845459, -0.35716333985328674, 0.4539391100406647, -0.022899555042386055, -0.3429867625236511, 0.872571587562561, 0.5887166261672974, -0.33473607897758484, -0.11728022992610931, 0.048487238585948944, -0.029941488057374954, -0.12433847039937973, 0.5145376324653625, 0.7648399472236633, -0.9344304800033569, -0.10680416971445084, -0.21577754616737366, -0.6382725834846497, -0.5047279000282288, -0.9632009267807007, -0.12959396839141846, -0.16037796437740326, 0.035343267023563385, -0.5662806630134583, 0.00255737011320889, 1.208324909210205, 0.5684957504272461, -1.1113994121551514, -0.5303789377212524, 0.3371853232383728, 0.3920421898365021, -0.1874791383743286, -0.24202413856983185, 0.2984568774700165, 0.15382249653339386, -0.5908876657485962, 0.6875665783882141, 0.8089625239372253, 0.208888977766037, 0.19554761052131653, 0.15893013775348663, -0.8229473829269409, -0.14913435280323029, 0.17440445721149445, 0.9450570344924927, -0.939853310585022, -0.7114843130111694, -0.03168516233563423, -0.27094873785972595, -0.05765746906399727, 0.17102102935314178, -0.4046344757080078, 0.5180677175521851, 0.34591493010520935, 0.49933457374572754, 0.0561608150601387, -0.054746925830841064, 0.5409556031227112, -0.9069057703018188, 0.09425963461399078, 0.4134361147880554, 0.4154115319252014, -0.4000864028930664, -0.5910194516181946, 0.6713420748710632, 1.0073972940444946, -0.6594868898391724, -0.8743268847465515, -0.19846712052822113, -1.0016002655029297, 0.04189709946513176, 0.6762762069702148, 0.5009527802467346, -0.4806513786315918, -0.4174500107765198, -0.5617399215698242, -0.1254672110080719, -0.1369970738887787, 0.7621601819992065, 1.179680585861206, -0.7432094812393188, 0.07975747436285019, -1.038639783859253, 0.6594986915588379, -0.2419457733631134, -0.3457581698894501, -0.48644304275512695, 0.3832802176475525, 0.35236993432044983, 0.440481036901474, 0.614812433719635, 0.1408471167087555, 0.8338426351547241, 0.3126053214073181, -0.1702686995267868, 0.2698982357978821, -0.4559200704097748, -0.028932858258485794, -0.057962555438280106, 0.31015971302986145, -1.0262157917022705 ]
facebook/nougat-base
facebook
"2023-11-20T09:26:49Z"
43,684
66
transformers
[ "transformers", "pytorch", "safetensors", "vision-encoder-decoder", "vision", "nougat", "image-to-text", "arxiv:2308.13418", "license:cc-by-nc-4.0", "endpoints_compatible", "has_space", "region:us" ]
image-to-text
"2023-09-21T08:39:24Z"
--- license: cc-by-nc-4.0 tags: - vision - nougat pipeline_tag: image-to-text --- # Nougat model, base-sized version Nougat model trained on PDF-to-markdown. It was introduced in the paper [Nougat: Neural Optical Understanding for Academic Documents](https://arxiv.org/abs/2308.13418) by Blecher et al. and first released in [this repository](https://github.com/facebookresearch/nougat/tree/main). Disclaimer: The team releasing Nougat did not write a model card for this model so this model card has been written by the Hugging Face team. Note: this model corresponds to the "0.1.0-base" version of the original repository. ## Model description Nougat is a [Donut](https://huggingface.co/docs/transformers/model_doc/donut) model trained to transcribe scientific PDFs into an easy-to-use markdown format. The model consists of a Swin Transformer as vision encoder, and an mBART model as text decoder. The model is trained to autoregressively predict the markdown given only the pixels of the PDF image as input. <img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/model_doc/nougat_architecture.jpg" alt="drawing" width="600"/> <small> Nougat high-level overview. Taken from the <a href="https://arxiv.org/abs/2308.13418">original paper</a>. </small> ## Intended uses & limitations You can use the raw model for transcribing a PDF into Markdown. See the [model hub](https://huggingface.co/models?search=nougat) to look for other fine-tuned versions that may interest you. ### How to use We refer to the [docs](https://huggingface.co/docs/transformers/main/en/model_doc/nougat). ### BibTeX entry and citation info ```bibtex @misc{blecher2023nougat, title={Nougat: Neural Optical Understanding for Academic Documents}, author={Lukas Blecher and Guillem Cucurull and Thomas Scialom and Robert Stojnic}, year={2023}, eprint={2308.13418}, archivePrefix={arXiv}, primaryClass={cs.LG} } ```
[ -0.386155903339386, -0.3115846812725067, 0.3565363585948944, 0.1599278450012207, -0.31480997800827026, -0.35758838057518005, 0.025819813832640648, -0.49980628490448, 0.2019408792257309, 0.641948401927948, -0.7217813730239868, -0.2982620596885681, -0.7693619728088379, 0.24598032236099243, -0.3990926444530487, 1.1422483921051025, -0.0041498770006000996, 0.2317063808441162, 0.21952319145202637, -0.1859995275735855, -0.03689271956682205, -0.24083535373210907, -0.5826231241226196, -0.393778920173645, 0.27728816866874695, 0.11806643009185791, 0.606447160243988, 0.9927185773849487, 0.5781941413879395, 0.16365757584571838, -0.3169190585613251, -0.4822952151298523, -0.137211874127388, -0.4264034032821655, 0.1330951601266861, -0.5152890086174011, -0.8726374506950378, 0.13965760171413422, 0.5369322896003723, 0.5956804156303406, -0.07620584964752197, 0.05503467470407486, 0.08392221480607986, 0.5804935097694397, -0.2661956548690796, 0.21119341254234314, -0.43580812215805054, 0.19325940310955048, 0.08573810756206512, -0.004492890555411577, -0.44056299328804016, -0.22827012836933136, 0.1586902141571045, -0.7517751455307007, 0.4782564342021942, -0.20592603087425232, 1.1743507385253906, 0.4824102520942688, -0.5718451738357544, -0.16041557490825653, -0.501570999622345, 0.8554315567016602, -0.8195512294769287, 0.7856366634368896, 0.3910764753818512, 0.3351864814758301, 0.17242051661014557, -0.6088056564331055, -0.5257083177566528, -0.3987714946269989, -0.20096643269062042, 0.5013365149497986, -0.1303846389055252, -0.08178698271512985, 0.27775558829307556, 0.7627060413360596, -0.6847188472747803, -0.019839830696582794, -0.6630216240882874, -0.04422193020582199, 0.5075379610061646, -0.10685017704963684, 0.40392571687698364, -0.6084602475166321, -0.6191167831420898, -0.2913544476032257, -0.29737451672554016, -0.3773012161254883, 0.2262173742055893, 0.09529829770326614, -0.5800116658210754, 0.5777807831764221, 0.16924701631069183, 0.6676225662231445, 0.3758608400821686, -0.09183968603610992, 0.27388373017311096, -0.12599527835845947, -0.4133126139640808, 0.12361157685518265, 0.8471731543540955, 0.3835429251194, -0.006591845769435167, -0.1947031319141388, -0.26639559864997864, -0.04328456148505211, 0.46883654594421387, -0.7816075682640076, -0.44520819187164307, -0.12888076901435852, -0.544472336769104, -0.471314936876297, -0.21043218672275543, -0.8058937191963196, -0.43541252613067627, -0.465514212846756, 0.30397650599479675, -0.6527509689331055, -0.540061354637146, -0.0033820318058133125, 0.03832489624619484, 0.27716711163520813, 0.6771774291992188, -1.2247635126113892, 0.5045328736305237, 0.28918784856796265, 0.8110241889953613, 0.10041061788797379, -0.29644790291786194, 0.06797074526548386, 0.17920586466789246, -0.19499775767326355, 0.7141529321670532, -0.07621659338474274, -0.2082953304052353, -0.3470748960971832, 0.13303382694721222, -0.24240602552890778, -0.45759108662605286, 0.6984796524047852, -0.4068288207054138, 0.21298150718212128, -0.0027556989807635546, -0.40259140729904175, -0.5046067237854004, 0.4094257950782776, -0.8792416453361511, 1.1491938829421997, 0.38307860493659973, -0.75763338804245, 0.3088412880897522, -0.8548433184623718, -0.2638261318206787, -0.044325582683086395, 0.021998219192028046, -0.3105737864971161, 0.04145044460892677, 0.2780250012874603, 0.33397454023361206, -0.34715449810028076, -0.12334451079368591, -0.22484570741653442, -0.03807002678513527, -0.06493658572435379, 0.021900231018662453, 0.8616847991943359, 0.1531306505203247, -0.30774831771850586, 0.07463385164737701, -0.7968133687973022, -0.4672524034976959, 0.44519877433776855, -0.25368258357048035, -0.11014796793460846, -0.39023399353027344, 0.2664429843425751, 0.23380352556705475, 0.28963878750801086, -0.6370646953582764, 0.5404086112976074, -0.04122711345553398, 0.6792008876800537, 0.533091127872467, -0.20874492824077606, 0.9161914587020874, -0.3307957947254181, 0.3453962802886963, -0.2105010449886322, 0.49005693197250366, -0.3475925326347351, -0.3895310163497925, -0.7364460825920105, -0.4019510746002197, 0.24232962727546692, 0.6159589290618896, -0.43795400857925415, 0.1477431207895279, -0.18567779660224915, -0.8327938318252563, -0.4430178105831146, 0.016504397615790367, 0.18054477870464325, 0.8244339227676392, 0.5403114557266235, -0.25911158323287964, -0.4086533486843109, -0.8587994575500488, 0.04919037967920303, -0.04896712675690651, -0.2102719247341156, 0.44048547744750977, 0.4510553181171417, -0.11659768968820572, 0.6030420064926147, -0.5292997360229492, -0.5324538946151733, -0.19046814739704132, 0.20203043520450592, 0.2954542934894562, 0.5566198229789734, 0.6715105772018433, -1.0103554725646973, -0.3435046076774597, -0.08205654472112656, -0.8904290795326233, -0.09638286381959915, -0.12987403571605682, -0.042419031262397766, 0.46116092801094055, 0.42692628502845764, -0.46338969469070435, 0.4302191734313965, 0.5196688175201416, -0.10936801880598068, 0.5762553811073303, 0.02518116869032383, 0.1279788613319397, -1.239173412322998, 0.1159282848238945, 0.4340585768222809, -0.023995574563741684, -0.5077213644981384, -0.05651822313666344, 0.3744230270385742, -0.152571439743042, -0.5071424841880798, 0.5403931140899658, -0.6524429321289062, -0.01963110640645027, -0.026802908629179, 0.08179781585931778, -0.005140989553183317, 0.5886308550834656, 0.4477164149284363, 0.3677765130996704, 0.3194034695625305, -0.4837541878223419, 0.07139497250318527, 0.5387350916862488, 0.008020671084523201, 0.6947595477104187, -0.6739568114280701, 0.06131981313228607, 0.008017973974347115, 0.17202599346637726, -0.8325986862182617, -0.12376619875431061, 0.4675736725330353, -0.43721210956573486, 0.6439847350120544, -0.5854851007461548, -0.7001971006393433, -0.20714150369167328, -0.1298048347234726, 0.28978249430656433, 0.6201017498970032, -0.545730710029602, 0.7198336720466614, 0.14851617813110352, -0.010061384178698063, -0.32996106147766113, -1.0123666524887085, -0.13976967334747314, 0.08413027226924896, -0.828314483165741, 0.4354826509952545, -0.15551753342151642, 0.3871311545372009, 0.2065274715423584, -0.3526182472705841, -0.33255448937416077, -0.2154313176870346, 0.2292448729276657, 0.4178335666656494, -0.4109864830970764, -0.11139357089996338, -0.03248182684183121, -0.3637707829475403, -0.26175376772880554, -0.21824713051319122, 0.4119545519351959, -0.14010407030582428, 0.0090131014585495, -0.447683185338974, 0.055243365466594696, 0.721417248249054, -0.19106397032737732, 0.47592803835868835, 0.6429139375686646, -0.478171706199646, 0.0306415818631649, -0.5392053127288818, -0.4381984770298004, -0.44491833448410034, 0.06930116564035416, -0.2074785977602005, -0.6647549867630005, 0.6343152523040771, 0.06799234449863434, -0.0299981776624918, 0.6621202230453491, 0.33210936188697815, 0.19798122346401215, 0.7103302478790283, 0.9807068705558777, 0.4264448881149292, 0.7767084240913391, -0.42079171538352966, 0.17612160742282867, -1.1740665435791016, -0.3519156277179718, -0.28676509857177734, -0.08974258601665497, -0.2677342891693115, -0.07573305815458298, -0.014655829407274723, 0.3612598478794098, -0.29469990730285645, 0.884688675403595, -1.0641552209854126, 0.07634684443473816, 0.42855116724967957, -0.0002916115627158433, 0.44262027740478516, -0.028916263952851295, -0.06919298321008682, -0.3540650010108948, -0.49176979064941406, -0.6453444957733154, 0.8743439316749573, 0.2748560309410095, 0.7341250777244568, 0.13141785562038422, 0.6041536927223206, -0.11567118763923645, 0.5622868537902832, -0.7626156210899353, 0.5482446551322937, -0.13793501257896423, -0.8512784838676453, 0.05284509062767029, -0.4067482352256775, -0.8098227977752686, 0.10198366641998291, -0.2890915274620056, -1.0201995372772217, 0.23236167430877686, 0.06728707998991013, -0.07371985167264938, 0.5646535158157349, -0.7006177306175232, 1.0978689193725586, -0.25916656851768494, -0.10383278131484985, 0.26396724581718445, -0.5548500418663025, 0.5192674994468689, -0.09376165270805359, -0.07826250046491623, 0.031507786363363266, -0.14871002733707428, 0.8800733089447021, -0.45318037271499634, 0.825225293636322, 0.14926756918430328, -0.046968866139650345, 0.010933337733149529, 0.21241635084152222, 0.1308145374059677, -0.15563072264194489, -0.2856651246547699, 0.5587649941444397, 0.2604540288448334, -0.48442864418029785, -0.620303750038147, 0.5753899216651917, -0.9598058462142944, -0.11707520484924316, -0.5917388796806335, -0.563014030456543, 0.34694674611091614, 0.7078494429588318, 0.5161057710647583, 0.3183826208114624, -0.038028471171855927, -0.10428716242313385, 0.47168317437171936, -0.15842515230178833, 0.3579830527305603, 0.6632053256034851, -0.2618233561515808, -0.5778627395629883, 0.7399107217788696, 0.48438870906829834, 0.2194538116455078, 0.41446807980537415, 0.13081620633602142, -0.3406957685947418, -0.48025617003440857, -0.7860701680183411, 0.5305049419403076, -0.6594511270523071, -0.19285134971141815, -0.7563097476959229, -0.233248770236969, -0.5884571075439453, -0.437454491853714, -0.6318359375, -0.3394413888454437, -0.4685526192188263, -0.07941333949565887, 0.589227020740509, 1.084014892578125, -0.11854028701782227, 0.5555145740509033, -0.8577800393104553, 0.3197513222694397, -0.04263477399945259, 0.5425868630409241, 0.327574759721756, -0.41793256998062134, -0.12424082309007645, -0.17863459885120392, -0.680595338344574, -1.146202564239502, 0.6524705290794373, -0.27884936332702637, 0.4774767756462097, 0.272502064704895, 0.12200558185577393, 0.37576329708099365, -0.25447505712509155, 0.8271420001983643, 0.34795936942100525, -0.8889546394348145, 0.43577614426612854, -0.5851851105690002, 0.24701109528541565, 0.42899230122566223, 0.5204144716262817, -0.416324257850647, 0.04169221594929695, -0.8728259801864624, -0.887420654296875, 1.0229051113128662, 0.16852964460849762, 0.025003567337989807, 0.3605865240097046, 0.41639068722724915, 0.23774060606956482, 0.29752400517463684, -0.7669969797134399, -0.194292813539505, -0.6818692684173584, -0.18387795984745026, 0.020474230870604515, -0.1679799109697342, 0.0820794627070427, -0.4024341106414795, 0.5562557578086853, 0.04985535517334938, 0.4418644905090332, 0.49303892254829407, -0.25784730911254883, -0.13170652091503143, 0.0574372336268425, 0.629085898399353, 0.1911042034626007, -0.6579140424728394, -0.02864144928753376, -0.06368447840213776, -0.8288335800170898, -0.1798505336046219, 0.3244117498397827, -0.1906985342502594, -0.12620560824871063, 0.275242418050766, 0.7382110357284546, 0.38778984546661377, 0.01094632875174284, 0.4393806457519531, -0.17784787714481354, -0.4445478022098541, -0.4288651645183563, -0.3966541588306427, 0.046093136072158813, 0.0736345574259758, 0.5323652029037476, 0.3777481019496918, 0.07641374319791794, -0.22365161776542664, 0.26666519045829773, -0.09901528805494308, -0.6444295048713684, -0.40422582626342773, 0.9541611671447754, -0.0036902818828821182, -0.2428286075592041, 0.8201749920845032, -0.198210209608078, -0.451541930437088, 0.6674153804779053, 0.6255655288696289, 0.8594210147857666, -0.16462548077106476, 0.07833658158779144, 0.5522436499595642, 0.6626355648040771, -0.028128428384661674, 0.21598872542381287, -0.19047488272190094, -0.52385413646698, -0.2793523371219635, -0.7034016251564026, -0.48873212933540344, 0.2620898187160492, -0.8470386266708374, 0.4278576970100403, -0.8118495345115662, -0.09458348900079727, 0.24505440890789032, 0.14975816011428833, -0.5503904819488525, 0.2672834098339081, 0.17832189798355103, 1.2169098854064941, -0.8961871266365051, 0.733121931552887, 0.8922455310821533, -0.8616077303886414, -1.0327162742614746, -0.013254825957119465, 0.11873842775821686, -0.5489529371261597, 0.5301790237426758, 0.11532183736562729, 0.22432948648929596, 0.17495709657669067, -0.5599260330200195, -0.7859200239181519, 1.1840040683746338, 0.6530776619911194, -0.21159791946411133, 0.04729517176747322, -0.24047210812568665, 0.41708555817604065, -0.3359815180301666, 0.5778540968894958, 0.0018348876619711518, 0.6348171234130859, 0.42911750078201294, -0.9738708138465881, 0.38306188583374023, -0.5600391030311584, -0.13944143056869507, 0.26516833901405334, -0.765070915222168, 1.024404764175415, -0.18639837205410004, -0.13129234313964844, 0.22380685806274414, 0.4395799934864044, -0.08103840798139572, 0.34620100259780884, 0.3220130503177643, 0.7901502251625061, 0.4798795282840729, -0.1285908967256546, 1.4852018356323242, -0.1610453724861145, 0.4733487665653229, 0.8343677520751953, 0.022309841588139534, 0.6097238063812256, 0.44923868775367737, 0.04370240867137909, 0.29799607396125793, 0.8157914280891418, -0.5685765743255615, 0.5435178875923157, -0.18406203389167786, 0.24542845785617828, -0.1014571562409401, -0.06446748226881027, -0.36127859354019165, 0.004413970746099949, 0.08604798465967178, -0.5805683732032776, -0.3317929804325104, -0.11095552146434784, 0.23205889761447906, -0.12181948125362396, -0.3633800148963928, 0.7378460168838501, 0.24471020698547363, -0.32871317863464355, 0.840388834476471, -0.13421563804149628, 0.7636296153068542, -0.5708273649215698, -0.010945714078843594, 0.021560102701187134, 0.2267560511827469, -0.6006799340248108, -0.6719778180122375, 0.45562833547592163, -0.20857447385787964, -0.568310022354126, -0.1991538554430008, 0.41206082701683044, -0.1498524248600006, -0.5216992497444153, 0.574552059173584, 0.14599835872650146, 0.41933906078338623, 0.02849627658724785, -0.8740436434745789, 0.2574196755886078, -0.1301356852054596, -0.4196949303150177, 0.36935847997665405, 0.12340310961008072, -0.027448318898677826, 0.4466662108898163, 0.8572496771812439, -0.20096465945243835, 0.258532851934433, -0.158712700009346, 0.7701954245567322, -0.5295809507369995, -0.5480179786682129, -0.6316211819648743, 0.5684539675712585, -0.06666767597198486, -0.5034251809120178, 0.9087077379226685, 0.5863524675369263, 0.8275997638702393, -0.25356337428092957, 0.6565946340560913, -0.06936560571193695, 0.17904388904571533, -0.22199741005897522, 1.0294992923736572, -1.0412907600402832, -0.2114768624305725, -0.6043367981910706, -1.0572458505630493, -0.7099504470825195, 0.8730482459068298, -0.6540080308914185, 0.06814389675855637, 0.6970409154891968, 0.67664635181427, -0.5342422723770142, 0.32125625014305115, 0.19105948507785797, 0.36050623655319214, 0.03310757875442505, 0.19498726725578308, 0.3675583004951477, -0.8484664559364319, 0.6347721815109253, -0.5505562424659729, -0.33815085887908936, -0.5013338327407837, -0.9545062184333801, -0.7803143858909607, -0.6974576711654663, -0.570471465587616, -0.5090248584747314, -0.2299918532371521, 0.3122056722640991, 1.0871326923370361, -0.566885232925415, -0.14374491572380066, -0.09491988271474838, 0.07248688489198685, -0.21540173888206482, -0.22272613644599915, 0.5344862341880798, 0.21733568608760834, -0.7130330204963684, 0.06566721200942993, 0.18490058183670044, 0.4539501667022705, 0.040667273104190826, -0.20407158136367798, -0.22243091464042664, 0.13134048879146576, 0.3835063576698303, 0.548808217048645, -0.452149897813797, 0.1388164758682251, 0.35401812195777893, -0.29180729389190674, 0.387597918510437, 0.3765428960323334, -0.2971780300140381, 0.09775936603546143, 0.5076467990875244, 0.276689350605011, 0.9507777690887451, -0.35273483395576477, 0.3876725435256958, -0.32871389389038086, 0.22397370636463165, 0.15556272864341736, 0.5016291737556458, 0.7180714011192322, -0.429923415184021, 0.70942622423172, 0.20703169703483582, -0.5203742980957031, -0.93665611743927, 0.27997469902038574, -1.6483837366104126, -0.06911806762218475, 0.9593193531036377, 0.11923813819885254, -0.72594153881073, 0.267343670129776, -0.45782867074012756, 0.5330327749252319, -0.7590025067329407, 0.4780840575695038, 0.36216500401496887, -0.08990567177534103, -0.9356827139854431, -0.6739717721939087, 0.2031649947166443, 0.16783559322357178, -0.33238428831100464, -0.12144085019826889, 0.13023892045021057, 0.6026551723480225, 0.5728271007537842, 0.5720551013946533, -0.5642213821411133, 0.2220829576253891, 0.23606042563915253, 0.6214427351951599, -0.3208974301815033, 0.05786624923348427, -0.6064825654029846, -0.038620006293058395, -0.13828271627426147, -0.029800821095705032 ]
minimaxir/sdxl-wrong-lora
minimaxir
"2023-08-24T02:59:47Z"
43,539
94
diffusers
[ "diffusers", "stable-diffusion", "stable-diffusion-diffusers", "text-to-image", "lora", "base_model:stabilityai/stable-diffusion-xl-base-1.0", "license:mit", "has_space", "region:us" ]
text-to-image
"2023-08-14T04:26:16Z"
--- license: mit base_model: stabilityai/stable-diffusion-xl-base-1.0 tags: - stable-diffusion - stable-diffusion-diffusers - text-to-image - diffusers - lora inference: true --- # sdxl-wrong-lora ![](img/header.webp) A LoRA for SDXL 1.0 Base which improves output image quality after loading it and using `wrong` as a negative prompt during inference. You can demo image generation using this LoRA in [this Colab Notebook](https://colab.research.google.com/github/minimaxir/sdxl-experiments/blob/main/sdxl_image_generation.ipynb). The LoRA is also available in a `safetensors` format for other UIs such as A1111; however this LoRA was created using `diffusers` and I cannot guarantee its efficacy outside of it. Benefits of using this LoRA: - Higher detail in textures/fabrics, particularly at full 1024x1024 resolution. - Higher color saturation and vibrance. - Higher sharpness for blurry/background objects. - Better at anatomically-correct hands. - Less likely to have random artifacts. - Appears to allow the model to follow the input prompt with a more expected behavior, particularly with prompt weighting such as the [Compel](https://github.com/damian0815/compel) syntax. ## Usage The LoRA can be loaded using `load_lora_weights` like any other LoRA in `diffusers`: ```py import torch from diffusers import DiffusionPipeline, AutoencoderKL vae = AutoencoderKL.from_pretrained( "madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16 ) base = DiffusionPipeline.from_pretrained( "stabilityai/stable-diffusion-xl-base-1.0", vae=vae, torch_dtype=torch.float16, variant="fp16", use_safetensors=True ) base.load_lora_weights("minimaxir/sdxl-wrong-lora") _ = base.to("cuda") ``` During image generation, use `wrong` as the negative prompt. That's it! ## Examples **Left image** is the base model output (no LoRA) + refiner, **right image** is base (w/ LoRA) + refiner + `wrong` negative prompt. Both generations use the same seed. I have also [released a Colab Notebook](https://colab.research.google.com/github/minimaxir/sdxl-experiments/blob/main/sdxl_wrong_comparison.ipynb) to generate these kinds of side-by-side comparison images, although the seeds listed will not give the same results since they were generated on a different GPU/CUDA than the Colab Notebook. `realistic human Shrek blogging at a computer workstation, hyperrealistic award-winning photo for vanity fair` (cfg = 13, seed = 56583700) ![](img/example1.webp) `pepperoni pizza in the shape of a heart, hyperrealistic award-winning professional food photography` (cfg = 13, seed = 75789081) ![](img/example2.webp) `presidential painting of realistic human Spongebob Squarepants wearing a suit, (oil on canvas)+++++` (cfg = 13, seed = 85588026) ![](img/example3.webp) `San Francisco panorama attacked by (one massive kitten)++++, hyperrealistic award-winning photo by the Associated Press` (cfg = 13, seed = 45454868) ![](img/example4.webp) `hyperrealistic death metal album cover featuring edgy moody realistic (human Super Mario)++, edgy and moody` (cfg = 13, seed = 30416580) ![](img/example5.webp) ## Methodology The methodology and motivation for creating this LoRA is similar to my [wrong SD 2.0 textual inversion embedding](https://huggingface.co/minimaxir/wrong_embedding_sd_2_0) by training on a balanced variety of undesirable outputs, except trained as a LoRA since textual inversion with SDXL is complicated. The base images were generated from SDXL itself, with some prompt weighting to emphasize undesirable attributes for test images. You can see the code to generate the wrong images [in this Jupyter Notebook](https://github.com/minimaxir/sdxl-experiments/blob/main/wrong_image_generator.ipynb). ## Notes - The intuitive way to think about how this LoRA works is that on training start, it indicates an undesirable area of the vast highdimensional latent space which the rest of the diffusion process will move away from. This may work more effectively than textual inversion but more testing needs to be done. - The description of this LoRA is very careful to not state that the output is objectively _better_ than not using LoRA, because everything is subjective and there are use cases where vibrant output is not desired. For most use cases, the output should be better desired however. - It's possible to use `not wrong` in the normal prompt itself but in testing it has not much effect. - You can use other negative prompts in conjunction with the `wrong` prompt but you may want to weight them appropriately. - All the Notebooks noted here are available [in this GitHub repo](https://github.com/minimaxir/sdxl-experiments).
[ -0.5176642537117004, -0.9244921803474426, 0.5345741510391235, 0.18892626464366913, -0.22300690412521362, -0.2263193577528, 0.2029065191745758, -0.4673771560192108, 0.39619600772857666, 0.42646992206573486, -0.575648844242096, -0.3707142770290375, -0.5260210037231445, -0.005520529579371214, -0.6004208922386169, 1.0815256834030151, -0.0009105498902499676, -0.14593710005283356, -0.07546669244766235, -0.31850701570510864, -0.4188130795955658, -0.053973354399204254, -0.884737491607666, -0.3290286362171173, 0.7563086748123169, 0.19985492527484894, 0.7744229435920715, 0.6208447217941284, 0.15038809180259705, 0.2928302586078644, -0.07374058663845062, -0.061292462050914764, -0.6453884243965149, -0.3993222415447235, -0.03265553340315819, -0.4674925208091736, -0.3123306334018707, 0.16457884013652802, 0.42037665843963623, 0.2895241677761078, -0.10255786031484604, 0.2907923460006714, 0.0289293359965086, 0.6765238046646118, -0.6707308888435364, -0.2734648287296295, -0.36507999897003174, 0.2039955109357834, -0.0025617799255996943, -0.028497111052274704, -0.3397620618343353, -0.48687705397605896, -0.2671700417995453, -0.7596380710601807, 0.33187079429626465, 0.13365349173545837, 1.240822434425354, 0.42604899406433105, -0.29858264327049255, -0.3765100836753845, -0.5993260741233826, 0.8125543594360352, -0.62623131275177, 0.052532438188791275, 0.1398346722126007, 0.20809608697891235, 0.1274152249097824, -0.6219180822372437, -0.8339394927024841, -0.025658054277300835, -0.0725516527891159, 0.2742449939250946, -0.4028225541114807, -0.22817645967006683, 0.6258266568183899, 0.05733669921755791, -0.5721049904823303, 0.16627316176891327, -0.49968990683555603, -0.14846567809581757, 0.6450405716896057, 0.20292969048023224, 0.29950663447380066, -0.19372041523456573, -0.630789577960968, -0.31595417857170105, -0.8721775412559509, 0.020188309252262115, 0.42156174778938293, 0.11454242467880249, -0.34565505385398865, 0.7824249267578125, 0.24533188343048096, 0.5939134955406189, 0.29999056458473206, -0.2465061992406845, 0.505105197429657, -0.37854692339897156, -0.28942108154296875, 0.017473019659519196, 0.7017629742622375, 0.5174906849861145, -0.1411343514919281, 0.3433418571949005, -0.28223368525505066, 0.25561344623565674, -0.21688395738601685, -0.8935211896896362, -0.041825179010629654, 0.4502142667770386, -0.5161198973655701, -0.4288439154624939, -0.17586158215999603, -0.7717651724815369, -0.43370580673217773, -0.061795223504304886, 0.8410516381263733, -0.3700358271598816, -0.11636929214000702, -0.035787492990493774, -0.4481693208217621, 0.25516477227211, 0.5275241136550903, -0.3753528892993927, 0.05849000811576843, 0.0959414541721344, 0.6443925499916077, -0.04356127232313156, -0.17459334433078766, -0.49537208676338196, -0.03814273700118065, -0.35839608311653137, 0.7395415902137756, -0.17518839240074158, -0.3884051740169525, -0.24813337624073029, 0.06170721352100372, 0.02071448042988777, -0.7005634307861328, 0.7279775738716125, -0.37194502353668213, 0.3395833969116211, -0.3984651565551758, -0.29281818866729736, 0.07266608625650406, -0.08355249464511871, -0.6929067373275757, 1.1428356170654297, 0.2236894965171814, -0.9478799104690552, 0.2660440504550934, -0.6501195430755615, -0.03883758559823036, -0.16361859440803528, -0.268856018781662, -0.428969144821167, -0.00410984642803669, -0.012339363805949688, 0.1147448718547821, -0.16603301465511322, -0.3067122995853424, -0.15194354951381683, -0.5800228118896484, 0.3538970649242401, -0.12687376141548157, 1.1930961608886719, 0.3865249752998352, -0.37669453024864197, 0.03280647471547127, -1.0349252223968506, 0.2505384087562561, 0.4814649820327759, -0.26658618450164795, -0.4148063063621521, -0.38788101077079773, 0.28412410616874695, 0.2765181064605713, 0.18588271737098694, -0.7794249653816223, 0.0826161578297615, -0.23973630368709564, 0.3396235406398773, 0.9110893607139587, -0.06620553135871887, 0.34289681911468506, -0.2589786648750305, 0.35899633169174194, 0.19931446015834808, 0.04123843088746071, -0.0272840429097414, -0.6604477763175964, -0.976985514163971, -0.27123093605041504, -0.0265513826161623, 0.6198148131370544, -0.9647244811058044, 0.2876622676849365, 0.13388152420520782, -0.5635473728179932, -0.4109072983264923, 0.21928225457668304, 0.5412479639053345, 0.7033461332321167, 0.2768304944038391, -0.12746837735176086, -0.6804306507110596, -0.7804670929908752, 0.16158074140548706, -0.14024004340171814, 0.25527703762054443, 0.33815693855285645, 0.6262734532356262, -0.5019510388374329, 1.0094659328460693, -0.8306423425674438, -0.3870905339717865, -0.226425439119339, 0.14610643684864044, 0.6832405924797058, 0.5404157042503357, 0.6853325366973877, -0.8325348496437073, -0.7749790549278259, -0.24055805802345276, -0.5929223299026489, -0.13398447632789612, -0.14237669110298157, -0.16657041013240814, 0.34394824504852295, 0.1881420910358429, -0.9438998103141785, 0.5508023500442505, 0.3571166396141052, -0.5557791590690613, 0.708005964756012, -0.471470445394516, -0.13529780507087708, -0.9352357387542725, 0.2536471486091614, 0.16570347547531128, -0.13976091146469116, -0.4948575794696808, 0.2012716680765152, 0.11279460787773132, -0.05228428170084953, -0.5055521130561829, 0.7993078827857971, -0.17863228917121887, 0.08282183855772018, -0.2212180495262146, 0.06426030397415161, 0.2781161069869995, 0.35325634479522705, -0.03482403978705406, 0.7947610020637512, 0.30848589539527893, -0.44258421659469604, 0.4383282959461212, 0.19101470708847046, -0.3638133108615875, 0.6485683917999268, -0.8162415027618408, 0.19783180952072144, -0.4262228012084961, 0.24397990107536316, -1.1230324506759644, -0.04232503101229668, 0.4069213271141052, -0.32251492142677307, 0.17929022014141083, 0.043539728969335556, -0.4119580090045929, -0.5866237878799438, -0.4670572578907013, 0.23193924129009247, 0.924200177192688, -0.634350061416626, 0.46574074029922485, 0.004293954931199551, 0.16528774797916412, -0.8481091856956482, -0.8001994490623474, -0.12808702886104584, -0.3845829963684082, -0.6100353598594666, 0.1888807862997055, -0.5258620381355286, -0.38195088505744934, -0.0018441701540723443, 0.09204660356044769, -0.035621657967567444, -0.17058822512626648, 0.4309884309768677, 0.40283793210983276, -0.3613205552101135, -0.3131276071071625, 0.0024620150215923786, -0.2992231547832489, -0.03879345953464508, 0.10329385101795197, 0.4858221411705017, -0.07220897078514099, -0.21078304946422577, -0.560443639755249, 0.3068506717681885, 0.28810739517211914, 0.4127727746963501, 0.5294417142868042, 0.8707906603813171, -0.2725970447063446, -0.10650528222322464, -0.5060907006263733, -0.009317342191934586, -0.5156246423721313, 0.25748124718666077, -0.23752503097057343, -0.1478881537914276, 0.46519339084625244, 0.33567723631858826, -0.037392500787973404, 0.5292089581489563, 0.46024519205093384, -0.563215970993042, 1.252746820449829, 0.7279621958732605, 0.29647237062454224, 0.3939029574394226, -0.8590662479400635, -0.03002133220434189, -0.8243393898010254, -0.02113913744688034, -0.5289295315742493, -0.2670922875404358, -0.2432485818862915, -0.4541960656642914, 0.4245228171348572, 0.1848704218864441, -0.4159665107727051, 0.4081760346889496, -0.26895612478256226, 0.6367701888084412, 0.3744580149650574, 0.14919744431972504, 0.19888488948345184, 0.17626126110553741, -0.13774904608726501, -0.18702585995197296, -0.5017457604408264, -0.4095149636268616, 0.8172152638435364, 0.14346349239349365, 1.2265838384628296, 0.042051464319229126, 0.8255207538604736, 0.4086824655532837, 0.28322839736938477, -0.48463523387908936, 0.6299005746841431, -0.25204819440841675, -0.5221982002258301, -0.09628918021917343, -0.29988840222358704, -1.0033586025238037, 0.2166382074356079, -0.2126937359571457, -0.6739488840103149, 0.5304638147354126, 0.32487669587135315, -0.6181831359863281, 0.09941432625055313, -1.0406336784362793, 0.6863079071044922, -0.22761084139347076, -0.6581271886825562, 0.000925857515539974, -0.5677793025970459, 0.26346656680107117, -0.10615979135036469, 0.3125573992729187, 0.09227215498685837, -0.1600884348154068, 0.5885705947875977, -0.41029220819473267, 0.8802265524864197, -0.4665064811706543, -0.41709548234939575, 0.3125877380371094, -0.07894226908683777, 0.6963456273078918, -0.03346194326877594, -0.15064135193824768, -0.012382975779473782, 0.2257356345653534, -0.49074050784111023, -0.49040359258651733, 0.8970197439193726, -1.0457683801651, -0.48918360471725464, -0.40620118379592896, -0.29421722888946533, 0.24059177935123444, 0.30179810523986816, 0.7080585956573486, 0.2794431447982788, -0.037730202078819275, -0.1946563869714737, 0.8090825080871582, -0.5673258304595947, 0.29738926887512207, 0.31566646695137024, -0.6469888687133789, -0.18417786061763763, 1.2256509065628052, 0.2839767634868622, 0.36552685499191284, 0.14059579372406006, 0.2538686990737915, -0.24974685907363892, -0.30533573031425476, -0.6981405019760132, 0.3484002947807312, -1.0450375080108643, -0.24689510464668274, -0.5638108253479004, -0.2798597514629364, -0.17850732803344727, -0.26838088035583496, -0.3042766749858856, -0.588935911655426, -0.5654578804969788, 0.1275877207517624, 0.03683460131287575, 0.6323460340499878, -0.24332241714000702, 0.2422933131456375, -0.40940067172050476, 0.44827479124069214, 0.1703845113515854, -0.12219657003879547, -0.005402844864875078, -0.3944522738456726, -0.1548694670200348, 0.22646048665046692, -0.3961952328681946, -0.640884518623352, 0.4396337866783142, 0.15612326562404633, 0.3537467420101166, 0.6133358478546143, -0.07491342723369598, 0.752770185470581, -0.2547040581703186, 0.7573115825653076, 0.4452003836631775, -0.6470141410827637, 0.6535947322845459, -0.08404487371444702, 0.11827598512172699, 0.10277597606182098, 0.37923499941825867, -0.273833692073822, -0.17096443474292755, -0.7876392602920532, -0.7223253846168518, 0.6007435321807861, 0.2613489031791687, 0.22524945437908173, 0.1527564376592636, 0.2792951464653015, 0.37508663535118103, -0.08633902668952942, -1.035003662109375, -0.49571287631988525, -0.27938300371170044, -0.021696003153920174, -0.10762312263250351, -0.26926103234291077, -0.34462475776672363, -0.24704211950302124, 0.8188006281852722, -0.15253916382789612, 0.4126107692718506, 0.28351059556007385, -0.10643970966339111, -0.40651488304138184, 0.06469007581472397, 0.45736294984817505, 0.5975975394248962, -0.4295125901699066, 0.04157096892595291, 0.09381846338510513, -0.3577415645122528, 0.23229515552520752, -0.06403738260269165, -0.5100610256195068, 0.004393670242279768, 0.257445365190506, 0.7248414754867554, -0.3093734681606293, -0.7938563823699951, 0.6156997680664062, -0.2395971268415451, 0.017300063744187355, -0.4792790710926056, 0.37529218196868896, 0.004534832667559385, 0.19666102528572083, 0.37913715839385986, 0.46355727314949036, 0.09290212392807007, -0.546210527420044, -0.2645726799964905, 0.4903072416782379, -0.1796368807554245, -0.3312395215034485, 0.6813110113143921, 0.09936486184597015, -0.0966162234544754, 0.4834762215614319, -0.30013519525527954, -0.07473720610141754, 0.9323572516441345, 0.9134839177131653, 0.40774279832839966, 0.19549399614334106, 0.4180084764957428, 0.6542743444442749, 0.22293318808078766, 0.15214917063713074, 0.5552855134010315, 0.09210361540317535, -0.7557469010353088, -0.09117511659860611, -0.5073645710945129, -0.11538040637969971, 0.10161446034908295, -0.4818136394023895, 0.4944675862789154, -0.4122978448867798, -0.245608389377594, 0.08537565916776657, 0.010613808408379555, -0.6850233674049377, 0.16456148028373718, 0.24301454424858093, 1.080493688583374, -1.053803563117981, 0.962674617767334, 0.5787454843521118, -0.6443418860435486, -0.44685253500938416, -0.2231469750404358, 0.011353456415235996, -1.011326789855957, 1.0095840692520142, 0.1412438303232193, -0.1277930587530136, -0.010531294159591198, -0.9394532442092896, -1.0396385192871094, 1.2654564380645752, 0.38303202390670776, -0.3107408583164215, -0.13512493669986725, 0.16278299689292908, 0.5822136402130127, -0.2899661362171173, 0.23093931376934052, 0.27484840154647827, 0.3583882749080658, 0.38274022936820984, -0.4263754189014435, 0.2679574489593506, -0.2457813024520874, 0.28046563267707825, -0.00694176834076643, -0.6468047499656677, 1.1462293863296509, -0.7832576632499695, -0.46306535601615906, 0.8080158829689026, 0.5075215697288513, 0.4381781816482544, 0.45067575573921204, 0.6226513385772705, 0.9362413883209229, 0.6597870588302612, -0.04205969721078873, 1.1552791595458984, 0.12276972830295563, 0.4094215929508209, 0.965250551700592, -0.3707503378391266, 0.662724494934082, 0.7636298537254333, -0.24664054811000824, 0.5481042265892029, 0.6010318398475647, -0.06417291611433029, 0.5883915424346924, 0.03772415965795517, 0.044853586703538895, 0.10462239384651184, -0.1243031695485115, -0.6340376734733582, -0.031485117971897125, 0.4464045763015747, -0.4692935347557068, -0.22525067627429962, 0.22016088664531708, 0.05919116362929344, -0.2365531623363495, -0.10871164500713348, 0.3535131514072418, -0.004744209814816713, -0.3457351624965668, 0.9576692581176758, -0.05287241190671921, 0.8854172229766846, -0.7411323189735413, -0.20459319651126862, -0.48083433508872986, 0.3979175090789795, -0.44088447093963623, -0.8333960175514221, 0.12336308509111404, 0.001739021739922464, -0.11214706301689148, -0.15007805824279785, 0.7730680108070374, -0.07762495428323746, -0.5761293768882751, 0.3641887903213501, 0.3827350437641144, 0.301790714263916, 0.27170905470848083, -0.9613714218139648, 0.37471508979797363, 0.16299857199192047, -0.17593908309936523, 0.3250759541988373, 0.1934533268213272, 0.20121483504772186, 0.4941955804824829, 0.6593509316444397, 0.017419973388314247, 0.05768921971321106, -0.11461606621742249, 0.8338204622268677, -0.5934540629386902, -0.26690006256103516, -0.6161724925041199, 0.4626558721065521, -0.14483749866485596, -0.2270520031452179, 0.8290330171585083, 0.664921760559082, 0.7517269849777222, -0.2581771910190582, 0.6649141907691956, -0.49711254239082336, 0.2793779671192169, -0.6638200283050537, 0.6282685399055481, -0.7661317586898804, 0.2974657118320465, -0.3361923098564148, -0.986912727355957, 0.08038229495286942, 0.6403741836547852, -0.03766203671693802, 0.028292790055274963, 0.653254508972168, 1.0522141456604004, -0.18630482256412506, -0.2752492427825928, 0.20136891305446625, 0.6788634657859802, 0.21697098016738892, 0.5154464840888977, 0.9941884875297546, -0.6705226302146912, 0.5293988585472107, -0.5595848560333252, -0.23796075582504272, -0.07263592630624771, -0.8801501393318176, -0.5374791026115417, -0.6346538662910461, -0.4747563898563385, -0.8956085443496704, -0.050466254353523254, 0.8801684379577637, 0.6016433835029602, -0.6089849472045898, -0.20994803309440613, 0.20361639559268951, 0.158901184797287, -0.17404676973819733, -0.2813992202281952, 0.37155935168266296, 0.14322291314601898, -0.7865657806396484, 0.08257131278514862, 0.07603839784860611, 0.37881898880004883, -0.2895853817462921, -0.257134348154068, -0.17731226980686188, 0.1270214319229126, 0.5885854363441467, 0.4284646809101105, -0.6108705997467041, -0.11674181371927261, -0.28342482447624207, -0.2940188944339752, 0.29481205344200134, 0.42165717482566833, -0.9674903154373169, 0.11557681858539581, 0.5063779354095459, 0.0658709928393364, 0.44400155544281006, -0.2334224134683609, -0.06951255351305008, -0.6043189167976379, 0.1393251121044159, -0.07900938391685486, 0.538372278213501, 0.27536576986312866, -0.4456165134906769, 0.6334102153778076, 0.3498210608959198, -0.3116760849952698, -0.9490129947662354, 0.0015487065538764, -1.2005112171173096, -0.33324629068374634, 1.2704730033874512, 0.004533022176474333, -0.45441409945487976, 0.1554025560617447, -0.8444451093673706, -0.14389006793498993, -0.35487037897109985, 0.71571946144104, 0.38072580099105835, -0.3380577266216278, -0.03013387694954872, -0.3986809551715851, 0.20237059891223907, 0.21489281952381134, -0.7063626646995544, -0.15258987247943878, 0.4340526759624481, 0.4295523166656494, 0.6111763715744019, 0.7545468211174011, -0.07914391905069351, 0.23911644518375397, 0.024523625150322914, -0.049736544489860535, 0.12132225930690765, 0.0688764899969101, -0.2276683896780014, 0.029841499403119087, -0.03703771159052849, 0.15505629777908325 ]
TurkuNLP/bert-base-finnish-cased-v1
TurkuNLP
"2022-06-10T08:43:15Z"
43,520
4
transformers
[ "transformers", "pytorch", "tf", "jax", "bert", "fill-mask", "fi", "arxiv:1912.07076", "arxiv:1908.04212", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
fill-mask
"2022-03-02T23:29:05Z"
--- language: fi --- ## Quickstart **Release 1.0** (November 25, 2019) We generally recommend the use of the cased model. Paper presenting Finnish BERT: [arXiv:1912.07076](https://arxiv.org/abs/1912.07076) ## What's this? A version of Google's [BERT](https://github.com/google-research/bert) deep transfer learning model for Finnish. The model can be fine-tuned to achieve state-of-the-art results for various Finnish natural language processing tasks. FinBERT features a custom 50,000 wordpiece vocabulary that has much better coverage of Finnish words than e.g. the previously released [multilingual BERT](https://github.com/google-research/bert/blob/master/multilingual.md) models from Google: | Vocabulary | Example | |------------|---------| | FinBERT | Suomessa vaihtuu kesän aikana sekä pääministeri että valtiovarain ##ministeri . | | Multilingual BERT | Suomessa vai ##htuu kes ##än aikana sekä p ##ää ##minister ##i että valt ##io ##vara ##in ##minister ##i . | FinBERT has been pre-trained for 1 million steps on over 3 billion tokens (24B characters) of Finnish text drawn from news, online discussion, and internet crawls. By contrast, Multilingual BERT was trained on Wikipedia texts, where the Finnish Wikipedia text is approximately 3% of the amount used to train FinBERT. These features allow FinBERT to outperform not only Multilingual BERT but also all previously proposed models when fine-tuned for Finnish natural language processing tasks. ## Results ### Document classification ![learning curves for Yle and Ylilauta document classification](https://raw.githubusercontent.com/TurkuNLP/FinBERT/master/img/yle-ylilauta-curves.png) FinBERT outperforms multilingual BERT (M-BERT) on document classification over a range of training set sizes on the Yle news (left) and Ylilauta online discussion (right) corpora. (Baseline classification performance with [FastText](https://fasttext.cc/) included for reference.) [[code](https://github.com/spyysalo/finbert-text-classification)][[Yle data](https://github.com/spyysalo/yle-corpus)] [[Ylilauta data](https://github.com/spyysalo/ylilauta-corpus)] ### Named Entity Recognition Evaluation on FiNER corpus ([Ruokolainen et al 2019](https://arxiv.org/abs/1908.04212)) | Model | Accuracy | |--------------------|----------| | **FinBERT** | **92.40%** | | Multilingual BERT | 90.29% | | [FiNER-tagger](https://github.com/Traubert/FiNer-rules) (rule-based) | 86.82% | (FiNER tagger results from [Ruokolainen et al. 2019](https://arxiv.org/pdf/1908.04212.pdf)) [[code](https://github.com/jouniluoma/keras-bert-ner)][[data](https://github.com/mpsilfve/finer-data)] ### Part of speech tagging Evaluation on three Finnish corpora annotated with [Universal Dependencies](https://universaldependencies.org/) part-of-speech tags: the Turku Dependency Treebank (TDT), FinnTreeBank (FTB), and Parallel UD treebank (PUD) | Model | TDT | FTB | PUD | |-------------------|-------------|-------------|-------------| | **FinBERT** | **98.23%** | **98.39%** | **98.08%** | | Multilingual BERT | 96.97% | 95.87% | 97.58% | [[code](https://github.com/spyysalo/bert-pos)][[data](http://hdl.handle.net/11234/1-2837)] ## Previous releases ### Release 0.2 **October 24, 2019** Beta version of the BERT base uncased model trained from scratch on a corpus of Finnish news, online discussions, and crawled data. Download the model here: [bert-base-finnish-uncased.zip](http://dl.turkunlp.org/finbert/bert-base-finnish-uncased.zip) ### Release 0.1 **September 30, 2019** We release a beta version of the BERT base cased model trained from scratch on a corpus of Finnish news, online discussions, and crawled data. Download the model here: [bert-base-finnish-cased.zip](http://dl.turkunlp.org/finbert/bert-base-finnish-cased.zip)
[ -0.4873359501361847, -0.6320511698722839, 0.24184365570545197, 0.044264692813158035, -0.35469692945480347, -0.09527893364429474, -0.5777474641799927, -0.5801256895065308, 0.217184916138649, 0.306493878364563, -0.4204932451248169, -0.7658982872962952, -0.5957369208335876, -0.06787578761577606, -0.23072881996631622, 1.325187087059021, 0.03514999523758888, 0.30147585272789, -0.05820922553539276, -0.1495797336101532, -0.29747024178504944, -0.9303191900253296, -0.5870351791381836, -0.2535147964954376, 0.6856001019477844, 0.24401555955410004, 0.22365744411945343, 0.2265588343143463, 0.5718737244606018, 0.27111226320266724, -0.1196211501955986, -0.004090849310159683, -0.18878468871116638, -0.036037519574165344, 0.10476616770029068, -0.2916674017906189, -0.3927517831325531, -0.00788157433271408, 0.7302069664001465, 0.6654794812202454, -0.06758701056241989, 0.09435027092695236, -0.0774131491780281, 0.6738311052322388, -0.4821755290031433, 0.21443650126457214, -0.6726053953170776, -0.24317312240600586, -0.3039873540401459, 0.26346415281295776, -0.5962101221084595, -0.18179446458816528, 0.3255789577960968, -0.5012547969818115, 0.30300280451774597, -0.258116751909256, 1.3017138242721558, 0.1395537257194519, -0.2537905275821686, -0.3246895968914032, -0.614973783493042, 0.8240946531295776, -0.7756612300872803, 0.7411093711853027, 0.3795010447502136, 0.13605648279190063, -0.038745179772377014, -0.94790118932724, -0.49133142828941345, -0.18546326458454132, -0.2242903709411621, 0.20663270354270935, -0.2134629338979721, 0.034592900425195694, 0.11800442636013031, 0.17667676508426666, -0.6193856000900269, 0.15549930930137634, -0.6513488292694092, -0.23186802864074707, 0.6153081059455872, -0.3745153546333313, 0.059220071882009506, -0.4299132823944092, -0.53341144323349, -0.39411279559135437, -0.4158056378364563, 0.26297885179519653, 0.3802042603492737, 0.5999730825424194, -0.14819414913654327, 0.34406813979148865, 0.12132055312395096, 0.6254351735115051, -0.07394367456436157, -0.16027748584747314, 0.6434377431869507, -0.30396798253059387, -0.2972360849380493, 0.15279307961463928, 0.8786563873291016, 0.2180425077676773, 0.2630850374698639, -0.08210556954145432, -0.1283281147480011, 0.10703526437282562, 0.1798582822084427, -0.7151274085044861, -0.25942447781562805, 0.3292003571987152, -0.3437134027481079, -0.05644918978214264, 0.04691820964217186, -0.5932570695877075, 0.0503656230866909, -0.23752461373806, 0.5672557950019836, -0.8772767186164856, -0.22420759499073029, 0.19081002473831177, -0.16508755087852478, 0.34099331498146057, 0.29957231879234314, -0.9227973222732544, 0.23031188547611237, 0.6150857210159302, 0.721933126449585, -0.19238489866256714, -0.23164500296115875, -0.26887741684913635, -0.24326397478580475, -0.21369725465774536, 0.758324921131134, -0.1283256858587265, -0.15377482771873474, -0.015998952090740204, 0.08115119487047195, -0.33891820907592773, -0.19087909162044525, 0.9396997094154358, -0.41018298268318176, 0.6242884397506714, -0.25529634952545166, -0.7698750495910645, -0.2945445477962494, 0.04977405443787575, -0.5620133876800537, 1.2084709405899048, 0.15447834134101868, -0.9496489763259888, 0.5102353096008301, -0.7103392481803894, -0.309967964887619, 0.12601397931575775, 0.08818843960762024, -0.5141582489013672, -0.12605921924114227, 0.16415831446647644, 0.6121202707290649, 0.1858920156955719, 0.4582411050796509, -0.22589321434497833, -0.2872156500816345, 0.03484749794006348, -0.20955266058444977, 1.1586343050003052, 0.3655322790145874, -0.25990742444992065, 0.023934705182909966, -0.890635073184967, 0.088353730738163, 0.011843165382742882, -0.5631401538848877, -0.5110576152801514, -0.0671582967042923, 0.40212470293045044, 0.08452749997377396, 0.31395450234413147, -0.6975075006484985, 0.2251977175474167, -0.4949526786804199, 0.42439547181129456, 0.5405743718147278, -0.2670881152153015, 0.3385593891143799, -0.35504695773124695, 0.11216013878583908, -0.14217151701450348, 0.17299111187458038, -0.15915726125240326, -0.6343728303909302, -1.047811508178711, -0.705532968044281, 0.9493988752365112, 0.6465732455253601, -0.5696030855178833, 0.7539845108985901, -0.4574427902698517, -0.7351648211479187, -0.8444791436195374, -0.021298304200172424, 0.42330676317214966, 0.46973323822021484, 0.4287654161453247, -0.3589162528514862, -0.6666852235794067, -1.0143251419067383, 0.11966656148433685, -0.42535334825515747, 0.08267859369516373, 0.12673449516296387, 0.5951253771781921, -0.20525909960269928, 0.8946947455406189, -0.12035013735294342, -0.33285996317863464, -0.2518518567085266, 0.461943656206131, 0.26786354184150696, 0.6237027645111084, 0.7409941554069519, -0.8562761545181274, -0.5427109599113464, -0.018179094418883324, -0.5460331439971924, 0.09527892619371414, 0.07111308723688126, 0.0881098061800003, 0.8549607396125793, 0.3554096221923828, -0.734067976474762, 0.23018105328083038, 0.49140870571136475, -0.34421777725219727, 0.4924604296684265, -0.24753443896770477, -0.1264583021402359, -1.2953766584396362, 0.274326354265213, 0.029375959187746048, -0.2077348828315735, -0.8359799385070801, 0.14692100882530212, 0.21716155111789703, 0.11848273128271103, -0.6615790128707886, 0.588562548160553, -0.28063052892684937, -0.03534931689500809, 0.15093624591827393, -0.06647414714097977, -0.008918595500290394, 0.7058284878730774, 0.21011273562908173, 0.8302263021469116, 0.36087536811828613, -0.6189968585968018, 0.12129651010036469, 0.2827492356300354, -0.706275224685669, 0.18859773874282837, -0.6176677346229553, 0.02301228977739811, -0.27991724014282227, 0.2199365198612213, -1.095292568206787, -0.07435982674360275, 0.19156397879123688, -0.7815894484519958, 0.624825656414032, -0.23984143137931824, -0.6199514865875244, -0.3982950448989868, -0.520670473575592, -0.12536878883838654, 0.617705762386322, -0.5373132824897766, 0.43609917163848877, 0.27405616641044617, -0.31487902998924255, -0.8001965284347534, -0.8164202570915222, -0.010797402821481228, -0.2900553047657013, -0.7107077240943909, 0.5221984386444092, -0.3249230682849884, -0.20636022090911865, 0.12814491987228394, 0.08421603590250015, -0.21208535134792328, 0.16152897477149963, 0.08532533794641495, 0.4921332001686096, -0.26188361644744873, 0.4806516766548157, -0.07922327518463135, 0.0745401456952095, -0.16518618166446686, -0.11496125906705856, 0.60768061876297, -0.44434019923210144, 0.07101862877607346, -0.26698264479637146, 0.33661389350891113, 0.5126078724861145, -0.20158512890338898, 0.7388857007026672, 1.0181405544281006, -0.3593294322490692, 0.13338345289230347, -0.7516360878944397, -0.03247732296586037, -0.4054127037525177, 0.2905883193016052, -0.3892397880554199, -1.0066534280776978, 0.5193182229995728, 0.25834372639656067, 0.2873350977897644, 0.8562632203102112, 0.4827803373336792, -0.329779714345932, 0.6582110524177551, 0.8310571312904358, -0.2203911691904068, 0.5478836894035339, -0.45155978202819824, -0.007446841336786747, -0.7691740393638611, -0.32404625415802, -0.745349109172821, -0.029154645279049873, -0.9852176308631897, -0.22778648138046265, 0.0729244202375412, 0.32427680492401123, -0.13092683255672455, 0.6602221727371216, -0.5771762132644653, 0.041877537965774536, 0.7893479466438293, -0.07319912314414978, 0.053036581724882126, 0.3475317656993866, -0.35930895805358887, -0.1916174292564392, -0.8544854521751404, -0.4780139923095703, 1.2128965854644775, 0.5054783225059509, 0.47967708110809326, 0.056933172047138214, 0.9019010663032532, 0.3744279146194458, 0.27324339747428894, -0.8752841353416443, 0.3909859359264374, -0.48654991388320923, -0.8681687116622925, -0.375044584274292, -0.3328061103820801, -1.1582059860229492, 0.35951927304267883, -0.32690075039863586, -0.9165027737617493, 0.3537682890892029, -0.168650820851326, -0.3031191825866699, 0.32424086332321167, -1.0653092861175537, 0.8364007472991943, -0.2666839361190796, -0.14390252530574799, -0.00009321618563262746, -0.7326917052268982, 0.21390172839164734, -0.25674012303352356, 0.31054455041885376, -0.16868841648101807, 0.0732484757900238, 1.0215280055999756, -0.31635549664497375, 0.827237069606781, -0.16397395730018616, -0.0829317644238472, 0.19102388620376587, -0.37332868576049805, 0.3846997022628784, -0.17503324151039124, -0.025517748668789864, 0.4214986562728882, 0.22990350425243378, -0.26353907585144043, -0.2387113720178604, 0.7512835264205933, -0.9796460270881653, -0.3502977192401886, -0.6660364270210266, -0.452721506357193, -0.09910230338573456, 0.2546638250350952, 0.4995587468147278, 0.28599974513053894, -0.2765120565891266, 0.22222130000591278, 0.8500211834907532, -0.3373580276966095, 0.6045394539833069, 0.6932008266448975, -0.10826945304870605, -0.504000723361969, 0.8906654715538025, 0.22552324831485748, 0.03540777042508125, 0.5230293869972229, 0.05486566945910454, -0.31723740696907043, -0.511383593082428, -0.46315017342567444, 0.38487017154693604, -0.693253219127655, -0.1476752609014511, -0.8942863345146179, -0.46791860461235046, -0.6929248571395874, 0.039738208055496216, -0.42908304929733276, -0.7479852437973022, -0.2687622010707855, -0.06082736328244209, 0.5257982015609741, 0.5420340895652771, -0.18313801288604736, 0.2524237036705017, -0.6052194833755493, 0.004945714492350817, 0.29099389910697937, 0.36797019839286804, -0.3907169997692108, -0.5985943078994751, -0.21446220576763153, -0.039761945605278015, -0.014662000350654125, -0.6614266037940979, 0.45348629355430603, 0.2145473062992096, 0.6615073680877686, 0.1137814149260521, 0.04638867452740669, 0.3826236128807068, -0.47639626264572144, 0.8700308203697205, 0.2769213616847992, -0.7596078515052795, 0.5192522406578064, -0.34822455048561096, 0.3021779954433441, 0.745669424533844, 0.6874102354049683, -0.5562037229537964, -0.2513226270675659, -0.8175170421600342, -1.0782418251037598, 0.8263102173805237, 0.2025395780801773, 0.12147492915391922, 0.03713227063417435, 0.15638552606105804, 0.2284563183784485, 0.15990589559078217, -0.8309316039085388, -0.4482579827308655, -0.11466183513402939, -0.18179692327976227, -0.33326205611228943, -0.49330490827560425, 0.1257367730140686, -0.5231004953384399, 0.9391680359840393, 0.13441111147403717, 0.59211665391922, 0.3888508975505829, -0.225389763712883, 0.10254716128110886, 0.4945095479488373, 0.8342472314834595, 0.5832931995391846, -0.792059600353241, 0.007381015457212925, 0.13769744336605072, -0.5906308889389038, -0.17377538979053497, 0.5986769199371338, -0.2691081762313843, 0.5728906989097595, 0.46898889541625977, 1.0252501964569092, 0.22161169350147247, -0.5279217958450317, 0.5271199941635132, -0.2100318819284439, -0.6140934228897095, -0.4142894744873047, -0.16779924929141998, 0.07450400292873383, 0.10062599182128906, 0.4301208257675171, -0.09958609193563461, 0.057103075087070465, -0.46310701966285706, 0.24387969076633453, 0.35246017575263977, -0.41821327805519104, -0.1696581095457077, 0.4162297546863556, 0.15175382792949677, -0.16502997279167175, 0.5394032597541809, -0.18896222114562988, -0.706161618232727, 0.4753071665763855, 0.3439490795135498, 0.840336263179779, -0.19038580358028412, 0.3325044810771942, 0.6155043840408325, 0.5199242830276489, 0.10468740016222, 0.33708634972572327, -0.008031520061194897, -0.7351827621459961, -0.5956223011016846, -0.8843069672584534, -0.19923342764377594, 0.473246306180954, -0.639295756816864, 0.2744464874267578, -0.34971168637275696, -0.37159743905067444, 0.4176217019557953, 0.40757259726524353, -0.7105961441993713, 0.1448439508676529, 0.35674187541007996, 1.1592236757278442, -0.7025758624076843, 1.2105462551116943, 0.8843939900398254, -0.41525933146476746, -0.5779184103012085, -0.3319798409938812, -0.3275589942932129, -0.6687597632408142, 0.8040315508842468, 0.19545836746692657, 0.1910303831100464, -0.10854604840278625, -0.4557870030403137, -1.0169789791107178, 1.0114370584487915, 0.30780282616615295, -0.6765284538269043, 0.05935713276267052, 0.01544073037803173, 0.6545668840408325, -0.2589896321296692, 0.18923497200012207, 0.3854166567325592, 0.5183643698692322, 0.008738725446164608, -1.2113382816314697, -0.319703608751297, -0.34028664231300354, 0.030160434544086456, 0.277248352766037, -0.634067714214325, 0.9384321570396423, -0.07404008507728577, -0.2939459979534149, 0.004360644146800041, 0.5124435424804688, 0.10538695007562637, 0.22353829443454742, 0.4808918833732605, 0.8429116606712341, 0.9166132807731628, -0.1743299812078476, 1.0385037660598755, -0.24728542566299438, 0.42164161801338196, 1.1730239391326904, 0.10009113699197769, 1.0972844362258911, 0.4323602318763733, -0.2516448497772217, 0.6796894669532776, 0.8054279685020447, -0.11195359379053116, 0.6318146586418152, -0.028167303651571274, -0.21511903405189514, -0.13597306609153748, -0.17675276100635529, -0.5020889043807983, 0.5362311601638794, 0.36635392904281616, -0.37579312920570374, -0.18376606702804565, 0.1016092449426651, 0.31638941168785095, -0.1354285180568695, -0.18799059092998505, 0.6921911835670471, -0.04101655259728432, -0.626011073589325, 0.853060781955719, 0.2822708785533905, 0.9541229009628296, -0.8490694165229797, 0.14253033697605133, -0.24369870126247406, 0.12699155509471893, -0.013520769774913788, -0.6588888764381409, 0.12687963247299194, 0.11822285503149033, -0.2598193287849426, -0.28714805841445923, 0.9320350885391235, -0.5342018008232117, -0.6351122260093689, 0.4057682752609253, 0.45751139521598816, 0.36102715134620667, 0.22804774343967438, -0.8608669638633728, 0.1306498646736145, -0.04809092357754707, -0.29614728689193726, 0.308841735124588, 0.18014460802078247, -0.04730875417590141, 0.5452170968055725, 0.6591902375221252, 0.021459322422742844, 0.11287206411361694, 0.09494145214557648, 0.8349667191505432, -0.46887823939323425, -0.2548631429672241, -0.6569332480430603, 0.5224987864494324, -0.020601334050297737, -0.3640116751194, 0.7813730835914612, 0.671574056148529, 1.2114418745040894, -0.0685710459947586, 0.8163630962371826, -0.22594037652015686, 0.5596086978912354, -0.5078219175338745, 0.7623158693313599, -0.6038365960121155, -0.061482321470975876, -0.25995367765426636, -0.7943644523620605, -0.319558709859848, 0.664214551448822, -0.1738550215959549, -0.07850675284862518, 0.6816009283065796, 0.4655129015445709, 0.09454916417598724, -0.23686794936656952, 0.2850172519683838, 0.08027428388595581, 0.08476629853248596, 0.5018960237503052, 0.5686085820198059, -0.6755390763282776, 0.5545955896377563, -0.42160487174987793, -0.1412385255098343, -0.13665173947811127, -0.8366286754608154, -1.0621788501739502, -0.9182398915290833, -0.3495579659938812, -0.27132490277290344, 0.34570935368537903, 1.0025091171264648, 0.8346732258796692, -0.9498288035392761, -0.272887259721756, 0.07394930720329285, 0.01891612634062767, -0.06055690720677376, -0.217166468501091, 0.5398789644241333, -0.5536325573921204, -0.7526771426200867, 0.2342223823070526, -0.07478746026754379, 0.13134658336639404, -0.16632245481014252, -0.07248228788375854, -0.6684086322784424, -0.07095909118652344, 0.6858441233634949, 0.2822803258895874, -0.7684363126754761, -0.17117805778980255, -0.011821271851658821, -0.24942168593406677, 0.11800654232501984, 0.38415661454200745, -0.7778963446617126, 0.49757111072540283, 0.4826039671897888, 0.5082842111587524, 0.8833258152008057, -0.3259275555610657, 0.278346449136734, -0.8453558087348938, 0.19636140763759613, 0.09270171076059341, 0.37743401527404785, 0.478811115026474, -0.2380857616662979, 0.6472551226615906, 0.28960755467414856, -0.3337624669075012, -0.7904407978057861, -0.15253575146198273, -1.1946632862091064, -0.5261543393135071, 1.1009676456451416, -0.2940182089805603, -0.25365814566612244, 0.04429260268807411, -0.15400244295597076, 0.34187695384025574, -0.5440696477890015, 0.5631932616233826, 1.012351393699646, 0.2283214032649994, -0.13894926011562347, -0.587333083152771, 0.614578127861023, 0.3492449223995209, -0.6178080439567566, -0.13582013547420502, 0.35188254714012146, 0.4568517506122589, 0.456985205411911, 0.6870599389076233, -0.0003848721971735358, 0.14535249769687653, -0.25069311261177063, 0.519349992275238, -0.029093611985445023, -0.35380902886390686, -0.4223531484603882, -0.07646782696247101, -0.01966186612844467, -0.29375481605529785 ]
EleutherAI/gpt-neox-20b
EleutherAI
"2023-06-21T14:34:00Z"
43,497
451
transformers
[ "transformers", "pytorch", "safetensors", "gpt_neox", "text-generation", "causal-lm", "en", "dataset:EleutherAI/pile", "arxiv:2204.06745", "arxiv:2101.00027", "arxiv:2201.07311", "arxiv:2104.09864", "license:apache-2.0", "endpoints_compatible", "has_space", "text-generation-inference", "region:us" ]
text-generation
"2022-04-07T20:28:29Z"
--- language: - en tags: - pytorch - causal-lm license: apache-2.0 datasets: - EleutherAI/pile --- GPT-NeoX-20B is a 20 billion parameter autoregressive language model trained on [the Pile](https://pile.eleuther.ai/) using the [GPT-NeoX library](https://github.com/EleutherAI/gpt-neox). Its architecture intentionally resembles that of GPT-3, and is almost identical to that of [GPT-J- 6B](https://huggingface.co/EleutherAI/gpt-j-6B). Its training dataset contains a multitude of English-language texts, reflecting the general-purpose nature of this model. See the [accompanying paper](https://arxiv.org/abs/2204.06745) for details about model architecture (including how it differs from GPT-3), training procedure, and additional evaluations. ### Model details - Developed by: [EleutherAI](http://eleuther.ai) - Model type: Transformer-based Language Model - Language: English - Learn more: [GPT-NeoX-20B: An Open-Source Autoregressive Language Model](https://arxiv.org/abs/2204.06745). For details about the training dataset, see [the Pile paper](https://arxiv.org/abs/2101.00027), and [its data sheet](https://arxiv.org/abs/2201.07311). - 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 GPT-NeoX-20B documentation before asking about the model on Discord. For general correspondence: [contact@eleuther. ai](mailto:contact@eleuther.ai). <figure style="width:30em"> | Hyperparameter | Value | | ---------------------- | ----------- | | n<sub>parameters</sub> | 20554567680 | | n<sub>layers</sub> | 44 | | d<sub>model</sub> | 6144 | | n<sub>heads</sub> | 64 | | d<sub>head</sub> | 96 | | n<sub>vocab</sub> | 50257 | | Sequence Length | 2048 | | Learning Rate | 0.97 x 10<sup>-5</sup> | | Positional Encoding | [Rotary Position Embedding (RoPE)](https://arxiv.org/abs/2104.09864) | </figure> ### Uses and limitations #### Intended use GPT-NeoX-20B was developed primarily for research purposes. It learns an inner representation of the English language that can be used to extract features useful for downstream tasks. In addition to scientific uses, you may also further fine-tune and adapt GPT-NeoX-20B for deployment, as long as your use is in accordance with the Apache 2.0 license. This model works with the [Transformers Library](https://huggingface.co/docs/transformers/index). If you decide to use pre-trained GPT-NeoX-20B as a basis for your fine-tuned model, please note that you need to conduct your own risk and bias assessment. #### Out-of-scope use GPT-NeoX-20B is **not** intended for deployment as-is. It is not a product and cannot be used for human-facing interactions without supervision. GPT-NeoX-20B has not been fine-tuned for downstream tasks for which language models are commonly deployed, such as writing genre prose, or commercial chatbots. This means GPT-NeoX-20B will likely **not** respond to a given prompt the way products such as ChatGPT do. This is because, unlike GPT-NeoX-20B, ChatGPT was fine-tuned using methods such as Reinforcement Learning from Human Feedback (RLHF) to better “understand” human instructions and dialogue. This model is English-language only, and thus cannot be used for translation or generating text in other languages. #### Limitations and biases The core functionality of GPT-NeoX-20B is to take a string of text and predict the next token. Remember that the statistically most likely next token need not result in the most “accurate” text. Never rely on GPT-NeoX-20B 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. GPT-NeoX-20B may produce socially unacceptable or undesirable text, *even if* the prompt itself does not include anything explicitly offensive. We recommend curating the outputs of this model before presenting it to a human reader. Please inform your audience that you are using artificially generated text. #### How to use If you simply want to try out some prompts, check out [this playground](https://20b.eleuther.ai/). GPT-NeoX-20B can be loaded using the `AutoModelForCausalLM` functionality: ```python from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("EleutherAI/gpt-neox-20b") model = AutoModelForCausalLM.from_pretrained("EleutherAI/gpt-neox-20b") ``` ### Training #### Training dataset The Pile 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/). The Pile was **not** deduplicated before being used to train GPT-NeoX-20B. #### Training procedure GPT-NeoX-20B was trained with a batch size of approximately 3.15M tokens (1538 sequences of 2048 tokens each), for a total of 150,000 steps. Tensor parallelism and pipeline parallelism were used to distribute the model across GPUs. Additional details about the training procedure are in [Section 3 of the accompanying paper](https://arxiv.org/abs/2204.06745). ### Evaluations <figure style="width:55em"> | Model | OpenAI’s LAMBADA | SciQ | PIQA | TriviaQA | ARC (Challenge) | | ------------- | :--------------: | :-----------: | :-----------: | :-----------: | :-------------: | | GPT-J-6B | 0.683 ± 0.006 | 0.910 ± 0.009 | 0.752 ± 0.010 | 0.170 ± 0.004 | 0.340 ± 0.014 | | FairSeq 6.7B | 0.673 ± 0.007 | 0.895 ± 0.010 | 0.762 ± 0.010 | 0.221 ± 0.004 | 0.329 ± 0.014 | | GPT-3 Curie | 0.693 ± 0.006 | 0.918 ± 0.009 | 0.767 ± 0.010 | 0.196 ± 0.004 | 0.334 ± 0.014 | | FairSeq 13B | 0.709 ± 0.006 | 0.910 ± 0.009 | 0.769 ± 0.010 | 0.270 ± 0.004 | 0.345 ± 0.014 | | GPT-NeoX-20B | 0.720 ± 0.006 | 0.928 ± 0.008 | 0.779 ± 0.010 | 0.259 ± 0.004 | 0.380 ± 0.014 | | GPT-3 DaVinci | 0.752 ± 0.006 | 0.949 ± 0.007 | 0.791 ± 0.009 | 0.409 ± 0.005 | 0.435 ± 0.014 | <figcaption>Zero-shot performance on selected natural language tasks.</figcaption> </figure> This is a heavily abridged version of the evaluation results. Appendix D of the [GPT-NeoX-20B paper](https://arxiv.org/abs/2204.06745) compares more model sizes, and contains additional evaluations, including on: zero and five-shot natural language tasks, zero and five-shot Basic Arithmetic and MATH, and zero-shot Hendrycks tasks. ### BibTeX To cite the GPT-NeoX-20B paper: ``` @misc{https://doi.org/10.48550/arxiv.2204.06745, doi = {10.48550/ARXIV.2204.06745}, url = {https://arxiv.org/abs/2204.06745}, author = {Black, Sid and Biderman, Stella and Hallahan, Eric and Anthony, Quentin and Gao, Leo and Golding, Laurence and He, Horace and Leahy, Connor and McDonell, Kyle and Phang, Jason and Pieler, Michael and Prashanth, USVSN Sai and Purohit, Shivanshu and Reynolds, Laria and Tow, Jonathan and Wang, Ben and Weinbach, Samuel}, keywords = {Computation and Language (cs.CL), FOS: Computer and information sciences, FOS: Computer and information sciences}, title = {GPT-NeoX-20B: An Open-Source Autoregressive Language Model}, publisher = {arXiv}, year = {2022}, copyright = {Creative Commons Attribution 4.0 International} } ```
[ -0.4886411428451538, -0.9960662722587585, 0.3789061903953552, 0.0731005147099495, -0.27159708738327026, -0.012995416298508644, -0.1533774882555008, -0.6479281187057495, 0.11975543200969696, 0.27083128690719604, -0.40402528643608093, -0.48762449622154236, -0.6655842661857605, 0.18192367255687714, -0.565911591053009, 1.3066151142120361, 0.06308534741401672, -0.38694003224372864, -0.028180919587612152, 0.09591860324144363, -0.026550518348813057, -0.5612202882766724, -0.8491406440734863, -0.23401817679405212, 0.32946768403053284, -0.14937597513198853, 0.7161823511123657, 0.8192340731620789, 0.2751142680644989, 0.2932906448841095, -0.15972207486629486, -0.11218085885047913, -0.3528330624103546, -0.3672022819519043, 0.012621316127479076, -0.17983731627464294, -0.6551785469055176, 0.08212493360042572, 0.5704796314239502, 0.5256234407424927, -0.2483016550540924, 0.14560937881469727, 0.10636477917432785, 0.3255367875099182, -0.3184320330619812, 0.08022863417863846, -0.3914856016635895, -0.20373374223709106, -0.015498057939112186, 0.11153285205364227, -0.24279876053333282, -0.1616690456867218, 0.10755958408117294, -0.7650864124298096, 0.2324368804693222, 0.005064526107162237, 1.2448045015335083, 0.18183548748493195, -0.23833085596561432, -0.21704961359500885, -0.7926480174064636, 0.7675021886825562, -0.8433294296264648, 0.3430306017398834, 0.4340001940727234, 0.05961625650525093, 0.25572165846824646, -0.7669615149497986, -0.5971330404281616, -0.21159601211547852, -0.12435689568519592, 0.3738259971141815, -0.4399830102920532, -0.10719965398311615, 0.43203362822532654, 0.32612156867980957, -1.0074834823608398, 0.13625389337539673, -0.2893100082874298, -0.20045964419841766, 0.5486839413642883, 0.25003352761268616, 0.278351753950119, -0.39127328991889954, -0.4249444305896759, -0.5391418933868408, -0.5312930941581726, 0.012905392795801163, 0.5679442286491394, 0.16571882367134094, -0.5200627446174622, 0.3736015856266022, -0.045477986335754395, 0.7303877472877502, 0.05131356045603752, 0.00958237424492836, 0.4045620560646057, -0.6128818988800049, -0.28068098425865173, -0.2998843789100647, 1.4082037210464478, 0.09511813521385193, 0.2098015397787094, -0.022316453978419304, -0.2741754651069641, 0.20059612393379211, 0.21014969050884247, -1.000872254371643, -0.1980380117893219, 0.2835472524166107, -0.19234666228294373, -0.18781642615795135, 0.07631532847881317, -0.5930982232093811, 0.028483325615525246, -0.31210559606552124, 0.4279921054840088, -0.6669385433197021, -0.3794853091239929, 0.10044176876544952, -0.18977466225624084, 0.22581900656223297, 0.30382028222084045, -0.7811944484710693, 0.6102145910263062, 0.6542611718177795, 0.8272438049316406, -0.0005335375317372382, -0.3383028507232666, -0.20425406098365784, -0.15652450919151306, -0.2500157952308655, 0.7275843024253845, -0.4604564309120178, -0.2840935289859772, -0.26668301224708557, 0.15147191286087036, -0.30018123984336853, -0.35092249512672424, 0.4379076361656189, -0.15625204145908356, 0.8006951808929443, 0.08740895986557007, -0.45238250494003296, -0.18732263147830963, 0.3327711224555969, -0.49668532609939575, 1.2254014015197754, 0.4188803732395172, -0.9016100168228149, 0.2735569179058075, -0.5688325762748718, -0.06613124161958694, 0.12065276503562927, -0.14628586173057556, -0.5276607275009155, -0.3007980287075043, 0.32947680354118347, 0.2914291322231293, -0.39316606521606445, 0.3268658220767975, -0.15755043923854828, -0.46826037764549255, -0.05854747071862221, -0.4141516089439392, 0.9972322583198547, 0.15979042649269104, -0.7232249975204468, 0.01910823956131935, -0.7883498668670654, -0.04835967347025871, 0.3174571990966797, -0.14789770543575287, -0.2996768653392792, -0.3013615310192108, 0.135107159614563, 0.37605512142181396, 0.2136950045824051, -0.5420565009117126, 0.26866614818573, -0.4517251253128052, 0.5913601517677307, 0.5869902968406677, -0.16442739963531494, 0.4016898572444916, -0.29183006286621094, 0.7100113034248352, -0.18472988903522491, 0.2233864814043045, -0.11525305360555649, -0.6587584018707275, -0.5866658091545105, -0.2844313681125641, 0.3892606496810913, 0.8121718764305115, -0.6304355263710022, 0.3595462739467621, -0.2739304304122925, -0.6593561172485352, -0.43668124079704285, -0.12797600030899048, 0.5070530772209167, 0.4003504514694214, 0.48957017064094543, -0.23971417546272278, -0.5185193419456482, -0.8119648694992065, 0.04572838172316551, -0.3259352743625641, -0.13078145682811737, 0.4679841995239258, 0.7015702724456787, -0.4428343176841736, 0.7704581022262573, -0.3119697868824005, 0.06923321634531021, -0.17947646975517273, 0.47302088141441345, 0.4981202185153961, 0.3824479877948761, 0.5983297228813171, -0.49002528190612793, -0.6878048777580261, 0.16812101006507874, -0.6438515186309814, 0.01863163709640503, -0.13509050011634827, 0.12006935477256775, 0.391789048910141, 0.44072648882865906, -0.7782841920852661, 0.3616802394390106, 0.6614345908164978, -0.47136685252189636, 0.7782191634178162, -0.3208793103694916, -0.12742547690868378, -1.184730052947998, 0.3733375072479248, 0.047597113996744156, -0.22172841429710388, -0.42459046840667725, -0.16054557263851166, 0.027017734944820404, -0.16591358184814453, -0.4459950029850006, 0.8679075837135315, -0.4576607048511505, 0.12350834161043167, -0.27533772587776184, 0.14093001186847687, -0.09921655058860779, 0.5948867201805115, 0.27785518765449524, 0.7710270285606384, 0.6350864171981812, -0.6387863159179688, 0.12291055172681808, 0.10229432582855225, -0.06936369836330414, 0.4684373736381531, -1.0087021589279175, 0.38429704308509827, -0.06783133745193481, 0.16662928462028503, -0.7639118432998657, 0.13566096127033234, 0.36679598689079285, -0.5820310115814209, 0.3031567335128784, -0.2039119452238083, -0.3725270628929138, -0.5524720549583435, -0.2664698362350464, 0.31109267473220825, 0.6188405156135559, -0.14072270691394806, 0.5092456936836243, 0.18678027391433716, -0.2721412479877472, -0.839678168296814, -0.41004255414009094, 0.10848324745893478, -0.30999645590782166, -0.4692014157772064, 0.5116800665855408, -0.07935919612646103, -0.12330859899520874, 0.2518167793750763, 0.205714151263237, 0.17596974968910217, -0.07620436698198318, 0.1736186444759369, 0.2711738646030426, -0.004542377311736345, -0.21636474132537842, -0.25275883078575134, -0.3835237920284271, 0.022368326783180237, -0.4095439910888672, 0.8279061317443848, -0.3415426015853882, 0.06520082801580429, -0.38879531621932983, 0.2487861067056656, 0.514793336391449, 0.00014059872773941606, 0.70231032371521, 1.0742547512054443, -0.352678507566452, 0.018226269632577896, -0.3364377021789551, -0.3709810972213745, -0.4432264268398285, 0.5965346097946167, -0.23365730047225952, -0.942718505859375, 0.5744462013244629, 0.3591375946998596, 0.1085345521569252, 0.7459456324577332, 0.5023682713508606, 0.03747795522212982, 1.1385747194290161, 0.7846030592918396, -0.14183275401592255, 0.48200711607933044, -0.6263024210929871, 0.08262860774993896, -1.004166841506958, -0.011077717877924442, -0.6117143034934998, -0.155543252825737, -0.9395873546600342, -0.44590604305267334, 0.22423627972602844, -0.06556271761655807, -0.599437415599823, 0.7869347929954529, -0.6400783658027649, 0.08576896786689758, 0.6845874190330505, -0.17197391390800476, 0.13445930182933807, -0.06321936845779419, -0.3141389489173889, 0.06344936788082123, -0.9028240442276001, -0.4877232313156128, 1.1428724527359009, 0.37387019395828247, 0.6190191507339478, -0.10986025631427765, 0.7116519808769226, 0.029609210789203644, 0.32334211468696594, -0.5897259712219238, 0.558933675289154, -0.23738043010234833, -0.681958019733429, -0.4348905384540558, -0.8312963843345642, -1.3477158546447754, 0.168899267911911, -0.09808088093996048, -0.8536586165428162, 0.2230619341135025, -0.04335244745016098, -0.4371248185634613, 0.2654743790626526, -0.6116257905960083, 0.9743190407752991, -0.3108445107936859, -0.3758928179740906, -0.14483876526355743, -0.5624589323997498, 0.14288966357707977, 0.02522936835885048, 0.3257201910018921, 0.19366493821144104, -0.07269752025604248, 0.9283410310745239, -0.45058250427246094, 0.8576859831809998, -0.05925052985548973, -0.019181586802005768, 0.34836024045944214, -0.007073195185512304, 0.7168523073196411, 0.06460864841938019, 0.11623647063970566, 0.3168787658214569, 0.04892939701676369, -0.35416364669799805, -0.38155266642570496, 0.5052338242530823, -1.1397255659103394, -0.35358431935310364, -0.7164235711097717, -0.5427314043045044, 0.1622951626777649, 0.3062605559825897, 0.33969491720199585, 0.4627489745616913, -0.2580379843711853, 0.1619337946176529, 0.3978308439254761, -0.5747683048248291, 0.6233072876930237, 0.48766377568244934, -0.25021472573280334, -0.6346024870872498, 1.0223028659820557, 0.18741434812545776, 0.28583604097366333, 0.4651877284049988, 0.3351413309574127, -0.482282429933548, -0.4952075183391571, -0.4980798363685608, 0.6204714179039001, -0.34903937578201294, 0.0642959326505661, -0.9319138526916504, -0.25323665142059326, -0.48875346779823303, 0.03725886717438698, -0.47330722212791443, -0.4210852086544037, -0.09114667773246765, -0.07867231965065002, 0.3571811020374298, 0.7097487449645996, -0.05901915580034256, 0.2813398838043213, -0.5612361431121826, 0.20249536633491516, 0.4190113842487335, 0.13796210289001465, -0.255828320980072, -0.7598522901535034, -0.2637714743614197, 0.12292198091745377, -0.26638126373291016, -0.5740372538566589, 0.6769875884056091, 0.06933256983757019, 0.4911642074584961, 0.30076804757118225, -0.14455783367156982, 0.5162425637245178, -0.36694350838661194, 0.8289139270782471, 0.13258692622184753, -0.7979032397270203, 0.4457516074180603, -0.7144086956977844, 0.4458751678466797, 0.25876912474632263, 0.701663076877594, -0.7456560730934143, -0.39596036076545715, -1.1988743543624878, -1.0977548360824585, 0.7695432901382446, 0.223598450422287, 0.08133304119110107, -0.12772111594676971, 0.24242667853832245, 0.024065595120191574, 0.17587442696094513, -0.8846713900566101, -0.1854596734046936, -0.3387327194213867, -0.03792643919587135, -0.2872219383716583, -0.05056694895029068, -0.07414712756872177, -0.2889695465564728, 0.7845820784568787, -0.1845068484544754, 0.7431057095527649, 0.08263922482728958, -0.04324020817875862, 0.06461209803819656, 0.18166527152061462, 0.5712103843688965, 0.6852911710739136, -0.4031715989112854, 0.02024953067302704, 0.12120573967695236, -0.8386505842208862, -0.04527946934103966, 0.42191094160079956, -0.44173765182495117, -0.12250975519418716, 0.3219270408153534, 1.0864276885986328, -0.017731351777911186, -0.4762967824935913, 0.3217463493347168, -0.2192213237285614, -0.5205544829368591, -0.23769332468509674, -0.07215225696563721, 0.12931889295578003, -0.03511948883533478, 0.15282955765724182, -0.11128770560026169, -0.03131178393959999, -0.6129706501960754, 0.2491706758737564, 0.4303642511367798, -0.5226430892944336, -0.5265037417411804, 0.757257878780365, 0.0035716253332793713, -0.28768178820610046, 0.8909510374069214, -0.4148317873477936, -0.481376051902771, 0.5800511240959167, 0.5982896685600281, 0.917555034160614, -0.2254301905632019, 0.5519238710403442, 0.8011663556098938, 0.5721631050109863, 0.04624465852975845, 0.16407255828380585, 0.14548557996749878, -0.6807826161384583, -0.6437273025512695, -0.6418886184692383, -0.4822950065135956, 0.34723514318466187, -0.41012874245643616, 0.20314988493919373, -0.47955521941185, -0.26210591197013855, -0.2785014808177948, 0.24181611835956573, -0.7331478595733643, 0.337248295545578, 0.21394161880016327, 0.646282434463501, -0.8907018303871155, 0.7012734413146973, 0.8675661683082581, -0.43343839049339294, -0.8901665210723877, -0.2474641501903534, -0.08118681609630585, -0.8677312731742859, 0.38453057408332825, 0.09733440726995468, 0.13832782208919525, 0.15735027194023132, -0.40156275033950806, -0.9403833150863647, 1.1054598093032837, 0.3803563714027405, -0.5557060241699219, 0.021388422697782516, 0.424614280462265, 0.6566520929336548, -0.10428678244352341, 0.9825676679611206, 0.30640703439712524, 0.5031858682632446, -0.17021852731704712, -1.1557872295379639, 0.20108607411384583, -0.6312468647956848, -0.16291578114032745, 0.2642645239830017, -0.7301501035690308, 1.0876764059066772, -0.00235946848988533, -0.192054882645607, -0.17678095400333405, 0.2859404385089874, 0.2890482246875763, 0.026072820648550987, 0.592084527015686, 1.0315961837768555, 0.7469374537467957, -0.3098866641521454, 1.4130388498306274, -0.4201737642288208, 0.470166951417923, 0.8961844444274902, 0.15939213335514069, 0.6871974468231201, 0.1848350465297699, -0.44116100668907166, 0.7502882480621338, 0.7035230398178101, 0.14231035113334656, 0.2773875892162323, -0.010838807560503483, 0.02375825308263302, -0.18616275489330292, 0.018148230388760567, -0.5557207465171814, 0.2640712559223175, 0.3319478929042816, -0.3058086335659027, -0.17830634117126465, -0.15995201468467712, 0.30791348218917847, -0.2630237936973572, 0.03161759302020073, 0.7620233297348022, 0.20280562341213226, -0.669908881187439, 0.9692475199699402, 0.03440345823764801, 0.7289670705795288, -0.7348986864089966, 0.09222160279750824, -0.16240303218364716, 0.1925448775291443, -0.06794752925634384, -0.7060993313789368, 0.2582802176475525, 0.030928360298275948, 0.03210468962788582, -0.3852022886276245, 0.4796595573425293, -0.1647096574306488, -0.5603643655776978, 0.4159829318523407, 0.6055193543434143, 0.23917853832244873, -0.36998164653778076, -1.1189498901367188, -0.060754258185625076, -0.17709843814373016, -0.45967110991477966, 0.49792951345443726, 0.5025249123573303, -0.1406385749578476, 0.6063404083251953, 0.7659584283828735, 0.015847908332943916, -0.18923993408679962, 0.20650629699230194, 0.8716976642608643, -0.7537569999694824, -0.5393909811973572, -0.8180241584777832, 0.60916668176651, -0.07444287091493607, -0.6127150058746338, 0.8249505758285522, 0.5876970887184143, 0.9452245235443115, 0.15062473714351654, 0.80339515209198, -0.34248587489128113, 0.43029025197029114, -0.19826479256153107, 0.41853711009025574, -0.4501407742500305, 0.06556069850921631, -0.5927707552909851, -1.2116535902023315, -0.06556449830532074, 0.730813205242157, -0.5069529414176941, 0.3491925895214081, 0.9344439506530762, 0.7510262727737427, 0.06062635779380798, -0.14196130633354187, 0.14795427024364471, 0.3120913803577423, 0.33313682675361633, 0.835518479347229, 0.742696225643158, -0.6698146462440491, 0.6455994844436646, -0.5457144975662231, -0.33677056431770325, -0.002664141356945038, -0.8624886274337769, -0.8623884916305542, -0.4482741057872772, -0.5117856860160828, -0.3573650121688843, 0.11820607632398605, 0.6251446008682251, 0.7998438477516174, -0.6648379564285278, -0.45623779296875, -0.34243977069854736, -0.1381847858428955, -0.6693254113197327, -0.242425799369812, 0.5275025963783264, -0.05011625215411186, -0.9867007732391357, 0.22921796143054962, 0.15235424041748047, 0.08071441203355789, -0.1959487646818161, -0.2796943485736847, -0.32064110040664673, -0.08578275144100189, 0.48482826352119446, 0.33629411458969116, -0.39144036173820496, -0.22291982173919678, 0.4860743284225464, -0.06679227948188782, 0.0379737950861454, 0.42760372161865234, -0.8698747754096985, 0.18544308841228485, 0.5502392053604126, 0.4010222554206848, 0.8365185260772705, 0.11325927078723907, 0.5418348908424377, -0.4323716163635254, 0.1431778073310852, 0.3711388111114502, 0.2664022743701935, 0.3106725215911865, -0.3319603204727173, 0.6805316209793091, 0.5319689512252808, -0.6779484152793884, -0.6762352585792542, -0.0396566204726696, -1.1091002225875854, -0.19426065683364868, 1.3293787240982056, -0.0024760954547673464, -0.33476006984710693, -0.1478046178817749, -0.14284317195415497, 0.2020668387413025, -0.3885262906551361, 0.6454071402549744, 0.6741685271263123, -0.06558170169591904, -0.476482093334198, -0.6691054105758667, 0.36495348811149597, 0.49987706542015076, -0.8289368152618408, 0.03825225308537483, 0.17464454472064972, 0.2793506979942322, 0.31391194462776184, 0.6147236824035645, -0.3204851448535919, 0.2197871208190918, 0.08597583323717117, 0.2855537235736847, -0.13767528533935547, -0.1820661425590515, -0.18904981017112732, -0.0024949037469923496, -0.2608583867549896, 0.1985892653465271 ]
timm/convmixer_768_32.in1k
timm
"2023-04-24T03:13:30Z"
43,460
2
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "arxiv:2201.09792", "license:mit", "region:us" ]
image-classification
"2023-04-24T03:13:13Z"
--- tags: - image-classification - timm library_name: timm license: mit datasets: - imagenet-1k --- # Model card for convmixer_768_32.in1k A ConvMixer image classification model. Trained on ImageNet-1k by paper authors. ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 21.1 - GMACs: 19.5 - Activations (M): 26.0 - Image size: 224 x 224 - **Papers:** - Patches Are All You Need?: https://arxiv.org/abs/2201.09792 - **Dataset:** ImageNet-1k - **Original:** https://github.com/locuslab/convmixer ## 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('convmixer_768_32.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( 'convmixer_768_32.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, 32, 32) 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{Chen2021CrossViTCM, title={CrossViT: Cross-Attention Multi-Scale Vision Transformer for Image Classification}, author={Chun-Fu Chen and Quanfu Fan and Rameswar Panda}, journal={2021 IEEE/CVF International Conference on Computer Vision (ICCV)}, year={2021}, pages={347-356} } ```
[ -0.5677030682563782, -0.3174116909503937, -0.1084950864315033, 0.2146710604429245, -0.36212968826293945, -0.30614498257637024, -0.11651550978422165, -0.3165743052959442, 0.1444346010684967, 0.3762175738811493, -0.5356600880622864, -0.5733360052108765, -0.8064301609992981, -0.16108538210391998, -0.1916338950395584, 0.9466540217399597, -0.031076446175575256, 0.1779446303844452, -0.2908678352832794, -0.49375614523887634, -0.23260341584682465, -0.3252083361148834, -0.8879013657569885, -0.44931113719940186, 0.270249605178833, 0.3163382112979889, 0.49420687556266785, 0.5443379282951355, 0.6543649435043335, 0.44179767370224, -0.020998040214180946, 0.010570568963885307, -0.32824039459228516, -0.3145957589149475, 0.41246145963668823, -0.6351622343063354, -0.35028111934661865, 0.29724201560020447, 0.7593133449554443, 0.3120603859424591, 0.031033333390951157, 0.46109214425086975, 0.23363271355628967, 0.4170486032962799, -0.33793455362319946, 0.17199553549289703, -0.40248915553092957, 0.25421884655952454, -0.15604905784130096, 0.10930006206035614, -0.3751358389854431, -0.4111596941947937, 0.22728072106838226, -0.46042585372924805, 0.4541928470134735, 0.05132221430540085, 1.1896898746490479, 0.33860957622528076, -0.1125054731965065, 0.06660142540931702, -0.25537341833114624, 0.8168836832046509, -0.8049706816673279, 0.4102393686771393, 0.190256267786026, 0.1821969449520111, -0.09137182682752609, -0.9791533350944519, -0.631018877029419, -0.16363072395324707, -0.17092366516590118, 0.007031061686575413, -0.29385313391685486, 0.040698517113924026, 0.4430156648159027, 0.34182634949684143, -0.5315845608711243, 0.08799748867750168, -0.5960143208503723, -0.21535953879356384, 0.5109128355979919, 0.08787431567907333, 0.27655160427093506, -0.09117205440998077, -0.6141864657402039, -0.461373507976532, -0.20614968240261078, 0.506737232208252, 0.20433957874774933, 0.02526366338133812, -0.645889163017273, 0.3827148377895355, 0.15873874723911285, 0.5454169511795044, 0.24387772381305695, -0.33204689621925354, 0.5905913710594177, 0.08381222933530807, -0.5179872512817383, -0.07966703176498413, 1.1008578538894653, 0.5016675591468811, 0.2436625063419342, 0.08869650214910507, 0.012091741897165775, -0.21694466471672058, -0.12364388257265091, -1.2396957874298096, -0.2794516980648041, 0.330196738243103, -0.6154925227165222, -0.3013596534729004, 0.31324347853660583, -0.6290562748908997, -0.09348145872354507, -0.11680237948894501, 0.5608240365982056, -0.48454105854034424, -0.24895307421684265, 0.08983739465475082, -0.29622742533683777, 0.5337547063827515, 0.1388712376356125, -0.47494345903396606, 0.2891334891319275, 0.3420679569244385, 1.0682460069656372, 0.013556179590523243, -0.35904577374458313, -0.34253183007240295, -0.3623208701610565, -0.2013225108385086, 0.4202132225036621, -0.23591336607933044, -0.20940059423446655, -0.2877068817615509, 0.46805745363235474, -0.24792051315307617, -0.6236998438835144, 0.39029455184936523, -0.12959738075733185, 0.31695830821990967, 0.09573015570640564, -0.3006255328655243, -0.4956451654434204, 0.4273666441440582, -0.4576776921749115, 1.1349214315414429, 0.307464063167572, -0.9595305323600769, 0.328386127948761, -0.4704543650150299, -0.0441940575838089, -0.08296303451061249, 0.06082681566476822, -1.1657437086105347, -0.23418250679969788, 0.06790963560342789, 0.8028242588043213, -0.28061434626579285, 0.12964239716529846, -0.6290280222892761, -0.29185640811920166, 0.45374229550361633, -0.0925687700510025, 1.0731490850448608, 0.07083863019943237, -0.35836613178253174, 0.19687706232070923, -0.7712975740432739, 0.10024232417345047, 0.33634036779403687, -0.2436772584915161, -0.12006921321153641, -0.7133863568305969, 0.26882004737854004, 0.35478675365448, 0.13048797845840454, -0.767553448677063, 0.27336204051971436, -0.11157716065645218, 0.33300110697746277, 0.5534433126449585, -0.04166920855641365, 0.3065914809703827, -0.35886088013648987, 0.36124563217163086, 0.2975425720214844, 0.47490620613098145, 0.07426377385854721, -0.6041250228881836, -0.9754597544670105, -0.49661874771118164, 0.2578817903995514, 0.4916008710861206, -0.5070670247077942, 0.441179484128952, -0.06423229724168777, -0.9238793849945068, -0.5097451210021973, 0.015917835757136345, 0.6058867573738098, 0.5443893074989319, 0.3596250116825104, -0.46422427892684937, -0.5735189914703369, -0.9673336744308472, 0.0845218226313591, 0.24960477650165558, -0.0074356128461658955, 0.2522525489330292, 0.6394354104995728, -0.22726354002952576, 0.5602604150772095, -0.4351447820663452, -0.2857167422771454, -0.14120592176914215, 0.0848708227276802, 0.4246580898761749, 0.8600062727928162, 0.8837494850158691, -0.66588294506073, -0.5603559613227844, -0.221786767244339, -0.8781805038452148, 0.2571299970149994, -0.04202674329280853, -0.25397610664367676, 0.17639321088790894, 0.19153913855552673, -0.5867249965667725, 0.6457387804985046, 0.26155799627304077, -0.30087733268737793, 0.44348517060279846, -0.21376967430114746, 0.20419637858867645, -1.181334376335144, 0.10131599009037018, 0.541553795337677, -0.1875300407409668, -0.5245361328125, -0.04375428706407547, 0.09848245978355408, 0.02296130359172821, -0.6386982798576355, 0.6302600502967834, -0.4571095108985901, 0.06788582354784012, -0.1664101928472519, -0.39924725890159607, -0.015726273879408836, 0.8351722955703735, -0.019975734874606133, 0.2711886763572693, 0.8751817345619202, -0.6372133493423462, 0.5880845189094543, 0.5138162970542908, -0.21630612015724182, 0.49993380904197693, -0.6394810080528259, 0.132619708776474, -0.006774812005460262, 0.2697460353374481, -1.0592809915542603, -0.1385982185602188, 0.46715325117111206, -0.6160983443260193, 0.6360346078872681, -0.5191923975944519, -0.305944561958313, -0.5811252593994141, -0.5305594801902771, 0.46625643968582153, 0.6598529815673828, -0.6948827505111694, 0.42075350880622864, 0.28951317071914673, 0.2618776261806488, -0.6738712787628174, -0.8432548642158508, -0.29654183983802795, -0.3347671926021576, -0.6854206919670105, 0.2673525810241699, -0.037656646221876144, 0.08546839654445648, -0.0004959724028594792, 0.0036461593117564917, -0.10791373252868652, -0.20238839089870453, 0.5348952412605286, 0.4374285936355591, -0.2384498119354248, -0.16353584825992584, -0.3032047748565674, -0.1747683733701706, 0.13483597338199615, -0.26411840319633484, 0.47701698541641235, -0.22501908242702484, -0.09000289440155029, -0.7401776909828186, -0.021734004840254784, 0.6258704662322998, -0.18770886957645416, 0.8177228569984436, 1.1062500476837158, -0.5517038702964783, -0.041922662407159805, -0.42817777395248413, -0.22191813588142395, -0.4673351049423218, 0.4147363305091858, -0.3989136219024658, -0.43599167466163635, 0.8005766272544861, 0.0466805025935173, 0.10948202013969421, 0.6314651966094971, 0.35790926218032837, 0.036047548055648804, 0.8975860476493835, 0.7416207194328308, 0.2397262156009674, 0.7428946495056152, -0.9994533658027649, -0.21343457698822021, -0.9157469868659973, -0.6310324668884277, -0.4052068889141083, -0.6416683197021484, -0.718242347240448, -0.2824658751487732, 0.4022219479084015, -0.10473598539829254, -0.4232467710971832, 0.4694605767726898, -0.8539563417434692, 0.06487816572189331, 0.8261625170707703, 0.5528196692466736, -0.3281819820404053, 0.10470832139253616, -0.19963960349559784, 0.02267172560095787, -0.7741997241973877, -0.13611111044883728, 0.97784024477005, 0.4456723928451538, 0.8431081175804138, -0.25613510608673096, 0.5287236571311951, -0.2673873007297516, 0.3820141553878784, -0.5998849868774414, 0.5429419279098511, -0.25015389919281006, -0.3735702931880951, -0.048031918704509735, -0.2238461971282959, -1.0107333660125732, 0.16255418956279755, -0.43443238735198975, -0.7428425550460815, 0.4232189655303955, 0.1896098554134369, -0.278470903635025, 0.7256703972816467, -0.7496590614318848, 1.0934199094772339, -0.16652840375900269, -0.3871529996395111, 0.1326655000448227, -0.7310279011726379, 0.4665255844593048, 0.11122725903987885, -0.21648451685905457, -0.049052149057388306, 0.24967850744724274, 1.1241949796676636, -0.623076856136322, 0.8966467380523682, -0.47519272565841675, 0.44723546504974365, 0.4367060661315918, -0.1553739756345749, 0.26614177227020264, -0.06056218594312668, -0.028969591483473778, 0.39285704493522644, 0.18849791586399078, -0.41562026739120483, -0.45024043321609497, 0.6560145020484924, -1.020799160003662, -0.3588973581790924, -0.4750078320503235, -0.6072902083396912, 0.15972694754600525, 0.00802142545580864, 0.6658656001091003, 0.7299751043319702, 0.1483708620071411, 0.43640223145484924, 0.7053856253623962, -0.3295224905014038, 0.4793471693992615, -0.02266707643866539, -0.1465827077627182, -0.5069865584373474, 0.8072865605354309, 0.22043924033641815, 0.11284731328487396, 0.17866624891757965, 0.1963542252779007, -0.31144651770591736, -0.4163161814212799, -0.28117606043815613, 0.3479488492012024, -0.626606822013855, -0.5102347135543823, -0.7094072699546814, -0.5272262692451477, -0.43456611037254333, -0.058731842786073685, -0.3918367028236389, -0.3159535825252533, -0.3315686881542206, 0.21238426864147186, 0.711806058883667, 0.5085186958312988, -0.0666770190000534, 0.644260585308075, -0.7075665593147278, 0.09447716176509857, 0.14018508791923523, 0.5672629475593567, -0.12196485698223114, -0.9504503011703491, -0.2627081573009491, -0.022274017333984375, -0.5112982392311096, -0.6989867091178894, 0.5676537156105042, 0.16242249310016632, 0.6147926449775696, 0.4647507667541504, -0.15001974999904633, 0.7401422262191772, 0.026146458461880684, 0.44756537675857544, 0.37856540083885193, -0.6225773096084595, 0.5064137578010559, 0.07430929690599442, 0.22434589266777039, 0.026058100163936615, 0.46970075368881226, -0.3479185700416565, -0.1834527552127838, -0.989665687084198, -0.6333062052726746, 0.9154099225997925, 0.1263183355331421, -0.06690239161252975, 0.4597569406032562, 0.6813632249832153, 0.12623827159404755, -0.046685151755809784, -0.8668429851531982, -0.44366902112960815, -0.3695351481437683, -0.3215296268463135, -0.07942917943000793, -0.06620997190475464, 0.05064685642719269, -0.7448557019233704, 0.8172130584716797, -0.04275363311171532, 0.5347742438316345, 0.27767571806907654, -0.03093564324080944, -0.13848645985126495, -0.37076443433761597, 0.41558539867401123, 0.23485033214092255, -0.37828558683395386, 0.05226026102900505, 0.27983546257019043, -0.6195504665374756, 0.06961281597614288, 0.25876545906066895, -0.03148473799228668, 0.010312620550394058, 0.30369260907173157, 0.8943389058113098, 0.022216057404875755, 0.048420898616313934, 0.47843170166015625, -0.2834472358226776, -0.3797581195831299, -0.31666550040245056, 0.13863958418369293, -0.09379862993955612, 0.4752670228481293, 0.2267627865076065, 0.4851725697517395, -0.002095373347401619, -0.1780061423778534, 0.24898426234722137, 0.6658642888069153, -0.49474191665649414, -0.2981633245944977, 0.7632965445518494, -0.12328443676233292, -0.24116110801696777, 0.8682430982589722, -0.006279027089476585, -0.4918617606163025, 1.1562153100967407, 0.45949918031692505, 0.9724004864692688, -0.2546341121196747, -0.060815706849098206, 0.8783407211303711, 0.2001005858182907, 0.034502290189266205, 0.13266223669052124, 0.15084165334701538, -0.7479849457740784, 0.03176413103938103, -0.6153141260147095, -0.15410834550857544, 0.41989830136299133, -0.5328352451324463, 0.4717693030834198, -0.6251843571662903, -0.32034432888031006, 0.23143799602985382, 0.25565844774246216, -0.9226254224777222, 0.29098930954933167, 0.1162242740392685, 0.9699357151985168, -0.8251467347145081, 0.8430641293525696, 0.8219908475875854, -0.5740674138069153, -0.9183969497680664, -0.23890715837478638, -0.07854350656270981, -0.9130646586418152, 0.4603795111179352, 0.5329551100730896, 0.1107165738940239, 0.1272534728050232, -1.0069655179977417, -0.6186367273330688, 1.3239094018936157, 0.45938530564308167, -0.26250094175338745, 0.3673732578754425, -0.013433185406029224, 0.1943541318178177, -0.394642174243927, 0.4615543484687805, 0.2011065036058426, 0.3762212097644806, 0.3984549939632416, -0.7086091637611389, 0.23126114904880524, -0.3967611491680145, -0.0009551934199407697, 0.2157597690820694, -0.9248262047767639, 0.9378707408905029, -0.42711836099624634, -0.021154627203941345, 0.08604894578456879, 0.6649488210678101, 0.21750056743621826, 0.2536075711250305, 0.5700330138206482, 0.7530683875083923, 0.4883692264556885, -0.24007494747638702, 0.8477392792701721, -0.12630820274353027, 0.6306160688400269, 0.558620035648346, 0.37990081310272217, 0.4833402633666992, 0.3636015057563782, -0.19295741617679596, 0.3783662021160126, 1.1386128664016724, -0.5175715684890747, 0.30024680495262146, 0.19365674257278442, -0.004197241272777319, -0.27112817764282227, 0.07389400899410248, -0.4711743891239166, 0.5108957886695862, 0.23818564414978027, -0.43749120831489563, -0.1468506157398224, 0.2670935094356537, -0.000676199677400291, -0.43531668186187744, -0.29288798570632935, 0.4599924087524414, 0.09037292748689651, -0.5676537156105042, 0.7615822553634644, -0.008240669034421444, 0.9403457641601562, -0.4530496895313263, -0.11607932299375534, -0.2665456533432007, 0.5566703677177429, -0.3217942416667938, -0.9283632040023804, 0.2923935353755951, -0.28446730971336365, -0.018833473324775696, 0.08396259695291519, 0.6974002122879028, -0.5006118416786194, -0.5839036107063293, 0.22025956213474274, 0.1966792196035385, 0.48670774698257446, -0.020772496238350868, -1.1611204147338867, 0.08043468743562698, 0.009490462020039558, -0.47543713450431824, 0.2434825897216797, 0.37632572650909424, 0.011850159615278244, 0.849079966545105, 0.6073926091194153, -0.3210381865501404, 0.19931723177433014, -0.21056807041168213, 0.8161240816116333, -0.4530870318412781, -0.30068719387054443, -0.850532054901123, 0.6072568893432617, -0.05668213963508606, -0.556183397769928, 0.5849933624267578, 0.7415878772735596, 0.9144840836524963, -0.1538020670413971, 0.5297914743423462, -0.1819925606250763, -0.049052171409130096, -0.282328724861145, 0.681309700012207, -0.6234686970710754, -0.23785190284252167, -0.16068612039089203, -0.6590064764022827, -0.4843600392341614, 0.6172342300415039, -0.1678711175918579, 0.26141104102134705, 0.46515071392059326, 0.9892668724060059, -0.43749645352363586, -0.347759485244751, 0.26074886322021484, 0.23004163801670074, 0.08034759014844894, 0.507645308971405, 0.49298352003097534, -0.8393334150314331, 0.509090006351471, -0.6198302507400513, -0.3403981328010559, -0.13008464872837067, -0.5905753374099731, -1.0357692241668701, -0.8307139277458191, -0.6905141472816467, -0.6546311974525452, -0.2639135420322418, 0.9206950068473816, 1.0615507364273071, -0.7559906840324402, -0.1983419954776764, 0.17280477285385132, 0.11628752201795578, -0.2548483610153198, -0.22076348960399628, 0.5177177786827087, -0.0922909826040268, -0.8973608016967773, -0.5046333074569702, -0.007451560813933611, 0.4087143540382385, -0.08032047748565674, -0.29063883423805237, -0.3223779499530792, -0.20236364006996155, 0.2195541113615036, 0.3511015474796295, -0.5986416339874268, -0.18491847813129425, -0.11967046558856964, -0.15502877533435822, 0.46022728085517883, 0.3494202792644501, -0.60406094789505, 0.3207160532474518, 0.44800102710723877, 0.26814597845077515, 0.8967621326446533, -0.35139957070350647, 0.07758338004350662, -0.8183790445327759, 0.5400741696357727, -0.25062721967697144, 0.6551425457000732, 0.3712361752986908, -0.39493313431739807, 0.4771178066730499, 0.45761939883232117, -0.5021418333053589, -0.7219958901405334, -0.22793005406856537, -1.2819615602493286, -0.02979341335594654, 0.8873891830444336, -0.3222409188747406, -0.6668442487716675, 0.32579687237739563, -0.2600555419921875, 0.7358993887901306, -0.0582953579723835, 0.39144524931907654, 0.21299417316913605, -0.1443450152873993, -0.6862286925315857, -0.3539075553417206, 0.43342524766921997, -0.07654134184122086, -0.6333725452423096, -0.5260269045829773, -0.05902879685163498, 0.7676978707313538, 0.23139528930187225, 0.3805840313434601, -0.1156637892127037, 0.1970781683921814, 0.09435131400823593, 0.6936367750167847, -0.3028356730937958, 0.042653344571590424, -0.2909221351146698, 0.022332217544317245, -0.232231006026268, -0.8373622894287109 ]
Gustavosta/MagicPrompt-Stable-Diffusion
Gustavosta
"2023-07-09T22:10:48Z"
43,457
578
transformers
[ "transformers", "pytorch", "coreml", "safetensors", "gpt2", "text-generation", "license:mit", "endpoints_compatible", "has_space", "text-generation-inference", "region:us" ]
text-generation
"2022-09-17T22:34:07Z"
--- license: mit --- # MagicPrompt - Stable Diffusion This is a model from the MagicPrompt series of models, which are [GPT-2](https://huggingface.co/gpt2) models intended to generate prompt texts for imaging AIs, in this case: [Stable Diffusion](https://huggingface.co/CompVis/stable-diffusion). ## 🖼️ Here's an example: <img src="https://files.catbox.moe/ac3jq7.png"> This model was trained with 150,000 steps and a set of about 80,000 data filtered and extracted from the image finder for Stable Diffusion: "[Lexica.art](https://lexica.art/)". It was a little difficult to extract the data, since the search engine still doesn't have a public API without being protected by cloudflare, but if you want to take a look at the original dataset, you can have a look here: [datasets/Gustavosta/Stable-Diffusion-Prompts](https://huggingface.co/datasets/Gustavosta/Stable-Diffusion-Prompts). If you want to test the model with a demo, you can go to: "[spaces/Gustavosta/MagicPrompt-Stable-Diffusion](https://huggingface.co/spaces/Gustavosta/MagicPrompt-Stable-Diffusion)". ## 💻 You can see other MagicPrompt models: - For Dall-E 2: [Gustavosta/MagicPrompt-Dalle](https://huggingface.co/Gustavosta/MagicPrompt-Dalle) - For Midjourney: [Gustavosta/MagicPrompt-Midourney](https://huggingface.co/Gustavosta/MagicPrompt-Midjourney) **[⚠️ In progress]** - MagicPrompt full: [Gustavosta/MagicPrompt](https://huggingface.co/Gustavosta/MagicPrompt) **[⚠️ In progress]** ## ⚖️ Licence: [MIT](https://huggingface.co/models?license=license:mit) When using this model, please credit: [Gustavosta](https://huggingface.co/Gustavosta) **Thanks for reading this far! :)**
[ -0.476392537355423, -0.9161900877952576, 0.5761222243309021, 0.15978115797042847, -0.2354276180267334, -0.2854166626930237, 0.26811519265174866, -0.13135628402233124, 0.23776166141033173, 0.48874807357788086, -0.8028081059455872, -0.586504340171814, -0.7448582053184509, -0.08298856019973755, -0.4683291018009186, 1.2636592388153076, -0.20139427483081818, 0.17533597350120544, -0.11406169831752777, 0.004826308228075504, -0.5713428854942322, 0.08922585844993591, -1.0814539194107056, -0.5150821805000305, 0.6233472228050232, 0.2765352129936218, 1.0262991189956665, 0.16264434158802032, 0.3405272364616394, 0.19787444174289703, -0.17032404243946075, 0.11425591260194778, -0.2968459725379944, 0.21897776424884796, -0.1420406550168991, -0.12578608095645905, -0.7401057481765747, 0.3179037868976593, 0.7223768830299377, 0.3788451552391052, -0.19815193116664886, 0.13201026618480682, 0.02217751555144787, 0.5642727017402649, -0.48209184408187866, 0.10734151303768158, -0.1847010999917984, 0.11437250673770905, -0.1710621416568756, 0.212502583861351, -0.1922750622034073, -0.37640538811683655, 0.13885585963726044, -0.8725976943969727, 0.1578703224658966, 0.09632617235183716, 1.1722058057785034, 0.09443596750497818, -0.4917932152748108, -0.19479291141033173, -0.4782889783382416, 0.40893328189849854, -0.32550692558288574, 0.09347401559352875, 0.6531240344047546, 0.5665379762649536, -0.1699766367673874, -1.006560206413269, -0.7285293936729431, -0.20320676267147064, -0.015408288687467575, 0.3513731360435486, -0.3854880928993225, -0.180379718542099, 0.30123767256736755, 0.12624649703502655, -0.9263105988502502, -0.09785131365060806, -0.45336243510246277, -0.1978626847267151, 0.4713529944419861, 0.3508692979812622, 0.4877000153064728, 0.28577306866645813, -0.23773367702960968, -0.0793546587228775, -0.6208884716033936, -0.10654973238706589, 0.3267214298248291, -0.08812572062015533, -0.3632180094718933, 0.7345289587974548, 0.2968529760837555, 0.6130241751670837, 0.12545257806777954, -0.2057274878025055, 0.3086705505847931, -0.16041170060634613, -0.17452634871006012, -0.35021641850471497, 0.9875146746635437, 0.42200881242752075, 0.37097829580307007, -0.03527606651186943, -0.28034642338752747, 0.10164643079042435, 0.1702650636434555, -1.1499340534210205, -0.4657980501651764, 0.17004936933517456, -0.5569284558296204, -0.23897281289100647, -0.0690782368183136, -0.6764089465141296, -0.3181813955307007, -0.0585443414747715, 0.5700991749763489, -0.5103587508201599, -0.6538445353507996, 0.1591387689113617, -0.2739317715167999, -0.08120160549879074, 0.46871477365493774, -0.7910487055778503, 0.35841238498687744, 0.4852496087551117, 1.1112701892852783, -0.0509536936879158, -0.1760566532611847, -0.07825598865747452, -0.05069481581449509, -0.3686990737915039, 1.0173553228378296, -0.5652139186859131, -0.5880540609359741, -0.13978302478790283, 0.19918563961982727, -0.20517465472221375, -0.5475091934204102, 0.8447849154472351, -0.6012873649597168, 0.6173571944236755, -0.1316550076007843, -0.5781733393669128, -0.28687867522239685, 0.2408197522163391, -0.6578463315963745, 0.9412574172019958, 0.18301241099834442, -0.8884041905403137, 0.12033989280462265, -1.3009353876113892, 0.05648894980549812, -0.09399780631065369, 0.13369864225387573, -0.6244705319404602, -0.23530961573123932, -0.27935484051704407, 0.26370441913604736, -0.29733040928840637, 0.03264235705137253, -0.4391213059425354, -0.19902798533439636, 0.23320040106773376, -0.4586200714111328, 0.9990670084953308, 0.5421888828277588, -0.10898644477128983, 0.017504816874861717, -0.8009339570999146, -0.2267480194568634, 0.42878541350364685, 0.24399717152118683, -0.38859251141548157, -0.32549169659614563, 0.07959342002868652, 0.3174527585506439, 0.21678020060062408, -0.2097560614347458, 0.7584346532821655, -0.061088304966688156, 0.04054328054189682, 0.6595656871795654, 0.22335007786750793, 0.3990310728549957, -0.44626274704933167, 0.8496387004852295, 0.3181997239589691, 0.3073740303516388, -0.13807614147663116, -1.0853952169418335, -0.4806269407272339, -0.3110267221927643, 0.2787679433822632, 0.7327629923820496, -0.749683141708374, 0.3170866370201111, -0.02302597463130951, -0.7097169160842896, -0.49906256794929504, -0.16709136962890625, 0.452685683965683, 0.9272639155387878, 0.3823588490486145, -0.20892734825611115, 0.0034735151566565037, -0.8715710639953613, -0.08625178784132004, -0.002440165262669325, -0.18089912831783295, -0.21917305886745453, 0.6953763365745544, -0.26088085770606995, 0.7815654873847961, -0.5364698767662048, -0.20017139613628387, 0.25186029076576233, 0.41304636001586914, 0.5614225268363953, 0.39363643527030945, 0.738365650177002, -0.8843809366226196, -0.7063694000244141, -0.28765803575515747, -0.6832665205001831, -0.3628893792629242, 0.0507751889526844, -0.4093592166900635, -0.08003780990839005, -0.1236526295542717, -0.9965241551399231, 0.5132668018341064, 0.47759875655174255, -1.08561110496521, 0.7890951633453369, -0.23711253702640533, 0.21841710805892944, -1.2331938743591309, 0.23286917805671692, 0.3852863609790802, -0.3757350742816925, -0.7285882830619812, 0.13773339986801147, 0.03676390275359154, 0.08610054850578308, -0.6009695529937744, 0.9422037601470947, -0.613142192363739, 0.30657410621643066, -0.53726726770401, -0.006463469006121159, 0.1822773963212967, 0.2085593342781067, -0.002399477642029524, 0.9359467625617981, 1.0021461248397827, -0.5308853387832642, 0.3187008798122406, 0.4156429171562195, 0.014481386169791222, 0.7961501479148865, -0.7019174098968506, 0.1237536370754242, -0.18790747225284576, 0.2175351232290268, -1.1188323497772217, -0.1855350285768509, 0.8138843774795532, -0.3267861008644104, 0.33269569277763367, -0.29709121584892273, -0.9239382743835449, -0.4864652156829834, -0.209549218416214, 0.32945966720581055, 1.0181443691253662, -0.3324297368526459, 0.47911250591278076, 0.2730114161968231, -0.040431104600429535, -0.3413522243499756, -0.7178267240524292, -0.032244760543107986, -0.5041710734367371, -0.8299843072891235, 0.4070300757884979, -0.34990355372428894, -0.30346858501434326, 0.09468788653612137, 0.35205844044685364, -0.28529849648475647, 0.06793438643217087, 0.413070410490036, 0.3274900019168854, -0.0017313238931819797, -0.051068712025880814, 0.36637404561042786, -0.3613758683204651, 0.08397911489009857, -0.21737320721149445, 0.5402834415435791, -0.06948700547218323, -0.4191606640815735, -0.9328623414039612, 0.21474026143550873, 0.7150294184684753, 0.20017379522323608, 0.9860550165176392, 0.8248297572135925, -0.6025619506835938, 0.13663166761398315, -0.2994961142539978, -0.18892693519592285, -0.4878425896167755, -0.25928547978401184, -0.45885977149009705, -0.45280998945236206, 0.9337848424911499, -0.015279699116945267, 0.03461036458611488, 0.7922154068946838, 0.819936215877533, -0.03356638550758362, 1.3858805894851685, 0.25987040996551514, 0.21494854986667633, 0.5346530675888062, -0.5775436758995056, -0.13733366131782532, -0.6782205104827881, -0.3165311813354492, -0.2477712780237198, -0.33370551466941833, -0.09384619444608688, -0.2957994341850281, 0.5310592651367188, 0.3651375472545624, -0.550540030002594, 0.17448590695858002, -0.6378399133682251, 0.43258893489837646, 0.4183570146560669, 0.06816387176513672, 0.31638243794441223, 0.14203689992427826, -0.24539151787757874, -0.158499613404274, -0.4699668884277344, -0.5663659572601318, 1.032407522201538, 0.44420355558395386, 0.6226423382759094, 0.15036770701408386, 0.4297179579734802, 0.3911873996257782, 0.3980506658554077, -0.48523181676864624, 0.5609933733940125, 0.023502392694354057, -0.5639403462409973, 0.036104172468185425, -0.19862446188926697, -1.3554656505584717, 0.14928217232227325, -0.3349517285823822, -0.5732840299606323, 0.09291556477546692, 0.11803431808948517, -0.4297224283218384, 0.19295212626457214, -0.7365484833717346, 0.9553842544555664, 0.09751249849796295, -0.5551169514656067, -0.09291781485080719, -0.5675638914108276, 0.5389583706855774, -0.12281881272792816, 0.23208512365818024, -0.10372761636972427, -0.06974121928215027, 0.7628885507583618, -0.6369315981864929, 0.6769680380821228, -0.5137408971786499, -0.2037792205810547, 0.5146514177322388, 0.12158481776714325, 0.5561728477478027, 0.0298947561532259, -0.02134695276618004, -0.02713388204574585, 0.050483644008636475, -0.4361315965652466, -0.6570084095001221, 0.6086674332618713, -0.742874026298523, -0.19458764791488647, -0.49346259236335754, -0.2919144928455353, 0.19063898921012878, 0.3796522617340088, 0.49318215250968933, 0.29130902886390686, 0.07284089922904968, -0.37823519110679626, 0.8371695876121521, 0.13359889388084412, 0.43259188532829285, 0.5549214482307434, -0.6526893377304077, -0.4257067143917084, 0.7015801668167114, 0.33567988872528076, 0.0854385644197464, -0.1424214392900467, 0.31000369787216187, -0.5084753036499023, -0.6768888235092163, -0.46566158533096313, 0.3862285614013672, -0.47657862305641174, -0.2225542664527893, -0.6741760969161987, -0.29520896077156067, -0.5132894515991211, 0.036682579666376114, -0.3625948429107666, -0.5043838024139404, -0.8470225930213928, -0.03887563198804855, 0.8651586771011353, 0.647451639175415, -0.22421738505363464, 0.5289181470870972, -0.8165583610534668, 0.4575771689414978, 0.09696412831544876, 0.2502747178077698, -0.25067296624183655, -0.685347855091095, -0.17296744883060455, 0.16033993661403656, -0.672826886177063, -1.2798789739608765, 0.6580512523651123, 0.1322723627090454, 0.6138346791267395, 0.6688652038574219, -0.10422872006893158, 0.7384710311889648, -0.4488725960254669, 1.1909496784210205, 0.45399752259254456, -0.5355949401855469, 0.634641706943512, -0.6124724745750427, 0.15140028297901154, 0.5241798162460327, 0.6017424464225769, -0.5110563039779663, -0.37658876180648804, -0.9346643090248108, -0.7180382013320923, 0.3978055417537689, 0.3471912443637848, 0.13786324858665466, -0.04931977763772011, 0.7053182721138, 0.1793123036623001, 0.0858336016535759, -0.6946995258331299, -0.6879275441169739, -0.2393912822008133, -0.18967172503471375, 0.46046313643455505, -0.24943216145038605, -0.5197861790657043, -0.3636098802089691, 0.8510696291923523, -0.0867554321885109, 0.41146978735923767, 0.0860733762383461, 0.2758301794528961, -0.16634684801101685, -0.20425058901309967, 0.5908761620521545, 0.4473784863948822, -0.01092102937400341, -0.08328255265951157, -0.007059081457555294, -0.6427416801452637, 0.12628768384456635, 0.20897962152957916, -0.34161967039108276, 0.014786372892558575, 0.19706352055072784, 0.9767605066299438, -0.2571388781070709, -0.356524795293808, 0.6679778099060059, -0.21606101095676422, -0.4475361108779907, -0.655053436756134, 0.344884991645813, -0.004899027291685343, 0.44769278168678284, 0.2920471131801605, 0.21320998668670654, 0.4445786774158478, -0.38843032717704773, 0.10118521004915237, 0.5187555551528931, -0.16035723686218262, -0.5256186127662659, 0.93450927734375, -0.26831796765327454, -0.4366620182991028, 0.5992328524589539, -0.6603034138679504, -0.18789640069007874, 0.5095953345298767, 0.568945586681366, 1.00948166847229, -0.20583198964595795, 0.46085241436958313, 0.3040788769721985, -0.17894479632377625, -0.6382153630256653, 0.650208592414856, 0.28581148386001587, -0.5985344052314758, -0.0717029795050621, -0.30497005581855774, -0.315661758184433, -0.024449586868286133, -0.619730532169342, 0.5641949772834778, -0.4415389895439148, -0.5921953320503235, -0.38333311676979065, 0.06864146888256073, -0.6254662275314331, 0.12576954066753387, 0.15748021006584167, 1.206193447113037, -1.1758880615234375, 0.9986336827278137, 0.6272766590118408, -0.5579637289047241, -0.679408609867096, -0.10504519939422607, 0.02643570490181446, -0.7461386919021606, 0.4041818678379059, -0.08741287887096405, 0.06818943470716476, 0.08957131952047348, -0.8161927461624146, -0.8097317814826965, 1.516959309577942, 0.44701963663101196, -0.26315465569496155, -0.10501006990671158, -0.2792043089866638, 0.8592730164527893, -0.3889923393726349, 0.6731714606285095, 0.40223824977874756, 0.8165653347969055, 0.34208300709724426, -0.9073606729507446, -0.02102002687752247, -0.5880961418151855, -0.09240724891424179, -0.15246781706809998, -0.8220452666282654, 0.9732335209846497, -0.0030864812433719635, -0.2677788734436035, 0.492780864238739, 0.625505805015564, 0.7106226682662964, 0.6236532926559448, 0.40468817949295044, 1.0068602561950684, 0.7923597097396851, -0.17928728461265564, 1.2155265808105469, -0.3425779640674591, 0.5353807806968689, 0.7043002247810364, -0.044002730399370193, 0.5360863208770752, 0.23996472358703613, -0.29113703966140747, 0.821602463722229, 1.0429697036743164, -0.3321149945259094, 0.8508592844009399, 0.013293792493641376, -0.2522290349006653, -0.10583313554525375, 0.017368793487548828, -0.6401167511940002, -0.21474559605121613, 0.49322521686553955, -0.3818555176258087, -0.2358061522245407, 0.28252843022346497, 0.4370099604129791, -0.21463553607463837, -0.37566524744033813, 0.48655301332473755, 0.06584610790014267, -0.6296768188476562, 0.6806617975234985, -0.18885938823223114, 0.6844692230224609, -0.769795298576355, -0.20600385963916779, -0.2198626846075058, -0.18164624273777008, -0.15771357715129852, -1.1173293590545654, 0.3807374835014343, -0.0742398351430893, -0.1954849660396576, -0.5092596411705017, 0.7423597574234009, -0.4079076051712036, -0.7628458738327026, 0.2507709562778473, 0.4823276102542877, 0.5702291131019592, 0.05584150552749634, -1.292055606842041, -0.12153883278369904, -0.37696149945259094, -0.7275447845458984, 0.3542555868625641, 0.35348817706108093, 0.03280293196439743, 0.7362155318260193, 0.5526772141456604, 0.08232851326465607, 0.055754270404577255, 0.0975852683186531, 0.7625250816345215, -0.28714460134506226, -0.40756794810295105, -0.9467229247093201, 0.8639572262763977, -0.12256093323230743, -0.4611850082874298, 0.8099309206008911, 0.5980584025382996, 0.13327497243881226, -0.13474200665950775, 0.6043149828910828, 0.11477123200893402, 0.5246836543083191, -0.6550592184066772, 0.9406284689903259, -0.9435399770736694, 0.08616453409194946, -0.240530863404274, -0.8723560571670532, -0.48090603947639465, 0.7101553678512573, -0.17660336196422577, 0.1915392428636551, 0.5947310924530029, 0.9980963468551636, -0.15194135904312134, -0.07359188050031662, 0.11135748028755188, 0.2648082971572876, 0.3139934837818146, 0.3036324679851532, 0.7857855558395386, -0.5940600037574768, 0.16692185401916504, -0.07280122488737106, -0.29412052035331726, -0.14604051411151886, -0.9372428059577942, -0.7731517553329468, -0.6087595224380493, -0.6887437701225281, -0.9943424463272095, 0.08355946838855743, 0.8872162699699402, 0.7564935088157654, -0.6692070960998535, 0.21836237609386444, -0.3780375123023987, 0.11275691539049149, -0.19609218835830688, -0.270134836435318, 0.39977195858955383, 0.1325945109128952, -0.9138376712799072, 0.23002243041992188, 0.04896250367164612, 0.7399576902389526, -0.3713085949420929, -0.13909029960632324, 0.08773615956306458, -0.05397573485970497, 0.21634513139724731, 0.38709476590156555, -0.3521704375743866, -0.09114962071180344, -0.0938272625207901, -0.0904492735862732, -0.09454967081546783, 0.43991848826408386, -0.5583944916725159, 0.2088538259267807, 0.6642186045646667, 0.02266445755958557, 0.6074071526527405, -0.1528749167919159, 0.2950989007949829, -0.31538277864456177, 0.1494600474834442, 0.13347969949245453, 0.6262603998184204, 0.08638700097799301, -0.40567606687545776, 0.620241641998291, 0.6452964544296265, -0.758579671382904, -0.7304415106773376, 0.17158834636211395, -1.1678073406219482, -0.33051392436027527, 1.4329850673675537, -0.07477674633264542, -0.23442968726158142, -0.01837807334959507, -0.5092229247093201, 0.18739968538284302, -0.5467823147773743, 0.6900081634521484, 0.7956169247627258, -0.408147931098938, -0.41388487815856934, -0.6193578839302063, 0.322538286447525, 0.05993833392858505, -0.5240141749382019, -0.2508058249950409, 0.5734930038452148, 0.5197768807411194, 0.3626497685909271, 0.8689974546432495, -0.27341800928115845, 0.1676824688911438, 0.030963603407144547, -0.01835162751376629, -0.15306411683559418, -0.3273964524269104, -0.42235302925109863, 0.34375661611557007, -0.06919895857572556, -0.1738775670528412 ]
NlpHUST/ner-vietnamese-electra-base
NlpHUST
"2023-04-10T02:25:50Z"
43,317
1
transformers
[ "transformers", "pytorch", "safetensors", "electra", "token-classification", "named-entity-recognition", "vi", "autotrain_compatible", "endpoints_compatible", "region:us" ]
token-classification
"2022-10-28T05:26:38Z"
--- widget: - text: "Liên quan vụ việc CSGT bị tố đánh dân, trúng một cháu nhỏ đang ngủ, đang lan truyền trên mạng xã hội, Đại tá Nguyễn Văn Tảo, Phó Giám đốc Công an tỉnh Tiền Giang vừa có cuộc họp cùng Chỉ huy Công an huyện Châu Thành và một số đơn vị nghiệp vụ cấp tỉnh để chỉ đạo làm rõ thông tin." tags: - named-entity-recognition language: - vi model-index: - name: ner-vietnamese-electra-base 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. --> # vietnamese-ner This model is a fine-tuned version of [NlpHUST/electra-base-vn](https://huggingface.co/NlpHUST/electra-base-vn) on an VLSP 2018 dataset. It achieves the following results on the evaluation set: - Loss: 0.0580 - Location Precision: 0.9353 - Location Recall: 0.9377 - Location F1: 0.9365 - Location Number: 2360 - Miscellaneous Precision: 0.5660 - Miscellaneous Recall: 0.6897 - Miscellaneous F1: 0.6218 - Miscellaneous Number: 174 - Organization Precision: 0.8610 - Organization Recall: 0.9068 - Organization F1: 0.8833 - Organization Number: 1878 - Person Precision: 0.9692 - Person Recall: 0.9637 - Person F1: 0.9664 - Person Number: 2121 - Overall Precision: 0.9122 - Overall Recall: 0.9307 - Overall F1: 0.9214 - Overall Accuracy: 0.9907 ## Model description More information needed #### How to use You can use this model with Transformers *pipeline* for NER. ```python from transformers import AutoTokenizer, AutoModelForTokenClassification from transformers import pipeline tokenizer = AutoTokenizer.from_pretrained("NlpHUST/ner-vietnamese-electra-base") model = AutoModelForTokenClassification.from_pretrained("NlpHUST/ner-vietnamese-electra-base") nlp = pipeline("ner", model=model, tokenizer=tokenizer) example = "Liên quan vụ việc CSGT bị tố đánh dân, trúng một cháu nhỏ đang ngủ, đang lan truyền trên mạng xã hội, Đại tá Nguyễn Văn Tảo, Phó Giám đốc Công an tỉnh Tiền Giang vừa có cuộc họp cùng Chỉ huy Công an huyện Châu Thành và một số đơn vị nghiệp vụ cấp tỉnh để chỉ đạo làm rõ thông tin." ner_results = nlp(example) print(ner_results) ``` ## 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: 4 - seed: 42 - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08 - lr_scheduler_type: linear - num_epochs: 10.0 ### Framework versions - Transformers 4.20.1 - Pytorch 1.8.0+cu111 - Datasets 2.4.0 - Tokenizers 0.12.1 ### Contact information For personal communication related to this project, please contact Nha Nguyen Van (nha282@gmail.com).
[ -0.3328137993812561, -0.6085225939750671, 0.12963466346263885, 0.08569926768541336, -0.35409989953041077, -0.3107907474040985, -0.06225203350186348, -0.16653093695640564, 0.35709965229034424, 0.5834451913833618, -0.3054925501346588, -0.5802211761474609, -0.6272233724594116, 0.18152067065238953, -0.29935160279273987, 1.0419635772705078, 0.025991026312112808, 0.11300324648618698, 0.23583930730819702, -0.15404370427131653, -0.3942066729068756, -0.8262882828712463, -0.7850846648216248, -0.651057243347168, 0.2950570285320282, 0.38502606749534607, 0.5213832855224609, 0.757396936416626, 0.5852205753326416, 0.38506945967674255, -0.2949756383895874, 0.08833102136850357, -0.35131585597991943, -0.3466058075428009, -0.004192284774035215, -0.5401747822761536, -0.7385149598121643, -0.0807274580001831, 0.6152632832527161, 0.25610291957855225, -0.18790388107299805, 0.4453849792480469, -0.10458160936832428, 0.46954867243766785, -0.4884450435638428, 0.281700998544693, -0.7191948890686035, 0.1248084083199501, -0.016142716631293297, -0.382896363735199, -0.3695405423641205, -0.17827075719833374, 0.2982693314552307, -0.5591829419136047, 0.39636707305908203, -0.0599520280957222, 1.5406644344329834, 0.3405337333679199, -0.3649945855140686, 0.09054405242204666, -0.8261349201202393, 0.7485677599906921, -0.9386885166168213, 0.21544256806373596, 0.3665119707584381, 0.3594178557395935, 0.32783469557762146, -0.749887228012085, -0.5699753165245056, -0.14704731106758118, -0.06713278591632843, 0.3967815339565277, -0.16918084025382996, 0.05748946964740753, 0.6041136980056763, 0.36130234599113464, -0.6126086711883545, 0.1791037768125534, -0.6484882235527039, -0.24676190316677094, 0.6359488368034363, 0.3190422058105469, -0.10771820694208145, -0.6090704798698425, -0.5445043444633484, -0.2609492540359497, -0.4231322407722473, -0.06905493885278702, 0.5962355732917786, 0.3281422555446625, -0.4056198298931122, 0.7830569744110107, -0.27796658873558044, 0.8483617305755615, 0.11160417646169662, 0.026909366250038147, 0.7427478432655334, -0.1990867555141449, -0.5287105441093445, 0.08402477204799652, 0.9167569875717163, 0.4985129237174988, 0.35577264428138733, 0.27833864092826843, -0.3294607400894165, -0.09078013896942139, 0.18266837298870087, -0.794122040271759, -0.393826425075531, 0.07585923373699188, -0.5104653835296631, -0.5534108877182007, 0.23344016075134277, -0.661359965801239, 0.20976507663726807, -0.6313198804855347, 0.6593960523605347, -0.28140491247177124, -0.343990296125412, 0.16467450559139252, -0.17324475944042206, 0.6295801997184753, 0.05127939581871033, -0.7444040179252625, 0.30423504114151, 0.3182232081890106, 0.7854691743850708, 0.10816773027181625, -0.5250562429428101, -0.41099074482917786, -0.06962350010871887, -0.10843808948993683, 0.6588199138641357, 0.02846565470099449, -0.32215020060539246, -0.1876441389322281, 0.24994681775569916, -0.2717089056968689, -0.6246566772460938, 0.6678138375282288, -0.3074888586997986, 0.27261897921562195, 0.0019011955009773374, -0.6166768670082092, -0.1423182487487793, 0.22852569818496704, -0.6140204668045044, 1.1738144159317017, 0.28238171339035034, -0.8803730010986328, 0.44736248254776, -0.47018951177597046, -0.03636813908815384, 0.061452556401491165, 0.001488935318775475, -0.7908900380134583, -0.05354287102818489, 0.17564596235752106, 0.37516745924949646, -0.1938895434141159, 0.32049766182899475, -0.12887439131736755, -0.46816349029541016, -0.017340879887342453, -0.5844237208366394, 0.9841678142547607, 0.07281935960054398, -0.4673542082309723, 0.23175550997257233, -1.187210202217102, 0.11723838001489639, 0.2825251817703247, -0.338236004114151, -0.15744870901107788, -0.4136506915092468, 0.43199947476387024, 0.4344538152217865, 0.22301463782787323, -0.41411903500556946, 0.06424225121736526, -0.7252458333969116, 0.450651079416275, 0.8079144954681396, 0.06811554729938507, 0.21024824678897858, -0.3581066429615021, 0.4167464077472687, 0.18532568216323853, 0.14650757610797882, 0.10901098698377609, -0.5171293020248413, -1.2201268672943115, -0.053428854793310165, 0.3062171936035156, 0.7192023396492004, -0.5820280909538269, 0.9045937657356262, -0.1401260942220688, -0.8372116088867188, -0.5119034051895142, -0.028973884880542755, 0.30570098757743835, 0.8956485986709595, 0.6486248970031738, -0.1888863742351532, -0.9115524291992188, -1.0274256467819214, -0.0988476499915123, -0.34491556882858276, -0.05103059485554695, 0.125881165266037, 0.7986931800842285, -0.28751900792121887, 0.8762551546096802, -0.5255822539329529, -0.2366512566804886, -0.23696176707744598, 0.11798875033855438, 0.6075109243392944, 0.6386407017707825, 0.543259859085083, -0.6106846928596497, -0.4931686222553253, -0.03645189478993416, -0.8045685887336731, -0.005890611093491316, -0.11017192900180817, -0.1922389417886734, 0.05317486450076103, 0.4330084025859833, -0.5566883087158203, 0.6483399271965027, 0.3133063316345215, -0.3967478275299072, 0.8007278442382812, -0.5327451229095459, -0.21773949265480042, -1.2336105108261108, 0.20098575949668884, 0.2998652756214142, -0.07733730971813202, -0.4576304852962494, -0.1205008402466774, 0.02684772200882435, -0.11340320855379105, -0.6850881576538086, 0.6743552684783936, -0.08133962750434875, 0.34075021743774414, -0.2201455980539322, -0.3103869557380676, -0.001519518787972629, 0.612352192401886, 0.3614256978034973, 0.4891115725040436, 0.5968519449234009, -0.7404345273971558, 0.4126931428909302, 0.33472180366516113, -0.0752234235405922, 0.5464958548545837, -1.1354387998580933, 0.0478813573718071, -0.0023423212114721537, 0.003147801849991083, -0.7232068181037903, -0.11988964676856995, 0.3681802749633789, -0.40627291798591614, 0.2006116509437561, -0.24352726340293884, -0.40739837288856506, -0.5054690837860107, 0.06507232040166855, 0.304573655128479, 0.6288199424743652, -0.5553646683692932, 0.4879152178764343, 0.06535905599594116, 0.32702723145484924, -0.5734991431236267, -0.7093373537063599, -0.16460031270980835, -0.4572804570198059, -0.3443818688392639, 0.3733994662761688, 0.08724105358123779, -0.0023667626082897186, -0.08909709006547928, 0.007098411675542593, -0.298785537481308, -0.19485214352607727, 0.15447337925434113, 0.4764895439147949, -0.2445784956216812, 0.03958607092499733, -0.1923525482416153, -0.6042643785476685, 0.23634037375450134, -0.2428077608346939, 0.6773015856742859, -0.414054811000824, -0.2162211835384369, -0.8136650919914246, -0.039780694991350174, 0.47203269600868225, -0.3126589357852936, 0.8628605008125305, 0.9266374111175537, -0.4086299240589142, 0.1512608826160431, -0.5117504596710205, -0.1387164145708084, -0.4951133728027344, 0.5704042315483093, -0.4148979187011719, -0.3598271906375885, 0.6059563755989075, 0.0973844900727272, 0.04484500735998154, 1.0743762254714966, 0.6339872479438782, 0.18537764251232147, 1.1303781270980835, 0.4518378973007202, -0.12083979696035385, 0.39677897095680237, -0.9539047479629517, 0.038500458002090454, -0.834430992603302, -0.38214898109436035, -0.5291904211044312, -0.09718598425388336, -0.8246237635612488, -0.2908095717430115, 0.18392053246498108, -0.06566262245178223, -0.7774143218994141, 0.5888966917991638, -0.779292106628418, 0.22056885063648224, 0.6919906139373779, 0.20869627594947815, 0.09768661856651306, 0.05055827647447586, -0.14043276011943817, -0.15058614313602448, -0.8417647480964661, -0.5293493866920471, 1.3024133443832397, 0.4729112684726715, 0.6936730146408081, -0.29270827770233154, 0.9060595631599426, -0.21582679450511932, 0.12704874575138092, -0.7967253923416138, 0.37582823634147644, 0.01089712604880333, -0.5247572064399719, -0.20852257311344147, -0.5139491558074951, -0.8914651870727539, 0.2417140007019043, -0.16161097586154938, -0.4718499183654785, 0.3295883536338806, 0.1379028707742691, -0.2528098523616791, 0.4738270342350006, -0.7400949001312256, 0.9972654581069946, -0.33091506361961365, -0.09962232410907745, 0.08016219735145569, -0.6447117924690247, 0.0894203931093216, 0.035617645829916, -0.18681704998016357, -0.02365296706557274, 0.09998881816864014, 0.923831582069397, -0.7181752920150757, 0.6917701363563538, -0.17490185797214508, 0.3423081934452057, 0.44471460580825806, -0.421509325504303, 0.5055864453315735, 0.21355193853378296, -0.29456010460853577, 0.35465767979621887, -0.26600077748298645, -0.5952312350273132, -0.3184261620044708, 0.6578750610351562, -1.1943578720092773, -0.25524258613586426, -0.7047762870788574, -0.3527756929397583, 0.2660391926765442, 0.3112180829048157, 0.853320300579071, 0.4167097508907318, 0.03310944885015488, 0.08952458947896957, 0.5719824433326721, -0.11585373431444168, 0.40220123529434204, 0.27570074796676636, 0.0019636889919638634, -0.5944838523864746, 1.0616196393966675, 0.20454774796962738, 0.23558911681175232, 0.27096715569496155, 0.3380189836025238, -0.4302493929862976, -0.25380513072013855, -0.4100394546985626, 0.447279155254364, -0.6396423578262329, -0.23687303066253662, -0.7012822031974792, -0.7031717300415039, -0.36988767981529236, 0.020014682784676552, -0.5542068481445312, -0.2930041253566742, -0.47951188683509827, -0.3115120828151703, 0.5090738534927368, 0.44690024852752686, -0.02271817810833454, 0.5453231334686279, -0.5546883344650269, 0.23008623719215393, 0.43994107842445374, 0.17638184130191803, -0.028313396498560905, -0.9293157458305359, -0.3103123605251312, 0.021947333589196205, -0.33089667558670044, -0.8734748959541321, 0.8206440806388855, 0.06664128601551056, 0.5539407730102539, 0.37333863973617554, -0.1326160728931427, 0.7938849329948425, -0.37117618322372437, 0.7203701138496399, 0.23159083724021912, -0.8657365441322327, 0.6728110909461975, -0.26164311170578003, 0.5165532231330872, 0.556107759475708, 0.33625298738479614, -0.30826300382614136, -0.15971428155899048, -1.1676381826400757, -1.0995490550994873, 0.6854485273361206, 0.36308225989341736, 0.14403589069843292, 0.029203368350863457, 0.35849425196647644, -0.20458127558231354, 0.20631709694862366, -0.9143688678741455, -0.763414204120636, -0.4580869972705841, 0.005997525993734598, -0.18365763127803802, -0.17552632093429565, 0.003050873288884759, -0.8055325150489807, 1.0016016960144043, 0.016100915148854256, 0.3611150085926056, 0.4110942780971527, 0.055058788508176804, -0.03363829478621483, -0.031991008669137955, 0.45109298825263977, 0.7304190993309021, -0.52484130859375, -0.06603389233350754, 0.45177772641181946, -0.5870958566665649, 0.17537683248519897, 0.2905941307544708, -0.3154750466346741, 0.42779022455215454, 0.26112431287765503, 1.1181092262268066, 0.01104641892015934, -0.2278938591480255, 0.39939942955970764, -0.10821535438299179, -0.40359529852867126, -0.6991400122642517, -0.10281898826360703, -0.11799154430627823, -0.09937386959791183, 0.26111844182014465, 0.363006591796875, -0.016271179541945457, -0.10984963178634644, 0.22837786376476288, -0.05415397137403488, -0.6401526927947998, -0.29576969146728516, 0.8768985867500305, 0.0858839899301529, -0.48483341932296753, 0.8954328894615173, -0.1900871843099594, -0.4800965487957001, 0.9465996026992798, 0.5893359780311584, 1.040666937828064, -0.2513142228126526, 0.2312733680009842, 0.9768894910812378, 0.331612229347229, -0.10461446642875671, 0.4107958972454071, 0.4489741921424866, -0.5226645469665527, -0.3617893159389496, -0.6325592398643494, -0.279079794883728, 0.500898540019989, -0.9607587456703186, 0.7164254784584045, -0.399912029504776, -0.34839776158332825, -0.025072842836380005, 0.03785406053066254, -1.1911388635635376, 0.47461530566215515, 0.04507334530353546, 0.9088300466537476, -1.0441886186599731, 0.7954163551330566, 0.8138713836669922, -0.5366210341453552, -1.2036480903625488, -0.26950255036354065, -0.22180792689323425, -0.8495500087738037, 0.7025624513626099, 0.17662453651428223, 0.29746589064598083, 0.16304871439933777, -0.38322967290878296, -0.9583154916763306, 1.0052216053009033, 0.2692427337169647, -0.5119624733924866, -0.11001904308795929, 0.24003233015537262, 0.7240222692489624, -0.17626938223838806, 0.6746917963027954, 0.39983657002449036, 0.3619386553764343, 0.017146244645118713, -1.0473673343658447, -0.12156861275434494, -0.4012131690979004, 0.012711048126220703, 0.1697079986333847, -0.8337128162384033, 1.2390812635421753, -0.07935905456542969, 0.3785131871700287, -0.023318829014897346, 0.6844440698623657, 0.4707672894001007, 0.25291454792022705, 0.5284008383750916, 0.8440454602241516, 0.6252421140670776, 0.037618834525346756, 0.8755815625190735, -0.3639175295829773, 0.7655764818191528, 1.10407292842865, 0.05700954422354698, 0.7088888883590698, 0.4481266736984253, -0.17328931391239166, 0.5281153917312622, 0.6238545179367065, -0.3225689232349396, 0.3400149345397949, 0.16756409406661987, -0.00022549106506630778, -0.288634717464447, 0.06638327240943909, -0.6832180619239807, 0.6646950244903564, 0.10621466487646103, -0.6590690016746521, -0.24253715574741364, -0.18225595355033875, -0.09254579246044159, -0.15023662149906158, -0.23919351398944855, 0.4756937026977539, 0.08897581696510315, -0.42547842860221863, 0.828152596950531, -0.017717892304062843, 0.6538368463516235, -0.5846352577209473, -0.20382000505924225, 0.1215992420911789, 0.28495001792907715, -0.2382262796163559, -0.4306759238243103, 0.19302548468112946, -0.05433570593595505, -0.09537657350301743, -0.029849404469132423, 0.5511670112609863, -0.3089718222618103, -0.9361140727996826, 0.16539537906646729, 0.5090838074684143, 0.1941625326871872, -0.0010682482970878482, -1.006737470626831, -0.22263605892658234, -0.054069168865680695, -0.3208318054676056, 0.10392067581415176, 0.36932384967803955, 0.15400154888629913, 0.526155412197113, 0.5854188799858093, 0.24769079685211182, 0.04207291454076767, 0.19985337555408478, 0.816481351852417, -0.7223865389823914, -0.572107195854187, -0.8682473301887512, 0.6129646897315979, -0.24771851301193237, -0.9818831086158752, 0.8357385993003845, 0.8864684104919434, 1.0851889848709106, -0.11241467297077179, 0.7271298766136169, 0.09537996351718903, 0.3994879424571991, -0.4222595989704132, 0.7149448990821838, -0.4136614203453064, 0.13815027475357056, -0.36390063166618347, -1.0563616752624512, -0.06361202150583267, 0.864915132522583, -0.40531983971595764, 0.09613704681396484, 0.6012693643569946, 0.6791555285453796, -0.0924726128578186, -0.2459375113248825, 0.17997191846370697, 0.16241486370563507, 0.2877338230609894, 0.5518086552619934, 0.6241466999053955, -1.0109806060791016, 0.5169108510017395, -0.8934553861618042, -0.032845839858055115, -0.2432851642370224, -0.6744983792304993, -0.9972938895225525, -0.4129658639431, -0.5255367755889893, -0.5412734150886536, -0.19196362793445587, 1.0448458194732666, 0.7857277393341064, -0.7817503213882446, -0.5291746854782104, -0.31941667199134827, -0.04579796642065048, -0.349378764629364, -0.2814357876777649, 0.6377630829811096, -0.09320047497749329, -0.8014774918556213, -0.07454893738031387, -0.20617257058620453, 0.2790263593196869, -0.219669371843338, -0.2170485556125641, -0.35104772448539734, -0.24110299348831177, 0.40597057342529297, 0.2187032550573349, -0.5900327563285828, -0.21175001561641693, 0.19823165237903595, -0.15231634676456451, 0.24433903396129608, 0.3736559748649597, -0.8627989292144775, 0.5676271915435791, 0.5547736287117004, 0.19792819023132324, 0.7064347863197327, -0.02524540014564991, 0.5529008507728577, -0.5859395265579224, 0.455380916595459, 0.4179867208003998, 0.39003029465675354, 0.22651095688343048, -0.34135761857032776, 0.5305131673812866, 0.4712511897087097, -0.7363491058349609, -0.8336792588233948, -0.14676369726657867, -1.0191981792449951, 0.24121052026748657, 1.1364754438400269, 0.10992920398712158, -0.34929612278938293, -0.03455624729394913, -0.3256162405014038, 0.5523867011070251, -0.28802651166915894, 0.570343017578125, 0.49916979670524597, -0.05301327630877495, 0.08216804265975952, -0.7103975415229797, 0.38786277174949646, 0.48251330852508545, -0.651943027973175, -0.3392994999885559, 0.06716963648796082, 0.32220539450645447, 0.06553621590137482, 0.5560699105262756, 0.07528620958328247, 0.30199483036994934, 0.04537127912044525, 0.23176349699497223, -0.1417931169271469, -0.1574300080537796, -0.500665009021759, -0.16088883578777313, -0.0773167833685875, -0.34423309564590454 ]
timm/beit_base_patch16_224.in22k_ft_in22k_in1k
timm
"2023-05-08T23:19:17Z"
43,309
0
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "dataset:imagenet-22k", "arxiv:2106.08254", "arxiv:2010.11929", "license:apache-2.0", "region:us" ]
image-classification
"2022-12-23T02:25:09Z"
--- tags: - image-classification - timm library_name: timm license: apache-2.0 datasets: - imagenet-1k - imagenet-22k --- # Model card for beit_base_patch16_224.in22k_ft_in22k_in1k A BEiT image classification model. Trained on ImageNet-22k with self-supervised masked image modelling (MIM) using a DALL-E dVAE as visual tokenizer. Fine-tuned on ImageNet-22k and then ImageNet-1k. ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 86.5 - GMACs: 17.6 - Activations (M): 23.9 - Image size: 224 x 224 - **Papers:** - BEiT: BERT Pre-Training of Image Transformers: https://arxiv.org/abs/2106.08254 - An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale: https://arxiv.org/abs/2010.11929v2 - **Dataset:** ImageNet-1k - **Pretrain Dataset:** ImageNet-22k - **Original:** https://github.com/microsoft/unilm/tree/master/beit ## 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('beit_base_patch16_224.in22k_ft_in22k_in1k', pretrained=True) model = model.eval() # get model specific transforms (normalization, resize) data_config = timm.data.resolve_model_data_config(model) transforms = timm.data.create_transform(**data_config, is_training=False) output = model(transforms(img).unsqueeze(0)) # unsqueeze single image into batch of 1 top5_probabilities, top5_class_indices = torch.topk(output.softmax(dim=1) * 100, k=5) ``` ### Image Embeddings ```python from urllib.request import urlopen from PIL import Image import timm img = Image.open(urlopen( 'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/beignets-task-guide.png' )) model = timm.create_model( 'beit_base_patch16_224.in22k_ft_in22k_in1k', pretrained=True, num_classes=0, # remove classifier nn.Linear ) model = model.eval() # get model specific transforms (normalization, resize) data_config = timm.data.resolve_model_data_config(model) transforms = timm.data.create_transform(**data_config, is_training=False) output = model(transforms(img).unsqueeze(0)) # output is (batch_size, num_features) shaped tensor # or equivalently (without needing to set num_classes=0) output = model.forward_features(transforms(img).unsqueeze(0)) # output is unpooled, a (1, 197, 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{bao2021beit, title={Beit: Bert pre-training of image transformers}, author={Bao, Hangbo and Dong, Li and Piao, Songhao and Wei, Furu}, journal={arXiv preprint arXiv:2106.08254}, year={2021} } ``` ```bibtex @article{dosovitskiy2020vit, title={An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale}, author={Dosovitskiy, Alexey and Beyer, Lucas and Kolesnikov, Alexander and Weissenborn, Dirk and Zhai, Xiaohua and Unterthiner, Thomas and Dehghani, Mostafa and Minderer, Matthias and Heigold, Georg and Gelly, Sylvain and Uszkoreit, Jakob and Houlsby, Neil}, journal={ICLR}, 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}} } ```
[ -0.585419774055481, -0.3578900396823883, -0.0003960870089940727, 0.17328234016895294, -0.44610655307769775, -0.25584861636161804, -0.23523268103599548, -0.5328893661499023, 0.22747424244880676, 0.37459519505500793, -0.5924228429794312, -0.6685463190078735, -0.7764946818351746, -0.07260894775390625, -0.19923703372478485, 1.0842063426971436, -0.16460533440113068, 0.01435171626508236, -0.1116705909371376, -0.44437697529792786, -0.17864099144935608, -0.3501512408256531, -0.6624642014503479, -0.4929695725440979, 0.31302911043167114, 0.132854163646698, 0.6029507517814636, 0.5839987993240356, 0.6351001858711243, 0.47438329458236694, -0.08565932512283325, 0.030391260981559753, -0.21196024119853973, -0.30806270241737366, 0.3751142919063568, -0.5665732622146606, -0.4843771457672119, 0.2930685877799988, 0.7649849653244019, 0.43487289547920227, 0.12467518448829651, 0.39392173290252686, 0.1175127625465393, 0.6065282821655273, -0.2434091418981552, 0.18583562970161438, -0.5379198789596558, 0.26847198605537415, -0.17797812819480896, 0.0789284035563469, -0.362721711397171, -0.3905639350414276, 0.25772079825401306, -0.5204045176506042, 0.4846392869949341, -0.03130834177136421, 1.5058544874191284, 0.1628357321023941, 0.0020804572850465775, -0.0237911157310009, -0.3221513628959656, 0.7819995880126953, -0.8605836033821106, 0.4163815379142761, 0.2779901921749115, 0.12297552824020386, -0.03316805139183998, -1.0252981185913086, -0.6138607859611511, -0.16870273649692535, -0.299339234828949, 0.07119150459766388, -0.43858271837234497, 0.07837226241827011, 0.3523935079574585, 0.352225124835968, -0.40949204564094543, 0.11232303082942963, -0.531248152256012, -0.36019402742385864, 0.4621884524822235, -0.11615437269210815, 0.27264344692230225, -0.2234451174736023, -0.5872788429260254, -0.5015762448310852, -0.4622015655040741, 0.25264257192611694, 0.45673811435699463, 0.09279140084981918, -0.5529428124427795, 0.4296334385871887, 0.16867731511592865, 0.5887458920478821, 0.33955061435699463, -0.2369651347398758, 0.6825324892997742, -0.09601501375436783, -0.3865245282649994, -0.05582117289304733, 1.093167781829834, 0.3206978738307953, 0.2687639892101288, -0.020366758108139038, -0.16895617544651031, -0.1487872153520584, -0.01521745789796114, -1.212324857711792, -0.3944881856441498, 0.09465911239385605, -0.6486904621124268, -0.3510890007019043, 0.2559731602668762, -0.682033121585846, -0.03424568846821785, -0.05656014010310173, 0.7730404734611511, -0.5534593462944031, -0.3533185124397278, 0.1315964311361313, -0.05257350206375122, 0.3806324601173401, 0.18818970024585724, -0.5636525750160217, 0.19015920162200928, 0.21309894323349, 1.036077857017517, 0.0888332799077034, -0.44757747650146484, -0.1927938163280487, -0.3475583493709564, -0.3807568848133087, 0.5394884943962097, -0.04828248545527458, -0.1427670270204544, -0.15701165795326233, 0.3330639898777008, -0.17374441027641296, -0.6630693674087524, 0.37822455167770386, -0.3282012641429901, 0.3516542315483093, 0.01811847649514675, -0.3126688599586487, -0.3958815932273865, 0.242073193192482, -0.5018357038497925, 1.2727855443954468, 0.43964773416519165, -1.0084679126739502, 0.4618293046951294, -0.5592941045761108, -0.11551536619663239, -0.15085065364837646, 0.03002760000526905, -1.1421513557434082, -0.06138765439391136, 0.2877127230167389, 0.67398601770401, -0.14017795026302338, -0.024147430434823036, -0.46605974435806274, -0.3294985592365265, 0.34761369228363037, -0.12212175130844116, 1.006330966949463, 0.12409289181232452, -0.4586488902568817, 0.3148643672466278, -0.6159974336624146, 0.10577066987752914, 0.48450911045074463, -0.2623409926891327, -0.010134652256965637, -0.6087302565574646, 0.13350288569927216, 0.33193472027778625, 0.2392081618309021, -0.7273878455162048, 0.2349122315645218, -0.334647536277771, 0.3912121653556824, 0.7574686408042908, -0.25552070140838623, 0.3684674799442291, -0.4133889675140381, 0.3526468873023987, 0.3855392336845398, 0.24507662653923035, -0.04111370071768761, -0.5928119421005249, -0.9313554167747498, -0.6001270413398743, 0.4952540993690491, 0.3782002031803131, -0.5488302707672119, 0.7309751510620117, -0.3009863793849945, -0.8168941736221313, -0.64190673828125, 0.07540027052164078, 0.5137455463409424, 0.5847610235214233, 0.42592811584472656, -0.5747075080871582, -0.5377427935600281, -0.9672133922576904, 0.02607893757522106, -0.10401973873376846, -0.015472239814698696, 0.3022319972515106, 0.625296413898468, -0.24616627395153046, 0.8006669282913208, -0.3666524291038513, -0.3870639503002167, -0.25036779046058655, 0.21251174807548523, 0.4346811771392822, 0.7708004713058472, 0.8648989200592041, -0.5498720407485962, -0.58447265625, -0.2312486618757248, -0.8498682379722595, 0.0541495643556118, -0.03036530874669552, -0.2776282727718353, 0.4240996539592743, 0.24795842170715332, -0.7862419486045837, 0.691724419593811, 0.3096703886985779, -0.39232373237609863, 0.5616251826286316, -0.29443567991256714, 0.07602415978908539, -1.1501719951629639, -0.0032045862171798944, 0.3205125033855438, -0.15936893224716187, -0.5069465041160583, -0.043937623500823975, 0.11572407931089401, -0.006373708602041006, -0.46812644600868225, 0.5868636965751648, -0.5244327187538147, -0.16085955500602722, -0.04731888324022293, -0.3145507872104645, -0.013250123709440231, 0.7691893577575684, -0.10313145816326141, 0.5080462098121643, 0.8129777908325195, -0.4550788104534149, 0.36333316564559937, 0.5013164281845093, -0.4041547179222107, 0.5060402750968933, -0.7258327007293701, 0.21842454373836517, -0.01868363283574581, 0.34532439708709717, -1.115557074546814, -0.13696318864822388, 0.43063145875930786, -0.6146253943443298, 0.7345909476280212, -0.438282310962677, -0.6661201119422913, -0.6115224957466125, -0.47549235820770264, 0.47646141052246094, 0.7696551084518433, -0.8044004440307617, 0.5859790444374084, 0.12087114155292511, 0.2629329264163971, -0.5499469041824341, -0.8399590253829956, -0.2473721206188202, -0.45473626255989075, -0.7642573118209839, 0.5317195653915405, -0.011795895174145699, 0.24518664181232452, 0.16816240549087524, -0.10639358311891556, 0.02093932032585144, -0.20045308768749237, 0.4455282688140869, 0.511928915977478, -0.22442573308944702, -0.04923787713050842, -0.26620614528656006, -0.17729327082633972, 0.07951459288597107, -0.2900935709476471, 0.6634459495544434, -0.3319854438304901, -0.2447303980588913, -0.7929726839065552, -0.10164463520050049, 0.5224694013595581, -0.2182396948337555, 0.8039050102233887, 1.1870265007019043, -0.48899903893470764, 0.09045384079217911, -0.5330430269241333, -0.3194904029369354, -0.5314165353775024, 0.4885285794734955, -0.3998430371284485, -0.4824574291706085, 0.8707146048545837, 0.042695753276348114, 0.02212396077811718, 0.7992568612098694, 0.46308448910713196, -0.07462552934885025, 0.9291212558746338, 0.6331972479820251, 0.05806098133325577, 0.7548776268959045, -0.8892852663993835, -0.051532626152038574, -0.9213679432868958, -0.37141165137290955, -0.3453839123249054, -0.5805134773254395, -0.7241899371147156, -0.25940343737602234, 0.44087740778923035, 0.1311662644147873, -0.4318044185638428, 0.5231207609176636, -0.838496744632721, 0.030034612864255905, 0.8175673484802246, 0.5568033456802368, -0.2799932658672333, 0.33535611629486084, -0.3218061923980713, -0.07543125003576279, -0.7517068982124329, -0.22046834230422974, 1.1302906274795532, 0.5208181142807007, 0.7351706624031067, -0.1669357568025589, 0.7795689105987549, -0.20405776798725128, 0.42696699500083923, -0.6726750731468201, 0.6644690632820129, -0.09472565352916718, -0.5153776407241821, -0.14107860624790192, -0.3753765821456909, -1.1589246988296509, 0.0422116182744503, -0.33211296796798706, -0.8036958575248718, 0.14344947040081024, 0.1473509669303894, -0.2444869428873062, 0.7803865075111389, -0.8255433440208435, 0.9515618681907654, -0.08368132263422012, -0.2605496346950531, 0.044633664190769196, -0.7490161061286926, 0.17726190388202667, 0.050629373639822006, -0.22244156897068024, -0.04505794495344162, 0.2761264741420746, 1.1434696912765503, -0.5601091980934143, 0.9086577296257019, -0.4375484585762024, 0.29860126972198486, 0.4342120587825775, -0.13139398396015167, 0.37508660554885864, -0.21153567731380463, 0.028803963214159012, 0.46547845005989075, 0.12794825434684753, -0.4323784410953522, -0.4700124263763428, 0.5034517049789429, -1.1204781532287598, -0.3924427330493927, -0.49279892444610596, -0.5477984547615051, 0.07980939745903015, 0.14810658991336823, 0.6877924799919128, 0.624096691608429, 0.2977093458175659, 0.31162160634994507, 0.641137421131134, -0.43314358592033386, 0.4184311628341675, 0.013058417476713657, -0.23328827321529388, -0.5075803399085999, 0.8096269965171814, 0.3302556872367859, 0.17264223098754883, 0.03901112079620361, 0.28047680854797363, -0.38755056262016296, -0.5597816109657288, -0.4428265690803528, 0.5005413293838501, -0.7735419869422913, -0.5217124223709106, -0.6015966534614563, -0.584697961807251, -0.3383267819881439, -0.032322436571121216, -0.4077933132648468, -0.23916307091712952, -0.43196314573287964, 0.10557606816291809, 0.7252627015113831, 0.5701612830162048, -0.14701427519321442, 0.5733383297920227, -0.6614532470703125, 0.09725333750247955, 0.21160933375358582, 0.6354920864105225, -0.06664625555276871, -1.0737738609313965, -0.3366495966911316, -0.0439302884042263, -0.4752865135669708, -0.8302046060562134, 0.48521938920021057, 0.15089812874794006, 0.55756014585495, 0.3713240325450897, -0.18786507844924927, 0.7706270217895508, -0.1930018663406372, 0.5452409386634827, 0.4136213958263397, -0.692896842956543, 0.48416367173194885, -0.08624538034200668, 0.2077661007642746, 0.1442403942346573, 0.36725300550460815, -0.19957779347896576, -0.06726842373609543, -1.1294523477554321, -0.7522207498550415, 0.8643350005149841, 0.20998027920722961, 0.1416463702917099, 0.37533339858055115, 0.5733255743980408, 0.037771113216876984, 0.057281676679849625, -0.8611021637916565, -0.43086421489715576, -0.4269082546234131, -0.3698786497116089, 0.002852041507139802, -0.1236223354935646, -0.06335035711526871, -0.7720360159873962, 0.8185232877731323, -0.03364802896976471, 0.9080263376235962, 0.3212957978248596, -0.07990844547748566, -0.19916677474975586, -0.31396055221557617, 0.39963793754577637, 0.2740166187286377, -0.39434194564819336, 0.0574510358273983, 0.19362080097198486, -0.6311320662498474, 0.005519806873053312, 0.3273378908634186, -0.05181838199496269, 0.12097243964672089, 0.43974068760871887, 1.0282162427902222, -0.02154267393052578, -0.023887524381279945, 0.4818945527076721, -0.025851545855402946, -0.4946244955062866, -0.2762126624584198, -0.07098834961652756, -0.0583159476518631, 0.3639838397502899, 0.33349698781967163, 0.31927260756492615, -0.22288106381893158, -0.2452387660741806, 0.2633502185344696, 0.611636757850647, -0.39070987701416016, -0.43396449089050293, 0.5792263746261597, -0.3519294559955597, -0.18742185831069946, 0.8627102971076965, -0.13518832623958588, -0.6379017233848572, 0.9480541348457336, 0.5209479928016663, 0.9754647612571716, -0.08599282801151276, 0.08487226068973541, 0.7848294973373413, 0.2506292462348938, 0.06895840167999268, 0.14633405208587646, 0.17643360793590546, -0.9239210486412048, 0.009516667574644089, -0.6552321910858154, 0.03434400632977486, 0.405960351228714, -0.5104806423187256, 0.3608601689338684, -0.6130561828613281, -0.43252474069595337, 0.2159520536661148, 0.2692071199417114, -0.9728843569755554, 0.2522866725921631, 0.04004603996872902, 0.8280918002128601, -0.7967756390571594, 0.8295254111289978, 0.8267046213150024, -0.607164204120636, -1.0891258716583252, -0.11287818849086761, -0.14273382723331451, -0.9273906350135803, 0.6851984262466431, 0.5213163495063782, 0.11575751006603241, 0.20876309275627136, -0.8253011703491211, -0.7555798888206482, 1.2924562692642212, 0.4787381589412689, -0.025715140625834465, 0.2126186490058899, -0.01163890864700079, 0.35970187187194824, -0.368650883436203, 0.4011751413345337, 0.20534083247184753, 0.39463844895362854, 0.3391614556312561, -0.7702080607414246, 0.15276044607162476, -0.3432330787181854, 0.00882335938513279, 0.29066193103790283, -0.7683376669883728, 0.9615705609321594, -0.3034234941005707, -0.1543000489473343, 0.1850997358560562, 0.6785062551498413, 0.2840028703212738, 0.06867311894893646, 0.6818699836730957, 0.93982994556427, 0.42049941420555115, -0.34314846992492676, 0.8252241611480713, -0.219792902469635, 0.6296791434288025, 0.5723538994789124, 0.37507468461990356, 0.5158993601799011, 0.39459922909736633, -0.42504003643989563, 0.5582317113876343, 1.097350001335144, -0.4574121832847595, 0.4441131055355072, 0.21718844771385193, -0.015574165619909763, -0.18575139343738556, 0.0002509536861907691, -0.47949543595314026, 0.5255155563354492, 0.1872984915971756, -0.5050967335700989, -0.2587115168571472, 0.04598228633403778, 0.06617846339941025, -0.3557375967502594, -0.21164831519126892, 0.5292162299156189, -0.00891044270247221, -0.42987582087516785, 0.7841886281967163, 0.07823631167411804, 0.9408383369445801, -0.5766695141792297, 0.03613237291574478, -0.19818991422653198, 0.3437286913394928, -0.299797922372818, -0.8080208897590637, 0.28191500902175903, -0.29638931155204773, 0.0030086252372711897, -0.023400627076625824, 0.7862127423286438, -0.342368483543396, -0.6511407494544983, 0.2404535710811615, 0.3056665062904358, 0.4038201570510864, 0.008438918739557266, -1.1735495328903198, 0.018477994948625565, -0.06467369943857193, -0.5710217356681824, 0.3835009038448334, 0.4469537138938904, 0.04890565574169159, 0.6644197702407837, 0.6953482627868652, -0.06223640218377113, 0.2689281105995178, -0.15156438946723938, 0.9275214672088623, -0.35389646887779236, -0.37779736518859863, -0.8529149889945984, 0.5228069424629211, -0.03853025659918785, -0.504579484462738, 0.640296220779419, 0.5078058838844299, 0.9912168383598328, -0.11133608222007751, 0.41439345479011536, -0.20263855159282684, 0.04889481142163277, -0.36060190200805664, 0.772943913936615, -0.7112427949905396, -0.15301606059074402, -0.3686409592628479, -0.7517330646514893, -0.3539470434188843, 0.8928260207176208, -0.2743012011051178, 0.4785699248313904, 0.49228090047836304, 0.9880736470222473, -0.303878515958786, -0.37359103560447693, 0.17854277789592743, 0.15672293305397034, 0.10634732991456985, 0.40180504322052, 0.4858199954032898, -0.7834965586662292, 0.434049129486084, -0.6547631025314331, -0.1597444713115692, -0.10223054140806198, -0.7181432247161865, -1.085654377937317, -0.8901622295379639, -0.58067387342453, -0.7078753113746643, -0.34859463572502136, 0.992272138595581, 1.0972778797149658, -0.6984315514564514, -0.0869060680270195, -0.024543406441807747, -0.04037422686815262, -0.289212703704834, -0.20941689610481262, 0.7459437847137451, -0.12332860380411148, -0.7240755558013916, -0.43619635701179504, -0.02711299993097782, 0.49438703060150146, -0.14238476753234863, -0.2420135736465454, -0.24906156957149506, -0.1332125961780548, 0.25877994298934937, 0.21344195306301117, -0.7352406978607178, -0.2784941494464874, -0.12520529329776764, -0.09008615463972092, 0.5279633402824402, 0.3275771737098694, -0.6604434251785278, 0.4056624174118042, 0.37895482778549194, 0.4280416667461395, 0.9004063606262207, -0.2818896770477295, -0.03288118913769722, -0.8622649908065796, 0.5137448310852051, -0.07908891141414642, 0.5536322593688965, 0.4680112898349762, -0.321455180644989, 0.5314974784851074, 0.4993028938770294, -0.42795470356941223, -0.8429301977157593, 0.003377793123945594, -1.114437460899353, -0.024455571547150612, 0.8667428493499756, -0.44425168633461, -0.39587241411209106, 0.41602107882499695, -0.1444261223077774, 0.7506779432296753, -0.068387471139431, 0.6039798259735107, 0.4687449336051941, -0.005421663634479046, -0.5766739249229431, -0.4295938014984131, 0.44287925958633423, 0.28698331117630005, -0.6173953413963318, -0.49627289175987244, 0.02949102222919464, 0.6128495931625366, 0.3836641311645508, 0.49754950404167175, -0.23592509329319, 0.08341339230537415, -0.06210523098707199, 0.5183326601982117, -0.3089820146560669, -0.08900685608386993, -0.2941378951072693, -0.09537167847156525, -0.08140168339014053, -0.6260332465171814 ]
nitrosocke/redshift-diffusion
nitrosocke
"2023-05-16T09:25:37Z"
43,041
605
diffusers
[ "diffusers", "stable-diffusion", "text-to-image", "image-to-image", "en", "license:creativeml-openrail-m", "endpoints_compatible", "has_space", "diffusers:StableDiffusionPipeline", "region:us" ]
text-to-image
"2022-11-06T16:48:49Z"
--- language: - en license: creativeml-openrail-m thumbnail: "https://huggingface.co/nitrosocke/redshift-diffusion/resolve/main/images/redshift-diffusion-samples-01s.jpg" tags: - stable-diffusion - text-to-image - image-to-image --- ### Redshift Diffusion This is the fine-tuned Stable Diffusion model trained on high resolution 3D artworks. Use the tokens **_redshift style_** in your prompts for the effect. **The name:** I used Cinema4D for a very long time as my go-to modeling software and always liked the redshift render it came with. That is why I was very sad to see the bad results base SD has connected with its token. This is my attempt at fixing that and showing my passion for this render engine. **If you enjoy my work and want to test new models before release, please consider supporting me** [![Become A Patreon](https://badgen.net/badge/become/a%20patron/F96854)](https://patreon.com/user?u=79196446) **Characters rendered with the model:** ![Videogame Samples](https://huggingface.co/nitrosocke/redshift-diffusion/resolve/main/images/redshift-diffusion-samples-01s.jpg) **Cars and Landscapes rendered with the model:** ![Misc. Samples](https://huggingface.co/nitrosocke/redshift-diffusion/resolve/main/images/redshift-diffusion-samples-02s.jpg) #### Prompt and settings for Tony Stark: **(redshift style) robert downey jr as ironman Negative prompt: glasses helmet** _Steps: 40, Sampler: DPM2 Karras, CFG scale: 7, Seed: 908018284, Size: 512x704_ #### Prompt and settings for the Ford Mustang: **redshift style Ford Mustang** _Steps: 20, Sampler: DPM2 Karras, CFG scale: 7, Seed: 579593863, Size: 704x512_ This model was trained using the diffusers based dreambooth training by ShivamShrirao using prior-preservation loss and the _train-text-encoder_ flag in 11.000 steps. ### Gradio We support a [Gradio](https://github.com/gradio-app/gradio) Web UI run redshift-diffusion: [![Open In Spaces](https://camo.githubusercontent.com/00380c35e60d6b04be65d3d94a58332be5cc93779f630bcdfc18ab9a3a7d3388/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f25463025394625413425393725323048756767696e67253230466163652d5370616365732d626c7565)](https://huggingface.co/spaces/nitrosocke/Redshift-Diffusion-Demo) ### 🧨 Diffusers This model can be used just like any other Stable Diffusion model. For more information, please have a look at the [Stable Diffusion](https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion). You can also export the model to [ONNX](https://huggingface.co/docs/diffusers/optimization/onnx), [MPS](https://huggingface.co/docs/diffusers/optimization/mps) and/or [FLAX/JAX](). ```python from diffusers import StableDiffusionPipeline import torch model_id = "nitrosocke/redshift-diffusion" pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16) pipe = pipe.to("cuda") prompt = "redshift style magical princess with golden hair" image = pipe(prompt).images[0] image.save("./magical_princess.png") ``` ## License This model is open access and available to all, with a CreativeML OpenRAIL-M license further specifying rights and usage. The CreativeML OpenRAIL License specifies: 1. You can't use the model to deliberately produce nor share illegal or harmful outputs or content 2. The authors claims no rights on the outputs you generate, you are free to use them and are accountable for their use which must not go against the provisions set in the license 3. You may re-distribute the weights and use the model commercially and/or as a service. If you do, please be aware you have to include the same use restrictions as the ones in the license and share a copy of the CreativeML OpenRAIL-M to all your users (please read the license entirely and carefully) [Please read the full license here](https://huggingface.co/spaces/CompVis/stable-diffusion-license)
[ -0.5184231400489807, -0.7340331673622131, 0.41251277923583984, 0.3120219111442566, -0.2881183326244354, -0.21481481194496155, 0.1096917912364006, -0.41704028844833374, 0.26654964685440063, 0.49564090371131897, -0.7313818335533142, -0.5830574035644531, -0.6748587489128113, -0.04903355613350868, -0.3209722936153412, 1.0869832038879395, -0.12353205680847168, 0.03777751326560974, -0.03611799329519272, 0.05276689678430557, -0.14051023125648499, -0.034200359135866165, -0.6692665219306946, -0.3654051423072815, 0.4408174455165863, 0.10664915293455124, 0.783791184425354, 0.43157267570495605, 0.5622313022613525, 0.3102901875972748, -0.47547319531440735, -0.1590922772884369, -0.552575409412384, -0.11411935091018677, -0.12893575429916382, -0.20965172350406647, -0.7296249270439148, 0.08103881776332855, 0.6387822031974792, 0.24298003315925598, -0.4033663868904114, -0.04454030096530914, -0.19876793026924133, 0.6140338182449341, -0.49064570665359497, -0.07125425338745117, -0.2341480702161789, 0.09674111008644104, -0.152488574385643, 0.32819420099258423, -0.02835032157599926, -0.4660971164703369, 0.15870483219623566, -0.7802974581718445, 0.445425808429718, -0.14598217606544495, 1.1318103075027466, 0.31739524006843567, -0.26863086223602295, 0.1389344334602356, -0.5710894465446472, 0.6620240211486816, -0.7628399729728699, 0.5376699566841125, 0.11549112200737, 0.5237742066383362, 0.21886557340621948, -1.06289803981781, -0.5759967565536499, 0.0465148501098156, 0.05015448108315468, 0.46264272928237915, -0.20883332192897797, -0.09125937521457672, 0.17585337162017822, 0.4492468237876892, -0.690682590007782, -0.12434897571802139, -0.6842206716537476, -0.08633355051279068, 0.44260966777801514, 0.18456096947193146, 0.09459228813648224, -0.1680774986743927, -0.6283068656921387, -0.31193795800209045, -0.4928406774997711, -0.3410779535770416, 0.41952821612358093, 0.10982951521873474, -0.7010211944580078, 0.6183746457099915, -0.18258211016654968, 0.6348972916603088, 0.23838448524475098, 0.20918825268745422, 0.47728148102760315, -0.19047455489635468, -0.4028887152671814, -0.45351356267929077, 0.7768092155456543, 0.6436991691589355, 0.03388501703739166, -0.08668013662099838, 0.0038824216462671757, 0.04778928682208061, 0.14783240854740143, -1.107253909111023, -0.46601352095603943, 0.5404786467552185, -0.3114875853061676, -0.19745327532291412, -0.10119010508060455, -0.9938856363296509, -0.30096444487571716, 0.11595731228590012, 0.3503592610359192, -0.31355413794517517, -0.7068538665771484, 0.42639628052711487, -0.6722027063369751, 0.02677556872367859, 0.405498206615448, -0.7421444058418274, -0.05269717797636986, 0.1946583390235901, 1.0562152862548828, -0.11738664656877518, -0.15467853844165802, 0.04112418740987778, 0.3239939212799072, 0.041925013065338135, 0.5770401954650879, -0.2634441554546356, -0.5133854150772095, -0.10652834177017212, 0.2505320608615875, 0.0746423527598381, -0.5060874819755554, 0.6130658984184265, -0.6487320065498352, 0.44777899980545044, -0.07289162278175354, -0.3590598702430725, -0.11397083848714828, 0.15415416657924652, -0.5690447688102722, 0.5710707306861877, 0.2826855182647705, -0.9451969265937805, 0.23000946640968323, -0.9608638286590576, -0.1045389249920845, 0.07003363221883774, 0.30446311831474304, -0.7022899985313416, -0.10857313871383667, -0.22453676164150238, 0.48598185181617737, 0.05981693044304848, 0.006519813556224108, -0.47742748260498047, -0.08137916773557663, -0.2091701626777649, -0.21411462128162384, 1.3076616525650024, 0.32592830061912537, -0.32022225856781006, 0.14905068278312683, -0.6727164387702942, -0.16886666417121887, 0.3233219087123871, -0.19619151949882507, 0.11485809087753296, -0.366943895816803, 0.3291741907596588, 0.19857516884803772, 0.28951504826545715, -0.6064134836196899, 0.023090926930308342, -0.3337183892726898, 0.3679995834827423, 0.7429278492927551, 0.1796332448720932, 0.4465857744216919, -0.25922030210494995, 0.5657576322555542, 0.34713268280029297, 0.2724566161632538, 0.29803502559661865, -0.7372277975082397, -0.6866124868392944, -0.2705356180667877, 0.07698473334312439, 0.26919838786125183, -0.5389618873596191, 0.32680097222328186, 0.17704914510250092, -0.764949381351471, -0.25929030776023865, -0.28140589594841003, 0.03915217146277428, 0.6492437720298767, 0.41041532158851624, -0.32479459047317505, -0.43859049677848816, -0.6290027499198914, 0.14305008947849274, -0.07006265223026276, -0.17271174490451813, 0.09725640714168549, 0.6291631460189819, -0.6781081557273865, 0.7488481998443604, -0.6637287735939026, -0.2538861930370331, 0.06325796246528625, 0.11367084085941315, 0.4475882947444916, 0.7454187273979187, 0.7518864870071411, -0.7006028294563293, -0.5940757393836975, 0.010886362753808498, -0.711415708065033, -0.05944589525461197, 0.19387726485729218, -0.4645538330078125, 0.15912576019763947, 0.18185600638389587, -0.9896264672279358, 0.32361900806427, 0.7897099852561951, -0.8600934743881226, 0.5845797657966614, -0.369056761264801, 0.06648959964513779, -0.9873915910720825, 0.37217646837234497, 0.23969130218029022, -0.3851871192455292, -0.566525399684906, 0.2845163643360138, -0.027310702949762344, -0.09260449558496475, -0.8803237080574036, 0.8754678964614868, -0.2848139703273773, 0.37309175729751587, -0.12513336539268494, 0.12823468446731567, 0.12832994759082794, 0.3838721215724945, 0.09290672093629837, 0.4551949203014374, 0.6302149295806885, -0.6288716793060303, 0.23828557133674622, 0.4536018371582031, -0.2325851023197174, 0.6140305995941162, -0.9338864684104919, -0.06961534172296524, -0.40089043974876404, -0.00795689132064581, -1.0186342000961304, -0.17714038491249084, 0.5785684585571289, -0.29979562759399414, 0.19035392999649048, -0.22882770001888275, -0.4512852430343628, -0.32247889041900635, -0.05189518257975578, 0.13733209669589996, 0.8843309283256531, -0.4492463767528534, 0.47255468368530273, 0.352243036031723, 0.13931457698345184, -0.29341644048690796, -0.758137047290802, -0.39722704887390137, -0.5892882943153381, -0.8833942413330078, 0.671032726764679, -0.46909043192863464, -0.2568190097808838, -0.1407792568206787, 0.19795553386211395, -0.2256144881248474, 0.049051690846681595, 0.23271365463733673, 0.249629408121109, 0.2140972912311554, -0.4348889887332916, 0.17760023474693298, -0.2184980809688568, -0.00678196270018816, -0.06321849673986435, 0.45321348309516907, -0.05521664768457413, -0.0515909306704998, -0.72159743309021, 0.17907550930976868, 0.8584016561508179, 0.051953740417957306, 0.9691195487976074, 0.9514588713645935, -0.2908949553966522, 0.05592428147792816, -0.18570297956466675, -0.3641178607940674, -0.5308785438537598, 0.2106727808713913, 0.002413011621683836, -0.6413586735725403, 0.6249634623527527, 0.12310831248760223, 0.4616791307926178, 0.7152947783470154, 0.7335508465766907, -0.28631654381752014, 1.0956873893737793, 0.6403244733810425, 0.43893954157829285, 0.7267494797706604, -0.7971842885017395, -0.15105584263801575, -0.8958513140678406, -0.3360884189605713, -0.36969420313835144, -0.32680800557136536, -0.2362523227930069, -0.45386576652526855, 0.47274333238601685, 0.3922690153121948, -0.8439613580703735, 0.247761532664299, -0.49520203471183777, 0.42259761691093445, 0.16610924899578094, 0.24133306741714478, 0.27693843841552734, 0.04719903692603111, -0.16584911942481995, -0.12654265761375427, -0.6044662594795227, -0.275118350982666, 0.6518725156784058, 0.5165809988975525, 0.6993281841278076, 0.3687083423137665, 0.5646201372146606, 0.21229718625545502, 0.37543439865112305, -0.20625239610671997, 0.42356541752815247, -0.06531623005867004, -0.8599141240119934, -0.04472356662154198, -0.44646474719047546, -0.8459045886993408, 0.36607059836387634, -0.23051515221595764, -0.4095659554004669, 0.24586491286754608, 0.2694106101989746, -0.2716301679611206, 0.25859057903289795, -0.7938310503959656, 1.0405789613723755, 0.03225492686033249, -0.6268123984336853, -0.0924668237566948, -0.6214709877967834, 0.46801286935806274, 0.3228272497653961, -0.06682638078927994, -0.16794876754283905, 0.04670491814613342, 0.7978036403656006, -0.4630895256996155, 0.8965114951133728, -0.5440746545791626, -0.02194899134337902, 0.09206895530223846, -0.005457028280943632, 0.4893569350242615, 0.1314144879579544, -0.22655120491981506, 0.4067295789718628, -0.0015297278296202421, -0.5085550546646118, -0.2944542169570923, 0.660668134689331, -0.8693939447402954, -0.36651480197906494, -0.4061781167984009, -0.273459792137146, 0.12814494967460632, 0.4135082960128784, 0.5731269717216492, -0.05112870782613754, -0.1709543615579605, -0.14052937924861908, 0.550722599029541, -0.018317999318242073, 0.5651917457580566, 0.4037275016307831, -0.37470385432243347, -0.584401547908783, 0.6268249750137329, -0.0843430608510971, 0.5961230993270874, -0.14601609110832214, 0.40695860981941223, -0.5177059769630432, -0.6045539379119873, -0.6061270833015442, 0.6790249347686768, -0.629706859588623, -0.17104950547218323, -0.6581472754478455, -0.06941433250904083, -0.19624635577201843, -0.29621273279190063, -0.4083012044429779, -0.4483903646469116, -0.8759318590164185, -0.021584291011095047, 0.6817599534988403, 0.5295670628547668, -0.14658990502357483, 0.5156200528144836, -0.5066562294960022, 0.2570096254348755, 0.148727148771286, 0.49787455797195435, 0.12733669579029083, -0.6027269959449768, -0.36009714007377625, 0.2344944030046463, -0.5595310926437378, -0.6549537181854248, 0.6278650164604187, -0.09561748057603836, 0.35145315527915955, 0.5246371030807495, -0.010828441008925438, 0.8350485563278198, -0.5609586238861084, 0.9975916743278503, 0.5812655687332153, -0.6432623267173767, 0.3815942406654358, -0.619238018989563, 0.4677038788795471, 0.4193500876426697, 0.5498235821723938, -0.3890574872493744, -0.5462988018989563, -0.9045674800872803, -0.7184599041938782, 0.46437618136405945, 0.2876468300819397, 0.07792606949806213, -0.009102573618292809, 0.3981962502002716, -0.05617929622530937, 0.21694684028625488, -0.905934751033783, -0.44791117310523987, -0.3984471261501312, 0.1371249258518219, 0.1354939043521881, 0.0638592317700386, -0.2918230891227722, -0.2675653398036957, 0.8740155100822449, 0.08316262066364288, 0.5865623950958252, 0.20033805072307587, 0.3295069634914398, -0.43582040071487427, -0.2633696496486664, 0.5704131126403809, 0.633325457572937, -0.5070107579231262, -0.2795652747154236, -0.2272254377603531, -0.4247523248195648, -0.14583347737789154, 0.05833660438656807, -0.1755581498146057, 0.1138790026307106, -0.06374453008174896, 0.5656973719596863, -0.22063064575195312, -0.4289846122264862, 0.4956360161304474, -0.19410888850688934, -0.32264479994773865, -0.2584598958492279, 0.16816087067127228, 0.28403520584106445, 0.5638623237609863, -0.003634057706221938, 0.47750645875930786, 0.060602303594350815, -0.18609333038330078, 0.06324663013219833, 0.6979666352272034, -0.36154624819755554, -0.36810365319252014, 1.341584324836731, 0.22675131261348724, -0.2576253414154053, 0.5392623543739319, -0.07123968750238419, -0.2562641501426697, 0.47241637110710144, 0.6737380027770996, 0.9380187392234802, -0.13488398492336273, 0.3686493933200836, 0.4170045554637909, -0.04422612488269806, -0.24961934983730316, 0.36928364634513855, 0.14812219142913818, -0.6626493334770203, -0.12691742181777954, -0.557931125164032, -0.391322523355484, -0.3246559798717499, -0.47900471091270447, 0.5333722829818726, -0.641894519329071, -0.3162040114402771, -0.3468288481235504, -0.032645612955093384, -0.5976867079734802, 0.20153413712978363, -0.15228496491909027, 0.999037504196167, -0.8734418749809265, 0.6799237132072449, 0.3386642336845398, -0.48962265253067017, -0.26442256569862366, -0.09694914519786835, -0.18243373930454254, -0.5740858316421509, 0.46214601397514343, -0.11771273612976074, -0.0783676728606224, 0.1144978478550911, -0.5306603312492371, -0.7803522944450378, 1.266951084136963, 0.5347914099693298, -0.37101873755455017, -0.11822859942913055, -0.2968810200691223, 0.5514134168624878, -0.1368541270494461, 0.45730531215667725, 0.37777742743492126, 0.5450308918952942, 0.4455512762069702, -0.5156192779541016, -0.14759938418865204, -0.11173807084560394, -0.030172158032655716, 0.1046009510755539, -0.9573653340339661, 1.088718056678772, -0.2683260440826416, -0.339430570602417, 0.37030401825904846, 0.7011213898658752, 0.5089713931083679, 0.13888514041900635, 0.3108981251716614, 0.9066188931465149, 0.7329877018928528, -0.10014806687831879, 1.2025927305221558, -0.06655559688806534, 0.7043253183364868, 0.5617018938064575, -0.05772964283823967, 0.6751449704170227, 0.4328573942184448, -0.269648939371109, 0.7468590140342712, 0.540363073348999, 0.051184095442295074, 0.8033991456031799, -0.05435793101787567, -0.24790844321250916, 0.05436136946082115, 0.10620216280221939, -0.6761276125907898, -0.19803006947040558, 0.03017827868461609, -0.4085078835487366, -0.18533127009868622, -0.04313350468873978, 0.16821792721748352, -0.31023940443992615, -0.2017131894826889, 0.38608965277671814, -0.10388857126235962, -0.1609046310186386, 0.9157095551490784, 0.03460821509361267, 0.8611079454421997, -0.7445512413978577, -0.12697352468967438, -0.23509424924850464, 0.1764134168624878, -0.3762349486351013, -0.7161439061164856, 0.5198720693588257, -0.12941822409629822, -0.24495309591293335, -0.4254954159259796, 0.06835079938173294, -0.39848580956459045, -0.5819371938705444, 0.2828400731086731, 0.1527431309223175, 0.31865382194519043, 0.22907283902168274, -0.9398446083068848, 0.3379679024219513, 0.15397951006889343, -0.16675467789173126, 0.1776609867811203, 0.15503768622875214, 0.5543519854545593, 0.5313255190849304, 0.4383421838283539, 0.1380702555179596, 0.07825169712305069, -0.13362178206443787, 0.7309980988502502, -0.6328293085098267, -0.5853523015975952, -0.7702087759971619, 1.084572672843933, -0.10812916606664658, -0.5069901347160339, 0.9188518524169922, 0.5261929035186768, 0.8129790425300598, -0.3156988322734833, 0.5726585984230042, -0.1062048003077507, 0.5424776077270508, -0.49140873551368713, 1.0444047451019287, -0.8860530853271484, 0.18682092428207397, -0.6236109137535095, -0.935182511806488, -0.4520168602466583, 0.9476332664489746, -0.030490810051560402, 0.2615906298160553, 0.42524197697639465, 0.8183552026748657, -0.22129102051258087, 0.03298868238925934, 0.23830921947956085, 0.2684376835823059, 0.4699263870716095, 0.32863256335258484, 0.49474337697029114, -0.6247618794441223, 0.187143474817276, -0.3230555057525635, -0.20084944367408752, -0.14175237715244293, -0.9256616830825806, -0.8648460507392883, -0.5153725743293762, -0.5905472636222839, -0.6932627558708191, -0.14453452825546265, 0.4527842700481415, 1.0143641233444214, -0.5066094398498535, -0.2507491707801819, -0.39724066853523254, 0.2425057590007782, -0.11857299506664276, -0.29368534684181213, 0.2153124213218689, 0.3646335303783417, -1.056527018547058, 0.16219104826450348, -0.009808015078306198, 0.7076765894889832, -0.507562518119812, -0.3108524978160858, -0.2563438415527344, -0.41482606530189514, 0.3941822648048401, 0.28341948986053467, -0.5055708885192871, -0.11657258123159409, -0.2884758412837982, 0.21917393803596497, 0.17342767119407654, 0.3425103724002838, -0.7620014548301697, 0.3829543888568878, 0.5104525089263916, 0.21092335879802704, 0.8955767750740051, -0.0408182255923748, 0.3663441836833954, -0.510920524597168, 0.11254410445690155, 0.32379764318466187, 0.39212891459465027, 0.16366352140903473, -0.42318278551101685, 0.46928346157073975, 0.4436613619327545, -0.7299897074699402, -0.7033873796463013, 0.21103188395500183, -1.1656676530838013, -0.31428053975105286, 0.9924246072769165, 0.0001270127104362473, -0.2212347835302353, -0.06808112561702728, -0.23616474866867065, 0.07698550820350647, -0.4464445412158966, 0.5865762829780579, 0.29650482535362244, -0.340133935213089, -0.4103239178657532, -0.3636263906955719, 0.4513777792453766, 0.21519407629966736, -0.5546229481697083, 0.1648961901664734, 0.6334964632987976, 0.5369500517845154, 0.41991621255874634, 0.5567438006401062, -0.32282236218452454, 0.23935003578662872, -0.14323149621486664, 0.060644831508398056, -0.00021404989820439368, -0.2176446169614792, -0.5597097873687744, 0.2664148211479187, -0.218445286154747, -0.15031051635742188 ]
suno/bark
suno
"2023-10-04T14:17:55Z"
42,985
587
transformers
[ "transformers", "pytorch", "bark", "text-to-audio", "audio", "text-to-speech", "en", "de", "es", "fr", "hi", "it", "ja", "ko", "pl", "pt", "ru", "tr", "zh", "license:mit", "endpoints_compatible", "has_space", "region:us" ]
text-to-speech
"2023-04-25T14:44:46Z"
--- language: - en - de - es - fr - hi - it - ja - ko - pl - pt - ru - tr - zh thumbnail: >- https://user-images.githubusercontent.com/5068315/230698495-cbb1ced9-c911-4c9a-941d-a1a4a1286ac6.png library: bark license: mit tags: - bark - audio - text-to-speech pipeline_tag: text-to-speech inference: true --- # Bark Bark is a transformer-based text-to-audio model created by [Suno](https://www.suno.ai). Bark can generate highly realistic, multilingual speech as well as other audio - including music, background noise and simple sound effects. The model can also produce nonverbal communications like laughing, sighing and crying. To support the research community, we are providing access to pretrained model checkpoints ready for inference. The original github repo and model card can be found [here](https://github.com/suno-ai/bark). This model is meant for research purposes only. The model output is not censored and the authors do not endorse the opinions in the generated content. Use at your own risk. Two checkpoints are released: - [small](https://huggingface.co/suno/bark-small) - [**large** (this checkpoint)](https://huggingface.co/suno/bark) ## Example Try out Bark yourself! * Bark Colab: <a target="_blank" href="https://colab.research.google.com/drive/1eJfA2XUa-mXwdMy7DoYKVYHI1iTd9Vkt?usp=sharing"> <img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/> </a> * Hugging Face Colab: <a target="_blank" href="https://colab.research.google.com/drive/1dWWkZzvu7L9Bunq9zvD-W02RFUXoW-Pd?usp=sharing"> <img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/> </a> * Hugging Face Demo: <a target="_blank" href="https://huggingface.co/spaces/suno/bark"> <img src="https://huggingface.co/datasets/huggingface/badges/raw/main/open-in-hf-spaces-sm.svg" alt="Open in HuggingFace"/> </a> ## 🤗 Transformers Usage You can run Bark locally with the 🤗 Transformers library from version 4.31.0 onwards. 1. First install the 🤗 [Transformers library](https://github.com/huggingface/transformers) and scipy: ``` pip install --upgrade pip pip install --upgrade transformers scipy ``` 2. Run inference via the `Text-to-Speech` (TTS) pipeline. You can infer the bark model via the TTS pipeline in just a few lines of code! ```python from transformers import pipeline import scipy synthesiser = pipeline("text-to-speech", "suno/bark") speech = synthesiser("Hello, my dog is cooler than you!", forward_params={"do_sample": True}) scipy.io.wavfile.write("bark_out.wav", rate=speech["sampling_rate"], data=speech["audio"]) ``` 3. Run inference via the Transformers modelling code. You can use the processor + generate code to convert text into a mono 24 kHz speech waveform for more fine-grained control. ```python from transformers import AutoProcessor, AutoModel processor = AutoProcessor.from_pretrained("suno/bark") model = AutoModel.from_pretrained("suno/bark") inputs = processor( text=["Hello, my name is Suno. And, uh — and I like pizza. [laughs] But I also have other interests such as playing tic tac toe."], return_tensors="pt", ) speech_values = model.generate(**inputs, do_sample=True) ``` 4. Listen to the speech samples either in an ipynb notebook: ```python from IPython.display import Audio sampling_rate = model.generation_config.sample_rate Audio(speech_values.cpu().numpy().squeeze(), rate=sampling_rate) ``` Or save them as a `.wav` file using a third-party library, e.g. `scipy`: ```python import scipy sampling_rate = model.config.sample_rate scipy.io.wavfile.write("bark_out.wav", rate=sampling_rate, data=speech_values.cpu().numpy().squeeze()) ``` For more details on using the Bark model for inference using the 🤗 Transformers library, refer to the [Bark docs](https://huggingface.co/docs/transformers/model_doc/bark). ## Suno Usage You can also run Bark locally through the original [Bark library]((https://github.com/suno-ai/bark): 1. First install the [`bark` library](https://github.com/suno-ai/bark) 2. Run the following Python code: ```python from bark import SAMPLE_RATE, generate_audio, preload_models from IPython.display import Audio # download and load all models preload_models() # generate audio from text text_prompt = """ Hello, my name is Suno. And, uh — and I like pizza. [laughs] But I also have other interests such as playing tic tac toe. """ speech_array = generate_audio(text_prompt) # play text in notebook Audio(speech_array, rate=SAMPLE_RATE) ``` [pizza.webm](https://user-images.githubusercontent.com/5068315/230490503-417e688d-5115-4eee-9550-b46a2b465ee3.webm) To save `audio_array` as a WAV file: ```python from scipy.io.wavfile import write as write_wav write_wav("/path/to/audio.wav", SAMPLE_RATE, audio_array) ``` ## Model Details The following is additional information about the models released here. Bark is a series of three transformer models that turn text into audio. ### Text to semantic tokens - Input: text, tokenized with [BERT tokenizer from Hugging Face](https://huggingface.co/docs/transformers/model_doc/bert#transformers.BertTokenizer) - Output: semantic tokens that encode the audio to be generated ### Semantic to coarse tokens - Input: semantic tokens - Output: tokens from the first two codebooks of the [EnCodec Codec](https://github.com/facebookresearch/encodec) from facebook ### Coarse to fine tokens - Input: the first two codebooks from EnCodec - Output: 8 codebooks from EnCodec ### Architecture | Model | Parameters | Attention | Output Vocab size | |:-------------------------:|:----------:|------------|:-----------------:| | Text to semantic tokens | 80/300 M | Causal | 10,000 | | Semantic to coarse tokens | 80/300 M | Causal | 2x 1,024 | | Coarse to fine tokens | 80/300 M | Non-causal | 6x 1,024 | ### Release date April 2023 ## Broader Implications We anticipate that this model's text to audio capabilities can be used to improve accessbility tools in a variety of languages. While we hope that this release will enable users to express their creativity and build applications that are a force for good, we acknowledge that any text to audio model has the potential for dual use. While it is not straightforward to voice clone known people with Bark, it can still be used for nefarious purposes. To further reduce the chances of unintended use of Bark, we also release a simple classifier to detect Bark-generated audio with high accuracy (see notebooks section of the main repository).
[ -0.2875171899795532, -0.70135098695755, 0.1923363208770752, 0.5025266408920288, -0.14911478757858276, -0.03601895272731781, -0.3084128201007843, -0.8378608822822571, 0.21494333446025848, 0.195258229970932, -0.6447314023971558, -0.7300108075141907, -0.3729741871356964, -0.04786352440714836, -0.25475016236305237, 1.2358649969100952, 0.5611100792884827, 0.01026911661028862, -0.02770133689045906, -0.006566738709807396, -0.282770574092865, -0.4655545949935913, -0.8064901828765869, -0.6817178726196289, 0.280626505613327, 0.020011771470308304, 0.42451587319374084, 0.35100024938583374, -0.016568347811698914, 0.27125513553619385, -0.3489183783531189, -0.2844817042350769, -0.04053628072142601, -0.23836471140384674, 0.18774433434009552, -0.6766484975814819, -0.662747323513031, 0.2679315209388733, 0.3707760274410248, 0.2236831784248352, -0.3932017385959625, 0.23711784183979034, -0.1302381455898285, 0.2253483682870865, -0.09420658648014069, 0.37633100152015686, -0.6310825347900391, -0.13696709275245667, 0.06405564397573471, -0.03377288579940796, -0.5149129033088684, -0.4547203481197357, 0.07657929509878159, -0.7501499056816101, 0.21396136283874512, -0.01876591145992279, 1.171507716178894, 0.27793264389038086, -0.1900618076324463, -0.4783860146999359, -0.6123054027557373, 0.8408660888671875, -1.114923119544983, 0.14105816185474396, 0.8104805946350098, 0.19181180000305176, -0.1736445277929306, -0.8813154697418213, -0.5223235487937927, -0.3408282995223999, -0.06386149674654007, 0.33151957392692566, -0.5296553373336792, -0.022422952577471733, 0.15319299697875977, 0.346005380153656, -0.27068400382995605, -0.061211761087179184, -0.25658491253852844, -0.19191989302635193, 0.6230874061584473, 0.005860060919076204, 0.5766300559043884, -0.3757111728191376, -0.07245808094739914, -0.5966269373893738, -0.13342337310314178, 0.5365812182426453, 0.26528462767601013, 0.298252671957016, -0.4882828891277313, 0.5770182013511658, 0.2548811137676239, 0.48397475481033325, 0.3010440468788147, -0.5257980227470398, 0.49267828464508057, -0.2830798327922821, -0.1742205023765564, 0.4628151059150696, 1.1210596561431885, 0.1973028928041458, -0.11786053329706192, -0.019122935831546783, 0.03495944291353226, 0.12384100258350372, 0.01739267073571682, -0.7095654010772705, -0.26413998007774353, 0.5575352907180786, -0.3776865601539612, -0.4409520924091339, -0.26764339208602905, -0.5778022408485413, 0.02077372744679451, -0.022049173712730408, 0.45468777418136597, -0.9828231334686279, -0.410038560628891, 0.2260614037513733, -0.5417757034301758, 0.32323646545410156, 0.05509352684020996, -1.0072154998779297, 0.32984545826911926, 0.46896985173225403, 0.7032114267349243, 0.2817509174346924, -0.38785141706466675, -0.27469465136528015, 0.202919602394104, -0.3440893590450287, 0.574417233467102, -0.39905866980552673, -0.38258183002471924, -0.48254191875457764, 0.09147302806377411, 0.0020183126907795668, -0.66422039270401, 0.7762002348899841, -0.05180082842707634, 0.3731222152709961, 0.13978013396263123, -0.30101895332336426, -0.4040488004684448, -0.056540753692388535, -0.4547524154186249, 1.5088543891906738, 0.10205371677875519, -0.9400220513343811, 0.11313743889331818, -0.7287381887435913, -0.6097011566162109, -0.3238620460033417, 0.1397252231836319, -0.5815478563308716, 0.043527137488126755, 0.38749581575393677, 0.25637102127075195, -0.4331550896167755, 0.4321327209472656, -0.18210449814796448, -0.2123573124408722, 0.5316596031188965, -0.1704307645559311, 1.1831005811691284, 0.1864318996667862, -0.5718716382980347, 0.2631065249443054, -0.8971507549285889, 0.16151903569698334, 0.386370450258255, -0.45769327878952026, -0.33799540996551514, 0.09391254186630249, 0.287599116563797, 0.11182870715856552, 0.20652654767036438, -0.6637711524963379, 0.0077161057852208614, -0.5776480436325073, 0.8304789066314697, 0.4840025007724762, -0.19472362101078033, 0.11860402673482895, -0.7405553460121155, 0.31930065155029297, -0.21895122528076172, -0.06997182220220566, -0.2367807775735855, -0.5699629783630371, -0.4360320568084717, -0.6357304453849792, 0.21439939737319946, 0.5371485948562622, -0.09606415033340454, 0.8699877858161926, 0.09608156979084015, -0.9486682415008545, -1.0301660299301147, -0.5382934212684631, 0.20603497326374054, 0.35315659642219543, 0.45361146330833435, -0.0784095972776413, -0.6298258304595947, -0.6490970253944397, -0.07864036411046982, -0.4572939872741699, -0.18986009061336517, 0.6225087642669678, 0.29261356592178345, -0.2944051921367645, 1.1361137628555298, -0.37736064195632935, -0.3393082618713379, -0.2286061942577362, 0.4080427587032318, 0.43270909786224365, 0.670396089553833, 0.5591838955879211, -0.4976195991039276, -0.22114424407482147, -0.019910046830773354, -0.711483895778656, -0.257913202047348, -0.12609495222568512, 0.12792439758777618, 0.09729395061731339, 0.34737733006477356, -0.6573745012283325, 0.20725731551647186, 0.540005087852478, -0.16415829956531525, 0.8016945719718933, -0.1198936328291893, 0.08683677017688751, -1.2139767408370972, 0.16539043188095093, -0.07425130903720856, -0.1875990331172943, -0.5667713284492493, -0.3281268775463104, -0.33267033100128174, -0.27709800004959106, -0.39350512623786926, 0.42060592770576477, -0.29555562138557434, -0.14487037062644958, -0.15088358521461487, 0.07710892707109451, -0.017778877168893814, 0.5893695950508118, 0.114108607172966, 0.5652010440826416, 0.92637038230896, -0.6096981763839722, 0.31470388174057007, 0.4257968068122864, -0.2017454206943512, 0.39498400688171387, -0.8775337338447571, 0.28049272298812866, 0.1763954758644104, 0.4412325322628021, -0.9441625475883484, -0.17029325664043427, 0.3018757402896881, -0.899666428565979, 0.17701099812984467, -0.03599988669157028, -0.5703954100608826, -0.3657757341861725, -0.24076074361801147, 0.4108765721321106, 0.7823280692100525, -0.661398708820343, 0.7134644389152527, 0.5820362567901611, -0.0657588392496109, -0.4230082333087921, -0.7698351740837097, 0.017357977107167244, -0.48730871081352234, -0.633429229259491, 0.4723336100578308, -0.06067851930856705, 0.044870637357234955, 0.20077960193157196, -0.09830034524202347, -0.026026161387562752, -0.12294963747262955, 0.4796249568462372, 0.0798281878232956, -0.21472661197185516, 0.036503180861473083, 0.012020166963338852, -0.06880158185958862, 0.23387715220451355, -0.22947373986244202, 0.7207568287849426, -0.5099089741706848, -0.07317687571048737, -0.7969362735748291, 0.0947309359908104, 0.6831544041633606, -0.3637675940990448, 0.3043905794620514, 0.8403235077857971, -0.34625399112701416, -0.15690460801124573, -0.45729464292526245, -0.2851988673210144, -0.46259236335754395, 0.3758591115474701, -0.4011528491973877, -0.5304728150367737, 0.531425952911377, -0.2029666155576706, -0.05458756536245346, 0.46048375964164734, 0.45190444588661194, -0.1835099756717682, 1.086252212524414, 0.7965502142906189, -0.1302282214164734, 0.5194492340087891, -0.3146967887878418, 0.08115947991609573, -0.9575410485267639, -0.46771734952926636, -0.6623244881629944, 0.009655054658651352, -0.4952690601348877, -0.34568557143211365, 0.3073933720588684, 0.1654772162437439, -0.05416325479745865, 0.5799362063407898, -0.8538177609443665, 0.10923238098621368, 0.7887203693389893, 0.06061076372861862, 0.21093949675559998, 0.06848971545696259, -0.16600166261196136, -0.13383039832115173, -0.7128536105155945, -0.5046650767326355, 0.7545698881149292, 0.5800172686576843, 0.8825307488441467, -0.13294748961925507, 0.7301241159439087, -0.012709169648587704, 0.04275263473391533, -1.0189694166183472, 0.6115829348564148, -0.05846261605620384, -0.7769812941551208, -0.3565361797809601, -0.1561530977487564, -1.0677213668823242, 0.1370943933725357, -0.2305317372083664, -1.0063148736953735, -0.077010877430439, -0.08985847979784012, -0.014096146449446678, 0.3012870252132416, -0.5760525465011597, 0.8142900466918945, -0.220240980386734, -0.05376429855823517, -0.35367918014526367, -0.527496874332428, 0.3642168939113617, 0.021093353629112244, 0.2796051502227783, -0.3873319625854492, 0.30589619278907776, 1.0287871360778809, -0.3159460127353668, 1.1174384355545044, -0.011318132281303406, 0.04459663853049278, 0.6091298460960388, -0.1728193759918213, 0.17045387625694275, -0.13771943747997284, -0.1805768609046936, 0.23684273660182953, 0.502997636795044, -0.13850004971027374, -0.38930001854896545, 0.3179780840873718, -0.8954461216926575, -0.3141346573829651, -0.532347559928894, -0.6156613826751709, -0.04532315582036972, 0.20615336298942566, 0.4648085832595825, 0.3559585511684418, -0.28339433670043945, 0.051322389394044876, 0.07386551052331924, -0.6704961061477661, 0.5461934208869934, 0.5813369750976562, -0.33696702122688293, -0.6429182291030884, 0.8764913082122803, -0.2608030140399933, 0.124562107026577, 0.021870793774724007, 0.6471436023712158, -0.41817423701286316, -0.20136012136936188, -0.26189860701560974, 0.5850035548210144, -0.456039160490036, 0.004674834199249744, -0.5514644980430603, -0.3003283143043518, -0.5469728708267212, -0.00933858286589384, -0.6122439503669739, -0.28500494360923767, -0.34372222423553467, 0.12292663007974625, 0.6884944438934326, 0.6683707237243652, -0.3935065269470215, 0.3471844494342804, -0.6516144871711731, 0.4325604736804962, 0.15878234803676605, 0.15184465050697327, 0.04778324067592621, -0.6334100365638733, -0.09993637353181839, 0.13850723206996918, -0.20484338700771332, -0.8980770111083984, 0.5637005567550659, 0.15179944038391113, 0.6010353565216064, 0.04102318361401558, 0.25876978039741516, 0.6904780864715576, -0.45456835627555847, 0.7758171558380127, 0.5218695402145386, -1.1271854639053345, 0.9112929701805115, -0.3110431730747223, 0.2087785303592682, 0.24042345583438873, 0.28925853967666626, -0.60695481300354, -0.7650542259216309, -0.8341149091720581, -0.8773038983345032, 1.2618902921676636, 0.28907206654548645, 0.06555593758821487, 0.016782250255346298, -0.04576320946216583, 0.01486535370349884, 0.041188906878232956, -1.0443583726882935, -0.44002223014831543, -0.5237287282943726, -0.18023432791233063, -0.027233276516199112, 0.026456361636519432, -0.2201114147901535, -0.5963805913925171, 1.001080870628357, 0.014686128124594688, 0.5015255212783813, 0.34762945771217346, 0.1958138644695282, -0.029712317511439323, 0.3612789213657379, 0.3380824327468872, 0.03287886083126068, -0.5976811647415161, 0.09006006270647049, 0.17052863538265228, -0.5937933325767517, 0.32033786177635193, 0.08870699256658554, -0.06525462120771408, 0.22190427780151367, 0.21833616495132446, 1.0673307180404663, 0.22329838573932648, -0.7070899605751038, 0.39569878578186035, -0.17539523541927338, -0.227073535323143, -0.4732685685157776, -0.01086348108947277, 0.46610787510871887, 0.2534303367137909, 0.3192945420742035, -0.049201600253582, -0.08825555443763733, -0.7195311784744263, 0.323154091835022, 0.4023051857948303, -0.36232098937034607, -0.3873186409473419, 0.977276623249054, -0.1706298440694809, -0.679675817489624, 0.4594765603542328, -0.055814702063798904, -0.38060566782951355, 0.845758318901062, 1.177129864692688, 1.025177001953125, -0.15937647223472595, 0.25461921095848083, 0.7040435671806335, 0.2515466511249542, 0.04090118035674095, -0.02204696647822857, -0.24669189751148224, -0.5257132053375244, -0.24210257828235626, -0.7634744644165039, -0.384096622467041, 0.42873525619506836, -0.7815207242965698, 0.3350665867328644, -0.3946273922920227, -0.4552983045578003, 0.2430945634841919, -0.19732244312763214, -0.08001624047756195, 0.2481093853712082, 0.06523626297712326, 0.7157492637634277, -0.8034749627113342, 1.1823481321334839, 0.602553129196167, -0.5472469925880432, -1.1541348695755005, 0.14057855308055878, -0.22167371213436127, -0.6767896413803101, 0.481076717376709, 0.32007232308387756, -0.42290961742401123, 0.10579609125852585, -0.7079135179519653, -0.6453717350959778, 0.9877833127975464, 0.38220396637916565, -0.14723682403564453, -0.014599925838410854, 0.02526496909558773, 0.6593010425567627, -0.268614798784256, 0.3955485224723816, 0.7040666937828064, 0.4608701467514038, 0.26352953910827637, -1.158362865447998, 0.09524966776371002, -0.37645038962364197, -0.3536239266395569, -0.2840709388256073, -0.5624421238899231, 0.7442548274993896, -0.32785671949386597, -0.30815601348876953, 0.038960181176662445, 0.5576667189598083, 0.5468065738677979, 0.5393101572990417, 0.589326798915863, 0.5984824895858765, 0.8098369836807251, -0.10574076324701309, 0.8101643919944763, -0.3168700635433197, 0.34812676906585693, 1.1328502893447876, 0.1464497596025467, 0.890579342842102, 0.2853757441043854, -0.46487173438072205, 0.49568331241607666, 0.6999386548995972, -0.19994236528873444, 0.5007521510124207, 0.16132251918315887, -0.26786333322525024, 0.043617963790893555, -0.2950648069381714, -0.4836876392364502, 0.6049999594688416, 0.2614532709121704, -0.03664375841617584, -0.05056533217430115, 0.15723679959774017, -0.04017334803938866, -0.070625439286232, 0.056106552481651306, 0.8204517364501953, 0.20249095559120178, -0.5780130624771118, 1.0565706491470337, 0.15570680797100067, 0.923516035079956, -0.7253590822219849, 0.10081789642572403, 0.1891757845878601, 0.0623943917453289, -0.3405027389526367, -0.6819126605987549, 0.35212403535842896, 0.0017904005944728851, -0.07620185613632202, -0.04357258602976799, 0.39123183488845825, -0.5128368139266968, -0.31819963455200195, 0.7837188243865967, 0.051157690584659576, 0.5784390568733215, -0.04861975833773613, -0.9247775673866272, 0.0942833423614502, 0.076383076608181, -0.10486003011465073, 0.13319484889507294, 0.3527878522872925, 0.1871625781059265, 0.6048092246055603, 0.7036242485046387, 0.1157192587852478, 0.2253846973180771, 0.09978793561458588, 0.6591798067092896, -0.8065715432167053, -0.615062415599823, -0.6626365780830383, 0.5009058713912964, 0.2115887999534607, -0.18117482960224152, 0.6476636528968811, 0.7487945556640625, 0.5610316395759583, -0.13357847929000854, 0.7884683012962341, -0.36063721776008606, 0.42018550634384155, -0.41459786891937256, 0.7495721578598022, -0.7269209027290344, 0.17730407416820526, -0.49406325817108154, -0.600719153881073, -0.03679916635155678, 0.7639929056167603, -0.1367686539888382, -0.09760314226150513, 0.6752564907073975, 0.9684697389602661, -0.07161074876785278, 0.12112606316804886, 0.14863762259483337, 0.2746936082839966, 0.396560937166214, 0.6189510822296143, 0.8491430878639221, -0.6277946829795837, 0.8472800254821777, -0.5407780408859253, -0.23090451955795288, 0.005383548326790333, -0.6918702125549316, -0.9612352252006531, -0.8583999276161194, -0.3434237837791443, -0.595557451248169, -0.32448047399520874, 0.7951222658157349, 0.9327895641326904, -0.6681767702102661, -0.6029167771339417, -0.0637596920132637, -0.004762549884617329, -0.4860447645187378, -0.275795578956604, 0.5094466805458069, -0.21266435086727142, -0.8925507664680481, 0.5943397879600525, 0.04265601560473442, 0.32529211044311523, 0.2868698835372925, -0.22582319378852844, -0.28938350081443787, 0.24285705387592316, 0.3917728662490845, 0.4479677081108093, -1.0079467296600342, -0.061753049492836, -0.06065593659877777, -0.2570635974407196, 0.5328196287155151, 0.431739866733551, -0.7105531096458435, 0.3733227849006653, 0.26848921179771423, 0.32981836795806885, 1.1929641962051392, 0.003914170432835817, 0.279514342546463, -0.5656786561012268, 0.3966899514198303, 0.27360299229621887, 0.09364862740039825, 0.3524567484855652, -0.17090366780757904, 0.34363889694213867, 0.21735993027687073, -0.44548967480659485, -0.9177234768867493, -0.0712178573012352, -1.41942298412323, -0.5401464700698853, 1.0399149656295776, 0.07446325570344925, -0.5410085916519165, 0.12402070313692093, -0.6684126257896423, 0.6983006596565247, -0.556751012802124, 0.6175372004508972, 0.5693010687828064, -0.3601854741573334, -0.03484557941555977, -0.4787199795246124, 0.5678074359893799, 0.5281190872192383, -0.7815268635749817, 0.1143585592508316, 0.249511256814003, 0.559072732925415, 0.32388758659362793, 0.9073449373245239, -0.23307813704013824, 0.21456658840179443, 0.38688716292381287, 0.5849989652633667, -0.06872552633285522, -0.05809935927391052, -0.4991408586502075, -0.03443344682455063, 0.07364217191934586, -0.4511649012565613 ]
microsoft/deberta-v3-small
microsoft
"2022-09-26T08:59:13Z"
42,977
38
transformers
[ "transformers", "pytorch", "tf", "deberta-v2", "deberta", "deberta-v3", "fill-mask", "en", "arxiv:2006.03654", "arxiv:2111.09543", "license:mit", "endpoints_compatible", "has_space", "region:us" ]
fill-mask
"2022-03-02T23:29:05Z"
--- language: en tags: - deberta - deberta-v3 - fill-mask thumbnail: https://huggingface.co/front/thumbnails/microsoft.png license: mit --- ## DeBERTaV3: Improving DeBERTa using ELECTRA-Style Pre-Training with Gradient-Disentangled Embedding Sharing [DeBERTa](https://arxiv.org/abs/2006.03654) improves the BERT and RoBERTa models using disentangled attention and enhanced mask decoder. With those two improvements, DeBERTa out perform RoBERTa on a majority of NLU tasks with 80GB training data. In [DeBERTa V3](https://arxiv.org/abs/2111.09543), we further improved the efficiency of DeBERTa using ELECTRA-Style pre-training with Gradient Disentangled Embedding Sharing. Compared to DeBERTa, our V3 version significantly improves the model performance on downstream tasks. You can find more technique details about the new model from our [paper](https://arxiv.org/abs/2111.09543). Please check the [official repository](https://github.com/microsoft/DeBERTa) for more implementation details and updates. The DeBERTa V3 small model comes with 6 layers and a hidden size of 768. It has **44M** backbone parameters with a vocabulary containing 128K tokens which introduces 98M parameters in the Embedding layer. This model was trained using the 160GB data as DeBERTa V2. #### Fine-tuning on NLU tasks We present the dev results on SQuAD 2.0 and MNLI tasks. | Model |Vocabulary(K)|Backbone #Params(M)| SQuAD 2.0(F1/EM) | MNLI-m/mm(ACC)| |-------------------|----------|-------------------|-----------|----------| | RoBERTa-base |50 |86 | 83.7/80.5 | 87.6/- | | XLNet-base |32 |92 | -/80.2 | 86.8/- | | ELECTRA-base |30 |86 | -/80.5 | 88.8/ | | DeBERTa-base |50 |100 | 86.2/83.1| 88.8/88.5| | DeBERTa-v3-large|128|304 | 91.5/89.0 | 91.8/91.9 | | DeBERTa-v3-base |128|86 | 88.4/85.4 | 90.6/90.7| | **DeBERTa-v3-small** |128|**44** | **82.8/80.4** | **88.3/87.7**| | DeBERTa-v3-small+SiFT|128|22 | -/- | 88.8/88.5| #### Fine-tuning with HF transformers ```bash #!/bin/bash cd transformers/examples/pytorch/text-classification/ pip install datasets export TASK_NAME=mnli output_dir="ds_results" num_gpus=8 batch_size=8 python -m torch.distributed.launch --nproc_per_node=${num_gpus} \ run_glue.py \ --model_name_or_path microsoft/deberta-v3-small \ --task_name $TASK_NAME \ --do_train \ --do_eval \ --evaluation_strategy steps \ --max_seq_length 256 \ --warmup_steps 1500 \ --per_device_train_batch_size ${batch_size} \ --learning_rate 4.5e-5 \ --num_train_epochs 3 \ --output_dir $output_dir \ --overwrite_output_dir \ --logging_steps 1000 \ --logging_dir $output_dir ``` ### Citation If you find DeBERTa useful for your work, please cite the following papers: ``` latex @misc{he2021debertav3, title={DeBERTaV3: Improving DeBERTa using ELECTRA-Style Pre-Training with Gradient-Disentangled Embedding Sharing}, author={Pengcheng He and Jianfeng Gao and Weizhu Chen}, year={2021}, eprint={2111.09543}, archivePrefix={arXiv}, primaryClass={cs.CL} } ``` ``` latex @inproceedings{ he2021deberta, title={DEBERTA: DECODING-ENHANCED BERT WITH DISENTANGLED ATTENTION}, author={Pengcheng He and Xiaodong Liu and Jianfeng Gao and Weizhu Chen}, booktitle={International Conference on Learning Representations}, year={2021}, url={https://openreview.net/forum?id=XPZIaotutsD} } ```
[ -0.43091997504234314, -0.673322319984436, 0.28289446234703064, 0.33532342314720154, -0.2504878640174866, 0.08083170652389526, -0.12431090325117111, -0.47303104400634766, 0.3402707874774933, 0.024467427283525467, -0.38556015491485596, -0.5373842716217041, -0.9483178853988647, -0.09677552431821823, -0.22366401553153992, 0.8407581448554993, -0.1619187891483307, 0.12201955169439316, 0.04127144813537598, -0.22243258357048035, -0.466271311044693, -0.5465502738952637, -0.6806479096412659, -0.5244849324226379, 0.5852171778678894, 0.22409558296203613, 0.5252664089202881, 0.24085132777690887, 0.49440598487854004, 0.3219969868659973, -0.3363972008228302, 0.25326278805732727, -0.4727124571800232, -0.08070668578147888, 0.18684189021587372, -0.38438329100608826, -0.799884021282196, 0.006932443473488092, 0.5531993508338928, 0.31289908289909363, 0.04875839874148369, 0.2591733932495117, 0.31150513887405396, 1.0244054794311523, -0.823773980140686, 0.0956067368388176, -0.6349971890449524, 0.03174189478158951, 0.0396956242620945, -0.06463904678821564, -0.3956111669540405, -0.15525715053081512, 0.3242119550704956, -0.49183347821235657, 0.2663106620311737, -0.3251822292804718, 1.312896490097046, 0.5764114856719971, -0.19287419319152832, -0.09842747449874878, -0.6765156984329224, 1.0374691486358643, -0.7928529381752014, 0.34077855944633484, 0.2732679545879364, 0.11634489893913269, -0.051032084971666336, -0.7278679609298706, -0.6893940567970276, -0.054859794676303864, -0.11970892548561096, 0.2998044192790985, -0.6915248036384583, -0.09576569497585297, 0.35357338190078735, 0.3282196521759033, -0.5430604815483093, 0.27914097905158997, -0.4465288519859314, 0.06815236806869507, 0.6656437516212463, 0.030796535313129425, 0.002840869827196002, -0.03072306141257286, -0.3916418254375458, -0.44257497787475586, -0.7609987854957581, 0.044670186936855316, 0.5516135692596436, -0.09045815467834473, -0.10985834896564484, 0.19606469571590424, -0.09037567675113678, 0.8951983451843262, 0.13404680788516998, 0.3217688202857971, 0.8034921288490295, -0.08177977800369263, -0.34361299872398376, 0.1452958583831787, 0.8010451197624207, 0.24310480058193207, -0.16940324008464813, -0.03199600428342819, -0.04643484950065613, -0.026012051850557327, 0.2155783474445343, -1.0062899589538574, -0.6042109131813049, 0.4599588215351105, -0.4711076617240906, -0.32399311661720276, -0.10583074390888214, -0.8821015954017639, -0.2226511836051941, -0.437919557094574, 0.657870352268219, -0.5725827217102051, -0.2646668255329132, 0.29864874482154846, -0.02263045869767666, 0.3089064359664917, 0.5395675301551819, -1.163245439529419, 0.11049211025238037, 0.35849007964134216, 0.8488454818725586, -0.03483745828270912, -0.32108962535858154, -0.46142154932022095, -0.2709300220012665, -0.02166648954153061, 0.26456478238105774, -0.06485216319561005, 0.17039546370506287, -0.2138754278421402, 0.037718791514635086, -0.25022804737091064, -0.30080369114875793, 0.2902470827102661, -0.6950163245201111, -0.00008929076284402981, -0.18315109610557556, -0.3600865304470062, -0.45339831709861755, 0.24638964235782623, -0.7799819707870483, 1.1191718578338623, 0.13053752481937408, -0.9509313106536865, 0.2778645157814026, -0.6947753429412842, -0.054632335901260376, -0.28958821296691895, 0.08243647962808609, -0.6671925187110901, -0.1778639703989029, 0.5316178202629089, 0.65206378698349, -0.1529184728860855, 0.07922682911157608, -0.20606167614459991, -0.5478761196136475, 0.23741358518600464, -0.4383452236652374, 1.2987077236175537, 0.3204808533191681, -0.8038803339004517, -0.027563633397221565, -0.9237248301506042, 0.025328876450657845, 0.2538489103317261, -0.2101801037788391, -0.2975429892539978, -0.08785926550626755, -0.08445688337087631, 0.18717551231384277, 0.5754430294036865, -0.5087754726409912, 0.2783846855163574, -0.41120901703834534, 0.7246584892272949, 0.7466400265693665, -0.3213735818862915, 0.43728184700012207, -0.28514501452445984, 0.2934388220310211, 0.2769796848297119, 0.2965964674949646, 0.24451853334903717, -0.5135239362716675, -1.1411370038986206, -0.6586197018623352, 0.655161440372467, 0.5549368858337402, -0.5718990564346313, 0.7524237632751465, -0.26655417680740356, -0.8518799543380737, -0.7204620242118835, 0.13741987943649292, 0.31590667366981506, 0.26848602294921875, 0.8001143932342529, -0.037571389228105545, -0.7487184405326843, -0.966840386390686, 0.10711617022752762, 0.04912080615758896, 0.02349235489964485, 0.054166167974472046, 0.7281937599182129, -0.46417295932769775, 0.8019853234291077, -0.6775785684585571, -0.4705778658390045, -0.24158228933811188, 0.185224249958992, 0.5162674784660339, 0.7134217619895935, 0.9267861247062683, -0.610971987247467, -0.6616458296775818, -0.380327969789505, -0.685073971748352, 0.37648022174835205, 0.07172064483165741, -0.2879156172275543, 0.3673272430896759, 0.20344187319278717, -0.4973148703575134, 0.4343341886997223, 0.6763240694999695, -0.1497173309326172, -0.009884650819003582, -0.3989507257938385, 0.057125259190797806, -1.2093476057052612, 0.16522365808486938, -0.0027549187652766705, -0.09110774844884872, -0.591404914855957, -0.1653224378824234, 0.17618699371814728, 0.25975731015205383, -0.4765828549861908, 0.19922147691249847, -0.5972957611083984, 0.22009879350662231, 0.023806096985936165, 0.36238184571266174, 0.1447114646434784, 0.936348021030426, -0.0016986948903650045, 0.6074367165565491, 0.70684814453125, -0.6292154788970947, 0.2398505061864853, 0.480103075504303, -0.38750433921813965, 0.08552397787570953, -1.0395234823226929, 0.3118399977684021, -0.2114032655954361, 0.3396766185760498, -1.02643883228302, 0.1630806028842926, 0.3925893008708954, -0.5484498739242554, 0.48500972986221313, -0.19459301233291626, -0.5836604833602905, -0.3486127257347107, -0.6026962399482727, 0.1964319795370102, 0.8862130641937256, -0.8369835019111633, 0.42312106490135193, 0.3272881805896759, 0.31440868973731995, -0.9544121026992798, -0.8514314293861389, -0.2908014953136444, -0.335010290145874, -0.6339764595031738, 0.8221985697746277, -0.0998791977763176, -0.003569534281268716, -0.033973678946495056, 0.10303893685340881, -0.19179868698120117, 0.2570274770259857, 0.1695183515548706, 0.37966227531433105, 0.10380762070417404, 0.16883611679077148, 0.12401362508535385, 0.049232497811317444, -0.13134227693080902, -0.08552378416061401, 0.7156021595001221, -0.40869924426078796, -0.09632943570613861, -0.4896961450576782, 0.08273126929998398, 0.46680116653442383, -0.42307162284851074, 1.0001085996627808, 1.041451096534729, -0.28644388914108276, -0.13242195546627045, -0.39624109864234924, -0.22504186630249023, -0.49981239438056946, 0.308971107006073, -0.19927406311035156, -0.6483854055404663, 0.6425861120223999, 0.2379569560289383, 0.25364723801612854, 0.7493533492088318, 0.5086140632629395, -0.1944088637828827, 1.0905705690383911, 0.47251445055007935, -0.09525413811206818, 0.7485124468803406, -1.2087374925613403, 0.16271533071994781, -1.252663493156433, -0.2739204168319702, -0.45597440004348755, -0.7036685347557068, -0.5737652778625488, -0.3606303930282593, 0.21144302189350128, 0.5631657242774963, -0.2751540541648865, 0.7052045464515686, -1.0050671100616455, 0.07501231878995895, 0.6451267004013062, 0.5252211689949036, 0.08337236940860748, 0.19031541049480438, 0.188225656747818, -0.07047703117132187, -0.8413118124008179, -0.4748956263065338, 1.2711327075958252, 0.5132814645767212, 0.8145543932914734, 0.3698458969593048, 1.048301339149475, 0.07911407947540283, -0.11851245909929276, -0.5590647459030151, 0.43390634655952454, -0.13945810496807098, -0.47292521595954895, -0.2426721751689911, -0.33425742387771606, -1.3117237091064453, 0.40671268105506897, -0.1936795711517334, -1.0406415462493896, 0.43538546562194824, 0.4294227957725525, -0.46419623494148254, 0.3663454055786133, -0.6247059106826782, 0.7448572516441345, -0.037656623870134354, -0.448539137840271, -0.31213071942329407, -0.5501070618629456, 0.15644611418247223, 0.11824177205562592, -0.3742796778678894, -0.037192050367593765, 0.15145739912986755, 1.042182445526123, -0.3441845774650574, 0.8326422572135925, -0.25844740867614746, -0.2650851607322693, 0.5312090516090393, -0.21660083532333374, 0.801379919052124, 0.24733926355838776, -0.06160631403326988, 0.5394970774650574, 0.02490442618727684, -0.39010488986968994, -0.6472534537315369, 1.005561351776123, -1.1814862489700317, -0.4399629831314087, -0.6250030994415283, -0.3781370520591736, -0.04522740840911865, -0.029154498130083084, 0.5070047974586487, 0.6138412952423096, 0.13318030536174774, 0.494061678647995, 1.0194675922393799, -0.07204902917146683, 0.5996798872947693, 0.497239887714386, 0.11332389712333679, -0.36164942383766174, 0.973429799079895, 0.243352472782135, -0.028492236509919167, 0.5412254929542542, -0.2213675081729889, -0.41705164313316345, -0.7159649729728699, -0.5108627080917358, 0.1597609966993332, -0.7655919790267944, -0.3074531555175781, -1.0169150829315186, -0.20712779462337494, -0.3479716181755066, 0.06432957202196121, -0.49437278509140015, -0.6876823306083679, -0.8596464991569519, 0.049326322972774506, 0.7835478186607361, 0.5905556082725525, -0.06201845407485962, 0.2533998191356659, -0.8753460645675659, 0.020332498475909233, 0.25073614716529846, 0.10631291568279266, 0.22735187411308289, -0.6489132046699524, -0.3947114646434784, 0.2725798785686493, -0.6696796417236328, -0.9332382678985596, 0.4573478698730469, -0.06315892934799194, 0.6962748765945435, -0.11672905832529068, 0.10449811071157455, 0.5681959390640259, -0.40252363681793213, 0.8903441429138184, 0.273875892162323, -1.011939525604248, 0.6518650650978088, -0.13815487921237946, 0.14524812996387482, 0.6142281293869019, 0.5806298851966858, 0.17362096905708313, -0.07010569423437119, -0.8870271444320679, -1.0743063688278198, 0.8478933572769165, 0.5479690432548523, -0.02856781706213951, 0.12371955066919327, 0.08398362994194031, -0.1675577014684677, 0.15086470544338226, -0.6935060620307922, -0.5850361585617065, -0.32141390442848206, -0.29736560583114624, -0.1501893401145935, -0.1871803253889084, -0.14111357927322388, -0.6248107552528381, 0.971680760383606, 0.0767114907503128, 0.6597301959991455, 0.5396162271499634, -0.35054633021354675, 0.2775595784187317, 0.07505661994218826, 0.6750149726867676, 0.7154147624969482, -0.5010877251625061, 0.007093016989529133, 0.405121386051178, -0.5283941030502319, 0.20519018173217773, 0.37756550312042236, -0.1185149997472763, 0.2620842754840851, 0.275042861700058, 1.055653691291809, -0.08841560035943985, -0.3609282970428467, 0.5026732683181763, -0.14905129373073578, -0.4393378496170044, -0.46628251671791077, 0.06020556762814522, -0.16581866145133972, 0.4816405177116394, 0.35797813534736633, 0.1698380708694458, 0.18112613260746002, -0.18808579444885254, 0.005557992495596409, 0.32111668586730957, -0.44114527106285095, -0.37319958209991455, 0.5972855687141418, 0.26718658208847046, 0.048473458737134933, 0.5441712141036987, -0.2267863005399704, -0.5558080077171326, 0.7535316944122314, 0.41348761320114136, 0.9745149612426758, 0.009540014900267124, 0.19196248054504395, 0.7789360880851746, 0.32255858182907104, -0.035005051642656326, 0.4788670837879181, 0.04041100665926933, -0.5620313286781311, -0.23059728741645813, -0.5616657733917236, -0.14670579135417938, 0.4069203734397888, -0.7317819595336914, 0.2978353798389435, -0.25606590509414673, -0.23960159718990326, 0.012655450031161308, 0.24978849291801453, -1.0000680685043335, 0.0015207281103357673, -0.11035118997097015, 0.6936509013175964, -0.614770233631134, 0.9919131398200989, 0.7261906862258911, -0.5762585401535034, -0.8297675251960754, -0.1774962842464447, -0.5075477957725525, -0.5854723453521729, 1.0153467655181885, 0.21391387283802032, -0.1717086136341095, 0.2552403211593628, -0.37856990098953247, -1.0339847803115845, 1.5790634155273438, 0.4302685558795929, -0.8761380314826965, 0.023805556818842888, -0.2694387137889862, 0.6146124601364136, -0.12218380719423294, 0.3364914357662201, 0.44385817646980286, 0.2855163514614105, -0.12485571205615997, -0.7361411452293396, 0.18889813125133514, -0.2460431009531021, 0.10707912594079971, 0.2689403295516968, -0.9128619432449341, 1.2711379528045654, -0.10999689996242523, 0.048845499753952026, 0.02336050383746624, 0.6393508315086365, 0.26930949091911316, 0.06594385951757431, 0.5261856317520142, 0.8310873508453369, 0.8108934760093689, -0.18155226111412048, 0.8366472125053406, -0.3784652650356293, 0.7616377472877502, 1.069949746131897, 0.13230691850185394, 0.8359218835830688, 0.5057448148727417, -0.37414705753326416, 0.7020518183708191, 0.6794182062149048, -0.158927783370018, 0.7751805782318115, 0.3324635326862335, -0.07437275350093842, -0.044952068477869034, 0.3728012442588806, -0.7497570514678955, 0.4883130192756653, 0.14551571011543274, -0.6678171753883362, -0.12550053000450134, 0.041250888258218765, 0.07984577119350433, -0.255508691072464, -0.09040478616952896, 0.5443262457847595, -0.11111483722925186, -0.62702876329422, 1.2500529289245605, -0.14034977555274963, 0.8214459419250488, -0.5306807160377502, -0.23011080920696259, -0.04032337665557861, 0.5348379611968994, -0.25726452469825745, -0.5711190104484558, 0.03863810375332832, -0.020069120451807976, -0.1991703063249588, 0.0066887205466628075, 0.42760202288627625, -0.3603464663028717, -0.3518277108669281, 0.5151179432868958, 0.24306532740592957, 0.12923823297023773, 0.030326923355460167, -0.8755015134811401, 0.3337264358997345, 0.10722837597131729, -0.48302310705184937, 0.321896493434906, 0.15078669786453247, 0.35002607107162476, 0.40248993039131165, 0.4604113698005676, -0.3017360270023346, 0.17760108411312103, -0.10689833015203476, 1.117856502532959, -0.3053513169288635, -0.27513939142227173, -1.0216912031173706, 0.622260570526123, -0.22842881083488464, -0.47286808490753174, 0.9206181168556213, 0.35825857520103455, 0.7825892567634583, -0.20587372779846191, 0.5394718647003174, -0.3134987950325012, 0.10711103677749634, -0.6825504302978516, 0.689022958278656, -0.8199529647827148, 0.2139689028263092, -0.4951522946357727, -1.090299367904663, -0.10613783448934555, 0.8164277672767639, -0.19737926125526428, 0.0494149774312973, 0.5697969198226929, 0.7494975924491882, -0.028997326269745827, -0.23704203963279724, 0.05736612528562546, 0.04207490757107735, 0.4692701995372772, 0.9446054100990295, 0.7220237255096436, -1.0739870071411133, 0.6113847494125366, -0.4921138882637024, -0.21170109510421753, -0.3409639000892639, -0.8359833359718323, -1.1676386594772339, -0.7248191237449646, -0.584191620349884, -0.44638195633888245, -0.051195770502090454, 0.8416110873222351, 0.7541454434394836, -0.7078255414962769, 0.2823474109172821, -0.4216955602169037, -0.024434249848127365, -0.5087147951126099, -0.19232474267482758, 0.6571946144104004, -0.3083655536174774, -1.1821362972259521, 0.3564443588256836, -0.27956584095954895, 0.3057817220687866, -0.37116116285324097, -0.3038196563720703, -0.49257588386535645, -0.06990646570920944, 0.5422835946083069, 0.0028574555180966854, -0.5655909180641174, -0.07904134690761566, -0.016515837982296944, -0.1458846628665924, 0.03370741009712219, 0.30957621335983276, -0.7805506587028503, 0.33789145946502686, 0.7796239852905273, 0.3989546298980713, 0.8793189525604248, -0.42075029015541077, 0.25056004524230957, -0.7239154577255249, 0.4231299161911011, 0.27038484811782837, 0.5296865105628967, 0.2082143872976303, -0.4881150722503662, 0.6825383305549622, -0.11815838515758514, -0.6879928708076477, -0.884391725063324, -0.016813602298498154, -1.1827669143676758, -0.1696392297744751, 1.0023689270019531, -0.5113503932952881, -0.17876441776752472, 0.17747071385383606, -0.2723817229270935, 0.38032612204551697, -0.5144561529159546, 0.7707757353782654, 0.5229172110557556, 0.024530837312340736, 0.08579659461975098, -0.5077886581420898, 0.6357482671737671, 0.6053413152694702, -0.584881067276001, -0.15517136454582214, 0.22360022366046906, 0.20966440439224243, 0.5011046528816223, 0.6097792983055115, -0.02048386074602604, 0.15448467433452606, -0.10086606442928314, 0.05749310180544853, -0.32507601380348206, -0.4871835708618164, -0.452328085899353, -0.16869762539863586, -0.0888022780418396, -0.7309408187866211 ]
timm/hrnet_w18.ms_aug_in1k
timm
"2023-04-24T21:25:48Z"
42,896
1
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "arxiv:1908.07919", "license:mit", "region:us" ]
image-classification
"2023-04-24T21:25:16Z"
--- tags: - image-classification - timm library_name: timm license: mit datasets: - imagenet-1k --- # Model card for hrnet_w18.ms_aug_in1k A HRNet image classification model. Trained on ImageNet-1k by paper authors. ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 21.3 - GMACs: 4.3 - Activations (M): 16.3 - Image size: 224 x 224 - **Papers:** - Deep High-Resolution Representation Learning for Visual Recognition: https://arxiv.org/abs/1908.07919 - **Original:** https://github.com/HRNet/HRNet-Image-Classification - **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('hrnet_w18.ms_aug_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( 'hrnet_w18.ms_aug_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, 64, 112, 112]) # torch.Size([1, 128, 56, 56]) # torch.Size([1, 256, 28, 28]) # torch.Size([1, 512, 14, 14]) # torch.Size([1, 1024, 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( 'hrnet_w18.ms_aug_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, 2048, 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 @article{WangSCJDZLMTWLX19, title={Deep High-Resolution Representation Learning for Visual Recognition}, author={Jingdong Wang and Ke Sun and Tianheng Cheng and Borui Jiang and Chaorui Deng and Yang Zhao and Dong Liu and Yadong Mu and Mingkui Tan and Xinggang Wang and Wenyu Liu and Bin Xiao}, journal = {TPAMI} year={2019} } ```
[ -0.5127078294754028, -0.44023948907852173, -0.007261720485985279, 0.15725231170654297, -0.3515951633453369, -0.40694305300712585, -0.2646750509738922, -0.40505802631378174, 0.23326784372329712, 0.45604872703552246, -0.45950591564178467, -0.7697254419326782, -0.6566982269287109, -0.08172348141670227, -0.02496182546019554, 0.872384786605835, -0.08091957122087479, -0.01757853664457798, -0.1829994022846222, -0.5555280447006226, -0.20905552804470062, -0.35108861327171326, -0.7413190007209778, -0.4340288043022156, 0.40337899327278137, 0.15347254276275635, 0.41405418515205383, 0.7201465964317322, 0.6806175708770752, 0.5208221077919006, -0.08456239104270935, 0.057465292513370514, -0.2554292678833008, -0.2736019194126129, 0.44603079557418823, -0.5397813320159912, -0.5044685006141663, 0.35635706782341003, 0.7088501453399658, 0.39601367712020874, -0.034684859216213226, 0.47477105259895325, 0.19326151907444, 0.5683408975601196, -0.23605933785438538, 0.15960831940174103, -0.43273836374282837, 0.32275450229644775, -0.2075040191411972, 0.030567733570933342, -0.2440531849861145, -0.4078666865825653, 0.22714422643184662, -0.5348774194717407, 0.42240840196609497, 0.11180136352777481, 1.377526044845581, 0.1805993765592575, -0.01334319356828928, 0.05603829398751259, -0.24746419489383698, 0.8536964654922485, -0.9424698948860168, 0.2739063799381256, 0.34326812624931335, 0.1391271948814392, -0.06755492091178894, -0.9104346632957458, -0.5996437072753906, -0.19672326743602753, -0.105401411652565, -0.03941011428833008, -0.1566838175058365, 0.045380014926195145, 0.3955940008163452, 0.4069344699382782, -0.4940510094165802, 0.15679198503494263, -0.6388017535209656, -0.27259567379951477, 0.5447578430175781, 0.006653799209743738, 0.26520511507987976, -0.31325769424438477, -0.5934552550315857, -0.47755175828933716, -0.28967130184173584, 0.3466159403324127, 0.2774466872215271, 0.3155829608440399, -0.6752203106880188, 0.40620550513267517, 0.1713951677083969, 0.5154274106025696, 0.012245653197169304, -0.3565828502178192, 0.6910719871520996, 0.15121904015541077, -0.6066449880599976, -0.11314904689788818, 1.1813201904296875, 0.25733816623687744, 0.21608655154705048, 0.20001603662967682, -0.11390463262796402, -0.3881223201751709, -0.08610857278108597, -1.1040747165679932, -0.30573105812072754, 0.24175813794136047, -0.732920229434967, -0.3988720774650574, 0.3655555844306946, -0.6846840381622314, -0.18391862511634827, -0.08019130676984787, 0.5655171275138855, -0.42522528767585754, -0.3304494619369507, 0.051889196038246155, -0.183095782995224, 0.37087467312812805, 0.16644753515720367, -0.4502734839916229, 0.0406155064702034, 0.18748053908348083, 1.0268694162368774, 0.032176222652196884, -0.5465251207351685, -0.28067725896835327, -0.34372463822364807, -0.3087243437767029, 0.3772956132888794, -0.01825202815234661, -0.0457940436899662, -0.21470363438129425, 0.35476914048194885, -0.0942671000957489, -0.7515516877174377, 0.19696912169456482, -0.2577424943447113, 0.3360852599143982, -0.10997357219457626, -0.20730622112751007, -0.5027614831924438, 0.3133447766304016, -0.489361047744751, 1.2458957433700562, 0.35061392188072205, -0.8729686737060547, 0.3077228367328644, -0.5119850039482117, -0.1183396726846695, -0.2178301066160202, -0.021534692496061325, -1.0650100708007812, -0.07350980490446091, 0.17264261841773987, 0.7327839732170105, -0.216963529586792, -0.045120205730199814, -0.6192209720611572, -0.26077866554260254, 0.31669631600379944, -0.1278580129146576, 1.0605188608169556, 0.0766647458076477, -0.4164835810661316, 0.3318001329898834, -0.6473444104194641, 0.12883593142032623, 0.5293998718261719, -0.44439777731895447, -0.027735406532883644, -0.7205026149749756, 0.18811123073101044, 0.38864225149154663, 0.24505451321601868, -0.6376318335533142, 0.26778391003608704, -0.16492101550102234, 0.4293138384819031, 0.7330089211463928, -0.18589884042739868, 0.28969839215278625, -0.30057069659233093, 0.29425638914108276, 0.3357398808002472, 0.2439226359128952, 0.0008281806949526072, -0.5842188000679016, -0.8013777136802673, -0.39470505714416504, 0.40753525495529175, 0.42341989278793335, -0.4813193678855896, 0.5671736598014832, -0.11072007566690445, -0.6724241375923157, -0.5009540915489197, 0.17601171135902405, 0.48779791593551636, 0.62124103307724, 0.36479640007019043, -0.44182753562927246, -0.6247476935386658, -0.896399974822998, 0.18366430699825287, -0.06262130290269852, 0.018949151039123535, 0.27628540992736816, 0.67304527759552, -0.15323394536972046, 0.6171801686286926, -0.36193305253982544, -0.36008065938949585, -0.2239321917295456, 0.191128209233284, 0.4347634017467499, 0.8083359003067017, 0.7337618470191956, -0.6342150568962097, -0.444952130317688, -0.13775619864463806, -1.1021634340286255, 0.29753243923187256, -0.07857055217027664, -0.3390333950519562, 0.30814459919929504, 0.1461665779352188, -0.5667787194252014, 0.7103638648986816, 0.23518811166286469, -0.3475024998188019, 0.5018191337585449, -0.339193195104599, 0.2851439118385315, -1.135294795036316, 0.07987990230321884, 0.44405052065849304, -0.12869492173194885, -0.37371084094047546, 0.0015272712334990501, 0.016874512657523155, -0.12007308751344681, -0.5634253621101379, 0.6130366325378418, -0.5850439667701721, -0.21077367663383484, -0.08307331800460815, -0.27381211519241333, 0.03446180000901222, 0.8970633745193481, -0.11040453612804413, 0.3565308451652527, 0.7654162645339966, -0.5533667802810669, 0.586713969707489, 0.5128939151763916, -0.2444216012954712, 0.3376571834087372, -0.6355494260787964, 0.16204890608787537, 0.012230318039655685, 0.11615552008152008, -0.9173194169998169, -0.2430667132139206, 0.2728613317012787, -0.5656276345252991, 0.6368829607963562, -0.47296348214149475, -0.3818809390068054, -0.678885817527771, -0.5323320031166077, 0.3781774044036865, 0.8098025321960449, -0.7307359576225281, 0.3502432107925415, 0.21614529192447662, 0.35372424125671387, -0.5820181369781494, -0.9598450064659119, -0.2693578004837036, -0.42955392599105835, -0.6200414299964905, 0.38294434547424316, 0.13365893065929413, 0.16237911581993103, 0.13700182735919952, -0.0615064911544323, -0.044262513518333435, -0.24051737785339355, 0.559596836566925, 0.45269709825515747, -0.4086390435695648, -0.13636845350265503, -0.4706711769104004, 0.06103366240859032, 0.06206989288330078, -0.23078672587871552, 0.6633106470108032, -0.31874915957450867, -0.284798800945282, -0.9120106101036072, -0.06704186648130417, 0.506161630153656, -0.19577689468860626, 0.8187777400016785, 1.2743734121322632, -0.6078920364379883, 0.10247919708490372, -0.4394988417625427, -0.23946009576320648, -0.49989840388298035, 0.4869161546230316, -0.3105745017528534, -0.3904738128185272, 0.871802806854248, 0.09472298622131348, 0.08701620995998383, 0.7142433524131775, 0.29714348912239075, -0.23037658631801605, 0.7280282378196716, 0.6076423525810242, 0.10604087263345718, 0.7550490498542786, -1.0221436023712158, -0.23182640969753265, -0.9728024005889893, -0.5794866681098938, -0.3416983485221863, -0.6077684164047241, -0.66890949010849, -0.3387109637260437, 0.40948256850242615, 0.29583796858787537, -0.5023926496505737, 0.539781928062439, -0.800378143787384, -0.08274859935045242, 0.8019471168518066, 0.7058767080307007, -0.4176822602748871, 0.36699968576431274, -0.27658969163894653, -0.008607861585915089, -0.6899256706237793, -0.2458357959985733, 0.9912828803062439, 0.5579334497451782, 0.6620388031005859, -0.20605650544166565, 0.7576854825019836, -0.09021907299757004, 0.21830733120441437, -0.5742149949073792, 0.6471653580665588, -0.10176334530115128, -0.3189462125301361, -0.300815612077713, -0.4834575951099396, -1.1023836135864258, 0.018678681924939156, -0.412402480840683, -0.7806278467178345, 0.19066935777664185, 0.15105800330638885, -0.25841882824897766, 0.8921533226966858, -0.7733269929885864, 1.0224770307540894, -0.12093596905469894, -0.3975593149662018, 0.11269927769899368, -0.5826663970947266, 0.19282285869121552, 0.3226829469203949, -0.2745151221752167, -0.14629416167736053, 0.32766029238700867, 1.3101426362991333, -0.5284925103187561, 0.8898131251335144, -0.5280169248580933, 0.30852872133255005, 0.4892575144767761, -0.1831350028514862, 0.32160618901252747, -0.19388042390346527, -0.1060919389128685, 0.3483417332172394, -0.019964713603258133, -0.5759007334709167, -0.5218014717102051, 0.5350335836410522, -0.9201152324676514, -0.43681061267852783, -0.3756726086139679, -0.5075141191482544, 0.15074266493320465, 0.13169866800308228, 0.5468979477882385, 0.7415717244148254, 0.20631131529808044, 0.26393306255340576, 0.6417214870452881, -0.5315834879875183, 0.5013969540596008, -0.2589159607887268, -0.19177284836769104, -0.49155548214912415, 0.8801666498184204, 0.19314967095851898, 0.03839343413710594, 0.10468529909849167, 0.2425125390291214, -0.35143235325813293, -0.5921413898468018, -0.3577488660812378, 0.4227015972137451, -0.6794977188110352, -0.511193573474884, -0.4656270742416382, -0.5348008275032043, -0.498140811920166, 0.013800528831779957, -0.40943923592567444, -0.20200321078300476, -0.392926961183548, 0.2107105404138565, 0.7082539200782776, 0.7299759984016418, -0.12493231147527695, 0.5173852443695068, -0.6489080190658569, 0.14457334578037262, 0.2379315197467804, 0.4675701856613159, -0.04417315497994423, -0.9221739768981934, -0.38774335384368896, -0.03661945089697838, -0.45418018102645874, -0.7924302816390991, 0.5531794428825378, 0.13385334610939026, 0.5811172127723694, 0.4799349009990692, -0.19855095446109772, 0.8535075783729553, -0.004604986868798733, 0.5747735500335693, 0.41618311405181885, -0.5944028496742249, 0.6426449418067932, -0.05204465612769127, 0.22464831173419952, 0.038119472563266754, 0.351066917181015, -0.22046951949596405, 0.03899327293038368, -0.9563621282577515, -0.6192488670349121, 0.8819628357887268, 0.0662747174501419, -0.035038575530052185, 0.4281693398952484, 0.6557968854904175, -0.011249351315200329, 0.08219665288925171, -0.7394456267356873, -0.37442800402641296, -0.28229013085365295, -0.3126068115234375, 0.05470861867070198, -0.0881114974617958, -0.0028899156022816896, -0.7245824337005615, 0.67448890209198, 0.02510831132531166, 0.8967589735984802, 0.3103283941745758, -0.05706430599093437, -0.08780252188444138, -0.3739802837371826, 0.45135068893432617, 0.37039706110954285, -0.41332778334617615, 0.08682504296302795, 0.2635997533798218, -0.6085859537124634, -0.009430569596588612, 0.11310570687055588, 0.16567924618721008, -0.022970853373408318, 0.6583986282348633, 1.0319600105285645, -0.06102047860622406, 0.0586974173784256, 0.4135761857032776, 0.03006642311811447, -0.41113191843032837, -0.18794652819633484, 0.11882232129573822, -0.08996698260307312, 0.43492311239242554, 0.3585296869277954, 0.3683947026729584, -0.1802981197834015, -0.3747619092464447, 0.26834437251091003, 0.5198509097099304, -0.3675922155380249, -0.39070162177085876, 0.6377864480018616, -0.21818430721759796, -0.1877617985010147, 0.9670425057411194, -0.17924682796001434, -0.5964222550392151, 1.1150164604187012, 0.44938281178474426, 0.8385674953460693, -0.08620434254407883, 0.020357681438326836, 0.9262974262237549, 0.17502349615097046, 0.056133054196834564, 0.2522187829017639, 0.15597344934940338, -0.7484119534492493, 0.10771540552377701, -0.6772288680076599, 0.08655782788991928, 0.48558440804481506, -0.6927769184112549, 0.2740633487701416, -0.6568644046783447, -0.46157023310661316, 0.0901380181312561, 0.35639724135398865, -1.0698050260543823, 0.17917519807815552, 0.0744578093290329, 0.8576661944389343, -0.7739576101303101, 0.8141119480133057, 0.8744516372680664, -0.6034002304077148, -0.9756295084953308, -0.07203899323940277, -0.0665430873632431, -1.0127254724502563, 0.6054124236106873, 0.48810842633247375, 0.23201864957809448, 0.0012070421362295747, -0.8137915730476379, -0.5444637537002563, 1.4067530632019043, 0.5163556337356567, -0.11134035885334015, 0.0939764678478241, -0.031244518235325813, 0.1733836680650711, -0.43056240677833557, 0.335184246301651, 0.1416730433702469, 0.42459341883659363, 0.2133645862340927, -0.7294248938560486, 0.26732972264289856, -0.2616645097732544, 0.1812426596879959, 0.10263362526893616, -0.6492846608161926, 1.0094932317733765, -0.5390845537185669, -0.15216495096683502, -0.038915928453207016, 0.8166404366493225, 0.31684306263923645, 0.13640213012695312, 0.5519639253616333, 0.8176752328872681, 0.6191440224647522, -0.2756066918373108, 0.8223791718482971, 0.16318733990192413, 0.6223026514053345, 0.5262187719345093, 0.32588905096054077, 0.6444498896598816, 0.37630513310432434, -0.37356069684028625, 0.45591840147972107, 1.1620235443115234, -0.43492454290390015, 0.31612399220466614, 0.238641157746315, 0.1113937720656395, -0.12141232192516327, 0.1040462777018547, -0.4504711925983429, 0.5260892510414124, 0.1388503462076187, -0.4552064538002014, -0.19178743660449982, 0.2460675984621048, -0.11781290918588638, -0.33540937304496765, -0.23410063982009888, 0.5330430865287781, -0.023879749700427055, -0.30205169320106506, 0.9253820776939392, 0.025250224396586418, 0.9886565208435059, -0.344012975692749, -0.11212500929832458, -0.23828339576721191, 0.14970815181732178, -0.37567606568336487, -0.8399626016616821, 0.23216213285923004, -0.3013002872467041, -0.029086219146847725, 0.04084549844264984, 0.6054466962814331, -0.402776837348938, -0.4488750100135803, 0.27140262722969055, 0.33457309007644653, 0.5530103445053101, 0.010387892834842205, -1.2624026536941528, 0.17505867779254913, 0.09575901180505753, -0.6479474902153015, 0.3239794671535492, 0.4872368574142456, 0.13984547555446625, 0.6856823563575745, 0.5993428230285645, -0.022619478404521942, 0.2211110144853592, -0.2048952579498291, 0.7155309915542603, -0.6418707370758057, -0.2745448648929596, -0.8379094004631042, 0.5986603498458862, -0.1290549784898758, -0.5933062434196472, 0.5045490264892578, 0.5627301931381226, 0.8780202269554138, -0.0723048597574234, 0.4478452801704407, -0.23053477704524994, -0.1498601734638214, -0.5120952129364014, 0.7737426161766052, -0.6794288754463196, -0.10208538174629211, -0.13150763511657715, -0.7186799645423889, -0.24606096744537354, 0.7405603528022766, -0.18021661043167114, 0.4661926329135895, 0.47846561670303345, 0.9101413488388062, -0.374469131231308, -0.39222022891044617, 0.2657258212566376, 0.14316679537296295, 0.03969192132353783, 0.46665892004966736, 0.4001201391220093, -0.857973039150238, 0.3489031493663788, -0.7080620527267456, -0.1936565339565277, -0.1421268880367279, -0.6445509791374207, -1.0933072566986084, -1.053614616394043, -0.626148521900177, -0.7438915371894836, -0.3184449076652527, 1.0278682708740234, 1.2505565881729126, -0.7138606309890747, -0.1487329751253128, 0.1304241418838501, 0.1547136902809143, -0.2570759356021881, -0.23605097830295563, 0.7303420901298523, -0.15142075717449188, -0.7409709095954895, -0.3249838650226593, -0.05744496360421181, 0.4933047890663147, -0.10223975777626038, -0.30070045590400696, -0.2250121831893921, -0.3178667724132538, 0.2642013430595398, 0.3933189809322357, -0.6977266073226929, -0.12672999501228333, -0.2518167197704315, -0.2411229908466339, 0.519457221031189, 0.4106898307800293, -0.5618383288383484, 0.14066842198371887, 0.45597022771835327, 0.41149306297302246, 0.8732404112815857, -0.3215992748737335, -0.00965164229273796, -0.910681426525116, 0.5439028739929199, -0.18962150812149048, 0.5623538494110107, 0.443112313747406, -0.3896978199481964, 0.47354328632354736, 0.42546701431274414, -0.3742973506450653, -0.9143887162208557, -0.1573009043931961, -1.1435668468475342, -0.10735494643449783, 0.7939889430999756, -0.37193992733955383, -0.625739574432373, 0.4914310872554779, -0.001510205096565187, 0.755582869052887, -0.1253475695848465, 0.4393399655818939, 0.2231103628873825, -0.16021005809307098, -0.6647146940231323, -0.5791146755218506, 0.47794339060783386, -0.0003889459476340562, -0.695043683052063, -0.4180372953414917, -0.11215498298406601, 0.6156891584396362, 0.2972163259983063, 0.45479556918144226, -0.14095538854599, 0.04080760106444359, 0.038575634360313416, 0.6567708253860474, -0.49612218141555786, -0.12227564305067062, -0.33195263147354126, 0.05148155242204666, -0.11833413690328598, -0.7687289714813232 ]
alx-ai/noggles-v21-6400-best
alx-ai
"2022-12-11T22:16:31Z"
42,740
1
diffusers
[ "diffusers", "text-to-image", "stable-diffusion", "license:creativeml-openrail-m", "endpoints_compatible", "diffusers:StableDiffusionPipeline", "region:us" ]
text-to-image
"2022-12-11T22:02:07Z"
--- license: creativeml-openrail-m tags: - text-to-image - stable-diffusion --- ### noggles_v21_6400_BEST Dreambooth model trained by alxdfy with [TheLastBen's fast-DreamBooth](https://colab.research.google.com/github/TheLastBen/fast-stable-diffusion/blob/main/fast-DreamBooth.ipynb) notebook Test the concept via A1111 Colab [fast-Colab-A1111](https://colab.research.google.com/github/TheLastBen/fast-stable-diffusion/blob/main/fast_stable_diffusion_AUTOMATIC1111.ipynb) Or you can run your new concept via `diffusers` [Colab Notebook for Inference](https://colab.research.google.com/github/huggingface/notebooks/blob/main/diffusers/sd_dreambooth_inference.ipynb) Sample pictures of this concept: ![0](https://huggingface.co/alxdfy/noggles-v21-6400-best/resolve/main/sample_images/vitalik.png)
[ -0.40904080867767334, -0.8492527008056641, 0.5520375370979309, 0.427690327167511, -0.3639979958534241, 0.29700466990470886, 0.3146359622478485, -0.3418048620223999, 0.6808264851570129, 0.3141084313392639, -0.35610172152519226, -0.40284663438796997, -0.45468881726264954, -0.29333412647247314, -0.5396634936332703, 0.754974365234375, -0.20694144070148468, -0.017652170732617378, -0.04660463333129883, 0.09549511969089508, -0.21039935946464539, 0.2012173980474472, -0.7352712154388428, -0.5062671303749084, 0.13379815220832825, 0.23707632720470428, 0.651334822177887, 0.3177262246608734, 0.21310259401798248, 0.22705264389514923, -0.3311379551887512, -0.3280482590198517, -0.3972001373767853, 0.2784079313278198, 0.043059803545475006, -0.3360174596309662, -0.6897812485694885, -0.14385634660720825, 0.529384970664978, 0.20249910652637482, -0.37665149569511414, 0.40628501772880554, -0.11070522665977478, 0.43328389525413513, -0.6980263590812683, 0.03628081455826759, -0.34353724122047424, 0.22788026928901672, -0.4610272943973541, 0.32741594314575195, -0.23069630563259125, -0.39098548889160156, -0.16347549855709076, -0.40994784235954285, 0.408552885055542, 0.34002065658569336, 1.170225977897644, 0.12293883413076401, -0.5475040674209595, 0.31180399656295776, -0.2708848714828491, 0.49444156885147095, -0.47408172488212585, 0.6559315919876099, 0.03845750167965889, 0.2748095393180847, -0.2467365562915802, -0.6906418204307556, -0.7836400866508484, -0.06689224392175674, 0.4045395851135254, 0.14549335837364197, -0.12460862845182419, 0.23670199513435364, 0.023413004353642464, 0.2921774685382843, -0.6702223420143127, -0.13281935453414917, -0.5094987154006958, -0.3800680935382843, 0.5352771878242493, 0.12828293442726135, -0.062056172639131546, -0.3598473370075226, -0.9491472244262695, -0.1522706151008606, -0.5093534588813782, -0.16203148663043976, 0.1438697725534439, -0.14966030418872833, -0.5676156282424927, 0.4328402280807495, -0.3322165310382843, 0.8265777826309204, 0.45860183238983154, -0.09911975264549255, 0.9279443621635437, -0.2641916871070862, -0.2852955758571625, 0.07608947902917862, 0.7128699421882629, 0.3979475200176239, -0.06588606536388397, -0.19493159651756287, -0.20771002769470215, 0.06474992632865906, 0.006970768794417381, -1.1650078296661377, -0.5319388508796692, 0.35702547430992126, -0.5886014103889465, -0.5039790868759155, -0.35423383116722107, -0.810772180557251, -0.43177565932273865, 0.054490379989147186, 0.6880333423614502, -0.36593130230903625, -0.9307547211647034, 0.1281881183385849, -0.21494539082050323, 0.20190811157226562, 0.3822207748889923, -0.4721967279911041, 0.1137704998254776, 0.3785249590873718, 1.1582599878311157, -0.25999054312705994, -0.06424214690923691, -0.23131105303764343, 0.08803701400756836, -0.522054135799408, 0.91315758228302, -0.16452813148498535, -0.2364949733018875, -0.3124302923679352, -0.1042233407497406, -0.2984117567539215, -0.4773636758327484, 0.3256620168685913, -0.6583960652351379, -0.0089186392724514, 0.24495123326778412, -0.7957715392112732, -0.31429287791252136, 0.14916177093982697, -0.46334001421928406, 0.6599987745285034, 0.04392065107822418, -0.6961356401443481, 0.23596899211406708, -1.1032272577285767, 0.05196861922740936, 0.13068336248397827, -0.01923610270023346, -0.5333941578865051, 0.17543746531009674, -0.5224369764328003, 0.5359623432159424, -0.054653018712997437, 0.1734330952167511, -0.5524922609329224, -0.3907310366630554, 0.04251483827829361, -0.2631726562976837, 1.119591236114502, 0.4154423773288727, -0.38248804211616516, 0.22323477268218994, -0.8186293244361877, 0.14996694028377533, 0.13917367160320282, 0.0333554670214653, -0.003499153070151806, -0.6999821662902832, 0.2926914095878601, 0.019086601212620735, 0.09789735823869705, -0.8814162611961365, 0.0038970052264630795, 0.008144917897880077, -0.09596891701221466, 0.8054295778274536, 0.18921245634555817, 0.22616197168827057, -0.21634671092033386, 0.8881382346153259, 0.029571380466222763, 0.24143929779529572, 0.2121417075395584, -0.8504590392112732, -0.7953723073005676, -0.37226009368896484, 0.5002402663230896, 0.587846577167511, -0.8266382217407227, 0.08598160743713379, 0.37671414017677307, -0.833233118057251, -0.41695645451545715, 0.07127067446708679, 0.3774757385253906, 0.5785294771194458, 0.32796236872673035, -0.3904765248298645, -0.3457238972187042, -0.7251971960067749, 0.11807128041982651, -0.12142752856016159, 0.14088667929172516, 0.06829877942800522, 0.5080247521400452, -0.3140624761581421, 0.8212999105453491, -0.6152259707450867, 0.049650948494672775, -0.05869404226541519, 0.028334293514490128, 0.6767826676368713, 0.6729884743690491, 0.7399482131004333, -0.8041989803314209, -0.5447701811790466, -0.5055051445960999, -0.6651828289031982, -0.05872326344251633, 0.18284690380096436, -0.5349650382995605, 0.24558529257774353, 0.31685230135917664, -1.0650218725204468, 0.5150793194770813, 0.6422339081764221, -1.0711157321929932, 0.7524720430374146, -0.039722077548503876, 0.19995450973510742, -1.1950132846832275, 0.023868344724178314, 0.11955319344997406, -0.4298827350139618, -0.48942410945892334, 0.16955827176570892, 0.4126264154911041, 0.042162079364061356, -0.7885422706604004, 0.9852232933044434, -0.40316325426101685, 0.5452812910079956, -0.3564799427986145, -0.18149659037590027, -0.13084758818149567, -0.03904785215854645, -0.10729143023490906, 0.5112114548683167, 1.0381946563720703, -0.5905637145042419, 0.5392958521842957, 0.5670215487480164, -0.44053223729133606, 0.38972195982933044, -0.6661416888237, 0.14406152069568634, -0.2334233969449997, 0.3874686658382416, -1.0748119354248047, -0.23352593183517456, 0.5632012486457825, -0.24444639682769775, 0.3695029616355896, -0.1782338172197342, -0.5064523816108704, -0.5363197922706604, -0.27903369069099426, 0.4641905426979065, 0.9047437906265259, -0.6259586215019226, 0.24332132935523987, 0.35458359122276306, 0.13868781924247742, -0.659071683883667, -0.37576866149902344, -0.04735548049211502, -0.3589041531085968, -0.6935023665428162, 0.6520251035690308, -0.38066771626472473, -0.3645365238189697, -0.05647936835885048, -0.2856813967227936, -0.19925355911254883, -0.07090453803539276, 0.4692245125770569, 0.6412650942802429, -0.35219815373420715, 0.053916215896606445, 0.04982542246580124, -0.4748724699020386, -0.18660953640937805, -0.09791074693202972, 0.6410098671913147, -0.43544548749923706, -0.0462302602827549, -0.5426011085510254, -0.16625738143920898, 0.5272295475006104, 0.2257668375968933, 0.9328868389129639, 0.8575302362442017, -0.39767834544181824, -0.09392824023962021, -0.8217619061470032, -0.28257066011428833, -0.5171378254890442, -0.05119079351425171, -0.4768153727054596, -0.5002495646476746, 0.36385518312454224, 0.0539870485663414, -0.24595659971237183, 0.31584692001342773, 0.511938214302063, -0.19162461161613464, 0.613083004951477, 0.7521642446517944, 0.25491568446159363, 0.6307172179222107, -0.6713554263114929, 0.10167169570922852, -0.6617109179496765, -0.3022489547729492, -0.08721299469470978, -0.31077998876571655, -0.33392298221588135, -0.7950765490531921, 0.27124646306037903, 0.4710770845413208, -0.41411712765693665, 0.5278676748275757, -0.1764751672744751, 0.6763903498649597, 0.3983306586742401, 0.26917892694473267, 0.21153821051120758, 0.05749274045228958, -0.28622037172317505, 0.4003450870513916, -0.5442119836807251, -0.26206591725349426, 0.9859589338302612, 0.16221216320991516, 1.016858458518982, -0.034249138087034225, 1.0039414167404175, 0.12313126772642136, 0.22687283158302307, -0.19542253017425537, 0.6911628246307373, 0.10574930906295776, -1.0014280080795288, 0.052739791572093964, -0.23295333981513977, -0.8505838513374329, 0.4309939444065094, -0.3878987729549408, -0.7327888011932373, 0.2292270064353943, 0.6665245890617371, -0.5405019521713257, 0.5587283372879028, -0.8846991062164307, 1.0562012195587158, -0.018307330086827278, -0.8024789094924927, -0.3614986538887024, -0.5600697994232178, 0.332533061504364, 0.12173938751220703, -0.052150845527648926, -0.4062105715274811, -0.15651410818099976, 0.7020803093910217, -0.19688080251216888, 0.6874018311500549, -0.8026834726333618, 0.1509457677602768, 0.439851850271225, 0.011496263556182384, 0.3001464307308197, 0.06998375058174133, -0.370739609003067, 0.40746092796325684, -0.03984972462058067, -0.7126731276512146, -0.026287447661161423, 0.6555014848709106, -0.4663269817829132, -0.3391280770301819, -0.5205129981040955, -0.5259513258934021, -0.05590541660785675, 0.22757253050804138, 0.4675089716911316, 0.17951728403568268, -0.12642525136470795, 0.15463273227214813, 0.9130087494850159, 0.10399430990219116, 0.6496792435646057, 0.6907547116279602, -0.6918200850486755, -0.20965775847434998, 0.8092616200447083, 0.025670040398836136, 0.3430321514606476, 0.08834987133741379, 0.2784392237663269, -0.3288705050945282, -0.7666892409324646, -0.8059212565422058, 0.35372740030288696, -0.4002804756164551, -0.5622022747993469, -0.6403020620346069, -0.27105969190597534, -0.3151453733444214, -0.1496845781803131, -0.6441141963005066, -0.6218615174293518, -0.2683321237564087, -0.47254762053489685, 0.9660533666610718, 0.5163744688034058, -0.4983464479446411, 0.2926812171936035, -0.4513159990310669, 0.6115254163742065, 0.07461624592542648, 0.3979923129081726, 0.08103799819946289, -0.38020315766334534, 0.02927178144454956, -0.08070678263902664, -0.6210731267929077, -1.0648462772369385, 0.36424723267555237, 0.0076709408313035965, 0.6604013442993164, 0.6982711553573608, -0.03190695121884346, 0.6763907670974731, -0.27553796768188477, 0.6147314310073853, 0.5922466516494751, -0.9016076922416687, 0.5448619723320007, -0.3972681760787964, 0.12246795743703842, 0.38406193256378174, 0.5161747932434082, -0.372813880443573, -0.3201221823692322, -0.8969851136207581, -1.070582389831543, 0.2546958327293396, 0.3109886348247528, 0.13337218761444092, 0.1432323157787323, 0.4361816942691803, 0.5698471069335938, 0.43706372380256653, -0.796623706817627, -0.45945170521736145, -0.010691783390939236, -0.1848587989807129, 0.1969519555568695, 0.05324022099375725, 0.044702641665935516, -0.33087557554244995, 1.0663255453109741, -0.11588659137487411, 0.4950689673423767, 0.005021519493311644, -0.07509016990661621, -0.22050750255584717, -0.08784929662942886, 0.16367775201797485, 0.8539522290229797, -0.5523214340209961, 0.03181232511997223, -0.014576507732272148, -0.4169211983680725, 0.4677489697933197, 0.10821782797574997, -0.4125434160232544, 0.09527373313903809, -0.12758970260620117, 0.9413043856620789, -0.2747131288051605, -0.4651956856250763, 0.46504658460617065, -0.13028967380523682, -0.09018372744321823, -0.36666569113731384, 0.5831785798072815, 0.3370256721973419, 0.6260013580322266, 0.07041323184967041, 0.7135645151138306, 0.13875296711921692, -0.24002884328365326, 0.21108798682689667, 0.3430461883544922, -0.35811853408813477, -0.17576031386852264, 1.0493435859680176, 0.3049025535583496, -0.3388385474681854, 0.6505261659622192, -0.6703380942344666, -0.1305932104587555, 0.8618126511573792, 0.7924246788024902, 0.9814592599868774, -0.3859706521034241, 0.5479469895362854, 0.40453386306762695, -0.09575054794549942, -0.17057332396507263, 0.6853991150856018, -0.20561760663986206, -0.7838300466537476, -0.05661618709564209, -0.7327095866203308, -0.41318824887275696, -0.020896267145872116, -0.42361631989479065, 0.39291200041770935, -0.35584983229637146, -0.15506869554519653, -0.06316876411437988, -0.257269948720932, -0.8478012681007385, 0.12722793221473694, 0.224650576710701, 1.4046504497528076, -0.8799600601196289, 0.9610811471939087, 0.5417774319648743, -0.0630909726023674, -0.3597491979598999, 0.098745197057724, 0.16111154854297638, -1.0130244493484497, 0.39896273612976074, 0.2970494329929352, -0.1195855364203453, -0.06831756979227066, -0.5450400710105896, -1.1342347860336304, 1.3363466262817383, 0.5622826218605042, -0.7220507264137268, 0.2894071340560913, -0.7110664248466492, 0.36349380016326904, -0.3301825523376465, 0.2608948349952698, 0.20713162422180176, 0.3499827980995178, 0.25188955664634705, -0.986971378326416, 0.033810753375291824, -0.56023108959198, -0.050212133675813675, 0.2616915702819824, -1.0522000789642334, 0.8325313925743103, -0.7875655293464661, 0.15524756908416748, 0.370844304561615, 0.6912571787834167, 0.4248969852924347, 0.7259153127670288, 0.8620637655258179, 0.7664390206336975, 0.795871376991272, 0.05888398736715317, 1.0339065790176392, -0.41646960377693176, 0.5964112281799316, 0.9887725114822388, -0.10809493064880371, 0.9532065391540527, 0.5782543420791626, -0.05340450629591942, 0.7994067072868347, 0.9182626008987427, -0.023908011615276337, 0.8652551770210266, 0.3197343349456787, -0.39008259773254395, -0.19439156353473663, 0.26308318972587585, -0.8396146893501282, 0.21543319523334503, 0.37630268931388855, -0.24693413078784943, 0.08443745225667953, 0.37442266941070557, 0.3055454194545746, -0.7693241238594055, -0.27331286668777466, 0.3694426417350769, 0.00888260081410408, -0.42718082666397095, 0.6815680265426636, -0.17908766865730286, 0.8650386333465576, -0.7144983410835266, -0.07360976189374924, -0.15947823226451874, 0.4894474446773529, -0.3052973449230194, -0.7118158936500549, 0.07921407371759415, -0.12308696657419205, 0.07822252810001373, -0.3481207489967346, 0.8843864798545837, -0.30836743116378784, -0.7315512895584106, 0.5203732848167419, 0.44582608342170715, 0.3423605263233185, 0.06347128748893738, -0.7670497298240662, 0.000292182870907709, 0.029778214171528816, -0.5978115797042847, 0.0942654237151146, -0.2010115087032318, 0.35369986295700073, 0.7236260771751404, 0.30225858092308044, 0.020540064200758934, 0.3159288167953491, -0.28661155700683594, 0.5038251876831055, -0.6883368492126465, -0.5197810530662537, -0.742333710193634, 0.5141203999519348, -0.17863844335079193, -0.4255415201187134, 0.8341424465179443, 0.7110896706581116, 0.6936192512512207, -0.26512110233306885, 0.626133143901825, -0.5057011842727661, 0.3070699870586395, -0.4434095025062561, 0.7858425974845886, -0.6075258851051331, -0.23919281363487244, -0.28983595967292786, -0.9842206835746765, 0.01152350939810276, 1.0220555067062378, 0.1216459646821022, 0.09069419652223587, 0.6897251605987549, 1.0147515535354614, -0.3910399079322815, 0.2631363570690155, 0.12573696672916412, 0.8747294545173645, -0.024031011387705803, 0.2540733516216278, 0.6229740381240845, -0.5747713446617126, 0.23396261036396027, -0.6140244007110596, -0.49447381496429443, -0.23970837891101837, -0.9611276984214783, -0.6480963826179504, -0.27114203572273254, -0.8914295434951782, -0.9413071274757385, 0.2766837179660797, 1.0003401041030884, 1.204248070716858, -1.026159644126892, -0.39821338653564453, -0.285674124956131, 0.29877012968063354, -0.13606107234954834, -0.2650325894355774, 0.39231300354003906, 0.08128250390291214, -0.6191638112068176, 0.41394180059432983, 0.06586731225252151, 0.5233594179153442, -0.12152022123336792, -0.05532185733318329, -0.09072711318731308, -0.05925422161817551, 0.4315064251422882, -0.0032178133260458708, -0.3384971618652344, -0.12171638756990433, -0.2212083488702774, 0.3551481366157532, 0.09109476953744888, 0.2028382271528244, -0.9892948269844055, 0.3931896984577179, 0.6643781065940857, -0.005169910378754139, 0.9041199088096619, -0.4363727867603302, 0.38586094975471497, -0.22100283205509186, 0.18926368653774261, -0.033956341445446014, 0.5364780426025391, 0.1387372612953186, -0.14071685075759888, 0.7303569912910461, 0.565057635307312, -0.4437175393104553, -0.8645253777503967, 0.06959819048643112, -1.160056471824646, -0.23049351572990417, 0.908227801322937, 0.11617761850357056, -0.32829535007476807, -0.0011555443052202463, -0.1969836801290512, 0.040080487728118896, -0.7080414295196533, 0.9881836175918579, 0.2892075181007385, -0.6234298944473267, -0.05868716165423393, -0.8462144136428833, 0.1579558104276657, 0.20402134954929352, -0.7780510187149048, -0.3994362950325012, 0.21019427478313446, 0.6699592471122742, 0.49462512135505676, 0.8010776042938232, 0.004186545964330435, 0.32929491996765137, 0.4125438332557678, 0.14447273313999176, 0.15843038260936737, -0.3369637131690979, -0.008545358665287495, 0.4875352382659912, -0.24203616380691528, -0.6350732445716858 ]
cross-encoder/msmarco-MiniLM-L6-en-de-v1
cross-encoder
"2021-08-05T08:40:24Z"
42,664
3
transformers
[ "transformers", "pytorch", "bert", "text-classification", "license:apache-2.0", "endpoints_compatible", "region:us" ]
text-classification
"2022-03-02T23:29:05Z"
--- license: apache-2.0 --- # Cross-Encoder for MS MARCO - EN-DE This is a cross-lingual Cross-Encoder model for EN-DE that can be used for passage re-ranking. It was trained on the [MS Marco Passage Ranking](https://github.com/microsoft/MSMARCO-Passage-Ranking) task. The model can be used for Information Retrieval: See [SBERT.net Retrieve & Re-rank](https://www.sbert.net/examples/applications/retrieve_rerank/README.html). The training code is available in this repository, see `train_script.py`. ## Usage with SentenceTransformers When you have [SentenceTransformers](https://www.sbert.net/) installed, you can use the model like this: ```python from sentence_transformers import CrossEncoder model = CrossEncoder('model_name', max_length=512) query = 'How many people live in Berlin?' docs = ['Berlin has a population of 3,520,031 registered inhabitants in an area of 891.82 square kilometers.', 'New York City is famous for the Metropolitan Museum of Art.'] pairs = [(query, doc) for doc in docs] scores = model.predict(pairs) ``` ## Usage with Transformers With the transformers library, you can use the model like this: ```python from transformers import AutoTokenizer, AutoModelForSequenceClassification import torch model = AutoModelForSequenceClassification.from_pretrained('model_name') tokenizer = AutoTokenizer.from_pretrained('model_name') features = tokenizer(['How many people live in Berlin?', 'How many people live in Berlin?'], ['Berlin has a population of 3,520,031 registered inhabitants in an area of 891.82 square kilometers.', 'New York City is famous for the Metropolitan Museum of Art.'], padding=True, truncation=True, return_tensors="pt") model.eval() with torch.no_grad(): scores = model(**features).logits print(scores) ``` ## Performance The performance was evaluated on three datasets: - **TREC-DL19 EN-EN**: The original [TREC 2019 Deep Learning Track](https://microsoft.github.io/msmarco/TREC-Deep-Learning-2019.html): Given an English query and 1000 documents (retrieved by BM25 lexical search), rank documents with according to their relevance. We compute NDCG@10. BM25 achieves a score of 45.46, a perfect re-ranker can achieve a score of 95.47. - **TREC-DL19 DE-EN**: The English queries of TREC-DL19 have been translated by a German native speaker to German. We rank the German queries versus the English passages from the original TREC-DL19 setup. We compute NDCG@10. - **GermanDPR DE-DE**: The [GermanDPR](https://www.deepset.ai/germanquad) dataset provides German queries and German passages from Wikipedia. We indexed the 2.8 Million paragraphs from German Wikipedia and retrieved for each query the top 100 most relevant passages using BM25 lexical search with Elasticsearch. We compute MRR@10. BM25 achieves a score of 35.85, a perfect re-ranker can achieve a score of 76.27. We also check the performance of bi-encoders using the same evaluation: The retrieved documents from BM25 lexical search are re-ranked using query & passage embeddings with cosine-similarity. Bi-Encoders can also be used for end-to-end semantic search. | Model-Name | TREC-DL19 EN-EN | TREC-DL19 DE-EN | GermanDPR DE-DE | Docs / Sec | | ------------- |:-------------:| :-----: | :---: | :----: | | BM25 | 45.46 | - | 35.85 | -| | **Cross-Encoder Re-Rankers** | | | | | [cross-encoder/msmarco-MiniLM-L6-en-de-v1](https://huggingface.co/cross-encoder/msmarco-MiniLM-L6-en-de-v1) | 72.43 | 65.53 | 46.77 | 1600 | | [cross-encoder/msmarco-MiniLM-L12-en-de-v1](https://huggingface.co/cross-encoder/msmarco-MiniLM-L12-en-de-v1) | 72.94 | 66.07 | 49.91 | 900 | | [svalabs/cross-electra-ms-marco-german-uncased](https://huggingface.co/svalabs/cross-electra-ms-marco-german-uncased) (DE only) | - | - | 53.67 | 260 | | [deepset/gbert-base-germandpr-reranking](https://huggingface.co/deepset/gbert-base-germandpr-reranking) (DE only) | - | - | 53.59 | 260 | | **Bi-Encoders (re-ranking)** | | | | | [sentence-transformers/msmarco-distilbert-multilingual-en-de-v2-tmp-lng-aligned](https://huggingface.co/sentence-transformers/msmarco-distilbert-multilingual-en-de-v2-tmp-lng-aligned) | 63.38 | 58.28 | 37.88 | 940 | | [sentence-transformers/msmarco-distilbert-multilingual-en-de-v2-tmp-trained-scratch](https://huggingface.co/sentence-transformers/msmarco-distilbert-multilingual-en-de-v2-tmp-trained-scratch) | 65.51 | 58.69 | 38.32 | 940 | | [svalabs/bi-electra-ms-marco-german-uncased](https://huggingface.co/svalabs/bi-electra-ms-marco-german-uncased) (DE only) | - | - | 34.31 | 450 | | [deepset/gbert-base-germandpr-question_encoder](https://huggingface.co/deepset/gbert-base-germandpr-question_encoder) (DE only) | - | - | 42.55 | 450 | Note: Docs / Sec gives the number of (query, document) pairs we can re-rank within a second on a V100 GPU.
[ -0.5755738019943237, -0.7395851016044617, 0.26805293560028076, 0.12297378480434418, -0.24030013382434845, 0.0757957398891449, -0.46512290835380554, -0.4035341739654541, 0.4119403064250946, 0.14473509788513184, -0.43884700536727905, -0.8712369203567505, -0.7820435166358948, 0.32200923562049866, -0.29843035340309143, 0.8324971199035645, -0.11974325776100159, 0.3122623860836029, -0.15618634223937988, -0.1345268189907074, -0.17353880405426025, -0.39696595072746277, -0.6769704222679138, -0.3208940327167511, 0.5080612897872925, 0.3872106373310089, 0.6041929125785828, 0.4545426368713379, 0.4863438606262207, 0.35283365845680237, -0.15158036351203918, 0.1511061191558838, -0.40300682187080383, -0.0027583737391978502, -0.04192059487104416, -0.24344855546951294, -0.2895909249782562, -0.08585628122091293, 0.5618059635162354, 0.5765239000320435, 0.03087877668440342, 0.05862566828727722, -0.02257058210670948, 0.5805231332778931, -0.19162294268608093, 0.04238574206829071, -0.40200456976890564, 0.04292984679341316, -0.21823272109031677, -0.12211781740188599, -0.436799556016922, -0.25030970573425293, 0.05385066196322441, -0.44709256291389465, 0.4565575420856476, -0.003265708452090621, 1.330509066581726, 0.29606184363365173, -0.3557400107383728, -0.13511906564235687, -0.32889324426651, 0.5772290825843811, -0.6402390003204346, 0.8456867337226868, 0.3460892140865326, 0.10885355621576309, 0.043592486530542374, -0.832276463508606, -0.5331558585166931, -0.25517281889915466, -0.2378058284521103, 0.3328140377998352, -0.18377794325351715, -0.15358322858810425, 0.3318737745285034, 0.5069862008094788, -0.880296528339386, 0.16703100502490997, -0.5195395350456238, -0.18175682425498962, 0.7689634561538696, 0.128125861287117, 0.24854536354541779, -0.36621779203414917, -0.28345224261283875, -0.3522213101387024, -0.5096755623817444, 0.13097530603408813, 0.32573819160461426, 0.022774698212742805, -0.23494555056095123, 0.5325563549995422, -0.4349989593029022, 0.6886358857154846, 0.29542437195777893, 0.08971831202507019, 0.7839710712432861, -0.427486777305603, -0.012307093478739262, -0.04510592296719551, 1.0416663885116577, 0.42622753977775574, 0.18433241546154022, -0.3644024729728699, -0.20042604207992554, -0.008668201975524426, 0.1722041368484497, -0.8718839883804321, -0.17983408272266388, 0.12089575082063675, -0.4136194884777069, 0.0023991521447896957, 0.2763198912143707, -0.8878222703933716, 0.03572933003306389, -0.1461702436208725, 0.3388090133666992, -0.6050610542297363, -0.009887422434985638, 0.28820469975471497, -0.22680814564228058, 0.411955863237381, -0.0018505312036722898, -0.6331336498260498, -0.012782398611307144, 0.35762467980384827, 0.8555354475975037, -0.2145751714706421, -0.5718887448310852, -0.07724197953939438, -0.11425478011369705, -0.2930487096309662, 0.6109901666641235, -0.40110260248184204, -0.40226760506629944, -0.04167551174759865, 0.45461761951446533, -0.12340722978115082, -0.3321886360645294, 0.8191444873809814, -0.43486344814300537, 0.5931465029716492, -0.21968990564346313, -0.5270999670028687, -0.007107352837920189, 0.24306650459766388, -0.8093053698539734, 1.3458236455917358, 0.18581339716911316, -0.8884425759315491, 0.3518601059913635, -0.5702146291732788, -0.5546665787696838, -0.1699068546295166, 0.025989897549152374, -0.42303386330604553, -0.05171746760606766, 0.5381673574447632, 0.3304469585418701, -0.39868074655532837, 0.20012086629867554, -0.11914122849702835, -0.4647257924079895, 0.08003481477499008, -0.4341956377029419, 1.0089998245239258, 0.21041129529476166, -0.5844013690948486, -0.18850992619991302, -0.6999635100364685, 0.12771007418632507, 0.27142417430877686, -0.5708990693092346, -0.10676048696041107, -0.37802255153656006, 0.1610611081123352, 0.49382689595222473, 0.4268271028995514, -0.6849436163902283, 0.09520386159420013, -0.5961588025093079, 0.35173073410987854, 0.5248458385467529, 0.019627021625638008, 0.4048832654953003, -0.12861844897270203, 0.4649892747402191, -0.005064808763563633, 0.25503435730934143, 0.09359205514192581, -0.49742966890335083, -1.003372073173523, -0.04804551228880882, 0.7155416011810303, 0.6747872233390808, -0.8648635745048523, 0.8092781901359558, -0.8398683071136475, -0.7448250651359558, -0.9735944867134094, -0.03535275161266327, 0.5002279281616211, 0.3916594684123993, 0.5507963299751282, -0.2049759030342102, -0.5236954689025879, -1.1279895305633545, -0.12590357661247253, 0.19449879229068756, -0.06271548569202423, 0.30540037155151367, 0.7360626459121704, -0.34646108746528625, 0.5420078635215759, -0.48743659257888794, -0.2662803828716278, -0.2917912006378174, -0.05427449196577072, 0.2809635102748871, 0.5104132294654846, 0.5670002102851868, -0.8438106775283813, -0.6929352283477783, -0.0900130569934845, -0.8490228056907654, 0.057487305253744125, 0.2366875261068344, -0.11463407427072525, 0.5556179881095886, 0.6477369070053101, -0.6069189310073853, 0.3302975296974182, 0.3341217339038849, -0.42067477107048035, 0.19588670134544373, -0.4893886148929596, 0.4008772373199463, -1.208277702331543, 0.13972757756710052, 0.014975051395595074, -0.010653030127286911, -0.3419208228588104, 0.07642798870801926, 0.04546095058321953, -0.07452475279569626, -0.4617551565170288, 0.5195125937461853, -0.48663386702537537, 0.18237024545669556, 0.1853531450033188, 0.2810293734073639, 0.0663391649723053, 0.6836099624633789, 0.17998898029327393, 0.7807853817939758, 0.4515138268470764, -0.3000508248806, 0.3406897187232971, 0.3803962469100952, -0.5702590942382812, 0.47947803139686584, -0.780716598033905, 0.10886199027299881, -0.1508147269487381, 0.24239760637283325, -0.9149554967880249, 0.0047582294791936874, 0.09487565606832504, -0.8242472410202026, 0.4919043183326721, -0.07084900885820389, -0.6712884306907654, -0.5772082209587097, -0.3261096775531769, 0.24004168808460236, 0.309910386800766, -0.424813836812973, 0.36714285612106323, 0.36225560307502747, 0.0043429164215922356, -0.7147669196128845, -0.9928726553916931, 0.21616818010807037, -0.03526969254016876, -0.7308999300003052, 0.6790014505386353, -0.09136522561311722, 0.17786097526550293, 0.11683902144432068, -0.11240774393081665, 0.11798553168773651, -0.10723218321800232, 0.16388817131519318, 0.2048650085926056, -0.01435154676437378, -0.003289740765467286, -0.11893655359745026, -0.2945205569267273, -0.04985234513878822, -0.22336332499980927, 0.7968130707740784, -0.3366139233112335, -0.16434216499328613, -0.2550687789916992, 0.3901987671852112, 0.6225147843360901, -0.350005179643631, 0.7517759203910828, 0.9020809531211853, -0.3337031900882721, 0.09608601033687592, -0.5764062404632568, -0.16268320381641388, -0.45739489793777466, 0.44167715311050415, -0.626983106136322, -0.8105892539024353, 0.5605321526527405, 0.23823170363903046, -0.13611355423927307, 0.7750181555747986, 0.5508700609207153, -0.1204245537519455, 0.9883762001991272, 0.3739881217479706, -0.3637698292732239, 0.5217448472976685, -0.7815885543823242, 0.21212433278560638, -0.6223158836364746, -0.6375675797462463, -0.5896958708763123, -0.5175052881240845, -0.9534317255020142, -0.33063068985939026, 0.18938246369361877, -0.0962456613779068, -0.2654837369918823, 0.6819168329238892, -0.6072275638580322, 0.3491707146167755, 0.7216594815254211, 0.26206448674201965, 0.041609831154346466, 0.22026287019252777, -0.34416189789772034, -0.2454317808151245, -0.7103005051612854, -0.22667400538921356, 1.1605299711227417, 0.20417703688144684, 0.676921546459198, -0.017382506281137466, 0.8114348649978638, 0.3661828339099884, -0.2322937548160553, -0.5262893438339233, 0.559330403804779, -0.2560100257396698, -0.6811497807502747, -0.4023325443267822, -0.5139555931091309, -1.1524364948272705, 0.1999567300081253, -0.18078438937664032, -0.47965747117996216, 0.3365618586540222, -0.3882434666156769, -0.08887198567390442, 0.2273167073726654, -0.7127282619476318, 1.1625087261199951, -0.4104771018028259, -0.358717143535614, -0.24454744160175323, -0.7916837930679321, -0.1161520779132843, 0.12553203105926514, 0.0026496644131839275, 0.07508997619152069, -0.030511781573295593, 0.7674019932746887, -0.14533200860023499, 0.3932293653488159, -0.14992786943912506, 0.060084354132413864, 0.0691075548529625, -0.10259740799665451, 0.45113617181777954, 0.023637454956769943, -0.1458876132965088, 0.5573412775993347, -0.09508131444454193, -0.3594917953014374, -0.45859742164611816, 0.941386878490448, -0.9092797040939331, -0.528457760810852, -0.40517938137054443, -0.37359124422073364, -0.02331961877644062, 0.3436296880245209, 0.8349807262420654, 0.41789931058883667, -0.13979394733905792, 0.49483227729797363, 0.7636218667030334, -0.37058860063552856, 0.397290974855423, 0.4818350076675415, 0.1627991497516632, -0.6933791637420654, 1.0125125646591187, 0.2850179374217987, -0.0618029348552227, 0.7061678767204285, -0.11976557970046997, -0.5594833493232727, -0.5010523796081543, -0.38786181807518005, 0.36850300431251526, -0.7092568278312683, -0.20876798033714294, -0.7601418495178223, -0.38221317529678345, -0.6176668405532837, -0.09134244173765182, -0.260723352432251, -0.3800526559352875, -0.10928966104984283, -0.4295940101146698, 0.15171071887016296, 0.38740918040275574, -0.009313227608799934, 0.012265993282198906, -0.43690210580825806, 0.3461175262928009, 0.019309857860207558, 0.393306165933609, -0.2502424120903015, -0.7892860174179077, -0.47264382243156433, 0.00017700792523100972, -0.19020722806453705, -0.8601968884468079, 0.5396149158477783, 0.0230781938880682, 0.8057194352149963, 0.23565904796123505, 0.025788620114326477, 0.5812135934829712, -0.4776352643966675, 0.8805010914802551, -0.00875394232571125, -0.7231526374816895, 0.5787044763565063, -0.06796915829181671, 0.3180828392505646, 0.8226488828659058, 0.572786808013916, -0.6908993721008301, -0.36127254366874695, -0.8041882514953613, -1.0960150957107544, 0.8240169286727905, 0.08499652147293091, 0.02588418684899807, -0.17692726850509644, 0.11741964519023895, -0.1057787612080574, 0.08180637657642365, -0.8487926125526428, -0.573750376701355, -0.321321964263916, -0.3013302981853485, -0.3010735809803009, -0.2940038740634918, 0.08162977546453476, -0.5889987349510193, 0.8562218546867371, 0.10540016740560532, 0.47449618577957153, 0.4336845576763153, -0.40450945496559143, 0.24375618994235992, 0.16143442690372467, 0.5264139771461487, 0.46674543619155884, -0.20012369751930237, 0.08172290027141571, 0.5000625252723694, -0.4444137513637543, -0.010895052924752235, 0.4066074788570404, -0.38240164518356323, 0.3181878924369812, 0.3121494948863983, 0.8749380707740784, 0.23053885996341705, -0.5492454171180725, 0.5855940580368042, 0.019743982702493668, -0.3389640748500824, -0.39772719144821167, -0.31808406114578247, 0.04986163601279259, 0.26787567138671875, 0.30467891693115234, -0.2832140326499939, 0.1615900993347168, -0.34970757365226746, 0.29430535435676575, 0.29827964305877686, -0.5341602563858032, -0.15038885176181793, 0.6472145318984985, 0.200861394405365, -0.2902110517024994, 0.8129263520240784, -0.17629441618919373, -0.7362829446792603, 0.5149235129356384, 0.339129239320755, 0.8934214115142822, -0.14337077736854553, 0.20064058899879456, 0.739309549331665, 0.5738106369972229, 0.06802192330360413, 0.3064495623111725, -0.04975426197052002, -0.6555296778678894, -0.17704010009765625, -0.5779855251312256, 0.0945020392537117, 0.11695515364408493, -0.5409355759620667, 0.35625410079956055, -0.0807747021317482, -0.1922723352909088, -0.06487512588500977, 0.38437244296073914, -0.9448078870773315, 0.1734713613986969, 0.1364242285490036, 1.2687036991119385, -0.751162588596344, 1.0303186178207397, 0.6764721274375916, -0.7807266116142273, -0.5243756771087646, -0.0758451446890831, -0.3827361464500427, -0.7048034071922302, 0.5808017253875732, 0.11506094038486481, 0.06388639658689499, 0.026900967583060265, -0.27006515860557556, -0.865655779838562, 1.2917665243148804, 0.37069305777549744, -0.45478853583335876, -0.16502922773361206, 0.3111802339553833, 0.7039151787757874, -0.1357267051935196, 0.46129295229911804, 0.5767773389816284, 0.666962742805481, -0.1788424551486969, -0.8784574270248413, 0.10066397488117218, -0.5554502606391907, -0.057287029922008514, 0.18207427859306335, -0.8643430471420288, 0.6793203353881836, -0.07570882886648178, -0.1376616507768631, -0.15204109251499176, 0.4913223385810852, 0.05873827263712883, 0.23038949072360992, 0.35299134254455566, 1.0104717016220093, 0.6003324389457703, -0.4062502384185791, 1.1627366542816162, -0.5398821234703064, 0.4972223937511444, 0.780059278011322, 0.20879921317100525, 0.803125262260437, 0.40180733799934387, -0.24921225011348724, 0.6614663600921631, 0.8348699808120728, -0.30337390303611755, 0.7227749228477478, -0.04151768609881401, 0.05423613637685776, -0.3556571304798126, 0.08744372427463531, -0.5646722316741943, 0.46001094579696655, 0.14773504436016083, -0.5182363986968994, -0.17369134724140167, 0.025684384629130363, 0.07596146315336227, -0.08382448554039001, -0.04101056978106499, 0.6828099489212036, -0.06952468305826187, -0.69798344373703, 0.7669313549995422, 0.16786867380142212, 0.8568003177642822, -0.6059037446975708, 0.2088262140750885, -0.5345166921615601, 0.15696227550506592, -0.12905453145503998, -0.9716174602508545, 0.1355840265750885, -0.12614409625530243, -0.3364158272743225, -0.3607991933822632, 0.5119871497154236, -0.589658260345459, -0.6008158326148987, 0.542477011680603, 0.5379329919815063, 0.3241536617279053, 0.005364079959690571, -0.9464365243911743, -0.1259353756904602, 0.20654676854610443, -0.38223764300346375, 0.2441416233778, 0.5403301119804382, 0.0015277434140443802, 0.5812661647796631, 0.5222939252853394, -0.09450407326221466, 0.12373120337724686, 0.17400482296943665, 0.6875515580177307, -0.8075768947601318, -0.4026595950126648, -0.6955326199531555, 0.3331371247768402, -0.35584571957588196, -0.43992096185684204, 0.9386641383171082, 1.0313084125518799, 1.2539561986923218, -0.1482778638601303, 0.6445420980453491, -0.2810204327106476, 0.258817195892334, -0.41942986845970154, 0.770301103591919, -0.8238673806190491, 0.03480207920074463, -0.14037756621837616, -0.7970101237297058, -0.10770607739686966, 0.5653948783874512, -0.3440345823764801, 0.11491430550813675, 0.6254658699035645, 0.9212338328361511, 0.0016678355168551207, -0.2445652335882187, 0.21402528882026672, 0.172388955950737, 0.08178474009037018, 0.9297587871551514, 0.5957309603691101, -0.7502170205116272, 0.9588667750358582, -0.40156295895576477, 0.16882041096687317, -0.24932190775871277, -0.413485050201416, -0.7576218843460083, -0.7831100225448608, -0.32708239555358887, -0.44860923290252686, 0.03689420223236084, 0.752932071685791, 0.5084422826766968, -0.8034892082214355, -0.08740247786045074, 0.1028662919998169, 0.17394031584262848, -0.23587965965270996, -0.2527889609336853, 0.5926228761672974, -0.23228493332862854, -1.0881012678146362, 0.4392642676830292, -0.05574434623122215, -0.09245917946100235, -0.17561306059360504, -0.39062899351119995, -0.3783879280090332, -0.2453729212284088, 0.5026494264602661, 0.1477559208869934, -0.7827683091163635, -0.15043626725673676, 0.40420177578926086, -0.39403578639030457, 0.12231994420289993, 0.515228271484375, -0.7688578963279724, 0.4082375466823578, 0.8237622380256653, 0.5716521739959717, 0.9560518264770508, -0.22080324590206146, 0.35139745473861694, -0.693364143371582, 0.08754599094390869, 0.15615876019001007, 0.6162869334220886, 0.403120219707489, -0.3083125054836273, 0.8522415161132812, 0.4167293608188629, -0.5079257488250732, -0.7017815709114075, -0.1817483752965927, -1.0328607559204102, -0.3918350338935852, 1.1569654941558838, -0.1010495275259018, -0.1874680370092392, 0.030031440779566765, -0.18135401606559753, 0.3957214653491974, -0.4511604905128479, 0.7421863079071045, 0.7515992522239685, 0.12456315010786057, -0.2630555033683777, -0.5414997935295105, 0.2800937592983246, 0.2972182333469391, -0.5677147507667542, -0.2379329800605774, 0.4214913249015808, 0.48214685916900635, 0.2880300283432007, 0.41701748967170715, -0.3593055009841919, 0.1699528694152832, 0.09186699986457825, 0.24316978454589844, -0.29645735025405884, -0.2987775504589081, -0.34939444065093994, 0.17642134428024292, -0.3812870383262634, -0.36567452549934387 ]
TheBloke/Llama-2-70B-Chat-GPTQ
TheBloke
"2023-09-27T12:44:49Z"
42,633
231
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-07-18T23:33:13Z"
--- 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 - GPTQ - 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 GPTQ model files for [Meta Llama 2's Llama 2 70B Chat](https://huggingface.co/meta-llama/Llama-2-70b-chat-hf). 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/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_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/Llama-2-70B-chat-GPTQ/tree/main) | 4 | None | Yes | 0.01 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 35.33 GB | Yes | 4-bit, with Act Order. No group size, to lower VRAM requirements. | | [gptq-4bit-32g-actorder_True](https://huggingface.co/TheBloke/Llama-2-70B-chat-GPTQ/tree/gptq-4bit-32g-actorder_True) | 4 | 32 | Yes | 0.01 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 40.66 GB | Yes | 4-bit, with Act Order and group size 32g. Gives highest possible inference quality, with maximum VRAM usage. | | [gptq-4bit-128g-actorder_True](https://huggingface.co/TheBloke/Llama-2-70B-chat-GPTQ/tree/gptq-4bit-128g-actorder_True) | 4 | 128 | Yes | 0.01 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 36.65 GB | Yes | 4-bit, with Act Order and group size 128g. Uses even less VRAM than 64g, but with slightly lower accuracy. | | [gptq-3bit-64g-actorder_True](https://huggingface.co/TheBloke/Llama-2-70B-chat-GPTQ/tree/gptq-3bit-64g-actorder_True) | 3 | 64 | Yes | 0.01 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 29.30 GB | No | 3-bit, with group size 64g and act-order. | | [gptq-3bit-128g-actorder_True](https://huggingface.co/TheBloke/Llama-2-70B-chat-GPTQ/tree/gptq-3bit-128g-actorder_True) | 3 | 128 | Yes | 0.01 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 28.03 GB | No | 3-bit, with group size 128g and act-order. Higher quality than 128g-False. | | [gptq-3bit-128g-actorder_False](https://huggingface.co/TheBloke/Llama-2-70B-chat-GPTQ/tree/gptq-3bit-128g-actorder_False) | 3 | 128 | No | 0.01 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 28.03 GB | No | 3-bit, with group size 128g but no act-order. Slightly higher VRAM requirements than 3-bit None. | | [gptq-3bit--1g-actorder_True](https://huggingface.co/TheBloke/Llama-2-70B-chat-GPTQ/tree/gptq-3bit--1g-actorder_True) | 3 | None | Yes | 0.01 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 26.78 GB | No | 3-bit, with Act Order and no group size. Lowest possible VRAM requirements. May be lower quality than 3-bit 128g. | | [gptq-4bit-64g-actorder_True](https://huggingface.co/TheBloke/Llama-2-70B-chat-GPTQ/tree/gptq-4bit-64g-actorder_True) | 4 | 64 | Yes | 0.01 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 37.99 GB | Yes | 4-bit, with Act Order and group size 64g. Uses less VRAM than 32g, but with slightly lower accuracy. | <!-- README_GPTQ.md-provided-files end --> <!-- README_GPTQ.md-download-from-branches start --> ## How to download from branches - In text-generation-webui, you can add `:branch` to the end of the download name, eg `TheBloke/Llama-2-70B-chat-GPTQ:main` - With Git, you can clone a branch with: ``` git clone --single-branch --branch main https://huggingface.co/TheBloke/Llama-2-70B-chat-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/Llama-2-70B-chat-GPTQ`. - To download from a specific branch, enter for example `TheBloke/Llama-2-70B-chat-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: `Llama-2-70B-chat-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/Llama-2-70B-chat-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'''[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:") 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: 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.5413955450057983, -0.7968295812606812, 0.11966852843761444, 0.31978851556777954, -0.37869545817375183, -0.045235808938741684, 0.05379966273903847, -0.6515614986419678, 0.3823477029800415, 0.28407490253448486, -0.670013964176178, -0.4920218288898468, -0.4516793191432953, -0.10774175077676773, -0.3094467520713806, 1.1156623363494873, 0.16882513463497162, -0.44807565212249756, -0.07809291779994965, -0.2757169008255005, -0.33995959162712097, -0.5251334309577942, -0.7630438208580017, -0.12288343906402588, 0.34316152334213257, 0.27823325991630554, 0.8465778827667236, 0.5391041040420532, 0.23871301114559174, 0.3304048478603363, -0.14390452206134796, 0.052457619458436966, -0.6464262008666992, -0.1846197545528412, 0.27843666076660156, -0.2785757780075073, -0.6989631056785583, 0.09476769715547562, 0.3665368854999542, 0.20565448701381683, -0.33262670040130615, 0.29546988010406494, 0.06975530087947845, 0.5616161823272705, -0.39383041858673096, 0.21182410418987274, -0.457048237323761, 0.022175269201397896, -0.1698414534330368, 0.07090771198272705, -0.0622088797390461, -0.3946463167667389, 0.0067969877272844315, -0.8072915077209473, 0.006359175778925419, 0.04236548766493797, 1.1331639289855957, 0.12630710005760193, -0.6208841800689697, 0.13296294212341309, -0.3386631906032562, 0.6302767395973206, -0.9524774551391602, 0.2988438606262207, 0.6320297718048096, 0.18032993376255035, -0.3394494652748108, -0.7764353156089783, -0.6660289764404297, 0.05680353194475174, -0.19155985116958618, 0.18984030187129974, -0.4887584149837494, 0.042278699576854706, 0.4235397279262543, 0.6781988739967346, -0.8357260823249817, -0.056503042578697205, -0.25928565859794617, -0.23989155888557434, 0.8644676208496094, 0.1780213713645935, 0.32615217566490173, -0.2339683473110199, -0.2940572202205658, -0.40024805068969727, -0.5939158797264099, 0.1191924437880516, 0.3359215557575226, -0.05041798576712608, -0.7348732948303223, 0.5339871048927307, -0.4066430926322937, 0.41660669445991516, 0.17180965840816498, -0.3259935677051544, 0.39910805225372314, -0.6411678791046143, -0.426985502243042, -0.40112194418907166, 1.2038196325302124, 0.5858944654464722, -0.19059978425502777, 0.28413835167884827, 0.07024263590574265, -0.023263420909643173, -0.15475395321846008, -0.9513373374938965, -0.4308698773384094, 0.4084228575229645, -0.5470180511474609, -0.32838186621665955, -0.14372827112674713, -0.7311059832572937, -0.07717923820018768, 0.045545272529125214, 0.3494134545326233, -0.47434699535369873, -0.5090005397796631, 0.06825746595859528, -0.325739324092865, 0.5719202160835266, 0.32554954290390015, -0.6708981990814209, 0.5353857278823853, 0.3922991454601288, 0.7362281680107117, 0.06408512592315674, -0.03850332275032997, -0.11203579604625702, 0.042414624243974686, -0.11920194327831268, 0.4978678524494171, -0.21584640443325043, -0.5064277648925781, -0.4441984295845032, 0.24187935888767242, 0.1424912065267563, -0.22331051528453827, 0.5285240411758423, -0.2629304528236389, 0.38975024223327637, -0.48083919286727905, -0.5226056575775146, -0.3549167513847351, 0.07041696459054947, -0.5775219202041626, 1.337468147277832, 0.36628425121307373, -0.8651450872421265, 0.22652795910835266, -0.5020667314529419, -0.14283059537410736, -0.09088962525129318, -0.04297998920083046, -0.47335106134414673, -0.1943369358778, 0.24075359106063843, 0.3503057062625885, -0.3911438286304474, 0.09552337974309921, -0.3821585774421692, -0.3252566158771515, 0.21156591176986694, -0.5709981322288513, 1.216285228729248, 0.09569092839956284, -0.43840518593788147, -0.1237252876162529, -0.6629343032836914, 0.14003533124923706, 0.4909782409667969, -0.18465806543827057, -0.08632831275463104, -0.049596287310123444, -0.003947930410504341, 0.17267973721027374, 0.2967665195465088, -0.41733577847480774, 0.4361966550350189, -0.2085091918706894, 0.5408079624176025, 0.6725115776062012, 0.10314369201660156, 0.2037014365196228, -0.47235456109046936, 0.4189073443412781, 0.09113841503858566, 0.6503753662109375, 0.13587480783462524, -0.8357599973678589, -0.7444787621498108, -0.3178758919239044, 0.18360957503318787, 0.6930432319641113, -0.6277638673782349, 0.6230688691139221, -0.18862876296043396, -0.7430163621902466, -0.33547571301460266, -0.02317778207361698, 0.3390146493911743, 0.28786370158195496, 0.36920514702796936, -0.532429575920105, -0.42282816767692566, -0.9250707030296326, 0.18860401213169098, -0.5053994655609131, -0.031906478106975555, 0.6264774799346924, 0.707640528678894, -0.3314845860004425, 0.7285054326057434, -0.6340097784996033, -0.02732080966234207, 0.07040470838546753, 0.008517819456756115, 0.4098671078681946, 0.5394516587257385, 0.8268448114395142, -0.7217525839805603, -0.5638225078582764, -0.07090858370065689, -0.6309818029403687, -0.09520267695188522, -0.011184528470039368, -0.4717693626880646, 0.26099830865859985, -0.07426752150058746, -1.0930894613265991, 0.7265751957893372, 0.6295855641365051, -0.6129031777381897, 0.6225857138633728, -0.09266649931669235, 0.19299902021884918, -1.0571725368499756, -0.02385076880455017, 0.014325308613479137, -0.30301907658576965, -0.46269354224205017, -0.17446516454219818, -0.1391248106956482, 0.2824309468269348, -0.3441329002380371, 0.6517720818519592, -0.4935859739780426, -0.07113233953714371, 0.06781817972660065, 0.01630326360464096, 0.24119599163532257, 0.6159246563911438, -0.21859590709209442, 0.8390073776245117, 0.503244161605835, -0.40461432933807373, 0.6003534197807312, 0.5296921133995056, -0.04706170782446861, 0.34901362657546997, -0.8329642415046692, 0.2813969552516937, 0.21860304474830627, 0.4868743121623993, -1.1168104410171509, -0.2748028635978699, 0.5796405076980591, -0.6424862146377563, 0.3504657745361328, -0.27264878153800964, -0.47540342807769775, -0.4122835695743561, -0.6680169701576233, 0.3951408267021179, 0.7915415167808533, -0.4142487347126007, 0.2869773507118225, 0.4811003804206848, 0.015268325805664062, -0.7195402383804321, -0.6670935153961182, -0.08351960778236389, -0.28758689761161804, -0.6032737493515015, 0.39363548159599304, -0.10499324649572372, -0.027818305417895317, 0.07420354336500168, -0.07924573123455048, -0.0728423148393631, -0.05076763778924942, 0.4154830574989319, 0.3281036913394928, -0.10572583973407745, -0.19737842679023743, 0.15227238833904266, 0.043840449303388596, -0.01195142138749361, -0.18160484731197357, 0.4767686128616333, -0.2529744803905487, -0.1455644965171814, -0.46584177017211914, 0.32308652997016907, 0.4711045026779175, 0.13327929377555847, 0.8484324812889099, 0.7877105474472046, -0.2884192168712616, 0.27006426453590393, -0.5988373756408691, -0.13318708539009094, -0.5028495788574219, 0.22020961344242096, -0.20542234182357788, -0.8620938658714294, 0.6496424078941345, 0.4544948637485504, 0.21014268696308136, 0.752362847328186, 0.4447230398654938, -0.08205699175596237, 0.9766265749931335, 0.4107131063938141, -0.2832286059856415, 0.47247833013534546, -0.4869210124015808, -0.10151167958974838, -0.801950216293335, -0.24371744692325592, -0.27217912673950195, -0.30622750520706177, -0.8850987553596497, -0.6190980672836304, 0.2691565155982971, 0.24411532282829285, -0.6730438470840454, 0.5679572224617004, -0.6458455920219421, 0.2329389601945877, 0.5509549379348755, 0.23252767324447632, 0.1610828936100006, 0.007770803291350603, -0.04563212767243385, 0.05349079892039299, -0.5417657494544983, -0.33571767807006836, 1.0906875133514404, 0.40512168407440186, 0.63039231300354, 0.2836802899837494, 0.4019085466861725, 0.14042943716049194, 0.3029286563396454, -0.4563419818878174, 0.6808479428291321, 0.11300154775381088, -0.6581584215164185, -0.3088480532169342, -0.5716508030891418, -0.8519917726516724, 0.22481591999530792, -0.10266203433275223, -0.8726755976676941, 0.34898123145103455, -0.057904720306396484, -0.18720762431621552, 0.27488693594932556, -0.6847259998321533, 0.9001874923706055, -0.1735907793045044, -0.28456220030784607, -0.08810818940401077, -0.7898305058479309, 0.44317299127578735, 0.1564989537000656, -0.02550237998366356, -0.31035950779914856, -0.25040203332901, 0.8817975521087646, -0.8322407007217407, 0.8928446173667908, -0.2719649076461792, -0.0643220916390419, 0.5614064931869507, -0.10544957220554352, 0.6034608483314514, 0.14737233519554138, 0.09729210287332535, 0.47227737307548523, 0.36874622106552124, -0.4570099413394928, -0.35994747281074524, 0.5537281632423401, -1.0501714944839478, -0.5721575617790222, -0.3706231713294983, -0.4013718068599701, -0.051870107650756836, -0.06169239059090614, 0.3904372751712799, 0.2734740078449249, -0.055533185601234436, 0.1810094565153122, 0.5873589515686035, -0.4318844676017761, 0.3806585669517517, 0.29585134983062744, -0.22253283858299255, -0.633717954158783, 0.7399068474769592, -0.01389972772449255, 0.2818635404109955, 0.22824999690055847, -0.013114199042320251, -0.49920985102653503, -0.370577871799469, -0.5423172116279602, 0.4015531837940216, -0.5057263970375061, -0.5166287422180176, -0.59187251329422, -0.36040085554122925, -0.3564518392086029, 0.28553107380867004, -0.3478851020336151, -0.7291455864906311, -0.5285232663154602, -0.1425679326057434, 1.074790120124817, 0.3903525471687317, -0.20612822473049164, 0.37745463848114014, -0.7800604701042175, 0.2432258576154709, 0.37641292810440063, 0.30921119451522827, -0.08917522430419922, -0.758949339389801, 0.033392660319805145, 0.28479233384132385, -0.5199424624443054, -1.0102342367172241, 0.5655310750007629, 0.32868093252182007, 0.5102575421333313, 0.47946467995643616, 0.08005230128765106, 0.9322200417518616, -0.19508953392505646, 1.0571061372756958, 0.24032463133335114, -0.8690215945243835, 0.5700759887695312, -0.4726090729236603, 0.012594347819685936, 0.40718671679496765, 0.5008460879325867, -0.43602126836776733, -0.32197341322898865, -0.7993708848953247, -0.7820992469787598, 0.5037926435470581, 0.4551885724067688, 0.17371758818626404, 0.028130698949098587, 0.6001315116882324, -0.041607219725847244, 0.11979920417070389, -0.8597766160964966, -0.6808875203132629, -0.35408225655555725, -0.11973275244235992, 0.1414940059185028, -0.2797500491142273, -0.22776131331920624, -0.6614490151405334, 0.7854281663894653, -0.14831754565238953, 0.7799744606018066, 0.19851723313331604, 0.23034538328647614, -0.03823521360754967, 0.008544077165424824, 0.4780578315258026, 0.47940266132354736, -0.14644260704517365, -0.21497495472431183, 0.353201687335968, -0.7835925817489624, 0.19172930717468262, 0.2061661183834076, 0.06924296170473099, -0.1980617791414261, 0.21662726998329163, 0.8644965887069702, -0.01224436890333891, -0.3896745443344116, 0.6068065762519836, -0.3699023425579071, -0.34293392300605774, -0.257608562707901, 0.2376951277256012, 0.2514857351779938, 0.45465901494026184, 0.35427114367485046, -0.35267406702041626, 0.21144159138202667, -0.5003975033760071, 0.16648922860622406, 0.5936683416366577, -0.04165180027484894, -0.38798272609710693, 0.7434529662132263, -0.05483746901154518, 0.1005181223154068, 0.6837742924690247, -0.2647660970687866, -0.4077296257019043, 0.755419909954071, 0.48308393359184265, 0.6304618716239929, -0.15940293669700623, 0.22740241885185242, 0.5049965977668762, 0.18529726564884186, 0.005187733564525843, 0.4351556897163391, -0.11407360434532166, -0.6520532965660095, -0.4019545316696167, -0.5927454233169556, -0.34514546394348145, 0.28612589836120605, -0.7006587386131287, 0.09777995198965073, -0.3735450804233551, -0.46543654799461365, -0.25609105825424194, 0.40360620617866516, -0.5043602585792542, 0.13744844496250153, 0.022338809445500374, 0.9487788081169128, -0.7863152623176575, 0.8529301881790161, 0.4546714425086975, -0.28864482045173645, -0.9539898633956909, -0.31638699769973755, 0.18145495653152466, -0.7087571024894714, 0.18589939177036285, -0.04602920636534691, 0.2806219756603241, -0.08777280896902084, -0.8140267133712769, -1.0023020505905151, 1.5399945974349976, 0.2777593433856964, -0.5492426753044128, 0.021141044795513153, 0.020894058048725128, 0.3849797546863556, -0.0781521126627922, 0.688933789730072, 0.5909118056297302, 0.3786556124687195, 0.27076733112335205, -1.0576505661010742, 0.41082292795181274, -0.5505989789962769, 0.015148392878472805, 0.1191549301147461, -1.0516412258148193, 0.8888899683952332, 0.015988752245903015, -0.1990891546010971, 0.11698449403047562, 0.7097898125648499, 0.47236064076423645, 0.03198935091495514, 0.4583081603050232, 0.7853891849517822, 0.7595218420028687, -0.34945616126060486, 1.1015262603759766, -0.17171743512153625, 0.49096566438674927, 0.7360844016075134, 0.044935669749975204, 0.7578566074371338, 0.29935982823371887, -0.7365047931671143, 0.5227752327919006, 1.0733908414840698, -0.005450452212244272, 0.3847793638706207, -0.039640240371227264, -0.3076850473880768, -0.047792669385671616, 0.13467301428318024, -0.7219597697257996, 0.17041757702827454, 0.4892035722732544, -0.10635547339916229, 0.14720650017261505, -0.1966070830821991, 0.1531210094690323, -0.717510461807251, -0.033205077052116394, 0.6699773073196411, 0.2639063894748688, -0.19739793241024017, 0.8945764899253845, -0.1419716775417328, 0.7728315591812134, -0.46598324179649353, -0.15724767744541168, -0.4860888719558716, -0.12296240776777267, -0.29374876618385315, -0.8769486546516418, 0.2590724229812622, -0.10907293856143951, -0.0025533728767186403, 0.05522624030709267, 0.668626070022583, -0.13433581590652466, -0.3386789858341217, 0.376775860786438, 0.4342009127140045, 0.39751049876213074, 0.0007747365161776543, -0.9999046921730042, 0.3097074329853058, 0.07661247998476028, -0.7194715142250061, 0.45760437846183777, 0.4355599284172058, 0.10000219196081161, 0.7361486554145813, 0.634921669960022, -0.12071654200553894, 0.017875244840979576, -0.25917351245880127, 1.0733400583267212, -0.7675464153289795, -0.24685850739479065, -0.803800106048584, 0.5197612047195435, -0.22379374504089355, -0.3682835102081299, 0.7597271203994751, 0.5143147706985474, 0.6300693154335022, 0.23581144213676453, 0.5655444860458374, -0.4402899742126465, 0.24844415485858917, -0.25375044345855713, 0.58977872133255, -0.6673551797866821, 0.15238721668720245, -0.37752610445022583, -0.7031792998313904, -0.047660402953624725, 0.7908852696418762, -0.08547454327344894, 0.2103729248046875, 0.3473772406578064, 0.8900318741798401, 0.0584464929997921, 0.1681833267211914, 0.15551041066646576, 0.39931055903434753, 0.2542853355407715, 0.9113188982009888, 0.815447986125946, -0.8936428427696228, 0.5707276463508606, -0.39947667717933655, -0.2894585430622101, -0.1313389092683792, -0.8056581020355225, -0.8032441735267639, -0.5049601197242737, -0.5771421790122986, -0.5314176082611084, -0.09945347905158997, 0.8397998213768005, 0.790774941444397, -0.6186692118644714, -0.2654910087585449, 0.045243967324495316, 0.08691900223493576, -0.23831532895565033, -0.29579243063926697, 0.33260735869407654, 0.43567004799842834, -0.5441629886627197, 0.13811875879764557, 0.09104166179895401, 0.4103427827358246, -0.09686804562807083, -0.344279021024704, -0.19096900522708893, 0.07173212617635727, 0.6860032677650452, 0.5071002840995789, -0.5954044461250305, -0.28345218300819397, -0.09054578095674515, -0.1401624232530594, 0.26329049468040466, 0.08740335702896118, -0.6451337337493896, -0.16211429238319397, 0.46136927604675293, 0.15060926973819733, 0.8856974244117737, 0.12520653009414673, 0.18556812405586243, -0.560302734375, 0.21285061538219452, 0.01396926213055849, 0.2631380558013916, 0.06392821669578552, -0.5660389065742493, 0.6686493158340454, 0.3702777922153473, -0.6192870736122131, -0.791290283203125, -0.18652890622615814, -1.259366512298584, -0.07247567921876907, 1.177841305732727, -0.1445067673921585, -0.31933170557022095, -0.029768584296107292, -0.34600144624710083, 0.2789079546928406, -0.472129225730896, 0.31879922747612, 0.4960373640060425, -0.37811219692230225, -0.4007151424884796, -0.7580217123031616, 0.539225161075592, 0.16174952685832977, -0.9169803857803345, -0.028200965374708176, 0.5318441390991211, 0.4864298403263092, -0.01815423183143139, 1.0083073377609253, -0.21100306510925293, 0.2445758581161499, 0.0927225723862648, -0.0076917060650885105, 0.1015116348862648, 0.1354464888572693, -0.20795662701129913, -0.14067813754081726, -0.1921783834695816, -0.12634801864624023 ]
Vamsi/T5_Paraphrase_Paws
Vamsi
"2023-06-12T06:31:04Z"
42,536
23
transformers
[ "transformers", "pytorch", "tf", "jax", "safetensors", "t5", "text2text-generation", "paraphrase-generation", "text-generation", "Conditional Generation", "en", "autotrain_compatible", "has_space", "text-generation-inference", "region:us" ]
text-generation
"2022-03-02T23:29:05Z"
--- language: "en" tags: - paraphrase-generation - text-generation - Conditional Generation inference: false --- # Paraphrase-Generation ​ ## Model description ​ T5 Model for generating paraphrases of english sentences. Trained on the [Google PAWS](https://github.com/google-research-datasets/paws) dataset. ​ ## How to use ​## Requires sentencepiece: # !pip install sentencepiece PyTorch and TF models available ​ ```python from transformers import AutoTokenizer, AutoModelForSeq2SeqLM ​ tokenizer = AutoTokenizer.from_pretrained("Vamsi/T5_Paraphrase_Paws") model = AutoModelForSeq2SeqLM.from_pretrained("Vamsi/T5_Paraphrase_Paws").to('cuda') ​ sentence = "This is something which i cannot understand at all" text = "paraphrase: " + sentence + " </s>" encoding = tokenizer.encode_plus(text,pad_to_max_length=True, return_tensors="pt") input_ids, attention_masks = encoding["input_ids"].to("cuda"), encoding["attention_mask"].to("cuda") outputs = model.generate( input_ids=input_ids, attention_mask=attention_masks, max_length=256, do_sample=True, top_k=120, top_p=0.95, early_stopping=True, num_return_sequences=5 ) for output in outputs: line = tokenizer.decode(output, skip_special_tokens=True,clean_up_tokenization_spaces=True) print(line) ​ ``` For more reference on training your own T5 model or using this model, do check out [Paraphrase Generation](https://github.com/Vamsi995/Paraphrase-Generator).
[ 0.05712434649467468, -0.517326295375824, 0.404783695936203, 0.31923869252204895, -0.4870409667491913, -0.15254871547222137, 0.11112692952156067, -0.04544829577207565, 0.10670642554759979, 0.5442941784858704, -0.5579442381858826, -0.5970739722251892, -0.4336368143558502, 0.3229203224182129, -0.4443351924419403, 1.1488858461380005, 0.042488373816013336, 0.15812009572982788, -0.1597246527671814, -0.005199420265853405, -0.25406089425086975, -0.4157286286354065, -0.5336416959762573, -0.27039846777915955, 0.1707315444946289, 0.4538191854953766, 0.265282541513443, 0.5233901739120483, 0.2918005585670471, 0.3559091091156006, -0.17091190814971924, 0.027657361701130867, -0.3282328248023987, 0.024782652035355568, -0.07525236904621124, -0.46375325322151184, -0.35228627920150757, -0.150935098528862, 0.4645310640335083, 0.44246557354927063, -0.1273581087589264, 0.23039817810058594, -0.019864479079842567, -0.0758453905582428, -0.4734640121459961, 0.19094476103782654, -0.5773459672927856, 0.1298881322145462, -0.16023023426532745, -0.23301352560520172, -0.3653610050678253, -0.28662458062171936, -0.041106320917606354, -0.7442710995674133, 0.40183013677597046, 0.02070215530693531, 1.281092882156372, 0.2696654796600342, -0.31214869022369385, -0.46062299609184265, -0.3348250389099121, 0.8409297466278076, -0.901590883731842, -0.04059481993317604, 0.50723797082901, 0.20975689589977264, 0.00832303985953331, -1.425433874130249, -0.570354163646698, -0.09800418466329575, -0.07359383255243301, 0.054083652794361115, 0.01908239908516407, -0.06072674319148064, 0.39986446499824524, 0.4932098090648651, -0.5967597365379333, -0.5724298357963562, -0.7064156532287598, -0.17891627550125122, 0.406825453042984, 0.3904989957809448, 0.373648077249527, -0.4665115475654602, -0.23574666678905487, -0.18541617691516876, -0.37568801641464233, 0.19886822998523712, 0.20676879584789276, 0.010664214380085468, -0.16462203860282898, 0.6178009510040283, -0.2595779299736023, 0.45303383469581604, 0.4139541685581207, -0.1246047392487526, 0.4013490080833435, -0.3902387022972107, -0.28890419006347656, -0.2039012908935547, 0.9131950736045837, 0.34502914547920227, 0.11518368870019913, -0.32279473543167114, -0.14323000609874725, -0.06940010190010071, 0.24946892261505127, -0.9758245348930359, -0.4910486042499542, 0.2513166069984436, -0.41333308815956116, -0.8128799200057983, 0.1535172313451767, -0.5749760270118713, -0.04814527928829193, 0.0514565110206604, 0.6743571758270264, -0.5110997557640076, 0.04892587289214134, 0.3272211253643036, -0.4962013065814972, 0.3647818863391876, -0.4423639476299286, -1.0015249252319336, 0.2853129804134369, 0.3393867015838623, 0.7240193486213684, 0.22569513320922852, -0.5966324210166931, -0.5978809595108032, 0.21688693761825562, -0.19497986137866974, 0.48260176181793213, -0.4335457682609558, -0.4638464152812958, -0.17847323417663574, 0.3221100866794586, -0.13527776300907135, -0.4377794861793518, 0.8602960109710693, -0.15361559391021729, 0.6642479300498962, -0.09547920525074005, -0.6557169556617737, -0.14092586934566498, 0.09295066446065903, -0.3466429114341736, 0.9056822061538696, -0.004897851962596178, -0.926723301410675, 0.22487445175647736, -0.7450533509254456, -0.5994909405708313, 0.0989169254899025, -0.013450541533529758, -0.6537566184997559, 0.13718262314796448, 0.49241065979003906, 0.4999330937862396, -0.13084928691387177, 0.3746446669101715, -0.5209802389144897, -0.22211219370365143, 0.24063953757286072, -0.1270010620355606, 1.0425875186920166, 0.2141909897327423, -0.49719157814979553, 0.11902570724487305, -0.7583484649658203, 0.12700429558753967, 0.3285669684410095, -0.1265832781791687, 0.054337844252586365, -0.13230127096176147, 0.26989126205444336, 0.4001328647136688, 0.45039573311805725, -0.592474102973938, 0.007718919776380062, -0.4946287274360657, 1.1110103130340576, 0.395821750164032, 0.30124324560165405, 0.2979462146759033, -0.49147289991378784, 0.5166691541671753, 0.16894583404064178, 0.18143890798091888, -0.10207150131464005, -0.15415911376476288, -0.816528856754303, 0.017455723136663437, 0.2769712507724762, 0.45226362347602844, -0.9824670553207397, 0.5156569480895996, -0.26718252897262573, -0.44841456413269043, -0.6663420796394348, 0.05857448652386665, 0.3436739146709442, 0.6409528255462646, 0.5012502670288086, -0.06057579815387726, -0.6430330276489258, -0.7250505685806274, -0.2176605463027954, 0.06167173013091087, -0.09436318278312683, 0.07701805979013443, 0.8121054172515869, 0.12521056830883026, 0.6773121953010559, -0.5101526975631714, -0.19895538687705994, -0.3531743288040161, 0.27024132013320923, 0.11518247425556183, 0.42403894662857056, 0.43226075172424316, -0.6725970506668091, -0.28993669152259827, -0.44900980591773987, -0.8424241542816162, -0.19315801560878754, -0.15606331825256348, -0.1521759033203125, -0.07645690441131592, 0.5274519920349121, -0.7279911637306213, 0.145263209939003, 0.27629995346069336, -0.6130430698394775, 0.35365530848503113, -0.29927462339401245, 0.05049058422446251, -1.7759438753128052, 0.43675497174263, -0.12566353380680084, -0.2347198873758316, -0.42610421776771545, 0.27923116087913513, 0.07072241604328156, -0.1422071009874344, -0.532505214214325, 0.5172407627105713, -0.2804965078830719, 0.1330772340297699, -0.22005409002304077, -0.0193871408700943, 0.18334802985191345, 0.45315468311309814, 0.03253164142370224, 0.8618162870407104, 0.5280230641365051, -0.6658863425254822, 0.38273197412490845, 0.6968075037002563, -0.2351062148809433, 0.24465695023536682, -0.9548715949058533, 0.11908816546201706, 0.17849063873291016, 0.20703263580799103, -0.9015564918518066, -0.5139164924621582, 0.2686469554901123, -0.8010836243629456, -0.19947397708892822, 0.15297691524028778, -0.34999215602874756, -0.4468616843223572, -0.448251873254776, 0.10725010186433792, 0.6070214509963989, -0.5874392986297607, 0.4186246395111084, 0.30184024572372437, -0.10838789492845535, -0.6684167385101318, -0.8749774098396301, 0.36340346932411194, -0.5603219866752625, -0.5870296955108643, 0.3572854995727539, -0.08556629717350006, 0.19248639047145844, -0.06432054191827774, 0.12648071348667145, -0.17331728339195251, 0.035155393183231354, 0.022610284388065338, -0.006585217546671629, -0.10994558781385422, -0.04442347213625908, 0.06846073269844055, 0.06002482399344444, 0.29183274507522583, -0.336386501789093, 0.568310558795929, -0.13554874062538147, 0.2650361955165863, -0.44071269035339355, 0.20637384057044983, 0.7310130000114441, -0.2683095633983612, 0.5504212379455566, 0.7569115161895752, -0.3186417818069458, -0.15739846229553223, -0.20740994811058044, -0.2941361665725708, -0.48582834005355835, 0.3858315646648407, -0.7574501633644104, -0.5107572078704834, 0.5752923488616943, 0.31471970677375793, 0.09383129328489304, 0.5814075469970703, 0.5254730582237244, -0.03543685004115105, 0.9965594410896301, 0.38222137093544006, 0.09588313847780228, 0.27351611852645874, -0.4173710346221924, 0.011151032522320747, -0.7228222489356995, -0.14129464328289032, -0.28844913840293884, 0.01899230293929577, -0.47036370635032654, -0.13803638517856598, 0.1946098804473877, 0.046075157821178436, -0.24270005524158478, 0.38748350739479065, -0.5294468402862549, 0.4069151282310486, 0.7770168781280518, 0.21058906614780426, -0.00094079808332026, 0.07940573990345001, -0.2704273760318756, -0.02280319482088089, -0.6368151307106018, -0.7296131253242493, 1.259002447128296, 0.21472719311714172, 0.5203846096992493, -0.12589654326438904, 0.7803389430046082, 0.06814749538898468, -0.2970016896724701, -0.5301229953765869, 0.6509192585945129, -0.3703896701335907, -0.4639720320701599, -0.1747494786977768, -0.14319215714931488, -0.9435564875602722, 0.009822840802371502, -0.09006189554929733, -0.46413329243659973, -0.18611113727092743, 0.0397757887840271, -0.37705743312835693, 0.20867444574832916, -0.6273461580276489, 1.1667239665985107, 0.029519762843847275, -0.22622394561767578, 0.16698653995990753, -0.7808700203895569, 0.3346496522426605, 0.2511841356754303, -0.3104672431945801, 0.23501405119895935, -0.034258946776390076, 0.8208197951316833, -0.47261539101600647, 0.73818439245224, -0.17344310879707336, 0.2632901072502136, 0.2250281274318695, -0.17576581239700317, 0.2820584774017334, -0.07510712742805481, 0.09948981553316116, -0.14130234718322754, 0.10258734971284866, -0.5874624252319336, -0.23241622745990753, 0.5287885665893555, -0.8598330020904541, -0.5031388998031616, -0.19127702713012695, -0.4577605128288269, 0.002357790945097804, 0.18433497846126556, 0.8070808053016663, 0.43462276458740234, -0.23941633105278015, 0.4353911876678467, 0.36456841230392456, -0.14274516701698303, 0.6653866767883301, 0.060829777270555496, 0.07879405468702316, -0.7988229393959045, 0.9097093343734741, -0.09798460453748703, 0.17052093148231506, 0.3395468592643738, 0.2102353274822235, -0.46205630898475647, -0.32061564922332764, -0.372759073972702, 0.3447253108024597, -0.7458817362785339, 0.05446712300181389, -0.8718473315238953, -0.33586978912353516, -0.7408419251441956, 0.0745011568069458, 0.14921051263809204, -0.46729806065559387, -0.37892189621925354, -0.15875999629497528, 0.3415814936161041, 0.6231616735458374, 0.03372299671173096, 0.45174840092658997, -0.6487405896186829, 0.3745606243610382, 0.2328953891992569, -0.2159799486398697, -0.3043786883354187, -0.7962626218795776, -0.28723829984664917, -0.19138842821121216, -0.7388646006584167, -0.8365510702133179, 0.7932791113853455, 0.16929468512535095, 0.3511483669281006, 0.2693648040294647, 0.1204146295785904, 0.6027511954307556, -0.37342867255210876, 1.0696841478347778, -0.04576868191361427, -1.139283537864685, 0.45763182640075684, -0.46882468461990356, 0.4174029529094696, 0.30906569957733154, 0.19836418330669403, -0.539701521396637, -0.739724338054657, -1.0188522338867188, -0.9746671319007874, 0.7019191980361938, 0.3855728209018707, 0.1866399347782135, -0.15137231349945068, 0.2725532054901123, 0.1145184189081192, 0.2391090989112854, -0.9829216599464417, -0.1493004560470581, -0.5120819211006165, -0.7638338804244995, -0.20219196379184723, -0.1921439915895462, -0.09646876901388168, -0.20626536011695862, 0.8843234777450562, -0.04132938012480736, 0.436127245426178, 0.23339198529720306, -0.397747665643692, 0.10206214338541031, 0.10777680575847626, 0.8954700827598572, 0.6390438675880432, -0.23252660036087036, -0.027852797880768776, 0.369042307138443, -0.4564391076564789, -0.03790382668375969, 0.23906506597995758, -0.37943241000175476, 0.27177733182907104, 0.22497759759426117, 1.1648210287094116, -0.1563250720500946, -0.28455573320388794, 0.5642568469047546, -0.17669537663459778, -0.5749796032905579, -0.4445481598377228, -0.061307620257139206, 0.3628721833229065, 0.22559989988803864, 0.23603463172912598, -0.2920043468475342, 0.32868924736976624, -0.2053212672472, 0.2651998996734619, 0.026482611894607544, -0.04271480068564415, -0.32564011216163635, 1.1935451030731201, 0.3399752080440521, -0.28118354082107544, 0.6377622485160828, -0.07895573228597641, -0.40072357654571533, 0.7413374781608582, 0.5655673146247864, 1.2313013076782227, -0.035822462290525436, 0.19358034431934357, 0.5126890540122986, 0.08868730813264847, -0.05781088024377823, 0.3648792803287506, -0.1647956520318985, -0.5043012499809265, -0.3019616901874542, -0.6267462968826294, -0.2989579737186432, 0.8477349877357483, -0.6267299056053162, 0.372671902179718, -0.33657950162887573, 0.019442377611994743, 0.15339316427707672, -0.08610625565052032, -0.4062829315662384, 0.5173629522323608, 0.15006794035434723, 0.5982508063316345, -0.974991500377655, 0.8017042279243469, 0.9427862167358398, -0.7639113664627075, -0.8748831152915955, 0.31995081901550293, -0.5077080130577087, -0.7563267350196838, 0.6013461351394653, 0.3297826945781708, 0.10478617250919342, 0.16502515971660614, -0.7250112295150757, -0.4936075806617737, 1.2007029056549072, 0.2820781171321869, -0.10686557739973068, -0.539789617061615, 0.17660623788833618, 0.4431803524494171, -0.470455139875412, 0.26366639137268066, 0.4676877558231354, 0.15878738462924957, 0.04177834466099739, -0.7372152805328369, 0.21641957759857178, -0.40148040652275085, 0.10237407684326172, -0.10906552523374557, -0.5397240519523621, 1.029085397720337, -0.08706990629434586, 0.09248684346675873, 0.37537723779678345, 0.6797387599945068, 0.315949946641922, 0.18417534232139587, 0.34605371952056885, 0.6154534220695496, 0.5160096287727356, 0.05078484117984772, 0.8521325588226318, -0.6359675526618958, 0.6392436623573303, 1.0680993795394897, 0.20038948953151703, 0.7565546035766602, 0.6511322855949402, 0.11939049512147903, 0.36548352241516113, 0.7904295325279236, -0.2718694806098938, 0.7385361194610596, 0.11912339925765991, -0.26143157482147217, -0.3328019082546234, 0.2411433309316635, -0.2001376748085022, 0.3544202744960785, 0.22300583124160767, -0.7266595959663391, -0.26499515771865845, 0.12276412546634674, -0.04843762889504433, -0.15526770055294037, -0.0919109359383583, 0.7117423415184021, 0.09127955138683319, -0.730597972869873, 0.7494301199913025, 0.12088718265295029, 0.6507170796394348, -0.38477396965026855, -0.006725719664245844, -0.259980708360672, 0.3929506838321686, -0.040583010762929916, -0.7233798503875732, 0.30988699197769165, 0.10483323037624359, -0.04415607824921608, -0.22807279229164124, 0.5840509533882141, -0.6139403581619263, -0.48164573311805725, -0.019471539184451103, 0.30809682607650757, 0.493635356426239, 0.1579793244600296, -0.9499577879905701, -0.4585658013820648, 0.19128793478012085, -0.44503703713417053, -0.10780845582485199, 0.4805491864681244, 0.06684865802526474, 0.6477126479148865, 0.29155397415161133, -0.12059515714645386, 0.1954658031463623, -0.11765096336603165, 0.5745404362678528, -0.8388707041740417, -0.7387111186981201, -0.8611116409301758, 0.6108555793762207, -0.2596706449985504, -0.5907912254333496, 0.6504724025726318, 0.6414265036582947, 0.8833936452865601, -0.5685123205184937, 0.9544155597686768, -0.24555985629558563, 0.4297051727771759, -0.5421369075775146, 0.7437085509300232, -0.6287218928337097, -0.29020074009895325, 0.05479219928383827, -0.526459813117981, -0.001657842076383531, 0.8200680613517761, -0.22207650542259216, 0.0011000545928254724, 1.0437277555465698, 0.9600635766983032, -0.21951381862163544, -0.17518261075019836, 0.3222948908805847, 0.37119120359420776, 0.255748450756073, 0.695527195930481, 0.5270359516143799, -0.8241173028945923, 1.0835320949554443, -0.4151385426521301, 0.451384037733078, -0.10611148178577423, -0.6383808255195618, -1.0833446979522705, -0.7405336499214172, -0.3718368113040924, -0.7219330668449402, 0.08778125047683716, 0.8097386360168457, 0.5760595798492432, -0.8831943273544312, -0.2578964829444885, -0.5201138854026794, -0.3018953204154968, 0.08380061388015747, -0.26560524106025696, 0.478788822889328, -0.6265648007392883, -1.0456960201263428, 0.1842951476573944, -0.23352664709091187, 0.14159555733203888, -0.006629876792430878, 0.018143052235245705, -0.17495295405387878, 0.13155944645404816, 0.2018262892961502, 0.23169022798538208, -0.8499665856361389, -0.2109849750995636, 0.10534936189651489, -0.40621912479400635, 0.1247536689043045, 0.362103134393692, -0.4709678590297699, 0.12699861824512482, 0.4091663956642151, 0.4943538308143616, 0.7175284624099731, -0.09133119881153107, 0.7529939413070679, -0.6898848414421082, 0.014770951122045517, 0.07719118893146515, 0.42612406611442566, 0.561306893825531, -0.15713384747505188, 0.5096938610076904, 0.46481838822364807, -0.5727840065956116, -0.746225893497467, -0.029311075806617737, -0.96075439453125, -0.20420965552330017, 1.232924222946167, -0.3431072235107422, -0.5729215145111084, 0.11756114661693573, -0.3530403673648834, 0.6793321371078491, -0.23685701191425323, 0.8127588629722595, 0.8747962117195129, 0.27116629481315613, -0.07842959463596344, -0.38530877232551575, 0.5516465902328491, 0.6534900069236755, -0.767173707485199, -0.10295744985342026, 0.27349531650543213, 0.8243752717971802, -0.10502254217863083, 0.3862425982952118, -0.12872906029224396, 0.502776563167572, 0.18790684640407562, 0.4641368091106415, -0.28064167499542236, 0.07470156997442245, -0.4596329927444458, 0.36498790979385376, -0.07299327850341797, -0.8322619795799255 ]
timm/inception_v3.tf_adv_in1k
timm
"2023-05-10T01:04:13Z"
42,534
1
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "arxiv:1512.00567", "arxiv:1804.00097", "license:apache-2.0", "region:us" ]
image-classification
"2023-04-25T21:28:52Z"
--- tags: - image-classification - timm library_name: timm license: apache-2.0 datasets: - imagenet-1k --- # Model card for inception_v3.tf_adv_in1k A Inception-v3 image classification model. Adversarially trained on ImageNet-1k by paper authors. Ported from Tensorflow by Ross Wightman. ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 23.8 - GMACs: 5.7 - Activations (M): 9.0 - Image size: 299 x 299 - **Papers:** - Rethinking the Inception Architecture for Computer Vision: https://arxiv.org/abs/1512.00567 - Adversarial Attacks and Defences Competition: https://arxiv.org/abs/1804.00097 - **Original:** https://github.com/tensorflow/models - **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('inception_v3.tf_adv_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( 'inception_v3.tf_adv_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, 64, 147, 147]) # torch.Size([1, 192, 71, 71]) # torch.Size([1, 288, 35, 35]) # torch.Size([1, 768, 17, 17]) # torch.Size([1, 2048, 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( 'inception_v3.tf_adv_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, 2048, 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 @article{DBLP:journals/corr/SzegedyVISW15, author = {Christian Szegedy and Vincent Vanhoucke and Sergey Ioffe and Jonathon Shlens and Zbigniew Wojna}, title = {Rethinking the Inception Architecture for Computer Vision}, journal = {CoRR}, volume = {abs/1512.00567}, year = {2015}, url = {http://arxiv.org/abs/1512.00567}, archivePrefix = {arXiv}, eprint = {1512.00567}, timestamp = {Mon, 13 Aug 2018 16:49:07 +0200}, biburl = {https://dblp.org/rec/journals/corr/SzegedyVISW15.bib}, bibsource = {dblp computer science bibliography, https://dblp.org} } ``` ```bibtex @article{Kurakin2018AdversarialAA, title={Adversarial Attacks and Defences Competition}, author={Alexey Kurakin and Ian J. Goodfellow and Samy Bengio and Yinpeng Dong and Fangzhou Liao and Ming Liang and Tianyu Pang and Jun Zhu and Xiaolin Hu and Cihang Xie and Jianyu Wang and Zhishuai Zhang and Zhou Ren and Alan Loddon Yuille and Sangxia Huang and Yao Zhao and Yuzhe Zhao and Zhonglin Han and Junjiajia Long and Yerkebulan Berdibekov and Takuya Akiba and Seiya Tokui and Motoki Abe}, journal={ArXiv}, year={2018}, volume={abs/1804.00097} } ```
[ -0.5446581840515137, -0.6175322532653809, 0.14604638516902924, 0.033907029777765274, -0.28555169701576233, -0.20371942222118378, -0.0937238484621048, -0.5510547757148743, 0.08062057197093964, 0.2787775993347168, -0.3454928398132324, -0.7416214346885681, -0.7133743762969971, -0.14008185267448425, -0.3156835734844208, 0.8958395719528198, -0.01537743117660284, -0.08506984263658524, -0.2538362145423889, -0.3935145437717438, -0.019731543958187103, -0.3049621284008026, -0.9576844573020935, -0.3520081341266632, 0.18984520435333252, 0.050134435296058655, 0.6086370348930359, 0.6963566541671753, 0.6225905418395996, 0.42714715003967285, -0.29842355847358704, 0.012998955324292183, -0.24053823947906494, -0.3311229646205902, 0.32006320357322693, -0.5648960471153259, -0.4759860336780548, 0.1957767903804779, 0.7604044675827026, 0.5682955384254456, 0.045735422521829605, 0.311458557844162, 0.2597945034503937, 0.5320164561271667, -0.27387383580207825, -0.020416421815752983, -0.4335487484931946, 0.2633068859577179, -0.18836991488933563, 0.11458878964185715, -0.22810183465480804, -0.3313930332660675, 0.24768267571926117, -0.5801267027854919, 0.5887712240219116, 0.006870331708341837, 1.328253149986267, 0.17217224836349487, 0.16603007912635803, -0.006592568475753069, -0.3971448838710785, 0.7744558453559875, -0.7196177244186401, 0.2867055833339691, 0.05164192244410515, 0.02538381703197956, -0.18036514520645142, -0.9978512525558472, -0.5808528661727905, -0.08776938915252686, -0.04671115428209305, -0.048945095390081406, -0.2975781559944153, -0.030447551980614662, 0.16494007408618927, 0.51730877161026, -0.4339149296283722, 0.14494501054286957, -0.6541014909744263, -0.15702836215496063, 0.5751325488090515, -0.06737950444221497, 0.27517110109329224, -0.17223909497261047, -0.6181445717811584, -0.48185259103775024, -0.5143665671348572, 0.31310343742370605, 0.3568991720676422, 0.17501366138458252, -0.598129153251648, 0.4051085114479065, 0.20711442828178406, 0.6225566267967224, 0.1339569240808487, -0.3024597465991974, 0.572338879108429, -0.10019256174564362, -0.4243151545524597, -0.00488989008590579, 1.1094107627868652, 0.33923864364624023, 0.10738697648048401, -0.009169992990791798, 0.025668339803814888, -0.35850438475608826, 0.09125569462776184, -1.0171773433685303, -0.15816257894039154, 0.4244866669178009, -0.5061673521995544, -0.44801804423332214, 0.2664027810096741, -0.6814910769462585, -0.20434601604938507, 0.10956442356109619, 0.6099687218666077, -0.6148841977119446, -0.37533554434776306, 0.022131066769361496, -0.18310847878456116, 0.5046602487564087, 0.14539867639541626, -0.4445742964744568, 0.029951877892017365, 0.4474753737449646, 1.197710633277893, -0.020613234490156174, -0.4836885929107666, 0.03927178680896759, -0.19252033531665802, -0.465135395526886, 0.5028823614120483, -0.03568510711193085, -0.31751155853271484, -0.32425880432128906, 0.1249011904001236, -0.05441892519593239, -0.5949076414108276, 0.31481844186782837, -0.29531368613243103, 0.2578626275062561, 0.08058091998100281, -0.19389145076274872, -0.5823383927345276, 0.3890458345413208, -0.44702523946762085, 1.0944950580596924, 0.2814849317073822, -0.7390239834785461, 0.4719378650188446, -0.5359185338020325, -0.24276357889175415, -0.17325130105018616, -0.22088855504989624, -1.1046466827392578, -0.1494259238243103, 0.32681146264076233, 0.5371876358985901, -0.3442288041114807, 0.06039083003997803, -0.6875448226928711, -0.19679304957389832, 0.19738176465034485, -0.0005471969489008188, 1.268459677696228, 0.2747099697589874, -0.48318159580230713, 0.13319368660449982, -0.7343860268592834, 0.050192710012197495, 0.5439535975456238, -0.2236507385969162, -0.05145545303821564, -0.4571233093738556, -0.15121608972549438, 0.14611199498176575, 0.15273907780647278, -0.601909875869751, 0.16251175105571747, -0.43022507429122925, 0.5372719764709473, 0.6429612636566162, 0.04428759962320328, 0.3004557192325592, -0.3543170690536499, 0.22502893209457397, 0.46241745352745056, 0.34475380182266235, -0.024342836812138557, -0.64802485704422, -0.8297568559646606, -0.45258045196533203, 0.23059870302677155, 0.377853125333786, -0.3976796567440033, 0.4397262930870056, -0.2970709800720215, -0.7428299188613892, -0.6302827596664429, 0.06530477851629257, 0.4475299119949341, 0.5483607053756714, 0.35889437794685364, -0.5023008584976196, -0.6102175712585449, -0.9593120813369751, 0.019472621381282806, -0.17210176587104797, 0.07050563395023346, 0.2991684079170227, 0.6298671364784241, -0.018234407529234886, 0.8212400078773499, -0.4833362400531769, -0.3644309341907501, -0.21411459147930145, 0.1033698245882988, 0.4124508202075958, 0.8550496697425842, 0.8295494914054871, -0.6876233816146851, -0.33790111541748047, -0.18669934570789337, -1.05366051197052, 0.40119561553001404, -0.027425643056631088, -0.2012231945991516, 0.3234087824821472, 0.2646525502204895, -0.6074983477592468, 0.6062489748001099, 0.033636342734098434, -0.22792968153953552, 0.3424757421016693, -0.16078901290893555, 0.25111255049705505, -1.2529971599578857, 0.172739177942276, 0.23215967416763306, 0.032096896320581436, -0.42990660667419434, 0.17519918084144592, -0.16132965683937073, -0.16507694125175476, -0.657275915145874, 0.5233445167541504, -0.580199122428894, -0.1939426064491272, 0.04569139704108238, -0.17404116690158844, 0.08148186653852463, 0.7482886910438538, -0.14391496777534485, 0.5580990314483643, 0.8986722230911255, -0.6720854640007019, 0.40849652886390686, 0.47935545444488525, -0.37162303924560547, 0.5859772562980652, -0.7390942573547363, 0.20292507112026215, -0.13791285455226898, 0.13858993351459503, -0.998680055141449, -0.049093686044216156, 0.407014399766922, -0.6968536972999573, 0.525884211063385, -0.5126709938049316, -0.3068463206291199, -0.5234301686286926, -0.6127053499221802, 0.4086892902851105, 0.6211177706718445, -0.6286689043045044, 0.47856566309928894, 0.2617524266242981, 0.3007947504520416, -0.6912259459495544, -0.9496585130691528, -0.04695157706737518, -0.4279792308807373, -0.7590814828872681, 0.5360724329948425, 0.04278191924095154, -0.014376488514244556, 0.2246972918510437, 0.02924012392759323, 0.09197495132684708, -0.008315951563417912, 0.503318190574646, 0.39510706067085266, -0.4172156751155853, -0.3272138833999634, -0.4329277276992798, 0.07893530279397964, 0.0027055838145315647, -0.4419640898704529, 0.5468004941940308, -0.2635265290737152, -0.20359410345554352, -0.7254655361175537, -0.05516842007637024, 0.5818539261817932, -0.07843687385320663, 0.9335161447525024, 1.0137057304382324, -0.5614385604858398, 0.06981319189071655, -0.4358294904232025, -0.05978120118379593, -0.4684355854988098, 0.4673058092594147, -0.48930200934410095, -0.39775851368904114, 0.8907102942466736, 0.2392760068178177, 0.19269530475139618, 0.9071363210678101, 0.3892379403114319, 0.015140182338654995, 0.687119722366333, 0.5763555765151978, 0.11221382766962051, 0.6395091414451599, -1.1693564653396606, -0.07871896028518677, -1.0050644874572754, -0.579927384853363, -0.3511405885219574, -0.47734421491622925, -0.5183495879173279, -0.22766825556755066, 0.5111460089683533, 0.30340656638145447, -0.41683995723724365, 0.4349678158760071, -0.7952782511711121, 0.0022975194733589888, 0.7121717929840088, 0.5023047924041748, -0.23724429309368134, 0.28777816891670227, -0.25458765029907227, 0.14640146493911743, -0.6981898546218872, -0.1786317527294159, 1.2349388599395752, 0.3820510506629944, 0.5694230794906616, -0.027587877586483955, 0.7104235291481018, -0.06929125636816025, 0.20108576118946075, -0.5454104542732239, 0.6230134963989258, -0.021085314452648163, -0.5554762482643127, -0.14324800670146942, -0.2996322512626648, -1.107367753982544, 0.06458073854446411, -0.2415439933538437, -0.7529273629188538, 0.4325532913208008, 0.05258337780833244, -0.5650166273117065, 0.8203620910644531, -0.7436097860336304, 0.8586744070053101, -0.06419380754232407, -0.4446735084056854, 0.02614750526845455, -0.5638428926467896, 0.334063321352005, 0.23819367587566376, -0.1759621649980545, 0.029649849981069565, 0.17659926414489746, 1.135190725326538, -0.5139071941375732, 0.8192307949066162, -0.37685102224349976, 0.20410344004631042, 0.6559810042381287, -0.10803376883268356, 0.2388925403356552, 0.038222189992666245, -0.09419547021389008, 0.4660900831222534, -0.0629221573472023, -0.4083482027053833, -0.4236975908279419, 0.6427327990531921, -1.130321741104126, -0.6420154571533203, -0.46938061714172363, -0.32786181569099426, 0.2584947645664215, 0.24902233481407166, 0.640049397945404, 0.7355174422264099, -0.018032727763056755, 0.42716291546821594, 0.5764485597610474, -0.40472108125686646, 0.5457499027252197, -0.019567769020795822, -0.041701994836330414, -0.6410132646560669, 0.6963781118392944, 0.2622142732143402, 0.16641947627067566, 0.16824626922607422, 0.02796320989727974, -0.3318900763988495, -0.8603960275650024, -0.4670024514198303, 0.2397027164697647, -0.6721133589744568, -0.48595961928367615, -0.6460922956466675, -0.6231286525726318, -0.6231151819229126, -0.12949290871620178, -0.47893211245536804, -0.338742733001709, -0.4803885817527771, 0.1940547078847885, 0.6102980375289917, 0.609503984451294, -0.17630387842655182, 0.4559837579727173, -0.39114102721214294, 0.13818827271461487, 0.08807610720396042, 0.49470990896224976, 0.06200927495956421, -0.8513123989105225, -0.3071366250514984, -0.050270672887563705, -0.6130507588386536, -0.6512762904167175, 0.31796905398368835, 0.25120291113853455, 0.5509884357452393, 0.5329926609992981, -0.2145618349313736, 0.8934254050254822, -0.11433479189872742, 0.761540412902832, 0.22768010199069977, -0.5235525965690613, 0.6156225204467773, 0.02847762033343315, 0.09803372621536255, 0.1109372228384018, 0.2773304581642151, -0.12091022729873657, -0.17968930304050446, -1.1113337278366089, -0.8821871280670166, 0.9967889189720154, 0.15892598032951355, -0.1269858479499817, 0.32777339220046997, 0.7104806900024414, -0.02713835798203945, -0.025690587237477303, -0.7629871368408203, -0.5131009817123413, -0.3607206642627716, -0.30712318420410156, -0.03745526447892189, -0.15701286494731903, -0.23352620005607605, -0.4861219823360443, 0.7307186126708984, 0.22598062455654144, 0.8377712368965149, 0.5391755700111389, -0.13466757535934448, -0.04897579923272133, -0.3123793303966522, 0.4538600742816925, 0.40861213207244873, -0.4207218289375305, 0.05541849508881569, 0.20551276206970215, -0.6572145819664001, 0.11263681948184967, 0.2851148545742035, -0.17718742787837982, -0.20241038501262665, 0.564116895198822, 0.9524404406547546, -0.04170342534780502, 0.09287009388208389, 0.3885120749473572, 0.14319702982902527, -0.3853745758533478, -0.4377475380897522, 0.21337883174419403, -0.2013203501701355, 0.4788830578327179, 0.5028747320175171, 0.3858087658882141, -0.040224455296993256, -0.3140813708305359, 0.24731746315956116, 0.6547383666038513, -0.22925551235675812, -0.39021122455596924, 0.8433957099914551, -0.20637260377407074, -0.23729287087917328, 0.7187426686286926, -0.09813708066940308, -0.42215538024902344, 0.9790981411933899, 0.47410112619400024, 0.9781144857406616, -0.0023460397496819496, -0.05929417908191681, 0.8531786799430847, 0.3809504210948944, 0.029726214706897736, -0.04700010269880295, 0.15455007553100586, -0.7375948429107666, 0.1550326943397522, -0.6496054530143738, 0.05338349938392639, 0.529517412185669, -0.46245303750038147, 0.35797572135925293, -0.8237316608428955, -0.34530311822891235, 0.22470331192016602, 0.32587167620658875, -0.8920231461524963, 0.21118614077568054, 0.09640968590974808, 0.7795442938804626, -0.622237503528595, 0.5801976919174194, 0.8517667055130005, -0.7595472931861877, -0.7488788366317749, -0.16336724162101746, 0.025019103661179543, -1.0120023488998413, 0.4576646387577057, 0.3019818365573883, -0.03344421088695526, 0.23543386161327362, -0.8004522919654846, -0.8701098561286926, 1.440740942955017, 0.5129938125610352, 0.12691274285316467, 0.097430020570755, 0.030273670330643654, 0.21752186119556427, -0.44790783524513245, 0.30995628237724304, 0.26032915711402893, 0.24705712497234344, 0.32871031761169434, -0.43456318974494934, 0.16120950877666473, -0.2770155370235443, 0.19052475690841675, 0.08136671781539917, -0.7925894856452942, 0.9057830572128296, -0.5824732780456543, -0.3025038242340088, 0.02875307947397232, 0.8442925810813904, 0.25439295172691345, 0.1271018236875534, 0.5798319578170776, 0.9948282241821289, 0.3477112650871277, -0.2718513011932373, 0.8819224238395691, -0.13187558948993683, 0.4773416519165039, 0.5017443299293518, 0.3950476348400116, 0.5115060806274414, 0.3670555651187897, -0.4647974371910095, 0.49963057041168213, 1.1054342985153198, -0.40845543146133423, 0.3540332615375519, 0.03620963543653488, 0.09247228503227234, 0.04627462849020958, 0.15822374820709229, -0.5026188492774963, 0.4746994078159332, 0.1980188637971878, -0.4404570758342743, -0.17725791037082672, 0.024239353835582733, 0.0966745987534523, -0.36159631609916687, -0.2124297320842743, 0.5892384648323059, 0.032836124300956726, -0.4461371898651123, 0.902845025062561, 0.0896771252155304, 0.7536597847938538, -0.3975008428096771, 0.10675826668739319, -0.2731776535511017, 0.31254538893699646, -0.3233669400215149, -0.849639892578125, 0.2647191882133484, -0.19430580735206604, -0.019652001559734344, 0.16461600363254547, 0.44939494132995605, -0.3028999865055084, -0.5795197486877441, 0.14427503943443298, 0.18042594194412231, 0.46688708662986755, 0.16281485557556152, -1.1425402164459229, 0.08804424107074738, 0.03401443734765053, -0.6051669120788574, 0.125260129570961, 0.3654463291168213, 0.11263813823461533, 0.6503726840019226, 0.61972975730896, -0.0077702817507088184, 0.1642850637435913, -0.2893257737159729, 0.7632574439048767, -0.5601906776428223, -0.4375641942024231, -1.0195425748825073, 0.5813165307044983, -0.12549537420272827, -0.5986242890357971, 0.545101523399353, 0.7720156908035278, 0.9499388337135315, 0.07282141596078873, 0.5381568074226379, -0.40874966979026794, -0.003800672246143222, -0.40377455949783325, 0.6918507814407349, -0.7707332372665405, 0.05755298212170601, -0.1948825865983963, -0.7489601969718933, -0.39527708292007446, 0.514991819858551, -0.20902414619922638, 0.38816818594932556, 0.46692073345184326, 0.9173568487167358, -0.3201031982898712, -0.3962269723415375, 0.03769798204302788, 0.31450125575065613, 0.2948508560657501, 0.4658412039279938, 0.3250535726547241, -0.8333516716957092, 0.5876962542533875, -0.544018030166626, -0.1718372106552124, -0.2124963253736496, -0.6307740807533264, -0.8300625681877136, -0.9343581199645996, -0.5703800916671753, -0.7330755591392517, -0.1589992493391037, 0.8515936732292175, 0.9316002726554871, -0.7495699524879456, -0.11255642771720886, -0.01069588866084814, 0.2303609549999237, -0.4004710912704468, -0.21359498798847198, 0.7652488350868225, -0.18800246715545654, -0.7853630781173706, -0.15163010358810425, 0.039058804512023926, 0.5464757084846497, -0.19415424764156342, -0.14231465756893158, -0.30059388279914856, -0.2609212398529053, 0.20964938402175903, 0.35693296790122986, -0.6933445334434509, -0.21605068445205688, -0.2986289858818054, -0.0655151978135109, 0.49528858065605164, 0.3851597011089325, -0.6239909529685974, 0.32916033267974854, 0.3267907202243805, 0.40865910053253174, 0.769012451171875, -0.22393843531608582, 0.19630230963230133, -0.7604736089706421, 0.6155194640159607, -0.14970733225345612, 0.3988741636276245, 0.5258552432060242, -0.47176021337509155, 0.5569975972175598, 0.5297795534133911, -0.2207416445016861, -1.0280020236968994, -0.07770517468452454, -0.9528161287307739, -0.13698166608810425, 0.773768424987793, -0.33635419607162476, -0.5811893343925476, 0.3673507273197174, 0.13009226322174072, 0.7737221121788025, -0.07657033205032349, 0.6517506837844849, 0.41101357340812683, -0.08158035576343536, -0.4854656755924225, -0.4204084277153015, 0.5963674783706665, 0.05936124920845032, -0.5410139560699463, -0.48600566387176514, -0.10104402154684067, 0.5484071373939514, 0.40966159105300903, 0.45616409182548523, -0.3860137164592743, 0.08027886599302292, 0.1423855423927307, 0.4976609945297241, -0.48546308279037476, -0.21311943233013153, -0.3467075526714325, 0.15526387095451355, -0.01924661546945572, -0.6718629002571106 ]
julien-c/dummy-unknown
julien-c
"2021-05-20T17:31:14Z"
42,432
0
transformers
[ "transformers", "pytorch", "tf", "jax", "roberta", "fill-mask", "ci", "autotrain_compatible", "endpoints_compatible", "region:us" ]
fill-mask
"2022-03-02T23:29:05Z"
--- tags: - ci --- ## Dummy model used for unit testing and CI ```python import json import os from transformers import RobertaConfig, RobertaForMaskedLM, TFRobertaForMaskedLM DIRNAME = "./dummy-unknown" config = RobertaConfig(10, 20, 1, 1, 40) model = RobertaForMaskedLM(config) model.save_pretrained(DIRNAME) tf_model = TFRobertaForMaskedLM.from_pretrained(DIRNAME, from_pt=True) tf_model.save_pretrained(DIRNAME) # Tokenizer: vocab = [ "l", "o", "w", "e", "r", "s", "t", "i", "d", "n", "\u0120", "\u0120l", "\u0120n", "\u0120lo", "\u0120low", "er", "\u0120lowest", "\u0120newer", "\u0120wider", "<unk>", ] vocab_tokens = dict(zip(vocab, range(len(vocab)))) merges = ["#version: 0.2", "\u0120 l", "\u0120l o", "\u0120lo w", "e r", ""] vocab_file = os.path.join(DIRNAME, "vocab.json") merges_file = os.path.join(DIRNAME, "merges.txt") with open(vocab_file, "w", encoding="utf-8") as fp: fp.write(json.dumps(vocab_tokens) + "\n") with open(merges_file, "w", encoding="utf-8") as fp: fp.write("\n".join(merges)) ```
[ -0.18319247663021088, -0.7588566541671753, 0.28537896275520325, 0.27391794323921204, -0.31637510657310486, 0.19335663318634033, -0.32078567147254944, 0.08998004347085953, 0.036564067006111145, 0.36618486046791077, -0.46730515360832214, -0.5632675290107727, -0.4385358691215515, 0.32441234588623047, -0.637484073638916, 1.137932538986206, -0.366283118724823, -0.019301125779747963, 0.14080007374286652, -0.1808570772409439, -0.2592841684818268, -0.89874666929245, -0.5224285125732422, -0.06604859977960587, 0.2480473816394806, 0.1693313717842102, 0.6313457489013672, 0.15281955897808075, 0.3520396947860718, 0.4469037652015686, -0.13197115063667297, 0.07618345320224762, -0.2315378487110138, -0.0911220833659172, -0.011966404505074024, -0.5241135358810425, -0.49599725008010864, -0.1937018185853958, 0.7055882811546326, 0.6095490455627441, 0.019271591678261757, 0.3233676254749298, -0.13824261724948883, 0.41474276781082153, -0.6287639141082764, 0.05277356877923012, -0.5467860698699951, -0.0558086521923542, 0.027499394491314888, -0.1325118988752365, -0.2605774402618408, -0.20883269608020782, -0.03801286965608597, -0.7733591198921204, 0.478131502866745, 0.12791481614112854, 1.541020393371582, 0.21362106502056122, -0.5129077434539795, -0.10209724307060242, -0.5499730110168457, 1.0449658632278442, -0.9575605392456055, 0.43393462896347046, 0.12607046961784363, -0.08567351847887039, -0.39079660177230835, -0.8983891010284424, -1.1238954067230225, -0.21404089033603668, -0.3132491111755371, 0.0033986051566898823, -0.07560467720031738, 0.13009780645370483, 0.4300488829612732, 0.3882523477077484, -0.7296255826950073, -0.2715170085430145, -0.791327953338623, -0.20638138055801392, 0.7074480652809143, 0.18369871377944946, 0.33043625950813293, -0.37517431378364563, -0.44674330949783325, -0.6128384470939636, -0.1661420613527298, 0.2699160575866699, 0.5080511569976807, 0.513778805732727, -0.33978191018104553, 0.8448951244354248, -0.3269800543785095, 0.5410054326057434, 0.015116707421839237, -0.21053895354270935, 0.6174305081367493, -0.44330036640167236, -0.5332878232002258, -0.16116227209568024, 1.2082206010818481, 0.36243516206741333, 0.4307132363319397, -0.05306999012827873, -0.11248083412647247, 0.010054373182356358, 0.4200024902820587, -0.7800989747047424, -0.3194368779659271, 0.6586273908615112, -0.43982455134391785, -0.2573365271091461, 0.23411157727241516, -0.6581407785415649, 0.1398293375968933, -0.25870031118392944, 0.5739432573318481, -0.6938809156417847, -0.5577912330627441, 0.15157848596572876, -0.33736667037010193, 0.2663308382034302, -0.1407470405101776, -0.9277722239494324, 0.15600870549678802, 0.5482710003852844, 0.7882255911827087, 0.08592631667852402, -0.5814455151557922, -0.25551918148994446, -0.11058562994003296, -0.3840344548225403, 0.8317897915840149, 0.19176875054836273, -0.6543668508529663, 0.1167895644903183, 0.3218250572681427, -0.4208405315876007, -0.3333513140678406, 0.5925284028053284, -0.18214909732341766, 0.17877057194709778, -0.16795384883880615, -0.19753719866275787, -0.27139201760292053, 0.4827987253665924, -0.4101577699184418, 1.394439458847046, 0.6953968405723572, -0.8419921398162842, 0.2646893858909607, -0.627116858959198, -0.5763453245162964, -0.05400041490793228, -0.15078474581241608, -0.558042585849762, 0.05839100480079651, 0.10560932755470276, 0.4551222622394562, -0.11260226368904114, 0.15250305831432343, -0.2944466769695282, -0.6554714441299438, 0.5613253116607666, -0.3136770725250244, 1.0437067747116089, 0.096866175532341, -0.2696000933647156, 0.18174678087234497, -0.6741273403167725, 0.2350785881280899, 0.07752138376235962, -0.48943889141082764, -0.43142086267471313, -0.17709366977214813, 0.49177026748657227, -0.15002645552158356, 0.15144217014312744, -0.4695405066013336, 0.648781418800354, -0.43850409984588623, 0.4425697326660156, 0.5462349653244019, -0.06503532081842422, 0.36839407682418823, -0.3395352065563202, 0.5294067859649658, 0.18434451520442963, 0.11448065936565399, 0.15558253228664398, -0.10896925628185272, -1.2161130905151367, -0.33790352940559387, 0.40164363384246826, 0.6155180335044861, -0.878425121307373, 0.7705210447311401, -0.49485746026039124, -0.5155529379844666, -0.701504111289978, -0.15887947380542755, 0.2685176134109497, 0.40947696566581726, 0.5348870158195496, 0.06260191649198532, -0.8715044856071472, -0.9270520210266113, -0.3397185504436493, -0.5087079405784607, -0.21755748987197876, -0.17666886746883392, 0.8730599284172058, -0.5713106989860535, 0.7862212061882019, -0.5839242339134216, -0.3545026183128357, -0.21445152163505554, 0.3500518202781677, 0.6454520225524902, 0.7703957557678223, 0.5620624423027039, -0.6780352592468262, -0.330900639295578, -0.1260155737400055, -0.5922794342041016, 0.07743345201015472, -0.5128268599510193, -0.1027553454041481, 0.38475802540779114, 0.3646952509880066, -0.5157654285430908, 0.5329824686050415, 0.5218969583511353, -0.6217597723007202, 0.8162139654159546, -0.2242271453142166, 0.49826139211654663, -1.4732413291931152, 0.11258186399936676, -0.2524557411670685, 0.063832588493824, -0.478240966796875, 0.22037772834300995, 0.27832287549972534, 0.27214160561561584, -0.5979305505752563, 0.5247337222099304, -0.6660659313201904, 0.18602415919303894, 0.09037762880325317, -0.1593436747789383, 0.011928928084671497, 0.4649788439273834, -0.17195318639278412, 0.743056058883667, 0.6195260882377625, -0.6897896528244019, 0.19447188079357147, 0.30429309606552124, -0.06980523467063904, 0.47719040513038635, -0.6251851320266724, 0.0677250325679779, 0.3319397568702698, 0.06523337960243225, -0.9452958703041077, -0.11633311957120895, 0.2445940524339676, -0.5997532606124878, 0.2090601921081543, -0.4038222134113312, -0.7902553677558899, -0.6512360572814941, -0.2851192057132721, 0.5035311579704285, 0.5056707859039307, -0.5821338891983032, 0.7985748648643494, 0.003198727034032345, 0.23211580514907837, -0.5231379270553589, -0.8431721329689026, -0.1909015029668808, -0.265718936920166, -0.5314352512359619, 0.11643890291452408, -0.33018848299980164, -0.07040096074342728, -0.032432664185762405, -0.12583787739276886, -0.2867043614387512, 0.23092830181121826, 0.35423681139945984, 0.5698954463005066, -0.19040028750896454, -0.05250329524278641, 0.11991129070520401, -0.00897619966417551, 0.05773918703198433, -0.04095862805843353, 0.8150427341461182, -0.5079470872879028, -0.4299592971801758, -0.5084191560745239, 0.38712552189826965, 0.5863732099533081, -0.0678633376955986, 0.7833255529403687, 0.8753330111503601, -0.24733704328536987, -0.19130884110927582, -0.3672516644001007, 0.08013098686933517, -0.5423770546913147, 0.4772019684314728, -0.7148083448410034, -0.7537153959274292, 0.7244579195976257, 0.1618501991033554, 0.14533285796642303, 0.7475460767745972, 0.4568832814693451, -0.20891538262367249, 0.8343995213508606, 0.3283946216106415, -0.006312433164566755, 0.14566683769226074, -0.9511790871620178, 0.5420699119567871, -1.122807264328003, -0.1732180118560791, -0.6934441924095154, 0.0016725785098969936, -0.7868270874023438, -0.3615710139274597, 0.21614690124988556, 0.5548009276390076, -0.3353382349014282, 0.606002688407898, -0.7995467782020569, 0.24979621171951294, 0.4815387427806854, -0.2631508409976959, 0.1604427695274353, -0.12088052183389664, -0.24465608596801758, 0.24702230095863342, -0.48499995470046997, -0.537006676197052, 1.3473005294799805, 0.10357458889484406, 0.6935281157493591, 0.10570007562637329, 0.8105708956718445, -0.03671916946768761, 0.1988685429096222, -0.9727210998535156, 0.4593101441860199, -0.069200299680233, -0.6422224044799805, -0.12409159541130066, -0.14231473207473755, -0.9381057620048523, 0.32806840538978577, -0.13962291181087494, -0.968226432800293, 0.09312133491039276, -0.03740843012928963, -0.4125654995441437, 0.5193665623664856, -0.8006331324577332, 0.7833306789398193, -0.14056533575057983, 0.08932052552700043, 0.23301167786121368, -0.18435823917388916, 0.6177433729171753, -0.039480060338974, 0.1936255246400833, 0.0864521861076355, 0.07182463258504868, 0.8967098593711853, -0.5021395683288574, 0.4876289963722229, 0.1953047662973404, 0.22021974623203278, 0.2300236076116562, 0.14136675000190735, 0.1066327691078186, 0.30869394540786743, -0.0567564032971859, 0.6035779714584351, 0.67563796043396, -0.33694183826446533, -0.48759642243385315, 0.7170957326889038, -0.9394986033439636, -0.4762498736381531, -1.0097261667251587, -0.6423119306564331, 0.30740293860435486, 0.2929871380329132, 0.39425238966941833, 0.3246694505214691, -0.028972940519452095, 0.315253883600235, 0.24157433211803436, -0.06087192893028259, 0.631585419178009, 0.6419175863265991, -0.2508646249771118, -0.5438224077224731, 0.5762408971786499, 0.1806739717721939, 0.19920127093791962, 0.1898222714662552, 0.06045572832226753, -0.48889851570129395, -0.5819205641746521, -0.4372938573360443, 0.20832085609436035, -0.47508504986763, -0.38448265194892883, -0.8004518747329712, -0.5810621380805969, -0.9229906797409058, -0.1805819571018219, -0.364757239818573, -0.07639671117067337, -0.5270895957946777, 0.04082491248846054, 0.6084979772567749, 0.45784130692481995, -0.17668940126895905, 0.5696001052856445, -0.8712431788444519, 0.4918288588523865, -0.11451450735330582, 0.2555771470069885, -0.1868622601032257, -0.700853705406189, -0.30186083912849426, -0.0062370141968131065, -0.41256535053253174, -0.998977541923523, 0.6010918021202087, -0.14929255843162537, 0.5726348161697388, 0.5019707679748535, 0.5296355485916138, 1.012112021446228, -0.14226995408535004, 1.1996285915374756, 0.08732558786869049, -1.177098274230957, 0.45212817192077637, -0.3551165461540222, 0.015052292495965958, 0.6216297149658203, 0.1870069056749344, -0.7794876098632812, -0.43066632747650146, -0.9402132630348206, -1.3640905618667603, 0.6884496808052063, 0.4223318099975586, 0.019565777853131294, -0.08761473745107651, 0.17782752215862274, -0.14788007736206055, 0.016163693740963936, -0.7601088881492615, -0.4686923325061798, -0.30442866683006287, -0.2328471839427948, -0.0991596207022667, -0.05937064066529274, -0.31932079792022705, -0.5910866856575012, 0.8357865214347839, -0.2278265357017517, 0.29839226603507996, 0.6372513175010681, -0.10220812261104584, 0.158547043800354, 0.37413734197616577, 0.6617336273193359, 0.3043909966945648, -0.5312395095825195, 0.025841621682047844, 0.4407098591327667, -0.4555448889732361, 0.10689123719930649, 0.016803335398435593, -0.05569728836417198, 0.24226921796798706, 0.7236612439155579, 0.7210657596588135, 0.10585419833660126, -0.5557606220245361, 0.43841561675071716, -0.389145165681839, -0.5882464051246643, -1.0461558103561401, 0.19674792885780334, 0.06597719341516495, 0.11904235184192657, 0.6572442650794983, 0.044791463762521744, -0.17495611310005188, -0.548946738243103, -0.02222302369773388, 0.2726055085659027, -0.06354805827140808, -0.236530140042305, 0.4924967288970947, -0.07484547793865204, -0.6160605549812317, 0.8514792919158936, -0.31127482652664185, -0.8483002185821533, 0.6866953372955322, 0.40913671255111694, 1.0329704284667969, 0.1609126180410385, 0.02356055937707424, 0.7784044146537781, 0.612924337387085, -0.09018540382385254, 0.6181849241256714, -0.07952283322811127, -0.66534423828125, 0.0725427120923996, -1.0022448301315308, -0.1982368379831314, 0.5100967884063721, -0.8864113092422485, 0.2752801179885864, -0.4033409357070923, -0.20306654274463654, -0.2620021104812622, 0.15390215814113617, -0.9741184711456299, 0.24272224307060242, -0.45322054624557495, 0.8015321493148804, -1.1489388942718506, 0.9304919838905334, 0.696031391620636, -0.9304949641227722, -1.563109278678894, 0.13772334158420563, -0.2975817322731018, -0.4101257026195526, 0.7486392259597778, 0.12073901295661926, 0.437450647354126, -0.010974345728754997, -0.2156844139099121, -1.048752784729004, 1.2143959999084473, 0.08999933302402496, -0.4161768853664398, 0.08393280953168869, 0.2214915007352829, 0.6538817882537842, -0.23824983835220337, 0.6947216391563416, 0.8108734488487244, 0.6837940812110901, -0.2280786782503128, -0.9271572828292847, 0.13619163632392883, -0.4376261532306671, 0.14711058139801025, 0.026950886473059654, -0.5601585507392883, 1.5157204866409302, -0.333854079246521, -0.2897128760814667, 0.4034029543399811, 0.8070722222328186, 0.578951358795166, 0.09732554852962494, 0.7907854914665222, 0.6026391983032227, 0.6059191823005676, -0.37981781363487244, 1.0346031188964844, -0.1101892739534378, 0.7354936599731445, 0.9466727375984192, -0.052878107875585556, 1.1217799186706543, 0.8177264928817749, -0.34484079480171204, 0.9040822386741638, 0.7364147901535034, -0.46756014227867126, 0.25426197052001953, 0.3566267490386963, -0.06810756772756577, 0.006956186145544052, 0.20516079664230347, -0.5269636511802673, 0.4771987199783325, 0.13858838379383087, -0.2748149037361145, 0.06332439184188843, -0.14734691381454468, 0.12117230892181396, -0.05147286504507065, 0.10433833301067352, 0.45165950059890747, -0.22293785214424133, -0.6214905381202698, 1.1259750127792358, -0.1576061248779297, 0.918078601360321, -0.5728928446769714, 0.003136860439553857, -0.19234979152679443, 0.44485875964164734, -0.27318274974823, -0.6426494121551514, 0.3040667772293091, -0.03504311665892601, -0.239725261926651, 0.002543759997934103, 0.1911894679069519, -0.4842919409275055, -0.9036723375320435, 0.653949499130249, 0.044236455112695694, 0.3924926817417145, -0.16210103034973145, -0.6281149983406067, 0.18753665685653687, 0.14264778792858124, -0.45584118366241455, 0.17073462903499603, 0.4275842308998108, 0.09782471507787704, 0.5202469825744629, 1.144911527633667, 0.2801223695278168, 0.19855807721614838, 0.22877882421016693, 0.9576188921928406, -0.7697319388389587, -0.49177318811416626, -0.601466178894043, 1.0254629850387573, -0.13101358711719513, -0.6227899193763733, 0.6448121070861816, 0.845585823059082, 1.1141247749328613, -0.2969619035720825, 0.912690281867981, -0.36543792486190796, 0.3820207715034485, -0.5463564991950989, 1.1503829956054688, -0.760719358921051, -0.02126174420118332, -0.09412268549203873, -0.711503267288208, 0.0642755851149559, 0.6625770330429077, 0.08933620899915695, -0.08722758293151855, 1.326658844947815, 1.0989679098129272, -0.11006877571344376, -0.4619399309158325, 0.31023046374320984, 0.37415120005607605, 0.5027861595153809, 0.5094627141952515, 0.5988652110099792, -1.2274913787841797, 0.6725859045982361, -0.509209930896759, -0.10696187615394592, -0.23465396463871002, -0.7028236985206604, -1.2313153743743896, -1.0454635620117188, -0.24596425890922546, -0.6508021354675293, -0.22093568742275238, 0.9581668376922607, 0.6998133063316345, -1.0109399557113647, -0.20883165299892426, -0.04467781260609627, 0.1453889012336731, -0.27052009105682373, -0.37513068318367004, 0.6401264667510986, -0.24593155086040497, -0.972723662853241, 0.3828350603580475, -0.3252478241920471, 0.24217979609966278, -0.2770315706729889, -0.10109362751245499, -0.45873093605041504, -0.09592587500810623, 0.207739919424057, 0.35501256585121155, -1.0652822256088257, -0.4380458891391754, -0.19714486598968506, -0.25189822912216187, -0.12583203613758087, 0.5787540078163147, -0.7372890114784241, 0.2925439774990082, 0.6574406027793884, 0.1588868647813797, 0.25281932950019836, -0.05347442999482155, 0.48560410737991333, -0.6399011611938477, 0.356085866689682, 0.06329569965600967, 0.613942563533783, 0.29525941610336304, -0.3613312840461731, 0.5796893835067749, 0.4359584450721741, -0.45979559421539307, -1.2096372842788696, -0.3257104158401489, -1.4289348125457764, -0.2261926233768463, 1.3685599565505981, -0.21667343378067017, -0.5498319268226624, -0.1282372772693634, -0.39389654994010925, 0.8907196521759033, -0.48371538519859314, 0.8449916243553162, 0.44291189312934875, 0.13592307269573212, 0.24767069518566132, -0.3702513575553894, 0.33403247594833374, 0.37109023332595825, -0.7510820627212524, -0.07356610894203186, -0.07997259497642517, 0.7039769291877747, 0.49596261978149414, 0.5278542637825012, 0.15077324211597443, 0.0997038185596466, 0.15169936418533325, 0.6100773215293884, -0.3138715922832489, -0.020714228972792625, -0.3300788998603821, -0.06579305976629257, -0.2835761606693268, -0.5568416714668274 ]
TheBloke/Falcon-180B-Chat-GPTQ
TheBloke
"2023-09-27T13:02:37Z"
42,422
66
transformers
[ "transformers", "safetensors", "falcon", "text-generation", "en", "de", "es", "fr", "dataset:tiiuae/falcon-refinedweb", "arxiv:1911.02150", "arxiv:2005.14165", "arxiv:2104.09864", "arxiv:2205.14135", "arxiv:2306.01116", "base_model:tiiuae/falcon-180B-chat", "license:unknown", "text-generation-inference", "4-bit", "region:us" ]
text-generation
"2023-09-06T16:47:56Z"
--- language: - en - de - es - fr license: unknown datasets: - tiiuae/falcon-refinedweb model_name: Falcon 180B Chat inference: false model_creator: Technology Innovation Institute model_link: https://huggingface.co/tiiuae/falcon-180B-chat model_type: falcon quantized_by: TheBloke base_model: tiiuae/falcon-180B-chat --- <!-- 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 --> # Falcon 180B Chat - GPTQ - Model creator: [Technology Innovation Institute](https://huggingface.co/tiiuae) - Original model: [Falcon 180B Chat](https://huggingface.co/tiiuae/falcon-180B-chat) <!-- description start --> ## Description This repo contains GPTQ model files for [Technology Innovation Institute's Falcon 180B Chat](https://huggingface.co/tiiuae/falcon-180B-chat). 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. ## Requirements Transformers version 4.33.0 is required. Due to the huge size of the model, the GPTQ has been sharded. This will break compatibility with AutoGPTQ, and therefore any clients/libraries that use AutoGPTQ directly. But they work great loaded directly through Transformers - and can be served using Text Generation Inference! ## Compatibility Currently these GPTQs are known to work with: - Transformers 4.33.0 - [Text Generation Inference (TGI)](https://github.com/huggingface/text-generation-inference) version 1.0.4 - Docker container: `ghcr.io/huggingface/text-generation-inference:latest` <!-- description end --> <!-- repositories-available start --> ## Repositories available * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/Falcon-180B-Chat-GPTQ) * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/Falcon-180B-Chat-GGUF) * [Technology Innovation Institute's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/tiiuae/falcon-180B-chat) <!-- repositories-available end --> <!-- prompt-template start --> ## Prompt template: Falcon ``` {system_message} User: {prompt} Assistant: ``` Example: ``` 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 User: Hello, Girafatron! Girafatron: ``` <!-- 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 | 4 | 128 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 2048 | 94.25 GB | No | 4-bit, with Act Order and group size 128g. Higher quality than group_size=None, but also higher VRAM usage. | | gptq-4bit--1g-actorder_True | 4 | None | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 2048 | 92.74 GB | No | 4-bit, with Act Order. No group size, to lower VRAM requirements. | | gptq-3bit-128g-actorder_True | 3 | 128 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 2048 | 73.81 GB | No | 3-bit, so much lower VRAM requirements but worse quality than 4-bit. With group size 128g and act-order. Higher quality than 3bit-128g-False. | | gptq-3bit--1g-actorder_True | 3 | None | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 2048 | 70.54 GB | No | 3-bit, so much lower VRAM requirements but worse quality than 4-bit. With no group size for lowest possible VRAM requirements. Lower quality than 3-bit 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/Falcon-180B-Chat-GPTQ:gptq-3bit--1g-actorder_True` - With Git, you can clone a branch with: ``` git clone --single-branch --branch gptq-3bit--1g-actorder_True https://huggingface.co/TheBloke/Falcon-180B-Chat-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). **NOTE**: I have not tested this model with Text Generation Webui. It *should* work through the Transformers Loader. It will *not* work through the AutoGPTQ loader, due to the files being sharded. 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/Falcon-180B-Chat-GPTQ`. - To download from a specific branch, enter for example `TheBloke/Falcon-180B-Chat-GPTQ:gptq-3bit-128g-actorder_True` - see Provided Files above for the list of branches for each option. 3. Click **Download**. 4. The model will start downloading. Once it's finished it will say "Done". 5. Choose Loader: Transformers 6. In the top left, click the refresh icon next to **Model**. 7. In the **Model** dropdown, choose the model you just downloaded: `Falcon-180B-Chat-GPTQ` 8. The model will automatically load, and is now ready for use! 9. 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`. 10. 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.33.0 or later, Optimum 1.12.0 or later, and AutoGPTQ. ```shell pip3 install transformers>=4.33.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 ``` ### Transformers sample code ```python from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline model_name_or_path = "TheBloke/Falcon-180B-Chat-GPTQ" # To use a different branch, change revision # For example: revision="gptq-3bit-128g-actorder_True" model = AutoModelForCausalLM.from_pretrained(model_name_or_path, device_map="auto", revision="main") tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True) prompt = "Tell me about AI" prompt_template=f'''User: {prompt} Assistant: ''' print("\n\n*** Generate:") input_ids = tokenizer(prompt_template, return_tensors='pt').input_ids.cuda() output = model.generate(inputs=input_ids, do_sample=True, temperature=0.7, 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, temperature=0.7, do_sample=True, top_p=0.95, repetition_penalty=1.15 ) print(pipe(prompt_template)[0]['generated_text']) ``` <!-- README_GPTQ.md-use-from-python end --> <!-- README_GPTQ.md-compatibility start --> ## Compatibility The provided files have been tested with Transformers 4.33.0, and TGI 1.0.4. Because they are sharded, they will not yet via AutoGPTQ. It is hoped support will be added soon. Note: lack of support for AutoGPTQ doesn't affect your ability to load these models from Python code. It only affects third-party clients that might use AutoGPTQ. [Huggingface Text Generation Inference (TGI)](https://github.com/huggingface/text-generation-inference) is confirmed working as of version 1.0.4. <!-- 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! 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**: Russ Johnson, J, alfie_i, Alex, NimbleBox.ai, Chadd, Mandus, Nikolai Manek, Ken Nordquist, ya boyyy, Illia Dulskyi, Viktor Bowallius, vamX, Iucharbius, zynix, Magnesian, Clay Pascal, Pierre Kircher, Enrico Ros, Tony Hughes, Elle, Andrey, knownsqashed, Deep Realms, Jerry Meng, Lone Striker, Derek Yates, Pyrater, Mesiah Bishop, James Bentley, Femi Adebogun, Brandon Frisco, SuperWojo, Alps Aficionado, Michael Dempsey, Vitor Caleffi, Will Dee, Edmond Seymore, usrbinkat, LangChain4j, Kacper Wikieł, Luke Pendergrass, John Detwiler, theTransient, Nathan LeClaire, Tiffany J. Kim, biorpg, Eugene Pentland, Stanislav Ovsiannikov, Fred von Graf, terasurfer, Kalila, Dan Guido, Nitin Borwankar, 阿明, Ai Maven, John Villwock, Gabriel Puliatti, Stephen Murray, Asp the Wyvern, danny, Chris Smitley, ReadyPlayerEmma, S_X, Daniel P. Andersen, Olakabola, Jeffrey Morgan, Imad Khwaja, Caitlyn Gatomon, webtim, Alicia Loh, Trenton Dambrowitz, Swaroop Kallakuri, Erik Bjäreholt, Leonard Tan, Spiking Neurons AB, Luke @flexchar, Ajan Kanaga, Thomas Belote, Deo Leter, RoA, Willem Michiel, transmissions 11, subjectnull, Matthew Berman, Joseph William Delisle, David Ziegler, Michael Davis, Johann-Peter Hartmann, Talal Aujan, senxiiz, Artur Olbinski, Rainer Wilmers, Spencer Kim, Fen Risland, Cap'n Zoog, Rishabh Srivastava, Michael Levine, Geoffrey Montalvo, Sean Connelly, Alexandros Triantafyllidis, Pieter, Gabriel Tamborski, Sam, Subspace Studios, Junyu Yang, Pedro Madruga, Vadim, Cory Kujawski, K, Raven Klaugh, Randy H, Mano Prime, Sebastain Graf, Space Cruiser Thank you to all my generous patrons and donaters! And thank you again to a16z for their generous grant. <!-- footer end --> # Original model card: Technology Innovation Institute's Falcon 180B Chat # 🚀 Falcon-180B-Chat **Falcon-180B-Chat is a 180B parameters causal decoder-only model built by [TII](https://www.tii.ae) based on [Falcon-180B](https://huggingface.co/tiiuae/falcon-180B) and finetuned on a mixture of [Ultrachat](https://huggingface.co/datasets/stingning/ultrachat), [Platypus](https://huggingface.co/datasets/garage-bAInd/Open-Platypus) and [Airoboros](https://huggingface.co/datasets/jondurbin/airoboros-2.1). It is made available under the [Falcon-180B TII License](https://huggingface.co/tiiuae/falcon-180B-chat/blob/main/LICENSE.txt) and [Acceptable Use Policy](https://huggingface.co/tiiuae/falcon-180B-chat/blob/main/ACCEPTABLE_USE_POLICY.txt).** *Paper coming soon* 😊 🤗 To get started with Falcon (inference, finetuning, quantization, etc.), we recommend reading [this great blogpost from HF](https://hf.co/blog/falcon-180b) or this [one](https://huggingface.co/blog/falcon) from the release of the 40B! Note that since the 180B is larger than what can easily be handled with `transformers`+`acccelerate`, we recommend using [Text Generation Inference](https://github.com/huggingface/text-generation-inference). You will need **at least 400GB of memory** to swiftly run inference with Falcon-180B. ## Why use Falcon-180B-chat? * ✨ **You are looking for a ready-to-use chat/instruct model based on [Falcon-180B](https://huggingface.co/tiiuae/falcon-180B).** * **It is the best open-access model currently available, and one of the best model overall.** Falcon-180B outperforms [LLaMA-2](https://huggingface.co/meta-llama/Llama-2-70b-hf), [StableLM](https://github.com/Stability-AI/StableLM), [RedPajama](https://huggingface.co/togethercomputer/RedPajama-INCITE-Base-7B-v0.1), [MPT](https://huggingface.co/mosaicml/mpt-7b), etc. See the [OpenLLM Leaderboard](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard). * **It features an architecture optimized for inference**, with multiquery ([Shazeer et al., 2019](https://arxiv.org/abs/1911.02150)). * **It is made available under a permissive license allowing for commercial use**. 💬 **This is a Chat model, which may not be ideal for further finetuning.** If you are interested in building your own instruct/chat model, we recommend starting from [Falcon-180B](https://huggingface.co/tiiuae/falcon-180b). 💸 **Looking for a smaller, less expensive model?** [Falcon-7B-Instruct](https://huggingface.co/tiiuae/falcon-7b-instruct) and [Falcon-40B-Instruct](https://huggingface.co/tiiuae/falcon-40b-instruct) are Falcon-180B-Chat's little brothers! 💥 **Falcon LLMs require PyTorch 2.0 for use with `transformers`!** # Model Card for Falcon-180B-Chat ## Model Details ### Model Description - **Developed by:** [https://www.tii.ae](https://www.tii.ae); - **Model type:** Causal decoder-only; - **Language(s) (NLP):** English, German, Spanish, French (and limited capabilities in Italian, Portuguese, Polish, Dutch, Romanian, Czech, Swedish); - **License:** [Falcon-180B TII License](https://huggingface.co/tiiuae/falcon-180B-chat/blob/main/LICENSE.txt) and [Acceptable Use Policy](https://huggingface.co/tiiuae/falcon-180B-chat/blob/main/ACCEPTABLE_USE_POLICY.txt). ### Model Source - **Paper:** *coming soon*. ## Uses See the [acceptable use policy](https://huggingface.co/tiiuae/falcon-180B-chat/blob/main/ACCEPTABLE_USE_POLICY.txt). ### Direct Use Falcon-180B-Chat has been finetuned on a chat dataset. ### Out-of-Scope Use Production use without adequate assessment of risks and mitigation; any use cases which may be considered irresponsible or harmful. ## Bias, Risks, and Limitations Falcon-180B-Chat is mostly trained on English data, 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-180B-Chat to develop guardrails and to take appropriate precautions for any production use. ## How to Get Started with the Model To run inference with the model in full `bfloat16` precision you need approximately 8xA100 80GB or equivalent. ```python from transformers import AutoTokenizer, AutoModelForCausalLM import transformers import torch model = "tiiuae/falcon-180b-chat" tokenizer = AutoTokenizer.from_pretrained(model) pipeline = transformers.pipeline( "text-generation", model=model, tokenizer=tokenizer, torch_dtype=torch.bfloat16, trust_remote_code=True, 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 **Falcon-180B-Chat is based on [Falcon-180B](https://huggingface.co/tiiuae/falcon-180B).** ### Training Data Falcon-180B-Chat is finetuned on a mixture of [Ultrachat](https://huggingface.co/datasets/stingning/ultrachat), [Platypus](https://huggingface.co/datasets/garage-bAInd/Open-Platypus) and [Airoboros](https://huggingface.co/datasets/jondurbin/airoboros-2.1). The data was tokenized with the Falcon tokenizer. ## Evaluation *Paper coming soon.* See the [OpenLLM Leaderboard](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard) for early results. ## Technical Specifications ### Model Architecture and Objective Falcon-180B-Chat is a causal decoder-only model trained on a causal language modeling task (i.e., predict the next token). The architecture is broadly adapted from the GPT-3 paper ([Brown et al., 2020](https://arxiv.org/abs/2005.14165)), with the following differences: * **Positionnal embeddings:** rotary ([Su et al., 2021](https://arxiv.org/abs/2104.09864)); * **Attention:** multiquery ([Shazeer et al., 2019](https://arxiv.org/abs/1911.02150)) and FlashAttention ([Dao et al., 2022](https://arxiv.org/abs/2205.14135)); * **Decoder-block:** parallel attention/MLP with a two layer norms. For multiquery, we are using an internal variant which uses independent key and values per tensor parallel degree. | **Hyperparameter** | **Value** | **Comment** | |--------------------|-----------|----------------------------------------| | Layers | 80 | | | `d_model` | 14848 | | | `head_dim` | 64 | Reduced to optimise for FlashAttention | | Vocabulary | 65024 | | | Sequence length | 2048 | | ### Compute Infrastructure #### Hardware Falcon-180B-Chat was trained on AWS SageMaker, on up to 4,096 A100 40GB GPUs in P4d instances. #### Software Falcon-180B-Chat 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 *Paper coming soon* 😊. In the meanwhile, you can use the following information to cite: ``` @article{falcon, title={The Falcon Series of Language Models:Towards Open Frontier Models}, author={Almazrouei, Ebtesam and Alobeidli, Hamza and Alshamsi, Abdulaziz and Cappelli, Alessandro and Cojocaru, Ruxandra and Debbah, Merouane and Goffinet, Etienne and Heslow, Daniel and Launay, Julien and Malartic, Quentin and Noune, Badreddine and Pannier, Baptiste and Penedo, Guilherme}, year={2023} } ``` To learn more about the pretraining dataset, see the 📓 [RefinedWeb paper](https://arxiv.org/abs/2306.01116). ``` @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.5785486102104187, -0.7726670503616333, 0.05843024700880051, 0.19576485455036163, -0.2170700579881668, -0.004417845048010349, 0.11484437435865402, -0.5176689028739929, 0.23610348999500275, 0.3068114221096039, -0.6383251547813416, -0.3438117802143097, -0.4109674394130707, -0.028547024354338646, -0.42690643668174744, 0.9682368636131287, 0.06033683568239212, -0.3783302903175354, -0.011995921842753887, -0.08051936328411102, -0.2592278718948364, -0.3408347964286804, -0.7529144883155823, -0.23854069411754608, 0.3160565197467804, 0.23345288634300232, 0.921703577041626, 0.6079540848731995, 0.31634217500686646, 0.3374110460281372, -0.03572560101747513, -0.02492581121623516, -0.4835008978843689, -0.13896286487579346, 0.08875945955514908, -0.11030908674001694, -0.5599841475486755, 0.13005433976650238, 0.43118104338645935, 0.14726325869560242, -0.34837839007377625, 0.10679812729358673, 0.038390595465898514, 0.6963639855384827, -0.4413423538208008, 0.2630813717842102, -0.37037238478660583, 0.08608953654766083, -0.03458143398165703, 0.15568046271800995, -0.07384340465068817, -0.32165783643722534, 0.08832678198814392, -0.8702107071876526, 0.20329001545906067, 0.008570333942770958, 1.2615152597427368, 0.12173253297805786, -0.61488276720047, 0.02062063291668892, -0.5224250555038452, 0.5640650391578674, -0.8394753932952881, 0.33719202876091003, 0.4314155578613281, 0.337047278881073, -0.25424590706825256, -0.9672825336456299, -0.610225260257721, -0.09604785591363907, -0.17541314661502838, 0.3594472110271454, -0.46915844082832336, 0.0364580973982811, 0.4206128716468811, 0.6707416772842407, -0.8747366666793823, -0.19249936938285828, -0.33940744400024414, -0.2006245255470276, 0.7734369039535522, 0.14310750365257263, 0.428815096616745, -0.2733694911003113, -0.31518667936325073, -0.47830459475517273, -0.6101453304290771, 0.09320803731679916, 0.3837696313858032, 0.06062852218747139, -0.6210326552391052, 0.3800086975097656, -0.3245229721069336, 0.3587599992752075, 0.32709643244743347, 0.043995145708322525, 0.3588067889213562, -0.5212119221687317, -0.40797877311706543, -0.36726289987564087, 1.2725107669830322, 0.35168150067329407, -0.06783612072467804, 0.20990842580795288, -0.0033145532943308353, -0.16999676823616028, 0.1827177107334137, -0.9817171096801758, -0.48808664083480835, 0.3926331698894501, -0.4386381506919861, -0.29990115761756897, -0.024508504197001457, -0.7842432260513306, 0.041258472949266434, 0.010960704647004604, 0.5326067805290222, -0.512808084487915, -0.4288978576660156, 0.10613615810871124, -0.34655341506004333, 0.45891568064689636, 0.2705302834510803, -0.9023838043212891, 0.38090455532073975, 0.3648909032344818, 0.6772659420967102, 0.16903056204319, -0.25158029794692993, -0.3000943660736084, 0.14784717559814453, -0.08181817829608917, 0.49777430295944214, -0.1754351258277893, -0.5753922462463379, -0.24923668801784515, 0.35827893018722534, 0.030451130121946335, -0.21007956564426422, 0.5121041536331177, -0.2650471031665802, 0.4618860185146332, -0.4461043179035187, -0.4821223318576813, -0.3271945118904114, 0.0800832137465477, -0.6184371113777161, 1.1084450483322144, 0.4677231013774872, -0.835066556930542, 0.18893608450889587, -0.6795787811279297, -0.30022993683815, 0.04085429385304451, -0.028018631041049957, -0.5425121188163757, -0.15829099714756012, 0.25617802143096924, 0.2785301208496094, -0.24579988420009613, 0.09962955117225647, -0.2990070879459381, -0.3444508910179138, 0.132138192653656, -0.490987092256546, 1.1048790216445923, 0.25499364733695984, -0.46708399057388306, -0.09232825040817261, -0.5630943179130554, 0.10995925962924957, 0.4208385646343231, -0.154291033744812, 0.08949460834264755, -0.13816751539707184, 0.06661587208509445, 0.129336416721344, 0.17697136104106903, -0.39176109433174133, 0.4570549428462982, -0.2681472599506378, 0.710210919380188, 0.5640392899513245, 0.013383032754063606, 0.3561534881591797, -0.43012866377830505, 0.49137604236602783, 0.04930391162633896, 0.6351234316825867, 0.02124534547328949, -0.6371822953224182, -0.732944130897522, -0.19648125767707825, 0.3214595913887024, 0.5331369042396545, -0.7559322118759155, 0.45744869112968445, -0.13277146220207214, -0.7344433069229126, -0.24283424019813538, -0.17677178978919983, 0.24012216925621033, 0.3775968551635742, 0.44160032272338867, -0.4076246917247772, -0.39680323004722595, -0.8224371075630188, 0.07258842140436172, -0.5338049530982971, 0.0009253846947103739, 0.4157559871673584, 0.764929473400116, -0.3567667603492737, 0.7945641279220581, -0.5679457187652588, -0.11777551472187042, -0.06532974541187286, 0.17133468389511108, 0.25464242696762085, 0.6032586693763733, 0.7726373672485352, -0.754851758480072, -0.5737937092781067, -0.08625318109989166, -0.6338158845901489, -0.062215182930231094, 0.03460056334733963, -0.36296287178993225, 0.17709054052829742, 0.0066841826774179935, -1.0752164125442505, 0.6064099669456482, 0.5201605558395386, -0.5160533785820007, 0.7537137269973755, -0.20617933571338654, 0.19409523904323578, -1.0608015060424805, 0.07514131814241409, 0.11869524419307709, -0.2755506634712219, -0.4795379042625427, 0.11167827993631363, 0.025678284466266632, 0.08319618552923203, -0.4017627239227295, 0.6110162734985352, -0.42307883501052856, 0.06866166740655899, -0.01513141393661499, -0.09885954111814499, 0.37272050976753235, 0.4267825484275818, -0.17941375076770782, 0.9266815185546875, 0.43222126364707947, -0.4621502161026001, 0.5300981402397156, 0.49217861890792847, -0.03474830090999603, 0.21874551475048065, -0.8983878493309021, 0.13085708022117615, 0.10879040509462357, 0.3964308202266693, -0.9274513125419617, -0.322893887758255, 0.5976462364196777, -0.5953040719032288, 0.4884530007839203, -0.25705212354660034, -0.3512630760669708, -0.5038609504699707, -0.48856523633003235, 0.2824472188949585, 0.7711724042892456, -0.37374863028526306, 0.4872249662876129, 0.39047202467918396, 0.007836936041712761, -0.6260052919387817, -0.6923767924308777, -0.051382727921009064, -0.2605307698249817, -0.6138789057731628, 0.4866182506084442, -0.19251173734664917, 0.0013490746496245265, -0.017776552587747574, 0.05239950865507126, -0.04678507149219513, -0.0485510528087616, 0.30398401618003845, 0.2895420789718628, -0.13701918721199036, -0.15073834359645844, 0.17155712842941284, -0.056135259568691254, 0.002179051749408245, -0.28402936458587646, 0.42581313848495483, -0.30164772272109985, -0.11527909338474274, -0.39657098054885864, 0.29659464955329895, 0.5461354851722717, 0.003872953588142991, 0.6479607224464417, 0.86024409532547, -0.25617435574531555, 0.17023055255413055, -0.5123436450958252, -0.11123178154230118, -0.5409983396530151, 0.2023635357618332, -0.1802268922328949, -0.7001792788505554, 0.5139614939689636, 0.376129150390625, 0.11925847828388214, 0.7736689448356628, 0.4031738340854645, -0.12719488143920898, 1.0122487545013428, 0.42228299379348755, -0.20001280307769775, 0.4916391372680664, -0.5874530673027039, -0.14732448756694794, -0.8159992098808289, -0.16148695349693298, -0.4490829408168793, -0.2009076625108719, -0.8334736824035645, -0.3362330198287964, 0.301286518573761, 0.18535777926445007, -0.8231709003448486, 0.5912157297134399, -0.7209272384643555, 0.20003919303417206, 0.48218896985054016, 0.1173652932047844, 0.23045815527439117, 0.06387390196323395, -0.12008174508810043, 0.056465983390808105, -0.5896681547164917, -0.3090406656265259, 0.9480652213096619, 0.3429373502731323, 0.6370880603790283, 0.22518832981586456, 0.4723205864429474, 0.16107477247714996, 0.29026222229003906, -0.5341008305549622, 0.480562686920166, -0.058709658682346344, -0.6679103970527649, -0.3400031626224518, -0.6356079578399658, -0.9417186975479126, 0.19408437609672546, -0.043002206832170486, -0.7771616578102112, 0.3013020157814026, -0.03581007570028305, -0.2740507423877716, 0.2164960503578186, -0.6982182264328003, 0.9887136220932007, -0.15153191983699799, -0.3349803686141968, 0.057220421731472015, -0.6455138325691223, 0.3119353950023651, 0.18393361568450928, 0.07904491573572159, -0.1553364396095276, -0.13092412054538727, 0.6920394897460938, -0.8389707207679749, 0.7008318901062012, -0.22193215787410736, -0.03661058098077774, 0.5292871594429016, -0.08750061690807343, 0.6472586989402771, 0.14643438160419464, 0.025324158370494843, 0.27320629358291626, 0.30948618054389954, -0.41005197167396545, -0.46452999114990234, 0.5311194062232971, -1.0548028945922852, -0.5455694794654846, -0.4387296736240387, -0.4353575110435486, -0.022890634834766388, 0.06365169584751129, 0.5449581146240234, 0.3983675539493561, -0.07537050545215607, 0.10315565019845963, 0.5356722474098206, -0.3659557104110718, 0.49867814779281616, 0.4208238124847412, -0.38719916343688965, -0.5791891813278198, 0.8155799508094788, 0.11586817353963852, 0.23680292069911957, 0.2180345356464386, 0.1566080003976822, -0.5189117789268494, -0.3931490480899811, -0.7044556140899658, 0.28789833188056946, -0.504403293132782, -0.34536492824554443, -0.6496578454971313, -0.43486839532852173, -0.42724770307540894, 0.20056676864624023, -0.37812483310699463, -0.6065863966941833, -0.46258652210235596, 0.017031682655215263, 0.8236889243125916, 0.49869292974472046, -0.1556137055158615, 0.3360799252986908, -0.856569230556488, 0.22817184031009674, 0.4152127802371979, 0.21435260772705078, 0.0245002880692482, -0.7353526949882507, -0.10336712002754211, 0.3433476686477661, -0.6795623302459717, -0.8119837641716003, 0.5941087603569031, 0.21092654764652252, 0.4251534640789032, 0.3482319414615631, 0.13869500160217285, 0.7847273349761963, -0.20892903208732605, 0.9843918085098267, 0.24874618649482727, -0.8799651861190796, 0.5140494108200073, -0.672453761100769, 0.2666071951389313, 0.423089861869812, 0.5431223511695862, -0.4034968316555023, -0.3284791111946106, -0.7845719456672668, -0.7331746816635132, 0.43007713556289673, 0.5137998461723328, 0.17632371187210083, 0.0439232662320137, 0.48422569036483765, -0.04904472455382347, 0.13752193748950958, -0.7844976186752319, -0.4543939232826233, -0.5241736769676208, -0.12364225834608078, 0.10324064642190933, 0.00628154631704092, -0.08991099148988724, -0.6143327355384827, 0.9130401611328125, -0.1606932133436203, 0.7266146540641785, 0.2623315155506134, 0.15359820425510406, -0.148048534989357, 0.11854784935712814, 0.3606148362159729, 0.5285736322402954, -0.16716018319129944, -0.2629002034664154, 0.11360246688127518, -0.8326849341392517, 0.16668222844600677, 0.3391088843345642, -0.21129155158996582, -0.10640086233615875, 0.04673134908080101, 0.7524811029434204, -0.036558132618665695, -0.26770132780075073, 0.5277495384216309, -0.3644048273563385, -0.3441712260246277, -0.30568748712539673, 0.26907336711883545, 0.18943889439105988, 0.35914188623428345, 0.4308655261993408, -0.24346128106117249, 0.24951672554016113, -0.5505087971687317, 0.11332317441701889, 0.49461114406585693, -0.30204111337661743, -0.2947888970375061, 0.813321590423584, 0.033037830144166946, -0.025490975007414818, 0.7813260555267334, -0.32445958256721497, -0.4776877164840698, 0.8368292450904846, 0.4813019037246704, 0.818833589553833, -0.11034896224737167, 0.37720584869384766, 0.4994952380657196, 0.18401706218719482, -0.13614267110824585, 0.32973381876945496, -0.013785280287265778, -0.6048800945281982, -0.36455291509628296, -0.5647838115692139, -0.44034746289253235, 0.2833883464336395, -0.6716706156730652, 0.21449081599712372, -0.33558815717697144, -0.3953443467617035, -0.1831825077533722, 0.27338555455207825, -0.5262014269828796, 0.24974079430103302, -0.0249833595007658, 0.8937504887580872, -0.5581777095794678, 0.7965607643127441, 0.5070942640304565, -0.5449984669685364, -1.0333369970321655, -0.12444236129522324, 0.055270444601774216, -0.5694575905799866, 0.22899967432022095, 0.0908014327287674, 0.2711143493652344, 0.14064814150333405, -0.6526970863342285, -0.8779996037483215, 1.3866955041885376, 0.2651914358139038, -0.5569530725479126, -0.15116699039936066, 0.1797640025615692, 0.3842053711414337, -0.13271871209144592, 0.7369388341903687, 0.44286561012268066, 0.4451509416103363, 0.2179565131664276, -0.9589331746101379, 0.369989275932312, -0.5117622017860413, -0.003915032837539911, 0.23395107686519623, -1.1047042608261108, 0.899980366230011, 0.03688156232237816, -0.15495219826698303, 0.20444737374782562, 0.6149107217788696, 0.2590644955635071, -0.001889884821139276, 0.35937532782554626, 0.6749166250228882, 0.6908020377159119, -0.3822386562824249, 1.0714668035507202, -0.278952032327652, 0.6759819388389587, 0.7284840941429138, -0.015813834965229034, 0.6536428928375244, 0.1954800933599472, -0.6278254389762878, 0.6024173498153687, 0.8408731818199158, -0.19020691514015198, 0.353117436170578, -0.05579659342765808, -0.22710132598876953, -0.0373399443924427, 0.10622667521238327, -0.7500258088111877, 0.20247554779052734, 0.3866385221481323, -0.20179516077041626, 0.060315415263175964, -0.12818880379199982, -0.02758024074137211, -0.660938024520874, -0.10409669578075409, 0.5425540208816528, 0.23673877120018005, -0.31453266739845276, 0.8675743341445923, -0.15010127425193787, 0.6173979043960571, -0.5896260738372803, -0.07644300162792206, -0.38819262385368347, -0.08271339535713196, -0.26284822821617126, -0.7675409913063049, 0.2758506238460541, -0.16390076279640198, -0.07391532510519028, 0.00604272959753871, 0.7367610931396484, -0.11711449176073074, -0.36110198497772217, 0.29583314061164856, 0.4552801549434662, 0.21384085714817047, -0.12028996646404266, -1.0332860946655273, 0.24884986877441406, -0.02626131661236286, -0.6500502824783325, 0.47007524967193604, 0.35288602113723755, 0.28107696771621704, 0.7446374893188477, 0.5508986115455627, -0.21665941178798676, -0.056892842054367065, -0.1100788488984108, 0.9522849321365356, -0.7574712038040161, -0.32920458912849426, -0.7748576402664185, 0.5951343774795532, -0.15622496604919434, -0.3434114158153534, 0.7407028079032898, 0.5515260696411133, 0.6718525290489197, 0.011706218123435974, 0.7128434181213379, -0.3752823770046234, 0.14394597709178925, -0.2556780278682709, 0.8067207336425781, -0.6946865320205688, 0.12519672513008118, -0.4041631519794464, -0.7057775259017944, 0.0843699499964714, 0.7033829092979431, -0.07681271433830261, 0.2962539792060852, 0.4584716856479645, 0.8648890852928162, -0.043668363243341446, 0.3106023371219635, 0.1873548924922943, 0.35728567838668823, 0.23691508173942566, 0.8028266429901123, 0.8566752076148987, -1.0116184949874878, 0.694206714630127, -0.34988102316856384, -0.11783967912197113, -0.06441743671894073, -0.8057278990745544, -0.7023010849952698, -0.47161346673965454, -0.5652563571929932, -0.5615034699440002, -0.0003821153368335217, 0.8175970315933228, 0.7740772366523743, -0.5523285269737244, -0.24518682062625885, -0.18114635348320007, -0.0759735032916069, -0.17475314438343048, -0.3277774155139923, 0.27738869190216064, 0.19000855088233948, -0.7079580426216125, 0.17540492117404938, 0.11047844588756561, 0.46205687522888184, -0.18770404160022736, -0.2597135007381439, -0.17041799426078796, 0.010797234252095222, 0.5089708566665649, 0.5470117330551147, -0.4618718922138214, -0.28313252329826355, -0.1254720389842987, -0.15409134328365326, 0.2777590751647949, 0.26809999346733093, -0.7537399530410767, 0.010656965896487236, 0.48001059889793396, 0.18564072251319885, 0.8489236235618591, -0.00477325776591897, 0.40360257029533386, -0.3784398138523102, 0.05799019709229469, 0.011230905540287495, 0.3417731821537018, 0.10480687767267227, -0.4763273298740387, 0.6473919749259949, 0.3459576666355133, -0.7217419147491455, -0.6277270317077637, -0.07457435131072998, -1.0780493021011353, -0.15252022445201874, 1.0879632234573364, -0.13670121133327484, -0.3023366928100586, -0.09806732833385468, -0.2633610963821411, 0.4292123317718506, -0.5642046332359314, 0.5002074837684631, 0.49628740549087524, -0.1488802134990692, -0.29794949293136597, -0.6838690638542175, 0.48906368017196655, 0.14523892104625702, -0.8267782926559448, -0.045188162475824356, 0.4004954695701599, 0.4009689688682556, 0.02962811104953289, 0.7404841184616089, -0.2084050476551056, 0.39922669529914856, 0.1023913249373436, -0.04232411086559296, -0.08405578881502151, 0.08922428637742996, -0.23103366792201996, -0.024806126952171326, -0.25329023599624634, 0.00007794950215611607 ]
timm/cspdarknet53.ra_in1k
timm
"2023-04-12T20:39:34Z"
42,416
0
timm
[ "timm", "pytorch", "safetensors", "image-classification", "arxiv:2110.00476", "arxiv:1911.11929", "arxiv:1804.02767", "license:apache-2.0", "region:us" ]
image-classification
"2023-04-12T20:39:07Z"
--- tags: - image-classification - timm library_tag: timm license: apache-2.0 --- # Model card for cspdarknet53.ra_in1k A CSP-DarkNet (Cross-Stage-Partial) image classification model. Trained on ImageNet-1k in `timm` using recipe template described below. Recipe details: * RandAugment `RA` 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): 27.6 - GMACs: 6.6 - Activations (M): 16.8 - Image size: 256 x 256 - **Papers:** - CSPNet: A New Backbone that can Enhance Learning Capability of CNN: https://arxiv.org/abs/1911.11929 - YOLOv3: An Incremental Improvement: https://arxiv.org/abs/1804.02767 - ResNet strikes back: An improved training procedure in timm: https://arxiv.org/abs/2110.00476 - **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('cspdarknet53.ra_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( 'cspdarknet53.ra_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, 256, 256]) # torch.Size([1, 64, 128, 128]) # torch.Size([1, 128, 64, 64]) # torch.Size([1, 256, 32, 32]) # 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( 'cspdarknet53.ra_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, 1024, 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 @article{Wang2019CSPNetAN, title={CSPNet: A New Backbone that can Enhance Learning Capability of CNN}, author={Chien-Yao Wang and Hong-Yuan Mark Liao and I-Hau Yeh and Yueh-Hua Wu and Ping-Yang Chen and Jun-Wei Hsieh}, journal={2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW)}, year={2019}, pages={1571-1580} } ``` ```bibtex @article{Redmon2018YOLOv3AI, title={YOLOv3: An Incremental Improvement}, author={Joseph Redmon and Ali Farhadi}, journal={ArXiv}, year={2018}, volume={abs/1804.02767} } ``` ```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} } ``` ```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.4480563700199127, -0.24249154329299927, -0.08841538429260254, 0.1242978572845459, -0.27774500846862793, -0.2164357453584671, -0.2921697795391083, -0.3952120840549469, 0.18636448681354523, 0.38500842452049255, -0.4071033000946045, -0.621501088142395, -0.7321016192436218, -0.08670716732740402, -0.18810200691223145, 0.9136519432067871, 0.006027070339769125, 0.1535016894340515, -0.04314947500824928, -0.3951455354690552, -0.08587442338466644, -0.3392055332660675, -0.9160423278808594, -0.4816489815711975, 0.4877024292945862, 0.2981111407279968, 0.538926362991333, 0.5974156856536865, 0.5434721112251282, 0.46783098578453064, -0.16911490261554718, 0.13956372439861298, -0.26256340742111206, -0.30638787150382996, 0.3210257291793823, -0.6002801656723022, -0.4446496069431305, 0.2017679363489151, 0.7056639194488525, 0.5200747847557068, 0.0717102438211441, 0.27149319648742676, 0.2623707354068756, 0.6694541573524475, -0.4639756679534912, 0.07094511389732361, -0.35624396800994873, 0.38705310225486755, -0.11029967665672302, -0.0732492133975029, -0.30488359928131104, -0.35529154539108276, 0.31721025705337524, -0.5415701270103455, 0.5264924168586731, 0.022120585665106773, 1.2814521789550781, 0.07216870039701462, -0.0008730452391318977, 0.05224776268005371, -0.1621742993593216, 0.879621148109436, -0.8452675938606262, 0.1957627534866333, 0.32049560546875, 0.3254266679286957, -0.16183383762836456, -1.126749873161316, -0.6181961297988892, -0.20955990254878998, -0.07767416536808014, 0.023947661742568016, -0.20197325944900513, -0.08293301612138748, 0.1976473331451416, 0.3578527569770813, -0.42596086859703064, 0.20090845227241516, -0.6548599004745483, -0.22192732989788055, 0.454341322183609, 0.07931441068649292, 0.2872539460659027, -0.2867204248905182, -0.38994190096855164, -0.47356364130973816, -0.36600640416145325, 0.2790989577770233, 0.36115607619285583, 0.2677974998950958, -0.6467065811157227, 0.30968305468559265, 0.014373156242072582, 0.6492096185684204, 0.20953521132469177, -0.2731051743030548, 0.6420026421546936, 0.05239923670887947, -0.435982346534729, -0.08122913539409637, 1.0804052352905273, 0.3169626295566559, 0.1777927726507187, 0.08171380311250687, 0.055067576467990875, -0.4937862157821655, -0.041613515466451645, -1.1327413320541382, -0.5045270323753357, 0.2803190350532532, -0.7282987833023071, -0.5525292158126831, 0.19987604022026062, -0.6313066482543945, -0.3045819401741028, -0.06732332706451416, 0.28558728098869324, -0.6491053700447083, -0.4269649088382721, 0.10528231412172318, -0.23427346348762512, 0.4598607122898102, 0.37399134039878845, -0.5809663534164429, 0.20913343131542206, 0.3640742301940918, 1.1168652772903442, 0.014478637836873531, -0.508884608745575, -0.20320481061935425, -0.444012314081192, -0.3416037857532501, 0.5059125423431396, -0.09723197668790817, -0.043362218886613846, -0.3511660695075989, 0.35715168714523315, -0.08671405911445618, -0.6260035634040833, 0.26204413175582886, -0.275321900844574, 0.37653660774230957, -0.09735730290412903, -0.1268726885318756, -0.5633985996246338, 0.38524165749549866, -0.43055304884910583, 1.1928092241287231, 0.25952038168907166, -0.9627766013145447, 0.26999208331108093, -0.4531922936439514, -0.12622524797916412, -0.31464898586273193, -0.032399848103523254, -1.0646007061004639, -0.14510244131088257, 0.2691122889518738, 0.7417479157447815, -0.4417986273765564, -0.06681758165359497, -0.6647355556488037, -0.36308225989341736, 0.3835299015045166, -0.12739218771457672, 1.1334997415542603, 0.20903031527996063, -0.45115262269973755, 0.12924857437610626, -0.7899091243743896, 0.23617637157440186, 0.5206739902496338, -0.3511863648891449, 0.09636799991130829, -0.5084667205810547, 0.19355179369449615, 0.35470372438430786, 0.07666195929050446, -0.49405571818351746, 0.1294158697128296, -0.3253552317619324, 0.4325628876686096, 0.7116649746894836, -0.16595208644866943, 0.3865496516227722, -0.4453014135360718, 0.3401418626308441, 0.29464131593704224, 0.2766191363334656, -0.04017861932516098, -0.47232845425605774, -0.8970620036125183, -0.5295564532279968, 0.40946921706199646, 0.41364991664886475, -0.41940245032310486, 0.4879772663116455, -0.13479597866535187, -0.7980421185493469, -0.2664510905742645, -0.008029576390981674, 0.49034741520881653, 0.6154921054840088, 0.4049685299396515, -0.6150637865066528, -0.5893949866294861, -0.8845136165618896, 0.10153422504663467, 0.18848983943462372, 0.04079487547278404, 0.32565736770629883, 0.598105788230896, 0.0912582129240036, 0.5609485507011414, -0.42456939816474915, -0.2590958774089813, -0.3237874507904053, 0.12133408337831497, 0.3988678455352783, 0.8583511710166931, 0.8522271513938904, -0.6411632299423218, -0.6156721115112305, -0.10523645579814911, -0.8748207688331604, 0.24493643641471863, -0.07708382606506348, -0.10662751644849777, 0.2518768012523651, 0.1397123485803604, -0.4172627329826355, 0.6325247287750244, 0.22027350962162018, -0.14739999175071716, 0.5663294792175293, -0.16829319298267365, 0.3836434781551361, -1.1747850179672241, 0.14546306431293488, 0.35579046607017517, -0.03229808807373047, -0.3933178782463074, -0.01830551028251648, 0.06507391482591629, -0.22856877744197845, -0.6379075050354004, 0.4128672480583191, -0.6783090233802795, -0.28234997391700745, -0.26382046937942505, -0.13224802911281586, 0.034828104078769684, 0.8784121870994568, -0.08581925928592682, 0.37839004397392273, 1.0230854749679565, -0.4738927185535431, 0.4742054045200348, 0.29243749380111694, -0.22088786959648132, 0.5233208537101746, -0.6711477041244507, 0.2345161736011505, -0.04368811100721359, 0.3323039710521698, -0.9815624356269836, -0.19904235005378723, 0.4906787574291229, -0.6931207180023193, 0.7010419368743896, -0.552356481552124, -0.47230222821235657, -0.5637180209159851, -0.500505805015564, 0.33414632081985474, 0.6156473755836487, -0.7648071050643921, 0.5198433995246887, 0.08012222498655319, 0.40381938219070435, -0.7259798645973206, -0.9455795288085938, -0.022883694618940353, -0.29440125823020935, -0.6953860521316528, 0.40397486090660095, 0.17342276871204376, 0.2614336311817169, 0.12450685352087021, -0.09071838855743408, -0.2450883537530899, -0.09821738302707672, 0.531180739402771, 0.30985936522483826, -0.33653393387794495, -0.22913718223571777, -0.4018539488315582, -0.06316264718770981, -0.0716131404042244, -0.4134742319583893, 0.6279270648956299, -0.2982940971851349, -0.16681921482086182, -0.9139838814735413, -0.011003009043633938, 0.46160888671875, -0.2633126378059387, 0.824566662311554, 1.0740642547607422, -0.5008939504623413, -0.11813048273324966, -0.37570902705192566, -0.2863300144672394, -0.5218691229820251, 0.5212525129318237, -0.28549179434776306, -0.4888630211353302, 0.8395513296127319, -0.048484258353710175, -0.07274533063173294, 0.5577707886695862, 0.2846788465976715, -0.10836633294820786, 0.75138258934021, 0.611061155796051, 0.19571638107299805, 0.6730004549026489, -1.0085991621017456, -0.1465814709663391, -0.9577056765556335, -0.48082321882247925, -0.4884325861930847, -0.5985794067382812, -0.6087614893913269, -0.39398252964019775, 0.3893972337245941, 0.2560734450817108, -0.44444459676742554, 0.5704632997512817, -0.9261645078659058, 0.0925026386976242, 0.6511049866676331, 0.6363015174865723, -0.4044129550457001, 0.2668178379535675, -0.33900895714759827, -0.06992733478546143, -0.8726809620857239, -0.13504581153392792, 1.1184272766113281, 0.33605024218559265, 0.5506770610809326, -0.1361592561006546, 0.7313396334648132, -0.24702605605125427, 0.22155751287937164, -0.5245119333267212, 0.677640974521637, -0.13809683918952942, -0.3719917833805084, -0.032709404826164246, -0.3689441680908203, -1.0456124544143677, 0.14769870042800903, -0.42825037240982056, -0.7975401878356934, 0.3610559105873108, 0.2458105981349945, -0.2229171246290207, 0.8025965094566345, -0.75306636095047, 0.849173367023468, -0.1870397925376892, -0.5035971403121948, -0.07380228489637375, -0.7250689268112183, 0.32261595129966736, 0.22967061400413513, -0.3382278382778168, -0.0627177432179451, 0.21862001717090607, 0.9191594123840332, -0.6776039004325867, 0.9765899777412415, -0.3707605302333832, 0.4557553231716156, 0.4091261029243469, -0.18864881992340088, 0.3762078583240509, -0.20310983061790466, -0.20916908979415894, 0.3419141471385956, -0.07383626699447632, -0.5053736567497253, -0.6042667031288147, 0.6651462316513062, -1.029404640197754, -0.3493693470954895, -0.5440126657485962, -0.4297465980052948, 0.18982082605361938, 0.2044876664876938, 0.48160457611083984, 0.711811900138855, 0.3084816038608551, 0.3633934259414673, 0.6368672847747803, -0.620492160320282, 0.4592169225215912, 0.10512478649616241, -0.04193457216024399, -0.5942460894584656, 0.8394966721534729, 0.25126996636390686, 0.10569984465837479, 0.23805394768714905, 0.25375816226005554, -0.12586309015750885, -0.7105954885482788, -0.16004106402397156, 0.24271462857723236, -0.8374185562133789, -0.47608256340026855, -0.5946967601776123, -0.429472953081131, -0.49225181341171265, -0.15378397703170776, -0.5339124202728271, -0.4471101462841034, -0.4946720004081726, 0.30532196164131165, 0.6575934886932373, 0.4321421682834625, -0.23369280993938446, 0.4623112678527832, -0.44275471568107605, 0.04672719165682793, 0.09502696245908737, 0.4432113766670227, 0.07251355051994324, -0.8633980751037598, -0.29408079385757446, -0.13527469336986542, -0.5587356090545654, -0.7492565512657166, 0.4698413908481598, 0.17573165893554688, 0.5353273749351501, 0.2775017023086548, -0.13931669294834137, 0.787318229675293, -0.05571584403514862, 0.6139732599258423, 0.5660236477851868, -0.591758131980896, 0.556101381778717, -0.08835606276988983, 0.3086928427219391, 0.08431502431631088, 0.3666520416736603, -0.29121994972229004, -0.0873422771692276, -0.8697264790534973, -0.7847191691398621, 0.9598897695541382, 0.03832921385765076, -0.07114674150943756, 0.30853015184402466, 0.6596777439117432, -0.13512319326400757, -0.05680571123957634, -0.7509915828704834, -0.4884538948535919, -0.5638605952262878, -0.1624690741300583, 0.18509745597839355, 0.009397714398801327, -0.0374690443277359, -0.6497015357017517, 0.7286868691444397, -0.12256663292646408, 0.7553621530532837, 0.4063751995563507, 0.04707375541329384, -0.06096050888299942, -0.33951234817504883, 0.49401208758354187, 0.45517560839653015, -0.29456907510757446, 0.07563880831003189, 0.2867242097854614, -0.5633869171142578, -0.051245156675577164, 0.259085088968277, 0.08028048276901245, -0.1913958340883255, 0.471821665763855, 0.8391956686973572, 0.1352154165506363, 0.05697556212544441, 0.4921000599861145, -0.05265723168849945, -0.4674046039581299, -0.40627074241638184, 0.2068343311548233, -0.043394848704338074, 0.45506179332733154, 0.43514886498451233, 0.5445699691772461, -0.09973733127117157, -0.19640088081359863, 0.3576824963092804, 0.3901670277118683, -0.33846381306648254, -0.24837125837802887, 0.6823574304580688, -0.23366810381412506, -0.17185468971729279, 0.8212209343910217, -0.08832483738660812, -0.5429854989051819, 1.111928105354309, 0.4575580656528473, 0.9406225085258484, 0.031437695026397705, 0.05861105024814606, 0.8990046381950378, 0.2044295221567154, 0.09804495424032211, 0.09638853371143341, 0.08946400880813599, -0.7425230145454407, -0.04248844459652901, -0.4100407361984253, 0.016181033104658127, 0.34985649585723877, -0.5556232333183289, 0.48121917247772217, -0.8745257258415222, -0.26937660574913025, 0.23576466739177704, 0.3490590453147888, -0.9632709622383118, 0.2683613896369934, -0.004872569814324379, 0.9760410189628601, -0.5166811347007751, 0.8716632723808289, 0.7471526265144348, -0.6245776414871216, -1.1185766458511353, -0.023273469880223274, 0.09070179611444473, -0.915203869342804, 0.6991761922836304, 0.3820085823535919, 0.06536370515823364, 0.0175164844840765, -0.8301119804382324, -0.6452581286430359, 1.4837583303451538, 0.5053820610046387, -0.10972101986408234, 0.29330363869667053, -0.06293745338916779, 0.26849687099456787, -0.3825397789478302, 0.4754202663898468, 0.029148146510124207, 0.3331565856933594, 0.3495810031890869, -0.6566122770309448, 0.2725330889225006, -0.372418075799942, 0.135890394449234, 0.059815168380737305, -0.8637202978134155, 0.9058481454849243, -0.5334148406982422, -0.13018736243247986, 0.07867660373449326, 0.7448124289512634, 0.26647356152534485, 0.05851184204220772, 0.5111010074615479, 0.8232525587081909, 0.5058916211128235, -0.24691930413246155, 0.9528995156288147, -0.12496911734342575, 0.5555150508880615, 0.7677642703056335, 0.3280623257160187, 0.5096567273139954, 0.2903757095336914, -0.24204175174236298, 0.4480800926685333, 1.1057374477386475, -0.4728021025657654, 0.4427741467952728, 0.33253800868988037, 0.022136911749839783, -0.14599831402301788, 0.16677726805210114, -0.48880884051322937, 0.5222371220588684, 0.052065279334783554, -0.6086220145225525, -0.27196818590164185, 0.04283241555094719, 0.0960695818066597, -0.20848891139030457, -0.15797662734985352, 0.3770056962966919, 0.008506625890731812, -0.39378997683525085, 0.9479421973228455, 0.2118377834558487, 0.8711958527565002, -0.50899338722229, -0.08131653815507889, -0.24667252600193024, 0.26056045293807983, -0.425748348236084, -0.7820531725883484, 0.2501126527786255, -0.3551968038082123, -0.05984468013048172, 0.12454518675804138, 0.6947281360626221, -0.23522886633872986, -0.42038747668266296, 0.19892778992652893, 0.09589570015668869, 0.4195862114429474, 0.18894654512405396, -1.3259828090667725, 0.1770339459180832, 0.014927320182323456, -0.5518390536308289, 0.40054550766944885, 0.38720154762268066, 0.18977153301239014, 0.720827579498291, 0.6522765159606934, -0.0587322823703289, 0.125257208943367, -0.19622042775154114, 0.9167262315750122, -0.4462946057319641, -0.3736944794654846, -0.6475411653518677, 0.6594146490097046, -0.26995301246643066, -0.6494149565696716, 0.6533709764480591, 0.6135375499725342, 0.8474916219711304, 0.012131988070905209, 0.5463071465492249, -0.3602704107761383, 0.020646868273615837, -0.31323519349098206, 0.7203220129013062, -0.6823120713233948, 0.10615947842597961, -0.23635728657245636, -0.5810633897781372, -0.42305660247802734, 0.7636339068412781, -0.30346402525901794, 0.3797912299633026, 0.5672560334205627, 1.1002172231674194, -0.4070291519165039, -0.26911279559135437, 0.12208282202482224, 0.043799031525850296, 0.08639910817146301, 0.5232642889022827, 0.40051087737083435, -0.872931718826294, 0.5133031010627747, -0.7436374425888062, -0.1987610161304474, -0.06972136348485947, -0.8361619710922241, -0.9998102784156799, -0.8866073489189148, -0.6619043350219727, -0.7605805397033691, -0.07586906850337982, 0.868940532207489, 1.216888189315796, -0.7375903725624084, -0.08937909454107285, -0.07258528470993042, 0.15645897388458252, -0.41226667165756226, -0.24858157336711884, 0.7136582136154175, -0.2154283970594406, -0.7314615249633789, -0.18564005196094513, 0.039359185844659805, 0.3131100833415985, -0.06470157206058502, -0.3197915852069855, -0.24726399779319763, -0.3207415044307709, 0.13289774954319, 0.46424704790115356, -0.5965515375137329, -0.21111871302127838, -0.19279643893241882, -0.12237664312124252, 0.4366722106933594, 0.5681425333023071, -0.5098022818565369, 0.3175247609615326, 0.45044946670532227, 0.3855755031108856, 0.8811255097389221, -0.5077639222145081, 0.1712123304605484, -0.8326767683029175, 0.6090757250785828, -0.07945986092090607, 0.5056620836257935, 0.5117444396018982, -0.37461790442466736, 0.5046449899673462, 0.46471989154815674, -0.4535215198993683, -0.8348771333694458, -0.07892623543739319, -1.0981416702270508, -0.2577548325061798, 0.7853168249130249, -0.49196818470954895, -0.5138758420944214, 0.32702717185020447, -0.03224420174956322, 0.6493498682975769, -0.04936770722270012, 0.5273650288581848, 0.18982914090156555, -0.07590426504611969, -0.8532049059867859, -0.47077539563179016, 0.43814587593078613, 0.18563000857830048, -0.5922225713729858, -0.47438135743141174, 0.06606415659189224, 0.7356162667274475, 0.2364141196012497, 0.521913468837738, -0.303018182516098, 0.3245263397693634, 0.036749217659235, 0.5008674263954163, -0.5187661051750183, -0.05826688930392265, -0.29593324661254883, 0.15588721632957458, -0.14473429322242737, -0.6163225173950195 ]
cross-encoder/stsb-roberta-base
cross-encoder
"2021-08-05T08:41:58Z"
42,389
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 ]
facebook/data2vec-audio-large
facebook
"2022-04-18T16:29:14Z"
42,265
1
transformers
[ "transformers", "pytorch", "data2vec-audio", "feature-extraction", "speech", "en", "dataset:librispeech_asr", "arxiv:2202.03555", "license:apache-2.0", "endpoints_compatible", "has_space", "region:us" ]
feature-extraction
"2022-04-02T15:59:46Z"
--- language: en datasets: - librispeech_asr tags: - speech license: apache-2.0 --- # Data2Vec-Audio-Large [Facebook's Data2Vec](https://ai.facebook.com/research/data2vec-a-general-framework-for-self-supervised-learning-in-speech-vision-and-language/) The large model pretrained on 16kHz sampled speech audio. When using the model make sure that your speech input is also sampled at 16Khz. **Note**: This model does not have a tokenizer as it was pretrained on audio alone. In order to use this model **speech recognition**, a tokenizer should be created and the model should be fine-tuned on labeled text data. Check out [this blog](https://huggingface.co/blog/fine-tune-wav2vec2-english) for more in-detail explanation of how to fine-tune the model. [Paper](https://arxiv.org/abs/2202.03555) Authors: Alexei Baevski, Wei-Ning Hsu, Qiantong Xu, Arun Babu, Jiatao Gu, Michael Auli **Abstract** While the general idea of self-supervised learning is identical across modalities, the actual algorithms and objectives differ widely because they were developed with a single modality in mind. To get us closer to general self-supervised learning, we present data2vec, a framework that uses the same learning method for either speech, NLP or computer vision. The core idea is to predict latent representations of the full input data based on a masked view of the input in a self-distillation setup using a standard Transformer architecture. Instead of predicting modality-specific targets such as words, visual tokens or units of human speech which are local in nature, data2vec predicts contextualized latent representations that contain information from the entire input. Experiments on the major benchmarks of speech recognition, image classification, and natural language understanding demonstrate a new state of the art or competitive performance to predominant approaches. The original model can be found under https://github.com/pytorch/fairseq/tree/main/examples/data2vec . # Pre-Training method ![model image](https://raw.githubusercontent.com/patrickvonplaten/scientific_images/master/data2vec.png) For more information, please take a look at the [official paper](https://arxiv.org/abs/2202.03555). # Usage See [this notebook](https://colab.research.google.com/drive/1FjTsqbYKphl9kL-eILgUc-bl4zVThL8F?usp=sharing) for more information on how to fine-tune the model.
[ -0.14839129149913788, -0.7801581025123596, 0.14749287068843842, -0.0034800139255821705, -0.16005101799964905, -0.22026894986629486, -0.17668290436267853, -0.4976397454738617, -0.049193501472473145, 0.3433631956577301, -0.6301697492599487, -0.48485156893730164, -0.47094857692718506, -0.1238289400935173, -0.3474152088165283, 0.8158647418022156, 0.18396513164043427, 0.41294920444488525, -0.18242418766021729, -0.07573475688695908, -0.7639984488487244, -0.670407235622406, -0.6763885021209717, -0.22613222897052765, 0.3047163188457489, 0.3258616626262665, 0.34869566559791565, 0.6555536985397339, 0.3265349566936493, 0.2798991799354553, -0.055513959378004074, 0.12119244039058685, -0.5909736156463623, 0.04079803451895714, -0.20136217772960663, -0.3267105519771576, -0.40036541223526, 0.4369724690914154, 0.6159247159957886, 0.6314530968666077, -0.17277026176452637, 0.10783489048480988, 0.17863331735134125, 0.5086674094200134, -0.3983793556690216, 0.4488620460033417, -0.6920357346534729, -0.07127169519662857, -0.13059650361537933, -0.06978588551282883, -0.3508338928222656, 0.14396165311336517, -0.00477885315194726, -0.4636114239692688, 0.3487708866596222, -0.06456339359283447, 0.634963870048523, 0.5816025137901306, -0.5848590731620789, -0.26629549264907837, -0.9409932494163513, 0.8848826289176941, -0.26323267817497253, 0.8795069456100464, 0.7088513970375061, 0.40397199988365173, -0.061064232140779495, -0.8921501040458679, -0.4608493745326996, 0.005252139177173376, 0.18347549438476562, 0.4005506932735443, -0.2726376950740814, 0.012081806547939777, 0.16315436363220215, 0.283338338136673, -0.6917398571968079, 0.3221178352832794, -0.6464621424674988, -0.36595839262008667, 0.5387515425682068, -0.08332117646932602, -0.21911606192588806, -0.25038740038871765, -0.3885565996170044, -0.11073243618011475, -0.3811526596546173, 0.23324574530124664, 0.13241015374660492, 0.3229631185531616, -0.27358460426330566, 0.3135254383087158, -0.05362945422530174, 0.7799897789955139, 0.08655215799808502, -0.12636499106884003, 0.5794749855995178, -0.5504640340805054, -0.03909171745181084, 0.12336944788694382, 0.7004629969596863, 0.16850270330905914, 0.1300981640815735, -0.08912867307662964, -0.14301303029060364, 0.08753733336925507, 0.18705156445503235, -0.7278197407722473, -0.4518638551235199, 0.15572524070739746, -0.4641725718975067, -0.2075229436159134, -0.03403889760375023, -0.5023932456970215, -0.03267776966094971, -0.816032886505127, 0.5002172589302063, -0.1797172874212265, -0.13710856437683105, -0.037662211805582047, 0.2749715745449066, 0.2639102637767792, 0.2168533205986023, -0.9495453238487244, 0.3769144117832184, 0.5986637473106384, 0.9171466827392578, -0.3463517725467682, -0.03945126384496689, -0.7142083644866943, -0.11229042708873749, -0.5433018803596497, 0.6836583614349365, -0.417598158121109, -0.3085326552391052, -0.1374279260635376, 0.13492780923843384, 0.21131108701229095, -0.4768247902393341, 0.6648146510124207, -0.3144459128379822, 0.4164814352989197, -0.13911208510398865, -0.6429247856140137, -0.10777664929628372, -0.3769950568675995, -0.6940333843231201, 1.122923493385315, -0.02813834138214588, -0.7417573928833008, 0.5053554773330688, -0.39298272132873535, -0.402228981256485, -0.11276141554117203, -0.35733848810195923, -0.4731702506542206, -0.11174336075782776, 0.17225009202957153, 0.6992208957672119, -0.20024655759334564, 0.450044184923172, -0.31205475330352783, -0.18361639976501465, 0.16236113011837006, -0.5876798629760742, 0.6033202409744263, 0.5468970537185669, -0.2250695824623108, 0.04900778457522392, -0.977885365486145, -0.0053621698170900345, 0.04911003261804581, -0.332766056060791, -0.1077820286154747, 0.007860077545046806, 0.28289708495140076, 0.3908587396144867, 0.09877381473779678, -0.46878761053085327, 0.025943970307707787, -0.6360234618186951, 0.8514476418495178, 0.7202630639076233, -0.15520551800727844, 0.616348147392273, -0.032612308859825134, 0.05357557535171509, -0.1668596714735031, 0.14138950407505035, -0.12934035062789917, -0.41352227330207825, -0.4762120246887207, -0.48028993606567383, 0.5101377964019775, 0.5300888419151306, -0.4840708076953888, 0.6644858121871948, -0.19927538931369781, -0.3825284242630005, -0.5502831339836121, 0.20810522139072418, 0.2430155724287033, 0.6982088088989258, 0.6803615689277649, -0.19555267691612244, -0.6942019462585449, -0.7229350805282593, 0.044245634227991104, -0.18738669157028198, -0.1278126835823059, 0.5377984642982483, 0.337454229593277, -0.35951459407806396, 1.0933507680892944, -0.15525014698505402, -0.6111813187599182, -0.1023193746805191, 0.1836007982492447, 0.21607622504234314, 0.6729590892791748, 0.49037665128707886, -0.9758094549179077, -0.27877193689346313, -0.2910141944885254, -0.5272836685180664, -0.08511356264352798, -0.03961889073252678, 0.11566506326198578, 0.2554304301738739, 0.721871554851532, 0.006705319043248892, 0.4476912021636963, 0.7465392351150513, -0.2320346236228943, 0.04500754550099373, -0.23151104152202606, -0.013109195046126842, -1.304241418838501, -0.04626896232366562, 0.01473390031605959, -0.4539816379547119, -0.6640521287918091, -0.7899988293647766, 0.09418755769729614, -0.023921091109514236, -0.34860795736312866, 0.6148364543914795, -0.316865473985672, -0.12486754357814789, -0.4542708098888397, -0.10089962929487228, -0.11910416185855865, 0.38885200023651123, 0.2808583676815033, 0.8996323347091675, 0.7627103328704834, -0.5863360166549683, 0.5540255308151245, 0.3462110459804535, -0.28719043731689453, 0.26341402530670166, -0.8453651070594788, 0.30294904112815857, -0.11636905372142792, 0.42768779397010803, -1.2231956720352173, -0.26924702525138855, 0.15264086425304413, -0.7685796022415161, 0.5667837858200073, -0.19277355074882507, -0.30969420075416565, -0.34956082701683044, 0.09468516707420349, 0.5622094869613647, 0.617802619934082, -0.8122141361236572, 0.692777693271637, 0.5774295926094055, -0.0016254665097221732, -0.35735005140304565, -1.1128629446029663, 0.035200078040361404, -0.036045026034116745, -0.6024741530418396, 0.4573299288749695, -0.13956961035728455, 0.13630791008472443, -0.20166268944740295, -0.1637532263994217, -0.2592303454875946, -0.08180522173643112, 0.6162635684013367, 0.32778650522232056, 0.06677894294261932, 0.6005887985229492, -0.005371406674385071, -0.31387993693351746, -0.046185556799173355, -0.5028780102729797, 0.3841553330421448, -0.033008065074682236, -0.21406489610671997, -0.869247555732727, 0.1923174113035202, 0.14232000708580017, -0.27862340211868286, 0.25286251306533813, 0.721034586429596, -0.38740357756614685, -0.09790752083063126, -0.6912168264389038, -0.43860819935798645, -0.47863075137138367, 0.5552858114242554, -0.5014316439628601, -0.9755642414093018, 0.273813933134079, -0.09078866988420486, -0.20716428756713867, 0.6325089931488037, 0.823500394821167, -0.2477339804172516, 0.9619478583335876, 0.5904515385627747, -0.2988996207714081, 0.73656165599823, -0.4626528322696686, 0.033313725143671036, -0.5290960669517517, -0.4685364365577698, -0.4286365211009979, -0.16593217849731445, -0.5739850997924805, -0.7311723232269287, 0.1781754344701767, -0.0057911379262804985, 0.04703178256750107, 0.2521735429763794, -0.5578773021697998, 0.25947105884552, 0.5578998327255249, -0.02807415835559368, 0.08562500029802322, 0.23830273747444153, 0.016155162826180458, -0.15177780389785767, -0.6991903185844421, -0.24498987197875977, 1.230393886566162, 0.6161153316497803, 0.9873730540275574, -0.3010746240615845, 0.5984256267547607, 0.5015403032302856, -0.4131094217300415, -0.9245617389678955, 0.12938059866428375, -0.29209956526756287, -0.7732190489768982, -0.2114896923303604, -0.5250917077064514, -0.9913666844367981, 0.014776700176298618, -0.33074960112571716, -0.6103912591934204, 0.41246289014816284, 0.2716878652572632, -0.2635691463947296, 0.0067197661846876144, -0.6696107387542725, 0.8481549024581909, -0.30604106187820435, -0.3743824362754822, -0.3302208483219147, -0.6926640868186951, -0.14467482268810272, -0.15374895930290222, 0.32244056463241577, -0.04050576314330101, 0.09611155837774277, 0.9819958806037903, -0.07947397232055664, 0.8933563232421875, -0.3482436239719391, 0.08625283092260361, 0.5091893076896667, -0.15062224864959717, 0.4016183316707611, 0.04765795171260834, 0.09585853666067123, 0.43591293692588806, 0.15432177484035492, -0.3326515257358551, -0.40245184302330017, 0.6070587635040283, -0.9432963132858276, -0.11094427853822708, -0.24282191693782806, -0.13947033882141113, -0.27051132917404175, -0.07195732742547989, 0.43210357427597046, 0.8298664093017578, -0.3579774796962738, 0.570391058921814, 0.6464947462081909, 0.13169415295124054, 0.17442843317985535, 0.4877967834472656, -0.004213724285364151, -0.3823898434638977, 1.0308778285980225, 0.3466365337371826, 0.04814830794930458, 0.2755530774593353, 0.2338591367006302, -0.5294397473335266, -0.5010334849357605, -0.14110629260540009, 0.11874604225158691, -0.6823268532752991, -0.1545434296131134, -0.7758270502090454, -0.3071821331977844, -0.8168757557868958, 0.21867981553077698, -0.8760548830032349, -0.4771420359611511, -0.7225307822227478, -0.2105599343776703, 0.27441704273223877, 0.6760373115539551, -0.5683812499046326, 0.21645690500736237, -0.2570173740386963, 0.4897667467594147, 0.654053807258606, 0.16651976108551025, -0.47537118196487427, -1.082603931427002, -0.17567402124404907, 0.23115792870521545, 0.046061478555202484, -0.5307977795600891, 0.3102194368839264, 0.4864933490753174, 0.6484624147415161, 0.3794008493423462, -0.17960447072982788, 0.35144874453544617, -0.43825003504753113, 0.7186324000358582, 0.30307841300964355, -0.82206130027771, 0.8633500933647156, -0.041314855217933655, 0.03466784581542015, 0.6044513583183289, 0.3900681138038635, -0.49700069427490234, 0.24244701862335205, -0.4087614119052887, -0.7173320055007935, 0.7266032695770264, 0.16541090607643127, 0.18326610326766968, 0.19960537552833557, 0.5841383934020996, 0.19033220410346985, -0.12380622327327728, -0.6344684362411499, -0.36914733052253723, -0.668419599533081, -0.32981395721435547, -0.30955585837364197, -0.45180830359458923, 0.0039510298520326614, -0.564626932144165, 0.6065264344215393, -0.18502043187618256, 0.29398098587989807, 0.3293343484401703, 0.0542089007794857, 0.15627150237560272, 0.022842776030302048, 0.16220831871032715, 0.31834930181503296, -0.10777109116315842, 0.06914124637842178, 0.14737963676452637, -0.45811060070991516, -0.06800627708435059, 0.22226934134960175, 0.007331816013902426, -0.1478184014558792, 0.46241092681884766, 1.1636340618133545, -0.012896602973341942, -0.3775968849658966, 0.7713126540184021, -0.31634557247161865, -0.634803295135498, -0.37685519456863403, 0.08677849173545837, -0.2121097594499588, 0.336872398853302, 0.3357221782207489, -0.03965894132852554, 0.4045390784740448, -0.49692872166633606, 0.30925819277763367, 0.31326887011528015, -0.8143957257270813, -0.398449569940567, 0.8025611042976379, 0.3081360459327698, 0.05275575444102287, 0.5830438733100891, -0.21386562287807465, -0.32522234320640564, 0.3874254822731018, 0.47033995389938354, 0.7671757936477661, -0.3949268162250519, 0.07331626862287521, 0.5956852436065674, 0.059518687427043915, -0.0524715818464756, 0.2720741927623749, -0.34102368354797363, -0.630149781703949, -0.44957080483436584, -0.5611388683319092, -0.12655426561832428, 0.20465266704559326, -0.4695558249950409, 0.28522926568984985, -0.2971498668193817, -0.20167836546897888, 0.2345685362815857, 0.17280514538288116, -0.8464801907539368, 0.3253733217716217, 0.40001723170280457, 0.5432323813438416, -0.9856079816818237, 1.2239357233047485, 0.42241689562797546, -0.2467697262763977, -1.0141277313232422, -0.3388875126838684, 0.08932284265756607, -0.6857399344444275, 0.7210069894790649, 0.16030022501945496, -0.1606319397687912, 0.06305330246686935, -0.7885715961456299, -1.0487195253372192, 1.1506218910217285, 0.1462651789188385, -0.746658444404602, 0.06595925241708755, 0.06322192400693893, 0.4762725532054901, -0.46904146671295166, 0.034586746245622635, 0.4971265494823456, 0.29247578978538513, 0.513801634311676, -1.0158883333206177, -0.359408974647522, -0.17027898132801056, -0.07855654507875443, -0.4655406177043915, -0.46643486618995667, 0.7953524589538574, -0.14807720482349396, -0.344395250082016, -0.12268912047147751, 0.8828103542327881, -0.2473483830690384, 0.4027059078216553, 0.5329412817955017, 0.36619749665260315, 0.9402027130126953, -0.12902311980724335, 0.6804743409156799, -0.15112094581127167, 0.4910499155521393, 1.4699898958206177, 0.023727478459477425, 0.7297742366790771, 0.294144868850708, -0.22770458459854126, 0.18724477291107178, 0.7027647495269775, -0.36235854029655457, 0.7734643816947937, 0.040280357003211975, 0.13133485615253448, -0.43958917260169983, -0.17906923592090607, -0.5498273372650146, 0.9745931625366211, 0.22583574056625366, -0.2744717597961426, 0.14548388123512268, 0.27880772948265076, -0.39655736088752747, 0.07662666589021683, -0.22410175204277039, 1.0206074714660645, 0.04493289068341255, -0.18944944441318512, 0.6799680590629578, -0.05598166957497597, 0.6872459650039673, -0.5043469667434692, 0.0568620003759861, 0.07626162469387054, 0.058753639459609985, -0.24999269843101501, -0.5791360139846802, 0.1760576218366623, -0.05337117984890938, -0.32459089159965515, -0.1576547473669052, 0.7886921763420105, -0.536959171295166, -0.4987759292125702, 0.48228710889816284, 0.36842846870422363, 0.27258628606796265, -0.24326254427433014, -0.7987686395645142, 0.09141507744789124, -0.031777020543813705, -0.19962367415428162, 0.04314080998301506, 0.3220230042934418, 0.18162502348423004, 0.5634751915931702, 0.6102439761161804, -0.03744538128376007, 0.03599792346358299, 0.2231632024049759, 0.9615622162818909, -0.5017347931861877, -0.5832992792129517, -0.45359188318252563, 0.22026968002319336, 0.017429843544960022, -0.1666596382856369, 0.3848561644554138, 0.7889065742492676, 0.9922319054603577, 0.15570589900016785, 0.6625434756278992, 0.12784335017204285, 0.903342068195343, -0.647922933101654, 0.36030155420303345, -0.7571917772293091, -0.08836851269006729, -0.008289577439427376, -0.7826533317565918, -0.18990010023117065, 0.8303583860397339, -0.33650609850883484, 0.25926855206489563, 0.4771040081977844, 0.8955833911895752, -0.056276630610227585, 0.027589263394474983, 0.39911097288131714, 0.33912721276283264, 0.31738442182540894, 0.2428758293390274, 0.7213911414146423, -0.4615665078163147, 0.5903065800666809, -0.33234256505966187, -0.4033891260623932, -0.15668722987174988, -0.4802402853965759, -1.0213136672973633, -1.0270154476165771, -0.374102920293808, -0.2391325682401657, 0.06784474849700928, 1.0136075019836426, 1.0410925149917603, -0.9033777117729187, -0.03575814887881279, -0.13858002424240112, -0.2913484275341034, 0.08309860527515411, -0.15168966352939606, 0.30772313475608826, -0.30483680963516235, -0.7813212275505066, 0.6232014894485474, 0.06343615800142288, 0.18238940834999084, -0.1936667263507843, -0.16400179266929626, -0.04348599910736084, -0.09851153194904327, 0.38807594776153564, 0.2014646679162979, -0.777051568031311, -0.13434715569019318, -0.17488166689872742, -0.24432985484600067, 0.27625221014022827, 0.7327898740768433, -1.0350674390792847, 0.7989699840545654, 0.45064786076545715, 0.5213935375213623, 0.8677918910980225, 0.05101507902145386, 0.16996464133262634, -0.5937530994415283, 0.2680334746837616, 0.34662026166915894, 0.20625343918800354, 0.3725787401199341, -0.3004057705402374, 0.4823313355445862, 0.39086952805519104, -0.7094055414199829, -0.4506101608276367, 0.12878169119358063, -1.2842155694961548, -0.41438618302345276, 1.3746243715286255, 0.17719407379627228, -0.18485407531261444, -0.04669901728630066, -0.42753955721855164, 0.498579204082489, -0.5716107487678528, 0.5169862508773804, 0.37148407101631165, 0.11908379197120667, 0.15587085485458374, -0.6694203019142151, 0.5897569060325623, 0.26481908559799194, -0.44904571771621704, 0.2707263231277466, 0.6778581142425537, 0.29394832253456116, -0.13349181413650513, 0.6105127930641174, -0.05124445632100105, 0.03935125097632408, -0.12093361467123032, 0.03991631418466568, -0.16324517130851746, -0.5510209798812866, -0.666221022605896, -0.05016973242163658, -0.16829489171504974, -0.3567107915878296 ]
timm/mnasnet_100.rmsp_in1k
timm
"2023-04-27T21:14:03Z"
42,233
0
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "arxiv:1807.11626", "license:apache-2.0", "region:us" ]
image-classification
"2022-12-13T00:00:04Z"
--- tags: - image-classification - timm library_name: timm license: apache-2.0 datasets: - imagenet-1k --- # Model card for mnasnet_100.rmsp_in1k A MNasNet image classification model. Trained on ImageNet-1k in `timm` using recipe template described below. Recipe details: * A simple RmsProp based recipe without RandAugment. Using RandomErasing, mixup, dropout, standard random-resize-crop augmentation. * 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): 4.4 - GMACs: 0.3 - Activations (M): 5.5 - Image size: 224 x 224 - **Papers:** - MnasNet: Platform-Aware Neural Architecture Search for Mobi: https://arxiv.org/abs/1807.11626 - **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('mnasnet_100.rmsp_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( 'mnasnet_100.rmsp_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, 96, 14, 14]) # torch.Size([1, 320, 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( 'mnasnet_100.rmsp_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, 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{tan2019mnasnet, title={Mnasnet: Platform-aware neural architecture search for mobile}, author={Tan, Mingxing and Chen, Bo and Pang, Ruoming and Vasudevan, Vijay and Sandler, Mark and Howard, Andrew and Le, Quoc V}, booktitle={Proceedings of the IEEE/CVF conference on computer vision and pattern recognition}, pages={2820--2828}, year={2019} } ```
[ -0.489553302526474, -0.3995693624019623, -0.023897215723991394, 0.17662164568901062, -0.31651318073272705, -0.4414309859275818, -0.1251489520072937, -0.311080664396286, 0.4592301547527313, 0.4792270064353943, -0.5268261432647705, -0.7313646674156189, -0.6954103708267212, -0.16463470458984375, -0.1355888992547989, 0.8679786324501038, -0.0590098612010479, 0.042271699756383896, -0.25620442628860474, -0.5793779492378235, -0.1974947154521942, -0.44988739490509033, -0.926518976688385, -0.399833083152771, 0.281494677066803, 0.15805234014987946, 0.5283401012420654, 0.6564041972160339, 0.593588650226593, 0.4912748336791992, -0.22181111574172974, 0.1518126130104065, -0.07456451654434204, -0.1950882077217102, 0.41515877842903137, -0.6501867175102234, -0.537126362323761, 0.2395334392786026, 0.6409153938293457, 0.32729411125183105, -0.012362951412796974, 0.4807170033454895, 0.07830442488193512, 0.6282088160514832, -0.28565049171447754, 0.038600821048021317, -0.4669360816478729, 0.3470887541770935, -0.11312133073806763, -0.03729347884654999, -0.28116461634635925, -0.3404662013053894, 0.1507853865623474, -0.42491865158081055, 0.4040200710296631, -0.03153121843934059, 1.2873778343200684, 0.2239537388086319, -0.04854434356093407, -0.10157829523086548, -0.18131299316883087, 0.7997285723686218, -0.8769126534461975, 0.14630401134490967, 0.39762330055236816, 0.2087290734052658, -0.059274207800626755, -0.9724704027175903, -0.5312680006027222, -0.20204423367977142, -0.13362795114517212, -0.08885458111763, -0.14207462966442108, -0.04272393882274628, 0.2806148827075958, 0.30354103446006775, -0.5371490716934204, 0.060497529804706573, -0.5095013380050659, -0.2143486738204956, 0.5900214314460754, 0.05272652953863144, 0.3811286389827728, -0.30616238713264465, -0.5621898174285889, -0.3687012791633606, -0.3930407762527466, 0.25925716757774353, 0.22422507405281067, 0.2689741849899292, -0.6107950210571289, 0.4927184283733368, 0.20572368800640106, 0.5618143677711487, 0.005206083878874779, -0.3126962184906006, 0.6277295351028442, 0.0789414718747139, -0.461019366979599, -0.061157334595918655, 1.1119236946105957, 0.3586687445640564, 0.20435582101345062, 0.1552811712026596, -0.2629017233848572, -0.3500889837741852, -0.007152475882321596, -1.157012701034546, -0.28741151094436646, 0.38617756962776184, -0.7254678010940552, -0.44590386748313904, 0.23141327500343323, -0.5680350661277771, -0.15620066225528717, -0.08381877094507217, 0.6303336024284363, -0.5179155468940735, -0.36531367897987366, 0.032486289739608765, -0.2507885694503784, 0.25333842635154724, 0.06341910362243652, -0.6035794019699097, 0.2527247965335846, 0.29960954189300537, 1.2287367582321167, 0.09720741957426071, -0.49697864055633545, -0.23078680038452148, -0.36164310574531555, -0.30787697434425354, 0.4251384139060974, -0.021305928006768227, -0.18228711187839508, -0.36164894700050354, 0.2637717127799988, -0.223361536860466, -0.8001746535301208, 0.28056710958480835, -0.20865337550640106, 0.2651240825653076, -0.0778973400592804, -0.23795640468597412, -0.4631342887878418, 0.3166521489620209, -0.46611306071281433, 1.312892198562622, 0.27572309970855713, -0.8029662370681763, 0.2819819450378418, -0.6752662062644958, -0.174673393368721, -0.3551827669143677, -0.06447083503007889, -1.0390866994857788, -0.055855948477983475, 0.2673289179801941, 0.7976818084716797, -0.2233409285545349, -0.012578664347529411, -0.48508501052856445, -0.23933736979961395, 0.37013304233551025, -0.047214802354574203, 1.0815013647079468, 0.18872858583927155, -0.49550002813339233, 0.2783490717411041, -0.6467284560203552, 0.2152419537305832, 0.5971685647964478, -0.22124618291854858, -0.040951456874608994, -0.5536270141601562, 0.20094628632068634, 0.4079691767692566, 0.10472214221954346, -0.5117282867431641, 0.22059307992458344, -0.180625781416893, 0.48598408699035645, 0.6846635341644287, -0.12092509120702744, 0.35091549158096313, -0.4380737543106079, 0.29568126797676086, 0.38785937428474426, 0.27090001106262207, -0.10892226547002792, -0.5851291418075562, -0.8745062351226807, -0.5317253470420837, 0.4464307129383087, 0.4440386891365051, -0.49124908447265625, 0.5367069840431213, -0.12450839579105377, -0.7577790021896362, -0.5157958269119263, 0.12225949019193649, 0.5469777584075928, 0.5371567010879517, 0.3291650712490082, -0.5954345464706421, -0.5804548263549805, -0.9247630834579468, 0.07031838595867157, 0.1287204772233963, -0.07060147076845169, 0.37798601388931274, 0.6881312727928162, -0.06546555459499359, 0.6464306116104126, -0.41813766956329346, -0.3665168881416321, -0.18871934711933136, 0.10844725370407104, 0.39249905943870544, 0.864531934261322, 0.8947163224220276, -0.7600557804107666, -0.4762691557407379, -0.16912268102169037, -1.0097503662109375, 0.2114945948123932, -0.11776401102542877, -0.18681326508522034, 0.3624821901321411, 0.1785901039838791, -0.7556743025779724, 0.6022204756736755, 0.24955491721630096, -0.31167465448379517, 0.4381992518901825, -0.20175839960575104, 0.24325338006019592, -1.245735764503479, 0.13938039541244507, 0.43641284108161926, -0.11063186824321747, -0.39722520112991333, 0.1096407026052475, 0.010330334305763245, -0.1664057821035385, -0.554753839969635, 0.6587931513786316, -0.5781975984573364, -0.2691981792449951, -0.118742935359478, -0.19498991966247559, 0.00030541184241883457, 0.7839367389678955, -0.07415815442800522, 0.4396984577178955, 0.8404396772384644, -0.5882089138031006, 0.40516963601112366, 0.38241010904312134, -0.1728045493364334, 0.3834322690963745, -0.690952479839325, 0.19645999372005463, 0.004181886091828346, 0.22593890130519867, -0.9359179735183716, -0.13640950620174408, 0.3574534058570862, -0.650846004486084, 0.639782190322876, -0.5651825666427612, -0.46727919578552246, -0.47737395763397217, -0.4718652069568634, 0.33766302466392517, 0.6631526947021484, -0.7142653465270996, 0.5856136083602905, 0.29402101039886475, 0.27336636185646057, -0.5846248865127563, -0.8772359490394592, -0.16479068994522095, -0.39084964990615845, -0.6917163133621216, 0.4038158655166626, 0.1233169436454773, 0.13289044797420502, 0.09237514436244965, -0.117884561419487, -0.10836104303598404, -0.14208172261714935, 0.6436564922332764, 0.3852968215942383, -0.4436725378036499, -0.12583225965499878, -0.3286556005477905, -0.08806180208921432, 0.043157171458005905, -0.33817580342292786, 0.7281327843666077, -0.3004407584667206, -0.1927879899740219, -0.8908981084823608, -0.09946739673614502, 0.5778849124908447, -0.1826915144920349, 0.8919546008110046, 1.0409703254699707, -0.5906260013580322, -0.040898993611335754, -0.3911221921443939, -0.2911519706249237, -0.4956822693347931, 0.39369553327560425, -0.5176701545715332, -0.3067300617694855, 0.8574512004852295, 0.028784649446606636, 0.051113951951265335, 0.7352163791656494, 0.32270413637161255, -0.06101532280445099, 0.8059722185134888, 0.5789865851402283, 0.11478022485971451, 0.6590667963027954, -0.9914693236351013, -0.251849889755249, -0.8579183220863342, -0.5107077360153198, -0.41319310665130615, -0.636282742023468, -0.6187655925750732, -0.37710142135620117, 0.4086034893989563, 0.11780175566673279, -0.3767748773097992, 0.5557926297187805, -0.8736932277679443, 0.11601244658231735, 0.7210922837257385, 0.6706241369247437, -0.40059933066368103, 0.29563724994659424, -0.35591572523117065, -0.02441808581352234, -0.8199992775917053, -0.30580934882164, 1.1137512922286987, 0.4988047480583191, 0.5097029805183411, -0.1837584227323532, 0.7362816333770752, -0.20754006505012512, 0.3418211340904236, -0.5972389578819275, 0.6871435642242432, -0.15794363617897034, -0.4415488839149475, -0.14986301958560944, -0.4744590222835541, -0.969923734664917, 0.1982683390378952, -0.3440769612789154, -0.6898518800735474, 0.11403574794530869, 0.12410970032215118, -0.16540956497192383, 0.8428550362586975, -0.8301413655281067, 0.937258243560791, -0.21357640624046326, -0.30198705196380615, 0.07433367520570755, -0.6763785481452942, 0.264155775308609, 0.27560627460479736, -0.2319490909576416, -0.08816780894994736, 0.15775953233242035, 1.0712025165557861, -0.6017873287200928, 0.8568982481956482, -0.5058351159095764, 0.39868173003196716, 0.4797517955303192, -0.09502692520618439, 0.26772212982177734, -0.20277895033359528, -0.19643281400203705, 0.4123230278491974, 0.06294172257184982, -0.5500672459602356, -0.5511619448661804, 0.6104769706726074, -0.9055606722831726, -0.27769115567207336, -0.36226555705070496, -0.4520342946052551, 0.19254283607006073, 0.08359774202108383, 0.561221718788147, 0.7013040781021118, 0.1912602186203003, 0.20724178850650787, 0.6313406229019165, -0.44022753834724426, 0.42289674282073975, -0.17041943967342377, -0.30055004358291626, -0.4966726303100586, 0.8616812825202942, 0.20364409685134888, 0.08165955543518066, 0.166215181350708, 0.18127065896987915, -0.32065248489379883, -0.5333929657936096, -0.43318691849708557, 0.33584174513816833, -0.6697594523429871, -0.47251176834106445, -0.6092562675476074, -0.5557176470756531, -0.4034823179244995, -0.05319656431674957, -0.5295882225036621, -0.43681952357292175, -0.39971888065338135, 0.2574444115161896, 0.6254268884658813, 0.5636345744132996, -0.09211811423301697, 0.561945378780365, -0.5730695128440857, 0.1662164181470871, 0.04453699290752411, 0.4915948510169983, -0.06297625601291656, -0.8833915591239929, -0.19737771153450012, -0.036484286189079285, -0.46815037727355957, -0.7086390852928162, 0.5658447742462158, 0.16145606338977814, 0.5005683898925781, 0.40353110432624817, -0.2659825384616852, 0.7596114873886108, -0.04083967208862305, 0.5679994225502014, 0.4185088872909546, -0.6501357555389404, 0.7176916003227234, 0.04685048386454582, 0.21211668848991394, 0.04680076241493225, 0.45671552419662476, -0.25769853591918945, 0.0479329414665699, -0.9677741527557373, -0.7117507457733154, 0.8162831664085388, 0.14285998046398163, 0.025324538350105286, 0.35121726989746094, 0.6967771053314209, -0.06099848821759224, 0.06854987144470215, -0.7029001116752625, -0.4917948842048645, -0.32190844416618347, -0.28954747319221497, -0.007873395457863808, -0.06371001899242401, -0.12338099628686905, -0.6587891578674316, 0.7397056221961975, -0.0013123914832249284, 0.7826389670372009, 0.34973248839378357, -0.025221342220902443, -0.09605266153812408, -0.4535248875617981, 0.5842285752296448, 0.3312673568725586, -0.35035815834999084, 0.07627386599779129, 0.21330037713050842, -0.6178883910179138, 0.036347877234220505, 0.09312120825052261, 0.015135743655264378, 0.1414036750793457, 0.36451995372772217, 0.9357178807258606, 0.031260523945093155, -0.02905351109802723, 0.38524824380874634, -0.07878365367650986, -0.4465099275112152, -0.30085209012031555, 0.12890787422657013, 0.006065050605684519, 0.4124900698661804, 0.38814428448677063, 0.4680663049221039, -0.19838762283325195, -0.2846573293209076, 0.3112322688102722, 0.6094068884849548, -0.28010648488998413, -0.2875652015209198, 0.6514939069747925, -0.2607998847961426, -0.3176019787788391, 0.8408470749855042, -0.052977606654167175, -0.5595372319221497, 1.1683000326156616, 0.4657359719276428, 0.9042339324951172, -0.12976258993148804, 0.07183905690908432, 0.7966324090957642, 0.2800966203212738, 0.03126407042145729, 0.18064571917057037, 0.14568883180618286, -0.7197284698486328, 0.17818985879421234, -0.6317950487136841, 0.04246152564883232, 0.3981463313102722, -0.5402592420578003, 0.3322814404964447, -0.8082051873207092, -0.46500858664512634, 0.21158799529075623, 0.2943834364414215, -0.8676337003707886, 0.3068292737007141, -0.07338466495275497, 0.9594752192497253, -0.7272429466247559, 0.697709858417511, 0.9020456075668335, -0.5959007143974304, -0.9451395273208618, -0.08262653648853302, 0.11021144688129425, -0.9918614029884338, 0.5797867178916931, 0.49031344056129456, 0.18107694387435913, -0.007526113651692867, -0.821402907371521, -0.6055096983909607, 1.4425220489501953, 0.5090494155883789, 0.007225562818348408, 0.2866564691066742, -0.033377550542354584, 0.23163960874080658, -0.5113179683685303, 0.42291533946990967, 0.09717785567045212, 0.2901049852371216, 0.3335512578487396, -0.7221016883850098, 0.27006155252456665, -0.382688969373703, 0.14737558364868164, 0.21869367361068726, -0.7436386942863464, 0.8780573010444641, -0.4811168909072876, -0.13860680162906647, 0.08833549171686172, 0.7008227109909058, 0.3171374201774597, 0.30174002051353455, 0.5079153776168823, 0.8750629425048828, 0.5136925578117371, -0.20278647541999817, 0.889382004737854, -0.04903746023774147, 0.5379656553268433, 0.5813718438148499, 0.3760609030723572, 0.710827112197876, 0.41023877263069153, -0.29432588815689087, 0.3709028363227844, 1.1553024053573608, -0.30893954634666443, 0.2751990854740143, 0.24370253086090088, -0.0005171536467969418, -0.03551683574914932, 0.13446173071861267, -0.4562465250492096, 0.5494147539138794, 0.19234241545200348, -0.6605620384216309, -0.1299542784690857, 0.031046584248542786, -0.01277002040296793, -0.31930190324783325, -0.2341429889202118, 0.4471060037612915, 0.10163933038711548, -0.3757231533527374, 0.9316847920417786, 0.15274786949157715, 0.9398427605628967, -0.45087528228759766, 0.0319308266043663, -0.31423527002334595, 0.16679352521896362, -0.3923417925834656, -0.743710458278656, 0.31817546486854553, -0.34671908617019653, -0.030717410147190094, 0.0295331459492445, 0.6784194707870483, -0.2659982740879059, -0.43967077136039734, 0.11552479863166809, 0.3161163926124573, 0.5846121907234192, -0.05189702287316322, -1.2623698711395264, 0.14363332092761993, 0.005656255874782801, -0.6656163930892944, 0.45241135358810425, 0.3868507742881775, 0.16455911099910736, 0.8428800702095032, 0.6448537707328796, -0.07285485416650772, 0.14569929242134094, -0.28614696860313416, 0.822074830532074, -0.5222175121307373, -0.26597633957862854, -0.7973491549491882, 0.6246563196182251, -0.14754588901996613, -0.6661542654037476, 0.503714919090271, 0.6401023268699646, 0.8101947903633118, -0.10628502815961838, 0.3793109655380249, -0.2590131461620331, -0.08002246171236038, -0.5443544983863831, 0.8205204606056213, -0.7792074680328369, 0.046269480139017105, -0.10270238667726517, -0.7395453453063965, -0.3030634820461273, 0.7364904880523682, -0.1782979816198349, 0.48690998554229736, 0.4863770604133606, 1.0981751680374146, -0.4384646415710449, -0.29140210151672363, 0.21568715572357178, 0.06643030792474747, -0.08862975239753723, 0.32236480712890625, 0.29634973406791687, -0.8648951053619385, 0.2978944480419159, -0.6490654349327087, -0.20247234404087067, -0.12468110769987106, -0.6582964062690735, -0.995429277420044, -1.0104804039001465, -0.5317363142967224, -0.7466489672660828, -0.1888505518436432, 0.9900687336921692, 1.1655992269515991, -0.7055404186248779, -0.20109713077545166, 0.09830401092767715, 0.15600305795669556, -0.28893497586250305, -0.24079513549804688, 0.6596994996070862, -0.1751490980386734, -0.7050596475601196, -0.2815817594528198, 0.04998401179909706, 0.42898792028427124, -0.05193488672375679, -0.25607064366340637, -0.23584584891796112, -0.1999744474887848, 0.3347737193107605, 0.38058099150657654, -0.6027207374572754, 0.026767967268824577, -0.2106020599603653, -0.21573427319526672, 0.41572675108909607, 0.5060357451438904, -0.5022013187408447, 0.1660894751548767, 0.2903745472431183, 0.4281271994113922, 0.8761637806892395, -0.349636435508728, 0.03723553195595741, -0.9495802521705627, 0.5587443113327026, -0.12064425647258759, 0.47347843647003174, 0.3964146077632904, -0.39947956800460815, 0.6001062393188477, 0.45172274112701416, -0.3866025507450104, -0.9011577367782593, -0.11899121105670929, -1.0947208404541016, -0.1890053004026413, 0.8531910181045532, -0.3180772066116333, -0.5570037364959717, 0.5490783452987671, -0.04807494580745697, 0.6114410161972046, -0.04449921473860741, 0.5673612952232361, 0.24659180641174316, -0.156784787774086, -0.7173395752906799, -0.6087425947189331, 0.42859891057014465, 0.2896933853626251, -0.6957880258560181, -0.5798815488815308, -0.04788381606340408, 0.6495981216430664, 0.3004848062992096, 0.5436077117919922, -0.2173742651939392, 0.09261174499988556, 0.1734888255596161, 0.5173967480659485, -0.3909977972507477, -0.09386404603719711, -0.34272193908691406, 0.06239927560091019, -0.15927563607692719, -0.7032936215400696 ]
anas-awadalla/mpt-1b-redpajama-200b
anas-awadalla
"2023-08-05T06:19:59Z"
42,187
2
transformers
[ "transformers", "pytorch", "mosaic_gpt", "text-generation", "custom_code", "dataset:togethercomputer/RedPajama-Data-1T", "arxiv:2302.13971", "arxiv:2205.14135", "arxiv:2108.12409", "license:apache-2.0", "has_space", "region:us" ]
text-generation
"2023-05-25T00:58:32Z"
--- license: apache-2.0 datasets: - togethercomputer/RedPajama-Data-1T --- # MPT-1b-RedPajama-200b MPT-1b-RedPajama-200b is a 1.3 billion parameter decoder-only transformer trained on the [RedPajama dataset](https://huggingface.co/datasets/togethercomputer/RedPajama-Data-1T). The model was trained for 200B tokens by sampling from the subsets of the RedPajama dataset in the same proportions as were used by the [Llama series of models](https://arxiv.org/abs/2302.13971). This model was trained by [MosaicML](https://www.mosaicml.com) and follows a modified decoder-only transformer architecture. ## Model Date April 20, 2023 ## How to Use Note: This model requires that `trust_remote_code=True` be passed to the `from_pretrained` method. This is because we use a custom model architecture `MosaicGPT` that is not yet part of the `transformers` package. `MosaicGPT` includes options for many training efficiency features such as [FlashAttention (Dao et al. 2022)](https://arxiv.org/pdf/2205.14135.pdf), [ALIBI](https://arxiv.org/abs/2108.12409), QK LayerNorm, and more. ```python import transformers model = transformers.AutoModelForCausalLM.from_pretrained('mosaicml/mpt-1b-redpajama-200b', trust_remote_code=True) ``` To use the optimized triton implementation of FlashAttention, you can load with `attn_impl='triton'` and move the model to `bfloat16` like so: ```python model = transformers.AutoModelForCausalLM.from_pretrained('mosaicml/mpt-1b-redpajama-200b', trust_remote_code=True, attn_impl='triton') model.to(device='cuda:0', dtype=torch.bfloat16) ``` ## Model Description This model uses the MosaicML LLM codebase, which can be found in the [MosaicML Examples Repository](https://github.com/mosaicml/examples/tree/v0.0.4/examples/llm). The architecture is a modification of a standard decoder-only transformer. The transformer has 24 layers, 16 attention heads, and width 2048. The model has been modified from a standard transformer in the following ways: * It uses ALiBi and does not use positional embeddings. * It uses QK LayerNorm. * It does not use biases. ## Training Data The model was trained for 200B tokens (batch size 2200, sequence length 2048). It was trained on the following data mix: * 67% RedPajama Common Crawl * 15% [C4](https://huggingface.co/datasets/c4) * 4.5% RedPajama GitHub * 4.5% RedPajama Wikipedia * 4.5% RedPajama Books * 2.5% RedPajama Arxiv * 2% RedPajama StackExchange This is the same mix of data as was used in the Llama series of models](https://arxiv.org/abs/2302.13971). Each sample was chosen from one of the datasets, with the dataset selected with the probability specified above. The examples were shuffled within each dataset. Each example was constructed from as many sequences from that dataset as were necessary to fill the 2048 sequence length. The data was tokenized using the [EleutherAI/gpt-neox-20b](https://huggingface.co/EleutherAI/gpt-neox-20b) tokenizer. ## Training Configuration This model was trained on 440 A100-40GBs for about half a day using the [MosaicML Platform](https://www.mosaicml.com/platform). The model was trained with sharded data parallelism using FSDP. ## Acknowledgements This model builds on the work of [Together](https://www.together.xyz), which created the RedPajama dataset with the goal of mimicking the training data used to create the Llama series of models. We gratefully acknowledge the hard work of the team that put together this dataset, and we hope this model serves as a useful companion to that work. We also gratefully acknowledge the work of the researchers who created the Llama series of models, which was the impetus for our efforts and those who worked on the RedPajama project.
[ -0.5093689560890198, -0.27325817942619324, 0.25525397062301636, 0.47941094636917114, -0.45101800560951233, -0.03230994567275047, -0.00828914251178503, -0.437521755695343, 0.2879963219165802, 0.5150297284126282, -0.66155606508255, -0.5446482300758362, -0.7431021332740784, 0.20781256258487701, -0.4761379063129425, 0.9901174306869507, -0.06715641915798187, -0.11414134502410889, 0.07320401072502136, 0.0032874979078769684, -0.2722391188144684, -0.248341366648674, -0.4171180725097656, -0.3454851806163788, 0.35830870270729065, 0.22464466094970703, 0.7325085997581482, 0.6512640118598938, 0.5150313973426819, 0.2699843943119049, -0.21486780047416687, 0.1422255039215088, -0.47887399792671204, -0.4456024169921875, 0.11751984804868698, -0.6040470600128174, -0.4643164575099945, 0.15813468396663666, 0.5094430446624756, 0.28506404161453247, -0.20385944843292236, 0.5800980925559998, -0.2466728836297989, 0.3439481854438782, -0.4309069514274597, -0.015809686854481697, -0.4401152431964874, 0.20803558826446533, -0.12170825153589249, 0.0016616982175037265, -0.4688071608543396, -0.3897762894630432, 0.02190910093486309, -0.6481563448905945, 0.20790985226631165, 0.032890599220991135, 0.9519330263137817, 0.4485233426094055, -0.4333533048629761, 0.14124731719493866, -0.6655193567276001, 0.8892336487770081, -0.5802872776985168, 0.15697282552719116, 0.41112419962882996, 0.32207751274108887, 0.07374487817287445, -0.993443489074707, -0.6402689814567566, -0.02104896493256092, -0.17017625272274017, 0.2258317917585373, -0.3810146450996399, -0.33882707357406616, 0.4502297043800354, 0.2758386731147766, -0.47346562147140503, -0.26719215512275696, -0.38989439606666565, 0.05924076959490776, 0.5626430511474609, 0.39512762427330017, 0.287026047706604, -0.331836462020874, -0.7435164451599121, -0.33835816383361816, -0.6617355942726135, -0.1717822253704071, 0.2716251313686371, -0.09095746278762817, -0.526568591594696, 0.539426326751709, 0.007461056113243103, 0.4103480577468872, 0.08939918130636215, -0.18685480952262878, 0.315523236989975, -0.6120355725288391, -0.2935325503349304, -0.20294411480426788, 0.9916754961013794, 0.35999107360839844, 0.2807042896747589, 0.03268023952841759, -0.10861912369728088, -0.2151918262243271, 0.35981690883636475, -0.9022152423858643, -0.18528857827186584, 0.1647225171327591, -0.4645015597343445, -0.1156269907951355, 0.12848402559757233, -0.4883068799972534, -0.1780489832162857, -0.18110302090644836, 0.5261517763137817, -0.6120577454566956, -0.4144410789012909, 0.26087018847465515, -0.21018728613853455, 0.23958013951778412, 0.19223928451538086, -0.7110688090324402, 0.20371879637241364, 0.482698529958725, 0.9811394810676575, -0.09055935591459274, -0.5484914183616638, 0.3240910470485687, 0.11515787243843079, -0.013169493526220322, 0.5339592099189758, -0.29999589920043945, -0.28472036123275757, -0.4338064193725586, 0.20854157209396362, -0.26290562748908997, -0.5050460696220398, 0.13412004709243774, -0.603743314743042, 0.30506953597068787, -0.18818052113056183, -0.2170199304819107, -0.49687933921813965, 0.20370358228683472, -0.6353464126586914, 0.8475338220596313, 0.41746413707733154, -0.8311175107955933, 0.2886347770690918, -0.7897742986679077, -0.17643629014492035, -0.08384747803211212, 0.31698065996170044, -0.8453598618507385, -0.14768706262111664, 0.28953972458839417, 0.31652581691741943, -0.4572623074054718, 0.19278709590435028, -0.12374446541070938, -0.7896650433540344, 0.3478686511516571, -0.4345572292804718, 1.0971770286560059, 0.1598147302865982, -0.6185617446899414, -0.04932074248790741, -0.7574731707572937, -0.20525561273097992, 0.5345678925514221, -0.4325070381164551, 0.12359876930713654, -0.39777660369873047, 0.07307853549718857, 0.27688032388687134, 0.15263879299163818, -0.547863245010376, 0.3878816068172455, -0.18750250339508057, 0.36447417736053467, 0.4848504662513733, 0.13401012122631073, 0.22912047803401947, -0.5417550206184387, 0.5829219222068787, 0.22050124406814575, 0.4667563736438751, -0.1902255266904831, -0.7843267321586609, -0.8404167890548706, -0.369003564119339, 0.3237709105014801, 0.37078845500946045, -0.5561111569404602, 0.18449357151985168, -0.2953408658504486, -0.6858998537063599, -0.7144485712051392, -0.23268835246562958, 0.4077267646789551, 0.24879755079746246, 0.6854487657546997, -0.2959653437137604, -0.8418745398521423, -0.8957775235176086, 0.11443015933036804, 0.041841380298137665, -0.016689402982592583, 0.27360644936561584, 0.8023677468299866, -0.5574669241905212, 0.8605547547340393, -0.31105729937553406, -0.04155685752630234, -0.21234562993049622, 0.17805109918117523, 0.6392795443534851, 0.43152177333831787, 0.48641225695610046, -0.7086709141731262, -0.5994246006011963, -0.1835308074951172, -0.5814856290817261, 0.09794097393751144, -0.24147944152355194, -0.08182861655950546, 0.10843465477228165, -0.0644758865237236, -0.8375785946846008, 0.48189663887023926, 0.625419020652771, -0.3656426668167114, 0.4441162943840027, 0.04453812912106514, 0.19739080965518951, -1.2391237020492554, 0.23225362598896027, -0.17592784762382507, -0.23160074651241302, -0.6032612919807434, -0.11337138712406158, 0.19541700184345245, 0.1354108601808548, -0.8352060914039612, 0.3024085462093353, -0.340615838766098, -0.20909075438976288, -0.33543670177459717, -0.35511213541030884, -0.0976591482758522, 0.7166901230812073, 0.21196913719177246, 0.9438220262527466, 0.2921328842639923, -0.48964565992355347, 0.24441450834274292, 0.4787193238735199, -0.33795616030693054, 0.04537293687462807, -0.6859424710273743, 0.1312832087278366, 0.24278007447719574, 0.33110225200653076, -0.8466516137123108, -0.03541739284992218, 0.33955055475234985, -0.34362730383872986, 0.254263311624527, -0.31410738825798035, -0.43272966146469116, -0.5804072022438049, -0.20309193432331085, 0.6500242948532104, 0.7180323004722595, -0.780436098575592, 0.48444414138793945, 0.27728161215782166, 0.3289825916290283, -0.8472221493721008, -0.7592041492462158, 0.12940892577171326, -0.28102654218673706, -0.6928756237030029, 0.4618975818157196, 0.04366816580295563, 0.02524707466363907, -0.1760542094707489, 0.11310319602489471, 0.16206245124340057, 0.17693538963794708, 0.5895583033561707, 0.36089831590652466, -0.1163531243801117, -0.2773010730743408, -0.2321132868528366, -0.418895423412323, 0.10670416802167892, -0.22433599829673767, 1.0302739143371582, -0.2868761718273163, -0.38110241293907166, -0.7297333478927612, 0.09827303886413574, 0.5934047698974609, 0.015836112201213837, 1.067438006401062, 0.8505448698997498, -0.12716689705848694, 0.08370339870452881, -0.4541764557361603, -0.07153445482254028, -0.4434603154659271, 0.25093749165534973, -0.09671633690595627, -0.5706413984298706, 0.5775002241134644, 0.1953449249267578, -0.1513284593820572, 0.5515402555465698, 0.8029903769493103, -0.06387936323881149, 0.8557748198509216, 0.4689820408821106, 0.10819125920534134, 0.512586236000061, -0.7645145654678345, -0.07688631862401962, -1.026224136352539, -0.37499022483825684, -0.13065873086452484, -0.47927534580230713, -0.609531819820404, -0.6166592836380005, 0.31401702761650085, -0.20153115689754486, -0.7356058955192566, 0.8514075875282288, -0.6128520369529724, 0.49644896388053894, 0.8229888081550598, 0.3077894449234009, 0.20702053606510162, -0.15098533034324646, 0.11325448751449585, 0.11404549330472946, -0.6939548850059509, -0.3708678185939789, 1.3592783212661743, 0.4812120497226715, 0.6018123030662537, 0.09302706271409988, 0.7953318357467651, -0.12241438776254654, 0.4985556900501251, -0.3970243036746979, 0.5250487327575684, 0.08969924598932266, -0.6414586305618286, 0.014986192807555199, -0.42556941509246826, -0.8867838978767395, 0.22698836028575897, -0.270745187997818, -0.41808944940567017, 0.32629919052124023, -0.08387121558189392, -0.43575194478034973, 0.4649296998977661, -0.5965791344642639, 0.6844437122344971, -0.07774914056062698, -0.18054243922233582, -0.0312868170440197, -0.6754106283187866, 0.6157212257385254, -0.21215952932834625, -0.18807974457740784, 0.0390731617808342, -0.008694997057318687, 0.8838346600532532, -0.3805963099002838, 0.8947620391845703, -0.11543525010347366, 0.09344253689050674, 0.37993791699409485, -0.05927332863211632, 0.5497762560844421, 0.09089430421590805, 0.129289910197258, 0.6859581470489502, 0.011094135232269764, -0.3412369191646576, -0.04321137070655823, 0.32133737206459045, -1.1865137815475464, -0.6164177060127258, -0.42416319251060486, -0.6880769729614258, 0.1409972757101059, 0.10192651301622391, 0.5117339491844177, -0.1292978674173355, 0.21437275409698486, 0.29493752121925354, 0.47381848096847534, -0.400694340467453, 0.7460350394248962, 0.4141463041305542, -0.08053752034902573, -0.5800802111625671, 0.6675253510475159, -0.04707442596554756, 0.3042086958885193, 0.24511843919754028, 0.05426930636167526, -0.23000980913639069, -0.5763618350028992, -0.1791982799768448, 0.5286133885383606, -0.5252882838249207, -0.44330886006355286, -0.7236995100975037, -0.3447646498680115, -0.20223364233970642, 0.08571800589561462, -0.6493166089057922, -0.4940045177936554, -0.48839032649993896, 0.06686025857925415, 0.3440605103969574, 0.6825205087661743, 0.07915913313627243, 0.6245691180229187, -0.8299919366836548, 0.32927605509757996, 0.34616634249687195, 0.28766965866088867, 0.010615691542625427, -0.8800244331359863, -0.33489328622817993, 0.12090381979942322, -0.42124879360198975, -0.7266777157783508, 0.6064764857292175, -0.1939724236726761, 0.2712457776069641, 0.14704282581806183, -0.18648304045200348, 0.792238712310791, -0.3245038390159607, 0.9766256213188171, 0.2702104151248932, -0.7758340835571289, 0.48498761653900146, -0.3377059996128082, 0.4030526280403137, 0.2267124354839325, 0.552368700504303, -0.43347594141960144, -0.2515755295753479, -0.9008269906044006, -0.714992344379425, 1.073037028312683, 0.4231598675251007, 0.04449184611439705, -0.09873371571302414, 0.3808254301548004, 0.046417802572250366, 0.08595813065767288, -1.2666674852371216, -0.3079620897769928, -0.4609268605709076, -0.13859792053699493, 0.015286868438124657, -0.26688939332962036, -0.3030909299850464, -0.3060542345046997, 0.7319755554199219, 0.02070583589375019, 0.6740111112594604, -0.02486157789826393, -0.2498256117105484, -0.30095356702804565, -0.15820346772670746, 0.7364697456359863, 0.5580718517303467, -0.32628142833709717, -0.048366330564022064, 0.4141280949115753, -0.8218944072723389, 0.2011079043149948, -0.043654464185237885, -0.2168751209974289, -0.18482999503612518, 0.5613808631896973, 0.8999996781349182, 0.15599966049194336, -0.32430213689804077, 0.6899669170379639, -0.331550270318985, -0.19061358273029327, -0.33120372891426086, 0.2804145812988281, 0.312846302986145, 0.5535824298858643, 0.3183577358722687, 0.1966717541217804, -0.24902276694774628, -0.23896077275276184, 0.24328652024269104, 0.32945966720581055, -0.02150494046509266, -0.40603137016296387, 0.8380637168884277, -0.19971123337745667, -0.32617664337158203, 0.7628653049468994, 0.0626269206404686, -0.351942241191864, 0.8786681890487671, 0.893788754940033, 0.7722589373588562, -0.17864234745502472, 0.1935938596725464, 0.6224669218063354, 0.31147128343582153, -0.2815835773944855, 0.14188876748085022, -0.07806342095136642, -0.6400068998336792, -0.37879350781440735, -0.8185585737228394, -0.3811061978340149, 0.00030972869717516005, -0.5433820486068726, 0.34914618730545044, -0.3751521408557892, -0.2707350552082062, -0.43929192423820496, 0.07359252125024796, -0.6942287683486938, 0.15627488493919373, 0.3071548342704773, 1.029775619506836, -0.8633175492286682, 0.9388434290885925, 0.4061260521411896, -0.5564066767692566, -0.8796976804733276, -0.11939352005720139, -0.23088936507701874, -1.2715047597885132, 0.5642351508140564, 0.20005427300930023, 0.1694832742214203, 0.02015535905957222, -0.6365358829498291, -1.1437300443649292, 1.6860063076019287, 0.46152016520500183, -0.5233046412467957, 0.09927061945199966, 0.48521366715431213, 0.4974645972251892, -0.40483105182647705, 0.6691480875015259, 0.6708879470825195, 0.5003061294555664, 0.2259509563446045, -0.717268705368042, 0.1778174340724945, -0.18783777952194214, 0.14364080131053925, 0.18933835625648499, -0.9049630165100098, 1.0380524396896362, -0.3097275197505951, -0.3542933166027069, 0.14215895533561707, 0.49228736758232117, 0.43265703320503235, 0.1365649700164795, 0.40456080436706543, 0.8872517347335815, 0.39109814167022705, -0.2725359797477722, 1.383935570716858, -0.3766842782497406, 0.635971188545227, 0.8474825620651245, 0.3659727871417999, 0.5887723565101624, 0.502350389957428, -0.46978604793548584, 0.44388654828071594, 0.7568894028663635, -0.27691659331321716, 0.5896744132041931, -0.20668476819992065, -0.05432054027915001, -0.22535254061222076, 0.10742492973804474, -0.47696012258529663, 0.3751726746559143, 0.11985553801059723, -0.5620015263557434, -0.01435909140855074, -0.048153799027204514, 0.014486532658338547, -0.5281340479850769, -0.15321530401706696, 0.6592258214950562, 0.13344140350818634, -0.5472468733787537, 0.855286717414856, -0.09603722393512726, 0.684827983379364, -0.4558006823062897, 0.1281205266714096, -0.42818698287010193, 0.014019662514328957, -0.3056733012199402, -0.846915066242218, 0.39138132333755493, -0.04282794147729874, -0.0808880627155304, -0.280840665102005, 0.29145994782447815, -0.2527364194393158, -0.38213416934013367, 0.3006047010421753, 0.1329946368932724, 0.13906916975975037, -0.08603537827730179, -0.7814490795135498, -0.024131372570991516, 0.19677987694740295, -0.5099813342094421, 0.3187926411628723, 0.09598509967327118, 0.209039106965065, 0.6998918056488037, 0.7273879051208496, -0.02334943599998951, 0.17195476591587067, 0.03262335807085037, 0.8617960214614868, -0.9456782937049866, -0.2499675452709198, -0.8727774620056152, 0.7275729775428772, 0.1901046186685562, -0.40314945578575134, 0.6802878379821777, 0.39912986755371094, 0.7342777252197266, -0.14282803237438202, 0.25742581486701965, 0.08949246257543564, 0.22861173748970032, -0.37352001667022705, 0.6382350921630859, -0.47369372844696045, 0.438981294631958, -0.19355998933315277, -1.1945536136627197, -0.34605228900909424, 0.5869810581207275, -0.24273592233657837, 0.1685045063495636, 0.5809227824211121, 0.8157409429550171, -0.18460454046726227, 0.191858172416687, 0.12226970493793488, 0.25686728954315186, 0.21074828505516052, 0.8617299795150757, 0.9722505211830139, -0.9078052043914795, 0.580375075340271, -0.5013132095336914, -0.02907910756766796, -0.21967050433158875, -0.7206091284751892, -0.8525862097740173, -0.4299430251121521, -0.2814524173736572, -0.2733500301837921, -0.22333751618862152, 0.8591631650924683, 0.7512142062187195, -0.6518933773040771, -0.1126147136092186, -0.08673602342605591, 0.021919118240475655, -0.21756558120250702, -0.1544664204120636, 0.3101733326911926, 0.10764333605766296, -0.7286850810050964, 0.2476460337638855, 0.20616745948791504, 0.3782409727573395, -0.07168992608785629, -0.09930076450109482, -0.4113706350326538, -0.05314541980624199, 0.3170488178730011, 0.13544663786888123, -0.49233782291412354, -0.3397336006164551, -0.08965252339839935, -0.10642077028751373, 0.3656614124774933, 0.4285428822040558, -0.7739470601081848, 0.0430685356259346, 0.1826336681842804, 0.4042685329914093, 1.0358866453170776, 0.07563597708940506, 0.24209994077682495, -0.6145292520523071, 0.11373146623373032, 0.18535201251506805, 0.5047665238380432, 0.19633112847805023, -0.3713579773902893, 0.7312766313552856, 0.34993794560432434, -0.5938445329666138, -0.7178426384925842, -0.0036896702367812395, -1.0524436235427856, -0.21088169515132904, 1.2180662155151367, -0.07126866281032562, -0.4500845670700073, 0.11842497438192368, -0.08799932897090912, 0.452524334192276, -0.004627969115972519, 0.7899274230003357, 0.3497128188610077, -0.15892179310321808, -0.4705234467983246, -0.1576661318540573, 0.213481605052948, 0.35578179359436035, -0.5682271718978882, -0.14521563053131104, -0.026377541944384575, 0.5233876705169678, 0.44078773260116577, 0.39576342701911926, -0.18747086822986603, 0.5090923309326172, 0.029080292209982872, 0.2876931130886078, -0.42482030391693115, -0.3216640055179596, -0.3497315049171448, 0.2896161377429962, -0.4168359935283661, -0.15291960537433624 ]
swl-models/hans-v4.4
swl-models
"2023-02-01T07:45:56Z"
42,127
1
diffusers
[ "diffusers", "stable-diffusion", "stable-diffusion-diffusers", "text-to-image", "en", "license:cc-by-nc-4.0", "region:us" ]
text-to-image
"2023-02-01T07:30:25Z"
--- license: cc-by-nc-4.0 language: - en library_name: diffusers pipeline_tag: text-to-image tags: - stable-diffusion - stable-diffusion-diffusers --- hansv4.4 模型作者:hans 发布时间:2023-01-31 模型类型:ckpt
[ -0.4068012833595276, -0.30420464277267456, 0.43137478828430176, 0.7389917969703674, -1.1982038021087646, -0.2548215091228485, 0.042055897414684296, -0.07811278849840164, 0.20236769318580627, 0.8327034115791321, -0.6659567356109619, -0.4728178083896637, -0.45477965474128723, 0.36715954542160034, -0.10546673834323883, 0.6095000505447388, -0.26595866680145264, 0.5153393745422363, -0.05709325894713402, 0.12512892484664917, -0.7539485096931458, -0.37511003017425537, -0.3745235800743103, -0.4995726943016052, 0.051933445036411285, 0.674136221408844, 0.5795603394508362, 0.9472919702529907, 1.0048611164093018, 0.3170628845691681, 0.5231516361236572, -0.7289720177650452, -0.21115410327911377, 0.1992264688014984, 0.27111905813217163, -0.699730396270752, -1.3349965810775757, -0.009755300357937813, 1.0851565599441528, 0.2172802984714508, -0.3225945234298706, -0.07081454992294312, 0.04173603281378746, 0.9590795636177063, -0.09187683463096619, 0.3726576566696167, -0.20772835612297058, 0.47129783034324646, -0.785872757434845, -0.9116842150688171, 0.003835600335150957, -0.3141475319862366, -0.2417362481355667, -1.2687939405441284, 0.14473889768123627, -0.02799800969660282, 1.2704347372055054, 0.10892520844936371, -0.6143194437026978, 0.36601635813713074, -0.2717065215110779, 0.9448099732398987, -0.565163791179657, 0.45743557810783386, 0.6036573648452759, 0.610586941242218, 0.21673019230365753, -0.9641557931900024, -0.2756707966327667, 0.36144593358039856, 0.41251853108406067, 0.2566916048526764, 0.27349430322647095, -0.29347047209739685, 0.2330949455499649, 0.0690343901515007, -0.3394070267677307, -0.06976786255836487, -0.7925804257392883, -0.4917055070400238, 0.5382819771766663, 0.44176843762397766, 0.403791606426239, -0.2794604003429413, -0.7464209794998169, 0.050158530473709106, -1.1132936477661133, -0.043106839060783386, 0.3412625789642334, 0.18831820785999298, -0.721357524394989, 0.39582929015159607, -0.47666090726852417, 0.18261770904064178, 0.26067405939102173, -0.010725600644946098, 0.6124550104141235, -0.8292564749717712, -0.6424180269241333, 0.006334652658551931, 0.5738328695297241, 0.88265460729599, 0.06983517855405807, 1.0010592937469482, -0.11443811655044556, -0.869796872138977, 0.1832258403301239, -0.8531607389450073, -0.8087619543075562, 0.41972416639328003, -0.6550643444061279, -0.593655526638031, 0.2782694399356842, -1.1529573202133179, 0.1368570178747177, -0.22704346477985382, 0.20949293673038483, -0.5066651701927185, -0.6848118901252747, -0.21836437284946442, -0.23207803070545197, 0.5711547136306763, 1.0239051580429077, -0.8068570494651794, 0.08620283752679825, 0.44973811507225037, 0.11155770719051361, -0.034872326999902725, -0.1488928645849228, -0.3726015090942383, 0.6405995488166809, -0.508204996585846, 0.5423079133033752, 0.08828624337911606, -0.6296454668045044, -0.01248631440103054, 0.143551304936409, 0.5173112154006958, -0.23561012744903564, 1.1058943271636963, -0.9680331349372864, 0.23753559589385986, -0.9972980618476868, -0.17937271296977997, -0.3230484127998352, 0.38094770908355713, -0.5733879804611206, 0.37037184834480286, 0.29079297184944153, -1.1580923795700073, 0.5213415026664734, -0.5472331047058105, -0.4592742323875427, 1.0380127429962158, -0.2688080072402954, -0.44425275921821594, -0.2774203419685364, 0.05501734837889671, 0.6317246556282043, -0.08763659745454788, 0.1358945667743683, -0.2467980980873108, -0.035691507160663605, 0.09907955676317215, -0.2381191998720169, 1.2332780361175537, 0.7760490775108337, 0.06875070929527283, 0.4851556718349457, -0.2284337878227234, 0.12937530875205994, 0.8016394972801208, -0.5550918579101562, 0.02873956970870495, -0.14902883768081665, 0.24530158936977386, 0.18593774735927582, 1.1387320756912231, -0.5300124287605286, 0.13053901493549347, -0.17681722342967987, 0.4765775203704834, 1.3333684206008911, 0.16155484318733215, 0.37183043360710144, -0.46295157074928284, 0.9655774235725403, -0.0013385030906647444, 0.3781353533267975, -0.2732115685939789, -0.6822642087936401, -0.6278495788574219, 0.11375301331281662, 0.20705077052116394, 0.5618091821670532, -1.0761792659759521, 0.5811329483985901, -0.10713603347539902, -0.5529406666755676, 0.5357966423034668, -0.11806029081344604, -0.03914801776409149, 0.20102030038833618, 0.5512909293174744, -0.3031231164932251, -1.0508911609649658, -0.7423211932182312, 0.13196706771850586, -0.2632434070110321, -0.27588075399398804, -0.06073525547981262, 0.3372846245765686, -0.018442843109369278, 0.16764609515666962, -0.6016846299171448, -0.3678188621997833, -0.3835470676422119, -0.3326203227043152, 0.5186647772789001, 0.6688921451568604, 0.6181117296218872, -1.1160962581634521, -1.079817295074463, -0.1801672875881195, -1.0233674049377441, 0.0190444253385067, 0.0159552413970232, -0.07897098362445831, 0.3489070236682892, 0.2023182213306427, -0.38937896490097046, 0.10482801496982574, 0.5706360340118408, -0.429882675409317, 1.1904200315475464, -0.3897283375263214, 0.37803593277931213, -0.6569319367408752, -0.22697968780994415, -0.5263683795928955, -0.5124789476394653, -0.29087212681770325, 0.2748488187789917, 0.2512204647064209, 0.19861619174480438, -0.688770592212677, 0.15782377123832703, -0.4504261910915375, 0.4112803041934967, -0.12367919087409973, -0.05832013860344887, -0.26318106055259705, 0.1792115718126297, -0.511601448059082, 0.5149827599525452, 0.775034487247467, -0.8380416035652161, 0.5941271185874939, 1.0290049314498901, -0.023520560935139656, 0.8029720783233643, -0.6308048367500305, -0.4752022325992584, 0.6570222973823547, 0.6094621419906616, -0.5585331916809082, -0.6870739459991455, 0.6983517408370972, -0.9324488639831543, 0.7880114912986755, 0.12972213327884674, -0.2745594084262848, -0.4751855134963989, -0.9264024496078491, 0.7982817888259888, 0.6893700957298279, 0.02391178533434868, 0.28045934438705444, 0.6471837759017944, -0.5501717329025269, -0.42684558033943176, -0.5735279321670532, 0.41782933473587036, -0.16112536191940308, -0.6050102710723877, 0.09564562886953354, -0.37941035628318787, 0.17952804267406464, -0.4750556945800781, -0.016857067123055458, -0.07811922580003738, -0.16189271211624146, -0.07006655633449554, 0.4505699872970581, -0.46496424078941345, -0.6607967019081116, 0.1580231487751007, -0.389152467250824, 0.3513348400592804, 0.15624235570430756, 0.5185830593109131, -0.04353150352835655, -0.5121851563453674, -0.8641191124916077, 0.3872362971305847, 0.4564117193222046, 0.251921147108078, -0.4174102544784546, 0.4830779433250427, -0.24007520079612732, 0.37226295471191406, -0.2866818904876709, 0.025393689051270485, -0.6757164001464844, 0.3219504952430725, -0.699856162071228, -0.9142981171607971, 0.23088230192661285, 0.07782656699419022, -0.26068800687789917, 1.179147481918335, 0.6078084111213684, -0.38917240500450134, 1.128496527671814, 0.5094755291938782, 0.11453590542078018, 0.25922656059265137, -0.12652751803398132, -0.17676274478435516, -0.9072224497795105, -0.187902569770813, -0.29138749837875366, 0.15762735903263092, -0.6838314533233643, -0.6937260627746582, 0.41584524512290955, -0.04332803189754486, -0.4145919680595398, 0.7393476366996765, -0.6691585779190063, 0.08106467872858047, 0.6390652060508728, -0.2667379677295685, -0.16280542314052582, -0.8016030192375183, -0.09959281235933304, -0.4468159079551697, -0.7550906538963318, -0.3125048279762268, 1.3838655948638916, 0.9180085062980652, 0.30293482542037964, -0.23143097758293152, 0.5048964023590088, 0.45422905683517456, 0.1769469827413559, 0.22706489264965057, 1.0788031816482544, 0.5278292298316956, -1.1662225723266602, -0.5049183964729309, -0.030960511416196823, -1.039738416671753, 0.3816591501235962, -0.15474078059196472, -0.4985668361186981, -0.31197068095207214, 0.1427226960659027, 0.030982647091150284, 0.46928152441978455, -0.15901465713977814, 0.5537834167480469, -0.36016058921813965, -0.05683824419975281, -0.43782666325569153, -1.2418510913848877, 0.766509473323822, -0.6382418274879456, 0.19857017695903778, -0.5713912844657898, -0.008168330416083336, 0.9344807863235474, -0.49263450503349304, 0.24722403287887573, -0.703650176525116, -0.021936656907200813, 0.15224291384220123, 0.18475404381752014, 0.41018983721733093, 0.2704492211341858, 0.3843707740306854, 0.809516191482544, 0.6649472117424011, -0.7227871417999268, 0.41667482256889343, 0.9464239478111267, -0.6044173240661621, -0.7407523393630981, -1.036251425743103, -0.024529460817575455, 0.5883194804191589, 0.5914766192436218, 0.7236085534095764, 0.14280252158641815, -0.45108848810195923, 0.16535264253616333, 0.060472507029771805, -0.5619562268257141, 0.5562861561775208, 0.6742593050003052, -0.289828896522522, -1.0275914669036865, 1.2812118530273438, 0.05426022410392761, 0.07304984331130981, 0.5085466504096985, 0.17681120336055756, -0.013792133890092373, -0.9919646382331848, -0.05268014594912529, 0.41073110699653625, -0.44058793783187866, -0.691409170627594, -0.3958328664302826, -0.40247464179992676, -0.7906836867332458, -0.37679603695869446, -0.505764365196228, -0.526936948299408, -0.42904046177864075, -0.1540110558271408, -0.3622492253780365, 0.8137645125389099, -0.41326239705085754, 0.3830186426639557, -1.3740932941436768, 0.4994983673095703, -0.021938510239124298, 0.39076682925224304, -0.2627989649772644, -0.42626288533210754, -0.7969210147857666, -0.132640540599823, -1.1630033254623413, -0.7389950156211853, 0.7917345762252808, -0.1520361453294754, 0.5310356616973877, 1.1611303091049194, 0.1733948439359665, 0.2157287448644638, -0.7614195942878723, 1.4352394342422485, 0.7200211882591248, -1.2668299674987793, 0.4840415120124817, -1.3868870735168457, 0.5526057481765747, 0.28996315598487854, 0.049691829830408096, -0.2879546284675598, -0.44324544072151184, -1.1126445531845093, -0.8989876508712769, 0.7576791048049927, 0.6608536243438721, -0.0034005376510322094, 0.3490409553050995, -0.13104502856731415, 0.33903321623802185, 0.6933923363685608, -0.4225735068321228, -0.5988042950630188, -0.4184339940547943, 0.25440725684165955, 0.19674353301525116, -0.6987346410751343, -0.019991690292954445, -0.8902541399002075, 0.7974098920822144, 0.23194889724254608, 1.0244754552841187, 0.08548147976398468, 0.4177415668964386, -0.7894841432571411, 0.15936189889907837, 1.3647030591964722, 1.0013856887817383, -0.7235997319221497, 0.1689915955066681, 0.29035618901252747, -0.7680994868278503, -0.1097516268491745, 0.2794143557548523, 0.2514820992946625, 0.04044310376048088, 0.6565264463424683, 0.00215169508010149, 0.147335484623909, -0.10326354950666428, 0.8180124163627625, -0.16341793537139893, -0.5546188354492188, -1.1680363416671753, -0.10715331137180328, -0.16551347076892853, -0.06976991891860962, 0.7827551960945129, -0.03540142998099327, 0.004133581183850765, 0.07591205090284348, 0.6095482707023621, 0.018004493787884712, -0.6522588133811951, -0.8959192037582397, 1.2017929553985596, 0.8121441006660461, -0.1920800656080246, 0.5551140904426575, 0.1255521923303604, -1.0286474227905273, 0.6643463969230652, 0.28450503945350647, 0.7288593053817749, -0.9501842260360718, -0.030645688995718956, 0.7589929699897766, 0.13237310945987701, 0.020007317885756493, 0.6020114421844482, -0.08514872193336487, -0.6348230838775635, -0.3250245451927185, -0.3901026248931885, -0.5142741799354553, 0.1777145117521286, -0.4995081424713135, 0.5806877017021179, -0.33922213315963745, 0.05114579200744629, -0.12632308900356293, 0.14432060718536377, -0.49561217427253723, 0.5170403718948364, 0.03764688968658447, 1.3130654096603394, -0.619276762008667, 1.1890268325805664, 0.01821667142212391, -0.18973775207996368, -0.09470055997371674, -0.25913769006729126, 0.388325572013855, -1.0960731506347656, 0.6679460406303406, 0.15959729254245758, 0.7185753583908081, 0.18708452582359314, -0.9601513147354126, -0.8291479349136353, 1.292948603630066, -0.12414787709712982, -0.21914435923099518, 0.3030402362346649, 0.053667910397052765, 0.2090643048286438, -0.25213465094566345, -0.2809182107448578, 0.022646816447377205, 1.3167386054992676, -0.21974308788776398, -1.0870654582977295, 0.42940235137939453, -0.26275408267974854, -0.519972562789917, 0.5605059862136841, -0.5018609166145325, 0.8909462690353394, -0.14210665225982666, -0.296019583940506, -0.08733881264925003, 1.009979486465454, 0.2974065840244293, 0.46132606267929077, 0.7762835621833801, 0.33703485131263733, 0.1295381337404251, -0.48470234870910645, 1.3081037998199463, 0.046854108572006226, 0.14964553713798523, 0.7869493961334229, -0.00017075960931833833, 0.5167412161827087, 0.7184658646583557, -0.8176271319389343, 0.3670399487018585, 1.004995584487915, -0.4718850553035736, 0.7927759289741516, -0.2908359467983246, 0.022839564830064774, -0.4550967812538147, 0.3219405710697174, -0.7714293599128723, 0.032463472336530685, 0.4786818027496338, 0.05418230593204498, -0.14915740489959717, 0.002280269982293248, 0.079775370657444, -0.28003746271133423, 0.07277347147464752, 0.6981663107872009, 0.10392973572015762, -0.5409321188926697, 0.6139823794364929, 0.12050264328718185, 0.4880242943763733, -0.9743018746376038, -0.4181063175201416, 0.5605303645133972, 0.18827661871910095, 0.12220276892185211, -1.2356715202331543, 0.08651770651340485, -0.6760638952255249, 0.1454087793827057, -0.5328366756439209, 0.6574470400810242, -0.32186758518218994, -0.012081766501069069, 0.12943114340305328, 0.003072930034250021, 0.41755086183547974, -0.12047173827886581, -1.1983275413513184, 0.12389421463012695, 0.4832124412059784, -0.311972051858902, 0.516548216342926, -0.01874665729701519, 0.2591605484485626, 0.5972625613212585, 0.772487998008728, 0.3116071820259094, -0.29877856373786926, -0.29957038164138794, 0.9282849431037903, -0.8492662906646729, -0.936469316482544, -0.7174339890480042, 0.5525325536727905, -0.24146753549575806, -0.4070168137550354, 0.9416667222976685, 0.727990448474884, 0.6397696733474731, -0.1780247837305069, 1.1365232467651367, -0.36010345816612244, 0.6256267428398132, -0.038665443658828735, 0.6340094208717346, -0.5579056143760681, -0.27485859394073486, -0.14947623014450073, -0.5713266730308533, -0.2416226714849472, 0.26175379753112793, 0.23425225913524628, 0.04192609339952469, 1.3944178819656372, -0.05413147062063217, 0.2255041003227234, 0.3357616364955902, 0.5224292278289795, 0.14918476343154907, 0.7919848561286926, 0.6868775486946106, 0.30106809735298157, -0.5918126106262207, 0.32528969645500183, -0.7390725612640381, -0.04351038485765457, -0.7886245250701904, -0.7083631753921509, -0.664943277835846, -1.0497535467147827, -0.3040044903755188, -0.2529958188533783, -0.49556177854537964, 0.5979302525520325, 0.4494492709636688, -0.8637405633926392, -0.202779620885849, 0.17224539816379547, 0.2995687425136566, -0.26167944073677063, -0.2588040828704834, 0.5758472681045532, -0.018046105280518532, -0.7057508230209351, 0.1621938794851303, 0.5983918905258179, 0.2207590937614441, -0.32292675971984863, -0.38591015338897705, -0.33824700117111206, 0.12651118636131287, 0.1671699434518814, 0.33961620926856995, -0.7890164256095886, -0.24418392777442932, -0.23811635375022888, -0.2720402777194977, 0.5908114314079285, 0.8279238343238831, 0.11576519906520844, 0.5972816348075867, 1.1880894899368286, -0.3411489725112915, 0.5854200720787048, 0.06152034550905228, 1.383544921875, -0.4516282379627228, 0.01475186925381422, 0.23202554881572723, 0.4500058591365814, 0.3785327970981598, -0.6962645053863525, 0.464087575674057, 0.5591206550598145, -1.1328195333480835, -0.6317004561424255, 0.19504712522029877, -1.8014261722564697, -0.35943302512168884, 0.9434764981269836, 0.14481180906295776, -0.18081197142601013, -0.488347589969635, -0.4140431582927704, 0.5508950352668762, -0.40284883975982666, 0.13411104679107666, 0.6821019053459167, -0.18535763025283813, -0.01247575506567955, -1.2006560564041138, 0.7003995776176453, 0.17711080610752106, -0.6532700061798096, -0.2959009110927582, -0.005806412547826767, 0.27163347601890564, 0.13275331258773804, 0.8572177886962891, -0.4120553731918335, 0.4109117090702057, -0.011543548665940762, 0.30597999691963196, -0.34142714738845825, 0.07350421696901321, -0.3302188813686371, 0.17220214009284973, -0.2753998637199402, -0.6625534892082214 ]
sentence-transformers/paraphrase-xlm-r-multilingual-v1
sentence-transformers
"2022-06-15T19:25:39Z"
42,089
50
sentence-transformers
[ "sentence-transformers", "pytorch", "tf", "xlm-roberta", "feature-extraction", "sentence-similarity", "transformers", "arxiv:1908.10084", "license:apache-2.0", "endpoints_compatible", "has_space", "region:us" ]
sentence-similarity
"2022-03-02T23:29:05Z"
--- pipeline_tag: sentence-similarity license: apache-2.0 tags: - sentence-transformers - feature-extraction - sentence-similarity - transformers --- # sentence-transformers/paraphrase-xlm-r-multilingual-v1 This is a [sentence-transformers](https://www.SBERT.net) model: It maps sentences & paragraphs to a 768 dimensional dense vector space and can be used for tasks like clustering or semantic search. ## Usage (Sentence-Transformers) Using this model becomes easy when you have [sentence-transformers](https://www.SBERT.net) installed: ``` pip install -U sentence-transformers ``` Then you can use the model like this: ```python from sentence_transformers import SentenceTransformer sentences = ["This is an example sentence", "Each sentence is converted"] model = SentenceTransformer('sentence-transformers/paraphrase-xlm-r-multilingual-v1') embeddings = model.encode(sentences) print(embeddings) ``` ## Usage (HuggingFace Transformers) Without [sentence-transformers](https://www.SBERT.net), you can use the model like this: First, you pass your input through the transformer model, then you have to apply the right pooling-operation on-top of the contextualized word embeddings. ```python from transformers import AutoTokenizer, AutoModel import torch #Mean Pooling - Take attention mask into account for correct averaging def mean_pooling(model_output, attention_mask): token_embeddings = model_output[0] #First element of model_output contains all token embeddings input_mask_expanded = attention_mask.unsqueeze(-1).expand(token_embeddings.size()).float() return torch.sum(token_embeddings * input_mask_expanded, 1) / torch.clamp(input_mask_expanded.sum(1), min=1e-9) # Sentences we want sentence embeddings for sentences = ['This is an example sentence', 'Each sentence is converted'] # Load model from HuggingFace Hub tokenizer = AutoTokenizer.from_pretrained('sentence-transformers/paraphrase-xlm-r-multilingual-v1') model = AutoModel.from_pretrained('sentence-transformers/paraphrase-xlm-r-multilingual-v1') # Tokenize sentences encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt') # Compute token embeddings with torch.no_grad(): model_output = model(**encoded_input) # Perform pooling. In this case, max pooling. sentence_embeddings = mean_pooling(model_output, encoded_input['attention_mask']) print("Sentence embeddings:") print(sentence_embeddings) ``` ## Evaluation Results For an automated evaluation of this model, see the *Sentence Embeddings Benchmark*: [https://seb.sbert.net](https://seb.sbert.net?model_name=sentence-transformers/paraphrase-xlm-r-multilingual-v1) ## Full Model Architecture ``` SentenceTransformer( (0): Transformer({'max_seq_length': 128, 'do_lower_case': False}) with Transformer model: XLMRobertaModel (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.21610285341739655, -0.7341732978820801, 0.4850783348083496, 0.3784497380256653, -0.3857095539569855, -0.28224650025367737, -0.1825273185968399, 0.08141466975212097, 0.13781046867370605, 0.6400391459465027, -0.3910664916038513, -0.48584434390068054, -0.6995812654495239, 0.2619451880455017, -0.5102669596672058, 0.8790283203125, -0.37540775537490845, -0.05908123031258583, -0.34808120131492615, -0.40819886326789856, -0.17332862317562103, -0.5345157980918884, -0.38600093126296997, -0.17814525961875916, 0.27887246012687683, 0.25365322828292847, 0.6178334951400757, 0.5185413956642151, 0.2874840795993805, 0.45374321937561035, -0.0032144077122211456, 0.10124297440052032, -0.19289055466651917, -0.0094036515802145, 0.02999729849398136, -0.39810457825660706, -0.03680978715419769, 0.08050920069217682, 0.6550261974334717, 0.430472195148468, -0.1300424039363861, 0.07602258026599884, 0.14908760786056519, 0.23827479779720306, -0.41605907678604126, 0.4507720172405243, -0.6437180042266846, 0.14513270556926727, 0.0980573371052742, -0.06485312432050705, -0.49323907494544983, -0.16485227644443512, 0.11886515468358994, -0.41554173827171326, 0.16408781707286835, 0.209121972322464, 1.0602028369903564, 0.2583669126033783, -0.280268132686615, -0.2986818552017212, -0.3085857331752777, 1.0084415674209595, -0.8645894527435303, 0.19578076899051666, 0.2997739315032959, -0.02470562607049942, 0.2461484968662262, -1.1294113397598267, -0.7246691584587097, -0.16216126084327698, -0.5041612982749939, 0.13775688409805298, -0.31855252385139465, -0.10166995972394943, 0.09912613779306412, 0.14592596888542175, -0.6953527927398682, -0.37401023507118225, -0.4374077618122101, -0.2209516018629074, 0.2930435836315155, 0.09762279689311981, 0.4860537648200989, -0.5952587723731995, -0.5144349336624146, -0.37889379262924194, -0.10783329606056213, -0.07243215292692184, 0.03704317659139633, 0.28934797644615173, -0.37495800852775574, 0.7215036153793335, -0.013955098576843739, 0.5047308802604675, -0.08512628823518753, 0.16335678100585938, 0.6301853656768799, -0.5359756946563721, -0.12920114398002625, -0.07948260754346848, 1.2018566131591797, 0.33533182740211487, 0.21434494853019714, -0.14502081274986267, -0.16367623209953308, -0.10327339172363281, 0.054900869727134705, -0.7992275953292847, -0.2727498710155487, 0.14895793795585632, -0.4015403687953949, -0.17798426747322083, 0.20309409499168396, -0.8198233246803284, 0.08472402393817902, -0.07186665385961533, 0.7414228320121765, -0.7175172567367554, 0.13335131108760834, 0.21473094820976257, -0.3514590859413147, 0.2090333104133606, -0.36231639981269836, -0.5985338091850281, 0.2835865616798401, 0.31524714827537537, 1.1559703350067139, 0.1025790125131607, -0.6825945377349854, -0.449151873588562, 0.02041996270418167, 0.03854916989803314, 0.7025785446166992, -0.5105422139167786, -0.04013720154762268, 0.07162289321422577, 0.2310308963060379, -0.7454442977905273, -0.49306029081344604, 0.7668564915657043, -0.2752617299556732, 0.5461705327033997, 0.012440333142876625, -0.726887047290802, -0.14719688892364502, 0.06316300481557846, -0.49756762385368347, 1.0357555150985718, 0.15676334500312805, -0.950698971748352, -0.04889583960175514, -0.6377500295639038, -0.24536211788654327, -0.12041144073009491, -0.02856767550110817, -0.7208399176597595, -0.046509478241205215, 0.5554338693618774, 0.7362647652626038, 0.04317633435130119, 0.2169467657804489, -0.2994700074195862, -0.2840450406074524, 0.4008132219314575, -0.25746890902519226, 1.041387677192688, 0.26377400755882263, -0.3407379984855652, 0.10972253978252411, -0.45611149072647095, -0.027958471328020096, 0.22099313139915466, -0.09128879010677338, -0.28130096197128296, -0.12872646749019623, 0.33786749839782715, 0.4096386730670929, 0.3125510811805725, -0.6226152181625366, -0.14401757717132568, -0.3508807122707367, 0.9767432808876038, 0.4473297894001007, 0.14120343327522278, 0.5811576843261719, -0.3904946446418762, 0.3708295524120331, 0.37715211510658264, 0.01978754810988903, -0.293170303106308, -0.383199542760849, -0.7931760549545288, -0.25859883427619934, 0.2419693022966385, 0.7121925950050354, -0.8808399438858032, 0.794049859046936, -0.4293801486492157, -0.4630191922187805, -0.6512096524238586, 0.22089706361293793, 0.26637768745422363, 0.43995365500450134, 0.7667399048805237, 0.06486758589744568, -0.5473363399505615, -0.9785735607147217, -0.16699665784835815, 0.12602870166301727, 0.06689324229955673, 0.16726458072662354, 0.7278780937194824, -0.3242718577384949, 0.9120509028434753, -0.5551583170890808, -0.4211573600769043, -0.6897541284561157, 0.2834048867225647, 0.17944663763046265, 0.5671405792236328, 0.6542829275131226, -0.8190887570381165, -0.7060500979423523, -0.3242514431476593, -0.8397195339202881, -0.028445975854992867, -0.25482431054115295, -0.24660365283489227, 0.08854220807552338, 0.6611856818199158, -0.8667141199111938, 0.2131626456975937, 0.5414190292358398, -0.4346613883972168, 0.3166425824165344, -0.45031535625457764, -0.04249962419271469, -1.481896162033081, 0.04967048019170761, 0.06301221251487732, -0.19397450983524323, -0.3928711712360382, 0.16335932910442352, 0.3686065375804901, -0.1510947048664093, -0.43830013275146484, 0.44468778371810913, -0.4399369955062866, 0.2608032822608948, -0.008483976125717163, 0.5092920660972595, 0.042926814407110214, 0.6964291930198669, -0.060346588492393494, 0.7617588639259338, 0.659466028213501, -0.6281434297561646, 0.30746304988861084, 0.7076314091682434, -0.4554445445537567, 0.2911975085735321, -0.858692467212677, -0.04255938157439232, -0.03705117478966713, 0.39050784707069397, -1.103809118270874, -0.06658347696065903, 0.29579219222068787, -0.4500545859336853, 0.05699066445231438, 0.28706255555152893, -0.6624041199684143, -0.516518235206604, -0.4397129416465759, 0.1783318668603897, 0.5710396766662598, -0.4483581781387329, 0.6259151101112366, 0.1977662891149521, -0.2735098600387573, -0.5661655068397522, -0.9680640697479248, 0.2397538423538208, -0.3915390074253082, -0.6085042357444763, 0.5775814652442932, -0.13874739408493042, 0.09565401822328568, 0.15135051310062408, 0.20975083112716675, -0.18088532984256744, -0.17243598401546478, -0.19423680007457733, 0.14860545098781586, -0.07719428837299347, -0.05672837048768997, 0.2443433254957199, -0.09308170527219772, 0.08437096327543259, -0.12119835615158081, 0.7178310751914978, -0.09377294778823853, -0.02955186367034912, -0.5122269988059998, 0.3482773005962372, 0.5299493670463562, -0.3152443766593933, 1.1106066703796387, 1.0098575353622437, -0.2567794620990753, 0.016778184100985527, -0.41318708658218384, -0.19783659279346466, -0.47038042545318604, 0.6982201933860779, -0.24788488447666168, -0.7269207835197449, 0.5625669360160828, 0.3360345959663391, 0.05371498316526413, 0.5712199807167053, 0.45345133543014526, 0.03428687900304794, 0.8631842136383057, 0.4398273229598999, -0.0983199030160904, 0.44759467244148254, -0.49020421504974365, 0.28517165780067444, -0.9167426824569702, -0.029924798756837845, -0.4518839716911316, -0.12275087833404541, -0.5588724613189697, -0.5215780138969421, 0.2591571509838104, -0.06404542177915573, -0.1618804931640625, 0.7987481951713562, -0.40226995944976807, 0.20394089818000793, 0.6005652546882629, 0.3110162317752838, -0.06832250952720642, 0.04472268745303154, -0.5435141324996948, -0.06621350347995758, -0.7225051522254944, -0.6507827639579773, 0.9474884271621704, 0.21929875016212463, 0.43804797530174255, -0.19110189378261566, 0.8290278911590576, -0.09398942440748215, -0.04098821058869362, -0.48386359214782715, 0.6660515666007996, -0.31368735432624817, -0.3462297022342682, -0.26670441031455994, -0.454994797706604, -0.8932419419288635, 0.4151853322982788, -0.03164256364107132, -0.7405821681022644, 0.0009506645728833973, -0.19401313364505768, -0.3625776469707489, 0.3302556574344635, -0.8103749752044678, 1.1320431232452393, 0.10053525865077972, -0.15465889871120453, -0.087956503033638, -0.7978840470314026, 0.16117025911808014, -0.05967622622847557, 0.2853361964225769, 0.023353945463895798, -0.15255846083164215, 0.9053775072097778, -0.3747235834598541, 0.7394823431968689, -0.11697173118591309, 0.2350246012210846, 0.31030571460723877, -0.2639063596725464, 0.34513476490974426, -0.05273957550525665, -0.11375171691179276, 0.04563634842634201, 0.06627588719129562, -0.44242238998413086, -0.5325345993041992, 0.7340598106384277, -0.9507123231887817, -0.4019584655761719, -0.3680943250656128, -0.7513911128044128, -0.06805586814880371, 0.15681679546833038, 0.37049439549446106, 0.4547256827354431, 0.0013166044373065233, 0.6192163228988647, 0.4976423680782318, -0.47949427366256714, 0.6867966651916504, 0.008509540930390358, -0.00005682302071363665, -0.6015640497207642, 0.6913103461265564, 0.09246339648962021, 0.18065616488456726, 0.6906518340110779, 0.2747819721698761, -0.4863535165786743, -0.21125467121601105, -0.28503167629241943, 0.46989190578460693, -0.7160049080848694, -0.14529161155223846, -1.2434601783752441, -0.43377336859703064, -0.6655458211898804, -0.020030038431286812, -0.13432833552360535, -0.3811674416065216, -0.39471903443336487, -0.24234960973262787, 0.36601296067237854, 0.4056069254875183, -0.03243507444858551, 0.39163947105407715, -0.8095207214355469, 0.3166486620903015, 0.16996897757053375, -0.10713455826044083, -0.11184325069189072, -0.8577185869216919, -0.3862534165382385, 0.08914386481046677, -0.5422378182411194, -0.7929932475090027, 0.7947348952293396, 0.3151463568210602, 0.6720101237297058, 0.1271575391292572, 0.1631738841533661, 0.7101333141326904, -0.5722120404243469, 0.8569039702415466, 0.036049243062734604, -1.064876675605774, 0.22565782070159912, -0.04154347628355026, 0.4201096296310425, 0.43694978952407837, 0.35861703753471375, -0.535216748714447, -0.6517865061759949, -0.6369057297706604, -1.1443231105804443, 0.8133325576782227, 0.5642756819725037, 0.6703280806541443, -0.28047704696655273, 0.341891348361969, -0.1121145710349083, 0.09586825966835022, -1.1972054243087769, -0.5555002093315125, -0.38261884450912476, -0.5991068482398987, -0.47243839502334595, -0.21633559465408325, 0.15255753695964813, -0.40227609872817993, 0.6770612597465515, 0.09914584457874298, 0.712696373462677, 0.27770498394966125, -0.49843549728393555, 0.203166201710701, 0.24546638131141663, 0.5283464789390564, 0.39392396807670593, -0.103336863219738, 0.26235470175743103, 0.3235936164855957, -0.3020382523536682, -0.019805394113063812, 0.514556884765625, -0.0738297626376152, 0.33201512694358826, 0.3883538842201233, 0.9502151608467102, 0.6281272172927856, -0.49916067719459534, 0.6212775707244873, -0.06708334386348724, -0.38541650772094727, -0.2895815372467041, -0.16226732730865479, 0.35774484276771545, 0.2991432845592499, 0.398811012506485, 0.017922036349773407, -0.06396735459566116, -0.37542614340782166, 0.4218456745147705, 0.26467570662498474, -0.27191609144210815, -0.1364755630493164, 0.9124372005462646, -0.14154906570911407, -0.17486053705215454, 0.7777769565582275, -0.16250449419021606, -0.7503052353858948, 0.5036948919296265, 0.5774998068809509, 1.0076544284820557, -0.07290910184383392, 0.3633194863796234, 0.5179751515388489, 0.27698612213134766, -0.18648533523082733, -0.07195282727479935, -0.03154576197266579, -0.829211413860321, -0.1639435738325119, -0.6919496655464172, -0.07526572048664093, 0.058531325310468674, -0.6680049300193787, 0.2784658670425415, 0.012921790592372417, 0.07899501174688339, -0.039295535534620285, -0.2136184424161911, -0.6023800373077393, -0.021815719082951546, -0.019875619560480118, 0.7291484475135803, -0.9236515760421753, 0.8097794055938721, 0.7138168811798096, -0.6904346346855164, -0.705851137638092, 0.08375439792871475, -0.5606369376182556, -0.8555710315704346, 0.5150808691978455, 0.4562457799911499, 0.2885403037071228, 0.1853812336921692, -0.44345715641975403, -0.9039543867111206, 1.302952766418457, 0.3923964202404022, -0.2330259382724762, -0.22340399026870728, 0.3146139085292816, 0.42142972350120544, -0.3901650607585907, 0.35333332419395447, 0.390834778547287, 0.40584972500801086, -0.05901705101132393, -0.7202194929122925, 0.26627635955810547, -0.17568425834178925, 0.15487518906593323, -0.0855911448597908, -0.5559534430503845, 1.1633801460266113, -0.05000833794474602, -0.06273746490478516, 0.32286325097084045, 0.7844493389129639, 0.3309900462627411, 0.010572868399322033, 0.37678277492523193, 0.7201171517372131, 0.3403078615665436, 0.03430037572979927, 0.9902671575546265, -0.6061264276504517, 0.8116919994354248, 0.9400038719177246, -0.03872822970151901, 1.0472639799118042, 0.5676109790802002, -0.1325792521238327, 0.7136330604553223, 0.4044187068939209, -0.04476875066757202, 0.7196469902992249, -0.08022477477788925, -0.07190344482660294, -0.13604950904846191, 0.3374272286891937, -0.17236292362213135, 0.31252163648605347, 0.13802532851696014, -0.7335568070411682, -0.31472882628440857, 0.17602482438087463, 0.15289188921451569, 0.13671383261680603, -0.00653598690405488, 0.539794385433197, 0.3101155757904053, -0.6305241584777832, 0.477317214012146, 0.22154781222343445, 0.8514215350151062, -0.5432829856872559, 0.17844659090042114, -0.15779684484004974, 0.46269452571868896, 0.08023115992546082, -0.6059324145317078, 0.4475046694278717, -0.16494521498680115, 0.07147793471813202, -0.3704911470413208, 0.3998582065105438, -0.7002300024032593, -0.6896435022354126, 0.46175968647003174, 0.5753262042999268, 0.04546080902218819, -0.09226832538843155, -1.253262996673584, -0.11062740534543991, 0.06054314225912094, -0.47088509798049927, 0.331575483083725, 0.5299009084701538, 0.3208256661891937, 0.6603142619132996, 0.2758820652961731, -0.2961711883544922, 0.20252346992492676, 0.011392859742045403, 0.7037910223007202, -0.6897605657577515, -0.5581563115119934, -1.0858186483383179, 0.495434045791626, -0.1524534970521927, -0.25793686509132385, 0.9991733431816101, 0.6579270958900452, 0.805273711681366, -0.2998363971710205, 0.6774916648864746, -0.16602584719657898, 0.30432993173599243, -0.5018338561058044, 0.7812825441360474, -0.5070905089378357, -0.18624594807624817, -0.4434972405433655, -0.9120957255363464, -0.30948859453201294, 1.0448291301727295, -0.33633875846862793, 0.1582840532064438, 1.1185635328292847, 0.8782902956008911, -0.23581014573574066, -0.22250361740589142, 0.29022741317749023, 0.3760897219181061, 0.1293351799249649, 0.4755000174045563, 0.36151930689811707, -0.8489197492599487, 1.0074197053909302, -0.6294605731964111, 0.012738379649817944, -0.009554032236337662, -0.726811408996582, -0.9323616623878479, -0.8878042697906494, -0.4985707700252533, -0.31413599848747253, -0.18435801565647125, 0.972114086151123, 0.46182727813720703, -0.787897527217865, -0.2583664357662201, -0.3457063138484955, -0.14072862267494202, -0.26332566142082214, -0.31954988837242126, 0.5189895033836365, -0.6892789006233215, -0.9565061330795288, 0.053621139377355576, -0.0223724152892828, -0.0059341005980968475, -0.17221663892269135, 0.0715198889374733, -0.6341500282287598, 0.21279677748680115, 0.54725581407547, -0.2058079093694687, -0.6558306217193604, -0.19737304747104645, 0.03401322290301323, -0.35956716537475586, 0.037201158702373505, 0.35338205099105835, -0.543079674243927, 0.09450720995664597, 0.2845197916030884, 0.4558735489845276, 0.6435832381248474, -0.15812313556671143, 0.4673576354980469, -0.7269371747970581, 0.27429527044296265, -0.018226830288767815, 0.8358174562454224, 0.46067383885383606, -0.13645122945308685, 0.3008730411529541, 0.26249945163726807, -0.539841890335083, -0.7284027338027954, -0.21550433337688446, -1.0760676860809326, -0.3165895640850067, 1.3044220209121704, -0.4524557590484619, -0.39316293597221375, 0.012383507564663887, -0.3387424051761627, 0.5058193206787109, -0.34259456396102905, 0.6979973316192627, 0.8277581334114075, 0.11966680735349655, -0.303627073764801, -0.3870493471622467, 0.13453392684459686, 0.49451762437820435, -0.6185762882232666, -0.03857804462313652, 0.0788203775882721, 0.4671751856803894, 0.21685580909252167, 0.28216999769210815, -0.11741402745246887, 0.012568599544465542, 0.025730546563863754, 0.03834701329469681, -0.06370019912719727, 0.15575139224529266, -0.3150690495967865, 0.22502979636192322, -0.4049180746078491, -0.3368837535381317 ]
microsoft/wavlm-base-plus
microsoft
"2021-12-22T17:23:24Z"
41,861
9
transformers
[ "transformers", "pytorch", "wavlm", "feature-extraction", "speech", "en", "arxiv:1912.07875", "arxiv:2106.06909", "arxiv:2101.00390", "arxiv:2110.13900", "has_space", "region:us" ]
feature-extraction
"2022-03-02T23:29:05Z"
--- language: - en datasets: tags: - speech inference: false --- # WavLM-Base-Plus [Microsoft's WavLM](https://github.com/microsoft/unilm/tree/master/wavlm) The base model pretrained on 16kHz sampled speech audio. When using the model, make sure that your speech input is also sampled at 16kHz. **Note**: This model does not have a tokenizer as it was pretrained on audio alone. In order to use this model **speech recognition**, a tokenizer should be created and the model should be fine-tuned on labeled text data. Check out [this blog](https://huggingface.co/blog/fine-tune-wav2vec2-english) for more in-detail explanation of how to fine-tune the model. The model was pre-trained on: - 60,000 hours of [Libri-Light](https://arxiv.org/abs/1912.07875) - 10,000 hours of [GigaSpeech](https://arxiv.org/abs/2106.06909) - 24,000 hours of [VoxPopuli](https://arxiv.org/abs/2101.00390) [Paper: WavLM: Large-Scale Self-Supervised Pre-Training for Full Stack Speech Processing](https://arxiv.org/abs/2110.13900) Authors: Sanyuan Chen, Chengyi Wang, Zhengyang Chen, Yu Wu, Shujie Liu, Zhuo Chen, Jinyu Li, Naoyuki Kanda, Takuya Yoshioka, Xiong Xiao, Jian Wu, Long Zhou, Shuo Ren, Yanmin Qian, Yao Qian, Jian Wu, Michael Zeng, Furu Wei **Abstract** *Self-supervised learning (SSL) achieves great success in speech recognition, while limited exploration has been attempted for other speech processing tasks. As speech signal contains multi-faceted information including speaker identity, paralinguistics, spoken content, etc., learning universal representations for all speech tasks is challenging. In this paper, we propose a new pre-trained model, WavLM, to solve full-stack downstream speech tasks. WavLM is built based on the HuBERT framework, with an emphasis on both spoken content modeling and speaker identity preservation. We first equip the Transformer structure with gated relative position bias to improve its capability on recognition tasks. For better speaker discrimination, we propose an utterance mixing training strategy, where additional overlapped utterances are created unsupervisely and incorporated during model training. Lastly, we scale up the training dataset from 60k hours to 94k hours. WavLM Large achieves state-of-the-art performance on the SUPERB benchmark, and brings significant improvements for various speech processing tasks on their representative benchmarks.* The original model can be found under https://github.com/microsoft/unilm/tree/master/wavlm. # Usage This is an English pre-trained speech model that has to be fine-tuned on a downstream task like speech recognition or audio classification before it can be used in inference. The model was pre-trained in English and should therefore perform well only in English. The model has been shown to work well on the [SUPERB benchmark](https://superbbenchmark.org/). **Note**: The model was pre-trained on phonemes rather than characters. This means that one should make sure that the input text is converted to a sequence of phonemes before fine-tuning. ## Speech Recognition To fine-tune the model for speech recognition, see [the official speech recognition example](https://github.com/huggingface/transformers/tree/master/examples/pytorch/speech-recognition). ## Speech Classification To fine-tune the model for speech classification, see [the official audio classification example](https://github.com/huggingface/transformers/tree/master/examples/pytorch/audio-classification). ## Speaker Verification TODO ## Speaker Diarization TODO # Contribution The model was contributed by [cywang](https://huggingface.co/cywang) and [patrickvonplaten](https://huggingface.co/patrickvonplaten). # License The official license can be found [here](https://github.com/microsoft/UniSpeech/blob/main/LICENSE) ![design](https://raw.githubusercontent.com/patrickvonplaten/scientific_images/master/wavlm.png)
[ -0.32044917345046997, -0.6386634111404419, 0.1068890243768692, 0.1390698105096817, -0.2402595430612564, -0.07493776828050613, -0.18275117874145508, -0.6563568115234375, -0.15498870611190796, 0.40723562240600586, -0.6329319477081299, -0.5402916073799133, -0.48244157433509827, -0.1807592511177063, -0.31193849444389343, 0.8581939339637756, 0.3754953444004059, 0.2506595253944397, -0.06999897956848145, -0.10069339722394943, -0.46244537830352783, -0.7838134765625, -0.5736538767814636, -0.4934183359146118, 0.2844963073730469, 0.06873498111963272, 0.23992621898651123, 0.40787920355796814, 0.11241989582777023, 0.2901993691921234, -0.33893805742263794, 0.014069302938878536, -0.3506263792514801, -0.07391811162233353, 0.0007439848268404603, -0.18341782689094543, -0.7303144931793213, 0.20654296875, 0.5528760552406311, 0.5006514191627502, -0.3795115053653717, 0.541479229927063, 0.16973072290420532, 0.31906166672706604, -0.3667876124382019, 0.13931861519813538, -0.8049402236938477, -0.05049678310751915, -0.338186115026474, -0.05671308934688568, -0.2825758755207062, 0.12557975947856903, 0.1980283409357071, -0.393643856048584, 0.09551108628511429, 0.06306790560483932, 0.8139547109603882, 0.3344569504261017, -0.3605767786502838, -0.07577180862426758, -0.7434995770454407, 0.9986759424209595, -0.8926519155502319, 0.8545553088188171, 0.45457184314727783, 0.15898486971855164, 0.0320139043033123, -0.8483599424362183, -0.4945153295993805, -0.3364162743091583, 0.261525958776474, 0.24835991859436035, -0.40287354588508606, 0.17850665748119354, 0.4006558656692505, 0.23277857899665833, -0.7188480496406555, 0.27083542943000793, -0.5427713990211487, -0.5856462121009827, 0.7520881295204163, -0.125250443816185, 0.06788186728954315, 0.014806040562689304, -0.3719022274017334, -0.06565692275762558, -0.4549683928489685, 0.35639286041259766, 0.1772477775812149, 0.49514535069465637, -0.35276320576667786, 0.3029853105545044, 0.0331287607550621, 0.7424953579902649, -0.10480182617902756, -0.348623663187027, 0.7320272922515869, -0.12580861151218414, -0.32069751620292664, 0.33825910091400146, 0.8214384317398071, -0.11515176296234131, 0.35071003437042236, 0.11118113994598389, -0.26749223470687866, 0.08331342041492462, 0.09901265799999237, -0.6532038450241089, -0.2580384910106659, 0.43573278188705444, -0.47022655606269836, -0.0818629339337349, -0.17090298235416412, -0.04240509495139122, 0.07823015004396439, -0.7057430148124695, 0.5951927900314331, -0.4151383340358734, -0.41572344303131104, 0.014119856059551239, 0.09026584774255753, 0.1702919751405716, 0.17868179082870483, -0.6319520473480225, 0.22624453902244568, 0.5746052265167236, 0.684256374835968, -0.2586221992969513, -0.4037136137485504, -0.7503739595413208, -0.03180638328194618, -0.10092563182115555, 0.4285200238227844, -0.139346644282341, -0.41662177443504333, -0.22192257642745972, -0.07173427194356918, 0.13819977641105652, -0.48303186893463135, 0.621143639087677, -0.34463420510292053, 0.2341345250606537, 0.20061303675174713, -0.7769852876663208, -0.06599144637584686, -0.12801897525787354, -0.36210355162620544, 1.0390453338623047, -0.0706118494272232, -0.7333136796951294, 0.15767860412597656, -0.6810542941093445, -0.5886692404747009, 0.1001754105091095, 0.12055794894695282, -0.38104701042175293, -0.07123763114213943, 0.1076294407248497, 0.45521366596221924, -0.06584540009498596, 0.24903178215026855, -0.05362049490213394, -0.30995553731918335, 0.06791172176599503, -0.483123242855072, 1.0924478769302368, 0.4460426867008209, -0.2713806927204132, 0.43838223814964294, -1.1147130727767944, 0.1208668202161789, 0.025186976417899132, -0.4045513868331909, -0.05710219964385033, -0.05923447012901306, 0.4270079731941223, 0.3121267557144165, 0.3197411596775055, -0.7030991315841675, -0.18439531326293945, -0.5560846924781799, 0.5330709218978882, 0.5410863757133484, -0.28093957901000977, 0.2992030680179596, -0.12149855494499207, 0.31793683767318726, -0.06886409223079681, 0.29921475052833557, -0.11286304891109467, -0.5052468776702881, -0.5837258100509644, -0.2562851011753082, 0.43994516134262085, 0.777928352355957, -0.20288601517677307, 0.7955978512763977, -0.12358421087265015, -0.4994129240512848, -0.9374030828475952, 0.13463227450847626, 0.46434926986694336, 0.6765398979187012, 0.7738723158836365, -0.03422456234693527, -0.915221631526947, -0.6393851637840271, -0.039671070873737335, -0.15479138493537903, -0.2788397967815399, 0.18902230262756348, 0.20613442361354828, -0.3427496552467346, 0.9916289448738098, -0.1805819422006607, -0.43670931458473206, -0.09571246802806854, 0.0178223829716444, 0.24657729268074036, 0.6847437620162964, 0.1919335126876831, -0.8097526431083679, -0.17477720975875854, -0.25683295726776123, -0.3921264708042145, -0.09068119525909424, 0.2747105062007904, 0.09491736441850662, 0.1893591433763504, 0.5918504595756531, -0.48207393288612366, 0.2725159525871277, 0.7105352878570557, -0.06292693316936493, 0.6054675579071045, -0.18087650835514069, -0.3712903559207916, -1.0825927257537842, 0.06789205223321915, -0.0841970443725586, -0.4848632216453552, -0.7181446552276611, -0.33189699053764343, 0.0355851836502552, -0.322984516620636, -0.6814853549003601, 0.4555431306362152, -0.42592188715934753, -0.016963548958301544, -0.2848646342754364, 0.10155744850635529, -0.171223983168602, 0.5173825025558472, 0.12222310900688171, 0.6781203746795654, 0.7804275751113892, -0.73089998960495, 0.4500986635684967, 0.1994604766368866, -0.32520249485969543, 0.3089016079902649, -0.8662800192832947, 0.36393073201179504, 0.012181383557617664, 0.2533906400203705, -0.9971138834953308, 0.19441451132297516, -0.09189867228269577, -0.6735904216766357, 0.5091218948364258, -0.14568977057933807, -0.24991850554943085, -0.5466591119766235, 0.08009091019630432, 0.24464552104473114, 0.92359459400177, -0.5076726675033569, 0.6338618397712708, 0.5912097692489624, -0.04940259829163551, -0.4583450257778168, -0.7765271067619324, -0.12718810141086578, -0.07079245895147324, -0.5386831164360046, 0.5606624484062195, -0.2181539088487625, 0.01200378779321909, -0.29273995757102966, -0.1602208912372589, 0.10561954975128174, -0.01044636219739914, 0.4055365025997162, 0.2539566159248352, -0.22554144263267517, 0.21816755831241608, -0.27160829305648804, -0.1976037472486496, -0.04844701290130615, -0.45431840419769287, 0.6977522373199463, -0.13981328904628754, -0.27188658714294434, -0.8060627579689026, 0.24007675051689148, 0.4954199194908142, -0.5838855504989624, 0.1636139303445816, 0.9989609122276306, -0.28224650025367737, -0.10052312910556793, -0.7817834615707397, -0.0576130636036396, -0.46698659658432007, 0.556003987789154, -0.3873802423477173, -0.9380432963371277, 0.2598910629749298, 0.17844220995903015, 0.14227992296218872, 0.49294987320899963, 0.4192085564136505, -0.27971604466438293, 1.0211457014083862, 0.4976012706756592, -0.3838130533695221, 0.5753538012504578, -0.22317680716514587, -0.06566997617483139, -0.877313494682312, -0.2869816720485687, -0.48540645837783813, -0.04601619020104408, -0.4577673077583313, -0.3386676013469696, 0.06285473704338074, 0.11271999031305313, -0.2789476811885834, 0.38684946298599243, -0.710241973400116, -0.015396252274513245, 0.6614740490913391, -0.012369020842015743, 0.056154586374759674, 0.06980114430189133, -0.15129292011260986, -0.012857193127274513, -0.5351234674453735, -0.29327306151390076, 0.9227816462516785, 0.525895893573761, 0.6220785975456238, -0.18221646547317505, 0.7741509675979614, 0.2778005301952362, -0.01004176028072834, -0.7516627311706543, 0.38274461030960083, -0.1125735267996788, -0.45745617151260376, -0.4456627666950226, -0.4082927703857422, -1.0052684545516968, 0.34544095396995544, -0.2444312870502472, -0.7423107624053955, -0.08834461122751236, 0.3299066126346588, -0.24340245127677917, 0.14835205674171448, -0.6805877685546875, 0.7122842073440552, -0.3421576917171478, 0.0690685287117958, -0.20058506727218628, -0.7636117935180664, 0.09294944256544113, 0.05834026262164116, 0.40562185645103455, -0.27081647515296936, 0.29248547554016113, 0.927837610244751, -0.3196776807308197, 0.5920337438583374, -0.5066825151443481, -0.19610583782196045, 0.27216464281082153, -0.28910285234451294, 0.3775743544101715, -0.34083008766174316, -0.07240074872970581, 0.41223302483558655, 0.2613665461540222, -0.32590290904045105, -0.32784464955329895, 0.43262648582458496, -0.8861973881721497, -0.4384446442127228, -0.08848007023334503, -0.41655588150024414, -0.42095428705215454, 0.14229510724544525, 0.5154373049736023, 0.6743791699409485, -0.09539794921875, 0.313035249710083, 0.5970607995986938, -0.06944409012794495, 0.42688095569610596, 0.6992648243904114, -0.38846051692962646, -0.35488787293434143, 0.9437474608421326, 0.3490894138813019, 0.12341750413179398, 0.3600991666316986, 0.34964269399642944, -0.5678931474685669, -0.7317478060722351, -0.17839716374874115, 0.03669825196266174, -0.45867934823036194, -0.03863232210278511, -0.7463962435722351, -0.5075183510780334, -0.7136270999908447, 0.3696326017379761, -0.5279684066772461, -0.18093949556350708, -0.5214517116546631, -0.02674480900168419, 0.31693539023399353, 0.5118530988693237, -0.01561057846993208, 0.16338105499744415, -0.7169468998908997, 0.456492155790329, 0.4419306218624115, 0.12562508881092072, 0.116778664290905, -1.0058287382125854, -0.18879492580890656, 0.3074887990951538, -0.05576574057340622, -0.6052897572517395, 0.24294844269752502, 0.2479282021522522, 0.7842766046524048, 0.20342761278152466, -0.0035154283978044987, 0.7110439538955688, -0.6697373986244202, 0.8988333940505981, 0.31142809987068176, -1.0798492431640625, 0.763027012348175, -0.1325201839208603, 0.552691638469696, 0.36372438073158264, 0.23307844996452332, -0.3899820148944855, -0.20616094768047333, -0.7001651525497437, -0.8295700550079346, 0.6318004131317139, 0.20191320776939392, 0.23892375826835632, 0.2925378680229187, 0.0554857961833477, -0.10106740146875381, 0.151967391371727, -0.7198142409324646, -0.5324509143829346, -0.4775903820991516, -0.1781712919473648, -0.3193008601665497, -0.31213444471359253, 0.1339808851480484, -0.7800356149673462, 0.8682466149330139, 0.2295314371585846, 0.10194261372089386, 0.3081110119819641, -0.3380610942840576, 0.26774078607559204, 0.30230265855789185, 0.6658424735069275, 0.5697046518325806, -0.34009137749671936, 0.02928108721971512, 0.37453189492225647, -0.5768008232116699, 0.06908866763114929, 0.353172242641449, 0.12497613579034805, 0.11662381142377853, 0.4208443760871887, 1.2077486515045166, 0.23571652173995972, -0.49252262711524963, 0.47726768255233765, 0.04164072126150131, -0.35289466381073, -0.46860936284065247, 0.08626462519168854, 0.24045716226100922, 0.16709531843662262, 0.6113377809524536, -0.008519792929291725, 0.07321178913116455, -0.44280901551246643, 0.2681078612804413, 0.3877456784248352, -0.565624475479126, -0.22529377043247223, 0.7445099353790283, 0.27836874127388, -0.6836716532707214, 0.43815770745277405, -0.1434517353773117, -0.5657056570053101, 0.2773808240890503, 0.7238522171974182, 0.7557807564735413, -0.6790356040000916, -0.15701597929000854, 0.26184898614883423, 0.0840141624212265, 0.15878507494926453, 0.43746110796928406, -0.4640727937221527, -0.6127241253852844, -0.414162278175354, -0.915574312210083, -0.1867176592350006, 0.4251444637775421, -0.6551645398139954, 0.14258930087089539, -0.31941914558410645, -0.3289784789085388, 0.21486489474773407, 0.08778863400220871, -0.7843620181083679, 0.4092777669429779, 0.4115109443664551, 0.8648328185081482, -0.5537933111190796, 1.1972830295562744, 0.48478424549102783, -0.26766565442085266, -1.0572625398635864, -0.1972680687904358, -0.09893658757209778, -0.7528367042541504, 0.611723780632019, 0.13272063434123993, -0.3786385953426361, 0.37644413113594055, -0.6635814309120178, -0.9230565428733826, 0.97017502784729, 0.2768157124519348, -0.9324498772621155, 0.0034862086176872253, -0.09386242181062698, 0.48533615469932556, -0.28109511733055115, -0.012616800144314766, 0.4037938117980957, 0.21281516551971436, 0.13501381874084473, -1.2592658996582031, -0.14790940284729004, -0.2961200773715973, -0.03972942754626274, -0.2725941240787506, -0.36770525574684143, 0.922728419303894, -0.13936768472194672, -0.1453171819448471, -0.10057210922241211, 0.7525275349617004, 0.2937377989292145, 0.18767893314361572, 0.7554748058319092, 0.3798381984233856, 1.0204904079437256, 0.04947657510638237, 0.7578518390655518, -0.2948596477508545, 0.35950636863708496, 1.403720736503601, -0.25565025210380554, 1.1336275339126587, 0.30187520384788513, -0.5615217089653015, 0.35183581709861755, 0.4645809829235077, -0.1572909951210022, 0.45946216583251953, 0.32927340269088745, -0.09560777246952057, -0.27482470870018005, -0.08696265518665314, -0.7052769660949707, 0.6736599802970886, 0.15150950849056244, -0.14240321516990662, 0.11741083115339279, 0.3871506154537201, -0.202154740691185, -0.29142650961875916, -0.440475195646286, 0.7746914625167847, 0.31293249130249023, -0.20617806911468506, 0.7926628589630127, -0.17661792039871216, 1.0703344345092773, -0.7820366024971008, 0.19984178245067596, 0.27858105301856995, 0.05414766073226929, -0.37084513902664185, -0.516512930393219, 0.005889153108000755, -0.007646469399333, -0.2351907640695572, -0.19436487555503845, 0.7651551365852356, -0.6341211795806885, -0.46401771903038025, 0.5688124299049377, 0.2945391833782196, 0.35098281502723694, -0.3103375732898712, -0.8377733826637268, 0.2152404487133026, 0.02349846437573433, -0.2195844203233719, 0.18066810071468353, 0.04019070416688919, 0.24839355051517487, 0.514159619808197, 0.9712791442871094, 0.23987367749214172, 0.11218418180942535, 0.5083594918251038, 0.4743678569793701, -0.5268116593360901, -0.7734290361404419, -0.7278097867965698, 0.6561974883079529, -0.013746739365160465, -0.26335835456848145, 0.7624764442443848, 0.6159681677818298, 0.8961963057518005, 0.04881240800023079, 0.6891263127326965, 0.3075691759586334, 0.8126425743103027, -0.5500819087028503, 0.7877693772315979, -0.6915231943130493, -0.027434416115283966, -0.40169569849967957, -0.8545161485671997, -0.1378067582845688, 0.6400262713432312, -0.027356283739209175, 0.16723695397377014, 0.2661164402961731, 0.6134499311447144, -0.030954143032431602, 0.028498392552137375, 0.6440198421478271, 0.2925609052181244, 0.2582162022590637, 0.1944848597049713, 0.7894124984741211, -0.4297453463077545, 0.625755786895752, -0.22747519612312317, -0.10261694341897964, -0.07046802341938019, -0.6542072892189026, -0.8209683299064636, -0.7881048917770386, -0.36114102602005005, -0.3072608709335327, -0.034552041441202164, 1.1271051168441772, 1.2149364948272705, -0.878547191619873, -0.28967124223709106, 0.02323313243687153, -0.16371770203113556, -0.12052014470100403, -0.19079822301864624, 0.3940596282482147, -0.25078898668289185, -0.5120580792427063, 0.6399553418159485, 0.0016455153236165643, 0.36284610629081726, -0.1433907002210617, -0.2746090292930603, -0.19581831991672516, -0.09799139201641083, 0.6978875398635864, 0.282016783952713, -0.9213194251060486, -0.061010148376226425, -0.21616998314857483, 0.00025133599410764873, 0.18090996146202087, 0.5735756754875183, -0.7796831130981445, 0.4446757733821869, 0.31833407282829285, 0.36696887016296387, 0.8720581531524658, 0.034414153546094894, 0.25352948904037476, -0.850211501121521, 0.27959904074668884, 0.35454684495925903, 0.4845447242259979, 0.4357934594154358, -0.12123868614435196, 0.07434108853340149, 0.18775825202465057, -0.5758025646209717, -0.8916564583778381, 0.0966496542096138, -1.1707385778427124, -0.22606095671653748, 1.0394632816314697, 0.030922677367925644, -0.10992206633090973, -0.23968127369880676, -0.5018957257270813, 0.6409557461738586, -0.3742133378982544, 0.23617196083068848, 0.5124560594558716, -0.11541137099266052, -0.18867425620555878, -0.43838128447532654, 0.6205297112464905, 0.272700697183609, -0.49471455812454224, 0.07280530035495758, 0.29725074768066406, 0.5263159275054932, 0.1666094809770584, 0.7673754096031189, 0.05641862377524376, 0.0851944163441658, -0.0888376235961914, 0.3955882489681244, -0.39298108220100403, -0.1820744425058365, -0.5393486618995667, 0.09516514092683792, -0.028665974736213684, -0.521741509437561 ]
ahotrod/electra_large_discriminator_squad2_512
ahotrod
"2020-12-11T21:31:42Z"
41,809
5
transformers
[ "transformers", "pytorch", "tf", "electra", "question-answering", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
question-answering
"2022-03-02T23:29:05Z"
## ELECTRA_large_discriminator language model fine-tuned on SQuAD2.0 ### with the following results: ``` "exact": 87.09677419354838, "f1": 89.98343832723452, "total": 11873, "HasAns_exact": 84.66599190283401, "HasAns_f1": 90.44759839056285, "HasAns_total": 5928, "NoAns_exact": 89.52060555088309, "NoAns_f1": 89.52060555088309, "NoAns_total": 5945, "best_exact": 87.09677419354838, "best_exact_thresh": 0.0, "best_f1": 89.98343832723432, "best_f1_thresh": 0.0 ``` ### from script: ``` python ${EXAMPLES}/run_squad.py \ --model_type electra \ --model_name_or_path google/electra-large-discriminator \ --do_train \ --do_eval \ --train_file ${SQUAD}/train-v2.0.json \ --predict_file ${SQUAD}/dev-v2.0.json \ --version_2_with_negative \ --do_lower_case \ --num_train_epochs 3 \ --warmup_steps 306 \ --weight_decay 0.01 \ --learning_rate 3e-5 \ --max_grad_norm 0.5 \ --adam_epsilon 1e-6 \ --max_seq_length 512 \ --doc_stride 128 \ --per_gpu_train_batch_size 8 \ --gradient_accumulation_steps 16 \ --per_gpu_eval_batch_size 128 \ --fp16 \ --fp16_opt_level O1 \ --threads 12 \ --logging_steps 50 \ --save_steps 1000 \ --overwrite_output_dir \ --output_dir ${MODEL_PATH} ``` ### using the following system & software: ``` Transformers: 2.11.0 PyTorch: 1.5.0 TensorFlow: 2.2.0 Python: 3.8.1 OS/Platform: Linux-5.3.0-59-generic-x86_64-with-glibc2.10 CPU/GPU: Intel i9-9900K / NVIDIA Titan RTX 24GB ```
[ -0.3749268352985382, -0.772972047328949, 0.26545101404190063, 0.10255616158246994, -0.1552179902791977, 0.29891371726989746, -0.34698617458343506, -0.3996850550174713, 0.06555912643671036, 0.4067375063896179, -0.6086098551750183, -0.6562113165855408, -0.6305891871452332, 0.007339932955801487, -0.3679940700531006, 1.0985215902328491, -0.17115192115306854, -0.0731409564614296, 0.3160289525985718, -0.22486381232738495, -0.4680027961730957, -0.489851176738739, -0.8628377318382263, -0.332811176776886, 0.22791165113449097, 0.5175809264183044, 0.6452729105949402, 0.5071675777435303, 0.5897552371025085, 0.44994282722473145, -0.12877412140369415, 0.20713232457637787, -0.591901957988739, -0.009125138632953167, 0.07821553200483322, -0.5515176653862, -0.5833979845046997, -0.19563035666942596, 0.7418919205665588, 0.05237997695803642, -0.19919870793819427, 0.21891534328460693, -0.3039326071739197, 0.7982727289199829, -0.5308074355125427, 0.22514711320400238, -0.6308164000511169, -0.09942475706338882, -0.24696968495845795, 0.006688871420919895, -0.3478093147277832, -0.22234278917312622, 0.02413106895983219, -0.44512173533439636, 0.6847019195556641, 0.01808849163353443, 1.317760944366455, 0.26415228843688965, -0.22268465161323547, -0.07129676640033722, -0.7198863625526428, 0.929950475692749, -0.8824765086174011, -0.047395192086696625, 0.24965447187423706, 0.3747290074825287, -0.20251385867595673, -0.541775643825531, -0.5601174831390381, 0.0035073738545179367, 0.07330834120512009, 0.24676042795181274, -0.49571317434310913, -0.035084109753370285, 0.45669418573379517, 0.39583805203437805, -0.6343371272087097, 0.41075196862220764, -0.579452395439148, -0.23610660433769226, 0.9298772811889648, 0.3198416233062744, 0.1201293095946312, 0.22147847712039948, -0.12314468622207642, -0.34113916754722595, -0.5827273726463318, 0.03950125724077225, 0.6342952251434326, 0.29740792512893677, -0.3626093566417694, 0.6490564942359924, -0.4611765742301941, 0.5542821884155273, 0.20961017906665802, 0.147379070520401, 0.729793906211853, -0.13739745318889618, -0.1909591555595398, 0.20865017175674438, 1.2276911735534668, 0.4385027587413788, 0.25111374258995056, 0.09160321205854416, -0.3474540710449219, 0.20857886970043182, 0.14064975082874298, -1.0897144079208374, -0.42267102003097534, 0.5153974890708923, -0.14885792136192322, -0.4331016540527344, 0.06915827840566635, -0.9484606981277466, -0.043835144490003586, -0.03504529967904091, 0.4112838804721832, -0.6542028188705444, -0.4729730188846588, 0.09182245284318924, -0.07288460433483124, 0.434033066034317, 0.22571158409118652, -0.9392731785774231, 0.065220907330513, 0.38880085945129395, 0.9847903847694397, 0.02457304485142231, -0.2859073281288147, -0.530758798122406, 0.001531433081254363, -0.29133474826812744, 0.8610137104988098, -0.11927034705877304, -0.2361711710691452, 0.13925698399543762, 0.175615131855011, -0.28779301047325134, -0.5585019588470459, 0.450437992811203, -0.41820278763771057, 0.09972700476646423, -0.1655813604593277, -0.5597277879714966, -0.23294660449028015, -0.13228091597557068, -0.6388785243034363, 1.1838716268539429, 0.2375970035791397, -0.43140628933906555, 0.28811755776405334, -0.6266149878501892, -0.543152391910553, 0.04454268142580986, 0.06797227263450623, -0.8876957297325134, -0.01828557439148426, 0.031131958588957787, 0.42641323804855347, -0.2796435058116913, 0.29403582215309143, -0.30318811535835266, -0.5188788175582886, 0.20981885492801666, -0.26730185747146606, 0.9193642139434814, 0.24111118912696838, -0.8990150690078735, 0.40871334075927734, -0.7796310782432556, 0.17317864298820496, 0.24388208985328674, -0.20890069007873535, 0.24835459887981415, -0.047591887414455414, 0.2066406011581421, 0.3821072280406952, 0.33959898352622986, -0.5301074981689453, 0.13438597321510315, -0.40605461597442627, 0.556965708732605, 0.8439834713935852, -0.37543466687202454, 0.22537443041801453, -0.3030024468898773, 0.48098284006118774, -0.01378908846527338, -0.0698988288640976, 0.31703874468803406, -0.510524332523346, -0.9710691571235657, -0.4382058382034302, -0.05952826514840126, 0.5772444009780884, -0.37216004729270935, 0.9157460927963257, -0.04358714073896408, -0.8920146822929382, -0.465099573135376, -0.01848299615085125, 0.5592650175094604, 0.24560581147670746, 0.4960359036922455, -0.034492213279008865, -0.8568721413612366, -1.0543588399887085, 0.03463312238454819, -0.38335156440734863, 0.08631979674100876, 0.15569786727428436, 0.9642889499664307, -0.312368780374527, 0.671724796295166, -0.6860053539276123, -0.34438347816467285, -0.6363792419433594, 0.045606378465890884, 0.5878078937530518, 0.5756233334541321, 0.5846086740493774, -0.45409509539604187, -0.5279536843299866, 0.10260284692049026, -0.6471226215362549, -0.008008062839508057, 0.07185283303260803, -0.27966514229774475, 0.40123024582862854, 0.40860840678215027, -0.6791172623634338, 0.31190165877342224, 0.440519779920578, -0.702969491481781, 0.7657424211502075, -0.3758704960346222, 0.1402660310268402, -1.0466457605361938, 0.23113159835338593, 0.19528834521770477, -0.051566705107688904, -0.5065852403640747, 0.08110317587852478, 0.06431570649147034, 0.29546284675598145, -0.491869181394577, 0.4592428505420685, -0.141135573387146, 0.1861051619052887, -0.1463056057691574, -0.28959494829177856, -0.22368943691253662, 0.589529275894165, -0.09514745324850082, 1.0881980657577515, 0.5701367855072021, -0.5356756448745728, 0.43387091159820557, 0.16597045958042145, -0.39351487159729004, 0.2721070349216461, -0.8857319951057434, 0.17388905584812164, 0.04506568983197212, 0.11380673199892044, -1.055625557899475, -0.41812863945961, 0.17645245790481567, -0.3866673707962036, 0.38829270005226135, -0.08103388547897339, -0.62650465965271, -0.42290014028549194, -0.2712741494178772, 0.24532781541347504, 0.7245357036590576, -0.47321951389312744, 0.19499684870243073, 0.4835967421531677, 0.1757088303565979, -0.4282328486442566, -0.47409239411354065, -0.2009725719690323, -0.2075674682855606, -0.5813590288162231, 0.45052844285964966, -0.17077481746673584, -0.2004234790802002, -0.3400605618953705, -0.025893790647387505, -0.3218253254890442, -0.0765932947397232, 0.1642952263355255, 0.550383448600769, -0.2242739498615265, -0.20047354698181152, -0.045707542449235916, -0.044840164482593536, 0.011367960833013058, 0.17068235576152802, 1.0408214330673218, -0.52469402551651, -0.14413945376873016, -0.4375153183937073, 0.08503710478544235, 0.757225751876831, -0.28558820486068726, 0.9403543472290039, 1.0541307926177979, -0.15728361904621124, -0.1426704376935959, -0.5908903479576111, 0.014814602211117744, -0.541598379611969, 0.8681854605674744, -0.2896932065486908, -0.845457136631012, 0.7902944087982178, 0.22139443457126617, 0.11150764673948288, 1.0017470121383667, 0.775180995464325, 0.0648956298828125, 1.4599542617797852, 0.3440599739551544, -0.19475582242012024, 0.5689101815223694, -0.9015188813209534, 0.04583559185266495, -0.9127089381217957, -0.5266691446304321, -0.5703260898590088, -0.3982732892036438, -0.6888298988342285, -0.0939718559384346, 0.046273984014987946, 0.18986628949642181, -0.6216065883636475, 0.6072522401809692, -0.839638888835907, 0.49009740352630615, 0.5303287506103516, 0.2435619980096817, -0.1235651820898056, 0.06517665088176727, -0.01799359917640686, 0.05494043603539467, -0.5946245193481445, -0.3882877230644226, 1.1754812002182007, 0.2881099283695221, 0.6139602065086365, 0.19650018215179443, 0.5737200379371643, 0.010356524027884007, -0.1762474626302719, -0.7203998565673828, 0.6634731888771057, -0.37360963225364685, -0.7901649475097656, -0.23489445447921753, -0.460004985332489, -0.9510028958320618, 0.12838691473007202, 0.011116661131381989, -0.9557522535324097, 0.06999600678682327, 0.12315484136343002, -0.38273924589157104, 0.6059542894363403, -0.7698879837989807, 0.9019393920898438, -0.07810823619365692, -0.3488847315311432, -0.28347423672676086, -0.4521297514438629, 0.28010550141334534, -0.08625819534063339, -0.10483931005001068, -0.3492657244205475, 0.23118241131305695, 1.123680830001831, -0.610045313835144, 0.6031742095947266, -0.04710095748305321, 0.1214585155248642, 0.34049689769744873, -0.08445598185062408, 0.6368334889411926, -0.08089316636323929, -0.20994238555431366, 0.4126324951648712, 0.06474451720714569, -0.40512216091156006, -0.11620862782001495, 0.811791718006134, -1.116961121559143, -0.3792556822299957, -0.6704011559486389, -0.5516250729560852, 0.15787452459335327, 0.26429498195648193, 0.6685841083526611, 0.5335239768028259, 0.010250813327729702, 0.3057902157306671, 0.769588828086853, -0.28002679347991943, 0.567080557346344, 0.6185503005981445, -0.19477839767932892, -0.40523412823677063, 0.9325171709060669, 0.0037278039380908012, 0.3072572648525238, 0.09641922265291214, -0.04318926855921745, -0.39296233654022217, -0.553429126739502, -0.3962693512439728, 0.3236350417137146, -0.39380520582199097, -0.45008522272109985, -0.5021632313728333, -0.392179012298584, -0.38616153597831726, -0.04902683198451996, -0.6373189687728882, -0.20045463740825653, -0.4202078580856323, -0.11112421751022339, 0.781381368637085, 0.6783337593078613, 0.04540891572833061, 0.4838925004005432, -0.39627429842948914, 0.1464265137910843, 0.10717365145683289, 0.29548484086990356, -0.27115970849990845, -0.7768738269805908, -0.29663214087486267, 0.14529748260974884, -0.3510133624076843, -0.8291876912117004, 0.6912632584571838, 0.17316320538520813, 0.4622316062450409, 0.37634602189064026, 0.028406137600541115, 0.8272045850753784, -0.42771250009536743, 0.6636021137237549, 0.2494613230228424, -0.6830089688301086, 0.6794198155403137, -0.3881288766860962, 0.26253801584243774, 0.6192084550857544, -0.10212866961956024, -0.05841122195124626, -0.5478461384773254, -0.8842811584472656, -1.0832829475402832, 1.1803041696548462, 0.42276909947395325, -0.03388090804219246, -0.09401607513427734, 0.15947842597961426, -0.2531367242336273, 0.1161392405629158, -0.280571311712265, -0.590813159942627, 0.09154661744832993, -0.233791321516037, -0.2086361199617386, -0.2764308452606201, -0.005956693552434444, -0.5574539303779602, 1.0388835668563843, 0.18163847923278809, 0.5293805003166199, 0.06823455542325974, -0.01600448042154312, -0.31620240211486816, 0.07521986961364746, 0.7016962766647339, 0.6393483877182007, -0.5887159109115601, -0.16522839665412903, 0.2758530080318451, -0.6066083312034607, 0.20763085782527924, 0.0911703035235405, -0.15479649603366852, 0.3691190481185913, 0.2822315990924835, 1.0166661739349365, -0.05191974714398384, -0.613608717918396, 0.38007405400276184, 0.014588178135454655, -0.44213736057281494, -0.6464821100234985, 0.4056318402290344, -0.31276530027389526, 0.2464715838432312, 0.3170257806777954, 0.407382607460022, -0.03879550099372864, -0.400617390871048, 0.05525728687644005, 0.5706006288528442, -0.37518683075904846, -0.41963690519332886, 0.7012166380882263, 0.00877060741186142, -0.3448987901210785, 0.8088778257369995, -0.19652868807315826, -0.8180734515190125, 1.0691659450531006, 0.5195526480674744, 0.964532196521759, -0.264662504196167, 0.30995282530784607, 0.8765423893928528, 0.3073962926864624, -0.38952136039733887, 0.4871772229671478, 0.4432554543018341, -0.7676284909248352, -0.3452269732952118, -0.6725035905838013, -0.16708879172801971, 0.4822100102901459, -0.693386435508728, 0.4715070426464081, -0.5208378434181213, -0.25718095898628235, 0.08479953557252884, 0.20570522546768188, -0.9746860265731812, 0.1330738663673401, -0.16236847639083862, 0.7807983160018921, -0.8890025615692139, 0.9293191432952881, 0.7442198991775513, -0.4979776442050934, -1.1817799806594849, -0.39156508445739746, -0.19915157556533813, -0.9173650741577148, 0.5588523745536804, 0.37909966707229614, 0.08366800099611282, 0.3258376121520996, -0.5090829730033875, -0.8915300965309143, 1.1309235095977783, 0.4599590301513672, -0.7328681945800781, 0.0502634234726429, -0.028061643242836, 0.5111179947853088, -0.05493184179067612, 0.513322114944458, 0.7459235191345215, 0.40401002764701843, 0.13999980688095093, -0.9751307964324951, 0.09822978079319, -0.45393699407577515, -0.23024514317512512, 0.4886699318885803, -0.8552905321121216, 1.1803367137908936, -0.24919810891151428, 0.10735146701335907, 0.2137015014886856, 0.3661196529865265, 0.4570550322532654, 0.06168228015303612, 0.33672091364860535, 0.737407386302948, 0.6590413451194763, -0.32600709795951843, 0.9463180303573608, -0.2828967869281769, 0.7807698845863342, 0.8499690294265747, -0.031660471111536026, 0.9014014601707458, 0.36619192361831665, -0.6103702187538147, 0.6842629909515381, 0.4968734681606293, -0.3523394763469696, 0.5548397302627563, -0.007777383551001549, -0.31795910000801086, -0.3792951703071594, 0.11440569162368774, -0.633281946182251, 0.38247984647750854, 0.27353283762931824, -0.47818708419799805, -0.03543054684996605, -0.5212171673774719, 0.1401243358850479, -0.28519243001937866, -0.26125437021255493, 0.7045891284942627, -0.2516905963420868, -0.6500073671340942, 0.7435315251350403, -0.004654382821172476, 0.7814357280731201, -0.7437483668327332, -0.11803823709487915, -0.05903679504990578, 0.5915270447731018, -0.32266372442245483, -0.7495934367179871, 0.07828377932310104, 0.017096133902668953, -0.2066679298877716, 0.10090982168912888, 0.5795326232910156, -0.3404746949672699, -0.7332713603973389, 0.17899784445762634, 0.1572999358177185, 0.22224995493888855, -0.0834682509303093, -0.6658269166946411, 0.15494360029697418, 0.25710397958755493, -0.1589026004076004, 0.31073111295700073, 0.23221296072006226, 0.2609591484069824, 0.5664013624191284, 0.7357520461082458, 0.18612709641456604, -0.0063682133331894875, -0.026543203741312027, 0.8009217977523804, -0.4791056513786316, -0.3193197548389435, -1.1868456602096558, 0.5712408423423767, -0.24483183026313782, -0.7654426097869873, 0.6335694789886475, 0.8400289416313171, 0.7404332756996155, -0.02809358946979046, 0.6809985041618347, -0.33602800965309143, 0.2507323622703552, -0.4687826633453369, 0.8449620604515076, -0.4072731137275696, 0.08856496959924698, -0.3872890770435333, -0.9862100481987, -0.04746680706739426, 1.0123149156570435, -0.32881566882133484, -0.003942759241908789, 0.5806596875190735, 0.9673750400543213, 0.07679450511932373, -0.3387434482574463, 0.1281566321849823, 0.2372714728116989, 0.42267340421676636, 0.8037035465240479, 0.4756457507610321, -0.6457476615905762, 0.687791645526886, -0.5260714888572693, -0.1988992691040039, -0.2615942358970642, -0.41750383377075195, -1.0596495866775513, -0.37676772475242615, -0.53587806224823, -0.6366071105003357, 0.07354552298784256, 0.9970449805259705, 0.600877583026886, -1.1440621614456177, -0.45719629526138306, -0.4493507742881775, -0.15226194262504578, -0.15510280430316925, -0.27678772807121277, 0.4944353997707367, -0.29554638266563416, -0.7808833122253418, 0.20909817516803741, -0.081236831843853, -0.1080268919467926, -0.03720655292272568, -0.3103425204753876, -0.3589106500148773, -0.5247331857681274, 0.38580965995788574, 0.22850248217582703, -0.7189900279045105, -0.32810690999031067, -0.02765868417918682, -0.13276547193527222, 0.1289869099855423, 0.184296652674675, -0.6184499859809875, 0.35000118613243103, 0.39216136932373047, 0.1275898814201355, 0.5846331715583801, -0.40819984674453735, 0.6724491119384766, -0.5723015666007996, 0.25391626358032227, 0.08338385075330734, 0.5818008184432983, 0.10433194786310196, -0.2758180797100067, 0.5687665939331055, 0.20033663511276245, -0.6921465992927551, -0.8695882558822632, -0.038898441940546036, -0.9306793808937073, -0.10366978496313095, 1.4378467798233032, 0.0024629037361592054, -0.15675045549869537, 0.12565729022026062, -0.38358408212661743, 0.7027922868728638, -0.7764068245887756, 0.7393264770507812, 0.463531494140625, 0.05257750675082207, 0.18180415034294128, -0.6495460867881775, 0.3999050557613373, 0.38879647850990295, -0.7355607748031616, -0.1193065196275711, 0.448326975107193, 0.3578592538833618, 0.17607302963733673, 0.3930073380470276, 0.030986377969384193, 0.3979730010032654, -0.20319995284080505, 0.17441865801811218, -0.1402461975812912, -0.0283488892018795, -0.32779577374458313, -0.14460618793964386, -0.152031809091568, -0.3880540132522583 ]
timm/mixnet_l.ft_in1k
timm
"2023-04-27T21:13:39Z"
41,604
0
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "arxiv:1907.09595", "license:apache-2.0", "region:us" ]
image-classification
"2022-12-12T23:59:31Z"
--- tags: - image-classification - timm library_name: timm license: apache-2.0 datasets: - imagenet-1k --- # Model card for mixnet_l.ft_in1k A MixNet image classification model. Fine-tuned on ImageNet-1k from original Tensorflow "SAME" padding weights for use in PyTorch. ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 7.3 - GMACs: 0.6 - Activations (M): 10.8 - Image size: 224 x 224 - **Papers:** - MixConv: Mixed Depthwise Convolutional Kernels: https://arxiv.org/abs/1907.09595 - **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('mixnet_l.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( 'mixnet_l.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, 32, 112, 112]) # torch.Size([1, 40, 56, 56]) # torch.Size([1, 56, 28, 28]) # torch.Size([1, 160, 14, 14]) # torch.Size([1, 264, 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( 'mixnet_l.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, 1536, 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 @misc{tan2019mixconv, title={MixConv: Mixed Depthwise Convolutional Kernels}, author={Mingxing Tan and Quoc V. Le}, year={2019}, eprint={1907.09595}, archivePrefix={arXiv}, primaryClass={cs.CV} } ```
[ -0.6124041676521301, -0.571362316608429, -0.08891593664884567, 0.21248933672904968, -0.3780773878097534, -0.315428227186203, -0.16275927424430847, -0.4578297734260559, 0.41003721952438354, 0.3529694676399231, -0.46580931544303894, -0.7088785171508789, -0.7334303855895996, -0.20929673314094543, -0.2441607117652893, 1.0912929773330688, -0.20542438328266144, 0.006977961398661137, -0.15801583230495453, -0.593224048614502, -0.14788979291915894, -0.25767192244529724, -0.7721579074859619, -0.5420220494270325, 0.40734127163887024, 0.17117106914520264, 0.6500521302223206, 0.5030457973480225, 0.5160520076751709, 0.46939629316329956, -0.25636792182922363, 0.04063986986875534, -0.28817784786224365, -0.19542887806892395, 0.4609818160533905, -0.535190999507904, -0.4820082187652588, 0.2973773777484894, 0.695550799369812, 0.5398629903793335, 0.021655317395925522, 0.2911073863506317, 0.13707898557186127, 0.47881385684013367, -0.2848016023635864, -0.057115789502859116, -0.32708609104156494, 0.27411723136901855, 0.023765934631228447, 0.05262391269207001, -0.15057221055030823, -0.39187803864479065, 0.3229731619358063, -0.577720582485199, 0.4858858287334442, -0.094035804271698, 1.266719102859497, 0.15955935418605804, -0.008842568844556808, -0.07804186642169952, -0.2167281061410904, 0.7202865481376648, -0.8810965418815613, 0.24067944288253784, 0.2886250615119934, 0.15067508816719055, -0.13582606613636017, -0.9973399043083191, -0.6301864385604858, -0.10506269335746765, -0.22501640021800995, 0.038146521896123886, -0.0921924039721489, 0.0405203178524971, 0.2647065818309784, 0.5297461748123169, -0.45689642429351807, -0.007337701041251421, -0.6147974729537964, -0.2885834872722626, 0.6115438938140869, -0.01132700964808464, 0.4007493257522583, -0.14396029710769653, -0.5003236532211304, -0.5223685503005981, -0.25251439213752747, 0.3201724886894226, 0.3471026122570038, 0.1551022231578827, -0.7913880944252014, 0.5294986367225647, 0.15836530923843384, 0.5689159035682678, 0.08141277730464935, -0.359609991312027, 0.6230313181877136, -0.009916617535054684, -0.5147907733917236, -0.053788453340530396, 1.1330076456069946, 0.3554854989051819, 0.16583122313022614, 0.10354924201965332, -0.151610866189003, -0.32056114077568054, -0.1280456781387329, -1.2377259731292725, -0.37966570258140564, 0.4791695475578308, -0.568945050239563, -0.430107980966568, 0.32449883222579956, -0.627861738204956, -0.17219462990760803, -0.04595528170466423, 0.6888051629066467, -0.5169210433959961, -0.5189950466156006, 0.0791158676147461, -0.27023372054100037, 0.37313181161880493, 0.2604416310787201, -0.44787248969078064, 0.25807029008865356, 0.3064599931240082, 1.2029869556427002, 0.04363471269607544, -0.5529897809028625, -0.1634662002325058, -0.4735163748264313, -0.305708110332489, 0.3369181156158447, -0.008546710014343262, -0.16971559822559357, -0.31120574474334717, 0.2987123131752014, -0.13251130282878876, -0.7931968569755554, 0.22658777236938477, -0.13562797009944916, 0.3369850516319275, 0.05624094977974892, -0.2845604419708252, -0.45449596643447876, 0.32817721366882324, -0.4337766170501709, 1.385805606842041, 0.44017523527145386, -1.0024259090423584, 0.4156043529510498, -0.49715107679367065, -0.241354838013649, -0.27317214012145996, -0.03711824119091034, -1.079491376876831, -0.1585143506526947, 0.2249009609222412, 0.7797603607177734, -0.1523711234331131, 0.07509943842887878, -0.6479766964912415, -0.27139535546302795, 0.3812999129295349, 0.11780471354722977, 1.121782898902893, 0.1644856035709381, -0.41266512870788574, 0.3572533130645752, -0.5728827714920044, 0.08779837191104889, 0.4737444818019867, -0.30863770842552185, -0.0494590662419796, -0.7142533659934998, 0.2830938696861267, 0.38515007495880127, 0.09758710861206055, -0.6210883855819702, 0.21964813768863678, -0.19709905982017517, 0.3746291697025299, 0.564650297164917, -0.14675013720989227, 0.32659146189689636, -0.42645084857940674, 0.33809253573417664, 0.5252828598022461, 0.15492136776447296, -0.10735543817281723, -0.6210700869560242, -0.9430534243583679, -0.6044476628303528, 0.3878863751888275, 0.3657223880290985, -0.5273967385292053, 0.5571452975273132, -0.1152573823928833, -0.748375654220581, -0.6722544431686401, 0.11840114742517471, 0.3771226406097412, 0.5554037094116211, 0.33179062604904175, -0.5288180112838745, -0.5151541233062744, -0.918718695640564, 0.08593237400054932, 0.1733287125825882, -0.023790083825588226, 0.3412037193775177, 0.7771701812744141, -0.20141588151454926, 0.6840358376502991, -0.3213433623313904, -0.14693260192871094, -0.24391813576221466, 0.11726366728544235, 0.48511525988578796, 0.9012778401374817, 0.8245143890380859, -0.6171455979347229, -0.4935528039932251, -0.07396098226308823, -0.9927176833152771, 0.2114104926586151, -0.03108588419854641, -0.30958518385887146, 0.17337514460086823, 0.07625262439250946, -0.6450590491294861, 0.6380300521850586, 0.25475171208381653, -0.4440041780471802, 0.4102911353111267, -0.21978163719177246, 0.26898446679115295, -1.167394757270813, 0.10160429030656815, 0.456005722284317, -0.24200280010700226, -0.433327853679657, 0.0730103999376297, -0.03581107780337334, -0.06885235756635666, -0.5669496059417725, 0.7027173638343811, -0.4891490936279297, -0.24780692160129547, -0.13236413896083832, -0.2855689525604248, 0.029013101011514664, 0.7146372199058533, -0.09021854400634766, 0.3304736912250519, 0.9329785108566284, -0.5269079804420471, 0.496115118265152, 0.37196698784828186, -0.2120240479707718, 0.45333075523376465, -0.7728258967399597, 0.19811344146728516, -0.020661719143390656, 0.2958219349384308, -1.0043363571166992, -0.2862258851528168, 0.39552605152130127, -0.5565453767776489, 0.6391613483428955, -0.5445260405540466, -0.4612627625465393, -0.4208535850048065, -0.5149060487747192, 0.4378948509693146, 0.715619683265686, -0.7309415340423584, 0.49470409750938416, 0.2440667450428009, 0.3381196856498718, -0.5355740785598755, -0.9793401956558228, -0.35224395990371704, -0.39489930868148804, -0.872361421585083, 0.3679591119289398, 0.021366262808442116, 0.11871197074651718, 0.14482589066028595, -0.19959238171577454, -0.1153806671500206, -0.1649712771177292, 0.4745177626609802, 0.33674678206443787, -0.3912801742553711, -0.3528306186199188, -0.231753408908844, 0.035157736390829086, -0.009190269745886326, -0.30132484436035156, 0.5884475708007812, -0.20889756083488464, -0.1069435179233551, -0.7586454153060913, -0.02316933311522007, 0.5007287263870239, 0.04359259456396103, 0.8999864459037781, 1.1675161123275757, -0.5483055114746094, -0.1390671581029892, -0.40861383080482483, -0.3607385456562042, -0.4757820665836334, 0.37390831112861633, -0.37279489636421204, -0.5655352473258972, 1.0152411460876465, 0.11052048951387405, 0.12413885444402695, 0.6794417500495911, 0.4383438527584076, -0.1194462850689888, 0.6308143138885498, 0.48932787775993347, 0.1417965590953827, 0.6977741718292236, -1.005711555480957, -0.292498379945755, -0.8029817342758179, -0.4623108506202698, -0.28617221117019653, -0.7482936382293701, -0.6936153173446655, -0.32314613461494446, 0.45429596304893494, 0.2510387897491455, -0.3603796660900116, 0.45004570484161377, -0.8331848978996277, 0.13466817140579224, 0.7180120348930359, 0.6501538753509521, -0.4094626009464264, 0.27700260281562805, -0.39107224345207214, 0.06644226610660553, -0.7995002865791321, -0.0968257263302803, 1.1002707481384277, 0.5342106223106384, 0.6223664283752441, -0.21120016276836395, 0.7972247004508972, -0.22515587508678436, 0.3489994406700134, -0.586707353591919, 0.5100436806678772, 0.0027124364860355854, -0.4700259864330292, -0.060407813638448715, -0.4977843165397644, -1.0360177755355835, 0.28547972440719604, -0.32730984687805176, -0.7133756279945374, 0.16918125748634338, 0.1364227682352066, -0.15137536823749542, 0.7518060803413391, -0.8402203917503357, 1.028415560722351, -0.12212351709604263, -0.4940634071826935, 0.1626245528459549, -0.7120633125305176, 0.3268703818321228, 0.33969080448150635, -0.18050260841846466, -0.057348769158124924, 0.2380901724100113, 1.1264255046844482, -0.6577778458595276, 0.8588359355926514, -0.4834747612476349, 0.3308502435684204, 0.5094358921051025, -0.012750530615448952, 0.2251703441143036, -0.14454412460327148, -0.0037500979378819466, 0.3830677568912506, 0.15827849507331848, -0.5793197154998779, -0.5074151754379272, 0.6935473084449768, -1.087707281112671, -0.12550264596939087, -0.37265902757644653, -0.5432760715484619, 0.18334975838661194, 0.05185632035136223, 0.541566014289856, 0.6164634823799133, 0.19261203706264496, 0.2709326446056366, 0.6020822525024414, -0.4712779223918915, 0.39466556906700134, -0.2123270332813263, -0.32187169790267944, -0.6167519688606262, 0.8129717111587524, 0.127421036362648, 0.15273675322532654, -0.006968677509576082, 0.29207029938697815, -0.29745110869407654, -0.5533397793769836, -0.3666813373565674, 0.35671859979629517, -0.7377186417579651, -0.36205193400382996, -0.6059992909431458, -0.4999387264251709, -0.3948078751564026, -0.16932716965675354, -0.5169561505317688, -0.3791014850139618, -0.33411234617233276, 0.23363156616687775, 0.6914087533950806, 0.6062064170837402, -0.0346657894551754, 0.6153931021690369, -0.4902992844581604, 0.18260672688484192, 0.056043840944767, 0.6190288662910461, -0.12459366768598557, -0.938622772693634, -0.2571137547492981, -0.033688534051179886, -0.43297916650772095, -0.7528906464576721, 0.5009316802024841, 0.07243474572896957, 0.5257142782211304, 0.3034766912460327, -0.34220755100250244, 0.7652822136878967, 0.17677360773086548, 0.49132293462753296, 0.38935786485671997, -0.6138256192207336, 0.6307166814804077, -0.10620264708995819, 0.23302292823791504, 0.10843003541231155, 0.3815177381038666, -0.30589520931243896, -0.07961969077587128, -1.0691994428634644, -0.8527624011039734, 0.9770069122314453, 0.28634709119796753, -0.06221863999962807, 0.47977906465530396, 0.6700440049171448, 0.11321858316659927, 0.12193745374679565, -0.8823237419128418, -0.5434350967407227, -0.41444575786590576, -0.38701891899108887, 0.02506718412041664, 0.018419574946165085, -0.13763545453548431, -0.7873960733413696, 0.676253616809845, -0.04266078770160675, 0.7339676022529602, 0.43149256706237793, -0.047702398151159286, -0.16006512939929962, -0.4274013340473175, 0.5304010510444641, 0.29704907536506653, -0.42014288902282715, 0.09818451851606369, 0.1816914826631546, -0.5467962026596069, 0.01545336190611124, 0.1777547299861908, -0.011918074451386929, 0.031263578683137894, 0.5133931636810303, 0.9562555551528931, 0.07166951894760132, 0.056994691491127014, 0.4305209517478943, 0.036331627517938614, -0.48790475726127625, -0.17629845440387726, 0.16658306121826172, 0.011379850097000599, 0.41600319743156433, 0.23833759129047394, 0.29181456565856934, -0.15027542412281036, -0.28720763325691223, 0.2897953689098358, 0.5484250783920288, -0.25743019580841064, -0.35621196031570435, 0.6397559642791748, -0.22293508052825928, -0.06614254415035248, 0.8015060424804688, -0.025897568091750145, -0.5010595917701721, 1.102018117904663, 0.4453366696834564, 0.9294199347496033, -0.028081923723220825, -0.0176115483045578, 0.8471375703811646, 0.2534659206867218, 0.04639851301908493, 0.21896544098854065, 0.10372162610292435, -0.856050431728363, 0.11772484332323074, -0.6692456603050232, -0.01684514433145523, 0.45877689123153687, -0.4547883868217468, 0.36148762702941895, -0.8314259648323059, -0.2993330657482147, 0.1983051598072052, 0.26993077993392944, -0.962402880191803, 0.2842653691768646, 0.04507901519536972, 0.7956673502922058, -0.803641676902771, 0.7204585075378418, 0.9091377854347229, -0.6562572717666626, -1.0323526859283447, -0.22777679562568665, 0.01491187047213316, -0.8620821833610535, 0.4768558442592621, 0.43362632393836975, 0.16966621577739716, -0.03437460958957672, -0.9132190346717834, -0.5010713934898376, 1.3905291557312012, 0.5092288255691528, 0.009102430194616318, 0.35658955574035645, -0.003981478046625853, 0.24803143739700317, -0.5310559868812561, 0.6131898760795593, 0.23304548859596252, 0.37640029191970825, 0.46218693256378174, -0.6997865438461304, 0.20374931395053864, -0.39595454931259155, 0.005232248920947313, 0.20460107922554016, -0.7152830362319946, 0.9843875169754028, -0.3323434591293335, -0.06417974829673767, -0.11539213359355927, 0.717509925365448, 0.3277609646320343, 0.23577889800071716, 0.5284061431884766, 0.9126662015914917, 0.4641149640083313, -0.32278934121131897, 0.9350686073303223, 0.05827166140079498, 0.6567718386650085, 0.5310685038566589, 0.3718201220035553, 0.45350098609924316, 0.4404676556587219, -0.30874764919281006, 0.32738423347473145, 1.1781190633773804, -0.30728888511657715, 0.2496030479669571, 0.1845584213733673, 0.03182639181613922, -0.03598345071077347, 0.19921933114528656, -0.4512920677661896, 0.38132044672966003, 0.17520807683467865, -0.5450776815414429, -0.20743629336357117, -0.04883510246872902, 0.05295851081609726, -0.4904530942440033, -0.15518446266651154, 0.5227538347244263, 0.046665020287036896, -0.3975699245929718, 0.9321969151496887, 0.09730413556098938, 1.0361789464950562, -0.42859476804733276, 0.016165539622306824, -0.35470059514045715, 0.2162300944328308, -0.46198955178260803, -0.9246390461921692, 0.28054699301719666, -0.36579498648643494, 0.11090516299009323, 0.08228608220815659, 0.6557669043540955, -0.5058906078338623, -0.5048558115959167, 0.3182525634765625, 0.32625189423561096, 0.5261179804801941, 0.06177471950650215, -1.2829221487045288, 0.21209238469600677, 0.008257115259766579, -0.6596983075141907, 0.38526368141174316, 0.42795851826667786, 0.2167872190475464, 0.6632987856864929, 0.6436799764633179, -0.06473879516124725, 0.26630401611328125, -0.1700708419084549, 0.8925637602806091, -0.5173324346542358, -0.39686423540115356, -0.7957471609115601, 0.788095235824585, -0.08658289909362793, -0.6759666800498962, 0.4452134668827057, 0.6388473510742188, 1.0043530464172363, -0.0028015216812491417, 0.48941561579704285, -0.27312707901000977, -0.09240718185901642, -0.41736820340156555, 0.7278158664703369, -0.8139773607254028, -0.09646716713905334, -0.25478532910346985, -0.7599896192550659, -0.36175525188446045, 0.7628492116928101, -0.1342136114835739, 0.6015663743019104, 0.4921746850013733, 0.97965008020401, -0.5757116079330444, -0.2910902500152588, 0.18153932690620422, 0.11632119119167328, 0.014123533852398396, 0.3173271119594574, 0.4620271921157837, -0.810446560382843, 0.2225208282470703, -0.7981794476509094, -0.1879626214504242, -0.1901504397392273, -0.6225661635398865, -1.003847599029541, -0.833842396736145, -0.7020134925842285, -0.8143448829650879, -0.3520013689994812, 0.9697297811508179, 1.1927944421768188, -0.8225741386413574, -0.28082895278930664, 0.03992142528295517, 0.11179960519075394, -0.17153245210647583, -0.25544044375419617, 0.5416897535324097, -0.03804026544094086, -0.7162227034568787, -0.3290538191795349, -0.04211176559329033, 0.493429034948349, -0.05179094523191452, -0.3216248154640198, -0.2474215030670166, -0.28663596510887146, 0.20482437312602997, 0.28913894295692444, -0.7164234519004822, -0.07212867587804794, -0.31325963139533997, -0.14597485959529877, 0.4974295198917389, 0.526086688041687, -0.4390638768672943, 0.32510364055633545, 0.4898283779621124, 0.4239464998245239, 1.0086182355880737, -0.34734272956848145, 0.010660329833626747, -0.899837851524353, 0.6794267892837524, -0.08825165033340454, 0.5840821266174316, 0.4956800937652588, -0.3089732229709625, 0.5422711372375488, 0.4398282766342163, -0.35458678007125854, -0.7874664664268494, -0.20503132045269012, -1.186739444732666, -0.12614627182483673, 0.869093656539917, -0.3386234939098358, -0.5187768340110779, 0.4679197371006012, -0.08653008192777634, 0.6926188468933105, -0.1334090381860733, 0.40644198656082153, 0.3671696186065674, -0.1243053749203682, -0.7270513772964478, -0.5257481932640076, 0.3694918751716614, 0.20091064274311066, -0.6900017261505127, -0.5307218432426453, 0.06621243804693222, 0.7857561707496643, 0.17548565566539764, 0.5105565190315247, -0.16141600906848907, 0.052457574754953384, 0.19428212940692902, 0.5885583162307739, -0.33719387650489807, -0.1076836809515953, -0.33179622888565063, 0.05629103258252144, -0.17289046943187714, -0.5723026394844055 ]
MU-NLPC/whisper-small-audio-captioning
MU-NLPC
"2023-05-15T21:48:24Z"
41,545
1
transformers
[ "transformers", "pytorch", "whisper", "en", "dataset:AudioSet", "dataset:AudioCaps", "dataset:Clotho-v2.1", "license:cc-by-nc-4.0", "model-index", "endpoints_compatible", "region:us" ]
null
"2023-05-15T17:48:16Z"
--- datasets: - AudioSet - AudioCaps - Clotho-v2.1 metrics: - SPICE - CIDEr - SPIDEr - METEOR - SacreBLEU model-index: - name: whisper-small-audio-captioning results: - task: type: audio-captioning name: Audio Captioning dataset: type: clotho-v2.1 name: Clotho split: evaluation metrics: - type: SPICE value: 0.1234 - type: CIDEr value: 0.4142 - type: SPIDEr value: 0.2687 - type: METEOR value: 0.3781 - type: SacreBLEU value: 15.76 license: cc-by-nc-4.0 language: - en --- # Model Card for Whisper Audio Captioning A transformer encoder-decoder model for automatic audio captioning. As opposed to speech-to-text, captioning describes the content of audio clips, such as prominent sounds or environmental noises. This task has numerous practical applications, e.g., for providing access to audio information for people with hearing impairments or improving the searchability of audio content. - **Model type:** Whisper encoder-decoder transformer - **Language(s) (NLP):** en - **License:** cc-by-4.0 - **Parent Model:** openai/whisper- - **Resources for more information:** - [GitHub Repo](https://github.com/prompteus/audio-captioning) - [Technical Report](TODO) ## Usage The model expects an audio clip (up to 30s) to the encoder as an input and information about caption style as forced prefix to the decoder. Minimal example: ```python # Load model checkpoint = "MU-NLPC/whisper-small-audio-captioning" model = WhisperForAudioCaptioning.from_pretrained(checkpoint) tokenizer = transformers.WhisperTokenizer.from_pretrained(checkpoint, language="en", task="transcribe") feature_extractor = transformers.WhisperFeatureExtractor.from_pretrained(checkpoint) # Load and preprocess audio input_file = "..." audio, sampling_rate = librosa.load(input_file, sr=feature_extractor.sampling_rate) features = feature_extractor(audio, sampling_rate=sampling_rate, return_tensors="pt").input_features # Prepare caption style style_prefix = "clotho > caption: " style_prefix_tokens = tokenizer("", text_target=style_prefix, return_tensors="pt", add_special_tokens=False).labels # Generate caption model.eval() outputs = model.generate( inputs=features.to(model.device), forced_ac_decoder_ids=style_prefix_tokens, max_length=100, ) print(tokenizer.batch_decode(outputs, skip_special_tokens=True)[0]) ``` Example output: *clotho > caption: Rain is pouring down and thunder is rumbling in the background.* The style prefix influences the style of the caption. Model knows 3 styles: `audioset > keywords: `, `audiocaps > caption: `, and `clotho > caption: `. It was finetuned on Clotho and that is the indended "default" style. WhisperTokenizer must be initialized with `language="en"` and `task="transcribe"`. Our model class `WhisperForAudioCaptioning` can be found in our git repository or here on the HuggingFace Hub in the model repository. The class overrides default Whisper `generate` method to support forcing decoder prefix. ## Training details The model was initialized by original speech-to-text `openai/whisper-small` weights. Then, it was pretrained on a mix of (1) subset of AudioSet with synthetic labels, (2) AudioCaps captioning dataset and (3) Clotho v2.1 captioning dataset. Finally, it was finetuned on Clotho v2.1 to focus the model on the specific style of the captions. For each traning input, the model was informed about the source of the data, so it can mimic the caption style in all 3 styles. During pretraining, the ratio of samples in each batch was approximately 12:3:1 (AudioSet:AudioCaps:Clotho). The pretraining took 19800 steps with batch size 32 and learning rate 2e-5. Finetuning was done on Clotho only, and the model was trained for 1500 steps with batch size 32 and learning rate 4e-6. All layers except *fc1* layers were frozen during finetuning. For more information about the training regime, see the [technical report](TODO). ## Evaluation details Metrics reported in the metadata were computed on Clotho v2.1 test split with captions generated using a beam search with 5 beams. | | whisper-tiny | whisper-small | whisper-large-v2 | |----------------------|--------------|---------------|------------------| | SacreBLEU | 13.77 | 15.76 | 16.50 | | METEOR | 0.3452 | 0.3781 | 0.3782 | | CIDEr | 0.3404 | 0.4142 | 0.4331 | | SPICE | 0.1077 | 0.1234 | 0.1257 | | SPIDEr | 0.2240 | 0.2687 | 0.2794 | ## Limitations The captions generated by the model can be misleading or not truthful, even if they appear convincing. The hallucination occurs especially in domains that were not present in the finetuning data. While the original speech-to-text checkpoints by OpenAI were trained on multilingual data, our training contains only English captions, and therefore is not expected for the model to support other languages. ## Licence The model weights are published under non-commercial license CC BY-NC 4.0 as the model was finetuned on a dataset for non-commercial use. ## Contact If you'd like to chat about this, please get in touch with is via email at kadlcik`<at>`mail.muni.cz or ahajek`<at>`mail.muni.cz.
[ -0.3160819113254547, -0.48293986916542053, 0.10192997753620148, 0.32142454385757446, -0.42311081290245056, -0.07815009355545044, -0.1543944925069809, -0.4848395586013794, 0.09968613088130951, 0.5493841767311096, -0.849410891532898, -0.527274489402771, -0.7264456748962402, 0.10346594452857971, -0.3552819788455963, 1.0816166400909424, -0.0868147537112236, 0.12990261614322662, 0.013657578267157078, -0.2552714943885803, -0.6691465973854065, -0.31264030933380127, -0.6692237257957458, -0.050435520708560944, 0.1051655188202858, 0.3578270375728607, 0.4146907329559326, 0.47663798928260803, 0.12153521180152893, 0.30057698488235474, -0.14143751561641693, 0.229937344789505, -0.38461747765541077, -0.17379796504974365, 0.2798953056335449, -0.6462123990058899, -0.3362340033054352, 0.3203447461128235, 0.6191239356994629, 0.3156031370162964, -0.2777556777000427, 0.2692471146583557, 0.18802635371685028, 0.5058330297470093, -0.4753168821334839, 0.45042818784713745, -0.5383457541465759, -0.013769692741334438, -0.12949271500110626, -0.15257751941680908, -0.28170037269592285, 0.007746447343379259, 0.31444138288497925, -0.9267058372497559, 0.46486377716064453, 0.4817347228527069, 1.2910354137420654, 0.42413565516471863, -0.029496530070900917, -0.42901670932769775, -0.45914506912231445, 0.8420734405517578, -0.8874977231025696, 0.4214951694011688, 0.5700955986976624, 0.11120924353599548, 0.4193872809410095, -0.6869657039642334, -0.810850977897644, -0.18662413954734802, -0.2646476626396179, 0.39196670055389404, -0.18164172768592834, -0.000990484026260674, 0.31652578711509705, 0.3880493938922882, -0.4797762632369995, 0.12865108251571655, -0.6285949349403381, -0.5019027590751648, 0.6248239874839783, 0.03158587962388992, 0.3448319733142853, -0.561956524848938, -0.42914220690727234, -0.31716135144233704, -0.34007540345191956, 0.16250988841056824, 0.46422863006591797, 0.3413294553756714, -0.8083192110061646, 0.42444467544555664, -0.21115636825561523, 0.4818788170814514, 0.07417550683021545, -0.2995154857635498, 0.638105571269989, -0.18842990696430206, -0.1404929906129837, 0.24234622716903687, 1.0596145391464233, 0.49194344878196716, 0.1360301971435547, 0.007124800235033035, -0.32623323798179626, -0.1630696803331375, 0.10882873088121414, -0.719454288482666, -0.0845973864197731, 0.38684317469596863, -0.5487557053565979, -0.5071006417274475, 0.25442978739738464, -0.7537949681282043, -0.1704959124326706, -0.4107592701911926, 0.8267582058906555, -0.45528659224510193, -0.20695286989212036, 0.28632670640945435, -0.37653130292892456, 0.4261529743671417, 0.08614277839660645, -0.8058755993843079, 0.48058757185935974, 0.3305889666080475, 1.084733486175537, -0.10068967193365097, -0.43281587958335876, -0.5146476030349731, 0.08455582708120346, -0.21592192351818085, 0.6121202111244202, -0.042608268558979034, -0.28194311261177063, -0.035282764583826065, 0.32459771633148193, -0.45761170983314514, -0.5356271266937256, 0.6402713060379028, -0.22158251702785492, 0.5169437527656555, 0.054029304534196854, -0.45083510875701904, -0.2219248265028, -0.17536115646362305, -0.7610892057418823, 0.8073033094406128, 0.11611046642065048, -0.7882064580917358, 0.2928568720817566, -0.803894579410553, -0.3973519504070282, -0.11504828929901123, 0.1686200499534607, -0.7200170159339905, 0.025615695863962173, 0.5293375253677368, 0.4738602340221405, -0.13021302223205566, 0.10449182242155075, 0.20178335905075073, -0.4778173863887787, 0.35756564140319824, -0.2994286119937897, 0.7541535496711731, 0.21503975987434387, -0.41882866621017456, 0.25543519854545593, -0.6215855479240417, -0.32730209827423096, 0.5065935850143433, -0.06508708745241165, -0.1225813701748848, -0.12158440053462982, 0.30000630021095276, -0.07468249648809433, 0.06413762271404266, -0.5369182229042053, -0.03864492475986481, -0.721864640712738, 0.906827449798584, 0.5742729306221008, 0.0292573980987072, 0.5196078419685364, -0.6974700093269348, 0.4119001030921936, 0.11578848958015442, 0.19858041405677795, -0.4245787560939789, -0.4908103942871094, -0.9956822395324707, -0.35001394152641296, 0.37511590123176575, 0.6968628764152527, -0.6809341311454773, 0.36396923661231995, -0.16927887499332428, -0.5124749541282654, -0.9703583717346191, -0.20689092576503754, 0.4994557499885559, 0.5720888376235962, 0.5578545331954956, -0.15141580998897552, -0.588175892829895, -0.8371102809906006, 0.10161647200584412, -0.07366053760051727, -0.253061443567276, 0.48530489206314087, 0.5448189377784729, -0.11517039686441422, 0.7700047492980957, -0.6004194617271423, -0.8270313739776611, -0.27429601550102234, 0.10540474951267242, 0.33990392088890076, 0.6639623045921326, 0.47258561849594116, -0.8481351137161255, -0.23067055642604828, -0.2567550241947174, -0.6034733057022095, -0.1642327904701233, -0.27777063846588135, 0.03392839804291725, 0.4044676721096039, 0.5694903135299683, -0.8012566566467285, 0.2516511380672455, 0.6406068205833435, -0.07442212104797363, 0.7374821901321411, -0.05343211814761162, 0.1310703307390213, -1.2587363719940186, 0.16905924677848816, -0.09080082923173904, -0.0344369001686573, -0.526425302028656, -0.03996632248163223, -0.12558405101299286, -0.3124203085899353, -0.5383825898170471, 0.6659888029098511, -0.5137609839439392, 0.19710218906402588, -0.05732820928096771, 0.2666475772857666, 0.17651218175888062, 0.7884945273399353, 0.24850136041641235, 0.7890210151672363, 0.662790834903717, -0.6388516426086426, 0.16056841611862183, 0.6142087578773499, -0.4550715684890747, 0.26252391934394836, -0.9479100108146667, 0.150893896818161, -0.0814393013715744, 0.010926230810582638, -1.0555095672607422, -0.3322310745716095, 0.4452860653400421, -0.7353477478027344, 0.5602076649665833, -0.2905200123786926, -0.5129339694976807, -0.3836909830570221, -0.2631254196166992, 0.19919359683990479, 0.603236973285675, -0.4902022182941437, 0.605492115020752, 0.41929304599761963, -0.25278204679489136, -0.3787664473056793, -0.6409454941749573, -0.23073263466358185, -0.3845783472061157, -0.46426916122436523, 0.5089617371559143, -0.14575067162513733, 0.11257248371839523, -0.30731499195098877, -0.1808238923549652, 0.014832524582743645, -0.13164900243282318, 0.4097488820552826, 0.449226438999176, -0.05298123136162758, -0.004708289168775082, 0.21928894519805908, -0.12812630832195282, 0.07243235409259796, -0.26140114665031433, 0.7663328051567078, -0.24252024292945862, -0.006864560302346945, -0.8298182487487793, 0.18932288885116577, 0.46643128991127014, -0.3987741470336914, 0.6635330319404602, 0.5823342800140381, -0.32450777292251587, -0.13294938206672668, -0.6087502241134644, -0.2808576822280884, -0.50131756067276, 0.4130415618419647, -0.3142071068286896, -0.7176044583320618, 0.725227952003479, 0.2642659842967987, -0.029951944947242737, 0.6559208035469055, 0.19718901813030243, -0.3150772750377655, 0.9154248237609863, 0.48903965950012207, -0.21806152164936066, 0.37218010425567627, -0.7206538915634155, -0.19447140395641327, -0.9532780647277832, -0.41453421115875244, -0.6340866088867188, -0.023793546482920647, -0.45577436685562134, -0.3089463710784912, 0.34259140491485596, 0.15319883823394775, -0.20318014919757843, 0.46227383613586426, -0.725822389125824, 0.12927545607089996, 0.5682187676429749, 0.2385064661502838, 0.1898467242717743, 0.06284182518720627, 0.00028311923961155117, -0.14531686902046204, -0.7850345373153687, -0.3587871789932251, 0.8561856150627136, 0.6393409371376038, 0.5534583926200867, -0.14101609587669373, 0.5625053644180298, 0.202107235789299, -0.00746059138327837, -0.8767759799957275, 0.34664687514305115, -0.10553586483001709, -0.4101108908653259, -0.39012354612350464, -0.2833353579044342, -0.8532758355140686, 0.09345333278179169, -0.22952936589717865, -0.5642924904823303, 0.15701903402805328, -0.0320485420525074, -0.30806764960289, 0.14129625260829926, -0.6701004505157471, 0.8831066489219666, 0.028886809945106506, 0.11827091872692108, 0.041538339108228683, -0.7732957005500793, 0.23987923562526703, 0.08297712355852127, 0.4488096237182617, 0.00976252555847168, -0.07673393934965134, 1.284827470779419, -0.4079138934612274, 1.0035319328308105, -0.26418066024780273, -0.02655935473740101, 0.4629058241844177, -0.13491299748420715, 0.2564031183719635, -0.0869598537683487, 0.24649880826473236, 0.6652748584747314, 0.25512129068374634, -0.1618933230638504, -0.3448535203933716, 0.3234582543373108, -1.016475796699524, -0.42748117446899414, -0.39791712164878845, -0.5002370476722717, -0.059214185923337936, 0.21748822927474976, 0.8584619164466858, 0.6489396095275879, 0.08612055331468582, 0.015342366881668568, 0.7420628666877747, -0.36777162551879883, 0.4939107894897461, 0.6568598747253418, -0.13704754412174225, -0.7620922923088074, 0.977120578289032, 0.21397347748279572, 0.30129000544548035, 0.2706005871295929, 0.36872655153274536, -0.29703569412231445, -0.6440228223800659, -0.6044650077819824, 0.5516050457954407, -0.48389866948127747, -0.2762139141559601, -0.7129173278808594, -0.46454256772994995, -0.45926007628440857, 0.15266580879688263, -0.4051853120326996, -0.21866460144519806, -0.49059760570526123, -0.0065377261489629745, 0.41209691762924194, 0.44330164790153503, 0.16495473682880402, 0.5471881628036499, -0.9096027612686157, 0.4517156779766083, 0.1637275367975235, 0.224446639418602, 0.054623257368803024, -1.0489614009857178, -0.26653140783309937, 0.07764044404029846, -0.21086758375167847, -0.8021233081817627, 0.5599920153617859, 0.26413461565971375, 0.5713769197463989, 0.38072067499160767, 0.1861657053232193, 0.5634411573410034, -0.5771823525428772, 0.931630551815033, 0.16233767569065094, -1.0917702913284302, 0.7917895913124084, -0.4553357660770416, 0.37245282530784607, 0.3447413742542267, 0.4788001477718353, -0.5152257084846497, -0.43046215176582336, -0.7061470746994019, -0.722507894039154, 0.9106636643409729, 0.36107465624809265, 0.2554696798324585, 0.16501592099666595, 0.30676987767219543, 0.07371930778026581, 0.33102351427078247, -0.7015219926834106, -0.25606194138526917, -0.5368973612785339, -0.09340676665306091, -0.1741456389427185, -0.20623870193958282, -0.15561451017856598, -0.3193162977695465, 0.7326164841651917, -0.2892402708530426, 0.5512877702713013, 0.4984922409057617, -0.07818321883678436, 0.0010464327642694116, 0.04085792228579521, 0.8022685647010803, 0.23305052518844604, -0.11307194828987122, -0.3492840528488159, 0.23860137164592743, -0.6484207510948181, -0.2680736184120178, 0.36070379614830017, -0.30396491289138794, 0.14788909256458282, 0.7374842762947083, 1.2681537866592407, 0.3705551326274872, -0.5800020694732666, 0.7314409017562866, 0.03434320166707039, -0.40815332531929016, -0.44778406620025635, -0.10781646519899368, -0.04588001221418381, 0.01134350337088108, 0.47523823380470276, 0.1697385013103485, 0.17372915148735046, -0.3808300793170929, 0.04546133428812027, 0.28820863366127014, -0.5881348848342896, -0.21581722795963287, 1.0246508121490479, 0.1273871660232544, -0.20849409699440002, 0.6042923927307129, 0.08096717298030853, -0.5884586572647095, 0.5906308889389038, 0.5216106176376343, 0.9219396710395813, -0.26722487807273865, 0.1315138339996338, 0.6173781752586365, 0.382436066865921, 0.009938633069396019, 0.20210179686546326, -0.18989768624305725, -0.7808042168617249, -0.24300283193588257, -0.9480392336845398, -0.3058108985424042, 0.1896849274635315, -0.8909563422203064, 0.35583770275115967, -0.27509626746177673, 0.053742654621601105, -0.08531548082828522, -0.03347552940249443, -0.6126285195350647, 0.1980559080839157, 0.046587325632572174, 0.9571240544319153, -0.9391189813613892, 0.6315242648124695, 0.3345698118209839, -0.8161882162094116, -1.0063645839691162, -0.007652991451323032, -0.07817365974187851, -0.807314395904541, 0.31656527519226074, 0.5820559859275818, 0.08912616968154907, 0.12282786518335342, -0.8533087968826294, -0.7295727729797363, 1.212988018989563, 0.07051175087690353, -0.6573482155799866, -0.20906220376491547, 0.11115762591362, 0.35588788986206055, -0.4456043541431427, 0.02492983639240265, 0.441406786441803, 0.38690176606178284, -0.020642464980483055, -1.3355413675308228, 0.05041093751788139, -0.21236063539981842, -0.16589926183223724, -0.20434002578258514, -0.7769945859909058, 0.6987571716308594, -0.34221306443214417, -0.30138862133026123, 0.5268499255180359, 0.6653221249580383, 0.339080274105072, 0.5104413628578186, 0.6717785596847534, 0.4743637442588806, 0.6764219999313354, -0.2591610848903656, 1.1854641437530518, -0.1345810890197754, 0.2836848497390747, 0.9748006463050842, 0.13123588263988495, 0.9299155473709106, 0.31439387798309326, -0.14982862770557404, 0.5020777583122253, 0.4871377944946289, -0.20061029493808746, 0.6309448480606079, -0.04920916631817818, -0.02649223804473877, 0.023374926298856735, -0.2024298459291458, -0.25348421931266785, 0.5346187949180603, 0.2058185189962387, -0.36944282054901123, 0.3971068561077118, 0.5647985339164734, 0.10881535708904266, -0.0020470046438276768, -0.2969687283039093, 1.000345230102539, 0.22674503922462463, -0.4865332245826721, 0.7983192205429077, -0.15689803659915924, 0.9572308659553528, -0.8402611017227173, 0.015483682043850422, 0.042895201593637466, -0.12935274839401245, -0.22423136234283447, -0.6809252500534058, 0.2507385015487671, -0.22539032995700836, -0.2714288532733917, -0.1751663237810135, 0.36673739552497864, -0.4819398522377014, -0.3103627562522888, 0.2417871654033661, 0.2263445258140564, 0.28920403122901917, -0.31114116311073303, -0.6992728114128113, 0.3105773329734802, 0.053664471954107285, -0.21132485568523407, 0.107810840010643, 0.11692005395889282, 0.08495718240737915, 0.6628181338310242, 0.7774915099143982, 0.03840942308306694, -0.01704517938196659, 0.4602607786655426, 0.875973641872406, -0.4673812687397003, -0.6825816035270691, -0.47598955035209656, 0.5930131673812866, -0.0970228984951973, -0.360632985830307, 0.7776898741722107, 0.7061991095542908, 0.8745526671409607, -0.387113481760025, 0.6690230369567871, -0.0281221866607666, 0.5704364776611328, -0.908443033695221, 1.104680061340332, -0.47511160373687744, 0.15787853300571442, -0.48015257716178894, -0.849751889705658, -0.09437159448862076, 0.5919991135597229, -0.08828737586736679, -0.056921668350696564, 0.5747361183166504, 0.9372285008430481, 0.11822932958602905, 0.11354679614305496, 0.1331217885017395, 0.3793444037437439, 0.011205991730093956, 0.3442152440547943, 0.6750711798667908, -0.9847747087478638, 0.6359378695487976, -0.5196330547332764, -0.1924339383840561, 0.20273904502391815, -0.6215550303459167, -0.9274131655693054, -1.0015590190887451, -0.5188450217247009, -0.3917583227157593, -0.07521573454141617, 0.630808413028717, 0.9697332382202148, -0.8459064364433289, -0.1899525225162506, 0.11920381337404251, -0.15463607013225555, -0.3426263630390167, -0.341636598110199, 0.4688802659511566, -0.16724707186222076, -0.902942955493927, 0.40590012073516846, -0.19937394559383392, 0.30004453659057617, -0.1674802303314209, -0.34672850370407104, 0.014732824638485909, 0.08758345991373062, 0.46274247765541077, 0.12278542667627335, -0.789675235748291, -0.2253008484840393, 0.003731535980477929, 0.08146240562200546, 0.04609811305999756, 0.4314855933189392, -0.7253520488739014, 0.33342334628105164, 0.31036853790283203, 0.0602509006857872, 0.7900322079658508, -0.09776799380779266, 0.2652682662010193, -0.7714294195175171, 0.3264015316963196, 0.05664679408073425, 0.3644188344478607, 0.3750566840171814, -0.26511454582214355, 0.3109082877635956, 0.5020689964294434, -0.5166122317314148, -0.8511509895324707, -0.22686807811260223, -1.3089696168899536, -0.2729783356189728, 1.124243974685669, 0.08863315731287003, -0.22634242475032806, 0.0600283145904541, -0.660709798336029, 0.3546435832977295, -0.3941587805747986, 0.5184131264686584, 0.5435847043991089, 0.27910950779914856, -0.46775558590888977, -0.7426048517227173, 0.6538472771644592, 0.11329083889722824, -0.47438740730285645, -0.02103215456008911, 0.28557923436164856, 0.5729427337646484, 0.3904743194580078, 0.576381266117096, -0.25941190123558044, 0.27619317173957825, 0.12309764325618744, 0.16694577038288116, -0.36975234746932983, -0.32137465476989746, -0.4677346646785736, 0.10374383628368378, -0.31753024458885193, -0.5211418271064758 ]
timm/dm_nfnet_f0.dm_in1k
timm
"2023-03-24T00:47:41Z"
41,455
1
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "arxiv:2102.06171", "arxiv:2101.08692", "license:apache-2.0", "region:us" ]
image-classification
"2023-03-24T00:46:50Z"
--- tags: - image-classification - timm library_tag: timm license: apache-2.0 datasets: - imagenet-1k --- # Model card for dm_nfnet_f0.dm_in1k A NFNet (Normalization Free Network) image classification model. Trained on ImageNet-1k by paper authors. Normalization Free Networks are (pre-activation) ResNet-like models without any normalization layers. Instead of Batch Normalization or alternatives, they use Scaled Weight Standardization and specifically placed scalar gains in residual path and at non-linearities based on signal propagation analysis. ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 71.5 - GMACs: 7.2 - Activations (M): 10.2 - Image size: train = 192 x 192, test = 256 x 256 - **Papers:** - High-Performance Large-Scale Image Recognition Without Normalization: https://arxiv.org/abs/2102.06171 - Characterizing signal propagation to close the performance gap in unnormalized ResNets: https://arxiv.org/abs/2101.08692 - **Original:** https://github.com/deepmind/deepmind-research/tree/master/nfnets - **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('dm_nfnet_f0.dm_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( 'dm_nfnet_f0.dm_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, 64, 96, 96]) # torch.Size([1, 256, 48, 48]) # torch.Size([1, 512, 24, 24]) # torch.Size([1, 1536, 12, 12]) # torch.Size([1, 3072, 6, 6]) 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( 'dm_nfnet_f0.dm_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, 3072, 6, 6) 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{brock2021high, author={Andrew Brock and Soham De and Samuel L. Smith and Karen Simonyan}, title={High-Performance Large-Scale Image Recognition Without Normalization}, journal={arXiv preprint arXiv:2102.06171}, year={2021} } ``` ```bibtex @inproceedings{brock2021characterizing, author={Andrew Brock and Soham De and Samuel L. Smith}, title={Characterizing signal propagation to close the performance gap in unnormalized ResNets}, booktitle={9th International Conference on Learning Representations, {ICLR}}, 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}} } ```
[ -0.5115472674369812, -0.498233437538147, -0.04474300146102905, 0.12995915114879608, -0.3830454647541046, -0.33208051323890686, -0.26073411107063293, -0.4118092656135559, 0.26983192563056946, 0.4531414806842804, -0.4809671640396118, -0.6878455281257629, -0.7861800789833069, 0.003088293131440878, -0.16065317392349243, 0.9478321671485901, -0.06942306458950043, -0.04844793304800987, -0.2316211760044098, -0.48363831639289856, -0.1281997412443161, -0.2709369957447052, -0.8020381927490234, -0.4896791875362396, 0.4060139060020447, 0.1927265226840973, 0.5588154792785645, 0.6943315863609314, 0.6527529954910278, 0.46538108587265015, -0.18761520087718964, 0.08287311345338821, -0.26343682408332825, -0.24693898856639862, 0.45230352878570557, -0.5739313960075378, -0.5065423250198364, 0.31496408581733704, 0.8793652653694153, 0.5505041480064392, 0.09513809531927109, 0.36559969186782837, 0.08330899477005005, 0.6523262858390808, -0.2035902887582779, 0.2019900530576706, -0.4490416347980499, 0.18740995228290558, -0.06054886430501938, 0.05291614308953285, -0.24588081240653992, -0.45295360684394836, 0.16183528304100037, -0.5889726281166077, 0.4016749858856201, -0.0994400829076767, 1.2653827667236328, 0.26264500617980957, -0.1805531084537506, -0.047404151409864426, -0.336087703704834, 0.7789099216461182, -0.8941000699996948, 0.2608179748058319, 0.2898484468460083, 0.2963033616542816, -0.24891811609268188, -0.9517791867256165, -0.6097100973129272, -0.2338440716266632, -0.1527792513370514, -0.08166391402482986, -0.24767987430095673, 0.15604427456855774, 0.37572208046913147, 0.39444270730018616, -0.3434615135192871, 0.17169536650180817, -0.5589755773544312, -0.1337376981973648, 0.658893346786499, -0.02040029503405094, 0.20961333811283112, -0.1526184231042862, -0.5149189829826355, -0.3478606343269348, -0.331487238407135, 0.3214811086654663, 0.38130679726600647, 0.2596057951450348, -0.6090180277824402, 0.29068201780319214, 0.013194218277931213, 0.6973246335983276, 0.12230779975652695, -0.4015357494354248, 0.6210855841636658, 0.09091482311487198, -0.5065268278121948, -0.10882924497127533, 1.1099023818969727, 0.34403491020202637, 0.2154640555381775, -0.0181160606443882, -0.2143184393644333, -0.3009178340435028, -0.15569911897182465, -1.1923937797546387, -0.37107011675834656, 0.2787386476993561, -0.6898093819618225, -0.47567203640937805, 0.19032499194145203, -0.6574566960334778, -0.18419316411018372, -0.09458145499229431, 0.6056085824966431, -0.4306347966194153, -0.47281068563461304, 0.1411638855934143, -0.1774553805589676, 0.264638215303421, 0.18408876657485962, -0.5529069304466248, 0.21205353736877441, 0.23897255957126617, 1.0760849714279175, 0.1355414241552353, -0.3685372769832611, -0.17319472134113312, -0.4176558256149292, -0.3250480890274048, 0.3959802985191345, -0.10874900966882706, -0.11166737973690033, -0.39497360587120056, 0.3584177792072296, -0.17345337569713593, -0.8110103607177734, 0.3122622072696686, -0.3625091016292572, 0.16714204847812653, 0.004872113931924105, -0.3381213843822479, -0.6035405993461609, 0.2977951169013977, -0.5530411601066589, 1.1895534992218018, 0.3018872141838074, -0.8756920695304871, 0.36841899156570435, -0.6744624972343445, -0.13890594244003296, -0.29925182461738586, -0.039674971252679825, -1.0240980386734009, -0.06989358365535736, 0.19571585953235626, 0.79274582862854, -0.27721577882766724, 0.05339646339416504, -0.5904141068458557, -0.41123872995376587, 0.365302175283432, -0.18024927377700806, 1.044627070426941, 0.1586846262216568, -0.47179195284843445, 0.2694415748119354, -0.7754573822021484, 0.08882368355989456, 0.5207898020744324, -0.34784403443336487, -0.016285501420497894, -0.5845149159431458, 0.1099168211221695, 0.36921536922454834, 0.07044710218906403, -0.7247317433357239, 0.32267794013023376, -0.2519378364086151, 0.5467972159385681, 0.6507431864738464, -0.14245374500751495, 0.31778550148010254, -0.39062410593032837, 0.24436837434768677, 0.38987666368484497, 0.30730822682380676, -0.017853379249572754, -0.5857242345809937, -0.7623631358146667, -0.6254076957702637, 0.3786965310573578, 0.2595292925834656, -0.5138105750083923, 0.4815424680709839, -0.2630363404750824, -0.7601787447929382, -0.4822947680950165, 0.09485099464654922, 0.4075610041618347, 0.6499617099761963, 0.37414631247520447, -0.37340062856674194, -0.5016668438911438, -0.8592257499694824, 0.15491414070129395, 0.12570495903491974, 0.0008530924678780138, 0.32121577858924866, 0.6597017049789429, -0.19024521112442017, 0.6614694595336914, -0.4205184876918793, -0.3338605463504791, -0.1953759342432022, 0.07894402742385864, 0.5723052620887756, 0.7752624154090881, 0.7858606576919556, -0.6417725086212158, -0.502385139465332, -0.1847025603055954, -0.9651298522949219, 0.2384433001279831, -0.01210821233689785, -0.1351138800382614, 0.24253734946250916, 0.18244121968746185, -0.5594368577003479, 0.6187069416046143, 0.27444738149642944, -0.2702781558036804, 0.3965257406234741, -0.27809205651283264, 0.22099092602729797, -1.08226478099823, 0.13664723932743073, 0.37793657183647156, -0.05788357928395271, -0.5582043528556824, -0.039271872490644455, 0.019317761063575745, -0.031133852899074554, -0.4097481369972229, 0.6087399125099182, -0.6293799877166748, -0.16929909586906433, -0.16160674393177032, -0.2272104024887085, 0.040621835738420486, 0.7605567574501038, -0.10851547122001648, 0.36789172887802124, 0.8783055543899536, -0.5607331395149231, 0.4901377260684967, 0.3219411373138428, -0.22137285768985748, 0.39527496695518494, -0.6792759895324707, 0.2061956524848938, -0.15667222440242767, 0.26707372069358826, -1.1031392812728882, -0.21514800190925598, 0.3610185384750366, -0.6167472004890442, 0.6258387565612793, -0.5538718700408936, -0.4667060077190399, -0.5127482414245605, -0.3989417850971222, 0.45348143577575684, 0.7227694988250732, -0.7555232644081116, 0.3107348084449768, 0.22883258759975433, 0.4608652889728546, -0.5276750326156616, -0.8402910828590393, -0.2691620886325836, -0.42001304030418396, -0.7510984539985657, 0.3427462875843048, 0.12033923715353012, 0.16518224775791168, 0.10738655179738998, -0.1034880131483078, -0.2257632166147232, -0.014397434890270233, 0.5849883556365967, 0.3758367598056793, -0.36533787846565247, -0.03821781277656555, -0.3210003077983856, -0.03882569819688797, 0.07334386557340622, -0.32494232058525085, 0.49337875843048096, -0.17038892209529877, -0.13993869721889496, -0.9461909532546997, -0.055223993957042694, 0.5502929091453552, -0.15030069649219513, 0.8310653567314148, 1.0480610132217407, -0.5788798332214355, -0.027144944295287132, -0.441981703042984, -0.32514771819114685, -0.5082239508628845, 0.4053425192832947, -0.31268343329429626, -0.5392166376113892, 0.8212814927101135, -0.014914951287209988, 0.08939841389656067, 0.6642866134643555, 0.22542768716812134, -0.05203349515795708, 0.7408348321914673, 0.6284403204917908, 0.09120212495326996, 0.6552025675773621, -0.9931316375732422, -0.09576746821403503, -0.8504471182823181, -0.459547758102417, -0.2841668725013733, -0.7543171644210815, -0.6369714736938477, -0.42276719212532043, 0.41109517216682434, 0.31993603706359863, -0.40729382634162903, 0.37261149287223816, -0.8928059935569763, 0.12509867548942566, 0.5963812470436096, 0.49709808826446533, -0.22018133103847504, 0.32737311720848083, -0.24187524616718292, 0.04770325496792793, -0.7452012896537781, -0.26674214005470276, 1.234415888786316, 0.5072930455207825, 0.6820900440216064, -0.21049223840236664, 0.7363737225532532, -0.24369385838508606, 0.37384703755378723, -0.6503152251243591, 0.6331453323364258, -0.15603852272033691, -0.41551318764686584, -0.23355665802955627, -0.5589531064033508, -1.1586631536483765, 0.08042126148939133, -0.37314537167549133, -0.7328638434410095, 0.19845862686634064, 0.1561817228794098, -0.25987130403518677, 0.8915994763374329, -0.7036343216896057, 0.863738477230072, -0.047722410410642624, -0.2885487973690033, 0.08839163929224014, -0.6219491362571716, 0.28949201107025146, 0.2832976281642914, -0.2068164199590683, -0.20999158918857574, 0.18082505464553833, 1.1059592962265015, -0.4251537024974823, 0.87326979637146, -0.5849578976631165, 0.4053055942058563, 0.49599266052246094, -0.17233596742153168, 0.26838064193725586, -0.09641478955745697, -0.14847567677497864, 0.4876060485839844, 0.05280274152755737, -0.4717773199081421, -0.5540943741798401, 0.6200910806655884, -1.0126093626022339, -0.26685938239097595, -0.2692439556121826, -0.526378870010376, 0.1623944342136383, 0.17558488249778748, 0.46995630860328674, 0.7178291082382202, 0.2419811189174652, 0.32610970735549927, 0.6567473411560059, -0.3834730386734009, 0.4534074068069458, -0.08807824552059174, -0.17424644529819489, -0.5258825421333313, 0.8101174831390381, 0.3253738284111023, 0.18031887710094452, 0.15260308980941772, 0.18538010120391846, -0.40772610902786255, -0.649562656879425, -0.3367087244987488, 0.4197080433368683, -0.6951162815093994, -0.4779520034790039, -0.5852197408676147, -0.5181266069412231, -0.44604772329330444, 0.04097828269004822, -0.47938013076782227, -0.35277292132377625, -0.39855867624282837, 0.16464237868785858, 0.734671950340271, 0.6673153042793274, -0.08997270464897156, 0.5652405619621277, -0.523305356502533, 0.10293864458799362, 0.0982082411646843, 0.6343494653701782, 0.055416613817214966, -0.8159080147743225, -0.24191296100616455, 0.0044020130299031734, -0.45310667157173157, -0.7448956370353699, 0.41236987709999084, 0.1803964376449585, 0.5976184606552124, 0.41504010558128357, -0.1402144730091095, 0.7079379558563232, 0.0734720528125763, 0.45670169591903687, 0.36713236570358276, -0.5382394194602966, 0.5248420238494873, -0.0445830263197422, 0.15085381269454956, 0.040802210569381714, 0.44571393728256226, -0.30165061354637146, 0.07130955159664154, -0.890363335609436, -0.673193097114563, 0.8218926787376404, 0.11643392592668533, -0.02280302904546261, 0.29743263125419617, 0.7785173058509827, -0.024739578366279602, 0.08331845700740814, -0.6924772262573242, -0.4863481819629669, -0.32629793882369995, -0.2153124064207077, -0.08722303807735443, -0.05144152045249939, -0.11256975680589676, -0.6996584534645081, 0.5967215895652771, -0.08785320818424225, 0.8452848196029663, 0.4490810036659241, -0.0052404566667973995, -0.06828014552593231, -0.38157984614372253, 0.43472835421562195, 0.25058457255363464, -0.36709827184677124, 0.040448788553476334, 0.14122149348258972, -0.5779797434806824, 0.16642768681049347, 0.1842155009508133, 0.022629840299487114, 0.015405144542455673, 0.5013706088066101, 0.9763299226760864, -0.007065839599817991, 0.09558454155921936, 0.47911593317985535, -0.06285630166530609, -0.5671029686927795, -0.1809624880552292, 0.09537512809038162, -0.026035720482468605, 0.40447190403938293, 0.2902885377407074, 0.2809472680091858, -0.15335312485694885, -0.16929343342781067, 0.24974343180656433, 0.5861387252807617, -0.3273739218711853, -0.4155782461166382, 0.6982473134994507, -0.1713450849056244, -0.07131534069776535, 0.9317464232444763, -0.18278416991233826, -0.36445942521095276, 1.1189122200012207, 0.4443587064743042, 0.9517664909362793, -0.03520031273365021, 0.07579851150512695, 0.8911094069480896, 0.2107410430908203, 0.09253218024969101, 0.19400282204151154, 0.08841060847043991, -0.7747759222984314, 0.03817484527826309, -0.6373689770698547, 0.11952846497297287, 0.45282095670700073, -0.516627311706543, 0.2668777108192444, -0.8856136798858643, -0.4745793342590332, 0.18122431635856628, 0.3333964943885803, -0.9544275403022766, 0.24344989657402039, 0.024913707748055458, 0.946509063243866, -0.8011282682418823, 0.8421967029571533, 0.8581663370132446, -0.4782763421535492, -1.096116304397583, -0.0989532470703125, -0.05044788867235184, -0.8657493591308594, 0.6493407487869263, 0.5469090342521667, 0.15991228818893433, 0.04570728540420532, -0.685482382774353, -0.735093355178833, 1.459696888923645, 0.5550026893615723, -0.036420129239559174, 0.2493981271982193, 0.04635535553097725, 0.2717876136302948, -0.45974302291870117, 0.4492485821247101, 0.17287136614322662, 0.3603263199329376, 0.39961349964141846, -0.7329879403114319, 0.2960231900215149, -0.26896190643310547, 0.12921516597270966, 0.23624585568904877, -0.7760633826255798, 1.0232844352722168, -0.460938960313797, -0.21236400306224823, -0.023833241313695908, 0.6368475556373596, 0.14062854647636414, 0.15976455807685852, 0.5967922806739807, 0.812395453453064, 0.5920423269271851, -0.28671330213546753, 0.7494023442268372, -0.0809723287820816, 0.5881034135818481, 0.5890088081359863, 0.3901573121547699, 0.4857023358345032, 0.4253672659397125, -0.27662646770477295, 0.33055201172828674, 1.0191389322280884, -0.3229300379753113, 0.3292965292930603, 0.3398337662220001, -0.013585124164819717, -0.08110655844211578, 0.13928987085819244, -0.47002458572387695, 0.5517110228538513, 0.0802663117647171, -0.5343273878097534, -0.28755828738212585, 0.027595996856689453, 0.01902511529624462, -0.3028014600276947, -0.2717064917087555, 0.4858025312423706, -0.020216839388012886, -0.3378376364707947, 1.00554621219635, 0.11381494253873825, 0.988348662853241, -0.42882582545280457, -0.045243360102176666, -0.3235889673233032, 0.23999692499637604, -0.49518948793411255, -0.7526447772979736, 0.3965083360671997, -0.3413204848766327, -0.05913287028670311, 0.10284743458032608, 0.6103155016899109, -0.3052772581577301, -0.46669530868530273, 0.29281124472618103, 0.18876343965530396, 0.5037384629249573, -0.014901883900165558, -1.097344994544983, 0.1265069991350174, -0.010187271982431412, -0.579614520072937, 0.41748008131980896, 0.44313377141952515, 0.0816313773393631, 0.763198971748352, 0.7060544490814209, -0.10888253897428513, 0.22854137420654297, -0.2679007053375244, 0.8946058750152588, -0.4822995364665985, -0.26474106311798096, -0.7946291565895081, 0.5888091325759888, -0.08978086709976196, -0.5671337842941284, 0.5349651575088501, 0.5505291223526001, 0.9076371788978577, -0.019571004435420036, 0.3648851811885834, -0.17257936298847198, -0.06399659067392349, -0.3406502604484558, 0.7882164716720581, -0.7389991879463196, -0.053014662116765976, -0.1844087541103363, -0.6976617574691772, -0.4305901527404785, 0.7301170229911804, -0.2862977981567383, 0.37323692440986633, 0.3034919500350952, 1.0939608812332153, -0.3856981694698334, -0.25947368144989014, 0.290787011384964, 0.14131468534469604, 0.10875432193279266, 0.46706804633140564, 0.4069727063179016, -0.7721402645111084, 0.37254130840301514, -0.6783381104469299, -0.32326140999794006, -0.09855455905199051, -0.7496902346611023, -0.9952216744422913, -0.840741753578186, -0.6172081828117371, -0.5929394364356995, -0.28435268998146057, 0.9369704723358154, 1.1243082284927368, -0.6073177456855774, -0.2179396003484726, 0.04872669652104378, 0.19849151372909546, -0.3182881772518158, -0.21798326075077057, 0.5740817785263062, -0.14800597727298737, -0.6824108958244324, -0.27173349261283875, 0.019586855545639992, 0.4051782786846161, -0.04581854119896889, -0.22907105088233948, -0.2420717030763626, -0.20635110139846802, 0.21404768526554108, 0.2794803977012634, -0.6094549298286438, -0.14010655879974365, -0.24952445924282074, -0.08315622061491013, 0.476689875125885, 0.3727719783782959, -0.5736703872680664, 0.328301340341568, 0.3921985924243927, 0.4141347110271454, 0.7567277550697327, -0.4380621910095215, -0.06535342335700989, -0.7733163833618164, 0.5534336566925049, -0.10477633774280548, 0.4046928286552429, 0.4245103597640991, -0.43553590774536133, 0.46917399764060974, 0.5012396574020386, -0.4852176308631897, -0.8952279686927795, -0.07006756216287613, -0.9891318678855896, -0.06525003910064697, 0.8455086946487427, -0.49478429555892944, -0.49760177731513977, 0.45140475034713745, 0.051487576216459274, 0.6874969601631165, -0.0881919413805008, 0.49060356616973877, 0.23390893638134003, -0.2080657184123993, -0.5158519148826599, -0.5490338802337646, 0.49391651153564453, 0.026340868324041367, -0.5529020428657532, -0.4181443452835083, 0.004143879748880863, 0.8472644090652466, 0.15650470554828644, 0.6118475794792175, -0.21652257442474365, 0.007670532446354628, 0.09787346422672272, 0.4448997974395752, -0.5209530591964722, -0.14977458119392395, -0.48681309819221497, 0.03992161527276039, -0.07461351156234741, -0.7284278273582458 ]
facebook/wmt19-ru-en
facebook
"2023-03-16T20:03:21Z"
41,444
14
transformers
[ "transformers", "pytorch", "safetensors", "fsmt", "text2text-generation", "translation", "wmt19", "facebook", "ru", "en", "dataset:wmt19", "arxiv:1907.06616", "license:apache-2.0", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
translation
"2022-03-02T23:29:05Z"
--- language: - ru - en tags: - translation - wmt19 - facebook license: apache-2.0 datasets: - wmt19 metrics: - bleu thumbnail: https://huggingface.co/front/thumbnails/facebook.png --- # FSMT ## Model description This is a ported version of [fairseq wmt19 transformer](https://github.com/pytorch/fairseq/blob/master/examples/wmt19/README.md) for ru-en. For more details, please see, [Facebook FAIR's WMT19 News Translation Task Submission](https://arxiv.org/abs/1907.06616). The abbreviation FSMT stands for FairSeqMachineTranslation All four models are available: * [wmt19-en-ru](https://huggingface.co/facebook/wmt19-en-ru) * [wmt19-ru-en](https://huggingface.co/facebook/wmt19-ru-en) * [wmt19-en-de](https://huggingface.co/facebook/wmt19-en-de) * [wmt19-de-en](https://huggingface.co/facebook/wmt19-de-en) ## Intended uses & limitations #### How to use ```python from transformers import FSMTForConditionalGeneration, FSMTTokenizer mname = "facebook/wmt19-ru-en" tokenizer = FSMTTokenizer.from_pretrained(mname) model = FSMTForConditionalGeneration.from_pretrained(mname) input = "Машинное обучение - это здорово, не так ли?" input_ids = tokenizer.encode(input, return_tensors="pt") outputs = model.generate(input_ids) decoded = tokenizer.decode(outputs[0], skip_special_tokens=True) print(decoded) # Machine learning is great, isn't it? ``` #### Limitations and bias - The original (and this ported model) doesn't seem to handle well inputs with repeated sub-phrases, [content gets truncated](https://discuss.huggingface.co/t/issues-with-translating-inputs-containing-repeated-phrases/981) ## Training data Pretrained weights were left identical to the original model released by fairseq. For more details, please, see the [paper](https://arxiv.org/abs/1907.06616). ## Eval results pair | fairseq | transformers -------|---------|---------- ru-en | [41.3](http://matrix.statmt.org/matrix/output/1907?run_id=6937) | 39.20 The score is slightly below the score reported by `fairseq`, since `transformers`` currently doesn't support: - model ensemble, therefore the best performing checkpoint was ported (``model4.pt``). - re-ranking The score was calculated using this code: ```bash git clone https://github.com/huggingface/transformers cd transformers export PAIR=ru-en export DATA_DIR=data/$PAIR export SAVE_DIR=data/$PAIR export BS=8 export NUM_BEAMS=15 mkdir -p $DATA_DIR sacrebleu -t wmt19 -l $PAIR --echo src > $DATA_DIR/val.source sacrebleu -t wmt19 -l $PAIR --echo ref > $DATA_DIR/val.target echo $PAIR PYTHONPATH="src:examples/seq2seq" python examples/seq2seq/run_eval.py facebook/wmt19-$PAIR $DATA_DIR/val.source $SAVE_DIR/test_translations.txt --reference_path $DATA_DIR/val.target --score_path $SAVE_DIR/test_bleu.json --bs $BS --task translation --num_beams $NUM_BEAMS ``` note: fairseq reports using a beam of 50, so you should get a slightly higher score if re-run with `--num_beams 50`. ## Data Sources - [training, etc.](http://www.statmt.org/wmt19/) - [test set](http://matrix.statmt.org/test_sets/newstest2019.tgz?1556572561) ### BibTeX entry and citation info ```bibtex @inproceedings{..., year={2020}, title={Facebook FAIR's WMT19 News Translation Task Submission}, author={Ng, Nathan and Yee, Kyra and Baevski, Alexei and Ott, Myle and Auli, Michael and Edunov, Sergey}, booktitle={Proc. of WMT}, } ``` ## TODO - port model ensemble (fairseq uses 4 model checkpoints)
[ -0.3783525824546814, -0.6081163287162781, 0.3449447751045227, 0.37435415387153625, -0.276078999042511, -0.0068039740435779095, -0.11743802577257156, -0.336183100938797, 0.06717393547296524, 0.13643789291381836, -0.9007441997528076, -0.3216964602470398, -0.7544803023338318, 0.17358164489269257, -0.5068648457527161, 0.9579029679298401, -0.26113277673721313, 0.3695504665374756, -0.023118900135159492, -0.26494133472442627, -0.20819509029388428, -0.12355757504701614, -0.4936656355857849, -0.4073803722858429, 0.14164897799491882, 0.11696185171604156, 0.6017543077468872, 0.2839941680431366, 0.599565863609314, 0.4535734951496124, -0.1975928246974945, -0.03715892508625984, -0.4552832543849945, -0.2126772254705429, -0.26584288477897644, -0.3720639944076538, -0.3898720145225525, 0.012771686539053917, 0.6515673995018005, 0.5968189239501953, -0.05428602173924446, 0.6075430512428284, 0.10165649652481079, 0.4912855923175812, -0.11030066013336182, 0.1592392474412918, -0.641880214214325, 0.19333694875240326, -0.21021658182144165, -0.06376886367797852, -0.4733619689941406, -0.27197128534317017, -0.19163475930690765, -0.4488919675350189, 0.12848296761512756, 0.08601770550012589, 1.4345604181289673, 0.23913224041461945, -0.6230671405792236, 0.33610156178474426, -0.5540683269500732, 1.0918018817901611, -0.7569528818130493, 0.768391489982605, 0.05486085265874863, 0.4104057252407074, -0.20830893516540527, -1.0877885818481445, -0.37745755910873413, 0.11946365237236023, -0.03932206332683563, 0.3054445683956146, -0.5003265738487244, -0.22851328551769257, 0.45510268211364746, 0.41269755363464355, -0.6494152545928955, -0.20920997858047485, -0.6888138651847839, -0.541695773601532, 0.6558701992034912, 0.1551104485988617, 0.08497681468725204, -0.3200172185897827, -0.5450926423072815, -0.2878440022468567, -0.2901304364204407, 0.20689097046852112, -0.0029421900399029255, 0.3082849085330963, -0.13006655871868134, 0.6151193380355835, -0.5870296955108643, 0.558804452419281, 0.3641524910926819, -0.1545133888721466, 0.8726149797439575, -0.5354754328727722, -0.0932222306728363, -0.33709007501602173, 1.127705693244934, 0.47191309928894043, -0.02317912131547928, -0.10420288890600204, -0.45180651545524597, -0.29199597239494324, 0.09967560321092606, -1.1164356470108032, 0.2459084391593933, 0.09184630215167999, -0.703342854976654, -0.23089158535003662, 0.2795540392398834, -0.6962525844573975, 0.23196503520011902, -0.24573658406734467, 0.9361839294433594, -0.5223713517189026, -0.030241264030337334, -0.004774454515427351, -0.31080153584480286, 0.32490360736846924, 0.19659952819347382, -0.3099821209907532, 0.1001770943403244, 0.31069639325141907, 0.971886157989502, -0.10105536878108978, -0.4246714413166046, -0.655705988407135, -0.17632639408111572, -0.20729048550128937, 0.43036413192749023, -0.09335881471633911, -0.19298817217350006, -0.16244545578956604, 0.6547078490257263, -0.23692859709262848, -0.335919052362442, 0.6902437210083008, -0.48679253458976746, 0.5807413458824158, -0.3060867488384247, -0.3553670346736908, -0.18687300384044647, 0.058026377111673355, -0.4215128719806671, 1.1365236043930054, 0.46920621395111084, -0.7762701511383057, 0.16004882752895355, -0.5105378031730652, -0.52012038230896, -0.13777121901512146, 0.056117430329322815, -0.4283958077430725, 0.13996176421642303, 0.11793284118175507, 0.4081094563007355, -0.18994484841823578, 0.5060524344444275, -0.20846909284591675, -0.5947344303131104, 0.314598947763443, -0.4683200716972351, 0.960434079170227, 0.5052788257598877, -0.5007248520851135, 0.2584601938724518, -0.6849557757377625, 0.0031097675673663616, 0.2786566913127899, -0.38215571641921997, 0.2359679639339447, -0.21686358749866486, 0.16356021165847778, 0.6416669487953186, 0.437686026096344, -0.5848925113677979, -0.10514158755540848, -0.5445496439933777, 0.4700452387332916, 0.8339549899101257, -0.11275021731853485, 0.4091780483722687, -0.680481493473053, 0.49591347575187683, 0.14709308743476868, 0.284991055727005, 0.12180496007204056, -0.6739576458930969, -0.6846552491188049, -0.07179449498653412, 0.2705867886543274, 0.6101529598236084, -0.9866787791252136, 0.46124589443206787, -0.4638265371322632, -0.8255821466445923, -0.505074143409729, -0.22982396185398102, 0.3175695836544037, 0.34459033608436584, 0.6382992267608643, -0.32682931423187256, -0.6476007699966431, -0.9849777817726135, -0.4950712323188782, 0.02127271331846714, 0.0036127532366663218, 0.023770734667778015, 0.6149761080741882, -0.50929856300354, 0.7008194923400879, -0.36473438143730164, -0.23936747014522552, -0.255086213350296, -0.09205012023448944, 0.5665556788444519, 0.7132861614227295, 0.6388935446739197, -0.6242388486862183, -0.4583536684513092, -0.10810933262109756, -0.5386233329772949, -0.0984254851937294, -0.0006228400743566453, -0.4120550751686096, 0.2343183308839798, 0.3686982989311218, -0.7991741299629211, 0.36578071117401123, 0.46492913365364075, -0.5217422842979431, 0.48019611835479736, 0.2539524734020233, 0.5464156270027161, -1.488243818283081, 0.15449251234531403, -0.023782633244991302, -0.5688003897666931, -0.3915645480155945, -0.07699283957481384, 0.07478578388690948, -0.06986001878976822, -0.6805931925773621, 0.7030150890350342, -0.20412327349185944, 0.04762692749500275, -0.09156306833028793, -0.05342169106006622, 0.1118326261639595, 0.6068668365478516, -0.35768967866897583, 0.5293224453926086, 0.4542660117149353, -0.48159903287887573, 0.29387664794921875, 0.5326084494590759, -0.3548148274421692, 0.37171366810798645, -0.556194007396698, -0.1477438509464264, 0.05164710804820061, 0.3627389669418335, -0.9262394309043884, -0.1804027557373047, 0.3862494230270386, -0.7482026815414429, 0.32380247116088867, -0.12649264931678772, -0.5068815350532532, -0.6467472314834595, -0.2785964608192444, 0.2606358230113983, 0.7711852192878723, -0.4859427809715271, 0.5344739556312561, 0.16199064254760742, 0.06991948932409286, -0.6231690645217896, -1.0479587316513062, -0.3101975619792938, -0.3178228735923767, -0.7279515266418457, 0.6048763990402222, -0.11251042783260345, 0.06595131009817123, -0.01856469176709652, -0.39471203088760376, 0.04687246307730675, 0.029148874804377556, 0.22157058119773865, 0.1764436662197113, -0.18408074975013733, -0.036743637174367905, 0.31557127833366394, -0.2111307978630066, 0.02961474098265171, -0.44419926404953003, 0.7470927834510803, -0.4165596663951874, -0.23660017549991608, -0.7631264925003052, 0.07567599415779114, 0.54644376039505, -0.31246697902679443, 0.8707166910171509, 1.2378215789794922, -0.47836852073669434, 0.13476064801216125, -0.41443121433258057, -0.3990877866744995, -0.5555420517921448, 0.6320432424545288, -0.5172581076622009, -0.9669257998466492, 0.5772503614425659, -0.014055746607482433, 0.1546849012374878, 0.9609127044677734, 0.7016550302505493, 0.026007624343037605, 1.223968505859375, 0.18366648256778717, 0.06918935477733612, 0.7225541472434998, -0.33729735016822815, 0.08484378457069397, -0.5579770803451538, -0.01867802068591118, -0.5372171401977539, -0.5213826894760132, -0.7730005383491516, -0.5910824537277222, 0.14503352344036102, 0.0332571417093277, -0.5537329912185669, 0.599609911441803, -0.47675806283950806, 0.04238283261656761, 0.5447659492492676, 0.05977174639701843, 0.2667319178581238, -0.029053233563899994, -0.16485579311847687, -0.1963229775428772, -0.5826234817504883, -0.3145354390144348, 1.0257604122161865, 0.33794334530830383, 0.5278575420379639, 0.048037488013505936, 0.8272234797477722, -0.01354699581861496, 0.2121073603630066, -0.6511462926864624, 0.6676605939865112, -0.027610275894403458, -0.7376621961593628, -0.12839165329933167, -0.8770670890808105, -0.9633535742759705, 0.4381534457206726, -0.11714470386505127, -0.8720825910568237, 0.08430217951536179, -0.16104963421821594, -0.07812663167715073, 0.22866560518741608, -0.5164244174957275, 1.1774040460586548, -0.10600099712610245, -0.2620152533054352, -0.1763121336698532, -0.7058060169219971, 0.4073883891105652, -0.12628084421157837, 0.5260213613510132, -0.21406692266464233, 0.27547580003738403, 1.0251065492630005, -0.427715539932251, 0.5627932548522949, -0.27293282747268677, 0.17309381067752838, 0.3071221709251404, 0.02710186131298542, 0.5868754386901855, 0.0024443950969725847, -0.22623755037784576, 0.2797979414463043, 0.45337265729904175, -0.4211481511592865, -0.20285294950008392, 0.7544416189193726, -0.8116505742073059, -0.5232284069061279, -0.49212324619293213, -0.5799106359481812, -0.15952669084072113, 0.5050434470176697, 0.6194563508033752, 0.5003711581230164, -0.13757166266441345, 0.3941475749015808, 0.2565215229988098, -0.18111231923103333, 0.47231000661849976, 0.38698089122772217, -0.5282528400421143, -0.4367903172969818, 0.9456693530082703, 0.20842362940311432, 0.29636314511299133, 0.3044504225254059, 0.22601139545440674, -0.3903660774230957, -0.3402835428714752, -0.5410292744636536, 0.2714834213256836, -0.7216078639030457, -0.5237753987312317, -0.7742703557014465, -0.25954943895339966, -0.6043592095375061, 0.14260262250900269, -0.5904865860939026, -0.8149934411048889, -0.10722284764051437, -0.1656678467988968, 0.4366080164909363, 0.22996561229228973, -0.24222300946712494, 0.2161402404308319, -0.9483649134635925, 0.23903191089630127, -0.021803587675094604, 0.2570793330669403, -0.16226503252983093, -1.0333977937698364, -0.3881378173828125, 0.3052542507648468, -0.7047873139381409, -1.0257147550582886, 0.3504455089569092, 0.0895884782075882, 0.7476128339767456, 0.17702479660511017, 0.23297899961471558, 0.6447758078575134, -0.4686826169490814, 0.802535355091095, 0.17367279529571533, -1.1090799570083618, 0.4652926027774811, -0.3467077612876892, 0.3436499238014221, 0.6233708262443542, 0.3246813714504242, -0.5823781490325928, -0.6030757427215576, -0.8509682416915894, -0.8793547749519348, 1.0897011756896973, 0.4451448917388916, 0.22209478914737701, 0.0907977968454361, 0.06024089828133583, -0.008712206967175007, 0.23620258271694183, -0.9813117980957031, -0.26049384474754333, -0.4122779667377472, -0.4487318992614746, 0.014549488201737404, 0.137247234582901, -0.16382023692131042, -0.48531895875930786, 1.0600706338882446, -0.05988532677292824, 0.5075219869613647, 0.21445851027965546, -0.21656468510627747, -0.24970565736293793, 0.21049879491329193, 0.2881098687648773, 0.5130510330200195, -0.10822127759456635, -0.07494936138391495, 0.46188923716545105, -0.2462439388036728, 0.032995615154504776, 0.49951171875, -0.20752377808094025, 0.20043250918388367, 0.21380260586738586, 0.8403019309043884, 0.17984169721603394, -0.6174852252006531, 0.7874062061309814, -0.04988284781575203, -0.39001625776290894, -0.17275695502758026, -0.06519870460033417, 0.1543027013540268, 0.6280150413513184, 0.43216651678085327, 0.3176906406879425, 0.23245762288570404, -0.40607190132141113, 0.429852157831192, 0.31300175189971924, -0.7693560719490051, -0.39985960721969604, 0.9232218861579895, 0.041984643787145615, -0.19924506545066833, 0.46706563234329224, -0.5386822819709778, -0.5731267333030701, 0.5268011093139648, 0.5546913146972656, 0.7268473505973816, -0.20333512127399445, 0.21464833617210388, 0.8214747905731201, 0.4348764717578888, -0.3338782787322998, 0.3826509416103363, 0.12213907390832901, -0.6415107250213623, -0.4936486780643463, -0.9127692580223083, 0.1056746318936348, -0.06719426065683365, -0.8663094639778137, 0.4747505784034729, -0.0026068214792758226, -0.37674447894096375, -0.3233877718448639, -0.03501550853252411, -0.8467422723770142, 0.17323839664459229, -0.1314893364906311, 0.848085880279541, -0.8365068435668945, 0.7402240037918091, 0.8241552710533142, -0.46677058935165405, -0.8585425615310669, -0.049388278275728226, 0.03020617552101612, -0.5999014377593994, 0.269619345664978, 0.4363902807235718, 0.2847816050052643, 0.2393001914024353, -0.41750800609588623, -1.1238913536071777, 1.3418433666229248, 0.25680842995643616, -0.5055534243583679, 0.1255359798669815, 0.07065096497535706, 0.4270436763763428, -0.01613772101700306, 0.30040958523750305, 0.3848924934864044, 0.6158868670463562, 0.10093868523836136, -1.2031075954437256, 0.4100801348686218, -0.3287937045097351, -0.12555114924907684, 0.2236754447221756, -0.9193751215934753, 0.9054879546165466, -0.09226518869400024, -0.25797122716903687, 0.27894794940948486, 0.8374503254890442, 0.47523948550224304, 0.4390888512134552, 0.502212405204773, 0.4551534056663513, 0.5494869351387024, -0.4141722023487091, 0.8028364181518555, -0.19842500984668732, 0.8688528537750244, 0.7098769545555115, 0.1434149295091629, 0.6642102003097534, 0.5507333874702454, -0.44957655668258667, 0.39549604058265686, 0.6653003692626953, -0.2311621606349945, 0.45669785141944885, 0.13140429556369781, 0.2961801588535309, -0.2890393137931824, 0.06700292974710464, -0.6651641726493835, 0.39869511127471924, 0.0009068991057574749, -0.3000061810016632, -0.21242566406726837, 0.2213170975446701, 0.10921682417392731, -0.14078083634376526, -0.06979834288358688, 0.39103278517723083, 0.31205418705940247, -0.6134077310562134, 0.6299591660499573, 0.3251693546772003, 0.7485998272895813, -0.5351454019546509, 0.3124443292617798, -0.2556290626525879, 0.30556002259254456, -0.17304961383342743, -0.6109426617622375, 0.5594887733459473, -0.08016537129878998, -0.057268694043159485, -0.3993707001209259, 0.5445762872695923, -0.3725247085094452, -0.7235390543937683, 0.34173357486724854, 0.5986318588256836, 0.18368567526340485, -0.13744346797466278, -0.899972140789032, 0.10406505316495895, 0.33310365676879883, -0.6598999500274658, 0.38403260707855225, 0.5235387682914734, -0.11420395225286484, 0.41886672377586365, 0.5571684241294861, -0.42647451162338257, 0.11467795819044113, 0.0650840550661087, 0.8003649711608887, -0.7711843252182007, -0.330308198928833, -0.6863311529159546, 0.7574820518493652, 0.016024867072701454, -0.3344907760620117, 0.7548922896385193, 0.7945278286933899, 0.930670976638794, -0.1583242118358612, 0.5169275999069214, -0.3422834277153015, 0.4653879702091217, -0.3985847532749176, 0.7873724699020386, -1.0197027921676636, -0.07439909130334854, -0.4488207995891571, -0.9646353721618652, 0.07851889729499817, 0.6557376384735107, -0.10580483824014664, 0.23976199328899384, 0.7393795251846313, 0.809260368347168, -0.13074061274528503, -0.0817636027932167, 0.17887996137142181, 0.45791980624198914, 0.34002548456192017, 0.7037788033485413, 0.9117573499679565, -1.028046727180481, 0.9147065877914429, -0.4748397469520569, -0.18324168026447296, -0.23203185200691223, -0.4877961277961731, -0.7591898441314697, -0.7528712749481201, -0.40544241666793823, -0.7249292731285095, -0.30531176924705505, 0.8819060921669006, 0.5109713673591614, -0.7588048577308655, -0.058474861085414886, 0.07386098057031631, 0.021883603185415268, -0.4840105175971985, -0.30368390679359436, 0.24257215857505798, -0.29113131761550903, -1.0579564571380615, 0.45938876271247864, -0.14030440151691437, 0.07142733782529831, 0.22134436666965485, -0.19275230169296265, -0.23311468958854675, -0.01877540722489357, 0.4717028737068176, -0.1537124365568161, -0.5813794732093811, -0.3461166024208069, 0.27598461508750916, -0.23979109525680542, -0.020193610340356827, 0.1774151623249054, -0.5234411954879761, 0.07936637103557587, 0.7531582713127136, 0.41729146242141724, 0.8248205184936523, -0.017064955085515976, 0.41677889227867126, -0.5728398561477661, 0.3133627772331238, 0.0975225642323494, 0.6331594586372375, 0.1408400982618332, -0.07546289265155792, 0.5255461931228638, 0.5936617851257324, -0.5661991238594055, -0.9929465055465698, 0.0914253517985344, -1.2382051944732666, -0.3093850612640381, 1.2337443828582764, 0.08907648921012878, -0.2103145867586136, 0.24705521762371063, -0.21543565392494202, 0.5695679783821106, -0.33864396810531616, 0.5195341110229492, 0.6367893815040588, 0.1477188616991043, 0.10745665431022644, -0.685927152633667, 0.23965512216091156, 0.5010511875152588, -0.5093755125999451, -0.46959438920021057, 0.27166464924812317, 0.4218769073486328, 0.19230197370052338, 0.6439045071601868, -0.38043755292892456, 0.3139413297176361, -0.19088587164878845, 0.1064276471734047, 0.04124627634882927, 0.07343069463968277, -0.10462357103824615, -0.12392326444387436, -0.10665038973093033, -0.34976357221603394 ]
impira/layoutlm-document-qa
impira
"2023-03-18T00:54:24Z"
41,423
609
transformers
[ "transformers", "pytorch", "tf", "safetensors", "layoutlm", "document-question-answering", "pdf", "en", "license:mit", "endpoints_compatible", "has_space", "region:us" ]
document-question-answering
"2022-08-07T21:07:19Z"
--- language: en license: mit pipeline_tag: document-question-answering tags: - layoutlm - document-question-answering - pdf widget: - text: "What is the invoice number?" src: "https://huggingface.co/spaces/impira/docquery/resolve/2359223c1837a7587402bda0f2643382a6eefeab/invoice.png" - text: "What is the purchase amount?" src: "https://huggingface.co/spaces/impira/docquery/resolve/2359223c1837a7587402bda0f2643382a6eefeab/contract.jpeg" --- # LayoutLM for Visual Question Answering This is a fine-tuned version of the multi-modal [LayoutLM](https://aka.ms/layoutlm) model for the task of question answering on documents. It has been fine-tuned using both the [SQuAD2.0](https://huggingface.co/datasets/squad_v2) and [DocVQA](https://www.docvqa.org/) datasets. ## Getting started with the model To run these examples, you must have [PIL](https://pillow.readthedocs.io/en/stable/installation.html), [pytesseract](https://pypi.org/project/pytesseract/), and [PyTorch](https://pytorch.org/get-started/locally/) installed in addition to [transformers](https://huggingface.co/docs/transformers/index). ```python from transformers import pipeline nlp = pipeline( "document-question-answering", model="impira/layoutlm-document-qa", ) nlp( "https://templates.invoicehome.com/invoice-template-us-neat-750px.png", "What is the invoice number?" ) # {'score': 0.9943977, 'answer': 'us-001', 'start': 15, 'end': 15} nlp( "https://miro.medium.com/max/787/1*iECQRIiOGTmEFLdWkVIH2g.jpeg", "What is the purchase amount?" ) # {'score': 0.9912159, 'answer': '$1,000,000,000', 'start': 97, 'end': 97} nlp( "https://www.accountingcoach.com/wp-content/uploads/2013/10/income-statement-example@2x.png", "What are the 2020 net sales?" ) # {'score': 0.59147286, 'answer': '$ 3,750', 'start': 19, 'end': 20} ``` **NOTE**: This model and pipeline was recently landed in transformers via [PR #18407](https://github.com/huggingface/transformers/pull/18407) and [PR #18414](https://github.com/huggingface/transformers/pull/18414), so you'll need to use a recent version of transformers, for example: ```bash pip install git+https://github.com/huggingface/transformers.git@2ef774211733f0acf8d3415f9284c49ef219e991 ``` ## About us This model was created by the team at [Impira](https://www.impira.com/).
[ -0.35005396604537964, -0.8424862027168274, 0.3309015929698944, 0.324126273393631, -0.08483526855707169, 0.07316982001066208, 0.33687514066696167, -0.2238805741071701, 0.1990397572517395, 0.6875272393226624, -0.8530032634735107, -0.3092913329601288, -0.3594754934310913, -0.17279835045337677, -0.24600158631801605, 1.12042236328125, -0.08875606209039688, -0.023975400254130363, -0.5910925269126892, -0.1029917523264885, -0.32327982783317566, -0.272428959608078, -0.5932340025901794, -0.17737387120723724, 0.22753404080867767, 0.2846476435661316, 0.5998486280441284, 0.24788083136081696, 0.6101148724555969, 0.3260616958141327, -0.17648053169250488, 0.14188231527805328, -0.186110258102417, 0.2894147038459778, 0.05651884898543358, -0.3842129707336426, -0.5609212517738342, 0.07913064956665039, 0.44728001952171326, 0.5505830645561218, -0.20835629105567932, 0.560917317867279, -0.15480828285217285, 0.5896443128585815, -0.3422371745109558, 0.27240991592407227, -0.3598225712776184, -0.11346728354692459, 0.3013549745082855, -0.009577992372214794, -0.25054463744163513, -0.31719446182250977, 0.28641408681869507, -0.7136024832725525, 0.1340063065290451, 0.18306556344032288, 1.27138352394104, 0.43928787112236023, -0.30978527665138245, -0.3236789405345917, -0.2893633544445038, 0.6849055886268616, -0.6980166435241699, 0.28779295086860657, 0.29220321774482727, 0.31236332654953003, 0.10977571457624435, -1.2038172483444214, -0.4950895607471466, -0.0962899848818779, -0.15591813623905182, 0.629041850566864, -0.36512163281440735, -0.23862752318382263, 0.5193611979484558, 0.300287127494812, -0.9237384796142578, -0.2922554314136505, -0.6897796988487244, -0.31560295820236206, 0.5772653222084045, 0.30462682247161865, 0.33704379200935364, -0.550785481929779, -0.5998029112815857, -0.2632792294025421, -0.27113187313079834, 0.40400540828704834, 0.3705746829509735, 0.052653755992650986, -0.5896987318992615, 0.8586087822914124, -0.045830510556697845, 0.7068519592285156, 0.010020982474088669, -0.101389579474926, 0.26517021656036377, -0.23082967102527618, -0.3571479618549347, -0.2922537624835968, 0.7026470303535461, 0.5149775147438049, 0.12976373732089996, 0.19215768575668335, -0.2383260726928711, -0.0708112046122551, 0.38918864727020264, -0.8466758728027344, -0.2557883560657501, 0.585513710975647, -0.5188047885894775, -0.33308789134025574, 0.10516361892223358, -0.7257879376411438, -0.21004754304885864, -0.225883349776268, 0.5702503323554993, -0.5423330664634705, -0.21327517926692963, 0.13061490654945374, -0.39250001311302185, 0.588256299495697, 0.5574930906295776, -0.5230411291122437, 0.26726415753364563, 0.5523064732551575, 0.8178279995918274, 0.22697781026363373, -0.1203252524137497, -0.7540975213050842, -0.13414616882801056, -0.12904520332813263, 0.948428213596344, -0.19116850197315216, -0.28259536623954773, 0.07087108492851257, 0.10810574889183044, -0.2873801290988922, -0.4451272189617157, 0.41767245531082153, -0.5709144473075867, 0.8464944362640381, -0.026537936180830002, -0.7652744054794312, -0.11787975579500198, 0.4050959646701813, -0.5821754932403564, 0.9800285696983337, 0.6456484198570251, -0.9300755858421326, 0.006163771729916334, -0.8482034802436829, -0.20161737501621246, 0.22814108431339264, 0.13247717916965485, -0.6675321459770203, -0.13788537681102753, 0.056986261159181595, 0.10992798209190369, -0.2402188628911972, 0.04356931149959564, -0.26591598987579346, -0.08547376841306686, 0.25004327297210693, -0.19169239699840546, 1.2924838066101074, 0.3296642601490021, -0.10235100239515305, 0.2805309593677521, -0.6878450512886047, 0.1386151760816574, 0.22738443315029144, -0.3660414516925812, 0.22619201242923737, -0.3813245892524719, 0.41990116238594055, 0.33864057064056396, 0.4412151575088501, -0.5451358556747437, 0.38461539149284363, -0.33929991722106934, 0.4551595449447632, 0.6047996282577515, -0.006060774903744459, 0.4720182418823242, -0.4504888653755188, 0.976952314376831, -0.1417400985956192, 0.1933838278055191, -0.2952060401439667, -0.829010546207428, -0.6313713192939758, -0.35260286927223206, 0.12496931105852127, 0.7099664807319641, -0.8387728333473206, 0.1819356083869934, 0.10234685242176056, -0.5863971710205078, -0.42711779475212097, -0.12437741458415985, 0.24320873618125916, 0.9344728589057922, 0.4082534909248352, -0.05302394554018974, -0.5254707932472229, -0.9559080004692078, -0.10072512924671173, -0.3530879318714142, -0.3103335201740265, 0.25700199604034424, 0.7099237442016602, 0.0767304003238678, 1.0318650007247925, -0.8603456020355225, -0.17598956823349, -0.2720242440700531, 0.16442006826400757, 0.43361857533454895, 0.4798585772514343, 0.5787672400474548, -0.909423291683197, -0.504296064376831, -0.30258700251579285, -0.6830312013626099, -0.1277833878993988, -0.11088507622480392, -0.0997147336602211, 0.23060816526412964, 0.4065139889717102, -0.882059633731842, 0.4798848032951355, 0.4744110107421875, -0.6902560591697693, 0.5693871974945068, -0.37373772263526917, -0.12059514224529266, -1.4520516395568848, 0.051398277282714844, 0.25882425904273987, -0.3063206970691681, -0.5786523222923279, 0.32806774973869324, 0.3287982940673828, -0.30168065428733826, -0.6308729648590088, 0.8378177881240845, -0.22193847596645355, 0.0532069094479084, 0.05491149425506592, -0.011525687761604786, 0.37151527404785156, 0.5895141363143921, -0.09263905882835388, 0.8622075915336609, 0.45235708355903625, -0.36016663908958435, 0.4695275127887726, 0.5476533770561218, -0.3624174892902374, 0.6723780035972595, -0.9788722991943359, 0.07094507664442062, -0.26684072613716125, 0.29778537154197693, -1.252902865409851, -0.3241279423236847, 0.5129974484443665, -0.5765769481658936, 0.2878384292125702, -0.3422463536262512, -0.4150610864162445, -0.4835365414619446, -0.3002586364746094, 0.12980635464191437, 0.6985849142074585, -0.3180476427078247, 0.8358714580535889, 0.33563846349716187, -0.20291714370250702, -0.40547436475753784, -0.6659202575683594, -0.14391575753688812, -0.3928823471069336, -1.065307855606079, 0.30837270617485046, -0.30350688099861145, -0.27635231614112854, -0.17940476536750793, -0.08391857892274857, -0.21546675264835358, -0.027115685865283012, 0.04457084834575653, 0.4930421710014343, -0.2682158946990967, 0.12177001684904099, -0.07809965312480927, -0.18403850495815277, 0.1875561773777008, -0.4050648510456085, 0.7150020599365234, -0.3943627178668976, -0.277532696723938, -0.2699488401412964, 0.3667464256286621, 0.7810067534446716, -0.5773410797119141, 0.5999307036399841, 0.6679167151451111, -0.42345359921455383, 0.11354690045118332, -0.5086545348167419, 0.06475234776735306, -0.45888450741767883, 0.36767205595970154, -0.3151606619358063, -0.6245467662811279, 0.7787933349609375, 0.2351561039686203, 0.11630063503980637, 0.7721251845359802, 0.6333192586898804, -0.43427687883377075, 0.9524433612823486, 0.43256932497024536, 0.2531167268753052, 0.44071874022483826, -0.5657491683959961, 0.19002237915992737, -0.8356966376304626, -0.49285098910331726, -0.6122108101844788, -0.1481238752603531, -0.5549200177192688, -0.49787279963493347, 0.6658253073692322, 0.24020017683506012, -0.4095836877822876, 0.3926011323928833, -0.644832193851471, 0.10903502255678177, 0.7001758813858032, 0.021107124164700508, 0.014628889970481396, -0.049045585095882416, -0.08322195708751678, 0.0194279495626688, -0.6008695363998413, -0.5238844752311707, 0.8304926156997681, 0.37379246950149536, 0.7096205353736877, 0.250165194272995, 0.5312710404396057, -0.0058661033399403095, 0.1738319844007492, -0.7561378479003906, 0.34171900153160095, 0.09138251096010208, -0.6041096448898315, -0.3112947642803192, -0.335176944732666, -0.9339561462402344, 0.19428664445877075, 0.00434274785220623, -0.8488579392433167, 0.10296180099248886, 0.028432561084628105, -0.35591572523117065, 0.2083592563867569, -0.976542055606842, 1.1383323669433594, -0.27217698097229004, -0.40392667055130005, 0.19116000831127167, -0.7185327410697937, 0.16602040827274323, 0.18585768342018127, 0.11894624680280685, -0.07889753580093384, -0.07165896147489548, 0.7482964992523193, -0.6146663427352905, 0.6581991910934448, -0.22881074249744415, -0.17219801247119904, 0.39154252409935, -0.04763815179467201, 0.4626334011554718, 0.3168230354785919, -0.09370426833629608, -0.20655256509780884, 0.40893736481666565, -0.5155767798423767, -0.794924795627594, 0.4634983241558075, -0.571961522102356, -0.4722783863544464, -0.40184667706489563, -0.8141591548919678, 0.005018431227654219, 0.20996694266796112, 0.3553585708141327, 0.6354961395263672, 0.12657302618026733, 0.22982558608055115, 0.6815678477287292, -0.40555858612060547, 0.39053094387054443, 0.39059898257255554, -0.4083867371082306, -0.46729356050491333, 0.7932803630828857, 0.01707630231976509, 0.23287977278232574, 0.5774550437927246, 0.31682226061820984, -0.6789378523826599, -0.08360050618648529, -0.6969580054283142, 0.1970118135213852, -0.7057538628578186, -0.40916121006011963, -0.7425739169120789, -0.38840168714523315, -0.6298878192901611, 0.0011110163759440184, -0.1396140158176422, -0.6312260031700134, -0.354958713054657, 0.015236428938806057, 0.6805914044380188, 0.6254399418830872, 0.20736967027187347, 0.0916479155421257, -0.706834077835083, 0.5212380886077881, 0.4726317226886749, 0.4207393527030945, -0.24067406356334686, -0.6389753818511963, -0.07523994147777557, 0.2283814549446106, -0.57997065782547, -1.0204987525939941, 0.43129774928092957, -0.31392937898635864, 0.4036743938922882, 0.08222990483045578, 0.11290054768323898, 0.585963785648346, -0.19151729345321655, 0.9009917974472046, 0.19916358590126038, -0.8498305678367615, 0.45426636934280396, -0.5317012071609497, 0.529578685760498, 0.2806464731693268, 0.2089698165655136, -0.7161074876785278, -0.41147682070732117, -0.9113552570343018, -0.9260658025741577, 0.8113554120063782, 0.4860679507255554, 0.256679892539978, 0.14155791699886322, 0.07281380146741867, -0.1623818427324295, 0.3900686502456665, -0.47667261958122253, -0.35366442799568176, -0.5442930459976196, -0.23260827362537384, 0.2628028690814972, -0.11320625990629196, 0.022936342284083366, -0.5649723410606384, 0.6464813351631165, -0.25625237822532654, 0.3038204312324524, 0.32442596554756165, -0.10219407081604004, -0.03199649974703789, 0.060840487480163574, 0.7653270959854126, 0.8123519420623779, -0.5418257117271423, -0.3512294590473175, 0.03708086907863617, -0.35588300228118896, -0.2798409163951874, 0.38378047943115234, -0.3166656494140625, 0.04987305402755737, 0.27537477016448975, 0.7996280193328857, -0.07204560190439224, -0.6860595941543579, 0.6094159483909607, -0.14162807166576385, -0.49897366762161255, -0.6310487985610962, -0.3212050497531891, 0.4390897750854492, 0.3737606704235077, 0.33137810230255127, 0.15846675634384155, 0.029534829780459404, -0.4871026873588562, 0.23312407732009888, 0.4721701443195343, -0.5805099010467529, 0.03915033116936684, 0.8738966584205627, -0.026689069345593452, -0.6730623841285706, 0.8105871081352234, -0.06854448467493057, -0.5990553498268127, 1.0201104879379272, 0.3431747555732727, 0.8656138777732849, 0.18180543184280396, 0.5895921587944031, 0.3698858916759491, 0.3065784275531769, 0.28486368060112, 0.5805709362030029, 0.09113454818725586, -0.5559516549110413, -0.21755057573318481, -0.6881317496299744, -0.47396889328956604, 0.15193432569503784, -0.7304721474647522, 0.40109384059906006, -0.434510737657547, 0.1712077409029007, 0.0022810278460383415, 0.0017602257430553436, -0.9268190264701843, 0.3686422109603882, 0.0390593558549881, 1.0891350507736206, -0.5045955181121826, 0.47278115153312683, 1.0476394891738892, -0.9195011258125305, -1.0318553447723389, -0.15778540074825287, -0.06155950203537941, -0.8638622164726257, 0.4831352233886719, 0.04820971190929413, 0.1671251356601715, 0.0006082095205783844, -0.820280134677887, -0.8603546619415283, 0.9785407781600952, 0.2895793616771698, -0.03576748073101044, -0.11941082775592804, -0.022624710574746132, 0.5879283547401428, -0.3932054340839386, 0.7417698502540588, 0.2598775327205658, 0.5161389708518982, 0.1649256944656372, -0.727522611618042, 0.004274582490324974, -0.5498681664466858, -0.18508750200271606, 0.02954842895269394, -0.7796396613121033, 1.0564868450164795, -0.10163664817810059, 0.17572522163391113, 0.4472483694553375, 0.5245007872581482, 0.4207104444503784, 0.3804882764816284, 0.5527321100234985, 0.5945699214935303, 0.832939088344574, -0.24752618372440338, 1.3275178670883179, -0.2870948910713196, 0.7858723998069763, 1.0069228410720825, -0.07201704382896423, 0.6235799789428711, 0.5503509044647217, -0.32131579518318176, 0.6122817993164062, 0.6879143118858337, -0.24643872678279877, 0.15761436522006989, 0.2858133018016815, 0.1899649053812027, -0.342540442943573, 0.009097149595618248, -0.40369558334350586, 0.37165114283561707, 0.13192719221115112, -0.22625090181827545, -0.2673017978668213, -0.21536622941493988, -0.13081137835979462, -0.03370244801044464, -0.013892433606088161, 0.6991034150123596, -0.01895335502922535, -0.5524751543998718, 0.4333067834377289, -0.12843121588230133, 0.479960173368454, -0.7799994945526123, -0.19215917587280273, -0.4087510108947754, -0.040540579706430435, -0.17128610610961914, -0.9631032347679138, 0.1725153774023056, -0.06303143501281738, -0.35178059339523315, -0.5074829459190369, 0.5194463729858398, -0.37231990694999695, -0.9375091195106506, 0.03333970531821251, 0.6628482341766357, 0.04940175637602806, -0.10363418608903885, -0.9275187849998474, -0.25802627205848694, 0.09229645878076553, -0.29101791977882385, 0.12081217020750046, 0.16639746725559235, -0.027400849387049675, 0.8302282691001892, 0.5548624396324158, -0.31270620226860046, 0.05152326822280884, 0.20703500509262085, 0.8644853234291077, -0.471472829580307, -0.6425307393074036, -0.403998464345932, 1.1399531364440918, -0.28719931840896606, -0.5644304156303406, 0.7255063652992249, 0.8527500629425049, 0.8412986993789673, -0.337508887052536, 0.5731720328330994, -0.15683801472187042, 0.5575117468833923, -0.49405089020729065, 0.8922813534736633, -1.0795464515686035, 0.10530326515436172, -0.6081671118736267, -0.9661147594451904, -0.20043787360191345, 0.6436528563499451, -0.20132960379123688, 0.03622908890247345, 0.7685441374778748, 0.7842933535575867, -0.09855126589536667, 0.06210750713944435, 0.14201337099075317, 0.13335441052913666, 0.31525686383247375, 0.2528316080570221, 0.9226469397544861, -0.7140200138092041, 0.794593095779419, -0.4702684283256531, 0.019131803885102272, 0.050581857562065125, -0.6321259140968323, -0.6216151714324951, -0.6763694882392883, -0.5292789936065674, -0.738368034362793, -0.4653450846672058, 0.8514286279678345, 0.6447027325630188, -0.6889927983283997, -0.28671276569366455, 0.04071298986673355, 0.27871984243392944, -0.21552211046218872, -0.36243635416030884, 0.4363920986652374, -0.20024533569812775, -0.845566987991333, 0.04380287602543831, 0.2291530966758728, 0.12026214599609375, -0.0680963397026062, 0.06827773153781891, -0.3841570019721985, -0.016820557415485382, 0.524793267250061, 0.20290011167526245, -0.7142558693885803, -0.25266554951667786, 0.34035441279411316, 0.05803177133202553, 0.20178188383579254, 0.7071032524108887, -0.616230309009552, 0.3589175045490265, 0.7980195879936218, 0.45220252871513367, 0.7374880313873291, 0.14690780639648438, 0.49746236205101013, -0.5630940794944763, 0.11513198167085648, 0.25460803508758545, 0.6133090853691101, 0.37253138422966003, -0.35619595646858215, 0.4320780038833618, 0.18127143383026123, -0.40716513991355896, -0.6137494444847107, 0.2694110572338104, -1.1339107751846313, -0.3067825138568878, 0.9157071709632874, 0.030535107478499413, -0.2822154760360718, -0.0715530589222908, -0.5767144560813904, 0.19603334367275238, -0.49469688534736633, 0.48614346981048584, 0.5919549465179443, -0.09257402271032333, -0.3214470148086548, -0.3195582330226898, 0.24803686141967773, 0.5182235836982727, -0.7966441512107849, -0.2956804931163788, 0.46771571040153503, 0.3303133547306061, 0.33941850066185, 0.49239346385002136, -0.0064114658161997795, 0.3814118206501007, 0.0204926747828722, -0.09146006405353546, -0.09992759674787521, -0.014107903465628624, -0.29581257700920105, 0.25652822852134705, -0.2932737171649933, -0.30048149824142456 ]
ku-nlp/deberta-v2-base-japanese
ku-nlp
"2023-05-12T14:13:03Z"
41,274
23
transformers
[ "transformers", "pytorch", "safetensors", "deberta-v2", "fill-mask", "deberta", "ja", "dataset:wikipedia", "dataset:cc100", "dataset:oscar", "license:cc-by-sa-4.0", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
fill-mask
"2023-01-05T08:04:14Z"
--- language: ja license: cc-by-sa-4.0 library_name: transformers tags: - deberta - deberta-v2 - fill-mask datasets: - wikipedia - cc100 - oscar metrics: - accuracy mask_token: "[MASK]" widget: - text: "京都 大学 で 自然 言語 処理 を [MASK] する 。" --- # Model Card for Japanese DeBERTa V2 base ## Model description This is a Japanese DeBERTa V2 base model pre-trained on Japanese Wikipedia, the Japanese portion of CC-100, and the Japanese portion of OSCAR. ## How to use You can use this model for masked language modeling as follows: ```python from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained('ku-nlp/deberta-v2-base-japanese') model = AutoModelForMaskedLM.from_pretrained('ku-nlp/deberta-v2-base-japanese') sentence = '京都 大学 で 自然 言語 処理 を [MASK] する 。' # input should be segmented into words by Juman++ in advance encoding = tokenizer(sentence, return_tensors='pt') ... ``` You can also fine-tune this model on downstream tasks. ## Tokenization The input text should be segmented into words by [Juman++](https://github.com/ku-nlp/jumanpp) in advance. [Juman++ 2.0.0-rc3](https://github.com/ku-nlp/jumanpp/releases/tag/v2.0.0-rc3) was used for pre-training. Each word is tokenized into subwords by [sentencepiece](https://github.com/google/sentencepiece). ## Training data We used the following corpora for pre-training: - Japanese Wikipedia (as of 20221020, 3.2GB, 27M sentences, 1.3M documents) - Japanese portion of CC-100 (85GB, 619M sentences, 66M documents) - Japanese portion of OSCAR (54GB, 326M sentences, 25M documents) Note that we filtered out documents annotated with "header", "footer", or "noisy" tags in OSCAR. Also note that Japanese Wikipedia was duplicated 10 times to make the total size of the corpus comparable to that of CC-100 and OSCAR. As a result, the total size of the training data is 171GB. ## Training procedure We first segmented texts in the corpora into words using [Juman++](https://github.com/ku-nlp/jumanpp). Then, we built a sentencepiece model with 32000 tokens including words ([JumanDIC](https://github.com/ku-nlp/JumanDIC)) and subwords induced by the unigram language model of [sentencepiece](https://github.com/google/sentencepiece). We tokenized the segmented corpora into subwords using the sentencepiece model and trained the Japanese DeBERTa model using [transformers](https://github.com/huggingface/transformers) library. The training took three weeks using 8 NVIDIA A100-SXM4-40GB GPUs. The following hyperparameters were used during pre-training: - learning_rate: 2e-4 - per_device_train_batch_size: 44 - distributed_type: multi-GPU - num_devices: 8 - gradient_accumulation_steps: 6 - total_train_batch_size: 2,112 - max_seq_length: 512 - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-06 - lr_scheduler_type: linear schedule with warmup - training_steps: 500,000 - warmup_steps: 10,000 The accuracy of the trained model on the masked language modeling task was 0.779. The evaluation set consists of 5,000 randomly sampled documents from each of the training corpora. ## Fine-tuning on NLU tasks We fine-tuned the following models and evaluated them on the dev set of JGLUE. We tuned learning rate and training epochs for each model and task following [the JGLUE paper](https://www.jstage.jst.go.jp/article/jnlp/30/1/30_63/_pdf/-char/ja). | Model | MARC-ja/acc | JSTS/pearson | JSTS/spearman | JNLI/acc | JSQuAD/EM | JSQuAD/F1 | JComQA/acc | |-------------------------------|-------------|--------------|---------------|----------|-----------|-----------|------------| | Waseda RoBERTa base | 0.965 | 0.913 | 0.876 | 0.905 | 0.853 | 0.916 | 0.853 | | Waseda RoBERTa large (seq512) | 0.969 | 0.925 | 0.890 | 0.928 | 0.910 | 0.955 | 0.900 | | LUKE Japanese base* | 0.965 | 0.916 | 0.877 | 0.912 | - | - | 0.842 | | LUKE Japanese large* | 0.965 | 0.932 | 0.902 | 0.927 | - | - | 0.893 | | DeBERTaV2 base | 0.970 | 0.922 | 0.886 | 0.922 | 0.899 | 0.951 | 0.873 | | DeBERTaV2 large | 0.968 | 0.925 | 0.892 | 0.924 | 0.912 | 0.959 | 0.890 | *The scores of LUKE are from [the official repository](https://github.com/studio-ousia/luke). ## Acknowledgments This work was supported by Joint Usage/Research Center for Interdisciplinary Large-scale Information Infrastructures (JHPCN) through General Collaboration Project no. jh221004, "Developing a Platform for Constructing and Sharing of Large-Scale Japanese Language Models". For training models, we used the mdx: a platform for the data-driven future.
[ -0.5495720505714417, -0.9438740611076355, 0.33256757259368896, -0.10296715795993805, -0.3610551357269287, 0.038138046860694885, -0.3438669741153717, -0.42976099252700806, 0.3832540214061737, 0.5063607096672058, -0.6111862063407898, -0.741690993309021, -0.7340005040168762, -0.0018399161053821445, -0.10773412883281708, 0.9485032558441162, -0.03937863931059837, 0.06729268282651901, 0.11421660333871841, -0.04459984600543976, -0.598594605922699, -0.41880083084106445, -0.696183443069458, -0.32071998715400696, 0.2951178550720215, 0.36751413345336914, 0.7680270671844482, 0.6390811204910278, 0.3001289665699005, 0.2825723886489868, -0.12296314537525177, 0.09896738827228546, -0.381109356880188, -0.1439024657011032, 0.07438282668590546, -0.6330671906471252, -0.4137462079524994, 0.07919692248106003, 0.663250744342804, 0.7740092277526855, -0.027468591928482056, 0.23676671087741852, 0.021573685109615326, 0.6916801333427429, -0.6079933643341064, 0.3046633303165436, -0.5937250256538391, 0.2162233144044876, -0.3171188235282898, -0.02080530673265457, -0.3510023057460785, 0.00862647034227848, -0.018397068604826927, -0.9137569665908813, 0.08891782909631729, -0.09740009158849716, 1.213512897491455, 0.21437515318393707, -0.16659286618232727, -0.16116508841514587, -0.5258880257606506, 0.7473317384719849, -0.7930042743682861, 0.3388492166996002, 0.6405792236328125, 0.03258906304836273, -0.11850836873054504, -0.5949621796607971, -0.7232425212860107, -0.26791277527809143, -0.32874029874801636, 0.3883497714996338, -0.2510989308357239, -0.11582737416028976, 0.5846891403198242, 0.27269071340560913, -0.9333242177963257, 0.2868047058582306, -0.4993228018283844, -0.02667585387825966, 0.7142277359962463, 0.15353141725063324, 0.3393961489200592, -0.3903924524784088, -0.31824788451194763, -0.36356374621391296, -0.5799232721328735, 0.1530022919178009, 0.571897029876709, 0.202324777841568, -0.39401692152023315, 0.4657999277114868, -0.36094415187835693, 0.6191727519035339, 0.12373892962932587, -0.3386414051055908, 0.605879545211792, -0.2059294581413269, -0.3134606182575226, 0.042371105402708054, 1.1809310913085938, 0.21920228004455566, 0.1388414353132248, 0.08465228229761124, 0.06545373797416687, 0.11960110813379288, 0.2254398912191391, -0.8840651512145996, -0.27035579085350037, 0.12044388055801392, -0.3565417230129242, -0.29449906945228577, -0.008780737407505512, -0.7344927787780762, -0.02589571103453636, -0.49178546667099, 0.5515976548194885, -0.5730993151664734, -0.3571433424949646, 0.15821580588817596, 0.005312263499945402, 0.17942656576633453, 0.15639367699623108, -0.9897238612174988, 0.2980285882949829, 0.43244919180870056, 0.7460792064666748, -0.06761150807142258, -0.34886056184768677, -0.24103933572769165, -0.11342409998178482, -0.39725741744041443, 0.288667231798172, -0.39032530784606934, -0.3686245381832123, -0.20407390594482422, 0.29241982102394104, -0.36931726336479187, -0.3861963450908661, 0.5071110725402832, -0.41170230507850647, 0.5039339661598206, -0.04419616237282753, -0.6444457173347473, -0.32972201704978943, 0.30606988072395325, -0.5835959315299988, 1.08199942111969, 0.3221590220928192, -0.8855019211769104, 0.3775688707828522, -0.6562103033065796, -0.2196684181690216, 0.21645914018154144, -0.17005445063114166, -0.5667293071746826, -0.10104314237833023, 0.4359806776046753, 0.4905911982059479, -0.15738169848918915, 0.5098657011985779, -0.2456466108560562, -0.48599082231521606, 0.18490874767303467, -0.3820195496082306, 1.2155529260635376, 0.20911696553230286, -0.6947336792945862, -0.13283491134643555, -1.0344053506851196, -0.022157905623316765, 0.4265668988227844, -0.17847006022930145, -0.4205752909183502, -0.3783971965312958, 0.024657264351844788, 0.27440938353538513, 0.2015930563211441, -0.497561514377594, 0.2903439402580261, -0.49951574206352234, 0.2898407578468323, 0.477152019739151, -0.12364321202039719, 0.3124183416366577, -0.06550535559654236, 0.713022768497467, 0.18990308046340942, 0.2185496836900711, -0.2309124767780304, -0.4462396204471588, -1.070898413658142, -0.28525590896606445, 0.4971086084842682, 0.5242611765861511, -0.7691876888275146, 0.8580603003501892, -0.35264748334884644, -0.8405977487564087, -0.7639282941818237, -0.07376690953969955, 0.5587910413742065, 0.5909890532493591, 0.44827231764793396, -0.5193590521812439, -0.5874967575073242, -1.1020421981811523, 0.2305128425359726, -0.13053558766841888, 0.11837327480316162, 0.13721968233585358, 0.7653969526290894, -0.2982439696788788, 0.7367950081825256, -0.5630344748497009, -0.2768339216709137, -0.21496544778347015, 0.07280268520116806, 0.4027101695537567, 0.680377721786499, 0.5433042645454407, -0.5863191485404968, -0.5876531600952148, -0.0664069652557373, -0.9224904775619507, 0.06690793484449387, -0.06191277131438255, -0.219048410654068, 0.4166915714740753, 0.5631964802742004, -0.6953433156013489, 0.3538838326931, 0.6028991341590881, -0.355399489402771, 0.5143083930015564, -0.17098325490951538, 0.04814201220870018, -1.4333086013793945, 0.5083004236221313, -0.03976566717028618, -0.1847413331270218, -0.6448932886123657, 0.2738162875175476, 0.005051136016845703, -0.19777527451515198, -0.4215884208679199, 0.5219571590423584, -0.48313409090042114, 0.00454707769677043, -0.2920658588409424, 0.2518279552459717, 0.08301914483308792, 0.9095430970191956, 0.3407851457595825, 0.782362163066864, 0.6382139921188354, -0.4783755838871002, 0.06668519973754883, 0.3177414536476135, -0.7155389785766602, 0.3502558469772339, -0.763209342956543, 0.071853868663311, -0.13525591790676117, 0.20672395825386047, -0.8460627794265747, -0.19132503867149353, 0.4849172532558441, -0.4877527356147766, 0.5460860133171082, -0.2662011682987213, -0.5106852054595947, -0.4648291766643524, -0.20536281168460846, 0.17086677253246307, 0.6678727269172668, -0.397713303565979, 0.32479459047317505, 0.47740650177001953, -0.14622583985328674, -0.7871209979057312, -0.615993857383728, -0.0571436733007431, -0.2739749252796173, -0.4542767107486725, 0.5404714345932007, -0.09858130663633347, 0.0004967754357494414, -0.030292021110653877, 0.16619734466075897, 0.11301355808973312, 0.29204243421554565, 0.32290858030319214, 0.4809015989303589, -0.12860950827598572, -0.05246683210134506, 0.14392320811748505, -0.21000075340270996, 0.0015958166914060712, -0.03857596963644028, 0.9804590940475464, -0.05422620847821236, -0.12594051659107208, -0.6210419535636902, 0.17148834466934204, 0.5105002522468567, -0.19001053273677826, 0.9232692718505859, 0.9029982089996338, -0.27764952182769775, 0.1050124317407608, -0.41753461956977844, 0.01639288291335106, -0.42954233288764954, 0.5953902006149292, -0.5266329050064087, -0.9316721558570862, 0.5822146534919739, 0.32625412940979004, 0.022801343351602554, 0.8909099102020264, 0.5944682955741882, 0.07718367129564285, 1.124624490737915, 0.42086514830589294, -0.24291902780532837, 0.41116705536842346, -0.745746910572052, -0.054538529366254807, -1.077388048171997, -0.26233065128326416, -0.47757452726364136, -0.20701798796653748, -0.8768622875213623, -0.28783878684043884, 0.35840079188346863, 0.33609357476234436, -0.3737128973007202, 0.615864634513855, -0.49262765049934387, 0.45916539430618286, 0.6985570192337036, 0.08666057139635086, 0.19803616404533386, 0.09182261675596237, -0.1528106927871704, -0.11890492588281631, -0.8138983845710754, -0.4399217367172241, 1.1763485670089722, 0.5623339414596558, 0.5959300994873047, -0.09182073175907135, 0.7082896828651428, 0.03338806331157684, 0.013362264260649681, -0.6844714283943176, 0.4868403673171997, -0.1749446541070938, -0.786759614944458, -0.265570729970932, -0.43818435072898865, -1.1029438972473145, 0.4543722867965698, -0.25215160846710205, -0.7971664667129517, 0.1010420024394989, -0.05506712570786476, -0.23169894516468048, 0.20558620989322662, -0.5584605932235718, 1.0491517782211304, -0.08191948384046555, -0.22997772693634033, -0.18054108321666718, -0.8287836909294128, 0.4723004698753357, -0.07806040346622467, 0.1520647257566452, -0.10382077842950821, 0.2299923449754715, 1.0267688035964966, -0.410733163356781, 0.8204905390739441, -0.24983347952365875, 0.027928093448281288, 0.3052855134010315, -0.06965283304452896, 0.4407145082950592, 0.17240741848945618, 0.19107113778591156, 0.4011422395706177, 0.05998997017741203, -0.296851247549057, -0.38581302762031555, 0.6751880049705505, -1.2169065475463867, -0.5413907766342163, -0.5553003549575806, -0.3871130347251892, -0.08646712452173233, 0.2774432599544525, 0.521270215511322, 0.5335460305213928, -0.06371384114027023, 0.3765459656715393, 0.6460387110710144, -0.31326571106910706, 0.4203251302242279, 0.7072674036026001, -0.33816763758659363, -0.49596959352493286, 0.7774651646614075, 0.23286838829517365, 0.25964152812957764, 0.43176931142807007, 0.16684748232364655, -0.29475221037864685, -0.5681334137916565, -0.7542937397956848, 0.34381476044654846, -0.5970093011856079, -0.10251747071743011, -0.8996511697769165, -0.37898504734039307, -0.42155253887176514, 0.058734212070703506, -0.461518257856369, -0.4923340380191803, -0.3136659860610962, -0.002476401161402464, 0.15726134181022644, 0.38683101534843445, 0.20041732490062714, 0.32339903712272644, -0.7558984756469727, 0.09937813878059387, 0.05581393465399742, 0.1493322104215622, -0.0778031200170517, -0.9376943111419678, -0.4290156662464142, 0.15242542326450348, -0.2976600229740143, -0.653641402721405, 0.5584336519241333, -0.11694929748773575, 0.5301533341407776, 0.23959171772003174, -0.16927111148834229, 0.8139609694480896, -0.4258035123348236, 0.9471515417098999, 0.2713349759578705, -0.8854990601539612, 0.7572705149650574, -0.42213743925094604, 0.5455853939056396, 0.8648557066917419, 0.7412632703781128, -0.5888161063194275, -0.459947407245636, -1.018462061882019, -0.8057087659835815, 0.9611907601356506, 0.25017040967941284, 0.08972384035587311, -0.007777163293212652, 0.21661104261875153, 0.09257549047470093, 0.18241630494594574, -1.0142667293548584, -0.48111212253570557, -0.07916425168514252, -0.2549024820327759, -0.23048299551010132, -0.1318357139825821, -0.0159909650683403, -0.3961699903011322, 1.1607177257537842, -0.12156487256288528, 0.21588774025440216, 0.1813916265964508, -0.3099156320095062, 0.021135849878191948, 0.1725751906633377, 0.7148876190185547, 0.6393482089042664, -0.2793571352958679, -0.1380922645330429, 0.12494353204965591, -0.6676439642906189, 0.01412954181432724, 0.35157519578933716, -0.5883573889732361, 0.22961363196372986, 0.44630202651023865, 1.29112708568573, 0.024058569222688675, -0.6682295203208923, 0.5373826026916504, -0.031105872243642807, -0.45486152172088623, -0.6279560923576355, 0.23354505002498627, -0.02529030106961727, 0.08073481172323227, 0.1456986367702484, -0.2014496624469757, 0.08893289417028427, -0.6518350839614868, -0.10850212723016739, 0.33248043060302734, -0.43687811493873596, -0.2901649475097656, 0.6896354556083679, 0.0035806966479867697, -0.08915238827466965, 0.6602445840835571, -0.32803860306739807, -0.5376443862915039, 0.603996753692627, 0.6188604235649109, 0.8341292142868042, -0.21021437644958496, 0.23819895088672638, 0.9313781261444092, 0.2478329986333847, 0.04431912675499916, 0.05536352097988129, 0.08606252074241638, -0.6558926105499268, -0.4037131071090698, -0.904812753200531, -0.1680319905281067, 0.6270079612731934, -0.7117695808410645, 0.2766379714012146, -0.3377716541290283, -0.1237974539399147, 0.07927680015563965, 0.35931017994880676, -0.6959347128868103, 0.36905136704444885, 0.3318634033203125, 0.7511370778083801, -0.9418292045593262, 0.9755359292030334, 0.5421497821807861, -0.6445462703704834, -1.0151699781417847, -0.3142664134502411, -0.20769824087619781, -0.9603577256202698, 0.7040426731109619, 0.3699311316013336, 0.23908457159996033, -0.0017158082919195294, -0.3717396855354309, -1.1041613817214966, 1.2767175436019897, 0.14860835671424866, -1.006055474281311, 0.02667272835969925, 0.24510543048381805, 0.6410489082336426, -0.2590024471282959, 0.42628735303878784, 0.6043879389762878, 0.2966614365577698, -0.11116392910480499, -0.9985703825950623, 0.07317368686199188, -0.4438222348690033, 0.13384994864463806, 0.35730817914009094, -0.7102228403091431, 0.8013599514961243, 0.19190599024295807, -0.08653222024440765, -0.0009906707564368844, 0.4585009515285492, 0.3911542296409607, 0.03181345388293266, 0.6032794117927551, 1.0250284671783447, 0.6783719062805176, -0.10220862179994583, 0.9527370929718018, -0.358747661113739, 0.4411112368106842, 1.1383427381515503, -0.018435386940836906, 0.800711989402771, 0.26486632227897644, -0.42122882604599, 0.7001944780349731, 0.5442160964012146, -0.2232944667339325, 0.47332122921943665, 0.13943356275558472, -0.06539168953895569, -0.049797624349594116, -0.05476459488272667, -0.5054590106010437, 0.7438743710517883, 0.3168396055698395, -0.5764919519424438, 0.13471323251724243, 0.20718714594841003, 0.5160596370697021, -0.08140669018030167, -0.2847142517566681, 0.7877475619316101, -0.055944833904504776, -1.0342416763305664, 0.775973916053772, 0.19682729244232178, 0.6817827224731445, -0.7587892413139343, 0.21088162064552307, -0.22993986308574677, 0.16928718984127045, 0.021290775388479233, -0.6991268396377563, 0.20182736217975616, 0.09178793430328369, -0.07491769641637802, 0.011209155432879925, 0.5676414966583252, -0.5932480096817017, -0.684908926486969, 0.2215692400932312, 0.37324774265289307, 0.2056821584701538, 0.08369436115026474, -0.9115564227104187, 0.09595265984535217, 0.11211870610713959, -0.5749098658561707, 0.4631573259830475, 0.09355348348617554, 0.08187353610992432, 0.374388724565506, 0.6319769620895386, -0.10561461001634598, -0.09883999824523926, 0.28003475069999695, 0.7946003675460815, -0.5165411233901978, -0.47689396142959595, -0.9275734424591064, 0.5743416547775269, -0.24012301862239838, -0.5497620701789856, 0.8049607872962952, 0.7792121767997742, 1.1641311645507812, -0.1648009717464447, 0.6886038184165955, -0.2775489091873169, 0.45379525423049927, -0.8368109464645386, 0.6877759099006653, -0.6552417874336243, -0.06841304898262024, -0.38668686151504517, -1.0048562288284302, -0.1935131698846817, 0.7190384864807129, -0.22673627734184265, 0.09371089935302734, 0.667583167552948, 0.8634812831878662, -0.003152795135974884, -0.14694875478744507, 0.23802722990512848, 0.14447301626205444, 0.26225507259368896, 0.7374147772789001, 0.5908916592597961, -0.8373955488204956, 0.38183847069740295, -0.6421502828598022, -0.07635761797428131, -0.12500505149364471, -0.5628585815429688, -0.9825597405433655, -0.7044013142585754, -0.5734999179840088, -0.3334774971008301, -0.06369183957576752, 1.0034812688827515, 0.7486971616744995, -0.6585891246795654, -0.2394552379846573, -0.2186770886182785, -0.3362932801246643, -0.12104209512472153, -0.26581886410713196, 0.6197490692138672, -0.31934013962745667, -1.0169670581817627, 0.3325199484825134, 0.03581366688013077, 0.0877520740032196, -0.2969435751438141, -0.11805950105190277, -0.3605344295501709, -0.2659222185611725, 0.5285090804100037, 0.053665462881326675, -0.6545057892799377, -0.12498560547828674, -0.029711097478866577, -0.24443113803863525, 0.0684036910533905, 0.3131718933582306, -0.7349127531051636, 0.5313628911972046, 0.35944458842277527, 0.4220532774925232, 0.9431544542312622, -0.1610054224729538, 0.21495062112808228, -0.7286797165870667, 0.36709925532341003, 0.06760875880718231, 0.5163377523422241, 0.3130294978618622, -0.2026769518852234, 0.7879522442817688, 0.41896799206733704, -0.5364506244659424, -0.6985159516334534, 0.029498834162950516, -1.2079018354415894, -0.3716672360897064, 1.1142849922180176, -0.23280182480812073, -0.3278657793998718, 0.14158889651298523, -0.2343088984489441, 0.3851786255836487, -0.08774027973413467, 0.6407780647277832, 0.7429680228233337, 0.2889159619808197, -0.16997647285461426, -0.6266340613365173, 0.393896222114563, 0.43214917182922363, -0.8767682909965515, -0.13259465992450714, 0.40692752599716187, 0.36327484250068665, 0.4386690557003021, 0.8055599927902222, -0.1741534024477005, 0.1689632087945938, 0.09651830047369003, 0.16423875093460083, -0.19042745232582092, -0.3188442587852478, -0.3261946141719818, 0.01133730262517929, -0.027536338195204735, -0.2067490518093109 ]
timm/coat_lite_mini.in1k
timm
"2023-04-24T03:43:16Z"
41,274
0
timm
[ "timm", "pytorch", "image-classification", "dataset:imagenet-1k", "arxiv:2104.06399", "license:apache-2.0", "region:us" ]
image-classification
"2023-04-24T03:43:09Z"
--- tags: - image-classification - timm library_name: timm license: apache-2.0 datasets: - imagenet-1k --- # Model card for coat_lite_mini.in1k A CoaT (Co-Scale Conv-Attentional Transformer) image classification model. Trained on ImageNet-1k by paper authors. ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 11.0 - GMACs: 2.0 - Activations (M): 12.2 - Image size: 224 x 224 - **Papers:** - Co-Scale Conv-Attentional Image Transformers: https://arxiv.org/abs/2104.06399 - **Dataset:** ImageNet-1k - **Original:** https://github.com/mlpc-ucsd/CoaT ## 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('coat_lite_mini.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( 'coat_lite_mini.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, 50, 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{Xu_2021_ICCV, author = {Xu, Weijian and Xu, Yifan and Chang, Tyler and Tu, Zhuowen}, title = {Co-Scale Conv-Attentional Image Transformers}, booktitle = {Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV)}, month = {October}, year = {2021}, pages = {9981-9990} } ```
[ -0.5054824352264404, -0.4779931902885437, -0.04528575763106346, 0.14355945587158203, -0.2944636940956116, -0.327821284532547, -0.2114402800798416, -0.41498681902885437, 0.21488356590270996, 0.3596191704273224, -0.573424220085144, -0.5960209965705872, -0.6716959476470947, -0.13984918594360352, -0.1960938572883606, 0.9050344824790955, -0.04269362613558769, -0.14085641503334045, -0.22568750381469727, -0.4548768103122711, -0.17400817573070526, -0.3207046389579773, -0.9952532649040222, -0.48471301794052124, 0.3159599006175995, 0.3758120834827423, 0.5880001783370972, 0.5219804048538208, 0.769103467464447, 0.4281298816204071, -0.02766931988298893, 0.06306019425392151, -0.2499546855688095, -0.36914151906967163, 0.3536964952945709, -0.6205138564109802, -0.557873547077179, 0.4219706952571869, 0.46317383646965027, 0.3786807358264923, 0.07108684629201889, 0.473512202501297, 0.17174072563648224, 0.5501399040222168, -0.3520796000957489, 0.23511934280395508, -0.4389455318450928, 0.2744368314743042, -0.048076145350933075, 0.0658305436372757, -0.45917394757270813, -0.18367917835712433, 0.32085108757019043, -0.6308343410491943, 0.5661412477493286, 0.17405329644680023, 1.2752000093460083, 0.18656030297279358, -0.03923775628209114, -0.02903774380683899, -0.18664002418518066, 0.9758344292640686, -0.7669891119003296, 0.2825202941894531, 0.37144404649734497, 0.12167832255363464, 0.08783876895904541, -1.1339569091796875, -0.575289249420166, -0.16954949498176575, -0.34625956416130066, 0.09240521490573883, -0.12836000323295593, 0.11325453221797943, 0.3342885375022888, 0.4709272086620331, -0.45424824953079224, 0.07278597354888916, -0.45030948519706726, -0.1991521269083023, 0.6305509209632874, 0.03585336357355118, 0.3751659393310547, -0.14388833940029144, -0.7186051607131958, -0.4807915687561035, -0.2155541628599167, 0.4574419856071472, 0.16235098242759705, 0.11636129766702652, -0.7728028297424316, 0.38437381386756897, 0.17193953692913055, 0.41362905502319336, 0.3857773244380951, -0.2606543004512787, 0.6256076097488403, 0.028132246807217598, -0.5021998286247253, -0.06242930516600609, 1.0806087255477905, 0.5765615105628967, 0.23617863655090332, -0.03669724240899086, -0.0747724398970604, -0.2706048786640167, -0.15731774270534515, -1.207406759262085, -0.31205862760543823, 0.38261115550994873, -0.5750296115875244, -0.48236083984375, 0.21728593111038208, -0.556524395942688, -0.0448586642742157, -0.14114323258399963, 0.7218098044395447, -0.38453108072280884, -0.23764748871326447, 0.2515145540237427, -0.22715254127979279, 0.4226856827735901, 0.13698038458824158, -0.6910196542739868, 0.35002994537353516, 0.21804453432559967, 1.0760921239852905, -0.028991295024752617, -0.3745218813419342, -0.2604365944862366, -0.2262764722108841, -0.3113258183002472, 0.38872218132019043, -0.06733400374650955, -0.04775484278798103, -0.26798275113105774, 0.46684587001800537, -0.3093353509902954, -0.6992005109786987, 0.39007824659347534, -0.3064086437225342, 0.3517882525920868, 0.031400419771671295, -0.2356501817703247, -0.34731078147888184, 0.35354146361351013, -0.4755183160305023, 1.1663663387298584, 0.40165621042251587, -1.0829471349716187, 0.3529438078403473, -0.6155640482902527, -0.02470840886235237, -0.1291143149137497, 0.04157847538590431, -1.1679432392120361, -0.18394501507282257, 0.2577342391014099, 0.7814368009567261, -0.3190915882587433, 0.12013626843690872, -0.5465682148933411, -0.31043335795402527, 0.39986029267311096, 0.0023326491937041283, 0.9201586842536926, 0.01733250543475151, -0.35822391510009766, 0.26707178354263306, -0.7154686450958252, 0.17503444850444794, 0.4608505666255951, -0.12169067561626434, -0.09859505295753479, -0.729636549949646, 0.3037976622581482, 0.3402886390686035, 0.24696336686611176, -0.6734866499900818, 0.18528349697589874, -0.20742911100387573, 0.4008174538612366, 0.6409867405891418, 0.0011473618214949965, 0.4207592308521271, -0.5251010060310364, 0.2956405282020569, 0.33142179250717163, 0.48364758491516113, 0.008359316736459732, -0.4561800956726074, -0.9951280355453491, -0.6396264433860779, 0.2507528066635132, 0.4070732891559601, -0.4627556800842285, 0.595668613910675, 0.020274408161640167, -0.7173211574554443, -0.4482859969139099, -0.08179876953363419, 0.39246422052383423, 0.5412688851356506, 0.48024308681488037, -0.49583104252815247, -0.5296697020530701, -1.0374987125396729, -0.07399963587522507, 0.1996460109949112, -0.025197910144925117, 0.3335475027561188, 0.6567164659500122, -0.25045469403266907, 0.6297980546951294, -0.4336327016353607, -0.36713698506355286, -0.2399081289768219, 0.16336524486541748, 0.5043490529060364, 0.7731809020042419, 0.7475489377975464, -0.6461492776870728, -0.7034140825271606, -0.23926621675491333, -0.9267239570617676, 0.1810767948627472, -0.13456301391124725, -0.2143791913986206, 0.18544958531856537, 0.3335084021091461, -0.5844967365264893, 0.705726146697998, 0.2639941871166229, -0.387367844581604, 0.47021040320396423, -0.26271265745162964, 0.1680787205696106, -1.121936321258545, 0.1840934157371521, 0.419016033411026, -0.1472225934267044, -0.5905510187149048, 0.01736159808933735, 0.13735391199588776, 0.04156870394945145, -0.5324522852897644, 0.7513126134872437, -0.5109484195709229, 0.04644838348031044, -0.09581360965967178, -0.2841509282588959, 0.13905058801174164, 0.862744927406311, -0.03340720757842064, 0.3676370084285736, 0.7861402630805969, -0.568757951259613, 0.502558708190918, 0.5561874508857727, -0.31714147329330444, 0.40812069177627563, -0.695669412612915, 0.2958872616291046, 0.14530658721923828, 0.08550844341516495, -1.0673129558563232, -0.258185476064682, 0.3607970178127289, -0.39957672357559204, 0.680986762046814, -0.3596891760826111, -0.49364450573921204, -0.5023356080055237, -0.6271629929542542, 0.5130236148834229, 0.6685755848884583, -0.7898151278495789, 0.25522419810295105, 0.15246136486530304, 0.24658069014549255, -0.5750066041946411, -0.9291956424713135, -0.3173306882381439, -0.36833569407463074, -0.7360764145851135, 0.4985981583595276, -0.14710140228271484, 0.08638377487659454, -0.0022591089364141226, -0.06425805389881134, -0.03996347635984421, -0.18115413188934326, 0.4244420826435089, 0.4726039171218872, -0.22265322506427765, -0.07430164515972137, -0.29662853479385376, -0.03383322060108185, 0.06215856224298477, -0.10983075201511383, 0.6150965094566345, -0.3369903862476349, -0.11362846195697784, -0.8508688807487488, -0.1431901901960373, 0.5950599312782288, -0.07547467947006226, 0.9372864365577698, 1.0466738939285278, -0.3675009608268738, -0.08201517909765244, -0.42120376229286194, -0.3666161000728607, -0.5410570502281189, 0.46514302492141724, -0.3344411253929138, -0.3904782831668854, 0.8361107110977173, 0.05761979520320892, -0.04287448525428772, 0.7319258451461792, 0.27790430188179016, -0.0037808481138199568, 0.8536906838417053, 0.7970805764198303, 0.23147664964199066, 0.722988486289978, -1.0373677015304565, -0.13251879811286926, -1.0867500305175781, -0.4956548810005188, -0.19476193189620972, -0.6875112652778625, -0.677152693271637, -0.3459053635597229, 0.5118633508682251, 0.1389656513929367, -0.4965212643146515, 0.39318007230758667, -0.8612870573997498, 0.03297308832406998, 0.653108537197113, 0.6392017602920532, -0.2414739429950714, 0.3583999276161194, -0.27141299843788147, -0.07242141664028168, -0.8448908925056458, -0.1331949532032013, 1.082987666130066, 0.5879266262054443, 0.8565751314163208, -0.3769254684448242, 0.6182355880737305, -0.17839983105659485, 0.38686761260032654, -0.761542558670044, 0.5843555331230164, -0.14285796880722046, -0.39052626490592957, -0.20603351294994354, -0.20936556160449982, -0.9560795426368713, 0.10308890789747238, -0.2217961549758911, -0.6806912422180176, 0.4167799949645996, 0.09383344650268555, -0.17432059347629547, 0.644869327545166, -0.8020034432411194, 1.052550196647644, -0.13457703590393066, -0.5375614762306213, 0.09686508774757385, -0.6458513140678406, 0.30471351742744446, 0.08510249853134155, -0.12227398157119751, -0.032658036798238754, 0.07213025540113449, 1.204384446144104, -0.549411952495575, 0.9437875747680664, -0.35086897015571594, 0.3321313261985779, 0.47076836228370667, -0.24301087856292725, 0.404125452041626, -0.1602858304977417, -0.04102570191025734, 0.28632134199142456, 0.1356341391801834, -0.4453696012496948, -0.43475961685180664, 0.526456356048584, -1.0429519414901733, -0.3625229001045227, -0.49283289909362793, -0.7501183748245239, 0.0384201817214489, 0.0705072432756424, 0.6848096251487732, 0.761728048324585, 0.2604856789112091, 0.37519949674606323, 0.640871524810791, -0.39620310068130493, 0.4717140197753906, 0.07460542023181915, -0.27756044268608093, -0.4657602310180664, 0.7779760360717773, 0.2722916603088379, 0.2863110601902008, 0.1330329328775406, 0.294269859790802, -0.26242074370384216, -0.43297070264816284, -0.1627405285835266, 0.46050533652305603, -0.6696329712867737, -0.43216750025749207, -0.5629875659942627, -0.6059953570365906, -0.3493451476097107, -0.15470488369464874, -0.4061345160007477, -0.3623643219470978, -0.3735244572162628, 0.2723527252674103, 0.6278958320617676, 0.556688666343689, -0.1017620787024498, 0.5738545656204224, -0.5408834218978882, 0.1920311003923416, 0.19364866614341736, 0.5597339272499084, -0.09742507338523865, -1.1207138299942017, -0.44816458225250244, -0.10077498853206635, -0.4993892312049866, -0.5814529657363892, 0.6315730214118958, 0.24791355431079865, 0.452541708946228, 0.36395519971847534, -0.0014987520407885313, 0.6751816272735596, 0.036066699773073196, 0.3994670808315277, 0.4457217752933502, -0.5578420758247375, 0.5063549876213074, -0.04678346961736679, 0.310727596282959, 0.03626624122262001, 0.3813972771167755, -0.40504130721092224, -0.23180833458900452, -1.1254944801330566, -0.7330304980278015, 1.0304818153381348, 0.1463104784488678, -0.11027050763368607, 0.3392069339752197, 0.6484326124191284, 0.019787540659308434, 0.06435060501098633, -0.827422559261322, -0.4980815351009369, -0.2613961398601532, -0.3517557382583618, -0.05126682668924332, -0.14133214950561523, -0.06166459992527962, -0.6463857293128967, 0.7735093832015991, -0.16191405057907104, 0.6992613077163696, 0.4635721445083618, -0.0319373793900013, -0.26643362641334534, -0.290374755859375, 0.3621998131275177, 0.20607440173625946, -0.519524097442627, 0.07951509952545166, 0.18736514449119568, -0.6448174118995667, 0.01378664467483759, 0.113006092607975, -0.006795663386583328, -0.03678257763385773, 0.48450201749801636, 0.8429873585700989, -0.009628078900277615, 0.08783776313066483, 0.5732550621032715, -0.2518993616104126, -0.4020043909549713, -0.22884343564510345, 0.08645913749933243, -0.07543805986642838, 0.3700534701347351, 0.2808932065963745, 0.5389877557754517, -0.08429266512393951, -0.350032240152359, 0.2661333680152893, 0.6352362632751465, -0.4140034317970276, -0.3764401972293854, 0.6255522966384888, -0.2343999743461609, -0.09867659956216812, 0.8096972703933716, -0.01330998819321394, -0.45462650060653687, 1.1602851152420044, 0.49005576968193054, 1.0162405967712402, -0.09448910504579544, -0.044017892330884933, 0.9558294415473938, 0.19885039329528809, -0.011841093190014362, 0.11440762132406235, 0.1857108175754547, -0.7653676271438599, 0.09158123284578323, -0.6126037240028381, -0.09551622718572617, 0.5981265902519226, -0.5756811499595642, 0.3696877658367157, -0.728675127029419, -0.33563658595085144, 0.04748992249369621, 0.36567503213882446, -0.959538996219635, 0.3416624963283539, 0.014435087330639362, 0.9588057398796082, -0.8859032988548279, 0.7121239900588989, 0.6928315162658691, -0.5847254395484924, -1.0078083276748657, -0.104563869535923, -0.2451159954071045, -0.9654611945152283, 0.6759155988693237, 0.5834598541259766, 0.1020529568195343, 0.12285058200359344, -1.0196795463562012, -0.6196939945220947, 1.4078344106674194, 0.4759063422679901, -0.22918517887592316, 0.23535490036010742, 0.06456142663955688, 0.28207826614379883, -0.44729170203208923, 0.4869036376476288, 0.21660713851451874, 0.3536624610424042, 0.2609212100505829, -0.7439913153648376, 0.18097536265850067, -0.3133094310760498, -0.08073447644710541, 0.0006346660084091127, -0.985702395439148, 1.0231610536575317, -0.4173131585121155, -0.17050234973430634, 0.1751404106616974, 0.59361732006073, 0.19023410975933075, 0.2889127731323242, 0.5101036429405212, 0.8173041343688965, 0.4846859574317932, -0.2234482765197754, 0.9484503269195557, -0.08867405354976654, 0.7621211409568787, 0.6432792544364929, 0.3756573498249054, 0.5238252282142639, 0.3974382281303406, -0.27579617500305176, 0.39067399501800537, 1.0197921991348267, -0.4041712284088135, 0.4714895784854889, 0.07893136888742447, -0.04720403999090195, -0.1996058225631714, -0.029495583847165108, -0.4002532660961151, 0.3993507921695709, 0.20101605355739594, -0.5226687788963318, -0.05169425532221794, 0.11743313819169998, -0.16837386786937714, -0.4010894000530243, -0.31467926502227783, 0.5090025663375854, 0.14450669288635254, -0.41223081946372986, 0.9083258509635925, -0.01854512095451355, 0.9125173091888428, -0.42470255494117737, 0.011435923166573048, -0.31998318433761597, 0.4854894280433655, -0.4217832386493683, -0.7819330096244812, 0.188470721244812, -0.39441800117492676, -0.15881037712097168, 0.023198803886771202, 0.7313587069511414, -0.5044510364532471, -0.5361901521682739, 0.2559847831726074, 0.21119455993175507, 0.3548862040042877, 0.010678756050765514, -1.2544480562210083, 0.08008067309856415, -0.08544357866048813, -0.6729325652122498, 0.36194002628326416, 0.3430721163749695, 0.0675283670425415, 0.7805428504943848, 0.5020586252212524, -0.23897989094257355, 0.18032756447792053, -0.13719648122787476, 0.7233721017837524, -0.43217188119888306, -0.33006635308265686, -0.7728510499000549, 0.5588801503181458, -0.10631991177797318, -0.33081158995628357, 0.5428748726844788, 0.7031729221343994, 0.8418947458267212, -0.26096248626708984, 0.5000481605529785, -0.1408819854259491, 0.057497717440128326, -0.3783073127269745, 0.719923734664917, -0.716244637966156, -0.0938137024641037, -0.11576227098703384, -0.6205352544784546, -0.3725014328956604, 0.6748986840248108, -0.336457759141922, 0.39594975113868713, 0.7640723586082458, 1.062239170074463, -0.4509502053260803, -0.3491162657737732, 0.3557618260383606, 0.20669539272785187, 0.10342264175415039, 0.4534754455089569, 0.46327993273735046, -1.0288320779800415, 0.3033595681190491, -0.6957131028175354, -0.18461377918720245, -0.16901904344558716, -0.6092542409896851, -1.1094285249710083, -0.8204560279846191, -0.7735323905944824, -0.5485416650772095, -0.37485888600349426, 0.9302523732185364, 1.0803346633911133, -0.784407913684845, -0.18771134316921234, -0.023154910653829575, -0.04811165854334831, -0.23287466168403625, -0.26271891593933105, 0.7769145369529724, -0.329233855009079, -0.8157381415367126, -0.4485449194908142, 0.0849217027425766, 0.33925631642341614, 0.04429992288351059, -0.2508220374584198, -0.28988027572631836, -0.10771390795707703, 0.3049629032611847, 0.21952134370803833, -0.6253889799118042, -0.28202584385871887, -0.19651229679584503, -0.29442182183265686, 0.44822096824645996, 0.31158849596977234, -0.5805272459983826, 0.3427565097808838, 0.3365734815597534, 0.27022436261177063, 0.8927488327026367, -0.4034389555454254, -0.03725781664252281, -0.9333277344703674, 0.5742218494415283, -0.21878701448440552, 0.48705604672431946, 0.44155335426330566, -0.40760338306427, 0.5293383002281189, 0.4837647080421448, -0.5406492352485657, -0.70624840259552, -0.11888539791107178, -1.2683345079421997, 0.015063568018376827, 0.8277772665023804, -0.2652560770511627, -0.6245809197425842, 0.39391273260116577, -0.21996696293354034, 0.6937034130096436, -0.03242640197277069, 0.5353733897209167, 0.29033246636390686, -0.145166277885437, -0.7133945822715759, -0.42502307891845703, 0.5592654347419739, 0.13860949873924255, -0.6586249470710754, -0.3607533872127533, -0.21166984736919403, 0.6858665347099304, 0.28607070446014404, 0.43660128116607666, -0.13268759846687317, 0.22669340670108795, 0.03854823112487793, 0.5169826745986938, -0.3034636676311493, -0.013022643513977528, -0.22858589887619019, 0.06273528933525085, -0.02854076586663723, -0.6154904365539551 ]
pucpr-br/tempclin-biobertpt-all
pucpr-br
"2022-08-15T17:42:48Z"
41,247
0
transformers
[ "transformers", "pytorch", "bert", "token-classification", "pt", "dataset:TempClinBr", "autotrain_compatible", "endpoints_compatible", "region:us" ]
token-classification
"2022-08-15T17:37:28Z"
--- language: "pt" widget: - text: "Dispneia importante aos esforços + dor tipo peso no peito no esforço." - text: "Obeso, has, icc c # cintilografia miocardica para avaliar angina. Discreto edema mmii pricn a esquerda." - text: "Plastia Mitral ( Insuficiencia ), CRM Saf-2Mg e e Saf-3MG ).(09/03/16). Nega palpitação." - text: "Uso: AAS 100 -1xd; Metoprolol 25 -1xd; FSM -1xd ; Levotiroxina 175 -1xd; Sinva 40 -1xd; Fluoxetina 20-1xd." - text: "Refere melhora da dispneia depois da cx porem mantem aos mdoeardos-leves esforço." datasets: - TempClinBr --- # Portuguese NER- TempClinBr - BioBERTpt(all) Treinado com BioBERTpt(all), com o corpus TempClinBr. Metricas: ``` precision recall f1-score support 0 0.75 0.90 0.82 291 1 0.77 1.00 0.87 33 2 1.00 0.25 0.40 28 3 0.90 0.99 0.94 71 4 0.79 0.91 0.85 112 5 0.72 0.83 0.77 420 6 0.62 0.45 0.53 11 7 0.96 0.85 0.91 2236 8 0.61 0.67 0.64 78 9 0.61 0.98 0.76 124 10 0.81 0.87 0.84 503 11 0.67 0.60 0.63 10 accuracy 0.86 3917 macro avg 0.77 0.78 0.74 3917 weighted avg 0.87 0.86 0.86 3917 F1: 0.8588744393393593 Accuracy: 0.8565228491192239 ``` Parâmetros: ``` device = cuda (Colab) nclasses = len(tag2id) nepochs = 50 => parou na 9 batch_size = 16 batch_status = 32 learning_rate = 3e-5 early_stop = 5 max_length = 256 write_path = 'model' ``` Eval no conjunto de teste - TempClinBr OBS: Avaliação com tag "O" (label 7), se necessário fazer a média sem essa tag. ``` {'B-Tratamento': 0, 'I-Teste': 1, 'I-Ocorrencia': 2, 'B-Evidencia': 3, 'B-Teste': 4, 'I-Problema': 5, 'B-DepartamentoClinico': 6, 'O': 7, 'I-Tratamento': 8, 'B-Ocorrencia': 9, 'B-Problema': 10, 'I-DepartamentoClinico': 11, '<pad>': 12} precision recall f1-score support 0 0.82 0.92 0.87 261 1 0.81 0.58 0.67 99 2 0.56 0.20 0.29 51 3 1.00 0.94 0.97 128 4 0.81 0.86 0.83 194 5 0.81 0.87 0.84 645 6 0.96 0.80 0.87 30 7 0.95 0.90 0.93 2431 8 0.73 0.81 0.77 146 9 0.74 0.88 0.80 146 10 0.87 0.95 0.91 713 11 0.83 0.71 0.77 14 12 0.00 0.00 0.00 0 accuracy 0.89 4858 macro avg 0.76 0.72 0.73 4858 weighted avg 0.89 0.89 0.89 4858 ``` Como citar: **em breve**
[ -0.3564363718032837, -0.5333850383758545, 0.2371726632118225, 0.47281613945961, -0.3994913399219513, -0.006297657266259193, -0.14403656125068665, -0.10137402266263962, 0.5241479277610779, 0.215871661901474, -0.402580201625824, -1.180263638496399, -0.6261656284332275, 0.14160005748271942, -0.1428034007549286, 0.959770143032074, -0.08003539592027664, -0.02779265120625496, 0.1262403428554535, -0.16195233166217804, -0.49685510993003845, -0.5226147174835205, -0.8068774938583374, -0.12859909236431122, 0.4079783260822296, 0.44491463899612427, 0.32896241545677185, 0.4459702670574188, 0.5313351154327393, 0.35812804102897644, -0.2679305374622345, -0.020853346213698387, -0.35257455706596375, -0.05913671851158142, -0.17526042461395264, -0.5343440771102905, -0.6951044201850891, -0.12061642855405807, 0.6144553422927856, 0.45518985390663147, -0.218840092420578, 0.41968536376953125, -0.10954843461513519, 0.9351637363433838, -0.46146634221076965, 0.5194727182388306, -0.28970226645469666, -0.034394945949316025, 0.007464841473847628, -0.13678725063800812, -0.4534744322299957, -0.7745120525360107, -0.06105739623308182, -0.643363893032074, 0.3255690038204193, 0.04664825648069382, 1.275195598602295, 0.09098298847675323, -0.19582226872444153, -0.37414294481277466, -0.4486904740333557, 0.9683026671409607, -0.8999322056770325, 0.1631956845521927, 0.560695469379425, 0.15718920528888702, -0.13776634633541107, -0.49071305990219116, -0.5951207876205444, -0.10021286457777023, 0.007539744488894939, 0.19163921475410461, -0.13649889826774597, -0.3750480115413666, 0.49919095635414124, 0.03629874810576439, -0.7749425172805786, 0.007520039100199938, -1.1648701429367065, -0.4816570580005646, 0.6399348974227905, 0.2468428909778595, 0.03930756077170372, 0.0811462327837944, -0.4487762153148651, -0.4413508474826813, -0.38903799653053284, 0.2285049706697464, 0.3958018124103546, 0.17091669142246246, -0.18406729400157928, 0.6334766149520874, -0.26263585686683655, 0.7713769674301147, 0.04349474236369133, -0.29237794876098633, 0.8858499526977539, -0.21967284381389618, -0.4903380274772644, 0.46457961201667786, 0.7942177653312683, 0.5534605383872986, 0.23126788437366486, 0.3675260841846466, -0.2046358585357666, -0.007863117381930351, 0.15842469036579132, -0.6374632716178894, -0.5384719967842102, 0.24983952939510345, -0.268924355506897, 0.07924008369445801, 0.5545566082000732, -0.8721557259559631, 0.21839593350887299, 0.01869281381368637, 0.5438251495361328, -0.9318411350250244, 0.08717382699251175, 0.25012660026550293, -0.13283014297485352, 0.40070095658302307, 0.07757455110549927, -0.5920629501342773, 0.300839900970459, 0.36700618267059326, 0.8827146291732788, -0.032643381506204605, -0.22883158922195435, -0.04174412414431572, 0.21967768669128418, -0.4076579213142395, 0.9683343768119812, -0.21660706400871277, -0.6605768203735352, -0.3382374048233032, 0.44535326957702637, -0.5059553384780884, -0.32394254207611084, 0.7693043351173401, -0.2769380807876587, 0.7391139268875122, -0.419833779335022, -0.4425016939640045, -0.7254916429519653, 0.4897726774215698, -0.6354459524154663, 1.3972668647766113, 0.24923112988471985, -0.7693515419960022, 0.2704724371433258, -0.3902572691440582, -0.35868585109710693, -0.0346728190779686, 0.11099046468734741, -0.5899839401245117, -0.29376935958862305, 0.21819181740283966, 0.299017995595932, -0.2667444944381714, 0.19664090871810913, -0.029751844704151154, -0.4345027208328247, 0.19597174227237701, -0.39157694578170776, 1.0784751176834106, 0.018658118322491646, -0.4617103934288025, -0.1394645720720291, -0.8677043318748474, 0.29167816042900085, 0.2590314447879791, -0.6304746866226196, -0.22969648241996765, -0.5298047065734863, -0.12605686485767365, 0.3179333209991455, 0.5776162147521973, -0.7252892255783081, 0.24803635478019714, -0.4639245569705963, 0.2820783257484436, 0.5789328813552856, 0.23894372582435608, 0.09035323560237885, -0.6209074258804321, 0.6578076481819153, 0.19915884733200073, 0.027850940823554993, 0.05676307901740074, -0.6684670448303223, -0.6014966368675232, -0.6230086088180542, 0.3520106077194214, 1.2114067077636719, -0.6019040942192078, 0.8639659285545349, -0.32660308480262756, -0.7985518574714661, -0.485253244638443, -0.012176950462162495, 0.7713056206703186, 0.9551940560340881, 0.698119044303894, -0.367093026638031, -0.41885703802108765, -1.1038620471954346, -0.08824083209037781, -0.24508419632911682, -0.08177001774311066, 0.36295783519744873, 0.9236916303634644, -0.10965900123119354, 0.41291511058807373, -0.8209516406059265, -0.5670818090438843, -0.15771889686584473, -0.1346093863248825, 0.9430021643638611, 0.6613612174987793, 0.8518000245094299, -0.599959671497345, -0.6393487453460693, -0.3584294319152832, -0.7848062515258789, 0.05059042200446129, 0.1786196082830429, -0.0318390354514122, 0.7763177752494812, 0.42289304733276367, -0.4020480811595917, 0.7925337553024292, 0.1587175577878952, -0.6235161423683167, 0.4179900586605072, -1.0716135501861572, 0.5067269802093506, -1.0757733583450317, 0.3717430531978607, 0.01707516796886921, 0.102462537586689, -0.45313721895217896, -0.35508430004119873, 0.3247371017932892, 0.6017181873321533, -0.9364680647850037, 0.6980329751968384, -0.6850521564483643, 0.35585442185401917, 0.4266836941242218, -0.04166879132390022, -0.007779846433550119, 0.698759138584137, -0.00873747281730175, 0.7112461924552917, 0.5991414189338684, -0.6247081160545349, 0.4542869031429291, 0.26740631461143494, -0.4886920750141144, 0.5492503046989441, -0.8056187629699707, -0.14557626843452454, -0.17224933207035065, 0.0054903095588088036, -1.3003534078598022, -0.21901147067546844, 0.41453078389167786, -0.6375576257705688, 0.4682782292366028, 0.14104899764060974, -0.3909693956375122, -0.8130027651786804, -0.5133196711540222, 0.4608941972255707, 0.5759627223014832, -0.27801212668418884, 0.45565834641456604, 0.2835695445537567, -0.17646953463554382, -0.7510644197463989, -0.8743482828140259, -0.308005690574646, -0.34767821431159973, -0.5566354393959045, 0.4245341718196869, -0.14995642006397247, 0.0405694842338562, -0.034254007041454315, -0.3036057651042938, -0.3268870413303375, -0.0778009444475174, 0.1593405306339264, 0.6286904215812683, -0.3464302718639374, -0.06806281208992004, -0.020392298698425293, -0.0534723699092865, 0.03429499268531799, 0.05986455827951431, 0.8948337435722351, -0.3658786118030548, 0.012622222304344177, -0.3212423026561737, 0.06204098090529442, 0.5068314671516418, -0.1369851678609848, 0.9698818922042847, 0.4507710933685303, -0.467762291431427, 0.2003198266029358, -0.6345367431640625, 0.046132903546094894, -0.4994330108165741, 0.09542696923017502, -0.4087987542152405, -0.4961004853248596, 1.045885682106018, 0.44053542613983154, -0.24314343929290771, 1.0479736328125, 0.6209467649459839, -0.33754825592041016, 0.6736814379692078, 0.3071799576282501, -0.007341128308326006, 0.30809977650642395, -0.543076753616333, -0.05634508654475212, -0.712399959564209, -1.0377343893051147, -0.5830321907997131, -0.44877490401268005, -0.5730288028717041, -0.2942107915878296, 0.5080612301826477, -0.244328573346138, -0.5590870976448059, 0.555759072303772, -0.7373425960540771, 0.6174924373626709, 0.9429107308387756, 0.6248197555541992, -0.12640362977981567, -0.022670928388834, -0.532760500907898, -0.011129217222332954, -0.6783063411712646, -0.42129266262054443, 1.3257737159729004, 0.05267525091767311, 0.32335522770881653, 0.4330775737762451, 0.8317649960517883, 0.20914874970912933, 0.06866884976625443, -0.6524301171302795, 0.7680473923683167, -0.1988775134086609, -0.9207568168640137, -0.3772662580013275, -0.16347476840019226, -1.2586041688919067, 0.0937182828783989, -0.32149553298950195, -1.0655945539474487, 0.2400042861700058, 0.021261587738990784, -0.7916451096534729, 0.1952672302722931, -0.8495723605155945, 1.120314598083496, -0.2753079831600189, -0.38764289021492004, 0.1033853217959404, -0.9041982293128967, 0.5519653558731079, -0.10745950788259506, 0.146750345826149, -0.30030208826065063, -0.12351717799901962, 1.182437539100647, -0.4941655993461609, 0.6745038628578186, -0.13938374817371368, 0.2911178469657898, 0.6025931239128113, 0.28124377131462097, 0.19705361127853394, -0.04340578243136406, -0.25314760208129883, 0.1396641731262207, 0.6182130575180054, -0.6528857946395874, -0.12288565188646317, 0.8901273012161255, -0.6746119856834412, -0.46798595786094666, -1.2209833860397339, -0.5167428255081177, 0.23951053619384766, 0.4321894943714142, 0.3842010200023651, 0.5093644261360168, -0.25383397936820984, 0.3036336302757263, 0.9439642429351807, -0.5624393820762634, 0.5607733130455017, 0.6910659074783325, 0.1645747721195221, -0.670157790184021, 1.0311775207519531, 0.2873600721359253, -0.005956969689577818, 0.4842042028903961, 0.0898042693734169, -0.467017263174057, -0.21624450385570526, 0.0024194656871259212, 0.568985641002655, -0.5719132423400879, -0.2984318435192108, -0.711611270904541, -0.15690669417381287, -0.6914007067680359, -0.18312589824199677, -0.15978136658668518, -0.5377743244171143, -0.29579460620880127, -0.23129388689994812, 0.46617263555526733, 0.3115571439266205, -0.24641147255897522, 0.4280611276626587, -0.8985145092010498, 0.3016743063926697, -0.09167086333036423, 0.18342182040214539, -0.41666746139526367, -0.9370149374008179, 0.04488826170563698, -0.05901038274168968, -0.3049776554107666, -1.4271703958511353, 1.2246785163879395, 0.18415389955043793, 0.7926628589630127, 0.25083544850349426, -0.17485547065734863, 0.6106934547424316, -0.1534925401210785, 0.9190048575401306, 0.1994718462228775, -0.8693675398826599, 0.8432012796401978, -0.2861209809780121, 0.4828498065471649, 0.8830227851867676, 0.769999623298645, -0.36444902420043945, -0.04301432892680168, -1.2615795135498047, -1.3575754165649414, 0.9706819653511047, 0.1274080127477646, -0.24119393527507782, -0.3045955002307892, 0.32465630769729614, -0.13726091384887695, 0.187870055437088, -0.48632097244262695, -0.6450623273849487, -0.014292311854660511, -0.5664604902267456, -0.28035274147987366, -0.29612842202186584, -0.06869477778673172, -0.7968210577964783, 1.0648696422576904, 0.13683202862739563, 0.45579132437705994, 0.37465614080429077, 0.020218880847096443, 0.4156498610973358, 0.05840549245476723, 1.2041170597076416, 0.6480948328971863, -0.8894668221473694, 0.13054153323173523, 0.3290732204914093, -0.8639734983444214, 0.09490211308002472, -0.07364407926797867, -0.13879714906215668, 0.13269467651844025, 0.37946730852127075, 0.2723303437232971, 0.20093150436878204, -0.6043389439582825, 0.583800196647644, 0.00019884314679075032, -0.41894784569740295, -0.7094255685806274, 0.07718528807163239, -0.036700036376714706, 0.2322508692741394, 0.2499142289161682, -0.0440547913312912, -0.06686052680015564, -0.6535905003547668, 0.16090284287929535, 0.11331804096698761, -0.47639912366867065, -0.0545436330139637, 0.6738969087600708, -0.3886178135871887, -0.35028475522994995, 0.9423782825469971, -0.25769445300102234, -0.7987912893295288, 1.2991948127746582, 0.4063824713230133, 0.7307397723197937, -0.6837953925132751, 0.13214629888534546, 1.2449584007263184, 0.5281805992126465, -0.4885222911834717, 1.0925076007843018, 0.4828454554080963, -0.5681265592575073, 0.3570093512535095, -0.47948408126831055, -0.17800240218639374, -0.09784769266843796, -1.0887560844421387, 0.2926388084888458, -0.6132228374481201, -0.344953328371048, -0.08023205399513245, 0.07969921082258224, -0.9412993788719177, 0.6374280452728271, 0.002451108070090413, 1.0611759424209595, -0.9363927841186523, 1.1353873014450073, 0.7303770780563354, -0.7429273724555969, -1.032617211341858, -0.5296182632446289, -0.1079365611076355, -1.1237080097198486, 0.695123553276062, -0.054091811180114746, 0.33940497040748596, -0.15754766762256622, -0.5133026838302612, -1.0320501327514648, 1.4154616594314575, 0.02577250450849533, -0.660589337348938, 0.06455731391906738, -0.17818298935890198, 0.851750910282135, -0.1943250298500061, 0.7823967337608337, 0.8319880962371826, 0.6906265616416931, 0.37864717841148376, -0.922336220741272, 0.13243655860424042, -0.363985151052475, -0.4287508428096771, 0.31799259781837463, -0.7904101610183716, 1.136091947555542, -0.3614021837711334, 0.05804509297013283, -0.30795449018478394, 0.698549747467041, 0.5338141918182373, 0.7177438139915466, 0.21713195741176605, 0.5783857703208923, 0.9379749894142151, -0.20232097804546356, 0.8864745497703552, -0.6362709999084473, 0.5207143425941467, 1.1347651481628418, 0.23352962732315063, 1.0551705360412598, 0.5222527980804443, -0.28739336133003235, 0.5798386335372925, 0.907383382320404, -0.35608893632888794, 0.6202446818351746, 0.256122887134552, 0.018167991191148758, -0.10011017322540283, 0.31225836277008057, -0.41925379633903503, 0.25965073704719543, 0.7626706957817078, -0.6131557822227478, -0.044562894850969315, -0.39966458082199097, 0.29313215613365173, 0.1434740573167801, -0.2159898430109024, 0.5279924273490906, -0.03731523081660271, -0.8295263648033142, 1.0433405637741089, -0.026512086391448975, 0.3708738386631012, -0.46325430274009705, 0.11393486708402634, -0.4334799349308014, 0.48694249987602234, -0.26266688108444214, -1.165380597114563, 0.5070515871047974, -0.09771367162466049, -0.17141872644424438, -0.000571829208638519, 0.09975587576627731, -0.3285016119480133, -0.9742527604103088, 0.1434890478849411, 0.4579084515571594, 0.5527591109275818, 0.09773935377597809, -0.8633691072463989, -0.11139634251594543, 0.20229168236255646, -0.35169970989227295, -0.024815181270241737, 0.47682976722717285, -0.11953893303871155, 0.6909443736076355, 0.2951277792453766, -0.0072121815755963326, 0.20843422412872314, -0.5838831663131714, 0.7736372947692871, -1.004604458808899, -0.3929521143436432, -0.9438888430595398, 0.3212173283100128, 0.05103697255253792, -0.671170175075531, 0.5338423848152161, 1.0886722803115845, 0.8471478819847107, -0.24589850008487701, 0.5229990482330322, -0.10844109207391739, 0.6453374028205872, -0.5528503060340881, 0.684156596660614, -0.5101977586746216, 0.01803644560277462, -0.09744054079055786, -1.0456634759902954, -0.5868871808052063, 0.8754594922065735, -0.6121681928634644, -0.12202899158000946, 1.016668677330017, 1.0028220415115356, -0.05970492959022522, -0.29738208651542664, 0.0955275297164917, 0.47096577286720276, 0.031599365174770355, 1.3691586256027222, 0.11457879096269608, -0.8186375498771667, 0.3940601646900177, -0.46332845091819763, -0.10170957446098328, -0.2666769325733185, -0.8744500875473022, -1.0887188911437988, -0.5881733298301697, -0.6738807559013367, -0.792807400226593, 0.04342023655772209, 1.3782281875610352, -0.02946551889181137, -1.1046372652053833, -0.259177029132843, 0.47219040989875793, 0.0201034527271986, -0.379644513130188, -0.18804439902305603, 0.830357551574707, 0.28828883171081543, -0.6821593642234802, 0.3079266846179962, -0.07438073307275772, 0.19479180872440338, 0.20179465413093567, 0.08137556165456772, -0.5208770036697388, 0.15138210356235504, 0.22960194945335388, 0.6318722367286682, -0.6309866309165955, -0.21745924651622772, 0.09776303172111511, -0.5117275714874268, 0.3454178273677826, 0.002185412449762225, -0.7299928069114685, 0.3965047299861908, 0.8419153690338135, 0.035637032240629196, 0.8879984617233276, 0.006876439321786165, 0.19692809879779816, -0.436524361371994, 0.3657905161380768, 0.36559027433395386, 0.3391891419887543, 0.1502416431903839, -0.24004536867141724, 0.6457942128181458, 0.5365542769432068, -0.4003062844276428, -0.902274489402771, -0.4764663577079773, -1.5949482917785645, -0.22237716615200043, 1.2287354469299316, -0.18643100559711456, -0.8416528105735779, 0.2354326993227005, -0.33867669105529785, 0.5184583067893982, -0.72963947057724, 0.8108727335929871, 0.5481574535369873, 0.0004198922833893448, 0.10003511607646942, -0.6856691837310791, 0.14699694514274597, 0.27748262882232666, -0.6051790118217468, -0.6231932044029236, 0.3979787230491638, 0.6552039980888367, 0.11422334611415863, 0.6557961106300354, -0.1695101410150528, 0.17611166834831238, -0.09018413722515106, 0.48479577898979187, -0.03490813076496124, -0.30735504627227783, -0.27848878502845764, 0.30605608224868774, -0.3817134201526642, -0.4457814395427704 ]
guillaumekln/faster-whisper-base.en
guillaumekln
"2023-05-12T18:57:21Z"
41,180
2
ctranslate2
[ "ctranslate2", "audio", "automatic-speech-recognition", "en", "license:mit", "region:us" ]
automatic-speech-recognition
"2023-03-23T10:18:04Z"
--- language: - en tags: - audio - automatic-speech-recognition license: mit library_name: ctranslate2 --- # Whisper base.en model for CTranslate2 This repository contains the conversion of [openai/whisper-base.en](https://huggingface.co/openai/whisper-base.en) to the [CTranslate2](https://github.com/OpenNMT/CTranslate2) model format. This model can be used in CTranslate2 or projects based on CTranslate2 such as [faster-whisper](https://github.com/guillaumekln/faster-whisper). ## Example ```python from faster_whisper import WhisperModel model = WhisperModel("base.en") segments, info = model.transcribe("audio.mp3") for segment in segments: print("[%.2fs -> %.2fs] %s" % (segment.start, segment.end, segment.text)) ``` ## Conversion details The original model was converted with the following command: ``` ct2-transformers-converter --model openai/whisper-base.en --output_dir faster-whisper-base.en \ --copy_files tokenizer.json --quantization float16 ``` Note that the model weights are saved in FP16. This type can be changed when the model is loaded using the [`compute_type` option in CTranslate2](https://opennmt.net/CTranslate2/quantization.html). ## More information **For more information about the original model, see its [model card](https://huggingface.co/openai/whisper-base.en).**
[ 0.08634603768587112, -0.3817678391933441, 0.20451930165290833, 0.5038748383522034, -0.43799886107444763, -0.26638782024383545, -0.4993387460708618, -0.4140237271785736, 0.011221994645893574, 0.8040376901626587, -0.4914962947368622, -0.6535866856575012, -0.6367446780204773, -0.3186922073364258, -0.31066209077835083, 0.9217247366905212, -0.22256354987621307, 0.24747306108474731, 0.4335708022117615, -0.10814996808767319, -0.3762359321117401, -0.27261629700660706, -0.7100529074668884, -0.2900637090206146, 0.08344192802906036, 0.22998373210430145, 0.5898919701576233, 0.33548974990844727, 0.43106260895729065, 0.27554869651794434, -0.2999086380004883, -0.07078398019075394, -0.3429131805896759, -0.09276491403579712, 0.2204381823539734, -0.7115055918693542, -0.728861927986145, 0.10323707014322281, 0.6384242177009583, 0.20348557829856873, -0.29992949962615967, 0.38345107436180115, -0.24072770774364471, 0.39792805910110474, -0.5601136088371277, 0.33191606402397156, -0.5978626608848572, -0.01886434108018875, -0.1349370926618576, -0.2629757225513458, -0.6090658903121948, -0.3667471408843994, 0.5753539204597473, -0.8512491583824158, 0.187703475356102, -0.1129789799451828, 0.9103004932403564, 0.22233419120311737, -0.5053847432136536, -0.3665514588356018, -0.9062023758888245, 0.987310528755188, -0.7761213779449463, 0.3410451114177704, 0.2833557426929474, 0.4902708828449249, 0.2021683305501938, -1.0738292932510376, -0.15426526963710785, -0.10672444105148315, 0.1625141054391861, 0.37269964814186096, -0.4104543626308441, 0.29658043384552, 0.15479537844657898, 0.5112809538841248, -0.6798840761184692, -0.22060635685920715, -0.7686793208122253, -0.452129065990448, 0.5049144625663757, 0.05313872918486595, 0.26541802287101746, -0.2218007743358612, -0.38491374254226685, -0.6204021573066711, -0.5782079696655273, 0.020723914727568626, 0.5386589765548706, 0.3003373146057129, -0.7102299928665161, 0.6633445024490356, 0.05546778440475464, 0.39367684721946716, 0.14410027861595154, -0.3158988952636719, 0.4721266031265259, -0.23252610862255096, -0.1730525642633438, 0.5217982530593872, 0.6246494650840759, 0.53029865026474, 0.18858543038368225, 0.1939508467912674, -0.229085311293602, -0.013417800888419151, 0.06443017721176147, -1.1231669187545776, -0.3867384195327759, 0.3192635774612427, -0.8971447348594666, -0.2371310591697693, 0.0869690403342247, -0.2593860328197479, 0.1380249708890915, -0.15338699519634247, 0.589840829372406, -0.5257630348205566, -0.665926992893219, 0.4848138988018036, -0.5836341977119446, 0.17520134150981903, 0.35427147150039673, -0.809417188167572, 0.47352394461631775, 0.5671337842941284, 1.1263887882232666, 0.02216002717614174, -0.08917462080717087, -0.17881953716278076, 0.2773914039134979, -0.08607497811317444, 0.5009362101554871, -0.013126970268785954, -0.6296045184135437, -0.01613341085612774, -0.06381019204854965, -0.15064141154289246, -0.6086496114730835, 0.6242774128913879, -0.2407020926475525, 0.4098145663738251, 0.26870304346084595, -0.2224641740322113, -0.23993882536888123, 0.0344662182033062, -0.69624263048172, 1.0675042867660522, 0.5650150179862976, -0.764144778251648, -0.171490877866745, -0.8014876842498779, -0.19152800738811493, -0.18038399517536163, 0.5094839334487915, -0.34617364406585693, 0.2649248540401459, -0.04121021926403046, -0.07793909311294556, -0.3999520540237427, 0.3303094208240509, -0.036915481090545654, -0.39207953214645386, 0.22719964385032654, -0.4789007902145386, 1.1082870960235596, 0.35112264752388, -0.012561081908643246, 0.2792501747608185, -0.6655957698822021, 0.06741296499967575, -0.06775519996881485, -0.41824567317962646, -0.3247121572494507, -0.15660561621189117, 0.5362052321434021, -0.05205421894788742, 0.3632936179637909, -0.652746319770813, 0.26406142115592957, -0.6757735013961792, 0.7812367677688599, 0.3574298918247223, -0.004512691404670477, 0.4701009690761566, -0.3851386606693268, 0.10167685151100159, 0.23632991313934326, 0.41216912865638733, 0.014332840219140053, -0.5938964486122131, -0.7823107242584229, -0.07769233733415604, 0.34466850757598877, 0.5163230299949646, -0.5258115530014038, 0.3415311872959137, -0.37006208300590515, -0.942062258720398, -0.9840066432952881, -0.48642024397850037, 0.28326886892318726, 0.3486674427986145, 0.620883047580719, -0.10636276006698608, -0.8902416825294495, -0.8816400170326233, -0.11405175924301147, -0.4429117441177368, -0.21748939156532288, 0.16764569282531738, 0.5434603691101074, -0.1796313375234604, 0.7131168246269226, -0.590087354183197, -0.442891389131546, -0.25712910294532776, 0.35699963569641113, 0.325761616230011, 0.8739633560180664, 0.6477111577987671, -0.822745680809021, -0.3010993003845215, -0.1909988820552826, -0.36135801672935486, -0.03147060424089432, -0.06941019743680954, -0.14726868271827698, 0.048236411064863205, 0.0417417511343956, -0.8256761431694031, 0.47868525981903076, 0.7661820650100708, -0.38025963306427, 0.5334786772727966, 0.05700208619236946, 0.015068689361214638, -1.3213928937911987, 0.13874761760234833, -0.017833029851317406, -0.1328793168067932, -0.6847447156906128, 0.05434088781476021, 0.23263010382652283, 0.13269774615764618, -0.8194516897201538, 0.6524572372436523, -0.18200726807117462, -0.02009359747171402, -0.14003945887088776, -0.33119919896125793, -0.07040165364742279, 0.3284947872161865, 0.5076314806938171, 0.8015708923339844, 0.504511833190918, -0.42924028635025024, 0.15494808554649353, 0.6245452165603638, -0.23001039028167725, 0.1494712382555008, -1.0657920837402344, 0.1465037614107132, 0.2274928241968155, 0.46574169397354126, -0.6180539727210999, 0.04223152622580528, 0.275397390127182, -0.7727825045585632, 0.15723274648189545, -0.7013558745384216, -0.4866628348827362, -0.19489547610282898, -0.4533184766769409, 0.46331027150154114, 0.7199761867523193, -0.3872220814228058, 0.7688969373703003, 0.23726557195186615, 0.11233118176460266, -0.18786907196044922, -1.089892864227295, -0.07925945520401001, -0.12585459649562836, -0.8207980990409851, 0.7849900126457214, -0.28127315640449524, -0.17477741837501526, -0.12816669046878815, -0.07204663008451462, -0.25937023758888245, -0.12218058854341507, 0.49810314178466797, 0.3355920612812042, -0.47045716643333435, -0.3298793137073517, 0.4036540687084198, -0.3799903392791748, 0.1298035830259323, -0.5701190233230591, 0.7750130891799927, -0.17339643836021423, -0.0018146415241062641, -0.632756769657135, 0.1329898238182068, 0.5625357627868652, -0.2496742159128189, 0.4852578341960907, 0.6631558537483215, -0.41039007902145386, -0.19836826622486115, -0.46549469232559204, -0.17486025393009186, -0.5005250573158264, 0.2724381387233734, -0.4109902083873749, -0.7316526770591736, 0.49558621644973755, 0.14579467475414276, 0.08708415180444717, 0.8334001898765564, 0.6124486327171326, 0.09318231046199799, 1.1095579862594604, 0.4408121407032013, 0.26473021507263184, 0.4035434424877167, -0.7991323471069336, -0.24825701117515564, -1.1794652938842773, -0.38854658603668213, -0.6788219213485718, -0.1250617653131485, -0.3611980378627777, -0.2988842725753784, 0.5163795948028564, 0.17312344908714294, -0.48147454857826233, 0.7508404850959778, -0.7231694459915161, -0.03296482935547829, 0.5139057636260986, 0.20335404574871063, 0.31523597240448, 0.04523440822958946, 0.2036011517047882, -0.1430242508649826, -0.31345629692077637, -0.38295334577560425, 1.1543116569519043, 0.6209046840667725, 0.717722475528717, 0.34065908193588257, 0.6431644558906555, 0.09929139912128448, 0.15406954288482666, -0.8806926012039185, 0.24141933023929596, -0.20333614945411682, -0.5855774283409119, -0.0010854334104806185, -0.2987236976623535, -0.693213939666748, 0.08576644212007523, 0.07264506071805954, -0.6025501489639282, 0.10793435573577881, -0.057169754058122635, -0.04046899080276489, 0.36955589056015015, -0.5197399854660034, 0.7209559082984924, 0.048114970326423645, 0.35672569274902344, -0.2039697766304016, -0.40020814538002014, 0.47276055812835693, 0.23176062107086182, -0.3223654627799988, 0.05906972661614418, -0.060851406306028366, 1.0442043542861938, -0.6944063305854797, 0.8454366326332092, -0.4651283919811249, -0.20619803667068481, 0.7245684862136841, 0.18794044852256775, 0.37781238555908203, 0.14610661566257477, -0.2382482886314392, 0.5592474341392517, 0.3393110930919647, -0.03553609549999237, -0.3401557505130768, 0.5478479862213135, -1.33750319480896, -0.1109338104724884, -0.20061109960079193, -0.5425576567649841, 0.3099563717842102, 0.1217082217335701, 0.6265096068382263, 0.6253772377967834, -0.05723180994391441, 0.20584839582443237, 0.6770901083946228, 0.10244333744049072, 0.4050631821155548, 0.7214264869689941, -0.017413463443517685, -0.7988021373748779, 0.6994242072105408, 0.2095726877450943, 0.3022121787071228, 0.4470129907131195, 0.305430144071579, -0.5627560615539551, -1.0059373378753662, -0.4685027599334717, 0.05517249181866646, -0.6716217398643494, -0.3718153238296509, -0.7210254073143005, -0.5807392597198486, -0.5266996026039124, 0.11374781280755997, -0.6811489462852478, -0.7388519048690796, -0.5347110629081726, 0.19154663383960724, 0.7210520505905151, 0.4242294430732727, -0.010882719419896603, 0.7014588713645935, -1.0971380472183228, 0.27549827098846436, -0.04651428759098053, 0.17488954961299896, 0.14989644289016724, -0.9857255220413208, -0.11645364761352539, 0.1978944092988968, -0.27478256821632385, -0.900239884853363, 0.511144757270813, 0.0636293813586235, 0.2436978816986084, 0.11971671134233475, 0.08473650366067886, 0.7778675556182861, -0.19515803456306458, 1.021587610244751, 0.32152852416038513, -1.1993032693862915, 0.7446678876876831, -0.49772077798843384, 0.18031227588653564, 0.5407283306121826, 0.1309787482023239, -0.6310214996337891, -0.0950629785656929, -0.6439793705940247, -0.8415781855583191, 0.8491723537445068, 0.45897969603538513, -0.023132894188165665, 0.1942709982395172, 0.1945161521434784, 0.18125589191913605, 0.17073869705200195, -0.7575215697288513, -0.3748445510864258, -0.7076085209846497, -0.45877400040626526, 0.3017866909503937, -0.2827706038951874, -0.06744813174009323, -0.21783262491226196, 0.8041443824768066, -0.17734946310520172, 0.42125579714775085, 0.5550646185874939, -0.2933526039123535, -0.14870992302894592, 0.008180196397006512, 0.6755815744400024, 0.13342854380607605, -0.5965763926506042, -0.13177019357681274, 0.1710054874420166, -0.8561177849769592, -0.05070154741406441, -0.01625695638358593, -0.3857612907886505, 0.2531569302082062, 0.504662036895752, 0.8852005004882812, 0.4090691804885864, -0.28702613711357117, 0.6643561124801636, -0.08954949676990509, -0.46446144580841064, -0.8222218751907349, 0.09570810198783875, 0.25378480553627014, 0.16400818526744843, 0.4588184952735901, 0.2963064908981323, 0.27507659792900085, -0.39155012369155884, -0.1786724179983139, 0.09350066632032394, -0.49829283356666565, -0.5546724200248718, 0.7695143818855286, 0.22195541858673096, -0.3651371896266937, 0.6782729029655457, 0.13529904186725616, -0.2521795928478241, 0.634411096572876, 0.8067438006401062, 1.3063437938690186, -0.1148853451013565, 0.07608500123023987, 0.6705929636955261, 0.29894882440567017, -0.23009701073169708, 0.7680695056915283, -0.15740515291690826, -0.47620564699172974, -0.36876562237739563, -0.7410140633583069, -0.3836030662059784, 0.07643367350101471, -1.0007061958312988, 0.32921501994132996, -0.5100674033164978, -0.22106949985027313, 0.014783721417188644, 0.03988806903362274, -0.6359041929244995, -0.021162768825888634, 0.23973578214645386, 1.5182126760482788, -0.6525583863258362, 1.1424497365951538, 0.5464534759521484, -0.410025030374527, -0.9109731912612915, -0.3117959201335907, -0.08092571794986725, -0.7468263506889343, 0.6413087248802185, 0.15821179747581482, -0.0652742087841034, 0.06761281192302704, -0.7646347880363464, -1.0060714483261108, 1.3789896965026855, 0.06202736496925354, -0.5840650796890259, -0.21587544679641724, 0.15883345901966095, 0.5121302604675293, -0.5942052602767944, 0.7425495982170105, 0.4042274057865143, 0.8351935744285583, 0.03650633618235588, -1.2447775602340698, -0.011783904395997524, -0.2213355153799057, 0.24046140909194946, 0.058558158576488495, -0.8281018733978271, 1.2186893224716187, -0.14086447656154633, -0.12583214044570923, 0.7712801694869995, 0.707158088684082, 0.37663549184799194, 0.24395349621772766, 0.45854848623275757, 0.47221940755844116, 0.3541865348815918, -0.34785109758377075, 0.5916098356246948, -0.29943400621414185, 0.5385596752166748, 0.9081514477729797, -0.2747967541217804, 1.0221260786056519, 0.34531518816947937, -0.05631256103515625, 0.8438354730606079, 0.4406411051750183, -0.32457008957862854, 0.6359640955924988, -0.025639714673161507, -0.014384109526872635, -0.030896838754415512, -0.04741297662258148, -0.5494643449783325, 0.744117021560669, 0.4975854754447937, -0.3849444091320038, -0.21339361369609833, -0.12096516042947769, 0.050677698105573654, -0.22698450088500977, -0.39562124013900757, 0.6978495717048645, -0.10542726516723633, -0.49240005016326904, 0.7450249791145325, 0.4167705476284027, 0.984747052192688, -1.0028053522109985, -0.16026851534843445, 0.24728043377399445, 0.15218839049339294, -0.28253933787345886, -0.7864639759063721, 0.463951975107193, -0.1861588954925537, -0.3368763327598572, -0.06309172511100769, 0.6694781184196472, -0.6587798595428467, -0.3776860237121582, 0.42035672068595886, 0.24557748436927795, 0.33207574486732483, -0.28957194089889526, -0.8017249703407288, 0.4012928605079651, 0.257601797580719, -0.36878401041030884, 0.20618566870689392, -0.09711705893278122, -0.029017478227615356, 0.43310755491256714, 0.9220010042190552, 0.16989104449748993, 0.01709849387407303, 0.12655827403068542, 0.6959970593452454, -0.6611338257789612, -0.7229892611503601, -0.41224607825279236, 0.6669320464134216, -0.002155306516215205, -0.7599314451217651, 0.5263042449951172, 0.9117501378059387, 0.5940107703208923, -0.3442206084728241, 0.7547496557235718, 0.0024041770957410336, 0.3583051264286041, -0.7944180369377136, 0.7849466800689697, -0.27753010392189026, -0.14175334572792053, 0.049093250185251236, -0.8628843426704407, 0.06483708322048187, 0.39469653367996216, 0.04489335045218468, -0.2348509579896927, 0.6115304827690125, 0.8908314108848572, -0.12443982064723969, 0.2509191632270813, -0.025415241718292236, 0.420033723115921, 0.3122645914554596, 0.6492400765419006, 0.6426412463188171, -1.0484334230422974, 0.7071071863174438, -0.3944542407989502, -0.00865952018648386, -0.024660278111696243, -0.652329683303833, -0.9454535841941833, -0.6072137951850891, -0.48196497559547424, -0.6754010915756226, -0.03646441921591759, 0.966342031955719, 0.9848697781562805, -0.7665497064590454, -0.410850465297699, 0.003947008866816759, -0.12850894033908844, -0.029422439634799957, -0.29935771226882935, 0.5054624676704407, 0.35971006751060486, -0.8225259184837341, 0.6305879950523376, 0.0751485824584961, 0.48033034801483154, -0.30972975492477417, -0.48150259256362915, 0.3030158579349518, -0.02047879435122013, 0.35858801007270813, 0.08841116726398468, -0.8953503370285034, -0.12329582870006561, -0.15465500950813293, -0.028888389468193054, 0.23139029741287231, 0.7449380159378052, -0.8109198808670044, 0.14177420735359192, 0.6848353743553162, -0.2602824568748474, 0.7415419816970825, -0.2969072759151459, 0.316508948802948, -0.5860537886619568, 0.4889970123767853, 0.28013142943382263, 0.4125504195690155, 0.16516786813735962, -0.119264617562294, 0.44211655855178833, 0.24140821397304535, -0.23188607394695282, -0.9373177886009216, -0.029249459505081177, -1.4157143831253052, -0.06262326240539551, 1.14699387550354, -0.01849926821887493, -0.36111998558044434, 0.13304618000984192, -0.6148967146873474, 0.3960104286670685, -0.6705754995346069, 0.15197792649269104, 0.17232689261436462, 0.4050114154815674, -0.04817822948098183, -0.39329949021339417, 0.41992053389549255, -0.07697511464357376, -0.37303856015205383, 0.03646933659911156, 0.07368156313896179, 0.5524032711982727, 0.42510986328125, 0.6087154746055603, -0.5242710113525391, 0.4696100354194641, 0.29397711157798767, 0.5163288116455078, -0.4098166227340698, -0.39858391880989075, -0.3087891936302185, 0.027978286147117615, -0.09991415590047836, -0.2891824245452881 ]
timm/resnest101e.in1k
timm
"2023-04-23T23:37:24Z"
41,154
0
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "arxiv:2004.08955", "license:apache-2.0", "region:us" ]
image-classification
"2023-04-23T23:36:40Z"
--- tags: - image-classification - timm library_name: timm license: apache-2.0 datasets: - imagenet-1k --- # Model card for resnest101e.in1k A ResNeSt (ResNet based architecture with Split Attention) image classification model. Trained on ImageNet-1k by paper authors. ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 48.3 - GMACs: 13.4 - Activations (M): 28.7 - Image size: 256 x 256 - **Papers:** - ResNeSt: Split-Attention Networks: https://arxiv.org/abs/2004.08955 - **Dataset:** ImageNet-1k - **Original:** https://github.com/zhanghang1989/ResNeSt ## 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('resnest101e.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( 'resnest101e.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, 128, 128]) # torch.Size([1, 256, 64, 64]) # torch.Size([1, 512, 32, 32]) # torch.Size([1, 1024, 16, 16]) # torch.Size([1, 2048, 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( 'resnest101e.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, 2048, 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 @article{zhang2020resnest, title={ResNeSt: Split-Attention Networks}, author={Zhang, Hang and Wu, Chongruo and Zhang, Zhongyue and Zhu, Yi and Zhang, Zhi and Lin, Haibin and Sun, Yue and He, Tong and Muller, Jonas and Manmatha, R. and Li, Mu and Smola, Alexander}, journal={arXiv preprint arXiv:2004.08955}, year={2020} } ```
[ -0.5544183850288391, -0.48857712745666504, 0.10849115997552872, 0.1982433795928955, -0.3511991798877716, -0.35717231035232544, -0.2783735394477844, -0.29574885964393616, 0.43251705169677734, 0.4949928820133209, -0.6681596636772156, -0.6125766038894653, -0.7151632905006409, -0.029815440997481346, -0.11165887862443924, 0.9951657652854919, -0.0828700065612793, -0.06522075086832047, -0.23570208251476288, -0.5729044079780579, -0.11683021485805511, -0.29892081022262573, -0.9218785762786865, -0.3240095376968384, 0.40366697311401367, 0.20910948514938354, 0.3991001546382904, 0.5775472521781921, 0.6941853761672974, 0.5011865496635437, -0.1584485024213791, 0.025690164417028427, -0.28124764561653137, -0.14520463347434998, 0.3581622540950775, -0.5968579649925232, -0.4439433217048645, 0.3338374197483063, 0.7845205068588257, 0.36791449785232544, 0.05414359271526337, 0.5388609170913696, 0.16109947860240936, 0.678605318069458, -0.20921508967876434, 0.11827640980482101, -0.3081161677837372, 0.2217584252357483, -0.10724006593227386, 0.19139207899570465, -0.32550957798957825, -0.552802324295044, 0.27495521306991577, -0.47378262877464294, 0.4455307126045227, -0.008247427642345428, 1.2844244241714478, 0.374724805355072, 0.07100618630647659, 0.059024106711149216, -0.11718215048313141, 0.8393880724906921, -0.8721669316291809, 0.3242779076099396, 0.31796854734420776, 0.11299999803304672, -0.029522430151700974, -1.0936346054077148, -0.551060140132904, -0.09353665262460709, -0.2603456974029541, -0.01692637801170349, -0.10078193992376328, -0.0035996257793158293, 0.339944988489151, 0.3476239740848541, -0.42335665225982666, -0.06509874761104584, -0.5818371772766113, -0.14546094834804535, 0.5216180086135864, 0.02879488654434681, 0.3595178723335266, -0.23369082808494568, -0.5461845993995667, -0.37390032410621643, -0.25716423988342285, 0.24273481965065002, 0.21267087757587433, 0.2743164300918579, -0.596010148525238, 0.30104029178619385, 0.17649568617343903, 0.5714479684829712, 0.17243695259094238, -0.39537033438682556, 0.6261867880821228, 0.027987485751509666, -0.5879758596420288, -0.06510692834854126, 1.1267123222351074, 0.25562819838523865, 0.29771357774734497, 0.09576499462127686, -0.04603045806288719, -0.3220312297344208, 0.015899071469902992, -1.172831416130066, -0.3524759113788605, 0.3825187087059021, -0.6298917531967163, -0.485690712928772, 0.22481657564640045, -0.672374963760376, -0.0941174104809761, -0.016231397166848183, 0.5193862915039062, -0.5240594744682312, -0.43325257301330566, 0.10811218619346619, -0.084234818816185, 0.2549516558647156, 0.09769268333911896, -0.5353389382362366, 0.2105303555727005, 0.27855783700942993, 1.1191060543060303, 0.022058336064219475, -0.5297038555145264, -0.1599348485469818, -0.41918328404426575, -0.14619186520576477, 0.5130969285964966, -0.08041281253099442, 0.049501534551382065, -0.3826439678668976, 0.4336715042591095, -0.3468960225582123, -0.7103610634803772, 0.2800932824611664, -0.2390032261610031, 0.4817441701889038, -0.033395010977983475, -0.30315962433815, -0.5909284949302673, 0.43286770582199097, -0.5383915901184082, 1.1987812519073486, 0.3765276074409485, -0.9978819489479065, 0.2664377689361572, -0.5889195203781128, -0.165455162525177, -0.31508979201316833, 0.009682990610599518, -1.2024219036102295, -0.09029209613800049, 0.2589963972568512, 0.6303437352180481, -0.25288906693458557, -0.01265231054276228, -0.5522229075431824, -0.12355788797140121, 0.37008634209632874, -0.10256519913673401, 0.9852190613746643, 0.0778605118393898, -0.3888408839702606, 0.2814982533454895, -0.592677116394043, 0.3154919147491455, 0.5458810329437256, -0.35890790820121765, -0.006525397300720215, -0.647895097732544, 0.20339836180210114, 0.33930179476737976, 0.1275443434715271, -0.670244038105011, 0.26744544506073, -0.24828775227069855, 0.5191389918327332, 0.6618614792823792, -0.04329300299286842, 0.26036322116851807, -0.34552785754203796, 0.3757338225841522, 0.30630576610565186, 0.24955205619335175, -0.11660266667604446, -0.49262598156929016, -0.8316816687583923, -0.5457644462585449, 0.49899429082870483, 0.3965759873390198, -0.4284692704677582, 0.49901771545410156, -0.13297615945339203, -0.6292207837104797, -0.708672046661377, 0.009513543918728828, 0.547382652759552, 0.5770524740219116, 0.34587427973747253, -0.5107667446136475, -0.5056061744689941, -0.9723082184791565, 0.050789088010787964, 0.09308299422264099, 0.08490389585494995, 0.36754050850868225, 0.5584263205528259, -0.05842610076069832, 0.733548641204834, -0.4922843873500824, -0.3127622902393341, -0.29831039905548096, -0.06712887436151505, 0.40166565775871277, 0.7520270347595215, 0.7882882952690125, -0.6722738146781921, -0.5233047604560852, -0.257428377866745, -0.9780245423316956, 0.20270347595214844, -0.1169506311416626, -0.23693141341209412, 0.2607268691062927, 0.0942387729883194, -0.6186965107917786, 0.6202643513679504, 0.1708945333957672, -0.3352940082550049, 0.4381728768348694, -0.182176411151886, 0.2976510524749756, -1.2427629232406616, 0.044550731778144836, 0.3967728018760681, -0.15713436901569366, -0.4814319908618927, 0.03927541524171829, 0.05583463981747627, -0.03802292421460152, -0.572880744934082, 0.5675318241119385, -0.6134939193725586, -0.26602083444595337, -0.1589256227016449, -0.1742624044418335, 0.045753806829452515, 0.8963074684143066, 0.033878907561302185, 0.36302289366722107, 0.7735227346420288, -0.44167017936706543, 0.5317215919494629, 0.4355425536632538, -0.2849747836589813, 0.33635643124580383, -0.6641982793807983, 0.21570871770381927, -0.012560819275677204, 0.23086336255073547, -1.1353870630264282, -0.21315103769302368, 0.3418312966823578, -0.5987228751182556, 0.6722745299339294, -0.456795871257782, -0.3876655697822571, -0.5583661794662476, -0.4992963373661041, 0.45105189085006714, 0.6636205315589905, -0.7311301231384277, 0.33203205466270447, 0.24535523355007172, 0.22638411819934845, -0.5025035738945007, -0.839066743850708, -0.37284529209136963, -0.4966580867767334, -0.7799189686775208, 0.25955137610435486, 0.18633924424648285, 0.17950551211833954, 0.24681416153907776, -0.11633047461509705, -0.02929723635315895, -0.18138818442821503, 0.5659936666488647, 0.2735655903816223, -0.3695305585861206, -0.1257246434688568, -0.3327108323574066, -0.06935999542474747, 0.04748031497001648, -0.26126396656036377, 0.6736756563186646, -0.2594713866710663, -0.17626135051250458, -0.9217761158943176, -0.14433851838111877, 0.6195809245109558, -0.19763290882110596, 0.9483673572540283, 0.9854571223258972, -0.5379674434661865, 0.055681683123111725, -0.454790323972702, -0.3735619783401489, -0.48503589630126953, 0.476336270570755, -0.3985016345977783, -0.46635645627975464, 0.8864714503288269, -0.05688351020216942, 0.11389323323965073, 0.5943643450737, 0.3119063973426819, -0.016089310869574547, 0.6920589208602905, 0.6022107601165771, 0.07281458377838135, 0.7388673424720764, -1.0195940732955933, -0.21136626601219177, -1.0391677618026733, -0.44619396328926086, -0.25582247972488403, -0.7493979930877686, -0.5788386464118958, -0.338060587644577, 0.37709638476371765, 0.1325540840625763, -0.44509339332580566, 0.5082316398620605, -0.9692032337188721, 0.16506367921829224, 0.6741863489151001, 0.6124399900436401, -0.4050278663635254, 0.309042364358902, -0.22372247278690338, -0.07517746090888977, -0.7282584309577942, -0.20364071428775787, 1.0399377346038818, 0.5582122206687927, 0.6960684657096863, -0.1721896231174469, 0.8002765774726868, -0.25344961881637573, 0.3899134397506714, -0.5891309976577759, 0.6219713091850281, -0.10453050583600998, -0.4179430902004242, -0.2929765582084656, -0.3771817088127136, -1.0119627714157104, 0.20626826584339142, -0.1757669448852539, -0.7424492239952087, 0.1201455146074295, 0.013009107671678066, -0.36762163043022156, 0.7883689999580383, -0.8866992592811584, 1.070939302444458, -0.11288467049598694, -0.43804439902305603, 0.12731629610061646, -0.6369708776473999, 0.31190094351768494, 0.20906615257263184, -0.2653636038303375, -0.0741514265537262, 0.22522062063217163, 1.2315678596496582, -0.5294474959373474, 0.9085690379142761, -0.45074617862701416, 0.3872971534729004, 0.5073363780975342, -0.16278839111328125, 0.2794649004936218, -0.07707736641168594, -0.040459442883729935, 0.2175007462501526, 0.0458519384264946, -0.509748101234436, -0.5937188863754272, 0.6270202994346619, -1.0033771991729736, -0.42766955494880676, -0.37141531705856323, -0.4896642565727234, 0.14504115283489227, 0.08847307413816452, 0.5789012908935547, 0.6697314977645874, 0.24557070434093475, 0.2720924913883209, 0.6264685988426208, -0.48229900002479553, 0.4086441695690155, -0.10217943042516708, -0.25162473320961, -0.6466887593269348, 0.7902442812919617, 0.22864903509616852, 0.22946065664291382, 0.03959059342741966, 0.15522202849388123, -0.3925516903400421, -0.4471321105957031, -0.3313555121421814, 0.5636032819747925, -0.5734840631484985, -0.46306297183036804, -0.5953512191772461, -0.528923511505127, -0.5344446897506714, -0.017882205545902252, -0.591080904006958, -0.39177843928337097, -0.29331696033477783, 0.11008121073246002, 0.7194603085517883, 0.6145576238632202, -0.06676112115383148, 0.4824044704437256, -0.6375489234924316, 0.11512862145900726, 0.14889852702617645, 0.5205946564674377, -0.03282443434000015, -1.016616940498352, -0.30880117416381836, -0.13003592193126678, -0.44542884826660156, -0.8124377131462097, 0.5520620346069336, 0.05788452550768852, 0.518944501876831, 0.37911149859428406, -0.15259408950805664, 0.7706518769264221, -0.028074007481336594, 0.47888070344924927, 0.299286812543869, -0.4987437427043915, 0.7030800580978394, 0.07573182135820389, 0.23890115320682526, 0.14689311385154724, 0.31100186705589294, -0.34340110421180725, -0.07812020182609558, -1.1168133020401, -0.7006914615631104, 1.1630204916000366, 0.16188262403011322, -0.1320817619562149, 0.3299504518508911, 0.7536321878433228, -0.05786781385540962, 0.011529404670000076, -0.7688097953796387, -0.49100634455680847, -0.2616797983646393, -0.3302224278450012, 0.03513617068529129, -0.12835639715194702, -0.09740965068340302, -0.5808918476104736, 0.7109156250953674, 0.0543421134352684, 0.7458692789077759, 0.41813328862190247, 0.02561100758612156, -0.07730676233768463, -0.3879321813583374, 0.5233868956565857, 0.1660894751548767, -0.41756880283355713, 0.061876825988292694, 0.22884000837802887, -0.6962020993232727, 0.14424635469913483, 0.10552874207496643, 0.0197480246424675, -0.06925860792398453, 0.5493285655975342, 1.0092803239822388, 0.022028114646673203, 0.08889051526784897, 0.26407575607299805, -0.12933003902435303, -0.3684332072734833, -0.16953840851783752, 0.0671420618891716, 0.07082181423902512, 0.43049561977386475, 0.19306130707263947, 0.24417336285114288, -0.26543885469436646, -0.24346809089183807, 0.3406856656074524, 0.42950841784477234, -0.33130863308906555, -0.40182390809059143, 0.6498693823814392, -0.13055884838104248, -0.2583375573158264, 0.9635022878646851, -0.046622782945632935, -0.6249053478240967, 1.2313152551651, 0.4723455607891083, 1.0672791004180908, -0.14378571510314941, 0.005478200037032366, 0.9213550686836243, 0.3001609146595001, -0.012477965094149113, 0.09670405834913254, 0.13354897499084473, -0.8080171346664429, 0.059945426881313324, -0.6693534255027771, 0.07630394399166107, 0.49553701281547546, -0.6363115310668945, 0.17018280923366547, -0.7252833247184753, -0.43848711252212524, 0.18540170788764954, 0.37242698669433594, -0.833995521068573, 0.28469523787498474, -0.01512873638421297, 0.870409369468689, -0.7921340465545654, 0.8295935988426208, 1.0003761053085327, -0.5988881587982178, -1.061516523361206, 0.019574064761400223, -0.05824330821633339, -0.9536183476448059, 0.6658614277839661, 0.5679367184638977, 0.23326370120048523, 0.09739906340837479, -0.7240679860115051, -0.7485256195068359, 1.4051589965820312, 0.5097268223762512, -0.060655899345874786, 0.26910844445228577, -0.06146318465471268, 0.24376237392425537, -0.5258226990699768, 0.4268478453159332, 0.3836069107055664, 0.3511439561843872, 0.26596859097480774, -0.7173483371734619, 0.2624375522136688, -0.22689209878444672, 0.040437519550323486, 0.3286063075065613, -0.9571331143379211, 0.9243960976600647, -0.5842732191085815, -0.24924130737781525, -0.08945581316947937, 0.7333516478538513, 0.37496691942214966, 0.18979771435260773, 0.5499465465545654, 1.014189600944519, 0.5034220814704895, -0.29160553216934204, 0.8356491923332214, -0.04512951150536537, 0.7622877359390259, 0.6834805011749268, 0.3093305230140686, 0.5441478490829468, 0.3766799867153168, -0.40621739625930786, 0.3415316641330719, 1.1864984035491943, -0.21425703167915344, 0.4572199881076813, 0.17663505673408508, -0.0312901996076107, -0.14333048462867737, 0.17366355657577515, -0.46783164143562317, 0.39708998799324036, 0.17076082527637482, -0.5957198143005371, -0.2431483417749405, 0.15642011165618896, -0.02596261538565159, -0.2992473840713501, -0.12190414220094681, 0.6112058758735657, -0.0017678504809737206, -0.4297601282596588, 0.8508082032203674, -0.025372043251991272, 0.8778257966041565, -0.3137946128845215, 0.08459924161434174, -0.43857237696647644, 0.337633341550827, -0.36508962512016296, -0.9146822094917297, 0.3145802617073059, -0.25444939732551575, -0.09779150038957596, 0.0337580144405365, 0.6780086755752563, -0.45394039154052734, -0.4903962016105652, 0.19644057750701904, 0.2647448778152466, 0.6036310195922852, -0.01441240031272173, -1.3076379299163818, 0.16144615411758423, 0.2408106029033661, -0.8383329510688782, 0.40032118558883667, 0.48993760347366333, 0.18641731142997742, 0.7645456194877625, 0.5101740956306458, -0.14440786838531494, 0.16891995072364807, -0.1949242800474167, 0.8035848140716553, -0.5893294811248779, -0.31324827671051025, -0.8916042447090149, 0.5483530759811401, -0.09986332058906555, -0.49509868025779724, 0.5184811949729919, 0.6462132930755615, 0.8260496258735657, -0.07215794175863266, 0.4481261968612671, -0.2129608690738678, 0.11169862747192383, -0.378892183303833, 0.7573901414871216, -0.6485203504562378, -0.06343294680118561, -0.09278266131877899, -0.7599125504493713, -0.23791418969631195, 0.7416327595710754, -0.3036814033985138, 0.4253576397895813, 0.5195090770721436, 0.9611420631408691, -0.36145174503326416, -0.30441221594810486, 0.22049269080162048, 0.1252274513244629, 0.03912455961108208, 0.5300450921058655, 0.3328235149383545, -0.8506854176521301, 0.3200811743736267, -0.7161768674850464, -0.20452909171581268, -0.05047818273305893, -0.5022522807121277, -0.9907898902893066, -0.9045057892799377, -0.6920703053474426, -0.6720031499862671, -0.2994466722011566, 0.8776836395263672, 1.1008931398391724, -0.6852587461471558, -0.0394766740500927, 0.13520832359790802, 0.2136395126581192, -0.22954784333705902, -0.24695147573947906, 0.7778356075286865, -0.2253037393093109, -0.8435436487197876, -0.3600272238254547, 0.06419514119625092, 0.38159263134002686, -0.08762550354003906, -0.19660545885562897, -0.24460256099700928, -0.2081676870584488, 0.22398847341537476, 0.35392865538597107, -0.7079029083251953, -0.16148774325847626, -0.2583758234977722, -0.1851518303155899, 0.35415053367614746, 0.3895241916179657, -0.6620075702667236, 0.18433502316474915, 0.42250633239746094, 0.4593777358531952, 0.863094687461853, -0.1799289584159851, -0.07682271301746368, -0.8873109221458435, 0.6060867309570312, -0.20807521045207977, 0.4579241871833801, 0.43293052911758423, -0.4121142625808716, 0.7210026979446411, 0.46787363290786743, -0.49529367685317993, -0.9529463052749634, -0.12834660708904266, -1.037578821182251, -0.13982845842838287, 0.8459950089454651, -0.4399559199810028, -0.6242470741271973, 0.5491279363632202, -0.08940241485834122, 0.6397949457168579, -0.11016655713319778, 0.5534774661064148, 0.41238951683044434, -0.27533388137817383, -0.7556042671203613, -0.4542277157306671, 0.5099120736122131, 0.2007887065410614, -0.7415806651115417, -0.32050415873527527, -0.09551053494215012, 0.7655051946640015, 0.3299074172973633, 0.5501316785812378, -0.16196395456790924, 0.08218003064393997, 0.07696662843227386, 0.5361177921295166, -0.3671797513961792, -0.10421685874462128, -0.3441590666770935, 0.08010140061378479, -0.19964301586151123, -0.8313093781471252 ]
timm/repvgg_a2.rvgg_in1k
timm
"2023-03-22T07:19:36Z"
41,153
0
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "arxiv:2101.03697", "license:mit", "region:us" ]
image-classification
"2023-03-22T07:19:08Z"
--- tags: - image-classification - timm library_tag: timm license: mit datasets: - imagenet-1k --- # Model card for repvgg_a2.rvgg_in1k A RepVGG image classification model. Trained on ImageNet-1k by paper authors. 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). BYOBNet allows configuration of: * block / stage layout * 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): 28.2 - GMACs: 5.7 - Activations (M): 6.3 - Image size: 224 x 224 - **Papers:** - RepVGG: Making VGG-style ConvNets Great Again: https://arxiv.org/abs/2101.03697 - **Dataset:** ImageNet-1k - **Original:** https://github.com/DingXiaoH/RepVGG ## 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('repvgg_a2.rvgg_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( 'repvgg_a2.rvgg_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, 64, 112, 112]) # torch.Size([1, 96, 56, 56]) # torch.Size([1, 192, 28, 28]) # torch.Size([1, 384, 14, 14]) # torch.Size([1, 1408, 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( 'repvgg_a2.rvgg_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, 1408, 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{ding2021repvgg, title={Repvgg: Making vgg-style convnets great again}, author={Ding, Xiaohan and Zhang, Xiangyu and Ma, Ningning and Han, Jungong and Ding, Guiguang and Sun, Jian}, booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition}, pages={13733--13742}, year={2021} } ```
[ -0.49644750356674194, -0.49432504177093506, -0.01408528070896864, 0.05452261120080948, -0.3346140682697296, -0.24526740610599518, -0.17715421319007874, -0.42182421684265137, 0.14994782209396362, 0.4713955521583557, -0.4825166165828705, -0.7825340032577515, -0.6588107943534851, -0.16617818176746368, -0.10859546065330505, 1.0408459901809692, -0.06995443999767303, 0.0066427551209926605, -0.23952513933181763, -0.6325845718383789, -0.11576274037361145, -0.36649563908576965, -0.7630914449691772, -0.6149548292160034, 0.35274583101272583, 0.2009929120540619, 0.5522093772888184, 0.6273825168609619, 0.5393044948577881, 0.4472583830356598, -0.09617215394973755, 0.020705729722976685, -0.2539917528629303, -0.23669588565826416, 0.3142101466655731, -0.6429067850112915, -0.4312480390071869, 0.293339341878891, 0.7169308066368103, 0.28651222586631775, -0.07665330916643143, 0.4120526909828186, 0.042445164173841476, 0.5973185300827026, -0.16611501574516296, 0.06589759141206741, -0.38801655173301697, 0.1960756778717041, -0.05708174780011177, 0.15756528079509735, -0.3269804120063782, -0.4412544369697571, 0.22967416048049927, -0.5163509249687195, 0.4851069450378418, 0.0680573433637619, 1.368930459022522, 0.12249525636434555, 0.07905959337949753, -0.006710279267281294, -0.1269731968641281, 0.7455899119377136, -0.7869977355003357, 0.25750240683555603, 0.25682780146598816, 0.1552211344242096, -0.18457113206386566, -1.0738136768341064, -0.5739341974258423, -0.24392540752887726, -0.29055580496788025, 0.04934854060411453, -0.23871518671512604, 0.07187407463788986, 0.3585905432701111, 0.400449275970459, -0.6011335849761963, 0.05890160799026489, -0.5421257019042969, -0.18687207996845245, 0.5287495851516724, -0.12295303493738174, 0.32918107509613037, -0.38622787594795227, -0.6163526177406311, -0.4098140299320221, -0.4575800895690918, 0.3249600827693939, 0.3208608627319336, 0.2380039095878601, -0.5957853198051453, 0.4480915665626526, 0.20718160271644592, 0.6229746341705322, 0.079463429749012, -0.35401350259780884, 0.5924692153930664, 0.003304005367681384, -0.48480117321014404, -0.10020429641008377, 1.2429826259613037, 0.2918322682380676, 0.24378183484077454, 0.05295402929186821, -0.14300936460494995, -0.4594946801662445, -0.003557392628863454, -1.1158525943756104, -0.42761358618736267, 0.34050437808036804, -0.6774783730506897, -0.4216874837875366, 0.25033292174339294, -0.6092012524604797, -0.21521827578544617, -0.01581905595958233, 0.6857173442840576, -0.5510532259941101, -0.34549441933631897, 0.012538773939013481, -0.26163122057914734, 0.3285928964614868, 0.1652056723833084, -0.4667382538318634, 0.21055859327316284, 0.30855512619018555, 1.1516691446304321, 0.10197649151086807, -0.41662195324897766, -0.33236753940582275, -0.37988510727882385, -0.24461185932159424, 0.4930269718170166, -0.16595257818698883, -0.24113252758979797, -0.26860055327415466, 0.39477524161338806, -0.043948352336883545, -0.7643056511878967, 0.14807823300361633, -0.17983482778072357, 0.37552472949028015, -0.1303044855594635, -0.2569276988506317, -0.49366867542266846, 0.3637266159057617, -0.427979052066803, 1.3160344362258911, 0.48631551861763, -0.8377158045768738, 0.39161548018455505, -0.4359816610813141, -0.11803263425827026, -0.17123490571975708, -0.06848310679197311, -1.1693012714385986, -0.08845401555299759, 0.21553325653076172, 0.6860633492469788, -0.28820255398750305, -0.04131505638360977, -0.5512955188751221, -0.23854169249534607, 0.3375380039215088, 0.1398393213748932, 0.9952069520950317, 0.07768949121236801, -0.3320212960243225, 0.30571407079696655, -0.6741547584533691, 0.19203239679336548, 0.49615249037742615, -0.26961398124694824, -0.11261092871427536, -0.6230446100234985, 0.1259610652923584, 0.29100388288497925, 0.1131715476512909, -0.5003782510757446, 0.4883614182472229, -0.051257241517305374, 0.4603511095046997, 0.6388013958930969, -0.12749265134334564, 0.3750256299972534, -0.4258333444595337, 0.3724815845489502, 0.2386527806520462, 0.244146928191185, -0.137535959482193, -0.5733195543289185, -0.7018680572509766, -0.6530135869979858, 0.4571065306663513, 0.4070083796977997, -0.5074642896652222, 0.470345139503479, -0.0684332400560379, -0.7457859516143799, -0.5751304030418396, 0.09054045379161835, 0.5986393094062805, 0.6412152051925659, 0.33521944284439087, -0.6059523224830627, -0.5063968896865845, -0.8412982821464539, 0.04356776550412178, -0.11139867454767227, -0.02838168479502201, 0.3841007947921753, 0.6045063138008118, -0.11561422795057297, 0.6778907179832458, -0.357620507478714, -0.2757915258407593, -0.2233656495809555, 0.2503795027732849, 0.4284481108188629, 0.7461394667625427, 0.8796114921569824, -0.561141848564148, -0.4937368631362915, -0.0175595935434103, -0.9033650159835815, 0.10318103432655334, -0.13141964375972748, -0.20515486598014832, 0.30419921875, 0.12826110422611237, -0.6735684871673584, 0.5774358510971069, 0.2550372779369354, -0.2640751302242279, 0.5931332111358643, -0.30823254585266113, 0.30903545022010803, -1.0972894430160522, 0.07896023988723755, 0.5062971115112305, -0.27908533811569214, -0.4253383278846741, 0.06759212166070938, 0.0290474072098732, -0.01172590535134077, -0.44399169087409973, 0.6917068958282471, -0.5794214010238647, -0.22210951149463654, -0.09856469929218292, -0.15615709125995636, 0.045580025762319565, 0.7010475397109985, -0.06555017083883286, 0.474033385515213, 0.8581908345222473, -0.44022175669670105, 0.47952190041542053, 0.40459513664245605, -0.2348250150680542, 0.4019176959991455, -0.7072554230690002, 0.2225961983203888, 0.002012987621128559, 0.2222796380519867, -1.150869369506836, -0.19886045157909393, 0.5155638456344604, -0.6656668782234192, 0.7747899293899536, -0.6720502376556396, -0.4709954261779785, -0.5805206894874573, -0.4891658127307892, 0.26359379291534424, 0.8443846702575684, -0.7592986226081848, 0.46293944120407104, 0.2713172137737274, 0.26244091987609863, -0.6483842730522156, -0.8090409636497498, -0.31916746497154236, -0.38303983211517334, -0.6226428151130676, 0.3344053626060486, 0.19627951085567474, 0.0885826125741005, 0.1500665694475174, -0.17512403428554535, 0.008985325694084167, -0.29329583048820496, 0.5168429017066956, 0.413839727640152, -0.2880213260650635, -0.06263279169797897, -0.3455713987350464, 0.013274542056024075, 0.03648253530263901, -0.33934447169303894, 0.5768349766731262, -0.25898924469947815, -0.09717061370611191, -0.6967793703079224, -0.15027303993701935, 0.5253239870071411, -0.1355622410774231, 0.824683427810669, 1.11630380153656, -0.4522463381290436, -0.038547515869140625, -0.44568222761154175, -0.24436333775520325, -0.49225160479545593, 0.39126354455947876, -0.36825892329216003, -0.4939497411251068, 0.9692900776863098, -0.02926522120833397, 0.04555245116353035, 0.5301808714866638, 0.41475698351860046, -0.11742039769887924, 0.6286060810089111, 0.6011554002761841, 0.11867274343967438, 0.8529365658760071, -0.9282036423683167, -0.2027764916419983, -0.8901677131652832, -0.5148434042930603, -0.36002856492996216, -0.5531946420669556, -0.7758228778839111, -0.41559037566185, 0.35187241435050964, 0.24746598303318024, -0.3457435965538025, 0.5542667508125305, -1.0200246572494507, 0.08585800975561142, 0.7555851936340332, 0.5971632599830627, -0.34602484107017517, 0.30968886613845825, -0.21035383641719818, 0.01571505330502987, -0.7768173813819885, -0.2705819010734558, 1.135323405265808, 0.4668395519256592, 0.8138895630836487, -0.3190874755382538, 0.7841123342514038, -0.18519292771816254, 0.46800321340560913, -0.6385946869850159, 0.5786950588226318, -0.11424337327480316, -0.4364035427570343, -0.14116744697093964, -0.41191989183425903, -1.0321097373962402, 0.1657121330499649, -0.2881973087787628, -0.8743011951446533, 0.1550769805908203, 0.2267414629459381, -0.17150339484214783, 0.7307664752006531, -0.88431715965271, 1.004467248916626, -0.10247576236724854, -0.4655187726020813, 0.09843012690544128, -0.7307605743408203, 0.29200613498687744, 0.2932833433151245, -0.24098391830921173, -0.05402074381709099, 0.23043020069599152, 1.0407514572143555, -0.5583491921424866, 0.7488135695457458, -0.46633580327033997, 0.3672776222229004, 0.6316182017326355, -0.16766700148582458, 0.39927515387535095, -0.033833377063274384, -0.07374982535839081, 0.41007199883461, 0.03071642853319645, -0.44528377056121826, -0.5157965421676636, 0.5873180627822876, -1.0174976587295532, -0.39349445700645447, -0.4386749863624573, -0.5146151781082153, 0.21646085381507874, 0.09607769548892975, 0.567963182926178, 0.5944060683250427, 0.19069555401802063, 0.19417540729045868, 0.6877924203872681, -0.49517855048179626, 0.34585848450660706, -0.09491239488124847, -0.3404277563095093, -0.5424290895462036, 0.8472517132759094, 0.2470027208328247, 0.1779083013534546, 0.12478522211313248, 0.2513521909713745, -0.3747476637363434, -0.4970531761646271, -0.2845248281955719, 0.5236364006996155, -0.6820719838142395, -0.4266268014907837, -0.5678880214691162, -0.458234578371048, -0.46605756878852844, -0.08432862162590027, -0.42432475090026855, -0.27652111649513245, -0.3139564096927643, 0.20975783467292786, 0.7916929125785828, 0.6323758959770203, -0.1656297743320465, 0.5775291323661804, -0.5772565603256226, 0.23409460484981537, 0.17187707126140594, 0.4873139560222626, -0.22775964438915253, -0.9161925911903381, -0.22364620864391327, -0.17590473592281342, -0.4645382761955261, -0.7766163945198059, 0.529468834400177, 0.0652158260345459, 0.5698480010032654, 0.287211537361145, -0.2552781403064728, 0.8261597752571106, -0.12054181098937988, 0.5422413349151611, 0.4616408050060272, -0.603735089302063, 0.5879527926445007, -0.0647098496556282, 0.1656806319952011, 0.03612788766622543, 0.3470187783241272, -0.29219987988471985, -0.14164987206459045, -1.0188682079315186, -0.7048641443252563, 0.9142575860023499, 0.10220734030008316, -0.1447291076183319, 0.4110078811645508, 0.8182522058486938, 0.15032216906547546, 0.16182000935077667, -0.8182677626609802, -0.4831102192401886, -0.36923083662986755, -0.19270674884319305, 0.07082688808441162, -0.042279381304979324, -0.19714349508285522, -0.7133384943008423, 0.6432026624679565, -0.03615272417664528, 0.8216297030448914, 0.3705841600894928, 0.022866642102599144, -0.1722617745399475, -0.37017545104026794, 0.4187717139720917, 0.35121431946754456, -0.38560742139816284, -0.009718701243400574, 0.2168601006269455, -0.5434404015541077, 0.07730599492788315, 0.18700651824474335, 0.05797147750854492, 0.10774372518062592, 0.41786864399909973, 0.9241079092025757, -0.11688920855522156, 0.031511977314949036, 0.3605339825153351, -0.04392964020371437, -0.41321492195129395, -0.19727690517902374, 0.1611947864294052, -0.12062017619609833, 0.4910159409046173, 0.33022066950798035, 0.2887679934501648, -0.19200538098812103, -0.3915550410747528, 0.3630794584751129, 0.6135550737380981, -0.32905063033103943, -0.3651321232318878, 0.6628844141960144, -0.3298850357532501, -0.2306227684020996, 0.85940021276474, -0.10793714970350266, -0.5206819772720337, 1.0654957294464111, 0.4873937964439392, 0.9135838747024536, -0.08060357719659805, 0.11024059355258942, 0.8678853511810303, 0.3006591498851776, -0.02069411240518093, 0.17625792324543, 0.1569550335407257, -0.6434758305549622, 0.07525976747274399, -0.5346878170967102, -0.05691670998930931, 0.4847066402435303, -0.5676980018615723, 0.3699849247932434, -0.7341365814208984, -0.42865318059921265, 0.11003664880990982, 0.31836453080177307, -0.9207862019538879, 0.28856581449508667, 0.007527053821831942, 0.8113354444503784, -0.7288385629653931, 0.7869743704795837, 0.9712883234024048, -0.555232584476471, -0.95423823595047, -0.10223416239023209, -0.03511751815676689, -1.0695500373840332, 0.47329723834991455, 0.445423424243927, 0.2200213372707367, 0.009523422457277775, -0.958933413028717, -0.5475296974182129, 1.428870677947998, 0.5129692554473877, -0.1721893697977066, 0.20560990273952484, -0.2046491950750351, 0.28646159172058105, -0.39849215745925903, 0.3864651322364807, 0.2374439388513565, 0.3784336447715759, 0.3825681507587433, -0.6423419117927551, 0.25991588830947876, -0.1938474476337433, 0.07593760639429092, 0.23154425621032715, -0.8617903590202332, 0.8891829252243042, -0.5303500294685364, -0.1487135887145996, 0.02593041956424713, 0.6826512813568115, 0.3886643052101135, 0.11041218042373657, 0.4391250014305115, 0.8646199107170105, 0.5986542105674744, -0.4545203745365143, 1.0015496015548706, -0.01645652949810028, 0.7219006419181824, 0.6342834234237671, 0.394344300031662, 0.43556874990463257, 0.3897353708744049, -0.32634955644607544, 0.3895958364009857, 1.1097464561462402, -0.41789939999580383, 0.425351619720459, 0.2761164605617523, 0.00006201123323990032, -0.1508452594280243, 0.13186340034008026, -0.48087820410728455, 0.3355270326137543, 0.1907864362001419, -0.5164490938186646, -0.17644885182380676, 0.0853203758597374, 0.010907127521932125, -0.3770429193973541, -0.213869109749794, 0.49073076248168945, 0.07192900776863098, -0.41116073727607727, 0.7952449917793274, -0.03641302138566971, 0.7864721417427063, -0.5092918276786804, -0.02216092124581337, -0.25858765840530396, 0.21254388988018036, -0.37185579538345337, -0.9564438462257385, 0.16156694293022156, -0.2842446565628052, 0.01304501760751009, -0.006608005613088608, 0.7469005584716797, -0.41501709818840027, -0.4070777893066406, 0.1902974247932434, 0.3062952160835266, 0.49814265966415405, 0.11739972978830338, -1.276232123374939, 0.17724177241325378, -0.056883834302425385, -0.7368499040603638, 0.387717068195343, 0.5324210524559021, 0.13443441689014435, 0.7738028764724731, 0.5535483360290527, -0.09121929109096527, 0.13078628480434418, -0.16129302978515625, 0.8647133111953735, -0.5088934898376465, -0.17366914451122284, -0.8233891725540161, 0.7311114072799683, -0.09045957773923874, -0.5320230722427368, 0.5224450826644897, 0.5336900949478149, 0.9193117022514343, -0.04325634241104126, 0.6045689582824707, -0.3439820110797882, -0.11471030116081238, -0.37726378440856934, 0.7630431652069092, -0.8189725279808044, -0.14149996638298035, -0.25706398487091064, -0.66374272108078, -0.36290988326072693, 0.84674471616745, -0.23056255280971527, 0.40852293372154236, 0.4957175552845001, 0.9831677079200745, -0.27549979090690613, -0.5124558210372925, 0.24290482699871063, 0.14834420382976532, 0.14112937450408936, 0.3525882661342621, 0.40372470021247864, -0.8342655301094055, 0.388913631439209, -0.5398505330085754, -0.2681138813495636, -0.13988050818443298, -0.6716099977493286, -1.1188563108444214, -0.8671150207519531, -0.7321744561195374, -0.8348885178565979, -0.1470981389284134, 0.8874752521514893, 1.0824687480926514, -0.7084012031555176, -0.1320226937532425, 0.0677376389503479, 0.2724713385105133, -0.2833540141582489, -0.23820534348487854, 0.5612169504165649, -0.20591533184051514, -0.7651088833808899, -0.3904908001422882, 0.11380445957183838, 0.42154616117477417, -0.0034470632672309875, -0.21775008738040924, -0.1784151792526245, -0.23482106626033783, 0.22375887632369995, 0.4510001540184021, -0.726649284362793, -0.312168151140213, -0.18278247117996216, -0.2209668904542923, 0.5407195687294006, 0.4432865381240845, -0.6506015658378601, 0.44879698753356934, 0.4395981729030609, 0.27483418583869934, 0.8751651644706726, -0.18164914846420288, 0.06679873168468475, -0.8831607103347778, 0.5276700258255005, -0.2109379768371582, 0.5150957703590393, 0.39888375997543335, -0.358620822429657, 0.5846413373947144, 0.47518202662467957, -0.5636535882949829, -0.9243175387382507, -0.05551214888691902, -1.2041218280792236, -0.11825834959745407, 0.9205850958824158, -0.4094228744506836, -0.6149187088012695, 0.5128391981124878, -0.16753749549388885, 0.7449202537536621, -0.15739940106868744, 0.6071867346763611, 0.43336838483810425, -0.15552875399589539, -0.7976547479629517, -0.4705134630203247, 0.446402370929718, 0.008211832493543625, -0.6501016616821289, -0.3904989957809448, 0.01585943065583706, 0.7509572505950928, 0.2721303701400757, 0.538945198059082, -0.208452507853508, 0.17275464534759521, 0.10544317215681076, 0.6290396451950073, -0.37424299120903015, -0.07522692531347275, -0.3171751797199249, 0.04033350571990013, -0.12328986823558807, -0.6724908351898193 ]
timm/botnet26t_256.c1_in1k
timm
"2023-04-26T16:09:11Z"
41,138
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:08:51Z"
--- tags: - image-classification - timm library_name: timm license: apache-2.0 datasets: - imagenet-1k --- # Model card for botnet26t_256.c1_in1k A BotNet image classification model (, 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) `C` recipes * SGD (w/ Nesterov) optimizer and AGC (adaptive gradient clipping). * 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): 12.5 - GMACs: 3.3 - Activations (M): 12.0 - 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('botnet26t_256.c1_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( 'botnet26t_256.c1_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, 64, 128, 128]) # torch.Size([1, 256, 64, 64]) # torch.Size([1, 512, 32, 32]) # torch.Size([1, 1024, 16, 16]) # torch.Size([1, 2048, 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( 'botnet26t_256.c1_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, 2048, 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.46320298314094543, -0.48564085364341736, -0.04166669771075249, 0.05082808807492256, -0.2475910186767578, -0.24927093088626862, -0.24322594702243805, -0.36040621995925903, 0.22294700145721436, 0.5342473983764648, -0.4990198016166687, -0.6251991391181946, -0.6754564046859741, -0.06166620925068855, -0.15708523988723755, 0.903444766998291, -0.02775171771645546, -0.03553427755832672, -0.12386324256658554, -0.5019378662109375, -0.34523871541023254, -0.36571744084358215, -0.9824365973472595, -0.37550652027130127, 0.4286991059780121, 0.17780648171901703, 0.47497105598449707, 0.6778655052185059, 0.7370278835296631, 0.4956647455692291, -0.051325008273124695, 0.11013396829366684, -0.2393917739391327, -0.18983706831932068, 0.24074438214302063, -0.6304901838302612, -0.44755735993385315, 0.27455052733421326, 0.6080380082130432, 0.25033795833587646, 0.03628195822238922, 0.43778127431869507, 0.025622783228754997, 0.613366425037384, -0.22069554030895233, 0.05054527893662453, -0.5258052945137024, 0.22705425322055817, -0.22769244015216827, -0.011501923203468323, -0.4159001111984253, -0.23962557315826416, 0.2042778581380844, -0.41899535059928894, 0.5366156101226807, 0.13998036086559296, 1.3347660303115845, 0.26793164014816284, 0.05865912884473801, 0.06457877159118652, -0.2244439572095871, 0.7962989807128906, -0.7489781379699707, 0.2944992482662201, 0.21342401206493378, 0.2974976599216461, -0.13110508024692535, -0.9849307537078857, -0.5662859082221985, -0.20761127769947052, -0.08301836997270584, 0.07297401875257492, -0.28091564774513245, 0.005827588494867086, 0.34352216124534607, 0.2284611463546753, -0.4842382073402405, 0.09801141917705536, -0.612036943435669, -0.21480686962604523, 0.5211106538772583, 0.015310768969357014, 0.3088463544845581, -0.3124650716781616, -0.578437864780426, -0.3947550356388092, -0.3277665674686432, 0.2560049295425415, 0.2981823682785034, 0.2412995547056198, -0.5967536568641663, 0.3305966258049011, 0.17046265304088593, 0.5751245617866516, 0.01059757824987173, -0.2633911371231079, 0.5593587756156921, 0.05722213536500931, -0.41767531633377075, -0.25249671936035156, 1.1155041456222534, 0.33705833554267883, 0.35332155227661133, 0.10930678248405457, -0.23002037405967712, -0.36755406856536865, 0.14769969880580902, -1.0282204151153564, -0.4331560432910919, 0.32476991415023804, -0.6862490177154541, -0.4183552861213684, 0.24484513700008392, -0.6355701684951782, -0.1878485083580017, 0.019613686949014664, 0.5457744002342224, -0.6261356472969055, -0.3364962935447693, -0.0008790453430265188, -0.28826555609703064, 0.2894976735115051, 0.29518404603004456, -0.42269471287727356, 0.2157127410173416, 0.2947752773761749, 1.201290249824524, -0.01515274215489626, -0.41238933801651, -0.23067572712898254, -0.38000544905662537, -0.23894041776657104, 0.5029354095458984, -0.00890593696385622, -0.021167919039726257, -0.3537728190422058, 0.3373134136199951, -0.1392783671617508, -0.7607342004776001, 0.050571925938129425, -0.32381778955459595, 0.2583580017089844, 0.08215650916099548, -0.20973314344882965, -0.5739254951477051, 0.3798636198043823, -0.5374764800071716, 1.127042531967163, 0.3122318387031555, -0.8573890924453735, 0.254024863243103, -0.6309366822242737, -0.16837318241596222, -0.19216379523277283, -0.05070026218891144, -1.1147178411483765, -0.08631713688373566, 0.16414004564285278, 0.7205621600151062, -0.3423687219619751, -0.010365151800215244, -0.5474907159805298, -0.24498198926448822, 0.4553360044956207, -0.16003313660621643, 1.0906442403793335, 0.17654694616794586, -0.40536198019981384, 0.27662140130996704, -0.5867247581481934, 0.09940294176340103, 0.6522942781448364, -0.1896928995847702, 0.06086958199739456, -0.560556948184967, 0.14761783182621002, 0.2934400737285614, 0.14134636521339417, -0.5631960034370422, 0.2181565761566162, -0.21892233192920685, 0.5370455384254456, 0.7324011325836182, -0.11293193697929382, 0.22515200078487396, -0.4645382761955261, 0.3511671721935272, 0.3128790855407715, 0.33065009117126465, -0.11983677744865417, -0.5666996836662292, -0.8507266640663147, -0.5953437089920044, 0.4160935580730438, 0.4448939561843872, -0.536871075630188, 0.46554309129714966, -0.17847184836864471, -0.6773976683616638, -0.5278246998786926, 0.11049343645572662, 0.5441179871559143, 0.5796853303909302, 0.36151430010795593, -0.6061440110206604, -0.5525634288787842, -0.940876841545105, 0.054098717868328094, 0.0489671491086483, 0.07103583216667175, 0.3505786657333374, 0.6785723567008972, -0.05842171236872673, 0.726442813873291, -0.3701188564300537, -0.33072906732559204, -0.3213931918144226, 0.10538803040981293, 0.42792630195617676, 0.8065083622932434, 0.7928910255432129, -0.6330409646034241, -0.5413697361946106, -0.1186615452170372, -0.8542270064353943, 0.1868315041065216, -0.1375240683555603, -0.1285342574119568, 0.37707242369651794, 0.1471131294965744, -0.5316052436828613, 0.6716856360435486, 0.16291479766368866, -0.11281457543373108, 0.41097700595855713, -0.2259412556886673, 0.2171591967344284, -1.1349953413009644, 0.11223053187131882, 0.360563725233078, -0.2660539746284485, -0.4169338643550873, 0.08165275305509567, 0.047777336090803146, -0.11147678643465042, -0.514363169670105, 0.6810340881347656, -0.5341391563415527, -0.1818583458662033, -0.16105243563652039, -0.18287017941474915, -0.04767818748950958, 0.8569044470787048, -0.05954417586326599, 0.48706233501434326, 0.8118486404418945, -0.43036124110221863, 0.5460671782493591, 0.268187552690506, -0.1311291754245758, 0.4255845248699188, -0.6967335939407349, 0.26667657494544983, 0.015141209587454796, 0.1932862401008606, -1.125731110572815, -0.22487257421016693, 0.5125258564949036, -0.7052145600318909, 0.6834445595741272, -0.534407377243042, -0.467817097902298, -0.6380841135978699, -0.4766118824481964, 0.40106838941574097, 0.7717530131340027, -0.723599910736084, 0.48338478803634644, 0.22061508893966675, 0.39477062225341797, -0.534830629825592, -0.8030921220779419, -0.15833216905593872, -0.4330260753631592, -0.6306125521659851, 0.2478458136320114, 0.15607179701328278, 0.15425750613212585, 0.07874081283807755, -0.12071005254983902, -0.08461489528417587, -0.09227871149778366, 0.603395938873291, 0.3793627917766571, -0.24077583849430084, -0.09095337986946106, -0.47631749510765076, -0.04627777636051178, -0.01421331986784935, -0.31586790084838867, 0.7169308662414551, -0.26133573055267334, -0.1642003208398819, -0.9332860112190247, -0.07082618027925491, 0.47079232335090637, -0.190520241856575, 0.757839560508728, 1.0646339654922485, -0.5189967751502991, -0.03606364503502846, -0.5324962139129639, -0.30125874280929565, -0.5046963691711426, 0.4832455813884735, -0.3646438419818878, -0.40086647868156433, 0.8703396916389465, -0.01761963777244091, -0.035382431000471115, 0.6455625891685486, 0.36960569024086, -0.17853593826293945, 0.6560289859771729, 0.6210587620735168, 0.1090240404009819, 0.8148137927055359, -0.9447041153907776, -0.2208295464515686, -0.8715123534202576, -0.4407888352870941, -0.29017579555511475, -0.6507775187492371, -0.6962589025497437, -0.3713870048522949, 0.44236883521080017, 0.06714064627885818, -0.4238881766796112, 0.5760737657546997, -0.8494756817817688, 0.027171665802598, 0.781746506690979, 0.6695013642311096, -0.4010387659072876, 0.2973357141017914, -0.164995014667511, 0.005582460667937994, -0.8481333255767822, -0.2274991124868393, 1.1420961618423462, 0.49720996618270874, 0.6300749182701111, -0.20032019913196564, 0.7615343332290649, -0.056531284004449844, 0.4042142331600189, -0.5601558685302734, 0.6606377959251404, -0.14147499203681946, -0.5367863774299622, -0.18333742022514343, -0.44752758741378784, -1.1251376867294312, -0.031197378411889076, -0.24048040807247162, -0.8141175508499146, 0.04081299155950546, 0.18290303647518158, -0.23690910637378693, 0.7972617745399475, -0.8431738018989563, 0.9389550089836121, -0.15721119940280914, -0.398672491312027, -0.04803415387868881, -0.7892579436302185, 0.25941649079322815, 0.1793653815984726, -0.2735806703567505, -0.09777192026376724, 0.18535470962524414, 1.0749846696853638, -0.6006152629852295, 0.931302011013031, -0.37979254126548767, 0.3947407007217407, 0.5171130895614624, -0.14694473147392273, 0.2812114655971527, -0.16433225572109222, -0.03723330795764923, 0.4799051880836487, -0.049928631633520126, -0.49210140109062195, -0.5651172399520874, 0.4761542081832886, -0.9846694469451904, -0.4637371897697449, -0.37780290842056274, -0.5163123607635498, 0.27483069896698, 0.14540556073188782, 0.5119556784629822, 0.6768031120300293, 0.31305262446403503, 0.19510552287101746, 0.5723981261253357, -0.5053293704986572, 0.4178512990474701, -0.04861826077103615, -0.1448884904384613, -0.5733840465545654, 0.9318701028823853, 0.2709735035896301, 0.19396807253360748, 0.2541913390159607, 0.17859265208244324, -0.23202335834503174, -0.49267375469207764, -0.27229076623916626, 0.3843577802181244, -0.6559517979621887, -0.5765500068664551, -0.5171789526939392, -0.5987808108329773, -0.45694586634635925, -0.029696108773350716, -0.5081949234008789, -0.27938640117645264, -0.29431045055389404, 0.36366787552833557, 0.7882013916969299, 0.5712850093841553, -0.08914569765329361, 0.6462842226028442, -0.5189302563667297, 0.20438943803310394, 0.05588380992412567, 0.5188769102096558, -0.03812567889690399, -0.9269549250602722, -0.24619486927986145, -0.15448299050331116, -0.49211081862449646, -0.7955676913261414, 0.47979602217674255, 0.08160104602575302, 0.49647265672683716, 0.32844552397727966, -0.20020753145217896, 0.720736026763916, -0.12058208882808685, 0.47508302330970764, 0.4306871294975281, -0.5732663869857788, 0.6250496506690979, 0.001130820601247251, 0.16168168187141418, 0.018699225038290024, 0.296926885843277, -0.29077333211898804, -0.10868629068136215, -1.028138279914856, -0.6242488026618958, 0.9405107498168945, 0.09560052305459976, -0.09357650578022003, 0.296217679977417, 0.7062423229217529, 0.04339258745312691, 0.06032029911875725, -0.7697752714157104, -0.4179871082305908, -0.29107391834259033, -0.2887614965438843, 0.08163132518529892, 0.02823731303215027, -0.052130430936813354, -0.6234566569328308, 0.6017475128173828, 0.031774528324604034, 0.8391162157058716, 0.3379858434200287, -0.03365557640790939, -0.0226548220962286, -0.46873074769973755, 0.4174535274505615, 0.22663795948028564, -0.35226204991340637, 0.12021446973085403, 0.2561907470226288, -0.5680505633354187, 0.03110036998987198, 0.06749575585126877, 0.013747417367994785, -0.03515934944152832, 0.52121901512146, 0.8689486980438232, -0.12553612887859344, -0.05938469246029854, 0.4291658103466034, 0.003226144704967737, -0.3230727016925812, -0.26169925928115845, 0.22367237508296967, -0.20120498538017273, 0.5229980945587158, 0.24294202029705048, 0.46125510334968567, -0.21521727740764618, -0.26747560501098633, 0.3103400766849518, 0.5921456217765808, -0.26501744985580444, -0.3343442380428314, 0.698848307132721, -0.22663970291614532, -0.3837985396385193, 0.8991314768791199, -0.08211350440979004, -0.5764105916023254, 1.125166893005371, 0.4459328055381775, 0.9955907464027405, -0.02601112797856331, -0.014376257546246052, 0.7428736090660095, 0.3054318130016327, 0.10677918791770935, 0.20419129729270935, 0.14113900065422058, -0.7321075201034546, 0.1254195123910904, -0.4173235595226288, 0.0392458476126194, 0.3903999924659729, -0.44947612285614014, 0.3582165241241455, -0.864223837852478, -0.53617262840271, 0.1095094382762909, 0.3013516962528229, -1.0517202615737915, 0.2668929398059845, -0.04679151251912117, 0.8842378258705139, -0.612057089805603, 0.7601693868637085, 0.8468457460403442, -0.6177789568901062, -0.885132908821106, -0.058136261999607086, 0.023858923465013504, -1.0879956483840942, 0.612565815448761, 0.46981891989707947, 0.1270526796579361, 0.10268240422010422, -0.9207440614700317, -0.5966840982437134, 1.3719717264175415, 0.4843851625919342, -0.10438671708106995, 0.29969048500061035, -0.11413393914699554, 0.23666439950466156, -0.38192081451416016, 0.4538690745830536, 0.10461726784706116, 0.28497540950775146, 0.24421849846839905, -0.6752244830131531, 0.2848943769931793, -0.2728216350078583, 0.11831162124872208, 0.12863504886627197, -0.9288225769996643, 0.8923014402389526, -0.49068915843963623, -0.19393964111804962, 0.09892181307077408, 0.6887326836585999, 0.21930913627147675, 0.16142193973064423, 0.5104137063026428, 0.7750736474990845, 0.4955780804157257, -0.2645544111728668, 0.8979477882385254, -0.09916258603334427, 0.560269296169281, 0.6371959447860718, 0.4019821882247925, 0.5584601163864136, 0.36280253529548645, -0.3006323575973511, 0.29794901609420776, 1.0844051837921143, -0.4502336382865906, 0.31065577268600464, 0.3036671578884125, 0.17399753630161285, -0.15465743839740753, 0.07184389233589172, -0.3740198016166687, 0.477710098028183, 0.12654584646224976, -0.4879509210586548, -0.14767447113990784, 0.10982766002416611, -0.07662612199783325, -0.2922821342945099, -0.13662366569042206, 0.4838239252567291, -0.002283763140439987, -0.338699072599411, 0.8403835296630859, 0.10320785641670227, 0.8411743640899658, -0.376682311296463, 0.035353727638721466, -0.30149534344673157, 0.20001251995563507, -0.24717353284358978, -0.8355500102043152, 0.21754957735538483, -0.2374638020992279, -0.02354479767382145, -0.0022361206356436014, 0.7032780647277832, -0.2162681370973587, -0.3983156681060791, 0.19285249710083008, 0.29647305607795715, 0.6058749556541443, 0.018289288505911827, -1.2166194915771484, 0.23040050268173218, -0.03527003154158592, -0.5421106815338135, 0.2446168065071106, 0.49662160873413086, 0.05708963796496391, 0.8610143065452576, 0.5267674326896667, -0.04728665202856064, 0.16124266386032104, -0.18157179653644562, 0.80289626121521, -0.5687875747680664, -0.20478913187980652, -0.8402041792869568, 0.5575849413871765, -0.1624213457107544, -0.5420156121253967, 0.5263203978538513, 0.5516533255577087, 0.9286624193191528, -0.10892739146947861, 0.44651585817337036, -0.25990888476371765, -0.023343484848737717, -0.3747197091579437, 0.7001401782035828, -0.7995908260345459, -0.029909634962677956, -0.17826461791992188, -0.6076686978340149, -0.36607250571250916, 0.7111703753471375, -0.2526189684867859, 0.45474186539649963, 0.4579768776893616, 0.9868883490562439, -0.33096832036972046, -0.4809246063232422, 0.21437358856201172, 0.12300892919301987, 0.09422112256288528, 0.4911706745624542, 0.4536108672618866, -0.7917954921722412, 0.34544509649276733, -0.5585897564888, -0.18316468596458435, -0.20577815175056458, -0.6057930588722229, -1.1054162979125977, -0.9068765640258789, -0.6394699215888977, -0.6594754457473755, -0.0994064062833786, 0.9548780918121338, 1.1126267910003662, -0.6870601177215576, -0.16509468853473663, 0.028339140117168427, 0.2303457409143448, -0.3099867105484009, -0.23226681351661682, 0.5540327429771423, -0.28322193026542664, -0.7351229786872864, -0.37518948316574097, 0.1542823612689972, 0.39993950724601746, -0.03694066032767296, -0.19041427969932556, -0.23851250112056732, -0.23154015839099884, 0.13426326215267181, 0.363629013299942, -0.7457013726234436, -0.2653721570968628, -0.1542903184890747, -0.16093936562538147, 0.49864661693573, 0.46289679408073425, -0.5815251469612122, 0.32517504692077637, 0.38541874289512634, 0.4381798505783081, 0.7465288043022156, -0.30403345823287964, 0.06019614636898041, -0.8971785306930542, 0.544723391532898, -0.18977774679660797, 0.4690048396587372, 0.3924886882305145, -0.33936572074890137, 0.5998279452323914, 0.5872738361358643, -0.38774722814559937, -0.8589975237846375, -0.03434433043003082, -1.1705100536346436, -0.16692401468753815, 0.8046789765357971, -0.33942627906799316, -0.5960661172866821, 0.420986533164978, -0.1072254478931427, 0.749485194683075, -0.12117357552051544, 0.5922310948371887, 0.24720525741577148, -0.09544074535369873, -0.7317997813224792, -0.5448789596557617, 0.3592558205127716, 0.17211702466011047, -0.5719261765480042, -0.40940046310424805, -0.06405587494373322, 0.6747418642044067, 0.2946111559867859, 0.4892357587814331, -0.12523233890533447, 0.1294853836297989, 0.07792886346578598, 0.5593284964561462, -0.4121566414833069, -0.27506858110427856, -0.2897833585739136, 0.01916738599538803, -0.1517917364835739, -0.7433757781982422 ]
peft-internal-testing/tiny-OPTForCausalLM-lora
peft-internal-testing
"2023-07-13T12:51:06Z"
41,002
0
peft
[ "peft", "region:us" ]
null
"2023-07-13T12:51:05Z"
--- 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 ]
intfloat/e5-base-v2
intfloat
"2023-09-27T10:13:27Z"
40,984
60
sentence-transformers
[ "sentence-transformers", "pytorch", "onnx", "safetensors", "bert", "mteb", "Sentence Transformers", "sentence-similarity", "en", "arxiv:2212.03533", "arxiv:2104.08663", "arxiv:2210.07316", "license:mit", "model-index", "endpoints_compatible", "has_space", "region:us" ]
sentence-similarity
"2023-05-19T07:21:14Z"
--- tags: - mteb - Sentence Transformers - sentence-similarity - sentence-transformers model-index: - name: e5-base-v2 results: - task: type: Classification dataset: type: mteb/amazon_counterfactual name: MTEB AmazonCounterfactualClassification (en) config: en split: test revision: e8379541af4e31359cca9fbcf4b00f2671dba205 metrics: - type: accuracy value: 77.77611940298506 - type: ap value: 42.052710266606056 - type: f1 value: 72.12040628266567 - task: type: Classification dataset: type: mteb/amazon_polarity name: MTEB AmazonPolarityClassification config: default split: test revision: e2d317d38cd51312af73b3d32a06d1a08b442046 metrics: - type: accuracy value: 92.81012500000001 - type: ap value: 89.4213700757244 - type: f1 value: 92.8039091197065 - task: type: Classification dataset: type: mteb/amazon_reviews_multi name: MTEB AmazonReviewsClassification (en) config: en split: test revision: 1399c76144fd37290681b995c656ef9b2e06e26d metrics: - type: accuracy value: 46.711999999999996 - type: f1 value: 46.11544975436018 - task: type: Retrieval dataset: type: arguana name: MTEB ArguAna config: default split: test revision: None metrics: - type: map_at_1 value: 23.186 - type: map_at_10 value: 36.632999999999996 - type: map_at_100 value: 37.842 - type: map_at_1000 value: 37.865 - type: map_at_3 value: 32.278 - type: map_at_5 value: 34.760999999999996 - type: mrr_at_1 value: 23.400000000000002 - type: mrr_at_10 value: 36.721 - type: mrr_at_100 value: 37.937 - type: mrr_at_1000 value: 37.96 - type: mrr_at_3 value: 32.302 - type: mrr_at_5 value: 34.894 - type: ndcg_at_1 value: 23.186 - type: ndcg_at_10 value: 44.49 - type: ndcg_at_100 value: 50.065000000000005 - type: ndcg_at_1000 value: 50.629999999999995 - type: ndcg_at_3 value: 35.461 - type: ndcg_at_5 value: 39.969 - type: precision_at_1 value: 23.186 - type: precision_at_10 value: 6.97 - type: precision_at_100 value: 0.951 - type: precision_at_1000 value: 0.099 - type: precision_at_3 value: 14.912 - type: precision_at_5 value: 11.152 - type: recall_at_1 value: 23.186 - type: recall_at_10 value: 69.70100000000001 - type: recall_at_100 value: 95.092 - type: recall_at_1000 value: 99.431 - type: recall_at_3 value: 44.737 - type: recall_at_5 value: 55.761 - task: type: Clustering dataset: type: mteb/arxiv-clustering-p2p name: MTEB ArxivClusteringP2P config: default split: test revision: a122ad7f3f0291bf49cc6f4d32aa80929df69d5d metrics: - type: v_measure value: 46.10312401440185 - task: type: Clustering dataset: type: mteb/arxiv-clustering-s2s name: MTEB ArxivClusteringS2S config: default split: test revision: f910caf1a6075f7329cdf8c1a6135696f37dbd53 metrics: - type: v_measure value: 39.67275326095384 - task: type: Reranking dataset: type: mteb/askubuntudupquestions-reranking name: MTEB AskUbuntuDupQuestions config: default split: test revision: 2000358ca161889fa9c082cb41daa8dcfb161a54 metrics: - type: map value: 58.97793816337376 - type: mrr value: 72.76832431957087 - task: type: STS dataset: type: mteb/biosses-sts name: MTEB BIOSSES config: default split: test revision: d3fb88f8f02e40887cd149695127462bbcf29b4a metrics: - type: cos_sim_pearson value: 83.11646947018187 - type: cos_sim_spearman value: 81.40064994975234 - type: euclidean_pearson value: 82.37355689019232 - type: euclidean_spearman value: 81.6777646977348 - type: manhattan_pearson value: 82.61101422716945 - type: manhattan_spearman value: 81.80427360442245 - task: type: Classification dataset: type: mteb/banking77 name: MTEB Banking77Classification config: default split: test revision: 0fd18e25b25c072e09e0d92ab615fda904d66300 metrics: - type: accuracy value: 83.52922077922076 - type: f1 value: 83.45298679360866 - task: type: Clustering dataset: type: mteb/biorxiv-clustering-p2p name: MTEB BiorxivClusteringP2P config: default split: test revision: 65b79d1d13f80053f67aca9498d9402c2d9f1f40 metrics: - type: v_measure value: 37.495115019668496 - task: type: Clustering dataset: type: mteb/biorxiv-clustering-s2s name: MTEB BiorxivClusteringS2S config: default split: test revision: 258694dd0231531bc1fd9de6ceb52a0853c6d908 metrics: - type: v_measure value: 32.724792944166765 - task: type: Retrieval dataset: type: BeIR/cqadupstack name: MTEB CQADupstackAndroidRetrieval config: default split: test revision: None metrics: - type: map_at_1 value: 32.361000000000004 - type: map_at_10 value: 43.765 - type: map_at_100 value: 45.224 - type: map_at_1000 value: 45.35 - type: map_at_3 value: 40.353 - type: map_at_5 value: 42.195 - type: mrr_at_1 value: 40.629 - type: mrr_at_10 value: 50.458000000000006 - type: mrr_at_100 value: 51.06699999999999 - type: mrr_at_1000 value: 51.12 - type: mrr_at_3 value: 47.902 - type: mrr_at_5 value: 49.447 - type: ndcg_at_1 value: 40.629 - type: ndcg_at_10 value: 50.376 - type: ndcg_at_100 value: 55.065 - type: ndcg_at_1000 value: 57.196000000000005 - type: ndcg_at_3 value: 45.616 - type: ndcg_at_5 value: 47.646 - type: precision_at_1 value: 40.629 - type: precision_at_10 value: 9.785 - type: precision_at_100 value: 1.562 - type: precision_at_1000 value: 0.2 - type: precision_at_3 value: 22.031 - type: precision_at_5 value: 15.737000000000002 - type: recall_at_1 value: 32.361000000000004 - type: recall_at_10 value: 62.214000000000006 - type: recall_at_100 value: 81.464 - type: recall_at_1000 value: 95.905 - type: recall_at_3 value: 47.5 - type: recall_at_5 value: 53.69500000000001 - task: type: Retrieval dataset: type: BeIR/cqadupstack name: MTEB CQADupstackEnglishRetrieval config: default split: test revision: None metrics: - type: map_at_1 value: 27.971 - type: map_at_10 value: 37.444 - type: map_at_100 value: 38.607 - type: map_at_1000 value: 38.737 - type: map_at_3 value: 34.504000000000005 - type: map_at_5 value: 36.234 - type: mrr_at_1 value: 35.35 - type: mrr_at_10 value: 43.441 - type: mrr_at_100 value: 44.147999999999996 - type: mrr_at_1000 value: 44.196000000000005 - type: mrr_at_3 value: 41.285 - type: mrr_at_5 value: 42.552 - type: ndcg_at_1 value: 35.35 - type: ndcg_at_10 value: 42.903999999999996 - type: ndcg_at_100 value: 47.406 - type: ndcg_at_1000 value: 49.588 - type: ndcg_at_3 value: 38.778 - type: ndcg_at_5 value: 40.788000000000004 - type: precision_at_1 value: 35.35 - type: precision_at_10 value: 8.083 - type: precision_at_100 value: 1.313 - type: precision_at_1000 value: 0.18 - type: precision_at_3 value: 18.769 - type: precision_at_5 value: 13.439 - type: recall_at_1 value: 27.971 - type: recall_at_10 value: 52.492000000000004 - type: recall_at_100 value: 71.642 - type: recall_at_1000 value: 85.488 - type: recall_at_3 value: 40.1 - type: recall_at_5 value: 45.800000000000004 - task: type: Retrieval dataset: type: BeIR/cqadupstack name: MTEB CQADupstackGamingRetrieval config: default split: test revision: None metrics: - type: map_at_1 value: 39.898 - type: map_at_10 value: 51.819 - type: map_at_100 value: 52.886 - type: map_at_1000 value: 52.941 - type: map_at_3 value: 48.619 - type: map_at_5 value: 50.493 - type: mrr_at_1 value: 45.391999999999996 - type: mrr_at_10 value: 55.230000000000004 - type: mrr_at_100 value: 55.887 - type: mrr_at_1000 value: 55.916 - type: mrr_at_3 value: 52.717000000000006 - type: mrr_at_5 value: 54.222 - type: ndcg_at_1 value: 45.391999999999996 - type: ndcg_at_10 value: 57.586999999999996 - type: ndcg_at_100 value: 61.745000000000005 - type: ndcg_at_1000 value: 62.83800000000001 - type: ndcg_at_3 value: 52.207 - type: ndcg_at_5 value: 54.925999999999995 - type: precision_at_1 value: 45.391999999999996 - type: precision_at_10 value: 9.21 - type: precision_at_100 value: 1.226 - type: precision_at_1000 value: 0.136 - type: precision_at_3 value: 23.177 - type: precision_at_5 value: 16.038 - type: recall_at_1 value: 39.898 - type: recall_at_10 value: 71.18900000000001 - type: recall_at_100 value: 89.082 - type: recall_at_1000 value: 96.865 - type: recall_at_3 value: 56.907 - type: recall_at_5 value: 63.397999999999996 - task: type: Retrieval dataset: type: BeIR/cqadupstack name: MTEB CQADupstackGisRetrieval config: default split: test revision: None metrics: - type: map_at_1 value: 22.706 - type: map_at_10 value: 30.818 - type: map_at_100 value: 32.038 - type: map_at_1000 value: 32.123000000000005 - type: map_at_3 value: 28.077 - type: map_at_5 value: 29.709999999999997 - type: mrr_at_1 value: 24.407 - type: mrr_at_10 value: 32.555 - type: mrr_at_100 value: 33.692 - type: mrr_at_1000 value: 33.751 - type: mrr_at_3 value: 29.848999999999997 - type: mrr_at_5 value: 31.509999999999998 - type: ndcg_at_1 value: 24.407 - type: ndcg_at_10 value: 35.624 - type: ndcg_at_100 value: 41.454 - type: ndcg_at_1000 value: 43.556 - type: ndcg_at_3 value: 30.217 - type: ndcg_at_5 value: 33.111000000000004 - type: precision_at_1 value: 24.407 - type: precision_at_10 value: 5.548 - type: precision_at_100 value: 0.8869999999999999 - type: precision_at_1000 value: 0.11100000000000002 - type: precision_at_3 value: 12.731 - type: precision_at_5 value: 9.22 - type: recall_at_1 value: 22.706 - type: recall_at_10 value: 48.772 - type: recall_at_100 value: 75.053 - type: recall_at_1000 value: 90.731 - type: recall_at_3 value: 34.421 - type: recall_at_5 value: 41.427 - task: type: Retrieval dataset: type: BeIR/cqadupstack name: MTEB CQADupstackMathematicaRetrieval config: default split: test revision: None metrics: - type: map_at_1 value: 13.424 - type: map_at_10 value: 21.09 - type: map_at_100 value: 22.264999999999997 - type: map_at_1000 value: 22.402 - type: map_at_3 value: 18.312 - type: map_at_5 value: 19.874 - type: mrr_at_1 value: 16.915 - type: mrr_at_10 value: 25.258000000000003 - type: mrr_at_100 value: 26.228 - type: mrr_at_1000 value: 26.31 - type: mrr_at_3 value: 22.492 - type: mrr_at_5 value: 24.04 - type: ndcg_at_1 value: 16.915 - type: ndcg_at_10 value: 26.266000000000002 - type: ndcg_at_100 value: 32.08 - type: ndcg_at_1000 value: 35.086 - type: ndcg_at_3 value: 21.049 - type: ndcg_at_5 value: 23.508000000000003 - type: precision_at_1 value: 16.915 - type: precision_at_10 value: 5.1 - type: precision_at_100 value: 0.9329999999999999 - type: precision_at_1000 value: 0.131 - type: precision_at_3 value: 10.282 - type: precision_at_5 value: 7.836 - type: recall_at_1 value: 13.424 - type: recall_at_10 value: 38.179 - type: recall_at_100 value: 63.906 - type: recall_at_1000 value: 84.933 - type: recall_at_3 value: 23.878 - type: recall_at_5 value: 30.037999999999997 - task: type: Retrieval dataset: type: BeIR/cqadupstack name: MTEB CQADupstackPhysicsRetrieval config: default split: test revision: None metrics: - type: map_at_1 value: 26.154 - type: map_at_10 value: 35.912 - type: map_at_100 value: 37.211 - type: map_at_1000 value: 37.327 - type: map_at_3 value: 32.684999999999995 - type: map_at_5 value: 34.562 - type: mrr_at_1 value: 32.435 - type: mrr_at_10 value: 41.411 - type: mrr_at_100 value: 42.297000000000004 - type: mrr_at_1000 value: 42.345 - type: mrr_at_3 value: 38.771 - type: mrr_at_5 value: 40.33 - type: ndcg_at_1 value: 32.435 - type: ndcg_at_10 value: 41.785 - type: ndcg_at_100 value: 47.469 - type: ndcg_at_1000 value: 49.685 - type: ndcg_at_3 value: 36.618 - type: ndcg_at_5 value: 39.101 - type: precision_at_1 value: 32.435 - type: precision_at_10 value: 7.642 - type: precision_at_100 value: 1.244 - type: precision_at_1000 value: 0.163 - type: precision_at_3 value: 17.485 - type: precision_at_5 value: 12.57 - type: recall_at_1 value: 26.154 - type: recall_at_10 value: 54.111 - type: recall_at_100 value: 78.348 - type: recall_at_1000 value: 92.996 - type: recall_at_3 value: 39.189 - type: recall_at_5 value: 45.852 - task: type: Retrieval dataset: type: BeIR/cqadupstack name: MTEB CQADupstackProgrammersRetrieval config: default split: test revision: None metrics: - type: map_at_1 value: 26.308999999999997 - type: map_at_10 value: 35.524 - type: map_at_100 value: 36.774 - type: map_at_1000 value: 36.891 - type: map_at_3 value: 32.561 - type: map_at_5 value: 34.034 - type: mrr_at_1 value: 31.735000000000003 - type: mrr_at_10 value: 40.391 - type: mrr_at_100 value: 41.227000000000004 - type: mrr_at_1000 value: 41.288000000000004 - type: mrr_at_3 value: 37.938 - type: mrr_at_5 value: 39.193 - type: ndcg_at_1 value: 31.735000000000003 - type: ndcg_at_10 value: 41.166000000000004 - type: ndcg_at_100 value: 46.702 - type: ndcg_at_1000 value: 49.157000000000004 - type: ndcg_at_3 value: 36.274 - type: ndcg_at_5 value: 38.177 - type: precision_at_1 value: 31.735000000000003 - type: precision_at_10 value: 7.5569999999999995 - type: precision_at_100 value: 1.2109999999999999 - type: precision_at_1000 value: 0.16 - type: precision_at_3 value: 17.199 - type: precision_at_5 value: 12.123000000000001 - type: recall_at_1 value: 26.308999999999997 - type: recall_at_10 value: 53.083000000000006 - type: recall_at_100 value: 76.922 - type: recall_at_1000 value: 93.767 - type: recall_at_3 value: 39.262 - type: recall_at_5 value: 44.413000000000004 - task: type: Retrieval dataset: type: BeIR/cqadupstack name: MTEB CQADupstackRetrieval config: default split: test revision: None metrics: - type: map_at_1 value: 24.391250000000003 - type: map_at_10 value: 33.280166666666666 - type: map_at_100 value: 34.49566666666667 - type: map_at_1000 value: 34.61533333333333 - type: map_at_3 value: 30.52183333333333 - type: map_at_5 value: 32.06608333333333 - type: mrr_at_1 value: 29.105083333333337 - type: mrr_at_10 value: 37.44766666666666 - type: mrr_at_100 value: 38.32491666666667 - type: mrr_at_1000 value: 38.385666666666665 - type: mrr_at_3 value: 35.06883333333333 - type: mrr_at_5 value: 36.42066666666667 - type: ndcg_at_1 value: 29.105083333333337 - type: ndcg_at_10 value: 38.54358333333333 - type: ndcg_at_100 value: 43.833583333333344 - type: ndcg_at_1000 value: 46.215333333333334 - type: ndcg_at_3 value: 33.876 - type: ndcg_at_5 value: 36.05208333333333 - type: precision_at_1 value: 29.105083333333337 - type: precision_at_10 value: 6.823416666666665 - type: precision_at_100 value: 1.1270833333333334 - type: precision_at_1000 value: 0.15208333333333332 - type: precision_at_3 value: 15.696750000000002 - type: precision_at_5 value: 11.193499999999998 - type: recall_at_1 value: 24.391250000000003 - type: recall_at_10 value: 49.98808333333333 - type: recall_at_100 value: 73.31616666666666 - type: recall_at_1000 value: 89.96291666666667 - type: recall_at_3 value: 36.86666666666667 - type: recall_at_5 value: 42.54350000000001 - task: type: Retrieval dataset: type: BeIR/cqadupstack name: MTEB CQADupstackStatsRetrieval config: default split: test revision: None metrics: - type: map_at_1 value: 21.995 - type: map_at_10 value: 28.807 - type: map_at_100 value: 29.813000000000002 - type: map_at_1000 value: 29.903000000000002 - type: map_at_3 value: 26.636 - type: map_at_5 value: 27.912 - type: mrr_at_1 value: 24.847 - type: mrr_at_10 value: 31.494 - type: mrr_at_100 value: 32.381 - type: mrr_at_1000 value: 32.446999999999996 - type: mrr_at_3 value: 29.473 - type: mrr_at_5 value: 30.7 - type: ndcg_at_1 value: 24.847 - type: ndcg_at_10 value: 32.818999999999996 - type: ndcg_at_100 value: 37.835 - type: ndcg_at_1000 value: 40.226 - type: ndcg_at_3 value: 28.811999999999998 - type: ndcg_at_5 value: 30.875999999999998 - type: precision_at_1 value: 24.847 - type: precision_at_10 value: 5.244999999999999 - type: precision_at_100 value: 0.856 - type: precision_at_1000 value: 0.11299999999999999 - type: precision_at_3 value: 12.577 - type: precision_at_5 value: 8.895999999999999 - type: recall_at_1 value: 21.995 - type: recall_at_10 value: 42.479 - type: recall_at_100 value: 65.337 - type: recall_at_1000 value: 83.23700000000001 - type: recall_at_3 value: 31.573 - type: recall_at_5 value: 36.684 - task: type: Retrieval dataset: type: BeIR/cqadupstack name: MTEB CQADupstackTexRetrieval config: default split: test revision: None metrics: - type: map_at_1 value: 15.751000000000001 - type: map_at_10 value: 21.909 - type: map_at_100 value: 23.064 - type: map_at_1000 value: 23.205000000000002 - type: map_at_3 value: 20.138 - type: map_at_5 value: 20.973 - type: mrr_at_1 value: 19.305 - type: mrr_at_10 value: 25.647 - type: mrr_at_100 value: 26.659 - type: mrr_at_1000 value: 26.748 - type: mrr_at_3 value: 23.933 - type: mrr_at_5 value: 24.754 - type: ndcg_at_1 value: 19.305 - type: ndcg_at_10 value: 25.886 - type: ndcg_at_100 value: 31.56 - type: ndcg_at_1000 value: 34.799 - type: ndcg_at_3 value: 22.708000000000002 - type: ndcg_at_5 value: 23.838 - type: precision_at_1 value: 19.305 - type: precision_at_10 value: 4.677 - type: precision_at_100 value: 0.895 - type: precision_at_1000 value: 0.136 - type: precision_at_3 value: 10.771 - type: precision_at_5 value: 7.46 - type: recall_at_1 value: 15.751000000000001 - type: recall_at_10 value: 34.156 - type: recall_at_100 value: 59.899 - type: recall_at_1000 value: 83.08 - type: recall_at_3 value: 24.772 - type: recall_at_5 value: 28.009 - task: type: Retrieval dataset: type: BeIR/cqadupstack name: MTEB CQADupstackUnixRetrieval config: default split: test revision: None metrics: - type: map_at_1 value: 23.34 - type: map_at_10 value: 32.383 - type: map_at_100 value: 33.629999999999995 - type: map_at_1000 value: 33.735 - type: map_at_3 value: 29.68 - type: map_at_5 value: 31.270999999999997 - type: mrr_at_1 value: 27.612 - type: mrr_at_10 value: 36.381 - type: mrr_at_100 value: 37.351 - type: mrr_at_1000 value: 37.411 - type: mrr_at_3 value: 33.893 - type: mrr_at_5 value: 35.353 - type: ndcg_at_1 value: 27.612 - type: ndcg_at_10 value: 37.714999999999996 - type: ndcg_at_100 value: 43.525000000000006 - type: ndcg_at_1000 value: 45.812999999999995 - type: ndcg_at_3 value: 32.796 - type: ndcg_at_5 value: 35.243 - type: precision_at_1 value: 27.612 - type: precision_at_10 value: 6.465 - type: precision_at_100 value: 1.0619999999999998 - type: precision_at_1000 value: 0.13699999999999998 - type: precision_at_3 value: 15.049999999999999 - type: precision_at_5 value: 10.764999999999999 - type: recall_at_1 value: 23.34 - type: recall_at_10 value: 49.856 - type: recall_at_100 value: 75.334 - type: recall_at_1000 value: 91.156 - type: recall_at_3 value: 36.497 - type: recall_at_5 value: 42.769 - task: type: Retrieval dataset: type: BeIR/cqadupstack name: MTEB CQADupstackWebmastersRetrieval config: default split: test revision: None metrics: - type: map_at_1 value: 25.097 - type: map_at_10 value: 34.599999999999994 - type: map_at_100 value: 36.174 - type: map_at_1000 value: 36.398 - type: map_at_3 value: 31.781 - type: map_at_5 value: 33.22 - type: mrr_at_1 value: 31.225 - type: mrr_at_10 value: 39.873 - type: mrr_at_100 value: 40.853 - type: mrr_at_1000 value: 40.904 - type: mrr_at_3 value: 37.681 - type: mrr_at_5 value: 38.669 - type: ndcg_at_1 value: 31.225 - type: ndcg_at_10 value: 40.586 - type: ndcg_at_100 value: 46.226 - type: ndcg_at_1000 value: 48.788 - type: ndcg_at_3 value: 36.258 - type: ndcg_at_5 value: 37.848 - type: precision_at_1 value: 31.225 - type: precision_at_10 value: 7.707999999999999 - type: precision_at_100 value: 1.536 - type: precision_at_1000 value: 0.242 - type: precision_at_3 value: 17.26 - type: precision_at_5 value: 12.253 - type: recall_at_1 value: 25.097 - type: recall_at_10 value: 51.602000000000004 - type: recall_at_100 value: 76.854 - type: recall_at_1000 value: 93.303 - type: recall_at_3 value: 38.68 - type: recall_at_5 value: 43.258 - task: type: Retrieval dataset: type: BeIR/cqadupstack name: MTEB CQADupstackWordpressRetrieval config: default split: test revision: None metrics: - type: map_at_1 value: 17.689 - type: map_at_10 value: 25.291000000000004 - type: map_at_100 value: 26.262 - type: map_at_1000 value: 26.372 - type: map_at_3 value: 22.916 - type: map_at_5 value: 24.315 - type: mrr_at_1 value: 19.409000000000002 - type: mrr_at_10 value: 27.233 - type: mrr_at_100 value: 28.109 - type: mrr_at_1000 value: 28.192 - type: mrr_at_3 value: 24.892 - type: mrr_at_5 value: 26.278000000000002 - type: ndcg_at_1 value: 19.409000000000002 - type: ndcg_at_10 value: 29.809 - type: ndcg_at_100 value: 34.936 - type: ndcg_at_1000 value: 37.852000000000004 - type: ndcg_at_3 value: 25.179000000000002 - type: ndcg_at_5 value: 27.563 - type: precision_at_1 value: 19.409000000000002 - type: precision_at_10 value: 4.861 - type: precision_at_100 value: 0.8 - type: precision_at_1000 value: 0.116 - type: precision_at_3 value: 11.029 - type: precision_at_5 value: 7.985 - type: recall_at_1 value: 17.689 - type: recall_at_10 value: 41.724 - type: recall_at_100 value: 65.95299999999999 - type: recall_at_1000 value: 88.094 - type: recall_at_3 value: 29.621 - type: recall_at_5 value: 35.179 - task: type: Retrieval dataset: type: climate-fever name: MTEB ClimateFEVER config: default split: test revision: None metrics: - type: map_at_1 value: 10.581 - type: map_at_10 value: 18.944 - type: map_at_100 value: 20.812 - type: map_at_1000 value: 21.002000000000002 - type: map_at_3 value: 15.661 - type: map_at_5 value: 17.502000000000002 - type: mrr_at_1 value: 23.388 - type: mrr_at_10 value: 34.263 - type: mrr_at_100 value: 35.364000000000004 - type: mrr_at_1000 value: 35.409 - type: mrr_at_3 value: 30.586000000000002 - type: mrr_at_5 value: 32.928000000000004 - type: ndcg_at_1 value: 23.388 - type: ndcg_at_10 value: 26.56 - type: ndcg_at_100 value: 34.248 - type: ndcg_at_1000 value: 37.779 - type: ndcg_at_3 value: 21.179000000000002 - type: ndcg_at_5 value: 23.504 - type: precision_at_1 value: 23.388 - type: precision_at_10 value: 8.476 - type: precision_at_100 value: 1.672 - type: precision_at_1000 value: 0.233 - type: precision_at_3 value: 15.852 - type: precision_at_5 value: 12.73 - type: recall_at_1 value: 10.581 - type: recall_at_10 value: 32.512 - type: recall_at_100 value: 59.313 - type: recall_at_1000 value: 79.25 - type: recall_at_3 value: 19.912 - type: recall_at_5 value: 25.832 - task: type: Retrieval dataset: type: dbpedia-entity name: MTEB DBPedia config: default split: test revision: None metrics: - type: map_at_1 value: 9.35 - type: map_at_10 value: 20.134 - type: map_at_100 value: 28.975 - type: map_at_1000 value: 30.709999999999997 - type: map_at_3 value: 14.513000000000002 - type: map_at_5 value: 16.671 - type: mrr_at_1 value: 69.75 - type: mrr_at_10 value: 77.67699999999999 - type: mrr_at_100 value: 77.97500000000001 - type: mrr_at_1000 value: 77.985 - type: mrr_at_3 value: 76.292 - type: mrr_at_5 value: 77.179 - type: ndcg_at_1 value: 56.49999999999999 - type: ndcg_at_10 value: 42.226 - type: ndcg_at_100 value: 47.562 - type: ndcg_at_1000 value: 54.923 - type: ndcg_at_3 value: 46.564 - type: ndcg_at_5 value: 43.830000000000005 - type: precision_at_1 value: 69.75 - type: precision_at_10 value: 33.525 - type: precision_at_100 value: 11.035 - type: precision_at_1000 value: 2.206 - type: precision_at_3 value: 49.75 - type: precision_at_5 value: 42 - type: recall_at_1 value: 9.35 - type: recall_at_10 value: 25.793 - type: recall_at_100 value: 54.186 - type: recall_at_1000 value: 77.81 - type: recall_at_3 value: 15.770000000000001 - type: recall_at_5 value: 19.09 - task: type: Classification dataset: type: mteb/emotion name: MTEB EmotionClassification config: default split: test revision: 4f58c6b202a23cf9a4da393831edf4f9183cad37 metrics: - type: accuracy value: 46.945 - type: f1 value: 42.07407842992542 - task: type: Retrieval dataset: type: fever name: MTEB FEVER config: default split: test revision: None metrics: - type: map_at_1 value: 71.04599999999999 - type: map_at_10 value: 80.718 - type: map_at_100 value: 80.961 - type: map_at_1000 value: 80.974 - type: map_at_3 value: 79.49199999999999 - type: map_at_5 value: 80.32000000000001 - type: mrr_at_1 value: 76.388 - type: mrr_at_10 value: 85.214 - type: mrr_at_100 value: 85.302 - type: mrr_at_1000 value: 85.302 - type: mrr_at_3 value: 84.373 - type: mrr_at_5 value: 84.979 - type: ndcg_at_1 value: 76.388 - type: ndcg_at_10 value: 84.987 - type: ndcg_at_100 value: 85.835 - type: ndcg_at_1000 value: 86.04899999999999 - type: ndcg_at_3 value: 83.04 - type: ndcg_at_5 value: 84.22500000000001 - type: precision_at_1 value: 76.388 - type: precision_at_10 value: 10.35 - type: precision_at_100 value: 1.099 - type: precision_at_1000 value: 0.11399999999999999 - type: precision_at_3 value: 32.108 - type: precision_at_5 value: 20.033 - type: recall_at_1 value: 71.04599999999999 - type: recall_at_10 value: 93.547 - type: recall_at_100 value: 96.887 - type: recall_at_1000 value: 98.158 - type: recall_at_3 value: 88.346 - type: recall_at_5 value: 91.321 - task: type: Retrieval dataset: type: fiqa name: MTEB FiQA2018 config: default split: test revision: None metrics: - type: map_at_1 value: 19.8 - type: map_at_10 value: 31.979999999999997 - type: map_at_100 value: 33.876 - type: map_at_1000 value: 34.056999999999995 - type: map_at_3 value: 28.067999999999998 - type: map_at_5 value: 30.066 - type: mrr_at_1 value: 38.735 - type: mrr_at_10 value: 47.749 - type: mrr_at_100 value: 48.605 - type: mrr_at_1000 value: 48.644999999999996 - type: mrr_at_3 value: 45.165 - type: mrr_at_5 value: 46.646 - type: ndcg_at_1 value: 38.735 - type: ndcg_at_10 value: 39.883 - type: ndcg_at_100 value: 46.983000000000004 - type: ndcg_at_1000 value: 50.043000000000006 - type: ndcg_at_3 value: 35.943000000000005 - type: ndcg_at_5 value: 37.119 - type: precision_at_1 value: 38.735 - type: precision_at_10 value: 10.940999999999999 - type: precision_at_100 value: 1.836 - type: precision_at_1000 value: 0.23900000000000002 - type: precision_at_3 value: 23.817 - type: precision_at_5 value: 17.346 - type: recall_at_1 value: 19.8 - type: recall_at_10 value: 47.082 - type: recall_at_100 value: 73.247 - type: recall_at_1000 value: 91.633 - type: recall_at_3 value: 33.201 - type: recall_at_5 value: 38.81 - task: type: Retrieval dataset: type: hotpotqa name: MTEB HotpotQA config: default split: test revision: None metrics: - type: map_at_1 value: 38.102999999999994 - type: map_at_10 value: 60.547 - type: map_at_100 value: 61.466 - type: map_at_1000 value: 61.526 - type: map_at_3 value: 56.973 - type: map_at_5 value: 59.244 - type: mrr_at_1 value: 76.205 - type: mrr_at_10 value: 82.816 - type: mrr_at_100 value: 83.002 - type: mrr_at_1000 value: 83.009 - type: mrr_at_3 value: 81.747 - type: mrr_at_5 value: 82.467 - type: ndcg_at_1 value: 76.205 - type: ndcg_at_10 value: 69.15 - type: ndcg_at_100 value: 72.297 - type: ndcg_at_1000 value: 73.443 - type: ndcg_at_3 value: 64.07000000000001 - type: ndcg_at_5 value: 66.96600000000001 - type: precision_at_1 value: 76.205 - type: precision_at_10 value: 14.601 - type: precision_at_100 value: 1.7049999999999998 - type: precision_at_1000 value: 0.186 - type: precision_at_3 value: 41.202 - type: precision_at_5 value: 27.006000000000004 - type: recall_at_1 value: 38.102999999999994 - type: recall_at_10 value: 73.005 - type: recall_at_100 value: 85.253 - type: recall_at_1000 value: 92.795 - type: recall_at_3 value: 61.803 - type: recall_at_5 value: 67.515 - task: type: Classification dataset: type: mteb/imdb name: MTEB ImdbClassification config: default split: test revision: 3d86128a09e091d6018b6d26cad27f2739fc2db7 metrics: - type: accuracy value: 86.15 - type: ap value: 80.36282825265391 - type: f1 value: 86.07368510726472 - task: type: Retrieval dataset: type: msmarco name: MTEB MSMARCO config: default split: dev revision: None metrics: - type: map_at_1 value: 22.6 - type: map_at_10 value: 34.887 - type: map_at_100 value: 36.069 - type: map_at_1000 value: 36.115 - type: map_at_3 value: 31.067 - type: map_at_5 value: 33.300000000000004 - type: mrr_at_1 value: 23.238 - type: mrr_at_10 value: 35.47 - type: mrr_at_100 value: 36.599 - type: mrr_at_1000 value: 36.64 - type: mrr_at_3 value: 31.735999999999997 - type: mrr_at_5 value: 33.939 - type: ndcg_at_1 value: 23.252 - type: ndcg_at_10 value: 41.765 - type: ndcg_at_100 value: 47.402 - type: ndcg_at_1000 value: 48.562 - type: ndcg_at_3 value: 34.016999999999996 - type: ndcg_at_5 value: 38.016 - type: precision_at_1 value: 23.252 - type: precision_at_10 value: 6.569 - type: precision_at_100 value: 0.938 - type: precision_at_1000 value: 0.104 - type: precision_at_3 value: 14.479000000000001 - type: precision_at_5 value: 10.722 - type: recall_at_1 value: 22.6 - type: recall_at_10 value: 62.919000000000004 - type: recall_at_100 value: 88.82 - type: recall_at_1000 value: 97.71600000000001 - type: recall_at_3 value: 41.896 - type: recall_at_5 value: 51.537 - task: type: Classification dataset: type: mteb/mtop_domain name: MTEB MTOPDomainClassification (en) config: en split: test revision: d80d48c1eb48d3562165c59d59d0034df9fff0bf metrics: - type: accuracy value: 93.69357045143639 - type: f1 value: 93.55489858177597 - task: type: Classification dataset: type: mteb/mtop_intent name: MTEB MTOPIntentClassification (en) config: en split: test revision: ae001d0e6b1228650b7bd1c2c65fb50ad11a8aba metrics: - type: accuracy value: 75.31235750114 - type: f1 value: 57.891491963121155 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (en) config: en split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 73.04303967720243 - type: f1 value: 70.51516022297616 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (en) config: en split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 77.65299260255549 - type: f1 value: 77.49059766538576 - task: type: Clustering dataset: type: mteb/medrxiv-clustering-p2p name: MTEB MedrxivClusteringP2P config: default split: test revision: e7a26af6f3ae46b30dde8737f02c07b1505bcc73 metrics: - type: v_measure value: 31.458906115906597 - task: type: Clustering dataset: type: mteb/medrxiv-clustering-s2s name: MTEB MedrxivClusteringS2S config: default split: test revision: 35191c8c0dca72d8ff3efcd72aa802307d469663 metrics: - type: v_measure value: 28.9851513122443 - task: type: Reranking dataset: type: mteb/mind_small name: MTEB MindSmallReranking config: default split: test revision: 3bdac13927fdc888b903db93b2ffdbd90b295a69 metrics: - type: map value: 31.2916268497217 - type: mrr value: 32.328276715593816 - task: type: Retrieval dataset: type: nfcorpus name: MTEB NFCorpus config: default split: test revision: None metrics: - type: map_at_1 value: 6.3740000000000006 - type: map_at_10 value: 13.089999999999998 - type: map_at_100 value: 16.512 - type: map_at_1000 value: 18.014 - type: map_at_3 value: 9.671000000000001 - type: map_at_5 value: 11.199 - type: mrr_at_1 value: 46.749 - type: mrr_at_10 value: 55.367 - type: mrr_at_100 value: 56.021 - type: mrr_at_1000 value: 56.058 - type: mrr_at_3 value: 53.30200000000001 - type: mrr_at_5 value: 54.773 - type: ndcg_at_1 value: 45.046 - type: ndcg_at_10 value: 35.388999999999996 - type: ndcg_at_100 value: 32.175 - type: ndcg_at_1000 value: 41.018 - type: ndcg_at_3 value: 40.244 - type: ndcg_at_5 value: 38.267 - type: precision_at_1 value: 46.749 - type: precision_at_10 value: 26.563 - type: precision_at_100 value: 8.074 - type: precision_at_1000 value: 2.099 - type: precision_at_3 value: 37.358000000000004 - type: precision_at_5 value: 33.003 - type: recall_at_1 value: 6.3740000000000006 - type: recall_at_10 value: 16.805999999999997 - type: recall_at_100 value: 31.871 - type: recall_at_1000 value: 64.098 - type: recall_at_3 value: 10.383000000000001 - type: recall_at_5 value: 13.166 - task: type: Retrieval dataset: type: nq name: MTEB NQ config: default split: test revision: None metrics: - type: map_at_1 value: 34.847 - type: map_at_10 value: 50.532 - type: map_at_100 value: 51.504000000000005 - type: map_at_1000 value: 51.528 - type: map_at_3 value: 46.219 - type: map_at_5 value: 48.868 - type: mrr_at_1 value: 39.137 - type: mrr_at_10 value: 53.157 - type: mrr_at_100 value: 53.839999999999996 - type: mrr_at_1000 value: 53.857 - type: mrr_at_3 value: 49.667 - type: mrr_at_5 value: 51.847 - type: ndcg_at_1 value: 39.108 - type: ndcg_at_10 value: 58.221000000000004 - type: ndcg_at_100 value: 62.021 - type: ndcg_at_1000 value: 62.57 - type: ndcg_at_3 value: 50.27199999999999 - type: ndcg_at_5 value: 54.623999999999995 - type: precision_at_1 value: 39.108 - type: precision_at_10 value: 9.397 - type: precision_at_100 value: 1.1520000000000001 - type: precision_at_1000 value: 0.12 - type: precision_at_3 value: 22.644000000000002 - type: precision_at_5 value: 16.141 - type: recall_at_1 value: 34.847 - type: recall_at_10 value: 78.945 - type: recall_at_100 value: 94.793 - type: recall_at_1000 value: 98.904 - type: recall_at_3 value: 58.56 - type: recall_at_5 value: 68.535 - task: type: Retrieval dataset: type: quora name: MTEB QuoraRetrieval config: default split: test revision: None metrics: - type: map_at_1 value: 68.728 - type: map_at_10 value: 82.537 - type: map_at_100 value: 83.218 - type: map_at_1000 value: 83.238 - type: map_at_3 value: 79.586 - type: map_at_5 value: 81.416 - type: mrr_at_1 value: 79.17999999999999 - type: mrr_at_10 value: 85.79299999999999 - type: mrr_at_100 value: 85.937 - type: mrr_at_1000 value: 85.938 - type: mrr_at_3 value: 84.748 - type: mrr_at_5 value: 85.431 - type: ndcg_at_1 value: 79.17 - type: ndcg_at_10 value: 86.555 - type: ndcg_at_100 value: 88.005 - type: ndcg_at_1000 value: 88.146 - type: ndcg_at_3 value: 83.557 - type: ndcg_at_5 value: 85.152 - type: precision_at_1 value: 79.17 - type: precision_at_10 value: 13.163 - type: precision_at_100 value: 1.52 - type: precision_at_1000 value: 0.156 - type: precision_at_3 value: 36.53 - type: precision_at_5 value: 24.046 - type: recall_at_1 value: 68.728 - type: recall_at_10 value: 94.217 - type: recall_at_100 value: 99.295 - type: recall_at_1000 value: 99.964 - type: recall_at_3 value: 85.646 - type: recall_at_5 value: 90.113 - task: type: Clustering dataset: type: mteb/reddit-clustering name: MTEB RedditClustering config: default split: test revision: 24640382cdbf8abc73003fb0fa6d111a705499eb metrics: - type: v_measure value: 56.15680266226348 - task: type: Clustering dataset: type: mteb/reddit-clustering-p2p name: MTEB RedditClusteringP2P config: default split: test revision: 282350215ef01743dc01b456c7f5241fa8937f16 metrics: - type: v_measure value: 63.4318549229047 - task: type: Retrieval dataset: type: scidocs name: MTEB SCIDOCS config: default split: test revision: None metrics: - type: map_at_1 value: 4.353 - type: map_at_10 value: 10.956000000000001 - type: map_at_100 value: 12.873999999999999 - type: map_at_1000 value: 13.177 - type: map_at_3 value: 7.854 - type: map_at_5 value: 9.327 - type: mrr_at_1 value: 21.4 - type: mrr_at_10 value: 31.948999999999998 - type: mrr_at_100 value: 33.039 - type: mrr_at_1000 value: 33.106 - type: mrr_at_3 value: 28.449999999999996 - type: mrr_at_5 value: 30.535 - type: ndcg_at_1 value: 21.4 - type: ndcg_at_10 value: 18.694 - type: ndcg_at_100 value: 26.275 - type: ndcg_at_1000 value: 31.836 - type: ndcg_at_3 value: 17.559 - type: ndcg_at_5 value: 15.372 - type: precision_at_1 value: 21.4 - type: precision_at_10 value: 9.790000000000001 - type: precision_at_100 value: 2.0709999999999997 - type: precision_at_1000 value: 0.34099999999999997 - type: precision_at_3 value: 16.467000000000002 - type: precision_at_5 value: 13.54 - type: recall_at_1 value: 4.353 - type: recall_at_10 value: 19.892000000000003 - type: recall_at_100 value: 42.067 - type: recall_at_1000 value: 69.268 - type: recall_at_3 value: 10.042 - type: recall_at_5 value: 13.741999999999999 - task: type: STS dataset: type: mteb/sickr-sts name: MTEB SICK-R config: default split: test revision: a6ea5a8cab320b040a23452cc28066d9beae2cee metrics: - type: cos_sim_pearson value: 83.75433886279843 - type: cos_sim_spearman value: 78.29727771767095 - type: euclidean_pearson value: 80.83057828506621 - type: euclidean_spearman value: 78.35203149750356 - type: manhattan_pearson value: 80.7403553891142 - type: manhattan_spearman value: 78.33670488531051 - task: type: STS dataset: type: mteb/sts12-sts name: MTEB STS12 config: default split: test revision: a0d554a64d88156834ff5ae9920b964011b16384 metrics: - type: cos_sim_pearson value: 84.59999465280839 - type: cos_sim_spearman value: 75.79279003980383 - type: euclidean_pearson value: 82.29895375956758 - type: euclidean_spearman value: 77.33856514102094 - type: manhattan_pearson value: 82.22694214534756 - type: manhattan_spearman value: 77.3028993008695 - task: type: STS dataset: type: mteb/sts13-sts name: MTEB STS13 config: default split: test revision: 7e90230a92c190f1bf69ae9002b8cea547a64cca metrics: - type: cos_sim_pearson value: 83.09296929691297 - type: cos_sim_spearman value: 83.58056936846941 - type: euclidean_pearson value: 83.84067483060005 - type: euclidean_spearman value: 84.45155680480985 - type: manhattan_pearson value: 83.82353052971942 - type: manhattan_spearman value: 84.43030567861112 - task: type: STS dataset: type: mteb/sts14-sts name: MTEB STS14 config: default split: test revision: 6031580fec1f6af667f0bd2da0a551cf4f0b2375 metrics: - type: cos_sim_pearson value: 82.74616852320915 - type: cos_sim_spearman value: 79.948683747966 - type: euclidean_pearson value: 81.55702283757084 - type: euclidean_spearman value: 80.1721505114231 - type: manhattan_pearson value: 81.52251518619441 - type: manhattan_spearman value: 80.1469800135577 - task: type: STS dataset: type: mteb/sts15-sts name: MTEB STS15 config: default split: test revision: ae752c7c21bf194d8b67fd573edf7ae58183cbe3 metrics: - type: cos_sim_pearson value: 87.97170104226318 - type: cos_sim_spearman value: 88.82021731518206 - type: euclidean_pearson value: 87.92950547187615 - type: euclidean_spearman value: 88.67043634645866 - type: manhattan_pearson value: 87.90668112827639 - type: manhattan_spearman value: 88.64471082785317 - task: type: STS dataset: type: mteb/sts16-sts name: MTEB STS16 config: default split: test revision: 4d8694f8f0e0100860b497b999b3dbed754a0513 metrics: - type: cos_sim_pearson value: 83.02790375770599 - type: cos_sim_spearman value: 84.46308496590792 - type: euclidean_pearson value: 84.29430000414911 - type: euclidean_spearman value: 84.77298303589936 - type: manhattan_pearson value: 84.23919291368665 - type: manhattan_spearman value: 84.75272234871308 - task: type: STS dataset: type: mteb/sts17-crosslingual-sts name: MTEB STS17 (en-en) config: en-en split: test revision: af5e6fb845001ecf41f4c1e033ce921939a2a68d metrics: - type: cos_sim_pearson value: 87.62885108477064 - type: cos_sim_spearman value: 87.58456196391622 - type: euclidean_pearson value: 88.2602775281007 - type: euclidean_spearman value: 87.51556278299846 - type: manhattan_pearson value: 88.11224053672842 - type: manhattan_spearman value: 87.4336094383095 - task: type: STS dataset: type: mteb/sts22-crosslingual-sts name: MTEB STS22 (en) config: en split: test revision: 6d1ba47164174a496b7fa5d3569dae26a6813b80 metrics: - type: cos_sim_pearson value: 63.98187965128411 - type: cos_sim_spearman value: 64.0653163219731 - type: euclidean_pearson value: 62.30616725924099 - type: euclidean_spearman value: 61.556971332295916 - type: manhattan_pearson value: 62.07642330128549 - type: manhattan_spearman value: 61.155494129828 - task: type: STS dataset: type: mteb/stsbenchmark-sts name: MTEB STSBenchmark config: default split: test revision: b0fddb56ed78048fa8b90373c8a3cfc37b684831 metrics: - type: cos_sim_pearson value: 85.6089703921826 - type: cos_sim_spearman value: 86.52303197250791 - type: euclidean_pearson value: 85.95801955963246 - type: euclidean_spearman value: 86.25242424112962 - type: manhattan_pearson value: 85.88829100470312 - type: manhattan_spearman value: 86.18742955805165 - task: type: Reranking dataset: type: mteb/scidocs-reranking name: MTEB SciDocsRR config: default split: test revision: d3c5e1fc0b855ab6097bf1cda04dd73947d7caab metrics: - type: map value: 83.02282098487036 - type: mrr value: 95.05126409538174 - task: type: Retrieval dataset: type: scifact name: MTEB SciFact config: default split: test revision: None metrics: - type: map_at_1 value: 55.928 - type: map_at_10 value: 67.308 - type: map_at_100 value: 67.89500000000001 - type: map_at_1000 value: 67.91199999999999 - type: map_at_3 value: 65.091 - type: map_at_5 value: 66.412 - type: mrr_at_1 value: 58.667 - type: mrr_at_10 value: 68.401 - type: mrr_at_100 value: 68.804 - type: mrr_at_1000 value: 68.819 - type: mrr_at_3 value: 66.72200000000001 - type: mrr_at_5 value: 67.72200000000001 - type: ndcg_at_1 value: 58.667 - type: ndcg_at_10 value: 71.944 - type: ndcg_at_100 value: 74.464 - type: ndcg_at_1000 value: 74.82799999999999 - type: ndcg_at_3 value: 68.257 - type: ndcg_at_5 value: 70.10300000000001 - type: precision_at_1 value: 58.667 - type: precision_at_10 value: 9.533 - type: precision_at_100 value: 1.09 - type: precision_at_1000 value: 0.11199999999999999 - type: precision_at_3 value: 27.222 - type: precision_at_5 value: 17.533 - type: recall_at_1 value: 55.928 - type: recall_at_10 value: 84.65 - type: recall_at_100 value: 96.267 - type: recall_at_1000 value: 99 - type: recall_at_3 value: 74.656 - type: recall_at_5 value: 79.489 - task: type: PairClassification dataset: type: mteb/sprintduplicatequestions-pairclassification name: MTEB SprintDuplicateQuestions config: default split: test revision: d66bd1f72af766a5cc4b0ca5e00c162f89e8cc46 metrics: - type: cos_sim_accuracy value: 99.79009900990098 - type: cos_sim_ap value: 94.5795129511524 - type: cos_sim_f1 value: 89.34673366834171 - type: cos_sim_precision value: 89.79797979797979 - type: cos_sim_recall value: 88.9 - type: dot_accuracy value: 99.53465346534654 - type: dot_ap value: 81.56492504352725 - type: dot_f1 value: 76.33816908454227 - type: dot_precision value: 76.37637637637637 - type: dot_recall value: 76.3 - type: euclidean_accuracy value: 99.78514851485149 - type: euclidean_ap value: 94.59134620408962 - type: euclidean_f1 value: 88.96484375 - type: euclidean_precision value: 86.92748091603053 - type: euclidean_recall value: 91.10000000000001 - type: manhattan_accuracy value: 99.78415841584159 - type: manhattan_ap value: 94.5190197328845 - type: manhattan_f1 value: 88.84462151394423 - type: manhattan_precision value: 88.4920634920635 - type: manhattan_recall value: 89.2 - type: max_accuracy value: 99.79009900990098 - type: max_ap value: 94.59134620408962 - type: max_f1 value: 89.34673366834171 - task: type: Clustering dataset: type: mteb/stackexchange-clustering name: MTEB StackExchangeClustering config: default split: test revision: 6cbc1f7b2bc0622f2e39d2c77fa502909748c259 metrics: - type: v_measure value: 65.1487505617497 - task: type: Clustering dataset: type: mteb/stackexchange-clustering-p2p name: MTEB StackExchangeClusteringP2P config: default split: test revision: 815ca46b2622cec33ccafc3735d572c266efdb44 metrics: - type: v_measure value: 32.502518166001856 - task: type: Reranking dataset: type: mteb/stackoverflowdupquestions-reranking name: MTEB StackOverflowDupQuestions config: default split: test revision: e185fbe320c72810689fc5848eb6114e1ef5ec69 metrics: - type: map value: 50.33775480236701 - type: mrr value: 51.17302223919871 - task: type: Summarization dataset: type: mteb/summeval name: MTEB SummEval config: default split: test revision: cda12ad7615edc362dbf25a00fdd61d3b1eaf93c metrics: - type: cos_sim_pearson value: 30.561111309808208 - type: cos_sim_spearman value: 30.2839254379273 - type: dot_pearson value: 29.560242291401973 - type: dot_spearman value: 30.51527274679116 - task: type: Retrieval dataset: type: trec-covid name: MTEB TRECCOVID config: default split: test revision: None metrics: - type: map_at_1 value: 0.215 - type: map_at_10 value: 1.752 - type: map_at_100 value: 9.258 - type: map_at_1000 value: 23.438 - type: map_at_3 value: 0.6 - type: map_at_5 value: 0.968 - type: mrr_at_1 value: 84 - type: mrr_at_10 value: 91.333 - type: mrr_at_100 value: 91.333 - type: mrr_at_1000 value: 91.333 - type: mrr_at_3 value: 91.333 - type: mrr_at_5 value: 91.333 - type: ndcg_at_1 value: 75 - type: ndcg_at_10 value: 69.596 - type: ndcg_at_100 value: 51.970000000000006 - type: ndcg_at_1000 value: 48.864999999999995 - type: ndcg_at_3 value: 73.92699999999999 - type: ndcg_at_5 value: 73.175 - type: precision_at_1 value: 84 - type: precision_at_10 value: 74 - type: precision_at_100 value: 53.2 - type: precision_at_1000 value: 21.836 - type: precision_at_3 value: 79.333 - type: precision_at_5 value: 78.4 - type: recall_at_1 value: 0.215 - type: recall_at_10 value: 1.9609999999999999 - type: recall_at_100 value: 12.809999999999999 - type: recall_at_1000 value: 46.418 - type: recall_at_3 value: 0.6479999999999999 - type: recall_at_5 value: 1.057 - task: type: Retrieval dataset: type: webis-touche2020 name: MTEB Touche2020 config: default split: test revision: None metrics: - type: map_at_1 value: 3.066 - type: map_at_10 value: 10.508000000000001 - type: map_at_100 value: 16.258 - type: map_at_1000 value: 17.705000000000002 - type: map_at_3 value: 6.157 - type: map_at_5 value: 7.510999999999999 - type: mrr_at_1 value: 34.694 - type: mrr_at_10 value: 48.786 - type: mrr_at_100 value: 49.619 - type: mrr_at_1000 value: 49.619 - type: mrr_at_3 value: 45.918 - type: mrr_at_5 value: 46.837 - type: ndcg_at_1 value: 31.633 - type: ndcg_at_10 value: 26.401999999999997 - type: ndcg_at_100 value: 37.139 - type: ndcg_at_1000 value: 48.012 - type: ndcg_at_3 value: 31.875999999999998 - type: ndcg_at_5 value: 27.383000000000003 - type: precision_at_1 value: 34.694 - type: precision_at_10 value: 22.857 - type: precision_at_100 value: 7.611999999999999 - type: precision_at_1000 value: 1.492 - type: precision_at_3 value: 33.333 - type: precision_at_5 value: 26.122 - type: recall_at_1 value: 3.066 - type: recall_at_10 value: 16.239 - type: recall_at_100 value: 47.29 - type: recall_at_1000 value: 81.137 - type: recall_at_3 value: 7.069 - type: recall_at_5 value: 9.483 - task: type: Classification dataset: type: mteb/toxic_conversations_50k name: MTEB ToxicConversationsClassification config: default split: test revision: d7c0de2777da35d6aae2200a62c6e0e5af397c4c metrics: - type: accuracy value: 72.1126 - type: ap value: 14.710862719285753 - type: f1 value: 55.437808972378846 - task: type: Classification dataset: type: mteb/tweet_sentiment_extraction name: MTEB TweetSentimentExtractionClassification config: default split: test revision: d604517c81ca91fe16a244d1248fc021f9ecee7a metrics: - type: accuracy value: 60.39049235993209 - type: f1 value: 60.69810537250234 - task: type: Clustering dataset: type: mteb/twentynewsgroups-clustering name: MTEB TwentyNewsgroupsClustering config: default split: test revision: 6125ec4e24fa026cec8a478383ee943acfbd5449 metrics: - type: v_measure value: 48.15576640316866 - task: type: PairClassification dataset: type: mteb/twittersemeval2015-pairclassification name: MTEB TwitterSemEval2015 config: default split: test revision: 70970daeab8776df92f5ea462b6173c0b46fd2d1 metrics: - type: cos_sim_accuracy value: 86.52917684925792 - type: cos_sim_ap value: 75.97497873817315 - type: cos_sim_f1 value: 70.01151926276718 - type: cos_sim_precision value: 67.98409147402435 - type: cos_sim_recall value: 72.16358839050132 - type: dot_accuracy value: 82.47004828038385 - type: dot_ap value: 62.48739894974198 - type: dot_f1 value: 59.13107511045656 - type: dot_precision value: 55.27765029830197 - type: dot_recall value: 63.562005277044854 - type: euclidean_accuracy value: 86.46361089586935 - type: euclidean_ap value: 75.59282886839452 - type: euclidean_f1 value: 69.6465443945099 - type: euclidean_precision value: 64.52847175331982 - type: euclidean_recall value: 75.64643799472296 - type: manhattan_accuracy value: 86.43380818978363 - type: manhattan_ap value: 75.5742420974403 - type: manhattan_f1 value: 69.8636926889715 - type: manhattan_precision value: 65.8644859813084 - type: manhattan_recall value: 74.37994722955145 - type: max_accuracy value: 86.52917684925792 - type: max_ap value: 75.97497873817315 - type: max_f1 value: 70.01151926276718 - task: type: PairClassification dataset: type: mteb/twitterurlcorpus-pairclassification name: MTEB TwitterURLCorpus config: default split: test revision: 8b6510b0b1fa4e4c4f879467980e9be563ec1cdf metrics: - type: cos_sim_accuracy value: 89.29056545193464 - type: cos_sim_ap value: 86.63028865482376 - type: cos_sim_f1 value: 79.18166458532285 - type: cos_sim_precision value: 75.70585756426465 - type: cos_sim_recall value: 82.99199260856174 - type: dot_accuracy value: 85.23305002522606 - type: dot_ap value: 76.0482687263196 - type: dot_f1 value: 70.80484330484332 - type: dot_precision value: 65.86933474688577 - type: dot_recall value: 76.53988296889437 - type: euclidean_accuracy value: 89.26145845461248 - type: euclidean_ap value: 86.54073288416006 - type: euclidean_f1 value: 78.9721371479794 - type: euclidean_precision value: 76.68649354417525 - type: euclidean_recall value: 81.39821373575609 - type: manhattan_accuracy value: 89.22847052431405 - type: manhattan_ap value: 86.51250729037905 - type: manhattan_f1 value: 78.94601825044894 - type: manhattan_precision value: 75.32694594027555 - type: manhattan_recall value: 82.93039728980598 - type: max_accuracy value: 89.29056545193464 - type: max_ap value: 86.63028865482376 - type: max_f1 value: 79.18166458532285 language: - en license: mit --- # E5-base-v2 [Text Embeddings by Weakly-Supervised Contrastive Pre-training](https://arxiv.org/pdf/2212.03533.pdf). Liang Wang, Nan Yang, Xiaolong Huang, Binxing Jiao, Linjun Yang, Daxin Jiang, Rangan Majumder, Furu Wei, arXiv 2022 This model has 12 layers and the embedding size is 768. ## Usage Below is an example to encode queries and passages from the MS-MARCO passage ranking dataset. ```python import torch.nn.functional as F from torch import Tensor from transformers import AutoTokenizer, AutoModel def average_pool(last_hidden_states: Tensor, attention_mask: Tensor) -> Tensor: last_hidden = last_hidden_states.masked_fill(~attention_mask[..., None].bool(), 0.0) return last_hidden.sum(dim=1) / attention_mask.sum(dim=1)[..., None] # Each input text should start with "query: " or "passage: ". # For tasks other than retrieval, you can simply use the "query: " prefix. input_texts = ['query: how much protein should a female eat', 'query: summit define', "passage: As a general guideline, the CDC's average requirement of protein for women ages 19 to 70 is 46 grams per day. But, as you can see from this chart, you'll need to increase that if you're expecting or training for a marathon. Check out the chart below to see how much protein you should be eating each day.", "passage: Definition of summit for English Language Learners. : 1 the highest point of a mountain : the top of a mountain. : 2 the highest level. : 3 a meeting or series of meetings between the leaders of two or more governments."] tokenizer = AutoTokenizer.from_pretrained('intfloat/e5-base-v2') model = AutoModel.from_pretrained('intfloat/e5-base-v2') # Tokenize the input texts batch_dict = tokenizer(input_texts, max_length=512, padding=True, truncation=True, return_tensors='pt') outputs = model(**batch_dict) embeddings = average_pool(outputs.last_hidden_state, batch_dict['attention_mask']) # normalize embeddings embeddings = F.normalize(embeddings, p=2, dim=1) scores = (embeddings[:2] @ embeddings[2:].T) * 100 print(scores.tolist()) ``` ## Training Details Please refer to our paper at [https://arxiv.org/pdf/2212.03533.pdf](https://arxiv.org/pdf/2212.03533.pdf). ## Benchmark Evaluation Check out [unilm/e5](https://github.com/microsoft/unilm/tree/master/e5) to reproduce evaluation results on the [BEIR](https://arxiv.org/abs/2104.08663) and [MTEB benchmark](https://arxiv.org/abs/2210.07316). ## Support for Sentence Transformers Below is an example for usage with sentence_transformers. ```python from sentence_transformers import SentenceTransformer model = SentenceTransformer('intfloat/e5-base-v2') input_texts = [ 'query: how much protein should a female eat', 'query: summit define', "passage: As a general guideline, the CDC's average requirement of protein for women ages 19 to 70 is 46 grams per day. But, as you can see from this chart, you'll need to increase that if you're expecting or training for a marathon. Check out the chart below to see how much protein you should be eating each day.", "passage: Definition of summit for English Language Learners. : 1 the highest point of a mountain : the top of a mountain. : 2 the highest level. : 3 a meeting or series of meetings between the leaders of two or more governments." ] embeddings = model.encode(input_texts, normalize_embeddings=True) ``` Package requirements `pip install sentence_transformers~=2.2.2` Contributors: [michaelfeil](https://huggingface.co/michaelfeil) ## FAQ **1. Do I need to add the prefix "query: " and "passage: " to input texts?** Yes, this is how the model is trained, otherwise you will see a performance degradation. Here are some rules of thumb: - Use "query: " and "passage: " correspondingly for asymmetric tasks such as passage retrieval in open QA, ad-hoc information retrieval. - Use "query: " prefix for symmetric tasks such as semantic similarity, paraphrase retrieval. - Use "query: " prefix if you want to use embeddings as features, such as linear probing classification, clustering. **2. Why are my reproduced results slightly different from reported in the model card?** Different versions of `transformers` and `pytorch` could cause negligible but non-zero performance differences. **3. Why does the cosine similarity scores distribute around 0.7 to 1.0?** This is a known and expected behavior as we use a low temperature 0.01 for InfoNCE contrastive loss. For text embedding tasks like text retrieval or semantic similarity, what matters is the relative order of the scores instead of the absolute values, so this should not be an issue. ## Citation If you find our paper or models helpful, please consider cite as follows: ``` @article{wang2022text, title={Text Embeddings by Weakly-Supervised Contrastive Pre-training}, author={Wang, Liang and Yang, Nan and Huang, Xiaolong and Jiao, Binxing and Yang, Linjun and Jiang, Daxin and Majumder, Rangan and Wei, Furu}, journal={arXiv preprint arXiv:2212.03533}, year={2022} } ``` ## Limitations This model only works for English texts. Long texts will be truncated to at most 512 tokens.
[ -0.11810708791017532, -0.69251549243927, 0.22493907809257507, 0.2001013159751892, -0.2541425824165344, -0.45214927196502686, 0.03471408784389496, -0.4018089175224304, 0.07043193280696869, 0.29637277126312256, -0.4588855803012848, -0.6314767003059387, -0.9951762557029724, 0.21958409249782562, -0.3716548681259155, 0.9136605858802795, 0.0185216274112463, 0.0640350803732872, -0.3601287007331848, -0.06826284527778625, -0.2219860553741455, -0.5738000273704529, -0.27617648243904114, -0.3098621666431427, 0.2508833110332489, 0.22261761128902435, 0.586093544960022, 0.5665817856788635, 0.6597431302070618, 0.33520710468292236, -0.14201682806015015, 0.1647578477859497, -0.5281758308410645, -0.12503279745578766, 0.014010835438966751, -0.5380439758300781, -0.4226832985877991, 0.22144488990306854, 0.49978360533714294, 0.8220044374465942, 0.16070954501628876, 0.24169254302978516, 0.37485799193382263, 0.5027678608894348, -0.5688743591308594, 0.17732782661914825, -0.4277920424938202, 0.13890136778354645, 0.11103567481040955, -0.03191656991839409, -0.37610700726509094, 0.14465740323066711, 0.4047538638114929, -0.5742334723472595, 0.2861568331718445, 0.12205033004283905, 1.2690417766571045, 0.2973390221595764, -0.46728307008743286, -0.23148882389068604, -0.0842042788863182, 0.9994804859161377, -0.7012372612953186, 0.4275144636631012, 0.685870349407196, -0.31217139959335327, -0.11046195030212402, -0.8942320942878723, -0.3655894994735718, -0.19190946221351624, -0.28240451216697693, 0.14923475682735443, -0.2657777965068817, -0.04846451058983803, 0.394206166267395, 0.4457445442676544, -0.8203392028808594, -0.10105882585048676, -0.32360169291496277, -0.0809553861618042, 0.4758458137512207, 0.11458524316549301, 0.29574406147003174, -0.4779282510280609, -0.22848333418369293, -0.2448679357767105, -0.5195902585983276, 0.034853190183639526, 0.22235257923603058, 0.3858119547367096, -0.4067942798137665, 0.5562757253646851, -0.259663850069046, 0.6156895756721497, 0.22111831605434418, 0.1334003359079361, 0.6641399264335632, -0.5468951463699341, -0.27397218346595764, -0.25216928124427795, 0.9831908345222473, 0.4817929267883301, 0.1520593762397766, -0.10539095103740692, -0.042141322046518326, -0.06969086825847626, 0.08488050103187561, -1.1149630546569824, -0.5170326232910156, 0.19557370245456696, -0.638867974281311, -0.22176650166511536, 0.13019168376922607, -0.5194129347801208, -0.07498857378959656, -0.2444082498550415, 0.8649408221244812, -0.5450775027275085, 0.07306748628616333, 0.24530185759067535, -0.24243174493312836, 0.13236883282661438, 0.08301003277301788, -0.8069336414337158, 0.33056774735450745, 0.0903228148818016, 0.8768094182014465, -0.07285067439079285, -0.3698139786720276, -0.4853478968143463, -0.10346992313861847, 0.0456371046602726, 0.4928211271762848, -0.39066946506500244, -0.28661054372787476, 0.026658840477466583, 0.3769272565841675, -0.47631511092185974, -0.5050727128982544, 0.49900415539741516, -0.3124120533466339, 0.40119537711143494, -0.242367222905159, -0.5919541716575623, -0.0419372022151947, 0.25894710421562195, -0.40447109937667847, 1.059810996055603, 0.11307408660650253, -0.9552176594734192, 0.11472642421722412, -0.3973754942417145, -0.3868357837200165, -0.16212907433509827, -0.12070296704769135, -0.4678418040275574, -0.10126438736915588, 0.4836045801639557, 0.42651864886283875, -0.13774627447128296, -0.0031889297533780336, -0.04973851144313812, -0.49172350764274597, 0.19570228457450867, -0.1407037079334259, 0.8763993382453918, 0.07411916553974152, -0.4687368869781494, -0.1565868854522705, -0.681023359298706, 0.08062482625246048, 0.14615757763385773, -0.4315044581890106, -0.1535199135541916, 0.07743626087903976, 0.005802614148706198, 0.2772572338581085, 0.3524867594242096, -0.4429340958595276, 0.16526983678340912, -0.5286539196968079, 0.6879541277885437, 0.5211483836174011, 0.10139887034893036, 0.4694080650806427, -0.3919792175292969, 0.11396075040102005, 0.3884504437446594, 0.04595918208360672, -0.03646361082792282, -0.5083121061325073, -0.7617079019546509, -0.08038589358329773, 0.5466384291648865, 0.5154832601547241, -0.44926464557647705, 0.581838846206665, -0.3309866786003113, -0.3123413324356079, -0.6810562610626221, 0.13643430173397064, 0.25286173820495605, 0.4034273326396942, 0.797731339931488, -0.09049364924430847, -0.6536906957626343, -1.0030030012130737, -0.2951931655406952, 0.1384458988904953, -0.2853798568248749, 0.24922601878643036, 0.8661356568336487, -0.31884095072746277, 0.607133686542511, -0.6650026440620422, -0.49069228768348694, -0.19696742296218872, 0.13912677764892578, 0.41019579768180847, 0.7690455317497253, 0.3789141774177551, -0.8625717163085938, -0.46579787135124207, -0.536827027797699, -0.8876404762268066, 0.06991300731897354, 0.11036017537117004, -0.2503027021884918, -0.11233307421207428, 0.4776584208011627, -0.6275334358215332, 0.33475735783576965, 0.4920893907546997, -0.4563761055469513, 0.2578365206718445, -0.3020535111427307, 0.16163277626037598, -1.0389302968978882, -0.012186592444777489, 0.18733040988445282, -0.1941613405942917, -0.37792059779167175, 0.13323093950748444, -0.00029671101947315037, -0.13558590412139893, -0.4635475277900696, 0.24076883494853973, -0.5802206993103027, 0.23830638825893402, -0.08328535407781601, 0.3532881736755371, 0.3064594864845276, 0.5188182592391968, -0.06371477246284485, 0.5449506044387817, 0.5848935842514038, -0.8473977446556091, -0.046499453485012054, 0.6591444611549377, -0.3708207309246063, 0.31364598870277405, -0.8820019960403442, 0.1260739415884018, -0.0021032935474067926, 0.21107584238052368, -0.9176376461982727, -0.14590254426002502, 0.27233514189720154, -0.6690908074378967, 0.28935736417770386, -0.05153273791074753, -0.49973616003990173, -0.23508067429065704, -0.5064812898635864, 0.2576437294483185, 0.522503674030304, -0.3170440196990967, 0.48058584332466125, 0.2723854184150696, 0.04202484339475632, -0.5303803086280823, -1.065106987953186, -0.16542117297649384, 0.006630408577620983, -0.6456219553947449, 0.7547336220741272, -0.16929087042808533, 0.19405382871627808, 0.1103118360042572, -0.1390848159790039, 0.18905895948410034, -0.13332654535770416, 0.2665036916732788, 0.02372964285314083, -0.00849620345979929, 0.052216675132513046, -0.10402471572160721, -0.04730258136987686, 0.01905764825642109, -0.26065582036972046, 0.5621255040168762, -0.343005895614624, 0.07528825104236603, -0.5551216006278992, 0.5121909379959106, 0.15524975955486298, -0.20793800055980682, 1.0698496103286743, 0.7594440579414368, -0.394111692905426, 0.0842909961938858, -0.2832547426223755, -0.33857426047325134, -0.46237805485725403, 0.5804774761199951, -0.556306779384613, -0.5270496606826782, 0.42179790139198303, 0.1080254390835762, -0.09394216537475586, 0.8822507262229919, 0.33712807297706604, -0.30602264404296875, 1.2607569694519043, 0.7085190415382385, 0.17320404946804047, 0.4088323712348938, -0.7202177047729492, 0.023291420191526413, -0.8940439820289612, -0.3449389636516571, -0.5903167724609375, -0.4454381465911865, -0.8340352773666382, -0.4344167113304138, 0.2978668510913849, 0.24622032046318054, -0.4532846510410309, 0.3754901885986328, -0.5723501443862915, 0.10105959326028824, 0.5560165047645569, 0.5283056497573853, 0.030651556327939034, 0.14632073044776917, -0.2278415411710739, -0.39257001876831055, -0.8944258093833923, -0.3612978458404541, 0.9591255784034729, 0.2805705964565277, 0.7155342698097229, -0.054667532444000244, 0.6490817070007324, 0.15723516047000885, -0.08936483412981033, -0.6547030806541443, 0.5260882377624512, -0.3797709345817566, -0.3212546408176422, -0.12431379407644272, -0.661184549331665, -0.9848519563674927, 0.3795437216758728, -0.3967702388763428, -0.6586874127388, 0.2368069738149643, -0.1293550580739975, -0.2416468858718872, 0.08528408408164978, -0.8734734058380127, 1.0255084037780762, 0.04465588554739952, -0.30998411774635315, 0.011519227176904678, -0.6844477653503418, -0.22880098223686218, 0.38815948367118835, 0.1143452525138855, 0.018864387646317482, -0.07178860157728195, 1.0711700916290283, -0.3145318031311035, 0.9118449687957764, -0.10059288144111633, 0.40577489137649536, 0.14368504285812378, -0.1486883908510208, 0.51675945520401, -0.19938333332538605, -0.09107007831335068, 0.2443784922361374, 0.04320965334773064, -0.5871127247810364, -0.342832088470459, 0.7547707557678223, -1.1860119104385376, -0.5113223195075989, -0.5353233218193054, -0.4431021809577942, 0.05967877060174942, 0.12322095781564713, 0.6454225182533264, 0.47250714898109436, 0.1590796709060669, 0.5413268804550171, 0.5746974349021912, -0.35344627499580383, 0.30730828642845154, 0.2619336247444153, 0.12410802394151688, -0.42402520775794983, 0.6799749732017517, 0.4011786878108978, 0.19680346548557281, 0.6369568705558777, 0.22431416809558868, -0.3202919363975525, -0.5386985540390015, -0.1482182890176773, 0.4188048541545868, -0.7321093082427979, -0.19242991507053375, -1.0609774589538574, -0.32771798968315125, -0.5720966458320618, -0.009239316917955875, -0.24811136722564697, -0.37796205282211304, -0.4066026210784912, -0.08228667825460434, 0.15214835107326508, 0.4118770956993103, -0.030543798580765724, 0.3247079849243164, -0.6338819861412048, 0.3046600818634033, 0.03624764829874039, 0.07470244914293289, -0.14737573266029358, -0.9340386986732483, -0.4114500880241394, 0.11128459125757217, -0.5653740167617798, -0.9169002175331116, 0.4180959165096283, 0.40356144309043884, 0.6450232863426208, 0.10760629177093506, 0.09717582166194916, 0.6279035806655884, -0.3416239619255066, 0.960808515548706, 0.09426068514585495, -0.8938906788825989, 0.6857879757881165, -0.036484092473983765, 0.6231613755226135, 0.5301470160484314, 0.7827672362327576, -0.3146793842315674, -0.3917185366153717, -0.754974901676178, -1.0810126066207886, 0.6119188666343689, 0.42408987879753113, 0.23191334307193756, -0.11197470873594284, 0.3047740161418915, -0.052846550941467285, 0.2110462188720703, -1.0573155879974365, -0.3841312527656555, -0.37987032532691956, -0.3249206840991974, -0.1316133588552475, -0.22013770043849945, 0.026656311005353928, -0.5357782244682312, 0.8275185823440552, -0.009743583388626575, 0.6457112431526184, 0.551267683506012, -0.5355032682418823, 0.10757556557655334, 0.049229297786951065, 0.2681789994239807, 0.5349881649017334, -0.44196265935897827, 0.3151625096797943, 0.33362412452697754, -0.6284981966018677, -0.14547039568424225, 0.2215384691953659, -0.22793559730052948, 0.07533468306064606, 0.4785584807395935, 0.6895007491111755, 0.30952349305152893, -0.3129276633262634, 0.5907549262046814, 0.004201238043606281, -0.3362678587436676, -0.05867510288953781, -0.06088573858141899, 0.1627792865037918, 0.17213602364063263, 0.4657537639141083, -0.04703481122851372, 0.15767315030097961, -0.5547628402709961, 0.1354369968175888, -0.010092271491885185, -0.4403562545776367, -0.2686012089252472, 0.6855803728103638, 0.21123887598514557, -0.09296739101409912, 1.0078483819961548, -0.13258039951324463, -0.5488322377204895, 0.4550500810146332, 0.6733093857765198, 0.6354165077209473, -0.10572881996631622, 0.12415364384651184, 0.8333417177200317, 0.386380672454834, 0.06298890709877014, 0.17423653602600098, 0.1630886048078537, -0.681164562702179, -0.226838618516922, -0.8895820379257202, -0.0373341403901577, 0.23328930139541626, -0.4716559052467346, 0.19537915289402008, -0.056350041180849075, -0.32266896963119507, -0.0026757747400552034, 0.4538141191005707, -0.9446734189987183, 0.2471589297056198, -0.039525680243968964, 0.6892430186271667, -0.910120964050293, 0.4913121461868286, 0.7423450946807861, -0.8585976958274841, -0.7093443870544434, 0.002073798794299364, -0.34542611241340637, -0.543977677822113, 0.7163969278335571, 0.5066890120506287, 0.09013626724481583, 0.06954498589038849, -0.4979775846004486, -0.6648333072662354, 1.077274203300476, 0.17636479437351227, -0.4394274353981018, -0.31948959827423096, 0.30163875222206116, 0.4039900600910187, -0.4806872010231018, 0.5323741436004639, 0.3169669210910797, 0.2941303849220276, -0.11300064623355865, -0.6377484798431396, 0.2627042829990387, -0.3842112123966217, -0.10467559844255447, -0.18905766308307648, -0.5973854660987854, 1.1200230121612549, -0.2304726541042328, -0.06384650617837906, 0.04387868568301201, 0.6299266815185547, 0.08915725350379944, 0.006850449368357658, 0.3942646086215973, 0.5851446390151978, 0.6224398612976074, -0.06060342118144035, 1.2137280702590942, -0.2959185242652893, 0.521405816078186, 0.806761622428894, 0.3647218942642212, 0.8358708620071411, 0.4453281760215759, -0.32588034868240356, 0.6999415159225464, 0.8325989842414856, -0.13744130730628967, 0.7107114791870117, 0.13891203701496124, 0.1327137053012848, -0.29272881150245667, 0.002202239353209734, -0.5980051159858704, 0.3106749951839447, 0.2093135416507721, -0.6728723645210266, -0.1758641004562378, 0.03555142879486084, 0.07470904290676117, -0.12255119532346725, -0.17435885965824127, 0.4721008539199829, 0.4782041907310486, -0.4107843041419983, 0.9198501110076904, 0.10374976694583893, 0.7305644750595093, -0.6831232309341431, 0.1449870467185974, -0.20265428721904755, 0.3869415819644928, -0.31695541739463806, -0.5896943211555481, 0.1169995442032814, -0.11075655370950699, -0.295531302690506, -0.14805053174495697, 0.5341086983680725, -0.5892188549041748, -0.44013381004333496, 0.3798166811466217, 0.5667764544487, 0.2634302079677582, -0.27582848072052, -1.0168697834014893, 0.049341559410095215, 0.004219863098114729, -0.44147732853889465, 0.4369673430919647, 0.19546440243721008, 0.27264395356178284, 0.48788195848464966, 0.45061659812927246, -0.15249525010585785, -0.01771053858101368, 0.2113690823316574, 0.7906468510627747, -0.6077554225921631, -0.5473712682723999, -0.8501133322715759, 0.41119423508644104, -0.22330598533153534, -0.32982388138771057, 0.8287367820739746, 0.6689644455909729, 0.7342126369476318, -0.1541653871536255, 0.45898979902267456, -0.0467681884765625, 0.12041720747947693, -0.538113534450531, 0.6346664428710938, -0.6575713157653809, -0.0311879999935627, -0.24915368854999542, -0.9721394181251526, -0.18078096210956573, 0.8288593292236328, -0.47071680426597595, 0.14006932079792023, 0.9034106135368347, 0.7876607179641724, -0.2230311781167984, -0.15697892010211945, 0.1988196223974228, 0.5332736372947693, 0.27199235558509827, 0.7916682958602905, 0.5227359533309937, -1.1050890684127808, 0.7618808746337891, -0.18842653930187225, -0.18793083727359772, -0.17763599753379822, -0.7310765385627747, -0.8561485409736633, -0.6415365934371948, -0.5873693227767944, -0.42773377895355225, 0.10950460284948349, 0.9600362181663513, 0.759669840335846, -0.6672033667564392, -0.12155180424451828, -0.00247036200016737, -0.15350890159606934, -0.3137269914150238, -0.2447202354669571, 0.6043722033500671, -0.38157010078430176, -0.8913644552230835, 0.22410982847213745, -0.21998488903045654, 0.13417156040668488, 0.11825110763311386, -0.09944554418325424, -0.6621427536010742, -0.022807519882917404, 0.6519947052001953, -0.13167262077331543, -0.3641517162322998, -0.3475003242492676, 0.012778932228684425, -0.37776118516921997, 0.16850492358207703, 0.15411166846752167, -0.656158983707428, 0.2592039704322815, 0.6524709463119507, 0.4428245723247528, 0.9711618423461914, 0.004454251378774643, 0.4096962511539459, -0.751417875289917, 0.1370585411787033, 0.15670524537563324, 0.33794569969177246, 0.5285162925720215, -0.25593051314353943, 0.44185060262680054, 0.400065541267395, -0.5347827076911926, -0.5972447395324707, -0.12243431061506271, -0.9321937561035156, -0.22529657185077667, 0.9933559894561768, -0.22220563888549805, -0.27057647705078125, 0.12123133987188339, -0.03594186156988144, 0.38790175318717957, -0.25711265206336975, 0.6556323766708374, 0.7959355711936951, -0.1415233165025711, -0.04696342721581459, -0.6878495216369629, 0.5339858531951904, 0.4817323386669159, -0.49285751581192017, -0.3432570993900299, 0.038189489394426346, 0.4589519202709198, 0.18598245084285736, 0.5256153345108032, -0.17026394605636597, 0.016250720247626305, 0.37013745307922363, -0.0993085578083992, -0.05326741933822632, -0.0927366316318512, -0.08397912979125977, 0.19531145691871643, -0.25774648785591125, -0.3257495164871216 ]
timm/ese_vovnet19b_dw.ra_in1k
timm
"2023-04-21T23:12:00Z"
40,975
0
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "arxiv:2110.00476", "arxiv:1904.09730", "arxiv:1911.06667", "license:apache-2.0", "region:us" ]
image-classification
"2023-04-21T23:11:53Z"
--- tags: - image-classification - timm library_name: timm license: apache-2.0 datasets: - imagenet-1k --- # Model card for ese_vovnet19b_dw.ra_in1k A VoVNet-v2 image classification model. Pretrained on ImageNet-1k in `timm` by Ross Wightman using RandAugment `RA` recipe. Related to `B` recipe in [ResNet Strikes Back](https://arxiv.org/abs/2110.00476). ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 6.5 - GMACs: 1.3 - Activations (M): 8.2 - Image size: train = 224 x 224, test = 288 x 288 - **Papers:** - An Energy and GPU-Computation Efficient Backbone Network: https://arxiv.org/abs/1904.09730 - CenterMask : Real-Time Anchor-Free Instance Segmentation: https://arxiv.org/abs/1911.06667 - 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('ese_vovnet19b_dw.ra_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( 'ese_vovnet19b_dw.ra_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, 64, 112, 112]) # torch.Size([1, 256, 56, 56]) # torch.Size([1, 512, 28, 28]) # torch.Size([1, 768, 14, 14]) # torch.Size([1, 1024, 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( 'ese_vovnet19b_dw.ra_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, 1024, 7, 7) shaped tensor output = model.forward_head(output, pre_logits=True) # output is a (1, num_features) shaped tensor ``` ## Citation ```bibtex @inproceedings{lee2019energy, title = {An Energy and GPU-Computation Efficient Backbone Network for Real-Time Object Detection}, author = {Lee, Youngwan and Hwang, Joong-won and Lee, Sangrok and Bae, Yuseok and Park, Jongyoul}, booktitle = {Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops}, year = {2019} } ``` ```bibtex @article{lee2019centermask, title={CenterMask: Real-Time Anchor-Free Instance Segmentation}, author={Lee, Youngwan and Park, Jongyoul}, booktitle={CVPR}, year={2020} } ``` ```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.4995127320289612, -0.5308496952056885, 0.054795268923044205, 0.042239103466272354, -0.4007248878479004, -0.36435356736183167, -0.16579724848270416, -0.4365631639957428, 0.2494615614414215, 0.5171448588371277, -0.5081707239151001, -0.6932788491249084, -0.6121204495429993, -0.09684629738330841, -0.16446459293365479, 0.8050079345703125, 0.02813953347504139, -0.04614383727312088, -0.2635774314403534, -0.5412457585334778, -0.2562268078327179, -0.42114555835723877, -0.9504365921020508, -0.43393832445144653, 0.3445852994918823, 0.2278667837381363, 0.3260587155818939, 0.7682011127471924, 0.5913607478141785, 0.47943806648254395, -0.09640030562877655, 0.10388772934675217, -0.20685824751853943, -0.15504227578639984, 0.34877052903175354, -0.5991714596748352, -0.4306240379810333, 0.15512600541114807, 0.660763680934906, 0.2383459359407425, -0.033697981387376785, 0.33291029930114746, 0.05895904451608658, 0.5191063284873962, -0.2651542127132416, 0.06309103965759277, -0.4938773810863495, 0.2545137107372284, -0.22103211283683777, 0.06971825659275055, -0.37492576241493225, -0.2858426868915558, 0.20320360362529755, -0.6014625430107117, 0.5252514481544495, 0.016420193016529083, 1.485870361328125, 0.2720245122909546, 0.029681667685508728, 0.07897475361824036, -0.19740232825279236, 1.0168662071228027, -0.7615618109703064, 0.24054211378097534, 0.2610783576965332, 0.24678157269954681, -0.07372987270355225, -1.0020546913146973, -0.5301476120948792, -0.08386927098035812, -0.054691094905138016, 0.00672971922904253, -0.1804502308368683, -0.057833582162857056, 0.3082887530326843, 0.23986414074897766, -0.38620105385780334, 0.23291949927806854, -0.5477014183998108, -0.17155200242996216, 0.5363485217094421, 0.008061775006353855, 0.36939582228660583, -0.2539166808128357, -0.5715565085411072, -0.49821120500564575, -0.40754830837249756, 0.2593195140361786, 0.3232920169830322, 0.2241399586200714, -0.6047759652137756, 0.3416261672973633, 0.1542900800704956, 0.6342504024505615, 0.015074050985276699, -0.3208024203777313, 0.5851786732673645, 0.08103673160076141, -0.4263666272163391, -0.10084183514118195, 0.9602980017662048, 0.38429662585258484, 0.2401461899280548, 0.1993175595998764, -0.050717614591121674, -0.35059332847595215, 0.0626070499420166, -1.1502257585525513, -0.31472042202949524, 0.3171537518501282, -0.6399281024932861, -0.4530850052833557, 0.2595294415950775, -0.6524415612220764, -0.05989374592900276, -0.06913994252681732, 0.442043274641037, -0.5305697917938232, -0.483955979347229, 0.1830109804868698, -0.27533382177352905, 0.5200257301330566, 0.18904685974121094, -0.540861964225769, 0.15576595067977905, 0.3851349353790283, 1.0198569297790527, 0.08050638437271118, -0.37747839093208313, -0.29161134362220764, -0.2625318169593811, -0.18661794066429138, 0.6392078399658203, -0.16111823916435242, -0.1853221207857132, -0.3232661485671997, 0.3904402554035187, -0.12349075078964233, -0.744181215763092, 0.2242443561553955, -0.1725989133119583, 0.24931077659130096, -0.13873246312141418, -0.26727405190467834, -0.6253101825714111, 0.3489145040512085, -0.414029061794281, 1.3451632261276245, 0.20576053857803345, -0.8330342769622803, 0.3546582758426666, -0.49825018644332886, -0.17877088487148285, -0.2177986353635788, -0.14521807432174683, -1.2177566289901733, -0.0713375061750412, 0.3059982359409332, 0.7420928478240967, -0.2897953689098358, -0.0961652621626854, -0.6009395122528076, -0.19831956923007965, 0.30351975560188293, -0.0686168521642685, 1.023290753364563, 0.10984684526920319, -0.459980309009552, 0.16199558973312378, -0.7589114904403687, 0.24991358816623688, 0.5780067443847656, -0.20221513509750366, -0.15119720995426178, -0.4599452614784241, 0.14633946120738983, 0.20385821163654327, 0.07195200771093369, -0.6153875589370728, 0.2542870044708252, -0.14445263147354126, 0.3882219195365906, 0.6837593913078308, -0.017614539712667465, 0.24325917661190033, -0.3407879173755646, 0.24580325186252594, 0.254329651594162, 0.32451561093330383, -0.05996054410934448, -0.5529259443283081, -0.8608710169792175, -0.5277499556541443, 0.27497053146362305, 0.4470130503177643, -0.5100935101509094, 0.5846219658851624, -0.07637367397546768, -0.7387061715126038, -0.3866940140724182, -0.08453603088855743, 0.5694392323493958, 0.530651867389679, 0.4553316831588745, -0.48574548959732056, -0.6302797794342041, -0.9309665560722351, 0.060034677386283875, 0.08078490197658539, 0.013088653795421124, 0.3633359968662262, 0.6448628902435303, -0.05459264665842056, 0.7180427312850952, -0.5144364237785339, -0.31269991397857666, -0.26085177063941956, 0.09275585412979126, 0.25931116938591003, 0.8515682220458984, 0.9009583592414856, -0.7059667110443115, -0.4576488137245178, -0.13133899867534637, -1.0977048873901367, 0.16974471509456635, -0.11583894491195679, -0.1725742667913437, 0.17126357555389404, 0.286344975233078, -0.397288054227829, 0.6334808468818665, 0.122256800532341, -0.21422165632247925, 0.38388755917549133, -0.24859175086021423, 0.1978377103805542, -1.167077660560608, -0.016978783532977104, 0.40847912430763245, -0.04158870875835419, -0.4566553831100464, 0.053166791796684265, 0.004867405164986849, -0.0903354063630104, -0.661788821220398, 0.6376559734344482, -0.6755884885787964, -0.30313563346862793, -0.11823136359453201, -0.1994612067937851, 0.038257304579019547, 0.7632449865341187, 0.04273935407400131, 0.3983737528324127, 0.8829236626625061, -0.5757625102996826, 0.41530054807662964, 0.33820509910583496, -0.2227145880460739, 0.534127414226532, -0.7020944952964783, 0.3394223749637604, -0.09299872815608978, 0.14297331869602203, -0.8868306875228882, -0.20748268067836761, 0.27550628781318665, -0.531069278717041, 0.6571374535560608, -0.5381224751472473, -0.2406144142150879, -0.554814338684082, -0.46584436297416687, 0.44733551144599915, 0.6586301326751709, -0.7672335505485535, 0.4344263970851898, 0.26407384872436523, 0.37291792035102844, -0.679034948348999, -0.8485206365585327, -0.23790863156318665, -0.40670475363731384, -0.6528192162513733, 0.35635024309158325, 0.17646434903144836, 0.06925676017999649, 0.23829621076583862, -0.09080002456903458, -0.14681333303451538, -0.03490079939365387, 0.5204964280128479, 0.32132893800735474, -0.309572696685791, -0.19993551075458527, -0.3209131956100464, -0.16159716248512268, -0.08462178707122803, -0.3007860779762268, 0.6469827890396118, -0.27823570370674133, -0.3428690433502197, -0.8932097554206848, -0.050577469170093536, 0.49660468101501465, -0.1882265955209732, 0.8093075752258301, 1.1141066551208496, -0.5670891404151917, -0.08848053216934204, -0.49773985147476196, -0.34426528215408325, -0.49159660935401917, 0.5651294589042664, -0.4190329313278198, -0.40972962975502014, 0.8121252655982971, 0.012293322943150997, 0.11294872313737869, 0.6742823123931885, 0.24762152135372162, -0.04260268434882164, 0.6489318013191223, 0.6323456764221191, 0.2483709305524826, 0.7708156108856201, -1.0571742057800293, -0.15126928687095642, -0.9906290769577026, -0.592526912689209, -0.468471497297287, -0.5175711512565613, -0.42762991786003113, -0.40920206904411316, 0.4327010214328766, 0.2440561205148697, -0.32274940609931946, 0.5311302542686462, -0.9374088644981384, 0.15953977406024933, 0.64242023229599, 0.5833345055580139, -0.43143361806869507, 0.3630070090293884, -0.21525470912456512, -0.08303157240152359, -0.7245420813560486, -0.2089235931634903, 1.08854341506958, 0.43294307589530945, 0.5630115866661072, -0.2562822103500366, 0.7970333695411682, -0.17164909839630127, 0.2928754389286041, -0.6125268936157227, 0.7186650037765503, -0.16163980960845947, -0.4395671486854553, -0.2938438057899475, -0.2537800371646881, -1.069014549255371, 0.2176874577999115, -0.2903815507888794, -0.727057158946991, 0.1784365326166153, 0.1115109920501709, -0.2319353073835373, 0.8687918782234192, -0.7621952891349792, 0.9240828156471252, -0.17961975932121277, -0.35607457160949707, 0.0033983595203608274, -0.5173143744468689, 0.16962496936321259, 0.2486560046672821, -0.27233460545539856, -0.21704421937465668, 0.2833910584449768, 1.1289812326431274, -0.6498692035675049, 0.8851349949836731, -0.539493203163147, 0.42487987875938416, 0.6332945227622986, -0.33374878764152527, 0.40918999910354614, -0.10295061022043228, -0.12578962743282318, 0.4063508212566376, -0.12509679794311523, -0.5547963380813599, -0.5019041299819946, 0.5126716494560242, -0.95695561170578, -0.37042734026908875, -0.39116567373275757, -0.2922692894935608, 0.2813832759857178, 0.135079488158226, 0.6217581033706665, 0.7896299362182617, 0.1676899641752243, 0.43337011337280273, 0.6940561532974243, -0.5322495102882385, 0.5076794028282166, 0.0006420671124942601, -0.0940914899110794, -0.458855003118515, 0.8485325574874878, 0.2634042799472809, 0.06430471688508987, 0.1951969712972641, 0.12702547013759613, -0.35940057039260864, -0.6151284575462341, -0.3486386835575104, 0.3829602301120758, -0.6086601614952087, -0.47081488370895386, -0.6427939534187317, -0.49633148312568665, -0.3809894025325775, -0.18313762545585632, -0.5829204320907593, -0.24627633392810822, -0.43671780824661255, 0.09280779957771301, 0.762135922908783, 0.5718101859092712, -0.1371704787015915, 0.5781656503677368, -0.5029103755950928, 0.1702447235584259, 0.27593156695365906, 0.3617889881134033, -0.06771928071975708, -0.7798914909362793, -0.19631360471248627, -0.13109345734119415, -0.3831726610660553, -0.7229012250900269, 0.4620928168296814, 0.11045850813388824, 0.6419804096221924, 0.3927878439426422, -0.22216323018074036, 0.7732985615730286, -0.04911591857671738, 0.6226457357406616, 0.47772711515426636, -0.5750871300697327, 0.6172922849655151, -0.032110970467329025, 0.10426902025938034, 0.06036946550011635, 0.17059768736362457, -0.2850898206233978, -0.01690681092441082, -0.9492179751396179, -0.7882558107376099, 0.927509605884552, 0.05461886525154114, -0.13834217190742493, 0.21929112076759338, 0.7564656734466553, -0.0326521135866642, -0.060059804469347, -0.7465028166770935, -0.5040930509567261, -0.35273319482803345, -0.2248946875333786, 0.15404318273067474, -0.15552689135074615, 0.007021486293524504, -0.6008529663085938, 0.765516996383667, 0.027056513354182243, 0.8127356171607971, 0.35587427020072937, 0.011149877682328224, -0.005498423706740141, -0.3319467008113861, 0.501961886882782, 0.2493574172258377, -0.36599811911582947, -0.015328414738178253, 0.2942183017730713, -0.6614359021186829, 0.15077489614486694, 0.036754805594682693, -0.06367252767086029, 0.009778402745723724, 0.453621506690979, 0.9707159399986267, 0.07020540535449982, 0.10481142997741699, 0.4078221619129181, -0.09234927594661713, -0.44144850969314575, -0.38400575518608093, 0.20068229734897614, -0.17084744572639465, 0.3913693130016327, 0.36680662631988525, 0.3447958528995514, -0.2886590361595154, -0.20091666281223297, 0.34581130743026733, 0.4979863464832306, -0.34856900572776794, -0.3461710214614868, 0.7227851748466492, -0.13396042585372925, -0.2684185206890106, 0.9147560000419617, -0.14031697809696198, -0.47327670454978943, 1.2497851848602295, 0.526423454284668, 1.0886077880859375, -0.09077633172273636, 0.04791846498847008, 0.881062924861908, 0.22616250813007355, -0.06877034902572632, 0.1929675042629242, 0.20944353938102722, -0.8310649394989014, 0.0037425789050757885, -0.5907959342002869, 0.06409133225679398, 0.4847831428050995, -0.6955031752586365, 0.367127388715744, -0.731235146522522, -0.410067617893219, 0.1047777533531189, 0.22011984884738922, -0.988423764705658, 0.2557935118675232, -0.0827510803937912, 0.7984173893928528, -0.7986432313919067, 0.8552351593971252, 0.9483838677406311, -0.47955793142318726, -0.9708178043365479, -0.14526879787445068, 0.03090730682015419, -1.0542430877685547, 0.5542568564414978, 0.4780656099319458, 0.10221071541309357, 0.06724974513053894, -0.7372692823410034, -0.6752668023109436, 1.4030903577804565, 0.3942485451698303, -0.12295699864625931, 0.2790423035621643, -0.12242113053798676, 0.19029174745082855, -0.4049641489982605, 0.3998814821243286, 0.12469767779111862, 0.4062446057796478, 0.1833406537771225, -0.5584100484848022, 0.1604434698820114, -0.24409115314483643, 0.15461355447769165, 0.2485056072473526, -0.8622173070907593, 0.9236003160476685, -0.4499262571334839, -0.20367611944675446, -0.055023279041051865, 0.8016010522842407, 0.2747361660003662, 0.1579177975654602, 0.629090428352356, 0.9471300840377808, 0.5754460692405701, -0.32977840304374695, 0.8509061336517334, 0.040756866335868835, 0.5971910953521729, 0.5561657547950745, 0.3332298994064331, 0.6012059450149536, 0.33105364441871643, -0.2772897481918335, 0.43894970417022705, 1.0398786067962646, -0.41447967290878296, 0.39828595519065857, 0.21072646975517273, -0.0151584567502141, -0.19481520354747772, 0.10740233957767487, -0.5449138879776001, 0.5131151676177979, 0.23087367415428162, -0.3497712314128876, -0.2338183969259262, 0.19667108356952667, 0.0035937016364187002, -0.2102101892232895, -0.1746901422739029, 0.5004257559776306, -0.01544075645506382, -0.3504214584827423, 0.8346396684646606, 0.09020645916461945, 0.8641994595527649, -0.38795942068099976, -0.056074853986501694, -0.27194976806640625, 0.2083849161863327, -0.334127277135849, -0.7679856419563293, 0.25728195905685425, -0.23924507200717926, -0.04397492855787277, 0.03144289553165436, 0.703173041343689, -0.25909966230392456, -0.41708123683929443, 0.22918592393398285, 0.23919756710529327, 0.6260088682174683, 0.08675895631313324, -1.2415144443511963, 0.2342250496149063, 0.14515841007232666, -0.6193947196006775, 0.3361265957355499, 0.43562132120132446, 0.046886615455150604, 0.6996421217918396, 0.6546822190284729, -0.10984879732131958, 0.21388186514377594, -0.17541976273059845, 0.7177467942237854, -0.5614036917686462, -0.34338754415512085, -0.7717620730400085, 0.5768297910690308, -0.26476186513900757, -0.5831688642501831, 0.5576855540275574, 0.6682797074317932, 0.9404606819152832, -0.1082465723156929, 0.5235682725906372, -0.25073322653770447, 0.0490323044359684, -0.49572843313217163, 0.5989765524864197, -0.7278261184692383, 0.037921760231256485, -0.06404883414506912, -0.7607174515724182, -0.2819889485836029, 0.7814823985099792, -0.25206640362739563, 0.3148193955421448, 0.518991231918335, 0.9443994164466858, -0.3695366084575653, -0.4210880696773529, 0.19704003632068634, 0.08661194890737534, 0.21617767214775085, 0.3772514760494232, 0.37785181403160095, -0.8283728361129761, 0.37673690915107727, -0.6286901235580444, -0.1597508192062378, -0.2224978804588318, -0.7579164505004883, -1.0268172025680542, -0.8705143928527832, -0.6840881705284119, -0.6084761619567871, -0.17466804385185242, 0.8630702495574951, 1.1886235475540161, -0.7088804244995117, -0.11422765254974365, -0.011419851332902908, 0.2175905555486679, -0.3987705111503601, -0.22933891415596008, 0.7012555599212646, -0.17342360317707062, -0.8138579726219177, -0.14324457943439484, 0.1736871898174286, 0.43940532207489014, 0.05632822960615158, -0.23884302377700806, -0.17361612617969513, -0.22762219607830048, 0.22633059322834015, 0.5055950284004211, -0.6898921132087708, -0.34798625111579895, -0.2486044466495514, -0.086853988468647, 0.4096323847770691, 0.48388394713401794, -0.5064956545829773, 0.31356626749038696, 0.3307839632034302, 0.40285566449165344, 0.9583299160003662, -0.26132798194885254, 0.00459594652056694, -0.9146602749824524, 0.7699940204620361, -0.1819545477628708, 0.497266948223114, 0.3911277949810028, -0.3308044672012329, 0.6100627183914185, 0.5330302715301514, -0.39417728781700134, -0.9425401091575623, -0.007343332748860121, -1.1448075771331787, -0.23085810244083405, 0.8557394742965698, -0.3724903464317322, -0.6624598503112793, 0.2712724804878235, -0.03905702009797096, 0.646001935005188, -0.08066876977682114, 0.45634061098098755, 0.2043835073709488, -0.13926027715206146, -0.6028829216957092, -0.4972156882286072, 0.511211097240448, 0.1434531807899475, -0.6862882375717163, -0.5022585391998291, -0.017789481207728386, 0.6799509525299072, 0.21944959461688995, 0.5513002276420593, -0.17724165320396423, 0.053205542266368866, 0.16041287779808044, 0.6070259213447571, -0.5242400765419006, -0.17736883461475372, -0.2811276316642761, 0.07996141165494919, -0.2016676664352417, -0.8013573884963989 ]
timm/res2net101_26w_4s.in1k
timm
"2023-04-24T00:07:55Z"
40,972
0
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "arxiv:1904.01169", "license:unknown", "region:us" ]
image-classification
"2023-04-24T00:07:15Z"
--- tags: - image-classification - timm library_name: timm license: unknown datasets: - imagenet-1k --- # Model card for res2net101_26w_4s.in1k A Res2Net (Multi-Scale ResNet) image classification model. Trained on ImageNet-1k by paper authors. ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 45.2 - GMACs: 8.1 - Activations (M): 18.4 - Image size: 224 x 224 - **Papers:** - Res2Net: A New Multi-scale Backbone Architecture: https://arxiv.org/abs/1904.01169 - **Dataset:** ImageNet-1k - **Original:** https://github.com/gasvn/Res2Net/ ## 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('res2net101_26w_4s.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( 'res2net101_26w_4s.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, 64, 112, 112]) # torch.Size([1, 256, 56, 56]) # torch.Size([1, 512, 28, 28]) # torch.Size([1, 1024, 14, 14]) # torch.Size([1, 2048, 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( 'res2net101_26w_4s.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, 2048, 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 @article{gao2019res2net, title={Res2Net: A New Multi-scale Backbone Architecture}, author={Gao, Shang-Hua and Cheng, Ming-Ming and Zhao, Kai and Zhang, Xin-Yu and Yang, Ming-Hsuan and Torr, Philip}, journal={IEEE TPAMI}, doi={10.1109/TPAMI.2019.2938758}, } ```
[ -0.46178489923477173, -0.3475799262523651, -0.07853811979293823, 0.1981964409351349, -0.2825973927974701, -0.3963412344455719, -0.21328534185886383, -0.4067700207233429, 0.3338202238082886, 0.52480149269104, -0.44712260365486145, -0.5410194396972656, -0.7024641633033752, -0.11121091991662979, -0.10099829733371735, 0.907820999622345, -0.040179356932640076, 0.021633371710777283, -0.14782173931598663, -0.5915770530700684, -0.1599581390619278, -0.2616701126098633, -1.0126910209655762, -0.4328666031360626, 0.4052167534828186, 0.2450299859046936, 0.3790155351161957, 0.6554113626480103, 0.6424724459648132, 0.5079740285873413, -0.07732690870761871, 0.14004407823085785, -0.2582736015319824, -0.2364264279603958, 0.3374648094177246, -0.6797488927841187, -0.5039880275726318, 0.2797558307647705, 0.826104462146759, 0.31123560667037964, 0.08374349772930145, 0.5460914373397827, 0.18623493611812592, 0.6234197616577148, -0.14757834374904633, 0.1819489598274231, -0.40960654616355896, 0.17978031933307648, -0.19736798107624054, 0.18168887495994568, -0.31252413988113403, -0.4292798340320587, 0.17937177419662476, -0.4798762798309326, 0.38613423705101013, 0.13925562798976898, 1.325177788734436, 0.22691623866558075, -0.10869377106428146, 0.06458566337823868, -0.13563226163387299, 0.8734063506126404, -0.7980565428733826, 0.23324443399906158, 0.3141360878944397, 0.22444185614585876, -0.05650795251131058, -1.187003493309021, -0.5776236057281494, 0.017419522628188133, -0.2042803168296814, -0.06840331107378006, -0.1662546843290329, -0.08795130997896194, 0.27180057764053345, 0.2796671688556671, -0.4525596499443054, 0.21322326362133026, -0.6382470726966858, -0.2621561884880066, 0.5374245643615723, 0.0470806322991848, 0.31849178671836853, -0.25768381357192993, -0.5296818614006042, -0.40530017018318176, -0.2809322476387024, 0.3453107178211212, 0.31129226088523865, 0.35140717029571533, -0.6908535957336426, 0.38477611541748047, 0.18034884333610535, 0.51134192943573, 0.01481561828404665, -0.37926554679870605, 0.6594144105911255, -0.016793550923466682, -0.4298612177371979, -0.1638362854719162, 1.1282672882080078, 0.43912842869758606, 0.2538833022117615, 0.20493359863758087, -0.07260438799858093, -0.4357202351093292, -0.04734717682003975, -1.2139089107513428, -0.38913729786872864, 0.375080943107605, -0.7509143948554993, -0.46389734745025635, 0.1611119955778122, -0.7737008333206177, -0.21238476037979126, 0.0035473236348479986, 0.4673874080181122, -0.3551524877548218, -0.54059898853302, 0.06431178003549576, -0.21936999261379242, 0.31191399693489075, 0.10324203222990036, -0.5718880891799927, 0.206206277012825, 0.3039526343345642, 1.1671644449234009, 0.1503981053829193, -0.45475053787231445, -0.18621456623077393, -0.42754366993904114, -0.25749579071998596, 0.510199248790741, -0.026189634576439857, -0.005856652278453112, -0.36300116777420044, 0.4271407127380371, -0.15773646533489227, -0.6616820693016052, 0.19355839490890503, -0.23983369767665863, 0.3542909622192383, -0.09928432106971741, -0.16204933822155, -0.5764553546905518, 0.3590935170650482, -0.5177332162857056, 1.293709397315979, 0.42689478397369385, -0.934235692024231, 0.18655067682266235, -0.5112026333808899, -0.0901017114520073, -0.39414283633232117, 0.027812674641609192, -1.1613564491271973, -0.12957684695720673, 0.06006014719605446, 0.6255987286567688, -0.4435901641845703, -0.008423058316111565, -0.6113096475601196, -0.1288272738456726, 0.29519006609916687, -0.0343908816576004, 1.002915620803833, 0.09652352333068848, -0.38091275095939636, 0.18361416459083557, -0.5936875343322754, 0.3396954834461212, 0.5548692941665649, -0.3497142791748047, -0.002164481906220317, -0.6626273393630981, 0.28288567066192627, 0.40390732884407043, 0.16395579278469086, -0.6162399053573608, 0.2816600501537323, -0.24949491024017334, 0.5481357574462891, 0.6015928983688354, -0.16934417188167572, 0.3155305087566376, -0.3816942870616913, 0.16587774455547333, 0.19381597638130188, 0.1889476180076599, 0.017708325758576393, -0.6332932710647583, -0.7853377461433411, -0.4204021096229553, 0.41184863448143005, 0.42059871554374695, -0.42491698265075684, 0.46236521005630493, -0.16825951635837555, -0.7865768074989319, -0.4532749354839325, 0.06926381587982178, 0.5600326657295227, 0.6100345253944397, 0.43261396884918213, -0.46762537956237793, -0.5904686450958252, -0.9925171732902527, 0.12089719623327255, 0.012742478400468826, -0.015191759914159775, 0.37010273337364197, 0.6917224526405334, -0.061775848269462585, 0.631903350353241, -0.4404418468475342, -0.3713732361793518, -0.30633971095085144, 0.06401325762271881, 0.36349111795425415, 0.8230609893798828, 0.9048048257827759, -0.6185970902442932, -0.4238732159137726, -0.17961429059505463, -1.0115121603012085, 0.19614847004413605, -0.14091041684150696, -0.19962471723556519, 0.2520284354686737, 0.07876431941986084, -0.4817735254764557, 0.5439289808273315, 0.2818661630153656, -0.3257574439048767, 0.4641052782535553, -0.27376195788383484, 0.20708322525024414, -1.3332960605621338, 0.13699957728385925, 0.41283151507377625, -0.022989362478256226, -0.46063435077667236, 0.04969502240419388, 0.10788018256425858, -0.058553263545036316, -0.5073007941246033, 0.6785675883293152, -0.6019517183303833, -0.36503341794013977, -0.19057895243167877, -0.2195149064064026, 0.1712721735239029, 0.7618173956871033, -0.0020630343351513147, 0.38137087225914, 0.7852884531021118, -0.42299947142601013, 0.5758582949638367, 0.39280688762664795, -0.19150879979133606, 0.381039559841156, -0.6898277997970581, 0.1507832556962967, 0.04908869042992592, 0.36839085817337036, -1.1192924976348877, -0.25883543491363525, 0.23244908452033997, -0.5785278677940369, 0.6682826280593872, -0.5040482878684998, -0.40013551712036133, -0.6725069284439087, -0.5332314372062683, 0.4550062119960785, 0.7124764919281006, -0.7201641798019409, 0.3634350597858429, 0.2910882234573364, 0.30589398741722107, -0.5421949625015259, -1.0045297145843506, -0.20940710604190826, -0.4675060510635376, -0.7683713436126709, 0.2899400591850281, 0.2699466645717621, 0.14965249598026276, 0.11374896764755249, -0.025025509297847748, -0.21519741415977478, -0.1525203287601471, 0.5398565530776978, 0.306428998708725, -0.36503058671951294, -0.12308263033628464, -0.30908820033073425, -0.11371876299381256, 0.087763711810112, -0.36915066838264465, 0.6542003154754639, -0.331275075674057, -0.1154293343424797, -1.0264270305633545, -0.16837508976459503, 0.5584232807159424, -0.13223683834075928, 0.8674938082695007, 1.1575942039489746, -0.5481545925140381, 0.04260275885462761, -0.403890460729599, -0.3963155746459961, -0.48638916015625, 0.5314571857452393, -0.39581212401390076, -0.43520087003707886, 0.9118483662605286, -0.14989621937274933, 0.15513372421264648, 0.674759566783905, 0.21802164614200592, -0.08484544605016708, 0.61174076795578, 0.517802894115448, 0.19720174372196198, 0.5654207468032837, -1.106418251991272, -0.17414696514606476, -1.0962766408920288, -0.6443676352500916, -0.4791366159915924, -0.7777354121208191, -0.6400665044784546, -0.41443461179733276, 0.4205646514892578, 0.25043728947639465, -0.5109496712684631, 0.6002654433250427, -0.8632685542106628, 0.003876341972500086, 0.6513425707817078, 0.5664536356925964, -0.48835697770118713, 0.3409067392349243, -0.23888877034187317, -0.057009294629096985, -0.6856693029403687, -0.20279255509376526, 1.1258387565612793, 0.5904244780540466, 0.5827207565307617, -0.042402878403663635, 0.6149752140045166, -0.24686574935913086, 0.20779795944690704, -0.5643654465675354, 0.5223506093025208, -0.17309275269508362, -0.4132993519306183, -0.2509413957595825, -0.3444034159183502, -1.0531889200210571, 0.18383190035820007, -0.32610785961151123, -0.7910622358322144, 0.16540877521038055, 0.1463661640882492, -0.2346538007259369, 0.9473985433578491, -0.7663713097572327, 0.9285812377929688, -0.11188685148954391, -0.435465931892395, 0.012987690046429634, -0.6881878972053528, 0.3305371105670929, 0.11904019862413406, -0.1703498214483261, -0.06863851845264435, 0.13804109394550323, 1.1664527654647827, -0.585303544998169, 0.9196972846984863, -0.49457329511642456, 0.3990815281867981, 0.5705663561820984, -0.16800403594970703, 0.3415943682193756, -0.04368334263563156, -0.21107375621795654, 0.42914310097694397, -0.04787920042872429, -0.5144363045692444, -0.5497500896453857, 0.596398651599884, -1.0141209363937378, -0.2806377410888672, -0.29577407240867615, -0.4017760157585144, 0.16776543855667114, 0.10715821385383606, 0.5512598156929016, 0.8238261938095093, 0.3685801923274994, 0.4156736433506012, 0.5718171000480652, -0.4735878109931946, 0.474040150642395, -0.13370901346206665, -0.1686403900384903, -0.5689874291419983, 0.8268057703971863, 0.24068428575992584, 0.17373645305633545, 0.06524127721786499, 0.2103891521692276, -0.5253035426139832, -0.5339891910552979, -0.4510501027107239, 0.41536375880241394, -0.5545414686203003, -0.5412278771400452, -0.6242308020591736, -0.49411872029304504, -0.522613525390625, -0.022635506466031075, -0.6221686601638794, -0.40263721346855164, -0.3733000159263611, 0.23443949222564697, 0.724949836730957, 0.6095349192619324, -0.2009025514125824, 0.5578130483627319, -0.5733850002288818, 0.08737166225910187, 0.13808630406856537, 0.5069286227226257, 0.0005555579555220902, -1.0293430089950562, -0.20496630668640137, -0.0830422192811966, -0.39397257566452026, -0.6551991105079651, 0.44913968443870544, 0.1485520303249359, 0.44893378019332886, 0.392365038394928, -0.1911107897758484, 0.7362136244773865, -0.019179487600922585, 0.6203778386116028, 0.4629657566547394, -0.5030179619789124, 0.601083517074585, 0.047445058822631836, 0.11423288285732269, 0.035043492913246155, 0.25484755635261536, -0.3158852458000183, 0.06059646233916283, -0.9358983635902405, -0.6976741552352905, 0.9848402142524719, 0.05667766183614731, -0.006347896531224251, 0.3746228516101837, 0.8116865158081055, -0.06650857627391815, -0.055495742708444595, -0.7204464673995972, -0.46099838614463806, -0.3881802260875702, -0.18103142082691193, 0.12688709795475006, -0.20525065064430237, -0.042612187564373016, -0.5723130702972412, 0.6431412696838379, -0.10433889180421829, 0.810211718082428, 0.26232990622520447, 0.1640804409980774, 0.002937974175438285, -0.4715255796909332, 0.5315289497375488, 0.21668386459350586, -0.27567949891090393, 0.07801797986030579, 0.3067159652709961, -0.6305040121078491, 0.10366828739643097, -0.01500520296394825, 0.11536342650651932, -0.12385386228561401, 0.6007533073425293, 0.9565890431404114, -0.0014155374374240637, 0.18908055126667023, 0.36346060037612915, -0.09679779410362244, -0.48140349984169006, -0.2726016342639923, 0.09769408404827118, 0.05738014727830887, 0.41887468099594116, 0.2170129120349884, 0.4091186225414276, -0.2350713461637497, -0.2246498018503189, 0.33541804552078247, 0.4547792077064514, -0.27434515953063965, -0.3990054428577423, 0.6904803514480591, -0.13527898490428925, -0.18231017887592316, 1.0637915134429932, -0.07176050543785095, -0.4602561295032501, 1.2583732604980469, 0.5534100532531738, 0.8579448461532593, -0.09665918350219727, -0.03045741282403469, 1.0077111721038818, 0.22833813726902008, -0.0722886249423027, 0.1953856348991394, 0.3055312931537628, -0.8077037930488586, 0.1194818913936615, -0.671829879283905, 0.13966229557991028, 0.5021832585334778, -0.6649503111839294, 0.32217904925346375, -0.7849920392036438, -0.44715139269828796, 0.14239710569381714, 0.38539770245552063, -0.8517552018165588, 0.2725350856781006, -0.0810147374868393, 0.9731588363647461, -0.8160368204116821, 0.891794741153717, 0.8893121480941772, -0.5251284837722778, -1.1831427812576294, -0.10877010226249695, 0.15141507983207703, -1.0276210308074951, 0.6613177061080933, 0.5125592350959778, 0.23573391139507294, 0.08783502131700516, -0.6088387370109558, -0.7325556874275208, 1.4915274381637573, 0.41458019614219666, -0.049362897872924805, 0.25726985931396484, -0.027570992708206177, 0.26345551013946533, -0.4884834885597229, 0.5787976384162903, 0.1913480907678604, 0.4679596722126007, 0.3327064514160156, -0.7771098613739014, 0.25868165493011475, -0.26721206307411194, 0.18133366107940674, 0.22397242486476898, -0.9716731309890747, 1.0064706802368164, -0.6001104712486267, -0.09137029945850372, 0.03829893469810486, 0.7000043392181396, 0.2725759446620941, 0.1476750522851944, 0.5485280752182007, 0.8976498246192932, 0.6108863949775696, -0.34224042296409607, 0.8019326329231262, -0.04597567394375801, 0.7103463411331177, 0.6399853229522705, 0.295469731092453, 0.6126010417938232, 0.2345685362815857, -0.27800801396369934, 0.460284948348999, 1.1963286399841309, -0.40389129519462585, 0.31685683131217957, 0.2915440499782562, 0.007343239616602659, -0.0785367488861084, 0.07451516389846802, -0.5388431549072266, 0.5869575142860413, 0.23454339802265167, -0.5067201256752014, -0.3112426996231079, 0.07257439196109772, 0.030488699674606323, -0.2740539610385895, -0.15366752445697784, 0.48359888792037964, -0.01719525456428528, -0.3222081959247589, 0.844593346118927, 0.17219668626785278, 0.8324946761131287, -0.3252575397491455, 0.002396638272330165, -0.35304543375968933, 0.23843301832675934, -0.3953956067562103, -0.9407351016998291, 0.40513020753860474, -0.2790798544883728, -0.04646202176809311, 0.039682429283857346, 0.6355361938476562, -0.33754342794418335, -0.38998231291770935, 0.26153364777565, 0.21521566808223724, 0.6748340129852295, 0.09791359305381775, -1.3112715482711792, 0.1748347282409668, 0.11556937545537949, -0.6980326175689697, 0.4304106831550598, 0.4268569350242615, 0.03319237753748894, 0.7902318239212036, 0.5886923670768738, -0.09077764302492142, 0.0239245668053627, -0.23913495242595673, 0.7827968597412109, -0.473076730966568, -0.23947493731975555, -0.7828245162963867, 0.6477435827255249, -0.18577805161476135, -0.6059892177581787, 0.4442307949066162, 0.702232301235199, 0.7696329951286316, 0.023253461346030235, 0.4773651361465454, -0.3061770498752594, -0.014885342679917812, -0.38761022686958313, 0.7394647002220154, -0.7249001264572144, -0.06940644234418869, 0.057854730635881424, -0.7031514644622803, -0.2841300666332245, 0.6714279055595398, -0.15696489810943604, 0.38132596015930176, 0.54583340883255, 1.0336804389953613, -0.3341473937034607, -0.3089506924152374, 0.11972517520189285, 0.09716605395078659, 0.0935276448726654, 0.45727023482322693, 0.17695708572864532, -0.8853290677070618, 0.35442036390304565, -0.6195254325866699, -0.24005286395549774, -0.10136106610298157, -0.5985194444656372, -1.0382957458496094, -0.9444423913955688, -0.5475065112113953, -0.8129559755325317, -0.34233003854751587, 0.8631751537322998, 1.1610240936279297, -0.7174158692359924, -0.13035647571086884, 0.11063405126333237, 0.17119896411895752, -0.1937776505947113, -0.21219128370285034, 0.7427846193313599, -0.20301854610443115, -0.7939292192459106, -0.3233194649219513, 0.014741390012204647, 0.3629140555858612, -0.06932755559682846, -0.24047084152698517, -0.1571691483259201, -0.2890705466270447, 0.1765192598104477, 0.36799582839012146, -0.7305848002433777, -0.28478100895881653, -0.3090250790119171, -0.2020432949066162, 0.31682562828063965, 0.36016610264778137, -0.5013396143913269, 0.21782195568084717, 0.4570861756801605, 0.43019089102745056, 0.7518966794013977, -0.28786125779151917, -0.060461319983005524, -0.8636980056762695, 0.5989168882369995, -0.3055090308189392, 0.46790504455566406, 0.34092310070991516, -0.37463682889938354, 0.6409059166908264, 0.5328282713890076, -0.4383276700973511, -0.8437426686286926, -0.0756579264998436, -1.002332091331482, -0.15970419347286224, 0.8938034772872925, -0.479641318321228, -0.5187745690345764, 0.44833505153656006, 0.011635396629571915, 0.6360155344009399, -0.032509829849004745, 0.47759464383125305, 0.21618349850177765, -0.23038941621780396, -0.6424903273582458, -0.5090627074241638, 0.447507381439209, 0.06099981069564819, -0.6859280467033386, -0.4413454532623291, -0.10037796199321747, 0.7663429975509644, 0.3144075870513916, 0.42978334426879883, -0.17173855006694794, 0.031089460477232933, 0.20680679380893707, 0.5702064037322998, -0.47158554196357727, -0.12534981966018677, -0.30454909801483154, 0.11568278074264526, -0.1551142930984497, -0.7120897769927979 ]
timm/dla102.in1k
timm
"2023-04-24T21:14:22Z"
40,965
0
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "arxiv:1707.06484", "license:bsd-3-clause", "region:us" ]
image-classification
"2023-04-24T19:35:50Z"
--- tags: - image-classification - timm library_name: timm license: bsd-3-clause datasets: - imagenet-1k --- # Model card for dla102.in1k A DLA (Deep Layer Aggregation) image classification model. Trained on ImageNet-1k by paper authors. ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 33.3 - GMACs: 7.2 - Activations (M): 14.2 - Image size: 224 x 224 - **Papers:** - Deep Layer Aggregation: https://arxiv.org/abs/1707.06484 - **Original:** https://github.com/ucbdrive/dla - **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('dla102.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( 'dla102.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, 112, 112]) # torch.Size([1, 128, 56, 56]) # torch.Size([1, 256, 28, 28]) # torch.Size([1, 512, 14, 14]) # torch.Size([1, 1024, 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( 'dla102.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, 1024, 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{yu2018deep, title={Deep layer aggregation}, author={Yu, Fisher and Wang, Dequan and Shelhamer, Evan and Darrell, Trevor}, booktitle={Proceedings of the IEEE conference on computer vision and pattern recognition}, year={2018} } ```
[ -0.46666404604911804, -0.5753657221794128, 0.1599624752998352, 0.12147650867700577, -0.3469852805137634, -0.2736685574054718, -0.03493183106184006, -0.522181510925293, 0.2698765695095062, 0.4749504327774048, -0.47133868932724, -0.7624974250793457, -0.786542534828186, -0.2332335114479065, -0.2152368277311325, 0.9417203664779663, -0.053102076053619385, 0.001640788046643138, -0.2177460640668869, -0.5431012511253357, -0.2156551033258438, -0.3403664231300354, -0.9719173312187195, -0.49768874049186707, 0.37284836173057556, 0.08346046507358551, 0.492190957069397, 0.5971982479095459, 0.5415011048316956, 0.5057143568992615, -0.17884017527103424, 0.1535613238811493, -0.19236311316490173, -0.294815331697464, 0.48572391271591187, -0.5740389227867126, -0.6453778743743896, 0.28043726086616516, 0.6854089498519897, 0.5442411303520203, 0.13291046023368835, 0.38409972190856934, 0.13919281959533691, 0.6614274978637695, -0.2743522822856903, 0.2064134180545807, -0.4084082245826721, 0.21243609488010406, -0.12608103454113007, 0.20235344767570496, -0.251416951417923, -0.47137534618377686, 0.22846974432468414, -0.503084123134613, 0.2849887013435364, -0.1498085856437683, 1.3245769739151, 0.2746976912021637, -0.15680448710918427, -0.16007868945598602, -0.22076012194156647, 0.8495627045631409, -0.9470729827880859, 0.10139511525630951, 0.3835888206958771, 0.08007294684648514, -0.05984273925423622, -0.9588757753372192, -0.6332539916038513, -0.028813648968935013, -0.17540545761585236, -0.05573715269565582, -0.0477261058986187, -0.008909251540899277, 0.1301032155752182, 0.3846631348133087, -0.40389230847358704, 0.28548064827919006, -0.5811059474945068, -0.13475096225738525, 0.6390780210494995, 0.1134134978055954, 0.331487238407135, -0.05818337947130203, -0.6111941933631897, -0.34196874499320984, -0.308477520942688, 0.3618159294128418, 0.3131154477596283, 0.2417040467262268, -0.6878721714019775, 0.33643245697021484, 0.29572468996047974, 0.518947184085846, 0.1899227797985077, -0.3850773572921753, 0.6740763783454895, 0.09839940071105957, -0.5466316938400269, -0.08631111681461334, 0.9925197958946228, 0.31574344635009766, 0.1827065795660019, 0.09835512936115265, -0.1132560521364212, -0.3567805886268616, -0.18631641566753387, -1.1901359558105469, -0.3957732915878296, 0.48809814453125, -0.5998232364654541, -0.4945272207260132, 0.31162595748901367, -0.6164535880088806, -0.19331884384155273, -0.1094280257821083, 0.6043886542320251, -0.4423946738243103, -0.3857015371322632, 0.07958431541919708, -0.13713504374027252, 0.3304606080055237, 0.19697687029838562, -0.5856229662895203, 0.1494387984275818, 0.2723782956600189, 1.0800588130950928, -0.03355874866247177, -0.5326040983200073, -0.21205280721187592, -0.2111988365650177, -0.3218443691730499, 0.5184980630874634, -0.06917744129896164, -0.08774878829717636, -0.26168569922447205, 0.28217923641204834, -0.19226273894309998, -0.7844253182411194, 0.2664277255535126, -0.32894009351730347, 0.2691209614276886, -0.032550327479839325, -0.3889986276626587, -0.5714020729064941, 0.23821154236793518, -0.5212950110435486, 1.2332754135131836, 0.3865618109703064, -0.7574755549430847, 0.521649956703186, -0.5740092992782593, -0.14275164902210236, -0.2577173113822937, 0.011942120268940926, -1.0785695314407349, -0.14923767745494843, 0.28824397921562195, 0.7127302289009094, -0.22017207741737366, 0.008235837332904339, -0.5992456078529358, -0.24934224784374237, 0.40736138820648193, 0.003988537471741438, 1.1565250158309937, 0.13814614713191986, -0.35232287645339966, 0.16368025541305542, -0.6386095881462097, 0.21817968785762787, 0.5146216750144958, -0.4137915074825287, -0.12963120639324188, -0.6251072287559509, 0.15765607357025146, 0.2939595580101013, 0.21302230656147003, -0.5208753347396851, 0.3494816720485687, -0.28026413917541504, 0.2973519563674927, 0.7548837065696716, -0.12161718308925629, 0.34338560700416565, -0.28341346979141235, 0.21222272515296936, 0.5448024272918701, 0.1810574233531952, -0.02273770049214363, -0.5738752484321594, -0.7764548063278198, -0.5774827003479004, 0.4077437222003937, 0.40843236446380615, -0.4589814841747284, 0.7138068079948425, -0.027635101228952408, -0.6940045952796936, -0.5379677414894104, 0.23623353242874146, 0.4331095516681671, 0.5605930089950562, 0.31360167264938354, -0.5402843356132507, -0.47751709818840027, -0.799781858921051, 0.2342332899570465, 0.053765516728162766, 0.029174771159887314, 0.2969873547554016, 0.6579027771949768, -0.16741831600666046, 0.650312602519989, -0.5150592923164368, -0.4370792806148529, -0.23108592629432678, 0.1253674179315567, 0.4793643355369568, 0.8027017712593079, 1.0203545093536377, -0.6176634430885315, -0.5059453248977661, -0.22224009037017822, -1.1069754362106323, 0.14713828265666962, -0.058864232152700424, -0.1733647733926773, 0.4556215703487396, 0.04457878693938255, -0.7037544846534729, 0.5558497905731201, 0.2913832664489746, -0.3952932059764862, 0.3234383761882782, -0.27738985419273376, 0.2716690003871918, -1.1509692668914795, 0.048936277627944946, 0.31568852066993713, 0.006326277274638414, -0.5052089095115662, 0.10592980682849884, -0.08103244006633759, 0.0020891032181680202, -0.5692033767700195, 0.6892672777175903, -0.5885511040687561, -0.2721198797225952, -0.23104548454284668, -0.18707530200481415, 0.05402572080492973, 0.7823376059532166, -0.17954380810260773, 0.40532249212265015, 0.9997987151145935, -0.6218920350074768, 0.4635169506072998, 0.448947548866272, -0.2720418870449066, 0.3435792922973633, -0.613305926322937, 0.3696068525314331, -0.07111330330371857, 0.2482639104127884, -1.061538815498352, -0.199705109000206, 0.2949528098106384, -0.4993809163570404, 0.6695082783699036, -0.5022359490394592, -0.4434928894042969, -0.5000119805335999, -0.5775887370109558, 0.45328015089035034, 0.7243872880935669, -0.8155735731124878, 0.4038623869419098, 0.41716665029525757, 0.2581654191017151, -0.5695365071296692, -0.9487172365188599, -0.24577245116233826, -0.44256964325904846, -0.7447757124900818, 0.28095343708992004, 0.05524490028619766, 0.07642457634210587, 0.10573520511388779, -0.04327614605426788, -0.26976674795150757, -0.09220480173826218, 0.5157580971717834, 0.37838777899742126, -0.29854005575180054, -0.1568898856639862, -0.22889827191829681, -0.014306176453828812, 0.11573395133018494, -0.27602607011795044, 0.6940827369689941, -0.14077256619930267, -0.15559056401252747, -0.840925931930542, -0.08199532330036163, 0.5143241286277771, -0.03035353310406208, 0.8855531811714172, 1.1283807754516602, -0.5097047090530396, -0.07772650569677353, -0.30836233496665955, -0.23072980344295502, -0.5024662017822266, 0.44466549158096313, -0.38096675276756287, -0.32661914825439453, 0.9579208493232727, 0.033088285475969315, 0.107414111495018, 0.7068653702735901, 0.3932315409183502, -0.1474485993385315, 0.827976405620575, 0.5878909230232239, -0.00830058753490448, 0.5647586584091187, -1.1242625713348389, -0.23126310110092163, -0.8079119920730591, -0.5018747448921204, -0.32892748713493347, -0.640718936920166, -0.5143451690673828, -0.3238343596458435, 0.40412887930870056, 0.2730695605278015, -0.36238500475883484, 0.3665042519569397, -0.7355863451957703, 0.161923348903656, 0.6198166608810425, 0.6485499143600464, -0.37242963910102844, 0.2552490830421448, -0.09136215597391129, 0.038415249437093735, -0.6192185282707214, -0.2468549758195877, 1.091137409210205, 0.5490255951881409, 0.6814082860946655, -0.08564285188913345, 0.7677114605903625, -0.0894869789481163, 0.22054791450500488, -0.5872729420661926, 0.6396746039390564, -0.3257020115852356, -0.38783225417137146, -0.1853002905845642, -0.29497337341308594, -1.0378718376159668, 0.011097300797700882, -0.22776398062705994, -0.7684630751609802, 0.230979323387146, 0.16985470056533813, -0.17811788618564606, 0.8342127203941345, -0.8514848947525024, 0.9159530401229858, -0.16928571462631226, -0.33889713883399963, 0.060027483850717545, -0.5574763417243958, 0.38719215989112854, 0.07421990483999252, -0.2687931954860687, -0.07725261896848679, 0.1521231234073639, 1.0571337938308716, -0.5782588124275208, 0.9579365849494934, -0.625975489616394, 0.16869956254959106, 0.5874795317649841, -0.16927501559257507, 0.35415875911712646, -0.1729353368282318, -0.1214708760380745, 0.4455731213092804, -0.025383416563272476, -0.5440336465835571, -0.5455847382545471, 0.6160057783126831, -1.059297800064087, -0.2981742322444916, -0.35356053709983826, -0.5816103219985962, 0.2013320028781891, 0.0015114023117348552, 0.3837432861328125, 0.6273043155670166, 0.2962031960487366, 0.16663555800914764, 0.6107047200202942, -0.43256598711013794, 0.48985323309898376, -0.1034226045012474, -0.28805142641067505, -0.42272111773490906, 0.8252976536750793, 0.25972193479537964, 0.15412795543670654, 0.037197403609752655, 0.13744783401489258, -0.4101729691028595, -0.7292149662971497, -0.38823166489601135, 0.34713372588157654, -0.7301865220069885, -0.4249785542488098, -0.6126161217689514, -0.5960235595703125, -0.5044789910316467, -0.06976109743118286, -0.3407720923423767, -0.36029085516929626, -0.4377709925174713, 0.1514151245355606, 0.6913454532623291, 0.7425310015678406, -0.094263955950737, 0.5360634922981262, -0.5903429388999939, 0.1171148270368576, 0.1838468462228775, 0.4685549736022949, -0.021556086838245392, -0.9524157047271729, -0.36446982622146606, -0.08964459598064423, -0.4398552179336548, -0.701633095741272, 0.5497459769248962, 0.18657587468624115, 0.5673331618309021, 0.4447513520717621, -0.2536294758319855, 0.8119977712631226, 0.10041707754135132, 0.6412022113800049, 0.24268214404582977, -0.5880088210105896, 0.6576530933380127, 0.036130134016275406, 0.17191696166992188, 0.08093466609716415, 0.350991427898407, 0.05626695603132248, -0.1490122377872467, -0.8896133303642273, -0.8324155807495117, 0.9723402261734009, 0.09101369231939316, -0.03513849526643753, 0.37408149242401123, 0.7407479882240295, 0.07482495158910751, -0.008548400364816189, -0.7853444814682007, -0.5751067399978638, -0.24752064049243927, -0.29662013053894043, 0.03646092116832733, -0.11319322884082794, -0.07149063050746918, -0.6140543818473816, 0.7352572083473206, -0.07440314441919327, 0.7004755735397339, 0.26995986700057983, -0.08570704609155655, -0.12525470554828644, -0.4650925099849701, 0.4476357698440552, 0.376422256231308, -0.4860956370830536, -0.03650687634944916, 0.2577865421772003, -0.6587114930152893, 0.10248024016618729, 0.16846202313899994, -0.0573105588555336, -0.04897252842783928, 0.4792206287384033, 0.83763587474823, -0.10074494779109955, 0.06038873270153999, 0.3206721842288971, 0.03271040692925453, -0.43021565675735474, -0.3181678354740143, 0.19746868312358856, -0.06404313445091248, 0.4508569836616516, 0.4311234652996063, 0.22728127241134644, -0.12004490196704865, -0.389830619096756, 0.30016544461250305, 0.6213706731796265, -0.21726983785629272, -0.3389821946620941, 0.7109677791595459, -0.14560920000076294, -0.1117868572473526, 0.8169044852256775, -0.1236623227596283, -0.41125166416168213, 1.2669436931610107, 0.4562602639198303, 1.029953122138977, -0.020980175584554672, -0.00865083932876587, 0.8329963684082031, 0.14679941534996033, 0.17954851686954498, 0.13947544991970062, 0.21572452783584595, -0.8057864308357239, 0.051064081490039825, -0.6493767499923706, 0.04849591478705406, 0.5235941410064697, -0.5107424855232239, 0.24446609616279602, -0.7498552203178406, -0.32378560304641724, 0.2895907461643219, 0.42793717980384827, -0.8659005761146545, 0.2494523674249649, 0.038301508873701096, 0.8649119734764099, -0.8631315231323242, 0.967555046081543, 0.8957311511039734, -0.7232814431190491, -0.9804335832595825, -0.029816884547472, 0.06067310646176338, -1.0376681089401245, 0.7819787263870239, 0.4547823965549469, 0.18853911757469177, -0.007436392828822136, -0.8293722867965698, -0.6479416489601135, 1.551646113395691, 0.5196441411972046, 0.031093649566173553, 0.23087643086910248, 0.007835938595235348, 0.260100781917572, -0.5572446584701538, 0.39248421788215637, 0.2680586874485016, 0.41818732023239136, 0.3150533437728882, -0.6462439298629761, 0.17029552161693573, -0.20928241312503815, 0.006918179802596569, 0.1766243726015091, -0.8062900900840759, 1.0706437826156616, -0.5265001654624939, -0.14101377129554749, 0.07318703830242157, 0.7351734638214111, 0.3064265847206116, 0.2702535390853882, 0.6435588002204895, 0.8971055746078491, 0.5510620474815369, -0.27272045612335205, 0.8317186236381531, 0.0006070366944186389, 0.6196873188018799, 0.5926743745803833, 0.12338537722826004, 0.4370161294937134, 0.2897223234176636, -0.3570482134819031, 0.44096261262893677, 1.0835627317428589, -0.3951958417892456, 0.37472105026245117, 0.06402557343244553, -0.1000950038433075, -0.003696953412145376, 0.12736307084560394, -0.4189678430557251, 0.5433054566383362, 0.2051674872636795, -0.5182669758796692, -0.21616065502166748, 0.014404820278286934, 0.016275638714432716, -0.26829993724823, -0.29461669921875, 0.6509538292884827, -0.02546369843184948, -0.3052563965320587, 0.8305967450141907, -0.008226110599935055, 0.9012376666069031, -0.44216063618659973, -0.06979330629110336, -0.41291841864585876, 0.3304829001426697, -0.40341243147850037, -0.9353564977645874, 0.29989418387413025, -0.2967500686645508, -0.07139714807271957, 0.12256476283073425, 0.6273391246795654, -0.42289721965789795, -0.5630276799201965, 0.32909056544303894, 0.32599779963493347, 0.6441063284873962, 0.16183699667453766, -1.2480276823043823, 0.11138535290956497, 0.025864187628030777, -0.6179124712944031, 0.5060651302337646, 0.4419485330581665, 0.17522290349006653, 0.7457395195960999, 0.600281298160553, -0.04666309803724289, 0.1339164674282074, -0.08863197267055511, 0.8654425740242004, -0.5200099945068359, -0.22328723967075348, -0.7891685962677002, 0.7122946381568909, -0.10971105098724365, -0.5413883328437805, 0.4661045968532562, 0.6577180624008179, 0.828991174697876, -0.09757450968027115, 0.4238956868648529, -0.30467990040779114, -0.012357820756733418, -0.6212362051010132, 0.7909910082817078, -0.6575546264648438, 0.04395875334739685, -0.14922937750816345, -0.7015624642372131, -0.27191105484962463, 0.5929436683654785, -0.06645678728818893, 0.5236788392066956, 0.4538530111312866, 1.0097954273223877, -0.3217196464538574, -0.47607421875, 0.21133649349212646, 0.23780184984207153, 0.142516627907753, 0.5130767226219177, 0.26775550842285156, -0.8924413323402405, 0.32270053029060364, -0.6591348648071289, -0.18478509783744812, -0.01214500144124031, -0.632516086101532, -1.1109986305236816, -0.9379115104675293, -0.6220501661300659, -0.6251862645149231, -0.2459847629070282, 0.900204598903656, 1.1200088262557983, -0.7800658941268921, -0.13590380549430847, 0.14774462580680847, 0.20138150453567505, -0.2646229565143585, -0.2512351870536804, 0.7759158611297607, -0.2807060480117798, -0.9250684976577759, -0.265043169260025, -0.009346016682684422, 0.5120438933372498, -0.16408148407936096, -0.29763859510421753, -0.31536781787872314, -0.23215478658676147, 0.3579040765762329, 0.2600918412208557, -0.6755368709564209, -0.14681068062782288, -0.41645553708076477, -0.16248980164527893, 0.38709428906440735, 0.35560035705566406, -0.6444459557533264, 0.1436769664287567, 0.3306441307067871, 0.42323964834213257, 0.8356264233589172, -0.26692476868629456, -0.03634655475616455, -0.8941013813018799, 0.6219271421432495, -0.22278501093387604, 0.4425969123840332, 0.32183122634887695, -0.40785399079322815, 0.6187193393707275, 0.3915753960609436, -0.4997721314430237, -0.9086678624153137, -0.15191802382469177, -1.190765619277954, -0.2279990017414093, 0.7367854714393616, -0.4824652671813965, -0.5006178021430969, 0.3934911787509918, -0.03553596884012222, 0.5742571949958801, -0.12412726879119873, 0.6445527672767639, 0.27509915828704834, -0.1982458382844925, -0.6719475984573364, -0.445020467042923, 0.41443461179733276, 0.034712132066488266, -0.7881337404251099, -0.43173736333847046, 0.02134210802614689, 0.6241925358772278, 0.24061515927314758, 0.5593682527542114, -0.1482444703578949, 0.06922858953475952, 0.10506609827280045, 0.4518398344516754, -0.42817145586013794, -0.10082903504371643, -0.4204975664615631, 0.09584980458021164, -0.06583954393863678, -0.6832855343818665 ]
timm/poolformer_m36.sail_in1k
timm
"2023-05-05T06:15:32Z"
40,947
0
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "arxiv:2210.13452", "license:apache-2.0", "region:us" ]
image-classification
"2023-05-05T06:14:32Z"
--- tags: - image-classification - timm library_name: timm license: apache-2.0 datasets: - imagenet-1k --- # Model card for poolformer_m36.sail_in1k A PoolFormer (a MetaFormer) image classification model. Trained on ImageNet-1k by paper authors. ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 56.2 - GMACs: 8.8 - Activations (M): 22.0 - Image size: 224 x 224 - **Papers:** - MetaFormer Is Actually What You Need for Vision: https://arxiv.org/abs/2210.13452 - **Original:** https://github.com/sail-sg/poolformer - **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('poolformer_m36.sail_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( 'poolformer_m36.sail_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, 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( 'poolformer_m36.sail_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{yu2022metaformer, title={Metaformer is actually what you need for vision}, author={Yu, Weihao and Luo, Mi and Zhou, Pan and Si, Chenyang and Zhou, Yichen and Wang, Xinchao and Feng, Jiashi and Yan, Shuicheng}, booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition}, pages={10819--10829}, year={2022} } ```
[ -0.48846474289894104, -0.36646223068237305, 0.16572342813014984, 0.08928031474351883, -0.4696846306324005, -0.3472939729690552, -0.09259001910686493, -0.3710603415966034, 0.25556641817092896, 0.5659894347190857, -0.537395715713501, -0.7656587958335876, -0.7568830847740173, -0.17840783298015594, -0.15080875158309937, 0.9787711501121521, -0.09995976090431213, -0.04517059400677681, -0.10825250297784805, -0.4760226905345917, -0.28113773465156555, -0.19261087477207184, -0.9119566082954407, -0.300799697637558, 0.3995954096317291, 0.21050314605236053, 0.4652048647403717, 0.6243090033531189, 0.6714918613433838, 0.5189615488052368, -0.030005479231476784, 0.10322923213243484, -0.19183018803596497, -0.2366325557231903, 0.37076085805892944, -0.737718403339386, -0.46560773253440857, 0.45752424001693726, 0.7895216941833496, 0.34299492835998535, 0.11056818813085556, 0.49729883670806885, 0.2202986627817154, 0.6831868886947632, -0.46886950731277466, 0.41450566053390503, -0.3638193607330322, 0.25229412317276, -0.2782217562198639, 0.07860780507326126, -0.2510780394077301, -0.30221086740493774, 0.23465758562088013, -0.6184365153312683, 0.4765341877937317, 0.12427055835723877, 1.289331078529358, 0.33521127700805664, 0.001234087161719799, 0.008207336999475956, -0.287134051322937, 0.8329018354415894, -0.8052560091018677, 0.1514754444360733, 0.29807910323143005, 0.3248595595359802, 0.009762318804860115, -0.9323990345001221, -0.6358411312103271, -0.023171281442046165, -0.2842031419277191, 0.11710470169782639, -0.0639849454164505, 0.1243312880396843, 0.22977937757968903, 0.3170456290245056, -0.555351972579956, 0.01757195219397545, -0.6821885108947754, -0.12953856587409973, 0.7614075541496277, 0.05695599317550659, 0.3786882162094116, -0.24203866720199585, -0.42738792300224304, -0.46891558170318604, -0.18899326026439667, 0.4083322584629059, 0.2104308009147644, 0.16624309122562408, -0.6507461071014404, 0.4888615310192108, 0.23374323546886444, 0.6777890920639038, 0.20018118619918823, -0.45096224546432495, 0.5712644457817078, 0.1801418513059616, -0.49235519766807556, -0.09370987117290497, 1.0717236995697021, 0.4591585695743561, 0.20998865365982056, 0.23107010126113892, -0.14654026925563812, -0.41819602251052856, -0.09560324251651764, -0.9398948550224304, -0.35988473892211914, 0.3639916479587555, -0.6174214482307434, -0.5190442800521851, 0.5304948687553406, -0.7498422861099243, -0.1436195820569992, -0.0005567636690102518, 0.6599885821342468, -0.4315285086631775, -0.18331582844257355, 0.08728285878896713, -0.39119479060173035, 0.45569634437561035, 0.17545640468597412, -0.5875561237335205, 0.11391482502222061, 0.27185848355293274, 1.0782394409179688, 0.019862132146954536, -0.5329808592796326, -0.30026862025260925, -0.20963595807552338, -0.22500310838222504, 0.574323296546936, -0.11037072539329529, -0.062019091099500656, -0.3249094486236572, 0.39580008387565613, -0.39793264865875244, -0.6460828185081482, 0.2735001742839813, -0.1895187944173813, 0.6084836721420288, 0.08862365037202835, -0.3063136041164398, -0.6040188074111938, 0.19781462848186493, -0.5930293798446655, 1.182898998260498, 0.3510994017124176, -0.8257169127464294, 0.3675321638584137, -0.651190459728241, -0.03676504269242287, -0.07562579959630966, -0.08669544011354446, -1.2114089727401733, -0.05209971219301224, 0.19900207221508026, 0.6948954463005066, -0.14498014748096466, -0.042123354971408844, -0.5532935261726379, -0.36462709307670593, 0.3113815188407898, 0.019630584865808487, 0.9604331851005554, 0.09550874680280685, -0.5863668322563171, 0.2183438092470169, -0.6447381973266602, 0.2205752581357956, 0.4694039821624756, -0.3553495407104492, -0.06733439862728119, -0.5005108714103699, 0.2863435447216034, 0.28166642785072327, 0.07584147900342941, -0.5784777402877808, 0.2090112715959549, -0.2700865864753723, 0.44734105467796326, 0.6694387197494507, -0.09659287333488464, 0.39434289932250977, -0.42389947175979614, 0.31333571672439575, 0.2804696559906006, 0.36035263538360596, -0.10421057790517807, -0.6604061722755432, -0.9962458610534668, -0.5999767780303955, 0.199931800365448, 0.4389248788356781, -0.5174872279167175, 0.5877817869186401, -0.025571728125214577, -0.7948021292686462, -0.5899966359138489, 0.07412012666463852, 0.510331928730011, 0.5510277152061462, 0.41521257162094116, -0.4719080328941345, -0.5122354626655579, -0.8213439583778381, 0.03614507243037224, 0.05261747166514397, 0.051964350044727325, 0.34660354256629944, 0.6553030610084534, -0.05358206480741501, 0.7477891445159912, -0.5386662483215332, -0.4531194865703583, -0.2667258679866791, 0.024569198489189148, 0.530685544013977, 0.8052830696105957, 0.9471913576126099, -0.7743089199066162, -0.5481217503547668, -0.26611679792404175, -0.9764692187309265, 0.15228821337223053, -0.08696203678846359, -0.22606919705867767, 0.4381606876850128, 0.07298601418733597, -0.6005823612213135, 0.7154141664505005, 0.37346407771110535, -0.506675660610199, 0.4587154686450958, -0.26298707723617554, 0.2756037414073944, -1.0151718854904175, 0.22358489036560059, 0.29476916790008545, -0.12359733879566193, -0.4081557095050812, 0.0653548315167427, -0.00018128468946088105, -0.0721660926938057, -0.46712806820869446, 0.6785376667976379, -0.518964409828186, -0.17319461703300476, -0.22402408719062805, -0.18739371001720428, 0.07210102677345276, 0.6620199084281921, 0.049266308546066284, 0.35257792472839355, 0.8309447765350342, -0.5536841750144958, 0.5861198306083679, 0.4609158933162689, -0.15786732733249664, 0.4399203062057495, -0.6902208924293518, 0.1106385812163353, -0.240836501121521, 0.21832165122032166, -1.1194180250167847, -0.19872070848941803, 0.404513955116272, -0.45937979221343994, 0.5665454268455505, -0.49767711758613586, -0.13917869329452515, -0.6932418942451477, -0.6141090989112854, 0.39449015259742737, 0.6850962042808533, -0.6853798031806946, 0.5759385824203491, 0.23325562477111816, 0.2088199257850647, -0.6407809853553772, -0.8326641321182251, -0.32058829069137573, -0.4253862202167511, -0.7199417948722839, 0.45223960280418396, 0.07791513204574585, 0.15110424160957336, 0.082972951233387, -0.08195611834526062, -0.13354074954986572, -0.18315306305885315, 0.6174684762954712, 0.6122630834579468, -0.37402188777923584, -0.23295900225639343, -0.32802996039390564, -0.21171875298023224, -0.03185653313994408, -0.4142187833786011, 0.5960832238197327, -0.2797578275203705, -0.2549543082714081, -0.8259816765785217, -0.17418277263641357, 0.5489267110824585, -0.20235158503055573, 0.8984239101409912, 1.0699082612991333, -0.4218582808971405, -0.04284758120775223, -0.5209025144577026, -0.23319731652736664, -0.5103162527084351, 0.4165557026863098, -0.3646184206008911, -0.4410102665424347, 0.7753425240516663, 0.17756111919879913, 0.12704582512378693, 0.838452935218811, 0.19397342205047607, -0.29416728019714355, 0.625194787979126, 0.7986447215080261, 0.13398797810077667, 0.6919066309928894, -1.013538122177124, -0.17643636465072632, -0.774158239364624, -0.6121652126312256, -0.29820358753204346, -0.6458592414855957, -0.545685887336731, -0.38600048422813416, 0.5247321724891663, 0.2080085575580597, -0.36324551701545715, 0.43350404500961304, -0.817112386226654, 0.19448475539684296, 0.7228447198867798, 0.541334331035614, -0.28174614906311035, 0.12690125405788422, -0.2820436656475067, -0.05232948437333107, -0.7925581932067871, -0.3345701992511749, 1.0709967613220215, 0.37667301297187805, 0.6150423884391785, -0.2708543539047241, 0.7475982904434204, -0.22609718143939972, 0.2759604752063751, -0.518486738204956, 0.525959849357605, -0.22198748588562012, -0.4080534875392914, -0.2598273456096649, -0.28242021799087524, -1.0495715141296387, 0.1515817642211914, -0.4997697174549103, -0.597905695438385, 0.11805828660726547, 0.22505217790603638, -0.3020758330821991, 0.8027526140213013, -0.6923902630805969, 1.0419734716415405, -0.18369528651237488, -0.2928248941898346, 0.1769295185804367, -0.6266758441925049, 0.3533152639865875, 0.02150602452456951, -0.10553981363773346, -0.04808169975876808, 0.14090009033679962, 1.1153826713562012, -0.6124037504196167, 0.8942276835441589, -0.5552136301994324, 0.394829660654068, 0.514355480670929, -0.3000428378582001, 0.18489056825637817, -0.22214485704898834, 0.047685135155916214, 0.25402724742889404, 0.06468265503644943, -0.5197032690048218, -0.5341390371322632, 0.41811853647232056, -1.0196341276168823, -0.306054025888443, -0.38933780789375305, -0.39593666791915894, 0.28822001814842224, 0.07485940307378769, 0.6371759176254272, 0.49141210317611694, 0.26710620522499084, 0.1096353754401207, 0.5564766526222229, -0.4733918309211731, 0.6863166093826294, 0.00201645540073514, -0.26960495114326477, -0.5210420489311218, 0.7482306361198425, 0.1813553422689438, 0.059122756123542786, 0.14406079053878784, 0.15949589014053345, -0.3061528205871582, -0.5476186275482178, -0.32072097063064575, 0.49456778168678284, -0.5483096241950989, -0.46357202529907227, -0.4879179298877716, -0.5673093795776367, -0.4387296140193939, -0.1310981661081314, -0.47915780544281006, -0.40108856558799744, -0.24687840044498444, 0.23258329927921295, 0.6371529698371887, 0.7241739630699158, -0.09166213870048523, 0.5843304991722107, -0.6707363128662109, 0.05757424980401993, 0.23397237062454224, 0.47683975100517273, -0.21351443231105804, -0.8884966969490051, -0.22133266925811768, -0.1823897361755371, -0.4723176956176758, -0.7266417145729065, 0.5860525369644165, 0.3202342391014099, 0.6554848551750183, 0.5398381352424622, -0.3000180125236511, 0.8086286783218384, -0.08051265776157379, 0.6011756062507629, 0.31848323345184326, -0.6983086466789246, 0.8094363212585449, 0.04421671852469444, 0.1452050656080246, 0.044240813702344894, 0.4098243713378906, -0.33177947998046875, -0.20414665341377258, -0.99807208776474, -0.6865694522857666, 0.8917856812477112, 0.09125161916017532, -0.195845827460289, 0.5390498638153076, 0.8327521681785583, -0.03939078748226166, 0.02242245525121689, -0.8054133653640747, -0.5000553131103516, -0.38161545991897583, -0.3534511923789978, -0.2711429297924042, -0.007191576529294252, 0.09470867365598679, -0.588729739189148, 0.7523553371429443, -0.07913583517074585, 0.6821578741073608, 0.3466455340385437, -0.031115878373384476, -0.10473261028528214, -0.47563937306404114, 0.4275650680065155, 0.2357812076807022, -0.30755290389060974, 0.12842094898223877, 0.19898228347301483, -0.7217820882797241, 0.036687880754470825, 0.17126017808914185, -0.03368961066007614, 0.037464987486600876, 0.6137603521347046, 0.8356230854988098, 0.04319871589541435, -0.0487232506275177, 0.4748670756816864, 0.05879739299416542, -0.40300893783569336, -0.22257867455482483, 0.3309851586818695, -0.0861482098698616, 0.4866698086261749, 0.37513700127601624, 0.39145588874816895, -0.17963671684265137, -0.23515331745147705, 0.21890908479690552, 0.5741140842437744, -0.3430158495903015, -0.24291442334651947, 0.785668671131134, -0.1770046353340149, -0.11393992602825165, 0.8880048990249634, 0.020141294226050377, -0.5488067269325256, 1.0106955766677856, 0.36717456579208374, 0.8765422701835632, -0.22399795055389404, 0.0633322075009346, 0.909638524055481, 0.21924693882465363, 0.034801751375198364, 0.2694675922393799, 0.23612765967845917, -0.7953447103500366, 0.02214205451309681, -0.6591686010360718, 0.0320461206138134, 0.38391268253326416, -0.48553165793418884, 0.3757327198982239, -0.7645413875579834, -0.37085285782814026, 0.1710062026977539, 0.38368886709213257, -0.866180419921875, 0.18982954323291779, 0.21076758205890656, 0.8446393013000488, -0.8865519762039185, 0.7254722714424133, 0.9048351049423218, -0.7034738659858704, -0.9966212511062622, -0.2842046916484833, 0.07395260035991669, -1.0514119863510132, 0.5588446855545044, 0.49511244893074036, 0.11329533159732819, -0.009747968055307865, -0.8777003288269043, -0.6892513632774353, 1.6020840406417847, 0.4520105719566345, -0.1460830718278885, 0.11053171753883362, 0.09150584042072296, 0.12093373388051987, -0.5818630456924438, 0.3792213797569275, 0.1778756082057953, 0.5448811650276184, 0.30585813522338867, -0.8347490429878235, 0.1687542200088501, -0.2740759551525116, 0.10776910185813904, 0.12312094122171402, -0.7569587826728821, 0.9925730228424072, -0.5566318035125732, -0.1135728657245636, 0.011880042031407356, 0.5885939598083496, 0.4153764545917511, 0.20998099446296692, 0.5726380348205566, 0.7512314319610596, 0.6560137867927551, -0.2551781237125397, 0.8150190711021423, -0.06292197108268738, 0.7051344513893127, 0.5485956072807312, 0.36609959602355957, 0.584195613861084, 0.341513454914093, -0.21892130374908447, 0.5056310892105103, 0.9948043823242188, -0.49456587433815, 0.36617910861968994, 0.14791299402713776, 0.019589180126786232, -0.11090683192014694, 0.39258453249931335, -0.35845252871513367, 0.6483426094055176, 0.08479462563991547, -0.622300922870636, -0.1908079981803894, 0.15778493881225586, -0.060197196900844574, -0.2995802164077759, -0.34394916892051697, 0.49751996994018555, -0.02418278530240059, -0.41707533597946167, 0.7518863081932068, 0.1953214854001999, 0.9942622780799866, -0.42430201172828674, -0.018937423825263977, -0.2420101761817932, 0.3053334355354309, -0.43482932448387146, -0.8942571878433228, 0.3514055013656616, -0.2637518346309662, 0.012357144616544247, 0.04378991574048996, 0.7228873372077942, -0.4453674852848053, -0.4997401535511017, 0.1183115616440773, 0.4312984347343445, 0.5986130833625793, -0.09209654480218887, -1.2398245334625244, 0.07634593546390533, 0.03524946793913841, -0.5614908337593079, 0.16659358143806458, 0.37461137771606445, 0.1874203234910965, 0.7577003240585327, 0.5595220923423767, -0.12166356295347214, 0.21925154328346252, -0.29629024863243103, 0.7353926301002502, -0.6527996063232422, -0.3004876375198364, -0.8871978521347046, 0.6921989917755127, -0.11653617769479752, -0.5510056018829346, 0.513839602470398, 0.7171812653541565, 0.8096514344215393, -0.23574751615524292, 0.4560440182685852, -0.20163819193840027, -0.08116067945957184, -0.5151787996292114, 0.9301560521125793, -0.5274043083190918, -0.15038922429084778, -0.24396832287311554, -0.8512163162231445, -0.44261234998703003, 0.9133837223052979, -0.25995734333992004, 0.36363741755485535, 0.5244295001029968, 0.9015436172485352, -0.3723522126674652, -0.31014561653137207, 0.1912807822227478, 0.09594959020614624, 0.07464110851287842, 0.5703684091567993, 0.38907235860824585, -0.8827064633369446, 0.3307720124721527, -0.546295702457428, -0.35927021503448486, -0.054280057549476624, -0.6801329851150513, -1.0457055568695068, -0.96833735704422, -0.6747479438781738, -0.5738723874092102, -0.2080707848072052, 0.8451524972915649, 1.18229341506958, -0.6778757572174072, -0.193460151553154, 0.12600164115428925, 0.1306164562702179, -0.24366635084152222, -0.2472861409187317, 0.6817423701286316, -0.304762065410614, -0.8103488087654114, -0.3983090817928314, 0.08910780400037766, 0.603598952293396, -0.055886901915073395, -0.2599172294139862, -0.10300478339195251, -0.2664059102535248, 0.2910158932209015, 0.29886355996131897, -0.5755153894424438, -0.16546232998371124, -0.3065148591995239, -0.16650806367397308, 0.35233065485954285, 0.28861621022224426, -0.7226969003677368, 0.07029534131288528, 0.245403453707695, 0.22853736579418182, 0.9587146043777466, -0.45941776037216187, 0.029329193755984306, -0.700666069984436, 0.47463327646255493, -0.2209474891424179, 0.5439772605895996, 0.26214635372161865, -0.3321155607700348, 0.6012850403785706, 0.5751494765281677, -0.3593108057975769, -0.6406554579734802, -0.2148853987455368, -1.1497502326965332, -0.1328430473804474, 0.6971178650856018, -0.39353492856025696, -0.6610155701637268, 0.41043052077293396, -0.1605478972196579, 0.5001298785209656, 0.045570630580186844, 0.5650439858436584, 0.2310621738433838, -0.19064319133758545, -0.7011173963546753, -0.42598956823349, 0.5217098593711853, -0.031312357634305954, -0.764043390750885, -0.5368564128875732, 0.03696870431303978, 0.8318093419075012, 0.28657984733581543, 0.6277848482131958, -0.18421940505504608, 0.14386726915836334, 0.03573480620980263, 0.5281686186790466, -0.35315442085266113, -0.09916269779205322, -0.3691771924495697, 0.137625053524971, -0.19885070621967316, -0.6646824479103088 ]
timm/rexnet_100.nav_in1k
timm
"2023-03-20T20:35:27Z"
40,941
0
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "arxiv:2007.00992", "license:mit", "region:us" ]
image-classification
"2023-03-20T20:35:20Z"
--- tags: - image-classification - timm library_tag: timm license: mit datasets: - imagenet-1k --- # Model card for rexnet_100.nav_in1k A ReXNet image classification model. Pretrained on ImageNet-1k by paper authors. ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 4.8 - GMACs: 0.4 - Activations (M): 7.4 - Image size: 224 x 224 - **Papers:** - Rethinking Channel Dimensions for Efficient Model Design: https://arxiv.org/abs/2007.00992 - **Original:** https://github.com/clovaai/rexnet - **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('rexnet_100.nav_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( 'rexnet_100.nav_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, 38, 56, 56]) # torch.Size([1, 61, 28, 28]) # torch.Size([1, 128, 14, 14]) # torch.Size([1, 185, 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( 'rexnet_100.nav_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, 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)." |model |top1 |top5 |param_count|img_size|crop_pct| |-------------------------|------|------|-----------|--------|--------| |rexnetr_300.sw_in12k_ft_in1k|84.53 |97.252|34.81 |288 |1.0 | |rexnetr_200.sw_in12k_ft_in1k|83.164|96.648|16.52 |288 |1.0 | |rexnet_300.nav_in1k |82.772|96.232|34.71 |224 |0.875 | |rexnet_200.nav_in1k |81.652|95.668|16.37 |224 |0.875 | |rexnet_150.nav_in1k |80.308|95.174|9.73 |224 |0.875 | |rexnet_130.nav_in1k |79.478|94.68 |7.56 |224 |0.875 | |rexnet_100.nav_in1k |77.832|93.886|4.8 |224 |0.875 | ## Citation ```bibtex @misc{han2021rethinking, title={Rethinking Channel Dimensions for Efficient Model Design}, author={Dongyoon Han and Sangdoo Yun and Byeongho Heo and YoungJoon Yoo}, year={2021}, eprint={2007.00992}, archivePrefix={arXiv}, primaryClass={cs.CV} } ``` ```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.5980784296989441, -0.3873606324195862, 0.08578059077262878, -0.02610117569565773, -0.44725939631462097, -0.2929966449737549, -0.19026097655296326, -0.3296024799346924, 0.417525053024292, 0.3373938798904419, -0.46165233850479126, -0.762437105178833, -0.6542680859565735, -0.11505575478076935, -0.0479300357401371, 0.8756934404373169, -0.07373177260160446, -0.03992033004760742, -0.07154566049575806, -0.5486711263656616, -0.20709039270877838, -0.29365354776382446, -0.8157956004142761, -0.47323018312454224, 0.4762970507144928, 0.19312094151973724, 0.583620548248291, 0.7398996949195862, 0.5646358132362366, 0.49802500009536743, -0.16163837909698486, 0.12315744906663895, -0.2518974244594574, -0.23273994028568268, 0.4064134955406189, -0.49730661511421204, -0.5587917566299438, 0.20210038125514984, 0.7834721207618713, 0.42485445737838745, 0.10575313866138458, 0.4275696277618408, 0.10778447985649109, 0.6094102263450623, -0.1557523012161255, 0.054587215185165405, -0.29871806502342224, 0.10576161742210388, -0.06846078485250473, -0.07709228992462158, -0.2431824505329132, -0.44513094425201416, 0.3241400420665741, -0.6947326064109802, 0.3780341148376465, -0.00023054989287629724, 1.511082649230957, 0.15966159105300903, -0.17870329320430756, -0.0033720405772328377, -0.2545211613178253, 0.8754730820655823, -0.9093500971794128, 0.2860083281993866, 0.2722282409667969, 0.08196987956762314, -0.04390408843755722, -1.0155911445617676, -0.49199509620666504, -0.07769957184791565, -0.2629905641078949, -0.0004117616335861385, -0.3144700229167938, -0.001551831723190844, 0.2170664519071579, 0.28605562448501587, -0.5436691641807556, 0.06181039661169052, -0.5734844207763672, -0.2184387743473053, 0.6227129697799683, 0.014204788021743298, 0.28639310598373413, -0.4500928819179535, -0.5927274823188782, -0.47917431592941284, -0.39188826084136963, 0.3109164535999298, 0.36774832010269165, 0.20961828529834747, -0.6065047979354858, 0.35170769691467285, 0.04647888243198395, 0.5616530179977417, 0.018794594332575798, -0.37369582056999207, 0.7118801474571228, -0.09551340341567993, -0.4798019528388977, -0.05683337152004242, 1.2093192338943481, 0.4201989471912384, 0.19049613177776337, 0.1765102595090866, -0.14049464464187622, -0.4823201298713684, -0.035653989762067795, -1.230216145515442, -0.2929726839065552, 0.37309178709983826, -0.7124634385108948, -0.4332560896873474, 0.282589316368103, -0.7825755476951599, -0.0317184180021286, -0.05076378583908081, 0.7031832933425903, -0.5399804711341858, -0.49743929505348206, 0.07839397341012955, -0.18681541085243225, 0.30070599913597107, 0.12079385668039322, -0.44949522614479065, 0.1273406445980072, 0.26640018820762634, 1.1751930713653564, 0.1398957073688507, -0.4760095477104187, -0.14079125225543976, -0.31416916847229004, -0.3175975978374481, 0.47462567687034607, -0.025653347373008728, -0.18957051634788513, -0.33168572187423706, 0.3147130608558655, -0.16035695374011993, -0.5961592197418213, 0.33153221011161804, -0.3345700204372406, 0.24719928205013275, -0.17423471808433533, -0.2148580700159073, -0.5604076981544495, 0.2512627840042114, -0.48955631256103516, 1.1990519762039185, 0.3903511166572571, -0.8736566305160522, 0.3366281986236572, -0.459365576505661, -0.12499795854091644, -0.2562543749809265, -0.007521560415625572, -1.1964137554168701, -0.17988882958889008, 0.2687016725540161, 0.6037045121192932, -0.33612412214279175, 0.05269775167107582, -0.5371490716934204, -0.1937972754240036, 0.39676010608673096, -0.024729475378990173, 1.0740090608596802, 0.27021488547325134, -0.5128253102302551, 0.3278852701187134, -0.6939946413040161, 0.3176414370536804, 0.4900197386741638, -0.41102126240730286, -0.10045795142650604, -0.6296047568321228, 0.13413222134113312, 0.26491233706474304, 0.06541993468999863, -0.5209168791770935, 0.3385881781578064, -0.14594753086566925, 0.5303970575332642, 0.7513725757598877, -0.06796706467866898, 0.38284289836883545, -0.4398327171802521, 0.34851351380348206, 0.24970902502536774, 0.2277367264032364, -0.035815589129924774, -0.5565189719200134, -0.8399211168289185, -0.6164382696151733, 0.49940574169158936, 0.33300942182540894, -0.5536483526229858, 0.49137213826179504, -0.30465900897979736, -0.7531120777130127, -0.4605879485607147, 0.06105341017246246, 0.5178077816963196, 0.5772725939750671, 0.3125997483730316, -0.5044234395027161, -0.5254490375518799, -0.9078422784805298, 0.15942171216011047, -0.017187034711241722, 0.038731347769498825, 0.4382312297821045, 0.7685481905937195, -0.04700322076678276, 0.6676825881004333, -0.49228814244270325, -0.2594817280769348, -0.24880804121494293, 0.18015523254871368, 0.47480353713035583, 0.7836489081382751, 0.9163269400596619, -0.5671587586402893, -0.5525293350219727, -0.106046162545681, -1.035630702972412, 0.1189499944448471, -0.095793716609478, -0.29168757796287537, 0.3707311749458313, 0.15306171774864197, -0.8569994568824768, 0.6497322916984558, 0.16222310066223145, -0.43452051281929016, 0.4576074182987213, -0.3057803213596344, 0.32648059725761414, -1.2436226606369019, 0.13760848343372345, 0.31186798214912415, -0.07050339132547379, -0.49462103843688965, 0.026020441204309464, 0.03128163143992424, -0.08053426444530487, -0.3980103135108948, 0.6151655316352844, -0.6978589296340942, -0.1935325413942337, -0.0637919008731842, -0.12230657041072845, 0.04717280715703964, 0.7422736883163452, -0.10030577331781387, 0.37082991003990173, 0.8551235795021057, -0.4201168417930603, 0.5302957892417908, 0.35237979888916016, -0.3242029547691345, 0.3768376111984253, -0.7645821571350098, 0.17369920015335083, 0.012221569195389748, 0.2681141793727875, -1.1344573497772217, -0.19724513590335846, 0.37462329864501953, -0.6904342770576477, 0.554911732673645, -0.6809760332107544, -0.3434607684612274, -0.5369355082511902, -0.5880648493766785, 0.4051794111728668, 0.6381555795669556, -0.659360945224762, 0.4858681857585907, 0.1986745446920395, 0.25551238656044006, -0.6450142860412598, -0.8554021716117859, -0.31422746181488037, -0.47048020362854004, -0.9124332666397095, 0.4501054286956787, 0.1717318296432495, 0.17064805328845978, 0.1998860090970993, -0.05096190795302391, -0.03296636790037155, -0.22616446018218994, 0.541020393371582, 0.46536821126937866, -0.4627510607242584, -0.10549711436033249, -0.3306790590286255, -0.10138444602489471, 0.11137823760509491, -0.4093434512615204, 0.7118611335754395, -0.2567242383956909, -0.16163301467895508, -0.9198287129402161, -0.10221453011035919, 0.689940869808197, -0.17682409286499023, 0.8964094519615173, 1.000069260597229, -0.4248746335506439, -0.005891845095902681, -0.40225541591644287, -0.32662102580070496, -0.526024341583252, 0.4728040397167206, -0.4752354621887207, -0.3746143579483032, 0.9818461537361145, 0.13940390944480896, -0.011258088052272797, 0.6518499255180359, 0.25924384593963623, -0.00991868320852518, 0.804707944393158, 0.5414482951164246, 0.14188645780086517, 0.7132960557937622, -1.1432946920394897, -0.06678888946771622, -0.8585466146469116, -0.5313534736633301, -0.3326885402202606, -0.6634489297866821, -0.7503413558006287, -0.36350518465042114, 0.48485103249549866, 0.18403950333595276, -0.4512762725353241, 0.46920567750930786, -0.8497860431671143, -0.02195696346461773, 0.7952646613121033, 0.5490045547485352, -0.31239914894104004, 0.37563809752464294, -0.40856125950813293, 0.003217345103621483, -0.8173754215240479, -0.19772101938724518, 1.1743663549423218, 0.4551837742328644, 0.7131900787353516, -0.03901314362883568, 0.7370905876159668, -0.30038967728614807, 0.1552072912454605, -0.6092703342437744, 0.6318696737289429, 0.07843636721372604, -0.5533131957054138, -0.21713513135910034, -0.5198160409927368, -1.1179234981536865, 0.20447711646556854, -0.2564789354801178, -0.7132413983345032, 0.3002282679080963, 0.12487359344959259, -0.3238765001296997, 0.8990123867988586, -0.8339745998382568, 0.9560484290122986, -0.1664532572031021, -0.5051631927490234, 0.03091072291135788, -0.6447274684906006, 0.1846618801355362, 0.2628431022167206, -0.165619894862175, -0.05293697118759155, 0.18911699950695038, 1.1066566705703735, -0.7367481589317322, 0.7427116632461548, -0.4111484885215759, 0.4341430068016052, 0.5852972865104675, -0.0971704050898552, 0.396755576133728, -0.007471926975995302, -0.07000061124563217, 0.2587186396121979, 0.015080446377396584, -0.46556705236434937, -0.4238346219062805, 0.7304787635803223, -1.149747610092163, -0.3636314272880554, -0.53013676404953, -0.5186062455177307, 0.2812911868095398, 0.1660049855709076, 0.5896948575973511, 0.7668198943138123, 0.2752237617969513, 0.3289715647697449, 0.6395362019538879, -0.479708194732666, 0.5037034749984741, 0.02745812200009823, -0.2215854823589325, -0.6691932082176208, 0.9523237347602844, 0.25010988116264343, 0.19110165536403656, 0.06579902768135071, 0.1731795072555542, -0.3291427195072174, -0.5919749736785889, -0.44457170367240906, 0.5407072901725769, -0.7359768748283386, -0.51255863904953, -0.5386497378349304, -0.5419825315475464, -0.48044273257255554, -0.10439572483301163, -0.5244728922843933, -0.36272209882736206, -0.4432034194469452, 0.17144615948200226, 0.770061194896698, 0.659076452255249, -0.26269662380218506, 0.4706636071205139, -0.5108430981636047, 0.04278121516108513, 0.23371674120426178, 0.5173518657684326, -0.04124162718653679, -0.987927258014679, -0.21423588693141937, -0.11248067021369934, -0.4453639090061188, -0.8196359276771545, 0.5815342664718628, 0.01648196205496788, 0.6293830275535583, 0.36535656452178955, -0.22315917909145355, 0.7844336032867432, 0.03663851320743561, 0.516779363155365, 0.35599321126937866, -0.646671712398529, 0.6458523869514465, -0.15871858596801758, 0.2399815022945404, 0.019596068188548088, 0.41813692450523376, -0.2897283434867859, 0.031385425478219986, -0.9860221147537231, -0.8281195163726807, 0.9747702479362488, 0.22293494641780853, -0.13113939762115479, 0.4173440933227539, 0.6564401388168335, -0.17401252686977386, -0.0381779707968235, -0.8278480172157288, -0.5949221849441528, -0.4160670340061188, -0.22135864198207855, 0.011907540261745453, -0.14000074565410614, -0.06723485887050629, -0.7237400412559509, 0.7811594009399414, 0.0020270301029086113, 0.8679389953613281, 0.40319207310676575, -0.003590792417526245, -0.13624268770217896, -0.3636891543865204, 0.5936594009399414, 0.5107125043869019, -0.41867464780807495, 0.11578425765037537, 0.17325860261917114, -0.5962517857551575, 0.08521950244903564, 0.20733457803726196, -0.04419086128473282, 0.09911894053220749, 0.45028364658355713, 0.8901644349098206, -0.029237661510705948, 0.0810888260602951, 0.43286678194999695, -0.03231469914317131, -0.538856565952301, -0.24669113755226135, 0.01068185269832611, 0.0002516358799766749, 0.41372576355934143, 0.38111981749534607, 0.2989940941333771, -0.24591046571731567, -0.2573906183242798, 0.2519051134586334, 0.6122527122497559, -0.29267653822898865, -0.369209885597229, 0.7272581458091736, -0.20038190484046936, -0.1171937882900238, 0.8035147786140442, -0.11673788726329803, -0.536903977394104, 1.0983693599700928, 0.38336634635925293, 0.8878635168075562, -0.11901567876338959, 0.142781063914299, 1.0103156566619873, 0.30078309774398804, 0.128983274102211, 0.17512193322181702, 0.28713634610176086, -0.7126548886299133, 0.07634732872247696, -0.5835009217262268, 0.216505765914917, 0.5293352603912354, -0.5796262621879578, 0.4387354552745819, -0.6759008169174194, -0.4751127064228058, 0.2876015901565552, 0.3823150098323822, -0.7919445633888245, 0.1956874579191208, -0.010411781258881092, 0.846176266670227, -0.7555457949638367, 0.91105717420578, 0.893004834651947, -0.6233426928520203, -1.1230121850967407, -0.19344696402549744, 0.10118577629327774, -0.9044840335845947, 0.612155020236969, 0.34908008575439453, 0.06361696124076843, 0.06047314777970314, -0.7478652000427246, -0.8971749544143677, 1.5842032432556152, 0.4439678490161896, -0.002698672702535987, 0.27338582277297974, 0.06229216977953911, 0.2694436311721802, -0.46164271235466003, 0.5040725469589233, 0.1534149944782257, 0.3879949152469635, 0.31105005741119385, -0.7055760622024536, 0.28690141439437866, -0.37372875213623047, 0.14171776175498962, 0.27093762159347534, -0.8927869200706482, 1.0544742345809937, -0.4345591962337494, -0.12002134323120117, 0.10469348728656769, 0.5978765487670898, 0.3038763999938965, 0.07008470594882965, 0.5547299385070801, 0.8803139925003052, 0.507236123085022, -0.4188372492790222, 0.8881957530975342, -0.10393083095550537, 0.7417668700218201, 0.5068935751914978, 0.5014476776123047, 0.47383150458335876, 0.34891751408576965, -0.251180499792099, 0.5018138885498047, 1.0694483518600464, -0.3054375648498535, 0.41874727606773376, 0.19698122143745422, -0.025614991784095764, -0.12417732179164886, 0.14483000338077545, -0.5700626373291016, 0.439447820186615, 0.12375801056623459, -0.5388223528862, -0.1862768828868866, 0.017684493213891983, 0.10330189764499664, -0.4038090705871582, -0.15346616506576538, 0.4016585052013397, -0.06585140526294708, -0.44686469435691833, 1.0218437910079956, 0.10145845264196396, 0.8250559568405151, -0.4797559380531311, 0.09196369349956512, -0.3518170714378357, 0.3152290880680084, -0.3082345724105835, -0.9196553230285645, 0.13733944296836853, -0.2605409026145935, -0.0166050735861063, -0.03777258098125458, 0.7250329852104187, -0.30243343114852905, -0.4727000892162323, 0.2990912199020386, 0.2892318069934845, 0.46143007278442383, 0.11128135770559311, -1.1549516916275024, 0.2558935880661011, 0.13913306593894958, -0.7337477207183838, 0.26946887373924255, 0.48281431198120117, 0.2279113531112671, 0.8064354062080383, 0.5915595889091492, -0.08931459486484528, 0.264103502035141, -0.250831663608551, 0.9720996618270874, -0.6048576831817627, -0.32049742341041565, -0.8136475086212158, 0.693649411201477, -0.1775187849998474, -0.7475807070732117, 0.5461912155151367, 0.6827805042266846, 0.8660933971405029, -0.001856946386396885, 0.4533129334449768, -0.31998032331466675, 0.04921374469995499, -0.4395260214805603, 0.8061414957046509, -0.7759770750999451, 0.08200859278440475, -0.1851741075515747, -0.6869826316833496, -0.23044508695602417, 0.7804871797561646, -0.2947230339050293, 0.48946982622146606, 0.5936440825462341, 1.1080242395401, -0.35644805431365967, -0.35175496339797974, 0.10230959951877594, 0.22766494750976562, 0.12380456179380417, 0.5187201499938965, 0.5377393960952759, -0.8830620050430298, 0.5797986388206482, -0.7592878937721252, -0.15308710932731628, -0.23415498435497284, -0.6522208452224731, -1.0879290103912354, -0.9394722580909729, -0.6076153516769409, -0.7272615432739258, -0.24624808132648468, 0.8715420365333557, 1.2235136032104492, -0.6947069764137268, -0.23047657310962677, 0.0980701819062233, 0.2761991024017334, -0.21998679637908936, -0.25766944885253906, 0.7047821283340454, -0.09527768939733505, -0.7571251392364502, -0.3476635813713074, -0.04865843802690506, 0.4729064106941223, -0.0352480486035347, -0.3073657155036926, -0.2957685589790344, -0.2525534927845001, 0.22054165601730347, 0.3234010338783264, -0.7370855212211609, -0.23378610610961914, -0.16261643171310425, -0.25105705857276917, 0.46745532751083374, 0.4055752754211426, -0.5507447719573975, 0.2373519241809845, 0.5768772959709167, 0.20206378400325775, 0.9708510041236877, -0.3234000504016876, 0.0037623902317136526, -0.8196883797645569, 0.5536013245582581, -0.24564601480960846, 0.42994967103004456, 0.3404514193534851, -0.2993279695510864, 0.5451924800872803, 0.5001278519630432, -0.5463641285896301, -0.9171916246414185, -0.1794917732477188, -1.1940968036651611, -0.2545558214187622, 0.9143882989883423, -0.3509020209312439, -0.5087812542915344, 0.4464235305786133, 0.002764721866697073, 0.5990949273109436, -0.1671154648065567, 0.48344069719314575, 0.3090295195579529, -0.09859995543956757, -0.6387665271759033, -0.6552451252937317, 0.4664252996444702, 0.21352481842041016, -0.6599075198173523, -0.5147476196289062, 0.03428623825311661, 0.8148927688598633, 0.37831807136535645, 0.43727099895477295, -0.11788736283779144, 0.12729689478874207, 0.10596872121095657, 0.44835150241851807, -0.3941135108470917, -0.12803974747657776, -0.2742568850517273, -0.007344561628997326, -0.12404143810272217, -0.6550727486610413 ]
timm/res2net50_14w_8s.in1k
timm
"2023-04-24T00:04:42Z"
40,918
0
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "arxiv:1904.01169", "license:unknown", "region:us" ]
image-classification
"2023-04-24T00:04:16Z"
--- tags: - image-classification - timm library_name: timm license: unknown datasets: - imagenet-1k --- # Model card for res2net50_14w_8s.in1k A Res2Net (Multi-Scale ResNet) image classification model. Trained on ImageNet-1k by paper authors. ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 25.1 - GMACs: 4.2 - Activations (M): 13.3 - Image size: 224 x 224 - **Papers:** - Res2Net: A New Multi-scale Backbone Architecture: https://arxiv.org/abs/1904.01169 - **Dataset:** ImageNet-1k - **Original:** https://github.com/gasvn/Res2Net/ ## 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('res2net50_14w_8s.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( 'res2net50_14w_8s.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, 64, 112, 112]) # torch.Size([1, 256, 56, 56]) # torch.Size([1, 512, 28, 28]) # torch.Size([1, 1024, 14, 14]) # torch.Size([1, 2048, 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( 'res2net50_14w_8s.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, 2048, 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 @article{gao2019res2net, title={Res2Net: A New Multi-scale Backbone Architecture}, author={Gao, Shang-Hua and Cheng, Ming-Ming and Zhao, Kai and Zhang, Xin-Yu and Yang, Ming-Hsuan and Torr, Philip}, journal={IEEE TPAMI}, doi={10.1109/TPAMI.2019.2938758}, } ```
[ -0.4688214957714081, -0.3354801535606384, -0.09039313346147537, 0.17952580749988556, -0.27795085310935974, -0.3919900059700012, -0.2226133495569229, -0.40051308274269104, 0.3115803003311157, 0.5277547240257263, -0.4526827931404114, -0.5434973835945129, -0.6913720965385437, -0.1175481304526329, -0.09859068691730499, 0.9031479358673096, -0.04575126990675926, 0.024643221870064735, -0.15168516337871552, -0.5781843066215515, -0.14136944711208344, -0.24390949308872223, -1.0209321975708008, -0.434264600276947, 0.39160796999931335, 0.25841498374938965, 0.37265196442604065, 0.6474446654319763, 0.6388929486274719, 0.505307674407959, -0.07401673495769501, 0.13595083355903625, -0.24641437828540802, -0.2551879584789276, 0.33780574798583984, -0.7046695351600647, -0.5054037570953369, 0.24875527620315552, 0.8175091743469238, 0.3021192252635956, 0.08420834690332413, 0.550829291343689, 0.174849733710289, 0.6288928389549255, -0.16377224028110504, 0.17127187550067902, -0.4099196791648865, 0.20141392946243286, -0.19114041328430176, 0.18081821501255035, -0.3309575021266937, -0.4089694321155548, 0.17803288996219635, -0.47987642884254456, 0.4104939103126526, 0.13408631086349487, 1.3199501037597656, 0.23351149260997772, -0.12044989317655563, 0.05491857975721359, -0.14609472453594208, 0.8818461894989014, -0.8042569160461426, 0.22819554805755615, 0.30875787138938904, 0.23288783431053162, -0.06132818013429642, -1.1844972372055054, -0.590602457523346, 0.008536805398762226, -0.19356127083301544, -0.06753448396921158, -0.18887916207313538, -0.08846907317638397, 0.27562543749809265, 0.2648341655731201, -0.4651462733745575, 0.2262127846479416, -0.6405074000358582, -0.24275650084018707, 0.5493630170822144, 0.04319661110639572, 0.3133767545223236, -0.2803470194339752, -0.5376355051994324, -0.40860190987586975, -0.27650630474090576, 0.3452228009700775, 0.3109406530857086, 0.3397701680660248, -0.6740201711654663, 0.40273162722587585, 0.15958832204341888, 0.5016195774078369, 0.004501127637922764, -0.365136057138443, 0.6436793804168701, -0.007071444299072027, -0.4245688319206238, -0.15467321872711182, 1.1425883769989014, 0.44322913885116577, 0.2656285762786865, 0.20640066266059875, -0.07253199815750122, -0.43763837218284607, -0.04491244629025459, -1.203238844871521, -0.3819265067577362, 0.3998774290084839, -0.747875452041626, -0.4301471412181854, 0.1780201494693756, -0.7838848233222961, -0.20029884576797485, 0.00969760213047266, 0.4609711766242981, -0.36063146591186523, -0.5536433458328247, 0.07216901332139969, -0.23748575150966644, 0.3110317885875702, 0.0883641466498375, -0.5641327500343323, 0.20458167791366577, 0.31420469284057617, 1.160930871963501, 0.1697084754705429, -0.43822982907295227, -0.1688404530286789, -0.4104055166244507, -0.25180545449256897, 0.49705228209495544, -0.01819458417594433, -0.03072725236415863, -0.355409175157547, 0.4279347062110901, -0.13230854272842407, -0.6769689917564392, 0.20000161230564117, -0.23052555322647095, 0.3411595821380615, -0.09453588724136353, -0.1650812029838562, -0.5716503858566284, 0.3340805768966675, -0.528374195098877, 1.3162561655044556, 0.42370396852493286, -0.9394059181213379, 0.2005486935377121, -0.5287207961082458, -0.09511251747608185, -0.37700021266937256, 0.055478453636169434, -1.1688425540924072, -0.1293429434299469, 0.06819488853216171, 0.6282327771186829, -0.430971622467041, -0.022026365622878075, -0.6198807954788208, -0.14650686085224152, 0.3042876720428467, -0.02658524550497532, 1.0082319974899292, 0.10068675875663757, -0.41276147961616516, 0.16994495689868927, -0.5872304439544678, 0.3436351418495178, 0.5527219176292419, -0.33349376916885376, 0.002044636756181717, -0.6553002595901489, 0.2935081124305725, 0.40544673800468445, 0.1639547497034073, -0.6221020817756653, 0.27109265327453613, -0.24333533644676208, 0.5493141412734985, 0.5893194079399109, -0.18423287570476532, 0.2971120774745941, -0.37267306447029114, 0.17807111144065857, 0.18860453367233276, 0.19818611443042755, 0.04364732280373573, -0.6164482235908508, -0.8073132634162903, -0.42848631739616394, 0.4078696668148041, 0.43294447660446167, -0.4216834604740143, 0.46328005194664, -0.17126286029815674, -0.7932282090187073, -0.46777862310409546, 0.07781745493412018, 0.5555111169815063, 0.5832757949829102, 0.44433385133743286, -0.469318687915802, -0.6078898310661316, -0.9906207919120789, 0.11151669919490814, 0.018596170470118523, -0.03912726044654846, 0.3827972412109375, 0.7034299969673157, -0.07348061352968216, 0.6582536697387695, -0.45059970021247864, -0.3656981289386749, -0.30609145760536194, 0.0849110409617424, 0.3520667254924774, 0.8142955899238586, 0.8965932130813599, -0.6379939317703247, -0.43161749839782715, -0.176187202334404, -0.9936605095863342, 0.2168959230184555, -0.11508549749851227, -0.1848970502614975, 0.2659263014793396, 0.09296828508377075, -0.5079486966133118, 0.5291749835014343, 0.2790851294994354, -0.3064810335636139, 0.4740079939365387, -0.26159822940826416, 0.2109791487455368, -1.3421207666397095, 0.14504481852054596, 0.4333740174770355, -0.026201477274298668, -0.44155627489089966, 0.041077516973018646, 0.09505362063646317, -0.062193866819143295, -0.5187579989433289, 0.675818145275116, -0.6031391620635986, -0.3575095534324646, -0.1905549168586731, -0.20409879088401794, 0.15978717803955078, 0.7449877858161926, 0.0021415012888610363, 0.36484673619270325, 0.7688813209533691, -0.4122961461544037, 0.5984757542610168, 0.3629060983657837, -0.19294635951519012, 0.4016236364841461, -0.6939814686775208, 0.161209374666214, 0.04343988001346588, 0.38664212822914124, -1.134982705116272, -0.2576637268066406, 0.21716994047164917, -0.5828297734260559, 0.655181348323822, -0.5080288648605347, -0.41064217686653137, -0.6805160045623779, -0.5210208296775818, 0.4610983431339264, 0.719905436038971, -0.7047072052955627, 0.37552475929260254, 0.28012579679489136, 0.2924610376358032, -0.5540844202041626, -1.0108330249786377, -0.21480317413806915, -0.4692314565181732, -0.7482556104660034, 0.2835317552089691, 0.27581945061683655, 0.14587897062301636, 0.13780061900615692, -0.017942676320672035, -0.20813393592834473, -0.17519859969615936, 0.5496819019317627, 0.30546486377716064, -0.3638162612915039, -0.10224691778421402, -0.31335878372192383, -0.0987851694226265, 0.09529005736112595, -0.37568721175193787, 0.6511029005050659, -0.3267226219177246, -0.11031872779130936, -1.0196046829223633, -0.1500129997730255, 0.5579367876052856, -0.14090445637702942, 0.8710940480232239, 1.1816960573196411, -0.5562063455581665, 0.011478735134005547, -0.39886853098869324, -0.3957004249095917, -0.48583507537841797, 0.5654464364051819, -0.40190231800079346, -0.4305436909198761, 0.8842009902000427, -0.15704584121704102, 0.1551073044538498, 0.6937302947044373, 0.22419777512550354, -0.09677056968212128, 0.620532214641571, 0.5246074795722961, 0.20991133153438568, 0.5681374669075012, -1.1076353788375854, -0.1784849315881729, -1.0911767482757568, -0.655931830406189, -0.4914906620979309, -0.7627482414245605, -0.6564712524414062, -0.42594587802886963, 0.4170043468475342, 0.23168063163757324, -0.4952508211135864, 0.5937407612800598, -0.8561276197433472, -0.004662467632442713, 0.6421583294868469, 0.5841732025146484, -0.49140724539756775, 0.33346036076545715, -0.21328197419643402, -0.05262167006731033, -0.7062743902206421, -0.2020489126443863, 1.1383779048919678, 0.5994742512702942, 0.5733333826065063, -0.05631550773978233, 0.6177054643630981, -0.24614980816841125, 0.21891990303993225, -0.5750117301940918, 0.5416387319564819, -0.20814703404903412, -0.42941126227378845, -0.25411781668663025, -0.36489367485046387, -1.0430960655212402, 0.16096153855323792, -0.30876877903938293, -0.7748750448226929, 0.15562792122364044, 0.14744526147842407, -0.22359050810337067, 0.9503884315490723, -0.7707724571228027, 0.9184021353721619, -0.10955105721950531, -0.42075827717781067, -0.002761667361482978, -0.684403121471405, 0.3285141587257385, 0.13578306138515472, -0.16725493967533112, -0.06569429486989975, 0.124908447265625, 1.1861340999603271, -0.5689899325370789, 0.9189297556877136, -0.49049147963523865, 0.39683255553245544, 0.5782498717308044, -0.17948366701602936, 0.33856403827667236, -0.049343403428792953, -0.20671753585338593, 0.4121720492839813, -0.046260517090559006, -0.5271143317222595, -0.5443247556686401, 0.5866868495941162, -1.0103480815887451, -0.26436731219291687, -0.28399574756622314, -0.42262664437294006, 0.1625618040561676, 0.09735578298568726, 0.557525634765625, 0.8041936159133911, 0.35692864656448364, 0.43027013540267944, 0.5952287912368774, -0.45325639843940735, 0.48642462491989136, -0.13569045066833496, -0.14386272430419922, -0.5608762502670288, 0.8175563216209412, 0.2411995232105255, 0.18346968293190002, 0.08796503394842148, 0.19545990228652954, -0.5379168391227722, -0.5102188587188721, -0.43217140436172485, 0.410099059343338, -0.5773414373397827, -0.5177742838859558, -0.6260950565338135, -0.4730529487133026, -0.5181622505187988, -0.019038714468479156, -0.6332785487174988, -0.3967851996421814, -0.37184324860572815, 0.24548321962356567, 0.7200521230697632, 0.6008157134056091, -0.17610050737857819, 0.5408703684806824, -0.5582438111305237, 0.0910109356045723, 0.1461334079504013, 0.4973326027393341, -0.006979858037084341, -1.0112807750701904, -0.20694147050380707, -0.06996864080429077, -0.3730662763118744, -0.6513457894325256, 0.42175573110580444, 0.15111730992794037, 0.4319765865802765, 0.38232842087745667, -0.1816147118806839, 0.7208795547485352, -0.012003183364868164, 0.6193996071815491, 0.46231579780578613, -0.5212832093238831, 0.5970966219902039, 0.06488136947154999, 0.1468670815229416, 0.024240955710411072, 0.28209611773490906, -0.3202904164791107, 0.05479813739657402, -0.9357629418373108, -0.7128437161445618, 0.9587585926055908, 0.019450852647423744, -0.013351655565202236, 0.39632323384284973, 0.804883599281311, -0.0701073408126831, -0.04929092898964882, -0.7207377552986145, -0.4362143278121948, -0.3941274583339691, -0.19715557992458344, 0.11011417210102081, -0.20086632668972015, -0.056061238050460815, -0.5643814206123352, 0.651768684387207, -0.1193200945854187, 0.7969948649406433, 0.2650936245918274, 0.17039526998996735, -0.008468203246593475, -0.44620779156684875, 0.518923819065094, 0.22648796439170837, -0.27004313468933105, 0.08336584270000458, 0.3162038326263428, -0.6201316714286804, 0.09605379402637482, -0.005030153784900904, 0.12992902100086212, -0.10403972864151001, 0.5965175628662109, 0.9527795910835266, -0.006143148522824049, 0.16543814539909363, 0.34365278482437134, -0.08526663482189178, -0.47808608412742615, -0.2603216767311096, 0.1038605123758316, 0.0604509636759758, 0.42709219455718994, 0.23522725701332092, 0.37933608889579773, -0.22921189665794373, -0.23909388482570648, 0.3472502529621124, 0.474469929933548, -0.28906065225601196, -0.3693512976169586, 0.6864900588989258, -0.14567930996418, -0.18540647625923157, 1.0699363946914673, -0.06044195592403412, -0.45836564898490906, 1.2648932933807373, 0.5431936979293823, 0.8747414946556091, -0.09172046929597855, -0.013166441582143307, 0.9987083673477173, 0.23702728748321533, -0.06255517899990082, 0.20082177221775055, 0.30550482869148254, -0.7674232125282288, 0.11822943389415741, -0.6741266846656799, 0.12358734756708145, 0.4776425063610077, -0.6719059944152832, 0.3193267583847046, -0.7639777660369873, -0.4673357903957367, 0.13646912574768066, 0.39348170161247253, -0.8534818291664124, 0.30410584807395935, -0.10567188262939453, 0.9803786873817444, -0.8124651312828064, 0.87685227394104, 0.8870828747749329, -0.49210599064826965, -1.181971788406372, -0.09156763553619385, 0.12335792928934097, -1.006642460823059, 0.6449030041694641, 0.5034200549125671, 0.231365367770195, 0.0785580426454544, -0.6112876534461975, -0.6979173421859741, 1.4926784038543701, 0.4157293140888214, -0.08535175025463104, 0.2643498480319977, -0.006427598651498556, 0.27026140689849854, -0.47482991218566895, 0.5729149580001831, 0.17185012996196747, 0.4551485776901245, 0.33255741000175476, -0.7835065722465515, 0.2755982577800751, -0.263833612203598, 0.18232105672359467, 0.2255558967590332, -0.9826264381408691, 1.0080180168151855, -0.6156010627746582, -0.07644995301961899, 0.03501135855913162, 0.7012408971786499, 0.27167394757270813, 0.14257778227329254, 0.5569983720779419, 0.8912912607192993, 0.5885562896728516, -0.3552683889865875, 0.7979487776756287, -0.027165185660123825, 0.7298486232757568, 0.6190201044082642, 0.300615519285202, 0.6422642469406128, 0.2560419738292694, -0.28445085883140564, 0.4683307111263275, 1.188935399055481, -0.4159403443336487, 0.3027607500553131, 0.30143141746520996, -0.009390021674335003, -0.06892569363117218, 0.05877204239368439, -0.541527509689331, 0.5825099945068359, 0.2124083787202835, -0.5028523802757263, -0.2796827256679535, 0.0691453218460083, 0.03982316702604294, -0.30242711305618286, -0.1608925610780716, 0.4725773334503174, -0.007383720017969608, -0.33481666445732117, 0.8368321657180786, 0.1858341097831726, 0.8328093886375427, -0.3418097198009491, 0.004391144961118698, -0.3247286081314087, 0.24826116859912872, -0.4058200418949127, -0.9429419636726379, 0.38305777311325073, -0.28359362483024597, -0.04197344183921814, 0.057054512202739716, 0.6235805749893188, -0.35069066286087036, -0.4008639454841614, 0.25437110662460327, 0.18450157344341278, 0.6550983786582947, 0.09931975603103638, -1.3042839765548706, 0.16400021314620972, 0.09219162166118622, -0.7057743668556213, 0.41711968183517456, 0.42761120200157166, 0.049492042511701584, 0.7931503653526306, 0.5801792144775391, -0.09131506830453873, 0.03185544162988663, -0.2598344385623932, 0.7675894498825073, -0.4568755030632019, -0.2449924796819687, -0.7787147164344788, 0.6649498343467712, -0.17758223414421082, -0.6121551990509033, 0.45386141538619995, 0.6974647045135498, 0.774170994758606, 0.020999876782298088, 0.48726484179496765, -0.31665515899658203, -0.039752960205078125, -0.39432966709136963, 0.7287529110908508, -0.7458080649375916, -0.09178034961223602, 0.05351248010993004, -0.6911672949790955, -0.25852862000465393, 0.6452935934066772, -0.1493239849805832, 0.40350866317749023, 0.5357882380485535, 1.0230213403701782, -0.32740283012390137, -0.31236958503723145, 0.08164658397436142, 0.09819004684686661, 0.08762022107839584, 0.48282575607299805, 0.15115277469158173, -0.8816301822662354, 0.36886709928512573, -0.6129001975059509, -0.24652163684368134, -0.11652356386184692, -0.5909828543663025, -1.0340934991836548, -0.9391840696334839, -0.5514421463012695, -0.8118821978569031, -0.3233441412448883, 0.8381680250167847, 1.1656078100204468, -0.7141255736351013, -0.1415317952632904, 0.10723324865102768, 0.16320554912090302, -0.2115696221590042, -0.21883071959018707, 0.738060712814331, -0.17543768882751465, -0.803036630153656, -0.337332546710968, 0.010267693549394608, 0.35365569591522217, -0.10272454470396042, -0.24030059576034546, -0.1633731573820114, -0.27927979826927185, 0.17361178994178772, 0.37470149993896484, -0.7253764271736145, -0.2677803039550781, -0.3022557199001312, -0.2018991857767105, 0.3078800141811371, 0.3615807890892029, -0.4912746250629425, 0.22594216465950012, 0.45473793148994446, 0.40850722789764404, 0.7661658525466919, -0.3043542206287384, -0.053774699568748474, -0.8728328347206116, 0.5934343934059143, -0.2884525656700134, 0.4535630941390991, 0.33786749839782715, -0.3715974688529968, 0.6215673089027405, 0.5286833643913269, -0.42707499861717224, -0.8583431243896484, -0.07090992480516434, -1.0000851154327393, -0.17138463258743286, 0.8981271982192993, -0.48063674569129944, -0.5230883955955505, 0.45944464206695557, 0.006230670493096113, 0.656260073184967, -0.014880749396979809, 0.48578333854675293, 0.2231861799955368, -0.22644935548305511, -0.6641577482223511, -0.5223665237426758, 0.4449484348297119, 0.08694836497306824, -0.6987234950065613, -0.45460039377212524, -0.1277645230293274, 0.7732530236244202, 0.31570398807525635, 0.41530612111091614, -0.16469769179821014, 0.05088362842798233, 0.21846625208854675, 0.5739826560020447, -0.4640161693096161, -0.12888337671756744, -0.2803243398666382, 0.1431766003370285, -0.15881766378879547, -0.7154216766357422 ]
timm/mixer_b16_224.goog_in21k_ft_in1k
timm
"2023-03-27T23:03:14Z"
40,913
1
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "dataset:imagenet-21k", "arxiv:2105.01601", "license:apache-2.0", "region:us" ]
image-classification
"2023-03-27T23:02:23Z"
--- tags: - image-classification - timm library_tag: timm license: apache-2.0 datasets: - imagenet-1k - imagenet-21k --- # Model card for mixer_b16_224.goog_in21k_ft_in1k A MLP-Mixer image classification model. Pretrained on ImageNet-21k and fine-tuned on ImageNet-1k by paper authors. ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 59.9 - GMACs: 12.6 - Activations (M): 14.5 - Image size: 224 x 224 - **Papers:** - MLP-Mixer: An all-MLP Architecture for Vision: https://arxiv.org/abs/2105.01601 - **Original:** https://github.com/google-research/vision_transformers - **Dataset:** ImageNet-1k - **Pretrain Dataset:** ImageNet-21k ## 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('mixer_b16_224.goog_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) ``` ### 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( 'mixer_b16_224.goog_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, 196, 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{tolstikhin2021mixer, title={MLP-Mixer: An all-MLP Architecture for Vision}, author={Tolstikhin, Ilya and Houlsby, Neil and Kolesnikov, Alexander and Beyer, Lucas and Zhai, Xiaohua and Unterthiner, Thomas and Yung, Jessica and Steiner, Andreas and Keysers, Daniel and Uszkoreit, Jakob and Lucic, Mario and Dosovitskiy, Alexey}, journal={arXiv preprint arXiv:2105.01601}, 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}} } ```
[ -0.7084423899650574, -0.32463201880455017, 0.1779690980911255, 0.23918229341506958, -0.28604015707969666, -0.4204539954662323, -0.11272069066762924, -0.4640812873840332, 0.30469265580177307, 0.3192272484302521, -0.6021344661712646, -0.5309885740280151, -0.7834138870239258, -0.18407607078552246, -0.26566430926322937, 0.9868905544281006, -0.11325424164533615, 0.07873066514730453, -0.26176634430885315, -0.37322869896888733, -0.25250548124313354, -0.3200541138648987, -0.71371990442276, -0.5344455242156982, 0.365349680185318, 0.10064557194709778, 0.6144612431526184, 0.46861210465431213, 0.5894353985786438, 0.4407127797603607, -0.18350563943386078, -0.06672941893339157, -0.2054978907108307, -0.16289173066616058, 0.28404778242111206, -0.5615732669830322, -0.7349100112915039, 0.42317232489585876, 0.7966127991676331, 0.6474484205245972, 0.011034424416720867, 0.521715521812439, 0.28061240911483765, 0.5509275197982788, -0.43012306094169617, 0.11521457135677338, -0.5775363445281982, 0.4748707115650177, -0.12225858122110367, -0.0856250748038292, -0.4179867208003998, -0.07691986113786697, 0.04769865423440933, -0.5459539890289307, 0.4044896066188812, -0.11672984808683395, 1.2690199613571167, 0.2640998661518097, -0.06482720375061035, 0.1616927683353424, -0.48963767290115356, 0.7013754844665527, -0.6994888782501221, 0.5223675966262817, 0.18817466497421265, 0.360494464635849, -0.22814632952213287, -1.168348789215088, -0.6518415808677673, 0.10724050551652908, 0.028175659477710724, 0.2554989159107208, -0.269884318113327, 0.1315208077430725, 0.28417712450027466, 0.32110267877578735, -0.4603129029273987, 0.01535568106919527, -0.44724568724632263, -0.1701555848121643, 0.5218815207481384, 0.06170127913355827, 0.17804978787899017, -0.021403932943940163, -0.53926682472229, -0.5169165730476379, -0.29203662276268005, 0.27710938453674316, 0.26386335492134094, 0.05314313620328903, -0.6241874098777771, 0.5707169771194458, 0.17855100333690643, 0.6702080965042114, 0.2829550504684448, -0.33131107687950134, 0.6045164465904236, -0.10029800236225128, -0.4991385042667389, -0.1519327312707901, 1.193515658378601, 0.6101104021072388, 0.18087296187877655, 0.049753811210393906, -0.16969573497772217, -0.04794657602906227, -0.11044421046972275, -1.2374845743179321, -0.4006962776184082, 0.3620240092277527, -0.5719793438911438, -0.34493452310562134, 0.20068415999412537, -0.6777881383895874, -0.03260864317417145, -0.11566407978534698, 0.7898586988449097, -0.18783926963806152, -0.3393130898475647, -0.012968973256647587, -0.2460600733757019, 0.3309769034385681, 0.14756804704666138, -0.626826822757721, 0.2226448804140091, 0.4262051582336426, 1.0736315250396729, 0.0004235536325722933, -0.47459423542022705, -0.3349645733833313, -0.3631143569946289, -0.40129920840263367, 0.37135112285614014, 0.013409570790827274, -0.2099555879831314, -0.3439369201660156, 0.30801811814308167, -0.3068409860134125, -0.8141536712646484, 0.4100859463214874, -0.2170860767364502, 0.2982635796070099, 0.12981486320495605, -0.3791830539703369, -0.2428155541419983, 0.07665125280618668, -0.36705344915390015, 1.1702754497528076, 0.19936268031597137, -0.8107487559318542, 0.5399855971336365, -0.44797152280807495, -0.0929388701915741, -0.16167178750038147, -0.18706215918064117, -1.1416987180709839, -0.10635089129209518, 0.17250332236289978, 0.7594631314277649, -0.11962182819843292, 0.2785349488258362, -0.809137761592865, -0.3437260687351227, 0.3622647523880005, -0.24959225952625275, 1.0746204853057861, 0.21766182780265808, -0.40202343463897705, 0.407143235206604, -0.728590190410614, 0.04493803530931473, 0.3686371147632599, -0.30993327498435974, 0.27379053831100464, -0.5373820066452026, 0.298484206199646, 0.4779265224933624, 0.03992825746536255, -0.5441397428512573, 0.11680641770362854, -0.17612673342227936, 0.3577834665775299, 0.6938175559043884, -0.17088307440280914, 0.4549163281917572, -0.46253296732902527, 0.39288395643234253, 0.4021693170070648, 0.45220497250556946, -0.02102479711174965, -0.8876226544380188, -0.9163683652877808, -0.47845202684402466, 0.37235069274902344, 0.37422239780426025, -0.5524047017097473, 0.6451999545097351, -0.2210473120212555, -0.6464778184890747, -0.7436271905899048, 0.1331200897693634, 0.33257386088371277, 0.6107270121574402, 0.3588535785675049, -0.6246526837348938, -0.6620554327964783, -0.8742812275886536, 0.04436955600976944, 0.18780481815338135, -0.1870601326227188, 0.26539772748947144, 0.6162657737731934, -0.2207120656967163, 0.8120418787002563, -0.25303566455841064, -0.3500640392303467, -0.20145802199840546, -0.03517504036426544, 0.676332414150238, 0.8171893358230591, 0.9612336754798889, -0.5700377225875854, -0.6139760613441467, -0.19621726870536804, -0.9471770524978638, 0.0476086251437664, 0.08290474861860275, -0.34273064136505127, 0.3033117651939392, 0.09063713997602463, -0.848877489566803, 0.6975976824760437, 0.42940446734428406, -0.4261733591556549, 0.5765784978866577, -0.015010898001492023, 0.10356049984693527, -1.1918267011642456, 0.08707079291343689, 0.30385908484458923, -0.20324057340621948, -0.5441212058067322, 0.01407200749963522, 0.07498224824666977, -0.11660637706518173, -0.6784393787384033, 0.6670931577682495, -0.4465847611427307, -0.29194360971450806, -0.23802407085895538, -0.16676437854766846, 0.08370965719223022, 0.7443300485610962, -0.08280482143163681, 0.39498236775398254, 0.9235192537307739, -0.6249905824661255, 0.47305774688720703, 0.2819409668445587, -0.2467610239982605, 0.543527364730835, -0.7002081871032715, 0.00253054010681808, 0.028560210019350052, 0.34081876277923584, -1.0744479894638062, -0.17165185511112213, 0.5387799143791199, -0.71832674741745, 0.6278014183044434, -0.6673703789710999, -0.4454639256000519, -0.47519421577453613, -0.4196644127368927, 0.41671663522720337, 0.760901689529419, -0.82879638671875, 0.7167258262634277, 0.27300071716308594, 0.3343062996864319, -0.608956515789032, -0.8741939067840576, -0.2506624460220337, -0.33628541231155396, -0.8160454630851746, 0.43946272134780884, -0.040122464299201965, 0.10478759557008743, 0.0382942296564579, -0.2821240723133087, 0.028113707900047302, -0.13945907354354858, 0.5693692564964294, 0.515082597732544, -0.2569122314453125, -0.33078163862228394, -0.24928033351898193, -0.15369804203510284, 0.22063767910003662, -0.35059553384780884, 0.6861979365348816, -0.09007308632135391, -0.16912133991718292, -0.9361749887466431, -0.11933643370866776, 0.5928605198860168, -0.012532674707472324, 0.9036777019500732, 1.1899853944778442, -0.3985641598701477, -0.027246765792369843, -0.46148988604545593, -0.3278803527355194, -0.5561482310295105, 0.46825018525123596, -0.4870976209640503, -0.29323408007621765, 1.0181403160095215, 0.2601521909236908, 0.16933099925518036, 0.6140235066413879, 0.455340713262558, -0.2472550868988037, 0.9679909348487854, 0.3693974018096924, 0.19581356644630432, 0.6726204752922058, -0.8844528794288635, -0.15521560609340668, -0.8789616823196411, -0.3238350749015808, -0.3569711744785309, -0.5967682600021362, -0.683539092540741, -0.4876345694065094, 0.4513068199157715, 0.17902947962284088, -0.39779162406921387, 0.29800453782081604, -0.7202319502830505, 0.12097692489624023, 0.7076165676116943, 0.39536115527153015, -0.2157689481973648, 0.24681948125362396, -0.46174365282058716, -0.005395912099629641, -0.886630654335022, -0.12391559779644012, 1.1628848314285278, 0.48313087224960327, 0.6764786839485168, -0.17639939486980438, 0.7117112874984741, -0.41138210892677307, 0.2937781810760498, -0.7196816802024841, 0.7216984629631042, -0.011119230650365353, -0.5215541124343872, 0.05872844532132149, -0.5062527060508728, -1.0008546113967896, 0.4538780748844147, -0.39794039726257324, -0.7471004128456116, 0.21268893778324127, 0.2753932774066925, -0.0007792559335939586, 0.7863579392433167, -0.786837637424469, 1.0168166160583496, -0.02904953807592392, -0.49255725741386414, 0.31774991750717163, -0.6823817491531372, 0.2967166006565094, 0.21981468796730042, 0.004240387585014105, -0.011467172764241695, 0.36915919184684753, 1.0718554258346558, -0.5287814736366272, 0.8724921941757202, -0.5079970359802246, 0.197501078248024, 0.43883195519447327, 0.01008688285946846, 0.21727320551872253, -0.10989484935998917, 0.11418197304010391, 0.43390515446662903, 0.09902698546648026, -0.34237369894981384, -0.5593636631965637, 0.7102085947990417, -1.0291168689727783, -0.33288413286209106, -0.29508861899375916, -0.5080162286758423, 0.056079525500535965, 0.05767571181058884, 0.5905047655105591, 0.5555923581123352, 0.39384764432907104, 0.3739257752895355, 0.5109931826591492, -0.18915529549121857, 0.5705010890960693, -0.03812947869300842, -0.5422244668006897, -0.5082902312278748, 0.7650437355041504, 0.21130754053592682, 0.2812919318675995, 0.08277229964733124, 0.1465095728635788, -0.3169717788696289, -0.35206544399261475, -0.48922252655029297, 0.26150593161582947, -0.8247764706611633, -0.33038097620010376, -0.6653386354446411, -0.45273882150650024, -0.44104596972465515, -0.021619586274027824, -0.6858436465263367, -0.4587629437446594, -0.43307486176490784, 0.23732364177703857, 0.433614045381546, 0.2644212543964386, -0.14743849635124207, 0.4137727618217468, -0.6299405097961426, 0.18237581849098206, 0.18211615085601807, 0.6786239147186279, 0.07117112725973129, -1.0187208652496338, -0.1672593206167221, 0.023966817185282707, -0.5899059176445007, -0.8908230662345886, 0.44923582673072815, 0.21929651498794556, 0.5944433808326721, 0.4335634410381317, -0.2623850405216217, 0.8912220597267151, -0.09605825692415237, 0.5638191103935242, 0.43791380524635315, -0.7044296860694885, 0.5820780992507935, -0.09180878847837448, 0.2838606834411621, 0.06590665131807327, 0.371766060590744, -0.2532319724559784, -0.15638674795627594, -0.9253266453742981, -0.9227607250213623, 0.8616482019424438, 0.278984934091568, -0.10044384747743607, 0.4317511022090912, 0.5411314964294434, -0.09853816032409668, 0.13128192722797394, -1.068035364151001, -0.5581086874008179, -0.4023609459400177, -0.3055241107940674, -0.09485165029764175, 0.05128250643610954, -0.15684518218040466, -0.8065407872200012, 0.8486229181289673, -0.02614448592066765, 0.7906298637390137, 0.20925748348236084, 0.06799432635307312, -0.31548240780830383, -0.2778162360191345, 0.3145408630371094, 0.35666415095329285, -0.42822882533073425, 0.09046507626771927, 0.10271487385034561, -0.641793429851532, 0.05247729271650314, 0.17112185060977936, -0.03861096501350403, 0.08803259581327438, 0.3511938154697418, 1.0523103475570679, 0.11822135001420975, -0.02395651303231716, 0.5191144347190857, -0.08054830133914948, -0.6057860851287842, -0.3401213586330414, 0.1801770031452179, 0.10023865103721619, 0.4271613657474518, 0.37958386540412903, 0.4097895324230194, -0.09158200025558472, -0.27187055349349976, 0.21614937484264374, 0.6227445602416992, -0.35575732588768005, -0.37637752294540405, 0.9716559648513794, -0.21013961732387543, -0.079842209815979, 0.7162588834762573, -0.08415866643190384, -0.3291928172111511, 0.9451331496238708, 0.5042939186096191, 0.936383843421936, -0.05333893001079559, -0.06987258791923523, 0.6839539408683777, 0.13417385518550873, 0.0891861692070961, 0.17300553619861603, -0.029377184808254242, -0.8946381211280823, -0.13673163950443268, -0.7797630429267883, -0.054185766726732254, 0.4017203450202942, -0.6470144391059875, 0.3994182050228119, -0.6646196246147156, -0.5136467218399048, 0.319585919380188, 0.13746491074562073, -0.9620711803436279, 0.09986874461174011, 0.09619010239839554, 0.6978757381439209, -0.7960846424102783, 0.8055699467658997, 0.9193900227546692, -0.43444934487342834, -1.0056192874908447, -0.30604442954063416, 0.06785628944635391, -0.6955601572990417, 0.5246639847755432, 0.43561792373657227, 0.06480678915977478, 0.08260678499937057, -0.8189312815666199, -0.6162045001983643, 1.3556709289550781, 0.39027509093284607, -0.3237597644329071, 0.31901970505714417, 0.018320361152291298, 0.25741326808929443, -0.43315595388412476, 0.4125300645828247, 0.18002736568450928, 0.3892006278038025, 0.5311927795410156, -0.9487680792808533, 0.02395288459956646, -0.4151328206062317, 0.07901594787836075, 0.23207300901412964, -0.5549191832542419, 0.9929354786872864, -0.3563106656074524, -0.11287995427846909, 0.04762554541230202, 0.6071877479553223, 0.4660227298736572, 0.29150524735450745, 0.5288046002388, 0.9381576180458069, 0.23252135515213013, -0.40304651856422424, 0.7765815258026123, -0.1831761598587036, 0.709589421749115, 0.7813370227813721, 0.17204146087169647, 0.5722193717956543, 0.5960648655891418, -0.4478377401828766, 0.1818327158689499, 0.9106110334396362, -0.3824305236339569, 0.35880938172340393, 0.06248519942164421, -0.012171651236712933, -0.19530220329761505, 0.1742418259382248, -0.5238732099533081, 0.5137239098548889, 0.15182994306087494, -0.5888866186141968, -0.061590928584337234, 0.15167510509490967, 0.0026507186703383923, -0.49542436003685, -0.23132815957069397, 0.4769672155380249, 0.05477427318692207, -0.45927494764328003, 0.8596047163009644, -0.006087630521506071, 0.9912405610084534, -0.2838857173919678, -0.012114386074244976, -0.2258138209581375, 0.3768523633480072, -0.35024669766426086, -0.9383734464645386, 0.1756022572517395, -0.37702780961990356, -0.01444859430193901, 0.07045945525169373, 0.632378339767456, -0.34786897897720337, -0.49066728353500366, 0.37420961260795593, 0.23257067799568176, 0.3991279900074005, 0.013259442523121834, -1.0682576894760132, 0.22265538573265076, -0.06334282457828522, -0.574995219707489, 0.44667211174964905, 0.21980305016040802, 0.31175413727760315, 0.7352315187454224, 0.6470426917076111, -0.13001258671283722, 0.34574732184410095, -0.036759622395038605, 0.8222545981407166, -0.44409480690956116, -0.459516316652298, -0.7463632822036743, 0.6681433320045471, 0.07840751856565475, -0.39389270544052124, 0.5516232252120972, 0.5657191276550293, 1.0995632410049438, -0.16468878090381622, 0.283623069524765, -0.10871932655572891, -0.03992621600627899, -0.40203508734703064, 0.7812941074371338, -0.7724297642707825, 0.06663836538791656, -0.3783845007419586, -1.023979663848877, -0.34779641032218933, 0.8108760118484497, -0.05685978755354881, 0.5885652303695679, 0.31646743416786194, 0.9258962869644165, -0.4982669949531555, -0.2701707184314728, 0.30336645245552063, 0.22352097928524017, 0.1520272195339203, 0.3583880066871643, 0.48517200350761414, -0.8557960987091064, 0.4112125635147095, -0.7464969158172607, -0.16097392141819, -0.23094019293785095, -0.6097864508628845, -0.9349895715713501, -0.8357639312744141, -0.566202700138092, -0.6000573635101318, -0.26939308643341064, 0.9043294191360474, 1.13047456741333, -0.6176586151123047, -0.30920252203941345, 0.029740087687969208, -0.06809096038341522, -0.3077097237110138, -0.29058071970939636, 0.33678099513053894, -0.07182864844799042, -0.8686180710792542, -0.17227201163768768, 0.009008617140352726, 0.5555782914161682, -0.06481382250785828, -0.265735924243927, -0.249907448887825, -0.2978357970714569, 0.4176529049873352, 0.22068259119987488, -0.6974714398384094, -0.018974358215928078, -0.3168078064918518, 0.02370770089328289, 0.4687727987766266, 0.18448428809642792, -0.5639370083808899, 0.4308929741382599, 0.3969000279903412, 0.2031952440738678, 0.964899480342865, -0.4439677596092224, 0.04678924381732941, -0.9396588802337646, 0.5840542316436768, -0.11176151782274246, 0.6439001560211182, 0.27369871735572815, -0.19062145054340363, 0.47564008831977844, 0.48687487840652466, -0.5041496753692627, -0.9147272109985352, -0.14985550940036774, -1.2231680154800415, -0.10158281028270721, 0.7633879780769348, -0.25699517130851746, -0.48813503980636597, 0.4174116849899292, 0.07391688227653503, 0.6601563692092896, -0.09276589006185532, 0.502004861831665, 0.2501519024372101, -0.13733787834644318, -0.6506075859069824, -0.6450806856155396, 0.3668610155582428, 0.28572726249694824, -0.5390337705612183, -0.579906165599823, 0.1759006232023239, 0.7463700771331787, 0.2483300268650055, 0.5305078029632568, -0.31325703859329224, 0.26977699995040894, 0.16036024689674377, 0.5944571495056152, -0.3080277740955353, -0.3529505431652069, -0.25559934973716736, 0.1129285916686058, -0.1644108146429062, -0.6294191479682922 ]
timm/fbnetc_100.rmsp_in1k
timm
"2023-04-27T21:13:21Z"
40,862
0
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "arxiv:1812.03443", "license:apache-2.0", "region:us" ]
image-classification
"2022-12-12T23:59:14Z"
--- tags: - image-classification - timm library_name: timm license: apache-2.0 datasets: - imagenet-1k --- # Model card for fbnetc_100.rmsp_in1k A FBNet image classification model. Trained on ImageNet-1k in `timm` using recipe template described below. Recipe details: * A simple RmsProp based recipe without RandAugment. Using RandomErasing, mixup, dropout, standard random-resize-crop augmentation. * 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): 5.6 - GMACs: 0.4 - Activations (M): 6.5 - Image size: 224 x 224 - **Papers:** - FBNet: Hardware-Aware Efficient ConvNet Design via Differentiable Neural Architecture Search: https://arxiv.org/abs/1812.03443 - **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('fbnetc_100.rmsp_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( 'fbnetc_100.rmsp_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, 32, 28, 28]) # torch.Size([1, 112, 14, 14]) # torch.Size([1, 352, 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( 'fbnetc_100.rmsp_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, 1984, 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{wu2019fbnet, title={Fbnet: Hardware-aware efficient convnet design via differentiable neural architecture search}, author={Wu, Bichen and Dai, Xiaoliang and Zhang, Peizhao and Wang, Yanghan and Sun, Fei and Wu, Yiming and Tian, Yuandong and Vajda, Peter and Jia, Yangqing and Keutzer, Kurt}, booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition}, pages={10734--10742}, year={2019} } ```
[ -0.5612238645553589, -0.5375111103057861, -0.07995926588773727, 0.20303452014923096, -0.35329103469848633, -0.4233170449733734, -0.20397478342056274, -0.40073466300964355, 0.30842095613479614, 0.404562771320343, -0.5525847673416138, -0.6977092623710632, -0.6359472274780273, -0.14347513020038605, -0.10629251599311829, 0.8389329314231873, -0.13191552460193634, -0.04515071585774422, -0.1644553244113922, -0.527041494846344, -0.30157995223999023, -0.32565006613731384, -0.9476945400238037, -0.4426196813583374, 0.272340327501297, 0.12494192272424698, 0.5632317662239075, 0.5211159586906433, 0.5745949149131775, 0.47719311714172363, -0.19527649879455566, 0.13945753872394562, -0.13450829684734344, -0.25528013706207275, 0.4059660732746124, -0.5765342712402344, -0.5014510750770569, 0.2260270118713379, 0.6365872025489807, 0.3211860954761505, 0.028111957013607025, 0.3402608335018158, 0.03991006687283516, 0.5433840751647949, -0.21539880335330963, 0.1828136146068573, -0.43463847041130066, 0.32606175541877747, -0.09981349110603333, -0.02477305568754673, -0.3579980432987213, -0.40736618638038635, 0.1702972948551178, -0.5062673091888428, 0.47603705525398254, 0.014994923956692219, 1.2697778940200806, 0.19558820128440857, -0.017683351412415504, -0.0927916169166565, -0.20300045609474182, 0.8372219800949097, -0.8844982981681824, 0.34394893050193787, 0.2842952311038971, 0.17010007798671722, -0.12242407351732254, -0.9041690826416016, -0.5511522889137268, -0.27247190475463867, -0.15119904279708862, -0.10425714403390884, -0.226327046751976, 0.01603720150887966, 0.35034146904945374, 0.4172261655330658, -0.5201634168624878, 0.08432810753583908, -0.42251506447792053, -0.29382002353668213, 0.5530543923377991, 0.007660783361643553, 0.3343665301799774, -0.2553979456424713, -0.5493956804275513, -0.431564062833786, -0.3954710364341736, 0.31952330470085144, 0.1777980923652649, 0.3155398368835449, -0.5530797243118286, 0.33261537551879883, 0.14768476784229279, 0.6704272627830505, 0.08480086922645569, -0.21378327906131744, 0.6029589772224426, 0.006659583654254675, -0.4553271234035492, -0.06325295567512512, 1.0271085500717163, 0.3436615467071533, 0.19830235838890076, 0.11331261694431305, -0.26035308837890625, -0.31685885787010193, -0.032095883041620255, -1.2467498779296875, -0.35318905115127563, 0.3908363878726959, -0.6330859661102295, -0.4462219774723053, 0.2617032527923584, -0.556637704372406, -0.027530593797564507, -0.06844446063041687, 0.6367871761322021, -0.6135939955711365, -0.3965790867805481, 0.00036474171793088317, -0.23752447962760925, 0.31758299469947815, 0.17986547946929932, -0.644839346408844, 0.20883625745773315, 0.3682059645652771, 1.2002124786376953, 0.16897666454315186, -0.413011372089386, -0.29045748710632324, -0.42442017793655396, -0.37930285930633545, 0.37516555190086365, -0.04275880381464958, -0.14150235056877136, -0.32276394963264465, 0.32335832715034485, -0.090688556432724, -0.7213181853294373, 0.18215860426425934, -0.2758964002132416, 0.2579875588417053, -0.1607149988412857, -0.25468018651008606, -0.5060166120529175, 0.29613691568374634, -0.5140857100486755, 1.2757682800292969, 0.39745014905929565, -0.8301103711128235, 0.3891274034976959, -0.6229872107505798, -0.226089745759964, -0.2749379575252533, -0.10624667257070541, -1.0083017349243164, -0.032561223953962326, 0.31050118803977966, 0.7841926217079163, -0.255449116230011, -0.02293100580573082, -0.4582307040691376, -0.3360188901424408, 0.32591888308525085, -0.08366920799016953, 1.0600671768188477, 0.16056807339191437, -0.5303666591644287, 0.28558236360549927, -0.5564197301864624, 0.20825006067752838, 0.5829769372940063, -0.2626313865184784, -0.10905901342630386, -0.63217693567276, 0.18636056780815125, 0.38269487023353577, 0.10244005918502808, -0.6117043495178223, 0.23180195689201355, -0.29897668957710266, 0.4640920162200928, 0.733543336391449, -0.09894086420536041, 0.26361796259880066, -0.4473632276058197, 0.23681575059890747, 0.36477261781692505, 0.2865124046802521, -0.02066572569310665, -0.6138293147087097, -0.7539098858833313, -0.4658313989639282, 0.43317359685897827, 0.4049423933029175, -0.608896791934967, 0.4754011929035187, -0.07016070187091827, -0.7522327899932861, -0.44614654779434204, 0.0858779102563858, 0.5600170493125916, 0.51139897108078, 0.3935070037841797, -0.6072295904159546, -0.4498343765735626, -0.8455983400344849, 0.1415211260318756, 0.1846914142370224, -0.06985106319189072, 0.3639068305492401, 0.6251047849655151, -0.07585500180721283, 0.6002600193023682, -0.4702061414718628, -0.3450430929660797, -0.19486069679260254, 0.1159527376294136, 0.4758179187774658, 0.8341843485832214, 1.0266634225845337, -0.723855197429657, -0.40383654832839966, -0.09305746853351593, -0.9191972017288208, 0.2431701123714447, -0.12328066676855087, -0.1998625546693802, 0.38186728954315186, 0.14861881732940674, -0.6606529951095581, 0.6538209915161133, 0.1879105418920517, -0.2873639166355133, 0.44549721479415894, -0.2082076519727707, 0.24363106489181519, -1.1235568523406982, 0.09321059286594391, 0.41485515236854553, -0.08256251364946365, -0.40330538153648376, 0.04655221477150917, 0.009305859915912151, -0.03250516578555107, -0.5403125286102295, 0.7481185793876648, -0.5897212624549866, -0.2239413857460022, -0.10005240142345428, -0.2251565158367157, -0.005267699249088764, 0.8287400603294373, -0.03538218140602112, 0.3900986909866333, 0.736621618270874, -0.5529009699821472, 0.41824764013290405, 0.46958303451538086, -0.1745259165763855, 0.39565035700798035, -0.6489720344543457, 0.1747400462627411, 0.05921044200658798, 0.18950402736663818, -0.9444884657859802, -0.16375170648097992, 0.3315819799900055, -0.5728627443313599, 0.736474871635437, -0.45002806186676025, -0.3955395519733429, -0.5567600727081299, -0.49266520142555237, 0.3584626615047455, 0.5852729678153992, -0.7142130136489868, 0.4713740646839142, 0.19661098718643188, 0.27561530470848083, -0.6345419883728027, -0.964980959892273, -0.3472616970539093, -0.216589093208313, -0.7407681345939636, 0.43681758642196655, 0.0725204274058342, 0.13034099340438843, 0.10041868686676025, -0.21612252295017242, -0.11589925736188889, -0.13689257204532623, 0.5914579033851624, 0.3479900062084198, -0.5220557451248169, -0.14860926568508148, -0.2030286192893982, -0.06498908996582031, -0.005364913493394852, -0.3425264358520508, 0.7162047624588013, -0.36125630140304565, -0.13323701918125153, -0.8619490265846252, -0.052156515419483185, 0.38744908571243286, -0.12307107448577881, 0.7677481174468994, 1.0675146579742432, -0.6032506823539734, -0.16780897974967957, -0.38853952288627625, -0.4197707176208496, -0.5303347110748291, 0.39207321405410767, -0.46245670318603516, -0.42407363653182983, 0.8149701356887817, 0.06365741789340973, 0.16118809580802917, 0.6630114912986755, 0.36285823583602905, -0.016593152657151222, 0.5606487393379211, 0.5611494183540344, 0.1663569062948227, 0.7936487793922424, -0.9921888709068298, -0.23618115484714508, -0.7557272911071777, -0.3860214352607727, -0.26120179891586304, -0.664111852645874, -0.6466822624206543, -0.4016614556312561, 0.32980918884277344, 0.05388606712222099, -0.387376606464386, 0.4921528398990631, -0.9831057786941528, 0.13666556775569916, 0.7742311358451843, 0.65580815076828, -0.3970371186733246, 0.2605549991130829, -0.40432944893836975, -0.05484701320528984, -0.7965894937515259, -0.13723303377628326, 1.0620652437210083, 0.4380231201648712, 0.49973928928375244, -0.21476411819458008, 0.7605118155479431, -0.18267247080802917, 0.4336371123790741, -0.5841058492660522, 0.6540809273719788, -0.26883554458618164, -0.4899366796016693, -0.15392890572547913, -0.45918703079223633, -0.9799313545227051, 0.14838211238384247, -0.29682374000549316, -0.6949841976165771, 0.20260238647460938, 0.17425131797790527, -0.24865877628326416, 0.8321142196655273, -0.7760418057441711, 1.0064051151275635, -0.24592441320419312, -0.39990612864494324, 0.12253925949335098, -0.6856714487075806, 0.25852906703948975, 0.3000287115573883, -0.2840759754180908, -0.04238784685730934, 0.32664763927459717, 1.0624839067459106, -0.6481819152832031, 0.7974894642829895, -0.6078016757965088, 0.43742355704307556, 0.4983508884906769, -0.06681862473487854, 0.20744287967681885, -0.17087610065937042, -0.1752707064151764, 0.48395729064941406, 0.07431341707706451, -0.5003289580345154, -0.49688753485679626, 0.6075869202613831, -0.9507999420166016, -0.22379283607006073, -0.3934895396232605, -0.5117674469947815, 0.18451914191246033, 0.17700225114822388, 0.514245867729187, 0.7501543760299683, 0.1331769973039627, 0.2565811276435852, 0.5895108580589294, -0.4781922399997711, 0.42370542883872986, -0.15803903341293335, -0.2758671045303345, -0.5487586855888367, 0.8921793103218079, 0.2440224140882492, 0.11314702779054642, 0.28026771545410156, 0.19897973537445068, -0.2846623659133911, -0.5885693430900574, -0.3458813726902008, 0.42126503586769104, -0.6766965985298157, -0.5027872323989868, -0.49974772334098816, -0.4979231357574463, -0.366035133600235, -0.16667546331882477, -0.49064353108406067, -0.36728909611701965, -0.3543841242790222, 0.17841166257858276, 0.7587804198265076, 0.5560652613639832, -0.1746368408203125, 0.6182335615158081, -0.45899075269699097, 0.1702074110507965, 0.07170518487691879, 0.47825780510902405, -0.05881369486451149, -0.7707989811897278, -0.11405549198389053, -0.030268102884292603, -0.515501081943512, -0.7020971179008484, 0.5437412858009338, 0.1404312551021576, 0.4985959529876709, 0.35373273491859436, -0.19969622790813446, 0.7439987659454346, 0.03133262321352959, 0.5170168876647949, 0.32958149909973145, -0.6959853172302246, 0.6697810888290405, -0.020196175202727318, 0.1657039374113083, 0.10737118870019913, 0.3832451105117798, -0.2622850239276886, 0.011654532514512539, -0.973469078540802, -0.7818998694419861, 0.9221732020378113, 0.14902305603027344, -0.10812481492757797, 0.38819023966789246, 0.7683148980140686, 0.03097638674080372, 0.1309850960969925, -0.6886959075927734, -0.3965953588485718, -0.4204728305339813, -0.29018428921699524, 0.06766346096992493, -0.016241734847426414, -0.06281080842018127, -0.6417306661605835, 0.7296664118766785, -0.043179772794246674, 0.9014392495155334, 0.3569156229496002, 0.01565939001739025, -0.10020408034324646, -0.4427131712436676, 0.5469978451728821, 0.2322721630334854, -0.46977898478507996, -0.010575942695140839, 0.20390120148658752, -0.6034323573112488, -0.014107809402048588, 0.1878497153520584, -0.027116809040308, 0.1315435767173767, 0.391661137342453, 0.9633005857467651, 0.11852826178073883, 0.12035154551267624, 0.4078456461429596, -0.13445937633514404, -0.4761550724506378, -0.2534630596637726, 0.1743049919605255, -0.018422625958919525, 0.43324142694473267, 0.3152424693107605, 0.3817811608314514, -0.29092177748680115, -0.21961712837219238, 0.4374821186065674, 0.6376796960830688, -0.2426508069038391, -0.3453146815299988, 0.715063214302063, -0.2527199387550354, -0.25025391578674316, 0.9700000882148743, -0.08495879918336868, -0.444006085395813, 1.1180869340896606, 0.42784979939460754, 0.8733835220336914, -0.17744697630405426, 0.07209427654743195, 0.7801030278205872, 0.35606884956359863, 0.09505906701087952, 0.298819899559021, 0.07866372913122177, -0.7668290138244629, 0.1491592824459076, -0.677410900592804, -0.06583032757043839, 0.370108962059021, -0.48587334156036377, 0.3487982451915741, -0.9212347865104675, -0.41799595952033997, 0.27593398094177246, 0.3995128870010376, -0.9875015020370483, 0.30720606446266174, -0.0616646483540535, 0.9423214197158813, -0.717258095741272, 0.7729179859161377, 0.7728908658027649, -0.6818833947181702, -1.0789905786514282, -0.1261814683675766, 0.06224139779806137, -0.9600847959518433, 0.5582396388053894, 0.5463626980781555, 0.17267683148384094, -0.005423258058726788, -0.7516517043113708, -0.5138685703277588, 1.4551129341125488, 0.520278811454773, -0.04412145912647247, 0.20150311291217804, -0.016984617337584496, 0.24354727566242218, -0.45681577920913696, 0.468354195356369, 0.11755815148353577, 0.403242826461792, 0.3518592119216919, -0.7069512605667114, 0.347547709941864, -0.29595836997032166, 0.0920044332742691, 0.23728273808956146, -0.815110981464386, 0.9937012791633606, -0.43900781869888306, -0.10616669803857803, 0.013137858361005783, 0.7208201289176941, 0.2632916271686554, 0.32446181774139404, 0.5302635431289673, 0.7413265705108643, 0.5171237587928772, -0.3762584924697876, 0.8760983943939209, -0.010918808169662952, 0.5899465680122375, 0.5854433178901672, 0.3889009356498718, 0.6360495686531067, 0.3717479407787323, -0.25925928354263306, 0.32980990409851074, 1.1224066019058228, -0.32143715023994446, 0.3310776352882385, 0.2202107161283493, 0.10606512427330017, -0.045970868319272995, 0.2357773631811142, -0.43419864773750305, 0.5130215287208557, 0.24797417223453522, -0.5824928879737854, -0.1781865358352661, 0.02382666803896427, 0.0021957242861390114, -0.4081572890281677, -0.17676979303359985, 0.4575798809528351, 0.12349792569875717, -0.3914005756378174, 0.9841315150260925, 0.06500998139381409, 0.9317640662193298, -0.47865307331085205, 0.027224134653806686, -0.33760198950767517, 0.2579411566257477, -0.4157366454601288, -0.7395410537719727, 0.36464187502861023, -0.44013163447380066, -0.022027378901839256, 0.03539373353123665, 0.6121548414230347, -0.2800716757774353, -0.44774600863456726, 0.18606966733932495, 0.2593550980091095, 0.5160359740257263, -0.048090286552906036, -1.2519330978393555, 0.1795322746038437, 0.09559163451194763, -0.6157798171043396, 0.3414771258831024, 0.4358002543449402, 0.06923959404230118, 0.678221583366394, 0.6631760001182556, -0.09586252272129059, 0.14948154985904694, -0.312007874250412, 0.8717837929725647, -0.5737958550453186, -0.25910934805870056, -0.7232374548912048, 0.5721430778503418, -0.08017626404762268, -0.6313719749450684, 0.42332538962364197, 0.5235068202018738, 0.9104619026184082, -0.10480930656194687, 0.36656108498573303, -0.3032095432281494, -0.11088903248310089, -0.4817288815975189, 0.7785941958427429, -0.8016476631164551, -0.05080292746424675, -0.2893672585487366, -0.6837941408157349, -0.36542361974716187, 0.8361415863037109, -0.28792837262153625, 0.46471184492111206, 0.4849030673503876, 1.0583245754241943, -0.4328968822956085, -0.14674268662929535, 0.18726474046707153, 0.12695175409317017, 0.11856202781200409, 0.44864991307258606, 0.29016003012657166, -0.8232535123825073, 0.2367507517337799, -0.7294366955757141, -0.24793344736099243, -0.21011851727962494, -0.6780495643615723, -0.9273310303688049, -0.938575804233551, -0.59166419506073, -0.6192816495895386, -0.20844601094722748, 0.9594372510910034, 1.0785490274429321, -0.7912030816078186, -0.09831231832504272, 0.047099269926548004, 0.1918441653251648, -0.4187483489513397, -0.2525022327899933, 0.6521618962287903, -0.10536535829305649, -0.6835845112800598, -0.2756544351577759, 0.024957863613963127, 0.37635907530784607, -0.00789881031960249, -0.20058603584766388, -0.27721649408340454, -0.22163762152194977, 0.3095073103904724, 0.35810741782188416, -0.6662953495979309, -0.16276715695858002, -0.17931507527828217, -0.05163026228547096, 0.4286154806613922, 0.476349413394928, -0.4897277057170868, 0.2634720802307129, 0.35525545477867126, 0.42505529522895813, 0.8371543288230896, -0.3583536148071289, 0.00811078306287527, -1.0115221738815308, 0.6577289700508118, -0.06583625823259354, 0.4439140558242798, 0.4153420627117157, -0.398458331823349, 0.5837963819503784, 0.41577374935150146, -0.46572166681289673, -0.9150431156158447, -0.12592673301696777, -1.2058030366897583, -0.1780472993850708, 0.8347998261451721, -0.335181325674057, -0.5919839143753052, 0.4981250762939453, -0.0404830202460289, 0.6381319761276245, -0.18693657219409943, 0.47620779275894165, 0.26172906160354614, -0.18603700399398804, -0.5984124541282654, -0.5887792110443115, 0.4658692479133606, 0.19587641954421997, -0.6006051898002625, -0.45369333028793335, 0.058228589594364166, 0.7376529574394226, 0.3283613622188568, 0.5646811723709106, -0.15361252427101135, 0.16439448297023773, 0.17219017446041107, 0.4826582968235016, -0.4551449120044708, -0.0697556808590889, -0.24457430839538574, 0.12141556292772293, -0.132088765501976, -0.6944540739059448 ]
timm/resmlp_12_224.fb_in1k
timm
"2023-03-27T23:12:17Z"
40,838
0
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "arxiv:2105.03404", "license:apache-2.0", "region:us" ]
image-classification
"2023-03-27T23:12:04Z"
--- tags: - image-classification - timm library_tag: timm license: apache-2.0 datasets: - imagenet-1k --- # Model card for resmlp_12_224.fb_in1k A ResMLP image classification model. Trained on ImageNet-1k by paper authors. ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 15.4 - GMACs: 3.0 - Activations (M): 5.5 - Image size: 224 x 224 - **Papers:** - ResMLP: Feedforward networks for image classification with data-efficient training: https://arxiv.org/abs/2105.03404 - **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('resmlp_12_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( 'resmlp_12_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, 196, 384) 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{touvron2021resmlp, title={ResMLP: Feedforward networks for image classification with data-efficient training}, author={Hugo Touvron and Piotr Bojanowski and Mathilde Caron and Matthieu Cord and Alaaeldin El-Nouby and Edouard Grave and Gautier Izacard and Armand Joulin and Gabriel Synnaeve and Jakob Verbeek and Herv'e J'egou}, journal={arXiv preprint arXiv:2105.03404}, 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}} } ```
[ -0.4217492341995239, -0.2693599760532379, -0.03327162563800812, 0.1561637818813324, -0.3463023006916046, -0.40818822383880615, -0.21027565002441406, -0.44002312421798706, 0.23155328631401062, 0.3387118875980377, -0.6448363065719604, -0.6644494533538818, -0.6739115715026855, -0.02241704612970352, -0.22754359245300293, 1.0398536920547485, -0.07353507727384567, 0.06867600977420807, -0.2965144217014313, -0.5314112305641174, -0.1546015590429306, -0.31502965092658997, -0.9588863253593445, -0.4947066605091095, 0.58725506067276, 0.13766203820705414, 0.5585585236549377, 0.6399412751197815, 0.6252474784851074, 0.46087583899497986, -0.11502306163311005, 0.0983901396393776, -0.3500697612762451, -0.2232983559370041, 0.2508413791656494, -0.5555347800254822, -0.3517974019050598, 0.3375183045864105, 0.7282552123069763, 0.47480225563049316, -0.045144982635974884, 0.4428148865699768, 0.11613044887781143, 0.6082752346992493, -0.2965521812438965, 0.23446018993854523, -0.404317706823349, 0.372631311416626, -0.09722448885440826, 0.12665356695652008, -0.4043303430080414, -0.5052095055580139, 0.19363826513290405, -0.5017274022102356, 0.4446021616458893, 0.029245778918266296, 1.2969578504562378, 0.16764339804649353, 0.01395684015005827, 0.05782556161284447, -0.185216024518013, 0.6678294539451599, -0.8888639211654663, 0.46592700481414795, 0.3130505383014679, 0.16579680144786835, -0.06245981529355049, -1.161158800125122, -0.6021326780319214, -0.09250067919492722, -0.23116786777973175, -0.08217563480138779, -0.27055051922798157, 0.08018535375595093, 0.25506535172462463, 0.3127632737159729, -0.5157736539840698, 0.11715327203273773, -0.503227710723877, -0.17467175424098969, 0.6416455507278442, 0.03899625316262245, 0.10973429679870605, -0.20224857330322266, -0.5234969258308411, -0.47620663046836853, -0.29510125517845154, 0.3119505047798157, 0.3691801428794861, 0.33226123452186584, -0.489177405834198, 0.2633696496486664, 0.03033134527504444, 0.6554307341575623, 0.16664867103099823, -0.34432265162467957, 0.6703150272369385, 0.0014560263371095061, -0.4332050681114197, -0.16376718878746033, 1.1054316759109497, 0.4133560359477997, 0.21995852887630463, -0.04485506936907768, -0.1646515280008316, -0.33318960666656494, -0.014146030880510807, -1.2765917778015137, -0.3960969150066376, 0.31740763783454895, -0.7338836193084717, -0.5411452651023865, 0.2904471158981323, -0.5121038556098938, -0.15869125723838806, -0.08462412655353546, 0.5361059904098511, -0.3610915541648865, -0.3898092210292816, -0.026493409648537636, -0.10638819634914398, 0.30521470308303833, 0.1997395157814026, -0.47649767994880676, 0.21166446805000305, 0.4387107789516449, 1.2322643995285034, 0.08867429196834564, -0.5491980314254761, -0.2501119375228882, -0.4803428053855896, -0.3245994448661804, 0.4991271197795868, -0.12189716845750809, -0.07958360761404037, -0.19973966479301453, 0.5153252482414246, -0.27334272861480713, -0.6554819345474243, 0.32180866599082947, -0.3639298379421234, 0.3160986304283142, 0.033478304743766785, -0.35290998220443726, -0.5311470627784729, 0.3167966306209564, -0.3938664495944977, 1.038995385169983, 0.3082660138607025, -0.9707369208335876, 0.27711695432662964, -0.318128764629364, -0.1512887179851532, -0.2904855012893677, 0.07207071036100388, -1.0882866382598877, -0.1284545660018921, 0.040836501866579056, 0.9408515691757202, -0.2058456689119339, 0.16134372353553772, -0.6736504435539246, -0.21699944138526917, 0.37476247549057007, -0.1348525434732437, 0.9503852725028992, 0.2209237515926361, -0.16211916506290436, 0.2251347303390503, -0.6650687456130981, 0.2394389808177948, 0.5544745922088623, -0.3232341408729553, -0.06291943043470383, -0.5553025603294373, 0.1978982836008072, 0.35974183678627014, 0.057786229997873306, -0.6612899303436279, 0.307528018951416, -0.21562638878822327, 0.5056228637695312, 0.7506852746009827, -0.11882180720567703, 0.3141290247440338, -0.4232448637485504, 0.3127748966217041, 0.27340617775917053, 0.34512630105018616, -0.026935352012515068, -0.6116059422492981, -0.687458336353302, -0.41160663962364197, 0.4564265310764313, 0.3611862063407898, -0.5332574248313904, 0.4916217625141144, -0.1750739961862564, -0.8815286755561829, -0.4101199805736542, 0.0728399008512497, 0.5389322638511658, 0.78065425157547, 0.3287394642829895, -0.4680080711841583, -0.4280037581920624, -0.8831532001495361, 0.05304698646068573, -0.053371965885162354, 0.12279576063156128, 0.3355153203010559, 0.6108303070068359, -0.1973305493593216, 0.6713998317718506, -0.5315264463424683, -0.2717572748661041, -0.10785800963640213, -0.027661938220262527, 0.5831732153892517, 0.7813491821289062, 0.8499778509140015, -0.6475115418434143, -0.5346754789352417, -0.1376558393239975, -0.9758597612380981, 0.11223568767309189, -0.015027312561869621, -0.25863274931907654, 0.3640787601470947, 0.13145478069782257, -0.6654535531997681, 0.6792211532592773, 0.272483766078949, -0.40676242113113403, 0.4770966172218323, -0.1404150277376175, 0.08798149228096008, -1.0855543613433838, 0.10352815687656403, 0.41697031259536743, -0.17775069177150726, -0.5127148032188416, -0.04224920645356178, 0.057889509946107864, -0.08971941471099854, -0.4458899199962616, 0.7007846832275391, -0.4623855948448181, -0.053541503846645355, -0.1615281105041504, -0.27921241521835327, 0.030456488952040672, 0.7958574891090393, 0.047529831528663635, 0.20106208324432373, 0.7490300536155701, -0.47322818636894226, 0.6033056378364563, 0.4523479640483856, -0.061969466507434845, 0.455019474029541, -0.6404086947441101, 0.14697478711605072, -0.04184838756918907, 0.35790446400642395, -1.164562702178955, -0.18378151953220367, 0.49423983693122864, -0.6736212372779846, 0.7630559802055359, -0.5683369636535645, -0.3537844717502594, -0.6707739233970642, -0.44365552067756653, 0.3313930928707123, 0.6436181664466858, -0.9167055487632751, 0.4089261591434479, 0.07724609971046448, 0.2232855260372162, -0.6637731790542603, -0.9069604873657227, -0.3739010989665985, -0.3573431968688965, -0.8146896362304688, 0.3732766807079315, 0.2184419184923172, 0.2767397463321686, 0.23956075310707092, -0.1419866532087326, -0.06953270733356476, -0.19685615599155426, 0.5909459590911865, 0.3260601758956909, -0.2920686602592468, 0.02238079532980919, -0.24060598015785217, -0.10961607843637466, 0.13945144414901733, -0.4391372501850128, 0.5382802486419678, -0.2410896271467209, -0.1000252515077591, -0.8964564204216003, -0.1829165816307068, 0.41590026021003723, -0.08984287828207016, 0.996931791305542, 0.9486345052719116, -0.49348554015159607, -0.14034625887870789, -0.41352686285972595, -0.38696667551994324, -0.5011879801750183, 0.44932544231414795, -0.2438911497592926, -0.3578028380870819, 0.9165704250335693, 0.11020389199256897, 0.18905016779899597, 0.5870649814605713, 0.1212969645857811, -0.02188318967819214, 0.725037157535553, 0.4596291184425354, 0.08797936886548996, 0.7236824035644531, -0.9788339138031006, -0.2185099720954895, -0.8150070905685425, -0.4928368330001831, -0.37113097310066223, -0.6630615592002869, -0.6583261489868164, -0.29076847434043884, 0.21660739183425903, 0.09004998207092285, -0.5160397291183472, 0.4243905544281006, -0.8618693351745605, 0.06641153246164322, 0.6308967471122742, 0.642768383026123, -0.2592330276966095, 0.3333958387374878, -0.22778627276420593, 0.04203370586037636, -0.9462444186210632, -0.11792540550231934, 1.1475932598114014, 0.5565025210380554, 0.7919779419898987, -0.20611821115016937, 0.7180473804473877, -0.22842276096343994, 0.519241988658905, -0.638307511806488, 0.5872505307197571, -0.2155066281557083, -0.42550355195999146, -0.06670237332582474, -0.51564621925354, -1.046408772468567, 0.17811219394207, -0.3034854829311371, -0.6121499538421631, 0.2688062787055969, 0.2174653857946396, -0.22658155858516693, 0.7212213277816772, -0.7647107243537903, 1.0285447835922241, -0.0776887834072113, -0.5433347225189209, 0.12063200771808624, -0.737770676612854, 0.23940758407115936, 0.1803549975156784, -0.2248298078775406, 0.02790304645895958, 0.23005445301532745, 1.1657954454421997, -0.7473531365394592, 0.9967514276504517, -0.6535839438438416, 0.34257420897483826, 0.49339374899864197, -0.15790067613124847, 0.3256148397922516, -0.029527759179472923, -0.046827513724565506, 0.44936490058898926, 0.09155765920877457, -0.35125359892845154, -0.5336897969245911, 0.6738117933273315, -0.9589342474937439, -0.28898945450782776, -0.455963134765625, -0.3554396629333496, 0.09402179718017578, 0.12129105627536774, 0.5314649939537048, 0.7777206301689148, 0.3238857686519623, 0.3522023558616638, 0.5527658462524414, -0.3982679843902588, 0.43048787117004395, -0.03599058836698532, -0.3779613673686981, -0.5993516445159912, 0.9004761576652527, 0.3385803699493408, 0.1404958814382553, 0.05613202229142189, 0.27662092447280884, -0.44168931245803833, -0.5115941166877747, -0.30001991987228394, 0.5973841547966003, -0.7721947431564331, -0.6708698868751526, -0.598633885383606, -0.5521654486656189, -0.44152623414993286, -0.053478822112083435, -0.5296188592910767, -0.3810855746269226, -0.4280293881893158, 0.09406235814094543, 0.718843936920166, 0.5145573019981384, -0.22550195455551147, 0.5648683905601501, -0.6242820620536804, 0.012560352683067322, 0.14730696380138397, 0.6285591125488281, 0.20509587228298187, -1.0452115535736084, -0.2119814157485962, -0.05833008512854576, -0.49781179428100586, -0.7392988801002502, 0.4718778133392334, 0.29659542441368103, 0.5510135889053345, 0.5416780710220337, -0.17038868367671967, 0.7375010848045349, -0.1156516894698143, 0.37381473183631897, 0.3807699978351593, -0.4524393379688263, 0.5574722290039062, -0.06926708668470383, 0.04744899645447731, 0.1454920619726181, 0.5274475812911987, -0.3885984420776367, 0.09261501580476761, -1.0568065643310547, -0.6662362217903137, 0.9871211051940918, 0.053451117128133774, 0.007759168744087219, 0.35409456491470337, 0.9316881895065308, 0.014508301392197609, 0.09752853214740753, -0.8522021174430847, -0.3578215539455414, -0.3665299713611603, -0.3331359624862671, 0.015270981937646866, 0.04885265231132507, 0.03691878169775009, -0.7203565239906311, 0.8339012861251831, -0.11092186719179153, 0.7419453263282776, 0.35604214668273926, 0.18684546649456024, -0.14076374471187592, -0.5754904747009277, 0.35223791003227234, 0.30639103055000305, -0.30984508991241455, -0.014657125808298588, 0.09806891530752182, -0.5933753848075867, 0.07800962775945663, 0.3401643633842468, -0.000029928331059636548, -0.05454787239432335, 0.5956977009773254, 0.9141993522644043, -0.039058540016412735, 0.09993197023868561, 0.4855346083641052, -0.18102534115314484, -0.46654102206230164, -0.28854164481163025, 0.1078801155090332, 0.008976924233138561, 0.5339295864105225, 0.3109550178050995, 0.37722113728523254, -0.1804414689540863, -0.1901022046804428, 0.24140506982803345, 0.5513454079627991, -0.342244416475296, -0.40065085887908936, 0.6607291102409363, -0.16071738302707672, -0.1260002702474594, 1.0082671642303467, -0.08084170520305634, -0.45552247762680054, 1.0622471570968628, 0.46127256751060486, 0.9816038012504578, -0.15751169621944427, 0.12935316562652588, 0.8450434803962708, 0.1447020173072815, -0.06315228343009949, 0.0458294115960598, 0.14558841288089752, -0.9306147694587708, 0.07148706167936325, -0.6887075304985046, 0.06239274516701698, 0.43346697092056274, -0.5607851147651672, 0.24629895389080048, -0.8098602890968323, -0.4498622417449951, 0.2267245203256607, 0.2729729115962982, -0.8107669949531555, 0.2482985258102417, 0.040666449815034866, 0.9732601642608643, -0.8267734050750732, 0.7075296640396118, 0.9318270683288574, -0.4769744277000427, -1.1345934867858887, -0.18936209380626678, -0.07623792439699173, -0.8802112936973572, 0.6974942088127136, 0.5871580839157104, 0.1806400716304779, 0.1192542240023613, -0.936616063117981, -0.6102216243743896, 1.391541600227356, 0.351685494184494, -0.09456982463598251, 0.21132473647594452, -0.17583870887756348, 0.30233457684516907, -0.40998575091362, 0.3431077301502228, 0.05471702292561531, 0.3242814242839813, 0.40797486901283264, -0.6040744781494141, 0.23439206182956696, -0.2978609800338745, 0.1391894817352295, 0.22167852520942688, -0.934603214263916, 0.9170241951942444, -0.4609159231185913, -0.14045152068138123, 0.05865483358502388, 0.7325653433799744, 0.26450321078300476, 0.31624293327331543, 0.5277495384216309, 0.8332878351211548, 0.5096153616905212, -0.3726571798324585, 0.8676416873931885, 0.03133843466639519, 0.7339044809341431, 0.5711457133293152, 0.3449040353298187, 0.5741276144981384, 0.3450317978858948, -0.42033424973487854, 0.34703442454338074, 1.1505681276321411, -0.3292727768421173, 0.45430314540863037, 0.24199867248535156, 0.09374338388442993, -0.14365585148334503, 0.14256182312965393, -0.4759286642074585, 0.4693589210510254, 0.129164457321167, -0.5939437747001648, -0.20342086255550385, 0.16414104402065277, 0.10142918676137924, -0.29391351342201233, -0.28293952345848083, 0.4867565333843231, 0.05708765611052513, -0.42852717638015747, 0.8951390385627747, 0.017039455473423004, 0.9194763898849487, -0.46266502141952515, 0.0342242605984211, -0.4405517578125, 0.43552935123443604, -0.4799101948738098, -0.848159909248352, 0.2958711087703705, -0.31353792548179626, -0.10124408453702927, 0.036767710000276566, 0.768172025680542, -0.3721732199192047, -0.5165846347808838, 0.22130395472049713, 0.17828603088855743, 0.42045608162879944, -0.01272738166153431, -1.2460061311721802, 0.04451850429177284, 0.06962171196937561, -0.6916854381561279, 0.32148846983909607, 0.3764837086200714, 0.1216067299246788, 0.8490496277809143, 0.6493164896965027, -0.11457075923681259, 0.11400530487298965, -0.2852252423763275, 0.9520845413208008, -0.42130088806152344, -0.3914840817451477, -0.7865080833435059, 0.46478578448295593, -0.05704358592629433, -0.5032845735549927, 0.5346145033836365, 0.5120469927787781, 1.0239393711090088, -0.10596728324890137, 0.37249621748924255, -0.30098432302474976, 0.12691542506217957, -0.405312716960907, 0.8309723138809204, -0.7795867323875427, -0.14652173221111298, -0.27257785201072693, -0.7285693287849426, -0.3304193317890167, 0.9324563145637512, -0.2771763503551483, 0.5224906802177429, 0.4089687764644623, 0.9854356646537781, -0.3817119002342224, -0.13426658511161804, 0.08419497311115265, 0.18547986447811127, 0.07564423233270645, 0.40814366936683655, 0.5515325665473938, -0.8013560175895691, 0.2595892548561096, -0.79481440782547, -0.2311486303806305, -0.10836007446050644, -0.7623244524002075, -1.0550334453582764, -0.8937760591506958, -0.6544424891471863, -0.6632953882217407, -0.2004757672548294, 0.9334250092506409, 1.088282823562622, -0.6973684430122375, -0.10701118409633636, 0.0348612479865551, 0.07581514865159988, -0.2529955208301544, -0.2570558488368988, 0.5764118432998657, -0.11142335832118988, -0.6310231685638428, -0.45694980025291443, -0.1496332287788391, 0.34918490052223206, -0.05013936012983322, -0.3195357322692871, -0.3206306993961334, -0.3878645896911621, 0.24862857162952423, 0.32060739398002625, -0.589445948600769, -0.15248888731002808, -0.21549081802368164, 0.002896894933655858, 0.28570428490638733, 0.28687208890914917, -0.6094969511032104, 0.2290428876876831, 0.4635443687438965, 0.5070825219154358, 0.7384663224220276, -0.1258237510919571, -0.09736565500497818, -0.9045616984367371, 0.5616055727005005, -0.1495801955461502, 0.4358398914337158, 0.4311565160751343, -0.43969035148620605, 0.7038086652755737, 0.6400701403617859, -0.5661619901657104, -0.9295684695243835, -0.2224908471107483, -0.9613690972328186, -0.17705591022968292, 0.8749192357063293, -0.48064640164375305, -0.538874626159668, 0.6455416679382324, 0.010962114669382572, 0.5733460187911987, -0.13076378405094147, 0.35069337487220764, 0.30498194694519043, -0.2441476732492447, -0.6142428517341614, -0.46702784299850464, 0.45278504490852356, 0.059573832899332047, -0.608765721321106, -0.3502650260925293, 0.08073949068784714, 0.7189720869064331, 0.25698181986808777, 0.4263954758644104, -0.08836624026298523, 0.09030038118362427, 0.0038106830324977636, 0.38443636894226074, -0.5149773955345154, -0.18187034130096436, -0.3682667315006256, -0.03090481273829937, -0.14957988262176514, -0.5981234312057495 ]
timm/res2next50.in1k
timm
"2023-04-24T00:08:47Z"
40,825
0
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "arxiv:1904.01169", "license:unknown", "region:us" ]
image-classification
"2023-04-24T00:08:28Z"
--- tags: - image-classification - timm library_name: timm license: unknown datasets: - imagenet-1k --- # Model card for res2next50.in1k A Res2Net (Multi-Scale ResNet) image classification model. Trained on ImageNet-1k by paper authors. ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 24.7 - GMACs: 4.2 - Activations (M): 13.7 - Image size: 224 x 224 - **Papers:** - Res2Net: A New Multi-scale Backbone Architecture: https://arxiv.org/abs/1904.01169 - **Dataset:** ImageNet-1k - **Original:** https://github.com/gasvn/Res2Net/ ## 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('res2next50.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( 'res2next50.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, 64, 112, 112]) # torch.Size([1, 256, 56, 56]) # torch.Size([1, 512, 28, 28]) # torch.Size([1, 1024, 14, 14]) # torch.Size([1, 2048, 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( 'res2next50.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, 2048, 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 @article{gao2019res2net, title={Res2Net: A New Multi-scale Backbone Architecture}, author={Gao, Shang-Hua and Cheng, Ming-Ming and Zhao, Kai and Zhang, Xin-Yu and Yang, Ming-Hsuan and Torr, Philip}, journal={IEEE TPAMI}, doi={10.1109/TPAMI.2019.2938758}, } ```
[ -0.4582473039627075, -0.31582871079444885, -0.049692053347826004, 0.17831780016422272, -0.27793559432029724, -0.3620081841945648, -0.2006576806306839, -0.4222480356693268, 0.29041773080825806, 0.5170475840568542, -0.48574551939964294, -0.5493482351303101, -0.6849858164787292, -0.1376393586397171, -0.12797865271568298, 0.9217153191566467, -0.0736193060874939, 0.03693375736474991, -0.22912855446338654, -0.5755412578582764, -0.15480850636959076, -0.25380992889404297, -1.012319564819336, -0.45757779479026794, 0.3574259877204895, 0.27526482939720154, 0.39431482553482056, 0.6241810917854309, 0.6037851572036743, 0.4901493191719055, -0.07604798674583435, 0.09143780916929245, -0.23001036047935486, -0.22677293419837952, 0.30206915736198425, -0.7262402176856995, -0.5042551159858704, 0.24457339942455292, 0.8344706296920776, 0.3110760450363159, 0.09445156902074814, 0.5355321764945984, 0.17114397883415222, 0.6102439761161804, -0.18428759276866913, 0.16604669392108917, -0.38652628660202026, 0.21426087617874146, -0.184086412191391, 0.1907811313867569, -0.32849323749542236, -0.4505196213722229, 0.16819605231285095, -0.4692126512527466, 0.39113524556159973, 0.10704191029071808, 1.285765290260315, 0.23811833560466766, -0.10859058797359467, 0.02320273220539093, -0.18204542994499207, 0.8897138833999634, -0.784386157989502, 0.26932328939437866, 0.30953988432884216, 0.2427152693271637, -0.04653235897421837, -1.1942037343978882, -0.6048767566680908, 0.0043744188733398914, -0.19582155346870422, -0.060259539633989334, -0.2097039818763733, -0.09713725000619888, 0.281186580657959, 0.2557658851146698, -0.4832823872566223, 0.21227756142616272, -0.594008207321167, -0.23101702332496643, 0.5331655144691467, 0.07292206585407257, 0.2929716110229492, -0.25552284717559814, -0.5527097582817078, -0.43338748812675476, -0.2998925745487213, 0.34674930572509766, 0.31135261058807373, 0.30714187026023865, -0.6601115465164185, 0.40057986974716187, 0.2018764168024063, 0.4802948534488678, -0.012664688751101494, -0.38141825795173645, 0.6264196634292603, -0.03391645848751068, -0.40861907601356506, -0.13963940739631653, 1.0903291702270508, 0.41749000549316406, 0.26058411598205566, 0.1834663450717926, -0.09371138364076614, -0.4305698871612549, -0.05680488795042038, -1.1954543590545654, -0.3639116585254669, 0.4120088219642639, -0.7173685431480408, -0.4086388349533081, 0.1771128922700882, -0.781753420829773, -0.1956818550825119, -0.020153356716036797, 0.4950782358646393, -0.37650543451309204, -0.552285373210907, 0.04259319230914116, -0.2556364834308624, 0.3221583962440491, 0.11078507453203201, -0.5493563413619995, 0.25517508387565613, 0.33093634247779846, 1.1515108346939087, 0.15587590634822845, -0.4132680892944336, -0.17213119566440582, -0.38903239369392395, -0.2485334277153015, 0.5273141860961914, -0.0676528736948967, -0.0626043900847435, -0.3329026699066162, 0.42669013142585754, -0.12517283856868744, -0.7079831957817078, 0.21440263092517853, -0.19973833858966827, 0.3628104031085968, -0.0868978202342987, -0.19783219695091248, -0.538661539554596, 0.3384668827056885, -0.5049031972885132, 1.317030906677246, 0.4568311870098114, -0.9041498899459839, 0.2197430282831192, -0.5144124031066895, -0.09056829661130905, -0.38050979375839233, 0.05513239651918411, -1.1715917587280273, -0.12466280907392502, 0.06424471735954285, 0.6093272566795349, -0.42093753814697266, -0.06249789893627167, -0.621528685092926, -0.1685364842414856, 0.3255603015422821, -0.006600412540137768, 0.9723039269447327, 0.10266028344631195, -0.38790854811668396, 0.1560567319393158, -0.5874843001365662, 0.3671324551105499, 0.5284309983253479, -0.31949087977409363, -0.009027399122714996, -0.6649394631385803, 0.32986143231391907, 0.4156481623649597, 0.14331404864788055, -0.6213549375534058, 0.2796266973018646, -0.2264918088912964, 0.5366747379302979, 0.5978909730911255, -0.1955856829881668, 0.302272230386734, -0.3731035590171814, 0.2204880565404892, 0.18769781291484833, 0.20187772810459137, -0.005521208047866821, -0.6004951596260071, -0.7889776229858398, -0.41882890462875366, 0.4181534945964813, 0.4393865168094635, -0.38007083535194397, 0.4322114586830139, -0.17073442041873932, -0.7904114723205566, -0.460880309343338, 0.07249224931001663, 0.5834740996360779, 0.5633147954940796, 0.4324447810649872, -0.4839180111885071, -0.6224400401115417, -0.9586721658706665, 0.09066262096166611, 0.015250605531036854, -0.014425312168896198, 0.39205119013786316, 0.7056124210357666, -0.11057700961828232, 0.69265216588974, -0.45562484860420227, -0.3387435972690582, -0.29549214243888855, 0.07762079685926437, 0.34107932448387146, 0.8198020458221436, 0.8880253434181213, -0.629684567451477, -0.4462403357028961, -0.1699504852294922, -0.9609822630882263, 0.22929902374744415, -0.10898741334676743, -0.15148745477199554, 0.3180244266986847, 0.12739969789981842, -0.519763708114624, 0.5367226600646973, 0.26556119322776794, -0.3217713534832001, 0.502988874912262, -0.26970577239990234, 0.19328084588050842, -1.343360185623169, 0.15516607463359833, 0.41676461696624756, -0.07098089903593063, -0.4329831004142761, 0.02139921672642231, 0.11961138993501663, -0.062459249049425125, -0.5195735096931458, 0.7193393707275391, -0.565674364566803, -0.3576030135154724, -0.20535734295845032, -0.21423564851284027, 0.13923430442810059, 0.7220212817192078, 0.02981235273182392, 0.3456684648990631, 0.734395444393158, -0.41072431206703186, 0.5700363516807556, 0.37876227498054504, -0.21059158444404602, 0.44834035634994507, -0.6869429349899292, 0.17687681317329407, 0.0223306305706501, 0.3869297206401825, -1.1636996269226074, -0.2578302025794983, 0.2200377881526947, -0.5838087201118469, 0.6829106211662292, -0.522351861000061, -0.44540712237358093, -0.6893052458763123, -0.5071930885314941, 0.4654551148414612, 0.7393025755882263, -0.7157124876976013, 0.34315192699432373, 0.2762698531150818, 0.26696884632110596, -0.541111171245575, -0.988208532333374, -0.21389950811862946, -0.46474912762641907, -0.725365400314331, 0.2802391052246094, 0.2490706443786621, 0.13514234125614166, 0.14665716886520386, -0.0589485764503479, -0.19689270853996277, -0.20429107546806335, 0.5753829479217529, 0.2911718785762787, -0.31958454847335815, -0.054074883460998535, -0.2851848304271698, -0.13302768766880035, 0.10821868479251862, -0.3794804811477661, 0.6492652893066406, -0.2953450083732605, -0.11506547778844833, -1.0210654735565186, -0.14690303802490234, 0.5732078552246094, -0.10303904116153717, 0.8287864923477173, 1.1747452020645142, -0.5642693638801575, 0.02605930157005787, -0.40512391924858093, -0.40087196230888367, -0.4777604639530182, 0.5752751231193542, -0.41847455501556396, -0.4293207824230194, 0.8628225326538086, -0.16750513017177582, 0.13734786212444305, 0.6643719673156738, 0.23961251974105835, -0.10921423137187958, 0.6523095965385437, 0.5717352628707886, 0.22745470702648163, 0.578509509563446, -1.0866795778274536, -0.2041061669588089, -1.069374680519104, -0.658787190914154, -0.5057343244552612, -0.7522909641265869, -0.651544451713562, -0.4184732437133789, 0.4182278513908386, 0.20829102396965027, -0.49185487627983093, 0.605407178401947, -0.8279945850372314, 0.014277337118983269, 0.6445727944374084, 0.5553128123283386, -0.4660321772098541, 0.32156139612197876, -0.19274552166461945, -0.0753188207745552, -0.7110483050346375, -0.2101733386516571, 1.1598551273345947, 0.611080527305603, 0.6205554604530334, -0.08089429885149002, 0.6134482026100159, -0.2569006085395813, 0.2364286184310913, -0.5773450136184692, 0.5278993844985962, -0.2034805715084076, -0.43654218316078186, -0.2098866105079651, -0.33351320028305054, -1.0264490842819214, 0.1280476301908493, -0.3162095844745636, -0.7626058459281921, 0.16553497314453125, 0.14995835721492767, -0.2297300547361374, 0.9327147603034973, -0.7885123491287231, 0.9455687999725342, -0.10598942637443542, -0.4274289011955261, -0.02353379875421524, -0.6810597777366638, 0.3198854923248291, 0.11031972616910934, -0.1777106523513794, -0.04012494534254074, 0.10269677639007568, 1.1541250944137573, -0.5665942430496216, 0.9082167148590088, -0.4910280406475067, 0.3765077590942383, 0.5435693860054016, -0.1695474088191986, 0.36998438835144043, -0.01237255334854126, -0.18386881053447723, 0.38476887345314026, 0.01408778503537178, -0.5192468166351318, -0.5519508123397827, 0.5945232510566711, -1.0161099433898926, -0.25487977266311646, -0.30686309933662415, -0.455670028924942, 0.15943533182144165, 0.06996111571788788, 0.5474961996078491, 0.7839772701263428, 0.3381311595439911, 0.402164101600647, 0.6001933813095093, -0.45937681198120117, 0.48557519912719727, -0.10614314675331116, -0.15204131603240967, -0.5803123116493225, 0.8154317736625671, 0.23567023873329163, 0.18996551632881165, 0.10563653707504272, 0.17857497930526733, -0.5637184381484985, -0.4877415597438812, -0.38985520601272583, 0.41120681166648865, -0.589832067489624, -0.49574750661849976, -0.6338621377944946, -0.4494345784187317, -0.5261505842208862, -0.016121061518788338, -0.6315397024154663, -0.4344077706336975, -0.33284834027290344, 0.2763736844062805, 0.686735987663269, 0.6319109201431274, -0.16868086159229279, 0.5277732014656067, -0.56620854139328, 0.05199192464351654, 0.15529784560203552, 0.5134028196334839, -0.054788149893283844, -1.006671667098999, -0.2277708500623703, -0.08114007115364075, -0.38916969299316406, -0.6402040123939514, 0.411705881357193, 0.13849252462387085, 0.43672436475753784, 0.4004363417625427, -0.20918533205986023, 0.7460271716117859, 0.0011476698564365506, 0.5969820022583008, 0.45163533091545105, -0.5376180410385132, 0.6267860531806946, 0.10163474082946777, 0.15837788581848145, 0.008157326839864254, 0.3073253631591797, -0.34573590755462646, 0.04496140405535698, -0.9597952961921692, -0.6946730017662048, 0.9830955266952515, 0.03977198153734207, -0.0004831472469959408, 0.41215965151786804, 0.8273930549621582, -0.013712076470255852, -0.03141167014837265, -0.7202645540237427, -0.4330828785896301, -0.3874218463897705, -0.18057718873023987, 0.07776772230863571, -0.22161702811717987, -0.05543985962867737, -0.5835055112838745, 0.6454631686210632, -0.11142201721668243, 0.7861150503158569, 0.2666524648666382, 0.1593099981546402, -0.038335952907800674, -0.4288427233695984, 0.5325561761856079, 0.2348451465368271, -0.3066677153110504, 0.07455954700708389, 0.3309378921985626, -0.6272598505020142, 0.10467953234910965, 0.011353379115462303, 0.15843310952186584, -0.07698230445384979, 0.5905064940452576, 0.9455426335334778, 0.012267227284610271, 0.10073278099298477, 0.32870709896087646, -0.09189523756504059, -0.4632894694805145, -0.2926749587059021, 0.10792408883571625, 0.030887505039572716, 0.4508282542228699, 0.21003030240535736, 0.3747791051864624, -0.25320395827293396, -0.27653154730796814, 0.33757850527763367, 0.5059748888015747, -0.34478941559791565, -0.39883679151535034, 0.7110370397567749, -0.18759097158908844, -0.17593716084957123, 1.065746784210205, -0.05126280337572098, -0.4375044107437134, 1.237334966659546, 0.5747419595718384, 0.8882865309715271, -0.11626815050840378, -0.005778088234364986, 1.0113569498062134, 0.23215265572071075, -0.0508321076631546, 0.19067136943340302, 0.24956537783145905, -0.7434630990028381, 0.1212986633181572, -0.6572803258895874, 0.07426020503044128, 0.457057386636734, -0.6553122997283936, 0.3304844796657562, -0.7427265048027039, -0.4425691068172455, 0.12696364521980286, 0.40911683440208435, -0.8496830463409424, 0.3092227578163147, -0.08446390926837921, 0.9922062158584595, -0.8037947416305542, 0.9158918261528015, 0.9191110730171204, -0.4911348223686218, -1.116363763809204, -0.08380076289176941, 0.11353838443756104, -1.012948751449585, 0.6574333906173706, 0.49498072266578674, 0.2672852575778961, 0.07351252436637878, -0.6303057670593262, -0.7044620513916016, 1.513548731803894, 0.44056978821754456, -0.08424046635627747, 0.274153470993042, 0.03075217455625534, 0.27429866790771484, -0.4691937565803528, 0.5921211242675781, 0.19482210278511047, 0.4652310907840729, 0.35262733697891235, -0.7791041731834412, 0.2730327546596527, -0.25815653800964355, 0.18087740242481232, 0.22920964658260345, -0.9521939158439636, 0.9982284903526306, -0.6531264185905457, -0.10044751316308975, 0.0693042129278183, 0.6633968353271484, 0.27646389603614807, 0.17610199749469757, 0.5752878785133362, 0.9394387602806091, 0.5816560983657837, -0.36836323142051697, 0.8150538802146912, -0.020159194245934486, 0.7132698893547058, 0.6532752513885498, 0.30115512013435364, 0.6347846984863281, 0.2803167998790741, -0.32123711705207825, 0.4820931851863861, 1.1824198961257935, -0.3961137533187866, 0.2983003258705139, 0.2829286456108093, -0.026225898414850235, -0.09530719369649887, 0.0653383657336235, -0.5534915328025818, 0.5594073534011841, 0.22466842830181122, -0.4969072639942169, -0.3105716407299042, 0.09921850264072418, 0.04926376789808273, -0.30044442415237427, -0.15896575152873993, 0.48194757103919983, -0.002425685292109847, -0.3427833020687103, 0.81776362657547, 0.1523604840040207, 0.7907971739768982, -0.3614087998867035, -0.004986361600458622, -0.34892091155052185, 0.2813531756401062, -0.40559718012809753, -0.983454167842865, 0.3938062787055969, -0.3017832338809967, -0.052864447236061096, 0.028860993683338165, 0.6107974052429199, -0.3603876233100891, -0.3910301923751831, 0.23080860078334808, 0.1854030042886734, 0.6463038921356201, 0.06045548617839813, -1.2857506275177002, 0.15244649350643158, 0.06618951261043549, -0.6692488193511963, 0.4281225800514221, 0.4023841321468353, 0.023114444687962532, 0.8039246797561646, 0.5704891085624695, -0.13551513850688934, 0.012392410077154636, -0.26383042335510254, 0.7722927927970886, -0.4865438938140869, -0.24660852551460266, -0.7614763379096985, 0.6558071970939636, -0.14224927127361298, -0.5955563187599182, 0.46494799852371216, 0.7214176654815674, 0.7921844720840454, 0.005723824258893728, 0.4926190972328186, -0.31007930636405945, -0.017278771847486496, -0.37909260392189026, 0.7067661881446838, -0.7686343789100647, -0.08823855221271515, 0.02236480638384819, -0.7141229510307312, -0.2632455825805664, 0.6034544110298157, -0.13435600697994232, 0.3967169225215912, 0.5432426333427429, 1.032127022743225, -0.3158216178417206, -0.3169163167476654, 0.08570179343223572, 0.1067449152469635, 0.09944035112857819, 0.5131316184997559, 0.17314845323562622, -0.8928459882736206, 0.4087402820587158, -0.6161295771598816, -0.2348240315914154, -0.10516718029975891, -0.5698534846305847, -1.0209816694259644, -0.9550594687461853, -0.5786905884742737, -0.8230643272399902, -0.3115769624710083, 0.84659343957901, 1.1622453927993774, -0.723110020160675, -0.14867788553237915, 0.09352641552686691, 0.19516794383525848, -0.23181405663490295, -0.21640703082084656, 0.7225598692893982, -0.21348965167999268, -0.8536806702613831, -0.35814109444618225, 0.021075500175356865, 0.37764817476272583, -0.09997855126857758, -0.2570574879646301, -0.12335121631622314, -0.2849022448062897, 0.19905157387256622, 0.3934539556503296, -0.7040755152702332, -0.2479763627052307, -0.30454790592193604, -0.18806302547454834, 0.3073881268501282, 0.3814128041267395, -0.5581434369087219, 0.26587775349617004, 0.45559030771255493, 0.36413946747779846, 0.7961800694465637, -0.32020342350006104, -0.04768005758523941, -0.8710278868675232, 0.5833510160446167, -0.277057945728302, 0.44105851650238037, 0.30961689352989197, -0.3427453339099884, 0.6378328800201416, 0.5468027591705322, -0.43636471033096313, -0.8906282186508179, -0.06979873031377792, -1.0126444101333618, -0.17833690345287323, 0.9047247767448425, -0.44662630558013916, -0.49833256006240845, 0.43817853927612305, -0.008398402482271194, 0.6422434449195862, 0.003782221581786871, 0.4796936810016632, 0.2381739467382431, -0.22424902021884918, -0.6793131828308105, -0.5183496475219727, 0.4582167863845825, 0.08986027538776398, -0.7109000086784363, -0.46030890941619873, -0.15131904184818268, 0.7834011912345886, 0.3049928843975067, 0.40658536553382874, -0.21431013941764832, 0.08333761990070343, 0.2054958939552307, 0.5818371772766113, -0.43660175800323486, -0.11038007587194443, -0.29342180490493774, 0.14560233056545258, -0.1639699786901474, -0.684417188167572 ]
MickyMike/VulRepair
MickyMike
"2022-03-17T15:24:56Z"
40,809
3
transformers
[ "transformers", "pytorch", "t5", "text2text-generation", "license:mit", "autotrain_compatible", "endpoints_compatible", "text-generation-inference", "region:us" ]
text2text-generation
"2022-03-17T11:36:46Z"
--- license: mit ---
[ -0.12853388488292694, -0.18616782128810883, 0.6529127359390259, 0.4943625330924988, -0.19319313764572144, 0.23607465624809265, 0.36071982979774475, 0.05056332051753998, 0.5793652534484863, 0.740013837814331, -0.6508103013038635, -0.2378396987915039, -0.710224986076355, -0.04782581701874733, -0.3894752264022827, 0.8470761775970459, -0.09598272293806076, 0.024004854261875153, 0.047120071947574615, -0.14317826926708221, -0.6121037602424622, -0.04771740734577179, -1.0524537563323975, -0.06787490844726562, 0.3002279996871948, 0.5120972990989685, 0.8275896310806274, 0.39602896571159363, 0.5030564069747925, 1.7515558004379272, -0.08836919069290161, -0.22754427790641785, -0.45892032980918884, 0.4223068356513977, -0.33277371525764465, -0.42133718729019165, -0.2624166011810303, -0.07449338585138321, 0.32380399107933044, 0.790371298789978, -0.38104110956192017, 0.19328099489212036, -0.22438454627990723, 1.008224368095398, -0.8202074766159058, 0.22630876302719116, -0.16698351502418518, 0.14053204655647278, 0.042308706790208817, -0.14591927826404572, -0.1326323002576828, -0.6440033912658691, 0.06469469517469406, -0.899596095085144, 0.1027495265007019, -0.04461126774549484, 0.8789561986923218, 0.21909058094024658, -0.5102370977401733, -0.0459773913025856, -0.6883594989776611, 1.0972508192062378, -0.17556026577949524, 0.7615712881088257, 0.4507811963558197, 0.45288562774658203, -0.5849329829216003, -1.178217887878418, -0.4441864490509033, -0.13579002022743225, 0.14722809195518494, 0.30556100606918335, -0.3453029692173004, -0.022343844175338745, 0.10801105946302414, 0.5610314011573792, -0.5003758072853088, -0.311959445476532, -0.9579929113388062, -0.18164916336536407, 0.6820483207702637, 0.319308340549469, 0.834044337272644, 0.1873151659965515, -0.7347195744514465, 0.12866291403770447, -1.3239703178405762, 0.07650735974311829, 0.6465023756027222, 0.239467591047287, -0.554598867893219, 0.8594784736633301, -0.28587982058525085, 0.626249372959137, 0.2728465497493744, -0.1164526641368866, 0.2784252464771271, -0.23030735552310944, -0.2735062837600708, 0.033087607473134995, 0.34597301483154297, 0.8204491138458252, 0.16248634457588196, -0.019984982907772064, -0.22123965620994568, 0.0020717978477478027, 0.2684449553489685, -0.7935096025466919, -0.4712669551372528, 0.1926696002483368, -0.558952808380127, -0.0910850465297699, 0.4327022135257721, -1.0976827144622803, -0.4812980592250824, -0.1879846155643463, 0.05468139797449112, -0.5451693534851074, -0.3697946071624756, 0.07273250073194504, -0.79254150390625, -0.1243419200181961, 0.570950984954834, -0.6230252981185913, 0.43974608182907104, 0.533625602722168, 0.7861635684967041, 0.2330387681722641, -0.23613610863685608, -0.6695019602775574, 0.48848265409469604, -0.8661867380142212, 0.36860740184783936, -0.3073781132698059, -0.8298640251159668, -0.09631050378084183, 0.5393159985542297, 0.20664852857589722, -0.6653256416320801, 0.7074045538902283, -0.5496984720230103, -0.07806532829999924, -0.4308285415172577, -0.2432200014591217, 0.17460417747497559, 0.11115431040525436, -0.6238909363746643, 0.9402233362197876, 0.5551108121871948, -0.584109902381897, 0.31701239943504333, -0.4869506359100342, -0.6865583658218384, 0.26748135685920715, -0.008750975131988525, -0.047152332961559296, 0.3279528021812439, -0.15983973443508148, -0.0020511597394943237, 0.10505761206150055, 0.008299741894006729, -0.21891699731349945, -0.4786304235458374, 0.06349936127662659, 0.151650071144104, 1.25368332862854, 0.4083622097969055, -0.3771882951259613, -0.13140122592449188, -1.0526149272918701, 0.025432661175727844, 0.0505015105009079, -0.42306768894195557, -0.2504565119743347, -0.14882194995880127, -0.20381587743759155, 0.4307260811328888, 0.2118472456932068, -0.813115119934082, 0.22643625736236572, -0.2064024657011032, 0.364496648311615, 0.8222091794013977, 0.2703101634979248, 0.39760565757751465, -0.6625286340713501, 0.6563138365745544, 0.2076188325881958, 0.49590179324150085, 0.35404202342033386, -0.3845822811126709, -0.9641586542129517, -0.442161500453949, -0.10117404907941818, 0.2975531220436096, -0.7744957804679871, 0.5847322940826416, 0.012979604303836823, -0.5836705565452576, -0.4465281367301941, -0.15488101541996002, 0.2755330502986908, -0.06606576591730118, 0.03334902226924896, -0.4049779176712036, -0.7394417524337769, -1.0127898454666138, -0.13788150250911713, -0.5021388530731201, -0.21892830729484558, 0.3160586357116699, 0.2617739737033844, -0.34290042519569397, 0.7610747814178467, -0.6059278249740601, -0.704064130783081, -0.13973554968833923, -0.0995984673500061, 0.6187719702720642, 0.9297672510147095, 0.749138355255127, -0.7224893569946289, -0.8973818421363831, -0.056230708956718445, -0.5420039892196655, -0.020044349133968353, 0.038149889558553696, -0.18260693550109863, -0.10514980554580688, 0.22352531552314758, -0.6100803017616272, 0.8851073980331421, 0.43224984407424927, -0.681546688079834, 0.5210590958595276, -0.4444413483142853, 0.6073803901672363, -0.8642839193344116, -0.2911490201950073, -0.16823577880859375, -0.1976117193698883, -0.7090160846710205, 0.19411544501781464, -0.3002234101295471, -0.33029863238334656, -0.7474032044410706, 0.5274897813796997, -0.9497010707855225, -0.18781527876853943, -0.33672773838043213, -0.03423111140727997, 0.25807833671569824, 0.19490505754947662, -0.23560254275798798, 0.8900529742240906, 0.9160482287406921, -0.7121306657791138, 0.5487277507781982, 0.3930906653404236, -0.1920013427734375, 0.7131237387657166, -0.3887738585472107, 0.05161993205547333, -0.12344931066036224, 0.14374595880508423, -1.126388430595398, -0.561158299446106, 0.13677382469177246, -0.712703287601471, 0.17686958611011505, -0.16556859016418457, -0.09428537636995316, -0.6608465313911438, -0.33806395530700684, 0.25910091400146484, 0.48612290620803833, -0.47969940304756165, 0.6188148260116577, 0.5728040337562561, 0.02651876211166382, -0.5307406783103943, -0.7206818461418152, 0.20418110489845276, 0.039646461606025696, -0.5569695830345154, 0.3011690080165863, 0.006543457508087158, -0.6622446775436401, -0.371124804019928, -0.26354190707206726, -0.6043857336044312, -0.2267974615097046, 0.7826986312866211, 0.1199423298239708, -0.09012264013290405, -0.20310267806053162, -0.3199536204338074, -0.06167525798082352, 0.30487415194511414, -0.07575298100709915, 0.7232834696769714, -0.33623749017715454, -0.17850083112716675, -0.887734055519104, 0.652754545211792, 0.9970465302467346, 0.09446714073419571, 0.806644082069397, 0.46324217319488525, -0.35647475719451904, -0.1304660439491272, -0.3535459041595459, -0.15120601654052734, -0.685774564743042, -0.1806798279285431, -0.5322476625442505, -0.5411434769630432, 0.40530654788017273, 0.10101459175348282, -0.0021042972803115845, 0.5167046785354614, 0.2533605694770813, -0.28806859254837036, 0.7550324201583862, 1.034340739250183, 0.1391797959804535, 0.3602915108203888, -0.2854715585708618, 0.6341594457626343, -0.8329949378967285, -0.34052175283432007, -0.4548071026802063, -0.2563585042953491, -0.31214389204978943, -0.10750849545001984, 0.5791022181510925, 0.2818215489387512, -0.4463467597961426, 0.1250680536031723, -0.5994209051132202, 0.6587361693382263, 0.6273988485336304, 0.5719727873802185, 0.1997303068637848, -0.46199458837509155, 0.19982971251010895, 0.04816687852144241, -0.45745599269866943, -0.4009109139442444, 0.7711143493652344, 0.2399624139070511, 0.8364022374153137, 0.20927050709724426, 0.4957774877548218, 0.33375421166419983, 0.2528058588504791, -0.6318977475166321, 0.2009797990322113, -0.22282809019088745, -1.245961308479309, -0.206426739692688, -0.16551318764686584, -1.0080583095550537, -0.11792082339525223, -0.18288995325565338, -0.8406620025634766, 0.2665729820728302, -0.19225634634494781, -0.6640645265579224, 0.5206149220466614, -0.5103875398635864, 0.69347083568573, -0.23555898666381836, -0.2817087769508362, 0.11930079013109207, -0.6889920830726624, 0.5254612565040588, 0.3667147755622864, 0.29168397188186646, -0.37968993186950684, -0.3192872405052185, 0.5068994760513306, -0.881224513053894, 0.44081127643585205, -0.10564978420734406, 0.19428130984306335, 0.5358879566192627, 0.4153591990470886, 0.3823971152305603, 0.28699052333831787, -0.2459377944469452, -0.23415414988994598, 0.2250344604253769, -0.7581346035003662, -0.27754613757133484, 0.9095459580421448, -0.7519428730010986, -0.8586915731430054, -0.6954255700111389, -0.30644941329956055, 0.28865277767181396, 0.02781464159488678, 0.7154772281646729, 0.6456884145736694, -0.18821057677268982, 0.23776991665363312, 0.7208225727081299, -0.0146945184096694, 0.7235562801361084, 0.29411184787750244, -0.4056646227836609, -0.6169787645339966, 0.7182320356369019, 0.2627044916152954, 0.05162655562162399, 0.028327951207756996, 0.3058736026287079, -0.17546698451042175, -0.15078596770763397, -0.6318323612213135, -0.06395323574542999, -0.7465729117393494, -0.0927949845790863, -0.7541396617889404, -0.2507742643356323, -0.7114590406417847, -0.8068137764930725, -0.7080163955688477, -0.45604395866394043, -0.43011948466300964, -0.23352204263210297, 0.5163108706474304, 1.1627086400985718, -0.2613152861595154, 0.8011051416397095, -0.8900954723358154, 0.41936296224594116, 0.4969540238380432, 0.7519731521606445, -0.11061006784439087, -0.6746935844421387, -0.07836239039897919, -0.5338755249977112, -0.29485058784484863, -1.0156972408294678, 0.31774646043777466, -0.03688591718673706, 0.40537136793136597, 0.42938894033432007, 0.25190269947052, 0.49392756819725037, -0.30073118209838867, 1.1130688190460205, 0.7274302244186401, -0.803381085395813, 0.519527792930603, -0.7635002136230469, 0.16122324764728546, 0.9363659620285034, 0.54477459192276, -0.4417075514793396, -0.15113934874534607, -1.025976538658142, -0.843137264251709, 0.5963036417961121, 0.15439945459365845, 0.016843896359205246, 0.01821417547762394, 0.03168272227048874, 0.29466384649276733, 0.3591304123401642, -0.7847291231155396, -0.8240220546722412, -0.13851122558116913, 0.25803306698799133, 0.31456053256988525, -0.1648542582988739, -0.3003871440887451, -0.611615777015686, 0.8711391091346741, 0.18286482989788055, 0.3546231985092163, 0.12073354423046112, 0.04369349032640457, -0.35506919026374817, 0.14787021279335022, 0.5522999167442322, 1.2529057264328003, -0.40983331203460693, 0.3673911392688751, 0.1751260608434677, -0.6540069580078125, 0.6494997143745422, -0.3036349415779114, -0.021784601733088493, 0.6203135251998901, 0.17760884761810303, 0.28528398275375366, 0.315599262714386, -0.3621427118778229, 0.6047801971435547, -0.029422052204608917, -0.17758512496948242, -0.7005696296691895, 0.15866968035697937, 0.029350608587265015, 0.27507954835891724, 0.4392024278640747, 0.24443313479423523, 0.08246771991252899, -1.0602877140045166, 0.5711055397987366, 0.24493910372257233, -0.8676618337631226, -0.3011006712913513, 0.7047957181930542, 0.4075389802455902, -0.47599563002586365, 0.38749054074287415, 0.012702330946922302, -0.6710241436958313, 0.5987741351127625, 0.5510413646697998, 0.7569674253463745, -0.4702427089214325, 0.3088020086288452, 0.6245602965354919, 0.06711331009864807, 0.20550549030303955, 0.6923202872276306, 0.03149382025003433, -0.44738656282424927, 0.23022446036338806, -0.5986733436584473, -0.1468990594148636, 0.13735318183898926, -0.8047426342964172, 0.351533442735672, -0.9312615394592285, -0.24089956283569336, 0.08751589059829712, 0.11761097609996796, -0.6130945086479187, 0.6674696207046509, -0.008524954319000244, 0.9280490875244141, -0.8549083471298218, 0.9626278281211853, 0.8559581637382507, -0.31830817461013794, -0.7709448337554932, -0.33556753396987915, 0.02013934776186943, -0.6660526990890503, 0.7108278274536133, -0.18973003327846527, -0.41207411885261536, -0.09323947876691818, -0.622982919216156, -1.0003730058670044, 0.030618250370025635, 0.017415650188922882, -0.4625031054019928, 0.4454794228076935, -0.5157257318496704, 0.3289681673049927, -0.19169732928276062, 0.30509495735168457, 0.7719469666481018, 0.7958452701568604, 0.22960808873176575, -0.6354780197143555, -0.4466685652732849, -0.010276071727275848, -0.16682815551757812, 0.4545809030532837, -1.0710972547531128, 0.967736542224884, -0.4652574360370636, -0.34733209013938904, 0.2706642150878906, 0.797762393951416, 0.2538500428199768, 0.3524126708507538, 0.6219537258148193, 0.9016807079315186, 0.36450111865997314, -0.31178343296051025, 0.7276745438575745, 0.2426338493824005, 0.4152539074420929, 0.7364203333854675, -0.22712187469005585, 0.5403846502304077, 0.8906413316726685, -0.786162257194519, 0.5381765365600586, 0.7879031896591187, 0.16047371923923492, 0.7758157253265381, 0.5944145917892456, -0.611952543258667, -0.1185941994190216, -0.1464141309261322, -0.6171560287475586, 0.1979752480983734, 0.052926212549209595, -0.11974738538265228, -0.2846010625362396, -0.13567376136779785, 0.12295057624578476, 0.2836454212665558, -0.5959328413009644, 0.606866717338562, 0.34341585636138916, -0.6328282356262207, 0.21025103330612183, -0.25779569149017334, 0.6709501147270203, -0.5978154540061951, 0.02733636647462845, -0.226993590593338, 0.41810402274131775, -0.4618742763996124, -1.007582426071167, 0.47138404846191406, -0.2920241355895996, -0.40551304817199707, -0.26942431926727295, 0.8072363138198853, -0.22133907675743103, -0.5572860240936279, 0.37486034631729126, 0.13466592133045197, 0.41473662853240967, 0.40145981311798096, -0.548729419708252, 0.047790080308914185, 0.13760165870189667, -0.20061805844306946, 0.3601190149784088, 0.2973729372024536, 0.25488772988319397, 0.7100128531455994, 0.5052477717399597, 0.22198708355426788, 0.25694364309310913, -0.18668605387210846, 0.8387458324432373, -0.9102796316146851, -0.8167635202407837, -0.9497333765029907, 0.3849896192550659, 0.025727711617946625, -0.880144476890564, 0.7920305728912354, 0.7652608156204224, 0.5113964080810547, -0.4877890348434448, 0.4755283296108246, -0.326479434967041, 0.5047136545181274, -0.13870958983898163, 1.001089096069336, -0.760762631893158, -0.29587265849113464, -0.030554059892892838, -0.9216439723968506, -0.2533753216266632, 0.5375741720199585, 0.1540832668542862, -0.14608067274093628, 0.4385907053947449, 0.44216376543045044, 0.022173406556248665, 0.25223150849342346, 0.32861006259918213, 0.06042787432670593, 0.14508451521396637, 0.5510438680648804, 1.0931141376495361, -0.43394410610198975, 0.18694786727428436, -0.4923475384712219, -0.4536249041557312, -0.4153490662574768, -0.9548057913780212, -0.6640313863754272, -0.48185449838638306, -0.2973935008049011, -0.5915579199790955, 0.11726461350917816, 0.9300885796546936, 0.9018137454986572, -0.6256728172302246, -0.41243645548820496, 0.25713539123535156, 0.30293411016464233, -0.2295418381690979, -0.146267831325531, 0.2736492455005646, -0.006407544948160648, -0.7211178541183472, 0.3930943012237549, 0.807976245880127, 0.3887130320072174, 0.08444006741046906, -0.07217127084732056, -0.4407080411911011, 0.026101574301719666, 0.5373561382293701, 0.5729561448097229, -0.6281182169914246, -0.4099644422531128, -0.5328317880630493, -0.21386730670928955, 0.15529435873031616, 0.48077550530433655, -0.5166378617286682, 0.32661110162734985, 0.8128959536552429, 0.17017659544944763, 0.7187885642051697, -0.0022492259740829468, 0.6678642630577087, -0.8970246315002441, 0.4446259140968323, 0.3953385353088379, 0.5681870579719543, 0.08998038619756699, -0.7339164614677429, 0.9820241928100586, 0.49674350023269653, -0.6334057450294495, -1.0034242868423462, 0.03079957515001297, -1.193113923072815, -0.3788175582885742, 0.9890843629837036, -0.09595765173435211, -0.9597458839416504, -0.36448943614959717, -0.3677716851234436, 0.07989637553691864, -0.33809733390808105, 0.35498204827308655, 0.8268195986747742, -0.2538071274757385, -0.2204185128211975, -0.9505581855773926, 0.4752943515777588, 0.3102525472640991, -0.5886632204055786, -0.05114369094371796, 0.329391211271286, 0.45236870646476746, 0.3009701371192932, 0.5239557027816772, 0.10428227484226227, 0.8970529437065125, 0.25200390815734863, 0.30491405725479126, -0.04526621103286743, -0.590078592300415, -0.0160664189606905, 0.2621477246284485, 0.04487839341163635, -0.6869441270828247 ]
timm/gernet_l.idstcv_in1k
timm
"2023-03-22T07:15:42Z"
40,631
0
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "arxiv:2006.14090", "license:apache-2.0", "region:us" ]
image-classification
"2023-03-22T07:15:08Z"
--- tags: - image-classification - timm library_tag: timm license: apache-2.0 datasets: - imagenet-1k --- # Model card for gernet_l.idstcv_in1k A GENet (GPU-Efficient-Networks) image classification model. Trained on ImageNet-1k by paper authors. 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). BYOBNet allows configuration of: * block / stage layout * 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): 31.1 - GMACs: 4.6 - Activations (M): 8.0 - Image size: 256 x 256 - **Papers:** - Neural Architecture Design for GPU-Efficient Networks: https://arxiv.org/abs/2006.14090 - **Dataset:** ImageNet-1k - **Original:** https://github.com/idstcv/GPU-Efficient-Networks ## 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('gernet_l.idstcv_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( 'gernet_l.idstcv_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, 128, 64, 64]) # torch.Size([1, 192, 32, 32]) # torch.Size([1, 640, 16, 16]) # torch.Size([1, 2560, 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( 'gernet_l.idstcv_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, 2560, 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 @misc{lin2020neural, title={Neural Architecture Design for GPU-Efficient Networks}, author={Ming Lin and Hesen Chen and Xiuyu Sun and Qi Qian and Hao Li and Rong Jin}, year={2020}, eprint={2006.14090}, archivePrefix={arXiv}, primaryClass={cs.CV} } ```
[ -0.5066439509391785, -0.5787705183029175, 0.09034190326929092, 0.09403188526630402, -0.33171090483665466, -0.2790687084197998, -0.23889252543449402, -0.40308433771133423, 0.15112048387527466, 0.2722412347793579, -0.3939710855484009, -0.7532074451446533, -0.6324955224990845, -0.29423800110816956, -0.1798073798418045, 1.0521348714828491, -0.0906951054930687, 0.001971972407773137, -0.2826770544052124, -0.5680896043777466, -0.09150899201631546, -0.335679829120636, -0.8678064942359924, -0.6283144354820251, 0.2903761863708496, 0.09006160497665405, 0.6509996652603149, 0.6475310921669006, 0.5173781514167786, 0.4617511034011841, -0.21474340558052063, -0.02522888407111168, -0.18531177937984467, -0.3380047082901001, 0.3466956317424774, -0.44928309321403503, -0.45503389835357666, 0.19931887090206146, 0.6750478148460388, 0.35325372219085693, 0.0013150101294741035, 0.3747517168521881, 0.2862989008426666, 0.48861148953437805, -0.16349101066589355, 0.12086760252714157, -0.41691339015960693, 0.13654695451259613, -0.17764443159103394, 0.1407577395439148, -0.25357288122177124, -0.5020408034324646, 0.24340146780014038, -0.49859511852264404, 0.46210798621177673, -0.0703650414943695, 1.3591004610061646, 0.18262143433094025, 0.04096302017569542, -0.10870745033025742, -0.28736546635627747, 0.7208844423294067, -0.8032894134521484, 0.12516920268535614, 0.16315579414367676, 0.09915942698717117, -0.07373496145009995, -0.9769809246063232, -0.45740005373954773, -0.18211333453655243, -0.26973405480384827, -0.026780547574162483, -0.26373666524887085, 0.11439225822687149, 0.3777953088283539, 0.4511411488056183, -0.5757891535758972, 0.05236520990729332, -0.5078979730606079, -0.13466058671474457, 0.5436607599258423, -0.003897956572473049, 0.43811947107315063, -0.2780323922634125, -0.576591432094574, -0.3392612338066101, -0.37284964323043823, 0.3072860836982727, 0.36405467987060547, 0.16004996001720428, -0.6330418586730957, 0.29137587547302246, 0.203864187002182, 0.5257849097251892, -0.006492110900580883, -0.23864848911762238, 0.5719860196113586, 0.03140777722001076, -0.5487725138664246, -0.05719655379652977, 1.1397719383239746, 0.24233265221118927, 0.23029914498329163, -0.04560475796461105, -0.10147233307361603, -0.15969055891036987, -0.12119302153587341, -1.2040541172027588, -0.47328081727027893, 0.3604806661605835, -0.5938404202461243, -0.4838481545448303, 0.13165228068828583, -0.6291506290435791, -0.0674092099070549, 0.018820298835635185, 0.6582733988761902, -0.5870301723480225, -0.3362390100955963, 0.008622769266366959, -0.19718798995018005, 0.26436787843704224, 0.1529814451932907, -0.6783294081687927, 0.34692564606666565, 0.31556645035743713, 1.1862858533859253, 0.07329286634922028, -0.4312411844730377, -0.2367725670337677, -0.3788723349571228, -0.2389756441116333, 0.4047480821609497, -0.13106700778007507, -0.26890432834625244, -0.36347514390945435, 0.25074106454849243, -0.15704020857810974, -0.7099322080612183, 0.31170886754989624, -0.15065008401870728, 0.250053346157074, -0.07220478355884552, -0.24143077433109283, -0.5818108916282654, 0.2689012289047241, -0.3748681843280792, 1.3606384992599487, 0.3226921558380127, -0.8644299507141113, 0.29932329058647156, -0.6030782461166382, -0.2286873757839203, -0.14650234580039978, -0.13015878200531006, -1.060416579246521, -0.0500732958316803, 0.27930933237075806, 0.7383466362953186, -0.3368751108646393, 0.1182844415307045, -0.4940992593765259, -0.33158621191978455, 0.2852671146392822, -0.04325074329972267, 1.0146169662475586, 0.2165079265832901, -0.44920849800109863, 0.27878886461257935, -0.6373852491378784, 0.24426640570163727, 0.5334138870239258, -0.35304155945777893, -0.18721318244934082, -0.523827850818634, 0.19864985346794128, 0.3194597065448761, 0.019078774377703667, -0.6315861940383911, 0.31695419549942017, -0.2042686492204666, 0.6021111011505127, 0.7113537788391113, -0.16020143032073975, 0.36687174439430237, -0.33297282457351685, 0.25811147689819336, 0.22716419398784637, 0.3122089207172394, -0.00827872846275568, -0.6524149775505066, -0.7257559299468994, -0.5050467848777771, 0.3371281027793884, 0.3743142783641815, -0.4992105960845947, 0.3410762548446655, -0.17098475992679596, -0.7817823886871338, -0.4924156963825226, 0.09202142059803009, 0.5951662659645081, 0.6077669262886047, 0.32183295488357544, -0.5275071859359741, -0.2981076240539551, -0.8742349743843079, 0.060856934636831284, 0.029819680377840996, 0.059388209134340286, 0.49617114663124084, 0.692175030708313, -0.04415035620331764, 0.6178483963012695, -0.39238807559013367, -0.17004594206809998, -0.18460901081562042, 0.1995888650417328, 0.5513095855712891, 0.865025520324707, 0.8730468153953552, -0.5996496677398682, -0.5836852788925171, 0.006847703363746405, -1.0555702447891235, 0.25963959097862244, -0.08821207284927368, -0.19852793216705322, 0.19945062696933746, 0.06982854008674622, -0.6858213543891907, 0.6064459085464478, 0.2579604685306549, -0.28419551253318787, 0.43940743803977966, -0.39294037222862244, 0.25784608721733093, -1.1245313882827759, 0.16996881365776062, 0.47127676010131836, -0.12483539432287216, -0.5270435214042664, 0.03099236637353897, 0.045955922454595566, -0.15813672542572021, -0.46386054158210754, 0.6968704462051392, -0.6296702027320862, -0.176083043217659, -0.08365117013454437, -0.25838765501976013, -0.06274901330471039, 0.8954505920410156, -0.18367694318294525, 0.511864960193634, 0.934533953666687, -0.5766096711158752, 0.44123923778533936, 0.413363516330719, -0.28727057576179504, 0.41571229696273804, -0.8104735612869263, 0.32150697708129883, -0.04059692472219467, 0.024372221902012825, -0.970276951789856, -0.20328035950660706, 0.45766279101371765, -0.5792329907417297, 0.6470720767974854, -0.6667850613594055, -0.419845312833786, -0.5546280145645142, -0.4892975389957428, 0.40783238410949707, 0.7724822163581848, -0.8207780122756958, 0.5550864934921265, 0.26031774282455444, 0.1894446164369583, -0.5747935175895691, -0.8400547504425049, -0.24930255115032196, -0.4376610517501831, -0.8503745794296265, 0.4382835030555725, 0.04792087897658348, 0.06579509377479553, 0.28093045949935913, -0.018139837309718132, 0.015182792209088802, -0.03538620099425316, 0.604991614818573, 0.49001526832580566, -0.2868354320526123, -0.08138339966535568, -0.24457229673862457, -0.06650957465171814, 0.08750074356794357, -0.34599578380584717, 0.6653509140014648, -0.30591052770614624, -0.18758155405521393, -0.7568577527999878, -0.03641100972890854, 0.5113707780838013, -0.14451581239700317, 0.7001662254333496, 0.958836019039154, -0.5716714262962341, -0.11291009187698364, -0.3405534327030182, -0.21479643881320953, -0.4920569360256195, 0.4311082363128662, -0.4201527535915375, -0.3765864968299866, 0.9205373525619507, -0.003029542276635766, 0.04884332790970802, 0.616420567035675, 0.4259668290615082, -0.013058049604296684, 0.7950084209442139, 0.5187205076217651, -0.016720352694392204, 0.6754335165023804, -1.0061646699905396, -0.22777779400348663, -0.8788885474205017, -0.4320472180843353, -0.34411099553108215, -0.6558758020401001, -0.5964745879173279, -0.2668726146221161, 0.4618045389652252, 0.1405823826789856, -0.39357054233551025, 0.369356632232666, -1.0421415567398071, 0.18540894985198975, 0.7753848433494568, 0.5750691294670105, -0.3329119384288788, 0.34293168783187866, -0.2995445132255554, 0.02754928357899189, -0.7198284864425659, -0.23593482375144958, 1.0932904481887817, 0.4336194396018982, 0.809583842754364, -0.21844887733459473, 0.6632032990455627, -0.21143408119678497, 0.3480098247528076, -0.5851994752883911, 0.6051329970359802, -0.1593603640794754, -0.40889182686805725, -0.08916395157575607, -0.3689928650856018, -0.908028781414032, 0.10488113015890121, -0.2528378367424011, -0.8859858512878418, 0.1573672741651535, 0.17880836129188538, -0.29382219910621643, 0.8875415325164795, -0.8365112543106079, 1.0152665376663208, -0.22753363847732544, -0.48617228865623474, 0.0331096351146698, -0.6121108531951904, 0.2540578544139862, 0.31183549761772156, -0.29628896713256836, -0.10270915925502777, 0.3863483965396881, 1.0238534212112427, -0.6184836030006409, 0.7309607267379761, -0.5463610887527466, 0.5143488049507141, 0.5369260907173157, -0.1692037135362625, 0.4532283544540405, -0.04162551835179329, -0.0703728124499321, 0.3472129702568054, -0.08483611792325974, -0.41376063227653503, -0.5051299333572388, 0.7153832316398621, -1.0281147956848145, -0.3449185788631439, -0.4338410198688507, -0.570949912071228, 0.2122921645641327, 0.03210897371172905, 0.6040365099906921, 0.7608250379562378, 0.05945944786071777, 0.16482169926166534, 0.7064602375030518, -0.4262310564517975, 0.48292675614356995, -0.3203667998313904, -0.2256205826997757, -0.4596051275730133, 0.8403412103652954, 0.25490671396255493, 0.14598126709461212, -0.0007724250317551196, 0.19406677782535553, -0.28287726640701294, -0.6865792870521545, -0.47844794392585754, 0.43021607398986816, -0.7052735090255737, -0.3532254695892334, -0.5975970029830933, -0.53620845079422, -0.354722797870636, -0.11905641108751297, -0.40447816252708435, -0.205744206905365, -0.3466675579547882, 0.18856056034564972, 0.769006609916687, 0.6092177629470825, -0.07745328545570374, 0.5115582942962646, -0.5181867480278015, 0.04709983617067337, 0.19563791155815125, 0.4604761302471161, -0.06574276089668274, -0.8185613751411438, -0.25214171409606934, -0.1607690006494522, -0.3720056414604187, -0.6972264647483826, 0.5062071681022644, 0.169448584318161, 0.5597846508026123, 0.31690147519111633, -0.3281956911087036, 0.7619331479072571, -0.005520454607903957, 0.506166934967041, 0.33657172322273254, -0.6601221561431885, 0.6495176553726196, -0.07111184298992157, 0.18386021256446838, 0.08297107368707657, 0.30817312002182007, -0.30506429076194763, -0.004492949228733778, -1.0057095289230347, -0.6910781264305115, 0.9445092678070068, 0.13524769246578217, 0.05441876873373985, 0.4312645494937897, 0.7506071925163269, -0.017158854752779007, -0.03696469962596893, -0.7147010564804077, -0.48348793387413025, -0.29325419664382935, -0.2659459114074707, 0.0704575851559639, -0.07688860595226288, -0.16908428072929382, -0.6724486947059631, 0.8048931360244751, -0.07020746171474457, 0.7873064279556274, 0.3351079821586609, -0.038275096565485, -0.018637722358107567, -0.3006625175476074, 0.3563327491283417, 0.2967119514942169, -0.3816148340702057, 0.00568724237382412, 0.3023584187030792, -0.5796727538108826, 0.047315459698438644, 0.26961034536361694, -0.1331765055656433, 0.093319371342659, 0.20412468910217285, 0.9857847690582275, -0.02485419251024723, 0.1365170180797577, 0.34219324588775635, -0.07269074022769928, -0.39237287640571594, -0.18838593363761902, 0.17255748808383942, 0.05330242961645126, 0.4695639908313751, 0.2309868037700653, 0.4061765670776367, -0.1560283601284027, -0.305061936378479, 0.2142917960882187, 0.6408147811889648, -0.28726673126220703, -0.4462147355079651, 0.8997272253036499, -0.23229171335697174, -0.11325932294130325, 1.0094267129898071, -0.12076008319854736, -0.43571099638938904, 1.0791659355163574, 0.44147512316703796, 1.0049985647201538, -0.02633002959191799, 0.07345008850097656, 0.8396538496017456, 0.14479221403598785, 0.05868664011359215, 0.22540046274662018, 0.10168954730033875, -0.7421387434005737, 0.12182020395994186, -0.5444139242172241, 0.03604549542069435, 0.31146788597106934, -0.544286847114563, 0.3517746031284332, -0.85536128282547, -0.42636409401893616, 0.22494907677173615, 0.2738509774208069, -0.9395424127578735, 0.26645568013191223, 0.08784015476703644, 0.8671151399612427, -0.8053186535835266, 0.9838361144065857, 0.8761267066001892, -0.5636668801307678, -1.1053568124771118, -0.2786177098751068, 0.02713080868124962, -1.0017714500427246, 0.4662361145019531, 0.3883908987045288, 0.13305914402008057, 0.0844508558511734, -0.8632116913795471, -0.5459864735603333, 1.510346531867981, 0.5503571033477783, 0.0013538268394768238, 0.13282887637615204, -0.14845293760299683, 0.20526151359081268, -0.3938905596733093, 0.4092184603214264, 0.1921832114458084, 0.296939879655838, 0.3393383026123047, -0.6140062212944031, 0.25107043981552124, -0.45606526732444763, 0.19622690975666046, 0.2972540557384491, -0.7710803151130676, 1.0513837337493896, -0.4920867383480072, -0.26765763759613037, 0.09503611922264099, 0.6535941362380981, 0.20441047847270966, 0.10558613389730453, 0.4715645909309387, 0.9607812166213989, 0.6783895492553711, -0.47440364956855774, 1.0186543464660645, -0.08479730039834976, 0.7305176258087158, 0.5919909477233887, 0.41660845279693604, 0.3936147391796112, 0.3176386058330536, -0.24186298251152039, 0.3620060086250305, 1.0859768390655518, -0.43451154232025146, 0.3892672061920166, 0.20217183232307434, -0.12069769203662872, -0.06018476188182831, 0.08674586564302444, -0.4730862081050873, 0.35261091589927673, 0.17792962491512299, -0.5641106963157654, -0.25082260370254517, 0.061978526413440704, 0.1914779543876648, -0.35478314757347107, -0.28681817650794983, 0.4380740225315094, 0.03125104680657387, -0.3777213990688324, 0.7693819403648376, 0.06919577717781067, 0.9038071632385254, -0.5376135110855103, 0.07391900569200516, -0.28627049922943115, 0.2810044288635254, -0.4353809356689453, -0.8982195258140564, 0.1695879101753235, -0.20748606324195862, 0.00008346198592334986, 0.07810090482234955, 0.7813087105751038, -0.3277295231819153, -0.4498435854911804, 0.24992883205413818, 0.29784560203552246, 0.5759266018867493, -0.0012766410363838077, -1.2397245168685913, 0.1054842472076416, -0.0005091967759653926, -0.6007053852081299, 0.39266976714134216, 0.35620713233947754, 0.08999299257993698, 0.7297099232673645, 0.6199890971183777, -0.05660397931933403, 0.14414994418621063, -0.18169699609279633, 0.9704324007034302, -0.48307105898857117, -0.26105889678001404, -0.953711986541748, 0.6712238788604736, -0.13718336820602417, -0.6434623003005981, 0.5180323123931885, 0.6609305739402771, 0.9145634770393372, 0.022021131590008736, 0.5993701219558716, -0.31338071823120117, -0.15770933032035828, -0.4084302484989166, 0.7685120105743408, -0.7105387449264526, -0.06589595973491669, -0.27715811133384705, -0.6951563358306885, -0.3092502951622009, 0.6726267337799072, -0.27789294719696045, 0.38249897956848145, 0.43297383189201355, 1.0427372455596924, -0.3952908515930176, -0.24968650937080383, 0.1876748502254486, 0.13077141344547272, 0.17112219333648682, 0.5325064063072205, 0.39818304777145386, -0.7895411849021912, 0.3688506484031677, -0.6284607648849487, -0.23393560945987701, -0.020855771377682686, -0.6040647029876709, -0.9475282430648804, -0.8177843689918518, -0.6594836115837097, -0.709693193435669, -0.14861740171909332, 0.9114724397659302, 1.0717734098434448, -0.7075625061988831, -0.15574508905410767, 0.07889150828123093, 0.15654532611370087, -0.31105005741119385, -0.20990993082523346, 0.714655339717865, -0.17837132513523102, -0.9239745736122131, -0.350360631942749, 0.1566043347120285, 0.3502725064754486, 0.007661537267267704, -0.3129332363605499, -0.19493088126182556, -0.3012365400791168, 0.19761283695697784, 0.3969923257827759, -0.5897157788276672, -0.27051377296447754, -0.19255691766738892, -0.21830809116363525, 0.5891613364219666, 0.4158209264278412, -0.5995288491249084, 0.3974960744380951, 0.4314615726470947, 0.407488614320755, 0.9448949098587036, -0.25833195447921753, -0.006002191454172134, -0.7721502184867859, 0.49285152554512024, -0.15192757546901703, 0.5566189885139465, 0.3864426910877228, -0.43179836869239807, 0.6380298733711243, 0.5017915964126587, -0.5605247616767883, -0.7694397568702698, -0.19926108419895172, -1.1686264276504517, -0.12192307412624359, 0.871618926525116, -0.3692673146724701, -0.588550865650177, 0.5072424411773682, -0.01172936987131834, 0.5653591752052307, -0.133836567401886, 0.45256614685058594, 0.372316837310791, -0.1729387789964676, -0.5501824021339417, -0.5287339091300964, 0.41752952337265015, 0.11875926703214645, -0.6889365315437317, -0.43003377318382263, -0.04896898567676544, 0.7472776770591736, 0.22328099608421326, 0.5997352600097656, -0.2540791928768158, 0.13746905326843262, 0.07936703413724899, 0.5616573095321655, -0.3766685426235199, -0.08376006782054901, -0.36925992369651794, 0.02530265972018242, -0.04766658693552017, -0.7105672955513 ]
timm/spnasnet_100.rmsp_in1k
timm
"2023-04-27T21:14:40Z"
40,619
0
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "arxiv:1904.02877", "license:apache-2.0", "region:us" ]
image-classification
"2022-12-13T00:01:11Z"
--- tags: - image-classification - timm library_name: timm license: apache-2.0 datasets: - imagenet-1k --- # Model card for spnasnet_100.rmsp_in1k A SPNasNet image classification model. Trained on ImageNet-1k in `timm` using recipe template described below. Recipe details: * A simple RmsProp based recipe without RandAugment. Using RandomErasing, mixup, dropout, standard random-resize-crop augmentation. * 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): 4.4 - GMACs: 0.3 - Activations (M): 6.0 - Image size: 224 x 224 - **Papers:** - Single-Path NAS: Designing Hardware-Efficient ConvNets in less than 4 Hours: https://arxiv.org/abs/1904.02877 - **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('spnasnet_100.rmsp_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( 'spnasnet_100.rmsp_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, 96, 14, 14]) # torch.Size([1, 320, 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( 'spnasnet_100.rmsp_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, 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{stamoulis2020single, title={Single-path nas: Designing hardware-efficient convnets in less than 4 hours}, author={Stamoulis, Dimitrios and Ding, Ruizhou and Wang, Di and Lymberopoulos, Dimitrios and Priyantha, Bodhi and Liu, Jie and Marculescu, Diana}, booktitle={Machine Learning and Knowledge Discovery in Databases: European Conference, ECML PKDD 2019, W{"u}rzburg, Germany, September 16--20, 2019, Proceedings, Part II}, pages={481--497}, year={2020}, organization={Springer} } ```
[ -0.4935295283794403, -0.45462772250175476, 0.033987656235694885, 0.15135695040225983, -0.35839489102363586, -0.3784959316253662, -0.21510091423988342, -0.28426480293273926, 0.48041656613349915, 0.49785807728767395, -0.6133134961128235, -0.7077497243881226, -0.7461669445037842, -0.1369251310825348, -0.15619783103466034, 1.0659290552139282, -0.04556375741958618, -0.02183104306459427, -0.25392356514930725, -0.5675675272941589, -0.15295886993408203, -0.40975919365882874, -0.8907759189605713, -0.25707077980041504, 0.3380110263824463, 0.21104015409946442, 0.46338436007499695, 0.6450936794281006, 0.6345542669296265, 0.4516872465610504, -0.22511301934719086, 0.23439744114875793, -0.22118662297725677, -0.07264485210180283, 0.3900442123413086, -0.5032658576965332, -0.5434255003929138, 0.1393820345401764, 0.7150641083717346, 0.4468470811843872, 0.01402644719928503, 0.511026918888092, 0.06401433795690536, 0.6384919881820679, -0.20382417738437653, 0.07719489187002182, -0.4575541317462921, 0.3728679120540619, -0.2469896674156189, -0.10677109658718109, -0.3337534964084625, -0.3835165500640869, 0.24759982526302338, -0.5489281415939331, 0.48463645577430725, 0.009756762534379959, 1.3313230276107788, 0.2861952483654022, -0.09257988631725311, -0.1968933492898941, -0.22232931852340698, 0.7759692072868347, -0.8336541652679443, 0.16916438937187195, 0.24643628299236298, 0.22344915568828583, -0.08478225767612457, -1.0209622383117676, -0.5026628375053406, -0.1460055112838745, -0.15216673910617828, -0.11177356541156769, -0.1559104472398758, 0.02050831913948059, 0.3633684813976288, 0.30890506505966187, -0.488268107175827, -0.013394907116889954, -0.5942453742027283, -0.1739531308412552, 0.5863189101219177, -0.049386538565158844, 0.2797694206237793, -0.24383482336997986, -0.6144616603851318, -0.3309503197669983, -0.43087005615234375, 0.2048163115978241, 0.23796707391738892, 0.41400453448295593, -0.4820868968963623, 0.4157814681529999, 0.22652214765548706, 0.5683051347732544, 0.054832570254802704, -0.330143541097641, 0.572806179523468, 0.05269135534763336, -0.4635635316371918, -0.0743284597992897, 1.02200448513031, 0.3189714252948761, 0.10985097289085388, 0.07381825149059296, -0.20627227425575256, -0.36188000440597534, -0.000046415159886237234, -1.1384409666061401, -0.3622344136238098, 0.36541005969047546, -0.5937514901161194, -0.4383898377418518, 0.2753298580646515, -0.5864357948303223, -0.20943640172481537, 0.0033179433085024357, 0.6876363754272461, -0.5300586819648743, -0.39815473556518555, 0.13216643035411835, -0.25779110193252563, 0.12640073895454407, 0.10185305774211884, -0.44297388195991516, 0.3430218994617462, 0.35959407687187195, 1.2128397226333618, -0.04193706810474396, -0.5348041653633118, -0.31114643812179565, -0.35103023052215576, -0.3079054355621338, 0.4401083290576935, 0.14314275979995728, -0.1049245148897171, -0.3966258466243744, 0.35353636741638184, -0.14080236852169037, -0.6697402596473694, 0.2872042655944824, -0.21454307436943054, 0.22809399664402008, -0.15105955302715302, -0.36722612380981445, -0.48091065883636475, 0.21120518445968628, -0.5247340798377991, 1.334673523902893, 0.24600963294506073, -0.8748651146888733, 0.3539246916770935, -0.7068402767181396, -0.24601617455482483, -0.19703131914138794, -0.05582660809159279, -1.1665321588516235, -0.08903827518224716, 0.12128767371177673, 0.7906487584114075, -0.20322181284427643, 0.12252100557088852, -0.43473348021507263, -0.21719712018966675, 0.3251141607761383, -0.0015395403606817126, 1.1009385585784912, 0.24156665802001953, -0.48883354663848877, 0.29283228516578674, -0.5978450179100037, 0.14766475558280945, 0.6067566275596619, -0.189248189330101, 0.04050261154770851, -0.5300812125205994, 0.09175000339746475, 0.36289680004119873, 0.08885126560926437, -0.5794270634651184, 0.21110330522060394, -0.15767470002174377, 0.3242223560810089, 0.7684782147407532, 0.004698132164776325, 0.3843400180339813, -0.4381777346134186, 0.3594411611557007, 0.3941652774810791, 0.28363221883773804, -0.0854269415140152, -0.5657232403755188, -0.9254159331321716, -0.5578852891921997, 0.323573499917984, 0.2565184235572815, -0.5079509615898132, 0.47315120697021484, -0.16175702214241028, -0.8037506937980652, -0.5080609321594238, 0.060827285051345825, 0.4905166029930115, 0.5468055605888367, 0.3332907259464264, -0.609080970287323, -0.6062183380126953, -0.8575082421302795, 0.057853348553180695, 0.21522177755832672, 0.031955160200595856, 0.3963938057422638, 0.6583739519119263, 0.020782021805644035, 0.6504988074302673, -0.4887337386608124, -0.28201058506965637, -0.3124575614929199, -0.008884768933057785, 0.46099984645843506, 0.7818964719772339, 0.8693849444389343, -0.6667484641075134, -0.5435819625854492, -0.18539433181285858, -0.9409562945365906, 0.18135254085063934, -0.14876489341259003, -0.17545737326145172, 0.3844158351421356, 0.12431583553552628, -0.705334484577179, 0.6110345721244812, 0.19063277542591095, -0.3806511163711548, 0.48990482091903687, -0.2727484703063965, 0.18484096229076385, -1.1597539186477661, 0.09434974193572998, 0.4708061218261719, -0.09561922401189804, -0.5618216395378113, 0.1451132446527481, 0.006415033712983131, -0.23134630918502808, -0.5371586680412292, 0.5909537672996521, -0.5924704074859619, -0.30683472752571106, -0.03059976175427437, -0.2549445927143097, 0.07147936522960663, 0.7782539129257202, -0.033623021095991135, 0.4169465899467468, 0.9209668040275574, -0.6542677879333496, 0.44310450553894043, 0.3205513656139374, -0.16061042249202728, 0.36821120977401733, -0.6725572943687439, 0.18820682168006897, -0.07597507536411285, 0.275067001581192, -0.8968989253044128, -0.10828836262226105, 0.369975745677948, -0.5954675078392029, 0.6402252316474915, -0.5606034398078918, -0.4683619737625122, -0.5051653981208801, -0.4096444249153137, 0.23454928398132324, 0.5266845226287842, -0.6927594542503357, 0.5215660333633423, 0.3736518919467926, 0.24180981516838074, -0.5046449303627014, -0.8484745621681213, -0.2294461578130722, -0.4257006347179413, -0.7170416712760925, 0.33602362871170044, 0.08372972160577774, 0.1830623596906662, 0.06195798143744469, -0.17988596856594086, -0.051725517958402634, -0.059986043721437454, 0.6161110997200012, 0.41213542222976685, -0.3801165819168091, -0.05579610541462898, -0.3399200737476349, -0.09917190670967102, -0.008889184333384037, -0.4476114809513092, 0.666965663433075, -0.3040415048599243, -0.2552442252635956, -0.8920394778251648, -0.00914792437106371, 0.5528208613395691, -0.14620541036128998, 0.921359658241272, 0.9092230200767517, -0.5304569005966187, -0.21153119206428528, -0.30934396386146545, -0.36299601197242737, -0.4928741753101349, 0.4763719141483307, -0.4993208348751068, -0.27021506428718567, 0.7309466004371643, -0.00209609093144536, 0.1087273582816124, 0.6512294411659241, 0.2678506374359131, -0.10875719785690308, 0.6751508712768555, 0.5963741540908813, 0.17853769659996033, 0.6252453923225403, -1.0146701335906982, -0.10362961143255234, -0.7051479816436768, -0.4490054249763489, -0.3862183690071106, -0.5852903127670288, -0.611943781375885, -0.38983774185180664, 0.5124790072441101, 0.005106180906295776, -0.47004950046539307, 0.5857461094856262, -0.9787603616714478, 0.10919813066720963, 0.7067972421646118, 0.6090945601463318, -0.41361749172210693, 0.27506181597709656, -0.2774808406829834, -0.04410744458436966, -0.9557692408561707, -0.21102090179920197, 1.0548239946365356, 0.5885535478591919, 0.5092584490776062, -0.20275066792964935, 0.7838724255561829, -0.216958150267601, 0.2526009678840637, -0.5811335444450378, 0.702143669128418, -0.1984395980834961, -0.4707150161266327, -0.1447255164384842, -0.47162696719169617, -0.9117333889007568, 0.11426450312137604, -0.31346434354782104, -0.5964696407318115, 0.07857850193977356, 0.06433865427970886, -0.2140786051750183, 0.9045760631561279, -0.8280621767044067, 0.9303755760192871, -0.23692204058170319, -0.29421600699424744, 0.16967709362506866, -0.7529392838478088, 0.18509908020496368, 0.29801279306411743, -0.19993959367275238, -0.05264987796545029, 0.2911859154701233, 1.1198114156723022, -0.6455377340316772, 0.7601779103279114, -0.6248027682304382, 0.44525790214538574, 0.39094433188438416, -0.027602534741163254, 0.33430105447769165, -0.2611064612865448, -0.19848975539207458, 0.32372915744781494, 0.09619448333978653, -0.5570205450057983, -0.5206446647644043, 0.5588710904121399, -0.9257768988609314, -0.20723523199558258, -0.48033371567726135, -0.506797730922699, 0.19858384132385254, 0.0746082067489624, 0.45454350113868713, 0.7013567686080933, 0.29408344626426697, 0.2506147623062134, 0.7240591645240784, -0.4945620894432068, 0.28049400448799133, -0.05975867435336113, -0.2541559338569641, -0.41246455907821655, 0.9248616695404053, 0.2943355441093445, 0.18611401319503784, 0.017854200676083565, 0.20410515367984772, -0.22785182297229767, -0.5126162767410278, -0.3896120488643646, 0.39365923404693604, -0.7507461905479431, -0.5152114629745483, -0.6137264370918274, -0.5480151772499084, -0.4016009271144867, -0.055832043290138245, -0.5806499719619751, -0.4496273398399353, -0.38552093505859375, 0.14788444340229034, 0.7568438649177551, 0.6177110075950623, -0.1138465479016304, 0.5171977281570435, -0.4401746094226837, 0.14941206574440002, -0.032923005521297455, 0.5154247283935547, -0.04887918382883072, -0.8600067496299744, -0.2372736781835556, -0.1019335612654686, -0.38765648007392883, -0.7454046010971069, 0.5675811767578125, 0.23242521286010742, 0.5093340277671814, 0.3599385917186737, -0.19076257944107056, 0.8054059743881226, -0.02013566344976425, 0.5642394423484802, 0.3392600119113922, -0.594491720199585, 0.7213760614395142, 0.07461387664079666, 0.12287021428346634, 0.1161629855632782, 0.48342081904411316, -0.3675138056278229, -0.05423985794186592, -1.030263900756836, -0.7738949060440063, 0.9421930313110352, 0.07862367480993271, -0.1297983080148697, 0.31707343459129333, 0.6526885628700256, 0.08260216563940048, 0.07182729244232178, -0.7105755805969238, -0.6340833902359009, -0.3407864570617676, -0.2288416177034378, 0.05466039106249809, -0.030449356883764267, -0.14306266605854034, -0.6394556760787964, 0.8658244013786316, -0.019094161689281464, 0.7607360482215881, 0.29861414432525635, -0.02875731699168682, -0.11848759651184082, -0.504704475402832, 0.4595084488391876, 0.31987103819847107, -0.39445242285728455, 0.11249218881130219, 0.23286429047584534, -0.5175994634628296, -0.03270460292696953, 0.11987732350826263, -0.04939493164420128, 0.2090606838464737, 0.28654617071151733, 0.9992669224739075, 0.04471557214856148, 0.07809022068977356, 0.4251512289047241, -0.08289427310228348, -0.3925169110298157, -0.2115248143672943, 0.08535438030958176, 0.0036270490381866693, 0.350140780210495, 0.43333664536476135, 0.4688105881214142, -0.26481685042381287, -0.29983481764793396, 0.38878312706947327, 0.5791078209877014, -0.23308458924293518, -0.258865624666214, 0.5615805387496948, -0.3051116168498993, -0.2861921191215515, 0.751132607460022, -0.1729266494512558, -0.5938612222671509, 1.1110035181045532, 0.49781322479248047, 0.8069513440132141, 0.019772687926888466, 0.10153627395629883, 0.8023983836174011, 0.21471905708312988, 0.05780696123838425, 0.14908988773822784, 0.048849958926439285, -0.70477694272995, 0.20799721777439117, -0.664836585521698, -0.006399684585630894, 0.2646521031856537, -0.5955765247344971, 0.3497408926486969, -0.7539212107658386, -0.35007548332214355, 0.24151471257209778, 0.4700828492641449, -0.9529398083686829, 0.2896081805229187, -0.08616811782121658, 0.9529817700386047, -0.7969346046447754, 0.7787131071090698, 0.7973832488059998, -0.6088680624961853, -1.0115745067596436, -0.16460373997688293, 0.115247942507267, -0.8631129860877991, 0.5643028616905212, 0.3704776167869568, 0.16011418402194977, -0.003657850669696927, -0.7951861619949341, -0.6545835733413696, 1.429553747177124, 0.48392876982688904, 0.04223958030343056, 0.2095044106245041, -0.05476425960659981, 0.20205993950366974, -0.4411074221134186, 0.3511292338371277, 0.16346114873886108, 0.30390486121177673, 0.3640061914920807, -0.668205976486206, 0.2854224741458893, -0.3184068202972412, 0.07782198488712311, 0.21346624195575714, -0.6949172019958496, 0.90877765417099, -0.4161898195743561, -0.3066615164279938, 0.022544102743268013, 0.7395612597465515, 0.44268929958343506, 0.28961002826690674, 0.5109447240829468, 0.831064760684967, 0.6639854907989502, -0.22623927891254425, 0.9216139316558838, -0.0960051417350769, 0.6690188050270081, 0.660508930683136, 0.31992307305336, 0.5215371251106262, 0.45467209815979004, -0.335165798664093, 0.2967861294746399, 1.0900285243988037, -0.27537742257118225, 0.328192800283432, 0.23725354671478271, -0.056202299892902374, 0.04877830296754837, 0.13651250302791595, -0.4183904528617859, 0.39606112241744995, 0.20629766583442688, -0.5292280912399292, -0.20012116432189941, 0.0654333084821701, 0.02570662461221218, -0.3322359621524811, -0.1779867261648178, 0.5101656913757324, 0.02107701450586319, -0.4036000072956085, 0.8014515042304993, 0.08351479470729828, 0.9866917729377747, -0.5414332747459412, 0.10916773974895477, -0.29766345024108887, 0.1505967378616333, -0.4025307297706604, -0.8117289543151855, 0.3399203419685364, -0.30378732085227966, 0.019448155537247658, -0.10944363474845886, 0.7241182327270508, -0.3116225600242615, -0.4811199903488159, 0.1151895672082901, 0.3097984194755554, 0.6590168476104736, 0.07007678598165512, -1.2191364765167236, 0.18979951739311218, 0.03806170076131821, -0.5762423276901245, 0.3858640193939209, 0.5154517292976379, 0.25321757793426514, 0.8152104020118713, 0.6283016204833984, 0.13205011188983917, 0.1735665649175644, -0.24575388431549072, 0.8567010164260864, -0.4404672682285309, -0.3037903606891632, -0.6789787411689758, 0.5631192922592163, -0.1478768140077591, -0.5894473791122437, 0.6347779035568237, 0.6248921155929565, 0.8278825283050537, -0.0665951818227768, 0.3947719633579254, -0.30967801809310913, 0.1049482598900795, -0.3683062493801117, 0.8497195243835449, -0.7336031198501587, 0.03404919430613518, -0.16730749607086182, -0.5779523253440857, -0.3506438434123993, 0.7535070180892944, -0.18147948384284973, 0.36045214533805847, 0.4936669170856476, 1.1583844423294067, -0.4038357138633728, -0.2768208980560303, 0.16185370087623596, 0.07024964690208435, 0.007875679060816765, 0.3195945620536804, 0.2765491008758545, -0.8287996053695679, 0.23607748746871948, -0.7269903421401978, -0.14826171100139618, -0.08984750509262085, -0.6815035343170166, -0.8307953476905823, -1.0897570848464966, -0.5311079621315002, -0.7377554178237915, -0.12325635552406311, 1.0480842590332031, 1.1714844703674316, -0.7199737429618835, -0.19829198718070984, 0.03112867847084999, 0.1712668091058731, -0.29976558685302734, -0.2600058913230896, 0.7012112140655518, -0.20137909054756165, -0.6045128107070923, -0.23211686313152313, 0.08987684547901154, 0.32444342970848083, -0.09850136935710907, -0.3010043501853943, -0.31791695952415466, -0.22142300009727478, 0.2882300913333893, 0.3352963328361511, -0.5610935091972351, -0.038331735879182816, -0.18751272559165955, -0.13674794137477875, 0.40736648440361023, 0.4866921901702881, -0.5053618550300598, 0.2735096216201782, 0.2825626730918884, 0.4411132037639618, 0.968440055847168, -0.3627835214138031, 0.03501731902360916, -1.0252026319503784, 0.5338655710220337, -0.030925583094358444, 0.45078518986701965, 0.42921438813209534, -0.41066810488700867, 0.557801365852356, 0.4140833914279938, -0.46342653036117554, -1.014063835144043, -0.09173364192247391, -1.0742003917694092, -0.2109754979610443, 0.8693586587905884, -0.408855140209198, -0.5780899524688721, 0.5107924342155457, 0.0037981553468853235, 0.7004985809326172, -0.05158443748950958, 0.5383399128913879, 0.23393307626247406, -0.14800545573234558, -0.6615055203437805, -0.5725140571594238, 0.5144941806793213, 0.24632644653320312, -0.6685829758644104, -0.4857127368450165, -0.03128080815076828, 0.6786098480224609, 0.23544521629810333, 0.5466623306274414, -0.13091959059238434, 0.16481000185012817, 0.12892864644527435, 0.4511350393295288, -0.44328272342681885, -0.23710943758487701, -0.3672932982444763, 0.10939451307058334, -0.15383929014205933, -0.6326810717582703 ]
timm/tinynet_a.in1k
timm
"2023-04-27T21:50:19Z"
40,504
0
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "arxiv:2010.14819", "license:apache-2.0", "region:us" ]
image-classification
"2022-12-13T00:21:58Z"
--- tags: - image-classification - timm library_name: timm license: apache-2.0 datasets: - imagenet-1k --- # Model card for tinynet_a.in1k A TinyNet image classification model. Trained on ImageNet-1k by paper authors. ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 6.2 - GMACs: 0.3 - Activations (M): 5.4 - Image size: 192 x 192 - **Papers:** - Model rubik's cube: Twisting resolution, depth and width for tinynets: https://arxiv.org/abs/2010.14819v2 - **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('tinynet_a.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( 'tinynet_a.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, 96, 96]) # torch.Size([1, 24, 48, 48]) # torch.Size([1, 40, 24, 24]) # torch.Size([1, 112, 12, 12]) # torch.Size([1, 320, 6, 6]) 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( 'tinynet_a.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, 6, 6) 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{han2020model, title={Model rubik’s cube: Twisting resolution, depth and width for tinynets}, author={Han, Kai and Wang, Yunhe and Zhang, Qiulin and Zhang, Wei and Xu, Chunjing and Zhang, Tong}, journal={Advances in Neural Information Processing Systems}, volume={33}, pages={19353--19364}, year={2020} } ``` ```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.45710495114326477, -0.5090661644935608, 0.05449264124035835, -0.0031195038463920355, -0.27989399433135986, -0.39349138736724854, -0.265445739030838, -0.37492892146110535, 0.2712083160877228, 0.3665705621242523, -0.4304620921611786, -0.5942872762680054, -0.6265472769737244, -0.1812462955713272, -0.09922230988740921, 1.0231425762176514, 0.0998530387878418, -0.02605825662612915, -0.26423919200897217, -0.46638771891593933, -0.07504589110612869, -0.07105359435081482, -0.865351140499115, -0.4713154733181, 0.35380005836486816, 0.34531477093696594, 0.7212138772010803, 0.6929882168769836, 0.5098932981491089, 0.5013393759727478, -0.21945422887802124, 0.06633233278989792, -0.1602165251970291, -0.4564356803894043, 0.4317452609539032, -0.6953588724136353, -0.5228306651115417, 0.28303542733192444, 0.6821607351303101, 0.5210914611816406, 0.08582883328199387, 0.5429986715316772, 0.11413624882698059, 0.5711458921432495, -0.07975128293037415, 0.006704248953610659, -0.37511146068573, 0.24800564348697662, -0.024420306086540222, 0.23705637454986572, -0.2892262637615204, -0.4699639678001404, 0.20464389026165009, -0.5057122111320496, 0.47318896651268005, 0.10510344058275223, 1.2941495180130005, 0.14076033234596252, -0.08075033873319626, -0.07466743886470795, -0.18333131074905396, 0.7660130858421326, -0.8297606110572815, 0.10730002820491791, 0.3046678900718689, 0.2263837605714798, -0.05648905038833618, -1.0188103914260864, -0.5904415249824524, -0.19756071269512177, -0.30985647439956665, -0.19776944816112518, -0.20069468021392822, -0.05167083442211151, 0.2851356863975525, 0.30711880326271057, -0.46701475977897644, 0.1727435290813446, -0.6510136723518372, -0.18136487901210785, 0.5984697341918945, 0.15749657154083252, 0.35365647077560425, -0.441704660654068, -0.42268893122673035, -0.43055403232574463, -0.3013475835323334, 0.44885653257369995, 0.31251728534698486, 0.34375038743019104, -0.730293869972229, 0.4839174747467041, 0.1730109304189682, 0.5378113985061646, 0.14310094714164734, -0.3968065083026886, 0.5651840567588806, 0.033472806215286255, -0.49014851450920105, -0.20424482226371765, 1.221815824508667, 0.25395140051841736, 0.06892306357622147, 0.1593814343214035, -0.08692791312932968, -0.4541374742984772, -0.02957884781062603, -1.1550146341323853, -0.59593266248703, 0.4320259392261505, -0.7162623405456543, -0.50204998254776, 0.19579671323299408, -0.6167883276939392, -0.21187184751033783, -0.012155018746852875, 0.6488354802131653, -0.4938353896141052, -0.3648045063018799, -0.03439308702945709, -0.14247359335422516, 0.12156008929014206, 0.21380947530269623, -0.532565176486969, 0.24325215816497803, 0.40482914447784424, 1.197796106338501, 0.16153913736343384, -0.4480990767478943, -0.2044617086648941, -0.4404718577861786, -0.3042503595352173, 0.47885823249816895, 0.04777451604604721, -0.06800492852926254, -0.4128192961215973, 0.2803596258163452, -0.15697796642780304, -0.7549920082092285, 0.11621427536010742, -0.17993521690368652, 0.25482305884361267, 0.21893030405044556, -0.19839182496070862, -0.4861314594745636, 0.3367840051651001, -0.4949674904346466, 1.1548795700073242, 0.24144841730594635, -0.8315020203590393, 0.25658243894577026, -0.5605114102363586, -0.10881554335355759, -0.2939756214618683, -0.08985957503318787, -1.241945505142212, -0.01219946052879095, 0.17298853397369385, 0.7629404067993164, -0.2507215738296509, -0.03899471089243889, -0.6114646792411804, -0.1808992475271225, 0.44219696521759033, 0.07238944619894028, 1.1803983449935913, 0.06579563766717911, -0.3564777672290802, 0.325359970331192, -0.6149246692657471, 0.26223641633987427, 0.5529460906982422, -0.3179466426372528, -0.07835005223751068, -0.5888323783874512, 0.16182394325733185, 0.3845924735069275, 0.11668360233306885, -0.588735818862915, 0.3848467171192169, -0.2303113043308258, 0.4208892583847046, 0.7207379341125488, -0.19021396338939667, 0.413242369890213, -0.4009723961353302, 0.22718337178230286, 0.41883665323257446, 0.27308186888694763, 0.09796343743801117, -0.7013245820999146, -0.8678116202354431, -0.5119072794914246, 0.5229246020317078, 0.3136003911495209, -0.6211753487586975, 0.41428840160369873, -0.3030776381492615, -0.7800849676132202, -0.5833838582038879, 0.2184225469827652, 0.47291386127471924, 0.44623270630836487, 0.27115485072135925, -0.4009579122066498, -0.44533658027648926, -0.9801908731460571, 0.11411090940237045, -0.04015445336699486, -0.15199436247348785, 0.4508727788925171, 0.7784290909767151, -0.09267906844615936, 0.6737631559371948, -0.45225557684898376, -0.3620138168334961, -0.25033673644065857, 0.2300839126110077, 0.5579895377159119, 0.8683861494064331, 0.7495660185813904, -0.6857702136039734, -0.6146377325057983, -0.05859678238630295, -0.8137044906616211, 0.32577085494995117, -0.15962661802768707, -0.1565195918083191, 0.26970985531806946, 0.08426278084516525, -0.7100796103477478, 0.6499994993209839, 0.2268490046262741, -0.47349557280540466, 0.5032334327697754, -0.2419643998146057, 0.14936071634292603, -1.0440057516098022, 0.11006598174571991, 0.29798424243927, -0.1890755444765091, -0.4746576249599457, 0.018828261643648148, 0.10984701663255692, -0.11067741364240646, -0.5743499994277954, 0.6560872793197632, -0.6159356236457825, -0.20494475960731506, -0.14997237920761108, -0.12069403380155563, -0.006842229515314102, 0.7724610567092896, -0.16271206736564636, 0.3185897171497345, 0.8535255789756775, -0.5431419014930725, 0.5266730785369873, 0.4481602609157562, -0.24265938997268677, 0.3481338322162628, -0.6276565790176392, 0.23459717631340027, 0.09766947478055954, 0.06449811160564423, -1.0248174667358398, -0.14686152338981628, 0.34953439235687256, -0.7060253024101257, 0.6534479856491089, -0.6395392417907715, -0.494285523891449, -0.6222306489944458, -0.6116271018981934, 0.411641389131546, 0.7286621332168579, -0.7480499148368835, 0.47499239444732666, 0.28137728571891785, 0.33506086468696594, -0.3789609372615814, -0.9624053835868835, -0.2880050539970398, -0.32931575179100037, -0.8212254643440247, 0.23863975703716278, 0.04560790956020355, 0.11333079636096954, 0.24521708488464355, -0.04841584339737892, -0.0871572270989418, -0.13855402171611786, 0.5572865009307861, 0.37003132700920105, -0.4193454384803772, -0.18134865164756775, -0.3627814054489136, -0.06544583290815353, 0.0342632494866848, -0.30660101771354675, 0.5259155631065369, -0.39163738489151, -0.06767857074737549, -0.8087388277053833, -0.14631211757659912, 0.36116930842399597, 0.14100505411624908, 0.9403453469276428, 1.1263480186462402, -0.5058175325393677, -0.12073249369859695, -0.31164637207984924, -0.3569242060184479, -0.5287809371948242, 0.33072754740715027, -0.45939844846725464, -0.4684796929359436, 0.8693045973777771, 0.11751703172922134, -0.044056106358766556, 0.6282458305358887, 0.3194485604763031, -0.22303080558776855, 0.7975148558616638, 0.7051409482955933, 0.18990252912044525, 0.6257449388504028, -1.088464617729187, -0.12651671469211578, -0.918838620185852, -0.4329107999801636, -0.38772574067115784, -0.7101612687110901, -0.7128071188926697, -0.42128875851631165, 0.49586549401283264, 0.22961468994617462, -0.3191741704940796, 0.460174560546875, -0.782038688659668, 0.11838342249393463, 0.7069466710090637, 0.6648156046867371, -0.35693448781967163, 0.29307273030281067, -0.3981691896915436, -0.01658836379647255, -0.8810320496559143, -0.24940410256385803, 1.1056115627288818, 0.4359893798828125, 0.6124573945999146, -0.0738171860575676, 0.6384267210960388, -0.1913353055715561, 0.2835291922092438, -0.6573078632354736, 0.6735765933990479, -0.10168195515871048, -0.4976542294025421, -0.18881964683532715, -0.49545562267303467, -1.0993260145187378, 0.17852139472961426, -0.30230891704559326, -0.9234461784362793, 0.14719289541244507, 0.18079563975334167, -0.410837858915329, 0.9170153141021729, -0.8181195855140686, 1.03823983669281, -0.05569552257657051, -0.4354047477245331, 0.0706518366932869, -0.6527009606361389, 0.38573911786079407, 0.2697162628173828, -0.14139331877231598, -0.1039644181728363, 0.08723975718021393, 1.1678422689437866, -0.6288758516311646, 0.9401546716690063, -0.3933621644973755, 0.5153927803039551, 0.5573824048042297, 0.04597460851073265, 0.2735837996006012, -0.05573951080441475, -0.03731190785765648, 0.42467010021209717, 0.05803478881716728, -0.5170076489448547, -0.48677849769592285, 0.6705503463745117, -1.0743484497070312, -0.39285004138946533, -0.35678204894065857, -0.4890637695789337, 0.1981039047241211, 0.1541503369808197, 0.4264666736125946, 0.5796255469322205, 0.26578274369239807, 0.29977136850357056, 0.5573239922523499, -0.3971182405948639, 0.48066532611846924, -0.08898036926984787, -0.33179551362991333, -0.4606390595436096, 0.8948899507522583, 0.19318309426307678, 0.12506841123104095, 0.04318874701857567, 0.34778115153312683, -0.18978960812091827, -0.6016608476638794, -0.43013644218444824, 0.45968201756477356, -0.5772145390510559, -0.5787684917449951, -0.5787535905838013, -0.45715203881263733, -0.4863128662109375, -0.03268122300505638, -0.5944381356239319, -0.485310435295105, -0.470390647649765, 0.2645742893218994, 0.6760439872741699, 0.6382135152816772, -0.31091421842575073, 0.544063925743103, -0.6093540787696838, 0.26604923605918884, 0.21656623482704163, 0.5139887928962708, -0.019123747944831848, -0.9524532556533813, -0.40744227170944214, -0.07320297509431839, -0.4843933880329132, -0.6687941551208496, 0.4782697856426239, 0.14767861366271973, 0.4162636995315552, 0.41393551230430603, -0.20421616733074188, 0.7580010890960693, -0.0768805742263794, 0.5952485203742981, 0.4160001873970032, -0.6099247932434082, 0.7045988440513611, -0.01693415269255638, 0.19161361455917358, 0.007296653930097818, 0.3428741693496704, -0.26926368474960327, -0.010207334533333778, -1.1114006042480469, -0.6992043256759644, 1.1381025314331055, 0.19510915875434875, -0.11062302440404892, 0.44898101687431335, 0.62728351354599, -0.013914844021201134, 0.013673139736056328, -0.8333717584609985, -0.4921454191207886, -0.18654924631118774, -0.26850205659866333, 0.031263891607522964, -0.10235906392335892, -0.14424677193164825, -0.6969228386878967, 0.7782793045043945, -0.13464123010635376, 0.9487187266349792, 0.17752227187156677, -0.01535091083496809, -0.20852327346801758, -0.4767375588417053, 0.44023823738098145, 0.2871771454811096, -0.32335346937179565, 0.08847476541996002, 0.12829230725765228, -0.6022181510925293, 0.04051223769783974, 0.09147324413061142, -0.09259899705648422, -0.03470310568809509, 0.39624470472335815, 0.8460805416107178, 0.016611065715551376, 0.08868303894996643, 0.4762072265148163, -0.09107692539691925, -0.3608493208885193, -0.18533796072006226, 0.1826101690530777, 0.02751055918633938, 0.5030349493026733, 0.29189422726631165, 0.4148043990135193, -0.12397041916847229, -0.240056574344635, 0.22391396760940552, 0.5823253393173218, -0.24181772768497467, -0.4171634316444397, 0.6102330684661865, -0.2819540798664093, -0.25068262219429016, 0.8910609483718872, -0.12973174452781677, -0.46514949202537537, 1.2128697633743286, 0.3966635763645172, 0.8910803198814392, 0.04172316938638687, 0.10375642776489258, 0.8482202291488647, 0.3689363896846771, 0.1530652791261673, 0.11063648015260696, 0.13047091662883759, -0.7592656016349792, 0.23455291986465454, -0.5527603626251221, 0.009802733547985554, 0.4160154461860657, -0.5436925292015076, 0.3290228843688965, -0.8443481922149658, -0.3858110308647156, 0.25865137577056885, 0.48921430110931396, -0.983259379863739, 0.18643611669540405, 0.07917353510856628, 0.8706331253051758, -0.7663635015487671, 0.8845700025558472, 0.9707834124565125, -0.5204085111618042, -1.07896089553833, -0.18601953983306885, 0.17379619181156158, -0.9195418953895569, 0.5565798878669739, 0.4645213782787323, 0.21417994797229767, -0.017271921038627625, -0.9154936075210571, -0.6459143161773682, 1.4225327968597412, 0.31359007954597473, 0.0801120325922966, 0.3338763415813446, -0.029692066833376884, 0.21615448594093323, -0.47582927346229553, 0.4667249321937561, 0.22298908233642578, 0.32958516478538513, 0.15777622163295746, -0.7620754241943359, 0.21674685180187225, -0.3682723343372345, 0.1973714828491211, 0.19012460112571716, -0.804610550403595, 1.0005052089691162, -0.6008214354515076, -0.1757299154996872, 0.16379617154598236, 0.7294901013374329, 0.21725548803806305, 0.1707250475883484, 0.5689737796783447, 0.7911853790283203, 0.5062026381492615, -0.31596288084983826, 0.8901310563087463, 0.10985536873340607, 0.7043972611427307, 0.6412370800971985, 0.5560803413391113, 0.6049855947494507, 0.41917020082473755, -0.34950771927833557, 0.4140900671482086, 1.041768193244934, -0.3581315875053406, 0.29945287108421326, 0.0963902547955513, 0.15429314970970154, -0.05407072603702545, 0.17335541546344757, -0.33507922291755676, 0.4072651267051697, 0.26343226432800293, -0.41581323742866516, -0.09227459132671356, 0.14547806978225708, -0.034909870475530624, -0.36783817410469055, -0.34698712825775146, 0.5126728415489197, 0.05308502912521362, -0.21457108855247498, 0.8194194436073303, 0.15349571406841278, 0.9416096210479736, -0.34001871943473816, 0.14938943088054657, -0.3092955946922302, 0.30547869205474854, -0.41304323077201843, -0.8454229831695557, 0.2543429434299469, -0.3124433159828186, -0.01957765407860279, 0.1114034503698349, 0.7096567153930664, -0.32923153042793274, -0.508438766002655, 0.14524000883102417, 0.3055439591407776, 0.5434149503707886, 0.1455141007900238, -1.33965003490448, 0.11361722648143768, 0.09623991698026657, -0.7705202698707581, 0.38739874958992004, 0.5182891488075256, 0.26180824637413025, 0.7891206741333008, 0.5704225301742554, -0.05814540386199951, 0.2608596384525299, -0.36688584089279175, 0.8798490762710571, -0.5845268964767456, -0.37455204129219055, -0.77534419298172, 0.7658098936080933, -0.12180949002504349, -0.5342993140220642, 0.5764512419700623, 0.5809760093688965, 0.9062588810920715, -0.15521188080310822, 0.2878073453903198, -0.39336055517196655, 0.012570840306580067, -0.4422656297683716, 0.8056702017784119, -0.8075554966926575, -0.05195082351565361, -0.08097020536661148, -0.5633496642112732, -0.36565467715263367, 0.7458682060241699, -0.3332394063472748, 0.44427356123924255, 0.5314931869506836, 1.051639199256897, -0.5191712975502014, -0.3224242329597473, 0.2814505994319916, 0.30779778957366943, 0.01129850558936596, 0.457088440656662, 0.3893302083015442, -0.9346656799316406, 0.44284787774086, -0.8743077516555786, -0.15999436378479004, -0.2786880433559418, -0.676220178604126, -1.0890631675720215, -0.8001695871353149, -0.7308307886123657, -0.7256810069084167, -0.3912578523159027, 0.9347844123840332, 1.1362944841384888, -0.8075081706047058, -0.2164553552865982, 0.2592623829841614, 0.3271520137786865, -0.2873336672782898, -0.25042250752449036, 0.683265209197998, -0.07226216048002243, -0.7279437780380249, -0.36338165402412415, -0.01514003612101078, 0.44352248311042786, 0.039164260029792786, -0.27807679772377014, -0.2805542051792145, -0.28845012187957764, 0.17387746274471283, 0.3788955807685852, -0.6520850658416748, -0.19765856862068176, -0.3594615161418915, -0.27080681920051575, 0.46191462874412537, 0.4537737965583801, -0.582737922668457, 0.23388271033763885, 0.3736592233181, 0.31958651542663574, 0.85358726978302, -0.47459983825683594, -0.18024158477783203, -0.9065196514129639, 0.6391223073005676, -0.10860089957714081, 0.4684250056743622, 0.4350875914096832, -0.4187026023864746, 0.5402930378913879, 0.40575337409973145, -0.4369955062866211, -0.8789336681365967, -0.19384950399398804, -1.0638614892959595, -0.2036338448524475, 0.7909988760948181, -0.381374329328537, -0.6865618228912354, 0.45845064520835876, 0.05289497226476669, 0.5554651021957397, -0.061090610921382904, 0.5474663376808167, 0.13638098537921906, -0.21421591937541962, -0.6891887187957764, -0.48918113112449646, 0.4400862157344818, 0.1562463939189911, -0.5943974256515503, -0.5219983458518982, 0.02584213949739933, 0.7002516388893127, 0.4035043716430664, 0.4521571099758148, -0.08256873488426208, 0.18860357999801636, 0.22644786536693573, 0.491261750459671, -0.46328309178352356, -0.2324325144290924, -0.42787742614746094, 0.10973922908306122, -0.07488477975130081, -0.602897584438324 ]
timm/selecsls42b.in1k
timm
"2023-04-25T00:28:59Z"
40,486
0
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "arxiv:1907.00837", "license:cc-by-4.0", "region:us" ]
image-classification
"2023-04-25T00:28:28Z"
--- tags: - image-classification - timm library_name: timm license: cc-by-4.0 datasets: - imagenet-1k --- # Model card for selecsls42b.in1k A SelecSLS image classification model. Trained on ImageNet-1k by paper authors. ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 32.5 - GMACs: 3.0 - Activations (M): 4.6 - Image size: 224 x 224 - **Papers:** - XNect: Real-time Multi-Person 3D Motion Capture with a Single RGB Camera: https://arxiv.org/abs/1907.00837 - **Dataset:** ImageNet-1k - **Original:** https://github.com/mehtadushy/SelecSLS-Pytorch ## 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('selecsls42b.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( 'selecsls42b.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, 112, 112]) # torch.Size([1, 128, 56, 56]) # torch.Size([1, 288, 28, 28]) # torch.Size([1, 480, 14, 14]) # torch.Size([1, 1024, 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( 'selecsls42b.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, 1024, 4, 4) 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{XNect_SIGGRAPH2020, author = {Mehta, Dushyant and Sotnychenko, Oleksandr and Mueller, Franziska and Xu, Weipeng and Elgharib, Mohamed and Fua, Pascal and Seidel, Hans-Peter and Rhodin, Helge and Pons-Moll, Gerard and Theobalt, Christian}, title = {{XNect}: Real-time Multi-Person {3D} Motion Capture with a Single {RGB} Camera}, journal = {ACM Transactions on Graphics}, url = {http://gvv.mpi-inf.mpg.de/projects/XNect/}, numpages = {17}, volume={39}, number={4}, month = July, year = {2020}, doi={10.1145/3386569.3392410} } ```
[ -0.476765900850296, -0.4566139280796051, 0.13993436098098755, 0.19598440825939178, -0.30905529856681824, -0.3353797495365143, -0.0778248980641365, -0.43229666352272034, 0.3674032688140869, 0.4290279150009155, -0.576309859752655, -0.7244465351104736, -0.7073784470558167, -0.10569890588521957, -0.23362652957439423, 0.9214573502540588, -0.11972597986459732, -0.11820029467344284, -0.08982817083597183, -0.5528574585914612, -0.0281173437833786, -0.44786199927330017, -0.8025436997413635, -0.3322508633136749, 0.3247576653957367, 0.18276812136173248, 0.5953265428543091, 0.6065773963928223, 0.5081735849380493, 0.46654191613197327, -0.0770079642534256, 0.025402041152119637, -0.22586487233638763, -0.2684703469276428, 0.42203661799430847, -0.472738653421402, -0.5399416089057922, 0.24377474188804626, 0.7837163209915161, 0.4259980618953705, 0.0072352043353021145, 0.3826715648174286, 0.11632417887449265, 0.47924521565437317, -0.22410377860069275, 0.0013626192230731249, -0.17324675619602203, 0.28990286588668823, -0.09577451646327972, 0.07908330112695694, -0.13198933005332947, -0.4813937544822693, 0.28176844120025635, -0.5152056813240051, 0.5503103733062744, -0.026470227167010307, 1.245978593826294, 0.1679442673921585, -0.02518550120294094, -0.015815863385796547, -0.18500916659832, 0.7253630757331848, -0.8705111742019653, 0.2979098856449127, 0.2405487596988678, 0.13426734507083893, -0.002911436138674617, -0.839853823184967, -0.6004692912101746, -0.20974278450012207, -0.12810812890529633, -0.019164543598890305, -0.0120342206209898, -0.046361226588487625, 0.3629748821258545, 0.2310742288827896, -0.5460451245307922, 0.04790664091706276, -0.634796142578125, -0.17165479063987732, 0.7142404317855835, 0.051803234964609146, 0.3525019586086273, -0.3019896447658539, -0.6230868697166443, -0.548324465751648, -0.2784024775028229, 0.30619150400161743, 0.3737233579158783, 0.21984504163265228, -0.7836208939552307, 0.46653345227241516, 0.20787864923477173, 0.49859166145324707, 0.045021120458841324, -0.4080066382884979, 0.7228879332542419, 0.059340525418519974, -0.4231683313846588, -0.035371579229831696, 1.1151185035705566, 0.4161205589771271, 0.17677295207977295, 0.09968774020671844, 0.04571942985057831, -0.34011563658714294, -0.17810580134391785, -1.0915169715881348, -0.3162831962108612, 0.4197957217693329, -0.5142591595649719, -0.2901659905910492, 0.4166293144226074, -0.7708316445350647, -0.23928865790367126, -0.044930413365364075, 0.5344370007514954, -0.4942847788333893, -0.513388454914093, 0.13841038942337036, -0.19778870046138763, 0.3914565145969391, 0.24939998984336853, -0.5645296573638916, 0.19165334105491638, 0.26084136962890625, 1.1361517906188965, -0.05346690118312836, -0.6158795356750488, -0.2356388121843338, -0.19057202339172363, -0.2501685321331024, 0.4286663830280304, 0.07495729625225067, -0.21153172850608826, -0.28376105427742004, 0.38994815945625305, -0.19538910686969757, -0.6965301632881165, 0.24890729784965515, 0.0010871693957597017, 0.27148184180259705, -0.01918407343327999, -0.22978536784648895, -0.47455915808677673, 0.35842961072921753, -0.4537772834300995, 1.2221089601516724, 0.32399800419807434, -0.7393637895584106, 0.3261502981185913, -0.477802574634552, -0.19716890156269073, -0.29366371035575867, -0.0821763128042221, -1.139836311340332, -0.10415367782115936, 0.22173435986042023, 0.8455051183700562, -0.19218088686466217, -0.014860443770885468, -0.6577132344245911, -0.19472256302833557, 0.3556267321109772, 0.004147433675825596, 1.0283141136169434, 0.12013013660907745, -0.41588154435157776, 0.17284412682056427, -0.6171190142631531, 0.211161807179451, 0.514549195766449, -0.38177403807640076, 0.10201934725046158, -0.6715659499168396, 0.13440357148647308, 0.4412460923194885, 0.04248473048210144, -0.5940881371498108, 0.22616609930992126, -0.10557671636343002, 0.34832942485809326, 0.5821495652198792, -0.20077693462371826, 0.30570754408836365, -0.3961886167526245, 0.4182412922382355, 0.24091178178787231, 0.20446276664733887, -0.1143096461892128, -0.5180554389953613, -0.7745206356048584, -0.5380284190177917, 0.21554577350616455, 0.3950709104537964, -0.39525148272514343, 0.468306303024292, -0.21371737122535706, -0.7230156064033508, -0.4644474685192108, 0.02052205801010132, 0.46344974637031555, 0.439840167760849, 0.33880212903022766, -0.4234456717967987, -0.49522241950035095, -0.7713167667388916, 0.11115935444831848, -0.006191514898091555, -0.07139299809932709, 0.36313968896865845, 0.6697447299957275, -0.03319462388753891, 0.6154588460922241, -0.4131340980529785, -0.24887649714946747, -0.2345573902130127, 0.15238134562969208, 0.36038509011268616, 0.833579421043396, 0.8968096375465393, -0.6588416695594788, -0.5220658779144287, -0.14348465204238892, -1.0386384725570679, 0.1496460735797882, -0.18381325900554657, -0.19608892500400543, 0.3886811137199402, 0.20141585171222687, -0.5348517894744873, 0.6570762991905212, 0.33396387100219727, -0.49200040102005005, 0.4857022166252136, -0.29774177074432373, 0.3865586221218109, -1.0750489234924316, 0.1364116221666336, 0.39677971601486206, -0.24251273274421692, -0.4861312508583069, -0.014079209417104721, -0.005317165050655603, -0.10873647779226303, -0.6807698607444763, 0.7149184942245483, -0.6256089210510254, -0.3349423408508301, -0.009116296656429768, -0.09351945668458939, 0.05517717823386192, 0.9027108550071716, 0.09977485239505768, 0.22082851827144623, 0.8084895610809326, -0.6430962681770325, 0.458132803440094, 0.47584256529808044, -0.16683708131313324, 0.4888688921928406, -0.6296681761741638, 0.2239200323820114, 0.03520052507519722, 0.05523993447422981, -0.8734368085861206, -0.2551804482936859, 0.3681029677391052, -0.6106252670288086, 0.6154645681381226, -0.5158417820930481, -0.35375234484672546, -0.6049473881721497, -0.5320519208908081, 0.3357522785663605, 0.675022542476654, -0.7624609470367432, 0.5036146640777588, 0.3026266396045685, 0.2497996836900711, -0.4579993486404419, -0.9360465407371521, -0.29997602105140686, -0.4283389449119568, -0.7708545923233032, 0.31022170186042786, 0.06849107146263123, 0.165716290473938, 0.13593585789203644, -0.13042640686035156, -0.0987711176276207, -0.20108024775981903, 0.5367733836174011, 0.41101276874542236, -0.23583805561065674, -0.26393067836761475, -0.37953558564186096, -0.06992997229099274, 0.0747426375746727, -0.14450663328170776, 0.5728896856307983, -0.21187527477741241, -0.3720223307609558, -0.8744133710861206, 0.003460008418187499, 0.5615288019180298, 0.049784135073423386, 0.7896637916564941, 1.038847804069519, -0.46699485182762146, 0.0683903768658638, -0.4035552442073822, -0.24133099615573883, -0.4689297676086426, 0.5668235421180725, -0.41010406613349915, -0.44496190547943115, 0.8317710161209106, 0.06588741391897202, 0.08308299630880356, 0.6136379241943359, 0.3697357773780823, -0.16291490197181702, 0.8298195004463196, 0.5494813323020935, 0.2587353587150574, 0.6186423897743225, -1.031349778175354, -0.19239574670791626, -0.9154995679855347, -0.5435656309127808, -0.34421461820602417, -0.5541595220565796, -0.5278979539871216, -0.43570929765701294, 0.47236430644989014, 0.2510717511177063, -0.4686739146709442, 0.5159628391265869, -0.7465007305145264, 0.0922403559088707, 0.632597804069519, 0.592292308807373, -0.3809695541858673, 0.25951042771339417, -0.23696695268154144, -0.03280327096581459, -0.7355891466140747, -0.25542426109313965, 0.9655049443244934, 0.4728507697582245, 0.7441394925117493, -0.037445567548274994, 0.7293747067451477, -0.20243273675441742, 0.19045671820640564, -0.4656856060028076, 0.681115984916687, -0.12991692125797272, -0.4500882625579834, -0.22359700500965118, -0.3526780605316162, -0.9518414735794067, 0.20629900693893433, -0.37908685207366943, -0.7634301781654358, 0.19256843626499176, 0.25019600987434387, -0.42680588364601135, 0.8535386323928833, -0.8169860243797302, 1.0038697719573975, -0.30329352617263794, -0.517181396484375, 0.10690230131149292, -0.7095635533332825, 0.26243725419044495, 0.19878394901752472, -0.30036991834640503, -0.21470679342746735, 0.2922653555870056, 1.1344819068908691, -0.5702493786811829, 0.8392192125320435, -0.519281804561615, 0.3063909113407135, 0.5104020833969116, -0.08002068847417831, 0.2516407072544098, -0.11282048374414444, -0.07556711882352829, 0.4467529058456421, 0.18241091072559357, -0.4454309642314911, -0.4862222671508789, 0.5356612205505371, -0.943600594997406, -0.31100013852119446, -0.4634929299354553, -0.4102188050746918, 0.20365458726882935, -0.010533097200095654, 0.4989967942237854, 0.6431999802589417, 0.13010410964488983, 0.2213679701089859, 0.5341272354125977, -0.5242500305175781, 0.4805335998535156, -0.05351472645998001, -0.3409351110458374, -0.5222130417823792, 0.7801963090896606, 0.18812543153762817, 0.22161565721035004, 0.06567107886075974, 0.19543755054473877, -0.414103239774704, -0.4274558126926422, -0.3061668872833252, 0.5098584294319153, -0.6202310919761658, -0.3650133013725281, -0.6644850373268127, -0.46361371874809265, -0.5954394340515137, -0.2527991831302643, -0.4576416015625, -0.3823206126689911, -0.4174978733062744, 0.15516912937164307, 0.5802571773529053, 0.5529699325561523, -0.2751743793487549, 0.5038344860076904, -0.7083375453948975, 0.2313363403081894, 0.2323613464832306, 0.37370818853378296, -0.17930591106414795, -0.8811310529708862, -0.2675083875656128, -0.1049804538488388, -0.38002023100852966, -0.7442944645881653, 0.6179458498954773, 0.1411546766757965, 0.5722050070762634, 0.3721214532852173, -0.23607651889324188, 0.9462354183197021, 0.05832712724804878, 0.6016768217086792, 0.48315393924713135, -0.6580548882484436, 0.6269314885139465, -0.02278786338865757, 0.31489747762680054, 0.03819350525736809, 0.3262039124965668, -0.41667085886001587, -0.020801465958356857, -0.9929633140563965, -0.7280564904212952, 1.114656686782837, 0.1181696280837059, -0.13454465568065643, 0.3830166161060333, 0.7253880500793457, -0.03331896662712097, 0.01396949589252472, -0.7574867606163025, -0.37416836619377136, -0.37349390983581543, -0.30063730478286743, 0.0245064590126276, -0.09865657985210419, -0.00402657687664032, -0.6516686677932739, 0.7622283697128296, -0.13019876182079315, 0.7830716371536255, 0.4657382667064667, -0.06730180233716965, -0.09631208330392838, -0.43447479605674744, 0.4916234016418457, 0.23608329892158508, -0.32210785150527954, 0.009329162538051605, 0.3365039825439453, -0.5690861940383911, 0.07099868357181549, 0.10223159939050674, 0.08923104405403137, -0.04288173466920853, 0.49544164538383484, 0.9374079704284668, 0.0585133358836174, -0.011399415321648121, 0.4155299663543701, -0.008910252712666988, -0.4840986132621765, -0.2866085469722748, 0.14504562318325043, -0.06535684317350388, 0.5153562426567078, 0.27074742317199707, 0.31376370787620544, -0.27255067229270935, -0.27220577001571655, 0.23878596723079681, 0.5068535208702087, -0.2784014344215393, -0.5648586750030518, 0.7078695297241211, -0.15401963889598846, -0.17253319919109344, 0.8889793753623962, -0.08464346826076508, -0.5420987606048584, 1.1554526090621948, 0.4205605685710907, 0.96783047914505, -0.17647068202495575, 0.09664259850978851, 1.018656849861145, 0.16075363755226135, -0.033849235624074936, 0.1756279021501541, 0.07095412164926529, -0.8291112780570984, 0.07498364895582199, -0.5900448560714722, -0.060256294906139374, 0.3318905830383301, -0.5276232361793518, 0.45192673802375793, -0.6285174489021301, -0.30828943848609924, 0.014365965500473976, 0.2930504083633423, -0.9083157777786255, 0.20285645127296448, 0.16146962344646454, 0.7954697608947754, -0.772951602935791, 0.817598283290863, 0.7852793335914612, -0.541949987411499, -0.9854757189750671, -0.11395625025033951, 0.11063366383314133, -0.945821225643158, 0.511962354183197, 0.4881976842880249, 0.02408597804605961, 0.029209906235337257, -0.7664953470230103, -0.6512052416801453, 1.4384551048278809, 0.60700923204422, -0.1143684834241867, 0.1596347838640213, 0.06534025073051453, 0.14769914746284485, -0.40300795435905457, 0.3704109787940979, 0.2714756727218628, 0.424765020608902, 0.39930784702301025, -0.6951218247413635, 0.131944939494133, -0.20927421748638153, 0.007879145443439484, 0.22579948604106903, -0.7856161594390869, 0.9492500424385071, -0.6548324823379517, -0.27538368105888367, 0.04415842890739441, 0.6730785965919495, 0.3923361003398895, 0.13771776854991913, 0.5844755172729492, 0.85799241065979, 0.5646466016769409, -0.27992433309555054, 0.860471248626709, -0.013198239728808403, 0.699225902557373, 0.7171201109886169, 0.1919908970594406, 0.4642654359340668, 0.32074442505836487, -0.3132644295692444, 0.28387030959129333, 0.982876181602478, -0.3148055672645569, 0.3092610239982605, 0.07748229056596756, 0.019157277420163155, -0.157957062125206, 0.2652788758277893, -0.360169917345047, 0.45582711696624756, 0.18152132630348206, -0.37220415472984314, -0.2361139953136444, 0.1957525610923767, 0.1370864361524582, -0.3498503565788269, -0.1467629075050354, 0.46565666794776917, -0.06153595447540283, -0.41924238204956055, 0.7630279064178467, -0.05453011021018028, 0.8550093173980713, -0.5259138941764832, -0.016711408272385597, -0.2699674665927887, 0.2647972106933594, -0.3980342447757721, -0.9541307091712952, 0.32356736063957214, -0.2948758900165558, 0.14316129684448242, -0.06623218953609467, 0.5573254227638245, -0.4457587003707886, -0.4452342092990875, 0.2922983765602112, 0.3319126069545746, 0.6539471745491028, 0.03997214883565903, -1.2409900426864624, 0.18055525422096252, 0.16452556848526, -0.5792893171310425, 0.2416861653327942, 0.3837987780570984, 0.17078429460525513, 0.7065592408180237, 0.5334136486053467, -0.12450333684682846, 0.2971160411834717, -0.220052108168602, 0.6931101679801941, -0.6534527540206909, -0.3354051113128662, -0.7927771806716919, 0.7041577696800232, -0.12891265749931335, -0.6055494546890259, 0.6066865921020508, 0.6120782494544983, 0.8910706043243408, -0.034509189426898956, 0.47023338079452515, -0.37994086742401123, 0.12431632727384567, -0.4977329969406128, 0.6640374064445496, -0.644818127155304, -0.08288881927728653, -0.1865975260734558, -0.6752041578292847, -0.43921589851379395, 0.7893076539039612, -0.1169976145029068, 0.4160597622394562, 0.5568229556083679, 1.0290758609771729, -0.33824777603149414, -0.3911559581756592, 0.32993146777153015, 0.14472977817058563, 0.14667120575904846, 0.43188273906707764, 0.41325643658638, -0.7611134052276611, 0.3402850925922394, -0.6530526280403137, -0.18450847268104553, -0.14655092358589172, -0.6544784903526306, -0.9724425077438354, -0.9020509123802185, -0.805941104888916, -0.6411188840866089, -0.26594606041908264, 0.9812249541282654, 1.2007232904434204, -0.7171030640602112, -0.2231324017047882, 0.1684775948524475, 0.048635054379701614, -0.30595970153808594, -0.21294671297073364, 0.6790652275085449, 0.007865690626204014, -0.9039461612701416, -0.2952636480331421, 0.052409470081329346, 0.5257295370101929, -0.1257302463054657, -0.4231668710708618, -0.2692190706729889, -0.29327356815338135, 0.2532399594783783, 0.4699579179286957, -0.6040494441986084, -0.21211999654769897, -0.28741127252578735, -0.09833216667175293, 0.48147836327552795, 0.4992104470729828, -0.6303360462188721, 0.267902672290802, 0.43132442235946655, 0.2166268229484558, 0.9763630628585815, -0.2815382778644562, -0.051093969494104385, -0.8301637768745422, 0.5494332909584045, -0.18544356524944305, 0.5375626087188721, 0.4578680992126465, -0.33599579334259033, 0.6944487690925598, 0.39224135875701904, -0.4760473370552063, -0.7728193402290344, -0.18867631256580353, -1.1149276494979858, -0.14432844519615173, 0.8975129723548889, -0.4229145646095276, -0.562135636806488, 0.3570435643196106, -0.10522688925266266, 0.5934171080589294, -0.06267523020505905, 0.4669909179210663, 0.18045198917388916, -0.2959342300891876, -0.6689886450767517, -0.4655788242816925, 0.3675574064254761, 0.025261443108320236, -0.7254043817520142, -0.3909417986869812, 0.07835579663515091, 0.6653164625167847, 0.3429843783378601, 0.6242977380752563, -0.25874394178390503, 0.09586180746555328, 0.026953140273690224, 0.6324570178985596, -0.3177167773246765, -0.14281347393989563, -0.44312870502471924, 0.1404668688774109, -0.28962242603302, -0.637686550617218 ]
sbcBI/sentiment_analysis_model
sbcBI
"2022-05-16T18:37:13Z"
40,485
3
transformers
[ "transformers", "pytorch", "distilbert", "text-classification", "exbert", "en", "dataset:Confidential", "arxiv:1810.04805", "license:apache-2.0", "endpoints_compatible", "has_space", "region:us" ]
text-classification
"2022-05-04T05:33:05Z"
--- language: en tags: - exbert license: apache-2.0 datasets: - Confidential --- # BERT base model (uncased) Pretrained model on English language using a masked language modeling (MLM) objective. It was introduced in [this paper](https://arxiv.org/abs/1810.04805) and first released in [this repository](https://github.com/google-research/bert). This model is uncased: it does not make a difference between english and English. ## Model description BERT is a transformers model pretrained on a large corpus of English data in a self-supervised fashion. This means it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it was pretrained with two objectives: - Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run the entire masked sentence through the model and has to predict the masked words. This is different from traditional recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the sentence. - Next sentence prediction (NSP): the models concatenates two masked sentences as inputs during pretraining. Sometimes they correspond to sentences that were next to each other in the original text, sometimes not. The model then has to predict if the two sentences were following each other or not. This way, the model learns an inner representation of the English language that can then be used to extract features useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard classifier using the features produced by the BERT model as inputs. ## Model description [sbcBI/sentiment_analysis] This is a fine-tuned downstream version of the bert-base-uncased model for sentiment analysis, this model is not intended for further downstream fine-tuning for any other tasks. This model is trained on a classified dataset for text-classification.
[ -0.39470311999320984, -0.6319289207458496, 0.1848326474428177, 0.3170677721500397, -0.33419379591941833, 0.05461324006319046, -0.3239058256149292, -0.48410120606422424, 0.22087539732456207, 0.754357099533081, -0.7662301063537598, -0.32878434658050537, -0.6168429851531982, -0.022885141894221306, -0.31340160965919495, 1.3155947923660278, 0.14692889153957367, 0.17556992173194885, -0.16370835900306702, 0.3102790415287018, -0.4231550991535187, -0.9196392297744751, -0.35859718918800354, -0.4593437612056732, 0.3173542618751526, 0.02749146707355976, 0.49232223629951477, 0.22256138920783997, 0.4896094799041748, 0.3226846158504486, -0.05720119550824165, -0.11729300022125244, -0.3775416314601898, -0.06934937834739685, 0.0341617651283741, -0.35881713032722473, -0.20813630521297455, 0.2864171266555786, 0.5596625208854675, 0.8110973834991455, 0.1457120180130005, -0.003007311373949051, 0.26573362946510315, 0.656808614730835, -0.5571673512458801, 0.23897016048431396, -0.6999426484107971, 0.1294361650943756, -0.07871238142251968, 0.021758398041129112, -0.4928189218044281, -0.2159338891506195, 0.4839440584182739, 0.024431617930531502, 0.2661497890949249, -0.10446441918611526, 1.0829771757125854, 0.04724984988570213, -0.32396215200424194, -0.3675176799297333, -0.5836478471755981, 0.9118766784667969, -0.8485413789749146, 0.3608129918575287, 0.3077627420425415, 0.060322366654872894, -0.09591886401176453, -0.8704706430435181, -0.4541057050228119, -0.31156212091445923, -0.3597252070903778, 0.22377634048461914, -0.1882861703634262, 0.2684316635131836, 0.03483293205499649, 0.19280469417572021, -0.5662142038345337, 0.05508697032928467, -0.477283239364624, -0.17976424098014832, 0.5887674689292908, -0.31006863713264465, 0.11345984041690826, -0.3277200162410736, -0.6681211590766907, 0.11987785249948502, -0.6152202486991882, 0.22468452155590057, 0.3847416937351227, 0.475616455078125, -0.053340278565883636, 0.5581517815589905, 0.10599415749311447, 0.6182990074157715, 0.14248976111412048, 0.03500011935830116, 0.4211307764053345, -0.003455747151747346, -0.4115413427352905, 0.14703066647052765, 0.6830100417137146, 0.10577738285064697, 0.5952929258346558, -0.28431910276412964, -0.4058828055858612, -0.02122632786631584, 0.40669143199920654, -0.6999305486679077, -0.17742666602134705, 0.1150965541601181, -0.6287322044372559, -0.412383109331131, 0.12423518300056458, -0.26058048009872437, 0.19021287560462952, -0.22792525589466095, 0.7232100963592529, -0.3397265374660492, -0.05030659958720207, 0.008960278704762459, 0.04703959822654724, 0.2433282881975174, -0.07065924257040024, -0.9143773913383484, 0.35586127638816833, 0.6111319065093994, 0.6150270104408264, -0.2741963267326355, -0.1831255704164505, 0.07625126838684082, -0.0831841453909874, -0.21108782291412354, 0.5539078116416931, -0.3915320634841919, -0.14614947140216827, 0.2085721343755722, 0.3058894872665405, -0.12552811205387115, -0.14342112839221954, 0.44831112027168274, -0.5962193608283997, 0.46634626388549805, -0.10137143731117249, -0.6619141101837158, -0.4070837199687958, 0.13316234946250916, -0.45308274030685425, 1.120267391204834, -0.12314270436763763, -0.7333310842514038, 0.29722097516059875, -0.6383305788040161, -0.5435634851455688, 0.02833402156829834, 0.15706688165664673, -0.37164241075515747, 0.18736425042152405, 0.21218609809875488, 0.6641246676445007, 0.11432038247585297, 0.4963791072368622, -0.03044324554502964, -0.37503835558891296, 0.28737372159957886, -0.48675301671028137, 0.9863198399543762, 0.07160333544015884, -0.4622672200202942, 0.0017111290944740176, -0.692039966583252, 0.2135942578315735, 0.010217085480690002, -0.27413854002952576, -0.30928221344947815, 0.13874714076519012, 0.11279802024364471, 0.29561370611190796, 0.4502960443496704, -0.5809327960014343, -0.03781368210911751, -0.6180707216262817, 0.3566085398197174, 0.8845676183700562, -0.11632683128118515, 0.3553059995174408, -0.16412609815597534, 0.3265986740589142, -0.11779636144638062, 0.11037742346525192, -0.2609448730945587, -0.7120583653450012, -0.8995630145072937, -0.2553400993347168, 0.6530582308769226, 0.7044020891189575, -0.3556480407714844, 0.9180522561073303, 0.06556403636932373, -0.2798975110054016, -0.726914644241333, 0.07639806717634201, 0.4829082190990448, 0.43421170115470886, 0.3310357332229614, -0.4721519649028778, -0.853532075881958, -1.1604833602905273, 0.11614029854536057, -0.055124178528785706, -0.022826742380857468, -0.009726634249091148, 0.5840966701507568, -0.40199822187423706, 0.9740709662437439, -0.2897447943687439, -0.3493092954158783, -0.5478047132492065, 0.38395851850509644, 0.24151016771793365, 0.6135829091072083, 0.5068718791007996, -0.6114181876182556, -0.5704677104949951, -0.26076093316078186, -0.5950719714164734, -0.18032637238502502, -0.07645272463560104, -0.11515619605779648, 0.38041937351226807, 0.4065517485141754, -0.5554265975952148, 0.5266229510307312, 0.724184513092041, 0.03578409552574158, 0.42655402421951294, -0.23008964955806732, -0.25492268800735474, -1.156522274017334, -0.0822439193725586, -0.21578383445739746, -0.20706236362457275, -0.7178229093551636, -0.10667379945516586, 0.021605173125863075, -0.12289280444383621, -0.43799304962158203, 0.32905587553977966, -0.60981285572052, -0.11826882511377335, -0.38567379117012024, -0.16281472146511078, -0.01759110577404499, 0.8167787790298462, 0.4212133288383484, 0.6267918348312378, 0.6102712750434875, -0.503898561000824, 0.137352854013443, 0.1571991741657257, -0.4849758446216583, -0.046233296394348145, -0.7950080037117004, 0.17977525293827057, -0.18997123837471008, 0.1251324713230133, -1.1622323989868164, 0.2170770764350891, -0.06954292953014374, -0.6454159021377563, 0.49356675148010254, 0.18398788571357727, -0.3414522707462311, -0.4705577492713928, -0.22089481353759766, 0.05737459659576416, 0.7788174152374268, -0.40340685844421387, 0.5128094553947449, 0.40928858518600464, -0.28092411160469055, -0.8373072743415833, -0.9457175135612488, -0.0582108274102211, 0.18170294165611267, -0.5457178354263306, 0.3801346719264984, -0.13217508792877197, -0.04055164381861687, 0.13985389471054077, 0.022424673661589622, -0.2626481354236603, 0.015979010611772537, 0.32645413279533386, 0.3702474534511566, -0.29243242740631104, 0.16540946066379547, 0.07731043547391891, -0.12645509839057922, 0.1799888163805008, -0.1576126664876938, 0.5703214406967163, -0.14747999608516693, -0.13575512170791626, -0.3508085310459137, 0.5566083788871765, 0.11696362495422363, -0.16104023158550262, 0.8968620896339417, 0.6573485136032104, -0.4477846324443817, -0.28995925188064575, -0.6743217706680298, -0.2980060577392578, -0.479728102684021, 0.4201464354991913, -0.35160982608795166, -0.9104159474372864, 0.4145408570766449, 0.3047073781490326, 0.09921110421419144, 0.4799495041370392, 0.7112523913383484, -0.5433937907218933, 0.9700796604156494, 1.0142223834991455, -0.16663405299186707, 0.3532888889312744, -0.06336184591054916, 0.39101457595825195, -0.6168510913848877, -0.31546929478645325, -0.3901441991329193, -0.3491370677947998, -0.5851158499717712, -0.10863713175058365, -0.027357548475265503, 0.16247256100177765, -0.08320383727550507, 0.460426390171051, -0.6020494699478149, 0.4472042918205261, 0.9285938143730164, 0.08612477034330368, -0.0024318427313119173, 0.12037395685911179, -0.300640344619751, -0.3121315538883209, -0.5409572720527649, -0.5288873314857483, 1.1797930002212524, 0.5029824376106262, 0.6649252772331238, -0.16615518927574158, 0.6860775947570801, 0.48996293544769287, 0.31470787525177, -0.7473403215408325, 0.6173712611198425, -0.286601185798645, -0.9377683997154236, -0.07573924213647842, -0.06944935023784637, -1.0243563652038574, 0.1961873173713684, -0.38760244846343994, -0.675794243812561, 0.13381175696849823, -0.02918819896876812, -0.05831817165017128, 0.27889102697372437, -0.9234994649887085, 0.65558922290802, -0.44078120589256287, 0.09186498075723648, 0.15921378135681152, -0.9087336659431458, 0.2595779597759247, -0.18666499853134155, -0.0781925618648529, 0.12000353634357452, 0.27104452252388, 0.8680620789527893, -0.3819787800312042, 1.1330293416976929, -0.12401549518108368, 0.1131381094455719, 0.20565487444400787, -0.2255057692527771, 0.3461818993091583, -0.38751909136772156, 0.21895548701286316, 0.4276096224784851, -0.20012615621089935, -0.34740594029426575, -0.4062408208847046, 0.41596299409866333, -0.8922839164733887, -0.5729832053184509, -0.5783636569976807, -0.4871671199798584, -0.2984665334224701, 0.31937599182128906, 0.4699397385120392, 0.22453708946704865, -0.2638372480869293, 0.40692728757858276, 0.7694451212882996, -0.3362759053707123, 0.5808910131454468, 0.554039716720581, -0.12696674466133118, -0.14204518496990204, 0.4851595461368561, 0.05317278578877449, 0.33397695422172546, 0.6577050089836121, 0.031767960637807846, -0.41885578632354736, -0.5963026285171509, 0.06413894146680832, 0.2639409899711609, -0.6181391477584839, -0.02802012488245964, -0.86142498254776, -0.7477373480796814, -0.7122502326965332, -0.2885911464691162, -0.32769665122032166, -0.3284769654273987, -0.20901072025299072, -0.27719756960868835, 0.12476972490549088, 0.7200473546981812, -0.2815670669078827, 0.40150848031044006, -0.6199101805686951, 0.26980823278427124, 0.46932005882263184, 0.1683093011379242, -0.20053885877132416, -0.566308319568634, -0.24978594481945038, 0.2124427706003189, -0.18595466017723083, -0.8617433905601501, 0.5328179001808167, 0.05766305327415466, 0.7067519426345825, 0.4686409831047058, -0.0655406042933464, 0.5313895344734192, -0.7155576348304749, 0.7098219394683838, 0.21250958740711212, -0.9823920130729675, 0.587982177734375, -0.012794488109648228, 0.14714102447032928, 0.4868684411048889, 0.49806833267211914, -0.2723449766635895, -0.4351257085800171, -0.5530274510383606, -0.9161937236785889, 0.6447068452835083, 0.3570367097854614, 0.4490284323692322, -0.0828094556927681, 0.10849086940288544, 0.1970033049583435, 0.5389792919158936, -1.32725989818573, -0.41807258129119873, -0.31092938780784607, -0.1624128222465515, -0.28370481729507446, -0.642001748085022, 0.11309873312711716, -0.39224007725715637, 0.8111186623573303, 0.30585071444511414, 0.6521483063697815, 0.012927409261465073, -0.2790515720844269, 0.15973007678985596, 0.26037779450416565, 0.536704421043396, 0.3468387722969055, -0.7129688262939453, -0.05018756166100502, -0.03549612686038017, -0.6740704774856567, -0.1458897739648819, 0.18298102915287018, -0.26968440413475037, 0.3825918138027191, 0.4689890742301941, 0.980951189994812, 0.22631657123565674, -0.5934818983078003, 0.6126828193664551, 0.26155543327331543, -0.35775476694107056, -0.529480516910553, -0.17533640563488007, -0.03242119774222374, 0.13635703921318054, 0.5181044936180115, 0.008534926921129227, -0.036396224051713943, -0.6918277144432068, 0.40342921018600464, 0.5832036137580872, -0.5609616637229919, -0.18933461606502533, 0.4864940345287323, 0.24001947045326233, -0.2937878668308258, 0.6053343415260315, -0.03399321064352989, -0.7538231015205383, 0.5992923378944397, 0.7599024772644043, 1.0774273872375488, -0.21804088354110718, 0.3494964838027954, 0.11037974804639816, 0.787412166595459, 0.12088865786790848, 0.14936567842960358, 0.022177092730998993, -0.9892109036445618, -0.5125786066055298, -0.6973990201950073, -0.2766796350479126, 0.43780964612960815, -0.7539701461791992, 0.057637203484773636, -0.37024614214897156, -0.1035560742020607, 0.04556462913751602, 0.054183926433324814, -0.5889077186584473, 0.5660563111305237, 0.19372901320457458, 0.7671972513198853, -0.9265657663345337, 1.009188175201416, 0.5073981881141663, -0.36486169695854187, -0.7649352550506592, -0.07594098895788193, -0.29237523674964905, -1.0418542623519897, 0.9118142127990723, 0.3094371557235718, 0.12392903119325638, -0.04508552700281143, -0.6413807272911072, -0.7541515827178955, 0.6895498633384705, 0.11992360651493073, -0.40609315037727356, -0.24609310925006866, 0.22076405584812164, 0.6205589771270752, -0.6925897002220154, 0.2560165822505951, 0.2115083783864975, 0.27900564670562744, 0.12000514566898346, -0.7668483257293701, -0.2574138045310974, -0.3389231562614441, 0.17529703676700592, 0.0466008186340332, -0.2360404133796692, 1.12105131149292, -0.0370887853205204, -0.03578996658325195, 0.012322788126766682, 0.5569418668746948, -0.0530305914580822, -0.07353629171848297, 0.3835631310939789, 0.5303339958190918, 0.459869384765625, -0.23345790803432465, 0.9257597923278809, -0.2402554452419281, 0.4121206998825073, 1.1526364088058472, -0.24759911000728607, 0.979728639125824, 0.32708021998405457, -0.08180020749568939, 0.7204502820968628, 0.7336735725402832, -0.15235388278961182, 0.9423913359642029, 0.09060369431972504, -0.044178079813718796, -0.08012121170759201, 0.1468697190284729, -0.5789801478385925, 0.44055503606796265, 0.19917573034763336, -0.7082707285881042, -0.18001915514469147, 0.19615110754966736, 0.05648767575621605, -0.10937456041574478, -0.39625105261802673, 0.7106044888496399, -0.03105534240603447, -0.5894388556480408, 0.4118426442146301, 0.10411025583744049, 0.9302826523780823, -0.9280564188957214, 0.18114298582077026, -0.12232714891433716, 0.09519254416227341, -0.06985119730234146, -0.6388698220252991, 0.32574453949928284, 0.025824755430221558, -0.4026009142398834, -0.4746197462081909, 0.9122029542922974, -0.5785344243049622, -0.7356582880020142, 0.26245149970054626, 0.39491045475006104, 0.30800938606262207, -0.052640173584222794, -0.9549893140792847, -0.22686399519443512, 0.10151716321706772, -0.41637521982192993, 0.2686064541339874, 0.2890843451023102, 0.12751805782318115, 0.6379827857017517, 0.6671515107154846, 0.09994861483573914, 0.1551118642091751, 0.072414830327034, 0.6989291906356812, -0.6357700824737549, -0.5867382884025574, -0.6750954389572144, 0.6519075632095337, 0.0037529191467911005, -0.07769379019737244, 0.752569317817688, 0.45213210582733154, 0.8050034642219543, -0.3748278021812439, 0.8033895492553711, 0.024931220337748528, 0.6574535965919495, -0.5759469866752625, 0.7067505121231079, -0.4375188648700714, -0.004832599777728319, -0.3895009160041809, -1.0077741146087646, -0.1519084870815277, 0.980025053024292, -0.14745023846626282, 0.26450809836387634, 0.8584110140800476, 0.6751958131790161, 0.10667183250188828, -0.10467442870140076, 0.38778501749038696, 0.30503690242767334, -0.1934654861688614, 0.40701428055763245, 0.5215975642204285, -0.3180028796195984, 0.41379815340042114, -0.36338552832603455, -0.145880326628685, -0.05350399389863014, -0.8656550049781799, -1.3549566268920898, -0.6363615989685059, -0.2474268078804016, -0.3379257917404175, 0.20305483043193817, 0.7174037098884583, 0.8846133947372437, -1.0869548320770264, -0.2209368646144867, -0.13465900719165802, -0.055756956338882446, -0.12114773690700531, -0.28282248973846436, 0.3292040526866913, -0.47533050179481506, -0.7496976256370544, 0.17938560247421265, 0.2408953309059143, 0.17156119644641876, -0.4853638708591461, 0.1748114675283432, -0.5400516390800476, 0.34072455763816833, 0.7195382118225098, 0.07981207966804504, -0.6469978094100952, -0.2269248366355896, -0.0015422626165673137, -0.1970493495464325, -0.007179439999163151, 0.6670965552330017, -0.7552618980407715, 0.4409368336200714, 0.26337772607803345, 0.6956116557121277, 0.5254480838775635, -0.20618543028831482, 0.6293517351150513, -1.1203902959823608, 0.3995954692363739, 0.3441663384437561, 0.31365278363227844, 0.16801989078521729, -0.39172592759132385, 0.3343295753002167, 0.2186945080757141, -0.3980417549610138, -0.8264817595481873, 0.18321090936660767, -1.0283153057098389, -0.4444979727268219, 0.9814628958702087, -0.255260169506073, -0.13313028216362, -0.11815454810857773, -0.1373279094696045, 0.1051044762134552, -0.20691923797130585, 0.7673335075378418, 0.9636861085891724, 0.21374933421611786, -0.33126094937324524, -0.4214739501476288, 0.4880567789077759, 0.4665146768093109, -0.5146300196647644, -0.4739287197589874, 0.1727195829153061, 0.21851930022239685, 0.1309877187013626, 0.6608369946479797, 0.05834035575389862, -0.04268328845500946, -0.30994388461112976, 0.4893645942211151, 0.03894169256091118, -0.30084338784217834, -0.137064591050148, 0.20032335817813873, -0.3951015770435333, -0.5497502088546753 ]
timm/gmixer_24_224.ra3_in1k
timm
"2023-03-27T23:01:06Z"
40,400
0
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "license:apache-2.0", "region:us" ]
image-classification
"2023-03-27T23:00:47Z"
--- tags: - image-classification - timm library_tag: timm license: apache-2.0 datasets: - imagenet-1k --- # Model card for gmixer_24_224.ra3_in1k A G-Mixer image classification model. Trained on ImageNet-1k in `timm` by Ross Wightman. This is a custom `timm` model variant based on MLP-Mixer but using SwiGLU. ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 24.7 - GMACs: 5.3 - Activations (M): 14.5 - Image size: 224 x 224 - **Papers:** - **Original:** https://github.com/huggingface/pytorch-image-models - **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('gmixer_24_224.ra3_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( 'gmixer_24_224.ra3_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, 196, 384) 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}} } ```
[ -0.559600293636322, -0.4053274989128113, 0.11977921426296234, 0.08874700963497162, -0.3092940151691437, -0.23373755812644958, 0.007952449843287468, -0.4507887065410614, 0.290534645318985, 0.3223488926887512, -0.5990231037139893, -0.7149491310119629, -0.8162117600440979, -0.12721966207027435, -0.1717797964811325, 1.102206826210022, -0.17425547540187836, 0.03862276300787926, -0.248063862323761, -0.5179088711738586, -0.16134965419769287, -0.3683493733406067, -0.9228187203407288, -0.6786062121391296, 0.4408033788204193, 0.15270382165908813, 0.7602328062057495, 0.48443180322647095, 0.5309369564056396, 0.425530344247818, -0.1605888307094574, -0.07096052914857864, -0.24936318397521973, -0.2883593738079071, 0.38109084963798523, -0.6495952606201172, -0.6488668918609619, 0.4253115952014923, 0.6664677262306213, 0.3926277160644531, -0.023053698241710663, 0.3837231397628784, 0.1577921062707901, 0.40387654304504395, -0.23607611656188965, 0.05604442581534386, -0.41797810792922974, 0.3982286751270294, -0.050690531730651855, 0.05211068317294121, -0.3503192067146301, -0.43355458974838257, 0.0846274271607399, -0.5578688979148865, 0.5572096109390259, 0.014410273171961308, 1.346606731414795, 0.1074761301279068, -0.037740714848041534, -0.006685903761535883, -0.34827640652656555, 0.7399014830589294, -0.8997032642364502, 0.16475829482078552, 0.3804234564304352, 0.3231319785118103, -0.07945077121257782, -1.0132925510406494, -0.5354903936386108, -0.06529396772384644, -0.1734960973262787, 0.013334209099411964, -0.3234564960002899, 0.09567948430776596, 0.3607181906700134, 0.3756321966648102, -0.5963422060012817, 0.02764582820236683, -0.6268647313117981, -0.16974641382694244, 0.48636767268180847, 0.13537800312042236, 0.3535243570804596, -0.10889904946088791, -0.4258391559123993, -0.45182785391807556, -0.32679805159568787, 0.10633496195077896, 0.5376301407814026, 0.10222309082746506, -0.6623464226722717, 0.49845147132873535, 0.23916280269622803, 0.5085828900337219, 0.15217263996601105, -0.3009415566921234, 0.69649738073349, 0.14347700774669647, -0.4873543083667755, -0.19986452162265778, 1.1793712377548218, 0.42023375630378723, 0.22833868861198425, -0.039041247218847275, -0.13245472311973572, -0.2647235095500946, -0.09001638740301132, -1.319474697113037, -0.325592577457428, 0.3744252622127533, -0.5310425758361816, -0.4782489538192749, 0.2623853385448456, -0.5787376761436462, -0.024561330676078796, -0.05904608219861984, 0.7335650324821472, -0.4100780189037323, -0.31608709692955017, 0.0001394586288370192, -0.25478309392929077, 0.2919444441795349, 0.14679285883903503, -0.5968852639198303, 0.3448607623577118, 0.39348942041397095, 1.2794809341430664, 0.11244716495275497, -0.46387237310409546, -0.31698688864707947, -0.30312579870224, -0.2913260757923126, 0.38767579197883606, -0.19851940870285034, -0.30721670389175415, -0.3379543125629425, 0.39220720529556274, -0.27646875381469727, -0.7734596133232117, 0.23644818365573883, -0.23872949182987213, 0.4905470609664917, 0.13065670430660248, -0.26183539628982544, -0.44553786516189575, 0.3040675222873688, -0.39801502227783203, 1.2043801546096802, 0.3790808916091919, -0.9761490821838379, 0.35721516609191895, -0.5712425112724304, -0.07473796606063843, -0.19050732254981995, -0.05317329987883568, -1.0873440504074097, -0.08920431137084961, 0.1412246823310852, 0.6875913739204407, -0.20020759105682373, 0.22115984559059143, -0.6743603348731995, -0.363045871257782, 0.3426058888435364, -0.052642229944467545, 0.9283406734466553, 0.17753198742866516, -0.27566006779670715, 0.2967790961265564, -0.5985382199287415, 0.18746976554393768, 0.4614982306957245, -0.16991077363491058, 0.05250635743141174, -0.6058971881866455, 0.2829400897026062, 0.37460508942604065, -0.029117751866579056, -0.5408985018730164, 0.3805207312107086, -0.18349306285381317, 0.4437471628189087, 0.6111576557159424, -0.11734072864055634, 0.2790291905403137, -0.4680262506008148, 0.5395633578300476, 0.3125285804271698, 0.38369888067245483, 0.13562068343162537, -0.6777542233467102, -0.6986646056175232, -0.498009592294693, 0.37471887469291687, 0.3935653865337372, -0.5192532539367676, 0.3915573060512543, -0.1304677128791809, -0.7043192982673645, -0.5540580749511719, 0.06334128230810165, 0.4031513035297394, 0.5260281562805176, 0.350128173828125, -0.48985669016838074, -0.5042246580123901, -0.9286454319953918, 0.04770221933722496, 0.10741429030895233, -0.12224909663200378, 0.36419549584388733, 0.7514919638633728, -0.3878083825111389, 0.7282229065895081, -0.4425584673881531, -0.24469730257987976, -0.3130183517932892, 0.32081666588783264, 0.665459394454956, 0.7810619473457336, 1.0081416368484497, -0.48549407720565796, -0.5740844011306763, -0.12852968275547028, -0.9291226863861084, 0.07951989769935608, 0.1243242546916008, -0.21580585837364197, 0.23157480359077454, 0.06120215356349945, -0.669335663318634, 0.5729482769966125, 0.42792096734046936, -0.3921738564968109, 0.5301462411880493, -0.2777339518070221, 0.23452800512313843, -1.2577883005142212, 0.16735360026359558, 0.3084104359149933, -0.2245425581932068, -0.4944029152393341, -0.06658361107110977, -0.019800005480647087, -0.07454326003789902, -0.48799464106559753, 0.756788432598114, -0.4452706575393677, -0.0969177782535553, -0.3250809609889984, -0.2187729775905609, 0.043341465294361115, 0.6536152958869934, -0.1818370372056961, 0.49276968836784363, 0.8512120246887207, -0.40859663486480713, 0.38902661204338074, 0.4071969985961914, -0.1358344405889511, 0.45551395416259766, -0.7891685962677002, 0.2518098056316376, -0.06427131593227386, 0.19494092464447021, -1.0048266649246216, -0.3296824097633362, 0.5293096303939819, -0.6561394929885864, 0.6660819053649902, -0.7822769284248352, -0.4593929052352905, -0.5751671195030212, -0.4800781309604645, 0.4667705297470093, 0.7480242848396301, -0.8120155930519104, 0.5766690373420715, 0.18903794884681702, 0.15334543585777283, -0.6034942865371704, -0.8947441577911377, -0.2687465250492096, -0.40021777153015137, -0.7337618470191956, 0.28705742955207825, 0.025487400591373444, 0.09637313336133957, 0.11945267766714096, -0.18474213778972626, -0.0823197215795517, -0.17451949417591095, 0.5315538048744202, 0.5042743682861328, -0.2436395138502121, -0.2570502460002899, -0.22781147062778473, -0.1562812626361847, 0.19506049156188965, -0.19669590890407562, 0.6261393427848816, -0.15818630158901215, -0.13899847865104675, -0.7589429020881653, -0.06597601622343063, 0.58012455701828, 0.09623448550701141, 0.9143978357315063, 1.0739997625350952, -0.5110766291618347, -0.022302905097603798, -0.4284537732601166, -0.277825266122818, -0.5166004300117493, 0.3713185787200928, -0.3844229578971863, -0.39975211024284363, 0.9921673536300659, 0.18707050383090973, -0.018333930522203445, 0.674950361251831, 0.2590605914592743, 0.0381460040807724, 1.1169389486312866, 0.5075966119766235, 0.04332367703318596, 0.6398700475692749, -0.9724410176277161, -0.20641019940376282, -0.8887602090835571, -0.408379465341568, -0.4427093267440796, -0.6043813228607178, -0.6081246733665466, -0.3228641152381897, 0.41389748454093933, 0.11156050860881805, -0.44419798254966736, 0.3617570698261261, -0.7472350001335144, 0.20232915878295898, 0.6058204770088196, 0.40200960636138916, -0.2882194221019745, 0.2624623477458954, -0.4261915981769562, 0.05571307614445686, -0.7802944779396057, -0.2922716736793518, 1.076414704322815, 0.4833759069442749, 0.847904622554779, -0.14230261743068695, 0.6828671097755432, -0.2675159275531769, 0.5517523884773254, -0.6604530215263367, 0.5024150013923645, -0.03674454987049103, -0.49793824553489685, 0.16001364588737488, -0.5450738072395325, -0.9591926336288452, 0.3314492106437683, -0.28803569078445435, -0.8543363809585571, 0.10728268325328827, 0.23364879190921783, -0.03358803689479828, 0.8148914575576782, -0.7981905341148376, 1.044012188911438, -0.0814480260014534, -0.4780271053314209, 0.17278803884983063, -0.5858304500579834, 0.3250296413898468, 0.258044958114624, -0.05171504244208336, -0.17651063203811646, 0.31836575269699097, 1.1084542274475098, -0.6003161668777466, 0.860099732875824, -0.582423210144043, 0.37807711958885193, 0.3597547709941864, -0.04265978932380676, 0.38371777534484863, -0.047142624855041504, -0.0031786870677024126, 0.317450612783432, 0.15474458038806915, -0.37043851613998413, -0.4906313121318817, 0.7027391791343689, -1.12836754322052, -0.3466561436653137, -0.5224013328552246, -0.5380327105522156, 0.04638529196381569, 0.03277279809117317, 0.5947614312171936, 0.6979599595069885, 0.18043732643127441, 0.18368478119373322, 0.4797404110431671, -0.2583947777748108, 0.39490631222724915, -0.01795949786901474, -0.4904059171676636, -0.6974148154258728, 0.6942875981330872, 0.1453995257616043, 0.217036634683609, -0.035253461450338364, 0.24924038350582123, -0.3113909959793091, -0.5299837589263916, -0.32386261224746704, 0.4985176622867584, -0.729279637336731, -0.45288529992103577, -0.6601794958114624, -0.4968984127044678, -0.3340136706829071, -0.0840170830488205, -0.3752579689025879, -0.31786030530929565, -0.3961331248283386, 0.1242401972413063, 0.6453400254249573, 0.6528410315513611, -0.06736040115356445, 0.6048744916915894, -0.6564823985099792, 0.09308954328298569, 0.09613510966300964, 0.6352475881576538, -0.08892322331666946, -0.9742018580436707, -0.16954006254673004, -0.007684946991503239, -0.5597891211509705, -0.7982743978500366, 0.59774249792099, 0.13589730858802795, 0.6107873320579529, 0.4258599877357483, -0.37601250410079956, 0.778294563293457, -0.08656217902898788, 0.4695608913898468, 0.3898122310638428, -0.6059131622314453, 0.6387888193130493, -0.0963868498802185, 0.2622484862804413, 0.07711200416088104, 0.48446789383888245, -0.3540436029434204, -0.250553160905838, -1.0393486022949219, -0.8023112416267395, 0.9785179495811462, 0.22128011286258698, 0.023551639169454575, 0.3111230731010437, 0.6714536547660828, 0.11763259023427963, 0.032628051936626434, -0.8757756352424622, -0.44467276334762573, -0.31698715686798096, -0.35678914189338684, -0.15660621225833893, -0.04197290539741516, -0.17614828050136566, -0.682334303855896, 0.8505828380584717, -0.15574535727500916, 0.7188093662261963, 0.23988287150859833, 0.02252170443534851, -0.22070856392383575, -0.2510886490345001, 0.4699592888355255, 0.39634570479393005, -0.507820188999176, 0.042740289121866226, 0.19093018770217896, -0.6621127128601074, 0.03870990127325058, 0.20887748897075653, 0.04051641374826431, 0.09555771201848984, 0.30261898040771484, 0.9691208600997925, 0.027103068307042122, 0.09374840557575226, 0.4034934937953949, -0.13740214705467224, -0.6067591309547424, -0.23592475056648254, 0.2234826385974884, -0.044763535261154175, 0.39594945311546326, 0.3266623020172119, 0.4036257565021515, -0.0790255218744278, -0.24847620725631714, 0.10570962727069855, 0.6434037685394287, -0.310921847820282, -0.5250093340873718, 0.8853078484535217, -0.3334368169307709, -0.062122102826833725, 0.7997972965240479, -0.067615807056427, -0.4473342299461365, 1.0293182134628296, 0.5883416533470154, 1.0486738681793213, -0.07878073304891586, 0.11290573328733444, 0.850768506526947, 0.1645009070634842, -0.09384097158908844, 0.17330104112625122, 0.18999208509922028, -0.7736659646034241, 0.042939964681863785, -0.5498316287994385, -0.23327450454235077, 0.41897132992744446, -0.6398341655731201, 0.3527447283267975, -0.7116079330444336, -0.48021039366722107, 0.17746669054031372, 0.24952121078968048, -0.8555384874343872, 0.12831827998161316, -0.009086154401302338, 0.8662734627723694, -0.8675956726074219, 0.7784118056297302, 0.8651678562164307, -0.42790383100509644, -0.9060924053192139, -0.27448374032974243, 0.06786862760782242, -0.889382541179657, 0.45491325855255127, 0.48350226879119873, 0.05323387309908867, 0.02888716571033001, -0.9524780511856079, -0.5670627355575562, 1.4560346603393555, 0.4728487432003021, -0.0815308690071106, 0.2981981635093689, -0.031092476099729538, 0.27234575152397156, -0.4431343376636505, 0.5861847400665283, 0.12924286723136902, 0.36842799186706543, 0.6013924479484558, -0.6795543432235718, 0.13570843636989594, -0.42788028717041016, 0.10236460715532303, 0.3086247444152832, -0.5852153301239014, 0.9327524304389954, -0.43992531299591064, -0.13474297523498535, 0.13434813916683197, 0.5414727926254272, 0.33292156457901, 0.20830927789211273, 0.41696593165397644, 0.8787391185760498, 0.5522634983062744, -0.38911259174346924, 0.9579035639762878, -0.020010551437735558, 0.826123833656311, 0.6352430582046509, 0.20742151141166687, 0.5129610300064087, 0.41047340631484985, -0.31833022832870483, 0.34737998247146606, 0.9245043396949768, -0.4453781247138977, 0.3578079342842102, 0.15111881494522095, -0.03752728924155235, -0.07447849959135056, 0.25685760378837585, -0.5354516506195068, 0.30482926964759827, 0.18269705772399902, -0.5469995737075806, -0.2525692880153656, 0.13024555146694183, 0.20820480585098267, -0.5407964587211609, -0.2567206025123596, 0.47078680992126465, -0.01934886910021305, -0.4009988307952881, 0.8000702261924744, 0.07513833791017532, 0.9064698815345764, -0.5311089158058167, 0.016683612018823624, -0.34503117203712463, 0.38622960448265076, -0.38799065351486206, -0.8588440418243408, 0.31231486797332764, -0.21223829686641693, -0.040362294763326645, 0.09210752695798874, 0.6512261629104614, -0.3618747889995575, -0.5443388819694519, 0.28532519936561584, 0.24905693531036377, 0.4630729854106903, 0.08600427210330963, -1.1095730066299438, 0.17161238193511963, -0.10926203429698944, -0.5311505198478699, 0.3977973759174347, 0.25751784443855286, 0.262655109167099, 0.7844343185424805, 0.550363302230835, -0.18492770195007324, 0.11310137063264847, -0.012276937253773212, 0.8613119125366211, -0.4911697506904602, -0.3345864415168762, -0.7912047505378723, 0.5398157238960266, -0.015142685733735561, -0.47533348202705383, 0.5111036896705627, 0.6963295340538025, 0.8803103566169739, -0.1932724565267563, 0.5295652151107788, -0.2435133308172226, -0.012358631007373333, -0.4058373272418976, 0.7162778973579407, -0.7139744758605957, -0.0908481627702713, -0.21935676038265228, -0.769691526889801, -0.4170113503932953, 0.7838606238365173, -0.3307982385158539, 0.582044243812561, 0.4609582722187042, 1.0061204433441162, -0.5388385653495789, -0.15578237175941467, 0.20768104493618011, 0.2614540159702301, 0.18110206723213196, 0.3734963536262512, 0.5260311961174011, -0.8474669456481934, 0.32635822892189026, -0.5711743831634521, -0.17832975089550018, -0.15748363733291626, -0.6885666847229004, -1.1208547353744507, -0.6573635339736938, -0.6909569501876831, -0.6710896492004395, -0.1892678588628769, 0.9619219303131104, 0.9757497310638428, -0.7832932472229004, -0.21294517815113068, 0.1311909407377243, 0.06420174241065979, -0.2095656543970108, -0.2913796305656433, 0.38826826214790344, -0.1712050586938858, -0.8374204635620117, -0.33250704407691956, -0.049722008407115936, 0.5701608061790466, 0.10248340666294098, -0.3082408308982849, -0.1304514855146408, -0.23430843651294708, 0.20283713936805725, 0.31822481751441956, -0.5929416418075562, -0.30883917212486267, -0.254244327545166, -0.11696455627679825, 0.5440987944602966, 0.3335699439048767, -0.5529071092605591, 0.24862836301326752, 0.3887830376625061, 0.12439317256212234, 0.9712767601013184, -0.2997113764286041, 0.06540438532829285, -0.9000365138053894, 0.4545436203479767, -0.13035032153129578, 0.6305178999900818, 0.33181318640708923, -0.23882265388965607, 0.5637683272361755, 0.4686897099018097, -0.5234208703041077, -0.8031083941459656, -0.25548163056373596, -1.1470825672149658, -0.03189750015735626, 0.9045990109443665, -0.2250811606645584, -0.46746981143951416, 0.48436400294303894, -0.13315105438232422, 0.47609269618988037, -0.024194519966840744, 0.42482319474220276, 0.3499566614627838, -0.11191647499799728, -0.616791307926178, -0.6260280609130859, 0.3063080906867981, -0.013492569327354431, -0.6480519771575928, -0.5255538821220398, 0.054579395800828934, 0.9065992832183838, 0.16699416935443878, 0.4513802230358124, -0.2896837890148163, 0.11052464693784714, 0.044327110052108765, 0.5700559020042419, -0.40388843417167664, -0.13099390268325806, -0.29994237422943115, 0.10523659735918045, -0.06412637233734131, -0.6119036078453064 ]
timm/eca_halonext26ts.c1_in1k
timm
"2023-04-26T16:09:44Z"
40,365
0
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "arxiv:2110.00476", "arxiv:2103.12731", "license:apache-2.0", "region:us" ]
image-classification
"2023-04-26T16:09:32Z"
--- tags: - image-classification - timm library_name: timm license: apache-2.0 datasets: - imagenet-1k --- # Model card for eca_halonext26ts.c1_in1k A HaloNet image classification model (with Efficient channel attention, based on ResNeXt 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) `C` recipes * SGD (w/ Nesterov) optimizer and AGC (adaptive gradient clipping). * 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): 10.8 - GMACs: 2.4 - Activations (M): 11.5 - Image size: 256 x 256 - **Papers:** - Scaling Local Self-Attention for Parameter Efficient Visual Backbones: https://arxiv.org/abs/2103.12731 - 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('eca_halonext26ts.c1_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( 'eca_halonext26ts.c1_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, 64, 128, 128]) # torch.Size([1, 256, 64, 64]) # torch.Size([1, 512, 32, 32]) # torch.Size([1, 1024, 16, 16]) # torch.Size([1, 2048, 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( 'eca_halonext26ts.c1_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, 2048, 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{Vaswani2021ScalingLS, title={Scaling Local Self-Attention for Parameter Efficient Visual Backbones}, author={Ashish Vaswani and Prajit Ramachandran and A. Srinivas and Niki Parmar and Blake A. Hechtman and Jonathon Shlens}, journal={2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)}, year={2021}, pages={12889-12899} } ``` ```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.5515018105506897, -0.5022046566009521, 0.049110110849142075, 0.19504384696483612, -0.2562456429004669, -0.34961235523223877, -0.3115818500518799, -0.45284271240234375, 0.32516512274742126, 0.5109211802482605, -0.5358362793922424, -0.7225545644760132, -0.6143375635147095, -0.021592460572719574, -0.14653916656970978, 0.9132739305496216, -0.11752926558256149, -0.15539810061454773, -0.05920426920056343, -0.6356150507926941, -0.17694991827011108, -0.3957902193069458, -0.9436058402061462, -0.31531378626823425, 0.48368969559669495, 0.20226424932479858, 0.4063006639480591, 0.7932085394859314, 0.6920667886734009, 0.48196104168891907, -0.11805077642202377, 0.0674438551068306, -0.25822779536247253, -0.2599690854549408, 0.2831001281738281, -0.5486157536506653, -0.528400182723999, 0.2048511505126953, 0.6398400068283081, 0.3150666058063507, -0.03974170237779617, 0.4756774604320526, 0.08121077716350555, 0.5913081765174866, -0.32012081146240234, 0.11248725652694702, -0.43593350052833557, 0.21424515545368195, -0.17601625621318817, 0.022176844999194145, -0.2990395724773407, -0.24888981878757477, 0.2612813711166382, -0.5806891322135925, 0.46557560563087463, 0.08301801234483719, 1.2516896724700928, 0.31975969672203064, -0.02350335381925106, -0.0399874672293663, -0.2011689990758896, 0.868035078048706, -0.7836598753929138, 0.2990233898162842, 0.2002345770597458, 0.23114362359046936, 0.0622691810131073, -1.0269007682800293, -0.463326632976532, -0.19320048391819, -0.12765264511108398, 0.13103581964969635, -0.2670615017414093, 0.0730128064751625, 0.24978668987751007, 0.33052369952201843, -0.5247206687927246, 0.12457479536533356, -0.5843108892440796, -0.10883776098489761, 0.4836598038673401, -0.035234130918979645, 0.27003976702690125, -0.2951749563217163, -0.6041437387466431, -0.4261110723018646, -0.3803422749042511, 0.21994613111019135, 0.1708538979291916, 0.2456081658601761, -0.6018692851066589, 0.23082402348518372, 0.0898628830909729, 0.5845232009887695, 0.25865060091018677, -0.2505846917629242, 0.518565833568573, 0.050885919481515884, -0.48904961347579956, -0.01992618478834629, 1.0289323329925537, 0.34231507778167725, 0.21552909910678864, 0.09891360253095627, -0.11068474501371384, -0.2801794111728668, -0.016100095584988594, -1.0444530248641968, -0.3479423224925995, 0.35019969940185547, -0.6640636920928955, -0.357543021440506, 0.2056226134300232, -0.6282440423965454, -0.030964184552431107, -0.0767972469329834, 0.44407346844673157, -0.49764588475227356, -0.3242177665233612, 0.059012506157159805, -0.07434958219528198, 0.28131189942359924, 0.16003285348415375, -0.5809996128082275, 0.18847094476222992, 0.20796792209148407, 1.0715248584747314, 0.0073326886631548405, -0.4607924818992615, -0.21540243923664093, -0.2038002610206604, -0.20678043365478516, 0.5531149506568909, -0.07308351248502731, -0.05295267328619957, -0.29398077726364136, 0.3591000437736511, -0.1464204043149948, -0.8116140961647034, 0.21449948847293854, -0.31042319536209106, 0.2080095410346985, -0.0804746150970459, -0.22763271629810333, -0.535909116268158, 0.3936820924282074, -0.48832955956459045, 1.1846412420272827, 0.2922534942626953, -0.8562687635421753, 0.2900955379009247, -0.5786759257316589, -0.08179692178964615, -0.28295570611953735, -0.022127259522676468, -1.0246943235397339, -0.12921488285064697, 0.386913925409317, 0.6965250968933105, -0.315640926361084, -0.04631190001964569, -0.6341880559921265, -0.1929708868265152, 0.3075009882450104, -0.04182276129722595, 0.9492025375366211, 0.17321693897247314, -0.5206543803215027, 0.2920375466346741, -0.7067601680755615, 0.19494828581809998, 0.46996891498565674, -0.24179939925670624, -0.03221500664949417, -0.6617012619972229, 0.17805416882038116, 0.42189696431159973, 0.14713579416275024, -0.5513848662376404, 0.18160763382911682, -0.2524830400943756, 0.52529376745224, 0.7026126980781555, -0.006693464703857899, 0.31216704845428467, -0.3674553632736206, 0.3205479085445404, 0.296383798122406, 0.31586334109306335, -0.12064351886510849, -0.4038859009742737, -0.9064492583274841, -0.6098536849021912, 0.3624799847602844, 0.3553004562854767, -0.4559074342250824, 0.5230292081832886, -0.12804456055164337, -0.7283244729042053, -0.5474112629890442, 0.2051914483308792, 0.5873673558235168, 0.5604116320610046, 0.4194062650203705, -0.5628005862236023, -0.5775506496429443, -0.9853875637054443, 0.014591073617339134, 0.03272891417145729, 0.032044846564531326, 0.3663962185382843, 0.5600090026855469, -0.08847646415233612, 0.7389934659004211, -0.34557345509529114, -0.40918591618537903, -0.24144594371318817, 0.12473639100790024, 0.35242289304733276, 0.7597203850746155, 0.8568096160888672, -0.6067003011703491, -0.5519719123840332, -0.11916588246822357, -0.9989007711410522, 0.03695323318243027, -0.20153148472309113, -0.12899965047836304, 0.27478840947151184, 0.2303784340620041, -0.5347339510917664, 0.5755288600921631, 0.22900758683681488, -0.1600368469953537, 0.3377125859260559, -0.2022608518600464, 0.23243047297000885, -1.081050992012024, 0.0894545242190361, 0.47415634989738464, -0.1788506656885147, -0.34844380617141724, 0.13492174446582794, 0.07431033253669739, -0.01699136383831501, -0.5694349408149719, 0.688804566860199, -0.6750341057777405, -0.18498820066452026, -0.1923820674419403, -0.11910481750965118, -0.07815363258123398, 0.9116836786270142, 0.043492984026670456, 0.3977340757846832, 0.80388343334198, -0.4927477538585663, 0.42650744318962097, 0.3143617510795593, -0.06396859139204025, 0.5443418622016907, -0.7569491267204285, 0.2447616457939148, 0.05117035657167435, 0.20390135049819946, -0.9530518054962158, -0.18356554210186005, 0.36687108874320984, -0.5269471406936646, 0.6534788608551025, -0.4133896827697754, -0.4228050112724304, -0.598884642124176, -0.518608570098877, 0.43781596422195435, 0.6590628623962402, -0.9245617389678955, 0.4688508212566376, 0.20187248289585114, 0.31685325503349304, -0.4623992443084717, -0.8435126543045044, -0.17138567566871643, -0.5220900774002075, -0.6822860836982727, 0.3514855206012726, 0.08777575194835663, 0.1181238517165184, 0.0940072312951088, -0.0852670893073082, -0.05080432444810867, -0.19658233225345612, 0.5697295665740967, 0.22886233031749725, -0.2774423062801361, -0.13882744312286377, -0.30581238865852356, -0.07402787357568741, 0.01677713729441166, -0.37221214175224304, 0.5498955845832825, -0.33785349130630493, -0.1550528109073639, -0.9119325280189514, 0.02279152162373066, 0.5026440620422363, -0.19723087549209595, 0.7404110431671143, 1.0748692750930786, -0.4662773013114929, 0.005666283890604973, -0.5631689429283142, -0.3553541302680969, -0.5249216556549072, 0.47243207693099976, -0.30002397298812866, -0.5103955864906311, 0.8888938426971436, -0.017174644395709038, -0.0008284562500193715, 0.6440256237983704, 0.41766592860221863, -0.08016575127840042, 0.760287344455719, 0.6917206645011902, 0.10600656270980835, 0.7655875086784363, -0.8963041305541992, -0.23818939924240112, -0.9809839129447937, -0.35784652829170227, -0.24833041429519653, -0.5909523367881775, -0.6598713397979736, -0.30289140343666077, 0.4997701644897461, 0.13167083263397217, -0.43557265400886536, 0.4981309771537781, -0.9255824685096741, 0.04470735415816307, 0.7366407513618469, 0.5928865671157837, -0.3217920660972595, 0.29906728863716125, -0.12126991152763367, -0.1009809598326683, -0.863179624080658, -0.22352378070354462, 1.1209614276885986, 0.48865213990211487, 0.6606193780899048, -0.24574260413646698, 0.8182144165039062, -0.18509173393249512, 0.5098248720169067, -0.4396372139453888, 0.6012654900550842, -0.022994719445705414, -0.46431049704551697, -0.11171430349349976, -0.4215370714664459, -1.0702568292617798, 0.04452637583017349, -0.1662934124469757, -0.7889435291290283, 0.24417021870613098, 0.19329887628555298, -0.29504629969596863, 0.7160194516181946, -0.8486146330833435, 0.9621097445487976, -0.16324026882648468, -0.44599080085754395, 0.03582824394106865, -0.7450658082962036, 0.33468085527420044, 0.15668733417987823, -0.22561490535736084, 0.015443540178239346, 0.1563532054424286, 1.1035763025283813, -0.5892964005470276, 0.9809458255767822, -0.3199922740459442, 0.26743677258491516, 0.5958652496337891, -0.23801042139530182, 0.26832178235054016, -0.07236514985561371, 0.032815393060445786, 0.40938425064086914, 0.004301164299249649, -0.5333098769187927, -0.5887946486473083, 0.6557169556617737, -0.967436671257019, -0.4048459827899933, -0.35638150572776794, -0.5087490081787109, 0.19742360711097717, 0.05615463852882385, 0.5220613479614258, 0.6262899041175842, 0.28006550669670105, 0.17884354293346405, 0.5790719389915466, -0.4196295738220215, 0.5001391172409058, 0.0304030179977417, -0.15584641695022583, -0.6208471059799194, 0.874747097492218, 0.2932888865470886, 0.1710653454065323, 0.16819384694099426, 0.06570930033922195, -0.2942981719970703, -0.44868531823158264, -0.2646546959877014, 0.5098133087158203, -0.708289384841919, -0.478274405002594, -0.5642894506454468, -0.4366894066333771, -0.4538547098636627, -0.15113984048366547, -0.5452882647514343, -0.3016541004180908, -0.35444876551628113, 0.18713951110839844, 0.6474926471710205, 0.555816113948822, -0.1814764142036438, 0.6126949191093445, -0.5902507305145264, 0.08782331645488739, 0.20791848003864288, 0.34783756732940674, -0.01471126452088356, -0.8741244077682495, -0.28852999210357666, -0.21508650481700897, -0.5054977536201477, -0.7957718372344971, 0.5605490207672119, 0.12114247679710388, 0.4698304533958435, 0.41212859749794006, -0.18073812127113342, 0.7593480944633484, -0.012486675754189491, 0.4624579846858978, 0.394787460565567, -0.5859854817390442, 0.6424243450164795, -0.09123150259256363, 0.2827739715576172, 0.10200321674346924, 0.264168918132782, -0.25274354219436646, -0.1588136851787567, -1.0758875608444214, -0.7170954346656799, 0.8726698756217957, 0.12920501828193665, -0.14078599214553833, 0.2234525829553604, 0.8081384301185608, -0.1048077791929245, 0.06980524957180023, -0.8141727447509766, -0.4749487340450287, -0.2993164360523224, -0.29464298486709595, 0.06105959042906761, -0.03137949854135513, -0.08093778789043427, -0.6299641132354736, 0.642157793045044, -0.0751066580414772, 0.7212046980857849, 0.5001074075698853, -0.023550312966108322, -0.11945958435535431, -0.38293924927711487, 0.4189225435256958, 0.2965124249458313, -0.3651139438152313, 0.11357381939888, 0.3349979519844055, -0.4845644235610962, 0.024359626695513725, 0.1331745684146881, 0.019436772912740707, -0.058568719774484634, 0.5347435474395752, 0.8148105144500732, 0.1177121177315712, -0.05580921471118927, 0.2897394597530365, -0.026494435966014862, -0.3338240087032318, -0.1895107477903366, 0.09741303324699402, -0.11901866644620895, 0.47746551036834717, 0.2861078977584839, 0.30504128336906433, -0.13440987467765808, -0.2976231873035431, 0.31775176525115967, 0.4381435215473175, -0.3368009924888611, -0.42178961634635925, 0.7461193799972534, -0.207925945520401, -0.16758304834365845, 0.778205931186676, -0.08206690102815628, -0.5297259092330933, 1.1081262826919556, 0.5329999923706055, 0.9248663783073425, -0.17960937321186066, 0.012171242386102676, 0.8065491318702698, 0.32034945487976074, 0.12481915205717087, 0.14070509374141693, 0.10656386613845825, -0.6180411577224731, 0.11664638668298721, -0.45595958828926086, 0.07260163128376007, 0.3286425769329071, -0.6096838116645813, 0.2511627972126007, -0.7795259356498718, -0.41778063774108887, 0.05737891048192978, 0.2932940423488617, -0.9610610008239746, 0.33391523361206055, -0.02027875743806362, 0.913517951965332, -0.6666921377182007, 0.7366903424263, 0.8714973330497742, -0.6050655841827393, -1.0200937986373901, -0.11546473205089569, -0.013969872146844864, -0.9417122006416321, 0.6191476583480835, 0.4731992483139038, 0.18179041147232056, 0.14716312289237976, -0.8211590051651001, -0.7396259903907776, 1.4364501237869263, 0.5493462681770325, -0.17447173595428467, 0.20675411820411682, -0.12706074118614197, 0.31601426005363464, -0.4530469477176666, 0.4620262086391449, 0.24713486433029175, 0.3763614296913147, 0.21053555607795715, -0.6976056098937988, 0.2826825976371765, -0.253356009721756, 0.11046142876148224, 0.09496324509382248, -1.0000320672988892, 0.8691930174827576, -0.4310777485370636, -0.16653847694396973, 0.037571996450424194, 0.8559876084327698, 0.33141347765922546, 0.19394449889659882, 0.4951930046081543, 0.8817012310028076, 0.5140197277069092, -0.2045339196920395, 0.9869170784950256, -0.131246417760849, 0.6638349294662476, 0.6701311469078064, 0.3385106325149536, 0.560402512550354, 0.4321562945842743, -0.2121492177248001, 0.31291210651397705, 1.1735442876815796, -0.29918211698532104, 0.40238624811172485, 0.17434579133987427, 0.10340412706136703, -0.19112879037857056, 0.03497505560517311, -0.4633740782737732, 0.44047820568084717, 0.1360527127981186, -0.5163241028785706, -0.2493646740913391, 0.13062439858913422, -0.08981193602085114, -0.2646443545818329, -0.23915550112724304, 0.46605637669563293, 0.09954603016376495, -0.3787083625793457, 0.9033254384994507, 0.07796626538038254, 0.8561180830001831, -0.37686172127723694, 0.08074799925088882, -0.33066219091415405, 0.2553970217704773, -0.2976766526699066, -0.6778064370155334, 0.217635840177536, -0.26739931106567383, -0.04079929739236832, 0.06414812803268433, 0.5989788174629211, -0.3394002914428711, -0.44526809453964233, 0.31285035610198975, 0.2851734757423401, 0.4829825162887573, -0.019571693614125252, -1.2798396348953247, 0.22845017910003662, -0.0886099636554718, -0.6416706442832947, 0.3359850347042084, 0.41574782133102417, 0.058082856237888336, 0.7664827704429626, 0.5173565745353699, -0.11708100140094757, 0.21646544337272644, -0.18070025742053986, 0.863686203956604, -0.5467162728309631, -0.35188955068588257, -0.752406656742096, 0.46067601442337036, -0.14871512353420258, -0.5943459272384644, 0.6127020120620728, 0.5308237671852112, 0.8858879804611206, -0.02642129547894001, 0.3456253707408905, -0.13735613226890564, -0.018836956471204758, -0.45431819558143616, 0.616240918636322, -0.7284578084945679, 0.0665186271071434, -0.19866368174552917, -0.7488855123519897, -0.3627535104751587, 0.6811234951019287, -0.3395746350288391, 0.5333671569824219, 0.5645359754562378, 0.9588286280632019, -0.34587550163269043, -0.40751469135284424, 0.18220382928848267, 0.17778252065181732, 0.11467964947223663, 0.5944268107414246, 0.38791269063949585, -0.7910702228546143, 0.38875728845596313, -0.624472975730896, -0.2241079956293106, -0.14580266177654266, -0.5830054879188538, -1.073442816734314, -0.8470538854598999, -0.6958574652671814, -0.5522257089614868, -0.1507028192281723, 0.8936305642127991, 1.2197561264038086, -0.6971591711044312, -0.11330033093690872, 0.005595462396740913, 0.10206717997789383, -0.3293038606643677, -0.23990772664546967, 0.7502729296684265, -0.22593586146831512, -0.7844780683517456, -0.27443236112594604, 0.19062082469463348, 0.33791008591651917, -0.06413926184177399, -0.2398989051580429, -0.20904874801635742, -0.17659811675548553, 0.16452781856060028, 0.46792474389076233, -0.7796919345855713, -0.23153553903102875, -0.15263770520687103, -0.19099287688732147, 0.48488542437553406, 0.46782025694847107, -0.6283429861068726, 0.2681971788406372, 0.1961805820465088, 0.42187562584877014, 0.8236851096153259, -0.23503978550434113, 0.04384990781545639, -0.9226200580596924, 0.5306389927864075, -0.22826118767261505, 0.4817856550216675, 0.4365922510623932, -0.4195881485939026, 0.5940676927566528, 0.4486309289932251, -0.47562962770462036, -0.8315889835357666, -0.10811016708612442, -1.2245339155197144, -0.09113423526287079, 0.8210907578468323, -0.3843860626220703, -0.7027832269668579, 0.48042532801628113, -0.14144913852214813, 0.6411780714988708, -0.13618351519107819, 0.6639623641967773, 0.25312331318855286, -0.14762835204601288, -0.7748544812202454, -0.4418620467185974, 0.40863314270973206, 0.326924204826355, -0.7283267378807068, -0.3654046952724457, -0.07044997811317444, 0.6344866156578064, 0.33055490255355835, 0.5180702209472656, -0.12400054186582565, 0.21038928627967834, 0.0047724200412631035, 0.5180068016052246, -0.3516775965690613, -0.17815569043159485, -0.3790259063243866, 0.11745460331439972, -0.1732260137796402, -0.611710250377655 ]
timm/inception_v3.gluon_in1k
timm
"2023-04-25T21:28:50Z"
40,357
0
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "arxiv:1512.00567", "license:apache-2.0", "region:us" ]
image-classification
"2023-04-25T21:28:32Z"
--- tags: - image-classification - timm library_name: timm license: apache-2.0 datasets: - imagenet-1k --- # Model card for inception_v3.gluon_in1k A Inception-v3 image classification model. Trained on ImageNet-1k by MxNet GLUON authors. ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 23.8 - GMACs: 5.7 - Activations (M): 9.0 - Image size: 299 x 299 - **Papers:** - Rethinking the Inception Architecture for Computer Vision: https://arxiv.org/abs/1512.00567 - **Original:** https://github.com/tensorflow/models - **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('inception_v3.gluon_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( 'inception_v3.gluon_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, 64, 147, 147]) # torch.Size([1, 192, 71, 71]) # torch.Size([1, 288, 35, 35]) # torch.Size([1, 768, 17, 17]) # torch.Size([1, 2048, 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( 'inception_v3.gluon_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, 2048, 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 @article{DBLP:journals/corr/SzegedyVISW15, author = {Christian Szegedy and Vincent Vanhoucke and Sergey Ioffe and Jonathon Shlens and Zbigniew Wojna}, title = {Rethinking the Inception Architecture for Computer Vision}, journal = {CoRR}, volume = {abs/1512.00567}, year = {2015}, url = {http://arxiv.org/abs/1512.00567}, archivePrefix = {arXiv}, eprint = {1512.00567}, timestamp = {Mon, 13 Aug 2018 16:49:07 +0200}, biburl = {https://dblp.org/rec/journals/corr/SzegedyVISW15.bib}, bibsource = {dblp computer science bibliography, https://dblp.org} } ```
[ -0.495853990316391, -0.5854330062866211, 0.1943286657333374, 0.03555407002568245, -0.3696545362472534, -0.2174673080444336, -0.1256970763206482, -0.5960679650306702, 0.14310385286808014, 0.24002023041248322, -0.4085674285888672, -0.7573408484458923, -0.6779446601867676, -0.1387387216091156, -0.29395800828933716, 0.9632647633552551, -0.04797208309173584, -0.06394924968481064, -0.34650132060050964, -0.37636879086494446, 0.005474817007780075, -0.3010310232639313, -0.9625930786132812, -0.4579234719276428, 0.24215278029441833, 0.026770325377583504, 0.6627205610275269, 0.6803914904594421, 0.5627543926239014, 0.43281927704811096, -0.2680986821651459, -0.033533770591020584, -0.23403023183345795, -0.3878784775733948, 0.38308200240135193, -0.5709851384162903, -0.4546566903591156, 0.16921371221542358, 0.7411709427833557, 0.5652166604995728, 0.041633546352386475, 0.32658928632736206, 0.3508322238922119, 0.45285943150520325, -0.2682689428329468, 0.037605639547109604, -0.41319090127944946, 0.3269762694835663, -0.09878899157047272, 0.122837595641613, -0.18004252016544342, -0.41362687945365906, 0.21416358649730682, -0.6170914769172668, 0.6512652635574341, 0.01956324465572834, 1.349120855331421, 0.12669922411441803, 0.2267714887857437, -0.1000024825334549, -0.37368273735046387, 0.7698306441307068, -0.7742189168930054, 0.26466989517211914, 0.13913922011852264, 0.1161608099937439, -0.14627666771411896, -1.0328621864318848, -0.6062710285186768, -0.17030026018619537, -0.1684104949235916, -0.09837491065263748, -0.1610109657049179, -0.03834211826324463, 0.24202241003513336, 0.5940232276916504, -0.4809819161891937, 0.11706435680389404, -0.6649543046951294, -0.1861952841281891, 0.5525535345077515, -0.018576456233859062, 0.28728213906288147, -0.17810598015785217, -0.5828907489776611, -0.394313246011734, -0.40804383158683777, 0.34409788250923157, 0.4058569371700287, 0.13047479093074799, -0.680656373500824, 0.40902116894721985, 0.14715038239955902, 0.5393250584602356, 0.13267244398593903, -0.3515133857727051, 0.6525388956069946, -0.040078867226839066, -0.46002939343452454, -0.0509050227701664, 1.0669976472854614, 0.3456306457519531, 0.16051031649112701, -0.0007186922011896968, 0.05994676426053047, -0.39661285281181335, 0.06546583026647568, -1.1001025438308716, -0.1985827535390854, 0.4575362205505371, -0.4826714098453522, -0.42331168055534363, 0.21388649940490723, -0.602659285068512, -0.15861530601978302, -0.02353593334555626, 0.6258631944656372, -0.6768123507499695, -0.33972716331481934, 0.10182586312294006, -0.14500518143177032, 0.5137951970100403, 0.24720701575279236, -0.5955381989479065, 0.022866664454340935, 0.39917367696762085, 1.2399345636367798, 0.065451480448246, -0.4916016161441803, 0.05152537673711777, -0.2046016901731491, -0.35991719365119934, 0.4828035831451416, -0.021276287734508514, -0.2993813455104828, -0.30187296867370605, 0.2927367091178894, -0.030979782342910767, -0.665987491607666, 0.3215992748737335, -0.1360834538936615, 0.2928355634212494, 0.11199994385242462, -0.30040648579597473, -0.6371164917945862, 0.3234598636627197, -0.3952026963233948, 1.1461211442947388, 0.3283560276031494, -0.7418009042739868, 0.5230990648269653, -0.4750148057937622, -0.14130406081676483, -0.15475936233997345, -0.3139926493167877, -1.1292662620544434, -0.018012521788477898, 0.37523505091667175, 0.6271589398384094, -0.3058008551597595, 0.1226753294467926, -0.6552963256835938, -0.2894681692123413, 0.18241436779499054, 0.037688035517930984, 1.1704156398773193, 0.15445664525032043, -0.4292469620704651, 0.12475448846817017, -0.6463536024093628, 0.11179112643003464, 0.5507017970085144, -0.24581801891326904, 0.010692324489355087, -0.5203515291213989, -0.07283645123243332, 0.1582878828048706, 0.12874428927898407, -0.5582754611968994, 0.2918640971183777, -0.39766725897789, 0.46475377678871155, 0.5939467549324036, -0.03274260833859444, 0.28231802582740784, -0.34009748697280884, 0.1798415333032608, 0.4924359917640686, 0.36673256754875183, 0.0048207128420472145, -0.7456473112106323, -0.7630891799926758, -0.4392733573913574, 0.14136308431625366, 0.35054153203964233, -0.35706210136413574, 0.5188573598861694, -0.24901644885540009, -0.7008737921714783, -0.6069868803024292, 0.08522766828536987, 0.34924644231796265, 0.6042487621307373, 0.3665829598903656, -0.5447108745574951, -0.5346945524215698, -1.0180318355560303, 0.12336719781160355, -0.023277955129742622, -0.05826767906546593, 0.25951525568962097, 0.665764570236206, -0.07602168619632721, 0.8195832967758179, -0.44525113701820374, -0.24727940559387207, -0.21838897466659546, 0.14133760333061218, 0.5579244494438171, 0.9375340342521667, 0.8276384472846985, -0.5861335396766663, -0.32620206475257874, -0.10238349437713623, -1.1783803701400757, 0.4210782051086426, -0.025199372321367264, -0.1449795812368393, 0.28296735882759094, 0.21048259735107422, -0.5873007774353027, 0.6912038922309875, 0.03273685649037361, -0.20959141850471497, 0.4419589936733246, -0.2563246190547943, 0.28466635942459106, -1.1750242710113525, 0.16756165027618408, 0.24906620383262634, 0.030217550694942474, -0.4304453432559967, 0.06514552980661392, -0.0786006823182106, -0.14232513308525085, -0.6534510850906372, 0.5477820038795471, -0.5889977812767029, -0.2882865071296692, -0.04405638575553894, -0.2426469773054123, 0.1091458797454834, 0.7842375040054321, -0.1385231912136078, 0.4978868067264557, 0.965648889541626, -0.6115509271621704, 0.35764405131340027, 0.4694363474845886, -0.4184470772743225, 0.527902364730835, -0.7037606835365295, 0.3177102208137512, -0.20244643092155457, 0.14025473594665527, -0.9754509925842285, -0.15762336552143097, 0.45829370617866516, -0.6549043655395508, 0.5372710227966309, -0.5928822755813599, -0.3191456198692322, -0.5326986908912659, -0.5969483852386475, 0.5082287192344666, 0.6786583662033081, -0.6751063466072083, 0.5043304562568665, 0.15207991003990173, 0.2742013931274414, -0.6306629180908203, -0.9385442137718201, -0.11270177364349365, -0.42647024989128113, -0.7565847039222717, 0.5236439108848572, 0.05958002805709839, 0.09566683322191238, 0.2304610162973404, 0.0526534765958786, 0.04326581954956055, -0.08534231781959534, 0.5286006331443787, 0.40536239743232727, -0.3958774209022522, -0.2769065499305725, -0.34123337268829346, 0.058475006371736526, -0.020476100966334343, -0.3876412808895111, 0.6033143401145935, -0.23911143839359283, -0.16837704181671143, -0.8339580297470093, -0.0539126843214035, 0.5063700675964355, 0.05634516850113869, 0.8451756834983826, 1.1048048734664917, -0.6590545773506165, 0.07166117429733276, -0.39856094121932983, -0.15616321563720703, -0.4793799817562103, 0.4327412545681, -0.46943560242652893, -0.4583803415298462, 0.910429835319519, 0.16755090653896332, 0.10584771633148193, 0.8256901502609253, 0.4192177653312683, -0.06323553621768951, 0.6791208386421204, 0.626570463180542, 0.08664501458406448, 0.5917025804519653, -1.1615025997161865, -0.0682605504989624, -0.9981566071510315, -0.5384421348571777, -0.3626228868961334, -0.561867356300354, -0.4647930860519409, -0.27765604853630066, 0.5057085752487183, 0.4790101647377014, -0.3183434009552002, 0.39893436431884766, -0.839407205581665, 0.12551426887512207, 0.6330621838569641, 0.4806213974952698, -0.21853214502334595, 0.3235788643360138, -0.3072799742221832, 0.13625435531139374, -0.6748166084289551, -0.25612810254096985, 1.1820639371871948, 0.39192041754722595, 0.5976349711418152, -0.2117854505777359, 0.6997866630554199, -0.18795092403888702, 0.28091347217559814, -0.5685943961143494, 0.5712668299674988, 0.0010381125612184405, -0.4773961901664734, -0.1375095546245575, -0.2664966881275177, -1.0810712575912476, 0.08201614767313004, -0.26864272356033325, -0.930392324924469, 0.3329710066318512, 0.133056640625, -0.4914585053920746, 0.8201419711112976, -0.7699663043022156, 0.9154283404350281, -0.062340542674064636, -0.4362925589084625, -0.007747872266918421, -0.5121821761131287, 0.3781035542488098, 0.2887299060821533, -0.17815443873405457, -0.06276734173297882, 0.2343081533908844, 1.0197750329971313, -0.46734619140625, 0.8454641699790955, -0.45561012625694275, 0.2197311520576477, 0.646811842918396, -0.1563204824924469, 0.24777434766292572, 0.06713563203811646, -0.038880713284015656, 0.524965226650238, -0.0779617503285408, -0.3942851424217224, -0.5281094312667847, 0.6274995803833008, -1.1122814416885376, -0.5047992467880249, -0.34551554918289185, -0.3895881772041321, 0.23746486008167267, 0.05981165170669556, 0.663711428642273, 0.7690136432647705, 0.10871390253305435, 0.35015079379081726, 0.4237826466560364, -0.4428914785385132, 0.5234493017196655, -0.1855268031358719, -0.30866989493370056, -0.6508876085281372, 0.6636826992034912, 0.280036985874176, 0.13129018247127533, 0.023806439712643623, 0.14277474582195282, -0.38877245783805847, -0.7991494536399841, -0.486584335565567, 0.2945707440376282, -0.6944577097892761, -0.43067219853401184, -0.6159979701042175, -0.6280243992805481, -0.5871229767799377, -0.21806380152702332, -0.36206841468811035, -0.3140659034252167, -0.4403396248817444, 0.1899421662092209, 0.6251397132873535, 0.6065798997879028, -0.16513584554195404, 0.501107394695282, -0.43524307012557983, 0.14867955446243286, 0.070722796022892, 0.5232835412025452, 0.010474910028278828, -0.8949587941169739, -0.42096778750419617, -0.12134445458650589, -0.5768305063247681, -0.5773516297340393, 0.30800169706344604, 0.2877359092235565, 0.553085207939148, 0.4596931040287018, -0.41714707016944885, 0.8402041792869568, -0.06918655335903168, 0.7120397686958313, 0.2605123817920685, -0.5579063892364502, 0.6865715980529785, 0.04445090889930725, 0.18744365870952606, 0.09414870291948318, 0.39951831102371216, -0.12611547112464905, -0.22544896602630615, -1.093869924545288, -0.8767058849334717, 0.8992953896522522, 0.16094674170017242, -0.10084646940231323, 0.3516971468925476, 0.8314270377159119, 0.13878370821475983, 0.006529465317726135, -0.7554861903190613, -0.36167576909065247, -0.3394395411014557, -0.29412445425987244, -0.02295754849910736, -0.07672405987977982, -0.13651344180107117, -0.685248076915741, 0.6713729500770569, 0.016653530299663544, 0.8466256260871887, 0.5188096165657043, -0.15175063908100128, -0.07628857344388962, -0.38434410095214844, 0.46727892756462097, 0.4294009208679199, -0.476380318403244, 0.03334083780646324, 0.25174546241760254, -0.6755988597869873, 0.08495261520147324, 0.1170109286904335, -0.17218002676963806, -0.14709077775478363, 0.5077372193336487, 0.9608864784240723, -0.008407284505665302, 0.19721896946430206, 0.3062093257904053, 0.10112990438938141, -0.42459750175476074, -0.34305480122566223, 0.25545504689216614, -0.10881004482507706, 0.4342955946922302, 0.5119394659996033, 0.29020997881889343, -0.06322739273309708, -0.29338401556015015, 0.2813626825809479, 0.5867452621459961, -0.15983977913856506, -0.47043576836586, 0.7761825919151306, -0.29098206758499146, -0.1716787964105606, 0.8199877142906189, -0.09816330671310425, -0.31958943605422974, 1.0026746988296509, 0.4843771159648895, 1.105867624282837, 0.024854475632309914, -0.033586543053388596, 0.9707823395729065, 0.31203433871269226, 0.028116410598158836, 0.030696243047714233, 0.14913736283779144, -0.8340950012207031, 0.02800430729985237, -0.7461358904838562, -0.04320107400417328, 0.5574718117713928, -0.4490857422351837, 0.3767211139202118, -0.9099247455596924, -0.3336264491081238, 0.20652401447296143, 0.2577195167541504, -0.9477859139442444, 0.23787224292755127, 0.13071279227733612, 0.7519134283065796, -0.6295900344848633, 0.7276782393455505, 0.782949686050415, -0.7315555214881897, -0.8064686059951782, -0.1874021589756012, 0.036942023783922195, -1.0571528673171997, 0.3893769085407257, 0.49814608693122864, 0.014902186580002308, 0.19815152883529663, -0.907660722732544, -0.77073073387146, 1.5050855875015259, 0.6409088373184204, -0.006239308975636959, 0.1656794399023056, 0.06720136106014252, 0.1802382469177246, -0.5173016786575317, 0.4027881920337677, 0.23539234697818756, 0.26149216294288635, 0.33117198944091797, -0.48690691590309143, 0.1360524296760559, -0.20409831404685974, 0.20061293244361877, 0.06325707584619522, -0.6453458070755005, 0.9520646929740906, -0.5474982857704163, -0.34291478991508484, 0.03207647427916527, 0.8523923754692078, 0.23321464657783508, 0.10136640816926956, 0.5810271501541138, 1.0352815389633179, 0.45488396286964417, -0.2786458432674408, 0.9070724844932556, -0.09896258264780045, 0.6493067741394043, 0.5022873878479004, 0.3386700749397278, 0.44198837876319885, 0.4171140193939209, -0.3845899701118469, 0.46544864773750305, 1.0362788438796997, -0.4162667691707611, 0.2759718894958496, 0.14458449184894562, 0.06570176035165787, 0.04716363921761513, 0.16720329225063324, -0.4818146228790283, 0.45994800329208374, 0.1890926957130432, -0.373847097158432, -0.28651002049446106, 0.10180190950632095, 0.05418692156672478, -0.4379476010799408, -0.25621336698532104, 0.49424272775650024, 0.004585705231875181, -0.2738092839717865, 0.9214525818824768, -0.0045586880296468735, 0.836798369884491, -0.3905870020389557, 0.09182187169790268, -0.34280791878700256, 0.2384766787290573, -0.3800308108329773, -0.9102197289466858, 0.4084267020225525, -0.26528090238571167, 0.021439582109451294, 0.18435858190059662, 0.518428385257721, -0.2915496826171875, -0.6127484440803528, 0.21644248068332672, 0.2322375625371933, 0.5581881403923035, 0.09517450630664825, -1.143418312072754, 0.18774090707302094, -0.0390591099858284, -0.5713897347450256, 0.21836481988430023, 0.3640616238117218, 0.09865782409906387, 0.6343888640403748, 0.6067729592323303, -0.10910727083683014, 0.13654373586177826, -0.1979111284017563, 0.7488991618156433, -0.655523419380188, -0.3929383158683777, -0.9635785818099976, 0.7295078039169312, -0.08872336149215698, -0.6600939035415649, 0.43011096119880676, 0.781692624092102, 1.0284196138381958, -0.08902213722467422, 0.47309935092926025, -0.39325445890426636, -0.0739612802863121, -0.5131009221076965, 0.6745420098304749, -0.7083376049995422, -0.10624129325151443, -0.15128885209560394, -0.8134558796882629, -0.4224469065666199, 0.6123560667037964, -0.20270532369613647, 0.4126456677913666, 0.5036796927452087, 1.000370979309082, -0.35857734084129333, -0.28834497928619385, 0.16328153014183044, 0.24991509318351746, 0.2599458396434784, 0.4695248007774353, 0.4102477729320526, -0.817735493183136, 0.3915099501609802, -0.5759628415107727, -0.15676087141036987, -0.16348975896835327, -0.6789071559906006, -0.7503252625465393, -0.9235045909881592, -0.638988733291626, -0.598594069480896, -0.23337571322917938, 0.8825041055679321, 0.9159606695175171, -0.7652969360351562, -0.18379752337932587, 0.05182986706495285, 0.14262346923351288, -0.3597189784049988, -0.2131432741880417, 0.667855978012085, -0.28253844380378723, -0.827316164970398, -0.15532800555229187, 0.17786115407943726, 0.5406454205513, -0.1260467916727066, -0.1494501680135727, -0.2569435238838196, -0.35829877853393555, 0.20275385677814484, 0.3112722933292389, -0.6989114284515381, -0.4319975674152374, -0.38687410950660706, -0.0836397185921669, 0.6194217205047607, 0.4440625309944153, -0.6628685593605042, 0.2236069291830063, 0.2865312397480011, 0.41580668091773987, 0.8414305448532104, -0.32565203309059143, 0.09468637406826019, -0.7693538665771484, 0.6086874604225159, -0.1591389924287796, 0.46170559525489807, 0.49120450019836426, -0.4707536995410919, 0.5853711366653442, 0.5621562600135803, -0.33238840103149414, -0.8935248851776123, -0.11994347721338272, -1.0306658744812012, -0.05701421573758125, 0.6977145671844482, -0.2863491177558899, -0.6430723667144775, 0.4028017520904541, 0.03545846417546272, 0.6888004541397095, 0.004246750846505165, 0.6404080390930176, 0.3354484736919403, -0.16090400516986847, -0.546815812587738, -0.4834717810153961, 0.5616673827171326, 0.01783500611782074, -0.6128988265991211, -0.5004914402961731, -0.06638114899396896, 0.6414380669593811, 0.3899783790111542, 0.5227646231651306, -0.3417604863643646, 0.026666756719350815, 0.10827863216400146, 0.6083561778068542, -0.4149048626422882, -0.2520637512207031, -0.4310077726840973, 0.1758156269788742, -0.05195146054029465, -0.6451647877693176 ]
timm/gmlp_s16_224.ra3_in1k
timm
"2023-03-27T23:01:25Z"
40,354
0
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "arxiv:2105.08050", "license:apache-2.0", "region:us" ]
image-classification
"2023-03-27T23:01:08Z"
--- tags: - image-classification - timm library_tag: timm license: apache-2.0 datasets: - imagenet-1k --- # Model card for gmlp_s16_224.ra3_in1k A gMLP image classification model. Trained on ImageNet-1k in `timm` by Ross Wightman. ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 19.4 - GMACs: 4.4 - Activations (M): 15.1 - Image size: 224 x 224 - **Papers:** - Pay Attention to MLPs: https://arxiv.org/abs/2105.08050 - **Original:** https://github.com/huggingface/pytorch-image-models - **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('gmlp_s16_224.ra3_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( 'gmlp_s16_224.ra3_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, 196, 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{Liu2021PayAT, title={Pay Attention to MLPs}, author={Hanxiao Liu and Zihang Dai and David R. So and Quoc V. Le}, booktitle={Neural Information Processing Systems}, 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}} } ```
[ -0.4836360216140747, -0.42366763949394226, 0.09803382307291031, 0.10428407788276672, -0.2794750928878784, -0.2874365746974945, -0.1282423734664917, -0.5228955149650574, 0.12926000356674194, 0.30934619903564453, -0.5278607606887817, -0.6650290489196777, -0.7620855569839478, -0.10679211467504501, -0.06199098378419876, 1.1483938694000244, -0.008762734942138195, 0.043643172830343246, -0.26057499647140503, -0.4229350984096527, 0.02031278982758522, -0.34117937088012695, -0.936021625995636, -0.5683693885803223, 0.4113197922706604, 0.08891464024782181, 0.6639921069145203, 0.497965008020401, 0.6510927081108093, 0.42461082339286804, -0.2830847203731537, 0.044078435748815536, -0.20920976996421814, -0.31453895568847656, 0.42049095034599304, -0.5402610301971436, -0.6190232634544373, 0.40755847096443176, 0.7500272989273071, 0.41633060574531555, -0.02801121026277542, 0.35511672496795654, 0.2458985149860382, 0.584242045879364, -0.2781827449798584, 0.15881365537643433, -0.46702200174331665, 0.4097631275653839, -0.04330272972583771, 0.0026334980502724648, -0.37401729822158813, -0.43844521045684814, 0.17036771774291992, -0.49822917580604553, 0.5106120705604553, -0.0011803206289187074, 1.3659441471099854, 0.136605367064476, 0.09359343349933624, -0.05161425471305847, -0.18258559703826904, 0.6840415000915527, -0.9966711401939392, 0.14844489097595215, 0.416485071182251, 0.17074231803417206, -0.10132457315921783, -0.9276637434959412, -0.52159184217453, -0.25558921694755554, -0.2055620700120926, -0.040936488658189774, -0.23143652081489563, 0.13290861248970032, 0.43501266837120056, 0.4223829209804535, -0.5841348171234131, 0.08181533962488174, -0.5999066829681396, -0.21960006654262543, 0.5077638030052185, 0.030899174511432648, 0.23579727113246918, -0.2787971794605255, -0.47813722491264343, -0.38698452711105347, -0.4110690653324127, 0.19187472760677338, 0.4813210964202881, 0.2662162780761719, -0.6413342952728271, 0.5252519249916077, 0.23792652785778046, 0.6748438477516174, 0.07392938435077667, -0.3452456593513489, 0.6507839560508728, 0.05318162962794304, -0.48864221572875977, -0.20995579659938812, 1.208980917930603, 0.39416417479515076, 0.2058853656053543, -0.027150239795446396, -0.05185850337147713, -0.35819292068481445, -0.12330947816371918, -1.2052960395812988, -0.28052178025245667, 0.2967228889465332, -0.6306026577949524, -0.5004552006721497, 0.3126366436481476, -0.6594448089599609, -0.14044328033924103, -0.004657199140638113, 0.592442512512207, -0.4885522127151489, -0.30714151263237, 0.08933277428150177, -0.11764650046825409, 0.36979225277900696, 0.10817591845989227, -0.6424397230148315, 0.24523644149303436, 0.4751501977443695, 1.3375858068466187, 0.05620916560292244, -0.5191085934638977, -0.29681196808815, -0.31365472078323364, -0.24702727794647217, 0.4481668472290039, -0.16303429007530212, -0.16440372169017792, -0.2870817482471466, 0.3402367830276489, -0.22312913835048676, -0.7339344024658203, 0.30084091424942017, -0.1534103900194168, 0.4199966490268707, 0.03419668599963188, -0.3320069909095764, -0.36858344078063965, 0.36734482645988464, -0.39349111914634705, 1.3109229803085327, 0.3418004512786865, -1.013594150543213, 0.31566715240478516, -0.5677101016044617, 0.020906617864966393, -0.23161235451698303, -0.05454203113913536, -1.091651439666748, -0.10432633012533188, 0.15834422409534454, 0.7904538512229919, -0.22460857033729553, 0.15097080171108246, -0.6378774642944336, -0.23356474936008453, 0.2882796823978424, 0.014528770931065083, 1.0016313791275024, 0.207667276263237, -0.25959235429763794, 0.30873993039131165, -0.543813943862915, 0.1944606751203537, 0.4912088215351105, -0.2918744683265686, 0.11601242423057556, -0.5808295607566833, 0.19524915516376495, 0.360546737909317, 0.1105542778968811, -0.5972875952720642, 0.441789448261261, -0.1807093471288681, 0.4538632035255432, 0.728029727935791, -0.19685649871826172, 0.30286964774131775, -0.42337945103645325, 0.4570716619491577, 0.20996806025505066, 0.3452531397342682, 0.0962277501821518, -0.7568550109863281, -0.6612846851348877, -0.4990094304084778, 0.348113089799881, 0.3931888937950134, -0.44034311175346375, 0.5180201530456543, -0.07179325819015503, -0.745429515838623, -0.44066980481147766, -0.015765070915222168, 0.4999571442604065, 0.6489536762237549, 0.31192588806152344, -0.46579509973526, -0.4584658741950989, -0.8433317542076111, -0.029976962134242058, -0.02611818164587021, -0.1018143817782402, 0.40106338262557983, 0.6559339761734009, -0.20569081604480743, 0.6443492770195007, -0.490934818983078, -0.28332313895225525, -0.26095467805862427, 0.19140565395355225, 0.5484009981155396, 0.7823472023010254, 0.8539977073669434, -0.476005494594574, -0.5326398015022278, -0.17736567556858063, -0.9395283460617065, 0.10922996699810028, 0.0031821695156395435, -0.18087542057037354, 0.36733806133270264, 0.2056122124195099, -0.7023537755012512, 0.603365421295166, 0.3709751069545746, -0.4974179267883301, 0.5978814363479614, -0.3191553056240082, 0.09562119096517563, -1.1279939413070679, 0.21734336018562317, 0.34175384044647217, -0.173430398106575, -0.4195212125778198, 0.054201651364564896, -0.04713604971766472, -0.11232749372720718, -0.40710532665252686, 0.7247641682624817, -0.4919392466545105, -0.27668026089668274, -0.18108734488487244, -0.2802257537841797, -0.007123141549527645, 0.6904251575469971, -0.09965697675943375, 0.4639120399951935, 0.8775865435600281, -0.41789159178733826, 0.38843968510627747, 0.4248121678829193, -0.2411731332540512, 0.3835085928440094, -0.7261789441108704, 0.23862634599208832, -0.008094451390206814, 0.22751203179359436, -0.99215167760849, -0.2166551649570465, 0.5337440371513367, -0.6325797438621521, 0.7025189995765686, -0.6760968565940857, -0.5280712246894836, -0.5607634782791138, -0.45312440395355225, 0.3351309597492218, 0.6184085011482239, -0.6780679821968079, 0.5034250020980835, 0.22230617702007294, 0.15347881615161896, -0.6225377321243286, -0.9026175141334534, -0.2538745403289795, -0.3602612614631653, -0.6934658288955688, 0.4011542797088623, 0.04559120163321495, 0.22098372876644135, 0.15703266859054565, -0.1304265558719635, -0.03124091774225235, -0.23031727969646454, 0.4580858647823334, 0.46632668375968933, -0.22690534591674805, -0.15407676994800568, -0.4131945073604584, -0.17650528252124786, 0.1019052267074585, -0.21986152231693268, 0.6339023113250732, -0.3648132085800171, -0.14938367903232574, -0.7801097631454468, -0.07889080792665482, 0.5400842428207397, 0.0064409226179122925, 0.9147062301635742, 1.0463805198669434, -0.46412429213523865, 0.0555691160261631, -0.4125061333179474, -0.33740466833114624, -0.5021584033966064, 0.4193689227104187, -0.344309002161026, -0.45013663172721863, 0.9154250621795654, 0.18580001592636108, -0.017440788447856903, 0.6626711487770081, 0.27275967597961426, -0.022409604862332344, 0.8632827401161194, 0.5528689622879028, 0.055065516382455826, 0.7228396534919739, -0.945222795009613, -0.14609456062316895, -0.9523606300354004, -0.516059935092926, -0.38085100054740906, -0.5592812895774841, -0.6715137362480164, -0.4113449454307556, 0.38951143622398376, 0.11802230775356293, -0.44534429907798767, 0.3565307557582855, -0.8880363702774048, 0.20027409493923187, 0.6832464933395386, 0.5132258534431458, -0.3035848140716553, 0.3247010111808777, -0.4076860249042511, 0.025934917852282524, -0.8701577186584473, -0.27670320868492126, 1.1600432395935059, 0.5234798789024353, 0.7179564833641052, -0.19835902750492096, 0.6161850094795227, -0.28062576055526733, 0.39022403955459595, -0.674780547618866, 0.6545197367668152, -0.1379760503768921, -0.4823019504547119, 0.005733007565140724, -0.5277414321899414, -0.9718142747879028, 0.16796471178531647, -0.3256039023399353, -0.8310118317604065, 0.06831014156341553, 0.188125878572464, -0.19707632064819336, 0.8714858889579773, -0.7328315377235413, 1.0589263439178467, -0.10075961798429489, -0.47444024682044983, 0.1272462010383606, -0.6741698980331421, 0.27236080169677734, 0.32713645696640015, -0.22674430906772614, -0.17882086336612701, 0.25001421570777893, 1.107387900352478, -0.6072507500648499, 0.8134264945983887, -0.586624264717102, 0.3649492561817169, 0.38707879185676575, -0.09130945056676865, 0.42359644174575806, -0.11993170529603958, -0.08346537500619888, 0.3289952874183655, 0.10866498202085495, -0.4280523657798767, -0.458087295293808, 0.6573712825775146, -0.9898491501808167, -0.2799089550971985, -0.6272829174995422, -0.6208802461624146, 0.06554455310106277, 0.017700592055916786, 0.5372571349143982, 0.570088803768158, 0.28273293375968933, 0.2308705598115921, 0.5232396125793457, -0.3921799957752228, 0.438803493976593, -0.04527147859334946, -0.43790319561958313, -0.5268092155456543, 0.7459239959716797, 0.1621434986591339, 0.20041488111019135, -0.06877419352531433, 0.3265429437160492, -0.3615376949310303, -0.5953003764152527, -0.26433274149894714, 0.5581690669059753, -0.674296498298645, -0.4374823272228241, -0.5789502263069153, -0.5508792400360107, -0.35034456849098206, -0.05527496337890625, -0.4253133535385132, -0.3577721416950226, -0.4389782249927521, 0.12470052391290665, 0.7327929139137268, 0.6152850389480591, -0.2497454434633255, 0.5180947184562683, -0.5773707628250122, 0.17661152780056, 0.1095765084028244, 0.6538093090057373, -0.0875156819820404, -1.029173493385315, -0.1813594251871109, -0.12742212414741516, -0.5382278561592102, -0.7776795029640198, 0.5651290416717529, 0.24837294220924377, 0.5492191910743713, 0.4577190577983856, -0.3822653591632843, 0.7918460369110107, -0.0846681222319603, 0.44760867953300476, 0.3607945442199707, -0.5711604356765747, 0.6317683458328247, -0.15600062906742096, 0.19396954774856567, 0.11312184482812881, 0.4786098301410675, -0.33969220519065857, -0.12444043159484863, -1.0663862228393555, -0.7767702341079712, 0.9614549875259399, 0.14111626148223877, -0.05220392718911171, 0.37662115693092346, 0.7875275611877441, 0.015477364882826805, 0.02874762751162052, -0.9717016816139221, -0.39668145775794983, -0.25513094663619995, -0.27616462111473083, -0.021887581795454025, -0.1436605304479599, -0.10119917243719101, -0.6995722055435181, 0.811565101146698, -0.155672088265419, 0.8159528374671936, 0.3043455481529236, 0.16404597461223602, -0.1331476867198944, -0.36387649178504944, 0.47439882159233093, 0.35831502079963684, -0.5734578371047974, 0.04932752251625061, 0.04035436734557152, -0.613513708114624, -0.01017350610345602, 0.2568383812904358, -0.020365172997117043, -0.01274461206048727, 0.36809805035591125, 0.8952912092208862, -0.059962909668684006, 0.056346531957387924, 0.3670281171798706, -0.013707425445318222, -0.4536517560482025, -0.1674628108739853, 0.12557421624660492, 0.0031183306127786636, 0.37893521785736084, 0.3522053062915802, 0.41023966670036316, -0.16083656251430511, -0.31080302596092224, 0.20777101814746857, 0.6960054636001587, -0.31620562076568604, -0.3762115240097046, 0.6783810257911682, -0.29745087027549744, -0.10742254555225372, 0.8360554575920105, -0.2000359147787094, -0.4755513668060303, 1.0176771879196167, 0.5012168288230896, 0.9877315163612366, -0.06653884798288345, 0.13664288818836212, 0.9451658725738525, 0.230181485414505, -0.06507866084575653, 0.2347734570503235, 0.2032029777765274, -0.7887463569641113, -0.024972116574645042, -0.6032363176345825, -0.12149780243635178, 0.49499592185020447, -0.6396072506904602, 0.26425591111183167, -0.814125657081604, -0.4568098187446594, 0.18837720155715942, 0.32816845178604126, -0.7534034848213196, 0.14613963663578033, 0.101115882396698, 0.8872777223587036, -0.8739356994628906, 0.728825032711029, 0.7418544292449951, -0.460342139005661, -0.8899775743484497, -0.17664659023284912, 0.05420676991343498, -0.9016048312187195, 0.56110680103302, 0.4852220118045807, 0.09140335768461227, 0.03589324280619621, -0.9559868574142456, -0.6477837562561035, 1.3199721574783325, 0.49827831983566284, -0.0914548933506012, 0.19210949540138245, -0.07303067296743393, 0.2530924379825592, -0.4455113410949707, 0.43166306614875793, 0.12131847441196442, 0.37088853120803833, 0.42559170722961426, -0.6876471042633057, 0.19344718754291534, -0.3512367904186249, 0.0005537435063160956, 0.20258337259292603, -0.6949796676635742, 0.9327407479286194, -0.5152922868728638, -0.10926326364278793, 0.16453221440315247, 0.5510302186012268, 0.48140960931777954, 0.17420463263988495, 0.41153663396835327, 0.9454619884490967, 0.6042953133583069, -0.3693908154964447, 0.9569973349571228, -0.028168797492980957, 0.7920821309089661, 0.7167645692825317, 0.31087666749954224, 0.6092674136161804, 0.4768216907978058, -0.45453402400016785, 0.3713722229003906, 1.0616254806518555, -0.47907865047454834, 0.3835361897945404, 0.2381192445755005, -0.0027897763065993786, -0.08762696385383606, 0.1569809913635254, -0.5465929508209229, 0.4146650433540344, 0.21913783252239227, -0.5566317439079285, -0.2113358974456787, 0.0069097657687962055, 0.1329212784767151, -0.48319777846336365, -0.2468341439962387, 0.4439954459667206, -0.025970710441470146, -0.3962824046611786, 0.7749425172805786, 0.031061938032507896, 0.9206025004386902, -0.5698381662368774, 0.04711221531033516, -0.2829432487487793, 0.27639004588127136, -0.40033435821533203, -0.9168636798858643, 0.36372435092926025, -0.18961498141288757, -0.08767574280500412, 0.018709437921643257, 0.6426201462745667, -0.3091317415237427, -0.6175081133842468, 0.2526301145553589, 0.23772040009498596, 0.5393624901771545, 0.003520238446071744, -1.3298287391662598, 0.08770665526390076, 0.007499237544834614, -0.609095573425293, 0.3713817596435547, 0.2829790413379669, 0.3202377259731293, 0.8382948637008667, 0.6695736050605774, -0.03542499244213104, 0.16329450905323029, -0.14547593891620636, 0.8616347312927246, -0.5159100890159607, -0.2820856273174286, -0.85467529296875, 0.5271630883216858, -0.03261636942625046, -0.5592319369316101, 0.5385840535163879, 0.6942147016525269, 0.8955044746398926, -0.10452564805746078, 0.45486074686050415, -0.33028149604797363, 0.048598919063806534, -0.4782074987888336, 0.7693665623664856, -0.7105177640914917, -0.060276661068201065, -0.2716425657272339, -0.7665838599205017, -0.5044011473655701, 0.9457573294639587, -0.34120145440101624, 0.5682586431503296, 0.5191848874092102, 1.062819004058838, -0.3900202214717865, -0.314294695854187, 0.17230460047721863, 0.215317964553833, 0.10481830686330795, 0.4367353022098541, 0.5077320337295532, -0.8040977716445923, 0.2898533344268799, -0.5992065072059631, -0.13328322768211365, -0.15676715970039368, -0.8553850650787354, -0.9747152328491211, -0.7581909894943237, -0.6910670399665833, -0.7194141745567322, -0.2662917971611023, 0.9103705286979675, 1.0525482892990112, -0.7260059714317322, -0.17876805365085602, -0.026837682351469994, 0.03263534978032112, -0.19747941195964813, -0.26118963956832886, 0.6207467317581177, -0.2055826187133789, -0.7422210574150085, -0.31613150238990784, 0.0415557324886322, 0.5271824598312378, 0.0012777996016666293, -0.368714302778244, -0.28188854455947876, -0.3596634566783905, 0.16624383628368378, 0.3795659840106964, -0.7474979758262634, -0.12220524251461029, -0.2096974402666092, -0.14602047204971313, 0.5135208368301392, 0.40537840127944946, -0.5375061631202698, 0.3490762412548065, 0.3965017795562744, 0.22402015328407288, 0.9458974599838257, -0.3152410089969635, 0.021530333906412125, -0.8510229587554932, 0.5835850834846497, -0.0142592154443264, 0.5566438436508179, 0.4749624729156494, -0.30079755187034607, 0.6698492169380188, 0.47340813279151917, -0.5687849521636963, -0.8902922868728638, -0.14582397043704987, -1.1246733665466309, -0.1222897544503212, 0.9501475095748901, -0.38363465666770935, -0.42786529660224915, 0.5463284850120544, -0.07288094609975815, 0.5234324336051941, -0.012468983419239521, 0.5125377774238586, 0.3800010681152344, -0.2016512006521225, -0.6775230765342712, -0.6211033463478088, 0.5287762880325317, 0.13912969827651978, -0.7120822072029114, -0.3564538359642029, 0.043490808457136154, 0.6790862083435059, 0.2070106714963913, 0.4905574917793274, -0.22287094593048096, 0.06619444489479065, 0.01808299496769905, 0.4950881898403168, -0.4378192722797394, -0.13460230827331543, -0.37490129470825195, 0.05525083467364311, -0.06780305504798889, -0.5531727075576782 ]
timm/eca_botnext26ts_256.c1_in1k
timm
"2023-04-26T16:09:31Z"
40,352
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:09:12Z"
--- tags: - image-classification - timm library_name: timm license: apache-2.0 datasets: - imagenet-1k --- # Model card for eca_botnext26ts_256.c1_in1k A BotNet image classification model (with Efficient channel attention, based on ResNeXt 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) `C` recipes * SGD (w/ Nesterov) optimizer and AGC (adaptive gradient clipping). * 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): 10.6 - GMACs: 2.5 - Activations (M): 11.6 - 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('eca_botnext26ts_256.c1_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( 'eca_botnext26ts_256.c1_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, 64, 128, 128]) # torch.Size([1, 256, 64, 64]) # torch.Size([1, 512, 32, 32]) # torch.Size([1, 1024, 16, 16]) # torch.Size([1, 2048, 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( 'eca_botnext26ts_256.c1_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, 2048, 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.5232583284378052, -0.5166521072387695, 0.045484356582164764, 0.06797345727682114, -0.26780954003334045, -0.2950547933578491, -0.2624818980693817, -0.43386852741241455, 0.25992482900619507, 0.5019598007202148, -0.5333709716796875, -0.6673593521118164, -0.6775127649307251, -0.04402860254049301, -0.16957633197307587, 0.87749183177948, -0.08061542361974716, -0.06555598974227905, -0.14830923080444336, -0.5789187550544739, -0.2851496934890747, -0.3746584355831146, -0.9543187618255615, -0.3626142740249634, 0.41288530826568604, 0.17965546250343323, 0.4089496433734894, 0.6411345601081848, 0.6712295413017273, 0.5067597031593323, -0.0917867049574852, 0.09417634457349777, -0.20730428397655487, -0.19483928382396698, 0.26055648922920227, -0.6257581114768982, -0.46993371844291687, 0.23547348380088806, 0.5833659172058105, 0.25662660598754883, 0.005618035327643156, 0.4518071413040161, 0.027322735637426376, 0.6121161580085754, -0.22553160786628723, 0.05789882689714432, -0.5387303829193115, 0.18821804225444794, -0.1842135787010193, 0.0023499035742133856, -0.3890651762485504, -0.23315274715423584, 0.26814520359039307, -0.4935361444950104, 0.4900816082954407, 0.12063144892454147, 1.339480996131897, 0.2646765410900116, 0.034676387906074524, 0.03082147240638733, -0.25380679965019226, 0.8218138217926025, -0.7204059362411499, 0.32060864567756653, 0.17363719642162323, 0.24714721739292145, -0.07454421371221542, -0.992771565914154, -0.5805214643478394, -0.15022802352905273, -0.06936220079660416, 0.08675146847963333, -0.28610920906066895, -0.007798480801284313, 0.3475703299045563, 0.2074875682592392, -0.4599236249923706, 0.11520594358444214, -0.5604934692382812, -0.1690167486667633, 0.4824228584766388, 0.0027996234130114317, 0.318258672952652, -0.2574428915977478, -0.5570167303085327, -0.42986974120140076, -0.3847223222255707, 0.27164068818092346, 0.26750338077545166, 0.20810566842556, -0.6286455988883972, 0.2991484999656677, 0.17759573459625244, 0.5498011112213135, 0.04540994390845299, -0.23504936695098877, 0.565617024898529, 0.07287134230136871, -0.4127160906791687, -0.2194688618183136, 1.0691053867340088, 0.33388882875442505, 0.2942521572113037, 0.11075327545404434, -0.19407746195793152, -0.2821732461452484, 0.078209288418293, -1.0430721044540405, -0.3546968102455139, 0.36016079783439636, -0.6711720824241638, -0.3732645809650421, 0.22716978192329407, -0.6747832298278809, -0.07290758937597275, -0.048978932201862335, 0.5178796052932739, -0.5704712271690369, -0.3220249116420746, -0.004479303024709225, -0.22779926657676697, 0.34002232551574707, 0.2623557448387146, -0.46782344579696655, 0.22754204273223877, 0.2873431146144867, 1.1463664770126343, 0.04176535829901695, -0.39515599608421326, -0.20780253410339355, -0.3666233718395233, -0.18506799638271332, 0.5640956163406372, -0.05911645293235779, -0.02814234420657158, -0.32579541206359863, 0.39779341220855713, -0.11367609351873398, -0.7350835204124451, 0.14466427266597748, -0.3169339895248413, 0.23532457649707794, 0.03318027779459953, -0.2392280548810959, -0.5472992062568665, 0.364825576543808, -0.5296991467475891, 1.1242091655731201, 0.2815725803375244, -0.8095904588699341, 0.2781321406364441, -0.5712503790855408, -0.11269453167915344, -0.2438739836215973, -0.060691751539707184, -1.1480854749679565, -0.09375008940696716, 0.24919667840003967, 0.7016843557357788, -0.3263598382472992, -0.08556090295314789, -0.5880837440490723, -0.2229938954114914, 0.42832571268081665, -0.12856079638004303, 0.991118848323822, 0.1489349901676178, -0.4439641833305359, 0.2396869957447052, -0.6598923206329346, 0.14528796076774597, 0.6116994023323059, -0.17073670029640198, -0.035721465945243835, -0.5707873702049255, 0.19773437082767487, 0.3420657217502594, 0.11496415734291077, -0.6000331044197083, 0.19330225884914398, -0.21484367549419403, 0.5297229886054993, 0.7567124366760254, -0.12352548539638519, 0.23526467382907867, -0.4044708013534546, 0.3243846297264099, 0.28499719500541687, 0.2748173177242279, -0.13977937400341034, -0.537498950958252, -0.8301759958267212, -0.5682363510131836, 0.41555285453796387, 0.4068593978881836, -0.4785096347332001, 0.5413835644721985, -0.15694132447242737, -0.6967765688896179, -0.5387817025184631, 0.10467230528593063, 0.5420747399330139, 0.545274555683136, 0.3551950454711914, -0.5776592493057251, -0.5959135293960571, -0.9147761464118958, 0.05293074622750282, 0.07779383659362793, 0.03852291405200958, 0.3876177668571472, 0.6688443422317505, -0.06514349579811096, 0.6789906620979309, -0.34046557545661926, -0.3338108956813812, -0.3022860586643219, 0.12047978490591049, 0.4024316966533661, 0.7711299657821655, 0.8168620467185974, -0.6173311471939087, -0.5442884564399719, -0.1108393594622612, -0.8309752345085144, 0.12969210743904114, -0.16292612254619598, -0.14616981148719788, 0.3947375416755676, 0.1473529189825058, -0.5453763008117676, 0.6515912413597107, 0.2259860783815384, -0.19813601672649384, 0.3635641932487488, -0.23072606325149536, 0.2067074030637741, -1.1334058046340942, 0.12972991168498993, 0.4183393716812134, -0.2635963261127472, -0.3671632707118988, 0.0643339455127716, 0.0576377771794796, -0.08716835081577301, -0.5196685194969177, 0.6638823747634888, -0.5694583058357239, -0.23234666883945465, -0.16702790558338165, -0.11064470559358597, -0.05036325007677078, 0.8954479694366455, 0.0059446776285767555, 0.4213493764400482, 0.7879250049591064, -0.47929686307907104, 0.46684888005256653, 0.3280044198036194, -0.1226133182644844, 0.4885396957397461, -0.7281495332717896, 0.30472126603126526, 0.016721712425351143, 0.19431528449058533, -1.054166555404663, -0.150521919131279, 0.40689271688461304, -0.655364453792572, 0.6860254406929016, -0.47290173172950745, -0.41201308369636536, -0.6207670569419861, -0.47463345527648926, 0.40589797496795654, 0.7675808072090149, -0.8220701813697815, 0.505731463432312, 0.2358676940202713, 0.3545434772968292, -0.5213406085968018, -0.7453285455703735, -0.1942625492811203, -0.4128674566745758, -0.6253209114074707, 0.3338487148284912, 0.1340596228837967, 0.13990946114063263, 0.10974140465259552, -0.12495803087949753, -0.014358652755618095, -0.11196047812700272, 0.5736603140830994, 0.4037453234195709, -0.1945105493068695, -0.12363458424806595, -0.4243261516094208, -0.06953568011522293, -0.011685670353472233, -0.2832830548286438, 0.695946216583252, -0.2623962163925171, -0.15670400857925415, -0.9561759233474731, -0.05052007734775543, 0.5222787857055664, -0.16815514862537384, 0.7637332677841187, 1.0242854356765747, -0.5145219564437866, -0.043802447617053986, -0.5215179324150085, -0.2993563711643219, -0.49647799134254456, 0.5081998109817505, -0.3553180396556854, -0.3853023946285248, 0.8936530947685242, -0.03157234936952591, 0.016481349244713783, 0.6370639801025391, 0.38164687156677246, -0.1382942646741867, 0.7399473786354065, 0.68491530418396, 0.11500326544046402, 0.8181931376457214, -0.960145115852356, -0.23595286905765533, -0.9249469637870789, -0.453853577375412, -0.34418877959251404, -0.6633498668670654, -0.7068068981170654, -0.3075311481952667, 0.44655749201774597, 0.03978686407208443, -0.39564305543899536, 0.5699172019958496, -0.8683184385299683, 0.04446340352296829, 0.7405278086662292, 0.6522753238677979, -0.36062416434288025, 0.28753894567489624, -0.13243067264556885, -0.03063366562128067, -0.7908734083175659, -0.2641451060771942, 1.203497052192688, 0.5136228203773499, 0.6493045091629028, -0.2305852621793747, 0.7382307648658752, -0.13291193544864655, 0.4489840865135193, -0.5594451427459717, 0.6401188969612122, -0.10546555370092392, -0.4535737633705139, -0.18018589913845062, -0.41112959384918213, -1.1168910264968872, -0.007454353384673595, -0.25644978880882263, -0.81013023853302, 0.11480151861906052, 0.15448369085788727, -0.24774672091007233, 0.7877748012542725, -0.8177434802055359, 0.9449421763420105, -0.1497761309146881, -0.3909969925880432, -0.06833378970623016, -0.7199026346206665, 0.2257898449897766, 0.19154246151447296, -0.27380385994911194, -0.05316836014389992, 0.1361284703016281, 1.0725362300872803, -0.6304996013641357, 0.8943576216697693, -0.3547026515007019, 0.34557920694351196, 0.5271120071411133, -0.22441473603248596, 0.35667604207992554, -0.15275302529335022, 0.021058401092886925, 0.4576537013053894, -0.017163677141070366, -0.49602946639060974, -0.5778687596321106, 0.5281323194503784, -1.0111509561538696, -0.41263654828071594, -0.34720543026924133, -0.45672813057899475, 0.24670851230621338, 0.07595154643058777, 0.5148855447769165, 0.6994942426681519, 0.23956041038036346, 0.1749909371137619, 0.5984060764312744, -0.5173144936561584, 0.44383013248443604, 0.0019178699003532529, -0.09834859520196915, -0.5853198766708374, 0.8776571154594421, 0.2595580518245697, 0.17810851335525513, 0.224766343832016, 0.09402777254581451, -0.2716706097126007, -0.45401400327682495, -0.27338406443595886, 0.42660701274871826, -0.6217651963233948, -0.5354751944541931, -0.5591375231742859, -0.5120819211006165, -0.43632352352142334, -0.05441296100616455, -0.5309301614761353, -0.2984505593776703, -0.28315043449401855, 0.2869473099708557, 0.7530943751335144, 0.5498528480529785, -0.07568951696157455, 0.5855607390403748, -0.5452777743339539, 0.17669470608234406, 0.09104413539171219, 0.48676159977912903, -0.04622586816549301, -0.9085714817047119, -0.23596996068954468, -0.20338751375675201, -0.5344005227088928, -0.8056440949440002, 0.5382946729660034, 0.09724027663469315, 0.4883907437324524, 0.3396647274494171, -0.2362385243177414, 0.716152548789978, -0.11473026871681213, 0.43063879013061523, 0.42408281564712524, -0.5909843444824219, 0.6242138743400574, 0.043357010930776596, 0.15142576396465302, 0.012523406185209751, 0.26485687494277954, -0.2939242422580719, -0.1344718486070633, -1.0751899480819702, -0.685423731803894, 0.9337850213050842, 0.08630584925413132, -0.08888687938451767, 0.28080689907073975, 0.7109708189964294, 0.03386053070425987, 0.04160502180457115, -0.7800805568695068, -0.4564032256603241, -0.263338178396225, -0.3018755316734314, 0.10699964314699173, 0.025546230375766754, -0.04307207092642784, -0.6196783185005188, 0.6647673845291138, 0.0038510141894221306, 0.8344118595123291, 0.4080164134502411, -0.01707390323281288, -0.09071005880832672, -0.39070644974708557, 0.3992312550544739, 0.2252804934978485, -0.3420775532722473, 0.05501433461904526, 0.28165292739868164, -0.5428261756896973, 0.04459438472986221, 0.10436249524354935, 0.0018763578264042735, -0.002451726235449314, 0.4715052843093872, 0.8777871131896973, -0.06094514951109886, -0.10166433453559875, 0.400309294462204, -0.05685620754957199, -0.3345338702201843, -0.2982357442378998, 0.12233642488718033, -0.19418983161449432, 0.49280741810798645, 0.2271713763475418, 0.41871675848960876, -0.23243990540504456, -0.3293444812297821, 0.311550110578537, 0.5882641077041626, -0.24284717440605164, -0.40934622287750244, 0.7182193994522095, -0.16261915862560272, -0.323067843914032, 0.8705179691314697, -0.06977766007184982, -0.5630089640617371, 1.1708985567092896, 0.4601553976535797, 1.0170882940292358, -0.05849427729845047, -0.01854499615728855, 0.7956821918487549, 0.2812054753303528, 0.11685480922460556, 0.23236985504627228, 0.12063247710466385, -0.7313848733901978, 0.12019654363393784, -0.4155231714248657, 0.005231721326708794, 0.41707685589790344, -0.4972003698348999, 0.39160388708114624, -0.8141582608222961, -0.484885573387146, 0.10031525045633316, 0.29988473653793335, -1.0822982788085938, 0.24346832931041718, 0.0003876380214933306, 0.9046679139137268, -0.6611065864562988, 0.7288722991943359, 0.8682526350021362, -0.5967795252799988, -0.9279340505599976, -0.10079357773065567, -0.025779370218515396, -1.0378233194351196, 0.5791948437690735, 0.49264129996299744, 0.17900237441062927, 0.08408977836370468, -0.8844380378723145, -0.6132069230079651, 1.4253987073898315, 0.47242990136146545, -0.21774248778820038, 0.2875480651855469, -0.15278464555740356, 0.2770550549030304, -0.42397505044937134, 0.5025618076324463, 0.18687716126441956, 0.30227720737457275, 0.2318628430366516, -0.6670836210250854, 0.2806803286075592, -0.2664327621459961, 0.08802849054336548, 0.14972597360610962, -0.9465906023979187, 0.8285185694694519, -0.5232150554656982, -0.20753662288188934, 0.12055877596139908, 0.7286784052848816, 0.2656583786010742, 0.20132040977478027, 0.5297028422355652, 0.8771544098854065, 0.5016019344329834, -0.2819308638572693, 0.9121351838111877, -0.122108094394207, 0.5733899474143982, 0.6178380250930786, 0.3772180378437042, 0.6026139855384827, 0.4097473919391632, -0.31370440125465393, 0.37217769026756287, 1.0836834907531738, -0.3873164653778076, 0.3397487699985504, 0.2186405062675476, 0.13270650804042816, -0.15200944244861603, 0.07816598564386368, -0.3842734396457672, 0.4606872797012329, 0.15985360741615295, -0.5260182619094849, -0.13608801364898682, 0.11040123552083969, -0.10399060696363449, -0.24402981996536255, -0.1834121197462082, 0.5172175168991089, 0.043281663209199905, -0.3566600978374481, 0.8114752173423767, 0.07482503354549408, 0.8589358329772949, -0.3646285831928253, 0.016324171796441078, -0.279885470867157, 0.21014733612537384, -0.24078238010406494, -0.7859179377555847, 0.22390161454677582, -0.23050673305988312, 0.00806385651230812, 0.030265886336565018, 0.6589399576187134, -0.2787480652332306, -0.399299293756485, 0.23264357447624207, 0.3003808557987213, 0.5572370290756226, 0.034466102719306946, -1.2276889085769653, 0.21739958226680756, -0.07286502420902252, -0.6064198613166809, 0.24766984581947327, 0.49588051438331604, 0.08122063428163528, 0.8311746120452881, 0.5109124779701233, -0.04566691070795059, 0.12083949893712997, -0.14145778119564056, 0.7989013195037842, -0.5854142308235168, -0.27477648854255676, -0.7953342795372009, 0.5267801284790039, -0.15779705345630646, -0.5532859563827515, 0.4891030490398407, 0.5212063193321228, 0.933016300201416, -0.07188878953456879, 0.42081916332244873, -0.2430204302072525, -0.016382047906517982, -0.4038791060447693, 0.6235132217407227, -0.7656998634338379, 0.03546186536550522, -0.22034604847431183, -0.6950390934944153, -0.30034998059272766, 0.6558617949485779, -0.2383444607257843, 0.44174832105636597, 0.5122537016868591, 0.9863813519477844, -0.3024178445339203, -0.43557849526405334, 0.2145734429359436, 0.14069373905658722, 0.107223279774189, 0.5594801306724548, 0.41268569231033325, -0.8200947046279907, 0.38182079792022705, -0.5776869058609009, -0.19648316502571106, -0.1309603601694107, -0.5943804383277893, -1.073147177696228, -0.8939703106880188, -0.6544175148010254, -0.6304412484169006, -0.16402767598628998, 0.9971017837524414, 1.101155161857605, -0.7049782872200012, -0.10473155975341797, -0.018662352114915848, 0.21826180815696716, -0.3382738530635834, -0.23001539707183838, 0.6022529602050781, -0.24866728484630585, -0.8459519743919373, -0.4030182957649231, 0.1482377052307129, 0.4181734025478363, -0.04836332052946091, -0.20841558277606964, -0.16731864213943481, -0.19362694025039673, 0.15473231673240662, 0.4222976565361023, -0.7409682273864746, -0.25878310203552246, -0.17208193242549896, -0.1311151534318924, 0.4838349521160126, 0.4823817312717438, -0.6248676180839539, 0.2920432984828949, 0.346248596906662, 0.45031723380088806, 0.7619251608848572, -0.2982952892780304, 0.08201020210981369, -0.8615251183509827, 0.5474243760108948, -0.23169293999671936, 0.5460929870605469, 0.3873360753059387, -0.3686795234680176, 0.5889025330543518, 0.5689944624900818, -0.44024717807769775, -0.8411558866500854, -0.08301173150539398, -1.203144907951355, -0.1378006935119629, 0.7959029078483582, -0.3368400037288666, -0.6742275953292847, 0.42162996530532837, -0.12185367941856384, 0.7033835053443909, -0.16147932410240173, 0.6461631655693054, 0.25199228525161743, -0.09298805892467499, -0.7241380214691162, -0.481759250164032, 0.371472030878067, 0.2320946902036667, -0.6545274257659912, -0.38935551047325134, -0.06959229707717896, 0.6744872331619263, 0.28100061416625977, 0.48987051844596863, -0.17770661413669586, 0.17058400809764862, 0.037496790289878845, 0.5932648777961731, -0.3545205295085907, -0.220563143491745, -0.3251873254776001, -0.0017085087019950151, -0.1733163446187973, -0.7047666311264038 ]
timm/resnext101_32x16d.fb_swsl_ig1b_ft_in1k
timm
"2023-04-05T19:15:51Z"
40,350
0
timm
[ "timm", "pytorch", "safetensors", "image-classification", "arxiv:1905.00546", "arxiv:1611.05431", "arxiv:1512.03385", "license:cc-by-nc-4.0", "region:us" ]
image-classification
"2023-04-05T19:13:21Z"
--- tags: - image-classification - timm library_tag: timm license: cc-by-nc-4.0 --- # Model card for resnext101_32x16d.fb_swsl_ig1b_ft_in1k A ResNeXt-B image classification model. This model features: * ReLU activations * single layer 7x7 convolution with pooling * 1x1 convolution shortcut downsample * grouped 3x3 bottleneck convolutions Pretrained on Instagram-1B hashtags dataset using semi-weakly supervised learning and fine-tuned on ImageNet-1k by paper authors. ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 194.0 - GMACs: 36.3 - Activations (M): 51.2 - Image size: 224 x 224 - **Papers:** - Billion-scale semi-supervised learning for image classification: https://arxiv.org/abs/1905.00546 - Aggregated Residual Transformations for Deep Neural Networks: https://arxiv.org/abs/1611.05431 - Deep Residual Learning for Image Recognition: https://arxiv.org/abs/1512.03385 - **Original:** https://github.com/facebookresearch/semi-supervised-ImageNet1K-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('resnext101_32x16d.fb_swsl_ig1b_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( 'resnext101_32x16d.fb_swsl_ig1b_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, 64, 112, 112]) # torch.Size([1, 256, 56, 56]) # torch.Size([1, 512, 28, 28]) # torch.Size([1, 1024, 14, 14]) # torch.Size([1, 2048, 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( 'resnext101_32x16d.fb_swsl_ig1b_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, 2048, 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). |model |img_size|top1 |top5 |param_count|gmacs|macts|img/sec| |------------------------------------------|--------|-----|-----|-----------|-----|-----|-------| |[seresnextaa101d_32x8d.sw_in12k_ft_in1k_288](https://huggingface.co/timm/seresnextaa101d_32x8d.sw_in12k_ft_in1k_288)|320 |86.72|98.17|93.6 |35.2 |69.7 |451 | |[seresnextaa101d_32x8d.sw_in12k_ft_in1k_288](https://huggingface.co/timm/seresnextaa101d_32x8d.sw_in12k_ft_in1k_288)|288 |86.51|98.08|93.6 |28.5 |56.4 |560 | |[seresnextaa101d_32x8d.sw_in12k_ft_in1k](https://huggingface.co/timm/seresnextaa101d_32x8d.sw_in12k_ft_in1k)|288 |86.49|98.03|93.6 |28.5 |56.4 |557 | |[seresnextaa101d_32x8d.sw_in12k_ft_in1k](https://huggingface.co/timm/seresnextaa101d_32x8d.sw_in12k_ft_in1k)|224 |85.96|97.82|93.6 |17.2 |34.2 |923 | |[resnext101_32x32d.fb_wsl_ig1b_ft_in1k](https://huggingface.co/timm/resnext101_32x32d.fb_wsl_ig1b_ft_in1k)|224 |85.11|97.44|468.5 |87.3 |91.1 |254 | |[resnetrs420.tf_in1k](https://huggingface.co/timm/resnetrs420.tf_in1k)|416 |85.0 |97.12|191.9 |108.4|213.8|134 | |[ecaresnet269d.ra2_in1k](https://huggingface.co/timm/ecaresnet269d.ra2_in1k)|352 |84.96|97.22|102.1 |50.2 |101.2|291 | |[ecaresnet269d.ra2_in1k](https://huggingface.co/timm/ecaresnet269d.ra2_in1k)|320 |84.73|97.18|102.1 |41.5 |83.7 |353 | |[resnetrs350.tf_in1k](https://huggingface.co/timm/resnetrs350.tf_in1k)|384 |84.71|96.99|164.0 |77.6 |154.7|183 | |[seresnextaa101d_32x8d.ah_in1k](https://huggingface.co/timm/seresnextaa101d_32x8d.ah_in1k)|288 |84.57|97.08|93.6 |28.5 |56.4 |557 | |[resnetrs200.tf_in1k](https://huggingface.co/timm/resnetrs200.tf_in1k)|320 |84.45|97.08|93.2 |31.5 |67.8 |446 | |[resnetrs270.tf_in1k](https://huggingface.co/timm/resnetrs270.tf_in1k)|352 |84.43|96.97|129.9 |51.1 |105.5|280 | |[seresnext101d_32x8d.ah_in1k](https://huggingface.co/timm/seresnext101d_32x8d.ah_in1k)|288 |84.36|96.92|93.6 |27.6 |53.0 |595 | |[seresnet152d.ra2_in1k](https://huggingface.co/timm/seresnet152d.ra2_in1k)|320 |84.35|97.04|66.8 |24.1 |47.7 |610 | |[resnetrs350.tf_in1k](https://huggingface.co/timm/resnetrs350.tf_in1k)|288 |84.3 |96.94|164.0 |43.7 |87.1 |333 | |[resnext101_32x8d.fb_swsl_ig1b_ft_in1k](https://huggingface.co/timm/resnext101_32x8d.fb_swsl_ig1b_ft_in1k)|224 |84.28|97.17|88.8 |16.5 |31.2 |1100 | |[resnetrs420.tf_in1k](https://huggingface.co/timm/resnetrs420.tf_in1k)|320 |84.24|96.86|191.9 |64.2 |126.6|228 | |[seresnext101_32x8d.ah_in1k](https://huggingface.co/timm/seresnext101_32x8d.ah_in1k)|288 |84.19|96.87|93.6 |27.2 |51.6 |613 | |[resnext101_32x16d.fb_wsl_ig1b_ft_in1k](https://huggingface.co/timm/resnext101_32x16d.fb_wsl_ig1b_ft_in1k)|224 |84.18|97.19|194.0 |36.3 |51.2 |581 | |[resnetaa101d.sw_in12k_ft_in1k](https://huggingface.co/timm/resnetaa101d.sw_in12k_ft_in1k)|288 |84.11|97.11|44.6 |15.1 |29.0 |1144 | |[resnet200d.ra2_in1k](https://huggingface.co/timm/resnet200d.ra2_in1k)|320 |83.97|96.82|64.7 |31.2 |67.3 |518 | |[resnetrs200.tf_in1k](https://huggingface.co/timm/resnetrs200.tf_in1k)|256 |83.87|96.75|93.2 |20.2 |43.4 |692 | |[seresnextaa101d_32x8d.ah_in1k](https://huggingface.co/timm/seresnextaa101d_32x8d.ah_in1k)|224 |83.86|96.65|93.6 |17.2 |34.2 |923 | |[resnetrs152.tf_in1k](https://huggingface.co/timm/resnetrs152.tf_in1k)|320 |83.72|96.61|86.6 |24.3 |48.1 |617 | |[seresnet152d.ra2_in1k](https://huggingface.co/timm/seresnet152d.ra2_in1k)|256 |83.69|96.78|66.8 |15.4 |30.6 |943 | |[seresnext101d_32x8d.ah_in1k](https://huggingface.co/timm/seresnext101d_32x8d.ah_in1k)|224 |83.68|96.61|93.6 |16.7 |32.0 |986 | |[resnet152d.ra2_in1k](https://huggingface.co/timm/resnet152d.ra2_in1k)|320 |83.67|96.74|60.2 |24.1 |47.7 |706 | |[resnetrs270.tf_in1k](https://huggingface.co/timm/resnetrs270.tf_in1k)|256 |83.59|96.61|129.9 |27.1 |55.8 |526 | |[seresnext101_32x8d.ah_in1k](https://huggingface.co/timm/seresnext101_32x8d.ah_in1k)|224 |83.58|96.4 |93.6 |16.5 |31.2 |1013 | |[resnetaa101d.sw_in12k_ft_in1k](https://huggingface.co/timm/resnetaa101d.sw_in12k_ft_in1k)|224 |83.54|96.83|44.6 |9.1 |17.6 |1864 | |[resnet152.a1h_in1k](https://huggingface.co/timm/resnet152.a1h_in1k)|288 |83.46|96.54|60.2 |19.1 |37.3 |904 | |[resnext101_32x16d.fb_swsl_ig1b_ft_in1k](https://huggingface.co/timm/resnext101_32x16d.fb_swsl_ig1b_ft_in1k)|224 |83.35|96.85|194.0 |36.3 |51.2 |582 | |[resnet200d.ra2_in1k](https://huggingface.co/timm/resnet200d.ra2_in1k)|256 |83.23|96.53|64.7 |20.0 |43.1 |809 | |[resnext101_32x4d.fb_swsl_ig1b_ft_in1k](https://huggingface.co/timm/resnext101_32x4d.fb_swsl_ig1b_ft_in1k)|224 |83.22|96.75|44.2 |8.0 |21.2 |1814 | |[resnext101_64x4d.c1_in1k](https://huggingface.co/timm/resnext101_64x4d.c1_in1k)|288 |83.16|96.38|83.5 |25.7 |51.6 |590 | |[resnet152d.ra2_in1k](https://huggingface.co/timm/resnet152d.ra2_in1k)|256 |83.14|96.38|60.2 |15.4 |30.5 |1096 | |[resnet101d.ra2_in1k](https://huggingface.co/timm/resnet101d.ra2_in1k)|320 |83.02|96.45|44.6 |16.5 |34.8 |992 | |[ecaresnet101d.miil_in1k](https://huggingface.co/timm/ecaresnet101d.miil_in1k)|288 |82.98|96.54|44.6 |13.4 |28.2 |1077 | |[resnext101_64x4d.tv_in1k](https://huggingface.co/timm/resnext101_64x4d.tv_in1k)|224 |82.98|96.25|83.5 |15.5 |31.2 |989 | |[resnetrs152.tf_in1k](https://huggingface.co/timm/resnetrs152.tf_in1k)|256 |82.86|96.28|86.6 |15.6 |30.8 |951 | |[resnext101_32x8d.tv2_in1k](https://huggingface.co/timm/resnext101_32x8d.tv2_in1k)|224 |82.83|96.22|88.8 |16.5 |31.2 |1099 | |[resnet152.a1h_in1k](https://huggingface.co/timm/resnet152.a1h_in1k)|224 |82.8 |96.13|60.2 |11.6 |22.6 |1486 | |[resnet101.a1h_in1k](https://huggingface.co/timm/resnet101.a1h_in1k)|288 |82.8 |96.32|44.6 |13.0 |26.8 |1291 | |[resnet152.a1_in1k](https://huggingface.co/timm/resnet152.a1_in1k)|288 |82.74|95.71|60.2 |19.1 |37.3 |905 | |[resnext101_32x8d.fb_wsl_ig1b_ft_in1k](https://huggingface.co/timm/resnext101_32x8d.fb_wsl_ig1b_ft_in1k)|224 |82.69|96.63|88.8 |16.5 |31.2 |1100 | |[resnet152.a2_in1k](https://huggingface.co/timm/resnet152.a2_in1k)|288 |82.62|95.75|60.2 |19.1 |37.3 |904 | |[resnetaa50d.sw_in12k_ft_in1k](https://huggingface.co/timm/resnetaa50d.sw_in12k_ft_in1k)|288 |82.61|96.49|25.6 |8.9 |20.6 |1729 | |[resnet61q.ra2_in1k](https://huggingface.co/timm/resnet61q.ra2_in1k)|288 |82.53|96.13|36.8 |9.9 |21.5 |1773 | |[wide_resnet101_2.tv2_in1k](https://huggingface.co/timm/wide_resnet101_2.tv2_in1k)|224 |82.5 |96.02|126.9 |22.8 |21.2 |1078 | |[resnext101_64x4d.c1_in1k](https://huggingface.co/timm/resnext101_64x4d.c1_in1k)|224 |82.46|95.92|83.5 |15.5 |31.2 |987 | |[resnet51q.ra2_in1k](https://huggingface.co/timm/resnet51q.ra2_in1k)|288 |82.36|96.18|35.7 |8.1 |20.9 |1964 | |[ecaresnet50t.ra2_in1k](https://huggingface.co/timm/ecaresnet50t.ra2_in1k)|320 |82.35|96.14|25.6 |8.8 |24.1 |1386 | |[resnet101.a1_in1k](https://huggingface.co/timm/resnet101.a1_in1k)|288 |82.31|95.63|44.6 |13.0 |26.8 |1291 | |[resnetrs101.tf_in1k](https://huggingface.co/timm/resnetrs101.tf_in1k)|288 |82.29|96.01|63.6 |13.6 |28.5 |1078 | |[resnet152.tv2_in1k](https://huggingface.co/timm/resnet152.tv2_in1k)|224 |82.29|96.0 |60.2 |11.6 |22.6 |1484 | |[wide_resnet50_2.racm_in1k](https://huggingface.co/timm/wide_resnet50_2.racm_in1k)|288 |82.27|96.06|68.9 |18.9 |23.8 |1176 | |[resnet101d.ra2_in1k](https://huggingface.co/timm/resnet101d.ra2_in1k)|256 |82.26|96.07|44.6 |10.6 |22.2 |1542 | |[resnet101.a2_in1k](https://huggingface.co/timm/resnet101.a2_in1k)|288 |82.24|95.73|44.6 |13.0 |26.8 |1290 | |[seresnext50_32x4d.racm_in1k](https://huggingface.co/timm/seresnext50_32x4d.racm_in1k)|288 |82.2 |96.14|27.6 |7.0 |23.8 |1547 | |[ecaresnet101d.miil_in1k](https://huggingface.co/timm/ecaresnet101d.miil_in1k)|224 |82.18|96.05|44.6 |8.1 |17.1 |1771 | |[resnext50_32x4d.fb_swsl_ig1b_ft_in1k](https://huggingface.co/timm/resnext50_32x4d.fb_swsl_ig1b_ft_in1k)|224 |82.17|96.22|25.0 |4.3 |14.4 |2943 | |[ecaresnet50t.a1_in1k](https://huggingface.co/timm/ecaresnet50t.a1_in1k)|288 |82.12|95.65|25.6 |7.1 |19.6 |1704 | |[resnext50_32x4d.a1h_in1k](https://huggingface.co/timm/resnext50_32x4d.a1h_in1k)|288 |82.03|95.94|25.0 |7.0 |23.8 |1745 | |[ecaresnet101d_pruned.miil_in1k](https://huggingface.co/timm/ecaresnet101d_pruned.miil_in1k)|288 |82.0 |96.15|24.9 |5.8 |12.7 |1787 | |[resnet61q.ra2_in1k](https://huggingface.co/timm/resnet61q.ra2_in1k)|256 |81.99|95.85|36.8 |7.8 |17.0 |2230 | |[resnext101_32x8d.tv2_in1k](https://huggingface.co/timm/resnext101_32x8d.tv2_in1k)|176 |81.98|95.72|88.8 |10.3 |19.4 |1768 | |[resnet152.a1_in1k](https://huggingface.co/timm/resnet152.a1_in1k)|224 |81.97|95.24|60.2 |11.6 |22.6 |1486 | |[resnet101.a1h_in1k](https://huggingface.co/timm/resnet101.a1h_in1k)|224 |81.93|95.75|44.6 |7.8 |16.2 |2122 | |[resnet101.tv2_in1k](https://huggingface.co/timm/resnet101.tv2_in1k)|224 |81.9 |95.77|44.6 |7.8 |16.2 |2118 | |[resnext101_32x16d.fb_ssl_yfcc100m_ft_in1k](https://huggingface.co/timm/resnext101_32x16d.fb_ssl_yfcc100m_ft_in1k)|224 |81.84|96.1 |194.0 |36.3 |51.2 |583 | |[resnet51q.ra2_in1k](https://huggingface.co/timm/resnet51q.ra2_in1k)|256 |81.78|95.94|35.7 |6.4 |16.6 |2471 | |[resnet152.a2_in1k](https://huggingface.co/timm/resnet152.a2_in1k)|224 |81.77|95.22|60.2 |11.6 |22.6 |1485 | |[resnetaa50d.sw_in12k_ft_in1k](https://huggingface.co/timm/resnetaa50d.sw_in12k_ft_in1k)|224 |81.74|96.06|25.6 |5.4 |12.4 |2813 | |[ecaresnet50t.a2_in1k](https://huggingface.co/timm/ecaresnet50t.a2_in1k)|288 |81.65|95.54|25.6 |7.1 |19.6 |1703 | |[ecaresnet50d.miil_in1k](https://huggingface.co/timm/ecaresnet50d.miil_in1k)|288 |81.64|95.88|25.6 |7.2 |19.7 |1694 | |[resnext101_32x8d.fb_ssl_yfcc100m_ft_in1k](https://huggingface.co/timm/resnext101_32x8d.fb_ssl_yfcc100m_ft_in1k)|224 |81.62|96.04|88.8 |16.5 |31.2 |1101 | |[wide_resnet50_2.tv2_in1k](https://huggingface.co/timm/wide_resnet50_2.tv2_in1k)|224 |81.61|95.76|68.9 |11.4 |14.4 |1930 | |[resnetaa50.a1h_in1k](https://huggingface.co/timm/resnetaa50.a1h_in1k)|288 |81.61|95.83|25.6 |8.5 |19.2 |1868 | |[resnet101.a1_in1k](https://huggingface.co/timm/resnet101.a1_in1k)|224 |81.5 |95.16|44.6 |7.8 |16.2 |2125 | |[resnext50_32x4d.a1_in1k](https://huggingface.co/timm/resnext50_32x4d.a1_in1k)|288 |81.48|95.16|25.0 |7.0 |23.8 |1745 | |[gcresnet50t.ra2_in1k](https://huggingface.co/timm/gcresnet50t.ra2_in1k)|288 |81.47|95.71|25.9 |6.9 |18.6 |2071 | |[wide_resnet50_2.racm_in1k](https://huggingface.co/timm/wide_resnet50_2.racm_in1k)|224 |81.45|95.53|68.9 |11.4 |14.4 |1929 | |[resnet50d.a1_in1k](https://huggingface.co/timm/resnet50d.a1_in1k)|288 |81.44|95.22|25.6 |7.2 |19.7 |1908 | |[ecaresnet50t.ra2_in1k](https://huggingface.co/timm/ecaresnet50t.ra2_in1k)|256 |81.44|95.67|25.6 |5.6 |15.4 |2168 | |[ecaresnetlight.miil_in1k](https://huggingface.co/timm/ecaresnetlight.miil_in1k)|288 |81.4 |95.82|30.2 |6.8 |13.9 |2132 | |[resnet50d.ra2_in1k](https://huggingface.co/timm/resnet50d.ra2_in1k)|288 |81.37|95.74|25.6 |7.2 |19.7 |1910 | |[resnet101.a2_in1k](https://huggingface.co/timm/resnet101.a2_in1k)|224 |81.32|95.19|44.6 |7.8 |16.2 |2125 | |[seresnet50.ra2_in1k](https://huggingface.co/timm/seresnet50.ra2_in1k)|288 |81.3 |95.65|28.1 |6.8 |18.4 |1803 | |[resnext50_32x4d.a2_in1k](https://huggingface.co/timm/resnext50_32x4d.a2_in1k)|288 |81.3 |95.11|25.0 |7.0 |23.8 |1746 | |[seresnext50_32x4d.racm_in1k](https://huggingface.co/timm/seresnext50_32x4d.racm_in1k)|224 |81.27|95.62|27.6 |4.3 |14.4 |2591 | |[ecaresnet50t.a1_in1k](https://huggingface.co/timm/ecaresnet50t.a1_in1k)|224 |81.26|95.16|25.6 |4.3 |11.8 |2823 | |[gcresnext50ts.ch_in1k](https://huggingface.co/timm/gcresnext50ts.ch_in1k)|288 |81.23|95.54|15.7 |4.8 |19.6 |2117 | |[senet154.gluon_in1k](https://huggingface.co/timm/senet154.gluon_in1k)|224 |81.23|95.35|115.1 |20.8 |38.7 |545 | |[resnet50.a1_in1k](https://huggingface.co/timm/resnet50.a1_in1k)|288 |81.22|95.11|25.6 |6.8 |18.4 |2089 | |[resnet50_gn.a1h_in1k](https://huggingface.co/timm/resnet50_gn.a1h_in1k)|288 |81.22|95.63|25.6 |6.8 |18.4 |676 | |[resnet50d.a2_in1k](https://huggingface.co/timm/resnet50d.a2_in1k)|288 |81.18|95.09|25.6 |7.2 |19.7 |1908 | |[resnet50.fb_swsl_ig1b_ft_in1k](https://huggingface.co/timm/resnet50.fb_swsl_ig1b_ft_in1k)|224 |81.18|95.98|25.6 |4.1 |11.1 |3455 | |[resnext50_32x4d.tv2_in1k](https://huggingface.co/timm/resnext50_32x4d.tv2_in1k)|224 |81.17|95.34|25.0 |4.3 |14.4 |2933 | |[resnext50_32x4d.a1h_in1k](https://huggingface.co/timm/resnext50_32x4d.a1h_in1k)|224 |81.1 |95.33|25.0 |4.3 |14.4 |2934 | |[seresnet50.a2_in1k](https://huggingface.co/timm/seresnet50.a2_in1k)|288 |81.1 |95.23|28.1 |6.8 |18.4 |1801 | |[seresnet50.a1_in1k](https://huggingface.co/timm/seresnet50.a1_in1k)|288 |81.1 |95.12|28.1 |6.8 |18.4 |1799 | |[resnet152s.gluon_in1k](https://huggingface.co/timm/resnet152s.gluon_in1k)|224 |81.02|95.41|60.3 |12.9 |25.0 |1347 | |[resnet50.d_in1k](https://huggingface.co/timm/resnet50.d_in1k)|288 |80.97|95.44|25.6 |6.8 |18.4 |2085 | |[gcresnet50t.ra2_in1k](https://huggingface.co/timm/gcresnet50t.ra2_in1k)|256 |80.94|95.45|25.9 |5.4 |14.7 |2571 | |[resnext101_32x4d.fb_ssl_yfcc100m_ft_in1k](https://huggingface.co/timm/resnext101_32x4d.fb_ssl_yfcc100m_ft_in1k)|224 |80.93|95.73|44.2 |8.0 |21.2 |1814 | |[resnet50.c1_in1k](https://huggingface.co/timm/resnet50.c1_in1k)|288 |80.91|95.55|25.6 |6.8 |18.4 |2084 | |[seresnext101_32x4d.gluon_in1k](https://huggingface.co/timm/seresnext101_32x4d.gluon_in1k)|224 |80.9 |95.31|49.0 |8.0 |21.3 |1585 | |[seresnext101_64x4d.gluon_in1k](https://huggingface.co/timm/seresnext101_64x4d.gluon_in1k)|224 |80.9 |95.3 |88.2 |15.5 |31.2 |918 | |[resnet50.c2_in1k](https://huggingface.co/timm/resnet50.c2_in1k)|288 |80.86|95.52|25.6 |6.8 |18.4 |2085 | |[resnet50.tv2_in1k](https://huggingface.co/timm/resnet50.tv2_in1k)|224 |80.85|95.43|25.6 |4.1 |11.1 |3450 | |[ecaresnet50t.a2_in1k](https://huggingface.co/timm/ecaresnet50t.a2_in1k)|224 |80.84|95.02|25.6 |4.3 |11.8 |2821 | |[ecaresnet101d_pruned.miil_in1k](https://huggingface.co/timm/ecaresnet101d_pruned.miil_in1k)|224 |80.79|95.62|24.9 |3.5 |7.7 |2961 | |[seresnet33ts.ra2_in1k](https://huggingface.co/timm/seresnet33ts.ra2_in1k)|288 |80.79|95.36|19.8 |6.0 |14.8 |2506 | |[ecaresnet50d_pruned.miil_in1k](https://huggingface.co/timm/ecaresnet50d_pruned.miil_in1k)|288 |80.79|95.58|19.9 |4.2 |10.6 |2349 | |[resnet50.a2_in1k](https://huggingface.co/timm/resnet50.a2_in1k)|288 |80.78|94.99|25.6 |6.8 |18.4 |2088 | |[resnet50.b1k_in1k](https://huggingface.co/timm/resnet50.b1k_in1k)|288 |80.71|95.43|25.6 |6.8 |18.4 |2087 | |[resnext50_32x4d.ra_in1k](https://huggingface.co/timm/resnext50_32x4d.ra_in1k)|288 |80.7 |95.39|25.0 |7.0 |23.8 |1749 | |[resnetrs101.tf_in1k](https://huggingface.co/timm/resnetrs101.tf_in1k)|192 |80.69|95.24|63.6 |6.0 |12.7 |2270 | |[resnet50d.a1_in1k](https://huggingface.co/timm/resnet50d.a1_in1k)|224 |80.68|94.71|25.6 |4.4 |11.9 |3162 | |[eca_resnet33ts.ra2_in1k](https://huggingface.co/timm/eca_resnet33ts.ra2_in1k)|288 |80.68|95.36|19.7 |6.0 |14.8 |2637 | |[resnet50.a1h_in1k](https://huggingface.co/timm/resnet50.a1h_in1k)|224 |80.67|95.3 |25.6 |4.1 |11.1 |3452 | |[resnext50d_32x4d.bt_in1k](https://huggingface.co/timm/resnext50d_32x4d.bt_in1k)|288 |80.67|95.42|25.0 |7.4 |25.1 |1626 | |[resnetaa50.a1h_in1k](https://huggingface.co/timm/resnetaa50.a1h_in1k)|224 |80.63|95.21|25.6 |5.2 |11.6 |3034 | |[ecaresnet50d.miil_in1k](https://huggingface.co/timm/ecaresnet50d.miil_in1k)|224 |80.61|95.32|25.6 |4.4 |11.9 |2813 | |[resnext101_64x4d.gluon_in1k](https://huggingface.co/timm/resnext101_64x4d.gluon_in1k)|224 |80.61|94.99|83.5 |15.5 |31.2 |989 | |[gcresnet33ts.ra2_in1k](https://huggingface.co/timm/gcresnet33ts.ra2_in1k)|288 |80.6 |95.31|19.9 |6.0 |14.8 |2578 | |[gcresnext50ts.ch_in1k](https://huggingface.co/timm/gcresnext50ts.ch_in1k)|256 |80.57|95.17|15.7 |3.8 |15.5 |2710 | |[resnet152.a3_in1k](https://huggingface.co/timm/resnet152.a3_in1k)|224 |80.56|95.0 |60.2 |11.6 |22.6 |1483 | |[resnet50d.ra2_in1k](https://huggingface.co/timm/resnet50d.ra2_in1k)|224 |80.53|95.16|25.6 |4.4 |11.9 |3164 | |[resnext50_32x4d.a1_in1k](https://huggingface.co/timm/resnext50_32x4d.a1_in1k)|224 |80.53|94.46|25.0 |4.3 |14.4 |2930 | |[wide_resnet101_2.tv2_in1k](https://huggingface.co/timm/wide_resnet101_2.tv2_in1k)|176 |80.48|94.98|126.9 |14.3 |13.2 |1719 | |[resnet152d.gluon_in1k](https://huggingface.co/timm/resnet152d.gluon_in1k)|224 |80.47|95.2 |60.2 |11.8 |23.4 |1428 | |[resnet50.b2k_in1k](https://huggingface.co/timm/resnet50.b2k_in1k)|288 |80.45|95.32|25.6 |6.8 |18.4 |2086 | |[ecaresnetlight.miil_in1k](https://huggingface.co/timm/ecaresnetlight.miil_in1k)|224 |80.45|95.24|30.2 |4.1 |8.4 |3530 | |[resnext50_32x4d.a2_in1k](https://huggingface.co/timm/resnext50_32x4d.a2_in1k)|224 |80.45|94.63|25.0 |4.3 |14.4 |2936 | |[wide_resnet50_2.tv2_in1k](https://huggingface.co/timm/wide_resnet50_2.tv2_in1k)|176 |80.43|95.09|68.9 |7.3 |9.0 |3015 | |[resnet101d.gluon_in1k](https://huggingface.co/timm/resnet101d.gluon_in1k)|224 |80.42|95.01|44.6 |8.1 |17.0 |2007 | |[resnet50.a1_in1k](https://huggingface.co/timm/resnet50.a1_in1k)|224 |80.38|94.6 |25.6 |4.1 |11.1 |3461 | |[seresnet33ts.ra2_in1k](https://huggingface.co/timm/seresnet33ts.ra2_in1k)|256 |80.36|95.1 |19.8 |4.8 |11.7 |3267 | |[resnext101_32x4d.gluon_in1k](https://huggingface.co/timm/resnext101_32x4d.gluon_in1k)|224 |80.34|94.93|44.2 |8.0 |21.2 |1814 | |[resnext50_32x4d.fb_ssl_yfcc100m_ft_in1k](https://huggingface.co/timm/resnext50_32x4d.fb_ssl_yfcc100m_ft_in1k)|224 |80.32|95.4 |25.0 |4.3 |14.4 |2941 | |[resnet101s.gluon_in1k](https://huggingface.co/timm/resnet101s.gluon_in1k)|224 |80.28|95.16|44.7 |9.2 |18.6 |1851 | |[seresnet50.ra2_in1k](https://huggingface.co/timm/seresnet50.ra2_in1k)|224 |80.26|95.08|28.1 |4.1 |11.1 |2972 | |[resnetblur50.bt_in1k](https://huggingface.co/timm/resnetblur50.bt_in1k)|288 |80.24|95.24|25.6 |8.5 |19.9 |1523 | |[resnet50d.a2_in1k](https://huggingface.co/timm/resnet50d.a2_in1k)|224 |80.22|94.63|25.6 |4.4 |11.9 |3162 | |[resnet152.tv2_in1k](https://huggingface.co/timm/resnet152.tv2_in1k)|176 |80.2 |94.64|60.2 |7.2 |14.0 |2346 | |[seresnet50.a2_in1k](https://huggingface.co/timm/seresnet50.a2_in1k)|224 |80.08|94.74|28.1 |4.1 |11.1 |2969 | |[eca_resnet33ts.ra2_in1k](https://huggingface.co/timm/eca_resnet33ts.ra2_in1k)|256 |80.08|94.97|19.7 |4.8 |11.7 |3284 | |[gcresnet33ts.ra2_in1k](https://huggingface.co/timm/gcresnet33ts.ra2_in1k)|256 |80.06|94.99|19.9 |4.8 |11.7 |3216 | |[resnet50_gn.a1h_in1k](https://huggingface.co/timm/resnet50_gn.a1h_in1k)|224 |80.06|94.95|25.6 |4.1 |11.1 |1109 | |[seresnet50.a1_in1k](https://huggingface.co/timm/seresnet50.a1_in1k)|224 |80.02|94.71|28.1 |4.1 |11.1 |2962 | |[resnet50.ram_in1k](https://huggingface.co/timm/resnet50.ram_in1k)|288 |79.97|95.05|25.6 |6.8 |18.4 |2086 | |[resnet152c.gluon_in1k](https://huggingface.co/timm/resnet152c.gluon_in1k)|224 |79.92|94.84|60.2 |11.8 |23.4 |1455 | |[seresnext50_32x4d.gluon_in1k](https://huggingface.co/timm/seresnext50_32x4d.gluon_in1k)|224 |79.91|94.82|27.6 |4.3 |14.4 |2591 | |[resnet50.d_in1k](https://huggingface.co/timm/resnet50.d_in1k)|224 |79.91|94.67|25.6 |4.1 |11.1 |3456 | |[resnet101.tv2_in1k](https://huggingface.co/timm/resnet101.tv2_in1k)|176 |79.9 |94.6 |44.6 |4.9 |10.1 |3341 | |[resnetrs50.tf_in1k](https://huggingface.co/timm/resnetrs50.tf_in1k)|224 |79.89|94.97|35.7 |4.5 |12.1 |2774 | |[resnet50.c2_in1k](https://huggingface.co/timm/resnet50.c2_in1k)|224 |79.88|94.87|25.6 |4.1 |11.1 |3455 | |[ecaresnet26t.ra2_in1k](https://huggingface.co/timm/ecaresnet26t.ra2_in1k)|320 |79.86|95.07|16.0 |5.2 |16.4 |2168 | |[resnet50.a2_in1k](https://huggingface.co/timm/resnet50.a2_in1k)|224 |79.85|94.56|25.6 |4.1 |11.1 |3460 | |[resnet50.ra_in1k](https://huggingface.co/timm/resnet50.ra_in1k)|288 |79.83|94.97|25.6 |6.8 |18.4 |2087 | |[resnet101.a3_in1k](https://huggingface.co/timm/resnet101.a3_in1k)|224 |79.82|94.62|44.6 |7.8 |16.2 |2114 | |[resnext50_32x4d.ra_in1k](https://huggingface.co/timm/resnext50_32x4d.ra_in1k)|224 |79.76|94.6 |25.0 |4.3 |14.4 |2943 | |[resnet50.c1_in1k](https://huggingface.co/timm/resnet50.c1_in1k)|224 |79.74|94.95|25.6 |4.1 |11.1 |3455 | |[ecaresnet50d_pruned.miil_in1k](https://huggingface.co/timm/ecaresnet50d_pruned.miil_in1k)|224 |79.74|94.87|19.9 |2.5 |6.4 |3929 | |[resnet33ts.ra2_in1k](https://huggingface.co/timm/resnet33ts.ra2_in1k)|288 |79.71|94.83|19.7 |6.0 |14.8 |2710 | |[resnet152.gluon_in1k](https://huggingface.co/timm/resnet152.gluon_in1k)|224 |79.68|94.74|60.2 |11.6 |22.6 |1486 | |[resnext50d_32x4d.bt_in1k](https://huggingface.co/timm/resnext50d_32x4d.bt_in1k)|224 |79.67|94.87|25.0 |4.5 |15.2 |2729 | |[resnet50.bt_in1k](https://huggingface.co/timm/resnet50.bt_in1k)|288 |79.63|94.91|25.6 |6.8 |18.4 |2086 | |[ecaresnet50t.a3_in1k](https://huggingface.co/timm/ecaresnet50t.a3_in1k)|224 |79.56|94.72|25.6 |4.3 |11.8 |2805 | |[resnet101c.gluon_in1k](https://huggingface.co/timm/resnet101c.gluon_in1k)|224 |79.53|94.58|44.6 |8.1 |17.0 |2062 | |[resnet50.b1k_in1k](https://huggingface.co/timm/resnet50.b1k_in1k)|224 |79.52|94.61|25.6 |4.1 |11.1 |3459 | |[resnet50.tv2_in1k](https://huggingface.co/timm/resnet50.tv2_in1k)|176 |79.42|94.64|25.6 |2.6 |6.9 |5397 | |[resnet32ts.ra2_in1k](https://huggingface.co/timm/resnet32ts.ra2_in1k)|288 |79.4 |94.66|18.0 |5.9 |14.6 |2752 | |[resnet50.b2k_in1k](https://huggingface.co/timm/resnet50.b2k_in1k)|224 |79.38|94.57|25.6 |4.1 |11.1 |3459 | |[resnext50_32x4d.tv2_in1k](https://huggingface.co/timm/resnext50_32x4d.tv2_in1k)|176 |79.37|94.3 |25.0 |2.7 |9.0 |4577 | |[resnext50_32x4d.gluon_in1k](https://huggingface.co/timm/resnext50_32x4d.gluon_in1k)|224 |79.36|94.43|25.0 |4.3 |14.4 |2942 | |[resnext101_32x8d.tv_in1k](https://huggingface.co/timm/resnext101_32x8d.tv_in1k)|224 |79.31|94.52|88.8 |16.5 |31.2 |1100 | |[resnet101.gluon_in1k](https://huggingface.co/timm/resnet101.gluon_in1k)|224 |79.31|94.53|44.6 |7.8 |16.2 |2125 | |[resnetblur50.bt_in1k](https://huggingface.co/timm/resnetblur50.bt_in1k)|224 |79.31|94.63|25.6 |5.2 |12.0 |2524 | |[resnet50.a1h_in1k](https://huggingface.co/timm/resnet50.a1h_in1k)|176 |79.27|94.49|25.6 |2.6 |6.9 |5404 | |[resnext50_32x4d.a3_in1k](https://huggingface.co/timm/resnext50_32x4d.a3_in1k)|224 |79.25|94.31|25.0 |4.3 |14.4 |2931 | |[resnet50.fb_ssl_yfcc100m_ft_in1k](https://huggingface.co/timm/resnet50.fb_ssl_yfcc100m_ft_in1k)|224 |79.22|94.84|25.6 |4.1 |11.1 |3451 | |[resnet33ts.ra2_in1k](https://huggingface.co/timm/resnet33ts.ra2_in1k)|256 |79.21|94.56|19.7 |4.8 |11.7 |3392 | |[resnet50d.gluon_in1k](https://huggingface.co/timm/resnet50d.gluon_in1k)|224 |79.07|94.48|25.6 |4.4 |11.9 |3162 | |[resnet50.ram_in1k](https://huggingface.co/timm/resnet50.ram_in1k)|224 |79.03|94.38|25.6 |4.1 |11.1 |3453 | |[resnet50.am_in1k](https://huggingface.co/timm/resnet50.am_in1k)|224 |79.01|94.39|25.6 |4.1 |11.1 |3461 | |[resnet32ts.ra2_in1k](https://huggingface.co/timm/resnet32ts.ra2_in1k)|256 |79.01|94.37|18.0 |4.6 |11.6 |3440 | |[ecaresnet26t.ra2_in1k](https://huggingface.co/timm/ecaresnet26t.ra2_in1k)|256 |78.9 |94.54|16.0 |3.4 |10.5 |3421 | |[resnet152.a3_in1k](https://huggingface.co/timm/resnet152.a3_in1k)|160 |78.89|94.11|60.2 |5.9 |11.5 |2745 | |[wide_resnet101_2.tv_in1k](https://huggingface.co/timm/wide_resnet101_2.tv_in1k)|224 |78.84|94.28|126.9 |22.8 |21.2 |1079 | |[seresnext26d_32x4d.bt_in1k](https://huggingface.co/timm/seresnext26d_32x4d.bt_in1k)|288 |78.83|94.24|16.8 |4.5 |16.8 |2251 | |[resnet50.ra_in1k](https://huggingface.co/timm/resnet50.ra_in1k)|224 |78.81|94.32|25.6 |4.1 |11.1 |3454 | |[seresnext26t_32x4d.bt_in1k](https://huggingface.co/timm/seresnext26t_32x4d.bt_in1k)|288 |78.74|94.33|16.8 |4.5 |16.7 |2264 | |[resnet50s.gluon_in1k](https://huggingface.co/timm/resnet50s.gluon_in1k)|224 |78.72|94.23|25.7 |5.5 |13.5 |2796 | |[resnet50d.a3_in1k](https://huggingface.co/timm/resnet50d.a3_in1k)|224 |78.71|94.24|25.6 |4.4 |11.9 |3154 | |[wide_resnet50_2.tv_in1k](https://huggingface.co/timm/wide_resnet50_2.tv_in1k)|224 |78.47|94.09|68.9 |11.4 |14.4 |1934 | |[resnet50.bt_in1k](https://huggingface.co/timm/resnet50.bt_in1k)|224 |78.46|94.27|25.6 |4.1 |11.1 |3454 | |[resnet34d.ra2_in1k](https://huggingface.co/timm/resnet34d.ra2_in1k)|288 |78.43|94.35|21.8 |6.5 |7.5 |3291 | |[gcresnext26ts.ch_in1k](https://huggingface.co/timm/gcresnext26ts.ch_in1k)|288 |78.42|94.04|10.5 |3.1 |13.3 |3226 | |[resnet26t.ra2_in1k](https://huggingface.co/timm/resnet26t.ra2_in1k)|320 |78.33|94.13|16.0 |5.2 |16.4 |2391 | |[resnet152.tv_in1k](https://huggingface.co/timm/resnet152.tv_in1k)|224 |78.32|94.04|60.2 |11.6 |22.6 |1487 | |[seresnext26ts.ch_in1k](https://huggingface.co/timm/seresnext26ts.ch_in1k)|288 |78.28|94.1 |10.4 |3.1 |13.3 |3062 | |[bat_resnext26ts.ch_in1k](https://huggingface.co/timm/bat_resnext26ts.ch_in1k)|256 |78.25|94.1 |10.7 |2.5 |12.5 |3393 | |[resnet50.a3_in1k](https://huggingface.co/timm/resnet50.a3_in1k)|224 |78.06|93.78|25.6 |4.1 |11.1 |3450 | |[resnet50c.gluon_in1k](https://huggingface.co/timm/resnet50c.gluon_in1k)|224 |78.0 |93.99|25.6 |4.4 |11.9 |3286 | |[eca_resnext26ts.ch_in1k](https://huggingface.co/timm/eca_resnext26ts.ch_in1k)|288 |78.0 |93.91|10.3 |3.1 |13.3 |3297 | |[seresnext26t_32x4d.bt_in1k](https://huggingface.co/timm/seresnext26t_32x4d.bt_in1k)|224 |77.98|93.75|16.8 |2.7 |10.1 |3841 | |[resnet34.a1_in1k](https://huggingface.co/timm/resnet34.a1_in1k)|288 |77.92|93.77|21.8 |6.1 |6.2 |3609 | |[resnet101.a3_in1k](https://huggingface.co/timm/resnet101.a3_in1k)|160 |77.88|93.71|44.6 |4.0 |8.3 |3926 | |[resnet26t.ra2_in1k](https://huggingface.co/timm/resnet26t.ra2_in1k)|256 |77.87|93.84|16.0 |3.4 |10.5 |3772 | |[seresnext26ts.ch_in1k](https://huggingface.co/timm/seresnext26ts.ch_in1k)|256 |77.86|93.79|10.4 |2.4 |10.5 |4263 | |[resnetrs50.tf_in1k](https://huggingface.co/timm/resnetrs50.tf_in1k)|160 |77.82|93.81|35.7 |2.3 |6.2 |5238 | |[gcresnext26ts.ch_in1k](https://huggingface.co/timm/gcresnext26ts.ch_in1k)|256 |77.81|93.82|10.5 |2.4 |10.5 |4183 | |[ecaresnet50t.a3_in1k](https://huggingface.co/timm/ecaresnet50t.a3_in1k)|160 |77.79|93.6 |25.6 |2.2 |6.0 |5329 | |[resnext50_32x4d.a3_in1k](https://huggingface.co/timm/resnext50_32x4d.a3_in1k)|160 |77.73|93.32|25.0 |2.2 |7.4 |5576 | |[resnext50_32x4d.tv_in1k](https://huggingface.co/timm/resnext50_32x4d.tv_in1k)|224 |77.61|93.7 |25.0 |4.3 |14.4 |2944 | |[seresnext26d_32x4d.bt_in1k](https://huggingface.co/timm/seresnext26d_32x4d.bt_in1k)|224 |77.59|93.61|16.8 |2.7 |10.2 |3807 | |[resnet50.gluon_in1k](https://huggingface.co/timm/resnet50.gluon_in1k)|224 |77.58|93.72|25.6 |4.1 |11.1 |3455 | |[eca_resnext26ts.ch_in1k](https://huggingface.co/timm/eca_resnext26ts.ch_in1k)|256 |77.44|93.56|10.3 |2.4 |10.5 |4284 | |[resnet26d.bt_in1k](https://huggingface.co/timm/resnet26d.bt_in1k)|288 |77.41|93.63|16.0 |4.3 |13.5 |2907 | |[resnet101.tv_in1k](https://huggingface.co/timm/resnet101.tv_in1k)|224 |77.38|93.54|44.6 |7.8 |16.2 |2125 | |[resnet50d.a3_in1k](https://huggingface.co/timm/resnet50d.a3_in1k)|160 |77.22|93.27|25.6 |2.2 |6.1 |5982 | |[resnext26ts.ra2_in1k](https://huggingface.co/timm/resnext26ts.ra2_in1k)|288 |77.17|93.47|10.3 |3.1 |13.3 |3392 | |[resnet34.a2_in1k](https://huggingface.co/timm/resnet34.a2_in1k)|288 |77.15|93.27|21.8 |6.1 |6.2 |3615 | |[resnet34d.ra2_in1k](https://huggingface.co/timm/resnet34d.ra2_in1k)|224 |77.1 |93.37|21.8 |3.9 |4.5 |5436 | |[seresnet50.a3_in1k](https://huggingface.co/timm/seresnet50.a3_in1k)|224 |77.02|93.07|28.1 |4.1 |11.1 |2952 | |[resnext26ts.ra2_in1k](https://huggingface.co/timm/resnext26ts.ra2_in1k)|256 |76.78|93.13|10.3 |2.4 |10.5 |4410 | |[resnet26d.bt_in1k](https://huggingface.co/timm/resnet26d.bt_in1k)|224 |76.7 |93.17|16.0 |2.6 |8.2 |4859 | |[resnet34.bt_in1k](https://huggingface.co/timm/resnet34.bt_in1k)|288 |76.5 |93.35|21.8 |6.1 |6.2 |3617 | |[resnet34.a1_in1k](https://huggingface.co/timm/resnet34.a1_in1k)|224 |76.42|92.87|21.8 |3.7 |3.7 |5984 | |[resnet26.bt_in1k](https://huggingface.co/timm/resnet26.bt_in1k)|288 |76.35|93.18|16.0 |3.9 |12.2 |3331 | |[resnet50.tv_in1k](https://huggingface.co/timm/resnet50.tv_in1k)|224 |76.13|92.86|25.6 |4.1 |11.1 |3457 | |[resnet50.a3_in1k](https://huggingface.co/timm/resnet50.a3_in1k)|160 |75.96|92.5 |25.6 |2.1 |5.7 |6490 | |[resnet34.a2_in1k](https://huggingface.co/timm/resnet34.a2_in1k)|224 |75.52|92.44|21.8 |3.7 |3.7 |5991 | |[resnet26.bt_in1k](https://huggingface.co/timm/resnet26.bt_in1k)|224 |75.3 |92.58|16.0 |2.4 |7.4 |5583 | |[resnet34.bt_in1k](https://huggingface.co/timm/resnet34.bt_in1k)|224 |75.16|92.18|21.8 |3.7 |3.7 |5994 | |[seresnet50.a3_in1k](https://huggingface.co/timm/seresnet50.a3_in1k)|160 |75.1 |92.08|28.1 |2.1 |5.7 |5513 | |[resnet34.gluon_in1k](https://huggingface.co/timm/resnet34.gluon_in1k)|224 |74.57|91.98|21.8 |3.7 |3.7 |5984 | |[resnet18d.ra2_in1k](https://huggingface.co/timm/resnet18d.ra2_in1k)|288 |73.81|91.83|11.7 |3.4 |5.4 |5196 | |[resnet34.tv_in1k](https://huggingface.co/timm/resnet34.tv_in1k)|224 |73.32|91.42|21.8 |3.7 |3.7 |5979 | |[resnet18.fb_swsl_ig1b_ft_in1k](https://huggingface.co/timm/resnet18.fb_swsl_ig1b_ft_in1k)|224 |73.28|91.73|11.7 |1.8 |2.5 |10213 | |[resnet18.a1_in1k](https://huggingface.co/timm/resnet18.a1_in1k)|288 |73.16|91.03|11.7 |3.0 |4.1 |6050 | |[resnet34.a3_in1k](https://huggingface.co/timm/resnet34.a3_in1k)|224 |72.98|91.11|21.8 |3.7 |3.7 |5967 | |[resnet18.fb_ssl_yfcc100m_ft_in1k](https://huggingface.co/timm/resnet18.fb_ssl_yfcc100m_ft_in1k)|224 |72.6 |91.42|11.7 |1.8 |2.5 |10213 | |[resnet18.a2_in1k](https://huggingface.co/timm/resnet18.a2_in1k)|288 |72.37|90.59|11.7 |3.0 |4.1 |6051 | |[resnet14t.c3_in1k](https://huggingface.co/timm/resnet14t.c3_in1k)|224 |72.26|90.31|10.1 |1.7 |5.8 |7026 | |[resnet18d.ra2_in1k](https://huggingface.co/timm/resnet18d.ra2_in1k)|224 |72.26|90.68|11.7 |2.1 |3.3 |8707 | |[resnet18.a1_in1k](https://huggingface.co/timm/resnet18.a1_in1k)|224 |71.49|90.07|11.7 |1.8 |2.5 |10187 | |[resnet14t.c3_in1k](https://huggingface.co/timm/resnet14t.c3_in1k)|176 |71.31|89.69|10.1 |1.1 |3.6 |10970 | |[resnet18.gluon_in1k](https://huggingface.co/timm/resnet18.gluon_in1k)|224 |70.84|89.76|11.7 |1.8 |2.5 |10210 | |[resnet18.a2_in1k](https://huggingface.co/timm/resnet18.a2_in1k)|224 |70.64|89.47|11.7 |1.8 |2.5 |10194 | |[resnet34.a3_in1k](https://huggingface.co/timm/resnet34.a3_in1k)|160 |70.56|89.52|21.8 |1.9 |1.9 |10737 | |[resnet18.tv_in1k](https://huggingface.co/timm/resnet18.tv_in1k)|224 |69.76|89.07|11.7 |1.8 |2.5 |10205 | |[resnet10t.c3_in1k](https://huggingface.co/timm/resnet10t.c3_in1k)|224 |68.34|88.03|5.4 |1.1 |2.4 |13079 | |[resnet18.a3_in1k](https://huggingface.co/timm/resnet18.a3_in1k)|224 |68.25|88.17|11.7 |1.8 |2.5 |10167 | |[resnet10t.c3_in1k](https://huggingface.co/timm/resnet10t.c3_in1k)|176 |66.71|86.96|5.4 |0.7 |1.5 |20327 | |[resnet18.a3_in1k](https://huggingface.co/timm/resnet18.a3_in1k)|160 |65.66|86.26|11.7 |0.9 |1.3 |18229 | ## Citation ```bibtex @misc{yalniz2019billionscale, title={Billion-scale semi-supervised learning for image classification}, author={I. Zeki Yalniz and Hervé Jégou and Kan Chen and Manohar Paluri and Dhruv Mahajan}, year={2019}, eprint={1905.00546}, archivePrefix={arXiv}, primaryClass={cs.CV} } ``` ```bibtex @article{Xie2016, title={Aggregated Residual Transformations for Deep Neural Networks}, author={Saining Xie and Ross Girshick and Piotr Dollár and Zhuowen Tu and Kaiming He}, journal={arXiv preprint arXiv:1611.05431}, year={2016} } ``` ```bibtex @article{He2015, author = {Kaiming He and Xiangyu Zhang and Shaoqing Ren and Jian Sun}, title = {Deep Residual Learning for Image Recognition}, journal = {arXiv preprint arXiv:1512.03385}, year = {2015} } ``` ```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.8638780117034912, -0.2703680694103241, 0.06338760256767273, 0.4000195860862732, -0.43521595001220703, -0.1162857860326767, -0.14932912588119507, -0.4384239614009857, 1.1054637432098389, 0.2515698969364166, -0.6609342098236084, -0.5594102144241333, -0.6228794455528259, -0.006894350051879883, 0.2947235107421875, 0.8990989923477173, -0.020407188683748245, -0.10017110407352448, 0.16614101827144623, -0.2742617726325989, -0.037521589547395706, -0.31248635053634644, -1.0182199478149414, -0.17401790618896484, 0.40143725275993347, 0.17792008817195892, 0.6872294545173645, 0.5975865125656128, 0.3754623830318451, 0.6063093543052673, -0.267659068107605, 0.27300140261650085, -0.0934896469116211, -0.13375060260295868, 0.5965311527252197, -0.3825143277645111, -0.9027381539344788, -0.022403990849852562, 0.7355234622955322, 0.643534243106842, 0.0695280060172081, 0.386577308177948, 0.374545693397522, 0.5757758021354675, 0.020199943333864212, -0.034503646194934845, -0.010069782845675945, 0.10830827057361603, -0.2743413746356964, 0.11195915192365646, -0.054700322449207306, -0.7206271886825562, 0.17039574682712555, -0.6199202537536621, -0.03652063012123108, -0.003725281683728099, 1.3683480024337769, -0.11291859298944473, -0.21906547248363495, 0.08259885013103485, 0.10702822357416153, 0.7580921053886414, -0.8360126614570618, 0.3427186608314514, 0.5371509194374084, -0.04074116051197052, -0.18658289313316345, -0.6762780547142029, -0.530621349811554, 0.13864047825336456, -0.439182847738266, 0.28642910718917847, -0.3255075514316559, -0.23424679040908813, 0.3823974132537842, 0.343986451625824, -0.46379145979881287, -0.10469383001327515, -0.3742896020412445, -0.12040136754512787, 0.7209073305130005, 0.06947777420282364, 0.68938148021698, -0.3331409990787506, -0.5408207774162292, -0.13198749721050262, -0.1532498151063919, 0.4997430741786957, 0.21893154084682465, 0.16458924114704132, -1.1035577058792114, 0.41018015146255493, 0.15428116917610168, 0.26503872871398926, 0.3731757700443268, -0.1898098587989807, 0.8449358940124512, -0.11977346241474152, -0.5095540285110474, -0.4780551791191101, 1.1296460628509521, 0.6447088122367859, 0.2566877007484436, -0.09552409499883652, -0.06234162300825119, -0.1639823615550995, -0.4132675230503082, -0.9973587393760681, -0.02956521138548851, 0.2810406982898712, -0.5590160489082336, -0.2393011450767517, 0.33653661608695984, -0.8873103857040405, -0.027824511751532555, -0.09344817698001862, 0.1343308538198471, -0.7448824048042297, -0.454942911863327, 0.004312518052756786, -0.21244415640830994, 0.48939889669418335, 0.22879783809185028, -0.3283442258834839, 0.4247790575027466, 0.06183153763413429, 0.8936588168144226, 0.2772340178489685, -0.07505586743354797, -0.20404502749443054, 0.010278142988681793, -0.3372786343097687, 0.4089403450489044, 0.1259261667728424, -0.20055758953094482, -0.3275121748447418, 0.45441293716430664, -0.2637583911418915, -0.25442904233932495, 0.6449538469314575, 0.2879082262516022, 0.1756615787744522, -0.2624099850654602, -0.27739301323890686, -0.22490672767162323, 0.34441959857940674, -0.5625315308570862, 1.0531452894210815, 0.4162203073501587, -1.1020464897155762, 0.17796272039413452, -0.4712490141391754, -0.04884641617536545, -0.2781725823879242, 0.09177287667989731, -0.9359939694404602, 0.04279562830924988, 0.22990021109580994, 0.7476330399513245, -0.22797836363315582, -0.1698794811964035, -0.41487905383110046, 0.02906511351466179, 0.4051915109157562, 0.19500431418418884, 0.9129268527030945, 0.3038378953933716, -0.43874695897102356, -0.18146009743213654, -0.7449867725372314, 0.4462850093841553, 0.45892807841300964, -0.017785929143428802, -0.1001194417476654, -0.8167918920516968, 0.05724559724330902, 0.6186021566390991, 0.28281688690185547, -0.7191334366798401, 0.2611086368560791, -0.15814033150672913, 0.3442486524581909, 0.6772915720939636, 0.03350381553173065, 0.20652268826961517, -0.6759448051452637, 0.5853549242019653, 0.016856500878930092, 0.2817864716053009, -0.01501009613275528, -0.42454633116722107, -0.7140147089958191, -0.7450463771820068, 0.24520832300186157, 0.40601688623428345, -0.4109225869178772, 0.8895042538642883, 0.10134005546569824, -0.6454303860664368, -0.6467558145523071, 0.08793945610523224, 0.5843838453292847, 0.26616787910461426, 0.12498952448368073, -0.3327016532421112, -0.7083032727241516, -0.9701793789863586, -0.31316938996315, 0.12898118793964386, -0.02546130307018757, 0.6706488132476807, 0.4586785137653351, -0.21060271561145782, 0.5435440540313721, -0.38803043961524963, -0.23980627954006195, -0.12949015200138092, -0.08917227387428284, 0.45024609565734863, 0.8160516023635864, 1.0517183542251587, -0.756903886795044, -0.9525426030158997, 0.12682442367076874, -1.100976824760437, -0.10347588360309601, -0.0365009568631649, -0.26889267563819885, 0.4383874535560608, 0.24334514141082764, -0.8842717409133911, 0.7739757299423218, 0.3973771929740906, -0.8593335151672363, 0.44003090262413025, -0.3465886116027832, 0.5251684784889221, -1.1170152425765991, 0.26215270161628723, 0.32072606682777405, -0.2628999352455139, -0.5845383405685425, 0.027082491666078568, -0.05703606829047203, 0.1475592404603958, -0.5579549670219421, 0.8243009448051453, -0.7286384105682373, -0.036026787012815475, 0.13385510444641113, 0.06346455961465836, -0.029162509366869926, 0.4699051082134247, -0.03571136295795441, 0.5895751118659973, 0.9098976254463196, -0.21857663989067078, 0.29233065247535706, 0.44603827595710754, 0.022476397454738617, 0.77024245262146, -0.6122186183929443, 0.11691248416900635, 0.04855724051594734, 0.4441797137260437, -1.0445830821990967, -0.37299802899360657, 0.5140041708946228, -0.8214300274848938, 0.6680046319961548, -0.27430102229118347, -0.32764989137649536, -0.8574122786521912, -0.8673685193061829, 0.27680957317352295, 0.6818873286247253, -0.6109680533409119, 0.3550565540790558, 0.24124743044376373, -0.03617151081562042, -0.483834445476532, -0.6791729927062988, 0.021817220374941826, -0.4028130769729614, -0.8383676409721375, 0.46508273482322693, 0.3012828826904297, -0.16131700575351715, 0.13171635568141937, -0.1840919852256775, -0.11462172120809555, -0.21397855877876282, 0.6086387038230896, 0.3641601502895355, -0.2894686460494995, -0.4041760563850403, -0.35009050369262695, -0.28380849957466125, -0.06551486998796463, -0.12721188366413116, 0.5132425427436829, -0.4545022249221802, 0.07453344017267227, -1.4398126602172852, 0.0964646115899086, 0.8944938778877258, -0.006624962203204632, 1.0055137872695923, 0.8211662769317627, -0.4767935276031494, 0.17040348052978516, -0.45048072934150696, -0.2112630307674408, -0.5206652283668518, -0.21850934624671936, -0.7022597193717957, -0.6344895362854004, 0.941416323184967, 0.05406591296195984, -0.11607600003480911, 0.7898984551429749, 0.18370234966278076, -0.25613170862197876, 0.8627001643180847, 0.4863792359828949, -0.03992511332035065, 0.5820693969726562, -0.8410993814468384, 0.09077976644039154, -0.816801905632019, -0.7387068271636963, -0.2596083879470825, -0.594667911529541, -0.621720016002655, -0.36014610528945923, 0.2566725015640259, 0.3755982518196106, -0.25673708319664, 0.6021589636802673, -0.5795267224311829, 0.025359202176332474, 0.3379640281200409, 0.5408467054367065, -0.2248174101114273, -0.11077035218477249, -0.11873974651098251, -0.3209480345249176, -0.5106273889541626, -0.3607812821865082, 0.796055793762207, 0.6214510798454285, 0.4763379693031311, 0.08832444995641708, 0.5817707777023315, 0.053207457065582275, 0.21452176570892334, -0.3074517846107483, 0.715048611164093, 0.05092986300587654, -0.43602484464645386, -0.329547643661499, -0.4131210446357727, -1.0862644910812378, 0.17937295138835907, -0.4885779321193695, -0.8660508394241333, -0.14744587242603302, -0.059532009065151215, -0.37517809867858887, 0.7595574259757996, -0.6406444311141968, 0.6800170540809631, -0.058869872242212296, -0.5839270949363708, -0.024995047599077225, -0.8222289085388184, 0.07145000994205475, 0.3754032254219055, 0.05511089414358139, -0.015245134010910988, -0.060102567076683044, 0.794854998588562, -0.8248391151428223, 0.6127402782440186, -0.37584632635116577, 0.13065564632415771, 0.4079180359840393, -0.046421803534030914, 0.41405418515205383, -0.01990935578942299, -0.15636900067329407, -0.05801772698760033, 0.13117742538452148, -0.8270883560180664, -0.34399935603141785, 0.6775423884391785, -0.7593943476676941, -0.38363590836524963, -0.6570088267326355, -0.2807796895503998, 0.07560024410486221, 0.045116543769836426, 0.46965035796165466, 0.6276302933692932, -0.03792519122362137, 0.23614858090877533, 0.562665581703186, -0.41977792978286743, 0.5212032794952393, -0.11883511394262314, -0.006920924410223961, -0.5635253190994263, 0.7194377779960632, 0.054540615528821945, 0.008473886176943779, -0.005323350895196199, 0.023916080594062805, -0.448189377784729, -0.2491011768579483, -0.29081881046295166, 0.7634589076042175, -0.17506012320518494, -0.3270814120769501, -0.6589917540550232, -0.3476681113243103, -0.5949303507804871, -0.4296683967113495, -0.44011688232421875, -0.37527069449424744, -0.324411004781723, 0.010838927701115608, 0.7085084319114685, 0.8541216850280762, -0.3740726709365845, 0.40345776081085205, -0.5540134310722351, 0.2977386713027954, 0.07751429080963135, 0.5640994906425476, -0.33682069182395935, -0.7258415818214417, 0.021127283573150635, -0.04250750318169594, -0.08936579525470734, -0.838452160358429, 0.6641491055488586, -0.003541042795404792, 0.3945746421813965, 0.4345918297767639, -0.20928820967674255, 0.7752053737640381, 0.001124516362324357, 0.46197760105133057, 0.5972515344619751, -0.7364810109138489, 0.36895039677619934, -0.4332365393638611, 0.026107629761099815, 0.2976711690425873, 0.21942272782325745, -0.37253618240356445, -0.3495827317237854, -0.9544962644577026, -0.4551987648010254, 0.782722532749176, 0.1302250325679779, -0.026457173749804497, 0.0060051074251532555, 0.7419360280036926, -0.06723077595233917, 0.06309915333986282, -0.5914943814277649, -0.8992897868156433, -0.10994747281074524, -0.17336679995059967, 0.06922803074121475, -0.05907401815056801, 0.055909428745508194, -0.7116459608078003, 0.6945915222167969, 0.03933456912636757, 0.5134024024009705, 0.1779613196849823, 0.03464168310165405, 0.01805400662124157, -0.30951324105262756, 0.6196171641349792, 0.3548583686351776, -0.2074952870607376, -0.13738679885864258, 0.3619305193424225, -0.5106009840965271, 0.10078047960996628, 0.23261629045009613, -0.002321858424693346, 0.08244185894727707, 0.11408770829439163, 0.5411499738693237, 0.3548722565174103, -0.08033201843500137, 0.5364631414413452, -0.2492212951183319, -0.5612511038780212, -0.22697265446186066, -0.19570674002170563, 0.2538916766643524, 0.43029966950416565, 0.33283400535583496, 0.0806053876876831, -0.4050101339817047, -0.395280659198761, 0.52360600233078, 0.7507405877113342, -0.4121551513671875, -0.43562379479408264, 0.6167628765106201, -0.04258595034480095, -0.1807352602481842, 0.4129830598831177, -0.13097263872623444, -0.6698675751686096, 1.0196467638015747, 0.37063103914260864, 0.6416116952896118, -0.517160177230835, 0.08051161468029022, 0.9158740639686584, -0.009221946820616722, 0.18739823997020721, 0.3420291543006897, 0.4237844944000244, -0.35248640179634094, -0.046191293746232986, -0.588031530380249, 0.20721198618412018, 0.5112792253494263, -0.42830875515937805, 0.3097445070743561, -0.7263008952140808, -0.35389819741249084, 0.10405252873897552, 0.4854641854763031, -0.641384482383728, 0.3447433114051819, 0.006125208456069231, 1.076262354850769, -0.8866620063781738, 0.8595513701438904, 0.9412960410118103, -0.5792528986930847, -0.8933976292610168, -0.0091322036460042, 0.09967011958360672, -0.8788589835166931, 0.4466902017593384, 0.12550239264965057, 0.042262014001607895, -0.02703195810317993, -0.5550580024719238, -0.691220760345459, 1.4089367389678955, 0.40706515312194824, -0.03539999574422836, 0.26847657561302185, -0.41615188121795654, 0.3988041877746582, -0.19994887709617615, 0.5910356044769287, 0.3613121509552002, 0.5257053375244141, 0.1879073530435562, -0.893231213092804, 0.3879697918891907, -0.43572643399238586, -0.09292666614055634, 0.3159838914871216, -1.323419213294983, 0.9324509501457214, -0.2676640450954437, -0.06257271766662598, 0.23719735443592072, 0.6835703253746033, 0.3339323401451111, -0.016093837097287178, 0.2982582747936249, 0.9441959857940674, 0.5008394122123718, -0.26889273524284363, 1.0434503555297852, -0.21853695809841156, 0.5737922191619873, 0.23934802412986755, 0.5424267649650574, 0.3601459562778473, 0.3927379846572876, -0.58014976978302, 0.2889384925365448, 0.856853723526001, -0.052723076194524765, 0.14967280626296997, 0.24742844700813293, -0.40514007210731506, -0.23348471522331238, -0.2046101838350296, -0.6694008111953735, 0.23993098735809326, 0.1337573528289795, -0.16598913073539734, -0.16525490581989288, -0.028935721144080162, 0.2565526068210602, 0.2881505489349365, -0.2599424421787262, 0.5434894561767578, 0.08012529462575912, -0.405498206615448, 0.4708833396434784, -0.04491076245903969, 1.0715023279190063, -0.3730732500553131, 0.16795913875102997, -0.34398582577705383, 0.3242869973182678, -0.2626879811286926, -1.134609341621399, 0.32410332560539246, -0.09996923059225082, 0.08007016032934189, -0.24348896741867065, 0.7010857462882996, -0.36911195516586304, -0.37684276700019836, 0.4098694324493408, 0.41166064143180847, 0.4955212473869324, 0.2667216360569, -1.1647740602493286, 0.2509804964065552, 0.09285562485456467, -0.6351707577705383, 0.45283177495002747, 0.5251805186271667, 0.34102436900138855, 0.7654692530632019, 0.38163673877716064, 0.2671543061733246, 0.18441101908683777, -0.3615102469921112, 0.7789937257766724, -0.6565037369728088, -0.4708459675312042, -0.8516472578048706, 0.5626299977302551, -0.4097437262535095, -0.5144365429878235, 0.7525293827056885, 0.5875850915908813, 0.40689629316329956, 0.027725256979465485, 0.6800728440284729, -0.5762773752212524, 0.514422595500946, -0.2625676989555359, 0.7593945264816284, -0.6981920599937439, -0.2645851969718933, -0.2523888647556305, -0.608656108379364, -0.39856329560279846, 0.8494632840156555, -0.10981781035661697, 0.2580387592315674, 0.3160199224948883, 0.6862829327583313, 0.047771044075489044, -0.1327797919511795, 0.024328386411070824, 0.2102215737104416, -0.1384306699037552, 0.8769789934158325, 0.5101610422134399, -0.7726322412490845, 0.07581352442502975, -0.5036132335662842, -0.28099697828292847, -0.35458147525787354, -0.7320420742034912, -1.1712076663970947, -0.7441226243972778, -0.5576795339584351, -0.6920868158340454, -0.2965546250343323, 1.2128684520721436, 0.817673921585083, -0.6077013611793518, -0.1373600959777832, 0.16255737841129303, 0.10778453201055527, -0.1638319343328476, -0.21544446051120758, 0.5435041785240173, 0.09687482565641403, -1.0205893516540527, -0.4464428424835205, 0.13247764110565186, 0.6392173171043396, 0.39598917961120605, -0.4729529321193695, -0.2532244324684143, -0.09474784880876541, 0.3662736415863037, 0.8348026871681213, -0.7980378866195679, -0.26203152537345886, -0.009064415469765663, -0.483274906873703, 0.14757691323757172, 0.2731892764568329, -0.4782821834087372, -0.11067476123571396, 0.4860170781612396, 0.3761751055717468, 0.7632235884666443, 0.0827903300523758, 0.12609697878360748, -0.46249258518218994, 0.5745714902877808, -0.03311237692832947, 0.3631885349750519, 0.22279636561870575, -0.30219095945358276, 0.7784769535064697, 0.5606510043144226, -0.40054333209991455, -1.0557198524475098, -0.2232445776462555, -1.3584030866622925, -0.08560117334127426, 0.7023335695266724, -0.0748668983578682, -0.4571337401866913, 0.42260298132896423, -0.42656365036964417, 0.509328305721283, -0.250076562166214, 0.26539909839630127, 0.24778304994106293, -0.36147916316986084, -0.3571164011955261, -0.5425053238868713, 0.6083984375, 0.3329542577266693, -0.6986678838729858, -0.4024712145328522, 0.014496470801532269, 0.34634214639663696, 0.21216869354248047, 0.7846976518630981, -0.38837817311286926, 0.13976606726646423, -0.117342509329319, 0.27055126428604126, -0.01220666989684105, 0.18196964263916016, -0.3094640076160431, -0.1227681040763855, -0.2544704079627991, -0.6143479943275452 ]
timm/tf_mixnet_l.in1k
timm
"2023-04-27T21:50:04Z"
40,216
0
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "arxiv:1907.09595", "license:apache-2.0", "region:us" ]
image-classification
"2022-12-13T00:21:35Z"
--- tags: - image-classification - timm library_name: timm license: apache-2.0 datasets: - imagenet-1k --- # Model card for tf_mixnet_l.in1k A MixNet image classification model. Trained 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): 7.3 - GMACs: 0.6 - Activations (M): 10.8 - Image size: 224 x 224 - **Papers:** - MixConv: Mixed Depthwise Convolutional Kernels: https://arxiv.org/abs/1907.09595 - **Dataset:** ImageNet-1k - **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_mixnet_l.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_mixnet_l.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, 112, 112]) # torch.Size([1, 40, 56, 56]) # torch.Size([1, 56, 28, 28]) # torch.Size([1, 160, 14, 14]) # torch.Size([1, 264, 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( 'tf_mixnet_l.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, 1536, 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{tan2019mixconv, title={MixConv: Mixed Depthwise Convolutional Kernels}, author={Mingxing Tan and Quoc V. Le}, year={2019}, eprint={1907.09595}, archivePrefix={arXiv}, primaryClass={cs.CV} } ``` ```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.5297011733055115, -0.5376386046409607, -0.038578327745199203, 0.17128725349903107, -0.4023570418357849, -0.29878830909729004, -0.19352227449417114, -0.4304141402244568, 0.3280647397041321, 0.37515074014663696, -0.4476822018623352, -0.7859072089195251, -0.7444227337837219, -0.19563007354736328, -0.28154340386390686, 1.0274406671524048, -0.20745569467544556, -0.04463852569460869, -0.12092403322458267, -0.5342061519622803, -0.11200908571481705, -0.20122045278549194, -0.7788676023483276, -0.4975791573524475, 0.3660888373851776, 0.2227281630039215, 0.6286194920539856, 0.5187147259712219, 0.5171584486961365, 0.4570547938346863, -0.20675963163375854, 0.0001986684073926881, -0.3522213399410248, -0.14415517449378967, 0.4026744067668915, -0.49829375743865967, -0.44151026010513306, 0.22287370264530182, 0.6898586750030518, 0.5543287992477417, 0.01478592585772276, 0.3150033950805664, 0.10492454469203949, 0.45312610268592834, -0.31307631731033325, -0.042949993163347244, -0.3065967857837677, 0.3013043999671936, 0.008093630895018578, 0.019550740718841553, -0.21045885980129242, -0.39917758107185364, 0.3120238482952118, -0.5947353839874268, 0.5332176685333252, -0.1398942470550537, 1.2549452781677246, 0.19735781848430634, -0.06205112487077713, -0.05230938643217087, -0.2858887314796448, 0.7526234984397888, -0.869422972202301, 0.24311091005802155, 0.2560581862926483, 0.1885780543088913, -0.12908200919628143, -1.0510462522506714, -0.5552595257759094, -0.08550991117954254, -0.22799052298069, 0.00152048550080508, -0.1361711323261261, 0.06347885727882385, 0.26293304562568665, 0.48673832416534424, -0.4686563313007355, 0.012709066271781921, -0.6437759399414062, -0.23919427394866943, 0.6180771589279175, 0.04270097240805626, 0.3225303590297699, -0.16093815863132477, -0.4651229977607727, -0.529206395149231, -0.228444904088974, 0.2775427997112274, 0.2942349910736084, 0.10944939404726028, -0.7375904321670532, 0.5468729138374329, 0.13111108541488647, 0.6305380463600159, 0.0503593310713768, -0.39267727732658386, 0.6286645531654358, 0.009149095974862576, -0.4919675588607788, -0.057594310492277145, 1.1448328495025635, 0.3779554069042206, 0.22518229484558105, 0.01705358922481537, -0.15948331356048584, -0.3069658577442169, -0.12545856833457947, -1.259728193283081, -0.3545650541782379, 0.4892526865005493, -0.5376396775245667, -0.4527833163738251, 0.3319949805736542, -0.6447878479957581, -0.14707691967487335, 0.02951969765126705, 0.6833041310310364, -0.4671958386898041, -0.5440340042114258, 0.07553207874298096, -0.2786516845226288, 0.3286277949810028, 0.19443608820438385, -0.4534532129764557, 0.21165186166763306, 0.3678857386112213, 1.1850343942642212, 0.006577466148883104, -0.5009407997131348, -0.1639319509267807, -0.3715081214904785, -0.3472355008125305, 0.376489520072937, -0.05546318367123604, -0.22073282301425934, -0.3017982840538025, 0.27338993549346924, -0.10488107055425644, -0.7890040278434753, 0.2583600580692291, -0.16905401647090912, 0.3073829114437103, 0.1158914640545845, -0.27528998255729675, -0.4601701498031616, 0.31233400106430054, -0.44264766573905945, 1.312486171722412, 0.4265512526035309, -0.9481313228607178, 0.3882806599140167, -0.502303957939148, -0.26194795966148376, -0.2638164162635803, -0.018686499446630478, -1.0803706645965576, -0.14960817992687225, 0.2340153604745865, 0.7640153169631958, -0.1424623280763626, 0.13631154596805573, -0.6774620413780212, -0.27164217829704285, 0.3340293765068054, 0.0834692046046257, 1.1328227519989014, 0.16282133758068085, -0.39915183186531067, 0.3274785876274109, -0.5698423385620117, 0.13465817272663116, 0.42111778259277344, -0.2782875597476959, -0.005710800644010305, -0.6816383004188538, 0.26546531915664673, 0.38282305002212524, 0.08732664585113525, -0.6071964502334595, 0.2182753086090088, -0.1701975166797638, 0.4520162045955658, 0.5296519994735718, -0.06531424820423126, 0.3274284601211548, -0.3830678462982178, 0.35259220004081726, 0.5089483857154846, 0.14870572090148926, -0.07208117842674255, -0.5677078366279602, -0.9091910719871521, -0.5865414142608643, 0.3605826497077942, 0.3419448733329773, -0.5197411179542542, 0.5192842483520508, -0.2114013135433197, -0.7765782475471497, -0.6285274028778076, 0.04934893921017647, 0.33384406566619873, 0.5984411239624023, 0.3264867067337036, -0.45685991644859314, -0.5192103385925293, -0.9197946786880493, 0.049833886325359344, 0.11938513070344925, -0.029953470453619957, 0.3366830348968506, 0.7357491254806519, -0.17394153773784637, 0.6908940672874451, -0.35563695430755615, -0.18559874594211578, -0.2648793160915375, 0.10047737509012222, 0.4981083273887634, 0.8714146018028259, 0.7808902263641357, -0.5985596179962158, -0.5008718371391296, -0.09819049388170242, -0.9889189004898071, 0.18040795624256134, 0.038051482290029526, -0.28831344842910767, 0.2119634598493576, 0.11012589186429977, -0.661255955696106, 0.6528253555297852, 0.2616698443889618, -0.4847508370876312, 0.3392411470413208, -0.18942111730575562, 0.2593485414981842, -1.224014163017273, 0.12508299946784973, 0.3995003402233124, -0.2430412769317627, -0.4532238245010376, 0.03785097226500511, -0.03937263786792755, -0.09791074693202972, -0.5541793704032898, 0.711340069770813, -0.46745598316192627, -0.27223506569862366, -0.0751972571015358, -0.35333603620529175, 0.03781576082110405, 0.6994267702102661, -0.06393252313137054, 0.3529735803604126, 0.9293146729469299, -0.5154439806938171, 0.5034205317497253, 0.3471001982688904, -0.2390962690114975, 0.4110809564590454, -0.7950219511985779, 0.20638178288936615, 0.01962365210056305, 0.2422793060541153, -1.023803472518921, -0.2910134792327881, 0.3985804617404938, -0.5577915906906128, 0.5962222814559937, -0.5368720889091492, -0.4648439884185791, -0.415262907743454, -0.4661930203437805, 0.47298556566238403, 0.7094372510910034, -0.741614580154419, 0.5595622658729553, 0.21954545378684998, 0.3536706566810608, -0.5532647967338562, -1.0247790813446045, -0.2957656979560852, -0.3734438121318817, -0.8874170780181885, 0.3805091083049774, 0.09044653177261353, 0.0927455797791481, 0.19420641660690308, -0.1864713728427887, -0.13179105520248413, -0.158762589097023, 0.46630191802978516, 0.30780425667762756, -0.3684951663017273, -0.276347815990448, -0.23987576365470886, 0.040000587701797485, 0.0018797912634909153, -0.319618284702301, 0.5883122086524963, -0.18904411792755127, -0.0705089196562767, -0.7743434906005859, -0.022411393001675606, 0.49629560112953186, 0.012549754232168198, 0.8613676428794861, 1.1175206899642944, -0.5163385272026062, -0.14261621236801147, -0.40802308917045593, -0.34265705943107605, -0.4717859625816345, 0.48245367407798767, -0.3714388906955719, -0.5345747470855713, 0.9696268439292908, 0.14517328143119812, 0.1200212612748146, 0.7218465805053711, 0.4035038650035858, -0.108364537358284, 0.6395470499992371, 0.4672945439815521, 0.2173643410205841, 0.7054742574691772, -1.069033145904541, -0.2484944611787796, -0.717623770236969, -0.5226907730102539, -0.29986459016799927, -0.7124483585357666, -0.7290471792221069, -0.30488741397857666, 0.4983276128768921, 0.20988045632839203, -0.3949964940547943, 0.3995725214481354, -0.791267991065979, 0.1275796890258789, 0.6356804966926575, 0.6678318381309509, -0.311412513256073, 0.32037627696990967, -0.3007665276527405, 0.07481853663921356, -0.8185094594955444, -0.11521340161561966, 1.1549879312515259, 0.46887290477752686, 0.6489136815071106, -0.21345774829387665, 0.8062628507614136, -0.24003614485263824, 0.34656184911727905, -0.6499114632606506, 0.5460140705108643, -0.05676807835698128, -0.4644302427768707, -0.08165253698825836, -0.5135627388954163, -1.0198472738265991, 0.2675397992134094, -0.2914777100086212, -0.6669694781303406, 0.1898101419210434, 0.12374722957611084, -0.13824908435344696, 0.7804838418960571, -0.9023000597953796, 1.0829834938049316, -0.10853521525859833, -0.5144639611244202, 0.09275387972593307, -0.6324208378791809, 0.31060081720352173, 0.33985254168510437, -0.2464890331029892, -0.025154097005724907, 0.136546790599823, 1.139350175857544, -0.6422097086906433, 0.8269121050834656, -0.4667215049266815, 0.34638455510139465, 0.5013168454170227, 0.040528006851673126, 0.2615983486175537, -0.12659449875354767, -0.049366313964128494, 0.4098123013973236, 0.11856301128864288, -0.5774414539337158, -0.4894225001335144, 0.7001533508300781, -1.1123217344284058, -0.22317534685134888, -0.37811511754989624, -0.557750940322876, 0.1865939050912857, 0.09892579913139343, 0.5513889193534851, 0.6432875990867615, 0.17805233597755432, 0.2920363247394562, 0.5587992072105408, -0.38205209374427795, 0.45464468002319336, -0.1916135549545288, -0.2797418534755707, -0.5765688419342041, 0.7763641476631165, 0.1438431739807129, 0.1660146713256836, 0.027146391570568085, 0.2455960363149643, -0.3055289685726166, -0.5661765933036804, -0.3091568052768707, 0.3257051408290863, -0.7662633061408997, -0.37124696373939514, -0.6340557336807251, -0.47360366582870483, -0.3833104968070984, -0.11791084706783295, -0.5086483955383301, -0.44644948840141296, -0.3932288885116577, 0.18291334807872772, 0.6602394580841064, 0.6337504982948303, -0.016038253903388977, 0.5561977028846741, -0.46768519282341003, 0.16091758012771606, 0.1034632995724678, 0.5942832827568054, -0.08854793012142181, -0.92060387134552, -0.21147453784942627, -0.07420355081558228, -0.43469229340553284, -0.7617768049240112, 0.4956986606121063, 0.11463624984025955, 0.486774206161499, 0.31375226378440857, -0.31777554750442505, 0.7748044729232788, 0.17148688435554504, 0.495514839887619, 0.3337319493293762, -0.591840386390686, 0.6020091772079468, -0.06960169225931168, 0.23588337004184723, 0.08103297650814056, 0.32291996479034424, -0.305408775806427, -0.11810675263404846, -1.0687440633773804, -0.8422756195068359, 1.0095751285552979, 0.2245321124792099, -0.06388992071151733, 0.46662649512290955, 0.628300130367279, 0.1242465227842331, 0.10859554260969162, -0.8104546070098877, -0.512472927570343, -0.4443122148513794, -0.405451238155365, -0.03494270145893097, -0.012025768868625164, -0.10764484852552414, -0.7368429899215698, 0.6415850520133972, 0.038384824991226196, 0.6999321579933167, 0.40711116790771484, -0.0662679374217987, -0.17813895642757416, -0.3747262954711914, 0.5153338313102722, 0.4090941250324249, -0.43170735239982605, 0.13777229189872742, 0.14444409310817719, -0.533800482749939, 0.03702038899064064, 0.1765149086713791, -0.010001957416534424, 0.07100645452737808, 0.5682161450386047, 0.966098427772522, 0.04006991162896156, 0.07392080128192902, 0.425504207611084, 0.08236385881900787, -0.48806917667388916, -0.20835216343402863, 0.18924205005168915, 0.006702551152557135, 0.44051671028137207, 0.30591195821762085, 0.31734856963157654, -0.13487444818019867, -0.2359262853860855, 0.21680837869644165, 0.5222218036651611, -0.22635672986507416, -0.3799653649330139, 0.6315162777900696, -0.2069079726934433, -0.11101596057415009, 0.8161427974700928, -0.021560775116086006, -0.49162036180496216, 1.0906364917755127, 0.4243312180042267, 0.9812138080596924, -0.005276521667838097, 0.01555757224559784, 0.9031943082809448, 0.22594642639160156, 0.020984144881367683, 0.1991269737482071, 0.07761558890342712, -0.7838689088821411, 0.10826560109853745, -0.5774194598197937, 0.01952284947037697, 0.4440377354621887, -0.4394105076789856, 0.36610257625579834, -0.778749942779541, -0.3063211441040039, 0.18493838608264923, 0.24854546785354614, -0.9587397575378418, 0.24551285803318024, 0.007759429980069399, 0.8199158906936646, -0.8108199834823608, 0.7333908677101135, 0.8909490704536438, -0.583568811416626, -1.0366878509521484, -0.18444004654884338, -0.12104763090610504, -0.864705502986908, 0.519349992275238, 0.3954358398914337, 0.16620217263698578, 0.0294344499707222, -0.9207518696784973, -0.5320890545845032, 1.4250112771987915, 0.529353141784668, -0.028755342587828636, 0.3105466365814209, 0.03688912093639374, 0.2764984369277954, -0.5121137499809265, 0.6034303903579712, 0.24183647334575653, 0.3821493983268738, 0.4804392457008362, -0.6775694489479065, 0.20833957195281982, -0.33888062834739685, 0.07517053186893463, 0.1958543062210083, -0.6784532070159912, 0.95659339427948, -0.42076706886291504, -0.10690674185752869, -0.12396274507045746, 0.7144948244094849, 0.3381614685058594, 0.20509585738182068, 0.5452202558517456, 0.9268417358398438, 0.4077427089214325, -0.3359125852584839, 0.9370958209037781, 0.057124294340610504, 0.7068726420402527, 0.5313357710838318, 0.43552735447883606, 0.4753463864326477, 0.518438994884491, -0.2702871859073639, 0.3096838593482971, 1.17877197265625, -0.3235311508178711, 0.3388402462005615, 0.11620567739009857, 0.043749090284109116, -0.12110307812690735, 0.1520232856273651, -0.4485425055027008, 0.3609078824520111, 0.17335602641105652, -0.5673277974128723, -0.2919555902481079, -0.07512068748474121, -0.0003845262108370662, -0.512328565120697, -0.22398735582828522, 0.5038984417915344, 0.0434294193983078, -0.4547579288482666, 0.9463712573051453, 0.07574944943189621, 0.9589138031005859, -0.3619112968444824, -0.001773779047653079, -0.35546305775642395, 0.2487156093120575, -0.49594932794570923, -0.979861855506897, 0.27268093824386597, -0.315826416015625, 0.1068592444062233, 0.07900286465883255, 0.631339967250824, -0.5470277667045593, -0.5266708731651306, 0.290843665599823, 0.2996406555175781, 0.4940495193004608, 0.09199896454811096, -1.1959575414657593, 0.19708456099033356, 0.009718992747366428, -0.6826262474060059, 0.23871243000030518, 0.42590025067329407, 0.18691986799240112, 0.6673085689544678, 0.5238491892814636, -0.08092750608921051, 0.289166122674942, -0.17469705641269684, 0.8788189888000488, -0.5100831389427185, -0.4256262481212616, -0.8131502866744995, 0.7569201588630676, -0.038714148104190826, -0.6360364556312561, 0.3751991093158722, 0.6465462446212769, 0.9967803359031677, -0.043265119194984436, 0.5000051259994507, -0.28855007886886597, -0.07137002795934677, -0.3850007951259613, 0.6804303526878357, -0.8153390288352966, -0.07203452289104462, -0.1576959490776062, -0.7871513366699219, -0.3377138078212738, 0.6799196600914001, -0.24424538016319275, 0.6258790493011475, 0.5219765901565552, 1.00129234790802, -0.5765248537063599, -0.3134731352329254, 0.16479548811912537, 0.2040747106075287, 0.046761658042669296, 0.42971867322921753, 0.4349508583545685, -0.8238844275474548, 0.3674025535583496, -0.8010799288749695, -0.10614441335201263, -0.19991745054721832, -0.621177077293396, -1.0369471311569214, -0.7999485731124878, -0.6811419129371643, -0.8120785355567932, -0.30707427859306335, 0.9604013562202454, 1.137628197669983, -0.8376669883728027, -0.28056806325912476, 0.015114649198949337, 0.13890771567821503, -0.14872105419635773, -0.2530646324157715, 0.5738428831100464, -0.03768346086144447, -0.7237230539321899, -0.37056970596313477, -0.06808264553546906, 0.451109379529953, -0.018586739897727966, -0.30417028069496155, -0.19132182002067566, -0.40690964460372925, 0.1596803218126297, 0.2573941946029663, -0.7062998414039612, -0.06066357344388962, -0.31101736426353455, -0.19377213716506958, 0.5248408317565918, 0.49734431505203247, -0.45636260509490967, 0.3702683448791504, 0.5438995361328125, 0.3926820456981659, 1.0589327812194824, -0.3529485762119293, 0.017872344702482224, -0.8726612329483032, 0.6843699812889099, -0.029267726466059685, 0.5001232028007507, 0.5141751766204834, -0.2951960265636444, 0.5555955767631531, 0.4397489130496979, -0.2874216139316559, -0.8062503337860107, -0.20788423717021942, -1.1642838716506958, -0.10496105998754501, 0.9336376190185547, -0.3277631402015686, -0.5390055179595947, 0.4829271137714386, -0.0032148309983313084, 0.7411535382270813, -0.18519020080566406, 0.44601020216941833, 0.3475971817970276, -0.05969186872243881, -0.7250940203666687, -0.5100784301757812, 0.36868688464164734, 0.18493881821632385, -0.6588878631591797, -0.5397090315818787, 0.015047907829284668, 0.8277783989906311, 0.1178220883011818, 0.4621272683143616, -0.16645118594169617, 0.08580411970615387, 0.12102499604225159, 0.5674967169761658, -0.4369813799858093, -0.10379935801029205, -0.3589111268520355, 0.09322112798690796, -0.16186386346817017, -0.5946093201637268 ]
peft-internal-testing/tiny_OPTForSequenceClassification-lora
peft-internal-testing
"2023-07-13T13:48:21Z"
40,208
0
peft
[ "peft", "region:us" ]
null
"2023-07-13T13:48:20Z"
--- 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 ]
timm/nest_base_jx.goog_in1k
timm
"2023-04-23T23:11:41Z"
40,199
0
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "arxiv:2105.12723", "license:apache-2.0", "region:us" ]
image-classification
"2023-04-23T23:10:38Z"
--- tags: - image-classification - timm library_name: timm license: apache-2.0 datasets: - imagenet-1k --- # Model card for nest_base_jx.goog_in1k A NesT image classification model. Trained on ImageNet-1k by paper authors in JAX. Ported to PyTorch by Alexander Soare. ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 67.7 - GMACs: 18.0 - Activations (M): 53.4 - Image size: 224 x 224 - **Papers:** - Nested Hierarchical Transformer: Towards Accurate, Data-Efficient and Interpretable Visual Understanding: https://arxiv.org/abs/2105.12723 - **Dataset:** ImageNet-1k - **Original:** https://github.com/google-research/nested-transformer ## 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('nest_base_jx.goog_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( 'nest_base_jx.goog_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, 56, 56]) # torch.Size([1, 256, 28, 28]) # torch.Size([1, 512, 14, 14]) 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( 'nest_base_jx.goog_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, 512, 14, 14) 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{zhang2021aggregating, title={Nested Hierarchical Transformer: Towards Accurate, Data-Efficient and Interpretable Visual Understanding}, author={Zizhao Zhang and Han Zhang and Long Zhao and Ting Chen and and Sercan Ö. Arık and Tomas Pfister}, booktitle={AAAI Conference on Artificial Intelligence (AAAI)}, year={2022} } ```
[ -0.37195247411727905, -0.47936320304870605, -0.03884207084774971, 0.08299564570188522, -0.2816659212112427, -0.3056096136569977, -0.2656295895576477, -0.3392082154750824, 0.00019302491273265332, 0.3631804883480072, -0.5743626356124878, -0.8114587068557739, -0.7635530233383179, -0.1677372008562088, -0.06492524594068527, 1.0687261819839478, 0.00897222850471735, -0.15242020785808563, -0.20618750154972076, -0.343940794467926, -0.14356018602848053, -0.23770396411418915, -0.7940531373023987, -0.44865700602531433, 0.21540972590446472, 0.20945315062999725, 0.631026029586792, 0.6408571004867554, 0.627051591873169, 0.4810708463191986, -0.09571490436792374, -0.041928160935640335, -0.39282095432281494, -0.2473117858171463, 0.41089630126953125, -0.8679993748664856, -0.5074318647384644, 0.1442311406135559, 0.760079562664032, 0.5278978943824768, 0.1615796536207199, 0.4376966655254364, 0.10845442861318588, 0.429557740688324, -0.30125588178634644, 0.4552154242992401, -0.44462862610816956, 0.39067357778549194, -0.07350630313158035, 0.08281195908784866, -0.32194483280181885, -0.3960142433643341, 0.31633496284484863, -0.5612635016441345, 0.46614378690719604, 0.03298654034733772, 1.2850714921951294, 0.3127957880496979, -0.07141654938459396, -0.06121741980314255, -0.2427414059638977, 0.9851187467575073, -0.9066107869148254, 0.23735064268112183, 0.2596926689147949, 0.15947076678276062, -0.12375951558351517, -0.9730435609817505, -0.49732595682144165, -0.1442652940750122, -0.40973126888275146, 0.1778184473514557, -0.31818461418151855, -0.010086189955472946, 0.2896905541419983, 0.5001901984214783, -0.551334023475647, 0.07604768872261047, -0.4468919634819031, -0.08704006671905518, 0.45700138807296753, 0.08633975684642792, 0.42638662457466125, -0.3007219135761261, -0.4647071957588196, -0.5222788453102112, -0.309502512216568, 0.38850849866867065, 0.22974081337451935, 0.3898213505744934, -0.6610271334648132, 0.31571507453918457, 0.2656024694442749, 0.4731113016605377, 0.22329077124595642, -0.5258887410163879, 0.5993570685386658, 0.07000266015529633, -0.5028416514396667, -0.15043309330940247, 1.0500997304916382, 0.2817542254924774, 0.21770572662353516, -0.055478472262620926, 0.025670038536190987, -0.24122285842895508, -0.05843393877148628, -1.1130285263061523, -0.419616162776947, 0.3325306475162506, -0.6106120347976685, -0.43814337253570557, 0.38320139050483704, -0.7548155784606934, -0.07185862958431244, 0.026360230520367622, 0.5637012720108032, -0.4124568998813629, -0.4872698485851288, 0.049397826194763184, -0.19351209700107574, 0.323287695646286, 0.028086991980671883, -0.6657679080963135, 0.30407917499542236, 0.2757176160812378, 0.9634094834327698, 0.021435970440506935, -0.49835914373397827, -0.08417428284883499, -0.2697891891002655, -0.31465768814086914, 0.37678712606430054, -0.038273368030786514, -0.16218343377113342, -0.2088758498430252, 0.37489697337150574, -0.34819504618644714, -0.7716935873031616, 0.24037611484527588, -0.19323863089084625, 0.44254982471466064, 0.14527827501296997, -0.1614679992198944, -0.548414409160614, 0.35121816396713257, -0.4524376094341278, 1.2050071954727173, 0.4862303137779236, -0.871768593788147, 0.400910884141922, -0.5712984204292297, -0.19334694743156433, -0.23214875161647797, -0.030236510559916496, -1.2168928384780884, -0.22086575627326965, 0.4080928862094879, 0.7031979560852051, -0.18965238332748413, -0.06479933112859726, -0.3906922936439514, -0.23488575220108032, 0.1079937070608139, 0.07209894061088562, 1.0914596319198608, 0.012685379013419151, -0.6227383613586426, 0.37197667360305786, -0.6599106788635254, 0.19367028772830963, 0.5886836647987366, -0.21710270643234253, -0.04941504821181297, -0.5971047282218933, 0.10974645614624023, 0.26038697361946106, 0.12309247255325317, -0.43384435772895813, 0.38029348850250244, -0.2770364582538605, 0.40056705474853516, 0.557396411895752, -0.16445982456207275, 0.4555937647819519, -0.3341415226459503, 0.35664913058280945, 0.34250450134277344, 0.27277252078056335, -0.12263578921556473, -0.5772276520729065, -0.8237676024436951, -0.5897418260574341, 0.29307085275650024, 0.3673197031021118, -0.2790377140045166, 0.6751731634140015, -0.2894931733608246, -0.718008279800415, -0.5342621207237244, 0.022505473345518112, 0.4270334243774414, 0.5047113299369812, 0.40498992800712585, -0.3245866894721985, -0.6636369228363037, -0.7980448603630066, 0.2681880295276642, 0.019569046795368195, 0.020498905330896378, 0.3324785828590393, 0.7731729745864868, -0.3333015739917755, 0.7032027244567871, -0.42136308550834656, -0.3679949641227722, -0.23776556551456451, 0.29190075397491455, 0.5032582879066467, 0.7907443642616272, 0.8655604124069214, -0.6167712807655334, -0.47773435711860657, -0.062221210449934006, -1.0455456972122192, 0.1284741312265396, -0.16551800072193146, -0.25401297211647034, 0.29303857684135437, 0.11041998863220215, -0.7316939234733582, 0.6422962546348572, 0.28844958543777466, -0.2178865671157837, 0.5060416460037231, -0.08313670754432678, 0.29355448484420776, -1.113678216934204, 0.09091947972774506, 0.21925921738147736, -0.0907173901796341, -0.339439332485199, 0.2531288266181946, -0.014742397703230381, 0.03816235065460205, -0.39401739835739136, 0.5192154049873352, -0.6112830638885498, -0.20344963669776917, -0.13434183597564697, -0.2922501266002655, -0.06995411217212677, 0.7604387998580933, -0.0589202418923378, 0.39994922280311584, 0.9390241503715515, -0.4157711863517761, 0.4071481227874756, 0.5530481338500977, -0.14009712636470795, 0.2852530777454376, -0.522083044052124, 0.20085759460926056, 0.07394243776798248, 0.3347773253917694, -1.126967191696167, -0.19643300771713257, 0.37983766198158264, -0.5489444732666016, 0.6072361469268799, -0.6659857630729675, -0.4745689332485199, -0.6208949685096741, -0.4787365794181824, 0.3974039852619171, 0.824123203754425, -0.8835569620132446, 0.516060471534729, 0.15878312289714813, 0.21061936020851135, -0.5940654277801514, -0.9061635732650757, -0.2655884921550751, -0.41264471411705017, -0.8188357949256897, 0.40967464447021484, 0.13837650418281555, 0.16045646369457245, 0.2626715898513794, -0.16395993530750275, -0.0709981918334961, -0.2478279322385788, 0.6185353994369507, 0.3862896263599396, -0.5219843983650208, -0.28064095973968506, -0.31054574251174927, -0.11587720364332199, 0.1507987082004547, -0.2951614260673523, 0.6064739227294922, -0.41511666774749756, -0.10387218743562698, -0.770202100276947, -0.09392470866441727, 0.6247779726982117, 0.018321886658668518, 0.8460438847541809, 1.100225567817688, -0.5274447202682495, -0.08603885024785995, -0.2568858861923218, -0.2367750108242035, -0.46166089177131653, 0.38958221673965454, -0.4407249689102173, -0.45606687664985657, 0.9117847084999084, -0.05419021472334862, 0.09278824925422668, 0.745589554309845, 0.4030531346797943, -0.04739378020167351, 0.9458808898925781, 0.6559531688690186, 0.07125979661941528, 0.5874453783035278, -1.132241129875183, -0.02004634216427803, -0.8092280030250549, -0.43058305978775024, -0.33575066924095154, -0.4496430456638336, -0.6907494068145752, -0.27423161268234253, 0.4959785044193268, 0.2244596630334854, -0.37686797976493835, 0.4675629138946533, -0.7773688435554504, 0.040476102381944656, 0.7523313760757446, 0.454936683177948, -0.2743101418018341, 0.20054692029953003, -0.22272296249866486, -0.03769536688923836, -0.8494166135787964, -0.23038196563720703, 0.9942431449890137, 0.487010657787323, 0.7861050963401794, -0.2013935148715973, 0.6725814342498779, -0.3311009705066681, 0.2134234607219696, -0.6744099259376526, 0.5522584319114685, -0.0739198699593544, -0.3077533543109894, -0.13366220891475677, -0.3504194915294647, -1.1835750341415405, 0.15265855193138123, -0.34843456745147705, -0.8015970587730408, 0.02839314192533493, 0.14035442471504211, -0.21400201320648193, 0.8350176811218262, -0.8426318168640137, 1.0078140497207642, -0.06726782023906708, -0.3498040437698364, 0.15116719901561737, -0.6948486566543579, 0.34986549615859985, 0.26449647545814514, -0.2525465190410614, 0.1708170622587204, 0.3691164255142212, 1.0330606698989868, -0.5285688638687134, 0.9163448214530945, -0.34800827503204346, 0.34656792879104614, 0.47856107354164124, -0.13391633331775665, 0.2744152843952179, -0.1868697851896286, 0.03583834320306778, 0.3880671262741089, 0.0625934824347496, -0.47943350672721863, -0.6534396409988403, 0.5968605279922485, -1.1105527877807617, -0.34783992171287537, -0.4555078148841858, -0.6122633218765259, 0.17365381121635437, 0.12664762139320374, 0.5606810450553894, 0.5298241376876831, 0.341930091381073, 0.3787481486797333, 0.5035533905029297, -0.36144956946372986, 0.35236185789108276, -0.21933884918689728, -0.2543436884880066, -0.3868105709552765, 0.7312322854995728, 0.13511140644550323, 0.06488623470067978, 0.17172856628894806, 0.37681493163108826, -0.45646557211875916, -0.5678378939628601, -0.3592219650745392, 0.31042733788490295, -0.6972591876983643, -0.44013357162475586, -0.5835112929344177, -0.602317214012146, -0.586848258972168, -0.1685044765472412, -0.38812151551246643, -0.243499293923378, -0.3070780336856842, 0.16107048094272614, 0.5373886823654175, 0.6387112140655518, -0.10360152274370193, 0.617328941822052, -0.5752555131912231, 0.1895291954278946, 0.23871546983718872, 0.4044264853000641, -0.024035699665546417, -0.8426840901374817, -0.24103429913520813, -0.11988342553377151, -0.3702014684677124, -0.6552461385726929, 0.4792458117008209, 0.02866910584270954, 0.5795283913612366, 0.3892016112804413, -0.2514135539531708, 0.92357337474823, -0.021599937230348587, 0.6195129752159119, 0.2608942687511444, -0.5931711792945862, 0.7056915760040283, -0.13938118517398834, 0.2962709367275238, -0.06981766223907471, 0.38449403643608093, -0.13064923882484436, -0.17482885718345642, -1.0058196783065796, -0.8910660147666931, 0.9116559624671936, 0.21545012295246124, -0.15947966277599335, 0.42368578910827637, 0.536230742931366, 0.14916375279426575, 0.014899437315762043, -0.8359900712966919, -0.4884614944458008, -0.40994971990585327, -0.31292998790740967, 0.14877599477767944, -0.007818195968866348, -0.09908154606819153, -0.7179272770881653, 0.6994007229804993, -0.001684629824012518, 0.7489118576049805, 0.226187065243721, -0.17733563482761383, -0.3061087727546692, -0.31040671467781067, 0.352934867143631, 0.34142211079597473, -0.5527697205543518, 0.09653288871049881, 0.1714206337928772, -0.5925706624984741, -0.04679294303059578, 0.13535593450069427, 0.04234500974416733, -0.08941330760717392, 0.6373348236083984, 0.8944261074066162, 0.13396668434143066, 0.0666518285870552, 0.3758932650089264, 0.0008619443397037685, -0.36938273906707764, -0.2902059555053711, 0.20928727090358734, -0.0963621586561203, 0.3882485032081604, 0.3590141534805298, 0.32060328125953674, -0.17792068421840668, -0.35908278822898865, 0.2869398593902588, 0.5157422423362732, -0.13737241923809052, -0.3384474217891693, 0.6817470788955688, -0.2702450752258301, -0.08433733880519867, 0.9459664821624756, -0.028671598061919212, -0.5792118310928345, 1.0737203359603882, 0.7040789127349854, 0.9048256874084473, -0.016102610155940056, -0.05888831615447998, 0.9231570363044739, 0.2602631151676178, 0.14940303564071655, -0.058333877474069595, 0.16767236590385437, -0.705133855342865, 0.027024034410715103, -0.5604018568992615, -0.111313097178936, 0.5826060175895691, -0.6395894289016724, 0.226349875330925, -0.6947906017303467, -0.276090532541275, 0.14410372078418732, 0.3475225269794464, -0.9194493889808655, 0.30834898352622986, 0.13312719762325287, 0.7075784206390381, -0.8605731725692749, 0.6316455006599426, 0.8955154418945312, -0.583929181098938, -1.0147454738616943, -0.005299604497849941, 0.03542502224445343, -0.987214207649231, 0.6322129368782043, 0.43132302165031433, 0.03425018861889839, 0.17643477022647858, -0.8284693956375122, -0.609844446182251, 1.3875892162322998, 0.3624545633792877, 0.014449297450482845, 0.18716487288475037, 0.06791824847459793, 0.3171240985393524, -0.46156981587409973, 0.6209611296653748, 0.32235199213027954, 0.45768409967422485, 0.26127898693084717, -0.6952617764472961, 0.19820614159107208, -0.3951036334037781, 0.0737183541059494, 0.13427241146564484, -0.6407327055931091, 0.9907304048538208, -0.5167855620384216, -0.19231142103672028, 0.06545654684305191, 0.6319584250450134, 0.25277432799339294, 0.07107135653495789, 0.6407076120376587, 0.8614943027496338, 0.4790239930152893, -0.39480212330818176, 0.9009068012237549, 0.03720713406801224, 0.7731973528862, 0.6024624109268188, 0.42803120613098145, 0.48300057649612427, 0.27422574162483215, -0.3288659155368805, 0.5825308561325073, 0.9764403104782104, -0.4181228280067444, 0.38032329082489014, 0.15314392745494843, 0.057802680879831314, -0.0422547310590744, 0.21502585709095, -0.4831056296825409, 0.53167325258255, 0.21336708962917328, -0.39719995856285095, -0.3565073013305664, 0.034273043274879456, 0.077130988240242, -0.31472691893577576, -0.18894769251346588, 0.4823205769062042, -0.1213306412100792, -0.3874412178993225, 0.8511824607849121, -0.03394678607583046, 0.9009606242179871, -0.463562935590744, -0.09006686508655548, -0.18571683764457703, 0.2658422887325287, -0.4770298898220062, -0.8324143886566162, 0.26297786831855774, -0.3208390176296234, -0.09352216124534607, 0.003073720959946513, 0.6677746176719666, -0.40248963236808777, -0.423241525888443, 0.27057892084121704, 0.3607773780822754, 0.42061251401901245, 0.022056646645069122, -1.2574220895767212, 0.10482576489448547, -0.06590800732374191, -0.6230965852737427, 0.27606070041656494, 0.3228204548358917, 0.05068918690085411, 0.6282456517219543, 0.7019999623298645, -0.14521706104278564, 0.3318091630935669, -0.09029605984687805, 0.7576243281364441, -0.5179287195205688, -0.3676714599132538, -0.7306499481201172, 0.780020534992218, -0.045755624771118164, -0.5506938099861145, 0.5567256808280945, 0.5638259053230286, 0.9476437568664551, -0.235042005777359, 0.5797117352485657, -0.30628323554992676, -0.024441242218017578, -0.4104655981063843, 0.7042354345321655, -0.5958034992218018, -0.19269201159477234, -0.21412137150764465, -0.6852548122406006, -0.4772432744503021, 0.900465190410614, -0.32364320755004883, 0.4149763584136963, 0.6910080313682556, 0.9955049753189087, -0.4234260320663452, -0.29038190841674805, 0.19205695390701294, 0.34216147661209106, 0.14812728762626648, 0.5172346234321594, 0.5163035988807678, -0.949469804763794, 0.42093658447265625, -0.7703367471694946, -0.3150484561920166, -0.1868046373128891, -0.6446556448936462, -1.1158143281936646, -0.8588009476661682, -0.6662862300872803, -0.5555121302604675, -0.26206904649734497, 0.8864866495132446, 1.2421956062316895, -0.8241028785705566, -0.14390498399734497, -0.025318007916212082, 0.17507562041282654, -0.39186298847198486, -0.2929411232471466, 0.757441520690918, -0.2715238034725189, -0.8912109136581421, -0.2907083332538605, 0.024624500423669815, 0.3423973023891449, 0.03189351037144661, -0.13957558572292328, -0.14858397841453552, -0.40688130259513855, 0.33705639839172363, 0.29219186305999756, -0.765828549861908, -0.20461633801460266, -0.24495568871498108, -0.22614872455596924, 0.5562952756881714, 0.3457227051258087, -0.6258319020271301, 0.2470834106206894, 0.3735518157482147, 0.3968537449836731, 0.8408434987068176, -0.27940472960472107, -0.0632428452372551, -0.8309234976768494, 0.5402197241783142, -0.09089790284633636, 0.4729522466659546, 0.3202816843986511, -0.4632011353969574, 0.6005503535270691, 0.4459255635738373, -0.4282853305339813, -0.7922701835632324, -0.17053525149822235, -1.2167738676071167, -0.09098812192678452, 0.8091025352478027, -0.4251616299152374, -0.6124728322029114, 0.41512006521224976, -0.11579135805368423, 0.7195349931716919, -0.0015602541388943791, 0.645004153251648, 0.22920657694339752, -0.20353925228118896, -0.7203391790390015, -0.4136503338813782, 0.35425201058387756, 0.16287101805210114, -0.7668113708496094, -0.5090903639793396, -0.0967794805765152, 0.6477116942405701, 0.3768090605735779, 0.40745243430137634, -0.20144684612751007, 0.11311349272727966, 0.26047995686531067, 0.4822835922241211, -0.33411696553230286, -0.16295190155506134, -0.2333320528268814, 0.09579886496067047, -0.2128194123506546, -0.6895447373390198 ]
cardiffnlp/twitter-xlm-roberta-base-sentiment-multilingual
cardiffnlp
"2022-12-01T00:38:43Z"
40,036
3
transformers
[ "transformers", "pytorch", "xlm-roberta", "text-classification", "dataset:cardiffnlp/tweet_sentiment_multilingual", "model-index", "endpoints_compatible", "has_space", "region:us" ]
text-classification
"2022-12-01T00:32:11Z"
--- datasets: - cardiffnlp/tweet_sentiment_multilingual metrics: - f1 - accuracy model-index: - name: cardiffnlp/twitter-xlm-roberta-base-sentiment-multilingual results: - task: type: text-classification name: Text Classification dataset: name: cardiffnlp/tweet_sentiment_multilingual type: all split: test metrics: - name: Micro F1 (cardiffnlp/tweet_sentiment_multilingual/all) type: micro_f1_cardiffnlp/tweet_sentiment_multilingual/all value: 0.6931034482758621 - name: Macro F1 (cardiffnlp/tweet_sentiment_multilingual/all) type: micro_f1_cardiffnlp/tweet_sentiment_multilingual/all value: 0.692628774202147 - name: Accuracy (cardiffnlp/tweet_sentiment_multilingual/all) type: accuracy_cardiffnlp/tweet_sentiment_multilingual/all value: 0.6931034482758621 pipeline_tag: text-classification widget: - text: Get the all-analog Classic Vinyl Edition of "Takin Off" Album from {@herbiehancock@} via {@bluenoterecords@} link below {{URL}} example_title: "topic_classification 1" - text: Yes, including Medicare and social security saving👍 example_title: "sentiment 1" - text: All two of them taste like ass. example_title: "offensive 1" - text: If you wanna look like a badass, have drama on social media example_title: "irony 1" - text: Whoever just unfollowed me you a bitch example_title: "hate 1" - text: I love swimming for the same reason I love meditating...the feeling of weightlessness. example_title: "emotion 1" - text: Beautiful sunset last night from the pontoon @TupperLakeNY example_title: "emoji 1" --- # cardiffnlp/twitter-xlm-roberta-base-sentiment-multilingual This model is a fine-tuned version of [cardiffnlp/twitter-xlm-roberta-base](https://huggingface.co/cardiffnlp/twitter-xlm-roberta-base) on the [`cardiffnlp/tweet_sentiment_multilingual (all)`](https://huggingface.co/datasets/cardiffnlp/tweet_sentiment_multilingual) via [`tweetnlp`](https://github.com/cardiffnlp/tweetnlp). Training split is `train` and parameters have been tuned on the validation split `validation`. Following metrics are achieved on the test split `test` ([link](https://huggingface.co/cardiffnlp/twitter-xlm-roberta-base-sentiment-multilingual/raw/main/metric.json)). - F1 (micro): 0.6931034482758621 - F1 (macro): 0.692628774202147 - Accuracy: 0.6931034482758621 ### Usage Install tweetnlp via pip. ```shell pip install tweetnlp ``` Load the model in python. ```python import tweetnlp model = tweetnlp.Classifier("cardiffnlp/twitter-xlm-roberta-base-sentiment-multilingual", max_length=128) model.predict('Get the all-analog Classic Vinyl Edition of "Takin Off" Album from {@herbiehancock@} via {@bluenoterecords@} link below {{URL}}') ``` ### Reference ``` @inproceedings{dimosthenis-etal-2022-twitter, title = "{T}witter {T}opic {C}lassification", author = "Antypas, Dimosthenis and Ushio, Asahi and Camacho-Collados, Jose and Neves, Leonardo and Silva, Vitor and Barbieri, Francesco", booktitle = "Proceedings of the 29th International Conference on Computational Linguistics", month = oct, year = "2022", address = "Gyeongju, Republic of Korea", publisher = "International Committee on Computational Linguistics" } ```
[ -0.2639119327068329, -0.46641647815704346, 0.14637286961078644, 0.4994043707847595, -0.4078123867511749, 0.32751044631004333, -0.5829217433929443, -0.49905580282211304, 0.5627414584159851, 0.2841472327709198, -0.7813514471054077, -0.8925005197525024, -0.5995632410049438, 0.13561253249645233, -0.07859993726015091, 1.0202091932296753, -0.0943947285413742, 0.3966839611530304, 0.21828795969486237, -0.5784411430358887, -0.1465243250131607, -0.45157644152641296, -0.6043888330459595, -0.13773338496685028, 0.4599660634994507, 0.24888630211353302, 0.4516163468360901, 0.2169705629348755, 0.43592098355293274, 0.25077447295188904, -0.18035118281841278, 0.11732065677642822, -0.5117523074150085, 0.12426947057247162, 0.028788719326257706, -0.2798517048358917, -0.4542996883392334, 0.08582707494497299, 0.6497836112976074, 0.523906409740448, 0.05119217932224274, 0.2603743076324463, -0.014078129082918167, 0.4320923984050751, -0.293680340051651, 0.22039878368377686, -0.5096607208251953, -0.16742466390132904, -0.052307501435279846, -0.033830493688583374, -0.3096703588962555, -0.5053408145904541, -0.14843018352985382, -0.20519348978996277, 0.073738694190979, 0.08913304656744003, 1.1592884063720703, -0.026478169485926628, -0.24420121312141418, 0.03849541023373604, -0.6619284749031067, 0.9993526339530945, -0.8421910405158997, 0.5366633534431458, 0.1661483645439148, 0.25296586751937866, 0.15884463489055634, -0.37448644638061523, -0.47298115491867065, -0.20214666426181793, 0.029302766546607018, 0.34605759382247925, 0.012458337470889091, -0.20803780853748322, 0.06443464010953903, 0.319888174533844, -0.6814863085746765, -0.23479890823364258, -0.5027744770050049, -0.050895240157842636, 0.6415396332740784, -0.23210299015045166, 0.31135883927345276, -0.34246549010276794, -0.4196407198905945, -0.1276998370885849, -0.4665718674659729, -0.10450193285942078, 0.19135788083076477, 0.8161424398422241, -0.6167037487030029, 0.4704055190086365, 0.028653644025325775, 0.5142582058906555, -0.03421737253665924, -0.14084282517433167, 0.8533775210380554, -0.3049607276916504, -0.24850425124168396, -0.13257311284542084, 1.284873366355896, 0.21074308454990387, 0.4594716429710388, -0.1325097680091858, -0.20449230074882507, 0.0026629080530256033, -0.24170272052288055, -0.7121546268463135, 0.0453263521194458, 0.4193990230560303, -0.32836994528770447, -0.2394813895225525, 0.10825023800134659, -0.595439612865448, 0.07776925712823868, -0.22804436087608337, 0.4737776219844818, -0.7702434062957764, -0.5866122245788574, 0.16522543132305145, -0.04720243066549301, -0.022776661440730095, 0.0545397624373436, -0.6166689991950989, -0.0924704447388649, 0.5644181966781616, 0.9070494771003723, -0.07827761769294739, -0.3593234121799469, -0.237370565533638, -0.01591675914824009, -0.3152434825897217, 0.5380749106407166, -0.28240177035331726, -0.2971166968345642, 0.1192847341299057, 0.01747972145676613, -0.3459792137145996, -0.38045820593833923, 0.8360292911529541, -0.32517847418785095, 0.47864270210266113, -0.2233540564775467, -0.4883729815483093, -0.015237033367156982, 0.5266421437263489, -0.5378884077072144, 1.0561469793319702, 0.458328515291214, -0.9080134630203247, 0.32702168822288513, -0.7332161664962769, -0.3440534472465515, -0.13400103151798248, 0.1295660138130188, -0.3432312607765198, -0.011325962841510773, 0.15490339696407318, 0.35032573342323303, -0.2815716564655304, 0.043685268610715866, -0.6537145972251892, -0.17357242107391357, 0.052835557609796524, -0.01910991035401821, 1.2648439407348633, 0.1997828632593155, -0.24782663583755493, -0.022872697561979294, -0.924079954624176, 0.3507569432258606, 0.07202565670013428, -0.3877756595611572, -0.09645376354455948, -0.39539384841918945, 0.5939521789550781, 0.4959035813808441, 0.16833515465259552, -0.7751073241233826, 0.18983972072601318, -0.4832952618598938, 0.3144736886024475, 0.4721450209617615, -0.04670339077711105, 0.3059667646884918, -0.38659048080444336, 0.6823483109474182, 0.09998331218957901, 0.25185394287109375, 0.17714720964431763, -0.44896242022514343, -0.5031428337097168, -0.4171261787414551, 0.49094727635383606, 0.6486433744430542, -0.5681985020637512, 0.5118967294692993, -0.41211995482444763, -0.5595265030860901, -0.6544995307922363, -0.06775427609682083, 0.3526436686515808, 0.16488946974277496, 0.42500290274620056, 0.13637419044971466, -0.8717920184135437, -0.6354902386665344, -0.41189491748809814, -0.41640394926071167, 0.18759018182754517, 0.3062645494937897, 0.375032901763916, -0.40083837509155273, 0.7195072174072266, -0.23888373374938965, -0.3191309869289398, -0.45460858941078186, 0.14342732727527618, 0.4537253975868225, 0.4950827658176422, 0.8296793103218079, -0.7720998525619507, -1.0126404762268066, -0.07679017633199692, -0.6304876208305359, -0.3199639916419983, 0.09131777286529541, -0.25489160418510437, 0.550757884979248, 0.17079338431358337, -0.7877567410469055, 0.07615099102258682, 0.4998179078102112, -0.30015572905540466, 0.4552065432071686, 0.23103171586990356, 0.26164475083351135, -1.5269256830215454, -0.13442645967006683, 0.2327779084444046, -0.31243252754211426, -0.451764315366745, 0.12701824307441711, 0.10155759006738663, 0.36611077189445496, -0.5430729389190674, 0.6447216272354126, -0.3196866512298584, 0.2611735761165619, 0.026847783476114273, -0.01210088562220335, -0.059337303042411804, 0.3809124827384949, -0.11400993913412094, 0.5090357661247253, 0.5521523356437683, -0.02736605703830719, 0.27728843688964844, 0.1407577246427536, -0.20554058253765106, 0.423746794462204, -0.5609878301620483, -0.13699527084827423, 0.15120652318000793, 0.09351933002471924, -1.0671913623809814, -0.048673953860998154, 0.3488360643386841, -0.817619264125824, 0.6640598773956299, -0.2714037597179413, -0.7681861519813538, -0.41339635848999023, -0.460417777299881, 0.3518853485584259, 0.6037298440933228, -0.4353359043598175, 0.6326538324356079, 0.31925565004348755, 0.16202296316623688, -0.686390221118927, -0.8464569449424744, 0.10058547556400299, -0.3140765428543091, -0.8115708231925964, 0.1974036693572998, -0.23636166751384735, -0.2874019742012024, -0.1391676813364029, 0.04849907010793686, -0.09254341572523117, -0.22700121998786926, 0.040054939687252045, 0.3325307071208954, -0.26256847381591797, 0.07458239793777466, -0.2741585671901703, 0.06212782859802246, -0.030445480719208717, -0.6237757802009583, 0.7415907979011536, -0.11290068179368973, 0.10130871832370758, -0.33737510442733765, 0.2810390889644623, 0.5343882441520691, 0.026658574119210243, 0.8957127928733826, 0.9900709390640259, -0.3139156401157379, -0.2634493410587311, -0.5446034073829651, 0.053055986762046814, -0.4054596424102783, 0.3625858426094055, -0.3656211793422699, -0.7649708390235901, 0.6201372146606445, 0.2800913453102112, -0.1478876918554306, 0.7760420441627502, 0.5943689942359924, -0.09129185974597931, 1.115174412727356, 0.5622952580451965, -0.33218100666999817, 0.3679117262363434, -0.7075756788253784, 0.22046910226345062, -0.6015297174453735, -0.0628022849559784, -0.6545146703720093, -0.06273224204778671, -1.097200632095337, -0.274111807346344, 0.13961903750896454, 0.10357046127319336, -0.5079623460769653, 0.38962382078170776, -0.37799859046936035, 0.21144676208496094, 0.5212769508361816, 0.1774846762418747, 0.07654236257076263, 0.08433464914560318, -0.33337870240211487, -0.17639502882957458, -0.4805764853954315, -0.3886973261833191, 1.0817570686340332, 0.27801746129989624, 0.5991875529289246, 0.2671828269958496, 0.7407035827636719, 0.04326301068067551, 0.20307205617427826, -0.7148700952529907, 0.43610408902168274, -0.31982171535491943, -0.6705840229988098, -0.059052471071481705, -0.674922525882721, -0.5103453993797302, -0.03959168493747711, -0.10936185717582703, -0.7898864150047302, -0.0750856101512909, -0.2710227072238922, -0.05810961127281189, 0.36951667070388794, -0.4694959223270416, 0.7093600630760193, -0.18472878634929657, -0.2074039727449417, 0.10034515708684921, -0.5366475582122803, 0.26812559366226196, -0.12363315373659134, 0.36618533730506897, -0.2934105098247528, -0.07544925063848495, 0.7090610861778259, -0.46566376090049744, 0.733570396900177, -0.13650956749916077, -0.017457734793424606, 0.0015279403887689114, -0.019388560205698013, 0.14825089275836945, 0.19647595286369324, -0.2821570336818695, 0.3655395209789276, 0.06960487365722656, -0.4447861313819885, -0.25580137968063354, 0.884628415107727, -1.1003705263137817, -0.30040645599365234, -0.5421692728996277, -0.577853798866272, -0.4162519872188568, 0.3680921196937561, 0.6393980979919434, 0.3724299967288971, -0.2221551388502121, 0.14571437239646912, 0.4194335341453552, -0.14223521947860718, 0.33671706914901733, 0.30888256430625916, -0.3394697308540344, -0.5847867131233215, 0.5972301363945007, 0.20374827086925507, 0.2914760708808899, 0.6003918051719666, 0.4449702203273773, -0.47552311420440674, -0.5337392091751099, -0.3976950943470001, 0.5013204216957092, -0.6883551478385925, -0.2794881761074066, -0.7190470695495605, -0.3827146589756012, -0.690078854560852, 0.18374919891357422, -0.2995474338531494, -0.807117223739624, -0.32154810428619385, -0.18679402768611908, 0.5390835404396057, 0.6095914244651794, -0.36031994223594666, 0.32100698351860046, -0.7771924138069153, 0.11666522920131683, -0.3002721667289734, 0.3227652907371521, -0.22462111711502075, -0.8980429768562317, -0.481974720954895, 0.30079951882362366, -0.29721158742904663, -0.7789431214332581, 0.6987087726593018, 0.34357696771621704, 0.24170655012130737, 0.3352710008621216, 0.11099904030561447, 0.4857468008995056, -0.280065655708313, 0.7838757634162903, 0.28640517592430115, -0.7499864101409912, 0.5304189324378967, -0.7258051037788391, 0.2871776223182678, 0.6051651239395142, 0.5453264117240906, -0.5733776092529297, -0.7533296942710876, -0.6511768102645874, -0.961166501045227, 0.8866119384765625, 0.14507956802845, 0.28462618589401245, -0.08137867599725723, 0.20444217324256897, -0.012502163648605347, 0.20087580382823944, -0.9389314651489258, -0.5652676820755005, -0.1709904968738556, -0.5102888941764832, -0.3227185606956482, -0.3384668529033661, -0.08678538352251053, -0.39371222257614136, 0.9736955165863037, 0.11286941915750504, 0.1369856745004654, -0.04688551649451256, 0.06582081317901611, -0.26949501037597656, 0.1688356101512909, 0.4422105550765991, 0.6582744717597961, -0.7168502807617188, -0.31756725907325745, -0.035614777356386185, -0.5127607583999634, -0.018475256860256195, 0.13355635106563568, -0.2928159534931183, 0.3706381320953369, 0.5275891423225403, 0.8560004830360413, 0.06162598356604576, -0.25743797421455383, 0.5309929251670837, -0.15661770105361938, -0.3234495222568512, -0.5208590030670166, -0.10447553545236588, 0.2556445300579071, 0.15753191709518433, 0.4124099314212799, 0.2781328856945038, -0.15180754661560059, -0.4766634404659271, 0.1772536188364029, 0.2791358232498169, -0.6703047752380371, -0.5123831033706665, 0.6759385466575623, -0.17668595910072327, -0.27171266078948975, 0.34560254216194153, -0.3497365713119507, -0.852362871170044, 0.5493109822273254, 0.3802105188369751, 1.1647998094558716, -0.17897522449493408, 0.1825515627861023, 0.649038553237915, 0.3008115589618683, -0.03856712952256203, 0.8017169833183289, 0.18326310813426971, -0.8213475346565247, -0.2905772626399994, -0.7667595744132996, -0.06997799128293991, 0.1024889275431633, -0.6408072113990784, 0.43743324279785156, -0.37539443373680115, -0.22879408299922943, 0.10075828433036804, 0.22906813025474548, -0.6078004837036133, 0.37043142318725586, 0.018115142360329628, 1.220154047012329, -0.9619730114936829, 0.9275762438774109, 0.7508559226989746, -0.6344574093818665, -1.1002955436706543, 0.26420557498931885, -0.09784187376499176, -0.7029973864555359, 0.8790265321731567, 0.21757715940475464, 0.1869877576828003, -0.13947650790214539, -0.5060892701148987, -0.800814151763916, 0.7334071397781372, 0.3214353024959564, -0.33254849910736084, 0.30791395902633667, 0.38898715376853943, 0.7511016726493835, -0.46321970224380493, 0.6017007827758789, 0.4161222577095032, 0.4591149091720581, 0.4359799027442932, -1.0043314695358276, -0.15087909996509552, -0.43366000056266785, -0.06021413579583168, 0.15669529139995575, -0.8709516525268555, 1.06364107131958, -0.09257534146308899, 0.05781567096710205, 0.1288158893585205, 0.4643988013267517, 0.3430190086364746, 0.0934867337346077, 0.44633805751800537, 0.8340287208557129, 0.45420601963996887, -0.369098037481308, 1.078108787536621, -0.47304636240005493, 0.7470254898071289, 1.004424810409546, -0.17307789623737335, 0.9878892302513123, 0.4230666756629944, -0.3277713656425476, 0.5090585947036743, 0.8957021236419678, 0.12616728246212006, 0.7028448581695557, -0.04927976056933403, -0.19469286501407623, -0.1377684772014618, -0.0824371874332428, -0.4003363847732544, 0.44827327132225037, 0.12618252635002136, -0.36028724908828735, -0.0011956461239606142, -0.12402033805847168, 0.2744654417037964, -0.13268589973449707, -0.1915750801563263, 0.5712544322013855, 0.1630518138408661, -0.618087887763977, 0.9007421135902405, 0.06535978615283966, 0.9339244961738586, -0.48919588327407837, 0.3731350302696228, -0.18615885078907013, 0.37553372979164124, -0.22195328772068024, -0.6905770897865295, 0.28437334299087524, -0.1197708323597908, -0.2752806842327118, -0.21280859410762787, 0.441284716129303, -0.6499435901641846, -1.0637240409851074, 0.8766909241676331, 0.5334622859954834, 0.018150851130485535, 0.015626076608896255, -1.0389983654022217, 0.08201315253973007, 0.32298973202705383, -0.48253849148750305, 0.0612795315682888, 0.5590121150016785, 0.12502919137477875, 0.4913206696510315, 0.4736573398113251, 0.5772624015808105, -0.04355185851454735, 0.5472229719161987, 0.7094118595123291, -0.5631968379020691, -0.49307096004486084, -0.9341975450515747, 0.3690541386604309, -0.07014725357294083, -0.3192794620990753, 0.877213716506958, 0.7012841105461121, 1.000798225402832, 0.016881810501217842, 0.9828861355781555, -0.18166272342205048, 1.0083110332489014, -0.3003847002983093, 0.7820852994918823, -0.9316366910934448, 0.24796833097934723, -0.35883069038391113, -0.7767900824546814, -0.44902193546295166, 0.39629819989204407, -0.2223498523235321, 0.5326744318008423, 0.7713510394096375, 0.7727820873260498, -0.24787090718746185, -0.061476632952690125, 0.1966393142938614, 0.548587441444397, 0.14493697881698608, 0.4760534167289734, 0.5995581150054932, -0.6671915054321289, 0.46498405933380127, -0.6015032529830933, -0.16345633566379547, -0.11437137424945831, -0.8303001523017883, -1.0788254737854004, -0.5879655480384827, -0.3210904598236084, -0.8751217722892761, -0.06142725795507431, 1.234075903892517, 0.6445631384849548, -1.1123952865600586, -0.3781466484069824, 0.09539139270782471, 0.0297770407050848, 0.03872867301106453, -0.255729079246521, 0.5365427136421204, -0.2807740569114685, -0.8382275700569153, -0.022458640858530998, 0.1574433296918869, 0.05801261588931084, -0.07065360248088837, -0.11821692436933517, -0.4034470021724701, -0.08085315674543381, 0.4113907814025879, 0.021272020414471626, -0.5865464210510254, -0.11359646916389465, 0.1925586760044098, -0.3017793297767639, 0.2756967544555664, 0.24474680423736572, -0.2895027995109558, 0.11504324525594711, 0.7106468081474304, 0.05846920609474182, 0.41686099767684937, -0.14033283293247223, 0.49857428669929504, -0.8280223608016968, 0.2446005493402481, 0.39495494961738586, 0.6628056764602661, 0.5931269526481628, -0.23997008800506592, 0.612837016582489, 0.3507710099220276, -0.3934863805770874, -0.9575802087783813, -0.17329451441764832, -1.1297401189804077, -0.14755256474018097, 1.5089651346206665, -0.11958226561546326, -0.32402873039245605, 0.18352249264717102, 0.02650154009461403, 0.44336527585983276, -0.5240861177444458, 0.7647789716720581, 0.583271861076355, 0.3668764531612396, -0.17487427592277527, -0.5466790795326233, 0.4946969449520111, 0.24258297681808472, -0.43019330501556396, -0.17047087848186493, 0.15295416116714478, 0.4539124071598053, 0.14873938262462616, 0.6654068827629089, -0.15980173647403717, 0.23672518134117126, -0.3781939148902893, 0.26085641980171204, 0.1168469712138176, -0.06291157752275467, -0.2833828330039978, -0.034900471568107605, -0.06859249621629715, -0.3322385251522064 ]
TheBloke/MythoMax-L2-13B-GPTQ
TheBloke
"2023-09-27T12:45:40Z"
39,985
92
transformers
[ "transformers", "safetensors", "llama", "text-generation", "en", "base_model:Gryphe/MythoMax-L2-13b", "license:other", "text-generation-inference", "4-bit", "region:us" ]
text-generation
"2023-08-11T07:27:24Z"
--- language: - en license: other model_name: MythoMax L2 13B base_model: Gryphe/MythoMax-L2-13b inference: false model_creator: Gryphe model_type: llama prompt_template: '``` {system_message} ### Instruction: {prompt} (For roleplay purposes, I suggest the following - Write <CHAR NAME>''s next reply in a chat between <YOUR NAME> and <CHAR NAME>. Write a single reply only.) ### Response: ``` ' 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 --> # MythoMax L2 13B - GPTQ - Model creator: [Gryphe](https://huggingface.co/Gryphe) - Original model: [MythoMax L2 13B](https://huggingface.co/Gryphe/MythoMax-L2-13b) <!-- description start --> ## Description This repo contains GPTQ model files for [Gryphe's MythoMax L2 13B](https://huggingface.co/Gryphe/MythoMax-L2-13b). 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/MythoMax-L2-13B-AWQ) * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/MythoMax-L2-13B-GPTQ) * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/MythoMax-L2-13B-GGUF) * [Gryphe's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/Gryphe/MythoMax-L2-13b) <!-- repositories-available end --> <!-- prompt-template start --> ## Prompt template: Custom ``` {system_message} ### Instruction: {prompt} (For roleplay purposes, I suggest the following - Write <CHAR NAME>'s next reply in a chat between <YOUR NAME> and <CHAR NAME>. Write a single reply only.) ### Response: ``` <!-- prompt-template end --> <!-- licensing start --> ## Licensing The creator of the source model has listed its license as `other`, and this quantization has therefore used that same license. As this model is based on Llama 2, it is also subject to the Meta Llama 2 license terms, and the license files for that are additionally included. It should therefore be considered as being claimed to be licensed under both licenses. I contacted Hugging Face for clarification on dual licensing but they do not yet have an official position. Should this change, or should Meta provide any feedback on this situation, I will update this section accordingly. In the meantime, any questions regarding licensing, and in particular how these two licenses might interact, should be directed to the original model repository: [Gryphe's MythoMax L2 13B](https://huggingface.co/Gryphe/MythoMax-L2-13b). <!-- licensing 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/MythoMax-L2-13B-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/MythoMax-L2-13B-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/MythoMax-L2-13B-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/MythoMax-L2-13B-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/MythoMax-L2-13B-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/MythoMax-L2-13B-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/MythoMax-L2-13B-GPTQ:main` - With Git, you can clone a branch with: ``` git clone --single-branch --branch main https://huggingface.co/TheBloke/MythoMax-L2-13B-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/MythoMax-L2-13B-GPTQ`. - To download from a specific branch, enter for example `TheBloke/MythoMax-L2-13B-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: `MythoMax-L2-13B-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/MythoMax-L2-13B-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'''Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: {prompt} ### Response: ''' 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: Gryphe's MythoMax L2 13B An improved, potentially even perfected variant of MythoMix, my [MythoLogic-L2](https://huggingface.co/Gryphe/MythoLogic-L2-13b) and [Huginn](https://huggingface.co/The-Face-Of-Goonery/Huginn-13b-FP16) merge using a highly experimental tensor type merge technique. The main difference with MythoMix is that I allowed more of Huginn to intermingle with the single tensors located at the front and end of a model, resulting in increased coherency across the entire structure. The script and the acccompanying templates I used to produce both can [be found here](https://github.com/Gryphe/BlockMerge_Gradient/tree/main/YAML). This model is proficient at both roleplaying and storywriting due to its unique nature. Quantized models are available from TheBloke: [GGML](https://huggingface.co/TheBloke/MythoMax-L2-13B-GGML) - [GPTQ](https://huggingface.co/TheBloke/MythoMax-L2-13B-GPTQ) (You're the best!) ## Model details The idea behind this merge is that each layer is composed of several tensors, which are in turn responsible for specific functions. Using MythoLogic-L2's robust understanding as its input and Huginn's extensive writing capability as its output seems to have resulted in a model that exceeds at both, confirming my theory. (More details to be released at a later time) This type of merge is incapable of being illustrated, as each of its 363 tensors had an unique ratio applied to it. As with my prior merges, gradients were part of these ratios to further finetune its behaviour. ## Prompt Format This model primarily uses Alpaca formatting, so for optimal model performance, use: ``` <System prompt/Character Card> ### Instruction: Your instruction or question here. For roleplay purposes, I suggest the following - Write <CHAR NAME>'s next reply in a chat between <YOUR NAME> and <CHAR NAME>. Write a single reply only. ### Response: ``` --- license: other ---
[ -0.48891139030456543, -0.6563839912414551, 0.1863870471715927, 0.18074041604995728, -0.3377228379249573, -0.083676278591156, 0.09860135614871979, -0.5917788743972778, 0.252157986164093, 0.3930060863494873, -0.5964580178260803, -0.48755428194999695, -0.40030860900878906, -0.0826851949095726, -0.23587051033973694, 1.1351197957992554, 0.08573684096336365, -0.34241577982902527, -0.17785994708538055, -0.3990895748138428, -0.2790767252445221, -0.4960114061832428, -0.7324380278587341, -0.21980680525302887, 0.4072743058204651, 0.14486350119113922, 0.9414659738540649, 0.6290929317474365, 0.17955972254276276, 0.29055729508399963, -0.13701815903186798, -0.011252159252762794, -0.5024060010910034, -0.18889230489730835, 0.1644018143415451, -0.3153633773326874, -0.6475510001182556, 0.18258200585842133, 0.4762876033782959, 0.1558394879102707, -0.3992612063884735, 0.2933090031147003, 0.05329837277531624, 0.592865526676178, -0.43182313442230225, 0.16622287034988403, -0.2810647189617157, 0.08150659501552582, -0.164335697889328, 0.1715078353881836, -0.1006367951631546, -0.5149086117744446, 0.11849098652601242, -0.8851996064186096, 0.10904183983802795, 0.05572037398815155, 1.1214616298675537, 0.19326438009738922, -0.6163496375083923, 0.14120113849639893, -0.32305631041526794, 0.6044604778289795, -0.9579054117202759, 0.3180590271949768, 0.5231103897094727, 0.22570215165615082, -0.10770978033542633, -0.9065402150154114, -0.5665140748023987, -0.05905057117342949, -0.22704282402992249, 0.2912836968898773, -0.4949651062488556, -0.0042762248776853085, 0.4682692885398865, 0.7252055406570435, -0.8631653785705566, -0.11298657953739166, -0.32688385248184204, -0.25506719946861267, 0.859369158744812, 0.1722240298986435, 0.33942052721977234, -0.20757544040679932, -0.4056640863418579, -0.42248111963272095, -0.6344077587127686, 0.09259171783924103, 0.3343857526779175, -0.016024399548768997, -0.6423227190971375, 0.5004799365997314, -0.22036433219909668, 0.4786529839038849, 0.15277402102947235, -0.2786906361579895, 0.4430585503578186, -0.5537036657333374, -0.44320034980773926, -0.33066728711128235, 1.1931967735290527, 0.4824351370334625, -0.21943317353725433, 0.2314588576555252, -0.029514212161302567, -0.062043942511081696, -0.06210078299045563, -0.948543131351471, -0.35720887780189514, 0.3840610384941101, -0.5291174054145813, -0.30922064185142517, -0.12961414456367493, -0.7395288348197937, -0.15042278170585632, -0.10407445579767227, 0.49298375844955444, -0.5689612030982971, -0.4770438075065613, 0.11021415144205093, -0.39456191658973694, 0.4316699206829071, 0.3046466112136841, -0.5813225507736206, 0.5612221956253052, 0.3675425350666046, 0.7168914675712585, 0.11701854318380356, -0.11618148535490036, -0.20476093888282776, 0.07577386498451233, -0.13189543783664703, 0.3826782703399658, -0.2266312837600708, -0.4145130217075348, -0.3783055543899536, 0.18962296843528748, 0.054697830229997635, -0.26362690329551697, 0.5509835481643677, -0.30135950446128845, 0.528782844543457, -0.48849645256996155, -0.5829579830169678, -0.40642255544662476, 0.026424946263432503, -0.646798312664032, 1.2262908220291138, 0.49064895510673523, -0.8309544324874878, 0.21393983066082, -0.47184696793556213, -0.11319142580032349, 0.01225230097770691, 0.008911190554499626, -0.4903906285762787, -0.11987587809562683, 0.12655751407146454, 0.28244295716285706, -0.4471294581890106, 0.09194778650999069, -0.3722664713859558, -0.17965662479400635, 0.12943783402442932, -0.43579331040382385, 1.2456613779067993, 0.2159697413444519, -0.40806084871292114, -0.10399725288152695, -0.6607982516288757, 0.1398008167743683, 0.4217039942741394, -0.12801316380500793, -0.10820679366588593, -0.2046029269695282, 0.1354641169309616, 0.24915683269500732, 0.20198878645896912, -0.3142804801464081, 0.4660114645957947, -0.1851833015680313, 0.5911190509796143, 0.5861567258834839, 0.022021956741809845, 0.20326825976371765, -0.4180468022823334, 0.5448938608169556, -0.004799481015652418, 0.5854634642601013, 0.15558497607707977, -0.7827003002166748, -0.5798503756523132, -0.36342278122901917, 0.3573378026485443, 0.6360411047935486, -0.6002548336982727, 0.429196834564209, -0.10835567116737366, -0.7056849002838135, -0.3725741505622864, -0.1287716180086136, 0.43582600355148315, 0.398040771484375, 0.4440344274044037, -0.4510512948036194, -0.307576447725296, -0.9590204954147339, 0.09638798981904984, -0.4701998233795166, 0.008369446732103825, 0.5203776955604553, 0.6455151438713074, -0.2341073602437973, 0.7267780900001526, -0.6600971221923828, -0.06072254478931427, 0.04639512300491333, 0.09433017671108246, 0.35952064394950867, 0.5297695994377136, 0.8726696968078613, -0.7794116139411926, -0.5731314420700073, -0.038540277630090714, -0.633397102355957, -0.0974428728222847, 0.0014381703222170472, -0.3160739243030548, 0.2726294696331024, -0.08318357169628143, -1.1548889875411987, 0.6663106083869934, 0.5321444272994995, -0.6699996590614319, 0.8176555633544922, -0.18495719134807587, 0.19845141470432281, -1.1315406560897827, 0.08286609500646591, 0.13060837984085083, -0.33621081709861755, -0.43611887097358704, 0.11732419580221176, -0.03817564994096756, 0.15358641743659973, -0.3182859718799591, 0.657581627368927, -0.4705866575241089, -0.05436930060386658, 0.06498533487319946, -0.1617237627506256, 0.2194364070892334, 0.5136007070541382, -0.10377822071313858, 0.8177095055580139, 0.5630617141723633, -0.3934365510940552, 0.6263817548751831, 0.4016169607639313, -0.003329166676849127, 0.3851032555103302, -0.8406994342803955, 0.14541669189929962, 0.18625977635383606, 0.43884432315826416, -0.9042114019393921, -0.29002511501312256, 0.5995468497276306, -0.5792168974876404, 0.4194689989089966, -0.36323586106300354, -0.48195183277130127, -0.4699113070964813, -0.5258715152740479, 0.37784793972969055, 0.8799228072166443, -0.3854040801525116, 0.41942283511161804, 0.4367496967315674, 0.09274867922067642, -0.6805925369262695, -0.6423171162605286, -0.13206671178340912, -0.41343843936920166, -0.6193141341209412, 0.4218164086341858, -0.11021464318037033, -0.0686504989862442, 0.10090788453817368, -0.053498316556215286, -0.12833085656166077, -0.11925028264522552, 0.34651315212249756, 0.35591983795166016, -0.16990353167057037, -0.13141897320747375, 0.1521087884902954, -0.035036928951740265, 0.039002593606710434, -0.36342108249664307, 0.37563079595565796, -0.22437457740306854, 0.0246194526553154, -0.5052707195281982, 0.23955212533473969, 0.5693809986114502, -0.026453282684087753, 0.7124716639518738, 0.760505735874176, -0.3795391917228699, 0.1811475157737732, -0.5353811979293823, -0.12853503227233887, -0.46513229608535767, 0.1142006516456604, -0.2381124198436737, -0.8001840114593506, 0.5642206072807312, 0.4172470271587372, 0.11694029718637466, 0.7832799553871155, 0.46836867928504944, -0.026792941614985466, 0.9396388530731201, 0.41461360454559326, -0.22135008871555328, 0.2996313273906708, -0.4651142358779907, -0.21260158717632294, -0.7525714635848999, -0.17455367743968964, -0.31179025769233704, -0.21939004957675934, -0.8112973570823669, -0.5759667754173279, 0.3598470687866211, 0.21522167325019836, -0.6552409529685974, 0.6313292980194092, -0.6313194632530212, 0.18704597651958466, 0.6439206004142761, 0.2550923824310303, 0.20527711510658264, 0.10447309911251068, -0.15725743770599365, 0.06292291730642319, -0.5867950916290283, -0.2528032660484314, 1.1241103410720825, 0.411731481552124, 0.5869554877281189, 0.2317667007446289, 0.44191062450408936, 0.13050028681755066, 0.27485406398773193, -0.5121079683303833, 0.5359179377555847, 0.04109453037381172, -0.7532576322555542, -0.28767651319503784, -0.6262474060058594, -0.7755721211433411, 0.28191426396369934, -0.1338530033826828, -0.8330663442611694, 0.39330974221229553, 0.09281088411808014, -0.3386351764202118, 0.3116490840911865, -0.6938255429267883, 1.0037909746170044, -0.08282368630170822, -0.4581695795059204, -0.15828032791614532, -0.8008599877357483, 0.4336683750152588, 0.15699835121631622, -0.01409949455410242, -0.12695619463920593, -0.19093823432922363, 0.782095730304718, -0.829254686832428, 0.73281329870224, -0.23720182478427887, -0.04311174526810646, 0.5554179549217224, -0.09649257361888885, 0.5767034888267517, 0.1981469839811325, 0.0823163166642189, 0.33649033308029175, 0.4120851457118988, -0.4175823926925659, -0.3978732228279114, 0.5152899622917175, -0.9726009368896484, -0.49300119280815125, -0.5466815829277039, -0.4918982982635498, -0.05992817133665085, 0.0489826463162899, 0.4870910346508026, 0.4295674264431, -0.007884093560278416, 0.08617008477449417, 0.720462441444397, -0.3135770559310913, 0.34615394473075867, 0.3277675211429596, -0.28273048996925354, -0.6346839070320129, 0.7709113359451294, 0.047192465513944626, 0.27014410495758057, 0.19090691208839417, 0.1473667323589325, -0.535248875617981, -0.37785404920578003, -0.6080901622772217, 0.45793697237968445, -0.4290366768836975, -0.39035627245903015, -0.5708097219467163, -0.23226943612098694, -0.40814924240112305, 0.30655115842819214, -0.4074402153491974, -0.7669914960861206, -0.4047764241695404, -0.09675046056509018, 0.8956610560417175, 0.4239458441734314, -0.2893822491168976, 0.2969479560852051, -0.7459074854850769, 0.2274174988269806, 0.41896992921829224, 0.26046833395957947, -0.13338665664196014, -0.7353633046150208, -0.0018013283843174577, 0.14996550977230072, -0.4758613109588623, -1.0035758018493652, 0.5748566389083862, 0.1402355134487152, 0.41777023673057556, 0.4400132894515991, 0.05945315584540367, 0.7803611755371094, -0.250143438577652, 0.9438278079032898, 0.34564048051834106, -0.8552035689353943, 0.4968152940273285, -0.47496479749679565, 0.0880800113081932, 0.37703973054885864, 0.6102436780929565, -0.4283711612224579, -0.2743346691131592, -0.819448709487915, -0.7215135097503662, 0.5472849011421204, 0.42946457862854004, 0.014454222284257412, 0.23630288243293762, 0.6086552739143372, 0.03530652076005936, 0.16605731844902039, -0.8651599884033203, -0.6970006227493286, -0.35460931062698364, -0.09275061637163162, 0.0957237184047699, -0.21201525628566742, -0.4316273331642151, -0.6798153519630432, 0.8878203630447388, -0.14583905041217804, 0.6316501498222351, 0.214906707406044, 0.22445470094680786, -0.0797567069530487, 0.031892403960227966, 0.3584749400615692, 0.6660904884338379, -0.2654799222946167, -0.20756706595420837, 0.17357902228832245, -0.7823835611343384, 0.12248300015926361, 0.42681753635406494, -0.1075654849410057, -0.1447465866804123, 0.18537476658821106, 0.8751314282417297, -0.10194354504346848, -0.3119567334651947, 0.49148425459861755, -0.26967480778694153, -0.3939909040927887, -0.19263842701911926, 0.19202329218387604, 0.2273949682712555, 0.41517511010169983, 0.3240742087364197, -0.2066565752029419, 0.3198077976703644, -0.4993440508842468, 0.19177673757076263, 0.5309572815895081, -0.22571271657943726, -0.3844195604324341, 0.8185340166091919, -0.11459709703922272, 0.19219546020030975, 0.6586772799491882, -0.27877211570739746, -0.3753977417945862, 0.7780223488807678, 0.5076302886009216, 0.7081466913223267, -0.23664872348308563, 0.33602961897850037, 0.5556702613830566, 0.22254715859889984, -0.037277571856975555, 0.34366151690483093, -0.05726589262485504, -0.5591469407081604, -0.33006954193115234, -0.5320830941200256, -0.2517724335193634, 0.26315367221832275, -0.8320271968841553, 0.11217639595270157, -0.38757750391960144, -0.43464723229408264, -0.15215255320072174, 0.33718058466911316, -0.5004032850265503, 0.3389285206794739, 0.15544626116752625, 1.020491123199463, -0.7703161835670471, 0.8660493493080139, 0.5947701930999756, -0.39452216029167175, -1.00806725025177, -0.2453819215297699, 0.2232840657234192, -0.6565090417861938, 0.1524478942155838, -0.039278969168663025, 0.3216477334499359, -0.022508734837174416, -0.7344279289245605, -0.9491868615150452, 1.5087989568710327, 0.3281194865703583, -0.5258472561836243, -0.03296114504337311, 0.004120588768273592, 0.4123075306415558, -0.11072403192520142, 0.652157723903656, 0.600583553314209, 0.3970857262611389, 0.256533145904541, -0.987856924533844, 0.46251121163368225, -0.3806074857711792, -0.015765057876706123, 0.1727590411901474, -1.0292901992797852, 0.9296456575393677, -0.006613973528146744, -0.17979317903518677, 0.12479212880134583, 0.6271120309829712, 0.4888469874858856, 0.1348472386598587, 0.4321756064891815, 0.9667375683784485, 0.8084450364112854, -0.2990366220474243, 1.2499734163284302, -0.13793109357357025, 0.6333698630332947, 0.782041609287262, 0.0473950058221817, 0.6098703145980835, 0.245892733335495, -0.7218760848045349, 0.5014645457267761, 0.9863542318344116, -0.05286834388971329, 0.3679971396923065, -0.02616020478308201, -0.3073813319206238, -0.15707005560398102, 0.12308414280414581, -0.8499688506126404, 0.03373807296156883, 0.36877742409706116, -0.2350054830312729, 0.07366505265235901, -0.2305963933467865, 0.14198991656303406, -0.6526144742965698, -0.15755154192447662, 0.5031680464744568, 0.2988244295120239, -0.20557841658592224, 0.786935031414032, -0.10856638103723526, 0.567439615726471, -0.6161555051803589, -0.07698778063058853, -0.4369610548019409, -0.11631996929645538, -0.27935990691185, -0.8024027347564697, 0.13959763944149017, -0.21084247529506683, -0.10901438444852829, 0.014155646786093712, 0.6626253128051758, -0.16339510679244995, -0.4500550627708435, 0.35879912972450256, 0.42073553800582886, 0.2775786817073822, -0.05783583223819733, -1.1049884557724, 0.2197331041097641, 0.0026386808604002, -0.6704055070877075, 0.43779611587524414, 0.37379375100135803, 0.10507936775684357, 0.7307572364807129, 0.5408664345741272, -0.12867653369903564, -0.02376166731119156, -0.24885204434394836, 1.0195544958114624, -0.7118824124336243, -0.3172442615032196, -0.7211945652961731, 0.5994313955307007, -0.15674257278442383, -0.4907473623752594, 0.776816189289093, 0.617324709892273, 0.6533516049385071, 0.05889638140797615, 0.6906452178955078, -0.42787808179855347, 0.24869206547737122, -0.33654361963272095, 0.6619659662246704, -0.7775525450706482, 0.040792543441057205, -0.33973291516304016, -0.8027601838111877, -0.0698406845331192, 0.6123539209365845, -0.1018436923623085, 0.18086770176887512, 0.4507838487625122, 0.7974881529808044, -0.05383051186800003, 0.15202228724956512, 0.12044889479875565, 0.4247606694698334, 0.060018185526132584, 0.8641473054885864, 0.7559926509857178, -0.8895789980888367, 0.4457992911338806, -0.4394059479236603, -0.3574731945991516, -0.023615514859557152, -0.7688291072845459, -0.6952058672904968, -0.49085626006126404, -0.6716947555541992, -0.6592495441436768, -0.001976367784664035, 0.8504670858383179, 0.83903968334198, -0.6633541584014893, -0.32875949144363403, 0.012036571279168129, 0.07091578096151352, -0.3350573778152466, -0.2954097092151642, 0.3965197503566742, 0.29118385910987854, -0.600175142288208, 0.14692223072052002, 0.08044082671403885, 0.2818456292152405, -0.038208719342947006, -0.34329649806022644, -0.14853829145431519, -0.006542089395225048, 0.5953356623649597, 0.5371207594871521, -0.57160484790802, -0.15019716322422028, -0.17297787964344025, -0.11318400502204895, 0.21132723987102509, 0.284868061542511, -0.732974648475647, -0.014001542702317238, 0.42187952995300293, 0.1770668923854828, 0.8520354628562927, 0.06497930735349655, 0.3358806371688843, -0.4101746678352356, 0.11906661838293076, 0.09162290394306183, 0.2794070839881897, -0.00426947558298707, -0.5322341322898865, 0.7196687459945679, 0.5349727869033813, -0.6075917482376099, -0.7828391790390015, -0.10416185855865479, -1.2318611145019531, -0.21612830460071564, 1.1324712038040161, -0.10222981125116348, -0.2871409058570862, 0.11692924052476883, -0.24590639770030975, 0.2877866327762604, -0.41067981719970703, 0.25361061096191406, 0.4913228452205658, -0.2768585979938507, -0.4321763813495636, -0.7913677096366882, 0.6506919860839844, 0.22249434888362885, -0.8105940222740173, -0.05061230808496475, 0.621494710445404, 0.4937114119529724, 0.05327306315302849, 0.8036691546440125, -0.3000008463859558, 0.38933610916137695, 0.07440217584371567, 0.062241293489933014, 0.012898136861622334, 0.09786713868379593, -0.31225067377090454, -0.011400120332837105, -0.29468750953674316, -0.0010964868124574423 ]
caidas/swin2SR-classical-sr-x2-64
caidas
"2023-01-21T12:07:31Z"
39,825
8
transformers
[ "transformers", "pytorch", "swin2sr", "image-to-image", "vision", "arxiv:2209.11345", "license:apache-2.0", "has_space", "region:us" ]
image-to-image
"2022-12-16T14:05:18Z"
--- license: apache-2.0 tags: - vision - image-to-image inference: false --- # Swin2SR model (image super-resolution) Swin2SR model that upscales images x2. It was introduced in the paper [Swin2SR: SwinV2 Transformer for Compressed Image Super-Resolution and Restoration](https://arxiv.org/abs/2209.11345) by Conde et al. and first released in [this repository](https://github.com/mv-lab/swin2sr). # Intended use cases This model is intended for image super resolution. # Usage Refer to the [documentation](https://huggingface.co/docs/transformers/main/en/model_doc/swin2sr#transformers.Swin2SRForImageSuperResolution.forward.example).
[ -0.29081907868385315, -0.050642408430576324, -0.09770428389310837, 0.021198371425271034, -0.4382418990135193, -0.28891482949256897, 0.3101661801338196, -0.6329001784324646, 0.05523557588458061, 0.38077983260154724, -0.7130788564682007, 0.28392380475997925, -0.607236385345459, -0.3280288577079773, -0.798366129398346, 1.0361433029174805, 0.05842236429452896, 0.38358187675476074, -0.25092193484306335, -0.11984693259000778, -0.2489747256040573, -0.11576492339372635, -0.5582655072212219, -0.40878790616989136, 0.37963253259658813, 0.5176400542259216, 0.9311984777450562, 0.44328105449676514, 1.0669291019439697, 0.3673233389854431, -0.1319531947374344, -0.27414053678512573, -0.5662866234779358, 0.02615605853497982, -0.10437881946563721, -0.42220625281333923, -0.3495556712150574, -0.04720566049218178, 0.5461766123771667, 0.049979615956544876, 0.13022729754447937, 0.3933371603488922, -0.2451813817024231, 0.6950297951698303, -0.3842770755290985, -0.09487123787403107, -0.2732544243335724, 0.18238294124603271, 0.10348115116357803, 0.07973059266805649, -0.1974974274635315, -0.17475035786628723, 0.07946112751960754, -0.38500234484672546, 0.6000199317932129, -0.08818819373846054, 1.4461699724197388, -0.04875912517309189, -0.3142431080341339, 0.04143562167882919, -0.9958460927009583, 0.6920767426490784, -0.35933712124824524, 0.3321317434310913, -0.015770968049764633, 0.841007649898529, 0.15160150825977325, -1.2288342714309692, -0.5444438457489014, -0.054821692407131195, -0.339813232421875, 0.15556809306144714, -0.39762187004089355, -0.12312356382608414, 0.4038533568382263, 0.5342481732368469, -0.4559801518917084, 0.2703436017036438, -0.6791626214981079, -0.24944323301315308, 0.5665030479431152, 0.19541829824447632, 0.4341907799243927, -0.32788315415382385, -0.852189838886261, -0.004893992096185684, -0.4991673529148102, -0.19782353937625885, -0.012980584055185318, -0.04107361659407616, -0.3164260685443878, 0.6150009632110596, 0.40927430987358093, 0.3079078197479248, -0.019372928887605667, -0.028326939791440964, 0.13590069115161896, -0.3537292182445526, 0.06041376665234566, -0.409336656332016, 0.2237158864736557, 0.9066672325134277, -0.07076551020145416, 0.1847177892923355, -0.5667765736579895, 0.20698055624961853, 0.3055782914161682, -1.1559629440307617, -0.17381155490875244, -0.19028691947460175, -0.7520467638969421, -0.19627021253108978, 0.0988515242934227, -0.5574095249176025, -0.20424242317676544, -0.4004415273666382, 0.4599594175815582, -0.1104133203625679, -0.8842238783836365, -0.6264545917510986, -0.6296351552009583, 0.455862820148468, 0.4234234690666199, -0.6825239062309265, 0.4165925681591034, 0.5027045607566833, 0.9496538043022156, 0.2252199500799179, -0.20842550694942474, 0.11446046084165573, 0.09137874096632004, -0.3692217767238617, 0.9181239604949951, -0.12607206404209137, -0.5693339109420776, -0.021723579615354538, 0.05877978727221489, 0.5780156850814819, -0.43197137117385864, 0.5284241437911987, -0.8901830315589905, 0.021110542118549347, -0.11371816694736481, -0.2918819189071655, -0.13890193402767181, -0.018341129645705223, -0.6063357591629028, 1.3597078323364258, 0.839745819568634, -0.6858436465263367, 0.19268757104873657, -0.5561662912368774, -0.018167108297348022, 0.3410761058330536, 0.21998433768749237, -0.3519161641597748, 0.4795754551887512, -0.5131986141204834, 0.18369954824447632, -0.4807179272174835, -0.04650815203785896, 0.11890311539173126, -0.36591842770576477, -0.04779200628399849, 0.15124057233333588, 0.5003631114959717, 0.2403053641319275, 0.07546067982912064, 0.45335835218429565, -0.4287636876106262, 0.04746845364570618, 0.3091263175010681, 0.42956113815307617, -0.6094027757644653, -0.466818630695343, 0.4280763864517212, 0.7395637035369873, 0.4049459993839264, -0.6616870164871216, -0.025543393567204475, -0.11973676085472107, 0.7645403742790222, 0.5373749732971191, -0.3054697811603546, 0.5477928519248962, -0.2874818444252014, 0.16286006569862366, 0.09259778261184692, 0.6544942855834961, -0.22395074367523193, -0.23217470943927765, -0.9320334792137146, -0.24810834228992462, 0.6007657051086426, 0.3622351586818695, -0.5319507718086243, 0.3766111135482788, -0.4580856263637543, -1.0296965837478638, -0.25359266996383667, -0.10965918749570847, 0.40061572194099426, 0.49375253915786743, 0.45825597643852234, -0.2272530496120453, -0.9417674541473389, -1.286983847618103, 0.1414492130279541, -0.16474103927612305, -0.08590255677700043, 0.06159888580441475, 0.8853350877761841, -0.5498316884040833, 0.8028696179389954, -0.23598507046699524, -0.5074513554573059, -0.5684283375740051, 0.1212005540728569, 0.011624949984252453, 0.63739013671875, 0.5059841871261597, -1.0663414001464844, -0.5425284504890442, -0.3202100694179535, -0.6918389201164246, 0.18800139427185059, 0.06676466763019562, -0.3168667256832123, 0.2338038682937622, 0.44966113567352295, -0.7699811458587646, 0.7384271621704102, 0.8947930335998535, -0.14536423981189728, 0.9674269556999207, -0.33945950865745544, 0.035873934626579285, -1.1711183786392212, -0.02903503179550171, 0.6255453824996948, -0.4614848792552948, -0.7873361706733704, 0.7610532641410828, 0.4529135823249817, -0.215853750705719, -0.6307923793792725, 0.451555460691452, -0.6928027868270874, -0.40640175342559814, -0.5518109798431396, 0.028958912938833237, 0.044711511582136154, 0.08618765324354172, 0.20850799977779388, 0.8051552772521973, 0.4535525143146515, -0.659278392791748, 0.26329532265663147, 0.45627182722091675, -0.13512539863586426, 0.6450760364532471, -1.0846331119537354, 0.12874971330165863, -0.0904267206788063, 0.4692646861076355, -1.0669561624526978, -0.29785746335983276, -0.2289258986711502, -0.4854811728000641, 0.5591325163841248, -0.25391247868537903, -0.5988771915435791, -0.7576885223388672, -0.3124447762966156, 0.6013866662979126, 0.8295249342918396, -0.7084201574325562, 0.688285231590271, 0.5307115912437439, -0.059698767960071564, -0.002803684677928686, -1.1535905599594116, -0.0661463662981987, 0.1934160739183426, -0.7346691489219666, 0.7016242146492004, 0.1263798028230667, -0.22123360633850098, 0.19797219336032867, -0.1491207331418991, -0.06705668568611145, -0.7116668820381165, 0.4281293451786041, 0.7751986384391785, -0.1663661003112793, -0.18104496598243713, 0.08416382968425751, -0.6001771688461304, 0.030976826325058937, 0.31821420788764954, 0.3139782249927521, -0.2022145837545395, -0.04928307235240936, -0.8541284203529358, 0.5781238675117493, 0.6850544810295105, 0.2504189610481262, 0.4512273967266083, 0.3770380914211273, -0.5494464039802551, 0.23198825120925903, -0.6618059277534485, -0.45663490891456604, -0.48565542697906494, 0.44340628385543823, -0.41314697265625, -0.703843891620636, 0.8021361231803894, -0.23883000016212463, 0.0033782552927732468, 0.7001662254333496, 0.3060261607170105, -0.2096109539270401, 1.2384412288665771, 0.6308879852294922, 0.2642326354980469, 0.5920578241348267, -0.5385891199111938, 0.20023182034492493, -1.1354262828826904, -0.42733579874038696, -0.7049732208251953, -0.4326709508895874, -0.21574726700782776, -0.489423543214798, 0.28614342212677, 0.2792716324329376, -0.5092182159423828, 0.8645581007003784, -0.5034835934638977, 0.4372463524341583, 0.6089349389076233, 0.1340847909450531, 0.071648508310318, 0.1211814358830452, 0.17598678171634674, -0.5356292724609375, -0.5352873802185059, -0.2202264368534088, 0.2154390662908554, 0.5000728964805603, 0.7573708891868591, 0.24990394711494446, 0.2598060965538025, 0.5178017616271973, 0.12480533123016357, -0.8807544708251953, 0.736664891242981, -0.14036741852760315, -0.9485041499137878, -0.08642380684614182, -0.10883105546236038, -0.6768675446510315, 0.0519600510597229, -0.06166088581085205, -0.45059046149253845, 0.13821204006671906, 0.12890368700027466, 0.12110958248376846, 0.4606298804283142, -0.6327226758003235, 0.3912067711353302, -0.04354715347290039, -0.1755829155445099, -0.5058627724647522, -0.8699774146080017, 0.3845548927783966, 0.41146570444107056, 0.04611383005976677, 0.02525537647306919, -0.05193831026554108, 0.7356407642364502, -0.7059023380279541, 0.710233747959137, -0.49461278319358826, 0.16919781267642975, 0.32299086451530457, 0.32928967475891113, 0.7495971322059631, -0.07822076231241226, 0.024125074967741966, 0.48677563667297363, 0.01623459905385971, -0.3753574788570404, -0.8812147378921509, 0.785601019859314, -0.94658362865448, -0.3522900640964508, -0.2721532881259918, -0.45477381348609924, 0.4549109935760498, 0.35031038522720337, 0.49646613001823425, 0.6036967039108276, 0.047314051538705826, -0.07188349962234497, 0.5097982287406921, 0.2278616726398468, 0.3645968735218048, 0.533511221408844, -0.29884791374206543, -0.30112171173095703, 0.7997542023658752, 0.3773607313632965, 0.33714383840560913, 0.1493736356496811, 0.23396965861320496, -0.5996749997138977, -0.35524195432662964, -0.4266055226325989, 0.3381982147693634, -0.7965431809425354, -0.7994609475135803, -0.29136770963668823, -0.6438849568367004, -0.5109907984733582, -0.28864285349845886, -0.672513484954834, -0.5819516181945801, -0.34331101179122925, 0.049291472882032394, 0.4383116066455841, 0.7320438027381897, -0.45748409628868103, 0.34741678833961487, -0.8857466578483582, 0.5415027737617493, 0.27493223547935486, 0.4715748131275177, -0.056755635887384415, -1.1346523761749268, -0.13667051494121552, -0.12395903468132019, 0.008789356797933578, -0.4571083188056946, 0.3687726557254791, 0.06873100250959396, 0.6121116876602173, 0.26094216108322144, -0.016186196357011795, 0.7906602025032043, -0.31362384557724, 1.1568459272384644, 0.8238533139228821, -0.8101210594177246, 0.7622777223587036, -0.021180342882871628, 0.20064246654510498, 0.24374885857105255, 0.4348936080932617, -0.6720207333564758, 0.12671303749084473, -0.8349481225013733, -1.1592648029327393, 0.43889477849006653, 0.004889151081442833, 0.5858167409896851, 0.24522897601127625, 0.6445371508598328, 0.3100523352622986, -0.211087167263031, -0.5268180966377258, -0.6099804639816284, -0.5350664258003235, 0.2582557499408722, 0.14869920909404755, -1.1393846273422241, -0.13146933913230896, -0.6094077825546265, 0.9856467247009277, 0.10467702150344849, 0.8253135085105896, 0.2455834150314331, -0.3706028461456299, -0.3226584494113922, -0.1951688975095749, 0.6606618762016296, 0.2583135962486267, 0.007782949600368738, 0.0778183564543724, -0.21250735223293304, -0.48291999101638794, 0.17645198106765747, -0.10999144613742828, -0.2684360444545746, -0.05747459828853607, 0.27796101570129395, 0.9071995615959167, 0.24305054545402527, -0.1211867481470108, 0.603412926197052, -0.1297534853219986, -0.5364516973495483, -0.755534827709198, 0.09931738674640656, -0.19611941277980804, 0.3789461553096771, 0.5859575867652893, 0.5648469924926758, 0.2906191051006317, -0.15704555809497833, 0.10475574433803558, 0.17849139869213104, -0.801504373550415, -0.31628215312957764, 0.5405290126800537, 0.2940380573272705, -0.6843307614326477, 1.0409510135650635, -0.13610833883285522, -0.33615151047706604, 0.49936622381210327, 0.9347679018974304, 0.6030794382095337, -0.12661398947238922, 0.18777351081371307, 0.7370206713676453, 0.24045316874980927, -0.29324445128440857, 0.4004996418952942, 0.1970561444759369, -0.7460297346115112, -0.3008664846420288, -0.19217318296432495, -0.2782807946205139, 0.11978860944509506, -1.158974051475525, 0.5137491226196289, -0.36409658193588257, -0.38169220089912415, -0.010663431137800217, -0.07137181609869003, -0.4355047047138214, 0.13690172135829926, 0.007209341507405043, 1.7639598846435547, -0.7075262665748596, 0.7988519668579102, 0.7325507998466492, -0.5033027529716492, -0.8165772557258606, -0.2499052882194519, 0.031982094049453735, -0.7278243899345398, 0.540668785572052, 0.19188269972801208, -0.1800907999277115, 0.27740561962127686, -0.7761946320533752, -0.927117109298706, 1.1821765899658203, 0.03835506737232208, -0.508887767791748, 0.12218111753463745, -0.14670659601688385, 0.6349096894264221, -0.3426932692527771, 0.5758913159370422, 0.321829229593277, 0.5982513427734375, 0.3031606674194336, -0.4873338043689728, 0.14762338995933533, -0.7160578966140747, 0.830617368221283, 0.14590539038181305, -0.8687304854393005, 0.4287406802177429, -0.6832407116889954, -0.021185314282774925, 0.6647624969482422, 1.1634975671768188, 0.10171911865472794, -0.050471216440200806, 0.6757249236106873, 0.589403510093689, 0.10484640300273895, -0.24867893755435944, 0.9811708331108093, 0.033859703689813614, 0.4813990890979767, 1.0878477096557617, -0.230979323387146, 0.6940613389015198, 0.6027753353118896, -0.11200989037752151, 0.9202809929847717, 0.6304442882537842, -0.4373718798160553, 0.5710761547088623, -0.0842246562242508, -0.034630775451660156, -0.018370427191257477, -0.34479841589927673, -0.721646785736084, 0.15554381906986237, 0.5647862553596497, -0.5341387391090393, -0.284267783164978, 0.07732678204774857, -0.29471102356910706, -0.012449206784367561, -0.6181243658065796, 0.6047719120979309, -0.3434237241744995, -0.3468691408634186, 0.244249165058136, 0.025354398414492607, 0.5796595811843872, -0.731754720211029, -0.15666761994361877, -0.3688485622406006, 0.0460272878408432, -0.34768372774124146, -0.9287459254264832, 0.5993938446044922, -0.26221969723701477, -0.5239782929420471, 0.2196844220161438, 1.251433253288269, 0.03775346279144287, -0.5963285565376282, 0.4859682321548462, -0.04564925283193588, 0.3425655663013458, 0.27400046586990356, -1.0585445165634155, 0.10149797797203064, -0.36789965629577637, -0.35778239369392395, 0.5351790189743042, -0.020726628601551056, -0.02360372431576252, 0.6893386244773865, 0.4310714602470398, -0.2014819234609604, -0.22114711999893188, 0.42882266640663147, 1.097715139389038, -0.5055794715881348, -0.4478549659252167, -0.251661479473114, 0.8807591199874878, -0.3767322301864624, -0.23625676333904266, 0.7198286056518555, 0.7043315768241882, 0.5525830388069153, -0.19720125198364258, 0.897153377532959, -0.41192013025283813, 0.49962809681892395, -0.003955746069550514, 0.3201044797897339, -0.673601508140564, -0.2944784462451935, -0.2772294878959656, -0.49617376923561096, -0.5550554394721985, 0.6400231719017029, 0.03497348725795746, 0.08612433075904846, 0.3842022716999054, 1.3394001722335815, -0.04275797680020332, 0.15786387026309967, 0.489393025636673, 0.13603146374225616, 0.07449876517057419, -0.3623560070991516, 0.7981614470481873, -0.9986750483512878, 0.5478750467300415, -0.5004200339317322, -0.5302793383598328, -0.40839770436286926, -0.744929850101471, -0.5816750526428223, -0.7553482055664062, -0.46424752473831177, -0.9192618131637573, 0.0011746204691007733, 0.7475103735923767, 1.2347131967544556, -0.8123230338096619, 0.13199694454669952, -0.2521657943725586, -0.15790726244449615, -0.5140749216079712, -0.22751809656620026, 0.1871604025363922, 0.0206404197961092, -0.5273925065994263, -0.08014346659183502, 0.1908816248178482, 0.35817039012908936, -0.7179844975471497, -0.2791045308113098, 0.10781208425760269, -0.02636290341615677, 0.5499560236930847, 0.2763027846813202, -0.5276156663894653, -0.27676743268966675, -0.2574145793914795, -0.3101564645767212, 0.01414903998374939, 1.0349485874176025, -0.3069441616535187, -0.02230123057961464, 0.6580656170845032, -0.16356299817562103, 0.6081216931343079, -0.13957400619983673, 0.17510777711868286, -0.5513982176780701, 0.3979812264442444, 0.01066596619784832, 0.34260255098342896, 0.18743231892585754, -0.5044375658035278, 0.505738377571106, 0.2960123121738434, -0.6108042597770691, -0.8519508838653564, 0.3954375684261322, -1.1575645208358765, -0.32835957407951355, 1.2401413917541504, -0.1341756284236908, -0.22745561599731445, 0.04753244295716286, -0.4181060791015625, 0.4677768647670746, -0.4458228051662445, 0.5292625427246094, 0.01838756538927555, -0.11372498422861099, -0.6593263745307922, -0.2930316627025604, 0.10155468434095383, -0.1077689677476883, -0.37860965728759766, -0.08893866091966629, 0.19231200218200684, 0.26366445422172546, 0.5463325381278992, 0.23327994346618652, -0.6626255512237549, 0.48465535044670105, 0.405400812625885, 0.4590701460838318, -0.11373058706521988, -0.4862995445728302, -0.22497111558914185, 0.14216193556785583, -0.045823048800230026, 0.06052626296877861 ]
beomi/KoAlpaca-Polyglot-5.8B
beomi
"2023-09-15T01:28:17Z"
39,764
50
transformers
[ "transformers", "pytorch", "safetensors", "gpt_neox", "text-generation", "generated_from_trainer", "polyglot-ko", "gpt-neox", "KoAlpaca", "ko", "dataset:KoAlpaca-v1.1b", "base_model:EleutherAI/polyglot-ko-5.8b", "license:apache-2.0", "endpoints_compatible", "has_space", "text-generation-inference", "region:us" ]
text-generation
"2023-03-16T15:42:53Z"
--- language: - ko license: apache-2.0 tags: - generated_from_trainer - polyglot-ko - gpt-neox - KoAlpaca datasets: - KoAlpaca-v1.1b pipeline_tag: text-generation base_model: EleutherAI/polyglot-ko-5.8b model-index: - name: KoAlpaca-Polyglot-5.8B results: [] --- Update @ 2023.06.01 - Add Safetensor sharded model weight (max shard = 1GB) # KoAlpaca-Polyglot-5.8B (v1.1b) This model is a fine-tuned version of [EleutherAI/polyglot-ko-5.8b](https://huggingface.co/EleutherAI/polyglot-ko-5.8b) on a KoAlpaca Dataset v1.1b Detail Codes are available at [KoAlpaca Github Repository](https://github.com/Beomi/KoAlpaca) ## Training procedure ### Training hyperparameters The following hyperparameters were used during training: - learning_rate: 5e-05 - train_batch_size: 2 - seed: 42 - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08 - lr_scheduler_type: linear - num_epochs: 2.0 - mixed_precision_training: Native AMP ### Framework versions - Transformers 4.29.0.dev0 - Pytorch 2.0.0+cu117 - Datasets 2.10.1 - Tokenizers 0.13.2
[ -0.5504850745201111, -0.7542302012443542, 0.4047505855560303, 0.23440766334533691, -0.6701322793960571, -0.23344233632087708, 0.06943952292203903, -0.7211742401123047, 0.37687450647354126, 0.5345940589904785, -0.18942874670028687, -0.410866379737854, -0.8881419897079468, -0.39025643467903137, -0.02697105146944523, 1.4054179191589355, -0.13260146975517273, 0.1315993219614029, -0.11278331279754639, -0.5064451694488525, -0.4470769762992859, -0.737292468547821, -0.5545610189437866, -0.7973743081092834, 0.6200207471847534, 0.3582393229007721, 1.199139952659607, 0.5827559232711792, 0.33551037311553955, 0.260309100151062, -0.4434744417667389, -0.06475353240966797, -0.5910540223121643, -0.24471084773540497, 0.0003904594050254673, -0.29321613907814026, -0.7346038818359375, -0.4004495143890381, 0.4520907402038574, 0.44905853271484375, -0.5007156133651733, 0.4662981331348419, -0.11652909964323044, 0.6592735648155212, -0.997780978679657, 0.4879075288772583, -0.4524654746055603, 0.30249470472335815, -0.3829032778739929, 0.16829326748847961, -0.42228564620018005, -0.3668203353881836, 0.4591169059276581, -0.7732499241828918, 0.2074272632598877, 0.04237058386206627, 1.301971673965454, 0.08131120353937149, -0.48654162883758545, -0.055083367973566055, -0.5207168459892273, 0.7771289348602295, -0.4617043137550354, 0.45716381072998047, 0.5320936441421509, 0.5208619236946106, 0.13615462183952332, -0.774756669998169, -0.10773161053657532, 0.15857797861099243, 0.06377998739480972, -0.08143668621778488, 0.007064586039632559, 0.15983714163303375, 0.4899568557739258, 0.4506216049194336, -0.4191061854362488, -0.10865695774555206, -0.80507493019104, -0.6323542594909668, 0.7125540971755981, 0.18671365082263947, -0.1320631355047226, 0.09613918513059616, -0.6415241360664368, -0.6837836503982544, -0.2655600309371948, 0.27840614318847656, 0.5888121128082275, 0.11476971209049225, -0.4798632562160492, 0.4257392883300781, -0.5736467242240906, 0.8215042948722839, 0.07244297116994858, -0.19065111875534058, 0.7952584624290466, -0.12472110986709595, -0.4082223176956177, 0.4466732442378998, 0.6525124311447144, 0.3174101412296295, 0.11903612315654755, 0.08282718807458878, -0.14484302699565887, -0.049447476863861084, 0.31261134147644043, -1.1244823932647705, -0.6709173321723938, 0.20403391122817993, -0.2995721101760864, -0.6661958694458008, 0.1539769172668457, -0.8953846096992493, -0.293628454208374, -0.17748300731182098, 0.6130506992340088, -0.41224220395088196, -0.051791686564683914, 0.5138092637062073, 0.035533688962459564, 0.5170634984970093, 0.33029651641845703, -0.8309515714645386, 0.4510365426540375, 0.27990278601646423, 0.8036690950393677, -0.009404695592820644, -0.2755952477455139, -0.21698181331157684, 0.09397993981838226, -0.25438442826271057, 0.58775395154953, 0.016948875039815903, -0.38821470737457275, -0.24019257724285126, 0.2964930534362793, -0.14203129708766937, -0.2832425832748413, 1.055341124534607, -0.6938618421554565, 0.18014095723628998, -0.5568358302116394, -0.3127937614917755, -0.7700754404067993, 0.16770526766777039, -0.6861842274665833, 1.0290400981903076, 0.43095964193344116, -0.8084749579429626, 0.4876094460487366, -0.3034074306488037, -0.13209453225135803, 0.17729489505290985, 0.12960946559906006, -1.1090350151062012, -0.020725209265947342, 0.3497849702835083, 0.16881459951400757, -0.2705409824848175, 0.23884610831737518, -0.5631061792373657, -0.33942586183547974, -0.17270216345787048, -0.15615592896938324, 0.8857908844947815, 0.4041180908679962, -0.17148520052433014, 0.0758766308426857, -0.7278446555137634, 0.6418241858482361, 0.41705283522605896, -0.24589143693447113, 0.13123765587806702, -0.4243646264076233, 0.41248416900634766, 0.1798628717660904, 0.7094010710716248, -0.74452143907547, -0.008092917501926422, -0.12534184753894806, -0.07356584817171097, 0.7854247689247131, -0.002949758432805538, 0.00924983061850071, -0.6258925199508667, 0.41496315598487854, 0.009144138544797897, 0.6139286756515503, 0.3535805642604828, -0.4898262023925781, -0.7155988216400146, -0.2831780016422272, 0.4153909385204315, 0.34351426362991333, -0.4110269844532013, 0.6614032983779907, -0.2282673865556717, -0.8971385955810547, -0.26205888390541077, 0.21166616678237915, 0.5600117444992065, 0.2533411383628845, 0.31289345026016235, -0.6109995245933533, -0.526675283908844, -0.98640376329422, 0.36168935894966125, 0.109175905585289, 0.24729767441749573, 0.18391871452331543, 0.6769760251045227, -0.03200715780258179, 0.7674436569213867, -0.7684347033500671, -0.20038458704948425, -0.06563011556863785, 0.009633688256144524, 0.38044261932373047, 0.4345156252384186, 0.8839287161827087, -0.7701910138130188, -0.584373414516449, 0.07957793772220612, -0.8689387440681458, 0.032606340944767, 0.2722984850406647, -0.2431754469871521, -0.20197375118732452, 0.1015184298157692, -0.7080868482589722, 0.2577812373638153, 0.8586165904998779, -0.48500970005989075, 0.6957293152809143, -0.44554826617240906, -0.13731828331947327, -1.198338508605957, -0.07427061349153519, -0.22222088277339935, -0.2984730005264282, -0.342485249042511, 0.3360397219657898, 0.14900793135166168, -0.2694154381752014, -0.7642285823822021, 0.3588142991065979, -0.18038171529769897, -0.13136576116085052, -0.31486472487449646, -0.2444911003112793, 0.07481196522712708, 0.631637454032898, -0.13589414954185486, 0.7798944711685181, 0.9186285138130188, -0.5530877113342285, 0.4399593770503998, 0.4093778729438782, -0.3571698069572449, 0.25351014733314514, -1.309752106666565, 0.2732381522655487, 0.13596902787685394, 0.567170262336731, -0.15411001443862915, -0.6629183888435364, 0.3393455743789673, -0.13626469671726227, -0.013970179483294487, -0.3855789005756378, -0.4014049768447876, -0.3778492510318756, -0.5559021830558777, 0.7748002409934998, 0.7213772535324097, -0.5795496106147766, 0.5130089521408081, 0.26087120175361633, -0.015411623753607273, -0.38042497634887695, -0.34924834966659546, -0.33985745906829834, -0.13981203734874725, -0.7392855286598206, 0.258555144071579, -0.059974972158670425, 0.09165745228528976, -0.4244140088558197, -0.09843119233846664, -0.13686704635620117, -0.19349029660224915, 0.44726499915122986, 0.28892982006073, 0.1003720760345459, -0.08090843260288239, 0.14933855831623077, -0.3433533012866974, 0.0626678615808487, -0.27267372608184814, 1.1234534978866577, -0.5776364207267761, -0.3622463047504425, -0.6160000562667847, -0.32869407534599304, 0.8336518406867981, -0.3444550037384033, 1.0799628496170044, 0.9208138585090637, -0.3407881259918213, 0.28038662672042847, -0.4388065040111542, 0.007993234321475029, -0.49505260586738586, 0.43313029408454895, -0.24311526119709015, -0.3258034586906433, 0.7946438789367676, 0.17131440341472626, -0.044425345957279205, 0.5713929533958435, 0.6043306589126587, 0.31052154302597046, 1.1784254312515259, 0.3724091947078705, -0.20012375712394714, 0.46634382009506226, -0.6298023462295532, -0.09696993231773376, -0.9532518982887268, -0.42078372836112976, -0.4160710573196411, -0.1524515002965927, -0.6664623022079468, -0.3158648908138275, 0.5575767159461975, 0.27960342168807983, -0.5123715400695801, 0.45679786801338196, -0.5923084616661072, 0.4977887272834778, 0.5812567472457886, 0.59285569190979, -0.09363588690757751, 0.006911656819283962, -0.12974610924720764, 0.3355558216571808, -0.7265428900718689, -0.35703128576278687, 1.3652020692825317, 0.49018117785453796, 0.7899947762489319, -0.1689479798078537, 0.7118579149246216, 0.09873413294553757, -0.21176274120807648, -0.5369495749473572, 0.4244994521141052, 0.294439435005188, -0.6698022484779358, -0.0971226915717125, -0.2652512192726135, -0.7801088690757751, 0.4369983375072479, -0.43414101004600525, -0.7816897034645081, 0.30853599309921265, 0.39559367299079895, -0.3319571912288666, 0.5476632118225098, -0.6187400221824646, 0.7919077277183533, -0.27171632647514343, -0.34871846437454224, -0.12417947500944138, -0.45799893140792847, 0.05862914025783539, -0.12883003056049347, -0.17399165034294128, -0.26335299015045166, 0.19059069454669952, 0.7772086262702942, -0.8090177178382874, 0.6022502183914185, -0.4021887183189392, 0.036511700600385666, 0.596564531326294, -0.2406957447528839, 0.9882739186286926, 0.13323993980884552, -0.2513831853866577, 0.5552781820297241, 0.21445797383785248, -1.1188406944274902, -0.09461357444524765, 0.5347455143928528, -1.2008264064788818, -0.01490970142185688, -0.8136778473854065, -1.1879633665084839, -0.014486503787338734, 0.2979241907596588, 0.4896773099899292, 0.37728846073150635, 0.07719545066356659, 0.7694077491760254, 0.8625749945640564, 0.06226561218500137, 0.18484656512737274, 0.20030942559242249, -0.17826884984970093, -0.737755537033081, 0.8279198408126831, -0.006378973368555307, 0.44093677401542664, -0.31082478165626526, 0.35681256651878357, -0.11977817863225937, -0.9192211031913757, -0.4970456063747406, 0.12746046483516693, -0.5507240295410156, -0.3337068259716034, -0.7055164575576782, -0.38900718092918396, -0.26699915528297424, -0.3183286488056183, -0.5537367463111877, -0.2552284002304077, 0.03061206452548504, -0.2399478554725647, 0.7322178483009338, 0.4415304660797119, 0.31387022137641907, 0.8670231699943542, -0.7317848205566406, -0.014479594305157661, 0.4340634047985077, 0.3702166974544525, -0.1549040973186493, -0.7301793098449707, -0.3996826708316803, 0.41375428438186646, -0.7005019783973694, -0.46465981006622314, 0.32294943928718567, 0.06716563552618027, 0.2909500300884247, 0.4510592222213745, 0.0694366842508316, 0.6206226944923401, -0.04598182439804077, 0.7342251539230347, 0.1738578826189041, -0.6419442296028137, 0.5794534683227539, -0.6441352367401123, 0.6269075274467468, 0.7331128120422363, 0.46558678150177, 0.07164142280817032, -0.0813923180103302, -0.7640759348869324, -0.7637351751327515, 0.6848165392875671, 0.5196376442909241, 0.005993228871375322, 0.35212069749832153, 0.21921174228191376, 0.16904433071613312, 0.032323744148015976, -0.9613358974456787, 0.029215162619948387, -0.1688140481710434, -0.1953725665807724, -0.034389693289995193, -0.29488685727119446, -0.3831329643726349, -0.37599092721939087, 1.0744489431381226, -0.15519402921199799, -0.04900088161230087, 0.04057794436812401, -0.2158229500055313, -0.2612435221672058, -0.02226499654352665, 0.5454896688461304, 1.0103249549865723, -0.7224951386451721, -0.42294979095458984, 0.686061680316925, -0.8684461116790771, -0.1398279219865799, 0.40703487396240234, -0.587159276008606, -0.1168573722243309, 0.12892982363700867, 1.0911942720413208, 0.20178423821926117, -0.46365973353385925, 0.3169649839401245, 0.026211708784103394, -0.4333067834377289, -0.3553938865661621, 0.25690758228302, -0.22071540355682373, 0.27209538221359253, 0.09597792476415634, 0.1159268245100975, -0.17057254910469055, -0.1836482733488083, 0.13395750522613525, 0.17829477787017822, -0.47075846791267395, -0.37636545300483704, 0.5447870492935181, 0.031869880855083466, -0.057965878397226334, 0.5934651494026184, -0.28351378440856934, -0.4243920147418976, 0.7516812086105347, 0.544665515422821, 0.7377569079399109, -0.15848040580749512, 0.1224115863442421, 0.5036991238594055, 0.11191650480031967, -0.30670714378356934, 0.413057804107666, 0.05752125754952431, -0.662310004234314, 0.14273905754089355, -0.997469961643219, -0.44505053758621216, -0.10439670830965042, -1.1121563911437988, 0.5089592933654785, -0.6535985469818115, -0.30774614214897156, -0.11012923717498779, 0.2952563464641571, -0.7112287878990173, 0.07240106165409088, 0.0011789043201133609, 0.7402105331420898, -1.0071568489074707, 0.9861112833023071, 0.7043729424476624, -0.328439325094223, -0.7312427163124084, -0.5716953277587891, -0.06592795997858047, -0.7999410033226013, 0.033263735473155975, 0.06703782826662064, 0.12449481338262558, -0.23365825414657593, -0.5074352622032166, -1.158568024635315, 1.77057945728302, 0.5143336653709412, -0.510490894317627, 0.08357130736112595, 0.22407369315624237, 0.5675983428955078, -0.11675586551427841, 0.2258913516998291, 0.1257217824459076, 0.24178656935691833, 0.16505581140518188, -1.1311039924621582, -0.28264158964157104, -0.03025529533624649, 0.10984990000724792, 0.5876784324645996, -1.1383064985275269, 1.212705373764038, -0.22567631304264069, 0.41337084770202637, 0.125995472073555, 0.7341963648796082, 0.6518544554710388, 0.3575674295425415, 0.732404887676239, 1.1056660413742065, 0.759331464767456, -0.12499584257602692, 1.3377571105957031, -0.5039728283882141, 0.859073281288147, 1.2903552055358887, -0.10746315866708755, 0.3811289966106415, 0.3453437089920044, -0.16174785792827606, 0.5519755482673645, 0.7639040946960449, -0.1674494594335556, 0.4755275249481201, -0.2291048914194107, -0.3386341333389282, -0.25364190340042114, -0.2129981815814972, -0.8050219416618347, 0.6271377801895142, 0.10335728526115417, -0.5482030510902405, -0.3495018184185028, 0.06679990887641907, 0.2366674244403839, -0.48479706048965454, -0.37967100739479065, 0.42225611209869385, -0.19344590604305267, -0.25921717286109924, 0.733672559261322, -0.08892577886581421, 0.46427929401397705, -1.1796538829803467, 0.1528467983007431, 0.12863391637802124, 0.3512536585330963, -0.14396975934505463, -0.38761451840400696, -0.05736098065972328, -0.35571178793907166, -0.08899234235286713, 0.006793016567826271, 0.6568412184715271, -0.16548852622509003, -0.8718704581260681, 0.3467986285686493, 0.10499971359968185, 0.09018299728631973, -0.022825049236416817, -0.849571704864502, 0.296557754278183, -0.14842680096626282, -0.3588006794452667, 0.5896967053413391, 0.1126667708158493, -0.2641121447086334, 0.7823635935783386, 0.8196344375610352, 0.06402982771396637, 0.2863181531429291, 0.048958919942379, 1.085789442062378, -0.26950544118881226, -0.5444896221160889, -0.23022575676441193, 0.04754521697759628, -0.2684084177017212, -0.7045786380767822, 0.6166369915008545, 0.7481180429458618, 1.2146307229995728, -0.061770204454660416, 0.31081563234329224, -0.37645065784454346, -0.021142244338989258, -0.4263105094432831, 0.7083740234375, -0.18886861205101013, -0.2665022909641266, -0.3381706476211548, -1.0680400133132935, 0.357433944940567, 0.4825194776058197, -0.2087455689907074, 0.13884511590003967, 0.5770274996757507, 0.8075531125068665, -0.29202350974082947, 0.20424973964691162, 0.254569947719574, 0.019965965300798416, 0.33402541279792786, 0.599307656288147, 0.040968939661979675, -1.0436161756515503, 0.6656836867332458, -1.0691889524459839, -0.12716682255268097, -0.15235492587089539, -0.6380544304847717, -0.6284524202346802, -0.1853720098733902, -0.27544474601745605, -0.22490008175373077, 0.2838890254497528, 1.0558358430862427, 0.9992635846138, -0.951732873916626, -0.2637927532196045, -0.041197143495082855, -0.07382113486528397, -0.4142509996891022, -0.21082809567451477, 0.5324870944023132, -0.24522875249385834, -0.7426632642745972, -0.1038220152258873, -0.23505668342113495, 0.2180478572845459, 0.026173703372478485, -0.31891879439353943, -0.1476617157459259, -0.08137787878513336, 0.6142568588256836, 0.35319697856903076, -0.36330944299697876, -0.6370101571083069, -0.4969068467617035, 0.1084318459033966, -0.007563226856291294, 0.32178670167922974, -0.5525156259536743, 0.6740177869796753, 0.49366217851638794, 0.3760403096675873, 0.8403823971748352, 0.15676161646842957, 0.43642309308052063, -0.46409258246421814, 0.8209689259529114, 0.27378958463668823, 0.6160081028938293, -0.03196587786078453, -0.30472883582115173, 0.46398216485977173, 0.1424311250448227, -0.7560675740242004, -0.6953018307685852, -0.01384197548031807, -1.2358531951904297, 0.31545859575271606, 0.7669185400009155, -0.1963648498058319, -0.38901254534721375, 0.006972693372517824, -0.28580334782600403, 0.06356880068778992, -0.31557726860046387, 0.821434497833252, 0.7334182262420654, -0.03597504645586014, 0.07676880806684494, -0.7209576964378357, 0.243761345744133, 0.6589316129684448, -0.9546210169792175, -0.18952308595180511, 0.37047460675239563, 0.363317608833313, 0.2364157885313034, 0.3781737685203552, -0.5190346837043762, 0.7258781790733337, 0.13489508628845215, 0.3255893290042877, -0.42620038986206055, -0.48874711990356445, -0.13369949162006378, 0.1566646248102188, 0.03171047568321228, -0.49286359548568726 ]
humarin/chatgpt_paraphraser_on_T5_base
humarin
"2023-10-07T20:18:02Z"
39,549
114
transformers
[ "transformers", "pytorch", "t5", "text2text-generation", "en", "dataset:humarin/chatgpt-paraphrases", "license:openrail", "autotrain_compatible", "endpoints_compatible", "has_space", "text-generation-inference", "region:us" ]
text2text-generation
"2023-03-17T18:22:37Z"
--- license: openrail datasets: - humarin/chatgpt-paraphrases language: - en library_name: transformers inference: parameters: num_beams: 5 num_beam_groups: 5 num_return_sequences: 5 repetition_penalty: 10.01 diversity_penalty: 3.01 no_repeat_ngram_size: 2 temperature: 0.7 max_length: 128 widget: - text: What are the best places to see in New York? example_title: New York tourist attractions - text: When should I go to the doctor? example_title: Doctor's time - text: >- Rammstein's album Mutter was recorded in the south of France in May and June 2000, and mixed in Stockholm in October of that year. example_title: Rammstein's album Mutter pipeline_tag: text2text-generation --- This model was trained on our [ChatGPT paraphrase dataset](https://huggingface.co/datasets/humarin/chatgpt-paraphrases). This dataset is based on the [Quora paraphrase question](https://www.kaggle.com/competitions/quora-question-pairs), texts from the [SQUAD 2.0](https://huggingface.co/datasets/squad_v2) and the [CNN news dataset](https://huggingface.co/datasets/cnn_dailymail). This model is based on the T5-base model. We used "transfer learning" to get our model to generate paraphrases as well as ChatGPT. Now we can say that this is one of the best paraphrases of the Hugging Face. [Kaggle](https://www.kaggle.com/datasets/vladimirvorobevv/chatgpt-paraphrases) link [Author's LinkedIn](https://www.linkedin.com/in/vladimir-vorobev/) link ## Deploying example ```python from transformers import AutoTokenizer, AutoModelForSeq2SeqLM device = "cuda" tokenizer = AutoTokenizer.from_pretrained("humarin/chatgpt_paraphraser_on_T5_base") model = AutoModelForSeq2SeqLM.from_pretrained("humarin/chatgpt_paraphraser_on_T5_base").to(device) def paraphrase( question, num_beams=5, num_beam_groups=5, num_return_sequences=5, repetition_penalty=10.0, diversity_penalty=3.0, no_repeat_ngram_size=2, temperature=0.7, max_length=128 ): input_ids = tokenizer( f'paraphrase: {question}', return_tensors="pt", padding="longest", max_length=max_length, truncation=True, ).input_ids outputs = model.generate( input_ids, temperature=temperature, repetition_penalty=repetition_penalty, num_return_sequences=num_return_sequences, no_repeat_ngram_size=no_repeat_ngram_size, num_beams=num_beams, num_beam_groups=num_beam_groups, max_length=max_length, diversity_penalty=diversity_penalty ) res = tokenizer.batch_decode(outputs, skip_special_tokens=True) return res ``` ## Usage examples **Input:** ```python text = 'What are the best places to see in New York?' paraphrase(text) ``` **Output:** ```python ['What are some must-see places in New York?', 'Can you suggest some must-see spots in New York?', 'Where should one go to experience the best NYC has to offer?', 'Which places should I visit in New York?', 'What are the top destinations to explore in New York?'] ``` **Input:** ```python text = "Rammstein's album Mutter was recorded in the south of France in May and June 2000, and mixed in Stockholm in October of that year." paraphrase(text) ``` **Output:** ```python ['In May and June 2000, Rammstein travelled to the south of France to record his album Mutter, which was mixed in Stockholm in October of that year.', 'The album Mutter by Rammstein was recorded in the south of France during May and June 2000, with mixing taking place in Stockholm in October of that year.', 'The album Mutter by Rammstein was recorded in the south of France during May and June 2000, with mixing taking place in Stockholm in October of that year. It', 'Mutter, the album released by Rammstein, was recorded in southern France during May and June 2000, with mixing taking place between October and September.', 'In May and June 2000, Rammstein recorded his album Mutter in the south of France, with the mix being made at Stockholm during October.'] ``` ## Train parameters ```python epochs = 5 batch_size = 64 max_length = 128 lr = 5e-5 batches_qty = 196465 betas = (0.9, 0.999) eps = 1e-08 ``` ### BibTeX entry and citation info ```bibtex @inproceedings{chatgpt_paraphraser, author={Vladimir Vorobev, Maxim Kuznetsov}, title={A paraphrasing model based on ChatGPT paraphrases}, year={2023} } ```
[ -0.34171268343925476, -0.5493834614753723, 0.4248267710208893, 0.292142391204834, -0.23968511819839478, -0.31065165996551514, -0.11233814805746078, -0.1796564757823944, 0.11792084574699402, 0.3415761888027191, -0.34727105498313904, -0.4797838628292084, -0.48295068740844727, 0.1086319237947464, -0.5743789076805115, 1.199566125869751, -0.15091237425804138, 0.017326325178146362, -0.055436454713344574, -0.26506438851356506, -0.14444638788700104, -0.39136430621147156, -0.47054120898246765, -0.14847224950790405, 0.2243940234184265, 0.09006229043006897, 0.5211296677589417, 0.41317814588546753, 0.36746710538864136, 0.3415188789367676, -0.24937106668949127, 0.061704371124506, -0.39604392647743225, -0.057745952159166336, 0.020347323268651962, -0.28927794098854065, -0.13473118841648102, 0.08085481077432632, 0.5883366465568542, 0.42104846239089966, -0.236904576420784, 0.316983699798584, 0.09539409726858139, 0.20707985758781433, -0.2683391571044922, 0.1360776126384735, -0.6201180815696716, 0.0324188657104969, 0.09714710712432861, -0.10522636026144028, -0.17352867126464844, -0.42875683307647705, 0.19887635111808777, -0.49196335673332214, 0.2515931725502014, -0.0019229596946388483, 1.3774151802062988, 0.06742352992296219, -0.24219578504562378, -0.22434505820274353, -0.31824034452438354, 0.9135493636131287, -0.8916085958480835, 0.11259820312261581, 0.507041871547699, 0.14843203127384186, -0.04866849258542061, -0.8330328464508057, -0.5950890779495239, -0.3049086034297943, -0.28635138273239136, 0.23083485662937164, -0.17864513397216797, -0.420011967420578, 0.1428552120923996, 0.3660755157470703, -0.7815304398536682, -0.574777364730835, -0.6913899183273315, -0.3146270513534546, 0.47862735390663147, 0.12556004524230957, 0.3900325894355774, -0.5340284109115601, -0.4682694673538208, -0.3454841077327728, -0.2097485065460205, 0.011634524911642075, 0.0693274736404419, -0.07849597930908203, -0.32294654846191406, 0.49780306220054626, -0.2763197124004364, 0.4957326650619507, 0.20521634817123413, -0.017055828124284744, 0.4890119135379791, -0.5739564895629883, 0.03663230314850807, -0.29650241136550903, 1.1905899047851562, 0.6883960962295532, 0.2439781129360199, -0.3644852936267853, -0.28240251541137695, -0.11261250823736191, -0.32147085666656494, -0.7184054851531982, -0.6249393820762634, 0.14247602224349976, -0.4702114760875702, -0.38329195976257324, -0.06452301144599915, -0.8292557597160339, 0.03321470320224762, -0.15315644443035126, 0.7572325468063354, -0.7846987843513489, -0.10041473805904388, 0.05480612814426422, -0.5560948848724365, 0.2945074439048767, -0.17203275859355927, -0.7245038747787476, 0.2669762074947357, 0.4252747893333435, 1.0981897115707397, -0.05255531519651413, -0.6615122556686401, -0.273286372423172, 0.19005456566810608, -0.14531715214252472, 0.7044299244880676, -0.2784181237220764, -0.1875537484884262, -0.4734504818916321, -0.06843765825033188, -0.21925599873065948, -0.6305074691772461, 0.33751165866851807, -0.4002610743045807, 0.518848717212677, -0.1163543164730072, -0.5666642189025879, -0.08275207132101059, 0.180048868060112, -0.33455216884613037, 1.0633763074874878, 0.28262776136398315, -0.9303736090660095, -0.09453198313713074, -0.35670799016952515, -0.39990663528442383, -0.34020552039146423, -0.12235486507415771, -0.3647020161151886, -0.05704415217041969, 0.48718878626823425, 0.4155935049057007, -0.25752678513526917, 0.2519451677799225, -0.21901056170463562, -0.23385080695152283, 0.5127937197685242, -0.3276902735233307, 1.110321044921875, 0.30015647411346436, -0.3546160161495209, -0.04871104285120964, -0.7818745970726013, 0.06089876592159271, 0.14289911091327667, -0.44034674763679504, -0.0808555856347084, -0.19863517582416534, 0.28405848145484924, 0.32797011733055115, 0.3870270848274231, -0.48401084542274475, -0.18294139206409454, -0.5932850241661072, 0.9099752902984619, 0.6627254486083984, 0.32882434129714966, 0.438453733921051, -0.8070929646492004, 0.42173469066619873, 0.1579224169254303, 0.15633369982242584, -0.025329750031232834, -0.5406518578529358, -0.4399305582046509, -0.08055103570222855, 0.29300880432128906, 0.8170626163482666, -0.615191638469696, 0.44076722860336304, -0.2752804458141327, -0.7813771367073059, -0.518250584602356, 0.01764928176999092, 0.2765997648239136, 0.8096414804458618, 0.6695222854614258, 0.08265916258096695, -0.5633573532104492, -0.9109623432159424, -0.25541356205940247, -0.2019532173871994, 0.06278495490550995, 0.1890631765127182, 0.4899398386478424, 0.10322268307209015, 0.7112553715705872, -0.5900148749351501, 0.020896784961223602, -0.23754477500915527, -0.005786354187875986, 0.40217214822769165, 0.7067888379096985, 0.6292129755020142, -0.7789708971977234, -0.6632809042930603, -0.25932759046554565, -0.9258396625518799, -0.08505941927433014, -0.050424061715602875, -0.45131129026412964, -0.11507085710763931, 0.49852120876312256, -0.8468325734138489, 0.16840338706970215, 0.3670864701271057, -0.2050216943025589, 0.589949905872345, -0.16387301683425903, 0.23339374363422394, -1.377089500427246, 0.05866171792149544, -0.01887781359255314, -0.09387724101543427, -0.4622454047203064, 0.0385502353310585, 0.029216725379228592, -0.21539773046970367, -0.5425834655761719, 0.6144205331802368, -0.31777071952819824, 0.34629595279693604, 0.01566350646317005, 0.14724543690681458, -0.0685228481888771, 0.6251189708709717, -0.1478223353624344, 0.6945033669471741, 0.795423686504364, -0.6516756415367126, 0.4336038827896118, 0.6189236044883728, -0.4861108064651489, 0.36646074056625366, -0.7540993094444275, 0.02701256237924099, -0.004645378328859806, 0.2884867191314697, -1.0838590860366821, -0.20546436309814453, 0.4239901900291443, -0.7046487927436829, -0.16681548953056335, 0.10293107479810715, -0.5323870182037354, -0.1921243816614151, -0.23341086506843567, 0.29539504647254944, 0.8964834213256836, -0.37020379304885864, 0.5515210628509521, 0.3341622054576874, 0.013316339813172817, -0.3631957471370697, -0.6995918154716492, 0.1229543685913086, -0.5966865420341492, -0.6347697973251343, 0.22131143510341644, -0.16539178788661957, -0.02098189853131771, 0.06643777340650558, -0.10547204315662384, -0.3154771625995636, -0.10549522936344147, 0.03298671916127205, 0.19272927939891815, -0.14409805834293365, -0.11034847050905228, -0.13976211845874786, -0.04833181947469711, 0.1448911875486374, -0.2667889893054962, 0.6456378102302551, -0.3237442076206207, 0.19976207613945007, -0.6801020503044128, 0.4397107660770416, 0.5179756283760071, -0.10592526197433472, 0.5813925862312317, 0.767993688583374, -0.11883661895990372, 0.15601634979248047, -0.39680400490760803, -0.28379836678504944, -0.4713626205921173, 0.38214895129203796, -0.43740230798721313, -0.4491821825504303, 0.6761559844017029, 0.24769900739192963, 0.044366419315338135, 0.6666799187660217, 0.45805811882019043, -0.3376750946044922, 0.995973527431488, 0.07465636730194092, -0.1048358678817749, 0.3508458137512207, -0.4416676163673401, -0.10673922300338745, -0.7832767963409424, -0.24435484409332275, -0.3319050371646881, -0.4452877342700958, -0.5832049250602722, -0.4193233847618103, 0.43491461873054504, 0.07754912227392197, -0.24776196479797363, 0.6660042405128479, -0.5458834171295166, 0.32056155800819397, 0.6687666773796082, 0.3955133855342865, -0.039455778896808624, 0.07399128377437592, -0.13877351582050323, 0.10878842324018478, -0.7051755785942078, -0.4237724542617798, 1.1161984205245972, 0.1581457406282425, 0.6022815704345703, -0.012220645323395729, 0.8379383683204651, -0.08894550800323486, -0.016713907942175865, -0.4625529646873474, 0.8643923997879028, -0.11106991022825241, -0.6325305104255676, -0.23880359530448914, -0.5164845585823059, -0.8953034281730652, 0.3084777891635895, 0.11943994462490082, -0.643296480178833, 0.010247522965073586, 0.07396247237920761, -0.2932407259941101, 0.19070973992347717, -0.7501413822174072, 0.8286493420600891, -0.0847690999507904, 0.017031146213412285, 0.02731797657907009, -0.8433853983879089, 0.23170095682144165, 0.012847614474594593, 0.10276184976100922, -0.18423707783222198, -0.06354115158319473, 1.1364307403564453, -0.4377167820930481, 0.5711355805397034, -0.13916321098804474, 0.2135869860649109, 0.3708963692188263, 0.011776777915656567, 0.44374459981918335, 0.031017456203699112, -0.24845468997955322, 0.208931103348732, 0.3680294454097748, -0.5402191281318665, -0.5604327321052551, 0.7368226051330566, -0.9509515762329102, -0.48513391613960266, -0.30494236946105957, -0.7777683734893799, -0.15078245103359222, 0.12546446919441223, 0.7564800381660461, 0.5374516248703003, 0.08089688420295715, 0.20446331799030304, 0.4604695439338684, -0.1722630262374878, 0.49821004271507263, 0.17862652242183685, -0.08476356416940689, -0.6804659962654114, 0.9707313776016235, 0.2283024787902832, 0.2827201783657074, 0.3520541191101074, 0.6025915741920471, -0.2649674415588379, -0.4232802391052246, -0.29810830950737, 0.5404399037361145, -0.7884464859962463, -0.09117884188890457, -0.9552158713340759, -0.2568758428096771, -0.7693993449211121, 0.09004032611846924, -0.08193816989660263, -0.5358911752700806, -0.21683624386787415, 0.1677498072385788, 0.5242618918418884, 0.29943013191223145, -0.19942760467529297, 0.2659907639026642, -0.7079671621322632, 0.5104316473007202, 0.07224495708942413, -0.19927732646465302, -0.07614976167678833, -0.9324417114257812, -0.2023906409740448, -0.04031214118003845, -0.4519283175468445, -1.1681056022644043, 0.4641168415546417, 0.2652304172515869, 0.6762523651123047, 0.16388703882694244, 0.1345873475074768, 0.7908693552017212, -0.52568119764328, 0.8541404604911804, 0.1494099497795105, -0.8592560887336731, 0.6834004521369934, -0.410390704870224, 0.38684457540512085, 0.47414031624794006, 0.4690799117088318, -0.5137184262275696, -0.7738596200942993, -0.9694211483001709, -0.9791924357414246, 0.6339407563209534, 0.4074667990207672, 0.3386223316192627, -0.16713133454322815, 0.41451793909072876, -0.04596885293722153, 0.2655448317527771, -0.950871467590332, -0.4497818648815155, -0.3987085223197937, -0.4814491271972656, -0.24442218244075775, 0.18185588717460632, -0.26968246698379517, -0.5998754501342773, 0.7033171057701111, 0.246712327003479, 0.5552871823310852, 0.39063307642936707, -0.19469943642616272, 0.2337777018547058, -0.06362266838550568, 0.5711342692375183, 0.8096677660942078, -0.28406476974487305, 0.2433333843946457, 0.5715230107307434, -0.36222344636917114, 0.09389359503984451, -0.013010561466217041, -0.30569130182266235, 0.2881474494934082, 0.36501258611679077, 0.9044339656829834, 0.11283306032419205, -0.6183742880821228, 0.5372207760810852, 0.11663491278886795, -0.3986496329307556, -0.3660981357097626, 0.1029970571398735, 0.2127046138048172, 0.4022682309150696, 0.23493815958499908, 0.1332123875617981, 0.12544798851013184, -0.40480929613113403, 0.44922080636024475, 0.1797415018081665, -0.19137215614318848, -0.29423171281814575, 0.7974755167961121, -0.2877022325992584, -0.178372323513031, 0.5851678848266602, -0.1085350438952446, -0.6514766812324524, 0.6665806174278259, 0.4684205651283264, 0.7926097512245178, -0.14989066123962402, 0.14610204100608826, 0.5252829790115356, 0.15753093361854553, -0.19549159705638885, 0.21537376940250397, -0.18185928463935852, -0.4990949332714081, -0.03239793702960014, -0.6207873225212097, -0.04508465901017189, 0.4128132462501526, -0.6811624765396118, 0.21795499324798584, -0.34288498759269714, -0.07076357305049896, 0.002871152712032199, -0.38902005553245544, -0.5587958097457886, 0.19424335658550262, -0.21568192541599274, 0.8574689626693726, -1.0549449920654297, 0.5830335021018982, 0.6842291951179504, -0.44711771607398987, -0.9882408976554871, 0.26812219619750977, -0.390063613653183, -0.8358938694000244, 0.6671412587165833, 0.01624164916574955, 0.14931803941726685, 0.18244805932044983, -0.5825082063674927, -0.924898624420166, 0.9961674213409424, 0.1803971379995346, -0.12911172211170197, -0.16169144213199615, -0.10073915123939514, 0.5969796180725098, -0.14382703602313995, 0.2685726583003998, 0.6848648190498352, 0.32270994782447815, 0.210179403424263, -0.8570109605789185, 0.19982130825519562, -0.27853620052337646, -0.07180829346179962, 0.033066801726818085, -0.7628514766693115, 1.1898835897445679, -0.0239118542522192, 0.1426992416381836, 0.2452150583267212, 0.8740797638893127, 0.27523714303970337, 0.2343970090150833, 0.5363001227378845, 0.7077964544296265, 0.5177798867225647, 0.04966217279434204, 1.0175772905349731, -0.4186849296092987, 0.6369253993034363, 1.0172265768051147, 0.13111604750156403, 0.9938629269599915, 0.6211506724357605, -0.3005707859992981, 0.31221768260002136, 0.7491681575775146, -0.3064201772212982, 0.9919267892837524, 0.16945196688175201, -0.30570879578590393, -0.134840726852417, 0.3601852357387543, -0.46180200576782227, 0.3153556287288666, 0.045839790254831314, -0.2695349454879761, -0.4557706415653229, 0.2893504202365875, 0.19422602653503418, -0.21036992967128754, 0.006066471338272095, 0.746568500995636, 0.07818526029586792, -0.9175207018852234, 0.9113747477531433, 0.010089882649481297, 0.6429907083511353, -0.3810398578643799, 0.25293269753456116, -0.32823655009269714, 0.03893342614173889, -0.004784817341715097, -0.8505150675773621, 0.3725132942199707, -0.09842775762081146, -0.1436765044927597, -0.14693744480609894, 0.3916282653808594, -0.5583773255348206, -0.583000123500824, 0.23147082328796387, 0.3098682463169098, 0.671846866607666, -0.00475322175770998, -1.0777835845947266, -0.2747308015823364, 0.14423201978206635, -0.47925207018852234, 0.23960724472999573, 0.5929403901100159, 0.21627025306224823, 0.6026138067245483, 0.45617613196372986, 0.24745678901672363, 0.3885897099971771, -0.30272597074508667, 0.7992836833000183, -0.6343962550163269, -0.6205601096153259, -0.9638358950614929, 0.2988097071647644, -0.0986747071146965, -0.555424690246582, 0.9488821029663086, 0.749068558216095, 0.775570809841156, -0.17824679613113403, 0.7982514500617981, -0.21199455857276917, 0.623458981513977, -0.5366523861885071, 0.7138261795043945, -0.558641254901886, 0.009256488643586636, -0.19594724476337433, -0.7847843766212463, 0.14614707231521606, 0.904861330986023, -0.40268388390541077, 0.14378571510314941, 0.858047366142273, 1.1916213035583496, -0.17559121549129486, -0.2007339745759964, 0.1730654239654541, 0.395139217376709, 0.16123586893081665, 0.7580199241638184, 0.818541944026947, -0.9402710795402527, 0.9995123744010925, -0.6129059791564941, -0.05458320304751396, -0.07437144219875336, -0.5743334889411926, -0.7691226601600647, -0.9341775178909302, -0.5592532753944397, -0.7378385663032532, -0.04497968778014183, 0.7932532429695129, 0.5672213435173035, -0.8849325180053711, -0.3133504390716553, -0.11303135007619858, -0.15835030376911163, -0.28751227259635925, -0.3057304918766022, 0.6535530090332031, -0.3160296380519867, -0.8103296160697937, 0.23197108507156372, -0.1620589643716812, 0.2015458196401596, 0.14114737510681152, 0.04176940768957138, -0.4822920560836792, 0.15854118764400482, 0.3200013339519501, 0.12013407796621323, -0.7121561169624329, -0.25872427225112915, -0.012780332937836647, -0.3053090572357178, 0.21470601856708527, 0.24791793525218964, -0.4343276023864746, -0.006391147617250681, 0.7165940403938293, 0.4278138279914856, 0.572470486164093, 0.07476691156625748, 0.30186727643013, -0.43742871284484863, -0.03330647572875023, 0.11224706470966339, 0.30286887288093567, 0.21957509219646454, -0.08349349349737167, 0.2983555495738983, 0.47840237617492676, -0.7250481247901917, -0.8132190704345703, -0.1750718504190445, -1.250999093055725, -0.35884344577789307, 1.3689141273498535, -0.18924950063228607, -0.3466777205467224, 0.005831248592585325, -0.26895254850387573, 0.6093775033950806, -0.26617926359176636, 0.8110312223434448, 0.8703001737594604, -0.34300270676612854, -0.021999409422278404, -0.8126779198646545, 0.41225847601890564, 0.6936706304550171, -0.5579254627227783, -0.2666681110858917, 0.21789264678955078, 0.8463029861450195, 0.10590421408414841, 0.5608615279197693, -0.11177155375480652, 0.2732636332511902, -0.05247710645198822, -0.16431134939193726, 0.0033144396729767323, 0.11840090155601501, -0.16094182431697845, 0.2469068467617035, -0.27685657143592834, -0.5159329175949097 ]
textattack/roberta-base-CoLA
textattack
"2021-05-20T22:05:35Z"
39,531
12
transformers
[ "transformers", "pytorch", "jax", "roberta", "text-classification", "endpoints_compatible", "has_space", "region:us" ]
text-classification
"2022-03-02T23:29:05Z"
## TextAttack Model Cardand the glue dataset loaded using the `nlp` library. The model was fine-tuned for 5 epochs with a batch size of 32, 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.850431447746884, as measured by the eval set accuracy, found after 1 epoch. For more information, check out [TextAttack on Github](https://github.com/QData/TextAttack).
[ -0.0572977252304554, -0.5502496957778931, 0.3367088735103607, 0.20245014131069183, -0.2218630015850067, -0.025604458525776863, -0.15548484027385712, -0.46646788716316223, -0.01071526762098074, 0.15107755362987518, -0.4541475474834442, -0.7140398025512695, -0.6352856755256653, 0.042588356882333755, -0.4458233714103699, 1.4534043073654175, 0.27963125705718994, -0.13229453563690186, -0.2614848017692566, -0.06602553278207779, -0.5156844854354858, -0.30871501564979553, -0.5873929262161255, -0.3662314713001251, 0.4838765561580658, 0.4289515018463135, 0.8320589661598206, 0.9081933498382568, 0.7539924383163452, 0.2229534387588501, -0.32715409994125366, 0.014551253989338875, -0.554995596408844, -0.34342578053474426, -0.14272868633270264, -0.772070050239563, -0.7634118795394897, 0.10012603551149368, 0.5266622304916382, 0.02674124576151371, -0.2389061599969864, 0.6985506415367126, 0.04948272928595543, 0.6846500039100647, -0.4445454180240631, -0.09667553752660751, -0.7494701743125916, 0.2199980616569519, -0.15877866744995117, -0.11186573654413223, -0.7552476525306702, -0.2046678066253662, 0.23033201694488525, -0.658551037311554, 0.08803119510412216, 0.2869553864002228, 1.0469250679016113, 0.3061365783214569, -0.20267514884471893, 0.015947820618748665, -0.41970494389533997, 1.023977279663086, -0.6855626702308655, 0.20823712646961212, 0.7952095866203308, 0.0567198246717453, -0.11143353581428528, -0.8746535181999207, -0.18041189014911652, 0.2176506221294403, 0.23305435478687286, -0.16697098314762115, -0.09885789453983307, -0.09204213321208954, 0.3673022389411926, 0.43311309814453125, -1.1752320528030396, 0.1484357863664627, -0.6963143944740295, -0.2766501307487488, 1.0763964653015137, 0.45015203952789307, 0.30623674392700195, -0.13269352912902832, -0.6676948070526123, -0.26283493638038635, -0.09630777686834335, -0.04531349241733551, 0.32938292622566223, 0.20216184854507446, -0.20385347306728363, 0.5263357162475586, 0.05914931371808052, 0.8195240497589111, 0.05826503783464432, -0.4351603388786316, 0.23984411358833313, -0.044878166168928146, -0.6195597648620605, -0.0039786361157894135, 1.0036120414733887, 0.32554399967193604, 0.09017188102006912, 0.03526856005191803, -0.16848990321159363, -0.10286210477352142, 0.3441736102104187, -0.7300642132759094, -0.3993832468986511, 0.4676584303379059, -0.649543046951294, -0.47445908188819885, -0.024222683161497116, -0.3429243266582489, -0.1982365846633911, -0.2761808931827545, 0.6032634973526001, -0.8248938322067261, 0.03861453756690025, 0.3218995928764343, -0.3867156505584717, 0.25315821170806885, 0.2077876180410385, -0.6717078685760498, 0.2573785185813904, 0.6117110252380371, 1.2212412357330322, -0.4427292048931122, -0.1795819252729416, 0.12309112399816513, -0.26074710488319397, -0.3893917202949524, 0.992064893245697, -0.4739433825016022, -0.11359706521034241, -0.3881077170372009, -0.020412283018231392, -0.06565035134553909, -0.2294769585132599, 0.5347805023193359, -0.4158148169517517, 0.4648139178752899, 0.21392486989498138, -1.0143100023269653, -0.4796685576438904, 0.10683167725801468, -0.819504976272583, 1.2021006345748901, 0.31853386759757996, -0.5708687901496887, 0.5969380736351013, -0.478201299905777, -0.138795867562294, 0.16914434731006622, 0.3577776551246643, -0.8215572834014893, 0.15217523276805878, 0.018018582835793495, 0.5696114301681519, -0.42959314584732056, 0.38599079847335815, -0.3914702534675598, -0.526099681854248, 0.21422499418258667, -0.4147374629974365, 1.067143201828003, 0.08107559382915497, -0.015063660219311714, -0.1329377293586731, -0.9896609783172607, 0.3880997598171234, -0.03393136337399483, -0.46210765838623047, -0.10987138748168945, -0.4604831635951996, 0.27699658274650574, 0.2156669944524765, 0.2938317060470581, -0.5087083578109741, 0.5413191318511963, -0.40096408128738403, 0.27066314220428467, 0.7603678703308105, -0.04490295425057411, 0.3169842064380646, -0.6838976740837097, 0.6271926760673523, -0.07973382622003555, 0.14882074296474457, -0.33401450514793396, -0.7444185614585876, -0.39022013545036316, -0.2597009837627411, 0.5755929350852966, 0.7296563982963562, -0.3271312415599823, 0.4813019037246704, -0.1480507105588913, -1.0059007406234741, -0.4829348623752594, 0.014728791080415249, 0.3377301096916199, 0.19032549858093262, 0.3928718864917755, -0.17653007805347443, -0.3965422511100769, -0.8160765767097473, -0.2973063886165619, -0.22273719310760498, -0.17853961884975433, 0.012177614495158195, 0.8426680564880371, 0.14142818748950958, 0.955108642578125, -0.850225567817688, -0.570857584476471, 0.1791868954896927, 0.3737049996852875, 0.3768727779388428, 0.49462890625, 0.38423845171928406, -0.6494104266166687, -0.4916682839393616, -0.23951776325702667, -0.46671566367149353, 0.18988482654094696, -0.1091356873512268, 0.08127549290657043, 0.350160151720047, 0.3133689761161804, -0.5697300434112549, 0.6926161646842957, 0.7508113384246826, -0.6857879161834717, 0.7152652144432068, -0.15730877220630646, 0.1106276884675026, -1.4349925518035889, 0.18578588962554932, 0.04422331228852272, -0.3582676351070404, -0.4134981334209442, -0.1320945769548416, 0.048459794372320175, -0.4460162818431854, -0.8104699850082397, 0.5946775674819946, -0.42353975772857666, 0.1793534904718399, -0.14503245055675507, -0.16603519022464752, 0.15864765644073486, 0.7134916186332703, -0.02713344246149063, 0.828732967376709, 0.31144067645072937, -0.41532450914382935, 0.3219515383243561, 0.333050936460495, -0.25722575187683105, 0.47149574756622314, -0.8518666625022888, 0.5101253986358643, 0.10140145570039749, 0.07465648651123047, -1.1160697937011719, -0.3252175450325012, -0.3428634703159332, -0.643203616142273, 0.23769798874855042, 0.11570625752210617, -0.4834105968475342, -0.25398245453834534, -0.6067900657653809, 0.5575211644172668, 0.46855276823043823, -0.30952972173690796, 0.45767003297805786, 0.5055832862854004, 0.30535486340522766, -0.5184617042541504, -0.6918690800666809, -0.12536807358264923, -0.4453716576099396, -0.5863075256347656, 0.5491199493408203, -0.349852055311203, 0.30456361174583435, -0.20928116142749786, 0.10262531042098999, -0.37667736411094666, -0.13141408562660217, 0.35893768072128296, 0.170218363404274, -0.09072286635637283, 0.5350849032402039, -0.1261453926563263, -0.13459476828575134, -0.1528623253107071, -0.13970492780208588, 0.555729329586029, -0.3125423491001129, 0.1736399382352829, -0.619568407535553, -0.05672135576605797, 0.6584933400154114, 0.06277332454919815, 1.2071032524108887, 0.6691694259643555, -0.6060484051704407, -0.23649601638317108, -0.21384000778198242, -0.08758954703807831, -0.4842112958431244, 0.40117380023002625, -0.41470152139663696, -0.7445966601371765, 0.5993611812591553, 0.18992535769939423, 0.0205390602350235, 0.8030997514724731, 0.4791954755783081, 0.037126075476408005, 0.8532584309577942, 0.7367342710494995, -0.2793421745300293, 0.2192031443119049, -0.2679932117462158, -0.036532822996377945, -0.6640424728393555, -0.29913339018821716, -0.3118254840373993, -0.35078200697898865, -0.5867967009544373, -0.5191553831100464, 0.18846413493156433, 0.3186947703361511, -0.20745863020420074, 0.7410596013069153, -0.8276084661483765, 0.5145261883735657, 0.5159704685211182, 0.3363828659057617, 0.08706992119550705, -0.21599267423152924, 0.0968509167432785, -0.03047616221010685, -0.7950994968414307, -0.3453802168369293, 1.281103491783142, 0.6508044004440308, 0.7824608087539673, -0.12293838709592819, 0.5275058746337891, 0.46993711590766907, -0.0713498517870903, -0.8428337574005127, 0.6030969619750977, -0.11964587867259979, -0.613016664981842, -0.5520254373550415, 0.017276516184210777, -0.8769210577011108, -0.3978063762187958, -0.41949594020843506, -0.8103330731391907, -0.1440875381231308, 0.326672226190567, -0.16717733442783356, 0.29654252529144287, -0.5436466932296753, 0.9378207325935364, 0.17855803668498993, -0.1909475475549698, 0.003562481142580509, -0.6984224319458008, 0.43027687072753906, -0.2167423963546753, -0.1879633665084839, -0.4098895192146301, -0.03744959831237793, 1.1189059019088745, -0.2382992058992386, 0.5172144770622253, 0.3120734691619873, 0.011703099124133587, 0.31362342834472656, -0.0737338438630104, 0.38679325580596924, -0.16324496269226074, 0.0079306960105896, 0.41050049662590027, 0.13569335639476776, -0.32136204838752747, -0.5786563754081726, 0.2165815234184265, -0.547142505645752, 0.007697591092437506, -0.41369250416755676, -0.7494810223579407, 0.2032887190580368, -0.030487002804875374, 0.6488745808601379, 0.5410090088844299, -0.12877920269966125, 0.33765149116516113, 0.8076202273368835, -0.315878301858902, 0.6284398436546326, 0.4266742169857025, -0.21609945595264435, -0.42257437109947205, 1.0864460468292236, 0.30815622210502625, 0.1924448013305664, 0.32902050018310547, 0.2817171514034271, -0.12217339873313904, -0.15662246942520142, -0.3079955577850342, 0.2396618276834488, -0.4272227883338928, -0.7102310061454773, -0.4472721517086029, -0.4429386258125305, -0.39480218291282654, -0.040819745510816574, -0.5308157205581665, -0.675285279750824, -0.7012955546379089, -0.10517284274101257, 0.7774033546447754, 0.51299649477005, 0.03617575392127037, 0.3430222272872925, -0.9247562885284424, 0.046722374856472015, 0.004832744598388672, 0.6008664965629578, -0.2626350224018097, -0.8952180743217468, -0.6071512699127197, -0.3267805278301239, -0.3008902966976166, -0.9131293296813965, 0.4175577759742737, 0.6344767212867737, 0.17540691792964935, 0.39189139008522034, 0.056309498846530914, 0.6616220474243164, -0.6534009575843811, 1.1120176315307617, -0.05696495994925499, -0.8542658686637878, 0.7250913977622986, -0.4052378833293915, 0.9775249361991882, 0.28023117780685425, 0.6869595050811768, -0.2639269530773163, -0.6108769774436951, -1.017822265625, -0.8382169604301453, 0.5207545757293701, 0.10743832588195801, -0.19173301756381989, 0.20126505196094513, 0.38864991068840027, 0.011935921385884285, -0.044936757534742355, -0.735351026058197, -0.21809643507003784, 0.23764313757419586, -0.5042011737823486, 0.060307640582323074, -0.33445194363594055, 0.15027117729187012, -0.27851924300193787, 0.9424890875816345, -0.19841249287128448, 0.5771512985229492, -0.04665564373135567, -0.21816477179527283, 0.11839772015810013, 0.05402763560414314, 0.9957545399665833, 0.6523320078849792, -0.31366458535194397, -0.2598854601383209, 0.3151331841945648, -0.8935430645942688, 0.20420026779174805, 0.03165183588862419, 0.10250401496887207, -0.09045682102441788, 0.6568921208381653, 0.8879188895225525, -0.11855640262365341, -0.6656869053840637, 0.44003826379776, -0.055827122181653976, -0.14985570311546326, -0.33622393012046814, 0.21331407129764557, -0.19253672659397125, 0.2089618444442749, 0.3946361839771271, -0.21916447579860687, 0.37315019965171814, -0.06343486905097961, 0.6738909482955933, 0.25434496998786926, -0.7364879846572876, -0.43957415223121643, 0.7532469630241394, -0.2557911276817322, -0.6560702919960022, 0.8130603432655334, -0.010081179440021515, -0.44264283776283264, 0.5515090227127075, 0.5688435435295105, 0.9363694190979004, -0.658978283405304, 0.371444970369339, 0.5602173805236816, 0.273232638835907, -0.2643889784812927, 0.18628671765327454, 0.19642433524131775, -0.5406607389450073, -0.35923123359680176, -0.8521639704704285, -0.1516035944223404, 0.2730835974216461, -0.9134346842765808, 0.45858779549598694, -0.2389027625322342, -0.5240537524223328, 0.0815076008439064, 0.15853416919708252, -0.5470790863037109, 0.654298722743988, -0.10536806285381317, 1.2991843223571777, -1.2514575719833374, 0.6681055426597595, 0.6275792717933655, -0.1719178557395935, -0.9076645970344543, -0.3744523525238037, 0.1966438740491867, -0.567105770111084, 0.5840616822242737, 0.2858409285545349, 0.19662998616695404, -0.05731816217303276, -0.8597782850265503, -1.0631349086761475, 1.1247045993804932, 0.21339285373687744, -0.4703570604324341, -0.1370394378900528, 0.029620731249451637, 0.6630719304084778, -0.2458675652742386, 0.33076146245002747, 0.7002469897270203, 0.01229306310415268, -0.3135506808757782, -1.179160237312317, -0.14934620261192322, -0.3719147741794586, 0.08233115822076797, 0.30622732639312744, -0.6966460347175598, 0.808320164680481, -0.09175319969654083, -0.010478700511157513, -0.0096558453515172, 0.9172722697257996, 0.24099217355251312, 0.24103441834449768, 0.34641239047050476, 0.9454176425933838, 0.7607005834579468, 0.029384158551692963, 0.8716245889663696, -0.3145639896392822, 0.6618516445159912, 1.301538109779358, 0.24218329787254333, 1.0301073789596558, 0.1762300282716751, -0.24418868124485016, 0.5532749891281128, 0.7412453889846802, -0.1630510538816452, 0.3598276674747467, 0.12546376883983612, 0.1360074281692505, -0.031102171167731285, -0.1173161119222641, 0.08244667202234268, 0.594034731388092, 0.3370823860168457, -0.41840773820877075, 0.27314940094947815, 0.3770579397678375, 0.17290812730789185, -0.2658320963382721, -0.17803528904914856, 0.848845899105072, 0.06847856938838959, -0.3886489272117615, 0.48112601041793823, -0.11100608110427856, 0.3643147945404053, -0.42170262336730957, -0.3010636866092682, 0.12125435471534729, 0.12009977549314499, -0.2561807930469513, -1.0430818796157837, 0.26909470558166504, -0.4189203977584839, -0.4444718062877655, 0.06886667758226395, 0.842145562171936, -0.6507903933525085, -0.4488997757434845, -0.13990730047225952, -0.115371473133564, 0.32999446988105774, 0.11931408941745758, -0.8505292534828186, 0.11396540701389313, -0.10575231909751892, -0.6223508715629578, 0.20702068507671356, 0.3087989091873169, 0.018775269389152527, 0.8464144468307495, 0.5099346041679382, -0.28882378339767456, -0.013020681217312813, -0.5762180089950562, 0.5143301486968994, -0.6742063760757446, -0.4938754141330719, -0.8955782055854797, 0.8568071722984314, -0.11801882833242416, -0.9075950384140015, 0.7789322137832642, 0.8887813091278076, 0.5522602200508118, -0.10025019198656082, 0.19176675379276276, 0.08349455147981644, 0.5788251161575317, -0.604682445526123, 0.5421096682548523, -0.5927339196205139, 0.01468877587467432, -0.43456128239631653, -0.8343520164489746, -0.3685234785079956, 0.656669020652771, 0.21460804343223572, -0.14187131822109222, 0.7613300085067749, 0.7053301334381104, 0.22622166574001312, 0.0835140272974968, 0.36489251255989075, -0.04970041289925575, 0.1670042872428894, 0.6920732855796814, 0.14819493889808655, -1.0561314821243286, 0.34149882197380066, -0.13256867229938507, -0.1655096411705017, -0.07684102654457092, -1.1054277420043945, -1.0200996398925781, -0.8656778931617737, -0.5290516018867493, -0.5987615585327148, -0.08828360587358475, 0.8781088590621948, 0.8002791404724121, -0.5751806497573853, -0.214900404214859, 0.08860598504543304, -0.06636654585599899, -0.3006633222103119, -0.3221120536327362, 0.684471070766449, -0.1145925223827362, -0.7010769248008728, 0.131675586104393, 0.38707563281059265, 0.17525924742221832, -0.06655019521713257, 0.11895335465669632, -0.5357499122619629, 0.2153586596250534, 0.4424968361854553, 0.08308198302984238, -0.32962852716445923, -0.41678982973098755, 0.029722195118665695, -0.0927482470870018, 0.124007947742939, 0.4771285355091095, -0.7552493810653687, 0.5363117456436157, 0.6923882365226746, 0.5218958854675293, 0.5302643179893494, 0.061017587780952454, 0.8070833086967468, -0.8592868447303772, 0.1750091314315796, 0.272590696811676, -0.09868007898330688, 0.0768447294831276, -0.5524536967277527, 0.7071433663368225, 0.060127127915620804, -1.0702791213989258, -0.9767574667930603, -0.11052586138248444, -0.8813088536262512, -0.2823443114757538, 0.8390247225761414, -0.1850643903017044, -0.6448237895965576, 0.04120442271232605, -0.09459473192691803, 0.1671217679977417, -0.35414913296699524, 0.5921952724456787, 0.7947713732719421, -0.23207277059555054, -0.29909536242485046, -0.20287375152111053, 0.8829591870307922, 0.1612403839826584, -0.7829781770706177, -0.34109845757484436, 0.12095177918672562, 0.2838400900363922, 0.43647775053977966, 0.6330098509788513, 0.13022813200950623, 0.4010685086250305, 0.24694719910621643, 0.09591907262802124, 0.08219420909881592, -0.6789403557777405, -0.40632280707359314, 0.22856241464614868, -0.18353600800037384, -0.1416369080543518 ]
m-a-p/MERT-v1-95M
m-a-p
"2023-06-04T04:46:31Z"
39,435
11
transformers
[ "transformers", "pytorch", "mert_model", "feature-extraction", "music", "custom_code", "arxiv:2306.00107", "license:cc-by-nc-4.0", "has_space", "region:us" ]
feature-extraction
"2023-03-17T10:57:16Z"
--- license: cc-by-nc-4.0 inference: false tags: - music --- # Introduction to our series work The development log of our Music Audio Pre-training (m-a-p) model family: - 02/06/2023: [arxiv pre-print](https://arxiv.org/abs/2306.00107) and training [codes](https://github.com/yizhilll/MERT) released. - 17/03/2023: we release two advanced music understanding models, [MERT-v1-95M](https://huggingface.co/m-a-p/MERT-v1-95M) and [MERT-v1-330M](https://huggingface.co/m-a-p/MERT-v1-330M) , trained with new paradigm and dataset. They outperform the previous models and can better generalize to more tasks. - 14/03/2023: we retrained the MERT-v0 model with open-source-only music dataset [MERT-v0-public](https://huggingface.co/m-a-p/MERT-v0-public) - 29/12/2022: a music understanding model [MERT-v0](https://huggingface.co/m-a-p/MERT-v0) trained with **MLM** paradigm, which performs better at downstream tasks. - 29/10/2022: a pre-trained MIR model [music2vec](https://huggingface.co/m-a-p/music2vec-v1) trained with **BYOL** paradigm. Here is a table for quick model pick-up: | Name | Pre-train Paradigm | Training Data (hour) | Pre-train Context (second) | Model Size | Transformer Layer-Dimension | Feature Rate | Sample Rate | Release Date | | ------------------------------------------------------------ | ------------------ | -------------------- | ---------------------------- | ---------- | --------------------------- | ------------ | ----------- | ------------ | | [MERT-v1-330M](https://huggingface.co/m-a-p/MERT-v1-330M) | MLM | 160K | 5 | 330M | 24-1024 | 75 Hz | 24K Hz | 17/03/2023 | | [MERT-v1-95M](https://huggingface.co/m-a-p/MERT-v1-95M) | MLM | 20K | 5 | 95M | 12-768 | 75 Hz | 24K Hz | 17/03/2023 | | [MERT-v0-public](https://huggingface.co/m-a-p/MERT-v0-public) | MLM | 900 | 5 | 95M | 12-768 | 50 Hz | 16K Hz | 14/03/2023 | | [MERT-v0](https://huggingface.co/m-a-p/MERT-v0) | MLM | 1000 | 5 | 95 M | 12-768 | 50 Hz | 16K Hz | 29/12/2022 | | [music2vec-v1](https://huggingface.co/m-a-p/music2vec-v1) | BYOL | 1000 | 30 | 95 M | 12-768 | 50 Hz | 16K Hz | 30/10/2022 | ## Explanation The m-a-p models share the similar model architecture and the most distinguished difference is the paradigm in used pre-training. Other than that, there are several nuance technical configuration needs to know before using: - **Model Size**: the number of parameters that would be loaded to memory. Please select the appropriate size fitting your hardware. - **Transformer Layer-Dimension**: The number of transformer layers and the corresponding feature dimensions can be outputted from our model. This is marked out because features extracted by **different layers could have various performance depending on tasks**. - **Feature Rate**: Given a 1-second audio input, the number of features output by the model. - **Sample Rate**: The frequency of audio that the model is trained with. # Introduction to MERT-v1 Compared to MERT-v0, we introduce multiple new things in the MERT-v1 pre-training: - Change the pseudo labels to 8 codebooks from [encodec](https://github.com/facebookresearch/encodec), which potentially has higher quality and empower our model to support music generation. - MLM prediction with in-batch noise mixture. - Train with higher audio frequency (24K Hz). - Train with more audio data (up to 160 thousands of hours). - More available model sizes 95M and 330M. More details will be written in our coming-soon paper. # Model Usage ```python # from transformers import Wav2Vec2Processor from transformers import Wav2Vec2FeatureExtractor from transformers import AutoModel import torch from torch import nn import torchaudio.transforms as T from datasets import load_dataset # loading our model weights model = AutoModel.from_pretrained("m-a-p/MERT-v1-95M", trust_remote_code=True) # loading the corresponding preprocessor config processor = Wav2Vec2FeatureExtractor.from_pretrained("m-a-p/MERT-v1-95M",trust_remote_code=True) # load demo audio and set processor dataset = load_dataset("hf-internal-testing/librispeech_asr_demo", "clean", split="validation") dataset = dataset.sort("id") sampling_rate = dataset.features["audio"].sampling_rate resample_rate = processor.sampling_rate # make sure the sample_rate aligned if resample_rate != sampling_rate: print(f'setting rate from {sampling_rate} to {resample_rate}') resampler = T.Resample(sampling_rate, resample_rate) else: resampler = None # audio file is decoded on the fly if resampler is None: input_audio = dataset[0]["audio"]["array"] else: input_audio = resampler(torch.from_numpy(dataset[0]["audio"]["array"])) inputs = processor(input_audio, sampling_rate=resample_rate, return_tensors="pt") with torch.no_grad(): outputs = model(**inputs, output_hidden_states=True) # take a look at the output shape, there are 13 layers of representation # each layer performs differently in different downstream tasks, you should choose empirically all_layer_hidden_states = torch.stack(outputs.hidden_states).squeeze() print(all_layer_hidden_states.shape) # [13 layer, Time steps, 768 feature_dim] # for utterance level classification tasks, you can simply reduce the representation in time time_reduced_hidden_states = all_layer_hidden_states.mean(-2) print(time_reduced_hidden_states.shape) # [13, 768] # you can even use a learnable weighted average representation aggregator = nn.Conv1d(in_channels=13, out_channels=1, kernel_size=1) weighted_avg_hidden_states = aggregator(time_reduced_hidden_states.unsqueeze(0)).squeeze() print(weighted_avg_hidden_states.shape) # [768] ``` # Citation ```shell @misc{li2023mert, title={MERT: Acoustic Music Understanding Model with Large-Scale Self-supervised Training}, author={Yizhi Li and Ruibin Yuan and Ge Zhang and Yinghao Ma and Xingran Chen and Hanzhi Yin and Chenghua Lin and Anton Ragni and Emmanouil Benetos and Norbert Gyenge and Roger Dannenberg and Ruibo Liu and Wenhu Chen and Gus Xia and Yemin Shi and Wenhao Huang and Yike Guo and Jie Fu}, year={2023}, eprint={2306.00107}, archivePrefix={arXiv}, primaryClass={cs.SD} } ```
[ -0.7036988139152527, -0.4596841037273407, 0.21400073170661926, 0.1225266084074974, -0.10991788655519485, -0.1652699112892151, -0.28642311692237854, -0.30201607942581177, 0.17152437567710876, 0.3548138439655304, -0.9188845157623291, -0.47786957025527954, -0.5277771949768066, -0.19726429879665375, -0.1995679885149002, 1.0012003183364868, 0.1658918410539627, 0.0758189782500267, 0.1364610493183136, -0.18929801881313324, -0.5921595692634583, -0.4511646628379822, -0.7087934017181396, -0.37485864758491516, 0.20656566321849823, 0.38187968730926514, 0.314970463514328, 0.5607579946517944, 0.6131560802459717, 0.319837749004364, -0.19231539964675903, -0.24591349065303802, -0.30239832401275635, 0.010370936244726181, 0.3958243727684021, -0.3583504557609558, -0.8004695177078247, 0.28387483954429626, 0.4597897231578827, 0.34884175658226013, 0.010164574719965458, 0.6102603673934937, 0.14274483919143677, 0.6593674421310425, -0.2274809330701828, 0.1270245909690857, -0.3012146055698395, 0.1954924315214157, -0.1030166894197464, -0.35774490237236023, -0.4246273636817932, 0.01899947226047516, 0.23975159227848053, -0.7225491404533386, 0.13752055168151855, 0.04956379905343056, 1.0895817279815674, 0.46807485818862915, -0.3031315207481384, -0.18701353669166565, -0.7904103398323059, 0.8522520661354065, -0.8126003742218018, 0.7638697624206543, 0.6163198947906494, 0.4535162150859833, 0.2245875746011734, -0.6345605254173279, -0.4227452278137207, -0.28041356801986694, -0.030644210055470467, 0.3779902756214142, -0.09074412286281586, -0.13216175138950348, 0.4406391978263855, 0.6411575675010681, -0.6758224964141846, -0.016457712277770042, -0.5872664451599121, -0.2742769420146942, 0.7288385033607483, -0.12243872880935669, 0.09109480679035187, -0.3040217161178589, -0.5649623274803162, -0.45300889015197754, -0.48234421014785767, 0.26022377610206604, 0.35600003600120544, -0.003103814786300063, -0.4983389377593994, 0.28635022044181824, 0.11417630314826965, 0.5554771423339844, 0.351075679063797, -0.49646303057670593, 0.6922574639320374, -0.3043418526649475, -0.30321261286735535, 0.13070078194141388, 0.8375436067581177, 0.15044116973876953, -0.02537713199853897, 0.20131614804267883, -0.3768691122531891, -0.10148490965366364, 0.01564715802669525, -0.7830912470817566, -0.45530587434768677, 0.274137020111084, -0.623814046382904, -0.1472581923007965, 0.005868128966540098, -0.454510360956192, 0.037516091018915176, -0.6230853199958801, 0.9233748316764832, -0.6438400745391846, -0.4769994616508484, 0.2132745087146759, -0.09553229063749313, 0.3164486587047577, -0.04259788990020752, -0.7167542576789856, 0.26047471165657043, 0.4347572326660156, 0.7517767548561096, 0.04137298837304115, -0.27633312344551086, -0.10546399652957916, -0.10049068927764893, -0.04729859530925751, 0.34706151485443115, 0.0993659645318985, -0.23897090554237366, -0.47805553674697876, -0.0035667147021740675, -0.1563435047864914, -0.541889488697052, 0.678187906742096, -0.4188140034675598, 0.48885470628738403, -0.28709474205970764, -0.5779749751091003, -0.5005470514297485, -0.03345557302236557, -0.544191300868988, 1.0233628749847412, 0.3130466639995575, -0.8908812999725342, 0.4262370467185974, -0.751541256904602, -0.19286872446537018, -0.4280887842178345, 0.15566176176071167, -0.7989209890365601, -0.13779480755329132, 0.2826634645462036, 0.4790510833263397, -0.3330298364162445, 0.08677732199430466, -0.21775177121162415, -0.5057546496391296, 0.22223402559757233, -0.40614768862724304, 0.9888460040092468, 0.4622381925582886, -0.6302449107170105, 0.22190433740615845, -1.139233112335205, -0.09628839045763016, 0.2320014089345932, -0.43209630250930786, 0.06373703479766846, -0.30429142713546753, 0.3508860766887665, 0.4897386431694031, 0.11149319261312485, -0.3840169310569763, -0.08392416685819626, -0.39583516120910645, 0.617451012134552, 0.6448884606361389, 0.015163079835474491, 0.35648638010025024, -0.6391698718070984, 0.489852637052536, -0.07890724390745163, 0.10298974812030792, -0.2917015850543976, -0.29793035984039307, -0.7866406440734863, -0.4383096396923065, 0.4083195626735687, 0.6558159589767456, -0.18733033537864685, 0.8536823391914368, -0.13943158090114594, -0.7149723768234253, -0.903984546661377, -0.04590706154704094, 0.43225154280662537, 0.5383933186531067, 0.5979984402656555, -0.38541704416275024, -0.8276810050010681, -1.0044333934783936, 0.03376086428761482, 0.03806594759225845, -0.30496522784233093, 0.46909525990486145, 0.37514692544937134, -0.12600336968898773, 0.8523578643798828, -0.29531005024909973, -0.2768290936946869, -0.1939900815486908, 0.12871743738651276, 0.6290417909622192, 0.8771577477455139, 0.6536209583282471, -0.6132717728614807, -0.345872700214386, -0.35136228799819946, -0.7393770813941956, -0.12557679414749146, -0.16322560608386993, -0.15163472294807434, -0.02556803822517395, 0.2835129201412201, -0.6036995649337769, 0.25921204686164856, 0.3972488045692444, -0.355743944644928, 0.691536545753479, 0.09151482582092285, 0.3079695701599121, -1.098995327949524, 0.06890365481376648, -0.010445009917020798, -0.10651630908250809, -0.572756826877594, -0.23374071717262268, -0.11793102324008942, -0.08111030608415604, -0.5795711278915405, 0.2564135491847992, -0.5626420974731445, -0.3277303874492645, -0.229662224650383, -0.039085838943719864, -0.09482362121343613, 0.9447402954101562, 0.06200409308075905, 0.7237457633018494, 0.7626204490661621, -0.702359676361084, 0.3309195935726166, 0.22354528307914734, -0.4562452733516693, 0.43439072370529175, -0.8610875010490417, 0.23072485625743866, 0.10018997639417648, 0.3553646504878998, -0.9814929366111755, -0.04357421398162842, 0.27076661586761475, -0.7960345149040222, 0.5685395002365112, -0.2889540493488312, -0.43915390968322754, -0.6233637928962708, -0.06719484180212021, 0.5472512245178223, 0.795738935470581, -0.5035742521286011, 0.317462682723999, 0.3460775911808014, 0.17149022221565247, -0.4200100004673004, -0.7015808820724487, -0.4894833564758301, -0.6174664497375488, -0.8683128952980042, 0.30608803033828735, -0.0692194327712059, -0.0622941330075264, -0.11926168203353882, -0.310916006565094, 0.01566028781235218, 0.09751911461353302, 0.5023615956306458, 0.185346782207489, -0.49272945523262024, 0.14345410466194153, -0.2277933955192566, -0.29623961448669434, 0.24002091586589813, -0.5292864441871643, 0.9079020619392395, -0.21804192662239075, -0.4112529158592224, -0.9653390049934387, 0.015495778061449528, 0.590499222278595, -0.42094218730926514, 0.41156816482543945, 1.035360336303711, -0.17109207808971405, 0.20067107677459717, -0.5133874416351318, -0.3373308777809143, -0.5153129696846008, 0.3853221535682678, -0.4249662756919861, -0.6989442110061646, 0.5843375325202942, 0.18948011100292206, 0.10919397324323654, 0.7813355326652527, 0.4517727494239807, -0.2700020372867584, 0.9100399613380432, 0.3814513683319092, -0.12331663817167282, 0.540992259979248, -0.8941893577575684, -0.15825828909873962, -0.9504737257957458, -0.16691848635673523, -0.3159480690956116, -0.6210190057754517, -0.6010672450065613, -0.3587195873260498, 0.5747560858726501, 0.046996865421533585, -0.6935383081436157, 0.6150304675102234, -0.5694801211357117, 0.03171997144818306, 0.8925045728683472, 0.21086996793746948, -0.09471780061721802, -0.01550485473126173, 0.05253222957253456, -0.08868052810430527, -0.5431697368621826, -0.2093445211648941, 1.3975796699523926, 0.7120563983917236, 0.5241355299949646, -0.056979384273290634, 0.8327248692512512, 0.07705604285001755, -0.14275671541690826, -0.7720401287078857, 0.27721837162971497, 0.20608629286289215, -0.7117477655410767, -0.2875367999076843, -0.256139874458313, -0.7069546580314636, 0.3756815195083618, -0.3406548500061035, -0.5292059779167175, 0.2071860283613205, 0.15926037728786469, -0.44163569808006287, 0.4110755920410156, -0.6014794707298279, 0.8204829692840576, -0.2096080780029297, -0.205720916390419, -0.0755799412727356, -0.7479732036590576, 0.45876243710517883, 0.016420578584074974, 0.27756065130233765, -0.13444706797599792, 0.4814777970314026, 1.2300878763198853, -0.39497750997543335, 0.473686546087265, -0.43191027641296387, -0.020764458924531937, 0.6013833284378052, -0.011734616942703724, 0.30839085578918457, -0.01397358626127243, 0.010371863842010498, 0.11600793898105621, -0.10462446510791779, -0.3648209869861603, -0.3984527587890625, 0.439309298992157, -1.0161540508270264, -0.40659162402153015, -0.18935978412628174, -0.7977484464645386, -0.23168444633483887, 0.05452735722064972, 0.7253056764602661, 0.629025399684906, 0.15853255987167358, 0.3627975583076477, 0.7450203895568848, -0.22906659543514252, 0.50059574842453, 0.3707863390445709, -0.11206812411546707, -0.5583608746528625, 0.86799156665802, 0.10825268924236298, 0.3211899995803833, 0.26336055994033813, 0.23287270963191986, -0.35147926211357117, -0.4469020962715149, -0.3272653818130493, 0.27635693550109863, -0.44105350971221924, -0.12463756650686264, -0.8026610016822815, -0.17190039157867432, -0.5432842373847961, 0.054609280079603195, -0.65996915102005, -0.613160252571106, -0.22835706174373627, -0.08042530715465546, 0.45626720786094666, 0.5348024368286133, -0.2329624742269516, 0.6983111500740051, -0.7528289556503296, 0.21896794438362122, 0.23927843570709229, 0.1404319852590561, -0.105915866792202, -1.2177729606628418, -0.35579127073287964, -0.01862526126205921, -0.3879424035549164, -1.0328600406646729, 0.3841765820980072, 0.0012461509322747588, 0.45064976811408997, 0.5934826135635376, -0.2634960114955902, 0.5729926228523254, -0.36330050230026245, 0.7191413640975952, 0.21743358671665192, -0.9961153864860535, 0.771112859249115, -0.51190185546875, 0.13307087123394012, 0.5559859871864319, 0.3567875921726227, -0.44188395142555237, -0.07162275165319443, -0.8929785490036011, -0.8037070035934448, 1.0759574174880981, 0.24545304477214813, -0.297039657831192, 0.5401712656021118, 0.20810763537883759, 0.03422169387340546, 0.23963765799999237, -0.9531192183494568, -0.6782987117767334, -0.4948714077472687, -0.02893662452697754, -0.3687872588634491, -0.12809504568576813, -0.04385722428560257, -0.7551311254501343, 0.9288210868835449, 0.33430829644203186, 0.5725584626197815, 0.22620061039924622, -0.1299944967031479, 0.008767032995820045, 0.19339998066425323, 0.6320924162864685, 0.38239678740501404, -0.5781962275505066, -0.009772185236215591, 0.16345275938510895, -0.5226462483406067, 0.32631945610046387, -0.036637112498283386, -0.03602449968457222, -0.03494216874241829, 0.5091749429702759, 1.1931953430175781, 0.3060844838619232, -0.2357466071844101, 0.5173864364624023, 0.18411368131637573, -0.3761955201625824, -0.5210962891578674, 0.08033538609743118, 0.26173827052116394, 0.29171133041381836, 0.19000528752803802, 0.1908973604440689, 0.16795587539672852, -0.3757449686527252, 0.5456050634384155, 0.09160925447940826, -0.5352728962898254, -0.3947782814502716, 0.9420002698898315, -0.0814894437789917, -0.2628273069858551, 0.5969991683959961, -0.19976775348186493, -0.5986104607582092, 0.852129340171814, 0.573987603187561, 0.9807921648025513, -0.4627240300178528, -0.15713249146938324, 0.7650686502456665, 0.32511019706726074, 0.05792653560638428, 0.28040921688079834, -0.29973265528678894, -0.37663885951042175, -0.24112220108509064, -0.7475954294204712, 0.04251137003302574, 0.3802342414855957, -0.9126504063606262, 0.3036188781261444, -0.38813233375549316, -0.23858436942100525, -0.06405629217624664, 0.28564298152923584, -0.791558027267456, 0.35403358936309814, 0.07798857986927032, 1.0689905881881714, -0.9992772340774536, 0.9921969175338745, 0.41884827613830566, -0.5364304184913635, -1.2158539295196533, -0.13408398628234863, 0.2147650271654129, -0.7226791381835938, 0.6309953331947327, 0.15990085899829865, 0.09589295834302902, 0.09961505979299545, -0.5435777902603149, -1.1213767528533936, 1.4284164905548096, 0.13810990750789642, -0.6621049642562866, 0.1854562610387802, -0.09482903778553009, 0.4765961170196533, -0.4058613181114197, 0.2916368544101715, 0.8645843267440796, 0.6119853854179382, 0.1806057244539261, -1.0207101106643677, -0.11202772706747055, -0.38756558299064636, -0.3623710870742798, 0.042778369039297104, -0.673866331577301, 1.3478845357894897, -0.24031978845596313, -0.015104902908205986, -0.23718693852424622, 0.8661890625953674, 0.42428505420684814, 0.43711209297180176, 0.7989384531974792, 0.7960618734359741, 0.6578081250190735, -0.1800200492143631, 0.9491750001907349, -0.387695848941803, 0.5364533066749573, 1.1025701761245728, 0.3129183053970337, 0.6083076000213623, 0.21442565321922302, -0.5185142755508423, 0.2152235060930252, 0.9342486262321472, -0.2555871307849884, 0.5967757701873779, 0.3042230010032654, -0.07696487009525299, -0.31426069140434265, 0.25001823902130127, -0.9113274812698364, 0.6616122722625732, 0.17044629156589508, -0.4003406763076782, 0.3108890950679779, 0.2927277684211731, 0.022194184362888336, -0.3588936924934387, -0.2184411883354187, 0.5902963280677795, 0.006905138026922941, -0.40184780955314636, 0.913131594657898, -0.07768045365810394, 0.9333341717720032, -0.36694157123565674, 0.28320086002349854, -0.01843653991818428, -0.038103438913822174, -0.24129535257816315, -0.5485681295394897, 0.09948056191205978, -0.3101629912853241, -0.3449302017688751, -0.17932288348674774, 0.49286025762557983, -0.5206542611122131, -0.3256728947162628, 0.41135331988334656, 0.4059685468673706, 0.3731975853443146, -0.18669730424880981, -0.8287767171859741, 0.040474407374858856, 0.050314582884311676, -0.5452311038970947, 0.10688131302595139, 0.2395036667585373, 0.37277036905288696, 0.4900488555431366, 0.5633420944213867, 0.08480536937713623, 0.3837205171585083, 0.004425414837896824, 0.6374350190162659, -0.6929986476898193, -0.5879433155059814, -0.48792243003845215, 0.43882128596305847, 0.23380577564239502, -0.33488816022872925, 0.7392903566360474, 0.6962137818336487, 0.9946175217628479, -0.13840515911579132, 0.58528071641922, -0.006428469438105822, 0.6832190752029419, -0.587024986743927, 0.8803035616874695, -0.7337939739227295, 0.41754838824272156, -0.39324378967285156, -0.9518164992332458, 0.11138051748275757, 0.6950947046279907, -0.26281726360321045, 0.3406057059764862, 0.4352898597717285, 0.6714482307434082, -0.267010897397995, 0.12323509156703949, 0.07914283871650696, 0.32571032643318176, 0.16078899800777435, 0.8594651222229004, 0.745997965335846, -0.899250328540802, 0.4578664004802704, -0.7906534075737, -0.1730463206768036, -0.14424562454223633, -0.3430121839046478, -0.737521231174469, -0.7693500518798828, -0.33117684721946716, -0.3718395531177521, -0.20920303463935852, 1.1476224660873413, 0.9845795035362244, -0.8182552456855774, -0.400704562664032, 0.21459472179412842, 0.01809771917760372, -0.5252031087875366, -0.240106463432312, 0.7605071067810059, -0.07781724631786346, -0.7791475653648376, 0.6273384094238281, -0.10424254089593887, 0.27109116315841675, -0.16545632481575012, -0.3578752279281616, -0.2421329915523529, -0.088258296251297, 0.4094217121601105, 0.16693727672100067, -0.5835673809051514, -0.22199495136737823, -0.05214425548911095, 0.022324277088046074, 0.38087767362594604, 0.6318402290344238, -0.582075297832489, 0.165095716714859, 0.551514208316803, 0.20993107557296753, 0.6963393688201904, -0.13546757400035858, 0.13476301729679108, -0.592159628868103, 0.23811298608779907, 0.16560937464237213, 0.4057249426841736, 0.15782979130744934, -0.18373829126358032, 0.5361390709877014, 0.4427052140235901, -0.7391711473464966, -0.915693998336792, -0.05041663348674774, -1.286657452583313, -0.1320524960756302, 1.053575873374939, -0.039598360657691956, -0.23338864743709564, 0.07946523278951645, -0.22693923115730286, 0.598031222820282, -0.2693219780921936, 0.3879854083061218, 0.49420690536499023, -0.20468854904174805, -0.11112791299819946, -0.8357775211334229, 0.747685968875885, 0.4705135226249695, -0.4790458381175995, -0.23061440885066986, 0.4340395927429199, 0.5687340497970581, 0.25181901454925537, 0.8069607615470886, -0.22938887774944305, 0.408559113740921, 0.17764028906822205, 0.31735679507255554, -0.35353511571884155, -0.4780464470386505, -0.4981488287448883, 0.21708589792251587, -0.2252972573041916, -0.581417441368103 ]
Salesforce/blip-itm-base-coco
Salesforce
"2023-08-01T14:49:10Z"
39,319
3
transformers
[ "transformers", "pytorch", "tf", "blip", "image-text-matching", "arxiv:2201.12086", "license:bsd-3-clause", "endpoints_compatible", "has_space", "region:us" ]
null
"2022-12-12T17:53:18Z"
--- 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 - base architecture (with ViT base 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-base-coco") model = BlipForImageTextRetrieval.from_pretrained("Salesforce/blip-itm-base-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-base-coco") model = BlipForImageTextRetrieval.from_pretrained("Salesforce/blip-itm-base-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-base-coco") model = BlipForImageTextRetrieval.from_pretrained("Salesforce/blip-itm-base-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.3037397265434265, -0.612347424030304, -0.0431707464158535, 0.6299694776535034, -0.3996865153312683, 0.015010067261755466, -0.49756094813346863, -0.6936466097831726, -0.012491424567997456, 0.30090174078941345, -0.35361212491989136, -0.5350707769393921, -0.4510326087474823, -0.08037558943033218, -0.261829674243927, 0.6893800497055054, 0.16466259956359863, 0.060699231922626495, -0.2082723081111908, 0.0037968121469020844, -0.24461030960083008, -0.31293919682502747, -0.5270509123802185, -0.0021208368707448244, 0.009768636897206306, 0.37492021918296814, 0.5431740283966064, 0.4971347749233246, 0.8009277582168579, 0.3747636079788208, -0.07154513150453568, 0.05504435673356056, -0.32400521636009216, -0.3961055874824524, -0.12455976754426956, -0.7514009475708008, -0.1929905265569687, 0.05974429100751877, 0.5001850724220276, 0.600605309009552, 0.00794887449592352, 0.42651912569999695, 0.11205822974443436, 0.5890306234359741, -0.7533155679702759, 0.4221635162830353, -0.778252363204956, 0.04749483987689018, -0.02479846403002739, -0.19774188101291656, -0.38656187057495117, -0.14762720465660095, 0.1136038601398468, -0.8368759155273438, 0.6419813632965088, 0.21943017840385437, 1.656711459159851, 0.3119775354862213, 0.26688632369041443, -0.24618113040924072, -0.4092562794685364, 0.8695800304412842, -0.5664054751396179, 0.46481987833976746, 0.177338108420372, 0.2811776399612427, 0.09339693188667297, -0.7829959988594055, -0.749731183052063, -0.3423002064228058, -0.09012424945831299, 0.4164147973060608, -0.220809668302536, -0.1001875177025795, 0.28631189465522766, 0.47685739398002625, -0.6359714865684509, -0.05353691801428795, -0.8399859070777893, -0.2931634783744812, 0.6504154205322266, -0.09653294831514359, 0.2664586901664734, -0.24797792732715607, -0.5646516680717468, -0.4338691234588623, -0.5494070649147034, 0.4382669925689697, -0.08575709909200668, 0.22353942692279816, -0.4785730242729187, 0.7513149976730347, -0.029123371466994286, 0.93017578125, 0.26187893748283386, -0.2576547861099243, 0.5990546941757202, -0.34186843037605286, -0.4870913624763489, -0.02565952017903328, 1.1382410526275635, 0.615215003490448, 0.3505611717700958, 0.06589256227016449, 0.09404686838388443, 0.18470877408981323, 0.06916695088148117, -0.8679714202880859, -0.423803448677063, 0.19796420633792877, -0.2677766680717468, -0.25052276253700256, 0.09969497472047806, -0.9675990343093872, -0.08187172561883926, -0.011459322646260262, 0.5121965408325195, -0.5593889355659485, -0.16151803731918335, 0.19783370196819305, -0.25878411531448364, 0.38317152857780457, 0.3164234459400177, -0.8237274289131165, -0.006138448137789965, 0.25823748111724854, 0.9678137898445129, 0.03179624676704407, -0.6113705635070801, -0.2633424401283264, 0.09494242072105408, -0.43202635645866394, 0.5370757579803467, -0.13754333555698395, -0.1898595094680786, -0.08693679422140121, 0.202232226729393, -0.18648579716682434, -0.5496596693992615, 0.07698341459035873, -0.25707244873046875, 0.23525606095790863, -0.1489628404378891, -0.256944864988327, -0.3695397675037384, 0.3769647479057312, -0.36661356687545776, 1.0492136478424072, 0.05061424896121025, -0.8149071335792542, 0.6309851408004761, -0.5214957594871521, -0.32156363129615784, 0.2427372932434082, -0.2542026937007904, -0.6042468547821045, -0.11804849654436111, 0.5000983476638794, 0.39491772651672363, -0.4333851933479309, 0.0931333675980568, -0.29271796345710754, -0.3764957785606384, 0.12827344238758087, -0.305232971906662, 1.13203763961792, -0.04817745462059975, -0.6578195095062256, -0.018560130149126053, -0.8542880415916443, -0.020666277036070824, 0.2886395752429962, -0.36062750220298767, 0.030038781464099884, -0.2916029691696167, 0.255563348531723, 0.23580223321914673, 0.5469037890434265, -0.5920506715774536, 0.0072396197356283665, -0.3981749713420868, 0.4027614891529083, 0.5517368316650391, -0.22848516702651978, 0.3396369218826294, -0.07119915634393692, 0.35820019245147705, 0.15619617700576782, 0.38926172256469727, -0.2969833016395569, -0.6599951386451721, -1.0710735321044922, -0.5377672910690308, -0.018976394087076187, 0.6629199981689453, -0.8437595367431641, 0.4495367109775543, -0.2859444320201874, -0.5609506368637085, -0.7450996041297913, 0.19053195416927338, 0.6446237564086914, 0.8795709013938904, 0.6486019492149353, -0.4930487275123596, -0.505582869052887, -0.7774931788444519, 0.18901805579662323, -0.28398221731185913, 0.025968212634325027, 0.33695074915885925, 0.577332615852356, -0.1265162229537964, 0.8980472683906555, -0.5058019161224365, -0.45469745993614197, -0.26425865292549133, 0.04646115377545357, 0.3951131999492645, 0.7151556611061096, 0.7891459465026855, -0.8409756422042847, -0.4629513919353485, 0.06466116011142731, -0.915047287940979, 0.0945947915315628, -0.01080284919589758, -0.03585424646735191, 0.419414222240448, 0.49858570098876953, -0.61171555519104, 0.6796534657478333, 0.4943099021911621, -0.20263351500034332, 0.6828104257583618, -0.2987809479236603, 0.10668034851551056, -0.9054161906242371, 0.41050413250923157, 0.24821420013904572, -0.049619998782873154, -0.2893011271953583, 0.11805816739797592, 0.14868558943271637, -0.12134120613336563, -0.6915456652641296, 0.6804664134979248, -0.610703706741333, -0.2927737534046173, 0.09290749579668045, 0.011705423705279827, 0.1318560093641281, 0.769072413444519, 0.3373437225818634, 0.7474609613418579, 1.1022695302963257, -0.7802143692970276, 0.38609105348587036, 0.4262893497943878, -0.5261058211326599, 0.39491239190101624, -0.8103880882263184, -0.09703865647315979, 0.029319193214178085, -0.23111209273338318, -1.2056005001068115, -0.12782511115074158, 0.3331129252910614, -0.7114625573158264, 0.3013015687465668, -0.29136183857917786, -0.35977351665496826, -0.7337042093276978, -0.3209458887577057, 0.3728681802749634, 0.4663538932800293, -0.7492954730987549, 0.2959863841533661, 0.16256083548069, 0.18451742827892303, -0.8737304210662842, -1.1544528007507324, 0.04703287407755852, 0.08589309453964233, -0.6585836410522461, 0.483751505613327, -0.09430202096700668, 0.1760600060224533, 0.12604351341724396, 0.09404578804969788, -0.10766427963972092, -0.26419174671173096, 0.28658002614974976, 0.5504520535469055, -0.36750781536102295, -0.23260773718357086, -0.40363043546676636, 0.12067503482103348, -0.16158293187618256, -0.21921563148498535, 0.8212370276451111, -0.363987535238266, -0.08807603269815445, -0.7463614344596863, -0.10387182235717773, 0.605160117149353, -0.4796641170978546, 0.5717307925224304, 0.7651385068893433, -0.22102519869804382, 0.02454327791929245, -0.5858930349349976, 0.056046776473522186, -0.5727555751800537, 0.5011629462242126, -0.2563171088695526, -0.4047468602657318, 0.5489088296890259, 0.346025675535202, -0.03490893170237541, 0.2890074849128723, 0.7335690259933472, -0.23663271963596344, 0.6962863206863403, 0.8507379293441772, -0.08653883635997772, 0.7676528096199036, -0.9310252666473389, 0.005468020681291819, -0.7701525092124939, -0.45998692512512207, -0.18869881331920624, -0.06871858984231949, -0.4846167266368866, -0.532231867313385, 0.25299200415611267, 0.3243917226791382, -0.330395370721817, 0.3081710636615753, -0.6237044334411621, 0.20975227653980255, 0.7734564542770386, 0.23831799626350403, -0.08336177468299866, 0.21380610764026642, -0.2708123028278351, 0.02036784030497074, -0.7614277601242065, -0.1918542981147766, 1.0299278497695923, 0.21523253619670868, 0.7435338497161865, -0.29649752378463745, 0.4119589924812317, -0.26796314120292664, 0.2256345897912979, -0.6803820729255676, 0.7030857801437378, -0.2686902582645416, -0.5724881291389465, -0.21675552427768707, -0.3023358881473541, -0.9158574342727661, 0.2189519852399826, -0.3634842038154602, -0.9609521627426147, 0.28369051218032837, 0.5115517377853394, -0.20134682953357697, 0.21719753742218018, -0.7954820990562439, 1.0455204248428345, -0.5046870708465576, -0.713946521282196, 0.19341151416301727, -0.6187392473220825, 0.3103293180465698, 0.3435639441013336, 0.019732896238565445, 0.23798149824142456, 0.18856975436210632, 0.7136194109916687, -0.519149899482727, 0.887362003326416, -0.2696984112262726, 0.3369917869567871, 0.4607880711555481, -0.16995540261268616, -0.03644827380776405, -0.06700156629085541, 0.16847969591617584, 0.4515784680843353, -0.07378124445676804, -0.6237725019454956, -0.473205029964447, 0.24155794084072113, -0.7716894745826721, -0.480064332485199, -0.41716620326042175, -0.51933753490448, 0.044735342264175415, 0.33564627170562744, 0.8096433877944946, 0.28464803099632263, 0.22734755277633667, 0.12279673665761948, 0.2338196337223053, -0.509355902671814, 0.7162567973136902, 0.3490024507045746, -0.45727255940437317, -0.46874597668647766, 1.0510660409927368, -0.027408171445131302, 0.21386052668094635, 0.3598380982875824, 0.22864660620689392, -0.4074682891368866, -0.5285419225692749, -0.6375650763511658, 0.4625082015991211, -0.5757262706756592, -0.30467742681503296, -0.29652291536331177, -0.24693980813026428, -0.5312803983688354, -0.35628193616867065, -0.5595639944076538, -0.1107349768280983, -0.43796101212501526, 0.14099399745464325, 0.43234169483184814, 0.278089314699173, -0.08413926512002945, 0.4498075246810913, -0.44864946603775024, 0.4015759825706482, 0.24631930887699127, 0.23686233162879944, -0.07470659166574478, -0.559000551700592, -0.1566438227891922, 0.17846913635730743, -0.3027983605861664, -0.6923059821128845, 0.6907110810279846, 0.289838045835495, 0.44413983821868896, 0.45443639159202576, -0.42665767669677734, 1.1864826679229736, -0.24265889823436737, 0.8548616766929626, 0.6111079454421997, -1.0026352405548096, 0.7533454895019531, 0.01043946947902441, 0.1989467889070511, 0.4930100440979004, 0.3261328339576721, -0.332500159740448, -0.44772300124168396, -0.5586530566215515, -0.9870918393135071, 0.7310898303985596, 0.13866811990737915, -0.1191873624920845, 0.2589576542377472, 0.25522133708000183, -0.23589809238910675, 0.3599153161048889, -0.9427511096000671, -0.20278650522232056, -0.6080714464187622, -0.24301205575466156, -0.3387948274612427, 0.14901293814182281, 0.19552285969257355, -0.7312281131744385, 0.47677090764045715, -0.17406117916107178, 0.40998372435569763, 0.4501788914203644, -0.5078932046890259, -0.07753325253725052, -0.4374428689479828, 0.5145973563194275, 0.5543767213821411, -0.2815167009830475, -0.0073333862237632275, -0.13156075775623322, -0.8362487554550171, -0.19384703040122986, -0.0035827956162393093, -0.3176954388618469, -0.04741879925131798, 0.5936540961265564, 0.9673782587051392, 0.10494346916675568, -0.6156421899795532, 0.8193820714950562, 0.04335039108991623, -0.16674144566059113, -0.276612788438797, 0.10101665556430817, -0.10607054084539413, 0.2278680056333542, 0.5525717735290527, 0.19618773460388184, -0.21432137489318848, -0.6336336135864258, 0.21908926963806152, 0.44342041015625, -0.2591571807861328, -0.3075506389141083, 0.7900407314300537, -0.1388380080461502, -0.2298368364572525, 0.6730995774269104, -0.32786646485328674, -0.7428692579269409, 0.9262480735778809, 0.7447575926780701, 0.4553615152835846, -0.11899973452091217, 0.34669363498687744, 0.7615930438041687, 0.43433693051338196, -0.05637364089488983, 0.4388672113418579, -0.018015451729297638, -0.8458731770515442, -0.17801901698112488, -0.7708901762962341, -0.25864002108573914, 0.2770564556121826, -0.5870835781097412, 0.4828956425189972, -0.7194225788116455, 0.0610223263502121, 0.06239220127463341, 0.13168786466121674, -0.9410393238067627, 0.5033875703811646, 0.15609923005104065, 0.847255527973175, -0.853087306022644, 0.5439252853393555, 0.844740092754364, -0.9783808588981628, -0.9563506245613098, -0.11090791970491409, -0.3409995138645172, -1.1246395111083984, 0.8216870427131653, 0.4298679828643799, -0.07096423953771591, -0.02430841512978077, -0.8921176195144653, -0.7839856743812561, 1.1090799570083618, 0.5212844610214233, -0.5721416473388672, -0.015829209238290787, 0.24352090060710907, 0.6618017554283142, -0.2477395236492157, 0.30979207158088684, 0.19558879733085632, 0.37142571806907654, 0.4218822717666626, -0.9715233445167542, -0.054223038256168365, -0.32192420959472656, -0.07045774906873703, -0.31353771686553955, -0.840281069278717, 1.0533087253570557, -0.49953052401542664, -0.1635320484638214, -0.02907729335129261, 0.7113486528396606, 0.45823153853416443, 0.3215923309326172, 0.3940117061138153, 0.5796409845352173, 0.7017368078231812, 0.05570746213197708, 0.948723554611206, -0.3774811029434204, 0.6370473504066467, 0.8360634446144104, 0.2174995243549347, 0.8331445455551147, 0.5418146252632141, -0.13196641206741333, 0.2760002017021179, 0.6621713638305664, -0.5331029891967773, 0.5114125609397888, 0.11404352635145187, 0.23841740190982819, -0.08520128577947617, 0.18399247527122498, -0.28070932626724243, 0.8403686881065369, 0.39902591705322266, -0.3669942021369934, -0.058645740151405334, 0.14331740140914917, -0.12480033189058304, -0.13918840885162354, -0.5169534683227539, 0.3235803544521332, -0.07935453951358795, -0.6636623740196228, 1.0589399337768555, -0.2455216646194458, 1.0381004810333252, -0.29604262113571167, 0.00510178180411458, -0.140785813331604, 0.27944961190223694, -0.3169756829738617, -0.899430513381958, 0.08415738493204117, 0.08674353361129761, 0.0647825226187706, 0.10946489125490189, 0.3940304219722748, -0.5152539610862732, -1.0225096940994263, 0.4158886671066284, 0.16888119280338287, 0.3148201107978821, 0.09525004029273987, -1.038237452507019, 0.16559293866157532, 0.09857217222452164, -0.24398952722549438, -0.15542477369308472, 0.2373419553041458, -0.02384650520980358, 0.7770376205444336, 0.689418613910675, 0.33256518840789795, 0.6057382822036743, -0.033065296709537506, 0.8134576678276062, -0.6105673909187317, -0.4618746042251587, -0.7583349943161011, 0.5630541443824768, -0.15201272070407867, -0.5683082342147827, 0.6134204268455505, 0.9071805477142334, 1.0847841501235962, -0.22925718128681183, 0.5984099507331848, -0.2697755992412567, 0.03808027133345604, -0.630363404750824, 0.7812828421592712, -0.8132110238075256, -0.037561360746622086, -0.5324338674545288, -0.7455464005470276, -0.5698528289794922, 0.9965596795082092, -0.31059974431991577, 0.010521800257265568, 0.6194959282875061, 1.1569124460220337, -0.32841044664382935, -0.4921739995479584, 0.26868578791618347, 0.3013285994529724, 0.3038751482963562, 0.7211644053459167, 0.5718218684196472, -0.6182609796524048, 0.6399634480476379, -0.6898654103279114, -0.24450083076953888, -0.25679659843444824, -0.6875184178352356, -1.0127943754196167, -0.776732325553894, -0.49449118971824646, -0.24144186079502106, -0.02634861133992672, 0.5771375894546509, 0.8526725769042969, -0.7208154201507568, -0.34883415699005127, -0.2811683416366577, 0.008194572292268276, -0.26628804206848145, -0.23490604758262634, 0.5809909701347351, -0.37025752663612366, -0.8469354510307312, 0.01597723364830017, 0.32153216004371643, 0.14938119053840637, -0.13173314929008484, 0.057955943048000336, -0.31275269389152527, -0.3143450915813446, 0.42251110076904297, 0.5001547932624817, -0.6355298161506653, -0.22070010006427765, 0.07948168367147446, -0.13588330149650574, 0.4698859751224518, 0.35466814041137695, -0.6478200554847717, 0.5280274152755737, 0.29020899534225464, 0.3424132764339447, 0.9460479021072388, -0.09938447922468185, 0.12025482952594757, -0.759019136428833, 0.7708447575569153, 0.10637714713811874, 0.5211957693099976, 0.5997293591499329, -0.28614306449890137, 0.3841247856616974, 0.4399029314517975, -0.18031536042690277, -0.8706222772598267, -0.013996850699186325, -1.3928616046905518, -0.21540100872516632, 1.139722228050232, -0.31743115186691284, -0.8158504962921143, 0.16259583830833435, -0.28779011964797974, 0.3546626567840576, -0.1621704250574112, 0.7680788040161133, 0.2282891869544983, 0.012312153354287148, -0.5194090008735657, -0.2072208970785141, 0.396947979927063, 0.2870652973651886, -0.6561370491981506, -0.21334302425384521, 0.2947622537612915, 0.5489854216575623, 0.5818740129470825, 0.6936512589454651, -0.07099676877260208, 0.5291107296943665, 0.1139436587691307, 0.5679247975349426, -0.1660582274198532, -0.3316532075405121, -0.18117888271808624, 0.13380087912082672, -0.15508805215358734, -0.7081120610237122 ]
microsoft/deberta-v3-large
microsoft
"2023-03-19T06:24:32Z"
39,281
105
transformers
[ "transformers", "pytorch", "tf", "deberta-v2", "deberta", "deberta-v3", "fill-mask", "en", "arxiv:2006.03654", "arxiv:2111.09543", "license:mit", "endpoints_compatible", "has_space", "region:us" ]
fill-mask
"2022-03-02T23:29:05Z"
--- language: en tags: - deberta - deberta-v3 - fill-mask thumbnail: https://huggingface.co/front/thumbnails/microsoft.png license: mit --- ## DeBERTaV3: Improving DeBERTa using ELECTRA-Style Pre-Training with Gradient-Disentangled Embedding Sharing [DeBERTa](https://arxiv.org/abs/2006.03654) improves the BERT and RoBERTa models using disentangled attention and enhanced mask decoder. With those two improvements, DeBERTa out perform RoBERTa on a majority of NLU tasks with 80GB training data. In [DeBERTa V3](https://arxiv.org/abs/2111.09543), we further improved the efficiency of DeBERTa using ELECTRA-Style pre-training with Gradient Disentangled Embedding Sharing. Compared to DeBERTa, our V3 version significantly improves the model performance on downstream tasks. You can find more technique details about the new model from our [paper](https://arxiv.org/abs/2111.09543). Please check the [official repository](https://github.com/microsoft/DeBERTa) for more implementation details and updates. The DeBERTa V3 large model comes with 24 layers and a hidden size of 1024. It has 304M backbone parameters with a vocabulary containing 128K tokens which introduces 131M parameters in the Embedding layer. This model was trained using the 160GB data as DeBERTa V2. #### Fine-tuning on NLU tasks We present the dev results on SQuAD 2.0 and MNLI tasks. | Model |Vocabulary(K)|Backbone #Params(M)| SQuAD 2.0(F1/EM) | MNLI-m/mm(ACC)| |-------------------|----------|-------------------|-----------|----------| | RoBERTa-large |50 |304 | 89.4/86.5 | 90.2 | | XLNet-large |32 |- | 90.6/87.9 | 90.8 | | DeBERTa-large |50 |- | 90.7/88.0 | 91.3 | | **DeBERTa-v3-large**|128|304 | **91.5/89.0**| **91.8/91.9**| #### Fine-tuning with HF transformers ```bash #!/bin/bash cd transformers/examples/pytorch/text-classification/ pip install datasets export TASK_NAME=mnli output_dir="ds_results" num_gpus=8 batch_size=8 python -m torch.distributed.launch --nproc_per_node=${num_gpus} \ run_glue.py \ --model_name_or_path microsoft/deberta-v3-large \ --task_name $TASK_NAME \ --do_train \ --do_eval \ --evaluation_strategy steps \ --max_seq_length 256 \ --warmup_steps 50 \ --per_device_train_batch_size ${batch_size} \ --learning_rate 6e-6 \ --num_train_epochs 2 \ --output_dir $output_dir \ --overwrite_output_dir \ --logging_steps 1000 \ --logging_dir $output_dir ``` ### Citation If you find DeBERTa useful for your work, please cite the following papers: ``` latex @misc{he2021debertav3, title={DeBERTaV3: Improving DeBERTa using ELECTRA-Style Pre-Training with Gradient-Disentangled Embedding Sharing}, author={Pengcheng He and Jianfeng Gao and Weizhu Chen}, year={2021}, eprint={2111.09543}, archivePrefix={arXiv}, primaryClass={cs.CL} } ``` ``` latex @inproceedings{ he2021deberta, title={DEBERTA: DECODING-ENHANCED BERT WITH DISENTANGLED ATTENTION}, author={Pengcheng He and Xiaodong Liu and Jianfeng Gao and Weizhu Chen}, booktitle={International Conference on Learning Representations}, year={2021}, url={https://openreview.net/forum?id=XPZIaotutsD} } ```
[ -0.3905394375324249, -0.6865705847740173, 0.29520896077156067, 0.37590885162353516, -0.27294403314590454, 0.094558946788311, -0.15613019466400146, -0.5016476511955261, 0.31103596091270447, 0.013542620465159416, -0.3468061685562134, -0.5308055877685547, -0.9669297933578491, -0.0864136815071106, -0.2209387868642807, 0.8291226625442505, -0.1955876648426056, 0.14483553171157837, 0.023305224254727364, -0.21976663172245026, -0.4777621924877167, -0.5808428525924683, -0.687673032283783, -0.5055463314056396, 0.5892305374145508, 0.2031002938747406, 0.47374245524406433, 0.18953894078731537, 0.5005937814712524, 0.328995019197464, -0.32268327474594116, 0.26386189460754395, -0.49198392033576965, -0.0467967614531517, 0.1644054800271988, -0.36896127462387085, -0.7759806513786316, 0.016922686249017715, 0.5609470009803772, 0.2845950424671173, 0.026664378121495247, 0.2135770320892334, 0.3122418522834778, 1.0237672328948975, -0.8504877090454102, 0.11082075536251068, -0.6538496613502502, 0.007672642357647419, 0.051157984882593155, -0.05017796903848648, -0.42027685046195984, -0.1618475764989853, 0.3296321928501129, -0.48577195405960083, 0.22891786694526672, -0.34096333384513855, 1.2703626155853271, 0.565827488899231, -0.21452023088932037, -0.07679792493581772, -0.707282304763794, 1.0172219276428223, -0.777451753616333, 0.3581763207912445, 0.27991700172424316, 0.13041405379772186, -0.026295125484466553, -0.6986900568008423, -0.6840955018997192, -0.06154176965355873, -0.05164739117026329, 0.29060813784599304, -0.6781202554702759, -0.07011446356773376, 0.36905983090400696, 0.2930251955986023, -0.5284964442253113, 0.28437164425849915, -0.43646538257598877, 0.08004171401262283, 0.6542693376541138, 0.005677152890712023, -0.0282900370657444, 0.045235808938741684, -0.41453292965888977, -0.42652347683906555, -0.7753819227218628, 0.008817368187010288, 0.5545351505279541, -0.12752197682857513, -0.07780244946479797, 0.1421346813440323, -0.09428931772708893, 0.8825772404670715, 0.11767194420099258, 0.3640003800392151, 0.8099566698074341, -0.055522408336400986, -0.31818246841430664, 0.15560385584831238, 0.7670623660087585, 0.2083054482936859, -0.1597592830657959, -0.06323663890361786, -0.05186726152896881, -0.06393067538738251, 0.24510085582733154, -0.9899914860725403, -0.5557645559310913, 0.45178696513175964, -0.44872117042541504, -0.27488845586776733, -0.10932709276676178, -0.8308585286140442, -0.27015525102615356, -0.45596548914909363, 0.6617472171783447, -0.5736551880836487, -0.28706440329551697, 0.3542111814022064, -0.005288309417665005, 0.2784949541091919, 0.5434643030166626, -1.1478301286697388, 0.09751574695110321, 0.3598352372646332, 0.8365861773490906, -0.05015692114830017, -0.3567110002040863, -0.48042091727256775, -0.23634420335292816, 0.008707753382623196, 0.24690905213356018, -0.06005041301250458, 0.205290287733078, -0.17654459178447723, 0.021489007398486137, -0.23652394115924835, -0.29607975482940674, 0.27576133608818054, -0.7471079230308533, -0.022708121687173843, -0.20233559608459473, -0.36936405301094055, -0.4607465863227844, 0.23165865242481232, -0.7766910195350647, 1.039328694343567, 0.10146412998437881, -0.9192140698432922, 0.264132022857666, -0.6979784965515137, -0.07314446568489075, -0.28344693779945374, 0.09871108084917068, -0.6454600691795349, -0.16361461579799652, 0.5092369914054871, 0.6686791181564331, -0.1300855129957199, 0.11453672498464584, -0.20950569212436676, -0.5443652272224426, 0.2618350386619568, -0.43970227241516113, 1.2468271255493164, 0.30029651522636414, -0.7877021431922913, -0.024321993812918663, -0.8827788829803467, -0.017196346074342728, 0.23516695201396942, -0.2150363177061081, -0.2932378351688385, -0.05540009215474129, -0.06618349999189377, 0.18014533817768097, 0.5891770720481873, -0.5382871031761169, 0.27064797282218933, -0.37962988018989563, 0.7378033399581909, 0.7215084433555603, -0.33150967955589294, 0.4178503155708313, -0.23980474472045898, 0.2848663926124573, 0.2744254469871521, 0.3054159879684448, 0.25854581594467163, -0.4785509407520294, -1.1017049551010132, -0.6433343291282654, 0.659098207950592, 0.5546731948852539, -0.5761637687683105, 0.7269921898841858, -0.2429397851228714, -0.8189787864685059, -0.7009227275848389, 0.15415677428245544, 0.3145914375782013, 0.23312373459339142, 0.8109777569770813, -0.034273069351911545, -0.7528449892997742, -0.9321418404579163, 0.10102338343858719, 0.06442470848560333, 0.030592147260904312, 0.058663807809352875, 0.7075401544570923, -0.46747809648513794, 0.7480132579803467, -0.644599199295044, -0.4869249761104584, -0.25817620754241943, 0.20199105143547058, 0.4791392683982849, 0.6973174810409546, 0.8713784217834473, -0.6232768297195435, -0.6313508749008179, -0.4042282700538635, -0.6620965003967285, 0.3949131667613983, 0.05914401635527611, -0.2858019471168518, 0.39409488439559937, 0.24060222506523132, -0.49137407541275024, 0.38106784224510193, 0.6802847385406494, -0.1244000568985939, -0.041931286454200745, -0.4146399199962616, 0.05030897632241249, -1.1982303857803345, 0.14991681277751923, 0.014444313943386078, -0.08492275327444077, -0.5603755116462708, -0.16998252272605896, 0.20716510713100433, 0.24144534766674042, -0.47343164682388306, 0.15027858316898346, -0.6037722826004028, 0.24198614060878754, -0.013259136117994785, 0.38425686955451965, 0.15259462594985962, 0.9112133383750916, 0.023823751136660576, 0.5883715152740479, 0.6825747489929199, -0.632415771484375, 0.2356366068124771, 0.4805978536605835, -0.3789425194263458, 0.06856895238161087, -1.077387809753418, 0.3135574758052826, -0.2046326845884323, 0.3788546323776245, -1.0054293870925903, 0.18082937598228455, 0.3510270416736603, -0.5213068127632141, 0.5196996331214905, -0.13617226481437683, -0.6056702136993408, -0.33456137776374817, -0.5904459357261658, 0.2060205042362213, 0.8847318291664124, -0.8397560715675354, 0.41382163763046265, 0.33427050709724426, 0.3395579755306244, -0.9711461663246155, -0.836187481880188, -0.2539181709289551, -0.3323023021221161, -0.6096401214599609, 0.813751220703125, -0.106316477060318, 0.01924874633550644, -0.07700982689857483, 0.11776712536811829, -0.19647929072380066, 0.25722262263298035, 0.16697165369987488, 0.3680294156074524, 0.13059702515602112, 0.2287641167640686, 0.1302085518836975, 0.0668897032737732, -0.10614138841629028, -0.09705362468957901, 0.6823790669441223, -0.3786345422267914, -0.0854167640209198, -0.508012592792511, 0.09425155818462372, 0.46392786502838135, -0.442436546087265, 1.022617220878601, 1.0583926439285278, -0.2814723551273346, -0.12143506854772568, -0.4334489405155182, -0.21230244636535645, -0.4957163333892822, 0.33274760842323303, -0.16267481446266174, -0.6608126759529114, 0.602533221244812, 0.21925118565559387, 0.22033211588859558, 0.6872339248657227, 0.4967009723186493, -0.16576890647411346, 1.0617033243179321, 0.4927791655063629, -0.11821899563074112, 0.7704923748970032, -1.1754884719848633, 0.19781464338302612, -1.2961251735687256, -0.27755245566368103, -0.44957971572875977, -0.6988741755485535, -0.5367451906204224, -0.3602675795555115, 0.17671243846416473, 0.5681841373443604, -0.2802776098251343, 0.6920755505561829, -0.9765403270721436, 0.07036813348531723, 0.6327997446060181, 0.5219780206680298, 0.08536765724420547, 0.17374630272388458, 0.24133354425430298, -0.0562102310359478, -0.8052203059196472, -0.47841745615005493, 1.263088583946228, 0.5351086258888245, 0.8092742562294006, 0.3742111921310425, 1.0428093671798706, 0.05058956518769264, -0.13634248077869415, -0.5558317303657532, 0.4263294041156769, -0.12201477587223053, -0.4599049687385559, -0.24214662611484528, -0.3031761050224304, -1.3132188320159912, 0.37980711460113525, -0.20765475928783417, -1.0055570602416992, 0.4362863302230835, 0.4118631184101105, -0.4388042390346527, 0.37079623341560364, -0.6237993240356445, 0.7053939700126648, -0.02901151403784752, -0.4557708203792572, -0.3451467454433441, -0.5465927124023438, 0.12834301590919495, 0.0962919071316719, -0.41106414794921875, -0.01651175506412983, 0.12087153643369675, 1.0226235389709473, -0.28731611371040344, 0.8463194370269775, -0.2701668441295624, -0.3095732629299164, 0.49504560232162476, -0.2523377239704132, 0.7929385900497437, 0.2551617920398712, -0.06651434302330017, 0.5725225210189819, -0.007543910760432482, -0.38532209396362305, -0.6506693959236145, 1.021005392074585, -1.1805576086044312, -0.4443987011909485, -0.6068119406700134, -0.3905700445175171, -0.07224763929843903, -0.04305033013224602, 0.48018112778663635, 0.6152706742286682, 0.11773129552602768, 0.512479305267334, 1.0400457382202148, -0.09010347723960876, 0.600847065448761, 0.5219535231590271, 0.14731118083000183, -0.33468541502952576, 0.9609429836273193, 0.24458928406238556, -0.03775923326611519, 0.5640514492988586, -0.24606800079345703, -0.4219450056552887, -0.75221186876297, -0.4733388423919678, 0.16523481905460358, -0.752250611782074, -0.30584484338760376, -1.0442101955413818, -0.2085431069135666, -0.3358731269836426, 0.08391870558261871, -0.47970840334892273, -0.6466058492660522, -0.8609718084335327, 0.02902000956237316, 0.7683958411216736, 0.5861354470252991, -0.06601378321647644, 0.2562085688114166, -0.8754735589027405, 0.00039725768147036433, 0.25747552514076233, 0.12163099646568298, 0.24574799835681915, -0.619036853313446, -0.42338958382606506, 0.2789037227630615, -0.6738798022270203, -0.9033474922180176, 0.42843538522720337, -0.058810655027627945, 0.6753367185592651, -0.11535152792930603, 0.11794135719537735, 0.5131619572639465, -0.4291478097438812, 0.8566712141036987, 0.25901004672050476, -1.0243804454803467, 0.6387273073196411, -0.15167135000228882, 0.14091680943965912, 0.6127694249153137, 0.6034160256385803, 0.19699662923812866, -0.06329025328159332, -0.8542917370796204, -1.068603515625, 0.808191180229187, 0.5091237425804138, 0.026707284152507782, 0.10810931026935577, 0.09245998412370682, -0.15028905868530273, 0.1625390499830246, -0.6765539050102234, -0.53437340259552, -0.30040112137794495, -0.2749371826648712, -0.1862976849079132, -0.2275938093662262, -0.13510818779468536, -0.5975090265274048, 0.9510713815689087, 0.10609579086303711, 0.6586174368858337, 0.5259730219841003, -0.34174856543540955, 0.2894497215747833, 0.08975689858198166, 0.6851643323898315, 0.760417103767395, -0.4855453372001648, -0.015624110586941242, 0.38666975498199463, -0.5356441140174866, 0.20074549317359924, 0.4177877604961395, -0.05466726794838905, 0.24920642375946045, 0.2820677161216736, 1.0918809175491333, -0.10285694152116776, -0.38327333331108093, 0.5120376348495483, -0.1667812019586563, -0.46369385719299316, -0.4486252963542938, 0.04586410894989967, -0.15501128137111664, 0.5063602924346924, 0.37331581115722656, 0.12819652259349823, 0.195694237947464, -0.17142975330352783, -0.032135892659425735, 0.30884209275245667, -0.4266078770160675, -0.36917242407798767, 0.5905554890632629, 0.3109208941459656, 0.054093170911073685, 0.5464416146278381, -0.21830807626247406, -0.5460960865020752, 0.7153280973434448, 0.44702404737472534, 0.9694146513938904, -0.0007869676337577403, 0.2128390073776245, 0.7279686331748962, 0.30729246139526367, -0.0530453696846962, 0.4745343327522278, 0.01989401876926422, -0.5505804419517517, -0.26999345421791077, -0.5179344415664673, -0.1472395807504654, 0.41026657819747925, -0.7286121845245361, 0.2573055624961853, -0.24911008775234222, -0.22071009874343872, -0.0208887942135334, 0.2558261454105377, -0.9746153354644775, -0.01640080101788044, -0.1261833906173706, 0.6778243184089661, -0.584929883480072, 0.9706360101699829, 0.7285823822021484, -0.5602025389671326, -0.8030979037284851, -0.14955593645572662, -0.5520575642585754, -0.5736376047134399, 1.026313304901123, 0.21776695549488068, -0.1859847456216812, 0.24479998648166656, -0.3840043544769287, -1.0241527557373047, 1.5669870376586914, 0.44613680243492126, -0.9149606823921204, 0.04111180827021599, -0.2989828586578369, 0.6234539747238159, -0.11250446736812592, 0.2973841726779938, 0.3910324275493622, 0.2599172592163086, -0.11543896049261093, -0.7146036028862, 0.17752519249916077, -0.2102121263742447, 0.12711946666240692, 0.27040714025497437, -0.8958821296691895, 1.2255568504333496, -0.13443195819854736, 0.04097486659884453, 0.01474442146718502, 0.6426950097084045, 0.25031614303588867, 0.0897599533200264, 0.5153921842575073, 0.8141024112701416, 0.8108887076377869, -0.14839455485343933, 0.8429190516471863, -0.371573269367218, 0.7135482430458069, 1.070308804512024, 0.08071405440568924, 0.8558321595191956, 0.4950275719165802, -0.33986684679985046, 0.7156746983528137, 0.6467300653457642, -0.12350726872682571, 0.7974557876586914, 0.37303778529167175, -0.08055059611797333, -0.05001404136419296, 0.3594509959220886, -0.7453082799911499, 0.49359360337257385, 0.1263061761856079, -0.6562349796295166, -0.09574958682060242, 0.09360294789075851, 0.07289186865091324, -0.2474493831396103, -0.08074808120727539, 0.5518307089805603, -0.10958553850650787, -0.6255821585655212, 1.2424653768539429, -0.15737007558345795, 0.8107343316078186, -0.5309253931045532, -0.2227090448141098, -0.033380381762981415, 0.552167534828186, -0.20806562900543213, -0.5189099311828613, 0.020914696156978607, -0.02110523357987404, -0.1929226666688919, 0.008416096679866314, 0.40494269132614136, -0.3692205250263214, -0.3217373192310333, 0.5168783068656921, 0.24013572931289673, 0.10287165641784668, -0.0006180322379805148, -0.8521592020988464, 0.3581323027610779, 0.08379515260457993, -0.45536139607429504, 0.33017081022262573, 0.161491259932518, 0.349717378616333, 0.40089553594589233, 0.43021950125694275, -0.2968912124633789, 0.12407461553812027, -0.07880183309316635, 1.0922791957855225, -0.2905633747577667, -0.2560737431049347, -1.0061218738555908, 0.5796952247619629, -0.23634184896945953, -0.4513145089149475, 0.9100146889686584, 0.31666019558906555, 0.7896210551261902, -0.19303546845912933, 0.5321195125579834, -0.25414836406707764, 0.09916961938142776, -0.6855541467666626, 0.6829653978347778, -0.7930465340614319, 0.19783669710159302, -0.5080466270446777, -1.0933748483657837, -0.11299953609704971, 0.7995545864105225, -0.19655530154705048, 0.07025889307260513, 0.5928390622138977, 0.7038968205451965, -0.025787178426980972, -0.24011047184467316, 0.0559050478041172, 0.05721857771277428, 0.462901771068573, 0.9475913643836975, 0.7221697568893433, -1.0443284511566162, 0.6003676652908325, -0.4327554404735565, -0.2265501767396927, -0.322578489780426, -0.83991938829422, -1.1777799129486084, -0.7317989468574524, -0.5908361673355103, -0.4321848154067993, -0.02004711888730526, 0.8026575446128845, 0.7330122590065002, -0.6727932095527649, 0.2853347659111023, -0.41851943731307983, -0.035496558994054794, -0.4987654983997345, -0.1715013086795807, 0.6610955595970154, -0.3206435441970825, -1.1735563278198242, 0.3344094157218933, -0.2627193033695221, 0.29544541239738464, -0.38534364104270935, -0.2667326331138611, -0.5289559960365295, -0.06546855717897415, 0.5664648413658142, -0.01597953774034977, -0.5274815559387207, -0.05289542302489281, -0.0075369421392679214, -0.14254805445671082, -0.00358412298373878, 0.3150821030139923, -0.7828570604324341, 0.3298492133617401, 0.7483084797859192, 0.44653037190437317, 0.8534095287322998, -0.41695865988731384, 0.2824084162712097, -0.6966301798820496, 0.40974605083465576, 0.2579660713672638, 0.5153762102127075, 0.2383258193731308, -0.5082249045372009, 0.65541011095047, -0.16589176654815674, -0.7045975923538208, -0.8554505109786987, -0.006437280215322971, -1.1683441400527954, -0.1809288114309311, 1.0144582986831665, -0.5296612977981567, -0.1327134221792221, 0.1661362648010254, -0.27123576402664185, 0.3904483914375305, -0.5230392813682556, 0.7964528203010559, 0.5340415239334106, 0.0445893295109272, 0.09954537451267242, -0.49375563859939575, 0.6152619123458862, 0.62122642993927, -0.5838344097137451, -0.1433286815881729, 0.25084829330444336, 0.17163847386837006, 0.47373297810554504, 0.5857938528060913, -0.013622965663671494, 0.15441253781318665, -0.1554672122001648, 0.04886462539434433, -0.3573053479194641, -0.4839748740196228, -0.4971972405910492, -0.191933274269104, -0.08079732954502106, -0.7536348104476929 ]
aubmindlab/bert-base-arabert
aubmindlab
"2023-08-03T12:32:51Z"
39,262
17
transformers
[ "transformers", "pytorch", "tf", "jax", "safetensors", "bert", "fill-mask", "ar", "arxiv:2003.00104", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
fill-mask
"2022-03-02T23:29:05Z"
--- language: ar datasets: - wikipedia - Osian - 1.5B-Arabic-Corpus - oscar-arabic-unshuffled - Assafir(private) widget: - text: " عاصم +ة لبنان هي [MASK] ." --- # !!! A newer version of this model is available !!! [AraBERTv2](https://huggingface.co/aubmindlab/bert-base-arabertv2) # AraBERT v1 & v2 : Pre-training BERT for Arabic Language Understanding <img src="https://raw.githubusercontent.com/aub-mind/arabert/master/arabert_logo.png" width="100" align="left"/> **AraBERT** is an Arabic pretrained lanaguage model based on [Google's BERT architechture](https://github.com/google-research/bert). AraBERT uses the same BERT-Base config. More details are available in the [AraBERT Paper](https://arxiv.org/abs/2003.00104) and in the [AraBERT Meetup](https://github.com/WissamAntoun/pydata_khobar_meetup) There are two versions of the model, AraBERTv0.1 and AraBERTv1, with the difference being that AraBERTv1 uses pre-segmented text where prefixes and suffixes were splitted using the [Farasa Segmenter](http://alt.qcri.org/farasa/segmenter.html). We evalaute AraBERT models on different downstream tasks and compare them to [mBERT]((https://github.com/google-research/bert/blob/master/multilingual.md)), and other state of the art models (*To the extent of our knowledge*). The Tasks were Sentiment Analysis on 6 different datasets ([HARD](https://github.com/elnagara/HARD-Arabic-Dataset), [ASTD-Balanced](https://www.aclweb.org/anthology/D15-1299), [ArsenTD-Lev](https://staff.aub.edu.lb/~we07/Publications/ArSentD-LEV_Sentiment_Corpus.pdf), [LABR](https://github.com/mohamedadaly/LABR)), Named Entity Recognition with the [ANERcorp](http://curtis.ml.cmu.edu/w/courses/index.php/ANERcorp), and Arabic Question Answering on [Arabic-SQuAD and ARCD](https://github.com/husseinmozannar/SOQAL) # AraBERTv2 ## What's New! AraBERT now comes in 4 new variants to replace the old v1 versions: More Detail in the AraBERT folder and in the [README](https://github.com/aub-mind/arabert/blob/master/AraBERT/README.md) and in the [AraBERT Paper](https://arxiv.org/abs/2003.00104v2) Model | HuggingFace Model Name | Size (MB/Params)| Pre-Segmentation | DataSet (Sentences/Size/nWords) | ---|:---:|:---:|:---:|:---: AraBERTv0.2-base | [bert-base-arabertv02](https://huggingface.co/aubmindlab/bert-base-arabertv02) | 543MB / 136M | No | 200M / 77GB / 8.6B | AraBERTv0.2-large| [bert-large-arabertv02](https://huggingface.co/aubmindlab/bert-large-arabertv02) | 1.38G 371M | No | 200M / 77GB / 8.6B | AraBERTv2-base| [bert-base-arabertv2](https://huggingface.co/aubmindlab/bert-base-arabertv2) | 543MB 136M | Yes | 200M / 77GB / 8.6B | AraBERTv2-large| [bert-large-arabertv2](https://huggingface.co/aubmindlab/bert-large-arabertv2) | 1.38G 371M | Yes | 200M / 77GB / 8.6B | AraBERTv0.1-base| [bert-base-arabertv01](https://huggingface.co/aubmindlab/bert-base-arabertv01) | 543MB 136M | No | 77M / 23GB / 2.7B | AraBERTv1-base| [bert-base-arabert](https://huggingface.co/aubmindlab/bert-base-arabert) | 543MB 136M | Yes | 77M / 23GB / 2.7B | All models are available in the `HuggingFace` model page under the [aubmindlab](https://huggingface.co/aubmindlab/) name. Checkpoints are available in PyTorch, TF2 and TF1 formats. ## Better Pre-Processing and New Vocab We identified an issue with AraBERTv1's wordpiece vocabulary. The issue came from punctuations and numbers that were still attached to words when learned the wordpiece vocab. We now insert a space between numbers and characters and around punctuation characters. The new vocabulary was learnt using the `BertWordpieceTokenizer` from the `tokenizers` library, and should now support the Fast tokenizer implementation from the `transformers` library. **P.S.**: All the old BERT codes should work with the new BERT, just change the model name and check the new preprocessing dunction **Please read the section on how to use the [preprocessing function](#Preprocessing)** ## Bigger Dataset and More Compute We used ~3.5 times more data, and trained for longer. For Dataset Sources see the [Dataset Section](#Dataset) Model | Hardware | num of examples with seq len (128 / 512) |128 (Batch Size/ Num of Steps) | 512 (Batch Size/ Num of Steps) | Total Steps | Total Time (in Days) | ---|:---:|:---:|:---:|:---:|:---:|:---: AraBERTv0.2-base | TPUv3-8 | 420M / 207M |2560 / 1M | 384/ 2M | 3M | - AraBERTv0.2-large | TPUv3-128 | 420M / 207M | 13440 / 250K | 2056 / 300K | 550K | - AraBERTv2-base | TPUv3-8 | 520M / 245M |13440 / 250K | 2056 / 300K | 550K | - AraBERTv2-large | TPUv3-128 | 520M / 245M | 13440 / 250K | 2056 / 300K | 550K | - AraBERT-base (v1/v0.1) | TPUv2-8 | - |512 / 900K | 128 / 300K| 1.2M | 4 days # Dataset The pretraining data used for the new AraBERT model is also used for Arabic **GPT2 and ELECTRA**. The dataset consists of 77GB or 200,095,961 lines or 8,655,948,860 words or 82,232,988,358 chars (before applying Farasa Segmentation) For the new dataset we added the unshuffled OSCAR corpus, after we thoroughly filter it, to the previous dataset used in AraBERTv1 but with out the websites that we previously crawled: - OSCAR unshuffled and filtered. - [Arabic Wikipedia dump](https://archive.org/details/arwiki-20190201) from 2020/09/01 - [The 1.5B words Arabic Corpus](https://www.semanticscholar.org/paper/1.5-billion-words-Arabic-Corpus-El-Khair/f3eeef4afb81223df96575adadf808fe7fe440b4) - [The OSIAN Corpus](https://www.aclweb.org/anthology/W19-4619) - Assafir news articles. Huge thank you for Assafir for giving us the data # Preprocessing It is recommended to apply our preprocessing function before training/testing on any dataset. **Install farasapy to segment text for AraBERT v1 & v2 `pip install farasapy`** ```python from arabert.preprocess import ArabertPreprocessor model_name="bert-base-arabert" arabert_prep = ArabertPreprocessor(model_name=model_name) text = "ولن نبالغ إذا قلنا إن هاتف أو كمبيوتر المكتب في زمننا هذا ضروري" arabert_prep.preprocess(text) >>>"و+ لن نبالغ إذا قل +نا إن هاتف أو كمبيوتر ال+ مكتب في زمن +نا هذا ضروري" ``` ## Accepted_models ``` bert-base-arabertv01 bert-base-arabert bert-base-arabertv02 bert-base-arabertv2 bert-large-arabertv02 bert-large-arabertv2 araelectra-base aragpt2-base aragpt2-medium aragpt2-large aragpt2-mega ``` # TensorFlow 1.x models The TF1.x model are available in the HuggingFace models repo. You can download them as follows: - via git-lfs: clone all the models in a repo ```bash curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash sudo apt-get install git-lfs git lfs install git clone https://huggingface.co/aubmindlab/MODEL_NAME tar -C ./MODEL_NAME -zxvf /content/MODEL_NAME/tf1_model.tar.gz ``` where `MODEL_NAME` is any model under the `aubmindlab` name - via `wget`: - Go to the tf1_model.tar.gz file on huggingface.co/models/aubmindlab/MODEL_NAME. - copy the `oid sha256` - then run `wget https://cdn-lfs.huggingface.co/aubmindlab/aragpt2-base/INSERT_THE_SHA_HERE` (ex: for `aragpt2-base`: `wget https://cdn-lfs.huggingface.co/aubmindlab/aragpt2-base/3766fc03d7c2593ff2fb991d275e96b81b0ecb2098b71ff315611d052ce65248`) # If you used this model please cite us as : Google Scholar has our Bibtex wrong (missing name), use this instead ``` @inproceedings{antoun2020arabert, title={AraBERT: Transformer-based Model for Arabic Language Understanding}, author={Antoun, Wissam and Baly, Fady and Hajj, Hazem}, booktitle={LREC 2020 Workshop Language Resources and Evaluation Conference 11--16 May 2020}, pages={9} } ``` # Acknowledgments Thanks to TensorFlow Research Cloud (TFRC) for the free access to Cloud TPUs, couldn't have done it without this program, and to the [AUB MIND Lab](https://sites.aub.edu.lb/mindlab/) Members for the continous support. Also thanks to [Yakshof](https://www.yakshof.com/#/) and Assafir for data and storage access. Another thanks for Habib Rahal (https://www.behance.net/rahalhabib), for putting a face to AraBERT. ## Contacts **Wissam Antoun**: [Linkedin](https://www.linkedin.com/in/wissam-antoun-622142b4/) | [Twitter](https://twitter.com/wissam_antoun) | [Github](https://github.com/WissamAntoun) | <wfa07@mail.aub.edu> | <wissam.antoun@gmail.com> **Fady Baly**: [Linkedin](https://www.linkedin.com/in/fadybaly/) | [Twitter](https://twitter.com/fadybaly) | [Github](https://github.com/fadybaly) | <fgb06@mail.aub.edu> | <baly.fady@gmail.com>
[ -0.6924079060554504, -0.7068692445755005, 0.3232468366622925, 0.1326006054878235, -0.3261638581752777, -0.10248123109340668, -0.1563492864370346, -0.5870126485824585, 0.24002882838249207, 0.2822401225566864, -0.5682666301727295, -0.6606788635253906, -0.7636085152626038, 0.012725830078125, -0.5087715983390808, 1.1948033571243286, -0.32265183329582214, 0.028270898386836052, -0.0367056168615818, -0.49391603469848633, -0.030067944899201393, -0.4722246527671814, -0.5535172820091248, -0.4190179407596588, 0.421042263507843, 0.280246764421463, 0.8477060794830322, 0.44716787338256836, 0.3842158019542694, 0.39640069007873535, -0.27963247895240784, 0.05346221849322319, -0.14408323168754578, -0.21370640397071838, 0.20544417202472687, -0.19279620051383972, -0.5281399488449097, -0.09339246898889542, 0.6662374138832092, 0.518786609172821, 0.0006721582030877471, 0.1137247383594513, -0.11918990314006805, 0.8067377209663391, -0.3213556706905365, -0.052535686641931534, -0.12960989773273468, -0.06140473857522011, -0.19909590482711792, 0.42324891686439514, -0.02892477810382843, -0.3528701663017273, 0.3892609477043152, -0.4752988815307617, 0.11625559628009796, -0.02414407953619957, 1.3310920000076294, 0.3173920810222626, -0.16259148716926575, -0.35041406750679016, -0.3619500398635864, 0.8557595610618591, -0.8129909038543701, 0.6285359263420105, 0.3278619050979614, 0.026568248867988586, -0.08920768648386002, -0.837787926197052, -0.7417037487030029, -0.26424241065979004, -0.0033496664837002754, -0.03256015479564667, -0.373977929353714, -0.07168551534414291, 0.06860964745283127, 0.46609392762184143, -0.5007529854774475, -0.06308669596910477, -0.5210797786712646, -0.38323715329170227, 0.6069701313972473, -0.324260413646698, 0.31864431500434875, -0.22348716855049133, -0.4190422594547272, -0.5061029195785522, -0.4784282445907593, 0.16386856138706207, 0.2580638825893402, 0.058011624962091446, -0.6296486258506775, 0.3380754888057709, -0.018908390775322914, 0.4642993211746216, 0.08798069506883621, -0.17440380156040192, 0.6787524819374084, -0.2130250185728073, -0.17517723143100739, 0.06414414942264557, 0.8561760187149048, 0.13167156279087067, 0.25583675503730774, 0.018500983715057373, -0.07339054346084595, -0.08133119344711304, 0.014630953781306744, -1.0849584341049194, -0.3429098427295685, 0.44436952471733093, -0.5115881562232971, -0.2556885778903961, -0.014597478322684765, -0.6148012280464172, -0.11324380338191986, -0.10062006115913391, 0.4666462540626526, -0.9211429357528687, -0.34858110547065735, 0.1026168018579483, -0.18577790260314941, 0.4225923717021942, 0.4128485918045044, -0.5714691877365112, 0.26020243763923645, 0.5283901691436768, 1.0253541469573975, -0.007456385064870119, -0.32909926772117615, -0.14585080742835999, -0.3380221426486969, -0.16585244238376617, 0.5970262289047241, -0.34819817543029785, -0.40072324872016907, -0.09785372018814087, -0.028082331642508507, 0.03798791766166687, -0.5168099403381348, 0.7180580496788025, -0.5891720056533813, 0.39506733417510986, -0.36929959058761597, -0.6230393648147583, -0.4990444779396057, 0.23657546937465668, -0.6228135824203491, 1.1578643321990967, 0.3772713243961334, -0.7789199948310852, 0.12212156504392624, -0.8387829065322876, -0.29992353916168213, -0.18998856842517853, -0.009940952993929386, -0.7232208251953125, -0.14257265627384186, 0.39874812960624695, 0.2928164303302765, -0.11331883817911148, 0.008866386488080025, -0.09265463799238205, -0.13636456429958344, 0.35637974739074707, -0.11888781189918518, 0.9753533601760864, 0.2735167443752289, -0.38367894291877747, 0.0531446635723114, -0.7822085022926331, 0.019541166722774506, 0.2516677677631378, -0.2648714482784271, -0.05974375829100609, -0.1264926642179489, 0.2304597645998001, 0.39746925234794617, 0.3938796818256378, -0.6537439227104187, 0.10526151955127716, -0.49448126554489136, 0.3313133418560028, 0.7229810953140259, -0.08568303287029266, 0.34832677245140076, -0.5722312927246094, 0.4845636487007141, 0.3542395830154419, 0.12317676842212677, -0.017658231779932976, -0.4697462022304535, -1.0743073225021362, -0.4126943349838257, 0.4889885187149048, 0.42742618918418884, -0.7168059349060059, 0.4541877210140228, -0.2958191931247711, -0.8117391467094421, -0.7175448536872864, 0.05778318643569946, 0.5227714776992798, 0.4217609167098999, 0.5557785630226135, -0.4708234667778015, -0.4963465631008148, -0.8618140816688538, -0.1458210051059723, -0.23184269666671753, 0.11518707126379013, 0.34780314564704895, 0.7635678648948669, -0.3998658359050751, 0.8173549175262451, -0.4740001857280731, -0.3006497323513031, -0.26907941699028015, 0.12063619494438171, 0.21387402713298798, 0.6176425814628601, 0.8539581894874573, -0.7000617980957031, -0.4664466977119446, -0.11826181411743164, -0.498511403799057, 0.0878438726067543, 0.12833862006664276, -0.28906673192977905, 0.4168151915073395, 0.30472591519355774, -0.7132290601730347, 0.37367522716522217, 0.6074354648590088, -0.5330552458763123, 0.5145416259765625, 0.02419847622513771, -0.023881608620285988, -1.1596848964691162, 0.104346863925457, 0.02698885276913643, -0.22397147119045258, -0.579395055770874, -0.0017440656665712595, -0.07414324581623077, 0.12050071358680725, -0.6106479167938232, 0.7991787195205688, -0.3805871903896332, 0.153864324092865, -0.0946478322148323, -0.07601471245288849, 0.05305686593055725, 0.6404106020927429, -0.20660899579524994, 0.9530467391014099, 0.5429813861846924, -0.6240512132644653, 0.11426527053117752, 0.7879148125648499, -0.5370133519172668, -0.001914160791784525, -0.8934320211410522, 0.2528011202812195, -0.268705815076828, 0.22242049872875214, -0.936075747013092, -0.2394799292087555, 0.4840694069862366, -0.6670153141021729, 0.43257835507392883, -0.15518702566623688, -0.39765501022338867, -0.24086248874664307, -0.5546689033508301, 0.3903427720069885, 0.7658173441886902, -0.520672619342804, 0.5714432001113892, 0.29955706000328064, -0.28082820773124695, -0.6270751357078552, -0.5924635529518127, -0.25555741786956787, -0.1799623668193817, -0.8237766623497009, 0.6044321656227112, -0.01813681051135063, -0.1783757507801056, 0.04580895975232124, -0.1417781561613083, -0.08440414816141129, 0.031442370265722275, 0.3213339149951935, 0.33048760890960693, -0.12651610374450684, 0.04654272645711899, 0.09698071330785751, -0.016690736636519432, 0.07077402621507645, -0.1942245066165924, 0.8031034469604492, -0.3796873390674591, -0.08211055397987366, -0.45850464701652527, 0.20447026193141937, 0.5944545865058899, -0.529899001121521, 1.0348323583602905, 0.9864928722381592, -0.3298202157020569, 0.12723813951015472, -0.5733007788658142, -0.11903585493564606, -0.5292074084281921, 0.4791944622993469, -0.24840177595615387, -0.9476909637451172, 0.5410118699073792, 0.016215866431593895, 0.2857755124568939, 0.7541699409484863, 0.5308603644371033, 0.04760745167732239, 0.9629558324813843, 0.5793381929397583, -0.3043256103992462, 0.691149890422821, -0.4728291928768158, 0.06413981318473816, -0.8631689548492432, -0.33051058650016785, -0.5312084555625916, -0.342632532119751, -0.7075214982032776, -0.4383847713470459, 0.45632004737854004, -0.03328688442707062, -0.4498799443244934, 0.21414215862751007, -0.47185197472572327, 0.08928073942661285, 0.5529883503913879, 0.20969387888908386, -0.05794694274663925, 0.30492037534713745, -0.290600448846817, -0.009627364575862885, -0.4769989550113678, -0.5417155027389526, 1.0432803630828857, 0.43615972995758057, 0.35465729236602783, 0.21155783534049988, 0.7899299263954163, 0.30195343494415283, 0.34881529211997986, -0.6518762707710266, 0.5158541798591614, -0.042741939425468445, -0.7139174938201904, -0.15485799312591553, -0.20506684482097626, -0.8488474488258362, 0.19312183558940887, -0.07053709030151367, -0.7978509664535522, 0.06251037120819092, 0.0029295664280653, -0.403529554605484, 0.29963672161102295, -0.5707838535308838, 0.8861758708953857, -0.1881818324327469, -0.34723684191703796, -0.14168168604373932, -0.8246555924415588, 0.13519886136054993, 0.01274834480136633, 0.2056647539138794, -0.2949666380882263, 0.07640796899795532, 1.236919641494751, -0.8898128271102905, 0.5102455019950867, -0.3634016811847687, -0.024406231939792633, 0.4636419415473938, -0.1354924738407135, 0.4084606170654297, -0.2070886343717575, -0.20867981016635895, 0.49570950865745544, 0.13453009724617004, -0.4660056233406067, -0.2240574210882187, 0.6794298887252808, -1.2907806634902954, -0.36129817366600037, -0.6618309020996094, -0.3676738142967224, -0.0005784669192507863, 0.2143920212984085, 0.3121497631072998, 0.3996579051017761, -0.22344839572906494, 0.07405731827020645, 0.45182061195373535, -0.37801849842071533, 0.39938047528266907, 0.256418913602829, -0.29787811636924744, -0.46855756640434265, 0.7538089156150818, 0.004852780606597662, 0.018496990203857422, 0.23328936100006104, 0.03362875431776047, -0.33271726965904236, -0.5399420857429504, -0.4862956404685974, 0.5015102028846741, -0.6199366450309753, -0.19808873534202576, -0.7891157865524292, -0.2917260229587555, -0.38729530572891235, -0.019221056252717972, -0.4383230209350586, -0.4941670000553131, -0.3828456997871399, 0.027340322732925415, 0.8158824443817139, 0.5812169313430786, -0.08064805716276169, 0.5343201756477356, -0.8739109635353088, 0.13811424374580383, -0.04301576316356659, 0.19780713319778442, 0.027572333812713623, -0.8727771043777466, -0.26458433270454407, 0.19883154332637787, -0.6332383751869202, -0.8357894420623779, 0.5811558961868286, 0.2397007793188095, 0.09059411287307739, 0.44319167733192444, -0.15968982875347137, 0.7116628289222717, -0.6248182058334351, 0.8245827555656433, 0.10177131742238998, -0.9502906799316406, 0.4095953702926636, -0.16740672290325165, 0.3656337559223175, 0.6141469478607178, 0.6706511974334717, -0.6577985882759094, -0.031109221279621124, -0.7148084044456482, -0.9120835661888123, 0.815754771232605, 0.4401460587978363, 0.06255602836608887, 0.05923638120293617, 0.3996928632259369, 0.1462451070547104, 0.21381579339504242, -0.5464185476303101, -0.5891382694244385, -0.2873229682445526, -0.36514946818351746, -0.005714369006454945, -0.2825435996055603, 0.03466058522462845, -0.5950648784637451, 1.0688947439193726, 0.19545117020606995, 0.6590739488601685, 0.48094022274017334, -0.173042431473732, 0.024113167077302933, 0.2042374461889267, 0.46135446429252625, 0.5135285258293152, -0.24498920142650604, -0.27380862832069397, 0.18975839018821716, -0.6362447142601013, -0.012942044995725155, 0.6654402017593384, -0.21737788617610931, 0.25758546590805054, 0.29598841071128845, 0.8411444425582886, 0.08774276077747345, -0.6622169613838196, 0.5348179340362549, -0.0292147696018219, -0.32753631472587585, -0.6428501605987549, -0.014342281967401505, 0.08470922708511353, 0.330066978931427, 0.3480328321456909, 0.1225261464715004, 0.02204832062125206, -0.3544395864009857, 0.17667607963085175, 0.44432270526885986, -0.27803662419319153, -0.48241475224494934, 0.6512184739112854, 0.05573663115501404, -0.22486208379268646, 0.8107993006706238, -0.21357619762420654, -0.8543969988822937, 0.6200517416000366, 0.34544649720191956, 0.7288012504577637, -0.23947018384933472, 0.1895473748445511, 0.48472797870635986, 0.060980819165706635, 0.12622302770614624, 0.5161893963813782, -0.014110023155808449, -0.9064830541610718, -0.263998806476593, -0.9051262140274048, -0.3023940622806549, 0.2359149307012558, -0.5255519151687622, 0.1791687160730362, -0.5600411295890808, -0.24500390887260437, 0.28042206168174744, 0.26368165016174316, -0.8412020802497864, 0.2502764165401459, 0.2514413893222809, 0.9278892278671265, -0.6644895672798157, 0.7794137597084045, 1.0211910009384155, -0.4806581437587738, -0.8368425369262695, -0.22044675052165985, -0.013508414849638939, -0.972798764705658, 0.29479482769966125, 0.3079589903354645, 0.03816613554954529, 0.02944067493081093, -0.735990583896637, -1.0547850131988525, 1.1323378086090088, 0.07057780027389526, -0.38757067918777466, -0.09498707950115204, 0.16386590898036957, 0.4414306581020355, -0.03865143284201622, 0.29808950424194336, 0.594226598739624, 0.528049647808075, 0.17298562824726105, -0.757628858089447, 0.12874741852283478, -0.40422263741493225, -0.19007030129432678, 0.46188628673553467, -0.9870436191558838, 1.006880760192871, -0.24969293177127838, -0.09878706187009811, 0.36316147446632385, 0.8561238050460815, 0.28151842951774597, 0.08267474174499512, 0.4585992991924286, 0.7779579758644104, 0.7466958165168762, -0.16762620210647583, 1.055982232093811, -0.39175257086753845, 0.4061844050884247, 0.7102785706520081, 0.017768962308764458, 0.7458117008209229, 0.4764333963394165, -0.46845489740371704, 0.8326578140258789, 0.6172013878822327, -0.0007243641302920878, 0.4350946247577667, -0.09454400837421417, -0.37358546257019043, -0.05929111689329147, -0.15963909029960632, -0.5837286710739136, 0.5605708956718445, 0.28725898265838623, -0.46710413694381714, -0.20165222883224487, -0.11741375178098679, 0.572186291217804, -0.3204185962677002, -0.10075928270816803, 0.5541337728500366, 0.14402537047863007, -0.5968315601348877, 0.7974594831466675, 0.39516502618789673, 0.7242488265037537, -0.6490970253944397, 0.11753170192241669, -0.12269044667482376, 0.3840252757072449, -0.1934419721364975, -0.5298905372619629, 0.15565472841262817, 0.11682043969631195, 0.05101412907242775, -0.11083947122097015, 0.7236972451210022, -0.39527302980422974, -0.655992329120636, 0.18119342625141144, 0.6180307269096375, 0.3759585916996002, -0.12583230435848236, -0.995208740234375, 0.31436318159103394, 0.21792061626911163, -0.4194096326828003, 0.21092155575752258, 0.2254212498664856, 0.033883389085531235, 0.511565625667572, 0.6324048042297363, -0.11556532233953476, 0.008776030503213406, -0.04685843735933304, 1.0872353315353394, -0.6874908804893494, -0.2814890444278717, -0.9578966498374939, 0.5439152717590332, -0.01583814062178135, -0.5793088674545288, 0.7179202437400818, 0.5555025935173035, 0.9941200017929077, 0.004870727192610502, 0.7297931909561157, -0.29006093740463257, 0.49731725454330444, -0.31319287419319153, 0.8293167948722839, -0.8234327435493469, -0.16720066964626312, -0.3590364456176758, -0.7323463559150696, -0.05658577010035515, 0.8281774520874023, -0.3165660798549652, 0.3207208812236786, 0.5499128699302673, 0.7379364967346191, -0.05425074324011803, -0.047371625900268555, -0.12055595219135284, 0.3964480459690094, 0.3636417090892792, 0.49732330441474915, 0.5968295335769653, -0.8401058912277222, 0.3901161253452301, -0.44795122742652893, -0.13804034888744354, -0.23205246031284332, -0.6117826104164124, -0.8735008239746094, -0.6261197328567505, -0.3882625997066498, -0.5022335052490234, 0.07115798443555832, 1.2742489576339722, 0.5938383936882019, -0.8404605984687805, -0.05443008989095688, 0.01185397244989872, 0.0022697090171277523, 0.02630986087024212, -0.22730116546154022, 0.6062564253807068, 0.018504148349165916, -0.7822861671447754, 0.10241086781024933, -0.058944929391145706, 0.4159029722213745, 0.07808878272771835, -0.2870592772960663, -0.4017826318740845, 0.007908430881798267, 0.5210580825805664, 0.42008599638938904, -0.6209760308265686, -0.29131069779396057, -0.01284901425242424, 0.09023724496364594, 0.3556338846683502, 0.22264449298381805, -0.7270325422286987, 0.04256846755743027, 0.24797086417675018, 0.5913217663764954, 0.7954091429710388, 0.038737230002880096, 0.21618792414665222, -0.6326711773872375, 0.37569403648376465, 0.23241759836673737, 0.4804062843322754, 0.5223139524459839, -0.036914315074682236, 0.39173221588134766, -0.03648906573653221, -0.562506914138794, -0.603894054889679, 0.09904461354017258, -1.0564671754837036, -0.15414033830165863, 1.0695322751998901, -0.10502691566944122, -0.3795817196369171, 0.18338699638843536, -0.2888873815536499, 0.551901638507843, -0.5279473662376404, 0.7235807776451111, 0.933040201663971, -0.010264954529702663, -0.08011537045240402, -0.3706893026828766, 0.6249236464500427, 0.7378476858139038, -0.6916681528091431, -0.42379504442214966, 0.4087789058685303, 0.4692649245262146, 0.2650953233242035, 0.5712469220161438, -0.2040426880121231, 0.277034729719162, -0.21801236271858215, 0.24299205839633942, -0.0676804780960083, -0.15760450065135956, -0.2177954465150833, -0.16103582084178925, 0.0655544325709343, -0.3365708887577057 ]
WinKawaks/vit-small-patch16-224
WinKawaks
"2023-03-18T22:00:21Z"
39,240
3
transformers
[ "transformers", "pytorch", "safetensors", "vit", "image-classification", "vision", "dataset:imagenet", "license:apache-2.0", "autotrain_compatible", "endpoints_compatible", "region:us" ]
image-classification
"2022-03-02T23:29:05Z"
--- license: apache-2.0 tags: - vision - image-classification datasets: - imagenet 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 --- Google didn't publish vit-tiny and vit-small model checkpoints in Hugging Face. I converted the weights from the [timm repository](https://github.com/rwightman/pytorch-image-models). This model is used in the same way as [ViT-base](https://huggingface.co/google/vit-base-patch16-224). Note that [safetensors] model requires torch 2.0 environment.
[ -0.17637445032596588, -0.547081470489502, 0.46291807293891907, 0.04028879106044769, -0.2653295695781708, -0.2902849018573761, 0.006528464145958424, -0.5112335681915283, 0.38212451338768005, 0.30687135457992554, -0.7568330764770508, -0.4086489677429199, -0.6417765617370605, -0.14145460724830627, -0.06355221569538116, 1.4151217937469482, -0.20951303839683533, 0.3043782711029053, 0.16412827372550964, -0.4457085430622101, -0.1588796228170395, 0.015921924263238907, -0.49114784598350525, -0.4833623170852661, 0.4595646262168884, 0.36023035645484924, 0.6930279731750488, 0.23666423559188843, 0.7865327000617981, 0.35132601857185364, -0.2748631238937378, -0.4142453968524933, -0.24911056458950043, -0.4045841693878174, -0.026357954367995262, -0.24364551901817322, -0.709109365940094, 0.29126203060150146, 0.5386614799499512, 0.2585654556751251, -0.02823834866285324, 0.22442270815372467, 0.1258561611175537, 0.6290053725242615, -0.5225194692611694, 0.05484321713447571, -0.32573461532592773, 0.003502351464703679, 0.11491411179304123, 0.40293142199516296, -0.43363791704177856, -0.45322349667549133, 0.44124075770378113, -0.5272305011749268, 0.4765666127204895, -0.19748887419700623, 1.1338977813720703, 0.30303436517715454, -0.3768298923969269, -0.3288293778896332, -0.4261980354785919, 0.5738582611083984, -0.2526480555534363, 0.14606238901615143, -0.06051249802112579, 0.6010454297065735, -0.11070366948843002, -1.0051171779632568, -0.08641588687896729, -0.1389244794845581, 0.09075392782688141, -0.3691716194152832, -0.35786256194114685, 0.25801166892051697, 0.3563360571861267, 0.5091742277145386, -0.53635174036026, -0.0965956449508667, -0.5628148317337036, -0.43689751625061035, 0.5741404294967651, 0.11545633524656296, 0.5461045503616333, -0.4737391769886017, -0.8552934527397156, -0.3758900463581085, -0.7648091316223145, 0.04212779551744461, -0.12637899816036224, 0.2297741025686264, -0.8072612285614014, 0.577827513217926, 0.030313948169350624, 0.5951932668685913, 0.21496187150478363, -0.08233197033405304, 0.2943176329135895, -0.23269474506378174, -0.4999590218067169, -0.3684956431388855, 0.8808207511901855, 0.6108529567718506, 0.2054073065519333, -0.21476921439170837, -0.13599267601966858, -0.029345884919166565, 0.11987346410751343, -1.310304045677185, -0.7492609620094299, 0.20187556743621826, -0.2386808544397354, -0.260160893201828, 0.19556288421154022, -0.7891031503677368, -0.27272433042526245, 0.2239987552165985, 0.9270387887954712, -0.2506449818611145, -0.19875462353229523, -0.17827507853507996, -0.36563023924827576, 0.3146888315677643, 0.774543821811676, -0.5763632655143738, 0.11325281113386154, 0.2966204583644867, 1.138412594795227, 0.14830683171749115, -0.040721919387578964, -0.44183579087257385, -0.24502094089984894, -0.159732386469841, 0.42309996485710144, 0.2000025510787964, -0.40382543206214905, 0.21320626139640808, 0.6409031748771667, -0.3364311754703522, -0.6035212278366089, 0.5929213166236877, -0.5956547856330872, 0.07676403969526291, -0.8269733786582947, -0.05539531260728836, -0.24520756304264069, 0.22483175992965698, -0.4971410036087036, 0.9073878526687622, 0.34602612257003784, -0.8376420140266418, 0.5633696913719177, -0.10959009826183319, 0.07626265287399292, -0.0033543184399604797, -0.03115367889404297, -0.7006278038024902, 0.2173425853252411, 0.05723825842142105, 0.2898731529712677, 0.10511551797389984, -0.03232233598828316, -0.4959300756454468, -0.4502296447753906, -0.1949467658996582, 0.5850335955619812, 1.1491039991378784, 0.21915698051452637, -0.37472042441368103, 0.46654605865478516, -0.0043859281577169895, 0.15108436346054077, 0.25190427899360657, -0.26038840413093567, -0.04580625891685486, -0.41137439012527466, 0.4056241810321808, 0.6256785988807678, 0.16144993901252747, -0.6513307690620422, 0.5045881867408752, 0.27428579330444336, 0.6398009061813354, 0.6584043502807617, -0.19315212965011597, 0.651239812374115, -0.44995981454849243, 0.4547809958457947, 0.021351521834731102, 0.15522272884845734, 0.4136929214000702, -0.7582529783248901, -0.85737544298172, -0.4879993796348572, 0.13755445182323456, 0.2784874141216278, -0.9382135272026062, 0.2311035543680191, -0.510094940662384, -0.691985547542572, -0.2414301484823227, 0.1521359384059906, 0.45905911922454834, 0.13858336210250854, 0.17159056663513184, -0.6355395317077637, -0.27337542176246643, -0.8862713575363159, -0.3926610052585602, -0.30090203881263733, -0.14043523371219635, 0.10658234357833862, 0.9581482410430908, -0.322536826133728, 0.6549674272537231, -0.3612900376319885, -0.5278608798980713, -0.1557610034942627, 0.024972962215542793, -0.24336688220500946, 0.7783733606338501, 1.0428352355957031, -0.44282329082489014, -0.4676797688007355, -0.3158201277256012, -0.6693817377090454, 0.21785984933376312, 0.3281410336494446, -0.09299346804618835, -0.09469271451234818, 0.33376380801200867, -0.8074138760566711, 0.394721657037735, 0.8350335359573364, -0.380828857421875, 0.4466899037361145, 0.01793079823255539, 0.10961642116308212, -0.8861277103424072, 0.154324471950531, 0.29354020953178406, -0.8785381317138672, -0.5030523538589478, 0.5193713307380676, 0.4478023946285248, -0.3464878797531128, -0.6209557056427002, 0.8807506561279297, -0.562663733959198, -0.02068808674812317, -0.32832270860671997, -0.10472342371940613, -0.19198763370513916, 0.36670199036598206, -0.10554573684930801, 0.7899677753448486, 0.6212976574897766, -0.41403624415397644, 0.16531121730804443, 0.3932363986968994, 0.0005875678034499288, 0.5438297390937805, -0.8919164538383484, 0.33802881836891174, 0.07320325821638107, 0.6609140038490295, -0.6166459321975708, -0.8993331789970398, 0.5185253024101257, -0.5208961367607117, 0.3644322156906128, -0.8925769925117493, -0.339636892080307, -0.5513302683830261, -0.6902770400047302, 0.38642942905426025, 0.9101770520210266, -0.6562196612358093, 0.47473034262657166, 0.4989466071128845, 0.060716982930898666, 0.09061817824840546, -1.0247936248779297, -0.2621300518512726, -0.3131726086139679, -0.8935644030570984, 0.2653273642063141, 0.041742198169231415, -0.3503662049770355, 0.11784627288579941, -0.24042068421840668, -0.0975264385342598, -0.5362952351570129, 0.42784637212753296, 0.1305619329214096, -0.1705460101366043, -0.30908116698265076, -0.23475302755832672, -0.18898168206214905, 0.19450591504573822, -0.2128201723098755, 0.06862665712833405, -0.4842054545879364, -0.14179860055446625, -0.6438608169555664, -0.1272754967212677, 0.5627733469009399, 0.3047124743461609, 0.8698481321334839, 0.7114250659942627, -0.7378602623939514, -0.06913869827985764, -0.6728343963623047, -0.2819516658782959, -0.4917224645614624, -0.11066552251577377, -0.02407420612871647, -1.0170706510543823, 0.8618481159210205, 0.11170929670333862, -0.28346720337867737, 0.6872122883796692, 0.7209983468055725, 0.011348242871463299, 0.8338785171508789, 0.7747368812561035, 0.043654561042785645, 1.020706295967102, -0.3141023814678192, -0.29648569226264954, -1.042409062385559, -0.21538543701171875, -0.5021893382072449, -0.34957537055015564, -0.796241819858551, -0.6066592335700989, 0.6697410941123962, 0.17632098495960236, -0.43357768654823303, 0.7284690141677856, -0.6941812634468079, 0.17356017231941223, 0.4800231158733368, 0.4626525640487671, -0.0661783292889595, 0.18575988709926605, -0.12479180097579956, -0.1354900449514389, -0.5989924669265747, -0.3336713910102844, 0.7110070586204529, 0.3082091212272644, 0.9086574912071228, 0.1518334448337555, 0.5878601670265198, -0.1190110445022583, 0.5466208457946777, -0.5674219131469727, 0.5133662819862366, 0.02211867831647396, -1.0759797096252441, 0.23549538850784302, -0.6524289846420288, -0.701575517654419, 0.23688600957393646, 0.07035211473703384, -1.1465955972671509, 0.21571944653987885, 0.2086735963821411, -0.2487289011478424, 0.4055478572845459, -1.0716785192489624, 0.9829348921775818, 0.3234829306602478, -0.27525484561920166, 0.14719413220882416, -0.7063326835632324, 0.6909485459327698, 0.39885491132736206, -0.02820708230137825, -0.15277966856956482, 0.23059044778347015, 0.9819396138191223, -1.0933184623718262, 0.7005670666694641, -0.5698671340942383, 0.18675056099891663, 0.7792832255363464, 0.09965012222528458, 0.8365589380264282, 0.20371174812316895, 0.06130381301045418, -0.01796627976000309, 0.09923429042100906, -0.635822594165802, -0.15540145337581635, 0.9144808053970337, -0.8004397749900818, -0.14909818768501282, -0.7100682854652405, -0.19838078320026398, 0.12001165747642517, 0.1129440888762474, 0.5164148807525635, 0.04274114966392517, -0.0908827856183052, 0.21527215838432312, 0.5329238176345825, 0.016056522727012634, 0.3876752555370331, 0.06287294626235962, -0.1903371959924698, -0.7289530038833618, 0.4711790382862091, -0.014463111758232117, 0.48982319235801697, -0.11764398962259293, 0.0668933317065239, -0.028299028053879738, -0.2709185481071472, -0.699608325958252, 0.29611340165138245, -0.6409802436828613, -0.2705826759338379, -0.5169061422348022, -0.4205297827720642, -0.5004006624221802, -0.25049856305122375, -0.49955078959465027, -0.22985120117664337, 0.10275828838348389, 0.013937586918473244, 0.7730007171630859, 0.7636022567749023, -0.36853429675102234, 0.6863206028938293, -0.6966404318809509, 0.34104326367378235, 0.46155598759651184, 0.22822757065296173, -0.20037473738193512, -0.4799206554889679, -0.5001591444015503, -0.1385984867811203, -0.5475694537162781, -0.807823896408081, 0.13074979186058044, -0.16095855832099915, 0.037156637758016586, -0.03271910548210144, -0.21601152420043945, 0.5350797772407532, -0.1761704832315445, 0.6790711283683777, 0.3750584125518799, -0.7992545366287231, 0.6135527491569519, -0.737252950668335, 0.18072111904621124, 0.7243708968162537, -0.05369457229971886, -0.2722553014755249, -0.01550434622913599, -0.791459858417511, -0.7260074019432068, 0.6725066900253296, 0.5411865711212158, 0.08089509606361389, 0.4604964256286621, 0.4299817681312561, -0.2452569454908371, 0.19217973947525024, -0.8062335252761841, -0.0686858519911766, -0.030498763546347618, 0.028360869735479355, -0.01659812591969967, -0.1664988100528717, -0.27867093682289124, -0.4296902120113373, 0.4635200798511505, -0.22733169794082642, 0.44343385100364685, 0.49278712272644043, -0.49911585450172424, -0.4153177738189697, -0.1857374608516693, 0.36306020617485046, 0.3132637143135071, -0.5099506378173828, -0.1593492329120636, 0.009500235319137573, -0.7555788159370422, 0.035291269421577454, 0.24869292974472046, -0.32526013255119324, 0.05113200470805168, 0.27497410774230957, 0.7063325643539429, 0.4588070213794708, -0.030764669179916382, 0.6625359654426575, -0.06991036981344223, -0.1753263920545578, -0.12446307390928268, 0.2198461890220642, 0.129775732755661, 0.35823625326156616, 0.03437601402401924, 0.19632697105407715, -0.13530780375003815, -0.34878039360046387, 0.19833464920520782, 0.5369395017623901, -0.8127215504646301, -0.7433475255966187, 1.0065853595733643, 0.4328053891658783, 0.1457502245903015, 0.8136591911315918, -0.24412262439727783, -0.4256057143211365, 0.5996427536010742, -0.13782650232315063, 1.2968554496765137, -0.06528455764055252, 0.10868558287620544, 0.565163791179657, 0.587198793888092, -0.17203806340694427, 0.3826710283756256, 0.07584106922149658, -0.42863836884498596, 0.126062273979187, -0.48810651898384094, -0.33122557401657104, -0.13797251880168915, -0.7879438996315002, 0.45851898193359375, -0.8399707078933716, -0.47495755553245544, -0.269335001707077, 0.42533090710639954, -1.1203410625457764, 0.40627405047416687, -0.08967848867177963, 1.1081724166870117, -0.9965572357177734, 0.7445947527885437, 0.8256158232688904, -0.662777841091156, -0.8920626640319824, 0.0036606250796467066, 0.5639025568962097, -0.7898485064506531, 0.14399084448814392, 0.19630779325962067, 0.3104163706302643, -0.0004650765913538635, -0.6744797229766846, -0.2965683937072754, 1.3353384733200073, 0.5664315223693848, -0.19854260981082916, -0.36355334520339966, -0.48802852630615234, 0.3447651267051697, -0.1184639036655426, 0.11189427226781845, -0.03641659393906593, 0.308675080537796, 0.43025749921798706, -1.1392327547073364, 0.06722430139780045, -0.13683219254016876, 0.07411261647939682, 0.18606409430503845, -0.8930700421333313, 1.070998191833496, -0.5333244800567627, -0.033735617995262146, 0.6214325428009033, 0.5209994912147522, 0.4221438765525818, 0.12834349274635315, 0.330020934343338, 1.0218149423599243, 0.2626054584980011, -0.444804310798645, 1.2831017971038818, 0.17704127728939056, 1.0414831638336182, 0.8339377045631409, -0.09104215353727341, 0.669219970703125, 0.4744609296321869, -0.07072226703166962, 0.5006944537162781, 1.0379538536071777, -0.08503004163503647, 0.3777150511741638, 0.028443653136491776, -0.22846204042434692, -0.2695665657520294, -0.11131315678358078, -0.6114500164985657, 0.13603822886943817, 0.023339513689279556, -0.5337916016578674, -0.5653141140937805, -0.2604546546936035, 0.25122418999671936, -0.7588751316070557, -0.30638405680656433, 0.7664541006088257, 0.42001667618751526, -0.19341112673282623, 0.4400048851966858, 0.09138417989015579, 0.6919694542884827, -0.5684453845024109, 0.45810920000076294, -0.0830841213464737, 0.43149319291114807, -0.1811010241508484, -0.6261964440345764, 0.3347921371459961, 0.3314981162548065, 0.05689588934183121, -0.2504083216190338, 0.8231393694877625, -0.12116245925426483, -0.43195322155952454, 0.3185930848121643, 0.602570652961731, 0.17191767692565918, -0.18015940487384796, -0.8249900341033936, 0.3326611816883087, -0.3105687201023102, -0.40960246324539185, 0.6080716848373413, 0.31357452273368835, -0.027340926229953766, 0.5232570767402649, 0.1435784548521042, -0.22603443264961243, 0.05204055830836296, -0.1032787412405014, 1.094726324081421, -0.6527265310287476, -0.36976149678230286, -0.5275093913078308, 0.790436327457428, 0.22201012074947357, -0.510721743106842, 0.8576300740242004, 0.4294646382331848, 0.7399381995201111, -0.26432281732559204, 0.38556599617004395, -0.5335428714752197, -0.10627907514572144, -0.6279580593109131, 0.8595147728919983, -0.8997809290885925, -0.5852649211883545, -0.6824674606323242, -0.8393588662147522, -0.24132180213928223, 0.47394973039627075, -0.16914020478725433, 0.606575608253479, 0.6881002187728882, 0.7645803689956665, -0.3466043472290039, -0.3580522835254669, -0.02934727631509304, 0.11426905542612076, 0.25720036029815674, 0.6564068794250488, 0.3729593753814697, -0.9650217294692993, 0.3542805314064026, -0.34908172488212585, -0.3861692547798157, -0.4529452323913574, -0.7421273589134216, -1.098468542098999, -0.42437708377838135, -0.6184536814689636, -0.8279892802238464, 0.055962249636650085, 0.7393007278442383, 1.2896013259887695, -0.7550276517868042, 0.26362907886505127, -0.08691352605819702, 0.021507104858756065, 0.26873770356178284, -0.20182813704013824, 0.35582247376441956, 0.2663443088531494, -0.8420223593711853, -0.03839920088648796, 0.019235996529459953, 0.3707544207572937, -0.04356112703680992, -0.2233126014471054, 0.26647698879241943, -0.46385741233825684, 0.11610469967126846, 0.5451534986495972, -0.7118947505950928, -0.8163722157478333, -0.26306089758872986, -0.5132654309272766, 0.04762808233499527, 0.6629064679145813, -0.6966642141342163, 0.24430328607559204, 0.8145906329154968, 0.23832817375659943, 0.46825194358825684, -0.1778758466243744, 0.2594957649707794, -0.6896433234214783, 0.6402937173843384, 0.00458748172968626, 0.6608173251152039, 0.44277167320251465, 0.03275281935930252, 0.49802857637405396, 0.49302732944488525, -0.7765833735466003, -0.72857666015625, 0.19697140157222748, -1.2294796705245972, 0.3182632327079773, 0.9975018501281738, -0.3449527323246002, -0.3202483057975769, 0.5329068899154663, 0.00484729977324605, 0.20115157961845398, -0.2666923701763153, 0.5725566148757935, 0.8363030552864075, 0.08418411016464233, -0.31094542145729065, -0.7161322236061096, 0.63869309425354, 0.1199236810207367, -0.6933404803276062, -0.2047831416130066, 0.3622956871986389, 0.8246970176696777, 0.3366104066371918, 0.729775071144104, -0.2565159797668457, 0.40160098671913147, 0.24669532477855682, 0.1867274045944214, 0.23395825922489166, -0.3486267328262329, -0.5031894445419312, -0.2737400531768799, 0.16039657592773438, -0.4547809958457947 ]
timm/lcnet_050.ra2_in1k
timm
"2023-04-27T22:48:56Z"
39,238
0
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "arxiv:2110.00476", "arxiv:2109.15099", "license:apache-2.0", "region:us" ]
image-classification
"2022-12-16T05:37:27Z"
--- tags: - image-classification - timm library_name: timm license: apache-2.0 datasets: - imagenet-1k --- # Model card for lcnet_050.ra2_in1k A LCNet 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): 1.9 - GMACs: 0.0 - Activations (M): 1.3 - Image size: 224 x 224 - **Papers:** - PP-LCNet: A Lightweight CPU Convolutional Neural Network: https://arxiv.org/abs/2109.15099 - 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('lcnet_050.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( 'lcnet_050.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, 32, 56, 56]) # torch.Size([1, 64, 28, 28]) # torch.Size([1, 128, 14, 14]) # torch.Size([1, 256, 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( 'lcnet_050.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, 256, 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 @article{cui2021pp, title={PP-LCNet: A lightweight CPU convolutional neural network}, author={Cui, Cheng and Gao, Tingquan and Wei, Shengyu and Du, Yuning and Guo, Ruoyu and Dong, Shuilong and Lu, Bin and Zhou, Ying and Lv, Xueying and Liu, Qiwen and others}, journal={arXiv preprint arXiv:2109.15099}, 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.44757115840911865, -0.41517841815948486, -0.061071738600730896, -0.016619738191366196, -0.31361737847328186, -0.3436157703399658, -0.34382253885269165, -0.45037129521369934, 0.17244814336299896, 0.5489988923072815, -0.46089568734169006, -0.6080460548400879, -0.6885026097297668, -0.15333223342895508, -0.11254983395338058, 0.9824913144111633, 0.001207251101732254, 0.08722049742937088, -0.13781826198101044, -0.6265659928321838, -0.16140416264533997, -0.3707888722419739, -1.0552916526794434, -0.5517070889472961, 0.49347835779190063, 0.26351988315582275, 0.6038021445274353, 0.4726320207118988, 0.6170110702514648, 0.46562811732292175, -0.12249541282653809, 0.15788061916828156, -0.20381705462932587, -0.2323864996433258, 0.391309529542923, -0.5920857787132263, -0.4593547284603119, 0.21171113848686218, 0.6110691428184509, 0.46519115567207336, 0.07894407957792282, 0.4161924421787262, 0.20333260297775269, 0.7674016356468201, -0.2865380346775055, -0.003964453004300594, -0.4635300636291504, 0.3112061023712158, -0.11452806740999222, 0.11364002525806427, -0.3860061466693878, -0.27199259400367737, 0.20401668548583984, -0.5409089922904968, 0.44365206360816956, 0.08685141056776047, 1.2141083478927612, 0.22700883448123932, 0.013497020117938519, -0.10228080302476883, -0.21087689697742462, 0.8660435676574707, -0.8525183200836182, 0.21405188739299774, 0.2115127295255661, 0.23602232336997986, -0.03284817934036255, -1.0619639158248901, -0.5632857084274292, -0.32748040556907654, -0.20738224685192108, 0.05788296461105347, -0.17722077667713165, 0.025921309366822243, 0.33700910210609436, 0.20104201138019562, -0.5641531348228455, 0.18642866611480713, -0.4745333194732666, -0.19591715931892395, 0.4931474030017853, 0.00972306914627552, 0.3304138481616974, -0.2123960703611374, -0.49526703357696533, -0.41807350516319275, -0.36223340034484863, 0.3172164857387543, 0.3362119793891907, 0.2761164605617523, -0.6862689256668091, 0.41670140624046326, 0.22111721336841583, 0.557949960231781, 0.15503795444965363, -0.3021949827671051, 0.5640965700149536, -0.01569543406367302, -0.4563658833503723, -0.03635823354125023, 1.0976738929748535, 0.3859642446041107, 0.2352428287267685, 0.12009023874998093, -0.1301073580980301, -0.5051119923591614, -0.11987826228141785, -1.1715401411056519, -0.40778636932373047, 0.3347485363483429, -0.7395232319831848, -0.44854235649108887, 0.2661064863204956, -0.5490779876708984, -0.2458210587501526, -0.10377385467290878, 0.35947951674461365, -0.4140750467777252, -0.4040546119213104, -0.02703755721449852, -0.11368334293365479, 0.35363325476646423, 0.2463807910680771, -0.5234175324440002, 0.29040980339050293, 0.36445966362953186, 1.1818336248397827, 0.030125392600893974, -0.3435123860836029, -0.2949482500553131, -0.4843393564224243, -0.2992725670337677, 0.38599658012390137, -0.00033343248651362956, -0.04714861512184143, -0.33272236585617065, 0.4570719599723816, -0.08052420616149902, -0.7919257283210754, 0.2455243468284607, -0.2707444429397583, 0.2021474838256836, -0.11577362567186356, -0.2207469940185547, -0.4780263304710388, 0.34027546644210815, -0.6015121340751648, 1.336920976638794, 0.31544822454452515, -1.009217619895935, 0.2009289562702179, -0.4875577986240387, -0.11481230705976486, -0.3008061647415161, -0.024111134931445122, -1.1203824281692505, -0.14150261878967285, 0.12737980484962463, 0.687541127204895, -0.45250678062438965, 0.006841466762125492, -0.6052265763282776, -0.29786574840545654, 0.3914177119731903, 0.013677092269062996, 1.1525267362594604, 0.216652050614357, -0.5014150142669678, 0.11734962463378906, -0.569480299949646, 0.20717434585094452, 0.5348838567733765, -0.265253484249115, -0.005323134828358889, -0.589214026927948, 0.29244133830070496, 0.37461382150650024, 0.14379997551441193, -0.5538197755813599, 0.17612963914871216, -0.30791279673576355, 0.3927994966506958, 0.6029672026634216, -0.13693687319755554, 0.4192090332508087, -0.45347094535827637, 0.259589821100235, 0.31257471442222595, 0.2750828266143799, 0.051684971898794174, -0.5098864436149597, -0.8821417689323425, -0.30758020281791687, 0.337171733379364, 0.513071596622467, -0.6354814767837524, 0.4663426876068115, -0.06379933655261993, -0.7663809061050415, -0.40796804428100586, 0.21839870512485504, 0.5588163733482361, 0.6431940197944641, 0.32155612111091614, -0.4853634536266327, -0.633110761642456, -0.9218063354492188, 0.11279553174972534, 0.13410909473896027, 0.022624298930168152, 0.46749618649482727, 0.6563004851341248, 0.03349026292562485, 0.5993756651878357, -0.26740121841430664, -0.27502313256263733, -0.3978624939918518, 0.07155133038759232, 0.4952496290206909, 0.8661113977432251, 0.8953931331634521, -0.6886224150657654, -0.5829799175262451, -0.04869846999645233, -0.9880487322807312, 0.16547144949436188, -0.17375172674655914, -0.12697409093379974, 0.36712077260017395, 0.25842785835266113, -0.5409809350967407, 0.5309524536132812, 0.29823216795921326, -0.10139649361371994, 0.5254858136177063, -0.21492190659046173, 0.18178334832191467, -1.2186546325683594, 0.19953010976314545, 0.3320733606815338, -0.10105310380458832, -0.4012523591518402, 0.034653786569833755, -0.043868549168109894, -0.15202279388904572, -0.6552415490150452, 0.6967671513557434, -0.6120725274085999, -0.3557572066783905, -0.23283135890960693, -0.1502518504858017, 0.03411685302853584, 0.7888365983963013, -0.0893944725394249, 0.3934265077114105, 0.8413025140762329, -0.40483546257019043, 0.5172222256660461, 0.14172369241714478, -0.19212128221988678, 0.3739824891090393, -0.8545451760292053, 0.33875709772109985, 0.030480368062853813, 0.3580005466938019, -0.9728041291236877, -0.10767820477485657, 0.466048926115036, -0.6145979166030884, 0.6378606557846069, -0.5539562106132507, -0.5109530091285706, -0.560364842414856, -0.4925752282142639, 0.4472646117210388, 0.68498295545578, -0.6899148225784302, 0.48274433612823486, 0.14150358736515045, 0.4090099334716797, -0.6825899481773376, -0.9591594338417053, -0.16841015219688416, -0.31160449981689453, -0.63998943567276, 0.3000265061855316, 0.03409956023097038, 0.03868778795003891, 0.1241004467010498, 0.021208589896559715, -0.10415500402450562, -0.07903676480054855, 0.5914326906204224, 0.34447169303894043, -0.3618501126766205, -0.15791217982769012, -0.4337514638900757, -0.09255355596542358, -0.018085891380906105, -0.3636528551578522, 0.588103711605072, -0.2561561167240143, -0.14599788188934326, -0.9000391364097595, -0.04674793779850006, 0.4927788972854614, -0.018681589514017105, 0.8608471751213074, 1.2128527164459229, -0.5299612283706665, -0.11670579761266708, -0.4177224934101105, -0.367359459400177, -0.5043922066688538, 0.4438803791999817, -0.25034135580062866, -0.46708008646965027, 0.8973888158798218, -0.04648195579648018, 0.05105474963784218, 0.6030688285827637, 0.362968385219574, -0.18321454524993896, 0.6630197763442993, 0.581200122833252, 0.14529715478420258, 0.7201635241508484, -1.0516318082809448, -0.22650618851184845, -0.9720807075500488, -0.3949463367462158, -0.3778665065765381, -0.7087875008583069, -0.6444603204727173, -0.3821016848087311, 0.46557343006134033, 0.20574727654457092, -0.4276081621646881, 0.4479348659515381, -0.9561468958854675, 0.07107136398553848, 0.6501812934875488, 0.6712247729301453, -0.45356929302215576, 0.2590038478374481, -0.3752090334892273, -0.04904282093048096, -0.81379634141922, -0.18543118238449097, 1.0922653675079346, 0.40609923005104065, 0.5770424604415894, -0.2229023426771164, 0.6895201206207275, -0.1365032196044922, 0.3836889863014221, -0.5584684610366821, 0.6447299718856812, -0.3292369246482849, -0.40442827343940735, -0.10094832628965378, -0.384312242269516, -0.999675989151001, 0.048818644136190414, -0.37810394167900085, -0.6909769177436829, 0.16038812696933746, 0.24776186048984528, -0.20014120638370514, 0.8776327967643738, -0.7535350322723389, 0.8946908116340637, -0.2218887209892273, -0.4786950945854187, 0.06640356779098511, -0.7683694958686829, 0.3563002347946167, 0.2593192160129547, -0.21054239571094513, -0.09017340838909149, 0.166147381067276, 1.0027457475662231, -0.6962020397186279, 0.9893088936805725, -0.5126563906669617, 0.4530116021633148, 0.60397869348526, -0.14848540723323822, 0.37296250462532043, -0.1374550312757492, -0.24750623106956482, 0.3464799225330353, -0.09819277375936508, -0.4973564147949219, -0.5898591876029968, 0.5890310406684875, -1.0454851388931274, -0.20381121337413788, -0.327087938785553, -0.47317323088645935, 0.2898389995098114, 0.04414447024464607, 0.5859671235084534, 0.7458241581916809, 0.2601984739303589, 0.3440316915512085, 0.6304266452789307, -0.5614855885505676, 0.494676798582077, -0.07572083175182343, -0.10210389643907547, -0.5404815077781677, 0.7459499835968018, 0.2863025367259979, 0.19136019051074982, 0.16379433870315552, 0.2248333841562271, -0.1717979907989502, -0.5876041054725647, -0.3226235806941986, 0.3274845778942108, -0.7206307649612427, -0.5130138993263245, -0.5642590522766113, -0.5309737324714661, -0.34746718406677246, -0.19190405309200287, -0.5686420202255249, -0.3365386128425598, -0.3682985305786133, 0.3155710697174072, 0.6860044002532959, 0.5640341639518738, -0.13540901243686676, 0.5243875980377197, -0.4824129045009613, 0.07732110470533371, 0.10443045943975449, 0.3234773278236389, 0.07447031140327454, -0.8588843941688538, -0.3483712673187256, -0.04114347696304321, -0.40085986256599426, -0.646027684211731, 0.4080762267112732, 0.18205447494983673, 0.5137984156608582, 0.24482500553131104, -0.13676215708255768, 0.6225570440292358, -0.012513159774243832, 0.5872388482093811, 0.5101076364517212, -0.5151215195655823, 0.6124393343925476, 0.05067494884133339, 0.2638377845287323, 0.1222410723567009, 0.2344883382320404, -0.2735714912414551, -0.07563494890928268, -0.924407958984375, -0.7437342405319214, 0.8852580189704895, 0.04688660427927971, -0.02087533287703991, 0.37436816096305847, 0.845209538936615, -0.04810373857617378, -0.07623492926359177, -0.8141895532608032, -0.5338372588157654, -0.3217010498046875, -0.24945704638957977, 0.07863243669271469, -0.056750692427158356, -0.0533977709710598, -0.6365287899971008, 0.6739805936813354, -0.12691804766654968, 0.7222380042076111, 0.4301668405532837, -0.025656143203377724, -0.10603761672973633, -0.40139642357826233, 0.48953476548194885, 0.254781037569046, -0.31449830532073975, 0.17223922908306122, 0.32834574580192566, -0.566413164138794, 0.027384305372834206, 0.075861357152462, -0.026386816054582596, 0.0317392461001873, 0.5622434020042419, 0.8542059063911438, 0.14744773507118225, 0.0056416490115225315, 0.3927873969078064, -0.03284917026758194, -0.47874021530151367, -0.3348463475704193, 0.12681834399700165, 0.03629607334733009, 0.43670010566711426, 0.2987380623817444, 0.4503670930862427, -0.16714069247245789, -0.27084192633628845, 0.3613783121109009, 0.5174312591552734, -0.3113783299922943, -0.33199262619018555, 0.6559308171272278, -0.257635235786438, -0.18657290935516357, 0.8749397993087769, -0.13582000136375427, -0.5035241842269897, 1.2751376628875732, 0.4538109302520752, 0.9871975183486938, 0.08143188059329987, 0.002272144192829728, 0.9448493123054504, 0.3068998456001282, 0.04656451195478439, 0.13342051208019257, 0.14603449404239655, -0.825439453125, 0.1009555384516716, -0.4876585304737091, -0.050320472568273544, 0.3067399263381958, -0.5444959998130798, 0.308098167181015, -0.8051472902297974, -0.4437231719493866, 0.1906869262456894, 0.4781950116157532, -1.0156593322753906, 0.19017688930034637, 0.062014710158109665, 0.9129233956336975, -0.6808488368988037, 0.9235293865203857, 0.8555604219436646, -0.5373207330703735, -1.100527286529541, -0.20598624646663666, 0.07450523972511292, -0.9473862051963806, 0.7490663528442383, 0.4144847095012665, 0.09672845900058746, -0.03899009898304939, -0.9516333937644958, -0.5832961797714233, 1.5269571542739868, 0.5172380208969116, -0.19957958161830902, 0.30078640580177307, -0.07548175007104874, 0.25606417655944824, -0.5382806062698364, 0.488650918006897, 0.08231382817029953, 0.39152243733406067, 0.350342333316803, -0.6861134767532349, 0.291154146194458, -0.3176501989364624, 0.11692619323730469, 0.04643293842673302, -0.8643854260444641, 0.9507778882980347, -0.5673057436943054, -0.07814675569534302, 0.10999906063079834, 0.6405487656593323, 0.3094566762447357, 0.2596454322338104, 0.6335943937301636, 0.8619486689567566, 0.4819149374961853, -0.25508448481559753, 0.949658989906311, -0.09777191281318665, 0.6431957483291626, 0.7775875926017761, 0.25125253200531006, 0.5423830151557922, 0.2836180329322815, -0.21307571232318878, 0.39188462495803833, 1.0750658512115479, -0.3917698860168457, 0.26915574073791504, 0.23161457479000092, 0.05884356051683426, -0.10974039882421494, -0.0013696191599592566, -0.4060368239879608, 0.4194713830947876, 0.13904955983161926, -0.5845363140106201, -0.2159237265586853, 0.09083352237939835, 0.1105228140950203, -0.2795819938182831, -0.19459588825702667, 0.499973863363266, 0.12374620884656906, -0.37821727991104126, 0.8914080262184143, 0.08084077388048172, 0.8962640762329102, -0.3894667327404022, -0.005825666710734367, -0.2791334390640259, 0.22525829076766968, -0.3498421311378479, -0.819962739944458, 0.285575270652771, -0.3124113976955414, -0.03844781965017319, 0.080349862575531, 0.7394389510154724, -0.3197340965270996, -0.5183687210083008, 0.3235999345779419, 0.3086455464363098, 0.531424343585968, 0.21331027150154114, -1.4902822971343994, 0.28866708278656006, -0.04365311563014984, -0.6419765949249268, 0.39458030462265015, 0.389087975025177, 0.1736714243888855, 0.69576495885849, 0.6361889243125916, -0.12394825369119644, 0.037135861814022064, -0.06834320724010468, 0.8858291506767273, -0.3937283158302307, -0.16347184777259827, -0.770656168460846, 0.5959176421165466, -0.1428687870502472, -0.5701996088027954, 0.4809717833995819, 0.6140639781951904, 0.773607611656189, 0.06121568754315376, 0.4637505114078522, -0.30920565128326416, -0.05456727370619774, -0.48685112595558167, 0.7337467670440674, -0.7863384485244751, 0.031047089025378227, -0.11006249487400055, -0.6612208485603333, -0.33518439531326294, 0.6336227059364319, -0.19566135108470917, 0.48815542459487915, 0.49928125739097595, 1.0952566862106323, -0.3076733350753784, -0.46013617515563965, 0.22295169532299042, 0.13774262368679047, 0.025043709203600883, 0.5222026109695435, 0.2899887263774872, -0.8372352123260498, 0.36154472827911377, -0.7811356782913208, -0.13604208827018738, -0.14901486039161682, -0.7596777677536011, -1.0290368795394897, -0.8690933585166931, -0.5699569582939148, -0.7576616406440735, -0.11948630958795547, 0.9687159657478333, 1.2128323316574097, -0.7833507061004639, -0.16620923578739166, 0.027726097032427788, 0.21901200711727142, -0.31669002771377563, -0.24227887392044067, 0.6989301443099976, -0.23236355185508728, -0.6536415219306946, -0.3614894151687622, 0.033296626061201096, 0.33782681822776794, -0.03399159014225006, -0.33511725068092346, -0.20433376729488373, -0.3156055808067322, 0.21585287153720856, 0.38265547156333923, -0.7317837476730347, -0.18009713292121887, -0.16579151153564453, -0.2290317267179489, 0.35970693826675415, 0.6059074401855469, -0.48290780186653137, 0.3094887137413025, 0.3130447566509247, 0.36104801297187805, 0.7597679495811462, -0.35175445675849915, -0.013134412467479706, -0.9186309576034546, 0.6982907056808472, -0.09753838926553726, 0.5224641561508179, 0.46504926681518555, -0.4567459523677826, 0.6099083423614502, 0.43521347641944885, -0.5281872153282166, -0.8130254745483398, -0.11594875901937485, -1.27213716506958, -0.20558714866638184, 0.8509820103645325, -0.42075225710868835, -0.5387447476387024, 0.4272545278072357, -0.054495032876729965, 0.6865527629852295, -0.06832635402679443, 0.35887235403060913, 0.21543475985527039, -0.1305403858423233, -0.8894028663635254, -0.6692253947257996, 0.42755115032196045, 0.18397323787212372, -0.6132340431213379, -0.40895453095436096, -0.06479343771934509, 0.6809011697769165, 0.1981230229139328, 0.5437735319137573, -0.14621049165725708, 0.21109895408153534, 0.056915707886219025, 0.5868952870368958, -0.459312379360199, -0.014604113064706326, -0.2511439025402069, 0.03135358914732933, -0.08591201156377792, -0.5251545906066895 ]
studio-ousia/luke-base
studio-ousia
"2022-04-13T08:59:59Z"
39,222
16
transformers
[ "transformers", "pytorch", "luke", "fill-mask", "named entity recognition", "entity typing", "relation classification", "question answering", "en", "arxiv:1906.08237", "arxiv:1903.07785", "arxiv:2002.01808", "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/studio-ousia/luke/raw/master/resources/luke_logo.png tags: - luke - named entity recognition - entity typing - relation classification - question answering license: apache-2.0 --- ## LUKE: Deep Contextualized Entity Representations with Entity-aware Self-attention **LUKE** (**L**anguage **U**nderstanding with **K**nowledge-based **E**mbeddings) is a new pre-trained contextualized representation of words and entities based on transformer. LUKE treats words and entities in a given text as independent tokens, and outputs contextualized representations of them. LUKE adopts an entity-aware self-attention mechanism that is an extension of the self-attention mechanism of the transformer, and considers the types of tokens (words or entities) when computing attention scores. LUKE achieves state-of-the-art results on five popular NLP benchmarks including **[SQuAD v1.1](https://rajpurkar.github.io/SQuAD-explorer/)** (extractive question answering), **[CoNLL-2003](https://www.clips.uantwerpen.be/conll2003/ner/)** (named entity recognition), **[ReCoRD](https://sheng-z.github.io/ReCoRD-explorer/)** (cloze-style question answering), **[TACRED](https://nlp.stanford.edu/projects/tacred/)** (relation classification), and **[Open Entity](https://www.cs.utexas.edu/~eunsol/html_pages/open_entity.html)** (entity typing). Please check the [official repository](https://github.com/studio-ousia/luke) for more details and updates. This is the LUKE base model with 12 hidden layers, 768 hidden size. The total number of parameters in this model is 253M. It is trained using December 2018 version of Wikipedia. ### Experimental results The experimental results are provided as follows: | Task | Dataset | Metric | LUKE-large | luke-base | Previous SOTA | | ------------------------------ | ---------------------------------------------------------------------------- | ------ | ----------------- | --------- | ------------------------------------------------------------------------- | | Extractive Question Answering | [SQuAD v1.1](https://rajpurkar.github.io/SQuAD-explorer/) | EM/F1 | **90.2**/**95.4** | 86.1/92.3 | 89.9/95.1 ([Yang et al., 2019](https://arxiv.org/abs/1906.08237)) | | Named Entity Recognition | [CoNLL-2003](https://www.clips.uantwerpen.be/conll2003/ner/) | F1 | **94.3** | 93.3 | 93.5 ([Baevski et al., 2019](https://arxiv.org/abs/1903.07785)) | | Cloze-style Question Answering | [ReCoRD](https://sheng-z.github.io/ReCoRD-explorer/) | EM/F1 | **90.6**/**91.2** | - | 83.1/83.7 ([Li et al., 2019](https://www.aclweb.org/anthology/D19-6011/)) | | Relation Classification | [TACRED](https://nlp.stanford.edu/projects/tacred/) | F1 | **72.7** | - | 72.0 ([Wang et al. , 2020](https://arxiv.org/abs/2002.01808)) | | Fine-grained Entity Typing | [Open Entity](https://www.cs.utexas.edu/~eunsol/html_pages/open_entity.html) | F1 | **78.2** | - | 77.6 ([Wang et al. , 2020](https://arxiv.org/abs/2002.01808)) | ### Citation If you find LUKE useful for your work, please cite the following paper: ```latex @inproceedings{yamada2020luke, title={LUKE: Deep Contextualized Entity Representations with Entity-aware Self-attention}, author={Ikuya Yamada and Akari Asai and Hiroyuki Shindo and Hideaki Takeda and Yuji Matsumoto}, booktitle={EMNLP}, year={2020} } ```
[ -0.6851897239685059, -0.8255769610404968, 0.5254063606262207, 0.07989586144685745, -0.07504884153604507, 0.032075151801109314, -0.32253026962280273, -0.5495279431343079, 0.5340949892997742, 0.4326801598072052, -0.6230007410049438, -0.7030717730522156, -0.5475780963897705, 0.28968438506126404, -0.14945241808891296, 0.8736644387245178, -0.20028690993785858, -0.06693944334983826, -0.0746682733297348, -0.24401113390922546, -0.5436118245124817, -0.4024055302143097, -0.6091698408126831, 0.05144013836979866, 0.382991224527359, 0.2928141951560974, 0.39308640360832214, 0.8035603761672974, 0.6582752466201782, 0.3156309723854065, 0.015721730887889862, 0.18957141041755676, -0.480721652507782, 0.3998381793498993, -0.08573400974273682, -0.3102509081363678, -0.541665256023407, -0.05522464960813522, 0.8426414728164673, 0.5596849918365479, -0.035264477133750916, 0.3328588008880615, -0.05010590702295303, 0.6904773116111755, -0.6626129150390625, 0.24672360718250275, -0.46883928775787354, -0.08866242319345474, -0.22167305648326874, -0.2649073004722595, -0.26239699125289917, 0.3364724814891815, 0.23815768957138062, -0.9215226769447327, 0.390921413898468, -0.0759722962975502, 1.1751024723052979, 0.45326632261276245, -0.3739950954914093, -0.10382285714149475, -0.5753133296966553, 0.7609446048736572, -0.5963820815086365, 0.7289566993713379, 0.18189023435115814, 0.22572773694992065, -0.0525498203933239, -0.8160758018493652, -0.6121068000793457, -0.1608165055513382, -0.28906917572021484, 0.46074527502059937, -0.021474746987223625, 0.008069949224591255, 0.2603842318058014, 0.3880867063999176, -0.5672333836555481, 0.03732450306415558, -0.09872014820575714, 0.06872987002134323, 0.7619645595550537, 0.07227837294340134, 0.42042604088783264, -0.36959540843963623, -0.8084977269172668, -0.1731419712305069, -0.5554070472717285, 0.25060898065567017, 0.02493768371641636, 0.1397169679403305, -0.23985816538333893, 0.5276554226875305, -0.4264431893825531, 0.49190664291381836, 0.18307147920131683, -0.11827808618545532, 0.3628723919391632, -0.4844564199447632, -0.3044727146625519, -0.00884577352553606, 1.1498249769210815, 0.3957746922969818, 0.33502116799354553, -0.16914324462413788, -0.0523788258433342, 0.0060300882905721664, 0.15040817856788635, -0.8820016384124756, -0.045268911868333817, 0.24408644437789917, -0.4811416566371918, 0.06689909845590591, 0.1674356609582901, -0.9028582572937012, -0.02051360532641411, -0.10114594548940659, 0.18989890813827515, -0.6569773554801941, -0.4496167302131653, 0.036234382539987564, -0.11534202843904495, 0.2801080048084259, 0.30554109811782837, -0.8886455297470093, 0.33289363980293274, 0.3973536789417267, 0.5483055114746094, -0.26804399490356445, -0.5076245069503784, -0.2629534900188446, 0.2687108516693115, -0.2722066044807434, 0.7854181528091431, -0.3631605803966522, -0.3181082010269165, -0.2245076447725296, 0.11785626411437988, -0.3687414824962616, -0.3723193407058716, 0.27774113416671753, -0.542296826839447, 0.18350213766098022, -0.49897146224975586, -0.9134353399276733, 0.04924667626619339, 0.21877673268318176, -0.6526952385902405, 1.0962061882019043, 0.1998548060655594, -0.6114840507507324, 0.47367122769355774, -0.7236813306808472, -0.11109785735607147, 0.25730225443840027, -0.42395535111427307, -0.2888147830963135, -0.44193893671035767, 0.4113759994506836, 0.6612048149108887, -0.3711129128932953, 0.28863203525543213, -0.1659259796142578, -0.11104870587587357, 0.14508767426013947, -0.050521936267614365, 0.8660832047462463, 0.09069239348173141, -0.6705935001373291, -0.03609849512577057, -0.6882860660552979, 0.09079883992671967, 0.5422289371490479, -0.17861555516719818, -0.21856659650802612, -0.3583444058895111, -0.17774698138237, 0.15812820196151733, 0.18930122256278992, -0.4550555646419525, -0.0298428013920784, -0.3704705834388733, 0.1574987918138504, 0.35133814811706543, 0.4007783830165863, 0.7252535820007324, -0.06825084984302521, 0.6319299936294556, 0.18531201779842377, -0.03957090899348259, -0.4488188922405243, -0.5738164782524109, -0.8604691028594971, -0.36649924516677856, 0.30351850390434265, 0.4024999141693115, -0.7173126935958862, 0.7227088212966919, -0.5485794544219971, -0.6759436130523682, -0.6141399145126343, 0.22547832131385803, 0.7541592121124268, 0.8186880946159363, 0.9968408942222595, -0.09550290554761887, -0.5656511783599854, -0.9914989471435547, -0.2130717784166336, -0.34496793150901794, 0.2687949538230896, 0.26026707887649536, 0.515049397945404, -0.12231291830539703, 1.003857970237732, -0.49675339460372925, -0.47817960381507874, -0.3206346929073334, -0.24681983888149261, -0.20394328236579895, 0.6313207149505615, 0.8118975758552551, -0.7603711485862732, -0.6279890537261963, -0.16980792582035065, -1.0367519855499268, 0.3042437434196472, -0.02501700632274151, -0.15911132097244263, 0.18393053114414215, 0.687425971031189, -1.1092151403427124, 0.4268147945404053, -0.05813849717378616, -0.621192216873169, 0.26829707622528076, 0.05874450504779816, 0.13687144219875336, -1.248225450515747, 0.1259027123451233, 0.21021051704883575, -0.18810032308101654, -0.6208313703536987, 0.4544473886489868, 0.28553715348243713, 0.18795017898082733, -0.35868608951568604, 0.7844534516334534, -0.8717991709709167, 0.16190452873706818, 0.2955274283885956, 0.2084057480096817, 0.05926664546132088, 0.6313223838806152, 0.14485818147659302, 0.9158797860145569, 0.3694636821746826, -0.61637282371521, 0.2627098560333252, 0.409845232963562, -0.12944824993610382, 0.5456897020339966, -0.5793237090110779, 0.014057829044759274, -0.2367488294839859, 0.43065986037254333, -0.9096637964248657, -0.09744421392679214, 0.45569610595703125, -0.6809107065200806, 0.8609473705291748, -0.17559649050235748, -0.4034278690814972, -0.2634473741054535, -0.4117657542228699, 0.28115975856781006, 0.3359946310520172, -0.4547829031944275, 0.41391465067863464, 0.47010257840156555, 0.10177259892225266, -0.8596403002738953, -0.6332928538322449, 0.03170841932296753, -0.1064242273569107, -0.3714359998703003, 0.6474400758743286, -0.20262740552425385, -0.04115082696080208, 0.3796287775039673, -0.25296884775161743, 0.11905000358819962, 0.07722318172454834, 0.2127475142478943, 0.3998689353466034, -0.6439034938812256, 0.3329734206199646, -0.10309270769357681, -0.181735560297966, 0.07047343999147415, -0.029652606695890427, 0.636133074760437, -0.4236146807670593, -0.1578446924686432, -0.48519450426101685, 0.4384763538837433, 0.3775216341018677, -0.48610275983810425, 0.791973888874054, 0.7734607458114624, -0.3961747884750366, -0.09934937953948975, -0.8065459728240967, -0.015919122844934464, -0.4230059087276459, 0.48534315824508667, -0.5475278496742249, -1.0419648885726929, 0.6244327425956726, 0.30596408247947693, -0.07751075178384781, 1.157763123512268, 0.4118289649486542, -0.23381687700748444, 0.6752200126647949, 0.21022912859916687, -0.013409273698925972, 0.4587042033672333, -0.7612671256065369, 0.08271890878677368, -1.0292481184005737, -0.435034841299057, -0.4404899775981903, -0.3117697834968567, -0.8198260068893433, -0.37927281856536865, 0.017334086820483208, 0.23047325015068054, -0.26142585277557373, 0.5969983339309692, -0.6605439186096191, 0.44901615381240845, 0.4497240483760834, 0.02102780155837536, 0.11415639519691467, -0.29736658930778503, -0.056993719190359116, -0.09760242700576782, -0.5738827586174011, -0.4962283968925476, 1.1847392320632935, 0.4486192464828491, 0.44416922330856323, 0.16144676506519318, 1.1610572338104248, -0.05304780974984169, 0.3336905837059021, -0.7647691369056702, 0.797782838344574, 0.1895490437746048, -0.9837698936462402, -0.6555649042129517, -0.5277812480926514, -1.3109456300735474, 0.041311897337436676, -0.24517175555229187, -0.8457106351852417, 0.3200153708457947, -0.1140395849943161, -0.47075772285461426, 0.27075499296188354, -1.060247540473938, 0.9978348016738892, 0.016876554116606712, -0.19098012149333954, 0.08594757318496704, -0.8442592620849609, 0.30163758993148804, 0.31084364652633667, -0.13734951615333557, -0.2105826437473297, -0.36279070377349854, 0.9349334836006165, -0.33920732140541077, 0.4583851993083954, -0.32874348759651184, 0.1075328066945076, 0.5103718638420105, -0.08401548862457275, 0.23536036908626556, 0.44570350646972656, 0.25849011540412903, 0.1463056355714798, 0.2436252236366272, -0.405392050743103, -0.7328839898109436, 0.9412975311279297, -0.9239363074302673, -0.862575352191925, -0.3265266418457031, -0.24174906313419342, -0.21654891967773438, 0.49693766236305237, 0.4031384289264679, 0.3818128705024719, -0.2573205232620239, 0.34874090552330017, 0.7859472036361694, -0.04825099557638168, 0.7582138180732727, 0.47424811124801636, -0.1382967084646225, -0.4451790452003479, 0.7224915027618408, 0.45304614305496216, 0.03861169144511223, 0.7675701379776001, -0.20171453058719635, -0.41378074884414673, -0.5001984238624573, -0.7627151012420654, 0.4570468068122864, -0.8940633535385132, -0.5840210318565369, -1.0321714878082275, -0.4828014373779297, -0.5547744035720825, 0.18374502658843994, -0.5747148990631104, -0.4616834223270416, -0.5540714859962463, -0.3202224671840668, 0.31585773825645447, 0.5696520209312439, 0.4840693175792694, 0.027769891545176506, -0.7345190644264221, 0.6260693073272705, 0.4128197729587555, 0.4471736550331116, -0.013247126713395119, -0.26769381761550903, -0.13734953105449677, -0.08209710568189621, -0.1210600733757019, -1.179133415222168, 0.312405526638031, 0.09245845675468445, 0.8843364715576172, 0.17214415967464447, 0.1412530243396759, 0.7872822880744934, -0.3719692826271057, 0.8784698247909546, 0.20279113948345184, -0.7341755032539368, 0.7103145718574524, -0.3469698131084442, 0.11350923031568527, 0.8985889554023743, 0.40346503257751465, -0.21209967136383057, -0.19559741020202637, -1.101906180381775, -0.7553871870040894, 0.6838035583496094, 0.29460567235946655, 0.04324236884713173, -0.37492725253105164, 0.5255516171455383, -0.15692169964313507, 0.08400099724531174, -0.6311079859733582, -0.9188708662986755, -0.14301332831382751, -0.33583492040634155, -0.2787850797176361, -0.39964690804481506, 0.17569124698638916, -0.3423110842704773, 0.7003727555274963, 0.012272965162992477, 0.6039324402809143, 0.821851372718811, -0.3897080719470978, -0.14763104915618896, 0.21877558529376984, 0.5873169898986816, 0.5664763450622559, -0.3968855142593384, 0.17330892384052277, 0.2555457353591919, -0.6006576418876648, 0.15143997967243195, 0.47791263461112976, -0.17441020905971527, 0.17865709960460663, 0.6298015117645264, 0.6861951351165771, 0.23760931193828583, -0.44875144958496094, 0.6428029537200928, -0.18738895654678345, -0.10943897813558578, -0.4009419083595276, 0.2818962037563324, 0.17172466218471527, 0.18843945860862732, 0.3802892565727234, 0.027282172814011574, 0.16040614247322083, -0.4730830490589142, 0.026639828458428383, 0.5058863162994385, -0.517033040523529, -0.21508605778217316, 0.6917253136634827, 0.10408207774162292, -0.29119259119033813, 0.12196685373783112, -0.32580238580703735, -0.3472985029220581, 0.7009862661361694, 0.4546826183795929, 0.9761134386062622, -0.46061375737190247, 0.02960870787501335, 0.628192663192749, 0.2774462103843689, 0.13246208429336548, 0.20162168145179749, -0.20843030512332916, -0.808379590511322, -0.12963882088661194, -0.45318159461021423, 0.015050479210913181, 0.2552648186683655, -0.6650344133377075, 0.06694149225950241, -0.5470523238182068, -0.24432890117168427, 0.3124707341194153, 0.2755410969257355, -1.2330877780914307, 0.2730506956577301, -0.04643860086798668, 0.9926856756210327, -0.22030317783355713, 0.7432101368904114, 0.9374982118606567, -0.8424375057220459, -1.016041874885559, 0.015351065434515476, -0.2526538074016571, -0.9211397767066956, 0.5431025624275208, 0.2706637680530548, -0.05068400129675865, 0.42346468567848206, -0.36830222606658936, -1.1114345788955688, 1.5175591707229614, 0.39153003692626953, -0.4575217068195343, -0.18798521161079407, 0.011539584957063198, 0.5493694543838501, -0.4564144015312195, 0.45220354199409485, 0.6742709875106812, 0.38497552275657654, -0.2564857006072998, -0.8994386196136475, 0.35292747616767883, -0.6124975085258484, 0.0143120801076293, 0.1383751630783081, -0.8498159646987915, 0.5688881278038025, -0.21791107952594757, -0.42102259397506714, -0.07546516507863998, 0.7958570122718811, 0.26088887453079224, 0.454641729593277, 0.40619534254074097, 0.8789497017860413, 0.6213080286979675, -0.07493864744901657, 1.1261181831359863, -0.34224244952201843, 0.49216362833976746, 1.2721467018127441, 0.034648437052965164, 0.8686515688896179, 0.5426239967346191, -0.3988278806209564, 0.5923377275466919, 0.5295923352241516, 0.020661184564232826, 0.3694014847278595, -0.19577252864837646, 0.0655575692653656, -0.11098978668451309, -0.17268434166908264, -0.7837838530540466, 0.4494308531284332, 0.18131011724472046, -0.5249406099319458, 0.02883862517774105, -0.4266292154788971, 0.1764104664325714, 0.15301506221294403, -0.10572803765535355, 0.9538187980651855, 0.09665678441524506, -0.9106559157371521, 0.660450279712677, -0.1283150613307953, 0.54844069480896, -0.4633358418941498, 0.028638606891036034, -0.263840913772583, -0.08260761946439743, -0.10351524502038956, -0.8721275329589844, -0.0679970234632492, -0.11901281028985977, -0.11861414462327957, -0.27015239000320435, 0.9064887166023254, -0.41481971740722656, -0.3364518880844116, 0.5799511671066284, 0.9576351642608643, -0.21494874358177185, -0.049634240567684174, -0.753145158290863, -0.28261372447013855, -0.2188366800546646, -0.7668446898460388, 0.2848014831542969, 0.5850335359573364, 0.3358081877231598, 0.63438880443573, 0.5418300032615662, -0.047374796122312546, 0.2088807225227356, 0.07522781938314438, 0.8736504912376404, -0.9568453431129456, -0.5572742223739624, -0.9436956644058228, 0.5696887969970703, -0.21917413175106049, -0.6295374035835266, 0.8880693316459656, 0.7011299133300781, 0.9577771425247192, -0.08313390612602234, 0.4374886155128479, 0.1369871199131012, 0.5540810823440552, -0.47172752022743225, 0.6889631748199463, -0.6133085489273071, 0.13904166221618652, -0.45798400044441223, -0.9772244095802307, -0.32966873049736023, 0.3151431679725647, -0.23124146461486816, 0.4276129901409149, 0.8933325409889221, 0.5283837914466858, 0.042938344180583954, -0.20195753872394562, 0.08049691468477249, 0.03341145068407059, 0.26442378759384155, 0.5136302709579468, 0.8326427936553955, -0.7327305674552917, 0.5398641228675842, -0.4691075086593628, 0.12694795429706573, -0.17834264039993286, -0.46750330924987793, -1.127741813659668, -0.9143900275230408, -0.47769811749458313, -0.3176358640193939, -0.19522474706172943, 1.1434578895568848, 0.7855474948883057, -0.7087411880493164, 0.10442471504211426, -0.3272247910499573, 0.1792868673801422, -0.1425502747297287, -0.2869756817817688, 0.5131577253341675, -0.4465264678001404, -0.5579025149345398, 0.3638296127319336, 0.3226437270641327, 0.21917279064655304, -0.15095306932926178, -0.25520557165145874, -0.46505314111709595, -0.30570313334465027, 0.3983619213104248, 0.2562638819217682, -0.9286845922470093, -0.1896088421344757, 0.2972766160964966, -0.29405614733695984, 0.3245789110660553, 0.5328553915023804, -0.857416033744812, 0.45799484848976135, 0.21412873268127441, 0.7892873287200928, 0.7088385224342346, -0.09128650277853012, 0.08412686735391617, -0.7161637544631958, -0.12747196853160858, 0.3315788805484772, 0.5389431715011597, 0.40943145751953125, -0.5984857678413391, 0.7221645712852478, 0.41567137837409973, -0.3378857672214508, -0.6957045197486877, -0.03677674010396004, -1.2900055646896362, -0.08492784202098846, 1.224633812904358, -0.2508399486541748, -0.2316533476114273, 0.054113030433654785, -0.031012963503599167, 0.6740982532501221, -0.6310877203941345, 0.4373255670070648, 0.5222643613815308, 0.003900673473253846, -0.37337982654571533, -0.5211552977561951, 0.6427379846572876, 0.4318563640117645, -1.0503183603286743, -0.21209202706813812, 0.20599523186683655, 0.3380250334739685, 0.4495312571525574, 0.8259676098823547, 0.03394060954451561, 0.2405775487422943, -0.09513141214847565, 0.06979233026504517, -0.20355981588363647, -0.2918355166912079, -0.18215645849704742, 0.05451630428433418, -0.07012941688299179, -0.2594362795352936 ]
timm/vit_large_patch14_dinov2.lvd142m
timm
"2023-11-22T17:23:19Z"
39,166
3
timm
[ "timm", "pytorch", "safetensors", "feature-extraction", "arxiv:2304.07193", "arxiv:2010.11929", "license:apache-2.0", "has_space", "region:us" ]
feature-extraction
"2023-05-09T21:05:24Z"
--- license: apache-2.0 library_name: timm tags: - timm - feature-extraction --- # Model card for vit_large_patch14_dinov2.lvd142m A Vision Transformer (ViT) image feature model. Pretrained on LVD-142M with self-supervised DINOv2 method. ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 304.4 - GMACs: 507.1 - Activations (M): 1058.8 - Image size: 518 x 518 - **Papers:** - DINOv2: Learning Robust Visual Features without Supervision: https://arxiv.org/abs/2304.07193 - An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale: https://arxiv.org/abs/2010.11929v2 - **Original:** https://github.com/facebookresearch/dinov2 - **Pretrain Dataset:** LVD-142M ## 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('vit_large_patch14_dinov2.lvd142m', 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( 'vit_large_patch14_dinov2.lvd142m', 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, 1370, 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 @misc{oquab2023dinov2, title={DINOv2: Learning Robust Visual Features without Supervision}, author={Oquab, Maxime and Darcet, Timothée and Moutakanni, Theo and Vo, Huy V. and Szafraniec, Marc and Khalidov, Vasil and Fernandez, Pierre and Haziza, Daniel and Massa, Francisco and El-Nouby, Alaaeldin and Howes, Russell and Huang, Po-Yao and Xu, Hu and Sharma, Vasu and Li, Shang-Wen and Galuba, Wojciech and Rabbat, Mike and Assran, Mido and Ballas, Nicolas and Synnaeve, Gabriel and Misra, Ishan and Jegou, Herve and Mairal, Julien and Labatut, Patrick and Joulin, Armand and Bojanowski, Piotr}, journal={arXiv:2304.07193}, year={2023} } ``` ```bibtex @article{dosovitskiy2020vit, title={An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale}, author={Dosovitskiy, Alexey and Beyer, Lucas and Kolesnikov, Alexander and Weissenborn, Dirk and Zhai, Xiaohua and Unterthiner, Thomas and Dehghani, Mostafa and Minderer, Matthias and Heigold, Georg and Gelly, Sylvain and Uszkoreit, Jakob and Houlsby, Neil}, journal={ICLR}, 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}} } ```
[ -0.5124288201332092, -0.41145646572113037, 0.0935242548584938, 0.0751306489109993, -0.4818616807460785, -0.35151922702789307, -0.29286158084869385, -0.4526174068450928, 0.15759436786174774, 0.28329089283943176, -0.45530644059181213, -0.5449773073196411, -0.7103672027587891, -0.052683886140584946, -0.06662707030773163, 0.8695101141929626, -0.1379973590373993, -0.06732213497161865, -0.3093309998512268, -0.4648147523403168, -0.1656412035226822, -0.17046205699443817, -0.5404976606369019, -0.3437257707118988, 0.43441206216812134, 0.0943366140127182, 0.6000462174415588, 0.8188879489898682, 0.645560085773468, 0.4377114772796631, -0.16261020302772522, 0.22803863883018494, -0.3341676592826843, -0.16157090663909912, 0.18923266232013702, -0.6343125700950623, -0.45070746541023254, 0.19316981732845306, 0.7695994973182678, 0.2758691906929016, 0.043116018176078796, 0.3606797158718109, 0.25257354974746704, 0.4248163402080536, -0.3450246751308441, 0.33104339241981506, -0.48937100172042847, 0.19828492403030396, -0.12796588242053986, 0.03709862753748894, -0.24645718932151794, -0.33071058988571167, 0.16728997230529785, -0.6229466199874878, 0.41264230012893677, -0.08948063105344772, 1.3858165740966797, 0.30837827920913696, -0.15233029425144196, 0.16024664044380188, -0.3125557005405426, 0.903252899646759, -0.5440621972084045, 0.3357444107532501, 0.28746265172958374, 0.052739933133125305, 0.01601605862379074, -1.0547773838043213, -0.6224605441093445, 0.03612064570188522, -0.2121601700782776, 0.1095040962100029, -0.4330137372016907, 0.04051835462450981, 0.3760765790939331, 0.3087425231933594, -0.44593730568885803, 0.21234039962291718, -0.5795645117759705, -0.364181250333786, 0.4604552090167999, -0.12328998744487762, 0.17645859718322754, -0.37190908193588257, -0.6457498669624329, -0.5808972120285034, -0.366775780916214, 0.3915646970272064, 0.2177635282278061, 0.043028682470321655, -0.5178765058517456, 0.5157184600830078, 0.1917734146118164, 0.5605702996253967, 0.14623278379440308, -0.3713798522949219, 0.6558591723442078, -0.21876394748687744, -0.39858564734458923, -0.30100494623184204, 1.20533287525177, 0.5329772233963013, 0.37461718916893005, 0.16568021476268768, -0.15304380655288696, -0.1225401759147644, -0.13537487387657166, -1.1555750370025635, -0.4572981894016266, 0.1615600883960724, -0.4991346597671509, -0.4368032217025757, 0.2229066789150238, -0.9512915015220642, -0.2156529426574707, -0.0783018171787262, 0.7247738838195801, -0.4273466467857361, -0.3646915555000305, -0.1465187817811966, -0.1291782110929489, 0.5029470920562744, 0.24677355587482452, -0.7084261775016785, 0.14128999412059784, 0.2756515145301819, 1.0934909582138062, -0.028511928394436836, -0.4472443461418152, -0.43578535318374634, -0.33774664998054504, -0.4110313355922699, 0.5761983394622803, -0.04916900023818016, -0.1824590265750885, -0.14784851670265198, 0.38068270683288574, -0.15019753575325012, -0.6499754786491394, 0.2904280722141266, -0.12065669149160385, 0.3764568269252777, -0.07027394324541092, -0.06985832005739212, -0.33051133155822754, 0.23301225900650024, -0.43306487798690796, 1.3318333625793457, 0.3929573893547058, -0.9261444211006165, 0.49082592129707336, -0.27440348267555237, -0.10519274324178696, -0.21236126124858856, -0.10178648680448532, -1.2625596523284912, -0.13635699450969696, 0.39658403396606445, 0.6099624037742615, -0.226670041680336, 0.02445218898355961, -0.5516068339347839, -0.2809016704559326, 0.31887465715408325, -0.19422727823257446, 0.9632982015609741, 0.02587779052555561, -0.5313159823417664, 0.3571688234806061, -0.6795687079429626, 0.12890394032001495, 0.48811233043670654, -0.32062676548957825, -0.04949350655078888, -0.5660147070884705, 0.17284785211086273, 0.3329194486141205, 0.23065099120140076, -0.4572029113769531, 0.3337942063808441, -0.15131966769695282, 0.5191623568534851, 0.7954502105712891, -0.24137955904006958, 0.3939937949180603, -0.29087215662002563, 0.3329507112503052, 0.247193843126297, 0.3220379948616028, -0.09505464881658554, -0.6559313535690308, -0.8671380877494812, -0.730935275554657, 0.3265358805656433, 0.5548233389854431, -0.7345864772796631, 0.6279063820838928, -0.2512299120426178, -0.6020333766937256, -0.49672451615333557, 0.29978033900260925, 0.5763300061225891, 0.5402596592903137, 0.5729407668113708, -0.5806825160980225, -0.51702880859375, -0.89060378074646, 0.07501434534788132, -0.1289619505405426, -0.0978579893708229, 0.4440101683139801, 0.6041167974472046, -0.21190133690834045, 0.7317360043525696, -0.4106577932834625, -0.49410027265548706, -0.22047248482704163, 0.004386520013213158, 0.2500460147857666, 0.6722604036331177, 0.8426828384399414, -0.6499927043914795, -0.42360013723373413, -0.23074553906917572, -0.9309715032577515, 0.13807809352874756, 0.031912434846162796, -0.12123928219079971, 0.372729629278183, 0.29698923230171204, -0.8611670732498169, 0.6421811580657959, 0.2296631932258606, -0.3738518953323364, 0.33050671219825745, -0.35872769355773926, -0.03279586136341095, -1.2730979919433594, 0.07016381621360779, 0.4280228018760681, -0.24412544071674347, -0.37481358647346497, -0.09610235691070557, 0.21886934340000153, 0.05311663821339607, -0.4391908645629883, 0.5340029001235962, -0.6252962350845337, -0.21427211165428162, 0.08016550540924072, -0.1207478791475296, 0.08571536839008331, 0.7170520424842834, -0.019898109138011932, 0.50777268409729, 0.9199725985527039, -0.4117427468299866, 0.5993285179138184, 0.41866448521614075, -0.4295094609260559, 0.5807466506958008, -0.7501490712165833, 0.06374106556177139, -0.011522553861141205, 0.21858014166355133, -1.1553421020507812, -0.30028945207595825, 0.4415554106235504, -0.6125364899635315, 0.7634689211845398, -0.5223190188407898, -0.4371107220649719, -0.666461706161499, -0.5806582570075989, 0.44678640365600586, 0.8340912461280823, -0.8014770746231079, 0.4444551169872284, 0.16623835265636444, 0.19817470014095306, -0.6549183130264282, -0.9654009342193604, -0.24326719343662262, -0.4950500726699829, -0.6073200106620789, 0.3212340772151947, 0.18262235820293427, 0.15395161509513855, 0.07086818665266037, -0.06870149821043015, 0.011670310981571674, -0.19258642196655273, 0.4424656331539154, 0.49091142416000366, -0.2905697822570801, -0.08267834037542343, -0.3249405026435852, -0.1225300207734108, 0.09062416851520538, -0.3069840967655182, 0.5099964141845703, -0.18381443619728088, -0.11707549542188644, -0.8770755529403687, -0.18222656846046448, 0.6529351472854614, -0.40154847502708435, 0.7448487281799316, 1.2956182956695557, -0.42865535616874695, -0.03563357889652252, -0.43009817600250244, -0.2887918949127197, -0.5232070088386536, 0.6723674535751343, -0.3011075556278229, -0.496040940284729, 0.8062297701835632, 0.12962500751018524, -0.15529896318912506, 0.7216565608978271, 0.46603453159332275, -0.02365102246403694, 0.8420479893684387, 0.6278647184371948, 0.263495534658432, 0.7871655821800232, -0.9313093423843384, -0.08570461720228195, -0.9589217901229858, -0.6072203516960144, -0.21916548907756805, -0.45847761631011963, -0.770698606967926, -0.6863948702812195, 0.40612730383872986, 0.18359948694705963, -0.24217796325683594, 0.45559966564178467, -0.8432658314704895, 0.06239209696650505, 0.8476851582527161, 0.5653291344642639, -0.28121230006217957, 0.3973075747489929, -0.2897098660469055, -0.15467102825641632, -0.7297496795654297, -0.03118058852851391, 1.1716468334197998, 0.5074294805526733, 0.8332008719444275, -0.07866816222667694, 0.6302037239074707, -0.2434045374393463, 0.0776834711432457, -0.8091610074043274, 0.6310163736343384, -0.028426364064216614, -0.31042879819869995, -0.288268119096756, -0.43863826990127563, -1.0822539329528809, 0.15463609993457794, -0.37680473923683167, -0.8488035798072815, 0.46933498978614807, 0.2454974502325058, -0.28884533047676086, 0.6830276250839233, -0.8071574568748474, 1.0029871463775635, -0.0894865095615387, -0.6358265280723572, 0.10290279984474182, -0.725763738155365, 0.2990342676639557, 0.10436135530471802, -0.23625615239143372, 0.10996970534324646, 0.12656138837337494, 0.9841914176940918, -0.5528335571289062, 0.9276230335235596, -0.3867723345756531, 0.21789385378360748, 0.5526058077812195, -0.2013714760541916, 0.5218714475631714, 0.07165956497192383, 0.2168835997581482, 0.23777709901332855, 0.06981256604194641, -0.4125329554080963, -0.48600858449935913, 0.5894614458084106, -1.1364045143127441, -0.48506107926368713, -0.5686083436012268, -0.4399350881576538, 0.19884395599365234, 0.22446699440479279, 0.6756322979927063, 0.6088321805000305, 0.3166554272174835, 0.4609515964984894, 0.8398354053497314, -0.3691989481449127, 0.47195544838905334, -0.08949238806962967, -0.2688791751861572, -0.7038207054138184, 0.972300112247467, 0.3098718225955963, 0.25738587975502014, 0.1627257913351059, 0.1844746619462967, -0.42238104343414307, -0.5123535394668579, -0.34693437814712524, 0.43796834349632263, -0.7297384142875671, -0.47769680619239807, -0.5650015473365784, -0.375704288482666, -0.43254682421684265, 0.1275736540555954, -0.5044229626655579, -0.337677001953125, -0.5629614591598511, 0.08060591667890549, 0.6922587156295776, 0.5325214266777039, -0.29885053634643555, 0.27591806650161743, -0.36038801074028015, 0.29446810483932495, 0.5879030823707581, 0.47762054204940796, -0.2728099822998047, -0.9635628461837769, -0.18523168563842773, -0.046786531805992126, -0.4757479131221771, -0.6229831576347351, 0.4893891215324402, 0.26466894149780273, 0.4894469082355499, 0.46006104350090027, -0.20991341769695282, 0.7906450033187866, -0.06959675252437592, 0.6308167576789856, 0.4279474914073944, -0.6484021544456482, 0.6231062412261963, -0.17200540006160736, 0.11112044006586075, 0.0376739501953125, 0.24963904917240143, -0.0647856742143631, 0.07243701815605164, -0.9381850361824036, -0.8153606653213501, 0.8579436540603638, 0.18111905455589294, -0.04502866044640541, 0.3684097230434418, 0.5741411447525024, -0.1997438669204712, -0.03299696370959282, -0.8778420090675354, -0.3442942500114441, -0.5098608136177063, -0.26793426275253296, -0.14311377704143524, -0.2502962052822113, -0.14556707441806793, -0.6880874633789062, 0.5614421367645264, -0.1488092690706253, 0.7981945276260376, 0.41983065009117126, -0.035644493997097015, -0.24916726350784302, -0.34765103459358215, 0.4976646602153778, 0.35904717445373535, -0.3456132709980011, 0.2223297506570816, 0.188943549990654, -0.6533657312393188, -0.06392605602741241, 0.35228443145751953, -0.04871116206049919, -0.03202684968709946, 0.515043318271637, 1.0411362648010254, -0.0828392431139946, -0.05035752058029175, 0.7051500678062439, -0.05735284090042114, -0.5327761769294739, -0.22249776124954224, 0.14353561401367188, -0.11053954064846039, 0.5087933540344238, 0.2921479046344757, 0.4290950894355774, -0.2732280492782593, -0.3744966983795166, 0.27778947353363037, 0.6282772421836853, -0.5644226670265198, -0.42625242471694946, 0.8572459816932678, -0.24463911354541779, -0.03790709376335144, 0.811161994934082, -0.026364633813500404, -0.4560549557209015, 0.9859535098075867, 0.45086103677749634, 0.8330715298652649, -0.2722267210483551, 0.07789857685565948, 0.7947864532470703, 0.30550825595855713, -0.1404305249452591, 0.18956443667411804, 0.062089383602142334, -0.6849397420883179, 0.0027388238813728094, -0.5830963253974915, 0.0517875961959362, 0.3570709824562073, -0.684962809085846, 0.46292081475257874, -0.6621110439300537, -0.41334545612335205, 0.12292574346065521, 0.16692979633808136, -0.9610762000083923, 0.23556549847126007, 0.09959883242845535, 0.6861732006072998, -0.8250691294670105, 0.9168615341186523, 0.7949123382568359, -0.615165114402771, -0.976800262928009, -0.11382917314767838, 0.03683866560459137, -0.9919514060020447, 0.49561870098114014, 0.4603133201599121, 0.11734974384307861, 0.17204391956329346, -0.7805007696151733, -0.8182787299156189, 1.5708646774291992, 0.46722933650016785, -0.1643451303243637, 0.1971549540758133, -0.06303059309720993, 0.38136065006256104, -0.2315187007188797, 0.342210978269577, 0.1631184220314026, 0.32714661955833435, 0.41039562225341797, -0.8291879296302795, 0.1742403656244278, -0.30381786823272705, 0.17740175127983093, 0.1764729917049408, -1.0160000324249268, 0.977764904499054, -0.6012932658195496, -0.1140270084142685, 0.2316434681415558, 0.6745993494987488, 0.20350496470928192, 0.09985321760177612, 0.4843936562538147, 0.842980682849884, 0.5710231065750122, -0.3922230303287506, 0.864111602306366, -0.06248914450407028, 0.7589797377586365, 0.6163119077682495, 0.41276487708091736, 0.6325991749763489, 0.5108441710472107, -0.4184516370296478, 0.37238097190856934, 1.004523515701294, -0.558830738067627, 0.5135123133659363, 0.12424345314502716, 0.037092287093400955, -0.35843101143836975, 0.02037768065929413, -0.5110014081001282, 0.5330395102500916, 0.23757438361644745, -0.6454638838768005, -0.001278641284443438, 0.03957461193203926, 0.019111497327685356, -0.31435108184814453, -0.18304450809955597, 0.5714132189750671, 0.09407288581132889, -0.4897887408733368, 0.9187250733375549, -0.048145316541194916, 0.7641726732254028, -0.43364813923835754, 0.0493987612426281, -0.3089958727359772, 0.5001172423362732, -0.34798717498779297, -0.926655113697052, 0.11972974985837936, -0.25171297788619995, -0.07128050923347473, 0.032943613827228546, 0.6794974207878113, -0.4267948865890503, -0.5920275449752808, 0.23144474625587463, 0.2798866927623749, 0.22267532348632812, 0.07808840274810791, -1.0071334838867188, 0.02376854419708252, 0.02976396679878235, -0.6655640602111816, 0.3898800313472748, 0.5630048513412476, 0.03467796370387077, 0.7272229790687561, 0.5986223816871643, -0.13431969285011292, 0.16337567567825317, -0.2062530815601349, 0.9898573756217957, -0.43409067392349243, -0.3174304962158203, -0.8407469987869263, 0.6000855565071106, -0.0760427787899971, -0.5671129822731018, 0.6298115253448486, 0.5393111109733582, 0.8213748931884766, -0.0032569493632763624, 0.44160619378089905, -0.15356943011283875, 0.0006211937288753688, -0.43692708015441895, 0.6488363146781921, -0.6772114038467407, 0.01988188549876213, -0.3005697429180145, -0.9595820903778076, -0.5080347061157227, 0.8926827311515808, -0.24802495539188385, 0.39747288823127747, 0.5363824367523193, 1.0482577085494995, -0.3820728659629822, -0.673811674118042, 0.2038412243127823, 0.3225692808628082, 0.15947455167770386, 0.475646436214447, 0.4521862268447876, -0.7850956916809082, 0.705315113067627, -0.5615431070327759, -0.23755589127540588, -0.16490374505519867, -0.5911072492599487, -1.2475486993789673, -0.8199571967124939, -0.6342678070068359, -0.8069562315940857, -0.1739397943019867, 0.836776614189148, 0.9747612476348877, -0.661849856376648, 0.05168536677956581, -0.06181304156780243, 0.14999188482761383, -0.3172715902328491, -0.2141985297203064, 0.7692186832427979, -0.012196382507681847, -0.7451992034912109, -0.3413258492946625, 0.05949357897043228, 0.4895078241825104, -0.18835264444351196, -0.2153092473745346, -0.13568855822086334, -0.2400628924369812, 0.2571781873703003, 0.40106678009033203, -0.8595574498176575, -0.2603744864463806, -0.14703913033008575, -0.15245044231414795, 0.5719226002693176, 0.20148397982120514, -0.7347030639648438, 0.5355689525604248, 0.5073307156562805, 0.19698570668697357, 0.8332377076148987, -0.190260648727417, 0.00988867785781622, -0.7618574500083923, 0.5737868547439575, -0.2193247526884079, 0.5130264759063721, 0.5711753368377686, -0.23926906287670135, 0.49069032073020935, 0.7013384699821472, -0.45207056403160095, -0.8839846849441528, -0.05055529251694679, -1.219572901725769, -0.009466501884162426, 1.1095699071884155, -0.4533994793891907, -0.5228926539421082, 0.4263671636581421, -0.12682434916496277, 0.6622291803359985, -0.08538893610239029, 0.5499097108840942, 0.19330042600631714, 0.11923322826623917, -0.8494371771812439, -0.41715919971466064, 0.6103312373161316, 0.0811285674571991, -0.5610805153846741, -0.369024395942688, 0.12206149101257324, 0.6636120080947876, 0.3157042860984802, 0.28228041529655457, -0.166087806224823, 0.25291359424591064, 0.09887514263391495, 0.4040573537349701, -0.3230995833873749, -0.18018682301044464, -0.38288450241088867, -0.04713471233844757, -0.0451192669570446, -0.6025077700614929 ]
Linaqruf/anything-v3.0
Linaqruf
"2023-03-28T03:19:30Z"
39,137
674
diffusers
[ "diffusers", "stable-diffusion", "stable-diffusion-diffusers", "text-to-image", "en", "license:creativeml-openrail-m", "endpoints_compatible", "has_space", "diffusers:StableDiffusionPipeline", "region:us" ]
text-to-image
"2023-01-25T23:30:53Z"
--- language: - en license: creativeml-openrail-m tags: - stable-diffusion - stable-diffusion-diffusers - text-to-image - diffusers inference: true --- # Anything V5 (https://civitai.com/models/9409) # Uploaded by the Real Anything V3 Author # Please try it
[ -0.21444861590862274, -0.41834262013435364, 0.7697363495826721, 0.6303033828735352, -0.3952621519565582, -0.5145774483680725, 0.5017731189727783, -0.43284496665000916, 0.6046117544174194, 0.5903088450431824, -0.805012583732605, -0.34142541885375977, -0.2334166169166565, 0.05779057741165161, -0.9029473066329956, 0.2917214035987854, 0.1382245421409607, 0.40902459621429443, 0.027485182508826256, 0.11017528921365738, -0.6862234473228455, -0.2672894597053528, -0.6394276022911072, 0.07225776463747025, 0.7511866688728333, 0.8290871977806091, 0.3948233425617218, 0.5045710206031799, 0.3837711215019226, 0.20906195044517517, 0.17800754308700562, -0.252843976020813, -0.555990993976593, -0.30230966210365295, -0.19137240946292877, -0.5297296047210693, -0.9406766891479492, 0.055840712040662766, 0.5720784068107605, -0.1272614598274231, -0.3182165324687958, 0.43512412905693054, -0.5865017175674438, 0.3154583275318146, -0.7029297351837158, -0.205362930893898, -0.3252703547477722, 0.17309972643852234, -0.4229790270328522, -0.2874238193035126, -0.3195880651473999, -0.699878990650177, -0.3295457065105438, -1.2317235469818115, 0.28064054250717163, 0.07229147851467133, 1.3341350555419922, 0.08144126832485199, -0.36334848403930664, -0.09949656575918198, -1.0216928720474243, 0.48785462975502014, -0.6696125864982605, 0.6047989130020142, 0.2023974508047104, 1.005683183670044, -0.21339794993400574, -1.2470847368240356, -0.8596252799034119, 0.21456284821033478, 0.33398517966270447, 0.26218152046203613, -0.285143107175827, -0.2595037519931793, 0.4412684440612793, 0.43431520462036133, -0.6725350618362427, -0.2901810109615326, -1.1174449920654297, 0.06341049820184708, 0.5198452472686768, -0.07768747210502625, 1.0031465291976929, 0.05835802108049393, -0.30243441462516785, -0.24444863200187683, -1.0329715013504028, -0.08047936856746674, 0.39389359951019287, -0.016164055094122887, -0.3453165888786316, 0.8226044774055481, -0.09767329692840576, 0.7937875986099243, 0.19161036610603333, -0.06297148764133453, 0.3414972722530365, -0.2617303133010864, -0.7324956655502319, 0.11216311901807785, 0.33509743213653564, 0.7603179812431335, 0.06966163218021393, 0.3687703013420105, 0.15391874313354492, -0.7256145477294922, 0.6400253772735596, -1.1224210262298584, -0.5266256332397461, 0.5224491953849792, -0.42653927206993103, -0.5826694965362549, 0.5296335220336914, -0.4534115791320801, -0.5266479253768921, -0.002213026862591505, 0.2857606112957001, -0.9183669686317444, -0.610450804233551, 0.27507007122039795, -0.14094455540180206, 0.582617461681366, 0.17608261108398438, -0.7247587442398071, 0.17949289083480835, 0.31961509585380554, 0.3302547037601471, 0.9181370139122009, -0.3837069869041443, -0.6907569169998169, 0.2713733911514282, -0.4300112724304199, 0.6572489142417908, 0.14049527049064636, -0.4898949861526489, 0.40438809990882874, 0.4273800849914551, 0.25612151622772217, -0.2777356505393982, 1.0839817523956299, -0.9291298389434814, -0.15218663215637207, -0.6050086617469788, -0.483877032995224, -0.5787512063980103, 0.02730550989508629, -0.9215364456176758, 0.5020296573638916, 0.039129145443439484, -0.40287959575653076, 0.5049111247062683, -0.9976627826690674, -0.06665612757205963, 0.12113908678293228, 0.06491835415363312, -0.9056494235992432, 0.4326634109020233, -0.21728898584842682, 0.3026216924190521, -0.049996547400951385, -0.030737578868865967, -0.8705915808677673, -0.24658076465129852, 0.30238479375839233, -0.3439366817474365, 1.1940544843673706, 0.2787381112575531, -0.129782035946846, 0.0430232472717762, -1.1953104734420776, 0.0690336525440216, 0.6627328395843506, 0.5212041139602661, 0.08355781435966492, -0.2110244780778885, 0.17001256346702576, 0.043623074889183044, 0.318245530128479, -0.8294296264648438, 0.5862472653388977, 0.11249664425849915, 0.2237095832824707, 0.5158769488334656, 0.1724662482738495, -0.009344859048724174, -0.6904716491699219, 0.650404691696167, -0.2585456669330597, 0.7215431928634644, 0.19491712749004364, -0.2946150600910187, -1.134472370147705, -0.381352961063385, 0.6755114793777466, 0.3283696174621582, -0.7095077037811279, 0.0903182327747345, -0.11009708791971207, -0.9861293435096741, -0.45906347036361694, 0.010392691940069199, 0.0470198355615139, 0.022382667288184166, 0.1861092448234558, -0.16535088419914246, -0.900890052318573, -1.1563408374786377, 0.28908801078796387, -0.379410982131958, -0.4427836537361145, 0.4680348038673401, 0.5460222959518433, 0.07549822330474854, 0.7624641060829163, -0.43310418725013733, -0.32041335105895996, -0.15178944170475006, -0.13715113699436188, 0.2511717975139618, 0.40427669882774353, 1.3995897769927979, -0.8765725493431091, -0.3270459473133087, -0.20183582603931427, -0.6484099626541138, -0.30565187335014343, 0.17650893330574036, -0.18999949097633362, -0.35290828347206116, 0.24745072424411774, -0.4823220670223236, 0.5850254893302917, 0.3149428963661194, -0.36649879813194275, 0.4364190995693207, -0.40357887744903564, 0.542771577835083, -1.234433889389038, 0.1654709279537201, -0.1451818346977234, -0.5882606506347656, -0.1951184719800949, 0.4361664056777954, 0.34836313128471375, 0.035043373703956604, -1.2898300886154175, 0.3775981366634369, -0.6206048130989075, -0.16762977838516235, -0.05231247842311859, 0.10769026726484299, 0.017305294051766396, -0.21133427321910858, -0.2580169439315796, 0.5574038028717041, 0.5664033889770508, -0.5135242342948914, 0.8274810910224915, 0.4713880121707916, -0.3327271044254303, 0.7028661370277405, -1.2422620058059692, -0.0022159600630402565, -0.1983804553747177, 0.24842916429042816, -0.9397576451301575, -0.9149937033653259, 0.23354516923427582, -0.7144702672958374, -0.10941518843173981, -0.09782268851995468, -0.7177172303199768, -0.27544376254081726, -0.4003637135028839, 0.3216678202152252, 0.850077748298645, -0.826669454574585, 0.5208146572113037, 0.3017345666885376, 0.2959255874156952, 0.04284292086958885, -0.5781177282333374, -0.15026219189167023, -0.31259429454803467, -0.44636261463165283, 0.5360644459724426, -0.09299331158399582, -0.20538364350795746, -0.28731295466423035, -0.02047700434923172, -0.40222108364105225, -0.20351330935955048, 0.43602803349494934, 0.442353755235672, -0.41598033905029297, -0.5257014632225037, -0.28565406799316406, 0.08196135610342026, -0.06505101919174194, -0.06480428576469421, 0.29935571551322937, -0.2219105064868927, -0.24035599827766418, -0.7647616267204285, 0.31877249479293823, 0.800146222114563, -0.01207070890814066, 0.3961661458015442, 0.8669512271881104, -0.7038504481315613, -0.15457025170326233, -0.5895643830299377, 0.08568761497735977, -0.5039288997650146, -0.04415047913789749, -0.7336339950561523, -0.5422163009643555, 0.10458021610975266, 0.21378961205482483, 0.007215453311800957, 0.5811440348625183, 0.32980722188949585, -0.2599862515926361, 0.9570565819740295, 0.9132742285728455, 0.17266348004341125, 0.3030785024166107, -0.7354194521903992, 0.044511161744594574, -0.5499311685562134, -0.38548725843429565, -0.43621253967285156, -0.025507614016532898, -0.3416232168674469, -0.4842240512371063, 0.16749675571918488, 0.3995327651500702, -0.2049463540315628, 1.0482215881347656, -0.33689653873443604, 0.6393019556999207, 0.41543683409690857, 0.2594926357269287, 0.37500983476638794, -0.4094671905040741, 0.14201319217681885, -0.1820036768913269, -0.6075578927993774, -0.2612251043319702, 0.7975935339927673, 0.3742433190345764, 0.3521174192428589, 0.5598324537277222, 0.5540531277656555, 0.2624797821044922, 0.24202510714530945, -0.4032564163208008, 0.4675653278827667, 0.17969439923763275, -1.2246309518814087, -0.00024418035172857344, 0.3856234848499298, -0.9505152106285095, 0.1994129866361618, -0.4218570291996002, -0.28808826208114624, 0.28089460730552673, 0.46960920095443726, -0.6422168612480164, 0.5844776630401611, -0.8569187521934509, 0.9805890321731567, -0.41735535860061646, -0.06290607154369354, 0.29315879940986633, -0.704598605632782, 0.5837571620941162, 0.2284340262413025, 0.39179331064224243, 0.22279521822929382, -0.1772332787513733, 0.4586009383201599, -0.7660459876060486, 0.8184066414833069, 0.07140950113534927, -0.2936033606529236, 0.35079246759414673, 0.16186802089214325, 0.21932418644428253, 0.48116424679756165, 0.13731850683689117, -0.23880502581596375, 0.0633586198091507, -0.9066492915153503, -0.7115272283554077, 0.9254298806190491, -0.8175662159919739, -0.4162670969963074, -0.6699696779251099, 0.3898729979991913, 0.2425769716501236, 0.5741810202598572, 0.6324772834777832, 0.4418090581893921, -0.5032131671905518, 0.2763041853904724, 0.7161405682563782, 0.331758588552475, 0.6996448040008545, 0.7324082255363464, -0.4519767165184021, -0.729353666305542, 1.3366966247558594, 0.2841079533100128, -0.09578785300254822, 0.09006527811288834, 0.015286415815353394, -0.040604278445243835, -0.699682891368866, -0.44498980045318604, 0.479647159576416, -0.16328035295009613, -0.10724844038486481, -0.3247983157634735, -0.41201895475387573, -0.49166154861450195, -0.6440779566764832, -0.75040602684021, -0.39898931980133057, -0.589524507522583, -0.41872331500053406, 0.6627835035324097, 0.8745999336242676, -0.28054115176200867, 0.28433430194854736, -0.819671094417572, 0.6486557722091675, 0.43280428647994995, 0.27995240688323975, -0.45220720767974854, -0.47077929973602295, 0.07511269301176071, 0.12144723534584045, -0.7359409928321838, -0.6255236864089966, 0.691056489944458, -0.06735590845346451, 0.27219122648239136, 0.4299871623516083, -0.03428097441792488, 1.0716155767440796, -0.54404616355896, 0.8889788389205933, 0.2705284655094147, -0.8953081965446472, 0.6230912208557129, -0.600152850151062, 0.27681291103363037, 1.0150445699691772, 0.6553859710693359, -0.16039234399795532, 0.19101972877979279, -1.315692663192749, -0.8913743495941162, 0.21343892812728882, 0.6646261811256409, -0.11592337489128113, 0.5147632956504822, 0.47489187121391296, 0.04710647091269493, 0.3688217103481293, -0.9466027021408081, -0.3398979902267456, -0.7037696242332458, -0.13671189546585083, -0.012888824567198753, -0.2179824709892273, 0.10410704463720322, -0.39854276180267334, 0.8717458248138428, 0.23742347955703735, 0.42174601554870605, 0.6412416696548462, 0.021735304966568947, -0.038062602281570435, -0.02842465415596962, 0.8686087727546692, 0.7915911674499512, -0.7305928468704224, -0.10866773873567581, -0.10426238924264908, -0.41884464025497437, 0.2649752199649811, -0.14955519139766693, -0.18292362987995148, 0.2605043947696686, 0.09718986600637436, 0.7301129698753357, 0.10300146043300629, -0.3698708713054657, 0.8122265934944153, -0.4343176484107971, -0.2730201482772827, -1.1628012657165527, 0.3873186409473419, -0.025201091542840004, 0.21386387944221497, -0.04243522882461548, 0.1080579161643982, 0.42151713371276855, -0.7131853699684143, 0.2363414764404297, -0.16826099157333374, -0.8887845277786255, -0.6996811032295227, 1.3367422819137573, 0.30071598291397095, -0.8542655110359192, 0.32835274934768677, -0.15547381341457367, -0.0961034968495369, 0.5685549974441528, 0.7989782691001892, 1.026641845703125, -0.3262215256690979, 0.5290677547454834, 0.49331870675086975, 0.19864127039909363, -0.04804271459579468, 0.7623482942581177, 0.012734495103359222, -0.4919217824935913, -0.13589522242546082, -0.09855177998542786, -0.7698919773101807, 0.7352807521820068, -0.6702307462692261, 0.7985162734985352, -0.7987406849861145, 0.22713783383369446, 0.34846431016921997, -0.1267482489347458, -0.2782191038131714, 0.8992642164230347, 0.14574787020683289, 1.4999487400054932, -0.7275976538658142, 1.0484627485275269, 0.6153482794761658, -0.8107993602752686, -0.6402352452278137, -0.06777501106262207, 0.3606341779232025, -0.6640152931213379, 0.12053532153367996, -0.09279955923557281, -0.02443828620016575, 0.39904552698135376, -1.2944000959396362, -0.7991371154785156, 1.4773619174957275, 0.2508460283279419, -0.4516090750694275, 0.06299348920583725, -0.46537479758262634, 0.45330536365509033, -0.7419500946998596, 0.4057546854019165, 0.29732877016067505, 0.7103086113929749, 0.33639228343963623, -0.6308497190475464, -0.12028111517429352, -0.6709693074226379, 0.32121649384498596, -0.11574423313140869, -1.0527973175048828, 0.48463571071624756, -0.19420059025287628, 0.24598731100559235, 0.7171839475631714, 0.9326977133750916, 0.5919252634048462, 0.09429188072681427, 0.5699138641357422, 0.3958824872970581, 0.47832849621772766, 0.09343026578426361, 1.411773443222046, 0.02411062642931938, 0.36785152554512024, 1.0723484754562378, -0.626051664352417, 0.6484047770500183, 0.3192625641822815, 0.02654820866882801, 0.38068193197250366, 0.8305031061172485, -0.41184818744659424, 0.4466071128845215, 0.14354144036769867, -0.6001397371292114, -0.036419808864593506, -0.09639118611812592, -0.4210568964481354, 0.1892908364534378, -0.0747041329741478, -0.1015363410115242, 0.36047711968421936, -0.08585041761398315, 0.19624918699264526, -0.08004655689001083, -0.09800410270690918, 0.4690612256526947, -0.2511727213859558, -0.2812439501285553, 0.6870087385177612, 0.0024093356914818287, 0.29123327136039734, -0.4018510580062866, -0.23619192838668823, 0.11962148547172546, -0.14190572500228882, -0.4101671576499939, -0.49424511194229126, 0.31116852164268494, -0.07368988543748856, 0.036187175661325455, -0.2663547098636627, 0.8458683490753174, -0.37730348110198975, -0.7947083711624146, 0.013015316799283028, -0.08044316619634628, 0.2866653501987457, 0.27276912331581116, -0.47262635827064514, 0.4523674547672272, 0.14461909234523773, 0.04769526422023773, -0.04835104942321777, 0.053454186767339706, 0.48030874133110046, 0.6553061008453369, 0.7027995586395264, 0.30305758118629456, 0.10435584932565689, -0.1672537922859192, 0.584148108959198, -0.9026880264282227, -0.0862833559513092, -0.543008029460907, 0.9042113423347473, -0.6023175716400146, -0.7000524997711182, 0.937432587146759, 1.0906380414962769, 1.1831490993499756, -0.8385399580001831, 0.6851263642311096, -0.4718664586544037, 0.4197048842906952, -0.4929623603820801, 0.77031010389328, -0.8126944303512573, -0.26512590050697327, -0.19251862168312073, -0.643887996673584, -0.47198665142059326, 0.7048606276512146, 0.4225616753101349, -0.12428776174783707, 0.626859188079834, 0.6611849665641785, -0.4250856637954712, 0.11713557690382004, 0.7397861480712891, 0.39556509256362915, 0.3288026452064514, 0.19028955698013306, 0.37590575218200684, -1.2674520015716553, 0.3387603759765625, -0.5512273907661438, -0.14622464776039124, -0.5150136351585388, -1.0487216711044312, -0.5353659391403198, -0.5354903340339661, -0.3465766906738281, -0.6400051116943359, 0.09121446311473846, 0.8668849468231201, 0.9185717105865479, -0.663142204284668, -0.25747424364089966, -0.32612040638923645, 0.31052276492118835, 0.19941724836826324, -0.19988574087619781, -0.14053966104984283, 0.5923503041267395, -1.0962598323822021, 0.539373517036438, 0.16414181888103485, 0.738855242729187, -0.19414019584655762, 0.434985488653183, -0.2684391736984253, 0.3263775706291199, 0.4026423990726471, 0.953577995300293, -0.4202413558959961, -0.49154356122016907, -0.09695342928171158, 0.0880526676774025, -0.035958681255578995, 1.0886423587799072, -0.145346000790596, 0.14990633726119995, 0.6119376420974731, 0.18876732885837555, 0.7070733308792114, -0.08015920221805573, 0.8506037592887878, -0.4602299928665161, 0.1837763786315918, -0.19461563229560852, 0.48453420400619507, 0.06317272782325745, -0.14045819640159607, 0.7549103498458862, 0.4780946373939514, -0.4687957763671875, -0.8282654285430908, -0.09269818663597107, -1.6504682302474976, 0.08405523002147675, 0.9025033116340637, 0.08030416816473007, -0.9288651943206787, 0.2229694277048111, -0.8224344253540039, 0.216362863779068, -0.24370765686035156, 0.6880384087562561, 0.5112036466598511, -0.12158504128456116, -0.48555290699005127, -0.9113215208053589, 0.38844984769821167, -0.07666734606027603, -0.7661192417144775, -0.6459820866584778, 0.47742760181427, 0.37573617696762085, 0.2805144488811493, 0.6690101623535156, -0.5369150638580322, 0.7980225086212158, 0.2284715175628662, 0.6593877077102661, -0.1890157163143158, -0.3680260479450226, -0.34330451488494873, 0.5385399460792542, -0.1350361406803131, -0.6655040383338928 ]
allegro/herbert-klej-cased-v1
allegro
"2021-05-28T16:18:22Z"
39,066
6
transformers
[ "transformers", "pytorch", "jax", "roberta", "pl", "arxiv:2005.00630", "endpoints_compatible", "region:us" ]
null
"2022-03-02T23:29:05Z"
--- language: pl --- # HerBERT **[HerBERT](https://en.wikipedia.org/wiki/Zbigniew_Herbert)** is a BERT-based Language Model trained on Polish Corpora using only MLM objective with dynamic masking of whole words. For more details, please refer to: [KLEJ: Comprehensive Benchmark for Polish Language Understanding](https://arxiv.org/abs/2005.00630). ## Dataset **HerBERT** training dataset is a combination of several publicly available corpora for Polish language: | Corpus | Tokens | Texts | | :------ | ------: | ------: | | [OSCAR](https://traces1.inria.fr/oscar/)| 6710M | 145M | | [Open Subtitles](http://opus.nlpl.eu/OpenSubtitles-v2018.php) | 1084M | 1.1M | | [Wikipedia](https://dumps.wikimedia.org/) | 260M | 1.5M | | [Wolne Lektury](https://wolnelektury.pl/) | 41M | 5.5k | | [Allegro Articles](https://allegro.pl/artykuly) | 18M | 33k | ## Tokenizer The training dataset was tokenized into subwords using [HerBERT Tokenizer](https://huggingface.co/allegro/herbert-klej-cased-tokenizer-v1); a character level byte-pair encoding with a vocabulary size of 50k tokens. The tokenizer itself was trained on [Wolne Lektury](https://wolnelektury.pl/) and a publicly available subset of [National Corpus of Polish](http://nkjp.pl/index.php?page=14&lang=0) with a [fastBPE](https://github.com/glample/fastBPE) library. Tokenizer utilizes `XLMTokenizer` implementation for that reason, one should load it as `allegro/herbert-klej-cased-tokenizer-v1`. ## HerBERT models summary | Model | WWM | Cased | Tokenizer | Vocab Size | Batch Size | Train Steps | | :------ | ------: | ------: | ------: | ------: | ------: | ------: | | herbert-klej-cased-v1 | YES | YES | BPE | 50K | 570 | 180k | ## Model evaluation HerBERT was evaluated on the [KLEJ](https://klejbenchmark.com/) benchmark, publicly available set of nine evaluation tasks for the Polish language understanding. It had the best average performance and obtained the best results for three of them. | Model | Average | NKJP-NER | CDSC-E | CDSC-R | CBD | PolEmo2.0-IN\t|PolEmo2.0-OUT | DYK | PSC | AR\t| | :------ | ------: | ------: | ------: | ------: | ------: | ------: | ------: | ------: | ------: | ------: | | herbert-klej-cased-v1 | **80.5** | 92.7 | 92.5 | 91.9 | **50.3** | **89.2** |**76.3** |52.1 |95.3 | 84.5 | Full leaderboard is available [online](https://klejbenchmark.com/leaderboard). ## HerBERT usage Model training and experiments were conducted with [transformers](https://github.com/huggingface/transformers) in version 2.0. Example code: ```python from transformers import XLMTokenizer, RobertaModel tokenizer = XLMTokenizer.from_pretrained("allegro/herbert-klej-cased-tokenizer-v1") model = RobertaModel.from_pretrained("allegro/herbert-klej-cased-v1") encoded_input = tokenizer.encode("Kto ma lepszą sztukę, ma lepszy rząd – to jasne.", return_tensors='pt') outputs = model(encoded_input) ``` HerBERT can also be loaded using `AutoTokenizer` and `AutoModel`: ```python tokenizer = AutoTokenizer.from_pretrained("allegro/herbert-klej-cased-tokenizer-v1") model = AutoModel.from_pretrained("allegro/herbert-klej-cased-v1") ``` ## License CC BY-SA 4.0 ## Citation If you use this model, please cite the following paper: ``` @inproceedings{rybak-etal-2020-klej, title = "{KLEJ}: Comprehensive Benchmark for {P}olish Language Understanding", author = "Rybak, Piotr and Mroczkowski, Robert and Tracz, Janusz and Gawlik, Ireneusz", booktitle = "Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics", month = jul, year = "2020", address = "Online", publisher = "Association for Computational Linguistics", url = "https://www.aclweb.org/anthology/2020.acl-main.111", doi = "10.18653/v1/2020.acl-main.111", pages = "1191--1201", } ``` ## Authors The model was trained by **Allegro Machine Learning Research** team. You can contact us at: <a href="mailto:klejbenchmark@allegro.pl">klejbenchmark@allegro.pl</a>
[ -0.48015856742858887, -0.7899751663208008, 0.4459131956100464, 0.25110357999801636, -0.2335730493068695, -0.053035661578178406, -0.6209484934806824, -0.5209260582923889, 0.042856745421886444, 0.24232272803783417, -0.7181223034858704, -0.6507700085639954, -0.8262324333190918, 0.10505174100399017, -0.32025203108787537, 1.0960721969604492, -0.26448675990104675, 0.265735924243927, 0.07301513105630875, -0.22356200218200684, 0.030720608308911324, -0.6245983242988586, -0.4962441027164459, -0.35636022686958313, 0.26888298988342285, 0.1306425780057907, 0.5404797792434692, 0.4375385344028473, 0.3913153409957886, 0.363482266664505, -0.13186298310756683, -0.04837755858898163, -0.2908661961555481, -0.02397918701171875, 0.11569803208112717, -0.3834546208381653, -0.4050465226173401, 0.03872775658965111, 0.7545902729034424, 0.6585405468940735, -0.13826414942741394, 0.2085953652858734, -0.12509027123451233, 0.5656408667564392, -0.614514172077179, 0.3889521360397339, -0.6329998970031738, 0.0714598298072815, -0.3025074303150177, 0.20141033828258514, -0.6713968515396118, 0.048596806824207306, 0.013865240849554539, -0.7324714660644531, 0.26282837986946106, 0.06619027256965637, 1.3859374523162842, 0.2045181691646576, -0.19113567471504211, -0.35244908928871155, -0.5798628330230713, 1.0106998682022095, -0.82194983959198, 0.4705238938331604, 0.24107226729393005, 0.17651914060115814, -0.06901571154594421, -0.8913066983222961, -0.5980988144874573, -0.3832753896713257, -0.2619335353374481, 0.2690308690071106, -0.3163985013961792, 0.14755243062973022, 0.5082991123199463, 0.34894365072250366, -0.5998760461807251, 0.008022195659577847, -0.4406599998474121, -0.32266461849212646, 0.5485924482345581, 0.01630232110619545, 0.37529030442237854, -0.24345549941062927, -0.4754096269607544, -0.44142499566078186, -0.364411324262619, 0.19819322228431702, 0.3523702025413513, 0.3322036862373352, -0.18781402707099915, 0.4647413194179535, -0.12128886580467224, 0.820921003818512, 0.14907552301883698, -0.17911846935749054, 0.8660815358161926, -0.22880202531814575, -0.14574815332889557, 0.1752890795469284, 1.2453311681747437, -0.016079653054475784, 0.3102665841579437, -0.1439875215291977, -0.19494685530662537, 0.03938751295208931, 0.08287177234888077, -0.8386445641517639, -0.2694340944290161, 0.13884764909744263, -0.3896692991256714, -0.10633726418018341, 0.35506680607795715, -0.40223991870880127, 0.21887622773647308, -0.22286592423915863, 0.5262218117713928, -0.8167245388031006, -0.15754647552967072, 0.0250785443931818, -0.06251237541437149, 0.24089372158050537, -0.005309621337801218, -1.0268051624298096, 0.3310640752315521, 0.5277117490768433, 0.62153559923172, -0.1949746459722519, -0.5608107447624207, -0.5815041065216064, -0.1674661636352539, -0.2849854826927185, 0.47667255997657776, -0.1765439361333847, -0.2560749650001526, -0.04897153750061989, 0.3062134385108948, -0.36319321393966675, -0.39602887630462646, 0.722426176071167, -0.42719656229019165, 0.41802868247032166, -0.013423633761703968, -0.7697039246559143, -0.13273504376411438, 0.08820416778326035, -0.45530545711517334, 1.4746568202972412, 0.374695748090744, -0.8349404335021973, 0.5211313366889954, -0.662947952747345, -0.35196933150291443, -0.10558264702558517, -0.04147466644644737, -0.5723459720611572, 0.07335234433412552, 0.370720773935318, 0.23805560171604156, 0.01292771752923727, 0.49451449513435364, -0.2373732030391693, -0.3552072048187256, 0.21824219822883606, -0.2958955466747284, 1.1490371227264404, 0.14813758432865143, -0.5644451975822449, 0.3129183053970337, -1.0918554067611694, 0.1203170046210289, 0.12392453104257584, -0.44345182180404663, -0.3128678500652313, -0.2219458520412445, 0.27217549085617065, 0.5218619108200073, 0.34823790192604065, -0.8083419799804688, 0.05770082026720047, -0.7335012555122375, 0.3835495412349701, 0.7539442777633667, -0.26042449474334717, 0.3584427535533905, -0.07429192215204239, 0.4377201497554779, 0.027848482131958008, 0.3389189839363098, -0.11564341932535172, -0.5691643357276917, -0.9812822341918945, -0.3511377274990082, 0.6152005195617676, 0.6255369782447815, -0.7388045191764832, 0.6295223832130432, -0.2386282980442047, -0.5796490907669067, -0.7256604433059692, 0.01138449925929308, 0.507422149181366, 0.7060102820396423, 0.5702999830245972, -0.24767795205116272, -0.6329464912414551, -1.169679880142212, -0.18574386835098267, -0.21343989670276642, -0.07834091037511826, 0.28736233711242676, 0.6986973285675049, -0.156417116522789, 0.9517366886138916, -0.2770196199417114, -0.23248343169689178, -0.3368244767189026, 0.25737565755844116, 0.5767646431922913, 0.5537509322166443, 0.6272175312042236, -0.5582740902900696, -0.8240959048271179, -0.18489080667495728, -0.812369167804718, -0.15668155252933502, 0.009139361791312695, -0.2577262818813324, 0.5821936130523682, 0.4969653785228729, -0.6122239828109741, 0.23543407022953033, 0.5275448560714722, -0.43403738737106323, 0.6025707721710205, -0.4275955855846405, -0.10416409373283386, -1.1118178367614746, 0.21652181446552277, -0.17368291318416595, -0.13206340372562408, -0.670487642288208, 0.10935105383396149, 0.26195359230041504, 0.016272047534585, -0.8355684280395508, 0.7354297637939453, -0.5030975937843323, -0.13783249258995056, -0.027501029893755913, 0.37168166041374207, -0.1606583446264267, 0.8697892427444458, 0.11509514600038528, 0.8259508609771729, 0.7482262849807739, -0.44691863656044006, 0.12872569262981415, 0.4943419396877289, -0.5272918939590454, 0.18833118677139282, -0.7554726600646973, 0.003880952252075076, 0.034129127860069275, 0.1339375376701355, -0.7843416333198547, 0.07312605530023575, 0.4725969731807709, -0.6101292967796326, 0.5448218584060669, -0.030308663845062256, -0.5804265737533569, -0.5120038390159607, -0.2905484437942505, 0.11891361325979233, 0.727572500705719, -0.6209530234336853, 0.774247407913208, 0.19386009871959686, -0.0217000599950552, -0.8404704332351685, -0.7185919284820557, -0.07005967199802399, -0.05701170116662979, -0.725099503993988, 0.6092086434364319, -0.17608918249607086, -0.16703581809997559, 0.1320437341928482, -0.08578426390886307, 0.046216461807489395, 0.059313803911209106, 0.23781894147396088, 0.5429221391677856, -0.18976381421089172, 0.0711083859205246, 0.013593174517154694, -0.3472524881362915, -0.00860156212002039, -0.08027257025241852, 0.7553423643112183, -0.3241644501686096, -0.14553573727607727, -0.5793415904045105, 0.04901048541069031, 0.5317419171333313, -0.16991351544857025, 0.979293704032898, 0.935494065284729, -0.050304632633924484, -0.001975006889551878, -0.4188074469566345, -0.2002534419298172, -0.47928038239479065, 0.4913612902164459, -0.45974308252334595, -0.7547491192817688, 0.5717443227767944, 0.18234330415725708, 0.08612272143363953, 0.9003625512123108, 0.7348052859306335, 0.04653436690568924, 1.0785036087036133, 0.5268645286560059, -0.2293076515197754, 0.6621387600898743, -0.6533105373382568, 0.12881030142307281, -1.0516620874404907, -0.11606282740831375, -0.6018767356872559, -0.03836773708462715, -0.8171635270118713, -0.20757006108760834, 0.1818007379770279, 0.21009746193885803, -0.3509465754032135, 0.5907908082008362, -0.46009039878845215, 0.10667215287685394, 0.7910646200180054, -0.04145859181880951, 0.1583603322505951, 0.06257681548595428, -0.4985203742980957, -0.08604001998901367, -0.8915069699287415, -0.5237594246864319, 1.1893151998519897, 0.27152758836746216, 0.5234366059303284, -0.20695504546165466, 0.94330894947052, -0.011138703674077988, 0.3213040232658386, -0.7776822447776794, 0.6164402961730957, -0.13354122638702393, -0.7851400971412659, -0.4084099531173706, -0.4551118314266205, -1.0017712116241455, 0.5458564758300781, -0.24890202283859253, -0.9002187252044678, 0.2186587154865265, 0.03488319367170334, -0.09778241068124771, 0.23400139808654785, -0.5752397775650024, 1.1421394348144531, -0.2113865464925766, -0.1743931621313095, -0.14489465951919556, -0.7343807816505432, 0.21909871697425842, -0.02498185820877552, 0.3987637758255005, -0.11919603496789932, 0.07377297431230545, 0.9128090143203735, -0.6764140725135803, 0.5615290999412537, -0.27548420429229736, 0.06465304642915726, 0.3097541332244873, -0.2267839014530182, 0.539474606513977, -0.22231480479240417, -0.1378014087677002, 0.4930811822414398, -0.05607588589191437, -0.42788049578666687, -0.4541309177875519, 0.6656846404075623, -1.032769799232483, -0.4165857136249542, -0.6204230189323425, -0.5967534184455872, -0.21765688061714172, 0.30038565397262573, 0.5399491786956787, 0.44348177313804626, -0.10836894065141678, 0.08886895328760147, 0.47385090589523315, -0.4144827723503113, 0.6210073828697205, 0.7547246813774109, -0.176986962556839, -0.3280220627784729, 0.9415295720100403, 0.11640128493309021, 0.3470713198184967, 0.17541462182998657, 0.13864418864250183, -0.20917388796806335, -0.450562983751297, -0.6633252501487732, 0.5056887269020081, -0.8177530765533447, 0.13879045844078064, -0.758748471736908, -0.25645992159843445, -0.3635243773460388, 0.10478273779153824, -0.47391629219055176, -0.636643648147583, -0.16132216155529022, -0.10716203600168228, 0.26949912309646606, 0.4268752634525299, -0.16245506703853607, 0.17596322298049927, -0.7683774828910828, 0.15171284973621368, 0.021144958212971687, 0.17584800720214844, -0.05932018160820007, -0.774125874042511, -0.4085676074028015, 0.013800951652228832, -0.33355599641799927, -0.6108759641647339, 0.49885714054107666, 0.2206435650587082, 0.7845368385314941, 0.25434866547584534, 0.15285390615463257, 0.5933979749679565, -0.6432427167892456, 0.9492360949516296, 0.14752395451068878, -1.1053270101547241, 0.6050652265548706, -0.15281999111175537, 0.2523321807384491, 0.7690306901931763, 0.3815760016441345, -0.4525311291217804, -0.7438830137252808, -1.0388613939285278, -1.2084622383117676, 1.2627902030944824, 0.386381596326828, 0.07485299557447433, -0.10514682531356812, 0.1289636343717575, -0.06117451936006546, 0.20070120692253113, -0.8649897575378418, -0.47603878378868103, -0.10007743537425995, -0.28865113854408264, -0.20375551283359528, -0.1649288833141327, 0.0849420502781868, -0.4392247498035431, 1.2761057615280151, 0.1463046371936798, 0.3355814814567566, 0.2642492651939392, -0.46674636006355286, -0.013068280182778835, 0.18351274728775024, 0.7531346678733826, 0.6504174470901489, -0.28484857082366943, -0.1844053715467453, 0.3016218841075897, -0.5451627373695374, -0.052661407738924026, 0.20607441663742065, -0.3031069040298462, 0.3672310411930084, 0.5690791606903076, 1.2668914794921875, 0.33121779561042786, -0.7819380164146423, 0.5011856555938721, -0.04482622817158699, -0.5135237574577332, -0.431073933839798, 0.061611101031303406, -0.10805658251047134, 0.009008348919451237, 0.31722819805145264, -0.12627775967121124, -0.03716611862182617, -0.555079460144043, 0.11559666693210602, 0.2387891560792923, -0.57716965675354, -0.17908601462841034, 0.6937133073806763, -0.11382078379392624, -0.26582518219947815, 0.9164490103721619, -0.07714903354644775, -0.6541892886161804, 0.6508869528770447, 0.4861142933368683, 0.8178544640541077, -0.16422604024410248, 0.035259589552879333, 0.7159250378608704, 0.25809434056282043, -0.13736917078495026, 0.25429072976112366, -0.2232925444841385, -0.747715950012207, -0.38731077313423157, -0.8350986242294312, -0.2512839138507843, -0.009839720092713833, -0.8328072428703308, 0.17170995473861694, -0.06520505994558334, -0.29775455594062805, 0.04940972477197647, -0.021435784175992012, -0.48631003499031067, 0.06863415241241455, 0.004204624332487583, 1.0232099294662476, -0.8049290180206299, 1.2208534479141235, 0.48000138998031616, -0.6658942103385925, -1.027627944946289, -0.08655199408531189, -0.4056634306907654, -0.8467544913291931, 1.0578011274337769, 0.08942562341690063, 0.10420111566781998, -0.06168772652745247, -0.22226674854755402, -0.9380599856376648, 0.9770411252975464, 0.32990261912345886, -0.7273263931274414, -0.053624555468559265, 0.08774422854185104, 0.6178401708602905, -0.17715734243392944, 0.2871732711791992, 0.5562092661857605, 0.6788733005523682, -0.11286292225122452, -1.091882348060608, -0.08827854692935944, -0.4080512821674347, 0.11951211094856262, 0.2967352867126465, -0.5410429239273071, 1.1299877166748047, -0.0031492840498685837, -0.1120338961482048, 0.2022051066160202, 0.6305601000785828, 0.3208504319190979, 0.06470430642366409, 0.46967703104019165, 0.7719138264656067, 0.6692484021186829, -0.2894585132598877, 1.290326714515686, -0.8896920084953308, 0.8466194868087769, 1.1706311702728271, 0.11010067164897919, 0.8899971842765808, 0.5592867136001587, -0.4184914231300354, 0.7720862627029419, 0.5721120834350586, -0.2527012825012207, 0.516956090927124, 0.22291630506515503, -0.05445418506860733, -0.2944103181362152, 0.3531184196472168, -0.4339398741722107, 0.3105981647968292, 0.18707048892974854, -0.6144289970397949, -0.15050075948238373, 0.35254746675491333, 0.10843273997306824, -0.0822138711810112, -0.11704706400632858, 0.6025671362876892, 0.009859329089522362, -0.7485018372535706, 0.9294025301933289, 0.17435963451862335, 0.7234103679656982, -0.7932522296905518, 0.26491427421569824, 0.05167236551642418, 0.3263006806373596, -0.08326511085033417, -0.5611497759819031, 0.20428819954395294, -0.03330254554748535, -0.14180772006511688, -0.20645539462566376, 0.48060014843940735, -0.4193532168865204, -0.7475695013999939, 0.4603193998336792, 0.32673975825309753, 0.3621300756931305, 0.19075283408164978, -1.0530731678009033, 0.18697510659694672, -0.1437418907880783, -0.6537506580352783, 0.3847314119338989, 0.2505057454109192, -0.004108418244868517, 0.5215825438499451, 0.48201265931129456, -0.02666824869811535, 0.12460969388484955, 0.3268311023712158, 0.7327208518981934, -0.42888686060905457, -0.4802631437778473, -0.993744969367981, 0.5590407252311707, -0.18203969299793243, -0.37289294600486755, 1.1176773309707642, 0.7561396956443787, 1.1020840406417847, -0.19659008085727692, 0.5769167542457581, -0.2025751769542694, 0.4096974730491638, -0.5100128054618835, 0.6914480328559875, -0.5531961917877197, 0.035503633320331573, -0.4643028974533081, -0.9171762466430664, -0.1870797723531723, 0.9734646677970886, -0.4712499976158142, 0.1661633402109146, 0.72633296251297, 0.7169300317764282, 0.05033418536186218, -0.26553407311439514, 0.258959025144577, 0.5475640892982483, 0.17223377525806427, 0.6353415846824646, 0.6050395965576172, -0.7478695511817932, 0.5985485911369324, -0.5334094166755676, -0.21861983835697174, -0.17884671688079834, -0.6528523564338684, -0.9324900507926941, -0.6847182512283325, -0.3750086724758148, -0.4636427164077759, -0.011466068215668201, 1.0712453126907349, 0.7033363580703735, -0.9749530553817749, -0.3204418122768402, -0.2988273799419403, -0.1795210838317871, -0.2856656014919281, -0.253539502620697, 0.6949228048324585, -0.6740744709968567, -0.9283037781715393, 0.3751985728740692, 0.11837983131408691, -0.07793601602315903, -0.2172875553369522, -0.35258448123931885, -0.2541540861129761, 0.03049798682332039, 0.5561271905899048, 0.19190242886543274, -0.8739558458328247, -0.11078156530857086, 0.09577330201864243, -0.18309244513511658, 0.32612454891204834, 0.5077328085899353, -0.8089845180511475, 0.4338163733482361, 0.369811087846756, 0.16821205615997314, 1.0215389728546143, -0.22796942293643951, 0.29313015937805176, -0.5466498732566833, 0.4461737275123596, 0.11446139961481094, 0.6234395503997803, 0.24473299086093903, -0.1975487321615219, 0.4976414740085602, 0.2879922688007355, -0.42769619822502136, -0.8729494214057922, -0.04816871136426926, -1.0797337293624878, -0.45832425355911255, 0.981748640537262, -0.3723951280117035, -0.5545003414154053, 0.08846943080425262, -0.35943010449409485, 0.35654523968696594, -0.4816300570964813, 0.716678261756897, 0.9502289295196533, -0.2189253866672516, 0.012621802277863026, -0.5899478197097778, 0.43355414271354675, 0.3836708068847656, -0.5532410144805908, -0.004190204665064812, 0.23218601942062378, 0.4841480553150177, 0.33444175124168396, 0.6812973022460938, -0.2272549420595169, 0.27819886803627014, -0.05611354485154152, 0.33009806275367737, -0.26205965876579285, -0.1878523826599121, -0.35277026891708374, 0.07366384565830231, 0.03268975019454956, -0.15755204856395721 ]
George-Ogden/gpt2-medium-finetuned-mnli
George-Ogden
"2023-08-03T15:45:56Z"
39,049
1
transformers
[ "transformers", "pytorch", "safetensors", "gpt2", "text-classification", "en", "license:mit", "endpoints_compatible", "text-generation-inference", "region:us" ]
text-classification
"2023-07-20T05:15:08Z"
--- license: mit language: - en metrics: - glue pipeline_tag: text-classification --- Evaluate on MNLI: ```python from transformers import ( default_data_collator, AutoTokenizer, AutoModelForSequenceClassification, Trainer, ) from datasets import load_dataset import functools from utils import compute_metrics, preprocess_function model_name = "George-Ogden/gpt2-medium-finetuned-mnli" model = AutoModelForSequenceClassification.from_pretrained(model_name) tokenizer = AutoTokenizer.from_pretrained(model_name) trainer = Trainer( model=model, eval_dataset="mnli", tokenizer=tokenizer, compute_metrics=compute_metrics, data_collator=default_data_collator, ) raw_datasets = load_dataset( "glue", "mnli", ).map(functools.partial(preprocess_function, tokenizer), batched=True) tasks = ["mnli", "mnli-mm"] eval_datasets = [ raw_datasets["validation_matched"], raw_datasets["validation_mismatched"], ] for layers in reversed(range(model.num_layers + 1)): for eval_dataset, task in zip(eval_datasets, tasks): metrics = trainer.evaluate(eval_dataset=eval_dataset) metrics["eval_samples"] = len(eval_dataset) if task == "mnli-mm": metrics = {k + "_mm": v for k, v in metrics.items()} trainer.log_metrics(metrics) ```
[ -0.26670271158218384, -0.45113256573677063, 0.08868297189474106, 0.37034645676612854, 0.021018486469984055, -0.32444190979003906, -0.17713266611099243, 0.1128375232219696, -0.27338606119155884, 0.3469064235687256, -0.5558695793151855, -0.29263296723365784, -0.5547019243240356, 0.15895219147205353, -0.4524184465408325, 1.1671967506408691, -0.18603797256946564, 0.042130257934331894, -0.2566351592540741, -0.14431916177272797, -0.3778338134288788, -0.2204059362411499, -0.646205484867096, -0.5958598256111145, 0.003830105299130082, 0.44557371735572815, 0.4673923850059509, 0.325585275888443, 0.5722612738609314, 0.4744466543197632, 0.1450483351945877, 0.2938208281993866, -0.39782872796058655, -0.13733802735805511, 0.08619510382413864, -0.775871753692627, -0.3682955205440521, 0.150162473320961, 0.9135095477104187, 0.2678036689758301, -0.13918928802013397, 0.7342909574508667, -0.039771780371665955, 0.8308137655258179, -0.635848343372345, 0.19508004188537598, -0.5165871977806091, 0.3510320484638214, 0.1832806020975113, -0.31927159428596497, -0.48480328917503357, 0.11721520125865936, -0.04648922383785248, -0.6568214893341064, 0.17412394285202026, -0.04954330623149872, 1.1123093366622925, 0.6148267984390259, -0.406661719083786, -0.13282258808612823, -0.8858124017715454, 1.1368465423583984, -0.6876856684684753, 0.2091318666934967, 0.4722917675971985, 0.4415472149848938, 0.015408420003950596, -1.1168488264083862, -0.5191313624382019, -0.3412149250507355, -0.35074272751808167, 0.19852593541145325, 0.09606055915355682, -0.2095343917608261, 0.8055505752563477, 0.5831204652786255, -0.6413557529449463, -0.05887483060359955, -0.5997748374938965, -0.20045261085033417, 0.862268328666687, 0.5738378167152405, 0.11863396316766739, -0.44853225350379944, -0.5212637186050415, -0.2754022181034088, -0.3425532877445221, 0.19215232133865356, 0.41045519709587097, 0.05071982368826866, -0.20337940752506256, 0.7649087309837341, -0.18815568089485168, 0.6879574656486511, 0.26207485795021057, -0.3127548396587372, 0.7788673639297485, -0.5623281598091125, -0.6361404061317444, -0.08933516591787338, 1.059921383857727, 0.4055151343345642, 0.3251565992832184, 0.11645989120006561, -0.4921330511569977, -0.11287196725606918, 0.233210489153862, -1.1590920686721802, -0.41863319277763367, 0.36907055974006653, -0.49244433641433716, -0.33828189969062805, 0.21831856667995453, -0.7030377984046936, 0.12102270871400833, -0.4569151997566223, 1.037472128868103, -0.3223801553249359, -0.26242783665657043, -0.22230589389801025, -0.1395895630121231, 0.32737526297569275, -0.2359805554151535, -0.8081066608428955, 0.1845284253358841, 0.5495795011520386, 0.7040048837661743, 0.24996429681777954, -0.5944355726242065, -0.6583612561225891, -0.24623923003673553, -0.22711403667926788, 0.24145880341529846, -0.21905668079853058, -0.49870678782463074, -0.2578010857105255, 0.2959800064563751, -0.7590384483337402, -0.7749701142311096, 0.8011203408241272, -0.2600632607936859, 0.5576123595237732, 0.142721489071846, -0.37126854062080383, -0.06642124801874161, 0.25560814142227173, -0.44098272919654846, 1.4672907590866089, 0.5704731941223145, -0.7719183564186096, 0.2186182737350464, -0.7890559434890747, -0.5261480212211609, -0.36498793959617615, -0.06328680366277695, -0.9572418928146362, 0.033165499567985535, 0.2338217794895172, 0.37851300835609436, -0.22928448021411896, 0.31662020087242126, -0.09750054031610489, -0.8435505628585815, 0.32619091868400574, -0.5763298273086548, 0.8882976174354553, 0.33875030279159546, -0.7133402824401855, 0.3521353304386139, -1.1086784601211548, 0.3513939082622528, -0.07512854784727097, -0.29328519105911255, -0.058660268783569336, -0.13732731342315674, 0.1118001863360405, 0.3067069351673126, 0.22659966349601746, -0.2962838411331177, 0.13414332270622253, -0.4835471212863922, 0.527387797832489, 0.7726585268974304, -0.2105756551027298, 0.19796410202980042, -0.2816527187824249, 0.2053828090429306, 0.32766056060791016, 0.46290770173072815, 0.02164905145764351, -0.38473615050315857, -1.1442991495132446, -0.2147049903869629, 0.38427892327308655, 0.7216760516166687, -0.9397717714309692, 0.7918425798416138, -0.2940792739391327, -0.6788934469223022, -0.8070796132087708, -0.07523409277200699, 0.47904345393180847, 0.5819414258003235, 0.6146028637886047, 0.02743479795753956, -0.7878051400184631, -1.2616794109344482, -0.017926933243870735, 0.005726510193198919, -0.1838519275188446, 0.21945619583129883, 0.9379600286483765, -0.36675965785980225, 0.6293839812278748, -0.47829118371009827, -0.41598841547966003, 0.06039993092417717, 0.16183534264564514, 0.9312805533409119, 0.8479150533676147, 0.4851315915584564, -0.7926877737045288, -0.8112832903862, -0.06219353526830673, -0.6372395753860474, 0.16378135979175568, -0.2187645137310028, -0.21461278200149536, 0.09076035022735596, 0.12609903514385223, -0.6356788277626038, 0.47322213649749756, 0.2251054346561432, -0.5139974355697632, 0.9239838719367981, -0.1853162795305252, 0.5005449056625366, -1.198355793952942, 0.4592989385128021, -0.2288540005683899, -0.10585931688547134, -0.7013241648674011, 0.03359876945614815, 0.07914687693119049, -0.03782123699784279, -0.5419631600379944, 0.4177248775959015, -0.20071151852607727, -0.2646360397338867, -0.0195181705057621, -0.30580028891563416, -0.08535122126340866, 0.5768820643424988, -0.40660229325294495, 0.9788748621940613, 0.8880119323730469, -0.808998167514801, 0.45973220467567444, 0.26742446422576904, -0.48391374945640564, 0.4523937404155731, -0.6404143571853638, 0.20201228559017181, 0.1729765683412552, -0.09115821123123169, -0.8317128419876099, -0.06747908890247345, 0.500190794467926, -0.49989861249923706, 0.30561256408691406, -0.25875112414360046, -0.6540877819061279, -0.5428264737129211, -0.31753307580947876, 0.48971250653266907, 0.6404853463172913, -0.6699405312538147, 0.7202853560447693, -0.0803494080901146, 0.5124381184577942, -0.9748952388763428, -0.9309729933738708, -0.3842349350452423, -0.48402881622314453, -0.48952314257621765, 0.27398914098739624, -0.28671059012413025, -0.0066803982481360435, 0.14908342063426971, -0.20603427290916443, -0.20818935334682465, 0.27501794695854187, 0.2434503138065338, 0.5057336091995239, -0.2840193212032318, -0.27013349533081055, -0.2433045655488968, -0.4390491843223572, 0.40367448329925537, -0.30845195055007935, 0.5462337732315063, -0.467722624540329, -0.382304310798645, -0.6878911852836609, -0.10055635869503021, 0.7296362519264221, -0.12993766367435455, 0.7661712169647217, 1.3233352899551392, -0.309372216463089, -0.0542147234082222, -0.3641049265861511, 0.04262831062078476, -0.5401299595832825, 0.6601314544677734, -0.6643376350402832, -0.4023090898990631, 0.5758183002471924, 0.43687140941619873, 0.01229582168161869, 1.0078774690628052, 0.6333350539207458, 0.08238933235406876, 1.2231345176696777, 0.06809508800506592, -0.09654965996742249, 0.29946213960647583, -0.8956583738327026, 0.08078300207853317, -1.0801483392715454, -0.27883797883987427, -0.42485806345939636, -0.4666879177093506, -0.6920589804649353, -0.35950860381126404, 0.3854956328868866, 0.19630758464336395, -0.48805809020996094, 0.36600106954574585, -0.7905426025390625, 0.44739606976509094, 0.5277132391929626, 0.04874000325798988, -0.011590412817895412, 0.1129109263420105, -0.22577854990959167, 0.18306364119052887, -0.7012798190116882, -0.19802330434322357, 1.3717254400253296, 0.18351595103740692, 0.4630407989025116, -0.09323995560407639, 0.6854919791221619, 0.06579280644655228, 0.5697516798973083, -0.759040892124176, 0.47856035828590393, -0.4028879404067993, -0.5326730012893677, -0.34321194887161255, -0.7165994644165039, -0.7459221482276917, 0.510183572769165, -0.013494716957211494, -0.688360333442688, 0.1256234496831894, 0.1295611709356308, -0.233943372964859, 0.33990806341171265, -0.7035219669342041, 0.9843058586120605, -0.02821739763021469, -0.3634020686149597, -0.20454087853431702, -0.5161375403404236, 0.5618523955345154, -0.12230166792869568, 0.041382163763046265, -0.09871558845043182, 0.24161823093891144, 0.9035460948944092, -0.5143594145774841, 0.5072005987167358, -0.40271687507629395, 0.33338093757629395, 0.5258582234382629, -0.33209994435310364, 0.37873801589012146, 0.08920039981603622, -0.35978707671165466, -0.035799290984869, 0.2541849613189697, -0.32771310210227966, -0.7327642440795898, 0.8344704508781433, -0.9169511198997498, -0.4506576359272003, -0.22682060301303864, -0.5131705403327942, 0.1490057408809662, 0.0928577184677124, 0.4459397494792938, 0.7568866610527039, 0.2559128999710083, 0.2814624607563019, 0.22560225427150726, 0.0609353668987751, 0.6592887043952942, 0.3382522761821747, -0.1809343546628952, -0.8099826574325562, 1.1418116092681885, 0.06641416996717453, 0.2986963987350464, 0.17425616085529327, 0.22245517373085022, -0.5172813534736633, -0.19269520044326782, -0.6442891359329224, -0.024301068857312202, -0.7781320810317993, -0.31282058358192444, -0.3252697288990021, -0.608609676361084, -0.21254809200763702, 0.3446671664714813, -0.38976433873176575, -0.4255462884902954, -0.3816360831260681, 0.26221728324890137, 0.06478436291217804, 0.3634103238582611, -0.1939564198255539, 0.04501146450638771, -0.8755314350128174, 0.2512578070163727, 0.1856594681739807, 0.27402713894844055, -0.00500266719609499, -0.839832603931427, -0.46122094988822937, 0.019931582733988762, -0.34318166971206665, -0.5291955471038818, 0.32534879446029663, 0.3293086588382721, 0.7227887511253357, 0.3186347186565399, 0.006361288484185934, 1.0379003286361694, -0.4802362620830536, 0.8125183582305908, 0.029995866119861603, -1.1200555562973022, 0.49856236577033997, 0.14617399871349335, 0.03117906115949154, 0.5159918665885925, 0.38291552662849426, -0.39754799008369446, -0.15877747535705566, -0.8526074886322021, -0.9206479787826538, 0.8761723041534424, 0.5840128064155579, -0.04320575296878815, 0.2418009638786316, 0.3455944359302521, -0.1574636697769165, 0.14074558019638062, -0.8001399040222168, -0.6674480438232422, -0.36765751242637634, -0.20960687100887299, -0.3404291570186615, -0.05589707940816879, -0.3373057544231415, -0.7268080115318298, 1.0493700504302979, -0.0815787985920906, 0.49315598607063293, 0.5985830426216125, -0.227655827999115, -0.0227003563195467, 0.31098419427871704, 0.81793612241745, 0.7068528532981873, -0.2290843278169632, 0.08769220113754272, 0.5414314270019531, -0.4599212110042572, 0.2892596125602722, 0.19294637441635132, -0.10788712650537491, 0.04804352670907974, 0.5028070211410522, 1.180905818939209, 0.1482454091310501, -0.3488173186779022, 0.4663093388080597, 0.05228723958134651, -0.44749554991722107, -0.6675061583518982, 0.26795780658721924, -0.20392091572284698, 0.34967100620269775, 0.37025201320648193, 0.3879932463169098, 0.055070050060749054, -0.18298986554145813, 0.4138597846031189, 0.13264262676239014, -0.34361758828163147, -0.3247371017932892, 0.6966187357902527, 0.009377284906804562, -0.37070363759994507, 1.1804594993591309, -0.1802937388420105, -0.5913761854171753, 1.0361475944519043, 0.5078238248825073, 1.0910981893539429, -0.28470250964164734, -0.023835880681872368, 0.8740748763084412, 0.3082837164402008, 0.006091810762882233, 0.2285965532064438, -0.17051911354064941, -0.6526848673820496, -0.5734649896621704, -0.7826083302497864, -0.042979784309864044, 0.4357220232486725, -0.9711682796478271, 0.2313135415315628, -0.15171149373054504, -0.18320003151893616, -0.2509520649909973, 0.198704794049263, -0.9164410829544067, 0.31034034490585327, -0.16898368299007416, 0.8633480668067932, -1.0668035745620728, 0.8444185256958008, 0.6224125623703003, -0.27864623069763184, -1.2122305631637573, -0.10757679492235184, -0.3597491383552551, -0.7636252641677856, 1.0192179679870605, 0.6102056503295898, 0.34032896161079407, 0.21704240143299103, -0.009878499433398247, -0.8001623153686523, 1.419439435005188, 0.026368526741862297, -0.46356555819511414, 0.32315799593925476, 0.24098141491413116, 0.5661607384681702, -0.3206617534160614, 0.7473378777503967, 0.7973434329032898, 0.8031210899353027, -0.1425466686487198, -0.9837974309921265, -0.0602937713265419, -0.5822687745094299, -0.18643121421337128, 0.3083650469779968, -0.4987785518169403, 1.0835705995559692, -0.3182075321674347, -0.16237863898277283, 0.3074460029602051, 0.6987975239753723, 0.3119581639766693, 0.4272139370441437, 0.8473907709121704, 0.8349398374557495, 0.5385605692863464, -0.25059881806373596, 1.016616940498352, -0.401492714881897, 1.0725035667419434, 0.9579793810844421, 0.12938684225082397, 0.8876060247421265, 0.3131234049797058, -0.5920213460922241, 0.518563985824585, 0.6826776266098022, -0.7570863366127014, 0.48623329401016235, 0.312206506729126, -0.17458738386631012, -0.08680958300828934, 0.2887415885925293, -0.651120662689209, 0.3597427010536194, 0.14427830278873444, -0.46801555156707764, -0.004349472001194954, -0.10807514935731888, -0.3474678695201874, -0.465804785490036, -0.3493034541606903, 0.26331043243408203, -0.09608040750026703, -0.8879967927932739, 1.0535132884979248, -0.10730485618114471, 0.5068763494491577, -0.5321592688560486, -0.014244569465517998, -0.029300402849912643, 0.4725393056869507, -0.6367712020874023, -0.6400825381278992, 0.46178439259529114, -0.2537609040737152, -0.20345880091190338, 0.07704326510429382, 0.6943565607070923, -0.6513371467590332, -0.685761034488678, 0.09939597547054291, 0.07024578750133514, 0.31548041105270386, 0.09655386209487915, -0.9356508851051331, -0.25594988465309143, 0.2712627351284027, -0.5484546422958374, 0.27115151286125183, 0.02299061417579651, 0.38299599289894104, 0.6400696635246277, 0.796349287033081, -0.32527896761894226, 0.10973124206066132, 0.20900973677635193, 0.8229462504386902, -0.4612985849380493, -0.3627404272556305, -1.0609859228134155, 0.98926842212677, -0.10536061227321625, -0.5258674621582031, 0.6552127003669739, 0.9381422400474548, 0.8611190319061279, -0.4473744034767151, 0.3301987648010254, -0.1442108154296875, 0.01103138830512762, -0.8227070569992065, 0.7280158996582031, -0.6911792755126953, 0.1766500622034073, 0.04497992992401123, -1.1449668407440186, 0.2124454379081726, 0.7158726453781128, -0.2036418467760086, 0.1832791417837143, 0.9101945757865906, 1.0605403184890747, -0.17991696298122406, -0.14423632621765137, 0.3258037865161896, 0.364188551902771, 0.2416771948337555, 0.7449591159820557, 0.9564488530158997, -0.9706957340240479, 0.4349825978279114, -0.7425714731216431, -0.021121781319379807, -0.008700459264218807, -0.6668931245803833, -0.9087250828742981, -0.6073123216629028, -0.4232521653175354, -0.5435970425605774, -0.3161393404006958, 0.9121497869491577, 0.7736697793006897, -0.9473448395729065, -0.2204291820526123, 0.010152523405849934, 0.024811267852783203, -0.3451513946056366, -0.4353415071964264, 0.6703180074691772, -0.5000296235084534, -1.008227825164795, 0.5750682950019836, -0.07012344151735306, -0.13744831085205078, -0.33926495909690857, -0.23424480855464935, -0.06971482187509537, -0.38652029633522034, 0.4412400424480438, 0.007446844596415758, -0.768677830696106, -0.30134713649749756, -0.38331925868988037, -0.0930008515715599, 0.26246991753578186, 0.5852834582328796, -0.6395405530929565, 0.2447962611913681, 0.5010161399841309, 0.46616682410240173, 0.7588405013084412, -0.22410549223423004, 0.2635193467140198, -0.807945191860199, 0.14862743020057678, -0.046497512608766556, 0.4316055476665497, 0.16710542142391205, -0.4365384578704834, 0.8236457705497742, 0.467224657535553, -0.7708674073219299, -1.0004364252090454, -0.04935581982135773, -0.7105559706687927, 0.06901324540376663, 0.9764938950538635, -0.2643895149230957, -0.2511606514453888, 0.3033977448940277, 0.020965566858649254, 0.3662286400794983, 0.0919397845864296, 0.6070685982704163, 0.566572368144989, -0.17875702679157257, 0.20174378156661987, -0.7301226854324341, 0.4094652533531189, 0.7446266412734985, -0.8322644233703613, -0.403089702129364, 0.01480051875114441, 0.7120372653007507, 0.400460422039032, 0.4873621165752411, -0.09078864753246307, 0.29830852150917053, 0.14186954498291016, -0.05888254940509796, -0.5636051893234253, -0.26091688871383667, -0.29782652854919434, 0.07600639015436172, -0.36575621366500854, -0.6475700736045837 ]
seyonec/PubChem10M_SMILES_BPE_450k
seyonec
"2021-05-20T21:02:39Z"
38,899
6
transformers
[ "transformers", "pytorch", "jax", "roberta", "fill-mask", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
fill-mask
"2022-03-02T23:29:05Z"
Entry not found
[ -0.3227650225162506, -0.22568431496620178, 0.862226128578186, 0.43461495637893677, -0.5282987952232361, 0.7012965679168701, 0.7915717363357544, 0.07618638128042221, 0.7746025919914246, 0.2563219666481018, -0.7852817177772522, -0.22573819756507874, -0.9104480743408203, 0.5715669393539429, -0.3992334008216858, 0.5791245698928833, -0.14494505524635315, -0.10751161724328995, 0.28233757615089417, -0.2768954336643219, -0.5409224033355713, -0.36855220794677734, -1.1902776956558228, 0.061491113156080246, 0.5316578149795532, 0.7435142397880554, 0.7584060430526733, 0.3652167320251465, 0.6432578563690186, 0.3932291269302368, -0.23138920962810516, 0.4827055037021637, -0.04171813279390335, 0.00260411505587399, -0.3524433970451355, -0.5516898036003113, -0.28596609830856323, 0.07584730535745621, 1.0961304903030396, 0.966687798500061, -0.284663587808609, 0.05330817773938179, -0.3063621520996094, 0.33088892698287964, -0.49734312295913696, 0.3054099678993225, -0.022506045177578926, 0.16318801045417786, -0.7041513919830322, -0.5535354018211365, 0.012794834561645985, -0.7361212968826294, 0.17926570773124695, -0.690081000328064, 0.8269098401069641, 0.18583157658576965, 1.1533750295639038, 0.14819414913654327, -0.462487131357193, -0.8161764144897461, -0.6538989543914795, 0.5711171627044678, -0.32703715562820435, 0.39680248498916626, 0.7028235197067261, -0.048573412001132965, -0.9820332527160645, -0.6745741367340088, -0.46466192603111267, 0.2923962473869324, 0.35402774810791016, -0.3411678075790405, -0.17522086203098297, -0.3058989644050598, 0.15792037546634674, 0.12811517715454102, -0.4841994643211365, -0.5543919205665588, -0.5475160479545593, -0.3960252106189728, 0.6206658482551575, 0.3482950031757355, 0.2429177463054657, -0.1888415813446045, -0.3228583335876465, 0.0880163162946701, -0.4160851538181305, 0.3402571678161621, 0.6335517168045044, 0.7114017009735107, -0.5811444520950317, 0.560215950012207, -0.04927587881684303, 0.7439703941345215, 0.11445561796426773, -0.27478092908859253, 0.41460567712783813, -0.14724725484848022, 0.055171746760606766, 0.4226345121860504, 0.31524422764778137, 0.2841312289237976, -0.3273695111274719, 0.2032228708267212, -0.3215144872665405, -0.30496224761009216, -0.22332167625427246, -0.29490774869918823, -0.3592180609703064, 0.5492289066314697, -0.3314017057418823, -0.42855486273765564, 1.143175721168518, -0.4200771450996399, -0.7302224040031433, 0.33156412839889526, 0.4065209925174713, -0.0994480773806572, -0.37146568298339844, -0.052260834723711014, -0.8458789587020874, -0.007907390594482422, 0.7491172552108765, -0.7198970913887024, 0.3371737599372864, 0.4728063642978668, 0.7417217493057251, 0.19650575518608093, -0.14034469425678253, -0.42949390411376953, 0.2971969544887543, -0.8659994006156921, 0.6320174336433411, -0.20135220885276794, -1.0051977634429932, 0.11150479316711426, 0.8971705436706543, -0.37896400690078735, -1.2094876766204834, 1.0605159997940063, -0.6887932419776917, 0.16017857193946838, -0.676761269569397, -0.14661237597465515, -0.07118501514196396, -0.005096632521599531, -0.6088156700134277, 0.7567102313041687, 0.587267279624939, -0.4995276927947998, 0.21429483592510223, -0.26029831171035767, -0.39151400327682495, 0.38824859261512756, -0.07935450226068497, -0.21858926117420197, 0.713833212852478, -0.6647079586982727, -0.26932814717292786, 0.2942774295806885, 0.2368936538696289, -0.35706108808517456, -0.7931919097900391, 0.08478113263845444, -0.05786270648241043, 1.550750494003296, -0.03868847340345383, -0.3586106300354004, -0.679383397102356, -1.1506240367889404, -0.07070787996053696, 0.6886883974075317, -0.9194989204406738, -0.27839475870132446, -0.046410128474235535, -0.26169314980506897, 0.08994917571544647, 0.7390589714050293, -1.1194051504135132, 0.2832726836204529, -0.05092663690447807, -0.22794683277606964, 0.8271058797836304, 0.15387225151062012, 0.24758946895599365, 0.14913396537303925, 0.42958706617355347, 0.527725338935852, 0.11115207523107529, 0.683587908744812, -0.34720373153686523, -0.9694353938102722, 0.6154631972312927, 0.25266361236572266, 0.8121447563171387, -0.49945297837257385, 0.2685093879699707, 0.27025535702705383, -0.3409680724143982, -0.5682371854782104, -0.3102838397026062, 0.09025752544403076, 0.14930562674999237, 0.11142510175704956, -0.5721710324287415, -0.6576125025749207, -0.9689140319824219, -0.13590654730796814, -0.4314374029636383, -0.3571570813655853, 0.21006910502910614, 0.5792906284332275, -1.1975523233413696, 0.4128875136375427, -0.7705625891685486, -0.7038741111755371, -0.01065548975020647, -0.19338123500347137, 0.7540656328201294, 0.43240174651145935, 0.5033966898918152, -0.6397148370742798, -0.5661987066268921, -0.22470176219940186, -1.0333747863769531, -0.13280506432056427, 0.24819621443748474, 0.3065737783908844, -0.13423344492912292, -0.2744963765144348, -0.48740333318710327, 0.8100387454032898, 0.14789170026779175, -0.5391897559165955, 0.5220767259597778, -0.3020317256450653, 0.17224803566932678, -0.6369150280952454, -0.06916818022727966, -0.661676287651062, -0.0009071884560398757, -0.3608308732509613, -0.5737438797950745, 0.14772287011146545, 0.07017494738101959, -0.16065457463264465, 0.28808408975601196, -0.909277081489563, -0.0010852962732315063, -0.7442210912704468, 0.379071980714798, 0.06394772231578827, -0.3145078718662262, -0.017517540603876114, 1.0000386238098145, 0.7784460783004761, -0.3848048746585846, 0.721744179725647, 0.4440041184425354, 0.19036155939102173, 0.7630521059036255, -0.18725109100341797, 0.16478213667869568, -0.5245416760444641, -0.12161104381084442, -0.8887597918510437, -1.0982946157455444, 0.7320570349693298, -0.6114250421524048, 0.36542922258377075, -0.4277869760990143, 0.2589159905910492, -0.6919258832931519, -0.03885362669825554, 0.4808599352836609, -0.05936325341463089, -0.6863942742347717, 0.5232570171356201, 0.45317530632019043, -0.2019241601228714, -0.6609031558036804, -0.530157208442688, 0.39365822076797485, 0.6154114007949829, -0.16390392184257507, 0.06878514587879181, 0.14941060543060303, -0.5441926121711731, -0.040802597999572754, -0.38691970705986023, -0.45766758918762207, 0.054224006831645966, 0.13053473830223083, -0.005750799085944891, -0.404820054769516, -0.0868026465177536, -0.35842007398605347, -0.4656120240688324, 0.21876516938209534, 0.3011947274208069, -0.04096309468150139, -0.42599788308143616, -0.3619818687438965, -0.888181209564209, 0.6719610095024109, 0.5370282530784607, 0.05281545966863632, 0.7555549740791321, 0.16819314658641815, -0.8014987707138062, -0.13532210886478424, -0.1760706603527069, 0.2696830928325653, -0.5588056445121765, 0.13849826157093048, -0.013484534807503223, -0.0637492910027504, 0.26297882199287415, 0.25386232137680054, -0.4300556778907776, 0.9276250004768372, -0.2615274488925934, -0.3592521846294403, 0.7960181832313538, 0.5974742770195007, 0.49583131074905396, 0.16503219306468964, -0.044541798532009125, 0.900709331035614, -1.1966516971588135, -0.6563175916671753, -0.7409549355506897, -0.15945707261562347, -0.43510833382606506, -0.032105933874845505, 0.6254412531852722, 0.2900990843772888, -0.1333388388156891, 0.4756395220756531, -0.5243489742279053, 0.3556033670902252, 1.01198410987854, 0.35748639702796936, 0.3435698449611664, -0.7570229172706604, -0.2515777349472046, -0.1402427852153778, -0.9998157620429993, -0.2631377875804901, 0.8871029019355774, 0.22752606868743896, 0.844460666179657, 0.5992541313171387, 0.6784542798995972, 0.1367226243019104, 0.2523828148841858, -0.30590319633483887, 0.3920294940471649, 0.4376082420349121, -1.0401138067245483, -0.42758408188819885, 0.021418681368231773, -0.9703338742256165, -0.14227519929409027, -0.03495011106133461, -0.42617112398147583, 0.7681737542152405, 0.00016589462757110596, -0.4076709747314453, 0.7732734084129333, -0.455583393573761, 0.7562873363494873, -0.4473648965358734, -0.02663906291127205, 0.4699096083641052, -0.7070636749267578, 0.4677430987358093, 0.12878790497779846, 0.6205843091011047, -0.015572631731629372, -0.04078587517142296, 0.7104941606521606, -0.9129160046577454, 0.25438642501831055, -0.6348397135734558, 0.22421300411224365, 0.24246945977210999, 0.51606285572052, 0.5969953536987305, 0.4371243417263031, 0.10119888931512833, -0.23920902609825134, 0.04115807265043259, -0.8241125345230103, -0.210506409406662, 0.697515606880188, -0.7186890840530396, -0.6864197850227356, -1.2355337142944336, 0.14438660442829132, 0.27347055077552795, 0.389305055141449, 0.7959296107292175, 0.571408748626709, 0.1289544403553009, 0.680525004863739, 0.9888588190078735, -0.0688566341996193, 0.9166924357414246, 0.3224477171897888, 0.09175168722867966, -0.21944808959960938, 0.7036820650100708, 0.26627904176712036, -0.24707956612110138, -0.11939732730388641, 0.20913465321063995, -0.11069409549236298, -0.591761589050293, -0.49990686774253845, 0.3701757788658142, -0.6731787919998169, -0.18303893506526947, -0.6243735551834106, -0.6043769717216492, -0.511759340763092, 0.06927360594272614, -0.7147687673568726, 0.23979046940803528, -0.7753565907478333, -0.10574902594089508, 0.04323432594537735, 0.9792009592056274, -0.589311957359314, 0.5805224180221558, -1.1218582391738892, 0.19345788657665253, -0.07949887961149216, 0.7921058535575867, 0.21395787596702576, -0.7344395518302917, -0.3975418508052826, -0.11592631042003632, -0.3729911744594574, -1.3576762676239014, 0.21404948830604553, -0.2454141080379486, 0.23094046115875244, 0.6145404577255249, 0.1397707313299179, 0.5258248448371887, -0.34326282143592834, 0.7029101848602295, -0.057017259299755096, -0.7069286704063416, 0.7934495210647583, -0.5026894807815552, 0.4963534474372864, 0.9765996932983398, 0.5333835482597351, -0.7984007596969604, 0.035741209983825684, -1.041123390197754, -0.6008695363998413, 0.38426393270492554, 0.11928944289684296, -0.03601083159446716, -0.6659559011459351, -0.054019637405872345, -0.16143807768821716, 0.6043745279312134, -1.039069414138794, -0.7858356237411499, 0.2576698362827301, 0.5277302861213684, 0.0816856250166893, -0.5653398633003235, 0.20880667865276337, -0.544416069984436, 1.0657774209976196, 0.45109400153160095, 0.3274499475955963, 0.8406060934066772, 0.46492424607276917, -0.3823164403438568, 0.09252490103244781, 0.7662695050239563, 0.6666232347488403, -0.5239797830581665, -0.2908027470111847, -0.08827541768550873, -0.9143403768539429, 0.05927472561597824, 0.11168918758630753, -0.013455932028591633, 0.9082110524177551, 0.5793083310127258, 0.2539709210395813, 0.4514279365539551, -0.726460337638855, 0.8859451413154602, -0.14954176545143127, -0.12472866475582123, -1.0677239894866943, 0.1948619782924652, -0.23984959721565247, 0.5006402134895325, 1.0061326026916504, 0.5250048041343689, -0.047630298882722855, -0.8143380880355835, -0.01473585981875658, 0.6939172148704529, -0.7091123461723328, -0.17449834942817688, 0.944853663444519, 0.3847099542617798, -1.2953051328659058, 1.106776475906372, -0.5381771326065063, -0.560332179069519, 0.9121301770210266, 0.522956907749176, 1.1221847534179688, -0.44204121828079224, 0.0008676342549733818, 0.2662237286567688, 0.41378432512283325, 0.5423170328140259, 1.0869629383087158, 0.431413471698761, -0.7931063771247864, 0.8826584815979004, -0.24776044487953186, -0.40361151099205017, -0.05347571521997452, -0.42859897017478943, 0.16892178356647491, -0.4406192898750305, -0.10713007301092148, -0.3444187641143799, 0.28543180227279663, -0.7072042226791382, 0.42807620763778687, -0.0838567465543747, 0.8653068542480469, -0.8553727269172668, 0.47207626700401306, 0.635470449924469, -0.3337355852127075, -0.8508191108703613, -0.26198428869247437, -0.11448462307453156, -0.6389466524124146, 0.30214807391166687, -0.4554102420806885, 0.044398851692676544, 0.09623463451862335, -0.649151623249054, -1.1778275966644287, 0.9093633890151978, -0.639612078666687, -0.2784462869167328, 0.20464053750038147, -0.11514760553836823, 0.28811705112457275, -0.2524643540382385, 0.010661216452717781, 0.41876548528671265, 0.748940110206604, 0.2844654619693756, -0.7727053761482239, -0.3694884479045868, 0.0015032943338155746, -0.44474777579307556, 0.7582978010177612, -0.6002101898193359, 1.1840779781341553, -0.5563543438911438, -0.059654366225004196, 0.44384512305259705, 0.24690914154052734, 0.21076197922229767, 0.6629220843315125, 0.1442081481218338, 0.7282265424728394, 1.07012140750885, -0.40835219621658325, 0.8811809420585632, 0.26432839035987854, 0.47430819272994995, 0.7238501906394958, -0.6487724781036377, 0.7513749003410339, 0.31810489296913147, -0.5682924389839172, 0.9228013753890991, 1.2906063795089722, -0.15699204802513123, 0.8079374432563782, 0.05136508867144585, -1.081600546836853, 0.325833261013031, -0.20724765956401825, -0.7530064582824707, 0.3150254189968109, 0.19055864214897156, -0.6920982599258423, -0.5770308971405029, -0.24046507477760315, -0.35662803053855896, -0.11552901566028595, -0.7631728649139404, 0.6720563769340515, -0.016969164833426476, -0.5103683471679688, 0.18857547640800476, 0.2877499461174011, 0.17368432879447937, -0.5235732793807983, -0.02939440682530403, -0.22823619842529297, 0.2660655975341797, -0.5670853853225708, -0.5234526991844177, 0.5724433064460754, -0.32430219650268555, -0.5343255400657654, 0.18147465586662292, 0.763587236404419, -0.16923809051513672, -0.4515409469604492, 0.32472723722457886, 0.6959525346755981, 0.1665852814912796, 0.4250282347202301, -0.23511263728141785, 0.24480605125427246, -0.08044824004173279, -0.06651552021503448, 0.27714768052101135, 0.3449169099330902, 0.22435641288757324, 0.4450142979621887, 0.43285664916038513, -0.01808755099773407, -0.10736498981714249, -0.382819801568985, 0.4124940037727356, -0.9542785882949829, -0.5713282823562622, -0.6307113766670227, 0.2740660607814789, -0.02315417304635048, -1.0836423635482788, 0.4145168364048004, 1.4406683444976807, 1.0359982252120972, -0.4756383001804352, 1.067226529121399, -0.21818485856056213, 0.9594791531562805, 0.41483086347579956, 0.5420440435409546, -0.6030411720275879, 0.03835370019078255, -0.4364396035671234, -1.076962947845459, -0.35716333985328674, 0.4539391100406647, -0.022899555042386055, -0.3429867625236511, 0.872571587562561, 0.5887166261672974, -0.33473607897758484, -0.11728022992610931, 0.048487238585948944, -0.029941488057374954, -0.12433847039937973, 0.5145376324653625, 0.7648399472236633, -0.9344304800033569, -0.10680416971445084, -0.21577754616737366, -0.6382725834846497, -0.5047279000282288, -0.9632009267807007, -0.12959396839141846, -0.16037796437740326, 0.035343267023563385, -0.5662806630134583, 0.00255737011320889, 1.208324909210205, 0.5684957504272461, -1.1113994121551514, -0.5303789377212524, 0.3371853232383728, 0.3920421898365021, -0.1874791383743286, -0.24202413856983185, 0.2984568774700165, 0.15382249653339386, -0.5908876657485962, 0.6875665783882141, 0.8089625239372253, 0.208888977766037, 0.19554761052131653, 0.15893013775348663, -0.8229473829269409, -0.14913435280323029, 0.17440445721149445, 0.9450570344924927, -0.939853310585022, -0.7114843130111694, -0.03168516233563423, -0.27094873785972595, -0.05765746906399727, 0.17102102935314178, -0.4046344757080078, 0.5180677175521851, 0.34591493010520935, 0.49933457374572754, 0.0561608150601387, -0.054746925830841064, 0.5409556031227112, -0.9069057703018188, 0.09425963461399078, 0.4134361147880554, 0.4154115319252014, -0.4000864028930664, -0.5910194516181946, 0.6713420748710632, 1.0073972940444946, -0.6594868898391724, -0.8743268847465515, -0.19846712052822113, -1.0016002655029297, 0.04189709946513176, 0.6762762069702148, 0.5009527802467346, -0.4806513786315918, -0.4174500107765198, -0.5617399215698242, -0.1254672110080719, -0.1369970738887787, 0.7621601819992065, 1.179680585861206, -0.7432094812393188, 0.07975747436285019, -1.038639783859253, 0.6594986915588379, -0.2419457733631134, -0.3457581698894501, -0.48644304275512695, 0.3832802176475525, 0.35236993432044983, 0.440481036901474, 0.614812433719635, 0.1408471167087555, 0.8338426351547241, 0.3126053214073181, -0.1702686995267868, 0.2698982357978821, -0.4559200704097748, -0.028932858258485794, -0.057962555438280106, 0.31015971302986145, -1.0262157917022705 ]
snrspeaks/KeyPhraseTransformer
snrspeaks
"2022-03-25T13:05:44Z"
38,543
7
transformers
[ "transformers", "pytorch", "t5", "text2text-generation", "license:mit", "autotrain_compatible", "endpoints_compatible", "has_space", "text-generation-inference", "region:us" ]
text2text-generation
"2022-03-25T12:23:25Z"
--- license: mit ---
[ -0.12853388488292694, -0.18616782128810883, 0.6529127359390259, 0.4943625330924988, -0.19319313764572144, 0.23607465624809265, 0.36071982979774475, 0.05056332051753998, 0.5793652534484863, 0.740013837814331, -0.6508103013038635, -0.2378396987915039, -0.710224986076355, -0.04782581701874733, -0.3894752264022827, 0.8470761775970459, -0.09598272293806076, 0.024004854261875153, 0.047120071947574615, -0.14317826926708221, -0.6121037602424622, -0.04771740734577179, -1.0524537563323975, -0.06787490844726562, 0.3002279996871948, 0.5120972990989685, 0.8275896310806274, 0.39602896571159363, 0.5030564069747925, 1.7515558004379272, -0.08836919069290161, -0.22754427790641785, -0.45892032980918884, 0.4223068356513977, -0.33277371525764465, -0.42133718729019165, -0.2624166011810303, -0.07449338585138321, 0.32380399107933044, 0.790371298789978, -0.38104110956192017, 0.19328099489212036, -0.22438454627990723, 1.008224368095398, -0.8202074766159058, 0.22630876302719116, -0.16698351502418518, 0.14053204655647278, 0.042308706790208817, -0.14591927826404572, -0.1326323002576828, -0.6440033912658691, 0.06469469517469406, -0.899596095085144, 0.1027495265007019, -0.04461126774549484, 0.8789561986923218, 0.21909058094024658, -0.5102370977401733, -0.0459773913025856, -0.6883594989776611, 1.0972508192062378, -0.17556026577949524, 0.7615712881088257, 0.4507811963558197, 0.45288562774658203, -0.5849329829216003, -1.178217887878418, -0.4441864490509033, -0.13579002022743225, 0.14722809195518494, 0.30556100606918335, -0.3453029692173004, -0.022343844175338745, 0.10801105946302414, 0.5610314011573792, -0.5003758072853088, -0.311959445476532, -0.9579929113388062, -0.18164916336536407, 0.6820483207702637, 0.319308340549469, 0.834044337272644, 0.1873151659965515, -0.7347195744514465, 0.12866291403770447, -1.3239703178405762, 0.07650735974311829, 0.6465023756027222, 0.239467591047287, -0.554598867893219, 0.8594784736633301, -0.28587982058525085, 0.626249372959137, 0.2728465497493744, -0.1164526641368866, 0.2784252464771271, -0.23030735552310944, -0.2735062837600708, 0.033087607473134995, 0.34597301483154297, 0.8204491138458252, 0.16248634457588196, -0.019984982907772064, -0.22123965620994568, 0.0020717978477478027, 0.2684449553489685, -0.7935096025466919, -0.4712669551372528, 0.1926696002483368, -0.558952808380127, -0.0910850465297699, 0.4327022135257721, -1.0976827144622803, -0.4812980592250824, -0.1879846155643463, 0.05468139797449112, -0.5451693534851074, -0.3697946071624756, 0.07273250073194504, -0.79254150390625, -0.1243419200181961, 0.570950984954834, -0.6230252981185913, 0.43974608182907104, 0.533625602722168, 0.7861635684967041, 0.2330387681722641, -0.23613610863685608, -0.6695019602775574, 0.48848265409469604, -0.8661867380142212, 0.36860740184783936, -0.3073781132698059, -0.8298640251159668, -0.09631050378084183, 0.5393159985542297, 0.20664852857589722, -0.6653256416320801, 0.7074045538902283, -0.5496984720230103, -0.07806532829999924, -0.4308285415172577, -0.2432200014591217, 0.17460417747497559, 0.11115431040525436, -0.6238909363746643, 0.9402233362197876, 0.5551108121871948, -0.584109902381897, 0.31701239943504333, -0.4869506359100342, -0.6865583658218384, 0.26748135685920715, -0.008750975131988525, -0.047152332961559296, 0.3279528021812439, -0.15983973443508148, -0.0020511597394943237, 0.10505761206150055, 0.008299741894006729, -0.21891699731349945, -0.4786304235458374, 0.06349936127662659, 0.151650071144104, 1.25368332862854, 0.4083622097969055, -0.3771882951259613, -0.13140122592449188, -1.0526149272918701, 0.025432661175727844, 0.0505015105009079, -0.42306768894195557, -0.2504565119743347, -0.14882194995880127, -0.20381587743759155, 0.4307260811328888, 0.2118472456932068, -0.813115119934082, 0.22643625736236572, -0.2064024657011032, 0.364496648311615, 0.8222091794013977, 0.2703101634979248, 0.39760565757751465, -0.6625286340713501, 0.6563138365745544, 0.2076188325881958, 0.49590179324150085, 0.35404202342033386, -0.3845822811126709, -0.9641586542129517, -0.442161500453949, -0.10117404907941818, 0.2975531220436096, -0.7744957804679871, 0.5847322940826416, 0.012979604303836823, -0.5836705565452576, -0.4465281367301941, -0.15488101541996002, 0.2755330502986908, -0.06606576591730118, 0.03334902226924896, -0.4049779176712036, -0.7394417524337769, -1.0127898454666138, -0.13788150250911713, -0.5021388530731201, -0.21892830729484558, 0.3160586357116699, 0.2617739737033844, -0.34290042519569397, 0.7610747814178467, -0.6059278249740601, -0.704064130783081, -0.13973554968833923, -0.0995984673500061, 0.6187719702720642, 0.9297672510147095, 0.749138355255127, -0.7224893569946289, -0.8973818421363831, -0.056230708956718445, -0.5420039892196655, -0.020044349133968353, 0.038149889558553696, -0.18260693550109863, -0.10514980554580688, 0.22352531552314758, -0.6100803017616272, 0.8851073980331421, 0.43224984407424927, -0.681546688079834, 0.5210590958595276, -0.4444413483142853, 0.6073803901672363, -0.8642839193344116, -0.2911490201950073, -0.16823577880859375, -0.1976117193698883, -0.7090160846710205, 0.19411544501781464, -0.3002234101295471, -0.33029863238334656, -0.7474032044410706, 0.5274897813796997, -0.9497010707855225, -0.18781527876853943, -0.33672773838043213, -0.03423111140727997, 0.25807833671569824, 0.19490505754947662, -0.23560254275798798, 0.8900529742240906, 0.9160482287406921, -0.7121306657791138, 0.5487277507781982, 0.3930906653404236, -0.1920013427734375, 0.7131237387657166, -0.3887738585472107, 0.05161993205547333, -0.12344931066036224, 0.14374595880508423, -1.126388430595398, -0.561158299446106, 0.13677382469177246, -0.712703287601471, 0.17686958611011505, -0.16556859016418457, -0.09428537636995316, -0.6608465313911438, -0.33806395530700684, 0.25910091400146484, 0.48612290620803833, -0.47969940304756165, 0.6188148260116577, 0.5728040337562561, 0.02651876211166382, -0.5307406783103943, -0.7206818461418152, 0.20418110489845276, 0.039646461606025696, -0.5569695830345154, 0.3011690080165863, 0.006543457508087158, -0.6622446775436401, -0.371124804019928, -0.26354190707206726, -0.6043857336044312, -0.2267974615097046, 0.7826986312866211, 0.1199423298239708, -0.09012264013290405, -0.20310267806053162, -0.3199536204338074, -0.06167525798082352, 0.30487415194511414, -0.07575298100709915, 0.7232834696769714, -0.33623749017715454, -0.17850083112716675, -0.887734055519104, 0.652754545211792, 0.9970465302467346, 0.09446714073419571, 0.806644082069397, 0.46324217319488525, -0.35647475719451904, -0.1304660439491272, -0.3535459041595459, -0.15120601654052734, -0.685774564743042, -0.1806798279285431, -0.5322476625442505, -0.5411434769630432, 0.40530654788017273, 0.10101459175348282, -0.0021042972803115845, 0.5167046785354614, 0.2533605694770813, -0.28806859254837036, 0.7550324201583862, 1.034340739250183, 0.1391797959804535, 0.3602915108203888, -0.2854715585708618, 0.6341594457626343, -0.8329949378967285, -0.34052175283432007, -0.4548071026802063, -0.2563585042953491, -0.31214389204978943, -0.10750849545001984, 0.5791022181510925, 0.2818215489387512, -0.4463467597961426, 0.1250680536031723, -0.5994209051132202, 0.6587361693382263, 0.6273988485336304, 0.5719727873802185, 0.1997303068637848, -0.46199458837509155, 0.19982971251010895, 0.04816687852144241, -0.45745599269866943, -0.4009109139442444, 0.7711143493652344, 0.2399624139070511, 0.8364022374153137, 0.20927050709724426, 0.4957774877548218, 0.33375421166419983, 0.2528058588504791, -0.6318977475166321, 0.2009797990322113, -0.22282809019088745, -1.245961308479309, -0.206426739692688, -0.16551318764686584, -1.0080583095550537, -0.11792082339525223, -0.18288995325565338, -0.8406620025634766, 0.2665729820728302, -0.19225634634494781, -0.6640645265579224, 0.5206149220466614, -0.5103875398635864, 0.69347083568573, -0.23555898666381836, -0.2817087769508362, 0.11930079013109207, -0.6889920830726624, 0.5254612565040588, 0.3667147755622864, 0.29168397188186646, -0.37968993186950684, -0.3192872405052185, 0.5068994760513306, -0.881224513053894, 0.44081127643585205, -0.10564978420734406, 0.19428130984306335, 0.5358879566192627, 0.4153591990470886, 0.3823971152305603, 0.28699052333831787, -0.2459377944469452, -0.23415414988994598, 0.2250344604253769, -0.7581346035003662, -0.27754613757133484, 0.9095459580421448, -0.7519428730010986, -0.8586915731430054, -0.6954255700111389, -0.30644941329956055, 0.28865277767181396, 0.02781464159488678, 0.7154772281646729, 0.6456884145736694, -0.18821057677268982, 0.23776991665363312, 0.7208225727081299, -0.0146945184096694, 0.7235562801361084, 0.29411184787750244, -0.4056646227836609, -0.6169787645339966, 0.7182320356369019, 0.2627044916152954, 0.05162655562162399, 0.028327951207756996, 0.3058736026287079, -0.17546698451042175, -0.15078596770763397, -0.6318323612213135, -0.06395323574542999, -0.7465729117393494, -0.0927949845790863, -0.7541396617889404, -0.2507742643356323, -0.7114590406417847, -0.8068137764930725, -0.7080163955688477, -0.45604395866394043, -0.43011948466300964, -0.23352204263210297, 0.5163108706474304, 1.1627086400985718, -0.2613152861595154, 0.8011051416397095, -0.8900954723358154, 0.41936296224594116, 0.4969540238380432, 0.7519731521606445, -0.11061006784439087, -0.6746935844421387, -0.07836239039897919, -0.5338755249977112, -0.29485058784484863, -1.0156972408294678, 0.31774646043777466, -0.03688591718673706, 0.40537136793136597, 0.42938894033432007, 0.25190269947052, 0.49392756819725037, -0.30073118209838867, 1.1130688190460205, 0.7274302244186401, -0.803381085395813, 0.519527792930603, -0.7635002136230469, 0.16122324764728546, 0.9363659620285034, 0.54477459192276, -0.4417075514793396, -0.15113934874534607, -1.025976538658142, -0.843137264251709, 0.5963036417961121, 0.15439945459365845, 0.016843896359205246, 0.01821417547762394, 0.03168272227048874, 0.29466384649276733, 0.3591304123401642, -0.7847291231155396, -0.8240220546722412, -0.13851122558116913, 0.25803306698799133, 0.31456053256988525, -0.1648542582988739, -0.3003871440887451, -0.611615777015686, 0.8711391091346741, 0.18286482989788055, 0.3546231985092163, 0.12073354423046112, 0.04369349032640457, -0.35506919026374817, 0.14787021279335022, 0.5522999167442322, 1.2529057264328003, -0.40983331203460693, 0.3673911392688751, 0.1751260608434677, -0.6540069580078125, 0.6494997143745422, -0.3036349415779114, -0.021784601733088493, 0.6203135251998901, 0.17760884761810303, 0.28528398275375366, 0.315599262714386, -0.3621427118778229, 0.6047801971435547, -0.029422052204608917, -0.17758512496948242, -0.7005696296691895, 0.15866968035697937, 0.029350608587265015, 0.27507954835891724, 0.4392024278640747, 0.24443313479423523, 0.08246771991252899, -1.0602877140045166, 0.5711055397987366, 0.24493910372257233, -0.8676618337631226, -0.3011006712913513, 0.7047957181930542, 0.4075389802455902, -0.47599563002586365, 0.38749054074287415, 0.012702330946922302, -0.6710241436958313, 0.5987741351127625, 0.5510413646697998, 0.7569674253463745, -0.4702427089214325, 0.3088020086288452, 0.6245602965354919, 0.06711331009864807, 0.20550549030303955, 0.6923202872276306, 0.03149382025003433, -0.44738656282424927, 0.23022446036338806, -0.5986733436584473, -0.1468990594148636, 0.13735318183898926, -0.8047426342964172, 0.351533442735672, -0.9312615394592285, -0.24089956283569336, 0.08751589059829712, 0.11761097609996796, -0.6130945086479187, 0.6674696207046509, -0.008524954319000244, 0.9280490875244141, -0.8549083471298218, 0.9626278281211853, 0.8559581637382507, -0.31830817461013794, -0.7709448337554932, -0.33556753396987915, 0.02013934776186943, -0.6660526990890503, 0.7108278274536133, -0.18973003327846527, -0.41207411885261536, -0.09323947876691818, -0.622982919216156, -1.0003730058670044, 0.030618250370025635, 0.017415650188922882, -0.4625031054019928, 0.4454794228076935, -0.5157257318496704, 0.3289681673049927, -0.19169732928276062, 0.30509495735168457, 0.7719469666481018, 0.7958452701568604, 0.22960808873176575, -0.6354780197143555, -0.4466685652732849, -0.010276071727275848, -0.16682815551757812, 0.4545809030532837, -1.0710972547531128, 0.967736542224884, -0.4652574360370636, -0.34733209013938904, 0.2706642150878906, 0.797762393951416, 0.2538500428199768, 0.3524126708507538, 0.6219537258148193, 0.9016807079315186, 0.36450111865997314, -0.31178343296051025, 0.7276745438575745, 0.2426338493824005, 0.4152539074420929, 0.7364203333854675, -0.22712187469005585, 0.5403846502304077, 0.8906413316726685, -0.786162257194519, 0.5381765365600586, 0.7879031896591187, 0.16047371923923492, 0.7758157253265381, 0.5944145917892456, -0.611952543258667, -0.1185941994190216, -0.1464141309261322, -0.6171560287475586, 0.1979752480983734, 0.052926212549209595, -0.11974738538265228, -0.2846010625362396, -0.13567376136779785, 0.12295057624578476, 0.2836454212665558, -0.5959328413009644, 0.606866717338562, 0.34341585636138916, -0.6328282356262207, 0.21025103330612183, -0.25779569149017334, 0.6709501147270203, -0.5978154540061951, 0.02733636647462845, -0.226993590593338, 0.41810402274131775, -0.4618742763996124, -1.007582426071167, 0.47138404846191406, -0.2920241355895996, -0.40551304817199707, -0.26942431926727295, 0.8072363138198853, -0.22133907675743103, -0.5572860240936279, 0.37486034631729126, 0.13466592133045197, 0.41473662853240967, 0.40145981311798096, -0.548729419708252, 0.047790080308914185, 0.13760165870189667, -0.20061805844306946, 0.3601190149784088, 0.2973729372024536, 0.25488772988319397, 0.7100128531455994, 0.5052477717399597, 0.22198708355426788, 0.25694364309310913, -0.18668605387210846, 0.8387458324432373, -0.9102796316146851, -0.8167635202407837, -0.9497333765029907, 0.3849896192550659, 0.025727711617946625, -0.880144476890564, 0.7920305728912354, 0.7652608156204224, 0.5113964080810547, -0.4877890348434448, 0.4755283296108246, -0.326479434967041, 0.5047136545181274, -0.13870958983898163, 1.001089096069336, -0.760762631893158, -0.29587265849113464, -0.030554059892892838, -0.9216439723968506, -0.2533753216266632, 0.5375741720199585, 0.1540832668542862, -0.14608067274093628, 0.4385907053947449, 0.44216376543045044, 0.022173406556248665, 0.25223150849342346, 0.32861006259918213, 0.06042787432670593, 0.14508451521396637, 0.5510438680648804, 1.0931141376495361, -0.43394410610198975, 0.18694786727428436, -0.4923475384712219, -0.4536249041557312, -0.4153490662574768, -0.9548057913780212, -0.6640313863754272, -0.48185449838638306, -0.2973935008049011, -0.5915579199790955, 0.11726461350917816, 0.9300885796546936, 0.9018137454986572, -0.6256728172302246, -0.41243645548820496, 0.25713539123535156, 0.30293411016464233, -0.2295418381690979, -0.146267831325531, 0.2736492455005646, -0.006407544948160648, -0.7211178541183472, 0.3930943012237549, 0.807976245880127, 0.3887130320072174, 0.08444006741046906, -0.07217127084732056, -0.4407080411911011, 0.026101574301719666, 0.5373561382293701, 0.5729561448097229, -0.6281182169914246, -0.4099644422531128, -0.5328317880630493, -0.21386730670928955, 0.15529435873031616, 0.48077550530433655, -0.5166378617286682, 0.32661110162734985, 0.8128959536552429, 0.17017659544944763, 0.7187885642051697, -0.0022492259740829468, 0.6678642630577087, -0.8970246315002441, 0.4446259140968323, 0.3953385353088379, 0.5681870579719543, 0.08998038619756699, -0.7339164614677429, 0.9820241928100586, 0.49674350023269653, -0.6334057450294495, -1.0034242868423462, 0.03079957515001297, -1.193113923072815, -0.3788175582885742, 0.9890843629837036, -0.09595765173435211, -0.9597458839416504, -0.36448943614959717, -0.3677716851234436, 0.07989637553691864, -0.33809733390808105, 0.35498204827308655, 0.8268195986747742, -0.2538071274757385, -0.2204185128211975, -0.9505581855773926, 0.4752943515777588, 0.3102525472640991, -0.5886632204055786, -0.05114369094371796, 0.329391211271286, 0.45236870646476746, 0.3009701371192932, 0.5239557027816772, 0.10428227484226227, 0.8970529437065125, 0.25200390815734863, 0.30491405725479126, -0.04526621103286743, -0.590078592300415, -0.0160664189606905, 0.2621477246284485, 0.04487839341163635, -0.6869441270828247 ]
charactr/vocos-encodec-24khz
charactr
"2023-10-17T14:09:41Z"
38,408
5
null
[ "pytorch", "arxiv:2306.00814", "license:mit", "has_space", "region:us" ]
null
"2023-06-11T16:41:12Z"
--- license: mit --- # Vocos: Closing the gap between time-domain and Fourier-based neural vocoders for high-quality audio synthesis [Audio samples](https://charactr-platform.github.io/vocos/) | Paper [[abs]](https://arxiv.org/abs/2306.00814) [[pdf]](https://arxiv.org/pdf/2306.00814.pdf) Vocos is a fast neural vocoder designed to synthesize audio waveforms from acoustic features. Trained using a Generative Adversarial Network (GAN) objective, Vocos can generate waveforms in a single forward pass. Unlike other typical GAN-based vocoders, Vocos does not model audio samples in the time domain. Instead, it generates spectral coefficients, facilitating rapid audio reconstruction through inverse Fourier transform. ## Installation To use Vocos only in inference mode, install it using: ```bash pip install vocos ``` If you wish to train the model, install it with additional dependencies: ```bash pip install vocos[train] ``` ## Usage ### Reconstruct audio from EnCodec tokens Additionally, you need to provide a `bandwidth_id` which corresponds to the embedding for bandwidth from the list: `[1.5, 3.0, 6.0, 12.0]`. ```python vocos = Vocos.from_pretrained("charactr/vocos-encodec-24khz") audio_tokens = torch.randint(low=0, high=1024, size=(8, 200)) # 8 codeboooks, 200 frames features = vocos.codes_to_features(audio_tokens) bandwidth_id = torch.tensor([2]) # 6 kbps audio = vocos.decode(features, bandwidth_id=bandwidth_id) ``` Copy-synthesis from a file: It extracts and quantizes features with EnCodec, then reconstructs them with Vocos in a single forward pass. ```python y, sr = torchaudio.load(YOUR_AUDIO_FILE) if y.size(0) > 1: # mix to mono y = y.mean(dim=0, keepdim=True) y = torchaudio.functional.resample(y, orig_freq=sr, new_freq=24000) y_hat = vocos(y, bandwidth_id=bandwidth_id) ``` ## Citation If this code contributes to your research, please cite our work: ``` @article{siuzdak2023vocos, title={Vocos: Closing the gap between time-domain and Fourier-based neural vocoders for high-quality audio synthesis}, author={Siuzdak, Hubert}, journal={arXiv preprint arXiv:2306.00814}, year={2023} } ``` ## License The code in this repository is released under the MIT license.
[ -0.7125052809715271, -0.5571226477622986, 0.03825867548584938, 0.5599268674850464, 0.0748373419046402, 0.042333994060754776, -0.24901284277439117, -0.21758531033992767, 0.4010278582572937, 0.5531360507011414, -0.3982394337654114, -0.46583569049835205, -0.3188333511352539, -0.060784585773944855, -0.4657057225704193, 0.6720989942550659, 0.2578967809677124, -0.03698176518082619, 0.0011591396760195494, 0.00044654784142039716, -0.21313835680484772, -0.4066809117794037, -0.9474115371704102, -0.2921963930130005, 0.06552399694919586, -0.1477632075548172, 0.17737114429473877, 0.19143390655517578, -0.011617676354944706, 0.39877304434776306, -0.5620136857032776, 0.18636329472064972, -0.19750744104385376, 0.1556989848613739, 0.3265068829059601, -0.39779210090637207, -0.8561185598373413, -0.21424034237861633, 0.5033581256866455, 0.4686109125614166, -0.44260722398757935, 0.17076285183429718, 0.1838773488998413, 0.4559227526187897, -0.633215069770813, -0.233445405960083, -0.7001723051071167, 0.3377962112426758, -0.06433364003896713, -0.7090643644332886, -0.27231138944625854, -0.3081306517124176, 0.004628942348062992, -0.8631699085235596, 0.6973004937171936, -0.2947269678115845, 0.8890795707702637, 0.4303450882434845, -0.26305678486824036, -0.21369150280952454, -0.8790202736854553, 0.6446048617362976, -0.7923693060874939, 0.7493249177932739, 0.4039303958415985, 0.46294519305229187, -0.30714449286460876, -1.0788370370864868, -0.7127925753593445, 0.1898140013217926, 0.6596167087554932, 0.3530426025390625, -0.02624892070889473, 0.0635465458035469, 0.19364818930625916, 0.5977718830108643, -0.17860978841781616, -0.3265838921070099, -0.810693621635437, -0.6899412274360657, 0.609089195728302, 0.1092229038476944, -0.03471928462386131, 0.006033199839293957, -0.5572431683540344, -0.4403134286403656, -0.6089410781860352, 0.5366771221160889, 0.7872841358184814, -0.05455315113067627, -0.2916589677333832, 0.3066248297691345, 0.043489210307598114, 0.5064269304275513, 0.0010772672249004245, -0.07885867357254028, 0.555188775062561, -0.4286818504333496, -0.22197233140468597, 0.25415536761283875, 0.9396761059761047, 0.0728721022605896, 0.06924567371606827, 0.02659946121275425, -0.3037227392196655, -0.08861809223890305, 0.4569239318370819, -0.7020972371101379, -0.1353364884853363, 0.5832260847091675, -0.11856519430875778, -0.23279884457588196, 0.07584422081708908, -0.9122073650360107, 0.26389485597610474, -0.297722727060318, 0.5112850666046143, -0.16584186255931854, -0.2331136018037796, 0.3089667558670044, -0.47235107421875, 0.02751089446246624, 0.06711367517709732, -0.9236366748809814, 0.49849599599838257, 0.3813267648220062, 1.0166442394256592, 0.18024112284183502, -0.3660178482532501, -0.6538850665092468, -0.055754780769348145, -0.41903582215309143, 0.3799329102039337, 0.15618637204170227, -0.5753723382949829, -0.22520659863948822, -0.06706392765045166, 0.5308955311775208, -0.6188323497772217, 0.6147128939628601, -0.4234457015991211, 0.036792293190956116, -0.14799495041370392, -0.11656389385461807, 0.0550079420208931, -0.3830775320529938, -0.49233993887901306, 1.1074199676513672, 0.14632710814476013, -0.308669775724411, 0.09410817921161652, -0.43215543031692505, -0.4262469410896301, -0.3898046910762787, 0.16382314264774323, -0.6022491455078125, -0.05639815330505371, 0.3590131402015686, 0.17670132219791412, -0.42720505595207214, 0.3515680432319641, -0.4132092595100403, -0.5450912714004517, 0.32168903946876526, -0.7990797758102417, 1.2313450574874878, 0.5367026925086975, -0.4550810754299164, 0.07772611081600189, -0.6537790298461914, 0.06612499803304672, -0.1524837762117386, -0.5288355946540833, 0.001824401319026947, -0.10074196755886078, 0.4249555170536041, 0.09239285439252853, -0.26783597469329834, -0.6247715950012207, -0.029667040333151817, -0.5876739621162415, 1.0593137741088867, 0.736393392086029, -0.04155367985367775, 0.23797591030597687, -0.39634665846824646, 0.3370836079120636, -0.28510230779647827, 0.34059280157089233, 0.017754435539245605, -0.2503393590450287, -0.6228100657463074, -0.32337141036987305, 0.4498552680015564, 0.12408924847841263, -0.664664089679718, 0.7622424960136414, -0.29885542392730713, -0.5490846633911133, -0.8211851119995117, -0.11495871096849442, -0.0027682988438755274, 0.3841950595378876, 0.6438198685646057, -0.5161958932876587, -0.6735379099845886, -0.5200372934341431, 0.23047004640102386, 0.19631369411945343, -0.44016510248184204, 0.44837111234664917, 0.32157012820243835, 0.09034322202205658, 0.8042612671852112, -0.46633046865463257, -0.4665916860103607, 0.2918546497821808, -0.07415653020143509, 0.25622227787971497, 0.5739755034446716, 0.7395240664482117, -0.7121294736862183, -0.250688761472702, -0.02949751541018486, -0.459788978099823, -0.16092291474342346, 0.07144976407289505, 0.07944399118423462, -0.1960136443376541, 0.592670738697052, -0.3779057264328003, 0.35216081142425537, 0.50589519739151, -0.13523568212985992, 0.5948875546455383, -0.009901346638798714, 0.2111945003271103, -1.0048191547393799, 0.036052316427230835, -0.2786683738231659, -0.2178075909614563, -0.4200485944747925, -0.5570001006126404, -0.3057173788547516, -0.32160621881484985, -0.8412817716598511, 0.5331089496612549, -0.36528244614601135, -0.201242595911026, -0.08923940360546112, -0.1175122931599617, 0.30826374888420105, 1.0071184635162354, -0.23435071110725403, 0.9862277507781982, 0.780536949634552, -0.8573654294013977, 0.41249972581863403, 0.07502276450395584, -0.2674410045146942, 0.2511609196662903, -1.1027848720550537, 0.1689351350069046, 0.15409553050994873, 0.4024948477745056, -0.7519050240516663, -0.004813444800674915, 0.06647929549217224, -0.8645220994949341, 0.05280793458223343, -0.41209298372268677, 0.013031729497015476, -0.30973541736602783, -0.29091644287109375, 0.7320654392242432, 0.537167489528656, -0.663154661655426, 0.5684844851493835, 0.655551552772522, -0.050837770104408264, -0.8344873785972595, -0.9240349531173706, -0.19212555885314941, 0.025844238698482513, -0.44898512959480286, 0.7050734758377075, -0.058818671852350235, 0.11026739329099655, 0.141481414437294, -0.3180411159992218, -0.20966719090938568, -0.10976879298686981, 0.36714857816696167, -0.013916363939642906, -0.21319225430488586, -0.0581904798746109, 0.40631794929504395, 0.0471811443567276, 0.0832080990076065, -0.7541704773902893, 0.7405545115470886, -0.3994404971599579, -0.1626208871603012, -0.3463979959487915, 0.3298410177230835, 0.9489380717277527, -0.365352600812912, 0.13393191993236542, 0.8488308191299438, -0.14925521612167358, -0.6515276432037354, -0.41684091091156006, -0.10564597696065903, -0.6292046308517456, 0.24464647471904755, -0.3279494047164917, -0.6894048452377319, 0.5970590710639954, 0.12633858621120453, -0.05495554953813553, 0.5178448557853699, 0.5072860717773438, -0.2605476677417755, 0.3710967004299164, -0.032409120351076126, 0.4384117126464844, 0.7223271131515503, -1.1278040409088135, -0.08870846033096313, -1.0023524761199951, -0.3051545023918152, -0.48632174730300903, -0.16747398674488068, -0.23257037997245789, -0.3269093632698059, 0.6867530941963196, 0.10323140025138855, -0.12990236282348633, 0.5932641625404358, -0.7852753400802612, 0.34728530049324036, 0.6281962990760803, 0.11964099109172821, -0.26930856704711914, 0.3531213700771332, -0.06760551035404205, 0.34129205346107483, -0.7435307502746582, -0.08258060365915298, 1.1971333026885986, 0.28479456901550293, 0.46779584884643555, 0.15280479192733765, 0.5488405227661133, 0.6613163948059082, -0.4126845598220825, -0.8628183603286743, 0.4123570919036865, -0.22267310321331024, -0.47580015659332275, -0.51522296667099, -0.46930110454559326, -1.0244393348693848, 0.2909102737903595, -0.38092902302742004, -0.3270927667617798, 0.5964553356170654, 0.12241405248641968, -0.2500782907009125, 0.5976605415344238, -0.6032872200012207, 0.2762737572193146, 0.02737314999103546, -0.41209593415260315, 0.11854620277881622, -0.3369905650615692, -0.13289327919483185, 0.1981775015592575, -0.10235786437988281, -0.1426142454147339, 0.2903863191604614, 0.7454667687416077, -0.6324427723884583, 0.5787513852119446, -0.2872127592563629, -0.07928043603897095, 0.7971125245094299, -0.08455006033182144, 0.06942480057477951, 0.22274526953697205, -0.07628186047077179, 0.7746760249137878, 0.2540837228298187, -0.40898680686950684, -0.4724840223789215, 0.61612868309021, -0.8114914298057556, -0.3013227880001068, 0.06136750057339668, -0.4367985129356384, -0.12611085176467896, 0.08553527295589447, 0.7143601179122925, 0.8946176767349243, -0.09238064289093018, 0.3623485565185547, 0.379831463098526, -0.18099336326122284, 0.7276208400726318, -0.025420453399419785, 0.24156688153743744, -0.9849376678466797, 0.9683036804199219, 0.13244712352752686, 0.26063019037246704, 0.2017654925584793, 0.1157030388712883, -0.335793137550354, -0.5878986716270447, -0.2377529740333557, -0.11206036806106567, -0.41238388419151306, -0.2255580574274063, -0.5203542709350586, -0.40101248025894165, -0.5356819033622742, -0.15725325047969818, -1.1139442920684814, -0.34961998462677, -0.18272243440151215, 0.34495341777801514, 0.24607320129871368, 0.16643065214157104, -0.10650479048490524, 0.36921948194503784, -0.6965014934539795, 0.4929814040660858, 0.38478103280067444, 0.40282872319221497, 0.23580807447433472, -0.5365514755249023, -0.19993196427822113, 0.26254257559776306, -0.40470772981643677, -0.5081473588943481, 0.5861966013908386, -0.013579519465565681, 0.4945851266384125, 0.11853748559951782, 0.06039036437869072, 0.48164284229278564, -0.2612065374851227, 0.8675556778907776, 0.36467912793159485, -1.3916774988174438, 0.37140828371047974, -0.11331674456596375, 0.08361151814460754, 0.2163884937763214, 0.17775337398052216, -0.4145762324333191, -0.2798285484313965, -0.5053847432136536, -1.0457881689071655, 0.6656522154808044, 0.7362757921218872, 0.052460648119449615, 0.16872647404670715, 0.11411864310503006, 0.08461668342351913, 0.1669277846813202, -0.5651108026504517, -0.4504951238632202, -0.7628157734870911, -0.05294141173362732, -0.09753295034170151, 0.07428386062383652, -0.12284691631793976, -0.37327390909194946, 0.8028425574302673, 0.026717310771346092, 0.8297497630119324, 0.8511815667152405, 0.2718607485294342, 0.1157689243555069, 0.36601415276527405, 0.8753195405006409, 0.20597074925899506, -0.194786936044693, 0.16424961388111115, 0.28640177845954895, -0.7030817866325378, 0.5030696988105774, -0.18048518896102905, 0.04126867279410362, 0.17692705988883972, 0.4502626359462738, 1.0965678691864014, -0.185402974486351, -0.3342320919036865, 0.7901198863983154, -0.15036125481128693, -0.6184678673744202, -0.6753826141357422, 0.269960880279541, 0.12561124563217163, 0.2230120450258255, 0.4154093861579895, 0.5507143139839172, 0.053474269807338715, -0.2418873906135559, 0.15373200178146362, 0.12287484854459763, -0.30291345715522766, -0.394924134016037, 1.0686795711517334, 0.44667643308639526, -0.4749237895011902, 0.47559356689453125, -0.03950837254524231, -0.14610376954078674, 0.9221698641777039, 0.3174820840358734, 1.0524109601974487, -0.11795475333929062, -0.1902664750814438, 0.5292835831642151, 0.11443442106246948, -0.01965378038585186, 0.3076401352882385, -0.631353497505188, -0.5080126523971558, -0.34212908148765564, -0.6491051316261292, -0.04214419797062874, 0.16326822340488434, -0.6866016387939453, 0.3918479382991791, -0.45418885350227356, -0.6768797636032104, 0.15123625099658966, -0.5175080299377441, -0.6602115035057068, 0.1134674921631813, -0.1983724981546402, 0.7200542688369751, -0.6159988641738892, 1.0259743928909302, 0.035022661089897156, -0.2810989022254944, -0.6596716046333313, 0.02939746342599392, -0.18445803225040436, -0.34266576170921326, 0.3086168169975281, -0.31478986144065857, -0.5876902341842651, -0.031940024346113205, -0.435342937707901, -0.7016189694404602, 1.0264461040496826, 0.5297292470932007, -0.6500263214111328, 0.13448892533779144, -0.1359521746635437, 0.5572888851165771, -0.16895286738872528, 0.11575671285390854, 0.1225794106721878, 0.17750562727451324, 0.12882564961910248, -0.8784646391868591, -0.2972615957260132, -0.4830704629421234, 0.0132987629622221, 0.2298685759305954, -0.5023506879806519, 0.961711585521698, -0.291639506816864, -0.11891507357358932, -0.1643359214067459, 0.6173814535140991, -0.054118119180202484, 0.39650192856788635, 0.8344694375991821, 0.32109466195106506, 0.6529698967933655, -0.336423397064209, 0.863926351070404, -0.09393514692783356, 0.540181040763855, 0.8355275392532349, 0.37943315505981445, 0.6324673891067505, 0.753089427947998, -0.4198857545852661, 0.13859380781650543, 0.3895775377750397, -0.12742455303668976, 0.7147426605224609, 0.1262737661600113, -0.27020367980003357, -0.05672808736562729, -0.08455877751111984, -0.8006020188331604, 0.5904708504676819, 0.22459228336811066, -0.27804431319236755, 0.3560253381729126, 0.13109612464904785, -0.4332960247993469, -0.31880587339401245, -0.12230893969535828, 0.34055912494659424, 0.060888610780239105, -0.5312169194221497, 1.2500890493392944, -0.25304457545280457, 0.8982998132705688, -0.7381157875061035, -0.13048425316810608, -0.2141934186220169, -0.21705880761146545, -0.32324615120887756, -0.825355589389801, 0.5131675601005554, -0.2226679027080536, -0.2890789806842804, -0.09215541929006577, 0.17378903925418854, -0.5532857775688171, -0.021705420687794685, 0.4222537577152252, -0.01021706871688366, 0.02445867843925953, 0.02043197862803936, -0.3059248626232147, 0.21547220647335052, 0.1268337517976761, -0.21692031621932983, -0.2634727656841278, 0.3685212731361389, 0.27349695563316345, 0.5553864240646362, 1.076041340827942, 0.4887421131134033, 0.17842140793800354, 0.07333876192569733, 0.5630418658256531, -0.6661390662193298, -0.7279843688011169, -0.26038476824760437, 0.3311525285243988, 0.1479043960571289, -0.5663629174232483, 0.17540773749351501, 0.4620359539985657, 1.1528621912002563, -0.3569646179676056, 0.5269436836242676, 0.023248767480254173, -0.17366690933704376, -0.8491370677947998, 0.7737442255020142, -0.9013152122497559, 0.6612732410430908, -0.13164342939853668, -0.8366760015487671, 0.16174040734767914, 0.17363642156124115, 0.2057909369468689, 0.08542981743812561, 0.3750191032886505, 0.9547699689865112, -0.325756698846817, -0.032021258026361465, 0.25565680861473083, 0.22877244651317596, 0.4128047823905945, 0.6552760601043701, 0.6430240273475647, -0.8300046920776367, 0.9062988758087158, -0.6331266164779663, 0.29602110385894775, 0.04802953079342842, -0.37338197231292725, -0.4520794749259949, -0.9718791842460632, -0.16774828732013702, -0.5087087750434875, -0.02952359803020954, 0.7065979838371277, 0.9996524453163147, -0.7052557468414307, -0.33711791038513184, -0.2754276692867279, 0.11500011384487152, -0.6927737593650818, -0.29526835680007935, 0.4338814616203308, 0.08776446431875229, -1.0372883081436157, 0.6437214612960815, 0.21682801842689514, 0.4042624533176422, -0.07112672924995422, -0.42930418252944946, 0.12074515968561172, 0.16191715002059937, 0.5272705554962158, 0.30361825227737427, -0.9514322280883789, -0.08717368543148041, -0.10951453447341919, -0.09518624097108841, 0.44242897629737854, 0.7582899332046509, -0.6009650826454163, 0.7436082363128662, 0.7307628393173218, 0.3455815613269806, 1.1197952032089233, -0.4913872182369232, 0.377323180437088, -0.8451515436172485, 0.31878015398979187, 0.3486038148403168, 0.4066035747528076, 0.1587323248386383, -0.30394837260246277, 0.4572312533855438, 0.4413108825683594, -0.34075942635536194, -0.7488533854484558, -0.18820933997631073, -1.5903429985046387, -0.48021751642227173, 0.9993638396263123, 0.08780278265476227, -0.26843756437301636, -0.10391297936439514, -0.22396160662174225, 0.5936905741691589, -0.5508407354354858, 0.5502326488494873, 0.25611412525177, 0.11925731599330902, 0.4392639398574829, -0.5085365176200867, 0.47956031560897827, 0.21620333194732666, -0.41448670625686646, -0.05463837459683418, 0.21839454770088196, 0.5221737623214722, 0.2836078107357025, 0.7272281646728516, -0.35491082072257996, 0.4922579526901245, 0.6375228762626648, 0.605408251285553, -0.8475231528282166, -0.5601423978805542, -0.19800718128681183, 0.5838289856910706, -0.5422051548957825, -0.529542863368988 ]
hassanblend/HassanBlend1.5.1.2
hassanblend
"2023-07-01T22:25:00Z"
38,367
212
diffusers
[ "diffusers", "text-to-image", "license:creativeml-openrail-m", "endpoints_compatible", "has_space", "diffusers:StableDiffusionPipeline", "region:us" ]
text-to-image
"2023-01-05T23:57:46Z"
--- title: Hassanblend1.5.1.2 emoji: 📚 colorFrom: green colorTo: indigo sdk: gradio sdk_version: 3.11.0 app_file: app.py pinned: false thumbnail: https://i.imgur.com/PVThZvk.png license: creativeml-openrail-m tags: - text-to-image inference: true --- # HassanBlend1.5 I am hassan, I created HassansBlend, the latest version currently is 1.5.1.2 I continue to iterate and improve on this model over time. Feel free to check out our discord or rentry page for more examples with prompts and outputs generated. This blend is finetuned over SD1.5 with thousands of images included in the dataset it was trained with. Along with that there are some minor merges added in just to soften it up and increase the creativity. I have also some custom created content such as enhancement hypernetworks/embeddings etc for patreons or KoFi subscribers only on my pages below <b> Links </b><br> <b>Patreon</b> <a href="https://www.patreon.com/sd_hassan" target="_blank"><img src="https://i.imgur.com/sR32SqJ.jpg"></img></a> <b>KoFi</b> <a href="https://ko-fi.com/sdhassan" target="_blank"><img src="https://i.imgur.com/0P7CTN4.png"></img></a> <b>Discord</b> <a href="https://discord.gg/sdmodelers" target="_blank"><img src="https://i.imgur.com/HC1iHwg.png"></img></a> ### Quicklinks: * [Latest Setup](https://rentry.org/sdhassan#current-setup) * [HassanBlend Model Finetune Updates](https://rentry.org/sdhassan#hassanblend-finetuning-updates) * [Latest Patreon Posts](https://rentry.org/sdhassan#patreon-posts) * [Models](https://rentry.org/sdhassan#models) * [HassanBlend1.5](https://rentry.org/sdhassan#hassanblend15-downloads) * [HassanBlend1.4](https://rentry.org/sdhassan#hassanblend14-downloads) * [Prompts](https://rentry.org/sdhassan#prompts) * [Photorealistic Tips](https://rentry.org/sdhassan#tips-for-photorealistic-images) * [Embeddings](https://rentry.org/sdhassan#embeddings) * [Hypernetworks](https://rentry.org/sdhassan#hypernetworks) * [Wildcards](https://rentry.org/sdhassan#wildcards-i-made) * [MyTools](https://rentry.org/sdhassan#my-tools) * [Settings I use](https://rentry.org/sdhassan#settings) Model details and examples with sample prompts: https://rentry.org/sdhassan
[ -0.7090853452682495, -0.5143255591392517, 0.48483553528785706, 0.2866840064525604, -0.436246782541275, -0.0701986625790596, 0.13687847554683685, -0.2704877555370331, 0.5877929329872131, 0.7293165922164917, -1.0240898132324219, -0.8036163449287415, -0.49023404717445374, 0.010143771767616272, -0.1817624568939209, 0.8379259705543518, 0.08640605956315994, -0.13034451007843018, -0.08582232892513275, -0.2634810209274292, -0.4928235709667206, -0.10123492777347565, -0.7548370957374573, -0.2988244295120239, 0.6945717930793762, 0.3240285813808441, 1.0211904048919678, 0.6898160576820374, 0.42519882321357727, 0.3189980089664459, -0.03913312405347824, 0.037862006574869156, -0.698183536529541, 0.02091938629746437, -0.20583660900592804, 0.15381862223148346, -0.4631781578063965, -0.040500227361917496, 0.5266366004943848, 0.281349241733551, -0.09506699442863464, 0.39910635352134705, -0.2728427052497864, 1.0110855102539062, -0.5583526492118835, 0.034414757043123245, -0.10192229598760605, 0.09697769582271576, -0.10300809144973755, -0.0651310384273529, 0.08795518428087234, -0.46964335441589355, -0.03851529583334923, -0.8883441090583801, 0.15610451996326447, 0.23671218752861023, 0.9744300842285156, 0.22244898974895477, -0.4883447587490082, 0.06297221034765244, -0.6580384969711304, 0.8188512325286865, -0.7435420751571655, 0.6022360324859619, 0.364822119474411, 0.7299556732177734, -0.26138851046562195, -0.9237824082374573, -0.47547438740730286, 0.017294442281126976, 0.16765354573726654, 0.4215898811817169, -0.4764801561832428, 0.02892494946718216, 0.5109180212020874, 0.622748851776123, -0.6116036176681519, -0.31062647700309753, -0.5523996949195862, -0.010646098293364048, 0.7646914720535278, 0.141877219080925, 0.1551676094532013, -0.1597398817539215, -0.42995160818099976, -0.322369247674942, -0.5130902528762817, 0.2721976935863495, 0.8798446655273438, -0.018576502799987793, -0.6004619598388672, 0.7465857863426208, -0.2929987907409668, 0.7674278020858765, 0.15935906767845154, -0.1153372973203659, 0.19814248383045197, -0.27911025285720825, -0.19891999661922455, -0.1701444536447525, 0.7274245023727417, 0.5751417875289917, 0.13499045372009277, 0.3465885519981384, -0.2542474865913391, -0.12718793749809265, 0.34308427572250366, -1.002817988395691, -0.6095168590545654, 0.45950859785079956, -0.8895885348320007, -0.5707559585571289, 0.04942324757575989, -0.5985945463180542, -0.4662768244743347, -0.2226163148880005, 0.41033080220222473, -0.3731081485748291, -0.3877158761024475, 0.20844398438930511, -0.23879866302013397, 0.1518200933933258, 0.49606338143348694, -0.3722120225429535, 0.42953750491142273, 0.19443942606449127, 0.6731196045875549, 0.3010866045951843, 0.21511758863925934, -0.16733169555664062, -0.05197243392467499, -0.4847959578037262, 0.748724639415741, -0.292278528213501, -0.618868350982666, 0.16167159378528595, 0.29237720370292664, 0.2468755543231964, -0.5316128134727478, 0.6409422159194946, -0.6540802717208862, -0.26730313897132874, -0.4285699129104614, -0.6219275593757629, -0.39893701672554016, 0.057975590229034424, -0.9110798239707947, 0.8223283886909485, 0.290487140417099, -0.6335985064506531, -0.099178746342659, -0.7745615839958191, 0.04953095689415932, 0.12676526606082916, 0.002208051038905978, -0.5093685984611511, 0.0668712630867958, -0.06299775093793869, 0.29142725467681885, -0.04475932940840721, -0.07824482768774033, -0.6581596732139587, -0.45898669958114624, 0.30493879318237305, -0.22545412182807922, 0.8428985476493835, 0.4186231791973114, -0.06064083054661751, 0.05519142746925354, -1.105851650238037, 0.196021169424057, 0.4534405767917633, -0.053054023534059525, 0.22954772412776947, -0.18521380424499512, 0.5083780288696289, 0.4669130742549896, 0.08621268719434738, -0.5863083004951477, 0.18452593684196472, -0.07683368772268295, -0.07371126115322113, 0.8019542098045349, 0.3808443546295166, 0.1620362251996994, -0.8268635272979736, 0.8947911262512207, 0.13609813153743744, 0.1381710320711136, -0.18121150135993958, -0.50238436460495, -0.5667515993118286, -0.4378352463245392, 0.11914025992155075, 0.20051902532577515, -0.580254316329956, 0.26115813851356506, -0.05697081610560417, -0.61268150806427, -0.5533925890922546, 0.09754040092229843, 0.43334680795669556, 0.204956516623497, 0.2829975187778473, -0.4440925717353821, -0.5469328761100769, -1.2621901035308838, 0.1151120588183403, 0.10747107118368149, 0.10315721482038498, 0.48797839879989624, 0.43724241852760315, -0.25532758235931396, 0.7106441259384155, -0.6252645254135132, 0.07096879184246063, -0.06515815854072571, -0.08897299319505692, 0.46737685799598694, 0.8372230529785156, 0.7300285696983337, -1.0926474332809448, -0.49162018299102783, -0.10073913633823395, -0.5025849342346191, 0.169184610247612, 0.011304357089102268, -0.35800135135650635, -0.18632769584655762, 0.2671205699443817, -0.6398836970329285, 0.5642862915992737, 0.48140034079551697, -0.4094710052013397, 0.8729295134544373, 0.10345493257045746, 0.3053950369358063, -1.3448925018310547, 0.022693868726491928, 0.4143866300582886, -0.5091902613639832, -0.35700875520706177, 0.16711890697479248, -0.424338161945343, -0.3403193950653076, -0.6827390789985657, 0.7655342221260071, -0.24076731503009796, -0.03954429179430008, -0.06833568960428238, -0.33706018328666687, 0.04452778398990631, 0.6142378449440002, -0.2912903130054474, 0.5206245183944702, 0.6660574078559875, -0.4737361669540405, 0.6849305629730225, 0.43291038274765015, -0.37682703137397766, 0.5192991495132446, -1.148164987564087, 0.3064516484737396, -0.33940500020980835, 0.4790782928466797, -1.2386022806167603, -0.5278477072715759, 0.7167425751686096, -0.421273410320282, 0.28310656547546387, -0.4601021707057953, -0.5538324117660522, -0.4361613094806671, -0.40197086334228516, 0.6285707354545593, 0.7998170852661133, -0.5049720406532288, 0.32912787795066833, 0.1611575484275818, -0.03340177237987518, -0.3402519226074219, -0.23266389966011047, -0.11841767281293869, -0.014530603773891926, -0.6763768196105957, 0.5471757650375366, -0.2743249237537384, -0.29118821024894714, 0.41025933623313904, -0.18707206845283508, -0.25720423460006714, -0.2843356430530548, 0.6143237948417664, 0.27129265666007996, -0.2452336698770523, -0.21230202913284302, 0.07825222611427307, 0.135769322514534, -0.0662745013833046, -0.43449869751930237, 0.4684864580631256, -0.35470089316368103, -0.4974111020565033, -1.040900707244873, 0.34913328289985657, 0.6230183839797974, -0.019109239801764488, 0.5610897541046143, 0.8311015963554382, -0.3504086136817932, -0.06814397126436234, -0.5870481133460999, -0.09631633758544922, -0.5344330668449402, 0.1430889219045639, -0.2717786431312561, -0.8305484652519226, 0.7340390086174011, -0.27936244010925293, 0.21013067662715912, 0.6465128660202026, 0.3564516007900238, -0.4660022258758545, 1.3269424438476562, 0.52558833360672, 0.23694895207881927, 0.5650690793991089, -0.9057652354240417, 0.03854575380682945, -0.7102352380752563, -0.35447490215301514, -0.31292781233787537, -0.5277010798454285, -0.9109501838684082, -0.3905327618122101, 0.29321107268333435, 0.007997038774192333, -0.388347864151001, 0.5179417729377747, -0.31004902720451355, 0.499164342880249, 0.34057775139808655, 0.4595506489276886, 0.04610368609428406, 0.03047230653464794, -0.07101235538721085, -0.04988197982311249, -0.8060213923454285, -0.3522026836872101, 0.7626749277114868, 0.27154940366744995, 0.8011594414710999, 0.15846048295497894, 0.7897002100944519, 0.5333642363548279, -0.11634974181652069, -0.7730534672737122, 0.5843557715415955, 0.009682235307991505, -0.7001651525497437, 0.15876327455043793, -0.2310408353805542, -0.6924389004707336, 0.07878744602203369, -0.5115777850151062, -0.46370020508766174, 0.3803292512893677, 0.36851128935813904, -0.45281681418418884, 0.3242203891277313, -0.31353649497032166, 0.897988498210907, 0.1389419287443161, -0.5078742504119873, -0.23214156925678253, -0.7521286606788635, 0.391067773103714, 0.1584964096546173, 0.2296256273984909, -0.3469356298446655, 0.25734943151474, 0.5971407294273376, -0.6708028316497803, 0.8622851371765137, -0.05200795456767082, 0.0560804083943367, 0.5774986147880554, 0.048011213541030884, 0.38726359605789185, 0.054233450442552567, 0.036959052085876465, 0.01856338605284691, 0.12222730368375778, -0.8003554940223694, -0.5463067889213562, 0.8605313301086426, -0.830433189868927, -0.25231078267097473, -0.28863540291786194, -0.5494722127914429, -0.06476065516471863, 0.19439567625522614, 0.4240366518497467, 1.0431138277053833, -0.16474533081054688, 0.2952786386013031, 0.7634541392326355, -0.25526219606399536, 0.2571984827518463, -0.22556446492671967, -0.43279895186424255, -0.538292407989502, 1.052988052368164, -0.19161103665828705, 0.17634953558444977, -0.2259404957294464, 0.11840387433767319, -0.3753906190395355, -0.3425029218196869, -0.6071982979774475, 0.29030829668045044, -0.6707200407981873, -0.21687102317810059, -0.4524818956851959, -0.3920542299747467, -0.5141941905021667, -0.4393932819366455, -0.5595209002494812, -0.633553147315979, -0.33085575699806213, 0.04917077720165253, 0.5204811096191406, 0.9569787979125977, 0.024667538702487946, 0.3935770094394684, -0.679802656173706, 0.36442169547080994, 0.20623677968978882, 0.25907081365585327, -0.014780155383050442, -0.5243514180183411, -0.2551423907279968, 0.1311277598142624, -0.41510188579559326, -0.7686077952384949, 0.39215877652168274, 0.06665059179067612, 0.4617292582988739, 0.37224534153938293, -0.010912676341831684, 0.6866668462753296, -0.3264971673488617, 0.7680395841598511, 0.3927422761917114, -0.47060534358024597, 0.5702155828475952, -0.9351573586463928, 0.5657791495323181, 0.6865274310112, 0.7074780464172363, -0.5116016864776611, -0.2665180265903473, -0.9094944000244141, -0.6889302730560303, 0.387007474899292, 0.3642999827861786, 0.2823895514011383, 0.12800610065460205, 0.3578910827636719, -0.10405337065458298, 0.2697699964046478, -0.5389750003814697, -0.5265907049179077, -0.4232286214828491, -0.21722210943698883, 0.19940145313739777, -0.2093268781900406, -0.2134053111076355, -0.6602370142936707, 1.148108720779419, -0.015943964943289757, 0.345389723777771, 0.23301087319850922, 0.38838648796081543, -0.30920618772506714, -0.16657625138759613, 0.5069745779037476, 0.8591594099998474, -0.3256097733974457, -0.14290983974933624, -0.38205647468566895, -0.22969843447208405, 0.022458640858530998, 0.006464656908065081, -0.12432123720645905, 0.3080744743347168, 0.14992816746234894, 1.070817232131958, 0.4862271547317505, -0.44339719414711, 0.4671250283718109, -0.03879665210843086, -0.4176582098007202, -0.5525274872779846, 0.1757819801568985, 0.029166361317038536, 0.6248594522476196, 0.038424279540777206, 0.4395533502101898, 0.34703391790390015, -0.3370727002620697, 0.15559934079647064, 0.19673776626586914, -0.5499729514122009, -0.4457992613315582, 0.5916240215301514, -0.12407154589891434, -0.28135186433792114, 0.36626216769218445, -0.5269967913627625, -0.3552262485027313, 0.9109607338905334, 0.7317416071891785, 0.844550371170044, 0.1232072114944458, 0.6172406077384949, 0.7789282202720642, -0.17641067504882812, -0.06122123450040817, 0.6036949753761292, -0.08607719093561172, -0.40597933530807495, -0.15751151740550995, -0.7222933173179626, -0.5401768684387207, 0.2400570511817932, -0.6832002997398376, 0.5200621485710144, -0.8442505598068237, -0.2968582510948181, 0.24053262174129486, 0.09951446205377579, -0.7624776363372803, 0.2710626721382141, 0.04218294844031334, 0.9882455468177795, -0.7293941378593445, 0.5850120186805725, 0.9987819194793701, -0.3344506025314331, -0.8618317246437073, -0.1700551062822342, 0.4097759425640106, -0.46839454770088196, 0.39125123620033264, -0.06213974952697754, -0.20209266245365143, 0.523307204246521, -1.109885811805725, -1.0077176094055176, 1.0407675504684448, 0.028441226109862328, -0.381425142288208, 0.4390362799167633, -0.33814144134521484, 0.3197329640388489, -0.5449916124343872, -0.22769570350646973, 0.0975085124373436, 0.36891332268714905, 0.7508034706115723, -0.3216829001903534, 0.049670133739709854, -0.581412672996521, 0.3914230167865753, 0.13245464861392975, -0.6285954713821411, 0.7064743638038635, -0.2684002220630646, -0.039282362908124924, 0.5627542734146118, 0.6599988341331482, 0.377734899520874, 0.3394305408000946, 0.6627931594848633, 0.917324423789978, 0.350628137588501, 0.15564484894275665, 1.2964515686035156, -0.19349798560142517, 0.5358979105949402, 0.9248390793800354, 0.11489327251911163, 0.3479875922203064, 0.2148001492023468, -0.2166692614555359, 0.6080039739608765, 0.8436726927757263, -0.3089686334133148, 0.7376293540000916, 0.3160575330257416, -0.44914957880973816, -0.3549951910972595, -0.6012789607048035, -0.5107648968696594, 0.20646673440933228, -0.06550082564353943, -0.21206720173358917, -0.25594353675842285, -0.092152900993824, -0.14917902648448944, -0.0945533961057663, -0.29919174313545227, 0.44010305404663086, 0.11504773795604706, -0.14062468707561493, 0.595151424407959, -0.09208997339010239, 0.35764455795288086, -0.6011444330215454, -0.4264736473560333, 0.09091835469007492, 0.023367546498775482, -0.33527690172195435, -0.653897225856781, 0.14191940426826477, -0.1519424468278885, -0.05587514862418175, -0.3098594844341278, 1.1157886981964111, -0.34607934951782227, -0.8473499417304993, 0.06093509867787361, 0.2956686317920685, 0.1821041703224182, 0.168679878115654, -0.9469268918037415, 0.4735199213027954, -0.12893931567668915, -0.1486806571483612, -0.02946014329791069, -0.06150411441922188, 0.11098025739192963, 0.43703314661979675, 0.8952308893203735, 0.12674300372600555, -0.06172845512628555, 0.18912287056446075, 0.9609684944152832, -0.46317020058631897, -0.5010209679603577, -0.5860034823417664, 0.4560110867023468, -0.19624179601669312, -0.4793403744697571, 0.6370488405227661, 0.5717061161994934, 0.9919658303260803, -0.3730608820915222, 0.579805850982666, -0.13619008660316467, 0.07833828032016754, -0.2649160623550415, 0.8282353281974792, -0.9250596761703491, -0.275119423866272, -0.5058577656745911, -1.0362573862075806, 0.044039711356163025, 0.6597830057144165, 0.26296067237854004, 0.1831703931093216, 0.2452189326286316, 0.8523448705673218, -0.21457251906394958, 0.21565423905849457, 0.3138253688812256, 0.1274283230304718, 0.07630658894777298, 0.0860917791724205, 0.8845168352127075, -0.7112448811531067, 0.08855123817920685, -0.8224123120307922, 0.015196038410067558, -0.2670266926288605, -0.7285633683204651, -0.6895561218261719, -0.7654008865356445, -0.548507034778595, -0.5194005370140076, 0.22119535505771637, 1.295100450515747, 1.0603986978530884, -0.7347174286842346, -0.3133388161659241, 0.06543639302253723, 0.19412070512771606, -0.17207370698451996, -0.1608903557062149, -0.08141843229532242, 0.27237468957901, -0.6057220697402954, 0.28207311034202576, 0.1640777438879013, 0.370516836643219, 0.019552081823349, -0.07170846313238144, -0.4026249349117279, 0.08163778483867645, 0.5154126882553101, 0.5368896126747131, -0.44186004996299744, -0.32466140389442444, -0.06330174207687378, 0.0011875963537022471, 0.004901226609945297, 0.6139649152755737, -0.5036657452583313, 0.24021252989768982, 0.4425757825374603, 0.5720106959342957, 0.7295860052108765, 0.16825106739997864, 0.26275742053985596, -0.6122468709945679, 0.013131807558238506, 0.1908629685640335, 0.31034377217292786, 0.2395237535238266, -0.2818543314933777, 0.5039753317832947, 0.4588170349597931, -0.5062094330787659, -0.508428692817688, 0.37254995107650757, -1.3998521566390991, 0.005232126452028751, 0.9135937690734863, 0.04747018590569496, -0.32753437757492065, 0.046696752309799194, -0.3832859396934509, 0.23621708154678345, -0.3821755349636078, 0.37482455372810364, 0.6121495962142944, -0.0872713103890419, -0.08027078211307526, -0.8489694595336914, 0.32694879174232483, 0.20511551201343536, -0.5495780110359192, -0.50041663646698, 0.9782788157463074, 0.2898843288421631, 0.10999128222465515, 0.7155839800834656, -0.34541404247283936, 0.5132109522819519, -0.0721234604716301, 0.024057742208242416, -0.3151605427265167, -0.40219512581825256, -0.469600647687912, -0.1509721279144287, -0.21993879973888397, -0.38770008087158203 ]