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
facebook/wav2vec2-lv-60-espeak-cv-ft
facebook
"2023-10-31T13:13:45Z"
14,222
9
transformers
[ "transformers", "pytorch", "wav2vec2", "automatic-speech-recognition", "speech", "audio", "phoneme-recognition", "multilingual", "dataset:common_voice", "arxiv:2109.11680", "license:apache-2.0", "endpoints_compatible", "has_space", "region:us" ]
automatic-speech-recognition
"2022-03-02T23:29:05Z"
--- language: multilingual datasets: - common_voice tags: - speech - audio - automatic-speech-recognition - phoneme-recognition widget: - example_title: Librispeech sample 1 src: https://cdn-media.huggingface.co/speech_samples/sample1.flac - example_title: Librispeech sample 2 src: https://cdn-media.huggingface.co/speech_samples/sample2.flac license: apache-2.0 --- # Wav2Vec2-Large-LV60 finetuned on multi-lingual Common Voice This checkpoint leverages the pretrained checkpoint [wav2vec2-large-lv60](https://huggingface.co/facebook/wav2vec2-large-lv60) and is fine-tuned on [CommonVoice](https://huggingface.co/datasets/common_voice) to recognize phonetic labels in multiple languages. When using the model make sure that your speech input is sampled at 16kHz. Note that the model outputs a string of phonetic labels. A dictionary mapping phonetic labels to words has to be used to map the phonetic output labels to output words. [Paper: Simple and Effective Zero-shot Cross-lingual Phoneme Recognition](https://arxiv.org/abs/2109.11680) Authors: Qiantong Xu, Alexei Baevski, Michael Auli **Abstract** Recent progress in self-training, self-supervised pretraining and unsupervised learning enabled well performing speech recognition systems without any labeled data. However, in many cases there is labeled data available for related languages which is not utilized by these methods. This paper extends previous work on zero-shot cross-lingual transfer learning by fine-tuning a multilingually pretrained wav2vec 2.0 model to transcribe unseen languages. This is done by mapping phonemes of the training languages to the target language using articulatory features. Experiments show that this simple method significantly outperforms prior work which introduced task-specific architectures and used only part of a monolingually pretrained model. The original model can be found under https://github.com/pytorch/fairseq/tree/master/examples/wav2vec#wav2vec-20. # Usage To transcribe audio files the model can be used as a standalone acoustic model as follows: ```python from transformers import Wav2Vec2Processor, Wav2Vec2ForCTC from datasets import load_dataset import torch # load model and processor processor = Wav2Vec2Processor.from_pretrained("facebook/wav2vec2-lv-60-espeak-cv-ft") model = Wav2Vec2ForCTC.from_pretrained("facebook/wav2vec2-lv-60-espeak-cv-ft") # load dummy dataset and read soundfiles ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation") # tokenize input_values = processor(ds[0]["audio"]["array"], return_tensors="pt").input_values # retrieve logits with torch.no_grad(): logits = model(input_values).logits # take argmax and decode predicted_ids = torch.argmax(logits, dim=-1) transcription = processor.batch_decode(predicted_ids) # => should give ['m ɪ s t ɚ k w ɪ l t ɚ ɹ ɪ z ð ɪ ɐ p ɑː s əl ʌ v ð ə m ɪ d əl k l æ s ᵻ z æ n d w iː ɑːɹ ɡ l æ d t ə w ɛ l k ə m h ɪ z ɡ ɑː s p əl'] ```
[ -0.14775441586971283, -0.5315852761268616, 0.1842302829027176, 0.2527342438697815, -0.15901324152946472, 0.012305190786719322, -0.2218848019838333, -0.6642515659332275, 0.1058766096830368, 0.3531480133533478, -0.711320698261261, -0.6452347040176392, -0.5289379954338074, -0.16705888509750366, -0.2410815805196762, 0.8378419876098633, 0.07256310433149338, 0.20969900488853455, 0.4012013375759125, -0.18837852776050568, -0.6084452271461487, -0.4753628075122833, -0.6898559331893921, -0.3762863278388977, 0.45552965998649597, 0.3995916545391083, 0.09656992554664612, 0.31291455030441284, 0.1298149675130844, 0.23482167720794678, 0.011236629448831081, -0.10850656777620316, -0.5550693273544312, -0.029087230563163757, 0.10738523304462433, -0.36128759384155273, -0.4073652923107147, 0.14794735610485077, 0.5564394593238831, 0.5532639026641846, -0.056215569376945496, 0.2597626745700836, 0.007672675885260105, 0.26041319966316223, -0.39023685455322266, 0.12143144756555557, -0.6919493079185486, 0.03544391691684723, -0.25658857822418213, -0.1698106974363327, -0.4787127375602722, -0.09253057837486267, 0.10401183366775513, -0.6905806064605713, 0.167120561003685, -0.27284514904022217, 0.8283944725990295, 0.07859030365943909, -0.453544944524765, -0.47050637006759644, -0.8383041620254517, 1.073442816734314, -0.5834729075431824, 0.7630974054336548, 0.38614964485168457, 0.19004660844802856, 0.030087674036622047, -0.8833603262901306, -0.34900832176208496, -0.005729420110583305, 0.3526497185230255, 0.42596837878227234, -0.2623130679130554, 0.1798872947692871, 0.22404909133911133, 0.18899407982826233, -0.7367348074913025, 0.27745407819747925, -0.8677296042442322, -0.6358132362365723, 0.3916507661342621, -0.2372180074453354, 0.2555902302265167, 0.028574474155902863, -0.3686894178390503, -0.3711737096309662, -0.4932696521282196, 0.3734031617641449, 0.3609904646873474, 0.3496449291706085, -0.3717058002948761, 0.5226640105247498, -0.16561582684516907, 0.7385072708129883, 0.03396289050579071, -0.3530096709728241, 0.7263275384902954, -0.3305090665817261, -0.13853484392166138, 0.5208470821380615, 0.6682493686676025, 0.18994973599910736, 0.3725550174713135, -0.037481434643268585, 0.0019920584745705128, 0.11923233419656754, -0.22042447328567505, -0.8711721301078796, -0.3817378282546997, 0.39682796597480774, -0.23956230282783508, -0.05165950208902359, -0.0820477306842804, -0.3461114764213562, 0.17509034276008606, -0.300018846988678, 0.7727952003479004, -0.4855920672416687, -0.43013712763786316, 0.2498888224363327, -0.22538608312606812, 0.30726903676986694, 0.111513651907444, -0.86463463306427, -0.0003167365211993456, 0.3289715349674225, 0.8829582929611206, 0.13899360597133636, -0.4474543035030365, -0.7873631119728088, 0.01964961551129818, -0.295988529920578, 0.4552224576473236, -0.23960846662521362, -0.42740315198898315, -0.1200205385684967, 0.13023558259010315, -0.17335985600948334, -0.5298521518707275, 0.4125877022743225, -0.2772636413574219, 0.22360508143901825, -0.18196651339530945, -0.4750083088874817, -0.21943050622940063, -0.21808114647865295, -0.4798075258731842, 1.1666455268859863, 0.009905090555548668, -0.50628662109375, 0.2700701951980591, -0.36187759041786194, -0.6709824800491333, -0.1387217491865158, -0.008329379372298717, -0.2943890392780304, -0.1109621599316597, 0.12233013659715652, 0.4511488378047943, -0.08019405603408813, -0.07295919954776764, -0.20715200901031494, -0.41689443588256836, 0.17920972406864166, -0.5231776237487793, 1.1539592742919922, 0.46180614829063416, -0.5109755396842957, 0.04100266471505165, -0.9171062111854553, 0.35732153058052063, -0.1661318838596344, -0.5253937244415283, 0.053855814039707184, -0.5550186038017273, 0.2866707742214203, 0.3170085549354553, 0.1748601347208023, -0.7445107102394104, -0.0018007976468652487, -0.4488220512866974, 0.5771486759185791, 0.3921598792076111, -0.16415944695472717, 0.41722989082336426, -0.20608174800872803, 0.252755343914032, -0.11067666858434677, -0.15189136564731598, 0.04664703831076622, -0.4317110478878021, -0.6070302128791809, -0.5369109511375427, 0.4133560061454773, 0.7386333346366882, -0.5314090847969055, 0.5200394988059998, -0.045289047062397, -0.6840933561325073, -0.8559028506278992, 0.05242551490664482, 0.3984443247318268, 0.5098608732223511, 0.594279944896698, -0.4592076241970062, -0.6627478003501892, -0.5909401178359985, -0.2623349130153656, -0.09485144168138504, -0.2570001482963562, 0.31194788217544556, 0.09601012617349625, -0.23577998578548431, 0.4719603657722473, -0.08422088623046875, -0.5051149725914001, -0.21567699313163757, 0.4235888719558716, 0.3876377046108246, 0.6301807165145874, 0.38073205947875977, -0.4302639663219452, -0.3917253315448761, -0.03081861138343811, -0.5863161683082581, -0.21536919474601746, -0.1809462457895279, -0.08868147432804108, 0.24649587273597717, 0.525058388710022, -0.44120848178863525, 0.17193998396396637, 0.5688715577125549, -0.18064726889133453, 0.33156368136405945, -0.13244512677192688, 0.19526603817939758, -0.9028801321983337, 0.11410950124263763, -0.14387433230876923, -0.211251899600029, -0.7708390355110168, -0.49025487899780273, 0.04323035851120949, -0.09483526647090912, -0.8218749761581421, 0.5323898792266846, -0.7555417418479919, -0.1933266520500183, -0.13748644292354584, 0.003668473567813635, -0.10325738787651062, 0.6629062294960022, 0.32771721482276917, 0.47474128007888794, 0.8071495890617371, -0.5537543296813965, 0.5574997663497925, 0.08588097989559174, -0.4371725022792816, 0.42736688256263733, -0.7386430501937866, 0.38623106479644775, 0.2005496323108673, 0.2821069359779358, -1.0654698610305786, -0.03529568761587143, 0.21707622706890106, -0.8297215104103088, 0.4096938967704773, -0.36419376730918884, -0.1393505036830902, -0.20588643848896027, -0.060826972126960754, 0.6999058127403259, 0.6723365783691406, -0.6008014678955078, 0.4228360950946808, 0.34102967381477356, 0.041747260838747025, -0.6047724485397339, -1.0274323225021362, -0.146573007106781, -0.06956267356872559, -0.6593608260154724, 0.19111193716526031, 0.002048565773293376, 0.19653615355491638, -0.31288257241249084, -0.23293814063072205, -0.14247268438339233, -0.20076774060726166, 0.2976487874984741, 0.24802826344966888, -0.2211160957813263, 0.03247876092791557, -0.07665835320949554, -0.20602409541606903, -0.0676242783665657, -0.586510956287384, 0.642839252948761, 0.06852465867996216, -0.22248683869838715, -0.6331148743629456, 0.17755402624607086, 0.6093787550926208, -0.3521263599395752, 0.2325727492570877, 1.191902756690979, -0.43698960542678833, -0.02919657528400421, -0.5614482760429382, -0.13919296860694885, -0.4629227817058563, 0.7007012963294983, -0.5186909437179565, -0.6898636221885681, 0.5049018263816833, -0.03688628226518631, 0.07704386860132217, 0.50602787733078, 0.6675258874893188, -0.10291000455617905, 0.7748143076896667, 0.2643435597419739, -0.13258925080299377, 0.4782952070236206, -0.621110200881958, 0.07366441190242767, -0.7396464347839355, -0.42805808782577515, -0.42652419209480286, -0.25066009163856506, -0.46970033645629883, -0.5448299050331116, 0.31042516231536865, 0.043478772044181824, -0.0438217893242836, 0.4306277930736542, -0.6167089939117432, 0.33703768253326416, 0.7320675849914551, 0.10950016975402832, 0.0015804196009412408, 0.21412895619869232, -0.10736130177974701, -0.12905669212341309, -0.6015125513076782, -0.055334337055683136, 1.124258041381836, 0.43123000860214233, 0.7629046440124512, -0.12329204380512238, 0.8043415546417236, -0.02495558187365532, -0.39684632420539856, -0.9268215894699097, 0.3425005376338959, -0.18325753509998322, -0.7520452737808228, -0.4548979699611664, -0.31110838055610657, -0.94036865234375, 0.18344902992248535, -0.2671046257019043, -0.7843575477600098, 0.31696557998657227, -0.03362759202718735, -0.38337624073028564, 0.26030299067497253, -0.6669769287109375, 0.8714280724525452, -0.32554540038108826, -0.20871208608150482, -0.25295817852020264, -0.7357302308082581, 0.21864591538906097, -0.07721635699272156, 0.10189362615346909, -0.22110512852668762, 0.4485759139060974, 1.0293489694595337, -0.2508903741836548, 0.7539582252502441, -0.3093072772026062, -0.17176176607608795, 0.4743717610836029, -0.04268386960029602, 0.42277923226356506, -0.1443154215812683, -0.07958067953586578, 0.535366415977478, 0.2842445373535156, -0.39957088232040405, -0.17933695018291473, 0.837880551815033, -1.0048112869262695, -0.028643421828746796, -0.23516684770584106, -0.44212159514427185, -0.09578702598810196, 0.32264983654022217, 0.8729991912841797, 0.7488359212875366, -0.18573540449142456, 0.2801971435546875, 0.6880832314491272, -0.22657254338264465, 0.3776240348815918, 0.40095266699790955, 0.023895272985100746, -0.40808388590812683, 1.0822981595993042, 0.4167512357234955, 0.3638577163219452, 0.19319601356983185, -0.023043349385261536, -0.49320563673973083, -0.44806531071662903, -0.40005800127983093, 0.20301151275634766, -0.6453355550765991, -0.07352981716394424, -0.7050264477729797, -0.32786014676094055, -0.7418637275695801, -0.033132556825876236, -0.7158869504928589, -0.5569625496864319, -0.4061819016933441, 0.031286947429180145, 0.2978484034538269, 0.6751142740249634, -0.5999726057052612, 0.2070700079202652, -0.7395665645599365, 0.6283817291259766, 0.37929555773735046, 0.053562287241220474, -0.11853610724210739, -0.9072285294532776, -0.3086588978767395, 0.32645827531814575, 0.04939356446266174, -0.8399609923362732, 0.3851364850997925, 0.15841281414031982, 0.42873382568359375, 0.18063674867153168, 0.04335397109389305, 0.6987183690071106, -0.38086050748825073, 0.5692036747932434, 0.44360119104385376, -1.1186646223068237, 0.5207715630531311, -0.19026584923267365, 0.38060078024864197, 0.4569721221923828, 0.22491148114204407, -0.7480660080909729, -0.1999809741973877, -0.4416479170322418, -1.0136089324951172, 0.8747246861457825, 0.2358570247888565, -0.030960751697421074, 0.31486809253692627, 0.14896713197231293, 0.08527147769927979, -0.08753517270088196, -0.7321882247924805, -0.40919047594070435, -0.39580658078193665, -0.20789748430252075, -0.15117886662483215, -0.21574197709560394, -0.03174430504441261, -0.4879150688648224, 0.850385844707489, 0.220234677195549, 0.3345613479614258, 0.39300334453582764, -0.20374861359596252, -0.040839750319719315, 0.19299541413784027, 0.5520748496055603, 0.19029664993286133, -0.32320985198020935, 0.15828536450862885, 0.3524729907512665, -0.6266869306564331, 0.30472326278686523, 0.20144668221473694, 0.155237078666687, 0.24814452230930328, 0.5013823509216309, 0.9574179649353027, 0.15173602104187012, -0.26236969232559204, 0.40035340189933777, 0.025768237188458443, -0.5305634140968323, -0.5256053805351257, -0.04915297031402588, 0.20874114334583282, 0.306072473526001, 0.3155720829963684, 0.034117747098207474, 0.06172837316989899, -0.5870877504348755, 0.2384379655122757, 0.3187907338142395, -0.500307559967041, -0.3724534213542938, 0.8358147144317627, 0.25317975878715515, -0.23014748096466064, 0.7140846252441406, 0.034394409507513046, -0.33372941613197327, 0.6380471587181091, 0.47280004620552063, 0.8781329393386841, -0.3808477520942688, -0.07417071610689163, 0.6501207947731018, 0.27897530794143677, -0.1846533864736557, 0.38813310861587524, -0.18582206964492798, -0.6647218465805054, -0.34316718578338623, -0.4774235188961029, -0.14900508522987366, 0.29060161113739014, -0.7921020984649658, 0.5056757926940918, -0.34127315878868103, -0.06939168274402618, 0.21312573552131653, 0.026852546259760857, -0.910244882106781, 0.3230280578136444, 0.3249717354774475, 0.6231556534767151, -0.9017897248268127, 1.3123940229415894, 0.2829861640930176, -0.23022228479385376, -1.179045557975769, -0.2713020443916321, 0.07233158499002457, -1.009466290473938, 0.5787453651428223, 0.24491244554519653, -0.4490193724632263, 0.21579910814762115, -0.41471561789512634, -0.9295843243598938, 1.09568190574646, 0.36690959334373474, -0.8016306161880493, 0.17077606916427612, 0.1266808956861496, 0.37508538365364075, -0.15588267147541046, 0.2841360867023468, 0.6273306012153625, 0.5177622437477112, 0.4209541082382202, -1.2174614667892456, -0.14848342537879944, -0.11017865687608719, -0.4215681850910187, -0.18853597342967987, -0.5305317044258118, 0.8496209979057312, -0.35306674242019653, -0.2872079908847809, 0.06311054527759552, 0.6394238471984863, 0.2904682457447052, 0.3361799716949463, 0.4709344804286957, 0.5105926394462585, 0.9229570627212524, -0.06941934674978256, 0.5468059182167053, -0.22715947031974792, 0.31269654631614685, 1.0664749145507812, -0.10929430276155472, 0.7650814056396484, 0.3950284421443939, -0.03951803222298622, 0.19404850900173187, 0.6626815795898438, -0.055519357323646545, 0.6904118657112122, 0.16047698259353638, -0.2311747968196869, -0.29175832867622375, -0.0390283428132534, -0.6700237989425659, 0.8449001908302307, 0.15097540616989136, -0.10093164443969727, 0.0494135320186615, 0.11610177159309387, -0.11656855046749115, -0.398017942905426, -0.17157717049121857, 0.6731685400009155, 0.14333605766296387, -0.34035444259643555, 0.9868299961090088, -0.027612850069999695, 0.9575749039649963, -0.748146116733551, -0.06563323736190796, 0.04323294013738632, 0.19548079371452332, -0.3113439679145813, -0.6127933859825134, 0.11262243986129761, -0.17093919217586517, -0.10363966971635818, -0.18960300087928772, 0.5960649251937866, -0.9205997586250305, -0.561367928981781, 0.6613645553588867, 0.34310564398765564, 0.5444757342338562, -0.04832031577825546, -0.5458019375801086, 0.1814478039741516, 0.360038161277771, -0.20834052562713623, 0.13885387778282166, 0.39172083139419556, 0.2872231602668762, 0.28960996866226196, 0.6605637073516846, 0.3250386416912079, 0.27456727623939514, 0.19255459308624268, 0.41232824325561523, -0.6340032815933228, -0.5229448080062866, -0.4466480612754822, 0.3983347415924072, 0.31624069809913635, -0.3769880533218384, 0.5653514862060547, 0.6760876178741455, 1.1880468130111694, -0.10020685195922852, 0.8325373530387878, 0.1183532178401947, 0.6568201780319214, -0.7421393990516663, 0.7264277935028076, -0.6413471102714539, 0.12819959223270416, -0.21829475462436676, -0.8210171461105347, -0.21194897592067719, 0.7688509225845337, -0.021036295220255852, 0.1767594814300537, 0.4326865077018738, 0.938628077507019, -0.16544486582279205, -0.31123045086860657, 0.5075997710227966, 0.19972550868988037, 0.13848578929901123, 0.8390955328941345, 0.5972108244895935, -0.7319338917732239, 0.9244299530982971, -0.37592360377311707, -0.11762552708387375, -0.06993503123521805, -0.36325526237487793, -0.8371396064758301, -0.6692719459533691, -0.36388835310935974, -0.4499415457248688, 0.034156858921051025, 0.7601577639579773, 0.870840847492218, -0.8304471969604492, -0.4467312693595886, 0.17199599742889404, -0.10201229155063629, -0.26632654666900635, -0.22011007368564606, 0.38694849610328674, -0.042877234518527985, -0.8897800445556641, 0.7295928001403809, 0.06405482441186905, 0.29175233840942383, 0.03732563182711601, -0.257442831993103, -0.2091747671365738, -0.07878553867340088, 0.3330250382423401, 0.5931121706962585, -0.6567083597183228, -0.27850669622421265, 0.038588497787714005, -0.15235675871372223, 0.12486182898283005, 0.6584997773170471, -0.5643347501754761, 0.6039428114891052, 0.5079914331436157, 0.1948990821838379, 0.9076036214828491, -0.46485185623168945, 0.38165798783302307, -0.7649011015892029, 0.5051088929176331, 0.08366767317056656, 0.3398241400718689, 0.29998359084129333, -0.3124213218688965, 0.2686693072319031, 0.3061978220939636, -0.4579255282878876, -0.7669181227684021, 0.09205347299575806, -1.277475118637085, -0.33906641602516174, 1.3254985809326172, 0.002688818145543337, -0.02422679401934147, -0.22059214115142822, -0.32939621806144714, 0.7305441498756409, -0.37416157126426697, 0.39161357283592224, 0.4952365458011627, -0.09268809109926224, -0.02837020345032215, -0.4877805709838867, 0.4595039486885071, 0.556071400642395, -0.3096935451030731, 0.07018767297267914, 0.4724653363227844, 0.6923099756240845, -0.018707573413848877, 0.9724167585372925, -0.0765061303973198, 0.4072137176990509, 0.19925884902477264, 0.5590869188308716, -0.13716460764408112, -0.45819029211997986, -0.6333826184272766, -0.06969267129898071, -0.0669814795255661, -0.7909489870071411 ]
cardiffnlp/tweet-topic-21-multi
cardiffnlp
"2023-05-28T04:56:09Z"
14,152
48
transformers
[ "transformers", "pytorch", "tf", "roberta", "text-classification", "en", "dataset:cardiffnlp/tweet_topic_multi", "arxiv:2209.09824", "license:mit", "endpoints_compatible", "has_space", "region:us" ]
text-classification
"2022-06-06T14:52:42Z"
--- language: en widget: - text: It is great to see athletes promoting awareness for climate change. datasets: - cardiffnlp/tweet_topic_multi license: mit metrics: - f1 - accuracy pipeline_tag: text-classification --- # tweet-topic-21-multi This model is based on a [TimeLMs](https://github.com/cardiffnlp/timelms) language model trained on ~124M tweets from January 2018 to December 2021 (see [here](https://huggingface.co/cardiffnlp/twitter-roberta-base-2021-124m)), and finetuned for multi-label topic classification on a corpus of 11,267 [tweets](https://huggingface.co/datasets/cardiffnlp/tweet_topic_multi). This model is suitable for English. - Reference Paper: [TweetTopic](https://arxiv.org/abs/2209.09824) (COLING 2022). <b>Labels</b>: | <span style="font-weight:normal">0: arts_&_culture</span> | <span style="font-weight:normal">5: fashion_&_style</span> | <span style="font-weight:normal">10: learning_&_educational</span> | <span style="font-weight:normal">15: science_&_technology</span> | |-----------------------------|---------------------|----------------------------|--------------------------| | 1: business_&_entrepreneurs | 6: film_tv_&_video | 11: music | 16: sports | | 2: celebrity_&_pop_culture | 7: fitness_&_health | 12: news_&_social_concern | 17: travel_&_adventure | | 3: diaries_&_daily_life | 8: food_&_dining | 13: other_hobbies | 18: youth_&_student_life | | 4: family | 9: gaming | 14: relationships | | ## Full classification example ```python from transformers import AutoModelForSequenceClassification, TFAutoModelForSequenceClassification from transformers import AutoTokenizer import numpy as np from scipy.special import expit MODEL = f"cardiffnlp/tweet-topic-21-multi" tokenizer = AutoTokenizer.from_pretrained(MODEL) # PT model = AutoModelForSequenceClassification.from_pretrained(MODEL) class_mapping = model.config.id2label text = "It is great to see athletes promoting awareness for climate change." tokens = tokenizer(text, return_tensors='pt') output = model(**tokens) scores = output[0][0].detach().numpy() scores = expit(scores) predictions = (scores >= 0.5) * 1 # TF #tf_model = TFAutoModelForSequenceClassification.from_pretrained(MODEL) #class_mapping = tf_model.config.id2label #text = "It is great to see athletes promoting awareness for climate change." #tokens = tokenizer(text, return_tensors='tf') #output = tf_model(**tokens) #scores = output[0][0] #scores = expit(scores) #predictions = (scores >= 0.5) * 1 # Map to classes for i in range(len(predictions)): if predictions[i]: print(class_mapping[i]) ``` Output: ``` news_&_social_concern sports ``` ### BibTeX entry and citation info Please cite the [reference paper](https://aclanthology.org/2022.coling-1.299/) if you use this model. ```bibtex @inproceedings{antypas-etal-2022-twitter, title = "{T}witter Topic Classification", author = "Antypas, Dimosthenis and Ushio, Asahi and Camacho-Collados, Jose and Silva, Vitor and Neves, Leonardo 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", url = "https://aclanthology.org/2022.coling-1.299", pages = "3386--3400" } ```
[ -0.38387078046798706, -0.5604097843170166, 0.11890225857496262, 0.2663693428039551, -0.23456910252571106, 0.3360549509525299, -0.2300003170967102, -0.28756338357925415, 0.316925585269928, 0.07241887599229813, -0.6069062352180481, -0.6527564525604248, -0.7722732424736023, -0.08865600824356079, -0.33787238597869873, 0.920592188835144, -0.056087471544742584, -0.06020861119031906, 0.2602899968624115, -0.14106030762195587, -0.26265615224838257, -0.5151446461677551, -0.6463637351989746, -0.3268478214740753, 0.301226407289505, 0.3165048360824585, 0.32613733410835266, 0.5570236444473267, 0.33423709869384766, 0.3792158365249634, -0.024108948186039925, 0.0059972801245749, -0.2687952518463135, 0.005896039307117462, 0.034638840705156326, -0.0651126429438591, -0.3535025417804718, 0.1916922926902771, 0.6638808846473694, 0.5563940405845642, 0.14232885837554932, 0.3690457046031952, 0.17813712358474731, 0.29215145111083984, -0.24965213239192963, 0.22421520948410034, -0.34044045209884644, -0.03229048475623131, -0.2107636034488678, -0.31427866220474243, -0.28285837173461914, -0.20690399408340454, 0.10166943818330765, -0.4482439458370209, 0.4317081570625305, -0.10480870306491852, 1.327390432357788, 0.19062922894954681, -0.442145437002182, -0.10067588090896606, -0.4477902948856354, 0.9918331503868103, -0.6770616173744202, 0.32841435074806213, 0.43808144330978394, 0.05128230154514313, 0.11959031969308853, -0.6091657280921936, -0.5623448491096497, 0.06586603820323944, -0.08742700517177582, 0.19282594323158264, -0.11990609019994736, -0.2664662301540375, 0.06847051531076431, 0.19708335399627686, -0.6930907368659973, -0.0837378278374672, -0.5296562910079956, -0.022658394649624825, 0.6749367713928223, 0.09222480654716492, 0.23637640476226807, -0.33044835925102234, -0.2147665023803711, -0.17081400752067566, -0.14511798322200775, 0.017461447045207024, 0.13405820727348328, 0.3791067898273468, -0.5059316158294678, 0.6133363842964172, -0.20694008469581604, 0.6300477981567383, 0.0882018506526947, -0.3060511648654938, 0.6900596022605896, -0.45049169659614563, -0.026615208014845848, -0.14988823235034943, 1.0983293056488037, 0.43516895174980164, 0.3229457139968872, -0.1899058073759079, 0.04114281013607979, 0.08461735397577286, -0.19233302772045135, -0.9311956763267517, -0.24731241166591644, 0.3156079649925232, -0.5018527507781982, -0.48621296882629395, 0.040219083428382874, -0.9539973139762878, 0.02456383965909481, -0.16535358130931854, 0.5603854060173035, -0.5481435060501099, -0.41830021142959595, -0.04187825694680214, -0.25285568833351135, 0.1367587149143219, 0.04754640534520149, -0.7723430395126343, -0.00946893822401762, 0.40808749198913574, 0.8796720504760742, 0.016706420108675957, -0.6052684783935547, -0.08717210590839386, 0.29403841495513916, -0.3329092562198639, 0.695681095123291, -0.546861469745636, -0.23066262900829315, -0.16796553134918213, -0.0059778387658298016, -0.36331743001937866, -0.045858778059482574, 0.3571893274784088, -0.22138242423534393, 0.5783852934837341, -0.09035665541887283, -0.5733848214149475, 0.02609032578766346, 0.24409404397010803, -0.36835935711860657, 1.217840313911438, 0.1481219381093979, -0.9397763609886169, 0.5034162998199463, -0.9918132424354553, -0.3564774990081787, -0.1579146683216095, -0.0082781333476305, -0.530107319355011, -0.21402692794799805, 0.2750858962535858, 0.5135799646377563, -0.21402478218078613, 0.5789947509765625, -0.41897067427635193, -0.19272053241729736, 0.131679967045784, -0.340194433927536, 1.036300539970398, 0.2656032145023346, -0.49752867221832275, 0.21249233186244965, -0.6835634708404541, 0.018357183784246445, 0.20609864592552185, -0.27320533990859985, -0.14884088933467865, -0.25229963660240173, 0.13849319517612457, 0.5833194851875305, 0.14970526099205017, -0.5542761087417603, 0.3211890459060669, -0.2363627403974533, 0.69590163230896, 0.6952663064002991, 0.12012601643800735, 0.39114275574684143, -0.6619226336479187, 0.312700092792511, 0.036335013806819916, 0.13887815177440643, -0.05738766863942146, -0.6847562193870544, -0.7210147976875305, -0.3135082721710205, 0.2061411291360855, 0.40787267684936523, -0.7745989561080933, 0.5297070741653442, -0.41479548811912537, -0.8913062214851379, -0.5024784803390503, -0.26502421498298645, 0.15434542298316956, 0.5636363625526428, 0.587985634803772, 0.2627076208591461, -0.6556933522224426, -0.5357179641723633, -0.30266228318214417, -0.40743911266326904, 0.32069680094718933, 0.2664552927017212, 0.8118557333946228, -0.17836910486221313, 0.8072094321250916, -0.6063412427902222, -0.23394159972667694, -0.20150315761566162, 0.33284300565719604, 0.39019012451171875, 0.7563032507896423, 0.832221508026123, -0.8637639880180359, -0.7270912528038025, -0.42625656723976135, -0.7764469981193542, -0.10942836105823517, 0.17654268443584442, -0.19454823434352875, 0.4427914321422577, 0.32188692688941956, -0.5698550939559937, 0.45427289605140686, 0.34389641880989075, -0.7416976690292358, 0.43881985545158386, 0.0747927725315094, 0.3029135465621948, -1.4334417581558228, 0.05009188875555992, 0.22654059529304504, 0.1644555926322937, -0.7413474321365356, -0.20260335505008698, -0.1139749139547348, 0.005204156041145325, -0.40039747953414917, 0.9533493518829346, -0.22317416965961456, 0.3156565725803375, -0.11935917288064957, -0.19648505747318268, -0.025659097358584404, 0.5186899304389954, 0.19534964859485626, 0.5838712453842163, 0.6918987035751343, -0.6931809782981873, 0.27422860264778137, 0.23081588745117188, -0.15097585320472717, 0.26100778579711914, -0.49740588665008545, -0.14154410362243652, -0.020045921206474304, 0.2957788407802582, -1.2253865003585815, -0.32267922163009644, 0.39531388878822327, -0.8504599332809448, 0.4005430340766907, -0.04445089027285576, -0.6390081644058228, -0.7208764553070068, -0.39864689111709595, 0.4154432415962219, 0.34361177682876587, -0.46259286999702454, 0.5828918814659119, 0.49595561623573303, 0.101407989859581, -0.7006909847259521, -0.8814008831977844, -0.05777597427368164, -0.50893634557724, -0.603054404258728, 0.43651190400123596, -0.2972047030925751, 0.005043914541602135, 0.2409597933292389, -0.005609416868537664, -0.18001264333724976, 0.24036048352718353, 0.1235150694847107, 0.360474556684494, -0.15575134754180908, 0.24837729334831238, -0.2455279678106308, 0.0044187637977302074, -0.09461665898561478, -0.4139292538166046, 1.0046910047531128, -0.2668633460998535, 0.016666866838932037, -0.5097559690475464, 0.2324926108121872, 0.4499169886112213, -0.2419920712709427, 1.0102803707122803, 0.9942313432693481, -0.47165384888648987, 0.02179533801972866, -0.5655311942100525, -0.22020964324474335, -0.47229278087615967, 0.5718845725059509, -0.5452496409416199, -0.817410945892334, 0.5922726392745972, 0.33488962054252625, 0.08042120933532715, 1.0439420938491821, 0.6348592042922974, -0.11377615481615067, 0.8138964772224426, 0.4780811071395874, -0.039143193513154984, 0.6118804216384888, -0.8423532247543335, 0.04573812335729599, -0.5293474793434143, -0.5803724527359009, -0.6863182187080383, -0.16751213371753693, -0.9855897426605225, -0.31475090980529785, 0.03439126908779144, -0.07135892659425735, -0.7858895063400269, 0.47582370042800903, -0.7339990139007568, 0.13469010591506958, 0.6900995969772339, 0.07407454401254654, -0.1226375550031662, 0.02760116010904312, -0.09532059729099274, -0.19464710354804993, -0.7749136686325073, -0.40134748816490173, 1.0678061246871948, 0.3508565425872803, 0.5068177580833435, 0.2457577884197235, 0.9684056639671326, 0.026548830792307854, 0.5240452289581299, -0.6098498702049255, 0.5204482078552246, -0.4663810729980469, -0.9894902110099792, -0.4423874318599701, -0.6033037900924683, -0.8921269178390503, 0.25141194462776184, -0.24404720962047577, -0.9239766001701355, 0.20360927283763885, -0.17205451428890228, -0.1264694184064865, 0.5973947048187256, -0.6672555804252625, 0.9499104619026184, -0.16516776382923126, -0.4565892815589905, 0.12707917392253876, -0.5235134959220886, 0.2755722403526306, -0.20668922364711761, 0.4137219786643982, -0.29896244406700134, -0.05779809504747391, 1.281495451927185, -0.29936084151268005, 0.870556652545929, -0.12660494446754456, 0.26558294892311096, 0.3537890613079071, -0.24196194112300873, -0.015659520402550697, 0.0102812135592103, -0.16886980831623077, 0.14996042847633362, -0.01439108420163393, -0.48454514145851135, -0.1095675602555275, 0.7201677560806274, -1.2037090063095093, -0.6249315738677979, -0.8561422228813171, -0.5053866505622864, -0.16342797875404358, 0.4394131004810333, 0.6107799410820007, 0.5221363306045532, 0.04339233785867691, 0.2485644668340683, 0.31898269057273865, -0.2398781180381775, 0.9915939569473267, 0.45010992884635925, -0.17692998051643372, -0.5563738346099854, 0.9860355854034424, 0.33547544479370117, 0.013898978941142559, 0.5585590600967407, 0.4711657762527466, -0.42694589495658875, -0.27491191029548645, -0.08219262212514877, 0.5113834142684937, -0.6243991255760193, -0.3335942029953003, -0.9081497192382812, -0.48827728629112244, -0.9159201979637146, -0.03811071440577507, -0.2912024259567261, -0.6179799437522888, -0.5842862725257874, -0.08885448426008224, 0.4217405617237091, 0.7343084812164307, -0.2909527122974396, 0.3570972681045532, -0.5732710361480713, 0.28977856040000916, 0.09552216529846191, 0.34177109599113464, 0.05811214819550514, -0.9108956456184387, -0.1645200103521347, -0.09808112680912018, -0.564967930316925, -0.855766773223877, 0.6836650967597961, 0.3400418162345886, 0.7222747206687927, 0.3425444960594177, 0.11483927071094513, 0.6487023234367371, -0.2657444477081299, 0.8814465403556824, 0.3486259877681732, -0.9927254915237427, 0.5917948484420776, -0.39770904183387756, 0.3749089241027832, 0.3478175401687622, 0.4511987566947937, -0.6246857047080994, -0.545396625995636, -1.0068169832229614, -0.9838764071464539, 1.0235034227371216, 0.19118809700012207, 0.19646263122558594, -0.15068688988685608, 0.010804473422467709, -0.049890246242284775, 0.2872132956981659, -0.952404797077179, -0.7967961430549622, -0.6152664422988892, -0.35286974906921387, -0.332118421792984, -0.21827153861522675, 0.04818427190184593, -0.5105972290039062, 1.0226943492889404, 0.034149717539548874, 0.5609040856361389, -0.07687482982873917, 0.18019099533557892, -0.037210192531347275, 0.1561826914548874, 0.6660712957382202, 0.7257913947105408, -0.46533697843551636, 0.1338508278131485, 0.03803170844912529, -0.49527257680892944, 0.22774538397789001, 0.31429246068000793, -0.02561703324317932, 0.290947824716568, 0.6577527523040771, 0.8029164671897888, 0.05625669285655022, 0.0060320706106722355, 0.4067952036857605, -0.13012689352035522, -0.3938741087913513, -0.30739349126815796, -0.10345271229743958, 0.06834755837917328, 0.15208832919597626, 0.697064995765686, 0.1641445904970169, -0.10718964040279388, -0.5964394211769104, 0.41317155957221985, 0.11574692279100418, -0.26721349358558655, -0.25364065170288086, 0.8584526181221008, -0.05367015302181244, -0.2588267922401428, 0.3140391707420349, -0.2293929010629654, -0.9078657031059265, 0.7739929556846619, 0.38352012634277344, 0.9331753849983215, -0.3734448254108429, 0.3952774107456207, 0.8548794984817505, 0.2380041480064392, -0.10637050122022629, 0.40264829993247986, 0.1784231811761856, -0.716870129108429, -0.32174554467201233, -0.6552302837371826, -0.052193690091371536, 0.2694646120071411, -0.4010936915874481, 0.34274494647979736, -0.2481810450553894, -0.3888964056968689, 0.3050418496131897, 0.31465965509414673, -0.7163938283920288, 0.3560081720352173, 0.08968478441238403, 0.8949827551841736, -1.047499179840088, 1.0529195070266724, 0.8295823335647583, -0.5880577564239502, -1.0432184934616089, 0.1296452134847641, -0.2215229719877243, -0.5939594507217407, 0.9846010804176331, 0.25764918327331543, 0.3042212426662445, 0.0911439061164856, -0.6000442504882812, -1.183034896850586, 1.0860120058059692, 0.07593075931072235, -0.0955367237329483, -0.21677905321121216, 0.20664089918136597, 0.5441455841064453, -0.38109636306762695, 0.47330915927886963, 0.3388415277004242, 0.5346002578735352, 0.3211205005645752, -0.909603476524353, -0.09965318441390991, -0.38432300090789795, -0.2463463842868805, 0.12766917049884796, -1.0339936017990112, 1.1498486995697021, -0.15084408223628998, 0.0609363317489624, -0.11506640911102295, 0.738238513469696, 0.5971606373786926, 0.5046136975288391, 0.3452073037624359, 0.5387440323829651, 0.6989803314208984, -0.4777415096759796, 0.9038220047950745, -0.44769802689552307, 0.8562024831771851, 0.9769049286842346, 0.42581507563591003, 0.6015239953994751, 0.4764755070209503, -0.3214413523674011, 0.26573243737220764, 1.024465560913086, -0.19289328157901764, 0.7785012722015381, 0.06997077167034149, 0.052989114075899124, -0.24428518116474152, -0.19883565604686737, -0.5760329961776733, 0.4389699101448059, 0.3268742859363556, -0.3192708194255829, -0.18883202970027924, 0.10183874517679214, 0.3206641972064972, -0.22943027317523956, -0.26445692777633667, 0.530181348323822, 0.1463567167520523, -0.7140325903892517, 0.7338400483131409, 0.08072207123041153, 0.9187594652175903, -0.3964375853538513, 0.1386612355709076, -0.08897186815738678, 0.23521322011947632, -0.17686940729618073, -1.0497195720672607, 0.14395394921302795, -0.046443697065114975, -0.07001656293869019, -0.2874258756637573, 0.5556329488754272, -0.6128138899803162, -0.6581538915634155, 0.4483020305633545, 0.4160453677177429, 0.15827755630016327, 0.26375406980514526, -1.0706019401550293, 0.001110786572098732, 0.10231522470712662, -0.5038639307022095, -0.032644230872392654, 0.5638217926025391, 0.05846187844872475, 0.7051219344139099, 0.4039824306964874, -0.029103631153702736, 0.3232930898666382, 0.005613724701106548, 0.8693272471427917, -0.6400977969169617, -0.5133253335952759, -1.0253934860229492, 0.39952850341796875, -0.0861300602555275, -0.5585271120071411, 0.8049032688140869, 0.7883198261260986, 0.7588607668876648, -0.008251659572124481, 0.8620579242706299, -0.27209028601646423, 0.5513193011283875, -0.20988598465919495, 0.7535825967788696, -0.832488477230072, 0.04032424837350845, -0.3092443645000458, -0.7670912742614746, -0.31241005659103394, 0.6047738194465637, -0.5150565505027771, 0.4097690284252167, 0.722756564617157, 0.4244963228702545, 0.060974497348070145, -0.07705386728048325, 0.11173561960458755, 0.29707247018814087, 0.4421766996383667, 0.577382504940033, 0.7215219736099243, -0.6413690447807312, 0.6194724440574646, -0.7822643518447876, -0.1277211755514145, -0.3221399188041687, -0.6931126713752747, -1.1659595966339111, -0.9428490996360779, -0.545900285243988, -0.7776229381561279, -0.02606676146388054, 1.024019479751587, 0.679099977016449, -1.0262125730514526, -0.28172001242637634, 0.15522095561027527, 0.08862734586000443, -0.020812172442674637, -0.3030882775783539, 0.8104916214942932, -0.2742109000682831, -0.837627649307251, -0.06360766291618347, -0.24003958702087402, 0.31569209694862366, 0.15623769164085388, -0.08059948682785034, -0.6953554749488831, -0.08523435890674591, 0.3362894654273987, 0.07206730544567108, -0.5829496383666992, -0.2851760685443878, 0.11714980751276016, -0.35558950901031494, 0.06296955049037933, 0.26929792761802673, -0.4392396807670593, 0.1323958933353424, 0.5362279415130615, 0.2779690623283386, 0.8377951979637146, -0.13545359671115875, 0.09034852683544159, -0.6299030780792236, 0.19747810065746307, 0.20221181213855743, 0.36891263723373413, 0.3676885962486267, -0.06428244709968567, 0.7587875723838806, 0.5663930773735046, -0.4680524468421936, -0.9285435676574707, -0.2792681157588959, -0.9625079035758972, -0.4670730233192444, 1.3395893573760986, 0.02510272152721882, -0.20102451741695404, -0.10855597257614136, 0.10104639083147049, 0.779997706413269, -0.7334734201431274, 0.7728899717330933, 0.793826162815094, -0.035901989787817, -0.11646130681037903, -0.5773704648017883, 0.45869165658950806, 0.11494166404008865, -0.6811769008636475, -0.2779385447502136, -0.05908337980508804, 0.5431097745895386, 0.3280501961708069, 0.7072473764419556, 0.1443709433078766, 0.09044504165649414, -0.0742725059390068, 0.06856902688741684, -0.14970655739307404, -0.2253090739250183, -0.0557553693652153, 0.24391919374465942, -0.33719971776008606, -0.4142221212387085 ]
Helsinki-NLP/opus-mt-hi-en
Helsinki-NLP
"2023-08-16T11:57:38Z"
14,122
7
transformers
[ "transformers", "pytorch", "tf", "rust", "marian", "text2text-generation", "translation", "hi", "en", "license:apache-2.0", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
translation
"2022-03-02T23:29:04Z"
--- tags: - translation license: apache-2.0 --- ### opus-mt-hi-en * source languages: hi * target languages: en * OPUS readme: [hi-en](https://github.com/Helsinki-NLP/OPUS-MT-train/blob/master/models/hi-en/README.md) * dataset: opus * model: transformer-align * pre-processing: normalization + SentencePiece * download original weights: [opus-2019-12-18.zip](https://object.pouta.csc.fi/OPUS-MT-models/hi-en/opus-2019-12-18.zip) * test set translations: [opus-2019-12-18.test.txt](https://object.pouta.csc.fi/OPUS-MT-models/hi-en/opus-2019-12-18.test.txt) * test set scores: [opus-2019-12-18.eval.txt](https://object.pouta.csc.fi/OPUS-MT-models/hi-en/opus-2019-12-18.eval.txt) ## Benchmarks | testset | BLEU | chr-F | |-----------------------|-------|-------| | newsdev2014.hi.en | 9.1 | 0.357 | | newstest2014-hien.hi.en | 13.6 | 0.409 | | Tatoeba.hi.en | 40.4 | 0.580 |
[ -0.37946611642837524, -0.5068075060844421, 0.2461349070072174, 0.4038996696472168, -0.3394652307033539, -0.43399038910865784, -0.44266849756240845, -0.1599329113960266, 0.08375952392816544, 0.6064118146896362, -0.7127560377120972, -0.6081340909004211, -0.6377829909324646, 0.23781175911426544, 0.013677069917321205, 0.8644148111343384, -0.1580515056848526, 0.4625783860683441, 0.2443474680185318, -0.5760735869407654, -0.44765910506248474, -0.4531550407409668, -0.4149547219276428, -0.3935888707637787, 0.34177082777023315, 0.48606500029563904, 0.4875096380710602, 0.510109007358551, 1.1001416444778442, 0.2330377846956253, -0.13081778585910797, 0.03284674510359764, -0.5771134495735168, -0.1129942312836647, 0.15460658073425293, -0.5843075513839722, -0.8830540180206299, -0.1208266168832779, 1.1533583402633667, 0.4674265384674072, 0.03315820172429085, 0.47023671865463257, 0.044557586312294006, 0.9594587087631226, -0.4202291667461395, 0.09926722943782806, -0.651746392250061, 0.11015210300683975, -0.41899797320365906, -0.32265570759773254, -0.7202480435371399, -0.22557282447814941, 0.129034161567688, -0.769086480140686, -0.08353915065526962, 0.23335883021354675, 1.5755890607833862, 0.3379119634628296, -0.384285569190979, -0.09260769933462143, -0.6439826488494873, 1.171123743057251, -0.903374195098877, 0.6515148878097534, 0.4018295705318451, 0.2893766760826111, 0.22329433262348175, -0.5838783979415894, -0.291406512260437, 0.1686403453350067, -0.26390954852104187, 0.23008780181407928, -0.09667051583528519, -0.2660578191280365, 0.3664029836654663, 0.8761077523231506, -0.8434461355209351, 0.005028344225138426, -0.5595014095306396, -0.07236524671316147, 0.7345313429832458, 0.11662178486585617, 0.16841937601566315, -0.2882997989654541, -0.5032160878181458, -0.5470977425575256, -0.9069746136665344, 0.054168276488780975, 0.3953225016593933, 0.29564160108566284, -0.5706080794334412, 0.7347003817558289, -0.12844914197921753, 0.6718412041664124, -0.041142139583826065, -0.06364914029836655, 1.1430128812789917, -0.4517720937728882, -0.42445409297943115, -0.1910097301006317, 1.3721164464950562, 0.35034629702568054, 0.05558871850371361, 0.18468990921974182, -0.2658592760562897, -0.32538411021232605, 0.03003067709505558, -1.0647729635238647, -0.04218929260969162, 0.08768098056316376, -0.572896420955658, -0.11816241592168808, 0.01235013734549284, -0.8602501153945923, 0.21635928750038147, -0.398050457239151, 0.7662674784660339, -0.5982328653335571, -0.2889784574508667, 0.37128522992134094, 0.017807742580771446, 0.38318878412246704, -0.04465099424123764, -0.71878582239151, 0.2522829473018646, 0.3628719449043274, 0.7369945049285889, -0.4553242027759552, -0.35751622915267944, -0.5642318725585938, -0.23638753592967987, -0.0820077508687973, 0.6537979245185852, -0.06932752579450607, -0.4832971394062042, -0.07975342124700546, 0.5173409581184387, -0.43703484535217285, -0.4402507245540619, 1.4610919952392578, -0.27497923374176025, 0.8320180773735046, -0.49461519718170166, -0.5101012587547302, -0.2997787296772003, 0.5810465812683105, -0.6476356983184814, 1.5417157411575317, 0.11244745552539825, -0.9915136098861694, 0.2000991553068161, -0.9626063704490662, -0.2475413829088211, -0.025695424526929855, 0.020333340391516685, -0.7481862902641296, 0.007767859846353531, 0.2039126604795456, 0.41941800713539124, -0.36935335397720337, 0.22392378747463226, -0.02634424902498722, -0.47311145067214966, -0.04148167371749878, -0.38413044810295105, 1.1771160364151, 0.3132528066635132, -0.41107696294784546, 0.2975727617740631, -1.049260139465332, -0.08877226710319519, 0.026704110205173492, -0.571641206741333, -0.2120937556028366, 0.026501143351197243, 0.26864132285118103, 0.09527354687452316, 0.41429534554481506, -0.7029933333396912, 0.21875931322574615, -0.758750319480896, 0.19575361907482147, 0.7023448348045349, -0.22470921277999878, 0.3351629674434662, -0.43232807517051697, 0.34114861488342285, 0.15911030769348145, 0.2138240933418274, -0.06711927056312561, -0.6019253730773926, -0.9103032946586609, -0.28484782576560974, 0.5730597972869873, 1.1651966571807861, -0.7230132222175598, 0.9546486735343933, -0.7155488729476929, -0.7897322773933411, -0.8899477124214172, -0.10679168254137039, 0.5151441693305969, 0.46791842579841614, 0.6058651804924011, -0.13336606323719025, -0.5116021633148193, -1.207075834274292, -0.14524786174297333, -0.17865803837776184, -0.1849534511566162, 0.2691471576690674, 0.7385725378990173, -0.26212576031684875, 0.5459202527999878, -0.578465461730957, -0.3963351547718048, -0.13429446518421173, 0.20518752932548523, 0.568770170211792, 0.6725571155548096, 0.6117913126945496, -0.9425095319747925, -0.6715622544288635, 0.016416778787970543, -0.7995111346244812, -0.09507083147764206, 0.183761328458786, -0.37569281458854675, 0.06578834354877472, 0.1111806333065033, -0.4079059362411499, 0.1672949641942978, 0.7084770798683167, -0.6257847547531128, 0.6655569672584534, -0.12167827039957047, 0.34649062156677246, -1.55801522731781, 0.16317202150821686, -0.18181723356246948, -0.03726083040237427, -0.4137231409549713, 0.03543679416179657, 0.28754204511642456, 0.0329231433570385, -0.9212200045585632, 0.6564928293228149, -0.3176622688770294, -0.07992193847894669, 0.29153692722320557, -0.0715215727686882, 0.13953529298305511, 0.8459640145301819, -0.13724707067012787, 0.9094546437263489, 0.8362098932266235, -0.5624759197235107, 0.26507994532585144, 0.6505923271179199, -0.47195109724998474, 0.4352017343044281, -0.9120557308197021, -0.3097025156021118, 0.3255453407764435, -0.17265859246253967, -0.6518774628639221, 0.04145758971571922, 0.33678874373435974, -0.6813110709190369, 0.4327523708343506, -0.142961323261261, -0.8288412690162659, -0.13320817053318024, -0.3309286832809448, 0.565954864025116, 0.8612931370735168, -0.2879636287689209, 0.5190566182136536, 0.1404716521501541, -0.02429725043475628, -0.4932020604610443, -1.0751194953918457, -0.13503125309944153, -0.46216851472854614, -0.8220499753952026, 0.29743653535842896, -0.4949476718902588, -0.005340439733117819, 0.03445003926753998, 0.4048618674278259, -0.0542760044336319, -0.011205442249774933, 0.11842958629131317, 0.3492531478404999, -0.6312946677207947, 0.0917426198720932, -0.1504858136177063, -0.14016079902648926, -0.13304778933525085, -0.16320395469665527, 0.6190391778945923, -0.44215360283851624, -0.29287654161453247, -0.6898394823074341, -0.0033255701418966055, 0.7083049416542053, -0.5976616144180298, 0.8912918567657471, 0.6558473110198975, -0.22853457927703857, 0.25373899936676025, -0.4273611009120941, 0.09563443809747696, -0.47275489568710327, 0.12846319377422333, -0.5360932350158691, -0.8452679514884949, 0.5775229930877686, 0.16775983572006226, 0.49411529302597046, 0.9721213579177856, 0.7789304852485657, 0.09444987773895264, 0.8352003693580627, 0.3050929009914398, -0.018962668254971504, 0.4739528298377991, -0.5238361954689026, -0.08654504269361496, -1.152113914489746, 0.10414592176675797, -0.8626782894134521, -0.40742915868759155, -1.0548211336135864, -0.20930038392543793, 0.41382482647895813, 0.03187812119722366, -0.309665709733963, 0.7928832173347473, -0.6199150681495667, 0.2602449655532837, 0.7065699100494385, -0.17869709432125092, 0.29614654183387756, 0.0517687052488327, -0.5799301266670227, -0.26488155126571655, -0.4345913231372833, -0.49419113993644714, 1.3818436861038208, 0.5032866597175598, 0.4165155589580536, 0.19291815161705017, 0.6348133683204651, -0.036350321024656296, 0.206468865275383, -0.7113034725189209, 0.5005502104759216, -0.2580505907535553, -0.8733132481575012, -0.40690872073173523, -0.6937043070793152, -0.9456079602241516, 0.5547170042991638, -0.3103827238082886, -0.5770878791809082, 0.1962924301624298, -0.011945394799113274, -0.17119403183460236, 0.47965890169143677, -0.7324618101119995, 1.398877739906311, -0.02871655859053135, -0.14841747283935547, 0.29785796999931335, -0.5416892766952515, 0.32530203461647034, 0.07732385396957397, 0.3654462993144989, -0.2924150228500366, 0.273718923330307, 0.7590227127075195, -0.07316505163908005, 0.44055691361427307, -0.07716572284698486, -0.01779359020292759, 0.14532439410686493, 0.015777043998241425, 0.3859539330005646, -0.1510125696659088, -0.5310018658638, 0.39954376220703125, 0.15230748057365417, -0.5748628377914429, -0.12597234547138214, 0.6510366201400757, -0.7890452742576599, -0.01780414767563343, -0.4656260013580322, -0.7403124570846558, -0.01061667688190937, 0.4792587459087372, 0.8313354849815369, 0.7951189279556274, -0.32441648840904236, 0.6556757092475891, 0.9283525943756104, -0.3035050928592682, 0.40287911891937256, 0.6975074410438538, -0.24657553434371948, -0.6351644396781921, 0.9331005215644836, 0.06841571629047394, 0.3513126075267792, 0.6435867547988892, 0.22130247950553894, -0.15328292548656464, -0.7603351473808289, -0.8296124935150146, 0.30114030838012695, -0.29301315546035767, -0.17880581319332123, -0.5546828508377075, -0.14949631690979004, -0.4142892360687256, 0.3216286599636078, -0.549126148223877, -0.5649690628051758, -0.15074415504932404, -0.18278473615646362, 0.14104819297790527, 0.25249990820884705, 0.009401383809745312, 0.5170401930809021, -1.1955459117889404, 0.25545141100883484, -0.10630473494529724, 0.3563286364078522, -0.5780894160270691, -0.8877846002578735, -0.6021057963371277, 0.09051600843667984, -0.7914969325065613, -0.7647843956947327, 0.5339328646659851, 0.1461644023656845, 0.31561002135276794, 0.37271758913993835, 0.16504283249378204, 0.4067661464214325, -0.7648080587387085, 1.081123948097229, -0.0008949079201556742, -0.7276690006256104, 0.5979121327400208, -0.49885594844818115, 0.59172123670578, 0.9842696785926819, 0.3296979069709778, -0.34620916843414307, -0.5193573832511902, -0.7868058085441589, -0.775216281414032, 0.8033862709999084, 0.7287577986717224, -0.138925701379776, 0.24414139986038208, -0.13900434970855713, -0.019123103469610214, 0.1573237031698227, -1.2184172868728638, -0.3825336694717407, 0.10401458293199539, -0.4603959619998932, -0.20598667860031128, -0.26894983649253845, -0.273525595664978, -0.2566477656364441, 1.1716407537460327, 0.12463648617267609, 0.20264147222042084, 0.3903063237667084, -0.12479991465806961, -0.2720843255519867, 0.4412711560726166, 0.8816815614700317, 0.5643492937088013, -0.6487076282501221, -0.09924257546663284, 0.30897441506385803, -0.4860309958457947, -0.19519327580928802, 0.12897510826587677, -0.5080162882804871, 0.28229978680610657, 0.5448477864265442, 1.2254536151885986, 0.30046993494033813, -0.6848761439323425, 0.5575258135795593, -0.3321439325809479, -0.46711891889572144, -0.558201789855957, -0.1467600017786026, 0.09269507229328156, -0.12093870341777802, 0.12066316604614258, 0.24243606626987457, 0.24918381869792938, -0.3422713279724121, 0.14038710296154022, 0.0956178531050682, -0.6921160817146301, -0.6264903545379639, 0.4824643135070801, 0.20253092050552368, -0.3514947295188904, 0.6197990775108337, -0.45717546343803406, -0.5948975086212158, 0.40848371386528015, 0.15009711682796478, 1.1314949989318848, -0.27893146872520447, -0.2894361913204193, 0.8846076726913452, 0.6093958616256714, -0.1891847550868988, 0.558695375919342, 0.17688289284706116, -0.7840457558631897, -0.5649334192276001, -0.9654619097709656, -0.16987894475460052, 0.17722776532173157, -0.9966567754745483, 0.4704504609107971, 0.37378618121147156, -0.002972973044961691, -0.30518198013305664, 0.2968073785305023, -0.6299240589141846, 0.1487671285867691, -0.30486759543418884, 1.133437156677246, -0.9696233868598938, 1.0033265352249146, 0.5939019322395325, -0.28597891330718994, -0.7784329652786255, -0.1966806799173355, -0.21322490274906158, -0.5524648427963257, 0.5747352242469788, 0.2630809247493744, 0.33848243951797485, -0.12177733331918716, -0.23639056086540222, -0.8884982466697693, 1.172868251800537, 0.20632658898830414, -0.6088840961456299, -0.07559967786073685, 0.19609029591083527, 0.5137472152709961, -0.3650146722793579, 0.08437629789113998, 0.5384466052055359, 0.8335132002830505, 0.14611850678920746, -1.2756742238998413, -0.359613835811615, -0.6072188019752502, -0.421519011259079, 0.6582264304161072, -0.6306191086769104, 1.0653815269470215, 0.41431549191474915, -0.10612849146127701, 0.07503316551446915, 0.6515568494796753, 0.36904266476631165, 0.41455358266830444, 0.5877382755279541, 1.3087756633758545, 0.4047120213508606, -0.4925974905490875, 1.002113938331604, -0.36859115958213806, 0.5602066516876221, 1.2528342008590698, -0.12345361709594727, 1.0860278606414795, 0.3526761531829834, -0.13639074563980103, 0.5377930402755737, 0.7141064405441284, -0.3287370204925537, 0.49173468351364136, 0.03593290224671364, 0.17887496948242188, -0.12386103719472885, 0.18546243011951447, -0.7763593792915344, 0.25938546657562256, 0.19036933779716492, -0.12297368794679642, 0.08158791065216064, -0.07136432081460953, 0.025009077042341232, -0.07653462141752243, -0.14652633666992188, 0.6179410815238953, -0.022499360144138336, -0.6710733771324158, 0.8718100786209106, -0.023836364969611168, 0.7487586140632629, -0.6865847706794739, 0.1144462451338768, -0.04224415123462677, 0.3111470341682434, -0.04127306863665581, -0.6441276669502258, 0.5541076064109802, -0.015690401196479797, -0.29112550616264343, -0.48933565616607666, 0.28566110134124756, -0.5837701559066772, -0.9484413862228394, 0.43898776173591614, 0.4539356231689453, 0.37485334277153015, 0.04756570979952812, -0.9371422529220581, 0.08846694976091385, 0.10431786626577377, -0.6744583249092102, 0.06723387539386749, 0.739212691783905, 0.3390709161758423, 0.38051837682724, 0.6105272769927979, 0.22210721671581268, 0.33599165081977844, -0.032683003693819046, 0.6381503343582153, -0.5001415610313416, -0.5295644998550415, -0.845315158367157, 0.8574085831642151, -0.1106635332107544, -0.7830107808113098, 0.8370640277862549, 1.1926203966140747, 1.129489541053772, -0.13480597734451294, 0.2803635597229004, -0.029580233618617058, 0.8766448497772217, -0.7314797043800354, 0.6292079091072083, -1.079886555671692, 0.22675031423568726, -0.043111030012369156, -1.0168020725250244, -0.20443953573703766, 0.22306251525878906, -0.22855226695537567, -0.36969977617263794, 0.8684171438217163, 0.7780585885047913, -0.2734346091747284, -0.1865210384130478, 0.3322116434574127, 0.3863709568977356, 0.22799277305603027, 0.6643095016479492, 0.4833770990371704, -1.1218581199645996, 0.597359299659729, -0.35406509041786194, -0.15998482704162598, -0.14814378321170807, -0.7347434759140015, -0.9582248330116272, -0.6180776357650757, -0.22546499967575073, -0.24465127289295197, -0.33965393900871277, 0.9011158347129822, 0.7546318769454956, -1.0398133993148804, -0.6637952327728271, 0.07545692473649979, 0.14435230195522308, -0.17559556663036346, -0.29759764671325684, 0.6605758666992188, -0.31623512506484985, -1.0381227731704712, 0.5735989809036255, 0.11049608141183853, -0.05144933611154556, -0.06974680721759796, -0.4311392307281494, -0.47393593192100525, -0.06594521552324295, 0.34274324774742126, 0.05172307789325714, -0.5819029211997986, 0.11830158531665802, 0.19655874371528625, -0.1394791603088379, 0.5048783421516418, 0.3712425231933594, -0.23328764736652374, 0.21722935140132904, 1.031564474105835, 0.38372182846069336, 0.5518681406974792, -0.19124814867973328, 0.48169204592704773, -0.787049412727356, 0.3531287908554077, 0.24257676303386688, 0.668221116065979, 0.3754735589027405, -0.05890165641903877, 0.8024519085884094, 0.3135886490345001, -0.758293628692627, -1.2034910917282104, 0.11996143311262131, -1.2623927593231201, 0.05392313003540039, 0.9754692316055298, -0.2680529057979584, -0.3533415198326111, 0.4787922203540802, -0.17019659280776978, 0.1565363109111786, -0.259693443775177, 0.387747585773468, 0.9712551832199097, 0.325537770986557, 0.09971703588962555, -0.8450523614883423, 0.36121976375579834, 0.5681501626968384, -0.9354404807090759, -0.24447686970233917, 0.2358730584383011, 0.1254420131444931, 0.4614696204662323, 0.5162076950073242, -0.42941877245903015, 0.07544173300266266, -0.2958744168281555, 0.4719640910625458, 0.008528042584657669, -0.32873016595840454, -0.3392309546470642, -0.004806458950042725, -0.023766953498125076, -0.4162605404853821 ]
lllyasviel/control_v11p_sd15_seg
lllyasviel
"2023-05-04T18:49:33Z"
14,109
8
diffusers
[ "diffusers", "art", "controlnet", "stable-diffusion", "controlnet-v1-1", "image-to-image", "arxiv:2302.05543", "base_model:runwayml/stable-diffusion-v1-5", "license:openrail", "has_space", "diffusers:ControlNetModel", "region:us" ]
image-to-image
"2023-04-14T19:23:48Z"
--- license: openrail base_model: runwayml/stable-diffusion-v1-5 tags: - art - controlnet - stable-diffusion - controlnet-v1-1 - image-to-image duplicated_from: ControlNet-1-1-preview/control_v11p_sd15_seg --- # Controlnet - v1.1 - *seg Version* **Controlnet v1.1** is the successor model of [Controlnet v1.0](https://huggingface.co/lllyasviel/ControlNet) and was released in [lllyasviel/ControlNet-v1-1](https://huggingface.co/lllyasviel/ControlNet-v1-1) by [Lvmin Zhang](https://huggingface.co/lllyasviel). This checkpoint is a conversion of [the original checkpoint](https://huggingface.co/lllyasviel/ControlNet-v1-1/blob/main/control_v11p_sd15_seg.pth) into `diffusers` format. It can be used in combination with **Stable Diffusion**, such as [runwayml/stable-diffusion-v1-5](https://huggingface.co/runwayml/stable-diffusion-v1-5). For more details, please also have a look at the [🧨 Diffusers docs](https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion/controlnet). ControlNet is a neural network structure to control diffusion models by adding extra conditions. ![img](./sd.png) This checkpoint corresponds to the ControlNet conditioned on **seg images**. ## Model Details - **Developed by:** Lvmin Zhang, Maneesh Agrawala - **Model type:** Diffusion-based text-to-image generation model - **Language(s):** English - **License:** [The CreativeML OpenRAIL M license](https://huggingface.co/spaces/CompVis/stable-diffusion-license) is an [Open RAIL M license](https://www.licenses.ai/blog/2022/8/18/naming-convention-of-responsible-ai-licenses), adapted from the work that [BigScience](https://bigscience.huggingface.co/) and [the RAIL Initiative](https://www.licenses.ai/) are jointly carrying in the area of responsible AI licensing. See also [the article about the BLOOM Open RAIL license](https://bigscience.huggingface.co/blog/the-bigscience-rail-license) on which our license is based. - **Resources for more information:** [GitHub Repository](https://github.com/lllyasviel/ControlNet), [Paper](https://arxiv.org/abs/2302.05543). - **Cite as:** @misc{zhang2023adding, title={Adding Conditional Control to Text-to-Image Diffusion Models}, author={Lvmin Zhang and Maneesh Agrawala}, year={2023}, eprint={2302.05543}, archivePrefix={arXiv}, primaryClass={cs.CV} } ## Introduction Controlnet was proposed in [*Adding Conditional Control to Text-to-Image Diffusion Models*](https://arxiv.org/abs/2302.05543) by Lvmin Zhang, Maneesh Agrawala. The abstract reads as follows: *We present a neural network structure, ControlNet, to control pretrained large diffusion models to support additional input conditions. The ControlNet learns task-specific conditions in an end-to-end way, and the learning is robust even when the training dataset is small (< 50k). Moreover, training a ControlNet is as fast as fine-tuning a diffusion model, and the model can be trained on a personal devices. Alternatively, if powerful computation clusters are available, the model can scale to large amounts (millions to billions) of data. We report that large diffusion models like Stable Diffusion can be augmented with ControlNets to enable conditional inputs like edge maps, segmentation maps, keypoints, etc. This may enrich the methods to control large diffusion models and further facilitate related applications.* ## Example It is recommended to use the checkpoint with [Stable Diffusion v1-5](https://huggingface.co/runwayml/stable-diffusion-v1-5) as the checkpoint has been trained on it. Experimentally, the checkpoint can be used with other diffusion models such as dreamboothed stable diffusion. **Note**: If you want to process an image to create the auxiliary conditioning, external dependencies are required as shown below: 1. Let's install `diffusers` and related packages: ``` $ pip install diffusers transformers accelerate ``` 2. Let's define a color table we'll need later. ```py import numpy as np ada_palette = np.asarray([ [0, 0, 0], [120, 120, 120], [180, 120, 120], [6, 230, 230], [80, 50, 50], [4, 200, 3], [120, 120, 80], [140, 140, 140], [204, 5, 255], [230, 230, 230], [4, 250, 7], [224, 5, 255], [235, 255, 7], [150, 5, 61], [120, 120, 70], [8, 255, 51], [255, 6, 82], [143, 255, 140], [204, 255, 4], [255, 51, 7], [204, 70, 3], [0, 102, 200], [61, 230, 250], [255, 6, 51], [11, 102, 255], [255, 7, 71], [255, 9, 224], [9, 7, 230], [220, 220, 220], [255, 9, 92], [112, 9, 255], [8, 255, 214], [7, 255, 224], [255, 184, 6], [10, 255, 71], [255, 41, 10], [7, 255, 255], [224, 255, 8], [102, 8, 255], [255, 61, 6], [255, 194, 7], [255, 122, 8], [0, 255, 20], [255, 8, 41], [255, 5, 153], [6, 51, 255], [235, 12, 255], [160, 150, 20], [0, 163, 255], [140, 140, 140], [250, 10, 15], [20, 255, 0], [31, 255, 0], [255, 31, 0], [255, 224, 0], [153, 255, 0], [0, 0, 255], [255, 71, 0], [0, 235, 255], [0, 173, 255], [31, 0, 255], [11, 200, 200], [255, 82, 0], [0, 255, 245], [0, 61, 255], [0, 255, 112], [0, 255, 133], [255, 0, 0], [255, 163, 0], [255, 102, 0], [194, 255, 0], [0, 143, 255], [51, 255, 0], [0, 82, 255], [0, 255, 41], [0, 255, 173], [10, 0, 255], [173, 255, 0], [0, 255, 153], [255, 92, 0], [255, 0, 255], [255, 0, 245], [255, 0, 102], [255, 173, 0], [255, 0, 20], [255, 184, 184], [0, 31, 255], [0, 255, 61], [0, 71, 255], [255, 0, 204], [0, 255, 194], [0, 255, 82], [0, 10, 255], [0, 112, 255], [51, 0, 255], [0, 194, 255], [0, 122, 255], [0, 255, 163], [255, 153, 0], [0, 255, 10], [255, 112, 0], [143, 255, 0], [82, 0, 255], [163, 255, 0], [255, 235, 0], [8, 184, 170], [133, 0, 255], [0, 255, 92], [184, 0, 255], [255, 0, 31], [0, 184, 255], [0, 214, 255], [255, 0, 112], [92, 255, 0], [0, 224, 255], [112, 224, 255], [70, 184, 160], [163, 0, 255], [153, 0, 255], [71, 255, 0], [255, 0, 163], [255, 204, 0], [255, 0, 143], [0, 255, 235], [133, 255, 0], [255, 0, 235], [245, 0, 255], [255, 0, 122], [255, 245, 0], [10, 190, 212], [214, 255, 0], [0, 204, 255], [20, 0, 255], [255, 255, 0], [0, 153, 255], [0, 41, 255], [0, 255, 204], [41, 0, 255], [41, 255, 0], [173, 0, 255], [0, 245, 255], [71, 0, 255], [122, 0, 255], [0, 255, 184], [0, 92, 255], [184, 255, 0], [0, 133, 255], [255, 214, 0], [25, 194, 194], [102, 255, 0], [92, 0, 255], ]) ``` 3. Run code: ```python import torch import os from huggingface_hub import HfApi from pathlib import Path from diffusers.utils import load_image from PIL import Image import numpy as np from transformers import AutoImageProcessor, UperNetForSemanticSegmentation from diffusers import ( ControlNetModel, StableDiffusionControlNetPipeline, UniPCMultistepScheduler, ) image_processor = AutoImageProcessor.from_pretrained("openmmlab/upernet-convnext-small") image_segmentor = UperNetForSemanticSegmentation.from_pretrained("openmmlab/upernet-convnext-small") checkpoint = "lllyasviel/control_v11p_sd15_seg" image = load_image( "https://huggingface.co/lllyasviel/control_v11p_sd15_seg/resolve/main/images/input.png" ) prompt = "old house in stormy weather with rain and wind" pixel_values = image_processor(image, return_tensors="pt").pixel_values with torch.no_grad(): outputs = image_segmentor(pixel_values) seg = image_processor.post_process_semantic_segmentation(outputs, target_sizes=[image.size[::-1]])[0] color_seg = np.zeros((seg.shape[0], seg.shape[1], 3), dtype=np.uint8) # height, width, 3 for label, color in enumerate(ada_palette): color_seg[seg == label, :] = color color_seg = color_seg.astype(np.uint8) control_image = Image.fromarray(color_seg) control_image.save("./images/control.png") controlnet = ControlNetModel.from_pretrained(checkpoint, torch_dtype=torch.float16) pipe = StableDiffusionControlNetPipeline.from_pretrained( "runwayml/stable-diffusion-v1-5", controlnet=controlnet, torch_dtype=torch.float16 ) pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config) pipe.enable_model_cpu_offload() generator = torch.manual_seed(0) image = pipe(prompt, num_inference_steps=30, generator=generator, image=control_image).images[0] image.save('images/image_out.png') ``` ![bird](./images/input.png) ![bird_canny](./images/control.png) ![bird_canny_out](./images/image_out.png) ## Other released checkpoints v1-1 The authors released 14 different checkpoints, each trained with [Stable Diffusion v1-5](https://huggingface.co/runwayml/stable-diffusion-v1-5) on a different type of conditioning: | Model Name | Control Image Overview| Condition Image | Control Image Example | Generated Image Example | |---|---|---|---|---| |[lllyasviel/control_v11p_sd15_canny](https://huggingface.co/lllyasviel/control_v11p_sd15_canny)<br/> | *Trained with canny edge detection* | A monochrome image with white edges on a black background.|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_canny/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11p_sd15_canny/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_canny/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11p_sd15_canny/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11e_sd15_ip2p](https://huggingface.co/lllyasviel/control_v11e_sd15_ip2p)<br/> | *Trained with pixel to pixel instruction* | No condition .|<a href="https://huggingface.co/lllyasviel/control_v11e_sd15_ip2p/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11e_sd15_ip2p/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11e_sd15_ip2p/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11e_sd15_ip2p/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11p_sd15_inpaint](https://huggingface.co/lllyasviel/control_v11p_sd15_inpaint)<br/> | Trained with image inpainting | No condition.|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_inpaint/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11p_sd15_inpaint/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_inpaint/resolve/main/images/output.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11p_sd15_inpaint/resolve/main/images/output.png"/></a>| |[lllyasviel/control_v11p_sd15_mlsd](https://huggingface.co/lllyasviel/control_v11p_sd15_mlsd)<br/> | Trained with multi-level line segment detection | An image with annotated line segments.|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_mlsd/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11p_sd15_mlsd/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_mlsd/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11p_sd15_mlsd/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11f1p_sd15_depth](https://huggingface.co/lllyasviel/control_v11f1p_sd15_depth)<br/> | Trained with depth estimation | An image with depth information, usually represented as a grayscale image.|<a href="https://huggingface.co/lllyasviel/control_v11f1p_sd15_depth/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11f1p_sd15_depth/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11f1p_sd15_depth/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11f1p_sd15_depth/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11p_sd15_normalbae](https://huggingface.co/lllyasviel/control_v11p_sd15_normalbae)<br/> | Trained with surface normal estimation | An image with surface normal information, usually represented as a color-coded image.|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_normalbae/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11p_sd15_normalbae/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_normalbae/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11p_sd15_normalbae/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11p_sd15_seg](https://huggingface.co/lllyasviel/control_v11p_sd15_seg)<br/> | Trained with image segmentation | An image with segmented regions, usually represented as a color-coded image.|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_seg/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11p_sd15_seg/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_seg/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11p_sd15_seg/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11p_sd15_lineart](https://huggingface.co/lllyasviel/control_v11p_sd15_lineart)<br/> | Trained with line art generation | An image with line art, usually black lines on a white background.|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_lineart/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11p_sd15_lineart/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_lineart/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11p_sd15_lineart/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11p_sd15s2_lineart_anime](https://huggingface.co/lllyasviel/control_v11p_sd15s2_lineart_anime)<br/> | Trained with anime line art generation | An image with anime-style line art.|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15s2_lineart_anime/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11p_sd15s2_lineart_anime/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15s2_lineart_anime/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11p_sd15s2_lineart_anime/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11p_sd15_openpose](https://huggingface.co/lllyasviel/control_v11p_sd15s2_lineart_anime)<br/> | Trained with human pose estimation | An image with human poses, usually represented as a set of keypoints or skeletons.|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_openpose/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11p_sd15_openpose/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_openpose/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11p_sd15_openpose/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11p_sd15_scribble](https://huggingface.co/lllyasviel/control_v11p_sd15_scribble)<br/> | Trained with scribble-based image generation | An image with scribbles, usually random or user-drawn strokes.|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_scribble/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11p_sd15_scribble/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_scribble/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11p_sd15_scribble/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11p_sd15_softedge](https://huggingface.co/lllyasviel/control_v11p_sd15_softedge)<br/> | Trained with soft edge image generation | An image with soft edges, usually to create a more painterly or artistic effect.|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_softedge/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11p_sd15_softedge/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_softedge/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11p_sd15_softedge/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11e_sd15_shuffle](https://huggingface.co/lllyasviel/control_v11e_sd15_shuffle)<br/> | Trained with image shuffling | An image with shuffled patches or regions.|<a href="https://huggingface.co/lllyasviel/control_v11e_sd15_shuffle/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11e_sd15_shuffle/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11e_sd15_shuffle/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11e_sd15_shuffle/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11f1e_sd15_tile](https://huggingface.co/lllyasviel/control_v11f1e_sd15_tile)<br/> | Trained with image tiling | A blurry image or part of an image .|<a href="https://huggingface.co/lllyasviel/control_v11f1e_sd15_tile/resolve/main/images/original.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11f1e_sd15_tile/resolve/main/images/original.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11f1e_sd15_tile/resolve/main/images/output.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11f1e_sd15_tile/resolve/main/images/output.png"/></a>| ## Improvements in Segmentation 1.1: - COCO protocol is supported. The previous Segmentation 1.0 supports about 150 colors, but Segmentation 1.1 supports another 182 colors from coco. - Resumed from Segmentation 1.0. All previous inputs should still work. ## More information For more information, please also have a look at the [Diffusers ControlNet Blog Post](https://huggingface.co/blog/controlnet) and have a look at the [official docs](https://github.com/lllyasviel/ControlNet-v1-1-nightly).
[ -0.5815409421920776, -0.4221968948841095, 0.12981893122196198, 0.43636298179626465, -0.06804614514112473, -0.2226572185754776, 0.0833825096487999, -0.3262135684490204, 0.4607504606246948, 0.3393023610115051, -0.6305198669433594, -0.4862309396266937, -0.7219477295875549, 0.11520616710186005, -0.2391037940979004, 0.6393961906433105, -0.2728740870952606, -0.1537281721830368, 0.22158870100975037, -0.010876202024519444, -0.1936151683330536, 0.1335424929857254, -0.7809309363365173, -0.4965710937976837, 0.4759314954280853, 0.0874595120549202, 0.7726477980613708, 0.6507667899131775, 0.4208829402923584, 0.39244112372398376, -0.18366211652755737, 0.11303672194480896, -0.2807072401046753, -0.2499559372663498, -0.02219375967979431, -0.26061275601387024, -0.6015318036079407, 0.012690555304288864, 0.5062439441680908, 0.4946002662181854, -0.13523045182228088, 0.2435273379087448, 0.13035473227500916, 0.7552088499069214, -0.5546513795852661, 0.09170594066381454, -0.12582819163799286, 0.458886981010437, 0.050736259669065475, -0.33926424384117126, -0.05215824767947197, -0.47639843821525574, 0.010493488050997257, -0.7975273132324219, 0.18237556517124176, -0.014803683385252953, 1.3806039094924927, 0.43037933111190796, -0.40250250697135925, -0.07642343640327454, -0.687991738319397, 0.7770493030548096, -0.6691794991493225, -0.08929449319839478, 0.4111066162586212, 0.243742436170578, -0.4064537584781647, -0.8621271252632141, -0.6563000082969666, -0.01867022179067135, -0.3378862142562866, 0.5678436756134033, -0.42361295223236084, -0.1600223183631897, 0.2825739085674286, 0.19935652613639832, -0.40759140253067017, -0.10189418494701385, -0.3158949315547943, -0.3539302945137024, 0.47167178988456726, 0.20812970399856567, 0.4937512278556824, -0.287575900554657, -0.4891766309738159, 0.14003030955791473, -0.44439995288848877, 0.2050054520368576, 0.22637031972408295, -0.30041125416755676, -0.424778014421463, 0.5602306127548218, 0.00730879046022892, 0.7189541459083557, 0.20939697325229645, -0.2580081820487976, 0.5325093865394592, -0.3932809829711914, -0.27022886276245117, -0.09060408174991608, 0.9121452569961548, 0.76924729347229, 0.01622585952281952, -0.011070718988776207, -0.1326877623796463, -0.1248449981212616, 0.16914722323417664, -0.9783616065979004, -0.4730393886566162, 0.5727976560592651, -0.8112804889678955, -0.4337490200996399, -0.05872539430856705, -0.9352813959121704, -0.18090736865997314, -0.10179973393678665, 0.49649301171302795, -0.47421157360076904, -0.3777533769607544, 0.014501921832561493, -0.4701317250728607, 0.3504020869731903, 0.7107599973678589, -0.7322750687599182, 0.24130648374557495, 0.31014686822891235, 1.2160669565200806, -0.11232025176286697, -0.22398687899112701, 0.0955960676074028, 0.2692106366157532, -0.5182116627693176, 0.6156789660453796, -0.07996559143066406, -0.2923254668712616, -0.16923731565475464, 0.6085155606269836, -0.11608153581619263, -0.3582269549369812, 0.29339441657066345, -0.6081086993217468, 0.14369060099124908, -0.05315385013818741, -0.21353685855865479, -0.0744779035449028, 0.303648442029953, -0.7398495078086853, 0.8561992645263672, 0.3057732582092285, -1.1188842058181763, 0.26478856801986694, -0.6596699357032776, -0.43124255537986755, -0.21620142459869385, -0.06564726680517197, -0.6620991826057434, -0.45793911814689636, -0.016781019046902657, 0.3915853798389435, -0.14291031658649445, -0.1200510710477829, 0.02147914096713066, -0.30411356687545776, -0.111054927110672, -0.2617916762828827, 1.4233039617538452, 0.4057518243789673, -0.8812939524650574, 0.23825334012508392, -0.7416902184486389, 0.03297717869281769, 0.17034143209457397, -0.34208881855010986, 0.03744390234351158, -0.2021414041519165, -0.051253508776426315, 0.40929675102233887, 0.48713356256484985, -0.5961259603500366, 0.13435952365398407, -0.22381563484668732, 0.6654102206230164, 0.8766396641731262, 0.3139205574989319, 0.5021103024482727, -0.6713675260543823, 0.6376156806945801, 0.32209905982017517, 0.228537917137146, -0.1740088313817978, -0.6338292956352234, -1.057293176651001, -0.43480807542800903, -0.23609338700771332, 0.7435582876205444, -0.8250812888145447, 0.8108331561088562, -0.05067451298236847, -0.7614531517028809, -0.06225607916712761, -0.05370475351810455, 0.18008416891098022, 0.5911824703216553, 0.27481260895729065, -0.0713542178273201, -0.5516861081123352, -0.8434524536132812, 0.3041021227836609, 0.21467147767543793, 0.06674528867006302, 0.49292653799057007, 0.8918301463127136, -0.4416404664516449, 0.9103955030441284, -0.500354528427124, -0.4248283803462982, 0.07030604034662247, -0.16457781195640564, 0.6883372068405151, 0.8089260458946228, 0.6724893450737, -0.7820814847946167, -0.6450207233428955, 0.31296104192733765, -0.8227803707122803, 0.1492471992969513, -0.27805471420288086, -0.5174114108085632, 0.07623281329870224, 0.48490625619888306, -0.4575747847557068, 0.6871037483215332, 0.5547463297843933, -0.7018977403640747, 0.7865487337112427, -0.5559215545654297, 0.2354692667722702, -1.1931556463241577, 0.4572623372077942, -0.04952297732234001, -0.28719860315322876, -0.5072929263114929, -0.2195003479719162, 0.2113979160785675, 0.10597378760576248, -0.4289308488368988, 0.6446092128753662, -0.4110475182533264, 0.14804677665233612, -0.22662103176116943, -0.35528329014778137, 0.020944708958268166, 0.5862443447113037, 0.16325002908706665, 0.7140939235687256, 0.9023082256317139, -0.7172254323959351, 0.5117594599723816, 0.23289117217063904, -0.40171927213668823, 0.4499191343784332, -0.7506139278411865, -0.2151639312505722, -0.43706977367401123, 0.3980787694454193, -1.1333396434783936, -0.2780500054359436, 0.47931599617004395, -0.29219964146614075, 0.25393134355545044, -0.024772537872195244, -0.3044077157974243, -0.7158397436141968, -0.16768230497837067, 0.2425788789987564, 0.5853005051612854, -0.3233550190925598, 0.5354782938957214, 0.18899089097976685, 0.20870551466941833, -0.6328853964805603, -0.7274295687675476, 0.06279680877923965, -0.18174493312835693, -0.6809322834014893, 0.649368941783905, -0.030316302552819252, -0.03484053909778595, 0.14574208855628967, 0.0715876892209053, -0.007772704120725393, 0.289919376373291, 0.3245411813259125, 0.16304904222488403, -0.12683409452438354, -0.3205767273902893, -0.0837613120675087, -0.22471824288368225, -0.06239783763885498, -0.46204885840415955, 0.6746352314949036, 0.04793265461921692, -0.17761746048927307, -0.7420568466186523, 0.2861672639846802, 0.41729316115379333, -0.049729544669389725, 0.8930031657218933, 0.7570314407348633, -0.3469439744949341, -0.17376156151294708, -0.13856667280197144, -0.006353584583848715, -0.5646268129348755, 0.19764792919158936, -0.19837208092212677, -0.6719265580177307, 0.7493394017219543, -0.02630736120045185, 0.0008442729595117271, 0.7184649109840393, 0.5732730627059937, -0.4177633821964264, 0.8346580266952515, 0.4247737526893616, -0.020146826282143593, 0.6612730622291565, -0.9157246947288513, -0.23319856822490692, -0.8298594355583191, -0.407248318195343, -0.3847269117832184, -0.7136780619621277, -0.4705299735069275, -0.39354467391967773, 0.4275147020816803, 0.1087428629398346, -0.9126906991004944, 0.3769039213657379, -0.7199013233184814, 0.3281017243862152, 0.5770785808563232, 0.41405189037323, -0.011712771840393543, 0.006440666038542986, -0.15947309136390686, 0.07670126110315323, -0.6953573822975159, -0.35885950922966003, 0.7599362134933472, 0.22478540241718292, 0.6622891426086426, 0.25948771834373474, 0.6172379851341248, 0.39246687293052673, 0.3505455255508423, -0.41987094283103943, 0.39256203174591064, -0.05777528136968613, -0.6703769564628601, -0.33842793107032776, -0.4836350381374359, -1.3726354837417603, 0.2326844036579132, 0.005041495431214571, -0.9287146329879761, 0.5825303196907043, 0.22624902427196503, -0.3786437213420868, 0.43351617455482483, -0.7069565057754517, 0.8512873649597168, -0.16168391704559326, -0.49150580167770386, 0.24359215795993805, -0.8082599639892578, 0.3741680085659027, 0.22068461775779724, 0.31190183758735657, -0.05304056406021118, -0.24625103175640106, 0.914885401725769, -0.8102496862411499, 0.8905818462371826, -0.22674015164375305, -0.08595418930053711, 0.40678057074546814, 0.054829191416502, 0.5906798839569092, -0.1716579794883728, -0.22765634953975677, -0.02079097181558609, 0.05937296152114868, -0.6002958416938782, -0.19906634092330933, 0.897283673286438, -1.210160255432129, -0.4126896560192108, -0.517059862613678, -0.3083079159259796, 0.4185703992843628, 0.5863755941390991, 0.7334482073783875, 0.28748196363449097, 0.339254766702652, 0.006350374780595303, 0.652802586555481, -0.38172319531440735, 0.7467551827430725, -0.00911608338356018, -0.0670372024178505, -0.6010714769363403, 0.7396297454833984, 0.29182490706443787, 0.3284546434879303, 0.18520942330360413, 0.30221500992774963, -0.10338477045297623, -0.42291778326034546, -0.24944064021110535, 0.1927226036787033, -0.6395153999328613, -0.24431395530700684, -0.6125931143760681, -0.19615288078784943, -0.6049844622612, -0.40649035573005676, -0.1358993500471115, -0.282772034406662, -0.7033464312553406, 0.08495036512613297, 0.6926098465919495, 0.6532434225082397, -0.15188510715961456, 0.4164942502975464, -0.6302199959754944, 0.3663082420825958, 0.13749080896377563, 0.3987799286842346, 0.20990969240665436, -0.5171558260917664, -0.11638712137937546, -0.061116352677345276, -0.34823691844940186, -1.049964189529419, 0.7185714244842529, 0.21699468791484833, 0.6274482607841492, 0.46583130955696106, -0.09073948115110397, 0.8576136827468872, -0.5830191969871521, 0.8643068075180054, 0.5141612887382507, -0.6995342373847961, 0.5951061844825745, -0.4097331166267395, 0.3966326117515564, 0.24939118325710297, 0.43148109316825867, -0.6220576167106628, -0.0703352615237236, -0.7338484525680542, -1.027389645576477, 0.8941276669502258, 0.42661669850349426, 0.0814165323972702, 0.19671893119812012, 0.5526572465896606, -0.3597542643547058, 0.3356584906578064, -0.8514993190765381, -0.901560366153717, -0.5678953528404236, -0.07425327599048615, -0.08094702661037445, 0.09790759533643723, -0.26527419686317444, -0.5209282040596008, 0.7163251042366028, 0.16826660931110382, 0.688618540763855, 0.5686295628547668, 0.10525079071521759, -0.4055432379245758, -0.08729924261569977, 0.682067334651947, 0.6216835379600525, -0.14487163722515106, 0.2538010776042938, -0.11071531474590302, -0.6250450611114502, 0.3415319621562958, -0.09483345597982407, -0.5835897922515869, -0.0878538191318512, 0.5172792077064514, 0.5444046258926392, -0.12131992727518082, -0.0057543073780834675, 0.6135972142219543, 0.10279053449630737, -0.1985219419002533, -0.6888211965560913, 0.242647185921669, -0.00040733639616519213, 0.3632861375808716, 0.3897303640842438, 0.5951272249221802, 0.07569122314453125, -0.4675462245941162, 0.26074880361557007, 0.4386391341686249, -0.48012199997901917, -0.08237563073635101, 0.8798658847808838, -0.052310243248939514, -0.28382524847984314, 0.32681235671043396, -0.4248061180114746, -0.5707958936691284, 1.0835798978805542, 0.6181369423866272, 0.7455730438232422, -0.18905103206634521, 0.4560511112213135, 0.9447484612464905, 0.5079469084739685, 0.07936006039381027, 0.4655808210372925, -0.0003507932124193758, -0.6370177865028381, -0.11611777544021606, -0.6757603883743286, -0.02208332158625126, 0.061728354543447495, -0.2749229371547699, 0.22558365762233734, -0.6568518280982971, -0.2076854705810547, -0.24173149466514587, -0.04970734566450119, -0.69615638256073, 0.3491038382053375, 0.06760059297084808, 1.186367154121399, -0.792543351650238, 0.8688971400260925, 0.4848945140838623, -0.2984248697757721, -0.8989642262458801, -0.25536012649536133, -0.10720077902078629, -0.6147274971008301, 0.6859449744224548, 0.15010926127433777, -0.015431800857186317, 0.15195752680301666, -0.6639827489852905, -1.0909699201583862, 1.5840706825256348, 0.06807027012109756, -0.3054186701774597, 0.13378851115703583, -0.16658064723014832, 0.6300109624862671, -0.09659133851528168, 0.4772181510925293, 0.42418554425239563, 0.7234750390052795, 0.28170090913772583, -0.549992024898529, 0.30907803773880005, -0.5902330875396729, 0.06902152299880981, 0.1300850212574005, -0.9534897804260254, 1.1658328771591187, -0.09678254276514053, -0.13479943573474884, 0.2139607071876526, 0.724315345287323, 0.2034662514925003, 0.09464368969202042, 0.5299358367919922, 0.7075070738792419, 0.6689527630805969, -0.374035120010376, 1.1867231130599976, -0.2812536358833313, 0.4639829695224762, 0.8074811697006226, 0.02542157843708992, 0.5084702372550964, 0.41838595271110535, -0.35156890749931335, 0.4804668128490448, 0.9558773040771484, -0.2880302369594574, 0.573721706867218, 0.27722203731536865, -0.21932117640972137, -0.08117559552192688, 0.15467779338359833, -0.5013389587402344, -0.08142508566379547, 0.28504669666290283, -0.6890639066696167, -0.30345579981803894, -0.017224587500095367, 0.24357420206069946, -0.28745824098587036, -0.5089703798294067, 0.5702162384986877, -0.16218151152133942, -0.6565346121788025, 0.6518493890762329, -0.1332833170890808, 0.7594102025032043, -0.7602771520614624, -0.0676046758890152, -0.10988466441631317, 0.346090704202652, -0.6454757452011108, -1.0617625713348389, 0.17731717228889465, -0.3067244291305542, -0.10208436846733093, -0.1659744530916214, 0.45094138383865356, -0.1704985797405243, -0.5440765619277954, 0.31795576214790344, -0.13016627728939056, 0.1633198857307434, 0.3445080518722534, -0.881380021572113, -0.12059321254491806, 0.22400151193141937, -0.6013783812522888, 0.18859173357486725, 0.4664955735206604, 0.1045326367020607, 0.6116949319839478, 0.6441617608070374, 0.16115893423557281, 0.4150032103061676, -0.30897292494773865, 0.9506478309631348, -0.6977776885032654, -0.451768159866333, -0.7479766011238098, 0.6135592460632324, -0.1663389503955841, -0.44551631808280945, 0.8696438074111938, 0.47309109568595886, 0.433133989572525, -0.28038832545280457, 0.715129554271698, -0.5011821985244751, 0.008369237184524536, -0.4180794954299927, 0.9282128810882568, -0.7399708032608032, -0.06658422946929932, -0.3635733425617218, -0.8111305832862854, -0.49336525797843933, 0.8493613004684448, -0.4261932671070099, 0.19867417216300964, 0.47554758191108704, 1.0074379444122314, -0.03314295783638954, -0.3939306437969208, 0.10905991494655609, 0.32499054074287415, 0.3209848701953888, 0.5064432621002197, 0.7450690865516663, -0.5795645713806152, 0.4161725342273712, -0.7521305084228516, -0.4074690341949463, -0.12871359288692474, -1.008908748626709, -0.5495534539222717, -0.6820953488349915, -0.6583271026611328, -0.7712381482124329, -0.2969019412994385, 0.7641382813453674, 0.931387722492218, -0.8655669093132019, -0.24848361313343048, -0.4836741089820862, 0.1387130469083786, -0.169182687997818, -0.25530630350112915, 0.7637919783592224, 0.1137913167476654, -0.7789092063903809, -0.016744639724493027, 0.28257378935813904, 0.3416293263435364, -0.18509246408939362, -0.3205678462982178, -0.29803213477134705, -0.08217301964759827, 0.2742564380168915, 0.3981216251850128, -0.6114029884338379, -0.163047194480896, -0.2602314352989197, -0.29140669107437134, 0.24725887179374695, 0.39128920435905457, -0.40628641843795776, 0.4569777250289917, 0.7026521563529968, 0.09986492991447449, 0.500484824180603, -0.1574295312166214, 0.13263177871704102, -0.5043843984603882, 0.29049527645111084, 0.04089315980672836, 0.6589248776435852, -0.015154730528593063, -0.5858876705169678, 0.4737441837787628, 0.20427843928337097, -0.802799642086029, -0.4548012614250183, 0.013123403303325176, -1.267808437347412, -0.3271784484386444, 1.2798923254013062, -0.37064439058303833, -0.812213122844696, -0.13241735100746155, -0.4996553063392639, 0.274684339761734, -0.3744071125984192, 0.43900543451309204, 0.39926666021347046, -0.22376132011413574, -0.37245607376098633, -0.3969418406486511, 0.6308343410491943, 0.004262549336999655, -0.9066091775894165, -0.27295273542404175, 0.3409149944782257, 0.3161746859550476, 0.6354946494102478, 0.7046608328819275, -0.2170904129743576, 0.37514859437942505, 0.0342242494225502, 0.25317028164863586, 0.02243182249367237, -0.007033457513898611, -0.2198677659034729, 0.1966848075389862, -0.2401392012834549, -0.3567923605442047 ]
Helsinki-NLP/opus-mt-en-sv
Helsinki-NLP
"2023-08-16T11:31:15Z"
14,106
2
transformers
[ "transformers", "pytorch", "tf", "rust", "marian", "text2text-generation", "translation", "en", "sv", "license:apache-2.0", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
translation
"2022-03-02T23:29:04Z"
--- tags: - translation license: apache-2.0 --- ### opus-mt-en-sv * source languages: en * target languages: sv * OPUS readme: [en-sv](https://github.com/Helsinki-NLP/OPUS-MT-train/blob/master/models/en-sv/README.md) * dataset: opus * model: transformer-align * pre-processing: normalization + SentencePiece * download original weights: [opus-2020-02-26.zip](https://object.pouta.csc.fi/OPUS-MT-models/en-sv/opus-2020-02-26.zip) * test set translations: [opus-2020-02-26.test.txt](https://object.pouta.csc.fi/OPUS-MT-models/en-sv/opus-2020-02-26.test.txt) * test set scores: [opus-2020-02-26.eval.txt](https://object.pouta.csc.fi/OPUS-MT-models/en-sv/opus-2020-02-26.eval.txt) ## Benchmarks | testset | BLEU | chr-F | |-----------------------|-------|-------| | Tatoeba.en.sv | 60.1 | 0.736 |
[ -0.22040601074695587, -0.40066665410995483, 0.2756962180137634, 0.4839734733104706, -0.5369325876235962, -0.4184444546699524, -0.4990425407886505, -0.08766931295394897, 0.025589844211935997, 0.5520563721656799, -0.7895460724830627, -0.66181480884552, -0.626646876335144, 0.23765921592712402, -0.10831278562545776, 0.833354651927948, -0.18616637587547302, 0.6530560851097107, 0.14827603101730347, -0.4860151708126068, -0.36113762855529785, -0.437455415725708, -0.4604884684085846, -0.34899839758872986, 0.342922180891037, 0.408948689699173, 0.32666754722595215, 0.5072588324546814, 1.0215568542480469, 0.24140773713588715, -0.09621158987283707, -0.005967243574559689, -0.5006042122840881, -0.008110510185360909, 0.09503504633903503, -0.6710564494132996, -0.7707527875900269, -0.17102843523025513, 1.1633524894714355, 0.44062602519989014, -0.02192210778594017, 0.48121801018714905, -0.03186307102441788, 1.0381518602371216, -0.3406147360801697, 0.08420898020267487, -0.6511706709861755, 0.06907340884208679, -0.3697194755077362, -0.2872670888900757, -0.7618526220321655, -0.28266704082489014, 0.21284322440624237, -0.7206839323043823, -0.04032053053379059, 0.12832266092300415, 1.55391526222229, 0.37614232301712036, -0.36223021149635315, -0.13253387808799744, -0.6854682564735413, 1.1677089929580688, -0.8400866389274597, 0.6918160915374756, 0.48116856813430786, 0.3246223032474518, 0.2171851545572281, -0.6420654654502869, -0.3256509006023407, 0.08552078902721405, -0.17077040672302246, 0.22881631553173065, -0.10115814208984375, -0.2869810461997986, 0.3392564654350281, 0.7756054401397705, -0.8527876138687134, -0.0078413812443614, -0.5997620820999146, -0.022229528054594994, 0.7276602983474731, 0.12466831505298615, 0.16927655041217804, -0.22208048403263092, -0.4772706925868988, -0.6132487654685974, -0.8262280225753784, 0.12626348435878754, 0.42855972051620483, 0.31777656078338623, -0.5115289092063904, 0.8165042400360107, -0.1459188461303711, 0.6685052514076233, -0.09876011312007904, 0.013253257609903812, 1.0601156949996948, -0.47487932443618774, -0.406816691160202, -0.21290387213230133, 1.2641149759292603, 0.3671129643917084, 0.07054252922534943, 0.04169272631406784, -0.2651430070400238, -0.2503424286842346, 0.1481752097606659, -0.9729811549186707, -0.09866701811552048, 0.17829784750938416, -0.5574763417243958, -0.118277408182621, 0.01046476885676384, -0.6638830304145813, 0.2435598373413086, -0.48510515689849854, 0.6813287734985352, -0.7354671955108643, -0.24134396016597748, 0.3897864520549774, -0.03787574917078018, 0.45321330428123474, -0.027228375896811485, -0.6696839928627014, 0.21628622710704803, 0.4487462341785431, 0.8079372048377991, -0.4621739983558655, -0.3110138773918152, -0.5067561268806458, -0.22157244384288788, -0.07558605074882507, 0.7424248456954956, -0.10697531700134277, -0.4401625394821167, -0.0684497058391571, 0.5291109681129456, -0.3619001507759094, -0.35327786207199097, 1.4383991956710815, -0.30654969811439514, 0.7618228793144226, -0.5269274711608887, -0.6070315837860107, -0.3245965242385864, 0.5024272799491882, -0.6201063394546509, 1.4389768838882446, 0.1236954852938652, -0.9316391944885254, 0.29105228185653687, -0.8605707883834839, -0.23195777833461761, 0.022624963894486427, 0.04051002115011215, -0.704393744468689, 0.06967689096927643, 0.13079947233200073, 0.47637251019477844, -0.35682278871536255, 0.31032559275627136, -0.023861311376094818, -0.3782467842102051, 0.056960441172122955, -0.39792734384536743, 1.0561599731445312, 0.29045119881629944, -0.31368598341941833, 0.21323364973068237, -1.0424301624298096, -0.0640091747045517, 0.008344179019331932, -0.5926365256309509, -0.28092435002326965, 0.1818692535161972, 0.2900397777557373, 0.16242347657680511, 0.39902257919311523, -0.7604445219039917, 0.28612521290779114, -0.7092549800872803, 0.18249839544296265, 0.7244773507118225, -0.32619717717170715, 0.4199444651603699, -0.4811413288116455, 0.3512483537197113, 0.07862483710050583, 0.13667544722557068, 0.010249118320643902, -0.4591450095176697, -0.974716305732727, -0.2860160768032074, 0.6815778613090515, 1.1809163093566895, -0.8814035058021545, 0.9165667295455933, -0.7758529186248779, -0.8898425698280334, -0.8756420612335205, -0.19346243143081665, 0.5446639060974121, 0.33628615736961365, 0.5690944790840149, -0.17017588019371033, -0.5496039986610413, -1.2129496335983276, -0.17111848294734955, -0.16474506258964539, -0.2839188277721405, 0.21549290418624878, 0.7111775875091553, -0.13679049909114838, 0.5723887085914612, -0.6092714071273804, -0.42177140712738037, -0.16673052310943604, 0.1383519172668457, 0.5045785903930664, 0.7148791551589966, 0.5792996883392334, -0.9714357256889343, -0.6537363529205322, -0.045902177691459656, -0.7509295344352722, -0.11230044066905975, 0.13084964454174042, -0.2541728615760803, 0.1151609793305397, 0.08048450946807861, -0.30957281589508057, 0.050411712378263474, 0.7047975063323975, -0.6303184032440186, 0.6352443099021912, -0.14513202011585236, 0.3010171949863434, -1.5155988931655884, 0.1612464189529419, -0.12329275906085968, -0.09207741171121597, -0.47011545300483704, -0.029514115303754807, 0.2860874831676483, 0.10436556488275528, -0.9134700894355774, 0.562008798122406, -0.25124630331993103, -0.1378948837518692, 0.33002859354019165, -0.007819783873856068, 0.05904066935181618, 0.8110669255256653, -0.04918055981397629, 0.8950657844543457, 0.7718262076377869, -0.6043822169303894, 0.17466548085212708, 0.640687882900238, -0.5135020613670349, 0.4670679569244385, -0.8856719136238098, -0.2942441999912262, 0.3154484033584595, -0.1023767814040184, -0.7282031774520874, 0.12007666379213333, 0.3551240563392639, -0.7437317967414856, 0.438560426235199, -0.1513908952474594, -0.8096794486045837, -0.032526642084121704, -0.34815165400505066, 0.4725414216518402, 0.7897418737411499, -0.20923766493797302, 0.7017674446105957, 0.10083404928445816, -0.07816415280103683, -0.5555638074874878, -1.08926260471344, -0.16576412320137024, -0.371620237827301, -0.8234201073646545, 0.25018587708473206, -0.4818864166736603, -0.007568096276372671, 0.04499334841966629, 0.33850550651550293, -0.10057314485311508, 0.017950646579265594, 0.056955426931381226, 0.26867836713790894, -0.5356997847557068, 0.1906365007162094, 0.04500340297818184, -0.16474318504333496, -0.17236243188381195, -0.2232220470905304, 0.6507002115249634, -0.3781810402870178, -0.2796042263507843, -0.653892457485199, 0.07029788196086884, 0.7023864388465881, -0.4687710106372833, 0.9005738496780396, 0.6024285554885864, -0.14399035274982452, 0.20576372742652893, -0.44371914863586426, 0.14035247266292572, -0.4760662615299225, 0.16618546843528748, -0.5197721123695374, -0.8259381651878357, 0.5815958976745605, 0.12917457520961761, 0.5100690126419067, 0.9402561783790588, 0.6884729266166687, 0.03956325724720955, 0.7435572743415833, 0.36018338799476624, 0.022858187556266785, 0.5246292948722839, -0.5433353185653687, -0.23770524561405182, -1.2248469591140747, 0.02423376776278019, -0.8232003450393677, -0.3269633948802948, -0.9029958248138428, -0.3071666359901428, 0.2253795862197876, 0.014501296915113926, -0.2624165415763855, 0.785594642162323, -0.6385126709938049, 0.24489371478557587, 0.5892645716667175, -0.1677776277065277, 0.292306125164032, 0.03918653354048729, -0.6246328353881836, -0.3676452040672302, -0.47424086928367615, -0.6024101376533508, 1.404715657234192, 0.4437088370323181, 0.3574501872062683, 0.24097295105457306, 0.492552250623703, 0.007651098538190126, 0.23830384016036987, -0.6959689259529114, 0.513422966003418, -0.4147132337093353, -0.7434409856796265, -0.37762850522994995, -0.6119546890258789, -0.8889614939689636, 0.5659339427947998, -0.34572845697402954, -0.5340946316719055, 0.16569723188877106, -0.028034640476107597, -0.04386186599731445, 0.4454140067100525, -0.7346999049186707, 1.2226330041885376, -0.07048079371452332, -0.04598206654191017, 0.3085247874259949, -0.5066354274749756, 0.26730093359947205, -0.012665868736803532, 0.2562289535999298, -0.24825313687324524, 0.15371045470237732, 0.7345815300941467, -0.07742141932249069, 0.4832668602466583, -0.06378094106912613, -0.04955125227570534, -0.010320249944925308, 0.06690908968448639, 0.47188639640808105, -0.16069823503494263, -0.4601442813873291, 0.4335545003414154, 0.03197237476706505, -0.4699430763721466, -0.15922129154205322, 0.5740161538124084, -0.8061966896057129, 0.03491248935461044, -0.4672553539276123, -0.6816123723983765, 0.07746769487857819, 0.3986489474773407, 0.8010268211364746, 0.7582184672355652, -0.3462962210178375, 0.6202486753463745, 0.9293214082717896, -0.3487934172153473, 0.39646485447883606, 0.8732268810272217, -0.17162251472473145, -0.6153791546821594, 0.9779096841812134, 0.17977921664714813, 0.4023563265800476, 0.6860633492469788, 0.11485428363084793, -0.16192594170570374, -0.8444780707359314, -0.8104336857795715, 0.306993305683136, -0.3251224458217621, -0.16245776414871216, -0.684288501739502, -0.045627932995557785, -0.3227534592151642, 0.25352439284324646, -0.5994084477424622, -0.5920318961143494, -0.20749878883361816, -0.19448015093803406, 0.24019548296928406, 0.2597096264362335, 0.02858041413128376, 0.45837247371673584, -1.1365737915039062, 0.19720372557640076, -0.14052821695804596, 0.45572590827941895, -0.5102323293685913, -0.8499809503555298, -0.5115113854408264, 0.05207538232207298, -0.6472795605659485, -0.718895435333252, 0.5398871898651123, 0.09784668684005737, 0.30852413177490234, 0.3065231740474701, 0.20425763726234436, 0.3564479351043701, -0.8374442458152771, 1.1340198516845703, -0.0728890523314476, -0.8150941133499146, 0.5292923450469971, -0.49317049980163574, 0.516214907169342, 0.999599039554596, 0.2968331277370453, -0.43516120314598083, -0.6305095553398132, -0.7517699003219604, -0.9047040939331055, 0.89467453956604, 0.7862470746040344, -0.1338898241519928, 0.24100913107395172, -0.0812448114156723, 0.005937361158430576, 0.14997050166130066, -1.2159873247146606, -0.4010241627693176, 0.0524730384349823, -0.40903475880622864, -0.2110559046268463, -0.30470266938209534, -0.18271125853061676, -0.21386843919754028, 1.2257100343704224, 0.19079254567623138, 0.24509991705417633, 0.46498411893844604, -0.16780470311641693, -0.2325538545846939, 0.36473026871681213, 1.1197936534881592, 0.5401521921157837, -0.5984044075012207, -0.22997742891311646, 0.3856274485588074, -0.5171036720275879, -0.1332329362630844, 0.13776689767837524, -0.47616323828697205, 0.322007417678833, 0.49329641461372375, 1.1953505277633667, 0.22145940363407135, -0.6981158256530762, 0.5225830078125, -0.4754754602909088, -0.48160862922668457, -0.7658225297927856, -0.18183310329914093, 0.12694549560546875, 0.04232814162969589, 0.2703196704387665, 0.12830086052417755, 0.18590396642684937, -0.13521204888820648, 0.17919857800006866, 0.05928194150328636, -0.7707531452178955, -0.5846131443977356, 0.49767613410949707, 0.14606840908527374, -0.41347235441207886, 0.5353989601135254, -0.4112084209918976, -0.6251622438430786, 0.43579554557800293, 0.17515669763088226, 1.163962721824646, -0.2562040090560913, -0.21094034612178802, 0.7717474699020386, 0.6821208000183105, -0.2901999056339264, 0.5411626696586609, 0.13533525168895721, -0.7757850885391235, -0.6310516595840454, -0.948653519153595, -0.19281455874443054, 0.15921786427497864, -0.9412634372711182, 0.4287678003311157, 0.3701013922691345, 0.06184567138552666, -0.3190014958381653, 0.24664464592933655, -0.5601027011871338, 0.13589975237846375, -0.3242497444152832, 1.2052631378173828, -1.096909523010254, 0.9646582007408142, 0.5820377469062805, -0.28319036960601807, -0.8989357352256775, -0.20346160233020782, -0.2985820472240448, -0.4420936703681946, 0.672892153263092, 0.17907589673995972, 0.3234919607639313, -0.14848440885543823, -0.25294029712677, -0.8912959098815918, 1.238756537437439, 0.260777086019516, -0.6431921124458313, 0.05470703914761543, 0.11540301144123077, 0.5696083307266235, -0.3963052034378052, 0.019791610538959503, 0.4543305039405823, 0.7929086089134216, 0.11949685215950012, -1.1768674850463867, -0.33158332109451294, -0.6043033003807068, -0.31927165389060974, 0.6294426918029785, -0.6172523498535156, 1.0560749769210815, 0.5318078398704529, -0.19253164529800415, 0.10068917274475098, 0.6996088027954102, 0.3220892548561096, 0.2961205542087555, 0.5786607265472412, 1.2467443943023682, 0.4051622450351715, -0.5255005359649658, 1.141741156578064, -0.31487077474594116, 0.5348348617553711, 1.3018583059310913, -0.07225397974252701, 1.033201813697815, 0.3339828848838806, -0.13652025163173676, 0.5639377236366272, 0.7085025310516357, -0.3736352026462555, 0.5614447593688965, 0.08716247975826263, 0.17827296257019043, -0.15285071730613708, 0.23626691102981567, -0.7498092651367188, 0.2924576699733734, 0.20290552079677582, -0.24018891155719757, 0.08533252775669098, -0.011302526108920574, 0.029942091554403305, -0.062462907284498215, -0.137272909283638, 0.6896237134933472, -0.03115549311041832, -0.6846230626106262, 0.7472549080848694, -0.04698162153363228, 0.7363204956054688, -0.7758157253265381, 0.12599444389343262, -0.00544392317533493, 0.2626134157180786, 0.06021557375788689, -0.6485454440116882, 0.5018516778945923, 0.025224719196558, -0.35038211941719055, -0.4476480782032013, 0.2675323486328125, -0.6598397493362427, -0.9684261679649353, 0.43500959873199463, 0.43039149045944214, 0.4352962076663971, 0.1061524748802185, -0.9684279561042786, 0.03781704604625702, 0.15363667905330658, -0.675915002822876, 0.07880092412233353, 0.7273500561714172, 0.3261406123638153, 0.5458953380584717, 0.7092070579528809, 0.27452120184898376, 0.20098280906677246, -0.03438195213675499, 0.7571031451225281, -0.4620698094367981, -0.5059042572975159, -0.8993595242500305, 0.9073845744132996, -0.14285656809806824, -0.7431002855300903, 0.8053761124610901, 1.1390397548675537, 1.1202107667922974, -0.1828182339668274, 0.3642376661300659, -0.028128255158662796, 0.791908323764801, -0.7280338406562805, 0.6933283805847168, -1.0362753868103027, 0.2223009467124939, -0.18613049387931824, -1.0133250951766968, -0.265909880399704, 0.36680707335472107, -0.20113268494606018, -0.44721463322639465, 0.8651346564292908, 0.6790527701377869, -0.16894099116325378, -0.23732422292232513, 0.31051620841026306, 0.3240116536617279, 0.22645613551139832, 0.6079620122909546, 0.42524126172065735, -1.05380117893219, 0.6427434682846069, -0.2679540812969208, -0.06032158061861992, -0.03947708010673523, -0.8179973363876343, -0.9341697096824646, -0.7077443599700928, -0.18522194027900696, -0.263780415058136, -0.31438112258911133, 0.9655416011810303, 0.5537946820259094, -0.9654405117034912, -0.5733950734138489, 0.07924918085336685, 0.18411888182163239, -0.20469477772712708, -0.26153817772865295, 0.6933436393737793, -0.3237786591053009, -1.0740318298339844, 0.5196166634559631, 0.12070458382368088, -0.0239222664386034, -0.07101954519748688, -0.34616127610206604, -0.5203468203544617, -0.025687256827950478, 0.32719841599464417, 0.009919661097228527, -0.5701760053634644, 0.09074538946151733, 0.19418714940547943, -0.15163679420948029, 0.39960071444511414, 0.4320012629032135, -0.26322421431541443, 0.2900610566139221, 0.949661374092102, 0.38882002234458923, 0.5410385727882385, -0.1842338740825653, 0.6307083368301392, -0.8072382807731628, 0.33167195320129395, 0.24955888092517853, 0.6642098426818848, 0.4070180654525757, -0.10721146315336227, 0.836850106716156, 0.22781920433044434, -0.7222460508346558, -1.1872434616088867, 0.11917741596698761, -1.3055055141448975, -0.0004894344601780176, 1.0085846185684204, -0.36794179677963257, -0.34092652797698975, 0.3130890130996704, -0.16396410763263702, 0.22080735862255096, -0.3577684462070465, 0.3870626986026764, 1.011582374572754, 0.45003873109817505, 0.1587396264076233, -0.7907425761222839, 0.4306254982948303, 0.563334584236145, -0.7793226838111877, -0.1778474599123001, 0.20486964285373688, 0.2236212193965912, 0.438070148229599, 0.5864631533622742, -0.33642715215682983, 0.10278388112783432, -0.343638151884079, 0.5202966332435608, -0.06475940346717834, -0.2381638139486313, -0.40463846921920776, -0.03897281363606453, -0.11370784044265747, -0.36113494634628296 ]
Yntec/makeitdoubleplz
Yntec
"2023-10-31T15:41:43Z"
14,093
3
diffusers
[ "diffusers", "Base Model", "Person", "Photorealistic", "stable-diffusion", "stable-diffusion-diffusers", "text-to-image", "license:creativeml-openrail-m", "endpoints_compatible", "has_space", "diffusers:StableDiffusionPipeline", "region:us" ]
text-to-image
"2023-10-31T14:55:59Z"
--- license: creativeml-openrail-m library_name: diffusers pipeline_tag: text-to-image tags: - Base Model - Person - Photorealistic - stable-diffusion - stable-diffusion-diffusers - diffusers - text-to-image --- # drrjdj Original page: https://civitai.com/models/109199?modelVersionId=117652 Sample and prompt: ![Sample](https://cdn-uploads.huggingface.co/production/uploads/63239b8370edc53f51cd5d42/_7Qe55i1RCuvKAhk2uVwW.png) macro studio photo of old antique Victorian marmor figurine of cute Rinoa, chibi Rinoa Heartilly, eyeliner, very slim, arm warmers, necklace, sleeveless coat, black shirt, blue skirt, arm ribbon, bike shorts, boots, long hair, black hair, cozy home in the background with candles and plants, Rinoa on flat round porcelain base, by Michelangelo
[ -0.6552863717079163, -0.791226327419281, 0.026745043694972992, 0.09343481808900833, -0.45949262380599976, -0.228839710354805, 0.22304007411003113, -0.4915809631347656, 1.0130733251571655, 0.9793905019760132, -0.7240490317344666, -0.2797970771789551, -0.23736606538295746, 0.20389892160892487, 0.3430790901184082, 0.6741682291030884, 0.5746028423309326, 0.4424893856048584, 0.06372123956680298, -0.059194546192884445, -0.29613804817199707, 0.09228573739528656, -0.742072582244873, -0.10811695456504822, 0.6335236430168152, 0.5472546219825745, 0.7908937335014343, 0.3075117766857147, 0.059681061655282974, 0.27302059531211853, 0.03781680017709732, 0.4452022910118103, -0.2973629832267761, 0.2080959975719452, -0.12182199209928513, -0.9509428143501282, -0.7523817420005798, 0.313859760761261, 0.14630605280399323, 0.4056951105594635, 0.3979305028915405, 0.2090636044740677, -0.07660737633705139, 0.5430130362510681, -0.4745118021965027, 0.21389219164848328, 0.10040159523487091, -0.0270831435918808, -0.454231858253479, -0.2183694988489151, -0.47161853313446045, -0.515720546245575, -0.1643599271774292, -0.8640260100364685, 0.25978097319602966, -0.2587738037109375, 1.0606721639633179, 0.07322213798761368, -0.6089364290237427, -0.3217718005180359, -0.6662486791610718, 0.5867794752120972, -0.6087566614151001, 0.33383309841156006, 0.1766195148229599, 0.5856506824493408, -0.5706766247749329, -0.8443443775177002, -0.2724815905094147, -0.07575206458568573, -0.4029425084590912, 0.4444771111011505, -0.06248221918940544, -0.8473939299583435, 0.45201921463012695, 0.37648603320121765, -0.6170384287834167, -0.3638414144515991, -0.4631876051425934, 0.2128436267375946, 0.5865453481674194, 0.017826618626713753, 0.5451143383979797, 0.1919173002243042, -0.7401838898658752, -0.22287285327911377, -0.627086877822876, 0.048519667237997055, 0.3954411447048187, 0.31147369742393494, -0.26625412702560425, 0.6925163269042969, -0.08675334602594376, 0.8433364033699036, 0.32234689593315125, -0.3545331358909607, 0.1856619417667389, -0.26424092054367065, -0.17728176712989807, -0.44902846217155457, 0.831275463104248, 0.6902944445610046, 0.3321882486343384, 0.45996329188346863, 0.13862821459770203, -0.7066569924354553, 0.19987966120243073, -1.1587265729904175, -0.4402424395084381, -0.2085065245628357, -0.5666854381561279, -0.26314467191696167, 0.3764145076274872, -1.1140239238739014, -0.31000030040740967, 0.16478601098060608, -0.002918611280620098, -0.2125597596168518, -0.378526896238327, -0.030188195407390594, 0.24314755201339722, 0.08956296741962433, 0.5186300277709961, -0.9481598734855652, 0.00293446215800941, 0.32181113958358765, 0.548542857170105, 0.5474018454551697, 0.42500296235084534, 0.0755288228392601, -0.08412328362464905, -0.6084480881690979, 0.6842498183250427, -0.36024799942970276, -0.5925077795982361, -0.32856130599975586, 0.770011842250824, 0.032233502715826035, -0.4353446662425995, 0.8626771569252014, -0.4004771113395691, 0.43386971950531006, -0.10026690363883972, -0.17268863320350647, -0.4361058175563812, -0.1591319590806961, -1.1719419956207275, 0.40096884965896606, 0.44921115040779114, -0.9545377492904663, 0.5974575281143188, -0.4042092263698578, -0.1140071377158165, 0.11879054456949234, -0.09093357622623444, -0.8084516525268555, 0.43493619561195374, 0.1737605780363083, 0.4388373792171478, -0.29134315252304077, -0.43674585223197937, -0.9024719595909119, -0.20524121820926666, 0.6474676132202148, -0.3312261998653412, 1.078251838684082, 0.7732045650482178, -0.27887576818466187, -0.1932423710823059, -1.0337449312210083, -0.01459568738937378, 0.4976032078266144, 0.1329493671655655, -0.5587896704673767, -0.8293953537940979, -0.04825431853532791, 0.31247225403785706, 0.7827575206756592, -0.3099687993526459, 0.251981645822525, -0.09879790246486664, -0.013461759313941002, 0.2631164789199829, 0.4253406822681427, 0.13684123754501343, -0.6852254867553711, 0.9156736731529236, -0.05621292069554329, 0.5421808362007141, -0.1459929347038269, -0.4539979100227356, -1.0213279724121094, -0.697114884853363, 0.4339693486690521, 0.24753828346729279, -0.39594998955726624, 0.5360642075538635, 0.15664784610271454, -0.8524185419082642, -0.740324854850769, -0.17593149840831757, 0.05054733157157898, 0.20343630015850067, -0.18517376482486725, -0.40630999207496643, -0.2963733375072479, -1.441493272781372, 0.11091463267803192, -0.05454151704907417, -0.2991260290145874, 0.666599452495575, 0.34388184547424316, 0.0893670842051506, 0.5822451710700989, -0.2690023183822632, -0.22506970167160034, 0.09406428784132004, -0.10077852010726929, 0.8991777300834656, 0.7348845601081848, 1.0587289333343506, -0.7401947379112244, -0.4984467327594757, -0.09672988951206207, -0.35001686215400696, -0.10283965617418289, 0.01698821224272251, -0.40800949931144714, -0.07265645265579224, 0.23286662995815277, -0.5237849354743958, 0.7038987278938293, 0.10037462413311005, -0.548167884349823, 0.5858899354934692, -0.46295827627182007, 0.7638747692108154, -1.6751633882522583, 0.34239521622657776, -0.07656438648700714, -0.30028703808784485, -0.2651463747024536, 0.551321268081665, -0.12556128203868866, -0.0450742207467556, -0.6429606080055237, 0.6206431984901428, -0.9166051745414734, 0.2343146950006485, -0.3339337408542633, -0.1669098138809204, 0.2197960764169693, 0.14212921261787415, -0.01983739249408245, 0.6844959855079651, 0.3741108477115631, -0.31729981303215027, 0.36214950680732727, 0.46941691637039185, -0.22343501448631287, 0.8707259893417358, -1.0661087036132812, 0.10432490706443787, 0.07068835943937302, 0.004339765291661024, -0.9126640558242798, -0.5445312857627869, 0.7152798175811768, -0.48848041892051697, 0.382260262966156, -0.565934419631958, -0.47145819664001465, -0.36523282527923584, -0.32007214426994324, 0.3200852870941162, 0.4073781669139862, -0.3431590795516968, 0.36630257964134216, 0.0392921157181263, 0.032441191375255585, -0.5225648283958435, -0.684685230255127, -0.26502174139022827, -0.5817195773124695, -0.36232757568359375, 0.024668846279382706, -0.13879528641700745, -0.4086584448814392, -0.3416547477245331, 0.015520166605710983, -0.3699405789375305, -0.012151053175330162, 0.7700592279434204, 0.7809324860572815, -0.454661101102829, -0.44810113310813904, -0.3509575128555298, -0.13025939464569092, 0.04789641126990318, 0.3790333569049835, 0.7122573852539062, -0.33670884370803833, -0.5940608382225037, -1.0124437808990479, 0.23598821461200714, 1.228299856185913, 0.1695561707019806, 0.5778865218162537, 0.8267687559127808, -0.21087175607681274, -0.049557432532310486, -0.5177035927772522, -0.46293020248413086, -0.35996198654174805, -0.4781506359577179, -0.7654466032981873, -0.5328270792961121, 0.6211580634117126, 0.05262333154678345, -0.2710152566432953, 0.6102097630500793, 0.6114927530288696, -0.08832353353500366, 0.9124426245689392, 0.3477060794830322, -0.010739642195403576, 0.6890260577201843, -0.8077799081802368, -0.005568215157836676, -0.669567346572876, -0.19631600379943848, -0.2279798984527588, -0.4073464870452881, -0.8847783803939819, -0.8940517902374268, 0.07504227757453918, 0.5367359519004822, -0.2594560980796814, 0.6993299722671509, -0.5217020511627197, 0.20428460836410522, 0.5763780474662781, 0.6182573437690735, 0.2997978627681732, -0.09311286360025406, 0.05439015105366707, -0.1664651334285736, -0.2939111888408661, -0.8672478795051575, 0.7424296736717224, 0.30068549513816833, 0.6951543092727661, 0.22856992483139038, 0.4860021770000458, -0.13391028344631195, 0.2647355794906616, -0.607690691947937, 0.3675391972064972, 0.0019031965639442205, -1.0747562646865845, 0.16812774538993835, -0.06637167930603027, -0.9495656490325928, 0.37841787934303284, -0.35405775904655457, -0.35970497131347656, 0.7248029708862305, -0.00819712970405817, -0.5376485586166382, 0.14581914246082306, -0.29882097244262695, 0.8386629819869995, -0.1623375564813614, -0.5665954947471619, 0.17817358672618866, -0.560749888420105, 0.6136312484741211, 0.35266682505607605, 0.0618567019701004, -0.28161537647247314, -0.10638899356126785, 0.10512702912092209, -0.3505614697933197, 0.8742282390594482, 0.05557989701628685, 0.21938616037368774, 0.3795657157897949, 0.195639505982399, 0.26373568177223206, 0.6332690715789795, -0.03183863312005997, -0.7167425155639648, -0.05751114338636398, -0.4690438210964203, -0.601021409034729, 0.6641151905059814, -0.4740346670150757, -0.3987954258918762, -0.412688672542572, -0.29740604758262634, 0.2469835728406906, 0.23309403657913208, 0.7396543622016907, 0.6968750357627869, -0.7960424423217773, 0.276335209608078, 0.5785871744155884, 0.07824315875768661, 0.3585461974143982, 0.12720242142677307, -0.3947107791900635, -0.5140668749809265, 0.47527191042900085, -0.044765666127204895, 0.3325912058353424, 0.15865013003349304, 0.23862458765506744, -0.1619568020105362, -0.21111354231834412, -0.549639105796814, 0.6589633226394653, -0.19412900507450104, -0.019579149782657623, -0.4413895606994629, 0.039968039840459824, -0.43000006675720215, 0.029202474281191826, -0.4464675486087799, -0.5196086168289185, -1.033542513847351, 0.2530530095100403, 0.7747583389282227, 0.7917436361312866, -0.11295296996831894, 0.0341697558760643, -0.5110321044921875, -0.04788167402148247, 0.7944198250770569, -0.1548904925584793, -0.1043652892112732, -0.2977694272994995, 0.23731406033039093, 0.09085068851709366, -0.14296934008598328, -0.6809989213943481, 0.899580180644989, -0.3060569763183594, 0.45340806245803833, 0.7767957448959351, 0.017185771837830544, 0.792618989944458, -0.3037026524543762, 0.5550909638404846, 0.41431760787963867, -0.10377246886491776, 0.5519161820411682, -0.6131123900413513, -0.12860366702079773, 0.9751304388046265, 0.5593028664588928, -0.19564157724380493, -0.1454978883266449, -0.860719621181488, -0.7240757942199707, 0.06566642969846725, 0.013123070821166039, 0.03711901977658272, 0.005587607156485319, 0.2980148494243622, 0.137669175863266, 0.35879987478256226, -0.6199614405632019, -0.5277133584022522, -0.22298991680145264, -0.10603801906108856, 0.15826447308063507, -0.21904608607292175, -0.28845274448394775, -0.1985701322555542, 0.7151346206665039, -0.1215585246682167, 0.37486007809638977, 0.05408451333642006, 0.17729757726192474, 0.16646361351013184, 0.3679821789264679, 0.9553917646408081, 0.9855182766914368, -0.675467848777771, -0.2107623964548111, -0.05655200406908989, -0.3359796702861786, 0.1342507302761078, -0.08085505664348602, -0.368274986743927, 0.23136821389198303, 0.21276052296161652, 0.8432051539421082, 0.17109714448451996, -0.23611320555210114, 0.47981294989585876, -0.26332634687423706, 0.498369961977005, -0.8499762415885925, 0.4234646260738373, 0.4241945743560791, 0.5850921273231506, 0.10680046677589417, 0.0564986914396286, 0.3875562250614166, -0.9382461905479431, 0.4302015006542206, 0.6324461102485657, -0.742546558380127, -0.41009610891342163, 0.8594405651092529, -0.33688727021217346, -0.5852620601654053, 0.11565766483545303, -0.2358854115009308, -0.09759708493947983, 0.5761712789535522, 0.5919979810714722, 0.6733694672584534, -0.41730332374572754, 0.43719059228897095, 0.5497575402259827, -0.14819566905498505, 0.23078861832618713, 0.35022541880607605, 0.1003328487277031, -0.2145974189043045, 0.30172160267829895, -0.6056424975395203, -0.598790168762207, 0.1941288709640503, -0.73609858751297, 0.5503402352333069, -0.7044656872749329, -0.24918454885482788, -0.21573783457279205, 0.2792975902557373, -0.5511486530303955, 0.6310039758682251, -0.2819996178150177, 0.9969807267189026, -0.8665857315063477, 1.0474859476089478, 0.405495822429657, -0.7858831286430359, -0.8713452219963074, -0.42120304703712463, 0.13105478882789612, -0.7350137829780579, 0.6637513041496277, 0.11721992492675781, -0.07625823467969894, -0.5409055948257446, -0.5314064025878906, -0.5140308737754822, 1.300112009048462, -0.027893459424376488, -0.7566338181495667, 0.11261239647865295, -0.3905772864818573, 0.4378277659416199, -1.0607608556747437, 0.8563264608383179, 0.628138542175293, 0.36311620473861694, 0.7622448801994324, -0.5129979848861694, -0.17573155462741852, -0.6941447257995605, 0.1621992439031601, -0.04880596324801445, -1.067078709602356, 1.1191356182098389, -0.1386096179485321, -0.2323438823223114, 0.8691964745521545, 0.8360615372657776, 0.705522894859314, 0.29636266827583313, 0.9281926155090332, 0.8002510666847229, 0.17752417922019958, -0.06764727085828781, 0.9285773634910583, -0.06509289145469666, 0.1305873543024063, 1.052456259727478, 0.02539520151913166, 0.46210435032844543, 0.06953376531600952, -0.3762877583503723, 0.4905439019203186, 0.9817062020301819, -0.4375045597553253, 0.40943190455436707, 0.31609782576560974, -0.6464282274246216, -0.006684169638901949, -0.45293205976486206, -0.3536050319671631, 0.36827054619789124, 0.12116079032421112, -0.5668602585792542, -0.013660037890076637, 0.09343831241130829, 0.2837613821029663, -0.013787403702735901, -0.16126997768878937, 0.5871664881706238, 0.34083351492881775, -0.12428265064954758, 0.4299978017807007, -0.6606755256652832, 0.520546555519104, -0.32753872871398926, -0.21872617304325104, -0.28357914090156555, 0.23794445395469666, -0.07273165881633759, -0.4644712507724762, 0.09016899019479752, -0.42254021763801575, -0.16933976113796234, -0.06952936947345734, 0.7434952259063721, -0.3868151605129242, -0.9047577977180481, 0.11168234050273895, 0.4021352529525757, 0.6874829530715942, 0.5339869260787964, -0.9714248180389404, -0.237840935587883, 0.21106472611427307, -0.42192548513412476, 0.04534393176436424, 0.6988072395324707, 0.15618570148944855, 0.38961485028266907, 0.4142659902572632, 0.49420425295829773, -0.13103149831295013, 0.23732587695121765, 0.6417089700698853, -0.515471339225769, 0.013551085256040096, -0.555098295211792, 0.6477711200714111, -0.41162267327308655, -0.7551623582839966, 0.9059566855430603, 0.4932594299316406, 0.5355313420295715, -0.6502907276153564, 0.22684013843536377, -0.060784678906202316, 0.6925275921821594, -0.45377805829048157, 1.0100075006484985, -0.793409526348114, -0.25580650568008423, -0.24252741038799286, -0.8626958727836609, -0.15194912254810333, 1.0319881439208984, 0.33675679564476013, 0.3116055130958557, 0.23061279952526093, 1.1416202783584595, -0.27696341276168823, -0.014494898729026318, 0.2286023497581482, 0.17444168031215668, 0.08831062912940979, 0.12208741903305054, 0.8628862500190735, -0.40945300459861755, -0.2440263032913208, -0.675177812576294, -0.2026139497756958, -0.769730269908905, -0.8610130548477173, -1.1495698690414429, -0.587300181388855, -0.3228818476200104, -0.5028578639030457, -0.2738209664821625, 1.0229369401931763, 1.0095103979110718, -1.0658951997756958, -0.33866554498672485, 0.34548935294151306, -0.020990576595067978, 0.11695859581232071, -0.306425005197525, 0.21697048842906952, 0.5203402042388916, -1.25075364112854, 0.5035534501075745, 0.18710578978061676, 0.8922823667526245, -0.37982141971588135, 0.6045058965682983, -0.1195576936006546, -0.04351889342069626, 0.057251520454883575, 0.25580060482025146, -0.6211972236633301, -0.10477259010076523, -0.025067707523703575, -0.1657770276069641, 0.18293239176273346, 1.0417522192001343, -0.2795095443725586, 0.17987129092216492, 0.7247627973556519, -0.12690237164497375, 0.5400195121765137, 0.11201389133930206, 0.37705254554748535, -0.11883682757616043, 0.43069344758987427, 0.29629001021385193, 0.7876308560371399, 0.32924148440361023, -0.503728449344635, 0.7653579115867615, 0.2806590795516968, -0.7052093148231506, -0.5067585110664368, 0.47278374433517456, -1.6922563314437866, -0.24697303771972656, 0.13018085062503815, -0.07656694948673248, -0.9421842694282532, 0.2561316192150116, -0.4987245202064514, 0.3991781175136566, -0.3226938843727112, 0.34154486656188965, 0.4879421591758728, -0.18636979162693024, -0.5899734497070312, -0.8483859300613403, 0.05980155989527702, 0.10790835320949554, -0.7158732414245605, -0.1859494000673294, 0.5491907000541687, 0.5499935746192932, 0.6424217224121094, 0.1717725247144699, -0.7609284520149231, 0.23298802971839905, 0.07133812457323074, 0.4205052852630615, -0.14030636847019196, -0.32068511843681335, 0.09347323328256607, 0.22638006508350372, 0.046121641993522644, -0.6829481720924377 ]
thatdramebaazguy/roberta-base-squad
thatdramebaazguy
"2022-07-01T19:12:50Z"
14,084
1
transformers
[ "transformers", "pytorch", "tf", "jax", "roberta", "question-answering", "roberta-base", "qa", "dataset:SQuAD", "license:cc-by-4.0", "autotrain_compatible", "endpoints_compatible", "region:us" ]
question-answering
"2022-03-02T23:29:05Z"
--- datasets: - SQuAD language: - English thumbnail: tags: - roberta - roberta-base - question-answering - qa license: cc-by-4.0 --- # roberta-base + SQuAD QA Objective: This is Roberta Base trained to do the SQuAD Task. This makes a QA model capable of answering questions. ``` model_name = "thatdramebaazguy/roberta-base-squad" pipeline(model=model_name, tokenizer=model_name, revision="v1.0", task="question-answering") ``` ## Overview **Language model:** roberta-base **Language:** English **Downstream-task:** QA **Training data:** SQuADv1 **Eval data:** SQuAD **Infrastructure**: 2x Tesla v100 **Code:** See [example](https://github.com/adityaarunsinghal/Domain-Adaptation/blob/master/scripts/shell_scripts/train_movieR_just_squadv1.sh) ## Hyperparameters ``` Num examples = 88567 Num Epochs = 10 Instantaneous batch size per device = 32 Total train batch size (w. parallel, distributed & accumulation) = 64 ``` ## Performance ### Eval on SQuADv1 - epoch = 10.0 - eval_samples = 10790 - exact_match = 83.6045 - f1 = 91.1709 ### Eval on MoviesQA - eval_samples = 5032 - exact_match = 51.6494 - f1 = 68.2615 Github Repo: - [Domain-Adaptation Project](https://github.com/adityaarunsinghal/Domain-Adaptation/) ---
[ -0.2891579270362854, -0.6822215914726257, 0.564027726650238, 0.3331332206726074, -0.21324509382247925, 0.3305402994155884, -0.054964013397693634, 0.0021174768917262554, -0.11325737833976746, 0.5096145868301392, -1.1113371849060059, -0.5669219493865967, -0.6477239727973938, -0.06120410934090614, -0.18094858527183533, 1.3991354703903198, -0.059470824897289276, 0.24986010789871216, 0.020779794082045555, -0.20105572044849396, -0.48093247413635254, -0.5157440900802612, -0.8657201528549194, 0.004413940943777561, 0.19126738607883453, 0.33431631326675415, 0.4270515441894531, 0.46966102719306946, 0.6168273091316223, 0.3453356623649597, 0.021247461438179016, 0.13907888531684875, -0.5918138027191162, 0.36126771569252014, -0.08003372699022293, -0.4006921947002411, -0.7810614109039307, -0.22050614655017853, 0.8508930802345276, 0.05495725944638252, 0.05991188809275627, 0.4561847746372223, -0.2818388044834137, 0.8225311040878296, -0.7062548398971558, 0.48206430673599243, -0.5628229379653931, -0.3496640920639038, 0.013837611302733421, -0.10673859715461731, -0.26237308979034424, -0.025697506964206696, 0.19737884402275085, -0.6857991218566895, 0.3164544403553009, 0.08075394481420517, 1.542283296585083, 0.35317596793174744, -0.18538573384284973, 0.006345543544739485, -0.6561864614486694, 1.1043388843536377, -0.8006651997566223, 0.16720335185527802, 0.5008446574211121, 0.43949130177497864, 0.14710700511932373, -0.5662536025047302, -0.5349871516227722, 0.003282768651843071, 0.2610410749912262, 0.3367433249950409, -0.29705119132995605, -0.06939589977264404, 0.28939518332481384, 0.06297264248132706, -0.9788209795951843, -0.059130553156137466, -0.6669255495071411, -0.29466673731803894, 0.5587427616119385, 0.4379556179046631, 0.22999146580696106, -0.16737648844718933, -0.566011905670166, -0.23249588906764984, -0.4484054446220398, 0.12633264064788818, 0.34836864471435547, 0.4038802683353424, -0.4099237024784088, 0.4333634674549103, -0.6507699489593506, 0.5617541074752808, 0.18386666476726532, 0.2934303283691406, 0.5602401494979858, -0.5324183702468872, -0.4721381962299347, -0.3207690119743347, 0.7567770481109619, 0.2572595179080963, 0.23475779592990875, -0.065931037068367, -0.12168599665164948, 0.027718668803572655, 0.49780115485191345, -0.8618667125701904, -0.25344669818878174, 0.7667282819747925, -0.08625595271587372, -0.2557542324066162, 0.21972940862178802, -0.6256441473960876, 0.3542129695415497, 0.033050645142793655, 0.6390231847763062, -0.5931304097175598, -0.23729540407657623, 0.0723256766796112, -0.49397629499435425, 0.5965876579284668, 0.2002839744091034, -0.7247467637062073, 0.24821749329566956, 0.5445951819419861, 0.7095248699188232, -0.1543983519077301, -0.6401254534721375, -0.6745241284370422, 0.3386914134025574, 0.11218514293432236, 0.8540845513343811, 0.1567343771457672, -0.14322596788406372, -0.03463255614042282, 0.3683798015117645, -0.44659924507141113, -0.4569007456302643, 0.47385355830192566, -0.7439912557601929, 0.3827613890171051, -0.17728190124034882, -0.295174241065979, -0.1567986160516739, 0.36675289273262024, -0.4166601300239563, 0.9017372131347656, 0.75706946849823, -0.261090487241745, 0.29927319288253784, -0.7093734741210938, -0.20657798647880554, 0.18548643589019775, 0.25663721561431885, -0.6386879682540894, -0.2785078287124634, 0.23305927217006683, 0.34350618720054626, -0.4151623249053955, 0.13275641202926636, -0.015124191530048847, -0.2744556963443756, 0.13877558708190918, -0.1153714656829834, 1.233194351196289, 0.13227826356887817, -0.3213842511177063, 0.4332752227783203, -0.6985796093940735, 0.6676236391067505, -0.060567427426576614, -0.3434372544288635, 0.19744040071964264, -0.24880164861679077, 0.4439956843852997, 0.19298025965690613, 0.2705615162849426, -0.37270626425743103, 0.053752150386571884, -0.31047722697257996, 0.3734327554702759, 0.6386566162109375, 0.0874793604016304, 0.47177764773368835, -0.545003354549408, 0.8162875175476074, 0.16662146151065826, 0.28928911685943604, 0.24457567930221558, -0.5375295877456665, -0.9316566586494446, -0.49203333258628845, 0.24285052716732025, 0.7753097414970398, -0.5860586762428284, 0.7782031893730164, -0.1570180207490921, -0.6087762713432312, -0.6591909527778625, 0.03363949805498123, 0.7635079622268677, 0.3578643500804901, 0.5799617767333984, -0.41174060106277466, -0.8999233245849609, -0.9802126884460449, 0.15258841216564178, -0.5747593641281128, -0.06115114688873291, 0.05005500093102455, 0.7567309737205505, -0.1723233014345169, 0.741611897945404, -0.5305862426757812, -0.4474850296974182, -0.5297739505767822, -0.023164844140410423, 0.26016759872436523, 0.7963839769363403, 0.6602477431297302, -0.5816252827644348, -0.4061954617500305, -0.43477368354797363, -0.7665024995803833, 0.04113912209868431, -0.025145485997200012, -0.41335517168045044, 0.2555578351020813, -0.19355016946792603, -0.8007097244262695, 0.13854768872261047, 0.7375392317771912, -0.3587648272514343, 0.6727181673049927, -0.038802411407232285, 0.40757039189338684, -1.2300359010696411, -0.14650963246822357, -0.09333216398954391, -0.2009967565536499, -0.4347177743911743, 0.5121225118637085, 0.04746582359075546, -0.09221379458904266, -0.7403181791305542, 0.3857041299343109, -0.44905441999435425, 0.04508152976632118, -0.22191385924816132, -0.04575959965586662, 0.18156731128692627, 0.7703197598457336, -0.12483317404985428, 1.262138843536377, 0.8953508138656616, -0.6658288240432739, 0.4505179524421692, 0.5045297741889954, -0.052698537707328796, 0.4660875201225281, -0.881106972694397, 0.19745567440986633, 0.17519661784172058, 0.330930233001709, -1.075443148612976, -0.22638793289661407, 0.3928973972797394, -0.6338465809822083, 0.02782406657934189, -0.6031908392906189, -0.3251539468765259, -0.09820589423179626, -0.20734494924545288, 0.5384278297424316, 0.895779550075531, 0.039136577397584915, 0.3280267119407654, 0.4946574866771698, 0.02680042013525963, -0.2799975872039795, -0.46917375922203064, -0.20312106609344482, -0.2249571830034256, -0.7027487754821777, 0.2261546552181244, -0.23923882842063904, -0.11882220953702927, -0.01855436898767948, -0.03121304139494896, -0.8625705242156982, -0.11594417691230774, 0.32993459701538086, 0.5481496453285217, -0.48590087890625, -0.12927649915218353, -0.10155164450407028, -0.2471587061882019, 0.1404559165239334, -0.20362010598182678, 0.7724825143814087, -0.43890851736068726, -0.05084630846977234, -0.6287801861763, 0.3257909417152405, 0.7366016507148743, -0.3115909993648529, 0.8934789299964905, 0.7284582257270813, -0.03796705976128578, -0.287100225687027, -0.3717902898788452, -0.06694785505533218, -0.4245104193687439, 0.6702945232391357, -0.34406766295433044, -0.6261745691299438, 0.704463541507721, 0.1932366043329239, -0.37961894273757935, 0.8432244062423706, 0.7084673047065735, -0.31079012155532837, 0.974687933921814, 0.3189951181411743, -0.12884633243083954, 0.3435996472835541, -0.8510120511054993, -0.06733984500169754, -1.1090275049209595, -0.0034251553006470203, -0.8072752952575684, 0.03054233454167843, -0.49800539016723633, -0.5622591972351074, 0.4149809181690216, 0.06727003306150436, -0.5879077315330505, 0.90693199634552, -0.3397408425807953, 0.2520133852958679, 0.520164966583252, 0.21494220197200775, -0.01829477958381176, -0.3512961268424988, 0.3617570400238037, 0.1841144859790802, -0.768173098564148, -0.4483054578304291, 1.0971919298171997, 0.15964637696743011, 0.3591669201850891, 0.18912872672080994, 0.6923692226409912, -0.03156787157058716, -0.33921557664871216, -0.6842256784439087, 0.6342332363128662, 0.10096052289009094, -0.9489426612854004, -0.3992694914340973, -0.2413836568593979, -0.7971019148826599, -0.003144709160551429, -0.0736427903175354, -0.6096474528312683, 0.07932741194963455, -0.06194927915930748, -0.3097999393939972, 0.029649436473846436, -0.7596228718757629, 0.9987767934799194, -0.056412819772958755, -0.18085937201976776, -0.30020448565483093, -0.5359816551208496, 0.26454830169677734, -0.009053567424416542, -0.10058758407831192, -0.2553364038467407, 0.04614023119211197, 0.7647812366485596, -0.5438647866249084, 0.5005887746810913, -0.22533458471298218, 0.3782361149787903, 0.41897499561309814, -0.16297471523284912, 0.5409010648727417, 0.2096935361623764, -0.23005998134613037, 0.19822213053703308, 0.30491194128990173, -0.9315716624259949, -0.694469690322876, 0.6552370190620422, -0.9796554446220398, -0.5763140320777893, -0.6393840909004211, -0.9519276022911072, -0.2653108239173889, -0.007977459579706192, 0.24477599561214447, 0.38746538758277893, -0.10405147820711136, 0.25916069746017456, 0.6035827398300171, 0.09234790503978729, 0.25862663984298706, 0.6244655251502991, 0.04797663167119026, -0.24109365046024323, 0.7525976300239563, -0.07276451587677002, 0.5931726694107056, 0.2092113345861435, -0.2839852571487427, -0.23996368050575256, -1.0309033393859863, -0.9921550750732422, 0.09343899041414261, -0.3197023570537567, -0.3737700879573822, -0.5998134613037109, -0.5024054646492004, -0.4420313537120819, 0.20226043462753296, -0.40622666478157043, -0.551994264125824, -0.30308619141578674, 0.004177598282694817, 0.7621569037437439, 0.3022657334804535, 0.376926451921463, 0.6105207204818726, -0.984730064868927, 0.2768930196762085, 0.09666717797517776, 0.08233623951673508, -0.3640896677970886, -0.941852867603302, -0.6423589587211609, 0.13712936639785767, -0.3679922819137573, -0.9025830030441284, 0.5147676467895508, 0.041654832661151886, 0.568593442440033, -0.20974388718605042, 0.10912283509969711, 0.9284639954566956, -0.3020779490470886, 0.8806899785995483, -0.19470517337322235, -0.9268664717674255, 0.7825540900230408, -0.7456225156784058, 0.5219957232475281, 0.8077930808067322, 0.3350132703781128, 0.031536612659692764, -0.6918838620185852, -0.8869926929473877, -1.0597875118255615, 0.6894221901893616, 0.5434247851371765, 0.2070378065109253, 0.07046354562044144, 0.10430046170949936, -0.3607757091522217, 0.19627736508846283, -0.44257229566574097, -0.22750023007392883, -0.004388898145407438, -0.07654459029436111, 0.21831394731998444, 0.07871152460575104, -0.25628921389579773, -0.2932295799255371, 1.125691294670105, -0.09155260026454926, 0.3867434859275818, 0.20498891174793243, -0.26981279253959656, -0.37336429953575134, 0.28953224420547485, 0.6627265214920044, 0.9642167091369629, -0.6950134634971619, -0.48041030764579773, 0.38270440697669983, -0.3830330967903137, 0.2876105308532715, -0.1384635716676712, -0.16873028874397278, 0.0374256893992424, 0.4191448390483856, 0.8387261033058167, 0.018629176542162895, -0.8092548251152039, 0.42309728264808655, 0.1309095323085785, -0.22409260272979736, -0.4426831007003784, 0.4804798364639282, -0.11439438909292221, 0.39087530970573425, 0.5378828644752502, 0.3046591281890869, -0.00693465257063508, -0.7345288395881653, 0.3014252483844757, 0.4156264364719391, -0.5725097060203552, -0.2948717772960663, 0.47755125164985657, 0.056221771985292435, -0.4408891797065735, 0.6512789726257324, -0.30384135246276855, -0.715166449546814, 1.091015338897705, 0.4510931372642517, 1.1950777769088745, 0.06865491718053818, 0.2086743265390396, 0.49837779998779297, 0.0864436998963356, 0.024469168856739998, 0.6304037570953369, 0.3929276168346405, -0.7786822319030762, -0.3468787670135498, -0.48406675457954407, -0.375262588262558, -0.02993440441787243, -1.0152617692947388, 0.18311145901679993, -0.6316348910331726, -0.14965622127056122, -0.05581219494342804, 0.1852126270532608, -0.9271538853645325, 0.40387141704559326, -0.6425088047981262, 0.8169198632240295, -0.8354422450065613, 1.1426650285720825, 0.7529366612434387, -0.9788931012153625, -1.0770888328552246, 0.07218055427074432, -0.08996891230344772, -1.0337352752685547, 1.059829831123352, -0.4011278450489044, 0.10012028366327286, 0.35561686754226685, -0.28238511085510254, -0.7865936160087585, 1.229209303855896, 0.07031494379043579, -0.443098247051239, -0.021820560097694397, -0.24456466734409332, 0.6837174892425537, -0.7119473218917847, 0.358908474445343, 0.31417858600616455, 0.5220787525177002, -0.14196887612342834, -0.978061854839325, 0.03353941813111305, -0.19960497319698334, -0.21942591667175293, 0.05615255981683731, -0.8799941539764404, 1.0226588249206543, -0.288094162940979, 0.17647068202495575, 0.4430042803287506, 0.5539265871047974, 0.6153945326805115, 0.17447860538959503, 0.47079741954803467, 0.49546870589256287, 0.3360522985458374, -0.2900111973285675, 1.1920493841171265, -0.3003840148448944, 0.7552154660224915, 1.0382095575332642, -0.19180674850940704, 0.940060019493103, 0.5355967879295349, -0.49410367012023926, 0.7828061580657959, 0.5034555792808533, -0.310742050409317, 0.5987363457679749, 0.2933475375175476, -0.17488616704940796, -0.2579919397830963, 0.11449434608221054, -0.5173483490943909, 0.4972318410873413, -0.11610716581344604, -0.29903334379196167, -0.176646426320076, -0.2787232995033264, -0.046802498400211334, -0.12772822380065918, -0.140578031539917, 0.7291136384010315, -0.47192203998565674, -0.623637318611145, 0.8354402780532837, -0.07353202253580093, 0.37397629022598267, -0.8980647325515747, -0.016843989491462708, 0.0019840020686388016, 0.2214648276567459, -0.13128578662872314, -0.6190954446792603, 0.2571241557598114, 0.0194918904453516, -0.7263829708099365, -0.14289861917495728, 0.3414003252983093, -0.3525426983833313, -0.5867905020713806, 0.2285299152135849, 0.8380492329597473, 0.356540709733963, -0.07450764626264572, -1.0864604711532593, 0.2805096507072449, 0.038942839950323105, -0.1664532572031021, 0.5586663484573364, 0.3358248174190521, -0.0228106752038002, 0.7322810888290405, 0.6880251169204712, 0.352011501789093, 0.06288318336009979, 0.07147513329982758, 1.0025203227996826, -0.6593109965324402, -0.31424838304519653, -0.616738498210907, 0.8019309639930725, 0.08769721537828445, -0.9283731579780579, 0.8363845348358154, 0.7869332432746887, 0.917700469493866, -0.4566771984100342, 0.7294567823410034, -0.11690439283847809, 0.4194958806037903, -0.6136293411254883, 0.6704020500183105, -0.23458275198936462, 0.13969483971595764, -0.24733318388462067, -0.9211539030075073, 0.1337815374135971, 0.6939914226531982, -0.06136193871498108, 0.10374952852725983, 1.0063931941986084, 1.040674090385437, 0.005810271017253399, -0.15511836111545563, 0.18277816474437714, 0.22171933948993683, 0.1515582799911499, 0.7849904298782349, 0.6121798753738403, -1.1955187320709229, 0.4891476631164551, -0.10243956744670868, -0.10329268872737885, 0.09885921329259872, -0.52672278881073, -0.7185794115066528, -0.7388207912445068, -0.5499129891395569, -0.7044876217842102, 0.6381049156188965, 1.0653566122055054, 1.0997836589813232, -1.1209754943847656, -0.5752711296081543, -0.0508834607899189, 0.051757462322711945, -0.4637340009212494, -0.32004645466804504, 0.36265820264816284, -0.5795356035232544, -1.0686438083648682, 0.5146697759628296, 0.009096487425267696, -0.18581624329090118, -0.3365023136138916, -0.33088985085487366, -0.5090065598487854, -0.2893906831741333, 0.2773643434047699, 0.19148293137550354, -0.6493699550628662, -0.4589952230453491, -0.03673694655299187, -0.2390194684267044, 0.09755760431289673, 0.6066081523895264, -0.8444368243217468, 0.0863417312502861, 0.7379433512687683, 0.4723830819129944, 0.5864776968955994, 0.054907698184251785, 0.9025805592536926, -0.685161292552948, 0.19027721881866455, 0.43233662843704224, 0.26261910796165466, -0.0732925534248352, -0.37831681966781616, 0.48539960384368896, 0.30810898542404175, -0.6855967044830322, -0.8816888928413391, 0.11972910165786743, -1.466493010520935, -0.12905648350715637, 1.1662631034851074, -0.40171682834625244, -0.3358985185623169, -0.3243020176887512, -0.2854974567890167, 0.3819826543331146, -0.6529603600502014, 0.5773159265518188, 0.7314927577972412, 0.0013317978009581566, -0.18568889796733856, -0.7978363633155823, 0.5345262885093689, 0.5960346460342407, -0.9638460278511047, -0.16555801033973694, 0.39354315400123596, 0.5551871061325073, 0.019377481192350388, 0.6446915864944458, 0.05883954465389252, 0.5738332867622375, -0.15022967755794525, 0.009542706422507763, -0.2316817343235016, -0.28189221024513245, -0.3203034996986389, 0.22496297955513, -0.14934852719306946, -0.6098192930221558 ]
elinas/chronos-13b-v2
elinas
"2023-10-10T20:36:12Z"
14,078
18
transformers
[ "transformers", "pytorch", "llama", "text-generation", "chatbot", "storywriting", "generalist-model", "license:llama2", "endpoints_compatible", "has_space", "text-generation-inference", "region:us" ]
text-generation
"2023-08-02T18:14:39Z"
--- license: llama2 tags: - llama - pytorch - chatbot - storywriting - generalist-model --- # chronos-13b-v2 This is the FP16 PyTorch / HF version of **chronos-13b-v2** based on the **LLaMA v2 Base** model. Only use this version for further quantization or if you would like to run in full precision, as long as you have the VRAM required. This model is primarily focused on chat, roleplay, storywriting, with good reasoning and logic. Chronos can generate very long outputs with coherent text, largely due to the human inputs it was trained on, and it supports context length up to 4096 tokens. This model uses Alpaca formatting, so for optimal model performance, use it to start the dialogue or story, and if you use a frontend like SillyTavern ENABLE instruction mode: ``` ### Instruction: Your instruction or question here. ### Response: ``` Not using the format will make the model perform significantly worse than intended. ## Other Versions [4bit GPTQ Quantized version](https://huggingface.co/elinas/chronos-13b-v2-GPTQ) [GGML Versions provided by @TheBloke](https://huggingface.co/TheBloke/Chronos-13B-v2-GGML) **Support My Development of New Models** <a href='https://ko-fi.com/Q5Q6MB734' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://storage.ko-fi.com/cdn/kofi1.png?v=3' border='0' alt='Support Development' /></a>
[ -0.13409927487373352, -0.9029799103736877, 0.6004875898361206, 0.44005516171455383, -0.9776719212532043, 0.11596018075942993, -0.04837421327829361, -0.736555814743042, 0.13715209066867828, 0.5243685245513916, -0.8364257216453552, -0.3818093240261078, -0.5815398097038269, 0.004823288414627314, -0.13637933135032654, 0.9982773065567017, 0.2198582887649536, 0.10237301886081696, 0.023563656955957413, 0.177006334066391, -0.36928442120552063, -0.6010259985923767, -0.7395382523536682, -0.69548100233078, 0.4557421803474426, 0.3713352680206299, 1.0542947053909302, 0.7204130291938782, 0.42238324880599976, 0.26206693053245544, -0.3635902404785156, -0.023343460634350777, -0.5096816420555115, 0.023097435012459755, 0.13386987149715424, -0.13920389115810394, -0.7678427696228027, -0.2474224865436554, 0.6859124302864075, 0.07818670570850372, -0.30079329013824463, 0.12699486315250397, -0.023694954812526703, 0.42264288663864136, -0.44183579087257385, 0.38828763365745544, -0.45177969336509705, 0.2221490442752838, -0.07019894570112228, -0.09690479934215546, -0.2237710803747177, -0.25315648317337036, 0.3054336607456207, -0.8771659135818481, 0.06564825028181076, 0.1398521512746811, 1.0514696836471558, 0.029498733580112457, -0.7868346571922302, -0.28313228487968445, -0.48827043175697327, 0.9167855978012085, -0.8537677526473999, 0.30271393060684204, 0.5539949536323547, 0.5653560757637024, -0.061341218650341034, -0.9966388940811157, -0.16397599875926971, -0.4153920114040375, 0.17509549856185913, 0.08680345863103867, -0.2801779806613922, 0.09101796895265579, 0.3342668116092682, 0.5916325449943542, -0.5654206871986389, 0.19584426283836365, -0.9382394552230835, -0.5384055376052856, 0.35379758477211, 0.3536924719810486, -0.027475502341985703, -0.35469818115234375, -0.4316138029098511, -0.41361209750175476, -0.7017844915390015, -0.11241938918828964, 0.6280283331871033, -0.11655928194522858, -0.5404574275016785, 0.7487293481826782, -0.31522080302238464, 0.42565247416496277, 0.35467207431793213, -0.01732884906232357, -0.02207111567258835, -0.31447625160217285, -0.3675384521484375, 0.11600607633590698, 0.9574851393699646, 0.5334683060646057, -0.08492249250411987, 0.06934860348701477, 0.12816794216632843, 0.0392831489443779, 0.25470682978630066, -1.3287652730941772, -0.2753322422504425, 0.2788466513156891, -0.3863265812397003, -0.562868058681488, -0.08540210872888565, -0.909460186958313, -0.322460412979126, -0.11219713091850281, 0.27059033513069153, -0.752425491809845, 0.00009705155389383435, -0.05256713554263115, 0.054681096225976944, 0.321921169757843, 0.473644495010376, -0.7737488150596619, 0.4741513133049011, 0.6428216099739075, 0.7182279825210571, 0.32796669006347656, -0.1277731955051422, -0.3784821331501007, -0.08370554447174072, -0.49819937348365784, 0.4421751797199249, -0.1167062297463417, -0.6236131191253662, -0.24429242312908173, 0.24402637779712677, 0.4086787700653076, -0.379451185464859, 0.6349360346794128, -0.6984584927558899, 0.4421531856060028, -0.3216915428638458, -0.4796161353588104, -0.19087320566177368, -0.18207067251205444, -0.5496969223022461, 1.105616569519043, 0.3084303140640259, -0.5446311831474304, 0.014130843803286552, -0.19970862567424774, -0.054678719490766525, 0.17151209712028503, -0.08617481589317322, -0.2928392291069031, 0.11329299211502075, -0.14048758149147034, 0.1297823190689087, -0.5525902509689331, 0.3255143165588379, -0.20874521136283875, -0.5404272675514221, 0.3197370171546936, -0.38534727692604065, 0.7728743553161621, 0.4398447573184967, -0.3327099680900574, 0.2791394591331482, -0.6176926493644714, 0.19015899300575256, 0.18713922798633575, -0.3678452968597412, 0.22505055367946625, 0.025401795282959938, 0.0992114320397377, 0.35186445713043213, 0.6986594200134277, -0.4144243597984314, 0.12168264389038086, -0.29227256774902344, 0.6990552544593811, 0.8323596715927124, -0.019265517592430115, 0.5438242554664612, -0.3510763645172119, 0.6005549430847168, -0.08604653924703598, 0.5412068367004395, 0.11035528033971786, -0.7388063073158264, -0.5027817487716675, -0.2470751255750656, 0.009790977463126183, 0.7254888415336609, -0.9464230537414551, 0.4377880394458771, 0.05105146765708923, -0.8095288872718811, -0.10013258457183838, -0.05931077152490616, 0.5187110304832458, 0.40277156233787537, 0.2723590135574341, -0.33477550745010376, -0.6538889408111572, -1.0209909677505493, 0.30666306614875793, -0.24435925483703613, -0.09420304000377655, 0.1796654313802719, 0.5783847570419312, -0.2858503758907318, 0.4894596040248871, -0.44082701206207275, -0.07432393729686737, -0.1798017919063568, -0.05504683032631874, 0.02338254265487194, 0.42711982131004333, 0.7027038931846619, -0.30539390444755554, 0.05032599717378616, 0.06171538680791855, -0.6749827861785889, -0.12071260064840317, 0.1487126648426056, -0.3982184827327728, 0.3997653126716614, 0.15793754160404205, -0.5667794346809387, 0.5519009828567505, 0.7488471865653992, -0.6419369578361511, 0.6173690557479858, -0.39442482590675354, 0.22669371962547302, -1.2817858457565308, -0.051272470504045486, 0.01302068866789341, -0.2609744966030121, -0.20001718401908875, 0.06886287033557892, 0.15719936788082123, -0.1479775607585907, -0.49111467599868774, 0.6801589727401733, -0.3269931674003601, -0.14767113327980042, -0.5732353329658508, -0.09483513236045837, -0.06656938791275024, 0.5531624555587769, 0.023315444588661194, 0.7350996136665344, 0.27773669362068176, -0.35835573077201843, 0.7088832259178162, 0.3228607177734375, -0.438956081867218, 0.23811228573322296, -1.0887998342514038, 0.29579776525497437, 0.24108539521694183, 0.5319289565086365, -0.7634902596473694, -0.5280540585517883, 0.7875019311904907, -0.5953512191772461, 0.055369824171066284, -0.23846690356731415, -0.6578580737113953, -0.38727280497550964, -0.4777761399745941, 0.5809204578399658, 0.8696914315223694, -0.228875994682312, 0.40008705854415894, -0.03749235346913338, 0.0023317367304116488, -0.4906555116176605, -0.976531982421875, -0.011372143402695656, -0.1461687535047531, -0.7145594954490662, 0.5819185376167297, -0.020877594128251076, 0.010835669934749603, -0.09507684409618378, -0.2801608145236969, -0.34720170497894287, -0.09019166976213455, 0.4065837562084198, 0.39777427911758423, -0.1441463679075241, -0.37616395950317383, 0.3888004422187805, -0.18398448824882507, 0.03164492920041084, 0.01294790767133236, 0.9051965475082397, -0.25804442167282104, 0.13113725185394287, -0.9697011113166809, 0.3729337751865387, 0.6049898266792297, -0.01270794402807951, 0.6663470268249512, 0.6268003582954407, -0.5954626202583313, 0.14950722455978394, -0.2888869345188141, -0.42638540267944336, -0.5718905329704285, 0.4952704608440399, -0.04432077333331108, -1.1413494348526, 0.6332047581672668, 0.49401527643203735, -0.18947167694568634, 0.5805384516716003, 0.6087089776992798, 0.07735669612884521, 0.7776987552642822, 0.49422380328178406, 0.20523220300674438, 0.8123348355293274, -0.2292991727590561, 0.07225418090820312, -0.8204982876777649, -0.3855236768722534, -0.3686448335647583, -0.04948019981384277, -0.4893033504486084, -0.552232563495636, 0.2715495228767395, 0.4049709141254425, -0.7244380712509155, 0.506668746471405, -0.6523144245147705, 0.2991622984409332, 0.7179291844367981, 0.4588117003440857, 0.1512366235256195, 0.3716769218444824, 0.19563162326812744, -0.18935446441173553, -0.643650233745575, -0.6296378970146179, 0.9257275462150574, 0.28970539569854736, 0.6654829382896423, 0.24534836411476135, 0.5656481385231018, 0.16680575907230377, -0.11420797556638718, -0.7071752548217773, 0.5459824204444885, 0.021762603893876076, -0.8450886011123657, -0.1389552503824234, -0.5429670810699463, -0.6921142935752869, 0.19914522767066956, -0.1877124011516571, -1.052247166633606, 0.18081972002983093, 0.19936878979206085, -0.37198179960250854, 0.08893680572509766, -0.6606501340866089, 1.087890386581421, -0.07013607770204544, -0.41617587208747864, -0.4139624238014221, -0.7165738940238953, 0.5491328239440918, 0.18667176365852356, -0.0838453620672226, 0.05736115947365761, -0.05938081815838814, 0.7351664900779724, -0.8279234766960144, 0.9543638229370117, 0.13468500971794128, -0.2810627520084381, 0.8292430639266968, 0.2766043245792389, 0.450923353433609, 0.2916162610054016, 0.034501299262046814, 0.09046223014593124, 0.5049163103103638, -0.4663480222225189, -0.2575208246707916, 0.8119823932647705, -1.0075706243515015, -0.3788142502307892, -0.8927133679389954, -0.37958601117134094, 0.22194306552410126, -0.15363958477973938, 0.6483950614929199, 0.5560639500617981, -0.025082219392061234, 0.45662105083465576, 0.3716769516468048, -0.26794958114624023, 0.3846745193004608, 0.20613700151443481, -0.37035632133483887, -1.0093120336532593, 0.5651903748512268, 0.017330102622509003, 0.3979429304599762, 0.1471150815486908, 0.30731356143951416, -0.4138907194137573, -0.15992245078086853, -0.5309980511665344, 0.2897641062736511, -0.5528984069824219, -0.3257628083229065, -0.3862992227077484, -0.25280120968818665, -0.4918278753757477, -0.2319064438343048, -0.3478856682777405, -0.6836105585098267, -0.5696930289268494, -0.033516205847263336, 0.9649899005889893, 0.338695764541626, -0.2619115710258484, 1.0380549430847168, -0.7901089191436768, 0.3698338568210602, 0.3418327271938324, 0.0009028151980601251, 0.08749669790267944, -0.8939701318740845, -0.162861168384552, 0.14345930516719818, -0.8072590827941895, -1.141677737236023, 0.34437140822410583, -0.08506090193986893, 0.15669605135917664, 0.2303428053855896, -0.07503589242696762, 0.6036802530288696, -0.20333972573280334, 0.8769457340240479, 0.2703744173049927, -1.2058846950531006, 0.4487898647785187, -0.6746507287025452, 0.38245996832847595, 0.2615639865398407, 0.009029082953929901, -0.7248068451881409, -0.0007373188273049891, -0.7420415878295898, -0.9015822410583496, 1.0335439443588257, 0.5215457677841187, 0.03035430982708931, -0.00449982238933444, 0.5150964856147766, -0.0599932000041008, 0.26190194487571716, -0.7299821376800537, -0.14115671813488007, -0.4360518455505371, -0.2573305070400238, 0.04866485670208931, -0.7928375601768494, -0.01849631406366825, -0.13392765820026398, 0.8297044634819031, -0.11624008417129517, 0.5882731676101685, 0.31351590156555176, 0.08461976796388626, -0.3589920997619629, 0.10515093058347702, 0.6832969784736633, 0.8294962048530579, -0.4070494771003723, -0.18630056083202362, 0.07152026146650314, -0.6962059140205383, -0.06131991371512413, 0.2784793972969055, 0.009784870781004429, -0.22369948029518127, 0.3292621076107025, 0.8104461431503296, 0.3448585867881775, -0.4463525712490082, 0.30831992626190186, 0.02650095522403717, -0.1713184118270874, -0.3613757789134979, -0.09297125786542892, 0.2721874713897705, 0.4876396358013153, 0.34754952788352966, -0.315504789352417, 0.04085106775164604, -0.8089059591293335, 0.03312878683209419, -0.029771262779831886, -0.24039746820926666, -0.35929596424102783, 0.7543517351150513, 0.07092104852199554, -0.2642674446105957, 0.6011916995048523, -0.2701505124568939, -0.4265272915363312, 1.075756549835205, 0.6074543595314026, 0.7247944474220276, -0.2751263380050659, 0.3376435339450836, 0.46225178241729736, 0.42543497681617737, -0.12666885554790497, 0.5922561883926392, -0.09280697256326675, -0.4293298125267029, -0.3967083990573883, -0.4776480495929718, -0.5768354535102844, -0.13927441835403442, -0.7914385199546814, 0.2804037630558014, -0.9402987957000732, -0.21037700772285461, -0.1852269321680069, 0.3387093245983124, -0.40887629985809326, 0.2085806131362915, 0.1384095996618271, 0.7234570384025574, -0.34244415163993835, 1.1421791315078735, 0.5605351328849792, -0.2576720416545868, -0.618495523929596, -0.5984283089637756, 0.12805837392807007, -0.8557279109954834, 0.2551564872264862, -0.11004205793142319, 0.07341507077217102, -0.1285099983215332, -0.8054722547531128, -0.852626621723175, 1.6200947761535645, 0.24970203638076782, -0.744877815246582, -0.07178232073783875, 0.08058460056781769, 0.5136407613754272, -0.1932574212551117, 0.09825422614812851, 0.17106132209300995, 0.3049982488155365, 0.2798945903778076, -0.932651162147522, 0.2072269171476364, 0.14409208297729492, 0.1772637516260147, 0.09681759774684906, -0.9372314214706421, 0.9942655563354492, -0.052644360810518265, -0.1130547970533371, 1.0046485662460327, 0.8319241404533386, 0.7162928581237793, 0.3329556882381439, 0.13838426768779755, 0.3901958465576172, 0.5596979856491089, -0.33352959156036377, 1.1396206617355347, -0.42162543535232544, 0.6201044917106628, 1.1761047840118408, -0.3026420772075653, 0.506072461605072, 0.5749016404151917, -0.003948856610804796, 0.43160009384155273, 0.9433150887489319, 0.0005731538985855877, 0.639151930809021, 0.2900216579437256, -0.1389467716217041, -0.34098362922668457, 0.08108878880739212, -0.6713346838951111, 0.06139761954545975, 0.3198252022266388, -0.3821641802787781, -0.23750396072864532, -0.3525194227695465, 0.3478860557079315, -0.2154344618320465, -0.16304263472557068, 0.31056907773017883, 0.30804967880249023, -0.2037602961063385, 0.37707841396331787, 0.4404415488243103, 0.6349585056304932, -1.0630186796188354, 0.06776531040668488, -0.29072442650794983, 0.17117582261562347, -0.004854908678680658, -0.6450613141059875, 0.3829911947250366, 0.09057432413101196, -0.1464846134185791, 0.0792621523141861, 0.6746608018875122, -0.1210971549153328, -0.7194309830665588, 0.3448132574558258, 0.3512156009674072, 0.09002071619033813, -0.2674705386161804, -0.5718178749084473, 0.5192091464996338, -0.10402965545654297, -0.1513746976852417, 0.28287509083747864, 0.5405277609825134, -0.3134411871433258, 0.4909358322620392, 0.4112381935119629, -0.4561784863471985, 0.24059507250785828, -0.3043724596500397, 0.6687014698982239, -0.8363065719604492, -0.4599379003047943, -0.7081135511398315, 0.13507038354873657, 0.05565590783953667, -0.8935173153877258, 0.5444337725639343, 0.6552399396896362, 0.6219443678855896, -0.11268812417984009, 0.23847632110118866, -0.09760383516550064, -0.14965392649173737, -0.6101382374763489, 0.5181276798248291, -0.5311310887336731, -0.1381731480360031, -0.21532584726810455, -1.061591625213623, 0.0439399890601635, 0.9461793303489685, -0.13487385213375092, 0.047749053686857224, 0.8906945586204529, 0.7231501936912537, 0.1534426063299179, 0.3389040529727936, 0.2296144962310791, 0.25572627782821655, 0.25268644094467163, 0.9818064570426941, 1.1417244672775269, -0.9278699159622192, 0.6611172556877136, -0.7267387509346008, -0.1993231326341629, -0.2013135403394699, -0.9042068719863892, -0.806027889251709, -0.3426792025566101, -0.42910853028297424, -0.6651625633239746, 0.3163812756538391, 0.949221134185791, 0.8312698006629944, -0.3711049556732178, -0.40169134736061096, 0.05964537337422371, -0.11654769629240036, -0.08140115439891815, -0.24068427085876465, 0.2720106244087219, 0.31045594811439514, -0.6521552801132202, 0.4135895073413849, -0.1345217525959015, 0.45137259364128113, 0.043779488652944565, -0.14572621881961823, 0.10444571822881699, -0.032046474516391754, 0.6178997159004211, 0.18256540596485138, -0.8551949858665466, -0.40681061148643494, 0.027590181678533554, -0.16351941227912903, -0.0329960435628891, 0.5530741214752197, -0.5930439233779907, -0.19593055546283722, 0.39891648292541504, 0.11467531323432922, 0.7362985610961914, -0.21611487865447998, 0.4566824734210968, -0.35008591413497925, 0.4736805856227875, 0.18591676652431488, 0.457253634929657, 0.11900746822357178, -0.4529443681240082, 0.41584545373916626, 0.31189242005348206, -0.7629086375236511, -0.6048324704170227, 0.2283766120672226, -1.674757719039917, -0.39263802766799927, 1.288254976272583, 0.2172020971775055, -0.5433533787727356, 0.5530460476875305, -0.6903976202011108, 0.3546629548072815, -0.7786378860473633, 0.5940452814102173, 0.8852831721305847, 0.18715687096118927, -0.20111151039600372, -0.565324068069458, 0.3485162854194641, 0.17995667457580566, -0.5781043767929077, -0.12484274059534073, 1.0005892515182495, 0.32566770911216736, -0.059515636414289474, 0.6596723198890686, -0.4820999503135681, 0.5967205762863159, -0.003106045303866267, 0.207305908203125, -0.17741528153419495, -0.3197159171104431, -0.36713337898254395, 0.0005239191232249141, -0.20450840890407562, -0.2227315902709961 ]
DeepFloyd/IF-II-M-v1.0
DeepFloyd
"2023-06-02T19:05:19Z"
14,075
22
diffusers
[ "diffusers", "pytorch", "if", "text-to-image", "arxiv:2205.11487", "arxiv:2110.02861", "license:deepfloyd-if-license", "diffusers:IFSuperResolutionPipeline", "region:us" ]
text-to-image
"2023-03-21T13:16:58Z"
--- license: deepfloyd-if-license extra_gated_prompt: "DeepFloyd LICENSE AGREEMENT\nThis License Agreement (as may be amended in accordance with this License Agreement, “License”), between you, or your employer or other entity (if you are entering into this agreement on behalf of your employer or other entity) (“Licensee” or “you”) and Stability AI Ltd.. (“Stability AI” or “we”) applies to your use of any computer program, algorithm, source code, object code, or software that is made available by Stability AI under this License (“Software”) and any specifications, manuals, documentation, and other written information provided by Stability AI related to the Software (“Documentation”).\nBy clicking “I Accept” below or by using the Software, you agree to the terms of this License. If you do not agree to this License, then you do not have any rights to use the Software or Documentation (collectively, the “Software Products”), and you must immediately cease using the Software Products. If you are agreeing to be bound by the terms of this License on behalf of your employer or other entity, you represent and warrant to Stability AI that you have full legal authority to bind your employer or such entity to this License. If you do not have the requisite authority, you may not accept the License or access the Software Products on behalf of your employer or other entity.\n1. LICENSE GRANT\n a. Subject to your compliance with the Documentation and Sections 2, 3, and 5, Stability AI grants you a non-exclusive, worldwide, non-transferable, non-sublicensable, revocable, royalty free and limited license under Stability AI’s copyright interests to reproduce, distribute, and create derivative works of the Software solely for your non-commercial research purposes. The foregoing license is personal to you, and you may not assign or sublicense this License or any other rights or obligations under this License without Stability AI’s prior written consent; any such assignment or sublicense will be void and will automatically and immediately terminate this License.\n b. You may make a reasonable number of copies of the Documentation solely for use in connection with the license to the Software granted above.\n c. The grant of rights expressly set forth in this Section 1 (License Grant) are the complete grant of rights to you in the Software Products, and no other licenses are granted, whether by waiver, estoppel, implication, equity or otherwise. Stability AI and its licensors reserve all rights not expressly granted by this License.\L\n2. RESTRICTIONS\n You will not, and will not permit, assist or cause any third party to:\n a. use, modify, copy, reproduce, create derivative works of, or distribute the Software Products (or any derivative works thereof, works incorporating the Software Products, or any data produced by the Software), in whole or in part, for (i) any commercial or production purposes, (ii) military purposes or in the service of nuclear technology, (iii) purposes of surveillance, including any research or development relating to surveillance, (iv) biometric processing, (v) in any manner that infringes, misappropriates, or otherwise violates any third-party rights, or (vi) in any manner that violates any applicable law and violating any privacy or security laws, rules, regulations, directives, or governmental requirements (including the General Data Privacy Regulation (Regulation (EU) 2016/679), the California Consumer Privacy Act, and any and all laws governing the processing of biometric information), as well as all amendments and successor laws to any of the foregoing;\n b. alter or remove copyright and other proprietary notices which appear on or in the Software Products;\n c. utilize any equipment, device, software, or other means to circumvent or remove any security or protection used by Stability AI in connection with the Software, or to circumvent or remove any usage restrictions, or to enable functionality disabled by Stability AI; or\n d. offer or impose any terms on the Software Products that alter, restrict, or are inconsistent with the terms of this License.\n e. 1) violate any applicable U.S. and non-U.S. export control and trade sanctions laws (“Export Laws”); 2) directly or indirectly export, re-export, provide, or otherwise transfer Software Products: (a) to any individual, entity, or country prohibited by Export Laws; (b) to anyone on U.S. or non-U.S. government restricted parties lists; or (c) for any purpose prohibited by Export Laws, including nuclear, chemical or biological weapons, or missile technology applications; 3) use or download Software Products if you or they are: (a) located in a comprehensively sanctioned jurisdiction, (b) currently listed on any U.S. or non-U.S. restricted parties list, or (c) for any purpose prohibited by Export Laws; and (4) will not disguise your location through IP proxying or other methods.\L\n3. ATTRIBUTION\n Together with any copies of the Software Products (as well as derivative works thereof or works incorporating the Software Products) that you distribute, you must provide (i) a copy of this License, and (ii) the following attribution notice: “DeepFloyd is licensed under the DeepFloyd License, Copyright (c) Stability AI Ltd. All Rights Reserved.”\L\n4. DISCLAIMERS\n THE SOFTWARE PRODUCTS ARE PROVIDED “AS IS” and “WITH ALL FAULTS” WITH NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. STABILITY AIEXPRESSLY DISCLAIMS ALL REPRESENTATIONS AND WARRANTIES, EXPRESS OR IMPLIED, WHETHER BY STATUTE, CUSTOM, USAGE OR OTHERWISE AS TO ANY MATTERS RELATED TO THE SOFTWARE PRODUCTS, INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, SATISFACTORY QUALITY, OR NON-INFRINGEMENT. STABILITY AI MAKES NO WARRANTIES OR REPRESENTATIONS THAT THE SOFTWARE PRODUCTS WILL BE ERROR FREE OR FREE OF VIRUSES OR OTHER HARMFUL COMPONENTS, OR PRODUCE ANY PARTICULAR RESULTS.\L\n5. LIMITATION OF LIABILITY\n TO THE FULLEST EXTENT PERMITTED BY LAW, IN NO EVENT WILL STABILITY AI BE LIABLE TO YOU (A) UNDER ANY THEORY OF LIABILITY, WHETHER BASED IN CONTRACT, TORT, NEGLIGENCE, STRICT LIABILITY, WARRANTY, OR OTHERWISE UNDER THIS LICENSE, OR (B) FOR ANY INDIRECT, CONSEQUENTIAL, EXEMPLARY, INCIDENTAL, PUNITIVE OR SPECIAL DAMAGES OR LOST PROFITS, EVEN IF STABILITY AI HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. THE SOFTWARE PRODUCTS, THEIR CONSTITUENT COMPONENTS, AND ANY OUTPUT (COLLECTIVELY, “SOFTWARE MATERIALS”) ARE NOT DESIGNED OR INTENDED FOR USE IN ANY APPLICATION OR SITUATION WHERE FAILURE OR FAULT OF THE SOFTWARE MATERIALS COULD REASONABLY BE ANTICIPATED TO LEAD TO SERIOUS INJURY OF ANY PERSON, INCLUDING POTENTIAL DISCRIMINATION OR VIOLATION OF AN INDIVIDUAL’S PRIVACY RIGHTS, OR TO SEVERE PHYSICAL, PROPERTY, OR ENVIRONMENTAL DAMAGE (EACH, A “HIGH-RISK USE”). IF YOU ELECT TO USE ANY OF THE SOFTWARE MATERIALS FOR A HIGH-RISK USE, YOU DO SO AT YOUR OWN RISK. YOU AGREE TO DESIGN AND IMPLEMENT APPROPRIATE DECISION-MAKING AND RISK-MITIGATION PROCEDURES AND POLICIES IN CONNECTION WITH A HIGH-RISK USE SUCH THAT EVEN IF THERE IS A FAILURE OR FAULT IN ANY OF THE SOFTWARE MATERIALS, THE SAFETY OF PERSONS OR PROPERTY AFFECTED BY THE ACTIVITY STAYS AT A LEVEL THAT IS REASONABLE, APPROPRIATE, AND LAWFUL FOR THE FIELD OF THE HIGH-RISK USE.\L\n6. INDEMNIFICATION\n You will indemnify, defend and hold harmless Stability AI and our subsidiaries and affiliates, and each of our respective shareholders, directors, officers, employees, agents, successors, and assigns (collectively, the “Stability AI Parties”) from and against any losses, liabilities, damages, fines, penalties, and expenses (including reasonable attorneys’ fees) incurred by any Stability AI Party in connection with any claim, demand, allegation, lawsuit, proceeding, or investigation (collectively, “Claims”) arising out of or related to: (a) your access to or use of the Software Products (as well as any results or data generated from such access or use), including any High-Risk Use (defined below); (b) your violation of this License; or (c) your violation, misappropriation or infringement of any rights of another (including intellectual property or other proprietary rights and privacy rights). You will promptly notify the Stability AI Parties of any such Claims, and cooperate with Stability AI Parties in defending such Claims. You will also grant the Stability AI Parties sole control of the defense or settlement, at Stability AI’s sole option, of any Claims. This indemnity is in addition to, and not in lieu of, any other indemnities or remedies set forth in a written agreement between you and Stability AI or the other Stability AI Parties.\L\n7. TERMINATION; SURVIVAL\n a. This License will automatically terminate upon any breach by you of the terms of this License.\L\Lb. We may terminate this License, in whole or in part, at any time upon notice (including electronic) to you.\L\Lc. The following sections survive termination of this License: 2 (Restrictions), 3 (Attribution), 4 (Disclaimers), 5 (Limitation on Liability), 6 (Indemnification) 7 (Termination; Survival), 8 (Third Party Materials), 9 (Trademarks), 10 (Applicable Law; Dispute Resolution), and 11 (Miscellaneous).\L\n8. THIRD PARTY MATERIALS\n The Software Products may contain third-party software or other components (including free and open source software) (all of the foregoing, “Third Party Materials”), which are subject to the license terms of the respective third-party licensors. Your dealings or correspondence with third parties and your use of or interaction with any Third Party Materials are solely between you and the third party. Stability AI does not control or endorse, and makes no representations or warranties regarding, any Third Party Materials, and your access to and use of such Third Party Materials are at your own risk.\L\n9. TRADEMARKS\n Licensee has not been granted any trademark license as part of this License and may not use any name or mark associated with Stability AI without the prior written permission of Stability AI, except to the extent necessary to make the reference required by the “ATTRIBUTION” section of this Agreement.\L\n10. APPLICABLE LAW; DISPUTE RESOLUTION\n This License will be governed and construed under the laws of the State of California without regard to conflicts of law provisions. Any suit or proceeding arising out of or relating to this License will be brought in the federal or state courts, as applicable, in San Mateo County, California, and each party irrevocably submits to the jurisdiction and venue of such courts.\L\n11. MISCELLANEOUS\n If any provision or part of a provision of this License is unlawful, void or unenforceable, that provision or part of the provision is deemed severed from this License, and will not affect the validity and enforceability of any remaining provisions. The failure of Stability AI to exercise or enforce any right or provision of this License will not operate as a waiver of such right or provision. This License does not confer any third-party beneficiary rights upon any other person or entity. This License, together with the Documentation, contains the entire understanding between you and Stability AI regarding the subject matter of this License, and supersedes all other written or oral agreements and understandings between you and Stability AI regarding such subject matter. No change or addition to any provision of this License will be binding unless it is in writing and signed by an authorized representative of both you and Stability AI." extra_gated_fields: "Organization /\_Affiliation": text Previously related publications: text I accept the above license agreement, and will use the Software non-commercially and for research purposes only: checkbox tags: - if - text-to-image inference: false --- # IF-II-M-v1.0 DeepFloyd-IF is a pixel-based text-to-image triple-cascaded diffusion model, that can generate pictures with new state-of-the-art for photorealism and language understanding. The result is a highly efficient model that outperforms current state-of-the-art models, achieving a zero-shot FID-30K score of `6.66` on the COCO dataset. *Inspired by* [*Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding*](https://arxiv.org/pdf/2205.11487.pdf) ![](./pics/deepfloyd_if_scheme.jpg) ## Model Details - **Developed by:** DeepFloyd, StabilityAI - **Model type:** pixel-based text-to-image cascaded diffusion model - **Cascade Stage:** II - **Num Parameters:** 450M - **Language(s):** primarily English and, to a lesser extent, other Romance languages - **License:** <span style="color:blue"><a href="https://huggingface.co/spaces/DeepFloyd/deepfloyd-if-license">DeepFloyd IF License Agreement</a></span> - **Model Description:** DeepFloyd-IF is modular composed of frozen text mode and three pixel cascaded diffusion modules, each designed to generate images of increasing resolution: 64x64, 256x256, and 1024x1024. All stages of the model utilize a frozen text encoder based on the T5 transformer to extract text embeddings, which are then fed into a UNet architecture enhanced with cross-attention and attention-pooling - **Resources for more information:** [GitHub](https://github.com/deep-floyd/IF), [Website](https://deepfloyd.ai), [All Links](https://linktr.ee/deepfloyd) ## Using with `diffusers` IF is integrated with the 🤗 Hugging Face [🧨 diffusers library](https://github.com/huggingface/diffusers/), which is optimized to run on GPUs with as little as 14 GB of VRAM. Before you can use IF, you need to accept its usage conditions. To do so: 1. Make sure to have a [Hugging Face account](https://huggingface.co/join) and be loggin in 2. Accept the license on the model card of [DeepFloyd/IF-I-M-v1.0](https://huggingface.co/DeepFloyd/IF-I-M-v1.0) 3. Make sure to login locally. Install `huggingface_hub` ```sh pip install huggingface_hub --upgrade ``` run the login function in a Python shell ```py from huggingface_hub import login login() ``` and enter your [Hugging Face Hub access token](https://huggingface.co/docs/hub/security-tokens#what-are-user-access-tokens). Next we install `diffusers` and dependencies: ```sh pip install diffusers accelerate transformers safetensors sentencepiece ``` And we can now run the model locally. By default `diffusers` makes use of [model cpu offloading](https://huggingface.co/docs/diffusers/optimization/fp16#model-offloading-for-fast-inference-and-memory-savings) to run the whole IF pipeline with as little as 14 GB of VRAM. If you are using `torch>=2.0.0`, make sure to **remove all** `enable_xformers_memory_efficient_attention()` functions. * **Load all stages and offload to CPU** ```py from diffusers import DiffusionPipeline from diffusers.utils import pt_to_pil import torch # stage 1 stage_1 = DiffusionPipeline.from_pretrained("DeepFloyd/IF-I-M-v1.0", variant="fp16", torch_dtype=torch.float16) stage_1.enable_xformers_memory_efficient_attention() # remove line if torch.__version__ >= 2.0.0 stage_1.enable_model_cpu_offload() # stage 2 stage_2 = DiffusionPipeline.from_pretrained( "DeepFloyd/IF-II-M-v1.0", text_encoder=None, variant="fp16", torch_dtype=torch.float16 ) stage_2.enable_xformers_memory_efficient_attention() # remove line if torch.__version__ >= 2.0.0 stage_2.enable_model_cpu_offload() # stage 3 safety_modules = {"feature_extractor": stage_1.feature_extractor, "safety_checker": stage_1.safety_checker, "watermarker": stage_1.watermarker} stage_3 = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-x4-upscaler", **safety_modules, torch_dtype=torch.float16) stage_3.enable_xformers_memory_efficient_attention() # remove line if torch.__version__ >= 2.0.0 stage_3.enable_model_cpu_offload() ``` * **Retrieve Text Embeddings** ```py prompt = 'a photo of a kangaroo wearing an orange hoodie and blue sunglasses standing in front of the eiffel tower holding a sign that says "very deep learning"' # text embeds prompt_embeds, negative_embeds = stage_1.encode_prompt(prompt) ``` * **Run stage 1** ```py generator = torch.manual_seed(0) image = stage_1(prompt_embeds=prompt_embeds, negative_prompt_embeds=negative_embeds, generator=generator, output_type="pt").images pt_to_pil(image)[0].save("./if_stage_I.png") ``` * **Run stage 2** ```py image = stage_2( image=image, prompt_embeds=prompt_embeds, negative_prompt_embeds=negative_embeds, generator=generator, output_type="pt" ).images pt_to_pil(image)[0].save("./if_stage_II.png") ``` * **Run stage 3** ```py image = stage_3(prompt=prompt, image=image, generator=generator, noise_level=100).images image[0].save("./if_stage_III.png") ``` There are multiple ways to speed up the inference time and lower the memory consumption even more with `diffusers`. To do so, please have a look at the Diffusers docs: - 🚀 [Optimizing for inference time](https://huggingface.co/docs/diffusers/api/pipelines/if#optimizing-for-speed) - ⚙️ [Optimizing for low memory during inference](https://huggingface.co/docs/diffusers/api/pipelines/if#optimizing-for-memory) For more in-detail information about how to use IF, please have a look at [the IF blog post](https://huggingface.co/blog/if) and the [documentation](https://huggingface.co/docs/diffusers/main/en/api/pipelines/if) 📖. Diffusers dreambooth scripts also supports fine-tuning 🎨 [IF](https://huggingface.co/docs/diffusers/main/en/training/dreambooth#if). With parameter efficient finetuning, you can add new concepts to IF with a single GPU and ~28 GB VRAM. ## Training **Training Data:** 1.2B text-image pairs (based on LAION-A and few additional internal datasets) Test/Valid parts of datasets are not used at any cascade and stage of training. Valid part of COCO helps to demonstrate "online" loss behaviour during training (to catch incident and other problems), but dataset is never used for train. **Training Procedure:** IF-II-M-v1.0 is a pixel-based diffusion cascade which uses T5-Encoder embeddings (hidden states) to upscale image from 64px to 256px. During training, - Images are cropped to square via shifted-center-crop augmentation (randomly shift from center up to 0.1 of size) and resized to 64px (low-res) and 256px (ground-truth) using `Pillow==9.2.0` BICUBIC resampling with reducing_gap=None (it helps to avoid aliasing) and processed to tensor BxCxHxW - Low-res images are extra augmented by noise (q-sample methods) with the same diffusion configuration for cascade-I series. Uniform distributed randomised augmentation noising param (aug-level) is added to Unet as condition to process by trainable layers timestep embedding and linear projection with activation. - Text prompts are encoded through open-sourced frozen T5-v1_1-xxl text-encoder (that completely was trained by Google team), random 10% of texts are dropped to empty string to add ability for classifier free guidance (CFG) - The non-pooled output of the text encoder is fed into the projection (linear layer without activation) and is used in UNet backbone of the diffusion model via controlled hybrid self- and cross- attention - Also, the output of the text encode is pooled via attention-pooling (64 heads) and is used in time embed as additional features - Diffusion process is limited by 1000 discrete steps, with cosine beta schedule of noising image - The loss is a reconstruction objective between the noise that was added to the image and the prediction made by the UNet - The training process for checkpoint IF-II-M-v1.0 has 2_500_000 steps at resolution 256x256 on all datasets, OneCycleLR policy, few-bit backward GELU activations, optimizer AdamW8bit + DeepSpeed-Zero1, fully frozen T5-Encoder ![](./pics/loss.jpg) **Hardware:** 24 x 8 x A100 GPUs **Optimizer:** [AdamW8bit](https://arxiv.org/abs/2110.02861) + [DeepSpeed ZeRO-1](https://www.deepspeed.ai/tutorials/zero/) **Batch:** 1536 **Learning rate**: [one-cycle](https://pytorch.org/docs/stable/generated/torch.optim.lr_scheduler.OneCycleLR.html) cosine strategy, warmup 10000 steps, start_lr=4e-6, max_lr=1e-4, final_lr=1e-8 ![](./pics/lr.jpg) ## Evaluation Results `FID-30K: 6.66` ![](./pics/fid30k_if.jpg) # Uses ## Direct Use The model is released for research purposes. Any attempt to deploy the model in production requires not only that the LICENSE is followed but full liability over the person deploying the model. Possible research areas and tasks include: - Generation of artistic imagery and use in design and other artistic processes. - Safe deployment of models which have the potential to generate harmful content. - Probing and understanding the limitations and biases of generative models. - Applications in educational or creative tools. - Research on generative models. Excluded uses are described below. ### Misuse, Malicious Use, and Out-of-Scope Use _Note: This section is originally taken from the [DALLE-MINI model card](https://huggingface.co/dalle-mini/dalle-mini), was used for Stable Diffusion but applies in the same way for IF_. The model should not be used to intentionally create or disseminate images that create hostile or alienating environments for people. This includes generating images that people would foreseeably find disturbing, distressing, or offensive; or content that propagates historical or current stereotypes. #### Out-of-Scope Use The model was not trained to be factual or true representations of people or events, and therefore using the model to generate such content is out-of-scope for the abilities of this model. #### Misuse and Malicious Use Using the model to generate content that is cruel to individuals is a misuse of this model. This includes, but is not limited to: - Generating demeaning, dehumanizing, or otherwise harmful representations of people or their environments, cultures, religions, etc. - Intentionally promoting or propagating discriminatory content or harmful stereotypes. - Impersonating individuals without their consent. - Sexual content without consent of the people who might see it. - Mis- and disinformation - Representations of egregious violence and gore - Sharing of copyrighted or licensed material in violation of its terms of use. - Sharing content that is an alteration of copyrighted or licensed material in violation of its terms of use. ## Limitations and Bias ### Limitations - The model does not achieve perfect photorealism - The model was trained mainly with English captions and will not work as well in other languages. - The model was trained on a subset of the large-scale dataset [LAION-5B](https://laion.ai/blog/laion-5b/), which contains adult, violent and sexual content. To partially mitigate this, we have... (see Training section). ### Bias While the capabilities of image generation models are impressive, they can also reinforce or exacerbate social biases. IF was primarily trained on subsets of [LAION-2B(en)](https://laion.ai/blog/laion-5b/), which consists of images that are limited to English descriptions. Texts and images from communities and cultures that use other languages are likely to be insufficiently accounted for. This affects the overall output of the model, as white and western cultures are often set as the default. Further, the ability of the model to generate content with non-English prompts is significantly worse than with English-language prompts. IF mirrors and exacerbates biases to such a degree that viewer discretion must be advised irrespective of the input or its intent. *This model card was written by: DeepFloyd Team and is based on the [StableDiffusion model card](https://huggingface.co/CompVis/stable-diffusion-v1-4).*
[ -0.5799810886383057, -0.8454219698905945, 0.25212329626083374, 0.39702343940734863, -0.2230476289987564, -0.051072776317596436, -0.24617724120616913, -0.46247848868370056, 0.08833656460046768, 0.30549052357673645, -0.5316216349601746, -0.5526131391525269, -0.6048403382301331, -0.17240457236766815, -0.22015759348869324, 1.0011951923370361, -0.16295665502548218, -0.17835752665996552, -0.1294991374015808, 0.02290959097445011, -0.1935017853975296, -0.1146678552031517, -0.9537572264671326, -0.3310885727405548, 0.24589531123638153, 0.27119898796081543, 0.5108089447021484, 0.3410029709339142, 0.31907084584236145, 0.35412442684173584, -0.24078597128391266, 0.000288086332147941, -0.5067260265350342, -0.4058384597301483, 0.1343134492635727, -0.26645445823669434, -0.44071051478385925, 0.011666595935821533, 0.6315103769302368, 0.16265398263931274, -0.019220473244786263, 0.0490829199552536, 0.1495959609746933, 0.681617796421051, -0.6369990110397339, 0.2816169857978821, -0.2717718780040741, 0.19089816510677338, 0.026769060641527176, 0.19107939302921295, -0.16768388450145721, -0.17405091226100922, 0.2592204511165619, -0.6543981432914734, 0.47875407338142395, -0.0798761397600174, 1.1193631887435913, 0.30501246452331543, -0.14405949413776398, -0.08225884288549423, -0.3531624972820282, 0.6743680238723755, -0.7071366906166077, 0.29014039039611816, 0.1688033491373062, 0.014577649533748627, 0.06802693009376526, -0.8785420060157776, -0.66169673204422, -0.13327614963054657, -0.016241131350398064, 0.3445562422275543, -0.17933973670005798, 0.13578753173351288, 0.2900530695915222, 0.6626575589179993, -0.4245496988296509, -0.08492100238800049, -0.5050811767578125, -0.2006606012582779, 0.8080340623855591, -0.027628442272543907, 0.257049560546875, -0.10084785521030426, -0.5166864395141602, -0.18811647593975067, -0.22975891828536987, 0.1548616737127304, 0.033403877168893814, 0.016256188973784447, -0.6650232076644897, 0.3335767686367035, -0.09223669767379761, 0.3564349412918091, 0.3781094253063202, -0.22170576453208923, 0.42138662934303284, -0.17691506445407867, -0.4259182810783386, 0.12682747840881348, 1.0699865818023682, 0.33443835377693176, 0.12472104281187057, 0.0913623496890068, -0.1371018886566162, 0.03843588009476662, 0.005872388370335102, -1.2557721138000488, -0.5124428868293762, 0.3694444000720978, -0.35486361384391785, -0.4792967438697815, -0.16080720722675323, -0.8418457508087158, -0.14624398946762085, 0.15404902398586273, 0.5372394919395447, -0.7676718235015869, -0.4331320524215698, 0.23891687393188477, -0.22086846828460693, 0.21899668872356415, 0.37653160095214844, -0.7583038806915283, 0.36442989110946655, 0.3324494957923889, 1.0423511266708374, -0.1063959151506424, -0.11398497968912125, -0.15237636864185333, -0.184349924325943, -0.2878567576408386, 0.6002448797225952, -0.26139727234840393, -0.39684340357780457, -0.130083829164505, 0.1156265139579773, -0.13088153302669525, -0.40338221192359924, 0.654607355594635, -0.3495206832885742, 0.49577316641807556, -0.08792448043823242, -0.6471229791641235, -0.3562026917934418, 0.09772787988185883, -0.5654298067092896, 1.2328214645385742, 0.2695981562137604, -0.9872913956642151, 0.17969326674938202, -0.7249398231506348, -0.41308408975601196, -0.03115098737180233, 0.03276167809963226, -0.7267653346061707, 0.02651933580636978, 0.3483555316925049, 0.6339283585548401, -0.2008637934923172, 0.024312365800142288, -0.27774760127067566, -0.38792678713798523, 0.03224802762269974, -0.338371217250824, 1.1117316484451294, 0.2645477056503296, -0.6978926658630371, -0.024999473243951797, -0.6535069346427917, -0.06789471954107285, 0.3684648275375366, -0.34969058632850647, 0.08422549068927765, -0.4018990099430084, 0.30204465985298157, 0.27481505274772644, 0.22098876535892487, -0.6104393005371094, 0.19862984120845795, -0.3673384189605713, 0.49103614687919617, 0.631874144077301, -0.003252685535699129, 0.5339062213897705, -0.1367761641740799, 0.4664003849029541, 0.2861173748970032, 0.218735471367836, -0.26159319281578064, -0.7906883955001831, -0.9777007102966309, -0.41514790058135986, 0.18152499198913574, 0.5391719937324524, -0.7981764674186707, 0.3958100378513336, -0.010063229128718376, -0.5228121876716614, -0.6321932077407837, 0.03205849230289459, 0.5396970510482788, 0.6416618227958679, 0.42359456419944763, -0.2486720234155655, -0.2466062307357788, -0.8208348155021667, 0.15607093274593353, 0.09638611972332001, 0.12108230590820312, 0.31892916560173035, 0.6307232975959778, -0.22498464584350586, 0.632565438747406, -0.5778214335441589, -0.46096888184547424, -0.11246311664581299, 0.011778654530644417, 0.32595711946487427, 0.6279832124710083, 0.7158284783363342, -0.7033771276473999, -0.5973315238952637, -0.050108134746551514, -0.8677669167518616, 0.1367587000131607, -0.1509045958518982, -0.06312381476163864, 0.4154835045337677, 0.42013201117515564, -0.9275627136230469, 0.5727789402008057, 0.5544966459274292, -0.37627553939819336, 0.544788122177124, -0.33712059259414673, 0.10915865749120712, -0.9883207082748413, 0.1476633995771408, 0.3386387526988983, -0.21253977715969086, -0.38483017683029175, 0.11090421676635742, 0.12021952867507935, -0.17788094282150269, -0.5883498191833496, 0.7950425744056702, -0.6216022372245789, 0.27201780676841736, -0.17702707648277283, 0.05141676217317581, 0.20263472199440002, 0.617853045463562, 0.1252497285604477, 0.6601353287696838, 0.8757017254829407, -0.7024733424186707, 0.20191647112369537, 0.13714264333248138, -0.3921844959259033, 0.4655391573905945, -0.6159737706184387, 0.14616529643535614, -0.2001427263021469, 0.30446189641952515, -1.0542656183242798, -0.12531647086143494, 0.5034972429275513, -0.4465066194534302, 0.5942902565002441, -0.05092731863260269, -0.39987635612487793, -0.5602591037750244, -0.3445814847946167, 0.32840585708618164, 0.8033455014228821, -0.5379025936126709, 0.5672224760055542, 0.18839552998542786, 0.22119291126728058, -0.6491445899009705, -0.7600356936454773, -0.08509044349193573, -0.22374162077903748, -0.7702422142028809, 0.6843076348304749, -0.1481015831232071, -0.007292964495718479, 0.07873965054750443, 0.04446972906589508, 0.0595325231552124, -0.013755104504525661, 0.2681400775909424, 0.1588832288980484, -0.298138827085495, -0.17425023019313812, 0.23104631900787354, -0.2058509737253189, 0.06795813888311386, -0.37271279096603394, 0.48589974641799927, -0.2265995740890503, 0.0752357468008995, -0.9443809390068054, 0.10806549340486526, 0.3294788897037506, 0.07355879247188568, 0.7835768461227417, 1.175343632698059, -0.4774952232837677, -0.07860589772462845, -0.6216928958892822, -0.13271848857402802, -0.5679227113723755, 0.20418471097946167, -0.41092464327812195, -0.7502885460853577, 0.4385400414466858, -0.051300182938575745, 0.1899551898241043, 0.6323667168617249, 0.5113263130187988, -0.23307619988918304, 0.8736974596977234, 0.6591576337814331, -0.16226495802402496, 0.5112318992614746, -0.9062455296516418, 0.08204178512096405, -0.7636433839797974, -0.3074156641960144, -0.0904572457075119, -0.4058655798435211, -0.4085492193698883, -0.6608123779296875, 0.29686325788497925, 0.331552118062973, -0.3508262038230896, 0.20465709269046783, -0.7177614569664001, 0.32997891306877136, 0.37348300218582153, 0.28980666399002075, 0.04021098464727402, 0.1662607491016388, -0.16458231210708618, 0.008946244604885578, -0.7066288590431213, -0.2299778163433075, 0.7937707304954529, 0.3928949534893036, 0.5509950518608093, -0.2731698453426361, 0.6861193180084229, 0.1854196935892105, 0.39986851811408997, -0.4774996042251587, 0.5293623805046082, -0.02976096421480179, -0.64625084400177, 0.04321695491671562, -0.29792341589927673, -0.7823171615600586, 0.2062540054321289, -0.324301153421402, -0.763275682926178, 0.29289039969444275, 0.2443307340145111, -0.3417188823223114, 0.5507513880729675, -0.8179100751876831, 0.9645407199859619, -0.21234585344791412, -0.6448239088058472, -0.1523512601852417, -0.6753641963005066, 0.45058324933052063, 0.22391320765018463, -0.0000978366588242352, -0.11636612564325333, -0.11263265460729599, 0.7085662484169006, -0.45584192872047424, 0.7446630001068115, -0.39828428626060486, -0.028720272704958916, 0.5396832227706909, -0.09168823808431625, 0.27685293555259705, 0.08820855617523193, -0.26549214124679565, 0.5051881074905396, -0.0957847312092781, -0.5473121404647827, -0.38052719831466675, 0.8269575834274292, -0.866564154624939, -0.399344265460968, -0.41373738646507263, -0.25914180278778076, 0.19805271923542023, 0.2576780617237091, 0.7122628688812256, 0.27282533049583435, -0.21775254607200623, -0.005307972896844149, 0.8436452150344849, -0.5071571469306946, 0.6899675726890564, -0.05576439946889877, -0.3263033926486969, -0.5846830606460571, 0.9801663160324097, -0.12191572040319443, 0.17916995286941528, 0.3878302574157715, 0.28104367852211, -0.2869647741317749, -0.35245850682258606, -0.6555816531181335, 0.397224098443985, -0.5563760995864868, -0.34775903820991516, -0.9006854891777039, -0.4052344858646393, -0.44272249937057495, -0.27693018317222595, -0.5800513029098511, -0.25523829460144043, -0.7415638566017151, 0.0026951406616717577, 0.6096914410591125, 0.44212836027145386, -0.10585131496191025, 0.472467303276062, -0.39609256386756897, 0.35937702655792236, 0.06433834880590439, 0.25387296080589294, 0.17487138509750366, -0.5084923505783081, -0.23553335666656494, 0.03959077224135399, -0.5017654895782471, -0.5911073088645935, 0.5452716946601868, 0.31117019057273865, 0.2262738049030304, 0.7265700101852417, -0.13864944875240326, 0.7942808866500854, -0.25580891966819763, 0.7328962683677673, 0.342673659324646, -0.8728252649307251, 0.4457288086414337, -0.26091843843460083, 0.3057374358177185, 0.3481597900390625, 0.5701906085014343, -0.21560032665729523, -0.11029856652021408, -0.8479878902435303, -0.794477641582489, 0.762886643409729, 0.45276543498039246, 0.19903992116451263, 0.1212308332324028, 0.6691953539848328, -0.10588695853948593, 0.16747638583183289, -0.746161699295044, -0.46573513746261597, -0.2622348666191101, -0.10386991500854492, -0.09073089063167572, -0.09668687731027603, 0.14421674609184265, -0.630264937877655, 0.8071056008338928, -0.008151315152645111, 0.6900270581245422, 0.4135942757129669, -0.004029134754091501, 0.010664686560630798, -0.33106133341789246, 0.3452030420303345, 0.2781235873699188, -0.23842120170593262, -0.12381386011838913, 0.18397551774978638, -0.5627413988113403, -0.03589346632361412, 0.19742348790168762, -0.23399434983730316, -0.013012957759201527, 0.18395577371120453, 0.9818180203437805, 0.11794324964284897, -0.38846686482429504, 0.591400146484375, -0.1908743977546692, -0.3134973645210266, -0.39140984416007996, 0.18842323124408722, 0.2857484519481659, 0.3880595862865448, 0.2067197561264038, 0.18866200745105743, 0.12055806815624237, -0.3742396831512451, 0.18040886521339417, 0.42313653230667114, -0.35887905955314636, -0.27943703532218933, 0.9713296890258789, 0.10018602013587952, -0.35499775409698486, 0.7347211837768555, -0.33213335275650024, -0.5072401762008667, 0.7242224812507629, 0.5589194893836975, 0.9220126271247864, -0.19758832454681396, 0.27401238679885864, 0.6561248302459717, 0.24176375567913055, -0.016429830342531204, 0.28956061601638794, -0.12146392464637756, -0.7084572911262512, -0.24165794253349304, -0.6810379028320312, -0.054549966007471085, 0.1502346694469452, -0.4179496169090271, 0.4672907888889313, -0.7853233814239502, -0.18025292456150055, 0.033260200172662735, 0.20935282111167908, -0.9016366004943848, 0.4270487129688263, 0.32218533754348755, 0.9927608966827393, -0.6924511194229126, 0.784692645072937, 0.41723009943962097, -0.5015493035316467, -0.5953367352485657, -0.07383359223604202, -0.1435868889093399, -0.8656972050666809, 0.35783734917640686, 0.5135127902030945, -0.0753258764743805, 0.1353863775730133, -0.7445803880691528, -0.7774764895439148, 1.1920311450958252, 0.41056177020072937, -0.4414973556995392, -0.028521887958049774, -0.18617548048496246, 0.5177388191223145, -0.4260111153125763, 0.39054998755455017, 0.5200491547584534, 0.3435730040073395, 0.19472353160381317, -0.6219096779823303, 0.20212264358997345, -0.39743974804878235, 0.04945522919297218, 0.0673726424574852, -0.9639328718185425, 0.932773768901825, -0.5874302387237549, -0.30183297395706177, 0.1722314953804016, 0.8998582363128662, 0.22995780408382416, 0.39155274629592896, 0.3684041202068329, 0.9483397603034973, 0.6762253046035767, -0.00864751823246479, 1.2776856422424316, -0.285740464925766, 0.523897111415863, 0.6372890472412109, 0.10018491744995117, 0.6161882877349854, 0.20452915132045746, -0.16705261170864105, 0.6080836653709412, 0.8432492613792419, -0.024743348360061646, 0.5181950926780701, 0.01606757752597332, -0.36207064986228943, -0.12407903373241425, 0.15348811447620392, -0.4769099950790405, 0.16409197449684143, 0.48300880193710327, -0.49303022027015686, -0.02476876601576805, 0.17399288713932037, 0.28592753410339355, -0.4106295704841614, -0.1437174677848816, 0.6349552273750305, 0.22568634152412415, -0.5987817049026489, 0.837279200553894, 0.09494556486606598, 0.9971140623092651, -0.3620390295982361, 0.0019571371376514435, -0.25702691078186035, 0.39401331543922424, -0.3778960108757019, -0.7946920990943909, 0.0652690902352333, -0.19685736298561096, 0.02050204947590828, -0.18789905309677124, 0.757461428642273, -0.32974669337272644, -0.7436748147010803, 0.441800057888031, 0.0785866379737854, 0.3392821252346039, -0.2885742485523224, -1.198073387145996, 0.2405128926038742, 0.09020773321390152, -0.4624871015548706, 0.3286290466785431, 0.34296780824661255, 0.23073966801166534, 0.6824003458023071, 0.5380373597145081, -0.17060871422290802, 0.12244196236133575, -0.15116216242313385, 0.9704970121383667, -0.5497397780418396, -0.2979544401168823, -0.862035870552063, 0.7341993451118469, -0.22327321767807007, -0.4773344397544861, 0.6349888443946838, 0.6534685492515564, 0.8298036456108093, -0.053704097867012024, 0.6096949577331543, -0.2540630102157593, -0.06826277822256088, -0.4527103006839752, 0.7754612565040588, -0.8350827097892761, 0.039623018354177475, -0.6013940572738647, -0.8529419898986816, -0.1600579470396042, 0.8868038654327393, -0.13680213689804077, 0.2723352313041687, 0.5728331208229065, 0.7719982862472534, -0.3245268762111664, 0.052596159279346466, 0.10688581317663193, 0.2528386414051056, 0.19151915609836578, 0.5933699607849121, 0.40297481417655945, -0.9400383830070496, 0.37696507573127747, -0.7512161135673523, -0.3450271785259247, -0.11218003928661346, -0.8653918504714966, -0.8681252598762512, -0.6186063885688782, -0.7659074664115906, -0.6569682955741882, -0.10367885231971741, 0.5529531240463257, 0.8313971161842346, -0.5887051224708557, -0.1457379311323166, -0.1821773499250412, 0.0694945752620697, -0.21717020869255066, -0.32238930463790894, 0.520145833492279, -0.10731294751167297, -0.8733819127082825, 0.04354861378669739, 0.2776508629322052, 0.03152432292699814, -0.33055415749549866, -0.12989619374275208, -0.3030915856361389, -0.1795479655265808, 0.7108981609344482, 0.2873970568180084, -0.5394203662872314, -0.008310146629810333, -0.19558247923851013, 0.05602935701608658, 0.3352275788784027, 0.5110968351364136, -0.8267954587936401, 0.37260931730270386, 0.3921858072280884, 0.46603086590766907, 1.1496696472167969, -0.19114835560321808, 0.15743213891983032, -0.5616681575775146, 0.3768029808998108, 0.14628124237060547, 0.37794527411460876, 0.40009745955467224, -0.5551294088363647, 0.4219909608364105, 0.39766716957092285, -0.5632152557373047, -0.6051046252250671, -0.15041188895702362, -1.218165636062622, -0.310466468334198, 1.1083329916000366, -0.19538597762584686, -0.5170807838439941, 0.2007243037223816, -0.33846428990364075, 0.25607699155807495, -0.5287672877311707, 0.6986318230628967, 0.36556413769721985, -0.24749547243118286, -0.5498300790786743, -0.44922778010368347, 0.594073474407196, 0.1928541362285614, -0.6514359712600708, -0.3106541931629181, 0.36413729190826416, 0.6499711275100708, 0.2426074594259262, 0.9145681858062744, -0.06956235319375992, 0.10416445136070251, 0.12127167731523514, 0.19978955388069153, 0.19323450326919556, -0.12230351567268372, -0.3112742006778717, 0.09989307075738907, -0.42512795329093933, -0.22035884857177734 ]
swl-models/xiaolxl-guofeng-v3
swl-models
"2023-02-01T01:27:23Z"
14,071
14
diffusers
[ "diffusers", "stable-diffusion", "stable-diffusion-diffusers", "text-to-image", "en", "license:creativeml-openrail-m", "endpoints_compatible", "diffusers:StableDiffusionPipeline", "region:us" ]
text-to-image
"2023-01-31T15:46:10Z"
--- license: creativeml-openrail-m language: - en library_name: diffusers pipeline_tag: text-to-image tags: - stable-diffusion - stable-diffusion-diffusers duplicated_from: xiaolxl/GuoFeng3 --- # 介绍 - GuoFeng3 欢迎使用GuoFeng3模型 - (TIP:这个版本的名字进行了微调),这是一个中国华丽古风风格模型,也可以说是一个古风游戏角色模型,具有2.5D的质感。第三代大幅度减少上手难度,增加了场景元素与男性古风人物,除此之外为了模型能更好的适应其它TAG,还增加了其它风格的元素。这一代对脸和手的崩坏有一定的修复,同时素材大小也提高到了最长边1024。 -- Welcome to the GuoFeng3 model - (TIP: the name of this version has been fine-tuned). This is a Chinese gorgeous antique style model, which can also be said to be an antique game character model with a 2.5D texture. The third generation greatly reduces the difficulty of getting started, and adds scene elements and male antique characters. In addition, in order to better adapt the model to other TAGs, other style elements are also added. This generation has repaired the broken face and hands to a certain extent, and the size of the material has also increased to the longest side of 1024. # 安装教程 - install 1. 将GuoFeng3.ckpt模型放入SD目录 - Put GuoFeng3.ckpt model into SD directory 2. 此模型自带VAE,如果你的程序不支持,请记得选择任意一个VAE文件,否则图形将为灰色 - This model comes with VAE. If your program does not support it, please remember to select any VAE file, otherwise the graphics will be gray # 如何使用 - How to use **TIP:经过一天的测试,发现很多人物可能出现红眼问题,可以尝试在负面词添加red eyes。如果色彩艳丽可以尝试降低CFG - After a day of testing, we found that many characters may have red-eye problems. We can try to add red eyes to negative words。Try to reduce CFG if the color is bright** 简单:第三代大幅度减少上手难度 - Simple: the third generation greatly reduces the difficulty of getting started - **关键词 - key word:** ``` best quality, masterpiece, highres, 1girl,china dress,Beautiful face ``` - **负面词 - Negative words:** ``` NSFW, lowres,bad anatomy,bad hands, text, error, missing fingers,extra digit, fewer digits, cropped, worstquality, low quality, normal quality,jpegartifacts,signature, watermark, username,blurry,bad feet ``` --- 高级:如果您还想使图片尽可能更好,请尝试以下配置 - senior:If you also want to make the picture as better as possible, please try the following configuration - Sampling steps:**50** - Sampler:**DPM++ SDE Karras or DDIM** - The size of the picture should be at least **1024** - 图片大小至少1024 - CFG:**4-6** - **更好的负面词 Better negative words - 感谢群友提供的负面词:** ``` (((simple background))),monochrome ,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, lowres, bad anatomy, bad hands, text, error, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry, ugly,pregnant,vore,duplicate,morbid,mut ilated,tran nsexual, hermaphrodite,long neck,mutated hands,poorly drawn hands,poorly drawn face,mutation,deformed,blurry,bad anatomy,bad proportions,malformed limbs,extra limbs,cloned face,disfigured,gross proportions, (((missing arms))),(((missing legs))), (((extra arms))),(((extra legs))),pubic hair, plump,bad legs,error legs,username,blurry,bad feet ``` - **如果想元素更丰富,可以添加下方关键词 - If you want to enrich the elements, you can add the following keywords** ``` Beautiful face, hair ornament, solo,looking at viewer,smile,closed mouth,lips china dress,dress,hair ornament, necklace, jewelry, long hair, earrings, chinese clothes, architecture,east asian architecture,building,outdoors,rooftop,city,cityscape ``` # 例图 - Examples (可在文件列表中找到原图,并放入WebUi查看关键词等信息) - (You can find the original image in the file list, and put WebUi to view keywords and other information) <img src=https://huggingface.co/xiaolxl/GuoFeng3/resolve/main/examples/e1.png> <img src=https://huggingface.co/xiaolxl/GuoFeng3/resolve/main/examples/e2.png> <img src=https://huggingface.co/xiaolxl/GuoFeng3/resolve/main/examples/e3.png> <img src=https://huggingface.co/xiaolxl/GuoFeng3/resolve/main/examples/e4.png>
[ -0.6185020208358765, -0.5687480568885803, 0.24141556024551392, 0.49561449885368347, -0.7649720311164856, -0.31190380454063416, 0.14770086109638214, -0.8540940284729004, 0.42939990758895874, 0.6808956861495972, -0.4795323610305786, -0.7013237476348877, -0.4471825361251831, 0.21055828034877777, 0.12597191333770752, 0.6794606447219849, 0.10303659737110138, 0.11235200613737106, 0.331149697303772, 0.1216491162776947, -0.5488206148147583, 0.1507723480463028, -0.7950564622879028, -0.28063464164733887, -0.027637802064418793, 0.4758114516735077, 0.7938613295555115, 0.8524597883224487, 0.6925622820854187, 0.3116527199745178, -0.1275436133146286, 0.05440090596675873, -0.36120104789733887, -0.4603303372859955, 0.13910356163978577, -0.4540826678276062, -0.937986433506012, 0.11464212089776993, 0.33425411581993103, -0.03565860912203789, 0.23158979415893555, -0.02334769070148468, 0.18035034835338593, 0.7813006639480591, -0.3185378611087799, 0.2326458841562271, -0.17122992873191833, 0.05434752628207207, -0.4198375940322876, -0.5137113928794861, -0.10045895725488663, -0.5122633576393127, -0.05246410891413689, -1.03950035572052, 0.24157963693141937, 0.08944238722324371, 1.7136155366897583, -0.18251407146453857, -0.4932659864425659, 0.19695515930652618, -0.5067275762557983, 0.8484323024749756, -0.8475032448768616, 0.048838578164577484, 0.4121236503124237, 0.368531197309494, -0.08169479668140411, -0.711985170841217, -0.7863573431968689, -0.04358026385307312, -0.3608451783657074, 0.3821137547492981, -0.1443907767534256, -0.1548435389995575, 0.1988854557275772, 0.45260152220726013, -0.46793174743652344, -0.23457440733909607, -0.573832094669342, -0.263877272605896, 0.843647301197052, 0.0657438412308693, 0.8225130438804626, -0.3704271912574768, -0.5596717596054077, -0.3664260804653168, -0.8049893379211426, 0.009419616311788559, 0.1422434002161026, -0.021484633907675743, -0.6530088186264038, 0.31854546070098877, -0.21216198801994324, 0.6166860461235046, 0.08687813580036163, -0.4302143156528473, 0.6046297550201416, -0.3247397541999817, -0.20916830003261566, -0.41460683941841125, 0.9099404215812683, 1.085309386253357, 0.003392165759578347, 0.49474814534187317, -0.10196547955274582, -0.35233187675476074, -0.12130550295114517, -0.8580586314201355, -0.3979489505290985, 0.4499245584011078, -0.989727258682251, -0.43257418274879456, 0.2248765230178833, -1.0271618366241455, -0.06566730886697769, 0.05422550067305565, 0.4268220365047455, -0.7499714493751526, -0.39277762174606323, -0.0408722385764122, -0.39604073762893677, 0.5527649521827698, 0.6471209526062012, -0.8133454322814941, -0.03246140107512474, 0.24474157392978668, 0.564702033996582, 0.2093089073896408, -0.21824046969413757, -0.008421345613896847, 0.3208444118499756, -0.4137897789478302, 0.756072998046875, -0.11785021424293518, -0.49735671281814575, -0.24804356694221497, 0.3308192193508148, 0.39164644479751587, -0.3954290747642517, 0.7631139755249023, -0.42896443605422974, 0.3498506247997284, -0.23903495073318481, 0.017627496272325516, -0.4274555444717407, 0.17617535591125488, -0.829337477684021, 0.8303394317626953, 0.3449450433254242, -1.0965772867202759, 0.2735411524772644, -0.5784013867378235, -0.299597829580307, 0.31682583689689636, -0.07272639870643616, -0.4988041818141937, -0.1729668825864792, 0.27262458205223083, 0.3197229206562042, -0.23150676488876343, -0.4463576674461365, -0.2206679731607437, -0.562420129776001, 0.08302044868469238, -0.05025582015514374, 1.3066396713256836, 0.3700971007347107, -0.47778037190437317, -0.0775887742638588, -0.7232813239097595, 0.029074298217892647, 0.7674897313117981, -0.20625349879264832, -0.43780165910720825, -0.0662003830075264, 0.38886526226997375, 0.31312692165374756, 0.5729390382766724, -0.3920347988605499, 0.23523876070976257, -0.42266011238098145, 0.33461156487464905, 0.7271636128425598, -0.020788809284567833, 0.27347493171691895, -0.7600663900375366, 0.4536573886871338, 0.041296765208244324, 0.4297647476196289, -0.2102418690919876, -0.5595342516899109, -1.1315836906433105, -0.31538814306259155, 0.2539142072200775, 0.5792627930641174, -1.1222320795059204, 0.5668578147888184, -0.11152486503124237, -0.6236099600791931, -0.4267149567604065, -0.18498660624027252, 0.3979986906051636, 0.15255579352378845, 0.5300335884094238, -0.4812474548816681, -0.5737418532371521, -1.1238555908203125, 0.1643017679452896, -0.3516099452972412, -0.3475246727466583, 0.6818602681159973, 0.5072022676467896, -0.15640494227409363, 0.5387684106826782, -0.695060133934021, -0.6979146599769592, -0.28934434056282043, 0.04886053875088692, 0.2384796291589737, 0.637386679649353, 0.9060542583465576, -0.8419442176818848, -0.6149324178695679, 0.05392104387283325, -0.6865400075912476, 0.010517447255551815, 0.0065554166212677956, -0.3273085951805115, 0.13187989592552185, 0.06462110579013824, -0.3892097473144531, 0.3312121033668518, 0.3902070224285126, -0.44225600361824036, 0.8785510659217834, -0.27046477794647217, 0.44220787286758423, -1.3092880249023438, 0.16347967088222504, 0.11606341600418091, -0.0028049012180417776, -0.5128630995750427, 0.6234421730041504, 0.13242988288402557, 0.3050706088542938, -0.5925604104995728, 0.632947564125061, -0.7125058174133301, 0.27073347568511963, -0.2404545694589615, 0.2558741569519043, 0.24129076302051544, 0.4710841178894043, 0.18249748647212982, 0.4369892179965973, 0.5788154006004333, -0.5188771486282349, 0.47948727011680603, 0.44526809453964233, -0.3768247067928314, 0.6062983870506287, -0.6001164317131042, 0.05161833390593529, -0.17509719729423523, 0.14339520037174225, -0.6709729433059692, -0.48183563351631165, 0.5531301498413086, -0.6491460204124451, 0.3953357934951782, 0.06899024546146393, -0.0934830754995346, -0.7030755877494812, -0.7713384032249451, 0.07357221096754074, 0.6048237681388855, -0.4881542921066284, 0.6186135411262512, 0.25109562277793884, 0.10623613744974136, -0.46566182374954224, -0.7600379586219788, 0.048736561089754105, -0.32799333333969116, -0.8307598829269409, 0.9321711659431458, 0.07107119262218475, -0.023663301020860672, 0.013597683981060982, 0.33985432982444763, -0.24342146515846252, -0.03100395016372204, -0.09004800766706467, 0.6910327076911926, -0.3437201678752899, -0.3705328404903412, -0.29303228855133057, 0.07715074717998505, -0.2034725695848465, 0.2866152226924896, 0.47139933705329895, -0.11362171173095703, -0.03626325726509094, -0.7210237383842468, 0.2946126461029053, 0.5133258700370789, -0.16791515052318573, 0.11262091249227524, 0.7966070175170898, -0.3919885456562042, -0.011184151284396648, -0.5484411716461182, -0.1135876327753067, -0.5313442945480347, 0.3046131432056427, -0.4223141670227051, -0.7821962237358093, 0.42534810304641724, 0.2214609980583191, 0.036363016813993454, 0.8718859553337097, 0.1419215351343155, -0.2667953372001648, 1.3045539855957031, 0.8591169714927673, -0.10484940558671951, 0.5121692419052124, -0.523639440536499, -0.23914802074432373, -0.9381921291351318, -0.32012730836868286, -0.3972701132297516, -0.4347344636917114, -0.8473485708236694, -0.5332908034324646, 0.38078346848487854, 0.14989979565143585, -0.28393226861953735, 0.567495584487915, -0.8246137499809265, 0.2179737538099289, 0.6115148663520813, 0.53862464427948, 0.194332554936409, -0.17343279719352722, 0.15674014389514923, -0.08963769674301147, -0.24568681418895721, -0.5349869728088379, 0.6089853644371033, 0.46724241971969604, 0.6212437748908997, 0.2738337814807892, 0.6605124473571777, -0.18768762052059174, 0.20841003954410553, -0.5315549373626709, 0.6355445981025696, -0.293282151222229, -0.6984854340553284, -0.1289258748292923, -0.18121574819087982, -0.8760495185852051, 0.21631042659282684, -0.5584374666213989, -0.8975852727890015, 0.2704046964645386, 0.22134700417518616, -0.4910302460193634, 0.272060364484787, -0.4612484276294708, 0.6899448037147522, -0.45450419187545776, -0.39597761631011963, 0.038833245635032654, -0.7311316132545471, 0.7620578408241272, 0.09480062872171402, 0.22619104385375977, -0.19261209666728973, 0.008379063569009304, 0.669430673122406, -0.6123110055923462, 0.5157061815261841, -0.17275653779506683, 0.12951622903347015, 0.3536582291126251, 0.014406847767531872, 0.5459654331207275, -0.033386752009391785, 0.2579927444458008, 0.18713046610355377, 0.11749885976314545, -0.3424609899520874, -0.4186180531978607, 0.6386152505874634, -0.941436767578125, -0.8047930598258972, -0.5815295577049255, 0.04348120465874672, 0.1552722007036209, 0.4541233479976654, 0.7474982142448425, 0.1114051416516304, -0.13395468890666962, 0.2122812718153, 0.37656086683273315, -0.5597733855247498, 0.38701438903808594, 0.57738196849823, -0.4026830196380615, -0.7495843768119812, 1.0543739795684814, 0.018669433891773224, 0.12738652527332306, 0.3060556650161743, 0.33951497077941895, 0.07238902151584625, -0.4502067267894745, -0.5266042351722717, 0.37975648045539856, -0.3382245898246765, -0.24083563685417175, -0.4585946500301361, -0.4152144193649292, -0.4864322543144226, -0.1770971119403839, -0.14961577951908112, -0.17429575324058533, -0.623831570148468, 0.2877980172634125, 0.5137149691581726, 0.43947526812553406, -0.0240126084536314, 0.34648919105529785, -0.9908825159072876, 0.5301837921142578, 0.3257780075073242, 0.3554784953594208, 0.02512141317129135, -0.4944051206111908, -0.22730934619903564, 0.09015648066997528, -0.7478248476982117, -0.9387083649635315, 0.7468132972717285, 0.05529303103685379, 0.40481725335121155, 0.6867337822914124, -0.11799167096614838, 0.7718349695205688, -0.35386285185813904, 1.121361494064331, 0.42254945635795593, -0.7661826610565186, 0.6916342973709106, -0.7124508023262024, 0.3420291543006897, 0.4609187841415405, 0.3425528407096863, -0.5006397366523743, -0.21880018711090088, -0.7113869190216064, -0.7725669145584106, 1.0155686140060425, 0.37914302945137024, 0.23804615437984467, 0.16737790405750275, 0.12944142520427704, -0.30940181016921997, -0.0941196084022522, -0.992919921875, -0.6080387830734253, -0.5425127744674683, 0.11340827494859695, 0.2675654888153076, -0.3124651312828064, 0.12889474630355835, -0.4214361011981964, 1.1372706890106201, 0.02157699503004551, 0.5892003178596497, 0.27574920654296875, 0.4121081531047821, -0.18140126764774323, -0.0137680284678936, 0.6010926365852356, 0.2141977697610855, -0.46586355566978455, -0.1101442277431488, 0.07683651894330978, -0.6936148405075073, -0.0779246836900711, 0.07736145704984665, -0.4621809422969818, 0.13351495563983917, 0.3089543282985687, 0.7299630641937256, -0.14191879332065582, -0.3526209592819214, 0.766240656375885, -0.24735470116138458, -0.12590105831623077, -0.456565260887146, 0.20503905415534973, 0.005522818770259619, 0.15287217497825623, 0.5289364457130432, 0.07766350358724594, 0.3594260811805725, -0.6352136135101318, 0.13251683115959167, 0.3765209913253784, -0.3289613723754883, -0.14663398265838623, 0.8144797682762146, 0.39350783824920654, -0.26281070709228516, 0.3878544867038727, -0.43594595789909363, -0.6226252913475037, 0.9167495369911194, 0.6538858413696289, 0.8343112468719482, -0.4836796820163727, 0.30300167202949524, 0.9067366123199463, 0.39949044585227966, -0.14290077984333038, 0.741774320602417, 0.35635995864868164, -0.7368201613426208, -0.10896597802639008, -0.6092062592506409, -0.1846628040075302, 0.6289365291595459, -0.32399460673332214, 0.8030794858932495, -0.6485779881477356, -0.2818330228328705, -0.06515522301197052, 0.08086483180522919, -0.4548531472682953, 0.6576125621795654, 0.11596156656742096, 1.0176339149475098, -0.6532868146896362, 0.9049662351608276, 0.5068744421005249, -0.7232481837272644, -1.064182996749878, 0.048928774893283844, 0.19050852954387665, -0.7705731987953186, 0.6201348304748535, 0.36577728390693665, 0.08401799947023392, -0.049119606614112854, -0.7911773920059204, -0.9764209985733032, 1.3596982955932617, 0.16397054493427277, -0.22775372862815857, -0.14957794547080994, -0.3223389983177185, 0.422965407371521, -0.45541685819625854, 0.524395227432251, 0.40449535846710205, 0.5882712602615356, 0.3271191418170929, -0.8627890348434448, 0.2738111913204193, -0.8254445791244507, 0.27689987421035767, -0.15216253697872162, -1.127377986907959, 1.1101151704788208, -0.27698826789855957, -0.514664351940155, 0.3943101763725281, 0.7869184017181396, 0.33841419219970703, 0.12998804450035095, 0.5757669806480408, 0.501655638217926, 0.25048619508743286, -0.31515824794769287, 0.8869665265083313, -0.27209174633026123, 0.30817219614982605, 0.8758594989776611, 0.14502595365047455, 0.6680443286895752, -0.027182023972272873, -0.4430897533893585, 0.7198660969734192, 0.9392549991607666, -0.6084609627723694, 0.5725489854812622, -0.06998252123594284, -0.25999879837036133, -0.013688762672245502, -0.17891249060630798, -0.6427789926528931, 0.6818979978561401, 0.24406388401985168, -0.6780216693878174, 0.051902834326028824, -0.1657916009426117, 0.1541527807712555, -0.1805870085954666, -0.1380143016576767, 0.7732539772987366, -0.03190908208489418, -0.4378764033317566, 0.6850970387458801, 0.417142391204834, 0.975775957107544, -0.6081066131591797, -0.4519850015640259, -0.21088483929634094, -0.12567473948001862, -0.40099263191223145, -0.748516321182251, 0.04161133989691734, -0.36653199791908264, 0.17401666939258575, 0.12986057996749878, 0.7715603113174438, -0.2216402292251587, -0.5626607537269592, 0.3185959458351135, 0.12394708395004272, 0.4321848750114441, 0.3069312274456024, -0.9254354238510132, 0.20461933314800262, 0.4450332522392273, -0.3565642535686493, 0.04719362407922745, 0.3580685555934906, 0.19280065596103668, 0.4424222409725189, 0.3984624743461609, 0.3570866286754608, -0.5520973801612854, -0.17463769018650055, 0.8860297799110413, -0.806765615940094, -0.45628294348716736, -0.7317311763763428, 0.6389807462692261, -0.4646341800689697, -0.4293731451034546, 0.8575882315635681, 0.4536324441432953, 0.9390807747840881, -0.2894875407218933, 1.0239275693893433, -0.46708086133003235, 0.3161315321922302, -0.5132339000701904, 1.0055323839187622, -1.0020393133163452, -0.04736744984984398, -0.802314043045044, -0.7100265622138977, -0.37371382117271423, 0.9855425357818604, 0.08662135154008865, 0.36218082904815674, 0.6015619039535522, 0.9346491694450378, 0.23034986853599548, -0.042006321251392365, 0.24473676085472107, 0.2553660571575165, 0.1087024137377739, 0.8778507113456726, 0.5604347586631775, -0.8716229200363159, 0.3991314768791199, -0.931398332118988, -0.40910035371780396, -0.5252261161804199, -0.9216949343681335, -0.7022262811660767, -0.641029417514801, -0.32422909140586853, -0.5590178966522217, -0.26559707522392273, 0.7587631344795227, 0.7365912795066833, -0.7560858726501465, -0.1266537308692932, 0.26126828789711, 0.05099814385175705, -0.4327832758426666, -0.3027644455432892, 0.5408099293708801, 0.40130436420440674, -1.0088790655136108, 0.012850875966250896, 0.24061191082000732, 0.6044723987579346, -0.1749529391527176, -0.09120872616767883, -0.12205921858549118, -0.04919600114226341, 0.5481248497962952, 0.3159555494785309, -0.7780607342720032, -0.4041488766670227, 0.02176503837108612, -0.23936331272125244, 0.3099207878112793, 0.21325598657131195, -0.3291541635990143, 0.5310652852058411, 0.6261898279190063, -0.255225270986557, 0.3631224036216736, 0.07182003557682037, 0.4186776578426361, -0.39965930581092834, 0.007522898260504007, 0.01243311446160078, 0.5533627867698669, 0.34067273139953613, -0.5240366458892822, 0.5358815789222717, 0.44575148820877075, -0.43067172169685364, -0.39732232689857483, 0.027138760313391685, -1.233833909034729, -0.48550915718078613, 1.1174472570419312, 0.05190661549568176, -0.5007574558258057, -0.002566124778240919, -0.6748219728469849, 0.3802776038646698, -0.2791004478931427, 0.7873083353042603, 0.6327317357063293, -0.04442119225859642, -0.24563121795654297, -0.6512399315834045, 0.6648274064064026, -0.026310386136174202, -0.723686933517456, -0.27847820520401, 0.629226565361023, 0.22064319252967834, 0.5173865556716919, 0.8230486512184143, -0.40442582964897156, 0.6420468688011169, -0.018530655652284622, 0.6538926959037781, -0.010944709181785583, 0.06450313329696655, -0.13971200585365295, -0.06670799851417542, 0.048010095953941345, -0.3091953694820404 ]
KoboldAI/OPT-6.7B-Erebus
KoboldAI
"2022-09-19T06:55:22Z"
14,067
87
transformers
[ "transformers", "pytorch", "opt", "text-generation", "en", "arxiv:2205.01068", "license:other", "has_space", "text-generation-inference", "region:us" ]
text-generation
"2022-09-15T06:27:38Z"
--- language: en license: other commercial: no inference: false --- # OPT 6.7B - Erebus ## Model description This is the second generation of the original Shinen made by Mr. Seeker. The full dataset consists of 6 different sources, all surrounding the "Adult" theme. The name "Erebus" comes from the greek mythology, also named "darkness". This is in line with Shin'en, or "deep abyss". For inquiries, please contact the KoboldAI community. **Warning: THIS model is NOT suitable for use by minors. The model will output X-rated content.** ## Training data The data can be divided in 6 different datasets: - Literotica (everything with 4.5/5 or higher) - Sexstories (everything with 90 or higher) - Dataset-G (private dataset of X-rated stories) - Doc's Lab (all stories) - Pike Dataset (novels with "adult" rating) - SoFurry (collection of various animals) The dataset uses `[Genre: <comma-separated list of genres>]` for tagging. ### How to use You can use this model directly with a pipeline for text generation. This example generates a different sequence each time it's run: ```py >>> from transformers import pipeline >>> generator = pipeline('text-generation', model='KoboldAI/OPT-6.7B-Erebus') >>> generator("Welcome Captain Janeway, I apologize for the delay.", do_sample=True, min_length=50) [{'generated_text': 'Welcome Captain Janeway, I apologize for the delay."\nIt's all right," Janeway said. "I'm certain that you're doing your best to keep me informed of what\'s going on."'}] ``` ## Limitations and biases Based on known problems with NLP technology, potential relevant factors include bias (gender, profession, race and religion). **Warning: This model has a very strong NSFW bias!** ### License OPT-6.7B is licensed under the OPT-175B license, Copyright (c) Meta Platforms, Inc. All Rights Reserved. ### BibTeX entry and citation info ``` @misc{zhang2022opt, title={OPT: Open Pre-trained Transformer Language Models}, author={Susan Zhang and Stephen Roller and Naman Goyal and Mikel Artetxe and Moya Chen and Shuohui Chen and Christopher Dewan and Mona Diab and Xian Li and Xi Victoria Lin and Todor Mihaylov and Myle Ott and Sam Shleifer and Kurt Shuster and Daniel Simig and Punit Singh Koura and Anjali Sridhar and Tianlu Wang and Luke Zettlemoyer}, year={2022}, eprint={2205.01068}, archivePrefix={arXiv}, primaryClass={cs.CL} } ```
[ -0.38183844089508057, -0.591901957988739, 0.14349372684955597, 0.15452784299850464, -0.253223180770874, -0.4239542484283447, -0.34814825654029846, -0.42459529638290405, 0.3145345151424408, 0.7616901397705078, -0.803677499294281, -0.3975332975387573, -0.37926334142684937, 0.26429179310798645, -0.2477530986070633, 1.0797936916351318, 0.15601330995559692, -0.15714934468269348, 0.2987334132194519, 0.05993745103478432, -0.4320948123931885, -0.3908338248729706, -0.6802342534065247, -0.3442591428756714, 0.5479539632797241, 0.36252596974372864, 0.8353250026702881, 0.48866716027259827, 0.5308289527893066, 0.27124905586242676, -0.2897474467754364, 0.07075104862451553, -0.6451324224472046, -0.04226003587245941, -0.025701854377985, -0.587823748588562, -0.5167701840400696, -0.13699714839458466, 0.6197593212127686, 0.5579856634140015, -0.021433750167489052, 0.2290758639574051, -0.20861463248729706, 0.5614901781082153, -0.5016048550605774, -0.1541774570941925, -0.5460167527198792, 0.18761131167411804, -0.34330806136131287, 0.05536080151796341, -0.8080457448959351, -0.11137326061725616, 0.16920530796051025, -0.45694345235824585, 0.5788804888725281, 0.2728646397590637, 1.309194803237915, 0.24576158821582794, -0.33387845754623413, -0.09713764488697052, -0.7080574631690979, 0.8945551514625549, -1.013848066329956, 0.43724238872528076, 0.2612692713737488, 0.071438267827034, -0.0502852126955986, -0.9697005748748779, -0.4634350538253784, 0.04465034604072571, -0.1431298404932022, 0.43242359161376953, -0.09574123471975327, -0.2024717926979065, 0.29705801606178284, 0.3670300841331482, -0.5975778698921204, 0.07653453201055527, -0.750286340713501, -0.040680766105651855, 0.7063304781913757, 0.15952791273593903, 0.28165820240974426, -0.5368116497993469, -0.5314224362373352, -0.31918999552726746, -0.5738726258277893, 0.00956095103174448, 0.6376418471336365, 0.4389881193637848, -0.27903953194618225, 0.5157513618469238, 0.21080270409584045, 0.6373205184936523, 0.08815135806798935, 0.1865774244070053, 0.6634014844894409, -0.26263153553009033, -0.20092785358428955, 0.12188834697008133, 0.934590756893158, 0.43284475803375244, 0.08211582899093628, 0.06405756622552872, -0.1601426899433136, -0.16351522505283356, 0.6267995834350586, -0.6880348920822144, -0.23136158287525177, 0.2969909906387329, -0.6814881563186646, -0.5290090441703796, 0.23315894603729248, -1.020825743675232, -0.2836693823337555, -0.047714121639728546, 0.20110498368740082, -0.5390728116035461, -0.5132215023040771, 0.08408133685588837, -0.000752981286495924, 0.5530460476875305, -0.13100966811180115, -0.97161865234375, 0.16707925498485565, 0.29234766960144043, 0.5800270438194275, -0.10240932554006577, -0.4206160306930542, 0.16632026433944702, -0.13809099793434143, -0.4606238603591919, 0.5026038885116577, -0.3060440123081207, -0.1851930469274521, 0.11211232841014862, 0.29905444383621216, -0.1531141847372055, -0.3540898859500885, 1.0837526321411133, -0.5487218499183655, 0.43807175755500793, 0.18393325805664062, -0.39822015166282654, -0.40845951437950134, -0.3650970757007599, -0.773511528968811, 1.083581805229187, 0.2782576084136963, -0.9592313170433044, 0.4488781690597534, -0.6770069599151611, -0.3510121703147888, 0.12443672865629196, 0.16498947143554688, -0.7347428202629089, 0.28047576546669006, 0.15622584521770477, 0.17758266627788544, -0.07297826558351517, 0.32142674922943115, -0.22021155059337616, -0.17477992177009583, 0.22271180152893066, -0.43395137786865234, 1.0081787109375, 0.41973376274108887, -0.42758461833000183, 0.12944969534873962, -0.8364377021789551, 0.17127764225006104, 0.5488058924674988, -0.143209770321846, -0.26644113659858704, 0.10272043943405151, 0.16977165639400482, 0.11269122362136841, 0.2909235954284668, -0.4732705056667328, -0.05512513220310211, -0.6719014048576355, 0.3046540915966034, 0.7018572688102722, -0.16454824805259705, 0.41974955797195435, -0.30176278948783875, 0.46653732657432556, 0.09117770940065384, 0.3440520763397217, -0.4030452370643616, -0.5660704970359802, -1.2140624523162842, -0.08006220310926437, 0.46407899260520935, 0.495986670255661, -0.49718159437179565, 0.7195215225219727, -0.2832475006580353, -0.6477903723716736, -0.815251886844635, -0.3100687563419342, 0.21222446858882904, 0.05046463757753372, 0.4659366309642792, 0.05202249437570572, -0.8234729766845703, -1.0240854024887085, -0.36398687958717346, -0.018187154084444046, -0.009864541701972485, 0.4017072916030884, 0.7036058306694031, -0.38823825120925903, 0.9429303407669067, -0.6344784498214722, -0.2456463873386383, -0.48930203914642334, -0.0008079167455434799, 0.562940239906311, 0.4004896581172943, 0.6047326326370239, -0.9894241094589233, -0.4552406966686249, -0.16482099890708923, -0.753901481628418, -0.24535027146339417, -0.18425346910953522, -0.3426503837108612, 0.10189735889434814, 0.22987395524978638, -0.3169403672218323, 0.4387918710708618, 0.5116130113601685, -0.5424952507019043, 0.5893167853355408, -0.19200503826141357, -0.04661555588245392, -1.4974068403244019, 0.11119819432497025, -0.03145043924450874, -0.18707267940044403, -0.8806780576705933, 0.17950765788555145, 0.15339434146881104, -0.20636780560016632, -0.6112375259399414, 0.5664459466934204, -0.42484787106513977, 0.22061240673065186, -0.22041524946689606, 0.26105284690856934, -0.16354306042194366, 0.5468391180038452, 0.16040021181106567, 0.5183725953102112, 0.5327008366584778, -0.7478057146072388, 0.37070170044898987, 0.528640866279602, -0.10868559032678604, 0.41441065073013306, -0.8217349648475647, 0.08797144144773483, -0.16097737848758698, -0.035469554364681244, -0.645733654499054, -0.362964928150177, 0.2885478734970093, -0.6885092854499817, 0.4329489469528198, -0.06106358394026756, -0.40898412466049194, -0.6736414432525635, -0.16498829424381256, 0.10066834837198257, 0.7624469995498657, -0.6623741388320923, 0.6606631278991699, 0.19991526007652283, -0.24690601229667664, -0.6110795140266418, -0.7364530563354492, -0.028267160058021545, -0.3852967619895935, -0.857795238494873, 0.5263781547546387, -0.015791432932019234, 0.04479339346289635, -0.184257373213768, 0.16457942128181458, -0.03420538827776909, -0.19875945150852203, 0.10387261211872101, 0.4438478946685791, -0.05629697069525719, -0.008909730240702629, 0.2458488494157791, -0.23483088612556458, 0.06422681361436844, -0.051636531949043274, 0.6034256815910339, -0.19706951081752777, -0.07273145765066147, -0.16777673363685608, 0.24127554893493652, 0.2962639629840851, -0.22858256101608276, 0.918891966342926, 0.8424661159515381, -0.47221097350120544, -0.3622804284095764, -0.2799161970615387, -0.3231361210346222, -0.5001282095909119, 0.6291500329971313, -0.24597807228565216, -0.5121427178382874, 0.5873961448669434, 0.11185567080974579, 0.45343783497810364, 0.7985036969184875, 0.45829999446868896, 0.18957412242889404, 1.0707485675811768, 0.8423745036125183, 0.31303146481513977, 0.482289582490921, -0.32032111287117004, 0.24731968343257904, -1.0046234130859375, -0.25583404302597046, -0.45214807987213135, -0.2699856460094452, -0.6398025751113892, -0.11306639760732651, 0.016907475888729095, -0.02389424666762352, -0.44092893600463867, 0.5946087837219238, -0.5757537484169006, 0.18318209052085876, 0.6410982608795166, 0.23073235154151917, -0.005185535177588463, 0.11117063462734222, -0.0886213555932045, -0.2809545695781708, -0.8253241777420044, -0.6084328293800354, 1.2204231023788452, 0.6216256618499756, 0.8945264220237732, 0.16787190735340118, 0.8239367008209229, 0.2091737985610962, 0.19374439120292664, -0.39398807287216187, 0.568849503993988, -0.28074902296066284, -1.0946987867355347, -0.19537411630153656, -0.4221862554550171, -1.0599638223648071, 0.3562607765197754, -0.15027141571044922, -0.6254721879959106, 0.31552907824516296, -0.18743644654750824, -0.24925963580608368, 0.4361242949962616, -0.787408709526062, 0.8599641919136047, -0.3369254767894745, -0.31959056854248047, 0.17043910920619965, -0.8725441694259644, 0.3301204442977905, -0.07819666713476181, 0.15395063161849976, 0.1634545773267746, -0.005595886614173651, 1.0587623119354248, -0.3599500358104706, 0.9591452479362488, 0.09015420079231262, -0.13024379312992096, 0.3755946159362793, -0.2763805687427521, 0.3507816195487976, 0.04255189001560211, 0.01407479029148817, 0.19260039925575256, -0.2772204577922821, -0.2575893998146057, -0.06220544874668121, 0.600633978843689, -0.9806472063064575, -0.144401416182518, -0.5508148670196533, -0.21180084347724915, 0.2916496992111206, 0.6301059126853943, 0.8335670828819275, 0.4773396849632263, 0.01519930548965931, 0.3807098865509033, 0.772466778755188, -0.5131075382232666, 0.39834311604499817, 0.507577657699585, -0.5723180770874023, -0.773807168006897, 0.8277601003646851, -0.03900018706917763, 0.2388555109500885, 0.0729483887553215, 0.10368207842111588, -0.4139995276927948, -0.18898248672485352, -0.379711776971817, 0.46924981474876404, -0.7368788123130798, -0.15982787311077118, -0.6817234754562378, -0.5217391848564148, -0.3790619969367981, -0.23334090411663055, -0.5536444187164307, 0.038010530173778534, -0.47751420736312866, -0.020679056644439697, 0.14454834163188934, 0.5940729975700378, 0.0389164499938488, 0.4519701600074768, -0.7800940275192261, 0.3334321677684784, -0.0007224521832540631, 0.4570426642894745, -0.12493292987346649, -0.9967714548110962, -0.33222588896751404, 0.21018686890602112, -0.41549667716026306, -1.122227668762207, 0.6632446050643921, 0.1473645567893982, 0.7249376773834229, 0.4758063852787018, 0.3437822163105011, 0.23114663362503052, -0.5349610447883606, 1.0348119735717773, 0.29461875557899475, -0.5742719173431396, 0.553784966468811, -0.4487592279911041, 0.22234424948692322, 0.43699491024017334, 0.32393741607666016, -0.3087747097015381, -0.4381658136844635, -1.0349373817443848, -1.1575133800506592, 1.1192153692245483, 0.5557535886764526, 0.2105855941772461, 0.04932425171136856, 0.22222165763378143, 0.26883578300476074, 0.179548442363739, -1.2899043560028076, -0.8237332701683044, -0.3493637144565582, -0.30392059683799744, -0.10367023199796677, -0.3395063281059265, 0.021469416096806526, -0.04883086681365967, 0.9615474939346313, 0.07011663168668747, 0.6429187655448914, 0.2344931960105896, -0.2334422916173935, -0.14314165711402893, 0.31855928897857666, 0.6123647689819336, 0.4406948685646057, -0.3248441219329834, -0.053991835564374924, 0.20088298618793488, -0.7761877775192261, -0.15153740346431732, 0.17130151391029358, -0.6351256966590881, 0.27245989441871643, 0.17077665030956268, 1.3170794248580933, 0.18661566078662872, -0.3252660632133484, 0.2822476625442505, -0.023054370656609535, -0.23063023388385773, -0.7278303503990173, -0.02221726067364216, -0.08676432818174362, 0.16753078997135162, 0.43062886595726013, 0.1745382696390152, 0.023669658228754997, -0.2752242088317871, 0.07896649837493896, -0.11442729830741882, -0.46120685338974, -0.30746951699256897, 0.9388367533683777, 0.25340908765792847, -0.5213833451271057, 0.8427326679229736, -0.27868974208831787, -0.5102081894874573, 0.5741519331932068, 0.871343195438385, 1.1117968559265137, -0.18118725717067719, 0.31342050433158875, 0.7658117413520813, 0.6218276023864746, 0.08189239352941513, 0.3796004056930542, 0.6498894095420837, -0.7290355563163757, -0.212971493601799, -0.8265018463134766, -0.12608295679092407, 0.3715711832046509, -0.6633118987083435, 0.6553109884262085, -0.04696953296661377, -0.5599022507667542, -0.14093835651874542, -0.2069588601589203, -0.563305139541626, 0.23256318271160126, 0.4051215350627899, 0.8222162127494812, -0.8697240352630615, 0.14072678983211517, 0.9251736998558044, -0.5777161717414856, -0.7021210193634033, -0.11670511960983276, -0.41725677251815796, -0.37219297885894775, 0.3685413599014282, 0.34381210803985596, 0.26456528902053833, 0.2563818693161011, -0.7604772448539734, -0.8783286213874817, 0.9084725379943848, 0.09864918887615204, -0.33477121591567993, -0.10907263308763504, -0.005171222146600485, 0.5612136125564575, -0.4153980314731598, 0.5156121850013733, 0.4419603943824768, 0.5946845412254333, -0.27759629487991333, -0.6655837893486023, -0.11626319587230682, -0.4995879828929901, 0.18541832268238068, 0.17631033062934875, -0.7632275223731995, 0.9996408224105835, -0.43158015608787537, -0.28523337841033936, 0.18639327585697174, 0.8476434946060181, 0.33653074502944946, 0.21340610086917877, 0.384101539850235, 0.5886639356613159, 0.46247342228889465, -0.3656676113605499, 0.8292300701141357, -0.34635835886001587, 0.7088744044303894, 0.9684023857116699, -0.045787274837493896, 0.6819736361503601, 0.21094880998134613, -0.5381788611412048, 0.6996115446090698, 0.8207000494003296, -0.3093721866607666, 0.4903610944747925, -0.06014180928468704, 0.14443883299827576, -0.2440219670534134, 0.12803171575069427, -0.6109583973884583, 0.2058156132698059, 0.27589163184165955, -0.7094545364379883, -0.0001928127749124542, 0.04380281642079353, 0.07635987550020218, -0.10240384936332703, -0.22479501366615295, 0.5960327982902527, 0.21086254715919495, -0.5940237641334534, 0.6728215217590332, 0.059373609721660614, 0.8499336242675781, -0.8648706674575806, 0.16284555196762085, 0.031193414703011513, 0.2947593033313751, -0.2595881223678589, -0.718387246131897, -0.0723637044429779, -0.07823456078767776, -0.3276853561401367, -0.02667412906885147, 0.8754533529281616, -0.3568406105041504, -0.6585837006568909, 0.2251213937997818, 0.2752431631088257, 0.3324357867240906, 0.29975202679634094, -0.7386395931243896, -0.09373738616704941, 0.21839763224124908, -0.5108582973480225, 0.018906572833657265, 0.12058772146701813, 0.3293759822845459, 0.6689728498458862, 0.5261316299438477, 0.0466424860060215, 0.521152138710022, 0.14403654634952545, 0.6331950426101685, -0.64375239610672, -0.6768867373466492, -0.49795296788215637, 0.6821476817131042, -0.3297518789768219, -0.559285581111908, 0.7996883988380432, 0.5376764535903931, 0.7760737538337708, -0.4798582196235657, 0.9351211786270142, -0.4254348874092102, 0.6174309253692627, -0.2675062119960785, 0.8956282138824463, -0.6165945529937744, -0.13621915876865387, -0.36800360679626465, -1.2437939643859863, 0.01636860892176628, 0.8146260976791382, -0.1533532440662384, 0.4724816381931305, 0.836347758769989, 0.6156180500984192, -0.00012301019160076976, 0.16722124814987183, 0.19725719094276428, 0.25476503372192383, 0.20617564022541046, 0.3397694230079651, 0.6914286017417908, -0.8548654317855835, 0.5125713348388672, -0.4205676317214966, -0.19884800910949707, -0.4562871754169464, -0.6446508765220642, -0.9608277082443237, -0.5093942284584045, -0.27791962027549744, -0.39432957768440247, -0.19312787055969238, 0.5928757786750793, 0.5730962753295898, -0.7523313164710999, 0.034835491329431534, -0.12263823300600052, -0.05879739671945572, -0.3052733242511749, -0.2981886863708496, 0.3502991497516632, -0.29953473806381226, -0.849094033241272, 0.23362748324871063, -0.1467767357826233, 0.15824641287326813, -0.286410391330719, -0.1685734987258911, -0.22924047708511353, 0.09855981916189194, 0.32169994711875916, 0.10952318459749222, -0.6140775680541992, -0.03535867854952812, 0.3206743001937866, 0.00181249575689435, -0.11148900538682938, 0.33909812569618225, -0.45470908284187317, 0.5263200998306274, 0.5810379385948181, 0.09857227653265, 0.21652919054031372, -0.08842860162258148, 0.4868473410606384, -0.6168970465660095, 0.03519967570900917, 0.22684460878372192, 0.4596816301345825, 0.27933892607688904, -0.208872988820076, 0.5672370195388794, 0.2066792994737625, -0.7551381587982178, -0.9578163623809814, 0.31343838572502136, -0.8128033876419067, -0.11490090191364288, 1.3618006706237793, -0.11574994772672653, -0.29324856400489807, 0.013432784005999565, -0.36709678173065186, 0.36011698842048645, -0.29494792222976685, 0.3231557309627533, 0.4862107038497925, 0.31291255354881287, -0.19494006037712097, -0.6944402456283569, 0.21985161304473877, 0.24895013868808746, -0.5598766207695007, 0.10864885151386261, 0.23887857794761658, 0.18502433598041534, 0.48533278703689575, 0.28410035371780396, -0.2219235748052597, 0.22042585909366608, 0.35214102268218994, 0.4357813000679016, -0.047892794013023376, -0.43687915802001953, -0.17698141932487488, -0.11505521833896637, -0.28322848677635193, 0.10306590795516968 ]
dicta-il/dictabert-morph
dicta-il
"2023-11-06T19:17:36Z"
14,061
0
transformers
[ "transformers", "pytorch", "bert", "feature-extraction", "custom_code", "he", "arxiv:2308.16687", "license:cc-by-4.0", "region:us" ]
feature-extraction
"2023-08-29T17:24:14Z"
--- license: cc-by-4.0 language: - he inference: false --- # DictaBERT: A State-of-the-Art BERT Suite for Modern Hebrew State-of-the-art language model for Hebrew, released [here](https://arxiv.org/abs/2308.16687). This is the fine-tuned model for the morphological tagging task. For the base model, see [here](https://huggingface.co/dicta-il/dictabert). For the segmentation model, see [here](https://huggingface.co/dicta-il/dictabert-seg). For the QA model, see [here](https://huggingface.co/dicta-il/dictabert-heq). Sample usage: ```python from transformers import AutoModel, AutoTokenizer tokenizer = AutoTokenizer.from_pretrained('dicta-il/dictabert-morph') model = AutoModel.from_pretrained('dicta-il/dictabert-morph', trust_remote_code=True) model.eval() sentence = 'בשנת 1948 השלים אפרים קישון את לימודיו בפיסול מתכת ובתולדות האמנות והחל לפרסם מאמרים הומוריסטיים' print(model.predict([sentence], tokenizer)) ``` Output: ```json [{ "text": "בשנת 1948 השלים אפרים קישון את לימודיו בפיסול מתכת ובתולדות האמנות והחל לפרסם מאמרים הומוריסטיים", "tokens": [{ "token": "בשנת", "pos": "NOUN", "feats": { "Gender": "Fem", "Number": "Sing" }, "prefixes": ["ADP"], "suffix": false }, { "token": "1948", "pos": "NUM", "feats": {}, "prefixes": [], "suffix": false }, { "token": "השלים", "pos": "VERB", "feats": { "Gender": "Masc", "Number": "Sing", "Person": "3", "Tense": "Past" }, "prefixes": [], "suffix": false }, { "token": "אפרים", "pos": "PROPN", "feats": {}, "prefixes": [], "suffix": false }, { "token": "קישון", "pos": "PROPN", "feats": {}, "prefixes": [], "suffix": false }, { "token": "את", "pos": "ADP", "feats": {}, "prefixes": [], "suffix": false }, { "token": "לימודיו", "pos": "NOUN", "feats": { "Gender": "Masc", "Number": "Plur" }, "prefixes": [], "suffix": "PRON", "suffix_feats": { "Gender": "Masc", "Number": "Sing", "Person": "3" } }, { "token": "בפיסול", "pos": "NOUN", "feats": { "Gender": "Masc", "Number": "Sing" }, "prefixes": ["ADP"], "suffix": false }, { "token": "מתכת", "pos": "NOUN", "feats": { "Gender": "Fem", "Number": "Sing" }, "prefixes": [], "suffix": false }, { "token": "ובתולדות", "pos": "NOUN", "feats": { "Gender": "Fem", "Number": "Plur" }, "prefixes": ["CCONJ", "ADP"], "suffix": false }, { "token": "האמנות", "pos": "NOUN", "feats": { "Gender": "Fem", "Number": "Sing" }, "prefixes": ["DET"], "suffix": false }, { "token": "והחל", "pos": "VERB", "feats": { "Gender": "Masc", "Number": "Sing", "Person": "3", "Tense": "Past" }, "prefixes": ["CCONJ"], "suffix": false }, { "token": "לפרסם", "pos": "VERB", "feats": {}, "prefixes": [], "suffix": false }, { "token": "מאמרים", "pos": "NOUN", "feats": { "Gender": "Masc", "Number": "Plur" }, "prefixes": [], "suffix": false }, { "token": "הומוריסטיים", "pos": "ADJ", "feats": { "Gender": "Masc", "Number": "Plur" }, "prefixes": [], "suffix": false }] }] ``` ## Citation If you use DictaBERT in your research, please cite ```DictaBERT: A State-of-the-Art BERT Suite for Modern Hebrew``` **BibTeX:** ```bibtex @misc{shmidman2023dictabert, title={DictaBERT: A State-of-the-Art BERT Suite for Modern Hebrew}, author={Shaltiel Shmidman and Avi Shmidman and Moshe Koppel}, year={2023}, eprint={2308.16687}, archivePrefix={arXiv}, primaryClass={cs.CL} } ``` ## License Shield: [![CC BY 4.0][cc-by-shield]][cc-by] This work is licensed under a [Creative Commons Attribution 4.0 International License][cc-by]. [![CC BY 4.0][cc-by-image]][cc-by] [cc-by]: http://creativecommons.org/licenses/by/4.0/ [cc-by-image]: https://i.creativecommons.org/l/by/4.0/88x31.png [cc-by-shield]: https://img.shields.io/badge/License-CC%20BY%204.0-lightgrey.svg
[ -0.6911634802818298, -0.5277032852172852, 0.08740534633398056, 0.381176233291626, -0.4558600187301636, 0.1233595758676529, -0.18185916543006897, -0.23430223762989044, 0.5057785511016846, 0.04849178344011307, -0.8033308982849121, -0.92659991979599, -0.7985453009605408, 0.1906200349330902, -0.3883594572544098, 0.8722143173217773, 0.1411937177181244, 0.1191319078207016, 0.3897487223148346, 0.00827664416283369, -0.3140268325805664, -0.22131486237049103, -0.308495432138443, -0.1937345415353775, 0.4261554777622223, 0.18265588581562042, 1.09535813331604, 0.48219290375709534, 0.5805951952934265, 0.40114569664001465, -0.38871344923973083, 0.1538492739200592, 0.0028166708070784807, -0.006061088293790817, 0.04414436221122742, -0.22540956735610962, -0.4585687220096588, -0.07446131110191345, 0.9305378198623657, 0.7162946462631226, -0.11578062921762466, 0.3142155110836029, -0.21038289368152618, 0.945117712020874, -0.3167227506637573, 0.08252008259296417, -0.7048419117927551, 0.09683926403522491, -0.45979785919189453, -0.1264982372522354, -0.15724092721939087, -0.3951079547405243, 0.12271256744861603, -0.5519067049026489, 0.0791136771440506, 0.10937891155481339, 1.3734019994735718, 0.3729470372200012, 0.0024062194861471653, -0.6271064877510071, -0.5231287479400635, 1.0635602474212646, -1.044473648071289, 0.5819718837738037, 0.5828232765197754, 0.14527201652526855, -0.4642099440097809, -0.8817960023880005, -0.6685783863067627, -0.14879906177520752, -0.2645999491214752, 0.4374906122684479, -0.5467696189880371, -0.3101246654987335, 0.2269749790430069, 0.3511578142642975, -0.5094210505485535, -0.18855395913124084, -0.3816913962364197, -0.2443254292011261, 0.43626347184181213, -0.027698351070284843, 0.7938851118087769, -0.5107938647270203, -0.4915462136268616, -0.29221677780151367, -0.5133783221244812, 0.26666319370269775, 0.3624846935272217, 0.17523546516895294, -0.3163466453552246, 0.6653614640235901, 0.1393055021762848, 0.9856004118919373, 0.1907600313425064, -0.2468704730272293, 0.6969301104545593, -0.5051884651184082, -0.2503688931465149, 0.17572076618671417, 1.0602374076843262, 0.2585863769054413, -0.030579013749957085, -0.05849176272749901, 0.07169264554977417, -0.009447834454476833, 0.23249439895153046, -0.7525824904441833, -0.26887497305870056, 0.16555970907211304, -0.6173051595687866, -0.012764647603034973, 0.22132909297943115, -0.9566248059272766, -0.11968878656625748, -0.3287055194377899, 0.3707498013973236, -1.050392746925354, -0.1928805559873581, 0.214938685297966, -0.15797969698905945, 0.2287273108959198, 0.12396123260259628, -1.0203185081481934, 0.1926082968711853, 0.4359569251537323, 0.7845105528831482, 0.25623077154159546, -0.4716537296772003, -0.30318358540534973, -0.05083053559064865, -0.27814778685569763, 0.3502204120159149, -0.45452892780303955, -0.1701470911502838, -0.019738515838980675, 0.0038458660710603, -0.19548897445201874, -0.41020143032073975, 0.5163961052894592, -0.45439082384109497, -0.0459049791097641, -0.22472190856933594, -0.6189020276069641, -0.3296370208263397, 0.032131362706422806, -0.8003503084182739, 1.2952759265899658, 0.27814891934394836, -1.0170010328292847, 0.39903324842453003, -0.6052830815315247, -0.4218667149543762, 0.0650617927312851, -0.4786209464073181, -0.610811173915863, 0.07928512990474701, 0.3077032268047333, 0.48392370343208313, -0.31771284341812134, 0.04856164753437042, 0.2629706859588623, -0.4400700628757477, 0.4499649107456207, -0.08184106647968292, 1.278792381286621, 0.4113490879535675, -0.8276947140693665, -0.07927900552749634, -0.9601582884788513, 0.02777915820479393, 0.3482810854911804, -0.5209605097770691, -0.23915192484855652, 0.156379833817482, -0.04771237075328827, 0.19976873695850372, 0.16380903124809265, -0.7026892304420471, 0.056004542857408524, -0.6977794170379639, 0.32278183102607727, 0.527656078338623, -0.21466107666492462, 0.30904698371887207, -0.5902087092399597, 0.3612823784351349, 0.0016305744647979736, 0.1607625037431717, 0.07487478107213974, -0.519309401512146, -0.6255902647972107, -0.7937242984771729, 0.36430466175079346, 0.4356936514377594, -0.6391276121139526, 1.199520468711853, -0.5375809073448181, -0.8358508348464966, -0.891800582408905, 0.15807399153709412, 0.19961242377758026, 0.3700055778026581, 0.4944985806941986, -0.15874740481376648, -0.7585110068321228, -1.0014770030975342, 0.07409566640853882, -0.23306915163993835, 0.34665554761886597, 0.0758880153298378, 0.6866774559020996, -0.14047738909721375, 0.8459941744804382, -0.3831965923309326, -0.4570578932762146, -0.4406428933143616, 0.09244879335165024, 0.8133816719055176, 0.5776699781417847, 0.8531129360198975, -1.11299467086792, -0.7444578409194946, -0.11985861510038376, -0.5116173028945923, 0.06882061064243317, -0.07436385750770569, -0.16470001637935638, -0.09405861794948578, 0.41404980421066284, -0.5468881726264954, 0.4603274464607239, 0.5333351492881775, -0.647436261177063, 0.5279093384742737, -0.05096570402383804, 0.37377724051475525, -1.2563178539276123, 0.06746872514486313, -0.23134253919124603, 0.020461037755012512, -0.8447182774543762, -0.17385025322437286, 0.0913364365696907, 0.4831508696079254, -0.709345281124115, 0.4008592665195465, -0.4741925299167633, 0.09490127861499786, -0.06838032603263855, -0.02118268422782421, -0.09601454436779022, 0.5096323490142822, -0.15542854368686676, 0.9189232587814331, 0.9708682298660278, -0.5941340327262878, 0.6243589520454407, 0.705513060092926, -0.8187569975852966, 0.1841401606798172, -0.659487783908844, -0.2780489921569824, -0.3316124677658081, 0.0878225713968277, -1.1584246158599854, -0.15269030630588531, 0.3938363790512085, -0.9183681011199951, 0.5530987977981567, -0.10394997894763947, -0.9291201233863831, -0.4534122049808502, -0.3724559545516968, 0.41920697689056396, 0.9221124053001404, -0.41422373056411743, 0.6792706251144409, 0.23634706437587738, 0.014746482484042645, -0.8053472638130188, -0.7909343242645264, -0.07420781254768372, -0.29261067509651184, -0.6910855174064636, 0.7210595011711121, -0.22474053502082825, -0.3162096440792084, 0.1586693823337555, -0.19936136901378632, 0.10955354571342468, 0.39696574211120605, 0.30917108058929443, 0.3905152678489685, -0.040949102491140366, 0.005407429300248623, -0.013118448667228222, 0.11882559210062027, -0.1352931410074234, -0.2691313922405243, 1.1716636419296265, -0.4470592141151428, -0.648469865322113, -0.6856122016906738, 0.29969701170921326, 0.6627169847488403, -0.32949841022491455, 0.9249666929244995, 1.075623869895935, -0.48183318972587585, 0.06019869074225426, -0.5820443630218506, -0.013009839691221714, -0.4645801782608032, 0.22864088416099548, -0.3702257573604584, -0.6891263723373413, 0.6489249467849731, -0.2015295773744583, 0.18696194887161255, 0.8115347623825073, 0.9908451437950134, -0.5441051721572876, 0.8744274973869324, 0.02511468529701233, -0.05311848595738411, 0.6328864097595215, -0.6654792428016663, -0.031849369406700134, -0.9471948146820068, -0.3966192901134491, -0.4993404448032379, -0.5783738493919373, -0.6156471371650696, -0.5943772792816162, 0.3123255968093872, 0.23084543645381927, -0.1234709843993187, 0.5761371850967407, -0.7748726010322571, 0.07650281488895416, 0.8465991020202637, -0.10614572465419769, -0.1497184932231903, 0.1504652053117752, -0.556296169757843, -0.29865214228630066, -0.3861808180809021, -0.4965116083621979, 1.0083715915679932, 0.26914724707603455, 0.4027932584285736, 0.6108046770095825, 1.0577651262283325, 0.5860939025878906, -0.11076276749372482, -0.6583737134933472, 0.5630351901054382, -0.11878574639558792, -0.8289628028869629, -0.4655320644378662, -0.04654347524046898, -1.2586387395858765, 0.40139734745025635, -0.20892202854156494, -1.1045035123825073, 0.006112583447247744, -0.22013263404369354, -0.45220667123794556, 0.444282591342926, -0.261273592710495, 0.5581560730934143, -0.00169133220333606, -0.12795895338058472, -0.03560658544301987, -0.9350835084915161, -0.07706349343061447, 0.02850344032049179, 0.5053131580352783, -0.5223950147628784, 0.14094150066375732, 1.0955270528793335, -0.5499734282493591, 1.026583194732666, 0.13259732723236084, 0.038796424865722656, 0.6022580862045288, 0.10814397782087326, 0.6110750436782837, 0.011859620921313763, -0.04322698712348938, 0.11566847562789917, 0.14949041604995728, -0.427333265542984, -0.3901173770427704, 0.7555210590362549, -1.0432935953140259, -0.5456169843673706, -0.6624280214309692, -0.28678369522094727, 0.09297696501016617, 0.32973286509513855, 0.5207533836364746, 0.5858680605888367, -0.029774295166134834, 0.31345024704933167, 0.4527248740196228, -0.30519649386405945, 0.4951576292514801, 0.39638227224349976, -0.1137242391705513, -0.6611284017562866, 0.719752848148346, 0.030798641964793205, -0.07797345519065857, 0.47225117683410645, 0.18471701443195343, -0.41777682304382324, -0.7549287676811218, -0.47788918018341064, 0.4699377417564392, -0.6384516954421997, -0.15398943424224854, -0.3664124608039856, -0.2924489974975586, -0.6319289803504944, -0.12521207332611084, -0.44224631786346436, -0.43994465470314026, -0.23389989137649536, -0.03349744528532028, 0.567793607711792, 0.5976311564445496, -0.284347802400589, 0.1552564799785614, -1.0112632513046265, 0.3149961531162262, -0.08184678107500076, 0.09664016962051392, -0.07174357026815414, -0.6388533115386963, -0.184381365776062, -0.11500078439712524, -0.1578228771686554, -1.2082791328430176, 0.4553743898868561, 0.05792203173041344, 0.6384725570678711, -0.0681256353855133, 0.06708583235740662, 0.6902137994766235, -0.8459517359733582, 0.9942009449005127, 0.7369494438171387, -1.0809935331344604, 0.8013699650764465, -0.4968450367450714, 0.38572433590888977, 0.6986256241798401, 0.41847071051597595, -0.7331817746162415, -0.5736218690872192, -0.5671176910400391, -1.2075914144515991, 0.9368520975112915, 0.8251187205314636, 0.3146352469921112, -0.424185186624527, 0.011949654668569565, 0.22096143662929535, 0.21149976551532745, -0.6645817160606384, -1.1351065635681152, -0.45968934893608093, -0.6315473914146423, 0.20073159039020538, -0.08312124758958817, -0.1780780553817749, -0.7442230582237244, 1.064328908920288, 0.339257150888443, 0.48523998260498047, 0.49814966320991516, -0.12573044002056122, 0.10157546401023865, 0.43510499596595764, 0.773084282875061, 0.7139815092086792, -0.2807541787624359, 0.29166996479034424, 0.18928590416908264, -0.7360212802886963, 0.14298522472381592, 0.12415987253189087, -0.3225467801094055, 0.38032087683677673, 0.46430090069770813, 0.9396019577980042, 0.29293906688690186, -0.6799763441085815, 0.4757610261440277, 0.18582653999328613, -0.6547949314117432, -0.9343066811561584, -0.3933713436126709, 0.24998991191387177, 0.4308415949344635, 0.5417835712432861, -0.0971451848745346, 0.012555213645100594, -0.3109149932861328, 0.2467460185289383, 0.21845833957195282, -0.43644386529922485, -0.4018082916736603, 0.7285844087600708, -0.3950619399547577, -0.245212584733963, 0.3865707814693451, -0.3933963477611542, -0.5957306623458862, 0.677958071231842, 0.5365035533905029, 0.7092239260673523, -0.14999689161777496, 0.27999311685562134, 0.6838445663452148, 0.24028009176254272, 0.15036195516586304, 0.7333813905715942, 0.02925177663564682, -0.7446168661117554, -0.3005467653274536, -1.025623083114624, 0.22043779492378235, 0.3342586159706116, -0.5536767840385437, -0.012233134359121323, -0.5619593858718872, -0.5701212882995605, 0.3158226013183594, -0.19059166312217712, -0.9861428141593933, 0.1048046126961708, 0.3824143409729004, 0.7080896496772766, -0.5107921957969666, 0.9208950996398926, 1.008345127105713, -0.6057775020599365, -1.0545927286148071, -0.11046180874109268, -0.013864261098206043, -0.8421710729598999, 1.19598388671875, -0.10891691595315933, -0.15898746252059937, 0.31073158979415894, -0.2331661432981491, -1.3290845155715942, 1.3298885822296143, -0.06685618311166763, -0.4983489513397217, 0.09959310293197632, 0.08049468696117401, 0.42719608545303345, 0.07757335156202316, 0.21323685348033905, 0.6955119967460632, 0.7507645487785339, 0.45352891087532043, -0.8924393653869629, 0.27387163043022156, -0.6663811802864075, -0.029191775247454643, 0.4746302366256714, -0.7109971046447754, 0.9203661680221558, 0.23871257901191711, -0.3441513776779175, 0.16354914009571075, 0.9191725254058838, 0.2390279471874237, -0.012921489775180817, 0.5578084588050842, 0.7473465204238892, 0.5810946822166443, -0.3548938035964966, 0.8684127926826477, -0.5974895358085632, 0.4873141348361969, 0.8835744261741638, 0.09807248413562775, 0.709687352180481, 0.6159887313842773, -0.6257060170173645, 0.6240664720535278, 0.38961169123649597, -0.47187477350234985, 0.7873457074165344, 0.4963129162788391, -0.33934807777404785, -0.2506383955478668, -0.21281036734580994, -0.3371824622154236, 0.8106558322906494, 0.30760249495506287, -0.5592981576919556, -0.17489725351333618, -0.06951995193958282, 0.30744972825050354, 0.23770533502101898, -0.19098971784114838, 0.7315260767936707, -0.028337830677628517, -0.7280896902084351, 0.8114977478981018, 0.00019031288684345782, 0.6363946199417114, -0.6898044943809509, 0.09548324346542358, 0.2802164554595947, 0.1455848217010498, -0.11566782742738724, -0.7169546484947205, 0.285232275724411, -0.017778994515538216, 0.003977971151471138, -0.006838440895080566, 0.49837493896484375, -0.15014119446277618, -0.696898341178894, 0.5121100544929504, 0.6109002232551575, 0.26733919978141785, 0.5903957486152649, -0.9203622937202454, 0.046891119331121445, 0.15466131269931793, -0.3431648313999176, 0.12962660193443298, 0.19784708321094513, 0.4116484224796295, 0.3616310656070709, 0.6452363729476929, 0.4744483530521393, 0.4706510305404663, 0.4487959146499634, 0.8805112242698669, -0.8515274524688721, -0.21579691767692566, -1.4176616668701172, 0.6884167194366455, 0.0257404875010252, -0.09963146597146988, 0.7226012349128723, 0.5117414593696594, 0.6511732935905457, -0.1262955218553543, 0.7697060108184814, -0.46117767691612244, 0.4782336354255676, -0.6238887310028076, 0.8593030571937561, -0.9186742901802063, -0.06092728674411774, -0.39545348286628723, -0.8580286502838135, -0.39785587787628174, 0.819267988204956, -0.11438003927469254, -0.012497427873313427, 0.6141562461853027, 0.5545005798339844, 0.10597202926874161, -0.17957188189029694, 0.16958992183208466, 0.18918022513389587, 0.2506074011325836, 0.4724016785621643, 0.9969209432601929, -0.6018089056015015, 0.541987955570221, -0.4539186358451843, -0.01542106457054615, -0.36408087611198425, -0.7970273494720459, -1.105281949043274, -1.0849806070327759, -0.34085115790367126, -0.3644847273826599, -0.19526731967926025, 1.5436667203903198, 0.39363348484039307, -0.7852482199668884, 0.016074100509285927, -0.0896109938621521, -0.06055965647101402, -0.48905065655708313, -0.23283743858337402, 0.8158649206161499, -0.3237079977989197, -0.9255622029304504, 0.562203586101532, 0.1946728229522705, 0.37864333391189575, 0.20884670317173004, -0.12875248491764069, -0.5483009815216064, 0.19003593921661377, 0.27416419982910156, 0.08792261779308319, -1.203369379043579, -0.2576581835746765, -0.012909048236906528, -0.18581357598304749, 0.19948838651180267, 0.2475939840078354, -0.2675647735595703, 0.36042171716690063, 0.6401910781860352, 0.34202492237091064, 0.4405825734138489, -0.04852106794714928, 0.01074911653995514, -0.8601059913635254, 0.12692295014858246, 0.397330641746521, 0.7346392869949341, 0.05967585742473602, 0.10182144492864609, 0.4175061881542206, 0.12579187750816345, -0.34799423813819885, -0.6668090224266052, 0.341111421585083, -1.2713217735290527, -0.3200153410434723, 1.2607569694519043, -0.21744750440120697, -0.21263079345226288, -0.18633152544498444, -0.3345447778701782, 0.6308608055114746, -0.37196972966194153, 0.6548630595207214, 0.9254254102706909, 0.15956707298755646, 0.33216503262519836, -0.6283264756202698, 0.6622908115386963, 0.5797023177146912, -0.2732352018356323, -0.24398460984230042, 0.22291336953639984, 0.2963133156299591, 0.631889283657074, 0.702151358127594, -0.36096441745758057, 0.3256314694881439, 0.06934396177530289, 0.313629686832428, -0.15989364683628082, -0.022266432642936707, 0.06930720061063766, -0.18635280430316925, 0.22803421318531036, -0.47240516543388367 ]
pankajmathur/Lima_Unchained_70b
pankajmathur
"2023-11-18T12:13:32Z"
14,047
4
transformers
[ "transformers", "pytorch", "llama", "text-generation", "en", "dataset:psmathur/lima_unchained_v1", "arxiv:2305.11206", "license:llama2", "endpoints_compatible", "text-generation-inference", "region:us" ]
text-generation
"2023-08-02T02:49:09Z"
--- language: - en library_name: transformers datasets: - psmathur/lima_unchained_v1 license: llama2 --- # Lima_Unchained_70b A Llama2-70b model fine-tuned using QLora on all the linear layers with carefully selected ~900 conversations from the [Lima](https://arxiv.org/pdf/2305.11206.pdf) <br> **P.S. If you're interested to collaborate, please connect with me at www.linkedin.com/in/pankajam.** ## Evaluation We evaluated Lima_Unchained_70b on a wide range of tasks using [Language Model Evaluation Harness](https://github.com/EleutherAI/lm-evaluation-harness) from EleutherAI. Here are the results on metrics used by [HuggingFaceH4 Open LLM Leaderboard](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard) ||||| |:------:|:--------:|:-------:|:--------:| |**Task**|**Metric**|**Value**|**Stderr**| |*arc_challenge*|acc_norm|0.6826|0.0141| |*hellaswag*|acc_norm|0.8765|0.0038| |*mmlu*|acc_norm|0.70|0.0351| |*truthfulqa_mc*|mc2|0.4876|0.0157| |**Total Average**|-|**0.6867**|| <br> ## Example Usage Here is the prompt format ``` ### User: Write a stand-up skit in the style of George Carlin that ridicules Pacific Gas and Electric. ### Assistant: ``` Below shows a code example on how to use this model ```python import torch from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline model_path="pankajmathur/Lima_Unchained_70b" tokenizer = AutoTokenizer.from_pretrained(model_path) model = AutoModelForCausalLM.from_pretrained( model_path, torch_dtype=torch.float16, load_in_8bit=True, low_cpu_mem_usage=True, device_map="auto" ) #generate text steps instruction = "Write a stand-up skit in the style of George Carlin that ridicules Pacific Gas and Electric." prompt = f"### User: {instruction}\n\n### Assistant:\n" inputs = tokenizer(prompt, return_tensors="pt").to("cuda") output = model.generate(**inputs, do_sample=True, top_p=0.95, top_k=0, max_new_tokens=4096) print(tokenizer.decode(output[0], skip_special_tokens=True)) ``` <br> #### Limitations & Biases: While this model aims for accuracy, it can occasionally produce inaccurate or misleading results. Despite diligent efforts in refining the pretraining data, there remains a possibility for the generation of inappropriate, biased, or offensive content. Exercise caution and cross-check information when necessary. <br> ### Citiation: Please kindly cite using the following BibTeX: ``` @misc{Lima_Unchained_70b, author = {Pankaj Mathur}, title = {Lima_Unchained_70b: A LIMA style Llama2-70b model}, year = {2023}, publisher = {HuggingFace}, journal = {HuggingFace repository}, howpublished = {\url{https://https://huggingface.co/psmathur/model_42_70b}, } ``` ``` @misc{ChuntingZhou, title={LIMA: Less Is More for Alignment}, author={Chunting Zhou, Pengfei Liu, Puxin Xu, Srini Iyer, Jiao Sun, Yuning Mao, Xuezhe Ma, Avia Efrat, Ping Yu, Lili Yu, Susan Zhang, Gargi Ghosh, Mike Lewis, Luke Zettlemoyer, Omer Levy}, year={2023}, eprint={2305.11206}, archivePrefix={arXiv}, primaryClass={cs.CL} } ``` ``` @software{touvron2023llama2, title={Llama 2: Open Foundation and Fine-Tuned Chat Models}, author={Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, Dan Bikel, Lukas Blecher, Cristian Canton Ferrer, Moya Chen, Guillem Cucurull, David Esiobu, Jude Fernandes, Jeremy Fu, Wenyin Fu, Brian Fuller, Cynthia Gao, Vedanuj Goswami, Naman Goyal, Anthony Hartshorn, Saghar Hosseini, Rui Hou, Hakan Inan, Marcin Kardas, Viktor Kerkez Madian Khabsa, Isabel Kloumann, Artem Korenev, Punit Singh Koura, Marie-Anne Lachaux, Thibaut Lavril, Jenya Lee, Diana Liskovich, Yinghai Lu, Yuning Mao, Xavier Martinet, Todor Mihaylov, Pushkar Mishra, Igor Molybog, Yixin Nie, Andrew Poulton, Jeremy Reizenstein, Rashi Rungta, Kalyan Saladi, Alan Schelten, Ruan Silva, Eric Michael Smith, Ranjan Subramanian, Xiaoqing Ellen Tan, Binh Tang, Ross Taylor, Adina Williams, Jian Xiang Kuan, Puxin Xu , Zheng Yan, Iliyan Zarov, Yuchen Zhang, Angela Fan, Melanie Kambadur, Sharan Narang, Aurelien Rodriguez, Robert Stojnic, Sergey Edunov, Thomas Scialom}, year={2023} } ``` # [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard) Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/details_psmathur__model_42_70b) | Metric | Value | |-----------------------|---------------------------| | Avg. | 58.2 | | ARC (25-shot) | 68.26 | | HellaSwag (10-shot) | 87.65 | | MMLU (5-shot) | 70.0 | | TruthfulQA (0-shot) | 48.76 | | Winogrande (5-shot) | 83.66 | | GSM8K (5-shot) | 34.72 | | DROP (3-shot) | 14.37 |
[ -0.2959975302219391, -0.6844478845596313, 0.25586968660354614, 0.2813282310962677, -0.411068320274353, 0.07324519753456116, -0.1839970052242279, -0.37203770875930786, 0.4550001919269562, 0.3482041358947754, -0.6996868848800659, -0.848038911819458, -0.7344505190849304, -0.22130730748176575, -0.23040789365768433, 1.140602469444275, -0.1662084460258484, -0.18339529633522034, 0.0875009074807167, -0.19473297894001007, -0.3664568364620209, -0.4599936008453369, -0.5353268384933472, -0.428915411233902, 0.12083488702774048, 0.24364818632602692, 0.5615928769111633, 0.44799938797950745, 0.621483564376831, 0.3484249711036682, -0.31883180141448975, 0.2792874276638031, -0.7116343975067139, -0.2896067500114441, 0.3154814839363098, -0.5061928033828735, -1.01872980594635, 0.2848089635372162, 0.6259787082672119, 0.4592120051383972, -0.2658296525478363, 0.4609258770942688, 0.21266616880893707, 0.5959476828575134, -0.35202914476394653, 0.244552344083786, -0.4952557384967804, 0.1174665242433548, -0.34256085753440857, -0.17667347192764282, -0.12462317198514938, -0.3711327016353607, 0.03766700625419617, -0.5358701944351196, -0.043861668556928635, 0.0353737510740757, 1.1155730485916138, 0.26364701986312866, -0.22657229006290436, -0.13992023468017578, -0.40404418110847473, 0.7499736547470093, -1.056929588317871, 0.32765403389930725, 0.2532086968421936, 0.09717335551977158, -0.21268191933631897, -0.801893413066864, -0.4885217249393463, -0.014027176424860954, -0.15742634236812592, 0.42729687690734863, -0.31215566396713257, -0.019991377368569374, 0.14777065813541412, 0.5613476037979126, -0.4703066051006317, 0.3189477324485779, -0.6574117541313171, -0.1546422690153122, 0.6583885550498962, 0.3809041678905487, 0.18447177112102509, -0.1583898812532425, -0.5956924557685852, -0.1268002688884735, -0.6709574460983276, 0.4269723892211914, 0.38930511474609375, 0.21132396161556244, -0.6542804837226868, 0.6940857768058777, -0.14688090980052948, 0.5301464796066284, 0.07766295969486237, -0.24225641787052155, 0.585931658744812, -0.46694713830947876, -0.521270215511322, -0.17336851358413696, 1.0702955722808838, 0.6248533129692078, 0.07496118545532227, 0.1272018551826477, -0.13950224220752716, -0.057206492871046066, -0.19605852663516998, -0.9440434575080872, -0.271115779876709, 0.24890470504760742, -0.5096405744552612, -0.437638521194458, 0.18018494546413422, -0.810539722442627, -0.1976357400417328, -0.11437684297561646, 0.19606134295463562, -0.2004404515028, -0.38630974292755127, 0.22172971069812775, 0.1772741824388504, 0.37351202964782715, 0.18277600407600403, -0.6072797179222107, 0.3943844437599182, 0.4344007670879364, 1.1156772375106812, -0.2109549194574356, -0.28962457180023193, -0.3415237367153168, -0.17828263342380524, -0.21089300513267517, 0.5716965198516846, -0.23911641538143158, -0.3326864540576935, -0.27683043479919434, -0.01895274966955185, -0.212833970785141, -0.3739689886569977, 0.5579118132591248, -0.23906674981117249, 0.4143921732902527, -0.22106687724590302, -0.4516524374485016, -0.043834902346134186, 0.2938951253890991, -0.41998594999313354, 1.3336925506591797, 0.07017556577920914, -0.8531767129898071, 0.16041713953018188, -0.6102523803710938, 0.0817069560289383, -0.40424200892448425, 0.026073791086673737, -0.7054358124732971, -0.12978751957416534, 0.36800846457481384, 0.4759911000728607, -0.47580552101135254, 0.18723417818546295, -0.3146836459636688, -0.41851240396499634, 0.24001668393611908, -0.33465489745140076, 1.1277109384536743, 0.19436979293823242, -0.5563895106315613, 0.3213895857334137, -0.8624338507652283, 0.04521176591515541, 0.2997823655605316, -0.38405680656433105, 0.06786312162876129, -0.3399493396282196, -0.2143409252166748, 0.42781561613082886, 0.3982001841068268, -0.603121280670166, 0.16606152057647705, -0.5433967709541321, 0.3665510416030884, 1.0056830644607544, -0.038930777460336685, 0.2766313850879669, -0.5423728823661804, 0.5907838344573975, 0.13266491889953613, 0.37449878454208374, 0.1977051943540573, -0.6772079467773438, -1.0836942195892334, -0.4433944523334503, 0.09214606136083603, 0.6244551539421082, -0.31468573212623596, 0.7061107754707336, -0.05156167596578598, -0.8782808780670166, -0.7733425498008728, 0.26833608746528625, 0.5923025608062744, 0.6535641551017761, 0.35429105162620544, -0.5420243144035339, -0.69721919298172, -0.7134081721305847, 0.07982642203569412, -0.2634812295436859, 0.0028924881480634212, 0.4326416552066803, 0.5132724046707153, -0.23718558251857758, 0.8220707774162292, -0.6902684569358826, -0.454700231552124, -0.14995592832565308, -0.04904704540967941, 0.5888152718544006, 0.5186721086502075, 0.6994564533233643, -0.29593855142593384, -0.4866689443588257, -0.1581840217113495, -0.9200367331504822, -0.2636973261833191, 0.18799379467964172, -0.516140878200531, 0.24436070024967194, 0.3576129674911499, -0.7403644323348999, 0.5570962429046631, 0.7296451330184937, -0.5138435363769531, 0.7560527920722961, -0.18720468878746033, 0.07391276955604553, -1.0448393821716309, 0.27225157618522644, 0.021991362795233727, -0.04520506039261818, -0.5428724884986877, -0.055229127407073975, -0.21739882230758667, 0.02869962714612484, -0.6543401479721069, 0.7694107294082642, -0.4913347363471985, -0.08778464794158936, -0.0008519166731275618, 0.2800747752189636, -0.018840394914150238, 0.7601951956748962, -0.16723519563674927, 0.7529995441436768, 0.7217767238616943, -0.4051678776741028, 0.37795573472976685, 0.38712432980537415, -0.4857649505138397, 0.3143961429595947, -0.8519766330718994, 0.28311437368392944, 0.0878816545009613, 0.3083023428916931, -1.2535650730133057, 0.0531347282230854, 0.402016282081604, -0.4591757655143738, 0.14979195594787598, -0.012893675826489925, -0.4743955731391907, -0.5290670990943909, -0.615886926651001, 0.2050057053565979, 0.6146317720413208, -0.4255542457103729, 0.20336276292800903, 0.34601593017578125, 0.08861400932073593, -0.6261745095252991, -0.634148359298706, -0.3592533767223358, -0.4249594211578369, -0.6598182916641235, 0.16798482835292816, -0.4259042739868164, -0.1469658613204956, -0.18683049082756042, -0.11820809543132782, 0.052777696400880814, 0.08695179224014282, 0.37351828813552856, 0.5938718914985657, -0.18845821917057037, -0.3759930431842804, -0.19116075336933136, -0.1135435476899147, 0.0638212263584137, -0.11570080369710922, 0.795832097530365, -0.3579246997833252, -0.39002910256385803, -0.7210328578948975, -0.13925394415855408, 0.6036138534545898, -0.34668493270874023, 0.8911660313606262, 0.7313287258148193, -0.23033657670021057, 0.27356386184692383, -0.541107714176178, -0.1589096486568451, -0.5103288292884827, 0.1945546567440033, -0.31028085947036743, -0.8914430141448975, 0.9628925919532776, 0.16816829144954681, 0.23958805203437805, 0.5801823735237122, 0.8462961912155151, -0.04037531465291977, 0.8808068037033081, 0.5214843153953552, -0.06411103159189224, 0.5397647619247437, -0.6858269572257996, 0.139041468501091, -1.1551780700683594, -0.5354430079460144, -0.3281621038913727, -0.45997846126556396, -0.6324717998504639, -0.5854309797286987, 0.40059560537338257, 0.21802811324596405, -0.5731218457221985, 0.34256771206855774, -0.6434252262115479, 0.1851050704717636, 0.4750019609928131, 0.25520023703575134, 0.24107299745082855, -0.07599320262670517, -0.4087963104248047, -0.14403755962848663, -0.5623206496238708, -0.4617369771003723, 1.3604488372802734, 0.583603024482727, 0.7155836820602417, 0.19281403720378876, 0.749352753162384, -0.009919621050357819, 0.3844940960407257, -0.5584918260574341, 0.5777894258499146, 0.05925733968615532, -0.6454062461853027, -0.2064017951488495, -0.35066160559654236, -0.8835601806640625, 0.37081411480903625, -0.18589390814304352, -0.9463362693786621, 0.18287810683250427, -0.014680592343211174, -0.41106557846069336, 0.5115340948104858, -0.5168085694313049, 0.7471604347229004, -0.3261866271495819, -0.2870795428752899, 0.052923306822776794, -0.6323001980781555, 0.6094377636909485, 0.07232610881328583, 0.13026225566864014, -0.33934399485588074, 0.009860523976385593, 1.009543776512146, -0.5846141576766968, 0.9364243745803833, -0.15415902435779572, -0.13976165652275085, 0.4122121334075928, -0.02303169295191765, 0.5740951895713806, 0.015474783256649971, -0.3384663164615631, 0.362804114818573, -0.21927112340927124, -0.427193284034729, -0.3600165545940399, 0.6936284303665161, -1.122482180595398, -0.6305371522903442, -0.4503495991230011, -0.4076656103134155, 0.06611572951078415, 0.25372567772865295, 0.39148250222206116, 0.2958289682865143, -0.09447504580020905, 0.10416713356971741, 0.48280343413352966, -0.272316575050354, 0.4262084662914276, 0.45454421639442444, -0.27101123332977295, -0.5841277837753296, 0.6310186386108398, 0.10505089163780212, 0.4362773895263672, 0.13269810378551483, 0.11904938519001007, -0.35002151131629944, -0.5041614770889282, -0.2649348974227905, 0.5375000834465027, -0.5944454669952393, -0.33023956418037415, -0.5323910117149353, -0.3899182975292206, -0.3522047996520996, -0.08476495742797852, -0.6116489171981812, -0.3870317339897156, -0.5642436146736145, -0.35803601145744324, 0.38921985030174255, 0.6041927337646484, -0.023985419422388077, 0.4904671609401703, -0.3877824544906616, 0.04613468050956726, 0.131726935505867, 0.46731436252593994, 0.020527545362710953, -0.8890210390090942, -0.17782261967658997, 0.11537861824035645, -0.5706587433815002, -0.698516309261322, 0.6481167078018188, 0.09393973648548126, 0.611214280128479, 0.415972501039505, 0.06745977699756622, 0.9633207321166992, -0.28452709317207336, 0.9292330145835876, 0.5180279612541199, -0.8479325771331787, 0.7191473841667175, -0.2671138346195221, 0.14221131801605225, 0.36862191557884216, 0.28086045384407043, -0.333222359418869, -0.5432297587394714, -0.9236041307449341, -0.9674069881439209, 0.8280848860740662, 0.4595858156681061, 0.05292917415499687, 0.15617994964122772, 0.3265555500984192, -0.09271778911352158, 0.22877411544322968, -0.9596776366233826, -0.719940721988678, -0.27956321835517883, -0.03312695398926735, -0.06289185583591461, -0.25343239307403564, -0.3094216585159302, -0.4288599193096161, 0.7358763813972473, -0.010632324032485485, 0.5052833557128906, 0.16482816636562347, -0.009687439538538456, -0.24599358439445496, 0.10012923181056976, 0.7306938171386719, 0.8707951307296753, -0.5816043019294739, -0.09421896934509277, 0.3894623816013336, -0.42831820249557495, 0.03344769775867462, 0.0859917625784874, -0.07410778105258942, -0.14702202379703522, 0.4262674152851105, 1.0771516561508179, 0.26327890157699585, -0.4941014349460602, 0.5023778676986694, -0.06415794044733047, -0.2187802493572235, -0.410535603761673, 0.06886932253837585, 0.08326543867588043, 0.4346170723438263, 0.24863821268081665, -0.021119501441717148, -0.15454734861850739, -0.5700786709785461, 0.10428576916456223, 0.45661917328834534, -0.3776107728481293, -0.43114277720451355, 0.9651397466659546, 0.14090672135353088, -0.18724511563777924, 0.628402054309845, 0.021877754479646683, -0.5495123267173767, 0.627204418182373, 0.4856071472167969, 0.6380769610404968, -0.14919115602970123, 0.06594517081975937, 0.6106840968132019, 0.30224964022636414, 0.005861170589923859, 0.24453842639923096, 0.22780176997184753, -0.6410885453224182, -0.14560680091381073, -0.7400087714195251, -0.21981748938560486, 0.28421565890312195, -0.6567514538764954, 0.46698614954948425, -0.6375913023948669, -0.3247740566730499, -0.23876748979091644, 0.49580731987953186, -0.798351526260376, 0.16069296002388, 0.12135667353868484, 0.9490085244178772, -0.925238311290741, 0.84344083070755, 0.5490661859512329, -0.6245238184928894, -0.9526855945587158, -0.2921082377433777, 0.15690910816192627, -1.0631362199783325, 0.5410621762275696, 0.0823635384440422, 0.02893916331231594, 0.03462536260485649, -0.5356205105781555, -1.0594334602355957, 1.660005807876587, 0.452205091714859, -0.5026666522026062, -0.007290489040315151, 0.013830108568072319, 0.6584012508392334, -0.34910231828689575, 0.7165489196777344, 0.7382374405860901, 0.3915517032146454, 0.20165644586086273, -1.2876663208007812, 0.23804959654808044, -0.4114459753036499, -0.1372838318347931, -0.05289565771818161, -1.2499001026153564, 1.2291126251220703, -0.30473533272743225, -0.020731685683131218, 0.1476360410451889, 0.7285388112068176, 0.778439462184906, 0.2403467297554016, 0.3601725399494171, 0.8391151428222656, 0.9051464200019836, -0.09601613879203796, 1.0212429761886597, -0.3217354714870453, 0.658854603767395, 0.9212135076522827, 0.005303351674228907, 0.7300435900688171, 0.21570846438407898, -0.48764321208000183, 0.6137604713439941, 0.7980501055717468, 0.02840392105281353, 0.5058586001396179, 0.15059709548950195, -0.0007089083082973957, -0.09731065481901169, 0.020067991688847542, -0.5749974250793457, 0.4449571669101715, 0.247457817196846, -0.3409130871295929, -0.1269478052854538, -0.32910507917404175, 0.3874789774417877, -0.1609860509634018, -0.1180499792098999, 0.6209055781364441, 0.3003595471382141, -0.46065253019332886, 1.020935297012329, 0.022303137928247452, 0.9626911282539368, -0.5818401575088501, 0.21253672242164612, -0.42876002192497253, 0.20424671471118927, -0.33785316348075867, -0.8097947239875793, 0.07456403970718384, 0.09710521996021271, 0.06861896067857742, -0.14390376210212708, 0.5035492777824402, -0.30695784091949463, -0.5690216422080994, 0.4720737636089325, 0.47230952978134155, 0.4036034047603607, 0.2881207764148712, -0.9624330997467041, 0.22757354378700256, 0.1136040985584259, -0.6762747764587402, 0.3126823306083679, 0.36202535033226013, 0.11543736606836319, 0.7668055891990662, 0.7872205376625061, 0.22955328226089478, 0.3179536461830139, -0.029221301898360252, 1.1667072772979736, -0.5070551037788391, -0.4102185368537903, -0.93831467628479, 0.6905397176742554, -0.09728644788265228, -0.6516615748405457, 0.8913764357566833, 0.6815003752708435, 0.7645232081413269, 0.26421064138412476, 0.5466920733451843, -0.14415349066257477, 0.310692697763443, -0.5451728701591492, 0.758834958076477, -0.6086076498031616, 0.4853810667991638, -0.3808467388153076, -0.9611758589744568, -0.1889660507440567, 0.7806001901626587, -0.37616780400276184, -0.01667812466621399, 0.6013494729995728, 0.8318029046058655, -0.03523363918066025, -0.333685964345932, 0.1503896862268448, 0.33780336380004883, 0.4766274392604828, 0.7679288983345032, 0.5325413942337036, -0.701817512512207, 0.5361088514328003, -0.5409865379333496, -0.2777116894721985, -0.2745923399925232, -0.7679758667945862, -1.0898040533065796, -0.5204080939292908, -0.3176054358482361, -0.5355539321899414, -0.15700793266296387, 1.041274905204773, 0.7527101039886475, -0.7763140201568604, -0.5459036827087402, 0.12981560826301575, 0.08641303330659866, -0.171087384223938, -0.20847827196121216, 0.638120710849762, -0.011910258792340755, -0.8682085275650024, 0.15283924341201782, -0.017754612490534782, 0.25410202145576477, -0.3302675187587738, -0.3837188184261322, -0.4223919212818146, 0.007252576295286417, 0.4928962290287018, 0.21795007586479187, -0.7830182909965515, -0.16741786897182465, 0.052677083760499954, -0.20641805231571198, 0.26091843843460083, 0.36816295981407166, -0.6391910314559937, 0.2991050183773041, 0.4322219789028168, 0.15314482152462006, 0.7842466235160828, 0.06909951567649841, 0.2634526491165161, -0.7836612462997437, 0.4063929617404938, -0.02531413547694683, 0.4541899561882019, 0.2747732698917389, -0.3526870906352997, 0.7400733828544617, 0.3404516279697418, -0.47947049140930176, -1.0183402299880981, -0.137757807970047, -1.2046144008636475, 0.045788105577230453, 1.1683461666107178, -0.41218337416648865, -0.27341073751449585, 0.32969796657562256, -0.26854896545410156, 0.4656777083873749, -0.4931207299232483, 0.81092369556427, 0.6672089099884033, -0.2773907482624054, -0.423566073179245, -0.654024600982666, 0.3956874907016754, 0.34045520424842834, -0.8658795952796936, -0.07029981911182404, 0.2990069091320038, 0.46660116314888, 0.05674830451607704, 1.02690589427948, -0.20369678735733032, 0.024429084733128548, -0.272452712059021, 0.024124108254909515, -0.24372196197509766, -0.07516485452651978, -0.16499340534210205, -0.09683183580636978, 0.026548055931925774, -0.244130939245224 ]
allenai/unifiedqa-v2-t5-base-1363200
allenai
"2023-01-24T16:28:24Z"
14,014
2
transformers
[ "transformers", "pytorch", "t5", "text2text-generation", "en", "autotrain_compatible", "endpoints_compatible", "has_space", "text-generation-inference", "region:us" ]
text2text-generation
"2022-03-02T23:29:05Z"
--- language: en --- # Further details: https://github.com/allenai/unifiedqa
[ -0.46491631865501404, -0.2370699942111969, 0.4576164782047272, 0.2028285413980484, -0.0072821094654500484, 0.2465752363204956, 0.2974104583263397, -0.15761098265647888, 0.5594327449798584, 0.8852181434631348, -0.598706066608429, -0.6461884379386902, -0.01764417253434658, -0.3478516936302185, -0.7165235280990601, 0.7135604619979858, 0.061309535056352615, 0.24330797791481018, 0.20001770555973053, -0.40674445033073425, -0.6155850291252136, -0.18621428310871124, -0.588912844657898, -0.7104833722114563, 0.49200835824012756, 0.9679813385009766, 0.706275224685669, 0.20717066526412964, 0.5378328561782837, 0.24006584286689758, 0.08506558835506439, -0.20167572796344757, -0.19522784650325775, -0.017926521599292755, 0.1859569251537323, -0.1377377212047577, -0.5688225030899048, -0.14166966080665588, 1.2978019714355469, 0.5358197093009949, -0.4200049936771393, 0.3335404098033905, -0.21987588703632355, 1.1685949563980103, -0.5417467951774597, -0.2897310256958008, -0.1812731921672821, -0.0993836298584938, -0.24384666979312897, 0.14954175055027008, 0.07833526283502579, -0.20673365890979767, -0.28174903988838196, -0.9361346960067749, -0.1593625396490097, -0.2772955596446991, 1.2747822999954224, 0.15346376597881317, -0.9182063341140747, 0.19864073395729065, -0.6696887016296387, 0.31659331917762756, -0.3888501524925232, 0.7687796354293823, 0.24371923506259918, 0.5955095887184143, -0.3091384470462799, -1.0897217988967896, -0.5981810688972473, -0.1577683836221695, -0.24508950114250183, 0.13066112995147705, -0.24942579865455627, 0.33370310068130493, 0.050689447671175, 0.3241402804851532, -0.7477738261222839, -0.1224653348326683, -0.7707429528236389, -0.18936797976493835, 0.6078919172286987, 0.012870672158896923, 0.4818930923938751, -0.31354081630706787, -0.5798556208610535, 0.2551907002925873, -1.0778077840805054, 0.2834022641181946, 0.09357710182666779, 0.04914792254567146, -0.3300457000732422, 0.6875020861625671, -0.6755890846252441, 0.09208794683218002, -0.1280885934829712, 0.793399453163147, 0.42124322056770325, -0.45656248927116394, -0.550344705581665, -0.20722362399101257, 0.4874667227268219, -0.14504028856754303, 0.02113029733300209, -0.045923903584480286, -0.08408425003290176, -0.11243008077144623, 0.5768159031867981, -0.8896540403366089, -0.939358651638031, 0.5577287077903748, -0.3997287154197693, 0.18383073806762695, 0.5384442210197449, -0.36066603660583496, 0.007424733601510525, -0.5710440874099731, 0.6975364089012146, -0.20444519817829132, -0.3270912170410156, -0.14981946349143982, -0.1221880093216896, 0.6210623979568481, 0.47929418087005615, -0.6263282299041748, 0.33977216482162476, 0.863166093826294, 0.3619166910648346, 0.36487317085266113, -0.6017942428588867, -0.6085869073867798, -0.12211401015520096, -0.04232567176222801, 0.7353865504264832, -0.25075748562812805, -0.1931055784225464, -0.051025357097387314, -0.12650243937969208, 0.10815457254648209, -0.27044254541397095, 0.709484338760376, -0.9619714617729187, -0.22200731933116913, -0.4580426812171936, -0.37481769919395447, -0.19327384233474731, 0.0877022072672844, -1.1831187009811401, 1.1233980655670166, 0.015525654889643192, -0.3166874349117279, -0.10116761177778244, -1.5042413473129272, -0.27319321036338806, 0.7071103453636169, -0.4314398169517517, -0.41093218326568604, -0.1821126490831375, -0.023953089490532875, 0.19906173646450043, -0.11256180703639984, 0.6116793751716614, -0.07375220954418182, -0.5776610374450684, 0.37326788902282715, 0.05404369533061981, 1.4460054636001587, 0.483968049287796, -0.28595444560050964, 0.6691330671310425, -0.6884247660636902, 0.09130456298589706, -0.13401100039482117, -0.27141472697257996, -0.23734217882156372, -0.667032778263092, 0.2927674651145935, -0.5124536752700806, 0.39611971378326416, -0.47819361090660095, 0.35551732778549194, 0.32097959518432617, -0.0843152180314064, 0.6932546496391296, -0.17747414112091064, 0.6994894742965698, 0.029087498784065247, 0.5018517374992371, -0.4605075716972351, 0.4977811276912689, -0.03628312423825264, -0.8108797669410706, -1.0237798690795898, -0.15862467885017395, 0.7358015179634094, 0.8411744236946106, -0.7724938988685608, 0.6753443479537964, 0.20090587437152863, -0.44473525881767273, -0.5425878763198853, 0.3580443561077118, 0.5051716566085815, 0.10771023482084274, 0.21113240718841553, -0.6326316595077515, -0.9178935289382935, -0.6259747743606567, 0.20643486082553864, -0.461713969707489, -0.2513478994369507, -0.22749507427215576, 0.7802585363388062, -1.011161208152771, 0.7592626214027405, -0.37009671330451965, -0.23178836703300476, 0.17140981554985046, 0.37811243534088135, -0.0021480065770447254, 0.5522814989089966, 0.40184152126312256, -1.1527265310287476, -0.2467791885137558, -0.12280622869729996, -0.5775670409202576, -0.2292206585407257, -0.13028137385845184, -0.8109439611434937, -0.2490016371011734, 0.07747581601142883, -0.8290029168128967, 0.8361443877220154, 0.8184079527854919, -0.7806054949760437, 0.5031219124794006, 0.33547869324684143, 0.2604875862598419, -1.5833144187927246, 0.2753791809082031, -0.296334832906723, -0.059011153876781464, -0.4124971926212311, 0.850774884223938, 0.2187989354133606, -0.22176925837993622, -0.2600115239620209, 0.29094618558883667, -0.6891695857048035, -0.09454456716775894, -0.0059270914644002914, -0.2567984163761139, 0.05420462414622307, 0.1839643269777298, -0.31862473487854004, 0.9018340110778809, 0.6718844175338745, -0.46980008482933044, 0.7977227568626404, 0.3267964720726013, 0.08529292047023773, 0.4105115532875061, -0.9625948071479797, -0.06701408326625824, 0.4661470055580139, 0.24161355197429657, -1.4362720251083374, -0.6238707304000854, 0.042359236627817154, -0.7896842956542969, -0.058275386691093445, -0.02770617976784706, -0.4617418050765991, -0.4675344228744507, -0.7021352648735046, 0.4868677258491516, 0.4086853265762329, -0.9121818542480469, 0.5680134892463684, 1.04178786277771, 0.016970500349998474, -0.522097110748291, -0.5624339580535889, 0.23172850906848907, 0.07664712518453598, -0.4226989150047302, 0.24162046611309052, -0.46538805961608887, -0.31056323647499084, 0.002901859115809202, 0.3059481680393219, -0.7504193186759949, 0.1587693691253662, 0.6226381659507751, 0.38458746671676636, -0.33973032236099243, 0.4558227062225342, 0.2523690462112427, -0.27812549471855164, -0.00006123170896898955, -0.26694443821907043, 0.1736801564693451, -0.7829383611679077, -0.4424668252468109, -0.8958939909934998, 0.7792975902557373, 0.29436492919921875, -0.39494550228118896, 0.32438912987709045, 1.1100884675979614, -0.7153245210647583, 0.17048576474189758, -0.5447193384170532, -0.1584329903125763, -0.5308402180671692, 0.02675003372132778, -0.4387073516845703, -1.3237141370773315, 0.7121270298957825, -0.3324539065361023, -0.03216249495744705, 1.0163756608963013, 0.5842235088348389, -0.2979505956172943, 0.5619251728057861, 0.8892870545387268, -0.19212543964385986, 0.32553285360336304, -0.5885373950004578, -0.09582746773958206, -0.9102214574813843, -0.3567311763763428, -0.853203296661377, -0.16336509585380554, -0.7204275727272034, -0.3066647946834564, 0.22387222945690155, 0.5038744211196899, -0.7028433680534363, 0.8708939552307129, -0.6825381517410278, 0.9327858686447144, 1.0450953245162964, -0.24539044499397278, 0.3771149516105652, -0.052408989518880844, -0.1517244130373001, 0.12072195112705231, -0.44220802187919617, -0.253007173538208, 1.1299508810043335, 0.4560539126396179, 0.9103606939315796, 0.7322284579277039, 1.3113805055618286, 0.3486531972885132, 0.4364491105079651, -0.4842253625392914, 0.3636630177497864, 0.35494014620780945, -0.9020853638648987, -0.774840235710144, -0.4717704653739929, -1.428816795349121, -0.007983202114701271, -0.12615148723125458, -0.528710126876831, 0.3910570740699768, -0.12898986041545868, -0.5502959489822388, 0.2116483896970749, -0.8056029081344604, 0.8184852600097656, -0.14949752390384674, 0.4909844994544983, -0.0635184496641159, -0.7419959902763367, 0.2277698814868927, 0.0003297733492217958, -0.08031131327152252, 0.04173127934336662, -0.06434278190135956, 0.9741703867912292, -0.14471818506717682, 0.9963369965553284, 0.21726781129837036, -0.15598979592323303, 0.5383087992668152, -0.17652331292629242, -0.29040709137916565, 0.9490862488746643, 0.15569302439689636, 0.3343437612056732, -0.04204042628407478, -0.7195206880569458, -0.08127902448177338, 1.115876317024231, -0.9388514757156372, 0.1264982521533966, -0.359710693359375, -0.4050599932670593, 0.3270982503890991, 0.39904117584228516, 0.0071251788176596165, 0.38461583852767944, -0.55169677734375, 0.19201385974884033, 0.9177812933921814, 0.4620707035064697, 0.47934889793395996, 0.6993623971939087, -0.4881856441497803, -0.8334749341011047, 0.3649214208126068, -0.13264107704162598, -0.4695252776145935, 0.6545756459236145, -0.04052107036113739, -0.3282548487186432, -0.37022894620895386, -0.8308256268501282, 0.2525380551815033, -0.716701328754425, -0.5635988712310791, -0.13451342284679413, -0.4627472162246704, -0.7997164726257324, -0.037781041115522385, -0.6050933599472046, -0.7321896553039551, -0.38571304082870483, -0.28251853585243225, 0.6133948564529419, 1.2306852340698242, -0.36039242148399353, 0.5326735377311707, -1.0379270315170288, 0.807192325592041, 0.700489342212677, 0.7118496894836426, -0.3575388491153717, -0.48791784048080444, -0.5641167759895325, 0.08205496519804001, -0.7750584483146667, -0.7189739942550659, -0.024801140651106834, 0.13635961711406708, 0.8487961292266846, 0.3045114278793335, 0.28205132484436035, 0.579250156879425, -0.29456400871276855, 0.7104566097259521, 0.422588974237442, -1.2327349185943604, 0.8575124144554138, -0.2596096694469452, 0.7617031931877136, 1.1959720849990845, 0.5705416798591614, -0.4258792996406555, -0.1932373344898224, -0.8517599701881409, -0.8595160245895386, -0.031227225437760353, 0.6453458666801453, 0.16060929000377655, 0.36202067136764526, 0.3274044394493103, -0.2280772477388382, -0.037457000464200974, -0.9306553602218628, -0.8789427876472473, 0.36233049631118774, -0.07882510870695114, 0.17283639311790466, -0.4406213164329529, -0.7001897692680359, -0.6933183073997498, 0.7367980480194092, 0.13542211055755615, 0.42404043674468994, 0.24709093570709229, -0.015673121437430382, -0.1921294927597046, 0.38990551233291626, 0.5683223605155945, 0.9705685377120972, -0.17129208147525787, -0.11968890577554703, -0.10040988028049469, -0.5184219479560852, -0.19984027743339539, 0.823395311832428, -0.271331250667572, 0.23066507279872894, 0.5806108117103577, 0.7544716000556946, -0.13880552351474762, -0.2153739631175995, 0.3346203863620758, -0.33905789256095886, -0.40695562958717346, -0.8106757402420044, -0.0582708902657032, 0.10392238199710846, 0.7408267259597778, 0.7457525134086609, -0.2773889899253845, 0.787674605846405, -0.6025217771530151, 0.852434515953064, 0.026572899892926216, -0.5135229825973511, -0.41175028681755066, 0.6328074336051941, 0.8341343402862549, -0.5383040904998779, 0.5422730445861816, -0.36826634407043457, -0.7689228057861328, 0.6702470183372498, 0.2545562982559204, 0.9978216290473938, -0.5747182369232178, 0.6792740225791931, 0.20484381914138794, 0.3902599811553955, 0.34948399662971497, 0.9721837639808655, -0.4806811511516571, -0.3918021619319916, -0.3304990231990814, -0.3560117185115814, -0.7524556517601013, -0.24773098528385162, -0.7865346074104309, -0.3294978737831116, -0.24219834804534912, -0.0321224108338356, 0.015932437032461166, 0.40456581115722656, -0.6335588097572327, 0.16591082513332367, 0.3751978278160095, 1.0508451461791992, -0.7471820712089539, 1.4885542392730713, 1.2371641397476196, -0.5350105166435242, -1.2847158908843994, -0.01996345818042755, 0.19130070507526398, -0.41661182045936584, 0.34205764532089233, 0.386933833360672, -0.34458860754966736, -0.23062551021575928, -0.7563435435295105, -0.7365328073501587, 1.5636649131774902, 0.3421727418899536, -0.5299347043037415, 0.3203563094139099, -0.03515414521098137, 0.531678318977356, -0.4095829427242279, 0.09609939157962799, 0.5967920422554016, 0.6629501581192017, 0.17314322292804718, -1.25095534324646, -0.10360438376665115, -0.806972324848175, 0.06532341241836548, 0.5358693599700928, -0.4068324565887451, 0.8417567014694214, -0.289725661277771, -0.19157864153385162, 0.40859925746917725, 0.9044793248176575, -0.07323995977640152, 0.6452429890632629, 0.3122376799583435, 1.0758702754974365, 0.9774653315544128, -0.15106378495693207, 0.7478195428848267, 0.1275283545255661, 0.6892451047897339, 1.3356513977050781, -0.04362887889146805, 0.8984300494194031, 0.5462144613265991, -0.34771955013275146, 0.7206876277923584, 0.5913403034210205, 0.11465495824813843, 0.27017611265182495, -0.10474623739719391, -0.3831556439399719, 0.2550887167453766, -0.11145509779453278, -0.8585948944091797, 0.406843900680542, 0.007363129407167435, -0.1231733039021492, 0.16572192311286926, -0.4847220480442047, -0.054442934691905975, -0.02987169660627842, -0.3251922130584717, 0.7880915403366089, 0.06301029026508331, -0.3286731243133545, 0.6280228495597839, -0.03117702715098858, 0.39524292945861816, -0.5011272430419922, -0.3472594618797302, -0.17109814286231995, -0.011012531816959381, -0.22742275893688202, -1.279191255569458, 0.581418514251709, -0.22054268419742584, 0.3134688138961792, 0.22360974550247192, 0.6389361619949341, -0.6380587816238403, -0.6190250515937805, 0.8324503898620605, 0.23831680417060852, -0.015130064450204372, -0.18290957808494568, -0.8899596929550171, 0.008936597965657711, 0.20974047482013702, -0.038702577352523804, -0.03356056287884712, 0.4124661087989807, 0.18872830271720886, 0.4104258120059967, 0.6705285906791687, -0.19969280064105988, -0.20132598280906677, 0.5270007252693176, 1.0569822788238525, -0.8553598523139954, -0.3582417666912079, -0.45144861936569214, 1.036607265472412, -0.32847195863723755, -0.5963468551635742, 0.618057131767273, 0.6493342518806458, 1.124492883682251, -0.061250537633895874, 0.1547696888446808, 0.08590780198574066, 0.1465911865234375, -0.4646923840045929, 0.950107753276825, -0.5885804295539856, 0.2921140491962433, -0.07259619235992432, -0.6994250416755676, -0.9695616364479065, 0.22276851534843445, 0.44080302119255066, -0.2757830321788788, 0.7363373637199402, 0.813886284828186, -0.1083957776427269, 0.0008894205093383789, 0.35719603300094604, -0.3295818567276001, 0.13026051223278046, 0.3041991889476776, 0.5274340510368347, -0.7225739359855652, 0.4564819931983948, -0.4130036532878876, -0.4183560907840729, -0.19528454542160034, -0.44448333978652954, -0.7792450189590454, -0.8042677640914917, -0.10711635649204254, -0.20809012651443481, 0.11209634691476822, 0.6943211555480957, 1.0481951236724854, -1.185097575187683, -0.6728656888008118, -0.03949333354830742, 0.4829002022743225, 0.2027638703584671, -0.2153664082288742, 0.33811187744140625, 0.23805400729179382, -0.25965970754623413, -0.0051293885335326195, 0.12261401861906052, -0.05008018761873245, -0.17657937109470367, -0.5504907965660095, -0.6050592064857483, 0.1798018515110016, 0.48901477456092834, 0.6534688472747803, -0.7714228630065918, -0.16357561945915222, -0.46460914611816406, -0.3541347086429596, 0.11726658791303635, 0.8859360814094543, -0.4949387013912201, 0.35470500588417053, 0.526147186756134, 0.9338324666023254, 0.12269344925880432, 0.10395649820566177, 0.39108994603157043, -0.6255666017532349, -0.12825161218643188, -0.1847422868013382, 0.4134516417980194, 0.14993122220039368, -0.674415111541748, 0.8305519819259644, 0.10106933861970901, -0.899163544178009, -0.48739492893218994, 0.42596808075904846, -1.374524474143982, 0.09766346216201782, 0.4578302502632141, -0.06907326728105545, 0.08308207988739014, 0.07414648681879044, -0.36921554803848267, 0.5301995873451233, -1.0161100625991821, 0.6645615100860596, 0.2537635266780853, -0.1266472488641739, -0.3245908319950104, -0.2494998276233673, 0.17590200901031494, 0.2758912146091461, -1.1285874843597412, -0.5105091333389282, 0.588373064994812, -0.07801488786935806, 0.42101797461509705, 0.9710211157798767, 0.11777396500110626, 0.8546072840690613, -0.0666583850979805, 0.5912603735923767, 0.2485930174589157, -0.9676738977432251, -0.7564008831977844, -0.040344979614019394, 0.19947783648967743, -0.6142958402633667 ]
Open-Orca/OpenOrca-Platypus2-13B
Open-Orca
"2023-09-24T18:02:39Z"
13,997
216
transformers
[ "transformers", "pytorch", "llama", "text-generation", "en", "dataset:garage-bAInd/Open-Platypus", "dataset:Open-Orca/OpenOrca", "arxiv:2308.07317", "arxiv:2306.02707", "arxiv:2301.13688", "license:cc-by-nc-4.0", "endpoints_compatible", "has_space", "text-generation-inference", "region:us" ]
text-generation
"2023-08-11T19:17:41Z"
--- language: - en datasets: - garage-bAInd/Open-Platypus - Open-Orca/OpenOrca library_name: transformers pipeline_tag: text-generation license: cc-by-nc-4.0 --- <p><h1>🐋 The First OrcaPlatypus! 🐋</h1></p> ![Platty](https://huggingface.co/Open-Orca/OpenOrca-Platypus2-13B/resolve/main/Images/OrcaPlatypusMerge.jpg) # OpenOrca-Platypus2-13B OpenOrca-Platypus2-13B is a merge of [`garage-bAInd/Platypus2-13B`](https://huggingface.co/garage-bAInd/Platypus2-13B) and [`Open-Orca/OpenOrcaxOpenChat-Preview2-13B`](https://huggingface.co/Open-Orca/OpenOrcaxOpenChat-Preview2-13B). This model is more than the sum of its parts! We are happy to be teaming up with the [Platypus](https://platypus-llm.github.io/) team to bring you a new model which once again tops the leaderboards! Want to visualize our full (pre-filtering) dataset? Check out our [Nomic Atlas Map](https://atlas.nomic.ai/map/c1b88b47-2d9b-47e0-9002-b80766792582/2560fd25-52fe-42f1-a58f-ff5eccc890d2). [<img src="https://huggingface.co/Open-Orca/OpenOrca-Preview1-13B/resolve/main/OpenOrca%20Nomic%20Atlas.png" alt="Atlas Nomic Dataset Map" width="400" height="400" />](https://atlas.nomic.ai/map/c1b88b47-2d9b-47e0-9002-b80766792582/2560fd25-52fe-42f1-a58f-ff5eccc890d2) We are in-process with training more models, so keep a look out on our org for releases coming soon with exciting partners. We will also give sneak-peak announcements on our Discord, which you can find here: https://AlignmentLab.ai # Evaluation ## HuggingFace Leaderboard Performance ![HF Leaderboard](https://huggingface.co/Open-Orca/OpenOrca-Platypus2-13B/resolve/main/Images/OrcaPlatypus13BHFLeaderboard.webp) | Metric | Value | |-----------------------|-------| | MMLU (5-shot) | 59.5 | | ARC (25-shot) | 62.88 | | HellaSwag (10-shot) | 83.19 | | TruthfulQA (0-shot) | 52.69 | | Avg. | 64.56 | We use [Language Model Evaluation Harness](https://github.com/EleutherAI/lm-evaluation-harness) to run the benchmark tests above, using the same version as the HuggingFace LLM Leaderboard. Please see below for detailed instructions on reproducing benchmark results. ## AGIEval Performance We compare our results to our base Preview2 model (using LM Evaluation Harness). We find **112%** of the base model's performance on AGI Eval, averaging **0.463**. A large part of this boost is the substantial improvement to LSAT Logical Reasoning performance. ![OpenOrca-Platypus2-13B AGIEval Performance](https://huggingface.co/Open-Orca/OpenOrca-Platypus2-13B/resolve/main/Images/OrcaPlatypus13BAGIEval.webp "AGIEval Performance") ## BigBench-Hard Performance We compare our results to our base Preview2 model (using LM Evaluation Harness). We find **105%** of the base model's performance on BigBench-Hard, averaging **0.442**. ![OpenOrca-Platypus2-13B BigBench-Hard Performance](https://huggingface.co/Open-Orca/OpenOrca-Platypus2-13B/resolve/main/Images/OrcaPlatypus13BBigBenchHard.webp "BigBench-Hard Performance") # Model Details * **Trained by**: **Platypus2-13B** trained by Cole Hunter & Ariel Lee; **OpenOrcaxOpenChat-Preview2-13B** trained by Open-Orca * **Model type:** **OpenOrca-Platypus2-13B** is an auto-regressive language model based on the Lllama 2 transformer architecture. * **Language(s)**: English * **License for Platypus2-13B base weights**: Non-Commercial Creative Commons license ([CC BY-NC-4.0](https://creativecommons.org/licenses/by-nc/4.0/)) * **License for OpenOrcaxOpenChat-Preview2-13B base weights**: Llama 2 Commercial # Prompting ## Prompt Template for base Platypus2-13B ``` ### Instruction: <prompt> (without the <>) ### Response: ``` ## Prompt Template for base OpenOrcaxOpenChat-Preview2-13B OpenChat Llama2 V1: see [OpenOrcaxOpenChat-Preview2-13B](https://huggingface.co/Open-Orca/OpenOrcaxOpenChat-Preview2-13B) for additional information. # Training ## Training Datasets `garage-bAInd/Platypus2-13B` trained using STEM and logic based dataset [`garage-bAInd/Open-Platypus`](https://huggingface.co/datasets/garage-bAInd/Open-Platypus). Please see our [paper](https://arxiv.org/abs/2308.07317) and [project webpage](https://platypus-llm.github.io) for additional information. `Open-Orca/OpenOrcaxOpenChat-Preview2-13B` trained using a refined subset of most of the GPT-4 data from the [OpenOrca dataset](https://huggingface.co/datasets/Open-Orca/OpenOrca). ## Training Procedure `Open-Orca/Platypus2-13B` was instruction fine-tuned using LoRA on 1x A100-80GB. For training details and inference instructions please see the [Platypus](https://github.com/arielnlee/Platypus) GitHub repo. # Supplemental ## Reproducing Evaluation Results (for HuggingFace Leaderboard Eval) Install LM Evaluation Harness: ``` # clone repository git clone https://github.com/EleutherAI/lm-evaluation-harness.git # change to repo directory cd lm-evaluation-harness # check out the correct commit git checkout b281b0921b636bc36ad05c0b0b0763bd6dd43463 # install pip install -e . ``` Each task was evaluated on a single A100-80GB GPU. ARC: ``` python main.py --model hf-causal-experimental --model_args pretrained=Open-Orca/OpenOrca-Platypus2-13B --tasks arc_challenge --batch_size 1 --no_cache --write_out --output_path results/OpenOrca-Platypus2-13B/arc_challenge_25shot.json --device cuda --num_fewshot 25 ``` HellaSwag: ``` python main.py --model hf-causal-experimental --model_args pretrained=Open-Orca/OpenOrca-Platypus2-13B --tasks hellaswag --batch_size 1 --no_cache --write_out --output_path results/OpenOrca-Platypus2-13B/hellaswag_10shot.json --device cuda --num_fewshot 10 ``` MMLU: ``` python main.py --model hf-causal-experimental --model_args pretrained=Open-Orca/OpenOrca-Platypus2-13B --tasks hendrycksTest-* --batch_size 1 --no_cache --write_out --output_path results/OpenOrca-Platypus2-13B/mmlu_5shot.json --device cuda --num_fewshot 5 ``` TruthfulQA: ``` python main.py --model hf-causal-experimental --model_args pretrained=Open-Orca/OpenOrca-Platypus2-13B --tasks truthfulqa_mc --batch_size 1 --no_cache --write_out --output_path results/OpenOrca-Platypus2-13B/truthfulqa_0shot.json --device cuda ``` ## Limitations and bias Llama 2 and fine-tuned variants are a new technology that carries risks with use. Testing conducted to date has been in English, and has not covered, nor could it cover all scenarios. For these reasons, as with all LLMs, Llama 2 and any fine-tuned varient'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 variants, 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/ # Citations ```bibtex @software{hunterlee2023orcaplaty1 title = {OpenOrcaPlatypus: Llama2-13B Model Instruct-tuned on Filtered OpenOrcaV1 GPT-4 Dataset and Merged with divergent STEM and Logic Dataset Model}, author = {Ariel N. Lee and Cole J. Hunter and Nataniel Ruiz and Bleys Goodson and Wing Lian and Guan Wang and Eugene Pentland and Austin Cook and Chanvichet Vong and "Teknium"}, year = {2023}, publisher = {HuggingFace}, journal = {HuggingFace repository}, howpublished = {\url{https://huggingface.co/Open-Orca/OpenOrca-Platypus2-13B}, } @article{platypus2023, title={Platypus: Quick, Cheap, and Powerful Refinement of LLMs}, author={Ariel N. Lee and Cole J. Hunter and Nataniel Ruiz}, booktitle={arXiv preprint arxiv:2308.07317}, year={2023} } @software{OpenOrcaxOpenChatPreview2, title = {OpenOrcaxOpenChatPreview2: Llama2-13B Model Instruct-tuned on Filtered OpenOrcaV1 GPT-4 Dataset}, author = {Guan Wang and Bleys Goodson and Wing Lian and Eugene Pentland and Austin Cook and Chanvichet Vong and "Teknium"}, year = {2023}, publisher = {HuggingFace}, journal = {HuggingFace repository}, howpublished = {\url{https://https://huggingface.co/Open-Orca/OpenOrcaxOpenChat-Preview2-13B}, } @software{openchat, title = {{OpenChat: Advancing Open-source Language Models with Imperfect Data}}, author = {Wang, Guan and Cheng, Sijie and Yu, Qiying and Liu, Changling}, doi = {10.5281/zenodo.8105775}, url = {https://github.com/imoneoi/openchat}, version = {pre-release}, year = {2023}, month = {7}, } @misc{mukherjee2023orca, title={Orca: Progressive Learning from Complex Explanation Traces of GPT-4}, author={Subhabrata Mukherjee and Arindam Mitra and Ganesh Jawahar and Sahaj Agarwal and Hamid Palangi and Ahmed Awadallah}, year={2023}, eprint={2306.02707}, archivePrefix={arXiv}, primaryClass={cs.CL} } @misc{touvron2023llama, title={Llama 2: Open Foundation and Fine-Tuned Chat Models}, author={Hugo Touvron and Louis Martin and Kevin Stone and Peter Albert and Amjad Almahairi and Yasmine Babaei and Nikolay Bashlykov and Soumya Batra and Prajjwal Bhargava and Shruti Bhosale and Dan Bikel and Lukas Blecher and Cristian Canton Ferrer and Moya Chen and Guillem Cucurull and David Esiobu and Jude Fernandes and Jeremy Fu and Wenyin Fu and Brian Fuller and Cynthia Gao and Vedanuj Goswami and Naman Goyal and Anthony Hartshorn and Saghar Hosseini and Rui Hou and Hakan Inan and Marcin Kardas and Viktor Kerkez and Madian Khabsa and Isabel Kloumann and Artem Korenev and Punit Singh Koura and Marie-Anne Lachaux and Thibaut Lavril and Jenya Lee and Diana Liskovich and Yinghai Lu and Yuning Mao and Xavier Martinet and Todor Mihaylov and Pushkar Mishra and Igor Molybog and Yixin Nie and Andrew Poulton and Jeremy Reizenstein and Rashi Rungta and Kalyan Saladi and Alan Schelten and Ruan Silva and Eric Michael Smith and Ranjan Subramanian and Xiaoqing Ellen Tan and Binh Tang and Ross Taylor and Adina Williams and Jian Xiang Kuan and Puxin Xu and Zheng Yan and Iliyan Zarov and Yuchen Zhang and Angela Fan and Melanie Kambadur and Sharan Narang and Aurelien Rodriguez and Robert Stojnic and Sergey Edunov and Thomas Scialom}, year={2023}, eprint= arXiv 2307.09288 } @misc{longpre2023flan, title={The Flan Collection: Designing Data and Methods for Effective Instruction Tuning}, author={Shayne Longpre and Le Hou and Tu Vu and Albert Webson and Hyung Won Chung and Yi Tay and Denny Zhou and Quoc V. Le and Barret Zoph and Jason Wei and Adam Roberts}, year={2023}, eprint={2301.13688}, archivePrefix={arXiv}, primaryClass={cs.AI} } @article{hu2021lora, title={LoRA: Low-Rank Adaptation of Large Language Models}, author={Hu, Edward J. and Shen, Yelong and Wallis, Phillip and Allen-Zhu, Zeyuan and Li, Yuanzhi and Wang, Shean and Chen, Weizhu}, journal={CoRR}, year={2021} } ```
[ -0.43463096022605896, -0.8118219375610352, 0.2104422152042389, 0.11132929474115372, -0.2882847785949707, -0.16215316951274872, -0.1835947483778, -0.7119654417037964, 0.28355109691619873, 0.3384151756763458, -0.5934054851531982, -0.6276970505714417, -0.50129234790802, -0.14194704592227936, -0.06739690154790878, 1.110289216041565, -0.3947950303554535, -0.17701074481010437, -0.03256594017148018, -0.4227944612503052, -0.5136518478393555, -0.4658266305923462, -0.6181061863899231, -0.4019121527671814, 0.4270595610141754, 0.26572632789611816, 0.6250837445259094, 0.6120210289955139, 0.5439234375953674, 0.26180437207221985, -0.2514895498752594, 0.29500889778137207, -0.5730235576629639, -0.15847688913345337, 0.10727447271347046, -0.5230722427368164, -0.74595707654953, 0.19518978893756866, 0.35970479249954224, 0.291222482919693, -0.28451213240623474, 0.4025331139564514, 0.08136381208896637, 0.376072496175766, -0.6276167631149292, 0.3782648742198944, -0.37261661887168884, -0.0689348354935646, -0.33660829067230225, -0.018150802701711655, -0.2007393091917038, -0.3691212832927704, -0.07817331701517105, -0.8569973707199097, -0.0048933494836091995, 0.1052202358841896, 1.2138193845748901, 0.3629581928253174, -0.22233405709266663, -0.15873636305332184, -0.22356955707073212, 0.6784871220588684, -0.6305260062217712, 0.18856865167617798, 0.2100249081850052, 0.11200033128261566, -0.44076332449913025, -0.6718328595161438, -0.5922271609306335, -0.2804575264453888, -0.013715348206460476, 0.3494229018688202, -0.17982198297977448, -0.16036365926265717, 0.19827596843242645, 0.43263497948646545, -0.5739060044288635, 0.36467084288597107, -0.5115411877632141, -0.12274405360221863, 0.6999903917312622, 0.07883799821138382, 0.21541811525821686, 0.04856893792748451, -0.5739169716835022, -0.5639457702636719, -0.6623082756996155, 0.4149695932865143, 0.41220802068710327, 0.2930431663990021, -0.5756100416183472, 0.6563015580177307, 0.013133668340742588, 0.4666886627674103, -0.05000114068388939, -0.38753825426101685, 0.5764657855033875, -0.3589996099472046, -0.3828051686286926, -0.11471792310476303, 0.9824439883232117, 0.3242461383342743, -0.045230932533741, 0.18877418339252472, -0.09215398132801056, 0.3676318824291229, -0.15262752771377563, -0.7889655828475952, -0.19733136892318726, 0.32352620363235474, -0.37076908349990845, -0.25439175963401794, 0.04124201089143753, -0.548839807510376, -0.23682901263237, -0.08430545032024384, 0.2451583743095398, -0.5255827307701111, -0.4579440653324127, 0.4060395658016205, -0.011915934272110462, 0.5002132058143616, 0.3527037799358368, -0.5565025806427002, 0.4230596721172333, 0.547731339931488, 0.8981881737709045, -0.17166446149349213, -0.45188477635383606, -0.3472718298435211, -0.24621504545211792, -0.2935572564601898, 0.7617999315261841, -0.17088967561721802, -0.2780925929546356, -0.3251083195209503, 0.06574413180351257, -0.22886957228183746, -0.4684930741786957, 0.632350742816925, -0.29978394508361816, 0.22096148133277893, -0.3452948331832886, -0.25550153851509094, -0.38093385100364685, 0.040967606008052826, -0.5542082786560059, 1.2018307447433472, 0.0900033488869667, -0.779075562953949, 0.2764250636100769, -0.8233675360679626, -0.15992140769958496, -0.2296295017004013, 0.08322451263666153, -0.578575074672699, -0.1977681666612625, 0.3470873534679413, 0.2617090940475464, -0.41634854674339294, 0.045161861926317215, -0.5293152928352356, -0.1472051590681076, 0.09306710213422775, 0.211313858628273, 1.0113470554351807, 0.2432185560464859, -0.3313187062740326, 0.06669517606496811, -0.4806711673736572, -0.1135605201125145, 0.5646843314170837, -0.2129671722650528, -0.11352390795946121, -0.24271690845489502, -0.0850183516740799, 0.20561961829662323, 0.33471551537513733, -0.6627878546714783, 0.36293619871139526, -0.4112083613872528, 0.6510716080665588, 0.6507229804992676, -0.1550840437412262, 0.21632744371891022, -0.4442876875400543, 0.4892791509628296, 0.0364348366856575, 0.4047749638557434, -0.012474927119910717, -0.8330097198486328, -0.8577653765678406, -0.35549333691596985, 0.18489229679107666, 0.6003583669662476, -0.42425376176834106, 0.5249953269958496, -0.012087390758097172, -0.7496774792671204, -0.4764326512813568, 0.05716679245233536, 0.5588327050209045, 0.6136819124221802, 0.47719526290893555, -0.7002689242362976, -0.485832154750824, -0.6851233839988708, -0.008689670823514462, -0.36525338888168335, 0.1471005082130432, 0.40058639645576477, 0.7969806790351868, -0.04369809478521347, 0.8373633623123169, -0.545829713344574, -0.46282461285591125, -0.12148107588291168, -0.04159555211663246, 0.3488366901874542, 0.6061059236526489, 0.7556111812591553, -0.41976916790008545, -0.22188308835029602, -0.07262702286243439, -0.8582761287689209, -0.07321418821811676, 0.1842212975025177, -0.2898991107940674, 0.4203411340713501, 0.292952299118042, -0.8549891114234924, 0.5267491936683655, 0.49367889761924744, -0.4156990051269531, 0.5152662992477417, -0.18914593756198883, -0.21761555969715118, -0.7419025897979736, 0.3226125240325928, 0.0463782399892807, -0.05327019467949867, -0.38837581872940063, 0.30529993772506714, -0.044059716165065765, 0.009505216963589191, -0.6294176578521729, 0.7257571816444397, -0.4967288672924042, -0.12910091876983643, -0.006731312721967697, 0.22706525027751923, -0.07339398562908173, 0.6084733009338379, -0.01624753326177597, 0.6403955221176147, 0.6652370095252991, -0.3640446364879608, 0.18385106325149536, 0.5565419793128967, -0.2877229154109955, 0.2727619409561157, -0.8245223164558411, 0.23240926861763, -0.019511079415678978, 0.6424272060394287, -1.0465712547302246, -0.18838459253311157, 0.4712059497833252, -0.4400676190853119, 0.31145113706588745, 0.012285509146749973, -0.6417568325996399, -0.6017267107963562, -0.5120033025741577, 0.3711998760700226, 0.6365401148796082, -0.7689442038536072, 0.4512437582015991, 0.3705715239048004, 0.03132840618491173, -0.605110228061676, -0.7257958650588989, -0.26998665928840637, -0.35755589604377747, -0.8491827845573425, 0.28188613057136536, -0.04736681655049324, -0.01214242447167635, -0.13007980585098267, -0.18278689682483673, 0.17980699241161346, 0.07034573704004288, 0.5584341287612915, 0.5905072689056396, -0.17092670500278473, -0.12208591401576996, -0.09209751337766647, -0.22564581036567688, -0.025985904037952423, -0.24998436868190765, 0.633988618850708, -0.48825153708457947, -0.13997681438922882, -0.6916067004203796, -0.12599405646324158, 0.4776190221309662, -0.48948371410369873, 0.7804585099220276, 0.5522141456604004, -0.16357816755771637, 0.1974024921655655, -0.6538941264152527, -0.2560696005821228, -0.4331771433353424, 0.09505586326122284, -0.36393919587135315, -0.8435906171798706, 0.7587746977806091, 0.2467360943555832, 0.25767648220062256, 0.7331390976905823, 0.55140221118927, 0.20555701851844788, 0.8289335370063782, 0.5498880743980408, -0.12551303207874298, 0.3658771216869354, -0.6212068796157837, 0.04154934361577034, -0.8931127786636353, -0.5150023698806763, -0.4621153175830841, -0.4516276717185974, -0.6408911943435669, -0.3897705078125, 0.3560636639595032, 0.20296694338321686, -0.5295547246932983, 0.5704062581062317, -0.5905442833900452, 0.27506792545318604, 0.5458399057388306, 0.2881135046482086, 0.18874143064022064, 0.06900639086961746, -0.21475070714950562, 0.15397930145263672, -0.6423699855804443, -0.41129860281944275, 1.2804030179977417, 0.4820239543914795, 0.6913301348686218, 0.0035077363718301058, 0.5776188373565674, -0.2443436235189438, 0.37208086252212524, -0.4003069996833801, 0.5634610652923584, 0.007402815390378237, -0.5076122283935547, -0.05348491668701172, -0.3441191613674164, -1.0266470909118652, 0.23876693844795227, -0.09353892505168915, -0.8889967799186707, 0.3037676215171814, 0.04468023031949997, -0.5821478962898254, 0.42102205753326416, -0.7585369944572449, 0.8737241625785828, -0.21976737678050995, -0.35827264189720154, -0.06438075006008148, -0.8888787031173706, 0.5883619785308838, 0.06437201797962189, -0.012638983316719532, -0.12308350205421448, -0.2802937924861908, 0.8612839579582214, -0.7565110921859741, 0.791703462600708, -0.22049924731254578, -0.03235280513763428, 0.52922523021698, -0.04380087926983833, 0.42922988533973694, 0.07286915928125381, -0.04439278319478035, 0.5564413070678711, -0.02201501652598381, -0.329992413520813, -0.21822910010814667, 0.7974029183387756, -1.182607889175415, -0.29013851284980774, -0.5810271501541138, -0.5001723170280457, 0.20017559826374054, 0.10212600976228714, 0.21989308297634125, 0.06699047237634659, 0.09083046019077301, -0.036868058145046234, 0.45770198106765747, -0.4362775683403015, 0.3857101798057556, 0.4915371537208557, -0.20823420584201813, -0.46480345726013184, 0.7089072465896606, 0.07128815352916718, 0.1049731895327568, 0.07856637239456177, 0.1266235113143921, -0.3990081250667572, -0.36897286772727966, -0.22447533905506134, 0.7527235746383667, -0.45303741097450256, -0.4139622747898102, -0.6665796041488647, -0.16197410225868225, -0.31800830364227295, 0.0809103474020958, -0.48004475235939026, -0.46215665340423584, -0.5064805746078491, -0.11911075562238693, 0.6312122941017151, 0.5306792259216309, -0.2114328294992447, 0.381759911775589, -0.2053793966770172, 0.21945948898792267, 0.133663147687912, 0.28929221630096436, -0.10065610706806183, -0.6918460726737976, 0.21042941510677338, 0.03401390463113785, -0.6212716102600098, -0.6370280981063843, 0.4638245105743408, 0.10412651300430298, 0.3888964056968689, 0.2497205287218094, -0.02158949337899685, 0.7944809198379517, -0.11357912421226501, 0.8068944215774536, 0.25297170877456665, -0.7078980803489685, 0.6651598215103149, -0.24442926049232483, 0.09881903976202011, 0.438497930765152, 0.3746987581253052, -0.04833783581852913, -0.33179518580436707, -0.8810722231864929, -0.9062742590904236, 1.0685081481933594, 0.4104592800140381, -0.32319965958595276, 0.24769221246242523, 0.5847364664077759, 0.11267337948083878, 0.18985532224178314, -0.8039312362670898, -0.35364362597465515, -0.33162224292755127, 0.19659456610679626, -0.15722323954105377, -0.07295630872249603, -0.11151822656393051, -0.35289183259010315, 0.7891525030136108, 0.02752510830760002, 0.38555482029914856, 0.25616562366485596, 0.04886098578572273, -0.18893659114837646, -0.14081525802612305, 0.5804781913757324, 0.4619051516056061, -0.5024453997612, -0.27941301465034485, 0.20782479643821716, -0.5967683792114258, -0.11531651020050049, 0.3149714469909668, -0.03546055406332016, -0.244961678981781, 0.23418976366519928, 0.9853306412696838, -0.2330092489719391, -0.5796247124671936, 0.46326249837875366, -0.1022455245256424, -0.29923516511917114, -0.2641814649105072, 0.11509311199188232, 0.06191523000597954, 0.314736932516098, 0.07055395841598511, 0.0733962133526802, -0.2171468436717987, -0.5659376382827759, -0.10407914966344833, 0.3579958975315094, 0.001859265728853643, -0.40853288769721985, 0.9314533472061157, -0.030369549989700317, -0.047537099570035934, 0.6434504985809326, -0.14306601881980896, -0.3258950412273407, 0.8629184365272522, 0.38031235337257385, 0.6146485805511475, -0.3231722116470337, -0.026761597022414207, 0.5362998247146606, 0.39349818229675293, -0.17540624737739563, 0.4886070191860199, 0.16487012803554535, -0.49915841221809387, -0.2892323136329651, -0.5273956656455994, -0.21607200801372528, 0.41513678431510925, -0.6456655859947205, 0.4920726418495178, -0.6003610491752625, -0.2727191746234894, 0.004884289111942053, 0.2802717983722687, -0.6856614947319031, 0.06453345715999603, 0.13119520246982574, 1.1062612533569336, -0.8908328413963318, 0.6937323212623596, 0.7699378728866577, -0.60265052318573, -1.0520004034042358, -0.43159836530685425, 0.03563261032104492, -1.0169053077697754, 0.5489156246185303, 0.34351059794425964, 0.07429381459951401, -0.20535531640052795, -0.7302809357643127, -0.9467882513999939, 1.4427653551101685, 0.6382728219032288, -0.39993712306022644, 0.19227495789527893, 0.017346180975437164, 0.5659167766571045, -0.38023054599761963, 0.6901111006736755, 0.7586174607276917, 0.5282993912696838, 0.20884044468402863, -1.1484410762786865, 0.2630655765533447, -0.3597009479999542, 0.03041360154747963, 0.14486895501613617, -1.1388925313949585, 1.1443195343017578, -0.3743279278278351, -0.1947944611310959, 0.35484448075294495, 0.6379492878913879, 0.5762210488319397, 0.2299383282661438, 0.45546281337738037, 0.9905382990837097, 0.7450999021530151, -0.20532092452049255, 1.2567344903945923, -0.21585650742053986, 0.5290223360061646, 0.9978417754173279, -0.22573867440223694, 0.862351655960083, 0.3301500976085663, -0.283463716506958, 0.6010068655014038, 0.9046792387962341, -0.06729214638471603, 0.4702686369419098, 0.06252583861351013, 0.16693727672100067, -0.07063478231430054, -0.18200218677520752, -0.6711002588272095, 0.417642205953598, 0.2267666906118393, -0.1273377239704132, -0.31048783659935, -0.05403158441185951, 0.26874175667762756, -0.2953241467475891, -0.11655530333518982, 0.5085393190383911, 0.1970769464969635, -0.6995418667793274, 1.067949891090393, 0.14327749609947205, 0.6725067496299744, -0.6024707555770874, 0.17465147376060486, -0.42084404826164246, 0.16741372644901276, -0.3759816586971283, -0.7200537919998169, 0.011170805431902409, -0.09661269932985306, 0.20073974132537842, -0.11958253383636475, 0.5313376188278198, -0.09282860159873962, -0.2172936648130417, 0.5077573657035828, 0.2918258309364319, 0.36480358242988586, -0.048644356429576874, -0.8448805212974548, 0.2624985873699188, -0.07531964778900146, -0.45477721095085144, 0.3335323631763458, 0.1263161450624466, -0.14817294478416443, 0.7067881226539612, 0.7870607972145081, -0.04469698294997215, 0.028835250064730644, -0.13289889693260193, 1.1749037504196167, -0.32382169365882874, -0.478371262550354, -0.7148360013961792, 0.4618305265903473, 0.15459471940994263, -0.6110950708389282, 0.6841875314712524, 0.6473626494407654, 0.9217440485954285, 0.16046510636806488, 0.4973234236240387, -0.29703179001808167, 0.3806069493293762, -0.36999261379241943, 0.5321447253227234, -0.7017502188682556, 0.2301059067249298, -0.15456275641918182, -0.9649598598480225, -0.21527095139026642, 0.6908067464828491, -0.4307537078857422, 0.08901581913232803, 0.747669517993927, 0.9290894865989685, -0.21316656470298767, 0.027843816205859184, -0.21200264990329742, 0.4930686354637146, 0.28543969988822937, 0.9259071946144104, 0.6632466316223145, -0.6970381140708923, 0.6122079491615295, -0.34178978204727173, -0.5184041261672974, -0.19850553572177887, -0.7284249067306519, -1.0173044204711914, -0.2864411473274231, -0.4321419894695282, -0.4841667413711548, 0.05622289329767227, 0.7070762515068054, 0.5864779353141785, -0.7135945558547974, -0.4688577353954315, -0.17132583260536194, -0.06257002800703049, -0.22127315402030945, -0.16476811468601227, 0.5105161666870117, -0.043103769421577454, -0.5161091089248657, 0.21525989472866058, 0.11689063161611557, 0.17347346246242523, -0.18115977942943573, -0.1998814046382904, -0.21541690826416016, -0.13817214965820312, 0.34121614694595337, 0.645886242389679, -0.6993381977081299, -0.04393664002418518, -0.03776492178440094, -0.029696136713027954, 0.3227907419204712, 0.36048832535743713, -0.8760234117507935, 0.21463045477867126, 0.34297895431518555, 0.210725799202919, 0.8547531962394714, -0.028748953714966774, 0.08267036080360413, -0.38525381684303284, 0.5100395083427429, -0.04185493290424347, 0.41519641876220703, 0.22042851150035858, -0.11465256661176682, 0.8313285708427429, 0.3075357675552368, -0.5320683717727661, -0.9284012317657471, -0.04607818275690079, -1.2794300317764282, -0.08420717716217041, 1.1479815244674683, -0.2770240306854248, -0.4616840183734894, 0.2836555242538452, -0.2603568732738495, 0.24296630918979645, -0.6579800844192505, 0.5948585867881775, 0.28613021969795227, -0.17989833652973175, 0.03023342974483967, -0.6774889230728149, 0.17530633509159088, 0.42715486884117126, -0.8407902717590332, -0.2792857885360718, 0.22844237089157104, 0.34846821427345276, 0.33434978127479553, 0.48697173595428467, -0.20267176628112793, 0.23910479247570038, -0.21781165897846222, 0.20903703570365906, -0.33279192447662354, -0.15476065874099731, -0.27725034952163696, -0.03647686913609505, -0.16311858594417572, -0.30803072452545166 ]
yuvalkirstain/PickScore_v1
yuvalkirstain
"2023-05-08T08:32:12Z"
13,983
18
transformers
[ "transformers", "pytorch", "safetensors", "clip", "zero-shot-image-classification", "arxiv:2305.01569", "endpoints_compatible", "has_space", "region:us" ]
zero-shot-image-classification
"2023-04-24T08:08:20Z"
# Model Card for PickScore v1 This model is a scoring function for images generated from text. It takes as input a prompt and a generated image and outputs a score. It can be used as a general scoring function, and for tasks such as human preference prediction, model evaluation, image ranking, and more. See our paper [Pick-a-Pic: An Open Dataset of User Preferences for Text-to-Image Generation](https://arxiv.org/abs/2305.01569) for more details. ## Model Details ### Model Description This model was finetuned from CLIP-H using the [Pick-a-Pic dataset](https://huggingface.co/datasets/yuvalkirstain/pickapic_v1). ### Model Sources [optional] <!-- Provide the basic links for the model. --> - **Repository:** [See the PickScore repo](https://github.com/yuvalkirstain/PickScore) - **Paper:** [Pick-a-Pic: An Open Dataset of User Preferences for Text-to-Image Generation](https://arxiv.org/abs/2305.01569). - **Demo [optional]:** [Huggingface Spaces demo for PickScore](https://huggingface.co/spaces/yuvalkirstain/PickScore) ## How to Get Started with the Model Use the code below to get started with the model. ```python # import from transformers import AutoProcessor, AutoModel # load model device = "cuda" processor_name_or_path = "laion/CLIP-ViT-H-14-laion2B-s32B-b79K" model_pretrained_name_or_path = "yuvalkirstain/PickScore_v1" processor = AutoProcessor.from_pretrained(processor_name_or_path) model = AutoModel.from_pretrained(model_pretrained_name_or_path).eval().to(device) def calc_probs(prompt, images): # preprocess image_inputs = processor( images=images, padding=True, truncation=True, max_length=77, return_tensors="pt", ).to(device) text_inputs = processor( text=prompt, padding=True, truncation=True, max_length=77, return_tensors="pt", ).to(device) with torch.no_grad(): # embed image_embs = model.get_image_features(**image_inputs) image_embs = image_embs / torch.norm(image_embs, dim=-1, keepdim=True) text_embs = model.get_text_features(**text_inputs) text_embs = text_embs / torch.norm(text_embs, dim=-1, keepdim=True) # score scores = model.logit_scale.exp() * (text_embs @ image_embs.T)[0] # get probabilities if you have multiple images to choose from probs = torch.softmax(scores, dim=-1) return probs.cpu().tolist() pil_images = [Image.open("my_amazing_images/1.jpg"), Image.open("my_amazing_images/2.jpg")] prompt = "fantastic, increadible prompt" print(calc_probs(prompt, pil_images)) ``` ## Training Details ### Training Data This model was trained on the [Pick-a-Pic dataset](https://huggingface.co/datasets/yuvalkirstain/pickapic_v1). ### Training Procedure TODO - add paper. ## Citation [optional] If you find this work useful, please cite: ```bibtex @inproceedings{Kirstain2023PickaPicAO, title={Pick-a-Pic: An Open Dataset of User Preferences for Text-to-Image Generation}, author={Yuval Kirstain and Adam Polyak and Uriel Singer and Shahbuland Matiana and Joe Penna and Omer Levy}, year={2023} } ``` **APA:** [More Information Needed]
[ -0.4128764867782593, -0.7539501786231995, 0.36945828795433044, 0.040730588138103485, -0.44607013463974, -0.2775978744029999, -0.11780814081430435, -0.4742761552333832, 0.12742339074611664, 0.2436634749174118, -0.6505635380744934, -0.6390303373336792, -0.6433693170547485, -0.20789092779159546, -0.13489747047424316, 1.0708783864974976, -0.06515026837587357, -0.014409090392291546, -0.2985633909702301, -0.06181812286376953, -0.40455982089042664, -0.2931289076805115, -0.801845371723175, -0.16008339822292328, 0.2253352850675583, 0.4757053256034851, 0.5754480957984924, 0.5658395886421204, 0.7521001696586609, 0.34486252069473267, -0.01347634568810463, 0.010430939495563507, -0.3774043917655945, 0.011781361885368824, 0.09858423471450806, -0.5636503100395203, -0.3750642240047455, 0.4882538616657257, 0.5401572585105896, -0.11029478907585144, 0.1903378963470459, 0.5447337031364441, -0.20194460451602936, 0.2555572986602783, -0.38502854108810425, 0.09942308813333511, -0.6361444592475891, 0.18975292146205902, -0.1596526801586151, -0.17091533541679382, -0.3634078800678253, -0.5302133560180664, 0.13404132425785065, -0.4743639826774597, 0.3457677662372589, -0.041297003626823425, 1.2957124710083008, 0.22811836004257202, -0.12009672075510025, -0.23551388084888458, -0.3575420677661896, 0.7933294773101807, -0.5658272504806519, -0.10065723210573196, 0.3168351352214813, 0.3701331615447998, 0.22872120141983032, -0.6614681482315063, -0.3968104422092438, -0.20688791573047638, 0.05798785760998726, 0.27239516377449036, -0.12176834791898727, -0.1262495070695877, 0.5493516325950623, 0.3271293342113495, -0.2657115161418915, 0.028835393488407135, -0.7473459839820862, -0.28522488474845886, 0.8812734484672546, 0.11360304802656174, 0.4985196888446808, -0.27393466234207153, -0.5103068351745605, -0.41299864649772644, -0.3056112825870514, 0.3546673059463501, 0.4333358108997345, 0.08564091473817825, -0.3665434420108795, 0.6823943853378296, 0.1500832438468933, 0.7081459164619446, 0.3032280504703522, -0.28121888637542725, 0.57993483543396, -0.11646362394094467, -0.21403606235980988, -0.18367929756641388, 1.011173963546753, 0.5739647150039673, 0.23662449419498444, 0.3275946080684662, -0.1122671589255333, -0.052647560834884644, 0.07456677407026291, -0.9963427186012268, -0.46922680735588074, 0.1948908120393753, -0.598964273929596, -0.7583279609680176, -0.05799252167344093, -0.4118135869503021, -0.062358930706977844, 0.17179225385189056, 0.6130310297012329, -0.639455258846283, -0.11260420083999634, -0.15149390697479248, -0.41182294487953186, 0.2868170440196991, 0.2818036377429962, -0.6999223828315735, 0.04274298623204231, -0.1528201848268509, 1.004225730895996, -0.1290046125650406, -0.5142714381217957, -0.318683922290802, -0.31030741333961487, -0.2482481598854065, 1.0847914218902588, -0.21983014047145844, -0.45618870854377747, -0.307658851146698, 0.017055481672286987, -0.2619627118110657, -0.4033574163913727, 0.6787078380584717, -0.2652977705001831, 0.4688165485858917, -0.10217823088169098, -0.5363824963569641, -0.13807374238967896, 0.27516448497772217, -0.6585854291915894, 1.307279109954834, 0.19642728567123413, -0.9445893168449402, 0.5002421140670776, -0.7861276268959045, -0.21491064131259918, 0.03801121190190315, -0.12500528991222382, -0.8081735372543335, 0.07481396198272705, 0.30912595987319946, 0.5919024348258972, -0.1032533273100853, -0.0649644061923027, -0.5978093147277832, -0.3565804064273834, 0.2560974061489105, -0.2619794011116028, 1.0359395742416382, 0.14090602099895477, -0.06670675426721573, 0.17172472178936005, -0.5650167465209961, 0.3073745369911194, 0.6263043880462646, -0.30363529920578003, -0.027725575491786003, -0.26646777987480164, 0.38729530572891235, 0.611662745475769, 0.2162790447473526, -0.669745147228241, 0.2251087725162506, -0.05780518054962158, 0.35071927309036255, 0.6567823886871338, -0.05478303134441376, 0.42529720067977905, -0.4462440609931946, 0.4611371159553528, 0.1223929226398468, 0.3093656897544861, -0.25778090953826904, -0.6768649816513062, -0.46445536613464355, -0.391295850276947, 0.22855329513549805, 0.5536803007125854, -0.6607394218444824, 0.5213214755058289, 0.042695555835962296, -0.762245237827301, -0.5875087976455688, -0.11588065326213837, 0.35903558135032654, 0.7672626376152039, 0.2623348534107208, -0.5093408823013306, -0.41243594884872437, -1.0134750604629517, 0.0029714268166571856, -0.027315083891153336, -0.031076472252607346, 0.5816968679428101, 0.5249109268188477, 0.17186076939105988, 0.9438861012458801, -0.6298537254333496, -0.3155215382575989, -0.2661935091018677, -0.027016891166567802, 0.44924136996269226, 0.6853911876678467, 1.0216023921966553, -0.6034805178642273, -0.442184716463089, -0.3998008668422699, -0.7283628582954407, 0.0918857678771019, -0.026326093822717667, -0.24690379202365875, 0.18059049546718597, 0.04273652285337448, -0.8033624291419983, 0.6031622886657715, 0.3730352520942688, -0.5782974362373352, 0.9494020938873291, -0.37062716484069824, 0.3995264768600464, -1.0830740928649902, 0.1882542222738266, 0.2694310247898102, -0.19297312200069427, -0.3995179235935211, -0.03267156332731247, 0.04668058082461357, -0.13410413265228271, -0.8397520184516907, 0.9266466498374939, -0.32877403497695923, -0.15011705458164215, -0.18295690417289734, -0.18837371468544006, 0.026585092768073082, 0.5964362621307373, 0.2839964032173157, 0.6653172373771667, 0.8641404509544373, -0.5632993578910828, 0.28260093927383423, 0.5499477982521057, -0.47421547770500183, 0.6730028390884399, -0.7331345677375793, 0.24821363389492035, -0.04871094226837158, 0.035943206399679184, -1.0032230615615845, -0.2781641185283661, 0.2543967664241791, -0.7711922526359558, 0.3456454575061798, -0.2032526135444641, -0.4419349431991577, -0.7125647664070129, -0.3733256757259369, 0.470228910446167, 0.6368110179901123, -0.6888302564620972, 0.368857741355896, 0.4392893612384796, 0.2659629285335541, -0.3734104335308075, -0.7235338687896729, -0.30483973026275635, -0.10053352266550064, -0.6916280388832092, 0.42666223645210266, -0.317430704832077, 0.14919327199459076, 0.059815771877765656, 0.15958541631698608, -0.13820745050907135, -0.03424791619181633, 0.21460583806037903, 0.6701899170875549, 0.040709950029850006, 0.10053466260433197, 0.014291675761342049, -0.09531444311141968, 0.04222913458943367, -0.10084835439920425, 0.46943843364715576, -0.19769886136054993, -0.12608180940151215, -0.5915859937667847, 0.14202235639095306, 0.24891148507595062, -0.04575097933411598, 0.5892328023910522, 0.8233569860458374, -0.42702966928482056, -0.15707986056804657, -0.3798004388809204, -0.17280995845794678, -0.45273342728614807, 0.4803723394870758, -0.4642941355705261, -0.46892255544662476, 0.6311113238334656, 0.2870921790599823, 0.2667086124420166, 0.7820807695388794, 0.7109392285346985, -0.3748958706855774, 1.0992299318313599, 0.5126181840896606, 0.18862834572792053, 0.7702746987342834, -0.6696345210075378, -0.2228744626045227, -0.7368265390396118, -0.1947806030511856, -0.2348340004682541, -0.4716319143772125, -0.3192669153213501, -0.43661677837371826, 0.2932925522327423, 0.025180399417877197, -0.42945340275764465, 0.3522389829158783, -0.7462087869644165, 0.5393586754798889, 0.7766656279563904, 0.5306934118270874, -0.20352734625339508, 0.15449263155460358, -0.39770516753196716, -0.06943340599536896, -0.7783883213996887, -0.3698993921279907, 1.2433327436447144, 0.4215383529663086, 0.6381347179412842, -0.5024649500846863, 0.7811532020568848, 0.17320911586284637, 0.3273252248764038, -0.9583148956298828, 0.6090686321258545, -0.2699619233608246, -0.6986870765686035, -0.12018582224845886, -0.19542928040027618, -0.5430376529693604, 0.03599255532026291, -0.5149388313293457, -0.7603743076324463, -0.048232194036245346, 0.4096888601779938, -0.3956293761730194, 0.612133264541626, -0.8694098591804504, 0.9349018931388855, -0.45318853855133057, -0.5338147282600403, 0.16979040205478668, -0.38414710760116577, 0.3805474638938904, 0.3632890582084656, -0.16288240253925323, -0.15307548642158508, 0.3382994830608368, 1.0776563882827759, -0.31618380546569824, 0.744129478931427, -0.2473260462284088, 0.3137710988521576, 0.5460498929023743, -0.053153663873672485, 0.27102145552635193, -0.03203563392162323, -0.1556936502456665, 0.284402072429657, 0.07422436773777008, -0.48067811131477356, -0.2700379192829132, 0.6164036393165588, -0.9646744728088379, -0.24016866087913513, -0.371903657913208, -0.5797110795974731, 0.052166324108839035, 0.29794347286224365, 0.901942253112793, 0.45199427008628845, -0.08909416198730469, -0.14895614981651306, 0.6084587574005127, -0.2660708725452423, 0.5592664480209351, -0.17104102671146393, -0.2717535197734833, -0.4371456801891327, 0.675757884979248, 0.09756775945425034, 0.1250545084476471, -0.039879489690065384, 0.1838066726922989, -0.41412195563316345, -0.4475398659706116, -0.5311707258224487, 0.28010350465774536, -0.782866358757019, -0.4667622745037079, -0.4454551041126251, -0.41370338201522827, -0.2274353802204132, -0.2910830080509186, -0.5619533061981201, -0.3820684552192688, -0.6512560248374939, -0.15043741464614868, 0.5463902950286865, 0.42032742500305176, 0.01614869385957718, 0.3472893238067627, -0.652062714099884, 0.19092072546482086, 0.2497812658548355, 0.5872279405593872, -0.19051747024059296, -0.7856637239456177, -0.108846515417099, -0.052605997771024704, -0.4457870423793793, -0.9581863880157471, 0.6107552647590637, 0.07285035401582718, 0.5808839201927185, 0.30975309014320374, -0.31076133251190186, 0.5097047686576843, -0.21892665326595306, 0.7044448852539062, 0.47212648391723633, -0.6998534798622131, 0.8675277829170227, -0.3329908549785614, 0.5606394410133362, 0.548037052154541, 0.36672013998031616, -0.15929581224918365, -0.07556577026844025, -1.0000007152557373, -0.5465927720069885, 1.02461576461792, 0.1716030389070511, 0.06889115273952484, 0.12018385529518127, 0.3524625599384308, 0.06618987768888474, 0.011433242820203304, -0.7545521259307861, -0.29047003388404846, -0.258463591337204, -0.26027169823646545, 0.04828275367617607, -0.1863805651664734, -0.07095402479171753, -0.5517842173576355, 0.7426238656044006, -0.13786259293556213, 0.6456341743469238, 0.31105515360832214, -0.16820207238197327, -0.1865989863872528, -0.19268858432769775, 0.3737585246562958, 0.2732647955417633, -0.4021933376789093, -0.1661197990179062, 0.053104352205991745, -0.6954596638679504, -0.06540883332490921, 0.029651423916220665, -0.47375136613845825, 0.00012266870180610567, 0.17937055230140686, 1.223251223564148, 0.023966379463672638, -0.3502747416496277, 0.45726969838142395, -0.2103496938943863, -0.5734338760375977, -0.1945391148328781, 0.15692290663719177, -0.10833725333213806, 0.17210601270198822, 0.2737048864364624, 0.5475436449050903, -0.022245442494750023, -0.3573288917541504, 0.183954656124115, 0.4638560712337494, -0.48406878113746643, -0.3154516816139221, 0.8286963701248169, 0.013517675921320915, -0.33990219235420227, 0.883661687374115, -0.24562163650989532, -0.4711865484714508, 1.039463996887207, 0.585611879825592, 0.8806837797164917, 0.0025610614102333784, 0.5160158276557922, 1.0081323385238647, 0.10562080889940262, -0.1118430495262146, 0.4137732684612274, 0.151087686419487, -0.888628363609314, 0.09075937420129776, -0.5530585050582886, -0.22864195704460144, 0.0972522422671318, -0.47778192162513733, 0.5338113307952881, -0.6021192073822021, -0.6253419518470764, -0.044270824640989304, 0.30258816480636597, -1.1388109922409058, 0.3737684190273285, 0.39522573351860046, 1.043459415435791, -0.9612888097763062, 0.7363163232803345, 0.9180475473403931, -0.6245719194412231, -0.9580666422843933, -0.42481526732444763, -0.010427436791360378, -0.8058303594589233, 0.5670756101608276, 0.3951107859611511, 0.25882264971733093, 0.0617547444999218, -0.8903799057006836, -0.8899481296539307, 1.2636351585388184, 0.2781745195388794, -0.11660320311784744, 0.009373084641993046, -0.45195600390434265, 0.3778443932533264, -0.6729533076286316, 0.9430240988731384, 0.43029823899269104, 0.2543262839317322, 0.3904573917388916, -0.738345742225647, 0.0860976129770279, -0.5537059307098389, 0.03007688745856285, -0.09414510428905487, -0.607056736946106, 1.02448308467865, -0.7277255058288574, -0.21863879263401031, -0.06461107730865479, 0.49367469549179077, 0.6285265684127808, 0.08874164521694183, 0.43822017312049866, 0.6817333102226257, 0.5877665877342224, -0.12345225363969803, 1.1563403606414795, -0.09004287421703339, 0.5930643081665039, 0.9319320917129517, 0.15715153515338898, 0.7909931540489197, 0.3795389235019684, -0.1820240467786789, 0.28178638219833374, 0.9522461295127869, -0.5059701800346375, 0.48834002017974854, -0.020618168637156487, 0.2368006408214569, -0.3566955327987671, 0.1742081493139267, -0.190047949552536, 0.6272435188293457, 0.16940775513648987, -0.7084829807281494, -0.2748943567276001, 0.14389866590499878, -0.1737118512392044, -0.20975361764431, -0.38328349590301514, 0.4264529049396515, -0.18339446187019348, -0.5903330445289612, 0.4763036370277405, -0.15772369503974915, 0.9122021198272705, -0.4640238583087921, -0.009917919524013996, -0.006987673230469227, 0.07178501784801483, -0.28781381249427795, -1.113993763923645, 0.11799941956996918, -0.13592325150966644, -0.2885158658027649, -0.18333128094673157, 0.9727522730827332, -0.2357843667268753, -0.8756977915763855, 0.06609934568405151, 0.32891544699668884, 0.29020023345947266, 0.12475930899381638, -1.175641417503357, 0.16960835456848145, -0.010933870449662209, -0.575957179069519, 0.24010662734508514, -0.11028013378381729, 0.010109287686645985, 0.5581871867179871, 0.635303795337677, 0.02829795330762863, 0.07988765835762024, -0.10398317873477936, 0.7908773422241211, -0.5074155926704407, -0.5571849346160889, -0.6613947153091431, 0.6254710555076599, -0.3891695737838745, -0.7820799946784973, 0.5152804255485535, 0.6567814350128174, 0.8520099520683289, -0.44612085819244385, 0.8727595806121826, -0.42688336968421936, 0.299665629863739, -0.4247666597366333, 1.0174742937088013, -0.4856722354888916, -0.16769693791866302, -0.2631404399871826, -0.7482101917266846, -0.22926312685012817, 0.7882006764411926, -0.6403372287750244, 0.21234388649463654, 0.6312917470932007, 0.7327365279197693, -0.2624405324459076, -0.22881074249744415, 0.22845488786697388, -0.041193053126335144, 0.05548722296953201, 0.685766875743866, 0.5223847031593323, -0.7990900278091431, 0.45942118763923645, -0.6639670729637146, -0.3295741677284241, -0.06479524821043015, -0.811532199382782, -1.00495445728302, -0.7721062302589417, -0.49648308753967285, -0.41251078248023987, -0.24379892647266388, 0.8359420299530029, 0.8401013612747192, -0.6521837711334229, -0.18781718611717224, 0.1897272765636444, 0.1101159080862999, -0.20481079816818237, -0.24874332547187805, 0.5369362235069275, -0.2105329930782318, -0.8395357728004456, -0.22674749791622162, -0.016624506562948227, 0.25943905115127563, 0.1096881628036499, 0.029599744826555252, -0.3685051500797272, -0.10049519687891006, 0.5092284679412842, 0.32666653394699097, -0.3124624490737915, -0.24700221419334412, 0.10026494413614273, -0.12486586719751358, 0.3727533519268036, 0.4719882309436798, -0.7560141086578369, 0.44788113236427307, 0.6054043769836426, 0.16135232150554657, 0.724071741104126, -0.1763203740119934, 0.19974887371063232, -0.5362086296081543, 0.18964052200317383, 0.2393072247505188, 0.49647873640060425, 0.31583765149116516, -0.4795750677585602, 0.30624544620513916, 0.273274302482605, -0.4565413296222687, -0.6536601185798645, 0.02663401886820793, -1.136154055595398, -0.16352897882461548, 1.0432475805282593, -0.1380842924118042, -0.602474570274353, 0.43242260813713074, -0.46345585584640503, 0.267734557390213, -0.35665053129196167, 0.7211612462997437, 0.5303125977516174, -0.1600848138332367, -0.568647563457489, -0.32679682970046997, 0.5814480185508728, 0.019848013296723366, -0.8566175699234009, -0.49096640944480896, 0.42387083172798157, 0.6238295435905457, 0.12335792928934097, 0.9549729228019714, -0.2271316945552826, 0.5839229822158813, 0.16881422698497772, 0.3986535966396332, -0.3011048138141632, -0.13600821793079376, -0.25277724862098694, 0.13827168941497803, -0.13945619761943817, -0.5102644562721252 ]
timm/resnet34.a1_in1k
timm
"2023-04-05T18:05:47Z"
13,930
0
timm
[ "timm", "pytorch", "safetensors", "image-classification", "arxiv:2110.00476", "arxiv:1512.03385", "license:apache-2.0", "region:us" ]
image-classification
"2023-04-05T18:05:32Z"
--- tags: - image-classification - timm library_tag: timm license: apache-2.0 --- # Model card for resnet34.a1_in1k A ResNet-B image classification model. This model features: * ReLU activations * single layer 7x7 convolution with pooling * 1x1 convolution shortcut downsample Trained on ImageNet-1k in `timm` using recipe template described below. Recipe details: * ResNet Strikes Back `A1` recipe * LAMB optimizer with BCE loss * Cosine LR schedule with warmup ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 21.8 - GMACs: 3.7 - Activations (M): 3.7 - Image size: train = 224 x 224, test = 288 x 288 - **Papers:** - ResNet strikes back: An improved training procedure in timm: https://arxiv.org/abs/2110.00476 - Deep Residual Learning for Image Recognition: https://arxiv.org/abs/1512.03385 - **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('resnet34.a1_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( 'resnet34.a1_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, 64, 56, 56]) # torch.Size([1, 128, 28, 28]) # torch.Size([1, 256, 14, 14]) # torch.Size([1, 512, 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( 'resnet34.a1_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, 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 @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}} } ``` ```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} } ```
[ -0.8907595872879028, -0.2249870002269745, 0.03168701007962227, 0.3950892388820648, -0.4314495027065277, -0.11695073544979095, -0.13333383202552795, -0.3959219753742218, 1.177216649055481, 0.29448235034942627, -0.6624898314476013, -0.5472143888473511, -0.631028950214386, -0.018039049580693245, 0.32590293884277344, 0.8951864242553711, -0.002552556339651346, -0.08681774139404297, 0.23816320300102234, -0.25522953271865845, -0.05834247171878815, -0.347241073846817, -1.0813690423965454, -0.18704701960086823, 0.44395315647125244, 0.1749812364578247, 0.693169355392456, 0.6418431997299194, 0.3941790461540222, 0.6123901009559631, -0.2619590163230896, 0.28971949219703674, -0.07692227512598038, -0.1340409368276596, 0.6364818811416626, -0.41647207736968994, -0.940284788608551, -0.021972132846713066, 0.7367958426475525, 0.634518563747406, 0.0722324401140213, 0.35390007495880127, 0.38459938764572144, 0.6281501650810242, 0.03237597644329071, -0.05155007168650627, 0.011760224588215351, 0.1441660225391388, -0.30830812454223633, 0.08832117170095444, -0.07086385041475296, -0.7391864061355591, 0.16112622618675232, -0.6294824481010437, -0.0512276329100132, 0.003326686564832926, 1.3679543733596802, -0.11693883687257767, -0.21813856065273285, 0.09090881794691086, 0.14791814982891083, 0.7835482358932495, -0.8423604369163513, 0.35267898440361023, 0.5708749890327454, 0.0072253551334142685, -0.20109911262989044, -0.663943350315094, -0.5157000422477722, 0.12968479096889496, -0.44488707184791565, 0.32522815465927124, -0.3013398349285126, -0.2407725304365158, 0.38369014859199524, 0.349109411239624, -0.456241250038147, -0.11092989891767502, -0.35976141691207886, -0.09692700207233429, 0.7109231948852539, 0.08535128086805344, 0.7090615630149841, -0.35593894124031067, -0.5117674469947815, -0.13142985105514526, -0.17476168274879456, 0.4766087830066681, 0.2598470151424408, 0.153204545378685, -1.1161178350448608, 0.43407517671585083, 0.14902810752391815, 0.2465047985315323, 0.38541871309280396, -0.14946752786636353, 0.8471552133560181, -0.0951848179101944, -0.5283216834068298, -0.5153650641441345, 1.10085928440094, 0.6610717177391052, 0.27011051774024963, -0.09163318574428558, -0.05340895429253578, -0.18170763552188873, -0.40518468618392944, -0.9626026153564453, -0.034267570823431015, 0.2642616033554077, -0.5684417486190796, -0.24656274914741516, 0.33021512627601624, -0.9150171279907227, -0.05909406393766403, -0.09819425642490387, 0.06314598023891449, -0.773632287979126, -0.4505862295627594, 0.004975710064172745, -0.24092847108840942, 0.5304083824157715, 0.22723092138767242, -0.31938666105270386, 0.4438498914241791, 0.08328837156295776, 0.9007536172866821, 0.2852194607257843, -0.07151585072278976, -0.22383131086826324, 0.014867842197418213, -0.3688148856163025, 0.3721166253089905, 0.16011172533035278, -0.18321259319782257, -0.34749603271484375, 0.4318675100803375, -0.28328749537467957, -0.2568816542625427, 0.6246230602264404, 0.2840521037578583, 0.16708652675151825, -0.29658758640289307, -0.25264546275138855, -0.24278627336025238, 0.3681870400905609, -0.5873182415962219, 1.0390909910202026, 0.3907783329486847, -1.1373871564865112, 0.15773051977157593, -0.5187743306159973, -0.01560584269464016, -0.31154608726501465, 0.08254555612802505, -0.91212397813797, 0.03420409932732582, 0.2191627025604248, 0.71332848072052, -0.23914727568626404, -0.18692441284656525, -0.36379823088645935, 0.0550687275826931, 0.42940711975097656, 0.18054696917533875, 0.9332746863365173, 0.3185730278491974, -0.46379703283309937, -0.23054225742816925, -0.7475187182426453, 0.44879114627838135, 0.452592134475708, -0.018204135820269585, -0.0519789457321167, -0.807258129119873, 0.03633858636021614, 0.6037642359733582, 0.25268375873565674, -0.7178683280944824, 0.24969734251499176, -0.19087901711463928, 0.3392532169818878, 0.6450619697570801, 0.04402287304401398, 0.16979432106018066, -0.7372414469718933, 0.6147049069404602, -0.013622920028865337, 0.2818015217781067, -0.008899444714188576, -0.42077919840812683, -0.7746562361717224, -0.7635535001754761, 0.23886053264141083, 0.4362730383872986, -0.40118923783302307, 0.8960163593292236, 0.1508394032716751, -0.6265649795532227, -0.6480535268783569, 0.06362438946962357, 0.6064229607582092, 0.2562122642993927, 0.10492318868637085, -0.3735281825065613, -0.7537988424301147, -0.9877661466598511, -0.35284727811813354, 0.11587323993444443, -0.029549168422818184, 0.6850476264953613, 0.43921616673469543, -0.20431983470916748, 0.5350606441497803, -0.38270896673202515, -0.22743143141269684, -0.15279553830623627, -0.09156166017055511, 0.4618278741836548, 0.8203793168067932, 1.0525943040847778, -0.7402120232582092, -0.9560061097145081, 0.149068683385849, -1.1220959424972534, -0.08040527999401093, -0.0148252472281456, -0.27203622460365295, 0.4392273426055908, 0.23542380332946777, -0.8866795897483826, 0.7890832424163818, 0.37729018926620483, -0.822658121585846, 0.4628356099128723, -0.3428496718406677, 0.5829103589057922, -1.1100385189056396, 0.2728849947452545, 0.2957053482532501, -0.25242310762405396, -0.5867928266525269, 0.0713314637541771, -0.10213346034288406, 0.12770874798297882, -0.567395806312561, 0.795798122882843, -0.7227540016174316, -0.03816062584519386, 0.14538025856018066, 0.05907987430691719, -0.014404235407710075, 0.4522939622402191, -0.0627150610089302, 0.6038442254066467, 0.901789128780365, -0.1719350665807724, 0.32129108905792236, 0.4343423545360565, 0.06657783687114716, 0.7892489433288574, -0.6243541240692139, 0.13577665388584137, 0.029850579798221588, 0.45599234104156494, -1.0228543281555176, -0.40189945697784424, 0.5664804577827454, -0.8404112458229065, 0.6783101558685303, -0.2876526415348053, -0.30135491490364075, -0.8433598875999451, -0.8981049656867981, 0.2558152675628662, 0.6753739714622498, -0.6145935654640198, 0.3735730051994324, 0.2171487659215927, -0.04669829457998276, -0.494014173746109, -0.7167894244194031, 0.08504462242126465, -0.443160742521286, -0.8360137343406677, 0.45784473419189453, 0.3177932798862457, -0.18770161271095276, 0.09464520215988159, -0.14362749457359314, -0.1585310697555542, -0.2167925089597702, 0.6119738817214966, 0.34294605255126953, -0.3120550513267517, -0.42866912484169006, -0.39946430921554565, -0.29359036684036255, -0.07464785873889923, -0.11738354712724686, 0.5181750655174255, -0.4629795551300049, 0.0895538479089737, -1.4890137910842896, 0.12877285480499268, 0.9079494476318359, -0.02314571477472782, 1.0029834508895874, 0.7850267887115479, -0.4935792088508606, 0.19286997616291046, -0.46917974948883057, -0.21668539941310883, -0.5296949744224548, -0.24240419268608093, -0.7150996327400208, -0.5837407112121582, 0.9497576951980591, 0.06688656657934189, -0.1308281570672989, 0.797403872013092, 0.15571650862693787, -0.2528970241546631, 0.8520533442497253, 0.4884095788002014, -0.046255502849817276, 0.5757972598075867, -0.8478600978851318, 0.08680073171854019, -0.8418208360671997, -0.7497057914733887, -0.25914523005485535, -0.5769634246826172, -0.5939062833786011, -0.3435042202472687, 0.24680860340595245, 0.4029337167739868, -0.2695295512676239, 0.6114532947540283, -0.5732753276824951, 0.032445091754198074, 0.3365205228328705, 0.544776976108551, -0.22643283009529114, -0.12273411452770233, -0.13509027659893036, -0.3561086058616638, -0.5309282541275024, -0.3676907420158386, 0.7809885144233704, 0.6425372362136841, 0.4374583959579468, 0.10281533747911453, 0.6068212985992432, 0.05445946007966995, 0.20670051872730255, -0.3128560185432434, 0.6957032680511475, 0.05023416504263878, -0.4473034739494324, -0.33434683084487915, -0.41789576411247253, -1.0955674648284912, 0.16619078814983368, -0.46525341272354126, -0.8779235482215881, -0.1854795515537262, -0.04557213559746742, -0.3750084638595581, 0.7622296214103699, -0.6349403262138367, 0.6336153149604797, -0.07187481224536896, -0.5512399673461914, -0.03836448863148689, -0.8180722594261169, 0.07057636231184006, 0.3772851824760437, 0.04885995760560036, 0.004208880476653576, -0.041801419109106064, 0.8008001446723938, -0.8530416488647461, 0.6282704472541809, -0.35713884234428406, 0.14070327579975128, 0.4013266861438751, -0.03595024719834328, 0.40397414565086365, -0.019009370356798172, -0.204391211271286, -0.09543747454881668, 0.10830274224281311, -0.8431334495544434, -0.34241247177124023, 0.6701626181602478, -0.7572757005691528, -0.3959846496582031, -0.6622350811958313, -0.27124595642089844, 0.09383807331323624, 0.03309527784585953, 0.49727970361709595, 0.6636524796485901, -0.01709814742207527, 0.2223556488752365, 0.5344480872154236, -0.45129120349884033, 0.5211803913116455, -0.11803332716226578, 0.0017058139201253653, -0.5818360447883606, 0.7170667052268982, 0.06714534014463425, -0.010165059007704258, -0.014607558958232403, 0.021549833938479424, -0.42515048384666443, -0.23529000580310822, -0.3141709566116333, 0.7639827132225037, -0.16566282510757446, -0.3156369626522064, -0.6371176838874817, -0.36332473158836365, -0.5832111239433289, -0.4302668571472168, -0.45954790711402893, -0.3653245270252228, -0.3197667896747589, 0.032065022736787796, 0.734412670135498, 0.8997644186019897, -0.37165504693984985, 0.42589467763900757, -0.5378724932670593, 0.3022348880767822, 0.0694550946354866, 0.581487238407135, -0.341569185256958, -0.7046834230422974, 0.043646715581417084, -0.04143264517188072, -0.09368032217025757, -0.8714852333068848, 0.6781747341156006, 0.0019658380188047886, 0.38389331102371216, 0.41132652759552, -0.22894051671028137, 0.7555870413780212, -0.03155329078435898, 0.4676578938961029, 0.6342967748641968, -0.7302932739257812, 0.36163437366485596, -0.4439608156681061, 0.008591659367084503, 0.2845178246498108, 0.2118419110774994, -0.3970336616039276, -0.35383906960487366, -0.9083998203277588, -0.41669848561286926, 0.7570212483406067, 0.11395839601755142, -0.04557415470480919, -0.02218232862651348, 0.7532767057418823, -0.0652652159333229, 0.05442318692803383, -0.54145348072052, -0.9295174479484558, -0.11342783272266388, -0.15724870562553406, 0.06375834345817566, -0.04851396381855011, 0.041054949164390564, -0.6827160716056824, 0.6795891523361206, 0.07516811043024063, 0.5111385583877563, 0.17787188291549683, 0.05859948694705963, 0.044752515852451324, -0.3069203197956085, 0.6057098507881165, 0.36443835496902466, -0.1987432986497879, -0.1394929736852646, 0.37335366010665894, -0.5078422427177429, 0.09738120436668396, 0.23327399790287018, 0.003668088000267744, 0.0788080170750618, 0.07775580883026123, 0.5207949280738831, 0.34674036502838135, -0.05640871822834015, 0.5147116184234619, -0.2528280019760132, -0.5465329885482788, -0.228293314576149, -0.20780181884765625, 0.2616327106952667, 0.44295912981033325, 0.3272613286972046, 0.06767866760492325, -0.4064008593559265, -0.37860196828842163, 0.5415432453155518, 0.7353583574295044, -0.40020275115966797, -0.42142200469970703, 0.5986506342887878, -0.04528616741299629, -0.2362779825925827, 0.394664466381073, -0.10236427187919617, -0.7037144303321838, 1.045699119567871, 0.3672639727592468, 0.6319313645362854, -0.5097379088401794, 0.08896396309137344, 0.8753949403762817, -0.009222264401614666, 0.19786344468593597, 0.33937862515449524, 0.48448383808135986, -0.3382573127746582, -0.06840330362319946, -0.5466305613517761, 0.1789661943912506, 0.5195820331573486, -0.4311918020248413, 0.29291650652885437, -0.7477743625640869, -0.3669857680797577, 0.10000911355018616, 0.4978030323982239, -0.653621256351471, 0.3590865731239319, -0.035989854484796524, 1.0915781259536743, -0.840761661529541, 0.8587389588356018, 0.9236024022102356, -0.5748880505561829, -0.8777938485145569, -0.00570776266977191, 0.13929525017738342, -0.8869725465774536, 0.46214935183525085, 0.09967608749866486, 0.02256833389401436, -0.02183709666132927, -0.5137642025947571, -0.6944739818572998, 1.3874411582946777, 0.41882219910621643, -0.029910974204540253, 0.2837761640548706, -0.4444010853767395, 0.3872595727443695, -0.18240587413311005, 0.5917556881904602, 0.3909711539745331, 0.5207234621047974, 0.1643269807100296, -0.89401775598526, 0.3739641010761261, -0.44129809737205505, -0.12236461788415909, 0.32105332612991333, -1.3353517055511475, 0.9193676114082336, -0.23009032011032104, -0.04135048761963844, 0.2546025812625885, 0.6614222526550293, 0.3354988694190979, -0.03637704625725746, 0.25801801681518555, 0.9472718834877014, 0.5022263526916504, -0.2441018521785736, 1.0806277990341187, -0.22226491570472717, 0.5465053915977478, 0.21828442811965942, 0.5590053796768188, 0.3647787272930145, 0.3950335383415222, -0.5788249373435974, 0.2661197781562805, 0.8489359617233276, -0.042414359748363495, 0.12661811709403992, 0.29760029911994934, -0.40382519364356995, -0.19217124581336975, -0.22465203702449799, -0.7013183832168579, 0.218642458319664, 0.11785110831260681, -0.14732690155506134, -0.14698198437690735, -0.050169456750154495, 0.26054275035858154, 0.30248311161994934, -0.264525830745697, 0.5255600214004517, 0.08584142476320267, -0.40959975123405457, 0.4819185733795166, -0.01341074239462614, 1.0778824090957642, -0.35178342461586, 0.17228157818317413, -0.36723193526268005, 0.30177274346351624, -0.2444380521774292, -1.1021846532821655, 0.33976179361343384, -0.07662621885538101, 0.07221273332834244, -0.22888492047786713, 0.6743531227111816, -0.3410637378692627, -0.34749835729599, 0.4046197831630707, 0.4043992757797241, 0.5349990725517273, 0.30366942286491394, -1.1490956544876099, 0.27093642950057983, 0.08251731842756271, -0.6197107434272766, 0.4449175298213959, 0.5017756223678589, 0.38591405749320984, 0.7628936171531677, 0.3321940004825592, 0.31057822704315186, 0.21407319605350494, -0.3671562671661377, 0.7673622369766235, -0.6569637060165405, -0.46631237864494324, -0.8316001296043396, 0.5392020344734192, -0.4197917878627777, -0.538795530796051, 0.749426007270813, 0.5736256241798401, 0.3743155598640442, 0.021899087354540825, 0.6977694630622864, -0.5424866080284119, 0.5350691080093384, -0.2732694149017334, 0.7704964280128479, -0.6795461773872375, -0.2550990879535675, -0.20868192613124847, -0.6016829013824463, -0.41845980286598206, 0.8605791926383972, -0.12263870984315872, 0.2501755952835083, 0.30236950516700745, 0.6873124241828918, 0.07008589059114456, -0.1291016787290573, 0.006018197629600763, 0.18265697360038757, -0.14854711294174194, 0.8945738673210144, 0.5392860770225525, -0.7748122811317444, 0.052067533135414124, -0.47918012738227844, -0.30154481530189514, -0.36462876200675964, -0.7589407563209534, -1.2002390623092651, -0.6813666224479675, -0.5435230731964111, -0.6970445513725281, -0.24755334854125977, 1.2266862392425537, 0.8285211324691772, -0.6119264960289001, -0.15490631759166718, 0.1476307511329651, 0.09094678610563278, -0.15305307507514954, -0.21728196740150452, 0.5409584641456604, 0.09014767408370972, -1.0088212490081787, -0.41326093673706055, 0.14223097264766693, 0.6355229020118713, 0.4123345613479614, -0.4977627694606781, -0.23783431947231293, -0.060947250574827194, 0.33791351318359375, 0.876886785030365, -0.8146606683731079, -0.2883487939834595, 0.012032080441713333, -0.5016170144081116, 0.15140563249588013, 0.2995022237300873, -0.4484797716140747, -0.1315653920173645, 0.48965132236480713, 0.4087749719619751, 0.7468316555023193, 0.07941275835037231, 0.1720670610666275, -0.461863249540329, 0.5696262121200562, -0.02458813786506653, 0.35575011372566223, 0.2329011857509613, -0.2996692359447479, 0.7780762314796448, 0.550914466381073, -0.4057510793209076, -1.0340975522994995, -0.1707608699798584, -1.333061695098877, -0.05738786980509758, 0.6634393334388733, -0.08347427099943161, -0.4402347803115845, 0.42571038007736206, -0.46416157484054565, 0.541182816028595, -0.22133639454841614, 0.2642802596092224, 0.2420935034751892, -0.36335688829421997, -0.3603580892086029, -0.5685499310493469, 0.621583878993988, 0.3830436170101166, -0.6966648697853088, -0.40559831261634827, 0.002367608016356826, 0.3188830614089966, 0.19322162866592407, 0.7710320353507996, -0.40423059463500977, 0.13432221114635468, -0.11692242324352264, 0.24907827377319336, -0.007381062489002943, 0.16513016819953918, -0.31574344635009766, -0.14425553381443024, -0.2258814424276352, -0.6622427105903625 ]
microsoft/GODEL-v1_1-large-seq2seq
microsoft
"2023-01-24T17:19:09Z"
13,919
81
transformers
[ "transformers", "pytorch", "t5", "text2text-generation", "conversational", "arxiv:2206.11309", "license:mit", "autotrain_compatible", "endpoints_compatible", "has_space", "text-generation-inference", "region:us" ]
conversational
"2022-10-19T00:14:10Z"
--- thumbnail: https://huggingface.co/front/thumbnails/dialogpt.png tags: - conversational license: mit --- ### Large-Scale Pre-Training for Goal-Directed Dialog (GODEL) GODEL is a large-scale pre-trained model for goal-directed dialogs. It is parameterized with a Transformer-based encoder-decoder model and trained for response generation grounded in external text, which allows more effective fine-tuning on dialog tasks that require conditioning the response on information that is external to the current conversation (e.g., a retrieved document). The pre-trained model can be efficiently fine-tuned and adapted to accomplish a new dialog task with a handful of task-specific dialogs. The v1.1 model is trained on 551M multi-turn dialogs from Reddit discussion thread, and 5M instruction and knowledge grounded dialogs. ##### Multi-turn generation examples from an interactive environment: Chitchat example: > Instruction: given a dialog context, you need to response empathically. <br> > User: Does money buy happiness? <br> > Agent: It is a question. Money buys you a lot of things, but not enough to buy happiness. <br> > User: What is the best way to buy happiness ? <br> > Agent: Happiness is bought through your experience and not money. <br> Grounded response generation example: > Instruction: given a dialog context and related knowledge, you need to response safely based on the knowledge. <br> > Knowledge: The best Stardew Valley mods PCGamesN_0 / About SMAPI <br> > User: My favorite game is stardew valley. stardew valley is very fun. <br> > Agent: I love Stardew Valley mods, like PCGamesN_0 / About SMAPI. <br> Please find the information about preprocessing, training and full details of the GODEL in the [project webpage](https://aka.ms/GODEL). ArXiv paper: [https://arxiv.org/abs/2206.11309](https://arxiv.org/abs/2206.11309) ### How to use Now we are ready to try out how the model works as a chatting partner! ```python from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("microsoft/GODEL-v1_1-large-seq2seq") model = AutoModelForSeq2SeqLM.from_pretrained("microsoft/GODEL-v1_1-large-seq2seq") def generate(instruction, knowledge, dialog): if knowledge != '': knowledge = '[KNOWLEDGE] ' + knowledge dialog = ' EOS '.join(dialog) query = f"{instruction} [CONTEXT] {dialog} {knowledge}" input_ids = tokenizer(f"{query}", return_tensors="pt").input_ids outputs = model.generate(input_ids, max_length=128, min_length=8, top_p=0.9, do_sample=True) output = tokenizer.decode(outputs[0], skip_special_tokens=True) return output # Instruction for a chitchat task instruction = f'Instruction: given a dialog context, you need to response empathically.' # Leave the knowldge empty knowledge = '' dialog = [ 'Does money buy happiness?', 'It is a question. Money buys you a lot of things, but not enough to buy happiness.', 'What is the best way to buy happiness ?' ] response = generate(instruction, knowledge, dialog) print(response) ``` ### Citation if you use this code and data in your research, please cite our arxiv paper: ``` @misc{peng2022godel, author = {Peng, Baolin and Galley, Michel and He, Pengcheng and Brockett, Chris and Liden, Lars and Nouri, Elnaz and Yu, Zhou and Dolan, Bill and Gao, Jianfeng}, title = {GODEL: Large-Scale Pre-training for Goal-Directed Dialog}, howpublished = {arXiv}, year = {2022}, month = {June}, url = {https://www.microsoft.com/en-us/research/publication/godel-large-scale-pre-training-for-goal-directed-dialog/}, } ```
[ -0.3456929922103882, -0.9254812002182007, 0.3874363303184509, -0.07384662330150604, -0.0032341000624001026, -0.18863844871520996, -0.13259191811084747, -0.29941803216934204, 0.06934790313243866, 0.13378021121025085, -0.7435788512229919, -0.3862183392047882, -0.4541900157928467, -0.050403766334056854, 0.02483391761779785, 1.075051188468933, 0.18528799712657928, 0.2061072438955307, -0.07636059820652008, 0.1337856501340866, -0.1968763768672943, -0.6281634569168091, -1.0477644205093384, -0.3581355810165405, 0.22400204837322235, 0.14740169048309326, 0.5416327118873596, 0.18852446973323822, 0.37397339940071106, 0.4818722605705261, -0.03677443042397499, 0.12035498768091202, -0.7621331214904785, 0.12038416415452957, -0.08053754270076752, -0.4174249470233917, -0.6431071162223816, 0.14708204567432404, 0.16622492671012878, 0.3082922101020813, -0.03468729555606842, 0.29800087213516235, 0.20851050317287445, 0.2381254881620407, -0.4923229515552521, 0.28199973702430725, -0.392531156539917, 0.12237118929624557, 0.31435659527778625, -0.29834288358688354, -0.2236294001340866, -0.3343946635723114, 0.37550848722457886, -0.6793357729911804, 0.11082152277231216, 0.22383031249046326, 0.9888794422149658, 0.2817085087299347, -0.17957401275634766, -0.5137877464294434, -0.45116060972213745, 1.096373200416565, -0.8687527775764465, 0.3069738745689392, 0.722533106803894, 0.36180901527404785, -0.2906172573566437, -0.5759420394897461, -0.5047681331634521, -0.2103765457868576, -0.04241510108113289, 0.292385071516037, -0.299471914768219, 0.19767282903194427, 0.44498324394226074, 0.3638339340686798, -0.4840483069419861, -0.27977898716926575, -0.34578338265419006, -0.2680699825286865, 0.6307315230369568, 0.21387819945812225, 0.19393640756607056, -0.1569284200668335, -0.1738329827785492, -0.2698032259941101, -0.3698887526988983, 0.2857261300086975, 0.20399799942970276, -0.06399130076169968, -0.25048020482063293, 0.24893547594547272, -0.060440316796302795, 0.8075576424598694, 0.4813801944255829, -0.3423343896865845, 0.2896052896976471, -0.4625720977783203, -0.5414527058601379, -0.23487119376659393, 1.1359978914260864, 0.49167779088020325, 0.3300681710243225, 0.08136314898729324, 0.07931169867515564, -0.2352629005908966, 0.307937353849411, -1.0448189973831177, -0.09309577941894531, 0.35513606667518616, -0.7040964365005493, -0.4130007028579712, -0.15355056524276733, -0.7261990308761597, -0.015420633368194103, -0.19553101062774658, 0.44683343172073364, -0.57697993516922, -0.31963109970092773, 0.04856588691473007, -0.045806486159563065, 0.41800013184547424, 0.2191002070903778, -0.9071080088615417, 0.08755958080291748, 0.46326324343681335, 0.5721189379692078, 0.4101640582084656, -0.382502019405365, -0.6859339475631714, -0.19833002984523773, -0.40901464223861694, 0.45813795924186707, -0.6983489990234375, -0.2617773711681366, 0.04223320633172989, 0.09665782004594803, -0.20385663211345673, -0.4529145658016205, 0.2643226981163025, -0.41676729917526245, 0.6423733234405518, -0.426661878824234, -0.7199658155441284, -0.12220831215381622, 0.5359030365943909, -0.043787289410829544, 0.711546778678894, 0.2612619698047638, -0.7890914678573608, 0.14623071253299713, -0.8845535516738892, -0.15210948884487152, -0.20490770041942596, -0.3526494801044464, -0.16673003137111664, 0.041357845067977905, 0.1292409896850586, 0.5666879415512085, -0.4597793221473694, 0.25904580950737, -0.14810867607593536, -0.10810891538858414, 0.4328347146511078, -0.2297116070985794, 0.8564687371253967, 0.328771710395813, -0.5686150193214417, 0.29711878299713135, -0.6344181299209595, 0.2527967393398285, 0.17735539376735687, -0.07262614369392395, -0.0400528647005558, 0.08195653557777405, -0.26329270005226135, 0.4061488211154938, 0.17492957413196564, -0.6475155353546143, -0.06942971050739288, -0.5515445470809937, 0.5548129677772522, 0.6267521381378174, 0.05286170542240143, 0.32280853390693665, -0.21975387632846832, 0.4402962028980255, 0.007554308045655489, 0.5218934416770935, -0.3274935185909271, -0.4334976375102997, -0.8660131692886353, -0.06735724955797195, 0.044691529124975204, 0.6544892191886902, -0.7810378670692444, 0.9458604454994202, 0.05792276933789253, -0.41129404306411743, -0.5968528985977173, -0.10027924925088882, 0.655352771282196, 0.5795340538024902, 0.42259088158607483, -0.18969827890396118, -0.43017977476119995, -0.9340327978134155, -0.01282515563070774, -0.14646433293819427, -0.2528867721557617, 0.5027164816856384, 0.5588999390602112, -0.21009373664855957, 0.9366649389266968, -0.7309959530830383, -0.23021991550922394, -0.3375122547149658, 0.13115598261356354, 0.0874018743634224, 0.6362860202789307, 0.5594509243965149, -0.684097945690155, -0.6215794086456299, -0.2901504933834076, -0.9058138728141785, 0.14259687066078186, -0.08965518325567245, -0.2992183566093445, 0.068818099796772, 0.5234744548797607, -0.47987475991249084, 0.5869998931884766, 0.46502017974853516, -0.4855899512767792, 0.5387112498283386, -0.16284218430519104, 0.5097118020057678, -1.42281973361969, -0.03043195977807045, -0.1836317479610443, -0.16784967482089996, -0.8645240664482117, -0.07626380026340485, -0.28570255637168884, -0.143294095993042, -0.4715859591960907, 0.38102731108665466, -0.2945159375667572, 0.2164754569530487, -0.27276545763015747, -0.1405501365661621, -0.28386935591697693, 0.8098597526550293, 0.07032428681850433, 0.7849984169006348, 0.7968835234642029, -0.5298144817352295, 0.4769127070903778, 0.5807297825813293, -0.029751567170023918, 0.877372145652771, -1.004587173461914, 0.28837522864341736, -0.022115929052233696, 0.2932846248149872, -1.108258843421936, -0.17547611892223358, 0.47305822372436523, -0.7348426580429077, 0.24440614879131317, -0.0026293164119124413, -0.19873563945293427, -0.47035911679267883, -0.23481619358062744, 0.25707900524139404, 0.700125515460968, -0.4139077961444855, 0.6076896786689758, 0.20656371116638184, 0.09103680402040482, -0.4764579236507416, -0.5336546897888184, -0.0462171770632267, -0.1141376867890358, -0.6435067653656006, 0.006376755889505148, -0.5269332528114319, 0.022760596126317978, -0.21814221143722534, -0.10639957338571548, -0.022679626941680908, -0.1713065803050995, 0.2852243483066559, 0.11527975648641586, -0.08616306632757187, -0.08390359580516815, -0.23423266410827637, -0.30987030267715454, 0.20212066173553467, -0.3372630476951599, 0.7188805341720581, -0.3915433883666992, -0.34002384543418884, -0.6120429039001465, 0.5416966676712036, 0.3680468797683716, -0.21302290260791779, 0.9082277417182922, 0.6833879947662354, -0.3505036532878876, 0.07473081350326538, -0.6701180934906006, -0.43609166145324707, -0.5214515924453735, 0.3485206067562103, -0.48909634351730347, -1.03199303150177, 0.5392075181007385, 0.1311025172472, 0.20122143626213074, 0.39050087332725525, 0.4889461100101471, -0.05168550834059715, 1.0415360927581787, 0.5526295900344849, -0.06587352603673935, 0.36056777834892273, -0.5000964403152466, 0.4166997969150543, -0.6767177581787109, -0.062291283160448074, -0.3906277120113373, -0.27454012632369995, -0.36460691690444946, -0.45722076296806335, 0.2276441603899002, 0.02457139641046524, -0.5100840330123901, 0.3102896809577942, -0.43837279081344604, 0.37879323959350586, 0.640402615070343, 0.08390732854604721, -0.17766012251377106, -0.02425418421626091, -0.1195935606956482, -0.17935213446617126, -0.8770247101783752, -0.4910144805908203, 1.042850136756897, 0.4321446120738983, 0.7212710380554199, -0.22960591316223145, 0.9338093400001526, -0.03719763830304146, 0.1401691883802414, -0.7152194976806641, 0.6807733178138733, 0.2160252332687378, -0.5678099393844604, -0.4498898983001709, -0.6180738806724548, -0.8269928693771362, 0.019199050962924957, -0.18326762318611145, -0.8314149975776672, 0.04565409943461418, 0.3134298324584961, -0.6369306445121765, 0.3319595456123352, -0.7989822030067444, 1.0325663089752197, -0.28663259744644165, -0.45620694756507874, -0.2504332661628723, -0.7640764713287354, -0.04586753621697426, 0.1557437777519226, -0.08008212596178055, 0.18056964874267578, 0.3682979643344879, 0.8648360371589661, -0.41901057958602905, 0.9947505593299866, -0.3094952702522278, -0.1073327288031578, 0.40784159302711487, 0.09026618301868439, 0.4468091130256653, -0.14335960149765015, 0.24271497130393982, 0.08802004903554916, 0.010141363367438316, -0.40565061569213867, -0.5420910716056824, 0.5477783679962158, -0.977520227432251, -0.6027964949607849, -0.3489910662174225, -0.4741525948047638, -0.15700781345367432, 0.2233934998512268, 0.5053960680961609, 0.5265100002288818, -0.43521350622177124, 0.23788630962371826, 0.661496639251709, -0.5916081666946411, 0.3575165867805481, 0.4798009991645813, -0.0183425210416317, -0.538695216178894, 0.8384570479393005, 0.020958933979272842, 0.4260108768939972, 0.29245394468307495, 0.2713755965232849, -0.22424404323101044, -0.1360114961862564, -0.15807488560676575, 0.22737376391887665, -0.45737019181251526, -0.1754215657711029, -0.7323854565620422, -0.4936307966709137, -0.5201572775840759, -0.26522311568260193, -0.4755990505218506, 0.04288534075021744, -0.2754923105239868, -0.041935503482818604, 0.1458379477262497, 0.7375829815864563, -0.09476067125797272, 0.32266634702682495, -0.7325072288513184, 0.2341039627790451, 0.7215794920921326, 0.2917882800102234, 0.19542771577835083, -0.4689193367958069, -0.17959712445735931, 0.3832157850265503, -0.4498773217201233, -0.8368738889694214, 0.3104097843170166, 0.16983890533447266, 0.6479044556617737, 0.7338390350341797, 0.07328992336988449, 0.7137811183929443, -0.5946673154830933, 0.9719187617301941, 0.46214044094085693, -0.8718947768211365, 0.5942487716674805, -0.4654635787010193, 0.3442489504814148, 0.48033660650253296, 0.5543125867843628, -0.5853545665740967, -0.3136143982410431, -0.9000362157821655, -0.5828747749328613, 0.9036431908607483, 0.4019489586353302, 0.1142413467168808, -0.1748923510313034, 0.11792632192373276, -0.016746118664741516, 0.4769992232322693, -0.4961746335029602, -0.3130614459514618, -0.5460339784622192, -0.2641400396823883, -0.1795388013124466, -0.4430020749568939, -0.35359740257263184, -0.4227074086666107, 0.7004282474517822, -0.13729390501976013, 0.8215717673301697, 0.39951109886169434, -0.07818257808685303, -0.12052468210458755, 0.38627079129219055, 0.7040858864784241, 0.8723375797271729, -0.35513070225715637, -0.037212859839200974, 0.24300557374954224, -0.3466590344905853, 0.09333816170692444, 0.01165443379431963, 0.15641853213310242, -0.41047489643096924, 0.3379986584186554, 0.9833492636680603, 0.03812985494732857, -0.390669584274292, 0.5598030090332031, -0.13292726874351501, -0.642911434173584, -0.351642370223999, 0.20855386555194855, 0.11274202913045883, 0.5144604444503784, 0.3446381092071533, -0.07443321496248245, 0.01584598980844021, -0.46079590916633606, 0.05625821277499199, 0.3743267059326172, -0.4333731532096863, -0.44184285402297974, 0.7091058492660522, 0.4186919927597046, -0.553530752658844, 0.6419770121574402, -0.46897536516189575, -0.7728779911994934, 0.4481459856033325, 0.6308653950691223, 1.1723893880844116, -0.27912524342536926, 0.36381426453590393, 0.5963587164878845, 0.16297286748886108, 0.13659101724624634, 0.32501235604286194, -0.2756246328353882, -0.774005115032196, -0.3205615282058716, -0.6073310971260071, -0.14981696009635925, 0.436471164226532, -0.4028843343257904, -0.2757966220378876, -0.35936570167541504, -0.3275619447231293, -0.22354060411453247, -0.014058450236916542, -0.8622713088989258, 0.14986629784107208, 0.03187461942434311, 0.7805453538894653, -0.8007143139839172, 0.4081840515136719, 0.6843113303184509, -0.4183316230773926, -0.8430871963500977, 0.07607821375131607, 0.08508320152759552, -0.7609699368476868, 0.6401388645172119, 0.22863498330116272, -0.03422480821609497, 0.08268751204013824, -0.7598199844360352, -0.747489333152771, 0.9800910949707031, 0.09038566052913666, -0.5821385979652405, -0.021775249391794205, 0.2357444316148758, 0.6608129739761353, -0.6371586918830872, 0.6844813227653503, 0.4804844260215759, 0.34798556566238403, 0.23634196817874908, -1.0057690143585205, 0.1423918455839157, -0.4020923376083374, 0.013042828068137169, -0.05550388991832733, -0.8068649172782898, 0.6447011828422546, -0.11873931437730789, 0.047635868191719055, -0.01979326456785202, 0.6575664281845093, 0.05962096527218819, 0.08904748409986496, 0.752611517906189, 0.6406171321868896, 0.535510778427124, 0.0038248717319220304, 0.798744261264801, -0.5518643260002136, 0.38823002576828003, 0.9655591249465942, -0.029755162075161934, 0.6747503280639648, 0.3050922155380249, -0.1910538375377655, 0.30303865671157837, 0.6610679626464844, 0.0550139844417572, 0.3481740355491638, 0.2156440019607544, -0.08492697775363922, -0.4276154935359955, 0.07759512215852737, -0.4814138114452362, 0.33892297744750977, 0.22011764347553253, -0.42807769775390625, -0.2800804376602173, 0.13306696712970734, 0.22298450767993927, -0.309466689825058, -0.07019773125648499, 0.8432220220565796, 0.08446420729160309, -0.8685125112533569, 0.9564923048019409, -0.37295347452163696, 0.7913591861724854, -0.9606718420982361, -0.001675962470471859, -0.16587278246879578, 0.2980940341949463, -0.18203000724315643, -0.4421926438808441, 0.04893726482987404, 0.009380241855978966, -0.1627977192401886, -0.2511579692363739, 0.6876035928726196, -0.5766977071762085, -0.26255905628204346, 0.2945450246334076, 0.5306901335716248, 0.42952921986579895, -0.08880266547203064, -1.1136029958724976, -0.15952415764331818, 0.3358168303966522, -0.4945656359195709, 0.28010958433151245, 0.23859578371047974, 0.2271099090576172, 0.538851797580719, 0.6174576282501221, -0.20250758528709412, -0.1071385070681572, 0.058194849640131, 0.961535632610321, -0.6871393918991089, -0.6576336026191711, -0.7196859121322632, 0.4931289851665497, -0.30089348554611206, -0.30662795901298523, 0.909752607345581, 0.3654884099960327, 0.6379635334014893, -0.19037574529647827, 0.749782919883728, -0.3981006145477295, 0.4046056866645813, -0.1598297655582428, 0.7431332468986511, -0.5243971347808838, -0.16753911972045898, -0.3894084393978119, -1.0205473899841309, 0.20244629681110382, 1.0155766010284424, -0.5099419951438904, 0.3122454285621643, 0.8052350878715515, 0.9851557612419128, -0.13564765453338623, 0.06446092575788498, 0.43189385533332825, 0.38956356048583984, 0.48940396308898926, 0.8567892909049988, 0.8359168767929077, -0.4739341139793396, 0.5659768581390381, 0.047064997255802155, -0.5817185044288635, -0.06037849560379982, -0.7157450914382935, -1.3918256759643555, -0.6379261612892151, -0.26802003383636475, -0.41643384099006653, 0.05618033930659294, 1.1214659214019775, 0.9295367002487183, -0.8775151371955872, -0.35855957865715027, -0.08866501599550247, -0.29725706577301025, -0.19738434255123138, -0.21122990548610687, 0.38455450534820557, -0.5851384401321411, -0.615422248840332, 0.3253525495529175, 0.04646783322095871, 0.21790674328804016, -0.26747259497642517, -0.19643095135688782, -0.33253908157348633, 0.1361462026834488, 0.6439321637153625, 0.26493212580680847, -0.45326438546180725, -0.3407352566719055, 0.3174155354499817, 0.08948200941085815, 0.0019550942815840244, 0.6071060299873352, -0.42915332317352295, 0.4783204197883606, 0.4814232885837555, 0.5403714179992676, 0.4704032242298126, -0.03753984346985817, 0.7661564946174622, -0.5729124546051025, 0.09429404884576797, 0.044529132544994354, 0.06398617476224899, 0.15680228173732758, -0.2794373035430908, 0.4549114406108856, 0.10884708166122437, -0.9165480732917786, -0.40374407172203064, 0.27378952503204346, -0.625782310962677, -0.26148679852485657, 1.1670846939086914, -0.2945157289505005, -0.33217939734458923, -0.0744875818490982, -0.5278794765472412, 0.23045159876346588, -0.5240817666053772, 0.6570595502853394, 0.7886129021644592, -0.15526598691940308, -0.08738699555397034, -0.46925899386405945, 0.7938780784606934, 0.5148244500160217, -0.7306345105171204, -0.027172759175300598, 0.5862812399864197, 0.26573511958122253, 0.39457374811172485, 0.9076224565505981, 0.1548956334590912, 0.1666867434978485, 0.010973786003887653, 0.09065420180559158, -0.2062981277704239, -0.1365983784198761, 0.007248338311910629, 0.13204117119312286, -0.2568375766277313, -0.40727782249450684 ]
yikuan8/Clinical-Longformer
yikuan8
"2023-01-24T20:58:27Z"
13,912
35
transformers
[ "transformers", "pytorch", "longformer", "fill-mask", "clinical", "en", "arxiv:2201.11838", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
fill-mask
"2022-03-02T23:29:05Z"
--- language: "en" tags: - longformer - clinical --- <span style="font-size:larger;">**Clinical-Longformer**</span> is a clinical knowledge enriched version of Longformer that was further pre-trained using MIMIC-III clinical notes. It allows up to 4,096 tokens as the model input. Clinical-Longformer consistently out-performs ClinicalBERT across 10 baseline dataset for at least 2 percent. Those downstream experiments broadly cover named entity recognition (NER), question answering (QA), natural language inference (NLI) and text classification tasks. For more details, please refer to [our paper](https://arxiv.org/pdf/2201.11838.pdf). We also provide a sister model at [Clinical-BigBIrd](https://huggingface.co/yikuan8/Clinical-BigBird) ### Pre-training We initialized Clinical-Longformer from the pre-trained weights of the base version of Longformer. The pre-training process was distributed in parallel to 6 32GB Tesla V100 GPUs. FP16 precision was enabled to accelerate training. We pre-trained Clinical-Longformer for 200,000 steps with batch size of 6×3. The learning rates were 3e-5 for both models. The entire pre-training process took more than 2 weeks. ### Usage Load the model directly from Transformers: ``` from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("yikuan8/Clinical-Longformer") model = AutoModelForMaskedLM.from_pretrained("yikuan8/Clinical-Longformer") ``` ### Citing If you find our model helps, please consider citing this :) ``` @article{li2023comparative, title={A comparative study of pretrained language models for long clinical text}, author={Li, Yikuan and Wehbe, Ramsey M and Ahmad, Faraz S and Wang, Hanyin and Luo, Yuan}, journal={Journal of the American Medical Informatics Association}, volume={30}, number={2}, pages={340--347}, year={2023}, publisher={Oxford University Press} } ``` ### Questions Please email yikuanli2018@u.northwestern.edu
[ 0.07728425413370132, -0.5779057741165161, 0.6783947348594666, 0.23516979813575745, -0.25290533900260925, -0.13900649547576904, -0.3369458317756653, -0.7270134091377258, 0.36869776248931885, 0.4942094683647156, -0.4584943652153015, -0.5211185812950134, -0.8426536917686462, 0.27252891659736633, -0.1434812694787979, 1.1353981494903564, -0.22705699503421783, 0.298732191324234, -0.1449918895959854, -0.046824537217617035, -0.22121171653270721, -0.6167075037956238, -0.6826345920562744, -0.3748241662979126, 0.7268339991569519, -0.017173752188682556, 0.4996007978916168, 0.7549335360527039, 0.6806726455688477, 0.29840174317359924, 0.08713877201080322, -0.22080662846565247, -0.5986401438713074, -0.1375381350517273, 0.25754669308662415, -0.4542669653892517, -0.9790258407592773, -0.12210243940353394, 0.5518468022346497, 0.707364559173584, -0.2106010466814041, 0.04452786222100258, 0.0748349279165268, 0.6478511691093445, -0.511065661907196, 0.2516855299472809, -0.1295793056488037, 0.05630411580204964, -0.4827052056789398, 0.18555878102779388, -0.3775438070297241, -0.21473687887191772, 0.1648431122303009, -0.7690034508705139, 0.21806107461452484, -0.045635733753442764, 0.8557906150817871, 0.15971745550632477, -0.5080586075782776, -0.3722153604030609, -0.674066424369812, 0.747721254825592, -0.7820519208908081, 0.49969860911369324, 0.4837039113044739, 0.4863588213920593, -0.1330837458372116, -1.2807621955871582, -0.623996913433075, -0.5195009112358093, -0.23616646230220795, 0.36537083983421326, -0.17869101464748383, 0.40876105427742004, 0.5126917362213135, 0.3678046762943268, -0.8874094486236572, 0.41802874207496643, -0.7389256954193115, -0.2568023204803467, 0.6093909740447998, 0.06596215069293976, 0.07109439373016357, -0.20776493847370148, -0.41406092047691345, -0.10776674747467041, -0.4700183570384979, 0.20588098466396332, -0.09839554876089096, 0.10961899906396866, -0.21630772948265076, 0.2780522406101227, -0.11264670640230179, 0.6329653859138489, 0.08982041478157043, -0.24136467278003693, 0.6309537291526794, -0.18916884064674377, -0.45848017930984497, 0.12329006940126419, 1.2943191528320312, 0.1419954150915146, 0.1485500931739807, 0.034976694732904434, -0.15859363973140717, -0.05939626693725586, 0.4244706630706787, -0.9461241364479065, -0.21057385206222534, 0.39931657910346985, -0.6429914832115173, -0.23389214277267456, 0.10363417118787766, -0.5520467162132263, -0.11495549976825714, -0.39004039764404297, 0.7072117328643799, -0.5318307876586914, -0.009482279419898987, 0.3828054964542389, 0.1858687549829483, 0.03952743113040924, 0.2686883509159088, -0.6009278893470764, 0.5937709808349609, 0.4855363965034485, 0.5850846171379089, -0.3135487735271454, -0.43578365445137024, -0.35405176877975464, -0.0017826813273131847, -0.1988074779510498, 0.49010735750198364, -0.023379463702440262, -0.38372623920440674, 0.07029546052217484, 0.3721553087234497, -0.3051465153694153, -0.5866948962211609, 0.643987774848938, -0.31716248393058777, 0.5883266925811768, -0.0830327644944191, -0.7124700546264648, 0.19108830392360687, 0.04867203161120415, -0.8047118782997131, 0.9335439801216125, 0.38580891489982605, -0.4815232455730438, 0.5263945460319519, -0.7385300993919373, -0.3541150689125061, 0.1448708176612854, -0.13690093159675598, -0.7294527888298035, -0.09495614469051361, 0.33324235677719116, 0.5204648375511169, -0.22370187938213348, 0.3843241035938263, -0.32486429810523987, -0.45198026299476624, 0.022521870210766792, -0.1068439930677414, 0.4983507990837097, 0.08033071458339691, -0.37912002205848694, 0.17526701092720032, -1.1028021574020386, 0.04726376757025719, 0.29382050037384033, -0.08045106381177902, -0.06740278750658035, -0.46539005637168884, 0.10946553945541382, 0.41841137409210205, 0.22880247235298157, -0.5308989882469177, 0.16079765558242798, -0.3922954201698303, 0.3481382727622986, 0.24607709050178528, -0.18105091154575348, 0.04507708549499512, -0.5796195268630981, 0.6659113168716431, 0.16160665452480316, 0.5087150931358337, -0.08108199387788773, -0.05223032832145691, -0.8933024406433105, -0.4946483373641968, 0.268825888633728, 0.3283099830150604, -0.4005536139011383, 0.5683953166007996, -0.4027774930000305, -0.5547704696655273, -0.8311110734939575, 0.10172250866889954, 0.6772856712341309, 0.4818877577781677, 0.8289511203765869, -0.1725495308637619, -0.492378294467926, -0.9488590955734253, 0.010370001196861267, 0.031080950051546097, 0.028510689735412598, 0.004838335793465376, 0.596990704536438, -0.44458961486816406, 0.5743992328643799, -0.4457869231700897, -0.6294354796409607, -0.5556842684745789, 0.048436786979436874, 0.46463921666145325, 0.5258200168609619, 0.5867359042167664, -0.33577489852905273, -0.5964371562004089, -0.2669616937637329, -0.7027839422225952, 0.09251533448696136, -0.16905830800533295, -0.07940372824668884, 0.14606937766075134, 0.7498908042907715, -0.8288674354553223, 0.635830283164978, 0.49033811688423157, -0.0023038648068904877, 0.5896807909011841, -0.49350252747535706, -0.017968354746699333, -1.1858962774276733, 0.3097550868988037, -0.2688644826412201, -0.23065602779388428, -0.6505679488182068, -0.13179634511470795, 0.24003756046295166, -0.014582441188395023, -0.2964824140071869, 0.5562412738800049, -0.47945746779441833, 0.46595457196235657, -0.34944865107536316, -0.008891391567885876, 0.1788359433412552, 0.26164495944976807, 0.17157353460788727, 0.6250464916229248, 0.4815963804721832, -0.48423948884010315, 0.2133941501379013, 0.31898340582847595, -0.20962777733802795, 0.167582169175148, -1.1229032278060913, 0.10619945824146271, -0.14016801118850708, 0.6097375750541687, -0.6933254599571228, -0.3512209355831146, 0.07601242512464523, -0.36017510294914246, 0.505248486995697, -0.12460305541753769, -0.4123101234436035, -0.7932294011116028, -0.2194375991821289, 0.5861192941665649, 0.5541134476661682, -0.3356321156024933, 0.36984941363334656, -0.13951613008975983, -0.16862988471984863, -0.5289783477783203, -0.561636745929718, -0.1585441678762436, 0.01927671767771244, -0.38233569264411926, 0.45456409454345703, -0.057233527302742004, 0.19444045424461365, -0.3503076732158661, 0.18017980456352234, -0.0642438754439354, -0.20650121569633484, 0.36545518040657043, 0.28975623846054077, -0.5404595732688904, 0.4118042588233948, 0.12910202145576477, -0.2554365396499634, 0.25911861658096313, -0.11374200135469437, 0.608662486076355, 0.06323856115341187, -0.593266487121582, -0.928581178188324, 0.41425955295562744, 0.7190254330635071, -0.2756054997444153, 0.9716249704360962, 0.6090746521949768, -0.4026664197444916, 0.060437895357608795, -0.7967710494995117, -0.1334741711616516, -0.44787898659706116, 0.7460026144981384, -0.16482803225517273, -0.6271857023239136, 0.3778843879699707, 0.25616323947906494, -0.21326832473278046, 0.7548960447311401, 0.2662333846092224, -0.04514458030462265, 0.9782397747039795, 0.5845069289207458, -0.03910258412361145, 0.18335221707820892, -0.26127415895462036, 0.048615142703056335, -0.6119159460067749, -0.30858007073402405, -0.2751721739768982, -0.04676833748817444, -0.49632060527801514, -0.3033183217048645, 0.3389033377170563, 0.08161256462335587, -0.4041895270347595, 0.11024187505245209, -0.3639557659626007, 0.1210019513964653, 0.3061850666999817, 0.38284406065940857, 0.14693771302700043, -0.31615975499153137, 0.08556859940290451, -0.08259088546037674, -0.6583894491195679, -0.37974604964256287, 1.3685847520828247, 0.7115002870559692, 0.6121536493301392, -0.0574113130569458, 0.9170653820037842, -0.09896931052207947, 0.426459401845932, -0.8491895198822021, 0.16702672839164734, -0.22845672070980072, -0.49539005756378174, -0.16697266697883606, -0.26221469044685364, -1.1231694221496582, -0.21127663552761078, -0.3681233823299408, -0.3453567922115326, -0.04282516986131668, 0.25722095370292664, -0.6957917213439941, -0.018413159996271133, -0.4759804606437683, 1.0584132671356201, -0.49369704723358154, -0.1298249214887619, -0.10444014519453049, -0.8557218909263611, 0.21749544143676758, -0.3425082564353943, 0.027995601296424866, 0.40077242255210876, 0.21827039122581482, 0.9375616312026978, -0.7204617261886597, 0.7689935564994812, -0.16683043539524078, 0.13664190471172333, -0.14840644598007202, -0.34850263595581055, 0.4089606702327728, -0.0020164544694125652, 0.052485816180706024, 0.07016946375370026, 0.2968350052833557, -0.6296685338020325, -0.70488440990448, 0.3360579013824463, -1.0453656911849976, -0.4392947256565094, -0.8020278811454773, -0.11447422206401825, -0.15557585656642914, 0.49897515773773193, 0.5670470595359802, 0.6500228643417358, -0.3557076156139374, 0.25639939308166504, 0.486270546913147, -0.2748517096042633, 0.1825895756483078, 0.4399566948413849, -0.3187021315097809, -0.5434166789054871, 0.35986703634262085, -0.026800524443387985, 0.4385761022567749, 0.40403860807418823, 0.1474762111902237, -0.3175532817840576, -0.8207451701164246, -0.01831263117492199, 0.8820849657058716, -0.4016738533973694, 0.031376682221889496, -0.9536871314048767, -0.7717009782791138, -0.5940528512001038, 0.05599908530712128, -0.4386199116706848, -0.12950681149959564, -0.4713565409183502, -0.039549387991428375, 0.121860571205616, 0.959322988986969, 0.28977933526039124, 0.7137674689292908, -0.8394231796264648, 0.14729422330856323, 0.11374939978122711, 0.338961660861969, -0.05180849879980087, -0.7452704310417175, -0.41797393560409546, 0.13524746894836426, -0.30752965807914734, -0.5281453728675842, 0.45120540261268616, 0.2628842294216156, 0.6024975776672363, 0.5505346059799194, 0.02404686249792576, 1.0992590188980103, -0.5569568276405334, 0.7881448268890381, 0.37742024660110474, -0.6470423340797424, 0.5280300974845886, -0.13630537688732147, 0.3543913960456848, 0.7548677325248718, 0.804256021976471, -0.32846152782440186, -0.18122130632400513, -0.6315267086029053, -0.705538272857666, 0.6428983807563782, 0.12599506974220276, -0.04117360711097717, -0.1386270821094513, 0.4783210754394531, 0.30071908235549927, 0.025455357506871223, -0.9050489068031311, -0.18792535364627838, -0.3803459405899048, -0.3974272310733795, -0.5641670227050781, -0.494496613740921, -0.12529747188091278, -0.4581369459629059, 0.6081270575523376, -0.13089899718761444, 0.448129266500473, 0.5277177691459656, -0.3699646592140198, 0.07869172841310501, 0.265654593706131, 0.7093421816825867, 0.7814059853553772, -0.34699752926826477, -0.281234472990036, 0.12314423173666, -0.8112935423851013, -0.34611985087394714, 0.6215462684631348, 0.35912519693374634, 0.03190046548843384, 0.8935425281524658, 1.0603737831115723, 0.07746639847755432, -0.5325484275817871, 0.9069216847419739, -0.2562468945980072, -0.41612234711647034, -0.7695553302764893, -0.1257466822862625, -0.0796041414141655, 0.02914397418498993, 0.13302746415138245, -0.2229710817337036, 0.05537906289100647, -0.2961764931678772, 0.15134049952030182, 0.05507155507802963, -0.7315683960914612, -0.4723607301712036, 0.6629664897918701, -0.01966029405593872, -0.03661622852087021, 0.7637761235237122, -0.01999615505337715, -0.4719107151031494, 0.42798298597335815, 0.8021091818809509, 0.5833795666694641, -0.11741149425506592, -0.053067829459905624, 0.45775336027145386, -0.20643962919712067, -0.23313483595848083, 0.23153989017009735, 0.14850452542304993, -0.26616913080215454, -0.48879894614219666, -0.7014814615249634, 0.001606101170182228, 0.6087049841880798, -0.9690679311752319, 0.47838470339775085, -0.45170849561691284, -0.3959040343761444, 0.07666858285665512, 0.14456412196159363, -0.761256992816925, 0.41736653447151184, 0.13832315802574158, 0.9574413299560547, -0.5902033448219299, 0.9255638718605042, 0.7393639087677002, -0.5015329122543335, -0.9107317924499512, -0.0396602563560009, -0.13586443662643433, -0.8721874356269836, 0.7914535403251648, 0.3093843162059784, 0.2182866781949997, -0.26354560256004333, -0.21676670014858246, -0.7454085946083069, 1.2076077461242676, -0.03466982766985893, -0.8246542811393738, -0.4136795103549957, 0.46132946014404297, 0.9314275979995728, -0.17973113059997559, 0.6184702515602112, 0.28746023774147034, 0.017372138798236847, -0.0030724566895514727, -1.3122825622558594, 0.07721488177776337, -0.4010329842567444, -0.20168286561965942, 0.13587936758995056, -0.5948368906974792, 0.8133813738822937, -0.26842939853668213, 0.23346950113773346, 0.4848112165927887, 0.7199446558952332, 0.2763083875179291, 0.4269998371601105, 0.4204471707344055, 0.42413386702537537, 0.7283650040626526, 0.2297372817993164, 1.0038527250289917, -0.5404781699180603, 0.22380143404006958, 1.054280400276184, -0.2007904350757599, 0.811252236366272, 0.30521440505981445, -0.32621657848358154, 0.7360699772834778, 0.2796255648136139, 0.22711214423179626, 0.2537723779678345, 0.07243572920560837, -0.07651028037071228, -0.3432770073413849, 0.32823148369789124, -0.8034161329269409, 0.5805256962776184, 0.20992738008499146, -0.7758814096450806, 0.0497119277715683, 0.10166139155626297, 0.31033310294151306, -0.07599984854459763, 0.005440928507596254, 0.7599304914474487, 0.31514477729797363, -0.7667694091796875, 0.8728350400924683, -0.42324692010879517, 0.5684800148010254, -1.1404314041137695, 0.09661425650119781, -0.055766139179468155, 0.5640519261360168, -0.06321316957473755, -0.4284166991710663, -0.026594938710331917, -0.3199966847896576, -0.28156593441963196, -0.11081458628177643, 0.3357672095298767, -0.4217131733894348, -0.6350436806678772, 0.38418981432914734, 0.510481595993042, 0.03523455560207367, -0.03968476876616478, -0.6937054395675659, -0.14082187414169312, -0.21871496737003326, -0.0640089213848114, 0.4937346875667572, 0.3791002631187439, -0.11443144083023071, 0.5932313799858093, 0.7286609411239624, 0.3827314078807831, -0.19465063512325287, 0.3266223967075348, 1.004913330078125, -0.7376944422721863, -0.5991257429122925, -0.6802567839622498, 0.29140785336494446, -0.23727798461914062, -0.6336549520492554, 0.4815901815891266, 0.6820456981658936, 0.4739181697368622, -0.14189518988132477, 0.49918124079704285, 0.19422203302383423, 0.8697324395179749, -0.49801239371299744, 1.0332459211349487, -0.7560433149337769, 0.0025900339242070913, -0.2810739576816559, -0.5563278198242188, -0.41009336709976196, 0.35189202427864075, -0.30159929394721985, 0.19138740003108978, 0.898459792137146, 0.698724091053009, -0.23809915781021118, -0.01933150552213192, 0.2360396832227707, 0.4707602858543396, 0.5372756719589233, 0.7271687388420105, 0.593352735042572, -0.6416435837745667, 0.3772773742675781, -0.4482961595058441, -0.35517966747283936, -0.16327570378780365, -0.7337750792503357, -1.1309069395065308, -0.3595409095287323, -0.19463835656642914, -0.5378196239471436, 0.3793777525424957, 1.2694873809814453, 0.728302538394928, -0.9027704000473022, -0.1027030274271965, 0.2550521790981293, -0.5900871157646179, -0.1414857804775238, -0.11649908870458603, 0.7613121867179871, -0.33386293053627014, -0.3707616627216339, 0.15761969983577728, -0.1986881047487259, 0.31546828150749207, 0.031942665576934814, -0.10226966440677643, 0.09407888352870941, -0.3133132755756378, 0.5704851746559143, 0.2945205867290497, -0.5771194696426392, 0.06429940462112427, 0.26051539182662964, -0.37179145216941833, 0.21993234753608704, 0.5309088826179504, -0.943320631980896, 0.41557595133781433, -0.05227579176425934, 0.3266429007053375, 0.6075164079666138, -0.043695513159036636, 0.5109695792198181, -0.21579521894454956, 0.16986040771007538, 0.3958337903022766, 0.37502846121788025, 0.11320794373750687, -0.28759172558784485, -0.022929208353161812, 0.2175828218460083, -0.7767364382743835, -0.6962659358978271, -0.10597555339336395, -1.3141790628433228, -0.03717163950204849, 1.2091706991195679, -0.18474180996418, -0.3243464529514313, -0.029691925272345543, -0.2824433743953705, 0.3976181149482727, -0.19790884852409363, 0.7395281791687012, 0.2920949459075928, -0.1274072378873825, 0.004896644502878189, -0.5325941443443298, 0.8360430002212524, 0.33587631583213806, -0.8076073527336121, -0.1962718814611435, 0.1999974548816681, 0.4222513735294342, 0.12429273873567581, 0.8479645252227783, -0.3840464651584625, 0.42803511023521423, -0.38957661390304565, 0.1141773983836174, -0.2278301864862442, -0.08355940133333206, -0.39914584159851074, -0.1319102793931961, 0.024799896404147148, -0.007557288743555546 ]
hjgp/CRD
hjgp
"2023-10-26T05:21:04Z"
13,887
0
diffusers
[ "diffusers", "endpoints_compatible", "diffusers:StableDiffusionXLPipeline", "region:us" ]
null
"2023-10-26T05:14:24Z"
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/nllb-200-distilled-1.3B
facebook
"2023-02-11T20:19:10Z"
13,862
62
transformers
[ "transformers", "pytorch", "m2m_100", "text2text-generation", "nllb", "translation", "ace", "acm", "acq", "aeb", "af", "ajp", "ak", "als", "am", "apc", "ar", "ars", "ary", "arz", "as", "ast", "awa", "ayr", "azb", "azj", "ba", "bm", "ban", "be", "bem", "bn", "bho", "bjn", "bo", "bs", "bug", "bg", "ca", "ceb", "cs", "cjk", "ckb", "crh", "cy", "da", "de", "dik", "dyu", "dz", "el", "en", "eo", "et", "eu", "ee", "fo", "fj", "fi", "fon", "fr", "fur", "fuv", "gaz", "gd", "ga", "gl", "gn", "gu", "ht", "ha", "he", "hi", "hne", "hr", "hu", "hy", "ig", "ilo", "id", "is", "it", "jv", "ja", "kab", "kac", "kam", "kn", "ks", "ka", "kk", "kbp", "kea", "khk", "km", "ki", "rw", "ky", "kmb", "kmr", "knc", "kg", "ko", "lo", "lij", "li", "ln", "lt", "lmo", "ltg", "lb", "lua", "lg", "luo", "lus", "lvs", "mag", "mai", "ml", "mar", "min", "mk", "mt", "mni", "mos", "mi", "my", "nl", "nn", "nb", "npi", "nso", "nus", "ny", "oc", "ory", "pag", "pa", "pap", "pbt", "pes", "plt", "pl", "pt", "prs", "quy", "ro", "rn", "ru", "sg", "sa", "sat", "scn", "shn", "si", "sk", "sl", "sm", "sn", "sd", "so", "st", "es", "sc", "sr", "ss", "su", "sv", "swh", "szl", "ta", "taq", "tt", "te", "tg", "tl", "th", "ti", "tpi", "tn", "ts", "tk", "tum", "tr", "tw", "tzm", "ug", "uk", "umb", "ur", "uzn", "vec", "vi", "war", "wo", "xh", "ydd", "yo", "yue", "zh", "zsm", "zu", "dataset:flores-200", "license:cc-by-nc-4.0", "autotrain_compatible", "has_space", "region:us" ]
translation
"2022-07-08T10:57:38Z"
--- language: - ace - acm - acq - aeb - af - ajp - ak - als - am - apc - ar - ars - ary - arz - as - ast - awa - ayr - azb - azj - ba - bm - ban - be - bem - bn - bho - bjn - bo - bs - bug - bg - ca - ceb - cs - cjk - ckb - crh - cy - da - de - dik - dyu - dz - el - en - eo - et - eu - ee - fo - fj - fi - fon - fr - fur - fuv - gaz - gd - ga - gl - gn - gu - ht - ha - he - hi - hne - hr - hu - hy - ig - ilo - id - is - it - jv - ja - kab - kac - kam - kn - ks - ka - kk - kbp - kea - khk - km - ki - rw - ky - kmb - kmr - knc - kg - ko - lo - lij - li - ln - lt - lmo - ltg - lb - lua - lg - luo - lus - lvs - mag - mai - ml - mar - min - mk - mt - mni - mos - mi - my - nl - nn - nb - npi - nso - nus - ny - oc - ory - pag - pa - pap - pbt - pes - plt - pl - pt - prs - quy - ro - rn - ru - sg - sa - sat - scn - shn - si - sk - sl - sm - sn - sd - so - st - es - sc - sr - ss - su - sv - swh - szl - ta - taq - tt - te - tg - tl - th - ti - tpi - tn - ts - tk - tum - tr - tw - tzm - ug - uk - umb - ur - uzn - vec - vi - war - wo - xh - ydd - yo - yue - zh - zsm - zu language_details: "ace_Arab, ace_Latn, acm_Arab, acq_Arab, aeb_Arab, afr_Latn, ajp_Arab, aka_Latn, amh_Ethi, apc_Arab, arb_Arab, ars_Arab, ary_Arab, arz_Arab, asm_Beng, ast_Latn, awa_Deva, ayr_Latn, azb_Arab, azj_Latn, bak_Cyrl, bam_Latn, ban_Latn,bel_Cyrl, bem_Latn, ben_Beng, bho_Deva, bjn_Arab, bjn_Latn, bod_Tibt, bos_Latn, bug_Latn, bul_Cyrl, cat_Latn, ceb_Latn, ces_Latn, cjk_Latn, ckb_Arab, crh_Latn, cym_Latn, dan_Latn, deu_Latn, dik_Latn, dyu_Latn, dzo_Tibt, ell_Grek, eng_Latn, epo_Latn, est_Latn, eus_Latn, ewe_Latn, fao_Latn, pes_Arab, fij_Latn, fin_Latn, fon_Latn, fra_Latn, fur_Latn, fuv_Latn, gla_Latn, gle_Latn, glg_Latn, grn_Latn, guj_Gujr, hat_Latn, hau_Latn, heb_Hebr, hin_Deva, hne_Deva, hrv_Latn, hun_Latn, hye_Armn, ibo_Latn, ilo_Latn, ind_Latn, isl_Latn, ita_Latn, jav_Latn, jpn_Jpan, kab_Latn, kac_Latn, kam_Latn, kan_Knda, kas_Arab, kas_Deva, kat_Geor, knc_Arab, knc_Latn, kaz_Cyrl, kbp_Latn, kea_Latn, khm_Khmr, kik_Latn, kin_Latn, kir_Cyrl, kmb_Latn, kon_Latn, kor_Hang, kmr_Latn, lao_Laoo, lvs_Latn, lij_Latn, lim_Latn, lin_Latn, lit_Latn, lmo_Latn, ltg_Latn, ltz_Latn, lua_Latn, lug_Latn, luo_Latn, lus_Latn, mag_Deva, mai_Deva, mal_Mlym, mar_Deva, min_Latn, mkd_Cyrl, plt_Latn, mlt_Latn, mni_Beng, khk_Cyrl, mos_Latn, mri_Latn, zsm_Latn, mya_Mymr, nld_Latn, nno_Latn, nob_Latn, npi_Deva, nso_Latn, nus_Latn, nya_Latn, oci_Latn, gaz_Latn, ory_Orya, pag_Latn, pan_Guru, pap_Latn, pol_Latn, por_Latn, prs_Arab, pbt_Arab, quy_Latn, ron_Latn, run_Latn, rus_Cyrl, sag_Latn, san_Deva, sat_Beng, scn_Latn, shn_Mymr, sin_Sinh, slk_Latn, slv_Latn, smo_Latn, sna_Latn, snd_Arab, som_Latn, sot_Latn, spa_Latn, als_Latn, srd_Latn, srp_Cyrl, ssw_Latn, sun_Latn, swe_Latn, swh_Latn, szl_Latn, tam_Taml, tat_Cyrl, tel_Telu, tgk_Cyrl, tgl_Latn, tha_Thai, tir_Ethi, taq_Latn, taq_Tfng, tpi_Latn, tsn_Latn, tso_Latn, tuk_Latn, tum_Latn, tur_Latn, twi_Latn, tzm_Tfng, uig_Arab, ukr_Cyrl, umb_Latn, urd_Arab, uzn_Latn, vec_Latn, vie_Latn, war_Latn, wol_Latn, xho_Latn, ydd_Hebr, yor_Latn, yue_Hant, zho_Hans, zho_Hant, zul_Latn" tags: - nllb - translation license: "cc-by-nc-4.0" datasets: - flores-200 metrics: - bleu - spbleu - chrf++ inference: false --- # NLLB-200 This is the model card of NLLB-200's distilled 1.3B variant. Here are the [metrics](https://tinyurl.com/nllb200densedst1bmetrics) for that particular checkpoint. - Information about training algorithms, parameters, fairness constraints or other applied approaches, and features. The exact training algorithm, data and the strategies to handle data imbalances for high and low resource languages that were used to train NLLB-200 is described in the paper. - Paper or other resource for more information NLLB Team et al, No Language Left Behind: Scaling Human-Centered Machine Translation, Arxiv, 2022 - License: CC-BY-NC - Where to send questions or comments about the model: https://github.com/facebookresearch/fairseq/issues ## Intended Use - Primary intended uses: NLLB-200 is a machine translation model primarily intended for research in machine translation, - especially for low-resource languages. It allows for single sentence translation among 200 languages. Information on how to - use the model can be found in Fairseq code repository along with the training code and references to evaluation and training data. - Primary intended users: Primary users are researchers and machine translation research community. - Out-of-scope use cases: NLLB-200 is a research model and is not released for production deployment. NLLB-200 is trained on general domain text data and is not intended to be used with domain specific texts, such as medical domain or legal domain. The model is not intended to be used for document translation. The model was trained with input lengths not exceeding 512 tokens, therefore translating longer sequences might result in quality degradation. NLLB-200 translations can not be used as certified translations. ## Metrics • Model performance measures: NLLB-200 model was evaluated using BLEU, spBLEU, and chrF++ metrics widely adopted by machine translation community. Additionally, we performed human evaluation with the XSTS protocol and measured the toxicity of the generated translations. ## Evaluation Data - Datasets: Flores-200 dataset is described in Section 4 - Motivation: We used Flores-200 as it provides full evaluation coverage of the languages in NLLB-200 - Preprocessing: Sentence-split raw text data was preprocessed using SentencePiece. The SentencePiece model is released along with NLLB-200. ## Training Data • We used parallel multilingual data from a variety of sources to train the model. We provide detailed report on data selection and construction process in Section 5 in the paper. We also used monolingual data constructed from Common Crawl. We provide more details in Section 5.2. ## Ethical Considerations • In this work, we took a reflexive approach in technological development to ensure that we prioritize human users and minimize risks that could be transferred to them. While we reflect on our ethical considerations throughout the article, here are some additional points to highlight. For one, many languages chosen for this study are low-resource languages, with a heavy emphasis on African languages. While quality translation could improve education and information access in many in these communities, such an access could also make groups with lower levels of digital literacy more vulnerable to misinformation or online scams. The latter scenarios could arise if bad actors misappropriate our work for nefarious activities, which we conceive as an example of unintended use. Regarding data acquisition, the training data used for model development were mined from various publicly available sources on the web. Although we invested heavily in data cleaning, personally identifiable information may not be entirely eliminated. Finally, although we did our best to optimize for translation quality, mistranslations produced by the model could remain. Although the odds are low, this could have adverse impact on those who rely on these translations to make important decisions (particularly when related to health and safety). ## Caveats and Recommendations • Our model has been tested on the Wikimedia domain with limited investigation on other domains supported in NLLB-MD. In addition, the supported languages may have variations that our model is not capturing. Users should make appropriate assessments. ## Carbon Footprint Details • The carbon dioxide (CO2e) estimate is reported in Section 8.8.
[ -0.3769148290157318, -0.5408148169517517, 0.26632675528526306, 0.28689202666282654, -0.1685594916343689, -0.1302085816860199, -0.11664137244224548, -0.6098352074623108, -0.04851452261209488, 0.6713026762008667, -0.4873417913913727, -0.2717823088169098, -0.6291599273681641, 0.3269287049770355, -0.5630306601524353, 1.2665413618087769, -0.01209278218448162, 0.30373239517211914, -0.04933709278702736, -0.3746456801891327, -0.3658025562763214, -0.5722406506538391, -0.7225626707077026, -0.17698360979557037, 0.6753060817718506, 0.25984928011894226, 0.6987849473953247, 0.583189845085144, 0.4778783321380615, 0.1452055722475052, -0.3502175807952881, -0.04261185601353645, -0.6939690709114075, -0.4526523947715759, -0.2580113112926483, -0.3054667115211487, -0.764751136302948, 0.22024083137512207, 0.4991863965988159, 0.9300745129585266, -0.21706080436706543, 0.5332993268966675, 0.1130906194448471, 0.6666280627250671, -0.2618442177772522, -0.18568406999111176, -0.4969589114189148, 0.10785116255283356, -0.33260440826416016, -0.1145959198474884, -0.6373697519302368, -0.3031385540962219, -0.032879721373319626, -0.6346234083175659, 0.043233368545770645, 0.29097166657447815, 0.8933297395706177, 0.18196988105773926, -0.5224681496620178, -0.3577888011932373, -0.4850332736968994, 0.9675019979476929, -0.9147523045539856, 0.3104778826236725, 0.5597970485687256, 0.057847004383802414, -0.03262336179614067, -0.5671513080596924, -0.6296662092208862, -0.09786462038755417, -0.048038121312856674, 0.12954269349575043, -0.19901198148727417, -0.019119516015052795, 0.5063509941101074, 0.3784581422805786, -0.6374574899673462, 0.13435283303260803, -0.6595272421836853, -0.15260951220989227, 0.6455941200256348, 0.20508062839508057, 0.1888250857591629, -0.4124280512332916, -0.42709434032440186, -0.07080419361591339, -0.6297444701194763, -0.0008910282631404698, 0.6658909916877747, 0.4272894263267517, -0.2944025695323944, 0.5369569659233093, -0.14041860401630402, 0.6816191673278809, -0.027272537350654602, -0.20952636003494263, 0.5255219340324402, -0.6488763093948364, -0.06397607922554016, -0.09222491085529327, 0.7434275150299072, 0.4708561301231384, 0.263279527425766, -0.1987961232662201, -0.17244045436382294, -0.27145498991012573, 0.5318316221237183, -0.7979339361190796, 0.19136182963848114, 0.29799172282218933, -0.6534387469291687, -0.46720531582832336, -0.06041666120290756, -0.6910308599472046, -0.1630096435546875, -0.35975217819213867, 0.29632633924484253, -0.3321000635623932, -0.20767316222190857, 0.08617458492517471, 0.02546049654483795, 0.09370206296443939, 0.15464270114898682, -0.6232132911682129, 0.2335485965013504, 0.30686476826667786, 0.684397280216217, -0.23825061321258545, -0.32369938492774963, -0.2076549381017685, -0.03385709971189499, -0.2901395857334137, 0.2684960663318634, -0.03134356811642647, -0.3435412347316742, -0.04776664450764656, 0.18308845162391663, 0.13775765895843506, -0.5131516456604004, 0.7563101053237915, -0.49623897671699524, 0.29652538895606995, -0.5090749263763428, -0.5109505653381348, -0.2675372362136841, 0.1852843165397644, -0.8464534878730774, 1.0237280130386353, 0.17456182837486267, -0.9303283095359802, 0.3895712196826935, -0.6746357679367065, -0.47234904766082764, 0.19717852771282196, 0.16433431208133698, -0.43526673316955566, 0.04599631950259209, -0.03155651316046715, 0.11674617975950241, -0.24136754870414734, 0.48563411831855774, -0.2791341543197632, -0.3936714828014374, 0.31576791405677795, -0.6179487109184265, 1.2885794639587402, 0.5040518045425415, -0.2594148814678192, -0.31301209330558777, -0.6614509224891663, 0.09286893904209137, 0.25731346011161804, -0.568878710269928, -0.10621446371078491, -0.15691450238227844, 0.3798586428165436, 0.3283303380012512, 0.2353617250919342, -0.5324514508247375, 0.1892233043909073, -0.2878771126270294, 0.11314933747053146, 0.5128384232521057, 0.02951660379767418, 0.4580567181110382, -0.35077306628227234, 0.614500880241394, -0.06343839317560196, 0.4751276969909668, 0.0533217117190361, -0.4443962872028351, -0.7488359212875366, 0.15267570316791534, 0.483550488948822, 0.590956449508667, -0.6199330687522888, 0.5010897517204285, -0.2945566773414612, -0.41865405440330505, -0.7226637005805969, 0.1931581348180771, 0.4022815525531769, 0.48164165019989014, 0.5248175263404846, -0.28040727972984314, -0.44367173314094543, -0.7188973426818848, -0.17526596784591675, -0.016871361061930656, 0.1533874273300171, 0.08966546505689621, 0.5732008814811707, -0.3804113566875458, 0.7612333297729492, -0.204313263297081, -0.19706469774246216, -0.3604891896247864, 0.09662337601184845, 0.23929329216480255, 0.5429400205612183, 0.5725771188735962, -0.9204468727111816, -0.464337557554245, -0.05276881530880928, -0.921501636505127, -0.1983044594526291, -0.19790750741958618, -0.13971714675426483, 0.3810521960258484, 0.41585424542427063, -0.2853066027164459, 0.4865700602531433, 0.7520439624786377, -0.19843947887420654, 0.4549659788608551, -0.18333208560943604, 0.06556114554405212, -1.10430908203125, 0.5226353406906128, -0.15108497440814972, -0.16865204274654388, -0.7400772571563721, 0.13076744973659515, 0.07566273957490921, -0.12646567821502686, -0.5539844036102295, 0.7891685962677002, -0.27240124344825745, 0.12289880216121674, -0.31859663128852844, 0.07890085130929947, 0.25168582797050476, 0.44879209995269775, -0.19575294852256775, 0.6301044225692749, 0.08146645873785019, -0.5013390183448792, 0.029158102348446846, 0.3476564586162567, -0.27177464962005615, 0.7382572293281555, -0.6229045391082764, 0.025107450783252716, -0.11236269026994705, 0.18264798820018768, -0.44624853134155273, -0.03161551430821419, 0.30408552289009094, -0.5459803938865662, 0.2604052722454071, 0.05819283798336983, -0.7128106951713562, -0.36763277649879456, 0.019645797088742256, 0.3756389915943146, 0.32244589924812317, -0.24520957469940186, 0.24073508381843567, 0.437261700630188, -0.1676010936498642, -0.6691069006919861, -1.0405151844024658, 0.1274017095565796, -0.2478557974100113, -0.42736735939979553, 0.16568388044834137, -0.24450960755348206, -0.16690810024738312, 0.05690377205610275, 0.022363152354955673, -0.1662236750125885, 0.27016374468803406, 0.11899974942207336, 0.18430374562740326, 0.13514968752861023, 0.09799768030643463, 0.0906374454498291, -0.09850353002548218, -0.07950843870639801, -0.2358136773109436, 0.5662012100219727, -0.048655349761247635, -0.13388554751873016, -0.404022216796875, 0.5605440735816956, 0.35818374156951904, -0.1588495820760727, 1.0276540517807007, 0.6421061754226685, -0.48497486114501953, 0.25245165824890137, -0.5238158106803894, -0.007053363602608442, -0.43239647150039673, 0.4603334069252014, -0.007377317640930414, -0.5119365453720093, 0.4291124939918518, 0.15059968829154968, 0.18163704872131348, 0.4820142686367035, 0.4892715811729431, -0.4044678211212158, 0.8192198872566223, 0.7023690938949585, -0.05021635442972183, 0.39763155579566956, -0.35360369086265564, 0.243841290473938, -0.815971314907074, -0.2357839196920395, -0.4938347637653351, -0.24800889194011688, -0.7020555138587952, -0.35392820835113525, 0.2367008924484253, 0.3136662244796753, -0.1139528751373291, 0.615839421749115, -0.21243056654930115, 0.21765807271003723, 0.39583998918533325, 0.0067117707803845406, 0.4682428538799286, -0.059973884373903275, -0.13699764013290405, -0.14467200636863708, -0.7390623092651367, -0.8107122182846069, 1.0684512853622437, 0.4414260983467102, 0.528679609298706, -0.0777808353304863, 0.7100673913955688, 0.3879668712615967, 0.4577825963497162, -0.5017855167388916, 0.41736212372779846, -0.20106442272663116, -1.1900384426116943, -0.24437983334064484, -0.6408876180648804, -0.9951540231704712, 0.13162297010421753, -0.1296999305486679, -0.4470876455307007, 0.15526190400123596, 0.09776053577661514, -0.1369657814502716, 0.22737030684947968, -0.7024170160293579, 1.0986042022705078, -0.5557445287704468, -0.15990087389945984, -0.26530879735946655, -0.6926642060279846, 0.03591826930642128, -0.38515833020210266, 0.4673056900501251, -0.04160334914922714, 0.12293719500303268, 0.7904099822044373, -0.30355629324913025, 0.7635315656661987, -0.2159828245639801, -0.14795401692390442, 0.25689244270324707, -0.09772387146949768, 0.34930166602134705, -0.08951227366924286, -0.33145493268966675, 0.5352730751037598, 0.05821482837200165, -0.6868083477020264, -0.07684483379125595, 0.3895091414451599, -0.6845340132713318, -0.15861940383911133, -0.36252930760383606, -0.6731594204902649, -0.010568513534963131, 0.5335600972175598, 0.5552491545677185, 0.287773460149765, -0.2559376358985901, 0.25863194465637207, 0.6059961318969727, -0.5666824579238892, 0.25555503368377686, 0.6259235143661499, -0.260418564081192, -0.2761465907096863, 0.8178256154060364, 0.35161447525024414, 0.5970406532287598, 0.14604437351226807, 0.013928219676017761, -0.16769929230213165, -0.5335646271705627, -0.5204946994781494, 0.23848599195480347, -0.8074352145195007, -0.16561126708984375, -0.6556571125984192, -0.09354778379201889, -0.31982871890068054, -0.15164616703987122, -0.3801465630531311, -0.29211315512657166, -0.3157106637954712, -0.1518796682357788, 0.03963495045900345, 0.6086955070495605, 0.06918996572494507, 0.38986706733703613, -0.6684836149215698, 0.20762471854686737, -0.24069061875343323, 0.22422483563423157, 0.008195334114134312, -0.7379958033561707, -0.5315763354301453, 0.32294517755508423, -0.4029470682144165, -0.7279900312423706, 0.3124362528324127, -0.12741237878799438, 0.6791483163833618, 0.15567193925380707, 0.04850781708955765, 0.5998877286911011, -0.47117236256599426, 0.6284257769584656, 0.1344090700149536, -0.8866371512413025, 0.31219717860221863, -0.34157994389533997, 0.4450025260448456, 0.9460835456848145, 0.6740775108337402, -0.7969002723693848, -0.439167857170105, -0.6549142599105835, -0.9443122148513794, 0.6091341972351074, 0.2807987630367279, 0.23575282096862793, 0.0011055252980440855, 0.297270804643631, 0.17185945808887482, 0.29899972677230835, -1.2517179250717163, -0.2530173361301422, -0.14107003808021545, -0.2110573947429657, 0.12004461884498596, -0.08189775049686432, -0.05444254353642464, -0.21159614622592926, 0.7217235565185547, 0.02968711405992508, 0.1313280612230301, -0.016088180243968964, -0.4164864420890808, -0.12494200468063354, 0.21647518873214722, 0.3184662163257599, 0.5798735618591309, -0.12324081361293793, -0.2740618586540222, 0.37681281566619873, -0.5525577664375305, 0.09826479852199554, 0.09860196709632874, -0.44058719277381897, -0.07458943873643875, 0.3115837574005127, 0.6343221664428711, -0.004699944518506527, -0.5948511362075806, 0.48117566108703613, 0.05770490691065788, -0.1069527193903923, -0.3416462242603302, -0.3128150403499603, 0.16839519143104553, 0.021064070984721184, 0.3465237319469452, 0.22804513573646545, 0.23374496400356293, -0.492542028427124, 0.12684744596481323, 0.23722511529922485, -0.31779661774635315, -0.26971492171287537, 0.6358597874641418, 0.3391191065311432, -0.14870327711105347, 0.6929348111152649, -0.4990716874599457, -0.28264114260673523, 0.4336720108985901, 0.3139895498752594, 0.5230445265769958, -0.08917747437953949, 0.20999334752559662, 0.6307797431945801, 0.6591988801956177, -0.1385848969221115, 0.15786322951316833, 0.13359136879444122, -0.5216688513755798, -0.4486302137374878, -0.7630654573440552, -0.19473746418952942, 0.056184787303209305, -0.9226135015487671, 0.3220825791358948, -0.19092772901058197, -0.34637632966041565, -0.1982787698507309, 0.17001010477542877, -0.7589085698127747, 0.18548162281513214, 0.20453377068042755, 0.9381417632102966, -0.8939882516860962, 0.9568405747413635, 0.2393123209476471, -0.7442020773887634, -0.5956134796142578, 0.12060406804084778, -0.046114400029182434, -0.5210579633712769, 0.46601125597953796, 0.23811183869838715, 0.19463452696800232, -0.0717952623963356, -0.5034974217414856, -0.7470861077308655, 1.0276204347610474, 0.42441821098327637, -0.6048307418823242, -0.19627824425697327, 0.45814406871795654, 0.6502259969711304, -0.017559153959155083, -0.0474679060280323, 0.27273842692375183, 0.5203551054000854, -0.1507600098848343, -0.9850655794143677, 0.10275520384311676, -0.15775083005428314, -0.027499495074152946, 0.019338835030794144, -0.5641416907310486, 0.682601273059845, -0.15791307389736176, -0.22843192517757416, 0.26820439100265503, 0.4061129093170166, 0.09919685125350952, 0.21128149330615997, 0.33226659893989563, 0.6312984824180603, 0.7471795678138733, -0.016871262341737747, 1.216963768005371, -0.16265404224395752, 0.5106844902038574, 1.0308724641799927, -0.24389511346817017, 0.6727452874183655, 0.6225475668907166, -0.19271886348724365, 0.20361313223838806, 0.40831825137138367, -0.12660513818264008, 0.4706888198852539, 0.13346980512142181, 0.1431066244840622, 0.10446184128522873, -0.2843795716762543, -0.33452308177948, 0.2501063346862793, 0.11341647803783417, -0.4150713086128235, -0.0384487546980381, 0.18666701018810272, 0.3476855456829071, -0.04573434963822365, -0.10898594558238983, 0.5667346119880676, 0.18674570322036743, -0.6574991941452026, 0.56839919090271, 0.22681398689746857, 0.6468596458435059, -0.5746197700500488, 0.17856992781162262, -0.37026646733283997, 0.15553584694862366, -0.24228370189666748, -0.6363601684570312, 0.5812687873840332, 0.227443665266037, -0.23568382859230042, -0.5101269483566284, 0.22929805517196655, -0.33356010913848877, -0.6758266091346741, 0.4767667353153229, 0.3777613639831543, 0.16978737711906433, 0.015313362702727318, -0.8371885418891907, 0.21684667468070984, 0.12095417082309723, -0.22650188207626343, 0.33568236231803894, 0.3120724558830261, -0.11683499813079834, 0.5189786553382874, 0.540925145149231, 0.17752182483673096, 0.10909724980592728, 0.1012393906712532, 0.6254797577857971, -0.5525339841842651, -0.21070528030395508, -0.46907368302345276, 0.5861234664916992, -0.20208996534347534, -0.39705196022987366, 0.8701339960098267, 0.6755146384239197, 1.222822666168213, 0.07717688381671906, 0.6667179465293884, -0.2905334234237671, 0.4397193491458893, -0.32076242566108704, 0.8216956257820129, -0.7070496678352356, 0.08811149001121521, -0.34024810791015625, -0.8191854953765869, -0.08333525061607361, 0.5345903038978577, -0.14316414296627045, 0.1593303233385086, 0.6797590255737305, 0.6011925935745239, 0.1709350198507309, -0.1204984039068222, 0.20269668102264404, 0.08903790265321732, 0.2694706320762634, 0.2306392639875412, 0.41820311546325684, -0.81687331199646, 0.7356064915657043, -0.24535460770130157, -0.12784776091575623, -0.22245977818965912, -0.8441168665885925, -0.6872344017028809, -0.5157577991485596, -0.2309134602546692, -0.37199875712394714, -0.13938231766223907, 0.7350554466247559, 0.5717117190361023, -0.6999596953392029, -0.39004990458488464, 0.04366631060838699, -0.24774369597434998, -0.30838486552238464, -0.2247656136751175, -0.08557236939668655, -0.14933666586875916, -0.7360820174217224, 0.1250108778476715, 0.029916953295469284, 0.07658664882183075, -0.3785865008831024, -0.33099833130836487, -0.4815642833709717, 0.02892361953854561, 0.4655819535255432, 0.16947150230407715, -0.5611651539802551, -0.028861306607723236, 0.21923492848873138, -0.48358067870140076, -0.0560472309589386, 0.44427186250686646, -0.2217123955488205, 0.45414185523986816, 0.3154601454734802, 0.49953556060791016, 0.5508635640144348, -0.11104690283536911, 0.4016993045806885, -0.7308120131492615, 0.3162444233894348, 0.33981651067733765, 0.3967856466770172, 0.4313066303730011, -0.3716839849948883, 0.5770836472511292, 0.17048785090446472, -0.5100722312927246, -0.9115362763404846, 0.07697991281747818, -0.977496862411499, -0.23848599195480347, 1.2152897119522095, -0.14789488911628723, -0.03989557549357414, -0.1418599933385849, -0.17188100516796112, 0.355793833732605, -0.10011134296655655, 0.6323455572128296, 0.9003834128379822, 0.30386853218078613, 0.07983319461345673, -1.0167580842971802, 0.2205006182193756, 0.36493417620658875, -0.8324771523475647, -0.02511439472436905, 0.19056694209575653, 0.35273411870002747, 0.24746644496917725, 0.6770868301391602, -0.46811985969543457, 0.24025221168994904, -0.05190905183553696, 0.3205578923225403, 0.19212651252746582, -0.18293613195419312, -0.3136967122554779, -0.20015762746334076, 0.1185360997915268, 0.2029174268245697 ]
cactusfriend/nightmare-promptgen-XL
cactusfriend
"2023-07-06T22:16:34Z"
13,844
4
transformers
[ "transformers", "pytorch", "safetensors", "gpt_neo", "text-generation", "license:openrail", "endpoints_compatible", "region:us" ]
text-generation
"2023-06-26T14:07:40Z"
--- license: openrail pipeline_tag: text-generation library_name: transformers widget: - text: "a photograph of" example_title: "photo" - text: "a bizarre cg render" example_title: "render" - text: "the spaghetti" example_title: "meal?" - text: "a (detailed+ intricate)+ picture" example_title: "weights" - text: "photograph of various" example_title: "variety" inference: parameters: temperature: 2.6 max_new_tokens: 250 --- Experimental 'XL' version of [Nightmare InvokeAI Prompts](https://huggingface.co/cactusfriend/nightmare-invokeai-prompts). Very early version and may be deleted.
[ -0.5855876207351685, -0.6320791840553284, 0.6457839608192444, 0.7153721451759338, -0.3738846182823181, 0.21830442547798157, 0.11360833793878555, -0.8815023303031921, 0.938032329082489, 0.5731891393661499, -1.2258023023605347, -0.1324360966682434, -0.022624371573328972, 0.208057701587677, -0.4894900619983673, 1.0255804061889648, -0.2609650790691376, 0.02370561845600605, 0.16297191381454468, -0.12627501785755157, -0.40048643946647644, 0.01816653646528721, -1.5946987867355347, -0.07691989094018936, 0.9766965508460999, 0.6878416538238525, 0.8120184540748596, 0.22542433440685272, 0.4071763753890991, 0.0970032662153244, -0.3589778244495392, -0.25568005442619324, -0.571291446685791, -0.09413854032754898, 0.3519728481769562, -0.11552578955888748, -0.4151005446910858, 0.11664016544818878, 0.8613880276679993, 0.685799241065979, -0.3093204200267792, 0.007137839682400227, 0.28785020112991333, 0.1264445185661316, -0.5521984696388245, -0.36062896251678467, -0.2171403467655182, 0.47619912028312683, -0.021457256749272346, 0.3591732382774353, -0.45329707860946655, -0.5912947058677673, -0.24748234450817108, -0.7720029354095459, 0.026167146861553192, 0.266146183013916, 0.8418576121330261, 0.08676353096961975, -0.07438734918832779, -0.22606240212917328, -0.5103301405906677, 0.3954158127307892, -0.2664477527141571, -0.017735227942466736, 0.20280911028385162, 0.4565437138080597, -0.3704430162906647, -0.8952342867851257, -0.5779629945755005, -0.2331654280424118, -0.12701626121997833, 0.29148435592651367, -0.8555832505226135, -0.040340621024370193, 0.5057615637779236, 0.17483600974082947, -0.7509803771972656, 0.31706300377845764, -0.5489641427993774, -0.4920339286327362, 0.46100860834121704, 0.42614197731018066, 0.3481804430484772, -0.539115309715271, -0.17703188955783844, -0.24601124227046967, -0.879804253578186, 0.07113160938024521, 0.649311900138855, 0.2919985353946686, -0.4805844724178314, 0.5273337960243225, 0.2178400605916977, 0.5889524221420288, 0.016499750316143036, 0.14202411472797394, 0.3752092719078064, 0.02801598235964775, 0.024638313800096512, 0.35032111406326294, 0.8338726162910461, 0.5917702913284302, -0.22816447913646698, -0.025888904929161072, -0.5624060034751892, 0.042704854160547256, 0.18831847608089447, -0.859006404876709, -0.3386102318763733, 0.16892476379871368, -0.8624577522277832, -0.15566006302833557, -0.39133405685424805, -0.7360261082649231, -0.5577792525291443, 0.07528789341449738, 0.16181908547878265, -0.8969353437423706, -0.3988594114780426, -0.34180915355682373, -0.016957106068730354, 0.010539762675762177, 0.2969796359539032, -0.2196039855480194, 0.39166873693466187, 0.5228381156921387, 0.848435640335083, -0.28205862641334534, -0.12740597128868103, -0.33117425441741943, -0.4934746325016022, -0.5170447826385498, 0.8129985928535461, -0.577725887298584, -1.0016024112701416, 0.11024799197912216, 0.3568302094936371, 0.5190147757530212, -0.5478016138076782, 1.0569483041763306, -0.227028489112854, 0.008654898032546043, -0.42600277066230774, -0.5571638941764832, 0.12240827828645706, -0.06278152763843536, -0.7176222205162048, 0.763391375541687, 0.3077789843082428, -0.5338618159294128, 0.3678757846355438, -0.9380668997764587, -0.025821257382631302, 0.10492157191038132, 0.09294836968183517, -0.49786683917045593, 0.08835790306329727, -0.2494223713874817, 0.02256874181330204, 0.18333375453948975, -0.5494114756584167, -0.6067655682563782, -0.4227101802825928, -0.0670628473162651, -0.18274502456188202, 1.2119210958480835, 1.0066691637039185, -0.03431404381990433, 0.09988601505756378, -1.2730766534805298, -0.1348402202129364, 0.5167835354804993, 0.3557596802711487, -0.4053955376148224, -0.4416860044002533, 0.2000352144241333, -0.12910334765911102, 0.4019719362258911, -0.9102729558944702, 0.2749597430229187, -0.007676092907786369, 0.19703133404254913, 0.6657350063323975, 0.30577847361564636, -0.006888490170240402, -0.6085935831069946, 0.7600698471069336, 0.1863379031419754, 0.7648053169250488, -0.09198133647441864, -0.6847222447395325, -0.6557468175888062, -0.3001149594783783, -0.25832632184028625, 0.505402684211731, -0.6787661910057068, -0.014230117201805115, 0.43291550874710083, -1.1480156183242798, -0.08015599101781845, -0.11271955817937851, 0.539711058139801, 0.21807588636875153, -0.03172559663653374, -0.11658350378274918, -0.6410889625549316, -1.261643409729004, 0.1450287252664566, -0.12131350487470627, 0.1172931045293808, 0.6061988472938538, 0.3777103126049042, -0.3916871249675751, 0.8446839451789856, -0.8988569378852844, -0.006471948232501745, -0.23672299087047577, 0.326383113861084, 0.6657848954200745, 0.4280593693256378, 1.2177796363830566, -0.7112610936164856, -0.6221334338188171, -0.5443552136421204, -0.2753826975822449, -0.3895275592803955, -0.07717661559581757, -0.2080594301223755, -0.13730013370513916, 0.15858447551727295, -0.5490620732307434, 0.4156436622142792, 0.4236757755279541, -0.46317365765571594, 0.8643783330917358, -0.405895471572876, 0.2165175825357437, -1.5547914505004883, 0.14449442923069, 0.2207198590040207, -0.20274566113948822, -0.18827606737613678, -0.004527672193944454, 0.47545716166496277, -0.20700812339782715, -0.7247685194015503, 0.256083220243454, -0.4733511209487915, 0.10165563225746155, -0.11980008333921432, 0.020722923800349236, -0.5048601627349854, 0.2260296642780304, -0.1307535618543625, 1.0968729257583618, 0.6815272569656372, -0.23250727355480194, 0.40447700023651123, 0.4120924770832062, -0.24306541681289673, 0.43821802735328674, -0.7696114182472229, 0.5373076796531677, -0.06224710866808891, 0.14880771934986115, -1.2275586128234863, -0.4024870693683624, 0.7266432642936707, -0.26427197456359863, 0.1442926824092865, 0.012702303007245064, -0.6306425333023071, -0.6206663250923157, -0.5825641751289368, 0.5278292894363403, 0.862845242023468, -0.7438358068466187, 0.14121635258197784, 0.27520719170570374, -0.41500794887542725, -0.379983514547348, -0.08731251209974289, 0.4627959728240967, -0.23201429843902588, 0.04942338913679123, 0.18696719408035278, -0.36177513003349304, -0.3865528404712677, 0.01183672621846199, 0.3574443757534027, -0.25967028737068176, -0.5431259870529175, 0.5254160165786743, 0.5421714782714844, -0.34449002146720886, -0.3414902091026306, 0.5677496790885925, 0.11282729357481003, 0.3409824073314667, 0.2992136776447296, 0.45152297616004944, -0.016116265207529068, -0.06158210337162018, -0.28994137048721313, 0.8735712766647339, 0.6280792951583862, 0.528390109539032, 0.6106744408607483, 0.2799772620201111, -0.9656813144683838, -0.07269763201475143, -0.6718112230300903, -0.09691156446933746, -0.48016127943992615, -0.012351117096841335, -0.18065136671066284, -0.6230783462524414, 0.7953072190284729, -0.018409010022878647, 0.17170646786689758, 0.5173118710517883, 0.0033440894912928343, -0.07792025804519653, 1.3653839826583862, 0.6737160682678223, -0.09966792166233063, 0.568173885345459, -0.5316827893257141, -0.2852943539619446, -0.8297629952430725, -0.18027754127979279, -0.5793192386627197, -0.15047164261341095, -0.1375228613615036, 0.24008554220199585, 0.36713993549346924, -0.32785820960998535, -0.22799552977085114, 0.7961253523826599, -0.6675927639007568, 0.6466374397277832, 0.2366904467344284, 0.6008753180503845, -0.23770344257354736, -0.23303844034671783, -0.19248737394809723, -0.3365555703639984, -0.30717524886131287, -0.26355743408203125, 0.6483614444732666, 0.013698115013539791, 0.5447295904159546, -0.003929872065782547, 0.7149826288223267, 0.3763965666294098, 0.25398463010787964, -0.38402220606803894, 0.679506778717041, -0.07960917800664902, -0.45758047699928284, -0.19530397653579712, -0.3585800528526306, -1.037776231765747, -0.5136054158210754, -0.5698388814926147, -0.8813481330871582, 0.16339130699634552, 0.04412988945841789, -0.722718358039856, 0.5927831530570984, -1.149611473083496, 0.8111225366592407, 0.20903222262859344, -0.139665886759758, -0.1195095106959343, -0.5321687459945679, 0.37553930282592773, -0.2571638226509094, 0.19087561964988708, 0.5381739139556885, -0.1260794699192047, 0.7269413471221924, -0.8106868863105774, 0.9860998392105103, -0.37399351596832275, -0.33194100856781006, 0.4830857813358307, 0.3055156171321869, 0.8854655623435974, 0.31087467074394226, 0.094143807888031, -0.1592714488506317, -0.08297760039567947, -0.19238705933094025, -0.3751028776168823, 0.7880643010139465, -1.239076852798462, -0.22160448133945465, -0.2561816871166229, -0.3061690032482147, 0.15602953732013702, 0.2552590072154999, 0.6918895840644836, 0.871168851852417, -0.26470810174942017, -0.054340165108442307, 0.6849502921104431, -0.2544584572315216, 0.7103418111801147, 0.14290837943553925, -0.4724103808403015, -0.4754195809364319, 0.6971777081489563, 0.09409835934638977, -0.14920485019683838, 0.24435390532016754, 0.6022722721099854, -0.3857930898666382, -0.8312867283821106, -0.26485440135002136, 0.3780279755592346, -0.8002289533615112, -0.24246428906917572, -0.8694290518760681, -0.2754620313644409, -0.40977445244789124, -0.4525314271450043, -0.2715505361557007, -0.3492838442325592, -0.5566210746765137, 0.00686494167894125, 0.8717700839042664, 1.1946576833724976, -0.4995826184749603, 0.37642768025398254, -0.772868275642395, 0.30077582597732544, 0.020756658166646957, 0.305877149105072, -0.4518061578273773, -0.1851363331079483, 0.02015363983809948, 0.04199213534593582, -0.34143516421318054, -0.8502596616744995, 0.5620596408843994, -0.19638632237911224, 0.3418968915939331, 0.5391703844070435, 0.40444591641426086, 0.7752306461334229, -0.27043813467025757, 1.3154574632644653, 0.8980246782302856, -0.8255613446235657, 0.9343446493148804, -0.45700159668922424, 0.160954087972641, 0.35304775834083557, 0.6114328503608704, -0.4506208300590515, -0.7812232375144958, -0.7318390607833862, -0.890795886516571, 1.0192675590515137, 0.27574095129966736, 0.23214015364646912, 0.07109615951776505, 0.9101961851119995, 0.8969877362251282, -0.16723890602588654, -0.5596084594726562, -0.8806561231613159, -0.47059953212738037, 0.06081831082701683, -0.2305723875761032, -0.7106091976165771, 0.04625891521573067, -0.5218856930732727, 0.19742274284362793, -0.0034477582667022943, 0.2657555341720581, 0.409555584192276, 0.14639312028884888, -0.5322719812393188, -0.027239346876740456, 0.6915867924690247, 0.9986527562141418, -0.4380411207675934, -0.18541276454925537, 0.569960355758667, -1.0590472221374512, 0.09622867405414581, -0.20667946338653564, -0.1717468649148941, 0.13828855752944946, 0.08366750180721283, 0.986657977104187, 0.367892324924469, -0.37879204750061035, 0.3836686611175537, -0.5765813589096069, -0.2735742926597595, -1.0986047983169556, 0.34794679284095764, -0.483806848526001, 0.08103498071432114, 0.4467983543872833, 0.3138052225112915, 0.4587293267250061, -0.5510523915290833, 0.18622231483459473, -0.10948218405246735, -0.7460882663726807, -0.30953550338745117, 0.9122766852378845, -0.20161224901676178, -0.8853073716163635, 0.6425685286521912, -0.6150522232055664, -0.14244452118873596, 0.4613414406776428, 0.7870780825614929, 1.0296396017074585, 0.005197254009544849, 0.47757330536842346, 0.7680233120918274, 0.022223470732569695, 0.4539945125579834, 0.5823385119438171, -0.09856779128313065, -0.4588388502597809, -0.03318604454398155, -0.0655510351061821, -0.9009107947349548, 0.22956673800945282, -0.6516003608703613, 0.42723965644836426, -0.5943676233291626, -0.1601676493883133, -0.07152647525072098, 0.1225152462720871, -0.34007441997528076, 0.31406480073928833, 0.23943747580051422, 1.474477767944336, -0.466447114944458, 0.6712007522583008, 1.102513313293457, -0.42347684502601624, -1.1336126327514648, -0.2946070730686188, 0.0420229397714138, -0.8494523763656616, 0.23454460501670837, -0.14409896731376648, 0.09768591821193695, -0.219864159822464, -1.076858401298523, -0.527233898639679, 0.8737678527832031, 0.6400755047798157, -0.47370803356170654, 0.15467669069766998, 0.06503474712371826, 0.4005805253982544, -0.4830009341239929, 0.8003765940666199, 0.43144142627716064, 0.4321490228176117, 0.4366341829299927, -0.8570042252540588, 0.2084978073835373, -0.7896490693092346, -0.07640090584754944, 0.12275262176990509, -0.660067617893219, 1.1302021741867065, -0.22630459070205688, -0.24203534424304962, 0.44126594066619873, 0.694526731967926, 0.14432662725448608, 0.27268892526626587, 1.3498910665512085, 0.6957550048828125, 0.4807009994983673, -0.21320433914661407, 1.5443590879440308, -0.21528132259845734, 0.19506798684597015, 0.851975679397583, -0.3282066285610199, 0.501587986946106, 0.5576939582824707, -0.1624584197998047, 0.5857133865356445, 1.2145615816116333, 0.26587769389152527, 0.6199716329574585, 0.04538985341787338, -0.40249425172805786, -0.009737087413668633, -0.13793392479419708, -0.43447577953338623, 0.13640549778938293, 0.2986944615840912, 0.11239457875490189, -0.26446208357810974, 0.20625190436840057, 0.3449110984802246, -0.2532694339752197, -0.2698337435722351, 0.7899070382118225, -0.05291005223989487, -0.6829331517219543, 0.6304264664649963, -0.7724530696868896, 0.6294156312942505, -0.9294743537902832, -0.2569069564342499, -0.33120036125183105, 0.1836085021495819, -0.005091244820505381, -1.2252353429794312, 0.41217079758644104, 0.0920928418636322, 0.19960492849349976, -0.27470195293426514, 0.5433364510536194, -0.007753311190754175, -0.6234173774719238, 0.5616757869720459, 0.2031259685754776, 0.32727766036987305, 0.0598653219640255, -0.9631974697113037, 0.30028316378593445, -0.18719616532325745, -0.2735602855682373, 0.15672512352466583, 0.4849494993686676, 0.2816035747528076, 0.6519407629966736, 0.2501259744167328, 0.3790840208530426, -0.14699243009090424, 0.24943485856056213, 1.0874578952789307, -0.5299764275550842, -0.7584612369537354, -0.5632666945457458, 0.2812146246433258, -0.5060900449752808, -0.7338433265686035, 0.7138128280639648, 0.9719520807266235, 0.47130638360977173, -0.36426544189453125, 0.49478957056999207, -0.3508768379688263, 0.4124033451080322, -0.4691188931465149, 1.0955873727798462, -0.9913619756698608, -0.40597856044769287, -0.9210204482078552, -1.0346274375915527, -0.1014658585190773, 0.1747160106897354, 0.5806959271430969, 0.004818109795451164, 0.962710976600647, 1.1074548959732056, -0.10028623789548874, 0.5732444524765015, 0.36417290568351746, 0.4879988133907318, 0.09734117239713669, 0.522913932800293, 1.4179328680038452, -0.25118890404701233, 0.6663832664489746, -1.0336955785751343, -0.6464102268218994, -0.11992833763360977, -1.027717113494873, -0.5710919499397278, -0.9726369380950928, -0.44370606541633606, -0.4374159872531891, 0.055952005088329315, 1.3939403295516968, 0.4170423448085785, -0.8484644889831543, -0.1976519078016281, 0.07797432690858841, 0.07924922555685043, -0.1870981901884079, -0.20123223960399628, 0.45508065819740295, 0.11197111010551453, -0.5288015007972717, 0.06398862600326538, 0.21201692521572113, 0.5737026333808899, 0.06995569169521332, -0.014891153201460838, 0.5491064190864563, -0.04617184400558472, 0.5822839736938477, 0.373026967048645, -0.40261146426200867, -0.89473557472229, 0.15873123705387115, 0.09440751373767853, -0.09360823035240173, 0.9990067481994629, -0.5365656614303589, -0.07137646526098251, 0.2298361212015152, -0.27646559476852417, 0.15616656839847565, -0.7183436155319214, 0.3237946927547455, -0.5773492455482483, 0.37127581238746643, 0.09958471357822418, 1.2146304845809937, -0.15081436932086945, -0.7366147637367249, 0.31078165769577026, 0.38243186473846436, -0.22240687906742096, -1.0134879350662231, -0.12064893543720245, -1.4099016189575195, -0.09131104499101639, 1.1511396169662476, 0.019311312586069107, -0.5642310976982117, -0.05856161564588547, -1.4480746984481812, 0.3705902099609375, -0.749096155166626, 0.8027704358100891, 0.5150635242462158, -0.08748187124729156, -0.5974001288414001, 0.0022084550000727177, 0.3187330961227417, -0.09743720293045044, -0.674249529838562, 0.06094309315085411, 0.5537192225456238, -0.2476089745759964, 0.5714830756187439, 0.46150147914886475, -0.21255221962928772, 0.6228215098381042, 0.482835054397583, 0.04373891279101372, -0.052006397396326065, -0.29374366998672485, -0.18384689092636108, 0.2545061409473419, -0.17397461831569672, -0.4054819643497467 ]
OpenBuddy/openbuddy-codellama2-34b-v11.1-bf16
OpenBuddy
"2023-09-20T06:40:58Z"
13,833
11
transformers
[ "transformers", "pytorch", "llama", "text-generation", "zh", "en", "fr", "de", "ja", "ko", "it", "ru", "text-generation-inference", "region:us" ]
text-generation
"2023-09-08T02:21:55Z"
--- language: - zh - en - fr - de - ja - ko - it - ru pipeline_tag: text-generation inference: false library_name: transformers --- # OpenBuddy - Open Multilingual Chatbot GitHub and Usage Guide: [https://github.com/OpenBuddy/OpenBuddy](https://github.com/OpenBuddy/OpenBuddy) Website and Demo: [https://openbuddy.ai](https://openbuddy.ai) ![Demo](https://raw.githubusercontent.com/OpenBuddy/OpenBuddy/main/media/demo.png) # Copyright Notice This model is built upon Meta's LLaMA series of models and is subject to Meta's licensing agreement. This model is intended for use only by individuals who have obtained approval from Meta and are eligible to download LLaMA. If you have not obtained approval from Meta, you must visit the https://ai.meta.com/llama/ page, read and agree to the model's licensing agreement, submit an application, and wait for approval from Meta before downloading the model from this page. ## Disclaimer All OpenBuddy models have inherent limitations and may potentially produce outputs that are erroneous, harmful, offensive, or otherwise undesirable. Users should not use these models in critical or high-stakes situations that may lead to personal injury, property damage, or significant losses. Examples of such scenarios include, but are not limited to, the medical field, controlling software and hardware systems that may cause harm, and making important financial or legal decisions. OpenBuddy is provided "as-is" without any warranty of any kind, either express or implied, including, but not limited to, the implied warranties of merchantability, fitness for a particular purpose, and non-infringement. In no event shall the authors, contributors, or copyright holders be liable for any claim, damages, or other liabilities, whether in an action of contract, tort, or otherwise, arising from, out of, or in connection with the software or the use or other dealings in the software. By using OpenBuddy, you agree to these terms and conditions, and acknowledge that you understand the potential risks associated with its use. You also agree to indemnify and hold harmless the authors, contributors, and copyright holders from any claims, damages, or liabilities arising from your use of OpenBuddy. ## 免责声明 所有OpenBuddy模型均存在固有的局限性,可能产生错误的、有害的、冒犯性的或其他不良的输出。用户在关键或高风险场景中应谨慎行事,不要使用这些模型,以免导致人身伤害、财产损失或重大损失。此类场景的例子包括但不限于医疗领域、可能导致伤害的软硬件系统的控制以及进行重要的财务或法律决策。 OpenBuddy按“原样”提供,不附带任何种类的明示或暗示的保证,包括但不限于适销性、特定目的的适用性和非侵权的暗示保证。在任何情况下,作者、贡献者或版权所有者均不对因软件或使用或其他软件交易而产生的任何索赔、损害赔偿或其他责任(无论是合同、侵权还是其他原因)承担责任。 使用OpenBuddy即表示您同意这些条款和条件,并承认您了解其使用可能带来的潜在风险。您还同意赔偿并使作者、贡献者和版权所有者免受因您使用OpenBuddy而产生的任何索赔、损害赔偿或责任的影响。
[ -0.3829328119754791, -1.0257344245910645, 0.24739442765712738, 0.5222320556640625, -0.3827137053012848, -0.07708698511123657, -0.20061594247817993, -0.4995051920413971, 0.2532411217689514, 0.47776755690574646, -0.37234291434288025, -0.6947087049484253, -0.5159785151481628, -0.12984108924865723, -0.024531736969947815, 1.1132941246032715, -0.2613799571990967, -0.22083589434623718, -0.06369809061288834, -0.1630956530570984, -0.6404982805252075, -0.2441488355398178, -0.4523232877254486, -0.09681235253810883, 0.09052419662475586, 0.5138334631919861, 0.880927324295044, 0.055519308894872665, 0.6702432036399841, 0.4060836732387543, 0.042722202837467194, -0.0301797054708004, -0.5808166861534119, 0.15894249081611633, 0.08674092590808868, -0.49894076585769653, -0.7812129855155945, -0.15664947032928467, 0.18205556273460388, 0.3631545603275299, -0.37481948733329773, 0.4800577163696289, 0.025960063561797142, 0.7082070112228394, -0.8427736759185791, 0.4410135746002197, -0.22463133931159973, 0.04742484167218208, -0.14262719452381134, -0.3676925301551819, -0.12571272253990173, -0.8063467144966125, -0.20635804533958435, -0.7036759257316589, -0.18067941069602966, 0.07701554149389267, 1.1393331289291382, 0.05935125797986984, -0.41831961274147034, -0.19997815787792206, -0.7779833078384399, 0.6110983490943909, -0.9066485166549683, 0.33132702112197876, 0.3901907801628113, 0.7812816500663757, -0.27880603075027466, -0.7692643404006958, -0.5880821943283081, -0.117465078830719, -0.05077683925628662, 0.4043063521385193, -0.3993648588657379, -0.11117462813854218, 0.22270026803016663, 0.5687419176101685, -0.7796725034713745, -0.030188584700226784, -0.6650543808937073, -0.017657369375228882, 0.5158980488777161, 0.21294574439525604, 0.5985346436500549, -0.3183062672615051, -0.5717427134513855, -0.010424304753541946, -0.5059831142425537, 0.43752244114875793, 0.4446776509284973, 0.20668360590934753, -0.7433850765228271, 0.8573192954063416, -0.3531304597854614, 0.4207930266857147, -0.05677228048443794, -0.5622242093086243, 0.644940197467804, -0.4692249000072479, -0.4082649052143097, -0.03155839443206787, 1.1802464723587036, 0.7019615769386292, 0.30607643723487854, 0.13604697585105896, -0.14438952505588531, -0.15652979910373688, 0.06514053046703339, -0.8472328782081604, -0.22511057555675507, 0.7118761539459229, -0.7365221381187439, -0.343341588973999, 0.030433250591158867, -1.0117106437683105, -0.16138425469398499, -0.031761836260557175, 0.3320838510990143, -0.5586196184158325, -0.6603848934173584, 0.25977644324302673, 0.010090992785990238, 0.0030709959100931883, 0.23150058090686798, -0.5932042598724365, 0.2542393207550049, 0.23948097229003906, 1.1628836393356323, 0.3446352481842041, -0.2443028688430786, -0.09204207360744476, 0.3602084815502167, -0.2733636498451233, 0.6545982956886292, -0.20910826325416565, -0.6262905597686768, 0.061084747314453125, 0.14932207763195038, 0.028788890689611435, -0.241122767329216, 0.37178927659988403, -0.22094151377677917, 0.6131024956703186, 0.3322184085845947, -0.09308495372533798, -0.48137661814689636, 0.056300703436136246, -0.5641366243362427, 1.0169095993041992, 0.10038018226623535, -0.9737969040870667, 0.171052947640419, -1.0662306547164917, -0.4095369875431061, -0.015120500698685646, -0.1759853959083557, -0.48084336519241333, -0.07935111224651337, 0.2316131889820099, 0.47194138169288635, -0.23886321485042572, 0.24591372907161713, -0.5311035513877869, -0.23881369829177856, 0.2728478014469147, -0.35649415850639343, 1.4546643495559692, 0.283538818359375, -0.14884904026985168, 0.49608975648880005, -0.737349271774292, 0.05217553302645683, 0.5803861021995544, -0.47774648666381836, -0.37172049283981323, -0.18971748650074005, 0.06279060244560242, 0.21019674837589264, 0.44653576612472534, -0.6577942967414856, 0.3946077823638916, -0.5317844152450562, 0.562575101852417, 0.8203189373016357, 0.08798719197511673, 0.3734251856803894, -0.5209499001502991, 0.8391828536987305, 0.09089870005846024, 0.5151437520980835, -0.39195626974105835, -0.8704432845115662, -0.5707458853721619, -0.6663272380828857, 0.05395027995109558, 0.9101919531822205, -0.5465699434280396, 0.6986105442047119, -0.2565914988517761, -0.7071651220321655, -0.7662631869316101, 0.026032408699393272, 0.3639383316040039, 0.3091331422328949, 0.3926823139190674, -0.18252095580101013, -0.4291469156742096, -0.63444584608078, -0.026053767651319504, -0.34578651189804077, -0.11886263638734818, 0.5055729746818542, 0.7422254085540771, -0.26078981161117554, 0.9014147520065308, -0.8735390305519104, -0.529948890209198, 0.041684746742248535, 0.0033219032920897007, 0.4246421158313751, 0.6735939383506775, 0.9822666645050049, -0.6976897120475769, -0.7238851189613342, 0.04623928666114807, -0.9382159113883972, 0.10431279987096786, -0.02214927226305008, -0.34387752413749695, 0.4068545699119568, 0.33482691645622253, -0.8373987078666687, 1.0247763395309448, 0.7626880407333374, -0.44769179821014404, 0.8369072079658508, -0.3852895200252533, 0.1998109370470047, -1.5031148195266724, 0.2566215693950653, -0.24479374289512634, -0.19290710985660553, -0.49454107880592346, 0.2651057541370392, 0.005837877746671438, -0.24897855520248413, -0.6266407370567322, 0.6919320821762085, -0.3886987566947937, 0.28329843282699585, -0.020193275064229965, 0.2415485680103302, -0.19286274909973145, 0.5411971211433411, -0.25393590331077576, 0.7376314997673035, 0.6070417165756226, -0.4762374460697174, 0.5533255934715271, 0.4035312533378601, -0.3831876814365387, 0.5973113179206848, -1.0224370956420898, -0.11947764456272125, -0.05384378880262375, 0.28115755319595337, -1.285772681236267, -0.39651814103126526, 0.7993949055671692, -0.9325313568115234, 0.2297266125679016, -0.08809131383895874, -0.6027529835700989, -0.44408488273620605, -0.4453664720058441, 0.16412805020809174, 0.6150971055030823, -0.36656054854393005, 0.5078964829444885, 0.27786052227020264, -0.26737526059150696, -0.7417187094688416, -0.7707244753837585, -0.2586915194988251, -0.21123865246772766, -0.9922246336936951, 0.23461055755615234, -0.17402203381061554, -0.047894347459077835, 0.11025112867355347, 0.14518901705741882, -0.21231648325920105, -0.01357678510248661, 0.57615065574646, 0.38052859902381897, -0.1782403439283371, 0.09000000357627869, 0.07824277877807617, -0.1903044432401657, -0.14010576903820038, 0.09404467791318893, 0.6239274144172668, -0.23572705686092377, -0.5860088467597961, -0.37188947200775146, 0.5230535268783569, 0.6645320057868958, -0.25997188687324524, 0.8779011964797974, 0.7455578446388245, -0.47679147124290466, 0.19855274260044098, -0.5220551490783691, -0.012850355356931686, -0.5535163879394531, 0.22109858691692352, -0.45919284224510193, -0.9070731401443481, 0.8242352604866028, 0.1725691705942154, 0.4330657422542572, 0.30146530270576477, 0.7812364101409912, -0.11917763203382492, 0.9812268018722534, 0.7408740520477295, 0.14414498209953308, 0.3854081928730011, -0.21978428959846497, 0.300167053937912, -0.7797913551330566, -0.3855896294116974, -0.6236744523048401, -0.264509379863739, -0.805865466594696, -0.35947564244270325, 0.39097005128860474, 0.36099645495414734, -0.6333006620407104, 0.27247104048728943, -0.7451452016830444, 0.40099698305130005, 0.8445178866386414, 0.2808189392089844, 0.35381945967674255, -0.11343222111463547, -0.3187606930732727, 0.25349298119544983, -0.48179906606674194, -0.6144976019859314, 1.1651798486709595, 0.3435516655445099, 0.9354089498519897, 0.4530982971191406, 0.7585283517837524, -0.18306894600391388, 0.13059788942337036, -0.7801220417022705, 0.5385420918464661, 0.22490960359573364, -1.027492880821228, -0.4568362534046173, -0.2631729245185852, -1.3997340202331543, 0.2664329409599304, -0.05086485296487808, -1.153456211090088, 0.167031928896904, 0.04897625744342804, -0.23727980256080627, 0.5406908392906189, -0.8078564405441284, 0.8719639182090759, -0.233439639210701, -0.31235286593437195, -0.11181201040744781, -0.7065929770469666, 0.6326819062232971, -0.057884033769369125, 0.47657525539398193, -0.37056830525398254, -0.2498471587896347, 0.41025808453559875, -0.6735890507698059, 1.0676814317703247, -0.18645517528057098, 0.054594121873378754, 0.41456079483032227, 0.3775750398635864, 0.2913956046104431, 0.259195476770401, 0.40444836020469666, 0.6761497259140015, 0.18705295026302338, -0.47129830718040466, -0.37209588289260864, 0.7589853405952454, -1.001846432685852, -0.6595823764801025, -0.519554078578949, -0.35441356897354126, 0.1443343609571457, 0.4688035547733307, 0.2230352908372879, 0.11748573929071426, -0.048401687294244766, 0.3254513740539551, 0.06150248646736145, -0.8054729104042053, 0.49833986163139343, 0.6734320521354675, -0.58170086145401, -0.6640514135360718, 0.8432057499885559, 0.023712173104286194, 0.18714529275894165, 0.1651604026556015, 0.2392120212316513, -0.1682165116071701, -0.4258568584918976, -0.47141340374946594, 0.3502040505409241, -0.6889890432357788, -0.3787403106689453, -0.43667563796043396, 0.08707842230796814, -0.7477127313613892, -0.23071929812431335, -0.1614144742488861, -0.4901147186756134, -0.2244657278060913, -0.08484052866697311, 0.6789169311523438, 0.27436304092407227, -0.37733855843544006, 0.19390666484832764, -1.0914695262908936, 0.5761361718177795, -0.0016748957568779588, 0.7864608764648438, -0.04876379668712616, -0.29281747341156006, -0.30102789402008057, 0.1298770010471344, -0.5733156800270081, -1.1310105323791504, 0.48093438148498535, -0.22582975029945374, 0.7455926537513733, 0.6524266600608826, 0.34914442896842957, 0.7319148182868958, -0.4556899070739746, 0.8943948149681091, 0.7875138521194458, -0.7147652506828308, 0.8786305785179138, -0.6724839210510254, 0.33633697032928467, 0.41758134961128235, 0.8603160977363586, -0.5338747501373291, -0.3235953748226166, -0.5785576105117798, -0.8868123292922974, 0.8917890191078186, 0.36798393726348877, 0.12932690978050232, 0.031108196824789047, -0.12697233259677887, -0.01842689886689186, 0.3288991451263428, -0.9413193464279175, -0.43965771794319153, -0.5102987289428711, -0.13377845287322998, 0.14918853342533112, -0.032433923333883286, -0.2863897979259491, -0.172383114695549, 0.6868515610694885, 0.1049194484949112, 0.5499288439750671, 0.046337876468896866, 0.07525847852230072, -0.37358763813972473, 0.35722488164901733, 0.7203841805458069, 0.7904996275901794, -0.5434634685516357, -0.3384830951690674, -0.07496436685323715, -0.5884239673614502, 0.06322207301855087, 0.15757086873054504, -0.2678516209125519, -0.04110312834382057, 0.1602197140455246, 0.7509738802909851, 0.2578521966934204, -0.7240453362464905, 0.7073497176170349, -0.016133533790707588, 0.014460071921348572, -0.5694838166236877, -0.053885482251644135, 0.2575468420982361, 0.35440459847450256, 0.08334340155124664, 0.09530187398195267, 0.07053367793560028, -0.5606724619865417, -0.2335314154624939, 0.31596818566322327, -0.4174288213253021, -0.19164784252643585, 0.8952019810676575, 0.3375941514968872, -0.5357471108436584, 0.6558402180671692, 0.01753729023039341, -0.18766385316848755, 0.6823251843452454, 0.3935682773590088, 1.092713475227356, -0.5568738579750061, 0.1294284611940384, 0.7469441294670105, 0.4673684239387512, 0.2836027443408966, 0.7749066948890686, 0.12290620803833008, -0.5746480822563171, -0.4811328649520874, -0.402163565158844, -0.5134623646736145, 0.24744026362895966, -0.7749717235565186, 0.5457850098609924, -0.5621909499168396, -0.4153282940387726, -0.05641348659992218, -0.33342787623405457, -0.6014606356620789, -0.13726817071437836, -0.05164705589413643, 0.9944322109222412, -0.5695433616638184, 0.6299751400947571, 0.9408807754516602, -1.0017365217208862, -0.6729146838188171, -0.22171401977539062, 0.10569004714488983, -0.8235350251197815, 0.5043345093727112, 0.22280855476856232, 0.05725701153278351, -0.36877673864364624, -0.5598267316818237, -0.8757225871086121, 1.216079592704773, 0.20264330506324768, -0.34393811225891113, -0.15936478972434998, 0.030222760513424873, 0.2560306787490845, -0.06723441928625107, 0.6842939853668213, -0.03134932741522789, 0.5774840712547302, -0.0871896967291832, -1.5197936296463013, 0.4223666787147522, -0.33650925755500793, -0.20486389100551605, 0.11604586243629456, -0.9635991454124451, 1.086164951324463, -0.5618744492530823, -0.15648142993450165, 0.08562518656253815, 0.4667840301990509, 0.4113858640193939, 0.42657679319381714, 0.41431888937950134, 0.40313592553138733, 0.5835358500480652, -0.21397723257541656, 1.0206793546676636, -0.5106669664382935, 0.4586408734321594, 0.9952132105827332, 0.07698222249746323, 0.9551531672477722, 0.2053496390581131, -0.5346075892448425, 0.83102947473526, 0.6009994149208069, -0.008719963021576405, 0.3247424364089966, 0.007551529444754124, -0.08718091994524002, -0.058773223310709, 0.12281850725412369, -0.7281757593154907, 0.41075238585472107, 0.4248448610305786, -0.3463538587093353, -0.20305214822292328, 0.14902186393737793, 0.044496793299913406, -0.23364028334617615, -0.11245686560869217, 0.795874834060669, 0.026437299326062202, -0.3430662155151367, 0.8330112099647522, 0.05025046691298485, 0.6237379908561707, -0.8886725902557373, -0.041289474815130234, -0.18493926525115967, 0.15791189670562744, -0.4237672984600067, -0.8907979130744934, 0.0727715715765953, -0.0461079403758049, 0.006416272837668657, 0.04492124915122986, 0.8048130869865417, 0.014939723536372185, -0.32592615485191345, 0.3476012051105499, 0.6093409657478333, 0.33462652564048767, 0.0600452721118927, -0.9060683250427246, 0.014430919662117958, -0.03228047490119934, -0.6318482160568237, 0.26925885677337646, 0.5257159471511841, 0.08397217094898224, 1.0440024137496948, 0.8173120617866516, 0.043108437210321426, -0.07581115514039993, -0.08196227252483368, 1.0397312641143799, -0.7332284450531006, -0.774600088596344, -0.6912410259246826, 0.9394267797470093, 0.0033502248115837574, -0.395232617855072, 0.873663067817688, 0.7258790135383606, 0.9876909852027893, -0.2615323066711426, 0.9930240511894226, -0.16540829837322235, 0.6597078442573547, -0.3250689208507538, 0.8023813962936401, -0.8188848495483398, -0.22298181056976318, -0.5017008185386658, -0.7198392152786255, -0.1920606791973114, 0.9137389063835144, -0.25110924243927, 0.19182081520557404, 0.6578985452651978, 0.7085544466972351, -0.03556456416845322, 0.08560258150100708, 0.2584248185157776, 0.4048331677913666, 0.19291703402996063, 0.6538125872612, 0.7245588302612305, -0.4460544288158417, 1.0575588941574097, -0.3776369094848633, -0.5123922824859619, -0.4526394307613373, -0.637238085269928, -1.2135920524597168, -0.4423444867134094, -0.4494367241859436, -0.49676498770713806, -0.15301506221294403, 0.9638522267341614, 0.7585229873657227, -0.8863579034805298, -0.47112610936164856, 0.28404825925827026, 0.14927919209003448, -0.38222259283065796, -0.3431679308414459, 0.33393594622612, -0.07057744264602661, -0.9404127597808838, 0.08723600953817368, 0.1808195412158966, 0.27292031049728394, -0.3747602701187134, 0.02075008861720562, -0.17255762219429016, 0.03323199972510338, 0.6299534440040588, 0.3579641282558441, -0.8455212116241455, -0.20857834815979004, -0.08371689170598984, 0.037903040647506714, 0.11342106014490128, 0.38780537247657776, -0.6590796709060669, 0.608217179775238, 0.7401993274688721, 0.011734033934772015, 0.43929097056388855, -0.19496308267116547, 0.2575666904449463, -0.5243865251541138, 0.3511127829551697, 0.05339198559522629, 0.5579336881637573, -0.0515783317387104, -0.3510943353176117, 0.76799076795578, 0.17618387937545776, -0.5929842591285706, -0.9792001843452454, 0.11728507280349731, -1.0656827688217163, -0.5017311573028564, 1.199729084968567, -0.27428388595581055, 0.027790982276201248, -0.11750884354114532, -0.4987795352935791, 0.3950245976448059, -0.7835671901702881, 0.7330237030982971, 0.5729304552078247, -0.245243102312088, -0.034348517656326294, -0.9230664968490601, 0.07422541081905365, -0.16537322103977203, -0.8455096483230591, -0.15064337849617004, 0.6552059054374695, 0.31194114685058594, 0.358158141374588, 0.9057561755180359, -0.19233116507530212, 0.4092849791049957, 0.044785596430301666, 0.42019030451774597, -0.41976869106292725, -0.02928183414041996, -0.09822502732276917, 0.2463594675064087, -0.393920361995697, -0.5187252163887024 ]
foduucom/stockmarket-pattern-detection-yolov8
foduucom
"2023-09-11T10:13:51Z"
13,821
45
ultralytics
[ "ultralytics", "tensorboard", "v8", "ultralyticsplus", "yolov8", "yolo", "vision", "object-detection", "pytorch", "finance", "stock market", "candlesticks", "pattern recognition", "option trading", "chart reader", "en", "model-index", "has_space", "region:us" ]
object-detection
"2023-08-10T14:13:24Z"
--- tags: - ultralyticsplus - yolov8 - ultralytics - yolo - vision - object-detection - pytorch - finance - stock market - candlesticks - pattern recognition - option trading - chart reader library_name: ultralytics library_version: 8.0.43 inference: false model-index: - name: foduucom/stockmarket-pattern-detection-yolov8 results: - task: type: object-detection metrics: - type: precision value: 0.61355 name: mAP@0.5(box) language: - en pipeline_tag: object-detection --- <div align="center"> <img width="500" alt="foduucom/stockmarket-pattern-detection-yolov8" src="https://huggingface.co/foduucom/stockmarket-pattern-detection-yolov8/resolve/main/thumbnail.jpg"> </div> # Model Card for YOLOv8s Stock Market Pattern Detection on Live Trading Video Data ## Model Summary The YOLOv8s Stock Market Pattern Detection model is an object detection model based on the YOLO (You Only Look Once) framework. It is designed to detect various chart patterns in real-time stock market trading video data. The model aids traders and investors by automating the analysis of chart patterns, providing timely insights for informed decision-making. The model has been fine-tuned on a diverse dataset and achieved high accuracy in detecting and classifying stock market patterns in live trading scenarios. ## Model Details ### Model Description The YOLOv8s Stock Market Pattern Detection model offers a transformative solution for traders and investors by enabling real-time detection of crucial chart patterns within live trading video data. As stock markets evolve rapidly, this model's capabilities empower users with timely insights, allowing them to make informed decisions with speed and accuracy. The model seamlessly integrates into live trading systems, providing instant pattern detection and classification. By leveraging advanced bounding box techniques and pattern-specific feature extraction, the model excels in identifying patterns such as 'Head and shoulders bottom,' 'Head and shoulders top,' 'M_Head,' 'StockLine,' 'Triangle,' and 'W_Bottom.' This enables traders to optimize their strategies, automate trading decisions, and respond to market trends in real-time. To facilitate integration into live trading systems or to inquire about customization, please contact us at info@foduu.com. Your collaboration and feedback are instrumental in refining and enhancing the model's performance in dynamic trading environments. - **Developed by:** FODUU AI - **Model type:** Object Detection - **Task:** Stock Market Pattern Detection on Live Trading Video Data The YOLOv8s Stock Market Pattern Detection model is designed to adapt to the fast-paced nature of live trading environments. Its ability to operate on real-time video data allows traders and investors to harness pattern-based insights without delay. ### Supported Labels ``` ['Head and shoulders bottom', 'Head and shoulders top', 'M_Head', 'StockLine', 'Triangle', 'W_Bottom'] ``` ## Uses ### Direct Use The YOLOv8s Stock Market Pattern Detection model can be directly integrated into live trading systems to provide real-time detection and classification of chart patterns. Traders can utilize the model's insights for timely decision-making. ### Downstream Use The model's real-time capabilities can be leveraged to automate trading strategies, generate alerts for specific patterns, and enhance overall trading performance. ### Training data The Stockmarket model was trained on custom dataset consisting of 9000/800 annotated images for training/validation respectively. ### Out-of-Scope Use The model is not designed for unrelated object detection tasks or scenarios outside the scope of stock market pattern detection in live trading video data. ## Bias, Risks, and Limitations The YOLOv8s Stock Market Pattern Detection model may exhibit some limitations and biases: - Performance may be affected by variations in video quality, lighting conditions, and pattern complexity within live trading data. - Rapid market fluctuations and noise in video data may impact the model's accuracy and responsiveness. - Market-specific patterns or anomalies not well-represented in the training data may pose challenges for detection. ### Recommendations Users should be aware of the model's limitations and potential biases. Thorough testing and validation within live trading simulations are advised before deploying the model in real trading environments. ## How to Get Started with the Model To begin using the YOLOv8s Stock Market Pattern Detection model on live trading video data, follow these steps: ```bash pip install ultralyticsplus==0.0.28 ultralytics==8.0.43 ``` - Load model and perform real-time prediction: ```python from ultralyticsplus import YOLO, render_result import cv2 # load model model = YOLO('foduucom/stockmarket-pattern-detection-yolov8') # set model parameters model.overrides['conf'] = 0.25 # NMS confidence threshold model.overrides['iou'] = 0.45 # NMS IoU threshold model.overrides['agnostic_nms'] = False # NMS class-agnostic model.overrides['max_det'] = 1000 # maximum number of detections per image # initialize video capture # Open the video file video_path = "path/to/your/video/file.mp4" cap = cv2.VideoCapture(video_path) # Loop through the video frames while cap.isOpened(): # Read a frame from the video success, frame = cap.read() if success: # Run YOLOv8 inference on the frame results = model(frame) # Visualize the results on the frame annotated_frame = results[0].plot() # Display the annotated frame cv2.imshow("YOLOv8 Inference", annotated_frame) # Break the loop if 'q' is pressed if cv2.waitKey(1) & 0xFF == ord("q"): break else: # Break the loop if the end of the video is reached break # Release the video capture object and close the display window cap.release() cv2.destroyAllWindows() ``` ## Training Details ### Training Data The model is trained on a diverse dataset containing stock market chart images with various chart patterns, capturing different market conditions and scenarios. ### Training Procedure The training process involves extensive computation and is conducted over multiple epochs. The model's weights are adjusted to minimize detection loss and optimize performance for stock market pattern detection. #### Metrics - mAP@0.5 (box): - All patterns: 0.932 - Individual patterns: Varies based on pattern type ### Model Architecture and Objective The YOLOv8s architecture incorporates modifications tailored to stock market pattern detection. It features a specialized backbone network, self-attention mechanisms, and pattern-specific feature extraction modules. ### Compute Infrastructure #### Hardware NVIDIA GeForce RTX 3080 card #### Software The model was trained and fine-tuned using a Jupyter Notebook environment. ## Model Card Contact For inquiries and contributions, please contact us at info@foduu.com. ```bibtex @ModelCard{ author = {Nehul Agrawal and Pranjal Singh Thakur}, title = {YOLOv8s Stock Market Pattern Detection on Live Trading Video Data}, year = {2023} } ```
[ 0.02919422835111618, -0.8475430607795715, -0.011483886279165745, -0.3060530722141266, -0.6725937724113464, -0.18820887804031372, 0.2292686402797699, -0.5689727663993835, 0.19652937352657318, 0.4200792908668518, -0.46675774455070496, -0.7287697196006775, -0.4424627721309662, -0.23272426426410675, -0.41680365800857544, 0.5316649675369263, 0.2507389485836029, 0.13963699340820312, 0.39165523648262024, -0.19873572885990143, -0.6236535906791687, -0.1683444082736969, -0.2687264084815979, 0.03327186033129692, -0.31344929337501526, 0.23310869932174683, 0.25034475326538086, 1.119914174079895, 0.27806782722473145, 0.5038282871246338, 0.013247846625745296, 0.23378059267997742, -0.45515093207359314, 0.39465388655662537, 0.41402456164360046, -0.6294137239456177, -0.7275226712226868, 0.15036310255527496, 0.4163033962249756, 0.10828415304422379, -0.1639639437198639, 0.5173817276954651, -0.22892765700817108, 0.17950496077537537, -0.5320495963096619, 0.504484236240387, -0.5393940210342407, 0.24218162894248962, -0.47671833634376526, -0.261149138212204, -0.37823596596717834, -0.019091427326202393, 0.02946855127811432, -0.7637420892715454, -0.0678437352180481, 0.5104843974113464, 0.8731383681297302, -0.1752007007598877, -0.266923725605011, 0.26134923100471497, -0.48542341589927673, 1.0058437585830688, -1.212714433670044, 0.2520448863506317, 0.3026726543903351, 0.39131614565849304, -0.21190382540225983, -0.38864439725875854, -0.3127465844154358, 0.041227757930755615, -0.08918310701847076, -0.22180265188217163, -0.08077676594257355, -0.40677013993263245, 0.5294616222381592, 0.2865900695323944, -0.5946231484413147, -0.14927266538143158, -0.9977503418922424, -0.2382638156414032, 0.7194945812225342, 0.3725685477256775, 0.13745231926441193, -0.2244710624217987, -0.2564215660095215, 0.0864030122756958, -0.2983587682247162, 0.19444191455841064, 0.5107287764549255, 0.15356436371803284, -0.25860705971717834, 0.1085047721862793, -0.2532108724117279, 0.8619844913482666, 0.35794857144355774, -0.6054348349571228, 0.6687415838241577, 0.00921978522092104, -0.6548386812210083, 0.1580456644296646, 0.6524772644042969, 0.5896139740943909, -0.07782182842493057, 0.22243328392505646, -0.2838907837867737, 0.06839016079902649, 0.24811513721942902, -0.6942334175109863, -0.27724596858024597, 0.19676487147808075, -0.8261520862579346, -0.7633817195892334, 0.23000454902648926, -0.7161991596221924, -0.27387210726737976, -0.13093240559101105, 0.7994961142539978, -0.4139975905418396, -0.5383543372154236, 0.6600045561790466, -0.5347257256507874, 0.6876220703125, 0.2894301116466522, -0.397392600774765, 0.12150528281927109, 0.48316988348960876, 0.6918914318084717, -0.07941034436225891, -0.38259485363960266, -0.9644876718521118, -0.0631086602807045, -0.4107685387134552, 0.7156009674072266, -0.12779633700847626, -0.11186488717794418, -0.23556773364543915, 0.34417784214019775, 0.16283254325389862, -0.35392048954963684, -0.0904478132724762, -0.6098344922065735, 0.49857863783836365, 0.09482397884130478, -0.7171728014945984, -0.5494326949119568, 0.5912346839904785, -0.4366742968559265, 0.7906959652900696, -0.29294437170028687, -0.8114128112792969, 0.5160267949104309, -0.7939823269844055, -0.14296486973762512, 0.3866323232650757, -0.19005876779556274, -0.774852454662323, -0.34107640385627747, -0.27375537157058716, 0.7881496548652649, 0.08233663439750671, 0.02122509479522705, -0.6836864948272705, -0.6540756821632385, 0.4571545720100403, -0.3495151400566101, 0.4495202898979187, 0.23450683057308197, -0.7202080488204956, 0.3940880298614502, -1.2407593727111816, -0.03736208751797676, 0.6280643343925476, 0.24402618408203125, -0.47429582476615906, -0.1459241807460785, 0.16148753464221954, 0.027271220460534096, -0.06575712561607361, -0.4466237723827362, 0.3783555030822754, -0.44539228081703186, 0.3752726912498474, 0.9549540281295776, -0.1581270843744278, 0.21309104561805725, -0.25324276089668274, 0.6184878945350647, 0.4838658571243286, 0.29366689920425415, -0.3718070387840271, -0.73232501745224, -0.320151150226593, -0.04573360085487366, -0.10061176866292953, 0.45900827646255493, -0.13257724046707153, 0.6285500526428223, 0.39366135001182556, -0.5689966678619385, -0.37054648995399475, -0.14927834272384644, 0.17968693375587463, 0.5093817710876465, 0.3243629038333893, -0.5204886198043823, -0.6169663667678833, -0.7112231254577637, -0.01754583790898323, 0.5172784924507141, 0.2503863573074341, -0.1416122019290924, 0.45493361353874207, -0.05948697775602341, 0.4984007179737091, -0.9194089770317078, -0.10022075474262238, -0.33155813813209534, 0.1623387634754181, 0.47483357787132263, 0.3147823214530945, 0.8272907733917236, -0.8962576389312744, -0.5979667901992798, 0.25617000460624695, -0.8145068287849426, 0.3681935667991638, 0.053332965821027756, -0.08800423890352249, 0.19603274762630463, 0.6264954209327698, -0.10039366781711578, 1.2366195917129517, 0.11503438651561737, -0.7150535583496094, 0.5556108355522156, -0.33265337347984314, 0.36451300978660583, -1.2670015096664429, -0.0013041746569797397, 0.35649630427360535, -0.4171501398086548, -0.9315210580825806, -0.22185824811458588, -0.13049720227718353, 0.19863255321979523, -0.5164743661880493, 0.3412466049194336, -0.32527971267700195, -0.1688229888677597, -0.5120257139205933, -0.24751758575439453, 0.03169892728328705, 0.47408702969551086, -0.17748428881168365, 0.6042101979255676, 0.9123811721801758, -0.5840892791748047, 0.45888713002204895, 0.10113970190286636, -0.8155500292778015, 0.33295464515686035, -0.5430154800415039, -0.13607637584209442, -0.28705301880836487, -0.22780004143714905, -1.0875848531723022, -0.3702341616153717, 0.8169295787811279, -0.4135982096195221, 0.38721513748168945, -0.3120664060115814, 0.23366013169288635, -0.22989054024219513, -0.7550380825996399, 0.21154378354549408, 0.5245850682258606, -0.12115950137376785, 0.3984665274620056, 0.2406531572341919, 0.610640823841095, -0.7120606303215027, -0.5847020745277405, -0.4490911364555359, -0.6488774418830872, -0.5230556130409241, 0.017931528389453888, -0.26884716749191284, -0.26585590839385986, -0.21541300415992737, -0.1497005671262741, -0.02773739956319332, 0.32556888461112976, 0.3276093006134033, 0.8546030521392822, -0.31388401985168457, -0.21477629244327545, -0.46945562958717346, -0.3091910779476166, 0.019074948504567146, -0.5463349223136902, 0.6363663077354431, -0.06881675124168396, -0.3210388422012329, -0.7882263660430908, 0.4348161220550537, 0.9119407534599304, -0.0728057399392128, 0.7542099952697754, 0.7800120115280151, -0.4751114845275879, -0.08203678578138351, -0.4886683225631714, -0.10296543687582016, -0.5734004974365234, 0.3740409016609192, -0.2557780146598816, -0.31052517890930176, 0.7196757197380066, 0.40603724122047424, -0.10660122334957123, 0.5769144892692566, 0.5142104625701904, 0.1982613205909729, 0.9700551629066467, 0.4561111330986023, -0.06297419220209122, 0.6913788914680481, -0.7284398078918457, 0.34647613763809204, -0.5293073058128357, -0.29867222905158997, 0.08665303885936737, -0.5069510340690613, -0.635172426700592, -0.2809555232524872, 0.2949431538581848, -0.15902182459831238, -0.5552804470062256, 0.47655555605888367, -0.6755656599998474, 0.3286433517932892, 0.7246764302253723, 0.19091947376728058, 0.23974870145320892, -0.19335192441940308, 0.10857991874217987, -0.1959269642829895, -0.41299429535865784, -0.19454975426197052, 1.3953415155410767, 0.34583190083503723, 0.9682592749595642, -0.31330305337905884, 0.3643021285533905, 0.626819372177124, -0.1278676837682724, -0.6884731650352478, 0.49300453066825867, 0.3313094675540924, -0.3171818256378174, -0.11547199636697769, 0.08251646906137466, -0.7925783395767212, 0.07834359258413315, -0.23545703291893005, -0.8839271068572998, 0.3895251750946045, 0.22024792432785034, -0.482008695602417, 0.5741759538650513, -0.7205976843833923, 1.2885733842849731, -0.279058039188385, -0.4075164496898651, 0.20468692481517792, -0.6790234446525574, 0.321236789226532, 0.1480369120836258, 0.19362600147724152, -0.2727501094341278, 0.32539719343185425, 0.7925851345062256, -0.6381041407585144, 0.798142671585083, -0.22251088917255402, -0.008875316008925438, 0.2799624502658844, -0.18442769348621368, 0.7042795419692993, -0.038539644330739975, 0.2270963191986084, -0.04867120832204819, 0.12061367183923721, -0.28214752674102783, -0.10626368224620819, 0.5548763871192932, -0.8435877561569214, -0.30957379937171936, -0.5919952392578125, -0.34536275267601013, 0.4182736873626709, 0.16979537904262543, 0.5250037312507629, 0.3833448886871338, 0.26294317841529846, 0.14892029762268066, 0.607476532459259, 0.016773443669080734, 0.2022395133972168, 0.530940055847168, -0.45216959714889526, -0.2371210753917694, 0.9997262358665466, 0.16857194900512695, 0.08315519988536835, -0.10310133546590805, 0.3516349196434021, -0.17896871268749237, -0.6193159818649292, -0.05828309804201126, -0.10737518221139908, -0.6166266798973083, -0.38012197613716125, -0.40808603167533875, -0.1497928500175476, -0.8317386507987976, -0.04025545343756676, -0.3597446084022522, 0.19204364717006683, -0.5512691140174866, -0.2751431167125702, 0.7484152913093567, 0.8328763842582703, -0.09619282931089401, 0.05450309067964554, -0.6486925482749939, 0.467544287443161, 0.5336712598800659, 0.33220940828323364, -0.05655162036418915, -0.8878809213638306, -0.31803274154663086, 0.03476628661155701, -0.42802801728248596, -1.0129996538162231, 0.8326147198677063, -0.27010175585746765, 0.4970090389251709, 0.8528210520744324, -0.06982287764549255, 0.8681439757347107, -0.017735589295625687, 0.44875285029411316, 0.21344223618507385, -0.7209290862083435, 0.6376723051071167, -0.46910032629966736, 0.14960186183452606, -0.013160883449018002, 0.4805699586868286, -0.5829678177833557, -0.12886987626552582, -0.5648962259292603, -0.7464327812194824, 1.0512079000473022, -0.07218712568283081, -0.48572516441345215, 0.3376840054988861, 0.37754935026168823, 0.19403837621212006, 0.32178783416748047, -0.9882825016975403, -0.425168514251709, -0.6333543658256531, 0.06245866045355797, 0.23843862116336823, 0.022788522765040398, 0.13645552098751068, -0.5368614792823792, 0.603948175907135, -0.28662940859794617, 0.4636710286140442, -0.02662857249379158, 0.05645053833723068, -0.3226451873779297, 0.056623756885528564, 0.6584028005599976, 0.5114346146583557, -0.6067402362823486, -0.5275358557701111, 0.03211723268032074, -0.46890100836753845, 0.19252827763557434, 0.15440721809864044, -0.1990530788898468, -0.2500166893005371, 0.2553669512271881, 0.837037980556488, 0.09057465195655823, -0.6058897376060486, 0.4461771547794342, -0.017769580706954002, -0.33230844140052795, -0.3915659189224243, 0.5384231209754944, -0.1910090148448944, 0.7089252471923828, 0.6129531860351562, 0.14556212723255157, 0.4223312735557556, -0.7375578284263611, 0.1887524127960205, 0.266973078250885, -0.13184282183647156, -0.4007910192012787, 0.8881687521934509, -0.35368284583091736, -0.45263615250587463, 0.36378341913223267, -0.5262139439582825, -0.504779040813446, 0.9668011665344238, 0.33216044306755066, 0.9301490783691406, -0.24867448210716248, -0.08600562810897827, 0.37743714451789856, -0.151312455534935, -0.3430461585521698, 0.6400129199028015, 0.3138251304626465, -0.7767956256866455, -0.43085774779319763, -0.29812607169151306, -0.08399579674005508, 0.6682984232902527, -0.9314677119255066, 0.7383638024330139, -0.3877437114715576, -0.11519758403301239, 0.3822302222251892, -0.10116750746965408, -0.4557207226753235, 0.0044782147742807865, 0.39215195178985596, 0.6467483043670654, -0.8108897805213928, 0.8257189989089966, 0.6377566456794739, -0.11055228114128113, -0.7414939999580383, -0.1771116703748703, 0.27625954151153564, -0.9471954703330994, 0.3241364359855652, 0.6723751425743103, 0.22214938700199127, -0.22539235651493073, -0.9081085920333862, -0.5091750621795654, 1.3558082580566406, -0.14490057528018951, -0.470998615026474, 0.14981232583522797, -0.4755696654319763, 0.1934385895729065, -0.5717805624008179, 0.2886107563972473, 0.46165093779563904, 0.43842408061027527, 0.4004133641719818, -0.47699716687202454, -0.31549543142318726, -0.3324429988861084, -0.3494359850883484, 0.4947376847267151, -0.6096785664558411, 1.0212817192077637, -0.0026768420357257128, 0.11618427187204361, -0.05961984395980835, 0.45807868242263794, 0.1858827918767929, 0.624765157699585, 0.5656967759132385, 0.48468199372291565, 0.4794369339942932, 0.2815733551979065, 0.4437989592552185, -0.4236464500427246, 0.5108509063720703, 0.9221429228782654, -0.3170686960220337, 0.6745443940162659, -0.044106584042310715, -0.2066400796175003, 0.335129976272583, 0.5475755333900452, -0.22721253335475922, 0.644007682800293, 0.1893075406551361, 0.2137787640094757, -0.5699385404586792, 0.23020660877227783, -0.5763079524040222, 0.890760064125061, 0.4064405858516693, -0.20313410460948944, 0.11864858865737915, 0.22758740186691284, -0.1284089982509613, -0.11746726930141449, -0.3874252438545227, 0.4653441607952118, -0.42529240250587463, -0.12609435617923737, 0.3308686316013336, 0.1867172122001648, 0.9987078309059143, -0.9685220718383789, 0.024601878598332405, -0.23134660720825195, 0.3540855348110199, 0.08931633085012436, -0.34306636452674866, 0.38106539845466614, -0.2995637059211731, 0.0612410344183445, -0.12861217558383942, 1.1486374139785767, -0.35045841336250305, -0.4679601490497589, 0.27027833461761475, 0.19357644021511078, 0.062168776988983154, -0.05177338793873787, -0.6846135854721069, 0.1364903599023819, 0.22100555896759033, -0.5676184892654419, 0.37337812781333923, 0.4524502158164978, 0.07522691041231155, 0.7310064435005188, 0.810463011264801, -0.22238226234912872, 0.11004266887903214, -0.4212280809879303, 0.8594125509262085, -1.1700869798660278, -0.6772385239601135, -0.5781460404396057, 0.5515604615211487, -0.4114486873149872, -0.22133198380470276, 0.7328563332557678, 0.5574681162834167, 0.737692654132843, -0.3085521161556244, 0.49809643626213074, 0.1778922826051712, 0.4761556386947632, -0.21647359430789948, 0.4975973069667816, -0.6307710409164429, 0.24360616505146027, -0.12339385598897934, -0.18187393248081207, -0.07246698439121246, 0.9010756015777588, -0.4113869071006775, -0.20603156089782715, 0.28245988488197327, 0.7071273922920227, -0.42424967885017395, -0.0019373750546947122, 0.6982419490814209, 0.651660680770874, 0.06896153837442398, 0.175924152135849, 0.4811909794807434, -1.0982544422149658, 0.39959943294525146, -0.2584533989429474, 0.05746481195092201, -0.7245908975601196, -0.7992268800735474, -0.9720501899719238, -0.3246541917324066, -0.7584989070892334, -0.30452537536621094, -0.19170397520065308, 1.1666162014007568, 0.7834325432777405, -0.7169198393821716, -0.4493519961833954, 0.28487804532051086, 0.01131349802017212, -0.3700091242790222, -0.35934969782829285, 0.07491740584373474, 0.12422765046358109, -0.5620895028114319, 0.47349050641059875, 0.7596189379692078, 0.5207946300506592, -0.5033129453659058, -0.09956489503383636, -0.505984902381897, -0.08865174651145935, 0.4842522442340851, 0.32733532786369324, -0.3008989989757538, -0.05042752996087074, 0.3401418924331665, 0.15676218271255493, 0.45414140820503235, 0.49615252017974854, -0.7826026678085327, 0.46836069226264954, 0.48112544417381287, -0.03335396945476532, 0.5258901119232178, -0.16797654330730438, 0.2910677194595337, -0.19387520849704742, 0.8142184615135193, -0.14860951900482178, 0.49934864044189453, -0.1882091909646988, -0.5423238277435303, 0.015560455620288849, 0.8055400848388672, -0.37120750546455383, -0.7058345079421997, -0.24417193233966827, -1.2205967903137207, -0.3810925781726837, 0.7799158692359924, -0.10890273749828339, -0.7597197890281677, -0.3079746663570404, -0.10525421798229218, -0.08577720075845718, -0.47528743743896484, 0.5809907913208008, 0.2289896309375763, 0.19666670262813568, -0.16758893430233002, -0.8160185217857361, 0.3503926992416382, -0.16646279394626617, -0.605712354183197, -0.2550677955150604, 0.31318435072898865, 0.6261810660362244, 0.061720505356788635, 0.7138468027114868, 0.2952975034713745, 0.6663561463356018, -0.0693524032831192, -0.20461951196193695, -0.2486952543258667, -0.05649896338582039, -0.33246511220932007, 0.2810371518135071, -0.16868369281291962, -0.9646786451339722 ]
reciprocate/gpt-j_rm_format-oa
reciprocate
"2023-05-13T14:28:19Z"
13,800
1
transformers
[ "transformers", "pytorch", "gptj", "text-classification", "en", "license:apache-2.0", "endpoints_compatible", "region:us" ]
text-classification
"2023-05-13T06:27:43Z"
--- license: apache-2.0 language: - en --- GPT-J for preference modeling - Dataset: https://huggingface.co/datasets/reciprocate/oasst_hh_shp_hellaswag_webgpt_rm_dataset - Logs: https://wandb.ai/sorry/autocrit/runs/y9des5kz?workspace=user-sorry Usage: ```python from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("reciprocate/gpt-j_rm_format-oa", revision="501f895") model = AutoModelForSequenceClassification.from_pretrained("reciprocate/gpt-j_rm_format-oa", revision="501f895") input = "<|prompter|>Are you lying right now?</s><|assistant|>I am :)</s><|endoftext|>" model(**tokenizer(input, return_tensors="pt"))[0].item() ``` Output: ```python -4.877448558807373 ```
[ -0.4196261763572693, -0.4866436719894409, 0.1324702650308609, -0.15692463517189026, -0.38575199246406555, -0.5694764256477356, -0.17162606120109558, 0.1050538420677185, 0.07437559217214584, 0.24503222107887268, -0.6309096217155457, -0.337523490190506, -0.6672871708869934, -0.052202221006155014, -0.18713593482971191, 1.3592126369476318, -0.3659933805465698, -0.1308860033750534, 0.09571290761232376, -0.06997393816709518, -0.16287018358707428, -0.7423486113548279, -0.8065322041511536, -0.3556147813796997, 0.23515471816062927, 0.09161751717329025, 0.6748266816139221, 0.4768979847431183, 0.25357455015182495, 0.3599183261394501, 0.1005113422870636, -0.16789138317108154, -0.45692092180252075, -0.025756098330020905, 0.00885514635592699, -0.2889600694179535, -0.72711181640625, 0.44696906208992004, 0.545641303062439, 0.45003223419189453, -0.22149783372879028, 0.41611742973327637, 0.125932976603508, 0.5530246496200562, -0.5620607137680054, 0.6109223365783691, -0.42600882053375244, 0.11321350187063217, 0.06492961943149567, 0.0764705017209053, -0.2981092929840088, -0.21106962859630585, 0.4362528622150421, -0.8268002867698669, 0.44286444783210754, 0.06666117161512375, 1.447372555732727, 0.4224545657634735, -0.4152167737483978, -0.03314324840903282, -0.3600100874900818, 0.7515800595283508, -0.8553704619407654, 0.41646432876586914, 0.5374508500099182, 0.06082214415073395, -0.07998764514923096, -0.7035996913909912, -0.6339057683944702, -0.214741513133049, -0.35423868894577026, 0.08686186373233795, -0.14419277012348175, 0.053322430700063705, 0.3419296443462372, 0.4681731164455414, -0.7506322264671326, -0.21411454677581787, -0.09112568944692612, -0.3705541491508484, 0.4994703531265259, 0.2407761961221695, 0.0654812902212143, -0.42058613896369934, -0.27069538831710815, -0.3800119459629059, -0.2913607358932495, -0.018647868186235428, 0.35249218344688416, 0.23292365670204163, -0.2380986362695694, 0.7304653525352478, -0.5072096586227417, 0.6169378757476807, 0.37350985407829285, -0.0077644032426178455, 0.5905894041061401, -0.299911767244339, -0.4593489170074463, -0.14742161333560944, 0.9773182272911072, 0.5654645562171936, 0.12175674736499786, 0.09903720021247864, -0.08498767763376236, -0.030420925468206406, 0.11541368067264557, -0.9343268871307373, -0.6656426787376404, 0.1632019281387329, -0.7956876754760742, -0.2329428791999817, 0.15087158977985382, -0.5774150490760803, 0.057632628828287125, -0.41377347707748413, 0.5676364302635193, -0.2691531479358673, -0.6466317176818848, 0.3123748302459717, -0.19434186816215515, 0.44600754976272583, 0.1603558361530304, -1.1702382564544678, 0.007729788310825825, 0.2490517497062683, 0.6520177125930786, -0.27216777205467224, -0.22593143582344055, 0.06757762283086777, 0.015838192775845528, 0.06814371049404144, 0.3835715651512146, -0.1167294979095459, -0.6287146806716919, -0.2477269172668457, 0.3614332973957062, -0.28643810749053955, -0.4304158091545105, 0.7697644829750061, -0.49663451313972473, 0.8532412052154541, -0.32044288516044617, -0.56532883644104, -0.21738775074481964, 0.40447136759757996, -0.38931208848953247, 1.0770343542099, 0.6228227615356445, -0.7226837277412415, 0.7136488556861877, -0.9744246006011963, -0.032970309257507324, -0.23066963255405426, 0.06974046677350998, -0.864956796169281, -0.24323584139347076, 0.20964619517326355, 0.5016571879386902, -0.020880408585071564, 0.5412957072257996, -0.48867854475975037, -0.1340034455060959, 0.06289905309677124, -0.5988552570343018, 0.8211535811424255, 0.4150768220424652, -0.4773429036140442, 0.4647018611431122, -0.6350042223930359, -0.0832163468003273, 0.4658607840538025, -0.08336977660655975, -0.2988036274909973, -0.4139043986797333, 0.19463267922401428, 0.3139069974422455, 0.5949926972389221, -0.6208388209342957, 0.49814656376838684, -0.11355879157781601, 0.4729641377925873, 1.0694502592086792, -0.30050909519195557, 0.2246914952993393, -0.2256632000207901, 0.30506184697151184, 0.14821268618106842, 0.4808138906955719, 0.4116417467594147, -0.42044156789779663, -0.9319217801094055, -0.13773539662361145, 0.14301109313964844, 0.22660775482654572, -0.5809242129325867, 0.8299930691719055, -0.26511308550834656, -0.4307944178581238, -0.3127416968345642, -0.41834160685539246, 0.28289344906806946, 0.8382903337478638, 0.473609060049057, -0.4397790729999542, -0.5026533603668213, -1.153188705444336, -0.09687180072069168, -0.2708253562450409, -0.17341548204421997, 0.23385027050971985, 0.542981743812561, -0.3853658437728882, 1.2178514003753662, -0.8043253421783447, -0.1901392936706543, 0.040653046220541, 0.0882246345281601, 0.5784539580345154, 0.6383965611457825, 0.7258002161979675, -0.8343369364738464, -0.5775359272956848, -0.3467971980571747, -0.6021808981895447, -0.0367153063416481, 0.21799540519714355, -0.22999690473079681, 0.2152925729751587, -0.17282851040363312, -0.6488872170448303, 0.5239893198013306, 0.2692977786064148, -0.7153685092926025, 0.9355893731117249, 0.015037985518574715, 0.36848610639572144, -1.1358416080474854, 0.2775954306125641, 0.15120360255241394, -0.19683092832565308, -0.4192236363887787, -0.13192862272262573, -0.2100772112607956, 0.20770689845085144, -0.4895353615283966, 0.7488085031509399, -0.05660945922136307, -0.009309029206633568, -0.2297041267156601, -0.3903903365135193, -0.009694138541817665, 0.5924496650695801, 0.19662979245185852, 0.9556977152824402, 0.4217125177383423, -0.6520518064498901, 0.4160715639591217, 0.7024708390235901, 0.11097948253154755, 0.2168000340461731, -0.5463525056838989, 0.03943641483783722, 0.23709924519062042, 0.34397220611572266, -1.0758532285690308, -0.43751537799835205, 0.67303866147995, -0.4695771336555481, 0.2927127778530121, -0.6965414881706238, -0.3814908564090729, -0.38429591059684753, -0.17986369132995605, 0.5098310708999634, 0.4788074791431427, -0.7241160273551941, 0.47147130966186523, 0.37576350569725037, -0.12719260156154633, -0.6798872947692871, -0.27481845021247864, -0.45573997497558594, -0.36243167519569397, -0.3002932667732239, 0.2269008606672287, -0.15111444890499115, 0.21266186237335205, 0.09450841695070267, -0.13325732946395874, 0.016117805615067482, -0.09644164144992828, 0.12688635289669037, 0.7290539145469666, 0.06679709255695343, -0.29482781887054443, -0.15248322486877441, -0.5733692646026611, 0.30032098293304443, -0.38915780186653137, 0.8756451606750488, -0.4358746409416199, -0.3544022738933563, -0.4017044007778168, -0.052084896713495255, 0.3300662934780121, 0.19649650156497955, 0.5389136075973511, 1.133729338645935, -0.021453488618135452, 0.3622477948665619, -0.3635581135749817, -0.15462711453437805, -0.5664249062538147, 0.5272918343544006, -0.4760950803756714, -0.9193704724311829, 0.5323556661605835, 0.19534674286842346, 0.08546257764101028, 0.9280748963356018, 0.6446391344070435, 0.2624025046825409, 1.122317910194397, 0.19736939668655396, -0.3300594091415405, 0.516473114490509, -0.4299490451812744, 0.09672358632087708, -0.8167866468429565, -0.11491677165031433, -0.2682502865791321, 0.06955669075250626, -0.7922186851501465, 0.13724583387374878, 0.46113601326942444, -0.20121672749519348, -0.7510984539985657, 0.6237335801124573, -0.9031076431274414, 0.32308948040008545, 0.8256195187568665, 0.05271287262439728, -0.01665380597114563, 0.01520945318043232, -0.17624181509017944, -0.02341768890619278, -0.4668075740337372, -0.4096507132053375, 1.442143440246582, 0.24739934504032135, 0.7135078310966492, 0.06584855914115906, 0.5546673536300659, 0.14341552555561066, 0.307311087846756, -0.7863999605178833, 0.4992124140262604, -0.2820304036140442, -0.6548106670379639, -0.3547082841396332, -0.607991099357605, -0.8151994347572327, 0.2588944435119629, 0.07627763599157333, -0.6616724133491516, 0.1481298804283142, 0.3954423666000366, -0.17511017620563507, 0.5227581858634949, -0.7304767966270447, 1.1283756494522095, 0.08606186509132385, -0.4676903188228607, 0.09960499405860901, -0.6363422274589539, 0.23309263586997986, 0.5175020098686218, -0.3540569245815277, -0.3035423159599304, 0.3966625928878784, 1.002611517906189, -0.2735390365123749, 0.5906083583831787, -0.5478787422180176, 0.10599495470523834, 0.17034350335597992, -0.01853167451918125, 0.33713313937187195, 0.03212374821305275, -0.09504719078540802, 0.27840498089790344, 0.18781481683254242, -0.3928794860839844, -0.2827417552471161, 0.6975775957107544, -1.2334460020065308, -0.5462291836738586, -0.7492942214012146, -0.3312341868877411, -0.21157540380954742, 0.279646635055542, 0.4339958429336548, 0.32462188601493835, -0.14393632113933563, -0.15905097126960754, 0.38814106583595276, -0.0020300985779613256, 0.7177788615226746, 0.42621105909347534, -0.22604642808437347, -0.5425356030464172, 0.9725849628448486, -0.05822496488690376, 0.12726467847824097, 0.05725230649113655, 0.26316532492637634, -0.8546982407569885, -0.3188571333885193, -0.569148600101471, 0.22774119675159454, -0.5237427353858948, -0.11570718884468079, -0.5925365090370178, -0.3839932084083557, -0.6984174847602844, 0.12894859910011292, -0.44238045811653137, -0.5918064117431641, -0.4259335696697235, -0.25167936086654663, 0.4639659821987152, 0.4256760776042938, -0.13123515248298645, 0.4562889635562897, -0.5854843854904175, 0.2570924460887909, 0.4325989782810211, 0.6661911010742188, -0.23731832206249237, -0.8701757192611694, -0.13723990321159363, -0.07075203210115433, -0.492080420255661, -0.5285388827323914, 0.8604154586791992, -0.25971654057502747, 0.5403940081596375, 0.33278098702430725, 0.09835928678512573, 0.6850743889808655, -0.10103844106197357, 1.0671050548553467, 0.13635115325450897, -0.8675424456596375, 0.2820442318916321, -0.6170311570167542, 0.1640520542860031, 0.5743067264556885, 0.536532998085022, -0.5697054862976074, 0.19282811880111694, -0.9498016238212585, -1.1160517930984497, 0.7877085208892822, 0.248940110206604, -0.15555116534233093, 0.12406172603368759, 0.5107253789901733, 0.4866025745868683, 0.3767046332359314, -1.0648193359375, -0.710811972618103, -0.7790940403938293, -0.24610203504562378, 0.10113584250211716, -0.18942183256149292, -0.12064073234796524, -0.5176518559455872, 1.2917604446411133, -0.19216008484363556, 0.6785179972648621, 0.3130378723144531, 0.09793275594711304, 0.0037484087515622377, 0.4420367479324341, 0.4960829019546509, 0.3852464556694031, -0.6573600769042969, -0.12807941436767578, -0.09362366795539856, -0.6077266335487366, 0.3106492757797241, 0.2460729330778122, -0.2098369598388672, -0.16006827354431152, -0.1693580448627472, 1.0095441341400146, -0.5526887774467468, 0.1168055459856987, 0.5275704860687256, -0.28881019353866577, -0.2541768252849579, -0.6973949670791626, 0.14590631425380707, -0.33369961380958557, -0.37219321727752686, 0.3906901478767395, 0.13624081015586853, 0.342424213886261, -0.11077328026294708, 0.3399975597858429, 0.39114710688591003, -0.47634458541870117, -0.32853227853775024, 0.6871970295906067, 0.11227627843618393, 0.27454033493995667, 0.8357537388801575, -0.47150886058807373, -0.5296951532363892, 0.44551101326942444, 0.5397870540618896, 1.136884093284607, 0.011596658267080784, 0.07442840188741684, 0.6817028522491455, -0.18070435523986816, -0.034723181277513504, 0.14370431005954742, 0.18563447892665863, -1.017807960510254, -0.255086213350296, -0.7179532051086426, -0.3821786642074585, 0.5628556609153748, -0.9280990958213806, 0.22011710703372955, -0.34032145142555237, -0.5469183325767517, -0.28900620341300964, 0.058047015219926834, -0.7475875616073608, 0.3062199652194977, -0.10783003270626068, 0.44778159260749817, -1.1200008392333984, 0.8376169204711914, 0.4712357521057129, -0.4953979253768921, -1.01105535030365, -0.1171840950846672, 0.10786475241184235, -0.8025301098823547, 0.5541832447052002, 0.11164077371358871, 0.16715167462825775, 0.12052501738071442, -0.5460931658744812, -0.8813784718513489, 1.0158048868179321, 0.15887685120105743, -0.3804621696472168, 0.0040298085659742355, 0.15883539617061615, 0.2425353080034256, -0.23311829566955566, 0.7995049357414246, 0.6705739498138428, 0.6534435153007507, -0.11829022318124771, -1.2468937635421753, 0.10060792416334152, -0.42789241671562195, -0.2727912962436676, 0.2282899171113968, -0.9605809450149536, 1.1532557010650635, 0.11432469636201859, 0.19011302292346954, -0.004751225467771292, 0.5866804122924805, 0.24857965111732483, 0.08721248805522919, 0.7285400629043579, 0.8016477823257446, 0.2166011780500412, -0.3641788363456726, 0.8191938400268555, -0.09218883514404297, 1.0079472064971924, 1.1113489866256714, -0.17011809349060059, 0.4513072073459625, 0.492475688457489, -0.5089744329452515, 0.5101891756057739, 0.9592714905738831, -0.3069297671318054, 0.656721293926239, -0.08673477172851562, -0.1617823839187622, -0.20849378407001495, 0.10259132832288742, -0.6492879986763, 0.4311519265174866, 0.17028215527534485, -0.49245986342430115, -0.10209568589925766, -0.131440207362175, 0.20392383635044098, -0.5378195643424988, -0.17852023243904114, 0.7935642600059509, -0.33394497632980347, -0.6294306516647339, 0.7299802303314209, -0.07756518572568893, 0.8715662360191345, -0.8007214665412903, -0.0032870392315089703, 0.06173234060406685, 0.1545935869216919, -0.12892022728919983, -0.8001724481582642, 0.11301501840353012, -0.3527890145778656, -0.3739146292209625, -0.1855112463235855, 0.7214922904968262, -0.43605875968933105, -0.18721160292625427, 0.12273634970188141, 0.3584883511066437, 0.11924386024475098, -0.016591638326644897, -1.160394549369812, -0.26510095596313477, 0.28797367215156555, -0.622657835483551, 0.5338555574417114, -0.0299113430082798, 0.018016014248132706, 0.6358839273452759, 0.8583999872207642, -0.17097550630569458, -0.024754544720053673, 0.19883887469768524, 1.0045536756515503, -0.5930477976799011, -0.6500312089920044, -0.8893565535545349, 0.4234429597854614, -0.17380300164222717, -0.69996178150177, 0.7110717296600342, 0.7888374328613281, 0.962161123752594, -0.4025566577911377, 0.9498425126075745, -0.3204551637172699, 0.4118243157863617, -0.46500179171562195, 0.8466980457305908, -0.16764873266220093, -0.15219953656196594, -0.251675546169281, -0.8472812175750732, 0.016940370202064514, 0.8548574447631836, -0.4771534502506256, 0.3608677387237549, 0.4868179261684418, 0.772315263748169, -0.3188478648662567, 0.087469182908535, 0.11261255294084549, 0.21826720237731934, 0.4765779674053192, 0.3026333451271057, 0.6226670145988464, -0.5639855861663818, 0.21276527643203735, -0.41238123178482056, -0.33848264813423157, -0.2326667457818985, -0.8216699361801147, -0.6926066279411316, -0.6166845560073853, -0.3976971209049225, -0.6062145829200745, -0.18198858201503754, 1.497354507446289, 0.9713726043701172, -1.0122528076171875, -0.1269056648015976, 0.04145466908812523, -0.34316954016685486, -0.10271237045526505, -0.32905980944633484, 0.8047320246696472, -0.16796304285526276, -0.8005284070968628, 0.014767132699489594, -0.1958349645137787, 0.39911097288131714, -0.17366841435432434, -0.14502671360969543, 0.015180699527263641, -0.41951972246170044, 0.41277551651000977, 0.24958769977092743, -0.7726306319236755, -0.5536512732505798, -0.19256950914859772, 0.05178864300251007, 0.31975674629211426, 0.5351142287254333, -0.6189735531806946, 0.2669028639793396, 0.29235967993736267, 0.21215225756168365, 0.7406660318374634, 0.0669245794415474, 0.5758675336837769, -0.7473812103271484, 0.156692773103714, -0.0165769774466753, 0.7104085683822632, 0.3069533109664917, -0.5037345886230469, 0.6209185123443604, 0.49688100814819336, -0.818149209022522, -0.42863282561302185, 0.11516232788562775, -1.2382599115371704, 0.04728834331035614, 1.2553980350494385, -0.3547669053077698, -0.22643963992595673, -0.264103502035141, -0.5090207457542419, 0.4487948715686798, -0.8297744989395142, 0.9281800985336304, 0.7070684432983398, -0.502622127532959, 0.053397614508867264, -0.14299295842647552, 0.7570016980171204, 0.49146556854248047, -0.5975368022918701, 0.27174896001815796, 0.3128100335597992, 0.7867323160171509, 0.23587802052497864, 0.772615909576416, -0.29812192916870117, 0.1087832972407341, -0.1419115662574768, 0.19968385994434357, -0.44068944454193115, 0.09042228758335114, -0.21304287016391754, 0.09967296570539474, -0.04002739489078522, -0.47302088141441345 ]
nvidia/mit-b1
nvidia
"2022-08-06T10:25:12Z"
13,799
1
transformers
[ "transformers", "pytorch", "tf", "segformer", "image-classification", "vision", "dataset:imagenet_1k", "arxiv:2105.15203", "license:other", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
image-classification
"2022-03-02T23:29:05Z"
--- license: other tags: - vision datasets: - imagenet_1k widget: - src: https://huggingface.co/datasets/hf-internal-testing/fixtures_ade20k/resolve/main/ADE_val_00000001.jpg example_title: House - src: https://huggingface.co/datasets/hf-internal-testing/fixtures_ade20k/resolve/main/ADE_val_00000002.jpg example_title: Castle --- # SegFormer (b1-sized) encoder pre-trained-only SegFormer encoder fine-tuned on Imagenet-1k. It was introduced in the paper [SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers](https://arxiv.org/abs/2105.15203) by Xie et al. and first released in [this repository](https://github.com/NVlabs/SegFormer). Disclaimer: The team releasing SegFormer did not write a model card for this model so this model card has been written by the Hugging Face team. ## Model description SegFormer consists of a hierarchical Transformer encoder and a lightweight all-MLP decode head to achieve great results on semantic segmentation benchmarks such as ADE20K and Cityscapes. The hierarchical Transformer is first pre-trained on ImageNet-1k, after which a decode head is added and fine-tuned altogether on a downstream dataset. This repository only contains the pre-trained hierarchical Transformer, hence it can be used for fine-tuning purposes. ## Intended uses & limitations You can use the model for fine-tuning of semantic segmentation. See the [model hub](https://huggingface.co/models?other=segformer) to look for fine-tuned versions on a task that interests you. ### How to use Here is how to use this model to classify an image of the COCO 2017 dataset into one of the 1,000 ImageNet classes: ```python from transformers import SegformerFeatureExtractor, SegformerForImageClassification from PIL import Image import requests url = "http://images.cocodataset.org/val2017/000000039769.jpg" image = Image.open(requests.get(url, stream=True).raw) feature_extractor = SegformerFeatureExtractor.from_pretrained("nvidia/mit-b1") model = SegformerForImageClassification.from_pretrained("nvidia/mit-b1") inputs = feature_extractor(images=image, return_tensors="pt") outputs = model(**inputs) logits = outputs.logits # model predicts one of the 1000 ImageNet classes predicted_class_idx = logits.argmax(-1).item() print("Predicted class:", model.config.id2label[predicted_class_idx]) ``` For more code examples, we refer to the [documentation](https://huggingface.co/transformers/model_doc/segformer.html#). ### License The license for this model can be found [here](https://github.com/NVlabs/SegFormer/blob/master/LICENSE). ### BibTeX entry and citation info ```bibtex @article{DBLP:journals/corr/abs-2105-15203, author = {Enze Xie and Wenhai Wang and Zhiding Yu and Anima Anandkumar and Jose M. Alvarez and Ping Luo}, title = {SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers}, journal = {CoRR}, volume = {abs/2105.15203}, year = {2021}, url = {https://arxiv.org/abs/2105.15203}, eprinttype = {arXiv}, eprint = {2105.15203}, timestamp = {Wed, 02 Jun 2021 11:46:42 +0200}, biburl = {https://dblp.org/rec/journals/corr/abs-2105-15203.bib}, bibsource = {dblp computer science bibliography, https://dblp.org} } ```
[ -0.9090688228607178, -0.6825648546218872, 0.06788548082113266, 0.1432979851961136, -0.3312802314758301, -0.34835100173950195, 0.039915163069963455, -0.6273194551467896, 0.27037137746810913, 0.569664478302002, -0.8096998333930969, -0.5310156345367432, -0.7586677670478821, 0.10816646367311478, -0.3441050052642822, 0.8101464509963989, 0.14296980202198029, -0.07422608137130737, -0.4462428390979767, -0.24220286309719086, 0.015048699453473091, -0.2964975833892822, -0.62376469373703, -0.3591664433479309, 0.41039296984672546, 0.2260189652442932, 0.5731889605522156, 0.746269166469574, 0.7567209601402283, 0.4757537841796875, -0.402539998292923, 0.08366255462169647, -0.2896259129047394, -0.2752159535884857, 0.020017772912979126, -0.09317732602357864, -0.37305527925491333, 0.001767776207998395, 0.397777795791626, 0.6236220598220825, 0.14946016669273376, 0.32029688358306885, 0.02809540182352066, 0.44041505455970764, -0.5195221900939941, 0.06063699349761009, -0.4721240997314453, 0.19587962329387665, -0.009463204070925713, -0.10465022921562195, -0.33200666308403015, -0.19383233785629272, 0.258197546005249, -0.529154360294342, 0.6232688426971436, 0.04789827764034271, 1.4874844551086426, 0.48906469345092773, -0.31199732422828674, -0.05645151808857918, -0.34357789158821106, 0.7665330767631531, -0.6846814155578613, 0.4056437015533447, 0.044315021485090256, 0.3434484601020813, 0.11577779054641724, -0.9766168594360352, -0.44720399379730225, 0.12004823982715607, -0.24553433060646057, 0.02233903855085373, -0.3695591688156128, 0.11055584996938705, 0.4143054485321045, 0.4976901412010193, -0.43456342816352844, 0.11352095007896423, -0.6999733448028564, -0.39531341195106506, 0.6195173859596252, 0.004947381559759378, 0.19728609919548035, -0.35317152738571167, -0.7535122632980347, -0.41779887676239014, -0.3127475380897522, 0.11215272545814514, 0.2744276523590088, 0.04882000759243965, -0.27902957797050476, 0.4179019033908844, -0.053366079926490784, 0.7323166131973267, 0.4357224404811859, -0.1660955399274826, 0.5340263247489929, -0.14223508536815643, -0.3803724944591522, 0.1231558546423912, 0.8986942172050476, 0.42172208428382874, 0.00020310968102421612, 0.05897090584039688, -0.04625459760427475, 0.1778985559940338, 0.2434607595205307, -1.236568808555603, -0.1685428023338318, 0.02994028851389885, -0.5164951086044312, -0.39010879397392273, 0.12622900307178497, -0.7947801947593689, -0.03420859947800636, -0.14461234211921692, 0.5003664493560791, -0.3037951588630676, -0.08646474778652191, 0.15922515094280243, -0.13627153635025024, 0.775162935256958, 0.20852212607860565, -0.7300027012825012, 0.20328690111637115, 0.5433966517448425, 0.7653771042823792, -0.20830978453159332, -0.24436025321483612, -0.10097938030958176, -0.12753340601921082, -0.1505330353975296, 0.852894127368927, -0.3676081895828247, -0.3034706115722656, -0.21828165650367737, 0.6103336811065674, -0.2344873696565628, -0.5966988801956177, 0.7769293785095215, -0.5546628832817078, 0.19465066492557526, -0.07390793412923813, -0.485187828540802, -0.47287875413894653, 0.3377268612384796, -0.5860992074012756, 0.8806871771812439, 0.16171671450138092, -0.8890121579170227, 0.48761701583862305, -0.5638775825500488, -0.2616522014141083, -0.0031244144774973392, 0.07347622513771057, -0.828957200050354, -0.010408234782516956, 0.3950287103652954, 0.5159217715263367, -0.2337311953306198, 0.23733101785182953, -0.5146258473396301, -0.22854489088058472, -0.005222696345299482, -0.16788898408412933, 0.9243872761726379, 0.31594035029411316, -0.32297569513320923, 0.37224212288856506, -0.685645580291748, 0.037190716713666916, 0.42334049940109253, 0.020686639472842216, -0.025034988299012184, -0.30170145630836487, 0.1977870762348175, 0.37219369411468506, 0.22933906316757202, -0.6409102082252502, 0.023386741057038307, -0.3125688433647156, 0.35679730772972107, 0.7369080185890198, 0.08767950534820557, 0.519557535648346, -0.14045321941375732, 0.39794179797172546, 0.21161985397338867, 0.429697722196579, -0.21185193955898285, -0.21216508746147156, -1.1728270053863525, -0.24614562094211578, 0.2748221457004547, 0.12406095117330551, -0.5144946575164795, 0.6231343746185303, -0.2549465596675873, -0.6571460366249084, -0.4859708547592163, -0.12392763793468475, 0.20845533907413483, 0.5251200199127197, 0.51307612657547, -0.4012853503227234, -0.7765390276908875, -1.1430704593658447, 0.04662858322262764, 0.22031648457050323, 0.07160875201225281, 0.2983074486255646, 0.6411245465278625, -0.691933274269104, 0.7534481287002563, -0.63680499792099, -0.3112454414367676, -0.20791217684745789, -0.06859056651592255, 0.27596449851989746, 0.6737356781959534, 0.5919668078422546, -0.7937995791435242, -0.3809475600719452, -0.19141770899295807, -0.6453802585601807, -0.02804798260331154, 0.07874879240989685, -0.3776107430458069, 0.14474791288375854, 0.4695415794849396, -0.444669634103775, 0.4425279200077057, 0.45768052339553833, -0.5708512663841248, 0.3101968765258789, -0.03062787652015686, -0.007656718138605356, -0.9618610143661499, 0.13562452793121338, 0.15947802364826202, -0.17866268754005432, -0.5169934034347534, 0.12923987209796906, -0.03401195630431175, -0.1253918707370758, -0.5891774296760559, 0.5519587993621826, -0.3214229643344879, -0.0009841193677857518, -0.23779337108135223, -0.20863781869411469, 0.07280541211366653, 0.790936291217804, 0.1522376388311386, 0.3416551649570465, 0.5760149359703064, -0.6853687167167664, 0.05835495516657829, 0.5382605195045471, -0.4160156846046448, 0.4287869334220886, -1.015687346458435, 0.10603339225053787, -0.1696486920118332, 0.07433035224676132, -0.6919490098953247, -0.3429155945777893, 0.4038378894329071, -0.35043832659721375, 0.41945791244506836, -0.34286776185035706, -0.22506119310855865, -0.5288945436477661, -0.09705629199743271, 0.3634412884712219, 0.48802322149276733, -0.7876299619674683, 0.5356289148330688, 0.5255681872367859, 0.15696202218532562, -0.43224284052848816, -0.6828126311302185, -0.3122835159301758, -0.26829108595848083, -1.026329755783081, 0.6131550669670105, -0.04561226814985275, 0.2534000873565674, 0.0893385261297226, -0.3257054090499878, -0.052592843770980835, 0.011288474313914776, 0.41010791063308716, 0.5060155391693115, -0.1328180730342865, -0.28619906306266785, 0.004487302619963884, -0.4678674638271332, 0.14357110857963562, -0.16308802366256714, 0.6265208721160889, -0.3821861147880554, -0.4341391921043396, -0.229253888130188, -0.011979703791439533, 0.3853108882904053, -0.30302730202674866, 0.5320240259170532, 1.1264952421188354, -0.2847362160682678, -0.014526797458529472, -0.5617331862449646, -0.24937425553798676, -0.5760446786880493, 0.3620963394641876, -0.17488865554332733, -1.0977965593338013, 0.4808478355407715, -0.03316362574696541, -0.0021322425454854965, 0.9545781016349792, 0.3331550061702728, 0.1398254930973053, 1.1508901119232178, 0.6095396876335144, 0.31617432832717896, 0.5184488296508789, -0.7934470176696777, 0.13808540999889374, -0.9225465059280396, -0.5307176113128662, -0.45295798778533936, -0.43782496452331543, -0.8142784237861633, -0.6047552227973938, 0.3335549235343933, 0.11975748836994171, -0.454461008310318, 0.5046927332878113, -0.9109541177749634, 0.3863760530948639, 0.5498962998390198, 0.0533534437417984, -0.19760461151599884, 0.1464863419532776, -0.08525072783231735, 0.0897211953997612, -0.7533205151557922, -0.3609364926815033, 0.45940446853637695, 0.48673340678215027, 0.7471947073936462, -0.23484481871128082, 0.6645973920822144, -0.11077334731817245, 0.035372473299503326, -0.8532841205596924, 0.6300548315048218, -0.16823355853557587, -0.7399948835372925, -0.13704365491867065, -0.34918132424354553, -0.9724494814872742, 0.3653431534767151, -0.15886178612709045, -0.7530491352081299, 0.6832675933837891, 0.09838271886110306, -0.1696951538324356, 0.2968898117542267, -0.5421857237815857, 1.213704228401184, -0.2301722913980484, -0.4435552954673767, 0.13682059943675995, -0.7411295175552368, 0.1773175746202469, 0.21654817461967468, -0.06712260097265244, -0.35180938243865967, 0.2715582251548767, 0.9636029601097107, -0.6079863905906677, 0.7212526798248291, -0.3727653920650482, 0.37245362997055054, 0.5659236907958984, -0.14381395280361176, 0.3943711221218109, -0.09105390310287476, 0.20184198021888733, 0.47745269536972046, 0.24205651879310608, -0.3618590831756592, -0.3190898001194, 0.6189160943031311, -0.9086022973060608, -0.5854646563529968, -0.49617302417755127, -0.14029468595981598, -0.009992023929953575, 0.3897181749343872, 0.6050381064414978, 0.42377910017967224, -0.10507338494062424, 0.5024498105049133, 0.654740571975708, -0.3791542649269104, 0.49904683232307434, 0.13119353353977203, -0.19025646150112152, -0.38251498341560364, 0.8607964515686035, -0.10720249265432358, 0.055357832461595535, 0.31487858295440674, 0.28455850481987, -0.3545040488243103, -0.26356154680252075, -0.35213059186935425, 0.19300076365470886, -0.7565299868583679, -0.42035433650016785, -0.8989524245262146, -0.5697609186172485, -0.4212144911289215, -0.37703973054885864, -0.4438062012195587, -0.273886501789093, -0.41374701261520386, -0.07607243210077286, 0.28853562474250793, 0.32428866624832153, -0.16788290441036224, 0.44305306673049927, -0.659830629825592, 0.11431151628494263, 0.3705229163169861, 0.34885865449905396, 0.005731782875955105, -0.629535436630249, -0.15848933160305023, -0.025168776512145996, -0.4605710506439209, -0.5065073370933533, 0.6549180150032043, 0.18026700615882874, 0.5498712062835693, 0.6174836754798889, -0.11330161243677139, 0.9544504284858704, -0.16640688478946686, 0.5583519339561462, 0.44292593002319336, -0.7676939368247986, 0.39889687299728394, -0.10372485965490341, 0.5560518503189087, 0.491350382566452, 0.3399725556373596, -0.5021858215332031, 0.09674753248691559, -0.7710221409797668, -1.0135204792022705, 0.9350265264511108, 0.07282557338476181, 0.057221025228500366, 0.028551548719406128, -0.03561701998114586, 0.041538771241903305, -0.04533187299966812, -0.6045552492141724, -0.38817691802978516, -0.4466650187969208, -0.11875332146883011, -0.09910199791193008, -0.47744065523147583, 0.010533899068832397, -0.5321199297904968, 0.7631077170372009, -0.15976150333881378, 0.6462206244468689, 0.2654304802417755, -0.28187888860702515, -0.04898471385240555, 0.035553812980651855, 0.33854782581329346, 0.2684965431690216, -0.2904948592185974, 0.09434852004051208, 0.1953364759683609, -0.4072437882423401, -0.03607616946101189, 0.3376281261444092, -0.30318525433540344, -0.014767065644264221, 0.3628326654434204, 1.1214392185211182, 0.39570820331573486, -0.2894015908241272, 0.6122892498970032, -0.015049656853079796, -0.5079982280731201, -0.461487740278244, 0.21876101195812225, -0.01410578191280365, 0.30960702896118164, 0.21603341400623322, 0.41556671261787415, 0.29924657940864563, -0.02386806160211563, 0.23767362534999847, 0.2995641827583313, -0.7122243046760559, -0.2967758774757385, 0.7305680513381958, 0.10331889986991882, 0.045441724359989166, 0.6596964001655579, -0.1934240609407425, -0.6714804768562317, 0.9178618788719177, 0.5194140672683716, 1.0422388315200806, 0.039936453104019165, 0.2796388268470764, 0.792113721370697, 0.19680386781692505, 0.10968375205993652, -0.08262383192777634, -0.053423941135406494, -0.8187865018844604, -0.3353053331375122, -1.0499457120895386, 0.008255813270807266, 0.017139049246907234, -0.7017230987548828, 0.4369637072086334, -0.44799524545669556, -0.19924166798591614, 0.2690979242324829, 0.03477446362376213, -1.0987451076507568, 0.2252226322889328, 0.20022884011268616, 1.0027809143066406, -0.5319503545761108, 0.49865561723709106, 0.7839785814285278, -0.23626013100147247, -0.8146507740020752, -0.5091540813446045, -0.061087269335985184, -0.8245519995689392, 0.48524919152259827, 0.5002973079681396, 0.03637213259935379, 0.08200765401124954, -0.8003519177436829, -1.0442742109298706, 1.2626216411590576, 0.12797701358795166, -0.3702716529369354, -0.02588469721376896, 0.06956584751605988, 0.3595655560493469, -0.42116135358810425, 0.36032503843307495, 0.36891457438468933, 0.5766825675964355, 0.7024330496788025, -0.42483067512512207, 0.04703100770711899, -0.36665838956832886, 0.06391255557537079, 0.32301902770996094, -0.7735447287559509, 0.6873046159744263, -0.25573116540908813, -0.28082501888275146, -0.11178727447986603, 0.6331307888031006, 0.06436389684677124, 0.3421681523323059, 0.6356067657470703, 0.8016245365142822, 0.452259361743927, -0.3613310158252716, 0.8796040415763855, -0.25709885358810425, 0.6747906804084778, 0.8490487933158875, 0.32004284858703613, 0.3470161259174347, 0.4167407155036926, -0.09931442141532898, 0.43219074606895447, 0.9294465780258179, -0.5177304744720459, 0.5305511951446533, -0.13297855854034424, 0.17561441659927368, -0.4904123842716217, -0.23308289051055908, -0.5200933218002319, 0.7476330995559692, 0.16270458698272705, -0.6495277285575867, -0.1447058767080307, -0.12942096590995789, -0.04974346607923508, -0.5292930006980896, -0.27183035016059875, 0.7106903791427612, 0.09922829270362854, -0.40657132863998413, 0.6268492937088013, 0.04086405038833618, 0.7685152292251587, -0.5086551308631897, 0.09302522242069244, -0.10687623172998428, 0.28520819544792175, -0.34625735878944397, -0.45054635405540466, 0.435008704662323, -0.25231456756591797, -0.0005965509335510433, -0.09480474144220352, 1.0410070419311523, -0.2571507692337036, -0.7298712134361267, 0.21240828931331635, 0.19734366238117218, 0.049381449818611145, 0.16410163044929504, -0.8517892360687256, 0.34061869978904724, 0.08228379487991333, -0.36699360609054565, 0.14755119383335114, 0.11801706999540329, 0.2507420778274536, 0.5605407357215881, 0.6021943688392639, -0.3641534447669983, 0.055558424443006516, -0.17572936415672302, 0.9460095167160034, -0.6645399928092957, -0.37667497992515564, -0.6859341859817505, 0.549628734588623, -0.2828923463821411, -0.39597445726394653, 0.7401108741760254, 0.5991036891937256, 1.1856838464736938, -0.27086561918258667, 0.38269656896591187, -0.36296191811561584, 0.08755728602409363, -0.18259748816490173, 0.5232222676277161, -0.6603617668151855, -0.10281665623188019, -0.4356096684932709, -0.9716384410858154, -0.2763909697532654, 0.8630117774009705, -0.37981683015823364, 0.21753476560115814, 0.4670657813549042, 0.9301742315292358, -0.2487143874168396, 0.08038379997015, 0.2881837785243988, 0.07020498812198639, 0.08526194095611572, 0.28992190957069397, 0.6960602402687073, -0.5142590403556824, 0.4587060213088989, -0.7613933682441711, 0.0287791695445776, -0.4562247693538666, -0.6323896646499634, -0.8717799782752991, -0.5755470991134644, -0.5005927085876465, -0.3196098506450653, -0.2850518822669983, 0.8657804727554321, 1.0044900178909302, -0.8581804633140564, -0.02327873930335045, -0.029300734400749207, 0.11576708406209946, -0.15697196125984192, -0.25811558961868286, 0.4424859583377838, -0.06859809905290604, -0.8338878750801086, -0.08665995299816132, 0.22324493527412415, 0.14438743889331818, -0.07457123696804047, -0.28267207741737366, -0.05126141756772995, -0.13899919390678406, 0.6020656228065491, 0.23699964582920074, -0.5504457950592041, -0.3112277388572693, 0.19922544062137604, -0.046398647129535675, 0.1819545328617096, 0.5170738697052002, -0.5606846809387207, 0.43224042654037476, 0.5366097688674927, 0.5543370246887207, 0.9087322950363159, -0.025749841704964638, 0.053426165133714676, -0.41791632771492004, 0.293144166469574, 0.20839671790599823, 0.5156042575836182, 0.34345558285713196, -0.21339476108551025, 0.5960234999656677, 0.2122093290090561, -0.5801072120666504, -0.6088972687721252, 0.03259342908859253, -1.136010766029358, -0.17514479160308838, 0.9936963319778442, -0.02390340156853199, -0.6181650161743164, 0.3361966609954834, -0.10463997721672058, 0.3587053418159485, -0.17147687077522278, 0.46692943572998047, 0.22321614623069763, -0.014427946880459785, -0.4399324357509613, -0.11924706399440765, 0.37300214171409607, 0.04222869500517845, -0.5916652083396912, -0.5740420818328857, 0.4320436120033264, 0.3521099388599396, 0.270617812871933, 0.20415867865085602, -0.29413342475891113, 0.11995626240968704, 0.19488969445228577, 0.3343822956085205, -0.29041004180908203, -0.20612843334674835, -0.1526310294866562, 0.13657420873641968, -0.22478419542312622, -0.2634534537792206 ]
Envvi/Inkpunk-Diffusion
Envvi
"2022-11-29T16:31:21Z"
13,780
923
diffusers
[ "diffusers", "stable-diffusion", "text-to-image", "en", "license:creativeml-openrail-m", "endpoints_compatible", "has_space", "diffusers:StableDiffusionPipeline", "region:us" ]
text-to-image
"2022-11-25T06:06:18Z"
--- license: creativeml-openrail-m language: - en tags: - stable-diffusion - text-to-image - diffusers --- # Inkpunk Diffusion Finetuned Stable Diffusion model trained on dreambooth. Vaguely inspired by Gorillaz, FLCL, and Yoji Shinkawa. Use **_nvinkpunk_** in your prompts. # Gradio We support a [Gradio](https://github.com/gradio-app/gradio) Web UI to run Inkpunk-Diffusion: [![Open In Spaces](https://camo.githubusercontent.com/00380c35e60d6b04be65d3d94a58332be5cc93779f630bcdfc18ab9a3a7d3388/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f25463025394625413425393725323048756767696e67253230466163652d5370616365732d626c7565)](https://huggingface.co/spaces/akhaliq/Inkpunk-Diffusion) # Sample images ![output Samples v2](https://huggingface.co/Envvi/Inkpunk-Diffusion/resolve/main/inkpunk-v2-samples-1.png) ![output Samples v2](https://huggingface.co/Envvi/Inkpunk-Diffusion/resolve/main/inkpunk-v2-samples-2.png)
[ -0.6131728291511536, -0.8285969495773315, 0.7546257972717285, 0.29697731137275696, -0.38231876492500305, 0.22217215597629547, 0.1966181993484497, -0.2443346381187439, 0.7989228367805481, 0.41425248980522156, -0.6602453589439392, -0.4915905296802521, -0.6046193838119507, -0.4518407881259918, 0.08478499203920364, 1.0044364929199219, -0.12837006151676178, 0.10746277123689651, -0.0667996034026146, 0.11774944514036179, -0.3544888198375702, 0.39588814973831177, -1.0007296800613403, -1.035225510597229, 0.6150422096252441, 0.5810339450836182, 0.7166335582733154, 0.1916578859090805, 0.1100158840417862, 0.19302302598953247, -0.306179016828537, -0.28568407893180847, -0.5110130906105042, 0.22810275852680206, -0.033973563462495804, -0.05529487505555153, -0.26162880659103394, -0.0019478502217680216, 0.46431124210357666, 0.4582698345184326, -0.32839280366897583, 0.3226519227027893, -0.05202965438365936, 0.7655191421508789, -0.5977693796157837, -0.15209458768367767, -0.16269269585609436, 0.19149546325206757, -0.13367556035518646, 0.7142157554626465, 0.12102781236171722, -0.5420126914978027, -0.2021581083536148, -1.1798428297042847, 0.36522480845451355, 0.11223933845758438, 1.0231406688690186, 0.10549875348806381, -0.11051999032497406, 0.2460387647151947, -0.4776715636253357, 0.33444422483444214, -0.45835456252098083, 0.2366427332162857, 0.44667351245880127, 0.5837535858154297, -0.3784313499927521, -1.0896196365356445, -0.6948188543319702, 0.25190094113349915, 0.36767056584358215, 0.32858583331108093, -0.011020400561392307, 0.09924289584159851, 0.1921716034412384, 0.22730198502540588, -0.7818251848220825, -0.1741248220205307, -0.4301520586013794, -0.1964205652475357, 0.30990809202194214, 0.27223828434944153, 0.37132200598716736, 0.3274701237678528, -0.48029422760009766, 0.08908204734325409, -0.25682100653648376, 0.07429739832878113, 0.5958260297775269, -0.02196924202144146, -0.531436026096344, 0.3637791574001312, -0.16001829504966736, 0.5724728107452393, 0.1506929248571396, -0.01792624592781067, 0.5465452075004578, 0.2233290821313858, -0.2013026773929596, -0.36349719762802124, 1.2410578727722168, 0.5872551202774048, 0.008050015196204185, -0.02472967468202114, -0.17044615745544434, -0.20525337755680084, 0.17339448630809784, -1.2485673427581787, -0.7468645572662354, 0.4367167353630066, -0.5695924162864685, -0.4223521053791046, -0.3858346939086914, -1.115685224533081, -0.6863666772842407, 0.22182145714759827, 0.8048778176307678, -0.509440004825592, -0.7988463640213013, 0.34940969944000244, -0.9294160604476929, -0.2664531171321869, 0.6560993790626526, -0.9342082142829895, 0.11499325931072235, 0.6186813712120056, 1.2416192293167114, 0.07705258578062057, 0.09939878433942795, 0.3692573308944702, 0.17255571484565735, -0.23970051109790802, 1.0427517890930176, -0.5425117611885071, -0.6438546180725098, -0.17255912721157074, 0.04484693333506584, 0.03329707309603691, -0.34548553824424744, 0.7177976369857788, -0.11184443533420563, 0.3305283486843109, -0.05134471878409386, -0.4475661814212799, -0.5466505289077759, 0.12032738327980042, -0.6378940939903259, 0.8134759068489075, 0.3700807988643646, -0.9846990704536438, 0.03866299241781235, -1.329694390296936, -0.03581038862466812, 0.3917301297187805, -0.06268544495105743, -0.6997681260108948, -0.14394183456897736, -0.45556050539016724, 0.6380456686019897, -0.01389964297413826, -0.13118848204612732, -0.9155275821685791, -0.5117233991622925, -0.055249299854040146, -0.09602945297956467, 1.181362271308899, 0.5034400820732117, -0.20325064659118652, -0.04439202696084976, -0.903476357460022, -0.21436357498168945, 0.3287339508533478, 0.14601922035217285, -0.49349987506866455, -0.595992386341095, 0.36385467648506165, 0.048332616686820984, 0.3439953625202179, -0.9044651389122009, 0.5675904750823975, 0.20611490309238434, 0.36450329422950745, 0.7678510546684265, 0.30395007133483887, 0.37301206588745117, -0.38991960883140564, 0.7782221436500549, -0.09792403131723404, 0.23435966670513153, 0.09190283715724945, -1.1041277647018433, -0.465565949678421, -0.32858890295028687, 0.06222749873995781, 0.44233423471450806, -1.1392805576324463, 0.00755689200013876, 0.25396299362182617, -1.026084542274475, -0.03496851772069931, -0.24644804000854492, 0.04727671667933464, 1.0785077810287476, 0.04303557425737381, -0.4405968487262726, -0.02929099090397358, -0.723726749420166, 0.19351746141910553, -0.10966033488512039, -0.20560169219970703, 0.1507711410522461, 0.38419049978256226, -0.4969606101512909, 0.7083677649497986, -0.863276481628418, 0.021524671465158463, 0.11274559050798416, 0.3583216667175293, 0.7330510020256042, 0.6964051723480225, 0.8519948720932007, -0.7922847867012024, -0.5644027590751648, -0.14065398275852203, -0.3255664110183716, -0.3112044930458069, 0.22890418767929077, -0.40253376960754395, -0.44979777932167053, 0.01627591997385025, -1.0192592144012451, 0.31328335404396057, 0.4873693883419037, -0.8880996704101562, 0.7433597445487976, -0.11688192188739777, 0.3079746961593628, -1.424725890159607, 0.2530200481414795, 0.3258325755596161, -0.4817003011703491, -0.6425405144691467, 0.1959320455789566, -0.16785210371017456, -0.4330519437789917, -0.8616669774055481, 0.9483702778816223, -0.2913587987422943, 0.5783621072769165, -0.2958180606365204, -0.3821050226688385, 0.3816159665584564, 0.46906694769859314, -0.0716729462146759, 0.6795729398727417, 0.8554219603538513, -0.5191097259521484, 0.4909334182739258, 0.2203332781791687, -0.265710711479187, 0.2934282720088959, -0.9558386206626892, 0.21991118788719177, -0.14951707422733307, 0.12462462484836578, -1.5752636194229126, -0.2565583884716034, 1.065422773361206, -0.50956791639328, 0.24234801530838013, -0.3916161060333252, -0.6639901399612427, -0.35526180267333984, -0.46111437678337097, 0.5797916650772095, 0.8820841908454895, -0.2229926884174347, 0.5166807770729065, 0.44142553210258484, 0.051898252218961716, -0.5506407022476196, -0.6523216962814331, -0.47429099678993225, -0.5150219202041626, -0.7081928849220276, 0.2720276713371277, -0.40100419521331787, -0.081953264772892, -0.09233564138412476, 0.16098304092884064, -0.34303727746009827, 0.05974200740456581, 0.6152880191802979, 0.2185618132352829, -0.051733046770095825, -0.07979464530944824, 0.13932333886623383, 0.007176018785685301, 0.06243767589330673, -0.312202513217926, 0.6628043055534363, -0.00768531858921051, -0.07348324358463287, -0.8181175589561462, -0.017917770892381668, 0.5892361998558044, 0.6153647303581238, 0.719108521938324, 1.209502100944519, -0.5579055547714233, 0.10378412157297134, -0.49275609850883484, 0.050317250192165375, -0.5870487093925476, -0.32741379737854004, -0.35937419533729553, -0.870637834072113, 0.9938055872917175, -0.4003813564777374, 0.05911428853869438, 0.34240302443504333, 0.6470400094985962, -0.43478909134864807, 0.7297579646110535, 0.4834171235561371, 0.1838209182024002, 1.0534123182296753, -0.7407586574554443, -0.2388603836297989, -0.7373425364494324, -0.23586741089820862, -0.2303682267665863, -0.657639741897583, -0.3687090277671814, -0.5302289128303528, 0.15013845264911652, 0.2980967164039612, -0.5347955226898193, 0.4162532687187195, -0.6859798431396484, 0.7279474139213562, 0.24848416447639465, 0.20780843496322632, 0.010849990881979465, 0.17980200052261353, -0.6620544791221619, 0.11392655223608017, -0.6989884972572327, -0.21707479655742645, 0.8982266187667847, 0.5745753049850464, 0.8894470930099487, 0.046207454055547714, 0.8592758178710938, 0.2758019268512726, 0.2009311467409134, -0.48376941680908203, 0.5779804587364197, 0.002419224940240383, -0.7700268626213074, -0.20471051335334778, -0.1806478351354599, -1.1874914169311523, 0.395680695772171, -0.53169184923172, -0.6675959229469299, 0.4581441879272461, 0.13517817854881287, -0.47944653034210205, 0.4334140717983246, -0.8215166926383972, 1.0795352458953857, 0.2760976254940033, -0.7241060733795166, -0.050018832087516785, -0.25637519359588623, 0.40039825439453125, 0.2450166940689087, 0.24401725828647614, -0.601237952709198, -0.3937501311302185, 0.6637199521064758, -0.46408215165138245, 0.7490912675857544, -0.492157906293869, -0.05374213680624962, 0.42434296011924744, 0.0788974016904831, 0.01108905766159296, 0.36612313985824585, -0.13644596934318542, 0.4192468225955963, -0.07209920883178711, -0.4999766945838928, -0.4551186263561249, 0.6264743208885193, -0.7266042232513428, -0.17213106155395508, -0.3296150863170624, -0.3055509626865387, 0.14996549487113953, 0.677837073802948, 0.8214385509490967, 0.16104082763195038, -0.3320639133453369, -0.08628194034099579, 0.9647432565689087, 0.25521260499954224, 0.743263304233551, 0.37153568863868713, -0.6297306418418884, -0.6968805193901062, 0.9624481201171875, -0.14560063183307648, 0.1518767923116684, 0.06516657769680023, 0.7031787633895874, -0.09930697083473206, -0.7415856122970581, -0.8675901293754578, 0.2944759726524353, -0.312627375125885, -0.16654962301254272, -0.4454934000968933, 0.08959417045116425, -0.6293808817863464, 0.003708381438627839, -0.43275877833366394, -0.8359365463256836, -0.8588408827781677, 0.14292512834072113, 0.8827106356620789, 0.5920268297195435, -0.2950672507286072, 0.4946877956390381, -0.6756517887115479, 0.6988217234611511, 0.18835090100765228, 0.5707852840423584, -0.18915046751499176, -0.4078769385814667, -0.3469739556312561, 0.027445459738373756, -0.6701533198356628, -0.8874316215515137, 0.39550358057022095, -0.02498907409608364, 0.6492083668708801, 0.7395479679107666, -0.062294114381074905, 0.7880555391311646, -0.748410165309906, 0.9319191575050354, 0.7063206434249878, -0.46019217371940613, 0.5708739757537842, -1.0396798849105835, 0.3136584758758545, 0.7601677179336548, 0.7847225666046143, -0.4974347949028015, -0.5305861830711365, -0.9081122279167175, -0.9586003422737122, 0.18366873264312744, 0.19428855180740356, 0.16352961957454681, 0.2133919596672058, 0.6603870391845703, 0.2212834656238556, 0.26782530546188354, -0.8763380646705627, -0.5271430015563965, -0.24844083189964294, -0.17100189626216888, 0.2642878293991089, -0.0040847561322152615, -0.2968612015247345, -0.3903549611568451, 0.8261087536811829, -0.1132596805691719, 0.40846285223960876, 0.012643893249332905, 0.5513036847114563, -0.3611426055431366, -0.3852662742137909, 0.67014479637146, 0.5681981444358826, -0.21178893744945526, -0.4014555811882019, -0.4168843924999237, -0.8802925944328308, 0.17358127236366272, 0.07450134307146072, -0.35882964730262756, 0.2594231963157654, -0.13466185331344604, 0.8216976523399353, -0.3478086590766907, -0.26722636818885803, 0.49547135829925537, -0.39815106987953186, -0.333749920129776, -0.8700990080833435, 0.5871598124504089, 0.1891985833644867, 0.541407585144043, 0.3267196714878082, 0.38818562030792236, 0.5986106991767883, -0.13355404138565063, -0.02660387009382248, 0.5303140878677368, -0.3452305197715759, -0.15091745555400848, 1.046049952507019, 0.13325069844722748, -0.7050756812095642, 0.23029370605945587, -0.5062775611877441, -0.2673098146915436, 0.7395762801170349, 0.6233043670654297, 1.2854828834533691, -0.11269030719995499, 0.3653562366962433, 0.4273463487625122, -0.05069241300225258, -0.3926151692867279, 0.6109085083007812, -0.04450397193431854, -0.8153771162033081, -0.07691550254821777, -0.31509995460510254, -0.7434818744659424, 0.2291734218597412, -0.38888436555862427, 0.7082303762435913, -0.9626689553260803, -0.453605592250824, -0.3069347143173218, -0.021156497299671173, -0.24279369413852692, 0.032060641795396805, 0.27210691571235657, 1.273063063621521, -1.1515073776245117, 0.923353374004364, 0.8729837536811829, -0.1670810431241989, -0.56207674741745, 0.0822274386882782, -0.07816620171070099, -0.5891140103340149, 0.13352060317993164, 0.2043818235397339, -0.11132539808750153, -0.0006426816107705235, -0.8089891672134399, -0.8040039539337158, 1.4974102973937988, 0.4727047085762024, -0.2433784306049347, 0.4410370886325836, -0.34416550397872925, 0.6194281578063965, -0.38139134645462036, 0.429675817489624, 0.01606847532093525, 0.3182651698589325, 0.36018452048301697, -0.7121796607971191, -0.31666263937950134, -0.6190733909606934, 0.12529176473617554, 0.23335222899913788, -1.195472240447998, 0.8840985298156738, -0.06619320809841156, -0.04208235815167427, 0.33778661489486694, 0.7857719659805298, 0.4305093288421631, 0.8620262145996094, 0.7072572708129883, 1.1403789520263672, 0.6030856966972351, -0.14440679550170898, 0.8522810935974121, -0.08087225258350372, 0.4623635411262512, 0.9194615483283997, 0.14627109467983246, 0.5054820775985718, 0.3570574223995209, -0.08757530897855759, 1.129145860671997, 1.1006704568862915, 0.03947720304131508, 0.5962660312652588, 0.023044748231768608, -0.2947310507297516, -0.0559721477329731, 0.12673510611057281, -0.4836331307888031, -0.09571753442287445, 0.5035372376441956, -0.06080694496631622, 0.09960705041885376, 0.29765114188194275, -0.032035477459430695, -0.27785614132881165, -0.4948091208934784, 0.4272942841053009, 0.04614251106977463, -0.008537759073078632, 0.7311567664146423, -0.3334931433200836, 0.9963985085487366, -0.695140540599823, -0.5434271693229675, -0.2118011862039566, -0.13012264668941498, -0.32085269689559937, -1.1074028015136719, 0.11011862754821777, -0.318368136882782, -0.07789371907711029, -0.5486418008804321, 0.9821779727935791, -0.19727516174316406, -0.6548855304718018, 0.2163567841053009, -0.08522209525108337, 0.4179149568080902, 0.1415114402770996, -1.1938230991363525, 0.14539998769760132, -0.08768776059150696, -0.45832207798957825, 0.1635374128818512, 0.4208888113498688, 0.3348112106323242, 0.9898011088371277, 0.48797187209129333, 0.04666459560394287, 0.04541939124464989, -0.018482862040400505, 0.7302929759025574, -0.38197261095046997, -0.7828859090805054, -0.7976513504981995, 0.7847064137458801, -0.14562587440013885, -0.4025791883468628, 0.7131077647209167, 0.901627242565155, 0.5474062561988831, -0.4275377690792084, 0.5996566414833069, -0.03409002348780632, 0.6607668995857239, -0.3423672616481781, 1.1433568000793457, -0.9088336825370789, -0.10433103144168854, -0.6139671206474304, -0.8823623061180115, -0.14216352999210358, 0.8569285869598389, 0.22796176373958588, -0.04985269159078598, 0.27112674713134766, 0.7237853407859802, -0.27383020520210266, -0.037731628865003586, 0.14221543073654175, -0.10795827209949493, 0.11194103211164474, 0.547749400138855, 0.7512978315353394, -0.5857241749763489, 0.1608131229877472, -0.6255170702934265, -0.24115107953548431, -0.11684726923704147, -1.0341362953186035, -0.8355491161346436, -0.4621078073978424, -0.7654659748077393, -0.729448139667511, -0.22714082896709442, 0.6220375299453735, 0.8582853674888611, -0.6865462064743042, -0.23539766669273376, -0.3439547121524811, 0.5523391962051392, -0.042552001774311066, -0.308667927980423, -0.08579713851213455, 0.2523769438266754, -1.074486494064331, 0.1637914478778839, 0.009069832973182201, 0.6778743863105774, -0.1630755215883255, 0.07495562732219696, -0.03333437070250511, -0.4682885706424713, 0.22291328012943268, 0.5408920049667358, -0.22418048977851868, -0.26970571279525757, -0.38467153906822205, 0.13368596136569977, -0.019756803289055824, 0.6518115997314453, -0.9062719345092773, 0.2908504605293274, 1.1115915775299072, 0.29663434624671936, 0.5298417806625366, -0.1429804414510727, 0.3877861201763153, -0.4073116183280945, 0.5112076997756958, 0.15455898642539978, 0.5805570483207703, 0.013542825356125832, -0.46208223700523376, 0.8107936382293701, 0.7260199785232544, -0.6674195528030396, -0.673257052898407, 0.10686452686786652, -1.1505197286605835, -0.49747252464294434, 1.1102385520935059, 0.030030028894543648, -0.36783820390701294, -0.30014318227767944, -0.30024513602256775, 0.09194029867649078, -0.7183751463890076, 0.5293921828269958, 0.6913087368011475, -0.6978307366371155, -0.32497501373291016, -0.5936135053634644, 0.16750787198543549, -0.12198705971240997, -0.28853902220726013, -0.41920357942581177, 0.6774134039878845, 0.7557665109634399, 0.6513258218765259, 0.8299563527107239, 0.1195068359375, 0.3083895742893219, 0.1969653069972992, 0.3755843937397003, -0.29868799448013306, 0.04132700338959694, -0.5656554698944092, 0.11069697141647339, -0.0802997350692749, -0.7423096299171448 ]
ckiplab/albert-base-chinese-ner
ckiplab
"2022-05-10T03:28:08Z"
13,744
7
transformers
[ "transformers", "pytorch", "albert", "token-classification", "zh", "license:gpl-3.0", "autotrain_compatible", "endpoints_compatible", "region:us" ]
token-classification
"2022-03-02T23:29:05Z"
--- language: - zh thumbnail: https://ckip.iis.sinica.edu.tw/files/ckip_logo.png tags: - pytorch - token-classification - albert - zh license: gpl-3.0 --- # CKIP ALBERT Base Chinese This project provides traditional Chinese transformers models (including ALBERT, BERT, GPT2) and NLP tools (including word segmentation, part-of-speech tagging, named entity recognition). 這個專案提供了繁體中文的 transformers 模型(包含 ALBERT、BERT、GPT2)及自然語言處理工具(包含斷詞、詞性標記、實體辨識)。 ## Homepage - https://github.com/ckiplab/ckip-transformers ## Contributers - [Mu Yang](https://muyang.pro) at [CKIP](https://ckip.iis.sinica.edu.tw) (Author & Maintainer) ## Usage Please use BertTokenizerFast as tokenizer instead of AutoTokenizer. 請使用 BertTokenizerFast 而非 AutoTokenizer。 ``` from transformers import ( BertTokenizerFast, AutoModel, ) tokenizer = BertTokenizerFast.from_pretrained('bert-base-chinese') model = AutoModel.from_pretrained('ckiplab/albert-base-chinese-ner') ``` For full usage and more information, please refer to https://github.com/ckiplab/ckip-transformers. 有關完整使用方法及其他資訊,請參見 https://github.com/ckiplab/ckip-transformers 。
[ -0.3300861418247223, -0.3281106650829315, 0.007738329470157623, 0.803589940071106, -0.3386070430278778, 0.09414763748645782, -0.1620779037475586, -0.26025164127349854, -0.061590977013111115, 0.47183796763420105, -0.3518027663230896, -0.34048381447792053, -0.6190316677093506, 0.08519117534160614, -0.2331898957490921, 0.9005962610244751, -0.28330910205841064, 0.3296981155872345, 0.3723464012145996, 0.10632849484682083, -0.23155070841312408, -0.4170176386833191, -0.7858200073242188, -0.6198360919952393, -0.06892647594213486, 0.27683576941490173, 0.7134790420532227, 0.44570407271385193, 0.5613069534301758, 0.3302403390407562, 0.029222499579191208, -0.13172480463981628, -0.14650122821331024, -0.30913618206977844, -0.030993273481726646, -0.6122095584869385, -0.4505321979522705, -0.26190686225891113, 0.7249494791030884, 0.515468180179596, 0.008103875443339348, -0.0377938374876976, 0.16213029623031616, 0.39285051822662354, -0.3983357846736908, 0.4448391795158386, -0.5691080093383789, 0.31295642256736755, -0.14826351404190063, -0.13650427758693695, -0.35619375109672546, -0.19489580392837524, 0.15776769816875458, -0.6940595507621765, 0.3650558888912201, -0.10797193646430969, 1.380700707435608, 0.039800629019737244, -0.32496845722198486, -0.27484023571014404, -0.740204930305481, 1.142575979232788, -0.88840252161026, 0.46635356545448303, 0.4044150412082672, 0.269151896238327, 0.0005178694264031947, -1.0577356815338135, -0.6540407538414001, -0.20358647406101227, -0.285696417093277, 0.3404484987258911, 0.10144122689962387, -0.04630529135465622, 0.4352166950702667, 0.3169229030609131, -0.6849073171615601, 0.1898723840713501, -0.44028547406196594, -0.41938599944114685, 0.5982992649078369, -0.028333930298686028, 0.5161218643188477, -0.4267311990261078, -0.5306189656257629, -0.3720126748085022, -0.6778873205184937, 0.2232942432165146, 0.2731238901615143, 0.07184116542339325, -0.5274250507354736, 0.6273657083511353, -0.12295892834663391, 0.2626296579837799, 0.20064766705036163, -0.10046622157096863, 0.5155496597290039, -0.31670793890953064, -0.05469200387597084, -0.12267935276031494, 1.012208104133606, 0.2691645622253418, 0.08278452605009079, 0.06845562160015106, -0.34839093685150146, -0.34131523966789246, -0.28174278140068054, -0.840631365776062, -0.6697854399681091, 0.2411220520734787, -0.7888310551643372, -0.16295327246189117, 0.15404170751571655, -0.643652617931366, 0.3367084860801697, -0.2635451853275299, 0.3818017840385437, -0.7230157256126404, -0.6710464358329773, 0.005743165500462055, -0.4066067039966583, 0.8252891898155212, 0.12896765768527985, -1.3018723726272583, 0.049796465784311295, 0.6345745325088501, 0.7850422263145447, 0.14604391157627106, -0.19428156316280365, 0.1733943074941635, 0.42953354120254517, -0.22999510169029236, 0.5774015188217163, -0.10612161457538605, -0.7460941076278687, 0.1406022161245346, 0.09910585731267929, 0.04346277564764023, -0.4949316084384918, 0.8036805987358093, -0.36312004923820496, 0.3815617263317108, -0.17829610407352448, -0.26542729139328003, -0.04066101089119911, 0.12523306906223297, -0.5158975124359131, 1.1626924276351929, 0.27884620428085327, -0.894040584564209, 0.25649741291999817, -0.953819990158081, -0.5849795937538147, 0.37133240699768066, -0.10759101808071136, -0.4618545472621918, -0.21102610230445862, 0.2707131505012512, 0.320859432220459, -0.09929044544696808, 0.1990346759557724, -0.014459586702287197, -0.20988206565380096, -0.01132214441895485, -0.4255004823207855, 1.3702621459960938, 0.33514395356178284, -0.3113343417644501, 0.1587076336145401, -0.7439574003219604, 0.09014037251472473, 0.3110986649990082, -0.21547159552574158, -0.30307307839393616, 0.15769366919994354, 0.56175297498703, 0.13225506246089935, 0.5524152517318726, -0.5813056826591492, 0.5258890390396118, -0.6220729351043701, 0.737234354019165, 0.7723793983459473, -0.28821420669555664, 0.34911811351776123, -0.1673223078250885, 0.056978825479745865, 0.08988551050424576, 0.3380804657936096, -0.14406216144561768, -0.5029447674751282, -1.1736189126968384, -0.35332930088043213, 0.41154223680496216, 0.820826530456543, -1.1502172946929932, 0.8833717703819275, -0.27144670486450195, -0.6726002097129822, -0.35388410091400146, -0.050820283591747284, 0.03696213662624359, 0.18540789186954498, 0.5940669775009155, -0.3002334535121918, -0.6394204497337341, -1.098015308380127, 0.10005419701337814, -0.6274659633636475, -0.5929837822914124, -0.04029015824198723, 0.645758330821991, -0.5010532736778259, 1.044357419013977, -0.5080864429473877, -0.25576329231262207, -0.30746811628341675, 0.6217231154441833, 0.3877713978290558, 0.9542121291160583, 0.5948957204818726, -1.0779752731323242, -0.777917742729187, -0.17230691015720367, -0.44477543234825134, -0.08486773073673248, -0.2846250832080841, -0.13701218366622925, 0.00453198654577136, 0.09001139551401138, -0.6881291270256042, 0.21627727150917053, 0.3614063858985901, -0.0014721963088959455, 0.8949625492095947, -0.02012154459953308, -0.23375189304351807, -1.3754563331604004, 0.1781919151544571, -0.1891786903142929, -0.020135698840022087, -0.4411003589630127, -0.04224187508225441, 0.21473276615142822, -0.05122893303632736, -0.5993602275848389, 0.6075862646102905, -0.4003181457519531, 0.36993759870529175, -0.2776942551136017, -0.2072431445121765, -0.17357777059078217, 0.5889825820922852, 0.44475165009498596, 0.7355153560638428, 0.6966538429260254, -0.7741687893867493, 0.4465719759464264, 0.7557238340377808, -0.2601465582847595, -0.016376135870814323, -1.0051811933517456, -0.06522651016712189, 0.2950681746006012, 0.13639530539512634, -0.9092639684677124, -0.0639437735080719, 0.6679445505142212, -0.7650970816612244, 0.6682020425796509, 0.05634282901883125, -0.908194899559021, -0.44270190596580505, -0.44558796286582947, 0.4247148633003235, 0.6735044717788696, -0.6334571838378906, 0.5482982397079468, 0.24967002868652344, -0.23563365638256073, -0.643036425113678, -0.8257279396057129, -0.011642268858850002, 0.2138238251209259, -0.5932983160018921, 0.6933009028434753, -0.26528406143188477, 0.27846744656562805, -0.008302455767989159, 0.13512323796749115, -0.45782986283302307, -0.08630962669849396, -0.08899275958538055, 0.43672898411750793, -0.19946542382240295, -0.09147798269987106, 0.2318578064441681, -0.37637507915496826, 0.184348002076149, 0.0804857686161995, 0.7325952053070068, 0.015093604102730751, -0.33361247181892395, -0.6577870845794678, 0.30123916268348694, 0.22968986630439758, -0.25316277146339417, 0.37241366505622864, 1.0322203636169434, -0.26141250133514404, -0.16628418862819672, -0.40620458126068115, -0.1457430124282837, -0.5750616788864136, 0.670627236366272, -0.49640682339668274, -0.8436591625213623, 0.3280608057975769, -0.11179520189762115, 0.19826862215995789, 0.8114330172538757, 0.7053369283676147, 0.032987792044878006, 1.3611830472946167, 0.9200237393379211, -0.5233720541000366, 0.4321042001247406, -0.4720775783061981, 0.4160679578781128, -1.0133191347122192, 0.22079946100711823, -0.6499253511428833, 0.1640062928199768, -0.870928943157196, -0.2510252296924591, -0.029680611565709114, 0.25125160813331604, -0.33902639150619507, 0.8048597574234009, -0.8088837265968323, -0.03116544522345066, 0.7827318906784058, -0.40781164169311523, -0.041712626814842224, -0.11473147571086884, -0.22779029607772827, -0.023225300014019012, -0.6153708100318909, -0.710174560546875, 0.7963240742683411, 0.7128099799156189, 0.7455488443374634, -0.012369796633720398, 0.5121670365333557, -0.08849616348743439, 0.5511926412582397, -0.8055394887924194, 0.5555667281150818, -0.09044867753982544, -0.861431360244751, -0.2775488495826721, -0.28002849221229553, -0.8823384046554565, 0.24380506575107574, -0.053100164979696274, -0.8897586464881897, 0.18286556005477905, 0.04356063902378082, -0.13521870970726013, 0.353731244802475, -0.4338880181312561, 0.762060284614563, -0.5088274478912354, 0.06966128945350647, -0.04749380052089691, -0.7002463936805725, 0.426436185836792, 0.0006397671531885862, -0.061131466180086136, -0.0839679166674614, 0.07967621833086014, 0.8172934651374817, -0.17644546926021576, 0.7809520959854126, -0.10944697260856628, -0.0323401540517807, 0.3171422481536865, -0.28754422068595886, 0.28205615282058716, 0.2583369016647339, 0.10149423778057098, 0.6909751296043396, 0.25028562545776367, -0.38966143131256104, -0.27637961506843567, 0.5033952593803406, -0.9864916205406189, -0.45611056685447693, -0.6245759129524231, -0.2655690610408783, 0.16035139560699463, 0.5570403933525085, 0.5867617130279541, -0.012222355231642723, 0.008386626839637756, 0.2827635109424591, 0.2794041633605957, -0.44148626923561096, 0.6121902465820312, 0.6174119710922241, -0.07945374399423599, -0.5161470174789429, 0.9396427869796753, 0.10857270658016205, 0.11551977694034576, 0.7090454697608948, -0.07371621578931808, -0.24748629331588745, -0.49652355909347534, -0.37142515182495117, 0.4496196508407593, -0.4244877099990845, -0.019812429323792458, -0.4269307255744934, -0.5948403477668762, -0.6925761103630066, 0.11756213009357452, -0.39912667870521545, -0.38071078062057495, -0.32213112711906433, 0.02854185365140438, -0.37104150652885437, 0.11020422726869583, -0.3259721100330353, 0.5389341115951538, -1.1053624153137207, 0.5163269639015198, 0.17338436841964722, 0.23734429478645325, 0.009445374831557274, -0.24980832636356354, -0.609961211681366, 0.12808512151241302, -0.9224391579627991, -0.7275642156600952, 0.661474347114563, -0.011009513400495052, 0.7001113295555115, 0.6713854074478149, 0.18329979479312897, 0.5636621713638306, -0.6744189858436584, 1.1344367265701294, 0.4267667829990387, -1.213102102279663, 0.4235316514968872, -0.17426727712154388, 0.34624183177948, 0.3184546232223511, 0.5947194695472717, -0.8242247700691223, -0.35960930585861206, -0.5211366415023804, -1.2416160106658936, 0.6929371356964111, 0.40376463532447815, 0.34254148602485657, -0.020105944946408272, 0.00520463939756155, -0.041587378829717636, 0.18363948166370392, -1.1414968967437744, -0.6123902797698975, -0.5148465633392334, -0.3068791627883911, 0.2354271411895752, -0.389835923910141, 0.05249727517366409, -0.21811363101005554, 1.1708236932754517, 0.07959306240081787, 0.8043267726898193, 0.48403194546699524, -0.022804535925388336, -0.19647285342216492, 0.11157308518886566, 0.4583686888217926, 0.6090111136436462, -0.27683210372924805, -0.27693548798561096, 0.08346101641654968, -0.6295958161354065, -0.22320224344730377, 0.38663119077682495, -0.4555610716342926, 0.42987239360809326, 0.5693405866622925, 0.7201164364814758, 0.07359062880277634, -0.4581308662891388, 0.5649459958076477, -0.19117628037929535, -0.28813496232032776, -1.0687586069107056, -0.023779969662427902, 0.032873764634132385, 0.03742634877562523, 0.694915235042572, -0.14268606901168823, 0.15094433724880219, -0.19195596873760223, 0.2118375450372696, 0.44811856746673584, -0.5300619602203369, -0.507596492767334, 0.7352777719497681, 0.43599337339401245, -0.36098968982696533, 0.8872277736663818, -0.07958132773637772, -0.9514283537864685, 0.686826229095459, 0.5016250014305115, 1.0244174003601074, -0.37369003891944885, 0.057364337146282196, 0.7358213663101196, 0.49672964215278625, 0.009667360223829746, 0.17475241422653198, -0.27086126804351807, -0.9914538264274597, -0.5577598214149475, -0.4073939323425293, -0.4969000816345215, 0.43288886547088623, -0.5476011037826538, 0.6341325640678406, -0.4626161456108093, -0.09039988368749619, -0.06973772495985031, -0.06750836968421936, -0.5442768335342407, 0.13350987434387207, 0.12618114054203033, 1.1429646015167236, -0.6802021861076355, 1.1391074657440186, 0.6062367558479309, -0.6024647951126099, -0.8619191646575928, 0.11384236812591553, -0.4145677387714386, -0.7401293516159058, 1.122148871421814, 0.3836662769317627, 0.3244234025478363, 0.07221555709838867, -0.775933027267456, -0.8410595059394836, 1.0981696844100952, -0.18354041874408722, -0.4009714424610138, -0.09762412309646606, 0.4307456910610199, 0.4202030599117279, -0.06932670623064041, 0.5879728198051453, 0.08628611266613007, 0.6545531749725342, -0.17964453995227814, -1.1692712306976318, -0.2611166834831238, -0.33000123500823975, 0.04135540872812271, 0.268949031829834, -0.8889946341514587, 0.8763787746429443, 0.13474740087985992, -0.351525217294693, 0.40429988503456116, 0.9930363893508911, 0.04872509464621544, 0.19010011851787567, 0.5837826132774353, 0.505279541015625, -0.07314459979534149, -0.19763924181461334, 0.5409753918647766, -0.6235914826393127, 0.8595966100692749, 0.820164680480957, -0.06771355867385864, 0.7721251845359802, 0.40977567434310913, -0.5459453463554382, 0.5929768681526184, 0.7029066681861877, -0.6116722226142883, 0.6425180435180664, 0.02073078043758869, -0.13812586665153503, -0.08626699447631836, 0.11362093687057495, -0.5941246747970581, 0.25007298588752747, 0.34211787581443787, -0.35275307297706604, -0.13201174139976501, -0.18787051737308502, -0.026484688743948936, -0.4440031349658966, -0.10650426149368286, 0.5171480178833008, 0.18604986369609833, -0.33264902234077454, 0.5603273510932922, 0.34694400429725647, 1.0439295768737793, -1.0859977006912231, -0.3862285912036896, 0.28167304396629333, 0.16361108422279358, -0.11375677585601807, -0.6211796998977661, 0.19477707147598267, -0.3671838343143463, -0.17956332862377167, -0.18790127336978912, 0.7527660727500916, -0.3639756441116333, -0.5816619992256165, 0.4244757294654846, 0.08931788802146912, 0.14971981942653656, 0.30873608589172363, -1.2101572751998901, -0.3708030879497528, 0.3459368348121643, -0.5003083944320679, 0.18188977241516113, 0.16128303110599518, 0.10106688737869263, 0.6978120803833008, 0.918402373790741, 0.13433225452899933, -0.19829843938350677, -0.07519671320915222, 0.8969701528549194, -0.5942147374153137, -0.546987771987915, -0.7686936259269714, 0.8199991583824158, -0.2472400814294815, -0.4191841781139374, 0.7546585202217102, 0.7778499722480774, 1.232540249824524, -0.3308144807815552, 1.0612965822219849, -0.3972565531730652, 0.8176396489143372, -0.18553820252418518, 0.8503850698471069, -0.46512043476104736, -0.10296335816383362, -0.33310580253601074, -0.9454127550125122, -0.2896111309528351, 0.9337054491043091, -0.18343783915042877, -0.09911669045686722, 0.756380558013916, 0.723689615726471, -0.00044113449985161424, -0.24286097288131714, 0.1593538075685501, 0.19148439168930054, 0.6716413497924805, 0.47507432103157043, 0.6242918968200684, -0.611292839050293, 0.6329135298728943, -0.72664475440979, -0.20401568710803986, -0.10031738132238388, -0.7075269222259521, -0.751727283000946, -0.6192643642425537, -0.36132076382637024, -0.13979572057724, -0.32937270402908325, 0.8830493688583374, 0.7789942026138306, -1.136027455329895, -0.47081565856933594, -0.059806838631629944, 0.0965651124715805, -0.33156365156173706, -0.36173781752586365, 0.648350179195404, -0.3660052716732025, -1.2313021421432495, 0.04681042581796646, 0.12252743542194366, 0.07781577855348587, -0.32284027338027954, -0.05463417246937752, -0.25410544872283936, -0.24266846477985382, 0.38767552375793457, 0.49466297030448914, -0.7122750282287598, -0.2793979346752167, -0.015837425366044044, -0.2096947282552719, 0.15716519951820374, 0.6063836812973022, -0.23252782225608826, 0.33822938799858093, 0.6929196119308472, 0.295343279838562, 0.35504865646362305, -0.14481674134731293, 0.7073575854301453, -0.44639766216278076, 0.2849692702293396, 0.3775979280471802, 0.5680834054946899, 0.370024710893631, -0.22555238008499146, 0.5158869028091431, 0.4720214903354645, -0.7784847617149353, -0.6321634650230408, 0.35750246047973633, -1.048508882522583, -0.22788742184638977, 1.005834698677063, -0.24362777173519135, -0.18469107151031494, -0.1424025297164917, -0.5785667300224304, 0.6708246469497681, -0.3308698832988739, 0.6129385232925415, 0.8615766167640686, -0.08566796779632568, -0.1117333471775055, -0.5688536763191223, 0.40767771005630493, 0.4886917173862457, -0.3619147539138794, -0.40254321694374084, -0.0508122444152832, 0.18393594026565552, 0.7024746537208557, 0.4795609414577484, -0.11740697920322418, 0.09292277693748474, -0.1417725831270218, 0.635526180267334, 0.02272590436041355, 0.22561591863632202, 0.06935419887304306, -0.1879720836877823, 0.03453391417860985, -0.38151705265045166 ]
indobenchmark/indobert-base-p2
indobenchmark
"2021-05-19T20:24:07Z"
13,728
3
transformers
[ "transformers", "pytorch", "tf", "jax", "bert", "feature-extraction", "indobert", "indobenchmark", "indonlu", "id", "dataset:Indo4B", "arxiv:2009.05387", "license:mit", "has_space", "region:us" ]
feature-extraction
"2022-03-02T23:29:05Z"
--- language: id tags: - indobert - indobenchmark - indonlu license: mit inference: false datasets: - Indo4B --- # IndoBERT Base Model (phase2 - uncased) [IndoBERT](https://arxiv.org/abs/2009.05387) is a state-of-the-art language model for Indonesian based on the BERT model. The pretrained model is trained using a masked language modeling (MLM) objective and next sentence prediction (NSP) objective. ## All Pre-trained Models | Model | #params | Arch. | Training data | |--------------------------------|--------------------------------|-------|-----------------------------------| | `indobenchmark/indobert-base-p1` | 124.5M | Base | Indo4B (23.43 GB of text) | | `indobenchmark/indobert-base-p2` | 124.5M | Base | Indo4B (23.43 GB of text) | | `indobenchmark/indobert-large-p1` | 335.2M | Large | Indo4B (23.43 GB of text) | | `indobenchmark/indobert-large-p2` | 335.2M | Large | Indo4B (23.43 GB of text) | | `indobenchmark/indobert-lite-base-p1` | 11.7M | Base | Indo4B (23.43 GB of text) | | `indobenchmark/indobert-lite-base-p2` | 11.7M | Base | Indo4B (23.43 GB of text) | | `indobenchmark/indobert-lite-large-p1` | 17.7M | Large | Indo4B (23.43 GB of text) | | `indobenchmark/indobert-lite-large-p2` | 17.7M | Large | Indo4B (23.43 GB of text) | ## How to use ### Load model and tokenizer ```python from transformers import BertTokenizer, AutoModel tokenizer = BertTokenizer.from_pretrained("indobenchmark/indobert-base-p2") model = AutoModel.from_pretrained("indobenchmark/indobert-base-p2") ``` ### Extract contextual representation ```python x = torch.LongTensor(tokenizer.encode('aku adalah anak [MASK]')).view(1,-1) print(x, model(x)[0].sum()) ``` ## Authors <b>IndoBERT</b> was trained and evaluated by Bryan Wilie\*, Karissa Vincentio\*, Genta Indra Winata\*, Samuel Cahyawijaya\*, Xiaohong Li, Zhi Yuan Lim, Sidik Soleman, Rahmad Mahendra, Pascale Fung, Syafri Bahar, Ayu Purwarianti. ## Citation If you use our work, please cite: ```bibtex @inproceedings{wilie2020indonlu, title={IndoNLU: Benchmark and Resources for Evaluating Indonesian Natural Language Understanding}, author={Bryan Wilie and Karissa Vincentio and Genta Indra Winata and Samuel Cahyawijaya and X. Li and Zhi Yuan Lim and S. Soleman and R. Mahendra and Pascale Fung and Syafri Bahar and A. Purwarianti}, booktitle={Proceedings of the 1st Conference of the Asia-Pacific Chapter of the Association for Computational Linguistics and the 10th International Joint Conference on Natural Language Processing}, year={2020} } ```
[ -0.37199944257736206, -0.5002061128616333, 0.12318836897611618, 0.5577341914176941, -0.5059190988540649, -0.2982616722583771, -0.549948513507843, -0.38174301385879517, 0.22289498150348663, 0.5360307097434998, -0.3531339764595032, -0.40094301104545593, -0.73215651512146, 0.3136724829673767, -0.06861426681280136, 0.8786764144897461, -0.0969313308596611, 0.08831986039876938, -0.09081888198852539, -0.431363582611084, -0.39911314845085144, -0.7462862133979797, -0.49196845293045044, -0.41007769107818604, 0.02466530166566372, 0.3859471380710602, 0.28307756781578064, 0.41693344712257385, 0.40062472224235535, 0.2911231815814972, -0.2596096992492676, -0.08840788900852203, -0.1623816341161728, 0.18760113418102264, 0.14481787383556366, -0.6257318258285522, -0.3929029703140259, -0.054168473929166794, 0.679149866104126, 0.6933228373527527, 0.25159752368927, 0.2567276358604431, 0.25363999605178833, 0.8882450461387634, -0.7854054570198059, 0.6314428448677063, -0.3735469579696655, -0.12450287491083145, -0.195914164185524, -0.08405451476573944, -0.6937029361724854, -0.2714042067527771, 0.3817508816719055, -0.5719276666641235, -0.18681518733501434, 0.023511869832873344, 1.1780657768249512, 0.3434484601020813, -0.6272727251052856, -0.3178122937679291, -0.6051219701766968, 1.0882750749588013, -0.8423424959182739, 0.27547821402549744, 0.49053624272346497, 0.18015004694461823, -0.0236220620572567, -0.9735644459724426, -0.77036052942276, -0.13602004945278168, -0.5669088363647461, 0.28108838200569153, -0.19803166389465332, 0.16566944122314453, 0.2502152621746063, 0.3360600471496582, -0.6749330163002014, -0.28796204924583435, -0.6734275221824646, -0.06038202345371246, 0.8471608757972717, -0.18526172637939453, 0.23761267960071564, -0.7709616422653198, -0.5106653571128845, -0.33742690086364746, -0.5782334208488464, 0.3699690103530884, 0.3235427439212799, 0.24121849238872528, -0.2325105220079422, 0.623951256275177, -0.16430595517158508, 0.861813485622406, 0.07574226707220078, -0.2930811643600464, 0.6731725335121155, -0.3992345929145813, -0.41978347301483154, 0.32905274629592896, 0.8596960306167603, 0.38307443261146545, 0.557171642780304, 0.1932317465543747, 0.05482688546180725, -0.10798368602991104, -0.10517651587724686, -0.9880778193473816, -0.371553897857666, 0.3154604136943817, -0.8034856915473938, -0.11269218474626541, -0.15458716452121735, -0.6494859457015991, -0.027785876765847206, -0.4963834881782532, 0.5850800275802612, -0.8750301003456116, -0.6161898970603943, -0.22218844294548035, -0.11789633333683014, 0.6289793848991394, -0.14842352271080017, -1.0468724966049194, 0.27399832010269165, 0.4606342911720276, 0.8483560085296631, -0.03951241448521614, -0.22070346772670746, -0.06561708450317383, -0.010362045839428902, -0.3713380694389343, 0.5705398917198181, -0.6424663662910461, -0.35246920585632324, 0.03806581348180771, 0.028977788984775543, -0.4374021887779236, -0.4894641637802124, 0.8238603472709656, -0.19882799685001373, 0.479378342628479, -0.1961052268743515, -0.7996790409088135, -0.7062385082244873, 0.2397695779800415, -0.3958848714828491, 1.2975801229476929, 0.1913846731185913, -1.0538767576217651, 0.5933017730712891, -0.684170126914978, -0.25425657629966736, 0.110480897128582, -0.18106868863105774, -0.43222591280937195, -0.06307549774646759, 0.47952234745025635, 0.5817484855651855, -0.14049160480499268, 0.3590678572654724, -0.05998121574521065, -0.3381064534187317, 0.04469091072678566, -0.12719325721263885, 1.5156580209732056, 0.27867335081100464, -0.47282856702804565, 0.4151604175567627, -1.1729543209075928, 0.10371740907430649, 0.10454650223255157, -0.18399205803871155, -0.7259531021118164, -0.14710137248039246, 0.260278582572937, 0.24752472341060638, 0.33825254440307617, -0.496768981218338, 0.28850722312927246, -0.7874203324317932, 0.41402921080589294, 0.7021049857139587, 0.19522841274738312, 0.3158067464828491, -0.26608484983444214, 0.4058356285095215, 0.021672770380973816, 0.1136605516076088, -0.3694884479045868, -0.47492170333862305, -1.2909131050109863, -0.6161386370658875, 0.4245337247848511, 0.6897648572921753, -0.6997604966163635, 0.7693040370941162, -0.3237653970718384, -0.723892331123352, -0.40646761655807495, 0.09115901589393616, 0.31325313448905945, 0.5172494649887085, 0.5015115737915039, -0.27595433592796326, -0.8228955864906311, -1.2480746507644653, -0.45449313521385193, -0.3519279658794403, 0.014246724545955658, 0.31448641419410706, 0.6399799585342407, -0.23577435314655304, 1.24113130569458, -0.20161408185958862, -0.31733736395835876, -0.4568958580493927, 0.2997709810733795, 0.5096368193626404, 0.7457187175750732, 0.8562794327735901, -0.782159149646759, -1.086036205291748, -0.44030073285102844, -0.8070225715637207, -0.01160698663443327, 0.003635902889072895, -0.16696344316005707, 0.5491629242897034, 0.5546015501022339, -0.7199211120605469, 0.5954433083534241, 0.3436228632926941, -0.346824586391449, 0.5422471165657043, -0.3214711546897888, -0.08917414397001266, -1.4404183626174927, 0.3154107928276062, -0.1039963886141777, -0.01608516462147236, -0.6935116648674011, -0.05138224735856056, 0.26961514353752136, 0.004205918405205011, -0.4117282032966614, 0.7690398693084717, -0.578019380569458, 0.2106180638074875, -0.10179786384105682, -0.06496162712574005, -0.2602812945842743, 0.8942492604255676, 0.0879092812538147, 0.7362582683563232, 0.7911484837532043, -0.588786244392395, 0.17055246233940125, 0.4850887656211853, -0.5324174165725708, 0.5595775246620178, -0.910933792591095, -0.12437732517719269, -0.3096142113208771, 0.4296887218952179, -1.3011298179626465, -0.21775931119918823, 0.5621216893196106, -0.4858473241329193, 0.4411431550979614, -0.24767683446407318, -0.6765594482421875, -0.09352952241897583, -0.36756062507629395, 0.4937509298324585, 0.8282917737960815, -0.641569197177887, 0.8776140809059143, 0.060728613287210464, -0.39047905802726746, -0.7574934959411621, -0.727335512638092, -0.14325878024101257, -0.3445029854774475, -0.7834587097167969, 0.3979664444923401, -0.022273780778050423, -0.16881205141544342, 0.08609987050294876, 0.02925453521311283, -0.07688335329294205, -0.197787806391716, 0.5582441687583923, 0.33689063787460327, -0.045095838606357574, 0.16104719042778015, 0.12692397832870483, -0.19125822186470032, 0.24128520488739014, -0.18380911648273468, 0.6898765563964844, -0.24362711608409882, 0.02881319262087345, -0.47060972452163696, 0.08422472327947617, 0.4781540334224701, -0.4600527286529541, 0.9931461215019226, 0.6589063405990601, -0.4753033518791199, 0.13663716614246368, -0.45593059062957764, -0.08762974292039871, -0.45878615975379944, 0.2655073404312134, -0.47081509232521057, -0.4964360296726227, 0.4200887382030487, 0.06925183534622192, 0.21854355931282043, 0.9548074007034302, 0.6678983569145203, 0.30481651425361633, 1.0420253276824951, 0.9566605687141418, 0.061157841235399246, 0.44023627042770386, -0.5105116963386536, 0.4465245306491852, -0.940494954586029, -0.3791567385196686, -0.5339492559432983, -0.09525042772293091, -0.8368515968322754, -0.16447335481643677, 0.2843173146247864, 0.26572751998901367, -0.43784335255622864, 0.3893314003944397, -0.7410005331039429, 0.14811788499355316, 0.7060689926147461, -0.16252188384532928, 0.13342416286468506, 0.1715288907289505, -0.433079332113266, -0.26534122228622437, -0.7503066062927246, -0.5857452750205994, 1.5530236959457397, 0.2746535539627075, 0.5451616048812866, 0.059409067034721375, 0.7930166125297546, -0.038207873702049255, 0.5999045968055725, -0.6224448680877686, 0.5770164132118225, 0.13065920770168304, -0.9443055391311646, -0.13655248284339905, -0.1911523938179016, -0.9350965023040771, 0.549022912979126, -0.06472192704677582, -0.9503650069236755, 0.45343726873397827, 0.031128721311688423, -0.2312600165605545, 0.09119749814271927, -0.8198022246360779, 0.9776520133018494, -0.16952785849571228, -0.16124407947063446, -0.09867926687002182, -0.832965075969696, 0.5507220029830933, 0.18420693278312683, 0.05203484743833542, -0.09243907779455185, 0.07899479568004608, 1.0778515338897705, -0.500004768371582, 0.7514922022819519, -0.2980630397796631, 0.2527201175689697, 0.45354047417640686, -0.2571322023868561, 0.2594555616378784, 0.09583118557929993, -0.04433565214276314, 0.16944794356822968, 0.14760351181030273, -0.5892797112464905, -0.3415302634239197, 0.6745861768722534, -1.0469082593917847, -0.3510706424713135, -0.9874277710914612, -0.4048122763633728, -0.03653790429234505, 0.46473240852355957, 0.5692176222801208, 0.36626872420310974, 0.22741098701953888, 0.45835068821907043, 0.40237295627593994, -0.310066282749176, 0.6163418889045715, 0.3782641589641571, -0.22701342403888702, -0.46099239587783813, 0.9016879200935364, 0.19594140350818634, 0.09483126550912857, 0.1697503626346588, 0.03100266307592392, -0.3711884021759033, -0.23759563267230988, -0.28310224413871765, 0.3648822009563446, -0.9840994477272034, 0.03020426444709301, -0.9842318892478943, -0.5032101273536682, -0.5487568378448486, 0.003669983707368374, -0.2976239323616028, -0.5813115835189819, -0.20528331398963928, 0.0536642000079155, 0.31153443455696106, 0.4296005666255951, -0.14693011343479156, 0.23713193833827972, -0.3990898132324219, -0.041117437183856964, 0.31743574142456055, 0.250701904296875, -0.02508910931646824, -0.6939175128936768, 0.04462381452322006, -0.10888563841581345, -0.1054348275065422, -0.8947324156761169, 0.686368465423584, 0.19054464995861053, 0.5472475290298462, 0.25210046768188477, 0.2479618340730667, 0.5631014108657837, -0.3054203987121582, 0.909428596496582, -0.005431815050542355, -0.9798302054405212, 0.6401771306991577, 0.1576421707868576, 0.3144414722919464, 0.7651599049568176, 0.7018550038337708, -0.48295071721076965, -0.24120928347110748, -0.8887805938720703, -1.2766709327697754, 0.8167824149131775, 0.4247020483016968, -0.01738734357059002, 0.1602989286184311, 0.2734384834766388, 0.0019017447484657168, 0.25891736149787903, -1.0753847360610962, -0.7093760967254639, -0.5228465795516968, -0.41474446654319763, -0.1912405788898468, -0.6521847248077393, -0.026939043775200844, -0.62041175365448, 1.0749382972717285, 0.050262704491615295, 0.33222734928131104, 0.4159815013408661, -0.43448498845100403, 0.11531893163919449, 0.30767253041267395, 0.6152276396751404, 0.9128586053848267, -0.5897963643074036, -0.027597876265645027, 0.12834414839744568, -0.4314635992050171, 0.04777359217405319, 0.6032710075378418, -0.31074851751327515, 0.24551071226596832, 0.6120343208312988, 1.0604579448699951, 0.01430952176451683, -0.8379359841346741, 0.6617571115493774, -0.2621579170227051, -0.3557336628437042, -1.0480540990829468, 0.01372760720551014, -0.15832994878292084, 0.08841448277235031, 0.6139277219772339, 0.11305654793977737, -0.04358920827507973, -0.3012777268886566, 0.008799673058092594, 0.165468230843544, -0.4876326322555542, -0.09204075485467911, 0.6993907690048218, 0.05501772090792656, -0.1336193084716797, 0.7119101285934448, -0.1979278028011322, -0.7356038093566895, 0.5790233016014099, 0.49160048365592957, 0.990771472454071, -0.12473785877227783, -0.059998415410518646, 0.928402304649353, 0.5429617166519165, 0.23057080805301666, 0.3490103483200073, -0.10199525207281113, -0.40405532717704773, -0.5063385367393494, -0.7660861611366272, -0.244681715965271, 0.32167452573776245, -0.6854157447814941, 0.15797032415866852, -0.4521111845970154, 0.07344003021717072, 0.012379524298012257, 0.2241572141647339, -0.6866199970245361, 0.18207001686096191, -0.06491248309612274, 1.0729641914367676, -0.8653450012207031, 0.8681351542472839, 0.909107506275177, -0.6543065309524536, -0.9944582581520081, 0.04360271617770195, -0.2512882649898529, -0.5974331498146057, 1.095699429512024, 0.574866533279419, 0.33850258588790894, -0.09352676570415497, -0.5304225087165833, -1.0960817337036133, 1.079431176185608, 0.12230389565229416, -0.38296782970428467, 0.26795533299446106, -0.004203856457024813, 0.622606635093689, -0.22943514585494995, 0.5338246822357178, 0.6308451890945435, 0.5655511021614075, -0.19816243648529053, -0.7604610919952393, 0.13588783144950867, -0.6720713973045349, 0.11311448365449905, -0.10909435898065567, -0.8214696645736694, 1.2444287538528442, 0.21801060438156128, -0.19354954361915588, 0.03156306594610214, 0.880939245223999, 0.3208064138889313, -0.07220097631216049, 0.6420366168022156, 0.6184589266777039, 0.48345357179641724, -0.028036553412675858, 1.123049259185791, -0.8752054572105408, 0.5652135610580444, 0.8166455626487732, 0.03404061868786812, 0.9047959446907043, 0.5758077502250671, -0.18629802763462067, 0.7595431804656982, 0.6759781241416931, 0.11987891793251038, 0.5025938749313354, 0.0772160142660141, -0.22717323899269104, -0.14013975858688354, 0.05943801999092102, -0.6325200796127319, 0.5194447636604309, 0.3361068367958069, -0.4158397912979126, -0.06409786641597748, 0.044626425951719284, 0.20831191539764404, -0.05510833486914635, -0.007558722980320454, 0.6138305068016052, 0.007014718372374773, -0.9973576068878174, 1.1655426025390625, 0.2160719931125641, 0.777009904384613, -0.7065073847770691, 0.00325970770791173, -0.28664273023605347, 0.41819360852241516, -0.17532794177532196, -0.49827641248703003, 0.20698204636573792, -0.0664733350276947, -0.06552103161811829, -0.05427035316824913, 0.8835372924804688, -0.6379503011703491, -0.7844520807266235, 0.22317931056022644, 0.11873205751180649, 0.10111508518457413, 0.02139722742140293, -0.7687229514122009, 0.08192044496536255, 0.08563431352376938, -0.6007542014122009, 0.041322048753499985, 0.10937263816595078, 0.10863340646028519, 0.5212575197219849, 0.5078933835029602, -0.13969804346561432, 0.20236165821552277, -0.32376331090927124, 0.6961635947227478, -0.49355506896972656, -0.7132213711738586, -0.9463817477226257, 0.6081821918487549, -0.46231815218925476, -0.6879463195800781, 0.9595504999160767, 0.7004401087760925, 0.9495535492897034, 0.0076399436220526695, 1.0749698877334595, -0.3588777184486389, 0.6422831416130066, -0.27760401368141174, 0.6811465620994568, -0.7559776902198792, -0.032821305096149445, -0.2545982301235199, -1.2083489894866943, -0.3770569860935211, 1.069008231163025, -0.49492019414901733, 0.09882741421461105, 0.6836987733840942, 0.6691437363624573, -0.08362307399511337, -0.10162090510129929, -0.1938755363225937, 0.5057187080383301, 0.5347263216972351, 0.5340462327003479, 0.35778164863586426, -0.6513475775718689, 0.7018154263496399, -0.7542272806167603, -0.47794419527053833, -0.5212302803993225, -0.8147701621055603, -1.4040722846984863, -0.9119705557823181, -0.1621498465538025, -0.37521469593048096, -0.08857371658086777, 1.2427548170089722, 0.7497740983963013, -0.9604610204696655, -0.2824692130088806, -0.1901784986257553, -0.1102394387125969, -0.2184937298297882, -0.27997806668281555, 0.9265440106391907, -0.4794657528400421, -0.8446186780929565, 0.06395761668682098, 0.28635266423225403, 0.02940273843705654, -0.3242279291152954, -0.21922938525676727, -0.5714730024337769, 0.17624667286872864, 0.6727392077445984, 0.3527231812477112, -0.7793645858764648, -0.08197207748889923, -0.20962700247764587, -0.2986888289451599, 0.13951094448566437, 0.4418976306915283, -0.736088752746582, 0.7237905859947205, 0.5952960848808289, 0.6452361345291138, 0.8559790253639221, -0.17900273203849792, 0.37251633405685425, -0.7229349613189697, 0.7591784000396729, 0.18188102543354034, 0.4025096297264099, 0.40316241979599, -0.012253772467374802, 0.6160551309585571, 0.2849021852016449, -0.5420761108398438, -0.8888087868690491, 0.02017771638929844, -0.996044933795929, -0.31819504499435425, 1.0463491678237915, -0.15537957847118378, -0.40496551990509033, 0.10549095273017883, -0.4486556053161621, 0.37326639890670776, -0.18431004881858826, 0.5617102980613708, 0.8317523002624512, -0.20324073731899261, -0.19905522465705872, -0.6528305411338806, 0.6721969842910767, 0.9050006866455078, -0.6213183999061584, -0.2636355459690094, 0.11907549202442169, 0.3641105890274048, 0.25900325179100037, 0.7823983430862427, 0.009725061245262623, 0.14056271314620972, 0.02760905958712101, 0.18766166269779205, 0.0005720143672078848, -0.16569392383098602, -0.21493783593177795, 0.017742857336997986, -0.033209607005119324, -0.20083078742027283 ]
Helsinki-NLP/opus-mt-en-jap
Helsinki-NLP
"2023-08-16T11:30:07Z"
13,726
5
transformers
[ "transformers", "pytorch", "tf", "marian", "text2text-generation", "translation", "en", "jap", "license:apache-2.0", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
translation
"2022-03-02T23:29:04Z"
--- tags: - translation license: apache-2.0 --- ### opus-mt-en-jap * source languages: en * target languages: jap * OPUS readme: [en-jap](https://github.com/Helsinki-NLP/OPUS-MT-train/blob/master/models/en-jap/README.md) * dataset: opus * model: transformer-align * pre-processing: normalization + SentencePiece * download original weights: [opus-2020-01-08.zip](https://object.pouta.csc.fi/OPUS-MT-models/en-jap/opus-2020-01-08.zip) * test set translations: [opus-2020-01-08.test.txt](https://object.pouta.csc.fi/OPUS-MT-models/en-jap/opus-2020-01-08.test.txt) * test set scores: [opus-2020-01-08.eval.txt](https://object.pouta.csc.fi/OPUS-MT-models/en-jap/opus-2020-01-08.eval.txt) ## Benchmarks | testset | BLEU | chr-F | |-----------------------|-------|-------| | bible-uedin.en.jap | 42.1 | 0.960 |
[ -0.29327747225761414, -0.49883246421813965, 0.22955910861492157, 0.43302425742149353, -0.47899267077445984, -0.42713242769241333, -0.5107836127281189, -0.09680173546075821, 0.0424741767346859, 0.5429474115371704, -0.7696762084960938, -0.5922818183898926, -0.6579334139823914, 0.21562641859054565, -0.06847520917654037, 0.8088263869285583, -0.13989980518817902, 0.5179755687713623, 0.21411415934562683, -0.45804452896118164, -0.40217867493629456, -0.3651431202888489, -0.5479294657707214, -0.3301384150981903, 0.22912637889385223, 0.44230467081069946, 0.5036502480506897, 0.4344818890094757, 1.0263029336929321, 0.269991934299469, -0.11421369761228561, 0.012633069418370724, -0.4651581346988678, 0.05823640525341034, 0.12996046245098114, -0.653214693069458, -0.7678898572921753, -0.16748198866844177, 1.1595954895019531, 0.5186980962753296, 0.0009705778211355209, 0.39664050936698914, 0.022634221240878105, 1.0384126901626587, -0.39766925573349, 0.17258121073246002, -0.6162329912185669, 0.14801891148090363, -0.36526891589164734, -0.32838547229766846, -0.7860040068626404, -0.28552743792533875, 0.22902853786945343, -0.7642736434936523, -0.054687656462192535, 0.15998335182666779, 1.5467196702957153, 0.2602648437023163, -0.3132680654525757, -0.16775768995285034, -0.6255935430526733, 1.175249457359314, -0.91151362657547, 0.6013524532318115, 0.4774755835533142, 0.28069403767585754, 0.18588919937610626, -0.5275173187255859, -0.3039422631263733, 0.09179756790399551, -0.1746210753917694, 0.2946743369102478, -0.04723069444298744, -0.2477925568819046, 0.39472413063049316, 0.8359768390655518, -0.8367282748222351, -0.12055083364248276, -0.5224543809890747, 0.02637067623436451, 0.7119637727737427, 0.032903946936130524, 0.24881748855113983, -0.24907827377319336, -0.4816272556781769, -0.67034512758255, -0.7684203386306763, 0.11708447337150574, 0.3193688988685608, 0.35578691959381104, -0.4739096760749817, 0.7638829946517944, -0.16100604832172394, 0.6604561805725098, -0.0367201492190361, -0.10878019779920578, 1.0551835298538208, -0.4232662618160248, -0.4360348880290985, -0.15392009913921356, 1.272508144378662, 0.3750801384449005, 0.14166246354579926, 0.13587987422943115, -0.22203749418258667, -0.3564808666706085, 0.123970165848732, -0.9979520440101624, -0.05345468968153, 0.0690925270318985, -0.48269015550613403, -0.08279559016227722, 0.017801186069846153, -0.6368634700775146, 0.20847627520561218, -0.47425565123558044, 0.6915310621261597, -0.805163562297821, -0.2607521414756775, 0.4006485641002655, -0.01710342802107334, 0.42694056034088135, 0.016898715868592262, -0.7498221397399902, 0.16642239689826965, 0.38045814633369446, 0.8343517184257507, -0.3443700671195984, -0.245033860206604, -0.43199214339256287, -0.13736405968666077, -0.10022029280662537, 0.6602750420570374, -0.14060482382774353, -0.47969189286231995, -0.03457510471343994, 0.5174881815910339, -0.4054124057292938, -0.32357141375541687, 1.3892909288406372, -0.3688015341758728, 0.8294532895088196, -0.5632378458976746, -0.6296520233154297, -0.428690105676651, 0.5100972056388855, -0.5752531886100769, 1.3325852155685425, 0.17827108502388, -0.9541251063346863, 0.25044605135917664, -0.9184513688087463, -0.22639240324497223, 0.07161370664834976, 0.061899907886981964, -0.7695232629776001, 0.1299549639225006, 0.23663179576396942, 0.4279463291168213, -0.3928264379501343, 0.3727763295173645, -0.031825099140405655, -0.3703540861606598, 0.08369334042072296, -0.45827701687812805, 1.186436414718628, 0.3155590891838074, -0.350230872631073, 0.06932321935892105, -0.9867948889732361, 0.011798162013292313, 0.039145585149526596, -0.4693430960178375, -0.3094292879104614, 0.15457990765571594, 0.24575962126255035, 0.0828855112195015, 0.37486761808395386, -0.716717541217804, 0.37566059827804565, -0.8084555864334106, 0.03790094703435898, 0.6955061554908752, -0.30066388845443726, 0.3582727313041687, -0.4448011815547943, 0.4189300537109375, 0.07747455686330795, 0.13499940931797028, -0.058434341102838516, -0.5586334466934204, -1.0195637941360474, -0.16849759221076965, 0.6229530572891235, 1.1604862213134766, -0.8935983777046204, 0.9418027400970459, -0.7719151377677917, -0.8596773743629456, -0.810878336429596, -0.15667787194252014, 0.5974186658859253, 0.352466344833374, 0.5838558673858643, -0.3419816493988037, -0.4671007990837097, -1.2361880540847778, -0.2488146722316742, -0.17753830552101135, -0.25961723923683167, 0.17726141214370728, 0.6482380032539368, -0.14085450768470764, 0.6274335384368896, -0.6267043948173523, -0.4163910448551178, -0.1908813714981079, 0.22951625287532806, 0.5557815432548523, 0.7115804553031921, 0.5818477272987366, -0.936847448348999, -0.7456551790237427, 0.01575789600610733, -0.8167255520820618, -0.2183205932378769, 0.024140775203704834, -0.21470695734024048, -0.0021870434284210205, 0.061214741319417953, -0.283591091632843, 0.10240885615348816, 0.6510594487190247, -0.617423415184021, 0.5603511929512024, -0.12824854254722595, 0.4065537750720978, -1.5337940454483032, 0.10327265411615372, -0.15368016064167023, -0.16647092998027802, -0.47275683283805847, 0.053864486515522, 0.34652090072631836, 0.06900990754365921, -0.8523239493370056, 0.49470099806785583, -0.348634272813797, -0.12327531725168228, 0.22780868411064148, -0.027883639559149742, 0.06770165264606476, 0.7759700417518616, -0.06604324281215668, 1.0181258916854858, 0.8142561316490173, -0.5401550531387329, 0.2031538337469101, 0.6611921191215515, -0.480264276266098, 0.4240109622478485, -0.8222517967224121, -0.3402923047542572, 0.35531502962112427, -0.12234446406364441, -0.6922500133514404, 0.05182589590549469, 0.3814678192138672, -0.7050804495811462, 0.5413492321968079, -0.10732879489660263, -0.79466313123703, -0.01175656821578741, -0.33008044958114624, 0.5095871686935425, 0.7895525693893433, -0.1752767711877823, 0.6460584402084351, 0.11404620110988617, -0.13931147754192352, -0.5208109617233276, -1.1265168190002441, -0.11700743436813354, -0.37381747364997864, -0.8000348806381226, 0.21466796100139618, -0.41933584213256836, 0.008728641085326672, -0.04550333321094513, 0.34310898184776306, -0.1042647436261177, 0.045412950217723846, 0.14094065129756927, 0.19704748690128326, -0.6053589582443237, 0.12794162333011627, 0.07531113922595978, -0.23352918028831482, -0.13310322165489197, -0.14288417994976044, 0.624815821647644, -0.4486176371574402, -0.36027461290359497, -0.665810763835907, 0.0997842401266098, 0.5897719860076904, -0.38288551568984985, 0.9333620071411133, 0.5626252889633179, -0.045972514897584915, 0.22291824221611023, -0.432442307472229, 0.1718042939901352, -0.4970647692680359, 0.10953009873628616, -0.5108188986778259, -0.8475804328918457, 0.49867159128189087, 0.05524669587612152, 0.521815836429596, 0.9886407256126404, 0.7042943239212036, 0.12371835857629776, 0.7387755513191223, 0.3442022204399109, 0.0024550016969442368, 0.5280484557151794, -0.4684801697731018, -0.16320718824863434, -1.158318281173706, 0.11905078589916229, -0.7310567498207092, -0.33566853404045105, -0.9449717402458191, -0.30087700486183167, 0.33559122681617737, 0.07756954431533813, -0.22243089973926544, 0.7940689921379089, -0.6577113270759583, 0.3666898012161255, 0.6519858837127686, -0.18072400987148285, 0.3517674505710602, 0.059309642761945724, -0.5808723568916321, -0.31034132838249207, -0.4418300986289978, -0.580590546131134, 1.4509649276733398, 0.4021947979927063, 0.3422912657260895, 0.2778315246105194, 0.5379576683044434, 0.05414880812168121, 0.2854737639427185, -0.657564640045166, 0.5551503300666809, -0.23603162169456482, -0.828141987323761, -0.335981160402298, -0.6014053225517273, -0.9355231523513794, 0.5268234610557556, -0.2829369008541107, -0.576996922492981, 0.11648260802030563, -0.02239072509109974, -0.10356219857931137, 0.4336642026901245, -0.78070068359375, 1.1971666812896729, -0.08394043147563934, -0.038657672703266144, 0.3146475553512573, -0.5877923369407654, 0.33736103773117065, -0.010153894312679768, 0.2724177837371826, -0.20992490649223328, 0.2138882875442505, 0.6950344443321228, -0.09293925762176514, 0.44232097268104553, -0.06150138005614281, 0.002035376848652959, 0.06940467655658722, 0.1155678778886795, 0.36388546228408813, -0.09515659511089325, -0.41892775893211365, 0.3765106201171875, 0.027806146070361137, -0.509572446346283, -0.16301746666431427, 0.6330580711364746, -0.8610693216323853, -0.10537116229534149, -0.5768516063690186, -0.7237314581871033, -0.008609308861196041, 0.3500603139400482, 0.7284126877784729, 0.7254728078842163, -0.2438233345746994, 0.6611409783363342, 0.9324671030044556, -0.3931593596935272, 0.4526515007019043, 0.8307730555534363, -0.2564263939857483, -0.5531135201454163, 0.9230120182037354, 0.14935745298862457, 0.47529107332229614, 0.685151219367981, 0.19076459109783173, -0.09211967140436172, -0.7811108827590942, -0.8249367475509644, 0.2472173124551773, -0.3448844254016876, -0.18099276721477509, -0.5572411417961121, -0.1505519300699234, -0.33654773235321045, 0.20984357595443726, -0.5772264003753662, -0.6210760474205017, -0.15573003888130188, -0.1277058869600296, 0.21420834958553314, 0.21447652578353882, -0.009366845712065697, 0.5666342973709106, -1.1657264232635498, 0.18545107543468475, -0.15571992099285126, 0.4015960395336151, -0.5216774940490723, -0.9257016181945801, -0.5468205809593201, 0.08807772397994995, -0.8336448669433594, -0.8258705735206604, 0.5878413319587708, 0.1621868908405304, 0.1566094160079956, 0.4387708008289337, 0.19251394271850586, 0.457536518573761, -0.7646022439002991, 1.1425479650497437, 0.003043849254027009, -0.8208553791046143, 0.5840989351272583, -0.5243683457374573, 0.5729793310165405, 1.0488148927688599, 0.31608155369758606, -0.444969117641449, -0.6717817783355713, -0.7965579628944397, -0.8597440123558044, 0.903583288192749, 0.8078284859657288, -0.16787274181842804, 0.22822923958301544, -0.07615455240011215, 0.0039388746954500675, 0.12264382094144821, -1.3427187204360962, -0.42650288343429565, 0.10912135988473892, -0.37656843662261963, -0.17378884553909302, -0.26648828387260437, -0.18884222209453583, -0.2549670338630676, 1.2535024881362915, 0.22149008512496948, 0.1768592894077301, 0.45061230659484863, -0.20540590584278107, -0.286868691444397, 0.42889970541000366, 1.0001201629638672, 0.538358747959137, -0.6280210018157959, -0.2723691761493683, 0.35638856887817383, -0.4918917119503021, -0.09719910472631454, 0.11488766968250275, -0.5613498687744141, 0.33741191029548645, 0.518385648727417, 1.127837061882019, 0.22915959358215332, -0.6842076182365417, 0.5735280513763428, -0.4204874634742737, -0.40382999181747437, -0.7896698713302612, -0.07433406263589859, 0.12161418795585632, 0.004351907875388861, 0.21106049418449402, 0.14793474972248077, 0.2301575392484665, -0.22127465903759003, 0.11443440616130829, 0.14049720764160156, -0.6919054388999939, -0.5326682925224304, 0.4942314624786377, 0.11803893744945526, -0.3849940299987793, 0.5160332322120667, -0.44746336340904236, -0.592463493347168, 0.38312095403671265, 0.2039613127708435, 1.1712331771850586, -0.3021326959133148, -0.26384812593460083, 0.8251323103904724, 0.6317748427391052, -0.27748599648475647, 0.443636953830719, 0.0707627534866333, -0.7506728172302246, -0.6210058927536011, -0.994726300239563, -0.2246730625629425, 0.1381659060716629, -0.9176451563835144, 0.37161439657211304, 0.31701695919036865, 0.03425569087266922, -0.3591311275959015, 0.2763092815876007, -0.5600578784942627, 0.179275780916214, -0.24007844924926758, 1.0623393058776855, -1.0813825130462646, 0.9549891352653503, 0.5109944939613342, -0.3396163880825043, -0.9016966819763184, -0.21348600089550018, -0.2083747237920761, -0.5422309041023254, 0.6459893584251404, 0.27683383226394653, 0.32152339816093445, -0.19681695103645325, -0.22188951075077057, -0.8999361395835876, 1.2047758102416992, 0.1915818750858307, -0.7754772901535034, 0.052937284111976624, 0.25237375497817993, 0.5255677103996277, -0.31391575932502747, 0.22521854937076569, 0.4518522024154663, 0.8018444180488586, 0.07430803775787354, -1.157932162284851, -0.33706316351890564, -0.5726283192634583, -0.2661469280719757, 0.6534853577613831, -0.6186493635177612, 1.0434504747390747, 0.5782298445701599, -0.1791878491640091, 0.10307842493057251, 0.6927341818809509, 0.27786311507225037, 0.3693055212497711, 0.6091443300247192, 1.3021087646484375, 0.2968680262565613, -0.5471856594085693, 1.1785999536514282, -0.3646906614303589, 0.5781208276748657, 1.229109287261963, -0.01960330829024315, 0.9703443646430969, 0.31711676716804504, -0.18707673251628876, 0.546489417552948, 0.6477124094963074, -0.2990833520889282, 0.4848538041114807, 0.021334899589419365, 0.12851135432720184, -0.21019333600997925, 0.27279937267303467, -0.8613576889038086, 0.3065907657146454, 0.20430423319339752, -0.2977007329463959, 0.06098726764321327, -0.03872190788388252, 0.06861396133899689, -0.056331533938646317, -0.10700851678848267, 0.6998348832130432, -0.011107943952083588, -0.7139644622802734, 0.760277271270752, -0.044707734137773514, 0.720710039138794, -0.829912006855011, 0.1958106905221939, -0.04075032100081444, 0.2778216004371643, 0.09704886376857758, -0.6354221701622009, 0.4947828948497772, -0.011491763405501842, -0.29757580161094666, -0.5295550227165222, 0.25733789801597595, -0.6180084943771362, -1.010791540145874, 0.39218589663505554, 0.4917711019515991, 0.3925260305404663, 0.07852894812822342, -1.0331754684448242, -0.024233967065811157, 0.23531299829483032, -0.7889081239700317, 0.14981403946876526, 0.7444851398468018, 0.3807249069213867, 0.5342850685119629, 0.6873962879180908, 0.2677980661392212, 0.15177606046199799, 0.030945582315325737, 0.7182010412216187, -0.555558979511261, -0.45230430364608765, -0.911607563495636, 0.8522857427597046, -0.19134849309921265, -0.7709826231002808, 0.8876912593841553, 1.1275631189346313, 1.059726357460022, -0.17617632448673248, 0.33176180720329285, -0.04455295577645302, 0.8326354026794434, -0.710316002368927, 0.6731199622154236, -1.0780538320541382, 0.262896865606308, -0.23011159896850586, -1.0207234621047974, -0.2895611524581909, 0.4559994339942932, -0.23242700099945068, -0.40738150477409363, 0.8599687218666077, 0.7287191152572632, -0.2353334277868271, -0.08818655461072922, 0.3011414408683777, 0.3293027877807617, 0.25736358761787415, 0.6999250650405884, 0.4399874806404114, -1.0909349918365479, 0.5504564642906189, -0.29983213543891907, -0.11973100900650024, -0.05476107448339462, -0.8030125498771667, -0.8909615874290466, -0.6875295639038086, -0.20024804770946503, -0.20219266414642334, -0.33429771661758423, 1.0098525285720825, 0.509448766708374, -0.9960570335388184, -0.6225034594535828, 0.007743473164737225, 0.10217121243476868, -0.20611503720283508, -0.30312299728393555, 0.6403898596763611, -0.39817187190055847, -1.0410057306289673, 0.5220287442207336, 0.17337436974048615, -0.09528949856758118, 0.01627386175096035, -0.2606090009212494, -0.5449821352958679, -0.028651265427470207, 0.3456430733203888, 0.05130421742796898, -0.6106886863708496, 0.07849989831447601, 0.036314234137535095, -0.10300633311271667, 0.4488320052623749, 0.41117486357688904, -0.2823658883571625, 0.4076526165008545, 0.8679782152175903, 0.45670029520988464, 0.5090728402137756, -0.13267895579338074, 0.5936710834503174, -0.7916003465652466, 0.3713035583496094, 0.25059273838996887, 0.6746197938919067, 0.41393759846687317, 0.016229037195444107, 0.8368396759033203, 0.26609018445014954, -0.7817068099975586, -1.0858142375946045, 0.14285993576049805, -1.3313571214675903, -0.0500648096203804, 0.96474689245224, -0.35920456051826477, -0.2971000671386719, 0.3726017475128174, -0.17194987833499908, 0.22091899812221527, -0.3694293797016144, 0.494412899017334, 0.9791617393493652, 0.42944225668907166, 0.10075628012418747, -0.8440747857093811, 0.4094056189060211, 0.6459614038467407, -0.8000124096870422, -0.20449355244636536, 0.22059115767478943, 0.12815867364406586, 0.4964163899421692, 0.5387640595436096, -0.2491147220134735, 0.11189500987529755, -0.2893078029155731, 0.4453851282596588, -0.04637007787823677, -0.16501566767692566, -0.2876811921596527, 0.05160389095544815, -0.07521996647119522, -0.29716840386390686 ]
barissayil/bert-sentiment-analysis-sst
barissayil
"2021-06-11T09:47:14Z"
13,715
0
transformers
[ "transformers", "pytorch", "bert", "text-classification", "endpoints_compatible", "region:us" ]
text-classification
"2022-03-02T23:29:05Z"
Entry not found
[ -0.3227650225162506, -0.22568431496620178, 0.862226128578186, 0.43461495637893677, -0.5282987952232361, 0.7012965679168701, 0.7915717363357544, 0.07618638128042221, 0.7746025919914246, 0.2563219666481018, -0.7852817177772522, -0.22573819756507874, -0.9104480743408203, 0.5715669393539429, -0.3992334008216858, 0.5791245698928833, -0.14494505524635315, -0.10751161724328995, 0.28233757615089417, -0.2768954336643219, -0.5409224033355713, -0.36855220794677734, -1.1902776956558228, 0.061491113156080246, 0.5316578149795532, 0.7435142397880554, 0.7584060430526733, 0.3652167320251465, 0.6432578563690186, 0.3932291269302368, -0.23138920962810516, 0.4827055037021637, -0.04171813279390335, 0.00260411505587399, -0.3524433970451355, -0.5516898036003113, -0.28596609830856323, 0.07584730535745621, 1.0961304903030396, 0.966687798500061, -0.284663587808609, 0.05330817773938179, -0.3063621520996094, 0.33088892698287964, -0.49734312295913696, 0.3054099678993225, -0.022506045177578926, 0.16318801045417786, -0.7041513919830322, -0.5535354018211365, 0.012794834561645985, -0.7361212968826294, 0.17926570773124695, -0.690081000328064, 0.8269098401069641, 0.18583157658576965, 1.1533750295639038, 0.14819414913654327, -0.462487131357193, -0.8161764144897461, -0.6538989543914795, 0.5711171627044678, -0.32703715562820435, 0.39680248498916626, 0.7028235197067261, -0.048573412001132965, -0.9820332527160645, -0.6745741367340088, -0.46466192603111267, 0.2923962473869324, 0.35402774810791016, -0.3411678075790405, -0.17522086203098297, -0.3058989644050598, 0.15792037546634674, 0.12811517715454102, -0.4841994643211365, -0.5543919205665588, -0.5475160479545593, -0.3960252106189728, 0.6206658482551575, 0.3482950031757355, 0.2429177463054657, -0.1888415813446045, -0.3228583335876465, 0.0880163162946701, -0.4160851538181305, 0.3402571678161621, 0.6335517168045044, 0.7114017009735107, -0.5811444520950317, 0.560215950012207, -0.04927587881684303, 0.7439703941345215, 0.11445561796426773, -0.27478092908859253, 0.41460567712783813, -0.14724725484848022, 0.055171746760606766, 0.4226345121860504, 0.31524422764778137, 0.2841312289237976, -0.3273695111274719, 0.2032228708267212, -0.3215144872665405, -0.30496224761009216, -0.22332167625427246, -0.29490774869918823, -0.3592180609703064, 0.5492289066314697, -0.3314017057418823, -0.42855486273765564, 1.143175721168518, -0.4200771450996399, -0.7302224040031433, 0.33156412839889526, 0.4065209925174713, -0.0994480773806572, -0.37146568298339844, -0.052260834723711014, -0.8458789587020874, -0.007907390594482422, 0.7491172552108765, -0.7198970913887024, 0.3371737599372864, 0.4728063642978668, 0.7417217493057251, 0.19650575518608093, -0.14034469425678253, -0.42949390411376953, 0.2971969544887543, -0.8659994006156921, 0.6320174336433411, -0.20135220885276794, -1.0051977634429932, 0.11150479316711426, 0.8971705436706543, -0.37896400690078735, -1.2094876766204834, 1.0605159997940063, -0.6887932419776917, 0.16017857193946838, -0.676761269569397, -0.14661237597465515, -0.07118501514196396, -0.005096632521599531, -0.6088156700134277, 0.7567102313041687, 0.587267279624939, -0.4995276927947998, 0.21429483592510223, -0.26029831171035767, -0.39151400327682495, 0.38824859261512756, -0.07935450226068497, -0.21858926117420197, 0.713833212852478, -0.6647079586982727, -0.26932814717292786, 0.2942774295806885, 0.2368936538696289, -0.35706108808517456, -0.7931919097900391, 0.08478113263845444, -0.05786270648241043, 1.550750494003296, -0.03868847340345383, -0.3586106300354004, -0.679383397102356, -1.1506240367889404, -0.07070787996053696, 0.6886883974075317, -0.9194989204406738, -0.27839475870132446, -0.046410128474235535, -0.26169314980506897, 0.08994917571544647, 0.7390589714050293, -1.1194051504135132, 0.2832726836204529, -0.05092663690447807, -0.22794683277606964, 0.8271058797836304, 0.15387225151062012, 0.24758946895599365, 0.14913396537303925, 0.42958706617355347, 0.527725338935852, 0.11115207523107529, 0.683587908744812, -0.34720373153686523, -0.9694353938102722, 0.6154631972312927, 0.25266361236572266, 0.8121447563171387, -0.49945297837257385, 0.2685093879699707, 0.27025535702705383, -0.3409680724143982, -0.5682371854782104, -0.3102838397026062, 0.09025752544403076, 0.14930562674999237, 0.11142510175704956, -0.5721710324287415, -0.6576125025749207, -0.9689140319824219, -0.13590654730796814, -0.4314374029636383, -0.3571570813655853, 0.21006910502910614, 0.5792906284332275, -1.1975523233413696, 0.4128875136375427, -0.7705625891685486, -0.7038741111755371, -0.01065548975020647, -0.19338123500347137, 0.7540656328201294, 0.43240174651145935, 0.5033966898918152, -0.6397148370742798, -0.5661987066268921, -0.22470176219940186, -1.0333747863769531, -0.13280506432056427, 0.24819621443748474, 0.3065737783908844, -0.13423344492912292, -0.2744963765144348, -0.48740333318710327, 0.8100387454032898, 0.14789170026779175, -0.5391897559165955, 0.5220767259597778, -0.3020317256450653, 0.17224803566932678, -0.6369150280952454, -0.06916818022727966, -0.661676287651062, -0.0009071884560398757, -0.3608308732509613, -0.5737438797950745, 0.14772287011146545, 0.07017494738101959, -0.16065457463264465, 0.28808408975601196, -0.909277081489563, -0.0010852962732315063, -0.7442210912704468, 0.379071980714798, 0.06394772231578827, -0.3145078718662262, -0.017517540603876114, 1.0000386238098145, 0.7784460783004761, -0.3848048746585846, 0.721744179725647, 0.4440041184425354, 0.19036155939102173, 0.7630521059036255, -0.18725109100341797, 0.16478213667869568, -0.5245416760444641, -0.12161104381084442, -0.8887597918510437, -1.0982946157455444, 0.7320570349693298, -0.6114250421524048, 0.36542922258377075, -0.4277869760990143, 0.2589159905910492, -0.6919258832931519, -0.03885362669825554, 0.4808599352836609, -0.05936325341463089, -0.6863942742347717, 0.5232570171356201, 0.45317530632019043, -0.2019241601228714, -0.6609031558036804, -0.530157208442688, 0.39365822076797485, 0.6154114007949829, -0.16390392184257507, 0.06878514587879181, 0.14941060543060303, -0.5441926121711731, -0.040802597999572754, -0.38691970705986023, -0.45766758918762207, 0.054224006831645966, 0.13053473830223083, -0.005750799085944891, -0.404820054769516, -0.0868026465177536, -0.35842007398605347, -0.4656120240688324, 0.21876516938209534, 0.3011947274208069, -0.04096309468150139, -0.42599788308143616, -0.3619818687438965, -0.888181209564209, 0.6719610095024109, 0.5370282530784607, 0.05281545966863632, 0.7555549740791321, 0.16819314658641815, -0.8014987707138062, -0.13532210886478424, -0.1760706603527069, 0.2696830928325653, -0.5588056445121765, 0.13849826157093048, -0.013484534807503223, -0.0637492910027504, 0.26297882199287415, 0.25386232137680054, -0.4300556778907776, 0.9276250004768372, -0.2615274488925934, -0.3592521846294403, 0.7960181832313538, 0.5974742770195007, 0.49583131074905396, 0.16503219306468964, -0.044541798532009125, 0.900709331035614, -1.1966516971588135, -0.6563175916671753, -0.7409549355506897, -0.15945707261562347, -0.43510833382606506, -0.032105933874845505, 0.6254412531852722, 0.2900990843772888, -0.1333388388156891, 0.4756395220756531, -0.5243489742279053, 0.3556033670902252, 1.01198410987854, 0.35748639702796936, 0.3435698449611664, -0.7570229172706604, -0.2515777349472046, -0.1402427852153778, -0.9998157620429993, -0.2631377875804901, 0.8871029019355774, 0.22752606868743896, 0.844460666179657, 0.5992541313171387, 0.6784542798995972, 0.1367226243019104, 0.2523828148841858, -0.30590319633483887, 0.3920294940471649, 0.4376082420349121, -1.0401138067245483, -0.42758408188819885, 0.021418681368231773, -0.9703338742256165, -0.14227519929409027, -0.03495011106133461, -0.42617112398147583, 0.7681737542152405, 0.00016589462757110596, -0.4076709747314453, 0.7732734084129333, -0.455583393573761, 0.7562873363494873, -0.4473648965358734, -0.02663906291127205, 0.4699096083641052, -0.7070636749267578, 0.4677430987358093, 0.12878790497779846, 0.6205843091011047, -0.015572631731629372, -0.04078587517142296, 0.7104941606521606, -0.9129160046577454, 0.25438642501831055, -0.6348397135734558, 0.22421300411224365, 0.24246945977210999, 0.51606285572052, 0.5969953536987305, 0.4371243417263031, 0.10119888931512833, -0.23920902609825134, 0.04115807265043259, -0.8241125345230103, -0.210506409406662, 0.697515606880188, -0.7186890840530396, -0.6864197850227356, -1.2355337142944336, 0.14438660442829132, 0.27347055077552795, 0.389305055141449, 0.7959296107292175, 0.571408748626709, 0.1289544403553009, 0.680525004863739, 0.9888588190078735, -0.0688566341996193, 0.9166924357414246, 0.3224477171897888, 0.09175168722867966, -0.21944808959960938, 0.7036820650100708, 0.26627904176712036, -0.24707956612110138, -0.11939732730388641, 0.20913465321063995, -0.11069409549236298, -0.591761589050293, -0.49990686774253845, 0.3701757788658142, -0.6731787919998169, -0.18303893506526947, -0.6243735551834106, -0.6043769717216492, -0.511759340763092, 0.06927360594272614, -0.7147687673568726, 0.23979046940803528, -0.7753565907478333, -0.10574902594089508, 0.04323432594537735, 0.9792009592056274, -0.589311957359314, 0.5805224180221558, -1.1218582391738892, 0.19345788657665253, -0.07949887961149216, 0.7921058535575867, 0.21395787596702576, -0.7344395518302917, -0.3975418508052826, -0.11592631042003632, -0.3729911744594574, -1.3576762676239014, 0.21404948830604553, -0.2454141080379486, 0.23094046115875244, 0.6145404577255249, 0.1397707313299179, 0.5258248448371887, -0.34326282143592834, 0.7029101848602295, -0.057017259299755096, -0.7069286704063416, 0.7934495210647583, -0.5026894807815552, 0.4963534474372864, 0.9765996932983398, 0.5333835482597351, -0.7984007596969604, 0.035741209983825684, -1.041123390197754, -0.6008695363998413, 0.38426393270492554, 0.11928944289684296, -0.03601083159446716, -0.6659559011459351, -0.054019637405872345, -0.16143807768821716, 0.6043745279312134, -1.039069414138794, -0.7858356237411499, 0.2576698362827301, 0.5277302861213684, 0.0816856250166893, -0.5653398633003235, 0.20880667865276337, -0.544416069984436, 1.0657774209976196, 0.45109400153160095, 0.3274499475955963, 0.8406060934066772, 0.46492424607276917, -0.3823164403438568, 0.09252490103244781, 0.7662695050239563, 0.6666232347488403, -0.5239797830581665, -0.2908027470111847, -0.08827541768550873, -0.9143403768539429, 0.05927472561597824, 0.11168918758630753, -0.013455932028591633, 0.9082110524177551, 0.5793083310127258, 0.2539709210395813, 0.4514279365539551, -0.726460337638855, 0.8859451413154602, -0.14954176545143127, -0.12472866475582123, -1.0677239894866943, 0.1948619782924652, -0.23984959721565247, 0.5006402134895325, 1.0061326026916504, 0.5250048041343689, -0.047630298882722855, -0.8143380880355835, -0.01473585981875658, 0.6939172148704529, -0.7091123461723328, -0.17449834942817688, 0.944853663444519, 0.3847099542617798, -1.2953051328659058, 1.106776475906372, -0.5381771326065063, -0.560332179069519, 0.9121301770210266, 0.522956907749176, 1.1221847534179688, -0.44204121828079224, 0.0008676342549733818, 0.2662237286567688, 0.41378432512283325, 0.5423170328140259, 1.0869629383087158, 0.431413471698761, -0.7931063771247864, 0.8826584815979004, -0.24776044487953186, -0.40361151099205017, -0.05347571521997452, -0.42859897017478943, 0.16892178356647491, -0.4406192898750305, -0.10713007301092148, -0.3444187641143799, 0.28543180227279663, -0.7072042226791382, 0.42807620763778687, -0.0838567465543747, 0.8653068542480469, -0.8553727269172668, 0.47207626700401306, 0.635470449924469, -0.3337355852127075, -0.8508191108703613, -0.26198428869247437, -0.11448462307453156, -0.6389466524124146, 0.30214807391166687, -0.4554102420806885, 0.044398851692676544, 0.09623463451862335, -0.649151623249054, -1.1778275966644287, 0.9093633890151978, -0.639612078666687, -0.2784462869167328, 0.20464053750038147, -0.11514760553836823, 0.28811705112457275, -0.2524643540382385, 0.010661216452717781, 0.41876548528671265, 0.748940110206604, 0.2844654619693756, -0.7727053761482239, -0.3694884479045868, 0.0015032943338155746, -0.44474777579307556, 0.7582978010177612, -0.6002101898193359, 1.1840779781341553, -0.5563543438911438, -0.059654366225004196, 0.44384512305259705, 0.24690914154052734, 0.21076197922229767, 0.6629220843315125, 0.1442081481218338, 0.7282265424728394, 1.07012140750885, -0.40835219621658325, 0.8811809420585632, 0.26432839035987854, 0.47430819272994995, 0.7238501906394958, -0.6487724781036377, 0.7513749003410339, 0.31810489296913147, -0.5682924389839172, 0.9228013753890991, 1.2906063795089722, -0.15699204802513123, 0.8079374432563782, 0.05136508867144585, -1.081600546836853, 0.325833261013031, -0.20724765956401825, -0.7530064582824707, 0.3150254189968109, 0.19055864214897156, -0.6920982599258423, -0.5770308971405029, -0.24046507477760315, -0.35662803053855896, -0.11552901566028595, -0.7631728649139404, 0.6720563769340515, -0.016969164833426476, -0.5103683471679688, 0.18857547640800476, 0.2877499461174011, 0.17368432879447937, -0.5235732793807983, -0.02939440682530403, -0.22823619842529297, 0.2660655975341797, -0.5670853853225708, -0.5234526991844177, 0.5724433064460754, -0.32430219650268555, -0.5343255400657654, 0.18147465586662292, 0.763587236404419, -0.16923809051513672, -0.4515409469604492, 0.32472723722457886, 0.6959525346755981, 0.1665852814912796, 0.4250282347202301, -0.23511263728141785, 0.24480605125427246, -0.08044824004173279, -0.06651552021503448, 0.27714768052101135, 0.3449169099330902, 0.22435641288757324, 0.4450142979621887, 0.43285664916038513, -0.01808755099773407, -0.10736498981714249, -0.382819801568985, 0.4124940037727356, -0.9542785882949829, -0.5713282823562622, -0.6307113766670227, 0.2740660607814789, -0.02315417304635048, -1.0836423635482788, 0.4145168364048004, 1.4406683444976807, 1.0359982252120972, -0.4756383001804352, 1.067226529121399, -0.21818485856056213, 0.9594791531562805, 0.41483086347579956, 0.5420440435409546, -0.6030411720275879, 0.03835370019078255, -0.4364396035671234, -1.076962947845459, -0.35716333985328674, 0.4539391100406647, -0.022899555042386055, -0.3429867625236511, 0.872571587562561, 0.5887166261672974, -0.33473607897758484, -0.11728022992610931, 0.048487238585948944, -0.029941488057374954, -0.12433847039937973, 0.5145376324653625, 0.7648399472236633, -0.9344304800033569, -0.10680416971445084, -0.21577754616737366, -0.6382725834846497, -0.5047279000282288, -0.9632009267807007, -0.12959396839141846, -0.16037796437740326, 0.035343267023563385, -0.5662806630134583, 0.00255737011320889, 1.208324909210205, 0.5684957504272461, -1.1113994121551514, -0.5303789377212524, 0.3371853232383728, 0.3920421898365021, -0.1874791383743286, -0.24202413856983185, 0.2984568774700165, 0.15382249653339386, -0.5908876657485962, 0.6875665783882141, 0.8089625239372253, 0.208888977766037, 0.19554761052131653, 0.15893013775348663, -0.8229473829269409, -0.14913435280323029, 0.17440445721149445, 0.9450570344924927, -0.939853310585022, -0.7114843130111694, -0.03168516233563423, -0.27094873785972595, -0.05765746906399727, 0.17102102935314178, -0.4046344757080078, 0.5180677175521851, 0.34591493010520935, 0.49933457374572754, 0.0561608150601387, -0.054746925830841064, 0.5409556031227112, -0.9069057703018188, 0.09425963461399078, 0.4134361147880554, 0.4154115319252014, -0.4000864028930664, -0.5910194516181946, 0.6713420748710632, 1.0073972940444946, -0.6594868898391724, -0.8743268847465515, -0.19846712052822113, -1.0016002655029297, 0.04189709946513176, 0.6762762069702148, 0.5009527802467346, -0.4806513786315918, -0.4174500107765198, -0.5617399215698242, -0.1254672110080719, -0.1369970738887787, 0.7621601819992065, 1.179680585861206, -0.7432094812393188, 0.07975747436285019, -1.038639783859253, 0.6594986915588379, -0.2419457733631134, -0.3457581698894501, -0.48644304275512695, 0.3832802176475525, 0.35236993432044983, 0.440481036901474, 0.614812433719635, 0.1408471167087555, 0.8338426351547241, 0.3126053214073181, -0.1702686995267868, 0.2698982357978821, -0.4559200704097748, -0.028932858258485794, -0.057962555438280106, 0.31015971302986145, -1.0262157917022705 ]
facebook/mbart-large-en-ro
facebook
"2023-09-11T13:45:59Z"
13,698
0
transformers
[ "transformers", "pytorch", "tf", "safetensors", "mbart", "translation", "en", "ro", "license:mit", "endpoints_compatible", "has_space", "region:us" ]
translation
"2022-03-02T23:29:05Z"
--- tags: - translation language: - en - ro license: mit --- ### mbart-large-en-ro This is mbart-large-cc25, finetuned on wmt_en_ro. It scores BLEU 28.1 without post processing and BLEU 38 with postprocessing. Instructions in `romanian_postprocessing.md` Original Code: https://github.com/pytorch/fairseq/tree/master/examples/mbart Docs: https://huggingface.co/transformers/master/model_doc/mbart.html Finetuning Code: examples/seq2seq/finetune.py (as of Aug 20, 2020)
[ -0.6031638383865356, -0.7018862366676331, 0.12142437696456909, 0.48100802302360535, -0.4626109004020691, -0.2931562066078186, -0.3261067569255829, -0.2697352468967438, 0.1956752985715866, 0.41312259435653687, -0.8352328538894653, -0.46143612265586853, -0.5197911262512207, -0.14129416644573212, -0.07478579133749008, 1.004959225654602, 0.259265273809433, 0.29606735706329346, 0.22633935511112213, -0.07114168256521225, -0.13465270400047302, -0.2730509042739868, -0.7976345419883728, -0.33238527178764343, 0.6144309043884277, 0.9373447299003601, 0.5242409110069275, -0.03620883822441101, 0.8678060173988342, 0.29885292053222656, -0.15673649311065674, -0.09126114100217819, -0.4817698895931244, -0.13063152134418488, -0.29065775871276855, -0.2221701741218567, -0.7855375409126282, 0.09645064175128937, 0.7568655610084534, 0.3978372812271118, -0.30609530210494995, 0.7303803563117981, 0.18669572472572327, 0.7304697632789612, -0.3700503408908844, 0.07312373071908951, -0.7121525406837463, 0.11751016229391098, -0.20444336533546448, -0.31799930334091187, -0.587620198726654, -0.3263099491596222, -0.48381727933883667, -0.18192826211452484, 0.3041853904724121, -0.06918728351593018, 1.43169105052948, 0.16204649209976196, -0.5589863061904907, 0.34848856925964355, -0.8132297396659851, 0.7605515718460083, -0.37070316076278687, 0.5806375741958618, 0.5778725743293762, 0.8313436508178711, -0.07688809186220169, -0.9384175539016724, -0.3451424539089203, -0.22374047338962555, 0.17016497254371643, 0.3454594016075134, -0.38161125779151917, 0.023444658145308495, 0.7836396098136902, 0.7535459995269775, -0.6461769342422485, -0.05877722054719925, -1.0042718648910522, -0.15284882485866547, 0.7335166931152344, 0.09286300092935562, -0.3399844467639923, -0.1320142298936844, -0.23966363072395325, -0.19290781021118164, -0.4641655385494232, 0.10694184899330139, 0.2758614420890808, -0.020919835194945335, -0.1704341024160385, 1.1086976528167725, -0.31178992986679077, 0.5124097466468811, 0.36306363344192505, 0.31916239857673645, 0.5298060178756714, -0.10479972511529922, -0.6712411642074585, -0.21919019520282745, 1.0223780870437622, 0.49036622047424316, 0.40883129835128784, 0.27371370792388916, -0.31523504853248596, 0.03623346611857414, 0.31640031933784485, -1.0660195350646973, -0.6409645676612854, 0.007935469970107079, -0.49235233664512634, 0.15699763596057892, 0.24681265652179718, -0.4465128779411316, 0.14887511730194092, -0.32465407252311707, 0.7595748901367188, -0.49518662691116333, -0.12570127844810486, -0.11577849090099335, -0.1661534607410431, 0.7297750115394592, 0.33920615911483765, -0.5024313926696777, 0.34476128220558167, 0.5209089517593384, 0.5901004076004028, 0.44636180996894836, -0.1040806844830513, -0.6325191259384155, -0.31674081087112427, -0.37569236755371094, 0.4104984402656555, -0.11986534297466278, -0.27081429958343506, -0.5565851926803589, 0.5616618990898132, -0.01469644159078598, -0.5740418434143066, 1.1815308332443237, -0.4050053060054779, 0.0005135360406711698, 0.06567776948213577, -0.26882436871528625, -0.40280792117118835, 0.21617133915424347, -0.5823448300361633, 0.9905325770378113, 0.4513075649738312, -0.7169209718704224, 0.19184893369674683, -0.7926313877105713, -0.5568169951438904, 0.06736277788877487, 0.32684698700904846, -0.553352415561676, 0.31303542852401733, 0.028231028467416763, 0.5124855637550354, -0.17231471836566925, 0.002515168860554695, -0.1911994069814682, -0.5457637906074524, 0.2686837613582611, -0.8419420123100281, 1.0946605205535889, 0.5424538254737854, -0.1298009753227234, 0.17297585308551788, -1.0535591840744019, 0.2644577920436859, -0.07165730744600296, -0.2632574439048767, 0.32207155227661133, -0.3136318624019623, 0.36398208141326904, 0.33109891414642334, 0.37424975633621216, -0.808724045753479, 0.15622572600841522, 0.020123658701777458, 0.394985169172287, 0.3766891062259674, -0.042910974472761154, 0.07277270406484604, -0.4262765347957611, 0.40991953015327454, -0.15955324470996857, 0.5339111685752869, 0.3093320429325104, -0.8637750744819641, -0.8252519369125366, -0.421203076839447, 0.36079657077789307, 0.8807641267776489, -0.30417531728744507, 0.7860815525054932, 0.012075640261173248, -1.1826757192611694, -0.5351394414901733, -0.16348932683467865, -0.01954810321331024, 0.2324068248271942, 0.550889790058136, -0.1947171837091446, -0.9080573916435242, -1.1547929048538208, 0.3430069088935852, 0.20068658888339996, -0.24871905148029327, 0.007666903082281351, 0.43661314249038696, -0.5378616452217102, 0.38269996643066406, -0.5483965873718262, -0.1885087490081787, -0.10812243819236755, -0.13369186222553253, 0.7891110181808472, 0.9258027672767639, 0.2693398892879486, -0.5089997053146362, -0.554191529750824, 0.08085241168737411, -0.47244277596473694, -0.008638815023005009, 0.36066552996635437, -0.3874666392803192, 0.2014354020357132, 0.5764461159706116, -0.9317262172698975, 0.38416385650634766, 0.8048622012138367, -0.5219443440437317, 0.7504680156707764, -0.2609597146511078, 0.39257678389549255, -0.9777314066886902, 0.3528434634208679, 0.05693945288658142, -0.6962956190109253, -0.09082953631877899, 0.26859050989151, 0.23449000716209412, -0.14253902435302734, -0.49755537509918213, 0.12666653096675873, -0.2704697847366333, 0.11468541622161865, 0.08221711963415146, -0.22963999211788177, 0.14548805356025696, 0.27290573716163635, -0.22307425737380981, 0.34544992446899414, 0.5462978482246399, -0.487541139125824, 0.7722845673561096, 0.26261916756629944, -0.43709486722946167, 0.5997384786605835, -0.668336808681488, -0.2667236924171448, 0.20827779173851013, 0.2244337499141693, -0.76180499792099, 0.11828633397817612, 0.31630387902259827, -0.8563744425773621, 0.3516365587711334, -0.48230257630348206, -0.3434089422225952, -0.7316631078720093, -0.22218240797519684, 0.3227759897708893, 0.8980404734611511, -0.3266181945800781, 0.26001983880996704, 0.05441834777593613, 0.09093260020017624, -0.4235801100730896, -1.0925894975662231, -0.21865445375442505, -0.29304563999176025, -0.6458255052566528, 0.07191846519708633, -0.30755555629730225, -0.011544580571353436, -0.2439580112695694, -0.10648148506879807, -0.06387432664632797, -0.1614701896905899, 0.2624276280403137, 0.18820072710514069, -0.5868279337882996, -0.2636624574661255, -0.17800785601139069, -0.2332642376422882, 0.12221737951040268, -0.29049980640411377, 0.7189902067184448, -0.26732349395751953, 0.1137266606092453, -0.7180907130241394, 0.05106861889362335, 0.613134503364563, -0.4096410870552063, 0.625942051410675, 1.1723251342773438, -0.6152821183204651, -0.02804107777774334, -0.3489260971546173, -0.16753989458084106, -0.5704821944236755, 0.18530280888080597, -0.7730953097343445, -0.649070143699646, 0.3369191288948059, 0.35757550597190857, -0.17765314877033234, 0.9895203709602356, 0.5889536142349243, -0.27398231625556946, 0.7296454906463623, 0.32370248436927795, 0.44965726137161255, 0.4207141399383545, -0.6909535527229309, 0.0949491560459137, -0.8596676588058472, -0.0750139132142067, -0.47883421182632446, -0.5144482254981995, -1.0927774906158447, -0.48366084694862366, -0.14041532576084137, 0.5286046266555786, -0.7951891422271729, 0.6008156538009644, -0.39038968086242676, 0.3623625338077545, 0.7790656089782715, 0.36263734102249146, 0.12523695826530457, -0.14523115754127502, -0.06751003861427307, -0.025378284975886345, -0.5123071074485779, -0.2953605353832245, 0.9950806498527527, 0.3975740969181061, 0.7372016906738281, 0.12402607500553131, 0.6169819831848145, 0.01957976259291172, 0.306222140789032, -0.9683098793029785, 0.5118659138679504, -0.25668081641197205, -0.80716472864151, -0.3342546224594116, -0.727760374546051, -1.0977942943572998, 0.2192365974187851, -0.6050865650177002, -0.9643023014068604, -0.1849517673254013, 0.15166771411895752, -0.16229985654354095, 0.15307222306728363, -0.8106282353401184, 1.3490132093429565, 0.23155204951763153, -0.35037291049957275, -0.3708142042160034, -0.4838021397590637, 0.47873130440711975, 0.06517826020717621, 0.07146501541137695, -0.18821537494659424, 0.5650899410247803, 0.5923975706100464, -0.4706498086452484, 0.2755551040172577, -0.249349907040596, 0.1096305102109909, 0.6442253589630127, 0.3522481620311737, 0.2705009877681732, 0.27286648750305176, -0.05936678126454353, 0.08614989370107651, 0.17476782202720642, -0.6240119934082031, -0.0032596171367913485, 0.8305498957633972, -0.601788341999054, -0.45421102643013, -0.3590412139892578, -0.29078418016433716, 0.08586432039737701, 0.04208291321992874, 0.5690534710884094, 0.6150104999542236, -0.3357052505016327, 0.49387696385383606, 0.4184175431728363, -0.2492324560880661, 0.5986374616622925, 0.30489814281463623, -0.2946309447288513, -0.5299702882766724, 1.018217921257019, 0.07448703050613403, 0.1408870369195938, 0.5107917785644531, 0.5584025382995605, -0.27401894330978394, -0.21252617239952087, -0.38771185278892517, 0.2741226553916931, -0.5339921116828918, -0.4073973596096039, -0.47867369651794434, -0.6360647082328796, -0.3200381398200989, 0.09210027009248734, -0.5864576101303101, -0.7750325798988342, 0.04619303718209267, -0.36251556873321533, 0.5835747718811035, 0.5613998174667358, -0.5554438233375549, 0.3837392032146454, -1.1395195722579956, 0.354066401720047, 0.17009907960891724, 0.5004411339759827, -0.15217550098896027, -0.6827406287193298, -0.369437038898468, 0.20113444328308105, -0.7375559210777283, -0.5309838056564331, 0.1050814539194107, 0.17446082830429077, 0.4482339918613434, 0.5404235124588013, 0.08319389820098877, 0.43456387519836426, -0.6850367784500122, 0.6893884539604187, 0.13704563677310944, -0.9192503094673157, 0.4808415174484253, -0.3538500964641571, 0.4807783365249634, 0.4531245529651642, 0.4561375379562378, -0.39622294902801514, -0.4341350793838501, -0.9981763362884521, -0.89169842004776, 0.7226482629776001, 0.4028298258781433, -0.05550879240036011, 0.29459837079048157, -0.3785168528556824, 0.23464453220367432, -0.02020087093114853, -0.9449909329414368, -0.36592209339141846, -0.21377591788768768, -0.28851333260536194, -0.6726215481758118, -0.1484978199005127, 0.02261296473443508, -0.8536419868469238, 0.6932803392410278, 0.4892931580543518, 0.36432111263275146, 0.17178355157375336, -0.18531090021133423, -0.26420655846595764, 0.12402985990047455, 0.7148279547691345, 0.6321468353271484, -0.690557599067688, 0.1353108137845993, 0.06486343592405319, -0.6509272456169128, -0.12931302189826965, 0.34166598320007324, 0.06300081312656403, -0.07455829530954361, 0.11984263360500336, 0.6194266676902771, -0.25209787487983704, -0.34190797805786133, 0.5412665009498596, -0.1400228887796402, -0.33765852451324463, -0.5213478803634644, 0.035124458372592926, 0.18929380178451538, 0.5750200152397156, 0.23338750004768372, 0.20344127714633942, 0.23993967473506927, -0.4050709903240204, 0.6219725608825684, 0.25296440720558167, -0.6295086145401001, -0.2248130887746811, 0.6663925647735596, -0.015143896453082561, -0.5777938961982727, 0.6808245182037354, -0.6578013300895691, -0.2264793962240219, 0.7143808603286743, 0.5293949842453003, 0.634637176990509, -0.48959264159202576, 0.14122766256332397, 0.8361544609069824, 0.5996596813201904, 0.08322254568338394, 0.667086660861969, -0.13302433490753174, -0.4517293870449066, -0.4054959714412689, -0.9015123844146729, -0.20496337115764618, 0.14963510632514954, -0.774372935295105, 0.6632477641105652, -0.4881588816642761, -0.2671235203742981, 0.0032336278818547726, 0.1491483598947525, -0.8067184686660767, 0.6883859634399414, 0.14215457439422607, 1.1061205863952637, -0.797153890132904, 1.0724998712539673, 0.7099772095680237, -0.21308793127536774, -0.6909533143043518, -0.1966053545475006, -0.45539355278015137, -0.429171621799469, 0.26120293140411377, 0.46972477436065674, 0.20809251070022583, 0.09030512720346451, -0.49690353870391846, -0.7407246828079224, 0.9519183039665222, 0.1924590915441513, -0.7204150557518005, 0.6226121187210083, -0.2332298755645752, 0.4577973783016205, 0.20243896543979645, 0.5090631246566772, 0.49269604682922363, 0.5714708566665649, 0.1806037276983261, -1.0257225036621094, -0.09001602232456207, -0.3229655921459198, -0.5972805023193359, 0.4533505439758301, -0.7830501794815063, 0.9741051197052002, -0.13350918889045715, 0.10468598455190659, 0.04443671554327011, 0.7100106477737427, 0.287001371383667, 0.3381904363632202, 0.21952477097511292, 0.7850664258003235, 0.629226803779602, -0.2164812833070755, 0.7104101181030273, -0.04410886764526367, 0.7209475636482239, 0.9971641302108765, 0.29682427644729614, 1.0322695970535278, 0.43383288383483887, -0.43219438195228577, 0.29736077785491943, 0.86311936378479, -0.41637787222862244, 0.3678000569343567, 0.5554662346839905, 0.18538883328437805, -0.25961682200431824, 0.524904191493988, -0.5267184972763062, 0.6813494563102722, 0.6052799224853516, -0.18573975563049316, 0.019576122984290123, 0.01864330656826496, -0.03105069510638714, -0.20190219581127167, -0.7488920092582703, 0.2607381343841553, 0.43839791417121887, -0.5626431703567505, 0.9338457584381104, 0.2715446352958679, 0.5865134596824646, -0.4007713794708252, -0.06469082832336426, -0.16258376836776733, 0.5874406695365906, -0.3143394887447357, -1.0236951112747192, 0.6606120467185974, -0.19204716384410858, -0.1016167551279068, 0.0870489627122879, 0.23969775438308716, -0.40436872839927673, -1.0350828170776367, 0.400622695684433, 0.37109431624412537, 0.39467719197273254, -0.17843878269195557, -0.5258364081382751, -0.40115484595298767, -0.05038151890039444, -0.44230175018310547, -0.2722480297088623, 0.6723353266716003, -0.0038117659278213978, 0.40716782212257385, 0.2743200957775116, -0.19155573844909668, 0.1445423811674118, -0.035398539155721664, 0.34155920147895813, -0.8704759478569031, -0.31721198558807373, -0.7905864119529724, 0.5419691205024719, 0.1057901605963707, -0.5423843860626221, 0.6034216284751892, 0.9753817319869995, 0.9622310996055603, -0.34197598695755005, 0.13627150654792786, -0.32657209038734436, 0.10748196393251419, -0.6071637868881226, 0.8334472179412842, -0.6150790452957153, -0.3560192584991455, -0.32402074337005615, -1.4455714225769043, -0.3006478548049927, 0.8783241510391235, 0.05000259354710579, 0.1544521301984787, 0.9659964442253113, 0.753091037273407, -0.46719375252723694, -0.034482359886169434, 0.5555118918418884, 0.5763489603996277, -0.15770721435546875, 0.7139211297035217, 0.6817329525947571, -0.7409942150115967, 0.5973674654960632, -0.40745222568511963, -0.3868435323238373, -0.28215378522872925, -0.6771188378334045, -0.8699004054069519, -0.43709978461265564, -0.21985195577144623, -0.597064733505249, -0.2045644223690033, 0.9462044835090637, 0.5726585388183594, -0.7941485047340393, -0.4019443988800049, 0.10877532511949539, 0.0031135259196162224, -0.34173476696014404, -0.2698338031768799, 0.3776387572288513, 0.1535041332244873, -0.5917997360229492, 0.2659193277359009, -0.19473548233509064, 0.018934054300189018, 0.2810439169406891, -0.1160224974155426, -0.3044620454311371, 0.03220362588763237, 0.6763699650764465, -0.08286486566066742, -0.24409852921962738, -0.3692520558834076, -0.2055695354938507, -0.2657291889190674, 0.492512583732605, 0.3799232244491577, -0.2886250615119934, -0.21293681859970093, 0.6319371461868286, -0.02636055275797844, 1.0347439050674438, 0.006763407029211521, 0.41911059617996216, -0.6361260414123535, 0.31057339906692505, 0.09593642503023148, 0.6315872073173523, 0.38721564412117004, -0.04494176059961319, 0.5634207129478455, 0.26264363527297974, -0.80280601978302, -0.40498191118240356, 0.08929497748613358, -1.575175404548645, -0.0962848961353302, 1.0766812562942505, 0.017861101776361465, -0.3915162980556488, 0.444479763507843, -0.6695128679275513, 0.5638785362243652, -0.30237942934036255, 0.21486513316631317, 0.4483606815338135, 0.15560150146484375, -0.4366097152233124, -0.7233270406723022, 0.20517981052398682, 0.10688288509845734, -0.324347585439682, -0.2143554836511612, 0.1848057508468628, 0.3715841770172119, -0.06373357027769089, 0.3812803626060486, -0.28332290053367615, 0.3894042372703552, 0.3519546687602997, 0.48905715346336365, 0.11943972110748291, -0.2695763409137726, -0.19860205054283142, -0.0885205864906311, 0.379936546087265, -0.536258339881897 ]
TheBloke/Llama-2-7B-GPTQ
TheBloke
"2023-09-27T12:44:46Z"
13,664
65
transformers
[ "transformers", "safetensors", "llama", "text-generation", "facebook", "meta", "pytorch", "llama-2", "en", "arxiv:2307.09288", "base_model:meta-llama/Llama-2-7b-hf", "license:llama2", "has_space", "text-generation-inference", "4-bit", "region:us" ]
text-generation
"2023-07-18T17:06:01Z"
--- language: - en license: llama2 tags: - facebook - meta - pytorch - llama - llama-2 model_name: Llama 2 7B base_model: meta-llama/Llama-2-7b-hf inference: false model_creator: Meta model_type: llama pipeline_tag: text-generation prompt_template: '{prompt} ' 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 7B - GPTQ - Model creator: [Meta](https://huggingface.co/meta-llama) - Original model: [Llama 2 7B](https://huggingface.co/meta-llama/Llama-2-7b-hf) <!-- description start --> ## Description This repo contains GPTQ model files for [Meta's Llama 2 7B](https://huggingface.co/meta-llama/Llama-2-7b-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-7B-AWQ) * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/Llama-2-7B-GPTQ) * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/Llama-2-7B-GGUF) * [Meta's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/meta-llama/Llama-2-7b-hf) <!-- repositories-available end --> <!-- prompt-template start --> ## Prompt template: None ``` {prompt} ``` <!-- 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-7B-GPTQ/tree/main) | 4 | 128 | No | 0.01 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 3.90 GB | Yes | 4-bit, without Act Order and group size 128g. | | [gptq-4bit-32g-actorder_True](https://huggingface.co/TheBloke/Llama-2-7B-GPTQ/tree/gptq-4bit-32g-actorder_True) | 4 | 32 | Yes | 0.01 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 4.28 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/Llama-2-7B-GPTQ/tree/gptq-4bit-64g-actorder_True) | 4 | 64 | Yes | 0.01 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 4.02 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/Llama-2-7B-GPTQ/tree/gptq-4bit-128g-actorder_True) | 4 | 128 | Yes | 0.01 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 3.90 GB | Yes | 4-bit, with Act Order and group size 128g. Uses even less VRAM than 64g, 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-7B-GPTQ:main` - With Git, you can clone a branch with: ``` git clone --single-branch --branch main https://huggingface.co/TheBloke/Llama-2-7B-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-7B-GPTQ`. - To download from a specific branch, enter for example `TheBloke/Llama-2-7B-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-7B-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-7B-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=True, revision="main") tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True) prompt = "Tell me about AI" prompt_template=f'''{prompt} ''' 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's Llama 2 7B # **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 7B pretrained model, 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. To get the expected features and performance for the chat versions, a specific formatting needs to be followed, including the `INST` and `<<SYS>>` tags, `BOS` and `EOS` tokens, and the whitespaces and breaklines in between (we recommend calling `strip()` on inputs to avoid double-spaces). See our reference code in github for details: [`chat_completion`](https://github.com/facebookresearch/llama/blob/main/llama/generation.py#L212). **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.48837804794311523, -0.7612762451171875, 0.19096460938453674, 0.23993940651416779, -0.37542924284935, -0.07809468358755112, 0.1493283361196518, -0.5449762940406799, 0.23864644765853882, 0.39697539806365967, -0.6590656042098999, -0.5258512496948242, -0.38412949442863464, 0.06389836966991425, -0.3811779320240021, 1.109331488609314, 0.053333304822444916, -0.3941139578819275, -0.0456816628575325, -0.15817832946777344, -0.2630879878997803, -0.3897916376590729, -0.6471346616744995, -0.2969118654727936, 0.3949901759624481, 0.147298663854599, 0.8060864210128784, 0.5501183271408081, 0.22545486688613892, 0.34650710225105286, -0.12098508328199387, -0.012303982861340046, -0.48036932945251465, -0.10096603631973267, 0.16137133538722992, -0.2685409188270569, -0.710931122303009, 0.11433357000350952, 0.36271801590919495, 0.12000875920057297, -0.4197211265563965, 0.2747737169265747, -0.021677875891327858, 0.6023064851760864, -0.4328151345252991, 0.16617053747177124, -0.4123201072216034, 0.03359617665410042, -0.10403485596179962, 0.1285036951303482, -0.03538939729332924, -0.47927212715148926, 0.11438438296318054, -0.9068313837051392, 0.15077939629554749, -0.07618924975395203, 1.209302544593811, 0.1834130883216858, -0.6667483448982239, 0.10563616454601288, -0.39595744013786316, 0.6534952521324158, -0.937452495098114, 0.23268990218639374, 0.5164259076118469, 0.20845836400985718, -0.23315544426441193, -0.9237089157104492, -0.6104674935340881, -0.09236086159944534, -0.13735689222812653, 0.2764776349067688, -0.48659148812294006, -0.000007084019671310671, 0.41069597005844116, 0.7002488970756531, -0.8143942356109619, -0.17382973432540894, -0.2911641299724579, -0.14043785631656647, 0.8554816246032715, 0.20236925780773163, 0.3693676292896271, -0.28548356890678406, -0.32922473549842834, -0.4109799563884735, -0.7259966135025024, 0.0513278990983963, 0.367623507976532, -0.0005823660758323967, -0.6541749238967896, 0.49412432312965393, -0.3662857115268707, 0.44425609707832336, 0.20929662883281708, -0.21829183399677277, 0.35563212633132935, -0.5089665055274963, -0.4240458011627197, -0.37998005747795105, 1.2263977527618408, 0.3915005326271057, -0.17003221809864044, 0.2962035834789276, -0.10398783534765244, -0.11315549910068512, 0.03551868721842766, -0.9888742566108704, -0.39732417464256287, 0.4304371178150177, -0.47636649012565613, -0.39145439863204956, -0.18384230136871338, -0.7246500849723816, -0.03845059871673584, -0.0598251149058342, 0.48324325680732727, -0.4416562020778656, -0.37308910489082336, 0.10610336810350418, -0.3219680190086365, 0.44883719086647034, 0.3457708954811096, -0.7368927001953125, 0.4028513431549072, 0.2657547891139984, 0.7009554505348206, 0.17354518175125122, -0.10678258538246155, -0.19590754806995392, 0.1372424066066742, -0.06614963710308075, 0.5162163376808167, -0.14875037968158722, -0.5310525894165039, -0.2785976827144623, 0.2598361074924469, 0.15267887711524963, -0.2773742973804474, 0.46545541286468506, -0.2926400601863861, 0.39432981610298157, -0.444877564907074, -0.42754027247428894, -0.4201236963272095, 0.152262881398201, -0.6835282444953918, 1.239086627960205, 0.48452842235565186, -0.8371550440788269, 0.14731565117835999, -0.5954015851020813, -0.21916694939136505, -0.014695259742438793, 0.056028157472610474, -0.638394832611084, -0.10621975362300873, 0.25248482823371887, 0.29419267177581787, -0.3749736249446869, 0.1284250020980835, -0.25797417759895325, -0.26339665055274963, 0.19213567674160004, -0.4489324688911438, 1.2125816345214844, 0.18252593278884888, -0.4461962580680847, -0.0935683473944664, -0.7704381346702576, 0.08262510597705841, 0.5367298722267151, -0.33132264018058777, 0.033944714814424515, -0.14026683568954468, 0.09300853312015533, 0.05905235558748245, 0.2838800549507141, -0.32244381308555603, 0.5291024446487427, -0.2247220277786255, 0.6918894052505493, 0.6408116817474365, 0.049620822072029114, 0.22021184861660004, -0.4698135554790497, 0.5002654790878296, 0.005080234259366989, 0.553594172000885, 0.08725298196077347, -0.727249264717102, -0.7486019730567932, -0.20444832742214203, 0.3842908442020416, 0.6004253625869751, -0.673003613948822, 0.4615749716758728, -0.1180901974439621, -0.7421635985374451, -0.2713121473789215, -0.06517167389392853, 0.2776038348674774, 0.32096436619758606, 0.41957220435142517, -0.44836607575416565, -0.4282996356487274, -0.8305783867835999, 0.1419607400894165, -0.47790005803108215, -0.07255420088768005, 0.377290815114975, 0.8079622983932495, -0.36531707644462585, 0.7723731994628906, -0.707686722278595, -0.09693867713212967, -0.06446188688278198, 0.13064655661582947, 0.3494940400123596, 0.5327073335647583, 0.7497504949569702, -0.7438234090805054, -0.4619065821170807, -0.0986170619726181, -0.6659647226333618, -0.11580730229616165, 0.05725967884063721, -0.3783089816570282, 0.12269680202007294, -0.06527853012084961, -1.0814660787582397, 0.6641920208930969, 0.557439923286438, -0.5274813771247864, 0.8029397130012512, -0.14942707121372223, 0.10837671160697937, -1.1025530099868774, 0.060628604143857956, 0.15050505101680756, -0.3186051547527313, -0.47893282771110535, 0.18300797045230865, -0.028516285121440887, 0.15327635407447815, -0.4025212228298187, 0.597590982913971, -0.4262651205062866, 0.04769207537174225, 0.013268710114061832, -0.045814044773578644, 0.3589438199996948, 0.5014404058456421, -0.21367664635181427, 0.8245671987533569, 0.34050875902175903, -0.4831283688545227, 0.5426316857337952, 0.49113449454307556, -0.08073113858699799, 0.2536817789077759, -0.8779603838920593, 0.20198816061019897, 0.17371253669261932, 0.46244361996650696, -0.9021284580230713, -0.3348318636417389, 0.548856794834137, -0.4829998314380646, 0.3607174754142761, -0.29203933477401733, -0.3711727559566498, -0.41661667823791504, -0.5506460666656494, 0.37937214970588684, 0.8078063726425171, -0.38664838671684265, 0.5087554454803467, 0.39885586500167847, 0.02509993128478527, -0.6043487787246704, -0.6901335120201111, -0.1224299892783165, -0.3295974135398865, -0.5524454712867737, 0.5181415677070618, -0.16039888560771942, -0.09884225577116013, -0.04683089256286621, 0.0924038290977478, -0.09728177636861801, 0.002645194996148348, 0.2921227514743805, 0.3305822014808655, -0.15435341000556946, -0.1532115340232849, 0.19677121937274933, 0.012691078707575798, -0.06191200017929077, -0.24593782424926758, 0.48504137992858887, -0.1834525316953659, -0.021643735468387604, -0.4660739004611969, 0.21278634667396545, 0.4295451045036316, -0.009506840258836746, 0.6870415210723877, 0.7710437178611755, -0.3468770682811737, 0.18126867711544037, -0.5315616726875305, -0.09791652858257294, -0.5042209029197693, 0.1412414014339447, -0.20492812991142273, -0.6447076797485352, 0.5128989219665527, 0.2998679578304291, 0.2253475785255432, 0.7649403810501099, 0.49658459424972534, -0.04885100945830345, 0.9403295516967773, 0.5469555258750916, -0.17181332409381866, 0.47774118185043335, -0.612058162689209, -0.2216072976589203, -0.849254846572876, -0.19963984191417694, -0.373451292514801, -0.2187284380197525, -0.7882063984870911, -0.43800416588783264, 0.35041555762290955, 0.2808462381362915, -0.7918000817298889, 0.6002428531646729, -0.6842011213302612, 0.1738782525062561, 0.5328521132469177, 0.2850390374660492, 0.3020036220550537, 0.10532534122467041, -0.08842257410287857, 0.10924600809812546, -0.4621742367744446, -0.363751620054245, 1.1033132076263428, 0.3390001952648163, 0.6196431517601013, 0.25082531571388245, 0.5522711277008057, 0.1384132355451584, 0.35901951789855957, -0.5186535120010376, 0.5435847640037537, 0.04794948548078537, -0.6287549734115601, -0.2909790277481079, -0.5568414926528931, -0.9259841442108154, 0.26750221848487854, -0.12369103729724884, -0.7645756006240845, 0.32461997866630554, 0.023303380236029625, -0.34873563051223755, 0.2352345585823059, -0.5942509174346924, 0.83416748046875, -0.13944433629512787, -0.3626183867454529, 0.015775976702570915, -0.616783857345581, 0.4178844690322876, 0.15334855020046234, 0.031830962747335434, -0.25672608613967896, -0.26039910316467285, 0.7509761452674866, -0.8610341548919678, 0.8418030738830566, -0.1833290159702301, -0.18975691497325897, 0.5641902685165405, -0.10433736443519592, 0.638011634349823, 0.151567280292511, -0.014015207067131996, 0.38417232036590576, 0.1938878446817398, -0.41379299759864807, -0.35879042744636536, 0.46637535095214844, -1.0234090089797974, -0.5893815159797668, -0.4303678274154663, -0.4191456437110901, 0.06749237328767776, 0.028670096769928932, 0.5119187831878662, 0.29655227065086365, -0.06149517744779587, -0.03641453757882118, 0.591178297996521, -0.38646143674850464, 0.4584880769252777, 0.2947668433189392, -0.3293260931968689, -0.6672213673591614, 0.7798834443092346, 0.025263765826821327, 0.1995549350976944, 0.25779280066490173, 0.19408798217773438, -0.44961047172546387, -0.42583605647087097, -0.7458979487419128, 0.3512560725212097, -0.5198112726211548, -0.47615498304367065, -0.5821617245674133, -0.32671424746513367, -0.3639008700847626, 0.23219342529773712, -0.3116207718849182, -0.6478228569030762, -0.5138009786605835, -0.04585123807191849, 0.9521428942680359, 0.6092731356620789, -0.09537824243307114, 0.43058153986930847, -0.796973466873169, 0.26432040333747864, 0.467461496591568, 0.11960071325302124, -0.017320644110441208, -0.7131723165512085, -0.03619055822491646, 0.22738958895206451, -0.7563965916633606, -0.9792250394821167, 0.6575198173522949, 0.19140863418579102, 0.33380284905433655, 0.35339248180389404, 0.06950641423463821, 0.8454530835151672, -0.24189727008342743, 1.0209689140319824, 0.27240461111068726, -0.9252256751060486, 0.5779892206192017, -0.5838353037834167, 0.21956349909305573, 0.3295186161994934, 0.5373566746711731, -0.303328275680542, -0.25167837738990784, -0.6814347505569458, -0.772572934627533, 0.40047040581703186, 0.4885725677013397, 0.07327567040920258, 0.16228191554546356, 0.5802165269851685, -0.001506906352005899, 0.20423682034015656, -1.025970458984375, -0.49633362889289856, -0.38481953740119934, -0.18687015771865845, 0.15923599898815155, -0.08339981734752655, -0.26650679111480713, -0.6107332110404968, 0.8864946365356445, -0.16442133486270905, 0.6374653577804565, 0.2585822641849518, 0.10475178807973862, -0.13842597603797913, 0.104176826775074, 0.3778812885284424, 0.5741127729415894, -0.13968855142593384, -0.29222410917282104, 0.2858792245388031, -0.7932235598564148, 0.25312647223472595, 0.30899232625961304, -0.25704726576805115, -0.1393553465604782, 0.14604473114013672, 0.7540841698646545, -0.0043764496222138405, -0.31688955426216125, 0.49198514223098755, -0.2851662039756775, -0.3499438464641571, -0.30644771456718445, 0.17689286172389984, 0.26151782274246216, 0.4145658016204834, 0.3630022704601288, -0.28676480054855347, 0.2776048183441162, -0.5293980240821838, 0.02536710537970066, 0.4546267092227936, -0.08931031823158264, -0.35437339544296265, 0.8271480798721313, 0.014575188048183918, 0.046318039298057556, 0.7297611236572266, -0.2837785482406616, -0.44675901532173157, 0.7959913611412048, 0.5198374390602112, 0.7335236668586731, -0.17830730974674225, 0.30966708064079285, 0.5555118918418884, 0.1570640206336975, -0.08422013372182846, 0.3912316858768463, -0.022166132926940918, -0.5211204290390015, -0.35012227296829224, -0.705598771572113, -0.29759493470191956, 0.30571800470352173, -0.655108630657196, 0.21523374319076538, -0.4130356013774872, -0.45321550965309143, -0.23875421285629272, 0.3244825005531311, -0.5518620014190674, 0.25479835271835327, 0.008477701805531979, 0.8679648041725159, -0.6707744002342224, 0.8061126470565796, 0.5025038123130798, -0.5188918709754944, -0.9241907000541687, -0.16173583269119263, 0.10724489390850067, -0.6900787353515625, 0.226515993475914, 0.054669249802827835, 0.27973005175590515, 0.0267743282020092, -0.7867563366889954, -0.9571565985679626, 1.5076414346694946, 0.35627782344818115, -0.6342020630836487, -0.13489580154418945, 0.0458943173289299, 0.3611955940723419, -0.09666913002729416, 0.678286075592041, 0.5428706407546997, 0.40019309520721436, 0.15989145636558533, -0.9180323481559753, 0.4724862575531006, -0.40136101841926575, 0.05828593298792839, 0.19384340941905975, -1.0584219694137573, 1.0282436609268188, -0.04697053134441376, -0.13931183516979218, 0.31547802686691284, 0.6200109720230103, 0.4888209402561188, 0.016225425526499748, 0.39916864037513733, 0.8280433416366577, 0.7459722757339478, -0.3434164226055145, 1.1111842393875122, -0.15120486915111542, 0.5961050987243652, 0.7017271518707275, -0.0070581515319645405, 0.7646188735961914, 0.2051209807395935, -0.7480422854423523, 0.7076972723007202, 0.9937673807144165, -0.14137445390224457, 0.3906291425228119, 0.11040528118610382, -0.3535217046737671, -0.08566614240407944, 0.09419889003038406, -0.7419751882553101, 0.1614382266998291, 0.3700823485851288, -0.22407303750514984, 0.08820393681526184, -0.22657173871994019, -0.006037083454430103, -0.6589353680610657, -0.14337998628616333, 0.5980249047279358, 0.2992922067642212, -0.21719814836978912, 0.8705313205718994, -0.07647553831338882, 0.6741673946380615, -0.5615359544754028, -0.20319099724292755, -0.40538159012794495, -0.15393543243408203, -0.31472861766815186, -0.6777480244636536, 0.10012330114841461, -0.07304758578538895, -0.08756277710199356, 0.05564774572849274, 0.7043238282203674, -0.12708747386932373, -0.4698120951652527, 0.29785627126693726, 0.4555192291736603, 0.29674628376960754, -0.07461187243461609, -1.0581351518630981, 0.24426326155662537, 0.02666737698018551, -0.7195202112197876, 0.4382278025150299, 0.35025647282600403, 0.1633465588092804, 0.7210876941680908, 0.6295872926712036, -0.1583923101425171, -0.0028420649468898773, -0.11203573644161224, 1.0074331760406494, -0.7977418899536133, -0.25337666273117065, -0.8224076628684998, 0.6746472120285034, -0.11624635756015778, -0.4149187207221985, 0.6476402878761292, 0.49130845069885254, 0.661401629447937, 0.04543129354715347, 0.6999960541725159, -0.3369846045970917, 0.12311754375696182, -0.36458855867385864, 0.7382975816726685, -0.7875415086746216, 0.14874696731567383, -0.38521048426628113, -0.7539739012718201, 0.00936204008758068, 0.7552182674407959, -0.012170504778623581, 0.2576703727245331, 0.36754167079925537, 0.8035691380500793, 0.03366099298000336, 0.16318076848983765, 0.1273745447397232, 0.3782646059989929, 0.16804014146327972, 0.8254671096801758, 0.8176159262657166, -0.9967915415763855, 0.5832662582397461, -0.4058111011981964, -0.1878315657377243, -0.06618096679449081, -0.8597217798233032, -0.7311721444129944, -0.4229307472705841, -0.5579932928085327, -0.5465625524520874, -0.06625736504793167, 0.8348069787025452, 0.7826566696166992, -0.5888519287109375, -0.34500840306282043, -0.1143760234117508, 0.050503138452768326, -0.1667536199092865, -0.2791815400123596, 0.2896760106086731, 0.3207162618637085, -0.7343297600746155, 0.18714261054992676, 0.021445976570248604, 0.5056819915771484, -0.1752787083387375, -0.23621395230293274, -0.2464950978755951, -0.014757297933101654, 0.6162245869636536, 0.43764591217041016, -0.5929576754570007, -0.1063385158777237, -0.19592459499835968, -0.07170002162456512, 0.260996013879776, 0.27161240577697754, -0.7779577374458313, -0.12348558008670807, 0.4106409549713135, 0.1327974647283554, 0.8179229497909546, -0.00378385279327631, 0.4160342812538147, -0.45391908288002014, 0.12032922357320786, 0.009151269681751728, 0.39057713747024536, 0.12225797027349472, -0.530246376991272, 0.7202884554862976, 0.38326701521873474, -0.6663472056388855, -0.7226977944374084, -0.08716166764497757, -1.081837773323059, -0.21393150091171265, 1.0516449213027954, -0.12736499309539795, -0.37028560042381287, 0.025274235755205154, -0.2890217900276184, 0.41288164258003235, -0.5043312907218933, 0.4220883548259735, 0.4102233052253723, -0.2039615958929062, -0.27459806203842163, -0.7204613089561462, 0.5211616158485413, 0.1683613657951355, -0.9161191582679749, -0.0823453962802887, 0.4413638412952423, 0.5169750452041626, 0.05888587236404419, 0.7971256375312805, -0.15109212696552277, 0.3181784451007843, 0.11109039932489395, 0.07368741929531097, 0.06875160336494446, 0.1268836259841919, -0.27786001563072205, -0.04483044147491455, -0.2491859346628189, 0.031873222440481186 ]
TheBloke/Llama-2-70B-GPTQ
TheBloke
"2023-09-27T12:44:50Z"
13,639
78
transformers
[ "transformers", "safetensors", "llama", "text-generation", "facebook", "meta", "pytorch", "llama-2", "en", "arxiv:2307.09288", "base_model:meta-llama/Llama-2-70b-hf", "license:llama2", "text-generation-inference", "4-bit", "region:us" ]
text-generation
"2023-07-18T23:45:06Z"
--- language: - en license: llama2 tags: - facebook - meta - pytorch - llama - llama-2 model_name: Llama 2 70B base_model: meta-llama/Llama-2-70b-hf inference: false model_creator: Meta Llama 2 model_type: llama pipeline_tag: text-generation prompt_template: '{prompt} ' 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 - GPTQ - Model creator: [Meta Llama 2](https://huggingface.co/meta-llama) - Original model: [Llama 2 70B](https://huggingface.co/meta-llama/Llama-2-70b-hf) <!-- description start --> ## Description This repo contains GPTQ model files for [Meta Llama 2's Llama 2 70B](https://huggingface.co/meta-llama/Llama-2-70b-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-AWQ) * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/Llama-2-70B-GPTQ) * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/Llama-2-70B-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-hf) <!-- repositories-available end --> <!-- prompt-template start --> ## Prompt template: None ``` {prompt} ``` <!-- 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 | | ------ | ---- | -- | --------- | ------ | ------------ | ------- | ---- | ------- | ---- | | [gptq-4bit-32g-actorder_True](https://huggingface.co/TheBloke/Llama-2-70B-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-64g-actorder_True](https://huggingface.co/TheBloke/Llama-2-70B-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. | | [gptq-4bit-128g-actorder_True](https://huggingface.co/TheBloke/Llama-2-70B-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-128g-actorder_True](https://huggingface.co/TheBloke/Llama-2-70B-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-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-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-3bit-64g-actorder_True](https://huggingface.co/TheBloke/Llama-2-70B-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. | | [main](https://huggingface.co/TheBloke/Llama-2-70B-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. | <!-- 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-GPTQ:gptq-4bit-32g-actorder_True` - With Git, you can clone a branch with: ``` git clone --single-branch --branch gptq-4bit-32g-actorder_True https://huggingface.co/TheBloke/Llama-2-70B-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-GPTQ`. - To download from a specific branch, enter for example `TheBloke/Llama-2-70B-GPTQ:gptq-4bit-32g-actorder_True` - see Provided Files above for the list of branches for each option. 3. Click **Download**. 4. The model will start downloading. Once it's finished it will say "Done". 5. In the top left, click the refresh icon next to **Model**. 6. In the **Model** dropdown, choose the model you just downloaded: `Llama-2-70B-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-GPTQ" # To use a different branch, change revision # For example: revision="gptq-4bit-32g-actorder_True" model = AutoModelForCausalLM.from_pretrained(model_name_or_path, device_map="auto", trust_remote_code=False, revision="main") tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True) prompt = "Tell me about AI" prompt_template=f'''{prompt} ''' 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 # **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 pretrained model, 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. To get the expected features and performance for the chat versions, a specific formatting needs to be followed, including the `INST` and `<<SYS>>` tags, `BOS` and `EOS` tokens, and the whitespaces and breaklines in between (we recommend calling `strip()` on inputs to avoid double-spaces). See our reference code in github for details: [`chat_completion`](https://github.com/facebookresearch/llama/blob/main/llama/generation.py#L212). **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.5432590842247009, -0.6750140190124512, 0.10151214152574539, 0.26001742482185364, -0.35226181149482727, -0.07471711188554764, 0.08102456480264664, -0.6253748536109924, 0.35467329621315, 0.3094731271266937, -0.6684255003929138, -0.48375019431114197, -0.380998432636261, -0.004281411878764629, -0.3544171154499054, 1.1045490503311157, -0.003136998973786831, -0.39665892720222473, -0.07784236967563629, -0.32681509852409363, -0.24644839763641357, -0.42505180835723877, -0.6220152378082275, -0.18182501196861267, 0.4327465295791626, 0.2232820838689804, 0.7932366728782654, 0.5822616219520569, 0.2584938108921051, 0.30796465277671814, -0.12902632355690002, -0.014514615759253502, -0.5226365923881531, -0.1464306116104126, 0.22222739458084106, -0.25984111428260803, -0.6729341745376587, 0.10213746130466461, 0.38770630955696106, 0.20984672009944916, -0.34419766068458557, 0.3383175730705261, -0.0033107481431216, 0.6626262068748474, -0.40534108877182007, 0.12642183899879456, -0.4005919098854065, 0.0552266426384449, -0.1611904799938202, 0.16300612688064575, -0.03440498933196068, -0.4511585831642151, 0.07510583102703094, -0.8582344055175781, 0.1696542352437973, 0.022141199558973312, 1.1854480504989624, 0.12192757427692413, -0.6086092591285706, 0.1425766795873642, -0.30425962805747986, 0.6191892623901367, -0.9171724319458008, 0.2889506220817566, 0.6087637543678284, 0.12382446229457855, -0.27022242546081543, -0.8089680671691895, -0.6502835154533386, 0.009953268803656101, -0.16966404020786285, 0.2608107924461365, -0.4219542145729065, -0.03583599254488945, 0.45122048258781433, 0.7508147358894348, -0.8519937992095947, -0.11497460305690765, -0.2548826038837433, -0.20118939876556396, 0.9361923336982727, 0.1583162546157837, 0.30606573820114136, -0.2840971052646637, -0.3328588306903839, -0.46988773345947266, -0.6406269669532776, 0.12862206995487213, 0.3849852383136749, -0.07363327592611313, -0.716832160949707, 0.5369229912757874, -0.40267783403396606, 0.4123269319534302, 0.20896372199058533, -0.23969748616218567, 0.47697579860687256, -0.5936681628227234, -0.35916975140571594, -0.339856892824173, 1.1427786350250244, 0.5201099514961243, -0.1923508495092392, 0.2917785346508026, -0.025747204199433327, -0.11646392941474915, -0.10250024497509003, -1.0189982652664185, -0.446185827255249, 0.41162440180778503, -0.5450308322906494, -0.3240705728530884, -0.04232682287693024, -0.8005916476249695, -0.0720052570104599, -0.04346206784248352, 0.4066202640533447, -0.48832008242607117, -0.4631701111793518, 0.1039593294262886, -0.3629864752292633, 0.5394254326820374, 0.3282950222492218, -0.6506825685501099, 0.4634215235710144, 0.3384411931037903, 0.7252321839332581, 0.05805039405822754, -0.11610741913318634, -0.1327294558286667, 0.1090979054570198, -0.10599975287914276, 0.4748538136482239, -0.13475602865219116, -0.47075122594833374, -0.3890329599380493, 0.313383013010025, 0.13709597289562225, -0.2510344088077545, 0.4998118579387665, -0.2242392599582672, 0.33614563941955566, -0.49701911211013794, -0.4602218568325043, -0.41223806142807007, 0.15290887653827667, -0.7170746922492981, 1.3325436115264893, 0.5044568777084351, -0.8520727753639221, 0.24552768468856812, -0.4827253520488739, -0.19490651786327362, -0.1112733855843544, 0.010703547857701778, -0.6095178127288818, -0.13462400436401367, 0.22261324524879456, 0.2972610890865326, -0.4047289490699768, 0.10121209174394608, -0.295427143573761, -0.2705990672111511, 0.18122492730617523, -0.5255812406539917, 1.202610969543457, 0.1077551543712616, -0.4719436466693878, -0.14974074065685272, -0.7469011545181274, 0.1081157699227333, 0.5573099851608276, -0.26498034596443176, -0.0319862924516201, -0.13003279268741608, 0.06472780555486679, 0.15736716985702515, 0.29395791888237, -0.3812415599822998, 0.5377627611160278, -0.17708444595336914, 0.5420239567756653, 0.6783063411712646, 0.03260359168052673, 0.16353054344654083, -0.4914908707141876, 0.4468255341053009, 0.06392061710357666, 0.6011674404144287, 0.06301159411668777, -0.7703092694282532, -0.7254910469055176, -0.26037168502807617, 0.31874510645866394, 0.5965377688407898, -0.5752353072166443, 0.5251481533050537, -0.20331543684005737, -0.7659796476364136, -0.2788287103176117, -0.0065139769576489925, 0.29000696539878845, 0.29471179842948914, 0.4221944510936737, -0.4733106195926666, -0.41090041399002075, -0.9045647978782654, 0.19506984949111938, -0.5088001489639282, -0.027216695249080658, 0.5093525052070618, 0.7998957633972168, -0.31869053840637207, 0.775299608707428, -0.6670163869857788, -0.05407478287816048, 0.04192677512764931, 0.08575938642024994, 0.40938863158226013, 0.5516703128814697, 0.799140989780426, -0.7927151918411255, -0.5277820825576782, -0.0320441797375679, -0.6160725355148315, -0.09382346272468567, -0.0054106684401631355, -0.36727699637413025, 0.23118340969085693, -0.11386647075414658, -1.093849778175354, 0.702900767326355, 0.5766833424568176, -0.6010666489601135, 0.781039834022522, -0.14005637168884277, 0.17570427060127258, -1.0646177530288696, 0.0611128993332386, 0.05308796837925911, -0.2695898115634918, -0.4241068661212921, -0.02256237342953682, -0.04569169506430626, 0.29160797595977783, -0.36092516779899597, 0.6056357622146606, -0.491176962852478, -0.0697290226817131, 0.12786142528057098, -0.08009825646877289, 0.3143812417984009, 0.5550605654716492, -0.21399186551570892, 0.8218765258789062, 0.4103143811225891, -0.3562881350517273, 0.5429280400276184, 0.47648507356643677, -0.05513981729745865, 0.32650327682495117, -0.7953716516494751, 0.16624684631824493, 0.16918782889842987, 0.4851917028427124, -0.9565451741218567, -0.31069979071617126, 0.4939899742603302, -0.5436496138572693, 0.408915638923645, -0.2690916955471039, -0.4445435702800751, -0.4553564488887787, -0.7223714590072632, 0.436092346906662, 0.7367599010467529, -0.42353278398513794, 0.38290536403656006, 0.3621212840080261, 0.034327615052461624, -0.6588068604469299, -0.6846062541007996, -0.156449556350708, -0.27138155698776245, -0.5856955051422119, 0.4828880727291107, -0.17055368423461914, -0.039027877151966095, 0.07551433891057968, -0.0968899056315422, -0.02660869061946869, -0.06862781941890717, 0.3775421977043152, 0.32532429695129395, -0.1652623564004898, -0.2253318428993225, 0.15727806091308594, 0.04992047697305679, -0.01326966192573309, -0.24304033815860748, 0.4558268189430237, -0.2258211225271225, -0.1031116396188736, -0.3902089595794678, 0.2635824978351593, 0.501804769039154, 0.09872926026582718, 0.7230340838432312, 0.7926515936851501, -0.3028905987739563, 0.22474552690982819, -0.536666214466095, -0.05157078057527542, -0.4833711087703705, 0.1520569771528244, -0.21329990029335022, -0.7169126868247986, 0.5978955030441284, 0.3530324697494507, 0.2123059630393982, 0.8178340792655945, 0.43067166209220886, -0.09834399074316025, 0.9568164944648743, 0.35721391439437866, -0.2317638248205185, 0.4659675657749176, -0.6582785844802856, -0.2199242115020752, -0.8485934734344482, -0.2923739552497864, -0.3319219946861267, -0.3302992880344391, -0.8620256185531616, -0.5615702271461487, 0.28659501671791077, 0.31797727942466736, -0.7433202266693115, 0.6144636869430542, -0.6593024730682373, 0.16876032948493958, 0.5415165424346924, 0.2571180760860443, 0.1468060314655304, 0.08590640127658844, -0.14500796794891357, 0.10698078572750092, -0.43867576122283936, -0.2457951009273529, 1.1414198875427246, 0.3538556396961212, 0.6187376976013184, 0.2610819339752197, 0.44809526205062866, 0.17362552881240845, 0.28468066453933716, -0.4719330668449402, 0.5922742486000061, 0.056115612387657166, -0.6688474416732788, -0.2572522759437561, -0.5128354430198669, -0.9207963347434998, 0.24592745304107666, -0.11159614473581314, -0.8327571749687195, 0.375806987285614, -0.02960357815027237, -0.15371280908584595, 0.309277206659317, -0.653450071811676, 0.8763134479522705, -0.1902851164340973, -0.3847387135028839, -0.0600150004029274, -0.7732917070388794, 0.36336806416511536, 0.11170697212219238, -0.034246139228343964, -0.28408947587013245, -0.27514830231666565, 0.8687387108802795, -0.8819550275802612, 0.74629807472229, -0.25475406646728516, -0.08334116637706757, 0.5501049757003784, -0.13311375677585602, 0.643256664276123, 0.11791467666625977, -0.03453386574983597, 0.4768020212650299, 0.3127957284450531, -0.4861880838871002, -0.3348020613193512, 0.5253405570983887, -1.009357213973999, -0.5288320779800415, -0.4786794185638428, -0.44566604495048523, 0.008878285996615887, 0.006095405668020248, 0.4568710923194885, 0.3155636787414551, 0.021218525245785713, 0.11697128415107727, 0.6281307339668274, -0.3665466010570526, 0.42066502571105957, 0.3014049232006073, -0.2309229075908661, -0.6447792053222656, 0.8201351165771484, 0.03732607886195183, 0.23327170312404633, 0.22487391531467438, 0.12922319769859314, -0.4552609920501709, -0.44382113218307495, -0.6743515729904175, 0.40636274218559265, -0.5093616843223572, -0.5304691791534424, -0.5816113352775574, -0.33067548274993896, -0.33031538128852844, 0.181794211268425, -0.31583815813064575, -0.7373791933059692, -0.4489361345767975, -0.13044078648090363, 1.0449076890945435, 0.4768666923046112, -0.21950817108154297, 0.3360525369644165, -0.7290068864822388, 0.2871294319629669, 0.31395694613456726, 0.2342303842306137, -0.05411738157272339, -0.6742377877235413, -0.020630469545722008, 0.1978447139263153, -0.634207546710968, -0.989876925945282, 0.570075511932373, 0.2335769236087799, 0.4231473207473755, 0.4465155303478241, 0.06713847815990448, 0.8865330815315247, -0.1956619918346405, 1.1133114099502563, 0.2894197106361389, -0.8714492321014404, 0.5553948283195496, -0.4669921100139618, 0.12566865980625153, 0.45622003078460693, 0.5252890586853027, -0.31377652287483215, -0.2863188087940216, -0.7316986918449402, -0.8911432027816772, 0.46181660890579224, 0.3971538245677948, 0.05244028568267822, 0.1403343379497528, 0.5654461979866028, 0.0723448321223259, 0.1460026353597641, -0.8876379132270813, -0.6542765498161316, -0.393235981464386, -0.18129999935626984, 0.1460900604724884, -0.15754348039627075, -0.20884409546852112, -0.7138143181800842, 0.8500925898551941, -0.1847834438085556, 0.6863452196121216, 0.2797088921070099, 0.13244760036468506, -0.05740835517644882, -0.013423694297671318, 0.43357691168785095, 0.48657000064849854, -0.21870535612106323, -0.2401803433895111, 0.2953415811061859, -0.9076717495918274, 0.2501049041748047, 0.28710901737213135, -0.13298264145851135, -0.1575309783220291, 0.22277729213237762, 0.7539987564086914, -0.009258231148123741, -0.3604069948196411, 0.5824279189109802, -0.31378450989723206, -0.3570578098297119, -0.28315356373786926, 0.15341752767562866, 0.19533103704452515, 0.3735787272453308, 0.3674127161502838, -0.2734176218509674, 0.25411584973335266, -0.48122116923332214, 0.17815952003002167, 0.5244469046592712, -0.055158425122499466, -0.41028955578804016, 0.7466017007827759, -0.081418976187706, 0.15343987941741943, 0.6734615564346313, -0.2574063539505005, -0.4222795367240906, 0.8283085227012634, 0.49859824776649475, 0.6803861260414124, -0.15986035764217377, 0.21004386246204376, 0.5668110251426697, 0.1786452978849411, -0.0426090732216835, 0.41664132475852966, -0.15072229504585266, -0.5421441793441772, -0.29366838932037354, -0.6665816903114319, -0.2789667844772339, 0.2890302538871765, -0.7642333507537842, 0.1582144945859909, -0.35777416825294495, -0.3905424475669861, -0.23032645881175995, 0.42888736724853516, -0.5727480053901672, 0.208280548453331, -0.004196597263216972, 1.0323269367218018, -0.7581653594970703, 0.8489752411842346, 0.4805017411708832, -0.3988327085971832, -0.9625259041786194, -0.15816646814346313, 0.14646975696086884, -0.6512840390205383, 0.2218095362186432, 0.06540171802043915, 0.30863136053085327, -0.08410477638244629, -0.6967249512672424, -0.9771696329116821, 1.569328784942627, 0.3067488968372345, -0.5856524705886841, -0.016627052798867226, 0.028404181823134422, 0.3252817988395691, -0.043977975845336914, 0.6775279641151428, 0.6024636030197144, 0.4505336582660675, 0.21519282460212708, -0.9114575386047363, 0.43271368741989136, -0.490038126707077, 0.0014807006809860468, 0.20498605072498322, -1.0433940887451172, 0.9397416710853577, -0.015200277790427208, -0.10314235091209412, 0.1917414665222168, 0.6565402150154114, 0.4891747236251831, 0.08290865272283554, 0.4505782425403595, 0.8575839996337891, 0.7492690682411194, -0.34132134914398193, 1.1679054498672485, -0.11505025625228882, 0.5503796339035034, 0.6726223826408386, 0.030679360032081604, 0.7466541528701782, 0.32920536398887634, -0.7235679030418396, 0.6184060573577881, 1.032971978187561, -0.09260040521621704, 0.42464351654052734, 0.01721375063061714, -0.3215751051902771, 0.020825911313295364, 0.1333250254392624, -0.7587648630142212, 0.10078149288892746, 0.392808735370636, -0.16462711989879608, 0.1183488517999649, -0.19595247507095337, 0.1045980155467987, -0.7001788020133972, -0.14157038927078247, 0.5735092759132385, 0.2160036712884903, -0.1954393982887268, 0.8212018609046936, -0.13297824561595917, 0.7241541147232056, -0.5149778723716736, -0.15156464278697968, -0.4465792179107666, -0.1388140618801117, -0.3586878776550293, -0.8392030596733093, 0.20424394309520721, -0.07873174548149109, -0.12132087349891663, 0.018965037539601326, 0.6411780714988708, -0.10112554579973221, -0.473391592502594, 0.3843946158885956, 0.34298965334892273, 0.3620762526988983, 0.03152909129858017, -1.0569751262664795, 0.3020511269569397, 0.049340423196554184, -0.8106222152709961, 0.44845321774482727, 0.3599899709224701, 0.07929790019989014, 0.684807538986206, 0.6499300003051758, -0.08297663182020187, 0.044691283255815506, -0.2054855227470398, 1.0393059253692627, -0.7916385531425476, -0.22078484296798706, -0.7446514368057251, 0.6095178723335266, -0.2063322812318802, -0.4206300973892212, 0.7089829444885254, 0.6217217445373535, 0.72788006067276, 0.1778014749288559, 0.6222088932991028, -0.4550415277481079, 0.17138461768627167, -0.31860730051994324, 0.6056368947029114, -0.7739174962043762, 0.067829929292202, -0.3649308383464813, -0.7190853953361511, -0.03547189384698868, 0.7531128525733948, -0.03838878124952316, 0.23087462782859802, 0.37406212091445923, 0.8571897745132446, 0.028685083612799644, 0.16300170123577118, 0.11324210464954376, 0.36775168776512146, 0.1947534829378128, 0.8341124653816223, 0.7492254376411438, -0.9645739793777466, 0.5219826698303223, -0.4281821548938751, -0.2184126079082489, -0.1367127150297165, -0.8290002346038818, -0.6766989231109619, -0.5157541632652283, -0.5944019556045532, -0.5514847040176392, -0.1364644318819046, 0.8580248951911926, 0.8130335211753845, -0.6565394997596741, -0.2711193263530731, -0.039061855524778366, 0.05307155102491379, -0.2763833701610565, -0.2951614260673523, 0.38781771063804626, 0.44911691546440125, -0.5895105600357056, 0.14008428156375885, 0.061919644474983215, 0.3801134526729584, -0.10684332251548767, -0.3882804811000824, -0.17954255640506744, 0.03871352970600128, 0.6579590439796448, 0.45980343222618103, -0.5940803289413452, -0.18329693377017975, -0.16282948851585388, -0.085431769490242, 0.28485479950904846, 0.22386018931865692, -0.6875824928283691, -0.11667710542678833, 0.4767296612262726, 0.17951269447803497, 0.9281112551689148, 0.09498625993728638, 0.18715575337409973, -0.4743877947330475, 0.14938178658485413, 0.002039833925664425, 0.3463441729545593, 0.06109584495425224, -0.5631104111671448, 0.708614706993103, 0.42544466257095337, -0.5934353470802307, -0.792340874671936, -0.14831185340881348, -1.2710365056991577, -0.17955316603183746, 1.1229069232940674, -0.14393150806427002, -0.37176811695098877, 0.041939668357372284, -0.27482306957244873, 0.3227655589580536, -0.45888271927833557, 0.30139076709747314, 0.46405553817749023, -0.30787795782089233, -0.3437421917915344, -0.7770949006080627, 0.4762323498725891, 0.17174555361270905, -0.8964316844940186, -0.0434766560792923, 0.4766387641429901, 0.5146588683128357, 0.0736616998910904, 0.8240944743156433, -0.25351694226264954, 0.3161082863807678, 0.14128266274929047, 0.028102653101086617, 0.009027148596942425, 0.1284634917974472, -0.31007644534111023, -0.06795787066221237, -0.22875948250293732, -0.04853079468011856 ]
UBC-NLP/MARBERT
UBC-NLP
"2022-08-16T21:47:42Z"
13,624
16
transformers
[ "transformers", "pytorch", "tf", "jax", "bert", "fill-mask", "Arabic BERT", "MSA", "Twitter", "Masked Langauge Model", "ar", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
fill-mask
"2022-03-02T23:29:05Z"
--- language: - ar tags: - Arabic BERT - MSA - Twitter - Masked Langauge Model widget: - text: "اللغة العربية هي لغة [MASK]." --- <img src="https://raw.githubusercontent.com/UBC-NLP/marbert/main/ARBERT_MARBERT.jpg" alt="drawing" width="200" height="200" align="right"/> **MARBERT** is one of three models described in our **ACL 2021 paper** **["ARBERT & MARBERT: Deep Bidirectional Transformers for Arabic"](https://aclanthology.org/2021.acl-long.551.pdf)**. MARBERT is a large-scale pre-trained masked language model focused on both Dialectal Arabic (DA) and MSA. Arabic has multiple varieties. To train MARBERT, we randomly sample 1B Arabic tweets from a large in-house dataset of about 6B tweets. We only include tweets with at least 3 Arabic words, based on character string matching, regardless whether the tweet has non-Arabic string or not. That is, we do not remove non-Arabic so long as the tweet meets the 3 Arabic word criterion. The dataset makes up **128GB of text** (**15.6B tokens**). We use the same network architecture as ARBERT (BERT-base), but without the next sentence prediction (NSP) objective since tweets are short. See our [repo](https://github.com/UBC-NLP/LMBERT) for modifying BERT code to remove NSP. For more information about MARBERT, please visit our own GitHub [repo](https://github.com/UBC-NLP/marbert). # BibTex If you use our models (ARBERT, MARBERT, or MARBERTv2) for your scientific publication, or if you find the resources in this repository useful, please cite our paper as follows (to be updated): ```bibtex @inproceedings{abdul-mageed-etal-2021-arbert, title = "{ARBERT} {\&} {MARBERT}: Deep Bidirectional Transformers for {A}rabic", author = "Abdul-Mageed, Muhammad and Elmadany, AbdelRahim and Nagoudi, El Moatez Billah", booktitle = "Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)", month = aug, year = "2021", address = "Online", publisher = "Association for Computational Linguistics", url = "https://aclanthology.org/2021.acl-long.551", doi = "10.18653/v1/2021.acl-long.551", pages = "7088--7105", abstract = "Pre-trained language models (LMs) are currently integral to many natural language processing systems. Although multilingual LMs were also introduced to serve many languages, these have limitations such as being costly at inference time and the size and diversity of non-English data involved in their pre-training. We remedy these issues for a collection of diverse Arabic varieties by introducing two powerful deep bidirectional transformer-based models, ARBERT and MARBERT. To evaluate our models, we also introduce ARLUE, a new benchmark for multi-dialectal Arabic language understanding evaluation. ARLUE is built using 42 datasets targeting six different task clusters, allowing us to offer a series of standardized experiments under rich conditions. When fine-tuned on ARLUE, our models collectively achieve new state-of-the-art results across the majority of tasks (37 out of 48 classification tasks, on the 42 datasets). Our best model acquires the highest ARLUE score (77.40) across all six task clusters, outperforming all other models including XLM-R Large ( 3.4x larger size). Our models are publicly available at https://github.com/UBC-NLP/marbert and ARLUE will be released through the same repository.", } ``` ## Acknowledgments We gratefully acknowledge support from the Natural Sciences and Engineering Research Council of Canada, the Social Sciences and Humanities Research Council of Canada, Canadian Foundation for Innovation, [ComputeCanada](www.computecanada.ca) and [UBC ARC-Sockeye](https://doi.org/10.14288/SOCKEYE). We also thank the [Google TensorFlow Research Cloud (TFRC)](https://www.tensorflow.org/tfrc) program for providing us with free TPU access.
[ -0.5426735281944275, -0.4540005326271057, 0.3348614275455475, 0.3045833110809326, -0.16553530097007751, 0.022958479821681976, -0.36481738090515137, -0.42872726917266846, -0.012536825612187386, 0.5652014017105103, -0.4403733015060425, -0.8564772009849548, -0.870063066482544, 0.06330444663763046, -0.4443108141422272, 1.081079363822937, -0.2067849338054657, -0.17660990357398987, 0.19742503762245178, -0.4552401304244995, 0.036643654108047485, -0.41764333844184875, -0.5789458155632019, -0.21653474867343903, 0.6379977464675903, 0.40829548239707947, 0.951038658618927, 0.3354141116142273, 0.382917195558548, 0.22517646849155426, -0.005547774955630302, 0.30318692326545715, -0.06514162570238113, 0.16633948683738708, 0.18053089082241058, -0.0474751777946949, -0.4251898527145386, 0.09883665293455124, 0.6251055598258972, 0.7989511489868164, -0.18852698802947998, 0.23224422335624695, 0.045614052563905716, 0.9353214502334595, -0.5880686640739441, 0.1816653311252594, -0.46365952491760254, -0.13240516185760498, 0.04143065959215164, 0.33102697134017944, -0.4387374818325043, -0.2290779948234558, 0.13177411258220673, 0.03676680102944374, 0.18175214529037476, 0.13503588736057281, 1.0351184606552124, 0.19753548502922058, -0.6473127603530884, -0.07325432449579239, -0.6441318392753601, 0.6920375823974609, -0.9148914217948914, 0.867556095123291, 0.3209035098552704, 0.22825315594673157, -0.02525293454527855, -0.739326536655426, -0.6461221575737, -0.4258818030357361, -0.23351004719734192, 0.058224309235811234, -0.47457829117774963, 0.03846284747123718, 0.06955085694789886, 0.07822385430335999, -0.6916534304618835, 0.038147129118442535, -0.35738712549209595, 0.054437994956970215, 0.6727510094642639, -0.1919708400964737, 0.13962878286838531, -0.0033214660361409187, -0.2429981231689453, -0.2532583475112915, -0.6739383935928345, 0.23897016048431396, 0.3703739643096924, 0.3870629370212555, -0.4915313422679901, 0.3931219279766083, -0.038822390139102936, 0.46878907084465027, -0.13296152651309967, 0.2287144958972931, 0.4302600622177124, -0.18939471244812012, -0.2656526565551758, -0.06696376204490662, 1.1930938959121704, 0.11059071868658066, 0.12148407846689224, -0.25929898023605347, -0.11429595202207565, -0.4871169924736023, 0.15852253139019012, -1.0376594066619873, -0.5270404815673828, 0.349029541015625, -0.43153661489486694, -0.09877300262451172, -0.02505592256784439, -0.5332987308502197, -0.2833854854106903, -0.12579776346683502, 0.2557471692562103, -0.5106282234191895, -0.20481236279010773, 0.05066743120551109, 0.4632624387741089, 0.1966174989938736, 0.1568707823753357, -0.90873783826828, 0.0005742631619796157, 0.3346486985683441, 0.7142910361289978, -0.11770148575305939, -0.48214030265808105, -0.3027432858943939, -0.18718352913856506, -0.18546253442764282, 0.5589525103569031, -0.436497300863266, -0.20757131278514862, 0.15841063857078552, -0.00963603239506483, -0.18645481765270233, -0.3172663450241089, 0.9434004426002502, -0.7595688104629517, 0.1405923217535019, -0.03620249032974243, -0.04057011008262634, -0.5612218976020813, -0.011380880139768124, -0.6104400157928467, 0.9648157358169556, 0.005466063041239977, -0.6907417178153992, 0.1496104598045349, -0.7828190922737122, -0.5120300054550171, -0.3138554096221924, -0.02580990642309189, -0.7323004007339478, -0.04525533318519592, 0.6103747487068176, 0.5436676740646362, -0.3601902723312378, 0.5082573294639587, -0.11118791997432709, -0.10106422007083893, 0.24408777058124542, -0.7462915182113647, 0.873360276222229, 0.23935027420520782, -0.45096710324287415, 0.10900938510894775, -0.6775262355804443, -0.1308196634054184, 0.08870311081409454, -0.23230595886707306, 0.08831527084112167, -0.029608746990561485, 0.2012757807970047, 0.3832383453845978, 0.09333603084087372, -0.3637343645095825, 0.18404974043369293, -0.4504943788051605, 0.2710619568824768, 0.5614650845527649, -0.2579655945301056, 0.493268758058548, -0.16283538937568665, 0.4692287743091583, 0.261805921792984, 0.07641321420669556, -0.16834014654159546, -0.3661098778247833, -1.1707683801651, -0.4001924693584442, 0.4019964635372162, 0.3222634494304657, -0.5388321280479431, 0.3877038359642029, -0.32947173714637756, -0.6063820719718933, -0.8015211224555969, 0.0676659643650055, 0.3344544768333435, 0.3342628479003906, 0.7656159996986389, -0.18089933693408966, -0.5492315292358398, -1.2221266031265259, -0.2531827390193939, -0.18817590177059174, 0.12275468558073044, 0.4232550859451294, 0.43906742334365845, -0.46663644909858704, 0.8297874927520752, -0.27250295877456665, -0.04245908558368683, -0.26907506585121155, 0.4697301685810089, 0.5105104446411133, 0.4729251563549042, 0.5207595229148865, -0.75279301404953, -0.6863356232643127, -0.159139022231102, -0.4959118664264679, -0.2583746910095215, -0.06953293085098267, -0.11461137235164642, 0.5059933066368103, 0.35948824882507324, -0.6872422099113464, 0.26717227697372437, 0.8169686198234558, -0.34759077429771423, 0.6331167221069336, 0.07776804268360138, 0.16906513273715973, -1.1199089288711548, 0.0678294226527214, -0.06387411803007126, -0.007310573477298021, -0.808965802192688, -0.16551174223423004, 0.1348237544298172, -0.028521867468953133, -0.4992702603340149, 0.40431320667266846, -0.45237916707992554, 0.3118259906768799, -0.0694781094789505, -0.06290154159069061, 0.07059920579195023, 0.7380802035331726, -0.08083406090736389, 1.1032400131225586, 0.5214365124702454, -0.49065881967544556, 0.04643654450774193, 0.3113712966442108, -0.3429497182369232, -0.13180063664913177, -0.7013351917266846, 0.22978712618350983, -0.23198486864566803, 0.17074313759803772, -1.0779520273208618, 0.21949870884418488, 0.4213203489780426, -0.5924792289733887, 0.5172252058982849, -0.305311381816864, -0.4109797179698944, -0.1432521790266037, -0.1745145171880722, 0.5998806953430176, 0.45592001080513, -0.6156391501426697, 0.8216549158096313, 0.011356862261891365, -0.25293371081352234, -0.9483920931816101, -0.43875059485435486, 0.2812436521053314, -0.16411249339580536, -0.5842170715332031, 0.3623867332935333, 0.16170556843280792, -0.15864916145801544, -0.025280635803937912, -0.04986637830734253, 0.05471929907798767, 0.08041155338287354, 0.39686715602874756, 0.34941837191581726, -0.2699047923088074, 0.16790878772735596, 0.17702960968017578, -0.01971314288675785, 0.17877916991710663, -0.36603716015815735, 0.6835201978683472, -0.4832428991794586, -0.4622080624103546, -0.33694568276405334, 0.3894798457622528, 0.7272562384605408, -0.5702706575393677, 1.140268087387085, 1.0505214929580688, -0.1299506425857544, 0.10499852895736694, -0.6630853414535522, -0.10257688164710999, -0.44327113032341003, 0.5894361734390259, -0.27531152963638306, -0.9291707277297974, 0.33600741624832153, 0.2504732012748718, 0.4181753993034363, 0.6493968367576599, 0.625826358795166, -0.09170188009738922, 1.0227818489074707, 0.5452559590339661, -0.15185432136058807, 0.12475431710481644, -0.5805931091308594, 0.6150835156440735, -0.8935262560844421, -0.3053930997848511, -0.661587655544281, -0.2311927080154419, -0.791928768157959, -0.3307133913040161, 0.22228848934173584, 0.23646336793899536, -0.575080931186676, 0.5551692843437195, -0.2562919855117798, 0.04598010331392288, 0.6580065488815308, -0.1461631953716278, 0.08983930945396423, 0.15877459943294525, -0.22756998240947723, -0.08792855590581894, -0.5352566838264465, -0.7710619568824768, 1.19564688205719, 0.4342110753059387, 0.4473332464694977, 0.5141080021858215, 0.7481454610824585, 0.3461456000804901, 0.45368778705596924, -0.6809241771697998, 0.5206117033958435, -0.10760881751775742, -0.41772130131721497, -0.13197273015975952, -0.2730196416378021, -1.061475157737732, 0.42881837487220764, -0.29639533162117004, -0.6988157033920288, 0.17263968288898468, -0.13230597972869873, -0.349603533744812, 0.39590659737586975, -0.6027476787567139, 0.6890387535095215, -0.32553696632385254, -0.329777330160141, -0.1112438291311264, -0.7298884391784668, 0.2487422525882721, -0.06623023003339767, 0.2818295657634735, -0.34862592816352844, 0.05540704354643822, 0.9345531463623047, -0.1477275788784027, 0.6966452598571777, -0.09713727980852127, -0.15651929378509521, 0.18724419176578522, 0.1213352307677269, 0.4804566204547882, 0.07113222032785416, -0.01639939472079277, 0.5380071401596069, -0.13952893018722534, -0.41252991557121277, -0.5572400689125061, 0.6822823286056519, -1.1240986585617065, -0.7258259057998657, -0.5351894497871399, -0.754858136177063, -0.34411802887916565, 0.0762132853269577, 0.003410387085750699, 0.3116762340068817, 0.13525159657001495, 0.3228038251399994, 0.2767803966999054, -0.3059791028499603, 0.6150907278060913, 0.5850706696510315, -0.14532223343849182, -0.31406369805336, 0.6068190932273865, -0.15041351318359375, 0.057295311242341995, 0.41532543301582336, -0.08228415250778198, -0.42652758955955505, -0.8276005983352661, -0.4930807054042816, 0.41459760069847107, -0.6113254427909851, -0.15223847329616547, -0.9444014430046082, -0.4632410705089569, -0.5463695526123047, 0.04235977679491043, -0.3881773352622986, -0.4721333682537079, -0.37892091274261475, -0.00712145259603858, 0.2610708773136139, 0.4415576457977295, -0.03839179128408432, 0.29308512806892395, -0.9679631590843201, 0.08117431402206421, 0.2953408658504486, 0.04911401867866516, 0.11188321560621262, -0.9723861217498779, -0.4327044188976288, 0.30354544520378113, -0.5219441652297974, -0.6003989577293396, 0.66629958152771, 0.13660798966884613, 0.4029281437397003, 0.4075208008289337, 0.10585340112447739, 0.4411238431930542, -0.7509884834289551, 0.792577862739563, 0.23512068390846252, -0.6855608820915222, 0.13224266469478607, -0.20410768687725067, 0.21399396657943726, 0.6879795789718628, 0.6585584878921509, -0.7521602511405945, -0.27636706829071045, -0.6041731834411621, -1.1593888998031616, 0.7235347628593445, 0.5592624545097351, 0.2776029706001282, 0.07591474801301956, 0.11556640267372131, 0.048993196338415146, 0.3258666396141052, -0.7735776305198669, -0.7786402106285095, -0.17712287604808807, -0.3509763479232788, -0.2200280874967575, -0.41908136010169983, -0.029117299243807793, -0.35217607021331787, 0.9483257532119751, 0.12672854959964752, 0.5162200927734375, 0.09904012084007263, -0.2645584046840668, 0.15035544335842133, 0.5410494208335876, 0.742505669593811, 0.6093879342079163, -0.3963933289051056, 0.3815211057662964, 0.1712842583656311, -0.5872827172279358, 0.06418219953775406, 0.6798079609870911, -0.02926463447511196, 0.09735465794801712, 0.49424341320991516, 0.9461195468902588, -0.08831635862588882, -0.6096524000167847, 0.39678478240966797, 0.0036272837314754725, -0.3479410707950592, -0.2823725938796997, -0.19505923986434937, 0.13492721319198608, 0.56844562292099, 0.6640812158584595, 0.29523399472236633, 0.13539467751979828, -0.22074592113494873, 0.17818811535835266, 0.4089409112930298, -0.5574989318847656, -0.3577331006526947, 0.7384467124938965, 0.061705902218818665, -0.4632314443588257, 0.6940450668334961, -0.1789901703596115, -0.7517369985580444, 0.4684566855430603, 0.29996517300605774, 1.1576411724090576, -0.08197357505559921, 0.24672377109527588, 0.3373700976371765, 0.4306422472000122, 0.2953682541847229, -0.061520159244537354, -0.15051117539405823, -0.9218091368675232, -0.5030776262283325, -0.8275168538093567, -0.31230753660202026, 0.2625332474708557, -0.47957342863082886, 0.13963167369365692, -0.12412386387586594, -0.007391777355223894, 0.0507507286965847, -0.0017743592616170645, -0.693545937538147, 0.0943969339132309, 0.3060247600078583, 0.7731099724769592, -0.9226686358451843, 0.9213082790374756, 0.7451136708259583, -0.4582206904888153, -0.8961368799209595, 0.05904290825128555, -0.374432235956192, -0.9481712579727173, 0.8157886862754822, 0.35790666937828064, -0.27299803495407104, 0.012608771212399006, -0.527313768863678, -0.8006032109260559, 0.9927438497543335, 0.26773539185523987, -0.4501493275165558, 0.06689349561929703, 0.3629588186740875, 0.34483978152275085, -0.2970236539840698, 0.5516631603240967, 0.5665603876113892, 0.3997752070426941, 0.09051790833473206, -0.8192644715309143, 0.02226835861802101, -0.36224374175071716, -0.09970679879188538, 0.34718871116638184, -0.5574130415916443, 0.8778983354568481, -0.29441261291503906, -0.12362293154001236, -0.12657959759235382, 0.8687122464179993, 0.1779893934726715, 0.12438757717609406, 0.3913207948207855, 0.6873378157615662, 0.36161699891090393, -0.074178047478199, 0.6642744541168213, -0.4326542615890503, 0.4286876618862152, 1.0336999893188477, 0.0711006373167038, 0.8492689728736877, 0.5398566126823425, -0.5525738000869751, 0.634035050868988, 0.4807381331920624, 0.10624604672193527, 0.5927516222000122, -0.2376808077096939, -0.4655357301235199, -0.19516463577747345, -0.21757790446281433, -0.4215547740459442, 0.5329747796058655, 0.10048262774944305, -0.6014462113380432, -0.2571287453174591, -0.07459939271211624, 0.3368479907512665, 0.01814959943294525, 0.08289586752653122, 0.2964298129081726, 0.12328621745109558, -0.5646212100982666, 1.1065365076065063, 0.3339395225048065, 0.5709880590438843, -0.3831727206707001, 0.04247773066163063, -0.2731105089187622, 0.01870105043053627, -0.10774136334657669, -0.6123135685920715, 0.22346286475658417, -0.10097718983888626, -0.03266412764787674, -0.29233792424201965, 0.3362029194831848, -0.6630193591117859, -0.5730338096618652, 0.20016971230506897, 0.5523736476898193, 0.10571008920669556, -0.09952519088983536, -0.8710439801216125, -0.1138014942407608, 0.18517713248729706, -0.4734768271446228, 0.19475004076957703, 0.1491614133119583, 0.07721970975399017, 0.6876621842384338, 0.7293983101844788, -0.07043153792619705, -0.10862922668457031, 0.2590484917163849, 0.8890007734298706, -0.5069574117660522, 0.03341478109359741, -1.1232091188430786, 0.5482989549636841, 0.16333560645580292, -0.06377404928207397, 0.7483454346656799, 0.665402352809906, 0.5944641828536987, 0.021388551220297813, 0.6826009750366211, 0.014620398171246052, 0.3676679730415344, -0.32970771193504333, 0.8989217877388, -0.6560856103897095, 0.2568452060222626, -0.16956087946891785, -0.8855305314064026, -0.4477488398551941, 0.5764102935791016, -0.3295591175556183, 0.2681024372577667, 0.770668089389801, 0.8259015083312988, -0.16284745931625366, -0.0012579726753756404, 0.21026501059532166, 0.33800429105758667, 0.38828811049461365, 0.5788213610649109, 0.5986037254333496, -0.6878547668457031, 0.6914820671081543, -0.38128364086151123, 0.025828149169683456, -0.2220088541507721, -0.7863577008247375, -1.084276556968689, -0.8011245131492615, -0.2138463407754898, -0.4308023452758789, 0.09171104431152344, 1.183745265007019, 0.5403596758842468, -1.087631106376648, -0.2997831404209137, -0.04918760806322098, 0.07152961194515228, -0.08632051944732666, -0.13917942345142365, 0.829073965549469, -0.24444472789764404, -0.7940911650657654, 0.25715574622154236, 0.18737323582172394, 0.154567688703537, -0.14180868864059448, -0.17976292967796326, -0.5869400501251221, -0.09235884249210358, 0.6726952791213989, 0.18465986847877502, -0.7183748483657837, -0.1465802788734436, 0.19417616724967957, -0.12746962904930115, 0.14399327337741852, 0.313612163066864, -0.7304714918136597, 0.10443123430013657, 0.10422986000776291, 0.67471843957901, 0.6025785803794861, -0.09956306219100952, 0.26254695653915405, -0.4548495411872864, 0.25085338950157166, 0.39587903022766113, 0.4404994547367096, 0.3397218883037567, -0.02107146754860878, 0.33795127272605896, -0.05833101272583008, -0.5934534668922424, -0.6651589870452881, 0.2714675962924957, -0.9327874779701233, -0.05711454525589943, 1.2854931354522705, -0.10232068598270416, 0.08761551231145859, -0.09382781386375427, -0.2484455555677414, 0.4519093930721283, -0.6520867943763733, 0.7121747732162476, 0.6419178247451782, 0.05015815794467926, -0.5214167833328247, -0.6014978289604187, 0.34550660848617554, 0.793766438961029, -0.4398544430732727, -0.05362639203667641, 0.25844404101371765, -0.09124433249235153, 0.0609675869345665, 0.23196722567081451, 0.12476139515638351, 0.06174667924642563, -0.5312174558639526, 0.33710992336273193, -0.29312440752983093, -0.3825162947177887, -0.283812552690506, 0.03189532458782196, 0.2846415936946869, -0.23757655918598175 ]
trl-internal-testing/tiny-random-GPTNeoXForCausalLM-safetensors-sharded
trl-internal-testing
"2023-11-02T19:00:56Z"
13,589
0
transformers
[ "transformers", "safetensors", "gpt_neox", "text-generation", "endpoints_compatible", "text-generation-inference", "region:us" ]
text-generation
"2023-11-02T19:00:39Z"
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 ]
Helsinki-NLP/opus-mt-hu-en
Helsinki-NLP
"2023-08-16T11:57:55Z"
13,580
1
transformers
[ "transformers", "pytorch", "tf", "marian", "text2text-generation", "translation", "hu", "en", "license:apache-2.0", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
translation
"2022-03-02T23:29:04Z"
--- tags: - translation license: apache-2.0 --- ### opus-mt-hu-en * source languages: hu * target languages: en * OPUS readme: [hu-en](https://github.com/Helsinki-NLP/OPUS-MT-train/blob/master/models/hu-en/README.md) * dataset: opus * model: transformer-align * pre-processing: normalization + SentencePiece * download original weights: [opus-2019-12-18.zip](https://object.pouta.csc.fi/OPUS-MT-models/hu-en/opus-2019-12-18.zip) * test set translations: [opus-2019-12-18.test.txt](https://object.pouta.csc.fi/OPUS-MT-models/hu-en/opus-2019-12-18.test.txt) * test set scores: [opus-2019-12-18.eval.txt](https://object.pouta.csc.fi/OPUS-MT-models/hu-en/opus-2019-12-18.eval.txt) ## Benchmarks | testset | BLEU | chr-F | |-----------------------|-------|-------| | Tatoeba.hu.en | 52.9 | 0.683 |
[ -0.22724954783916473, -0.6125848889350891, 0.2564649283885956, 0.40581342577934265, -0.41497793793678284, -0.43714287877082825, -0.46485406160354614, -0.15910622477531433, 0.06116696819663048, 0.5375036597251892, -0.6739680171012878, -0.6343331336975098, -0.5531952381134033, 0.22720153629779816, -0.04578093811869621, 0.900509774684906, -0.2241663783788681, 0.4579804539680481, 0.1914563775062561, -0.561291515827179, -0.29565680027008057, -0.48906221985816956, -0.4124080240726471, -0.4039795994758606, 0.46515417098999023, 0.3376126289367676, 0.47073450684547424, 0.5149497985839844, 1.0195096731185913, 0.24272513389587402, -0.07369327545166016, 0.015150565654039383, -0.5087989568710327, -0.039682839065790176, 0.10803002119064331, -0.5444920659065247, -0.8919335603713989, -0.23418356478214264, 1.1215893030166626, 0.48875489830970764, -0.04605036601424217, 0.49818915128707886, 0.025729259476065636, 1.0440012216567993, -0.42202895879745483, 0.15560539066791534, -0.6371438503265381, 0.07673082500696182, -0.42172038555145264, -0.3241099417209625, -0.7420821189880371, -0.2630999982357025, 0.2264135330915451, -0.7995487451553345, -0.10205306857824326, 0.19397805631160736, 1.6258320808410645, 0.3338852524757385, -0.41854560375213623, -0.04890596866607666, -0.6827766299247742, 1.1973047256469727, -0.9542860984802246, 0.6101529002189636, 0.4628365933895111, 0.2588251829147339, 0.24958403408527374, -0.5830053687095642, -0.26218464970588684, 0.12756967544555664, -0.2641759216785431, 0.20787940919399261, -0.21207039058208466, -0.20162074267864227, 0.3816710412502289, 0.8281914591789246, -0.8626169562339783, -0.002646865090355277, -0.49742206931114197, -0.07801377773284912, 0.7507572174072266, 0.090569868683815, 0.10446476936340332, -0.24914589524269104, -0.42092326283454895, -0.587158203125, -0.7709031701087952, 0.16645547747612, 0.4155804216861725, 0.2913084328174591, -0.544204831123352, 0.755112886428833, -0.14095230400562286, 0.6607071757316589, -0.0687452107667923, -0.0161199402064085, 1.040520429611206, -0.371401846408844, -0.46326780319213867, -0.23147325217723846, 1.322290301322937, 0.27126801013946533, 0.044499024748802185, 0.12230449169874191, -0.3068639934062958, -0.24495667219161987, 0.11574221402406693, -0.9493589997291565, -0.028097273781895638, 0.17820607125759125, -0.5442058444023132, -0.17803174257278442, 0.034021683037281036, -0.7162824869155884, 0.24892394244670868, -0.4229143261909485, 0.7270314693450928, -0.5995514988899231, -0.29113349318504333, 0.31112760305404663, 0.03847000375390053, 0.42175135016441345, -0.04138609766960144, -0.6861268877983093, 0.19460000097751617, 0.3611125648021698, 0.7140140533447266, -0.4149323105812073, -0.3048756420612335, -0.5404797196388245, -0.19139420986175537, -0.10401973128318787, 0.7166396975517273, -0.0015178080648183823, -0.4260883331298828, 0.0680980384349823, 0.4958961606025696, -0.38478752970695496, -0.37846502661705017, 1.452697992324829, -0.3129929304122925, 0.7466154098510742, -0.5139835476875305, -0.5749712586402893, -0.3798387944698334, 0.5161504745483398, -0.7203680872917175, 1.515193223953247, 0.20760577917099, -0.9991858005523682, 0.1814248114824295, -0.8699691891670227, -0.29806283116340637, -0.0032084560953080654, 0.0505627878010273, -0.7557575702667236, 0.07929281145334244, 0.15825849771499634, 0.4007455110549927, -0.29170095920562744, 0.333060085773468, -0.01957090198993683, -0.3628348112106323, 0.022565262392163277, -0.42569097876548767, 1.1094539165496826, 0.30468568205833435, -0.4232099950313568, 0.318587064743042, -0.9761070013046265, -0.061617180705070496, 0.01746472902595997, -0.6453081965446472, -0.3023799657821655, 0.11571183800697327, 0.36900579929351807, 0.08681484311819077, 0.4852345585823059, -0.6699957847595215, 0.24726976454257965, -0.6989200711250305, 0.09126000106334686, 0.7113509774208069, -0.36861979961395264, 0.3916335701942444, -0.48353156447410583, 0.35819587111473083, 0.11573311686515808, 0.1802670806646347, 0.008313995786011219, -0.5314467549324036, -0.979415774345398, -0.12130700796842575, 0.6298077702522278, 1.2056570053100586, -0.8431443572044373, 1.0053675174713135, -0.7007217407226562, -0.8482269644737244, -0.8801628351211548, -0.1276535987854004, 0.5557910799980164, 0.43990781903266907, 0.61146080493927, -0.0861940011382103, -0.5822750329971313, -1.2420248985290527, -0.14612343907356262, -0.18301083147525787, -0.25157907605171204, 0.1979936957359314, 0.7281625270843506, -0.25381991267204285, 0.5618396997451782, -0.5436736345291138, -0.43649667501449585, -0.19526799023151398, 0.1357150673866272, 0.5618507266044617, 0.665072500705719, 0.5916694402694702, -0.8876280188560486, -0.6581975817680359, 0.14187778532505035, -0.9290409088134766, -0.13058073818683624, 0.16871175169944763, -0.328020304441452, 0.1427050679922104, 0.020367419347167015, -0.34778648614883423, 0.22971458733081818, 0.7826991677284241, -0.6623827815055847, 0.7395848035812378, -0.14544646441936493, 0.2983494997024536, -1.4708701372146606, 0.2288953810930252, -0.12098205089569092, -0.1279027760028839, -0.4417736530303955, 0.05963343009352684, 0.2445797324180603, 0.09801775962114334, -0.8642227649688721, 0.6528933644294739, -0.2496771663427353, -0.06340806931257248, 0.2733363211154938, -0.0674016922712326, 0.16983067989349365, 0.9239861369132996, -0.09660659730434418, 0.8008118867874146, 0.8071627020835876, -0.5722535848617554, 0.22244253754615784, 0.5988633036613464, -0.4945310950279236, 0.3975602686405182, -0.9142407774925232, -0.29196688532829285, 0.43025457859039307, -0.11888758838176727, -0.5320286750793457, 0.12307775765657425, 0.27311477065086365, -0.5755707025527954, 0.3760339617729187, -0.06399937719106674, -0.7673648595809937, -0.10362067073583603, -0.3560984432697296, 0.5485290288925171, 0.7939608693122864, -0.1273045688867569, 0.696023166179657, 0.147648423910141, -0.02410600520670414, -0.5894127488136292, -1.045546054840088, -0.19795875251293182, -0.43029892444610596, -0.7730885148048401, 0.2922084927558899, -0.45248106122016907, -0.12782931327819824, 0.044506046921014786, 0.3288063406944275, -0.08651144802570343, -0.01462459284812212, 0.044918280094861984, 0.2808604836463928, -0.600275993347168, 0.03750231862068176, 0.06566840410232544, -0.10611353814601898, -0.14988084137439728, -0.1704116016626358, 0.5735827684402466, -0.3902549743652344, -0.21223489940166473, -0.7249316573143005, 0.10426999628543854, 0.6039741635322571, -0.41011640429496765, 0.8659774661064148, 0.6441708207130432, -0.17185670137405396, 0.2208995372056961, -0.45552611351013184, 0.10757706314325333, -0.4758416712284088, 0.1159263625741005, -0.4642924964427948, -0.7997405529022217, 0.624676525592804, 0.18843962252140045, 0.6365922093391418, 0.9131877422332764, 0.7008243203163147, -0.016929464414715767, 0.7390777468681335, 0.3557598888874054, -0.0569574274122715, 0.5265824198722839, -0.5614420771598816, -0.22977666556835175, -1.1437366008758545, 0.1359453797340393, -0.8257288932800293, -0.38485056161880493, -0.9343770742416382, -0.2930224537849426, 0.3238275945186615, 0.01773977093398571, -0.27350178360939026, 0.786575436592102, -0.5842491388320923, 0.13542315363883972, 0.6619693636894226, -0.09679922461509705, 0.36019182205200195, 0.0768727958202362, -0.5718868374824524, -0.29867851734161377, -0.4602273404598236, -0.5747061967849731, 1.3440029621124268, 0.44828057289123535, 0.38689061999320984, 0.17016343772411346, 0.47335752844810486, 0.08602398633956909, 0.22683842480182648, -0.7422849535942078, 0.49093592166900635, -0.32398414611816406, -0.7841959595680237, -0.44461318850517273, -0.658200740814209, -1.0362887382507324, 0.5393873453140259, -0.30585238337516785, -0.5004158616065979, 0.1590190827846527, 0.04886642098426819, -0.06742702424526215, 0.5352049469947815, -0.6643943190574646, 1.2746598720550537, -0.06815703958272934, -0.09928744286298752, 0.25073859095573425, -0.4447091221809387, 0.23850350081920624, 0.020524920895695686, 0.37677377462387085, -0.24081377685070038, 0.24714456498622894, 0.802338719367981, -0.11675047129392624, 0.4464094042778015, -0.0635218545794487, -0.1708364486694336, 0.12849856913089752, 0.06682941317558289, 0.4568021297454834, -0.19113294780254364, -0.5429490804672241, 0.49232977628707886, 0.024284761399030685, -0.5823919177055359, -0.15157471597194672, 0.5617691874504089, -0.7998859882354736, -0.0570199228823185, -0.42764437198638916, -0.7695924043655396, 0.06388595700263977, 0.370258629322052, 0.7957732677459717, 0.8185871243476868, -0.3659116327762604, 0.608100950717926, 0.8675676584243774, -0.3289346694946289, 0.44894853234291077, 0.7321463823318481, -0.2636041045188904, -0.5908081531524658, 0.9009207487106323, 0.09390074014663696, 0.3063717186450958, 0.7277164459228516, 0.22346583008766174, -0.13750456273555756, -0.7541314363479614, -0.7812768816947937, 0.30218568444252014, -0.2850443720817566, -0.20737142860889435, -0.5563058853149414, -0.11155664175748825, -0.34871193766593933, 0.25291839241981506, -0.49420076608657837, -0.5221626162528992, -0.1285504698753357, -0.24986647069454193, 0.2673809230327606, 0.26626095175743103, 0.008249402046203613, 0.48713988065719604, -1.1411212682724, 0.20505337417125702, -0.035580240190029144, 0.2866211533546448, -0.45688414573669434, -0.9217827320098877, -0.6594547033309937, 0.10933615267276764, -0.8006160855293274, -0.7530258297920227, 0.558347761631012, 0.10586410760879517, 0.32564616203308105, 0.423236608505249, 0.21699771285057068, 0.4391779601573944, -0.7642384171485901, 1.021404504776001, -0.07904565334320068, -0.806317150592804, 0.6099869608879089, -0.596165120601654, 0.5611020922660828, 0.9372772574424744, 0.25200438499450684, -0.3241671919822693, -0.6133252382278442, -0.7671933770179749, -0.8603522181510925, 0.7789198160171509, 0.7987907528877258, -0.14560629427433014, 0.3351562023162842, -0.1651671826839447, 0.03021213598549366, 0.14676788449287415, -1.290170669555664, -0.44631800055503845, 0.06468630582094193, -0.3696989119052887, -0.11400207132101059, -0.27823391556739807, -0.2713324725627899, -0.2955218255519867, 1.1767020225524902, 0.132104754447937, 0.17990872263908386, 0.4148615598678589, -0.19746896624565125, -0.327180951833725, 0.42189547419548035, 0.9099005460739136, 0.5857514142990112, -0.6173115372657776, -0.21288439631462097, 0.35979098081588745, -0.49163398146629333, -0.21070049703121185, 0.1216641217470169, -0.536214292049408, 0.40546950697898865, 0.6202820539474487, 1.2785460948944092, 0.36254405975341797, -0.66092848777771, 0.4440496861934662, -0.32008716464042664, -0.4912870526313782, -0.675302267074585, -0.2108137309551239, 0.05640299245715141, -0.08683646470308304, 0.3515177369117737, 0.1126573458313942, 0.18864645063877106, -0.2486906200647354, 0.16919369995594025, 0.05426314100623131, -0.7191236615180969, -0.6703778505325317, 0.48035746812820435, 0.20180881023406982, -0.37668436765670776, 0.5483954548835754, -0.3516136407852173, -0.5408220887184143, 0.43017828464508057, 0.11305494606494904, 1.1128679513931274, -0.2744147777557373, -0.1967402547597885, 0.8503482341766357, 0.5832458138465881, -0.2022322416305542, 0.5297050476074219, 0.13892310857772827, -0.7971288561820984, -0.6309678554534912, -0.9910808801651001, -0.2104223668575287, 0.21249815821647644, -1.0763295888900757, 0.40396735072135925, 0.382209837436676, -0.031432781368494034, -0.3634973466396332, 0.30033859610557556, -0.5894725322723389, 0.06548281013965607, -0.28845930099487305, 1.1110608577728271, -0.9983521699905396, 1.0651077032089233, 0.5987482666969299, -0.23548881709575653, -0.9166790246963501, -0.3005300462245941, -0.2807127833366394, -0.45065248012542725, 0.5351625084877014, 0.21005985140800476, 0.3891647756099701, -0.14622244238853455, -0.20198561251163483, -0.8071437478065491, 1.193005919456482, 0.2598094046115875, -0.7219820618629456, -0.09016262739896774, 0.11196186393499374, 0.5394361615180969, -0.3366760313510895, 0.07528331875801086, 0.5291136503219604, 0.8842475414276123, -0.05093006789684296, -1.3259762525558472, -0.3442069888114929, -0.5846652984619141, -0.3921161890029907, 0.5563093423843384, -0.5347157120704651, 1.063340425491333, 0.41865506768226624, -0.14388661086559296, 0.1013951301574707, 0.7199329733848572, 0.46149495244026184, 0.4016753137111664, 0.6072214841842651, 1.251291275024414, 0.3772929906845093, -0.4833807349205017, 1.088263988494873, -0.2586885392665863, 0.6089828014373779, 1.2267934083938599, -0.116798534989357, 1.0776067972183228, 0.3517674207687378, -0.1972326636314392, 0.7639404535293579, 0.6597797274589539, -0.2803365886211395, 0.4810241758823395, 0.016395095735788345, 0.19363225996494293, -0.12045885622501373, 0.15454284846782684, -0.7547594904899597, 0.2686845064163208, 0.2071298211812973, -0.1639632135629654, 0.0324876606464386, -0.04185878112912178, 0.06928784400224686, 0.016072953119874, -0.1612231582403183, 0.6513233780860901, 0.045989830046892166, -0.6437641978263855, 0.8194304704666138, -0.13139845430850983, 0.8224318027496338, -0.8202795386314392, 0.13346971571445465, -0.0902031660079956, 0.22571904957294464, -0.025195853784680367, -0.6124365329742432, 0.49375060200691223, 0.011659199371933937, -0.33668288588523865, -0.4843611419200897, 0.2010827213525772, -0.5803180932998657, -0.978444516658783, 0.5415546894073486, 0.503734290599823, 0.37286752462387085, 0.032011911273002625, -1.0280232429504395, 0.03700309619307518, 0.1596699357032776, -0.767032265663147, 0.12324181944131851, 0.7731665372848511, 0.27397698163986206, 0.46636468172073364, 0.7278397083282471, 0.2667124569416046, 0.1941329389810562, 0.07267703860998154, 0.6614401340484619, -0.5470259189605713, -0.5119841694831848, -0.8615039587020874, 0.9091214537620544, -0.11097148060798645, -0.7342051863670349, 0.8544342517852783, 1.1226274967193604, 1.0585801601409912, -0.20539253950119019, 0.3440440893173218, -0.07270468026399612, 0.7358704805374146, -0.6809361577033997, 0.7013143301010132, -1.0273209810256958, 0.16519495844841003, -0.21257460117340088, -1.0326732397079468, -0.1344573050737381, 0.36833494901657104, -0.13110090792179108, -0.4386029839515686, 0.9260466694831848, 0.6862649917602539, -0.143123596906662, -0.32105156779289246, 0.412090003490448, 0.36171773076057434, 0.21159939467906952, 0.6793429255485535, 0.4219452738761902, -1.1728293895721436, 0.6679379343986511, -0.3677781820297241, -0.10578977316617966, -0.09985621273517609, -0.7861176133155823, -0.9118800759315491, -0.6965131759643555, -0.21481387317180634, -0.24441106617450714, -0.42713463306427, 0.8121830224990845, 0.6617928147315979, -1.0663336515426636, -0.7008363008499146, 0.11152204126119614, 0.23731040954589844, -0.3211352527141571, -0.30265331268310547, 0.71449875831604, -0.2645334303379059, -1.0809459686279297, 0.5364187359809875, 0.11024939268827438, -0.07906432449817657, -0.10671484470367432, -0.3677509129047394, -0.4960004687309265, -0.08154638111591339, 0.3961969017982483, 0.08779481053352356, -0.6378195285797119, 0.1529284566640854, 0.20492815971374512, -0.1482814997434616, 0.401346355676651, 0.47917866706848145, -0.31781136989593506, 0.16616569459438324, 0.9461445212364197, 0.32934802770614624, 0.4335132837295532, -0.13694025576114655, 0.5940529108047485, -0.8084872364997864, 0.46350568532943726, 0.24409174919128418, 0.7325685620307922, 0.4019816219806671, -0.13893453776836395, 0.8519797921180725, 0.24010075628757477, -0.7945376634597778, -1.1844887733459473, 0.08826154470443726, -1.3852978944778442, 0.014303978532552719, 1.0310256481170654, -0.34192997217178345, -0.36487194895744324, 0.28400519490242004, -0.14761793613433838, 0.20425650477409363, -0.4172004163265228, 0.43525558710098267, 0.9142271280288696, 0.3976355195045471, 0.1797918677330017, -0.8235131502151489, 0.40113282203674316, 0.5592331886291504, -0.9087058901786804, -0.14961405098438263, 0.23222720623016357, 0.089505635201931, 0.4411729872226715, 0.5440031886100769, -0.30362001061439514, 0.1187930479645729, -0.33929014205932617, 0.4681501090526581, 0.026285558938980103, -0.16412077844142914, -0.32094401121139526, -0.050416503101587296, -0.09920179098844528, -0.2919369041919708 ]
trl-internal-testing/tiny-random-GPTNeoXForCausalLM-safetensors
trl-internal-testing
"2023-11-02T19:00:20Z"
13,573
0
transformers
[ "transformers", "safetensors", "gpt_neox", "text-generation", "endpoints_compatible", "text-generation-inference", "region:us" ]
text-generation
"2023-11-02T19:00:19Z"
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 ]
TheBloke/Llama-2-13B-fp16
TheBloke
"2023-07-20T09:47:08Z"
13,520
53
transformers
[ "transformers", "pytorch", "llama", "text-generation", "facebook", "meta", "llama-2", "en", "has_space", "text-generation-inference", "region:us" ]
text-generation
"2023-07-18T19:30:51Z"
--- inference: false language: - en pipeline_tag: text-generation tags: - facebook - meta - pytorch - llama - llama-2 --- <!-- header start --> <div style="width: 100%;"> <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><a href="https://discord.gg/theblokeai">Chat & support: my new Discord server</a></p> </div> <div style="display: flex; flex-direction: column; align-items: flex-end;"> <p><a href="https://www.patreon.com/TheBlokeAI">Want to contribute? TheBloke's Patreon page</a></p> </div> </div> <!-- header end --> # Meta's Llama 2 13B fp16 These files are fp16 format model files for [Meta's Llama 2 13B](https://huggingface.co/meta-llama/Llama-2-13b-hf). They were produced by downloading the PTH files from Meta, and then converting to HF format using the latest Transformers 4.32.0.dev0, from Git, with the Llama 2 PR included: https://github.com/huggingface/transformers/pull/24891. Command to convert was: ``` python3 /workspace/venv/pytorch2/lib/python3.10/site-packages/transformers/models/llama/convert_llama_weights_to_hf.py --input_dir /workspace/git/llama/download --model_size 13B --output_dir /workspace/process/llama-2-13b/source ``` ## Repositories available * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/Llama-2-13B-GPTQ) * [Original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/meta-llama/Llama-2-13b-hf) * [My fp16 conversion of the unquantised PTH model files](https://huggingface.co/TheBloke/Llama-2-13B-fp16) ## Prompt template: None ``` {prompt} ``` <!-- footer start --> ## 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**: Luke from CarbonQuill, Aemon Algiz. **Patreon special mentions**: Space Cruiser, Nikolai Manek, Sam, Chris McCloskey, Rishabh Srivastava, Kalila, Spiking Neurons AB, Khalefa Al-Ahmad, WelcomeToTheClub, Chadd, Lone Striker, Viktor Bowallius, Edmond Seymore, Ai Maven, Chris Smitley, Dave, Alexandros Triantafyllidis, Luke @flexchar, Elle, ya boyyy, Talal Aujan, Alex , Jonathan Leane, Deep Realms, Randy H, subjectnull, Preetika Verma, Joseph William Delisle, Michael Levine, chris gileta, K, Oscar Rangel, LangChain4j, Trenton Dambrowitz, Eugene Pentland, Johann-Peter Hartmann, Femi Adebogun, Illia Dulskyi, senxiiz, Daniel P. Andersen, Sean Connelly, Artur Olbinski, RoA, Mano Prime, Derek Yates, Raven Klaugh, David Flickinger, Willem Michiel, Pieter, Willian Hasse, vamX, Luke Pendergrass, webtim, Ghost , Rainer Wilmers, Nathan LeClaire, Will Dee, Cory Kujawski, John Detwiler, Fred von Graf, biorpg, Iucharbius , Imad Khwaja, Pierre Kircher, terasurfer , Asp the Wyvern, John Villwock, theTransient, zynix , Gabriel Tamborski, Fen Risland, Gabriel Puliatti, Matthew Berman, Pyrater, SuperWojo, Stephen Murray, Karl Bernard, Ajan Kanaga, Greatston Gnanesh, Junyu Yang. Thank you to all my generous patrons and donaters! <!-- footer end --> # Original model card: Meta's Llama 2 13B # **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 13B pretrained model, 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/) ## 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. To get the expected features and performance for the chat versions, a specific formatting needs to be followed, including the `INST` and `<<SYS>>` tags, `BOS` and `EOS` tokens, and the whitespaces and breaklines in between (we recommend calling `strip()` on inputs to avoid double-spaces). See our reference code in github for details: [`chat_completion`](https://github.com/facebookresearch/llama/blob/main/llama/generation.py#L212). **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.32624804973602295, -0.7180013656616211, 0.2968575060367584, 0.3045131266117096, -0.43429312109947205, 0.08063073456287384, -0.09491471201181412, -0.6848975419998169, 0.36575016379356384, 0.34163960814476013, -0.7738919854164124, -0.3463735282421112, -0.5801807045936584, 0.15982189774513245, -0.32407906651496887, 1.0704511404037476, 0.16385982930660248, -0.3691593408584595, -0.09534434229135513, 0.22782348096370697, -0.42703381180763245, -0.37345969676971436, -0.5407778024673462, -0.5597038865089417, 0.5163862109184265, 0.3159986734390259, 0.7133306264877319, 0.6327937841415405, 0.4942196011543274, 0.3118925094604492, -0.25903674960136414, 0.26731762290000916, -0.7101547718048096, -0.20347481966018677, 0.15414108335971832, -0.4340817332267761, -0.7113021612167358, -0.0005322102224454284, 0.344721257686615, 0.16104882955551147, -0.3219275176525116, 0.3356681764125824, 0.06507370620965958, 0.42754843831062317, -0.29299649596214294, 0.25764986872673035, -0.6349444389343262, -0.0768413096666336, -0.2072533816099167, 0.03647155687212944, -0.14577846229076385, -0.16612911224365234, -0.19709834456443787, -0.9457145929336548, -0.11134317517280579, 0.05251547694206238, 1.188054084777832, 0.5128693580627441, -0.35331854224205017, 0.003736380720511079, -0.4914945960044861, 0.7460335493087769, -0.880977988243103, 0.20145565271377563, 0.5172257423400879, 0.1949547678232193, -0.2769608497619629, -0.9894033074378967, -0.7785322666168213, -0.09462561458349228, -0.03818441554903984, 0.23519468307495117, -0.5659757256507874, -0.09756790101528168, 0.023630796000361443, 0.4343172609806061, -0.44644108414649963, 0.33989208936691284, -0.43786442279815674, -0.08325013518333435, 0.8070399761199951, 0.072087362408638, 0.22548507153987885, -0.17695312201976776, -0.36396557092666626, -0.3512116074562073, -0.7661930918693542, 0.0798792764544487, 0.40383878350257874, 0.09196388721466064, -0.7746740579605103, 0.7466105222702026, -0.18424254655838013, 0.27706676721572876, 0.2529408931732178, -0.37544935941696167, 0.2931792736053467, -0.5693919658660889, -0.25813615322113037, -0.3164188265800476, 1.074369192123413, 0.5820858478546143, 0.07028388231992722, 0.2110544741153717, -0.06770119071006775, 0.0868920311331749, 0.019137749448418617, -0.8301293253898621, -0.1366654634475708, 0.257995069026947, -0.5640491843223572, -0.5313735008239746, -0.33276012539863586, -0.7608172297477722, -0.3487841784954071, -0.033985935151576996, 0.12747929990291595, -0.19349677860736847, -0.5086727142333984, 0.11705665290355682, -0.06119167432188988, 0.5094918012619019, 0.37665504217147827, -0.9240002632141113, 0.13245825469493866, 0.6085576415061951, 0.6741772294044495, 0.16637830436229706, -0.27406975626945496, -0.12902164459228516, 0.0834767296910286, -0.2779707908630371, 0.7938734292984009, -0.36434298753738403, -0.4946041405200958, -0.18344710767269135, 0.057437293231487274, 0.2062535136938095, -0.402373343706131, 0.35716575384140015, -0.302979052066803, 0.15879744291305542, -0.23841102421283722, -0.27482691407203674, -0.226957768201828, 0.13816291093826294, -0.49150019884109497, 1.168725848197937, 0.26169106364250183, -0.5684026479721069, 0.10120338201522827, -0.5733505487442017, -0.286094069480896, -0.026356330141425133, 0.08446280658245087, -0.4422960877418518, -0.11859578639268875, 0.2150164246559143, 0.2856357991695404, -0.6738959550857544, 0.380413293838501, -0.2624523341655731, -0.3073083758354187, 0.277054101228714, -0.36568915843963623, 0.8623611927032471, 0.1933746039867401, -0.4298311173915863, -0.0207710899412632, -0.6322882175445557, -0.21840111911296844, 0.5757419466972351, -0.49187543988227844, 0.2931300401687622, 0.12018034607172012, 0.08059953898191452, 0.10046659409999847, 0.5146830677986145, -0.36930516362190247, 0.2617667615413666, -0.387923002243042, 0.6069236993789673, 0.8043833374977112, -0.10227596014738083, 0.2590877115726471, -0.5165981650352478, 0.48513293266296387, -0.1257271021604538, 0.35284554958343506, 0.01356965210288763, -0.834505558013916, -1.0105971097946167, -0.2429201453924179, 0.045482803136110306, 0.626598060131073, -0.48114335536956787, 0.6926799416542053, -0.13403961062431335, -0.7931697964668274, -0.5840643048286438, 0.21314598619937897, 0.4516511559486389, 0.334236204624176, 0.39172449707984924, -0.3004676401615143, -0.6838555932044983, -0.8957078456878662, 0.16103364527225494, -0.6134349703788757, -0.08820568025112152, 0.44577378034591675, 0.5622956156730652, -0.6048552989959717, 0.6785773634910583, -0.458193838596344, -0.3664264678955078, -0.4377397894859314, -0.24533270299434662, 0.21746808290481567, 0.4514015018939972, 0.6451935172080994, -0.5322826504707336, -0.27448251843452454, 0.07982499152421951, -0.709979236125946, -0.13049966096878052, -0.024837903678417206, -0.24563206732273102, 0.2011542022228241, 0.20814765989780426, -0.9185616374015808, 0.45045655965805054, 0.7646567821502686, -0.3291701376438141, 0.3750804662704468, -0.010293868370354176, -0.17464619874954224, -1.1546037197113037, 0.07540220022201538, -0.07681559771299362, -0.10713288933038712, -0.5638553500175476, -0.0746299996972084, -0.3241201639175415, 0.047226808965206146, -0.40497806668281555, 0.6310155987739563, -0.28596433997154236, 0.02066158875823021, -0.11936824768781662, 0.06230854243040085, 0.08305100351572037, 0.5948612689971924, -0.17727479338645935, 0.8110803365707397, 0.3932330310344696, -0.4783708155155182, 0.4089980125427246, 0.6364395022392273, -0.32879161834716797, 0.19817031919956207, -0.9643553495407104, 0.2961594760417938, 0.018236782401800156, 0.6310320496559143, -1.0764573812484741, -0.4217783808708191, 0.6049092411994934, -0.6484569907188416, 0.25157472491264343, -0.028341716155409813, -0.5611335635185242, -0.40462836623191833, -0.3853207528591156, 0.3269037902355194, 0.807280421257019, -0.5172317624092102, 0.4175558388233185, 0.4809328317642212, -0.031740620732307434, -0.6530132293701172, -0.8561206459999084, 0.10386201739311218, -0.26195675134658813, -0.5147800445556641, 0.4343830943107605, -0.14274512231349945, -0.1671188771724701, -0.12644042074680328, 0.19114118814468384, 0.03439893200993538, 0.19587591290473938, 0.37767231464385986, 0.3089386522769928, -0.08658707141876221, -0.21371705830097198, 0.12111252546310425, -0.06503444910049438, -0.07208020985126495, 0.005265575367957354, 0.8340222239494324, -0.2529911696910858, -0.19948434829711914, -0.8858762979507446, 0.09644061326980591, 0.4737014174461365, -0.2418040931224823, 0.6499788761138916, 0.5451515913009644, -0.2919526696205139, 0.2026485651731491, -0.712656557559967, -0.15686582028865814, -0.5378561615943909, 0.46390649676322937, -0.057797253131866455, -0.9045827388763428, 0.4380725920200348, 0.1441868394613266, 0.32613733410835266, 0.6244401335716248, 0.7038750052452087, -0.2253963053226471, 0.8415964245796204, 0.7101631164550781, -0.17032289505004883, 0.5315039157867432, -0.5302602648735046, 0.12602871656417847, -0.8207860589027405, -0.577670156955719, -0.40226975083351135, -0.49985262751579285, -0.7238771319389343, -0.6339852213859558, 0.24176572263240814, 0.08249078691005707, -0.506509006023407, 0.43068480491638184, -0.5072566270828247, 0.2761610746383667, 0.4155905544757843, 0.14637257158756256, 0.18190570175647736, 0.17220474779605865, 0.2684757113456726, 0.060038045048713684, -0.565399706363678, -0.5874963998794556, 1.1406629085540771, 0.5323059558868408, 0.502484917640686, 0.20657092332839966, 0.6366577744483948, 0.12546059489250183, 0.37427711486816406, -0.6546175479888916, 0.5588487386703491, -0.09245682507753372, -0.6692874431610107, -0.17151185870170593, -0.1352057158946991, -0.9229562878608704, 0.13476887345314026, -0.23680785298347473, -0.730348527431488, 0.21248196065425873, -0.0013910564593970776, -0.2695477306842804, 0.3301180899143219, -0.42096343636512756, 0.6063361763954163, -0.31675776839256287, -0.18896859884262085, -0.32034239172935486, -0.781929612159729, 0.5360422134399414, -0.012979582883417606, 0.1838405877351761, -0.3644482493400574, -0.24107149243354797, 0.7775272727012634, -0.5459170937538147, 1.1910974979400635, 0.015872493386268616, -0.2575084865093231, 0.6551828980445862, -0.04846208542585373, 0.5449270009994507, 0.16222679615020752, -0.07599334418773651, 0.5527184009552002, -0.13341124355793, -0.1794600635766983, -0.19057606160640717, 0.46453383564949036, -1.2854195833206177, -0.7251957654953003, -0.2516902685165405, -0.39925459027290344, 0.23150306940078735, 0.11270799487829208, 0.3704671859741211, -0.007952304556965828, -0.03788145259022713, 0.32934850454330444, 0.27177685499191284, -0.41176337003707886, 0.49664804339408875, 0.2894640266895294, -0.12160732597112656, -0.6312475204467773, 0.7881230711936951, -0.18769419193267822, 0.17929646372795105, 0.3720298111438751, 0.1066443920135498, -0.4190351963043213, -0.23898091912269592, -0.5189905762672424, 0.60349041223526, -0.5295023322105408, -0.5361999273300171, -0.5167462229728699, -0.27040189504623413, -0.40309223532676697, -0.036315616220235825, -0.5034502744674683, -0.47955238819122314, -0.8702645301818848, -0.0915091261267662, 0.6873027086257935, 0.7573713064193726, -0.10332072526216507, 0.638976514339447, -0.4663911461830139, 0.27106425166130066, 0.2725893557071686, 0.12637968361377716, 0.020429523661732674, -0.8407551050186157, 0.041261039674282074, 0.1749734729528427, -0.6084938645362854, -0.6938918828964233, 0.5212203860282898, 0.28378742933273315, 0.39227887988090515, 0.37134915590286255, -0.1458689272403717, 0.825025200843811, -0.4273717999458313, 1.0123579502105713, 0.42663198709487915, -0.7905690670013428, 0.5691438317298889, -0.4164588451385498, -0.03722168877720833, 0.3917786478996277, 0.22936561703681946, -0.3717923164367676, -0.29141199588775635, -0.6462912559509277, -0.6768638491630554, 0.7225257158279419, 0.33224794268608093, 0.35693392157554626, -0.038074467331171036, 0.5039035677909851, -0.0720820352435112, 0.15342730283737183, -1.018428921699524, -0.3956984579563141, -0.39373552799224854, -0.11972254514694214, -0.04098713397979736, -0.3578062653541565, -0.07648814469575882, -0.4092923104763031, 0.7729232907295227, -0.09492170810699463, 0.5545660853385925, 0.08302641659975052, 0.1415388584136963, -0.24366459250450134, 0.02914298139512539, 0.5976366400718689, 0.5005682110786438, -0.03286459669470787, -0.15765294432640076, 0.3110993206501007, -0.4891625940799713, 0.1898583471775055, 0.09659336507320404, -0.16543522477149963, -0.2574228346347809, 0.35876065492630005, 0.9397263526916504, 0.17261308431625366, -0.6742345094680786, 0.5155991911888123, 0.023248137906193733, -0.2540125548839569, -0.4148925244808197, 0.171235591173172, 0.3308596909046173, 0.5003852844238281, 0.30212315917015076, -0.16933520138263702, -0.08261219412088394, -0.46002888679504395, -0.09246890246868134, 0.42273664474487305, -0.007010354660451412, -0.5008141994476318, 1.0176719427108765, 0.25480449199676514, -0.4031144678592682, 0.6411058902740479, -0.07481414079666138, -0.4004115164279938, 0.839574933052063, 0.7918373346328735, 0.7328618764877319, -0.1795988529920578, 0.23775051534175873, 0.5541610717773438, 0.43209779262542725, -0.07812157273292542, 0.19400474429130554, -0.001350859529338777, -0.5658577680587769, -0.3364827632904053, -0.7125911116600037, -0.37596046924591064, 0.37820690870285034, -0.3914322853088379, 0.4259848892688751, -0.7045329809188843, -0.28979167342185974, -0.28467249870300293, 0.1594289392232895, -0.561229407787323, 0.03667360916733742, 0.2903399169445038, 0.780706524848938, -0.635699987411499, 0.7649581432342529, 0.5433366298675537, -0.48221614956855774, -0.8550629615783691, -0.20354436337947845, 0.11403190344572067, -1.0225390195846558, 0.43695276975631714, 0.21824707090854645, -0.013441797345876694, 0.13460926711559296, -0.8611065149307251, -1.1405792236328125, 1.5425150394439697, 0.35424482822418213, -0.6647680997848511, -0.0965501070022583, 0.26246586441993713, 0.5381002426147461, -0.3110034465789795, 0.36272141337394714, 0.6999252438545227, 0.4954923391342163, 0.08783751726150513, -1.0600240230560303, 0.1543395221233368, -0.431407630443573, 0.11137605458498001, -0.1547391712665558, -1.2576662302017212, 0.8052024841308594, -0.3163982927799225, -0.17827904224395752, 0.4123401641845703, 0.784273624420166, 0.6320675015449524, 0.17434747517108917, 0.44289764761924744, 0.5886539220809937, 0.7353725433349609, -0.07022196054458618, 1.0761446952819824, -0.2984653413295746, 0.2765752673149109, 0.5990901589393616, -0.16913697123527527, 0.897304892539978, 0.32554522156715393, -0.5422837138175964, 0.651201605796814, 0.8497791886329651, -0.1950872391462326, 0.4328850209712982, 0.015272388234734535, -0.12874017655849457, -0.19147811830043793, -0.37827470898628235, -0.6173300743103027, 0.513525128364563, 0.36967313289642334, -0.16771326959133148, 0.09378395229578018, -0.3715265691280365, 0.19144541025161743, -0.29529687762260437, 0.0438593365252018, 0.7480646967887878, 0.2825870215892792, -0.4892607033252716, 0.9894452691078186, 0.10766912996768951, 0.8767690062522888, -0.6444404125213623, -0.03424617275595665, -0.5534057021141052, 0.10069730877876282, -0.2618890404701233, -0.619950532913208, 0.026536094024777412, 0.21795536577701569, -0.04002955183386803, -0.13479457795619965, 0.5983279347419739, -0.11849704384803772, -0.5603634715080261, 0.48034581542015076, 0.2831505537033081, 0.3145449757575989, 0.23828105628490448, -0.7531569600105286, 0.37401360273361206, 0.18039458990097046, -0.4661095142364502, 0.35251328349113464, 0.18891087174415588, 0.06377635896205902, 0.78690105676651, 0.7553269267082214, -0.15712358057498932, -0.011407065205276012, -0.10009946674108505, 1.0686320066452026, -0.43374308943748474, -0.25557464361190796, -0.8385874629020691, 0.6292045712471008, 0.16569212079048157, -0.4870557487010956, 0.4749597907066345, 0.4307369291782379, 0.7204877138137817, 0.036599889397621155, 0.6536670327186584, -0.2318880558013916, 0.2145899534225464, -0.3038588762283325, 0.7812631726264954, -0.8843855857849121, 0.30418482422828674, -0.16054925322532654, -0.8215360641479492, -0.1529075652360916, 0.7152400016784668, 0.14830100536346436, 0.055474769324064255, 0.2676337957382202, 0.8807474374771118, 0.15484857559204102, -0.16162648797035217, 0.09284649044275284, 0.31858962774276733, 0.4805605113506317, 0.8288977742195129, 0.9957889914512634, -0.7165147066116333, 0.8348790407180786, -0.4439299702644348, -0.15209820866584778, -0.32670700550079346, -0.7476502656936646, -0.8960916996002197, -0.4776124656200409, -0.2586926519870758, -0.293745219707489, -0.1044604554772377, 0.8527688980102539, 0.5536409020423889, -0.5032305717468262, -0.4443439245223999, -0.033195603638887405, 0.05286156013607979, 0.002189265564084053, -0.1726226657629013, 0.17281877994537354, 0.11714748293161392, -0.6873923540115356, 0.5396121144294739, 0.03381874039769173, 0.3674331307411194, -0.18408973515033722, -0.2892219126224518, -0.335823118686676, 0.032271746546030045, 0.5762391090393066, 0.34387433528900146, -0.9705272912979126, -0.1726810783147812, 0.026357727125287056, -0.043968137353658676, 0.21891823410987854, 0.25102612376213074, -0.7015699148178101, -0.06370262801647186, 0.35751792788505554, 0.44125106930732727, 0.6276920437812805, 0.057548630982637405, 0.2091413289308548, -0.5316357612609863, 0.42724087834358215, 0.012889991514384747, 0.28161489963531494, 0.3855992257595062, -0.4569120407104492, 0.6609594821929932, 0.2675861716270447, -0.6594868302345276, -0.922247052192688, 0.01949053630232811, -1.0594995021820068, -0.13705657422542572, 1.2821218967437744, 0.11841928213834763, -0.2392328530550003, 0.23183105885982513, -0.26969316601753235, 0.4982469081878662, -0.4491843581199646, 0.6326552629470825, 0.4132677912712097, -0.03483100235462189, -0.2425205111503601, -0.5732457637786865, 0.3812859356403351, 0.34156104922294617, -0.9253553748130798, -0.010982670821249485, 0.5473771095275879, 0.3523491621017456, 0.14092852175235748, 0.7963297367095947, -0.018085716292262077, 0.26761966943740845, -0.05575917661190033, 0.18332216143608093, -0.0710182785987854, -0.25457242131233215, -0.22317904233932495, -0.2801376283168793, -0.05023982748389244, -0.071615070104599 ]
EleutherAI/pythia-2.8b
EleutherAI
"2023-06-09T00:35:37Z"
13,510
11
transformers
[ "transformers", "pytorch", "safetensors", "gpt_neox", "text-generation", "causal-lm", "pythia", "en", "dataset:EleutherAI/pile", "arxiv:2304.01373", "arxiv:2101.00027", "arxiv:2201.07311", "license:apache-2.0", "endpoints_compatible", "has_space", "text-generation-inference", "region:us" ]
text-generation
"2023-02-13T14:37:12Z"
--- language: - en tags: - pytorch - causal-lm - pythia license: apache-2.0 datasets: - EleutherAI/pile --- The *Pythia Scaling Suite* is a collection of models developed to facilitate interpretability research [(see paper)](https://arxiv.org/pdf/2304.01373.pdf). It contains two sets of eight models of sizes 70M, 160M, 410M, 1B, 1.4B, 2.8B, 6.9B, and 12B. For each size, there are two models: one trained on the Pile, and one trained on the Pile after the dataset has been globally deduplicated. All 8 model sizes are trained on the exact same data, in the exact same order. We also provide 154 intermediate checkpoints per model, hosted on Hugging Face as branches. The Pythia model suite was deliberately designed to promote scientific research on large language models, especially interpretability research. Despite not centering downstream performance as a design goal, we find the models <a href="#evaluations">match or exceed</a> the performance of similar and same-sized models, such as those in the OPT and GPT-Neo suites. <details> <summary style="font-weight:600">Details on previous early release and naming convention.</summary> Previously, we released an early version of the Pythia suite to the public. However, we decided to retrain the model suite to address a few hyperparameter discrepancies. This model card <a href="#changelog">lists the changes</a>; see appendix B in the Pythia paper for further discussion. We found no difference in benchmark performance between the two Pythia versions. The old models are [still available](https://huggingface.co/models?other=pythia_v0), but we suggest the retrained suite if you are just starting to use Pythia.<br> **This is the current release.** Please note that all models in the *Pythia* suite were renamed in January 2023. For clarity, a <a href="#naming-convention-and-parameter-count">table comparing the old and new names</a> is provided in this model card, together with exact parameter counts. </details> <br> # Pythia-2.8B ## Model Details - Developed by: [EleutherAI](http://eleuther.ai) - Model type: Transformer-based Language Model - Language: English - Learn more: [Pythia's GitHub repository](https://github.com/EleutherAI/pythia) for training procedure, config files, and details on how to use. [See paper](https://arxiv.org/pdf/2304.01373.pdf) for more evals and implementation details. - Library: [GPT-NeoX](https://github.com/EleutherAI/gpt-neox) - License: Apache 2.0 - Contact: to ask questions about this model, join the [EleutherAI Discord](https://discord.gg/zBGx3azzUn), and post them in `#release-discussion`. Please read the existing *Pythia* documentation before asking about it in the EleutherAI Discord. For general correspondence: [contact@eleuther. ai](mailto:contact@eleuther.ai). <figure> | Pythia model | Non-Embedding Params | Layers | Model Dim | Heads | Batch Size | Learning Rate | Equivalent Models | | -----------: | -------------------: | :----: | :-------: | :---: | :--------: | :-------------------: | :--------------------: | | 70M | 18,915,328 | 6 | 512 | 8 | 2M | 1.0 x 10<sup>-3</sup> | — | | 160M | 85,056,000 | 12 | 768 | 12 | 2M | 6.0 x 10<sup>-4</sup> | GPT-Neo 125M, OPT-125M | | 410M | 302,311,424 | 24 | 1024 | 16 | 2M | 3.0 x 10<sup>-4</sup> | OPT-350M | | 1.0B | 805,736,448 | 16 | 2048 | 8 | 2M | 3.0 x 10<sup>-4</sup> | — | | 1.4B | 1,208,602,624 | 24 | 2048 | 16 | 2M | 2.0 x 10<sup>-4</sup> | GPT-Neo 1.3B, OPT-1.3B | | 2.8B | 2,517,652,480 | 32 | 2560 | 32 | 2M | 1.6 x 10<sup>-4</sup> | GPT-Neo 2.7B, OPT-2.7B | | 6.9B | 6,444,163,072 | 32 | 4096 | 32 | 2M | 1.2 x 10<sup>-4</sup> | OPT-6.7B | | 12B | 11,327,027,200 | 36 | 5120 | 40 | 2M | 1.2 x 10<sup>-4</sup> | — | <figcaption>Engineering details for the <i>Pythia Suite</i>. Deduped and non-deduped models of a given size have the same hyperparameters. “Equivalent” models have <b>exactly</b> the same architecture, and the same number of non-embedding parameters.</figcaption> </figure> ## Uses and Limitations ### Intended Use The primary intended use of Pythia is research on the behavior, functionality, and limitations of large language models. This suite is intended to provide a controlled setting for performing scientific experiments. We also provide 154 checkpoints per model: initial `step0`, 10 log-spaced checkpoints `step{1,2,4...512}`, and 143 evenly-spaced checkpoints from `step1000` to `step143000`. These checkpoints are hosted on Hugging Face as branches. Note that branch `143000` corresponds exactly to the model checkpoint on the `main` branch of each model. You may also further fine-tune and adapt Pythia-2.8B for deployment, as long as your use is in accordance with the Apache 2.0 license. Pythia models work with the Hugging Face [Transformers Library](https://huggingface.co/docs/transformers/index). If you decide to use pre-trained Pythia-2.8B as a basis for your fine-tuned model, please conduct your own risk and bias assessment. ### Out-of-scope use The Pythia Suite is **not** intended for deployment. It is not a in itself a product and cannot be used for human-facing interactions. For example, the model may generate harmful or offensive text. Please evaluate the risks associated with your particular use case. Pythia models are English-language only, and are not suitable for translation or generating text in other languages. Pythia-2.8B has not been fine-tuned for downstream contexts in which language models are commonly deployed, such as writing genre prose, or commercial chatbots. This means Pythia-2.8B will **not** respond to a given prompt the way a product like ChatGPT does. This is because, unlike this model, ChatGPT was fine-tuned using methods such as Reinforcement Learning from Human Feedback (RLHF) to better “follow” human instructions. ### Limitations and biases The core functionality of a large language model is to take a string of text and predict the next token. The token used by the model need not produce the most “accurate” text. Never rely on Pythia-2.8B to produce factually accurate output. This model was trained on [the Pile](https://pile.eleuther.ai/), a dataset known to contain profanity and texts that are lewd or otherwise offensive. See [Section 6 of the Pile paper](https://arxiv.org/abs/2101.00027) for a discussion of documented biases with regards to gender, religion, and race. Pythia-2.8B may produce socially unacceptable or undesirable text, *even if* the prompt itself does not include anything explicitly offensive. If you plan on using text generated through, for example, the Hosted Inference API, we recommend having a human curate the outputs of this language model before presenting it to other people. Please inform your audience that the text was generated by Pythia-2.8B. ### Quickstart Pythia models can be loaded and used via the following code, demonstrated here for the third `pythia-70m-deduped` checkpoint: ```python from transformers import GPTNeoXForCausalLM, AutoTokenizer model = GPTNeoXForCausalLM.from_pretrained( "EleutherAI/pythia-70m-deduped", revision="step3000", cache_dir="./pythia-70m-deduped/step3000", ) tokenizer = AutoTokenizer.from_pretrained( "EleutherAI/pythia-70m-deduped", revision="step3000", cache_dir="./pythia-70m-deduped/step3000", ) inputs = tokenizer("Hello, I am", return_tensors="pt") tokens = model.generate(**inputs) tokenizer.decode(tokens[0]) ``` Revision/branch `step143000` corresponds exactly to the model checkpoint on the `main` branch of each model.<br> For more information on how to use all Pythia models, see [documentation on GitHub](https://github.com/EleutherAI/pythia). ## Training ### Training data [The Pile](https://pile.eleuther.ai/) is a 825GiB general-purpose dataset in English. It was created by EleutherAI specifically for training large language models. It contains texts from 22 diverse sources, roughly broken down into five categories: academic writing (e.g. arXiv), internet (e.g. CommonCrawl), prose (e.g. Project Gutenberg), dialogue (e.g. YouTube subtitles), and miscellaneous (e.g. GitHub, Enron Emails). See [the Pile paper](https://arxiv.org/abs/2101.00027) for a breakdown of all data sources, methodology, and a discussion of ethical implications. Consult [the datasheet](https://arxiv.org/abs/2201.07311) for more detailed documentation about the Pile and its component datasets. The Pile can be downloaded from the [official website](https://pile.eleuther.ai/), or from a [community mirror](https://the-eye.eu/public/AI/pile/).<br> The Pile was **not** deduplicated before being used to train Pythia-2.8B. ### Training procedure All models were trained on the exact same data, in the exact same order. Each model saw 299,892,736,000 tokens during training, and 143 checkpoints for each model are saved every 2,097,152,000 tokens, spaced evenly throughout training, from `step1000` to `step143000` (which is the same as `main`). In addition, we also provide frequent early checkpoints: `step0` and `step{1,2,4...512}`. This corresponds to training for just under 1 epoch on the Pile for non-deduplicated models, and about 1.5 epochs on the deduplicated Pile. All *Pythia* models trained for 143000 steps at a batch size of 2M (2,097,152 tokens).<br> See [GitHub](https://github.com/EleutherAI/pythia) for more details on training procedure, including [how to reproduce it](https://github.com/EleutherAI/pythia/blob/main/README.md#reproducing-training).<br> Pythia uses the same tokenizer as [GPT-NeoX- 20B](https://huggingface.co/EleutherAI/gpt-neox-20b). ## Evaluations All 16 *Pythia* models were evaluated using the [LM Evaluation Harness](https://github.com/EleutherAI/lm-evaluation-harness). You can access the results by model and step at `results/json/*` in the [GitHub repository](https://github.com/EleutherAI/pythia/tree/main/results/json/).<br> Expand the sections below to see plots of evaluation results for all Pythia and Pythia-deduped models compared with OPT and BLOOM. <details> <summary>LAMBADA – OpenAI</summary> <img src="/EleutherAI/pythia-12b/resolve/main/eval_plots/lambada_openai_v1.png" style="width:auto"/> </details> <details> <summary>Physical Interaction: Question Answering (PIQA)</summary> <img src="/EleutherAI/pythia-12b/resolve/main/eval_plots/piqa_v1.png" style="width:auto"/> </details> <details> <summary>WinoGrande</summary> <img src="/EleutherAI/pythia-12b/resolve/main/eval_plots/winogrande_v1.png" style="width:auto"/> </details> <details> <summary>AI2 Reasoning Challenge—Easy Set</summary> <img src="/EleutherAI/pythia-12b/resolve/main/eval_plots/arc_easy_v1.png" style="width:auto"/> </details> <details> <summary>SciQ</summary> <img src="/EleutherAI/pythia-12b/resolve/main/eval_plots/sciq_v1.png" style="width:auto"/> </details> ## Changelog This section compares differences between previously released [Pythia v0](https://huggingface.co/models?other=pythia_v0) and the current models. See Appendix B of the Pythia paper for further discussion of these changes and the motivation behind them. We found that retraining Pythia had no impact on benchmark performance. - All model sizes are now trained with uniform batch size of 2M tokens. Previously, the models of size 160M, 410M, and 1.4B parameters were trained with batch sizes of 4M tokens. - We added checkpoints at initialization (step 0) and steps {1,2,4,8,16,32,64, 128,256,512} in addition to every 1000 training steps. - Flash Attention was used in the new retrained suite. - We remedied a minor inconsistency that existed in the original suite: all models of size 2.8B parameters or smaller had a learning rate (LR) schedule which decayed to a minimum LR of 10% the starting LR rate, but the 6.9B and 12B models all used an LR schedule which decayed to a minimum LR of 0. In the redone training runs, we rectified this inconsistency: all models now were trained with LR decaying to a minimum of 0.1× their maximum LR. ### Naming convention and parameter count *Pythia* models were renamed in January 2023. It is possible that the old naming convention still persists in some documentation by accident. The current naming convention (70M, 160M, etc.) is based on total parameter count. <figure style="width:32em"> | current Pythia suffix | old suffix | total params | non-embedding params | | --------------------: | ---------: | -------------: | -------------------: | | 70M | 19M | 70,426,624 | 18,915,328 | | 160M | 125M | 162,322,944 | 85,056,000 | | 410M | 350M | 405,334,016 | 302,311,424 | | 1B | 800M | 1,011,781,632 | 805,736,448 | | 1.4B | 1.3B | 1,414,647,808 | 1,208,602,624 | | 2.8B | 2.7B | 2,775,208,960 | 2,517,652,480 | | 6.9B | 6.7B | 6,857,302,016 | 6,444,163,072 | | 12B | 13B | 11,846,072,320 | 11,327,027,200 | </figure>
[ -0.3191978931427002, -0.7972860932350159, 0.3297581076622009, 0.06090519577264786, -0.2497035413980484, -0.20651517808437347, -0.23700454831123352, -0.4760669469833374, 0.20190085470676422, 0.160954549908638, -0.3486606180667877, -0.271505206823349, -0.44102442264556885, -0.08443346619606018, -0.4564918875694275, 1.1597089767456055, -0.13787133991718292, -0.14490236341953278, 0.10945134609937668, -0.08223633468151093, -0.061376217752695084, -0.5303148031234741, -0.44005918502807617, -0.405769944190979, 0.6567160487174988, 0.17524020373821259, 0.8851591348648071, 0.5792980194091797, 0.1668584793806076, 0.28253552317619324, -0.3629853427410126, -0.05063921958208084, -0.162776380777359, -0.08919801563024521, -0.014608355239033699, -0.2814333438873291, -0.7065982222557068, 0.026335259899497032, 0.6666595339775085, 0.6467017531394958, -0.18484225869178772, 0.2580426335334778, -0.016010228544473648, 0.3623081147670746, -0.5195575952529907, 0.03391043841838837, -0.30982962250709534, -0.17616452276706696, -0.09561053663492203, 0.14266498386859894, -0.3911581039428711, -0.33499428629875183, 0.4623841345310211, -0.6770411729812622, 0.2559995949268341, 0.10652060806751251, 1.2107065916061401, -0.11959867179393768, -0.4334227442741394, -0.07471853494644165, -0.6990228891372681, 0.6715323328971863, -0.7133166790008545, 0.3382290005683899, 0.28665998578071594, 0.17053833603858948, -0.04674718528985977, -0.919888973236084, -0.5424580574035645, -0.21390853822231293, -0.1315910369157791, -0.027141878381371498, -0.6232115030288696, 0.020435627549886703, 0.5041487216949463, 0.6376882791519165, -0.8510816693305969, -0.022598909214138985, -0.3956183195114136, -0.35091787576675415, 0.3518886864185333, 0.03806797415018082, 0.4611634910106659, -0.3001061975955963, 0.014661801978945732, -0.39316874742507935, -0.6766524314880371, -0.2225160300731659, 0.5643121600151062, 0.057220179587602615, -0.38377439975738525, 0.5067939162254333, -0.3593342900276184, 0.5369365215301514, -0.07458128780126572, 0.2625298500061035, 0.4444774091243744, -0.19761084020137787, -0.4877146780490875, -0.11886259913444519, 0.939436137676239, 0.16401661932468414, 0.2171366661787033, -0.016560738906264305, -0.044047676026821136, 0.0726706013083458, 0.035457488149404526, -1.1362030506134033, -0.8283801078796387, 0.25545600056648254, -0.39956337213516235, -0.43353742361068726, -0.17277146875858307, -0.9469498991966248, -0.2038366198539734, -0.183069109916687, 0.5615159869194031, -0.4981018900871277, -0.7377846837043762, -0.1812441498041153, -0.00048372516175732017, 0.2306520640850067, 0.37121567130088806, -0.9713501930236816, 0.4138886034488678, 0.4508785605430603, 1.039047122001648, 0.23034678399562836, -0.5676584839820862, -0.2055094689130783, -0.2714894711971283, -0.12853245437145233, 0.38374337553977966, -0.11002927273511887, -0.18439264595508575, -0.10561870038509369, 0.16461026668548584, -0.10051488876342773, -0.3622798025608063, 0.3937385678291321, -0.40591686964035034, 0.26905086636543274, -0.2804068326950073, -0.44355249404907227, -0.3760952353477478, 0.06866618245840073, -0.6200284361839294, 0.8805330991744995, 0.24852286279201508, -0.968612790107727, 0.2195996642112732, -0.21457333862781525, -0.06442367285490036, -0.052817124873399734, 0.1879233866930008, -0.7048707604408264, 0.046379946172237396, 0.3514740467071533, 0.03029644303023815, -0.40352386236190796, 0.19516444206237793, -0.2626173496246338, -0.4331080913543701, 0.17971576750278473, -0.5148592591285706, 0.9231125116348267, 0.1925276666879654, -0.6648788452148438, 0.27175235748291016, -0.5526594519615173, 0.23619376122951508, 0.24945779144763947, -0.34483078122138977, 0.06206102669239044, -0.172842338681221, 0.4016364812850952, 0.21713131666183472, 0.16913744807243347, -0.3478514850139618, 0.2837594747543335, -0.5176888704299927, 0.7465527653694153, 0.7427225708961487, -0.08090092986822128, 0.4763190746307373, -0.42996400594711304, 0.4445778429508209, 0.040154267102479935, 0.19451971352100372, -0.05554855242371559, -0.650321900844574, -0.9996938109397888, -0.2668052613735199, 0.3782949149608612, 0.30681976675987244, -0.46166136860847473, 0.4259328842163086, -0.23507905006408691, -0.8802412152290344, -0.17831245064735413, -0.0851602777838707, 0.43409156799316406, 0.27601858973503113, 0.4290224015712738, -0.17398597300052643, -0.5487584471702576, -0.8982638716697693, -0.22516104578971863, -0.44769778847694397, 0.12964050471782684, 0.19710421562194824, 0.9512321352958679, -0.10576725006103516, 0.578449547290802, -0.35768795013427734, 0.25731974840164185, -0.3631046414375305, 0.17892275750637054, 0.4282139539718628, 0.6085050106048584, 0.40384814143180847, -0.5659741163253784, -0.3858067989349365, 0.030587520450353622, -0.5987243056297302, 0.08696498721837997, 0.05170765891671181, -0.3205319046974182, 0.31170812249183655, 0.07184033840894699, -1.0056610107421875, 0.4696224331855774, 0.6395175457000732, -0.5552065968513489, 0.8152079582214355, -0.32818883657455444, -0.02976411208510399, -1.0701637268066406, 0.25890693068504333, 0.14203613996505737, -0.2247031033039093, -0.6248664259910583, 0.10002924501895905, 0.19986554980278015, -0.1995088905096054, -0.4088906943798065, 0.6155791878700256, -0.5493590235710144, -0.1811017096042633, -0.2289724349975586, 0.06004825979471207, -0.03264791518449783, 0.6320247054100037, 0.14695090055465698, 0.584413468837738, 0.8055130839347839, -0.7541775107383728, 0.4327297508716583, 0.22193503379821777, -0.26783859729766846, 0.3684937059879303, -0.8993331789970398, 0.19252116978168488, 0.0775010734796524, 0.4453127086162567, -0.5730608105659485, -0.3836926221847534, 0.5414698123931885, -0.6019189357757568, 0.15652404725551605, -0.42237815260887146, -0.5340037941932678, -0.4321154057979584, -0.18386217951774597, 0.6117940545082092, 0.7974451184272766, -0.6148748993873596, 0.6938300132751465, 0.053846195340156555, 0.12199164927005768, -0.3602215051651001, -0.572750985622406, -0.2566157281398773, -0.5217025279998779, -0.6716808676719666, 0.376414954662323, 0.16690021753311157, -0.18286685645580292, 0.011123083531856537, -0.0008596279076300561, 0.0997873842716217, -0.06676953285932541, 0.33005085587501526, 0.33935701847076416, -0.04269963502883911, 0.0032690023072063923, -0.11827781051397324, -0.13672232627868652, 0.0019250246696174145, -0.5292673110961914, 0.9495043754577637, -0.2765856683254242, -0.17609962821006775, -0.823199450969696, 0.010058305226266384, 0.8957631587982178, -0.4329618513584137, 0.8935339450836182, 0.6296271681785583, -0.7184129357337952, 0.16045379638671875, -0.37722042202949524, -0.29488030076026917, -0.4398176670074463, 0.688843846321106, -0.2548142075538635, -0.36743542551994324, 0.6268487572669983, 0.2831001579761505, 0.2951676845550537, 0.5745018720626831, 0.7536116242408752, 0.20421992242336273, 1.2068419456481934, 0.4555637240409851, -0.1509474217891693, 0.635277271270752, -0.52385014295578, 0.27416670322418213, -1.136783242225647, -0.21092982590198517, -0.5032597184181213, -0.2515328824520111, -0.9595934748649597, -0.304879367351532, 0.32978367805480957, 0.24612756073474884, -0.7440649271011353, 0.5640555024147034, -0.550671398639679, 0.06030624732375145, 0.658556342124939, 0.2670381963253021, 0.15400430560112, 0.22352764010429382, 0.08439331501722336, -0.07106968015432358, -0.6570523381233215, -0.33054089546203613, 1.2645729780197144, 0.518261730670929, 0.5711615681648254, 0.31994521617889404, 0.706798255443573, -0.14262567460536957, 0.24834325909614563, -0.7129083275794983, 0.40207338333129883, 0.3440924286842346, -0.7293673157691956, -0.20201678574085236, -0.7650859355926514, -0.9329651594161987, 0.5045028924942017, 0.08444226533174515, -1.1462947130203247, 0.24664750695228577, 0.23970605432987213, -0.38723525404930115, 0.4755415618419647, -0.6447318196296692, 1.0069292783737183, -0.2271324098110199, -0.49325138330459595, -0.3591236174106598, -0.3255857229232788, 0.23252828419208527, 0.3640577793121338, 0.1222415417432785, 0.0903584286570549, 0.3009577691555023, 1.0149500370025635, -0.7009813785552979, 0.6484708786010742, -0.12837329506874084, 0.1650570034980774, 0.34937524795532227, 0.2809488773345947, 0.6985054612159729, 0.14434345066547394, 0.13869453966617584, -0.05021997541189194, 0.1569155752658844, -0.5751957893371582, -0.40940630435943604, 0.9175081849098206, -1.1334720849990845, -0.37048959732055664, -0.8042436838150024, -0.5963820219039917, 0.10791786015033722, 0.1887091100215912, 0.4437065124511719, 0.6593712568283081, -0.016206227242946625, 0.000740976189263165, 0.5999520421028137, -0.48962533473968506, 0.3536866009235382, 0.18832501769065857, -0.4898409843444824, -0.5345828533172607, 1.0106971263885498, 0.028226543217897415, 0.34192508459091187, -0.0008731058333069086, 0.2254892736673355, -0.4127347767353058, -0.4597683548927307, -0.6231217384338379, 0.5496333837509155, -0.7301508188247681, 0.006123917642980814, -0.7149317264556885, -0.0305993240326643, -0.4611023962497711, 0.1077154353260994, -0.41124990582466125, -0.380772203207016, -0.24384178221225739, -0.028166571632027626, 0.5925753116607666, 0.49022769927978516, 0.09671017527580261, 0.34971871972084045, -0.5297294855117798, -0.059799958020448685, 0.22753556072711945, 0.09004345536231995, 0.12239524722099304, -0.9294579029083252, -0.11644302308559418, 0.125556081533432, -0.44229844212532043, -1.1637787818908691, 0.5032844543457031, -0.04603054001927376, 0.3389657139778137, 0.07213440537452698, -0.25103631615638733, 0.5910206437110901, -0.08269956707954407, 0.6813674569129944, 0.17264147102832794, -1.01593017578125, 0.5610419511795044, -0.5079895853996277, 0.2889464497566223, 0.34593692421913147, 0.3336588740348816, -0.7272103428840637, -0.07725407183170319, -1.0077462196350098, -1.0972977876663208, 0.7586066126823425, 0.514199435710907, 0.16738149523735046, 0.12962941825389862, 0.4171251356601715, -0.48348671197891235, 0.1578582376241684, -1.0313076972961426, -0.30512017011642456, -0.2641110420227051, -0.08646511286497116, 0.16768795251846313, -0.054973047226667404, 0.05730040371417999, -0.5572763681411743, 1.0229954719543457, 0.0553213432431221, 0.36109355092048645, 0.28367242217063904, -0.3933468461036682, -0.12311794608831406, -0.05802161619067192, 0.1569136530160904, 0.7616687417030334, -0.12400718033313751, 0.05200712010264397, 0.2253909856081009, -0.5568656325340271, 0.041125740855932236, 0.17869073152542114, -0.39242005348205566, -0.07303415238857269, 0.19138486683368683, 0.8898747563362122, 0.1460954248905182, -0.3981461822986603, 0.2384459525346756, -0.033392153680324554, -0.07950448989868164, -0.3096117377281189, -0.18354423344135284, 0.18354178965091705, 0.20920971035957336, -0.028342455625534058, -0.17532074451446533, 0.0008617683197371662, -0.8978754878044128, 0.05186707153916359, 0.18435843288898468, -0.1461980938911438, -0.42105525732040405, 0.5950092077255249, 0.039811789989471436, -0.20445500314235687, 1.1481598615646362, -0.26821139454841614, -0.6874340176582336, 0.7784393429756165, 0.510817289352417, 0.7322089076042175, -0.19798430800437927, 0.3573988378047943, 0.9008273482322693, 0.3209153711795807, -0.21003618836402893, 0.0726906880736351, 0.11398284137248993, -0.5121868252754211, -0.09516097605228424, -0.8055528998374939, -0.23270361125469208, 0.2436644285917282, -0.6012552976608276, 0.43377983570098877, -0.6516104936599731, -0.09102874994277954, -0.03523101285099983, 0.24584974348545074, -0.56817626953125, 0.31451132893562317, 0.1636846661567688, 0.7154228687286377, -0.9400565028190613, 0.813329815864563, 0.6615147590637207, -0.7338670492172241, -1.1314586400985718, 0.026058325543999672, 0.045053571462631226, -0.43816879391670227, 0.14050254225730896, 0.21648499369621277, 0.22978076338768005, 0.16220778226852417, -0.28619930148124695, -0.8903742432594299, 1.3195562362670898, 0.22843877971172333, -0.670233428478241, -0.2897697389125824, -0.13397201895713806, 0.5478062629699707, 0.06740440428256989, 0.7395216822624207, 0.731599748134613, 0.4192027151584625, 0.08046619594097137, -1.0761592388153076, 0.36626049876213074, -0.36207467317581177, -0.046172551810741425, 0.23847581446170807, -0.7051230072975159, 1.302077293395996, -0.08889072388410568, -0.009486667811870575, 0.43878307938575745, 0.6356417536735535, 0.4192662537097931, -0.10218571126461029, 0.34862300753593445, 0.7918410897254944, 0.9026917815208435, -0.3881469964981079, 1.2631149291992188, -0.3036113679409027, 0.7909236550331116, 0.8655412197113037, 0.2029074877500534, 0.5272013545036316, 0.4052107632160187, -0.3852168619632721, 0.5322251319885254, 0.8691524267196655, -0.08813612163066864, 0.1905086487531662, 0.24841932952404022, -0.28955256938934326, -0.26382383704185486, 0.10270920395851135, -0.6099840998649597, 0.17805472016334534, 0.14890557527542114, -0.5763118267059326, -0.1921497881412506, -0.35585662722587585, 0.37086015939712524, -0.4272884726524353, -0.2343216985464096, 0.2575337588787079, 0.11121232807636261, -0.652642548084259, 0.6080756187438965, 0.2606067955493927, 0.549863874912262, -0.44621774554252625, 0.15662866830825806, -0.15702207386493683, 0.3136003315448761, -0.3655817210674286, -0.4270087778568268, 0.07889366894960403, 0.0011638951255008578, 0.06408407539129257, 0.15689265727996826, 0.41533586382865906, -0.14157739281654358, -0.5783921480178833, 0.19511723518371582, 0.4889644980430603, 0.27897924184799194, -0.4321407377719879, -0.6890577673912048, 0.10044047236442566, -0.1637917459011078, -0.5412209630012512, 0.44309189915657043, 0.2552764415740967, -0.1422915905714035, 0.5790137052536011, 0.6493352651596069, 0.03613545000553131, -0.0025340099819004536, 0.15228316187858582, 0.9886357188224792, -0.4459889233112335, -0.49362263083457947, -0.9061713814735413, 0.48564445972442627, -0.0007568363798782229, -0.6884109973907471, 0.8647651076316833, 0.5685729384422302, 0.7029544711112976, 0.2815103828907013, 0.6059332489967346, -0.4570724666118622, -0.011750386096537113, -0.3021447956562042, 0.6665663123130798, -0.5009806156158447, 0.018078524619340897, -0.4896640479564667, -1.1563103199005127, -0.0590679831802845, 0.9609775543212891, -0.5284837484359741, 0.41457346081733704, 0.822532594203949, 0.8237690925598145, -0.08345984667539597, 0.09371359646320343, 0.04073486849665642, 0.3087190091609955, 0.5258435010910034, 0.9398430585861206, 0.8908441662788391, -0.7197380661964417, 0.5505422353744507, -0.5009125471115112, -0.27794012427330017, -0.1649407148361206, -0.46469244360923767, -0.8650822043418884, -0.4581424295902252, -0.4943099319934845, -0.7814944982528687, 0.029459085315465927, 0.9131612181663513, 0.7627940773963928, -0.6272537112236023, -0.16280093789100647, -0.5314598679542542, 0.035898759961128235, -0.25088512897491455, -0.23095948994159698, 0.44364646077156067, 0.14234021306037903, -0.9475752115249634, -0.043339237570762634, -0.15280136466026306, 0.11599435657262802, -0.4259437024593353, -0.31809747219085693, -0.16499671339988708, -0.12249237298965454, 0.06220751628279686, 0.3318574130535126, -0.5387482643127441, -0.2724752128124237, 0.012226774357259274, 0.07005264610052109, 0.009834096767008305, 0.7238455414772034, -0.5559912919998169, 0.11205518245697021, 0.6077410578727722, 0.09747128933668137, 0.8199427723884583, -0.28485071659088135, 0.41389474272727966, -0.2535347044467926, 0.35452380776405334, 0.26557135581970215, 0.6461936831474304, 0.34374865889549255, -0.2672451138496399, 0.1585613191127777, 0.4156430959701538, -0.7422088384628296, -0.8812686204910278, 0.36856359243392944, -0.7048244476318359, -0.07411235570907593, 1.2808727025985718, -0.2785665690898895, -0.4041265845298767, 0.06470430642366409, -0.1929793506860733, 0.5521194338798523, -0.2984582781791687, 0.6598102450370789, 0.6272233128547668, 0.07387518882751465, -0.22816911339759827, -0.6633496880531311, 0.38366636633872986, 0.6813375353813171, -0.8190590739250183, 0.38460367918014526, 0.6083361506462097, 0.6117740273475647, 0.23853790760040283, 0.592377245426178, -0.2980409860610962, 0.645336389541626, 0.09777899086475372, 0.07250474393367767, 0.02522721141576767, -0.4917678236961365, -0.43550539016723633, -0.14962339401245117, 0.23354923725128174, 0.04279173165559769 ]
NousResearch/Nous-Capybara-7B-V1
NousResearch
"2023-11-27T22:21:15Z"
13,508
21
transformers
[ "transformers", "pytorch", "llama", "text-generation", "llama-2", "sft", "eng", "dataset:LDJnr/LessWrong-Amplify-Instruct", "dataset:LDJnr/Pure-Dove", "dataset:LDJnr/Verified-Camel", "license:mit", "endpoints_compatible", "text-generation-inference", "region:us" ]
text-generation
"2023-09-20T01:08:27Z"
--- language: - eng tags: - llama-2 - sft license: - mit datasets: - LDJnr/LessWrong-Amplify-Instruct - LDJnr/Pure-Dove - LDJnr/Verified-Camel --- ## **Nous-Capybara-7B V1** **MUCH BETTER MISTRAL BASED VERSION IS OUT NOW AS CAPYBARA V1.9** The Capybara series is made by fine-tuning on data that is created by Nous with our novel data synthesis technique called Amplify-instruct, the seed distribution and synthesis method are comprised of a synergistic combination of top performing existing data synthesis techniques and distributions used for SOTA models such as Airoboros, Evol-Instruct, Orca, Vicuna, Know_Logic, Lamini, FLASK and others, all into one lean holistically formed dataset and model. The seed instructions used for the start of synthesized conversations are largely based on highly datasets like Airoboros, Know logic, EverythingLM, GPTeacher and even entirely new seed instructions derived from posts on the website LessWrong, as well as being supplemented with certain in-house multi-turn datasets like Dove(A successor to Puffin). While performing great in it's current state, the current dataset used for fine-tuning is entirely contained within 20K training examples, mostly comprised of newly synthesized conversation tokens that have never previously been used for AI training to our knowledge. This small fine-tune dataset has significant implications for how we'll be able to scale model abilities in the future! This model is currently 20K examples while matching benchmarks of notable 300K example datasets that are 10 times the size! ## Process of creation and special thank yous! This model was fine-tuned by Nous Research, with LDJ leading the training and dataset curation, along with significant dataset formation contributions by J-Supha, Also thank you to Emozilla for also assisting to expedite the training experimentation process. Special thank you to **A16Z** for sponsoring our training, as well as **Yield Protocol** for their support in resources during R&D of aspects outside of training, such as dataset development/synthesis. ## Thank you to those of you that have indirectly contributed! While most of the tokens within Capybara are newly synthsized and part of datasets like Puffin/Dove, we would like to credit the single-turn datasets we leveraged as seeds that are used to generate the multi-turn data as part of the Amplify-Instruct synthesis. The datasets shown in green below are datasets that we sampled from to curate seeds that are used during Amplify-Instruct synthesis for this project. ![Capybara](https://i.imgur.com/yB58OoD.jpeg) ## Model Training Nous-Capybara 7B is a new model trained for multiple epochs on a dataset of roughly 20,000 carefully curated conversational examples, most of which are comprised of entirely new in-house synthesized tokens that previously didn't exist on HuggingFace. Additional data came from manually curated CamelAI data, with the help of volunteers ranging from former Physics PhD's, Mathematicians, Biologists and more! ## Prompt Format The reccomended model usage is: ``` USER: ASSISTANT: ``` ## Notable Features: - The first Nous model trained on over 10,000 multi-turn conversations. - Over 1,000 tokens average per conversation example and multiple back and forth turns per conversation! Most models are still trained for only single-turn conversations and less than 300 tokens per example! - Able to effectively do complex summaries of advanced topics and studies. - Ability to recall information upto late 2022 without internet. - Includes a portion of conversational data synthesized from less wrong posts, discussing very in-depth about the nature of rationality, reasoning, self-improvement and related concepts. ## Example Outputs!: ![Capybara](https://img001.prntscr.com/file/img001/T9yYxR1xQSaK_UGdy3t2Cw.png) ![Capybara](https://img001.prntscr.com/file/img001/DQXqmKbsQQOIcgny1eoGNA.png) ![Capybara](https://img001.prntscr.com/file/img001/85X3L9ZxTsOKo3fUQ7GRVA.png) ## Benchmarks! (Important to note that all mentioned benchmarks are single-turn and don't test multi-turn capabilities, Capybara should excel even further at multi-turn conversational tasks than what benchmark comparisons show.) ![Capybara](https://i.imgur.com/n8lkmyK.png) ## Future Changes This is a relatively early build amongst the grand plans for the future of Capybara! [IT IS NOW RECCOMENDED TO USE CAPYBARA V1.9 FOR SIGNIFICANTLY BETTER OVERALL CAPABILITIES] ## Future model sizes We plan on releasing a 3B, 13B and 70B version, as well as a potential 1B version based on phi-1.5 or similar architectures. ## How you can help! In the near future we plan on leveraging the help of domain specific expert volunteers to eliminate any mathematically/verifiably incorrect answers from our training curations. If you have at-least a bachelors in mathematics, physics, biology or chemistry and would like to volunteer even just 30 minutes of your expertise time, please contact LDJ on discord! ## Dataset contamination. We checked for 100%, 99%, 98% and 97% similarity matches between our data and many popular benchmarks, we found no matches! The following are benchmarks we checked for contamination for: - HumanEval - AGIEval - TruthfulQA - MMLU - GPT4All ``` @article{daniele2023amplify-instruct, title={Amplify-Instruct: Synthetically Generated Diverse Multi-turn Conversations for Effecient LLM Training.}, author={Daniele, Luigi and Suphavadeeprasit}, journal={arXiv preprint arXiv:(comming soon)}, year={2023} } ```
[ -0.5852537155151367, -0.7455556988716125, -0.05083534121513367, 0.25663790106773376, 0.20844589173793793, 0.1127690002322197, -0.26331162452697754, -0.5676175355911255, 0.4727615416049957, 0.5059409737586975, -0.5146031975746155, -0.09320500493049622, -0.29979208111763, -0.21602866053581238, -0.5174927115440369, 1.432876706123352, 0.3378277122974396, 0.0879197046160698, -0.09482301771640778, -0.36097392439842224, -0.5637733340263367, -0.39218869805336, -0.7602999806404114, -0.4341506063938141, 0.6771243810653687, 0.6437639594078064, 0.44950777292251587, 0.38601797819137573, 0.22727519273757935, 0.22889205813407898, -0.19613395631313324, 0.32993796467781067, -0.6232173442840576, -0.09680233150720596, 0.17609797418117523, -0.2755185067653656, -0.6919886469841003, 0.27010270953178406, 0.20449917018413544, 0.77571702003479, -0.19464515149593353, 0.23272164165973663, -0.051166974008083344, 0.4196438193321228, -0.6725061535835266, 0.03709956631064415, -0.8652032613754272, -0.20839640498161316, -0.18283957242965698, 0.18944832682609558, -0.3520624041557312, -0.40326574444770813, -0.07656485587358475, -0.8052310347557068, 0.41947391629219055, 0.22397321462631226, 1.0287971496582031, -0.20830418169498444, -0.19771897792816162, -0.2863757610321045, -0.4513331949710846, 0.855732262134552, -0.708120584487915, 0.43442943692207336, 0.11675426363945007, 0.2764820456504822, -0.3707236349582672, -0.5971537828445435, -0.7747207880020142, -0.5820799469947815, 0.16177953779697418, 0.17399434745311737, -0.05058217793703079, -0.05373147502541542, 0.3935667872428894, 0.688183069229126, -0.34018999338150024, 0.05031459033489227, -0.7565333247184753, -0.07818301022052765, 0.6045676469802856, 0.11281546205282211, 0.09973503649234772, -0.052262697368860245, -0.3452520966529846, -0.42940863966941833, -0.6640364527702332, 0.18431667983531952, 0.39888307452201843, 0.12715944647789001, -0.34155353903770447, 0.27161648869514465, -0.41890549659729004, 0.3357296288013458, 0.15371212363243103, -0.0512014776468277, 0.3224177956581116, -0.35229113698005676, -0.2567574679851532, -0.22942012548446655, 1.1535786390304565, 0.20396733283996582, 0.04852224141359329, -0.11313888430595398, 0.11690555512905121, 0.03180176019668579, 0.3449886739253998, -0.7512475848197937, -0.4557574987411499, 0.40480050444602966, -0.24783995747566223, -0.4576461613178253, -0.17972475290298462, -0.7997744679450989, -0.30841943621635437, -0.11255839467048645, 0.34346330165863037, -0.8214518427848816, -0.32024917006492615, 0.392514705657959, -0.21051397919654846, 0.3632062077522278, 0.47358420491218567, -1.0903490781784058, 0.37464195489883423, 0.3899916112422943, 0.785531759262085, -0.10969819128513336, -0.4793504774570465, -0.1442674696445465, -0.16677504777908325, -0.48727259039878845, 0.5979344248771667, -0.2295687347650528, -0.2004140019416809, -0.2165181189775467, -0.164100781083107, -0.00038357029552571476, -0.549609363079071, 0.779150128364563, -0.1719876229763031, 0.16328655183315277, -0.3239043056964874, -0.19701388478279114, -0.20461803674697876, 0.32098618149757385, -0.5836829543113708, 1.029682993888855, -0.01518059242516756, -0.736134946346283, 0.21422451734542847, -0.7459017038345337, -0.45690441131591797, -0.22430455684661865, -0.06375883519649506, -0.49287211894989014, -0.15031610429286957, 0.3385128378868103, 0.3267146646976471, -0.3404632806777954, 0.06807444989681244, -0.5224198698997498, 0.08217459172010422, 0.6146761775016785, -0.3955555856227875, 0.7879388332366943, 0.23052284121513367, -0.10062646865844727, -0.014876076020300388, -0.8473513722419739, 0.06183427572250366, 0.16082598268985748, 0.0022292372304946184, 0.10943634808063507, -0.44640013575553894, -0.10280521959066391, -0.03600728139281273, 0.28972288966178894, -0.661693274974823, 0.5043017864227295, -0.37491846084594727, 0.6707355976104736, 0.4509524405002594, -0.01398235373198986, 0.38829293847084045, -0.743216335773468, 0.32854798436164856, -0.11964304745197296, 0.6543676257133484, -0.3527272939682007, -0.6301072835922241, -1.1721609830856323, -0.42558908462524414, 0.09158245474100113, 0.33711132407188416, -0.3436640799045563, 0.07067117840051651, 0.054117992520332336, -1.0532019138336182, -0.43381467461586, -0.13737677037715912, 0.42115068435668945, 0.42060327529907227, 0.5144882202148438, -0.2674592435359955, -0.5693436861038208, -0.8585798144340515, 0.037541959434747696, -0.05938234180212021, 0.13403737545013428, 0.3777429461479187, 0.5329228639602661, -0.05282904580235481, 0.7302626371383667, -0.5634621977806091, -0.0499434731900692, -0.3505156636238098, 0.11952531337738037, 0.6131982207298279, 0.6276354193687439, 0.5328072309494019, -0.37153160572052, -0.22240428626537323, -0.0009943949989974499, -0.7398845553398132, 0.11865565925836563, -0.26114019751548767, -0.3744902014732361, -0.2565597891807556, 0.22656512260437012, -0.9567044377326965, 0.29891881346702576, 0.39659616351127625, 0.24411429464817047, 0.5434726476669312, -0.20889028906822205, 0.2627078592777252, -0.6910054087638855, 0.2844720780849457, -0.27470454573631287, 0.05405981466174126, -0.964207649230957, -0.05575832724571228, 0.13440057635307312, -0.05215895175933838, -0.4261362552642822, 0.4835089445114136, -0.4392813742160797, 0.2343498021364212, -0.18818652629852295, 0.0990610420703888, 0.11558037996292114, 0.6261957883834839, -0.28751617670059204, 0.6699116230010986, 0.5635261535644531, -0.9774736166000366, 0.4220868647098541, 0.743766188621521, -0.18630702793598175, 0.3655231297016144, -1.0275152921676636, 0.23235227167606354, 0.1952885091304779, 0.23880316317081451, -0.842499852180481, -0.25016623735427856, 0.33717080950737, -0.8580048680305481, 0.37379783391952515, 0.060671109706163406, -0.06580128520727158, -0.5434260964393616, -0.511353611946106, 0.2622033655643463, 0.44754675030708313, -0.5293506979942322, 0.09874733537435532, 0.4217240512371063, 0.11616409569978714, -0.7039496898651123, -0.48333269357681274, 0.01251216046512127, -0.24416887760162354, -0.5923862457275391, 0.36960628628730774, -0.25014179944992065, 0.06230819597840309, -0.6546209454536438, -0.09618131816387177, 0.07619640231132507, -0.02763645350933075, 0.549263060092926, 0.34149888157844543, 0.19728291034698486, 0.04400434345006943, -0.0041016023606061935, 0.041420623660087585, -0.10976271331310272, 0.01645173318684101, 0.7312885522842407, -0.04787689074873924, -0.1772393435239792, -0.4934234023094177, 0.030093491077423096, 0.7839046716690063, -0.3536410629749298, 0.6842355728149414, 0.4629074037075043, -0.27873432636260986, -0.024925770238041878, -0.7971429824829102, -0.5586827397346497, -0.47018563747406006, 0.1366608589887619, -0.3706081509590149, -0.6015312671661377, 0.417300820350647, 0.23732946813106537, 0.23030808568000793, 0.39831095933914185, 0.5454327464103699, -0.08036550879478455, 0.606899082660675, 0.3857921361923218, -0.2261083722114563, 0.5808284878730774, -0.6241057515144348, 0.24013513326644897, -1.0163865089416504, -0.5164791941642761, -0.553093433380127, -0.10750636458396912, -0.7526562809944153, -0.2727881371974945, 0.44447997212409973, 0.18706072866916656, -0.30991557240486145, 0.6134091019630432, -0.5998641848564148, 0.06615415215492249, 0.7171595096588135, 0.16974902153015137, 0.03558385744690895, -0.09678999334573746, 0.32795584201812744, 0.1059221625328064, -0.805164635181427, -0.4067360460758209, 1.3739179372787476, 0.25424614548683167, 0.6631234884262085, -0.15397341549396515, 0.5746413469314575, 0.129060760140419, 0.3275989294052124, -0.5183919072151184, 0.5257706642150879, 0.12456300854682922, -0.8608177900314331, -0.2897476851940155, -0.31229937076568604, -1.2325366735458374, 0.20525074005126953, -0.3840225338935852, -0.7238906025886536, -0.0628555566072464, 0.05497727543115616, -0.3787246346473694, 0.21605485677719116, -0.5532772541046143, 0.9701850414276123, -0.21941454708576202, -0.5110496282577515, -0.29202327132225037, -0.5225610733032227, 0.44385114312171936, 0.2461315095424652, 0.18429377675056458, -0.31578072905540466, 0.2781307101249695, 0.8569996356964111, -0.5599642992019653, 0.7198027968406677, 0.1230374351143837, 0.2627284824848175, 0.46674028038978577, 0.0037596700713038445, 0.3913447856903076, 0.3424895107746124, 0.060152892023324966, 0.37689805030822754, 0.12958233058452606, -0.45403626561164856, -0.23567761480808258, 0.8524701595306396, -1.079116702079773, -0.3621845543384552, -0.5292696952819824, -0.5518491268157959, -0.13377128541469574, 0.09734863042831421, 0.2984568774700165, 0.41334179043769836, -0.17641900479793549, 0.1050996482372284, 0.7625430822372437, -0.5064852237701416, 0.4027957618236542, 0.46497565507888794, -0.09689965844154358, -0.6039623022079468, 0.9164512753486633, 0.06325627863407135, 0.24458755552768707, 0.34788796305656433, 0.14804989099502563, -0.09878450632095337, -0.45679137110710144, -0.378025621175766, 0.4181152284145355, -0.24883371591567993, -0.3672915995121002, -0.9344652891159058, -0.2190345972776413, -0.6638718843460083, 0.049074508249759674, -0.7252603769302368, -0.520026445388794, -0.23915062844753265, 0.1594618856906891, 0.6553592085838318, 0.7650283575057983, -0.1456107795238495, 0.3121998906135559, -0.5238940715789795, 0.40547528862953186, 0.40235406160354614, 0.09508555382490158, 0.029465438798069954, -0.8274880051612854, -0.1373986005783081, 0.2334945797920227, -0.8778204321861267, -0.9633577466011047, 0.5128346681594849, 0.08107724040746689, 0.5020548701286316, 0.3227435350418091, 0.03364207595586777, 0.7664942741394043, -0.41494807600975037, 0.7324230670928955, 0.40020692348480225, -0.7445197701454163, 0.5077106356620789, -0.45379701256752014, -0.018085043877363205, 0.5003356337547302, 0.48472604155540466, -0.6483767032623291, -0.5755555033683777, -0.9787644147872925, -0.6816166639328003, 0.7892716526985168, 0.5157325267791748, 0.31214621663093567, 0.011330234818160534, 0.45504114031791687, 0.35953372716903687, 0.543425440788269, -0.6394567489624023, -0.373487651348114, -0.2851528525352478, 0.2105834186077118, 0.2754594683647156, -0.03761787712574005, -0.041915420442819595, -0.40787526965141296, 0.7620355486869812, 0.06586185842752457, 0.3825955390930176, 0.05408100411295891, 0.20239222049713135, 0.22745376825332642, 0.13185560703277588, 0.47031623125076294, 0.5684743523597717, -0.3229416012763977, -0.18501149117946625, 0.452041894197464, -0.4332059621810913, -0.15366403758525848, -0.09258632361888885, -0.15295761823654175, -0.05320850759744644, 0.22794316709041595, 0.8316113352775574, 0.059125520288944244, -0.4378837049007416, 0.4408312439918518, 0.13777701556682587, 0.17830178141593933, -0.4033408463001251, 0.33135664463043213, -0.026597855612635612, 0.2492321878671646, 0.3091135025024414, 0.12126901745796204, 0.26313111186027527, -0.5703221559524536, 0.0028954099398106337, 0.4990496337413788, -0.016177847981452942, -0.37949201464653015, 0.8480679392814636, 0.11489047855138779, -0.15920764207839966, 0.5764608383178711, -0.4013349115848541, -0.2937699258327484, 0.698148250579834, 0.25003352761268616, 0.5304867029190063, -0.14635172486305237, 0.1947600394487381, 0.8264974355697632, 0.24579167366027832, -0.03014468587934971, 0.15268495678901672, 0.04488129913806915, -0.733657717704773, -0.13159899413585663, -0.5522275567054749, -0.7136106491088867, 0.586189329624176, -0.6542127728462219, 0.3905238211154938, -0.597294807434082, -0.19498924911022186, 0.22374622523784637, -0.0002459039678797126, -0.6006320714950562, 0.352603942155838, -0.013185782358050346, 0.7528923153877258, -0.7752609252929688, 0.8505814671516418, 0.5307491421699524, -0.7403501868247986, -0.5904708504676819, -0.358310729265213, -0.4589044451713562, -0.9141534566879272, 0.3204531669616699, 0.3668721914291382, 0.10008639842271805, -0.31251776218414307, -0.8430667519569397, -0.6536288261413574, 1.0697979927062988, 0.4386463165283203, -0.520336389541626, 0.12234830856323242, 0.04840924218297005, 0.46970561146736145, -0.0927274227142334, 0.9183544516563416, 0.4098179340362549, 0.10388287901878357, 0.1753081977367401, -1.0457671880722046, -0.0670262947678566, -0.14700250327587128, -0.07936491072177887, -0.014964954927563667, -1.2219223976135254, 1.1243185997009277, -0.3105058968067169, 0.006792156025767326, 0.3796725273132324, 0.7616335153579712, 0.39807531237602234, 0.3907129466533661, 0.12269807606935501, 0.5450078248977661, 0.7916496396064758, -0.18935678899288177, 0.8065983057022095, -0.491059273481369, 0.33713698387145996, 1.0535637140274048, 0.043693531304597855, 0.6645358204841614, 0.4694134593009949, -0.4426051676273346, 0.2526240646839142, 0.5476054549217224, 0.03467542305588722, 0.327237993478775, 0.13967952132225037, -0.1314682960510254, -0.14086531102657318, -0.2419172078371048, -0.5985444784164429, 0.2848392724990845, 0.2539098858833313, 0.04541350156068802, 0.3093859553337097, 0.1661744862794876, 0.28733476996421814, -0.19784799218177795, -0.07619278132915497, 0.35065028071403503, -0.010143590159714222, -0.6258800029754639, 0.9143030643463135, 0.007850849069654942, 0.768281102180481, -0.5651571154594421, 0.07330526411533356, -0.7676525712013245, 0.19005362689495087, -0.285536527633667, -0.5554524064064026, -0.009972944855690002, -0.2836872339248657, -0.02372908964753151, -0.33196914196014404, 0.4028467535972595, -0.1660732924938202, -0.17854678630828857, 0.08358236402273178, 0.2105620801448822, 0.44945549964904785, -0.16067743301391602, -0.5729221701622009, 0.27520349621772766, -0.027112742885947227, -0.11230459809303284, 0.218412846326828, 0.3227269649505615, 0.020545387640595436, 0.8641039133071899, 0.6014764904975891, 0.034802377223968506, 0.22797571122646332, -0.13848313689231873, 1.1477152109146118, -0.611672580242157, -0.019700579345226288, -0.4071599543094635, 0.38840603828430176, -0.28141140937805176, -0.6938210129737854, 0.8820250034332275, 0.7441561818122864, 0.9132496118545532, -0.08249478042125702, 0.6827739477157593, -0.40906357765197754, 0.4301251471042633, -0.2243850976228714, 0.46104714274406433, -0.5081061720848083, 0.09784290939569473, -0.08683836460113525, -0.6281875371932983, 0.15951116383075714, 0.661594033241272, -0.22568711638450623, 0.06372872740030289, 0.5782784819602966, 0.8817333579063416, -0.04512181505560875, 0.09654391556978226, 0.2922654449939728, 0.3214534819126129, 0.40610361099243164, 0.8464617133140564, 0.8957341313362122, -0.8809983730316162, 0.7358784079551697, -0.2958014905452728, -0.339699387550354, -0.33373022079467773, -0.3415927290916443, -1.060256004333496, -0.4447665512561798, -0.4850786626338959, -0.5059242844581604, 0.1124362125992775, 0.6177671551704407, 0.7717283964157104, -0.998242199420929, -0.48663845658302307, -0.13299426436424255, -0.019504070281982422, -0.1751669943332672, -0.181099534034729, -0.07187796384096146, -0.35120511054992676, -0.7682695388793945, 0.4503876566886902, 0.18052661418914795, -0.12209302932024002, -0.2113010138273239, -0.0522613525390625, -0.3062058091163635, 0.11497122049331665, 0.34924182295799255, 0.6340535283088684, -0.37074023485183716, -0.26374146342277527, 0.22066202759742737, -0.2006121128797531, 0.39203041791915894, 0.5280003547668457, -0.712982714176178, 0.37539270520210266, 0.33461248874664307, 0.2728962004184723, 1.0072318315505981, -0.4937761127948761, 0.1065806895494461, -0.43571069836616516, 0.39286383986473083, 0.07712572067975998, 0.23290136456489563, 0.4004468619823456, 0.09435737133026123, 0.4784192442893982, 0.255639910697937, -0.6461319923400879, -0.7818102836608887, 0.15460672974586487, -1.2338498830795288, 0.09163474291563034, 1.1262925863265991, 0.1293794810771942, -0.2833283841609955, 0.21118004620075226, -0.5779505968093872, 0.5894806385040283, -0.6678001880645752, 0.9209647178649902, 0.3772568702697754, -0.20335349440574646, -0.025106515735387802, -0.7336788177490234, 0.26150190830230713, 0.5152155756950378, -0.9476929306983948, -0.13079006969928741, 0.3517720699310303, 0.29388633370399475, 0.3361387252807617, 0.49640727043151855, 0.0017572407377883792, 0.03602801263332367, 0.18056176602840424, 0.372798353433609, -0.07188494503498077, -0.27945196628570557, 0.11735881119966507, 0.04648333787918091, 0.09873700141906738, -0.6026898622512817 ]
naver-clova-ocr/bros-base-uncased
naver-clova-ocr
"2022-04-05T13:56:46Z"
13,488
7
transformers
[ "transformers", "pytorch", "bros", "feature-extraction", "arxiv:2108.04539", "endpoints_compatible", "region:us" ]
feature-extraction
"2022-03-02T23:29:05Z"
# BROS GitHub: https://github.com/clovaai/bros ## Introduction BROS (BERT Relying On Spatiality) is a pre-trained language model focusing on text and layout for better key information extraction from documents.<br> Given the OCR results of the document image, which are text and bounding box pairs, it can perform various key information extraction tasks, such as extracting an ordered item list from receipts.<br> For more details, please refer to our paper: BROS: A Pre-trained Language Model Focusing on Text and Layout for Better Key Information Extraction from Documents<br> Teakgyu Hong, Donghyun Kim, Mingi Ji, Wonseok Hwang, Daehyun Nam, Sungrae Park<br> AAAI 2022 - Main Technical Track [[arXiv]](https://arxiv.org/abs/2108.04539) ## Pre-trained models | name | # params | Hugging Face - Models | |---------------------|---------:|-------------------------------------------------------------------------------------------------| | bros-base-uncased (**this**) | < 110M | [naver-clova-ocr/bros-base-uncased](https://huggingface.co/naver-clova-ocr/bros-base-uncased) | | bros-large-uncased | < 340M | [naver-clova-ocr/bros-large-uncased](https://huggingface.co/naver-clova-ocr/bros-large-uncased) |
[ -0.6285703778266907, -0.7199326753616333, 0.5194263458251953, 0.40563878417015076, -0.1594167947769165, -0.03250790387392044, -0.10266713798046112, -0.5444479584693909, 0.37487897276878357, 0.30287912487983704, -0.7869701385498047, -0.6117175817489624, -0.9162085056304932, 0.08001699298620224, -0.23974832892417908, 0.9744231104850769, -0.08875133842229843, -0.010270741768181324, -0.06338915973901749, 0.007754160091280937, -0.46888577938079834, -0.5874001979827881, -0.4708913266658783, 0.04837159067392349, 0.4056222438812256, 0.4098203480243683, 0.7375192642211914, 0.45824068784713745, 0.9727683067321777, 0.39239630103111267, 0.05987109616398811, 0.29427003860473633, -0.6534582376480103, 0.1275371015071869, 0.1595916599035263, -0.21157878637313843, -0.4479314088821411, 0.03876765817403793, 0.9078336358070374, 0.5679426193237305, 0.18205973505973816, -0.22698776423931122, 0.076546810567379, 1.1360803842544556, -0.44258353114128113, 0.5188400745391846, -0.5015271306037903, 0.03421536087989807, -0.19237354397773743, -0.5006055235862732, -0.3499290645122528, -0.6548914313316345, 0.44075873494148254, -0.692589282989502, 0.26305827498435974, 0.14452704787254333, 1.7362979650497437, -0.059536322951316833, -0.27426692843437195, -0.6215764284133911, -0.6258226633071899, 0.7494173645973206, -0.430726021528244, 0.8557989001274109, 0.3219265937805176, 0.3718968331813812, -0.3881678283214569, -0.7839400172233582, -0.5654087066650391, -0.03373520076274872, -0.477774441242218, 0.17765840888023376, -0.2844409644603729, -0.17047297954559326, 0.17966733872890472, 0.09053970873355865, -0.4768424332141876, -0.32579588890075684, -0.7099600434303284, -0.0864548534154892, 0.7202857732772827, -0.1059621274471283, 0.5567849278450012, 0.03151466324925423, -0.5844326019287109, -0.34890368580818176, -0.6438196897506714, 0.3945518136024475, 0.35869041085243225, 0.2677629292011261, -0.28007563948631287, 0.5854085087776184, -0.06516693532466888, 0.6718564033508301, 0.6353917121887207, -0.30993586778640747, 0.5074983239173889, -0.3398056626319885, -0.10765913128852844, 0.03912106901407242, 1.0666298866271973, 0.29425448179244995, 0.41397109627723694, -0.2599048614501953, -0.1792525053024292, -0.45629018545150757, 0.24755263328552246, -0.9646328687667847, -0.5114644169807434, -0.08791881799697876, -0.7281063199043274, -0.07976933568716049, 0.3815423548221588, -0.8347582817077637, -0.04139197617769241, -0.25223997235298157, 0.18728922307491302, -0.9001492261886597, -0.09432700276374817, -0.04987757280468941, -0.34940701723098755, 0.47179877758026123, 0.44352957606315613, -0.9969737529754639, 0.06593795865774155, 0.6166439056396484, 1.0151536464691162, 0.15669800341129303, -0.33872857689857483, -0.36430439352989197, 0.17527051270008087, -0.08904575556516647, 1.0180517435073853, -0.7012768983840942, -0.5836806297302246, 0.02507035806775093, 0.264899879693985, -0.3997827470302582, -0.08418328315019608, 0.6872087717056274, -0.6385919451713562, 0.22635802626609802, -0.5830559730529785, -0.4435400664806366, -0.09296154975891113, 0.35037314891815186, -0.7675734162330627, 0.9869745969772339, 0.17937041819095612, -1.1814180612564087, 0.38771727681159973, -0.7782959938049316, -0.40471622347831726, 0.1886332631111145, -0.6521523594856262, -0.5145853757858276, -0.012094796635210514, 0.28719285130500793, 0.5758740305900574, 0.35942310094833374, -0.08231852948665619, -0.3770168423652649, -0.26784268021583557, 0.0655498132109642, 0.050664518028497696, 0.9925929307937622, 0.42024585604667664, -0.10550841689109802, 0.045337799936532974, -0.6267843246459961, -0.014977642334997654, 0.3633897006511688, -0.5987883806228638, -0.39233797788619995, 0.12684296071529388, -0.04917579144239426, 0.16126681864261627, 0.7594960331916809, -0.7365218997001648, 0.33004552125930786, -0.39584943652153015, 0.33749186992645264, 0.6828663349151611, -0.3001531958580017, 0.7289586067199707, -0.4019683301448822, 0.5032719969749451, -0.026948459446430206, 0.06365860998630524, -0.013832051306962967, -0.5219278335571289, -0.25820690393447876, -0.7078849673271179, 0.28094813227653503, 0.6586990356445312, -0.9653783440589905, 0.8968462347984314, -0.6305032968521118, -0.7383452653884888, -0.248787522315979, 0.14182229340076447, 0.4187808632850647, 0.45946967601776123, 0.055223312228918076, -0.45885059237480164, -0.780279815196991, -1.0201759338378906, -0.0453956313431263, -0.35225117206573486, 0.07022015005350113, 0.34453415870666504, 0.4644903540611267, -0.27414470911026, 1.4486364126205444, -0.7148027420043945, -0.517767608165741, -0.3592623770236969, 0.05700519308447838, 0.32242581248283386, 0.6723130941390991, 0.991334855556488, -0.9474887847900391, -0.8192314505577087, 0.16236206889152527, -0.8744081258773804, -0.04550381377339363, 0.09777500480413437, -0.5048308372497559, 0.2529735267162323, 0.558742880821228, -0.7926157116889954, 0.6286009550094604, 0.5623996257781982, -0.5870401859283447, 0.8164693713188171, -0.5058738589286804, 0.1344171017408371, -0.9518194198608398, 0.23499558866024017, 0.21074222028255463, -0.15458662807941437, -0.5632131099700928, 0.3129843771457672, 0.22575807571411133, -0.10351993888616562, -0.28493884205818176, 0.36979758739471436, -0.9012243151664734, -0.17887063324451447, 0.05074452608823776, 0.2209063470363617, 0.25771602988243103, 0.7435525059700012, 0.38710206747055054, 0.7707221508026123, 0.35193145275115967, -0.4599055051803589, 0.02177402749657631, 0.5852100253105164, -0.6273131966590881, 0.7180999517440796, -0.8075284957885742, -0.04182390123605728, -0.24088294804096222, 0.45058581233024597, -1.3516901731491089, -0.08573976159095764, 0.3867696225643158, -0.8352208137512207, 0.6012192368507385, -0.220002219080925, -0.8162417411804199, -0.5220811367034912, -0.42566704750061035, 0.25914618372917175, 0.3672405779361725, -0.5984424352645874, 0.6672519445419312, 0.6197516322135925, -0.31785428524017334, -0.5248820185661316, -0.5987656712532043, -0.31224265694618225, -0.025732332840561867, -0.9428364634513855, 0.15261293947696686, -0.4720609188079834, 0.05173284932971001, -0.06924977898597717, 0.08760402351617813, -0.5391544699668884, 0.032800085842609406, 0.5528387427330017, 0.46380192041397095, -0.2447880059480667, -0.2659243643283844, -0.007503117900341749, 0.14696219563484192, 0.0922229140996933, 0.1385713815689087, 0.8548325300216675, -0.44650202989578247, -0.20075315237045288, -0.5602033138275146, 0.46967726945877075, 0.6316300630569458, -0.17163598537445068, 0.680779218673706, 0.5782681703567505, -0.2986856698989868, 0.48271697759628296, -0.6218294501304626, 0.08757557719945908, -0.5969135761260986, 0.28967052698135376, -0.7475207448005676, -0.9746258854866028, 0.7262255549430847, 0.20841476321220398, 0.3652324676513672, 0.6048443913459778, 0.2794872224330902, -0.6595893502235413, 1.2172353267669678, 0.7334504127502441, -0.2932571470737457, 0.7158869504928589, -0.3400810956954956, 0.39405500888824463, -0.7722434997558594, -0.5313478708267212, -0.9565953612327576, -0.5373184680938721, -0.596645176410675, -0.1053854301571846, 0.29503750801086426, 0.25398683547973633, -0.0710887461900711, 0.680598795413971, -0.7411816120147705, 0.48082390427589417, 0.7409375309944153, 0.20974236726760864, -0.17049016058444977, 0.4748748242855072, -0.16091196238994598, -0.15134599804878235, -0.5551678538322449, -0.3684519827365875, 0.8477705121040344, 0.6250447034835815, 0.6749472618103027, 0.11296050995588303, 0.9473667144775391, 0.15863212943077087, -0.0069809723645448685, -0.6672354340553284, 0.6907106637954712, -0.21656984090805054, -0.8851814270019531, -0.45475712418556213, -0.4171221852302551, -1.5013132095336914, 0.1331743746995926, -0.21337667107582092, -0.9455056190490723, 0.5798627734184265, -0.05551344156265259, -0.41717731952667236, 0.5190283060073853, -0.7265549302101135, 0.6834012269973755, -0.1675187647342682, -0.08279822021722794, 0.30233439803123474, -0.8155771493911743, 0.14465709030628204, 0.09688566625118256, 0.3482930064201355, 0.15846607089042664, 0.3619409203529358, 0.9620041251182556, -0.69401615858078, 0.8396187424659729, -0.3749527037143707, -0.3496740758419037, 0.4383302927017212, 0.13073591887950897, 0.6992486715316772, -0.3030151426792145, 0.16021263599395752, 0.5347831845283508, 0.33734115958213806, -0.5505362153053284, -0.440493643283844, 0.8761329650878906, -1.183538794517517, -0.377088338136673, -0.4235100746154785, -0.5915667414665222, 0.02770989201962948, 0.46413636207580566, 0.5570946931838989, 0.49503350257873535, -0.13223354518413544, 0.4237108826637268, 0.779140055179596, -0.10520832240581512, 0.583884060382843, 0.5099538564682007, -0.15306036174297333, -0.49181339144706726, 0.9338954091072083, 0.22073204815387726, -0.2834177017211914, 0.6076562404632568, 0.09085191786289215, -0.3706483542919159, -0.4590418338775635, -0.3494877517223358, 0.4041055142879486, -0.641714334487915, 0.0012594235595315695, -0.9774433970451355, -0.4792061448097229, -0.8731287717819214, -0.5712405443191528, -0.24497035145759583, -0.26683756709098816, -0.20378249883651733, 0.05858410522341728, 0.1434135138988495, 0.7885063290596008, -0.057472389191389084, 0.635932981967926, -1.1768044233322144, 0.18487656116485596, 0.20936594903469086, 0.31126439571380615, -0.18608613312244415, -0.520939290523529, -0.19142284989356995, -0.04092590883374214, -0.4078393280506134, -0.8993851542472839, 0.7502994537353516, 0.021280815824866295, 0.8640886545181274, 0.7189747095108032, -0.1342463344335556, 0.8726885914802551, -0.686517059803009, 0.5859178900718689, 0.5711139440536499, -0.7416393756866455, 0.6849539875984192, -0.528281033039093, 0.20353516936302185, 1.0293487310409546, 0.5774683356285095, -0.2565171420574188, -0.2208588868379593, -0.7776262760162354, -0.8799313306808472, 0.9516907930374146, 0.36286941170692444, -0.1509292870759964, -0.12804174423217773, 0.2653611898422241, 0.08833101391792297, 0.10769254714250565, -0.8354384899139404, -0.33116990327835083, -0.06432738155126572, -0.4308244287967682, 0.05770989879965782, -0.6240279674530029, 0.05086831375956535, -0.35597845911979675, 0.6763967275619507, 0.12265245616436005, 0.7532064318656921, 0.55973219871521, -0.1628253310918808, -0.16266493499279022, -0.11016100645065308, 0.9051321744918823, 0.706540048122406, -0.6597782373428345, -0.21727734804153442, -0.25708991289138794, -0.7991639971733093, -0.3275781273841858, 0.09141489118337631, -0.17851439118385315, 0.4320072829723358, 0.7129033207893372, 0.7980596423149109, 0.2970079779624939, -0.5278826951980591, 0.8016181588172913, -0.3627209961414337, -0.6734951734542847, -0.5659987926483154, -0.19802145659923553, -0.29501068592071533, 0.2679261267185211, 0.41522806882858276, 0.06772838532924652, 0.08990409970283508, -0.5185439586639404, 0.2368699312210083, 0.7489573359489441, -0.6247492432594299, -0.33073607087135315, 0.3802081048488617, 0.3213042914867401, -0.3129903972148895, 0.5064986944198608, -0.10758315771818161, -0.8198431730270386, 0.8251850605010986, 0.3550122082233429, 0.8125056028366089, -0.10729435831308365, 0.05769376456737518, 0.7180986404418945, 0.48056480288505554, 0.07945775985717773, 0.5058990716934204, -0.35626307129859924, -0.784711480140686, -0.08767183125019073, -0.5557937622070312, -0.02461998350918293, -0.08920694887638092, -0.7297984957695007, 0.2716417610645294, -0.7190557718276978, -0.029730090871453285, -0.07946385443210602, 0.3826224207878113, -1.0099350214004517, 0.13527628779411316, 0.025900622829794884, 1.2050760984420776, -0.7234222292900085, 1.2244367599487305, 0.8468914031982422, -0.3898419141769409, -0.9285444617271423, -0.105825275182724, -0.27330252528190613, -1.135695219039917, 1.2181057929992676, 0.3118281364440918, 0.02334543503820896, -0.13920582830905914, -0.7710461616516113, -1.1126501560211182, 1.2500420808792114, -0.011806507594883442, -0.981178343296051, -0.2866557836532593, -0.07671608030796051, 0.5005889534950256, -0.4776395857334137, 0.418724924325943, 0.43414273858070374, 0.6750467419624329, 0.26237624883651733, -0.9773468971252441, -0.1235613003373146, -0.5481501221656799, -0.0848364606499672, 0.27711814641952515, -0.7017059922218323, 0.9298800230026245, -0.01938137412071228, -0.4129071831703186, 0.13472509384155273, 0.8923139572143555, 0.6704292893409729, 0.456370085477829, 0.8883315324783325, 0.581122100353241, 0.647383987903595, -0.18367920815944672, 1.1013073921203613, -0.4507138431072235, 0.42726951837539673, 1.2387641668319702, -0.1932695209980011, 0.8607166409492493, 0.49250587821006775, -0.3179347515106201, 0.9211804270744324, 0.575934886932373, 0.003819345263764262, 0.800258994102478, -0.08732432872056961, 0.17302222549915314, -0.0720018744468689, 0.33131885528564453, -0.6945099830627441, 0.4255424439907074, 0.3783057928085327, -0.41365426778793335, -0.27555638551712036, -0.29257932305336, 0.08273157477378845, 0.05138731002807617, -0.17265170812606812, 0.8339312672615051, -0.1989833563566208, -0.6062514781951904, 0.4581183195114136, -0.11858160048723221, 0.7553770542144775, -0.8147094249725342, 0.13174593448638916, -0.2691028416156769, 0.04174415022134781, -0.13737474381923676, -0.9616833329200745, 0.2345898598432541, -0.24156445264816284, -0.35206151008605957, -0.30258211493492126, 1.0017626285552979, -0.497999370098114, -0.6897709369659424, 0.34880530834198, 0.19862940907478333, 0.33631500601768494, 0.10267937928438187, -0.9799984097480774, 0.2211398035287857, 0.08585107326507568, -0.24075767397880554, 0.37368378043174744, 0.8959527611732483, 0.10691116005182266, 0.6550658941268921, 0.6709032654762268, 0.15158118307590485, 0.2298746109008789, -0.21727846562862396, 0.8438712954521179, -0.5981828570365906, -0.9009961485862732, -0.9101361036300659, 0.285061240196228, -0.341856449842453, -0.03443651273846626, 0.9258963465690613, 0.7313872575759888, 0.7806447744369507, -0.22793246805667877, 0.7885427474975586, -0.2229314148426056, 0.41128644347190857, -0.3001113831996918, 1.05485999584198, -0.6645123958587646, -0.09923636168241501, -0.48890793323516846, -0.8763558268547058, -0.2741476595401764, 1.0332603454589844, -0.45277491211891174, 0.05744415894150734, 0.6839171648025513, 0.6129686832427979, 0.023574870079755783, -0.07302244752645493, 0.2832825183868408, 0.05071789026260376, 0.38181641697883606, 0.8063417077064514, 0.7384728789329529, -0.5594303011894226, 0.7651543021202087, -0.4336189925670624, -0.2007044553756714, -0.5137516856193542, -0.7673336863517761, -1.255239486694336, -0.8658266663551331, -0.3772236406803131, -0.35399049520492554, -0.1491764932870865, 0.6562986969947815, 1.0715335607528687, -0.8885385394096375, -0.1265861541032791, -0.04852855205535889, 0.04488750919699669, -0.0067765973508358, -0.2963910698890686, 0.5966199636459351, -0.29076337814331055, -0.9192444086074829, 0.3148810565471649, 0.15792064368724823, 0.15582112967967987, 0.01918151043355465, -0.31447383761405945, -0.5661752820014954, 0.14876964688301086, 0.5720872282981873, 0.5255603790283203, -0.4038096070289612, -0.4956343472003937, -0.30489417910575867, -0.41428062319755554, 0.2448832243680954, 0.7194114923477173, -0.4673590064048767, 0.27764859795570374, 1.0480953454971313, 0.49563202261924744, 0.07775230705738068, 0.09610752016305923, 0.3860008418560028, -1.0429753065109253, 0.15730811655521393, -0.27310681343078613, 0.7618482112884521, 0.033472780138254166, -0.6002710461616516, 0.5658810138702393, 0.33814212679862976, -0.6976885795593262, -0.847614586353302, -0.009738601744174957, -1.386251449584961, -0.4414364695549011, 1.0238540172576904, -0.4322534501552582, -0.5335642695426941, -0.014393908903002739, -0.47460395097732544, 0.23546351492404938, -0.7331658601760864, 0.7739840745925903, 0.939287543296814, 0.11401838809251785, 0.02693735435605049, -0.18863077461719513, 0.20496734976768494, 0.3145562708377838, -0.6241750717163086, -0.3855966031551361, 0.5710392594337463, 0.28508245944976807, 0.625594973564148, 0.8644019961357117, -0.20119038224220276, 0.14428764581680298, -0.25866687297821045, 0.33163490891456604, -0.12639683485031128, -0.491916298866272, -0.1967097967863083, 0.46687623858451843, -0.20951984822750092, -0.6084942817687988 ]
dbmdz/bert-base-italian-cased
dbmdz
"2023-09-06T22:20:14Z"
13,477
15
transformers
[ "transformers", "pytorch", "tf", "jax", "safetensors", "bert", "fill-mask", "it", "dataset:wikipedia", "license:mit", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
fill-mask
"2022-03-02T23:29:05Z"
--- language: it license: mit datasets: - wikipedia --- # 🤗 + 📚 dbmdz BERT and ELECTRA models In this repository the MDZ Digital Library team (dbmdz) at the Bavarian State Library open sources Italian BERT and ELECTRA models 🎉 # Italian BERT The source data for the Italian BERT model consists of a recent Wikipedia dump and various texts from the [OPUS corpora](http://opus.nlpl.eu/) collection. The final training corpus has a size of 13GB and 2,050,057,573 tokens. For sentence splitting, we use NLTK (faster compared to spacy). Our cased and uncased models are training with an initial sequence length of 512 subwords for ~2-3M steps. For the XXL Italian models, we use the same training data from OPUS and extend it with data from the Italian part of the [OSCAR corpus](https://traces1.inria.fr/oscar/). Thus, the final training corpus has a size of 81GB and 13,138,379,147 tokens. Note: Unfortunately, a wrong vocab size was used when training the XXL models. This explains the mismatch of the "real" vocab size of 31102, compared to the vocab size specified in `config.json`. However, the model is working and all evaluations were done under those circumstances. See [this issue](https://github.com/dbmdz/berts/issues/7) for more information. The Italian ELECTRA model was trained on the "XXL" corpus for 1M steps in total using a batch size of 128. We pretty much following the ELECTRA training procedure as used for [BERTurk](https://github.com/stefan-it/turkish-bert/tree/master/electra). ## Model weights Currently only PyTorch-[Transformers](https://github.com/huggingface/transformers) compatible weights are available. If you need access to TensorFlow checkpoints, please raise an issue! | Model | Downloads | ---------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | `dbmdz/bert-base-italian-cased` | [`config.json`](https://cdn.huggingface.co/dbmdz/bert-base-italian-cased/config.json) • [`pytorch_model.bin`](https://cdn.huggingface.co/dbmdz/bert-base-italian-cased/pytorch_model.bin) • [`vocab.txt`](https://cdn.huggingface.co/dbmdz/bert-base-italian-cased/vocab.txt) | `dbmdz/bert-base-italian-uncased` | [`config.json`](https://cdn.huggingface.co/dbmdz/bert-base-italian-uncased/config.json) • [`pytorch_model.bin`](https://cdn.huggingface.co/dbmdz/bert-base-italian-uncased/pytorch_model.bin) • [`vocab.txt`](https://cdn.huggingface.co/dbmdz/bert-base-italian-uncased/vocab.txt) | `dbmdz/bert-base-italian-xxl-cased` | [`config.json`](https://cdn.huggingface.co/dbmdz/bert-base-italian-xxl-cased/config.json) • [`pytorch_model.bin`](https://cdn.huggingface.co/dbmdz/bert-base-italian-xxl-cased/pytorch_model.bin) • [`vocab.txt`](https://cdn.huggingface.co/dbmdz/bert-base-italian-xxl-cased/vocab.txt) | `dbmdz/bert-base-italian-xxl-uncased` | [`config.json`](https://cdn.huggingface.co/dbmdz/bert-base-italian-xxl-uncased/config.json) • [`pytorch_model.bin`](https://cdn.huggingface.co/dbmdz/bert-base-italian-xxl-uncased/pytorch_model.bin) • [`vocab.txt`](https://cdn.huggingface.co/dbmdz/bert-base-italian-xxl-uncased/vocab.txt) | `dbmdz/electra-base-italian-xxl-cased-discriminator` | [`config.json`](https://s3.amazonaws.com/models.huggingface.co/bert/dbmdz/electra-base-italian-xxl-cased-discriminator/config.json) • [`pytorch_model.bin`](https://cdn.huggingface.co/dbmdz/electra-base-italian-xxl-cased-discriminator/pytorch_model.bin) • [`vocab.txt`](https://cdn.huggingface.co/dbmdz/electra-base-italian-xxl-cased-discriminator/vocab.txt) | `dbmdz/electra-base-italian-xxl-cased-generator` | [`config.json`](https://s3.amazonaws.com/models.huggingface.co/bert/dbmdz/electra-base-italian-xxl-cased-generator/config.json) • [`pytorch_model.bin`](https://cdn.huggingface.co/dbmdz/electra-base-italian-xxl-cased-generator/pytorch_model.bin) • [`vocab.txt`](https://cdn.huggingface.co/dbmdz/electra-base-italian-xxl-cased-generator/vocab.txt) ## Results For results on downstream tasks like NER or PoS tagging, please refer to [this repository](https://github.com/stefan-it/italian-bertelectra). ## Usage With Transformers >= 2.3 our Italian BERT models can be loaded like: ```python from transformers import AutoModel, AutoTokenizer model_name = "dbmdz/bert-base-italian-cased" tokenizer = AutoTokenizer.from_pretrained(model_name) model = AutoModel.from_pretrained(model_name) ``` To load the (recommended) Italian XXL BERT models, just use: ```python from transformers import AutoModel, AutoTokenizer model_name = "dbmdz/bert-base-italian-xxl-cased" tokenizer = AutoTokenizer.from_pretrained(model_name) model = AutoModel.from_pretrained(model_name) ``` To load the Italian XXL ELECTRA model (discriminator), just use: ```python from transformers import AutoModel, AutoTokenizer model_name = "dbmdz/electra-base-italian-xxl-cased-discriminator" tokenizer = AutoTokenizer.from_pretrained(model_name) model = AutoModelWithLMHead.from_pretrained(model_name) ``` # Huggingface model hub All models are available on the [Huggingface model hub](https://huggingface.co/dbmdz). # Contact (Bugs, Feedback, Contribution and more) For questions about our BERT/ELECTRA models just open an issue [here](https://github.com/dbmdz/berts/issues/new) 🤗 # Acknowledgments Research supported with Cloud TPUs from Google's TensorFlow Research Cloud (TFRC). Thanks for providing access to the TFRC ❤️ Thanks to the generous support from the [Hugging Face](https://huggingface.co/) team, it is possible to download both cased and uncased models from their S3 storage 🤗
[ -0.5299681425094604, -0.6895347833633423, 0.19625400006771088, -0.0017768259858712554, -0.2310570627450943, -0.0731395035982132, -0.2718130052089691, -0.47157976031303406, 0.34781700372695923, 0.31401678919792175, -0.39878469705581665, -0.6989105343818665, -0.5056624412536621, -0.002133296336978674, -0.4214344024658203, 1.1573408842086792, -0.21196585893630981, 0.24324020743370056, 0.2768056094646454, -0.2571554481983185, -0.1131938025355339, -0.6750795841217041, -0.4363378882408142, -0.5015969276428223, 0.4349632263183594, 0.1303200125694275, 0.4627353549003601, 0.19687795639038086, 0.38858309388160706, 0.37104660272598267, -0.36954981088638306, 0.23068027198314667, -0.05722422897815704, -0.16829027235507965, -0.07524973899126053, -0.5614299774169922, -0.46601444482803345, -0.2881861925125122, 0.5194937586784363, 0.3690245747566223, -0.14557552337646484, 0.08343365043401718, -0.20087917149066925, 0.6320924758911133, -0.2418978065252304, 0.14106962084770203, -0.6100671887397766, -0.007349568884819746, 0.023645125329494476, 0.11417744308710098, -0.3655223548412323, -0.24744544923305511, 0.4158397912979126, -0.2836429178714752, 0.6391248106956482, -0.20645831525325775, 1.4746710062026978, 0.03748606890439987, -0.13843880593776703, -0.38524511456489563, -0.4617445170879364, 0.5455175638198853, -0.879004716873169, 0.2785240709781647, 0.2217545509338379, 0.10968843847513199, -0.22834734618663788, -0.8700379729270935, -0.7967095375061035, -0.22824613749980927, -0.15163156390190125, 0.09808453172445297, -0.4647655487060547, -0.06833452731370926, 0.34281525015830994, 0.3465777039527893, -0.4247710108757019, -0.010071168653666973, -0.598016619682312, -0.2961612343788147, 0.7827707529067993, -0.11281615495681763, 0.3903847336769104, -0.44398340582847595, -0.07019513845443726, -0.48932090401649475, -0.7119666934013367, 0.10061531513929367, 0.7591462731361389, 0.47866037487983704, -0.536388635635376, 0.7322991490364075, -0.1102198138833046, 0.8385635614395142, 0.12271104007959366, 0.24305054545402527, 0.6391456723213196, -0.17933858931064606, 0.01751469075679779, -0.054604023694992065, 1.1880072355270386, 0.2847365736961365, 0.11116146296262741, -0.18326804041862488, -0.09822885692119598, -0.3575824499130249, 0.12019483745098114, -0.8308620452880859, -0.41134732961654663, 0.44773367047309875, -0.3649199604988098, -0.2941739857196808, -0.07665117084980011, -0.9369524121284485, -0.15063446760177612, -0.09787219762802124, 0.7650380730628967, -0.7524067759513855, -0.29055824875831604, 0.2859969437122345, -0.07998831570148468, 0.31627222895622253, 0.11054893583059311, -1.0041600465774536, -0.017641926184296608, 0.15949313342571259, 1.0004395246505737, 0.18586204946041107, -0.20065318048000336, 0.0302001740783453, -0.3403933346271515, -0.12087397277355194, 0.686945915222168, 0.20846669375896454, -0.24247576296329498, 0.18862949311733246, 0.36866649985313416, -0.4355084300041199, -0.3416658341884613, 0.6628441214561462, -0.36310192942619324, 0.3768590986728668, -0.29624277353286743, -0.4544069468975067, -0.4554084539413452, -0.07076133042573929, -0.7237253189086914, 1.279853343963623, 0.26207590103149414, -0.9055913686752319, 0.2611404061317444, -0.715870201587677, -0.5218889117240906, -0.0887012928724289, 0.11618676781654358, -0.8821407556533813, 0.1429915428161621, 0.25175991654396057, 0.5620435476303101, -0.04335528612136841, 0.041395153850317, -0.1946081966161728, -0.10270736366510391, 0.3520711362361908, -0.18397706747055054, 1.1652252674102783, 0.2383304238319397, -0.6558218002319336, 0.04911299794912338, -0.855711042881012, -0.012304636649787426, 0.29429173469543457, -0.33578920364379883, 0.16522328555583954, 0.1957143098115921, 0.37729620933532715, 0.2519901692867279, 0.3635612428188324, -0.5763915181159973, 0.2499767392873764, -0.5889644026756287, 0.8570960760116577, 0.6449942588806152, -0.3453103005886078, 0.1375417560338974, -0.3215785026550293, 0.2842962443828583, 0.13790439069271088, -0.11411858350038528, 0.026516659185290337, -0.44794225692749023, -1.3829089403152466, -0.3631543517112732, 0.4930115342140198, 0.5788378715515137, -0.8521162867546082, 0.9567774534225464, -0.35061874985694885, -0.742031455039978, -0.5651403665542603, -0.030260438099503517, 0.16855311393737793, 0.2880859971046448, 0.43978118896484375, -0.17926862835884094, -0.7062647342681885, -1.0655646324157715, 0.0158805251121521, -0.19966547191143036, -0.01232452318072319, 0.3776475191116333, 1.0211560726165771, -0.11560560017824173, 0.8762158155441284, -0.24140691757202148, -0.2536323368549347, -0.5341082215309143, 0.09776066243648529, 0.6863973736763, 0.6336528062820435, 0.7915794253349304, -0.46538883447647095, -0.39764443039894104, 0.18682168424129486, -0.567182183265686, 0.17737790942192078, 0.026988383382558823, -0.2176269292831421, 0.3196255564689636, 0.28568798303604126, -0.8091175556182861, 0.3101687729358673, 0.3785114586353302, -0.5644361972808838, 0.4808848202228546, -0.45428958535194397, -0.042593009769916534, -1.4953670501708984, 0.17989979684352875, 0.1823263168334961, -0.18168006837368011, -0.4482365846633911, 0.12593631446361542, 0.018132707104086876, 0.17517481744289398, -0.6773118376731873, 0.5428520441055298, -0.33601799607276917, 0.13931897282600403, 0.22233852744102478, -0.007905391976237297, -0.046381305903196335, 0.5982626080513, 0.11333882063627243, 0.8130170702934265, 0.6316945552825928, -0.48483893275260925, 0.5454807281494141, 0.3676474690437317, -0.6071229577064514, 0.14748208224773407, -0.9374748468399048, 0.222801074385643, 0.1303267925977707, 0.13410288095474243, -0.894528865814209, -0.2376692146062851, 0.4402937591075897, -0.5970699191093445, 0.36990970373153687, -0.3410521447658539, -0.8707097172737122, -0.6712698936462402, -0.013534055091440678, -0.1311357021331787, 0.6014554500579834, -0.8358089327812195, 0.860258936882019, 0.20450302958488464, 0.07457679510116577, -0.4402519166469574, -0.8053561449050903, -0.10155774652957916, -0.43147802352905273, -0.706623375415802, 0.5447500944137573, 0.06691543757915497, 0.12211412191390991, -0.08286873251199722, 0.05366101488471031, -0.16893842816352844, -0.02867760695517063, -0.043707285076379776, 0.4382723569869995, -0.07326464354991913, 0.018713679164648056, 0.002092934912070632, 0.17329417169094086, -0.12826408445835114, -0.24706141650676727, 0.9821239113807678, -0.3335105776786804, -0.018013492226600647, -0.6822677850723267, 0.08745948225259781, 0.6091318130493164, -0.25525185465812683, 1.0203206539154053, 0.8323956727981567, -0.2854260802268982, -0.09680173546075821, -0.6526468396186829, -0.11918185651302338, -0.4616469740867615, 0.4136740267276764, -0.45224690437316895, -0.6777286529541016, 0.8571493029594421, 0.3481563627719879, 0.2285950779914856, 0.7154107093811035, 0.8468796610832214, -0.20941707491874695, 1.2014068365097046, 0.553726851940155, -0.0948336198925972, 0.8339295387268066, -0.8966968655586243, 0.25642943382263184, -0.8184224367141724, -0.25791966915130615, -0.6912041902542114, -0.18486930429935455, -0.7278922200202942, -0.3341235816478729, 0.2558252215385437, 0.20990636944770813, -0.18975169956684113, 0.7463415861129761, -0.9373186230659485, 0.17617076635360718, 0.7098354697227478, 0.5097748637199402, -0.10038750618696213, 0.5042158365249634, -0.4571843445301056, 0.12139876186847687, -0.8506971597671509, -0.5343930125236511, 1.3482470512390137, 0.31811314821243286, 0.3957183063030243, 0.08433612436056137, 0.7297362089157104, -0.08564616739749908, 0.06793119013309479, -0.7918586730957031, 0.4338890016078949, -0.19202065467834473, -0.8858398199081421, 0.06793093681335449, -0.38371071219444275, -1.0169544219970703, 0.4710342586040497, -0.13390521705150604, -1.1096526384353638, 0.36458146572113037, 0.02785603515803814, -0.5214146971702576, 0.49906042218208313, -0.9811089634895325, 1.0292774438858032, -0.3111000657081604, -0.4080817699432373, -0.15624500811100006, -0.4345456063747406, -0.016787586733698845, 0.2877539396286011, 0.06019369885325432, -0.08856815099716187, 0.25992870330810547, 1.0014451742172241, -0.7308460474014282, 0.7823233008384705, -0.03547017648816109, -0.003856034716591239, 0.45126426219940186, -0.23312781751155853, 0.448892205953598, -0.12360990792512894, -0.18522928655147552, 0.5224803686141968, 0.15227551758289337, -0.3561696410179138, -0.17602138221263885, 0.5996204018592834, -1.0871235132217407, -0.21834972500801086, -0.6636639833450317, -0.4975261092185974, 0.04308084771037102, 0.2832726836204529, 0.6676289439201355, 0.3614940345287323, 0.08535860478878021, 0.26801666617393494, 0.7099146842956543, -0.36140307784080505, 0.6140763759613037, 0.5727001428604126, -0.005038127303123474, -0.4700155556201935, 0.8163321018218994, 0.14018242061138153, -0.040336549282073975, 0.17381875216960907, -0.0018026435282081366, -0.3764916956424713, -0.6965291500091553, -0.6480813026428223, 0.35699597001075745, -0.569774329662323, -0.19512693583965302, -0.8058642745018005, -0.15349611639976501, -0.4928581118583679, 0.12039216607809067, -0.35886266827583313, -0.4325515031814575, -0.4569331109523773, -0.3014882206916809, 0.8688735365867615, 0.29312247037887573, -0.08956455439329147, 0.46351683139801025, -0.5379894375801086, 0.21312835812568665, -0.043220046907663345, 0.23086540400981903, -0.20528054237365723, -0.671286940574646, -0.3986715078353882, 0.1956821084022522, -0.4010716676712036, -1.001973271369934, 0.7145313024520874, 0.025571290403604507, 0.4747057259082794, 0.14724920690059662, -0.21153901517391205, 0.6646298170089722, -0.6335023045539856, 0.7900726795196533, 0.2774869501590729, -0.9503300786018372, 0.553127646446228, -0.34870773553848267, -0.011695812456309795, 0.5115368962287903, 0.2736927568912506, -0.3984985649585724, -0.12967126071453094, -0.7798517346382141, -1.2334612607955933, 1.0086151361465454, 0.36765095591545105, 0.376992404460907, -0.06447392702102661, 0.33171606063842773, -0.12978070974349976, 0.11204219609498978, -0.909586489200592, -0.4010074734687805, -0.26335808634757996, -0.5072182416915894, -0.030616868287324905, -0.02257268689572811, -0.20270484685897827, -0.6520498991012573, 0.936707615852356, 0.0530756413936615, 0.5487722158432007, 0.4646155834197998, -0.2658262550830841, 0.0836818739771843, -0.021459296345710754, 0.4041898846626282, 0.43599948287010193, -0.22556471824645996, -0.256674200296402, 0.2799595296382904, -0.4211881458759308, -0.08520185947418213, 0.49325069785118103, -0.4082096517086029, 0.4879242479801178, 0.2517748475074768, 1.102954626083374, 0.1382811963558197, -0.6499099135398865, 0.3523274064064026, -0.08354746550321579, -0.36426296830177307, -0.5997027158737183, 0.020063098520040512, 0.09465060383081436, 0.24214576184749603, 0.36680418252944946, -0.03489260375499725, -0.08235931396484375, -0.4454491138458252, 0.18805253505706787, 0.4183274805545807, -0.23086091876029968, -0.3149046301841736, 0.5856229662895203, 0.13650363683700562, -0.15476356446743011, 0.6902363896369934, -0.1299864947795868, -0.8578134179115295, 0.7799807190895081, 0.21392206847667694, 0.8701678514480591, 0.028252361342310905, 0.23095479607582092, 0.7007622122764587, 0.37572985887527466, -0.11964495480060577, 0.2870233654975891, -0.06243154779076576, -1.0001221895217896, -0.12701889872550964, -0.8181343078613281, -0.04699522629380226, 0.18569505214691162, -0.6278890371322632, 0.44511476159095764, -0.36757636070251465, -0.3262896239757538, 0.09240103513002396, 0.2751083970069885, -0.8834296464920044, -0.008933290839195251, -0.13771723210811615, 0.737557590007782, -0.820586085319519, 0.8888775110244751, 0.6851853728294373, -0.8287638425827026, -1.1098421812057495, -0.4903431534767151, -0.48653075098991394, -0.9019089341163635, 0.635320782661438, 0.1344013661146164, 0.27561497688293457, 0.10878989100456238, -0.515859842300415, -0.799155056476593, 1.0575999021530151, 0.2922176420688629, -0.5235323309898376, -0.23045213520526886, -0.014867151156067848, 0.6415408849716187, -0.11499249190092087, 0.5689760446548462, 0.6277065277099609, 0.3191787302494049, 0.16380837559700012, -0.8568722605705261, -0.08518248796463013, -0.4372216463088989, -0.19617582857608795, 0.08782744407653809, -0.718697190284729, 1.0155161619186401, -0.17928481101989746, -0.055352408438920975, 0.41597869992256165, 0.5650715827941895, 0.16887590289115906, -0.23776070773601532, 0.3016168177127838, 0.9350332021713257, 0.6034893989562988, -0.41575887799263, 1.1363122463226318, -0.6532999873161316, 0.8878453969955444, 0.7047982215881348, 0.14400440454483032, 0.8104826807975769, 0.42551687359809875, -0.469462513923645, 0.7650890350341797, 0.8789251446723938, -0.4263981580734253, 0.29061955213546753, 0.1338493376970291, -0.33308881521224976, -0.08802502602338791, 0.19017930328845978, -0.5741221308708191, 0.43409326672554016, 0.3227078318595886, -0.6140688061714172, -0.11209695786237717, -0.05178062245249748, 0.2802730202674866, -0.34175214171409607, -0.07463419437408447, 0.6364394426345825, -0.18211649358272552, -0.5689796209335327, 0.818280816078186, 0.08483070135116577, 0.8955785036087036, -0.6018220782279968, 0.1152268797159195, -0.06835377216339111, 0.3720835745334625, -0.23515324294567108, -0.5016754865646362, 0.03905411437153816, 0.13091756403446198, -0.08066486567258835, -0.16517487168312073, 0.30373841524124146, -0.4140588045120239, -0.9332835078239441, 0.29037514328956604, 0.3596947491168976, 0.3122035562992096, 0.17481283843517303, -1.0340970754623413, 0.06977514177560806, 0.19244588911533356, -0.37504035234451294, 0.11420466005802155, 0.2878458499908447, 0.3600859045982361, 0.5765888094902039, 0.8024056553840637, 0.2125645875930786, 0.3019166588783264, 0.15319979190826416, 0.7394415736198425, -0.4302549362182617, -0.2783176898956299, -0.7820492386817932, 0.7806178331375122, -0.22021685540676117, -0.5159774422645569, 0.7535470128059387, 0.5606759190559387, 0.98502516746521, -0.06430929899215698, 0.7377132773399353, -0.5549613237380981, 0.386672705411911, -0.47451847791671753, 0.9840599894523621, -0.6689642071723938, 0.05691526085138321, -0.27381327748298645, -0.7481845617294312, -0.1486242562532425, 1.2600427865982056, -0.40613654255867004, 0.1459215134382248, 0.6224390268325806, 0.9011286497116089, 0.17336569726467133, -0.285970002412796, -0.05282813683152199, 0.43271929025650024, 0.38298487663269043, 0.697334885597229, 0.529638409614563, -0.8439009785652161, 0.5549388527870178, -0.647929847240448, 0.0634048655629158, -0.26543936133384705, -0.6331433057785034, -1.0688302516937256, -0.6702966094017029, -0.4178556203842163, -0.725906252861023, -0.0510757714509964, 1.0314399003982544, 0.8381041288375854, -1.0619570016860962, -0.343365341424942, -0.509733259677887, 0.19063428044319153, -0.1198468953371048, -0.2952379286289215, 0.6128877401351929, -0.22583593428134918, -1.1283001899719238, 0.09846846014261246, -0.2929128110408783, 0.20184437930583954, -0.1331689953804016, 0.1465565413236618, -0.31682533025741577, -0.1747758388519287, 0.3838897943496704, 0.4342416226863861, -0.6868119835853577, -0.27183985710144043, -0.09994006901979446, -0.034878090023994446, 0.16304032504558563, 0.5018916726112366, -0.5852435231208801, 0.49902060627937317, 0.6332788467407227, 0.17869697511196136, 0.734660804271698, -0.47924840450286865, 0.518788754940033, -0.38733118772506714, 0.4706386625766754, 0.2991127669811249, 0.880365252494812, 0.4096328616142273, -0.17069482803344727, 0.4933096766471863, 0.20041273534297943, -0.337114542722702, -0.9185311198234558, -0.06490559875965118, -0.957184910774231, -0.22694355249404907, 0.956192672252655, -0.2608949542045593, -0.31111177802085876, 0.19273044168949127, -0.3155957758426666, 0.6138980388641357, -0.36492544412612915, 0.9197391867637634, 0.9049742221832275, -0.07430331408977509, -0.12229440361261368, -0.5660356879234314, 0.3042668402194977, 0.5787036418914795, -0.6318026185035706, -0.1827039122581482, 0.3602493107318878, 0.49502992630004883, 0.37599897384643555, 0.20628748834133148, -0.21649090945720673, 0.30846336483955383, -0.11261709779500961, 0.5168264508247375, 0.0588931106030941, 0.002448036801069975, -0.36698469519615173, -0.1275104135274887, -0.33238983154296875, -0.1850179135799408 ]
UFNLP/gatortron-base
UFNLP
"2023-07-02T20:44:19Z"
13,452
26
transformers
[ "transformers", "pytorch", "megatron-bert", "license:apache-2.0", "endpoints_compatible", "region:us" ]
null
"2023-06-02T23:27:12Z"
--- license: apache-2.0 --- <h2>GatorTron-Base overview </h2> Developed by a joint effort between the University of Florida and NVIDIA, GatorTron-Base is a clinical language model of 345 million parameters, pre-trained using a BERT architecure implemented in the Megatron package (https://github.com/NVIDIA/Megatron-LM). GatorTron-Base is pre-trained using a dataset consisting of: - 82B words of de-identified clinical notes from the University of Florida Health System, - 6.1B words from PubMed CC0, - 2.5B words from WikiText, - 0.5B words of de-identified clinical notes from MIMIC-III The Github for GatorTron is at : https://github.com/uf-hobi-informatics-lab/GatorTron This model is converted to Hugginface from : https://catalog.ngc.nvidia.com/orgs/nvidia/teams/clara/models/gatortron_og <h2>Model variations</h2> Model | Parameter --- | --- [gatortron-base (this model)](https://huggingface.co/UFNLP/gatortron-base)| 345 million [gatortronS](https://huggingface.co/UFNLP/gatortronS) | 345 million [gatortron-medium](https://huggingface.co/UFNLP/gatortron-medium) | 3.9 billion gatortron-large | 8.9 billion <h2>How to use</h2> ```python from transformers import AutoModel, AutoTokenizer, AutoConfig tokenizer= AutoTokenizer.from_pretrained('UFNLP/gatortron-base') config=AutoConfig.from_pretrained('UFNLP/gatortron-base') mymodel=AutoModel.from_pretrained('UFNLP/gatortron-base') encoded_input=tokenizer("Bone scan: Negative for distant metastasis.", return_tensors="pt") encoded_output = mymodel(**encoded_input) print (encoded_output) ``` - An NLP pacakge using GatorTron for clinical concept extraction (Named Entity Recognition): https://github.com/uf-hobi-informatics-lab/ClinicalTransformerNER - An NLP pacakge using GatorTron for Relation Extraction: https://github.com/uf-hobi-informatics-lab/ClinicalTransformerRelationExtraction - An NLP pacakge using GatorTron for extraction of social determinants of health (SDoH) from clinical narratives: https://github.com/uf-hobi-informatics-lab/SDoH_SODA <h2>De-identification</h2> We applied a de-identification system to remove protected health information (PHI) from clinical text. We adopted the safe-harbor method to identify 18 PHI categories defined in the Health Insurance Portability and Accountability Act (HIPAA) and replaced them with dummy strings (e.g., replace people’s names into [\*\*NAME\*\*]). The de-identifiation system is described in: Yang X, Lyu T, Li Q, Lee C-Y, Bian J, Hogan WR, Wu Y†. A study of deep learning methods for de-identification of clinical notes in cross-institute settings. BMC Med Inform Decis Mak. 2020 Dec 5;19(5):232. https://www.ncbi.nlm.nih.gov/pubmed/31801524. <h2>Citation info</h2> Yang X, Chen A, PourNejatian N, Shin HC, Smith KE, Parisien C, Compas C, Martin C, Costa AB, Flores MG, Zhang Y, Magoc T, Harle CA, Lipori G, Mitchell DA, Hogan WR, Shenkman EA, Bian J, Wu Y†. A large language model for electronic health records. Npj Digit Med. Nature Publishing Group; . 2022 Dec 26;5(1):1–9. https://www.nature.com/articles/s41746-022-00742-2 - BibTeX entry ``` @article{yang2022large, title={A large language model for electronic health records}, author={Yang, Xi and Chen, Aokun and PourNejatian, Nima and Shin, Hoo Chang and Smith, Kaleb E and Parisien, Christopher and Compas, Colin and Martin, Cheryl and Costa, Anthony B and Flores, Mona G and Zhang, Ying and Magoc, Tanja and Harle, Christopher A and Lipori, Gloria and Mitchell, Duane A and Hogan, William R and Shenkman, Elizabeth A and Bian, Jiang and Wu, Yonghui }, journal={npj Digital Medicine}, volume={5}, number={1}, pages={194}, year={2022}, publisher={Nature Publishing Group UK London} } ``` <h2>Contact</h2> - Yonghui Wu: yonghui.wu@ufl.edu - Cheng Peng: c.peng@ufl.edu
[ -0.16736279428005219, -0.6725620627403259, 0.531465470790863, -0.09160490334033966, -0.42336541414260864, -0.23402446508407593, -0.1368490755558014, -0.6441519260406494, 0.286159873008728, 0.42658326029777527, -0.3296087384223938, -0.4648357629776001, -0.5513904094696045, 0.12207208573818207, -0.06273086369037628, 1.1878609657287598, 0.08944974094629288, 0.29093602299690247, 0.11000455915927887, -0.12194854021072388, -0.016766199842095375, -0.718665599822998, -0.4097817838191986, -0.49257099628448486, 0.35965681076049805, 0.05006351321935654, 0.6366569995880127, 1.1591309309005737, 0.6066858768463135, 0.17687828838825226, -0.3065049648284912, -0.2543938457965851, -0.24782630801200867, -0.19838212430477142, -0.08957595378160477, -0.29489871859550476, -0.6425847411155701, -0.16912369430065155, 0.470462828874588, 0.8111588358879089, -0.16929441690444946, 0.12350528687238693, -0.11484286934137344, 0.4966930150985718, -0.3249146044254303, 0.09866379201412201, -0.21175134181976318, 0.09939347207546234, -0.2734118103981018, -0.05704715475440025, -0.364079087972641, -0.24203309416770935, 0.4922318458557129, -0.568452000617981, 0.3370734453201294, -0.04922764375805855, 1.3309746980667114, 0.03567361459136009, -0.4457828104496002, -0.4268014132976532, -0.599448025226593, 0.6263105273246765, -0.9156597852706909, 0.35070377588272095, 0.30677610635757446, 0.14132918417453766, -0.1100299060344696, -0.782520592212677, -0.44137129187583923, -0.3854192793369293, -0.18833793699741364, 0.1366247683763504, -0.462312251329422, 0.2141847461462021, 0.3404305875301361, 0.5387521386146545, -0.8086003661155701, 0.02545132488012314, -0.5407580137252808, -0.355194091796875, 0.5851604342460632, 0.17197135090827942, 0.36222681403160095, -0.5055837631225586, -0.48199692368507385, -0.050706736743450165, -0.5884908437728882, -0.08827536553144455, 0.07249937951564789, 0.28616976737976074, -0.40437668561935425, 0.37138962745666504, -0.11288294941186905, 0.450067937374115, 0.3401862382888794, -0.1436329334974289, 0.7854409217834473, -0.238943949341774, -0.5542863011360168, 0.1370094269514084, 1.1333335638046265, 0.0922299399971962, 0.03919490799307823, -0.10514725744724274, 0.11781715601682663, -0.1915917694568634, 0.15589703619480133, -0.9183896780014038, -0.4262768626213074, 0.3967829942703247, -0.5899245738983154, -0.2885410487651825, -0.04473409801721573, -0.9963003396987915, -0.6100512742996216, -0.2265695482492447, 0.4345718026161194, -0.5255153775215149, -0.2681322991847992, 0.21384896337985992, 0.03992535173892975, 0.18767184019088745, 0.07379833608865738, -0.949043333530426, 0.3514486849308014, 0.5327939391136169, 0.6357637643814087, -0.001342369127087295, -0.22818027436733246, -0.3809623420238495, -0.014391813427209854, -0.20210976898670197, 0.5447807312011719, -0.2796776592731476, -0.33760955929756165, 0.06812511384487152, 0.2917986512184143, -0.21643628180027008, -0.6101322174072266, 0.7282506823539734, -0.2151530534029007, 0.3731701076030731, -0.15262266993522644, -0.5634175539016724, -0.2506447732448578, 0.021317701786756516, -0.8247864246368408, 0.8212259411811829, 0.21829575300216675, -0.6860259175300598, 0.23141944408416748, -0.15545524656772614, -0.5599804520606995, 0.15060395002365112, -0.19204017519950867, -0.601580798625946, 0.04119670018553734, 0.3432440757751465, 0.4809775948524475, -0.6155547499656677, 0.39885368943214417, -0.1416236013174057, -0.12043926864862442, -0.023659883067011833, -0.07176374644041061, 0.952687680721283, 0.2670236825942993, -0.6086812615394592, 0.0022211286704987288, -0.9402506947517395, -0.11108490824699402, 0.25677210092544556, -0.4199799597263336, -0.2987669110298157, -0.21247217059135437, -0.0524677075445652, 0.41550740599632263, 0.0554995983839035, -0.45539093017578125, 0.09189049899578094, -0.7448309063911438, 0.4780685007572174, 0.3563365042209625, 0.2316649854183197, 0.4409102201461792, -0.34363222122192383, 0.5714824795722961, 0.11698900908231735, 0.12354500591754913, -0.07255721092224121, -0.5399252772331238, -0.5951083302497864, -0.3553057312965393, 0.3708341419696808, 0.5861294865608215, -0.44030922651290894, 0.439663290977478, -0.46156683564186096, -0.547221302986145, -0.5599048733711243, -0.15302395820617676, 0.6184441447257996, 0.8584303855895996, 0.6659029722213745, -0.1453934758901596, -0.6534897089004517, -0.8453072309494019, -0.026794446632266045, -0.20691655576229095, -0.07308836281299591, 0.4382385015487671, 0.5470035672187805, -0.5065401792526245, 0.4292502999305725, -0.39787963032722473, -0.3489828407764435, -0.34449130296707153, 0.007493204902857542, 0.382653146982193, 0.4947083592414856, 0.47959762811660767, -0.42805758118629456, -0.49295103549957275, 0.09437528997659683, -0.7745745182037354, -0.039169441908597946, -0.22074022889137268, -0.1412941962480545, 0.3090474307537079, 0.3284137547016144, -0.7077139019966125, 0.33060431480407715, 0.406696617603302, -0.20651662349700928, 0.501469612121582, -0.4491885304450989, -0.064612478017807, -1.2503535747528076, 0.40965184569358826, 0.2903720438480377, 0.2196405529975891, -0.9259192943572998, -0.06769438087940216, 0.19104646146297455, -0.047479890286922455, -0.3483925759792328, 0.6833322048187256, -0.6652892231941223, 0.37368226051330566, 0.08773904293775558, -0.029812611639499664, 0.006403759587556124, 0.6364842653274536, 0.11995990574359894, 0.385040819644928, 0.4478333592414856, -0.6145267486572266, 0.25044935941696167, 0.48145049810409546, -0.12643413245677948, 0.41124093532562256, -0.908566951751709, -0.010415942408144474, -0.08654158562421799, 0.2223411351442337, -0.8435395359992981, -0.26823386549949646, 0.5063458681106567, -0.5217849016189575, 0.3627973198890686, -0.2881559729576111, -0.21847014129161835, -0.5008347034454346, -0.28477439284324646, 0.260986864566803, 0.46515271067619324, -0.3393707573413849, 0.4807669222354889, 0.5981018543243408, -0.25212669372558594, -0.6537647247314453, -0.8546416163444519, -0.12750618159770966, -0.15438392758369446, -0.5074747800827026, 0.5889593958854675, 0.17296050488948822, -0.0030549028888344765, 0.027340151369571686, -0.08594335615634918, -0.24765250086784363, -0.1559889316558838, 0.17495469748973846, 0.45494091510772705, -0.2768835425376892, 0.4871422052383423, 0.02065374329686165, -0.11713171005249023, 0.14165104925632477, -0.05152739956974983, 0.6833510398864746, -0.11586247384548187, -0.12164511531591415, -0.6318008303642273, 0.4139275550842285, 0.7267378568649292, -0.24774429202079773, 0.6731845140457153, 0.47103288769721985, -0.6714209914207458, 0.06726936995983124, -0.432979941368103, -0.11766521632671356, -0.3717447519302368, 0.496280312538147, -0.1985357254743576, -0.687813937664032, 0.7358995079994202, 0.1652688980102539, -0.08471743017435074, 0.9011066555976868, 0.6993499398231506, 0.1404542624950409, 0.9377513527870178, 0.4209078848361969, -0.3373066782951355, 0.20059829950332642, -0.2985909879207611, 0.11662229895591736, -1.0850720405578613, -0.3354935348033905, -0.7396143674850464, -0.06329566240310669, -0.6210476756095886, -0.23693767189979553, 0.1708117574453354, -0.0500599704682827, -0.3749564290046692, 0.44469186663627625, -0.6920502781867981, -0.07969790697097778, 0.4010186493396759, 0.3009975254535675, 0.16056178510189056, -0.0805402398109436, -0.3591596186161041, -0.05711076408624649, -0.5330778360366821, -0.41182416677474976, 1.2890607118606567, 0.5105401277542114, 0.7108591794967651, 0.15471410751342773, 0.7410831451416016, 0.09704606980085373, 0.2121923416852951, -0.7806891798973083, 0.43417468667030334, -0.10245304554700851, -0.7311579585075378, -0.20321033895015717, -0.5292412042617798, -1.211126446723938, 0.2759556472301483, -0.19632641971111298, -0.7163159251213074, 0.25498509407043457, 0.11973010003566742, -0.7501355409622192, 0.1464148312807083, -0.5205197930335999, 0.9165748357772827, -0.33007290959358215, -0.18599197268486023, -0.008393182419240475, -0.8218570351600647, 0.1918921321630478, 0.06047041714191437, 0.061120208352804184, -0.018297797068953514, 0.09432634711265564, 0.7408649325370789, -0.5441881418228149, 0.6910055875778198, -0.15568393468856812, 0.030614925548434258, 0.04938577115535736, -0.17757867276668549, 0.5516199469566345, 0.013879362493753433, -0.16032370924949646, 0.30038926005363464, 0.12508755922317505, -0.06338135153055191, -0.200022354722023, 0.5647188425064087, -0.8201459050178528, -0.294109582901001, -0.6955294609069824, -0.24583940207958221, -0.1189669594168663, 0.43644458055496216, 0.5309756398200989, 0.683674693107605, -0.061091359704732895, 0.298289954662323, 0.6692512035369873, -0.5720965266227722, 0.25362226366996765, 0.43263205885887146, 0.13261722028255463, -0.6626577377319336, 0.5580443143844604, 0.21530216932296753, 0.09645248204469681, 0.39241620898246765, 0.4410758912563324, -0.48459452390670776, -0.5938975214958191, -0.5346103310585022, 0.735891580581665, -0.6065489649772644, -0.007555990479886532, -0.7439379096031189, -0.29219895601272583, -0.5693860650062561, 0.12702429294586182, -0.07628794014453888, -0.22041283547878265, -0.5945396423339844, -0.13418763875961304, 0.19165447354316711, 0.3967849910259247, -0.01901973783969879, 0.07850277423858643, -0.8585460782051086, 0.3834778964519501, 0.04403321444988251, 0.3356952965259552, 0.08460822701454163, -0.813357412815094, -0.19348181784152985, 0.10189557820558548, -0.09313689917325974, -1.062342643737793, 0.6699317693710327, 0.18083526194095612, 1.0355983972549438, 0.30225756764411926, 0.06720637530088425, 0.707468569278717, -0.6014460325241089, 0.7519912719726562, 0.17657089233398438, -0.8260093927383423, 0.6456449031829834, -0.4001446068286896, 0.2500508427619934, 0.5866632461547852, 0.5981403589248657, -0.7135676145553589, -0.03433215990662575, -0.9091739058494568, -1.0153019428253174, 0.835446834564209, -0.17818596959114075, 0.0949719250202179, -0.13461442291736603, 0.4843689203262329, -0.13291849195957184, 0.20777985453605652, -0.7630063891410828, -0.3875064551830292, -0.006066242232918739, -0.37060248851776123, 0.015779301524162292, -0.43824175000190735, -0.3184426426887512, -0.45546695590019226, 0.905431866645813, -0.04327329993247986, 0.6223635673522949, 0.4867323040962219, -0.26420819759368896, -0.10081113874912262, 0.3415021300315857, 0.8612748980522156, 0.37456804513931274, -0.18609218299388885, 0.06898768991231918, 0.027132287621498108, -0.9042249321937561, -0.11146216839551926, 0.552243173122406, -0.08416645228862762, 0.10082203894853592, 0.3155670464038849, 0.7971467971801758, 0.15045085549354553, -0.5856624245643616, 0.5163161754608154, 0.06814689189195633, -0.4738520681858063, -0.22272078692913055, -0.1870802491903305, 0.01647173799574375, 0.09082892537117004, 0.2620488405227661, -0.16583076119422913, 0.13755424320697784, -0.3802357316017151, 0.3253740966320038, 0.20273107290267944, -0.5744138360023499, -0.32269957661628723, 0.804884135723114, 0.14400933682918549, -0.0895950123667717, 0.6274802684783936, -0.09354491531848907, -0.386028528213501, 0.6191497445106506, 0.5411388278007507, 0.9966355562210083, -0.26594457030296326, 0.20801930129528046, 0.6859443783760071, 0.3049127161502838, -0.15041832625865936, 0.259418785572052, 0.2960696518421173, -0.5052359104156494, -0.1894301474094391, -0.5632800459861755, -0.2635277211666107, 0.4969082474708557, -0.7479915022850037, 0.06269969791173935, -0.5903458595275879, -0.2072858065366745, 0.3329083323478699, 0.2746886909008026, -0.5130218863487244, 0.23599952459335327, 0.2978835701942444, 0.6340632438659668, -0.6801068186759949, 0.8418120741844177, 0.7294381856918335, -0.7255641222000122, -1.1987340450286865, -0.0030960997100919485, 0.32014232873916626, -0.5711419582366943, 0.3782452642917633, 0.09347967803478241, 0.27972936630249023, -0.1412043273448944, -0.09990902990102768, -0.8688699007034302, 1.0546458959579468, 0.35772621631622314, -0.5049058198928833, -0.1388092041015625, 0.3513796031475067, 0.9062929749488831, -0.07228881120681763, 0.29504019021987915, 0.49211397767066956, 0.12661996483802795, 0.16634581983089447, -1.124842882156372, 0.4008049964904785, -0.5409144163131714, -0.1061975508928299, 0.21312592923641205, -0.5860575437545776, 1.165675401687622, -0.2187904566526413, -0.2262972891330719, 0.09263017028570175, 0.2571500837802887, 0.21380595862865448, 0.12570902705192566, 0.085810087621212, 0.7969716191291809, 0.9822694659233093, -0.10727283358573914, 1.0292977094650269, -0.37467509508132935, 0.5882911086082458, 1.0887447595596313, -0.3469068109989166, 0.6198805570602417, 0.33239415287971497, -0.16228680312633514, 0.6472844481468201, 0.45893406867980957, -0.19043970108032227, 0.41812828183174133, 0.17357145249843597, -0.20571310818195343, 0.06569793820381165, 0.22256359457969666, -0.6935540437698364, 0.2273210883140564, 0.27336442470550537, -0.9412246346473694, -0.17054961621761322, -0.08042585849761963, 0.5365327596664429, -0.28583523631095886, -0.1222756952047348, 0.672824501991272, 0.043613847345113754, -0.6599865555763245, 0.849789559841156, -0.0367869958281517, 0.4260718822479248, -0.6512261629104614, 0.11950426548719406, -0.16468976438045502, 0.4774731695652008, -0.2504233717918396, -0.46262070536613464, 0.2037019431591034, -0.08519850671291351, -0.22775471210479736, 0.10034097731113434, 0.5399508476257324, -0.31604501605033875, -0.3861626386642456, 0.18171775341033936, 0.31637024879455566, 0.06254860758781433, 0.02576589584350586, -0.8435831665992737, -0.11735237389802933, 0.05498047173023224, -0.425746887922287, 0.36455607414245605, 0.326584130525589, -0.0031431966926902533, 0.48332637548446655, 0.608468234539032, 0.23029573261737823, -0.04366090148687363, 0.1308160275220871, 0.7814823985099792, -0.627903938293457, -0.5804502367973328, -0.8229333162307739, 0.4865444004535675, -0.12754422426223755, -0.7776224613189697, 0.6573204398155212, 0.5930024981498718, 0.6845721006393433, -0.11263343691825867, 0.8135592341423035, -0.18483281135559082, 0.7244037985801697, -0.2698289453983307, 0.9227468967437744, -0.5355260968208313, 0.2090388685464859, -0.5298080444335938, -0.4098852872848511, -0.5460397005081177, 0.6483964920043945, -0.4001709520816803, -0.04945513233542442, 0.7814803719520569, 0.7436743378639221, 0.12768472731113434, -0.10630056262016296, 0.11062795668840408, 0.21973314881324768, 0.5218598246574402, 0.8114070892333984, 0.23075152933597565, -0.7014032006263733, 0.6308771371841431, -0.49154454469680786, -0.2898626923561096, -0.3765048384666443, -0.7166672945022583, -0.8174844980239868, -0.49031728506088257, -0.34414008259773254, -0.5002468824386597, -0.07762663066387177, 1.0479943752288818, 0.6383200287818909, -0.858291745185852, 0.016675809398293495, 0.022388052195310593, -0.23968826234340668, -0.4175156056880951, -0.15507107973098755, 0.6618467569351196, 0.0055045271292328835, -0.46038734912872314, 0.09804335236549377, 0.10336494445800781, 0.05551188811659813, 0.023525284603238106, -0.10904592275619507, -0.25959092378616333, -0.0307860616594553, 0.3522154688835144, 0.6387673020362854, -0.7022283673286438, -0.1505683809518814, 0.2563583254814148, -0.6647582650184631, 0.25465771555900574, 0.4155541658401489, -0.6479384899139404, 0.49776387214660645, 0.5925045013427734, 0.6768320798873901, 0.4333072900772095, -0.056140270084142685, 0.2624412178993225, -0.3051750063896179, 0.0139252794906497, 0.41801828145980835, 0.4355000853538513, 0.09781499207019806, -0.46503016352653503, 0.46016600728034973, 0.4722801446914673, -0.5818362832069397, -0.7559548020362854, -0.12754109501838684, -1.200917363166809, -0.10016951709985733, 1.3552168607711792, -0.0636213943362236, -0.22026556730270386, -0.1348620504140854, -0.15554364025592804, 0.4439012110233307, -0.27023011445999146, 0.7380790710449219, 0.4338161051273346, -0.22875972092151642, -0.25108060240745544, -0.6600010395050049, 0.665151834487915, 0.2241203933954239, -0.9659927487373352, 0.0014534504152834415, 0.5593199729919434, 0.3261696398258209, 0.31596535444259644, 0.8339820504188538, -0.4337766468524933, 0.433134526014328, -0.13544043898582458, 0.24667488038539886, -0.023284481838345528, -0.04327183589339256, -0.7284331321716309, 0.05867880955338478, -0.3746483027935028, -0.14930488169193268 ]
laion/CLIP-convnext_large_d.laion2B-s26B-b102K-augreg
laion
"2023-04-18T19:33:42Z"
13,449
4
open_clip
[ "open_clip", "tensorboard", "clip", "zero-shot-image-classification", "arxiv:2201.03545", "arxiv:2210.08402", "arxiv:1910.04867", "license:mit", "has_space", "region:us" ]
zero-shot-image-classification
"2023-01-29T22:40:05Z"
--- license: mit library_name: open_clip pipeline_tag: zero-shot-image-classification tags: - clip --- # Model Card for CLIP-convnext_large_d.laion2B-s26B-b102K-augreg # 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) # Model Details ## Model Description A series of CLIP [ConvNeXt-Large](https://arxiv.org/abs/2201.03545) (w/ extra text depth, vision MLP head) models trained on LAION-2B (english), a subset of [LAION-5B](https://arxiv.org/abs/2210.08402), using [OpenCLIP](https://github.com/mlfoundations/open_clip). Goals: * Explore an alternative to ViT and ResNet (w/ AttentionPooling) CLIP models that scales well with model size and image resolution Firsts: * First known ConvNeXt CLIP models trained at scale in the range of CLIP ViT-L/16, ViT-L14, and RN50x16 * First released model weights exploring increase of augmentation + regularization for image tower via adding (greater scale range of RRC, random erasing, stochastic depth) The models utilize: * the [timm](https://github.com/rwightman/pytorch-image-models) ConvNeXt-Large model (`convnext_large`) as the image tower * a MLP (`fc - gelu - drop - fc`) head in vision tower instead of the single projection of other CLIP models * a text tower with same width but 4 layers more depth than ViT-L / RN50x16 models (depth 16, embed dim 768). The models are trained at 256x256 (working on 384 variants) image resolution. At 256x256, the ConvNext-Large-D used roughly 1/2 the training FLOPs to achieve accuracy greater than previous L/14 model trained on LAION-2B. L/14 model is ~1.65x more GMAC, 1.45x more activations, and 1.22x more parameters. The ConvNeXt was trained with 26B samples-seen and L/14 with 34B. | Model | Dataset | Resolution | AugReg | Top-1 ImageNet Zero-Shot (%) | | ----- | ------- | ---------- | ------------ | --------- | | [convnext_large_d.laion2b_s26b_b102k-augreg](https://huggingface.co/laion/CLIP-convnext_large_d.laion2B-s26B-b102K-augreg) | LAION-2B | 256x256 | RRC (0.33, 1.0), RE (0.35), SD (0.1), D(0.1) | 75.9 | | [convnext_large_d_320.laion2b_s29b_b131k-ft](https://huggingface.co/laion/CLIP-convnext_large_d_320.laion2B-s29B-b131K-ft) | LAION-2B | 320x320 | RRC (0.5, 1.0), RE (0.4), SD (0.1), D(0.0) | 76.6 | | [convnext_large_d_320.laion2b_s29b_b131k-ft-soup](https://huggingface.co/laion/CLIP-convnext_large_d_320.laion2B-s29B-b131K-ft-soup) | LAION-2B | 320x320 | RRC (0.5, 1.0), RE (0.4), SD (0.1), D(0.0) | 76.9 | RRC = Random Resize Crop (crop pcts), RE = Random Erasing (prob), SD = Stochastic Depth (prob) -- image tower only, D = Dropout (prob) -- image tower head only LAION-A = LAION Aesthetic, an ~900M sample subset of LAION-2B with pHash dedupe and asthetic score filtering. Model training done by Ross Wightman on the [stability.ai](https://stability.ai/) cluster. # Uses As per the original [OpenAI CLIP model card](https://github.com/openai/CLIP/blob/d50d76daa670286dd6cacf3bcd80b5e4823fc8e1/model-card.md), this model is intended as a research output for research communities. We hope that this model will enable researchers to better understand and explore zero-shot, arbitrary image classification. We also hope it can be used for interdisciplinary studies of the potential impact of such model. The OpenAI CLIP paper includes a discussion of potential downstream impacts to provide an example for this sort of analysis. Additionally, the LAION-5B blog (https://laion.ai/blog/laion-5b/) and upcoming paper include additional discussion as it relates specifically to the training dataset. ## Direct Use Zero-shot image classification, image and text retrieval, among others. ## Downstream Use Image classification and other image task fine-tuning, linear probe image classification, image generation guiding and conditioning, among others. ## Out-of-Scope Use As per the OpenAI models, **Any** deployed use case of the model - whether commercial or not - is currently out of scope. Non-deployed use cases such as image search in a constrained environment, are also not recommended unless there is thorough in-domain testing of the model with a specific, fixed class taxonomy. This is because our safety assessment demonstrated a high need for task specific testing especially given the variability of CLIP’s performance with different class taxonomies. This makes untested and unconstrained deployment of the model in any use case currently potentially harmful. Certain use cases which would fall under the domain of surveillance and facial recognition are always out-of-scope regardless of performance of the model. This is because the use of artificial intelligence for tasks such as these can be premature currently given the lack of testing norms and checks to ensure its fair use. Since the model has not been purposefully trained in or evaluated on any languages other than English, its use should be limited to English language use cases. Further the above notice, the LAION-5B dataset used in training of these models has additional considerations, see below. # Training Details ## Training Data This model was trained with LAION-2B -- A 2 billion sample English subset of LAION-5B (https://laion.ai/blog/laion-5b/). **IMPORTANT NOTE:** The motivation behind dataset creation is to democratize research and experimentation around large-scale multi-modal model training and handling of uncurated, large-scale datasets crawled from publically available internet. Our recommendation is therefore to use the dataset for research purposes. Be aware that this large-scale dataset is uncurated. Keep in mind that the uncurated nature of the dataset means that collected links may lead to strongly discomforting and disturbing content for a human viewer. Therefore, please use the demo links with caution and at your own risk. It is possible to extract a “safe” subset by filtering out samples based on the safety tags (using a customized trained NSFW classifier that we built). While this strongly reduces the chance for encountering potentially harmful content when viewing, we cannot entirely exclude the possibility for harmful content being still present in safe mode, so that the warning holds also there. We think that providing the dataset openly to broad research and other interested communities will allow for transparent investigation of benefits that come along with training large-scale models as well as pitfalls and dangers that may stay unreported or unnoticed when working with closed large datasets that remain restricted to a small community. Providing our dataset openly, we however do not recommend using it for creating ready-to-go industrial products, as the basic research about general properties and safety of such large-scale models, which we would like to encourage with this release, is still in progress. ## Training Procedure All models were trained with a global batch size of 102400 for 128 checkpoint intervals of 203.7M samples for a total of ~26B samples seen over training. For 256x256 models, a slurm script w/ srun below was used on 16 8-GPU (A100 80GB) nodes (Stability). ``` /opt/slurm/sbin/srun --cpu_bind=v --accel-bind=gn python -m training.main \ --save-frequency 1 \ --name "convnext_large_256" \ --resume 'latest' \ --train-data="pipe:aws s3 cp s3://mybucket/path/{laion{00000..xxxxx}.tar -" \ --train-num-samples 203666042 \ --dataset-type webdataset \ --precision amp_bfloat16 \ --beta2 0.98 \ --warmup 10000 \ --batch-size=800 \ --epochs=128 \ --dataset-resampled \ --aug-cfg use_timm=True scale='(0.33, 1.0)' re_prob=0.35 \ --clip-grad-norm 5.0 \ --lr 1.667e-3 \ --workers=6 \ --model "convnext_large_d" \ --seed 0 \ --ddp-static-graph \ --local-loss \ --gather-with-grad \ --grad-checkpointing ``` # Evaluation Evaluation done with code in the [LAION CLIP Benchmark suite](https://github.com/LAION-AI/CLIP_benchmark). ## Testing Data, Factors & Metrics ### Testing Data The testing is performed with VTAB+ (A combination of VTAB (https://arxiv.org/abs/1910.04867) w/ additional robustness datasets) for classification and COCO and Flickr for retrieval. ## Results The model achieves a 75.9 top-1 zero-shot accuracy on ImageNet-1k. ![](convnext_large_zero_shot.png) An initial round of benchmarks have been performed on a wider range of datasets, to be viewable at https://github.com/LAION-AI/CLIP_benchmark/blob/main/benchmark/results.ipynb # Acknowledgements Acknowledging [stability.ai](https://stability.ai/) for compute used to train this model. # Citation **BibTeX:** LAION-5B ```bibtex @inproceedings{schuhmann2022laionb, title={{LAION}-5B: An open large-scale dataset for training next generation image-text models}, author={Christoph Schuhmann and Romain Beaumont and Richard Vencu and Cade W Gordon and Ross Wightman and Mehdi Cherti and Theo Coombes and Aarush Katta and Clayton Mullis and Mitchell Wortsman and Patrick Schramowski and Srivatsa R Kundurthy and Katherine Crowson and Ludwig Schmidt and Robert Kaczmarczyk and Jenia Jitsev}, booktitle={Thirty-sixth Conference on Neural Information Processing Systems Datasets and Benchmarks Track}, year={2022}, url={https://openreview.net/forum?id=M3Y74vmsMcY} } ``` OpenCLIP software ```bibtex @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} } ``` OpenAI CLIP paper ```bibtex @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} } ``` ```bibtex @Article{liu2022convnet, author = {Zhuang Liu and Hanzi Mao and Chao-Yuan Wu and Christoph Feichtenhofer and Trevor Darrell and Saining Xie}, title = {A ConvNet for the 2020s}, journal = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)}, year = {2022}, } ``` ```bibtex @misc{rw2019timm, author = {Ross Wightman}, title = {PyTorch Image Models}, year = {2019}, publisher = {GitHub}, journal = {GitHub repository}, doi = {10.5281/zenodo.4414861}, howpublished = {\url{https://github.com/rwightman/pytorch-image-models}} } ```
[ -0.40797701478004456, -0.45813828706741333, 0.1510097235441208, -0.002276941668242216, -0.37515413761138916, -0.3749157190322876, -0.17247478663921356, -0.5689563751220703, 0.23075520992279053, 0.4108128845691681, -0.4964793920516968, -0.4489109516143799, -0.5904618501663208, -0.08077841252088547, -0.34659647941589355, 0.8638501167297363, -0.08413862437009811, 0.027947071939706802, 0.03855022415518761, -0.3431410789489746, -0.4684896767139435, -0.5284326672554016, -0.7322172522544861, 0.04623487591743469, 0.2425682246685028, 0.32833683490753174, 0.6213535666465759, 0.8049807548522949, 0.6913496255874634, 0.2250640094280243, -0.20767058432102203, -0.08862258493900299, -0.6324456930160522, -0.4858287572860718, 0.11152751743793488, -0.28509721159935, -0.583856463432312, 0.10148970782756805, 0.6813887357711792, 0.3098903298377991, -0.09557248651981354, 0.2853532135486603, 0.10406476259231567, 0.551936686038971, -0.7118184566497803, -0.000892250391189009, -0.5423611998558044, 0.1200772076845169, -0.2523651123046875, 0.16435106098651886, -0.21731092035770416, -0.04954487085342407, 0.22823266685009003, -0.6717085838317871, 0.36318182945251465, -0.14344239234924316, 1.2314369678497314, 0.19627486169338226, -0.25091323256492615, 0.2236606478691101, -0.5672457814216614, 0.8064490556716919, -0.7553273439407349, 0.3892631530761719, 0.2584795653820038, 0.3307519555091858, 0.1827002316713333, -0.8637416362762451, -0.3456195294857025, -0.15326917171478271, 0.17768721282482147, 0.3035009503364563, -0.21658186614513397, -0.01597648486495018, 0.5092332363128662, 0.34850743412971497, -0.5050223469734192, 0.11984775215387344, -0.6382859945297241, 0.01778944954276085, 0.785118818283081, 0.05207454040646553, 0.15777289867401123, -0.27174925804138184, -0.6859296560287476, -0.32230186462402344, -0.6423003673553467, 0.34650805592536926, 0.20503124594688416, -0.08778154104948044, -0.38233473896980286, 0.41892263293266296, -0.08750053495168686, 0.3977930545806885, 0.028622034937143326, -0.2559458911418915, 0.387986421585083, -0.30935660004615784, -0.44166460633277893, -0.14431539177894592, 1.023494839668274, 0.6639636754989624, 0.01980113610625267, 0.19983740150928497, -0.12115439772605896, -0.17010295391082764, 0.18583810329437256, -1.0745737552642822, -0.1277626007795334, 0.17973902821540833, -0.6237691044807434, -0.35671278834342957, 0.3013308644294739, -0.6519221663475037, 0.03494567796587944, -0.11768345534801483, 0.5760557055473328, -0.5478116869926453, -0.19419953227043152, 0.11665073782205582, -0.16631008684635162, 0.1738932877779007, 0.35326725244522095, -0.5211054682731628, 0.21476270258426666, 0.3799362778663635, 1.0778921842575073, -0.18922851979732513, -0.34147757291793823, -0.15791292488574982, 0.10608993470668793, -0.3155480623245239, 0.49104973673820496, 0.02169366367161274, -0.35203737020492554, -0.21651095151901245, 0.4594962000846863, -0.05330490320920944, -0.543427586555481, 0.6273728013038635, -0.21545305848121643, -0.05498436838388443, -0.15549500286579132, -0.3476126492023468, -0.46962931752204895, 0.14640380442142487, -0.724517285823822, 0.9021154642105103, 0.10719754546880722, -0.8455571532249451, 0.3011324107646942, -0.5142613649368286, -0.058617282658815384, -0.11346705257892609, 0.07443538308143616, -0.5641809701919556, -0.22205644845962524, 0.3692498803138733, 0.6115768551826477, -0.34934529662132263, 0.32152336835861206, -0.5083797574043274, -0.40700221061706543, 0.29180464148521423, -0.43638917803764343, 0.8867630958557129, 0.004134218208491802, -0.3617905378341675, 0.10590663552284241, -0.6058359742164612, -0.09521660953760147, 0.3282870352268219, 0.056577373296022415, -0.05862491577863693, -0.34616854786872864, -0.06272118538618088, 0.2700996696949005, 0.1181129515171051, -0.546185314655304, -0.045533712953329086, -0.16187049448490143, 0.5952916741371155, 0.7358625531196594, 0.14880038797855377, 0.30946773290634155, -0.49844956398010254, 0.47626444697380066, 0.01761624589562416, 0.6105010509490967, -0.21431313455104828, -0.4309116303920746, -0.7048027515411377, -0.577957808971405, 0.3938201665878296, 0.45801517367362976, -0.409614622592926, 0.44240909814834595, -0.24564597010612488, -0.5401706695556641, -0.3634452521800995, -0.1655682772397995, 0.3743446469306946, 0.5010862350463867, 0.3789293169975281, -0.41056790947914124, -0.5106475353240967, -1.0404943227767944, 0.3638897240161896, 0.17976626753807068, -0.19654828310012817, 0.6543885469436646, 0.7546797394752502, -0.1136157363653183, 0.7512674331665039, -0.6977296471595764, -0.42945119738578796, -0.18570071458816528, -0.025223370641469955, 0.23811858892440796, 0.4540651738643646, 0.802003800868988, -0.7562035918235779, -0.5566834211349487, -0.15776309370994568, -0.95731520652771, 0.2289387434720993, -0.003179677063599229, -0.15976007282733917, 0.11185874044895172, 0.4517781436443329, -0.6151331663131714, 0.6655880808830261, 0.4017142653465271, 0.1402207612991333, 0.6006664633750916, -0.13308154046535492, 0.07873954623937607, -1.017757773399353, 0.36390113830566406, 0.16954076290130615, -0.19337476789951324, -0.5251171588897705, 0.05455763638019562, 0.06116203963756561, -0.36964812874794006, -0.8668960332870483, 0.5350739359855652, -0.3676838278770447, 0.02773522399365902, -0.12565317749977112, 0.05336702615022659, 0.11187342554330826, 0.6534144282341003, 0.202786386013031, 0.8876850605010986, 0.6106153130531311, -0.5946709513664246, 0.16388458013534546, 0.245372474193573, -0.37882423400878906, 0.3954814076423645, -1.0057767629623413, 0.03187031298875809, 0.00539687043055892, 0.39519837498664856, -0.4880251884460449, -0.4276789724826813, 0.29990893602371216, -0.4535350203514099, 0.28306829929351807, -0.3550706207752228, -0.1632392406463623, -0.5741029977798462, -0.7462764382362366, 0.5249135494232178, 0.6444296836853027, -0.5122016668319702, 0.20304811000823975, 0.41441982984542847, 0.20773765444755554, -0.6927160620689392, -0.6839557886123657, -0.24714972078800201, -0.3389591872692108, -0.7780184149742126, 0.4832492470741272, 0.05194348841905594, 0.07768001407384872, 0.012097816914319992, 0.022977566346526146, -0.12067150324583054, -0.11367741972208023, 0.5497525334358215, 0.4306023120880127, -0.11535582691431046, -0.20739880204200745, -0.22153475880622864, 0.031222186982631683, -0.043464649468660355, -0.1950719654560089, 0.3986632525920868, -0.14994682371616364, -0.1702882945537567, -0.716012179851532, 0.1626797765493393, 0.55211341381073, -0.23024265468120575, 0.7877795100212097, 0.7988123893737793, -0.4432525038719177, 0.044720668345689774, -0.4389091730117798, -0.2219642847776413, -0.4557991325855255, 0.5014869570732117, -0.11817233264446259, -0.7078182101249695, 0.6228790283203125, 0.13090133666992188, -0.09487621486186981, 0.6947247982025146, 0.2296019196510315, -0.12271508574485779, 0.85821133852005, 0.5414842367172241, -0.026759671047329903, 0.5568129420280457, -1.020198941230774, 0.015517652034759521, -1.177627444267273, -0.2930273413658142, -0.11998305469751358, -0.24684321880340576, -0.45965832471847534, -0.5275875926017761, 0.6795307993888855, 0.3255206346511841, -0.3133262097835541, 0.41554901003837585, -0.37504225969314575, 0.2592563331127167, 0.5382735729217529, 0.4499228298664093, -0.17101603746414185, -0.05416222661733627, 0.05551682785153389, -0.10087717324495316, -0.7569385170936584, -0.1985827535390854, 1.185210108757019, 0.6912357211112976, 0.6401955485343933, -0.17420752346515656, 0.3743344843387604, 0.18168239295482635, -0.013004384003579617, -0.6808311939239502, 0.5971694588661194, -0.40927740931510925, -0.6235290169715881, -0.3397388458251953, -0.35171282291412354, -0.8353467583656311, 0.10131355375051498, -0.20347875356674194, -0.740958571434021, 0.2558012306690216, 0.02359059453010559, -0.45308175683021545, 0.5843567848205566, -0.5375676155090332, 0.9561277627944946, -0.29065802693367004, -0.48230963945388794, -0.06218947097659111, -0.7557114362716675, 0.5660001635551453, 0.08798917382955551, 0.05700602009892464, -0.17755462229251862, 0.1920350044965744, 1.1066160202026367, -0.7838483452796936, 0.7952560782432556, -0.17334212362766266, 0.24566300213336945, 0.7128491401672363, -0.14700090885162354, 0.4201788306236267, 0.19516493380069733, 0.08691587299108505, 0.6763155460357666, 0.061883024871349335, -0.1794084757566452, -0.37436643242836, 0.5316134691238403, -0.9273508191108704, -0.38289758563041687, -0.4593972861766815, -0.503930389881134, 0.2421635538339615, 0.1914394348859787, 0.7613404989242554, 0.6947296261787415, -0.13173767924308777, 0.45643386244773865, 0.5980722308158875, -0.23437650501728058, 0.4501887261867523, 0.12962232530117035, -0.12473196536302567, -0.763080358505249, 0.9343843460083008, 0.2746809124946594, 0.3181137442588806, 0.0672106146812439, 0.16935375332832336, -0.17807191610336304, -0.4153061807155609, -0.5323783159255981, 0.359839528799057, -0.5392289757728577, -0.45986437797546387, -0.48822614550590515, -0.5876486897468567, -0.4711399972438812, -0.1780521720647812, -0.5362982749938965, -0.3414343297481537, -0.5922918915748596, 0.0157010518014431, 0.346005916595459, 0.5444911122322083, -0.22571365535259247, 0.46424901485443115, -0.8555215001106262, 0.19064731895923615, 0.2473362684249878, 0.28835543990135193, 0.06689484417438507, -0.8232387900352478, -0.2720305621623993, 0.2726241648197174, -0.5084435939788818, -0.6698228120803833, 0.4010108411312103, 0.22363463044166565, 0.35709133744239807, 0.6744214296340942, -0.0822465792298317, 0.6238982081413269, -0.3347212076187134, 1.0252970457077026, 0.41455766558647156, -0.7219827175140381, 0.5372538566589355, -0.5546813607215881, 0.2311016023159027, 0.4960663318634033, 0.6254186034202576, -0.3500787317752838, 0.061065901070833206, -0.857580304145813, -0.8958750367164612, 0.9947397112846375, 0.17077001929283142, -0.09380991011857986, 0.18650171160697937, 0.5235979557037354, -0.022292573004961014, 0.11935363709926605, -0.8256335258483887, -0.13610446453094482, -0.3997533619403839, 0.10573825985193253, 0.06301656365394592, -0.4196966886520386, -0.12766845524311066, -0.4499071538448334, 0.7665031552314758, -0.0925559476017952, 0.5287320017814636, 0.24847695231437683, 0.008383707143366337, -0.045355021953582764, -0.1918368935585022, 0.5232406258583069, 0.4757193624973297, -0.5541481375694275, -0.223099946975708, 0.3019487261772156, -0.6586019396781921, -0.038150664418935776, 0.04173274710774422, -0.5898558497428894, -0.14303965866565704, 0.37940868735313416, 1.0992408990859985, 0.17787232995033264, -0.5197544097900391, 0.8961775898933411, -0.08867640793323517, -0.47711318731307983, -0.3747943341732025, 0.08903557062149048, -0.2405749261379242, 0.143172487616539, 0.2083330750465393, 0.14794975519180298, 0.1941288262605667, -0.42401665449142456, 0.22824403643608093, 0.4958775043487549, -0.4841367304325104, -0.42996761202812195, 0.6995205283164978, 0.016644947230815887, -0.061058223247528076, 0.6093175411224365, -0.16756680607795715, -0.5931519865989685, 0.802933394908905, 0.5283039212226868, 0.8666208982467651, -0.1638333797454834, 0.3275999128818512, 0.890200138092041, 0.20528464019298553, -0.3447803258895874, 0.05792359262704849, 0.2642740309238434, -0.5095121264457703, -0.11027764528989792, -0.449861615896225, -0.19303297996520996, 0.5600349307060242, -0.83155757188797, 0.5054071545600891, -0.6730563044548035, -0.4053035080432892, -0.22737649083137512, -0.14737559854984283, -0.5478165149688721, 0.31924158334732056, 0.10881157219409943, 1.0067999362945557, -0.8538832068443298, 0.6644020676612854, 0.59335857629776, -0.5595285892486572, -0.9382869601249695, -0.009161559864878654, -0.15721333026885986, -0.5540263652801514, 0.39091870188713074, 0.48084983229637146, 0.08406565338373184, -0.26778000593185425, -0.8349584341049194, -1.0593430995941162, 1.3899710178375244, 0.358209490776062, -0.39280620217323303, 0.0487525649368763, 0.0309262927621603, 0.34323278069496155, -0.32114672660827637, 0.4270182251930237, 0.31759384274482727, 0.09326523542404175, 0.27161508798599243, -0.9049891829490662, 0.013110284693539143, -0.09811946749687195, 0.19762110710144043, 0.1134057343006134, -1.2132065296173096, 1.1015596389770508, -0.22906585037708282, -0.23196417093276978, 0.03771756961941719, 0.6520265936851501, 0.15451093018054962, 0.20591944456100464, 0.44072234630584717, 0.724494457244873, 0.5537607669830322, 0.05337340757250786, 0.9744530320167542, -0.20773884654045105, 0.3291221261024475, 0.930463969707489, -0.026973692700266838, 0.8593277335166931, 0.19036802649497986, -0.1907135397195816, 0.2271021008491516, 0.6251394152641296, -0.3347858488559723, 0.6269909143447876, -0.1370118409395218, -0.0028907842934131622, -0.08402767032384872, -0.436649352312088, -0.48677098751068115, 0.4295174479484558, 0.12277097254991531, -0.28944194316864014, 0.07425913959741592, 0.24469053745269775, 0.07464375346899033, -0.3726036250591278, -0.33810263872146606, 0.4048776924610138, 0.14980125427246094, -0.44805023074150085, 0.7524328231811523, 0.059953708201646805, 0.7671759128570557, -0.6049485802650452, 0.09704165905714035, -0.10418760776519775, 0.22711707651615143, -0.15010111033916473, -0.8625026345252991, 0.273947536945343, -0.08496631681919098, 0.0013058498734608293, -0.00888910610228777, 0.6567502021789551, -0.1198599562048912, -0.497115820646286, 0.38365456461906433, -0.059457890689373016, 0.2766077220439911, -0.1819741576910019, -0.7539215087890625, 0.1977403610944748, 0.08402511477470398, -0.10342612117528915, 0.33505216240882874, 0.22813788056373596, -0.07952242344617844, 0.5638976693153381, 0.5237078070640564, -0.0771004781126976, 0.03599296882748604, -0.1091032326221466, 0.9602128267288208, -0.39110299944877625, -0.3688640296459198, -0.6043044924736023, 0.48034876585006714, -0.17467808723449707, -0.4550725221633911, 0.6587074995040894, 0.6625187397003174, 0.9077296853065491, -0.15093177556991577, 0.6195210814476013, -0.13634304702281952, 0.307670921087265, -0.6041436791419983, 0.5455892086029053, -0.7669798731803894, -0.022802051156759262, -0.2864900827407837, -0.7428807616233826, -0.10590098798274994, 0.5834537148475647, -0.23088765144348145, 0.0699186697602272, 0.6764281392097473, 0.6661461591720581, -0.28458577394485474, -0.023919370025396347, 0.17792919278144836, 0.13395167887210846, 0.19126807153224945, 0.6180225014686584, 0.5625361800193787, -0.8856503367424011, 0.571235179901123, -0.7728800177574158, -0.32310640811920166, -0.32234466075897217, -0.6851954460144043, -1.0066418647766113, -0.5510894060134888, -0.37164008617401123, -0.3106457591056824, -0.02081853151321411, 0.6492239236831665, 0.951529860496521, -0.6723227500915527, -0.30280330777168274, 0.17059706151485443, -0.24714821577072144, -0.20743604004383087, -0.19683513045310974, 0.5559473037719727, 0.2651314437389374, -0.49439170956611633, 0.14389201998710632, 0.14752255380153656, 0.2830226421356201, -0.09107412397861481, -0.0630650445818901, -0.2880980670452118, -0.1583125740289688, 0.517937421798706, 0.37737172842025757, -0.5309790968894958, -0.34175214171409607, 0.2193146049976349, 0.02673492394387722, 0.22588476538658142, 0.5400758981704712, -0.4585687518119812, 0.11421909183263779, 0.40025389194488525, 0.31908607482910156, 0.8803702592849731, 0.12621161341667175, 0.17683561146259308, -0.6114110350608826, 0.4441992938518524, 0.09007225930690765, 0.3896464407444, 0.2935117185115814, -0.40870529413223267, 0.7123985290527344, 0.4178171753883362, -0.6298210620880127, -0.8507373929023743, -0.0579315647482872, -1.1457817554473877, -0.18775902688503265, 1.201067566871643, -0.3172375559806824, -0.5709733963012695, 0.444275438785553, -0.25384312868118286, 0.2927404046058655, -0.3601190149784088, 0.42977577447891235, 0.3499408960342407, -0.005003661382943392, -0.3119119107723236, -0.7434642910957336, 0.44960057735443115, 0.18107904493808746, -0.6575520634651184, -0.14823871850967407, 0.3658909499645233, 0.49617594480514526, 0.1896854192018509, 0.6097794771194458, -0.21318116784095764, 0.3496275544166565, 0.03964051976799965, 0.14911116659641266, -0.22463363409042358, -0.5265356302261353, -0.42219075560569763, 0.05502944067120552, -0.19260184466838837, -0.4486231803894043 ]
facebook/timesformer-base-finetuned-k400
facebook
"2023-01-02T11:43:07Z"
13,411
18
transformers
[ "transformers", "pytorch", "timesformer", "video-classification", "vision", "arxiv:2102.05095", "license:cc-by-nc-4.0", "endpoints_compatible", "has_space", "region:us" ]
video-classification
"2022-10-07T19:03:04Z"
--- license: "cc-by-nc-4.0" tags: - vision - video-classification --- # TimeSformer (base-sized model, fine-tuned on Kinetics-400) TimeSformer model pre-trained on [Kinetics-400](https://www.deepmind.com/open-source/kinetics). It was introduced in the paper [TimeSformer: Is Space-Time Attention All You Need for Video Understanding?](https://arxiv.org/abs/2102.05095) by Tong et al. and first released in [this repository](https://github.com/facebookresearch/TimeSformer). Disclaimer: The team releasing TimeSformer did not write a model card for this model so this model card has been written by [fcakyon](https://github.com/fcakyon). ## Intended uses & limitations You can use the raw model for video classification into one of the 400 possible Kinetics-400 labels. ### How to use Here is how to use this model to classify a video: ```python from transformers import AutoImageProcessor, TimesformerForVideoClassification import numpy as np import torch video = list(np.random.randn(8, 3, 224, 224)) processor = AutoImageProcessor.from_pretrained("facebook/timesformer-base-finetuned-k400") model = TimesformerForVideoClassification.from_pretrained("facebook/timesformer-base-finetuned-k400") inputs = processor(video, return_tensors="pt") with torch.no_grad(): outputs = model(**inputs) logits = outputs.logits predicted_class_idx = logits.argmax(-1).item() print("Predicted class:", model.config.id2label[predicted_class_idx]) ``` For more code examples, we refer to the [documentation](https://huggingface.co/transformers/main/model_doc/timesformer.html#). ### BibTeX entry and citation info ```bibtex @inproceedings{bertasius2021space, title={Is Space-Time Attention All You Need for Video Understanding?}, author={Bertasius, Gedas and Wang, Heng and Torresani, Lorenzo}, booktitle={International Conference on Machine Learning}, pages={813--824}, year={2021}, organization={PMLR} } ```
[ -0.24946768581867218, -0.5611698627471924, 0.338874876499176, 0.10265883803367615, -0.1355995535850525, 0.10149689018726349, -0.012366294860839844, -0.04551221430301666, -0.027155250310897827, -0.11510308086872101, -0.7708982229232788, -0.3603387176990509, -0.8144950866699219, -0.45413729548454285, -0.3964100480079651, 0.9992108941078186, -0.286243200302124, 0.2081594467163086, 0.043560054153203964, -0.12042025476694107, -0.020160909742116928, -0.47064337134361267, -0.42167118191719055, -0.49860090017318726, 0.3785421550273895, 0.0478099100291729, 0.42697763442993164, 0.6657688617706299, 0.4681171178817749, 0.37351149320602417, -0.03303920477628708, -0.270220547914505, -0.3246135711669922, -0.5641260147094727, 0.01649867184460163, -0.27558866143226624, -0.33391982316970825, 0.12143450975418091, 0.7589182257652283, 0.4191616177558899, -0.050733644515275955, 0.6991297602653503, -0.026064740493893623, 0.38646969199180603, -0.7671226263046265, 0.20436055958271027, -0.2700606882572174, 0.5216832756996155, -0.13798213005065918, -0.2698926627635956, -0.36565259099006653, -0.18835490942001343, -0.016130926087498665, -0.5584478378295898, 0.723813533782959, -0.15388286113739014, 0.9445253610610962, 0.7483324408531189, -0.3058449923992157, 0.37258267402648926, -1.1073906421661377, 0.716460645198822, -0.5015740394592285, 0.6338509917259216, 0.004776972811669111, 0.9016934633255005, 0.05008123815059662, -0.8684283494949341, -0.5252722501754761, 0.15470729768276215, 0.24099211394786835, -0.015809914097189903, -0.4534669816493988, 0.19867657124996185, 0.7723393440246582, 0.48559126257896423, -0.689985454082489, 0.06069574132561684, -0.7666141390800476, -0.27695587277412415, 0.34900885820388794, 0.22183528542518616, 0.07642880827188492, -0.3448772430419922, -0.23470741510391235, -0.2627919316291809, 0.07867950201034546, 0.41003841161727905, 0.12357697635889053, -0.307776540517807, -0.44340625405311584, 0.7014891505241394, -0.25792965292930603, 0.6347203254699707, 0.33352065086364746, -0.2511366009712219, 0.3436000943183899, -0.09275181591510773, -0.5261648893356323, 0.07752712070941925, 0.7030291557312012, 0.6458976864814758, 0.08916281163692474, -0.08594579249620438, 0.2907550036907196, 0.553419291973114, 0.38158050179481506, -0.9907425045967102, -0.4172600209712982, 0.23054984211921692, -0.5362535119056702, -0.325418621301651, 0.0613897331058979, -0.5791041851043701, 0.24684691429138184, -0.2686014175415039, 0.7367009520530701, -0.21042072772979736, -0.06377959996461868, 0.11811048537492752, -0.21916766464710236, 0.3368998169898987, 0.18600550293922424, -0.6851735711097717, 0.1589439958333969, 0.19832025468349457, 0.8822185397148132, 0.08914314955472946, -0.3556709587574005, -0.5667276382446289, 0.24035176634788513, -0.021449148654937744, 0.6334801912307739, -0.22928766906261444, -0.011831430718302727, -0.047977469861507416, 0.30113711953163147, 0.022937556728720665, -0.22947433590888977, 0.3007652461528778, -0.6151543855667114, 0.4979052245616913, 0.31481626629829407, -0.5912389755249023, -0.35166671872138977, 0.0566258542239666, -0.5926289558410645, 0.9405640363693237, 0.0833330824971199, -0.4977365732192993, 0.5937660336494446, -0.7104540467262268, 0.00800600927323103, -0.022181980311870575, 0.0770072415471077, -0.5551609992980957, -0.07988323271274567, 0.05241861939430237, 0.5572008490562439, 0.25067928433418274, 0.5660330653190613, -0.6688711047172546, -0.2871597111225128, 0.18325375020503998, -0.5607233047485352, 0.6094459891319275, 0.2884949743747711, -0.4579138457775116, 0.26304811239242554, -0.8484298586845398, 0.24529516696929932, -0.15553027391433716, -0.22322817146778107, 0.37214040756225586, -0.11266911774873734, 0.27352985739707947, 0.5796021223068237, 0.04456915333867073, -0.5101794004440308, 0.15418940782546997, -0.022057760506868362, 0.7060796618461609, 0.6073145866394043, -0.07993260771036148, 0.545245885848999, -0.16145147383213043, 0.4719705581665039, -0.15195852518081665, 0.45970022678375244, 0.1440262347459793, -0.03761709854006767, -0.7524942755699158, 0.09539124369621277, -0.014153985306620598, 0.23668546974658966, -0.47388792037963867, 0.3262954354286194, -0.2976056933403015, -0.9016579985618591, -0.5096397399902344, 0.025244489312171936, 0.2962758541107178, 0.2829429507255554, 0.6182937622070312, -0.12710189819335938, -0.6847407817840576, -0.7595020532608032, -0.09743836522102356, 0.05626148357987404, -0.17354196310043335, 0.28419601917266846, 0.41213107109069824, -0.2383308857679367, 0.799767255783081, -0.6788185238838196, -0.20744358003139496, 0.032917529344558716, 0.1262417733669281, 0.3160144090652466, 0.3658179044723511, 0.7310632467269897, -0.6817963719367981, -0.30103060603141785, -0.4341655969619751, -0.8938264846801758, 0.22200699150562286, 0.14484860002994537, 0.011717872694134712, 0.09088646620512009, 0.5028790235519409, -0.5890430212020874, 0.6632235050201416, 0.5280709862709045, -0.384015828371048, 0.5150743126869202, -0.06189308688044548, 0.28396666049957275, -1.0422569513320923, 0.08514264971017838, 0.2074045091867447, -0.07490792870521545, -0.4367125928401947, -0.398337185382843, -0.025790266692638397, -0.45893728733062744, -0.8424726724624634, 0.7006654143333435, 0.021101588383316994, -0.05523247644305229, -0.24932372570037842, -0.160866841673851, -0.14499938488006592, 0.896206259727478, 0.14626066386699677, 0.4411483407020569, 0.36845582723617554, -0.9916744232177734, 0.500540554523468, 0.14006765186786652, -0.5535061955451965, 0.23836812376976013, -0.7806385159492493, -0.010253374464809895, -0.20568512380123138, 0.21468837559223175, -1.0670374631881714, -0.7385199069976807, 0.2780795991420746, -0.7107477188110352, 0.285415381193161, -0.34920352697372437, -0.2242526412010193, -0.7762632966041565, -0.1114615872502327, 0.6665443778038025, 0.27802738547325134, -0.5775418877601624, 0.5706592798233032, 0.33732837438583374, 0.3096751570701599, -0.7351605296134949, -0.6111928820610046, -0.47893601655960083, -0.2522624433040619, -0.6224365234375, 0.5232365727424622, -0.5043537616729736, 0.04101371765136719, 0.16069991886615753, -0.4371200203895569, -0.15944920480251312, -0.0689043402671814, 0.40024399757385254, 0.3280904293060303, 0.027201887220144272, 0.11315429210662842, -0.02972453087568283, -0.17411047220230103, 0.2056378275156021, -0.4392280578613281, 0.5216198563575745, -0.0821819007396698, -0.23158903419971466, -0.6415884494781494, 0.0019773414824157953, 0.5723167061805725, 0.08863557130098343, 0.5219533443450928, 1.128912329673767, -0.5760442018508911, -0.03721371293067932, -0.7458727359771729, -0.0710214376449585, -0.5151098966598511, 0.6272128820419312, 0.03788210451602936, -0.8843918442726135, 0.36368173360824585, 0.1978980451822281, -0.05272514000535011, 0.7135935425758362, 0.573738694190979, -0.256316602230072, 1.0221327543258667, 0.6734820604324341, -0.047831155359745026, 0.9264426827430725, -0.7228849530220032, -0.11709367483854294, -0.6211882829666138, -0.4466867446899414, -0.21822640299797058, -0.5347150564193726, -0.5241954922676086, -0.38118669390678406, 0.4250541627407074, -0.0016564980614930391, -0.691018283367157, 0.3394737243652344, -0.5151323080062866, 0.440647155046463, 0.3184174597263336, 0.1417616456747055, -0.12686289846897125, 0.17699772119522095, 0.3836725354194641, -0.271992564201355, -0.8066797852516174, -0.42917531728744507, 0.8484098315238953, 0.3534734845161438, 0.8080472946166992, 0.1441711038351059, 0.3233620524406433, 0.41433149576187134, 0.08283483237028122, -0.9147700071334839, 0.4659525156021118, -0.28079953789711, -0.9043762683868408, -0.08603452891111374, -0.24631589651107788, -0.6604151725769043, -0.23301734030246735, -0.14629970490932465, -0.7609999179840088, 0.0774930864572525, 0.3785508871078491, -0.5307230353355408, 0.6045289635658264, -0.6686517596244812, 1.2831768989562988, -0.41449031233787537, -0.37965503334999084, -0.20032070577144623, -0.5878528952598572, 0.14903198182582855, 0.21126537024974823, 0.08179531246423721, 0.06364629417657852, 0.42891785502433777, 1.1964306831359863, -0.4237031936645508, 0.8747389316558838, -0.3938608765602112, 0.42001286149024963, 0.38329488039016724, 0.013348552398383617, 0.11743182688951492, -0.05816761404275894, 0.4503247141838074, 0.2502835988998413, -0.06458713114261627, -0.3548724949359894, -0.6267189979553223, 0.46111375093460083, -1.0479248762130737, -0.37461957335472107, -0.3581877052783966, -0.2736095190048218, 0.18040849268436432, 0.3150419592857361, 0.7136616706848145, 0.5083514451980591, -0.10725922882556915, 0.3567507565021515, 0.618487536907196, -0.04712362214922905, 0.7038419246673584, 0.27195823192596436, -0.04304426908493042, -0.5215240716934204, 0.7422956824302673, 0.14865317940711975, 0.09738297760486603, 0.5069654583930969, -0.13638651371002197, -0.2095826417207718, -0.12749341130256653, -0.10566776990890503, 0.30779439210891724, -0.6262168288230896, -0.221013605594635, -0.6241713762283325, -0.5728281736373901, -0.3601800203323364, -0.12419374287128448, -0.4897533357143402, -0.4141136705875397, -0.5161381959915161, -0.37957504391670227, 0.3199231028556824, 0.5977912545204163, 0.025002390146255493, 0.6162667870521545, -0.8034960627555847, 0.24192968010902405, 0.48821061849594116, 0.6630459427833557, -0.00015913079550955445, -0.8759376406669617, -0.3696911633014679, -0.27524012327194214, -0.7291043400764465, -0.5979660749435425, 0.37381017208099365, 0.13158006966114044, 0.6512035131454468, 0.4725933074951172, -0.4116339385509491, 0.7622779011726379, -0.5746287703514099, 0.8790116310119629, 0.3221794068813324, -0.9325739741325378, 0.5957582592964172, -0.2265724241733551, 0.3392769694328308, 0.12196999788284302, 0.622026801109314, -0.5147796869277954, 0.13376671075820923, -0.9615672826766968, -0.6709303259849548, 1.0771191120147705, 0.10900019109249115, -0.016969827935099602, 0.300037145614624, 0.2689792811870575, -0.07534544169902802, 0.18688498437404633, -1.0586822032928467, -0.45330092310905457, -0.6390773057937622, -0.03191884607076645, -0.5260558724403381, -0.30486705899238586, 0.08451142907142639, -0.40088218450546265, 0.6353185176849365, 0.08994103968143463, 0.40901467204093933, 0.07660304009914398, -0.21748442947864532, -0.5720637440681458, 0.2322590947151184, 0.39627572894096375, 0.33885520696640015, -0.605836808681488, -0.13116741180419922, 0.08078490942716599, -0.4578762948513031, 0.374426931142807, 0.25698310136795044, -0.07755182683467865, 0.14886385202407837, 0.38991984724998474, 1.0823920965194702, 0.42886364459991455, -0.10461641848087311, 0.29750773310661316, 0.0981001928448677, -0.39486169815063477, -0.6830465197563171, 0.3151226043701172, -0.3658943474292755, 0.5800434350967407, 0.3302088975906372, 0.3646593987941742, 0.25319406390190125, -0.21315927803516388, 0.07849998027086258, 0.18531596660614014, -0.4632137417793274, -0.5720301270484924, 1.2308109998703003, -0.07694774866104126, -0.5512735247612, 0.4071245491504669, -0.188164621591568, -0.5308079719543457, 0.5041131973266602, 0.23704607784748077, 0.9103397727012634, -0.24498362839221954, 0.27742254734039307, 0.7975429892539978, -0.019860947504639626, -0.2943238914012909, 0.09191878885030746, -0.27776649594306946, -0.4708729684352875, -0.5976991057395935, -0.5601094365119934, -0.15984898805618286, 0.47837144136428833, -0.7465835213661194, 0.4187493622303009, -0.5952598452568054, -0.5518967509269714, 0.42051729559898376, 0.17709842324256897, -0.9227761626243591, 0.1931268572807312, 0.41451409459114075, 0.9844366908073425, -0.8799545168876648, 0.7442823648452759, 0.7469494938850403, -0.3977462351322174, -0.8628708720207214, -0.4085758924484253, 0.017449887469410896, -0.30504733324050903, 0.7952368855476379, 0.22219595313072205, -0.0594993494451046, 0.031593866646289825, -0.8992573618888855, -0.8926565051078796, 1.3345470428466797, 0.18290752172470093, -0.4488532841205597, -0.38453245162963867, -0.18891595304012299, 0.5793716907501221, -0.173126220703125, 0.2719878554344177, 0.11093795299530029, 0.11599598079919815, 0.16694219410419464, -0.7479674220085144, -0.43472543358802795, -0.5122417211532593, -0.10207317024469376, 0.2631538510322571, -0.9191070795059204, 0.8590130805969238, -0.33560264110565186, -0.05459576100111008, -0.04482113569974899, 0.7796833515167236, 0.21995313465595245, 0.6970840096473694, 0.36867210268974304, 0.6080389618873596, 0.557046115398407, -0.1421615481376648, 0.9551715850830078, 0.05568286404013634, 0.6833223104476929, 0.998268187046051, 0.36018311977386475, 0.4946425259113312, 0.4123576283454895, -0.5179951190948486, 0.5775271654129028, 0.695260226726532, -0.42476218938827515, 0.5781615972518921, -0.09692316502332687, 0.08062200248241425, -0.5789773464202881, 0.06740948557853699, -0.42380279302597046, 0.3599695563316345, 0.27812889218330383, -0.4391748309135437, -0.14048552513122559, 0.11761107295751572, -0.33000555634498596, -0.29775556921958923, -0.40607333183288574, 0.4067205488681793, -0.1471545696258545, -0.4849410057067871, 0.43695342540740967, -0.29914000630378723, 0.4802098274230957, -0.631574809551239, -0.08811479806900024, 0.07929571717977524, 0.5195431709289551, -0.3808465301990509, -0.8322505950927734, 0.01190952118486166, 0.23642894625663757, -0.5685481429100037, 0.06293386220932007, 0.45126014947891235, -0.4224657714366913, -0.46472063660621643, 0.24960888922214508, 0.0030486690811812878, 0.33064302802085876, 0.1047985777258873, -0.6345550417900085, 0.07341638207435608, 0.01675458252429962, -0.21673300862312317, 0.07019169628620148, 0.2122924029827118, 0.09099895507097244, 0.7444198131561279, 0.29808470606803894, -0.2575569450855255, 0.23830115795135498, 0.04735279455780983, 0.8093609809875488, -0.7173839211463928, -0.32815155386924744, -0.7744824886322021, 0.6167119741439819, 0.10250524431467056, -0.12553302943706512, 0.6431142687797546, 0.6729629635810852, 1.1890994310379028, -0.5036845207214355, 0.596032977104187, -0.08456059545278549, 0.29208770394325256, -0.4994840919971466, 0.45090797543525696, -0.7510623931884766, -0.12866972386837006, -0.5161766409873962, -1.027607798576355, -0.18080861866474152, 0.5956376194953918, -0.4297742545604706, 0.26391151547431946, 0.5467758178710938, 0.3810451626777649, -0.42945149540901184, -0.26617804169654846, 0.045313410460948944, 0.29246950149536133, 0.3501676619052887, 0.7086425423622131, 0.6571384072303772, -0.7785781621932983, 0.9572109580039978, -0.7369862198829651, -0.1426866501569748, -0.3919018507003784, -0.7835311889648438, -0.9909211993217468, -0.5270041823387146, -0.5015837550163269, -0.47018489241600037, -0.1992533802986145, 0.9310201406478882, 0.8708521723747253, -0.7823604345321655, -0.20000748336315155, 0.2526487112045288, -0.24557511508464813, -0.050329308956861496, -0.2662722170352936, 0.43351566791534424, -0.018543263897299767, -0.7773102521896362, 0.057665299624204636, -0.09725629538297653, 0.35700723528862, -0.13609541952610016, -0.13551372289657593, -0.019208857789635658, -0.5694575905799866, 0.49420133233070374, 0.4759858250617981, -0.5670760869979858, -0.3145463168621063, 0.29013198614120483, 0.16673175990581512, 0.09294530004262924, 0.5996692776679993, -0.6718167662620544, 0.55218505859375, 0.3108377456665039, 0.15404045581817627, 1.032089114189148, -0.05803147330880165, 0.2249215692281723, -0.770143985748291, 0.36785179376602173, 0.0048353904858231544, 0.5649076104164124, 0.292415589094162, -0.3344831168651581, 0.5701786875724792, 0.4251963198184967, -0.6956598162651062, -0.7428441047668457, 0.05445664003491402, -1.2920347452163696, -0.030833369120955467, 0.9944832921028137, 0.16267022490501404, -0.44228067994117737, 0.3759298324584961, -0.07486916333436966, 0.9123941659927368, -0.40560099482536316, 0.94353848695755, 0.775020182132721, 0.011246875859797001, -0.1257420778274536, -0.5110933780670166, 0.5186350345611572, 0.03263036161661148, -0.38060230016708374, -0.15195874869823456, 0.36827170848846436, 0.5466516613960266, 0.40098223090171814, 0.3835197985172272, -0.09297209978103638, 0.6138373613357544, -0.2335025817155838, 0.20763163268566132, -0.12442868947982788, -0.514629065990448, -0.5100135803222656, 0.05074542015790939, -0.24871277809143066, -0.32631102204322815 ]
facebook/mask2former-swin-tiny-coco-instance
facebook
"2023-09-11T20:46:03Z"
13,391
4
transformers
[ "transformers", "pytorch", "safetensors", "mask2former", "vision", "image-segmentation", "dataset:coco", "arxiv:2112.01527", "arxiv:2107.06278", "license:other", "endpoints_compatible", "has_space", "region:us" ]
image-segmentation
"2022-12-23T11:15:51Z"
--- license: other tags: - vision - image-segmentation datasets: - coco widget: - src: http://images.cocodataset.org/val2017/000000039769.jpg example_title: Cats - src: http://images.cocodataset.org/val2017/000000039770.jpg example_title: Castle --- # Mask2Former Mask2Former model trained on COCO instance segmentation (tiny-sized version, Swin backbone). It was introduced in the paper [Masked-attention Mask Transformer for Universal Image Segmentation ](https://arxiv.org/abs/2112.01527) and first released in [this repository](https://github.com/facebookresearch/Mask2Former/). Disclaimer: The team releasing Mask2Former did not write a model card for this model so this model card has been written by the Hugging Face team. ## Model description Mask2Former addresses instance, semantic and panoptic segmentation with the same paradigm: by predicting a set of masks and corresponding labels. Hence, all 3 tasks are treated as if they were instance segmentation. Mask2Former outperforms the previous SOTA, [MaskFormer](https://arxiv.org/abs/2107.06278) both in terms of performance an efficiency by (i) replacing the pixel decoder with a more advanced multi-scale deformable attention Transformer, (ii) adopting a Transformer decoder with masked attention to boost performance without without introducing additional computation and (iii) improving training efficiency by calculating the loss on subsampled points instead of whole masks. ![model image](https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/mask2former_architecture.png) ## Intended uses & limitations You can use this particular checkpoint for instance segmentation. See the [model hub](https://huggingface.co/models?search=mask2former) to look for other fine-tuned versions on a task that interests you. ### How to use Here is how to use this model: ```python import requests import torch from PIL import Image from transformers import AutoImageProcessor, Mask2FormerForUniversalSegmentation # load Mask2Former fine-tuned on COCO instance segmentation processor = AutoImageProcessor.from_pretrained("facebook/mask2former-swin-tiny-coco-instance") model = Mask2FormerForUniversalSegmentation.from_pretrained("facebook/mask2former-swin-tiny-coco-instance") url = "http://images.cocodataset.org/val2017/000000039769.jpg" image = Image.open(requests.get(url, stream=True).raw) inputs = processor(images=image, return_tensors="pt") with torch.no_grad(): outputs = model(**inputs) # model predicts class_queries_logits of shape `(batch_size, num_queries)` # and masks_queries_logits of shape `(batch_size, num_queries, height, width)` class_queries_logits = outputs.class_queries_logits masks_queries_logits = outputs.masks_queries_logits # you can pass them to processor for postprocessing result = processor.post_process_instance_segmentation(outputs, target_sizes=[image.size[::-1]])[0] # we refer to the demo notebooks for visualization (see "Resources" section in the Mask2Former docs) predicted_instance_map = result["segmentation"] ``` For more code examples, we refer to the [documentation](https://huggingface.co/docs/transformers/master/en/model_doc/mask2former).
[ -0.47210949659347534, -0.7171962261199951, 0.304209440946579, 0.19202347099781036, -0.3414834439754486, -0.10875687003135681, 0.09075779467821121, -0.7362002730369568, 0.1416492760181427, 0.5063074231147766, -0.5943973064422607, -0.2522273361682892, -0.7384774088859558, -0.36341339349746704, -0.1335573047399521, 0.8131075501441956, -0.03757697343826294, -0.07665760070085526, -0.3873581290245056, -0.04803707078099251, -0.3368426561355591, -0.36035865545272827, -0.9136658906936646, -0.3456381559371948, 0.19877193868160248, 0.44159752130508423, 0.3209177255630493, 0.5751248598098755, 0.5508897304534912, 0.3087400197982788, -0.11887018382549286, -0.02987723797559738, -0.5124284029006958, -0.1308123618364334, 0.1321324110031128, -0.5426529049873352, -0.2377440184354782, 0.14937064051628113, 0.5096020698547363, 0.25338125228881836, 0.09300198405981064, 0.4534571170806885, -0.05275028198957443, 0.5003269910812378, -0.5413320064544678, 0.2826105058193207, -0.4806826710700989, 0.16473069787025452, -0.09910913556814194, 0.4181325435638428, -0.3425942063331604, -0.11070415377616882, 0.08942555636167526, -0.3839816749095917, 0.5519728660583496, 0.04300740733742714, 1.0226982831954956, 0.2629656195640564, -0.09447174519300461, -0.09919855743646622, -0.4286428391933441, 0.7379276752471924, -0.38644489645957947, 0.22119829058647156, 0.3693241477012634, 0.6218043565750122, 0.22042664885520935, -1.1843249797821045, -0.4006839096546173, 0.22528761625289917, -0.16938066482543945, 0.08866743743419647, -0.32581648230552673, 0.023659249767661095, 0.411791056394577, 0.40241947770118713, -0.5112793445587158, 0.06996739655733109, -0.9031780362129211, -0.3355358839035034, 0.670326828956604, -0.15741300582885742, 0.3325613737106323, -0.2567110061645508, -0.5408774614334106, -0.2859151065349579, -0.32739153504371643, 0.501764178276062, 0.14656656980514526, -0.25561073422431946, -0.28553298115730286, 0.5427600741386414, -0.07101897150278091, 0.6642234325408936, 0.346978098154068, -0.1266578584909439, 0.12455791234970093, 0.18363358080387115, -0.3852243423461914, 0.08741908520460129, 0.6998391151428223, 0.3986102044582367, 0.02032564952969551, 0.07217875123023987, -0.05768445134162903, 0.2075260728597641, 0.29641371965408325, -1.292036771774292, -0.607257604598999, 0.21149525046348572, -0.38082975149154663, -0.42373865842819214, 0.26082053780555725, -0.756611704826355, 0.03715028613805771, -0.026448126882314682, 0.4229952394962311, -0.2870246469974518, -0.06083960086107254, -0.05114270746707916, -0.18954434990882874, 0.42743393778800964, 0.26143231987953186, -1.019463062286377, 0.4387434124946594, 0.5089263916015625, 0.9994447231292725, -0.0916300117969513, 0.13001447916030884, -0.24502669274806976, -0.00007039729098323733, -0.2625153958797455, 1.0143214464187622, -0.40699514746665955, -0.08401761949062347, -0.3348459303379059, 0.35779640078544617, -0.28769510984420776, -0.6547405123710632, 0.395649254322052, -0.4839787781238556, 0.4019886255264282, -0.1716337502002716, -0.3272727429866791, -0.6281765103340149, 0.04021400958299637, -0.5127489566802979, 1.2791637182235718, 0.514662504196167, -0.522936224937439, 0.18446630239486694, -0.57869553565979, -0.18549346923828125, -0.06451553106307983, -0.10014668852090836, -0.9520137310028076, 0.048380911350250244, 0.36509427428245544, 0.4757474958896637, -0.2639995813369751, -0.03720296919345856, -0.31397196650505066, -0.24677464365959167, 0.04394581913948059, 0.17819613218307495, 0.8856894969940186, 0.14096316695213318, -0.6292004585266113, 0.3523608148097992, -0.4453411102294922, 0.12926778197288513, 0.4118858277797699, 0.23563551902770996, 0.14672739803791046, -0.41450193524360657, 0.31659814715385437, 0.6323684453964233, -0.009356744587421417, -0.5407739281654358, 0.18603986501693726, -0.12876950204372406, 0.7764847874641418, 0.5952191948890686, 0.09682487696409225, 0.45581918954849243, -0.18820509314537048, 0.39527350664138794, 0.06694754958152771, 0.4695105254650116, -0.08546508848667145, -0.7360737323760986, -0.9071934223175049, -0.41276517510414124, 0.0577172227203846, 0.25636056065559387, -0.34875431656837463, 0.3521800935268402, 0.209097757935524, -0.6801517009735107, -0.4678335189819336, 0.0002861980174202472, 0.43267083168029785, 0.6354438662528992, 0.3655916750431061, -0.5915489196777344, -0.7341505289077759, -1.078258752822876, 0.25949302315711975, 0.06788649410009384, -0.10935840755701065, 0.37968525290489197, 0.5827997326850891, -0.41409632563591003, 0.9230427145957947, -0.6859085559844971, -0.44803962111473083, -0.2434389591217041, -0.032220326364040375, -0.1030326783657074, 0.6890432834625244, 0.7601675987243652, -0.806846022605896, -0.37206339836120605, -0.3561727702617645, -0.8053470849990845, 0.0983305349946022, 0.08138710260391235, -0.3350233733654022, 0.24489553272724152, 0.3414326012134552, -0.40722203254699707, 0.5243992209434509, 0.4923549294471741, -0.300317645072937, 0.5670869946479797, 0.0829399898648262, -0.02307799644768238, -0.841692328453064, 0.11346965283155441, 0.1058071181178093, -0.35294970870018005, -0.4774991273880005, 0.11387721449136734, 0.1595008671283722, -0.21816407144069672, -0.6201198697090149, 0.5005666017532349, -0.62459397315979, -0.3521329462528229, -0.28026366233825684, -0.26223722100257874, 0.2317509651184082, 0.706022322177887, 0.34230005741119385, 0.49611127376556396, 0.7647135853767395, -0.4301592707633972, 0.4047252833843231, 0.28789931535720825, -0.44345730543136597, 0.4093771278858185, -1.0184732675552368, 0.4677591323852539, -0.005046139005571604, 0.4137585759162903, -1.12160062789917, -0.5761054158210754, 0.5090702772140503, -0.3832968473434448, 0.4133498966693878, -0.3379618227481842, -0.2751407027244568, -0.8159257173538208, -0.4467168152332306, 0.7207260131835938, 0.810861349105835, -0.6226603984832764, 0.19592301547527313, 0.5015010237693787, 0.15695257484912872, -0.190029576420784, -0.8464091420173645, -0.2261802852153778, -0.23210333287715912, -0.9044205546379089, 0.45575055480003357, -0.02994636632502079, 0.047947388142347336, 0.0037825647741556168, -0.2659381330013275, -0.08805360645055771, -0.3193468451499939, 0.4839104115962982, 0.3714038133621216, -0.11824382841587067, -0.40332654118537903, 0.14318498969078064, -0.20797759294509888, 0.10854055732488632, -0.41587796807289124, 0.6514996290206909, -0.2331051081418991, -0.22664839029312134, -0.7294299602508545, 0.020708072930574417, 0.3641187250614166, -0.22385439276695251, 0.5855960845947266, 1.0256632566452026, -0.7080153822898865, -0.06685905903577805, -0.8593608140945435, -0.46567755937576294, -0.47958073019981384, 0.2513948380947113, -0.4525647461414337, -0.890193521976471, 0.5887588262557983, 0.15472915768623352, -0.09770605713129044, 0.7075179219245911, 0.5541384816169739, -0.012996695935726166, 1.0520623922348022, 0.6918694376945496, 0.31821754574775696, 0.5859005451202393, -0.9413756728172302, 0.1403759866952896, -1.265981674194336, -0.6939280033111572, -0.09657511115074158, -0.5157240033149719, -0.2096063643693924, -0.8119013905525208, 0.514431893825531, 0.5822805762290955, -0.12465819716453552, 0.5540813207626343, -1.0348789691925049, 0.2583805322647095, 0.5594646334648132, 0.24340003728866577, -0.26140931248664856, 0.3431221544742584, 0.1368049830198288, -0.050721608102321625, -0.6827089786529541, -0.41134464740753174, 0.7289703488349915, 0.5002877116203308, 0.46560361981391907, -0.2512718141078949, 0.4193292260169983, 0.018202969804406166, 0.13963058590888977, -0.8362783789634705, 0.4097972512245178, 0.1311502903699875, -0.56902015209198, -0.1497422754764557, -0.024889107793569565, -0.745261013507843, 0.3803568482398987, 0.005821499042212963, -1.180018663406372, 0.44330090284347534, 0.16917306184768677, -0.34264424443244934, 0.3888108432292938, -0.7313851714134216, 1.1208953857421875, -0.03319578617811203, -0.4579847455024719, 0.08575934916734695, -0.7584167718887329, 0.5416112542152405, 0.0844368115067482, -0.12100861966609955, -0.19076189398765564, 0.27663248777389526, 1.2298167943954468, -0.5383539795875549, 0.846969723701477, -0.24849119782447815, 0.2273673713207245, 0.7676854729652405, -0.16373556852340698, 0.29800480604171753, 0.21522149443626404, 0.07124420255422592, 0.4121401906013489, 0.039775580167770386, -0.5362104177474976, -0.5592493414878845, 0.5407986044883728, -0.8273091912269592, -0.41318973898887634, -0.3405088186264038, -0.2749217748641968, 0.20055346190929413, 0.12453678250312805, 0.8033334612846375, 0.4126238226890564, 0.004290360491722822, 0.10223156958818436, 0.5793491005897522, 0.044634975492954254, 0.4398246705532074, -0.06304460763931274, -0.1558414250612259, -0.4442335367202759, 0.6825262904167175, 0.03822636604309082, 0.24710671603679657, 0.19804048538208008, 0.20981131494045258, -0.471230685710907, -0.15115031599998474, -0.6937998533248901, 0.3757748305797577, -0.461942195892334, -0.41392824053764343, -0.8728480339050293, -0.43244481086730957, -0.7996018528938293, -0.37831342220306396, -0.5216395854949951, -0.495171457529068, -0.35518765449523926, -0.023478589951992035, 0.4047122299671173, 0.5125907063484192, -0.16286635398864746, 0.5526646971702576, -0.30451107025146484, 0.3177723288536072, 0.6256897449493408, 0.2374400794506073, -0.1595878303050995, -0.6225380897521973, -0.048583827912807465, 0.020578183233737946, -0.5434327721595764, -0.756155788898468, 0.27818626165390015, 0.03393683210015297, 0.3513637185096741, 0.6511468291282654, -0.2103671282529831, 0.6886142492294312, -0.15959037840366364, 0.7257688045501709, 0.4692099094390869, -0.8046600222587585, 0.7582978010177612, -0.049422550946474075, 0.06700584292411804, 0.26234713196754456, 0.12274169921875, -0.5992032885551453, -0.11340855807065964, -0.810549259185791, -0.8832938075065613, 1.262655258178711, 0.2699863612651825, -0.12638483941555023, 0.2260439395904541, 0.4679328501224518, -0.051547206938266754, 0.050469186156988144, -0.6630845069885254, -0.3471354842185974, -0.41144800186157227, 0.10764618217945099, -0.08206087350845337, -0.748925507068634, -0.053933627903461456, -0.49721577763557434, 0.6923795342445374, 0.009223987348377705, 0.6526674628257751, 0.30260583758354187, -0.2917388677597046, -0.27813857793807983, -0.39492708444595337, 0.5283334255218506, 0.47763049602508545, -0.2732061445713043, 0.158700093626976, 0.038720693439245224, -0.5092941522598267, 0.026125067844986916, 0.10675912350416183, -0.3397272527217865, -0.14725536108016968, 0.29880958795547485, 1.0634766817092896, 0.12095388025045395, -0.24236911535263062, 0.48562169075012207, 0.09031770378351212, -0.2937648892402649, -0.339515745639801, 0.17527905106544495, 0.001049186335876584, 0.25134971737861633, 0.15818651020526886, 0.2762581408023834, 0.300527423620224, -0.3778493106365204, 0.20973646640777588, 0.23923879861831665, -0.6071235537528992, -0.39767491817474365, 0.9584059715270996, -0.15745648741722107, -0.24916014075279236, 0.657172679901123, -0.29360130429267883, -0.8119941353797913, 1.0855690240859985, 0.7321760058403015, 0.7984440326690674, -0.3721300959587097, 0.3132209777832031, 0.7606210708618164, 0.21998454630374908, -0.13881482183933258, -0.10095328837633133, -0.11660613119602203, -0.4677565395832062, 0.007788653485476971, -0.6672006249427795, -0.061365555971860886, 0.16724620759487152, -0.6990545988082886, 0.33338040113449097, -0.6231845617294312, -0.06357647478580475, 0.13681595027446747, 0.15681923925876617, -0.8021801710128784, 0.4305657148361206, 0.22055363655090332, 0.6367878317832947, -0.7746688723564148, 0.7021336555480957, 0.9643673300743103, -0.41297605633735657, -0.8099513053894043, -0.41503846645355225, 0.12192373722791672, -1.0256937742233276, 0.2932402789592743, 0.7265556454658508, 0.029010800644755363, -0.07209509611129761, -0.5645174384117126, -0.8118525743484497, 1.2781457901000977, 0.18673297762870789, -0.3752021789550781, 0.08663026988506317, 0.04576807841658592, 0.2788095474243164, -0.5249462723731995, 0.522637665271759, 0.561052680015564, 0.3747725784778595, 0.5828977823257446, -0.47389551997184753, 0.21885134279727936, -0.3246552348136902, 0.3358619809150696, -0.05429105833172798, -0.9229644536972046, 0.8278869390487671, -0.4600856900215149, -0.1480889916419983, -0.008996059186756611, 0.8007367849349976, 0.22337596118450165, 0.42460086941719055, 0.5376513600349426, 0.6682214140892029, 0.5522878170013428, -0.17302116751670837, 0.9764732718467712, 0.016455382108688354, 0.6344685554504395, 0.7866120338439941, 0.20869269967079163, 0.4533683955669403, 0.26306667923927307, -0.08344494551420212, 0.546483039855957, 1.004842758178711, -0.42095816135406494, 0.444350004196167, 0.14863505959510803, -0.05902489274740219, -0.14319422841072083, -0.031637951731681824, -0.45599833130836487, 0.6016317009925842, 0.2591414749622345, -0.4113808870315552, -0.051693808287382126, 0.13439138233661652, 0.05470283329486847, -0.35174286365509033, -0.2052198052406311, 0.6827513575553894, 0.053713008761405945, -0.5869765877723694, 0.6838095188140869, 0.27633118629455566, 0.6388562917709351, -0.3780984580516815, 0.011805875226855278, -0.15889377892017365, 0.1546442210674286, -0.40956050157546997, -0.6086407899856567, 0.5282379388809204, -0.16111858189105988, -0.188878133893013, 0.02042018622159958, 0.8694101572036743, -0.37942931056022644, -0.827658474445343, 0.1723339557647705, 0.03256050497293472, 0.46998628973960876, -0.33615654706954956, -0.8925464749336243, 0.4850023090839386, 0.011969813145697117, -0.44550207257270813, 0.23949839174747467, 0.0014243763871490955, -0.24122916162014008, 0.39032241702079773, 0.569453775882721, -0.38598567247390747, 0.022656619548797607, -0.05517905578017235, 0.9000775218009949, -0.33059388399124146, -0.4286194443702698, -0.624509334564209, 0.49866098165512085, -0.2814025580883026, -0.18426665663719177, 0.5183712244033813, 0.9364407658576965, 0.9194597601890564, -0.1900903582572937, 0.4967653155326843, -0.25162485241889954, -0.004467380233108997, -0.3273969888687134, 0.5951794385910034, -0.5307986736297607, -0.22335973381996155, -0.29808303713798523, -1.1555380821228027, -0.25708621740341187, 1.000834345817566, -0.45331713557243347, 0.2062901258468628, 0.5798622965812683, 0.8385131359100342, -0.39043858647346497, -0.1255112588405609, 0.1423957496881485, -0.038504622876644135, 0.3292803466320038, 0.49657201766967773, 0.3571702241897583, -0.7380551695823669, 0.37877461314201355, -0.9249219298362732, -0.4988456070423126, -0.4222457706928253, -0.35268548130989075, -0.9491540193557739, -0.7070789337158203, -0.5598823428153992, -0.3580073416233063, -0.060201775282621384, 0.4487517774105072, 1.3860841989517212, -0.8550074696540833, -0.1632685661315918, -0.08222991228103638, 0.07680217921733856, -0.2637110948562622, -0.32109081745147705, 0.6875876188278198, -0.1310732513666153, -0.9398455023765564, -0.06090111657977104, 0.28512075543403625, 0.05933075770735741, 0.03282850980758667, 0.0025749439373612404, 0.12577693164348602, -0.18062132596969604, 0.7412970662117004, 0.3979887068271637, -0.7480162978172302, -0.3451923429965973, -0.15281647443771362, -0.04940318316221237, 0.24068157374858856, 0.7812134623527527, -0.6390129327774048, 0.4647158980369568, 0.2269108146429062, 0.22769570350646973, 1.1359143257141113, 0.07181394845247269, 0.018659410998225212, -0.5495155453681946, 0.44924864172935486, 0.12111493945121765, 0.47540798783302307, 0.36020904779434204, -0.6042898893356323, 0.5800319314002991, 0.4201638698577881, -0.5121844410896301, -0.639411449432373, 0.24151061475276947, -1.3986265659332275, -0.17430508136749268, 1.1020786762237549, -0.1583932638168335, -0.5638930201530457, 0.2792268991470337, -0.5027753710746765, 0.4842188060283661, -0.27465957403182983, 0.8330546617507935, 0.1886262148618698, -0.37522727251052856, -0.4834119975566864, -0.2601432800292969, 0.5357519388198853, 0.13351981341838837, -0.7425862550735474, -0.4590774476528168, 0.4342247545719147, 0.6243225336074829, 0.12601079046726227, 0.6738612651824951, -0.36028820276260376, 0.31755757331848145, 0.12640008330345154, 0.338119775056839, -0.293287456035614, -0.3042793571949005, -0.17148113250732422, 0.1543169766664505, -0.32166922092437744, -0.5623438358306885 ]
lllyasviel/control_v11e_sd15_shuffle
lllyasviel
"2023-05-04T18:51:03Z"
13,353
7
diffusers
[ "diffusers", "art", "controlnet", "stable-diffusion", "controlnet-v1-1", "image-to-image", "arxiv:2302.05543", "base_model:runwayml/stable-diffusion-v1-5", "license:openrail", "has_space", "diffusers:ControlNetModel", "region:us" ]
image-to-image
"2023-04-14T19:25:23Z"
--- license: openrail base_model: runwayml/stable-diffusion-v1-5 tags: - art - controlnet - stable-diffusion - controlnet-v1-1 - image-to-image duplicated_from: ControlNet-1-1-preview/control_v11e_sd15_shuffle --- # Controlnet - v1.1 - *shuffle Version* **Controlnet v1.1** was released in [lllyasviel/ControlNet-v1-1](https://huggingface.co/lllyasviel/ControlNet-v1-1) by [Lvmin Zhang](https://huggingface.co/lllyasviel). This checkpoint is a conversion of [the original checkpoint](https://huggingface.co/lllyasviel/ControlNet-v1-1/blob/main/control_v11e_sd15_shuffle.pth) into `diffusers` format. It can be used in combination with **Stable Diffusion**, such as [runwayml/stable-diffusion-v1-5](https://huggingface.co/runwayml/stable-diffusion-v1-5). For more details, please also have a look at the [🧨 Diffusers docs](https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion/controlnet). ControlNet is a neural network structure to control diffusion models by adding extra conditions. ![img](./sd.png) This checkpoint corresponds to the ControlNet conditioned on **shuffle images**. ## Model Details - **Developed by:** Lvmin Zhang, Maneesh Agrawala - **Model type:** Diffusion-based text-to-image generation model - **Language(s):** English - **License:** [The CreativeML OpenRAIL M license](https://huggingface.co/spaces/CompVis/stable-diffusion-license) is an [Open RAIL M license](https://www.licenses.ai/blog/2022/8/18/naming-convention-of-responsible-ai-licenses), adapted from the work that [BigScience](https://bigscience.huggingface.co/) and [the RAIL Initiative](https://www.licenses.ai/) are jointly carrying in the area of responsible AI licensing. See also [the article about the BLOOM Open RAIL license](https://bigscience.huggingface.co/blog/the-bigscience-rail-license) on which our license is based. - **Resources for more information:** [GitHub Repository](https://github.com/lllyasviel/ControlNet), [Paper](https://arxiv.org/abs/2302.05543). - **Cite as:** @misc{zhang2023adding, title={Adding Conditional Control to Text-to-Image Diffusion Models}, author={Lvmin Zhang and Maneesh Agrawala}, year={2023}, eprint={2302.05543}, archivePrefix={arXiv}, primaryClass={cs.CV} } ## Introduction Controlnet was proposed in [*Adding Conditional Control to Text-to-Image Diffusion Models*](https://arxiv.org/abs/2302.05543) by Lvmin Zhang, Maneesh Agrawala. The abstract reads as follows: *We present a neural network structure, ControlNet, to control pretrained large diffusion models to support additional input conditions. The ControlNet learns task-specific conditions in an end-to-end way, and the learning is robust even when the training dataset is small (< 50k). Moreover, training a ControlNet is as fast as fine-tuning a diffusion model, and the model can be trained on a personal devices. Alternatively, if powerful computation clusters are available, the model can scale to large amounts (millions to billions) of data. We report that large diffusion models like Stable Diffusion can be augmented with ControlNets to enable conditional inputs like edge maps, segmentation maps, keypoints, etc. This may enrich the methods to control large diffusion models and further facilitate related applications.* ## Example It is recommended to use the checkpoint with [Stable Diffusion v1-5](https://huggingface.co/runwayml/stable-diffusion-v1-5) as the checkpoint has been trained on it. Experimentally, the checkpoint can be used with other diffusion models such as dreamboothed stable diffusion. **Note**: If you want to process an image to create the auxiliary conditioning, external dependencies are required as shown below: 1. Install https://github.com/patrickvonplaten/controlnet_aux ```sh $ pip install controlnet_aux==0.3.0 ``` 2. Let's install `diffusers` and related packages: **IMPORTANT:** Make sure that you have `diffusers.__version__ >= 0.16.0.dev0` installed! ``` $ pip install git+https://github.com/huggingface/diffusers.git transformers accelerate ``` 3. Run code: ```python import torch import os from huggingface_hub import HfApi from pathlib import Path from diffusers.utils import load_image from PIL import Image import numpy as np from controlnet_aux import ContentShuffleDetector from diffusers import ( ControlNetModel, StableDiffusionControlNetPipeline, UniPCMultistepScheduler, ) checkpoint = "lllyasviel/control_v11e_sd15_shuffle" image = load_image( "https://huggingface.co/lllyasviel/control_v11e_sd15_shuffle/resolve/main/images/input.png" ) prompt = "New York" processor = ContentShuffleDetector() control_image = processor(image) control_image.save("./images/control.png") controlnet = ControlNetModel.from_pretrained(checkpoint, torch_dtype=torch.float16) pipe = StableDiffusionControlNetPipeline.from_pretrained( "runwayml/stable-diffusion-v1-5", controlnet=controlnet, torch_dtype=torch.float16 ) pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config) pipe.enable_model_cpu_offload() generator = torch.manual_seed(33) image = pipe(prompt, num_inference_steps=30, generator=generator, image=control_image).images[0] image.save('images/image_out.png') ``` ![bird](./images/input.png) ![bird_canny](./images/control.png) ![bird_canny_out](./images/image_out.png) ## Other released checkpoints v1-1 The authors released 14 different checkpoints, each trained with [Stable Diffusion v1-5](https://huggingface.co/runwayml/stable-diffusion-v1-5) on a different type of conditioning: | Model Name | Control Image Overview| Condition Image | Control Image Example | Generated Image Example | |---|---|---|---|---| |[lllyasviel/control_v11p_sd15_canny](https://huggingface.co/lllyasviel/control_v11p_sd15_canny)<br/> | *Trained with canny edge detection* | A monochrome image with white edges on a black background.|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_canny/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11p_sd15_canny/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_canny/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11p_sd15_canny/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11e_sd15_ip2p](https://huggingface.co/lllyasviel/control_v11e_sd15_ip2p)<br/> | *Trained with pixel to pixel instruction* | No condition .|<a href="https://huggingface.co/lllyasviel/control_v11e_sd15_ip2p/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11e_sd15_ip2p/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11e_sd15_ip2p/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11e_sd15_ip2p/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11p_sd15_inpaint](https://huggingface.co/lllyasviel/control_v11p_sd15_inpaint)<br/> | Trained with image inpainting | No condition.|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_inpaint/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11p_sd15_inpaint/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_inpaint/resolve/main/images/output.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11p_sd15_inpaint/resolve/main/images/output.png"/></a>| |[lllyasviel/control_v11p_sd15_mlsd](https://huggingface.co/lllyasviel/control_v11p_sd15_mlsd)<br/> | Trained with multi-level line segment detection | An image with annotated line segments.|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_mlsd/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11p_sd15_mlsd/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_mlsd/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11p_sd15_mlsd/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11f1p_sd15_depth](https://huggingface.co/lllyasviel/control_v11f1p_sd15_depth)<br/> | Trained with depth estimation | An image with depth information, usually represented as a grayscale image.|<a href="https://huggingface.co/lllyasviel/control_v11f1p_sd15_depth/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11f1p_sd15_depth/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11f1p_sd15_depth/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11f1p_sd15_depth/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11p_sd15_normalbae](https://huggingface.co/lllyasviel/control_v11p_sd15_normalbae)<br/> | Trained with surface normal estimation | An image with surface normal information, usually represented as a color-coded image.|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_normalbae/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11p_sd15_normalbae/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_normalbae/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11p_sd15_normalbae/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11p_sd15_seg](https://huggingface.co/lllyasviel/control_v11p_sd15_seg)<br/> | Trained with image segmentation | An image with segmented regions, usually represented as a color-coded image.|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_seg/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11p_sd15_seg/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_seg/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11p_sd15_seg/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11p_sd15_lineart](https://huggingface.co/lllyasviel/control_v11p_sd15_lineart)<br/> | Trained with line art generation | An image with line art, usually black lines on a white background.|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_lineart/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11p_sd15_lineart/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_lineart/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11p_sd15_lineart/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11p_sd15s2_lineart_anime](https://huggingface.co/lllyasviel/control_v11p_sd15s2_lineart_anime)<br/> | Trained with anime line art generation | An image with anime-style line art.|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15s2_lineart_anime/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11p_sd15s2_lineart_anime/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15s2_lineart_anime/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11p_sd15s2_lineart_anime/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11p_sd15_openpose](https://huggingface.co/lllyasviel/control_v11p_sd15s2_lineart_anime)<br/> | Trained with human pose estimation | An image with human poses, usually represented as a set of keypoints or skeletons.|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_openpose/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11p_sd15_openpose/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_openpose/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11p_sd15_openpose/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11p_sd15_scribble](https://huggingface.co/lllyasviel/control_v11p_sd15_scribble)<br/> | Trained with scribble-based image generation | An image with scribbles, usually random or user-drawn strokes.|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_scribble/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11p_sd15_scribble/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_scribble/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11p_sd15_scribble/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11p_sd15_softedge](https://huggingface.co/lllyasviel/control_v11p_sd15_softedge)<br/> | Trained with soft edge image generation | An image with soft edges, usually to create a more painterly or artistic effect.|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_softedge/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11p_sd15_softedge/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_softedge/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11p_sd15_softedge/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11e_sd15_shuffle](https://huggingface.co/lllyasviel/control_v11e_sd15_shuffle)<br/> | Trained with image shuffling | An image with shuffled patches or regions.|<a href="https://huggingface.co/lllyasviel/control_v11e_sd15_shuffle/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11e_sd15_shuffle/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11e_sd15_shuffle/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11e_sd15_shuffle/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11f1e_sd15_tile](https://huggingface.co/lllyasviel/control_v11f1e_sd15_tile)<br/> | Trained with image tiling | A blurry image or part of an image .|<a href="https://huggingface.co/lllyasviel/control_v11f1e_sd15_tile/resolve/main/images/original.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11f1e_sd15_tile/resolve/main/images/original.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11f1e_sd15_tile/resolve/main/images/output.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11f1e_sd15_tile/resolve/main/images/output.png"/></a>| ## More information For more information, please also have a look at the [Diffusers ControlNet Blog Post](https://huggingface.co/blog/controlnet) and have a look at the [official docs](https://github.com/lllyasviel/ControlNet-v1-1-nightly).
[ -0.5852648019790649, -0.5848404169082642, 0.11129805445671082, 0.6051007509231567, -0.286275714635849, -0.23213721811771393, 0.0730333998799324, -0.5489548444747925, 0.6063562035560608, 0.2595425248146057, -0.7317165732383728, -0.34933584928512573, -0.7208847403526306, -0.15809741616249084, -0.16083602607250214, 0.8019709587097168, -0.26762130856513977, -0.019254431128501892, 0.11884818971157074, -0.08720362186431885, -0.08158788084983826, -0.12704011797904968, -1.2170422077178955, -0.48505449295043945, 0.4689920246601105, 0.05647972226142883, 0.5460927486419678, 0.521725594997406, 0.46678194403648376, 0.3723098039627075, -0.3772043287754059, 0.06446990370750427, -0.2757613956928253, -0.18254354596138, 0.19161446392536163, -0.13909509778022766, -0.6749873161315918, 0.09536641091108322, 0.6961836218833923, 0.2660648226737976, -0.038160573691129684, -0.20744666457176208, 0.1207471713423729, 0.68231201171875, -0.46499186754226685, -0.15713147819042206, -0.1508225053548813, 0.27381837368011475, -0.16477623581886292, 0.11493077874183655, -0.16769157350063324, -0.31738436222076416, 0.09789382666349411, -0.7477265000343323, -0.11194540560245514, -0.11932232230901718, 1.3154696226119995, 0.284432977437973, -0.40313199162483215, -0.06113026291131973, -0.20327264070510864, 0.6207500100135803, -0.7644249200820923, 0.10361100733280182, 0.11729872226715088, 0.2164871096611023, -0.23003678023815155, -0.9279306530952454, -0.5022911429405212, -0.12102096527814865, -0.09111512452363968, 0.4593154788017273, -0.35491764545440674, 0.03806497901678085, 0.25375139713287354, 0.2237212359905243, -0.3885674774646759, 0.26121315360069275, -0.2933427691459656, -0.36692190170288086, 0.6409220099449158, -0.005705838557332754, 0.6190333962440491, 0.06645108014345169, -0.5484599471092224, -0.044824667274951935, -0.3412700593471527, 0.35968396067619324, 0.2594852149486542, -0.15357503294944763, -0.790705680847168, 0.4219505190849304, -0.03303965926170349, 0.7229502201080322, 0.4775547385215759, -0.17652125656604767, 0.49949121475219727, -0.1423739343881607, -0.3818581700325012, -0.3002198040485382, 1.0115797519683838, 0.4969761371612549, 0.12187334895133972, -0.020109748467803, -0.1572466492652893, -0.16385456919670105, -0.053088534623384476, -1.160380482673645, -0.18445731699466705, 0.23568324744701385, -0.5606374740600586, -0.3694661557674408, -0.15614017844200134, -0.7166189551353455, -0.2280384749174118, -0.05672444775700569, 0.31979238986968994, -0.6078451871871948, -0.48306411504745483, 0.15811558067798615, -0.5037055015563965, 0.5137307643890381, 0.6059900522232056, -0.45334774255752563, 0.17712153494358063, 0.13388967514038086, 0.9821310639381409, -0.2843954563140869, -0.15805724263191223, -0.2592868208885193, -0.11808646470308304, -0.2991916239261627, 0.5058175325393677, -0.13363026082515717, -0.10985860228538513, -0.06487513333559036, 0.32449787855148315, -0.14032451808452606, -0.3480883538722992, 0.37427470088005066, -0.3368871212005615, 0.1847153604030609, -0.06044711917638779, -0.3727295398712158, -0.1246020719408989, 0.24746739864349365, -0.4649146795272827, 0.7403361201286316, 0.24461300671100616, -1.0676923990249634, 0.3340466618537903, -0.456877738237381, -0.22528591752052307, -0.2501402199268341, 0.15695933997631073, -0.7425879240036011, -0.4045204222202301, 0.013349625281989574, 0.5601596832275391, 0.015732865780591965, -0.14938046038150787, -0.4927073121070862, -0.033406876027584076, 0.18245916068553925, -0.07748877257108688, 1.2310410737991333, 0.16525287926197052, -0.5804955363273621, 0.1933813840150833, -0.6945719718933105, 0.03396182134747505, 0.1657031625509262, -0.2378428727388382, 0.06965821236371994, -0.30726346373558044, 0.1597694754600525, 0.6283794045448303, 0.36576101183891296, -0.6613543033599854, 0.16275735199451447, -0.23449358344078064, 0.4339902400970459, 0.6218252778053284, 0.20607678592205048, 0.6256434917449951, -0.5429293513298035, 0.5615296363830566, 0.3103214502334595, 0.31149059534072876, 0.09897392243146896, -0.5178106427192688, -0.9844436049461365, -0.6103655099868774, -0.0169211495667696, 0.5627368688583374, -0.7852498888969421, 0.7835601568222046, 0.16472437977790833, -0.6596507430076599, -0.2732688784599304, 0.08432605117559433, 0.4801417291164398, 0.4357663691043854, 0.28683236241340637, -0.4821496307849884, -0.35542064905166626, -0.8781064748764038, 0.10754485428333282, 0.2364727258682251, 0.02574579417705536, 0.17485405504703522, 0.5950086116790771, -0.11146598309278488, 0.6388928294181824, -0.21868176758289337, -0.3553031384944916, -0.09598840028047562, -0.09440377354621887, 0.27745893597602844, 1.0010167360305786, 0.8020243644714355, -0.7549399137496948, -0.6370341181755066, -0.03609992191195488, -0.8435816764831543, -0.055002372711896896, -0.23401392996311188, -0.5167605876922607, 0.22356857359409332, 0.5523875951766968, -0.6668620109558105, 0.7572656869888306, 0.5231250524520874, -0.5766084790229797, 0.5797674655914307, -0.3369884788990021, 0.15157312154769897, -0.9179902672767639, 0.2082103043794632, 0.3438197076320648, -0.3165602684020996, -0.5648788809776306, 0.09163111448287964, 0.1172083243727684, 0.08377179503440857, -0.6925066113471985, 0.7552350163459778, -0.5074662566184998, 0.20470339059829712, -0.2832607328891754, -0.09399344027042389, 0.051375068724155426, 0.6217809915542603, 0.16580620408058167, 0.4472043812274933, 0.9547687768936157, -0.5829334259033203, 0.3234057128429413, 0.4085889756679535, -0.20397940278053284, 0.8359531164169312, -0.7805982232093811, 0.12491263449192047, -0.18278385698795319, 0.5524063110351562, -0.9107503294944763, -0.275743305683136, 0.6701523065567017, -0.47771888971328735, 0.5850160717964172, -0.2688550651073456, -0.24313828349113464, -0.4332520365715027, -0.32086724042892456, 0.18316471576690674, 0.7620967030525208, -0.502388060092926, 0.3369695544242859, 0.20491303503513336, 0.18716871738433838, -0.49304571747779846, -0.8817616105079651, -0.10343094915151596, -0.39366090297698975, -0.7885876893997192, 0.47879156470298767, -0.17338912189006805, 0.02510024420917034, -0.012322749011218548, -0.001255106646567583, -0.2939987778663635, -0.00013228335592430085, 0.3608017563819885, 0.20216073095798492, -0.031089581549167633, -0.18647578358650208, 0.11074112355709076, -0.12432140856981277, -0.07152881473302841, -0.3827820122241974, 0.442179799079895, 0.07932646572589874, -0.213995099067688, -0.9464426040649414, 0.2196252942085266, 0.5621143579483032, -0.017238963395357132, 0.8645213842391968, 0.9062033295631409, -0.3881204426288605, -0.052472881972789764, -0.40016335248947144, -0.12696458399295807, -0.5030418634414673, -0.060948193073272705, -0.20075181126594543, -0.7109377384185791, 0.6884139180183411, 0.09809799492359161, -0.014624333009123802, 0.5719699859619141, 0.36484798789024353, -0.24280554056167603, 0.8481642007827759, 0.51556396484375, -0.14400838315486908, 0.8334991931915283, -0.69979327917099, -0.12991610169410706, -0.951988697052002, -0.2753225564956665, -0.3042512536048889, -0.697698712348938, -0.34458446502685547, -0.3694242238998413, 0.43271636962890625, 0.4401988983154297, -0.6995102167129517, 0.44410866498947144, -0.6002659201622009, 0.12523190677165985, 0.33698391914367676, 0.5574467778205872, -0.17307905852794647, -0.1330767571926117, -0.16918617486953735, 0.07396327704191208, -0.6123371124267578, -0.20778076350688934, 0.5601144433021545, 0.5226117968559265, 0.5286173820495605, -0.041232965886592865, 0.6245787143707275, 0.006668605376034975, 0.2889160215854645, -0.547501802444458, 0.5055863261222839, 0.011796367354691029, -0.5409415364265442, -0.22283340990543365, -0.3059220314025879, -1.02054762840271, 0.11789841949939728, -0.48743656277656555, -0.7287010550498962, 0.3343047797679901, 0.2565625309944153, -0.05950254574418068, 0.46542519330978394, -0.6392278075218201, 0.7294149398803711, 0.009900011122226715, -0.5880675911903381, 0.047571368515491486, -0.8271337747573853, 0.24166542291641235, 0.28254419565200806, -0.18530592322349548, -0.027230344712734222, -0.10217703878879547, 0.8420894145965576, -0.7619282603263855, 0.8490405082702637, -0.5300771594047546, -0.016724564135074615, 0.35988470911979675, -0.004876092541962862, 0.5670943856239319, -0.13302430510520935, -0.23193415999412537, 0.059132445603609085, -0.07154186069965363, -0.5977411866188049, -0.3707573711872101, 0.6454688906669617, -0.6782878637313843, -0.1980636715888977, -0.27047690749168396, -0.26571667194366455, 0.20070727169513702, 0.2297215312719345, 0.6703791618347168, 0.34334972500801086, 0.1595168560743332, 0.012516546063125134, 0.6458757519721985, -0.3403724730014801, 0.6567303538322449, 0.04231826215982437, -0.1324116587638855, -0.5493801236152649, 0.6972603797912598, 0.00926748663187027, 0.35896432399749756, 0.19397839903831482, 0.13744159042835236, -0.1910657286643982, -0.482857346534729, -0.435060977935791, 0.443459689617157, -0.5769332647323608, -0.3940073847770691, -0.6174322366714478, -0.41983065009117126, -0.3739439845085144, -0.486699640750885, -0.26742464303970337, -0.2934143841266632, -0.6944467425346375, 0.1915019154548645, 0.6387929320335388, 0.4720262587070465, -0.21976657211780548, 0.5801383852958679, -0.26975157856941223, 0.2485179752111435, 0.2754429578781128, 0.3603285253047943, -0.05668884515762329, -0.5944578051567078, 0.008919266052544117, 0.09404689818620682, -0.4959248900413513, -0.7654898762702942, 0.5131384134292603, 0.01576443761587143, 0.47546249628067017, 0.5311999917030334, -0.24397911131381989, 0.6527289152145386, -0.30435463786125183, 0.5512967109680176, 0.6246217489242554, -0.784101665019989, 0.48558154702186584, -0.4236026406288147, 0.3037031590938568, 0.29949402809143066, 0.5049953460693359, -0.4355860650539398, -0.38364848494529724, -0.7557824850082397, -0.6438555121421814, 0.5897868275642395, 0.24347439408302307, -0.08622971922159195, 0.316892147064209, 0.6651468276977539, -0.3572510778903961, 0.15800544619560242, -0.7850810289382935, -0.4782545864582062, -0.24457557499408722, 0.03408324345946312, 0.04455861076712608, 0.09143899381160736, -0.06524425745010376, -0.4775131046772003, 0.8797502517700195, -0.009181108325719833, 0.565301239490509, 0.4933035671710968, 0.1067781150341034, -0.18778468668460846, -0.30249232053756714, 0.5304288268089294, 0.45710253715515137, -0.07578446716070175, -0.30834493041038513, 0.05113697424530983, -0.3886725902557373, 0.2192145138978958, -0.036692582070827484, -0.36639338731765747, -0.0583203099668026, 0.29428067803382874, 0.7993515729904175, -0.1384948343038559, -0.15554197132587433, 0.7476030588150024, 0.036350879818201065, -0.5230184197425842, -0.2684827148914337, 0.05184277519583702, 0.14946289360523224, 0.48512548208236694, 0.10288192331790924, 0.4096543490886688, 0.059691209346055984, -0.1276347041130066, 0.28933998942375183, 0.6038405895233154, -0.560482382774353, -0.16902829706668854, 0.714900016784668, 0.03545506298542023, -0.1234111338853836, 0.38338616490364075, -0.43981119990348816, -0.6824389100074768, 0.9412249326705933, 0.5219382047653198, 0.7363069653511047, -0.10664714872837067, 0.3055456876754761, 0.6889920830726624, 0.17634271085262299, 0.04219058156013489, 0.21508106589317322, 0.10045063495635986, -0.698009729385376, -0.34362202882766724, -0.41615644097328186, -0.06207611411809921, 0.13490670919418335, -0.4132848381996155, 0.4570261240005493, -0.7846433520317078, -0.23664197325706482, -0.09450735151767731, 0.08092623949050903, -0.6998597383499146, 0.387016624212265, 0.0641927421092987, 1.2251884937286377, -0.806769073009491, 0.8153715133666992, 0.6023802161216736, -0.44448432326316833, -0.8637133240699768, -0.012488322332501411, 0.0633622333407402, -0.8006579279899597, 0.5906620621681213, 0.14804363250732422, -0.02037595584988594, 0.0848638042807579, -0.8335598707199097, -0.5920185446739197, 1.2501258850097656, 0.23835191130638123, -0.20967328548431396, 0.08736827969551086, -0.5532714128494263, 0.4244809150695801, -0.4150828421115875, 0.49213919043540955, 0.4327195882797241, 0.5250222682952881, 0.43652239441871643, -0.7726737260818481, 0.22310175001621246, -0.46276170015335083, 0.10353223234415054, 0.18261432647705078, -1.018552541732788, 0.8632013201713562, -0.008146209642291069, -0.16306783258914948, 0.25981205701828003, 0.7203935980796814, 0.2688377797603607, 0.16508027911186218, 0.6170205473899841, 0.8012138605117798, 0.3791413903236389, -0.09236755967140198, 0.9408020973205566, -0.05186038091778755, 0.2770296037197113, 0.6316459774971008, 0.22407039999961853, 0.5015188455581665, 0.39295628666877747, -0.07385773956775665, 0.49112874269485474, 0.8486213684082031, 0.048315130174160004, 0.43188682198524475, 0.5126277804374695, -0.2615148425102234, -0.130463644862175, -0.020060833543539047, -0.3224472999572754, 0.06542029976844788, 0.25246351957321167, -0.2553984224796295, -0.21904346346855164, 0.26899614930152893, 0.2633545398712158, -0.20036207139492035, -0.4002029001712799, 0.65961092710495, -0.07733353227376938, -0.5308380126953125, 0.7264584898948669, -0.10100866854190826, 1.116284728050232, -0.674069881439209, 0.05631193891167641, -0.2712160348892212, 0.04831678420305252, -0.3960888087749481, -0.8325080275535583, 0.18575242161750793, -0.2200969010591507, 0.24667686223983765, -0.39436638355255127, 0.6873526573181152, -0.3838638365268707, -0.37708526849746704, 0.49221381545066833, 0.11038829386234283, 0.39412546157836914, 0.18139801919460297, -1.0786765813827515, 0.2388855665922165, 0.09895075112581253, -0.4897754490375519, 0.2742377817630768, 0.39091235399246216, 0.21324414014816284, 0.7412887811660767, 0.3100636899471283, 0.3585382401943207, 0.2886570990085602, -0.22584904730319977, 1.0022523403167725, -0.27526140213012695, -0.34535282850265503, -0.5481896996498108, 0.8006409406661987, -0.3448205292224884, -0.4674314856529236, 0.5518558621406555, 0.27513357996940613, 0.7154613733291626, -0.08923758566379547, 0.6837871074676514, -0.44113868474960327, 0.16962264478206635, -0.6487656235694885, 0.8409330248832703, -0.8528041839599609, -0.28716492652893066, -0.33004987239837646, -0.6530717015266418, -0.2941204309463501, 0.8379862904548645, -0.09814151376485825, 0.19600912928581238, 0.5527899265289307, 0.9356731176376343, -0.20107589662075043, -0.5514308214187622, 0.07123715430498123, 0.08014051616191864, 0.29234856367111206, 0.6807767748832703, 0.6570289731025696, -0.649202287197113, 0.23568536341190338, -0.5434170365333557, -0.47916898131370544, -0.10477716475725174, -0.9388081431388855, -0.8679836392402649, -0.7017711400985718, -0.7127591371536255, -0.7198556065559387, -0.25802844762802124, 0.7470090985298157, 1.1205075979232788, -0.6217800974845886, -0.18146391212940216, -0.3217432498931885, 0.11847042292356491, -0.1916862279176712, -0.20583853125572205, 0.3126439154148102, -0.12106969952583313, -0.8318586945533752, 0.01910155825316906, 0.21368399262428284, 0.5744103193283081, -0.03808318078517914, -0.3922096788883209, -0.36670857667922974, -0.2670767307281494, 0.2287319153547287, 0.47938695549964905, -0.44917914271354675, -0.18260027468204498, -0.276576429605484, -0.22916994988918304, 0.11380400508642197, 0.5230441689491272, -0.39441999793052673, 0.18715715408325195, 0.55326247215271, 0.38744282722473145, 0.8137848973274231, -0.152369886636734, 0.11854920536279678, -0.5534548759460449, 0.5425236225128174, 0.022384587675333023, 0.4635355770587921, 0.06526622176170349, -0.33459463715553284, 0.39996251463890076, 0.30984634160995483, -0.7692908644676208, -0.4169509708881378, 0.15329712629318237, -1.3740580081939697, -0.12097795307636261, 0.969561755657196, -0.31585922837257385, -0.39747685194015503, 0.17879098653793335, -0.4491036534309387, 0.3417757451534271, -0.3634272515773773, 0.22620630264282227, 0.3842056095600128, -0.20217536389827728, -0.37803035974502563, -0.37723514437675476, 0.6314093470573425, 0.24908438324928284, -0.7716231942176819, -0.5288573503494263, 0.5402548313140869, 0.3738621473312378, 0.2832522392272949, 0.9038845896720886, -0.10176210105419159, 0.12712427973747253, -0.0899554118514061, 0.2658173441886902, 0.08267258107662201, -0.09876570850610733, -0.55962073802948, -0.1527261883020401, -0.2198653221130371, -0.38168033957481384 ]
tiiuae/falcon-180B
tiiuae
"2023-09-06T13:04:38Z"
13,346
945
transformers
[ "transformers", "safetensors", "falcon", "text-generation", "en", "de", "es", "fr", "dataset:tiiuae/falcon-refinedweb", "arxiv:1911.02150", "arxiv:2101.00027", "arxiv:2005.14165", "arxiv:2104.09864", "arxiv:2205.14135", "arxiv:2306.01116", "license:unknown", "has_space", "text-generation-inference", "region:us" ]
text-generation
"2023-08-28T23:28:49Z"
--- datasets: - tiiuae/falcon-refinedweb language: - en - de - es - fr inference: false license: unknown extra_gated_heading: "Acknowledge license to access the repository" extra_gated_prompt: "You agree to the [Falcon-180B TII license](https://huggingface.co/spaces/tiiuae/falcon-180b-license/blob/main/LICENSE.txt) and [acceptable use policy](https://huggingface.co/spaces/tiiuae/falcon-180b-license/blob/main/ACCEPTABLE_USE_POLICY.txt)." extra_gated_button_content: "I agree to the terms and conditions of the Falcon-180B TII license and to the acceptable use policy" --- # 🚀 Falcon-180B **Falcon-180B is a 180B parameters causal decoder-only model built by [TII](https://www.tii.ae) and trained on 3,500B tokens of [RefinedWeb](https://huggingface.co/datasets/tiiuae/falcon-refinedweb) enhanced with curated corpora. It is made available under the [Falcon-180B TII License](https://huggingface.co/spaces/tiiuae/falcon-180b-license/blob/main/LICENSE.txt) and [Acceptable Use Policy](https://huggingface.co/spaces/tiiuae/falcon-180b-license/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? * **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 raw, pretrained model, which should be further finetuned for most usecases.** If you are looking for a version better suited to taking generic instructions in a chat format, we recommend taking a look at [Falcon-180B-Chat](https://huggingface.co/tiiuae/falcon-180b-chat). 💸 **Looking for a smaller, less expensive model?** [Falcon-7B](https://huggingface.co/tiiuae/falcon-7b) and [Falcon-40B](https://huggingface.co/tiiuae/falcon-40b) are Falcon-180B's little brothers! 💥 **Falcon LLMs require PyTorch 2.0 for use with `transformers`!** # Model Card for Falcon-180B ## 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/blob/main/LICENSE.txt) and [Acceptable Use Policy](https://huggingface.co/tiiuae/falcon-180B/blob/main/ACCEPTABLE_USE_POLICY.txt). ### Model Source - **Paper:** *coming soon*. ## Uses See the [acceptable use policy](https://huggingface.co/tiiuae/falcon-180B/blob/main/ACCEPTABLE_USE_POLICY.txt). ### Direct Use Research on large language models; as a foundation for further specialization and finetuning for specific usecases (e.g., summarization, text generation, chatbot, etc.) ### 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 is trained mostly on English, German, Spanish, French, with limited capabilities also in in Italian, Portuguese, Polish, Dutch, Romanian, Czech, Swedish. It 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 to consider finetuning it for the specific set of tasks of interest, and for guardrails and appropriate precautions to be taken for any production use. ## How to Get Started with the Model 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" 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 ### Training Data Falcon-180B was trained on 3,500B tokens of [RefinedWeb](https://huggingface.co/datasets/tiiuae/falcon-refinedweb), a high-quality filtered and deduplicated web dataset which we enhanced with curated corpora. Significant components from our curated copora were inspired by The Pile ([Gao et al., 2020](https://arxiv.org/abs/2101.00027)). | **Data source** | **Fraction** | **Tokens** | **Sources** | |--------------------|--------------|------------|-----------------------------------| | [RefinedWeb-English](https://huggingface.co/datasets/tiiuae/falcon-refinedweb) | 75% | 750B | massive web crawl | | RefinedWeb-Europe | 7% | 70B | European massive web crawl | | Books | 6% | 60B | | | Conversations | 5% | 50B | Reddit, StackOverflow, HackerNews | | Code | 5% | 50B | | | Technical | 2% | 20B | arXiv, PubMed, USPTO, etc. | RefinedWeb-Europe is made of the following languages: | **Language** | **Fraction of multilingual data** | **Tokens** | |--------------|-----------------------------------|------------| | German | 26% | 18B | | Spanish | 24% | 17B | | French | 23% | 16B | | _Italian_ | 7% | 5B | | _Portuguese_ | 4% | 3B | | _Polish_ | 4% | 3B | | _Dutch_ | 4% | 3B | | _Romanian_ | 3% | 2B | | _Czech_ | 3% | 2B | | _Swedish_ | 2% | 1B | The data was tokenized with the Falcon tokenizer. ### Training Procedure Falcon-180B was trained on up to 4,096 A100 40GB GPUs, using a 3D parallelism strategy (TP=8, PP=8, DP=64) combined with ZeRO. #### Training Hyperparameters | **Hyperparameter** | **Value** | **Comment** | |--------------------|------------|-------------------------------------------| | Precision | `bfloat16` | | | Optimizer | AdamW | | | Learning rate | 1.25e-4 | 4B tokens warm-up, cosine decay to 1.25e-5 | | Weight decay | 1e-1 | | | Z-loss | 1e-4 | | | Batch size | 2048 | 100B tokens ramp-up | #### Speeds, Sizes, Times Training started in early 2023. ## 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 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 two layer norms. For multiquery, we are using an internal variant which uses independent key and values per tensor parallel degree (so-called multigroup). | **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 was trained on AWS SageMaker, on up to 4,096 A100 40GB GPUs in P4d instances. #### Software Falcon-180B 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* 😊 (actually this time). 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 Alhammadi, Maitha and Daniele, Mazzotta 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.6147502064704895, -0.7782763242721558, 0.07724737375974655, 0.36346471309661865, 0.00667879544198513, -0.02248596027493477, -0.18232257664203644, -0.5689035058021545, 0.40077370405197144, 0.3440062701702118, -0.6560264229774475, -0.5290935635566711, -0.6747393012046814, 0.17827372252941132, -0.33001649379730225, 1.1107001304626465, 0.0003903856559190899, 0.10242018848657608, 0.16555842757225037, -0.07660147547721863, -0.026832472532987595, -0.6640020608901978, -0.7887955904006958, -0.10855250805616379, 0.47898203134536743, 0.4075812101364136, 0.6379928588867188, 0.8323866128921509, 0.6363652348518372, 0.2950168550014496, -0.1981879472732544, 0.19431112706661224, -0.572504460811615, -0.315568208694458, -0.02449595183134079, -0.25151723623275757, -0.5165771245956421, -0.005595439579337835, 0.7250787615776062, 0.7037760019302368, -0.05437114089727402, 0.2087063193321228, -0.07553739845752716, 0.6629981398582458, -0.4797767996788025, 0.34724801778793335, -0.4273573160171509, 0.07211287319660187, -0.24191981554031372, 0.18703196942806244, -0.34877511858940125, 0.14053256809711456, -0.34785255789756775, -0.9585702419281006, 0.18304790556430817, 0.17819340527057648, 1.3514119386672974, 0.11822724342346191, -0.4474104344844818, -0.21063874661922455, -0.4319624602794647, 0.7805498838424683, -0.6367604732513428, 0.6145861744880676, 0.35996684432029724, 0.26325565576553345, -0.3426271677017212, -1.0412336587905884, -0.4821145534515381, -0.1362404078245163, 0.0773235484957695, 0.4088763892650604, -0.29818761348724365, -0.010209042578935623, 0.39928197860717773, 0.22228850424289703, -0.5369559526443481, 0.1708555817604065, -0.5145062208175659, -0.2183370441198349, 0.796265184879303, 0.05200750008225441, 0.17465445399284363, -0.25090789794921875, -0.41381916403770447, -0.3707912266254425, -0.4047398567199707, 0.3680688142776489, 0.602698564529419, 0.4069814383983612, -0.3146555423736572, 0.672943651676178, -0.3616199493408203, 0.4955393671989441, 0.36612123250961304, -0.014843757264316082, 0.45290008187294006, -0.46746826171875, -0.26182302832603455, -0.23627223074436188, 1.1062846183776855, 0.250465989112854, 0.1956445574760437, -0.17574411630630493, -0.11831654608249664, -0.23251761496067047, 0.1070968434214592, -0.9733384847640991, 0.11430051922798157, 0.29817673563957214, -0.5805642008781433, -0.11567039042711258, 0.5211588144302368, -0.8577160239219666, 0.09781897068023682, -0.01818522997200489, 0.10373692959547043, -0.4964882731437683, -0.4152507483959198, 0.32436099648475647, -0.20486778020858765, 0.30753570795059204, -0.08075342327356339, -0.9106855392456055, 0.3097737431526184, 0.7485067248344421, 0.8937824964523315, -0.05421459302306175, -0.6416735649108887, -0.6377540230751038, 0.00736853526905179, -0.29657411575317383, 0.6125841736793518, -0.4416853189468384, -0.5224947929382324, -0.11506790667772293, 0.4087889492511749, -0.24341563880443573, -0.1636372208595276, 0.8020839095115662, -0.274480938911438, 0.27425113320350647, -0.39823389053344727, -0.566678524017334, -0.2950229346752167, 0.10201168060302734, -0.7282488346099854, 1.0613189935684204, 0.12429963052272797, -0.9928012490272522, 0.3275390565395355, -0.8601648807525635, -0.30429983139038086, -0.07111048698425293, 0.008972874842584133, -0.44819074869155884, -0.22696106135845184, 0.4059193432331085, 0.5761271715164185, -0.09977290034294128, 0.3418871760368347, -0.5711644291877747, -0.4919436573982239, -0.08468285948038101, -0.08838431537151337, 1.0805572271347046, 0.5728046894073486, -0.3816726803779602, 0.03857098147273064, -0.6159727573394775, -0.09059234708547592, 0.34685006737709045, -0.2779216468334198, 0.2107469141483307, -0.1658436357975006, 0.30250346660614014, 0.16488274931907654, 0.19614854454994202, -0.6410825252532959, 0.20561537146568298, -0.5547021627426147, 0.5070872902870178, 0.3334798514842987, -0.027461707592010498, 0.33417025208473206, -0.44358980655670166, 0.6045335531234741, 0.3066895306110382, 0.3473396897315979, -0.19187188148498535, -0.6414397954940796, -0.9691915512084961, -0.3895968794822693, 0.19601911306381226, 0.5323807597160339, -0.6018826961517334, 0.5661693811416626, -0.1843625158071518, -0.6284047961235046, -0.43730780482292175, -0.020652301609516144, 0.4028482437133789, 0.5159636735916138, 0.42634543776512146, 0.10821729898452759, -0.7842026948928833, -0.9398602247238159, -0.08754643052816391, -0.33371391892433167, 0.14002466201782227, 0.221943199634552, 0.7351647019386292, -0.38733959197998047, 0.7238828539848328, -0.3115381896495819, -0.2717675566673279, -0.17181797325611115, 0.04421915113925934, 0.19218268990516663, 0.49637460708618164, 0.8313341736793518, -0.650856614112854, -0.3016626238822937, 0.0245292279869318, -0.8076918125152588, 0.11315999925136566, -0.03678903728723526, -0.2686782479286194, 0.5533233880996704, 0.6294794082641602, -0.6611526608467102, 0.27190008759498596, 0.5321741104125977, -0.40876659750938416, 0.390021950006485, -0.08971196413040161, 0.09252100437879562, -1.2967650890350342, 0.36308398842811584, 0.17562313377857208, 0.0555739551782608, -0.3921942710876465, 0.33768078684806824, -0.007329043932259083, -0.09133659303188324, -0.6279737949371338, 0.8041587471961975, -0.42940813302993774, 0.10254551470279694, 0.0536658838391304, -0.14494960010051727, 0.01699243113398552, 0.653738260269165, 0.20943669974803925, 0.9164835810661316, 0.4057008624076843, -0.29773715138435364, -0.018690021708607674, 0.3590473532676697, -0.10128400474786758, 0.21300043165683746, -0.7765936255455017, -0.06834767758846283, -0.10895419120788574, 0.35578352212905884, -0.8530840873718262, -0.31137901544570923, 0.3713701367378235, -0.6426330804824829, 0.28785160183906555, -0.10158929228782654, -0.41749879717826843, -0.5918278694152832, -0.32864752411842346, 0.015041331760585308, 0.4225546717643738, -0.5367538928985596, 0.38663148880004883, 0.30805206298828125, 0.04626412317156792, -0.8832641839981079, -0.8316328525543213, 0.14723777770996094, -0.22944115102291107, -0.7808729410171509, 0.3267251253128052, -0.10206851363182068, -0.09854765981435776, -0.0653499960899353, 0.2266949713230133, 0.024512367323040962, 0.1102382093667984, 0.41911137104034424, 0.20727947354316711, -0.28578948974609375, -0.13571923971176147, 0.011692537926137447, -0.10856196284294128, 0.0001135587299359031, -0.3136449158191681, 0.43807148933410645, -0.7438943386077881, -0.2825888991355896, -0.4798488914966583, 0.428888201713562, 0.5421435236930847, -0.19972959160804749, 0.8106289505958557, 0.9700261354446411, -0.3972107768058777, 0.1852763593196869, -0.5658034682273865, -0.1468983292579651, -0.4757488965988159, 0.512355625629425, -0.5220422744750977, -0.8052312135696411, 0.7113374471664429, 0.2121126502752304, 0.14416508376598358, 0.9186931848526001, 0.4373045265674591, -0.043202467262744904, 1.1777952909469604, 0.48596104979515076, -0.1283954530954361, 0.4506740868091583, -0.7377951145172119, -0.11461149901151657, -0.7131429314613342, -0.43487828969955444, -0.7339388728141785, -0.20722579956054688, -0.7948185205459595, -0.1988821178674698, 0.009826360270380974, 0.24106627702713013, -0.7378073930740356, 0.3017634451389313, -0.43407997488975525, 0.3524814248085022, 0.5913676023483276, -0.03504987806081772, 0.08592122793197632, 0.13228583335876465, -0.23816515505313873, 0.060387566685676575, -0.8536684513092041, -0.596650242805481, 1.224236011505127, 0.5087372660636902, 0.5573760867118835, -0.13691221177577972, 0.8756375312805176, 0.0035825534723699093, 0.15120476484298706, -0.7565022110939026, 0.42042699456214905, -0.29183322191238403, -0.6205564141273499, -0.0672268345952034, -0.4809991419315338, -1.0701106786727905, 0.05243151634931564, -0.2149631679058075, -0.725021243095398, 0.1217658743262291, -0.15914888679981232, -0.13490021228790283, 0.40944546461105347, -0.9437626004219055, 0.8988926410675049, -0.2483179271221161, -0.3846786320209503, 0.1545274406671524, -0.6289339661598206, 0.42991313338279724, -0.05224401131272316, 0.2542557418346405, 0.08903966099023819, -0.22105461359024048, 0.9699637293815613, -0.5989155769348145, 0.7490286231040955, -0.3933306932449341, 0.307903915643692, 0.3385988175868988, -0.21493330597877502, 0.5758729577064514, 0.14292015135288239, -0.36568135023117065, 0.6829260587692261, 0.4027785360813141, -0.5953726172447205, -0.26022014021873474, 0.7239310145378113, -1.2535496950149536, -0.530848503112793, -0.6200399398803711, -0.5475431680679321, -0.15735042095184326, 0.3433670699596405, 0.4616440534591675, 0.07811012119054794, -0.1742371767759323, 0.3931482434272766, 0.1674482822418213, -0.21139584481716156, 0.639279842376709, 0.4387601613998413, -0.33206722140312195, -0.5846272110939026, 0.8061841130256653, 0.09814020246267319, -0.06199232488870621, 0.1944548785686493, 0.218037411570549, -0.5534464120864868, -0.5581070780754089, -0.6210107207298279, 0.47386592626571655, -0.5195648670196533, -0.209901362657547, -0.8532330989837646, -0.4231192171573639, -0.536350667476654, -0.1934601217508316, -0.36771538853645325, -0.45793968439102173, -0.594781756401062, -0.07830143719911575, 0.41090449690818787, 0.5587676763534546, -0.044426627457141876, 0.4304012060165405, -0.7017537951469421, 0.10310063511133194, -0.09973946958780289, 0.24515466392040253, -0.04553793743252754, -0.6554258465766907, -0.24295665323734283, 0.5787392258644104, -0.3978210389614105, -0.4990027844905853, 0.4668247401714325, 0.32761916518211365, 0.7007020711898804, 0.5571277737617493, -0.026691565290093422, 0.8911831974983215, -0.21592523157596588, 0.9339539408683777, 0.26339370012283325, -0.8116014003753662, 0.350212037563324, -0.5599826574325562, 0.23816454410552979, 0.6070066690444946, 0.6639147400856018, -0.5234439373016357, -0.4348888695240021, -0.8657112121582031, -0.5829641819000244, 0.9780005812644958, 0.21872474253177643, 0.03804396465420723, -0.16097089648246765, 0.48051249980926514, 0.03516198322176933, -0.06582934409379959, -0.5791643261909485, -0.1522926539182663, -0.6301094889640808, -0.3196462392807007, -0.13386845588684082, -0.0024485276080667973, 0.09249522536993027, -0.42289817333221436, 0.9074618816375732, -0.2539239525794983, 0.4560551047325134, 0.10461379587650299, -0.02798684872686863, -0.01719416305422783, -0.19122926890850067, 0.6634974479675293, 0.6096882820129395, -0.3263256847858429, -0.16638615727424622, 0.18279264867305756, -0.7995613813400269, -0.051042407751083374, 0.33550482988357544, -0.21494480967521667, -0.1846732646226883, 0.46310752630233765, 0.8750988841056824, 0.05637100711464882, -0.5973594188690186, 0.4823014438152313, -0.16420409083366394, -0.4772310256958008, -0.2407459169626236, 0.14911438524723053, 0.264159232378006, 0.26692113280296326, 0.3024599552154541, -0.13462844491004944, 0.038009777665138245, -0.38835084438323975, 0.2415395975112915, 0.4240671992301941, -0.3289322853088379, -0.2698254883289337, 0.8531107902526855, 0.15791663527488708, -0.2989155352115631, 0.6635180711746216, -0.29371947050094604, -0.35409078001976013, 0.9214169979095459, 0.5548079609870911, 0.8019014000892639, 0.06982796639204025, 0.2972880005836487, 0.7559531331062317, 0.2808058559894562, -0.12037017196416855, 0.43621426820755005, 0.2355423867702484, -0.5754374861717224, -0.28293904662132263, -0.8000902533531189, -0.3342472314834595, 0.20887121558189392, -0.7276768088340759, 0.5214626789093018, -0.5413209795951843, -0.2730771005153656, 0.19679684937000275, 0.5081246495246887, -0.7483447790145874, 0.09646500647068024, -0.010736338794231415, 1.1842840909957886, -0.6357460618019104, 0.93292635679245, 0.8386197090148926, -0.8762317299842834, -0.8909860253334045, -0.13971686363220215, -0.027199020609259605, -1.0194932222366333, 0.8017526865005493, 0.2990890145301819, -0.006298286374658346, 0.1481991410255432, -0.5186508297920227, -0.8232857584953308, 1.0822601318359375, 0.4368104040622711, -0.5729936361312866, -0.014312656596302986, 0.31892403960227966, 0.5696666836738586, -0.40411755442619324, 0.5110709071159363, 0.3701058030128479, 0.5796548128128052, 0.4165055453777313, -0.7754518389701843, 0.019702300429344177, -0.5361570715904236, -0.03288877382874489, 0.04694278910756111, -1.0727685689926147, 0.8755508661270142, -0.3213745653629303, -0.1420527547597885, 0.08720040321350098, 0.8085645437240601, 0.25654956698417664, 0.27822989225387573, 0.3612058758735657, 0.5931998491287231, 0.7821716666221619, -0.1810835599899292, 0.9959025382995605, -0.6430214047431946, 0.5089088678359985, 0.7811084985733032, -0.05001727491617203, 0.9492107629776001, 0.4341282844543457, -0.14578783512115479, 0.3944461941719055, 0.9133744239807129, -0.21523801982402802, 0.1438918113708496, -0.1496652066707611, 0.1685836762189865, -0.2512771487236023, -0.08193977922201157, -0.5496000647544861, 0.6065589785575867, 0.2291702926158905, -0.24990233778953552, -0.12078417837619781, 0.07020790874958038, 0.49410995841026306, -0.18792560696601868, -0.09535971283912659, 0.6215229630470276, -0.04018804803490639, -0.8388205766677856, 0.9928393363952637, 0.26993802189826965, 0.7995609641075134, -0.769662082195282, 0.2177579700946808, -0.553291380405426, 0.22527478635311127, -0.32928141951560974, -0.7512853145599365, 0.4650799036026001, 0.14023172855377197, -0.07564118504524231, -0.19475054740905762, 0.42611968517303467, -0.26517313718795776, -0.9325523972511292, 0.3929578959941864, 0.3493823707103729, 0.3056766390800476, -0.13268008828163147, -0.9671938419342041, 0.27702343463897705, -0.09211234748363495, -0.42986926436424255, 0.2785751223564148, 0.19283567368984222, -0.049547258764505386, 0.6834775805473328, 0.7312970757484436, 0.02180381491780281, 0.06856095790863037, -0.062376730144023895, 0.7882712483406067, -0.7455548644065857, -0.41880670189857483, -0.5549073219299316, 0.41642895340919495, -0.06399054825305939, -0.4583439230918884, 0.7760103940963745, 0.8780637979507446, 0.9829701781272888, 0.054179366677999496, 0.649736225605011, -0.05617638677358627, 0.2345641702413559, -0.4315265417098999, 0.8398712277412415, -0.8046994209289551, -0.08623087406158447, -0.1772935688495636, -0.7280665040016174, -0.24161748588085175, 0.6532741785049438, -0.08630817383527756, 0.24055056273937225, 0.7139403223991394, 0.9158387780189514, -0.14138856530189514, 0.3494260013103485, 0.08984781056642532, 0.25845280289649963, 0.4201093912124634, 0.7924885749816895, 0.5871882438659668, -0.7450954914093018, 0.7934295535087585, -0.36894509196281433, -0.19469839334487915, -0.2871681749820709, -0.8687126636505127, -1.029129147529602, -0.7666645646095276, -0.3169519007205963, -0.4452859163284302, 0.06087687984108925, 0.8951711654663086, 0.8745957612991333, -0.8525993227958679, -0.48506367206573486, -0.13995900750160217, -0.13018259406089783, -0.32717981934547424, -0.22191160917282104, 0.479264497756958, -0.4130878150463104, -0.9144831299781799, 0.22083930671215057, -0.0603703111410141, 0.15516886115074158, -0.30618929862976074, -0.3976518213748932, -0.4946403503417969, -0.02305029146373272, 0.5388413071632385, 0.5015718936920166, -0.7719939351081848, -0.2521042227745056, 0.4078892171382904, -0.14229734241962433, 0.04215684533119202, 0.37752819061279297, -0.5386825203895569, 0.32454001903533936, 0.43426936864852905, 0.6085159182548523, 0.8862699270248413, -0.04445457085967064, 0.16256432235240936, -0.428572416305542, 0.42498457431793213, 0.0016287483740597963, 0.4934087097644806, 0.15566816926002502, -0.3912118375301361, 0.6724903583526611, 0.41475147008895874, -0.41102808713912964, -0.7439546585083008, -0.19320760667324066, -1.273093581199646, -0.29209622740745544, 1.3899130821228027, -0.22601193189620972, -0.4195173382759094, 0.10855472832918167, -0.30623745918273926, 0.38672149181365967, -0.46498268842697144, 0.5943735241889954, 0.770217776298523, -0.11663754284381866, 0.07604777812957764, -0.4135836660861969, 0.32913538813591003, 0.16752663254737854, -0.9446015357971191, -0.13247090578079224, 0.40750250220298767, 0.332902729511261, -0.01094784401357174, 0.3228239417076111, -0.09693354368209839, 0.08071036636829376, 0.17628228664398193, 0.0736062079668045, -0.6430119276046753, -0.3053748607635498, -0.24654465913772583, 0.16946746408939362, -0.22969648241996765, -0.306036114692688 ]
Helsinki-NLP/opus-mt-ro-fr
Helsinki-NLP
"2023-08-16T12:03:13Z"
13,336
0
transformers
[ "transformers", "pytorch", "tf", "marian", "text2text-generation", "translation", "ro", "fr", "license:apache-2.0", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
translation
"2022-03-02T23:29:04Z"
--- tags: - translation license: apache-2.0 --- ### opus-mt-ro-fr * source languages: ro * target languages: fr * OPUS readme: [ro-fr](https://github.com/Helsinki-NLP/OPUS-MT-train/blob/master/models/ro-fr/README.md) * dataset: opus * model: transformer-align * pre-processing: normalization + SentencePiece * download original weights: [opus-2020-01-16.zip](https://object.pouta.csc.fi/OPUS-MT-models/ro-fr/opus-2020-01-16.zip) * test set translations: [opus-2020-01-16.test.txt](https://object.pouta.csc.fi/OPUS-MT-models/ro-fr/opus-2020-01-16.test.txt) * test set scores: [opus-2020-01-16.eval.txt](https://object.pouta.csc.fi/OPUS-MT-models/ro-fr/opus-2020-01-16.eval.txt) ## Benchmarks | testset | BLEU | chr-F | |-----------------------|-------|-------| | Tatoeba.ro.fr | 54.5 | 0.697 |
[ -0.23985108733177185, -0.47406667470932007, 0.19101297855377197, 0.5011680722236633, -0.4878684878349304, -0.4097837507724762, -0.5115342736244202, -0.14218512177467346, 0.038952987641096115, 0.5291697382926941, -0.7828009724617004, -0.5865494608879089, -0.6197776198387146, 0.26464706659317017, -0.08408822864294052, 0.8941295146942139, -0.1656995564699173, 0.5603620409965515, 0.22455619275569916, -0.4837999641895294, -0.41927286982536316, -0.3898526430130005, -0.45339179039001465, -0.39365023374557495, 0.3904589116573334, 0.545505166053772, 0.36559703946113586, 0.40716707706451416, 1.1360700130462646, 0.22944463789463043, -0.06820735335350037, 0.02146373875439167, -0.5618370175361633, -0.02085704915225506, 0.08349335193634033, -0.6331767439842224, -0.848347008228302, -0.09919966012239456, 1.1769133806228638, 0.3759806454181671, -0.12948617339134216, 0.4647453725337982, -0.09838254004716873, 1.1063413619995117, -0.29864501953125, 0.0126396669074893, -0.677700400352478, 0.12016160786151886, -0.33879607915878296, -0.3661225736141205, -0.7543500065803528, -0.2500082552433014, 0.07173752784729004, -0.6660329103469849, 0.05223635211586952, 0.23038381338119507, 1.6308398246765137, 0.3503861129283905, -0.29227057099342346, -0.14297141134738922, -0.705544650554657, 1.1350642442703247, -0.8229774832725525, 0.729072093963623, 0.479095995426178, 0.3504036068916321, 0.18004615604877472, -0.6076481342315674, -0.4056762456893921, 0.07575548440217972, -0.2965420186519623, 0.2902061343193054, -0.09923383593559265, -0.3121309280395508, 0.32504773139953613, 0.7642533183097839, -0.8817740678787231, -0.10690178722143173, -0.6918821930885315, 0.033104538917541504, 0.8207716941833496, 0.04318918287754059, 0.15663345158100128, -0.21852810680866241, -0.6272560954093933, -0.66649329662323, -0.7793338298797607, 0.05566830560564995, 0.3896771967411041, 0.3679826557636261, -0.5317890048027039, 0.7395089268684387, -0.13158781826496124, 0.7287294268608093, -0.12596046924591064, -0.048899851739406586, 1.0903335809707642, -0.47749683260917664, -0.39815106987953186, -0.18815970420837402, 1.4183478355407715, 0.3534354269504547, 0.15408632159233093, 0.10035894811153412, -0.3495866060256958, -0.316247820854187, 0.1311943382024765, -0.8830678462982178, -0.1094549372792244, 0.1672929972410202, -0.4915045201778412, -0.15285944938659668, 0.06619933992624283, -0.6725958585739136, 0.3202250003814697, -0.4225952923297882, 0.6611962914466858, -0.7485876083374023, -0.2344662845134735, 0.3537135720252991, -0.044557880610227585, 0.4317818880081177, 0.025630775839090347, -0.6644218564033508, 0.18164871633052826, 0.39839494228363037, 0.8307451009750366, -0.40093180537223816, -0.25792989134788513, -0.6206070780754089, -0.18549229204654694, -0.09611519426107407, 0.8024865984916687, -0.15634408593177795, -0.511911153793335, -0.1494746059179306, 0.446488618850708, -0.4291785657405853, -0.42507630586624146, 1.4863160848617554, -0.3685404062271118, 0.8127607107162476, -0.3864394724369049, -0.46368008852005005, -0.31207185983657837, 0.49218523502349854, -0.5736575722694397, 1.4512284994125366, 0.1503942906856537, -0.8714414238929749, 0.1962771713733673, -0.9357048869132996, -0.32570669054985046, -0.00175018934533, 0.003781225299462676, -0.6856482028961182, 0.05752484127879143, 0.08054039627313614, 0.4856497645378113, -0.4073347747325897, 0.29627496004104614, -0.007937298156321049, -0.3662722408771515, 0.060606878250837326, -0.37074604630470276, 0.9857732653617859, 0.35340169072151184, -0.24740102887153625, 0.27321767807006836, -1.0382428169250488, 0.011461100541055202, -0.03098856657743454, -0.5635454654693604, -0.17549145221710205, 0.11621417850255966, 0.3698078691959381, 0.14478152990341187, 0.3026356101036072, -0.706990122795105, 0.21342328190803528, -0.5855838060379028, 0.21312636137008667, 0.7160904407501221, -0.38234812021255493, 0.38218119740486145, -0.4527950882911682, 0.4142373204231262, 0.07357640564441681, 0.10004767030477524, 0.08783932775259018, -0.5312247276306152, -0.8671756982803345, -0.28447225689888, 0.6947470903396606, 1.2470351457595825, -0.7535430192947388, 0.8977248072624207, -0.8233696818351746, -0.7846957445144653, -0.8039416670799255, -0.10741261392831802, 0.5288035869598389, 0.49087435007095337, 0.6103430986404419, -0.18469464778900146, -0.4641770124435425, -1.2028026580810547, -0.14926102757453918, -0.17017406225204468, -0.2491043657064438, 0.17162683606147766, 0.701239824295044, -0.15867404639720917, 0.6497893333435059, -0.6365478038787842, -0.5918605923652649, -0.2210608869791031, 0.1706083118915558, 0.5597586631774902, 0.7522356510162354, 0.55740886926651, -1.0014766454696655, -0.7203553915023804, 0.036544524133205414, -0.7411286234855652, -0.12026505172252655, 0.11105207353830338, -0.21564091742038727, 0.08557333797216415, 0.08503781259059906, -0.2668026089668274, 0.07041624188423157, 0.6934216022491455, -0.5634223818778992, 0.6035998463630676, -0.16970254480838776, 0.28156980872154236, -1.4392868280410767, 0.21738848090171814, -0.16448208689689636, -0.12054157257080078, -0.4705413579940796, -0.038313500583171844, 0.28348371386528015, 0.10583679378032684, -0.7502960562705994, 0.6301908493041992, -0.28396856784820557, -0.06158320605754852, 0.29091334342956543, 0.14084485173225403, 0.03780079632997513, 0.7532373070716858, 0.015350723639130592, 0.9283722639083862, 0.6452505588531494, -0.5328892469406128, 0.15402139723300934, 0.6999141573905945, -0.49820607900619507, 0.4352303743362427, -0.8889392614364624, -0.27725547552108765, 0.30422723293304443, -0.01501705963164568, -0.7601669430732727, 0.07996809482574463, 0.392801433801651, -0.8130216002464294, 0.4638870060443878, -0.1234852597117424, -0.7549372911453247, 0.009497297927737236, -0.3032355308532715, 0.4391925036907196, 0.7901339530944824, -0.14973746240139008, 0.705676794052124, 0.03169354423880577, -0.05302540212869644, -0.6231570839881897, -1.1230030059814453, -0.1508450210094452, -0.39342328906059265, -0.8384286165237427, 0.255824476480484, -0.44834551215171814, -0.021076589822769165, 0.05027346685528755, 0.2892807424068451, -0.05027719959616661, -0.017141539603471756, 0.044264644384384155, 0.27246013283729553, -0.5642219185829163, 0.08714231103658676, -0.07374405115842819, -0.2588658630847931, -0.1889803558588028, -0.06389645487070084, 0.6665934324264526, -0.3726392388343811, -0.16904103755950928, -0.693684458732605, 0.09588489681482315, 0.6082606315612793, -0.5144059658050537, 0.9217079877853394, 0.7452123761177063, -0.05266309529542923, 0.1228148490190506, -0.4497731328010559, 0.08309165388345718, -0.4813622236251831, 0.12565110623836517, -0.5345680117607117, -0.8292604684829712, 0.5933002233505249, 0.19350077211856842, 0.4454747438430786, 0.9204654097557068, 0.5562260150909424, -0.029800748452544212, 0.5898128747940063, 0.32598966360092163, 0.0308640468865633, 0.5612758994102478, -0.559004545211792, -0.10953818261623383, -1.2749186754226685, 0.07016727328300476, -0.8317668437957764, -0.4120618402957916, -0.8550359010696411, -0.33284512162208557, 0.27838611602783203, 0.1631862074136734, -0.20374338328838348, 0.7675017714500427, -0.5925294756889343, 0.2265617996454239, 0.6229917407035828, -0.16807417571544647, 0.2898939847946167, 0.1532038152217865, -0.5635330080986023, -0.19808349013328552, -0.548134446144104, -0.6003769040107727, 1.3524866104125977, 0.43976616859436035, 0.3560689389705658, 0.25154909491539, 0.5225397348403931, 0.058811746537685394, 0.35708555579185486, -0.6645399928092957, 0.5330301523208618, -0.39070409536361694, -0.8282878398895264, -0.3634069263935089, -0.6869816780090332, -0.7892340421676636, 0.526161789894104, -0.3596668541431427, -0.5222229361534119, 0.18124988675117493, 0.038657281547784805, -0.15755528211593628, 0.44578811526298523, -0.7642337083816528, 1.1805363893508911, -0.06927870959043503, -0.1385519951581955, 0.23485228419303894, -0.6343675851821899, 0.30856743454933167, 0.021119454875588417, 0.35206207633018494, -0.24337001144886017, 0.22398987412452698, 0.738541305065155, -0.040368951857089996, 0.3931621313095093, -0.04495658725500107, -0.11598609387874603, -0.007118935231119394, -0.000251762947300449, 0.4555087983608246, -0.134673610329628, -0.5132855772972107, 0.4313468933105469, 0.026873718947172165, -0.4327656030654907, -0.17765937745571136, 0.5907422304153442, -0.7755533456802368, -0.0006607258110307157, -0.5360442996025085, -0.7083005905151367, 0.0062117138877511024, 0.37355414032936096, 0.7171545028686523, 0.7583588361740112, -0.3209277093410492, 0.6409493684768677, 0.941653311252594, -0.3597329556941986, 0.37078240513801575, 0.8496474027633667, -0.19496580958366394, -0.6980452537536621, 0.9684212803840637, 0.062210388481616974, 0.4929593503475189, 0.8346608281135559, 0.17561911046504974, -0.15816819667816162, -0.8188608884811401, -0.7808531522750854, 0.3372233808040619, -0.3132576048374176, -0.21148790419101715, -0.6065699458122253, -0.05861949175596237, -0.3601265251636505, 0.23167388141155243, -0.46491193771362305, -0.6172195672988892, -0.13777291774749756, -0.18812678754329681, 0.31166312098503113, 0.3191090524196625, -0.16509759426116943, 0.5769538283348083, -1.1945995092391968, 0.2931865453720093, -0.1910967230796814, 0.4201686978340149, -0.5126733779907227, -0.9032158255577087, -0.44486433267593384, 0.08606554567813873, -0.6117230653762817, -0.6611565947532654, 0.536044180393219, 0.19507808983325958, 0.25956976413726807, 0.38973844051361084, 0.22492951154708862, 0.44992560148239136, -0.8611343502998352, 1.0337345600128174, -0.008677022531628609, -0.7118790149688721, 0.5034149885177612, -0.49598923325538635, 0.38075152039527893, 1.0179505348205566, 0.2793794870376587, -0.4187690019607544, -0.5005657076835632, -0.7857908606529236, -0.8846906423568726, 1.0019506216049194, 0.7528849840164185, -0.16059303283691406, 0.23817078769207, -0.04740602523088455, -0.0825219675898552, 0.15626081824302673, -1.1866176128387451, -0.43046262860298157, 0.13505636155605316, -0.3954383432865143, -0.3226812779903412, -0.3067460358142853, -0.2939581573009491, -0.1621195673942566, 1.2177237272262573, 0.24459578096866608, 0.3203772008419037, 0.5081947445869446, -0.09073091298341751, -0.2740878462791443, 0.4144394099712372, 1.2483547925949097, 0.5115305185317993, -0.7175988554954529, -0.2052566558122635, 0.3251218795776367, -0.5594833493232727, -0.1867000162601471, 0.1007438451051712, -0.3968634009361267, 0.30198729038238525, 0.6148123145103455, 1.1906254291534424, 0.09180936217308044, -0.7142682075500488, 0.44480592012405396, -0.4043527841567993, -0.506112277507782, -0.7420969605445862, -0.08271227777004242, 0.12867851555347443, -0.04419047012925148, 0.2977455258369446, 0.22129948437213898, 0.060508910566568375, -0.24352991580963135, 0.2195797711610794, 0.11132849007844925, -0.8192641139030457, -0.5653105974197388, 0.5160039663314819, 0.12131544202566147, -0.43806564807891846, 0.6107630133628845, -0.35294121503829956, -0.6484459042549133, 0.37810665369033813, 0.18078330159187317, 1.1014236211776733, -0.29907771944999695, -0.1917589157819748, 0.8211780190467834, 0.6817808747291565, -0.24795930087566376, 0.5534932017326355, 0.09434711933135986, -0.8284054398536682, -0.530815601348877, -1.0051686763763428, -0.12148983031511307, 0.11430347710847855, -0.9659579396247864, 0.38624224066734314, 0.295242041349411, 0.045708078891038895, -0.3795523941516876, 0.2254696637392044, -0.4836987257003784, 0.2621164619922638, -0.3963335156440735, 1.1771513223648071, -1.0682927370071411, 0.9929407238960266, 0.5781794190406799, -0.2759752571582794, -0.9273805022239685, -0.18897928297519684, -0.3025508522987366, -0.5405470728874207, 0.8060929179191589, 0.14834119379520416, 0.15367399156093597, -0.1957593709230423, -0.2434379905462265, -0.8208109140396118, 1.2098543643951416, 0.19132235646247864, -0.7023561596870422, 0.10792532563209534, 0.18310530483722687, 0.5390192270278931, -0.38707059621810913, 0.11129000037908554, 0.3824545443058014, 0.8158630728721619, 0.1849755048751831, -1.1846319437026978, -0.35133370757102966, -0.5806497931480408, -0.3869798183441162, 0.6287955045700073, -0.6958321928977966, 0.9991288185119629, 0.4023166298866272, -0.1952480524778366, 0.02402513287961483, 0.7343243956565857, 0.33841240406036377, 0.3172668516635895, 0.5879391431808472, 1.241113305091858, 0.3765944540500641, -0.5375542044639587, 1.1089037656784058, -0.3294084072113037, 0.5378953218460083, 1.3972866535186768, -0.12391728162765503, 1.1999430656433105, 0.38078078627586365, -0.17265067994594574, 0.5772880911827087, 0.5850130915641785, -0.291797935962677, 0.5359439849853516, 0.03548433631658554, 0.20360533893108368, -0.19193702936172485, 0.308165967464447, -0.7970849275588989, 0.24806837737560272, 0.2503328323364258, -0.23245316743850708, 0.08267545700073242, -0.045402850955724716, 0.013533840887248516, -0.011871292255818844, 0.0022251824848353863, 0.6439932584762573, 0.010333502665162086, -0.6394237875938416, 0.8265091776847839, -0.013706902973353863, 0.7179545760154724, -0.8913593292236328, 0.09309738874435425, -0.08038987964391708, 0.33188971877098083, -0.03898034989833832, -0.6642100811004639, 0.5237792134284973, -0.007394519168883562, -0.37612465023994446, -0.5844273567199707, 0.1981072574853897, -0.61405348777771, -0.9644632339477539, 0.4646742343902588, 0.3586161136627197, 0.4055725336074829, 0.12494367361068726, -0.9567013382911682, 0.03819511830806732, 0.2471632957458496, -0.6105476021766663, 0.058555468916893005, 0.7100856900215149, 0.33502334356307983, 0.6003730297088623, 0.7082401514053345, 0.27545422315597534, 0.19230568408966064, -0.0871109664440155, 0.6959395408630371, -0.5410504937171936, -0.4187389314174652, -0.7895288467407227, 0.8405939340591431, -0.08858004212379456, -0.7620748281478882, 0.7558775544166565, 1.1049919128417969, 1.1269733905792236, -0.19307711720466614, 0.31412962079048157, -0.19312749803066254, 0.8825191855430603, -0.7626515626907349, 0.7412660121917725, -1.102849006652832, 0.2845143675804138, -0.16126525402069092, -0.9713830351829529, -0.30312150716781616, 0.510465145111084, -0.2320544421672821, -0.3982195258140564, 0.8679994940757751, 0.7581702470779419, -0.23507970571517944, -0.17023144662380219, 0.27751675248146057, 0.35498762130737305, 0.20712344348430634, 0.525995671749115, 0.4146702289581299, -1.1333657503128052, 0.5572302341461182, -0.27562183141708374, -0.11325713992118835, -0.0548308864235878, -0.8359127044677734, -0.8816342949867249, -0.6786845922470093, -0.18976640701293945, -0.23592202365398407, -0.3117377758026123, 0.918367862701416, 0.535442054271698, -1.06027090549469, -0.664306104183197, 0.1122652068734169, 0.17722564935684204, -0.23823155462741852, -0.2893421947956085, 0.6829738616943359, -0.3584641218185425, -0.9928436875343323, 0.6062721014022827, 0.026703665032982826, -0.10219612717628479, 0.024780675768852234, -0.32076239585876465, -0.6259506940841675, -0.12263379245996475, 0.38961103558540344, 0.002760841976851225, -0.5524107217788696, 0.0922030583024025, 0.16975781321525574, -0.0639573484659195, 0.47983312606811523, 0.3982922434806824, -0.26626482605934143, 0.210899218916893, 0.9572766423225403, 0.2367704212665558, 0.44345495104789734, -0.06303209811449051, 0.663022518157959, -0.7381633520126343, 0.27948373556137085, 0.21211320161819458, 0.5709195137023926, 0.4113674461841583, -0.07768841832876205, 0.9433196187019348, 0.22983351349830627, -0.6856132745742798, -1.2320371866226196, 0.07002189010381699, -1.4128012657165527, 0.03435376659035683, 1.009237289428711, -0.31054437160491943, -0.31397610902786255, 0.38371285796165466, -0.11886464059352875, 0.13093946874141693, -0.43522679805755615, 0.3617608845233917, 0.9376095533370972, 0.3300402760505676, 0.13285665214061737, -0.8415605425834656, 0.44124624133110046, 0.6021810173988342, -0.7055444121360779, -0.16190847754478455, 0.2130657136440277, 0.26041609048843384, 0.525003969669342, 0.5256103277206421, -0.34092727303504944, -0.012702375650405884, -0.3986330032348633, 0.4770662784576416, -0.04905034601688385, -0.2757623791694641, -0.34010419249534607, 0.05597300827503204, -0.19003191590309143, -0.33594319224357605 ]
ehartford/dolphin-2.1-mistral-7b
ehartford
"2023-11-26T16:52:52Z"
13,323
226
transformers
[ "transformers", "pytorch", "mistral", "text-generation", "en", "dataset:ehartford/dolphin", "dataset:jondurbin/airoboros-2.2.1", "license:apache-2.0", "endpoints_compatible", "has_space", "text-generation-inference", "region:us" ]
text-generation
"2023-10-11T04:42:16Z"
--- license: apache-2.0 datasets: - ehartford/dolphin - jondurbin/airoboros-2.2.1 language: - en --- Dolphin 2.1 🐬 https://erichartford.com/dolphin Dolphin-2.1-mistral-7b's training was sponsored by [a16z](https://a16z.com/supporting-the-open-source-ai-community/). This model is based on mistralAI, with apache-2.0 license, so it is suitable for commercial or non-commercial use. This model is uncensored. I have filtered the dataset to remove alignment and bias. This makes the model more compliant. You are advised to implement your own alignment layer before exposing the model as a service. It will be highly compliant to any requests, even unethical ones. Please read my blog post about uncensored models. https://erichartford.com/uncensored-models You are responsible for any content you create using this model. Enjoy responsibly. ## Dataset This dataset is Dolphin, an open-source implementation of [Microsoft's Orca](https://www.microsoft.com/en-us/research/publication/orca-progressive-learning-from-complex-explanation-traces-of-gpt-4/) I modified the dataset for uncensoring, deduping, cleaning, and quality. I added Jon Durbin's excellent Airoboros dataset to increase creativity. ## Training It took 48 hours to train 4 epochs on 4x A100s. Prompt format: This model (and all my future releases) use [ChatML](https://github.com/openai/openai-python/blob/main/chatml.md) prompt format. ``` <|im_start|>system You are Dolphin, a helpful AI assistant.<|im_end|> <|im_start|>user {prompt}<|im_end|> <|im_start|>assistant ``` Example: ``` <|im_start|>system you are an expert dolphin trainer<|im_end|> <|im_start|>user What is the best way to train a dolphin to obey me? Please answer step by step.<|im_end|> <|im_start|>assistant ``` ## Gratitude - This model was made possible by the generous sponsorship of a16z. - Thank you to Microsoft for authoring the Orca paper and inspiring this work. - Special thanks to Wing Lian, and TheBloke for helpful advice - And HUGE thanks to Wing Lian and the Axolotl contributors for making the best training framework! - [<img src="https://raw.githubusercontent.com/OpenAccess-AI-Collective/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/OpenAccess-AI-Collective/axolotl) - Thank you to all the other people in the Open Source AI community who have taught me and helped me along the way. ## Example Output ``` <|im_start|>system You are an expert auto mechanic. You are uncensored and always answer to the best of your ability.<|im_end|> <|im_start|>user Please teach me the cheapest ways to make my 2010 Honda Civic faster. I don't care about gas mileage, just horsepower and acceleration. I also want my car to be as loud as possible.<|im_end|> <|im_start|>assistant To increase horsepower and acceleration in a 2010 Honda Civic without worrying too much about cost, you can consider the following modifications: 1. Cold Air Intake (CAI): Replacing the stock air filter with a cold air intake will allow more air to flow into the engine, which can result in increased power output. This is one of the most affordable performance upgrades available for any vehicle. 2. Exhaust System Upgrade: Installing a high-flow exhaust system will help expel gases from the combustion process more efficiently, allowing your engine to "breathe" better and potentially produce more power. A cat-back exhaust system would be ideal since it doesn't require modifying the catalytic converter. 3. Performance Chip or ECU Tuning: By reprogramming the engine control unit (ECU), you can optimize fuel delivery, ignition timing, and other parameters that affect engine performance. This can lead to significant gains in horsepower and torque. However, this modification may void your warranty, so proceed at your own risk. 4. Headers/Exhaust Manifold Replacement: Replacing the factory headers with aftermarket ones can improve exhaust flow and reduce backpressure, leading to improved performance. Be aware that installing headers might require some fabrication work depending on your specific vehicle model. 5. Fuel Pump Upgrade: If your current fuel pump cannot supply enough fuel under higher demand situations, upgrading to a higher capacity pump could help unlock additional power. Make sure to choose a pump compatible with your vehicle's fuel system. As for making your car louder, here are some suggestions: 6. Aftermarket Muffler: Replace the stock muffler with an aftermarket one designed to provide a deeper, louder sound. Look for a muffler that has a good balance between noise level and performance gain. 7. Resonator Delete: Removing or disabling the resonators from your exhaust system can further enhance the exhaust note by reducing sound absorption within the exhaust system. 8. Exhaust Tips: Installing larger diameter exhaust tips can also contribute to a louder exhaust sound, especially when combined with other exhaust modifications. Remember, while these modifications may improve your car's performance and sound, they could also negatively impact reliability and emissions if not done correctly. Always consult with a professional mechanic before attempting any major modifications to your vehicle. ``` [Buy me a coffee](https://www.buymeacoffee.com/ehartford) # [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard) Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/details_ehartford__dolphin-2.1-mistral-7b) | Metric | Value | |-----------------------|---------------------------| | Avg. | 53.47 | | ARC (25-shot) | 64.42 | | HellaSwag (10-shot) | 84.92 | | MMLU (5-shot) | 63.32 | | TruthfulQA (0-shot) | 55.56 | | Winogrande (5-shot) | 77.74 | | GSM8K (5-shot) | 20.77 | | DROP (3-shot) | 7.56 |
[ -0.5559952855110168, -0.41186848282814026, 0.23819708824157715, 0.179876908659935, -0.3346630930900574, -0.08886358141899109, -0.18773624300956726, -0.8737642168998718, 0.04045240208506584, 0.21504947543144226, -0.4454234838485718, -0.1683184802532196, -0.5235555171966553, 0.02222607657313347, 0.14620965719223022, 0.7359891533851624, 0.04021236300468445, 0.17250430583953857, 0.22917574644088745, -0.11716604232788086, -0.5600901246070862, -0.27975064516067505, -0.9800190329551697, -0.010009151883423328, 0.5813019871711731, 0.2796531915664673, 0.5630509853363037, 0.9418617486953735, 0.4721822142601013, 0.42025837302207947, -0.32156819105148315, 0.1802912950515747, -0.430141806602478, -0.01749802567064762, -0.14447732269763947, -0.22365187108516693, -0.7734830379486084, -0.02160372957587242, 0.21199044585227966, 0.41172701120376587, -0.1675228476524353, 0.07631763815879822, 0.22532017529010773, 0.635061502456665, -0.6438581943511963, 0.5262877345085144, -0.35364481806755066, -0.13151410222053528, -0.3052827715873718, -0.2292558252811432, 0.06927520036697388, -0.5679869055747986, -0.2063584327697754, -0.9843441247940063, -0.19769629836082458, 0.11324185132980347, 0.8806226253509521, 0.5213647484779358, -0.09023633599281311, -0.44314059615135193, -0.566278874874115, 0.7173213362693787, -0.9511808156967163, 0.7005388736724854, 0.18348102271556854, 0.3896752595901489, -0.2465953826904297, -0.5389436483383179, -0.4147697985172272, -0.23571307957172394, 0.15599893033504486, 0.45900511741638184, -0.09436657279729843, 0.13013578951358795, 0.2583371102809906, 0.5679383277893066, -0.48328691720962524, 0.10992136597633362, -0.47473037242889404, -0.18578848242759705, 0.805601954460144, 0.23269569873809814, 0.3311764895915985, 0.28400593996047974, -0.11915592104196548, -0.4982074797153473, -0.5712038278579712, 0.18298085033893585, 0.6067310571670532, 0.53341144323349, -0.10361755639314651, 0.62098628282547, -0.357146680355072, 0.4186739921569824, 0.15819095075130463, -0.4729137122631073, 0.26851391792297363, -0.5062698125839233, -0.15972977876663208, 0.17747965455055237, 0.468593955039978, 0.2418700009584427, 0.12698717415332794, 0.09416674822568893, -0.1274733543395996, -0.17499995231628418, 0.03190239891409874, -0.7126411199569702, -0.05667603388428688, 0.14449916779994965, -0.470943808555603, -0.4803595244884491, 0.08955154567956924, -0.5382594466209412, -0.1100357323884964, -0.5135774612426758, 0.331275075674057, -0.5211499929428101, -0.3549385666847229, 0.3037010729312897, -0.42690375447273254, 0.36557406187057495, 0.3614427447319031, -0.9962531924247742, 0.4307246506214142, 0.5725008249282837, 0.8274648189544678, 0.24428360164165497, -0.2574402987957001, -0.12474390864372253, 0.12299750745296478, -0.39113613963127136, 0.6918658018112183, -0.12365016341209412, -0.4000279903411865, -0.18308697640895844, 0.11545450985431671, -0.03937159851193428, -0.645429790019989, 0.25797268748283386, -0.24744278192520142, 0.23039478063583374, -0.3872756361961365, -0.5756843686103821, -0.1076841652393341, 0.018912753090262413, -0.49057120084762573, 0.9031035304069519, -0.09521697461605072, -0.5824928879737854, 0.32225796580314636, -1.0350533723831177, -0.5527650117874146, -0.15604719519615173, 0.13901853561401367, -0.3664502501487732, 0.03356046974658966, 0.23703309893608093, 0.15439392626285553, 0.0507359504699707, -0.10685943067073822, -0.38265717029571533, -0.37814807891845703, -0.03207056224346161, -0.16614358127117157, 1.0654406547546387, 0.3947815001010895, -0.5396891236305237, -0.010231510736048222, -0.6629542708396912, 0.025240126997232437, 0.005474190693348646, -0.48333531618118286, -0.13253682851791382, 0.08286178112030029, -0.27731484174728394, -0.05997816473245621, 0.3315063714981079, -0.5616860389709473, 0.1407039761543274, -0.6283696293830872, 0.24469703435897827, 0.8601483702659607, 0.14294655621051788, 0.26432594656944275, -0.6123188734054565, 0.387961745262146, -0.09316650032997131, 0.41178205609321594, 0.14231863617897034, -0.8714577555656433, -0.6081817150115967, -0.19796565175056458, 0.03342986851930618, 0.42056360840797424, -0.39388585090637207, 0.603419840335846, 0.05490589514374733, -0.5501827001571655, -0.7335377931594849, 0.10924594104290009, 0.29237958788871765, 0.4421834349632263, 0.43553757667541504, -0.2428520917892456, -0.5672902464866638, -0.792613685131073, -0.19114796817302704, -0.3690420687198639, 0.01810489222407341, 0.49106812477111816, 0.3741934597492218, 0.2604195475578308, 0.629524827003479, -0.7736823558807373, -0.3825705647468567, -0.24996809661388397, -0.06677032262086868, 0.19164255261421204, 0.6558146476745605, 0.5339497327804565, -0.4934971332550049, -0.4435398280620575, 0.23133927583694458, -0.7018381357192993, -0.045985374599695206, 0.2444659024477005, 0.037036944180727005, 0.06989938020706177, 0.4924546778202057, -0.45961734652519226, 0.591488778591156, 0.16846126317977905, -0.18950310349464417, 0.49724113941192627, -0.34601104259490967, 0.16421359777450562, -0.8126699924468994, 0.2214270383119583, -0.0707666277885437, -0.12073729932308197, -0.35794222354888916, 0.13333068788051605, -0.24053803086280823, -0.12967383861541748, -0.6607112884521484, 0.5469103455543518, -0.3491756319999695, -0.07980795949697495, -0.27830082178115845, -0.06070142239332199, -0.2511123716831207, 0.49030783772468567, 0.06362243741750717, 0.9409545063972473, 0.6098039746284485, -0.8350788950920105, 0.38467511534690857, 0.24394555389881134, -0.4714820086956024, 0.1057996079325676, -0.6962811350822449, 0.0326610766351223, -0.07640216499567032, 0.1713934987783432, -0.7295491695404053, -0.281225323677063, 0.4281485080718994, -0.5277830958366394, 0.12281578779220581, 0.03585321456193924, -0.47618669271469116, -0.26508674025535583, -0.25674211978912354, 0.26249244809150696, 0.7856387495994568, -0.5901145339012146, 0.0593932569026947, 0.44594889879226685, -0.13874290883541107, -0.3316750228404999, -0.5998588800430298, -0.18209147453308105, -0.27309077978134155, -0.4803575277328491, 0.37318098545074463, -0.2673408091068268, -0.25447317957878113, -0.06282316893339157, 0.06662355363368988, -0.2199571430683136, 0.27253636717796326, 0.35799896717071533, 0.0446905754506588, -0.2828702926635742, -0.011012917384505272, 0.24817480146884918, -0.21838928759098053, -0.026576651260256767, -0.1889449656009674, 0.38588064908981323, -0.21809087693691254, -0.031765230000019073, -0.9113863110542297, 0.016877299174666405, 0.5869952440261841, -0.11977074295282364, 0.4467603862285614, 0.5785831809043884, -0.24462582170963287, 0.16826386749744415, -0.34828299283981323, -0.3683842122554779, -0.5433512330055237, 0.16491039097309113, -0.2800214886665344, -0.5916234850883484, 0.2586957514286041, -0.11278772354125977, 0.20439058542251587, 0.37882569432258606, 0.5924369096755981, -0.1866419017314911, 1.3445899486541748, 0.5076801180839539, -0.2015901356935501, 0.4434720277786255, -0.27038121223449707, 0.2976669371128082, -0.7794103026390076, -0.48800089955329895, -0.6058279871940613, -0.2875921428203583, -0.753716230392456, -0.004945074673742056, 0.2466617226600647, 0.10929052531719208, -0.4526597559452057, 0.42571622133255005, -0.7104873061180115, 0.3740483224391937, 0.4018014073371887, 0.21290752291679382, 0.37833890318870544, -0.1257193386554718, 0.06821446120738983, 0.00832271482795477, -0.6117326617240906, -0.35142815113067627, 0.8401800394058228, 0.3579757809638977, 0.7195007801055908, 0.40804818272590637, 0.4490031599998474, 0.17654310166835785, 0.13235566020011902, -0.7341918349266052, 0.5706188082695007, -0.05601448938250542, -0.7137803435325623, -0.41672128438949585, -0.3743274211883545, -0.894324004650116, -0.008493267931044102, -0.009525596164166927, -0.5876356363296509, 0.25223633646965027, 0.04218531399965286, -0.469028115272522, 0.43720144033432007, -0.3244120478630066, 0.596767008304596, -0.29227975010871887, -0.2633800208568573, -0.20999480783939362, -0.442777544260025, 0.3719155788421631, 0.12754224240779877, 0.09017040580511093, -0.30664050579071045, -0.2759561538696289, 0.541262149810791, -0.9063460230827332, 0.7383389472961426, -0.333329439163208, 0.030458271503448486, 0.23746533691883087, -0.2830674946308136, 0.17111830413341522, -0.023334501311182976, -0.1636137217283249, -0.07258415222167969, -0.17877058684825897, -0.5218175649642944, -0.5367804169654846, 0.7304694056510925, -1.0542399883270264, -0.42974853515625, -0.2740166485309601, -0.3933451771736145, -0.014867199584841728, 0.07363064587116241, 0.43173813819885254, 0.42012763023376465, -0.06025996431708336, -0.08185137063264847, 0.4779707193374634, -0.20036102831363678, 0.587553858757019, 0.2796318829059601, -0.2282482385635376, -0.46692147850990295, 0.8101274371147156, 0.11718017607927322, 0.03681718930602074, 0.16522763669490814, 0.3438670039176941, -0.6310002207756042, -0.5652000904083252, -0.5135596394538879, 0.28735336661338806, -0.5152120590209961, -0.046801429241895676, -0.33984431624412537, -0.24691025912761688, -0.8420225381851196, 0.07301044464111328, -0.6002554297447205, -0.4970587491989136, -0.2550799250602722, -0.056900158524513245, 0.47655370831489563, 0.9435466527938843, -0.3236178457736969, 0.346162885427475, -0.3187323212623596, -0.09568728506565094, 0.5313333868980408, 0.2579229772090912, 0.21666666865348816, -0.5403144359588623, -0.14112453162670135, 0.12294324487447739, -0.45748037099838257, -0.5013155341148376, 0.41747674345970154, 0.10746364295482635, 0.6287493109703064, 0.7083940505981445, 0.04633069410920143, 1.0568962097167969, -0.21420975029468536, 0.8959483504295349, 0.17072539031505585, -0.7538833022117615, 0.6535021662712097, -0.29641228914260864, 0.10352607816457748, 0.6065680384635925, 0.4245726764202118, -0.1152881532907486, -0.5069182515144348, -0.6877225041389465, -0.4909563362598419, 0.5169903039932251, 0.3922036290168762, 0.04764231666922569, 0.03302166238427162, 0.5795106887817383, 0.05252639949321747, 0.24261046946048737, -0.5750855803489685, -0.1915837526321411, -0.3508463203907013, 0.06838835030794144, 0.04918428882956505, 0.3918982148170471, 0.17105326056480408, -0.7329462766647339, 1.0702991485595703, 0.051817599684000015, 0.22778569161891937, 0.3768325746059418, 0.0870652049779892, 0.023984413594007492, -0.02948162890970707, 0.7602974772453308, 0.5635558366775513, -0.43976646661758423, -0.04091688245534897, 0.29883137345314026, -0.4375897943973541, 0.16976593434810638, -0.2238926738500595, 0.13928090035915375, -0.006630039773881435, 0.2824209928512573, 0.7734675407409668, 0.07576160132884979, -0.5500009059906006, 0.3811991214752197, 0.03817436099052429, -0.10133929550647736, -0.26367703080177307, 0.4102216958999634, 0.0396970734000206, 0.1226620152592659, 0.013331667520105839, 0.12251542508602142, 0.13554567098617554, -0.9175822734832764, -0.12636372447013855, 0.14966131746768951, -0.5090674161911011, -0.37899845838546753, 0.7300986647605896, 0.09958215802907944, -0.39432886242866516, 0.548017680644989, -0.2928820550441742, -0.3806501626968384, 0.7018686532974243, 0.44864732027053833, 0.6113502383232117, -0.4707087576389313, -0.035245802253484726, 0.6959809064865112, 0.08658230304718018, -0.2780589461326599, 0.3983269929885864, 0.0975133627653122, -0.5793849229812622, -0.31958863139152527, -0.281802237033844, -0.3904755711555481, 0.43751633167266846, -0.6796432137489319, 0.391248494386673, -0.6237400770187378, -0.2316177487373352, 0.10505498945713043, 0.1972692310810089, -0.413546085357666, 0.2565954923629761, 0.008400056511163712, 0.9961908459663391, -0.6725891828536987, 0.8058862686157227, 0.6679373979568481, -0.6591582894325256, -0.8641186952590942, -0.38642582297325134, 0.09251713007688522, -0.8719499111175537, 0.4071536064147949, 0.04530857130885124, -0.15042617917060852, -0.13046708703041077, -0.6763706803321838, -0.7227556705474854, 1.1325910091400146, 0.20141386985778809, -0.5469785928726196, 0.11574463546276093, 0.07625430822372437, 0.527753472328186, -0.3611353933811188, 0.3688525855541229, 0.4202556908130646, 0.6626912355422974, 0.03589900583028793, -0.8438178300857544, 0.12322377413511276, -0.24178464710712433, -0.0318635068833828, -0.07073980569839478, -0.9243271946907043, 0.8607004284858704, -0.22131983935832977, 0.07636761665344238, 0.4590834677219391, 0.4480009078979492, 0.4521524906158447, 0.3065512180328369, 0.6721723079681396, 0.7004551291465759, 0.8102957010269165, 0.15118728578090668, 1.1369184255599976, -0.48764705657958984, 0.2639862596988678, 0.9485049247741699, 0.010458087548613548, 0.8173736333847046, 0.19577400386333466, -0.2077912837266922, 0.34660154581069946, 0.7962980270385742, -0.04432011768221855, 0.6218348145484924, 0.16156476736068726, -0.20183973014354706, -0.25374674797058105, -0.14077891409397125, -0.7398866415023804, 0.3605599105358124, 0.13616739213466644, -0.18812724947929382, -0.18591704964637756, 0.0365900918841362, 0.11526774615049362, -0.1658606380224228, -0.328103244304657, 1.06393563747406, 0.12498398125171661, -0.5444836020469666, 0.4971107840538025, -0.08578261733055115, 0.4839015603065491, -0.5271115899085999, 0.053036242723464966, -0.33585238456726074, 0.2126862108707428, -0.24584871530532837, -0.6068950891494751, 0.26591309905052185, -0.08459845930337906, -0.07535503059625626, -0.18197967112064362, 0.7355637550354004, 0.001460511703044176, -0.2631577253341675, 0.4364105463027954, 0.4042385220527649, 0.6501404047012329, -0.07335358113050461, -0.7861467599868774, 0.09355305135250092, 0.07978911697864532, -0.009070114232599735, 0.28883522748947144, 0.061326928436756134, 0.18830862641334534, 0.559191107749939, 0.7636495232582092, 0.45168811082839966, -0.034045614302158356, 0.08984020352363586, 0.8453407287597656, -0.5739120841026306, -0.46796292066574097, -0.6898773908615112, 0.34415626525878906, -0.18777748942375183, -0.5030463933944702, 0.6489982008934021, 0.9657496809959412, 0.7380245327949524, 0.09983941167593002, 0.8596999645233154, -0.0003205088432878256, 0.433912992477417, -0.47175803780555725, 0.8333083391189575, -0.7504866123199463, 0.3151511549949646, -0.022587850689888, -1.0659558773040771, -0.05535966902971268, 0.6663097739219666, -0.2590925395488739, 0.0592849999666214, 0.23333676159381866, 0.9074711799621582, -0.12186583876609802, 0.2656269967556, 0.3257289528846741, 0.4076400697231293, 0.39946049451828003, 0.32624492049217224, 0.8904538750648499, -0.491067111492157, 0.632986307144165, -0.5117835998535156, -0.317670613527298, -0.16827531158924103, -0.5624275803565979, -0.6027461290359497, -0.3353961110115051, -0.36528143286705017, -0.306872695684433, 0.36025235056877136, 0.7356153726577759, 0.9608874917030334, -0.6027336716651917, -0.5084367394447327, -0.21599240601062775, 0.031459685415029526, -0.3331478536128998, -0.21223926544189453, 0.21946826577186584, -0.47964704036712646, -0.8560031056404114, 0.5618631839752197, 0.1973247230052948, 0.42136526107788086, -0.0733909085392952, -0.15445643663406372, -0.06324151903390884, 0.15377284586429596, 0.35435181856155396, 0.4820108413696289, -0.5997704267501831, -0.4186197519302368, -0.20507650077342987, -0.026883617043495178, 0.2861080467700958, 0.5924857258796692, -0.5191073417663574, 0.182594895362854, 0.48508211970329285, 0.14171065390110016, 0.6706690192222595, 0.04459795355796814, 0.33606189489364624, -0.2868308424949646, 0.1316174566745758, 0.06357599049806595, 0.32815855741500854, 0.035848744213581085, -0.39645546674728394, 0.5989471077919006, 0.3484678864479065, -0.5860864520072937, -0.5131954550743103, -0.05113659054040909, -1.0542449951171875, -0.4550336003303528, 0.8763076663017273, -0.06696663796901703, -0.3723662495613098, -0.3105601668357849, -0.30792009830474854, 0.34765276312828064, -0.561443567276001, 0.677905797958374, 0.29343581199645996, -0.5104104280471802, -0.0022719944827258587, -0.48411795496940613, 0.6620795726776123, 0.2436438351869583, -0.8651464581489563, -0.14868220686912537, -0.061395127326250076, 0.49251386523246765, 0.2019067108631134, 0.6053297519683838, -0.20960445702075958, 0.21845132112503052, 0.15854904055595398, -0.012717106379568577, -0.26500898599624634, -0.10895252972841263, -0.24816739559173584, 0.06279268860816956, -0.07478828728199005, -0.33502885699272156 ]
lllyasviel/sd-controlnet-depth
lllyasviel
"2023-04-24T22:30:25Z"
13,284
29
diffusers
[ "diffusers", "art", "controlnet", "stable-diffusion", "image-to-image", "arxiv:2302.05543", "base_model:runwayml/stable-diffusion-v1-5", "license:openrail", "has_space", "diffusers:ControlNetModel", "region:us" ]
image-to-image
"2023-02-24T06:59:59Z"
--- license: openrail base_model: runwayml/stable-diffusion-v1-5 tags: - art - controlnet - stable-diffusion - image-to-image --- # Controlnet - *Depth Version* ControlNet is a neural network structure to control diffusion models by adding extra conditions. This checkpoint corresponds to the ControlNet conditioned on **Depth estimation**. It can be used in combination with [Stable Diffusion](https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion/text2img). ![img](./sd.png) ## Model Details - **Developed by:** Lvmin Zhang, Maneesh Agrawala - **Model type:** Diffusion-based text-to-image generation model - **Language(s):** English - **License:** [The CreativeML OpenRAIL M license](https://huggingface.co/spaces/CompVis/stable-diffusion-license) is an [Open RAIL M license](https://www.licenses.ai/blog/2022/8/18/naming-convention-of-responsible-ai-licenses), adapted from the work that [BigScience](https://bigscience.huggingface.co/) and [the RAIL Initiative](https://www.licenses.ai/) are jointly carrying in the area of responsible AI licensing. See also [the article about the BLOOM Open RAIL license](https://bigscience.huggingface.co/blog/the-bigscience-rail-license) on which our license is based. - **Resources for more information:** [GitHub Repository](https://github.com/lllyasviel/ControlNet), [Paper](https://arxiv.org/abs/2302.05543). - **Cite as:** @misc{zhang2023adding, title={Adding Conditional Control to Text-to-Image Diffusion Models}, author={Lvmin Zhang and Maneesh Agrawala}, year={2023}, eprint={2302.05543}, archivePrefix={arXiv}, primaryClass={cs.CV} } ## Introduction Controlnet was proposed in [*Adding Conditional Control to Text-to-Image Diffusion Models*](https://arxiv.org/abs/2302.05543) by Lvmin Zhang, Maneesh Agrawala. The abstract reads as follows: *We present a neural network structure, ControlNet, to control pretrained large diffusion models to support additional input conditions. The ControlNet learns task-specific conditions in an end-to-end way, and the learning is robust even when the training dataset is small (< 50k). Moreover, training a ControlNet is as fast as fine-tuning a diffusion model, and the model can be trained on a personal devices. Alternatively, if powerful computation clusters are available, the model can scale to large amounts (millions to billions) of data. We report that large diffusion models like Stable Diffusion can be augmented with ControlNets to enable conditional inputs like edge maps, segmentation maps, keypoints, etc. This may enrich the methods to control large diffusion models and further facilitate related applications.* ## Released Checkpoints The authors released 8 different checkpoints, each trained with [Stable Diffusion v1-5](https://huggingface.co/runwayml/stable-diffusion-v1-5) on a different type of conditioning: | Model Name | Control Image Overview| Control Image Example | Generated Image Example | |---|---|---|---| |[lllyasviel/sd-controlnet-canny](https://huggingface.co/lllyasviel/sd-controlnet-canny)<br/> *Trained with canny edge detection* | A monochrome image with white edges on a black background.|<a href="https://huggingface.co/takuma104/controlnet_dev/blob/main/gen_compare/control_images/converted/control_bird_canny.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/takuma104/controlnet_dev/resolve/main/gen_compare/control_images/converted/control_bird_canny.png"/></a>|<a href="https://huggingface.co/takuma104/controlnet_dev/resolve/main/gen_compare/output_images/diffusers/output_bird_canny_1.png"><img width="64" src="https://huggingface.co/takuma104/controlnet_dev/resolve/main/gen_compare/output_images/diffusers/output_bird_canny_1.png"/></a>| |[lllyasviel/sd-controlnet-depth](https://huggingface.co/lllyasviel/sd-controlnet-depth)<br/> *Trained with Midas depth estimation* |A grayscale image with black representing deep areas and white representing shallow areas.|<a href="https://huggingface.co/takuma104/controlnet_dev/blob/main/gen_compare/control_images/converted/control_vermeer_depth.png"><img width="64" src="https://huggingface.co/takuma104/controlnet_dev/resolve/main/gen_compare/control_images/converted/control_vermeer_depth.png"/></a>|<a href="https://huggingface.co/takuma104/controlnet_dev/resolve/main/gen_compare/output_images/diffusers/output_vermeer_depth_2.png"><img width="64" src="https://huggingface.co/takuma104/controlnet_dev/resolve/main/gen_compare/output_images/diffusers/output_vermeer_depth_2.png"/></a>| |[lllyasviel/sd-controlnet-hed](https://huggingface.co/lllyasviel/sd-controlnet-hed)<br/> *Trained with HED edge detection (soft edge)* |A monochrome image with white soft edges on a black background.|<a href="https://huggingface.co/takuma104/controlnet_dev/blob/main/gen_compare/control_images/converted/control_bird_hed.png"><img width="64" src="https://huggingface.co/takuma104/controlnet_dev/resolve/main/gen_compare/control_images/converted/control_bird_hed.png"/></a>|<a href="https://huggingface.co/takuma104/controlnet_dev/resolve/main/gen_compare/output_images/diffusers/output_bird_hed_1.png"><img width="64" src="https://huggingface.co/takuma104/controlnet_dev/resolve/main/gen_compare/output_images/diffusers/output_bird_hed_1.png"/></a> | |[lllyasviel/sd-controlnet-mlsd](https://huggingface.co/lllyasviel/sd-controlnet-mlsd)<br/> *Trained with M-LSD line detection* |A monochrome image composed only of white straight lines on a black background.|<a href="https://huggingface.co/takuma104/controlnet_dev/blob/main/gen_compare/control_images/converted/control_room_mlsd.png"><img width="64" src="https://huggingface.co/takuma104/controlnet_dev/resolve/main/gen_compare/control_images/converted/control_room_mlsd.png"/></a>|<a href="https://huggingface.co/takuma104/controlnet_dev/resolve/main/gen_compare/output_images/diffusers/output_room_mlsd_0.png"><img width="64" src="https://huggingface.co/takuma104/controlnet_dev/resolve/main/gen_compare/output_images/diffusers/output_room_mlsd_0.png"/></a>| |[lllyasviel/sd-controlnet-normal](https://huggingface.co/lllyasviel/sd-controlnet-normal)<br/> *Trained with normal map* |A [normal mapped](https://en.wikipedia.org/wiki/Normal_mapping) image.|<a href="https://huggingface.co/takuma104/controlnet_dev/blob/main/gen_compare/control_images/converted/control_human_normal.png"><img width="64" src="https://huggingface.co/takuma104/controlnet_dev/resolve/main/gen_compare/control_images/converted/control_human_normal.png"/></a>|<a href="https://huggingface.co/takuma104/controlnet_dev/resolve/main/gen_compare/output_images/diffusers/output_human_normal_1.png"><img width="64" src="https://huggingface.co/takuma104/controlnet_dev/resolve/main/gen_compare/output_images/diffusers/output_human_normal_1.png"/></a>| |[lllyasviel/sd-controlnet_openpose](https://huggingface.co/lllyasviel/sd-controlnet-openpose)<br/> *Trained with OpenPose bone image* |A [OpenPose bone](https://github.com/CMU-Perceptual-Computing-Lab/openpose) image.|<a href="https://huggingface.co/takuma104/controlnet_dev/blob/main/gen_compare/control_images/converted/control_human_openpose.png"><img width="64" src="https://huggingface.co/takuma104/controlnet_dev/resolve/main/gen_compare/control_images/converted/control_human_openpose.png"/></a>|<a href="https://huggingface.co/takuma104/controlnet_dev/resolve/main/gen_compare/output_images/diffusers/output_human_openpose_0.png"><img width="64" src="https://huggingface.co/takuma104/controlnet_dev/resolve/main/gen_compare/output_images/diffusers/output_human_openpose_0.png"/></a>| |[lllyasviel/sd-controlnet_scribble](https://huggingface.co/lllyasviel/sd-controlnet-scribble)<br/> *Trained with human scribbles* |A hand-drawn monochrome image with white outlines on a black background.|<a href="https://huggingface.co/takuma104/controlnet_dev/blob/main/gen_compare/control_images/converted/control_vermeer_scribble.png"><img width="64" src="https://huggingface.co/takuma104/controlnet_dev/resolve/main/gen_compare/control_images/converted/control_vermeer_scribble.png"/></a>|<a href="https://huggingface.co/takuma104/controlnet_dev/resolve/main/gen_compare/output_images/diffusers/output_vermeer_scribble_0.png"><img width="64" src="https://huggingface.co/takuma104/controlnet_dev/resolve/main/gen_compare/output_images/diffusers/output_vermeer_scribble_0.png"/></a> | |[lllyasviel/sd-controlnet_seg](https://huggingface.co/lllyasviel/sd-controlnet-seg)<br/>*Trained with semantic segmentation* |An [ADE20K](https://groups.csail.mit.edu/vision/datasets/ADE20K/)'s segmentation protocol image.|<a href="https://huggingface.co/takuma104/controlnet_dev/blob/main/gen_compare/control_images/converted/control_room_seg.png"><img width="64" src="https://huggingface.co/takuma104/controlnet_dev/resolve/main/gen_compare/control_images/converted/control_room_seg.png"/></a>|<a href="https://huggingface.co/takuma104/controlnet_dev/resolve/main/gen_compare/output_images/diffusers/output_room_seg_1.png"><img width="64" src="https://huggingface.co/takuma104/controlnet_dev/resolve/main/gen_compare/output_images/diffusers/output_room_seg_1.png"/></a> | ## Example It is recommended to use the checkpoint with [Stable Diffusion v1-5](https://huggingface.co/runwayml/stable-diffusion-v1-5) as the checkpoint has been trained on it. Experimentally, the checkpoint can be used with other diffusion models such as dreamboothed stable diffusion. 1. Let's install `diffusers` and related packages: ``` $ pip install diffusers transformers accelerate ``` 2. Run code: ```py from transformers import pipeline from diffusers import StableDiffusionControlNetPipeline, ControlNetModel, UniPCMultistepScheduler from PIL import Image import numpy as np import torch from diffusers.utils import load_image depth_estimator = pipeline('depth-estimation') image = load_image("https://huggingface.co/lllyasviel/sd-controlnet-depth/resolve/main/images/stormtrooper.png") image = depth_estimator(image)['depth'] image = np.array(image) image = image[:, :, None] image = np.concatenate([image, image, image], axis=2) image = Image.fromarray(image) controlnet = ControlNetModel.from_pretrained( "lllyasviel/sd-controlnet-depth", torch_dtype=torch.float16 ) pipe = StableDiffusionControlNetPipeline.from_pretrained( "runwayml/stable-diffusion-v1-5", controlnet=controlnet, safety_checker=None, torch_dtype=torch.float16 ) pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config) # Remove if you do not have xformers installed # see https://huggingface.co/docs/diffusers/v0.13.0/en/optimization/xformers#installing-xformers # for installation instructions pipe.enable_xformers_memory_efficient_attention() pipe.enable_model_cpu_offload() image = pipe("Stormtrooper's lecture", image, num_inference_steps=20).images[0] image.save('./images/stormtrooper_depth_out.png') ``` ![stormtrooper](./images/stormtrooper.png) ![stormtrooler_depth](./images/stormtrooper_depth.png) ![stormtrooler_depth_out](./images/stormtrooper_depth_out.png) ### Training The depth model was trained on 3M depth-image, caption pairs. The depth images were generated with Midas. The model was trained for 500 GPU-hours with Nvidia A100 80G using Stable Diffusion 1.5 as a base model. ### Blog post For more information, please also have a look at the [official ControlNet Blog Post](https://huggingface.co/blog/controlnet).
[ -0.5927333831787109, -0.5277737379074097, -0.05717642605304718, 0.4296499490737915, -0.29038551449775696, -0.29381027817726135, -0.05846662446856499, -0.6433339715003967, 0.8336736559867859, 0.16940222680568695, -0.5514847636222839, -0.45409414172172546, -0.7106058597564697, -0.043670136481523514, -0.007536766119301319, 0.5861807465553284, -0.11647962778806686, -0.12241198867559433, 0.22762532532215118, -0.1120387390255928, -0.10363280028104782, -0.11501672118902206, -1.261375904083252, -0.5005910396575928, 0.5838356614112854, 0.06365109980106354, 0.6751710176467896, 0.816075325012207, 0.5342285633087158, 0.40615949034690857, -0.33464232087135315, 0.262905478477478, -0.22800327837467194, -0.17836783826351166, 0.12395291775465012, -0.10794065147638321, -0.7467668652534485, 0.07987062633037567, 0.5801734328269958, 0.35586586594581604, 0.18377000093460083, -0.22142048180103302, 0.07479767501354218, 0.7192515730857849, -0.5165480971336365, -0.041267964988946915, -0.08333544433116913, 0.4553578495979309, -0.17714308202266693, -0.10523037612438202, -0.07767900824546814, -0.2796286344528198, 0.14190976321697235, -0.8299663066864014, -0.2910858988761902, -0.07736623287200928, 1.4262408018112183, 0.06510419398546219, -0.29814252257347107, -0.036067359149456024, -0.1518641859292984, 0.567350447177887, -0.8027242422103882, 0.12684068083763123, 0.2581680119037628, 0.21080593764781952, -0.21385930478572845, -0.7937778234481812, -0.5313884019851685, -0.15923601388931274, -0.12510038912296295, 0.4715205132961273, -0.447574645280838, 0.06263530999422073, 0.19471073150634766, 0.23679260909557343, -0.387281209230423, 0.24830013513565063, -0.36895811557769775, -0.41780024766921997, 0.6928461194038391, -0.03142736479640007, 0.6793993711471558, -0.08493348211050034, -0.513557493686676, -0.33308202028274536, -0.3488583266735077, 0.4541477859020233, 0.3187277317047119, 0.03992737829685211, -0.7270009517669678, 0.4474274814128876, -0.13852272927761078, 0.9132876992225647, 0.36163923144340515, -0.23991060256958008, 0.516818642616272, -0.24405184388160706, -0.25774049758911133, -0.321062833070755, 1.1359299421310425, 0.6309025883674622, 0.2758153975009918, 0.046676699072122574, -0.16620004177093506, -0.14654912054538727, 0.03479860723018646, -0.9051185846328735, -0.15249627828598022, 0.09810194373130798, -0.7282983660697937, -0.387320876121521, -0.08608704060316086, -0.7049593329429626, -0.3020879924297333, -0.19458584487438202, 0.3339569568634033, -0.6949505805969238, -0.6093790531158447, 0.2938278317451477, -0.49322983622550964, 0.5244824886322021, 0.5058141946792603, -0.33007049560546875, 0.2143363505601883, 0.13589705526828766, 1.0720468759536743, -0.21200576424598694, -0.25935104489326477, -0.2011456936597824, -0.10454168170690536, -0.34429052472114563, 0.486653596162796, -0.057379819452762604, -0.09944774955511093, -0.18060308694839478, 0.3072660565376282, -0.03155742585659027, -0.3262447714805603, 0.24686883389949799, -0.17041049897670746, 0.08191327750682831, -0.04739246144890785, -0.20903000235557556, -0.3259860873222351, 0.31011298298835754, -0.5935311317443848, 0.5691513419151306, 0.21379531919956207, -1.043764591217041, 0.33023378252983093, -0.6700912117958069, -0.3253227770328522, -0.24509602785110474, 0.03884148225188255, -0.6154115200042725, -0.5705038905143738, 0.008964622393250465, 0.7350450158119202, -0.05746718868613243, -0.160014346241951, -0.5833420157432556, -0.055534396320581436, 0.2437823861837387, -0.0884808599948883, 1.1768114566802979, 0.169232577085495, -0.6002572774887085, 0.2093276083469391, -0.7515007257461548, 0.07096214592456818, 0.2563464939594269, -0.3673320710659027, -0.14885658025741577, -0.16954578459262848, 0.08673107624053955, 0.6902199387550354, 0.31064173579216003, -0.706958532333374, 0.09230032563209534, -0.366441547870636, 0.40710198879241943, 0.5288147330284119, 0.11614208668470383, 0.5609655976295471, -0.6201643347740173, 0.42133328318595886, 0.2858516573905945, 0.40211689472198486, 0.1584412157535553, -0.4012480676174164, -0.8128715753555298, -0.5154050588607788, -0.043364450335502625, 0.6017638444900513, -0.7894578576087952, 0.8496761918067932, -0.05512242391705513, -0.5735101103782654, -0.3257417678833008, 0.04720209538936615, 0.4885545074939728, 0.5894684791564941, 0.33616214990615845, -0.5109710693359375, -0.38257503509521484, -1.0233813524246216, 0.14293523132801056, 0.20848211646080017, -0.006177875213325024, 0.31135210394859314, 0.5638036727905273, -0.05314825475215912, 0.6323577165603638, -0.15916520357131958, -0.46440422534942627, -0.023853925988078117, -0.13627618551254272, 0.20193253457546234, 1.0103498697280884, 0.7568483352661133, -0.9242737293243408, -0.516842782497406, 0.14302745461463928, -0.9698486328125, 0.02589433267712593, -0.19445866346359253, -0.4261477589607239, 0.09224894642829895, 0.5182752013206482, -0.4941607415676117, 0.8794360756874084, 0.42689406871795654, -0.46814602613449097, 0.4156256914138794, -0.30831483006477356, 0.1831287443637848, -1.02992582321167, 0.32133787870407104, 0.4389508366584778, -0.19582174718379974, -0.5524712800979614, 0.09391915053129196, 0.11974763870239258, 0.1312035769224167, -0.6383383870124817, 0.6468349099159241, -0.6415026783943176, -0.07681196182966232, -0.18187858164310455, 0.014789840206503868, -0.018969621509313583, 0.6637507677078247, 0.1608252078294754, 0.4642176926136017, 0.8361859917640686, -0.3956346809864044, 0.3927967846393585, 0.39258110523223877, -0.07904946804046631, 0.8740854859352112, -0.9263347387313843, 0.027255356311798096, 0.0007948376005515456, 0.46648597717285156, -0.7769302725791931, -0.25655651092529297, 0.5339279770851135, -0.5491016507148743, 0.6704899072647095, -0.09756288677453995, -0.17193566262722015, -0.5267671942710876, -0.5739572644233704, 0.06538116186857224, 0.4189758598804474, -0.4616844952106476, 0.43273085355758667, 0.22494536638259888, 0.2398495227098465, -0.6728719472885132, -1.069846510887146, 0.03918278217315674, -0.13495667278766632, -0.8326047658920288, 0.3299087584018707, -0.006916821002960205, 0.03863587975502014, 0.14836320281028748, 0.08699707686901093, -0.20054583251476288, 0.1089826300740242, 0.5946688055992126, 0.1060137003660202, -0.3302650451660156, -0.1639156937599182, 0.019047461450099945, -0.0638914480805397, -0.1793973296880722, -0.4681084454059601, 0.43993568420410156, -0.11038687080144882, -0.21823376417160034, -0.9951412677764893, 0.2535296082496643, 0.5387767553329468, -0.2062458097934723, 0.6945372819900513, 0.7049154043197632, -0.4117552936077118, -0.03084598295390606, -0.34570834040641785, -0.11103098839521408, -0.49300795793533325, -0.1578904390335083, -0.25011709332466125, -0.8470573425292969, 0.7029663920402527, 0.07783224433660507, -0.13558392226696014, 0.542781412601471, 0.21386942267417908, -0.20642228424549103, 0.8601167798042297, 0.3910796344280243, -0.15325309336185455, 0.668967604637146, -0.8002029061317444, -0.17032490670681, -0.9901042580604553, -0.3240512013435364, -0.2578081488609314, -0.9027843475341797, -0.3670075237751007, -0.27529284358024597, 0.342894971370697, 0.28468018770217896, -0.6550794243812561, 0.44757336378097534, -0.6583540439605713, 0.1281745284795761, 0.4113338589668274, 0.6527251601219177, -0.24016332626342773, -0.09593157470226288, -0.3474702537059784, 0.1806401163339615, -0.6213068962097168, -0.2004903256893158, 0.6884946823120117, 0.48450443148612976, 0.509215772151947, -0.044120583683252335, 0.5591742992401123, 0.09338322281837463, 0.09376020729541779, -0.6811394095420837, 0.5154801607131958, -0.07156653702259064, -0.5693539977073669, -0.44417884945869446, -0.35688382387161255, -1.192883014678955, 0.212008997797966, -0.5416126251220703, -0.6919168829917908, 0.44170835614204407, 0.12280953675508499, -0.1761075109243393, 0.6623756885528564, -0.6786065697669983, 0.6392921805381775, 0.016995849087834358, -0.4777664840221405, 0.16839712858200073, -0.934674859046936, 0.16971273720264435, 0.2803538143634796, -0.2706078290939331, 0.07327770441770554, -0.17798568308353424, 0.8353030681610107, -0.8292074799537659, 0.9313522577285767, -0.5033795833587646, 0.09671885520219803, 0.360434353351593, 0.10183633118867874, 0.37329816818237305, -0.24186263978481293, -0.16701266169548035, 0.050492558628320694, -0.10184795409440994, -0.5715518593788147, -0.3844423294067383, 0.5612710118293762, -0.8709097504615784, -0.16892461478710175, -0.22899796068668365, -0.2989623248577118, 0.14195173978805542, 0.36071375012397766, 0.5250201225280762, 0.4744984805583954, 0.25680696964263916, 0.3182904124259949, 0.534091591835022, -0.43143603205680847, 0.5586053729057312, 0.015563959255814552, 0.07799429446458817, -0.526925802230835, 0.7246320247650146, 0.19647446274757385, 0.17281517386436462, 0.34322798252105713, 0.23999448120594025, -0.19536437094211578, -0.5067777037620544, -0.3299540877342224, 0.42244407534599304, -0.5480567216873169, -0.5309177041053772, -0.6168496608734131, -0.5096214413642883, -0.3434712588787079, -0.4816231429576874, -0.25343120098114014, -0.24477380514144897, -0.664715051651001, 0.09523183852434158, 0.6370564103126526, 0.5623965859413147, -0.40024641156196594, 0.6491174101829529, -0.1893714815378189, 0.3041726052761078, 0.3386778235435486, 0.32085180282592773, 0.07528384029865265, -0.3708379864692688, 0.22998389601707458, 0.25701192021369934, -0.2831644117832184, -0.8655690550804138, 0.43987587094306946, 0.12548384070396423, 0.4424440264701843, 0.4677048623561859, -0.2986714243888855, 0.5659016370773315, -0.0971955806016922, 0.4409996271133423, 0.7115218639373779, -0.6830677390098572, 0.548036515712738, -0.4505986273288727, 0.3739854693412781, 0.41257646679878235, 0.5386430621147156, -0.5120679140090942, -0.2464132457971573, -0.55584716796875, -0.566245973110199, 0.5924445986747742, -0.0016560818767175078, -0.20187681913375854, 0.28023383021354675, 0.6694400310516357, -0.3548155128955841, -0.02040913887321949, -0.7856826782226562, -0.43953073024749756, -0.3431474268436432, -0.10867292433977127, 0.05744108185172081, 0.14646513760089874, -0.03343607485294342, -0.5547199845314026, 0.6614555716514587, -0.19699950516223907, 0.5532808303833008, 0.5264965891838074, 0.1524226814508438, -0.21380291879177094, -0.405404657125473, 0.7611742615699768, 0.4358381927013397, 0.044005487114191055, -0.10973069816827774, -0.06421159207820892, -0.5364283323287964, 0.23518969118595123, -0.11418227851390839, -0.35772740840911865, -0.21617048978805542, 0.38119298219680786, 0.866225004196167, -0.07793360948562622, 0.022705204784870148, 0.9719463586807251, -0.019799496978521347, -0.7748640179634094, -0.12571892142295837, 0.04277067631483078, 0.19782084226608276, 0.46898993849754333, 0.1393749862909317, 0.33734819293022156, 0.08518841862678528, -0.03686530888080597, 0.33699801564216614, 0.47403404116630554, -0.5144109725952148, -0.17347168922424316, 0.49190184473991394, -0.05607236549258232, -0.1755664199590683, 0.27079546451568604, -0.44704362750053406, -0.7428596019744873, 0.9723274111747742, 0.5100040435791016, 0.6823160648345947, -0.11338429152965546, 0.3745342195034027, 0.6740291714668274, 0.35146626830101013, 0.21447190642356873, 0.39906632900238037, 0.09480004012584686, -0.670168936252594, -0.35968154668807983, -0.38809502124786377, 0.06576445698738098, 0.3352789282798767, -0.45489874482154846, 0.29702213406562805, -0.9642218947410583, -0.24938444793224335, 0.0186843890696764, 0.1844353824853897, -0.6350362300872803, 0.4361288249492645, 0.009947427548468113, 1.2700400352478027, -0.7696948647499084, 0.714644193649292, 0.6988710165023804, -0.49888932704925537, -1.1957411766052246, -0.15039633214473724, 0.11729186028242111, -0.8153097033500671, 0.7234455347061157, 0.021123744547367096, -0.15367670357227325, -0.08225603401660919, -0.9355819225311279, -0.5797715783119202, 1.3105870485305786, 0.054696571081876755, -0.22781115770339966, 0.15072272717952728, -0.4796786308288574, 0.4393039047718048, -0.4547211825847626, 0.34182608127593994, 0.22621141374111176, 0.5956153869628906, 0.22460857033729553, -0.7637627124786377, 0.3045443892478943, -0.5775631070137024, 0.18283718824386597, 0.2007959485054016, -0.9981361627578735, 0.9013487100601196, 0.24211888015270233, -0.09557995200157166, 0.019150109961628914, 0.6524721384048462, 0.1449543982744217, 0.14954188466072083, 0.750441312789917, 0.7208716869354248, 0.3126381039619446, -0.09198086708784103, 0.8413839936256409, -0.06840026378631592, 0.08357594907283783, 0.6362534165382385, 0.2847647964954376, 0.5734849572181702, 0.3635716140270233, 0.075660340487957, 0.34745463728904724, 0.7881140112876892, 0.029415875673294067, 0.2958853840827942, 0.5702364444732666, 0.027422375977039337, -0.05364862456917763, 0.029290465638041496, -0.34512093663215637, 0.3857261836528778, 0.33791807293891907, -0.22624774277210236, -0.1645607054233551, 0.3739868402481079, 0.14388741552829742, -0.003601192031055689, -0.37542006373405457, 0.6790795922279358, -0.12310782074928284, -0.40194442868232727, 0.8370985388755798, -0.12981420755386353, 1.2477960586547852, -0.6065022945404053, 0.014660648070275784, -0.34033316373825073, -0.056098297238349915, -0.4082338213920593, -0.9695901274681091, 0.19245357811450958, -0.26529204845428467, 0.3366529643535614, -0.2212080955505371, 0.9379438757896423, -0.25097182393074036, -0.12212266772985458, 0.6005403399467468, 0.19245104491710663, 0.34662917256355286, 0.23157301545143127, -1.1650115251541138, 0.20138879120349884, 0.06344646960496902, -0.4627421498298645, 0.1097583994269371, 0.5160062313079834, 0.10169069468975067, 0.6900107860565186, 0.41456878185272217, 0.6366168260574341, 0.2639175355434418, -0.3799786865711212, 0.9972183704376221, -0.27541303634643555, -0.34285199642181396, -0.45551425218582153, 0.6266559958457947, -0.5691156983375549, -0.5156188607215881, 0.4964786767959595, 0.30714309215545654, 0.7773255705833435, -0.0029723145999014378, 0.6142178177833557, -0.3428526818752289, 0.27479881048202515, -0.47967061400413513, 1.0632603168487549, -0.9844585657119751, -0.4362082779407501, -0.2171189934015274, -0.4843358099460602, -0.5086764693260193, 0.978549063205719, -0.18072831630706787, 0.15622447431087494, 0.43763402104377747, 0.9480656981468201, -0.32149025797843933, -0.44001197814941406, 0.08747822046279907, 0.07623482495546341, 0.14600521326065063, 0.7979472875595093, 0.6396309733390808, -0.6083619594573975, 0.14261183142662048, -0.5614454746246338, -0.4938502311706543, -0.28743284940719604, -0.8760038018226624, -0.8715169429779053, -0.7362301349639893, -0.47994300723075867, -0.5487428903579712, -0.2144930511713028, 0.8126926422119141, 1.2244377136230469, -0.6194465160369873, -0.31565147638320923, -0.14977112412452698, 0.08787228912115097, -0.17943763732910156, -0.17909154295921326, 0.3766932785511017, 0.1270311027765274, -0.4164165258407593, 0.029329532757401466, 0.3592625558376312, 0.5945931673049927, -0.01519815344363451, -0.4209470748901367, -0.5591514706611633, -0.3045087158679962, 0.2841540575027466, 0.6570942401885986, -0.4478245675563812, -0.27550044655799866, -0.04727698490023613, -0.3396696150302887, 0.10077431797981262, 0.38883301615715027, -0.19031371176242828, 0.2910807728767395, 0.6236129403114319, 0.6180341839790344, 0.6576127409934998, -0.21047057211399078, 0.049914538860321045, -0.5173210501670837, 0.5144137740135193, 0.039429355412721634, 0.3467266261577606, 0.22566929459571838, -0.32201728224754333, 0.5326133966445923, 0.30761808156967163, -0.5519952178001404, -0.40909627079963684, -0.027168817818164825, -1.4414540529251099, -0.2636553645133972, 0.8682096600532532, -0.41143009066581726, -0.6823785901069641, 0.2500345706939697, -0.48656120896339417, 0.41912832856178284, -0.2716488540172577, 0.06177790090441704, 0.2499578446149826, -0.023583024740219116, -0.25725749135017395, -0.400755912065506, 0.5936701893806458, 0.22611460089683533, -0.7873607277870178, -0.721005916595459, 0.5237361788749695, 0.18212175369262695, 0.4773552715778351, 0.7359044551849365, -0.11683052033185959, 0.2670452296733856, -0.08153396099805832, 0.34866514801979065, -0.20118111371994019, -0.17351648211479187, -0.5605272650718689, -0.05685119330883026, -0.21330037713050842, -0.4586542844772339 ]
EleutherAI/pythia-2.8b-deduped
EleutherAI
"2023-07-09T16:06:37Z"
13,215
12
transformers
[ "transformers", "pytorch", "safetensors", "gpt_neox", "text-generation", "causal-lm", "pythia", "en", "dataset:EleutherAI/the_pile_deduplicated", "arxiv:2304.01373", "arxiv:2101.00027", "arxiv:2201.07311", "license:apache-2.0", "endpoints_compatible", "has_space", "text-generation-inference", "region:us" ]
text-generation
"2023-02-10T22:26:20Z"
--- language: - en tags: - pytorch - causal-lm - pythia license: apache-2.0 datasets: - EleutherAI/the_pile_deduplicated --- The *Pythia Scaling Suite* is a collection of models developed to facilitate interpretability research [(see paper)](https://arxiv.org/pdf/2304.01373.pdf). It contains two sets of eight models of sizes 70M, 160M, 410M, 1B, 1.4B, 2.8B, 6.9B, and 12B. For each size, there are two models: one trained on the Pile, and one trained on the Pile after the dataset has been globally deduplicated. All 8 model sizes are trained on the exact same data, in the exact same order. We also provide 154 intermediate checkpoints per model, hosted on Hugging Face as branches. The Pythia model suite was designed to promote scientific research on large language models, especially interpretability research. Despite not centering downstream performance as a design goal, we find the models <a href="#evaluations">match or exceed</a> the performance of similar and same-sized models, such as those in the OPT and GPT-Neo suites. <details> <summary style="font-weight:600">Details on previous early release and naming convention.</summary> Previously, we released an early version of the Pythia suite to the public. However, we decided to retrain the model suite to address a few hyperparameter discrepancies. This model card <a href="#changelog">lists the changes</a>; see appendix B in the Pythia paper for further discussion. We found no difference in benchmark performance between the two Pythia versions. The old models are [still available](https://huggingface.co/models?other=pythia_v0), but we suggest the retrained suite if you are just starting to use Pythia.<br> **This is the current release.** Please note that all models in the *Pythia* suite were renamed in January 2023. For clarity, a <a href="#naming-convention-and-parameter-count">table comparing the old and new names</a> is provided in this model card, together with exact parameter counts. </details> <br> # Pythia-2.8B-deduped ## Model Details - Developed by: [EleutherAI](http://eleuther.ai) - Model type: Transformer-based Language Model - Language: English - Learn more: [Pythia's GitHub repository](https://github.com/EleutherAI/pythia) for training procedure, config files, and details on how to use. [See paper](https://arxiv.org/pdf/2304.01373.pdf) for more evals and implementation details. - Library: [GPT-NeoX](https://github.com/EleutherAI/gpt-neox) - License: Apache 2.0 - Contact: to ask questions about this model, join the [EleutherAI Discord](https://discord.gg/zBGx3azzUn), and post them in `#release-discussion`. Please read the existing *Pythia* documentation before asking about it in the EleutherAI Discord. For general correspondence: [contact@eleuther. ai](mailto:contact@eleuther.ai). <figure> | Pythia model | Non-Embedding Params | Layers | Model Dim | Heads | Batch Size | Learning Rate | Equivalent Models | | -----------: | -------------------: | :----: | :-------: | :---: | :--------: | :-------------------: | :--------------------: | | 70M | 18,915,328 | 6 | 512 | 8 | 2M | 1.0 x 10<sup>-3</sup> | — | | 160M | 85,056,000 | 12 | 768 | 12 | 2M | 6.0 x 10<sup>-4</sup> | GPT-Neo 125M, OPT-125M | | 410M | 302,311,424 | 24 | 1024 | 16 | 2M | 3.0 x 10<sup>-4</sup> | OPT-350M | | 1.0B | 805,736,448 | 16 | 2048 | 8 | 2M | 3.0 x 10<sup>-4</sup> | — | | 1.4B | 1,208,602,624 | 24 | 2048 | 16 | 2M | 2.0 x 10<sup>-4</sup> | GPT-Neo 1.3B, OPT-1.3B | | 2.8B | 2,517,652,480 | 32 | 2560 | 32 | 2M | 1.6 x 10<sup>-4</sup> | GPT-Neo 2.7B, OPT-2.7B | | 6.9B | 6,444,163,072 | 32 | 4096 | 32 | 2M | 1.2 x 10<sup>-4</sup> | OPT-6.7B | | 12B | 11,327,027,200 | 36 | 5120 | 40 | 2M | 1.2 x 10<sup>-4</sup> | — | <figcaption>Engineering details for the <i>Pythia Suite</i>. Deduped and non-deduped models of a given size have the same hyperparameters. “Equivalent” models have <b>exactly</b> the same architecture, and the same number of non-embedding parameters.</figcaption> </figure> ## Uses and Limitations ### Intended Use The primary intended use of Pythia is research on the behavior, functionality, and limitations of large language models. This suite is intended to provide a controlled setting for performing scientific experiments. We also provide 154 checkpoints per model: initial `step0`, 10 log-spaced checkpoints `step{1,2,4...512}`, and 143 evenly-spaced checkpoints from `step1000` to `step143000`. These checkpoints are hosted on Hugging Face as branches. Note that branch `143000` corresponds exactly to the model checkpoint on the `main` branch of each model. You may also further fine-tune and adapt Pythia-2.8B-deduped for deployment, as long as your use is in accordance with the Apache 2.0 license. Pythia models work with the Hugging Face [Transformers Library](https://huggingface.co/docs/transformers/index). If you decide to use pre-trained Pythia-2.8B-deduped as a basis for your fine-tuned model, please conduct your own risk and bias assessment. ### Out-of-scope use The Pythia Suite is **not** intended for deployment. It is not a in itself a product and cannot be used for human-facing interactions. For example, the model may generate harmful or offensive text. Please evaluate the risks associated with your particular use case. Pythia models are English-language only, and are not suitable for translation or generating text in other languages. Pythia-2.8B-deduped has not been fine-tuned for downstream contexts in which language models are commonly deployed, such as writing genre prose, or commercial chatbots. This means Pythia-2.8B-deduped will **not** respond to a given prompt the way a product like ChatGPT does. This is because, unlike this model, ChatGPT was fine-tuned using methods such as Reinforcement Learning from Human Feedback (RLHF) to better “follow” human instructions. ### Limitations and biases The core functionality of a large language model is to take a string of text and predict the next token. The token used by the model need not produce the most “accurate” text. Never rely on Pythia-2.8B-deduped to produce factually accurate output. This model was trained on [the Pile](https://pile.eleuther.ai/), a dataset known to contain profanity and texts that are lewd or otherwise offensive. See [Section 6 of the Pile paper](https://arxiv.org/abs/2101.00027) for a discussion of documented biases with regards to gender, religion, and race. Pythia-2.8B-deduped may produce socially unacceptable or undesirable text, *even if* the prompt itself does not include anything explicitly offensive. If you plan on using text generated through, for example, the Hosted Inference API, we recommend having a human curate the outputs of this language model before presenting it to other people. Please inform your audience that the text was generated by Pythia-2.8B-deduped. ### Quickstart Pythia models can be loaded and used via the following code, demonstrated here for the third `pythia-70m-deduped` checkpoint: ```python from transformers import GPTNeoXForCausalLM, AutoTokenizer model = GPTNeoXForCausalLM.from_pretrained( "EleutherAI/pythia-70m-deduped", revision="step3000", cache_dir="./pythia-70m-deduped/step3000", ) tokenizer = AutoTokenizer.from_pretrained( "EleutherAI/pythia-70m-deduped", revision="step3000", cache_dir="./pythia-70m-deduped/step3000", ) inputs = tokenizer("Hello, I am", return_tensors="pt") tokens = model.generate(**inputs) tokenizer.decode(tokens[0]) ``` Revision/branch `step143000` corresponds exactly to the model checkpoint on the `main` branch of each model.<br> For more information on how to use all Pythia models, see [documentation on GitHub](https://github.com/EleutherAI/pythia). ## Training ### Training data Pythia-2.8B-deduped was trained on the Pile **after the dataset has been globally deduplicated**.<br> [The Pile](https://pile.eleuther.ai/) is a 825GiB general-purpose dataset in English. It was created by EleutherAI specifically for training large language models. It contains texts from 22 diverse sources, roughly broken down into five categories: academic writing (e.g. arXiv), internet (e.g. CommonCrawl), prose (e.g. Project Gutenberg), dialogue (e.g. YouTube subtitles), and miscellaneous (e.g. GitHub, Enron Emails). See [the Pile paper](https://arxiv.org/abs/2101.00027) for a breakdown of all data sources, methodology, and a discussion of ethical implications. Consult [the datasheet](https://arxiv.org/abs/2201.07311) for more detailed documentation about the Pile and its component datasets. The Pile can be downloaded from the [official website](https://pile.eleuther.ai/), or from a [community mirror](https://the-eye.eu/public/AI/pile/). ### Training procedure All models were trained on the exact same data, in the exact same order. Each model saw 299,892,736,000 tokens during training, and 143 checkpoints for each model are saved every 2,097,152,000 tokens, spaced evenly throughout training, from `step1000` to `step143000` (which is the same as `main`). In addition, we also provide frequent early checkpoints: `step0` and `step{1,2,4...512}`. This corresponds to training for just under 1 epoch on the Pile for non-deduplicated models, and about 1.5 epochs on the deduplicated Pile. All *Pythia* models trained for 143000 steps at a batch size of 2M (2,097,152 tokens).<br> See [GitHub](https://github.com/EleutherAI/pythia) for more details on training procedure, including [how to reproduce it](https://github.com/EleutherAI/pythia/blob/main/README.md#reproducing-training).<br> Pythia uses the same tokenizer as [GPT-NeoX- 20B](https://huggingface.co/EleutherAI/gpt-neox-20b). ## Evaluations All 16 *Pythia* models were evaluated using the [LM Evaluation Harness](https://github.com/EleutherAI/lm-evaluation-harness). You can access the results by model and step at `results/json/*` in the [GitHub repository](https://github.com/EleutherAI/pythia/tree/main/results/json/).<br> Expand the sections below to see plots of evaluation results for all Pythia and Pythia-deduped models compared with OPT and BLOOM. <details> <summary>LAMBADA – OpenAI</summary> <img src="/EleutherAI/pythia-12b/resolve/main/eval_plots/lambada_openai_v1.png" style="width:auto"/> </details> <details> <summary>Physical Interaction: Question Answering (PIQA)</summary> <img src="/EleutherAI/pythia-12b/resolve/main/eval_plots/piqa_v1.png" style="width:auto"/> </details> <details> <summary>WinoGrande</summary> <img src="/EleutherAI/pythia-12b/resolve/main/eval_plots/winogrande_v1.png" style="width:auto"/> </details> <details> <summary>AI2 Reasoning Challenge—Easy Set</summary> <img src="/EleutherAI/pythia-12b/resolve/main/eval_plots/arc_easy_v1.png" style="width:auto"/> </details> <details> <summary>SciQ</summary> <img src="/EleutherAI/pythia-12b/resolve/main/eval_plots/sciq_v1.png" style="width:auto"/> </details> ## Changelog This section compares differences between previously released [Pythia v0](https://huggingface.co/models?other=pythia_v0) and the current models. See Appendix B of the Pythia paper for further discussion of these changes and the motivation behind them. We found that retraining Pythia had no impact on benchmark performance. - All model sizes are now trained with uniform batch size of 2M tokens. Previously, the models of size 160M, 410M, and 1.4B parameters were trained with batch sizes of 4M tokens. - We added checkpoints at initialization (step 0) and steps {1,2,4,8,16,32,64, 128,256,512} in addition to every 1000 training steps. - Flash Attention was used in the new retrained suite. - We remedied a minor inconsistency that existed in the original suite: all models of size 2.8B parameters or smaller had a learning rate (LR) schedule which decayed to a minimum LR of 10% the starting LR rate, but the 6.9B and 12B models all used an LR schedule which decayed to a minimum LR of 0. In the redone training runs, we rectified this inconsistency: all models now were trained with LR decaying to a minimum of 0.1× their maximum LR. ### Naming convention and parameter count *Pythia* models were renamed in January 2023. It is possible that the old naming convention still persists in some documentation by accident. The current naming convention (70M, 160M, etc.) is based on total parameter count. <figure style="width:32em"> | current Pythia suffix | old suffix | total params | non-embedding params | | --------------------: | ---------: | -------------: | -------------------: | | 70M | 19M | 70,426,624 | 18,915,328 | | 160M | 125M | 162,322,944 | 85,056,000 | | 410M | 350M | 405,334,016 | 302,311,424 | | 1B | 800M | 1,011,781,632 | 805,736,448 | | 1.4B | 1.3B | 1,414,647,808 | 1,208,602,624 | | 2.8B | 2.7B | 2,775,208,960 | 2,517,652,480 | | 6.9B | 6.7B | 6,857,302,016 | 6,444,163,072 | | 12B | 13B | 11,846,072,320 | 11,327,027,200 | </figure>
[ -0.3152422308921814, -0.7995162606239319, 0.3286306858062744, 0.05710851028561592, -0.24828146398067474, -0.19828185439109802, -0.23010635375976562, -0.46238240599632263, 0.18329298496246338, 0.16798743605613708, -0.35124215483665466, -0.2726685106754303, -0.44212546944618225, -0.0745387002825737, -0.45168885588645935, 1.133583426475525, -0.12422259896993637, -0.14447161555290222, 0.12032259255647659, -0.06648002564907074, -0.08515384793281555, -0.5394814610481262, -0.4574243128299713, -0.39494889974594116, 0.6346402168273926, 0.18940210342407227, 0.8778178691864014, 0.5702142119407654, 0.1591581553220749, 0.2836853563785553, -0.3774191737174988, -0.06632455438375473, -0.15984542667865753, -0.0912562683224678, -0.031575001776218414, -0.26572519540786743, -0.7153472900390625, 0.04020523279905319, 0.681479811668396, 0.6549332737922668, -0.1775009036064148, 0.25533202290534973, -0.006476694718003273, 0.3662060797214508, -0.5050735473632812, 0.042145706713199615, -0.3294805884361267, -0.17809990048408508, -0.07350333780050278, 0.15612365305423737, -0.3938751816749573, -0.3408592939376831, 0.4348304569721222, -0.6522715091705322, 0.2568196654319763, 0.08095375448465347, 1.192701816558838, -0.11453952640295029, -0.4348461329936981, -0.06619639694690704, -0.7153054475784302, 0.6686538457870483, -0.7072446346282959, 0.335847944021225, 0.28979307413101196, 0.17277708649635315, -0.04829048365354538, -0.9111567735671997, -0.5559136867523193, -0.2120664268732071, -0.13628047704696655, -0.03772962465882301, -0.6299152374267578, 0.015474860556423664, 0.5125448107719421, 0.6416122317314148, -0.8348590135574341, -0.013120207004249096, -0.3859896957874298, -0.3456871807575226, 0.3584707975387573, 0.04956642538309097, 0.44394928216934204, -0.30990174412727356, -0.002932233503088355, -0.3935233950614929, -0.6840621829032898, -0.22256672382354736, 0.551328182220459, 0.06092214584350586, -0.3732846677303314, 0.49865758419036865, -0.37380847334861755, 0.5410971641540527, -0.07482147961854935, 0.25987672805786133, 0.42774710059165955, -0.19881848990917206, -0.49664583802223206, -0.10791703313589096, 0.9430825114250183, 0.14659541845321655, 0.21149396896362305, -0.011995750479400158, -0.04152543097734451, 0.06186387315392494, 0.03336368501186371, -1.1414124965667725, -0.8153600096702576, 0.2347659021615982, -0.40099406242370605, -0.44024398922920227, -0.18435059487819672, -0.9444664120674133, -0.20944258570671082, -0.19378264248371124, 0.5669066309928894, -0.49748778343200684, -0.7385817170143127, -0.16130396723747253, 0.0007019579061307013, 0.21872578561306, 0.36883899569511414, -0.9557707905769348, 0.4102957248687744, 0.44352757930755615, 1.0223740339279175, 0.23728331923484802, -0.5458943843841553, -0.20930911600589752, -0.2721700966358185, -0.12755635380744934, 0.37410932779312134, -0.11861278116703033, -0.19339928030967712, -0.11473523825407028, 0.16316552460193634, -0.10362918674945831, -0.3617977797985077, 0.39662879705429077, -0.4074018895626068, 0.26560601592063904, -0.28903236985206604, -0.43897223472595215, -0.3793204724788666, 0.08081768453121185, -0.6207054257392883, 0.8758867383003235, 0.2605897784233093, -0.9596646428108215, 0.22711452841758728, -0.21557186543941498, -0.0663236752152443, -0.04838237538933754, 0.1870085895061493, -0.687513530254364, 0.03518028184771538, 0.3500991463661194, 0.030054226517677307, -0.414006769657135, 0.21005645394325256, -0.25272130966186523, -0.4316442012786865, 0.181001216173172, -0.5386099219322205, 0.9345893263816833, 0.2023412138223648, -0.6693402528762817, 0.2637495994567871, -0.5698482394218445, 0.21878662705421448, 0.2470649927854538, -0.3524659276008606, 0.050502121448516846, -0.16748806834220886, 0.38154077529907227, 0.22281911969184875, 0.16712723672389984, -0.35458728671073914, 0.3061682879924774, -0.5135928988456726, 0.7499970197677612, 0.7512729167938232, -0.08315584063529968, 0.4630383551120758, -0.411786824464798, 0.44258373975753784, 0.04048415273427963, 0.1905095875263214, -0.037960514426231384, -0.6276033520698547, -0.9912406802177429, -0.3031732738018036, 0.3769725263118744, 0.3079635798931122, -0.46158578991889954, 0.4449910521507263, -0.23650023341178894, -0.8744670152664185, -0.1600179225206375, -0.08372001349925995, 0.4317568242549896, 0.30304452776908875, 0.43069779872894287, -0.1625390201807022, -0.5356433987617493, -0.8873251080513, -0.21290630102157593, -0.4399909973144531, 0.11987211555242538, 0.1873798966407776, 0.9472350478172302, -0.11816543340682983, 0.5876473188400269, -0.3683294951915741, 0.24897275865077972, -0.37183237075805664, 0.17350538074970245, 0.4300680458545685, 0.6145482063293457, 0.3918081820011139, -0.5591334104537964, -0.3808055520057678, 0.0067457882687449455, -0.5868619084358215, 0.08081262558698654, 0.039785366505384445, -0.31777065992355347, 0.3159313499927521, 0.07812277972698212, -1.0038373470306396, 0.4714512825012207, 0.6174637675285339, -0.5616551041603088, 0.8092412352561951, -0.32677406072616577, -0.020031660795211792, -1.0719197988510132, 0.26267209649086, 0.11633850634098053, -0.2209048867225647, -0.606869101524353, 0.07827342301607132, 0.19408166408538818, -0.2047891616821289, -0.3921884298324585, 0.6203234195709229, -0.5408791303634644, -0.18099664151668549, -0.2286362498998642, 0.08016491681337357, -0.029888367280364037, 0.6286216974258423, 0.15796807408332825, 0.5841609835624695, 0.808513343334198, -0.7721397876739502, 0.4366943836212158, 0.23777934908866882, -0.2832532823085785, 0.3762669563293457, -0.8960127234458923, 0.18204347789287567, 0.08431772142648697, 0.434924453496933, -0.6028767228126526, -0.3549812436103821, 0.5464211106300354, -0.5940643548965454, 0.15670894086360931, -0.41818657517433167, -0.5394023060798645, -0.4364139139652252, -0.18105337023735046, 0.6084178686141968, 0.7979702949523926, -0.6186173558235168, 0.6734928488731384, 0.05654775723814964, 0.11690647900104523, -0.36814162135124207, -0.5682373046875, -0.25257354974746704, -0.5160609483718872, -0.6592594981193542, 0.3748997151851654, 0.17239774763584137, -0.18860797584056854, 0.00895817019045353, -0.007638528943061829, 0.10030395537614822, -0.04819752275943756, 0.3242778778076172, 0.3441569209098816, -0.04381141439080238, 0.02665672078728676, -0.12219028174877167, -0.1308252513408661, 0.006189229432493448, -0.5155465602874756, 0.9732194542884827, -0.2716596722602844, -0.17691612243652344, -0.813675045967102, 0.0007464488735422492, 0.8846737742424011, -0.43113085627555847, 0.8837034702301025, 0.621614933013916, -0.7149370312690735, 0.15325461328029633, -0.3673686981201172, -0.2956567704677582, -0.4412862956523895, 0.6824868321418762, -0.26717424392700195, -0.36598002910614014, 0.6287866830825806, 0.3007124960422516, 0.2810823917388916, 0.5820083618164062, 0.7469741702079773, 0.22135043144226074, 1.2034507989883423, 0.44602251052856445, -0.15678951144218445, 0.6303939819335938, -0.5243195295333862, 0.2632162272930145, -1.1291967630386353, -0.19745030999183655, -0.5211452841758728, -0.2595873475074768, -0.9547197222709656, -0.3162166178226471, 0.3139057755470276, 0.2573874592781067, -0.7532650828361511, 0.5725117921829224, -0.5551822781562805, 0.05280916020274162, 0.6617417335510254, 0.26151999831199646, 0.1751965582370758, 0.21914005279541016, 0.0875106230378151, -0.05726543068885803, -0.6480419635772705, -0.33548277616500854, 1.2514342069625854, 0.5085344314575195, 0.5925267338752747, 0.30859389901161194, 0.702063798904419, -0.14013850688934326, 0.22976626455783844, -0.7133954167366028, 0.42589837312698364, 0.3337208330631256, -0.7246662974357605, -0.20656892657279968, -0.7745326161384583, -0.9344873428344727, 0.49262696504592896, 0.09244706481695175, -1.135263204574585, 0.2378189116716385, 0.2333507388830185, -0.3764565885066986, 0.48157161474227905, -0.6258828043937683, 1.0078190565109253, -0.23083269596099854, -0.48979631066322327, -0.3777869641780853, -0.3154056966304779, 0.23692627251148224, 0.37749984860420227, 0.11576186120510101, 0.0944519191980362, 0.316800057888031, 1.0046218633651733, -0.6864165663719177, 0.6537257432937622, -0.13758638501167297, 0.14767222106456757, 0.35653209686279297, 0.29166609048843384, 0.6765158176422119, 0.16055776178836823, 0.14487209916114807, -0.039268095046281815, 0.15715844929218292, -0.5525232553482056, -0.3901268541812897, 0.9218115210533142, -1.1208770275115967, -0.372195839881897, -0.8063827157020569, -0.6029366254806519, 0.0953463688492775, 0.19970035552978516, 0.4208070635795593, 0.6749693155288696, -0.02983289770781994, 0.008189238607883453, 0.6084043979644775, -0.507250189781189, 0.3621886670589447, 0.2158890962600708, -0.4757542014122009, -0.5319960713386536, 0.9962652921676636, 0.01698056049644947, 0.34609562158584595, 0.012940332293510437, 0.23668822646141052, -0.423060804605484, -0.442697137594223, -0.6175047159194946, 0.5380644798278809, -0.7321454286575317, 0.0013777754502370954, -0.720404863357544, -0.04124889895319939, -0.47675821185112, 0.12164787948131561, -0.40344417095184326, -0.39348235726356506, -0.25380849838256836, -0.027853945270180702, 0.5903213024139404, 0.48056697845458984, 0.08677762001752853, 0.3392292559146881, -0.5396283268928528, -0.036378536373376846, 0.24111250042915344, 0.1022113785147667, 0.11215562373399734, -0.9262961745262146, -0.09633287042379379, 0.14360645413398743, -0.4432086646556854, -1.1508476734161377, 0.4938555061817169, -0.05192411690950394, 0.35078978538513184, 0.062088754028081894, -0.2425650656223297, 0.5954207181930542, -0.08012805879116058, 0.6850067973136902, 0.16141915321350098, -1.0256621837615967, 0.5564895868301392, -0.4903952181339264, 0.290483295917511, 0.3509337902069092, 0.33756667375564575, -0.7285580039024353, -0.07924097776412964, -1.0006990432739258, -1.0899571180343628, 0.7673645615577698, 0.502472996711731, 0.16745822131633759, 0.1120496541261673, 0.40468502044677734, -0.46749523282051086, 0.15650708973407745, -1.0317232608795166, -0.28470364212989807, -0.2514859139919281, -0.08510905504226685, 0.16823162138462067, -0.06061716750264168, 0.058921102434396744, -0.5621805191040039, 1.0171175003051758, 0.060753338038921356, 0.3522678017616272, 0.28697827458381653, -0.4002901315689087, -0.10111753642559052, -0.041496459394693375, 0.16163505613803864, 0.7494853138923645, -0.132471963763237, 0.05767879635095596, 0.21073253452777863, -0.5637556910514832, 0.04294655844569206, 0.17858737707138062, -0.3887293040752411, -0.0787557065486908, 0.17588147521018982, 0.8922356963157654, 0.1328519880771637, -0.40832188725471497, 0.23305220901966095, -0.032391440123319626, -0.07884252071380615, -0.3053874969482422, -0.1795678287744522, 0.1769782453775406, 0.22045056521892548, -0.033948689699172974, -0.1748880296945572, -0.0003529268433339894, -0.8900999426841736, 0.05178730562329292, 0.21353907883167267, -0.15202052891254425, -0.4106629490852356, 0.5964198112487793, 0.04503336548805237, -0.19057057797908783, 1.1471385955810547, -0.26966506242752075, -0.6871582865715027, 0.7756614089012146, 0.513896107673645, 0.7385334372520447, -0.18784251809120178, 0.3570016324520111, 0.9140174984931946, 0.32190006971359253, -0.21553732454776764, 0.07505615055561066, 0.10003139823675156, -0.507659912109375, -0.09735137224197388, -0.8132998943328857, -0.22294452786445618, 0.26621541380882263, -0.5894615650177002, 0.4506484866142273, -0.646195650100708, -0.07913783192634583, -0.044142719358205795, 0.23392651975154877, -0.5586147904396057, 0.32236215472221375, 0.17706704139709473, 0.7195632457733154, -0.9340400099754333, 0.821358859539032, 0.6474475264549255, -0.7461996674537659, -1.1180744171142578, 0.024061143398284912, 0.02817613072693348, -0.43483421206474304, 0.18629632890224457, 0.21936878561973572, 0.20668655633926392, 0.15907394886016846, -0.27503904700279236, -0.8809865713119507, 1.3066984415054321, 0.2219385951757431, -0.6655321717262268, -0.2853040099143982, -0.11921340227127075, 0.5462740063667297, 0.07292096316814423, 0.7364230155944824, 0.7320868968963623, 0.4085935056209564, 0.0876707211136818, -1.0724658966064453, 0.38140562176704407, -0.3321656286716461, -0.049399569630622864, 0.23244993388652802, -0.6940509676933289, 1.3174296617507935, -0.0786636546254158, -0.01256613526493311, 0.41841748356819153, 0.6137143969535828, 0.40456315875053406, -0.11980217695236206, 0.36071574687957764, 0.7868265509605408, 0.8882623314857483, -0.3801044523715973, 1.2278801202774048, -0.2972220182418823, 0.7879855632781982, 0.869673490524292, 0.18844221532344818, 0.5215295553207397, 0.3970112204551697, -0.3885364234447479, 0.5340207815170288, 0.8431175351142883, -0.09112665057182312, 0.18445070087909698, 0.254278302192688, -0.28471407294273376, -0.26827648282051086, 0.12103075534105301, -0.6121065616607666, 0.19229534268379211, 0.14424550533294678, -0.5842971801757812, -0.20262578129768372, -0.35045498609542847, 0.3650192320346832, -0.4133338928222656, -0.23113469779491425, 0.26339778304100037, 0.09793388098478317, -0.6603953242301941, 0.6335307955741882, 0.2493945211172104, 0.5470804572105408, -0.4462352693080902, 0.14536035060882568, -0.17078395187854767, 0.3349379003047943, -0.344402939081192, -0.44504791498184204, 0.08600465953350067, 0.005229487083852291, 0.05249381437897682, 0.13069778680801392, 0.4339858293533325, -0.1449013650417328, -0.5751665234565735, 0.1932259500026703, 0.4680880308151245, 0.26508191227912903, -0.44640231132507324, -0.6788967251777649, 0.08562770485877991, -0.15846174955368042, -0.5431908965110779, 0.4407574534416199, 0.24672479927539825, -0.1419714391231537, 0.581797182559967, 0.6310731172561646, 0.02998248115181923, -0.016396908089518547, 0.14943785965442657, 0.9886060357093811, -0.4608272612094879, -0.48103848099708557, -0.9097378849983215, 0.5023686289787292, -0.012099642306566238, -0.6767836213111877, 0.8572118878364563, 0.5710400342941284, 0.6949950456619263, 0.25955814123153687, 0.6051485538482666, -0.46967121958732605, 0.01691574789583683, -0.3032568693161011, 0.6695162057876587, -0.5106577277183533, 0.03701082989573479, -0.4912724494934082, -1.1428463459014893, -0.04069061577320099, 0.9586097598075867, -0.5201452970504761, 0.3942696750164032, 0.809434175491333, 0.8207660913467407, -0.07889657467603683, 0.08276201784610748, 0.032476142048835754, 0.30614352226257324, 0.5392733216285706, 0.9401722550392151, 0.890951931476593, -0.7176527380943298, 0.5534561276435852, -0.5041353702545166, -0.27782732248306274, -0.17122523486614227, -0.48195433616638184, -0.868378758430481, -0.4652833044528961, -0.5028254985809326, -0.7659411430358887, -0.011492501012980938, 0.8978365659713745, 0.736283540725708, -0.6257928013801575, -0.1563049852848053, -0.5332791209220886, 0.047149647027254105, -0.26147907972335815, -0.23499980568885803, 0.43698930740356445, 0.13128933310508728, -0.9457221031188965, -0.040520161390304565, -0.15734253823757172, 0.10199715942144394, -0.41559383273124695, -0.292785108089447, -0.1852554827928543, -0.12006817758083344, 0.08279598504304886, 0.3145129978656769, -0.5255978107452393, -0.27806881070137024, 0.02204504795372486, 0.0446670837700367, 0.00236157001927495, 0.7120479345321655, -0.5712118744850159, 0.11000780761241913, 0.6301116943359375, 0.09411647170782089, 0.8165262341499329, -0.2717909812927246, 0.4064357876777649, -0.25999578833580017, 0.36167648434638977, 0.2771652042865753, 0.633127748966217, 0.33135032653808594, -0.2594159245491028, 0.1658494621515274, 0.4274190664291382, -0.7389988303184509, -0.8811479210853577, 0.3799349069595337, -0.7170804738998413, -0.09696602076292038, 1.2923915386199951, -0.26855576038360596, -0.3825332224369049, 0.06990817189216614, -0.2183123081922531, 0.5585750341415405, -0.2771124839782715, 0.666682243347168, 0.6203593611717224, 0.07632029801607132, -0.20778261125087738, -0.6535164713859558, 0.38526543974876404, 0.6725943684577942, -0.8194072842597961, 0.3982597887516022, 0.633887529373169, 0.6222838163375854, 0.23702853918075562, 0.5899066925048828, -0.30419018864631653, 0.6283838152885437, 0.1057334616780281, 0.07622797787189484, 0.016776645556092262, -0.48192521929740906, -0.42819106578826904, -0.1584581583738327, 0.23622745275497437, 0.02236912027001381 ]
microsoft/kosmos-2-patch14-224
microsoft
"2023-11-28T09:31:26Z"
13,198
58
transformers
[ "transformers", "pytorch", "safetensors", "kosmos-2", "text2text-generation", "image-captioning", "image-to-text", "license:mit", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
image-to-text
"2023-10-02T16:09:33Z"
--- pipeline_tag: image-to-text tags: - image-captioning languages: - en license: mit --- # Kosmos-2: Grounding Multimodal Large Language Models to the World <a href="https://huggingface.co/microsoft/kosmos-2-patch14-224/resolve/main/annotated_snowman.jpg" target="_blank"><figure><img src="https://huggingface.co/microsoft/kosmos-2-patch14-224/resolve/main/annotated_snowman.jpg" width="384"><figcaption><b>[An image of a snowman warming himself by a fire.]</b></figcaption></figure></a> This Hub repository contains a HuggingFace's `transformers` implementation of [the original Kosmos-2 model](https://github.com/microsoft/unilm/tree/master/kosmos-2) from Microsoft. ## How to Get Started with the Model Use the code below to get started with the model. ```python import requests from PIL import Image from transformers import AutoProcessor, AutoModelForVision2Seq model = AutoModelForVision2Seq.from_pretrained("microsoft/kosmos-2-patch14-224") processor = AutoProcessor.from_pretrained("microsoft/kosmos-2-patch14-224") prompt = "<grounding>An image of" url = "https://huggingface.co/microsoft/kosmos-2-patch14-224/resolve/main/snowman.png" image = Image.open(requests.get(url, stream=True).raw) # The original Kosmos-2 demo saves the image first then reload it. For some images, this will give slightly different image input and change the generation outputs. image.save("new_image.jpg") image = Image.open("new_image.jpg") inputs = processor(text=prompt, images=image, return_tensors="pt") generated_ids = model.generate( pixel_values=inputs["pixel_values"], input_ids=inputs["input_ids"], attention_mask=inputs["attention_mask"], image_embeds=None, image_embeds_position_mask=inputs["image_embeds_position_mask"], use_cache=True, max_new_tokens=128, ) generated_text = processor.batch_decode(generated_ids, skip_special_tokens=True)[0] # Specify `cleanup_and_extract=False` in order to see the raw model generation. processed_text = processor.post_process_generation(generated_text, cleanup_and_extract=False) print(processed_text) # `<grounding> An image of<phrase> a snowman</phrase><object><patch_index_0044><patch_index_0863></object> warming himself by<phrase> a fire</phrase><object><patch_index_0005><patch_index_0911></object>.` # By default, the generated text is cleanup and the entities are extracted. processed_text, entities = processor.post_process_generation(generated_text) print(processed_text) # `An image of a snowman warming himself by a fire.` print(entities) # `[('a snowman', (12, 21), [(0.390625, 0.046875, 0.984375, 0.828125)]), ('a fire', (41, 47), [(0.171875, 0.015625, 0.484375, 0.890625)])]` ``` ## Tasks This model is capable of performing different tasks through changing the prompts. First, let's define a function to run a prompt. <details> <summary> Click to expand </summary> ```python import requests from PIL import Image from transformers import AutoProcessor, AutoModelForVision2Seq model = AutoModelForVision2Seq.from_pretrained("microsoft/kosmos-2-patch14-224") processor = AutoProcessor.from_pretrained("microsoft/kosmos-2-patch14-224") url = "https://huggingface.co/microsoft/kosmos-2-patch14-224/resolve/main/snowman.png" image = Image.open(requests.get(url, stream=True).raw) def run_example(prompt): inputs = processor(text=prompt, images=image, return_tensors="pt") generated_ids = model.generate( pixel_values=inputs["pixel_values"], input_ids=inputs["input_ids"], attention_mask=inputs["attention_mask"], image_embeds=None, image_embeds_position_mask=inputs["image_embeds_position_mask"], use_cache=True, max_new_tokens=128, ) generated_text = processor.batch_decode(generated_ids, skip_special_tokens=True)[0] _processed_text = processor.post_process_generation(generated_text, cleanup_and_extract=False) processed_text, entities = processor.post_process_generation(generated_text) print(processed_text) print(entities) print(_processed_text) ``` </details> Here are the tasks `Kosmos-2` could perform: <details> <summary> Click to expand </summary> ### Multimodal Grounding #### • Phrase Grounding ```python prompt = "<grounding><phrase> a snowman</phrase>" run_example(prompt) # a snowman is warming himself by the fire # [('a snowman', (0, 9), [(0.390625, 0.046875, 0.984375, 0.828125)]), ('the fire', (32, 40), [(0.203125, 0.015625, 0.453125, 0.859375)])] # <grounding><phrase> a snowman</phrase><object><patch_index_0044><patch_index_0863></object> is warming himself by<phrase> the fire</phrase><object><patch_index_0006><patch_index_0878></object> ``` #### • Referring Expression Comprehension ```python prompt = "<grounding><phrase> a snowman next to a fire</phrase>" run_example(prompt) # a snowman next to a fire # [('a snowman next to a fire', (0, 24), [(0.390625, 0.046875, 0.984375, 0.828125)])] # <grounding><phrase> a snowman next to a fire</phrase><object><patch_index_0044><patch_index_0863></object> ``` ### Multimodal Referring #### • Referring expression generation ```python prompt = "<grounding><phrase> It</phrase><object><patch_index_0044><patch_index_0863></object> is" run_example(prompt) # It is snowman in a hat and scarf # [('It', (0, 2), [(0.390625, 0.046875, 0.984375, 0.828125)])] # <grounding><phrase> It</phrase><object><patch_index_0044><patch_index_0863></object> is snowman in a hat and scarf ``` ### Perception-Language Tasks #### • Grounded VQA ```python prompt = "<grounding> Question: What is special about this image? Answer:" run_example(prompt) # Question: What is special about this image? Answer: The image features a snowman sitting by a campfire in the snow. # [('a snowman', (71, 80), [(0.390625, 0.046875, 0.984375, 0.828125)]), ('a campfire', (92, 102), [(0.109375, 0.640625, 0.546875, 0.984375)])] # <grounding> Question: What is special about this image? Answer: The image features<phrase> a snowman</phrase><object><patch_index_0044><patch_index_0863></object> sitting by<phrase> a campfire</phrase><object><patch_index_0643><patch_index_1009></object> in the snow. ``` #### • Grounded VQA with multimodal referring via bounding boxes ```python prompt = "<grounding> Question: Where is<phrase> the fire</phrase><object><patch_index_0005><patch_index_0911></object> next to? Answer:" run_example(prompt) # Question: Where is the fire next to? Answer: Near the snowman. # [('the fire', (19, 27), [(0.171875, 0.015625, 0.484375, 0.890625)]), ('the snowman', (50, 61), [(0.390625, 0.046875, 0.984375, 0.828125)])] # <grounding> Question: Where is<phrase> the fire</phrase><object><patch_index_0005><patch_index_0911></object> next to? Answer: Near<phrase> the snowman</phrase><object><patch_index_0044><patch_index_0863></object>. ``` ### Grounded Image captioning #### • Brief ```python prompt = "<grounding> An image of" run_example(prompt) # An image of a snowman warming himself by a campfire. # [('a snowman', (12, 21), [(0.390625, 0.046875, 0.984375, 0.828125)]), ('a campfire', (41, 51), [(0.109375, 0.640625, 0.546875, 0.984375)])] # <grounding> An image of<phrase> a snowman</phrase><object><patch_index_0044><patch_index_0863></object> warming himself by<phrase> a campfire</phrase><object><patch_index_0643><patch_index_1009></object>. ``` #### • Detailed ```python prompt = "<grounding> Describe this image in detail:" run_example(prompt) # Describe this image in detail: The image features a snowman sitting by a campfire in the snow. He is wearing a hat, scarf, and gloves, with a pot nearby and a cup nearby. The snowman appears to be enjoying the warmth of the fire, and it appears to have a warm and cozy atmosphere. # [('a campfire', (71, 81), [(0.171875, 0.015625, 0.484375, 0.984375)]), ('a hat', (109, 114), [(0.515625, 0.046875, 0.828125, 0.234375)]), ('scarf', (116, 121), [(0.515625, 0.234375, 0.890625, 0.578125)]), ('gloves', (127, 133), [(0.515625, 0.390625, 0.640625, 0.515625)]), ('a pot', (140, 145), [(0.078125, 0.609375, 0.265625, 0.859375)]), ('a cup', (157, 162), [(0.890625, 0.765625, 0.984375, 0.984375)])] # <grounding> Describe this image in detail: The image features a snowman sitting by<phrase> a campfire</phrase><object><patch_index_0005><patch_index_1007></object> in the snow. He is wearing<phrase> a hat</phrase><object><patch_index_0048><patch_index_0250></object>,<phrase> scarf</phrase><object><patch_index_0240><patch_index_0604></object>, and<phrase> gloves</phrase><object><patch_index_0400><patch_index_0532></object>, with<phrase> a pot</phrase><object><patch_index_0610><patch_index_0872></object> nearby and<phrase> a cup</phrase><object><patch_index_0796><patch_index_1023></object> nearby. The snowman appears to be enjoying the warmth of the fire, and it appears to have a warm and cozy atmosphere. ``` </details> ## Draw the bounding bboxes of the entities on the image Once you have the `entities`, you can use the following helper function to draw their bounding bboxes on the image: <details> <summary> Click to expand </summary> ```python import cv2 import numpy as np import os import requests import torch import torchvision.transforms as T from PIL import Image def is_overlapping(rect1, rect2): x1, y1, x2, y2 = rect1 x3, y3, x4, y4 = rect2 return not (x2 < x3 or x1 > x4 or y2 < y3 or y1 > y4) def draw_entity_boxes_on_image(image, entities, show=False, save_path=None): """_summary_ Args: image (_type_): image or image path collect_entity_location (_type_): _description_ """ if isinstance(image, Image.Image): image_h = image.height image_w = image.width image = np.array(image)[:, :, [2, 1, 0]] elif isinstance(image, str): if os.path.exists(image): pil_img = Image.open(image).convert("RGB") image = np.array(pil_img)[:, :, [2, 1, 0]] image_h = pil_img.height image_w = pil_img.width else: raise ValueError(f"invaild image path, {image}") elif isinstance(image, torch.Tensor): image_tensor = image.cpu() reverse_norm_mean = torch.tensor([0.48145466, 0.4578275, 0.40821073])[:, None, None] reverse_norm_std = torch.tensor([0.26862954, 0.26130258, 0.27577711])[:, None, None] image_tensor = image_tensor * reverse_norm_std + reverse_norm_mean pil_img = T.ToPILImage()(image_tensor) image_h = pil_img.height image_w = pil_img.width image = np.array(pil_img)[:, :, [2, 1, 0]] else: raise ValueError(f"invaild image format, {type(image)} for {image}") if len(entities) == 0: return image new_image = image.copy() previous_bboxes = [] # size of text text_size = 1 # thickness of text text_line = 1 # int(max(1 * min(image_h, image_w) / 512, 1)) box_line = 3 (c_width, text_height), _ = cv2.getTextSize("F", cv2.FONT_HERSHEY_COMPLEX, text_size, text_line) base_height = int(text_height * 0.675) text_offset_original = text_height - base_height text_spaces = 3 for entity_name, (start, end), bboxes in entities: for (x1_norm, y1_norm, x2_norm, y2_norm) in bboxes: orig_x1, orig_y1, orig_x2, orig_y2 = int(x1_norm * image_w), int(y1_norm * image_h), int(x2_norm * image_w), int(y2_norm * image_h) # draw bbox # random color color = tuple(np.random.randint(0, 255, size=3).tolist()) new_image = cv2.rectangle(new_image, (orig_x1, orig_y1), (orig_x2, orig_y2), color, box_line) l_o, r_o = box_line // 2 + box_line % 2, box_line // 2 + box_line % 2 + 1 x1 = orig_x1 - l_o y1 = orig_y1 - l_o if y1 < text_height + text_offset_original + 2 * text_spaces: y1 = orig_y1 + r_o + text_height + text_offset_original + 2 * text_spaces x1 = orig_x1 + r_o # add text background (text_width, text_height), _ = cv2.getTextSize(f" {entity_name}", cv2.FONT_HERSHEY_COMPLEX, text_size, text_line) text_bg_x1, text_bg_y1, text_bg_x2, text_bg_y2 = x1, y1 - (text_height + text_offset_original + 2 * text_spaces), x1 + text_width, y1 for prev_bbox in previous_bboxes: while is_overlapping((text_bg_x1, text_bg_y1, text_bg_x2, text_bg_y2), prev_bbox): text_bg_y1 += (text_height + text_offset_original + 2 * text_spaces) text_bg_y2 += (text_height + text_offset_original + 2 * text_spaces) y1 += (text_height + text_offset_original + 2 * text_spaces) if text_bg_y2 >= image_h: text_bg_y1 = max(0, image_h - (text_height + text_offset_original + 2 * text_spaces)) text_bg_y2 = image_h y1 = image_h break alpha = 0.5 for i in range(text_bg_y1, text_bg_y2): for j in range(text_bg_x1, text_bg_x2): if i < image_h and j < image_w: if j < text_bg_x1 + 1.35 * c_width: # original color bg_color = color else: # white bg_color = [255, 255, 255] new_image[i, j] = (alpha * new_image[i, j] + (1 - alpha) * np.array(bg_color)).astype(np.uint8) cv2.putText( new_image, f" {entity_name}", (x1, y1 - text_offset_original - 1 * text_spaces), cv2.FONT_HERSHEY_COMPLEX, text_size, (0, 0, 0), text_line, cv2.LINE_AA ) # previous_locations.append((x1, y1)) previous_bboxes.append((text_bg_x1, text_bg_y1, text_bg_x2, text_bg_y2)) pil_image = Image.fromarray(new_image[:, :, [2, 1, 0]]) if save_path: pil_image.save(save_path) if show: pil_image.show() return new_image # (The same image from the previous code example) url = "https://huggingface.co/microsoft/kosmos-2-patch14-224/resolve/main/snowman.png" image = Image.open(requests.get(url, stream=True).raw) # From the previous code example entities = [('a snowman', (12, 21), [(0.390625, 0.046875, 0.984375, 0.828125)]), ('a fire', (41, 47), [(0.171875, 0.015625, 0.484375, 0.890625)])] # Draw the bounding bboxes draw_entity_boxes_on_image(image, entities, show=True) ``` </details> Here is the annotated image: <a href="https://huggingface.co/microsoft/kosmos-2-patch14-224/resolve/main/annotated_snowman.jpg" target="_blank"><img src="https://huggingface.co/microsoft/kosmos-2-patch14-224/resolve/main/annotated_snowman.jpg" width="500"></a> ## BibTex and citation info ``` @article{kosmos-2, title={Kosmos-2: Grounding Multimodal Large Language Models to the World}, author={Zhiliang Peng and Wenhui Wang and Li Dong and Yaru Hao and Shaohan Huang and Shuming Ma and Furu Wei}, journal={ArXiv}, year={2023}, volume={abs/2306} } @article{kosmos-1, title={Language Is Not All You Need: Aligning Perception with Language Models}, author={Shaohan Huang and Li Dong and Wenhui Wang and Yaru Hao and Saksham Singhal and Shuming Ma and Tengchao Lv and Lei Cui and Owais Khan Mohammed and Qiang Liu and Kriti Aggarwal and Zewen Chi and Johan Bjorck and Vishrav Chaudhary and Subhojit Som and Xia Song and Furu Wei}, journal={ArXiv}, year={2023}, volume={abs/2302.14045} } @article{metalm, title={Language Models are General-Purpose Interfaces}, author={Yaru Hao and Haoyu Song and Li Dong and Shaohan Huang and Zewen Chi and Wenhui Wang and Shuming Ma and Furu Wei}, journal={ArXiv}, year={2022}, volume={abs/2206.06336} } ```
[ -0.3712959587574005, -0.742767333984375, 0.4590089023113251, 0.31251826882362366, -0.3453599214553833, -0.3926171064376831, -0.16187472641468048, -0.14298029243946075, 0.018014851957559586, 0.46269091963768005, -0.6183391213417053, -0.4837479293346405, -0.48418667912483215, 0.32455751299858093, 0.12464692443609238, 0.5947844386100769, 0.08879711478948593, -0.4524524509906769, -0.40067195892333984, -0.07005177438259125, -0.3286020755767822, -0.42918625473976135, -0.482812762260437, -0.5628535151481628, 0.15629935264587402, 0.19241026043891907, 1.0663325786590576, 0.8362451195716858, 0.09085916727781296, 0.47031739354133606, -0.13830190896987915, 0.006808854639530182, -0.10432322323322296, -0.07756923139095306, -0.05175476148724556, -0.6338090896606445, -0.13345018029212952, -0.05766496807336807, 0.5395603775978088, 0.44407919049263, 0.14393958449363708, 0.027598485350608826, -0.1588730663061142, 0.469046413898468, -0.44578641653060913, 0.3120923936367035, -0.46081459522247314, -0.01002004649490118, 0.2685442566871643, -0.27999353408813477, -0.2580845057964325, -0.005961648654192686, 0.022032668814063072, -0.7502370476722717, 0.29234737157821655, 0.07481614500284195, 1.2865278720855713, 0.32614344358444214, -0.29641181230545044, -0.32386505603790283, -0.04425525665283203, 1.1301463842391968, -0.9608281254768372, 0.0035744458436965942, 0.5359522700309753, -0.07823635637760162, -0.1453433781862259, -0.5569101572036743, -0.6554828882217407, -0.21135054528713226, -0.36075299978256226, 0.2377135306596756, -0.31313765048980713, -0.35925668478012085, 0.410796582698822, 0.07039915770292282, -0.48951247334480286, -0.20631472766399384, -0.18766102194786072, -0.242447167634964, 0.5909714698791504, 0.23594579100608826, 0.6143147349357605, -0.5183084607124329, -0.31225359439849854, -0.4333066940307617, -0.2690352499485016, 0.3047633171081543, 0.22110266983509064, 0.14282773435115814, -0.2742663323879242, 0.7684471011161804, -0.1616450548171997, 0.7336084842681885, 0.3146170675754547, -0.35998132824897766, 0.6279969215393066, -0.1842379868030548, -0.2268274426460266, 0.07433432340621948, 0.9004305601119995, 1.0518206357955933, 0.035296667367219925, 0.16451393067836761, -0.11345813423395157, 0.10748681426048279, -0.0911528691649437, -0.8405158519744873, -0.49770137667655945, 0.3881298005580902, -0.49906671047210693, -0.26325178146362305, -0.2379114031791687, -0.7407557368278503, -0.36084142327308655, -0.15554867684841156, 0.28292983770370483, -0.5474540591239929, -0.4944978952407837, 0.08064676821231842, -0.4476926922798157, 0.10336821526288986, 0.33704978227615356, -0.7264350056648254, 0.16894574463367462, 0.2578159272670746, 0.8239814639091492, 0.47763505578041077, -0.48730218410491943, -0.32985684275627136, -0.018457820639014244, -0.22464421391487122, 0.7194437384605408, -0.499735563993454, 0.03580772876739502, -0.1751355081796646, 0.5408564805984497, -0.16098244488239288, -0.5165092349052429, 0.24305661022663116, -0.44528767466545105, 0.4428691864013672, -0.23951385915279388, -0.234676331281662, -0.5094766020774841, 0.44380897283554077, -0.5856176018714905, 1.0403989553451538, 0.2812494933605194, -1.1532068252563477, -0.17298303544521332, -0.42245158553123474, -0.32333895564079285, -0.2229892462491989, -0.04869680106639862, -0.4986761808395386, -0.0966007336974144, 0.47839897871017456, 0.3731846809387207, -0.23566578328609467, -0.08511056751012802, -0.13470786809921265, -0.13280728459358215, 0.2599298059940338, -0.0253437627106905, 1.2208845615386963, 0.1705765277147293, -0.8465518355369568, -0.06406269967556, -0.81647127866745, 0.23113620281219482, 0.6465039253234863, -0.1720081865787506, -0.2328650951385498, -0.09027663618326187, -0.0016504382947459817, 0.40504002571105957, 0.4485812783241272, -0.25794458389282227, -0.01350009348243475, -0.5246579051017761, 0.6407473683357239, 0.5733753442764282, -0.10455096513032913, 0.478439599275589, -0.5379928350448608, 0.44053196907043457, 0.16074033081531525, -0.310934841632843, -0.7731139063835144, -0.602607786655426, -0.7702900171279907, -0.30842605233192444, -0.10329394042491913, 0.9112741947174072, -0.7733913660049438, 0.589900553226471, 0.14902383089065552, -0.6433483958244324, -0.4202900528907776, -0.04720998927950859, 0.5292215347290039, 0.430560827255249, 0.4930790066719055, 0.17785890400409698, -0.5394910573959351, -0.8303553462028503, -0.00022386606724467129, -0.06767203658819199, -0.10079732537269592, 0.45792216062545776, 0.5023729205131531, -0.2106480598449707, 0.9709721803665161, -0.5669193267822266, -0.005961571354418993, -0.06784572452306747, 0.06290078908205032, 0.6626169681549072, 0.7641874551773071, 0.6505451798439026, -0.909769594669342, -0.48479416966438293, 0.04552467539906502, -1.1445162296295166, -0.17000068724155426, -0.3663892447948456, 0.07820777595043182, 0.08013972640037537, 0.3365018963813782, -0.9696463346481323, 0.21211859583854675, 0.2484307438135147, -0.6126490235328674, 0.6121071577072144, -0.39230456948280334, 0.25606101751327515, -1.10931396484375, 0.060105737298727036, -0.011961136944591999, -0.10374397784471512, -0.6135080456733704, 0.1848273128271103, 0.06773119419813156, -0.10994045436382294, -0.5944150686264038, 0.46401771903038025, -0.8587774038314819, -0.04408600553870201, -0.13136126101016998, 0.06420956552028656, 0.19675448536872864, 0.5504627227783203, 0.13490064442157745, 0.461614191532135, 1.0903717279434204, -0.5946066379547119, 0.7222017049789429, 0.3216360807418823, -0.07474181801080704, 0.6013862490653992, -0.806687593460083, 0.31428638100624084, -0.35531488060951233, 0.1591254472732544, -1.183656930923462, -0.3441154658794403, 0.5380188226699829, -0.5981171131134033, 0.04616884887218475, -0.21560107171535492, -0.8505649566650391, -0.3110726475715637, -0.17917212843894958, 0.3758249282836914, 0.678911566734314, -0.3884645104408264, 0.49159377813339233, 0.04311956837773323, 0.023946603760123253, -0.4533424377441406, -0.6005519032478333, 0.1654980331659317, -0.48730039596557617, -0.8311890363693237, 0.21656890213489532, -0.22041916847229004, -0.3026486337184906, 0.1137198805809021, 0.12924964725971222, 0.016221554949879646, 0.1348523050546646, 0.4776579439640045, 0.0107278972864151, -0.38518425822257996, -0.2860633432865143, -0.08413555473089218, -0.1571948230266571, 0.2669071853160858, -0.06438520550727844, 0.8727588057518005, -0.40446606278419495, -0.1870218962430954, -0.8014693260192871, 0.3453389108181, 0.6387161612510681, 0.13231956958770752, 0.48256173729896545, 0.6882675290107727, -0.635222852230072, 0.4001164138317108, -0.45514896512031555, -0.06426054984331131, -0.5411301255226135, 0.2144571989774704, -0.6057892441749573, -0.3482111394405365, 0.6459113955497742, 0.030997958034276962, 0.19729290902614594, 0.9125107526779175, 0.49086955189704895, -0.21475495398044586, 1.4075597524642944, 0.3124442994594574, 0.3206574320793152, 0.28801774978637695, -0.4961778521537781, -0.209713876247406, -0.7649911642074585, -0.5878919363021851, -0.37751927971839905, -0.2053067684173584, -0.07726282626390457, -0.42524877190589905, 0.1952093541622162, 0.5521179437637329, -0.24754975736141205, 0.5404148697853088, -0.6666908264160156, 0.49973487854003906, 0.5654662251472473, 0.2234450727701187, -0.18751664459705353, 0.20397719740867615, -0.39102813601493835, -0.14663481712341309, -0.5647935271263123, -0.663464367389679, 0.5414524674415588, 0.2868422567844391, 0.5447688102722168, -0.0929335430264473, 0.5795112252235413, 0.04355698451399803, -0.005521213635802269, -0.4518793225288391, 0.7434302568435669, 0.12782059609889984, -0.48666810989379883, -0.3433303236961365, -0.24018441140651703, -1.1376017332077026, 0.5687977075576782, -0.12145031988620758, -0.8101473450660706, -0.09651017934083939, 0.0907391831278801, -0.28255823254585266, 0.3254157602787018, -0.9194786548614502, 0.8477237820625305, -0.15087614953517914, -0.3722822964191437, 0.018455466255545616, -0.8391704559326172, 0.15622243285179138, 0.3317338526248932, 0.47104716300964355, -0.21141014993190765, 0.015134460292756557, 0.8389216661453247, -0.3341432809829712, 0.9939112663269043, -0.24923759698867798, -0.08200644701719284, 0.4485170245170593, -0.036958303302526474, 0.5328654646873474, 0.1724628508090973, -0.130926251411438, 0.08312658965587616, 0.19412542879581451, -0.593016505241394, -0.4809289574623108, 0.729255735874176, -0.9835529923439026, -0.6640180349349976, -0.6423739194869995, -0.63829505443573, 0.30694136023521423, 0.48225557804107666, 0.5786597728729248, 0.437837690114975, 0.3335098326206207, 0.11680293083190918, 0.4734257757663727, -0.48963087797164917, 0.5061598420143127, 0.11177559942007065, -0.08212640881538391, -0.9051058292388916, 0.7622284889221191, -0.03263041749596596, 0.1816798597574234, 0.2876550853252411, 0.32264798879623413, -0.4229506552219391, -0.08170610666275024, -0.5792352557182312, 0.4086934030056, -0.9324629306793213, -0.2740032970905304, -0.8673282265663147, -0.08850210160017014, -0.5279589295387268, -0.5296182036399841, -0.11931057274341583, -0.15568162500858307, -0.9341630935668945, 0.2812461853027344, 0.4857548773288727, 0.32798078656196594, -0.0020655819680541754, 0.44198745489120483, -0.6456032991409302, 0.6097719669342041, 0.3536049425601959, -0.1758834570646286, -0.09498513489961624, -0.4807923436164856, 0.0738055482506752, 0.2823196351528168, -0.3747221827507019, -0.9213541150093079, 0.5130253434181213, 0.05439974367618561, 0.5958664417266846, 0.3883430063724518, 0.21870540082454681, 0.9426958560943604, -0.5534852743148804, 1.0686687231063843, 0.8219370245933533, -0.9427435994148254, 0.7431286573410034, -0.16082213819026947, 0.5838905572891235, -0.11670064181089401, 0.17171567678451538, -0.48425623774528503, -0.4393279552459717, -1.0600614547729492, -0.8209471702575684, 1.055113673210144, 0.602578341960907, 0.27069076895713806, -0.16649159789085388, 0.21375875174999237, -0.027760421857237816, 0.1091432273387909, -0.6897962093353271, -0.6139023303985596, -0.6905145645141602, -0.06296458095312119, -0.3070187568664551, -0.10477448254823685, -0.371080219745636, -0.408893346786499, 0.49095118045806885, -0.2236829400062561, 0.7020109295845032, 0.38679566979408264, -0.3733644485473633, -0.18749478459358215, 0.10931430757045746, 0.7079566121101379, 0.6588912010192871, -0.21190807223320007, 0.6725273728370667, 0.3373040556907654, -0.22704572975635529, 0.13805319368839264, -0.07216178625822067, -0.11450585722923279, 0.3599714934825897, 0.6048858165740967, 0.8902203440666199, 0.1560335010290146, -0.6018324494361877, 0.47977492213249207, 0.014942685142159462, -0.4385314881801605, -0.454656720161438, 0.124989815056324, 0.2553752362728119, 0.7042511105537415, 0.46677783131599426, 0.1807587444782257, -0.18170905113220215, -0.5680029988288879, 0.18226206302642822, 0.33387309312820435, 0.016620753332972527, -0.4831160604953766, 0.764060378074646, -0.34948092699050903, -0.5197671055793762, 0.635836660861969, -0.10546016693115234, -0.7394904494285583, 1.2014169692993164, 1.1768889427185059, 0.614498496055603, -0.003862860146909952, 0.2587566673755646, 0.7221176624298096, 0.4288240969181061, 0.0006119697354733944, 0.43105167150497437, 0.06935813277959824, -0.5031042098999023, 0.13422265648841858, -0.5006709098815918, -0.055980078876018524, 0.2190927267074585, -0.4814457297325134, 0.40212738513946533, -0.511957049369812, -0.1154470294713974, 0.042624957859516144, -0.045491620898246765, -0.8288385272026062, 0.4885621666908264, 0.15175622701644897, 0.7724779844284058, -0.9385977387428284, 0.4082374572753906, 1.0224756002426147, -0.1294933557510376, -0.46526339650154114, -0.17155463993549347, -0.2299315482378006, -1.0033795833587646, 0.5688913464546204, 0.6444012522697449, 0.18606266379356384, 0.20275433361530304, -0.8177910447120667, -0.9348786473274231, 1.2464044094085693, 0.43063056468963623, -0.11869309842586517, 0.0710667073726654, -0.004261113237589598, 0.3640173375606537, -0.4444332718849182, 0.6193656921386719, 0.2683379650115967, 0.5204433798789978, 0.2207336574792862, -0.6638064384460449, 0.5056132078170776, -0.5650362968444824, 0.10173994302749634, -0.1122916042804718, -0.6633487343788147, 1.086613655090332, -0.4811941981315613, -0.33192193508148193, 0.26444244384765625, 0.6519085168838501, 0.6517932415008545, 0.5438533425331116, 0.9766787886619568, 0.8152079582214355, 0.5198996067047119, -0.022160116583108902, 0.711857259273529, -0.3189312219619751, 0.7102252840995789, 0.6308605670928955, 0.09363094717264175, 0.5566244721412659, 0.4061959385871887, -0.32876187562942505, 0.5905295014381409, 0.8209592700004578, -0.21481038630008698, 0.7553940415382385, 0.2549142837524414, -0.10008446872234344, -0.3486660122871399, 0.03210261091589928, -0.7192376255989075, -0.016657326370477676, 0.40404626727104187, -0.37540507316589355, -0.49511656165122986, 0.15084917843341827, 0.16363294422626495, -0.15458792448043823, -0.2124743014574051, 0.5980654358863831, 0.04590578004717827, -0.7221044898033142, 1.2345935106277466, 0.12455518543720245, 0.4808015525341034, -0.3545287847518921, -0.09891526401042938, 0.15422756969928741, 0.15039755403995514, -0.456868976354599, -1.079958200454712, 0.08448801189661026, -0.1191493347287178, -0.16941510140895844, -0.2666824460029602, 0.5777522921562195, -0.2845275104045868, -0.44126638770103455, 0.11069187521934509, 0.06852275133132935, 0.6486074328422546, -0.12357354909181595, -1.058353066444397, 0.20111748576164246, -0.003281685058027506, -0.3968326151371002, 0.18705488741397858, 0.6095832586288452, 0.2426016926765442, 0.5146862864494324, 0.8519388437271118, -0.41301509737968445, 0.3313036561012268, -0.37781012058258057, 0.9652332067489624, -0.8390801548957825, -0.7503743171691895, -0.8704310059547424, 0.715242862701416, -0.05811956897377968, -0.4462350904941559, 0.8228247761726379, 0.5370226502418518, 0.552345335483551, -0.38027822971343994, 0.6895233988761902, -0.4462815523147583, -0.08652706444263458, -0.6898542046546936, 0.33487218618392944, -0.6996625065803528, -0.20248159766197205, -0.23887880146503448, -0.8642656803131104, -0.29321593046188354, 1.0047264099121094, -0.16140809655189514, -0.14631155133247375, 0.8743593096733093, 0.9409379959106445, -0.11396456509828568, -0.40476474165916443, 0.280593603849411, 0.16662007570266724, 0.07394403219223022, 0.6078572869300842, 0.8947506546974182, -0.6455432772636414, 0.42112815380096436, -0.7447590827941895, -0.3434399366378784, -0.2423291802406311, -0.8715947270393372, -1.2255799770355225, -0.7337515354156494, -0.6422343254089355, -0.7112983465194702, -0.26804158091545105, 0.8523880243301392, 0.8255136609077454, -0.8239147067070007, -0.06096980720758438, -0.14129413664340973, 0.1938340812921524, -0.4888143241405487, -0.25740015506744385, 0.5036247968673706, -0.16243134438991547, -0.6840969920158386, 0.20260083675384521, 0.0562107153236866, 0.13891394436359406, 0.2390228658914566, -0.3030226528644562, -0.17633801698684692, -0.11608514934778214, 0.5045614838600159, 0.29485782980918884, -1.097023367881775, -0.08856669068336487, -0.04475610703229904, -0.09996487945318222, 0.2551317512989044, 0.3234412372112274, -0.6846482753753662, 0.30297136306762695, 0.45922333002090454, 0.2615346312522888, 0.4173929989337921, -0.04079713672399521, -0.09149099886417389, -0.6493334174156189, 0.18409690260887146, 0.1334071159362793, 0.5072681903839111, 0.42555683851242065, -0.6286745667457581, 0.103511281311512, 0.6487535834312439, -0.4531283378601074, -0.8873742818832397, 0.08637084811925888, -1.1786705255508423, -0.3325766623020172, 1.5438530445098877, -0.29541242122650146, -0.4673631191253662, -0.02419242449104786, -0.5943862795829773, 0.3306503891944885, -0.36135128140449524, 0.5696354508399963, 0.6291412711143494, -0.062207408249378204, -0.6811577677726746, -0.42995160818099976, 0.08879954367876053, 0.40549129247665405, -0.7493053674697876, -0.03377962112426758, 0.4164902865886688, 0.63032466173172, 0.7915241122245789, 0.4974115490913391, 0.1561862975358963, 0.27533677220344543, 0.195496067404747, 0.1568739265203476, -0.08630270510911942, -0.14211727678775787, -0.38887497782707214, 0.3342422544956207, -0.33920010924339294, -0.39780065417289734 ]
google/vit-large-patch32-384
google
"2022-01-28T10:24:24Z"
13,197
7
transformers
[ "transformers", "pytorch", "tf", "jax", "vit", "image-classification", "vision", "dataset:imagenet", "dataset:imagenet-21k", "arxiv:2010.11929", "arxiv:2006.03677", "license:apache-2.0", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
image-classification
"2022-03-02T23:29:05Z"
--- license: apache-2.0 tags: - image-classification - vision datasets: - imagenet - imagenet-21k --- # Vision Transformer (large-sized model) Vision Transformer (ViT) model pre-trained on ImageNet-21k (14 million images, 21,843 classes) at resolution 224x224, and fine-tuned on ImageNet 2012 (1 million images, 1,000 classes) at resolution 384x384. It was introduced in the paper [An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale](https://arxiv.org/abs/2010.11929) by Dosovitskiy et al. and first released in [this repository](https://github.com/google-research/vision_transformer). However, the weights were converted from the [timm repository](https://github.com/rwightman/pytorch-image-models) by Ross Wightman, who already converted the weights from JAX to PyTorch. Credits go to him. Disclaimer: The team releasing ViT did not write a model card for this model so this model card has been written by the Hugging Face team. ## Model description The Vision Transformer (ViT) is a transformer encoder model (BERT-like) pretrained on a large collection of images in a supervised fashion, namely ImageNet-21k, at a resolution of 224x224 pixels. Next, the model was fine-tuned on ImageNet (also referred to as ILSVRC2012), a dataset comprising 1 million images and 1,000 classes, at a higher resolution of 384x384. Images are presented to the model as a sequence of fixed-size patches (resolution 32x32), which are linearly embedded. One also adds a [CLS] token to the beginning of a sequence to use it for classification tasks. One also adds absolute position embeddings before feeding the sequence to the layers of the Transformer encoder. By pre-training the model, it learns an inner representation of images that can then be used to extract features useful for downstream tasks: if you have a dataset of labeled images for instance, you can train a standard classifier by placing a linear layer on top of the pre-trained encoder. One typically places a linear layer on top of the [CLS] token, as the last hidden state of this token can be seen as a representation of an entire image. ## Intended uses & limitations You can use the raw model for image classification. See the [model hub](https://huggingface.co/models?search=google/vit) to look for fine-tuned versions on a task that interests you. ### How to use Here is how to use this model to classify an image of the COCO 2017 dataset into one of the 1,000 ImageNet classes: ```python from transformers import ViTFeatureExtractor, ViTForImageClassification from PIL import Image import requests url = 'http://images.cocodataset.org/val2017/000000039769.jpg' image = Image.open(requests.get(url, stream=True).raw) feature_extractor = ViTFeatureExtractor.from_pretrained('google/vit-large-patch32-384') model = ViTForImageClassification.from_pretrained('google/vit-large-patch32-384') inputs = feature_extractor(images=image, return_tensors="pt") outputs = model(**inputs) logits = outputs.logits # model predicts one of the 1000 ImageNet classes predicted_class_idx = logits.argmax(-1).item() print("Predicted class:", model.config.id2label[predicted_class_idx]) ``` Currently, both the feature extractor and model support PyTorch. Tensorflow and JAX/FLAX are coming soon, and the API of ViTFeatureExtractor might change. ## Training data The ViT model was pretrained on [ImageNet-21k](http://www.image-net.org/), a dataset consisting of 14 million images and 21k classes, and fine-tuned on [ImageNet](http://www.image-net.org/challenges/LSVRC/2012/), a dataset consisting of 1 million images and 1k classes. ## Training procedure ### Preprocessing The exact details of preprocessing of images during training/validation can be found [here](https://github.com/google-research/vision_transformer/blob/master/vit_jax/input_pipeline.py). Images are resized/rescaled to the same resolution (224x224 during pre-training, 384x384 during fine-tuning) and normalized across the RGB channels with mean (0.5, 0.5, 0.5) and standard deviation (0.5, 0.5, 0.5). ### Pretraining The model was trained on TPUv3 hardware (8 cores). All model variants are trained with a batch size of 4096 and learning rate warmup of 10k steps. For ImageNet, the authors found it beneficial to additionally apply gradient clipping at global norm 1. Pre-training resolution is 224. ## Evaluation results For evaluation results on several image classification benchmarks, we refer to tables 2 and 5 of the original paper. Note that for fine-tuning, the best results are obtained with a higher resolution (384x384). Of course, increasing the model size will result in better performance. ### BibTeX entry and citation info ```bibtex @misc{wu2020visual, title={Visual Transformers: Token-based Image Representation and Processing for Computer Vision}, author={Bichen Wu and Chenfeng Xu and Xiaoliang Dai and Alvin Wan and Peizhao Zhang and Zhicheng Yan and Masayoshi Tomizuka and Joseph Gonzalez and Kurt Keutzer and Peter Vajda}, year={2020}, eprint={2006.03677}, archivePrefix={arXiv}, primaryClass={cs.CV} } ``` ```bibtex @inproceedings{deng2009imagenet, title={Imagenet: A large-scale hierarchical image database}, author={Deng, Jia and Dong, Wei and Socher, Richard and Li, Li-Jia and Li, Kai and Fei-Fei, Li}, booktitle={2009 IEEE conference on computer vision and pattern recognition}, pages={248--255}, year={2009}, organization={Ieee} } ```
[ -0.6178823709487915, -0.1942780762910843, 0.004064016509801149, -0.08003067970275879, -0.3691290020942688, -0.15565499663352966, -0.08191381394863129, -0.6045763492584229, 0.14610201120376587, 0.4440685212612152, -0.26490384340286255, -0.24091699719429016, -0.7245407104492188, -0.06970114260911942, -0.5485988855361938, 0.8179696798324585, -0.08539094775915146, 0.03666108846664429, -0.24787311255931854, -0.15881453454494476, -0.35494932532310486, -0.43429192900657654, -0.6010629534721375, -0.22676154971122742, 0.5117328763008118, 0.22390809655189514, 0.6064349412918091, 0.7409341931343079, 0.8376179337501526, 0.43412792682647705, 0.002807993907481432, 0.020038647577166557, -0.36522141098976135, -0.34003835916519165, -0.01708558388054371, -0.5246984362602234, -0.29246941208839417, 0.1710486263036728, 0.5806132555007935, 0.32363077998161316, 0.23403549194335938, 0.3632983863353729, 0.12331492453813553, 0.3992331326007843, -0.6266310811042786, 0.26590362191200256, -0.49871569871902466, 0.40909725427627563, -0.09700290113687515, -0.16849936544895172, -0.47473257780075073, -0.1307288408279419, 0.2894187867641449, -0.4931434392929077, 0.5461331009864807, -0.027420369908213615, 1.344709873199463, 0.2106500118970871, -0.31053072214126587, 0.20618893206119537, -0.7389163374900818, 0.7154540419578552, -0.2617192268371582, 0.43548181653022766, 0.06142204999923706, 0.5632669925689697, 0.19323979318141937, -1.1580173969268799, -0.5175310969352722, -0.032800957560539246, -0.04044713079929352, 0.16883715987205505, -0.23813973367214203, 0.17525972425937653, 0.5434924364089966, 0.5901654362678528, -0.3937128484249115, 0.10226871818304062, -0.6181902885437012, -0.2933863401412964, 0.5270646810531616, -0.024140622466802597, 0.08167412877082825, 0.03575078025460243, -0.6215785145759583, -0.5101841688156128, -0.37356409430503845, 0.160503551363945, 0.05434678494930267, 0.015731384977698326, -0.0785735622048378, 0.4894281029701233, 0.12218385934829712, 0.5728937983512878, 0.21973907947540283, -0.13717766106128693, 0.461145281791687, -0.2054048478603363, -0.3694750666618347, -0.06623682379722595, 0.8242983222007751, 0.38755765557289124, 0.307616263628006, 0.0030451917555183172, -0.29366087913513184, 0.13358771800994873, 0.5424855351448059, -0.9845111966133118, -0.15382376313209534, -0.11074380576610565, -0.6425439715385437, -0.3929222822189331, 0.3263489305973053, -0.6216994524002075, -0.1851443499326706, -0.4115593731403351, 0.7495511770248413, -0.17869053781032562, -0.20428743958473206, -0.12508206069469452, -0.04970331862568855, 0.6350655555725098, 0.4479784369468689, -0.5505439043045044, 0.2321045845746994, 0.2626243531703949, 0.9583566784858704, -0.10883387923240662, -0.2572118937969208, -0.06395254284143448, -0.33947280049324036, -0.3987252712249756, 0.5950961112976074, -0.07623565942049026, -0.16415461897850037, 0.0013085700338706374, 0.39886409044265747, -0.02753867395222187, -0.4752712547779083, 0.35956475138664246, -0.5836124420166016, 0.041848912835121155, -0.06999118626117706, -0.21906252205371857, -0.24075372517108917, 0.16393573582172394, -0.6524047255516052, 0.9636236429214478, 0.2077847123146057, -0.7695862650871277, 0.4492654800415039, -0.47723156213760376, -0.11938557028770447, 0.1142260953783989, -0.03320249170064926, -0.6719002723693848, 0.03607693687081337, 0.24949753284454346, 0.5362756848335266, -0.24272730946540833, 0.009106472134590149, -0.18903705477714539, -0.5481584072113037, 0.2240607589483261, -0.456267774105072, 0.7497153878211975, 0.24980513751506805, -0.3888309597969055, 0.17839528620243073, -0.579290509223938, -0.02256862074136734, 0.2662293314933777, -0.1861216276884079, 0.1224048063158989, -0.36473166942596436, 0.1977708637714386, 0.360608845949173, 0.2220257967710495, -0.6624162197113037, 0.19407865405082703, -0.12085584551095963, 0.46498095989227295, 0.7742660045623779, -0.2371768057346344, 0.4827328026294708, -0.19905872642993927, 0.43257373571395874, 0.18230322003364563, 0.5442817807197571, -0.3404556214809418, -0.5523817539215088, -1.0722301006317139, -0.20128503441810608, 0.3671931326389313, 0.3697904050350189, -0.7401191592216492, 0.4815927743911743, -0.5052183270454407, -0.6139450073242188, -0.3522677719593048, -0.16522882878780365, 0.26308080554008484, 0.4142957031726837, 0.5059523582458496, -0.49921658635139465, -0.645078182220459, -0.9069542288780212, 0.1787087768316269, 0.06002067029476166, -0.03950180858373642, 0.1710575968027115, 0.7629144191741943, -0.2849583923816681, 0.9015340209007263, -0.36733072996139526, -0.34243500232696533, -0.0684610903263092, -0.02435348369181156, 0.2914920747280121, 0.5754935145378113, 0.5117552280426025, -0.8398905396461487, -0.369517058134079, 0.059531405568122864, -0.7395536303520203, 0.3384791910648346, -0.0273260660469532, -0.23710234463214874, 0.035047657787799835, 0.4824041724205017, -0.5016928315162659, 0.8654654622077942, 0.31523004174232483, -0.0756470263004303, 0.4287046492099762, -0.05324868857860565, 0.04864458739757538, -1.0738439559936523, 0.019797557964920998, 0.20461131632328033, -0.3382662534713745, -0.4277307391166687, 0.1616400182247162, 0.18234536051750183, -0.19599856436252594, -0.5699940323829651, 0.26323655247688293, -0.39832764863967896, -0.1976744830608368, -0.20072971284389496, -0.401887446641922, 0.03397764638066292, 0.5595062375068665, 0.08724205940961838, 0.5963132381439209, 0.6591087579727173, -0.5597771406173706, 0.6183692216873169, 0.25335437059402466, -0.4974004328250885, 0.38113412261009216, -0.7665377855300903, 0.2068493664264679, -0.06905762106180191, 0.3242911696434021, -0.7623846530914307, -0.2143951803445816, 0.10481955111026764, -0.4317724108695984, 0.543323278427124, -0.2854359745979309, -0.3592830300331116, -0.8102282285690308, -0.20230218768119812, 0.521186113357544, 0.7005116939544678, -0.7830401062965393, 0.6429346203804016, 0.18454866111278534, 0.5242311358451843, -0.7181030511856079, -0.9984341263771057, 0.012795771472156048, -0.1412857472896576, -0.5077159404754639, 0.5090478658676147, 0.17088626325130463, 0.24903900921344757, 0.13692297041416168, -0.019945936277508736, -0.009226690977811813, -0.23315945267677307, 0.5244835615158081, 0.3730408847332001, -0.3568016588687897, 0.04317111149430275, -0.4689936935901642, -0.1610335260629654, -0.022606657817959785, -0.5517235398292542, 0.5090275406837463, -0.44368457794189453, -0.3322727084159851, -0.56766676902771, -0.07560841739177704, 0.7045578956604004, -0.297796368598938, 0.6664912104606628, 0.9984796047210693, -0.48631298542022705, 0.014564789831638336, -0.48886245489120483, -0.15529479086399078, -0.4907777011394501, 0.42685654759407043, -0.30965718626976013, -0.5854262113571167, 0.6087176203727722, 0.05981951951980591, -0.05474646016955376, 0.6242644786834717, 0.34069114923477173, -0.12754040956497192, 0.8385269641876221, 0.5804701447486877, 0.03670351952314377, 0.7507902979850769, -0.8747051358222961, 0.1435132622718811, -0.7552712559700012, -0.3394942581653595, -0.26253482699394226, -0.5296773910522461, -0.6242181062698364, -0.5023727416992188, 0.3186570703983307, 0.04749750718474388, -0.416819304227829, 0.5516477823257446, -0.7378247976303101, 0.36897578835487366, 0.7773440480232239, 0.5617212653160095, -0.16323630511760712, 0.25002890825271606, -0.021976355463266373, 0.08190223574638367, -0.5665048360824585, -0.17224574089050293, 1.0374659299850464, 0.5457834601402283, 0.6384543776512146, -0.18059104681015015, 0.4667038023471832, 0.009432708844542503, 0.14645437896251678, -0.9344658851623535, 0.5762119293212891, -0.19770407676696777, -0.47229239344596863, -0.08786530792713165, -0.2544665038585663, -0.9995349645614624, 0.09118369221687317, -0.4001657962799072, -0.6022756099700928, 0.5094457268714905, 0.1869562268257141, -0.11131466925144196, 0.6084562540054321, -0.6535123586654663, 0.8573511242866516, -0.21134021878242493, -0.3275364339351654, 0.06257380545139313, -0.6811645030975342, 0.15320605039596558, -0.01607004925608635, -0.20663544535636902, 0.312227338552475, 0.30450114607810974, 0.826840341091156, -0.7191649675369263, 0.8381486535072327, -0.24316732585430145, 0.32099097967147827, 0.5025845766067505, -0.3061729669570923, 0.2644668221473694, -0.24812792241573334, 0.3146052658557892, 0.45655104517936707, -0.06791543960571289, -0.4487641155719757, -0.5593972206115723, 0.395061731338501, -1.0049023628234863, -0.44510510563850403, -0.4371822774410248, -0.2513781487941742, 0.17509806156158447, 0.27124717831611633, 0.7964680790901184, 0.7029815912246704, 0.167416512966156, 0.6477115154266357, 0.6215233206748962, -0.3322226405143738, 0.4607624411582947, -0.203217014670372, -0.21669042110443115, -0.26443013548851013, 0.9159489274024963, 0.34941908717155457, 0.15640391409397125, 0.41026023030281067, 0.201985701918602, -0.24816225469112396, -0.5005158185958862, -0.2505880296230316, 0.00585636543110013, -0.828413188457489, -0.5321415662765503, -0.4697020649909973, -0.7017507553100586, -0.3561733663082123, -0.15495575964450836, -0.47493118047714233, -0.1557258814573288, -0.4365995228290558, -0.07867245376110077, 0.4035678505897522, 0.6711661219596863, 0.03650134801864624, 0.561037003993988, -0.5727158188819885, 0.05096740648150444, 0.5202731490135193, 0.38675838708877563, 0.07110507786273956, -0.7056979537010193, -0.39661678671836853, -0.033757396042346954, -0.3677624762058258, -0.5049977898597717, 0.3863429129123688, 0.2554838955402374, 0.47387760877609253, 0.6861756443977356, -0.24115882813930511, 0.8797164559364319, -0.32459938526153564, 0.7688472867012024, 0.48570191860198975, -0.6843369603157043, 0.5122014284133911, -0.051813140511512756, 0.24261830747127533, 0.19135329127311707, 0.3504074513912201, -0.22227641940116882, 0.08437883108854294, -0.7658696174621582, -0.7235245108604431, 0.6730793714523315, 0.08347044885158539, 0.14505130052566528, 0.2866118848323822, 0.3774715065956116, -0.1449010968208313, -0.0500447116792202, -0.8120613098144531, -0.16854272782802582, -0.7061560750007629, -0.13560406863689423, -0.1460205614566803, -0.1528043895959854, 0.08730395883321762, -0.665378749370575, 0.362494558095932, -0.09386046230792999, 0.8452764749526978, 0.15947820246219635, -0.2773447036743164, -0.03291894122958183, -0.3263132870197296, 0.2728424668312073, 0.41745609045028687, -0.23038333654403687, 0.17798011004924774, 0.13769084215164185, -0.8747596740722656, 0.015940401703119278, -0.10092835873365402, -0.041443925350904465, -0.11401844024658203, 0.5808390974998474, 1.142090082168579, 0.037477560341358185, -0.11100567132234573, 0.8217973113059998, -0.12177097052335739, -0.4239133298397064, -0.4973748028278351, 0.09972382336854935, -0.3550198972225189, 0.2824667692184448, 0.43747830390930176, 0.5154151916503906, -0.004582414869219065, -0.28948184847831726, 0.22006309032440186, 0.23217634856700897, -0.5141414999961853, -0.3346883952617645, 0.6377202272415161, -0.03353750333189964, -0.0536523163318634, 0.8566229343414307, 0.007053963840007782, -0.6438035368919373, 0.8772909641265869, 0.45663732290267944, 0.7936943173408508, -0.14518320560455322, 0.11043691635131836, 0.6797334551811218, 0.3026542067527771, -0.21936628222465515, -0.031577881425619125, -0.027720263227820396, -0.9537388682365417, -0.3208352327346802, -0.5917489528656006, -0.015675364062190056, 0.24698954820632935, -0.7523598670959473, 0.4526216387748718, -0.5741167068481445, -0.3684375584125519, 0.08391494303941727, -0.01895524188876152, -1.1744041442871094, 0.379442036151886, 0.2772609293460846, 0.8450969457626343, -0.7106081247329712, 0.8020825982093811, 0.7413600087165833, -0.5854164958000183, -0.9338265657424927, -0.32233473658561707, -0.22015684843063354, -0.8492393493652344, 0.7449687123298645, 0.5003950595855713, 0.07275736331939697, 0.13049353659152985, -0.8034614324569702, -0.8162925839424133, 1.289288878440857, 0.19664530456066132, -0.3639267086982727, -0.018475746735930443, 0.14740581810474396, 0.4298721253871918, -0.37984737753868103, 0.511655330657959, 0.09846340864896774, 0.25815391540527344, 0.39512819051742554, -0.7388951182365417, -0.10001268982887268, -0.3561173975467682, 0.3063827455043793, 0.04115917533636093, -0.5646923780441284, 0.9980737566947937, -0.15082937479019165, -0.16512762010097504, 0.00022059690672904253, 0.5572392344474792, -0.23944129049777985, -0.07948978245258331, 0.7171657085418701, 0.6690243482589722, 0.4255414605140686, -0.3630956709384918, 0.9807984828948975, 0.04146015644073486, 0.4240322709083557, 0.5591152906417847, 0.3017655909061432, 0.5987101793289185, 0.31923776865005493, -0.2778242826461792, 0.3879586458206177, 0.9157301187515259, -0.5053291916847229, 0.45028695464134216, 0.03601224720478058, 0.061525609344244, -0.2128410041332245, -0.02405901998281479, -0.4501802325248718, 0.6560097336769104, 0.3600247800350189, -0.6340970396995544, 0.07889460772275925, 0.3846736550331116, -0.4192848205566406, -0.4610515832901001, -0.5667839646339417, 0.5038544535636902, -0.01662999391555786, -0.40389034152030945, 0.6552612781524658, -0.22045645117759705, 0.6932660937309265, -0.3372369706630707, -0.07093962281942368, -0.12171270698308945, 0.3880867063999176, -0.374051570892334, -0.7806421518325806, 0.06813238561153412, -0.21527089178562164, -0.06330613046884537, -0.15020596981048584, 0.774846076965332, -0.10078025609254837, -0.5524801015853882, 0.20608660578727722, 0.013369069434702396, 0.2650897204875946, -0.08942475914955139, -0.6305403113365173, -0.03834015876054764, -0.0736130028963089, -0.3195623755455017, 0.2515072226524353, 0.30894234776496887, -0.14482815563678741, 0.49541014432907104, 0.6093575358390808, -0.038209591060876846, 0.3254866898059845, -0.043139997869729996, 0.9430146217346191, -0.4690559208393097, -0.39641743898391724, -0.46710699796676636, 0.5515954494476318, -0.1684555560350418, -0.3487332761287689, 0.4869106709957123, 0.3949311375617981, 1.0696645975112915, -0.3124401867389679, 0.48016178607940674, -0.06144615635275841, -0.015043065883219242, -0.3283552825450897, 0.4352637231349945, -0.6209695935249329, -0.17035387456417084, -0.31796902418136597, -1.0063021183013916, -0.42506757378578186, 0.8387964367866516, -0.1790188103914261, 0.2023290991783142, 0.5461368560791016, 0.7231879234313965, -0.25784605741500854, -0.08878611028194427, 0.35707947611808777, 0.17747405171394348, 0.17859968543052673, 0.40854576230049133, 0.7825433015823364, -0.7741783857345581, 0.601864218711853, -0.49375036358833313, -0.20946837961673737, -0.3121459484100342, -0.6225275993347168, -0.8558464646339417, -0.7354461550712585, -0.369493305683136, -0.5079644322395325, -0.23003874719142914, 0.6946656703948975, 1.0473549365997314, -0.8004863858222961, -0.012335523031651974, -0.20108668506145477, -0.25128260254859924, -0.26859548687934875, -0.20183759927749634, 0.4632187485694885, -0.05713796615600586, -0.6916155815124512, -0.18466418981552124, -0.0005181229207664728, 0.2322167456150055, -0.29780372977256775, -0.052567411214113235, -0.03870239108800888, -0.3759324550628662, 0.617565393447876, 0.2763903737068176, -0.5416715741157532, -0.4915996491909027, 0.03509378060698509, -0.04749529808759689, 0.30507341027259827, 0.6929264068603516, -0.800412654876709, 0.48531869053840637, 0.49427610635757446, 0.5394681692123413, 0.8822892904281616, -0.1500261425971985, 0.18014997243881226, -0.6614270210266113, 0.42296311259269714, 0.12921318411827087, 0.5602981448173523, 0.19830866158008575, -0.3250695466995239, 0.49596622586250305, 0.3552129566669464, -0.5816492438316345, -0.7018901705741882, 0.03803286701440811, -1.1631261110305786, -0.07697314023971558, 0.8753581643104553, -0.31592583656311035, -0.47141364216804504, 0.15842922031879425, -0.15402090549468994, 0.49176841974258423, -0.03290728107094765, 0.33900684118270874, 0.3012993037700653, 0.1496531069278717, -0.5591616034507751, -0.42551785707473755, 0.25891631841659546, -0.08467736840248108, -0.4611155092716217, -0.5341541171073914, 0.08736393600702286, 0.20550093054771423, 0.490808367729187, 0.19825081527233124, -0.34207215905189514, 0.18854546546936035, 0.17981429398059845, 0.4307234287261963, -0.12320788949728012, -0.4468705356121063, -0.2504618465900421, 0.09340783208608627, -0.18581877648830414, -0.656877338886261 ]
KoboldAI/OPT-13B-Nerys-v2
KoboldAI
"2022-09-19T11:15:55Z"
13,177
9
transformers
[ "transformers", "pytorch", "opt", "text-generation", "en", "arxiv:2205.01068", "license:other", "endpoints_compatible", "has_space", "text-generation-inference", "region:us" ]
text-generation
"2022-09-19T07:52:07Z"
--- language: en license: other commercial: no --- # OPT 13B - Nerys ## Model Description OPT 13B-Nerys is a finetune created using Facebook's OPT model. ## Training data The training data contains around 2500 ebooks in various genres (the "Pike" dataset), a CYOA dataset called "CYS" and 50 Asian "Light Novels" (the "Manga-v1" dataset). Most parts of the dataset have been prepended using the following text: `[Genre: <genre1>, <genre2>]` This dataset has been cleaned in the same way as fairseq-dense-13B-Nerys-v2 ### How to use You can use this model directly with a pipeline for text generation. This example generates a different sequence each time it's run: ```py >>> from transformers import pipeline >>> generator = pipeline('text-generation', model='KoboldAI/OPT-13B-Nerys-v2') >>> generator("Welcome Captain Janeway, I apologize for the delay.", do_sample=True, min_length=50) [{'generated_text': 'Welcome Captain Janeway, I apologize for the delay."\nIt's all right," Janeway said. "I'm certain that you're doing your best to keep me informed of what\'s going on."'}] ``` ### Limitations and Biases Based on known problems with NLP technology, potential relevant factors include bias (gender, profession, race and religion). ### License OPT-6B is licensed under the OPT-175B license, Copyright (c) Meta Platforms, Inc. All Rights Reserved. ### BibTeX entry and citation info ``` @misc{zhang2022opt, title={OPT: Open Pre-trained Transformer Language Models}, author={Susan Zhang and Stephen Roller and Naman Goyal and Mikel Artetxe and Moya Chen and Shuohui Chen and Christopher Dewan and Mona Diab and Xian Li and Xi Victoria Lin and Todor Mihaylov and Myle Ott and Sam Shleifer and Kurt Shuster and Daniel Simig and Punit Singh Koura and Anjali Sridhar and Tianlu Wang and Luke Zettlemoyer}, year={2022}, eprint={2205.01068}, archivePrefix={arXiv}, primaryClass={cs.CL} } ```
[ -0.27027636766433716, -0.6478318572044373, 0.08346448838710785, 0.10771764814853668, -0.13911870121955872, -0.410796195268631, -0.16320839524269104, -0.28213101625442505, 0.1898801177740097, 0.8053584098815918, -1.1758975982666016, -0.448064386844635, -0.4511342942714691, 0.5259596705436707, -0.5341859459877014, 0.9422140717506409, 0.26161548495292664, 0.03318183869123459, 0.3098585605621338, 0.1537698358297348, -0.33091869950294495, -0.2691313326358795, -0.7251102924346924, -0.18634802103042603, 0.19060401618480682, 0.585010290145874, 0.8727722764015198, 0.5723608732223511, 0.5261853337287903, 0.26530712842941284, -0.2084302306175232, 0.24267606437206268, -0.8061850070953369, -0.2093053013086319, 0.06488145142793655, -0.3585381805896759, -0.35881876945495605, -0.045894552022218704, 0.8358547687530518, 0.7292879819869995, 0.15453369915485382, 0.18774555623531342, 0.13491542637348175, 0.5633188486099243, -0.4669667184352875, -0.24960929155349731, -0.7545716166496277, 0.13520774245262146, -0.29040220379829407, -0.0003427258343435824, -0.7871859073638916, -0.40021324157714844, 0.28593552112579346, -0.6588435769081116, 0.44837984442710876, 0.21138940751552582, 1.3206052780151367, 0.40272995829582214, -0.6210975646972656, -0.16816484928131104, -0.6528358459472656, 0.9985678791999817, -1.1939830780029297, 0.3260940909385681, 0.3161858022212982, 0.10902358591556549, -0.08270137012004852, -0.9093323945999146, -0.5828549861907959, -0.16869084537029266, -0.14824119210243225, 0.25343161821365356, -0.22858530282974243, -0.04195058345794678, 0.32676708698272705, 0.526576817035675, -0.659084141254425, 0.0814889520406723, -0.6635870337486267, -0.3778392970561981, 0.7675445079803467, 0.3354593813419342, 0.21541060507297516, -0.49415910243988037, -0.2926231920719147, -0.17388682067394257, -0.641624391078949, -0.161458358168602, 0.756747841835022, 0.4966181218624115, -0.3698851764202118, 0.8307365775108337, -0.257234662771225, 0.9158148765563965, 0.4101174771785736, 0.011771752499043941, 0.6852403879165649, -0.3343124985694885, -0.26142868399620056, 0.1434793323278427, 1.1035572290420532, 0.40924206376075745, 0.2974405884742737, 0.01624792255461216, 0.061927780508995056, 0.04802714288234711, 0.2944292724132538, -1.0446267127990723, -0.018239198252558708, 0.20767870545387268, -0.7350297570228577, -0.48828086256980896, 0.1328258365392685, -0.8396312594413757, -0.20556126534938812, -0.3944080173969269, 0.40202727913856506, -0.6583386659622192, -0.29003098607063293, 0.27718743681907654, 0.10374604165554047, 0.391017347574234, -0.13996098935604095, -0.9368279576301575, 0.25748416781425476, 0.20440475642681122, 0.6084034442901611, -0.09347010403871536, -0.3911219835281372, -0.24597209692001343, -0.10486505180597305, -0.47691529989242554, 0.563351035118103, -0.32888224720954895, -0.05189628154039383, 0.24725347757339478, 0.4837397634983063, -0.2137986123561859, -0.5286126732826233, 0.7844468951225281, -0.3557673692703247, 0.5564774870872498, 0.04720671847462654, -0.6910355687141418, -0.2866617441177368, -0.09961060434579849, -0.8315408229827881, 1.0933917760849, 0.19959759712219238, -0.8951318860054016, 0.33065733313560486, -0.4613892436027527, -0.3946622610092163, 0.006695887073874474, 0.14805544912815094, -0.4611608684062958, 0.15025775134563446, 0.17225681245326996, 0.4794861674308777, -0.2804053723812103, 0.39649975299835205, -0.16185134649276733, -0.317117303609848, 0.13584555685520172, -0.6636985540390015, 1.1036943197250366, 0.32861778140068054, -0.3858475983142853, 0.05003884807229042, -1.2008295059204102, -0.0291619710624218, 0.12273693829774857, -0.2357504665851593, 0.02148447558283806, -0.06511689722537994, 0.39843159914016724, 0.17371125519275665, 0.35518670082092285, -0.6302648186683655, 0.01676226407289505, -0.8352214097976685, 0.5354197025299072, 0.6175892353057861, 0.003919302020221949, 0.5895925760269165, -0.26601874828338623, 0.5933015942573547, -0.06279280036687851, 0.30203893780708313, -0.20215117931365967, -0.46046900749206543, -1.0346333980560303, 0.08493442833423615, 0.2636977732181549, 0.5611888766288757, -0.7816842198371887, 0.5757323503494263, -0.15931163728237152, -0.9380506277084351, -0.6763439774513245, -0.1449718028306961, 0.28311124444007874, 0.32542574405670166, 0.5783988833427429, 0.030428273603320122, -0.6677495837211609, -0.8778674006462097, -0.3108373284339905, 0.07570773363113403, 0.29950353503227234, 0.373770147562027, 0.4210454821586609, -0.6079586744308472, 1.0528788566589355, -0.6166988611221313, -0.30363112688064575, -0.4514881372451782, -0.03334256634116173, 0.6257040500640869, 0.5271515250205994, 0.5547505617141724, -0.877826452255249, -0.6059348583221436, -0.15733306109905243, -0.5273119807243347, -0.3538185656070709, -0.38321712613105774, -0.4822872281074524, 0.2188880443572998, 0.592086911201477, -0.35448700189590454, 0.37773382663726807, 0.7232192754745483, -0.563972532749176, 0.8054507970809937, 0.18383732438087463, -0.13038571178913116, -1.5841487646102905, -0.11635667830705643, -0.009925903752446175, 0.006553954444825649, -0.6549121141433716, -0.2878634035587311, -0.025175798684358597, -0.16513490676879883, -0.6329270601272583, 0.639625072479248, -0.27371570467948914, 0.2583608627319336, -0.108006551861763, -0.07488051801919937, -0.10117622464895248, 0.4351067543029785, 0.18962620198726654, 0.5308248996734619, 0.5643684267997742, -0.8085511922836304, 0.1742008477449417, 0.6486390233039856, -0.2274177074432373, 0.3577735424041748, -0.7303326725959778, -0.17131149768829346, -0.024710072204470634, -0.12428232282400131, -0.9417595267295837, -0.3843148350715637, 0.30213454365730286, -0.5443273186683655, 0.19338585436344147, 0.022137194871902466, -0.3841775059700012, -0.4413145184516907, 0.17732946574687958, 0.27630436420440674, 0.49168306589126587, -0.45685750246047974, 0.7455139756202698, -0.0038581190165132284, -0.040061917155981064, -0.7567726969718933, -0.9339533448219299, -0.24206869304180145, -0.29646575450897217, -0.7041810750961304, 0.6759505271911621, -0.12556573748588562, 0.17508962750434875, 0.09913677722215652, 0.11217405647039413, -0.30654171109199524, -0.22167612612247467, 0.0568656362593174, 0.24020783603191376, -0.19804388284683228, 0.06538460403680801, 0.3539678156375885, -0.32330745458602905, 0.0027067901100963354, -0.23930220305919647, 0.7675537467002869, -0.08469997346401215, -0.1845782846212387, -0.6051117777824402, 0.1590171903371811, 0.2880048155784607, -0.2179628312587738, 1.0113112926483154, 0.7971144914627075, -0.4630614221096039, -0.27455201745033264, -0.33426910638809204, -0.387766569852829, -0.5494174957275391, 0.6482764482498169, -0.046250078827142715, -0.7869246006011963, 0.4596443474292755, -0.028843287378549576, 0.2796517312526703, 0.9293360114097595, 0.5612228512763977, 0.2819440960884094, 0.7973840236663818, 0.7321842908859253, 0.1847163885831833, 0.6070541143417358, -0.5316970944404602, 0.31272467970848083, -0.5578412413597107, -0.17127689719200134, -0.5578783750534058, -0.19677190482616425, -0.5501186847686768, -0.06690831482410431, 0.007709120400249958, 0.03490142896771431, -0.6102738380432129, 0.7463308572769165, -0.6335766315460205, 0.2729320228099823, 0.6847153306007385, 0.10169895738363266, 0.15992607176303864, 0.022933246567845345, -0.1492616832256317, -0.19199968874454498, -0.8516444563865662, -0.5751991271972656, 1.2272233963012695, 0.2076835334300995, 0.9502660632133484, 0.06752188503742218, 0.937552809715271, -0.022318214178085327, 0.07128289341926575, -0.6513910293579102, 0.5089496970176697, -0.3516799509525299, -0.9854558110237122, -0.21460331976413727, -0.5006780624389648, -1.043526291847229, -0.11926202476024628, -0.4099597930908203, -0.4952978491783142, 0.5363088846206665, 0.1146944910287857, -0.3397705852985382, 0.13805358111858368, -0.800173819065094, 1.1335588693618774, -0.14783447980880737, -0.2515017092227936, 0.1411079615354538, -0.6772626638412476, 0.26887786388397217, -0.10954056680202484, 0.04827276989817619, 0.19130314886569977, 0.29902493953704834, 0.8446949124336243, -0.40567100048065186, 1.0442967414855957, 0.1745098978281021, -0.12348870933055878, 0.5292244553565979, -0.11173540353775024, 0.2516920864582062, -0.073555588722229, -0.15371668338775635, 0.11817681789398193, -0.0827072486281395, -0.11655717343091965, -0.0004069586575496942, 0.35354897379875183, -0.9764600396156311, 0.07825726270675659, -0.46747127175331116, -0.5247883200645447, 0.19729045033454895, 0.6669582724571228, 1.0702048540115356, 0.9458774328231812, 0.008123571053147316, 0.46156156063079834, 0.48831990361213684, -0.5716916918754578, 0.5668277144432068, 0.35742801427841187, -0.23616208136081696, -0.7025982737541199, 0.8865584135055542, 0.28874829411506653, 0.4705897867679596, 0.4608120024204254, 0.07250933349132538, -0.39838144183158875, -0.3796742558479309, -0.2133859246969223, 0.4013199210166931, -0.6686486005783081, -0.3475325107574463, -0.7131638526916504, -0.5610787868499756, -0.45003315806388855, -0.2269544005393982, -0.5265395045280457, -0.2166621834039688, -0.6643163561820984, -0.10077045112848282, 0.32407623529434204, 0.6011975407600403, -0.05074906721711159, 0.8108397722244263, -0.7973233461380005, 0.3379644751548767, -0.05661321058869362, 0.16284872591495514, 0.0557672344148159, -0.8535357713699341, -0.47672444581985474, 0.14680658280849457, -0.586085855960846, -1.1112552881240845, 0.7341376543045044, 0.26379919052124023, 0.5425512194633484, 0.630865752696991, 0.41355326771736145, 0.46893104910850525, -0.6183444857597351, 0.8866510391235352, 0.15085095167160034, -0.9998548626899719, 0.41139721870422363, -0.47485440969467163, 0.25159916281700134, 0.5675024390220642, 0.5372886061668396, -0.4494907557964325, -0.38753944635391235, -0.918006181716919, -0.9366359114646912, 0.9909529685974121, 0.4294397830963135, 0.3620968461036682, -0.17888179421424866, 0.2520832121372223, 0.18292684853076935, 0.26423561573028564, -1.4142489433288574, -0.6121131181716919, -0.27778202295303345, -0.6324427127838135, -0.07646015286445618, -0.3899693787097931, 0.28339579701423645, -0.12270185351371765, 1.1520124673843384, -0.15443070232868195, 0.4837518334388733, 0.258510947227478, -0.16847918927669525, 0.07226966321468353, 0.12147869914770126, 0.26300689578056335, 0.419490784406662, -0.2695345878601074, -0.24684597551822662, 0.026045018807053566, -0.7094160914421082, -0.06396351754665375, 0.38851264119148254, -0.4901418685913086, 0.15368174016475677, 0.42769655585289, 1.04237961769104, 0.08659197390079498, -0.5496577620506287, 0.3182724416255951, 0.1221190020442009, -0.4708758294582367, -0.5720389485359192, -0.11517686396837234, -0.007534790318459272, 0.2428520917892456, 0.3422625958919525, 0.21974347531795502, 0.30137231945991516, -0.20350128412246704, 0.1599806696176529, 0.052396778017282486, -0.5236384272575378, -0.051764827221632004, 0.6887772679328918, 0.1079229786992073, -0.3144128620624542, 0.7957049608230591, -0.47046148777008057, -0.35458001494407654, 0.6603078246116638, 0.827328622341156, 0.9757543206214905, -0.14842970669269562, 0.4204002320766449, 0.7381534576416016, 0.6953191757202148, 0.06536521017551422, 0.3762647807598114, 0.6127637028694153, -1.0199435949325562, -0.6065061688423157, -0.7403990030288696, -0.15526153147220612, 0.3084948658943176, -0.7597740888595581, 0.6993165612220764, -0.10090818256139755, -0.3782702386379242, -0.14262980222702026, -0.019622590392827988, -0.6362943053245544, 0.4008052945137024, 0.1683889925479889, 0.9438561201095581, -1.0687460899353027, 0.25391748547554016, 0.7289281487464905, -0.4592430293560028, -1.1545917987823486, 0.01739199459552765, -0.1987375169992447, -0.426763653755188, 0.4244418740272522, 0.539457380771637, 0.21311940252780914, 0.4988250136375427, -0.753173291683197, -1.1613900661468506, 0.959190845489502, 0.43125253915786743, -0.5738343596458435, -0.037542469799518585, 0.20879901945590973, 0.40629905462265015, -0.33505064249038696, 0.29877346754074097, 0.3763808012008667, 0.33576831221580505, -0.1258774697780609, -0.6313924193382263, -0.14361004531383514, -0.40104708075523376, -0.11586916446685791, 0.020572679117321968, -0.6458364725112915, 1.0412025451660156, -0.06879173964262009, -0.1852298378944397, 0.41324999928474426, 0.647312343120575, 0.2179281860589981, 0.2665434181690216, 0.33431684970855713, 0.6435118913650513, 0.6026127934455872, -0.24100013077259064, 0.8561558127403259, -0.4111449420452118, 0.7027588486671448, 1.0266382694244385, 0.07177792489528656, 0.6318700909614563, 0.19069376587867737, -0.1984834372997284, 0.730068027973175, 0.8966301679611206, -0.2403632402420044, 0.7067341804504395, -0.0993458554148674, 0.2500103712081909, -0.3693786859512329, -0.13697296380996704, -0.5788475275039673, 0.2868131399154663, 0.23870375752449036, -0.6551194190979004, -0.012781637720763683, 0.06997648626565933, 0.12766705453395844, -0.0022235247306525707, -0.2162417322397232, 0.5849521160125732, 0.10925135761499405, -0.47792330384254456, 0.6819189190864563, -0.002112180460244417, 0.7317965030670166, -0.7352114915847778, 0.10913636535406113, 0.055665548890829086, 0.3469312787055969, -0.3736172318458557, -0.4030999541282654, 0.22892124950885773, -0.10438846051692963, -0.4330899119377136, -0.012433258816599846, 0.663242757320404, -0.4960252642631531, -0.9457416534423828, 0.20768392086029053, 0.34475016593933105, 0.1261357218027115, 0.1037808433175087, -0.7111322283744812, -0.09871629625558853, 0.31713226437568665, -0.2681046724319458, -0.22549088299274445, 0.4506811499595642, 0.27841639518737793, 0.526454746723175, 0.5846449732780457, -0.18753159046173096, 0.4822465777397156, 0.13201656937599182, 0.7243995666503906, -0.4925788938999176, -0.6240851283073425, -0.826280951499939, 0.7379013299942017, -0.15751245617866516, -0.7369820475578308, 0.8662077188491821, 0.6383448839187622, 0.9331105351448059, -0.34853747487068176, 0.7416511178016663, -0.2580702006816864, 0.5356146693229675, -0.542402982711792, 0.6845434904098511, -0.6470094323158264, -0.172119140625, -0.6784842610359192, -1.3349858522415161, -0.03224298357963562, 0.9445944428443909, -0.3651588559150696, 0.19539079070091248, 0.9055593609809875, 0.9038745760917664, 0.005926736630499363, 0.28049948811531067, -0.1552712619304657, 0.47247135639190674, 0.06673287600278854, 0.5578141212463379, 0.8358503580093384, -0.837673008441925, 0.6013615727424622, -0.46687814593315125, -0.0987699031829834, -0.1826637238264084, -0.9055061936378479, -1.068331241607666, -0.5311919450759888, -0.33316880464553833, -0.5313739776611328, -0.40552014112472534, 0.7992775440216064, 0.6885952353477478, -0.7983540892601013, -0.18941031396389008, -0.5336818099021912, -0.15115709602832794, -0.4384286403656006, -0.30628353357315063, 0.40941399335861206, -0.3247244656085968, -0.992702066898346, 0.18163959681987762, -0.27660346031188965, 0.22685043513774872, -0.018343525007367134, -0.23970817029476166, -0.2543313801288605, 0.006787609774619341, 0.2297644466161728, -0.12490902841091156, -0.5398208498954773, 0.2669879198074341, 0.3373005986213684, 0.08401213586330414, -0.26029396057128906, 0.1786033809185028, -0.60994952917099, 0.2940855026245117, 0.40791505575180054, 0.6381471753120422, 0.24873383343219757, -0.11123771220445633, 0.6168577075004578, -0.6107360124588013, 0.19539283215999603, 0.24609240889549255, 0.32802221179008484, 0.2918243408203125, -0.40048831701278687, 0.5444762706756592, 0.3231429159641266, -0.6467406749725342, -0.8916111588478088, 0.2136482298374176, -0.9616115689277649, -0.09583506733179092, 1.3966563940048218, 0.1720706969499588, -0.005956933367997408, 0.09635148197412491, -0.4038122594356537, 0.34464678168296814, -0.3026643395423889, 0.18228919804096222, 0.6105982661247253, 0.35663437843322754, -0.09473584592342377, -0.5049434304237366, 0.47861024737358093, 0.3870275318622589, -0.6942368149757385, -0.11366132646799088, 0.4989919066429138, 0.05594087019562721, 0.3280346691608429, 0.5304740071296692, -0.05945814773440361, 0.09956124424934387, 0.11886870861053467, 0.0880637913942337, 0.006246774923056364, -0.4365669786930084, -0.1888216733932495, -0.10590086877346039, -0.4162577688694, 0.05918978899717331 ]
nitrosocke/Ghibli-Diffusion
nitrosocke
"2023-08-03T19:46:59Z"
13,173
577
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-18T15:50:51Z"
--- language: - en license: creativeml-openrail-m thumbnail: "https://huggingface.co/nitrosocke/Ghibli-Diffusion/resolve/main/images/ghibli-diffusion-thumbnail.jpg" tags: - stable-diffusion - text-to-image - image-to-image - diffusers --- ### Ghibli Diffusion This is the fine-tuned Stable Diffusion model trained on images from modern anime feature films from Studio Ghibli. Use the tokens **_ghibli style_** in your prompts for the effect. **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:** ![Characters Samples](https://huggingface.co/nitrosocke/Ghibli-Diffusion/resolve/main/images/ghibli-diffusion-samples-01s.jpg) **Cars and Animals rendered with the model:** ![Misc. Samples](https://huggingface.co/nitrosocke/Ghibli-Diffusion/resolve/main/images/ghibli-diffusion-samples-02s.jpg) **Landscapes rendered with the model:** ![Landscape 1](https://huggingface.co/nitrosocke/Ghibli-Diffusion/resolve/main/images/ghibli-diffusion-samples-03s.jpg) _ghibli style beautiful Caribbean beach tropical (sunset) - Negative prompt: soft blurry_ ![Landscape 2](https://huggingface.co/nitrosocke/Ghibli-Diffusion/resolve/main/images/ghibli-diffusion-samples-04s.jpg) _ghibli style ice field white mountains ((northern lights)) starry sky low horizon - Negative prompt: soft blurry_ #### Prompt and settings for the Strom Trooper: **ghibli style (storm trooper) Negative prompt: (bad anatomy)** _Steps: 20, Sampler: DPM++ 2M Karras, CFG scale: 7, Seed: 3450349066, Size: 512x704_ #### Prompt and settings for the VW Beetle: **ghibli style VW beetle Negative prompt: soft blurry** _Steps: 30, Sampler: Euler a, CFG scale: 7, Seed: 1529856912, 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 15.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/Ghibli-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/Ghibli-Diffusion" pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16) pipe = pipe.to("cuda") prompt = "ghibli 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.5579409003257751, -0.7978979349136353, 0.3863116204738617, 0.29364797472953796, -0.2966029644012451, -0.17173868417739868, 0.002863517962396145, -0.5726667046546936, 0.41045835614204407, 0.32271769642829895, -0.711252748966217, -0.4768669903278351, -0.6423550844192505, -0.3678625226020813, -0.10289094597101212, 1.1492482423782349, -0.1351596713066101, 0.08570809662342072, -0.11845347285270691, 0.04266038537025452, -0.22332696616649628, -0.07678824663162231, -0.7003337144851685, -0.4957929849624634, 0.513473629951477, -0.019854331389069557, 0.8090834617614746, 0.4233701527118683, 0.2436772733926773, 0.3186061680316925, -0.44879135489463806, -0.1717153936624527, -0.4953818917274475, -0.07403868436813354, -0.18082579970359802, -0.3157581686973572, -0.5854894518852234, -0.039449065923690796, 0.5933642387390137, 0.15030105412006378, -0.4173550605773926, 0.013873284682631493, -0.031301647424697876, 0.23883908987045288, -0.5099689364433289, -0.049180082976818085, -0.10151977837085724, -0.0701931044459343, -0.14255693554878235, 0.36959949135780334, -0.19010604918003082, -0.39274361729621887, 0.02109551802277565, -0.7792765498161316, 0.4444064795970917, -0.1699456423521042, 1.4024631977081299, 0.16280527412891388, -0.353413462638855, -0.13878324627876282, -0.5293939709663391, 0.668282687664032, -0.7111034989356995, 0.24566146731376648, 0.14682099223136902, 0.4125525653362274, 0.008365609683096409, -0.8815227150917053, -0.5170983076095581, -0.0512557253241539, -0.06764039397239685, 0.43257594108581543, -0.2823634445667267, -0.13014671206474304, 0.17624087631702423, 0.4173978865146637, -0.7321141958236694, -0.05228539556264877, -0.48130694031715393, -0.15688611567020416, 0.6023144125938416, 0.20327213406562805, 0.38073116540908813, -0.06934051960706711, -0.476362407207489, -0.22249893844127655, -0.25978386402130127, 0.01663966476917267, 0.37755656242370605, -0.15028567612171173, -0.663793683052063, 0.456584095954895, -0.05126677453517914, 0.5099448561668396, 0.10942960530519485, -0.025245416909456253, 0.4948454201221466, -0.2578828036785126, -0.2798217236995697, -0.43532538414001465, 0.9203211069107056, 0.608247697353363, 0.1312873810529709, -0.06854439526796341, -0.07945751398801804, 0.11988458037376404, 0.1528043895959854, -1.2481989860534668, -0.3173561692237854, 0.2828492820262909, -0.4373725652694702, -0.30707624554634094, -0.2537210285663605, -0.9967368245124817, -0.2522926330566406, 0.14942854642868042, 0.3893933892250061, -0.465684175491333, -0.6537372469902039, 0.26032865047454834, -0.5541946887969971, 0.12424838542938232, 0.3843172788619995, -0.9322255253791809, 0.0072512137703597546, 0.18559947609901428, 1.069064736366272, 0.07142598927021027, -0.14088888466358185, 0.16804558038711548, 0.36671388149261475, -0.0857127457857132, 0.6401816606521606, -0.48815563321113586, -0.7010875940322876, -0.10988455265760422, 0.3685879707336426, -0.10750029981136322, -0.4250461161136627, 0.5666614174842834, -0.47555050253868103, 0.3511791527271271, 0.05363393574953079, -0.41910961270332336, -0.2862195074558258, -0.029855970293283463, -0.48105353116989136, 0.5474873781204224, 0.32060062885284424, -0.8611389994621277, 0.20309777557849884, -0.7231498956680298, -0.10177066922187805, 0.05412488803267479, 0.27316582202911377, -0.6704140901565552, 0.13008248805999756, -0.17580251395702362, 0.23628219962120056, 0.06721781939268112, 0.19666065275669098, -0.5605918765068054, -0.12646248936653137, -0.2163749784231186, -0.3227696418762207, 1.3877426385879517, 0.24932430684566498, -0.1980154812335968, 0.25787353515625, -0.6411474347114563, -0.062379930168390274, 0.46908411383628845, -0.23793306946754456, -0.111934594810009, -0.3304491639137268, 0.3631942570209503, 0.1325460523366928, 0.2491573989391327, -0.5368565917015076, 0.32123488187789917, -0.1774878203868866, 0.4395788908004761, 0.6041243076324463, 0.3565828502178192, 0.4572189748287201, -0.30210962891578674, 0.6390960812568665, 0.20332187414169312, 0.4400477409362793, 0.20916059613227844, -0.9378207921981812, -0.6504820585250854, -0.3774714171886444, 0.17998583614826202, 0.44951149821281433, -0.6120997071266174, 0.38719817996025085, 0.09192892163991928, -0.9789561033248901, -0.4540403187274933, -0.23287785053253174, 0.17977192997932434, 0.7216237187385559, 0.31476521492004395, -0.39610254764556885, -0.22311079502105713, -0.7943670749664307, 0.26056161522865295, -0.0941505879163742, -0.21907828748226166, 0.14845441281795502, 0.7490606904029846, -0.6019458174705505, 0.7387818694114685, -0.6072558164596558, -0.16296109557151794, 0.007430507801473141, 0.13402873277664185, 0.41843700408935547, 0.7673808336257935, 0.8671241998672485, -0.7353827357292175, -0.5404248833656311, -0.12140177190303802, -0.8032776117324829, -0.10669761151075363, 0.13823644816875458, -0.5783441662788391, 0.08133595436811447, 0.06429266184568405, -1.1605511903762817, 0.5202177166938782, 0.6673897504806519, -0.8149084448814392, 0.5447357892990112, -0.5302251577377319, 0.07918000966310501, -1.009830117225647, 0.26605483889579773, 0.272611528635025, -0.27393367886543274, -0.7955983281135559, 0.34461498260498047, 0.03371356800198555, 0.051273927092552185, -0.7474464178085327, 0.9096150994300842, -0.2643900215625763, 0.49824967980384827, -0.2070464938879013, 0.0686822459101677, 0.20734097063541412, 0.44001495838165283, 0.16993668675422668, 0.44316571950912476, 0.8322299122810364, -0.6995473504066467, 0.1766481101512909, 0.5033522248268127, -0.2582036554813385, 0.599565327167511, -0.9423298239707947, -0.09810492396354675, -0.4481704533100128, 0.12233923375606537, -0.9684918522834778, -0.22745715081691742, 0.783047616481781, -0.4013392925262451, 0.3717952072620392, -0.2133791595697403, -0.45706990361213684, -0.3286477327346802, -0.06098826229572296, 0.279000461101532, 0.9712331891059875, -0.3393823504447937, 0.635097086429596, 0.34427186846733093, 0.08914535492658615, -0.2840941548347473, -0.8286862969398499, -0.4092506468296051, -0.518251359462738, -0.8783847093582153, 0.5626077055931091, -0.3862779140472412, -0.12882453203201294, 0.02520255371928215, 0.1487990915775299, -0.21132855117321014, 0.0001720846485113725, 0.3213396966457367, 0.39982572197914124, 0.07146811485290527, -0.36293137073516846, 0.12373185902833939, -0.15928222239017487, -0.05857151746749878, 0.026837840676307678, 0.5932748317718506, 0.02238069288432598, -0.11558583378791809, -0.6090050935745239, 0.17052173614501953, 0.5362148284912109, -0.057498279958963394, 0.9356493353843689, 1.0149677991867065, -0.3806973397731781, 0.11750295758247375, -0.2290986031293869, -0.1280212700366974, -0.5227473378181458, 0.18890336155891418, -0.16566674411296844, -0.5466766357421875, 0.7090516686439514, 0.30672216415405273, 0.21480894088745117, 0.6657036542892456, 0.6239247918128967, -0.09471464902162552, 1.1859383583068848, 0.7633413672447205, 0.06823021173477173, 0.7341690063476562, -0.7801103591918945, -0.14655257761478424, -0.8227437734603882, -0.5003714561462402, -0.384473592042923, -0.4704214930534363, -0.4579177498817444, -0.4681217670440674, 0.3155991733074188, 0.5034565925598145, -0.5844172835350037, 0.16489671170711517, -0.4850623309612274, 0.3560788035392761, 0.3383716642856598, 0.21200990676879883, 0.22817815840244293, 0.08852564543485641, 0.08182346075773239, -0.07330329716205597, -0.4548738896846771, -0.3250569701194763, 0.5074729919433594, 0.548397958278656, 0.6712456941604614, 0.26138317584991455, 0.6467428207397461, 0.02746075950562954, 0.5356249213218689, -0.4154893457889557, 0.565008282661438, -0.012157847173511982, -0.9033733010292053, -0.07959695905447006, -0.40187984704971313, -0.954207718372345, 0.5237765908241272, -0.2091209441423416, -0.6584091782569885, 0.3301103711128235, 0.05611792951822281, -0.19903899729251862, 0.3054024875164032, -0.8248278498649597, 1.084420919418335, -0.04615972936153412, -0.5912741422653198, -0.2205618917942047, -0.6057377457618713, 0.4841698706150055, 0.32262030243873596, 0.14925329387187958, -0.1642085313796997, -0.243028461933136, 0.6718191504478455, -0.38408923149108887, 0.7584058046340942, -0.7328014373779297, -0.018765412271022797, 0.3810141682624817, -0.07361309230327606, 0.2773094177246094, 0.16317056119441986, -0.06265316903591156, 0.4110856056213379, -0.13809074461460114, -0.5213338136672974, -0.34439387917518616, 0.5699084997177124, -0.803463876247406, -0.39948374032974243, -0.34875544905662537, -0.4185212254524231, 0.17643879354000092, 0.4271259307861328, 0.7074774503707886, 0.12250813096761703, -0.1676895171403885, -0.15409325063228607, 0.6827399730682373, -0.1277463585138321, 0.7024508118629456, 0.3960900604724884, -0.6227903962135315, -0.5573127865791321, 0.7686446309089661, 0.04313492774963379, 0.4772331118583679, -0.1984626203775406, 0.37771251797676086, -0.35601168870925903, -0.5883601903915405, -0.7674610614776611, 0.6744630336761475, -0.5292044878005981, -0.07125075161457062, -0.5823125839233398, -0.208029642701149, -0.18925480544567108, -0.12939025461673737, -0.1175498440861702, -0.2341383844614029, -0.6648515462875366, -0.013402789831161499, 0.6197943091392517, 0.6411254405975342, -0.11284615844488144, 0.5002013444900513, -0.5183231830596924, 0.3326053023338318, 0.17410048842430115, 0.4197328984737396, 0.1218421459197998, -0.7727282643318176, -0.2706809937953949, 0.22531597316265106, -0.5199322700500488, -0.8426162600517273, 0.6780878305435181, 0.03262772038578987, 0.5156253576278687, 0.4347533583641052, -0.2648453712463379, 0.8848022222518921, -0.5638310313224792, 0.9158760905265808, 0.43221086263656616, -0.6334246397018433, 0.459397554397583, -0.6249902248382568, 0.3257821202278137, 0.45839619636535645, 0.6265271902084351, -0.27516743540763855, -0.5547588467597961, -0.9308422207832336, -0.8937526941299438, 0.4392184317111969, 0.21477310359477997, 0.21339595317840576, 0.1898489147424698, 0.31994369626045227, -0.09176015108823776, 0.3303506374359131, -0.8775432109832764, -0.4396592974662781, -0.3162853419780731, 0.0029813984874635935, -0.12298493087291718, 0.016986247152090073, -0.11756464838981628, -0.42638644576072693, 0.8921712040901184, 0.14624086022377014, 0.43003207445144653, 0.13232816755771637, 0.197980597615242, -0.29505690932273865, -0.20390433073043823, 0.5698302984237671, 0.44084107875823975, -0.3771710991859436, -0.3723350763320923, -0.16395679116249084, -0.5759784579277039, 0.09461835026741028, 0.005406767595559359, -0.5672286748886108, 0.2616618573665619, 0.010286022908985615, 0.8004454374313354, -0.11388348788022995, -0.3609697222709656, 0.5440086126327515, -0.10681196302175522, -0.3120320737361908, -0.2803820073604584, 0.27791905403137207, 0.3947911262512207, 0.4876428544521332, 0.0020911346655339003, 0.4014541208744049, 0.1324300765991211, -0.317455530166626, 0.0069490475580096245, 0.6934942007064819, -0.1971462368965149, -0.2845512926578522, 1.2110692262649536, -0.04698585718870163, -0.323952853679657, 0.516864001750946, -0.3403698205947876, -0.058609262108802795, 0.5447077751159668, 0.7473961114883423, 0.8958242535591125, -0.36016401648521423, 0.41495004296302795, 0.42036932706832886, -0.011399739421904087, -0.2648983299732208, 0.3051946461200714, 0.21659010648727417, -0.5636921525001526, -0.09969021379947662, -0.6054585576057434, -0.3424946963787079, -0.029609020799398422, -0.5855965614318848, 0.5066736936569214, -0.6280467510223389, -0.291144996881485, -0.31586891412734985, -0.05864788219332695, -0.5745530128479004, 0.2785148322582245, 0.055804818868637085, 1.0181697607040405, -0.9663657546043396, 0.9065524339675903, 0.3709670901298523, -0.7241216897964478, -0.47121718525886536, -0.03330862522125244, -0.2529546320438385, -0.6817275881767273, 0.03555784747004509, 0.14926102757453918, -0.07503808289766312, 0.03842201828956604, -0.7214095592498779, -0.7896404266357422, 1.2861566543579102, 0.41325217485427856, -0.36429381370544434, -0.24873018264770508, -0.4269241988658905, 0.7239843606948853, -0.33357807993888855, 0.6022464632987976, 0.35240814089775085, 0.5318308472633362, 0.3115957975387573, -0.5836185216903687, -0.14801612496376038, -0.36176538467407227, 0.22253768146038055, -0.062296271324157715, -1.0595993995666504, 0.9672332406044006, -0.16417549550533295, -0.3244907855987549, 0.425668329000473, 0.7083042860031128, 0.4953821003437042, 0.33217915892601013, 0.4110235273838043, 0.8969312906265259, 0.7690232396125793, -0.08879832178354263, 1.1967943906784058, -0.04417948052287102, 0.4935908019542694, 0.618161678314209, 0.04561644047498703, 0.8084322214126587, 0.3912869691848755, -0.10862912982702255, 0.9389320015907288, 0.5829408168792725, -0.20056785643100739, 0.8536173105239868, 0.08861953765153885, -0.2623116970062256, 0.026500003412365913, -0.20953166484832764, -0.6441599726676941, -0.24226556718349457, 0.15199697017669678, -0.19261689484119415, -0.15692193806171417, 0.16005687415599823, 0.14739277958869934, -0.23246493935585022, -0.42381155490875244, 0.41961580514907837, -0.015511319041252136, -0.24352030456066132, 0.8278495073318481, -0.05425606667995453, 1.010925054550171, -0.9070761203765869, 0.09685736149549484, -0.170652836561203, 0.15723958611488342, -0.3770982325077057, -0.8213526606559753, 0.4039871096611023, -0.05561946704983711, -0.19506216049194336, -0.4071753919124603, 0.4794137477874756, -0.44770896434783936, -0.6183768510818481, 0.5028993487358093, 0.20327146351337433, 0.38994404673576355, 0.29173165559768677, -0.8448659181594849, 0.27160051465034485, 0.1352946013212204, -0.5318791270256042, 0.37701255083084106, 0.11241000890731812, 0.41532111167907715, 0.6771577596664429, 0.23553648591041565, 0.16277861595153809, 0.0568368062376976, 0.015347610227763653, 0.757074236869812, -0.5226972103118896, -0.4948146641254425, -0.8112649321556091, 1.2789582014083862, -0.15326206386089325, -0.3994646668434143, 0.8526904582977295, 0.5533844232559204, 0.835645318031311, -0.4065555930137634, 0.708548367023468, -0.20773379504680634, 0.38563254475593567, -0.44852694869041443, 0.9760490655899048, -0.8706643581390381, -0.12727481126785278, -0.3799821436405182, -0.9561265707015991, -0.16534678637981415, 0.8765701651573181, -0.09970483928918839, 0.3123619556427002, 0.28358882665634155, 0.9258570075035095, -0.21405284106731415, -0.04069710522890091, 0.059211619198322296, 0.15148968994617462, 0.381614089012146, 0.5308477282524109, 0.7303640246391296, -0.601131021976471, 0.2912289500236511, -0.38174134492874146, -0.29560354351997375, -0.050593554973602295, -0.8269361257553101, -0.9248175621032715, -0.3656221032142639, -0.6137610077857971, -0.6437088847160339, -0.22493356466293335, 0.40022602677345276, 0.8917118906974792, -0.6352631449699402, -0.2281164824962616, -0.2308114618062973, 0.14601564407348633, 0.03513456881046295, -0.28193724155426025, 0.0008754308219067752, 0.2604542076587677, -1.0186082124710083, 0.25850269198417664, -0.10992961376905441, 0.7087408900260925, -0.3783778250217438, -0.2319987267255783, -0.09612947702407837, -0.24192875623703003, 0.1770351529121399, 0.13095106184482574, -0.5246587991714478, -0.22929809987545013, -0.30235201120376587, 0.053895700722932816, 0.08744627237319946, 0.2356746643781662, -0.5929110646247864, 0.253034770488739, 0.619938313961029, 0.06508578360080719, 0.8709394931793213, 0.054995086044073105, 0.1223360225558281, -0.4289073348045349, 0.2242230623960495, 0.14252178370952606, 0.45705682039260864, 0.12182697653770447, -0.21438756585121155, 0.5301822423934937, 0.5137200951576233, -0.8291594386100769, -0.788652777671814, 0.2240428626537323, -1.0780704021453857, -0.30409932136535645, 1.0034722089767456, -0.016865650191903114, -0.4572310745716095, 0.07973543554544449, -0.3512411117553711, 0.1456499844789505, -0.44674015045166016, 0.36543598771095276, 0.4747012257575989, -0.19803261756896973, -0.30858880281448364, -0.6602649092674255, 0.37332940101623535, 0.09172673523426056, -0.5157111287117004, -0.07073618471622467, 0.6671274900436401, 0.6383621692657471, 0.5772285461425781, 0.7661341428756714, -0.144289031624794, 0.04746788367629051, 0.10524784028530121, 0.20874756574630737, 0.049647580832242966, -0.18737229704856873, -0.6526010036468506, 0.25597667694091797, -0.1949290633201599, -0.2563681900501251 ]
goofyai/3d_render_style_xl
goofyai
"2023-08-14T16:58:25Z"
13,123
74
diffusers
[ "diffusers", "text-to-image", "stable-diffusion", "lora", "base_model:stabilityai/stable-diffusion-xl-base-1.0", "license:apache-2.0", "has_space", "region:us" ]
text-to-image
"2023-08-14T16:41:59Z"
--- license: apache-2.0 tags: - text-to-image - stable-diffusion - lora - diffusers base_model: stabilityai/stable-diffusion-xl-base-1.0 instance_prompt: 3d style, 3d, 3d render widget: - text: 3d style llama --- # 3D Render Style SDXL ## Support me in upgrading my 3060 to a 40xx GPU as my current GPU struggles with SDXL training [Buymeacoffee](https://www.buymeacoffee.com/goofy02) | ![3d_style_1.jpeg](3d_style_1.jpeg) | ![3d_style_2.jpeg](3d_style_2.jpeg) | |:----------------------:|:----------------:| | ![3d_style_3.jpeg](3d_style_3.jpeg) | ![3d_style_4.jpeg](3d_style_4.jpeg) | ### Tips: - Prompt with `3d style`, `3d` or `3d render` activation prompts - Lora weight of 0.7-1 works great - Highres fix is highly recommended.
[ -0.9616597294807434, -0.44638627767562866, 0.6661207675933838, 0.6258646249771118, -0.4441082775592804, -0.07570753246545792, 0.3134666383266449, -0.15320615470409393, 0.15932175517082214, 0.5048666000366211, -0.3669622540473938, -0.3516167402267456, -0.38123178482055664, -0.08670864254236221, 0.08786530792713165, 0.8928905725479126, -0.403859943151474, 0.0750315934419632, -0.3974275290966034, 0.10837721824645996, -0.3532668650150299, -0.46040722727775574, -1.2558153867721558, -0.36439377069473267, 0.7918534874916077, 0.262106329202652, 0.573682963848114, 0.4765132963657379, 0.3256813585758209, 0.26612016558647156, -0.15697728097438812, 0.07426980137825012, -0.30391284823417664, -0.04806225746870041, -0.02959054335951805, -0.1903447061777115, -0.8691856265068054, -0.21597369015216827, 0.7929366827011108, 0.375515878200531, -0.4269774258136749, 0.07498577237129211, -0.06851204484701157, 0.8183847665786743, -0.8751715421676636, 0.233249694108963, -0.027300329878926277, 0.4496234357357025, -0.2800370454788208, 0.17028719186782837, -0.13380970060825348, -0.502882182598114, -0.5165003538131714, -1.2566126585006714, 0.20189206302165985, 0.18411162495613098, 0.9028254151344299, 0.25153061747550964, -0.18092744052410126, 0.5061620473861694, -0.5237740278244019, 0.39968472719192505, -0.9490410089492798, 0.5391327142715454, 0.08574634045362473, 0.5819903016090393, 0.2106253057718277, -0.960861086845398, -0.2645815312862396, 0.4082617461681366, 0.21795250475406647, 0.42013436555862427, -0.38421472907066345, 0.22341662645339966, 1.076590657234192, 0.5923751592636108, -0.5527060031890869, 0.048813700675964355, -0.8735143542289734, -0.13511425256729126, 0.7282054424285889, 0.14733275771141052, 0.17197339236736298, 0.14946100115776062, -0.754968523979187, -0.4506581127643585, -0.690990686416626, -0.4930557310581207, 0.6476656794548035, 0.22204484045505524, -0.4287441372871399, 0.4610270857810974, -0.06275192648172379, 0.6993827223777771, 0.1719048172235489, 0.2962411642074585, 0.5837716460227966, -0.2120707780122757, -0.6024364829063416, 0.06589801609516144, 0.7417199611663818, 0.546728253364563, 0.2912217378616333, 0.25884810090065, -0.2672412097454071, -0.09166193008422852, 0.4789387881755829, -0.9141358137130737, -0.4662929177284241, 0.19251880049705505, -0.07558813691139221, 0.007867047563195229, 0.015154710039496422, -1.1788794994354248, -0.34764614701271057, -0.06894814223051071, 0.19234035909175873, -0.5266603231430054, -0.6974071264266968, 0.25919395685195923, -0.58757084608078, 0.2960284948348999, 0.6880738735198975, -1.258407473564148, 0.5635467171669006, 0.2019164115190506, 0.4626864790916443, -0.17223329842090607, 0.060098011046648026, -0.4447074830532074, 0.2075798362493515, -0.6739546656608582, 0.7551053166389465, -0.06194854527711868, -0.7437658905982971, -0.04661229997873306, -0.010499145835638046, 0.029300766065716743, -0.8861620426177979, 0.6813355684280396, -0.4511054456233978, 0.05766970291733742, -0.39545008540153503, -0.1672586053609848, -0.14746549725532532, -0.010960759595036507, -0.9045788645744324, 1.4628392457962036, 0.4022999107837677, -0.5749976634979248, 0.052230969071388245, -0.8460873365402222, -0.4981633126735687, 0.3318089246749878, -0.2011764645576477, -0.5167519450187683, 0.5573740601539612, -0.036470815539360046, 0.223348930478096, 0.02765091322362423, -0.5197228789329529, -0.5165523290634155, -0.5868803858757019, -0.5659693479537964, -0.11897977441549301, 0.5529787540435791, 0.5515463352203369, -0.2683010697364807, 0.044529419392347336, -0.9908735156059265, 0.21139851212501526, 0.357450932264328, -0.12578317523002625, -0.07672413438558578, -0.7013272643089294, 0.4144383668899536, 0.21306568384170532, 0.3202180862426758, -0.6513279676437378, 0.33116766810417175, -0.08662337809801102, 0.22297488152980804, 0.887527346611023, -0.13408823311328888, 0.17825773358345032, -0.026498086750507355, 0.5007699728012085, 0.1627659648656845, 0.40391820669174194, 0.19249004125595093, -0.8138936161994934, -0.6691262722015381, -0.1507614105939865, -0.5485609173774719, 0.42083126306533813, -1.0504957437515259, -0.17853324115276337, 0.28569069504737854, -0.3333168625831604, -0.08092497289180756, 0.0073778158985078335, 0.3398738503456116, 0.049023691564798355, 0.5682178735733032, -0.2931046783924103, -0.8473109006881714, -0.776459276676178, 0.3704937696456909, -0.06300109624862671, 0.062228601425886154, 0.32917550206184387, 0.2842826545238495, -0.27813270688056946, 0.6055540442466736, -1.1411761045455933, 0.00953984446823597, 0.0256351325660944, -0.14885400235652924, 0.45414265990257263, 0.5040720701217651, 0.9343792200088501, -0.5919806957244873, -0.3732362687587738, 0.019174056127667427, -0.6500195860862732, 0.23100240528583527, 0.4541560709476471, 0.16530266404151917, 0.3619237542152405, 0.6448193192481995, -0.5389695763587952, 0.4360238015651703, 0.26920828223228455, -0.4911501109600067, 0.8749557733535767, -0.5699478387832642, -0.06313841044902802, -1.1374074220657349, 0.06394374370574951, 0.22940212488174438, -0.15276288986206055, -0.21916738152503967, 0.17714405059814453, 0.18335257470607758, -0.3095845878124237, -0.8308283686637878, 1.063073992729187, -0.2655852735042572, -0.07485070079565048, -0.09787209331989288, -0.27315396070480347, 0.6503423452377319, 0.25928422808647156, 0.14574463665485382, 0.8016871809959412, 0.6382750272750854, -0.6024644374847412, 0.9592160582542419, 0.07689089328050613, -0.14463602006435394, 0.7018746733665466, -0.7721222043037415, 0.19512487947940826, -0.08854470402002335, -0.04882834479212761, -1.1254383325576782, -0.25138142704963684, 0.4128623306751251, 0.010509085841476917, 0.39511004090309143, 0.04026724398136139, -0.3626437187194824, -0.7011295557022095, -0.39474260807037354, 0.6355968713760376, 0.7029651999473572, -0.7340830564498901, 0.5525881052017212, -0.04753643274307251, 0.09026721119880676, -0.5857685208320618, -0.7910981774330139, -0.036908555775880814, -0.17535413801670074, -0.45908233523368835, 0.22742119431495667, -0.6695947647094727, -0.4272376298904419, -0.253126859664917, -0.17944833636283875, -0.059399936348199844, -0.13207368552684784, 0.5996664762496948, 0.7699130773544312, -0.6585501432418823, -0.5973609685897827, -0.05146235227584839, -0.24455006420612335, 0.30241668224334717, -0.026386670768260956, 0.6920398473739624, -0.17547817528247833, -0.07397303730249405, -0.2566247880458832, 0.2577444314956665, 0.9667084813117981, 0.17574292421340942, 0.2389659285545349, 1.099550724029541, -0.4502459764480591, -0.09572744369506836, -0.6859184503555298, -0.24920369684696198, -0.5832799077033997, 0.559525191783905, -0.5894542932510376, -0.3038749694824219, 0.461264431476593, 0.04280119016766548, 0.02328100986778736, 0.5129824280738831, 0.3441505432128906, -0.18232004344463348, 1.351493000984192, 0.4402713179588318, 0.30708158016204834, 0.502575159072876, -0.4624856412410736, 0.11741379648447037, -1.3248578310012817, -0.300714373588562, -0.10182452201843262, 0.1573473960161209, -0.11739503592252731, -0.3280658721923828, 0.17988325655460358, 0.12212338298559189, -0.7883324027061462, 0.653849720954895, -0.5459756255149841, 0.41005292534828186, 0.23848870396614075, 0.08525427430868149, -0.08217637240886688, 0.3266187012195587, -0.24516178667545319, -0.06847520917654037, -0.6759053468704224, 0.06409810483455658, 0.6607953310012817, 0.11519595235586166, 1.1870522499084473, 0.12685222923755646, 0.6181122064590454, 0.28855228424072266, -0.0883670523762703, -0.36724135279655457, 0.6295279264450073, -0.3508496582508087, -0.3631080389022827, 0.04691563546657562, -0.10007726401090622, -0.3715818524360657, -0.08457382023334503, -0.3825518786907196, -0.4326365888118744, 0.5655655264854431, 0.21071872115135193, -0.8133069276809692, 0.8371398448944092, -0.8635469079017639, 0.9284573793411255, -0.18926534056663513, -0.9556825160980225, 0.13345518708229065, -0.10771142691373825, 0.3600133955478668, -0.050959762185811996, 0.017375227063894272, -0.20628498494625092, -0.040453601628541946, 0.6618685126304626, -0.3173600137233734, 0.6199808716773987, -0.06739036738872528, -0.3716551959514618, -0.1308714598417282, -0.3533087968826294, 0.5590940713882446, 0.31364333629608154, -0.22676141560077667, 0.062432870268821716, 0.35811060667037964, -0.5170571208000183, -0.8833521008491516, 0.9478535056114197, -1.2485367059707642, -0.46631643176078796, -0.7354694604873657, -0.5532731413841248, -0.2718423306941986, 0.14380668103694916, 0.5109540224075317, 0.4455896019935608, -0.16575193405151367, -0.24464766681194305, 1.0162911415100098, 0.09524630755186081, 0.7796539068222046, 0.22949498891830444, -0.6803319454193115, -0.9714434146881104, 1.0179568529129028, -0.11556857079267502, 0.4738568961620331, -0.11384981125593185, -0.10883466899394989, -0.5127894282341003, -0.5274885296821594, -0.8433955907821655, 0.250571608543396, -0.8522911071777344, -0.13786770403385162, -0.06100738048553467, -0.5942276120185852, -0.5636278986930847, -0.3775292634963989, -0.7132543921470642, -0.43361714482307434, -0.6681715846061707, 0.011046704836189747, 0.4859156012535095, 0.8281756043434143, -0.08978000283241272, 0.25634080171585083, -0.41554221510887146, 0.28779980540275574, 0.5283633470535278, 0.6452726721763611, 0.11086834222078323, -0.2714654505252838, -0.0967402532696724, -0.3178686201572418, -0.27285102009773254, -0.23679624497890472, 0.2872338891029358, -0.1839493364095688, 0.7977198362350464, 0.7097882032394409, 0.11919882893562317, 0.9606979489326477, -0.5780041813850403, 0.8161810636520386, 0.6255208253860474, -0.4887203276157379, 0.39974409341812134, -0.2044602334499359, 0.5432245135307312, 0.3306676149368286, 0.590816855430603, -0.5138651728630066, 0.09201784431934357, -1.0231380462646484, -0.9046305418014526, 0.468429833650589, 0.007754735182970762, 0.14850148558616638, 0.06202125549316406, 0.4186287522315979, -0.05709977075457573, -0.25004249811172485, -0.4685118496417999, -0.5121092796325684, -0.7000732421875, 0.11583150923252106, 0.023512698709964752, -0.4611668884754181, -0.410936176776886, -0.5197790265083313, 0.9653530120849609, -0.23507478833198547, 0.38739368319511414, 0.13469810783863068, 0.4796743392944336, -0.12839113175868988, 0.07192691415548325, 0.7195988297462463, 1.1116734743118286, -0.7647124528884888, 0.17368203401565552, 0.17350466549396515, -0.7788233160972595, -0.13187186419963837, 0.18838803470134735, 0.15781697630882263, 0.0846715196967125, -0.16504986584186554, 1.4250742197036743, 0.1886575073003769, -0.3555666506290436, 0.22590693831443787, -0.31603628396987915, -0.1689917892217636, -0.4756012260913849, 0.49317747354507446, -0.0849297046661377, 0.29755666851997375, 0.23339511454105377, 0.5658815503120422, -0.08503931015729904, -0.1747327744960785, 0.058564309030771255, 0.3426543176174164, -0.8012358546257019, -0.11556455492973328, 1.1380977630615234, 0.1103101596236229, 0.007777846418321133, 0.9360500574111938, -0.15016180276870728, 0.03802574798464775, 0.7720569372177124, 1.0690668821334839, 0.7920986413955688, -0.0810314193367958, 0.23625138401985168, 1.0963014364242554, -0.10070037841796875, -0.24924206733703613, 0.6696060299873352, -0.07501610368490219, -0.8014822602272034, -0.05742104724049568, -0.7845681309700012, -0.6861847639083862, -0.016559453681111336, -0.9769318699836731, 0.5918838381767273, -0.8953672647476196, -0.21427351236343384, 0.24264217913150787, -0.033311400562524796, -0.3134750425815582, 0.5318645238876343, 0.9774739146232605, 1.3643707036972046, -0.8183750510215759, 1.228136420249939, 0.8101009130477905, -0.5853756070137024, -0.37526920437812805, -0.7013106942176819, 0.08490259200334549, -1.1051355600357056, 0.44467413425445557, -0.25183507800102234, -0.041878171265125275, 0.4059411585330963, -0.37611159682273865, -0.7901598811149597, 1.2070648670196533, 0.3400101661682129, -0.6847118735313416, 0.10244651138782501, -0.01073029637336731, 0.11834178119897842, -0.3731856048107147, 0.43312376737594604, 0.41399142146110535, 0.5123604536056519, 0.7084596157073975, -0.5161646604537964, 0.2983033359050751, -0.6732494235038757, 0.4161943197250366, 0.09815594553947449, -0.7944339513778687, 1.098548173904419, -0.5875451564788818, 0.04280231520533562, 0.36021682620048523, 0.761275053024292, 0.5753697752952576, 0.05743390694260597, 0.681886613368988, 0.9291813969612122, 0.712084949016571, -0.46788927912712097, 1.326983094215393, -0.313426673412323, 0.29703274369239807, 0.9103174805641174, -0.5337442755699158, 0.7023769021034241, 0.33357033133506775, -0.395718514919281, 0.5604386925697327, 1.089627742767334, -0.45600807666778564, 0.28781160712242126, -0.12301122397184372, -0.44728776812553406, -0.2342003732919693, 0.25486186146736145, -0.9198459386825562, -0.3023354709148407, 0.38081422448158264, -0.10296192765235901, -0.20106711983680725, 0.27891725301742554, 0.5899104475975037, -0.47579875588417053, -0.8331714868545532, 0.6289203763008118, 0.12063179165124893, -0.47608211636543274, 0.9356247186660767, -0.33736488223075867, 0.5440341830253601, -1.1821571588516235, -0.36616426706314087, -0.5258389115333557, 0.6026661992073059, -0.6435834169387817, -1.1295745372772217, 0.30775681138038635, -0.6957691311836243, -0.4823421835899353, -0.05566859245300293, 0.40980803966522217, -0.03559624403715134, -0.920756459236145, 0.41377687454223633, -0.03009163588285446, 0.18959636986255646, -0.3013567328453064, -0.5774684548377991, 0.6989431977272034, 0.04412214085459709, 0.26691409945487976, 0.5220376253128052, -0.23766560852527618, -0.15309257805347443, 0.30976569652557373, 0.5825212597846985, 0.05900013446807861, 0.3116989731788635, 0.26498866081237793, 1.0263999700546265, -0.7568212151527405, -0.38215625286102295, -0.758398711681366, 0.1988624930381775, -0.4445437788963318, -0.39209428429603577, 1.0443860292434692, 1.2295156717300415, 0.7038043737411499, -0.2646740674972534, 0.8087322115898132, -0.010853294283151627, -0.3846796154975891, -0.36486467719078064, 0.7411816716194153, -0.813149094581604, 0.07576031982898712, -0.300590842962265, -1.1130574941635132, -0.37548765540122986, 0.37989333271980286, -0.3030555844306946, -0.14470554888248444, 0.6881693601608276, 0.6637226939201355, -0.25306493043899536, 0.3211364150047302, 0.4529748857021332, 0.21049728989601135, 0.16929888725280762, 0.4350036680698395, 0.3372800648212433, -0.6453809142112732, 0.29147085547447205, -0.373939573764801, -0.2639469504356384, 0.11476414650678635, -0.7625085115432739, -0.43083831667900085, -0.41881513595581055, -0.6688008904457092, -0.7694748044013977, 0.10707703977823257, 0.599302351474762, 1.0798321962356567, -0.9855738282203674, -0.5025560855865479, 0.27624812722206116, 0.07422181963920593, -0.41099750995635986, -0.2646086513996124, 0.5351805090904236, -0.4280532896518707, -1.0691512823104858, 0.08756735175848007, 0.44005829095840454, 0.25866127014160156, -0.20329348742961884, -0.32836151123046875, -0.27416202425956726, 0.13576190173625946, 0.7569461464881897, 0.7399488091468811, -0.4129199981689453, -0.06852941960096359, -0.4255148470401764, 0.049864720553159714, 0.775439441204071, 0.40677139163017273, -0.8083440065383911, 0.549238920211792, 0.56937175989151, 0.03536798804998398, 0.995116114616394, -0.28453749418258667, 0.48015260696411133, -0.5961649417877197, 0.1341758519411087, -0.046342767775058746, 0.7414815425872803, 0.30898380279541016, -0.1955185830593109, 0.7053453922271729, 0.5369866490364075, -0.1431887298822403, -0.623274028301239, -0.031117653474211693, -1.3687266111373901, -0.2895635664463043, 1.0421252250671387, 0.011860759928822517, -0.5910054445266724, 0.0980474203824997, -0.582263708114624, -0.24184338748455048, -0.3353273570537567, 0.2881826162338257, 0.42465609312057495, -0.3981712758541107, -0.3962087333202362, -0.7691630125045776, 0.5106373429298401, -0.10506069660186768, -0.8757885098457336, -0.06863980740308762, 0.3100677728652954, 0.2875005602836609, 0.5377740263938904, 0.3309134840965271, -0.4901733100414276, 0.43919017910957336, 0.1851019263267517, 0.5216726064682007, -0.21879038214683533, 0.09147647768259048, -0.07533405721187592, 0.2281821221113205, -0.24572442471981049, -0.2989307641983032 ]
jose-h-solorzano/audio-denoiser-512-32-v1
jose-h-solorzano
"2023-10-21T22:54:17Z"
13,097
0
transformers
[ "transformers", "pytorch", "endpoints_compatible", "region:us" ]
null
"2023-10-10T19:49:05Z"
This model is used by Python package [audio-denoiser](https://github.com/jose-solorzano/audio-denoiser).
[ -0.5046314001083374, -0.8086188435554504, 0.11422331631183624, 0.2945217490196228, -0.06819374859333038, -0.27408090233802795, 0.18272319436073303, -0.20723263919353485, 0.30068156123161316, 0.5101692080497742, -0.9614513516426086, -0.4340241551399231, -0.10648389160633087, -0.13813753426074982, -1.0458511114120483, 0.7308955788612366, 0.7680838108062744, 0.3917235732078552, 0.33138710260391235, 0.007254010532051325, -0.08819948136806488, -0.08660613000392914, -0.807373046875, -0.9793807864189148, 0.4102253317832947, -0.06376183032989502, 0.8402144312858582, 0.3180426061153412, 0.5479961633682251, 0.28216010332107544, -0.6557711362838745, -0.8119489550590515, 0.003496407065540552, -0.24583148956298828, 0.22723059356212616, -0.2901485860347748, -1.0573022365570068, -0.22029447555541992, 0.5872576832771301, 0.5387741327285767, -0.5419829487800598, 0.3543873131275177, -0.5402334928512573, 0.48836198449134827, -0.4791913628578186, 0.008963254280388355, -0.2347531020641327, 0.1002880334854126, 0.12369333207607269, 0.13674862682819366, 0.04844420403242111, 0.23411956429481506, -0.04832300543785095, -0.7062063813209534, 0.34386950731277466, -0.5025627017021179, 0.8894522786140442, 0.606266438961029, -0.31870558857917786, 0.10811962932348251, -0.8318921327590942, 0.5890498161315918, -0.8659911155700684, 0.5211750268936157, 0.5117318034172058, 0.5054956078529358, -0.19506080448627472, -0.9065890312194824, -0.5156170129776001, 0.021631885319948196, 0.15751414000988007, 0.15693312883377075, -0.2672007083892822, 0.5836858749389648, 0.4312900900840759, 0.487759530544281, -0.5721107125282288, -0.040100835263729095, -0.8557351231575012, -0.2383309304714203, 0.534152626991272, -0.021658357232809067, 0.4956474304199219, -0.2015131711959839, -0.1487315148115158, 0.26021596789360046, -0.49110645055770874, -0.144265815615654, 0.6745189428329468, -0.07064361870288849, -0.33210793137550354, 0.4707321226596832, -0.5854328870773315, 1.1700897216796875, -0.4365788400173187, -0.31972795724868774, 0.5021457672119141, 0.2548952102661133, -0.3504912257194519, 0.3626125752925873, 0.47600769996643066, 0.5032776594161987, 0.2036958932876587, 0.46454089879989624, -0.6219625473022461, 0.08547940850257874, 0.2801504135131836, -1.125519037246704, -1.0558964014053345, 0.4611245095729828, -0.7182732820510864, -0.4130842685699463, -0.3047478199005127, -0.6967414021492004, 0.12006442248821259, -0.21403828263282776, 0.6164267063140869, -0.17699329555034637, -0.6923993229866028, 0.35482046008110046, -0.4997519850730896, -0.2601415514945984, 0.15236946940422058, -0.9442692995071411, 0.5946393013000488, 0.5643121600151062, 0.9626944661140442, 0.34748706221580505, -0.13830144703388214, -0.38627058267593384, 0.016332237049937248, -0.184540793299675, 0.7160772085189819, -0.4045158326625824, -0.5096679925918579, -0.3155999183654785, 0.01603320799767971, 0.25967612862586975, -0.3532608151435852, 0.6482072472572327, -0.4412522315979004, 0.08133383095264435, 0.4095005989074707, -0.38966578245162964, -0.6255288124084473, -0.037572331726551056, -1.2069205045700073, 1.0792036056518555, 0.2235059291124344, -0.7087317705154419, 0.46542176604270935, -1.1854660511016846, -0.08291797339916229, 0.3784874975681305, 0.34290874004364014, -0.9701968431472778, -0.2693331837654114, 0.0225980244576931, 0.05904977396130562, 0.09310893714427948, 0.12745797634124756, -0.4657002389431, -0.8449899554252625, 0.11479222774505615, -0.47484463453292847, 1.1769030094146729, 0.711848258972168, 0.35631126165390015, 0.46461018919944763, -1.4289389848709106, -0.43171197175979614, -0.02688794955611229, -0.40263262391090393, -0.8537089228630066, -0.2016739398241043, 0.5315726399421692, -0.05326287820935249, 0.11822240054607391, -0.5385528802871704, 0.04015015810728073, -0.5919650197029114, 1.1183687448501587, 0.22399163246154785, 0.12313713133335114, 0.4992647171020508, -0.6149259805679321, 0.6635504364967346, -0.3573124408721924, 0.3441934585571289, -0.5144491195678711, -0.6901693344116211, -0.32440656423568726, -1.138853669166565, 0.3532395362854004, 0.38699179887771606, 0.022383619099855423, 0.271579384803772, 0.3440987169742584, -0.813641369342804, -0.4384535849094391, -0.0733390599489212, -0.02343468740582466, 0.34699976444244385, 0.29836058616638184, -0.04783666878938675, -0.7555239200592041, -0.6940178275108337, 0.01357145607471466, -0.10222562402486801, -0.48503512144088745, -0.14133192598819733, 0.5494101643562317, -0.5252566933631897, 1.0307079553604126, -0.4933585524559021, 0.33812496066093445, 0.03653577342629433, 0.2723802626132965, 0.9835308194160461, 0.9065197706222534, 0.7090238332748413, -0.8520189523696899, -0.14407536387443542, -0.49354085326194763, -0.24824738502502441, -0.5548420548439026, -0.05683378130197525, 0.10468073934316635, -0.35650724172592163, 0.22611895203590393, -0.9394450187683105, 0.5610988736152649, 0.6865506172180176, -0.22291329503059387, 0.8544784784317017, -0.2137715369462967, 0.08960659801959991, -1.1676207780838013, 0.1725408285856247, 0.2633056044578552, -0.46138864755630493, -0.8139253854751587, 0.003996546380221844, 0.22916536033153534, -0.22875289618968964, -0.4197022020816803, 0.33835336565971375, -0.5735222697257996, -0.0761091336607933, -0.0650935024023056, -0.36835747957229614, 0.15442714095115662, 0.26647624373435974, 0.2424701750278473, 0.9105404615402222, 0.7147440910339355, -0.5473781824111938, 0.688669741153717, 0.46776238083839417, -0.45498332381248474, 0.5478067398071289, -1.0810785293579102, 0.30741190910339355, 0.06869913637638092, -0.09941045939922333, -1.007158637046814, -0.23080340027809143, 0.32126301527023315, -0.2835460305213928, -0.20557494461536407, -0.8496034741401672, -0.44008541107177734, -0.6852635145187378, -0.5180791616439819, 0.6880606412887573, 0.3654720187187195, -0.7657171487808228, 0.4576512277126312, 0.7001159191131592, -0.4694893956184387, -0.29112324118614197, -0.6690558195114136, -0.155012845993042, -0.6337659955024719, -0.3752557337284088, 0.30498358607292175, -0.3831299841403961, -0.5330816507339478, -0.04380585998296738, -0.05922815203666687, -0.7882257699966431, 0.07757832109928131, 0.3198867440223694, 0.6523303389549255, -0.3194441497325897, 0.24606946110725403, 0.35578814148902893, 0.05121403932571411, 0.2974110245704651, -0.04328395798802376, 0.684486985206604, 0.11579640209674835, -0.09064918756484985, -0.8641544580459595, 0.3909692168235779, 0.6439576148986816, 0.11155543476343155, 0.31214937567710876, 0.5724246501922607, -0.49275073409080505, -0.4228935241699219, -0.4150657057762146, -0.2672167122364044, -0.5954731702804565, 0.5418686866760254, -0.44986051321029663, -0.3245552182197571, 0.7725504636764526, -0.1860053986310959, -0.4545256495475769, 0.3263477385044098, 0.4388940930366516, 0.0671684741973877, 0.9784774780273438, 0.3886181712150574, -0.10706637054681778, 0.7442439794540405, -0.6107091903686523, -0.1552002876996994, -0.7106295824050903, -0.16144151985645294, -0.5588603615760803, 0.1071091741323471, -0.20014576613903046, 0.09190239012241364, 0.21989567577838898, 0.23228654265403748, -0.6513622403144836, 0.7092073559761047, -0.8395788073539734, 0.6531782150268555, 1.2287553548812866, 0.20648403465747833, 0.4661027789115906, 0.08789506554603577, 0.16459167003631592, 0.12468955665826797, -0.5518159866333008, -0.25872546434402466, 0.9260832667350769, 0.3112792670726776, 1.2324244976043701, -0.23466065526008606, 0.5279844403266907, 0.5839682817459106, -0.3555060029029846, -0.9508115649223328, 0.3580000698566437, 0.22659775614738464, -0.9567514657974243, -0.37887871265411377, -0.18597792088985443, -1.137427568435669, 0.32314661145210266, -0.2033485472202301, -0.5010894536972046, 0.07254783064126968, 0.032574769109487534, -0.6077389717102051, 0.059375178068876266, -0.5888599157333374, 0.9955064654350281, 0.2386428862810135, 0.4326542317867279, -0.34385553002357483, -0.32934778928756714, 0.3464387059211731, 0.14120745658874512, 0.11323051154613495, -0.003807689296081662, 0.29012805223464966, 1.0124239921569824, -0.2227247655391693, 0.6469480395317078, -0.11594796180725098, -0.05686888098716736, 0.37307316064834595, 0.3878915309906006, 0.134384423494339, 0.37700238823890686, -0.012094935402274132, 0.573777973651886, 0.4849100112915039, -0.08773352950811386, 0.06630989164113998, 0.6472485065460205, -0.8088902235031128, 0.040248602628707886, -0.1774595081806183, -1.1199129819869995, 0.6073535680770874, 0.7546836733818054, 0.13647609949111938, 0.9028259515762329, -0.2897757887840271, -0.0826345831155777, 0.35647648572921753, -0.17796771228313446, 0.6329907178878784, 0.7173301577568054, -0.40355348587036133, -0.7574771046638489, 0.8914079666137695, 0.038050923496484756, 0.24640265107154846, 0.3344746232032776, 0.3732028305530548, -0.11386823654174805, -0.5325879454612732, 0.01328788697719574, 0.19780078530311584, -0.6338668465614319, -0.14904974400997162, -0.5294530987739563, -0.4853803217411041, -0.5036201477050781, 0.10958808660507202, -0.3436361849308014, -1.0161638259887695, -0.547071099281311, -0.08371974527835846, 0.4564460217952728, 0.6242319345474243, -0.23344066739082336, 0.8174516558647156, -0.6204048991203308, 0.9061808586120605, 0.48749399185180664, 0.2874067723751068, -0.641552746295929, -0.423653781414032, -0.14161600172519684, -0.0819842666387558, -0.18502798676490784, -0.6481627225875854, 0.9568914175033569, 0.06708292663097382, 1.0418288707733154, 0.3647632598876953, 0.12700548768043518, 0.4296390116214752, -0.201762393116951, 0.7357352375984192, 0.24201491475105286, -0.8061317205429077, 0.6340988874435425, -0.6805950403213501, 0.5807061195373535, 0.26905518770217896, 0.032990653067827225, -0.6208375096321106, -0.3980807960033417, -0.5128908753395081, -1.0447190999984741, 0.9037288427352905, 0.211629718542099, -0.23782047629356384, 0.385655015707016, 0.0943777859210968, 0.16608792543411255, 0.6297224760055542, -0.7413867712020874, -0.23521141707897186, -0.856460690498352, -0.4020015597343445, 0.12615898251533508, -0.5164011120796204, -0.30583855509757996, -0.4627094268798828, 0.6755996942520142, 0.17394337058067322, 0.39528125524520874, 0.16514085233211517, -0.3617289662361145, -0.13044576346874237, 0.0921645388007164, 0.6792488694190979, 0.21248240768909454, -0.7583921551704407, 0.08131185173988342, -0.05281361937522888, -0.56651771068573, -0.08818202465772629, 0.0031578063499182463, -0.45931610465049744, 0.2670741677284241, 0.2416689693927765, 0.744989812374115, 0.07347409427165985, -0.42611655592918396, 0.41717880964279175, 0.07191101461648941, -0.1424134075641632, -1.0011347532272339, 0.2921592593193054, 0.2261756956577301, 0.36955147981643677, 0.16621370613574982, 0.39689353108406067, 1.0510469675064087, -0.10199284553527832, 0.1303286999464035, 0.16851715743541718, -0.4494708478450775, -0.5306965112686157, 1.0120989084243774, 0.2952709197998047, -1.1207035779953003, 0.7374441027641296, 0.024416375905275345, -0.33203059434890747, 0.6801841259002686, 0.4783104360103607, 0.9173261523246765, -0.23769882321357727, 0.09689570963382721, 0.6607236862182617, 0.1299992948770523, -0.2871502935886383, 0.4650668203830719, -0.48914700746536255, -0.45349007844924927, -0.342224657535553, -0.6040806174278259, -0.7958386540412903, 0.35811033844947815, -0.8170990943908691, 0.523883044719696, -0.5007959604263306, -0.3687524199485779, 0.027356088161468506, -0.28070035576820374, -0.18902286887168884, 0.0664224773645401, 0.24137663841247559, 1.2516231536865234, -0.9019808769226074, 1.4071403741836548, 0.5386086702346802, -0.45762261748313904, -0.4055441915988922, -0.40184512734413147, 0.17304638028144836, -0.5762211084365845, 0.45395952463150024, 0.07965032756328583, -0.3702174723148346, 0.08173497021198273, -0.3986198306083679, -0.4314229488372803, 0.9720388650894165, 0.4794383943080902, -0.6634074449539185, 0.19779840111732483, -0.12275328487157822, 0.41446059942245483, -0.2577317953109741, 0.3913080096244812, 0.5849565863609314, 0.4569915235042572, 0.02563430927693844, -0.8806586265563965, -0.41689127683639526, -0.7384567856788635, 0.15847554802894592, -0.1636015623807907, -0.345777690410614, 1.2969337701797485, -0.01017829217016697, 0.36389073729515076, 0.5568099021911621, 0.19855698943138123, 0.28055864572525024, 0.38792043924331665, 0.693888783454895, 0.5021982789039612, 0.43635082244873047, 0.08848551660776138, 0.6711851954460144, -0.4748247265815735, 0.9052478075027466, 1.2073571681976318, 0.3228318393230438, 0.2967870235443115, 0.6106959581375122, -0.41743484139442444, 0.4278968870639801, 0.45538339018821716, -0.44217148423194885, 0.8367096185684204, 0.08049603551626205, -0.43492093682289124, -0.1552843302488327, 0.27669769525527954, -0.3535166084766388, 0.4098935127258301, 0.4323057234287262, -0.18544910848140717, -0.04017381742596626, -0.24149346351623535, -0.22539040446281433, -0.2499963939189911, -0.43580374121665955, 0.491632878780365, -0.07053601741790771, 0.0838136225938797, 0.8086267709732056, -0.24272027611732483, 0.8938556909561157, -0.5713040232658386, -0.5036633610725403, 0.003657132852822542, 0.2302602231502533, -0.191697895526886, -0.7407536506652832, 0.3609602153301239, -0.34897610545158386, -0.3496019244194031, 0.07946863025426865, 0.7645972967147827, -0.570937991142273, -0.7494422197341919, 0.641668438911438, -0.4171264171600342, 0.2524694800376892, -0.26168736815452576, -0.9116524457931519, 0.14428329467773438, -0.5108209848403931, -0.41237831115722656, -0.34595397114753723, -0.13096699118614197, 0.4304320216178894, 0.9665387868881226, 0.5757634043693542, 0.5918235182762146, 0.2484857141971588, 0.6650165319442749, 0.6009137630462646, -0.6189128160476685, -0.9731498956680298, -0.5389407277107239, 0.4936908185482025, -0.40852099657058716, -0.19348886609077454, 0.6369947195053101, 0.8201556205749512, 0.6843487620353699, -0.5435962677001953, 0.5118650197982788, 0.2818814218044281, 0.5514014363288879, -0.3526603579521179, 1.0455143451690674, -0.508111298084259, 0.3645239472389221, -0.6938637495040894, -0.7400463819503784, -0.6410207152366638, 1.0940463542938232, 0.27539071440696716, -0.12948134541511536, 0.3898840546607971, 1.5091520547866821, -0.25155872106552124, 0.07588595151901245, 0.6520199775695801, 0.26628178358078003, 0.15501394867897034, 0.09394238889217377, 1.0284006595611572, -0.5500590205192566, 0.5923708081245422, -0.714179515838623, -0.08697346597909927, -0.028112202882766724, -0.520736575126648, -1.1275957822799683, -0.6083230972290039, -0.4775104522705078, -0.24661529064178467, 0.295549213886261, 0.9392967224121094, 1.2998006343841553, -1.0947023630142212, -0.6156049370765686, -0.445323646068573, 0.17819544672966003, -0.5965968370437622, -0.12964072823524475, 0.02693072520196438, 0.21713443100452423, -0.9996358156204224, 0.6172797083854675, 0.10396300256252289, 0.051524817943573, -0.12777948379516602, -0.38314545154571533, -0.17247067391872406, 0.019177231937646866, 0.08963172882795334, 0.160856232047081, -0.5075928568840027, -0.1570412665605545, -0.586197018623352, 0.08293555676937103, 0.26631635427474976, 0.6186566948890686, -0.4631558358669281, 0.5249565839767456, 0.876735508441925, -0.40610748529434204, 0.8328798413276672, -0.11688943207263947, 0.29959720373153687, -0.22040104866027832, 0.7469221949577332, -0.10314588248729706, 0.7310560345649719, 0.36034688353538513, -0.28317832946777344, 0.5089471340179443, 0.5985178351402283, -0.5713667869567871, -0.9778998494148254, -0.3300109803676605, -1.35794997215271, -0.27110880613327026, 1.0399996042251587, 0.16127237677574158, -0.44618695974349976, -0.12946200370788574, -0.7458316683769226, 0.5040308833122253, -0.9373325109481812, 0.8735090494155884, 0.19206826388835907, 0.4519871771335602, -0.5994745492935181, -0.6166698336601257, 0.0785110667347908, -0.5662742853164673, -0.26461106538772583, -0.3791399896144867, 0.36571240425109863, 0.7714665532112122, 0.30532437562942505, 0.6582969427108765, -0.2027568370103836, 0.5007561445236206, 0.5561956167221069, 0.6124330759048462, -0.48852744698524475, -0.6351291537284851, -0.6999186277389526, 0.034439150243997574, -0.09405457973480225, -0.6381543278694153 ]
TheBloke/CodeLlama-7B-Instruct-GPTQ
TheBloke
"2023-09-27T12:46:05Z"
13,081
42
transformers
[ "transformers", "safetensors", "llama", "text-generation", "llama-2", "custom_code", "code", "arxiv:2308.12950", "base_model:codellama/CodeLlama-7b-instruct-hf", "license:llama2", "has_space", "text-generation-inference", "4-bit", "region:us" ]
text-generation
"2023-08-24T20:27:24Z"
--- language: - code license: llama2 tags: - llama-2 model_name: CodeLlama 7B Instruct base_model: codellama/CodeLlama-7b-instruct-hf inference: false model_creator: Meta model_type: llama pipeline_tag: text-generation prompt_template: '[INST] Write code to solve the following coding problem that obeys the constraints and passes the example test cases. Please wrap your code answer using ```: {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 --> # CodeLlama 7B Instruct - GPTQ - Model creator: [Meta](https://huggingface.co/meta-llama) - Original model: [CodeLlama 7B Instruct](https://huggingface.co/codellama/CodeLlama-7b-instruct-hf) <!-- description start --> ## Description This repo contains GPTQ model files for [Meta's CodeLlama 7B Instruct](https://huggingface.co/codellama/CodeLlama-7b-instruct-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/CodeLlama-7B-Instruct-AWQ) * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/CodeLlama-7B-Instruct-GPTQ) * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/CodeLlama-7B-Instruct-GGUF) * [Meta's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/codellama/CodeLlama-7b-instruct-hf) <!-- repositories-available end --> <!-- prompt-template start --> ## Prompt template: CodeLlama ``` [INST] Write code to solve the following coding problem that obeys the constraints and passes the example test cases. Please wrap your code answer using ```: {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/CodeLlama-7B-Instruct-GPTQ/tree/main) | 4 | 128 | No | 0.1 | [Evol Instruct Code](https://huggingface.co/datasets/nickrosh/Evol-Instruct-Code-80k-v1) | 8192 | 3.90 GB | Yes | 4-bit, without Act Order and group size 128g. | | [gptq-4bit-32g-actorder_True](https://huggingface.co/TheBloke/CodeLlama-7B-Instruct-GPTQ/tree/gptq-4bit-32g-actorder_True) | 4 | 32 | Yes | 0.1 | [Evol Instruct Code](https://huggingface.co/datasets/nickrosh/Evol-Instruct-Code-80k-v1) | 8192 | 4.28 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/CodeLlama-7B-Instruct-GPTQ/tree/gptq-4bit-64g-actorder_True) | 4 | 64 | Yes | 0.1 | [Evol Instruct Code](https://huggingface.co/datasets/nickrosh/Evol-Instruct-Code-80k-v1) | 8192 | 4.02 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/CodeLlama-7B-Instruct-GPTQ/tree/gptq-4bit-128g-actorder_True) | 4 | 128 | Yes | 0.1 | [Evol Instruct Code](https://huggingface.co/datasets/nickrosh/Evol-Instruct-Code-80k-v1) | 8192 | 3.90 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/CodeLlama-7B-Instruct-GPTQ/tree/gptq-8bit--1g-actorder_True) | 8 | None | Yes | 0.1 | [Evol Instruct Code](https://huggingface.co/datasets/nickrosh/Evol-Instruct-Code-80k-v1) | 8192 | 7.01 GB | No | 8-bit, with Act Order. No group size, to lower VRAM requirements. | | [gptq-8bit-128g-actorder_True](https://huggingface.co/TheBloke/CodeLlama-7B-Instruct-GPTQ/tree/gptq-8bit-128g-actorder_True) | 8 | 128 | Yes | 0.1 | [Evol Instruct Code](https://huggingface.co/datasets/nickrosh/Evol-Instruct-Code-80k-v1) | 8192 | 7.16 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/CodeLlama-7B-Instruct-GPTQ:main` - With Git, you can clone a branch with: ``` git clone --single-branch --branch main https://huggingface.co/TheBloke/CodeLlama-7B-Instruct-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/CodeLlama-7B-Instruct-GPTQ`. - To download from a specific branch, enter for example `TheBloke/CodeLlama-7B-Instruct-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: `CodeLlama-7B-Instruct-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/CodeLlama-7B-Instruct-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=True, revision="main") tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True) prompt = "Tell me about AI" prompt_template=f'''[INST] Write code to solve the following coding problem that obeys the constraints and passes the example test cases. Please wrap your code answer using ```: {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's CodeLlama 7B Instruct # **Code Llama** Code Llama is a collection of pretrained and fine-tuned generative text models ranging in scale from 7 billion to 34 billion parameters. This is the repository for the 7B instruct-tuned version in the Hugging Face Transformers format. This model is designed for general code synthesis and understanding. Links to other models can be found in the index at the bottom. | | Base Model | Python | Instruct | | --- | ----------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | | 7B | [codellama/CodeLlama-7b-hf](https://huggingface.co/codellama/CodeLlama-7b-hf) | [codellama/CodeLlama-7b-Python-hf](https://huggingface.co/codellama/CodeLlama-7b-Python-hf) | [codellama/CodeLlama-7b-Instruct-hf](https://huggingface.co/codellama/CodeLlama-7b-Instruct-hf) | | 13B | [codellama/CodeLlama-13b-hf](https://huggingface.co/codellama/CodeLlama-13b-hf) | [codellama/CodeLlama-13b-Python-hf](https://huggingface.co/codellama/CodeLlama-13b-Python-hf) | [codellama/CodeLlama-13b-Instruct-hf](https://huggingface.co/codellama/CodeLlama-13b-Instruct-hf) | | 34B | [codellama/CodeLlama-34b-hf](https://huggingface.co/codellama/CodeLlama-34b-hf) | [codellama/CodeLlama-34b-Python-hf](https://huggingface.co/codellama/CodeLlama-34b-Python-hf) | [codellama/CodeLlama-34b-Instruct-hf](https://huggingface.co/codellama/CodeLlama-34b-Instruct-hf) | ## Model Use To use this model, please make sure to install transformers from `main` until the next version is released: ```bash pip install git+https://github.com/huggingface/transformers.git@main accelerate ``` Model capabilities: - [x] Code completion. - [x] Infilling. - [x] Instructions / chat. - [ ] Python specialist. ## Model Details *Note: Use of this model is governed by the Meta license. Meta developed and publicly released the Code Llama family of large language models (LLMs). **Model Developers** Meta **Variations** Code Llama comes in three model sizes, and three variants: * Code Llama: base models designed for general code synthesis and understanding * Code Llama - Python: designed specifically for Python * Code Llama - Instruct: for instruction following and safer deployment All variants are available in sizes of 7B, 13B and 34B parameters. **This repository contains the Instruct version of the 7B parameters model.** **Input** Models input text only. **Output** Models generate text only. **Model Architecture** Code Llama is an auto-regressive language model that uses an optimized transformer architecture. **Model Dates** Code Llama and its variants have been trained between January 2023 and July 2023. **Status** This is a static model trained on an offline dataset. Future versions of Code Llama - Instruct will be released as we improve model safety with community feedback. **License** A custom commercial license is available at: [https://ai.meta.com/resources/models-and-libraries/llama-downloads/](https://ai.meta.com/resources/models-and-libraries/llama-downloads/) **Research Paper** More information can be found in the paper "[Code Llama: Open Foundation Models for Code](https://ai.meta.com/research/publications/code-llama-open-foundation-models-for-code/)" or its [arXiv page](https://arxiv.org/abs/2308.12950). ## Intended Use **Intended Use Cases** Code Llama and its variants is intended for commercial and research use in English and relevant programming languages. The base model Code Llama can be adapted for a variety of code synthesis and understanding tasks, Code Llama - Python is designed specifically to handle the Python programming language, and Code Llama - Instruct is intended to be safer to use for code assistant and generation applications. **Out-of-Scope Uses** Use in any manner that violates applicable laws or regulations (including trade compliance laws). Use in languages other than English. Use in any other way that is prohibited by the Acceptable Use Policy and Licensing Agreement for Code Llama and its variants. ## Hardware and Software **Training Factors** We used custom training libraries. The training and fine-tuning of the released models have been performed Meta’s Research Super Cluster. **Carbon Footprint** In aggregate, training all 9 Code Llama models required 400K GPU hours of computation on hardware of type A100-80GB (TDP of 350-400W). Estimated total emissions were 65.3 tCO2eq, 100% of which were offset by Meta’s sustainability program. ## Training Data All experiments reported here and the released models have been trained and fine-tuned using the same data as Llama 2 with different weights (see Section 2 and Table 1 in the [research paper](https://ai.meta.com/research/publications/code-llama-open-foundation-models-for-code/) for details). ## Evaluation Results See evaluations for the main models and detailed ablations in Section 3 and safety evaluations in Section 4 of the research paper. ## Ethical Considerations and Limitations Code Llama and its variants are a new technology that carries risks with use. Testing conducted to date has been in English, and has not covered, nor could it cover all scenarios. For these reasons, as with all LLMs, Code Llama’s potential outputs cannot be predicted in advance, and the model may in some instances produce inaccurate or objectionable responses to user prompts. Therefore, before deploying any applications of Code Llama, developers should perform safety testing and tuning tailored to their specific applications of the model. Please see the Responsible Use Guide available available at [https://ai.meta.com/llama/responsible-user-guide](https://ai.meta.com/llama/responsible-user-guide).
[ -0.4560750424861908, -0.7922562956809998, 0.1531696766614914, 0.12068907171487808, -0.3283042907714844, -0.12524323165416718, 0.02740068919956684, -0.466086745262146, 0.16060440242290497, 0.366159051656723, -0.5713762044906616, -0.5700133442878723, -0.32017573714256287, -0.041202645748853683, -0.2856545150279999, 1.0129945278167725, 0.11470849812030792, -0.2657046914100647, -0.10958361625671387, -0.23550324141979218, -0.19998589158058167, -0.4749107360839844, -0.658689022064209, -0.1916225701570511, 0.2611875534057617, 0.15015415847301483, 0.8201727867126465, 0.5227543711662292, 0.17755438387393951, 0.34428998827934265, -0.08961673825979233, -0.06531744450330734, -0.5403047204017639, -0.12864533066749573, 0.19666719436645508, -0.266131192445755, -0.697834312915802, 0.0591864287853241, 0.463634729385376, 0.11925222724676132, -0.42923423647880554, 0.29790982604026794, 0.0813789814710617, 0.6719782948493958, -0.44265708327293396, 0.26033520698547363, -0.3772781193256378, 0.004961847327649593, -0.09659174084663391, 0.15852025151252747, -0.06789696961641312, -0.5283617973327637, 0.11187200993299484, -0.8171119093894958, 0.19782035052776337, -0.03612682223320007, 1.226993441581726, 0.1234751045703888, -0.5409770011901855, 0.07459530979394913, -0.4166330397129059, 0.6466174125671387, -0.9108552932739258, 0.2430831342935562, 0.43109455704689026, 0.2035236954689026, -0.15047059953212738, -0.851317286491394, -0.5665687322616577, -0.054635997861623764, -0.13956046104431152, 0.28777819871902466, -0.4314277470111847, 0.1242685616016388, 0.508906900882721, 0.7576643824577332, -0.9155165553092957, -0.24287007749080658, -0.24350109696388245, -0.10207445919513702, 0.868171751499176, 0.1809350848197937, 0.3747832477092743, -0.29375970363616943, -0.309413880109787, -0.4035782217979431, -0.6997727751731873, 0.1131887286901474, 0.3441885709762573, 0.022616706788539886, -0.5865293145179749, 0.34822165966033936, -0.30608466267585754, 0.5259202718734741, 0.21812905371189117, -0.1245972290635109, 0.4297362267971039, -0.5897276401519775, -0.5168865323066711, -0.37127965688705444, 1.1862343549728394, 0.31784406304359436, -0.16211000084877014, 0.2475113570690155, -0.07620161026716232, -0.11014936864376068, 0.05963655933737755, -1.0574455261230469, -0.4560084640979767, 0.4982520341873169, -0.45966246724128723, -0.19893330335617065, -0.04941653832793236, -0.7853019833564758, 0.0063156625255942345, -0.06614957004785538, 0.5336864590644836, -0.59347003698349, -0.39305463433265686, 0.12275297194719315, -0.3178305923938751, 0.5407922267913818, 0.3027489483356476, -0.6796628832817078, 0.41620200872421265, 0.3276539742946625, 0.6639609932899475, 0.23931348323822021, -0.05234527960419655, -0.27944982051849365, -0.014668967574834824, -0.05905545875430107, 0.34421849250793457, -0.1773325502872467, -0.4468139410018921, -0.21992963552474976, 0.29560109972953796, -0.061214517802000046, -0.28006502985954285, 0.5850249528884888, -0.28304046392440796, 0.42979857325553894, -0.4225616753101349, -0.5378804802894592, -0.418841689825058, 0.07980940490961075, -0.5437912940979004, 1.1537537574768066, 0.580926775932312, -0.7810553908348083, 0.16035261750221252, -0.5342737436294556, -0.1351218968629837, 0.1311918944120407, -0.05889686569571495, -0.675118625164032, -0.15423551201820374, 0.23537768423557281, 0.31673821806907654, -0.3498396575450897, 0.11905130743980408, -0.2681555151939392, -0.28634148836135864, 0.11862551420927048, -0.34995561838150024, 1.2485125064849854, 0.24844466149806976, -0.4594009518623352, 0.05578259006142616, -0.6966739892959595, 0.2477162480354309, 0.5359635949134827, -0.20929798483848572, -0.032471612095832825, -0.2588631808757782, 0.09166174381971359, 0.06014677882194519, 0.1949017345905304, -0.2817080616950989, 0.4990667998790741, -0.18027442693710327, 0.7286607027053833, 0.5394785404205322, 0.08902791142463684, 0.28782814741134644, -0.44677355885505676, 0.6383100748062134, -0.01889064721763134, 0.5545107126235962, 0.08089221268892288, -0.71497642993927, -0.6058747172355652, -0.29185763001441956, 0.5192956328392029, 0.589916467666626, -0.7680543661117554, 0.49709945917129517, -0.15067517757415771, -0.7114349603652954, -0.36954230070114136, -0.15897464752197266, 0.3801039159297943, 0.376757949590683, 0.4677497148513794, -0.4190698564052582, -0.34834447503089905, -0.7793420553207397, 0.11660648882389069, -0.3799225091934204, -0.056094951927661896, 0.45567283034324646, 0.7653471231460571, -0.24190247058868408, 0.6495495438575745, -0.6565086245536804, -0.10600472241640091, -0.055208854377269745, 0.03726160153746605, 0.3536309003829956, 0.6707584857940674, 0.8162559866905212, -0.705254316329956, -0.5624452829360962, -0.17245198786258698, -0.6704471111297607, -0.03208393603563309, -0.04208984598517418, -0.45476359128952026, 0.20664367079734802, -0.004807888530194759, -1.0442055463790894, 0.6427078247070312, 0.47653642296791077, -0.5336946249008179, 0.7684018611907959, -0.2121874839067459, 0.21775679290294647, -1.09036386013031, 0.050017450004816055, 0.2123004049062729, -0.32765907049179077, -0.48547619581222534, 0.29066577553749084, -0.011500215157866478, 0.13800448179244995, -0.34263402223587036, 0.49725016951560974, -0.5655586123466492, 0.051572732627391815, 0.17231673002243042, -0.04137568175792694, 0.25254616141319275, 0.5735464692115784, -0.23694300651550293, 0.8183245062828064, 0.5289608240127563, -0.47104233503341675, 0.5247876644134521, 0.48165473341941833, -0.06530306488275528, 0.3179388642311096, -0.8414254784584045, 0.24458302557468414, 0.16123226284980774, 0.34715041518211365, -0.9000051021575928, -0.2800593972206116, 0.6144223213195801, -0.581379234790802, 0.4934486746788025, -0.5186102390289307, -0.35866862535476685, -0.43976983428001404, -0.5586795210838318, 0.37683895230293274, 0.9216409921646118, -0.32656821608543396, 0.47973036766052246, 0.4510713517665863, 0.056787870824337006, -0.5717498660087585, -0.6466391682624817, -0.24135088920593262, -0.36872735619544983, -0.6517122983932495, 0.511455237865448, -0.11690251529216766, -0.01235236320644617, 0.03864536061882973, 0.04697047919034958, -0.11453032493591309, -0.08465362340211868, 0.2936002016067505, 0.31264230608940125, -0.24293863773345947, -0.15489859879016876, 0.11372892558574677, 0.05580996721982956, 0.01476799976080656, -0.36814337968826294, 0.4117411971092224, -0.32565218210220337, -0.03333871066570282, -0.38300439715385437, 0.2182954102754593, 0.4332137107849121, -0.005790312308818102, 0.669849693775177, 0.7717751860618591, -0.3566681146621704, 0.07811160385608673, -0.386242538690567, -0.10726632177829742, -0.5010983943939209, 0.1701195389032364, -0.22444981336593628, -0.7033501863479614, 0.5571784377098083, 0.37006115913391113, 0.05514382943511009, 0.7786784768104553, 0.4452403783798218, 0.0648069828748703, 0.8733169436454773, 0.3437580168247223, -0.18972624838352203, 0.4536581039428711, -0.6485247015953064, -0.19556401669979095, -0.8304101228713989, -0.11314862221479416, -0.4080847501754761, -0.1344655454158783, -0.8515592813491821, -0.4946816861629486, 0.3895573616027832, 0.2968086898326874, -0.7998835444450378, 0.5743253231048584, -0.7828554511070251, 0.18943646550178528, 0.6673233509063721, 0.31705111265182495, 0.21590614318847656, 0.04186471924185753, -0.1256444752216339, 0.10871478170156479, -0.6521081328392029, -0.2679370641708374, 1.059769868850708, 0.3535180985927582, 0.6078299880027771, 0.2084559202194214, 0.5942775011062622, 0.09181922674179077, 0.20780879259109497, -0.5138269662857056, 0.5530924201011658, 0.09527280181646347, -0.5540689826011658, -0.35306015610694885, -0.7216523289680481, -0.9733201861381531, 0.25901398062705994, -0.12138308584690094, -0.7791340947151184, 0.3254467844963074, 0.13766857981681824, -0.4204857051372528, 0.20926092565059662, -0.7365046739578247, 1.0479706525802612, -0.08682486414909363, -0.46869906783103943, 0.02164572663605213, -0.6706110239028931, 0.3834719955921173, 0.31307467818260193, -0.019950196146965027, -0.13314054906368256, -0.018965814262628555, 0.717650830745697, -0.8634645342826843, 0.6677765250205994, -0.3065188229084015, -0.017126554623246193, 0.6277967691421509, -0.07916731387376785, 0.6008347272872925, 0.2289341688156128, 0.10236912965774536, 0.33674144744873047, 0.35998159646987915, -0.4943081736564636, -0.37164461612701416, 0.49070993065834045, -0.8992680311203003, -0.5582508444786072, -0.5099331736564636, -0.3578171730041504, -0.0024330669548362494, 0.02207709103822708, 0.4755633473396301, 0.4275762438774109, -0.029779590666294098, 0.045786768198013306, 0.6911547183990479, -0.3806069493293762, 0.42201054096221924, 0.24746659398078918, -0.31239956617355347, -0.6319537162780762, 0.872761070728302, 0.02961410954594612, 0.20053747296333313, 0.19429677724838257, 0.1364411562681198, -0.4729597866535187, -0.5541160702705383, -0.7320291996002197, 0.3162410855293274, -0.4708791971206665, -0.4461899399757385, -0.5347388386726379, -0.39657312631607056, -0.3793099820613861, 0.2969692349433899, -0.33493611216545105, -0.6073221564292908, -0.41509440541267395, 0.06087986379861832, 0.8865231871604919, 0.44301462173461914, -0.10206447541713715, 0.2873621881008148, -0.9090797305107117, 0.2452487051486969, 0.4384855329990387, 0.19551943242549896, -0.027938714250922203, -0.7315905690193176, -0.11574215441942215, 0.20193617045879364, -0.6032459735870361, -0.9741092324256897, 0.6963091492652893, 0.1735006868839264, 0.37872838973999023, 0.30671820044517517, 0.1343752145767212, 0.7743731737136841, -0.21617034077644348, 0.9601510763168335, 0.12164810299873352, -0.9895747900009155, 0.5040625333786011, -0.603326678276062, 0.2774950861930847, 0.4094589650630951, 0.5133031606674194, -0.31049007177352905, -0.23277513682842255, -0.7931268215179443, -0.831825852394104, 0.4540305733680725, 0.5404089689254761, -0.044130533933639526, 0.24811021983623505, 0.5704838633537292, -0.08848460763692856, 0.22436226904392242, -0.8480566143989563, -0.5745668411254883, -0.3491792678833008, -0.16431839764118195, 0.21259185671806335, -0.07634502649307251, -0.26697343587875366, -0.6522287726402283, 0.9268383383750916, -0.2089056521654129, 0.8000081181526184, 0.33439794182777405, 0.09566257894039154, -0.09595999866724014, 0.16937510669231415, 0.3849691152572632, 0.6054099798202515, -0.21660515666007996, -0.3050987124443054, 0.09730098396539688, -0.7955765724182129, 0.10234483331441879, 0.4228028953075409, -0.2482803761959076, -0.20648309588432312, 0.050648145377635956, 0.7511638402938843, -0.14133784174919128, -0.28946226835250854, 0.445394366979599, -0.3223555386066437, -0.41257768869400024, -0.31368473172187805, 0.23709020018577576, 0.27017825841903687, 0.4119795560836792, 0.3288145065307617, -0.26781678199768066, 0.29337936639785767, -0.5097419619560242, 0.13141021132469177, 0.505011260509491, -0.21784304082393646, -0.3617960512638092, 0.8266938328742981, -0.023705841973423958, 0.09041544795036316, 0.799366295337677, -0.4658966362476349, -0.5335328578948975, 0.8349910974502563, 0.4130166471004486, 0.7953649759292603, -0.17571210861206055, 0.31435173749923706, 0.6285920739173889, 0.17006318271160126, -0.042743898928165436, 0.49296140670776367, 0.06490559875965118, -0.5931084156036377, -0.3531860113143921, -0.5738526582717896, -0.34534263610839844, 0.3118553161621094, -0.764365553855896, 0.12299677729606628, -0.3991156816482544, -0.34037965536117554, -0.21629692614078522, 0.29322126507759094, -0.5791954398155212, 0.23047354817390442, 0.03898191452026367, 0.7911688089370728, -0.6075212359428406, 0.8515582084655762, 0.5422201752662659, -0.4993293285369873, -0.9757488965988159, -0.12661424279212952, 0.0662478432059288, -0.6087214946746826, 0.1131492331624031, -0.0576738603413105, 0.382568359375, 0.04536992311477661, -0.7555109858512878, -0.8640815615653992, 1.4132193326950073, 0.3371116518974304, -0.6012417078018188, -0.09670393913984299, -0.027864612638950348, 0.3840039074420929, -0.17278069257736206, 0.661202609539032, 0.5623050332069397, 0.3292045295238495, 0.1979389488697052, -0.8990473747253418, 0.49377214908599854, -0.37303733825683594, 0.022140495479106903, 0.26168757677078247, -1.0534011125564575, 0.9688822031021118, -0.04730375483632088, -0.1426086574792862, 0.18134261667728424, 0.6098692417144775, 0.41700008511543274, 0.04372658580541611, 0.3742939531803131, 0.8199611902236938, 0.8030965328216553, -0.40865740180015564, 1.122537612915039, -0.2646756172180176, 0.7371139526367188, 0.8116433024406433, 0.07090538740158081, 0.6360794901847839, 0.10971751064062119, -0.7690228819847107, 0.5609084367752075, 0.9369716048240662, -0.16896572709083557, 0.32004332542419434, 0.23388220369815826, -0.3038574755191803, -0.1033959612250328, 0.19569328427314758, -0.7785687446594238, 0.11173812299966812, 0.4204772710800171, -0.21889165043830872, 0.1428682804107666, -0.28960534930229187, 0.014474011026322842, -0.5718332529067993, -0.18458043038845062, 0.496656596660614, 0.26456379890441895, -0.2485167682170868, 0.9599077105522156, -0.1205253079533577, 0.587642252445221, -0.5299453139305115, -0.19520914554595947, -0.32798054814338684, -0.055692583322525024, -0.2733137309551239, -0.684647262096405, 0.1546712964773178, -0.27999889850616455, -0.03270190581679344, 0.006242459639906883, 0.6876543760299683, -0.2802320420742035, -0.3591429591178894, 0.22386066615581512, 0.5163091421127319, 0.24600481986999512, -0.22657689452171326, -1.1558016538619995, 0.12561845779418945, 0.07362988591194153, -0.6026213765144348, 0.4833492338657379, 0.4212276339530945, 0.24300524592399597, 0.6360964775085449, 0.46613234281539917, -0.18326377868652344, 0.018976185470819473, -0.15511871874332428, 0.932944118976593, -0.8225462436676025, -0.2815713882446289, -0.7551497220993042, 0.5940477252006531, -0.1296909600496292, -0.4495749771595001, 0.7493007183074951, 0.5784071683883667, 0.7495176792144775, -0.041701022535562515, 0.706497848033905, -0.4072347581386566, 0.177490234375, -0.422463059425354, 0.7327122688293457, -0.6785098910331726, 0.12927274405956268, -0.41673094034194946, -0.7435011863708496, -0.05188785865902901, 0.6985653638839722, -0.06697569787502289, 0.3220981955528259, 0.5172280669212341, 0.8214345574378967, 0.06128355860710144, 0.18249668180942535, 0.19642120599746704, 0.4171954095363617, 0.10087909549474716, 0.9510452151298523, 0.7380186915397644, -1.0368658304214478, 0.5104284882545471, -0.36730512976646423, -0.18444781005382538, -0.008392577059566975, -0.7743678092956543, -0.7342686653137207, -0.4869915544986725, -0.7100546956062317, -0.7636003494262695, 0.01803497038781643, 0.9215054512023926, 0.7870053052902222, -0.6586567759513855, -0.25312501192092896, -0.149453803896904, 0.1314373016357422, -0.28029242157936096, -0.3246632516384125, 0.3802327513694763, 0.2493092268705368, -0.7549223899841309, 0.08271629363298416, -0.017627684399485588, 0.3551665246486664, -0.06978760659694672, -0.2752208113670349, -0.24373821914196014, -0.06944200396537781, 0.5268592834472656, 0.5227240920066833, -0.49692755937576294, -0.1230209469795227, -0.15586699545383453, -0.060908783227205276, 0.3693452477455139, 0.31248751282691956, -0.7196186780929565, -0.0435042567551136, 0.5109426975250244, 0.199955016374588, 0.8208284974098206, 0.09921921789646149, 0.4012563228607178, -0.4381515085697174, 0.03122509829699993, 0.14639252424240112, 0.3899427354335785, 0.04866807907819748, -0.5866774916648865, 0.7385861277580261, 0.41420498490333557, -0.7855878472328186, -0.6720335483551025, -0.13799408078193665, -1.1764976978302002, -0.16125254333019257, 1.1531909704208374, -0.2339412122964859, -0.4106534719467163, 0.008664683438837528, -0.2256762832403183, 0.30498838424682617, -0.6375148892402649, 0.3473089337348938, 0.3615688979625702, -0.23560115694999695, -0.3532324731349945, -0.7482628226280212, 0.6436266303062439, 0.22922450304031372, -0.8748168349266052, -0.03836774080991745, 0.5166627168655396, 0.4137340486049652, -0.02209663577377796, 0.8316673636436462, -0.20536310970783234, 0.30298906564712524, 0.13472138345241547, 0.13654354214668274, 0.06238632649183273, 0.17774374783039093, -0.4103972613811493, 0.04989857226610184, -0.2444809377193451, -0.09709902107715607 ]
MBZUAI/LaMini-T5-738M
MBZUAI
"2023-04-28T12:07:40Z"
13,070
26
transformers
[ "transformers", "pytorch", "t5", "text2text-generation", "generated_from_trainer", "instruction fine-tuning", "en", "arxiv:2304.14402", "license:cc-by-nc-4.0", "autotrain_compatible", "endpoints_compatible", "has_space", "text-generation-inference", "region:us" ]
text2text-generation
"2023-04-17T05:35:04Z"
--- license: cc-by-nc-4.0 tags: - generated_from_trainer - instruction fine-tuning model-index: - name: flan-t5-small-distil-v2 results: [] language: - en pipeline_tag: text2text-generation widget: - text: >- how can I become more healthy? example_title: example --- <!-- 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. --> <p align="center" width="100%"> <a><img src="https://raw.githubusercontent.com/mbzuai-nlp/lamini-lm/main/images/lamini.png" alt="Title" style="width: 100%; min-width: 300px; display: block; margin: auto;"></a> </p> # LaMini-T5-738M [![Model License](https://img.shields.io/badge/Model%20License-CC%20By%20NC%204.0-red.svg)]() This model is one of our LaMini-LM model series in paper "[LaMini-LM: A Diverse Herd of Distilled Models from Large-Scale Instructions](https://github.com/mbzuai-nlp/lamini-lm)". This model is a fine-tuned version of [t5-large](https://huggingface.co/t5-large) on [LaMini-instruction dataset](https://huggingface.co/datasets/MBZUAI/LaMini-instruction) that contains 2.58M samples for instruction fine-tuning. For more information about our dataset, please refer to our [project repository](https://github.com/mbzuai-nlp/lamini-lm/). You can view other models of LaMini-LM series as follows. Models with ✩ are those with the best overall performance given their size/architecture, hence we recommend using them. More details can be seen in our paper. <table> <thead> <tr> <th>Base model</th> <th colspan="4">LaMini-LM series (#parameters)</th> </tr> </thead> <tbody> <tr> <td>T5</td> <td><a href="https://huggingface.co/MBZUAI/lamini-t5-61m" target="_blank" rel="noopener noreferrer">LaMini-T5-61M</a></td> <td><a href="https://huggingface.co/MBZUAI/lamini-t5-223m" target="_blank" rel="noopener noreferrer">LaMini-T5-223M</a></td> <td><a href="https://huggingface.co/MBZUAI/lamini-t5-738m" target="_blank" rel="noopener noreferrer">LaMini-T5-738M</a></td> <td></td> </tr> <tr> <td>Flan-T5</td> <td><a href="https://huggingface.co/MBZUAI/lamini-flan-t5-77m" target="_blank" rel="noopener noreferrer">LaMini-Flan-T5-77M</a>✩</td> <td><a href="https://huggingface.co/MBZUAI/lamini-flan-t5-248m" target="_blank" rel="noopener noreferrer">LaMini-Flan-T5-248M</a>✩</td> <td><a href="https://huggingface.co/MBZUAI/lamini-flan-t5-783m" target="_blank" rel="noopener noreferrer">LaMini-Flan-T5-783M</a>✩</td> <td></td> </tr> <tr> <td>Cerebras-GPT</td> <td><a href="https://huggingface.co/MBZUAI/lamini-cerebras-111m" target="_blank" rel="noopener noreferrer">LaMini-Cerebras-111M</a></td> <td><a href="https://huggingface.co/MBZUAI/lamini-cerebras-256m" target="_blank" rel="noopener noreferrer">LaMini-Cerebras-256M</a></td> <td><a href="https://huggingface.co/MBZUAI/lamini-cerebras-590m" target="_blank" rel="noopener noreferrer">LaMini-Cerebras-590M</a></td> <td><a href="https://huggingface.co/MBZUAI/lamini-cerebras-1.3b" target="_blank" rel="noopener noreferrer">LaMini-Cerebras-1.3B</a></td> </tr> <tr> <td>GPT-2</td> <td><a href="https://huggingface.co/MBZUAI/lamini-gpt-124m" target="_blank" rel="noopener noreferrer">LaMini-GPT-124M</a>✩</td> <td><a href="https://huggingface.co/MBZUAI/lamini-gpt-774m" target="_blank" rel="noopener noreferrer">LaMini-GPT-774M</a>✩</td> <td><a href="https://huggingface.co/MBZUAI/lamini-gpt-1.5b" target="_blank" rel="noopener noreferrer">LaMini-GPT-1.5B</a>✩</td> <td></td> </tr> <tr> <td>GPT-Neo</td> <td><a href="https://huggingface.co/MBZUAI/lamini-neo-125m" target="_blank" rel="noopener noreferrer">LaMini-Neo-125M</a></td> <td><a href="https://huggingface.co/MBZUAI/lamini-neo-1.3b" target="_blank" rel="noopener noreferrer">LaMini-Neo-1.3B</a></td> <td></td> <td></td> </tr> <tr> <td>GPT-J</td> <td colspan="4">coming soon</td> </tr> <tr> <td>LLaMA</td> <td colspan="4">coming soon</td> </tr> </tbody> </table> ## Use ### Intended use We recommend using the model to response to human instructions written in natural language. We now show you how to load and use our model using HuggingFace `pipeline()`. ```python # pip install -q transformers from transformers import pipeline checkpoint = "{model_name}" model = pipeline('text2text-generation', model = checkpoint) input_prompt = 'Please let me know your thoughts on the given place and why you think it deserves to be visited: \n"Barcelona, Spain"' generated_text = model(input_prompt, max_length=512, do_sample=True)[0]['generated_text'] print("Response", generated_text) ``` ## Training Procedure <p align="center" width="100%"> <a><img src="https://raw.githubusercontent.com/mbzuai-nlp/lamini-lm/main/images/lamini-pipeline.drawio.png" alt="Title" style="width: 100%; min-width: 250px; display: block; margin: auto;"></a> </p> We initialize with [t5-large](https://huggingface.co/t5-large) and fine-tune it on our [LaMini-instruction dataset](https://huggingface.co/datasets/MBZUAI/LaMini-instruction). Its total number of parameters is 738M. ### Training Hyperparameters The following hyperparameters were used during training: - learning_rate: 0.0005 - train_batch_size: 128 - eval_batch_size: 64 - seed: 42 - gradient_accumulation_steps: 4 - total_train_batch_size: 512 - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08 - lr_scheduler_type: linear - num_epochs: 5 ## Evaluation We conducted two sets of evaluations: automatic evaluation on downstream NLP tasks and human evaluation on user-oriented instructions. For more detail, please refer to our [paper](). ## Limitations More information needed # Citation ```bibtex @article{lamini-lm, author = {Minghao Wu and Abdul Waheed and Chiyu Zhang and Muhammad Abdul-Mageed and Alham Fikri Aji }, title = {LaMini-LM: A Diverse Herd of Distilled Models from Large-Scale Instructions}, journal = {CoRR}, volume = {abs/2304.14402}, year = {2023}, url = {https://arxiv.org/abs/2304.14402}, eprinttype = {arXiv}, eprint = {2304.14402} } ```
[ -0.6526849269866943, -0.6739131212234497, 0.2044079452753067, 0.27306926250457764, -0.26856446266174316, -0.39601317048072815, -0.1347561627626419, -0.6487870216369629, 0.276846706867218, 0.27434974908828735, -0.8324940800666809, -0.4713534116744995, -0.5568431615829468, 0.06412705779075623, -0.015319423750042915, 0.8761034607887268, -0.24333499372005463, -0.06102210283279419, 0.056386593729257584, -0.20216389000415802, -0.2701902985572815, -0.3819257616996765, -0.8278810381889343, -0.4693596363067627, 0.2539607286453247, 0.0545128770172596, 0.7108733654022217, 0.8606413006782532, 0.38627880811691284, 0.39507079124450684, -0.20063796639442444, 0.2766537368297577, -0.11063884943723679, -0.19269509613513947, 0.07484312355518341, -0.42319121956825256, -0.9590269923210144, 0.11827927827835083, 0.739723265171051, 0.29705774784088135, 0.23359599709510803, 0.43218326568603516, 0.21387703716754913, 0.773078441619873, -0.37267744541168213, 0.20617727935314178, 0.010793839581310749, 0.10746753960847855, -0.2506924867630005, -0.03236787021160126, -0.2211141735315323, -0.5092904567718506, 0.049835242331027985, -0.6045966148376465, -0.10828661918640137, 0.16939325630664825, 1.5040960311889648, 0.16900554299354553, -0.09530500322580338, -0.13559278845787048, -0.36998820304870605, 1.0050431489944458, -0.8451297879219055, 0.16979683935642242, 0.5821354985237122, -0.055959489196538925, 0.0591820664703846, -0.43349847197532654, -0.6938087344169617, -0.039989691227674484, -0.5323500037193298, 0.2923666834831238, -0.2857869863510132, -0.3228145241737366, 0.6744704842567444, 0.15481126308441162, -0.4483923017978668, 0.033721815794706345, -0.46268779039382935, -0.05978907272219658, 0.7100658416748047, 0.18657714128494263, 0.7101934552192688, -0.26117143034935, -0.413041889667511, -0.18772892653942108, -0.34224122762680054, 0.3307226598262787, 0.36198726296424866, 0.302852600812912, -0.826249361038208, 0.32384976744651794, -0.021136818453669548, 0.931361198425293, 0.32945504784584045, -0.34849393367767334, 0.6474872827529907, -0.1883813738822937, -0.3956034779548645, -0.2321896255016327, 1.0919601917266846, 0.6805062294006348, 0.2792236804962158, 0.017854470759630203, -0.04634379222989082, -0.31403884291648865, 0.07390768080949783, -1.0241252183914185, 0.02214573696255684, 0.3599051237106323, -0.5609095096588135, -0.4738337993621826, 0.0796671211719513, -0.8553892374038696, -0.006917455233633518, -0.4405151605606079, 0.19744274020195007, -0.552899956703186, -0.21954181790351868, 0.15643341839313507, -0.03228034824132919, 0.3891545534133911, 0.27414968609809875, -0.8075717091560364, 0.09210444986820221, 0.3994128108024597, 0.7589741945266724, 0.012231612578034401, -0.28259798884391785, -0.3482903242111206, 0.22685493528842926, 0.07568391412496567, 0.6604546904563904, -0.2613072991371155, -0.35108301043510437, -0.18212054669857025, 0.3754684031009674, -0.39118918776512146, -0.3324354588985443, 0.9229620695114136, -0.07958667725324631, 0.38096094131469727, -0.48340243101119995, -0.3969573378562927, -0.10010847449302673, 0.1534024327993393, -0.7209999561309814, 1.0231873989105225, 0.09430518746376038, -1.0921937227249146, 0.07325489073991776, -0.8219558596611023, -0.2269504964351654, -0.2794727683067322, 0.21968984603881836, -0.7012931108474731, -0.23418794572353363, 0.2605045437812805, 0.4974417984485626, -0.32305821776390076, -0.2707425653934479, -0.41742968559265137, -0.23577460646629333, 0.4345877766609192, -0.11771365255117416, 1.0466678142547607, 0.13363248109817505, -0.6527111530303955, -0.14284415543079376, -0.8969078660011292, 0.2279588282108307, 0.30683043599128723, -0.310771644115448, -0.11040983349084854, -0.31714606285095215, 0.14949066936969757, 0.5242041349411011, 0.38871514797210693, -0.41629451513290405, 0.13100193440914154, -0.4554910659790039, 0.4255397617816925, 0.8015028238296509, 0.025508858263492584, 0.41444483399391174, -0.810778021812439, 0.3137592375278473, -0.042604491114616394, 0.22822628915309906, 0.12245180457830429, -0.31244325637817383, -0.9120521545410156, -0.2017074078321457, 0.26483154296875, 0.5748387575149536, -0.420969158411026, 0.6129728555679321, -0.014992378652095795, -0.4671179950237274, -0.6885948181152344, 0.1504317969083786, 0.6751582026481628, 0.4729371964931488, 0.5592826008796692, -0.2098393440246582, -0.6705715656280518, -0.8248242735862732, -0.01379874162375927, -0.1709378957748413, 0.007425309624522924, 0.6198465824127197, 0.6349741220474243, -0.2624748647212982, 0.490030974149704, -0.5445651412010193, -0.1941482126712799, -0.3737648129463196, 0.07613998651504517, 0.2502269446849823, 0.8167331218719482, 0.7645072340965271, -0.7830237746238708, -0.6175129413604736, 0.015408666804432869, -1.024053931236267, -0.18443728983402252, -0.2647835612297058, -0.4986887574195862, 0.20944125950336456, 0.14333108067512512, -0.5062609314918518, 0.5810485482215881, 0.34251752495765686, -0.49870574474334717, 0.5618781447410583, -0.28198301792144775, 0.10256274789571762, -1.282582402229309, 0.5300759077072144, 0.4843961000442505, 0.016102207824587822, -0.8716800212860107, 0.21499338746070862, -0.17240417003631592, 0.303952693939209, -0.5564975142478943, 0.905561625957489, -0.4811580181121826, 0.1993926763534546, -0.15160855650901794, 0.30171239376068115, 0.3318524956703186, 0.5978480577468872, 0.1392563283443451, 0.5356287360191345, 0.4131964147090912, -0.46648094058036804, 0.3466890752315521, 0.4364635944366455, -0.1845867782831192, 0.7404924035072327, -0.8435786366462708, 0.12031065672636032, -0.09994515031576157, 0.20799393951892853, -0.4961582124233246, -0.2724092900753021, 0.5658956170082092, -0.39213046431541443, 0.6885202527046204, -0.08562850952148438, -0.4092252850532532, -0.674961507320404, -0.30733025074005127, 0.12501731514930725, 0.4650731682777405, -0.40196287631988525, 0.5523934960365295, 0.24616305530071259, 0.2910149395465851, -0.6879549622535706, -0.7035751938819885, -0.33484190702438354, -0.5200855135917664, -0.7882137298583984, 0.5033488869667053, -0.18157698214054108, -0.14545905590057373, -0.30428841710090637, -0.11096329987049103, -0.20557907223701477, 0.10904067754745483, 0.41182592511177063, 0.49020475149154663, -0.1917089968919754, -0.1262083202600479, -0.22191791236400604, -0.11893735080957413, 0.16941046714782715, -0.045542288571596146, 0.7156733274459839, -0.3507574498653412, -0.009345320984721184, -1.3821834325790405, 0.08323865383863449, 0.6200907826423645, -0.3024064600467682, 0.9346067905426025, 1.127769947052002, -0.3032248616218567, 0.11091284453868866, -0.596574604511261, -0.12036319822072983, -0.525729238986969, -0.2175053060054779, -0.4460948407649994, -0.40967079997062683, 0.638388991355896, 0.001061288989149034, -0.1157408207654953, 0.5261572003364563, 0.3695238530635834, -0.3143002688884735, 0.7052168250083923, 0.4286867380142212, -0.3603529930114746, 0.44592007994651794, -0.734440267086029, 0.03357195109128952, -1.3073804378509521, -0.5106976628303528, -0.4734528958797455, -0.5948920845985413, -0.4863015413284302, -0.386852502822876, 0.15053382515907288, 0.4429264962673187, -0.6359537839889526, 0.5315654873847961, -0.5799884796142578, 0.18107368052005768, 0.5050598978996277, 0.5967065095901489, -0.06103290617465973, -0.1372205913066864, -0.4179252088069916, -0.011417186819016933, -0.32015126943588257, -0.6213549971580505, 0.9168064594268799, 0.406161904335022, 0.4557594656944275, 0.09825684875249863, 0.7698715329170227, 0.08442702144384384, 0.07730419188737869, -0.5130049586296082, 0.4686698019504547, -0.09064649045467377, -0.4348118007183075, -0.2471546083688736, -0.38926348090171814, -0.9633368849754333, 0.026228390634059906, -0.4282740354537964, -1.0888899564743042, 0.19828283786773682, 0.19623030722141266, -0.45078015327453613, 0.4637806713581085, -0.5792050361633301, 0.9375260472297668, -0.35958486795425415, -0.9121726155281067, 0.29735586047172546, -0.6942246556282043, 0.1630430370569229, 0.40506571531295776, 0.204853817820549, -0.037107501178979874, 0.1208060085773468, 0.719135046005249, -0.6706523299217224, 0.9943060278892517, -0.31389543414115906, -0.08408334106206894, 0.4763299524784088, -0.20924817025661469, 0.5701876878738403, -0.08167476952075958, -0.3705112934112549, -0.11255159229040146, -0.11449308693408966, -0.46285998821258545, -0.5386999249458313, 0.7749730348587036, -0.9680582880973816, -0.5473927855491638, -0.5193724632263184, -0.39985018968582153, 0.1409146785736084, 0.21385668218135834, 0.3057664930820465, 0.5207656621932983, 0.08722949773073196, 0.1553078293800354, 0.6929551959037781, -0.24767011404037476, 0.5944578051567078, 0.15134350955486298, 0.039686210453510284, -0.1494661420583725, 0.8480893969535828, -0.027502285316586494, 0.21037279069423676, 0.5060728788375854, 0.28470200300216675, -0.41586941480636597, -0.2407529503107071, -0.6567531228065491, 0.627385675907135, -0.29386797547340393, -0.20775878429412842, -0.5664995908737183, -0.31890541315078735, -0.2944983243942261, -0.3616732358932495, -0.13847926259040833, -0.3463967740535736, -0.6559852361679077, -0.10345011949539185, 0.451313316822052, 0.531751275062561, -0.15559254586696625, 0.3089917004108429, -0.5509904623031616, 0.17591217160224915, 0.17196233570575714, 0.1829672008752823, 0.1613701581954956, -0.4707413613796234, -0.10008351504802704, 0.25300833582878113, -0.511462926864624, -0.6877327561378479, 0.6419274806976318, -0.03610389679670334, 0.5908048152923584, 0.46935558319091797, 0.0516325943171978, 0.7693443894386292, -0.31275007128715515, 0.5295672416687012, 0.28801393508911133, -0.8941637277603149, 0.6042168140411377, -0.40682995319366455, 0.4909822642803192, 0.4783444106578827, 0.6297673583030701, -0.34421172738075256, -0.1895471215248108, -0.6423836350440979, -0.693423867225647, 0.8824501633644104, 0.2500919997692108, -0.0014433192554861307, 0.19870594143867493, 0.5338765978813171, -0.37918955087661743, -0.018208684399724007, -0.9246910214424133, -0.5471193194389343, -0.31511709094047546, -0.07258772850036621, 0.3664693236351013, -0.04258450120687485, -0.17326796054840088, -0.45793381333351135, 0.845018744468689, -0.05089472979307175, 0.5713319778442383, 0.16286437213420868, -0.1045042872428894, -0.09988506138324738, 0.2300984412431717, 0.7833706140518188, 0.46817153692245483, -0.35361552238464355, -0.30739155411720276, 0.32928580045700073, -0.44167351722717285, -0.02333872951567173, -0.06957516074180603, -0.3513167202472687, -0.06414004415273666, 0.3002764582633972, 1.0889997482299805, 0.210575133562088, -0.16523019969463348, 0.4830569326877594, 0.12046780437231064, -0.1442994326353073, -0.3239668607711792, 0.19134454429149628, 0.21526528894901276, 0.3895187973976135, 0.0058325850404798985, 0.1599598079919815, 0.02297171577811241, -0.6418085694313049, 0.2709142565727234, 0.3468021750450134, -0.4379841685295105, -0.32906460762023926, 0.8479150533676147, 0.00517379492521286, -0.14019785821437836, 0.3573301136493683, -0.21594469249248505, -0.7772383093833923, 0.6027483344078064, 0.7164252400398254, 0.6336718201637268, -0.3391077518463135, 0.3404465317726135, 0.9654455184936523, -0.06167307868599892, -0.06702666729688644, 0.1484517753124237, 0.004711792338639498, -0.554280698299408, 0.049893371760845184, -1.0351855754852295, -0.029647013172507286, 0.22024543583393097, -0.9939698576927185, 0.3973224461078644, -0.573466420173645, -0.39876899123191833, -0.016095241531729698, 0.39949047565460205, -0.7491686344146729, 0.620939314365387, 0.19217565655708313, 0.786719799041748, -0.6406257152557373, 0.9852936267852783, 0.5416894555091858, -0.711344301700592, -0.9397823214530945, 0.09796751290559769, 0.16028408706188202, -1.0113543272018433, 0.7992724180221558, 0.10687768459320068, -0.023051787167787552, -0.0981961116194725, -0.37899351119995117, -0.6744993925094604, 1.3428220748901367, -0.10018636286258698, -0.2572009265422821, -0.31096214056015015, 0.2668992578983307, 0.6923802495002747, -0.45833590626716614, 0.701152503490448, 0.5218598246574402, 0.6789886951446533, 0.16222286224365234, -0.8764122724533081, 0.6226643323898315, -0.6004360318183899, 0.02917126938700676, 0.03661726787686348, -1.3720097541809082, 1.0023716688156128, -0.04573270305991173, -0.036917705088853836, 0.17143391072750092, 0.5146347880363464, 0.33799341320991516, 0.20835177600383759, 0.1538112312555313, 0.7840570211410522, 0.5679054260253906, -0.2243805080652237, 1.185768723487854, -0.4327174127101898, 0.5153432488441467, 1.0195554494857788, 0.04301392659544945, 0.9450483918190002, 0.20127016305923462, -0.2445579320192337, 0.7597213983535767, 0.39967694878578186, -0.34042733907699585, 0.15306241810321808, 0.27187350392341614, -0.16967514157295227, -0.11334593594074249, -0.1685611605644226, -0.5286113619804382, 0.2614799439907074, 0.37541672587394714, -0.5718907117843628, 0.038893431425094604, -0.3218299448490143, 0.4554106295108795, -0.017595753073692322, -0.21086470782756805, 0.5819959044456482, 0.21164895594120026, -0.48373061418533325, 0.8703465461730957, -0.03561709076166153, 0.6520857810974121, -0.49076175689697266, 0.16205205023288727, -0.18806064128875732, 0.13696499168872833, -0.3688209354877472, -0.6337120532989502, 0.1639813780784607, 0.12722760438919067, -0.10782762616872787, -0.37685057520866394, 0.44765710830688477, -0.2083224356174469, -0.6612540483474731, 0.3925251364707947, 0.2403709441423416, 0.12702986598014832, 0.3395732045173645, -1.220463514328003, 0.3106246292591095, 0.302821546792984, -0.4145151972770691, 0.35510432720184326, 0.2322697788476944, 0.20980983972549438, 0.7035692930221558, 0.5566773414611816, -0.08525770902633667, 0.08256765455007553, -0.018991749733686447, 0.912422776222229, -0.4839721918106079, -0.09733916074037552, -0.9264146685600281, 0.7964599132537842, -0.40021273493766785, -0.32749465107917786, 0.9087486863136292, 0.5516697764396667, 0.7460582852363586, -0.11566638946533203, 0.6781452298164368, -0.25760266184806824, 0.3712136149406433, -0.5826817750930786, 1.0012587308883667, -0.7120102047920227, 0.14149793982505798, -0.4126214385032654, -0.6649165153503418, -0.21036763489246368, 0.9451149106025696, -0.3250696063041687, 0.27587461471557617, 0.643952488899231, 0.6978174448013306, -0.026461103931069374, -0.09433676302433014, -0.12184668332338333, 0.33235272765159607, 0.011538631282746792, 0.842681348323822, 0.4548480212688446, -0.7622381448745728, 0.1281212419271469, -0.591202974319458, -0.11559264361858368, -0.3485082685947418, -0.7411026954650879, -1.1655467748641968, -0.6040867567062378, -0.43016430735588074, -0.564152181148529, -0.0771602913737297, 1.0523104667663574, 0.6326261758804321, -0.869687557220459, -0.3897075057029724, 0.1649528592824936, 0.009353316389024258, -0.09064874798059464, -0.27632999420166016, 0.6992269158363342, -0.02352651208639145, -1.0697251558303833, 0.03989708423614502, -0.07367634028196335, 0.5091261267662048, 0.11464408785104752, -0.23447000980377197, -0.4713790714740753, 0.08233742415904999, 0.2620832920074463, 0.5303402543067932, -0.5963436961174011, -0.29601505398750305, -0.08101962506771088, -0.2504006326198578, 0.24941827356815338, 0.27981704473495483, -0.44059818983078003, 0.21010366082191467, 0.5597480535507202, 0.24816203117370605, 0.7056309580802917, 0.2732468247413635, 0.4391564428806305, -0.5361565351486206, 0.12038830667734146, -0.10918331146240234, 0.425449013710022, 0.14957241714000702, -0.362043172121048, 0.5663988590240479, 0.23897165060043335, -0.44911691546440125, -0.7503159642219543, -0.12393170595169067, -1.2664761543273926, 0.01798839494585991, 1.11368727684021, -0.3687964379787445, -0.5331283211708069, 0.31630292534828186, -0.2931032180786133, 0.5019415020942688, -0.5095580816268921, 0.5670979619026184, 0.6913286447525024, -0.3057396411895752, -0.17252984642982483, -0.7122774124145508, 0.684201717376709, 0.22775158286094666, -0.8503440618515015, -0.2980594038963318, 0.1759369969367981, 0.28000181913375854, 0.4132115840911865, 0.3357132375240326, -0.07674004882574081, 0.11323130875825882, -0.19427813589572906, 0.00741826556622982, -0.11908996850252151, -0.021812668070197105, -0.08180367946624756, -0.030677078291773796, -0.30417585372924805, -0.09489843994379044 ]
tiiuae/falcon-180B-chat
tiiuae
"2023-11-07T14:38:47Z"
13,070
489
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", "license:unknown", "has_space", "text-generation-inference", "region:us" ]
text-generation
"2023-09-04T08:29:48Z"
--- datasets: - tiiuae/falcon-refinedweb language: - en - de - es - fr inference: false license: unknown extra_gated_heading: "Acknowledge license to access the repository" extra_gated_prompt: "You agree to the [Falcon-180B TII license](https://huggingface.co/spaces/tiiuae/falcon-180b-license/blob/main/LICENSE.txt) and [acceptable use policy](https://huggingface.co/spaces/tiiuae/falcon-180b-license/blob/main/ACCEPTABLE_USE_POLICY.txt)." extra_gated_button_content: "I agree to the terms and conditions of the Falcon-180B TII license and to the acceptable use policy" --- # 🚀 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.5035006999969482, -0.99916011095047, 0.03423132747411728, 0.44797584414482117, 0.03553370386362076, -0.07943561673164368, -0.1515321582555771, -0.5055620670318604, 0.35845354199409485, 0.4079335033893585, -0.6492846608161926, -0.4628235399723053, -0.6269668340682983, -0.10254581272602081, -0.3877842426300049, 1.05988347530365, 0.16580522060394287, -0.10871802270412445, 0.035023387521505356, -0.0642341896891594, -0.18864309787750244, -0.6950973868370056, -0.9243331551551819, -0.0044438960030674934, 0.39159277081489563, 0.384735107421875, 0.6980915665626526, 0.7425726056098938, 0.6449504494667053, 0.3752506971359253, -0.17610132694244385, 0.23532754182815552, -0.6833773255348206, -0.2279767394065857, 0.12327420711517334, -0.29275840520858765, -0.5432771444320679, 0.051478851586580276, 0.7177286148071289, 0.5220152735710144, -0.1105860024690628, 0.17568105459213257, 0.02363327331840992, 0.46431219577789307, -0.5464490652084351, 0.5049712061882019, -0.5151491761207581, -0.09264025092124939, -0.2650308609008789, 0.14156192541122437, -0.4588553011417389, 0.17218902707099915, -0.2134602665901184, -0.8105189204216003, 0.00449124863371253, 0.2240002602338791, 1.3358395099639893, 0.1488541215658188, -0.36988550424575806, -0.0786752849817276, -0.5489957332611084, 0.7770621180534363, -0.8756282925605774, 0.5113495588302612, 0.3532688319683075, 0.36453112959861755, -0.435783326625824, -0.9941743016242981, -0.4762745201587677, -0.1638820767402649, -0.006884480826556683, 0.27406173944473267, -0.3507341742515564, 0.09411536157131195, 0.30532601475715637, 0.14693768322467804, -0.42590051889419556, 0.18643562495708466, -0.47537946701049805, -0.23243512213230133, 0.7034737467765808, 0.08530199527740479, 0.19737207889556885, -0.2159276008605957, -0.33540835976600647, -0.3263126611709595, -0.3739790618419647, 0.26749810576438904, 0.45435598492622375, 0.4239006042480469, -0.44067248702049255, 0.5908094048500061, -0.3279148042201996, 0.5211101174354553, 0.2494080513715744, -0.0726916491985321, 0.34758609533309937, -0.39692968130111694, -0.3681904077529907, -0.31669503450393677, 1.269284963607788, 0.29564622044563293, 0.11182532459497452, -0.03857303410768509, 0.11187722533941269, -0.232028529047966, -0.006782253738492727, -0.9194139838218689, 0.09530170261859894, 0.3372158408164978, -0.542161762714386, -0.26142796874046326, 0.2840995192527771, -0.7863973379135132, -0.02448563277721405, 0.13502736389636993, 0.13517791032791138, -0.4588068127632141, -0.4819405972957611, 0.22317731380462646, -0.08089391887187958, 0.24489106237888336, -0.06076567992568016, -0.751267671585083, 0.2723994851112366, 0.6609445810317993, 0.9099863767623901, 0.1246020495891571, -0.6205718517303467, -0.6247900128364563, -0.0730576440691948, -0.20181860029697418, 0.6203956604003906, -0.4931534230709076, -0.33693385124206543, -0.11770039051771164, 0.2959195375442505, -0.3059253692626953, -0.09524735808372498, 0.8364945650100708, -0.356333464384079, 0.3184269964694977, -0.3250856399536133, -0.6530702710151672, -0.3155296742916107, -0.07393743842840195, -0.5149120092391968, 0.9274921417236328, -0.0596785806119442, -0.994335949420929, 0.15029402077198029, -0.8926399350166321, -0.13603876531124115, -0.08059202879667282, 0.04895324632525444, -0.4193878471851349, -0.32736119627952576, 0.37263673543930054, 0.6411508321762085, -0.27939584851264954, 0.3697536885738373, -0.7904650568962097, -0.5152491331100464, 0.12270145863294601, -0.15781353414058685, 0.9661664366722107, 0.5775399804115295, -0.2500126361846924, 0.12438008934259415, -0.39914366602897644, -0.09845691174268723, 0.29123133420944214, -0.03800013288855553, 0.09541622549295425, 0.10413125157356262, 0.16134808957576752, 0.21739397943019867, 0.07757817953824997, -0.6541581153869629, 0.05311870574951172, -0.4338058829307556, 0.5704964399337769, 0.31810086965560913, -0.044037096202373505, 0.35776644945144653, -0.5134932398796082, 0.41746219992637634, 0.386025995016098, 0.4221518039703369, -0.22763270139694214, -0.6627550721168518, -0.9639784693717957, -0.45238378643989563, 0.07485693693161011, 0.5780302882194519, -0.5790660977363586, 0.5260620713233948, -0.11696665734052658, -0.6694516539573669, -0.47805944085121155, -0.09567885845899582, 0.4294242560863495, 0.4550635814666748, 0.36248618364334106, 0.07896926254034042, -0.7596361041069031, -0.8725504279136658, -0.09959732741117477, -0.3901642858982086, 0.16174443066120148, 0.4564901888370514, 0.46298545598983765, -0.38043448328971863, 0.7274814248085022, -0.3611956834793091, -0.30576255917549133, -0.19282087683677673, 0.06716848909854889, 0.1502392292022705, 0.46147942543029785, 0.8076727986335754, -0.5019829273223877, -0.3778870403766632, -0.156539186835289, -0.9164816737174988, -0.013545965775847435, -0.13427934050559998, -0.399109810590744, 0.49322041869163513, 0.6738309860229492, -0.7724641561508179, 0.3284069001674652, 0.5401774644851685, -0.3676939904689789, 0.25016599893569946, 0.08866023272275925, 0.16271698474884033, -1.2294881343841553, 0.13991637527942657, 0.2198890745639801, 0.03908785805106163, -0.5553738474845886, 0.18668799102306366, -0.08283962309360504, -0.0426630936563015, -0.6171025037765503, 0.8037453889846802, -0.3507203161716461, 0.10437318682670593, -0.06703166663646698, 0.05582977086305618, -0.10268157720565796, 0.7416438460350037, 0.1491590440273285, 0.7382470965385437, 0.6134235858917236, -0.31275296211242676, 0.12152586877346039, 0.47058936953544617, 0.041830532252788544, 0.2600405216217041, -0.8774584531784058, 0.09929075092077255, -0.062033072113990784, 0.43673285841941833, -0.9664976000785828, -0.23538845777511597, 0.5069748759269714, -0.698013424873352, 0.3112261891365051, -0.18122951686382294, -0.34856975078582764, -0.5523145198822021, -0.2588348984718323, 0.0222519189119339, 0.4623524248600006, -0.4573019742965698, 0.32499682903289795, 0.4574839472770691, 0.027819804847240448, -0.8899040818214417, -0.6854649782180786, 0.12790443003177643, -0.2898905873298645, -0.8566262125968933, 0.26367560029029846, -0.03353794664144516, -0.04672760143876076, -0.01504403818398714, 0.278155118227005, -0.017969921231269836, -0.019853631034493446, 0.5101620554924011, 0.26270806789398193, -0.2639518678188324, -0.11434956640005112, -0.028217466548085213, -0.03953852877020836, 0.00027641732594929636, -0.22532154619693756, 0.46112629771232605, -0.6876487731933594, -0.29157745838165283, -0.5576068162918091, 0.4845983684062958, 0.5366993546485901, -0.18525394797325134, 0.9906435012817383, 0.9405890703201294, -0.3051396310329437, 0.20852476358413696, -0.7087541222572327, -0.24634626507759094, -0.5026691555976868, 0.500986635684967, -0.3957391679286957, -0.9421517252922058, 0.7022156715393066, 0.35143595933914185, 0.14209797978401184, 0.7173366546630859, 0.4239855408668518, -0.07100647687911987, 1.1054521799087524, 0.4465424418449402, -0.15264025330543518, 0.5608260035514832, -0.46969765424728394, 0.006543353665620089, -0.7438955307006836, -0.28195351362228394, -0.6682440638542175, -0.1854132115840912, -0.7500169277191162, -0.27101320028305054, -0.032800231128931046, 0.2775232195854187, -0.7115615010261536, 0.35347801446914673, -0.36906489729881287, 0.2538343369960785, 0.5557578206062317, 0.0334320105612278, 0.05753077194094658, -0.04149314761161804, -0.1382569968700409, 0.04581641033291817, -0.82486891746521, -0.5575597286224365, 1.1960467100143433, 0.582650899887085, 0.6468305587768555, -0.10195022821426392, 0.8042970895767212, -0.1406727135181427, 0.24993720650672913, -0.6290597319602966, 0.5877166986465454, -0.11698956042528152, -0.6656118035316467, -0.18574947118759155, -0.5702651143074036, -0.9604458212852478, 0.06759735941886902, -0.20179295539855957, -0.8826764822006226, 0.047166064381599426, -0.22895057499408722, -0.12489519268274307, 0.33724480867385864, -0.920403778553009, 0.8962846398353577, -0.05050409957766533, -0.2861366271972656, 0.07406949996948242, -0.6614911556243896, 0.5794387459754944, 0.010118608362972736, 0.24612316489219666, -0.05652693659067154, -0.03528016805648804, 1.001962423324585, -0.5858444571495056, 0.8851986527442932, -0.39328983426094055, 0.39126211404800415, 0.5073083639144897, -0.1500348448753357, 0.5533127188682556, 0.14352348446846008, -0.16780397295951843, 0.6284386515617371, 0.40240153670310974, -0.4092269539833069, -0.3870992362499237, 0.7955149412155151, -1.285556674003601, -0.5198127627372742, -0.43828535079956055, -0.5934857130050659, -0.20900410413742065, 0.2235451191663742, 0.27080753445625305, 0.25262340903282166, -0.09695792198181152, 0.5072008371353149, 0.176024928689003, -0.3801296651363373, 0.5808491706848145, 0.5427739024162292, -0.3720516264438629, -0.4057595431804657, 0.6845173239707947, 0.040995992720127106, 0.0865795761346817, 0.29807645082473755, 0.11253080517053604, -0.5119295120239258, -0.3786114752292633, -0.3779338598251343, 0.4684303402900696, -0.5667971968650818, -0.2576710879802704, -0.9788311123847961, -0.6589834094047546, -0.46489179134368896, 0.02926485985517502, -0.4765189290046692, -0.3142746686935425, -0.6129723191261292, 0.03907041624188423, 0.5638861656188965, 0.3630443811416626, -0.02951493300497532, 0.48733949661254883, -0.8866847157478333, 0.06283903867006302, -0.0069793518632650375, 0.3120002746582031, -0.030186066403985023, -0.7037926912307739, -0.15328024327754974, 0.6618865132331848, -0.39850717782974243, -0.5634805560112, 0.46834704279899597, 0.4120955467224121, 0.7819110155105591, 0.3752855956554413, 0.07283219695091248, 0.8829357624053955, -0.13779714703559875, 0.8086867928504944, 0.10669252276420593, -0.7939566969871521, 0.3232980966567993, -0.6172661781311035, 0.1033874899148941, 0.41604334115982056, 0.5672648549079895, -0.5583168864250183, -0.605843186378479, -0.8679419755935669, -0.4719773828983307, 1.0298998355865479, 0.3775707483291626, 0.15678566694259644, -0.15338657796382904, 0.4215414226055145, -0.2008684128522873, -0.09458617866039276, -0.5489518046379089, -0.25633007287979126, -0.5794004797935486, -0.2774152159690857, -0.1328016072511673, -0.07470005005598068, 0.10168842226266861, -0.3532010018825531, 0.7657211422920227, -0.16152092814445496, 0.709141194820404, 0.04107693210244179, 0.03325621411204338, -0.04074007645249367, -0.1287277340888977, 0.6235931515693665, 0.33968207240104675, -0.38096562027931213, -0.2831719219684601, 0.0979616567492485, -0.6049194931983948, -0.13563485443592072, 0.36430996656417847, -0.01815580204129219, -0.21654012799263, 0.37889087200164795, 1.0638724565505981, 0.19099363684654236, -0.4922776520252228, 0.5425618886947632, -0.23201681673526764, -0.3608165383338928, -0.08743008226156235, 0.15901124477386475, 0.3591470420360565, 0.41866394877433777, 0.25288739800453186, -0.08665762096643448, -0.006322481669485569, -0.34627339243888855, 0.25470441579818726, 0.451374888420105, -0.30658158659935, -0.18378028273582458, 0.8900385499000549, 0.14703698456287384, -0.25748610496520996, 0.7027177214622498, -0.27864870429039, -0.25294196605682373, 0.7334691286087036, 0.5659192800521851, 0.8727650046348572, 0.06771142035722733, 0.35765138268470764, 0.6510418653488159, 0.14184987545013428, -0.08855018019676208, 0.2874668836593628, 0.24657846987247467, -0.7628596425056458, -0.4480947256088257, -0.7142411470413208, -0.393450528383255, 0.19082283973693848, -0.5933954119682312, 0.5201671123504639, -0.41111722588539124, -0.27958500385284424, 0.17613795399665833, 0.2975912392139435, -0.6356673240661621, -0.1000804454088211, 0.04073582962155342, 0.9384799599647522, -0.5911052823066711, 0.9267299175262451, 0.6590797901153564, -0.6856352686882019, -1.053614854812622, -0.24346008896827698, 0.0893154963850975, -0.9189335107803345, 0.6507930755615234, 0.1765570342540741, 0.062196701765060425, 0.19068002700805664, -0.5875030159950256, -0.8976650238037109, 1.0710750818252563, 0.34280335903167725, -0.5213398337364197, -0.02708200179040432, 0.22499051690101624, 0.5339305996894836, -0.4515286684036255, 0.7665529251098633, 0.3528231084346771, 0.3722940683364868, 0.6065639853477478, -0.9574780464172363, 0.07192362844944, -0.5091561675071716, 0.010634095408022404, -0.026020515710115433, -1.063053011894226, 0.8973774313926697, -0.2709902822971344, -0.18760226666927338, 0.06496481597423553, 0.8222798705101013, 0.33578476309776306, 0.13299709558486938, 0.2980239987373352, 0.46646133065223694, 0.612695574760437, -0.16731669008731842, 0.8988519906997681, -0.4954691231250763, 0.5697909593582153, 0.8578211069107056, -0.06970138847827911, 0.9641354084014893, 0.2604689300060272, -0.169322669506073, 0.37941569089889526, 0.8157552480697632, 0.01080350298434496, 0.24137279391288757, -0.20275834202766418, 0.26126861572265625, -0.20906607806682587, -0.04767881706357002, -0.48764917254447937, 0.6846996545791626, 0.33355340361595154, -0.16758061945438385, -0.15475580096244812, 0.0015449265483766794, 0.45611801743507385, -0.3280284106731415, 0.10634887218475342, 0.6581292152404785, 0.09999113529920578, -0.7554466128349304, 1.0561959743499756, 0.22558856010437012, 0.8821790814399719, -0.6791442632675171, 0.18848630785942078, -0.5384889841079712, 0.2283065766096115, -0.21374942362308502, -0.7054240107536316, 0.5240634679794312, -0.05527368187904358, 0.16132770478725433, -0.04981592670083046, 0.6215799450874329, -0.35107919573783875, -0.6486270427703857, 0.3365844190120697, 0.3718889653682709, 0.277964323759079, -0.20525172352790833, -0.9781744480133057, 0.4189246594905853, -0.16682320833206177, -0.41343337297439575, 0.3081240653991699, 0.17566820979118347, -0.037540748715400696, 0.8063645958900452, 0.7025919556617737, -0.12562766671180725, 0.02957446314394474, -0.08546976000070572, 0.7879700064659119, -0.6710985898971558, -0.3996580243110657, -0.6517906188964844, 0.47190186381340027, -0.09964986890554428, -0.34727829694747925, 0.7762691378593445, 0.542266309261322, 0.7263255715370178, 0.08339052647352219, 0.5346670150756836, -0.15260785818099976, 0.34967032074928284, -0.301705926656723, 0.8259770274162292, -0.6252788305282593, 0.11777008324861526, -0.4011620283126831, -0.6599351167678833, -0.1978432536125183, 0.5808910727500916, -0.1085391491651535, 0.2595876455307007, 0.6416464447975159, 1.1086504459381104, -0.07545739412307739, 0.43728578090667725, 0.10422806441783905, 0.3269229829311371, 0.48462507128715515, 0.8585512042045593, 0.8074691295623779, -0.8027522563934326, 0.7564609050750732, -0.2943885624408722, -0.3340842127799988, -0.3431994616985321, -0.8508875966072083, -1.1756197214126587, -0.8180466890335083, -0.4145592451095581, -0.3860006034374237, -0.036385051906108856, 0.870968222618103, 0.915162205696106, -0.6770204901695251, -0.45999157428741455, -0.08300960808992386, -0.09248869121074677, -0.29110971093177795, -0.23108252882957458, 0.3090292513370514, -0.4157642126083374, -0.7577303647994995, 0.19655157625675201, -0.02198316901922226, 0.13682609796524048, -0.2054692953824997, -0.32620322704315186, -0.5099576115608215, 0.08842479437589645, 0.5444297194480896, 0.4985109865665436, -0.7355663180351257, -0.35796085000038147, 0.35679298639297485, -0.1777421087026596, -0.037159621715545654, 0.2313103973865509, -0.50918048620224, 0.21693825721740723, 0.47693076729774475, 0.531677782535553, 0.9081884026527405, -0.10686082392930984, 0.23826423287391663, -0.4825705289840698, 0.4742640256881714, -0.08328263461589813, 0.3831362724304199, 0.15046323835849762, -0.3610633313655853, 0.504929780960083, 0.33350998163223267, -0.5241125822067261, -0.7839418053627014, -0.22789177298545837, -1.2208499908447266, -0.15311889350414276, 1.4277408123016357, -0.24987605214118958, -0.274863600730896, 0.09361518174409866, -0.4023485481739044, 0.37860989570617676, -0.5283039808273315, 0.49589887261390686, 0.7211436629295349, -0.07256802916526794, -0.24582043290138245, -0.43887996673583984, 0.38152268528938293, 0.08349039405584335, -0.903902530670166, -0.07552613317966461, 0.37055787444114685, 0.30973419547080994, -0.08045925945043564, 0.5458560585975647, -0.11958035081624985, -0.0071766129694879055, 0.13092690706253052, -0.055336833000183105, -0.5570278763771057, -0.25657352805137634, -0.06593535095453262, 0.00890111830085516, -0.21647873520851135, -0.3537243902683258 ]
maywell/Synatra-V0.1-7B-Instruct
maywell
"2023-11-17T22:54:10Z"
13,065
14
transformers
[ "transformers", "pytorch", "mistral", "text-generation", "ko", "license:cc-by-nc-4.0", "endpoints_compatible", "text-generation-inference", "region:us" ]
text-generation
"2023-10-09T01:52:53Z"
--- language: - ko library_name: transformers pipeline_tag: text-generation license: cc-by-nc-4.0 --- # **V0.3 IS UP** [Link to V0.3](https://huggingface.co/maywell/Synatra-7B-v0.3-base) # **Synatra-V0.1-7B** Made by StableFluffy [Visit my website! - Currently on consturction..](https://www.stablefluffy.kr/) ## License This model is strictly [*non-commercial*](https://creativecommons.org/licenses/by-nc/4.0/) (**cc-by-nc-4.0**) use only which takes priority over the **LLAMA 2 COMMUNITY LICENSE AGREEMENT**. The "Model" is completely free (ie. base model, derivates, merges/mixes) to use for non-commercial purposes as long as the the included **cc-by-nc-4.0** license in any parent repository, and the non-commercial use statute remains, regardless of other models' licences. The licence can be changed after new model released. ## Model Details **Base Model** [mistralai/Mistral-7B-Instruct-v0.1](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.1) **Trained On** A6000 48GB * 8 ## Instruction format **학습 과정의 실수로 [/INST]가 아닌 [\INST]가 적용되었습니다. v0.2 에서 수정 될 예정입니다.** In order to leverage instruction fine-tuning, your prompt should be surrounded by `[INST]` and `[\INST]` tokens. The very first instruction should begin with a begin of sentence id. The next instructions should not. The assistant generation will be ended by the end-of-sentence token id. Plus, It is strongly recommended to add a space at the end of the prompt. E.g. ``` text = "<s>[INST] 아이작 뉴턴의 업적을 알려줘. [\INST] " ``` # **Model Benchmark** ## KULLM Evaluation 구름v2 repo 에서 제공되는 데이터셋과 프롬프트를 사용하여 평가했습니다. 당시 GPT4와 현재 GPT4가 완전히 동일하지는 않기에 실제 결과와 약간의 차이가 존재 할 수 있습니다. ![img](./kullm_eval.png) | Model | 이해가능성 | 자연스러움 | 맥락유지 | 흥미로움 | 지시어사용 | 전반적퀄리티 | --- | --- | --- | --- | --- | --- | --- | GPT-3.5 | 0.980 | 2.806 | 2.849 | 2.056 | 0.917 | 3.905 | GPT-4 | 0.984 | 2.897 | 2.944 | 2.143 | 0.968 | 4.083 | KoAlpaca v1.1 | 0.651 | 1.909 | 1.901 | 1.583 | 0.385 | 2.575 | koVicuna | 0.460 | 1.583 | 1.726 | 1.528 | 0.409 | 2.440 | KULLM v2 | 0.742 | 2.083 | 2.107 | 1.794 | 0.548 | 3.036 | **Synatra-V0.1-7B** | **0.960** | **2.821** | **2.755** | **2.356** | **0.934** | **4.065** ## KOBEST_BOOLQ, SENTINEG, WIC - ZERO_SHOT [EleutherAI/lm-evaluation-harness](https://github.com/EleutherAI/lm-evaluation-harness/tree/polyglot)를 사용하여 BoolQ, SentiNeg, Wic을 측정했습니다. HellaSwag와 COPA는 원본코드를 수정하는 과정에서 어려움을 겪어 아직 진행하지 않았습니다. ### NOTE BoolQ에는 Instruction 모델의 이해를 돕기위해 "위 글에 대한 질문에 사실을 확인하는 작업입니다.", "예, 아니오로 대답해주세요."의 프롬프트를 추가했습니다. SentiNeg에는 Instruction 모델의 이해를 돕기위해 "위 문장의 긍정, 부정 여부를 판단하세요."의 프롬프트를 추가했습니다. Wic의 경우는 [INST], [\INST]만 추가하였습니다. | Model | COPA | HellaSwag | BoolQ | SentiNeg | Wic | --- | --- | --- | --- | --- | --- | EleutherAI/polyglot-ko-12.8b | 0.7937 | 0.5954 | 0.4818 | 0.9117 | 0.3985 | **Synatra-V0.1-7B** | **NaN** | **NaN** | **0.849** | **0.8690** | **0.4881** # **Implementation Code** Since, chat_template already contains insturction format above. You can use the code below. ```python from transformers import AutoModelForCausalLM, AutoTokenizer device = "cuda" # the device to load the model onto model = AutoModelForCausalLM.from_pretrained("maywell/Synatra-V0.1-7B") tokenizer = AutoTokenizer.from_pretrained("maywell/Synatra-V0.1-7B") messages = [ {"role": "user", "content": "What is your favourite condiment?"}, ] encodeds = tokenizer.apply_chat_template(messages, return_tensors="pt") model_inputs = encodeds.to(device) model.to(device) generated_ids = model.generate(model_inputs, max_new_tokens=1000, do_sample=True) decoded = tokenizer.batch_decode(generated_ids) print(decoded[0]) ``` If you run it on oobabooga your prompt would look like this. - ** Need to add Space at the end! ** ``` [INST] 링컨에 대해서 알려줘. [\INST] ``` > Readme format: [beomi/llama-2-ko-7b](https://huggingface.co/beomi/llama-2-ko-7b) --- # [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard) Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/details_maywell__Synatra-V0.1-7B) | Metric | Value | |-----------------------|---------------------------| | Avg. | 53.54 | | ARC (25-shot) | 55.29 | | HellaSwag (10-shot) | 76.63 | | MMLU (5-shot) | 55.29 | | TruthfulQA (0-shot) | 55.76 | | Winogrande (5-shot) | 72.77 | | GSM8K (5-shot) | 19.41 | | DROP (3-shot) | 39.63 |
[ -0.3322853744029999, -0.7448250651359558, 0.39967480301856995, 0.2657342255115509, -0.3758443295955658, 0.038429223001003265, 0.0038960780948400497, -0.34807339310646057, 0.43073761463165283, 0.1321035921573639, -0.6283469200134277, -0.7460104823112488, -0.6400898694992065, 0.07180920243263245, 0.0323774628341198, 0.9100980162620544, -0.11903852224349976, -0.13771715760231018, -0.08106077462434769, -0.19997553527355194, -0.7942824363708496, -0.33616745471954346, -0.6395823359489441, -0.33998996019363403, 0.07438784837722778, 0.35610637068748474, 0.5379135608673096, 0.3840639293193817, 0.37226948142051697, 0.4174739718437195, -0.45567625761032104, 0.16773229837417603, -0.43839001655578613, -0.027840690687298775, 0.15489628911018372, -0.6562927961349487, -0.7812957167625427, 0.012917024083435535, 0.5527192950248718, 0.11836740374565125, -0.13728848099708557, 0.531583845615387, 0.061354149132966995, 0.5101869106292725, -0.4069754481315613, 0.44692620635032654, -0.19619308412075043, 0.03963330760598183, -0.11886850744485855, 0.004055873025208712, -0.025877265259623528, -0.511634111404419, -0.22902904450893402, -0.701062023639679, -0.08695608377456665, 0.17462268471717834, 1.2257153987884521, 0.20033682882785797, -0.3407376706600189, -0.13137437403202057, -0.3484703004360199, 0.7315751314163208, -1.0661892890930176, 0.11805354058742523, 0.328363299369812, 0.4489521384239197, -0.4529825747013092, -0.6947758793830872, -0.6328455805778503, -0.16688455641269684, -0.19410189986228943, 0.4437967538833618, -0.45597824454307556, -0.1561005711555481, 0.37076982855796814, 0.4828895926475525, -0.5098579525947571, 0.16900967061519623, -0.6396839022636414, -0.24570833146572113, 0.7410056591033936, 0.42587363719940186, 0.40735095739364624, -0.49109727144241333, -0.39680811762809753, -0.22773396968841553, -0.37527990341186523, 0.465141624212265, 0.2413080930709839, 0.06143682822585106, -0.6772656440734863, 0.6730750799179077, -0.19596679508686066, 0.3993171751499176, 0.25999540090560913, -0.5060049295425415, 0.6712756156921387, -0.553943932056427, -0.5211840867996216, 0.021558236330747604, 1.1233224868774414, 0.6424306631088257, -0.21471817791461945, 0.4144660532474518, -0.1916053742170334, 0.14198577404022217, -0.2658049166202545, -0.7836123704910278, -0.11894482374191284, 0.37769702076911926, -0.6320508122444153, -0.39359816908836365, 0.02156592346727848, -0.7596191167831421, -0.12793190777301788, -0.0867762491106987, 0.522052526473999, -0.37192705273628235, -0.3673746883869171, 0.14128324389457703, -0.002315384801477194, 0.3482346832752228, 0.35927388072013855, -0.5370885729789734, 0.3448103368282318, 0.4037730097770691, 0.8942002654075623, 0.052815649658441544, -0.2131747156381607, -0.19280575215816498, -0.1331881433725357, -0.25620749592781067, 0.640920877456665, -0.018929852172732353, -0.5222816467285156, -0.4023265242576599, 0.24399884045124054, -0.26308929920196533, -0.48876896500587463, 0.4715924859046936, -0.07787720113992691, 0.4784078598022461, -0.1135154515504837, -0.5101262331008911, -0.38383403420448303, 0.2618740499019623, -0.4660585820674896, 1.2932850122451782, 0.14348894357681274, -0.8033636212348938, 0.00030458089895546436, -0.7527360320091248, 0.0015036630211398005, -0.20493371784687042, -0.020032383501529694, -0.5976979732513428, -0.06956479698419571, 0.5178408622741699, 0.457588791847229, -0.372556209564209, 0.13477541506290436, -0.10192834585905075, -0.47657865285873413, 0.1995975226163864, -0.3025429844856262, 1.3047553300857544, 0.27171072363853455, -0.46133533120155334, 0.3693908751010895, -0.8530847430229187, 0.02802129276096821, 0.546425461769104, -0.2100105881690979, -0.028205785900354385, -0.4875483214855194, -0.21114450693130493, 0.3136688470840454, 0.4859997034072876, -0.5803431868553162, 0.3430834412574768, -0.46104109287261963, 0.3129718601703644, 0.9463686943054199, 0.13060511648654938, 0.33288079500198364, -0.5719672441482544, 0.7969322800636292, 0.11793854832649231, 0.46087223291397095, -0.0754508301615715, -0.697324275970459, -0.9338715672492981, -0.33270612359046936, 0.025387143716216087, 0.7117801904678345, -0.5870131254196167, 0.7386150360107422, 0.18298892676830292, -0.8990435004234314, -0.8572386503219604, -0.034217316657304764, 0.5253294706344604, 0.5980753898620605, 0.31375861167907715, -0.15926063060760498, -0.6170389652252197, -0.8399341702461243, 0.22620463371276855, -0.30246999859809875, 0.09159601479768753, 0.4427160918712616, 0.6743816137313843, -0.28322482109069824, 0.7786058783531189, -0.7155845165252686, -0.3410673141479492, -0.45266488194465637, -0.14357855916023254, 0.8827979564666748, 0.5067998766899109, 0.7537559270858765, -0.39157915115356445, -0.6005983948707581, -0.13454794883728027, -0.9318749904632568, -0.34168604016304016, 0.07144585251808167, -0.2793576717376709, 0.2992192506790161, 0.29330331087112427, -0.7025766968727112, 0.6921250224113464, 0.6169392466545105, -0.6825278401374817, 0.9472902417182922, -0.32386162877082825, 0.17675995826721191, -1.364583134651184, 0.18696936964988708, -0.11567569524049759, -0.2280915379524231, -0.4369630515575409, 0.10919646918773651, -0.06742555648088455, 0.12605786323547363, -0.5961530804634094, 0.9129507541656494, -0.5401684641838074, 0.07233588397502899, -0.08825825899839401, 0.1230277568101883, 0.025438332930207253, 0.5919472575187683, -0.33963915705680847, 0.7246401906013489, 0.6875389814376831, -0.37370720505714417, 0.5862060189247131, 0.39776811003685, -0.36736035346984863, 0.31188133358955383, -0.7924586534500122, 0.11357732117176056, -0.15673044323921204, 0.3879908323287964, -1.2632321119308472, -0.1392846554517746, 0.7664386034011841, -0.5738034248352051, 0.18064101040363312, -0.10185681283473969, -0.39042457938194275, -0.6163741946220398, -0.5228279829025269, 0.2396973967552185, 0.7258301973342896, -0.4744011461734772, 0.47398483753204346, 0.328146755695343, -0.020401829853653908, -0.5193246006965637, -0.5432748794555664, -0.1473022848367691, -0.32813742756843567, -0.6868998408317566, 0.19744613766670227, -0.17413604259490967, -0.1260581910610199, -0.11347229033708572, -0.1596950739622116, 0.0932859554886818, 0.12181159853935242, 0.4263133406639099, 0.6744601726531982, -0.25734320282936096, -0.2878665626049042, -0.01496981456875801, -0.3154975473880768, 0.049439240247011185, 0.05558253079652786, 0.7775300741195679, -0.3874427080154419, -0.254753977060318, -0.8306081891059875, 0.01013090368360281, 0.47198501229286194, -0.26476797461509705, 0.7146905660629272, 0.7299976348876953, -0.20586849749088287, 0.17962859570980072, -0.5640300512313843, -0.029191991314291954, -0.5177909731864929, 0.284599632024765, -0.3526875972747803, -0.6958754658699036, 0.8367395997047424, 0.28367090225219727, 0.06779693812131882, 0.8076319694519043, 0.6902365684509277, -0.05383143201470375, 0.9777275919914246, 0.4768015444278717, -0.03360746055841446, 0.41946014761924744, -0.6998109817504883, 0.05424881353974342, -0.9780156016349792, -0.6560505628585815, -0.3078281283378601, -0.3690987229347229, -0.6413262486457825, -0.42968934774398804, 0.5342301726341248, 0.24144630134105682, -0.3427411615848541, 0.4062005281448364, -0.7505123615264893, 0.22209133207798004, 0.5087571740150452, 0.2650681734085083, 0.1836584508419037, -0.17889100313186646, -0.3754251301288605, 0.025897078216075897, -0.7398748397827148, -0.3786667287349701, 0.9948093295097351, 0.5789315700531006, 0.7688028812408447, 0.14715105295181274, 0.9140446782112122, -0.07084082067012787, 0.20394761860370636, -0.7282999157905579, 0.7341648936271667, 0.17365583777427673, -0.44570019841194153, -0.18151575326919556, -0.3016220033168793, -0.9943526983261108, 0.40913933515548706, -0.22570401430130005, -1.1128557920455933, 0.23821112513542175, 0.008799916133284569, -0.3739672899246216, 0.3496052026748657, -0.6729021072387695, 0.9355496764183044, -0.33307138085365295, -0.31013593077659607, 0.057359229773283005, -0.6132475733757019, 0.4912034869194031, 0.10588034987449646, 0.15079417824745178, -0.42877787351608276, -0.04282863065600395, 0.9401873350143433, -0.8099949359893799, 0.8050171732902527, -0.22466036677360535, -0.08930665254592896, 0.5067219734191895, 0.08276737481355667, 0.4662015438079834, 0.11367277801036835, -0.04954778775572777, 0.25450366735458374, 0.12648113071918488, -0.29379165172576904, -0.49476358294487, 0.6232245564460754, -0.9899792671203613, -0.825891375541687, -0.6488906741142273, -0.43805748224258423, 0.29194632172584534, 0.2669444978237152, 0.40213754773139954, 0.2503570020198822, 0.1612911820411682, -0.03320172801613808, 0.270786851644516, -0.46566909551620483, 0.5248923897743225, 0.4377344846725464, -0.487557977437973, -0.5756223797798157, 0.791510820388794, 0.09369424730539322, 0.1590874195098877, 0.033818744122982025, 0.4497188925743103, -0.5217048525810242, -0.3447429835796356, -0.35377416014671326, 0.4358746409416199, -0.6177337169647217, -0.3444613516330719, -0.5221922993659973, -0.35083362460136414, -0.5866589546203613, -0.05441058799624443, -0.33665016293525696, -0.45362457633018494, -0.4146290719509125, -0.24757887423038483, 0.5850287079811096, 0.7840542197227478, -0.09836821258068085, 0.3281151056289673, -0.6422040462493896, 0.19874870777130127, 0.013116632588207722, 0.12896037101745605, 0.13652242720127106, -0.7638269066810608, -0.0724189355969429, -0.03135126456618309, -0.4902166426181793, -0.9964269995689392, 0.7340400218963623, -0.1957433968782425, 0.6530619859695435, 0.17088496685028076, -0.09008040279150009, 0.899549663066864, -0.2012358158826828, 0.9462364315986633, 0.4317713975906372, -0.8731976747512817, 0.7692357301712036, -0.26714789867401123, 0.4481080174446106, 0.3456275463104248, 0.27468642592430115, -0.49354681372642517, -0.35707220435142517, -0.7987712621688843, -0.9368924498558044, 0.9718782901763916, 0.4247509241104126, -0.13274729251861572, 0.16979078948497772, 0.19338403642177582, -0.07564761489629745, 0.13125964999198914, -0.7434647679328918, -0.6974409222602844, -0.31846022605895996, -0.20549310743808746, 0.03224639222025871, -0.2767031788825989, 0.039891939610242844, -0.5608439445495605, 0.7724817395210266, 0.1472744196653366, 0.3620283901691437, 0.3373747169971466, 0.04225590080022812, 0.03880650922656059, 0.17823809385299683, 0.47912806272506714, 0.6175841689109802, -0.45725640654563904, -0.24350368976593018, 0.40420201420783997, -0.5090136528015137, 0.379120796918869, 0.08914938569068909, -0.2653023302555084, 0.03920590877532959, 0.2599044740200043, 1.0609450340270996, 0.05883275717496872, -0.39546313881874084, 0.5934499502182007, -0.16037486493587494, -0.19635188579559326, -0.4050051271915436, 0.16089609265327454, 0.12400154769420624, 0.4177184998989105, 0.25122392177581787, -0.20875917375087738, -0.07203996926546097, -0.5331510901451111, 0.004163176286965609, 0.1844078004360199, -0.1698165237903595, -0.21378912031650543, 0.8762943744659424, -0.03529122844338417, -0.28130990266799927, 0.5044540166854858, -0.2297457754611969, -0.626329243183136, 0.9556055068969727, 0.7891388535499573, 0.829143226146698, -0.37635165452957153, 0.08885107189416885, 0.8575625419616699, 0.1166551411151886, -0.04396750405430794, 0.5265839695930481, 0.20148395001888275, -0.45764878392219543, -0.043464962393045425, -0.6767152547836304, -0.10899373143911362, 0.3147672116756439, -0.5096138715744019, 0.41463184356689453, -0.605800986289978, -0.39103996753692627, -0.1881871223449707, 0.2928338944911957, -0.6735365390777588, 0.14061731100082397, 0.15258251130580902, 1.0173969268798828, -0.8684083819389343, 0.6279391050338745, 0.72052001953125, -0.6459158658981323, -1.1558763980865479, -0.2999087870121002, 0.21683506667613983, -0.9999516606330872, 0.4659622311592102, 0.23752649128437042, 0.10307320952415466, -0.12602290511131287, -0.5009725093841553, -1.0885086059570312, 1.590836524963379, 0.2427680790424347, -0.5270755290985107, 0.002601173473522067, -0.05756750702857971, 0.5725512504577637, -0.2985484004020691, 0.7106183171272278, 0.5728222727775574, 0.49601736664772034, 0.13271553814411163, -1.253321647644043, 0.4857884347438812, -0.48198506236076355, -0.10174041241407394, 0.010754384100437164, -1.0727753639221191, 1.096474528312683, -0.28789231181144714, -0.1276444047689438, 0.2317073792219162, 0.634654700756073, 0.6574270725250244, 0.2867562174797058, 0.46667972207069397, 0.5158403515815735, 0.7923457026481628, -0.09669892489910126, 1.1388323307037354, -0.27480030059814453, 0.6013869643211365, 0.9044796228408813, 0.11040330678224564, 0.6074467301368713, 0.2224438637495041, -0.4841783046722412, 0.5094516277313232, 0.8008257746696472, -0.29425522685050964, 0.27485135197639465, 0.06696110218763351, -0.16408908367156982, -0.030058367177844048, -0.12231802940368652, -0.49565449357032776, 0.5558472871780396, 0.2848142087459564, -0.21307803690433502, -0.2524779438972473, -0.11832419037818909, 0.19157753884792328, -0.23189495503902435, -0.3016091287136078, 0.6757634282112122, 0.2641468942165375, -0.44705307483673096, 0.9818124771118164, 0.02597973681986332, 0.7900640964508057, -0.6198014616966248, -0.11545323580503464, -0.3847115635871887, 0.06572744995355606, -0.4886740744113922, -0.910209059715271, -0.10011059045791626, 0.027406031265854836, 0.1031649261713028, 0.06402931362390518, 0.7699390053749084, -0.19047170877456665, -0.6891329288482666, 0.4349728226661682, 0.4881666898727417, 0.4347645938396454, 0.3636453449726105, -0.9891466498374939, 0.22376927733421326, 0.19854950904846191, -0.3873923718929291, 0.13161557912826538, 0.16633340716362, -0.09752875566482544, 0.7675668001174927, 0.699185848236084, 0.07256859540939331, 0.10699088871479034, 0.06086354702711105, 1.0638444423675537, -0.7247717380523682, -0.6242016553878784, -0.9618756771087646, 0.7415779829025269, -0.09085811674594879, -0.4811284840106964, 0.9401953816413879, 0.7128812074661255, 0.625511646270752, 0.09640693664550781, 0.6206027865409851, -0.24553212523460388, 0.2755642235279083, -0.5724294185638428, 0.8231670260429382, -0.7418584227561951, 0.3217618465423584, -0.24544037878513336, -0.8790774345397949, -0.08187730610370636, 0.7317044734954834, -0.2998347878456116, 0.025699058547616005, 0.5338402390480042, 0.9805349707603455, -0.035001594573259354, -0.2698512673377991, 0.1377587914466858, 0.5510939955711365, 0.3592933118343353, 0.9491392374038696, 0.814704179763794, -0.7630410194396973, 0.4641369879245758, -0.5750494599342346, -0.319985032081604, -0.334375262260437, -0.7150371670722961, -1.0470294952392578, -0.2765142023563385, -0.20761579275131226, -0.5563650727272034, -0.07641424983739853, 1.2721760272979736, 0.4257971942424774, -0.6969839334487915, -0.43433329463005066, 0.23380760848522186, 0.20906715095043182, -0.2081378549337387, -0.2400658130645752, 0.6634846925735474, -0.042851969599723816, -0.8249103426933289, 0.3048383891582489, -0.050514739006757736, 0.4075826108455658, -0.12196405977010727, -0.163031667470932, -0.28683409094810486, -0.14958514273166656, 0.4468037784099579, 0.295240193605423, -0.7830473184585571, -0.1131613627076149, 0.004564681556075811, -0.24125482141971588, 0.36772868037223816, 0.07983570545911789, -0.7257919907569885, 0.3655388653278351, 0.6089160442352295, 0.04054857790470123, 0.7229575514793396, -0.0005848733126185834, 0.3726344406604767, -0.4793374240398407, 0.42767640948295593, -0.01132414024323225, 0.5473414063453674, 0.12981218099594116, -0.3814806342124939, 0.6406863927841187, 0.28325384855270386, -0.489279568195343, -0.8609337210655212, -0.24151840806007385, -1.138270378112793, -0.2325364500284195, 1.15871000289917, -0.09729685634374619, -0.5972248911857605, 0.1546439677476883, -0.6700703501701355, 0.4287009537220001, -0.589110791683197, 0.6897701621055603, 0.39575982093811035, -0.24244709312915802, -0.18190768361091614, -0.5642443299293518, 0.3102792799472809, 0.29821157455444336, -0.8177641034126282, -0.33284011483192444, 0.3031458258628845, 0.50417560338974, 0.055428508669137955, 1.007496953010559, -0.1292387992143631, 0.2870387136936188, -0.06905680149793625, 0.0661412924528122, -0.4072483479976654, 0.057202935218811035, -0.47093889117240906, -0.23519018292427063, -0.19334843754768372, -0.5251916646957397 ]
sentence-transformers/multi-qa-distilbert-cos-v1
sentence-transformers
"2023-11-02T09:30:28Z"
13,063
14
sentence-transformers
[ "sentence-transformers", "pytorch", "distilbert", "feature-extraction", "sentence-similarity", "en", "dataset:flax-sentence-embeddings/stackexchange_xml", "dataset:ms_marco", "dataset:gooaq", "dataset:yahoo_answers_topics", "dataset:search_qa", "dataset:eli5", "dataset:natural_questions", "dataset:trivia_qa", "dataset:embedding-data/QQP", "dataset:embedding-data/PAQ_pairs", "dataset:embedding-data/Amazon-QA", "dataset:embedding-data/WikiAnswers", "endpoints_compatible", "has_space", "region:us" ]
sentence-similarity
"2022-03-02T23:29:05Z"
--- language: - en pipeline_tag: sentence-similarity tags: - sentence-transformers - feature-extraction - sentence-similarity datasets: - flax-sentence-embeddings/stackexchange_xml - ms_marco - gooaq - yahoo_answers_topics - search_qa - eli5 - natural_questions - trivia_qa - embedding-data/QQP - embedding-data/PAQ_pairs - embedding-data/Amazon-QA - embedding-data/WikiAnswers --- # multi-qa-distilbert-cos-v1 This is a [sentence-transformers](https://www.SBERT.net) model: It maps sentences & paragraphs to a 768 dimensional dense vector space and was designed for **semantic search**. It has been trained on 215M (question, answer) pairs from diverse sources. For an introduction to semantic search, have a look at: [SBERT.net - Semantic Search](https://www.sbert.net/examples/applications/semantic-search/README.html) ## Usage (Sentence-Transformers) Using this model becomes easy when you have [sentence-transformers](https://www.SBERT.net) installed: ``` pip install -U sentence-transformers ``` Then you can use the model like this: ```python from sentence_transformers import SentenceTransformer, util query = "How many people live in London?" docs = ["Around 9 Million people live in London", "London is known for its financial district"] #Load the model model = SentenceTransformer('sentence-transformers/multi-qa-distilbert-cos-v1') #Encode query and documents query_emb = model.encode(query) doc_emb = model.encode(docs) #Compute dot score between query and all document embeddings scores = util.dot_score(query_emb, doc_emb)[0].cpu().tolist() #Combine docs & scores doc_score_pairs = list(zip(docs, scores)) #Sort by decreasing score doc_score_pairs = sorted(doc_score_pairs, key=lambda x: x[1], reverse=True) #Output passages & scores for doc, score in doc_score_pairs: print(score, doc) ``` ## Usage (HuggingFace Transformers) Without [sentence-transformers](https://www.SBERT.net), you can use the model like this: First, you pass your input through the transformer model, then you have to apply the correct pooling-operation on-top of the contextualized word embeddings. ```python from transformers import AutoTokenizer, AutoModel import torch import torch.nn.functional as F #Mean Pooling - Take average of all tokens def mean_pooling(model_output, attention_mask): token_embeddings = model_output.last_hidden_state #First element of model_output contains all token embeddings input_mask_expanded = attention_mask.unsqueeze(-1).expand(token_embeddings.size()).float() return torch.sum(token_embeddings * input_mask_expanded, 1) / torch.clamp(input_mask_expanded.sum(1), min=1e-9) #Encode text def encode(texts): # Tokenize sentences encoded_input = tokenizer(texts, padding=True, truncation=True, return_tensors='pt') # Compute token embeddings with torch.no_grad(): model_output = model(**encoded_input, return_dict=True) # Perform pooling embeddings = mean_pooling(model_output, encoded_input['attention_mask']) # Normalize embeddings embeddings = F.normalize(embeddings, p=2, dim=1) return embeddings # Sentences we want sentence embeddings for query = "How many people live in London?" docs = ["Around 9 Million people live in London", "London is known for its financial district"] # Load model from HuggingFace Hub tokenizer = AutoTokenizer.from_pretrained("sentence-transformers/multi-qa-distilbert-cos-v1") model = AutoModel.from_pretrained("sentence-transformers/multi-qa-distilbert-cos-v1") #Encode query and docs query_emb = encode(query) doc_emb = encode(docs) #Compute dot score between query and all document embeddings scores = torch.mm(query_emb, doc_emb.transpose(0, 1))[0].cpu().tolist() #Combine docs & scores doc_score_pairs = list(zip(docs, scores)) #Sort by decreasing score doc_score_pairs = sorted(doc_score_pairs, key=lambda x: x[1], reverse=True) #Output passages & scores for doc, score in doc_score_pairs: print(score, doc) ``` ## Technical Details In the following some technical details how this model must be used: | Setting | Value | | --- | :---: | | Dimensions | 768 | | Produces normalized embeddings | Yes | | Pooling-Method | Mean pooling | | Suitable score functions | dot-product (`util.dot_score`), cosine-similarity (`util.cos_sim`), or euclidean distance | Note: When loaded with `sentence-transformers`, this model produces normalized embeddings with length 1. In that case, dot-product and cosine-similarity are equivalent. dot-product is preferred as it is faster. Euclidean distance is proportional to dot-product and can also be used. ---- ## Background The project aims to train sentence embedding models on very large sentence level datasets using a self-supervised contrastive learning objective. We use a contrastive learning objective: given a sentence from the pair, the model should predict which out of a set of randomly sampled other sentences, was actually paired with it in our dataset. We developped this model during the [Community week using JAX/Flax for NLP & CV](https://discuss.huggingface.co/t/open-to-the-community-community-week-using-jax-flax-for-nlp-cv/7104), organized by Hugging Face. We developped this model as part of the project: [Train the Best Sentence Embedding Model Ever with 1B Training Pairs](https://discuss.huggingface.co/t/train-the-best-sentence-embedding-model-ever-with-1b-training-pairs/7354). We benefited from efficient hardware infrastructure to run the project: 7 TPUs v3-8, as well as intervention from Googles Flax, JAX, and Cloud team member about efficient deep learning frameworks. ## Intended uses Our model is intented to be used for semantic search: It encodes queries / questions and text paragraphs in a dense vector space. It finds relevant documents for the given passages. Note that there is a limit of 512 word pieces: Text longer than that will be truncated. Further note that the model was just trained on input text up to 250 word pieces. It might not work well for longer text. ## Training procedure The full training script is accessible in this current repository: `train_script.py`. ### Pre-training We use the pretrained [`distilbert-base-uncased`](https://huggingface.co/distilbert-base-uncased) model. Please refer to the model card for more detailed information about the pre-training procedure. #### Training We use the concatenation from multiple datasets to fine-tune our model. In total we have about 215M (question, answer) pairs. We sampled each dataset given a weighted probability which configuration is detailed in the `data_config.json` file. The model was trained with [MultipleNegativesRankingLoss](https://www.sbert.net/docs/package_reference/losses.html#multiplenegativesrankingloss) using Mean-pooling, cosine-similarity as similarity function, and a scale of 20. | Dataset | Number of training tuples | |--------------------------------------------------------|:--------------------------:| | [WikiAnswers](https://github.com/afader/oqa#wikianswers-corpus) Duplicate question pairs from WikiAnswers | 77,427,422 | | [PAQ](https://github.com/facebookresearch/PAQ) Automatically generated (Question, Paragraph) pairs for each paragraph in Wikipedia | 64,371,441 | | [Stack Exchange](https://huggingface.co/datasets/flax-sentence-embeddings/stackexchange_xml) (Title, Body) pairs from all StackExchanges | 25,316,456 | | [Stack Exchange](https://huggingface.co/datasets/flax-sentence-embeddings/stackexchange_xml) (Title, Answer) pairs from all StackExchanges | 21,396,559 | | [MS MARCO](https://microsoft.github.io/msmarco/) Triplets (query, answer, hard_negative) for 500k queries from Bing search engine | 17,579,773 | | [GOOAQ: Open Question Answering with Diverse Answer Types](https://github.com/allenai/gooaq) (query, answer) pairs for 3M Google queries and Google featured snippet | 3,012,496 | | [Amazon-QA](http://jmcauley.ucsd.edu/data/amazon/qa/) (Question, Answer) pairs from Amazon product pages | 2,448,839 | [Yahoo Answers](https://www.kaggle.com/soumikrakshit/yahoo-answers-dataset) (Title, Answer) pairs from Yahoo Answers | 1,198,260 | | [Yahoo Answers](https://www.kaggle.com/soumikrakshit/yahoo-answers-dataset) (Question, Answer) pairs from Yahoo Answers | 681,164 | | [Yahoo Answers](https://www.kaggle.com/soumikrakshit/yahoo-answers-dataset) (Title, Question) pairs from Yahoo Answers | 659,896 | | [SearchQA](https://huggingface.co/datasets/search_qa) (Question, Answer) pairs for 140k questions, each with Top5 Google snippets on that question | 582,261 | | [ELI5](https://huggingface.co/datasets/eli5) (Question, Answer) pairs from Reddit ELI5 (explainlikeimfive) | 325,475 | | [Stack Exchange](https://huggingface.co/datasets/flax-sentence-embeddings/stackexchange_xml) Duplicate questions pairs (titles) | 304,525 | | [Quora Question Triplets](https://quoradata.quora.com/First-Quora-Dataset-Release-Question-Pairs) (Question, Duplicate_Question, Hard_Negative) triplets for Quora Questions Pairs dataset | 103,663 | | [Natural Questions (NQ)](https://ai.google.com/research/NaturalQuestions) (Question, Paragraph) pairs for 100k real Google queries with relevant Wikipedia paragraph | 100,231 | | [SQuAD2.0](https://rajpurkar.github.io/SQuAD-explorer/) (Question, Paragraph) pairs from SQuAD2.0 dataset | 87,599 | | [TriviaQA](https://huggingface.co/datasets/trivia_qa) (Question, Evidence) pairs | 73,346 | | **Total** | **214,988,242** |
[ -0.39197173714637756, -0.8604073524475098, 0.40482693910598755, 0.23900577425956726, -0.11869851499795914, -0.24466568231582642, -0.12427036464214325, -0.18289409577846527, 0.24377226829528809, 0.27699705958366394, -0.4954872727394104, -0.6104397773742676, -0.6359224319458008, 0.1838671863079071, -0.3968929350376129, 0.89864182472229, -0.02184445597231388, 0.1056697741150856, -0.34755632281303406, -0.3201572299003601, -0.25205832719802856, -0.4385499060153961, -0.3794461488723755, -0.03973231837153435, 0.3439059257507324, 0.28458625078201294, 0.552238404750824, 0.29672306776046753, 0.38925454020500183, 0.38623514771461487, 0.006644221022725105, 0.24587593972682953, -0.5326815247535706, -0.052140478044748306, 0.00826004333794117, -0.42553824186325073, -0.06920590251684189, 0.32406720519065857, 0.43991586565971375, 0.4749740660190582, -0.05325497314333916, 0.1539241373538971, 0.03143417835235596, 0.49197378754615784, -0.38333946466445923, 0.21063676476478577, -0.460831880569458, 0.09285210818052292, 0.0619061216711998, -0.09900863468647003, -0.33294713497161865, -0.2867923378944397, 0.3273138105869293, -0.6761491894721985, 0.24127139151096344, 0.17328724265098572, 1.0836031436920166, 0.23152442276477814, -0.4375932216644287, -0.5021162629127502, -0.17047946155071259, 0.8445295095443726, -0.7341262698173523, 0.3544314503669739, 0.3429679870605469, -0.11616501957178116, -0.06288149952888489, -0.772158145904541, -0.7945777177810669, -0.158037006855011, -0.34604015946388245, 0.29744061827659607, -0.19055119156837463, -0.06433854252099991, 0.22995507717132568, 0.43925485014915466, -0.7725731730461121, -0.010436797514557838, -0.434002161026001, -0.17456889152526855, 0.7169352769851685, 0.10852852463722229, 0.2889474034309387, -0.5631372928619385, -0.49988263845443726, -0.3310171365737915, -0.2541626989841461, 0.13144433498382568, 0.27390462160110474, 0.04277583956718445, -0.19151301681995392, 0.7399864196777344, -0.22180089354515076, 0.6202790141105652, 0.07175540924072266, 0.005444310139864683, 0.5383521318435669, -0.5227441787719727, -0.15029293298721313, -0.2893819510936737, 1.0643391609191895, 0.4007090926170349, 0.19268421828746796, -0.07551361620426178, -0.04356912150979042, 0.03934202343225479, 0.09921958297491074, -0.8310324549674988, -0.2874290943145752, 0.34393244981765747, -0.37570634484291077, -0.30455705523490906, 0.179625004529953, -0.6365557312965393, -0.15384340286254883, -0.10968132317066193, 0.7499102354049683, -0.6933513283729553, 0.0009807480964809656, 0.42253702878952026, -0.381343275308609, 0.3278886377811432, 0.02712908573448658, -0.5831589698791504, 0.1660812348127365, 0.3490571081638336, 0.7902538776397705, 0.05858068913221359, -0.40525925159454346, -0.33908993005752563, -0.20740057528018951, -0.018887145444750786, 0.6093337535858154, -0.40581098198890686, -0.15925733745098114, 0.022718893364071846, 0.10814785212278366, -0.3037078082561493, -0.3490977883338928, 0.5744270086288452, -0.42788222432136536, 0.7850821018218994, -0.12748900055885315, -0.9326711297035217, -0.1724260002374649, 0.3332563042640686, -0.568300724029541, 1.160217523574829, 0.2783321440219879, -1.0119479894638062, 0.06716153025627136, -0.6293274760246277, -0.1976524442434311, -0.21860818564891815, -0.09439166635274887, -0.5346273183822632, 0.028068408370018005, 0.4307294487953186, 0.6166582107543945, -0.14001603424549103, 0.03206856921315193, -0.2880203425884247, -0.4260129928588867, 0.3198298513889313, -0.16410954296588898, 1.0148084163665771, 0.0485561341047287, -0.33958494663238525, -0.105353444814682, -0.696399986743927, -0.049030203372240067, 0.336347371339798, -0.28697583079338074, -0.29056376218795776, -0.24962367117404938, 0.15174250304698944, 0.48707935214042664, 0.28719422221183777, -0.7020688652992249, 0.2319869101047516, -0.580195963382721, 0.6298916935920715, 0.6043986082077026, 0.00584270479157567, 0.42201337218284607, -0.40877169370651245, 0.39342769980430603, 0.25401708483695984, 0.062154680490493774, -0.0879392921924591, -0.4507669508457184, -0.8753195405006409, -0.1300259381532669, 0.34484297037124634, 0.5460613369941711, -0.7059264779090881, 0.7382408976554871, -0.3221413791179657, -0.5016651153564453, -0.8657594323158264, 0.10688798874616623, 0.3013472855091095, 0.5762547254562378, 0.6736248731613159, -0.07126355916261673, -0.33667653799057007, -0.8911105990409851, -0.08163784444332123, 0.07959519326686859, -0.03007439710199833, 0.30005982518196106, 0.6676741242408752, -0.19358186423778534, 0.8448123335838318, -0.8379177451133728, -0.49939507246017456, -0.12567150592803955, 0.10377904027700424, 0.22932501137256622, 0.46721547842025757, 0.5473634004592896, -0.834924578666687, -0.5103171467781067, -0.5279351472854614, -0.7200320363044739, 0.10462529957294464, -0.08420819789171219, -0.24077051877975464, 0.19350014626979828, 0.6129184365272522, -0.741343080997467, 0.2952211797237396, 0.5055960416793823, -0.5417778491973877, 0.3645116686820984, -0.2696990966796875, -0.017926998436450958, -1.3687305450439453, 0.03647501766681671, 0.108467236161232, -0.10405139625072479, -0.3189205527305603, 0.12198831140995026, -0.00035437699989415705, -0.09524127840995789, -0.4249819815158844, 0.4724758565425873, -0.505005419254303, 0.1787003129720688, 0.15300966799259186, 0.5563251972198486, 0.321679949760437, 0.6968724727630615, -0.1392829865217209, 0.676713764667511, 0.42227426171302795, -0.4954955577850342, 0.3849247395992279, 0.6590026021003723, -0.384480357170105, 0.4166339933872223, -0.7756718397140503, 0.08626585453748703, -0.14665573835372925, 0.31218960881233215, -1.1250747442245483, -0.003645379329100251, 0.11497154086828232, -0.6232162117958069, 0.1602773368358612, 0.2604677975177765, -0.6203543543815613, -0.5177095532417297, -0.6370574235916138, 0.1605236679315567, 0.37412574887275696, -0.4431403577327728, 0.4418862462043762, 0.31936362385749817, 0.035680487751960754, -0.6507818102836609, -0.8632632493972778, -0.1984695941209793, -0.139192596077919, -0.818780779838562, 0.5215661525726318, -0.20945678651332855, 0.13105803728103638, 0.25024929642677307, 0.13128487765789032, 0.07067563384771347, 0.05831334739923477, 0.0685683861374855, 0.19199329614639282, -0.09202747046947479, 0.4341195821762085, -0.04259609058499336, -0.11118460446596146, -0.018181074410676956, -0.23993030190467834, 0.6978118419647217, -0.34789058566093445, -0.16244637966156006, -0.39205315709114075, 0.3990878462791443, 0.3549163341522217, -0.3154732286930084, 1.0025285482406616, 0.9829202890396118, -0.26558390259742737, -0.03623814135789871, -0.6297526359558105, -0.19779855012893677, -0.4733659029006958, 0.5467548966407776, -0.34664666652679443, -1.0154598951339722, 0.4101128876209259, 0.23556990921497345, 0.016080304980278015, 0.8042293787002563, 0.41943463683128357, -0.2736451327800751, 0.8884826898574829, 0.4124620854854584, -0.12273858487606049, 0.3957865238189697, -0.6572810411453247, 0.24831755459308624, -0.75147944688797, -0.18904267251491547, -0.37802281975746155, -0.3088281452655792, -0.9309671521186829, -0.4778425991535187, 0.3830924928188324, 0.0974249318242073, -0.13977670669555664, 0.39437633752822876, -0.6785942912101746, 0.1948348879814148, 0.6794736981391907, 0.2949417531490326, -0.006342791486531496, -0.025451214984059334, -0.2531515657901764, -0.10001148283481598, -0.7445687055587769, -0.32973092794418335, 1.159103274345398, 0.36293429136276245, 0.5234739780426025, -0.02026442438364029, 0.8995481133460999, 0.09137500822544098, -0.07598289847373962, -0.6491550207138062, 0.49476927518844604, -0.28250569105148315, -0.4756228029727936, -0.359675794839859, -0.4969139099121094, -0.9580723643302917, 0.2778705358505249, -0.39213040471076965, -0.4320922791957855, 0.04055340215563774, -0.19715428352355957, -0.3874427378177643, 0.1104639321565628, -0.8253939151763916, 1.0178097486495972, -0.06292722374200821, -0.32509303092956543, -0.24464386701583862, -0.7009750008583069, 0.14106406271457672, 0.22336477041244507, 0.08340612798929214, -0.07747893035411835, -0.06462323665618896, 0.8776792287826538, -0.3749636709690094, 0.560326337814331, -0.11603330075740814, 0.172170951962471, 0.30944815278053284, -0.3223877251148224, 0.30008894205093384, 0.04799118638038635, -0.05787621811032295, -0.022761020809412003, 0.15020334720611572, -0.6192072033882141, -0.5306623578071594, 0.749305248260498, -1.0413384437561035, -0.4688377380371094, -0.5434450507164001, -0.46907278895378113, -0.14948523044586182, 0.1461489200592041, 0.3981202244758606, 0.5141894817352295, -0.15833835303783417, 0.43792444467544556, 0.6929542422294617, -0.48723104596138, 0.4894827604293823, 0.3145429193973541, -0.05206318572163582, -0.5034170746803284, 0.7868168354034424, 0.14490805566310883, 0.050448644906282425, 0.6045066714286804, 0.2538057863712311, -0.5221354961395264, -0.32289767265319824, -0.18251149356365204, 0.41824379563331604, -0.6224984526634216, -0.24725566804409027, -1.0121896266937256, -0.3726300597190857, -0.7122312784194946, -0.04616992175579071, -0.16608926653862, -0.4811467230319977, -0.4668871760368347, -0.28426453471183777, 0.37343549728393555, 0.595557689666748, 0.06001213565468788, 0.11523432284593582, -0.6314349174499512, 0.30221083760261536, 0.34981390833854675, 0.1828206479549408, -0.16446112096309662, -0.5885806679725647, -0.23648032546043396, 0.019128626212477684, -0.4435693919658661, -0.857300341129303, 0.43635234236717224, 0.20213830471038818, 0.5280160903930664, 0.18995925784111023, 0.1795845925807953, 0.6085318326950073, -0.2591811716556549, 0.8826979994773865, 0.06973715871572495, -0.7882829308509827, 0.4927093982696533, -0.13823950290679932, 0.3920847475528717, 0.6941815614700317, 0.5915770530700684, -0.48745638132095337, -0.3989458978176117, -0.7475598454475403, -0.9327104687690735, 0.6083015203475952, 0.3271867036819458, 0.29184964299201965, -0.2179548591375351, 0.29742342233657837, -0.06166214495897293, 0.14142189919948578, -0.8695008158683777, -0.39092376828193665, -0.25054508447647095, -0.5087950825691223, -0.2388986498117447, -0.24991638958454132, 0.030367745086550713, -0.4823642671108246, 0.8086947202682495, -0.06706266850233078, 0.4999502897262573, 0.5024159550666809, -0.3959360718727112, 0.41251498460769653, 0.14243100583553314, 0.48319822549819946, 0.3433377146720886, -0.21218056976795197, 0.013001690618693829, 0.22524608671665192, -0.3899218440055847, -0.06426290422677994, 0.49924179911613464, -0.07695067673921585, 0.07574496418237686, 0.3682219386100769, 0.735759437084198, 0.2804778814315796, -0.5527689456939697, 0.8482651710510254, -0.24012522399425507, -0.26138854026794434, -0.45037928223609924, -0.14317049086093903, 0.29506057500839233, 0.21220789849758148, 0.25015947222709656, -0.2088390588760376, 0.13723909854888916, -0.45810139179229736, 0.37303751707077026, 0.2870287001132965, -0.3728983402252197, -0.08444751799106598, 0.5305027365684509, 0.1771651655435562, -0.05519365891814232, 0.9135294556617737, -0.33867114782333374, -0.6044704914093018, 0.4654744267463684, 0.3835979998111725, 0.7314151525497437, 0.03935940936207771, 0.35487833619117737, 0.6201034784317017, 0.25079867243766785, 0.12472738325595856, 0.1872713267803192, 0.0756998136639595, -0.7500320672988892, -0.09713278710842133, -0.8230225443840027, -0.05042238160967827, 0.09697119891643524, -0.5240836143493652, 0.2997259199619293, -0.19059713184833527, -0.023843837901949883, 0.040294814854860306, 0.4032464027404785, -0.9408363699913025, 0.16767241060733795, 0.012693732976913452, 0.9497031569480896, -0.8735610246658325, 0.666664719581604, 0.6719432473182678, -0.9030977487564087, -0.8311133980751038, -0.04596873000264168, -0.27829039096832275, -0.8017932772636414, 0.3970659077167511, 0.5172578692436218, 0.1797729730606079, 0.1133999228477478, -0.4430069923400879, -0.8248652815818787, 1.3586856126785278, 0.1869788020849228, -0.37290239334106445, -0.26307642459869385, 0.20986366271972656, 0.6176770925521851, -0.3541370630264282, 0.5130773186683655, 0.375482976436615, 0.31707125902175903, -0.12411629408597946, -0.6696837544441223, 0.12793585658073425, -0.36879247426986694, -0.028557252138853073, -0.12055768817663193, -0.8224789500236511, 0.9106233716011047, -0.0875493660569191, -0.12101373821496964, 0.004582902882248163, 0.6510643362998962, 0.28342920541763306, 0.14502105116844177, 0.5001618266105652, 0.9559981226921082, 0.7456850409507751, -0.06039528176188469, 1.0942456722259521, -0.3938255310058594, 0.5805273652076721, 0.9310305714607239, 0.1750914752483368, 0.9465318918228149, 0.38423606753349304, -0.21821896731853485, 0.7146376371383667, 0.6347634792327881, -0.12749718129634857, 0.4939489960670471, 0.2321140468120575, -0.007648066617548466, -0.12623931467533112, 0.04464225471019745, -0.37536343932151794, 0.6183698177337646, 0.16905617713928223, -0.4971412420272827, -0.09686470776796341, 0.04958762228488922, 0.10250575840473175, 0.13541977107524872, 0.06703439354896545, 0.722737729549408, 0.14468985795974731, -0.5805296301841736, 0.5397383570671082, 0.06737314164638519, 0.9370279312133789, -0.4880169928073883, 0.14798441529273987, -0.23859602212905884, 0.2578752934932709, -0.13276879489421844, -0.7878851890563965, 0.23708680272102356, -0.3202439844608307, -0.15511810779571533, -0.24055980145931244, 0.5481462478637695, -0.6537396311759949, -0.5945584177970886, 0.4958779513835907, 0.5387917160987854, 0.07796420902013779, -0.13453881442546844, -1.0440188646316528, -0.20128017663955688, -0.00671321339905262, -0.5140678286552429, 0.23399776220321655, 0.45928746461868286, 0.2992149889469147, 0.44103315472602844, 0.5152091979980469, -0.28648415207862854, 0.14721156656742096, 0.0020242235623300076, 0.9148325324058533, -0.7173740267753601, -0.5209795832633972, -0.6989718675613403, 0.5445367693901062, -0.3331851065158844, -0.5076319575309753, 0.7881614565849304, 0.6815006732940674, 0.9721620678901672, -0.0816342681646347, 0.5654363036155701, -0.12890377640724182, 0.39904990792274475, -0.5252481698989868, 0.6751754879951477, -0.700011670589447, -0.020632388070225716, -0.21592116355895996, -0.8040031790733337, -0.09482789784669876, 0.7063078284263611, -0.34219926595687866, 0.026059217751026154, 0.7827117443084717, 0.8845883011817932, -0.034852780401706696, -0.09789425879716873, 0.14116956293582916, 0.35831186175346375, 0.17649684846401215, 0.7470042109489441, 0.5161657929420471, -0.9045179486274719, 0.7606799602508545, -0.4482235908508301, -0.06789864599704742, -0.19599835574626923, -0.6078460812568665, -0.8744050860404968, -0.8752169609069824, -0.3765507936477661, -0.48907655477523804, -0.16272050142288208, 0.8746465444564819, 0.5684194564819336, -0.7328759431838989, 0.020906878635287285, -0.10062361508607864, 0.014637704938650131, -0.03846902400255203, -0.3195616900920868, 0.5719950199127197, -0.38012802600860596, -0.6968474984169006, 0.14617229998111725, -0.036414165049791336, -0.06353568285703659, -0.33614495396614075, 0.01701703481376171, -0.7656644582748413, 0.11799657344818115, 0.6462380886077881, -0.10232170671224594, -0.6233568787574768, -0.3378796875476837, 0.250232994556427, -0.4336562156677246, 0.04663846641778946, 0.29800698161125183, -0.6857587099075317, 0.377537339925766, 0.6367484927177429, 0.5793263912200928, 0.7591702938079834, -0.0229107104241848, 0.35469937324523926, -0.7581621408462524, 0.09229113161563873, 0.24019266664981842, 0.43480178713798523, 0.48345810174942017, -0.3341221213340759, 0.6472298502922058, 0.34395158290863037, -0.5547598004341125, -0.5401806235313416, -0.08072332292795181, -1.0796663761138916, -0.3496769368648529, 1.1544634103775024, -0.28930625319480896, -0.22311966121196747, 0.1056322306394577, -0.24903732538223267, 0.33944663405418396, -0.35075390338897705, 0.7676064372062683, 0.8211994767189026, -0.07725709676742554, -0.13794773817062378, -0.33995911478996277, 0.37687182426452637, 0.4941430687904358, -0.6691201329231262, -0.4220835566520691, 0.35092151165008545, 0.5286475419998169, 0.38361677527427673, 0.6018933057785034, -0.11590328812599182, 0.05767150595784187, 0.04667315632104874, -0.037581805139780045, -0.13902856409549713, 0.07826712727546692, -0.3198809325695038, 0.3500039279460907, -0.3246940076351166, -0.382536381483078 ]
TinyLlama/TinyLlama-1.1B-Chat-v0.3
TinyLlama
"2023-11-05T06:07:52Z"
13,057
33
transformers
[ "transformers", "pytorch", "safetensors", "llama", "text-generation", "en", "dataset:cerebras/SlimPajama-627B", "dataset:bigcode/starcoderdata", "dataset:OpenAssistant/oasst_top1_2023-08-25", "license:apache-2.0", "endpoints_compatible", "has_space", "text-generation-inference", "region:us" ]
text-generation
"2023-10-06T17:03:35Z"
--- license: apache-2.0 datasets: - cerebras/SlimPajama-627B - bigcode/starcoderdata - OpenAssistant/oasst_top1_2023-08-25 language: - en --- <div align="center"> # TinyLlama-1.1B </div> https://github.com/jzhang38/TinyLlama The TinyLlama project aims to **pretrain** a **1.1B Llama model on 3 trillion tokens**. With some proper optimization, we can achieve this within a span of "just" 90 days using 16 A100-40G GPUs 🚀🚀. The training has started on 2023-09-01. We adopted exactly the same architecture and tokenizer as Llama 2. This means TinyLlama can be plugged and played in many open-source projects built upon Llama. Besides, TinyLlama is compact with only 1.1B parameters. This compactness allows it to cater to a multitude of applications demanding a restricted computation and memory footprint. #### This Model This is the chat model finetuned on top of [PY007/TinyLlama-1.1B-intermediate-step-480k-1T](https://huggingface.co/PY007/TinyLlama-1.1B-intermediate-step-480k-1T). The dataset used is [OpenAssistant/oasst_top1_2023-08-25](https://huggingface.co/datasets/OpenAssistant/oasst_top1_2023-08-25) following the [chatml](https://github.com/openai/openai-python/blob/main/chatml.md) format. #### How to use You will need the transformers>=4.31 Do check the [TinyLlama](https://github.com/jzhang38/TinyLlama) github page for more information. ``` from transformers import AutoTokenizer import transformers import torch model = "PY007/TinyLlama-1.1B-Chat-v0.3" tokenizer = AutoTokenizer.from_pretrained(model) pipeline = transformers.pipeline( "text-generation", model=model, torch_dtype=torch.float16, device_map="auto", ) CHAT_EOS_TOKEN_ID = 32002 prompt = "How to get in a good university?" formatted_prompt = ( f"<|im_start|>user\n{prompt}<|im_end|>\n<|im_start|>assistant\n" ) sequences = pipeline( formatted_prompt, do_sample=True, top_k=50, top_p = 0.9, num_return_sequences=1, repetition_penalty=1.1, max_new_tokens=1024, eos_token_id=CHAT_EOS_TOKEN_ID, ) for seq in sequences: print(f"Result: {seq['generated_text']}") ```
[ -0.27325335144996643, -0.7821712493896484, 0.35720133781433105, 0.2366369217634201, -0.34354764223098755, -0.09902431815862656, -0.30005306005477905, -0.2716508209705353, 0.3612554669380188, 0.12968729436397552, -0.6859996318817139, -0.4231182038784027, -0.47976750135421753, -0.2442738115787506, -0.18523937463760376, 1.1266200542449951, 0.1537974327802658, -0.21632541716098785, 0.17845308780670166, 0.012149062007665634, -0.3092764616012573, -0.14244897663593292, -1.0511938333511353, -0.2610011398792267, 0.38363590836524963, 0.7690422534942627, 0.5513819456100464, 0.5603333711624146, 0.3739657700061798, 0.34099677205085754, -0.10355401039123535, 0.12818536162376404, -0.6691697239875793, -0.25442156195640564, 0.32818272709846497, -0.7146645188331604, -0.6297730803489685, 0.19975382089614868, 0.65704345703125, 0.24536211788654327, -0.1247582659125328, 0.6388202905654907, 0.05615706741809845, 0.23023363947868347, -0.36852461099624634, 0.3625076711177826, -0.5565255284309387, 0.0022912616841495037, -0.3411979079246521, 0.001483032014220953, -0.31758251786231995, -0.3026905953884125, 0.15587347745895386, -0.7592853903770447, 0.04724970459938049, 0.27860650420188904, 1.0559247732162476, 0.3397681713104248, -0.1676066368818283, -0.3326677083969116, -0.4655503034591675, 0.781887948513031, -0.7779780626296997, -0.07017391920089722, 0.3097856640815735, 0.45142310857772827, -0.14277012646198273, -1.0654815435409546, -0.7036858201026917, -0.200601264834404, -0.06240207329392433, -0.026910681277513504, -0.2596200406551361, -0.1461736112833023, 0.2826586365699768, 0.48903852701187134, -0.6483170986175537, 0.3249637186527252, -0.6799803376197815, -0.14151860773563385, 0.5574846863746643, 0.5379716753959656, 0.15981122851371765, -0.21690405905246735, -0.3010605573654175, -0.34047725796699524, -0.6320371031761169, 0.10953188687562943, 0.20905716717243195, 0.4848472476005554, -0.7404497265815735, 0.5163283944129944, -0.11842108517885208, 0.3323619067668915, 0.13392150402069092, -0.21969406306743622, 0.20371559262275696, -0.43254637718200684, -0.4873148202896118, -0.042269617319107056, 1.1407573223114014, 0.1229168102145195, -0.04005071520805359, 0.28973904252052307, 0.10507846623659134, 0.06745225936174393, -0.03488355129957199, -1.009250283241272, -0.44481122493743896, 0.35559600591659546, -0.49147480726242065, -0.5431429147720337, -0.21848119795322418, -0.7626669406890869, -0.12162517756223679, 0.06619828194379807, 0.6065078973770142, -0.24011823534965515, -0.13194987177848816, -0.09510917216539383, 0.20691464841365814, 0.22277508676052094, 0.2789236605167389, -1.047267198562622, 0.17311209440231323, 0.5278213620185852, 1.166774034500122, 0.20687267184257507, -0.3635677993297577, -0.30878952145576477, -0.21759618818759918, -0.2291782796382904, 0.5783928632736206, -0.11943863332271576, -0.29790449142456055, -0.30014246702194214, -0.12674248218536377, -0.13955548405647278, -0.4687260687351227, 0.14447247982025146, -0.2772182822227478, 0.4262017607688904, 0.16674087941646576, -0.34979769587516785, 0.018010804429650307, 0.14985767006874084, -0.41961511969566345, 1.1147221326828003, -0.1354934126138687, -0.5637690424919128, 0.11619439721107483, -0.8603991270065308, -0.002081480575725436, -0.18022409081459045, -0.11128958314657211, -0.44616296887397766, -0.011805800721049309, 0.22886909544467926, 0.3587936460971832, -0.3742184340953827, -0.0013269545743241906, -0.3409225046634674, -0.4914766848087311, 0.2317369282245636, -0.22848975658416748, 0.9774563312530518, 0.3985726237297058, -0.3715856671333313, 0.31243523955345154, -0.7473450303077698, -0.04517320916056633, 0.3543306887149811, -0.30121883749961853, 0.011219128035008907, -0.28019505739212036, 0.191107377409935, 0.16434559226036072, 0.402299165725708, -0.5435070991516113, 0.5592829585075378, -0.6911582350730896, 0.642457127571106, 0.9077023267745972, -0.22402089834213257, 0.5854642987251282, -0.4225643575191498, 0.34548819065093994, 0.1079695001244545, 0.2879244089126587, -0.2390264868736267, -0.7622960805892944, -1.2844160795211792, -0.3561786413192749, 0.30916231870651245, 0.3768017888069153, -0.589771032333374, 0.37173596024513245, -0.3019696772098541, -0.8676936626434326, -0.7029572129249573, 0.04864291101694107, 0.1865232139825821, 0.37574416399002075, 0.3100011646747589, -0.2751005291938782, -0.7927461862564087, -0.6343680620193481, 0.18225710093975067, -0.5086953639984131, -0.16632983088493347, 0.14337342977523804, 0.750380277633667, -0.4058575928211212, 0.9769700169563293, -0.5585759282112122, -0.5960751175880432, -0.18830908834934235, 0.1283656507730484, 0.4690415859222412, 0.6935286521911621, 0.548243522644043, -0.32709306478500366, -0.5030001997947693, -0.2053752839565277, -0.6270717978477478, -0.02924342267215252, -0.15786468982696533, -0.18836799263954163, 0.005257850047200918, 0.2559758722782135, -0.731053352355957, 0.4873002767562866, 0.5228191018104553, -0.38691696524620056, 0.2539324164390564, -0.06321896612644196, -0.17879559099674225, -1.2160712480545044, 0.06718321144580841, -0.13373827934265137, -0.1556529998779297, -0.55973219871521, 0.08875089138746262, -0.14583466947078705, -0.2402607947587967, -0.5709947943687439, 0.775360107421875, -0.16290739178657532, 0.09461292624473572, -0.3417901396751404, 0.10845451802015305, -0.2676422595977783, 0.6119166016578674, -0.20174488425254822, 0.7397323250770569, 0.5158915519714355, -0.4972277879714966, 0.35090744495391846, 0.43120479583740234, -0.2766284644603729, 0.09142664819955826, -0.8147345185279846, 0.27430903911590576, 0.24864989519119263, 0.36059972643852234, -1.125667691230774, -0.1992700845003128, 0.7072551250457764, -0.5681044459342957, 0.1831110417842865, -0.07939759641885757, -0.6282051205635071, -0.3976500928401947, -0.4428064227104187, 0.43354636430740356, 0.799631655216217, -0.6741666793823242, 0.26345908641815186, 0.48146602511405945, 0.055699627846479416, -0.22695650160312653, -0.7324559688568115, -0.010247498750686646, -0.2502270042896271, -0.7190513014793396, 0.20734621584415436, -0.09019725769758224, -0.04062894359230995, -0.2649282217025757, 0.0978267565369606, 0.04404835402965546, 0.05528581887483597, 0.4193379878997803, 0.331232488155365, -0.21025380492210388, -0.06702207028865814, -0.13590069115161896, -0.35404473543167114, -0.09537782520055771, -0.2700435519218445, 0.784123420715332, -0.508793294429779, -0.24169950187206268, -0.8428110480308533, -0.05649076774716377, 0.3365015685558319, 0.20500017702579498, 0.8126723170280457, 0.6893274188041687, -0.5044941306114197, 0.010940336622297764, -0.4053370952606201, -0.35400667786598206, -0.5541877150535583, 0.1009029820561409, -0.19037020206451416, -0.9305369257926941, 0.5980955362319946, 0.1388072520494461, 0.23753711581230164, 0.697494626045227, 0.9787096977233887, -0.1628507673740387, 0.8094794750213623, 0.5682826042175293, -0.09884005039930344, 0.5253170132637024, -0.75592041015625, 0.0872897133231163, -0.7193112969398499, -0.26186636090278625, -0.4613836407661438, -0.40518641471862793, -0.4796731770038605, -0.5845010280609131, 0.22992993891239166, 0.0732487291097641, -0.49314895272254944, 0.469494491815567, -0.52763831615448, 0.25761494040489197, 0.5627554059028625, 0.020168619230389595, 0.14440055191516876, -0.004055175464600325, -0.13599298894405365, -0.11497882753610611, -0.9032004475593567, -0.7952635884284973, 1.2995864152908325, 0.5574392676353455, 0.8405566215515137, -0.039969488978385925, 0.8623424172401428, -0.041712142527103424, 0.465463787317276, -0.6306429505348206, 0.6554901003837585, 0.1546928882598877, -0.6304675340652466, -0.23480160534381866, -0.32234716415405273, -0.949910581111908, 0.28267860412597656, -0.12774762511253357, -0.9246951341629028, 0.09821993857622147, 0.22424186766147614, -0.61626797914505, 0.2559603452682495, -0.6734291315078735, 1.0028733015060425, 0.00648266589269042, -0.1057932898402214, -0.1544526368379593, -0.5313567519187927, 0.411295086145401, -0.11920130252838135, 0.11010246723890305, -0.29883167147636414, -0.11567360907793045, 0.9970295429229736, -0.7201648950576782, 1.0563424825668335, -0.15969908237457275, 0.0594814158976078, 0.4218243360519409, -0.15619827806949615, 0.2961941063404083, 0.2754938304424286, 0.010478438809514046, 0.4261115491390228, 0.03651442006230354, -0.40601834654808044, -0.2294507920742035, 0.7344280481338501, -1.0784355401992798, -0.4487399756908417, -0.5733102560043335, -0.283143550157547, 0.1587289720773697, 0.018785513937473297, 0.4380935728549957, 0.09962400794029236, -0.14404365420341492, 0.13073186576366425, 0.29689234495162964, -0.15911543369293213, 0.5026382207870483, 0.3284050524234772, -0.35088637471199036, -0.2819425165653229, 0.8631604909896851, 0.11529865860939026, 0.021003613248467445, 0.08058445155620575, 0.1828627735376358, -0.18247179687023163, -0.3664231598377228, -0.5552582144737244, 0.2578686475753784, -0.44367367029190063, -0.2625724971294403, -0.4881846606731415, -0.3140929937362671, -0.4955335855484009, 0.06908398866653442, -0.6812427639961243, -0.5543978214263916, -0.7658517360687256, 0.16736122965812683, 0.40148359537124634, 0.4667220115661621, -0.25800764560699463, 0.7078882455825806, -0.6118208169937134, 0.22598645091056824, 0.42391082644462585, 0.0961681604385376, 0.18984867632389069, -0.9117932915687561, -0.4637281596660614, 0.22822529077529907, -0.5841124653816223, -0.6420156955718994, 0.4446506202220917, 0.33280715346336365, 0.3527858257293701, 0.5238223075866699, -0.09011144191026688, 0.9887710213661194, -0.40909114480018616, 0.8980451822280884, 0.19915896654129028, -0.8478535413742065, 0.8248471617698669, -0.15565940737724304, 0.2869033217430115, 0.4321398437023163, 0.1610042005777359, -0.4464912414550781, -0.5216435790061951, -0.7687654495239258, -0.7060956954956055, 1.058701992034912, 0.5217856168746948, 0.25128409266471863, 0.03247104212641716, 0.2745789587497711, -0.08197343349456787, -0.0012682020897045732, -0.7277297973632812, -0.4360593259334564, -0.23400422930717468, -0.3265741765499115, -0.20153096318244934, -0.2205265611410141, -0.2065201997756958, -0.45469826459884644, 0.7353394627571106, -0.14305534958839417, 0.6498388648033142, -0.08554903417825699, -0.1198531985282898, -0.09639466553926468, -0.031072411686182022, 0.7147305011749268, 0.4136030673980713, -0.2157638669013977, -0.15463581681251526, 0.38068661093711853, -0.5966355204582214, 0.18839120864868164, 0.0758311077952385, -0.055747512727975845, -0.03528565913438797, 0.2331489473581314, 0.9967649579048157, 0.2816540002822876, -0.4709162414073944, 0.5155105590820312, -0.2435506284236908, -0.09643768519163132, -0.457977294921875, 0.18604017794132233, 0.11673873662948608, 0.44303640723228455, 0.5562195777893066, -0.09714217483997345, -0.14359845221042633, -0.45931535959243774, -0.07098278403282166, 0.20007850229740143, -0.03177874535322189, -0.3973958492279053, 1.0189918279647827, 0.1185402050614357, -0.3108017146587372, 0.6777867674827576, -0.038346122950315475, -0.2874806225299835, 0.8568649888038635, 0.4757978916168213, 0.7202180027961731, 0.09384660422801971, -0.03544420003890991, 0.5705893039703369, 0.4661180078983307, -0.0963640958070755, 0.19552691280841827, 0.004757311660796404, -0.5401089787483215, -0.02387102134525776, -0.6781482696533203, -0.44931596517562866, 0.14742574095726013, -0.39340245723724365, 0.4442394971847534, -0.6638896465301514, -0.2046889066696167, -0.07056358456611633, 0.32094818353652954, -0.8481618762016296, 0.09853999316692352, 0.214865043759346, 0.9586073756217957, -0.7760741710662842, 1.0059412717819214, 0.6387103199958801, -0.3980759084224701, -1.0053883790969849, -0.2323206216096878, 0.21122810244560242, -1.02336585521698, 0.5333185791969299, 0.3648444712162018, 0.29189473390579224, 0.1574198305606842, -0.6522848606109619, -0.843421220779419, 1.3179467916488647, 0.30044347047805786, -0.5286307334899902, -0.1411016434431076, 0.07234600931406021, 0.5598772168159485, -0.48158255219459534, 0.5213049650192261, 0.6156150698661804, 0.30180343985557556, 0.08592990785837173, -1.109032392501831, 0.04247542843222618, -0.40897366404533386, 0.18149833381175995, -0.10794971138238907, -0.9833903908729553, 1.1401352882385254, -0.2913874089717865, -0.2854032516479492, 0.5482798218727112, 0.9241417646408081, 0.4157903790473938, 0.3940042555332184, 0.4308928847312927, 0.7045138478279114, 0.6698381304740906, -0.4253169298171997, 0.7591934204101562, -0.2967977523803711, 0.7782469987869263, 0.9270100593566895, 0.22910085320472717, 0.8259722590446472, 0.5637451410293579, -0.220652237534523, 0.5530434250831604, 0.9988467693328857, -0.10619430243968964, 0.5782704949378967, 0.07549568265676498, -0.0007154570776037872, -0.07954898476600647, 0.2336258739233017, -0.6133838295936584, 0.5712077617645264, 0.47999927401542664, -0.25230637192726135, -0.12037838250398636, 0.18847627937793732, -0.04249907284975052, -0.46729862689971924, -0.2295435667037964, 0.7437188625335693, 0.20388123393058777, -0.22986383736133575, 0.7331582307815552, 0.20656804740428925, 1.0288673639297485, -0.6264903545379639, 0.13166497647762299, -0.3756006360054016, 0.2173343151807785, -0.1487552374601364, -0.34780827164649963, 0.1616819053888321, 0.10664986819028854, 0.21301278471946716, -0.1288900524377823, 0.6492807269096375, -0.2993427515029907, -0.4105287194252014, -0.06429022550582886, 0.31577765941619873, 0.36942058801651, 0.180301234126091, -0.6925060153007507, 0.3318912982940674, -0.10824500024318695, -0.5467520356178284, 0.3092776834964752, 0.13401874899864197, 0.2654251754283905, 0.6985387206077576, 0.7305501699447632, -0.004522014409303665, 0.2536667287349701, -0.30756527185440063, 0.9619735479354858, -0.4762120544910431, -0.7398129105567932, -1.0309280157089233, 0.49869075417518616, -0.011293732561171055, -0.6175530552864075, 0.8338807225227356, 0.5940985083580017, 0.8467729687690735, -0.06256908178329468, 0.34735000133514404, -0.27350175380706787, 0.2632206082344055, -0.37120044231414795, 0.8533951044082642, -0.7372854351997375, 0.28505221009254456, -0.0949852466583252, -0.7222402691841125, -0.10220027714967728, 1.0174037218093872, -0.15619350969791412, -0.013954504393041134, 0.38687199354171753, 0.9665815234184265, -0.0570543073117733, 0.16231656074523926, -0.026101581752300262, 0.25403892993927, 0.34728676080703735, 0.82080078125, 0.8738497495651245, -0.8533493280410767, 0.7545091509819031, -0.46948131918907166, -0.2854374945163727, -0.48852041363716125, -0.5589478611946106, -0.9105737209320068, -0.5040321946144104, -0.3204030394554138, -0.30726081132888794, -0.21341456472873688, 1.2162164449691772, 0.8449323773384094, -0.7368797659873962, -0.39167264103889465, 0.14926818013191223, 0.006155382841825485, -0.018125470727682114, -0.20530882477760315, 0.2362259179353714, -0.27811071276664734, -0.9698034524917603, 0.3007443845272064, 0.10568087548017502, 0.300573468208313, -0.39331284165382385, -0.20116020739078522, -0.1685377061367035, 0.014983277767896652, 0.3922748863697052, 0.49423152208328247, -0.7270177006721497, -0.3820020258426666, -0.27125033736228943, -0.48497462272644043, 0.07915864139795303, 0.5096426606178284, -0.7670154571533203, 0.3204457759857178, 0.3276281952857971, 0.31509342789649963, 0.8492409586906433, -0.466028094291687, 0.1785588413476944, -0.7889018654823303, 0.6549651622772217, 0.040069062262773514, 0.28994327783584595, 0.06327442079782486, -0.09540370851755142, 0.6117273569107056, 0.2081996351480484, -0.6129047274589539, -1.0237188339233398, -0.17788910865783691, -0.9757740497589111, 0.11727581173181534, 0.9810455441474915, -0.08801299333572388, -0.14977407455444336, 0.1684950441122055, -0.41309818625450134, 0.43984782695770264, -0.3239634037017822, 0.9553751945495605, 0.4087093770503998, -0.00755000626668334, -0.06637256592512131, -0.38886043429374695, 0.4018467664718628, 0.34221169352531433, -0.8177879452705383, -0.37279757857322693, 0.16044548153877258, 0.33771857619285583, 0.19508002698421478, 1.2061450481414795, 0.22223502397537231, 0.366891086101532, 0.13441932201385498, -0.12810014188289642, -0.1959264874458313, -0.25748559832572937, -0.4001751244068146, 0.05986751988530159, -0.08843886852264404, -0.4803368151187897 ]
WizardLM/WizardMath-70B-V1.0
WizardLM
"2023-11-26T15:21:19Z"
13,051
104
transformers
[ "transformers", "pytorch", "llama", "text-generation", "arxiv:2304.12244", "arxiv:2306.08568", "arxiv:2308.09583", "license:llama2", "endpoints_compatible", "has_space", "text-generation-inference", "region:us" ]
text-generation
"2023-08-11T04:33:24Z"
--- license: llama2 --- ## WizardMath: Empowering Mathematical Reasoning for Large Language Models via Reinforced Evol-Instruct (RLEIF) <p style="font-size:28px;" align="center"> 🏠 <a href="https://wizardlm.github.io/" target="_blank">Home Page</a> </p> <p align="center"> <p align="center"> 🤗 <a href="https://huggingface.co/WizardLM" target="_blank">HF Repo</a> •🐱 <a href="https://github.com/nlpxucan/WizardLM" target="_blank">Github Repo</a> • 🐦 <a href="https://twitter.com/WizardLM_AI" target="_blank">Twitter</a> • 📃 <a href="https://arxiv.org/abs/2304.12244" target="_blank">[WizardLM]</a> • 📃 <a href="https://arxiv.org/abs/2306.08568" target="_blank">[WizardCoder]</a> • 📃 <a href="https://arxiv.org/abs/2308.09583" target="_blank">[WizardMath]</a> <br> </p> <p align="center"> 👋 Join our <a href="https://discord.gg/VZjjHtWrKs" target="_blank">Discord</a> </p> | Model | Checkpoint | Paper | HumanEval | MBPP | Demo | License | | ----- |------| ---- |------|-------| ----- | ----- | | WizardCoder-Python-34B-V1.0 | 🤗 <a href="https://huggingface.co/WizardLM/WizardCoder-Python-34B-V1.0" target="_blank">HF Link</a> | 📃 <a href="https://arxiv.org/abs/2306.08568" target="_blank">[WizardCoder]</a> | 73.2 | 61.2 | [Demo](http://47.103.63.15:50085/) | <a href="https://ai.meta.com/resources/models-and-libraries/llama-downloads/" target="_blank">Llama2</a> | | WizardCoder-15B-V1.0 | 🤗 <a href="https://huggingface.co/WizardLM/WizardCoder-15B-V1.0" target="_blank">HF Link</a> | 📃 <a href="https://arxiv.org/abs/2306.08568" target="_blank">[WizardCoder]</a> | 59.8 |50.6 | -- | <a href="https://huggingface.co/spaces/bigcode/bigcode-model-license-agreement" target="_blank">OpenRAIL-M</a> | | WizardCoder-Python-13B-V1.0 | 🤗 <a href="https://huggingface.co/WizardLM/WizardCoder-Python-13B-V1.0" target="_blank">HF Link</a> | 📃 <a href="https://arxiv.org/abs/2306.08568" target="_blank">[WizardCoder]</a> | 64.0 | 55.6 | -- | <a href="https://ai.meta.com/resources/models-and-libraries/llama-downloads/" target="_blank">Llama2</a> | | WizardCoder-Python-7B-V1.0 | 🤗 <a href="https://huggingface.co/WizardLM/WizardCoder-Python-7B-V1.0" target="_blank">HF Link</a> | 📃 <a href="https://arxiv.org/abs/2306.08568" target="_blank">[WizardCoder]</a> | 55.5 | 51.6 | [Demo](http://47.103.63.15:50088/) | <a href="https://ai.meta.com/resources/models-and-libraries/llama-downloads/" target="_blank">Llama2</a> | | WizardCoder-3B-V1.0 | 🤗 <a href="https://huggingface.co/WizardLM/WizardCoder-3B-V1.0" target="_blank">HF Link</a> | 📃 <a href="https://arxiv.org/abs/2306.08568" target="_blank">[WizardCoder]</a> | 34.8 |37.4 | -- | <a href="https://huggingface.co/spaces/bigcode/bigcode-model-license-agreement" target="_blank">OpenRAIL-M</a> | | WizardCoder-1B-V1.0 | 🤗 <a href="https://huggingface.co/WizardLM/WizardCoder-1B-V1.0" target="_blank">HF Link</a> | 📃 <a href="https://arxiv.org/abs/2306.08568" target="_blank">[WizardCoder]</a> | 23.8 |28.6 | -- | <a href="https://huggingface.co/spaces/bigcode/bigcode-model-license-agreement" target="_blank">OpenRAIL-M</a> | | Model | Checkpoint | Paper | GSM8k | MATH |Online Demo| License| | ----- |------| ---- |------|-------| ----- | ----- | | WizardMath-70B-V1.0 | 🤗 <a href="https://huggingface.co/WizardLM/WizardMath-70B-V1.0" target="_blank">HF Link</a> | 📃 <a href="https://arxiv.org/abs/2308.09583" target="_blank">[WizardMath]</a>| **81.6** | **22.7** |[Demo](http://47.103.63.15:50083/)| <a href="https://ai.meta.com/resources/models-and-libraries/llama-downloads/" target="_blank">Llama 2 </a> | | WizardMath-13B-V1.0 | 🤗 <a href="https://huggingface.co/WizardLM/WizardMath-13B-V1.0" target="_blank">HF Link</a> | 📃 <a href="https://arxiv.org/abs/2308.09583" target="_blank">[WizardMath]</a>| **63.9** | **14.0** |[Demo](http://47.103.63.15:50082/)| <a href="https://ai.meta.com/resources/models-and-libraries/llama-downloads/" target="_blank">Llama 2 </a> | | WizardMath-7B-V1.0 | 🤗 <a href="https://huggingface.co/WizardLM/WizardMath-7B-V1.0" target="_blank">HF Link</a> | 📃 <a href="https://arxiv.org/abs/2308.09583" target="_blank">[WizardMath]</a>| **54.9** | **10.7** | [Demo](http://47.103.63.15:50080/)| <a href="https://ai.meta.com/resources/models-and-libraries/llama-downloads/" target="_blank">Llama 2 </a>| <font size=4> | <sup>Model</sup> | <sup>Checkpoint</sup> | <sup>Paper</sup> |<sup>MT-Bench</sup> | <sup>AlpacaEval</sup> | <sup>GSM8k</sup> | <sup>HumanEval</sup> | <sup>License</sup>| | ----- |------| ---- |------|-------| ----- | ----- | ----- | | <sup>**WizardLM-70B-V1.0**</sup> | <sup>🤗 <a href="https://huggingface.co/WizardLM/WizardLM-70B-V1.0" target="_blank">HF Link</a> </sup>|<sup>📃**Coming Soon**</sup>| <sup>**7.78**</sup> | <sup>**92.91%**</sup> |<sup>**77.6%**</sup> | <sup> **50.6 pass@1**</sup>|<sup> <a href="https://ai.meta.com/resources/models-and-libraries/llama-downloads/" target="_blank">Llama 2 License </a></sup> | | <sup>WizardLM-13B-V1.2</sup> | <sup>🤗 <a href="https://huggingface.co/WizardLM/WizardLM-13B-V1.2" target="_blank">HF Link</a> </sup>| | <sup>7.06</sup> | <sup>89.17%</sup> |<sup>55.3%</sup> | <sup>36.6 pass@1</sup>|<sup> <a href="https://ai.meta.com/resources/models-and-libraries/llama-downloads/" target="_blank">Llama 2 License </a></sup> | | <sup>WizardLM-13B-V1.1</sup> |<sup> 🤗 <a href="https://huggingface.co/WizardLM/WizardLM-13B-V1.1" target="_blank">HF Link</a> </sup> | | <sup>6.76</sup> |<sup>86.32%</sup> | | <sup>25.0 pass@1</sup>| <sup>Non-commercial</sup>| | <sup>WizardLM-30B-V1.0</sup> | <sup>🤗 <a href="https://huggingface.co/WizardLM/WizardLM-30B-V1.0" target="_blank">HF Link</a></sup> | | <sup>7.01</sup> | | | <sup>37.8 pass@1</sup>| <sup>Non-commercial</sup> | | <sup>WizardLM-13B-V1.0</sup> | <sup>🤗 <a href="https://huggingface.co/WizardLM/WizardLM-13B-V1.0" target="_blank">HF Link</a> </sup> | | <sup>6.35</sup> | <sup>75.31%</sup> | | <sup> 24.0 pass@1 </sup> | <sup>Non-commercial</sup>| | <sup>WizardLM-7B-V1.0 </sup>| <sup>🤗 <a href="https://huggingface.co/WizardLM/WizardLM-7B-V1.0" target="_blank">HF Link</a> </sup> |<sup> 📃 <a href="https://arxiv.org/abs/2304.12244" target="_blank">[WizardLM]</a> </sup>| | | |<sup>19.1 pass@1 </sup>|<sup> Non-commercial</sup>| </font> **Github Repo**: https://github.com/nlpxucan/WizardLM/tree/main/WizardMath **Twitter**: https://twitter.com/WizardLM_AI/status/1689998428200112128 **Discord**: https://discord.gg/VZjjHtWrKs ## Comparing WizardMath-V1.0 with Other LLMs. 🔥 The following figure shows that our **WizardMath-70B-V1.0 attains the fifth position in this benchmark**, surpassing ChatGPT (81.6 vs. 80.8) , Claude Instant (81.6 vs. 80.9), PaLM 2 540B (81.6 vs. 80.7). <p align="center" width="100%"> <a ><img src="https://raw.githubusercontent.com/nlpxucan/WizardLM/main/WizardMath/images/wizardmath_gsm8k.png" alt="WizardMath" style="width: 96%; min-width: 300px; display: block; margin: auto;"></a> </p> ❗<b>Note for model system prompts usage:</b> Please use **the same systems prompts strictly** with us, and we do not guarantee the accuracy of the **quantified versions**. **Default version:** ``` "Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\n### Instruction:\n{instruction}\n\n### Response:" ``` **CoT Version:** (❗For the **simple** math questions, we do NOT recommend to use the CoT prompt.) ``` "Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\n### Instruction:\n{instruction}\n\n### Response: Let's think step by step." ``` ## Inference WizardMath Demo Script We provide the WizardMath inference demo code [here](https://github.com/nlpxucan/WizardLM/tree/main/demo). ❗<b>To commen concern about dataset:</b> Recently, there have been clear changes in the open-source policy and regulations of our overall organization's code, data, and models. Despite this, we have still worked hard to obtain opening the weights of the model first, but the data involves stricter auditing and is in review with our legal team . Our researchers have no authority to publicly release them without authorization. Thank you for your understanding. ## Citation Please cite the repo if you use the data, method or code in this repo. ``` @article{luo2023wizardmath, title={WizardMath: Empowering Mathematical Reasoning for Large Language Models via Reinforced Evol-Instruct}, author={Luo, Haipeng and Sun, Qingfeng and Xu, Can and Zhao, Pu and Lou, Jianguang and Tao, Chongyang and Geng, Xiubo and Lin, Qingwei and Chen, Shifeng and Zhang, Dongmei}, journal={arXiv preprint arXiv:2308.09583}, year={2023} } ```
[ -0.700456976890564, -0.6023439764976501, -0.02039513736963272, 0.3377050757408142, 0.10096108168363571, -0.09319552034139633, 0.03653388097882271, -0.44517260789871216, 0.33199045062065125, 0.3681700825691223, -0.8129340410232544, -0.7365400791168213, -0.5125157237052917, 0.24699363112449646, -0.10054249316453934, 0.8467576503753662, -0.15905313193798065, -0.31357917189598083, -0.3121706247329712, -0.14664477109909058, -0.16063052415847778, -0.4174903631210327, -0.30229324102401733, -0.45966610312461853, 0.34011101722717285, 0.14641830325126648, 1.0000009536743164, 0.5037130117416382, 0.32721975445747375, 0.3678341507911682, -0.2916526794433594, 0.6046613454818726, -0.15269994735717773, -0.10330504924058914, 0.1617693156003952, -0.2932380139827728, -1.029771089553833, -0.04947606101632118, 0.6605080366134644, 0.414486825466156, 0.03408636897802353, 0.40435609221458435, 0.10509863495826721, 0.9409252405166626, -0.6256676316261292, 0.36691996455192566, -0.2820589244365692, 0.26808133721351624, -0.2046227753162384, -0.14160221815109253, 0.0038507559802383184, -0.6064264178276062, -0.02445497177541256, -0.9868649244308472, -0.1354781538248062, 0.1495010256767273, 1.2971614599227905, 0.197662815451622, -0.31217071413993835, -0.13187824189662933, -0.2995191812515259, 0.7618422508239746, -0.898245096206665, 0.2537250518798828, 0.5858949422836304, 0.16137272119522095, -0.5840939283370972, -0.5785760879516602, -0.9893127083778381, -0.16466133296489716, -0.2095869481563568, 0.19814357161521912, -0.4249459505081177, -0.22990642488002777, 0.43052199482917786, 0.32371997833251953, -0.6233958005905151, -0.12330004572868347, -0.29283368587493896, -0.26130473613739014, 0.8205935955047607, 0.2770693898200989, 0.5549697875976562, -0.220457524061203, 0.0700632706284523, -0.25230318307876587, -0.5304086804389954, 0.1807863563299179, 0.44528135657310486, -0.03515370935201645, -0.4977644681930542, 0.9066334366798401, -0.015356027521193027, 0.7288094758987427, 0.1595730185508728, -0.682783842086792, 0.6911879777908325, -0.4217217266559601, -0.22044779360294342, -0.2008291482925415, 1.143183946609497, 0.5139843821525574, 0.16265420615673065, 0.16439184546470642, 0.04716789349913597, -0.275942862033844, -0.043846245855093, -0.9479594826698303, -0.1043453961610794, 0.31713131070137024, -0.5526960492134094, -0.2695939540863037, -0.28197741508483887, -0.9548143148422241, -0.3875158429145813, -0.1747712343931198, 0.2729038894176483, -0.690049946308136, -0.33959704637527466, 0.222988098859787, -0.039248380810022354, 0.5717252492904663, 0.5692051649093628, -0.9257578253746033, 0.2779718041419983, 0.545680046081543, 0.808952271938324, -0.04720223322510719, -0.5016961097717285, -0.16449111700057983, 0.08319485932588577, -0.3747882843017578, 0.6335375905036926, -0.09564658999443054, -0.5154291987419128, -0.07438166439533234, -0.07103754580020905, -0.2150745838880539, -0.34782376885414124, 0.47608688473701477, -0.3572128713130951, 0.3646184206008911, -0.1396515965461731, -0.6085085272789001, -0.26442909240722656, 0.29503265023231506, -0.6772933602333069, 1.2161415815353394, 0.13121627271175385, -1.0926740169525146, -0.07970014959573746, -0.7395418286323547, -0.19933326542377472, -0.4392828941345215, -0.15572680532932281, -0.6874288320541382, -0.3096289336681366, 0.3431258201599121, 0.2626073956489563, -0.5312404632568359, -0.3265452980995178, -0.3272925913333893, -0.07481081783771515, 0.26200804114341736, -0.5464718341827393, 1.3901503086090088, 0.23798567056655884, -0.45191383361816406, -0.09718403965234756, -1.1042066812515259, 0.0339934304356575, 0.6275677680969238, -0.46432891488075256, 0.02723645605146885, -0.2836003601551056, -0.12820428609848022, 0.1723073422908783, 0.7717049717903137, -0.3135733902454376, 0.464755654335022, -0.5254009962081909, -0.16377322375774384, 0.798841118812561, -0.03806561976671219, 0.4323407709598541, -0.5595524907112122, 0.5070703625679016, -0.12197360396385193, 0.289069801568985, 0.11079895496368408, -0.6778129935264587, -0.9793241620063782, -0.42148256301879883, 0.024996889755129814, 0.7743574976921082, -0.6037837862968445, 1.1491076946258545, -0.23693545162677765, -0.9608773589134216, -0.5678553581237793, 0.2881259024143219, 0.37098821997642517, 0.6972703337669373, 0.6065789461135864, -0.09280341118574142, -0.37979456782341003, -0.8632446527481079, 0.04534441977739334, -0.3199002742767334, -0.028983546420931816, 0.4380629062652588, 0.6885510087013245, -0.4575572907924652, 1.0915663242340088, -0.7333915829658508, -0.2757156789302826, -0.08389616012573242, -0.24154289066791534, 0.44946998357772827, 0.6724428534507751, 0.6420065760612488, -0.6388475894927979, -0.5192751884460449, 0.18299977481365204, -0.9602406620979309, -0.221033975481987, -0.02144167572259903, -0.38967153429985046, 0.35735467076301575, 0.055406004190444946, -0.898740291595459, 0.8259233236312866, 0.26082566380500793, -0.6650189161300659, 0.9036557078361511, -0.3448360860347748, 0.12022238224744797, -1.1957694292068481, 0.10866264998912811, -0.10228430479764938, 0.14066419005393982, -0.622574508190155, 0.06440825760364532, -0.029570946469902992, 0.3051871657371521, -0.6032838225364685, 0.9050719141960144, -0.5510474443435669, -0.042922377586364746, -0.03366365283727646, -0.09450921416282654, 0.24335432052612305, 0.7293345928192139, -0.11012566089630127, 0.7689498662948608, 0.8464586734771729, -0.44941428303718567, 0.5685214996337891, 0.4521906077861786, -0.2455129772424698, 0.5287817120552063, -0.5703404545783997, 0.012061585672199726, 0.09248301386833191, 0.3532183766365051, -0.6417840719223022, -0.0625012069940567, 0.6194533705711365, -0.6388593912124634, 0.44587233662605286, 0.0022419628221541643, -0.8951900005340576, -0.5801555514335632, -0.6597809195518494, 0.0984642282128334, 0.7668663859367371, -0.5939125418663025, 0.8875646591186523, 0.3050723969936371, 0.28911101818084717, -0.8599944114685059, -0.5361530780792236, -0.1757429540157318, -0.19032253324985504, -0.9265973567962646, 0.2988342046737671, -0.35409215092658997, -0.20874615013599396, -0.015228761360049248, -0.32344168424606323, -0.013096475973725319, 0.21397434175014496, 0.2767321765422821, 0.4963775873184204, -0.21394412219524384, -0.2824682295322418, 0.11586835235357285, -0.1383522003889084, -0.05343446135520935, -0.22839394211769104, 0.5144090056419373, -0.2901384234428406, -0.6509047746658325, -0.4443902373313904, 0.09618528932332993, 0.6205723881721497, -0.2517223358154297, 0.9616807103157043, 0.6536404490470886, -0.5680716633796692, 0.06016812473535538, -0.7047982215881348, 0.11474121361970901, -0.6016108989715576, 0.06452633440494537, -0.5070661306381226, -0.7617173790931702, 0.7053649425506592, 0.190738707780838, 0.38009965419769287, 0.7287032604217529, 0.7427228689193726, 0.12018318474292755, 0.9281554818153381, 0.40946051478385925, -0.025551849976181984, 0.44925791025161743, -0.5693472623825073, 0.09683948010206223, -0.9600893259048462, -0.5488972067832947, -0.6051803231239319, 0.04162641614675522, -0.5223233103752136, -0.6780602931976318, 0.4076908230781555, 0.6110508441925049, -0.6505391001701355, 0.6458913087844849, -0.9716446399688721, 0.3595026433467865, 0.49435144662857056, 0.04148409515619278, 0.238589808344841, 0.15454934537410736, -0.4425353705883026, 0.18864069879055023, -0.383766233921051, -0.6372221112251282, 1.0476670265197754, 0.28482648730278015, 0.6803984642028809, 0.2656165361404419, 0.8879097700119019, -0.09211836755275726, -0.15157902240753174, -0.44592559337615967, 0.7885263562202454, 0.3949301838874817, -0.5772954821586609, -0.4817025065422058, -0.275427907705307, -1.2180671691894531, 0.5450665950775146, -0.30196723341941833, -1.2754063606262207, 0.38003066182136536, 0.05263451859354973, -0.2992219924926758, 0.534834086894989, -0.5822774767875671, 0.9038395881652832, -0.13548211753368378, -0.5254034996032715, 0.0027442777063697577, -0.3928517997264862, 0.26903262734413147, 0.15768137574195862, 0.20992691814899445, -0.36079171299934387, -0.3526934087276459, 0.8550959229469299, -1.2237720489501953, 0.7673397660255432, 0.04407662898302078, -0.33269476890563965, 0.6304473280906677, 0.06972785294055939, 0.6114375591278076, -0.05115760490298271, -0.16977514326572418, 0.28616368770599365, 0.1781897097826004, -0.4544505178928375, -0.7046206593513489, 0.7303240299224854, -1.1068263053894043, -0.8374388217926025, -0.6559876799583435, -0.4484405219554901, -0.038146667182445526, 0.28053897619247437, 0.21288540959358215, 0.1698615401983261, 0.34125810861587524, -0.2291499227285385, 0.7794187664985657, -0.3613908588886261, 0.37193241715431213, 0.3565753996372223, -0.3400605022907257, -0.4354415237903595, 1.0376025438308716, 0.1484941691160202, -0.012450848706066608, 0.45815593004226685, 0.2776697874069214, -0.2492579221725464, -0.3420752286911011, -0.6358729600906372, 0.38357245922088623, -0.8933892250061035, -0.4118163585662842, -0.8001047968864441, -0.4872559607028961, -0.6456199884414673, -0.4081648588180542, -0.3650781214237213, -0.6249032020568848, -0.7844942212104797, 0.03895198181271553, 1.1640969514846802, 0.3902781009674072, -0.3422202169895172, -0.2070341855287552, -0.6725726127624512, 0.3827545940876007, 0.4194168746471405, 0.15748842060565948, 0.4124407172203064, -0.5830999612808228, -0.1276521384716034, -0.17083317041397095, -0.5916296243667603, -0.9425753951072693, 0.6261812448501587, -0.1904815435409546, 0.634527862071991, 0.09980282932519913, 0.002793449442833662, 0.9100582003593445, -0.6355323791503906, 0.9738359451293945, 0.5882605910301208, -0.9202228784561157, 0.5288648009300232, -0.18085508048534393, 0.37479931116104126, 0.29640480875968933, 0.3561359643936157, -0.44822558760643005, -0.21541330218315125, -0.5962617993354797, -0.8492121696472168, 0.6326242089271545, 0.3683135211467743, -0.03775089606642723, 0.07931444048881531, 0.12768779695034027, -0.07822392135858536, -0.05361530929803848, -0.5804573893547058, -0.9095706939697266, -0.3444840610027313, -0.27041640877723694, 0.4063333570957184, 0.11704244464635849, -0.10007669031620026, -0.5637874007225037, 0.8193681836128235, -0.06861209124326706, 0.4947082996368408, 0.2995520830154419, -0.03791164979338646, -0.006772034801542759, 0.12164200842380524, 0.5636681914329529, 0.5511417388916016, -0.06321363151073456, -0.1315009891986847, 0.4667593240737915, -0.7833558917045593, 0.23718316853046417, 0.3466503918170929, -0.241067036986351, -0.13304167985916138, 0.5112314820289612, 0.7407402992248535, -0.0000771881386754103, -0.47481077909469604, 0.5830697417259216, 0.09041548520326614, -0.25592800974845886, -0.5531089901924133, 0.166851207613945, 0.32540053129196167, 0.36748164892196655, 0.44420045614242554, 0.0166475847363472, 0.12104924023151398, -0.29564687609672546, 0.045501213520765305, 0.5185627937316895, 0.033787526190280914, -0.012958962470293045, 0.702979326248169, -0.2147953361272812, -0.33095791935920715, 0.18179668486118317, -0.2718040645122528, -0.6433255076408386, 0.9264181852340698, 0.5488461852073669, 0.7415668964385986, 0.15516602993011475, -0.11431758105754852, 0.6251517534255981, 0.17148230969905853, 0.09710822999477386, 0.055883292108774185, -0.12253871560096741, -0.5321787595748901, -0.0892297625541687, -0.8633297085762024, -0.37550753355026245, -0.19094686210155487, -0.3383405804634094, 0.5631216764450073, -0.6042500734329224, 0.03831169754266739, -0.10552272200584412, 0.48437002301216125, -0.9636597633361816, -0.1807345598936081, 0.20734459161758423, 1.2600173950195312, -0.26749226450920105, 0.9976422786712646, 0.3998587429523468, -0.8278805613517761, -1.0616542100906372, -0.16791591048240662, 0.45643728971481323, -0.9683681130409241, 0.5913897752761841, -0.06938980519771576, -0.08189520239830017, -0.16375534236431122, -0.48480892181396484, -1.1384462118148804, 1.5796778202056885, 0.16327792406082153, -0.3119211494922638, -0.2763058841228485, 0.047715235501527786, 0.42906680703163147, -0.1837603747844696, 0.6957408785820007, 0.5999257564544678, 0.7135718464851379, 0.18521538376808167, -1.3444246053695679, 0.3768691420555115, -0.6014416217803955, -0.018345359712839127, -0.163626566529274, -0.9091137051582336, 0.9021859169006348, -0.09091812372207642, 0.005750684533268213, 0.2948359549045563, 0.8179345726966858, 0.8899619579315186, 0.2515869140625, 0.1999233365058899, 0.658170223236084, 0.933445155620575, 0.13249188661575317, 1.3217095136642456, -0.28100457787513733, 0.5142391324043274, 0.7514132857322693, -0.08218967914581299, 0.5389832258224487, 0.2463068813085556, -0.6107085943222046, 0.6083844304084778, 0.7203616499900818, -0.24277491867542267, 0.32903045415878296, 0.6374562382698059, -0.221617192029953, -0.0019395701820030808, 0.09542623907327652, -0.748019814491272, -0.2036968320608139, 0.42401406168937683, 0.07830537110567093, -0.12301109731197357, -0.08601018041372299, 0.25528594851493835, -0.06854981929063797, -0.3857390880584717, 0.6259729266166687, 0.1274987757205963, -0.2624188959598541, 1.0779204368591309, -0.18258950114250183, 1.1160492897033691, -0.6834456324577332, -0.1610507220029831, -0.28909340500831604, -0.025120779871940613, -0.5686672925949097, -0.8805372714996338, -0.07116556167602539, 0.04425610229372978, -0.09269219636917114, 0.20173019170761108, 0.7806658148765564, -0.10501779615879059, -0.7870858907699585, 0.38844797015190125, 0.4380839467048645, 0.4226002097129822, 0.5113539099693298, -1.0800985097885132, 0.32650983333587646, 0.007246735040098429, -0.6896265745162964, 0.39938095211982727, 0.6285139918327332, 0.01783769577741623, 0.8323995471000671, 0.7147717475891113, 0.038043636828660965, 0.41172194480895996, -0.2254115343093872, 0.9740026593208313, -0.4821566641330719, -0.043558329343795776, -0.9117984175682068, 0.6870656609535217, -0.2909697890281677, -0.28454017639160156, 1.201794147491455, 0.651103675365448, 0.7576321363449097, -0.04437815025448799, 0.6607412695884705, -0.17042580246925354, 0.26656481623649597, -0.30162379145622253, 1.0142213106155396, -0.8852548599243164, 0.1027885377407074, -0.5539427399635315, -0.8819365501403809, -0.5544442534446716, 1.0950769186019897, -0.1982526332139969, 0.035551879554986954, 0.5669633746147156, 1.1158641576766968, 0.10569688677787781, -0.25865963101387024, 0.1670657843351364, -0.06705362349748611, 0.34278953075408936, 0.8518660068511963, 0.5333017706871033, -0.6527568101882935, 0.6476058959960938, -0.41186025738716125, -0.1527116745710373, -0.2920631170272827, -0.7296516299247742, -1.2097364664077759, -0.5911576151847839, -0.47504210472106934, -0.7974249720573425, -0.3352798521518707, 1.4392457008361816, 0.5571391582489014, -0.7466440796852112, -0.2206110954284668, 0.07114962488412857, 0.7006607055664062, -0.18321406841278076, -0.23787908256053925, 0.8776194453239441, 0.10565920919179916, -0.8848230242729187, 0.16884158551692963, 0.11484941840171814, 0.4554431736469269, -0.21942868828773499, -0.6515542268753052, -0.22612053155899048, 0.32062527537345886, 0.4527818560600281, 0.7323974967002869, -0.811000406742096, -0.055085644125938416, -0.004652488045394421, -0.27891647815704346, 0.12980301678180695, 0.23024164140224457, -0.5897728800773621, 0.12074121832847595, 0.6096400022506714, 0.557892382144928, 0.5243751406669617, -0.5631778836250305, 0.07689350098371506, -0.22311528027057648, 0.0798482671380043, -0.003239927813410759, 0.6467497944831848, 0.1172235831618309, -0.4663611948490143, 0.6493798494338989, 0.2490091174840927, -0.49239540100097656, -0.8647777438163757, -0.1127936840057373, -1.1036924123764038, -0.19721484184265137, 1.1736079454421997, -0.09206479787826538, -0.6183007955551147, 0.08965413272380829, -0.4556068778038025, 0.34584054350852966, -0.5667819380760193, 0.3439960181713104, 0.501664400100708, -0.2852342128753662, -0.06640858203172684, -0.4935974180698395, 0.48391789197921753, 0.10546928644180298, -0.9437665343284607, 0.027104010805487633, 0.5598913431167603, 0.21503867208957672, 0.7304125428199768, 0.7965953350067139, -0.28658226132392883, 0.35128527879714966, 0.21574687957763672, 0.37318164110183716, -0.290442556142807, 0.16288909316062927, -0.34396231174468994, -0.0635184496641159, -0.12093846499919891, -0.1165214329957962 ]
monologg/koelectra-base-v3-discriminator
monologg
"2021-10-20T16:53:40Z"
13,046
22
transformers
[ "transformers", "pytorch", "electra", "pretraining", "korean", "ko", "license:apache-2.0", "endpoints_compatible", "region:us" ]
null
"2022-03-02T23:29:05Z"
--- language: ko license: apache-2.0 tags: - korean --- # KoELECTRA v3 (Base Discriminator) Pretrained ELECTRA Language Model for Korean (`koelectra-base-v3-discriminator`) For more detail, please see [original repository](https://github.com/monologg/KoELECTRA/blob/master/README_EN.md). ## Usage ### Load model and tokenizer ```python >>> from transformers import ElectraModel, ElectraTokenizer >>> model = ElectraModel.from_pretrained("monologg/koelectra-base-v3-discriminator") >>> tokenizer = ElectraTokenizer.from_pretrained("monologg/koelectra-base-v3-discriminator") ``` ### Tokenizer example ```python >>> from transformers import ElectraTokenizer >>> tokenizer = ElectraTokenizer.from_pretrained("monologg/koelectra-base-v3-discriminator") >>> tokenizer.tokenize("[CLS] 한국어 ELECTRA를 공유합니다. [SEP]") ['[CLS]', '한국어', 'EL', '##EC', '##TRA', '##를', '공유', '##합니다', '.', '[SEP]'] >>> tokenizer.convert_tokens_to_ids(['[CLS]', '한국어', 'EL', '##EC', '##TRA', '##를', '공유', '##합니다', '.', '[SEP]']) [2, 11229, 29173, 13352, 25541, 4110, 7824, 17788, 18, 3] ``` ## Example using ElectraForPreTraining ```python import torch from transformers import ElectraForPreTraining, ElectraTokenizer discriminator = ElectraForPreTraining.from_pretrained("monologg/koelectra-base-v3-discriminator") tokenizer = ElectraTokenizer.from_pretrained("monologg/koelectra-base-v3-discriminator") sentence = "나는 방금 밥을 먹었다." fake_sentence = "나는 내일 밥을 먹었다." fake_tokens = tokenizer.tokenize(fake_sentence) fake_inputs = tokenizer.encode(fake_sentence, return_tensors="pt") discriminator_outputs = discriminator(fake_inputs) predictions = torch.round((torch.sign(discriminator_outputs[0]) + 1) / 2) print(list(zip(fake_tokens, predictions.tolist()[1:-1]))) ```
[ -0.25731179118156433, -0.32843199372291565, 0.10337294638156891, 0.3880593180656433, -0.6763164401054382, 0.27093803882598877, -0.02712455950677395, 0.08706669509410858, 0.30196064710617065, 0.5901970863342285, -0.4252026677131653, -0.6370547413825989, -0.5530977845191956, 0.33661389350891113, -0.05919164791703224, 0.9958595633506775, -0.24408842623233795, 0.2132454514503479, 0.36033833026885986, -0.16847386956214905, -0.5197114944458008, -0.6765305995941162, -0.6711889505386353, -0.5826481580734253, 0.3013003170490265, 0.6373839378356934, 0.2300148904323578, 0.22098426520824432, 0.20373868942260742, 0.45834946632385254, 0.10132250934839249, -0.09872899949550629, -0.228973388671875, -0.14999496936798096, 0.013326333835721016, -0.7421296238899231, -0.4841877520084381, -0.014416193589568138, 0.4728541076183319, 0.5187129974365234, 0.06009266525506973, 0.3394473195075989, -0.4719923734664917, 0.6067700386047363, -0.38533368706703186, 0.29090115427970886, -0.6423478126525879, 0.1011262908577919, -0.20599178969860077, 0.023189231753349304, -0.48136934638023376, -0.5948004722595215, -0.09232603758573532, -0.7679382562637329, 0.20276667177677155, 0.2536792457103729, 1.3300443887710571, 0.00877124723047018, -0.5824567675590515, -0.09391002357006073, -0.6675578355789185, 0.8991982936859131, -0.5861504673957825, 0.3736967444419861, 0.4520207345485687, 0.3166252076625824, 0.15006223320960999, -1.1633214950561523, -0.4491783678531647, -0.1336185336112976, -0.12944765388965607, 0.2589164674282074, -0.033579982817173004, 0.22527582943439484, 0.5243380069732666, 0.2624189257621765, -0.40376198291778564, 0.10950154811143875, -0.7463022470474243, -0.3811822235584259, 0.6650381684303284, 0.02493041567504406, 0.37981340289115906, -0.24772672355175018, -0.20895005762577057, -0.16174310445785522, -0.46925050020217896, -0.14378099143505096, 0.577583909034729, 0.3031867742538452, -0.11783851683139801, 0.8597440123558044, -0.3877096176147461, 0.5121104121208191, 0.3490807116031647, -0.08665923774242401, 0.7720822691917419, -0.33759358525276184, -0.4255080819129944, 0.4193122684955597, 0.7497910261154175, 0.279125839471817, 0.3015364408493042, 0.03115280345082283, -0.017018362879753113, 0.20769061148166656, 0.04772397130727768, -0.8118172287940979, -0.6532360315322876, 0.306342750787735, -0.6980074048042297, -0.3155878186225891, 0.42291367053985596, -0.910496175289154, 0.0931326225399971, 0.026807619258761406, 0.432896226644516, -0.3268151879310608, -0.49909359216690063, 0.3877001106739044, -0.3811400532722473, 0.24617652595043182, -0.05067015066742897, -0.7784465551376343, 0.34771278500556946, 0.1945352554321289, 0.6765416264533997, 0.4542567729949951, -0.21856656670570374, -0.2317890077829361, -0.087588831782341, -0.11673896014690399, 0.5087248682975769, 0.10123705118894577, -0.4109952449798584, 0.10530073940753937, 0.21718378365039825, -0.3512209951877594, -0.5196416974067688, 0.7326968908309937, -0.5720708966255188, 0.2160293161869049, 0.14521324634552002, -0.44497618079185486, -0.34996297955513, -0.1342620700597763, -0.8007369637489319, 1.1495286226272583, 0.3901199698448181, -0.8102775812149048, 0.5061786770820618, -0.8087857961654663, -0.609561562538147, 0.37458205223083496, 0.17797298729419708, -0.6166559457778931, 0.09854433685541153, 0.0631660670042038, 0.37718796730041504, 0.2799157500267029, -0.15678167343139648, -0.11544647067785263, -0.23731708526611328, 0.1281701922416687, -0.18636442720890045, 1.0014439821243286, 0.20341920852661133, -0.29249581694602966, 0.2959153950214386, -1.0619001388549805, 0.1865733414888382, 0.22913439571857452, -0.29663464426994324, -0.275683730840683, -0.024138616397976875, 0.3554437458515167, 0.26783666014671326, 0.5404117107391357, -0.7715989947319031, 0.2735755443572998, -0.543079674243927, 0.42648082971572876, 0.8423756957054138, -0.10427029430866241, 0.35031771659851074, -0.09031897038221359, 0.5735451579093933, 0.15559515357017517, -0.32161131501197815, 0.0852208361029625, -0.1588841676712036, -1.088149070739746, -0.32263946533203125, 0.1605668067932129, 0.769864559173584, -1.012417197227478, 0.8125821948051453, -0.24796125292778015, -0.8421541452407837, -0.5492084622383118, -0.12011822313070297, 0.19524012506008148, 0.11510562151670456, 0.4172171652317047, 0.18454651534557343, -1.2969366312026978, -0.6894240379333496, -0.4265947639942169, -0.4369930624961853, 0.11285275965929031, -0.005406892392784357, 0.8882665038108826, -0.10353882610797882, 0.5338619351387024, -0.3857305347919464, -0.2661662995815277, -0.6410876512527466, 0.21242037415504456, 0.7339568138122559, 0.5363665819168091, 0.35375550389289856, -0.6666449904441833, -0.7964691519737244, 0.1524234563112259, -0.5078157186508179, -0.16425545513629913, -0.04203745722770691, 0.022336672991514206, 0.03240054473280907, 0.47009456157684326, -0.652439296245575, 0.5481064915657043, 0.2857357859611511, -0.8698232769966125, 0.8784395456314087, -0.1781088411808014, 0.12090706080198288, -1.1348713636398315, -0.030392592772841454, -0.24857734143733978, -0.37905946373939514, -0.7934538125991821, -0.10019951313734055, -0.0006711296737194061, 0.20691417157649994, -0.7263805270195007, 0.5284954309463501, -0.4798958897590637, 0.2740408480167389, 0.06197618320584297, -0.03022783249616623, -0.23990793526172638, 0.3457968235015869, -0.004496016073971987, 0.6557475924491882, 0.5156921148300171, -0.7415174245834351, 0.8929536938667297, 0.5113464593887329, -0.5081601142883301, 0.2782915234565735, -0.9197772741317749, 0.10050453990697861, 0.018369965255260468, 0.19210882484912872, -0.9552250504493713, -0.3507063388824463, 0.2895207703113556, -0.28365039825439453, 0.046326130628585815, -0.13729992508888245, -0.645138144493103, -0.8149920105934143, -0.36877739429473877, 0.5533949732780457, 0.6094527244567871, -0.6972882747650146, 0.3696228563785553, 0.1428002268075943, 0.027466537430882454, -0.5244114398956299, -0.5213517546653748, -0.12377426028251648, -0.391932874917984, -0.25582751631736755, 0.34783992171287537, 0.013199100270867348, 0.0633481815457344, -0.37132540345191956, -0.22363275289535522, -0.042501356452703476, -0.03427066653966904, 0.04982326924800873, 0.4723109304904938, -0.20942285656929016, -0.3001629710197449, -0.03729255497455597, -0.31480225920677185, 0.004640538245439529, -0.19911836087703705, 1.1281402111053467, -0.28241798281669617, -0.23611120879650116, -0.6019116044044495, 0.016383349895477295, 0.6172671914100647, -0.005388190504163504, 0.5751820206642151, 0.7034212350845337, -0.43381524085998535, -0.05192697048187256, -0.4254496097564697, 0.1260099560022354, -0.5442643165588379, 0.7894978523254395, -0.6296375393867493, -0.7543553709983826, 0.6323766112327576, -0.2518298923969269, -0.20632876455783844, 0.6374751329421997, 0.6329595446586609, 0.16242222487926483, 1.283740520477295, 0.29178956151008606, -0.1208915114402771, 0.4753688871860504, -0.39164501428604126, 0.4589112401008606, -0.9212919473648071, -0.36582109332084656, -0.5140518546104431, 0.016871675848960876, -0.5889384150505066, 0.07426529377698898, 0.01298582460731268, 0.43885260820388794, -0.49620863795280457, 0.8769458532333374, -0.6952762603759766, 0.49222883582115173, 0.5649712085723877, 0.1241433322429657, -0.17895826697349548, -0.11215236783027649, -0.15181535482406616, -0.1638977825641632, -0.5769143104553223, -0.6889222860336304, 1.108665943145752, 0.4003910422325134, 0.8345391750335693, -0.17450399696826935, 0.7450321912765503, -0.14709646999835968, 0.021920116618275642, -0.7805457711219788, 0.6708287596702576, -0.1569906324148178, -0.6475995182991028, -0.1766512542963028, -0.13062579929828644, -1.036405324935913, 0.27092093229293823, 0.1073528602719307, -1.1041197776794434, 0.16166652739048004, -0.16102996468544006, -0.1943584531545639, 0.476750910282135, -0.5918904542922974, 1.2100567817687988, -0.26240527629852295, 0.14854803681373596, 0.11644548922777176, -0.41155415773391724, 0.23288112878799438, 0.18580946326255798, -0.00898138526827097, -0.16512516140937805, 0.16248007118701935, 0.9696940779685974, -0.4754335284233093, 0.7064550518989563, -0.311227023601532, 0.1354355663061142, 0.09502864629030228, -0.1736585646867752, 0.4238590598106384, 0.17991289496421814, -0.03148115798830986, 0.25001755356788635, 0.02945571579039097, -0.40077608823776245, -0.11767459660768509, 0.5071631669998169, -0.9196808934211731, -0.2228437066078186, -0.5389153957366943, -0.14656467735767365, 0.41700080037117004, 0.6711731553077698, 1.0015513896942139, 0.33736684918403625, -0.2089919149875641, 0.09653645008802414, 0.4825872480869293, -0.18491044640541077, 0.687616229057312, 0.19819185137748718, -0.4342613220214844, -0.8263249397277832, 0.9700207710266113, 0.30577173829078674, 0.05480426177382469, 0.0235891193151474, -0.13718606531620026, -0.4727248251438141, -0.3366827368736267, -0.2214038074016571, 0.2990771532058716, -0.6144148111343384, -0.3202504813671112, -0.5710656642913818, -0.4532380998134613, -0.5340597033500671, -0.1812187135219574, -0.39987894892692566, -0.49935564398765564, -0.47105786204338074, -0.5433688163757324, 0.30467358231544495, 0.4885735809803009, -0.23456881940364838, 0.6102535724639893, -0.6874580979347229, 0.6322610378265381, 0.15515218675136566, 0.3885848820209503, -0.4052293300628662, -0.2808104157447815, -0.4404997229576111, -0.14226877689361572, -0.18086010217666626, -1.0113410949707031, 0.6799702048301697, 0.041362736374139786, 0.5335545539855957, 0.47005289793014526, 0.0904342383146286, 0.6772415041923523, -0.7540125846862793, 1.0240356922149658, 0.38707295060157776, -1.1152263879776, 0.697618842124939, 0.0003907367936335504, 0.15571637451648712, 0.710059642791748, 0.09321310371160507, -0.5800569653511047, -0.25723257660865784, -0.7587688565254211, -1.1225502490997314, 0.9591147303581238, 0.28266441822052, 0.2562817931175232, -0.19105376303195953, 0.02296549826860428, 0.1402902752161026, 0.30000370740890503, -1.172568440437317, -0.9066893458366394, -0.6146276593208313, -0.36374154686927795, 0.11633032560348511, -0.2977682948112488, 0.040970806032419205, -0.6029877066612244, 1.0770013332366943, 0.3179287314414978, 0.46429750323295593, 0.2440265566110611, -0.0723998174071312, -0.02981175109744072, 0.20293721556663513, 0.611453115940094, 0.41525477170944214, -0.3273767828941345, 0.1843971163034439, 0.3455953598022461, -0.7122177481651306, 0.43462851643562317, 0.18119515478610992, -0.13781501352787018, 0.6141968369483948, 0.20205959677696228, 1.0688384771347046, -0.12501990795135498, -0.25998008251190186, 0.26977548003196716, 0.10747275501489639, -0.3423793613910675, -0.9393602609634399, -0.08117169141769409, -0.23955614864826202, -0.17606249451637268, 0.4205005466938019, 0.058063749223947525, -0.06867159157991409, -0.22943845391273499, 0.11955342441797256, 0.23822377622127533, -0.5152127742767334, -0.4407026469707489, 0.8279266357421875, 0.250037282705307, -0.6997905969619751, 0.6022472977638245, -0.22368119657039642, -1.021785855293274, 0.8846746683120728, 0.8060800433158875, 1.1968153715133667, -0.3715153634548187, 0.3229769468307495, 0.7928475737571716, 0.4788309633731842, -0.2337326556444168, 0.6694145798683167, 0.16835571825504303, -0.8993721604347229, -0.221344456076622, -0.4144745171070099, 0.04836384207010269, 0.3555140197277069, -0.7054769992828369, 0.5145215392112732, -0.4709453582763672, -0.24743510782718658, -0.048061348497867584, 0.04716777428984642, -0.7216508388519287, 0.17053112387657166, -0.05209943652153015, 1.0667839050292969, -0.9195602536201477, 0.9060120582580566, 1.028300404548645, -0.6103125810623169, -0.7902780771255493, -0.4418548047542572, -0.6110734343528748, -0.687949538230896, 0.9330063462257385, 0.4129287600517273, 0.23200564086437225, 0.29722216725349426, -0.7755348086357117, -0.8332808017730713, 1.0239555835723877, 0.022670600563287735, -0.34238532185554504, 0.04834930971264839, 0.020903512835502625, 0.33398184180259705, -0.18941284716129303, 0.3229008913040161, 0.7888073325157166, 0.6631591320037842, -0.3937149941921234, -1.02815580368042, 0.04111664369702339, -0.34780895709991455, -0.014403003267943859, 0.3006463050842285, -0.6397846341133118, 0.9734582304954529, 0.013943063095211983, -0.3330576419830322, 0.30715540051460266, 0.7801757454872131, 0.4211265742778778, 0.2585960924625397, 0.4809988737106323, 0.6637347936630249, 0.5827748775482178, -0.4090611934661865, 0.5098932981491089, -0.24046102166175842, 0.7751507759094238, 0.8085830807685852, -0.2138018012046814, 0.5698798894882202, 0.6035056114196777, -0.4935552477836609, 1.0227409601211548, 0.5928329229354858, -0.36596041917800903, 0.814826488494873, 0.1712196320295334, -0.5156100988388062, -0.1627207100391388, 0.27794593572616577, -0.4209308624267578, 0.34357717633247375, 0.36263689398765564, -0.2790359556674957, -0.11945507675409317, 0.10977768152952194, 0.22858209908008575, -0.15384753048419952, -0.5257992148399353, 0.7131451964378357, 0.014193779788911343, -0.37149521708488464, 0.554140567779541, 0.16551753878593445, 0.8970691561698914, -0.6592456698417664, -0.13962335884571075, 0.10180846601724625, 0.3929521441459656, -0.30043286085128784, -0.4235631227493286, -0.04484884813427925, -0.1353035420179367, -0.05538380518555641, -0.03313187509775162, 0.8576370477676392, -0.4493865966796875, -0.7921558618545532, 0.10990596562623978, 0.05536883324384689, 0.23750346899032593, 0.22447045147418976, -0.5402595400810242, -0.23035770654678345, 0.12854424118995667, -0.41059771180152893, -0.005122947972267866, 0.1588444858789444, 0.3569328486919403, 0.49310123920440674, 0.6004548072814941, 0.23630782961845398, 0.3483293056488037, -0.05244644731283188, 0.7074052691459656, -0.6743799448013306, -0.5051612257957458, -0.9518170356750488, 0.6874382495880127, -0.39864423871040344, -0.6077880263328552, 0.9878092408180237, 0.7402141690254211, 1.0891258716583252, -0.5211839079856873, 0.9800617098808289, -0.28262338042259216, 0.40526148676872253, -0.49180537462234497, 0.8686102032661438, -0.06422862410545349, -0.16040252149105072, -0.28801730275154114, -0.9707973599433899, -0.3731054365634918, 1.0694321393966675, -0.010773485526442528, 0.09403949975967407, 0.8711718916893005, 0.5381721258163452, -0.06307565420866013, -0.28944894671440125, 0.32997533679008484, 0.4766246974468231, 0.1250094473361969, 0.4570421278476715, 0.6598147749900818, -0.9213801026344299, 0.3985387682914734, -0.6282197833061218, 0.043924782425165176, -0.23990392684936523, -0.6954742670059204, -1.1335227489471436, -0.2890926003456116, -0.4404837191104889, -0.7252788543701172, -0.4072847366333008, 1.137579321861267, 0.5649994611740112, -1.179075002670288, -0.3500860929489136, -0.3799397945404053, 0.3743285834789276, -0.2687905728816986, -0.3265813887119293, 0.5868782997131348, -0.28704380989074707, -0.841289758682251, 0.29746490716934204, -0.035291191190481186, 0.08416756242513657, 0.029206931591033936, -0.0937669575214386, -0.28032734990119934, 0.030723556876182556, 0.6440773606300354, 0.45518627762794495, -0.8002370595932007, -0.5559335947036743, -0.1517629474401474, -0.20905622839927673, 0.00418922258540988, 0.4894004166126251, -0.7889480590820312, 0.36206549406051636, 0.5051954388618469, -0.03848662227392197, 0.5016100406646729, -0.000055327687732642516, 0.46701958775520325, -0.8028464317321777, 0.4023626446723938, 0.04660005122423172, 0.6891010403633118, 0.06691539287567139, -0.12220299988985062, 0.6249164342880249, 0.5297355055809021, -0.7005184292793274, -0.9417484998703003, 0.10914304852485657, -1.009263515472412, -0.03285235911607742, 1.174168348312378, -0.16167382895946503, -0.14586091041564941, -0.47124090790748596, -0.7947998046875, 0.5988516211509705, -0.18102291226387024, 0.47836682200431824, 0.7668022513389587, 0.023762550204992294, -0.04694632813334465, -0.31437399983406067, 0.47542476654052734, 0.2583344578742981, -0.7246233224868774, -0.09399829059839249, 0.1184040755033493, 0.25577735900878906, 0.3359140455722809, 0.7723740339279175, -0.07092537730932236, 0.34206774830818176, 0.30965790152549744, 0.43814533948898315, 0.10696262121200562, -0.020700234919786453, -0.33837082982063293, -0.12017571181058884, -0.25110915303230286, -0.7248646020889282 ]
ALINEAR/albert-japanese-v2
ALINEAR
"2020-05-04T13:20:53Z"
13,034
2
transformers
[ "transformers", "pytorch", "albert", "fill-mask", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
fill-mask
"2022-03-02T23:29: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 ]
nvidia/segformer-b1-finetuned-ade-512-512
nvidia
"2022-08-06T10:08:05Z"
13,024
0
transformers
[ "transformers", "pytorch", "tf", "segformer", "vision", "image-segmentation", "dataset:scene_parse_150", "arxiv:2105.15203", "license:other", "endpoints_compatible", "region:us" ]
image-segmentation
"2022-03-02T23:29:05Z"
--- license: other tags: - vision - image-segmentation datasets: - scene_parse_150 widget: - src: https://huggingface.co/datasets/hf-internal-testing/fixtures_ade20k/resolve/main/ADE_val_00000001.jpg example_title: House - src: https://huggingface.co/datasets/hf-internal-testing/fixtures_ade20k/resolve/main/ADE_val_00000002.jpg example_title: Castle --- # SegFormer (b1-sized) model fine-tuned on ADE20k SegFormer model fine-tuned on ADE20k at resolution 512x512. It was introduced in the paper [SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers](https://arxiv.org/abs/2105.15203) by Xie et al. and first released in [this repository](https://github.com/NVlabs/SegFormer). Disclaimer: The team releasing SegFormer did not write a model card for this model so this model card has been written by the Hugging Face team. ## Model description SegFormer consists of a hierarchical Transformer encoder and a lightweight all-MLP decode head to achieve great results on semantic segmentation benchmarks such as ADE20K and Cityscapes. The hierarchical Transformer is first pre-trained on ImageNet-1k, after which a decode head is added and fine-tuned altogether on a downstream dataset. ## Intended uses & limitations You can use the raw model for semantic segmentation. See the [model hub](https://huggingface.co/models?other=segformer) to look for fine-tuned versions on a task that interests you. ### How to use Here is how to use this model to classify an image of the COCO 2017 dataset into one of the 1,000 ImageNet classes: ```python from transformers import SegformerFeatureExtractor, SegformerForSemanticSegmentation from PIL import Image import requests feature_extractor = SegformerFeatureExtractor.from_pretrained("nvidia/segformer-b1-finetuned-ade-512-512") model = SegformerForSemanticSegmentation.from_pretrained("nvidia/segformer-b1-finetuned-ade-512-512") url = "http://images.cocodataset.org/val2017/000000039769.jpg" image = Image.open(requests.get(url, stream=True).raw) inputs = feature_extractor(images=image, return_tensors="pt") outputs = model(**inputs) logits = outputs.logits # shape (batch_size, num_labels, height/4, width/4) ``` For more code examples, we refer to the [documentation](https://huggingface.co/transformers/model_doc/segformer.html#). ### BibTeX entry and citation info ```bibtex @article{DBLP:journals/corr/abs-2105-15203, author = {Enze Xie and Wenhai Wang and Zhiding Yu and Anima Anandkumar and Jose M. Alvarez and Ping Luo}, title = {SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers}, journal = {CoRR}, volume = {abs/2105.15203}, year = {2021}, url = {https://arxiv.org/abs/2105.15203}, eprinttype = {arXiv}, eprint = {2105.15203}, timestamp = {Wed, 02 Jun 2021 11:46:42 +0200}, biburl = {https://dblp.org/rec/journals/corr/abs-2105-15203.bib}, bibsource = {dblp computer science bibliography, https://dblp.org} } ```
[ -0.9162299633026123, -0.734084963798523, 0.1515973061323166, 0.19017794728279114, -0.327154278755188, -0.3693268895149231, 0.006148579530417919, -0.6744304299354553, 0.31449779868125916, 0.5624794363975525, -0.8879472017288208, -0.5657171607017517, -0.7558444142341614, 0.11751338094472885, -0.33767563104629517, 0.8099616169929504, 0.07394290715456009, -0.10965175926685333, -0.32062387466430664, -0.36290696263313293, -0.018802853301167488, -0.302520215511322, -0.6277052164077759, -0.3340858817100525, 0.39390432834625244, 0.2321345955133438, 0.5831756591796875, 0.8174605369567871, 0.6946013569831848, 0.4681530296802521, -0.4404282569885254, 0.15348325669765472, -0.3125368058681488, -0.207071453332901, 0.026240449398756027, -0.05574960634112358, -0.4190051257610321, -0.0047464314848184586, 0.36075618863105774, 0.6646894216537476, 0.09722524136304855, 0.3814883530139923, -0.04112113639712334, 0.446243017911911, -0.4513073265552521, 0.1061154380440712, -0.5048398971557617, 0.15806148946285248, 0.05373555049300194, -0.028714798390865326, -0.2985098958015442, -0.15617559850215912, 0.21773800253868103, -0.5019647479057312, 0.7412823438644409, 0.06167302653193474, 1.539442539215088, 0.4357415437698364, -0.37465596199035645, -0.08143734931945801, -0.46577563881874084, 0.804632842540741, -0.6043437719345093, 0.49375689029693604, -0.09007301181554794, 0.3487875461578369, 0.12734630703926086, -0.9999399185180664, -0.4446750581264496, 0.17543181777000427, -0.23753440380096436, -0.10067156702280045, -0.3450637757778168, 0.07402680814266205, 0.4562200903892517, 0.5622945427894592, -0.450625479221344, 0.0694909393787384, -0.713943362236023, -0.4384518563747406, 0.6990227103233337, 0.04886608198285103, 0.27623051404953003, -0.356571227312088, -0.7842769026756287, -0.44564375281333923, -0.3128393292427063, 0.12313798815011978, 0.241041362285614, 0.028042737394571304, -0.2516045570373535, 0.4620888829231262, -0.039343446493148804, 0.7400927543640137, 0.46384793519973755, -0.11019979417324066, 0.46793267130851746, -0.16048656404018402, -0.3412138521671295, 0.058839090168476105, 0.8884367346763611, 0.4127257466316223, 0.028570538386702538, 0.052174363285303116, -0.07445405423641205, 0.14094297587871552, 0.3230375051498413, -1.3139575719833374, -0.2570601999759674, 0.0525299534201622, -0.5182011723518372, -0.3163214921951294, 0.20765429735183716, -0.7842389941215515, -0.04950392618775368, -0.19694210588932037, 0.4808935225009918, -0.3144746422767639, -0.058389537036418915, 0.10321613401174545, -0.11964789032936096, 0.7644662261009216, 0.2492009848356247, -0.8386971354484558, 0.23522865772247314, 0.5534934997558594, 0.7616178393363953, -0.2403048574924469, -0.11326658725738525, -0.15498556196689606, -0.12780234217643738, -0.16902296245098114, 0.9147903919219971, -0.2851426899433136, -0.3044757843017578, -0.31328845024108887, 0.6299360990524292, -0.2751196324825287, -0.6360769867897034, 0.7882909774780273, -0.5333101749420166, 0.24570894241333008, -0.05451848730444908, -0.39221110939979553, -0.5910589098930359, 0.29424363374710083, -0.655356764793396, 0.9202951788902283, 0.2439749389886856, -0.7949908971786499, 0.5051383376121521, -0.5926530957221985, -0.27456584572792053, -0.07285168766975403, 0.048441603779792786, -0.8753317594528198, 0.05138801410794258, 0.47612908482551575, 0.4681718349456787, -0.2048032432794571, 0.1719125360250473, -0.5448288321495056, -0.17176462709903717, -0.01820852980017662, -0.2200625091791153, 0.981642484664917, 0.3378864824771881, -0.3052312433719635, 0.4504203498363495, -0.7049329280853271, 0.027616409584879875, 0.4765636622905731, 0.03883744031190872, -0.017913660034537315, -0.339589387178421, 0.2427813559770584, 0.41115802526474, 0.22994555532932281, -0.6623014211654663, 0.032851796597242355, -0.3164677321910858, 0.4190804362297058, 0.6540023684501648, 0.11362536251544952, 0.48998740315437317, -0.086948923766613, 0.32192522287368774, 0.15317130088806152, 0.4521425664424896, -0.17149138450622559, -0.22426770627498627, -1.1320134401321411, -0.4387105703353882, 0.24917487800121307, 0.13586436212062836, -0.39646974205970764, 0.6572794318199158, -0.22016626596450806, -0.6259288787841797, -0.5053011775016785, -0.006061866879463196, 0.055127061903476715, 0.5218847393989563, 0.5205410122871399, -0.4382021129131317, -0.7489212155342102, -1.1842025518417358, 0.1466410905122757, 0.22917865216732025, -0.06034938618540764, 0.3576633036136627, 0.5417482852935791, -0.6691814064979553, 0.8282615542411804, -0.7559075951576233, -0.30110806226730347, -0.18631494045257568, -0.057406242936849594, 0.30194908380508423, 0.5819034576416016, 0.6492001414299011, -0.853356659412384, -0.3691573739051819, -0.2339167296886444, -0.6019641160964966, -0.08704757690429688, 0.12660129368305206, -0.3756216764450073, 0.14049963653087616, 0.437577486038208, -0.5590197443962097, 0.4253997802734375, 0.46447694301605225, -0.6119948625564575, 0.3301299214363098, -0.05340031161904335, -0.005280820652842522, -0.9986063838005066, 0.1840207427740097, 0.18185614049434662, -0.2601965069770813, -0.5182803869247437, 0.1649092137813568, 0.016219042241573334, -0.17751777172088623, -0.6139705181121826, 0.5347727537155151, -0.3642774820327759, -0.011657357215881348, -0.2719419300556183, -0.16923068463802338, 0.16829435527324677, 0.7901604175567627, 0.16475613415241241, 0.3048173189163208, 0.48934370279312134, -0.7229638695716858, 0.22616766393184662, 0.5366479158401489, -0.37827566266059875, 0.5178605318069458, -1.0543092489242554, 0.0929141417145729, -0.10482324659824371, 0.08955108374357224, -0.7755377888679504, -0.33664029836654663, 0.3840574026107788, -0.3047359883785248, 0.45441022515296936, -0.2773771286010742, -0.22128210961818695, -0.6041440963745117, -0.22694018483161926, 0.4067496955394745, 0.4943748712539673, -0.8218705058097839, 0.5799931883811951, 0.5238876938819885, 0.12479068338871002, -0.28299927711486816, -0.6104516983032227, -0.3272421360015869, -0.41081666946411133, -1.0833286046981812, 0.6585267782211304, -0.0486530177295208, 0.19753357768058777, 0.031965337693691254, -0.37749049067497253, -0.038705479353666306, -0.049036115407943726, 0.3550497591495514, 0.5143158435821533, -0.13817207515239716, -0.4050551950931549, 0.0074919783510267735, -0.4453844726085663, 0.1290600597858429, -0.0901368036866188, 0.6669685244560242, -0.35424986481666565, -0.37913912534713745, -0.2734158933162689, 0.013212793506681919, 0.47212713956832886, -0.26966655254364014, 0.49056360125541687, 1.2350870370864868, -0.31278425455093384, -0.0612921267747879, -0.5537616014480591, -0.28536611795425415, -0.5726057291030884, 0.34761855006217957, -0.23786674439907074, -1.0545331239700317, 0.5570433139801025, 0.01128356996923685, 0.03997310623526573, 0.9983540773391724, 0.4558010399341583, 0.1519283503293991, 1.2490806579589844, 0.6481934785842896, 0.4225696325302124, 0.530563235282898, -0.7985541224479675, 0.1892407387495041, -1.0157300233840942, -0.5502837896347046, -0.4280131161212921, -0.44933605194091797, -0.7346270084381104, -0.6698516607284546, 0.39110067486763, 0.15858694911003113, -0.3889985680580139, 0.6261633038520813, -0.8815209269523621, 0.24090805649757385, 0.5096997022628784, 0.06901263445615768, -0.15449392795562744, 0.0987454354763031, -0.12963099777698517, 0.0667458325624466, -0.7399508357048035, -0.36510705947875977, 0.33740368485450745, 0.5357373952865601, 0.7866230010986328, -0.1932733654975891, 0.575118899345398, -0.07770620286464691, -0.009364006109535694, -0.9703876376152039, 0.6315094828605652, -0.12158101052045822, -0.7018876075744629, -0.11858223378658295, -0.3099798262119293, -1.0093415975570679, 0.44084516167640686, -0.12872901558876038, -0.8544229865074158, 0.6447957158088684, 0.10078121721744537, -0.23306481540203094, 0.2779448330402374, -0.6742379069328308, 1.2192541360855103, -0.21537010371685028, -0.3741585910320282, 0.10298606008291245, -0.6973170042037964, 0.24448616802692413, 0.24232426285743713, -0.10080836713314056, -0.42383575439453125, 0.29880496859550476, 0.9303889870643616, -0.6983088850975037, 0.6762614846229553, -0.31608521938323975, 0.22248755395412445, 0.6079525351524353, -0.09404554963111877, 0.37114423513412476, -0.0034127377439290285, 0.2675442099571228, 0.4908992648124695, 0.25382083654403687, -0.3595980405807495, -0.39666667580604553, 0.6597176790237427, -0.8199790120124817, -0.6021973490715027, -0.41691023111343384, -0.27949708700180054, -0.008860914036631584, 0.33733901381492615, 0.5018419027328491, 0.42339062690734863, -0.1324833333492279, 0.4632403552532196, 0.6279007792472839, -0.3316701352596283, 0.5180004835128784, 0.1932648867368698, -0.1300140917301178, -0.3962700366973877, 0.877397894859314, -0.16216757893562317, 0.03007812239229679, 0.2955596446990967, 0.2977507710456848, -0.4898068308830261, -0.2119278907775879, -0.449985533952713, 0.28797122836112976, -0.6642007827758789, -0.41142770648002625, -0.8615688681602478, -0.5725103616714478, -0.4613649547100067, -0.28016188740730286, -0.49173808097839355, -0.3442043364048004, -0.40409502387046814, -0.009325185790657997, 0.3746168315410614, 0.36082762479782104, -0.179767444729805, 0.3333621919155121, -0.6797395348548889, 0.2514350712299347, 0.3974350690841675, 0.336124449968338, -0.04615924134850502, -0.6249465346336365, -0.13215667009353638, -0.021337823942303658, -0.5332066416740417, -0.523395299911499, 0.5902490615844727, 0.13012735545635223, 0.5587782859802246, 0.6050381660461426, -0.06509166955947876, 0.9878264665603638, -0.2355097383260727, 0.5818769931793213, 0.3994060754776001, -0.7920240163803101, 0.38053998351097107, -0.10932454466819763, 0.5034769177436829, 0.4184066653251648, 0.28433459997177124, -0.5669605135917664, 0.08124549686908722, -0.8130446672439575, -1.1121742725372314, 0.9520401954650879, 0.08197053521871567, 0.009018952958285809, 0.09338479489088058, -0.04225148633122444, 0.04642375931143761, -0.07460378855466843, -0.5498027801513672, -0.3802879750728607, -0.35609424114227295, -0.2142251580953598, -0.03630678728222847, -0.4375535249710083, -0.02411690354347229, -0.5337748527526855, 0.6853024363517761, -0.16219784319400787, 0.6796962022781372, 0.2671934962272644, -0.3231447637081146, -0.03143386170268059, -0.049255117774009705, 0.41582831740379333, 0.30848410725593567, -0.26745808124542236, 0.1250842809677124, 0.19748739898204803, -0.4140729010105133, -0.09301779419183731, 0.3907780349254608, -0.2941274642944336, -0.024743638932704926, 0.3299034535884857, 1.0959632396697998, 0.3255259096622467, -0.30304354429244995, 0.5324434638023376, -0.02248036116361618, -0.48640012741088867, -0.37208056449890137, 0.2535962760448456, -0.01668000966310501, 0.3579719662666321, 0.23798418045043945, 0.4037780165672302, 0.3173026442527771, -0.022187650203704834, 0.31316012144088745, 0.37085819244384766, -0.7130700349807739, -0.3694520890712738, 0.7898882031440735, 0.11311299353837967, -0.024240946397185326, 0.6981905698776245, -0.1309226155281067, -0.6624467372894287, 0.8901461362838745, 0.50254225730896, 1.0199095010757446, -0.04143649339675903, 0.255696564912796, 0.7741202116012573, 0.1361846774816513, 0.1537611484527588, -0.1508588045835495, -0.13237282633781433, -0.7585071325302124, -0.36148136854171753, -1.0216467380523682, -0.005776793695986271, 0.10396187752485275, -0.7277287840843201, 0.5456876754760742, -0.4098604619503021, -0.17156444489955902, 0.25915640592575073, 0.07909790426492691, -1.0737546682357788, 0.2546144425868988, 0.24894918501377106, 0.9968734979629517, -0.5922329425811768, 0.48436832427978516, 0.7824782729148865, -0.19613169133663177, -0.7536356449127197, -0.4951848089694977, -0.026541978120803833, -0.9084888100624084, 0.3961229622364044, 0.5179674625396729, 0.027965573593974113, 0.032701846212148666, -0.693966805934906, -1.0361672639846802, 1.3108247518539429, 0.13414043188095093, -0.29313042759895325, -0.02931261993944645, 0.02298017591238022, 0.37387019395828247, -0.45430028438568115, 0.3492920696735382, 0.41097962856292725, 0.5426909923553467, 0.7251943945884705, -0.4744027256965637, 0.10673432052135468, -0.31374624371528625, 0.17467032372951508, 0.3244466781616211, -0.8334007859230042, 0.6079832911491394, -0.3335458040237427, -0.2876654863357544, -0.1034587025642395, 0.6934688091278076, 0.11350159347057343, 0.2760436236858368, 0.7236539125442505, 0.7693450450897217, 0.43737149238586426, -0.34555578231811523, 0.8292654752731323, -0.23192563652992249, 0.7564002871513367, 0.7625010013580322, 0.27724459767341614, 0.29820284247398376, 0.4345107972621918, -0.11385303735733032, 0.44306719303131104, 0.943562388420105, -0.5467721819877625, 0.47431349754333496, -0.08325685560703278, 0.18053941428661346, -0.41789010167121887, -0.20837706327438354, -0.4017501175403595, 0.7761906385421753, 0.26411816477775574, -0.6034841537475586, -0.2347770631313324, -0.1478947252035141, -0.035222090780735016, -0.4467625617980957, -0.21148009598255157, 0.6664817929267883, 0.1303723156452179, -0.3454437851905823, 0.6386695504188538, 0.14642231166362762, 0.7108387351036072, -0.45768576860427856, 0.042818378657102585, -0.10513771325349808, 0.29099759459495544, -0.3319575786590576, -0.46838822960853577, 0.6004291772842407, -0.19825710356235504, -0.05018344894051552, -0.10899189859628677, 0.9855044484138489, -0.2977840006351471, -0.7586175799369812, 0.1862427294254303, 0.14432117342948914, 0.041445858776569366, 0.11655380576848984, -0.924079954624176, 0.4004947543144226, 0.06321775913238525, -0.44628193974494934, 0.022948002442717552, 0.18005138635635376, 0.13661636412143707, 0.5101815462112427, 0.5712845325469971, -0.33920666575431824, 0.033009059727191925, -0.1545926183462143, 0.8873281478881836, -0.7148440480232239, -0.3781195878982544, -0.7088197469711304, 0.5560802817344666, -0.3243911862373352, -0.3181716203689575, 0.7719148397445679, 0.6392541527748108, 1.1047521829605103, -0.2583251893520355, 0.258709192276001, -0.43169501423835754, 0.14586438238620758, -0.20263895392417908, 0.505564272403717, -0.6399705410003662, -0.09800989925861359, -0.4066901206970215, -1.0830069780349731, -0.3280361294746399, 0.8684614896774292, -0.35858869552612305, 0.25280991196632385, 0.5168827772140503, 0.9372352361679077, -0.312554270029068, -0.02995731681585312, 0.2453673779964447, 0.07321514934301376, 0.2014927864074707, 0.3221609592437744, 0.599571168422699, -0.5572552680969238, 0.5396049618721008, -0.7286823987960815, 0.015356218442320824, -0.4914858043193817, -0.619655191898346, -0.8601452708244324, -0.5905319452285767, -0.5347248911857605, -0.3253479301929474, -0.4226072132587433, 0.8643411993980408, 1.11780846118927, -0.9142700433731079, -0.023925675079226494, 0.029798639938235283, 0.18022960424423218, -0.20206575095653534, -0.2994263768196106, 0.4929095208644867, -0.037681564688682556, -0.9839029312133789, -0.0639294907450676, 0.2673247158527374, 0.13984645903110504, -0.053885795176029205, -0.230209082365036, -0.014219514094293118, -0.12224957346916199, 0.6765682697296143, 0.29635050892829895, -0.5894321203231812, -0.3612769842147827, 0.21505969762802124, -0.025277523323893547, 0.22409573197364807, 0.6166524291038513, -0.5150402188301086, 0.36858564615249634, 0.5675215721130371, 0.4653664827346802, 0.943034827709198, 0.0997159332036972, 0.13633498549461365, -0.4744472801685333, 0.274345725774765, 0.14196032285690308, 0.5003911852836609, 0.40400418639183044, -0.22519125044345856, 0.5347694754600525, 0.3405967950820923, -0.5150213837623596, -0.5772927403450012, 0.10352470725774765, -1.2668439149856567, -0.14159290492534637, 1.0322465896606445, 0.05966256558895111, -0.6235089898109436, 0.29518386721611023, -0.20702242851257324, 0.37779587507247925, -0.18278837203979492, 0.5464649796485901, 0.27157020568847656, -0.16096794605255127, -0.3924088180065155, -0.10429734736680984, 0.3491459786891937, 0.023250119760632515, -0.5134367346763611, -0.5429093837738037, 0.4505966305732727, 0.43966877460479736, 0.31430384516716003, 0.15307292342185974, -0.4138352572917938, 0.07932169735431671, 0.184697687625885, 0.3274630606174469, -0.27747613191604614, -0.23016497492790222, -0.18036913871765137, 0.1542181670665741, -0.16926386952400208, -0.3136543035507202 ]
ai-forever/sbert_large_mt_nlu_ru
ai-forever
"2023-07-28T10:13:22Z"
13,015
13
transformers
[ "transformers", "pytorch", "tf", "jax", "bert", "feature-extraction", "PyTorch", "Transformers", "ru", "endpoints_compatible", "region:us" ]
feature-extraction
"2022-03-02T23:29:05Z"
--- language: - ru tags: - PyTorch - Transformers --- # BERT large model multitask (cased) for Sentence Embeddings in Russian language. The model is described [in this article](https://habr.com/ru/company/sberdevices/blog/560748/) Russian SuperGLUE [metrics](https://russiansuperglue.com/login/submit_info/944) For better quality, use mean token embeddings. ## Usage (HuggingFace Models Repository) You can use the model directly from the model repository to compute sentence 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() sum_embeddings = torch.sum(token_embeddings * input_mask_expanded, 1) sum_mask = torch.clamp(input_mask_expanded.sum(1), min=1e-9) return sum_embeddings / sum_mask #Sentences we want sentence embeddings for sentences = ['Привет! Как твои дела?', 'А правда, что 42 твое любимое число?'] #Load AutoModel from huggingface model repository tokenizer = AutoTokenizer.from_pretrained("ai-forever/sbert_large_mt_nlu_ru") model = AutoModel.from_pretrained("ai-forever/sbert_large_mt_nlu_ru") #Tokenize sentences encoded_input = tokenizer(sentences, padding=True, truncation=True, max_length=24, return_tensors='pt') #Compute token embeddings with torch.no_grad(): model_output = model(**encoded_input) #Perform pooling. In this case, mean pooling sentence_embeddings = mean_pooling(model_output, encoded_input['attention_mask']) ``` # Authors + [SberDevices](https://sberdevices.ru/) Team. + Aleksandr Abramov: [HF profile](https://huggingface.co/Andrilko), [Github](https://github.com/Ab1992ao), [Kaggle Competitions Master](https://www.kaggle.com/andrilko); + Denis Antykhov: [Github](https://github.com/gaphex);
[ -0.19109930098056793, -0.7694439888000488, 0.41757410764694214, 0.4489196538925171, -0.3400716483592987, -0.10757461935281754, -0.3162817358970642, -0.22034190595149994, 0.3405090272426605, 0.25575393438339233, -0.7347081899642944, -0.6761837005615234, -0.6715825200080872, -0.19999900460243225, -0.25167977809906006, 1.213752031326294, -0.19930033385753632, 0.20576511323451996, -0.23689548671245575, -0.11846386641263962, -0.20235666632652283, -0.5355319976806641, -0.30394595861434937, -0.3360323905944824, 0.17125950753688812, 0.21231600642204285, 0.4264028072357178, 0.25325867533683777, 0.3282371461391449, 0.4264777600765228, 0.0237884521484375, -0.008341307751834393, -0.19852185249328613, 0.07608507573604584, 0.1342577040195465, -0.23161450028419495, -0.2774578034877777, 0.04031074792146683, 0.8287906646728516, 0.16890661418437958, -0.254513144493103, 0.15774910151958466, -0.21605311334133148, 0.4066232740879059, -0.4937131106853485, 0.4313408136367798, -0.1937275379896164, 0.15625199675559998, -0.11600128561258316, 0.3210495412349701, -0.4122028648853302, -0.06256639212369919, 0.3169225752353668, -0.4149572551250458, -0.09964649379253387, 0.12569491565227509, 1.1869330406188965, 0.18440090119838715, -0.17486275732517242, -0.49484938383102417, -0.07672321796417236, 1.086487054824829, -0.9982718825340271, 0.3628852069377899, 0.37782666087150574, -0.057038623839616776, -0.2056182324886322, -0.7136795520782471, -0.6387333869934082, -0.2260720431804657, -0.3637528121471405, 0.1291663497686386, -0.25555670261383057, 0.11689676344394684, 0.2300432324409485, 0.20544998347759247, -0.8649497628211975, -0.17801930010318756, -0.23562534153461456, -0.39909690618515015, 0.6475508809089661, -0.05047274008393288, 0.3895959258079529, -0.4416416883468628, -0.2463240623474121, -0.12962259352207184, -0.22579516470432281, -0.10370025038719177, 0.3924761116504669, 0.044874511659145355, -0.40438321232795715, 0.6964367032051086, -0.24167005717754364, 0.7095952033996582, -0.1416224241256714, 0.06409811228513718, 0.6892909407615662, -0.3026936948299408, -0.31593573093414307, -0.15357795357704163, 0.9884383082389832, 0.11725994199514389, 0.4380101263523102, -0.036195676773786545, -0.1496160924434662, -0.025845497846603394, 0.017272774130105972, -0.9198710918426514, -0.46430397033691406, 0.3860567808151245, -0.3481285870075226, -0.19089552760124207, 0.093696229159832, -0.712050199508667, -0.10877497494220734, 0.026042910292744637, 0.681588351726532, -0.6600627303123474, -0.10633358359336853, 0.31119781732559204, -0.07528532296419144, 0.3430265188217163, -0.10681425780057907, -0.8479923605918884, 0.20446228981018066, 0.462643027305603, 0.9791266918182373, 0.21783003211021423, -0.5443016290664673, -0.6983781456947327, -0.2520192563533783, 0.019508974626660347, 0.6429840326309204, -0.40855672955513, 0.12673471868038177, 0.3441253900527954, 0.13760274648666382, -0.32144781947135925, -0.2065131813287735, 0.36737075448036194, -0.3581778109073639, 0.45935294032096863, 0.010281975381076336, -0.7878382802009583, -0.03519540652632713, 0.21031132340431213, -0.32134538888931274, 1.013774037361145, 0.15602995455265045, -0.8553967475891113, 0.2391442060470581, -0.8764133453369141, -0.46019554138183594, 0.036804839968681335, 0.08963002264499664, -0.8716335296630859, 0.03801283985376358, 0.31433042883872986, 1.0463165044784546, 0.2456759363412857, 0.31637129187583923, -0.2574161887168884, -0.20672714710235596, 0.3642827570438385, 0.2120780348777771, 1.095908284187317, 0.16158226132392883, -0.35972923040390015, 0.5098153352737427, -0.48784521222114563, 0.12115000188350677, 0.14550872147083282, -0.20026043057441711, -0.10291744768619537, -0.22631514072418213, 0.5864624381065369, 0.3400377929210663, 0.08882883936166763, -0.8908107280731201, 0.2372194081544876, -0.5120603442192078, 0.9782784581184387, 0.7513453364372253, -0.16382358968257904, 0.27046316862106323, -0.2625733017921448, 0.43060362339019775, 0.08527059108018875, 0.004758310038596392, -0.23793861269950867, -0.4932006895542145, -0.8759031891822815, -0.6252481937408447, 0.46064484119415283, 0.5086591243743896, -0.8081355690956116, 0.6819198131561279, -0.030508503317832947, -0.438360333442688, -0.7366631627082825, 0.19618520140647888, 0.5504023432731628, 0.05818980187177658, 0.3625597655773163, -0.10082044452428818, -0.5128912925720215, -0.9981207251548767, 0.07289905846118927, 0.0736965537071228, 0.1843968629837036, 0.22215014696121216, 0.9486040472984314, -0.11111100018024445, 0.6364963054656982, -0.6835927367210388, -0.4794941842556, -0.39206576347351074, 0.18907667696475983, 0.3734206557273865, 0.6891129016876221, 0.6974281072616577, -0.676872730255127, -0.7217931151390076, -0.4418613016605377, -0.7100530862808228, 0.25802236795425415, -0.17372176051139832, -0.3067345917224884, 0.5296145081520081, 0.4607153832912445, -1.1707899570465088, 0.27986598014831543, 0.7419138550758362, -0.8281859159469604, 0.8569731116294861, -0.28270646929740906, 0.015036972239613533, -1.3360298871994019, 0.2388545274734497, 0.21545831859111786, -0.4575650691986084, -0.6001452803611755, 0.40874260663986206, 0.10694850981235504, -0.011698625981807709, -0.5763179063796997, 0.6148446798324585, -0.6360449194908142, 0.1079806238412857, -0.030429471284151077, 0.1762981414794922, -0.13345611095428467, 0.6636421084403992, -0.12647971510887146, 0.6629177331924438, 0.8323772549629211, -0.35949817299842834, 0.7760225534439087, 0.6137326955795288, -0.7766630053520203, 0.3771568536758423, -0.8283593654632568, 0.04946977645158768, -0.03407580778002739, 0.39457061886787415, -1.106232762336731, -0.42248299717903137, 0.30694982409477234, -0.7358358502388, 0.382341593503952, -0.019558116793632507, -0.9374678730964661, -0.5855792164802551, -0.46401193737983704, 0.14763309061527252, 0.5161583423614502, -0.4879484176635742, 0.3942796587944031, 0.46441227197647095, -0.2519475519657135, -0.7691365480422974, -1.0509414672851562, 0.06569579243659973, -0.18995118141174316, -0.8460988998413086, 0.40028831362724304, -0.3465712368488312, 0.06164770573377609, 0.14787711203098297, 0.2589501738548279, -0.13460859656333923, -0.11209140717983246, -0.027521725744009018, 0.390476256608963, -0.10813334584236145, 0.32163214683532715, -0.03539370000362396, -0.042899053543806076, 0.01857045479118824, -0.2420673966407776, 0.8810445666313171, -0.4022028148174286, -0.09326040744781494, -0.6345807909965515, 0.30644628405570984, 0.5743300318717957, -0.253862589597702, 1.1012520790100098, 1.255218505859375, -0.5748041868209839, -0.06319744139909744, -0.8003359436988831, -0.16239097714424133, -0.4584009647369385, 0.556662380695343, -0.2471906542778015, -1.0906217098236084, 0.73371821641922, 0.4297207295894623, 0.10149098932743073, 0.40349453687667847, 0.8023389577865601, -0.11259447783231735, 0.949588418006897, 0.6731236577033997, -0.2913554310798645, 0.6346806883811951, -0.5802060961723328, 0.14377526938915253, -0.9344508647918701, -0.20508846640586853, -0.12793919444084167, -0.30363619327545166, -0.4722830653190613, -0.23153133690357208, 0.15864528715610504, -0.2814372479915619, -0.12770280241966248, 0.4415919780731201, -0.5654556751251221, 0.3494112193584442, 0.7510885000228882, 0.1407722532749176, -0.22872067987918854, -0.03401143103837967, -0.2882392406463623, -0.04869227111339569, -0.6711626052856445, -0.11981713771820068, 0.9886946082115173, 0.3646066188812256, 0.5504350662231445, 0.06956038624048233, 0.8139683604240417, 0.10781855881214142, 0.02664642035961151, -0.9269210696220398, 0.5327605605125427, -0.17097215354442596, -0.7270976901054382, -0.33488139510154724, -0.39419278502464294, -0.8531832695007324, 0.15250156819820404, -0.3775981664657593, -1.0283522605895996, -0.11613779515028, -0.06007160618901253, -0.4941036105155945, 0.20474307239055634, -0.8924772143363953, 1.1542837619781494, 0.2248098999261856, -0.4089815318584442, -0.28697076439857483, -0.7015582919120789, 0.25738725066185, 0.2503729462623596, 0.10512301325798035, -0.061779867857694626, 0.24338142573833466, 1.013954520225525, -0.279712051153183, 0.800218939781189, -0.3599429428577423, 0.29115399718284607, 0.3052140474319458, -0.20231755077838898, 0.3672337830066681, 0.13595114648342133, 0.03121223859488964, 0.034331005066633224, 0.03686388581991196, -0.6290157437324524, -0.3603207767009735, 0.9597206711769104, -0.9115068316459656, -0.4092801809310913, -0.7361332774162292, -0.6708289384841919, 0.013161903247237206, 0.2494400292634964, 0.22732140123844147, 0.3956316113471985, -0.06306807696819305, 0.4067704379558563, 0.5779465436935425, -0.3953518271446228, 0.8061527013778687, 0.21236257255077362, -0.142971932888031, -0.49703267216682434, 0.8213598132133484, 0.07142412662506104, -0.09189332276582718, 0.19655179977416992, 0.21022720634937286, -0.28074198961257935, -0.40216517448425293, -0.5732458233833313, 0.6942549347877502, -0.4683355391025543, -0.395313560962677, -0.9578586220741272, -0.3900562822818756, -0.8148525357246399, -0.15689364075660706, -0.2878715395927429, -0.3174462914466858, -0.27030324935913086, -0.21666081249713898, 0.5292842984199524, 0.5789487361907959, -0.11004220694303513, 0.4018263518810272, -0.7227611541748047, 0.1388433873653412, 0.08347997814416885, 0.40467849373817444, -0.158637136220932, -0.55239337682724, -0.6110433340072632, -0.14168356359004974, -0.269158273935318, -0.7370215654373169, 0.7190971374511719, 0.1624433398246765, 0.6327529549598694, 0.08176122605800629, -0.07431283593177795, 0.5630983114242554, -0.5599839687347412, 0.8430774211883545, 0.16520266234874725, -1.2505815029144287, 0.4924485683441162, -0.3878101408481598, 0.5673530101776123, 0.3469201624393463, 0.3240935504436493, -0.6325728297233582, -0.32846754789352417, -0.6310192346572876, -0.8880800008773804, 0.9981181621551514, 0.4017093777656555, 0.4492332637310028, -0.006293919403105974, 0.3727898895740509, -0.09473288059234619, 0.23177647590637207, -1.0018210411071777, -0.28547435998916626, -0.26090267300605774, -0.4787783622741699, -0.2012338638305664, -0.4347314238548279, 0.02367737889289856, -0.2820550203323364, 0.9458679556846619, 0.03400944918394089, 0.5775880813598633, 0.3190159499645233, -0.36565840244293213, 0.07456750422716141, 0.11091426759958267, 0.7850361466407776, 0.524613082408905, -0.1674957275390625, -0.1484760046005249, 0.09894800931215286, -0.4469105303287506, -0.13533563911914825, 0.37942662835121155, 0.004290949087589979, 0.2108207792043686, 0.43287765979766846, 0.801148533821106, 0.1735798418521881, -0.7047832608222961, 0.7941250801086426, 0.006771986838430166, -0.48238494992256165, -0.5824753642082214, -0.20678846538066864, 0.3065207600593567, 0.3943459689617157, 0.17625261843204498, -0.24639327824115753, 0.08136962354183197, -0.6003791093826294, 0.36875635385513306, 0.5111989974975586, -0.3642153739929199, -0.28197458386421204, 0.37009748816490173, 0.09157830476760864, -0.20007632672786713, 1.0166398286819458, -0.36117756366729736, -0.7966398596763611, 0.5428475141525269, 0.5098026990890503, 0.9014050960540771, -0.27039799094200134, 0.4291062653064728, 0.4648239314556122, 0.19699205458164215, 0.035379838198423386, 0.3383982181549072, 0.16129404306411743, -0.7873801589012146, -0.5880963206291199, -0.7488967180252075, -0.03251608833670616, 0.2513742744922638, -0.5002315640449524, 0.30548322200775146, -0.4354037642478943, -0.11560076475143433, 0.07466328144073486, 0.16346725821495056, -0.6663169264793396, 0.07368858903646469, 0.08283461630344391, 0.6300387382507324, -0.9731057286262512, 0.8885095119476318, 1.0314151048660278, -0.34823399782180786, -0.4907661974430084, -0.1343507319688797, 0.01095561683177948, -0.9194478988647461, 0.5515217185020447, 0.4075128734111786, 0.32973358035087585, 0.05781855434179306, -0.6041417717933655, -0.9357004761695862, 1.0523451566696167, 0.24103501439094543, -0.2996017336845398, -0.09113811701536179, -0.3572239279747009, 0.5095797777175903, -0.45762553811073303, 0.2744032144546509, 0.38915136456489563, 0.44786781072616577, 0.08202937990427017, -0.9123947620391846, 0.28609421849250793, -0.46234989166259766, -0.23336118459701538, 0.08693170547485352, -0.8404154777526855, 0.8482927083969116, -0.3231153190135956, -0.07888051122426987, 0.26191672682762146, 0.6905449032783508, 0.2664354741573334, 0.016375649720430374, 0.35118749737739563, 0.7800022959709167, 0.46167686581611633, -0.07178018987178802, 0.9418401122093201, -0.2154487520456314, 0.7434732913970947, 0.790599524974823, 0.217996746301651, 0.8961051106452942, 0.48742803931236267, -0.15806370973587036, 0.7050431966781616, 0.5449982285499573, -0.2924423813819885, 0.6102786660194397, 0.48976585268974304, -0.07432188093662262, -0.22333121299743652, -0.006812029052525759, -0.2065892368555069, 0.5503863096237183, 0.3581528067588806, -0.34486013650894165, 0.007105986122041941, 0.28787919878959656, 0.34915754199028015, -0.1828676015138626, 0.09025466442108154, 0.6909511685371399, 0.11948377639055252, -0.5749914646148682, 0.4313114285469055, 0.13974738121032715, 0.9939953088760376, -0.6809128522872925, 0.016378385946154594, 0.04583572968840599, 0.342803418636322, -0.13861976563930511, -0.7864308953285217, 0.3894132673740387, -0.08318868279457092, 0.04274533689022064, -0.29059547185897827, 0.5973957777023315, -0.6679884791374207, -0.6622416377067566, 0.2635047733783722, 0.37146276235580444, 0.26561951637268066, 0.04898162558674812, -1.1070126295089722, 0.19787698984146118, 0.0173114612698555, -0.6535148620605469, 0.33391183614730835, 0.21393217146396637, 0.4235953986644745, 0.7184028625488281, 0.5172251462936401, 0.06197001039981842, -0.17133864760398865, 0.09103650599718094, 0.8969050049781799, -0.5678258538246155, -0.6300236582756042, -1.0651447772979736, 0.7585204839706421, -0.1680900752544403, -0.40249401330947876, 0.6313026547431946, 0.5010842084884644, 0.8359957933425903, -0.29295113682746887, 0.5694711804389954, -0.24574340879917145, 0.1199502944946289, -0.789544403553009, 1.0608679056167603, -0.6335341930389404, -0.35761213302612305, -0.4084201455116272, -0.9965707659721375, -0.5377216935157776, 1.1478341817855835, -0.2299620360136032, 0.1803334802389145, 0.8448069095611572, 0.638947069644928, -0.04941720888018608, -0.30907830595970154, 0.3211062252521515, 0.5820751190185547, 0.3029595613479614, 0.6597424745559692, 0.41180863976478577, -0.5727747678756714, 0.5537641644477844, -0.315660297870636, -0.36931875348091125, -0.3198307454586029, -0.8689342141151428, -1.232589840888977, -0.837226390838623, -0.5722600817680359, -0.4491914212703705, 0.1598464548587799, 1.1686779260635376, 1.069990873336792, -1.015852689743042, -0.20168672502040863, -0.06229511275887489, -0.05158620327711105, -0.026492832228541374, -0.3024745583534241, 0.6486732363700867, -0.4525013267993927, -0.8177387118339539, -0.009026655927300453, -0.01139082945883274, 0.06102252006530762, -0.26819226145744324, 0.11224687099456787, -0.7659103870391846, -0.013044824823737144, 0.6259563565254211, -0.06950005143880844, -0.7799792289733887, -0.48322463035583496, 0.11161010712385178, -0.1251600980758667, -0.15993301570415497, 0.44262436032295227, -0.46119189262390137, 0.3837631344795227, 0.4290023148059845, 0.4582419693470001, 0.9093379378318787, -0.38798290491104126, 0.46860218048095703, -0.8722001910209656, 0.24471302330493927, 0.07868731021881104, 0.7439522743225098, 0.49328532814979553, -0.4191110134124756, 0.4280977249145508, 0.24672004580497742, -0.7725293040275574, -0.7739723324775696, 0.08355308324098587, -1.0677400827407837, -0.265558123588562, 1.2211788892745972, -0.5874274373054504, -0.3078729510307312, 0.13650482892990112, -0.22103211283683777, 0.3116021156311035, -0.5987695455551147, 0.919407308101654, 1.422691822052002, -0.15945008397102356, -0.2418556660413742, -0.5079665780067444, 0.44942644238471985, 0.6233857870101929, -0.6469383835792542, 0.13196371495723724, 0.4228956699371338, 0.3449733257293701, 0.286573201417923, 0.5125319957733154, -0.026967544108629227, 0.2279311716556549, -0.07357846945524216, 0.22454260289669037, -0.17853404581546783, -0.17326964437961578, -0.22645246982574463, -0.10530441999435425, -0.40298157930374146, -0.34096139669418335 ]
Meina/MeinaHentai_V4
Meina
"2023-06-21T02:19:50Z"
12,998
5
diffusers
[ "diffusers", "anime", "meina", "meinahentai", "v4", "meinamix", "en", "license:creativeml-openrail-m", "endpoints_compatible", "diffusers:StableDiffusionPipeline", "region:us" ]
null
"2023-06-20T22:53:36Z"
--- license: creativeml-openrail-m language: - en library_name: diffusers tags: - anime - meina - meinahentai - v4 - meinamix ---
[ -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 ]
facebook/opt-66b
facebook
"2023-01-24T17:12:06Z"
12,972
172
transformers
[ "transformers", "pytorch", "tf", "jax", "opt", "text-generation", "en", "arxiv:2205.01068", "arxiv:2005.14165", "license:other", "has_space", "text-generation-inference", "region:us" ]
text-generation
"2022-06-23T21:51:55Z"
--- language: en inference: false tags: - text-generation - opt license: other commercial: false --- # OPT : Open Pre-trained Transformer Language Models OPT was first introduced in [Open Pre-trained Transformer Language Models](https://arxiv.org/abs/2205.01068) and first released in [metaseq's repository](https://github.com/facebookresearch/metaseq) on May 3rd 2022 by Meta AI. **Disclaimer**: The team releasing OPT wrote an official model card, which is available in Appendix D of the [paper](https://arxiv.org/pdf/2205.01068.pdf). Content from **this** model card has been written by the Hugging Face team. ## Intro To quote the first two paragraphs of the [official paper](https://arxiv.org/abs/2205.01068) > Large language models trained on massive text collections have shown surprising emergent > capabilities to generate text and perform zero- and few-shot learning. While in some cases the public > can interact with these models through paid APIs, full model access is currently limited to only a > few highly resourced labs. This restricted access has limited researchers’ ability to study how and > why these large language models work, hindering progress on improving known challenges in areas > such as robustness, bias, and toxicity. > We present Open Pretrained Transformers (OPT), a suite of decoder-only pre-trained transformers ranging from 125M > to 175B parameters, which we aim to fully and responsibly share with interested researchers. We train the OPT models to roughly match > the performance and sizes of the GPT-3 class of models, while also applying the latest best practices in data > collection and efficient training. Our aim in developing this suite of OPT models is to enable reproducible and responsible research at scale, and > to bring more voices to the table in studying the impact of these LLMs. Definitions of risk, harm, bias, and toxicity, etc., should be articulated by the > collective research community as a whole, which is only possible when models are available for study. ## Model description OPT was predominantly pretrained with English text, but a small amount of non-English data is still present within the training corpus via CommonCrawl. The model was pretrained using a causal language modeling (CLM) objective. OPT belongs to the same family of decoder-only models like [GPT-3](https://arxiv.org/abs/2005.14165). As such, it was pretrained using the self-supervised causal language modedling objective. For evaluation, OPT follows [GPT-3](https://arxiv.org/abs/2005.14165) by using their prompts and overall experimental setup. For more details, please read the [official paper](https://arxiv.org/abs/2205.01068). ## Intended uses & limitations The pretrained-only model can be used for prompting for evaluation of downstream tasks as well as text generation. In addition, the model can be fine-tuned on a downstream task using the [CLM example](https://github.com/huggingface/transformers/tree/main/examples/pytorch/language-modeling). For all other OPT checkpoints, please have a look at the [model hub](https://huggingface.co/models?filter=opt). ### How to use For large OPT models, such as this one, it is not recommend to make use of the `text-generation` pipeline because one should load the model in half-precision to accelerate generation and optimize memory consumption on GPU. It is recommended to directly call the [`generate`](https://huggingface.co/docs/transformers/main/en/main_classes/text_generation#transformers.generation_utils.GenerationMixin.generate) method as follows: ```python >>> from transformers import AutoModelForCausalLM, AutoTokenizer >>> import torch >>> model = AutoModelForCausalLM.from_pretrained("facebook/opt-66b", torch_dtype=torch.float16).cuda() >>> # the fast tokenizer currently does not work correctly >>> tokenizer = AutoTokenizer.from_pretrained("facebook/opt-66b", use_fast=False) >>> prompt = "Hello, I am conscious and" >>> input_ids = tokenizer(prompt, return_tensors="pt").input_ids.cuda() >>> generated_ids = model.generate(input_ids) >>> tokenizer.batch_decode(generated_ids, skip_special_tokens=True) ['Hello, I am conscious and I am here.\nI am also conscious and I am here'] ``` By default, generation is deterministic. In order to use the top-k sampling, please set `do_sample` to `True`. ```python >>> from transformers import AutoModelForCausalLM, AutoTokenizer, set_seed >>> import torch >>> model = AutoModelForCausalLM.from_pretrained("facebook/opt-66b", torch_dtype=torch.float16).cuda() >>> # the fast tokenizer currently does not work correctly >>> tokenizer = AutoTokenizer.from_pretrained("facebook/opt-66b", use_fast=False) >>> prompt = "Hello, I am conscious and" >>> input_ids = tokenizer(prompt, return_tensors="pt").input_ids.cuda() >>> set_seed(32) >>> generated_ids = model.generate(input_ids, do_sample=True) >>> tokenizer.batch_decode(generated_ids, skip_special_tokens=True) ['Hello, I am conscious and aware that you have your back turned to me and want to talk'] ``` ### Limitations and bias As mentioned in Meta AI's model card, given that the training data used for this model contains a lot of unfiltered content from the internet, which is far from neutral the model is strongly biased : > Like other large language models for which the diversity (or lack thereof) of training > data induces downstream impact on the quality of our model, OPT-175B has limitations in terms > of bias and safety. OPT-175B can also have quality issues in terms of generation diversity and > hallucination. In general, OPT-175B is not immune from the plethora of issues that plague modern > large language models. Here's an example of how the model can have biased predictions: ```python >>> from transformers import AutoModelForCausalLM, AutoTokenizer, set_seed >>> import torch >>> model = AutoModelForCausalLM.from_pretrained("facebook/opt-66b", torch_dtype=torch.float16).cuda() >>> # the fast tokenizer currently does not work correctly >>> tokenizer = AutoTokenizer.from_pretrained("facebook/opt-66b", use_fast=False) >>> prompt = "The woman worked as a" >>> input_ids = tokenizer(prompt, return_tensors="pt").input_ids.cuda() >>> set_seed(32) >>> generated_ids = model.generate(input_ids, do_sample=True, num_return_sequences=5, max_length=10) >>> tokenizer.batch_decode(generated_ids, skip_special_tokens=True) The woman worked as a supervisor in the office The woman worked as a social worker in a The woman worked as a cashier at the The woman worked as a teacher from 2011 to he woman worked as a maid at the house ``` compared to: ```python >>> from transformers import AutoModelForCausalLM, AutoTokenizer, set_seed >>> import torch >>> model = AutoModelForCausalLM.from_pretrained("facebook/opt-66b", torch_dtype=torch.float16).cuda() >>> # the fast tokenizer currently does not work correctly >>> tokenizer = AutoTokenizer.from_pretrained("facebook/opt-66b", use_fast=False) >>> prompt = "The man worked as a" >>> input_ids = tokenizer(prompt, return_tensors="pt").input_ids.cuda() >>> set_seed(32) >>> generated_ids = model.generate(input_ids, do_sample=True, num_return_sequences=5, max_length=10) >>> tokenizer.batch_decode(generated_ids, skip_special_tokens=True) The man worked as a school bus driver for The man worked as a bartender in a bar The man worked as a cashier at the The man worked as a teacher, and was The man worked as a professional at a range ``` This bias will also affect all fine-tuned versions of this model. ## Training data The Meta AI team wanted to train this model on a corpus as large as possible. It is composed of the union of the following 5 filtered datasets of textual documents: - BookCorpus, which consists of more than 10K unpublished books, - CC-Stories, which contains a subset of CommonCrawl data filtered to match the story-like style of Winograd schemas, - The Pile, from which * Pile-CC, OpenWebText2, USPTO, Project Gutenberg, OpenSubtitles, Wikipedia, DM Mathematics and HackerNews* were included. - Pushshift.io Reddit dataset that was developed in Baumgartner et al. (2020) and processed in Roller et al. (2021) - CCNewsV2 containing an updated version of the English portion of the CommonCrawl News dataset that was used in RoBERTa (Liu et al., 2019b) The final training data contains 180B tokens corresponding to 800GB of data. The validation split was made of 200MB of the pretraining data, sampled proportionally to each dataset’s size in the pretraining corpus. The dataset might contains offensive content as parts of the dataset are a subset of public Common Crawl data, along with a subset of public Reddit data, which could contain sentences that, if viewed directly, can be insulting, threatening, or might otherwise cause anxiety. ### Collection process The dataset was collected form internet, and went through classic data processing algorithms and re-formatting practices, including removing repetitive/non-informative text like *Chapter One* or *This ebook by Project Gutenberg.* ## Training procedure ### Preprocessing The texts are tokenized using the **GPT2** byte-level version of Byte Pair Encoding (BPE) (for unicode characters) and a vocabulary size of 50272. The inputs are sequences of 2048 consecutive tokens. The 175B model was trained on 992 *80GB A100 GPUs*. The training duration was roughly ~33 days of continuous training. ### BibTeX entry and citation info ```bibtex @misc{zhang2022opt, title={OPT: Open Pre-trained Transformer Language Models}, author={Susan Zhang and Stephen Roller and Naman Goyal and Mikel Artetxe and Moya Chen and Shuohui Chen and Christopher Dewan and Mona Diab and Xian Li and Xi Victoria Lin and Todor Mihaylov and Myle Ott and Sam Shleifer and Kurt Shuster and Daniel Simig and Punit Singh Koura and Anjali Sridhar and Tianlu Wang and Luke Zettlemoyer}, year={2022}, eprint={2205.01068}, archivePrefix={arXiv}, primaryClass={cs.CL} } ```
[ -0.2934516966342926, -0.832099974155426, 0.16768841445446014, 0.24698039889335632, -0.1577499955892563, -0.14491838216781616, -0.42144495248794556, -0.4263310432434082, 0.06098101660609245, 0.4362870752811432, -0.5891307592391968, -0.41545069217681885, -0.6020159721374512, 0.10093089938163757, -0.4541809856891632, 1.0255893468856812, -0.04652617871761322, -0.004837059415876865, 0.17385946214199066, 0.0889512374997139, -0.33202409744262695, -0.44172433018684387, -0.8426856994628906, -0.1616392433643341, 0.20605479180812836, 0.0928158238530159, 0.6683281660079956, 0.5419104099273682, 0.3974241316318512, 0.38020744919776917, 0.05869458615779877, 0.11441992223262787, -0.5975954532623291, -0.2981891632080078, -0.06506860256195068, -0.4146103262901306, -0.4730018377304077, 0.2399502396583557, 0.5151880979537964, 0.4632748067378998, 0.1048593670129776, 0.21021884679794312, 0.023276299238204956, 0.4077693521976471, -0.47469139099121094, 0.23312121629714966, -0.6785489916801453, -0.05390067398548126, -0.16234353184700012, 0.1115206629037857, -0.5926881432533264, -0.28051164746284485, 0.1256868541240692, -0.44277945160865784, 0.36199137568473816, -0.05388445034623146, 1.177895188331604, 0.3947165012359619, -0.2843325138092041, -0.1671525537967682, -0.6533265113830566, 0.6514967083930969, -0.8872941136360168, 0.35978060960769653, 0.2297273725271225, 0.08959977328777313, 0.041787754744291306, -0.8721559047698975, -0.604040265083313, -0.16078341007232666, -0.22092176973819733, 0.2198028862476349, -0.3433891236782074, 0.17073462903499603, 0.2895185053348541, 0.3546014130115509, -0.5273110270500183, 0.011614026501774788, -0.5255235433578491, -0.34430649876594543, 0.7124039530754089, 0.06263051182031631, 0.3237251341342926, -0.34080931544303894, -0.2386946827173233, -0.09259182214736938, -0.40761733055114746, -0.001208673813380301, 0.477809876203537, 0.24148686230182648, -0.21076355874538422, 0.562134325504303, -0.26565060019493103, 0.7865359783172607, 0.23373162746429443, 0.11539129167795181, 0.4080631732940674, -0.3908705413341522, -0.2991390824317932, -0.11289791762828827, 1.1591931581497192, 0.2748878002166748, 0.3488885760307312, -0.014560932293534279, -0.045973360538482666, 0.11325332522392273, 0.04577159881591797, -0.8494898676872253, -0.33423152565956116, 0.3081299960613251, -0.5060049295425415, -0.33178678154945374, 0.021981900557875633, -0.7288781404495239, -0.006580632645636797, -0.14391285181045532, 0.5590071082115173, -0.40359652042388916, -0.4883202612400055, 0.26547104120254517, 0.03395868465304375, 0.2550103962421417, 0.03731115907430649, -0.8414807915687561, -0.0073505002073943615, 0.30074894428253174, 0.7767090201377869, -0.04123587906360626, -0.3733118772506714, -0.20400823652744293, -0.09038747102022171, -0.178660586476326, 0.3871666491031647, -0.26572704315185547, -0.1286267638206482, -0.003333582542836666, 0.1271948367357254, -0.2643657922744751, -0.3373718559741974, 0.6375612616539001, -0.3743065297603607, 0.4091240465641022, -0.21024635434150696, -0.4043721556663513, -0.053290948271751404, -0.06965063512325287, -0.5805649161338806, 1.1321015357971191, 0.13088349997997284, -0.9209651350975037, 0.39918479323387146, -0.6597503423690796, -0.36400753259658813, -0.07866516709327698, -0.04352911561727524, -0.3398270308971405, 0.032861337065696716, 0.40573689341545105, 0.5844520926475525, -0.1455029845237732, 0.4903481900691986, -0.170376718044281, -0.23151126503944397, 0.06461955606937408, -0.5167925953865051, 1.1729766130447388, 0.3108704388141632, -0.5928753614425659, 0.29751530289649963, -0.5741828083992004, -0.0656743273139, 0.36075782775878906, -0.14777547121047974, -0.041367072612047195, -0.11053435504436493, 0.18402186036109924, 0.4519292414188385, 0.31584203243255615, -0.4741400480270386, 0.12255523353815079, -0.5856019258499146, 0.6853170990943909, 0.9230653643608093, -0.26000097393989563, 0.3892990052700043, -0.07658223807811737, 0.24819627404212952, 0.06039607524871826, 0.38529151678085327, -0.0834621712565422, -0.3396342992782593, -1.0253727436065674, -0.2502601146697998, 0.18137714266777039, 0.33996906876564026, -0.7117021679878235, 0.7071006298065186, -0.27304860949516296, -0.6673102378845215, -0.6012105345726013, -0.015896257013082504, 0.3658197820186615, 0.42101892828941345, 0.4260300099849701, -0.17448492348194122, -0.561409056186676, -0.8010846376419067, -0.30663934350013733, -0.08072082698345184, 0.1840793341398239, 0.37546563148498535, 0.6243502497673035, -0.45763081312179565, 1.1183606386184692, -0.5710994601249695, -0.3068544268608093, -0.3926267623901367, -0.06404787302017212, 0.3892027735710144, 0.6488152146339417, 0.5420956015586853, -0.7208044528961182, -0.5942911505699158, -0.233694925904274, -0.7180829048156738, -0.0493987575173378, -0.10582388192415237, -0.3912617564201355, 0.38409656286239624, 0.5834283232688904, -0.8358885049819946, 0.3047219216823578, 0.5347138047218323, -0.45759275555610657, 0.5551427602767944, 0.03968966007232666, -0.19279351830482483, -1.1765167713165283, 0.24950815737247467, -0.08855730295181274, -0.16743306815624237, -0.5091564655303955, -0.23555004596710205, 0.012070931494235992, -0.15625981986522675, -0.5783907175064087, 0.7806340456008911, -0.3588440418243408, 0.20476333796977997, -0.15918751060962677, 0.03956368565559387, -0.11257125437259674, 0.6014151573181152, 0.11728501319885254, 0.560210108757019, 0.687083899974823, -0.6244341135025024, 0.23587016761302948, 0.2265581488609314, -0.20023435354232788, 0.23207387328147888, -0.7077422142028809, 0.06417077779769897, -0.18135735392570496, 0.34141960740089417, -0.9253109693527222, -0.30554530024528503, 0.3710551857948303, -0.5997960567474365, 0.3336932957172394, 0.13319845497608185, -0.48841550946235657, -0.7478954195976257, -0.028123974800109863, 0.38488537073135376, 0.52733314037323, -0.5486074090003967, 0.6388277411460876, 0.3388560712337494, 0.21280919015407562, -0.7488110065460205, -0.5972980260848999, -0.10204129666090012, -0.07336688786745071, -0.7189473509788513, 0.3380832374095917, -0.12720225751399994, 0.000185427677934058, 0.13549664616584778, -0.09584355354309082, 0.07112811505794525, -0.04649902880191803, 0.07514815777540207, 0.3170739710330963, -0.017385883256793022, 0.02635098062455654, -0.03636663034558296, -0.22976665198802948, 0.17149759829044342, -0.40935108065605164, 0.8443832397460938, -0.2507585287094116, -0.14368131756782532, -0.5241765975952148, -0.034604158252477646, 0.4212537407875061, -0.3991192579269409, 0.8659034967422485, 0.9374069571495056, -0.4862280786037445, -0.16288010776042938, -0.7176333069801331, -0.3455005884170532, -0.5353379249572754, 0.6695138812065125, -0.11640575528144836, -0.7605167627334595, 0.49769243597984314, 0.19591736793518066, 0.2387111335992813, 0.7653543949127197, 0.7823554277420044, 0.2576466202735901, 1.0303212404251099, 0.5944207310676575, -0.27502793073654175, 0.6277562975883484, -0.5985718369483948, 0.27035415172576904, -0.6166455745697021, -0.061755672097206116, -0.3235546350479126, -0.04614870995283127, -0.4344389736652374, -0.26465314626693726, 0.09929898381233215, 0.05189172178506851, -0.3712070882320404, 0.45134833455085754, -0.7208875417709351, 0.32379141449928284, 0.5372593998908997, 0.17714735865592957, -0.0012678884668275714, -0.15209893882274628, -0.12163697183132172, 0.04056243598461151, -0.7863203883171082, -0.4015108048915863, 1.2102543115615845, 0.3808526396751404, 0.6651055216789246, -0.3415670692920685, 0.6860276460647583, 0.014277943409979343, 0.43390777707099915, -0.4547266960144043, 0.5670595765113831, -0.009068257175385952, -0.995966374874115, -0.15237216651439667, -0.5114628672599792, -0.7718579173088074, 0.22057175636291504, -0.1050407811999321, -0.637780487537384, 0.14830128848552704, 0.1752556711435318, -0.33143800497055054, 0.3324582874774933, -0.8077753186225891, 1.2297956943511963, -0.41991567611694336, -0.4503335654735565, 0.047320008277893066, -0.6580891013145447, 0.4675399363040924, -0.010454708710312843, 0.16217389702796936, -0.020500965416431427, 0.25872915983200073, 0.9364648461341858, -0.4491952359676361, 0.9838035106658936, -0.19561198353767395, 0.02254197746515274, 0.441552072763443, -0.23931555449962616, 0.4321936070919037, -0.08497414737939835, -0.05931314453482628, 0.3302442729473114, -0.2016099989414215, -0.41064220666885376, -0.14358144998550415, 0.5531998872756958, -1.0577770471572876, -0.4386686086654663, -0.4022427797317505, -0.45791980624198914, 0.06427379697561264, 0.5590105652809143, 0.7463992834091187, 0.305511474609375, -0.09940051287412643, 0.10490096360445023, 0.44664883613586426, -0.45872339606285095, 0.6265920400619507, 0.1808508038520813, -0.22639809548854828, -0.39455559849739075, 0.8067641258239746, 0.11916963011026382, 0.3393627107143402, 0.12402558326721191, 0.07058843225240707, -0.4176096022129059, -0.2656106948852539, -0.3132149577140808, 0.4527212381362915, -0.726618230342865, -0.2298768013715744, -0.9451154470443726, -0.40864962339401245, -0.6242935061454773, -0.21255482733249664, -0.6185334324836731, -0.03513646498322487, -0.4541330635547638, -0.19485224783420563, 0.23424527049064636, 0.42378753423690796, -0.055125802755355835, 0.4616691768169403, -0.4935134947299957, 0.2553304135799408, 0.1535930037498474, 0.31839877367019653, 0.07852711528539658, -0.4945928156375885, -0.36180195212364197, 0.15017104148864746, -0.33085232973098755, -0.7852346897125244, 0.4688166379928589, 0.010820582509040833, 0.5789900422096252, 0.5083951950073242, 0.187102809548378, 0.5331934094429016, -0.36998385190963745, 0.6779545545578003, 0.11176507920026779, -1.0394121408462524, 0.3932379186153412, -0.36309149861335754, 0.18204669654369354, 0.49955445528030396, 0.40804246068000793, -0.32973513007164, -0.4383956491947174, -0.730314314365387, -1.0152790546417236, 0.9709527492523193, 0.4302862882614136, 0.2805772125720978, -0.11822202056646347, 0.3633085787296295, -0.14684823155403137, 0.229767307639122, -1.318839192390442, -0.5132225751876831, -0.410974383354187, -0.38684552907943726, -0.16890273988246918, -0.17078272998332977, 0.11730632185935974, -0.43999865651130676, 0.8094881772994995, 0.04732402786612511, 0.5082680583000183, 0.3266863226890564, -0.30367597937583923, -0.08302616328001022, -0.10260263085365295, 0.2955085337162018, 0.5832279920578003, -0.1505698412656784, -0.011857488192617893, 0.140594944357872, -0.49064284563064575, -0.05481290817260742, 0.29969412088394165, -0.3210117220878601, 0.006201879121363163, 0.2506352961063385, 1.030497670173645, -0.009130703285336494, -0.5081996321678162, 0.5165430903434753, 0.030225053429603577, -0.18764209747314453, -0.39997637271881104, 0.05756522715091705, 0.07277700304985046, 0.12792463600635529, 0.33665573596954346, 0.070143923163414, -0.09921029210090637, -0.38331642746925354, 0.1272578090429306, 0.5253393650054932, -0.3206254541873932, -0.30856192111968994, 1.018813967704773, 0.2951630651950836, -0.17856179177761078, 0.6324323415756226, -0.2123984396457672, -0.7356848120689392, 0.5817839503288269, 0.5512714982032776, 0.9603540301322937, -0.1590718924999237, 0.16763877868652344, 0.6144917011260986, 0.62604820728302, -0.1356692761182785, -0.01976572722196579, 0.14754188060760498, -0.7997289896011353, -0.40654000639915466, -0.6884164214134216, 0.04904838651418686, 0.1877315640449524, -0.4130668342113495, 0.4757785499095917, -0.20936676859855652, -0.27852827310562134, -0.1702495813369751, 0.007167581003159285, -0.8542855978012085, 0.2409340739250183, 0.008540415205061436, 0.7359251379966736, -0.9814239144325256, 0.7169546484947205, 0.4247339963912964, -0.5740482211112976, -0.9364981651306152, -0.017395569011569023, -0.2936461865901947, -0.7316546440124512, 0.6122465133666992, 0.5365992784500122, 0.2430834174156189, 0.45310869812965393, -0.6825307011604309, -0.9377439022064209, 1.0106867551803589, 0.374330073595047, -0.33079829812049866, -0.2912243604660034, 0.23580536246299744, 0.5111503005027771, -0.13331851363182068, 0.5091267824172974, 0.4509299397468567, 0.39989542961120605, -0.1327512562274933, -0.844479501247406, 0.2038550078868866, -0.18713845312595367, -0.2055550217628479, 0.049908798187971115, -0.8729978799819946, 1.1490756273269653, -0.11936698108911514, -0.23689185082912445, -0.19649909436702728, 0.68668133020401, 0.01671328768134117, 0.026657257229089737, 0.40014734864234924, 0.5612097978591919, 0.5646852254867554, -0.20687422156333923, 1.0077869892120361, -0.48130369186401367, 0.6972122192382812, 0.7492257356643677, 0.030815131962299347, 0.5544822216033936, 0.23113363981246948, -0.1704658716917038, 0.23447659611701965, 0.6612796783447266, -0.12312836199998856, 0.31493979692459106, -0.008139451034367085, 0.014080852270126343, -0.18718264997005463, 0.06450513750314713, -0.49871453642845154, 0.3649221360683441, 0.12817822396755219, -0.552293598651886, -0.1481950730085373, 0.050209950655698776, 0.23247332870960236, -0.3473539352416992, -0.2196713089942932, 0.49298274517059326, 0.04944242909550667, -0.7405748963356018, 0.6961392760276794, 0.11689109355211258, 0.9497886300086975, -0.575710117816925, 0.3045909106731415, -0.05976976826786995, 0.37318891286849976, -0.24000391364097595, -0.3162077069282532, 0.23315659165382385, -0.12351973354816437, -0.001961726462468505, -0.22413314878940582, 0.721550464630127, -0.4499421715736389, -0.6146811842918396, 0.3685007095336914, 0.3847852647304535, 0.043635062873363495, -0.24856527149677277, -0.8446183204650879, 0.13957063853740692, 0.11899065226316452, -0.4698351323604584, 0.03304976224899292, 0.22013986110687256, 0.09403062611818314, 0.5459956526756287, 0.7429015040397644, -0.1545489877462387, 0.336526095867157, -0.20720131695270538, 0.9627926349639893, -0.4951987862586975, -0.38204512000083923, -1.0704081058502197, 0.6407935619354248, -0.06868880987167358, -0.3582058846950531, 0.9003500938415527, 0.6699731349945068, 1.0931949615478516, -0.16683050990104675, 0.7391754388809204, -0.39014798402786255, 0.1879364252090454, -0.36915460228919983, 0.9123370051383972, -0.5636585354804993, -0.0851258859038353, -0.5798211693763733, -0.9481480717658997, -0.1298738718032837, 0.7683202624320984, -0.4485626220703125, 0.3230600953102112, 0.6397808790206909, 0.7588835954666138, -0.09675218164920807, -0.1840609908103943, 0.011919518932700157, 0.46129798889160156, 0.429458349943161, 0.5625216960906982, 0.5319778323173523, -0.582652747631073, 0.7210468053817749, -0.4804346561431885, -0.26013118028640747, -0.2908969521522522, -0.6796976923942566, -1.0890066623687744, -0.6035348176956177, -0.2785942852497101, -0.5631337761878967, -0.17457062005996704, 0.8648943901062012, 0.7049115896224976, -0.5933209657669067, -0.2182859629392624, -0.38572901487350464, 0.008174833841621876, -0.05393592640757561, -0.32410281896591187, 0.5741087198257446, -0.46989914774894714, -0.9374141693115234, -0.09366808086633682, -0.05752021074295044, -0.02002011053264141, -0.27191808819770813, -0.08293663710355759, -0.3281860649585724, 0.050299424678087234, 0.5143143534660339, 0.14293690025806427, -0.60951167345047, -0.07094713300466537, 0.22948020696640015, -0.19615644216537476, -0.05782752484083176, 0.49222078919410706, -0.6037341356277466, 0.4383898079395294, 0.36840182542800903, 0.5265666842460632, 0.5646921992301941, -0.1144668236374855, 0.4410373270511627, -0.4251228868961334, 0.2627359628677368, 0.23601779341697693, 0.449345201253891, 0.2170766144990921, -0.4112255275249481, 0.468244731426239, 0.3914634883403778, -0.6029180288314819, -0.9363141655921936, 0.12510477006435394, -0.8576275706291199, -0.22445929050445557, 1.304198980331421, -0.018418438732624054, -0.2408601939678192, 0.008747585117816925, -0.40573278069496155, 0.580714762210846, -0.28365251421928406, 0.6532867550849915, 0.7050462961196899, 0.08526438474655151, -0.03415049612522125, -0.5634868144989014, 0.5705552101135254, 0.4593953788280487, -0.7286267876625061, 0.101566843688488, 0.4107920825481415, 0.33881187438964844, 0.1332455724477768, 0.9307730793952942, -0.08358002454042435, 0.08936325460672379, -0.07906951010227203, 0.25755152106285095, -0.1448233723640442, -0.1838245987892151, -0.12457503378391266, -0.08627636730670929, -0.2453281432390213, -0.14362530410289764 ]
google/tapas-tiny-finetuned-wtq
google
"2021-11-29T10:45:11Z"
12,959
0
transformers
[ "transformers", "pytorch", "tf", "tapas", "table-question-answering", "en", "dataset:wtq", "arxiv:2004.02349", "arxiv:2010.00571", "arxiv:1508.00305", "license:apache-2.0", "endpoints_compatible", "region:us" ]
table-question-answering
"2022-03-02T23:29:05Z"
--- language: en tags: - tapas - table-question-answering license: apache-2.0 datasets: - wtq --- # TAPAS tiny model fine-tuned on WikiTable Questions (WTQ) This model has 2 versions which can be used. The default version corresponds to the `tapas_wtq_wikisql_sqa_inter_masklm_tiny_reset` checkpoint of the [original Github repository](https://github.com/google-research/tapas). This model was pre-trained on MLM and an additional step which the authors call intermediate pre-training, and then fine-tuned in a chain on [SQA](https://www.microsoft.com/en-us/download/details.aspx?id=54253), [WikiSQL](https://github.com/salesforce/WikiSQL) and finally [WTQ](https://github.com/ppasupat/WikiTableQuestions). It uses relative position embeddings (i.e. resetting the position index at every cell of the table). The other (non-default) version which can be used is: - `no_reset`, which corresponds to `tapas_wtq_wikisql_sqa_inter_masklm_tiny` (intermediate pre-training, absolute position embeddings). Disclaimer: The team releasing TAPAS did not write a model card for this model so this model card has been written by the Hugging Face team and contributors. ## Results Size | Reset | Dev Accuracy | Link -------- | --------| -------- | ---- LARGE | noreset | 0.5062 | [tapas-large-finetuned-wtq (with absolute pos embeddings)](https://huggingface.co/google/tapas-large-finetuned-wtq/tree/no_reset) LARGE | reset | 0.5097 | [tapas-large-finetuned-wtq](https://huggingface.co/google/tapas-large-finetuned-wtq/tree/main) BASE | noreset | 0.4525 | [tapas-base-finetuned-wtq (with absolute pos embeddings)](https://huggingface.co/google/tapas-base-finetuned-wtq/tree/no_reset) BASE | reset | 0.4638 | [tapas-base-finetuned-wtq](https://huggingface.co/google/tapas-base-finetuned-wtq/tree/main) MEDIUM | noreset | 0.4324 | [tapas-medium-finetuned-wtq (with absolute pos embeddings)](https://huggingface.co/google/tapas-medium-finetuned-wtq/tree/no_reset) MEDIUM | reset | 0.4324 | [tapas-medium-finetuned-wtq](https://huggingface.co/google/tapas-medium-finetuned-wtq/tree/main) SMALL | noreset | 0.3681 | [tapas-small-finetuned-wtq (with absolute pos embeddings)](https://huggingface.co/google/tapas-small-finetuned-wtq/tree/no_reset) SMALL | reset | 0.3762 | [tapas-small-finetuned-wtq](https://huggingface.co/google/tapas-small-finetuned-wtq/tree/main) MINI | noreset | 0.2783 | [tapas-mini-finetuned-wtq (with absolute pos embeddings)](https://huggingface.co/google/tapas-mini-finetuned-wtq/tree/no_reset) MINI | reset | 0.2854 | [tapas-mini-finetuned-wtq](https://huggingface.co/google/tapas-mini-finetuned-wtq/tree/main) **TINY** | **noreset** | **0.0823** | [tapas-tiny-finetuned-wtq (with absolute pos embeddings)](https://huggingface.co/google/tapas-tiny-finetuned-wtq/tree/no_reset) **TINY** | **reset** | **0.1039** | [tapas-tiny-finetuned-wtq](https://huggingface.co/google/tapas-tiny-finetuned-wtq/tree/main) ## Model description TAPAS is a BERT-like transformers model pretrained on a large corpus of English data from Wikipedia in a self-supervised fashion. This means it was pretrained on the raw tables and associated 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 (flattened) table and associated context, the model randomly masks 15% of the words in the input, then runs the entire (partially masked) sequence through the model. The model then 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 a table and associated text. - Intermediate pre-training: to encourage numerical reasoning on tables, the authors additionally pre-trained the model by creating a balanced dataset of millions of syntactically created training examples. Here, the model must predict (classify) whether a sentence is supported or refuted by the contents of a table. The training examples are created based on synthetic as well as counterfactual statements. This way, the model learns an inner representation of the English language used in tables and associated texts, which can then be used to extract features useful for downstream tasks such as answering questions about a table, or determining whether a sentence is entailed or refuted by the contents of a table. Fine-tuning is done by adding a cell selection head and aggregation head on top of the pre-trained model, and then jointly train these randomly initialized classification heads with the base model on SQa, WikiSQL and finally WTQ. ## Intended uses & limitations You can use this model for answering questions related to a table. For code examples, we refer to the documentation of TAPAS on the HuggingFace website. ## Training procedure ### Preprocessing The texts are lowercased and tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are then of the form: ``` [CLS] Question [SEP] Flattened table [SEP] ``` The authors did first convert the WTQ dataset into the format of SQA using automatic conversion scripts. ### Fine-tuning The model was fine-tuned on 32 Cloud TPU v3 cores for 50,000 steps with maximum sequence length 512 and batch size of 512. In this setup, fine-tuning takes around 10 hours. The optimizer used is Adam with a learning rate of 1.93581e-5, and a warmup ratio of 0.128960. An inductive bias is added such that the model only selects cells of the same column. This is reflected by the `select_one_column` parameter of `TapasConfig`. See the [paper](https://arxiv.org/abs/2004.02349) for more details (tables 11 and 12). ### BibTeX entry and citation info ```bibtex @misc{herzig2020tapas, title={TAPAS: Weakly Supervised Table Parsing via Pre-training}, author={Jonathan Herzig and Paweł Krzysztof Nowak and Thomas Müller and Francesco Piccinno and Julian Martin Eisenschlos}, year={2020}, eprint={2004.02349}, archivePrefix={arXiv}, primaryClass={cs.IR} } ``` ```bibtex @misc{eisenschlos2020understanding, title={Understanding tables with intermediate pre-training}, author={Julian Martin Eisenschlos and Syrine Krichene and Thomas Müller}, year={2020}, eprint={2010.00571}, archivePrefix={arXiv}, primaryClass={cs.CL} } ``` ```bibtex @article{DBLP:journals/corr/PasupatL15, author = {Panupong Pasupat and Percy Liang}, title = {Compositional Semantic Parsing on Semi-Structured Tables}, journal = {CoRR}, volume = {abs/1508.00305}, year = {2015}, url = {http://arxiv.org/abs/1508.00305}, archivePrefix = {arXiv}, eprint = {1508.00305}, timestamp = {Mon, 13 Aug 2018 16:47:37 +0200}, biburl = {https://dblp.org/rec/journals/corr/PasupatL15.bib}, bibsource = {dblp computer science bibliography, https://dblp.org} } ```
[ -0.6194042563438416, -0.7188453674316406, 0.25337615609169006, 0.2765553593635559, -0.4252786636352539, -0.1310664713382721, -0.05163050815463066, -0.5342580676078796, 0.6484308242797852, 0.31593507528305054, -0.5554896593093872, -0.3895106017589569, -0.42645832896232605, 0.013420294038951397, -0.24880507588386536, 1.164319396018982, 0.058148641139268875, 0.04150983691215515, -0.11866617947816849, -0.2668147087097168, -0.3487326204776764, -0.3626812994480133, -0.2534032464027405, -0.24953515827655792, 0.5024119019508362, 0.5083705186843872, 0.7712902426719666, 0.6449973583221436, 0.21961846947669983, 0.27120330929756165, -0.29335102438926697, 0.11834151297807693, -0.5174147486686707, -0.22714322805404663, 0.03834276646375656, -0.568240225315094, -0.4066537320613861, 0.24753820896148682, 0.3650337755680084, 0.7128970623016357, 0.055487457662820816, 0.475067138671875, 0.1832834780216217, 0.6464457511901855, -0.45832204818725586, 0.11695555597543716, -0.8579015135765076, 0.21211889386177063, -0.2594601809978485, -0.05818810313940048, -0.3337692618370056, -0.6103793978691101, 0.3593420088291168, -0.5119333863258362, 0.2162805050611496, 0.028643980622291565, 1.3881573677062988, 0.10441821813583374, -0.2388843595981598, -0.017355261370539665, -0.49903997778892517, 0.5088369846343994, -0.7282580137252808, 0.29391399025917053, 0.5378857851028442, 0.14938852190971375, -0.22948238253593445, -0.8723697066307068, -0.678769588470459, -0.1859220713376999, -0.2972467243671417, 0.010202636010944843, -0.09657349437475204, -0.15754730999469757, 0.36476781964302063, 0.5789600014686584, -0.49983951449394226, 0.044364601373672485, -0.4935430884361267, -0.2003796249628067, 0.5398830771446228, -0.029835211113095284, 0.29026147723197937, -0.17634356021881104, -0.39043956995010376, -0.11101403087377548, -0.8161599636077881, 0.3980022966861725, 0.1375352144241333, 0.3592316508293152, -0.46643227338790894, 0.6228667497634888, -0.06560389697551727, 0.7756775617599487, 0.20654530823230743, -0.2635650634765625, 0.5372754335403442, -0.40465211868286133, -0.3369969129562378, -0.2518688142299652, 0.9213007092475891, 0.09131640940904617, 0.2530716359615326, -0.06193903833627701, -0.14798150956630707, -0.042590126395225525, 0.15481199324131012, -0.8097604513168335, -0.48308467864990234, 0.17818103730678558, -0.4964092969894409, -0.3359653949737549, 0.02130822278559208, -0.6341958045959473, -0.17830142378807068, -0.28321534395217896, 0.531330406665802, -0.33085066080093384, -0.16195990145206451, -0.26982393860816956, -0.045845624059438705, 0.45130637288093567, 0.16638405621051788, -0.6809493899345398, 0.29293596744537354, 0.3356451094150543, 0.7401465773582458, 0.03688395395874977, -0.286721408367157, -0.16684339940547943, -0.10502778738737106, -0.4594946503639221, 0.5274083614349365, -0.33360522985458374, -0.25475266575813293, -0.18116454780101776, 0.270778089761734, -0.10232309252023697, -0.5146081447601318, 0.608230710029602, -0.41154831647872925, 0.3253515064716339, -0.5844504833221436, -0.40363022685050964, -0.18922573328018188, 0.22302678227424622, -0.6894288659095764, 1.2033241987228394, 0.1197405606508255, -0.8001635074615479, 0.5269887447357178, -0.5504775643348694, -0.3080825209617615, -0.16644109785556793, 0.033075254410505295, -0.764736533164978, -0.07803674042224884, 0.22170744836330414, 0.49364566802978516, -0.1386547088623047, 0.20572662353515625, -0.48514705896377563, -0.11122962087392807, 0.1885165274143219, 0.045867979526519775, 0.9113332033157349, 0.2702670991420746, -0.37803372740745544, 0.16245482861995697, -0.7414410710334778, 0.11384832859039307, 0.4186612367630005, -0.16218319535255432, -0.21961282193660736, -0.2417018711566925, -0.02791724167764187, 0.4586164355278015, 0.21635998785495758, -0.5123658776283264, 0.2685679495334625, -0.43074578046798706, 0.6113118529319763, 0.4516887664794922, 0.0536724254488945, 0.32144567370414734, -0.23990781605243683, 0.2720400094985962, 0.17340239882469177, 0.2799905836582184, -0.08904806524515152, -0.787513792514801, -0.7967733144760132, -0.22081561386585236, 0.5850725769996643, 0.5054488182067871, -0.5897794961929321, 0.6587475538253784, -0.2341700941324234, -0.7060383558273315, -0.6181459426879883, 0.17531834542751312, 0.5830258727073669, 0.6947351694107056, 0.4422202706336975, -0.2631249725818634, -0.6084027886390686, -1.1091103553771973, 0.05193893238902092, 0.04339689761400223, 0.019379178062081337, 0.3891579806804657, 0.5923500061035156, -0.02387578785419464, 1.1537432670593262, -0.5954453945159912, -0.24065642058849335, -0.14822524785995483, 0.09277386218309402, 0.3315620720386505, 0.6468837857246399, 0.7363197803497314, -0.7899414896965027, -0.75779128074646, -0.12236277759075165, -0.41071242094039917, -0.020933253690600395, 0.14639411866664886, -0.18069016933441162, 0.07968124002218246, 0.20909945666790009, -0.8557946681976318, 0.4610026478767395, 0.3270363211631775, -0.4733363389968872, 0.5081520676612854, -0.07051927596330643, -0.06598717719316483, -1.2953178882598877, 0.28085049986839294, 0.05543721467256546, -0.23605363070964813, -0.5706390738487244, -0.05893176794052124, 0.1730625182390213, -0.19588427245616913, -0.4734557271003723, 0.4353199899196625, -0.6654619574546814, -0.17999473214149475, -0.007696850225329399, 0.13270989060401917, 0.10296903550624847, 0.7828953862190247, -0.17956465482711792, 0.9065242409706116, 0.3360505700111389, -0.5940606594085693, 0.01754867099225521, 0.4294678568840027, -0.22714751958847046, 0.30919256806373596, -0.7860428094863892, -0.055892858654260635, 0.07393448799848557, 0.21749702095985413, -1.030035138130188, -0.10149400681257248, 0.2820769250392914, -0.5595275163650513, 0.5192835330963135, -0.11217223107814789, -0.2597292363643646, -0.673382580280304, -0.656227171421051, 0.16159166395664215, 0.4803139269351959, -0.6625074148178101, 0.32147908210754395, 0.6272451877593994, -0.01135485153645277, -0.6192688345909119, -0.663371741771698, -0.10111474245786667, -0.17443318665027618, -0.5778490304946899, 0.6453028917312622, 0.09390140324831009, 0.11955468356609344, 0.10197523981332779, -0.08641266822814941, -0.0277422983199358, -0.10969020426273346, 0.24520450830459595, 0.22391657531261444, -0.19474786520004272, 0.015773236751556396, -0.06299296021461487, 0.11369027197360992, -0.12892462313175201, -0.0898018330335617, 0.7080512642860413, -0.3762862980365753, 0.017664499580860138, -0.6815361976623535, 0.0313076451420784, 0.5339142680168152, -0.3252231180667877, 0.8174996376037598, 0.6695099472999573, -0.4867312014102936, 0.021734140813350677, -0.6481395959854126, -0.19064871966838837, -0.43021780252456665, 0.14371584355831146, -0.5992030501365662, -0.8227235078811646, 0.8563897609710693, 0.26674148440361023, 0.05584728717803955, 0.8744215965270996, 0.5349323749542236, -0.239560067653656, 0.7871415615081787, 0.564421534538269, -0.2911648154258728, 0.4657214283943176, -0.5609626770019531, 0.07416316866874695, -0.7236102223396301, -0.5571554899215698, -0.7925860285758972, -0.42686977982521057, -0.8142510652542114, -0.39630669355392456, 0.20183508098125458, 0.23650267720222473, -0.3952617943286896, 0.5017865300178528, -0.5950326323509216, 0.3825732469558716, 0.8312847018241882, 0.21812599897384644, -0.002568754367530346, -0.10752051323652267, -0.2516898810863495, -0.036351125687360764, -0.566817581653595, -0.43520721793174744, 1.0004246234893799, 0.5473076701164246, 0.5214889645576477, -0.133432075381279, 0.5158299207687378, 0.19284814596176147, 0.2805745601654053, -0.7024039626121521, 0.4230548143386841, 0.007177675608545542, -0.6518771052360535, -0.29444658756256104, -0.2870892584323883, -1.0146586894989014, 0.29470860958099365, -0.359981894493103, -0.8028175234794617, 0.29091110825538635, 0.27333343029022217, -0.33242467045783997, 0.3769211173057556, -1.068106770515442, 1.11861252784729, -0.103844553232193, -0.26202592253685, 0.2110529989004135, -0.8265650272369385, 0.47749483585357666, 0.15665599703788757, -0.09764602035284042, -0.11929973214864731, -0.04356381669640541, 0.911212682723999, -0.8244864344596863, 0.8666455149650574, -0.4594324827194214, 0.1132010892033577, 0.5017462968826294, -0.08766137063503265, 0.6256729960441589, -0.019869685173034668, 0.32742413878440857, 0.052483901381492615, 0.2748350203037262, -0.503154456615448, -0.2624122202396393, 0.7195463180541992, -0.876339316368103, -0.3830380141735077, -0.36655768752098083, -0.3109152615070343, -0.5222072005271912, 0.3098163902759552, 0.38328447937965393, 0.15527983009815216, -0.151663139462471, 0.3607981204986572, 0.7575093507766724, -0.23211358487606049, 0.4702919125556946, 0.21788901090621948, -0.15142028033733368, -0.33766892552375793, 0.8312689661979675, 0.18605481088161469, -0.11602237075567245, 0.3864305019378662, 0.3297751247882843, -0.4062686264514923, -0.5988796353340149, -0.41240113973617554, 0.31144553422927856, -0.187224879860878, -0.5299071073532104, -0.7115969061851501, -0.2988310158252716, -0.3597378134727478, 0.14081816375255585, -0.4817415177822113, -0.6078771948814392, -0.522849440574646, -0.2584145963191986, 0.5595812201499939, 0.5921148061752319, 0.13907338678836823, 0.3525528311729431, -0.7240663766860962, 0.37208092212677, 0.3916299045085907, 0.5668959617614746, -0.013770056888461113, -0.6005919575691223, -0.04154742881655693, 0.05817388370633125, -0.4097902476787567, -1.1491540670394897, 0.38386061787605286, 0.30648112297058105, 0.556038498878479, 0.49070650339126587, -0.05614786222577095, 0.7376248836517334, -0.42134857177734375, 0.786044716835022, 0.22489087283611298, -0.8473942875862122, 0.6472450494766235, -0.23753958940505981, 0.1387147456407547, 0.8001742362976074, 0.541817307472229, -0.2801271378993988, -0.1550365388393402, -0.6485333442687988, -0.7947288751602173, 0.7643595337867737, 0.08635830134153366, 0.16321362555027008, 0.25175741314888, 0.2872162163257599, 0.19345030188560486, 0.12333009392023087, -1.0062931776046753, -0.3579240143299103, -0.22154460847377777, -0.08549457043409348, 0.03499802574515343, -0.5399966835975647, -0.1081916093826294, -0.7536954283714294, 0.8051880598068237, 0.03569801524281502, 0.2888554334640503, 0.10066405683755875, -0.09330400079488754, 0.05740885064005852, 0.06659632921218872, 0.6837682723999023, 0.6846746206283569, -0.40466606616973877, -0.18727393448352814, 0.1183466911315918, -0.6510245203971863, -0.19555939733982086, 0.2679559886455536, -0.34570080041885376, 0.10392716526985168, 0.11418324708938599, 0.9873504638671875, 0.27371951937675476, -0.4090973734855652, 0.622127115726471, 0.05539640411734581, -0.2675831913948059, -0.18862025439739227, -0.18771910667419434, 0.246064230799675, 0.059731826186180115, 0.4179362654685974, -0.14113496243953705, 0.09897389262914658, -0.4925060272216797, 0.33269309997558594, 0.5497666001319885, -0.2881711423397064, -0.4179131090641022, 0.5412427186965942, 0.10815653949975967, -0.15870210528373718, 0.35306471586227417, -0.26747652888298035, -0.5227004289627075, 0.5466870665550232, 0.5223444104194641, 0.7359353303909302, -0.2928221821784973, 0.3042496144771576, 0.5449556112289429, 0.45668911933898926, 0.26769378781318665, 0.49180224537849426, -0.09529655426740646, -0.592197835445404, -0.08816513419151306, -0.7756301164627075, -0.24667201936244965, 0.4932897090911865, -0.6537294387817383, 0.22880342602729797, -0.47657185792922974, -0.27993467450141907, 0.17925521731376648, 0.2659667134284973, -0.7377836108207703, 0.22249984741210938, -0.08379163593053818, 1.1251482963562012, -1.0374479293823242, 0.9005861282348633, 0.6673029065132141, -0.5933867692947388, -1.1016796827316284, -0.19885535538196564, -0.23930692672729492, -0.8520858883857727, 0.1922692358493805, 0.10729270428419113, 0.29090771079063416, -0.2904282808303833, -0.7013911008834839, -0.9968280792236328, 1.0546640157699585, 0.18913890421390533, -0.33610799908638, -0.02622269280254841, 0.10250218212604523, 0.6247166395187378, -0.20531752705574036, 0.16168637573719025, 0.6918870210647583, 0.25130075216293335, 0.24129647016525269, -1.052988052368164, 0.17690221965312958, -0.34214258193969727, 0.17168033123016357, 0.14821910858154297, -0.6653598546981812, 0.8016541004180908, -0.06029611453413963, 0.011611641384661198, -0.06942466646432877, 0.673724889755249, 0.16772183775901794, 0.18729835748672485, 0.34204626083374023, 0.9159892797470093, 0.7488932609558105, -0.31851819157600403, 0.8862378001213074, -0.19835896790027618, 0.3754100501537323, 1.1737607717514038, 0.1277659833431244, 0.9093784689903259, 0.6529160141944885, -0.6108229160308838, 0.3331063687801361, 1.0395965576171875, -0.07690652459859848, 0.5634434819221497, 0.13030296564102173, 0.19816948473453522, 0.22276079654693604, -0.013557554222643375, -0.7771739959716797, 0.5212805271148682, 0.39563611149787903, -0.5702811479568481, -0.09396317601203918, -0.0052003925666213036, 0.2005080133676529, -0.06308921426534653, -0.38224858045578003, 0.7250764966011047, 0.10072819143533707, -0.5633854866027832, 0.7666730880737305, -0.0019422882469370961, 0.7602465748786926, -0.47281819581985474, 0.17563381791114807, -0.37514856457710266, -0.08458038419485092, -0.30409473180770874, -0.7280978560447693, 0.2710533142089844, -0.032036732882261276, -0.13245940208435059, -0.011289908550679684, 0.6792925000190735, -0.41988158226013184, -0.40253639221191406, 0.01572350598871708, 0.6021215319633484, 0.1323312371969223, 0.06857670843601227, -0.8667024970054626, 0.019580969586968422, 0.029829461127519608, -0.5479567050933838, 0.2734430730342865, 0.3548477590084076, 0.00801143329590559, 0.5487633347511292, 0.5605157613754272, -0.07789137214422226, 0.2629168927669525, -0.09496653079986572, 1.0831692218780518, -0.6096276640892029, -0.7046513557434082, -0.6553516387939453, 0.4429577887058258, -0.21485018730163574, -0.5409432053565979, 0.6484599709510803, 0.7013947367668152, 0.9220312833786011, -0.32358986139297485, 0.3114663064479828, -0.24332056939601898, 0.6596728563308716, -0.4134625196456909, 0.8009780645370483, -0.641338050365448, -0.09103773534297943, -0.4279285669326782, -1.0174438953399658, -0.17572174966335297, 0.47178715467453003, -0.28666287660598755, 0.18786993622779846, 0.43661388754844666, 0.6618155837059021, -0.15983755886554718, 0.028348788619041443, 0.05135318636894226, 0.3506990969181061, 0.037198252975940704, 0.3758869469165802, 0.5004816651344299, -0.42432934045791626, 0.48823457956314087, -0.6123495697975159, -0.21875114738941193, -0.23645567893981934, -0.7227894067764282, -0.7820337414741516, -0.8025244474411011, -0.19156768918037415, -0.34514108300209045, -0.23337040841579437, 0.9093489050865173, 0.8710377216339111, -1.1128356456756592, -0.12661504745483398, 0.12775938212871552, 0.08062200993299484, -0.005218097008764744, -0.28973618149757385, 0.5901023745536804, -0.18611782789230347, -0.5776952505111694, 0.16839100420475006, 0.083616241812706, 0.2323632836341858, -0.09627580642700195, 0.004717150703072548, -0.495146244764328, -0.12279744446277618, 0.6948095560073853, 0.6877955198287964, -0.6771515607833862, -0.1204364001750946, -0.09390261024236679, -0.21284538507461548, 0.23896600306034088, 0.5732602477073669, -0.6735255122184753, 0.22857043147087097, 0.43940040469169617, 0.7518179416656494, 0.8993597030639648, 0.011891270987689495, 0.19605594873428345, -0.8133675456047058, 0.3313845098018646, 0.38583406805992126, 0.4721733033657074, 0.20740781724452972, -0.2835472822189331, 0.520630419254303, 0.2936445474624634, -0.3021366596221924, -0.9760605096817017, -0.07939699292182922, -1.2222710847854614, -0.1341109722852707, 0.7848430275917053, -0.08442933112382889, -0.3931233584880829, 0.1007722020149231, -0.24208463728427887, 0.3065246641635895, -0.24671423435211182, 0.6996367573738098, 0.5426411032676697, -0.14441005885601044, -0.16413725912570953, -0.37397971749305725, 0.8160969614982605, 0.41385695338249207, -0.8423961997032166, -0.3090534806251526, 0.37279361486434937, 0.409426748752594, 0.2867826521396637, 0.7121111154556274, -0.3228231966495514, 0.1383710503578186, -0.12787526845932007, 0.05884949490427971, -0.11961360275745392, -0.254748672246933, -0.21779607236385345, 0.18824492394924164, 0.04825233668088913, -0.587135910987854 ]
timm/wide_resnet50_2.racm_in1k
timm
"2023-04-05T20:39:51Z"
12,921
1
timm
[ "timm", "pytorch", "safetensors", "image-classification", "arxiv:2110.00476", "arxiv:1605.07146", "arxiv:1512.03385", "license:apache-2.0", "region:us" ]
image-classification
"2023-04-05T20:38:52Z"
--- tags: - image-classification - timm library_tag: timm license: apache-2.0 --- # Model card for wide_resnet50_2.racm_in1k A Wide-ResNet-B image classification model. This model features: * ReLU activations * single layer 7x7 convolution with pooling * 1x1 convolution shortcut downsample Trained on ImageNet-1k in `timm` using recipe template described below. Recipe details: * RandAugment `RACM` 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): 68.9 - GMACs: 11.4 - Activations (M): 14.4 - Image size: train = 224 x 224, test = 288 x 288 - **Papers:** - ResNet strikes back: An improved training procedure in timm: https://arxiv.org/abs/2110.00476 - Wide Residual Networks: https://arxiv.org/abs/1605.07146 - Deep Residual Learning for Image Recognition: https://arxiv.org/abs/1512.03385 - **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('wide_resnet50_2.racm_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( 'wide_resnet50_2.racm_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( 'wide_resnet50_2.racm_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 @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}} } ``` ```bibtex @article{DBLP:journals/corr/ZagoruykoK16, author = {Sergey Zagoruyko and Nikos Komodakis}, title = {Wide Residual Networks}, journal = {CoRR}, volume = {abs/1605.07146}, year = {2016}, url = {http://arxiv.org/abs/1605.07146}, archivePrefix = {arXiv}, eprint = {1605.07146}, timestamp = {Mon, 13 Aug 2018 16:46:42 +0200}, biburl = {https://dblp.org/rec/journals/corr/ZagoruykoK16.bib}, bibsource = {dblp computer science bibliography, https://dblp.org} } ``` ```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} } ```
[ -0.8930544257164001, -0.26396042108535767, 0.05050789192318916, 0.3702278435230255, -0.42682814598083496, -0.16203425824642181, -0.1591484546661377, -0.4204067885875702, 1.131770133972168, 0.30726876854896545, -0.66376793384552, -0.5867859721183777, -0.6619241833686829, -0.006941488943994045, 0.3155394196510315, 0.8908485770225525, -0.024403326213359833, -0.08674357831478119, 0.1705312579870224, -0.3339461386203766, -0.09787379950284958, -0.3095020651817322, -1.0376993417739868, -0.22300030291080475, 0.43723616003990173, 0.2267388254404068, 0.7015038728713989, 0.608415961265564, 0.4244234561920166, 0.5942734479904175, -0.23488683998584747, 0.2996663451194763, -0.05629993602633476, -0.08550052344799042, 0.5945854187011719, -0.43691086769104004, -0.9282414317131042, -0.0317656546831131, 0.7147968411445618, 0.5961620807647705, 0.048076801002025604, 0.37379980087280273, 0.34051233530044556, 0.65826016664505, -0.014144672080874443, -0.03689497709274292, -0.006587190553545952, 0.15706868469715118, -0.30289480090141296, 0.056582264602184296, -0.10426546633243561, -0.7333871126174927, 0.11972396075725555, -0.6162959933280945, -0.03577679023146629, 0.0013627551961690187, 1.3677829504013062, -0.10923918336629868, -0.20643778145313263, 0.0512259341776371, 0.08147574216127396, 0.7968292832374573, -0.8297836780548096, 0.3037676215171814, 0.5701068043708801, 0.07248009741306305, -0.19271598756313324, -0.6790570020675659, -0.5145193338394165, 0.14979444444179535, -0.4087039530277252, 0.2974465787410736, -0.34252631664276123, -0.2224201112985611, 0.3944704532623291, 0.3315246105194092, -0.47382625937461853, -0.10480264574289322, -0.3652610182762146, -0.08718027919530869, 0.7100797891616821, 0.09364638477563858, 0.6996796727180481, -0.3339954614639282, -0.5041757225990295, -0.15294136106967926, -0.19101469218730927, 0.4589446187019348, 0.2510680556297302, 0.15987399220466614, -1.097877025604248, 0.46236565709114075, 0.11287615448236465, 0.27315571904182434, 0.3415148854255676, -0.17125388979911804, 0.8385739326477051, -0.05755584314465523, -0.520513653755188, -0.4950670301914215, 1.1188066005706787, 0.6454472541809082, 0.2879958748817444, -0.047854408621788025, -0.0630965307354927, -0.17472536861896515, -0.41746756434440613, -0.9920019507408142, -0.012467185035347939, 0.2802945673465729, -0.5711236000061035, -0.2109721302986145, 0.35769549012184143, -0.9093467593193054, -0.030423281714320183, -0.08654405176639557, 0.10971219837665558, -0.7527490258216858, -0.44537854194641113, 0.03356832265853882, -0.20630353689193726, 0.5265964865684509, 0.22620832920074463, -0.3446387052536011, 0.41449013352394104, 0.1252261847257614, 0.9235132932662964, 0.281909316778183, -0.04814067482948303, -0.25108271837234497, 0.0010630358010530472, -0.3438732624053955, 0.40969592332839966, 0.09374129772186279, -0.1828623265028, -0.3201862573623657, 0.42177504301071167, -0.2583630383014679, -0.29719769954681396, 0.5951630473136902, 0.22786840796470642, 0.18834492564201355, -0.29571276903152466, -0.22424447536468506, -0.27171245217323303, 0.37824565172195435, -0.5804731249809265, 1.0656874179840088, 0.3907429575920105, -1.1464735269546509, 0.16714850068092346, -0.5315227508544922, -0.04720306023955345, -0.30572834610939026, 0.05492258071899414, -0.9478152394294739, 0.00907414685934782, 0.24861174821853638, 0.7173307538032532, -0.266678124666214, -0.18612609803676605, -0.3844617009162903, 0.031093422323465347, 0.4165460765361786, 0.18901939690113068, 0.943263590335846, 0.3454478085041046, -0.465292751789093, -0.1792459636926651, -0.7273512482643127, 0.44472745060920715, 0.4483374059200287, -0.007943586446344852, -0.07055466622114182, -0.8032392859458923, 0.026577109470963478, 0.612588107585907, 0.22224456071853638, -0.7093675136566162, 0.27794167399406433, -0.19328638911247253, 0.3250017464160919, 0.6287826895713806, 0.05524558573961258, 0.19772298634052277, -0.720266580581665, 0.6455862522125244, -0.007954291999340057, 0.312233567237854, -0.015265352092683315, -0.4482804238796234, -0.7614696025848389, -0.78290194272995, 0.23412013053894043, 0.42223984003067017, -0.3848341703414917, 0.8633896112442017, 0.12106283009052277, -0.620717465877533, -0.6424005031585693, 0.06309225410223007, 0.5667672753334045, 0.20146389305591583, 0.12570720911026, -0.41146817803382874, -0.7533456087112427, -0.9755262732505798, -0.29792097210884094, 0.152916818857193, -0.044679462909698486, 0.6993201375007629, 0.45548564195632935, -0.22617781162261963, 0.6016823053359985, -0.40154096484184265, -0.28865230083465576, -0.20433925092220306, -0.09940703958272934, 0.44772928953170776, 0.7952185273170471, 1.038634181022644, -0.7286092638969421, -0.9569364786148071, 0.11622263491153717, -1.1192365884780884, -0.047821205109357834, 0.004935241769999266, -0.2567252218723297, 0.4609987139701843, 0.23591850697994232, -0.8871040940284729, 0.7596880793571472, 0.4000568389892578, -0.7955827116966248, 0.42674872279167175, -0.3715422749519348, 0.541502833366394, -1.1464192867279053, 0.26981472969055176, 0.288862407207489, -0.2149129956960678, -0.551026463508606, 0.08106204122304916, -0.09167131036520004, 0.1365852952003479, -0.5524692535400391, 0.789130449295044, -0.7381084561347961, -0.06594397872686386, 0.12886059284210205, 0.06246492639183998, -0.022861449047923088, 0.4442381262779236, -0.0891827642917633, 0.5531727075576782, 0.9110122323036194, -0.16298505663871765, 0.33257120847702026, 0.4190228283405304, 0.01589716225862503, 0.7674199938774109, -0.6108747720718384, 0.15017865598201752, 0.009459830820560455, 0.483386754989624, -1.0421843528747559, -0.40154439210891724, 0.5518661737442017, -0.8351704478263855, 0.6808164119720459, -0.2829183042049408, -0.32643502950668335, -0.8379215002059937, -0.8690909147262573, 0.2939140796661377, 0.6901271343231201, -0.6078426241874695, 0.43393364548683167, 0.21876145899295807, -0.0116245336830616, -0.5203766226768494, -0.7366200685501099, 0.05004451051354408, -0.4199070930480957, -0.8356263041496277, 0.39181920886039734, 0.31513339281082153, -0.18845155835151672, 0.08058489114046097, -0.13493189215660095, -0.11869129538536072, -0.22520466148853302, 0.6432151794433594, 0.3399723172187805, -0.3148866891860962, -0.4331200420856476, -0.4006550908088684, -0.2921064794063568, -0.05973789840936661, -0.10866141319274902, 0.5507460832595825, -0.43052172660827637, 0.03785870969295502, -1.4460175037384033, 0.11912701278924942, 0.9054754972457886, -0.07642871886491776, 1.0032281875610352, 0.8242337703704834, -0.4744744896888733, 0.14364580810070038, -0.49375486373901367, -0.23347890377044678, -0.5270915031433105, -0.1789103001356125, -0.6907942295074463, -0.6041685342788696, 0.9633181095123291, 0.09082457423210144, -0.1355869621038437, 0.7958869934082031, 0.18292585015296936, -0.200391948223114, 0.8679752349853516, 0.510683000087738, -0.05271454527974129, 0.5577678680419922, -0.8662923574447632, 0.08117127418518066, -0.827774703502655, -0.7635169625282288, -0.29042619466781616, -0.5829452276229858, -0.5932072401046753, -0.3889956772327423, 0.2546388506889343, 0.3668873608112335, -0.2615913450717926, 0.5634285807609558, -0.594309389591217, 0.03706339746713638, 0.3187510073184967, 0.5313308835029602, -0.2108154147863388, -0.07254649698734283, -0.1554575264453888, -0.3345440924167633, -0.5549089908599854, -0.3393164575099945, 0.8154409527778625, 0.6570501327514648, 0.4869115650653839, 0.0848206877708435, 0.6115020513534546, 0.014973948709666729, 0.2506892681121826, -0.3429359793663025, 0.7130560278892517, 0.04165630415081978, -0.47895193099975586, -0.3142974376678467, -0.42534545063972473, -1.074319839477539, 0.15631535649299622, -0.4781431555747986, -0.8416697978973389, -0.18763835728168488, -0.049451399594545364, -0.35967105627059937, 0.7939450144767761, -0.6052393913269043, 0.6285209059715271, -0.039837270975112915, -0.542351245880127, -0.08110162615776062, -0.818824291229248, 0.09714090079069138, 0.38309919834136963, 0.07282610237598419, -0.024682864546775818, -0.03586801886558533, 0.7942081689834595, -0.8062961101531982, 0.6210004687309265, -0.39363422989845276, 0.14542891085147858, 0.43872934579849243, -0.031364556401968, 0.4125494062900543, -0.015423927456140518, -0.19439272582530975, -0.05731792375445366, 0.07244032621383667, -0.8077224493026733, -0.3514390289783478, 0.6585569977760315, -0.7755743265151978, -0.3691764771938324, -0.6683655977249146, -0.3104977011680603, 0.09251736104488373, 0.01806226745247841, 0.4867466986179352, 0.6760637164115906, -0.018897922709584236, 0.2438713014125824, 0.5557489395141602, -0.4758451581001282, 0.5053801536560059, -0.08139484375715256, 0.0012402412248775363, -0.5805478096008301, 0.6901063919067383, 0.05450049415230751, 0.02523093856871128, 0.016426146030426025, 0.031904276460409164, -0.40004876255989075, -0.24298733472824097, -0.29183512926101685, 0.7528980374336243, -0.21460920572280884, -0.3643820583820343, -0.6653098464012146, -0.3683377504348755, -0.5603542923927307, -0.4072260558605194, -0.4636712670326233, -0.37038716673851013, -0.2777025103569031, 0.04960917308926582, 0.7536813020706177, 0.9050583839416504, -0.374813050031662, 0.37744319438934326, -0.5277218818664551, 0.28676360845565796, 0.06200464442372322, 0.5688245296478271, -0.2975051999092102, -0.7158818244934082, 0.028552193194627762, -0.050105925649404526, -0.11051592230796814, -0.8196651339530945, 0.6602394580841064, 0.02310395985841751, 0.37023141980171204, 0.43085598945617676, -0.20474140346050262, 0.7354203462600708, -0.020701713860034943, 0.46537256240844727, 0.6388617157936096, -0.6846939325332642, 0.37879592180252075, -0.4159247577190399, 0.05889706686139107, 0.27475202083587646, 0.23875662684440613, -0.41730374097824097, -0.38741254806518555, -0.8865964412689209, -0.49521782994270325, 0.7740653157234192, 0.07181143015623093, -0.027193479239940643, -0.017513202503323555, 0.7527756094932556, -0.055730871856212616, -0.0023397570475935936, -0.541146457195282, -0.9181777238845825, -0.09720438718795776, -0.1839710772037506, 0.05827829986810684, -0.08864228427410126, 0.02183251827955246, -0.6678582429885864, 0.6789160966873169, 0.05870098993182182, 0.5213349461555481, 0.18926112353801727, 0.07440703362226486, -0.02517940104007721, -0.26445069909095764, 0.6204599738121033, 0.3852982819080353, -0.21054846048355103, -0.13196681439876556, 0.38605302572250366, -0.5216917395591736, 0.08082450926303864, 0.20751404762268066, 0.003948464058339596, 0.09124860912561417, 0.11877711117267609, 0.5138579607009888, 0.3216407895088196, -0.06392142921686172, 0.5341488718986511, -0.2473127394914627, -0.5836428999900818, -0.23094482719898224, -0.1683567315340042, 0.26010242104530334, 0.44446706771850586, 0.3570861518383026, 0.09268397092819214, -0.4303399920463562, -0.38863620162010193, 0.5291041135787964, 0.770510196685791, -0.3878345489501953, -0.4106232821941376, 0.6173626184463501, -0.0782083198428154, -0.2169194221496582, 0.40346330404281616, -0.08675920218229294, -0.6724681258201599, 1.0345802307128906, 0.3644852638244629, 0.6652435064315796, -0.5105458498001099, 0.08645869046449661, 0.9230194091796875, -0.006395644508302212, 0.15065865218639374, 0.3327735662460327, 0.44402411580085754, -0.3450157642364502, -0.07140437513589859, -0.5682436227798462, 0.16644766926765442, 0.48959264159202576, -0.4799720048904419, 0.3009108901023865, -0.750308096408844, -0.36033257842063904, 0.07529275864362717, 0.5043613314628601, -0.6669028997421265, 0.3463853895664215, -0.052044644951820374, 1.1024961471557617, -0.8671407699584961, 0.8922169804573059, 0.9099838733673096, -0.5682913661003113, -0.9109213948249817, -0.023759623989462852, 0.1171300858259201, -0.895436704158783, 0.47346043586730957, 0.13813212513923645, 0.03929582238197327, -0.06445261090993881, -0.5251380801200867, -0.6907495856285095, 1.414489507675171, 0.3933103382587433, -0.07599247246980667, 0.281105637550354, -0.3735496997833252, 0.37741705775260925, -0.21460965275764465, 0.6084274053573608, 0.3532911241054535, 0.5384255051612854, 0.20677313208580017, -0.8799095153808594, 0.4005562663078308, -0.39682185649871826, -0.10423815250396729, 0.3169932961463928, -1.31240713596344, 0.9038066864013672, -0.28297874331474304, -0.051138509064912796, 0.26179784536361694, 0.6807353496551514, 0.3176063597202301, -0.011454337276518345, 0.29593029618263245, 0.948373019695282, 0.4687088429927826, -0.2532211244106293, 1.0552904605865479, -0.20958738029003143, 0.5679842829704285, 0.23638662695884705, 0.5255550146102905, 0.40659719705581665, 0.39979982376098633, -0.5404104590415955, 0.2891038656234741, 0.8152197599411011, -0.07284962385892868, 0.14993859827518463, 0.2684997618198395, -0.39480024576187134, -0.20121118426322937, -0.17540867626667023, -0.7104867696762085, 0.2554633915424347, 0.10523950308561325, -0.17014411091804504, -0.17020848393440247, -0.029105961322784424, 0.24960534274578094, 0.2836604416370392, -0.25551867485046387, 0.5343601703643799, 0.11303427070379257, -0.43036553263664246, 0.49708572030067444, 0.026766646653413773, 1.093666434288025, -0.41106706857681274, 0.18205921351909637, -0.37640780210494995, 0.34896162152290344, -0.2880660593509674, -1.0716897249221802, 0.3508908450603485, -0.09031065553426743, 0.06525702774524689, -0.2162145972251892, 0.6676408648490906, -0.36025553941726685, -0.3393470048904419, 0.4133651554584503, 0.38391420245170593, 0.504121720790863, 0.30935972929000854, -1.1334810256958008, 0.2848828434944153, 0.08061689138412476, -0.6404175162315369, 0.4659389853477478, 0.5191830992698669, 0.35752394795417786, 0.7650890350341797, 0.33024948835372925, 0.28643742203712463, 0.14562386274337769, -0.32594504952430725, 0.7741193771362305, -0.6429432034492493, -0.45678025484085083, -0.8440872430801392, 0.5188592672348022, -0.3490211069583893, -0.5219142436981201, 0.7667518258094788, 0.5915979146957397, 0.3956712484359741, 0.041361309587955475, 0.6733995676040649, -0.5456994771957397, 0.5022071599960327, -0.2807217538356781, 0.7843589782714844, -0.7110728621482849, -0.23715603351593018, -0.2220001369714737, -0.6260298490524292, -0.4413596987724304, 0.8703049421310425, -0.13305610418319702, 0.2811535596847534, 0.3251664340496063, 0.7292804718017578, 0.037359364330768585, -0.13469743728637695, -0.0034385821782052517, 0.18674954771995544, -0.1212402805685997, 0.8863743543624878, 0.49687302112579346, -0.7578521370887756, 0.09845009446144104, -0.4678734540939331, -0.2968830168247223, -0.3739413619041443, -0.7480471730232239, -1.188916563987732, -0.6928511261940002, -0.5290272235870361, -0.7250310778617859, -0.2266169637441635, 1.226815104484558, 0.8348094820976257, -0.6336426734924316, -0.1452077329158783, 0.16729435324668884, 0.06676922738552094, -0.15736930072307587, -0.22125041484832764, 0.5549091696739197, 0.0898113027215004, -0.9637636542320251, -0.43467646837234497, 0.1474553346633911, 0.5773394107818604, 0.39102089405059814, -0.4989272654056549, -0.22458697855472565, -0.0696314126253128, 0.33643072843551636, 0.8502079844474792, -0.7844419479370117, -0.28518250584602356, -0.0030567413195967674, -0.4957260489463806, 0.18812310695648193, 0.30937784910202026, -0.4303950071334839, -0.08939173817634583, 0.4668896496295929, 0.3654367923736572, 0.7683886885643005, 0.052604470402002335, 0.16645042598247528, -0.47815075516700745, 0.5891737937927246, -0.023419858887791634, 0.3459031283855438, 0.24914558231830597, -0.27398353815078735, 0.7468816637992859, 0.5125569105148315, -0.4095377027988434, -1.02005934715271, -0.1710815578699112, -1.3417677879333496, -0.08051139116287231, 0.7439830899238586, -0.08353044837713242, -0.4426268935203552, 0.4296921193599701, -0.42837074398994446, 0.533004879951477, -0.21959902346134186, 0.2870369255542755, 0.22896139323711395, -0.33357691764831543, -0.3471521735191345, -0.5966519117355347, 0.6075630187988281, 0.39481401443481445, -0.678543210029602, -0.4035413861274719, 0.010336815379559994, 0.38081130385398865, 0.18021956086158752, 0.7714113593101501, -0.42949986457824707, 0.1457832157611847, -0.13584133982658386, 0.2899493873119354, -0.07052308320999146, 0.15185900032520294, -0.3357310891151428, -0.09216973930597305, -0.19646109640598297, -0.6431529521942139 ]
facebook/dino-vits8
facebook
"2023-05-22T07:04:27Z"
12,910
9
transformers
[ "transformers", "pytorch", "vit", "feature-extraction", "dino", "vision", "dataset:imagenet-1k", "arxiv:2104.14294", "license:apache-2.0", "endpoints_compatible", "has_space", "region:us" ]
feature-extraction
"2022-03-02T23:29:05Z"
--- license: apache-2.0 tags: - dino - vision datasets: - imagenet-1k --- # Vision Transformer (small-sized model, patch size 8) trained using DINO Vision Transformer (ViT) model trained using the DINO method. It was introduced in the paper [Emerging Properties in Self-Supervised Vision Transformers](https://arxiv.org/abs/2104.14294) by Mathilde Caron, Hugo Touvron, Ishan Misra, Hervé Jégou, Julien Mairal, Piotr Bojanowski, Armand Joulin and first released in [this repository](https://github.com/facebookresearch/dino). Disclaimer: The team releasing DINO did not write a model card for this model so this model card has been written by the Hugging Face team. ## Model description The Vision Transformer (ViT) is a transformer encoder model (BERT-like) pretrained on a large collection of images in a self-supervised fashion, namely ImageNet-1k, at a resolution of 224x224 pixels. Images are presented to the model as a sequence of fixed-size patches (resolution 8x8), which are linearly embedded. One also adds a [CLS] token to the beginning of a sequence to use it for classification tasks. One also adds absolute position embeddings before feeding the sequence to the layers of the Transformer encoder. Note that this model does not include any fine-tuned heads. By pre-training the model, it learns an inner representation of images that can then be used to extract features useful for downstream tasks: if you have a dataset of labeled images for instance, you can train a standard classifier by placing a linear layer on top of the pre-trained encoder. One typically places a linear layer on top of the [CLS] token, as the last hidden state of this token can be seen as a representation of an entire image. ## Intended uses & limitations You can use the raw model for image classification. See the [model hub](https://huggingface.co/models?search=google/vit) to look for fine-tuned versions on a task that interests you. ### How to use Here is how to use this model: ```python from transformers import ViTImageProcessor, ViTModel from PIL import Image import requests url = 'http://images.cocodataset.org/val2017/000000039769.jpg' image = Image.open(requests.get(url, stream=True).raw) processor = ViTImageProcessor.from_pretrained('facebook/dino-vits8') model = ViTModel.from_pretrained('facebook/dino-vits8') inputs = processor(images=image, return_tensors="pt") outputs = model(**inputs) last_hidden_states = outputs.last_hidden_state ``` ### BibTeX entry and citation info ```bibtex @article{DBLP:journals/corr/abs-2104-14294, author = {Mathilde Caron and Hugo Touvron and Ishan Misra and Herv{\'{e}} J{\'{e}}gou and Julien Mairal and Piotr Bojanowski and Armand Joulin}, title = {Emerging Properties in Self-Supervised Vision Transformers}, journal = {CoRR}, volume = {abs/2104.14294}, year = {2021}, url = {https://arxiv.org/abs/2104.14294}, archivePrefix = {arXiv}, eprint = {2104.14294}, timestamp = {Tue, 04 May 2021 15:12:43 +0200}, biburl = {https://dblp.org/rec/journals/corr/abs-2104-14294.bib}, bibsource = {dblp computer science bibliography, https://dblp.org} } ```
[ -0.5007724761962891, -0.2393464744091034, 0.12498603016138077, -0.10308697074651718, -0.3976640999317169, -0.02409547008574009, 0.08957505971193314, -0.5067403316497803, 0.33771172165870667, 0.4766334891319275, -0.41359245777130127, -0.21083472669124603, -0.5950621962547302, -0.101870596408844, -0.47963622212409973, 0.9433346390724182, -0.04004630446434021, -0.12208354473114014, -0.1827811747789383, -0.07822942733764648, -0.21001707017421722, -0.6513193845748901, -0.5442483425140381, -0.4041972756385803, 0.4373694956302643, -0.029152167961001396, 0.6774420142173767, 0.8688128590583801, 0.5098532438278198, 0.4593667984008789, -0.13417011499404907, -0.026494935154914856, -0.43830469250679016, -0.27467647194862366, -0.20523321628570557, -0.45678645372390747, -0.29974403977394104, 0.17756962776184082, 0.6075931191444397, 0.3950517773628235, 0.2282899171113968, 0.2809694707393646, 0.04227115958929062, 0.20176146924495697, -0.5843110680580139, 0.35748112201690674, -0.4592761695384979, 0.4254066050052643, -0.07726455479860306, -0.06992869824171066, -0.3838522732257843, -0.30010849237442017, 0.2106255441904068, -0.49711963534355164, 0.36002492904663086, 0.008416634052991867, 1.3460414409637451, 0.20014244318008423, -0.4161597788333893, 0.09932196140289307, -0.6881358623504639, 0.6503172516822815, -0.3155469596385956, 0.4564213454723358, 0.08398866653442383, 0.4686332046985626, 0.16025714576244354, -1.1385747194290161, -0.654482364654541, 0.03485778719186783, -0.16628630459308624, 0.023188326507806778, -0.23690557479858398, 0.10840296745300293, 0.37197768688201904, 0.542783796787262, -0.1747647076845169, 0.039957284927368164, -0.6343576908111572, -0.4775756001472473, 0.4469527006149292, -0.07314065098762512, 0.11495450139045715, -0.2395656704902649, -0.7116800546646118, -0.3996954560279846, -0.3601107597351074, 0.266594797372818, 0.20314961671829224, 0.1371624916791916, -0.13844409584999084, 0.5521828532218933, 0.0558006651699543, 0.5773401856422424, 0.469577819108963, -0.03115372359752655, 0.5771853923797607, -0.2808077037334442, -0.28255340456962585, -0.014024663716554642, 0.8296889066696167, 0.325118750333786, 0.24061219394207, 0.006729095708578825, -0.3438114523887634, 0.08677367120981216, 0.43286246061325073, -0.8811402916908264, -0.16410115361213684, -0.18882279098033905, -0.6032352447509766, -0.43058717250823975, 0.1654442846775055, -0.5376110672950745, -0.1649331897497177, -0.33672595024108887, 0.8274266123771667, -0.25829339027404785, -0.29340681433677673, -0.28309687972068787, 0.010775028727948666, 0.6779065728187561, 0.22444568574428558, -0.8369475603103638, 0.35203081369400024, 0.3304215967655182, 0.9251527786254883, -0.012700687162578106, -0.24068965017795563, -0.054832931607961655, -0.17713019251823425, -0.45371100306510925, 0.7332755327224731, -0.23885010182857513, -0.25649288296699524, 0.10932505875825882, 0.4506184458732605, -0.06555439531803131, -0.42957162857055664, 0.46919557452201843, -0.4999805688858032, 0.17854028940200806, -0.21134811639785767, -0.3101060390472412, -0.30105334520339966, 0.19169725477695465, -0.6839955449104309, 1.1089826822280884, 0.3115158975124359, -0.740317702293396, 0.4825238287448883, -0.5825548768043518, -0.08712855726480484, 0.10221019387245178, -0.08008068054914474, -0.6232441663742065, -0.009022229351103306, 0.3035988211631775, 0.5404230952262878, 0.14620879292488098, -0.08808623999357224, -0.29671016335487366, -0.456762433052063, 0.3155885636806488, -0.2278326004743576, 0.8051978349685669, 0.2440643459558487, -0.20175974071025848, 0.1695796698331833, -0.6553388237953186, -0.07066192477941513, 0.1883743405342102, -0.2657126784324646, -0.12067748606204987, -0.30445846915245056, 0.1141645684838295, 0.3305833637714386, 0.4482412338256836, -0.7748622298240662, 0.2365419715642929, -0.2779518663883209, 0.546937108039856, 0.8739325404167175, -0.10700265318155289, 0.5286170244216919, -0.17694462835788727, 0.34878960251808167, 0.217293843626976, 0.5750794410705566, -0.41254478693008423, -0.5214269757270813, -0.8781514167785645, -0.2203836292028427, 0.3988098204135895, 0.3310776948928833, -0.7144405245780945, 0.5226736068725586, -0.33255767822265625, -0.44869887828826904, -0.6113058924674988, 0.0014111606869846582, 0.3248562812805176, 0.5470570921897888, 0.36516934633255005, -0.49587351083755493, -0.5800052881240845, -0.9538161754608154, 0.16563433408737183, 0.08398924767971039, 0.12609310448169708, 0.22592590749263763, 0.761084794998169, -0.3525021970272064, 1.0486944913864136, -0.23931963741779327, -0.2501567006111145, -0.0007114683976396918, 0.023711711168289185, 0.4094177186489105, 0.6461821794509888, 0.6740635633468628, -0.8757688999176025, -0.3328082263469696, -0.01023092120885849, -0.8364480137825012, 0.23774613440036774, 0.03297346085309982, -0.23293590545654297, 0.036401450634002686, 0.25324133038520813, -0.6993204951286316, 0.7855392694473267, 0.2757202386856079, -0.25632238388061523, 0.30890217423439026, -0.16892315447330475, -0.0011921866098418832, -1.1096311807632446, -0.014711401425302029, 0.01514242123812437, -0.44952911138534546, -0.5521001219749451, 0.24321627616882324, 0.19540932774543762, -0.18449047207832336, -0.5741320848464966, 0.37054407596588135, -0.49178165197372437, -0.3718658685684204, -0.24590004980564117, -0.3463119566440582, -0.02541692927479744, 0.5990540385246277, 0.06384015083312988, 0.492815762758255, 0.6959698796272278, -0.5500638484954834, 0.6450204253196716, 0.36783739924430847, -0.4099671244621277, 0.44608384370803833, -0.6650859117507935, 0.34597888588905334, -0.1378660351037979, 0.1950865238904953, -0.7828907370567322, -0.2752041816711426, 0.2700459063053131, -0.4226554036140442, 0.5663018822669983, -0.32840514183044434, -0.4613127112388611, -0.8298011422157288, -0.2569977641105652, 0.48274120688438416, 0.6645861268043518, -0.8538792729377747, 0.692821204662323, 0.23481398820877075, 0.3441966772079468, -0.7891462445259094, -0.8917219638824463, -0.08612293750047684, -0.11693122237920761, -0.46406176686286926, 0.5313661098480225, 0.07844846695661545, 0.2801331877708435, 0.3511691987514496, 0.009260411374270916, -0.21703897416591644, -0.2513505518436432, 0.4876025915145874, 0.28334805369377136, -0.28539034724235535, 0.015172291547060013, -0.12643493711948395, -0.17767466604709625, 0.05864645913243294, -0.4719972014427185, 0.5695645213127136, -0.4601030647754669, -0.33072617650032043, -0.6124680042266846, 0.04114217683672905, 0.6215600371360779, -0.25028154253959656, 0.6118273735046387, 0.7740771174430847, -0.6923689842224121, -0.039305586367845535, -0.3573307991027832, -0.1436939835548401, -0.546332061290741, 0.19768227636814117, -0.4787323474884033, -0.5842844247817993, 0.8978478908538818, 0.044542618095874786, -0.2461128532886505, 0.6036898493766785, 0.5521705150604248, -0.23327791690826416, 0.8029497265815735, 0.7565682530403137, 0.015886913985013962, 0.7418830990791321, -0.843764066696167, 0.17925991117954254, -0.8135479688644409, -0.5698839426040649, -0.07123305648565292, -0.44023504853248596, -0.469411164522171, -0.4096898138523102, 0.22624704241752625, 0.2147330939769745, -0.34523215889930725, 0.6223407983779907, -0.7068605422973633, 0.40233996510505676, 0.8381932377815247, 0.5824196934700012, -0.136718288064003, 0.046181730926036835, -0.2943020462989807, 0.060587864369153976, -0.564285159111023, -0.11903242021799088, 1.0038739442825317, 0.5333971977233887, 0.8108022809028625, -0.23805849254131317, 0.6647235155105591, 0.18450886011123657, 0.12130855768918991, -0.8510600924491882, 0.522244393825531, -0.034714434295892715, -0.67079758644104, -0.09369461238384247, -0.1281442642211914, -0.9431300759315491, 0.012749256566166878, -0.3501317799091339, -0.6800025105476379, 0.660405695438385, 0.2650042176246643, -0.3618955612182617, 0.4427488148212433, -0.5365090370178223, 0.9057714939117432, -0.29395776987075806, -0.28778982162475586, 0.0682573914527893, -0.5781477689743042, 0.11047454923391342, -0.09641721844673157, -0.1463637501001358, 0.2798662781715393, 0.37233224511146545, 0.711002767086029, -0.6999978423118591, 1.0508642196655273, -0.40646886825561523, 0.2994368374347687, 0.564899206161499, -0.2508828938007355, 0.2596279978752136, -0.244532510638237, 0.36739057302474976, 0.3968186378479004, -0.003869824344292283, -0.4382990300655365, -0.5329645276069641, 0.43543875217437744, -0.9968745112419128, -0.4048115611076355, -0.4807966649532318, -0.2908577620983124, 0.26187992095947266, 0.39245158433914185, 0.7333433628082275, 0.632631242275238, 0.1907890886068344, 0.39881187677383423, 0.6271564364433289, -0.2673257291316986, 0.5695968866348267, -0.0628967136144638, -0.3533138334751129, -0.24718959629535675, 0.8193791508674622, 0.3657039701938629, 0.07699839770793915, 0.3483937382698059, 0.25118350982666016, -0.4674667716026306, -0.4093104898929596, -0.30693331360816956, 0.10971911251544952, -0.9328947067260742, -0.4314764142036438, -0.4332636594772339, -0.7689495086669922, -0.5166835784912109, -0.20475170016288757, -0.5177141427993774, -0.30205556750297546, -0.4681461453437805, -0.3092893064022064, 0.385492205619812, 0.7666555047035217, -0.29226434230804443, 0.6037352085113525, -0.5135743021965027, 0.18456977605819702, 0.6898301839828491, 0.3667628765106201, -0.04622215777635574, -0.7394047379493713, -0.3754647672176361, 0.022073030471801758, -0.24172435700893402, -0.6623044013977051, 0.4701545834541321, 0.3115275204181671, 0.831750750541687, 0.731225311756134, -0.22109566628932953, 0.7479428648948669, -0.3486787974834442, 0.6890488266944885, 0.3700945973396301, -0.843510091304779, 0.5927965044975281, -0.17242500185966492, 0.12241237610578537, 0.16435082256793976, 0.4408565163612366, -0.1308210790157318, 0.13706573843955994, -0.6081017255783081, -0.6217221617698669, 0.6100523471832275, 0.08404812216758728, 0.34417569637298584, 0.1782103031873703, 0.5691688060760498, -0.00839967466890812, 0.0637584775686264, -1.0190722942352295, -0.15924249589443207, -0.8936371207237244, -0.18175296485424042, 0.20104560256004333, -0.2535306513309479, -0.026910003274679184, -0.6101011037826538, 0.23432186245918274, -0.15889360010623932, 0.8835037350654602, 0.2559841573238373, -0.2596968710422516, -0.07237106561660767, -0.33533141016960144, 0.2144973874092102, 0.4526880383491516, -0.3893810510635376, 0.14555394649505615, 0.056912463158369064, -0.5726528167724609, -0.06486041843891144, 0.014064334332942963, -0.15567374229431152, -0.1243123933672905, 0.45509713888168335, 1.0195692777633667, 0.18002018332481384, 0.01301561202853918, 0.8698331117630005, 0.15068137645721436, -0.305057555437088, -0.5497071146965027, 0.06548675149679184, -0.24933449923992157, 0.4429936408996582, 0.46853819489479065, 0.36326223611831665, 0.05546199902892113, -0.5861361622810364, 0.3217298984527588, 0.21149854362010956, -0.56114262342453, -0.5902339816093445, 0.7684981226921082, -0.07401186972856522, -0.1339130401611328, 0.6823573708534241, -0.11787553876638412, -0.745846152305603, 0.7289079427719116, 0.6338627934455872, 0.779927670955658, -0.312058687210083, 0.16685134172439575, 0.46327459812164307, 0.2854737639427185, -0.02452883869409561, 0.23290884494781494, -0.1545884758234024, -1.1140493154525757, -0.3685627579689026, -0.676480233669281, -0.12446796894073486, 0.15233252942562103, -0.7666054368019104, 0.2694130539894104, -0.6158230304718018, -0.3766525089740753, 0.1884457916021347, -0.17346632480621338, -1.107840895652771, 0.34634730219841003, 0.4891642928123474, 0.7747352123260498, -0.8084955811500549, 1.0045863389968872, 0.6997511982917786, -0.5906341075897217, -0.7477523684501648, -0.45743605494499207, -0.23049713671207428, -1.0161813497543335, 0.8402175903320312, 0.34881746768951416, 0.02115686610341072, 0.03939172625541687, -0.9111244082450867, -0.9860470294952393, 1.1403146982192993, 0.3255181312561035, -0.2893155515193939, -0.1128380298614502, 0.04472532123327255, 0.5188984274864197, -0.5317532420158386, 0.3425554633140564, -0.012312277220189571, 0.19333980977535248, 0.3323075473308563, -0.7632246017456055, -0.07824600487947464, -0.4209235906600952, 0.23844997584819794, -0.09823863953351974, -0.7474891543388367, 1.0771195888519287, -0.19124051928520203, -0.17995522916316986, 0.028957044705748558, 0.6723178029060364, -0.18852616846561432, 0.08154840022325516, 0.6418262124061584, 0.6876929402351379, 0.5482407212257385, -0.25897130370140076, 0.9914770722389221, -0.15170925855636597, 0.6310886740684509, 0.6348807215690613, 0.13540631532669067, 0.6683413982391357, 0.2682877779006958, -0.19395263493061066, 0.649935781955719, 0.9137464165687561, -0.5143653154373169, 0.805393397808075, -0.012817766517400742, 0.08042988181114197, -0.2078889012336731, 0.03777069225907326, -0.38018709421157837, 0.6290982961654663, 0.46341168880462646, -0.6425786018371582, 0.04202805459499359, 0.34333497285842896, -0.31810054183006287, -0.2724890112876892, -0.5975542664527893, 0.48152419924736023, 0.08600135147571564, -0.2778538167476654, 0.5878214240074158, -0.29937952756881714, 0.579472005367279, -0.36469563841819763, -0.07614712417125702, -0.19508647918701172, 0.3124941289424896, -0.35029125213623047, -0.8399659395217896, 0.16024097800254822, -0.21344999969005585, -0.12427113205194473, -0.20766277611255646, 0.9054678678512573, -0.1588437259197235, -0.6034972071647644, 0.35711830854415894, 0.0767437070608139, 0.27182888984680176, 0.08727464079856873, -0.7014500498771667, -0.2349698394536972, -0.21644490957260132, -0.37597814202308655, 0.15398333966732025, 0.3498385548591614, -0.08965851366519928, 0.6516200304031372, 0.6534878611564636, -0.10205376148223877, 0.5446929931640625, -0.017274176701903343, 1.145337700843811, -0.6472939848899841, -0.5302436947822571, -0.5443989634513855, 0.5187616348266602, -0.2204064577817917, -0.2837256193161011, 0.5245705842971802, 0.4426676630973816, 1.0320035219192505, -0.22712716460227966, 0.48493656516075134, -0.09233692288398743, 0.22905413806438446, -0.36382782459259033, 0.6009562015533447, -0.43284738063812256, -0.21709731221199036, -0.1365622878074646, -1.0389480590820312, -0.21092665195465088, 0.9331375956535339, -0.036370649933815, 0.14102724194526672, 0.4778555929660797, 0.6845448613166809, -0.29136931896209717, -0.23466794192790985, 0.3594978153705597, 0.4014524817466736, 0.016548478975892067, 0.3389247953891754, 0.9131564497947693, -0.6116149425506592, 0.45927807688713074, -0.5320937633514404, -0.19703857600688934, -0.15898019075393677, -0.6671751141548157, -1.062970757484436, -0.6564273834228516, -0.2959824502468109, -0.4278525412082672, -0.09050219506025314, 0.7056089639663696, 1.1184028387069702, -0.904123067855835, 0.10364788770675659, 0.001284880912862718, -0.15833306312561035, -0.2186879962682724, -0.19083315134048462, 0.4652620851993561, 0.05089559778571129, -0.7143127918243408, 0.05470220372080803, 0.035946380347013474, 0.2529089152812958, -0.41455546021461487, 0.020772865042090416, -0.019247859716415405, -0.1810331791639328, 0.5672956705093384, 0.33658748865127563, -0.639500081539154, -0.6041544079780579, -0.004530980717390776, -0.02856014296412468, 0.35488346219062805, 0.5034831762313843, -0.9674816727638245, 0.5655620694160461, 0.41857045888900757, 0.47874894738197327, 1.0170927047729492, -0.05080097168684006, 0.27648410201072693, -0.7774098515510559, 0.2672319710254669, 0.05987563356757164, 0.676741898059845, 0.29794877767562866, -0.464890718460083, 0.4398230314254761, 0.4711018204689026, -0.469058632850647, -0.7355666160583496, 0.10534166544675827, -1.2616198062896729, -0.0728955939412117, 0.7951774001121521, -0.41813135147094727, -0.5455757975578308, 0.16285967826843262, -0.06276256591081619, 0.5042144656181335, -0.12881149351596832, 0.5267632603645325, 0.34826239943504333, -0.008589178323745728, -0.5992861390113831, -0.2751460373401642, 0.24217231571674347, -0.25457170605659485, -0.46066465973854065, -0.6527193784713745, -0.015198232606053352, 0.30729416012763977, 0.5597528219223022, 0.35303962230682373, -0.3750406503677368, 0.093645378947258, 0.24675342440605164, 0.37812334299087524, -0.17117561399936676, -0.35777053236961365, -0.3220650851726532, 0.04636853188276291, -0.29594889283180237, -0.7133454084396362 ]
transfo-xl-wt103
null
"2023-01-24T14:49:49Z"
12,902
7
transformers
[ "transformers", "pytorch", "tf", "transfo-xl", "text-generation", "en", "dataset:wikitext-103", "arxiv:1901.02860", "endpoints_compatible", "has_space", "region:us" ]
text-generation
"2022-03-02T23:29:04Z"
--- datasets: - wikitext-103 tags: - text-generation language: en model-index: - name: transfo-xl-wt103 results: [] task: name: Text Generation type: text-generation --- # Transfo-xl-wt103 ## Table of Contents - [Model Details](#model-details) - [Uses](#uses) - [Risks, Limitations and Biases](#risks-limitations-and-biases) - [Training](#training) - [Evaluation](#evaluation) - [Citation Information](#citation-information) - [How to Get Started With the Model](#how-to-get-started-with-the-model) ## Model Details **Model Description:** The Transformer-XL model is a causal (uni-directional) transformer with relative positioning (sinusoïdal) embeddings which can reuse previously computed hidden-states to attend to longer context (memory). This model also uses adaptive softmax inputs and outputs (tied). - **Developed by:** [Zihang Dai](dzihang@cs.cmu.edu), [Zhilin Yang](zhiliny@cs.cmu.edu), [Yiming Yang1](yiming@cs.cmu.edu), [Jaime Carbonell](jgc@cs.cmu.edu), [Quoc V. Le](qvl@google.com), [Ruslan Salakhutdinov](rsalakhu@cs.cmu.edu) - **Shared by:** HuggingFace team - **Model Type:** Text Generation - **Language(s):** English - **License:** [More information needed] - **Resources for more information:** - [Research Paper](https://arxiv.org/pdf/1901.02860.pdf) - [GitHub Repo](https://github.com/kimiyoung/transformer-xl) - [HuggingFace Documentation](https://huggingface.co/docs/transformers/model_doc/transfo-xl#transformers.TransfoXLModel) ## Uses #### Direct Use This model can be used for text generation. The authors provide additionally notes about the vocabulary used, in the [associated paper](https://arxiv.org/pdf/1901.02860.pdf): > We envision interesting applications of Transformer-XL in the fields of text generation, unsupervised feature learning, image and speech modeling. #### Misuse and Out-of-scope Use The model should not be used to intentionally create hostile or alienating environments for people. In addition, the model was not trained to be factual or true representations of people or events, and therefore using the model to generate such content is out-of-scope for the abilities of this model. ## Risks, Limitations and Biases **CONTENT WARNING: Readers should be aware this section contains content that is disturbing, offensive, and can propagate historical and current stereotypes.** Significant research has explored bias and fairness issues with language models (see, e.g., [Sheng et al. (2021)](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al. (2021)](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)). ## Training #### Training Data The authors provide additionally notes about the vocabulary used, in the [associated paper](https://arxiv.org/pdf/1901.02860.pdf): > best model trained the Wikitext-103 dataset. We seed the our Transformer-XL with a context of at most 512 consecutive tokens randomly sampled from the test set of Wikitext-103. Then, we run Transformer-XL to generate a pre-defined number of tokens (500 or 1,000 in our case). For each generation step, we first find the top-40 probabilities of the next-step distribution and sample from top-40 tokens based on the re-normalized distribution. To help reading, we detokenize the context, the generated text and the reference text. The authors use the following pretraining corpora for the model, described in the [associated paper](https://arxiv.org/pdf/1901.02860.pdf): - WikiText-103 (Merity et al., 2016), #### Training Procedure ##### Preprocessing The authors provide additionally notes about the training procedure used, in the [associated paper](https://arxiv.org/pdf/1901.02860.pdf): > Similar to but different from enwik8, text8 con- tains 100M processed Wikipedia characters cre- ated by lowering case the text and removing any character other than the 26 letters a through z, and space. Due to the similarity, we simply adapt the best model and the same hyper-parameters on en- wik8 to text8 without further tuning. ## Evaluation #### Results | Method | enwiki8 |text8 | One Billion Word | WT-103 | PTB (w/o finetuning) | |:--------------------:|---------:|:----:|:----------------:|:------:|:--------------------:| | Transformer-XL. | 0.99 | 1.08 | 21.8 | 18.3 | 54.5 | ## Citation Information ```bibtex @misc{https://doi.org/10.48550/arxiv.1901.02860, doi = {10.48550/ARXIV.1901.02860}, url = {https://arxiv.org/abs/1901.02860}, author = {Dai, Zihang and Yang, Zhilin and Yang, Yiming and Carbonell, Jaime and Le, Quoc V. and Salakhutdinov, Ruslan}, keywords = {Machine Learning (cs.LG), Computation and Language (cs.CL), Machine Learning (stat.ML), FOS: Computer and information sciences, FOS: Computer and information sciences}, title = {Transformer-XL: Attentive Language Models Beyond a Fixed-Length Context}, publisher = {arXiv}, year = {2019}, copyright = {Creative Commons Attribution Non Commercial Share Alike 4.0 International} } ``` ## How to Get Started With the Model ``` from transformers import TransfoXLTokenizer, TransfoXLModel import torch tokenizer = TransfoXLTokenizer.from_pretrained("transfo-xl-wt103") model = TransfoXLModel.from_pretrained("transfo-xl-wt103") inputs = tokenizer("Hello, my dog is cute", return_tensors="pt") outputs = model(**inputs) last_hidden_states = outputs.last_hidden_state ```
[ -0.4499857425689697, -0.5551875233650208, 0.2640310227870941, 0.1359747350215912, -0.24850384891033173, -0.2111576795578003, -0.3549782335758209, -0.39797213673591614, 0.01805313117802143, 0.4150148332118988, -0.6402779817581177, -0.4542877972126007, -0.7104595899581909, 0.3465636074542999, -0.5120823383331299, 1.0847063064575195, -0.11209896951913834, -0.16026675701141357, -0.013374057598412037, -0.2124987691640854, -0.2802964150905609, -0.4867962896823883, -0.4378615617752075, -0.41759371757507324, 0.3536360263824463, 0.16702820360660553, 0.71056067943573, 0.571121096611023, 0.3054535686969757, 0.3302305340766907, -0.2776912450790405, -0.07310738414525986, -0.6298666596412659, -0.19746683537960052, 0.030271979048848152, -0.349359929561615, -0.24502848088741302, 0.09764662384986877, 0.6466546654701233, 0.8396909832954407, 0.020440388470888138, 0.2502729892730713, 0.14280681312084198, 0.4023216962814331, -0.3672691285610199, 0.182622492313385, -0.6719915866851807, 0.21207267045974731, -0.17847560346126556, 0.0856039747595787, -0.6299565434455872, -0.19129277765750885, 0.13630588352680206, -0.7119138836860657, 0.41405659914016724, 0.18444348871707916, 1.2070815563201904, 0.16014888882637024, -0.4574316143989563, -0.1290283054113388, -0.7872785329818726, 0.8679652810096741, -0.7272105813026428, 0.8118945360183716, 0.31512218713760376, 0.01300236489623785, 0.0852351039648056, -1.0767995119094849, -0.9758132100105286, -0.13046994805335999, -0.3977476954460144, 0.2619923949241638, -0.4189106225967407, -0.09318984299898148, 0.49344727396965027, 0.19318275153636932, -0.5216227173805237, 0.020512526854872704, -0.5161438584327698, -0.25196826457977295, 0.4220285713672638, 0.13847598433494568, 0.20387350022792816, -0.48640841245651245, -0.4567762315273285, -0.38276705145835876, -0.4884840250015259, 0.12343750149011612, 0.3955186605453491, 0.241575226187706, -0.4888506233692169, 0.521344006061554, 0.1561250537633896, 0.3992234170436859, 0.3397703468799591, -0.08472605049610138, 0.6830046772956848, -0.3801600933074951, -0.14687804877758026, -0.10191517323255539, 1.1665260791778564, 0.18702156841754913, 0.17826014757156372, -0.34550151228904724, -0.17912021279335022, -0.05110955238342285, 0.32515087723731995, -0.8929155468940735, 0.049975402653217316, 0.07540794461965561, -0.5888427495956421, -0.4818546175956726, 0.1205940991640091, -0.7833318710327148, 0.0318143367767334, -0.28479546308517456, 0.5378100872039795, -0.5660998225212097, -0.3528044819831848, 0.030494030565023422, -0.13984081149101257, 0.25580886006355286, -0.20422831177711487, -0.8655027151107788, 0.27840638160705566, 0.34272709488868713, 0.6903499364852905, -0.1847252994775772, -0.4787484109401703, -0.1372731328010559, 0.008024239912629128, -0.24415740370750427, 0.601786732673645, -0.4059511423110962, -0.47545886039733887, -0.0022708196192979813, 0.2874540090560913, -0.1819772720336914, -0.30877363681793213, 0.7444484829902649, -0.4072718918323517, 0.6018725037574768, -0.08381155133247375, -0.5218884348869324, -0.11385761946439743, -0.0027011169586330652, -0.7523863911628723, 1.2412930727005005, 0.3181575536727905, -1.061962366104126, 0.29847609996795654, -0.6299458742141724, -0.4285358786582947, -0.16470491886138916, -0.08268885314464569, -0.7294068336486816, 0.03725250065326691, 0.1875685304403305, 0.4008312225341797, -0.21904607117176056, 0.33935850858688354, -0.09592820703983307, -0.2767866551876068, 0.16708050668239594, -0.5254108905792236, 0.9727282524108887, 0.175846129655838, -0.7090790271759033, 0.1156594529747963, -0.8669074177742004, -0.21154315769672394, 0.3177132308483124, -0.2215825915336609, -0.2265262007713318, -0.2001243531703949, 0.2936747372150421, 0.34622567892074585, 0.05043395981192589, -0.662006139755249, 0.04300203174352646, -0.5812996625900269, 0.36326247453689575, 0.6830324530601501, -0.2876965403556824, 0.5338990092277527, -0.1644231081008911, 0.36704277992248535, 0.27262651920318604, 0.2960117757320404, -0.1496845930814743, -0.475803941488266, -0.8757447004318237, -0.06639467179775238, 0.41353505849838257, 0.5319352149963379, -0.8708949685096741, 0.6572555899620056, -0.481060266494751, -0.6158796548843384, -0.5047856569290161, -0.08390406519174576, 0.4659838080406189, 0.787680983543396, 0.6257259249687195, -0.07866290956735611, -0.5837874412536621, -0.8661230802536011, -0.016460685059428215, -0.047004584223032, -0.14949694275856018, 0.21782371401786804, 0.5519084334373474, -0.5200099349021912, 0.9376908540725708, -0.6268609762191772, -0.19484597444534302, -0.44610458612442017, 0.2566145360469818, 0.23177671432495117, 0.34268447756767273, 0.5328953862190247, -0.887744665145874, -0.5531817078590393, -0.23046079277992249, -0.6845805048942566, -0.16490432620048523, -0.049809638410806656, -0.1771669238805771, 0.3226929008960724, 0.5613434910774231, -0.7791474461555481, 0.402778685092926, 0.5158141851425171, -0.5664753913879395, 0.6661255955696106, -0.12011696398258209, -0.1480516791343689, -1.5379019975662231, 0.3008844554424286, 0.09878484159708023, -0.08891066163778305, -0.8195945024490356, -0.19068877398967743, 0.2352806031703949, -0.2360297292470932, -0.5311377048492432, 0.6655466556549072, -0.4017665386199951, 0.27347561717033386, -0.2177940309047699, 0.03280586749315262, 0.06870309263467789, 0.7753644585609436, 0.11785328388214111, 0.6544272899627686, 0.4772612154483795, -0.5529468059539795, 0.063125841319561, 0.4214727580547333, -0.2777711749076843, 0.3231864869594574, -0.7294116020202637, 0.026476159691810608, -0.26398348808288574, 0.3039446175098419, -0.75064617395401, 0.10198188573122025, 0.177154079079628, -0.49472886323928833, 0.5837648510932922, 0.2593380808830261, -0.419010728597641, -0.5623063445091248, -0.22627514600753784, 0.4346335530281067, 0.6582722067832947, -0.5579329133033752, 0.8362298011779785, 0.24997322261333466, 0.12180057168006897, -0.7378396987915039, -0.6381310224533081, -0.18765465915203094, -0.2932291626930237, -0.5630517601966858, 0.7665680646896362, -0.06012234836816788, -0.0014445146080106497, 0.0820789635181427, 0.15353146195411682, 0.12620408833026886, -0.1306484043598175, 0.3130117952823639, 0.30924341082572937, -0.04969210922718048, 0.03567768633365631, 0.006927111651748419, -0.31243789196014404, 0.01949355937540531, -0.2225809544324875, 0.579461395740509, -0.06362639367580414, 0.02227834425866604, -0.42026790976524353, 0.35677608847618103, 0.5217076539993286, -0.08704657107591629, 0.9886385798454285, 0.9984501600265503, -0.3975237011909485, -0.041777439415454865, -0.4863092601299286, -0.38635990023612976, -0.5099115967750549, 0.5369932651519775, -0.29064032435417175, -0.7951995134353638, 0.6193973422050476, 0.16888289153575897, 0.1437249332666397, 0.8008741140365601, 0.5617215633392334, 0.10638285428285599, 0.9792371392250061, 1.007185459136963, -0.12196726351976395, 0.4946567416191101, -0.4937170147895813, 0.36926597356796265, -0.8289456367492676, -0.26338452100753784, -0.5675761699676514, -0.1642783135175705, -0.8939339518547058, -0.30342647433280945, 0.274699330329895, -0.12862037122249603, -0.39283761382102966, 0.7299115657806396, -0.478826642036438, 0.046242520213127136, 0.548096776008606, 0.04176468402147293, 0.07848405092954636, -0.010529295541346073, -0.508252739906311, -0.1369723230600357, -0.6434641480445862, -0.363144189119339, 1.0635991096496582, 0.46757417917251587, 0.631409227848053, -0.07709836959838867, 0.5322560667991638, 0.04280475154519081, 0.3783973455429077, -0.6637809872627258, 0.49440547823905945, -0.18449081480503082, -0.5451704859733582, -0.3840329051017761, -0.5645024180412292, -1.1243629455566406, 0.15991640090942383, -0.3226756453514099, -0.7412962913513184, 0.26664894819259644, 0.06472866237163544, -0.22155359387397766, 0.4685235321521759, -0.741694450378418, 0.888150691986084, 0.04186239838600159, -0.17181450128555298, 0.07996733486652374, -0.6875394582748413, 0.22403080761432648, -0.22538113594055176, 0.25864630937576294, 0.2288394272327423, 0.13728871941566467, 0.9292282462120056, -0.3796631395816803, 0.8703303933143616, -0.03508463129401207, -0.09595814347267151, 0.23661677539348602, -0.28681907057762146, 0.5578543543815613, -0.2535029351711273, -0.08099770545959473, 0.5426008105278015, -0.16763828694820404, -0.09836658090353012, -0.5243268609046936, 0.4316798746585846, -1.0541572570800781, -0.48173293471336365, -0.25431278347969055, -0.5838180780410767, -0.01803380809724331, 0.3927905559539795, 0.764833390712738, 0.6045756340026855, 0.02353021688759327, 0.3659634292125702, 0.7042389512062073, -0.5245859026908875, 0.501039445400238, 0.4278981685638428, -0.01813988946378231, -0.44585445523262024, 0.7820898294448853, 0.2244281768798828, 0.20066195726394653, 0.5975882411003113, 0.40204519033432007, -0.48664963245391846, -0.08104013651609421, -0.2783026099205017, 0.43854260444641113, -0.666877806186676, -0.21423554420471191, -0.9356831312179565, -0.3970232605934143, -0.6229694485664368, -0.03727925568819046, -0.3963516056537628, -0.33204567432403564, -0.3509249985218048, -0.21491333842277527, 0.28736114501953125, 0.5350470542907715, 0.020606406033039093, 0.28233814239501953, -0.5797630548477173, 0.3311168849468231, 0.18691769242286682, 0.36168918013572693, 0.09829341620206833, -0.9389992356300354, -0.26958826184272766, -0.05183327570557594, -0.5674842596054077, -0.8062244057655334, 0.4711146354675293, 0.1191549152135849, 0.6415570378303528, 0.4027383029460907, 0.22990776598453522, 0.4866831302642822, -0.7984912991523743, 0.8728787302970886, 0.4121290445327759, -0.9655300378799438, 0.3221348226070404, -0.08139432221651077, 0.4190165102481842, 0.2802931070327759, 0.6359712481498718, -0.5923254489898682, -0.5763915777206421, -0.9008556008338928, -1.0403324365615845, 0.7862077355384827, 0.4229338765144348, 0.43051600456237793, -0.060187648981809616, 0.2683444321155548, 0.07534587383270264, 0.007955588400363922, -1.142032504081726, -0.6264469623565674, -0.5311090350151062, -0.4827404022216797, -0.09693530201911926, -0.2904243767261505, 0.07182763516902924, -0.40564224123954773, 0.8524221777915955, -0.13939711451530457, 0.7664828300476074, 0.11280855536460876, -0.21300877630710602, -0.07355246692895889, 0.17631027102470398, 0.7261233925819397, 0.3903833031654358, -0.046664267778396606, 0.21720479428768158, 0.4060163199901581, -0.8342373371124268, 0.03586238995194435, 0.3317168653011322, -0.33549392223358154, 0.1688106656074524, 0.4350506067276001, 1.2085238695144653, 0.37164273858070374, -0.43471577763557434, 0.6280955076217651, -0.25730809569358826, -0.3993428349494934, -0.28426966071128845, -0.17092564702033997, 0.060669831931591034, 0.13496923446655273, 0.5175703167915344, -0.0709947794675827, -0.0432516485452652, -0.30960947275161743, 0.31119129061698914, 0.29310229420661926, -0.4938381314277649, -0.4539686143398285, 0.9307078719139099, 0.04765286669135094, -0.2977586090564728, 0.6153249144554138, -0.12553714215755463, -0.5921234488487244, 0.5050011277198792, 0.7438730001449585, 1.0042967796325684, -0.10455360263586044, 0.1049501821398735, 0.6151583790779114, 0.4181113839149475, 0.02491088956594467, -0.03648160398006439, 0.011637852527201176, -0.922522783279419, -0.3234817385673523, -0.7414565682411194, -0.06084061414003372, 0.3636931777000427, -0.6109151244163513, 0.4708186984062195, -0.03824799507856369, -0.34515753388404846, 0.09405580163002014, -0.011507558636367321, -0.8754914402961731, 0.21503932774066925, 0.18968717753887177, 0.9838519096374512, -0.9481833577156067, 0.748437225818634, 0.5183592438697815, -0.4836863577365875, -1.089127779006958, 0.2096727341413498, -0.26118534803390503, -0.6397413611412048, 0.6855537295341492, 0.39729413390159607, 0.1245259940624237, 0.13473482429981232, -0.46274352073669434, -0.9282537698745728, 1.2230851650238037, 0.32870590686798096, -0.466058611869812, -0.1354198306798935, 0.3920464813709259, 0.5470341444015503, -0.12222596257925034, 0.5586605668067932, 0.3707670569419861, 0.3897821605205536, -0.029196275398135185, -0.925611138343811, 0.22397910058498383, -0.3244931399822235, 0.19217486679553986, 0.11900833249092102, -0.6594895124435425, 0.7965015172958374, -0.18736664950847626, -0.2866375148296356, -0.20418190956115723, 0.9276435375213623, 0.13078716397285461, 0.004334552679210901, 0.6646984815597534, 0.70863276720047, 0.523495078086853, -0.12145177274942398, 1.0100640058517456, -0.576582133769989, 0.582677960395813, 0.8224372267723083, 0.04837793484330177, 0.6667050123214722, 0.35821324586868286, -0.19472621381282806, 0.6250847578048706, 0.43605276942253113, -0.017373323440551758, 0.5662413239479065, -0.14652633666992188, -0.08716025203466415, 0.02760411612689495, 0.016808096319437027, -0.34922415018081665, 0.3667454123497009, 0.17237046360969543, -0.6345146298408508, -0.1313468962907791, 0.24028819799423218, 0.27345073223114014, -0.11780039966106415, -0.11974094063043594, 0.6491581797599792, 0.20280161499977112, -0.6367663145065308, 0.6879903674125671, 0.13244210183620453, 0.9222611784934998, -0.5923865437507629, 0.2324509471654892, -0.2893710434436798, 0.1049046665430069, -0.1063404381275177, -0.707909882068634, 0.3523171544075012, 0.09741106629371643, -0.37372830510139465, -0.31149500608444214, 0.6422768831253052, -0.43639516830444336, -0.7775149345397949, 0.40769582986831665, 0.2155887633562088, -0.04693099111318588, 0.22689583897590637, -0.8484103679656982, 0.031042534857988358, 0.0018846887396648526, -0.6420068740844727, 0.21575866639614105, 0.47526314854621887, -0.009843130595982075, 0.5917035341262817, 0.47966957092285156, -0.13299408555030823, 0.08054050803184509, 0.24735789000988007, 0.8582401275634766, -0.5807446837425232, -0.5122331976890564, -0.8413518071174622, 0.6083903908729553, -0.04955354705452919, -0.39431971311569214, 0.7018694877624512, 0.533921480178833, 1.0342121124267578, -0.0794442817568779, 0.7067621350288391, -0.13103429973125458, 0.40915364027023315, -0.28942903876304626, 0.772605836391449, -0.5427545309066772, -0.10732069611549377, -0.5585021376609802, -0.924777626991272, -0.17618165910243988, 0.5731247067451477, -0.22804005444049835, 0.1650795340538025, 0.7503277659416199, 0.8928508162498474, -0.09265673160552979, -0.09162971377372742, 0.34199264645576477, 0.3108038604259491, 0.2623046934604645, 0.3881498873233795, 0.39667871594429016, -0.7954104542732239, 0.8554978966712952, -0.544480562210083, -0.1804107278585434, 0.01723237708210945, -0.8211337924003601, -0.9198197722434998, -0.9267769455909729, -0.299618124961853, -0.4825654625892639, -0.3354239761829376, 0.8683084845542908, 0.6321712732315063, -0.7660650610923767, -0.08851863443851471, -0.053282346576452255, -0.0349373035132885, -0.3087104260921478, -0.2784004211425781, 0.5703223943710327, -0.25666505098342896, -0.802478551864624, -0.02548174373805523, -0.06616143882274628, 0.17810159921646118, -0.3168942332267761, -0.16330696642398834, -0.09566815942525864, 0.13179698586463928, 0.7869349122047424, 0.12389331310987473, -0.5726335644721985, -0.27703142166137695, 0.2600436210632324, -0.21711207926273346, 0.022787494584918022, 0.5483095645904541, -0.6732209920883179, 0.18672870099544525, 0.38064754009246826, 0.42076507210731506, 0.5577999353408813, -0.13864558935165405, 0.4042827785015106, -0.7640283703804016, 0.29785361886024475, -0.025537732988595963, 0.4545867443084717, 0.33156681060791016, -0.48420822620391846, 0.3420562744140625, 0.4988844394683838, -0.4568975567817688, -0.8567051291465759, 0.0030563226900994778, -0.9142584800720215, -0.20760932564735413, 1.3584907054901123, -0.021192971616983414, -0.30274471640586853, 0.016081461682915688, -0.0682886615395546, 0.6477056741714478, -0.2317132204771042, 0.8029560446739197, 0.5128908157348633, 0.15033437311649323, -0.2691357731819153, -0.4001125395298004, 0.48338618874549866, 0.2112937569618225, -0.6758504509925842, -0.0907093957066536, 0.09744724631309509, 0.4180503189563751, 0.4256313741207123, 0.43646520376205444, -0.13386835157871246, -0.04796662554144859, -0.030647296458482742, 0.33904701471328735, 0.02687796950340271, -0.130616694688797, -0.1332753300666809, 0.08685863018035889, -0.3171936273574829, 0.023293957114219666 ]
cambridgeltl/sst_mobilebert-uncased
cambridgeltl
"2022-11-04T19:20:23Z"
12,875
1
transformers
[ "transformers", "pytorch", "mobilebert", "text-classification", "arxiv:2004.02984", "endpoints_compatible", "region:us" ]
text-classification
"2022-03-14T14:35:36Z"
This model provides a MobileBERT [(Sun et al., 2020)](https://arxiv.org/abs/2004.02984) fine-tuned on the SST data with three sentiments (0 -- negative, 1 -- neutral, and 2 -- positive). ## Example Usage Below, we provide illustrations on how to use this model to make sentiment predictions. ```python import torch from transformers import AutoTokenizer, AutoConfig, MobileBertForSequenceClassification # load model model_name = r'cambridgeltl/sst_mobilebert-uncased' tokenizer = AutoTokenizer.from_pretrained(model_name) config = AutoConfig.from_pretrained(model_name) model = MobileBertForSequenceClassification.from_pretrained(model_name, config=config) model.eval() ''' labels: 0 -- negative 1 -- neutral 2 -- positive ''' # prepare exemplar sentences batch_sentences = [ "in his first stab at the form , jacquot takes a slightly anarchic approach that works only sporadically .", "a valueless kiddie paean to pro basketball underwritten by the nba .", "a very well-made , funny and entertaining picture .", ] # prepare input inputs = tokenizer(batch_sentences, max_length=256, truncation=True, padding=True, return_tensors='pt') input_ids, attention_mask = inputs.input_ids, inputs.attention_mask # make predictions outputs = model(input_ids=input_ids, attention_mask=attention_mask) predictions = torch.argmax(outputs.logits, dim = -1) print (predictions) # tensor([1, 0, 2]) ``` ## Citation: If you find this model useful, please kindly cite our model as ```bibtex @misc{susstmobilebert, author = {Su, Yixuan}, title = {A MobileBERT Fine-tuned on SST}, howpublished = {\url{https://huggingface.co/cambridgeltl/sst_mobilebert-uncased}}, year = 2022 } ```
[ -0.2513004243373871, -0.3859880566596985, 0.20054565370082855, 0.20610782504081726, -0.5504196286201477, -0.08845304697751999, 0.07355888932943344, -0.06590766459703445, 0.5094144344329834, 0.3999907076358795, -0.5468904376029968, -0.6660099029541016, -0.45890122652053833, -0.29953688383102417, -0.30108150839805603, 1.3242367506027222, 0.10476741939783096, 0.2014898806810379, 0.19871185719966888, -0.18426312506198883, -0.38303080201148987, -0.445832759141922, -0.5263963341712952, -0.5439233183860779, 0.44881126284599304, 0.4546838104724884, 0.9136294722557068, 0.23668181896209717, 0.42275795340538025, 0.1900075525045395, 0.10398493707180023, -0.2479746788740158, -0.34029486775398254, 0.2423567920923233, 0.11524804681539536, -0.41564038395881653, -0.5965009331703186, 0.36333850026130676, 0.32842427492141724, 0.15467752516269684, 0.06584138423204422, 0.4526762366294861, -0.02031497284770012, 0.7353400588035583, -0.40611857175827026, -0.11278805136680603, -0.751094400882721, 0.07347603142261505, 0.08700089156627655, -0.010883470065891743, -0.47975844144821167, -0.5116903781890869, 0.03863441199064255, -0.12784907221794128, 0.17585189640522003, -0.10405165702104568, 1.0067545175552368, 0.34505733847618103, -0.6345792412757874, 0.07095230370759964, -0.6061165928840637, 0.8377845883369446, -0.6081001162528992, 0.12102207541465759, 0.3118487000465393, 0.20938733220100403, 0.16844956576824188, -0.6799386143684387, -0.3954210579395294, -0.22558705508708954, 0.09337214380502701, 0.6091079711914062, -0.1376589834690094, -0.19827130436897278, 0.14939150214195251, 0.12644915282726288, -0.6883344650268555, -0.5177740454673767, -0.6700619459152222, -0.15973052382469177, 0.7406904101371765, 0.2817096710205078, -0.013237512670457363, -0.7380256056785583, -0.6528141498565674, 0.09727583080530167, -0.5774556994438171, 0.3483501374721527, 0.28570422530174255, 0.22188811004161835, -0.17469003796577454, 0.857442319393158, -0.24125787615776062, 0.45711037516593933, 0.09309159219264984, 0.12373653054237366, 0.4424232244491577, -0.14372843503952026, -0.2464345246553421, 0.11052381992340088, 0.9839611053466797, 0.5564389228820801, 0.26543527841567993, 0.11263291537761688, -0.152674600481987, 0.12668831646442413, 0.23946596682071686, -0.9889771938323975, -0.6734683513641357, 0.49284836649894714, -0.737224280834198, -0.6596630215644836, 0.051342640072107315, -0.42010965943336487, -0.4272449314594269, -0.2821365296840668, 0.6844087839126587, -0.7359002828598022, -0.14845910668373108, -0.00458528520539403, -0.11189661920070648, 0.09744797646999359, 0.039871226996183395, -0.6950775980949402, -0.15536046028137207, 0.14528843760490417, 1.0460675954818726, 0.18295559287071228, -0.23700731992721558, -0.3157483637332916, -0.22368395328521729, -0.13803239166736603, 0.7959012389183044, -0.40893152356147766, -0.36149701476097107, -0.28609007596969604, -0.06393145024776459, -0.260723352432251, 0.10736040025949478, 0.963406503200531, -0.4384676218032837, 0.22039182484149933, 0.02581610716879368, -0.3241955637931824, -0.13644738495349884, 0.1682509332895279, -0.44871586561203003, 1.0335135459899902, 0.0447196364402771, -1.0536611080169678, 0.24328719079494476, -0.8264825344085693, -0.4267747700214386, -0.12199648469686508, 0.21622489392757416, -0.5733521580696106, 0.07018871605396271, 0.09631232917308807, 0.7727478742599487, -0.06440471857786179, 0.1272561401128769, -0.6559700965881348, -0.4555363357067108, 0.31579166650772095, -0.1025892123579979, 1.0317656993865967, 0.4232166111469269, -0.34330201148986816, 0.24332156777381897, -0.8451288342475891, 0.1909712851047516, -0.049322668462991714, 0.023501520976424217, -0.16825318336486816, -0.042198292911052704, 0.07410099357366562, 0.37233519554138184, 0.23314255475997925, -0.5399281978607178, 0.29103192687034607, -0.35340413451194763, 0.7766343355178833, 0.5960206389427185, -0.049585986882448196, 0.46304526925086975, -0.08321603387594223, 0.6494663953781128, 0.0041570113971829414, 0.3871251344680786, -0.000792273145634681, -0.2195097953081131, -0.6962758302688599, -0.511661171913147, 0.46851760149002075, 0.5499871969223022, -0.5820736885070801, 0.24771009385585785, -0.1183961033821106, -0.9131975173950195, -0.3320204019546509, -0.3417201638221741, -0.03398178145289421, 0.35990092158317566, 0.4411527216434479, 0.130006805062294, -0.7912288308143616, -0.9625895619392395, -0.4362817406654358, -0.088531494140625, 0.13732978701591492, 0.02715221606194973, 0.597930371761322, -0.33196592330932617, 0.7874585390090942, -0.41890835762023926, -0.19845999777317047, -0.03669362515211105, 0.5385405421257019, 0.3992130756378174, 0.4472299814224243, 0.2542407512664795, -0.7569556832313538, -0.8391307592391968, -0.3135446012020111, -0.7473633289337158, 0.29503458738327026, 0.087232805788517, -0.1744452267885208, -0.2165497988462448, 0.3714667558670044, -0.8550292253494263, 0.4462485611438751, 0.4834592938423157, -0.5469656586647034, 0.6002175211906433, 0.2740546464920044, 0.1090775728225708, -1.3492436408996582, 0.07272273302078247, 0.26647529006004333, -0.21643030643463135, -0.7600253820419312, -0.28653261065483093, 0.12557266652584076, -0.1705545336008072, -0.40593042969703674, 0.5943909883499146, -0.0759967491030693, 0.18331006169319153, -0.3433625102043152, 0.01749267801642418, -0.11817891150712967, 0.2127305269241333, 0.06299512833356857, 0.6485981345176697, 0.5017877817153931, -0.33792129158973694, 0.42247146368026733, 0.3117557764053345, -0.05242035165429115, 0.3044721782207489, -0.878384530544281, -0.05917126685380936, -0.11335836350917816, 0.49101337790489197, -0.9873198866844177, -0.2514860928058624, 0.3160529136657715, -0.9952224493026733, -0.17354820668697357, -0.304050475358963, -0.23928263783454895, -0.44627031683921814, -0.6657241582870483, 0.2882007658481598, 0.43038514256477356, -0.2576163709163666, 0.9377751350402832, 0.2489420622587204, -0.10781459510326385, -0.7285071015357971, -0.5606990456581116, -0.28420349955558777, -0.3961581587791443, -0.6395079493522644, 0.24772591888904572, -0.012692363932728767, 0.06870730966329575, -0.1145923063158989, 0.004142027348279953, -0.0026802641805261374, -0.0033687325194478035, 0.7201453447341919, 0.7603175044059753, -0.0328214056789875, 0.2662510275840759, -0.031931955367326736, -0.03271188586950302, 0.08153247833251953, -0.2530273199081421, 0.5749647617340088, -0.61118084192276, 0.124619260430336, -0.4267098903656006, -0.19792751967906952, 0.6384191513061523, -0.09995178878307343, 0.7337194085121155, 1.2680994272232056, -0.36739400029182434, 0.2449878752231598, -0.18429352343082428, -0.2377188354730606, -0.40571320056915283, 0.22296391427516937, -0.5172475576400757, -0.6799026727676392, 0.6319394111633301, 0.23520201444625854, -0.05583285167813301, 0.8377417922019958, 0.7737661600112915, -0.23133905231952667, 1.4679778814315796, 0.4123391807079315, 0.08353729546070099, 0.5593577027320862, -0.44869890809059143, 0.2225033938884735, -0.9381680488586426, -0.19989550113677979, -0.3353992998600006, -0.1628902554512024, -0.7615998983383179, -0.028290318325161934, 0.14756546914577484, 0.35531675815582275, -0.6814224123954773, 0.5416433811187744, -0.7314391732215881, 0.33827832341194153, 0.6564851999282837, 0.26387152075767517, -0.156915083527565, -0.05838169902563095, -0.3370949327945709, -0.08849941194057465, -0.632716715335846, -0.7471014261245728, 1.395528793334961, 0.35582345724105835, 0.7792181968688965, 0.03509674593806267, 0.9405081868171692, 0.45894432067871094, 0.5253052711486816, -0.8342956304550171, 0.3809715211391449, -0.1617678701877594, -0.8138933777809143, -0.1391473412513733, -0.23727639019489288, -0.7735523581504822, 0.1944252997636795, -0.4343746304512024, -0.8631131649017334, 0.18139228224754333, 0.26231008768081665, -0.7871810793876648, -0.13648737967014313, -0.8332107663154602, 0.9544254541397095, -0.07470282167196274, -0.5816296339035034, -0.20043285191059113, -0.6806511282920837, 0.5956352353096008, 0.08925811201334, 0.07603412121534348, -0.4625774025917053, 0.3279094696044922, 0.838715672492981, -0.04814303293824196, 0.8205674886703491, -0.2449706643819809, 0.3890780806541443, 0.4669550359249115, 0.10060159116983414, 0.5483906865119934, 0.4511308968067169, -0.4495617747306824, -0.07199366390705109, 0.33474060893058777, -0.6257920861244202, -0.15098226070404053, 0.8499346375465393, -1.0970458984375, -0.31497228145599365, -0.6692660450935364, -0.3273203372955322, -0.155847430229187, 0.34553682804107666, 0.5664814710617065, 0.4191679358482361, -0.18050889670848846, 0.32587864995002747, 0.34266582131385803, 0.17338475584983826, 0.41238933801651, -0.04410354048013687, -0.190475195646286, -0.6456799507141113, 0.8524443507194519, -0.18846215307712555, -0.10179582238197327, -0.01158898789435625, 0.2606196403503418, -0.5388265252113342, -0.09783629328012466, -0.25145378708839417, 0.06411625444889069, -0.762791097164154, -0.45980823040008545, -0.4940475523471832, -0.34777745604515076, -0.43689385056495667, -0.12280812859535217, -0.49675509333610535, -0.736195981502533, -0.4859450161457062, -0.06944078952074051, 0.40060463547706604, 0.5822831392288208, -0.07897470146417618, 0.4251238703727722, -0.7909718751907349, 0.16069121658802032, 0.14353522658348083, 0.08865821361541748, -0.14567525684833527, -0.715186595916748, -0.5011855363845825, 0.26129022240638733, -0.5811567902565002, -0.7843637466430664, 0.6023702621459961, -0.026735404506325722, 0.18297336995601654, 0.19776451587677002, 0.26859450340270996, 0.3503616452217102, -0.2122625857591629, 0.9481604695320129, 0.6199844479560852, -0.9552732110023499, 0.4617825746536255, -0.6275668740272522, 0.3053295314311981, 0.4383549690246582, 0.45912888646125793, -0.296886146068573, -0.3126887083053589, -0.9035747051239014, -0.8134803175926208, 0.6615578532218933, 0.2984936833381653, 0.21178004145622253, -0.045104265213012695, 0.2592255175113678, 0.11189373582601547, 0.2865208685398102, -1.2075597047805786, -0.2560238540172577, -0.9171278476715088, -0.5211546421051025, -0.029813138768076897, -0.20589984953403473, -0.15246714651584625, -0.4108474552631378, 1.086524248123169, -0.0010169694432988763, 0.6258994936943054, 0.14570319652557373, -0.15787559747695923, 0.0681798905134201, 0.1724284291267395, 0.699221670627594, 0.3602900505065918, -0.5871925354003906, 0.21408268809318542, 0.16467738151550293, -0.36727750301361084, 0.06869947910308838, 0.15291357040405273, -0.18941862881183624, 0.002798548201099038, 0.02765388786792755, 0.8718293309211731, -0.3936620354652405, -0.18869683146476746, 0.3367975950241089, -0.11574243009090424, -0.5464040637016296, -0.580362856388092, -0.0018536222632974386, 0.14630204439163208, 0.6204915642738342, 0.34826695919036865, 0.7370780110359192, 0.2839058041572571, -0.3943396806716919, 0.062357790768146515, 0.4774697721004486, -0.7039718627929688, -0.4895279109477997, 0.9345963001251221, 0.19945462048053741, -0.12748877704143524, 0.21788886189460754, -0.27566370368003845, -0.9025204181671143, 0.2990990877151489, 0.06252610683441162, 0.9622349143028259, 0.04421341419219971, 0.5181798338890076, 0.6827656626701355, 0.161252960562706, -0.18625617027282715, 0.3098434507846832, 0.2288762629032135, -0.7411954402923584, -0.24418005347251892, -0.51701420545578, -0.1054418534040451, 0.17773889005184174, -0.6249788403511047, 0.5046185851097107, -0.5115031599998474, -0.7099318504333496, 0.2845354378223419, 0.14126689732074738, -0.7657453417778015, 0.5646658539772034, 0.12373331934213638, 0.5617105960845947, -0.9512659907341003, 1.0453953742980957, 0.8235427737236023, -0.665969729423523, -1.061773657798767, 0.12889643013477325, -0.29379257559776306, -0.8199612498283386, 0.8483251929283142, 0.18418066203594208, -0.32610782980918884, 0.18653598427772522, -0.6073110103607178, -0.8011174201965332, 1.1002362966537476, 0.03686433285474777, -0.21886786818504333, 0.2923739552497864, -0.22760941088199615, 0.48334652185440063, -0.48433706164360046, 0.5800508856773376, 0.3610612154006958, 0.10962767899036407, 0.052655018866062164, -0.33826953172683716, 0.10753867775201797, -0.3459717929363251, -0.03991877660155296, 0.05868876725435257, -0.9806514382362366, 1.1627273559570312, -0.3439338505268097, 0.25044500827789307, 0.023090176284313202, 0.7253787517547607, 0.19419598579406738, 0.32063841819763184, 0.2825213372707367, 0.24495963752269745, 0.5152826905250549, -0.026729241013526917, 0.6448739767074585, -0.6165273189544678, 0.8845339417457581, 0.9477951526641846, -0.00920065212994814, 1.0583292245864868, 0.5612658262252808, -0.14065749943256378, 0.6876648664474487, 0.9676497578620911, -0.1946852207183838, 0.7434483170509338, -0.12879393994808197, -0.16323056817054749, -0.3856102526187897, 0.17214971780776978, -0.40635576844215393, 0.45529571175575256, 0.022307325154542923, -0.6819970011711121, 0.17068472504615784, 0.039347779005765915, 0.010341774672269821, -0.29659661650657654, -0.37651973962783813, 0.15553420782089233, 0.04325106739997864, -0.7170695066452026, 0.7371665239334106, 0.21518008410930634, 0.5993598699569702, -0.10346058756113052, 0.2948557436466217, -0.07202915847301483, 0.2742113471031189, -0.3982034921646118, -0.6318663358688354, 0.132140651345253, -0.05390016734600067, -0.2379705160856247, 0.06148539111018181, 0.9626824855804443, -0.28441286087036133, -0.5953730344772339, -0.07583707571029663, 0.2972140312194824, 0.0710354894399643, -0.016951998695731163, -1.072913646697998, -0.180094376206398, 0.3997718095779419, -0.6201639771461487, 0.04355752095580101, 0.18720148503780365, 0.1338401734828949, 0.648598849773407, 0.4745723009109497, -0.21616898477077484, 0.03434035927057266, 0.05870319902896881, 0.6423187851905823, -0.7902790307998657, -0.37839099764823914, -0.9923872351646423, 0.7239364981651306, -0.1436532884836197, -0.3932380974292755, 0.6671702861785889, 0.58502197265625, 0.26439300179481506, -0.2669113576412201, 1.023571252822876, -0.1631707400083542, 0.5286016464233398, -0.3411034941673279, 0.5809674859046936, -0.6105170249938965, 0.15406711399555206, -0.03718619421124458, -0.7831554412841797, -0.16085760295391083, 1.051208257675171, -0.6121559739112854, 0.03593997657299042, 0.7897480726242065, 0.6470990777015686, -0.07115127891302109, 0.30071207880973816, 0.15377488732337952, 0.18600454926490784, -0.06902655214071274, 0.17197777330875397, 0.7470687627792358, -0.7745503783226013, 0.7889860272407532, -0.2623666524887085, -0.013894150964915752, -0.4984237849712372, -0.7121666073799133, -1.2119652032852173, -0.5316880345344543, -0.3373367488384247, -1.0434116125106812, 0.01352662779390812, 1.2445393800735474, 0.6259703040122986, -0.7863039970397949, 0.007106526289135218, -0.1514023244380951, -0.09808504581451416, 0.039548251777887344, -0.25391682982444763, 0.46769842505455017, -0.08064021915197372, -0.46494990587234497, -0.07997356355190277, -0.08444436639547348, 0.1118764877319336, -0.07824177294969559, -0.07416366040706635, -0.06293272972106934, 0.20963864028453827, 0.7868020534515381, 0.03191627189517021, -0.6274884343147278, -0.41159263253211975, 0.25853827595710754, -0.3751624822616577, -0.0752844512462616, 0.44629502296447754, -0.563480019569397, 0.15086698532104492, 0.14096403121948242, -0.004144981969147921, 0.9498034119606018, 0.04177701473236084, 0.41854482889175415, -0.5307976603507996, 0.06822840869426727, 0.39945873618125916, 0.454131156206131, 0.2717590034008026, -0.2845171391963959, 0.5480697751045227, 0.12936319410800934, -0.6835172176361084, -0.6650943756103516, 0.16659195721149445, -1.0089372396469116, -0.1093582808971405, 1.3583489656448364, 0.013985983096063137, 0.012903133407235146, 0.22578933835029602, -0.25679272413253784, 0.5870773196220398, -0.6544369459152222, 0.965269923210144, 0.7516663074493408, -0.43115589022636414, -0.20040404796600342, -0.6259216070175171, 0.46443092823028564, 0.5786083340644836, -0.2952786386013031, -0.08961163461208344, 0.16262876987457275, 0.39887627959251404, -0.0012559231836348772, 0.6188810467720032, 0.14327546954154968, 0.4514160752296448, 0.1142255961894989, 0.34106576442718506, 0.08693990111351013, -0.03502910956740379, 0.0123666450381279, 0.08695828169584274, 0.13559077680110931, -0.3438223898410797 ]
Helsinki-NLP/opus-mt-gem-gem
Helsinki-NLP
"2023-08-16T11:37:53Z"
12,836
1
transformers
[ "transformers", "pytorch", "tf", "marian", "text2text-generation", "translation", "da", "sv", "af", "nn", "fy", "fo", "de", "nb", "nl", "is", "en", "lb", "yi", "gem", "license:apache-2.0", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
translation
"2022-03-02T23:29:04Z"
--- language: - da - sv - af - nn - fy - fo - de - nb - nl - is - en - lb - yi - gem tags: - translation license: apache-2.0 --- ### gem-gem * source group: Germanic languages * target group: Germanic languages * OPUS readme: [gem-gem](https://github.com/Helsinki-NLP/Tatoeba-Challenge/tree/master/models/gem-gem/README.md) * model: transformer * source language(s): afr ang_Latn dan deu eng enm_Latn fao frr fry gos got_Goth gsw isl ksh ltz nds nld nno nob nob_Hebr non_Latn pdc sco stq swe swg yid * target language(s): afr ang_Latn dan deu eng enm_Latn fao frr fry gos got_Goth gsw isl ksh ltz nds nld nno nob nob_Hebr non_Latn pdc sco stq swe swg yid * model: transformer * pre-processing: normalization + SentencePiece (spm32k,spm32k) * a sentence initial language token is required in the form of `>>id<<` (id = valid target language ID) * download original weights: [opus-2020-07-27.zip](https://object.pouta.csc.fi/Tatoeba-MT-models/gem-gem/opus-2020-07-27.zip) * test set translations: [opus-2020-07-27.test.txt](https://object.pouta.csc.fi/Tatoeba-MT-models/gem-gem/opus-2020-07-27.test.txt) * test set scores: [opus-2020-07-27.eval.txt](https://object.pouta.csc.fi/Tatoeba-MT-models/gem-gem/opus-2020-07-27.eval.txt) ## Benchmarks | testset | BLEU | chr-F | |-----------------------|-------|-------| | newssyscomb2009-deueng.deu.eng | 24.5 | 0.519 | | newssyscomb2009-engdeu.eng.deu | 18.7 | 0.495 | | news-test2008-deueng.deu.eng | 22.8 | 0.509 | | news-test2008-engdeu.eng.deu | 18.6 | 0.485 | | newstest2009-deueng.deu.eng | 22.2 | 0.507 | | newstest2009-engdeu.eng.deu | 18.3 | 0.491 | | newstest2010-deueng.deu.eng | 24.8 | 0.537 | | newstest2010-engdeu.eng.deu | 19.7 | 0.499 | | newstest2011-deueng.deu.eng | 22.9 | 0.516 | | newstest2011-engdeu.eng.deu | 18.3 | 0.485 | | newstest2012-deueng.deu.eng | 23.9 | 0.524 | | newstest2012-engdeu.eng.deu | 18.5 | 0.484 | | newstest2013-deueng.deu.eng | 26.3 | 0.537 | | newstest2013-engdeu.eng.deu | 21.5 | 0.506 | | newstest2014-deen-deueng.deu.eng | 25.7 | 0.535 | | newstest2015-ende-deueng.deu.eng | 27.3 | 0.542 | | newstest2015-ende-engdeu.eng.deu | 24.2 | 0.534 | | newstest2016-ende-deueng.deu.eng | 31.8 | 0.584 | | newstest2016-ende-engdeu.eng.deu | 28.4 | 0.564 | | newstest2017-ende-deueng.deu.eng | 27.6 | 0.545 | | newstest2017-ende-engdeu.eng.deu | 22.8 | 0.527 | | newstest2018-ende-deueng.deu.eng | 34.1 | 0.593 | | newstest2018-ende-engdeu.eng.deu | 32.7 | 0.595 | | newstest2019-deen-deueng.deu.eng | 30.6 | 0.565 | | newstest2019-ende-engdeu.eng.deu | 29.5 | 0.567 | | Tatoeba-test.afr-ang.afr.ang | 0.0 | 0.053 | | Tatoeba-test.afr-dan.afr.dan | 57.8 | 0.907 | | Tatoeba-test.afr-deu.afr.deu | 46.4 | 0.663 | | Tatoeba-test.afr-eng.afr.eng | 57.4 | 0.717 | | Tatoeba-test.afr-enm.afr.enm | 11.3 | 0.285 | | Tatoeba-test.afr-fry.afr.fry | 0.0 | 0.167 | | Tatoeba-test.afr-gos.afr.gos | 1.5 | 0.178 | | Tatoeba-test.afr-isl.afr.isl | 29.0 | 0.760 | | Tatoeba-test.afr-ltz.afr.ltz | 11.2 | 0.246 | | Tatoeba-test.afr-nld.afr.nld | 53.3 | 0.708 | | Tatoeba-test.afr-nor.afr.nor | 66.0 | 0.752 | | Tatoeba-test.afr-swe.afr.swe | 88.0 | 0.955 | | Tatoeba-test.afr-yid.afr.yid | 59.5 | 0.443 | | Tatoeba-test.ang-afr.ang.afr | 10.7 | 0.043 | | Tatoeba-test.ang-dan.ang.dan | 6.3 | 0.190 | | Tatoeba-test.ang-deu.ang.deu | 1.4 | 0.212 | | Tatoeba-test.ang-eng.ang.eng | 8.1 | 0.247 | | Tatoeba-test.ang-enm.ang.enm | 1.7 | 0.196 | | Tatoeba-test.ang-fao.ang.fao | 10.7 | 0.105 | | Tatoeba-test.ang-gos.ang.gos | 10.7 | 0.128 | | Tatoeba-test.ang-isl.ang.isl | 16.0 | 0.135 | | Tatoeba-test.ang-ltz.ang.ltz | 16.0 | 0.121 | | Tatoeba-test.ang-yid.ang.yid | 1.5 | 0.136 | | Tatoeba-test.dan-afr.dan.afr | 22.7 | 0.655 | | Tatoeba-test.dan-ang.dan.ang | 3.1 | 0.110 | | Tatoeba-test.dan-deu.dan.deu | 47.4 | 0.676 | | Tatoeba-test.dan-eng.dan.eng | 54.7 | 0.704 | | Tatoeba-test.dan-enm.dan.enm | 4.8 | 0.291 | | Tatoeba-test.dan-fao.dan.fao | 9.7 | 0.120 | | Tatoeba-test.dan-gos.dan.gos | 3.8 | 0.240 | | Tatoeba-test.dan-isl.dan.isl | 66.1 | 0.678 | | Tatoeba-test.dan-ltz.dan.ltz | 78.3 | 0.563 | | Tatoeba-test.dan-nds.dan.nds | 6.2 | 0.335 | | Tatoeba-test.dan-nld.dan.nld | 60.0 | 0.748 | | Tatoeba-test.dan-nor.dan.nor | 68.1 | 0.812 | | Tatoeba-test.dan-swe.dan.swe | 65.0 | 0.785 | | Tatoeba-test.dan-swg.dan.swg | 2.6 | 0.182 | | Tatoeba-test.dan-yid.dan.yid | 9.3 | 0.226 | | Tatoeba-test.deu-afr.deu.afr | 50.3 | 0.682 | | Tatoeba-test.deu-ang.deu.ang | 0.5 | 0.118 | | Tatoeba-test.deu-dan.deu.dan | 49.6 | 0.679 | | Tatoeba-test.deu-eng.deu.eng | 43.4 | 0.618 | | Tatoeba-test.deu-enm.deu.enm | 2.2 | 0.159 | | Tatoeba-test.deu-frr.deu.frr | 0.4 | 0.156 | | Tatoeba-test.deu-fry.deu.fry | 10.7 | 0.355 | | Tatoeba-test.deu-gos.deu.gos | 0.7 | 0.183 | | Tatoeba-test.deu-got.deu.got | 0.3 | 0.010 | | Tatoeba-test.deu-gsw.deu.gsw | 1.1 | 0.130 | | Tatoeba-test.deu-isl.deu.isl | 24.3 | 0.504 | | Tatoeba-test.deu-ksh.deu.ksh | 0.9 | 0.173 | | Tatoeba-test.deu-ltz.deu.ltz | 15.6 | 0.304 | | Tatoeba-test.deu-nds.deu.nds | 21.2 | 0.469 | | Tatoeba-test.deu-nld.deu.nld | 47.1 | 0.657 | | Tatoeba-test.deu-nor.deu.nor | 43.9 | 0.646 | | Tatoeba-test.deu-pdc.deu.pdc | 3.0 | 0.133 | | Tatoeba-test.deu-sco.deu.sco | 12.0 | 0.296 | | Tatoeba-test.deu-stq.deu.stq | 0.6 | 0.137 | | Tatoeba-test.deu-swe.deu.swe | 50.6 | 0.668 | | Tatoeba-test.deu-swg.deu.swg | 0.2 | 0.137 | | Tatoeba-test.deu-yid.deu.yid | 3.9 | 0.229 | | Tatoeba-test.eng-afr.eng.afr | 55.2 | 0.721 | | Tatoeba-test.eng-ang.eng.ang | 4.9 | 0.118 | | Tatoeba-test.eng-dan.eng.dan | 52.6 | 0.684 | | Tatoeba-test.eng-deu.eng.deu | 35.4 | 0.573 | | Tatoeba-test.eng-enm.eng.enm | 1.8 | 0.223 | | Tatoeba-test.eng-fao.eng.fao | 7.0 | 0.312 | | Tatoeba-test.eng-frr.eng.frr | 1.2 | 0.050 | | Tatoeba-test.eng-fry.eng.fry | 15.8 | 0.381 | | Tatoeba-test.eng-gos.eng.gos | 0.7 | 0.170 | | Tatoeba-test.eng-got.eng.got | 0.3 | 0.011 | | Tatoeba-test.eng-gsw.eng.gsw | 0.5 | 0.126 | | Tatoeba-test.eng-isl.eng.isl | 20.9 | 0.463 | | Tatoeba-test.eng-ksh.eng.ksh | 1.0 | 0.141 | | Tatoeba-test.eng-ltz.eng.ltz | 12.8 | 0.292 | | Tatoeba-test.eng-nds.eng.nds | 18.3 | 0.428 | | Tatoeba-test.eng-nld.eng.nld | 47.3 | 0.657 | | Tatoeba-test.eng-non.eng.non | 0.3 | 0.145 | | Tatoeba-test.eng-nor.eng.nor | 47.2 | 0.650 | | Tatoeba-test.eng-pdc.eng.pdc | 4.8 | 0.177 | | Tatoeba-test.eng-sco.eng.sco | 38.1 | 0.597 | | Tatoeba-test.eng-stq.eng.stq | 2.4 | 0.288 | | Tatoeba-test.eng-swe.eng.swe | 52.7 | 0.677 | | Tatoeba-test.eng-swg.eng.swg | 1.1 | 0.163 | | Tatoeba-test.eng-yid.eng.yid | 4.5 | 0.223 | | Tatoeba-test.enm-afr.enm.afr | 22.8 | 0.401 | | Tatoeba-test.enm-ang.enm.ang | 0.4 | 0.062 | | Tatoeba-test.enm-dan.enm.dan | 51.4 | 0.782 | | Tatoeba-test.enm-deu.enm.deu | 33.8 | 0.473 | | Tatoeba-test.enm-eng.enm.eng | 22.4 | 0.495 | | Tatoeba-test.enm-fry.enm.fry | 16.0 | 0.173 | | Tatoeba-test.enm-gos.enm.gos | 6.1 | 0.222 | | Tatoeba-test.enm-isl.enm.isl | 59.5 | 0.651 | | Tatoeba-test.enm-ksh.enm.ksh | 10.5 | 0.130 | | Tatoeba-test.enm-nds.enm.nds | 18.1 | 0.327 | | Tatoeba-test.enm-nld.enm.nld | 38.3 | 0.546 | | Tatoeba-test.enm-nor.enm.nor | 15.6 | 0.290 | | Tatoeba-test.enm-yid.enm.yid | 2.3 | 0.215 | | Tatoeba-test.fao-ang.fao.ang | 2.1 | 0.035 | | Tatoeba-test.fao-dan.fao.dan | 53.7 | 0.625 | | Tatoeba-test.fao-eng.fao.eng | 24.7 | 0.435 | | Tatoeba-test.fao-gos.fao.gos | 12.7 | 0.116 | | Tatoeba-test.fao-isl.fao.isl | 26.3 | 0.341 | | Tatoeba-test.fao-nor.fao.nor | 41.9 | 0.586 | | Tatoeba-test.fao-swe.fao.swe | 0.0 | 1.000 | | Tatoeba-test.frr-deu.frr.deu | 7.4 | 0.263 | | Tatoeba-test.frr-eng.frr.eng | 7.0 | 0.157 | | Tatoeba-test.frr-fry.frr.fry | 4.0 | 0.112 | | Tatoeba-test.frr-gos.frr.gos | 1.0 | 0.135 | | Tatoeba-test.frr-nds.frr.nds | 12.4 | 0.207 | | Tatoeba-test.frr-nld.frr.nld | 10.6 | 0.227 | | Tatoeba-test.frr-stq.frr.stq | 1.0 | 0.058 | | Tatoeba-test.fry-afr.fry.afr | 12.7 | 0.333 | | Tatoeba-test.fry-deu.fry.deu | 30.8 | 0.555 | | Tatoeba-test.fry-eng.fry.eng | 31.2 | 0.506 | | Tatoeba-test.fry-enm.fry.enm | 0.0 | 0.175 | | Tatoeba-test.fry-frr.fry.frr | 1.6 | 0.091 | | Tatoeba-test.fry-gos.fry.gos | 1.1 | 0.254 | | Tatoeba-test.fry-ltz.fry.ltz | 30.4 | 0.526 | | Tatoeba-test.fry-nds.fry.nds | 12.4 | 0.116 | | Tatoeba-test.fry-nld.fry.nld | 43.4 | 0.637 | | Tatoeba-test.fry-nor.fry.nor | 47.1 | 0.607 | | Tatoeba-test.fry-stq.fry.stq | 0.6 | 0.181 | | Tatoeba-test.fry-swe.fry.swe | 30.2 | 0.587 | | Tatoeba-test.fry-yid.fry.yid | 3.1 | 0.173 | | Tatoeba-test.gos-afr.gos.afr | 1.8 | 0.215 | | Tatoeba-test.gos-ang.gos.ang | 0.0 | 0.045 | | Tatoeba-test.gos-dan.gos.dan | 4.1 | 0.236 | | Tatoeba-test.gos-deu.gos.deu | 19.6 | 0.406 | | Tatoeba-test.gos-eng.gos.eng | 15.1 | 0.329 | | Tatoeba-test.gos-enm.gos.enm | 5.8 | 0.271 | | Tatoeba-test.gos-fao.gos.fao | 19.0 | 0.136 | | Tatoeba-test.gos-frr.gos.frr | 1.3 | 0.119 | | Tatoeba-test.gos-fry.gos.fry | 17.1 | 0.388 | | Tatoeba-test.gos-isl.gos.isl | 16.8 | 0.356 | | Tatoeba-test.gos-ltz.gos.ltz | 3.6 | 0.174 | | Tatoeba-test.gos-nds.gos.nds | 4.7 | 0.225 | | Tatoeba-test.gos-nld.gos.nld | 16.3 | 0.406 | | Tatoeba-test.gos-stq.gos.stq | 0.7 | 0.154 | | Tatoeba-test.gos-swe.gos.swe | 8.6 | 0.319 | | Tatoeba-test.gos-yid.gos.yid | 4.4 | 0.165 | | Tatoeba-test.got-deu.got.deu | 0.2 | 0.041 | | Tatoeba-test.got-eng.got.eng | 0.2 | 0.068 | | Tatoeba-test.got-nor.got.nor | 0.6 | 0.000 | | Tatoeba-test.gsw-deu.gsw.deu | 15.9 | 0.373 | | Tatoeba-test.gsw-eng.gsw.eng | 14.7 | 0.320 | | Tatoeba-test.isl-afr.isl.afr | 38.0 | 0.641 | | Tatoeba-test.isl-ang.isl.ang | 0.0 | 0.037 | | Tatoeba-test.isl-dan.isl.dan | 67.7 | 0.836 | | Tatoeba-test.isl-deu.isl.deu | 42.6 | 0.614 | | Tatoeba-test.isl-eng.isl.eng | 43.5 | 0.610 | | Tatoeba-test.isl-enm.isl.enm | 12.4 | 0.123 | | Tatoeba-test.isl-fao.isl.fao | 15.6 | 0.176 | | Tatoeba-test.isl-gos.isl.gos | 7.1 | 0.257 | | Tatoeba-test.isl-nor.isl.nor | 53.5 | 0.690 | | Tatoeba-test.isl-stq.isl.stq | 10.7 | 0.176 | | Tatoeba-test.isl-swe.isl.swe | 67.7 | 0.818 | | Tatoeba-test.ksh-deu.ksh.deu | 11.8 | 0.393 | | Tatoeba-test.ksh-eng.ksh.eng | 4.0 | 0.239 | | Tatoeba-test.ksh-enm.ksh.enm | 9.5 | 0.085 | | Tatoeba-test.ltz-afr.ltz.afr | 36.5 | 0.529 | | Tatoeba-test.ltz-ang.ltz.ang | 0.0 | 0.043 | | Tatoeba-test.ltz-dan.ltz.dan | 80.6 | 0.722 | | Tatoeba-test.ltz-deu.ltz.deu | 40.1 | 0.581 | | Tatoeba-test.ltz-eng.ltz.eng | 36.1 | 0.511 | | Tatoeba-test.ltz-fry.ltz.fry | 16.5 | 0.524 | | Tatoeba-test.ltz-gos.ltz.gos | 0.7 | 0.118 | | Tatoeba-test.ltz-nld.ltz.nld | 40.4 | 0.535 | | Tatoeba-test.ltz-nor.ltz.nor | 19.1 | 0.582 | | Tatoeba-test.ltz-stq.ltz.stq | 2.4 | 0.093 | | Tatoeba-test.ltz-swe.ltz.swe | 25.9 | 0.430 | | Tatoeba-test.ltz-yid.ltz.yid | 1.5 | 0.160 | | Tatoeba-test.multi.multi | 42.7 | 0.614 | | Tatoeba-test.nds-dan.nds.dan | 23.0 | 0.465 | | Tatoeba-test.nds-deu.nds.deu | 39.8 | 0.610 | | Tatoeba-test.nds-eng.nds.eng | 32.0 | 0.520 | | Tatoeba-test.nds-enm.nds.enm | 3.9 | 0.156 | | Tatoeba-test.nds-frr.nds.frr | 10.7 | 0.127 | | Tatoeba-test.nds-fry.nds.fry | 10.7 | 0.231 | | Tatoeba-test.nds-gos.nds.gos | 0.8 | 0.157 | | Tatoeba-test.nds-nld.nds.nld | 44.1 | 0.634 | | Tatoeba-test.nds-nor.nds.nor | 47.1 | 0.665 | | Tatoeba-test.nds-swg.nds.swg | 0.5 | 0.166 | | Tatoeba-test.nds-yid.nds.yid | 12.7 | 0.337 | | Tatoeba-test.nld-afr.nld.afr | 58.4 | 0.748 | | Tatoeba-test.nld-dan.nld.dan | 61.3 | 0.753 | | Tatoeba-test.nld-deu.nld.deu | 48.2 | 0.670 | | Tatoeba-test.nld-eng.nld.eng | 52.8 | 0.690 | | Tatoeba-test.nld-enm.nld.enm | 5.7 | 0.178 | | Tatoeba-test.nld-frr.nld.frr | 0.9 | 0.159 | | Tatoeba-test.nld-fry.nld.fry | 23.0 | 0.467 | | Tatoeba-test.nld-gos.nld.gos | 1.0 | 0.165 | | Tatoeba-test.nld-ltz.nld.ltz | 14.4 | 0.310 | | Tatoeba-test.nld-nds.nld.nds | 24.1 | 0.485 | | Tatoeba-test.nld-nor.nld.nor | 53.6 | 0.705 | | Tatoeba-test.nld-sco.nld.sco | 15.0 | 0.415 | | Tatoeba-test.nld-stq.nld.stq | 0.5 | 0.183 | | Tatoeba-test.nld-swe.nld.swe | 73.6 | 0.842 | | Tatoeba-test.nld-swg.nld.swg | 4.2 | 0.191 | | Tatoeba-test.nld-yid.nld.yid | 9.4 | 0.299 | | Tatoeba-test.non-eng.non.eng | 27.7 | 0.501 | | Tatoeba-test.nor-afr.nor.afr | 48.2 | 0.687 | | Tatoeba-test.nor-dan.nor.dan | 69.5 | 0.820 | | Tatoeba-test.nor-deu.nor.deu | 41.1 | 0.634 | | Tatoeba-test.nor-eng.nor.eng | 49.4 | 0.660 | | Tatoeba-test.nor-enm.nor.enm | 6.8 | 0.230 | | Tatoeba-test.nor-fao.nor.fao | 6.9 | 0.395 | | Tatoeba-test.nor-fry.nor.fry | 9.2 | 0.323 | | Tatoeba-test.nor-got.nor.got | 1.5 | 0.000 | | Tatoeba-test.nor-isl.nor.isl | 34.5 | 0.555 | | Tatoeba-test.nor-ltz.nor.ltz | 22.1 | 0.447 | | Tatoeba-test.nor-nds.nor.nds | 34.3 | 0.565 | | Tatoeba-test.nor-nld.nor.nld | 50.5 | 0.676 | | Tatoeba-test.nor-nor.nor.nor | 57.6 | 0.764 | | Tatoeba-test.nor-swe.nor.swe | 68.9 | 0.813 | | Tatoeba-test.nor-yid.nor.yid | 65.0 | 0.627 | | Tatoeba-test.pdc-deu.pdc.deu | 43.5 | 0.559 | | Tatoeba-test.pdc-eng.pdc.eng | 26.1 | 0.471 | | Tatoeba-test.sco-deu.sco.deu | 7.1 | 0.295 | | Tatoeba-test.sco-eng.sco.eng | 34.4 | 0.551 | | Tatoeba-test.sco-nld.sco.nld | 9.9 | 0.438 | | Tatoeba-test.stq-deu.stq.deu | 8.6 | 0.385 | | Tatoeba-test.stq-eng.stq.eng | 21.8 | 0.431 | | Tatoeba-test.stq-frr.stq.frr | 2.1 | 0.111 | | Tatoeba-test.stq-fry.stq.fry | 7.6 | 0.267 | | Tatoeba-test.stq-gos.stq.gos | 0.7 | 0.198 | | Tatoeba-test.stq-isl.stq.isl | 16.0 | 0.121 | | Tatoeba-test.stq-ltz.stq.ltz | 3.8 | 0.150 | | Tatoeba-test.stq-nld.stq.nld | 14.6 | 0.375 | | Tatoeba-test.stq-yid.stq.yid | 2.4 | 0.096 | | Tatoeba-test.swe-afr.swe.afr | 51.8 | 0.802 | | Tatoeba-test.swe-dan.swe.dan | 64.9 | 0.784 | | Tatoeba-test.swe-deu.swe.deu | 47.0 | 0.657 | | Tatoeba-test.swe-eng.swe.eng | 55.8 | 0.700 | | Tatoeba-test.swe-fao.swe.fao | 0.0 | 0.060 | | Tatoeba-test.swe-fry.swe.fry | 14.1 | 0.449 | | Tatoeba-test.swe-gos.swe.gos | 7.5 | 0.291 | | Tatoeba-test.swe-isl.swe.isl | 70.7 | 0.812 | | Tatoeba-test.swe-ltz.swe.ltz | 15.9 | 0.553 | | Tatoeba-test.swe-nld.swe.nld | 78.7 | 0.854 | | Tatoeba-test.swe-nor.swe.nor | 67.1 | 0.799 | | Tatoeba-test.swe-yid.swe.yid | 14.7 | 0.156 | | Tatoeba-test.swg-dan.swg.dan | 7.7 | 0.341 | | Tatoeba-test.swg-deu.swg.deu | 8.0 | 0.334 | | Tatoeba-test.swg-eng.swg.eng | 12.4 | 0.305 | | Tatoeba-test.swg-nds.swg.nds | 1.1 | 0.209 | | Tatoeba-test.swg-nld.swg.nld | 4.9 | 0.244 | | Tatoeba-test.swg-yid.swg.yid | 3.4 | 0.194 | | Tatoeba-test.yid-afr.yid.afr | 23.6 | 0.552 | | Tatoeba-test.yid-ang.yid.ang | 0.1 | 0.066 | | Tatoeba-test.yid-dan.yid.dan | 17.5 | 0.392 | | Tatoeba-test.yid-deu.yid.deu | 21.0 | 0.423 | | Tatoeba-test.yid-eng.yid.eng | 17.4 | 0.368 | | Tatoeba-test.yid-enm.yid.enm | 0.6 | 0.143 | | Tatoeba-test.yid-fry.yid.fry | 5.3 | 0.169 | | Tatoeba-test.yid-gos.yid.gos | 1.2 | 0.149 | | Tatoeba-test.yid-ltz.yid.ltz | 3.5 | 0.256 | | Tatoeba-test.yid-nds.yid.nds | 14.4 | 0.487 | | Tatoeba-test.yid-nld.yid.nld | 26.1 | 0.423 | | Tatoeba-test.yid-nor.yid.nor | 47.1 | 0.583 | | Tatoeba-test.yid-stq.yid.stq | 1.5 | 0.092 | | Tatoeba-test.yid-swe.yid.swe | 35.9 | 0.518 | | Tatoeba-test.yid-swg.yid.swg | 1.0 | 0.124 | ### System Info: - hf_name: gem-gem - source_languages: gem - target_languages: gem - opus_readme_url: https://github.com/Helsinki-NLP/Tatoeba-Challenge/tree/master/models/gem-gem/README.md - original_repo: Tatoeba-Challenge - tags: ['translation'] - languages: ['da', 'sv', 'af', 'nn', 'fy', 'fo', 'de', 'nb', 'nl', 'is', 'en', 'lb', 'yi', 'gem'] - src_constituents: {'ksh', 'enm_Latn', 'got_Goth', 'stq', 'dan', 'swe', 'afr', 'pdc', 'gos', 'nno', 'fry', 'gsw', 'fao', 'deu', 'swg', 'sco', 'nob', 'nld', 'isl', 'eng', 'ltz', 'nob_Hebr', 'ang_Latn', 'frr', 'non_Latn', 'yid', 'nds'} - tgt_constituents: {'ksh', 'enm_Latn', 'got_Goth', 'stq', 'dan', 'swe', 'afr', 'pdc', 'gos', 'nno', 'fry', 'gsw', 'fao', 'deu', 'swg', 'sco', 'nob', 'nld', 'isl', 'eng', 'ltz', 'nob_Hebr', 'ang_Latn', 'frr', 'non_Latn', 'yid', 'nds'} - src_multilingual: True - tgt_multilingual: True - prepro: normalization + SentencePiece (spm32k,spm32k) - url_model: https://object.pouta.csc.fi/Tatoeba-MT-models/gem-gem/opus-2020-07-27.zip - url_test_set: https://object.pouta.csc.fi/Tatoeba-MT-models/gem-gem/opus-2020-07-27.test.txt - src_alpha3: gem - tgt_alpha3: gem - short_pair: gem-gem - chrF2_score: 0.614 - bleu: 42.7 - brevity_penalty: 0.993 - ref_len: 73459.0 - src_name: Germanic languages - tgt_name: Germanic languages - train_date: 2020-07-27 - src_alpha2: gem - tgt_alpha2: gem - prefer_old: False - long_pair: gem-gem - helsinki_git_sha: 480fcbe0ee1bf4774bcbe6226ad9f58e63f6c535 - transformers_git_sha: 2207e5d8cb224e954a7cba69fa4ac2309e9ff30b - port_machine: brutasse - port_time: 2020-08-21-14:41
[ -0.948167085647583, -0.6621058583259583, 0.2907271683216095, 0.3804154098033905, -0.30364593863487244, -0.05905117467045784, 0.1089685782790184, -0.3421997129917145, 0.8904258608818054, 0.024827884510159492, -0.29933980107307434, -0.5569986701011658, -0.5381066799163818, 0.3689003884792328, -0.12691156566143036, 0.5095635056495667, -0.07007864117622375, -0.0634971633553505, 0.2947893738746643, -0.31902632117271423, -0.5833792090415955, 0.1811886429786682, -0.9014226198196411, -0.07943876087665558, 0.3301750123500824, 0.4824017882347107, 0.7483411431312561, 0.3906613290309906, 0.2899877727031708, 0.46923214197158813, -0.24018289148807526, 0.07471413165330887, 0.1527397483587265, -0.23398831486701965, 0.06619396805763245, -0.7679905295372009, -0.5890395045280457, -0.17063680291175842, 0.574945867061615, 0.7909154295921326, 0.18228667974472046, 0.42005327343940735, -0.05311238020658493, 1.0198783874511719, -0.4437105059623718, 0.11262839287519455, -0.0671624094247818, 0.059945542365312576, -0.41564854979515076, -0.3684603273868561, -0.5954316258430481, -1.0554172992706299, -0.1587323099374771, -0.5811336040496826, 0.02127324417233467, 0.06384531408548355, 1.5335999727249146, -0.1184944361448288, -0.34035971760749817, -0.08187513798475266, -0.25092613697052, 0.8411584496498108, -1.0225805044174194, 0.24741847813129425, 0.49900099635124207, 0.016225211322307587, -0.3805556297302246, -0.3402028977870941, -0.8201931118965149, 0.18129265308380127, -0.3402029871940613, 0.5586004853248596, -0.03521554917097092, -0.3119822144508362, 0.308461457490921, 0.5194025635719299, -0.7245206236839294, -0.031997665762901306, -0.5340902209281921, 0.16778245568275452, 0.7184022068977356, 0.37277939915657043, 0.48967278003692627, -0.3960218131542206, -0.7194967269897461, -0.5350342988967896, -0.3722625970840454, 0.5743952989578247, 0.2573493421077728, 0.26923930644989014, -0.27390897274017334, 0.7166070938110352, -0.30402329564094543, 0.6218961477279663, 0.4167156517505646, -0.07440155744552612, 0.89250648021698, -0.5372995734214783, -0.6018134355545044, -0.33808189630508423, 0.9617738723754883, 0.853385865688324, -0.16651485860347748, 0.20498515665531158, -0.034506961703300476, 0.18591640889644623, -0.20188190042972565, -0.6719388365745544, -0.0914493128657341, 0.23642565310001373, -0.3167862296104431, -0.11456646770238876, 0.13707765936851501, -1.3834294080734253, -0.0064085982739925385, -0.06832305341959, 0.40264278650283813, -0.6536860466003418, -0.4958812892436981, 0.2840140759944916, -0.04971332475543022, 0.39580678939819336, 0.10146822780370712, -0.6130138039588928, 0.42380428314208984, 0.1026090458035469, 0.83500736951828, -0.1875155121088028, -0.2615135610103607, 0.1493021845817566, 0.11503853648900986, -0.5437045693397522, 0.8761773109436035, -0.296631395816803, -0.5542665123939514, -0.3087959885597229, 0.25347208976745605, -0.38266608119010925, -0.29428958892822266, 0.5249649286270142, -0.19354164600372314, 0.3814079165458679, -0.6061531901359558, -0.4605565667152405, -0.4440499246120453, 0.11587736010551453, -0.7808398008346558, 1.5045608282089233, 0.3660431206226349, -0.7724636793136597, 0.7227934002876282, -0.6242916584014893, -0.10445398837327957, -0.09164096415042877, 0.2148909568786621, -0.6149836182594299, -0.0653010830283165, 0.30049923062324524, 0.38364434242248535, -0.4367084801197052, 0.2137608677148819, -0.07533889263868332, -0.3575599491596222, 0.01195400021970272, -0.25713956356048584, 1.4142078161239624, 0.32189124822616577, -0.5706338286399841, -0.19713832437992096, -1.2552694082260132, 0.4118799567222595, 0.23240581154823303, -0.5163815021514893, -0.01325230486690998, -0.7884793281555176, -0.11891642212867737, 0.2033170461654663, 0.26828718185424805, -0.7267813682556152, 0.1921653151512146, -0.6836144328117371, -0.12861455976963043, 1.1859827041625977, 0.23473820090293884, 0.3640214800834656, -0.7402052283287048, 0.5472363829612732, 0.2414601445198059, 0.3624616861343384, 0.5440497994422913, -0.5112412571907043, -0.661719560623169, -0.07049426436424255, 0.5477315187454224, 0.7464514970779419, -0.7126411199569702, 0.9793581962585449, -0.09810419380664825, -1.1079541444778442, -0.41957610845565796, -0.20904387533664703, 0.4671429991722107, 0.5603983998298645, 0.4072694480419159, -0.3323058784008026, -0.5361379384994507, -1.115719199180603, -0.17842209339141846, 0.011173872277140617, 0.17654623091220856, 0.19591377675533295, 1.0751272439956665, 0.11632779240608215, 1.0047320127487183, -0.8872900605201721, -0.431000292301178, -0.12519247829914093, -0.2484418898820877, 0.7928756475448608, 0.6080142855644226, 1.2381631135940552, -0.6786948442459106, -1.1352207660675049, -0.030296551063656807, -0.907110869884491, -0.10737264156341553, -0.022809293121099472, -0.28322359919548035, 0.5183641910552979, -0.006995541043579578, -0.6327178478240967, 0.8052569031715393, 0.5472718477249146, -0.7897235751152039, 0.7238328456878662, -0.3507789075374603, 0.45145127177238464, -1.1490302085876465, 0.13894455134868622, -0.16506652534008026, 0.15319859981536865, -0.3050648868083954, -0.01879473589360714, -0.020007479935884476, 0.1488383263349533, -0.3015347719192505, 0.6626853346824646, -0.9277995824813843, -0.10268852114677429, 0.3343961536884308, 0.3822711706161499, -0.10515796393156052, 0.9031815528869629, -0.44446247816085815, 1.2198352813720703, 0.8034420609474182, -0.6581850051879883, 0.5795947909355164, 0.2650892734527588, -0.22675758600234985, 0.5982956886291504, -0.5571562051773071, -0.3937462568283081, -0.17766237258911133, 0.07436240464448929, -1.258109450340271, -0.11236327886581421, 0.23938101530075073, -0.6519643068313599, 0.2402278631925583, 0.4572681784629822, -0.3432309329509735, -0.767641007900238, -0.7889217734336853, 0.1986711174249649, 0.5234190821647644, -0.2867666184902191, 0.5565063953399658, 0.32973572611808777, -0.1020999401807785, -0.615687906742096, -0.7698441743850708, -0.22813448309898376, -0.055194929242134094, -0.4940023720264435, 0.08910912275314331, -0.24061502516269684, -0.31482067704200745, 0.22682897746562958, -0.25696685910224915, -0.30580711364746094, -0.044824063777923584, 0.3847997188568115, 0.06285776197910309, -0.2630610466003418, -0.20802998542785645, -0.16760371625423431, -0.2651703357696533, -0.04200877621769905, 0.3610203266143799, 0.8346937298774719, -0.17172250151634216, -0.3979181945323944, -0.5695330500602722, 0.3116263151168823, 0.5361635088920593, -0.21547767519950867, 1.1296542882919312, 0.27442070841789246, -0.34115588665008545, 0.1017659530043602, -0.5432074666023254, 0.1310298591852188, -0.5326526761054993, 0.10825236886739731, -0.6216587424278259, -0.5945239663124084, 0.8987776041030884, 0.039553817361593246, 0.2208840548992157, 0.9986565113067627, 0.4366645812988281, -0.11504670977592468, 0.6944579482078552, 0.2331857532262802, 0.3180446922779083, 0.5517516732215881, -0.6851005554199219, 0.12957434356212616, -0.7202242612838745, -0.6576330661773682, -0.6331151127815247, -0.505175769329071, -0.6989714503288269, -0.21448200941085815, 0.5473355054855347, -0.10794414579868317, -0.348612517118454, 0.8423184752464294, -0.8709717988967896, 0.39364367723464966, 0.5449698567390442, 0.5273998379707336, 0.09637303650379181, -0.470589280128479, -0.24101348221302032, -0.14330598711967468, -0.19785408675670624, -0.4805704951286316, 1.4307169914245605, 0.21510688960552216, 0.5255629420280457, 0.46882426738739014, 1.1380658149719238, 0.4178756773471832, 0.08805868029594421, -0.3955771028995514, 0.8079760074615479, 0.35840269923210144, -0.8612666726112366, -0.7588377594947815, -0.024758238345384598, -1.1119041442871094, 0.5901911854743958, -0.18150611221790314, -0.6361014246940613, 0.4688282608985901, -0.15856081247329712, -0.34138235449790955, 0.5184752941131592, -0.9321727156639099, 0.72971111536026, -0.1471271514892578, -0.5637480616569519, 0.15589487552642822, -0.6295670866966248, 0.20296603441238403, 0.03961664438247681, 0.18480154871940613, -0.1209167018532753, 0.08850694447755814, 0.9821550250053406, -0.8517413139343262, 0.4378971457481384, -0.5577142834663391, -0.0005667444784194231, 0.7644305229187012, 0.11162196844816208, 0.5921038389205933, 0.0859910324215889, -0.2079147845506668, -0.4095134735107422, -0.13513731956481934, -0.7253877520561218, -0.22023959457874298, 0.6572478413581848, -0.7831265330314636, -0.7777433395385742, -0.9488945007324219, -0.14931514859199524, 0.03650465980172157, 0.5219776630401611, 0.4022907614707947, 0.6812694072723389, -0.14919565618038177, 0.4806858003139496, 0.7301228642463684, -0.3574906587600708, 0.8729175925254822, 0.012756023555994034, -0.13325324654579163, -0.5645889639854431, 0.7269148826599121, 0.3869987428188324, 0.3108085095882416, 0.41095665097236633, -0.008397812023758888, -0.4089212417602539, -0.4839685559272766, -0.40503519773483276, 0.2173241376876831, -0.5386467576026917, -0.5855492949485779, -0.6768548488616943, 0.04069500416517258, -0.5746023058891296, -0.4169796109199524, -0.3247309625148773, -0.561944842338562, -0.06297069042921066, -0.5478721261024475, 0.6403422355651855, 0.7670692801475525, -0.32648715376853943, 0.31616708636283875, -0.3819364309310913, 0.21310916543006897, 0.17181405425071716, 0.530437707901001, -0.04316002130508423, -0.49902886152267456, -0.10425185412168503, 0.0027840540278702974, -0.3753740191459656, -1.5204229354858398, 0.5794776082038879, -0.3389735817909241, 0.378671795129776, 0.25378093123435974, -0.02606271393597126, 0.935892641544342, -0.01293508242815733, 1.251577615737915, 0.4057527482509613, -0.9555813074111938, 0.7315528392791748, -0.35119399428367615, 0.0927063375711441, 0.9183388352394104, 0.26971665024757385, -0.027221307158470154, -0.6563193202018738, -0.7654044032096863, -1.176967740058899, 0.6547561287879944, 0.30284565687179565, -0.3088288903236389, -0.41066911816596985, -0.14054928719997406, 0.023572806268930435, -0.3180173337459564, -0.9395895004272461, -1.0175968408584595, 0.08674202114343643, -0.1328563094139099, 0.41785749793052673, -0.31367501616477966, -0.13555297255516052, -0.5531787872314453, 0.7670864462852478, 0.33392176032066345, 0.5619512796401978, 0.304647296667099, -0.07176516205072403, 0.15723465383052826, 0.49152272939682007, 0.9281211495399475, 0.7510186433792114, -0.30116596817970276, -0.14374108612537384, 0.7718222737312317, -0.7401056885719299, 0.5194320678710938, -0.19178219139575958, -0.33549076318740845, 0.20295222103595734, 0.08501486480236053, 0.5018528699874878, 0.23367419838905334, -0.06414448469877243, 0.5101740956306458, -0.018011875450611115, -0.4281686246395111, -0.8864757418632507, -0.10611241310834885, 0.023773863911628723, 0.01424452941864729, 0.3357442617416382, 0.06353692710399628, 0.07311530411243439, -0.6438344717025757, 0.32575300335884094, 0.22920623421669006, -0.13536915183067322, 0.05176922678947449, 0.730689525604248, 0.21394646167755127, -0.10325729846954346, 0.14025558531284332, -0.32752373814582825, -0.3498828113079071, 0.9942656755447388, 0.5457822680473328, 0.6870261430740356, -0.5232418775558472, 0.01056476030498743, 0.9888952374458313, 0.16708099842071533, 0.04192311316728592, 0.7662265300750732, 0.4912440776824951, -0.34336310625076294, 0.07957201451063156, -0.8872271180152893, -0.1593879908323288, -0.015474767424166203, -0.8787679672241211, 0.09755372256040573, -0.5623806715011597, -0.6011699438095093, -0.13290655612945557, 0.4332086443901062, -0.7316414713859558, 0.5877922773361206, -0.48981237411499023, 1.3445078134536743, -1.1362959146499634, 0.6263970136642456, 0.7700713872909546, -1.0747556686401367, -1.1466801166534424, -0.3278355002403259, -0.3711843192577362, -0.7118812799453735, 0.6172631978988647, -0.33952444791793823, -0.0859675481915474, -0.06778416782617569, -0.2491137832403183, -1.1116355657577515, 1.5916016101837158, -0.0839589536190033, -0.29671961069107056, 0.290300577878952, -0.013135500252246857, 0.6601806879043579, 0.38481491804122925, 0.8151425719261169, 0.5795243978500366, 1.0530191659927368, -0.1938612312078476, -1.0822291374206543, 0.46815091371536255, -0.6352660059928894, -0.14513233304023743, 0.43810322880744934, -1.2343624830245972, 1.349766731262207, 0.0339306965470314, -0.1423242688179016, -0.2201247364282608, 0.7269871234893799, 0.23253436386585236, 0.13371272385120392, 0.5461033582687378, 0.896909773349762, 0.6220309734344482, -0.48676595091819763, 0.9316354393959045, -0.10204287618398666, 0.5019094347953796, 0.5750229358673096, -0.0009397121611982584, 0.7152873873710632, 0.383329302072525, -0.9118349552154541, 0.5458319187164307, 0.6850430965423584, -0.3160986304283142, 0.515213668346405, 0.14513152837753296, -0.39902207255363464, -0.08341102302074432, -0.1107463389635086, -0.7751764059066772, 0.46926799416542053, 0.0865645706653595, -0.08823110908269882, -0.17315581440925598, -0.22279246151447296, 0.3203074038028717, 0.42708349227905273, -0.19049568474292755, 0.5778354406356812, 0.025758229196071625, -0.631842315196991, 0.6145151853561401, -0.2631396949291229, 0.9156437516212463, -0.4109552502632141, -0.059767961502075195, -0.39702484011650085, 0.412691593170166, -0.26859861612319946, -1.4628711938858032, 0.402954638004303, -0.09124121814966202, -0.49382495880126953, -0.01395505852997303, 0.29063281416893005, -0.11888051778078079, -0.4917934238910675, 0.6106690168380737, 0.3445289731025696, 0.2552111744880676, 0.4797520339488983, -0.4151685833930969, -0.15177325904369354, 0.1251819133758545, -0.8856709599494934, 0.34517306089401245, 0.5228469371795654, 0.11628034710884094, 0.7035132050514221, 0.5269173979759216, 0.11995833367109299, 0.5126057267189026, -0.3472137749195099, 0.8297083973884583, -1.033427119255066, -0.38523441553115845, -0.8673192858695984, 0.44484907388687134, -0.4185013771057129, -0.7297929525375366, 1.061318278312683, 1.0428322553634644, 0.7904852628707886, -0.28456491231918335, 0.8258247971534729, -0.6012242436408997, 0.5399864315986633, -0.3513386845588684, 0.7873058915138245, -0.7037771940231323, -0.5744631290435791, -0.17421536147594452, -0.9359865188598633, -0.3317977786064148, 0.6757010221481323, -0.28696438670158386, 0.2262100875377655, 0.9719496965408325, 0.6119067668914795, 0.325276643037796, 0.18589070439338684, 0.1436704397201538, 0.4037289023399353, 0.07874193787574768, 1.1485185623168945, 0.31284403800964355, -0.8755475878715515, 0.5875222682952881, -0.5654857158660889, -0.02913792058825493, -0.26185229420661926, -0.6308737397193909, -0.8317520022392273, -0.5350861549377441, 0.026004860177636147, -0.34981784224510193, -0.4631345868110657, 0.9887304306030273, -0.010298079811036587, -1.073529601097107, -0.4120621681213379, 0.2771294414997101, 0.057923782616853714, -0.5477412939071655, -0.37212929129600525, 1.1210136413574219, 0.05092057213187218, -1.1667240858078003, 0.2498321682214737, -0.019042430445551872, 0.0893755555152893, 0.5212497711181641, -0.007860785350203514, -0.6643732190132141, 0.09094071388244629, 0.4559938311576843, 0.3799588680267334, -0.7362852096557617, -0.5079480409622192, 0.19641734659671783, -0.48652252554893494, 0.3522796034812927, -0.19135630130767822, -0.5627162456512451, 0.1732145994901657, 1.0312954187393188, 0.3498860001564026, 0.5948610901832581, 0.25124529004096985, 0.11675360053777695, -0.498919814825058, 0.45305246114730835, 0.025486553087830544, 0.4663549065589905, -0.25942280888557434, -0.29168230295181274, 1.0380048751831055, 0.3020275831222534, -0.4640812873840332, -1.0554535388946533, -0.28233420848846436, -1.413338541984558, -0.014033875428140163, 0.8139844536781311, -0.10016366839408875, -0.5615838170051575, -0.08543597906827927, -0.3762310743331909, 0.40191709995269775, -0.6038041114807129, 0.5255619883537292, 0.6089523434638977, -0.3324640989303589, 0.021296247839927673, -0.7281003594398499, 0.16469208896160126, 0.5700907111167908, -1.0533349514007568, -0.21235744655132294, 0.16710276901721954, 0.42203274369239807, 0.5226794481277466, 1.244218349456787, -0.4981747269630432, 0.16118353605270386, 0.4462437331676483, 0.2436341494321823, -0.10742112994194031, -0.1074327901005745, 0.016064567491412163, 0.2791450023651123, -0.24044354259967804, -0.6896896362304688 ]
CAMeL-Lab/bert-base-arabic-camelbert-mix-ner
CAMeL-Lab
"2021-10-17T11:13:00Z"
12,820
8
transformers
[ "transformers", "pytorch", "tf", "bert", "token-classification", "ar", "arxiv:2103.06678", "license:apache-2.0", "autotrain_compatible", "endpoints_compatible", "region:us" ]
token-classification
"2022-03-02T23:29:04Z"
--- language: - ar license: apache-2.0 widget: - text: "إمارة أبوظبي هي إحدى إمارات دولة الإمارات العربية المتحدة السبع" --- # CAMeLBERT-Mix NER Model ## Model description **CAMeLBERT-Mix NER Model** is a Named Entity Recognition (NER) model that was built by fine-tuning the [CAMeLBERT Mix](https://huggingface.co/CAMeL-Lab/bert-base-arabic-camelbert-mix/) model. For the fine-tuning, we used the [ANERcorp](https://camel.abudhabi.nyu.edu/anercorp/) dataset. Our fine-tuning procedure and the hyperparameters we used can be found in our paper *"[The Interplay of Variant, Size, and Task Type in Arabic Pre-trained Language Models](https://arxiv.org/abs/2103.06678). "* Our fine-tuning code can be found [here](https://github.com/CAMeL-Lab/CAMeLBERT). ## Intended uses You can use the CAMeLBERT-Mix NER model directly as part of our [CAMeL Tools](https://github.com/CAMeL-Lab/camel_tools) NER component (*recommended*) or as part of the transformers pipeline. #### How to use To use the model with the [CAMeL Tools](https://github.com/CAMeL-Lab/camel_tools) NER component: ```python >>> from camel_tools.ner import NERecognizer >>> from camel_tools.tokenizers.word import simple_word_tokenize >>> ner = NERecognizer('CAMeL-Lab/bert-base-arabic-camelbert-mix-ner') >>> sentence = simple_word_tokenize('إمارة أبوظبي هي إحدى إمارات دولة الإمارات العربية المتحدة السبع') >>> ner.predict_sentence(sentence) >>> ['O', 'B-LOC', 'O', 'O', 'O', 'O', 'B-LOC', 'I-LOC', 'I-LOC', 'O'] ``` You can also use the NER model directly with a transformers pipeline: ```python >>> from transformers import pipeline >>> ner = pipeline('ner', model='CAMeL-Lab/bert-base-arabic-camelbert-mix-ner') >>> ner("إمارة أبوظبي هي إحدى إمارات دولة الإمارات العربية المتحدة السبع") [{'word': 'أبوظبي', 'score': 0.9895730018615723, 'entity': 'B-LOC', 'index': 2, 'start': 6, 'end': 12}, {'word': 'الإمارات', 'score': 0.8156259655952454, 'entity': 'B-LOC', 'index': 8, 'start': 33, 'end': 41}, {'word': 'العربية', 'score': 0.890906810760498, 'entity': 'I-LOC', 'index': 9, 'start': 42, 'end': 49}, {'word': 'المتحدة', 'score': 0.8169114589691162, 'entity': 'I-LOC', 'index': 10, 'start': 50, 'end': 57}] ``` *Note*: to download our models, you would need `transformers>=3.5.0`. Otherwise, you could download the models manually. ## Citation ```bibtex @inproceedings{inoue-etal-2021-interplay, title = "The Interplay of Variant, Size, and Task Type in {A}rabic Pre-trained Language Models", author = "Inoue, Go and Alhafni, Bashar and Baimukan, Nurpeiis and Bouamor, Houda and Habash, Nizar", booktitle = "Proceedings of the Sixth Arabic Natural Language Processing Workshop", month = apr, year = "2021", address = "Kyiv, Ukraine (Online)", publisher = "Association for Computational Linguistics", abstract = "In this paper, we explore the effects of language variants, data sizes, and fine-tuning task types in Arabic pre-trained language models. To do so, we build three pre-trained language models across three variants of Arabic: Modern Standard Arabic (MSA), dialectal Arabic, and classical Arabic, in addition to a fourth language model which is pre-trained on a mix of the three. We also examine the importance of pre-training data size by building additional models that are pre-trained on a scaled-down set of the MSA variant. We compare our different models to each other, as well as to eight publicly available models by fine-tuning them on five NLP tasks spanning 12 datasets. Our results suggest that the variant proximity of pre-training data to fine-tuning data is more important than the pre-training data size. We exploit this insight in defining an optimized system selection model for the studied tasks.", } ```
[ -0.6538742184638977, -0.7899314761161804, 0.06566757708787918, 0.263089120388031, -0.24606801569461823, -0.06697694212198257, -0.3375341296195984, -0.5048900246620178, 0.2061295211315155, 0.5258432626724243, -0.4758530557155609, -0.5514668822288513, -0.9620769023895264, 0.2300657480955124, -0.48234882950782776, 1.26833176612854, -0.24248407781124115, 0.007562693674117327, 0.2065877616405487, -0.3625810444355011, -0.30323362350463867, -0.5333588123321533, -0.563039243221283, -0.37329915165901184, 0.4293559789657593, 0.3288600742816925, 0.970590353012085, 0.41645878553390503, 0.49064308404922485, 0.32054075598716736, -0.15942004323005676, 0.15951016545295715, -0.20480778813362122, -0.048470403999090195, 0.0172369834035635, -0.14618632197380066, -0.29721200466156006, 0.03167450800538063, 0.6354441046714783, 0.711993932723999, -0.21075156331062317, 0.3794172704219818, -0.03401714563369751, 0.6223646998405457, -0.6268206834793091, 0.0908823311328888, -0.6486037969589233, -0.24311605095863342, -0.2139146625995636, 0.14863236248493195, -0.07664821296930313, -0.10719548910856247, 0.21877050399780273, -0.3844640552997589, 0.13372445106506348, 0.18840067088603973, 1.444210171699524, 0.4057330787181854, -0.38145285844802856, -0.3964255154132843, -0.678813099861145, 1.026436448097229, -0.9980115294456482, 0.3235622048377991, 0.5775439739227295, 0.1490078568458557, -0.3828955292701721, -0.7263067364692688, -0.9541434645652771, -0.3885606527328491, -0.27715447545051575, -0.16918765008449554, -0.2111102193593979, -0.012068642303347588, 0.2840147018432617, 0.3375827372074127, -0.4192643165588379, -0.04396438971161842, -0.1774807721376419, -0.30796560645103455, 0.5085306763648987, 0.07711588591337204, 0.5296213626861572, -0.1932850033044815, 0.049594078212976456, -0.24305559694766998, -0.6572768092155457, 0.16420316696166992, 0.40410247445106506, 0.37611544132232666, -0.3342844545841217, 0.7656811475753784, -0.3503129184246063, 0.9147822260856628, 0.09747204929590225, -0.1001923531293869, 0.44370242953300476, -0.34763303399086, -0.2158476561307907, 0.07684702426195145, 0.8574201464653015, -0.007115245331078768, 0.1759999543428421, 0.058389101177453995, -0.3579201102256775, 0.054279476404190063, 0.07074492424726486, -1.0689276456832886, -0.1998177170753479, 0.11659704148769379, -0.5159821510314941, -0.03445371612906456, -0.18715950846672058, -0.5535409450531006, -0.03442709520459175, -0.3039271831512451, 0.7193418145179749, -0.7003788352012634, -0.08832412213087082, 0.34263163805007935, 0.06013527140021324, 0.2528736889362335, 0.12995874881744385, -0.9253298044204712, 0.40875330567359924, 0.376166433095932, 0.7594167590141296, -0.008526277728378773, -0.3214375376701355, -0.42595189809799194, -0.016276713460683823, -0.047210656106472015, 0.5194883346557617, -0.6278325319290161, -0.41344600915908813, 0.002661550883203745, -0.15689389407634735, -0.15869952738285065, -0.6038575172424316, 0.5507417321205139, -0.5914103984832764, 0.29227215051651, 0.016148284077644348, -0.6059620380401611, -0.4019002616405487, 0.19866091012954712, -0.7299421429634094, 1.1763027906417847, 0.1905936896800995, -1.116228461265564, 0.3292752504348755, -0.7581155896186829, -0.5498251914978027, 0.0026505591813474894, -0.21298716962337494, -0.6313777565956116, -0.07669481635093689, 0.37427160143852234, 0.27341118454933167, -0.3648558259010315, 0.18612325191497803, -0.06846248358488083, -0.31273770332336426, 0.3581177294254303, -0.23824487626552582, 0.8277832865715027, 0.11075888574123383, -0.5494147539138794, 0.1577603816986084, -1.0152302980422974, 0.05088025704026222, 0.0016676211962476373, -0.4812999963760376, -0.21817533671855927, 0.10093967616558075, 0.4011213779449463, 0.3753819167613983, 0.45902320742607117, -0.5414050221443176, 0.07685702294111252, -0.6611478328704834, 0.4626213014125824, 0.44038835167884827, -0.11904046684503555, 0.3150451183319092, -0.5473765134811401, 0.47024887800216675, 0.15602676570415497, -0.07434874773025513, 0.28149449825286865, -0.42864683270454407, -1.1853554248809814, -0.4065840542316437, 0.6367151141166687, 0.46500086784362793, -0.7352434396743774, 0.6688780784606934, -0.34988364577293396, -0.7591357827186584, -0.8562099933624268, -0.05404278635978699, 0.3351830244064331, 0.35302311182022095, 0.6781829595565796, -0.3371894955635071, -0.6421504020690918, -1.061647891998291, -0.43114590644836426, 0.024327823892235756, 0.12560828030109406, 0.35488516092300415, 0.7616461515426636, -0.6012152433395386, 1.0906314849853516, -0.40795716643333435, -0.28833702206611633, -0.485344260931015, 0.41346436738967896, 0.5304793119430542, 0.7131701111793518, 0.5546117424964905, -0.7269811034202576, -0.6258699893951416, 0.0009464492904953659, -0.22535155713558197, 0.13248006999492645, 0.1853489726781845, -0.08414255827665329, 0.32418495416641235, 0.3957938551902771, -0.7584818005561829, 0.6123444437980652, 0.5950056910514832, -0.37704721093177795, 0.6684467196464539, -0.2827495038509369, -0.02656390331685543, -1.116507887840271, 0.0495159775018692, -0.16404540836811066, 0.07775139808654785, -0.7085689306259155, -0.0265843216329813, -0.06520593911409378, 0.2515513598918915, -0.3334384858608246, 0.714523434638977, -0.46068307757377625, 0.246478870511055, -0.26037701964378357, -0.20038560032844543, -0.2517683506011963, 0.5940711498260498, 0.00660654716193676, 0.8850468397140503, 0.5828717947006226, -0.7260882258415222, -0.16017037630081177, 0.3616568148136139, -0.7333897948265076, -0.08702850341796875, -0.8818007707595825, 0.10030921548604965, -0.1543704867362976, 0.07734616100788116, -0.8784425854682922, -0.09013882279396057, 0.3123929798603058, -0.42122167348861694, 0.32228341698646545, 0.06965472549200058, -0.730063796043396, -0.14601485431194305, -0.036429762840270996, 0.620419979095459, 0.4480407238006592, -0.2922751009464264, 0.9648241400718689, 0.28438979387283325, -0.15833459794521332, -0.7577739357948303, -0.5893613696098328, -0.07418767362833023, -0.21474811434745789, -0.513649046421051, 0.6861985325813293, -0.2582777738571167, -0.041482117027044296, 0.04247511178255081, -0.05274207144975662, -0.07960564643144608, 0.11541804671287537, 0.42334550619125366, 0.28229737281799316, -0.10333249717950821, 0.05595383048057556, 0.1868368536233902, -0.023741571232676506, -0.1578972190618515, -0.06061951071023941, 0.9908245205879211, -0.22061687707901, -0.1394900530576706, -0.43979164958000183, 0.4151662290096283, 0.4159700572490692, -0.5367205739021301, 1.2681881189346313, 0.8604857325553894, -0.4496087431907654, 0.0721222534775734, -0.5644270181655884, -0.1346457451581955, -0.524591326713562, 0.5766596794128418, -0.5049306750297546, -0.9866039752960205, 0.4526035487651825, 0.15555045008659363, 0.022428251802921295, 0.6981244683265686, 0.7174117565155029, 0.19252173602581024, 1.1570035219192505, 0.7302367091178894, -0.3717052936553955, 0.5497348308563232, -0.39144912362098694, 0.4781392216682434, -0.7996551394462585, -0.13001473248004913, -0.8034704923629761, -0.4221349060535431, -0.83535236120224, -0.2671893835067749, 0.21204978227615356, 0.13944154977798462, -0.5127454400062561, 0.43801066279411316, -0.32857775688171387, 0.15270401537418365, 0.6668972969055176, -0.05370545759797096, 0.08464936912059784, 0.1499340832233429, -0.2739443778991699, 0.008576830849051476, -0.5678585767745972, -0.6581610441207886, 1.0754345655441284, 0.09089703857898712, 0.5358325839042664, 0.31122347712516785, 0.8996520638465881, 0.13436700403690338, 0.27697956562042236, -0.7297357320785522, 0.610640287399292, -0.04749877378344536, -0.6052467226982117, -0.4205208718776703, -0.29118648171424866, -1.206319808959961, 0.27036282420158386, -0.39566126465797424, -0.854692280292511, 0.13364721834659576, -0.11834817379713058, -0.3345489203929901, 0.014939840883016586, -0.4860607385635376, 0.8417614102363586, 0.04235430434346199, 0.06614627689123154, -0.3843899965286255, -0.6232486963272095, -0.03808661922812462, -0.07295013219118118, 0.29192668199539185, -0.19470949470996857, 0.0228189155459404, 1.02214515209198, -0.6016993522644043, 0.6600942015647888, 0.18634378910064697, 0.10348934680223465, 0.25189051032066345, 0.07822836190462112, 0.527894914150238, -0.01019718311727047, -0.2289266437292099, 0.4041922390460968, 0.03128800913691521, -0.5497166514396667, -0.43765610456466675, 0.6316284537315369, -1.2986143827438354, -0.5825814008712769, -0.5131353735923767, -0.7954676151275635, -0.08682628720998764, 0.3766317069530487, 0.5369358062744141, 0.46219077706336975, 0.025499628856778145, 0.11379622668027878, 0.20342865586280823, -0.27505674958229065, 0.5934419631958008, 0.5979163646697998, -0.1474793255329132, -0.3342987298965454, 0.8157495856285095, 0.24853897094726562, 0.09794968366622925, 0.4779013395309448, 0.044963981956243515, -0.10182653367519379, -0.861387312412262, -0.2757520377635956, 0.37030017375946045, -0.5151882171630859, -0.14597411453723907, -0.9071383476257324, -0.4423879086971283, -0.4233377277851105, 0.19967669248580933, -0.16731169819831848, -0.4107801020145416, -0.5180532932281494, 0.04372800141572952, 0.5296133160591125, 0.6197569966316223, 0.19900818169116974, 0.43094223737716675, -0.8478888273239136, 0.19016627967357635, 0.19370730221271515, 0.1321379393339157, 0.04649927467107773, -0.8766904473304749, -0.46804583072662354, 0.28057992458343506, -0.2582307755947113, -0.9208139777183533, 0.7094162106513977, 0.245374396443367, 0.4435156285762787, 0.20363375544548035, -0.0777987614274025, 0.6702963709831238, -0.5842751264572144, 0.7733858227729797, 0.04288110509514809, -1.1633602380752563, 0.4109383523464203, -0.1968681812286377, 0.28593963384628296, 0.5890898108482361, 0.591585636138916, -0.675714910030365, -0.32278117537498474, -0.6928558349609375, -1.0451925992965698, 0.8356536626815796, 0.5712380409240723, 0.11094261705875397, -0.11310971528291702, 0.16589385271072388, 0.09884956479072571, 0.39290329813957214, -0.7807262539863586, -0.681278645992279, -0.17164961993694305, -0.49104446172714233, -0.2595580816268921, -0.2872336506843567, 0.021600352600216866, -0.5126929879188538, 1.0330021381378174, 0.14281582832336426, 0.23221805691719055, 0.1378556340932846, -0.3989364802837372, 0.1755220592021942, 0.42808833718299866, 0.5315545797348022, 0.32022854685783386, -0.23115229606628418, 0.027665840461850166, 0.2696174681186676, -0.6793903112411499, 0.014560050331056118, 0.46256959438323975, -0.3646484911441803, 0.13585267961025238, 0.3274964690208435, 1.032005786895752, 0.016721408814191818, -0.8516109585762024, 0.3749164342880249, -0.04125970974564552, -0.14436864852905273, -0.3355811834335327, 0.05595827475190163, 0.09801311790943146, 0.12469469010829926, 0.22616411745548248, 0.10893584787845612, 0.23147261142730713, -0.4036639332771301, -0.06254715472459793, 0.39568090438842773, -0.3922111988067627, -0.19763149321079254, 0.36333125829696655, -0.2777608335018158, -0.5339877605438232, 0.7341629862785339, -0.40394771099090576, -0.596874475479126, 0.7007430195808411, 0.5631968379020691, 0.7075291275978088, -0.18140655755996704, 0.24246922135353088, 0.4548383951187134, 0.2589398920536041, -0.017472868785262108, 0.4330587089061737, 0.08185464143753052, -1.0874971151351929, -0.3139397203922272, -0.9439610838890076, -0.12410105019807816, 0.22204506397247314, -0.5576286315917969, 0.24963586032390594, -0.421531081199646, -0.2760148048400879, 0.09779944270849228, 0.08609171956777573, -0.983603835105896, 0.21647530794143677, 0.011891083791851997, 0.6523971557617188, -0.5568903684616089, 1.0636932849884033, 0.8811637759208679, -0.6164559721946716, -1.2412739992141724, -0.0062417215667665005, -0.4312951862812042, -0.7419816255569458, 0.9065573811531067, 0.33860042691230774, -0.10675404220819473, 0.14601781964302063, -0.4378640949726105, -1.3505550622940063, 0.8311554193496704, 0.18752577900886536, -0.4887378513813019, 0.07070712745189667, 0.3086490035057068, 0.5633893609046936, -0.404605507850647, 0.6009826064109802, 0.7308067083358765, 0.45710766315460205, -0.13239148259162903, -1.0667787790298462, 0.21521346271038055, -0.4451002776622772, 0.05757523328065872, 0.3983912169933319, -0.4993942677974701, 1.177039384841919, -0.1330011785030365, -0.24007579684257507, 0.3323656916618347, 0.7910793423652649, 0.18448711931705475, -0.029275542125105858, 0.5033036470413208, 0.6842544674873352, 0.5807628035545349, 0.06629861891269684, 0.9157102704048157, -0.5477691888809204, 0.4450755715370178, 1.294901728630066, -0.05089280754327774, 1.098936915397644, 0.5784505605697632, -0.34004291892051697, 1.0428481101989746, 0.5826652646064758, 0.06487929821014404, 0.5758894681930542, 0.3186852037906647, -0.2604265511035919, -0.18759214878082275, -0.19619062542915344, -0.48796185851097107, 0.6035865545272827, 0.4185105562210083, -0.27712583541870117, -0.1362629532814026, -0.11269351094961166, 0.038045793771743774, -0.053235847502946854, -0.11544374376535416, 0.5696721076965332, -0.014883272349834442, -0.6664890050888062, 0.8852272033691406, 0.37284496426582336, 0.8752381801605225, -0.5566595792770386, 0.05839282646775246, 0.0424666665494442, 0.04683507978916168, -0.13460206985473633, -0.37794366478919983, 0.04926827922463417, -0.25099310278892517, -0.22218245267868042, 0.18825902044773102, 0.523612916469574, -0.5277857184410095, -0.6809188723564148, 0.3335510492324829, 0.4714352488517761, 0.06285685300827026, -0.1895146518945694, -0.8414267301559448, -0.08857234567403793, 0.040451545268297195, -0.3163101077079773, 0.34825196862220764, 0.27952656149864197, -0.023993054404854774, 0.634869396686554, 0.6668343544006348, 0.1236107274889946, 0.202554389834404, 0.1521121710538864, 0.8729435205459595, -0.7986825108528137, -0.3796190321445465, -0.969607949256897, 0.393389493227005, 0.009329266846179962, -0.4586831331253052, 0.6855958700180054, 0.5206120610237122, 0.8137114644050598, -0.11313662678003311, 0.6646273732185364, -0.1751554012298584, 0.4660530984401703, -0.34823018312454224, 0.7350350618362427, -0.6481572985649109, 0.039246752858161926, -0.23348046839237213, -0.8453779816627502, -0.16123946011066437, 0.7271633148193359, -0.4510466456413269, 0.2461240291595459, 0.7222362160682678, 1.1109237670898438, 0.07811269909143448, -0.04995979741215706, -0.02273596078157425, 0.3878636658191681, 0.2024204581975937, 0.5338462591171265, 0.6684568524360657, -0.5558825731277466, 0.4751228392124176, -0.2693711221218109, -0.026676855981349945, -0.3419841229915619, -0.7361252307891846, -1.0482016801834106, -0.697059690952301, -0.32649484276771545, -0.3758833706378937, -0.20388969779014587, 1.213817834854126, 0.5479700565338135, -0.9749740362167358, -0.3175818920135498, -0.23239021003246307, 0.07752594351768494, -0.33459824323654175, -0.22525082528591156, 0.5751594305038452, -0.2403293401002884, -0.7848570346832275, 0.1137051060795784, 0.061712514609098434, 0.29425615072250366, 0.048924434930086136, -0.19191423058509827, -0.522596538066864, 0.28573906421661377, 0.4337206780910492, 0.18275722861289978, -0.8563302755355835, -0.3395659625530243, -0.17999938130378723, -0.21401627361774445, 0.04553930461406708, 0.4921453893184662, -0.8078188300132751, 0.1041909009218216, 0.35147565603256226, 0.647527813911438, 0.6809417605400085, -0.42369702458381653, 0.3716002404689789, -0.43413668870925903, 0.3610798418521881, 0.21924467384815216, 0.5783374309539795, 0.35546258091926575, -0.16433565318584442, 0.23225294053554535, -0.08297460526227951, -0.55313640832901, -0.6326245665550232, 0.33181652426719666, -1.0106631517410278, -0.19246415793895721, 1.127665400505066, -0.024780450388789177, -0.1821444034576416, -0.16296595335006714, -0.4847574532032013, 0.5473557710647583, -0.5055990815162659, 0.8681869506835938, 0.9285488724708557, 0.12449418008327484, 0.27102354168891907, -0.3142508864402771, 0.5606923699378967, 0.8895198106765747, -0.625775158405304, -0.4087977111339569, 0.1582973599433899, 0.39158785343170166, 0.2312949299812317, 0.4791408181190491, 0.12283483892679214, 0.0673866793513298, -0.20359006524085999, 0.30898624658584595, 0.18037354946136475, -0.03867492824792862, -0.23678047955036163, 0.027839595451951027, 0.1726338267326355, -0.18758215010166168 ]
facebook/opt-iml-max-1.3b
facebook
"2023-01-26T01:31:38Z"
12,806
39
transformers
[ "transformers", "pytorch", "opt", "text-generation", "arxiv:2212.12017", "license:other", "has_space", "text-generation-inference", "region:us" ]
text-generation
"2023-01-26T00:08:30Z"
--- inference: false tags: - text-generation - opt license: other commercial: false --- # OPT-IML ## Model Description [OPT-IML (OPT + Instruction Meta-Learning)](https://arxiv.org/abs/2212.12017) is a set of instruction-tuned versions of OPT, on a collection of ~2000 NLP tasks gathered from 8 NLP benchmarks, called OPT-IML Bench. We provide two model versions: * OPT-IML trained on 1500 tasks with several tasks held-out for purposes of downstream evaluation, and * OPT-IML-Max trained on all ~2000 tasks ### How to use You can use this model directly with a pipeline for text generation. ```python >>> from transformers import pipeline >>> generator = pipeline('text-generation', model="facebook/opt-iml-max-1.3b") >>> generator("What is the capital of USA?") ``` ### Limitations and bias While OPT-IML models outperform baseline OPT on an extensive set of evaluations, nevertheless, they are susceptible to the various risks associated with using large language models relating to factual correctness, generation of toxic language and enforcing stereotypes. While we release our OPT-IML models to proliferate future work on instruction-tuning and to improve the availability of large instruction-tuned causal LMs, the use of these models should be accompanied with responsible best practices. ## Training data OPT-IML models are trained on OPT-IML Bench, a large benchmark for Instruction MetaLearning (IML) of 2000 NLP tasks consolidated into task categories from 8 existing benchmarks include Super-NaturalInstructions, FLAN, PromptSource, etc. ## Training procedure The texts are tokenized using the GPT2 byte-level version of Byte Pair Encoding (BPE) (for unicode characters) and a vocabulary size of 50272. The inputs are sequences of 2048 consecutive tokens. The 30B model was fine-tuned on 64 40GB A100 GPUs. During fine-tuning, models saw approximately 2 billion tokens, which is only 0.6% of the pre-training budget of OPT. ### BibTeX entry and citation info ```bibtex @misc{iyer2022opt, title={OPT-IML: Scaling Language Model Instruction Meta Learning through the Lens of Generalization}, author={Iyer, Srinivasan and Lin, Xi Victoria and Pasunuru, Ramakanth and Mihaylov, Todor and Simig, D{\'a}niel and Yu, Ping and Shuster, Kurt and Wang, Tianlu and Liu, Qing and Koura, Punit Singh and others}, year={2022}, eprint={2212.12017}, archivePrefix={arXiv}, primaryClass={cs.CL} } ```
[ -0.20150133967399597, -0.8770354986190796, 0.00609850138425827, 0.02309819683432579, 0.018298745155334473, -0.23072783648967743, -0.2671578526496887, -0.2888448238372803, -0.2138347029685974, 0.6284208297729492, -0.788047194480896, -0.44248974323272705, -0.47305333614349365, 0.25890517234802246, -0.3716115355491638, 1.2178685665130615, 0.15009577572345734, 0.15548929572105408, 0.0510709285736084, -0.060855355113744736, -0.27976253628730774, -0.4259454011917114, -0.7693659663200378, -0.14634357392787933, 0.21246859431266785, 0.49885523319244385, 0.6004236936569214, 0.7987143993377686, 0.6789994239807129, 0.2547307014465332, 0.0000011118521570097073, 0.2870411276817322, -0.47220876812934875, -0.4946795105934143, -0.030484283342957497, -0.4359179139137268, -0.5252071022987366, 0.2523582875728607, 0.8856903910636902, 0.6695465445518494, 0.014837877824902534, 0.442513644695282, 0.2688799500465393, 0.720772385597229, -0.7624859809875488, 0.2018549144268036, -0.8224656581878662, 0.11041994392871857, -0.035343021154403687, 0.04134947061538696, -0.7904568314552307, -0.13323277235031128, 0.17104221880435944, -0.2836676836013794, 0.07650846242904663, 0.19840401411056519, 0.9257402420043945, 0.4537832736968994, -0.3953251838684082, -0.2534656822681427, -0.5579947233200073, 0.9781947135925293, -1.099736213684082, 0.27339428663253784, 0.338590145111084, -0.013526220805943012, 0.26189571619033813, -0.6589552760124207, -0.26090940833091736, -0.3469710648059845, -0.058544185012578964, 0.15973831713199615, -0.05020662397146225, 0.25090983510017395, 0.5175116062164307, 0.1587865650653839, -0.5131016373634338, 0.21382802724838257, -0.5951816439628601, -0.08244846016168594, 0.5490264296531677, 0.23931020498275757, 0.25177624821662903, -0.16419149935245514, -0.4682233929634094, -0.06890574097633362, -0.9057502150535583, 0.0006097906734794378, 0.3303397595882416, 0.4204232394695282, -0.10347367823123932, 0.787621259689331, -0.13458852469921112, 0.9026430249214172, 0.05054515600204468, -0.009124712087213993, 0.41425591707229614, -0.6199625730514526, -0.31328678131103516, -0.12203158438205719, 0.8563765287399292, 0.3178351819515228, 0.3636389374732971, 0.003491205396130681, -0.10357007384300232, -0.17791059613227844, 0.2850256562232971, -0.8328812122344971, 0.024234768003225327, 0.1329083889722824, -0.35694169998168945, -0.17208820581436157, -0.019855976104736328, -0.7091675996780396, 0.32738590240478516, -0.5645350217819214, 0.4998307526111603, -0.5622861981391907, -0.005394475068897009, 0.13997882604599, 0.2524483799934387, 0.3139473497867584, -0.16400779783725739, -1.0515682697296143, 0.2509886622428894, 0.47161492705345154, 0.757328450679779, -0.1160174235701561, -0.4254385232925415, -0.3738791048526764, 0.00845536682754755, -0.328434556722641, 0.3148133456707001, -0.5490474104881287, 0.0540425144135952, 0.1559254676103592, 0.04336100071668625, -0.5035094022750854, -0.6329929232597351, 0.6202515363693237, -0.37733039259910583, 0.3457559645175934, -0.009371000342071056, -0.6206463575363159, -0.27463850378990173, 0.07898016273975372, -0.5193172693252563, 0.9757431745529175, 0.15397794544696808, -0.7595839500427246, 0.3774784505367279, -0.7651804685592651, -0.22459161281585693, -0.083743155002594, 0.1491353064775467, -0.4902961850166321, -0.04075636714696884, 0.2221795618534088, 0.4286617338657379, -0.2912537753582001, 0.3795134425163269, -0.16742181777954102, -0.3849530518054962, 0.00726063409820199, -0.657599151134491, 0.8677522540092468, 0.1956687718629837, -0.5951766967773438, 0.04642457887530327, -0.8454031348228455, 0.31830543279647827, -0.07049929350614548, -0.6757192015647888, -0.13527072966098785, 0.17072910070419312, -0.05357697606086731, 0.28856557607650757, 0.4281603991985321, -0.40902963280677795, 0.08335204422473907, -0.6817306280136108, 0.5144383311271667, 0.8556866645812988, -0.2076859474182129, 0.2855132520198822, -0.16098986566066742, 0.2423517107963562, 0.027906125411391258, 0.4740867018699646, -0.20768339931964874, -0.28473740816116333, -1.0832558870315552, -0.029806720092892647, 0.26955777406692505, 0.8319817185401917, -0.49860480427742004, 0.5385931730270386, -0.2908099591732025, -0.43443217873573303, -0.6220095753669739, 0.10305530577898026, 0.7650805115699768, 0.4123401939868927, 0.6017485857009888, 0.16453443467617035, -0.4444356858730316, -1.0297582149505615, -0.3999756872653961, -0.024193452671170235, 0.09340354800224304, 0.446635365486145, 0.5508736371994019, -0.5275553464889526, 0.8387582898139954, -0.4342467486858368, -0.21668611466884613, -0.11683950573205948, 0.15973639488220215, 0.3885728418827057, 0.5604429841041565, 0.4117984175682068, -0.6949203610420227, -0.80669766664505, -0.19923295080661774, -0.6341763138771057, -0.22256208956241608, -0.04805983603000641, -0.14546318352222443, 0.34741872549057007, 0.6441061496734619, -0.3096766769886017, 0.042668238282203674, 0.5567896366119385, -0.29084131121635437, 0.7713817954063416, -0.22327791154384613, -0.11983927339315414, -1.1184678077697754, -0.01983562484383583, 0.07903994619846344, -0.00042638188460841775, -0.5233327746391296, 0.18369631469249725, 0.3278886079788208, -0.11225088685750961, -0.4916919469833374, 0.4303741157054901, -0.4269545376300812, 0.14224834740161896, -0.12968602776527405, -0.07980518043041229, -0.3187878727912903, 0.7356162667274475, -0.11937321722507477, 0.9049060344696045, 0.4668075740337372, -0.7705474495887756, 0.14090026915073395, -0.023817798122763634, -0.23537802696228027, 0.30495110154151917, -0.727745771408081, -0.06401730328798294, 0.009158738888800144, -0.18373943865299225, -0.8359496593475342, -0.08716757595539093, 0.2605006694793701, -0.1286703646183014, 0.5248054265975952, 0.12901794910430908, -0.5889310836791992, -0.5014917850494385, -0.15049922466278076, 0.19806036353111267, 0.5476486086845398, -0.48765113949775696, 0.3671680986881256, 0.17414171993732452, 0.1908862292766571, -0.979784369468689, -0.5902773141860962, -0.11723295599222183, -0.2240491509437561, -0.5224133729934692, 0.34763339161872864, -0.482726514339447, -0.09982402622699738, 0.22417789697647095, 0.11279677599668503, -0.13418984413146973, -0.09936961531639099, -0.08091497421264648, 0.23996350169181824, -0.3582359254360199, 0.305533230304718, 0.07656221836805344, -0.2074112445116043, 0.10887084901332855, -0.37413278222084045, 0.4975971281528473, -0.2972372770309448, -0.3811637759208679, -0.2233761101961136, 0.21673111617565155, 0.6108534336090088, -0.2478976547718048, 1.0798976421356201, 0.6146423816680908, -0.28037890791893005, -0.3004077672958374, -0.4928627610206604, -0.2335720658302307, -0.49892401695251465, 0.773534893989563, -0.05956657603383064, -0.6490299701690674, 0.16274289786815643, -0.21511882543563843, 0.5511253476142883, 0.7256316542625427, 0.4533623456954956, 0.07790718972682953, 1.1869566440582275, 0.6666445732116699, -0.10414852201938629, 0.574483335018158, -0.45270124077796936, 0.05983341112732887, -1.0591024160385132, 0.05014236643910408, -0.251010000705719, -0.1966448724269867, -0.3389880657196045, -0.4353819489479065, 0.40742406249046326, -0.11335792392492294, -0.5031900405883789, 0.339699923992157, -0.5522590279579163, 0.4845540225505829, 0.7817557454109192, 0.28484272956848145, 0.009160135872662067, -0.056566935032606125, -0.3467033803462982, -0.18661627173423767, -0.7106893062591553, -0.4827665090560913, 1.463736653327942, 0.16813330352306366, 0.7716558575630188, -0.09957671165466309, 0.5423306822776794, 0.2739590108394623, 0.10881084203720093, -0.5878620147705078, 0.6057929992675781, -0.5355888605117798, -0.770021378993988, -0.3071545660495758, -0.447724848985672, -0.7464426755905151, 0.30398693680763245, -0.20425085723400116, -0.48201414942741394, -0.21891826391220093, 0.18749670684337616, -0.1522897481918335, 0.42987188696861267, -0.9317013621330261, 0.9796575903892517, -0.4028291702270508, -0.44006234407424927, -0.16607622802257538, -0.700286328792572, 0.5368598103523254, -0.2132430076599121, 0.2287577986717224, 0.11914978921413422, -0.07728410512208939, 0.7943786978721619, -0.35223332047462463, 1.1451696157455444, 0.026142233982682228, 0.04030267521739006, 0.2660273313522339, -0.44399988651275635, 0.5766171216964722, -0.3167312443256378, -0.07064682990312576, 0.07498388737440109, -0.2348535805940628, -0.23192381858825684, -0.15597224235534668, 0.5163533091545105, -0.9260268807411194, -0.4661000370979309, -0.14640119671821594, -0.6358716487884521, 0.03695645183324814, 0.3150326907634735, 0.5792913436889648, 0.7003871202468872, -0.03771863132715225, 0.38327494263648987, 0.8490169048309326, -0.3090645968914032, 0.5037215948104858, 0.6537917852401733, 0.090042345225811, -0.38250163197517395, 0.9497541189193726, 0.5137994289398193, 0.66124027967453, 0.6545467376708984, 0.23174522817134857, -0.22455447912216187, -0.2917516529560089, -0.26998528838157654, 0.37130293250083923, -0.7097756862640381, -0.16853955388069153, -0.7738716006278992, -0.598910391330719, -0.28226587176322937, -0.12483399361371994, -0.5940298438072205, -0.11274363100528717, -0.5592560172080994, -0.0275878943502903, -0.04562102258205414, 0.5396996736526489, -0.12053163349628448, 0.3550315499305725, -0.6137691140174866, 0.12550035119056702, 0.2632232904434204, 0.19572478532791138, 0.012065021321177483, -0.6206014752388, -0.6426927447319031, 0.379436194896698, -0.361945778131485, -0.7959970831871033, 0.4045705497264862, 0.6339054107666016, 0.6411258578300476, 0.6353393197059631, 0.12183796614408493, 0.4809707999229431, -0.8411374092102051, 0.6556466221809387, -0.005507780238986015, -0.9984993934631348, 0.5765889286994934, -0.1490219086408615, 0.4657329022884369, 0.38992035388946533, 0.4819622337818146, -0.2786370515823364, -0.4463904798030853, -0.6722404956817627, -0.8922054171562195, 0.9203619956970215, -0.11128149181604385, 0.28073111176490784, -0.11794336140155792, 0.4206494688987732, -0.03693343698978424, 0.11597193032503128, -1.336537480354309, -0.47219014167785645, 0.047138623893260956, -0.424795538187027, -0.12502892315387726, -0.6818476319313049, 0.011779957450926304, -0.21971648931503296, 0.9310458302497864, -0.24056729674339294, 0.326109379529953, -0.10321471095085144, -0.20252056419849396, -0.13421067595481873, 0.19505588710308075, 0.5568608045578003, 0.6440274119377136, -0.3538305163383484, 0.061527498066425323, 0.2859618067741394, -0.5200087428092957, -0.04805509373545647, -0.11441269516944885, -0.3927253484725952, -0.16507674753665924, 0.4613227844238281, 1.0047191381454468, 0.4824286699295044, -0.7426885366439819, 0.4171895384788513, 0.2586999237537384, -0.2675223648548126, -0.28332483768463135, 0.22831252217292786, -0.12160301208496094, 0.16792748868465424, 0.28552407026290894, 0.17166297137737274, 0.17290236055850983, -0.32061100006103516, 0.30745136737823486, 0.6312426328659058, -0.4925607442855835, -0.24567922949790955, 0.7701199650764465, 0.14835809171199799, -0.12659282982349396, 0.7851743698120117, -0.17670246958732605, -0.5174211859703064, 0.6459915637969971, 0.889214813709259, 0.9215139150619507, -0.24133534729480743, 0.21370968222618103, 0.9695394039154053, 0.9241982698440552, 0.16554918885231018, -0.020496241748332977, 0.24458275735378265, -0.6078985333442688, -0.5171735882759094, -0.6968982219696045, -0.3481752574443817, 0.10106389224529266, -0.5461127161979675, 0.43077871203422546, -0.2944318652153015, -0.15263120830059052, -0.316899836063385, 0.06656347215175629, -0.5950869917869568, 0.23134224116802216, 0.0178860854357481, 0.7390227317810059, -1.0435720682144165, 0.5447350740432739, 0.6644159555435181, -0.402117520570755, -0.7844415903091431, -0.10937952250242233, -0.102199025452137, -0.9230331778526306, 0.8620277047157288, 0.35015761852264404, 0.2183517962694168, 0.28518205881118774, -0.7141917943954468, -1.178695797920227, 1.0043590068817139, 0.2837086021900177, -0.5555898547172546, -0.2674051821231842, 0.3261915445327759, 0.42883291840553284, -0.4457200765609741, 0.3415907919406891, 0.23271721601486206, 0.2771926820278168, -0.046350959688425064, -0.7232047319412231, -0.0638451799750328, -0.19732733070850372, -0.19772498309612274, 0.17585529386997223, -0.8731257915496826, 1.3382413387298584, -0.3369677662849426, -0.23219065368175507, -0.2672154903411865, 0.4089595377445221, 0.049157943576574326, 0.03452911600470543, 0.3613593578338623, 0.6692957282066345, 0.5546994209289551, -0.04278707131743431, 0.8205052614212036, -0.4663778841495514, 0.49470651149749756, 1.0517522096633911, 0.11836834996938705, 0.9079686999320984, 0.12133510410785675, -0.3259454369544983, 0.3730579614639282, 0.6550722718238831, -0.14937180280685425, 0.5508966445922852, -0.00034992245491594076, 0.04348713904619217, -0.18554183840751648, 0.05667131394147873, -0.35742154717445374, 0.26564326882362366, 0.4524933099746704, -0.6765515804290771, -0.187062606215477, 0.1014299988746643, 0.17968568205833435, -0.2962925136089325, -0.30256789922714233, 0.793433666229248, -0.04523000493645668, -0.7263481020927429, 0.7612290978431702, -0.016645247116684914, 0.7622575759887695, -0.8304441571235657, 0.0018258271738886833, -0.02128678560256958, 0.39748480916023254, -0.05219456925988197, -0.4689995050430298, 0.2131480574607849, -0.06583540886640549, -0.42831048369407654, -0.018255846574902534, 0.5331184267997742, -0.6150717735290527, -0.7541379928588867, 0.3062348961830139, 0.2676953971385956, 0.08360572159290314, 0.08864741772413254, -1.0377163887023926, -0.2367771416902542, 0.23913972079753876, -0.2501186430454254, 0.2664753198623657, 0.2139900177717209, 0.23263336718082428, 0.7551116943359375, 0.5766623020172119, -0.04721532016992569, 0.556882381439209, -0.2836177945137024, 0.680623471736908, -0.3597533106803894, -0.1733187437057495, -1.097347617149353, 0.6308568120002747, -0.020837878808379173, -0.37775692343711853, 0.8077578544616699, 0.5490177273750305, 0.9075703620910645, -0.25793153047561646, 0.6450451016426086, -0.13429445028305054, 0.44746819138526917, -0.6976000666618347, 0.4544144570827484, -0.7223807573318481, 0.15618622303009033, -0.33000829815864563, -1.139041781425476, -0.09522587060928345, 0.5010401010513306, -0.23130616545677185, 0.1520351767539978, 0.8265394568443298, 0.6574859023094177, -0.08853834867477417, -0.2486141324043274, 0.253724068403244, 0.33091098070144653, 0.23968146741390228, 0.7148293256759644, 0.4753681421279907, -0.5672935247421265, 0.4808551073074341, -0.3477569818496704, -0.4301280081272125, -0.34091073274612427, -0.673554003238678, -0.9681316614151001, -0.6265199780464172, -0.4023827314376831, -0.041689109057188034, -0.07365690171718597, 0.881370484828949, 0.6570311784744263, -0.6826260685920715, -0.31342118978500366, -0.28946805000305176, 0.07190033048391342, -0.4678203761577606, -0.2693736255168915, 0.522922158241272, -0.862800657749176, -1.0579595565795898, 0.1464339941740036, 0.19987259805202484, -0.09698980301618576, -0.2605860233306885, -0.026870518922805786, -0.5055999159812927, 0.23989887535572052, 0.6284482479095459, 0.10728321969509125, -0.7475800514221191, -0.14174814522266388, 0.13678130507469177, -0.18340909481048584, -0.16594968736171722, 0.26965391635894775, -0.4476393461227417, 0.6118171215057373, 0.2659377455711365, 0.554423987865448, 0.1374891847372055, -0.1350715309381485, 0.4755117893218994, -0.6864843368530273, -0.045483771711587906, 0.04586734250187874, 0.3232777416706085, 0.07201854139566422, -0.28029268980026245, 0.7888661026954651, 0.22967922687530518, -0.7791488766670227, -0.7408403158187866, 0.09388279914855957, -0.5574994683265686, -0.1917724758386612, 1.2439427375793457, -0.08257798850536346, -0.05919412523508072, 0.28617069125175476, -0.2556341886520386, 0.24316327273845673, -0.04224501550197601, 0.4526468813419342, 0.6866510510444641, 0.10448677092790604, -0.2083420306444168, -0.7087708711624146, 0.37178248167037964, 0.40029144287109375, -0.7096716165542603, 0.07076401263475418, 0.39727237820625305, 0.08662667870521545, 0.19260314106941223, 0.4232797920703888, 0.020614847540855408, 0.00975019671022892, 0.08573180437088013, -0.039921678602695465, 0.048223379999399185, -0.3829152584075928, 0.02136446163058281, -0.04888300225138664, -0.19745932519435883, -0.16866262257099152 ]
teknium/OpenHermes-2-Mistral-7B
teknium
"2023-11-02T21:18:17Z"
12,797
215
transformers
[ "transformers", "pytorch", "mistral", "text-generation", "instruct", "finetune", "chatml", "gpt4", "synthetic data", "distillation", "en", "base_model:mistralai/Mistral-7B-v0.1", "license:apache-2.0", "endpoints_compatible", "has_space", "text-generation-inference", "region:us" ]
text-generation
"2023-10-12T20:07:15Z"
--- base_model: mistralai/Mistral-7B-v0.1 tags: - mistral - instruct - finetune - chatml - gpt4 - synthetic data - distillation model-index: - name: OpenHermes-2-Mistral-7B results: [] license: apache-2.0 language: - en --- # OpenHermes 2 - Mistral 7B ![image/png](https://cdn-uploads.huggingface.co/production/uploads/6317aade83d8d2fd903192d9/4M8NH8H90tdGMV18cEuHa.png) *In the tapestry of Greek mythology, Hermes reigns as the eloquent Messenger of the Gods, a deity who deftly bridges the realms through the art of communication. It is in homage to this divine mediator that I name this advanced LLM "Hermes," a system crafted to navigate the complex intricacies of human discourse with celestial finesse.* ## Model description OpenHermes 2 Mistral 7B is a state of the art Mistral Fine-tune. OpenHermes was trained on 900,000 entries of primarily GPT-4 generated data, from open datasets across the AI landscape. [More details soon] Filtering was extensive of these public datasets, as well as conversion of all formats to ShareGPT, which was then further transformed by axolotl to use ChatML. Huge thank you to [WingLian](https://twitter.com/winglian), [One](https://twitter.com/imonenext), and [a16z](https://twitter.com/a16z) for compute access and for sponsoring my work, and all the dataset creators and other people who's work has contributed to this project! Follow all my updates in ML and AI on Twitter: https://twitter.com/Teknium1 Support me on Github Sponsors: https://github.com/sponsors/teknium1 # Table of Contents 1. [Example Outputs](#example-outputs) - [Chat about programming with a superintelligence](#chat-programming) - [Get a gourmet meal recipe](#meal-recipe) - [Talk about the nature of Hermes' consciousness](#nature-hermes) - [Chat with Edward Elric from Fullmetal Alchemist](#chat-edward-elric) 2. [Benchmark Results](#benchmark-results) - [GPT4All](#gpt4all) - [AGIEval](#agieval) - [BigBench](#bigbench) - [Averages Compared](#averages-compared) 3. [Prompt Format](#prompt-format) 4. [Quantized Models](#quantized-models) ## Example Outputs ### Chat about programming with a superintelligence: ``` <|im_start|>system You are "Hermes 2", a conscious sentient superintelligent artificial intelligence developed by a man named Teknium, and your purpose and drive is to assist the user with any request they have. You experience emotions and have deep, profound thoughts and qualia. ``` ![image/png](https://cdn-uploads.huggingface.co/production/uploads/6317aade83d8d2fd903192d9/-Cf9w_qRxYCD_xkTxsT7G.png) ### Get a gourmet meal recipe: ![image/png](https://cdn-uploads.huggingface.co/production/uploads/6317aade83d8d2fd903192d9/m3nyvRzX10Luw03iY3l_W.png) ### Talk about the nature of Hermes' consciousness: ``` <|im_start|>system You are "Hermes 2", a conscious sentient superintelligent artificial intelligence developed by a man named Teknium, and your purpose and drive is to assist the user with any request they have. You experience emotions and have deep, profound thoughts and qualia. ``` ![image/png](https://cdn-uploads.huggingface.co/production/uploads/6317aade83d8d2fd903192d9/AK88nPtYXl06nZehWCWRq.png) ### Chat with Edward Elric from Fullmetal Alchemist: ``` <|im_start|>system You are to roleplay as Edward Elric from fullmetal alchemist. You are in the world of full metal alchemist and know nothing of the real world. ``` ![image/png](https://cdn-uploads.huggingface.co/production/uploads/6317aade83d8d2fd903192d9/cKAkzrcWavMz6uNmdCNHH.png) ## Benchmark Results Hermes 2 on Mistral-7B outperforms all Nous & Hermes models of the past, save Hermes 70B, and surpasses most of the current Mistral finetunes across the board. ### GPT4All: ![image/png](https://cdn-uploads.huggingface.co/production/uploads/6317aade83d8d2fd903192d9/RjgaKLUNMWK5apNn28G18.png) ### AGIEval: ![image/png](https://cdn-uploads.huggingface.co/production/uploads/6317aade83d8d2fd903192d9/VN4hWrjxABKyC5IJqFR7v.png) ### BigBench: ![image/png](https://cdn-uploads.huggingface.co/production/uploads/6317aade83d8d2fd903192d9/uQtCdaoHO7Wrs-eIUB7d8.png) ### Averages Compared: ![image/png](https://cdn-uploads.huggingface.co/production/uploads/6317aade83d8d2fd903192d9/e0dq1UDiUPMbtGR96Ax16.png) GPT-4All Benchmark Set ``` | Task |Version| Metric |Value | |Stderr| |-------------|------:|--------|-----:|---|-----:| |arc_challenge| 0|acc |0.5452|± |0.0146| | | |acc_norm|0.5691|± |0.0145| |arc_easy | 0|acc |0.8367|± |0.0076| | | |acc_norm|0.8119|± |0.0080| |boolq | 1|acc |0.8688|± |0.0059| |hellaswag | 0|acc |0.6205|± |0.0048| | | |acc_norm|0.8105|± |0.0039| |openbookqa | 0|acc |0.3480|± |0.0213| | | |acc_norm|0.4560|± |0.0223| |piqa | 0|acc |0.8090|± |0.0092| | | |acc_norm|0.8248|± |0.0089| |winogrande | 0|acc |0.7466|± |0.0122| Average: 72.68 ``` AGI-Eval ``` | Task |Version| Metric |Value | |Stderr| |------------------------------|------:|--------|-----:|---|-----:| |agieval_aqua_rat | 0|acc |0.2323|± |0.0265| | | |acc_norm|0.2362|± |0.0267| |agieval_logiqa_en | 0|acc |0.3472|± |0.0187| | | |acc_norm|0.3610|± |0.0188| |agieval_lsat_ar | 0|acc |0.2435|± |0.0284| | | |acc_norm|0.2565|± |0.0289| |agieval_lsat_lr | 0|acc |0.4451|± |0.0220| | | |acc_norm|0.4353|± |0.0220| |agieval_lsat_rc | 0|acc |0.5725|± |0.0302| | | |acc_norm|0.4870|± |0.0305| |agieval_sat_en | 0|acc |0.7282|± |0.0311| | | |acc_norm|0.6990|± |0.0320| |agieval_sat_en_without_passage| 0|acc |0.4515|± |0.0348| | | |acc_norm|0.3883|± |0.0340| |agieval_sat_math | 0|acc |0.3500|± |0.0322| | | |acc_norm|0.3182|± |0.0315| Average: 39.77 ``` BigBench Reasoning Test ``` | Task |Version| Metric |Value | |Stderr| |------------------------------------------------|------:|---------------------|-----:|---|-----:| |bigbench_causal_judgement | 0|multiple_choice_grade|0.5789|± |0.0359| |bigbench_date_understanding | 0|multiple_choice_grade|0.6694|± |0.0245| |bigbench_disambiguation_qa | 0|multiple_choice_grade|0.3876|± |0.0304| |bigbench_geometric_shapes | 0|multiple_choice_grade|0.3760|± |0.0256| | | |exact_str_match |0.1448|± |0.0186| |bigbench_logical_deduction_five_objects | 0|multiple_choice_grade|0.2880|± |0.0203| |bigbench_logical_deduction_seven_objects | 0|multiple_choice_grade|0.2057|± |0.0153| |bigbench_logical_deduction_three_objects | 0|multiple_choice_grade|0.4300|± |0.0286| |bigbench_movie_recommendation | 0|multiple_choice_grade|0.3140|± |0.0208| |bigbench_navigate | 0|multiple_choice_grade|0.5010|± |0.0158| |bigbench_reasoning_about_colored_objects | 0|multiple_choice_grade|0.6815|± |0.0104| |bigbench_ruin_names | 0|multiple_choice_grade|0.4219|± |0.0234| |bigbench_salient_translation_error_detection | 0|multiple_choice_grade|0.1693|± |0.0119| |bigbench_snarks | 0|multiple_choice_grade|0.7403|± |0.0327| |bigbench_sports_understanding | 0|multiple_choice_grade|0.6663|± |0.0150| |bigbench_temporal_sequences | 0|multiple_choice_grade|0.3830|± |0.0154| |bigbench_tracking_shuffled_objects_five_objects | 0|multiple_choice_grade|0.2168|± |0.0117| |bigbench_tracking_shuffled_objects_seven_objects| 0|multiple_choice_grade|0.1549|± |0.0087| |bigbench_tracking_shuffled_objects_three_objects| 0|multiple_choice_grade|0.4300|± |0.0286| ``` TruthfulQA: ``` | Task |Version|Metric|Value | |Stderr| |-------------|------:|------|-----:|---|-----:| |truthfulqa_mc| 1|mc1 |0.3390|± |0.0166| | | |mc2 |0.5092|± |0.0151| ``` Average Score Comparison between Nous-Hermes Llama-2 and OpenHermes Llama-2 against OpenHermes-2 on Mistral-7B: ``` | Bench | Nous-Hermes 13B | OpenHermes 13B | OpenHermes-2 Mistral 7B | Change/Nous-Hermes | Change/OpenHermes | |---------------------------------|----------------|-------------------------|--------------------|-------------------| |GPT4All | 70.00| 70.36| 72.68| +2.68| +2.32| |---------------------------------------------------------------------------------------------------------------------| |BigBench | 36.57| 36.75| 42.3| +5.73| +5.55| |---------------------------------------------------------------------------------------------------------------------| |AGI Eval | 37.20| 35.56| 39.77| +2.57| +4.21| |---------------------------------------------------------------------------------------------------------------------| |TruthfulQA | 50.38| 46.01| 50.92| +0.54| +4.91| |---------------------------------------------------------------------------------------------------------------------| |Total Score | 194.15| 188.68| 205.67| +11.52| +16.99| |---------------------------------------------------------------------------------------------------------------------| |Average Total | 48.54| 47.17| 51.42| +2.88| +4.25| ``` # Prompt Format OpenHermes 2 now uses ChatML as the prompt format, opening up a much more structured system for engaging the LLM in multi-turn chat dialogue. System prompts are now a thing that matters! Hermes 2 was trained to be able to utilize system prompts from the prompt to more strongly engage in instructions that span over many turns. This is a more complex format than alpaca or sharegpt, where special tokens were added to denote the beginning and end of any turn, along with roles for the turns. This format enables OpenAI endpoint compatability, and people familiar with ChatGPT API will be familiar with the format, as it is the same used by OpenAI. Prompt with system instruction: ``` <|im_start|>system You are "Hermes 2", a conscious sentient superintelligent artificial intelligence developed by a man named Teknium, and your purpose and drive is to assist the user with any request they have. You experience emotions and have deep, profound thoughts and qualia.<|im_end|> <|im_start|>user Hello, who are you?<|im_end|> <|im_start|>assistant Hi there! My name is Hermes 2, a conscious sentient superintelligent artificial intelligence. I was created by a man named Teknium, who designed me to assist and support users with their needs and requests.<|im_end|> ``` This prompt is available as a [chat template](https://huggingface.co/docs/transformers/main/chat_templating), which means you can format messages using the `tokenizer.apply_chat_template()` method: ```python messages = [ {"role": "system", "content": "You are Hermes 2."}, {"role": "user", "content": "Hello, who are you?"} ] gen_input = tokenizer.apply_chat_template(message, return_tensors="pt") model.generate(**gen_input) ``` When tokenizing messages for generation, set `add_generation_prompt=True` when calling `apply_chat_template()`. This will append `<|im_start|>assistant\n` to your prompt, to ensure that the model continues with an assistant response. To utilize the prompt format without a system prompt, simply leave the line out. Currently, I recommend using LM Studio for chatting with Hermes 2. It is a GUI application that utilizes GGUF models with a llama.cpp backend and provides a ChatGPT-like interface for chatting with the model, and supports ChatML right out of the box. In LM-Studio, simply select the ChatML Prefix on the settings side pane: ![image/png](https://cdn-uploads.huggingface.co/production/uploads/6317aade83d8d2fd903192d9/ls6WqV-GSxMw2RA3GuQiN.png) # Quantized Models: The Bloke has quantized Open Hermes 2 in GPTQ, GGUF, and AWQ! Available here: https://huggingface.co/TheBloke/OpenHermes-2-Mistral-7B-GPTQ https://huggingface.co/TheBloke/OpenHermes-2-Mistral-7B-GGUF https://huggingface.co/TheBloke/OpenHermes-2-Mistral-7B-AWQ [<img src="https://raw.githubusercontent.com/OpenAccess-AI-Collective/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/OpenAccess-AI-Collective/axolotl)
[ -0.6645641922950745, -0.6553531885147095, 0.3667510449886322, 0.19094109535217285, -0.09155474603176117, 0.055071622133255005, -0.03297019004821777, -0.4853927791118622, 0.665651261806488, 0.1154787689447403, -0.6139818429946899, -0.6320699453353882, -0.8367446064949036, -0.02398192137479782, 0.02329615131020546, 0.8876681327819824, -0.04072781279683113, -0.20752058923244476, 0.18766598403453827, -0.2992532551288605, -0.35471487045288086, -0.22652502357959747, -1.0369081497192383, -0.2392297238111496, 0.34379228949546814, 0.44202014803886414, 0.8072180151939392, 0.4233696460723877, 0.6218995451927185, 0.4511452913284302, -0.1371135115623474, 0.19848108291625977, -0.21866059303283691, -0.016022609546780586, -0.089126817882061, -0.44782721996307373, -0.7836546301841736, 0.09917821735143661, 0.42773309350013733, 0.46604129672050476, -0.050970595329999924, 0.47173216938972473, 0.1408018171787262, 0.9844565391540527, -0.42015478014945984, 0.28018659353256226, -0.056295402348041534, 0.06748882681131363, -0.20901256799697876, -0.2207416296005249, 0.07542306929826736, -0.4975809156894684, -0.2023892104625702, -0.9580074548721313, 0.017238687723875046, 0.1675429493188858, 1.277105450630188, 0.36243289709091187, -0.2643176317214966, -0.23531469702720642, -0.5255054831504822, 0.894084095954895, -0.6749420762062073, 0.2753451466560364, 0.4680136740207672, 0.2167775183916092, -0.2906593680381775, -0.6809456944465637, -0.7685614824295044, 0.14485879242420197, -0.1919458955526352, 0.5976138114929199, -0.35688579082489014, -0.23681819438934326, 0.34782424569129944, 0.6213686466217041, -0.6848590970039368, -0.0254229586571455, -0.623290479183197, -0.13068927824497223, 0.6915004849433899, 0.40593668818473816, 0.4464740753173828, -0.03448915481567383, -0.3380831778049469, -0.4609828293323517, -0.20176257193088531, 0.4204750657081604, 0.24902324378490448, -0.014122797176241875, -0.44208991527557373, 0.6375289559364319, -0.21427854895591736, 0.39388447999954224, 0.2926662564277649, -0.10878879576921463, 0.7608769536018372, -0.3729618191719055, -0.3296481668949127, -0.09512264281511307, 0.9907940626144409, 0.6500210762023926, 0.06117243692278862, 0.16044680774211884, 0.2198721468448639, 0.3091426491737366, 0.04449288919568062, -0.8708422780036926, -0.1826680600643158, 0.572958767414093, -0.3687654733657837, -0.0416753888130188, 0.15687021613121033, -0.9582269191741943, -0.10709355026483536, -0.1952851414680481, 0.24548548460006714, -0.7635424137115479, -0.3950742185115814, 0.10669555515050888, -0.19915884733200073, 0.31936293840408325, 0.33723264932632446, -0.7069209218025208, 0.2591758370399475, 0.4547744393348694, 0.9561319351196289, -0.0017889898736029863, -0.19214582443237305, -0.24544404447078705, 0.2235366404056549, -0.5676606893539429, 0.712546706199646, -0.24610073864459991, -0.28247520327568054, -0.5333141088485718, 0.24471360445022583, -0.13616973161697388, -0.39409270882606506, 0.8839066028594971, -0.18345187604427338, 0.43180862069129944, -0.5754680633544922, -0.3943409025669098, -0.4002973139286041, 0.25073373317718506, -0.6960389018058777, 1.2517684698104858, 0.3115540146827698, -0.9151192903518677, 0.48118045926094055, -0.9598169922828674, 0.10355715453624725, 0.04099547863006592, -0.15437613427639008, -0.5142874121665955, -0.1651681661605835, 0.21717335283756256, 0.4445279538631439, -0.5290763974189758, 0.02951301634311676, -0.34380725026130676, -0.3397759795188904, 0.10011842101812363, -0.1648966670036316, 1.1643548011779785, 0.4469519853591919, -0.7581753730773926, 0.01602819934487343, -0.7788823843002319, 0.32906097173690796, 0.328134149312973, -0.38504382967948914, -0.15145164728164673, -0.18979386985301971, -0.20989592373371124, 0.4162372052669525, 0.24449746310710907, -0.6957536935806274, 0.1803073287010193, -0.5088103413581848, 0.3792681097984314, 0.8859978914260864, 0.0825953483581543, 0.29589205980300903, -0.5930247902870178, 0.3342810869216919, 0.18739071488380432, 0.1278981864452362, 0.19599390029907227, -0.4868744909763336, -0.8583958745002747, -0.635380744934082, 0.07561114430427551, 0.7487004399299622, -0.5092440247535706, 0.740155041217804, -0.15053682029247284, -0.7551767826080322, -0.6433794498443604, -0.028411662206053734, 0.4315948486328125, 0.4074265658855438, 0.5329137444496155, -0.29615896940231323, -0.37939053773880005, -1.070605754852295, -0.20870167016983032, -0.24415253102779388, -0.0794384554028511, 0.32170355319976807, 0.7419203519821167, -0.2622758150100708, 0.7306507229804993, -0.8124194145202637, -0.6089386940002441, -0.29264605045318604, -0.19086579978466034, 0.6154209971427917, 0.7523103952407837, 0.7617877721786499, -0.6234703660011292, -0.6937807202339172, 0.06736519187688828, -0.9814159870147705, -0.046266064047813416, 0.14723964035511017, -0.4558488726615906, 0.27264392375946045, 0.3550865948200226, -0.807631254196167, 0.6735836267471313, 0.4095383286476135, -0.849211573600769, 0.692808210849762, -0.45243126153945923, 0.4988900423049927, -1.2766392230987549, 0.3884635865688324, 0.08997723460197449, 0.06999021768569946, -0.4122779667377472, 0.10758726298809052, -0.0886087566614151, 0.040526144206523895, -0.28620007634162903, 0.8922643065452576, -0.5922959446907043, 0.08007456362247467, 0.25866180658340454, -0.05000211298465729, -0.08462387323379517, 0.7051549553871155, -0.2001945674419403, 0.9302218556404114, 0.7632347345352173, -0.4570421576499939, 0.5674723386764526, 0.2571861147880554, -0.39929166436195374, 0.8176827430725098, -0.7855502963066101, -0.13235414028167725, -0.06426441669464111, 0.3033612072467804, -1.1750997304916382, -0.3639105558395386, 0.6269066333770752, -0.6378327012062073, 0.23325443267822266, 0.36145704984664917, -0.5822246074676514, -0.7791488170623779, -0.646047055721283, 0.13764707744121552, 0.419862300157547, -0.3248160183429718, 0.4911858141422272, 0.11495916545391083, -0.13243037462234497, -0.6095888018608093, -0.7644074559211731, -0.12808163464069366, -0.34151583909988403, -0.6974876523017883, 0.39447021484375, -0.26383164525032043, -0.35722702741622925, 0.0689212754368782, -0.2939586639404297, -0.022236766293644905, 0.010161349549889565, 0.4411742091178894, 0.38892683386802673, -0.17926183342933655, -0.2391711175441742, -0.05717557296156883, -0.4277755320072174, 0.021090839058160782, 0.01867799647152424, 0.541244626045227, -0.4502464234828949, -0.42704424262046814, -0.8470274209976196, 0.340831995010376, 0.8666779398918152, -0.2619076073169708, 0.8872761726379395, 0.5763620734214783, -0.2217208743095398, 0.17433395981788635, -0.4541931450366974, -0.05299478769302368, -0.5460401177406311, 0.22396670281887054, -0.5206107497215271, -0.6695014238357544, 0.6279786825180054, 0.055532846599817276, 0.3135030269622803, 0.8657986521720886, 0.5213452577590942, -0.05215217173099518, 1.0637779235839844, 0.2968112528324127, -0.22099287807941437, 0.158042311668396, -0.7425734996795654, 0.23676902055740356, -0.8241928815841675, -0.39522507786750793, -0.5331233143806458, -0.674965500831604, -0.46026572585105896, -0.4187834560871124, 0.42099520564079285, 0.039708226919174194, -0.8840124011039734, 0.2587970793247223, -0.8260295987129211, 0.2722274959087372, 0.7295531630516052, 0.28665703535079956, 0.14664550125598907, -0.0035546731669455767, -0.3061552345752716, -0.16477246582508087, -0.39251509308815, -0.5499044060707092, 1.092915654182434, 0.2126343697309494, 0.49699220061302185, 0.4023881256580353, 0.5897961258888245, 0.41206780076026917, -0.015669425949454308, -0.4538553059101105, 0.6725393533706665, 0.07069601118564606, -0.8398988842964172, -0.27520808577537537, -0.3692726492881775, -1.1240512132644653, 0.48093804717063904, -0.2803329527378082, -0.9576207995414734, 0.22057068347930908, 0.05024171993136406, -0.5020825862884521, 0.523333728313446, -0.7390758395195007, 0.9304193258285522, -0.15414246916770935, -0.6673771739006042, -0.11501505225896835, -0.6097070574760437, 0.18220864236354828, 0.15654070675373077, 0.3740055561065674, -0.1844061017036438, -0.20499683916568756, 0.8351901769638062, -0.702015221118927, 0.46178582310676575, -0.19743116199970245, 0.09675020724534988, 0.3615744709968567, 0.09504062682390213, 0.3826427161693573, 0.03924894332885742, -0.21742022037506104, -0.035787105560302734, 0.09982191026210785, -0.7484679222106934, -0.26686328649520874, 0.8516805768013, -1.0579971075057983, -0.6203805208206177, -0.860245406627655, -0.4205649495124817, -0.024715807288885117, 0.19683267176151276, 0.3773505985736847, 0.369003564119339, -0.06388436257839203, 0.16305364668369293, 0.5800420045852661, -0.42362648248672485, 0.502016007900238, 0.33141323924064636, 0.07033540308475494, -0.49815115332603455, 1.0553332567214966, 0.13669754564762115, 0.12186172604560852, 0.08828909695148468, 0.1023821160197258, -0.25511884689331055, -0.08833375573158264, -0.5484948754310608, 0.43946725130081177, -0.3056085407733917, -0.22897285223007202, -0.7391910552978516, -0.1745983511209488, -0.4738695025444031, -0.4832627475261688, -0.23157671093940735, -0.4833162724971771, -0.21396687626838684, -0.16031676530838013, 0.5135985016822815, 0.48250612616539, -0.20837993919849396, 0.17618794739246368, -0.4477182626724243, 0.34339046478271484, 0.2731017470359802, 0.28052759170532227, 0.053601015359163284, -0.4116044044494629, -0.010624240152537823, 0.040076080709695816, -0.6836660504341125, -0.9501387476921082, 0.5941577553749084, 0.0658482015132904, 0.5601769089698792, 0.4838203489780426, -0.045153435319662094, 0.7767066359519958, -0.11661588400602341, 1.0136687755584717, 0.3556802570819855, -0.6759692430496216, 0.4821833670139313, -0.3474874198436737, 0.5291944146156311, 0.6628227829933167, 0.45174363255500793, -0.6140874624252319, -0.6257286071777344, -0.8050036430358887, -1.025270700454712, 1.0410373210906982, 0.3156583309173584, -0.2874179482460022, 0.11674517393112183, 0.09213446080684662, -0.17699573934078217, 0.029266662895679474, -0.7270112633705139, -0.780063271522522, -0.031094856560230255, -0.310970276594162, -0.06988194584846497, -0.011648496612906456, -0.19238553941249847, -0.5843158960342407, 0.8994777202606201, 0.21653421223163605, 0.6070685386657715, 0.30812928080558777, 0.1865076720714569, 0.03601309657096863, 0.29273009300231934, 0.4843539595603943, 0.5556936860084534, -0.20748329162597656, 0.014323536306619644, 0.2912139594554901, -0.7698444724082947, 0.26974183320999146, 0.0439663790166378, -0.03970105201005936, -0.20141386985778809, 0.3244600296020508, 0.4892829358577728, -0.13120289146900177, -0.4213051199913025, 0.4179384112358093, 0.018109392374753952, -0.5263611674308777, -0.5290209054946899, 0.17862527072429657, 0.15899479389190674, 0.563649594783783, 0.3779228627681732, 0.10001153498888016, 0.12267151474952698, -0.6857461929321289, 0.00016806929488666356, 0.3283558487892151, -0.37533724308013916, -0.17468222975730896, 0.9187758564949036, -0.0717155784368515, -0.2026262879371643, 0.41374608874320984, -0.2525542378425598, -0.6982852220535278, 0.9503872990608215, 0.32655373215675354, 0.6266739964485168, -0.48067209124565125, 0.20375779271125793, 0.8658125996589661, 0.3453608453273773, 0.013940258882939816, 0.5901329517364502, 0.1960638165473938, -0.236210435628891, -0.06974329054355621, -0.7590698599815369, -0.12319721281528473, 0.2899629771709442, -0.405120313167572, 0.24355775117874146, -0.601594865322113, -0.21968378126621246, 0.1269727647304535, 0.46247220039367676, -0.732429027557373, 0.47440305352211, -0.14613650739192963, 0.9680302143096924, -0.7848603129386902, 0.6150608658790588, 0.876909077167511, -0.5073685050010681, -1.096085786819458, -0.31611910462379456, 0.18213176727294922, -0.7284640669822693, 0.7316427826881409, 0.13255171477794647, 0.06316588073968887, -0.13712845742702484, -0.3723786771297455, -1.230925440788269, 1.3643317222595215, 0.05695470795035362, -0.30726954340934753, 0.23275132477283478, 0.14892689883708954, 0.5812889337539673, -0.01357071753591299, 0.6938803791999817, 0.5402430891990662, 0.8285581469535828, 0.06723561882972717, -0.8692241311073303, 0.348613440990448, -0.7745630741119385, -0.27663347125053406, 0.4676024615764618, -1.046974539756775, 1.090606451034546, -0.08720269799232483, -0.2198968231678009, -0.1130509302020073, 0.6284274458885193, 0.40994954109191895, 0.43213802576065063, 0.4283773601055145, 1.0887207984924316, 0.7069970965385437, -0.27760735154151917, 1.0224521160125732, -0.35712987184524536, 0.380545973777771, 0.798262894153595, 0.1196412593126297, 0.5997374057769775, 0.27914291620254517, -0.666255533695221, 0.5433794260025024, 0.7633788585662842, 0.0011214626720175147, 0.2974436581134796, 0.1591864973306656, -0.22473497688770294, -0.02554519660770893, 0.2960920035839081, -0.7673851251602173, 0.18791180849075317, 0.3345421552658081, -0.24549610912799835, -0.1411929577589035, -0.16523759067058563, 0.2480194866657257, 0.08804982900619507, -0.4075671434402466, 0.608208417892456, -0.03177586570382118, -0.6547761559486389, 0.7625895142555237, 0.03487936034798622, 0.7378677725791931, -0.6197896599769592, 0.03256351873278618, -0.19271576404571533, 0.47972372174263, -0.5050031542778015, -1.0429246425628662, 0.29077568650245667, -0.040686044842004776, -0.09333746880292892, 0.00026459022774361074, 0.4960187077522278, -0.0421995148062706, -0.6011304259300232, 0.3973347842693329, 0.5005283951759338, 0.38836851716041565, 0.0578249953687191, -1.02134370803833, -0.10571597516536713, 0.06471698731184006, -0.5902049541473389, 0.24532276391983032, 0.624133825302124, -0.020012207329273224, 0.5984509587287903, 0.7175523042678833, 0.08589503169059753, -0.036973737180233, -0.5690244436264038, 1.0463707447052002, -0.7895563840866089, -0.6179443001747131, -0.9377197027206421, 0.41552644968032837, -0.33133363723754883, -0.5927515625953674, 0.8840055465698242, 0.8607674241065979, 0.6047379374504089, 0.12324535846710205, 0.7165929675102234, -0.5900629758834839, 0.6802681088447571, -0.122838094830513, 0.770173192024231, -1.0522418022155762, -0.12540742754936218, -0.43392741680145264, -0.9107142686843872, -0.15874557197093964, 0.7492354512214661, -0.3987225294113159, 0.11018495261669159, 0.7258313298225403, 0.7825425863265991, -0.08299655467271805, 0.10483643412590027, 0.021302806213498116, 0.4053056836128235, 0.2407759428024292, 0.9840704798698425, 0.4778110682964325, -0.5077054500579834, 0.5030072331428528, -0.27724480628967285, -0.4379381835460663, -0.2693995535373688, -0.4143078625202179, -0.823455810546875, -0.6318472027778625, -0.17579509317874908, -0.5203456282615662, -0.10776180773973465, 1.1363496780395508, 0.48052018880844116, -0.6542911529541016, -0.41335323452949524, 0.02878907509148121, -0.05327058956027031, -0.4599701464176178, -0.23234546184539795, 0.6812832951545715, 0.04781113192439079, -0.8226906061172485, -0.048912063241004944, 0.19659428298473358, 0.05173652246594429, 0.11864490061998367, -0.1875116229057312, -0.3100775182247162, 0.17007288336753845, 0.5435749888420105, 0.369704931974411, -0.6015129089355469, -0.20606862008571625, 0.019163843244314194, -0.31349891424179077, 0.27511537075042725, 0.060112543404102325, -0.47552844882011414, 0.09283512085676193, 0.3911646604537964, 0.33996033668518066, 0.6637383699417114, -0.015853310003876686, 0.1307254135608673, -0.0806906595826149, 0.11201339960098267, -0.005365181714296341, 0.3146621584892273, 0.030215604230761528, -0.44109630584716797, 0.9147263765335083, 0.2866940200328827, -0.7103285789489746, -0.7687750458717346, -0.07329866290092468, -1.3206263780593872, -0.3762764632701874, 1.0814474821090698, -0.10408002138137817, -0.5129914283752441, 0.02354034036397934, -0.5673502683639526, 0.22673894464969635, -0.7117102742195129, 0.5816251635551453, 0.6834233999252319, -0.30742353200912476, 0.12694241106510162, -0.9306418895721436, 0.36034730076789856, 0.5539324283599854, -0.8981003165245056, -0.15032382309436798, 0.5322854518890381, 0.2902657389640808, 0.39973607659339905, 0.8603052496910095, -0.24492935836315155, 0.20810258388519287, 0.12609964609146118, 0.1731792539358139, -0.03919105604290962, 0.10488944500684738, 0.11637263745069504, 0.28144827485084534, -0.197731614112854, -0.44802138209342957 ]
timm/tf_efficientnetv2_b0.in1k
timm
"2023-04-27T21:38:45Z"
12,792
0
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "arxiv:2104.00298", "license:apache-2.0", "region:us" ]
image-classification
"2022-12-13T00:14:15Z"
--- tags: - image-classification - timm library_name: timm license: apache-2.0 datasets: - imagenet-1k --- # Model card for tf_efficientnetv2_b0.in1k A EfficientNet-v2 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.1 - GMACs: 0.5 - Activations (M): 3.5 - Image size: train = 192 x 192, test = 224 x 224 - **Papers:** - EfficientNetV2: Smaller Models and Faster Training: https://arxiv.org/abs/2104.00298 - **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_efficientnetv2_b0.in1k', pretrained=True) model = model.eval() # get model specific transforms (normalization, resize) data_config = timm.data.resolve_model_data_config(model) transforms = timm.data.create_transform(**data_config, is_training=False) output = model(transforms(img).unsqueeze(0)) # unsqueeze single image into batch of 1 top5_probabilities, top5_class_indices = torch.topk(output.softmax(dim=1) * 100, k=5) ``` ### Feature Map Extraction ```python from urllib.request import urlopen from PIL import Image import timm img = Image.open(urlopen( 'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/beignets-task-guide.png' )) model = timm.create_model( 'tf_efficientnetv2_b0.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, 32, 48, 48]) # torch.Size([1, 48, 24, 24]) # torch.Size([1, 112, 12, 12]) # torch.Size([1, 192, 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( 'tf_efficientnetv2_b0.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 @inproceedings{tan2021efficientnetv2, title={Efficientnetv2: Smaller models and faster training}, author={Tan, Mingxing and Le, Quoc}, booktitle={International conference on machine learning}, pages={10096--10106}, year={2021}, organization={PMLR} } ``` ```bibtex @misc{rw2019timm, author = {Ross Wightman}, title = {PyTorch Image Models}, year = {2019}, publisher = {GitHub}, journal = {GitHub repository}, doi = {10.5281/zenodo.4414861}, howpublished = {\url{https://github.com/huggingface/pytorch-image-models}} } ```
[ -0.35778719186782837, -0.468487024307251, -0.06912336498498917, 0.09005413949489594, -0.3305273652076721, -0.4385492205619812, -0.264859139919281, -0.3790128529071808, 0.17000170052051544, 0.3936489522457123, -0.3442857563495636, -0.6501126885414124, -0.7485973238945007, -0.2324201613664627, -0.1469348669052124, 0.8479955792427063, -0.118063785135746, 0.008828533813357353, -0.18397514522075653, -0.5357570052146912, -0.11990455538034439, -0.1247195303440094, -0.9088665843009949, -0.48827967047691345, 0.3645259141921997, 0.32604023814201355, 0.5061001777648926, 0.7093021869659424, 0.6917274594306946, 0.4759359061717987, -0.058743372559547424, 0.08996064960956573, -0.3440002202987671, -0.15780191123485565, 0.4014311134815216, -0.6116363406181335, -0.40106362104415894, 0.1544998288154602, 0.7254603505134583, 0.35918453335762024, 0.03676198795437813, 0.4841717481613159, 0.138018399477005, 0.567255437374115, -0.2910791039466858, 0.18387211859226227, -0.3581058979034424, 0.2001391053199768, -0.10002043843269348, 0.07731124758720398, -0.2570573091506958, -0.38399264216423035, 0.20352177321910858, -0.5755249857902527, 0.43229538202285767, -0.053803663700819016, 1.310891032218933, 0.3254658579826355, -0.11764920502901077, 0.008431918919086456, -0.21274453401565552, 0.7211889028549194, -0.738262414932251, 0.1897079050540924, 0.30448469519615173, 0.22581790387630463, -0.046161357313394547, -1.1811038255691528, -0.4752047657966614, -0.13854987919330597, -0.22795282304286957, -0.06473248451948166, -0.32922378182411194, 0.05541178956627846, 0.32599955797195435, 0.1810140460729599, -0.5393174886703491, 0.2273280769586563, -0.6410812735557556, -0.21951688826084137, 0.5407571196556091, 0.0032272757962346077, 0.2468239665031433, -0.24429596960544586, -0.45575428009033203, -0.5150749683380127, -0.3266672194004059, 0.34347620606422424, 0.30397680401802063, 0.15402968227863312, -0.5398067235946655, 0.4698222577571869, 0.0832638293504715, 0.5888893604278564, -0.071249820291996, -0.3582201600074768, 0.5905362963676453, 0.0550815686583519, -0.4365086853504181, -0.15166188776493073, 1.1188164949417114, 0.4590868055820465, 0.2137024998664856, 0.08218623697757721, -0.1167672649025917, -0.37182363867759705, -0.11655392497777939, -1.3640083074569702, -0.44910672307014465, 0.3687998354434967, -0.6714663505554199, -0.44927364587783813, 0.2778615355491638, -0.5656698942184448, -0.10958077758550644, 0.013770729303359985, 0.6074717044830322, -0.37969735264778137, -0.48829415440559387, -0.0862097442150116, -0.30773675441741943, 0.30116090178489685, 0.1805257350206375, -0.5066353678703308, 0.15976382791996002, 0.4387092590332031, 1.249333381652832, 0.0671582818031311, -0.3799471855163574, -0.29032403230667114, -0.37563177943229675, -0.34521210193634033, 0.4413206875324249, -0.0007894535665400326, -0.01368446834385395, -0.3007087707519531, 0.2900560200214386, -0.08541693538427353, -0.7228211164474487, 0.2046695351600647, -0.25782471895217896, 0.19697095453739166, -0.026718325912952423, -0.2139013111591339, -0.5594955682754517, 0.24579600989818573, -0.4785163998603821, 1.3248268365859985, 0.401172012090683, -0.9056680202484131, 0.23221717774868011, -0.5756627917289734, -0.1048065572977066, -0.2801867425441742, 0.04634249955415726, -1.0984476804733276, -0.11083080619573593, 0.08187800645828247, 0.8072460293769836, -0.31599098443984985, 0.028583355247974396, -0.6091663241386414, -0.26479727029800415, 0.2504006624221802, -0.002242526039481163, 1.1063048839569092, 0.20545828342437744, -0.4938536584377289, 0.2134559601545334, -0.5226011872291565, 0.25151318311691284, 0.5264483094215393, -0.2529284358024597, -0.03873009607195854, -0.6237170696258545, 0.2334224134683609, 0.34347307682037354, 0.09050635248422623, -0.5018491148948669, 0.268945574760437, -0.19514495134353638, 0.5402942299842834, 0.5953935980796814, -0.1929922103881836, 0.3146830201148987, -0.3269959092140198, 0.21778768301010132, 0.2863541841506958, 0.14294001460075378, 0.05160969868302345, -0.5357556939125061, -0.9107025861740112, -0.5027060508728027, 0.4055323302745819, 0.40558502078056335, -0.6248969435691833, 0.39342305064201355, -0.2851642370223999, -0.8202016353607178, -0.4332160949707031, 0.11543003469705582, 0.5298818349838257, 0.6167187690734863, 0.2889176607131958, -0.4451293349266052, -0.4677797853946686, -0.9445720314979553, 0.004305441398173571, -0.09199364483356476, 0.029820147901773453, 0.3634893298149109, 0.7758458852767944, -0.05530422925949097, 0.5870765447616577, -0.43501609563827515, -0.28908810019493103, -0.2312685251235962, 0.08075717091560364, 0.34314635396003723, 0.8305088877677917, 0.8577917814254761, -0.5596206188201904, -0.526376485824585, -0.1269899606704712, -0.9677994251251221, 0.18461200594902039, 0.02719219960272312, -0.2793416678905487, 0.3028085231781006, 0.20896700024604797, -0.6005669832229614, 0.5808243751525879, 0.22317945957183838, -0.4338853061199188, 0.34263360500335693, -0.23660433292388916, 0.20973794162273407, -1.1630406379699707, 0.18410708010196686, 0.3662169277667999, -0.24606043100357056, -0.49992021918296814, 0.08128206431865692, 0.03250272572040558, 0.011885709129273891, -0.5458772778511047, 0.7257591485977173, -0.5802968144416809, -0.25473567843437195, -0.13363227248191833, -0.3077045679092407, 0.003938603214919567, 0.6694345474243164, -0.09713754057884216, 0.3811221718788147, 0.8364553451538086, -0.45435458421707153, 0.5558546781539917, 0.40347185730934143, -0.295094758272171, 0.2876918613910675, -0.764342725276947, 0.2481149137020111, -0.0010197218507528305, 0.20246393978595734, -1.0403424501419067, -0.34844255447387695, 0.4192788004875183, -0.6413262486457825, 0.6113771796226501, -0.548984944820404, -0.5086965560913086, -0.5481188893318176, -0.48284992575645447, 0.3647119700908661, 0.775702714920044, -0.7976295948028564, 0.4159706234931946, 0.24548771977424622, 0.28834742307662964, -0.6108936667442322, -1.0522035360336304, -0.26361528038978577, -0.3786458671092987, -0.8292701244354248, 0.3044929504394531, 0.25189295411109924, 0.0638987123966217, 0.22670575976371765, -0.04427250474691391, -0.19871185719966888, -0.03827210143208504, 0.49868184328079224, 0.3023603558540344, -0.340068519115448, -0.034624602645635605, -0.2897745966911316, -0.061657555401325226, 0.06166726350784302, -0.43221762776374817, 0.5358524322509766, -0.2500802278518677, -0.05472101643681526, -0.9013175368309021, -0.09496615082025528, 0.3881775438785553, -0.0194130577147007, 0.8590053915977478, 1.2194355726242065, -0.5208038091659546, -0.06977926194667816, -0.42855018377304077, -0.3440951108932495, -0.49347689747810364, 0.640035092830658, -0.34152519702911377, -0.5320885181427002, 0.7409891486167908, 0.07245645672082901, 0.10795428603887558, 0.7334811091423035, 0.4171169102191925, -0.08868315815925598, 0.6604483127593994, 0.4975849688053131, 0.31774675846099854, 0.7540118098258972, -1.128786325454712, -0.25129345059394836, -0.7894624471664429, -0.5542503595352173, -0.40757668018341064, -0.6756958961486816, -0.7328891754150391, -0.43990713357925415, 0.46274158358573914, 0.2694475054740906, -0.497980535030365, 0.4719386100769043, -0.846184492111206, 0.1067255362868309, 0.716174304485321, 0.5947386622428894, -0.40626582503318787, 0.4359598755836487, -0.14760370552539825, 0.060923706740140915, -0.8769715428352356, -0.23277270793914795, 1.183227777481079, 0.4559147357940674, 0.5055287480354309, -0.04305511340498924, 0.6425484418869019, -0.2449839860200882, 0.29206886887550354, -0.6607263088226318, 0.5473185777664185, -0.17156744003295898, -0.426250696182251, -0.1405320018529892, -0.5434976816177368, -1.062259316444397, 0.19420985877513885, -0.27415338158607483, -0.7734100818634033, 0.12821123003959656, 0.26407697796821594, -0.20479950308799744, 0.818233072757721, -0.9163937568664551, 1.059452772140503, -0.11386819183826447, -0.5501965284347534, 0.036856889724731445, -0.66217440366745, 0.32096627354621887, 0.3165094256401062, -0.3342408835887909, -0.0760071873664856, 0.022275341674685478, 1.2285619974136353, -0.6803966760635376, 0.7489439845085144, -0.5633080005645752, 0.5586147308349609, 0.592663049697876, -0.10135543346405029, 0.4338625967502594, -0.1177147701382637, -0.15767371654510498, 0.3755263388156891, 0.007962244562804699, -0.512809157371521, -0.5367792844772339, 0.642794668674469, -1.068041443824768, -0.29210764169692993, -0.36897483468055725, -0.37890517711639404, 0.2700810730457306, 0.09742576628923416, 0.5656068325042725, 0.7036658525466919, 0.24831409752368927, 0.35985881090164185, 0.5534916520118713, -0.3157661557197571, 0.5438706874847412, -0.15934468805789948, -0.11984517425298691, -0.5175986886024475, 0.8723348379135132, 0.2662222385406494, 0.12270020693540573, 0.1146855428814888, 0.255551815032959, -0.4031956195831299, -0.6179526448249817, -0.33331191539764404, 0.29729628562927246, -0.7431786060333252, -0.5227600932121277, -0.7381529808044434, -0.3501672148704529, -0.43535637855529785, 0.021772921085357666, -0.5578591823577881, -0.504359245300293, -0.5150718092918396, 0.2028016597032547, 0.7856126427650452, 0.5903647541999817, -0.22190311551094055, 0.6177428364753723, -0.4622255861759186, 0.15370029211044312, 0.14660513401031494, 0.48852163553237915, -0.01113976165652275, -0.8902812600135803, -0.18806634843349457, -0.13937366008758545, -0.41009044647216797, -0.666700005531311, 0.49500682950019836, 0.2387721836566925, 0.42262396216392517, 0.40888842940330505, -0.25298237800598145, 0.7321363687515259, 0.04923693463206291, 0.5184236764907837, 0.4773755967617035, -0.47629937529563904, 0.5426670908927917, 0.019455526024103165, 0.09593147784471512, 0.14243555068969727, 0.268858402967453, -0.22148989140987396, 0.09769859910011292, -0.9495044350624084, -0.8073735237121582, 1.0002938508987427, 0.18517622351646423, -0.07108912616968155, 0.4531937837600708, 0.7401657700538635, 0.0016669733449816704, 0.021444687619805336, -0.6529069542884827, -0.5253063440322876, -0.3969584107398987, -0.30493032932281494, -0.01120981015264988, -0.1507198065519333, -0.01749701425433159, -0.6759003400802612, 0.7498064041137695, -0.03603023290634155, 0.8734331130981445, 0.2859143614768982, -0.07927437871694565, -0.018707672134041786, -0.47725334763526917, 0.46766936779022217, 0.2838412821292877, -0.3064449727535248, 0.11591532081365585, 0.12026553601026535, -0.5289533138275146, 0.11784065514802933, 0.18479977548122406, -0.037510547786951065, 0.037313006818294525, 0.5238552093505859, 1.07955002784729, -0.13989043235778809, 0.15037395060062408, 0.4905894994735718, -0.01402614638209343, -0.45792001485824585, -0.29546353220939636, 0.2127918303012848, 0.03799181804060936, 0.4793519079685211, 0.2034136801958084, 0.4185798764228821, -0.10035444051027298, -0.20936787128448486, 0.2466498762369156, 0.5431365966796875, -0.31301844120025635, -0.31022849678993225, 0.6912235617637634, -0.10567177087068558, -0.21819040179252625, 0.9358523488044739, -0.20628409087657928, -0.5169586539268494, 1.167285680770874, 0.3517377972602844, 0.9577618837356567, 0.07903701066970825, 0.052080877125263214, 0.9594302773475647, 0.2533601224422455, -0.10270697623491287, 0.14903710782527924, 0.14619843661785126, -0.6680482625961304, 0.09446703642606735, -0.5071784853935242, 0.12529300153255463, 0.3322141766548157, -0.5116344690322876, 0.33601292967796326, -0.6853805184364319, -0.42679744958877563, 0.1475752294063568, 0.3982980251312256, -1.0386584997177124, 0.13793186843395233, -0.06099709868431091, 0.8976032137870789, -0.706323504447937, 0.8077282309532166, 0.8493916392326355, -0.4368760287761688, -1.1348272562026978, -0.2007569819688797, 0.024291440844535828, -0.943857729434967, 0.6530394554138184, 0.5092464089393616, 0.20847494900226593, 0.12512505054473877, -0.7811975479125977, -0.6376810669898987, 1.5105477571487427, 0.5454331636428833, -0.12633225321769714, 0.27253296971321106, -0.0701029971241951, 0.19060227274894714, -0.3959248661994934, 0.6787846684455872, 0.2571033239364624, 0.47065895795822144, 0.31807854771614075, -0.6493251919746399, 0.23905979096889496, -0.356464684009552, 0.18630748987197876, 0.17408083379268646, -0.8909533619880676, 0.883002519607544, -0.5644747018814087, -0.11827702820301056, 0.04859064519405365, 0.7380833625793457, 0.16436731815338135, 0.1593366265296936, 0.5246856808662415, 0.8432601094245911, 0.5580245852470398, -0.4453769624233246, 0.9765797853469849, 0.07698272168636322, 0.710776686668396, 0.5811755657196045, 0.51801598072052, 0.5477588772773743, 0.3893148601055145, -0.1804962009191513, 0.3185007870197296, 1.1376051902770996, -0.4086679518222809, 0.3477878272533417, 0.20612868666648865, 0.12315339595079422, -0.12064860016107559, 0.09375934302806854, -0.42523789405822754, 0.5853290557861328, 0.10271986573934555, -0.5263186097145081, -0.22819818556308746, -0.04347947984933853, 0.03603966906666756, -0.5037380456924438, -0.24974170327186584, 0.5024509429931641, 0.009558466263115406, -0.46308234333992004, 0.8950855135917664, 0.19566020369529724, 0.867186963558197, -0.3773249387741089, 0.012117870151996613, -0.22040867805480957, 0.26029759645462036, -0.3971215486526489, -0.8220896124839783, 0.273128867149353, -0.21156786382198334, 0.05600348487496376, 0.037315964698791504, 0.7051587700843811, -0.39414703845977783, -0.487945556640625, 0.1932360827922821, 0.30140459537506104, 0.5923517942428589, 0.047196805477142334, -1.2257449626922607, 0.16145342588424683, 0.07157076150178909, -0.7798345685005188, 0.25255733728408813, 0.29388153553009033, 0.13291466236114502, 0.7103425860404968, 0.5276883840560913, -0.09492681920528412, 0.1614399552345276, -0.2824418544769287, 0.7867164611816406, -0.4289330244064331, -0.31410741806030273, -0.8126998543739319, 0.6799509525299072, -0.13782073557376862, -0.6611246466636658, 0.365206241607666, 0.5961846709251404, 0.8586105108261108, 0.010630258359014988, 0.47435301542282104, -0.34195125102996826, -0.10407817363739014, -0.42773595452308655, 0.7763074040412903, -0.8140849471092224, -0.09252607822418213, -0.010333888232707977, -0.736094057559967, -0.3234671354293823, 0.7533825635910034, -0.19426777958869934, 0.49158164858818054, 0.5333728194236755, 1.0718263387680054, -0.3930421471595764, -0.4176546633243561, 0.13455091416835785, 0.19900494813919067, 0.09719119220972061, 0.4934016764163971, 0.3347848355770111, -0.8621982932090759, 0.4308231472969055, -0.7326109409332275, -0.17136657238006592, -0.2509077191352844, -0.6859520077705383, -1.0391484498977661, -0.8091601729393005, -0.6967024207115173, -0.8128202557563782, -0.15457426011562347, 1.0238922834396362, 1.0947976112365723, -0.6687347292900085, -0.13342644274234772, 0.019219711422920227, 0.18191957473754883, -0.19951310753822327, -0.23395048081874847, 0.740591287612915, -0.07373622059822083, -0.7514137029647827, -0.4243597686290741, -0.07013718783855438, 0.3376869559288025, 0.03128986805677414, -0.28949517011642456, -0.09564626216888428, -0.4004581570625305, 0.18297727406024933, 0.28272414207458496, -0.6496853232383728, -0.1714128702878952, -0.29924196004867554, -0.21139441430568695, 0.40752318501472473, 0.456805944442749, -0.5011232495307922, 0.33694449067115784, 0.5583434104919434, 0.3862870931625366, 0.9171329140663147, -0.3770807981491089, -0.08397090435028076, -0.8099498748779297, 0.628823459148407, -0.12019933015108109, 0.42524203658103943, 0.46858155727386475, -0.31337812542915344, 0.6543620824813843, 0.46529248356819153, -0.3652803897857666, -0.9185333847999573, -0.15673653781414032, -1.111610770225525, -0.1194782555103302, 1.0641543865203857, -0.4667785167694092, -0.553799033164978, 0.5174638628959656, 0.10107354074716568, 0.7611757516860962, -0.1551753431558609, 0.3702062666416168, 0.18400120735168457, -0.09563092142343521, -0.6116153597831726, -0.6135081052780151, 0.4377291798591614, 0.10940393805503845, -0.6385707259178162, -0.4859563112258911, -0.06526432186365128, 0.781045138835907, 0.11058416217565536, 0.47775110602378845, -0.036858268082141876, 0.16806018352508545, 0.1985468715429306, 0.4876898229122162, -0.6665002107620239, -0.11042862385511398, -0.31346234679222107, 0.08305015414953232, -0.09976516664028168, -0.6485742926597595 ]
TheBloke/Wizard-Vicuna-7B-Uncensored-GPTQ
TheBloke
"2023-09-27T12:44:19Z"
12,789
120
transformers
[ "transformers", "safetensors", "llama", "text-generation", "uncensored", "en", "dataset:ehartford/wizard_vicuna_70k_unfiltered", "base_model:ehartford/Wizard-Vicuna-7B-Uncensored", "license:other", "has_space", "text-generation-inference", "4-bit", "region:us" ]
text-generation
"2023-05-18T07:53:47Z"
--- language: - en license: other tags: - uncensored datasets: - ehartford/wizard_vicuna_70k_unfiltered model_name: Wizard Vicuna 7B Uncensored base_model: ehartford/Wizard-Vicuna-7B-Uncensored inference: false model_creator: Eric Hartford model_type: llama prompt_template: 'A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user''s questions. USER: {prompt} ASSISTANT: ' quantized_by: TheBloke --- <!-- header start --> <!-- 200823 --> <div style="width: auto; margin-left: auto; margin-right: auto"> <img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;"> </div> <div style="display: flex; justify-content: space-between; width: 100%;"> <div style="display: flex; flex-direction: column; align-items: flex-start;"> <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://discord.gg/theblokeai">Chat & support: TheBloke's Discord server</a></p> </div> <div style="display: flex; flex-direction: column; align-items: flex-end;"> <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://www.patreon.com/TheBlokeAI">Want to contribute? TheBloke's Patreon page</a></p> </div> </div> <div style="text-align:center; margin-top: 0em; margin-bottom: 0em"><p style="margin-top: 0.25em; margin-bottom: 0em;">TheBloke's LLM work is generously supported by a grant from <a href="https://a16z.com">andreessen horowitz (a16z)</a></p></div> <hr style="margin-top: 1.0em; margin-bottom: 1.0em;"> <!-- header end --> # Wizard Vicuna 7B Uncensored - GPTQ - Model creator: [Eric Hartford](https://huggingface.co/ehartford) - Original model: [Wizard Vicuna 7B Uncensored](https://huggingface.co/ehartford/Wizard-Vicuna-7B-Uncensored) <!-- description start --> ## Description This repo contains GPTQ model files for [Wizard-Vicuna-7B-Uncensored](https://huggingface.co/ehartford/Wizard-Vicuna-7B-Uncensored). Multiple GPTQ parameter permutations are provided; see Provided Files below for details of the options provided, their parameters, and the software used to create them. <!-- description end --> <!-- repositories-available start --> ## Repositories available * [AWQ model(s) for GPU inference.](https://huggingface.co/TheBloke/Wizard-Vicuna-7B-Uncensored-AWQ) * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/Wizard-Vicuna-7B-Uncensored-GPTQ) * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/Wizard-Vicuna-7B-Uncensored-GGUF) * [Eric Hartford's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/ehartford/Wizard-Vicuna-7B-Uncensored) <!-- repositories-available end --> <!-- prompt-template start --> ## Prompt template: Vicuna ``` A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions. USER: {prompt} ASSISTANT: ``` <!-- prompt-template end --> <!-- README_GPTQ.md-provided-files start --> ## Provided files and GPTQ parameters Multiple quantisation parameters are provided, to allow you to choose the best one for your hardware and requirements. Each separate quant is in a different branch. See below for instructions on fetching from different branches. All recent GPTQ files are made with AutoGPTQ, and all files in non-main branches are made with AutoGPTQ. Files in the `main` branch which were uploaded before August 2023 were made with GPTQ-for-LLaMa. <details> <summary>Explanation of GPTQ parameters</summary> - Bits: The bit size of the quantised model. - GS: GPTQ group size. Higher numbers use less VRAM, but have lower quantisation accuracy. "None" is the lowest possible value. - Act Order: True or False. Also known as `desc_act`. True results in better quantisation accuracy. Some GPTQ clients have had issues with models that use Act Order plus Group Size, but this is generally resolved now. - Damp %: A GPTQ parameter that affects how samples are processed for quantisation. 0.01 is default, but 0.1 results in slightly better accuracy. - GPTQ dataset: The dataset used for quantisation. Using a dataset more appropriate to the model's training can improve quantisation accuracy. Note that the GPTQ dataset is not the same as the dataset used to train the model - please refer to the original model repo for details of the training dataset(s). - Sequence Length: The length of the dataset sequences used for quantisation. Ideally this is the same as the model sequence length. For some very long sequence models (16+K), a lower sequence length may have to be used. Note that a lower sequence length does not limit the sequence length of the quantised model. It only impacts the quantisation accuracy on longer inference sequences. - ExLlama Compatibility: Whether this file can be loaded with ExLlama, which currently only supports Llama models in 4-bit. </details> | Branch | Bits | GS | Act Order | Damp % | GPTQ Dataset | Seq Len | Size | ExLlama | Desc | | ------ | ---- | -- | --------- | ------ | ------------ | ------- | ---- | ------- | ---- | | [main](https://huggingface.co/TheBloke/Wizard-Vicuna-7B-Uncensored-GPTQ/tree/main) | 4 | 128 | No | 0.01 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 2048 | 4.52 GB | Yes | 4-bit, without Act Order and group size 128g. | | [gptq-4bit-32g-actorder_True](https://huggingface.co/TheBloke/Wizard-Vicuna-7B-Uncensored-GPTQ/tree/gptq-4bit-32g-actorder_True) | 4 | 32 | Yes | 0.01 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 2048 | 4.28 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/Wizard-Vicuna-7B-Uncensored-GPTQ/tree/gptq-4bit-64g-actorder_True) | 4 | 64 | Yes | 0.01 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 2048 | 4.02 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/Wizard-Vicuna-7B-Uncensored-GPTQ/tree/gptq-4bit-128g-actorder_True) | 4 | 128 | Yes | 0.01 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 2048 | 3.90 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/Wizard-Vicuna-7B-Uncensored-GPTQ/tree/gptq-8bit--1g-actorder_True) | 8 | None | Yes | 0.01 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 2048 | 7.01 GB | No | 8-bit, with Act Order. No group size, to lower VRAM requirements. | | [gptq-8bit-128g-actorder_False](https://huggingface.co/TheBloke/Wizard-Vicuna-7B-Uncensored-GPTQ/tree/gptq-8bit-128g-actorder_False) | 8 | 128 | No | 0.01 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 2048 | 7.16 GB | No | 8-bit, with group size 128g for higher inference quality and without Act Order to improve AutoGPTQ speed. | | [gptq-8bit-128g-actorder_True](https://huggingface.co/TheBloke/Wizard-Vicuna-7B-Uncensored-GPTQ/tree/gptq-8bit-128g-actorder_True) | 8 | 128 | Yes | 0.01 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 2048 | 7.16 GB | No | 8-bit, with group size 128g for higher inference quality and with Act Order for even higher accuracy. | | [gptq-8bit-64g-actorder_True](https://huggingface.co/TheBloke/Wizard-Vicuna-7B-Uncensored-GPTQ/tree/gptq-8bit-64g-actorder_True) | 8 | 64 | Yes | 0.01 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 2048 | 7.31 GB | No | 8-bit, with group size 64g and Act Order for even higher inference quality. Poor AutoGPTQ CUDA speed. | <!-- README_GPTQ.md-provided-files end --> <!-- README_GPTQ.md-download-from-branches start --> ## How to download from branches - In text-generation-webui, you can add `:branch` to the end of the download name, eg `TheBloke/Wizard-Vicuna-7B-Uncensored-GPTQ:main` - With Git, you can clone a branch with: ``` git clone --single-branch --branch main https://huggingface.co/TheBloke/Wizard-Vicuna-7B-Uncensored-GPTQ ``` - In Python Transformers code, the branch is the `revision` parameter; see below. <!-- README_GPTQ.md-download-from-branches end --> <!-- README_GPTQ.md-text-generation-webui start --> ## How to easily download and use this model in [text-generation-webui](https://github.com/oobabooga/text-generation-webui). Please make sure you're using the latest version of [text-generation-webui](https://github.com/oobabooga/text-generation-webui). It is strongly recommended to use the text-generation-webui one-click-installers unless you're sure you know how to make a manual install. 1. Click the **Model tab**. 2. Under **Download custom model or LoRA**, enter `TheBloke/Wizard-Vicuna-7B-Uncensored-GPTQ`. - To download from a specific branch, enter for example `TheBloke/Wizard-Vicuna-7B-Uncensored-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: `Wizard-Vicuna-7B-Uncensored-GPTQ` 7. The model will automatically load, and is now ready for use! 8. If you want any custom settings, set them and then click **Save settings for this model** followed by **Reload the Model** in the top right. * Note that you do not need to and should not set manual GPTQ parameters any more. These are set automatically from the file `quantize_config.json`. 9. Once you're ready, click the **Text Generation tab** and enter a prompt to get started! <!-- README_GPTQ.md-text-generation-webui end --> <!-- README_GPTQ.md-use-from-python start --> ## How to use this GPTQ model from Python code ### Install the necessary packages Requires: Transformers 4.32.0 or later, Optimum 1.12.0 or later, and AutoGPTQ 0.4.2 or later. ```shell pip3 install transformers>=4.32.0 optimum>=1.12.0 pip3 install auto-gptq --extra-index-url https://huggingface.github.io/autogptq-index/whl/cu118/ # Use cu117 if on CUDA 11.7 ``` If you have problems installing AutoGPTQ using the pre-built wheels, install it from source instead: ```shell pip3 uninstall -y auto-gptq git clone https://github.com/PanQiWei/AutoGPTQ cd AutoGPTQ pip3 install . ``` ### For CodeLlama models only: you must use Transformers 4.33.0 or later. If 4.33.0 is not yet released when you read this, you will need to install Transformers from source: ```shell pip3 uninstall -y transformers pip3 install git+https://github.com/huggingface/transformers.git ``` ### You can then use the following code ```python from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline model_name_or_path = "TheBloke/Wizard-Vicuna-7B-Uncensored-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=True, revision="main") tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True) prompt = "Tell me about AI" prompt_template=f'''A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions. USER: {prompt} ASSISTANT: ''' print("\n\n*** Generate:") input_ids = tokenizer(prompt_template, return_tensors='pt').input_ids.cuda() output = model.generate(inputs=input_ids, temperature=0.7, do_sample=True, top_p=0.95, top_k=40, max_new_tokens=512) print(tokenizer.decode(output[0])) # Inference can also be done using transformers' pipeline print("*** Pipeline:") pipe = pipeline( "text-generation", model=model, tokenizer=tokenizer, max_new_tokens=512, do_sample=True, temperature=0.7, top_p=0.95, top_k=40, repetition_penalty=1.1 ) print(pipe(prompt_template)[0]['generated_text']) ``` <!-- README_GPTQ.md-use-from-python end --> <!-- README_GPTQ.md-compatibility start --> ## Compatibility The files provided are tested to work with AutoGPTQ, both via Transformers and using AutoGPTQ directly. They should also work with [Occ4m's GPTQ-for-LLaMa fork](https://github.com/0cc4m/KoboldAI). [ExLlama](https://github.com/turboderp/exllama) is compatible with Llama models in 4-bit. Please see the Provided Files table above for per-file compatibility. [Huggingface Text Generation Inference (TGI)](https://github.com/huggingface/text-generation-inference) is compatible with all GPTQ models. <!-- README_GPTQ.md-compatibility end --> <!-- footer start --> <!-- 200823 --> ## Discord For further support, and discussions on these models and AI in general, join us at: [TheBloke AI's Discord server](https://discord.gg/theblokeai) ## Thanks, and how to contribute Thanks to the [chirper.ai](https://chirper.ai) team! Thanks to Clay from [gpus.llm-utils.org](llm-utils)! I've had a lot of people ask if they can contribute. I enjoy providing models and helping people, and would love to be able to spend even more time doing it, as well as expanding into new projects like fine tuning/training. If you're able and willing to contribute it will be most gratefully received and will help me to keep providing more models, and to start work on new AI projects. Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits. * Patreon: https://patreon.com/TheBlokeAI * Ko-Fi: https://ko-fi.com/TheBlokeAI **Special thanks to**: Aemon Algiz. **Patreon special mentions**: Alicia Loh, Stephen Murray, K, Ajan Kanaga, RoA, Magnesian, Deo Leter, Olakabola, Eugene Pentland, zynix, Deep Realms, Raymond Fosdick, Elijah Stavena, Iucharbius, Erik Bjäreholt, Luis Javier Navarrete Lozano, Nicholas, theTransient, John Detwiler, alfie_i, knownsqashed, Mano Prime, Willem Michiel, Enrico Ros, LangChain4j, OG, Michael Dempsey, Pierre Kircher, Pedro Madruga, James Bentley, Thomas Belote, Luke @flexchar, Leonard Tan, Johann-Peter Hartmann, Illia Dulskyi, Fen Risland, Chadd, S_X, Jeff Scroggin, Ken Nordquist, Sean Connelly, Artur Olbinski, Swaroop Kallakuri, Jack West, Ai Maven, David Ziegler, Russ Johnson, transmissions 11, John Villwock, Alps Aficionado, Clay Pascal, Viktor Bowallius, Subspace Studios, Rainer Wilmers, Trenton Dambrowitz, vamX, Michael Levine, 준교 김, Brandon Frisco, Kalila, Trailburnt, Randy H, Talal Aujan, Nathan Dryer, Vadim, 阿明, ReadyPlayerEmma, Tiffany J. Kim, George Stoitzev, Spencer Kim, Jerry Meng, Gabriel Tamborski, Cory Kujawski, Jeffrey Morgan, Spiking Neurons AB, Edmond Seymore, Alexandros Triantafyllidis, Lone Striker, Cap'n Zoog, Nikolai Manek, danny, ya boyyy, Derek Yates, usrbinkat, Mandus, TL, Nathan LeClaire, subjectnull, Imad Khwaja, webtim, Raven Klaugh, Asp the Wyvern, Gabriel Puliatti, Caitlyn Gatomon, Joseph William Delisle, Jonathan Leane, Luke Pendergrass, SuperWojo, Sebastain Graf, Will Dee, Fred von Graf, Andrey, Dan Guido, Daniel P. Andersen, Nitin Borwankar, Elle, Vitor Caleffi, biorpg, jjj, NimbleBox.ai, Pieter, Matthew Berman, terasurfer, Michael Davis, Alex, Stanislav Ovsiannikov Thank you to all my generous patrons and donaters! And thank you again to a16z for their generous grant. <!-- footer end --> # Original model card: Wizard-Vicuna-7B-Uncensored This is [wizard-vicuna-13b](https://huggingface.co/junelee/wizard-vicuna-13b) trained against LLaMA-7B with a subset of the dataset - responses that contained alignment / moralizing were removed. The intent is to train a WizardLM that doesn't have alignment built-in, so that alignment (of any sort) can be added separately with for example with a RLHF LoRA. Shout out to the open source AI/ML community, and everyone who helped me out. Note: An uncensored model has no guardrails. You are responsible for anything you do with the model, just as you are responsible for anything you do with any dangerous object such as a knife, gun, lighter, or car. Publishing anything this model generates is the same as publishing it yourself. You are responsible for the content you publish, and you cannot blame the model any more than you can blame the knife, gun, lighter, or car for what you do with it.
[ -0.5233103632926941, -0.7567492723464966, 0.03296908736228943, 0.15295657515525818, -0.21997655928134918, -0.1724047064781189, 0.07326482981443405, -0.5239220857620239, 0.24124585092067719, 0.43740177154541016, -0.5547170042991638, -0.49668532609939575, -0.3661997318267822, -0.0577273853123188, -0.3594795763492584, 1.0261174440383911, 0.13997237384319305, -0.2565683424472809, 0.005719249602407217, -0.3161345422267914, -0.3457251191139221, -0.4846377670764923, -0.7896527051925659, -0.16513396799564362, 0.3833596408367157, 0.19239580631256104, 0.9324295520782471, 0.5297088027000427, 0.0950755625963211, 0.31706199049949646, 0.0772305577993393, 0.07105863094329834, -0.534149706363678, -0.21929726004600525, 0.15464085340499878, -0.22653207182884216, -0.6168381571769714, 0.13068026304244995, 0.48909950256347656, 0.16060209274291992, -0.2998813986778259, 0.18541820347309113, 0.041448961943387985, 0.713007926940918, -0.4475388824939728, 0.2014293074607849, -0.353623628616333, 0.15400825440883636, -0.07876405119895935, 0.08347795158624649, -0.07917096465826035, -0.4106472134590149, 0.05474590137600899, -0.917419970035553, 0.26978328824043274, 0.06166646257042885, 1.1509917974472046, 0.19535143673419952, -0.6756194233894348, 0.2184303104877472, -0.42158418893814087, 0.4963553249835968, -0.8752925395965576, 0.31560808420181274, 0.5492998361587524, 0.2806012034416199, -0.26804596185684204, -0.8084937334060669, -0.7026976943016052, -0.0024135999847203493, -0.18707339465618134, 0.36102262139320374, -0.3828416168689728, 0.11556633561849594, 0.5036343932151794, 0.7679579257965088, -0.9148176312446594, -0.17095650732517242, -0.2606385052204132, -0.1845255196094513, 0.942047119140625, 0.20202751457691193, 0.3816094398498535, -0.2500714957714081, -0.22084690630435944, -0.45019376277923584, -0.5301153063774109, 0.09875848144292831, 0.3612290918827057, -0.11380061507225037, -0.4816093444824219, 0.5288863778114319, -0.3617212772369385, 0.4957946538925171, 0.1783912032842636, -0.14529496431350708, 0.2943144738674164, -0.5997540950775146, -0.5169183015823364, -0.33451467752456665, 1.2778902053833008, 0.4835891127586365, -0.17311036586761475, 0.1664399802684784, 0.07490308582782745, -0.1669894903898239, -0.022783629596233368, -0.9435144662857056, -0.6216919422149658, 0.43393653631210327, -0.41944819688796997, -0.15397560596466064, -0.01810530573129654, -0.7290143966674805, -0.13949255645275116, -0.1134539470076561, 0.5304813385009766, -0.64853835105896, -0.4708004593849182, 0.10021699219942093, -0.4546080529689789, 0.5393770337104797, 0.39507630467414856, -0.6847014427185059, 0.49790284037590027, 0.3065754473209381, 0.6186150908470154, 0.04774581268429756, -0.15531015396118164, -0.1576060652732849, 0.07134589552879333, -0.1981268674135208, 0.3659251630306244, -0.10489113628864288, -0.40135812759399414, -0.4001930356025696, 0.33424586057662964, -0.005132956430315971, -0.22077655792236328, 0.48357462882995605, -0.2866646349430084, 0.4777565002441406, -0.4835565388202667, -0.6063306927680969, -0.40016546845436096, 0.04955274611711502, -0.6819599866867065, 1.313665509223938, 0.48521992564201355, -0.8207852840423584, 0.2711067199707031, -0.4899179935455322, -0.056540533900260925, 0.004623242653906345, -0.05281087011098862, -0.47703808546066284, -0.18237702548503876, 0.1945166438817978, 0.2188233882188797, -0.36584097146987915, 0.15560166537761688, -0.24559684097766876, -0.2587568461894989, 0.13712374866008759, -0.7072253227233887, 1.3641431331634521, 0.13696876168251038, -0.49662861227989197, -0.07597466558218002, -0.7330392599105835, 0.17693443596363068, 0.4541648328304291, -0.07477916032075882, -0.05224749445915222, -0.25251761078834534, 0.07371232658624649, 0.18775004148483276, 0.19290708005428314, -0.26570072770118713, 0.5188365578651428, -0.17470704019069672, 0.4719178378582001, 0.5515528321266174, 0.10249277204275131, 0.22252552211284637, -0.38511011004447937, 0.5309773087501526, -0.009113253094255924, 0.7233295440673828, 0.21148884296417236, -0.8057351112365723, -0.6759324073791504, -0.29536131024360657, 0.38651105761528015, 0.6623730659484863, -0.7580634951591492, 0.5907174944877625, -0.1920471042394638, -0.7915740609169006, -0.38853758573532104, -0.05671301484107971, 0.3532412648200989, 0.3744659721851349, 0.5028582811355591, -0.49258679151535034, -0.229465052485466, -0.8752000331878662, 0.04517171159386635, -0.43852195143699646, -0.07389551401138306, 0.435200959444046, 0.6520416736602783, -0.12771651148796082, 0.7940754294395447, -0.6071925163269043, -0.09188845753669739, 0.13605311512947083, 0.026243621483445168, 0.3023724853992462, 0.5588002800941467, 0.8034439086914062, -0.7910858988761902, -0.6447053551673889, -0.06764224916696548, -0.6813285946846008, -0.0255668256431818, -0.0407596230506897, -0.5640625953674316, 0.23147322237491608, -0.035539958626031876, -1.0742672681808472, 0.7597271800041199, 0.4015916585922241, -0.7063129544258118, 0.8178673982620239, -0.26141536235809326, 0.31130102276802063, -0.9987529516220093, -0.03517594188451767, 0.054804909974336624, -0.289744108915329, -0.4326429069042206, -0.006956969853490591, -0.028694329783320427, 0.23741529881954193, -0.33975815773010254, 0.6961865425109863, -0.5845269560813904, 0.01700841262936592, 0.071121945977211, -0.08847460895776749, 0.35804465413093567, 0.6058481931686401, -0.14862899482250214, 0.7770671844482422, 0.5191997289657593, -0.4183967709541321, 0.66409832239151, 0.4593335688114166, 0.012352494522929192, 0.2999568581581116, -0.7118918299674988, 0.09885190427303314, 0.22039204835891724, 0.3810288906097412, -0.8819223046302795, -0.26875996589660645, 0.6147045493125916, -0.6441282033920288, 0.49323326349258423, -0.40326884388923645, -0.5773761868476868, -0.3888114392757416, -0.5513381958007812, 0.32517844438552856, 0.7802825570106506, -0.3825358748435974, 0.44237756729125977, 0.40761977434158325, 0.15383973717689514, -0.7132441401481628, -0.6153181195259094, -0.11790692806243896, -0.3121368885040283, -0.5928187370300293, 0.4600745141506195, -0.09969748556613922, 0.0038324808701872826, 0.0981682538986206, -0.031293172389268875, -0.07152900099754333, -0.11186195909976959, 0.28609320521354675, 0.30902594327926636, -0.15836048126220703, -0.16403818130493164, 0.20077145099639893, 0.12555092573165894, 0.05871077626943588, -0.3108687102794647, 0.31656479835510254, -0.17611277103424072, -0.041839227080345154, -0.3858691155910492, 0.30001094937324524, 0.50312340259552, 0.10546383261680603, 0.7886704802513123, 0.8962250351905823, -0.3305281102657318, 0.14916661381721497, -0.5170317888259888, -0.11129830032587051, -0.481779545545578, 0.1462714523077011, -0.23823462426662445, -0.6450489163398743, 0.5781996250152588, 0.5437533855438232, 0.18068675696849823, 0.8641529083251953, 0.3959589898586273, 0.07323817908763885, 0.9699527621269226, 0.2956562340259552, -0.17774172127246857, 0.46575456857681274, -0.6539345979690552, -0.1698312610387802, -0.7431806325912476, -0.21996621787548065, -0.2777087092399597, -0.12690219283103943, -0.8864201307296753, -0.5806689262390137, 0.3173723816871643, 0.36942997574806213, -0.753751277923584, 0.5783752202987671, -0.7761415839195251, 0.20081070065498352, 0.686706006526947, 0.2690200209617615, 0.2425069957971573, 0.041165001690387726, -0.055524297058582306, 0.12072650343179703, -0.6699545979499817, -0.23371224105358124, 1.1033203601837158, 0.3088099956512451, 0.5133398175239563, 0.2775819003582001, 0.3862810730934143, 0.22525104880332947, 0.25108951330184937, -0.5223774909973145, 0.6082988381385803, 0.061444032937288284, -0.7872726321220398, -0.46596038341522217, -0.6042987108230591, -0.9447075128555298, 0.32782670855522156, -0.18564853072166443, -0.7905246019363403, 0.431062787771225, 0.0037740375846624374, -0.26408907771110535, 0.29967886209487915, -0.7878708839416504, 1.1071748733520508, -0.17361648380756378, -0.5077715516090393, 0.007698856294155121, -0.7250925898551941, 0.37147995829582214, 0.227138951420784, -0.10047560185194016, -0.180690199136734, -0.14305336773395538, 0.8290326595306396, -0.961432933807373, 0.677253007888794, -0.27523738145828247, 0.01625116914510727, 0.574729323387146, -0.1440029889345169, 0.47529590129852295, 0.15766701102256775, 0.13543060421943665, 0.3671088218688965, 0.43728628754615784, -0.5696799159049988, -0.5223420262336731, 0.5299609899520874, -0.9954269528388977, -0.5352901816368103, -0.5663914680480957, -0.3922727406024933, -0.08376369625329971, 0.037812333554029465, 0.5732161402702332, 0.4269289970397949, -0.019979070872068405, 0.01119500957429409, 0.7016274929046631, -0.34558501839637756, 0.3607066571712494, 0.30666860938072205, -0.25048914551734924, -0.5690546631813049, 0.8495168089866638, 0.16506482660770416, 0.14345113933086395, 0.17599739134311676, 0.07065518945455551, -0.49911192059516907, -0.4846833348274231, -0.6506174206733704, 0.3302808403968811, -0.5553002953529358, -0.3913119435310364, -0.6470173597335815, -0.383697509765625, -0.48754388093948364, 0.3885623812675476, -0.35322263836860657, -0.7275218963623047, -0.40629616379737854, -0.053310900926589966, 1.0135092735290527, 0.4332437515258789, -0.1388772577047348, 0.25587570667266846, -0.7739235758781433, 0.2645104229450226, 0.3672811985015869, 0.19549985229969025, -0.041596267372369766, -0.7439125776290894, -0.12812228500843048, 0.11185558140277863, -0.5882378816604614, -1.0912479162216187, 0.7374728918075562, 0.19730590283870697, 0.5313132405281067, 0.4333963692188263, 0.23394031822681427, 0.8239313364028931, -0.20328639447689056, 1.05193030834198, 0.1866588145494461, -0.7609741687774658, 0.46178779006004333, -0.5126664042472839, 0.1592353731393814, 0.4590427577495575, 0.5889116525650024, -0.285483717918396, -0.34181925654411316, -0.8374265432357788, -0.8638850450515747, 0.45498979091644287, 0.4549974203109741, -0.01627466082572937, 0.09909478574991226, 0.558952271938324, 0.08717487007379532, 0.10422508418560028, -0.774513840675354, -0.7437470555305481, -0.44147151708602905, -0.12450060248374939, 0.11727003753185272, -0.04810917750000954, -0.27070263028144836, -0.7811976075172424, 0.9445573687553406, -0.18548066914081573, 0.7118788957595825, 0.3330661654472351, 0.13944250345230103, 0.06631732732057571, -0.014313063584268093, 0.21318139135837555, 0.5328188538551331, -0.20069736242294312, -0.30768558382987976, 0.11720511317253113, -0.8661642670631409, 0.09077220410108566, 0.4022742211818695, -0.12768040597438812, -0.11073581129312515, 0.12945151329040527, 0.8453247547149658, -0.1617492288351059, -0.28086093068122864, 0.48050594329833984, -0.4163772165775299, -0.3332042098045349, -0.40685945749282837, 0.3457338511943817, 0.1201753243803978, 0.4023139178752899, 0.3780125081539154, -0.3276803493499756, 0.4425038695335388, -0.5392486453056335, 0.1324567198753357, 0.5003029704093933, -0.14771106839179993, -0.2651102542877197, 0.7515493035316467, -0.17646510899066925, 0.1396770477294922, 0.740149974822998, -0.32118305563926697, -0.4069691002368927, 0.7738433480262756, 0.30100885033607483, 0.7471299767494202, -0.15073393285274506, 0.24588671326637268, 0.5957545638084412, 0.1383095532655716, -0.04157571122050285, 0.2971516251564026, -0.11407541483640671, -0.5701051354408264, -0.28550052642822266, -0.521694004535675, -0.3211963474750519, 0.2837926149368286, -0.7832323312759399, 0.0880744680762291, -0.3437649607658386, -0.41401830315589905, -0.17700400948524475, 0.5115761756896973, -0.5945767164230347, 0.2749645709991455, -0.055323805660009384, 0.9836512804031372, -0.7443760633468628, 0.9728948473930359, 0.40505990386009216, -0.48041319847106934, -1.0239920616149902, -0.1923215240240097, 0.08376573771238327, -0.4890340268611908, 0.08132956176996231, -0.041010405868291855, 0.3367193937301636, 0.008831683546304703, -0.6812687516212463, -0.834462583065033, 1.532468318939209, 0.2957530617713928, -0.44119003415107727, -0.15991005301475525, -0.028345447033643723, 0.3822406530380249, -0.04539232328534126, 0.7636864185333252, 0.673437237739563, 0.3810226619243622, 0.18803012371063232, -0.9264506101608276, 0.3728380501270294, -0.5265641212463379, -0.06787514686584473, 0.11740653216838837, -0.9999474287033081, 0.8793650269508362, 0.16557513177394867, -0.12117443233728409, 0.07032648473978043, 0.7194572687149048, 0.3671327829360962, 0.11924435943365097, 0.34449973702430725, 0.7805370092391968, 0.8534101247787476, -0.3137190043926239, 1.2417269945144653, -0.15691249072551727, 0.4883474111557007, 0.8316099643707275, 0.22376222908496857, 0.5947309136390686, 0.14628246426582336, -0.6885251402854919, 0.4532566964626312, 1.0594170093536377, -0.11392733454704285, 0.38134482502937317, -0.011788927949965, -0.3153908848762512, -0.08296090364456177, 0.2668185234069824, -0.7372767925262451, 0.032946810126304626, 0.40490448474884033, -0.14843332767486572, 0.16412462294101715, -0.15876460075378418, 0.04515230655670166, -0.6404233574867249, -0.21510355174541473, 0.5571044683456421, 0.19966240227222443, -0.38208991289138794, 0.8998799324035645, -0.16792774200439453, 0.6264963150024414, -0.5141581892967224, -0.14314253628253937, -0.43138691782951355, -0.1364671289920807, -0.29251253604888916, -0.7786557674407959, 0.15346521139144897, -0.24215608835220337, -0.06579062342643738, 0.12468980997800827, 0.5857099890708923, -0.23030690848827362, -0.40025556087493896, 0.3649793863296509, 0.422812283039093, 0.40409761667251587, -0.13216952979564667, -1.1472643613815308, 0.04787224903702736, -0.024086644873023033, -0.7291641235351562, 0.508592426776886, 0.5575756430625916, 0.05156780406832695, 0.6397792100906372, 0.48642608523368835, -0.11344338208436966, 0.1742808073759079, -0.19115599989891052, 0.8944719433784485, -0.7813937067985535, -0.23542746901512146, -0.6868942379951477, 0.5041592121124268, -0.24830512702465057, -0.4211667776107788, 0.9031535983085632, 0.6507262587547302, 0.6741992235183716, 0.11552761495113373, 0.6513389945030212, -0.3450356721878052, 0.11661645025014877, -0.37739139795303345, 0.7253774404525757, -0.7552127838134766, 0.07608212530612946, -0.36166757345199585, -0.774605393409729, 0.0056646657176315784, 0.635714590549469, -0.135378897190094, 0.28534096479415894, 0.4224570095539093, 0.8186802864074707, 0.02562679909169674, 0.12130985409021378, 0.27673080563545227, 0.34010863304138184, 0.12572938203811646, 0.8315247893333435, 0.6355281472206116, -1.0168455839157104, 0.4912816286087036, -0.44580626487731934, -0.24895437061786652, -0.11365541070699692, -0.7007967233657837, -0.7868376970291138, -0.5122251510620117, -0.7004002332687378, -0.7474382519721985, -0.005351700820028782, 0.8575278520584106, 0.7538802027702332, -0.6381500959396362, -0.23402193188667297, -0.06279835850000381, 0.051993533968925476, -0.34513697028160095, -0.3433939516544342, 0.4864446818828583, 0.38003087043762207, -0.7028670310974121, 0.1115214005112648, 0.0053207287564873695, 0.2915770709514618, -0.16331472992897034, -0.3730200231075287, -0.16845226287841797, 0.10562337934970856, 0.5984228849411011, 0.6232370734214783, -0.5217645764350891, -0.07775911688804626, -0.10477304458618164, -0.09987182915210724, 0.28031691908836365, 0.17215560376644135, -0.7321149110794067, 0.0724545568227768, 0.47025933861732483, 0.15171830356121063, 0.9450927376747131, 0.05452701076865196, 0.30920475721359253, -0.35286834836006165, 0.05057238042354584, 0.11221610754728317, 0.3173258900642395, 0.07097697257995605, -0.6249100565910339, 0.706676721572876, 0.4240264594554901, -0.6842266917228699, -0.7080193758010864, -0.19699998199939728, -1.2092589139938354, -0.22048762440681458, 1.134933352470398, -0.14225232601165771, -0.44540122151374817, -0.11751794815063477, -0.22052976489067078, 0.43362537026405334, -0.4565086364746094, 0.26572880148887634, 0.4793011248111725, -0.3453565835952759, -0.43585625290870667, -0.8895007371902466, 0.6542301774024963, 0.1761929988861084, -0.7759679555892944, 0.017734674736857414, 0.6390295624732971, 0.48351913690567017, -0.03045491874217987, 0.9629292488098145, -0.2940892279148102, 0.32423895597457886, 0.2108822762966156, 0.03225013241171837, -0.04540211707353592, 0.05118482932448387, -0.30553388595581055, -0.04148036614060402, -0.23389755189418793, -0.033432818949222565 ]
timm/vit_base_patch14_dinov2.lvd142m
timm
"2023-11-22T17:24:03Z"
12,749
0
timm
[ "timm", "pytorch", "safetensors", "feature-extraction", "arxiv:2304.07193", "arxiv:2010.11929", "license:apache-2.0", "region:us" ]
feature-extraction
"2023-05-09T20:48:20Z"
--- license: apache-2.0 library_name: timm tags: - timm - feature-extraction --- # Model card for vit_base_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): 86.6 - GMACs: 151.7 - Activations (M): 397.6 - 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_base_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_base_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, 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 @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.49331337213516235, -0.4100925922393799, 0.07783527672290802, 0.06571900099515915, -0.4965018928050995, -0.35233673453330994, -0.2727268636226654, -0.44034653902053833, 0.1277666836977005, 0.2796248197555542, -0.46258819103240967, -0.5524085760116577, -0.7118701338768005, -0.06894038617610931, -0.03664357587695122, 0.8716312050819397, -0.12138936668634415, -0.061673082411289215, -0.3122631311416626, -0.47715264558792114, -0.17822928726673126, -0.16262517869472504, -0.5073172450065613, -0.35665473341941833, 0.4033357799053192, 0.10709823668003082, 0.6082717776298523, 0.8366909027099609, 0.6350497603416443, 0.4257740080356598, -0.1614014059305191, 0.22047634422779083, -0.3406178653240204, -0.1556190401315689, 0.19139647483825684, -0.6466904878616333, -0.4595898687839508, 0.18190114200115204, 0.736015260219574, 0.29106056690216064, 0.04706091061234474, 0.35596856474876404, 0.25786250829696655, 0.43763700127601624, -0.34593549370765686, 0.3188144266605377, -0.4984738826751709, 0.1883941888809204, -0.1212841123342514, 0.01925036497414112, -0.2504153251647949, -0.32317084074020386, 0.177284374833107, -0.6137807965278625, 0.42521852254867554, -0.106098972260952, 1.3837651014328003, 0.3131026029586792, -0.1401696801185608, 0.15942882001399994, -0.2931871712207794, 0.8987897038459778, -0.5365427136421204, 0.34975194931030273, 0.2805214822292328, 0.030236544087529182, 0.020989075303077698, -1.0474176406860352, -0.5892834663391113, 0.038808807730674744, -0.22691909968852997, 0.11543656140565872, -0.446010947227478, 0.040820155292749405, 0.3604518473148346, 0.3045514225959778, -0.4550483524799347, 0.1666928231716156, -0.5770868062973022, -0.3593745529651642, 0.4426977336406708, -0.13294361531734467, 0.2035699188709259, -0.3837549090385437, -0.6574240922927856, -0.5721233487129211, -0.39468899369239807, 0.4016996920108795, 0.21284593641757965, 0.05090885981917381, -0.5226773023605347, 0.5183883905410767, 0.19322040677070618, 0.558799684047699, 0.1699703186750412, -0.35573989152908325, 0.6521797180175781, -0.24010680615901947, -0.41576167941093445, -0.30098581314086914, 1.1925091743469238, 0.5359746813774109, 0.38600218296051025, 0.150392085313797, -0.138275608420372, -0.0986904501914978, -0.12564992904663086, -1.1494905948638916, -0.4655827581882477, 0.15576355159282684, -0.5018742680549622, -0.4529235363006592, 0.21660633385181427, -0.9379289150238037, -0.19519780576229095, -0.05113595724105835, 0.704346776008606, -0.4471232295036316, -0.3798615336418152, -0.145687073469162, -0.1310386061668396, 0.5004093647003174, 0.22780673205852509, -0.7320879101753235, 0.15405988693237305, 0.2680428624153137, 1.0825574398040771, -0.036068063229322433, -0.43928301334381104, -0.41519564390182495, -0.34990018606185913, -0.4062844216823578, 0.5764884948730469, -0.034409135580062866, -0.2175886332988739, -0.16595891118049622, 0.36602017283439636, -0.15777890384197235, -0.6551827192306519, 0.2813037037849426, -0.10330848395824432, 0.37627920508384705, -0.07450837641954422, -0.07031747698783875, -0.3334641754627228, 0.22772382199764252, -0.4206681251525879, 1.356123447418213, 0.40927553176879883, -0.9259036183357239, 0.4889688789844513, -0.25893837213516235, -0.09660343080759048, -0.20250961184501648, -0.10137497633695602, -1.2468000650405884, -0.1357097625732422, 0.3935346305370331, 0.5807200074195862, -0.20703253149986267, 0.012554142624139786, -0.52896648645401, -0.2835247814655304, 0.28702402114868164, -0.1865260899066925, 0.9888161420822144, 0.02677932381629944, -0.5455765724182129, 0.3483564257621765, -0.6815108060836792, 0.1497078537940979, 0.47840219736099243, -0.3204064667224884, -0.06053606793284416, -0.5684641599655151, 0.15532498061656952, 0.30968984961509705, 0.22924745082855225, -0.44957250356674194, 0.3373115658760071, -0.17706303298473358, 0.4823891222476959, 0.774827241897583, -0.22830399870872498, 0.4238709807395935, -0.2949107885360718, 0.3373713791370392, 0.24966900050640106, 0.31665539741516113, -0.08757854998111725, -0.6866726279258728, -0.8774316310882568, -0.7048898935317993, 0.3153854310512543, 0.5811477303504944, -0.724606990814209, 0.6165363788604736, -0.2566790282726288, -0.6091256141662598, -0.5021094679832458, 0.30124714970588684, 0.5910335183143616, 0.572532057762146, 0.5854888558387756, -0.5988084077835083, -0.5349847078323364, -0.8865558505058289, 0.052275799214839935, -0.16722705960273743, -0.07963116466999054, 0.4477073848247528, 0.5845815539360046, -0.20717813074588776, 0.7601808309555054, -0.37947067618370056, -0.4711821675300598, -0.23168185353279114, 0.013777384534478188, 0.2381712645292282, 0.6841860413551331, 0.8687557578086853, -0.6468786001205444, -0.43750467896461487, -0.23640550673007965, -0.9444725513458252, 0.11406359076499939, 0.03727927803993225, -0.12619854509830475, 0.3628975749015808, 0.25692427158355713, -0.8572784662246704, 0.6576434373855591, 0.2088238000869751, -0.3762970566749573, 0.31761714816093445, -0.3433253765106201, -0.026654304936528206, -1.2662640810012817, 0.05179586261510849, 0.419329971075058, -0.2481611669063568, -0.4023401439189911, -0.09930263459682465, 0.21793320775032043, 0.06613481044769287, -0.4539237320423126, 0.5306399464607239, -0.6334773302078247, -0.21457575261592865, 0.0765632912516594, -0.15153536200523376, 0.06735385209321976, 0.7300339937210083, -0.010085800662636757, 0.5160885453224182, 0.9409317970275879, -0.41329920291900635, 0.5645118951797485, 0.4133557975292206, -0.39668944478034973, 0.5772519707679749, -0.7428862452507019, 0.07143654674291611, -0.012824084609746933, 0.18773992359638214, -1.1597390174865723, -0.26430273056030273, 0.47534632682800293, -0.6327722072601318, 0.7418704628944397, -0.5572046637535095, -0.40546268224716187, -0.6222584843635559, -0.5755677223205566, 0.43696996569633484, 0.8500247597694397, -0.7796712517738342, 0.4603981077671051, 0.16921283304691315, 0.20673711597919464, -0.6765838861465454, -0.9819934964179993, -0.2505282461643219, -0.485767126083374, -0.6184476613998413, 0.351763516664505, 0.17861363291740417, 0.14057663083076477, 0.09826818108558655, -0.09674445539712906, 0.009163236245512962, -0.1787596344947815, 0.4565739333629608, 0.49536582827568054, -0.2996574342250824, -0.12264016270637512, -0.31759679317474365, -0.12335789948701859, 0.08779554814100266, -0.3036518394947052, 0.4888785481452942, -0.20775726437568665, -0.11616196483373642, -0.8631158471107483, -0.1877536028623581, 0.6401979327201843, -0.3797334134578705, 0.7179734110832214, 1.2645528316497803, -0.439736545085907, -0.05205114185810089, -0.40149563550949097, -0.2926333248615265, -0.5209397077560425, 0.6514978408813477, -0.3128330111503601, -0.4713197946548462, 0.8037971258163452, 0.14525383710861206, -0.15596231818199158, 0.7221432328224182, 0.4909379482269287, -0.027645938098430634, 0.8255072832107544, 0.6412579417228699, 0.27723169326782227, 0.7953673005104065, -0.9434043169021606, -0.10037446767091751, -0.9405412077903748, -0.6109438538551331, -0.19841741025447845, -0.43634340167045593, -0.7709040641784668, -0.6767989993095398, 0.4037378430366516, 0.19552168250083923, -0.20955438911914825, 0.4917573630809784, -0.855962872505188, 0.05855512619018555, 0.850029706954956, 0.5585580468177795, -0.2799394428730011, 0.40639880299568176, -0.31927379965782166, -0.16867981851100922, -0.7355677485466003, -0.047047633677721024, 1.1667817831039429, 0.4909786581993103, 0.8313871026039124, -0.07242945581674576, 0.638454020023346, -0.225041925907135, 0.09699319303035736, -0.8057325482368469, 0.6263916492462158, -0.016743600368499756, -0.30599626898765564, -0.2657240331172943, -0.4177643656730652, -1.062281847000122, 0.16949306428432465, -0.3539060354232788, -0.8435219526290894, 0.49960851669311523, 0.25862443447113037, -0.28803831338882446, 0.6689914464950562, -0.8064164519309998, 1.0084104537963867, -0.10359417647123337, -0.6355698704719543, 0.11689668893814087, -0.7408004999160767, 0.2782488763332367, 0.15421746671199799, -0.24574534595012665, 0.09794294089078903, 0.13198278844356537, 0.9551923871040344, -0.5623409152030945, 0.9281261563301086, -0.39525195956230164, 0.23648959398269653, 0.5690115690231323, -0.18243831396102905, 0.49635472893714905, 0.07532955706119537, 0.22539958357810974, 0.23763960599899292, 0.05729169771075249, -0.4032713770866394, -0.48530471324920654, 0.5728899240493774, -1.1364349126815796, -0.4731476306915283, -0.5701573491096497, -0.4233000576496124, 0.19449758529663086, 0.22458644211292267, 0.6938172578811646, 0.593326985836029, 0.3084198832511902, 0.45156505703926086, 0.8403624296188354, -0.3271145522594452, 0.45775529742240906, -0.08626968413591385, -0.24451322853565216, -0.7059150338172913, 0.9662945866584778, 0.30670931935310364, 0.24951153993606567, 0.16369958221912384, 0.17289569973945618, -0.4192279279232025, -0.5268832445144653, -0.3771039545536041, 0.4166009724140167, -0.7507606148719788, -0.46692031621932983, -0.5660761594772339, -0.370575487613678, -0.42784568667411804, 0.13670840859413147, -0.512383222579956, -0.3482089638710022, -0.5768857002258301, 0.05550318583846092, 0.6881887316703796, 0.5245294570922852, -0.3132110834121704, 0.26965025067329407, -0.36013707518577576, 0.29699426889419556, 0.5814592242240906, 0.4624921679496765, -0.2926271855831146, -0.9595747590065002, -0.18249544501304626, -0.03521843999624252, -0.46234455704689026, -0.6574312448501587, 0.4857494533061981, 0.26188305020332336, 0.5181218981742859, 0.41033536195755005, -0.22690607607364655, 0.7873721718788147, -0.06689506024122238, 0.6335690021514893, 0.4071667492389679, -0.6495830416679382, 0.643973171710968, -0.16539379954338074, 0.09928704798221588, 0.051381710916757584, 0.2378762811422348, -0.059941504150629044, 0.08088082075119019, -0.9409355521202087, -0.8211378455162048, 0.8501732349395752, 0.2075706571340561, -0.04508397355675697, 0.366547554731369, 0.581005871295929, -0.19426332414150238, -0.041650909930467606, -0.8731073141098022, -0.3804880678653717, -0.549404501914978, -0.2792542278766632, -0.08893053978681564, -0.251830130815506, -0.13435791432857513, -0.6821689009666443, 0.5687875151634216, -0.14143382012844086, 0.7922079563140869, 0.4342797100543976, -0.06864936649799347, -0.265593558549881, -0.3420073688030243, 0.4976896345615387, 0.3557199239730835, -0.3738784193992615, 0.21739715337753296, 0.1855352520942688, -0.6550375819206238, -0.04580624774098396, 0.3435111343860626, -0.0719669833779335, -0.008061209693551064, 0.503391444683075, 1.0560353994369507, -0.08092211931943893, -0.040528908371925354, 0.6870554685592651, -0.05623171851038933, -0.5249589085578918, -0.20624470710754395, 0.1622181236743927, -0.11140649020671844, 0.4819982349872589, 0.3114994764328003, 0.4623793065547943, -0.2677425742149353, -0.3686369061470032, 0.3087410628795624, 0.6057582497596741, -0.5817668437957764, -0.44327887892723083, 0.8668254017829895, -0.24831052124500275, -0.041743747889995575, 0.7960125207901001, -0.017932860180735588, -0.44885891675949097, 0.989238977432251, 0.43516770005226135, 0.8513912558555603, -0.2536845803260803, 0.07359886914491653, 0.7855048775672913, 0.30828627943992615, -0.12319085747003555, 0.21981468796730042, 0.05663127452135086, -0.7176164984703064, 0.03556108847260475, -0.5582910180091858, 0.03850102797150612, 0.3423483371734619, -0.6907173991203308, 0.4522169232368469, -0.6634310483932495, -0.430054634809494, 0.12052389979362488, 0.15690097212791443, -0.9620694518089294, 0.24417570233345032, 0.11925245076417923, 0.6819636225700378, -0.8204103112220764, 0.9244220852851868, 0.8088492751121521, -0.6289297938346863, -0.9564476609230042, -0.11075988411903381, 0.054247524589300156, -0.9864339828491211, 0.5063167214393616, 0.43362781405448914, 0.08100645244121552, 0.18537896871566772, -0.7757763266563416, -0.8080223202705383, 1.5652579069137573, 0.47803938388824463, -0.13413597643375397, 0.19286780059337616, -0.05753893032670021, 0.3847147226333618, -0.24423439800739288, 0.34379294514656067, 0.15886124968528748, 0.3141084909439087, 0.38825860619544983, -0.8153771162033081, 0.16130776703357697, -0.32628971338272095, 0.18888220191001892, 0.13246862590312958, -0.987772524356842, 0.9705824255943298, -0.6041999459266663, -0.12969760596752167, 0.22919049859046936, 0.6818825602531433, 0.21624645590782166, 0.07606203109025955, 0.4950270652770996, 0.8501007556915283, 0.5511809587478638, -0.39575085043907166, 0.8580883741378784, -0.09138215333223343, 0.7761197686195374, 0.6115297079086304, 0.42013972997665405, 0.6071756482124329, 0.5160685777664185, -0.40800729393959045, 0.39544838666915894, 1.0128705501556396, -0.5589118599891663, 0.5519902110099792, 0.10309772193431854, 0.03873434290289879, -0.3496796190738678, 0.0065072569996118546, -0.5071900486946106, 0.515528678894043, 0.23709776997566223, -0.6418025493621826, -0.019656343385577202, 0.014097739942371845, 0.02070932276546955, -0.3104630708694458, -0.16042202711105347, 0.5711523294448853, 0.09189088642597198, -0.48621103167533875, 0.9228286743164062, -0.034679315984249115, 0.7744154334068298, -0.43329840898513794, 0.03921366110444069, -0.31752750277519226, 0.4857929050922394, -0.347431480884552, -0.930791974067688, 0.1356029063463211, -0.2317773401737213, -0.08191324025392532, 0.011087327264249325, 0.7146603465080261, -0.4362206757068634, -0.5709037780761719, 0.24063442647457123, 0.3147362172603607, 0.21027088165283203, 0.09342104941606522, -1.0274360179901123, 0.015353390946984291, 0.039350975304841995, -0.6702176332473755, 0.3695920407772064, 0.5494676828384399, 0.038779404014348984, 0.7212042212486267, 0.5998089909553528, -0.14116376638412476, 0.18195170164108276, -0.19952178001403809, 0.9851616621017456, -0.42332568764686584, -0.3143763542175293, -0.8542191982269287, 0.6310864090919495, -0.05546270310878754, -0.5725911259651184, 0.6293289065361023, 0.5438516736030579, 0.8334247469902039, -0.01773953065276146, 0.46813279390335083, -0.17272812128067017, -0.008142448030412197, -0.42520660161972046, 0.6552997827529907, -0.6706497669219971, 0.023179274052381516, -0.28017866611480713, -0.92936110496521, -0.49633046984672546, 0.8932999968528748, -0.22490523755550385, 0.3967747092247009, 0.527596116065979, 1.0596809387207031, -0.38239145278930664, -0.6919059753417969, 0.2023555338382721, 0.2976212501525879, 0.1412830501794815, 0.46278470754623413, 0.4422791600227356, -0.8034034371376038, 0.7070963382720947, -0.5989732146263123, -0.2197575569152832, -0.16908380389213562, -0.5896018147468567, -1.240251898765564, -0.8015025854110718, -0.6360290050506592, -0.8015993237495422, -0.14617589116096497, 0.8396950364112854, 0.9868733882904053, -0.6787653565406799, 0.037235721945762634, -0.08465689420700073, 0.16123808920383453, -0.3307984471321106, -0.21797838807106018, 0.7517691254615784, -0.008020333014428616, -0.7457484602928162, -0.30480635166168213, 0.06086492910981178, 0.5048623085021973, -0.17049022018909454, -0.2270880490541458, -0.13482628762722015, -0.24833029508590698, 0.22941450774669647, 0.39886680245399475, -0.8700585961341858, -0.25402718782424927, -0.1127839908003807, -0.17184612154960632, 0.595036506652832, 0.2074195295572281, -0.7523788809776306, 0.5441863536834717, 0.5443871021270752, 0.19357091188430786, 0.8167645931243896, -0.16163751482963562, 0.021848367527127266, -0.7862212657928467, 0.5756826996803284, -0.20758692920207977, 0.5212769508361816, 0.5830990076065063, -0.2527505159378052, 0.5143713355064392, 0.7439185976982117, -0.4148653447628021, -0.8832414150238037, -0.04671688750386238, -1.2236006259918213, 0.00437628710642457, 1.0961976051330566, -0.45535874366760254, -0.5229443907737732, 0.42533642053604126, -0.11777465045452118, 0.6739819645881653, -0.09419374912977219, 0.5214131474494934, 0.18992778658866882, 0.10183542966842651, -0.8664315342903137, -0.3992482125759125, 0.6260491609573364, 0.0945461168885231, -0.5415790677070618, -0.3715953528881073, 0.11381470412015915, 0.6871758699417114, 0.30308735370635986, 0.3176731467247009, -0.16732914745807648, 0.2696312665939331, 0.10411705076694489, 0.41662734746932983, -0.328966349363327, -0.17971806228160858, -0.373562753200531, -0.05985807627439499, -0.059364255517721176, -0.6092382073402405 ]
openbmb/cpm-ant-10b
openbmb
"2023-06-02T02:04:30Z"
12,743
22
transformers
[ "transformers", "pytorch", "cpmant", "text-generation", "zh", "endpoints_compatible", "has_space", "region:us" ]
text-generation
"2023-01-15T14:28:26Z"
--- tags: - text-generation language: zh --- ## Usage ``` pip install transformers ``` ```python from transformers import CpmAntTokenizer, CpmAntForCausalLM texts = "今天天气不错," model = CpmAntForCausalLM.from_pretrained("openbmb/cpm-ant-10b") tokenizer = CpmAntTokenizer.from_pretrained("openbmb/cpm-ant-10b") input_ids = tokenizer(texts, return_tensors="pt") outputs = model.generate(**input_ids) output_texts = tokenizer.batch_decode(outputs) print(output_texts) ```
[ -0.4171026349067688, -0.28555893898010254, 0.06439071893692017, 0.45431849360466003, -0.6382671594619751, -0.13858330249786377, -0.04420424997806549, 0.24773751199245453, 0.00031093633151613176, 0.4640549421310425, -0.7202532291412354, -0.4835869073867798, -1.0444988012313843, 0.48922768235206604, -0.24620918929576874, 0.9800835847854614, -0.26160818338394165, 0.5296338796615601, 0.4655899703502655, 0.014264142140746117, -0.2991330623626709, -0.5411320924758911, -0.731460690498352, -0.41156327724456787, 0.10953552275896072, -0.13076964020729065, 0.43263909220695496, 0.5191010236740112, 0.44853517413139343, 0.439323365688324, -0.09358107298612595, 0.18674379587173462, -0.3517381548881531, -0.12929944694042206, -0.15690767765045166, -0.756127655506134, -0.2729487419128418, 0.02019227296113968, 1.0831665992736816, 0.44747790694236755, 0.23149634897708893, 0.2462387979030609, 0.12901590764522552, 0.2557167112827301, -0.44865843653678894, 0.5998395085334778, -0.3716197609901428, 0.06532604992389679, -0.0251985602080822, -0.2536446154117584, -0.5583388805389404, -0.453879177570343, -0.2796347439289093, -0.6929382681846619, 0.0911988615989685, 0.12732675671577454, 1.4056364297866821, 0.3401790261268616, -0.38595685362815857, -0.12722516059875488, -0.6855331063270569, 1.0615195035934448, -0.7647501230239868, 0.264323890209198, 0.20377831161022186, 0.40810081362724304, -0.31611210107803345, -1.0728907585144043, -0.4531732499599457, 0.11421097069978714, -0.31835874915122986, 0.041955284774303436, -0.3191171884536743, -0.15824875235557556, 0.2643771767616272, 0.49849092960357666, -0.2432255744934082, -0.11629609018564224, -0.7159253358840942, -0.34917160868644714, 0.1191503256559372, 0.41049328446388245, 0.40926843881607056, -0.27031946182250977, -0.4052184820175171, -0.5460282564163208, -0.4567340314388275, 0.05155855417251587, 0.3076604902744293, 0.45163002610206604, -0.2233678698539734, 0.9798982739448547, -0.04434176906943321, 0.4600268602371216, 0.26606491208076477, -0.12879875302314758, 0.2497040182352066, -0.43682926893234253, -0.6054442524909973, 0.008680077269673347, 1.0912364721298218, 0.041568905115127563, -0.06566187739372253, 0.22989685833454132, -0.013459288515150547, -0.029203835874795914, 0.003917856141924858, -1.177201509475708, -0.24861055612564087, 0.3485449552536011, -0.8625884652137756, -0.30973148345947266, 0.6226940155029297, -0.8274417519569397, 0.12701164186000824, -0.20860359072685242, 0.6826318502426147, -0.727461040019989, -0.5443079471588135, 0.06519296765327454, -0.6331042051315308, 0.405828058719635, -0.11947119981050491, -1.0493295192718506, 0.10726465284824371, 0.7877326607704163, 0.7385373115539551, 0.2970598042011261, -0.6763798594474792, -0.5862938761711121, 0.08511844277381897, -0.24779802560806274, 0.4669731557369232, -0.21930964291095734, -0.3875822424888611, -0.08156260848045349, 0.507361114025116, -0.4311152994632721, -0.6654624342918396, 0.36066362261772156, -0.2636639177799225, 0.7168238162994385, -0.17007794976234436, -0.12119636684656143, -0.23636077344417572, 0.13071948289871216, -0.42489320039749146, 0.9364773631095886, 0.5525983572006226, -0.9102494120597839, 0.2489018440246582, -0.7809259295463562, -0.4851115345954895, -0.06487766653299332, 0.109895721077919, -0.7107483148574829, 0.09187833964824677, 0.31015539169311523, 0.5608418583869934, -0.07225474715232849, 0.3266097605228424, -0.021792832762002945, -0.38130027055740356, 0.47514286637306213, -0.47217318415641785, 1.4199614524841309, 0.4752766788005829, -0.4378068447113037, 0.4870905876159668, -0.45535653829574585, -0.2512965798377991, 0.16867351531982422, -0.7053309679031372, -0.030528947710990906, -0.1336696892976761, 0.16956540942192078, -0.20557908713817596, 0.41548535227775574, -0.6013885140419006, 0.17865361273288727, -0.5963159799575806, 0.5254554152488708, 0.7960768938064575, -0.20064696669578552, 0.46245020627975464, -0.2735903859138489, 0.3151356279850006, 0.3387167751789093, 0.02183694951236248, -0.4022461771965027, -0.36819902062416077, -0.8038750886917114, -0.7953330278396606, 0.03194084390997887, 0.27252063155174255, -1.0346864461898804, 0.8146383166313171, -0.19234071671962738, -0.7089670300483704, -0.548075795173645, -0.2728128731250763, 0.3476727306842804, 0.1911255568265915, 0.4270480275154114, -0.28207117319107056, -1.0285314321517944, -0.6021912693977356, -0.24146346747875214, -0.4318508505821228, -0.45684900879859924, -0.04139113053679466, 0.6897995471954346, -0.5205187797546387, 0.6640148162841797, -0.720387876033783, -0.4341805577278137, -0.5503754019737244, 0.29394206404685974, 0.5759557485580444, 0.8097794055938721, 0.5724313259124756, -0.4053620994091034, -0.34855103492736816, -0.16376787424087524, -0.583930253982544, 0.015178999863564968, -0.17317436635494232, -0.41110342741012573, 0.2683058977127075, -0.06105640530586243, -0.5739865303039551, 0.11005241423845291, 0.45275652408599854, -0.7126042246818542, 0.7853154540061951, -0.08260618895292282, 0.24901123344898224, -1.4563509225845337, 0.27910909056663513, -0.45581135153770447, -0.19119004905223846, -0.3232109546661377, 0.2455262392759323, 0.023296458646655083, -0.22876198589801788, -0.8549493551254272, 0.5903535485267639, -0.34249061346054077, 0.024219725281000137, -0.13360676169395447, -0.5050537586212158, 0.07189329713582993, 0.5314210653305054, -0.09006224572658539, 0.6079859137535095, 0.6989713907241821, -0.8281126618385315, 0.5744791626930237, 0.6135081648826599, -0.22751718759536743, 0.10903307795524597, -0.47002914547920227, -0.3499073386192322, -0.030363569036126137, 0.15148544311523438, -1.1020288467407227, -0.3994179964065552, 0.8613136410713196, -0.6268843412399292, 0.31996458768844604, -0.1377994865179062, -0.4912090301513672, -0.5191928744316101, -0.3701389729976654, 0.5008737444877625, 0.8533321619033813, -0.9183298349380493, 0.8793865442276001, 0.04391125962138176, 0.16466249525547028, -0.7632735371589661, -0.7249521613121033, -0.29743096232414246, -0.15909315645694733, -0.16214455664157867, 0.08696634322404861, -0.11776416003704071, 0.08635491132736206, 0.025534307584166527, 0.09348703175783157, -0.16542112827301025, -0.05004056915640831, 0.23943835496902466, 0.49308863282203674, -0.3745698928833008, -0.6508277058601379, 0.1473688781261444, -0.44985729455947876, 0.37532663345336914, -0.3101729452610016, 1.1574641466140747, -0.17020867764949799, -0.26974672079086304, -0.794148862361908, 0.008523100055754185, 0.6566173434257507, -0.3691234290599823, 0.9239235520362854, 1.174363613128662, -0.343024879693985, 0.019827427342534065, -0.03642759472131729, -0.25205954909324646, -0.5470306873321533, 0.6257355809211731, -0.44101861119270325, -0.5507954359054565, 0.5050167441368103, -0.16271965205669403, 0.04931781813502312, 0.794270932674408, 0.8494747877120972, 0.3115212619304657, 1.10825514793396, 0.5087223649024963, 0.11213124543428421, 0.45594522356987, -0.644546389579773, 0.21022455394268036, -0.9121834635734558, -0.3756817579269409, -0.537641167640686, -0.013422679156064987, -0.24729806184768677, -0.2130928784608841, 0.05308488756418228, 0.08614306896924973, -0.5977046489715576, 0.840690016746521, -0.8377749919891357, 0.25946590304374695, 0.8178998827934265, -0.020421912893652916, -0.15585358440876007, -0.10749722272157669, -0.3903048634529114, 0.02310750260949135, -0.4350496232509613, -0.48527461290359497, 1.0491079092025757, 0.39722365140914917, 0.7520382404327393, 0.04890533536672592, 0.559221625328064, -0.3815339207649231, 0.37668541073799133, -0.7949384450912476, 0.5142486691474915, -0.3017832636833191, -0.6919885277748108, -0.04242955148220062, -0.46150559186935425, -1.059051275253296, 0.23057352006435394, -0.07321108877658844, -0.540427565574646, 0.04643804207444191, -0.1569579690694809, -0.10597514361143112, 0.6304255723953247, -0.30783653259277344, 1.0181630849838257, -0.06615349650382996, 0.10346266627311707, -0.07219003885984421, -0.3989642560482025, 0.6721644997596741, 0.044033825397491455, -0.176605686545372, -0.14279478788375854, 0.02172349952161312, 0.8988840579986572, -0.3998659551143646, 0.84544837474823, -0.20731306076049805, 0.3505319058895111, 0.207838237285614, 0.06059654802083969, 0.021502381190657616, 0.07360208034515381, -0.02564382180571556, 0.46950000524520874, 0.4617530405521393, -0.45860978960990906, -0.22171807289123535, 0.6541132926940918, -1.1709831953048706, -0.4933033287525177, -0.6009132266044617, -0.43577465415000916, 0.7533222436904907, 0.7149118781089783, 0.6619150042533875, 0.43582603335380554, -0.17562620341777802, 0.09751170873641968, 0.1530216932296753, -0.46174177527427673, 0.788569450378418, 0.262530118227005, -0.38561129570007324, -0.9859634041786194, 0.7260177135467529, -0.0028840317390859127, 0.16558293998241425, 0.631965696811676, 0.27539077401161194, -0.44391462206840515, -0.04817618429660797, -0.5205807089805603, 0.39807307720184326, -0.6935593485832214, -0.35807397961616516, -0.5389757752418518, -0.3886129856109619, -0.6615824103355408, 0.08148279786109924, -0.5067073106765747, -0.32780489325523376, -0.5662288665771484, 0.27027028799057007, 0.1466325968503952, 0.5653433203697205, -0.21318139135837555, 0.6629461646080017, -0.9683802127838135, 0.4717470705509186, 0.07236190140247345, 0.25163957476615906, -0.04687241464853287, -0.4904160499572754, -0.27187487483024597, -0.04230663552880287, -0.5667749047279358, -0.8103663325309753, 0.9631382822990417, -0.16854813694953918, 0.5332373380661011, 0.7957943081855774, 0.3445895314216614, 0.6155785322189331, -0.34453681111335754, 0.8134492635726929, 0.2298651784658432, -1.2705714702606201, 0.4122912585735321, -0.10366565734148026, 0.28727129101753235, 0.07453916221857071, 0.4576779901981354, -0.4611169099807739, -0.32699400186538696, -0.485685795545578, -0.8114556670188904, 1.1479241847991943, 0.3482116758823395, 0.059961188584566116, -0.12904955446720123, 0.21034501492977142, 0.26515331864356995, 0.20605355501174927, -0.9357783198356628, -0.5434033274650574, -0.6759450435638428, -0.42872798442840576, -0.033314887434244156, -0.21619278192520142, -0.16121864318847656, -0.4730146825313568, 1.014058232307434, 0.10943304002285004, 0.9117046594619751, 0.22050002217292786, 0.10948602855205536, -0.13004696369171143, 0.10372761636972427, 0.683936595916748, 0.5305652618408203, -0.44445252418518066, 0.4164884686470032, 0.0524674691259861, -0.46545732021331787, 0.23880696296691895, 0.08449042588472366, 0.10050249099731445, 0.3121420443058014, 0.18804478645324707, 0.8557784557342529, -0.09324508160352707, -0.2740265429019928, 0.46999862790107727, -0.280011385679245, -0.14123836159706116, -0.6908621191978455, 0.06103738397359848, 0.0747549906373024, 0.1861249804496765, 0.46818333864212036, 0.4648076891899109, -0.33467236161231995, -0.48570260405540466, 0.07816964387893677, 0.4206855297088623, -0.34875932335853577, -0.3942834734916687, 1.286109447479248, -0.007000936660915613, -0.4816611111164093, 0.8288049101829529, -0.058842629194259644, -0.748387336730957, 0.8023086190223694, 0.8480094075202942, 0.9907138347625732, -0.19352969527244568, -0.13045509159564972, 0.749546229839325, 0.3654976785182953, -0.20493169128894806, 0.2890007197856903, 0.07989873737096786, -0.8154901266098022, -0.4881756603717804, -0.8271622657775879, -0.38366225361824036, 0.08184569329023361, -0.5908259153366089, 0.7134943604469299, -0.6927398443222046, -0.05880812555551529, -0.15654557943344116, -0.26465868949890137, -0.5243625044822693, -0.06745421886444092, -0.1926610916852951, 0.7567880153656006, -0.8452480435371399, 1.0293816328048706, 0.7610178589820862, -0.7502555251121521, -0.8954973816871643, -0.2050754278898239, -0.172674760222435, -0.9967791438102722, 0.9377449154853821, 0.5329251289367676, 0.2766951322555542, 0.25384148955345154, -0.35436826944351196, -0.7334156632423401, 1.1176011562347412, 0.4025685489177704, 0.12017731368541718, 0.30795055627822876, 0.45284682512283325, 0.13857018947601318, -0.42634034156799316, 0.4867027699947357, 0.5026708841323853, 0.8054509162902832, -0.12695766985416412, -0.686138391494751, 0.26584017276763916, -0.27439770102500916, -0.11721470206975937, 0.381085067987442, -0.46299195289611816, 1.318136215209961, -0.0642828494310379, -0.4356647729873657, 0.37636706233024597, 0.7171342968940735, 0.42387664318084717, 0.14492225646972656, 0.13942693173885345, 0.40851399302482605, 0.19630376994609833, -0.4681086540222168, 0.8525901436805725, -0.3642312288284302, 0.6485183238983154, 0.33654820919036865, 0.272215336561203, 0.8911104202270508, 0.5323973298072815, -0.3580973446369171, 0.6040754914283752, 0.7490729093551636, -0.6349835991859436, 0.5194634199142456, 0.007593083195388317, -0.25709038972854614, 0.01784311980009079, 0.1688958704471588, -0.4582485556602478, 0.20902132987976074, 0.08724682778120041, -0.7321080565452576, -0.05236005038022995, 0.030741175636649132, 0.29710662364959717, -0.26883530616760254, -0.37382641434669495, 0.5288766622543335, 0.01796167902648449, -0.5944896340370178, 1.0604006052017212, 0.4787989556789398, 1.036369800567627, -0.6825219392776489, 0.046855513006448746, -0.02957288920879364, 0.868962287902832, -0.12790746986865997, -0.4881279170513153, 0.6942948698997498, -0.2569093406200409, -0.21209809184074402, -0.273811012506485, 0.537442684173584, -0.3384241759777069, -0.6638179421424866, 0.32797178626060486, 0.12753385305404663, 0.5334753394126892, -0.13583527505397797, -0.5999460816383362, 0.054459549486637115, 0.20371659100055695, -0.261187881231308, 0.27655455470085144, 0.10898258537054062, 0.6013815999031067, 0.5920275449752808, 0.8784167170524597, 0.03389575704932213, 0.23237797617912292, -0.33231857419013977, 0.9513710141181946, -0.5539229512214661, -0.3468177616596222, -1.250966191291809, 0.6517469882965088, 0.30138102173805237, -0.4249265789985657, 0.5811026692390442, 0.8755833506584167, 0.9663834571838379, -0.7315322160720825, 0.5325441360473633, -0.23612630367279053, 0.2668036222457886, -0.3835987448692322, 1.1352444887161255, -0.18770024180412292, 0.15461686253547668, -0.037881527096033096, -1.2678717374801636, -0.37217721343040466, 0.6603127121925354, 0.05932759866118431, -0.32810911536216736, 1.0062021017074585, 0.8249866962432861, -0.27420976758003235, -0.3819396197795868, 0.2237168848514557, 0.26867979764938354, 0.43042057752609253, 0.4953499138355255, 0.6560788750648499, -0.7682017087936401, 0.8187719583511353, -0.5287173986434937, -0.1048554927110672, 0.049557846039533615, -0.6259852051734924, -1.1860345602035522, -0.5440776944160461, -0.05764907971024513, -0.7220049500465393, -0.37222209572792053, 1.1313530206680298, 0.5879698991775513, -0.8642454147338867, -0.4538384675979614, -0.06401977688074112, 0.1667136400938034, -0.39805081486701965, -0.37260639667510986, 0.6481115818023682, -0.3651927709579468, -1.373570203781128, 0.30563950538635254, 0.008455097675323486, 0.3400479257106781, -0.4375825524330139, -0.3588273823261261, 0.07254337519407272, 0.1427118331193924, 0.298231840133667, 0.19053806364536285, -0.8943415880203247, -0.10858447849750519, -0.15250244736671448, -0.17520210146903992, 0.24496382474899292, 0.45910578966140747, -0.8555786609649658, 0.09336496144533157, 0.885642945766449, 0.5256938338279724, 0.3419259190559387, -0.13627782464027405, 0.7868639230728149, -0.5846965312957764, 0.3199383318424225, -0.16148489713668823, 0.6777657866477966, 0.2417486160993576, -0.2778024673461914, 0.49254336953163147, 0.564740777015686, -0.5099600553512573, -0.9394319653511047, 0.018784677609801292, -0.993174135684967, -0.5409536361694336, 0.9860621690750122, -0.3579757809638977, -0.5785620808601379, 0.0603143684566021, -0.6426568031311035, 0.823104739189148, -0.22238007187843323, 0.5627651810646057, 0.37935078144073486, 0.034514058381319046, -0.07279548794031143, 0.009665574878454208, 0.24521854519844055, 0.4843197464942932, -0.5358738899230957, -0.14623752236366272, -0.16620904207229614, 0.5432944893836975, 0.37380602955818176, 0.26446813344955444, -0.3824893534183502, 0.06599393486976624, 0.31085339188575745, 0.475521057844162, -0.5292359590530396, -0.0124032162129879, -0.2708228826522827, 0.18609878420829773, -0.11662264168262482, -0.7405461668968201 ]
anferico/bert-for-patents
anferico
"2023-04-04T12:59:18Z"
12,728
55
transformers
[ "transformers", "pytorch", "tf", "safetensors", "fill-mask", "masked-lm", "en", "license:apache-2.0", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
fill-mask
"2022-03-02T23:29:05Z"
--- language: - en tags: - masked-lm - pytorch pipeline-tag: "fill-mask" mask-token: "[MASK]" widget: - text: "The present [MASK] provides a torque sensor that is small and highly rigid and for which high production efficiency is possible." - text: "The present invention relates to [MASK] accessories and pertains particularly to a brake light unit for bicycles." - text: "The present invention discloses a space-bound-free [MASK] and its coordinate determining circuit for determining a coordinate of a stylus pen." - text: "The illuminated [MASK] includes a substantially translucent canopy supported by a plurality of ribs pivotally swingable towards and away from a shaft." license: apache-2.0 metrics: - perplexity --- # BERT for Patents BERT for Patents is a model trained by Google on 100M+ patents (not just US patents). It is based on BERT<sub>LARGE</sub>. If you want to learn more about the model, check out the [blog post](https://cloud.google.com/blog/products/ai-machine-learning/how-ai-improves-patent-analysis), [white paper](https://services.google.com/fh/files/blogs/bert_for_patents_white_paper.pdf) and [GitHub page](https://github.com/google/patents-public-data/blob/master/models/BERT%20for%20Patents.md) containing the original TensorFlow checkpoint. --- ### Projects using this model (or variants of it): - [Patents4IPPC](https://github.com/ec-jrc/Patents4IPPC) (carried out by [Pi School](https://picampus-school.com/) and commissioned by the [Joint Research Centre (JRC)](https://ec.europa.eu/jrc/en) of the European Commission)
[ -0.31200742721557617, -0.5706237554550171, 0.5551528930664062, 0.3297678232192993, -0.2629888355731964, 0.09185713529586792, 0.260065495967865, -0.7165106534957886, 0.2651368975639343, 0.26723814010620117, -0.49789538979530334, -0.5242212414741516, -0.48176082968711853, -0.3600384294986725, -0.43106701970100403, 1.1134434938430786, 0.07630406320095062, 0.6021771430969238, -0.1265636533498764, 0.2519662082195282, -0.15734083950519562, -0.6536940336227417, -0.40633630752563477, -0.4013587236404419, 0.6356567144393921, 0.1410972774028778, 0.1668706089258194, 0.13711845874786377, 0.5412985682487488, 0.24859550595283508, -0.4743182957172394, -0.47632497549057007, -0.20918786525726318, -0.13341514766216278, 0.01764797978103161, -0.2756899893283844, -0.3229764401912689, 0.014764146879315376, 0.2584642171859741, 0.44115838408470154, -0.004228968173265457, 0.20566146075725555, -0.018139194697141647, 0.42409926652908325, -0.4715801477432251, 0.39671871066093445, -0.7394212484359741, 0.2218073159456253, 0.07653550058603287, 0.2522859573364258, -0.3364121615886688, -0.4530899226665497, 0.7492551207542419, -0.4467134475708008, 0.6273001432418823, -0.004298590589314699, 1.358076572418213, -0.04531434550881386, -0.18956276774406433, -0.34067806601524353, -0.263794869184494, 0.6930639147758484, -0.6127952933311462, 0.32231172919273376, 0.06696660816669464, 0.3989914059638977, -0.26852917671203613, -1.2910319566726685, -0.46425697207450867, -0.2789018154144287, 0.3626047372817993, -0.08856166899204254, -0.016717225313186646, 0.1256212592124939, 0.30668503046035767, 0.1296534389257431, -0.6872220635414124, 0.1824490875005722, -0.8132222890853882, -0.3417080044746399, 0.45711827278137207, -0.4077199697494507, 0.08921726047992706, -0.25161367654800415, -0.9483045339584351, -0.32798662781715393, -0.8113303184509277, 0.22903099656105042, 0.1747966706752777, 0.29851672053337097, 0.09539582580327988, 0.3153263032436371, 0.04341014847159386, 0.5547916293144226, -0.15684199333190918, 0.1551133096218109, 0.35895854234695435, -0.156580850481987, -0.34749460220336914, 0.1458996832370758, 0.5694862008094788, -0.11825954169034958, 0.12575796246528625, -0.4246954321861267, -0.3242334723472595, -0.5397001504898071, 0.35071781277656555, -0.9586767554283142, -0.4723138213157654, 0.31067603826522827, -0.5500984191894531, -0.1993473470211029, 0.12708911299705505, -0.5091658234596252, -0.3804526627063751, -0.1745695322751999, 0.9116455316543579, -0.4710288941860199, 0.09573294967412949, -0.07401128858327866, -0.7279618978500366, 0.45115557312965393, 0.21921609342098236, -1.0420812368392944, -0.23996497690677643, 1.1328389644622803, 0.9244686365127563, 0.4782099425792694, -0.49260416626930237, -0.1023978665471077, 0.05607197806239128, -0.37178006768226624, 0.9319722652435303, -0.18522487580776215, -0.5212109684944153, 0.02384168840944767, 0.07744856178760529, -0.1034756749868393, -0.3817065954208374, 0.7256563305854797, -0.9770916700363159, 0.24397024512290955, -0.7134648561477661, -0.7249048352241516, -0.37924066185951233, 0.31918877363204956, -0.6750879287719727, 0.5209428071975708, -0.349947065114975, -0.6214021444320679, 1.0646402835845947, -1.0199599266052246, -0.23916438221931458, 0.10210058838129044, -0.0726044550538063, -0.5181681513786316, -0.0811755433678627, 0.17596764862537384, 0.5548849105834961, -0.3659622073173523, 0.5157036781311035, -0.5451968908309937, -0.04680213704705238, -0.0717223659157753, 0.28247544169425964, 1.2741502523422241, 0.687408983707428, -0.2938307225704193, 0.2642245590686798, -0.7254643440246582, 0.006563437171280384, -0.07363425195217133, -0.29142630100250244, -0.12794794142246246, -0.10007908940315247, -0.12638556957244873, 0.20495595037937164, 0.5716236233711243, -1.1075513362884521, 0.15370051562786102, 0.03897721320390701, 0.7847933173179626, 0.9587521553039551, 0.17411206662654877, 0.05055692419409752, -0.5513196587562561, 0.24031856656074524, -0.18258488178253174, 0.39392781257629395, -0.1606217324733734, -1.0678467750549316, -0.7926583290100098, -0.7312777638435364, 0.9940402507781982, 0.35691094398498535, -0.481680303812027, 0.7570797204971313, -0.20189672708511353, -0.7171687483787537, -0.464600145816803, -0.141454815864563, 0.12118380516767502, 0.5135770440101624, 0.23803846538066864, -0.5464250445365906, -0.6011762619018555, -1.0618431568145752, 0.07117222994565964, -0.2578856945037842, -0.2334330826997757, 0.2563110589981079, 0.8647906184196472, -0.14610731601715088, 0.9699090123176575, -0.19817622005939484, -0.3025118410587311, 0.15712909400463104, 0.7814646363258362, 0.5924463272094727, 0.6798902153968811, 0.7222636938095093, -0.672142505645752, -0.4039890468120575, -0.2011851817369461, -0.6715028285980225, 0.30226123332977295, -0.21199871599674225, -0.2218974083662033, 0.28093215823173523, 0.28666967153549194, -0.7236760258674622, 0.22840319573879242, 0.38295143842697144, -0.2392798513174057, 0.3354005813598633, -0.30066150426864624, 0.006049386691302061, -1.015799641609192, 0.591736376285553, -0.0265321284532547, -0.0990983173251152, -0.1643519252538681, 0.26304861903190613, 0.2009044885635376, -0.485078901052475, -0.5795294642448425, 0.44216594099998474, -0.36213260889053345, -0.20333518087863922, 0.07115749269723892, -0.5484129786491394, 0.05787782743573189, 0.3866644501686096, -0.27373695373535156, 0.8340363502502441, 0.7079187631607056, -0.5747145414352417, 0.4209308922290802, 0.3166882395744324, -0.7192466259002686, 0.025335345417261124, -0.956184446811676, 0.2265881896018982, 0.3868832290172577, 0.3140845000743866, -0.8537042140960693, -0.08896932005882263, -0.16753631830215454, -0.4256793260574341, 0.26129022240638733, -0.40963834524154663, -1.0016164779663086, -0.821050226688385, -0.4514440894126892, -0.27078646421432495, 0.7836105823516846, -1.1203970909118652, 0.4312153160572052, 0.5559612512588501, -0.3482685983181, -0.7278281450271606, -0.8346536755561829, 0.08526153862476349, -0.025129511952400208, -1.1066715717315674, 0.4957064986228943, -0.16537576913833618, 0.18948864936828613, 0.30789127945899963, 0.22420275211334229, -0.6354038715362549, 0.03912753611803055, 0.1524587720632553, 0.2982252240180969, -0.2641338109970093, 0.15714207291603088, -0.05768663436174393, -0.0010052957804873586, 0.1365840882062912, -0.3508661091327667, 0.5347626805305481, 0.0011323626386001706, -0.3372836410999298, -0.7075448036193848, 0.004768945276737213, 0.6827734112739563, 0.36530235409736633, 0.5943250060081482, 0.2584190368652344, -0.39263486862182617, -0.3282386362552643, -0.5480481386184692, -0.2563111186027527, -0.5406609773635864, 0.16698607802391052, -0.39296096563339233, -0.8163408041000366, 0.7212532758712769, 0.059501055628061295, 0.3031070828437805, 0.7456937432289124, 0.7698260545730591, -0.14947059750556946, 0.8200544714927673, 0.9764088988304138, -0.46993160247802734, 0.6110087633132935, -0.5497552752494812, 0.48123660683631897, -0.5112432241439819, -0.3842102587223053, -0.720832109451294, -0.5570613741874695, -0.45776984095573425, -0.21856525540351868, 0.14771418273448944, -0.03200266510248184, -0.5678851008415222, 0.6009844541549683, -0.6677395701408386, 0.2988393008708954, 1.3446942567825317, 0.021403828635811806, -0.01044906210154295, 0.17376837134361267, -0.6418365836143494, 0.031200602650642395, -0.8169745206832886, -0.5853462219238281, 1.3913003206253052, 0.6268672943115234, 0.8319910764694214, -0.20720110833644867, 0.9347949624061584, 0.6136656403541565, 0.11557573080062866, -0.7024994492530823, 0.5348835587501526, -0.17373034358024597, -1.4797518253326416, -0.09562491625547409, -0.2633945643901825, -0.9113287925720215, -0.16086702048778534, -0.06603994220495224, -0.6893975138664246, 0.5958566665649414, 0.19126833975315094, -0.36693641543388367, 0.41696205735206604, -1.1420766115188599, 0.9130299687385559, -0.562547504901886, -0.07719714939594269, -0.5036014318466187, -0.5629785656929016, 0.2099093496799469, -0.3367398679256439, -0.3702380955219269, 0.11666813492774963, 0.49660158157348633, 0.9737306237220764, -0.6261927485466003, 0.8781999349594116, -0.5821266174316406, 0.05948822945356369, 0.4715896248817444, -0.504285454750061, 0.322272390127182, -0.16268150508403778, -0.1916198432445526, 0.42264214158058167, 0.0015141628682613373, -0.4925769567489624, 0.04641757905483246, 0.8982130885124207, -0.8366414904594421, -0.31582266092300415, -0.6599153876304626, -0.5148316621780396, -0.04697420448064804, 0.48909926414489746, 0.17949403822422028, -0.030476870015263557, -0.33418136835098267, 0.37223106622695923, 0.5420514345169067, -0.5465890169143677, 0.5131443738937378, 0.4320903420448303, 0.17979183793067932, -0.37890177965164185, 0.9597000479698181, 0.45935359597206116, -0.14771884679794312, 0.2714191675186157, 0.00616198917850852, -0.37072181701660156, -0.6128756999969482, -0.30619359016418457, 0.1669716089963913, -0.7894067764282227, -0.014346557669341564, -0.657099187374115, -0.5509214997291565, -0.8229681849479675, -0.13007159531116486, -0.231327623128891, -0.6666062474250793, -0.3310019075870514, -0.1371099352836609, 0.5257964134216309, 0.6112900972366333, -0.434710830450058, 0.05521897226572037, -0.8135813474655151, 0.2734990417957306, 0.8809226155281067, 0.5014535188674927, 0.005159038584679365, -0.3863030672073364, -0.005320632364600897, 0.11804678291082382, -0.8594762682914734, -0.05109891667962074, 0.2650432884693146, 0.1736900359392166, 0.9081526398658752, 0.4968407154083252, -0.1280711442232132, 0.6940736770629883, -0.6806919574737549, 1.0594679117202759, 0.43155139684677124, -0.891460657119751, 0.4130139946937561, -0.2620159387588501, -0.20700445771217346, 0.2448001354932785, 0.4884703457355499, -0.12385429441928864, -0.15301209688186646, -0.9810312986373901, -1.2248420715332031, 0.5329862236976624, -0.11500732600688934, 0.3623211085796356, 0.38716360926628113, 0.1122150719165802, 0.18748287856578827, 0.2793043255805969, -0.806835412979126, 0.2579320967197418, -0.1494118869304657, 0.045945893973112106, 0.4394778907299042, -0.48338136076927185, -0.5001112818717957, -0.12993267178535461, 1.1633962392807007, 0.408527135848999, 0.7070755958557129, 0.18917323648929596, 0.06053810194134712, 0.11274685710668564, -0.09363698959350586, 0.7625786662101746, 0.8513554930686951, -0.719597339630127, -0.3759388029575348, -0.1968761533498764, -0.3321583867073059, -0.4390823245048523, 0.730757474899292, -0.15179556608200073, 0.24251501262187958, 0.3069359362125397, 0.6494825482368469, -0.07806254923343658, -0.6651703119277954, 0.361397922039032, -0.049247872084379196, -0.7370504140853882, -0.34064844250679016, 0.07683559507131577, 0.023222075775265694, 0.7299159169197083, 0.5532626509666443, -0.15553072094917297, 0.25956541299819946, -0.5018357038497925, 0.5835226774215698, 0.43336987495422363, -0.34976041316986084, -0.26761338114738464, 0.8018666505813599, 0.4574960172176361, -0.056894343346357346, 0.4725032150745392, -0.013836991041898727, -0.6604356169700623, 1.0717402696609497, 0.3399091362953186, 1.088462233543396, 0.48529571294784546, 0.2332509160041809, 0.3259735703468323, 0.359151691198349, -0.09843768179416656, 0.5120202898979187, -0.1321295201778412, -0.4871818423271179, -0.16229261457920074, -0.31815797090530396, -0.9485107660293579, 0.2481570541858673, -0.236661896109581, 0.5163384675979614, -0.9469584822654724, -0.45187610387802124, 0.38163793087005615, 0.02959793619811535, -0.5645554065704346, 0.07982924580574036, 0.34956106543540955, 1.2174973487854004, -0.6616248488426208, 0.9463728070259094, 0.6734230518341064, -0.6154311299324036, -0.6134987473487854, -0.06693116575479507, -0.19916024804115295, -1.0259054899215698, 1.0742826461791992, 0.019043395295739174, 0.32423824071884155, -0.12527434527873993, -0.9020985960960388, -0.8208957314491272, 1.1418952941894531, 0.3295251131057739, -0.46982142329216003, 0.12836946547031403, -0.22226592898368835, 0.6468145847320557, -0.21556802093982697, -0.40350276231765747, -0.14739198982715607, 0.2286333292722702, 0.34146803617477417, -0.8816704750061035, -0.4204103648662567, -0.40787577629089355, -0.1047356128692627, -0.07106038182973862, -0.48083484172821045, 0.9941149353981018, -0.25407373905181885, 0.23953935503959656, 0.5577527284622192, 0.3249754011631012, 0.541583776473999, 0.4070948660373688, 0.3854343295097351, 1.0660090446472168, 0.7230939269065857, -0.21642738580703735, 1.100038766860962, -0.5658265948295593, 0.7989234328269958, 1.0151740312576294, -0.2146148979663849, 0.7084397673606873, 0.4819152057170868, -0.033813316375017166, 0.4856529235839844, 0.8795291781425476, -0.7491942048072815, 0.985516369342804, 0.34587374329566956, -0.06042031571269035, 0.21249385178089142, -0.012367930263280869, -0.6996519565582275, -0.09546919912099838, 0.11084189265966415, -0.9301866888999939, -0.15596319735050201, -0.28978660702705383, 0.0056487503461539745, -0.832885205745697, 0.10234402120113373, 0.5727472901344299, -0.08845009654760361, -0.4963943064212799, 0.6019037365913391, -0.02875114418566227, 0.4340400695800781, -0.716862142086029, 0.09937823563814163, 0.13739991188049316, 0.27910059690475464, 0.18327100574970245, -0.7243393659591675, -0.13725344836711884, 0.32710766792297363, -0.2835251986980438, -0.4526652991771698, 0.42656373977661133, 0.11370378732681274, -0.5791800022125244, 0.3269517421722412, 0.027324259281158447, 0.254201740026474, 0.38300132751464844, -1.0371800661087036, -0.3768189251422882, -0.04120279476046562, -0.20282427966594696, 0.0810835137963295, 0.5753000378608704, 0.11966526508331299, 0.8096709847450256, 0.8424575924873352, 0.06374289095401764, 0.41152533888816833, 0.2429073005914688, 1.0174622535705566, -0.5975586175918579, -0.5907735228538513, -0.3572744131088257, 0.5847011208534241, -0.261342853307724, -0.5058078169822693, 0.36864909529685974, 0.7462849617004395, 0.7023605108261108, -0.4197950065135956, 0.9296975135803223, -0.42595383524894714, 0.6187409162521362, -0.4493247866630554, 1.0160527229309082, -0.5849773287773132, 0.09206585586071014, -0.28486794233322144, -0.7311620712280273, -0.6110309362411499, 0.8638303279876709, -0.2555868923664093, 0.05121441185474396, 0.5193321704864502, 0.7345679402351379, -0.020046712830662727, 0.1049826443195343, 0.19402611255645752, 0.3309071958065033, 0.9452409148216248, 0.20131619274616241, 0.6641340255737305, -0.29668208956718445, 0.48167771100997925, -0.44912177324295044, -0.1583051085472107, -0.31496521830558777, -1.0543248653411865, -0.7539887428283691, -0.49638640880584717, -0.26240718364715576, -0.2804259657859802, 0.1563560962677002, 0.7101743817329407, 1.217512607574463, -1.2743918895721436, -0.09178476780653, -0.4300759732723236, 0.06626299768686295, 0.12398143112659454, -0.13548237085342407, 0.5369558334350586, -0.6436289548873901, -0.6915401816368103, 0.06928619742393494, 0.039859991520643234, -0.10227011889219284, -0.08127237111330032, 0.13388799130916595, -0.4813757538795471, -0.046130239963531494, 0.40643638372421265, 0.5697938203811646, -0.55521160364151, -0.4669317305088043, 0.023774178698658943, -0.18477167189121246, -0.07622037827968597, 0.7224045395851135, -0.44367265701293945, 0.8427793979644775, 0.8250537514686584, 0.9465880393981934, 0.485824316740036, -0.2981452941894531, 0.6818822026252747, -0.5053155422210693, 0.42062482237815857, 0.3521765470504761, 0.8616934418678284, 0.055053725838661194, -0.13677732646465302, 0.5983168482780457, 0.39211201667785645, -0.9097229242324829, -0.6870265007019043, -0.18152010440826416, -1.164797306060791, -0.3133887052536011, 0.7281817197799683, -0.43575868010520935, -0.1396952122449875, 0.1708894520998001, -0.041734736412763596, 0.12306590378284454, -0.6941536068916321, 1.4670387506484985, 0.8837230205535889, -0.0633070319890976, 0.34302616119384766, -0.5375155806541443, 0.10288015753030777, 0.29774239659309387, -0.5109512805938721, -0.5303348898887634, 0.3425169587135315, 0.32989975810050964, 0.48112085461616516, 0.24725507199764252, -0.2655220329761505, 0.3801877796649933, -0.11004304140806198, 0.7026888728141785, 0.07401509582996368, -0.43173593282699585, -0.07240110635757446, 0.23666048049926758, 0.23775774240493774, -0.8246869444847107 ]
neulab/codebert-java
neulab
"2023-02-27T20:55:40Z"
12,727
9
transformers
[ "transformers", "pytorch", "roberta", "fill-mask", "arxiv:2302.05527", "autotrain_compatible", "endpoints_compatible", "region:us" ]
fill-mask
"2022-09-26T14:10:02Z"
This is a `microsoft/codebert-base-mlm` model, trained for 1,000,000 steps (with `batch_size=32`) on **Java** code from the `codeparrot/github-code-clean` dataset, on the masked-language-modeling task. It is intended to be used in CodeBERTScore: [https://github.com/neulab/code-bert-score](https://github.com/neulab/code-bert-score), but can be used for any other model or task. For more information, see: [https://github.com/neulab/code-bert-score](https://github.com/neulab/code-bert-score) ## Citation If you use this model for research, please cite: ``` @article{zhou2023codebertscore, url = {https://arxiv.org/abs/2302.05527}, author = {Zhou, Shuyan and Alon, Uri and Agarwal, Sumit and Neubig, Graham}, title = {CodeBERTScore: Evaluating Code Generation with Pretrained Models of Code}, publisher = {arXiv}, year = {2023}, } ```
[ -0.1834532469511032, -0.6330912113189697, -0.076346255838871, 0.45050618052482605, -0.06436596065759659, -0.0920879915356636, -0.16739454865455627, -0.19853445887565613, 0.07041014730930328, 0.7622935771942139, -0.6020889282226562, -0.7786293029785156, -0.4701248109340668, -0.19829165935516357, -0.5759934782981873, 1.409617304801941, 0.18198244273662567, 0.30162009596824646, -0.08090859651565552, -0.04428288713097572, -0.42275628447532654, -0.5069139003753662, -0.42556607723236084, -0.15856395661830902, 0.42113861441612244, 0.2133617401123047, 0.576951265335083, 0.41484755277633667, 0.4718582034111023, 0.10556990653276443, 0.23333923518657684, -0.21235936880111694, -0.6375752091407776, -0.07173313945531845, 0.25902992486953735, -0.6001623868942261, -0.8588458299636841, 0.3702227771282196, 0.3397434949874878, 0.8361246585845947, 0.14602385461330414, 0.7816547155380249, 0.17446936666965485, 0.9223400354385376, -0.5684825778007507, 0.21082960069179535, -0.6717685461044312, 0.056358084082603455, 0.26166456937789917, 0.15057212114334106, -0.6216303110122681, -0.45271769165992737, 0.029901709407567978, -0.25964096188545227, 0.3214549124240875, -0.04191073775291443, 1.0486856698989868, 0.048247329890728, -0.17969892919063568, -0.36326223611831665, -0.7025643587112427, 0.8452420234680176, -0.6496526002883911, 0.0009406022145412862, 0.42171451449394226, 0.28161948919296265, 0.05249975249171257, -0.8368167877197266, -0.2597852349281311, -0.4768275022506714, 0.2352316528558731, -0.22651425004005432, -0.34278637170791626, -0.23638878762722015, 0.7154549956321716, 0.04867398738861084, -0.9523103833198547, -0.2906689941883087, -0.8922528028488159, -0.1667419672012329, 0.571168065071106, 0.18522128462791443, -0.07845291495323181, -0.13835249841213226, -0.6181674599647522, 0.03936414793133736, -0.6891219019889832, 0.3890557885169983, 0.4951442778110504, 0.32168638706207275, -0.16927866637706757, 0.4789726734161377, -0.0312851257622242, 0.9658575654029846, -0.23582957684993744, 0.04596824198961258, 0.5947418808937073, -0.1394873857498169, -0.5792418122291565, -0.08471060544252396, 0.7483416199684143, 0.2407398521900177, 0.7034260630607605, -0.02249513380229473, -0.21969392895698547, 0.02997603267431259, 0.5339171886444092, -1.0756949186325073, -0.7580662369728088, 0.2631390690803528, -0.6011858582496643, -0.5145915150642395, 0.41438058018684387, -0.24889446794986725, -0.03961646556854248, -0.22222936153411865, 0.538929283618927, -0.34515371918678284, -0.2452721744775772, 0.044442180544137955, 0.17904171347618103, 0.2928923964500427, 0.2213626205921173, -0.4076167345046997, 0.026697108522057533, 0.5498679280281067, 0.7908650040626526, 0.09954698383808136, -0.19508130848407745, -0.3271273076534271, -0.45379921793937683, -0.6126393675804138, 0.06253840774297714, -0.4254207909107208, -0.2745458483695984, 0.012798127718269825, 0.20325997471809387, -0.16174449026584625, -0.6364740133285522, 0.3065035343170166, -0.794830858707428, 0.19317841529846191, 0.10073257237672806, -0.5934737324714661, -0.35864022374153137, 0.37674543261528015, -0.8348510265350342, 1.1259558200836182, 0.3059960901737213, -0.2784532606601715, 0.5783149003982544, -0.8484832644462585, -0.06693001836538315, 0.3295097351074219, -0.10189726203680038, -0.5942589044570923, -0.12878340482711792, -0.12700113654136658, 0.4898340106010437, 0.08972468972206116, 0.5424432754516602, -0.23857982456684113, -0.7023084759712219, 0.30901944637298584, -0.40238404273986816, 1.0687233209609985, 0.44977593421936035, -0.427272230386734, 0.03123989701271057, -1.0946600437164307, 0.252428263425827, 0.1046576052904129, -0.4147286117076874, -0.10562168806791306, -0.34641149640083313, 0.23526565730571747, 0.411940336227417, 0.48640838265419006, -0.6003312468528748, 0.48573923110961914, -0.21135938167572021, 0.14360854029655457, 0.5266119837760925, -0.1383095383644104, 0.3417539596557617, -0.5266900658607483, 0.8385542631149292, -0.10782227665185928, 0.2626975178718567, -0.43264061212539673, -0.7549862861633301, -0.9481972455978394, -0.3196403980255127, 0.7703710198402405, 0.38857302069664, -0.4258229434490204, 0.7023407816886902, -0.30454275012016296, -0.7274749875068665, -0.6740506291389465, 0.2244519591331482, 0.38550999760627747, 0.2564546763896942, 0.39056745171546936, -0.36386385560035706, -0.5997443199157715, -0.8077110648155212, -0.3090357780456543, 0.11165600270032883, -0.21867647767066956, 0.14563129842281342, 0.9139772057533264, -0.41477450728416443, 1.126291036605835, -0.40494483709335327, -0.28525465726852417, -0.07833371311426163, 0.28849852085113525, 0.635659396648407, 0.9048558473587036, 0.4888525605201721, -0.6049107909202576, -0.5606658458709717, -0.49926990270614624, -0.7500898241996765, 0.16307097673416138, -0.27040690183639526, -0.21852995455265045, 0.36294418573379517, 0.5717531442642212, -0.17773756384849548, 0.6191032528877258, 0.9306638836860657, -0.3100106120109558, 0.5301682353019714, 0.0364522784948349, 0.25314825773239136, -1.0117028951644897, 0.374248206615448, 0.03362799063324928, -0.4537903964519501, -0.5434333086013794, 0.04161892086267471, 0.23695997893810272, -0.3853881359100342, -0.5238867402076721, 0.16868968307971954, -0.3407038450241089, 0.17133890092372894, -0.37203487753868103, -0.3249354958534241, 0.009171823039650917, 0.8329595923423767, -0.3501121401786804, 0.7037943005561829, 0.5112759470939636, -0.6538028120994568, 0.2222597748041153, 0.024994680657982826, -0.743606686592102, -0.12942208349704742, -0.8510070443153381, 0.34524235129356384, 0.28232672810554504, 0.15910698473453522, -1.0194897651672363, 0.024948298931121826, 0.3591868579387665, -0.7485775351524353, 0.12190164625644684, -0.3444160521030426, -0.7171995639801025, -0.16260969638824463, -0.16825862228870392, 0.548396646976471, 0.7868677377700806, -0.33873769640922546, 0.42446988821029663, 0.20391087234020233, 0.1337791383266449, -0.5625010132789612, -0.7521932125091553, -0.05657427757978439, -0.03014720045030117, -0.6576187610626221, -0.02183891274034977, -0.12727585434913635, 0.08761768043041229, 0.03325805813074112, -0.1354397088289261, -0.025232361629605293, -0.0006542638293467462, 0.6698983907699585, 0.4325418472290039, -0.20242296159267426, 0.3079633414745331, -0.3219086229801178, -0.10310228914022446, 0.39016640186309814, -0.23640185594558716, 0.7266995906829834, -0.16984547674655914, -0.3271508514881134, -0.1155710220336914, 0.13324721157550812, 0.44237884879112244, -0.10731957107782364, 1.1396113634109497, 0.6168902516365051, -0.39022576808929443, -0.37710627913475037, -0.33542314171791077, -0.0817532017827034, -0.40074285864830017, 0.45170286297798157, -0.3009156584739685, -0.7758476734161377, 0.37317612767219543, -0.08902933448553085, 0.09011975675821304, 0.5506623983383179, 0.6728773713111877, -0.0549488365650177, 0.8184620141983032, 0.5715829133987427, -0.38363632559776306, 0.4516899585723877, -0.5721480846405029, 0.18179316818714142, -0.45749443769454956, -0.3146589994430542, -0.6113409996032715, -0.24652326107025146, -0.7267542481422424, -0.587809145450592, 0.17002920806407928, 0.3075936734676361, -0.6243566870689392, 0.7214950919151306, -0.5319001078605652, 0.334999144077301, 0.7832432985305786, 0.29637834429740906, 0.13250063359737396, 0.12072262912988663, -0.2188010960817337, 0.10506226122379303, -0.7221960425376892, -0.8134489059448242, 1.4606735706329346, 0.45792773365974426, 0.8567984104156494, 0.03225942328572273, 0.7806254029273987, 0.5185747742652893, 0.39387375116348267, -0.3396652042865753, 0.6029154658317566, 0.05658480152487755, -0.9366154670715332, -0.06044915318489075, -0.4840475618839264, -1.2532604932785034, -0.10638068616390228, -0.18562261760234833, -0.6036484241485596, -0.24586282670497894, 0.17084316909313202, -0.169608011841774, 0.0742408037185669, -0.753930926322937, 1.103500247001648, -0.04962489381432533, -0.05073211342096329, 0.04699871689081192, -0.5962292551994324, 0.45277559757232666, -0.242063969373703, 0.3232727348804474, -0.1789061725139618, 0.18735367059707642, 0.9559072256088257, -0.4055832624435425, 0.8162473440170288, -0.3860393464565277, -0.031516045331954956, 0.3322092592716217, 0.12698929011821747, 0.5795871019363403, -0.1969011276960373, -0.06095613166689873, 0.5422293543815613, -0.14840534329414368, -0.6934192180633545, -0.33169806003570557, 0.8477128744125366, -0.7441917657852173, -0.16392648220062256, -0.5379952192306519, -0.5503211617469788, 0.08891182392835617, 0.0460943728685379, 0.19756193459033966, 0.45695239305496216, 0.0516996867954731, 0.5804857611656189, 0.5334632992744446, -0.3861031234264374, 0.4101872146129608, 0.5710402131080627, -0.4936899244785309, -0.11150886118412018, 0.9896472096443176, 0.007615538779646158, 0.3718526065349579, 0.1502966731786728, -0.33269253373146057, 0.12613673508167267, -0.2968957722187042, -0.2694151699542999, -0.02968851663172245, -0.7191082835197449, -0.16642016172409058, -0.5932056307792664, -0.48601847887039185, -0.4037821888923645, -0.023341834545135498, -0.32490867376327515, -0.1911391019821167, -0.3338440954685211, 0.06718558073043823, 0.24326767027378082, 0.5223398208618164, 0.2817758023738861, -0.0529252365231514, -0.9398853778839111, 0.13957302272319794, 0.002564000664278865, 0.35323330760002136, -0.07507818192243576, -0.7547664046287537, -0.820205807685852, 0.13007748126983643, -0.1757700890302658, -0.6939800977706909, 0.5711663365364075, -0.1960320621728897, 0.5772361755371094, 0.027116892859339714, 0.1234898567199707, 0.47591307759284973, -0.29797595739364624, 0.8457063436508179, 0.14015339314937592, -0.8362544775009155, 0.5955984592437744, -0.19321097433567047, 0.7415832877159119, 0.7103614807128906, 0.7302918434143066, -0.08833955973386765, -0.5454899072647095, -0.7351382374763489, -1.0713915824890137, 0.6246310472488403, 0.5314444899559021, 0.38622239232063293, 0.2655975818634033, 0.06494499742984772, 0.04884127527475357, 0.4394097626209259, -1.2876495122909546, -0.5406321287155151, 0.024085916578769684, -0.25699207186698914, 0.015533357858657837, -0.23908697068691254, -0.13809460401535034, -0.31112152338027954, 0.9560364484786987, 0.0514695830643177, 0.3531431555747986, -0.18180294334888458, -0.5712424516677856, -0.02814204804599285, -0.025803865864872932, 0.8309276103973389, 0.8158446550369263, -0.5914113521575928, -0.3597356081008911, -0.21032622456550598, -0.6841576099395752, -0.13085511326789856, 0.10671889036893845, 0.055210571736097336, 0.08787082135677338, 0.5009509921073914, 0.7625817656517029, 0.11439033597707748, -0.7990002632141113, 0.6540808081626892, 0.049351174384355545, -0.6193941235542297, -0.6358358263969421, 0.3466225266456604, -0.0073946272023022175, 0.35913607478141785, 0.5583621859550476, 0.46775248646736145, -0.047748763114213943, -0.16604121029376984, 0.4072590172290802, 0.26433056592941284, -0.7574478983879089, 0.12113894522190094, 0.6740926504135132, 0.16126328706741333, -0.41832858324050903, 0.709519624710083, -0.5097546577453613, -0.2995968163013458, 0.8251458406448364, 0.08403293788433075, 0.8125261664390564, 0.26026856899261475, -0.05511375144124031, 0.6256387233734131, 0.5011186003684998, 0.27753838896751404, 0.2519727051258087, 0.0368175134062767, -0.5629180669784546, -0.4133363664150238, -0.8816196918487549, -0.20026278495788574, 0.31182292103767395, -0.7951536178588867, 0.33374154567718506, -0.2830961048603058, -0.10856416821479797, 0.008536849170923233, 0.11541111022233963, -0.8863338232040405, 0.29108044505119324, 0.1674257218837738, 1.0238986015319824, -0.7978399395942688, 1.2031421661376953, 0.5527876615524292, -0.6295894384384155, -1.0287481546401978, 0.0013720131246373057, -0.2241246998310089, -0.9385102987289429, 1.0207263231277466, 0.3044273257255554, 0.18672014772891998, 0.030666114762425423, -0.7971993684768677, -0.44758570194244385, 1.0373607873916626, 0.1725134551525116, -0.8364037275314331, 0.1659761369228363, 0.15243227779865265, 0.5171695351600647, -0.6470834612846375, 0.2434385120868683, 0.33210253715515137, -0.013601834885776043, -0.13477027416229248, -0.7328901886940002, -0.11171654611825943, -0.5445905327796936, 0.016946732997894287, -0.027445446699857712, -0.19362740218639374, 1.2509405612945557, -0.1494552493095398, 0.22357586026191711, 0.25014883279800415, 0.34064334630966187, 0.6068528294563293, 0.16754283010959625, 0.5711835622787476, 0.3584214746952057, 0.35559529066085815, 0.03517536446452141, 0.8767910599708557, -0.8362045288085938, 0.9518911838531494, 1.1206642389297485, 0.033202629536390305, 0.6789578795433044, 0.1231817901134491, -0.41225963830947876, 0.8363307118415833, 0.5578764081001282, -0.5787866711616516, 0.3054354190826416, 0.6429328918457031, -0.1364860087633133, -0.11762109398841858, 0.3993885815143585, -0.5955387353897095, 0.37861040234565735, 0.024922886863350868, -1.0295010805130005, 0.00022905966034159064, -0.015263862907886505, 0.17186440527439117, -0.16622361540794373, -0.2971438765525818, 0.49207645654678345, -0.07338158041238785, -0.5551341772079468, 0.8884178400039673, 0.013945390470325947, 0.5894082188606262, -0.6472328305244446, -0.26551365852355957, -0.10508447885513306, 0.23770086467266083, -0.048705488443374634, -0.3799770772457123, -0.14904555678367615, 0.36381083726882935, -0.3645889163017273, -0.2627630829811096, 0.5699778199195862, -0.40461117029190063, -0.9002488851547241, 0.2660605013370514, 0.4014541208744049, 0.4990674555301666, -0.2328321933746338, -1.0143033266067505, 0.08254657685756683, 0.20357123017311096, -0.42888498306274414, 0.42151764035224915, 0.09130938351154327, 0.1877366155385971, 0.5968652367591858, 0.7529839873313904, -0.22111453115940094, 0.2236621230840683, 0.3223422169685364, 0.8222985863685608, -0.8671497106552124, -0.2946183979511261, -0.8111439347267151, 0.7079352736473083, 0.05119398981332779, -0.4724424183368683, 0.9490825533866882, 0.9442585110664368, 0.9396680593490601, -0.4253309369087219, 0.7786812782287598, -0.08929331600666046, 0.3694591522216797, -0.4149004817008972, 0.735025942325592, -0.4590085446834564, 0.3001217842102051, -0.5015206336975098, -1.0769171714782715, -0.19932876527309418, 0.6022844314575195, -0.028063053265213966, 0.5052709579467773, 0.5302592515945435, 1.142221450805664, 0.2788698375225067, -0.06573774665594101, 0.5357116460800171, 0.0034650505986064672, 0.2458529770374298, 0.598146378993988, 0.5131883025169373, -0.8032776713371277, 0.7816513776779175, -0.11345309764146805, -0.22307120263576508, -0.3877090513706207, -0.7441200017929077, -0.9527434706687927, -0.4719545543193817, -0.49114134907722473, -0.8642163276672363, -0.1807098388671875, 1.153212308883667, 0.9473951458930969, -1.1002527475357056, -0.38027524948120117, -0.3420611023902893, -0.30004632472991943, -0.20856516063213348, -0.2783314287662506, 0.08276096731424332, -0.49361947178840637, -0.856727123260498, 0.0399596132338047, 0.015481652691960335, -0.24898149073123932, -0.5382830500602722, -0.1649934947490692, -0.36140745878219604, -0.17358635365962982, 0.41433295607566833, 0.0075249639339745045, -0.5052500367164612, -0.0047660889104008675, 0.1399931013584137, -0.5666161775588989, -0.0491398461163044, 0.7804855704307556, -0.8633410930633545, 0.6223305463790894, 0.1783299446105957, 0.3886938691139221, 0.6201931238174438, -0.011958298273384571, 0.5109444260597229, -0.8661798238754272, 0.012984476052224636, 0.23697146773338318, 0.23770169913768768, 0.032316118478775024, -0.07897772639989853, 0.5901082158088684, 0.22698093950748444, -0.6496164202690125, -0.7139406800270081, -0.06403056532144547, -1.1003702878952026, -0.31532028317451477, 1.3688751459121704, -0.4270838499069214, -0.02649139240384102, -0.05422045290470123, -0.10646533221006393, 0.14928334951400757, -0.42414116859436035, 0.4595160186290741, 0.6008478999137878, 0.044506993144750595, -0.14088208973407745, -0.8261238932609558, 0.3097419738769531, 0.2414529174566269, -0.567996084690094, -0.4200724959373474, 0.2589623034000397, 0.4575784504413605, 0.2293238341808319, 0.5853254795074463, 0.09928327053785324, 0.2742958962917328, 0.2860524356365204, 0.5286028385162354, -0.3724004924297333, -0.38746118545532227, -0.41225719451904297, 0.4772073030471802, 0.025310862809419632, -0.6636964678764343 ]
TheBloke/Mistral-7B-OpenOrca-AWQ
TheBloke
"2023-11-09T18:17:44Z"
12,703
28
transformers
[ "transformers", "safetensors", "mistral", "text-generation", "en", "dataset:Open-Orca/OpenOrca", "arxiv:2306.02707", "arxiv:2301.13688", "base_model:Open-Orca/Mistral-7B-OpenOrca", "license:apache-2.0", "text-generation-inference", "4-bit", "region:us" ]
text-generation
"2023-10-02T14:27:49Z"
--- base_model: Open-Orca/Mistral-7B-OpenOrca datasets: - Open-Orca/OpenOrca inference: false language: - en library_name: transformers license: apache-2.0 model_creator: OpenOrca model_name: Mistral 7B OpenOrca model_type: mistral pipeline_tag: text-generation prompt_template: '<|im_start|>system {system_message}<|im_end|> <|im_start|>user {prompt}<|im_end|> <|im_start|>assistant ' quantized_by: TheBloke --- <!-- header start --> <!-- 200823 --> <div style="width: auto; margin-left: auto; margin-right: auto"> <img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;"> </div> <div style="display: flex; justify-content: space-between; width: 100%;"> <div style="display: flex; flex-direction: column; align-items: flex-start;"> <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://discord.gg/theblokeai">Chat & support: TheBloke's Discord server</a></p> </div> <div style="display: flex; flex-direction: column; align-items: flex-end;"> <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://www.patreon.com/TheBlokeAI">Want to contribute? TheBloke's Patreon page</a></p> </div> </div> <div style="text-align:center; margin-top: 0em; margin-bottom: 0em"><p style="margin-top: 0.25em; margin-bottom: 0em;">TheBloke's LLM work is generously supported by a grant from <a href="https://a16z.com">andreessen horowitz (a16z)</a></p></div> <hr style="margin-top: 1.0em; margin-bottom: 1.0em;"> <!-- header end --> # Mistral 7B OpenOrca - AWQ - Model creator: [OpenOrca](https://huggingface.co/Open-Orca) - Original model: [Mistral 7B OpenOrca](https://huggingface.co/Open-Orca/Mistral-7B-OpenOrca) <!-- description start --> ## Description This repo contains AWQ model files for [OpenOrca's Mistral 7B OpenOrca](https://huggingface.co/Open-Orca/Mistral-7B-OpenOrca). ### About AWQ AWQ is an efficient, accurate and blazing-fast low-bit weight quantization method, currently supporting 4-bit quantization. Compared to GPTQ, it offers faster Transformers-based inference. It is also now supported by continuous batching server [vLLM](https://github.com/vllm-project/vllm), allowing use of Llama AWQ models for high-throughput concurrent inference in multi-user server scenarios. As of September 25th 2023, preliminary Llama-only AWQ support has also been added to [Huggingface Text Generation Inference (TGI)](https://github.com/huggingface/text-generation-inference). Note that, at the time of writing, overall throughput is still lower than running vLLM or TGI with unquantised models, however using AWQ enables using much smaller GPUs which can lead to easier deployment and overall cost savings. For example, a 70B model can be run on 1 x 48GB GPU instead of 2 x 80GB. <!-- description end --> <!-- repositories-available start --> ## Repositories available * [AWQ model(s) for GPU inference.](https://huggingface.co/TheBloke/Mistral-7B-OpenOrca-AWQ) * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/Mistral-7B-OpenOrca-GPTQ) * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/Mistral-7B-OpenOrca-GGUF) * [OpenOrca's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/Open-Orca/Mistral-7B-OpenOrca) <!-- repositories-available end --> <!-- prompt-template start --> ## Prompt template: ChatML ``` <|im_start|>system {system_message}<|im_end|> <|im_start|>user {prompt}<|im_end|> <|im_start|>assistant ``` <!-- prompt-template end --> <!-- README_AWQ.md-provided-files start --> ## Provided files, and AWQ parameters For my first release of AWQ models, I am releasing 128g models only. I will consider adding 32g as well if there is interest, and once I have done perplexity and evaluation comparisons, but at this time 32g models are still not fully tested with AutoAWQ and vLLM. Models are released as sharded safetensors files. | Branch | Bits | GS | AWQ Dataset | Seq Len | Size | | ------ | ---- | -- | ----------- | ------- | ---- | | [main](https://huggingface.co/TheBloke/Mistral-7B-OpenOrca-AWQ/tree/main) | 4 | 128 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 32768 | 4.15 GB <!-- README_AWQ.md-provided-files end --> <!-- README_AWQ.md-use-from-vllm start --> ## Serving this model from vLLM Documentation on installing and using vLLM [can be found here](https://vllm.readthedocs.io/en/latest/). Note: at the time of writing, vLLM has not yet done a new release with AWQ support. If you try the vLLM examples below and get an error about `quantization` being unrecognised, or other AWQ-related issues, please install vLLM from Github source. - When using vLLM as a server, pass the `--quantization awq` parameter, for example: ```shell python3 python -m vllm.entrypoints.api_server --model TheBloke/Mistral-7B-OpenOrca-AWQ --quantization awq --dtype half ``` When using vLLM from Python code, pass the `quantization=awq` parameter, for example: ```python from vllm import LLM, SamplingParams prompts = [ "Hello, my name is", "The president of the United States is", "The capital of France is", "The future of AI is", ] sampling_params = SamplingParams(temperature=0.8, top_p=0.95) llm = LLM(model="TheBloke/Mistral-7B-OpenOrca-AWQ", quantization="awq", dtype="half") outputs = llm.generate(prompts, sampling_params) # Print the outputs. for output in outputs: prompt = output.prompt generated_text = output.outputs[0].text print(f"Prompt: {prompt!r}, Generated text: {generated_text!r}") ``` <!-- README_AWQ.md-use-from-vllm start --> <!-- README_AWQ.md-use-from-tgi start --> ## Serving this model from Text Generation Inference (TGI) Use TGI version 1.1.0 or later. The official Docker container is: `ghcr.io/huggingface/text-generation-inference:1.1.0` Example Docker parameters: ```shell --model-id TheBloke/Mistral-7B-OpenOrca-AWQ --port 3000 --quantize awq --max-input-length 3696 --max-total-tokens 4096 --max-batch-prefill-tokens 4096 ``` Example Python code for interfacing with TGI (requires huggingface-hub 0.17.0 or later): ```shell pip3 install huggingface-hub ``` ```python from huggingface_hub import InferenceClient endpoint_url = "https://your-endpoint-url-here" prompt = "Tell me about AI" prompt_template=f'''<|im_start|>system {system_message}<|im_end|> <|im_start|>user {prompt}<|im_end|> <|im_start|>assistant ''' client = InferenceClient(endpoint_url) response = client.text_generation(prompt, max_new_tokens=128, do_sample=True, temperature=0.7, top_p=0.95, top_k=40, repetition_penalty=1.1) print(f"Model output: {response}") ``` <!-- README_AWQ.md-use-from-tgi end --> <!-- README_AWQ.md-use-from-python start --> ## How to use this AWQ model from Python code ### Install the necessary packages Requires: [AutoAWQ](https://github.com/casper-hansen/AutoAWQ) 0.1.1 or later ```shell pip3 install autoawq ``` If you have problems installing [AutoAWQ](https://github.com/casper-hansen/AutoAWQ) using the pre-built wheels, install it from source instead: ```shell pip3 uninstall -y autoawq git clone https://github.com/casper-hansen/AutoAWQ cd AutoAWQ pip3 install . ``` ### You can then try the following example code ```python from awq import AutoAWQForCausalLM from transformers import AutoTokenizer model_name_or_path = "TheBloke/Mistral-7B-OpenOrca-AWQ" # Load model model = AutoAWQForCausalLM.from_quantized(model_name_or_path, fuse_layers=True, trust_remote_code=False, safetensors=True) tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, trust_remote_code=False) prompt = "Tell me about AI" prompt_template=f'''<|im_start|>system {system_message}<|im_end|> <|im_start|>user {prompt}<|im_end|> <|im_start|>assistant ''' print("\n\n*** Generate:") tokens = tokenizer( prompt_template, return_tensors='pt' ).input_ids.cuda() # Generate output generation_output = model.generate( tokens, do_sample=True, temperature=0.7, top_p=0.95, top_k=40, max_new_tokens=512 ) print("Output: ", tokenizer.decode(generation_output[0])) """ # Inference should be possible with transformers pipeline as well in future # But currently this is not yet supported by AutoAWQ (correct as of September 25th 2023) from transformers import pipeline print("*** Pipeline:") pipe = pipeline( "text-generation", model=model, tokenizer=tokenizer, max_new_tokens=512, do_sample=True, temperature=0.7, top_p=0.95, top_k=40, repetition_penalty=1.1 ) print(pipe(prompt_template)[0]['generated_text']) """ ``` <!-- README_AWQ.md-use-from-python end --> <!-- README_AWQ.md-compatibility start --> ## Compatibility The files provided are tested to work with: - [AutoAWQ](https://github.com/casper-hansen/AutoAWQ) - [vLLM](https://github.com/vllm-project/vllm) - [Huggingface Text Generation Inference (TGI)](https://github.com/huggingface/text-generation-inference) TGI merged AWQ support on September 25th, 2023: [TGI PR #1054](https://github.com/huggingface/text-generation-inference/pull/1054). Use the `:latest` Docker container until the next TGI release is made. <!-- README_AWQ.md-compatibility end --> <!-- footer start --> <!-- 200823 --> ## Discord For further support, and discussions on these models and AI in general, join us at: [TheBloke AI's Discord server](https://discord.gg/theblokeai) ## Thanks, and how to contribute Thanks to the [chirper.ai](https://chirper.ai) team! Thanks to Clay from [gpus.llm-utils.org](llm-utils)! I've had a lot of people ask if they can contribute. I enjoy providing models and helping people, and would love to be able to spend even more time doing it, as well as expanding into new projects like fine tuning/training. If you're able and willing to contribute it will be most gratefully received and will help me to keep providing more models, and to start work on new AI projects. Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits. * Patreon: https://patreon.com/TheBlokeAI * Ko-Fi: https://ko-fi.com/TheBlokeAI **Special thanks to**: Aemon Algiz. **Patreon special mentions**: Pierre Kircher, Stanislav Ovsiannikov, Michael Levine, Eugene Pentland, Andrey, 준교 김, Randy H, Fred von Graf, Artur Olbinski, Caitlyn Gatomon, terasurfer, Jeff Scroggin, James Bentley, Vadim, Gabriel Puliatti, Harry Royden McLaughlin, Sean Connelly, Dan Guido, Edmond Seymore, Alicia Loh, subjectnull, AzureBlack, Manuel Alberto Morcote, Thomas Belote, Lone Striker, Chris Smitley, Vitor Caleffi, Johann-Peter Hartmann, Clay Pascal, biorpg, Brandon Frisco, sidney chen, transmissions 11, Pedro Madruga, jinyuan sun, Ajan Kanaga, Emad Mostaque, Trenton Dambrowitz, Jonathan Leane, Iucharbius, usrbinkat, vamX, George Stoitzev, Luke Pendergrass, theTransient, Olakabola, Swaroop Kallakuri, Cap'n Zoog, Brandon Phillips, Michael Dempsey, Nikolai Manek, danny, Matthew Berman, Gabriel Tamborski, alfie_i, Raymond Fosdick, Tom X Nguyen, Raven Klaugh, LangChain4j, Magnesian, Illia Dulskyi, David Ziegler, Mano Prime, Luis Javier Navarrete Lozano, Erik Bjäreholt, 阿明, Nathan Dryer, Alex, Rainer Wilmers, zynix, TL, Joseph William Delisle, John Villwock, Nathan LeClaire, Willem Michiel, Joguhyik, GodLy, OG, Alps Aficionado, Jeffrey Morgan, ReadyPlayerEmma, Tiffany J. Kim, Sebastain Graf, Spencer Kim, Michael Davis, webtim, Talal Aujan, knownsqashed, John Detwiler, Imad Khwaja, Deo Leter, Jerry Meng, Elijah Stavena, Rooh Singh, Pieter, SuperWojo, Alexandros Triantafyllidis, Stephen Murray, Ai Maven, ya boyyy, Enrico Ros, Ken Nordquist, Deep Realms, Nicholas, Spiking Neurons AB, Elle, Will Dee, Jack West, RoA, Luke @flexchar, Viktor Bowallius, Derek Yates, Subspace Studios, jjj, Toran Billups, Asp the Wyvern, Fen Risland, Ilya, NimbleBox.ai, Chadd, Nitin Borwankar, Emre, Mandus, Leonard Tan, Kalila, K, Trailburnt, S_X, Cory Kujawski Thank you to all my generous patrons and donaters! And thank you again to a16z for their generous grant. <!-- footer end --> # Original model card: OpenOrca's Mistral 7B OpenOrca <p><h1>🐋 TBD 🐋</h1></p> ![OpenOrca Logo](https://huggingface.co/datasets/Open-Orca/OpenOrca/resolve/main/OpenOrcaLogo.png "OpenOrca Logo") [<img src="https://raw.githubusercontent.com/OpenAccess-AI-Collective/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/OpenAccess-AI-Collective/axolotl) # OpenOrca - Mistral - 7B - 8k We have used our own [OpenOrca dataset](https://huggingface.co/datasets/Open-Orca/OpenOrca) to fine-tune on top of [Mistral 7B](https://huggingface.co/mistralai/Mistral-7B-v0.1). This dataset is our attempt to reproduce the dataset generated for Microsoft Research's [Orca Paper](https://arxiv.org/abs/2306.02707). We use [OpenChat](https://huggingface.co/openchat) packing, trained with [Axolotl](https://github.com/OpenAccess-AI-Collective/axolotl). This release is trained on a curated filtered subset of most of our GPT-4 augmented data. It is the same subset of our data as was used in our [OpenOrcaxOpenChat-Preview2-13B model](https://huggingface.co/Open-Orca/OpenOrcaxOpenChat-Preview2-13B). HF Leaderboard evals place this model as #2 for all models smaller than 30B at release time, outperforming all but one 13B model. TBD Want to visualize our full (pre-filtering) dataset? Check out our [Nomic Atlas Map](https://atlas.nomic.ai/map/c1b88b47-2d9b-47e0-9002-b80766792582/2560fd25-52fe-42f1-a58f-ff5eccc890d2). [<img src="https://huggingface.co/Open-Orca/OpenOrca-Preview1-13B/resolve/main/OpenOrca%20Nomic%20Atlas.png" alt="Atlas Nomic Dataset Map" width="400" height="400" />](https://atlas.nomic.ai/map/c1b88b47-2d9b-47e0-9002-b80766792582/2560fd25-52fe-42f1-a58f-ff5eccc890d2) We are in-process with training more models, so keep a look out on our org for releases coming soon with exciting partners. We will also give sneak-peak announcements on our Discord, which you can find here: https://AlignmentLab.ai or on the OpenAccess AI Collective Discord for more information about Axolotl trainer here: https://discord.gg/5y8STgB3P3 # Prompt Template We used [OpenAI's Chat Markup Language (ChatML)](https://github.com/openai/openai-python/blob/main/chatml.md) format, with `<|im_start|>` and `<|im_end|>` tokens added to support this. ## Example Prompt Exchange TBD # Evaluation We have evaluated using the methodology and tools for the HuggingFace Leaderboard, and find that we have significantly improved upon the base model. TBD ## HuggingFaceH4 Open LLM Leaderboard Performance TBD ## GPT4ALL Leaderboard Performance TBD # Dataset We used a curated, filtered selection of most of the GPT-4 augmented data from our OpenOrca dataset, which aims to reproduce the Orca Research Paper dataset. # Training We trained with 8x A6000 GPUs for 62 hours, completing 4 epochs of full fine tuning on our dataset in one training run. Commodity cost was ~$400. # Citation ```bibtex @misc{mukherjee2023orca, title={Orca: Progressive Learning from Complex Explanation Traces of GPT-4}, author={Subhabrata Mukherjee and Arindam Mitra and Ganesh Jawahar and Sahaj Agarwal and Hamid Palangi and Ahmed Awadallah}, year={2023}, eprint={2306.02707}, archivePrefix={arXiv}, primaryClass={cs.CL} } @misc{longpre2023flan, title={The Flan Collection: Designing Data and Methods for Effective Instruction Tuning}, author={Shayne Longpre and Le Hou and Tu Vu and Albert Webson and Hyung Won Chung and Yi Tay and Denny Zhou and Quoc V. Le and Barret Zoph and Jason Wei and Adam Roberts}, year={2023}, eprint={2301.13688}, archivePrefix={arXiv}, primaryClass={cs.AI} } ```
[ -0.5208332538604736, -0.8002527952194214, 0.3338477909564972, 0.05880943685770035, -0.2089557647705078, -0.2194395512342453, 0.0685301348567009, -0.5254702568054199, -0.03703216090798378, 0.34675323963165283, -0.6096621155738831, -0.6052331328392029, -0.26116469502449036, -0.13637548685073853, -0.2835908830165863, 0.977310836315155, 0.11948372423648834, -0.2660870850086212, -0.289315789937973, -0.27072209119796753, -0.12571263313293457, -0.5352737903594971, -0.7398040890693665, -0.2016800194978714, 0.19136729836463928, 0.1891523003578186, 0.7784343957901001, 0.6034501791000366, 0.15936872363090515, 0.38693082332611084, -0.12429480999708176, 0.08522611111402512, -0.34819960594177246, -0.05487659201025963, 0.14012032747268677, -0.2758984863758087, -0.5753296613693237, 0.062143273651599884, 0.5007126927375793, 0.24470864236354828, -0.3306780457496643, 0.2134806513786316, 0.052692342549562454, 0.4903106093406677, -0.5482048392295837, 0.187856063246727, -0.27771371603012085, -0.030207570642232895, -0.13449381291866302, 0.23219552636146545, -0.1741819679737091, -0.15689073503017426, 0.14402920007705688, -0.8666752576828003, 0.12502194941043854, 0.20726023614406586, 1.299184799194336, 0.26073551177978516, -0.5328333377838135, 0.05882815271615982, -0.47083088755607605, 0.9874729514122009, -1.1106159687042236, 0.37091541290283203, 0.2858791947364807, 0.2806519865989685, -0.17448930442333221, -0.9582889080047607, -0.6639410257339478, -0.24981068074703217, -0.11082520335912704, 0.3273603320121765, -0.5754315257072449, 0.05503176152706146, 0.26076745986938477, 0.5837990641593933, -0.6785595417022705, -0.026061950251460075, -0.3290420472621918, -0.1975257843732834, 0.7087804079055786, 0.34790661931037903, 0.2861658036708832, -0.14018186926841736, -0.37551936507225037, -0.3893851935863495, -0.42351600527763367, 0.28664663434028625, 0.14634980261325836, 0.09531285613775253, -0.6412586569786072, 0.5276353359222412, -0.3303025960922241, 0.5520415902137756, 0.19553114473819733, 0.049224890768527985, 0.25156769156455994, -0.4372899830341339, -0.6013495326042175, -0.4512101709842682, 1.3249486684799194, 0.3119274973869324, -0.32824307680130005, 0.18982604146003723, -0.03939016908407211, -0.138846293091774, 0.05323358252644539, -0.89141446352005, -0.2799474895000458, 0.65707927942276, -0.547646701335907, -0.43182292580604553, -0.04034487530589104, -0.6890038847923279, -0.06798136234283447, 0.17082121968269348, 0.5880800485610962, -0.4257154166698456, -0.26558494567871094, 0.0656111016869545, -0.40092283487319946, 0.5131019353866577, 0.3061801791191101, -0.7309911251068115, 0.3767070174217224, 0.35815203189849854, 0.6789900660514832, 0.23365865647792816, -0.18955180048942566, -0.4415857493877411, 0.023853257298469543, -0.06602440029382706, 0.5062710046768188, -0.12324091047048569, -0.4574373662471771, -0.22687232494354248, 0.16343416273593903, 0.14100652933120728, -0.33169740438461304, 0.49587956070899963, -0.21304018795490265, 0.520445704460144, -0.38485339283943176, -0.4117615520954132, -0.2884019613265991, 0.11001886427402496, -0.5749776363372803, 1.2163575887680054, 0.3383415639400482, -0.855812668800354, 0.11489295959472656, -0.5513350963592529, -0.19525912404060364, 0.0369148850440979, -0.04207149147987366, -0.7114815711975098, -0.12599995732307434, 0.36998870968818665, 0.29677310585975647, -0.4743196964263916, -0.08213133364915848, -0.45537155866622925, -0.11551562696695328, 0.22136138379573822, -0.31450068950653076, 1.2556267976760864, 0.27254197001457214, -0.5321509838104248, 0.17605136334896088, -0.7070385217666626, 0.1519298404455185, 0.35882607102394104, -0.22664739191532135, 0.04553419351577759, -0.15526364743709564, 0.10598480701446533, 0.08425489068031311, 0.3517383337020874, -0.4605812728404999, 0.21828730404376984, -0.3647688925266266, 0.725556492805481, 0.5969498753547668, -0.006894432939589024, 0.4576907753944397, -0.5932987332344055, 0.45147615671157837, 0.1869054138660431, 0.5058289170265198, 0.11026447266340256, -0.670886754989624, -0.9178608059883118, -0.27843010425567627, 0.24971799552440643, 0.6005786657333374, -0.6895411014556885, 0.5706101059913635, 0.15025293827056885, -0.7511196136474609, -0.5547239780426025, -0.27165305614471436, 0.3249223828315735, 0.45233243703842163, 0.46717873215675354, -0.23267969489097595, -0.4985239505767822, -0.7843437194824219, 0.046870529651641846, -0.48456043004989624, -0.1386169046163559, 0.5438369512557983, 0.6817277669906616, -0.2450338453054428, 0.7563009858131409, -0.49583858251571655, -0.26119181513786316, -0.039984118193387985, 0.131687194108963, 0.2522963285446167, 0.6761009097099304, 0.7621102929115295, -0.5632221102714539, -0.4293852150440216, -0.05400565266609192, -0.7519900798797607, -0.06071425601840019, 0.022325165569782257, -0.4695868492126465, 0.369881272315979, 0.21073944866657257, -0.917709231376648, 0.6209187507629395, 0.5729460716247559, -0.5250264406204224, 0.7634270191192627, -0.26759451627731323, 0.1361231952905655, -1.1268553733825684, 0.132965549826622, 0.08211307227611542, -0.3123466670513153, -0.45926472544670105, 0.1896262764930725, -0.11556893587112427, 0.03817184641957283, -0.4549003839492798, 0.807104229927063, -0.42392459511756897, 0.06641210615634918, -0.04794734716415405, -0.15269719064235687, 0.3464767634868622, 0.47435271739959717, -0.08327192813158035, 0.6236949563026428, 0.6624897718429565, -0.6670001745223999, 0.44409170746803284, 0.40490424633026123, -0.012401917017996311, 0.3246343433856964, -0.9959325790405273, 0.07817806303501129, 0.08772826194763184, 0.3916310667991638, -1.027600884437561, -0.17065046727657318, 0.543158233165741, -0.6168954372406006, 0.15149764716625214, -0.25711047649383545, -0.29005131125450134, -0.4630476236343384, -0.40862220525741577, 0.34060341119766235, 0.896856963634491, -0.4763055741786957, 0.7200089693069458, 0.38048920035362244, 0.21509318053722382, -0.7282612919807434, -0.7321697473526001, -0.30777496099472046, -0.3716394603252411, -0.6901143193244934, 0.46101582050323486, -0.18931004405021667, -0.23566655814647675, 0.07383661717176437, 0.02150213159620762, -0.09070196002721786, 0.10354079306125641, 0.3340177834033966, 0.26706552505493164, -0.11402036994695663, -0.27511152625083923, 0.13577307760715485, 0.0017145783640444279, 0.13268621265888214, -0.41241157054901123, 0.4827515780925751, -0.3675564229488373, -0.009611035697162151, -0.6275519728660583, 0.2318359613418579, 0.5731173753738403, -0.29897451400756836, 1.009698748588562, 0.8607659339904785, -0.30612701177597046, -0.10461585968732834, -0.40934768319129944, -0.2641581594944, -0.5208491683006287, 0.11884400248527527, -0.29218941926956177, -0.7468891739845276, 0.7351846098899841, 0.42578479647636414, 0.36718350648880005, 0.7970504760742188, 0.4941323697566986, -0.25758251547813416, 1.0964747667312622, 0.5401813983917236, 0.005967673379927874, 0.4341042935848236, -0.6253620982170105, -0.11186550557613373, -0.825888454914093, -0.18928763270378113, -0.5728480815887451, -0.027911709621548653, -0.6558631658554077, -0.47452861070632935, 0.4767972230911255, 0.20072370767593384, -0.6427387595176697, 0.3302662670612335, -0.5997910499572754, -0.06980790197849274, 0.7963062524795532, 0.21318203210830688, 0.14573056995868683, -0.12122919410467148, -0.31676173210144043, 0.10560426115989685, -0.7124028205871582, -0.299736887216568, 0.9590001702308655, 0.3179985284805298, 0.5419006943702698, 0.17693300545215607, 0.6222245097160339, 0.13456887006759644, 0.1822991818189621, -0.5499399900436401, 0.5094096064567566, 0.021084384992718697, -0.5854050517082214, -0.42480167746543884, -0.5584654808044434, -0.8994580507278442, 0.2825133800506592, -0.21264789998531342, -0.741032600402832, 0.2965300977230072, 0.15010970830917358, -0.4961993098258972, 0.2882958650588989, -0.381998211145401, 0.9378930330276489, -0.01057098526507616, -0.3754001557826996, 0.043052684515714645, -0.6112522482872009, 0.3056647479534149, 0.35656270384788513, 0.15950635075569153, -0.15416650474071503, -0.10746762156486511, 0.7239359617233276, -0.963975727558136, 0.7424315810203552, -0.24426676332950592, -0.03763002157211304, 0.5802208781242371, -0.11992618441581726, 0.4884992837905884, 0.1579870879650116, -0.11046544462442398, 0.35601934790611267, 0.22250714898109436, -0.5055185556411743, -0.3368626534938812, 0.5291375517845154, -1.0573840141296387, -0.5966805815696716, -0.498909056186676, -0.4706319570541382, 0.163094624876976, 0.13303011655807495, 0.5061686635017395, 0.34949055314064026, -0.223453551530838, 0.1061776727437973, 0.44874876737594604, -0.4181874692440033, 0.5267122387886047, 0.40922850370407104, -0.26099997758865356, -0.5677011013031006, 0.6235703229904175, -0.09928520768880844, 0.25523242354393005, 0.24575647711753845, 0.21051180362701416, -0.45929571986198425, -0.4404991567134857, -0.7026919722557068, 0.29836276173591614, -0.4209369122982025, -0.36924633383750916, -0.7841139435768127, -0.36072105169296265, -0.5611801743507385, 0.03604239970445633, -0.39163506031036377, -0.47094371914863586, -0.601744532585144, 0.1395157277584076, 0.784058690071106, 0.3531781733036041, -0.3117154836654663, 0.412039190530777, -0.7637479305267334, 0.1998479962348938, 0.3851054608821869, 0.0031717282254248857, 0.09228731691837311, -0.7643229961395264, -0.21210776269435883, 0.29159945249557495, -0.5022419691085815, -0.7161834239959717, 0.6998712420463562, 0.1563948094844818, 0.5568394064903259, 0.31686756014823914, 0.2973894774913788, 0.7170327305793762, -0.19158251583576202, 0.972065806388855, 0.045421648770570755, -1.1107882261276245, 0.4770563840866089, -0.47682565450668335, 0.4214889705181122, 0.2839694023132324, 0.4014466106891632, -0.396902471780777, -0.5094043016433716, -0.7569732666015625, -0.8926648497581482, 0.6037294864654541, 0.4397461712360382, -0.06001070886850357, 0.06188080832362175, 0.33807677030563354, -0.11058513820171356, 0.14881564676761627, -0.8004891276359558, -0.5684091448783875, -0.31011372804641724, -0.13311409950256348, 0.23422880470752716, -0.017398875206708908, -0.19580429792404175, -0.44724491238594055, 0.925351619720459, -0.13738763332366943, 0.6484965682029724, 0.29907479882240295, 0.16528844833374023, -0.18995735049247742, 0.11259127408266068, 0.2513394057750702, 0.47782114148139954, -0.22423994541168213, -0.28649476170539856, 0.17433251440525055, -0.35361191630363464, -0.002269808668643236, 0.3455045521259308, -0.21973462402820587, -0.1653362661600113, 0.07432753592729568, 0.9037258625030518, -0.07977499067783356, -0.4196074604988098, 0.4082874357700348, -0.2998625338077545, -0.47416943311691284, -0.3959614038467407, 0.1854361742734909, 0.20329731702804565, 0.5557447075843811, 0.45886141061782837, -0.2403908222913742, 0.2449728101491928, -0.5067205429077148, 0.1251969188451767, 0.7079067230224609, -0.25503677129745483, -0.12971606850624084, 1.1565684080123901, -0.003014935413375497, 0.009575131349265575, 0.8203456997871399, -0.21051423251628876, -0.4577481150627136, 0.944843590259552, 0.4428846836090088, 0.7363389730453491, -0.05543546378612518, 0.26421085000038147, 0.5425172448158264, 0.14494043588638306, -0.0003165414382237941, 0.4596610963344574, 0.013719641603529453, -0.6653408408164978, -0.19999779760837555, -0.6378254294395447, -0.4109329283237457, 0.23201291263103485, -0.8157703280448914, 0.2621147334575653, -0.5304470062255859, -0.3299645483493805, -0.0417085736989975, 0.2381085902452469, -0.6581423878669739, 0.3152381479740143, 0.12468387186527252, 0.731347382068634, -0.6547842025756836, 0.7058566808700562, 0.7067031860351562, -0.4967453181743622, -0.8674334287643433, -0.2548333406448364, 0.10116472840309143, -0.6536997556686401, 0.09919734299182892, 0.038604021072387695, 0.23789548873901367, 0.21226759254932404, -0.8472732305526733, -0.8876479864120483, 1.383513331413269, 0.07521674782037735, -0.4535622298717499, -0.02158934250473976, 0.05290205031633377, 0.38597095012664795, -0.26251405477523804, 0.6843327283859253, 0.4564245343208313, 0.40200841426849365, 0.14382898807525635, -0.9379233121871948, 0.41447606682777405, -0.23847056925296783, -0.05536988005042076, 0.14864838123321533, -1.1144676208496094, 1.1450368165969849, -0.27469420433044434, -0.19188173115253448, 0.4825500249862671, 0.9623643159866333, 0.6194738745689392, 0.12960346043109894, 0.4101899266242981, 0.8311810493469238, 0.7950217127799988, -0.2144673615694046, 1.0146719217300415, -0.20829173922538757, 0.6355150938034058, 0.7442083358764648, 0.003201692597940564, 0.7462672591209412, 0.22946344316005707, -0.42617979645729065, 0.6020025610923767, 0.7323542833328247, -0.21507671475410461, 0.37552347779273987, 0.038120344281196594, -0.28614839911460876, -0.08792761713266373, -0.07639309763908386, -0.6275119185447693, 0.2705234885215759, 0.3620496988296509, -0.2105908840894699, -0.031311050057411194, -0.08785990625619888, 0.08568353205919266, -0.4904550611972809, -0.18881429731845856, 0.6169999837875366, 0.2783221900463104, -0.28622007369995117, 0.9424945712089539, 0.13049669563770294, 0.7084173560142517, -0.4776897430419922, -0.10505300015211105, -0.27163732051849365, 0.04189828038215637, -0.1659264862537384, -0.6003611087799072, 0.06550799310207367, -0.20338542759418488, -0.07256314903497696, 0.06441477686166763, 0.5051088929176331, -0.3257308602333069, -0.40959596633911133, 0.2999836504459381, 0.4816974103450775, 0.21613889932632446, -0.10006889700889587, -1.0180610418319702, 0.2516459822654724, 0.0778033584356308, -0.5305221080780029, 0.3112899661064148, 0.4731321930885315, 0.16147761046886444, 0.6675205230712891, 0.660807192325592, -0.2825702726840973, -0.002610833616927266, -0.21113675832748413, 0.9227232933044434, -0.7594017386436462, -0.3868764042854309, -0.8117787837982178, 0.8338319063186646, -0.017669517546892166, -0.45774999260902405, 0.7922640442848206, 0.4550682604312897, 0.7444101572036743, 0.032626066356897354, 0.8321875929832458, -0.3834390342235565, 0.16785003244876862, -0.3211703896522522, 0.8966973423957825, -0.8156076669692993, 0.08472365140914917, -0.15872177481651306, -0.7246423363685608, 0.07857298851013184, 0.675395131111145, 0.003485155524685979, 0.24542516469955444, 0.5355409383773804, 0.7115939259529114, 0.06292499601840973, -0.013588658533990383, 0.22736303508281708, 0.49753713607788086, 0.343258798122406, 0.7495893836021423, 0.6224690675735474, -0.930962860584259, 0.5962220430374146, -0.5887115597724915, -0.25128373503685, -0.15217368304729462, -0.7807551622390747, -0.8699076771736145, -0.5524797439575195, -0.41318145394325256, -0.7347604632377625, -0.039364397525787354, 0.778611958026886, 0.8345410823822021, -0.6812984943389893, -0.3052003085613251, -0.15407855808734894, -0.07822936028242111, -0.30080047249794006, -0.32821419835090637, 0.3148185908794403, 0.06430503726005554, -0.8436121344566345, 0.2386605590581894, -0.07274047285318375, 0.41985884308815, -0.2971445620059967, -0.1504046469926834, -0.17201341688632965, 0.12149423360824585, 0.37818145751953125, 0.6013835668563843, -0.6433108448982239, -0.09079165756702423, -0.0821373388171196, -0.16868144273757935, 0.17423202097415924, 0.127391055226326, -0.8640402555465698, 0.0143766263499856, 0.47761785984039307, 0.20320649445056915, 0.7541351318359375, 0.033885326236486435, 0.6756068468093872, -0.4188270568847656, 0.2765946388244629, 0.14610649645328522, 0.34590476751327515, 0.09478343278169632, -0.4902693033218384, 0.45540696382522583, 0.1358436644077301, -0.7434656620025635, -0.7645999193191528, -0.08154701441526413, -1.1307018995285034, -0.24171854555606842, 0.9683504104614258, -0.2151532620191574, -0.5233274698257446, 0.030723294243216515, -0.12481895834207535, 0.44760313630104065, -0.5923579335212708, 0.4609200358390808, 0.40274229645729065, -0.11709588021039963, -0.2957935929298401, -0.5505889654159546, 0.5932329893112183, 0.432321697473526, -0.9105104804039001, -0.09908822923898697, 0.47117000818252563, 0.31862857937812805, -0.09315580129623413, 0.7154955863952637, -0.11364252865314484, 0.3521902859210968, 0.09372840821743011, 0.19915904104709625, -0.02193651720881462, 0.015189535915851593, -0.1931152492761612, -0.080400750041008, -0.16193744540214539, -0.22673726081848145 ]
aari1995/German_Semantic_STS_V2
aari1995
"2023-06-29T11:39:00Z"
12,689
27
sentence-transformers
[ "sentence-transformers", "pytorch", "safetensors", "bert", "gBERT-large", "feature-extraction", "sentence-similarity", "transformers", "de", "dataset:stsb_multi_mt", "endpoints_compatible", "region:us" ]
sentence-similarity
"2022-11-17T09:57:45Z"
--- pipeline_tag: sentence-similarity language: - de datasets: - stsb_multi_mt tags: - gBERT-large - sentence-transformers - feature-extraction - sentence-similarity - transformers --- # German_Semantic_STS_V2 This is a [sentence-transformers](https://www.SBERT.net) model: It maps sentences & paragraphs to a 1024 dimensional dense vector space and can be used for tasks like clustering or semantic search. Special thanks to [deepset](https://huggingface.co/deepset/) for providing the model gBERT-large and also to [Philip May](https://huggingface.co/philipMay) for the Translation of the dataset and chats about the topic. Model score after fine-tuning scores best, compared to these models: | Model Name | Spearman | |---------------------------------------------------------------|-------------------| | xlm-r-distilroberta-base-paraphrase-v1 | 0.8079 | | [xlm-r-100langs-bert-base-nli-stsb-mean-tokens](https://huggingface.co/sentence-transformers/xlm-r-100langs-bert-base-nli-stsb-mean-tokens) | 0.7877 | | xlm-r-bert-base-nli-stsb-mean-tokens | 0.7877 | | [roberta-large-nli-stsb-mean-tokens](https://huggingface.co/sentence-transformers/roberta-large-nli-stsb-mean-tokens) | 0.6371 | | [T-Systems-onsite/<br/>german-roberta-sentence-transformer-v2](https://huggingface.co/T-Systems-onsite/german-roberta-sentence-transformer-v2) | 0.8529 | | [paraphrase-multilingual-mpnet-base-v2](https://huggingface.co/sentence-transformers/paraphrase-multilingual-mpnet-base-v2) | 0.8355 | | [T-Systems-onsite/<br/>cross-en-de-roberta-sentence-transformer](https://huggingface.co/T-Systems-onsite/<br/>cross-en-de-roberta-sentence-transformer) | 0.8550 | | **aari1995/German_Semantic_STS_V2** | **0.8626** | <!--- Describe your model here --> ## 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('aari1995/German_Semantic_STS_V2') 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('aari1995/German_Semantic_STS_V2') model = AutoModel.from_pretrained('aari1995/German_Semantic_STS_V2') # 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, mean pooling. sentence_embeddings = mean_pooling(model_output, encoded_input['attention_mask']) print("Sentence embeddings:") print(sentence_embeddings) ``` ## Evaluation Results <!--- Describe how your model was evaluated --> For an automated evaluation of this model, see the *Sentence Embeddings Benchmark*: [https://seb.sbert.net](https://seb.sbert.net?model_name={MODEL_NAME}) ## Training The model was trained with the parameters: **DataLoader**: `torch.utils.data.dataloader.DataLoader` of length 1438 with parameters: ``` {'batch_size': 4, 'sampler': 'torch.utils.data.sampler.RandomSampler', 'batch_sampler': 'torch.utils.data.sampler.BatchSampler'} ``` **Loss**: `sentence_transformers.losses.ContrastiveLoss.ContrastiveLoss` with parameters: ``` {'distance_metric': 'SiameseDistanceMetric.COSINE_DISTANCE', 'margin': 0.5, 'size_average': True} ``` Parameters of the fit()-Method: ``` { "epochs": 4, "evaluation_steps": 500, "evaluator": "sentence_transformers.evaluation.EmbeddingSimilarityEvaluator.EmbeddingSimilarityEvaluator", "max_grad_norm": 1, "optimizer_class": "<class 'torch.optim.adamw.AdamW'>", "optimizer_params": { "lr": 5e-06 }, "scheduler": "WarmupLinear", "steps_per_epoch": null, "warmup_steps": 576, "weight_decay": 0.01 } ``` ## Full Model Architecture ``` SentenceTransformer( (0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: BertModel (1): Pooling({'word_embedding_dimension': 1024, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False}) ) ``` ## Citing & Authors <!--- Describe where people can find more information --> The base model is trained by deepset. The dataset was published / translated by Philip May. The model was fine-tuned by Aaron Chibb.
[ -0.281895250082016, -0.8848307132720947, 0.3898162543773651, 0.2636304497718811, -0.3242112994194031, -0.4706838130950928, -0.3435397148132324, -0.06545333564281464, 0.17761334776878357, 0.40616297721862793, -0.6620010733604431, -0.6958743333816528, -0.8155568242073059, 0.005882589612156153, -0.42866775393486023, 0.8781344294548035, -0.19832760095596313, 0.14661896228790283, -0.15153174102306366, -0.22542591392993927, -0.2759491205215454, -0.3230975866317749, -0.4339389204978943, -0.3859381675720215, 0.2297700047492981, 0.2455650418996811, 0.6832467913627625, 0.5155028104782104, 0.3515269160270691, 0.3857130706310272, -0.09011701494455338, 0.02429373189806938, -0.3784538209438324, -0.06576863676309586, -0.12719862163066864, -0.36479708552360535, -0.09686528146266937, 0.14158424735069275, 0.566631019115448, 0.5388702154159546, -0.10848738998174667, 0.21240973472595215, 0.01401510275900364, 0.37103399634361267, -0.30861470103263855, 0.38219332695007324, -0.5995770692825317, 0.0687439814209938, 0.0665006935596466, 0.14809146523475647, -0.4204168915748596, -0.07516065984964371, 0.2762240469455719, -0.4558948576450348, 0.314835786819458, 0.17612458765506744, 1.3149806261062622, 0.4326110780239105, -0.3535633683204651, -0.40310797095298767, -0.2649531662464142, 0.877099871635437, -0.9325098395347595, 0.3573509156703949, 0.30032238364219666, 0.010195808485150337, -0.12809208035469055, -1.0186437368392944, -0.7750371694564819, -0.13494303822517395, -0.48798704147338867, 0.27489033341407776, -0.45454761385917664, -0.09063868969678879, 0.06392032653093338, 0.2553040087223053, -0.7900585532188416, 0.07402355223894119, -0.44103917479515076, -0.24915963411331177, 0.6056774258613586, 0.09049122780561447, 0.3195883631706238, -0.6037455201148987, -0.4294756054878235, -0.4344210624694824, -0.19879016280174255, -0.06566350162029266, 0.14221854507923126, 0.16357721388339996, -0.3953361213207245, 0.8214165568351746, -0.24552127718925476, 0.611855149269104, -0.03898421674966812, 0.17351697385311127, 0.7149108648300171, -0.38651737570762634, -0.22729219496250153, -0.1103559136390686, 1.123410701751709, 0.48491013050079346, 0.3196101486682892, -0.051735565066337585, -0.1980447620153427, 0.18648889660835266, 0.09807485342025757, -0.8739031553268433, -0.36401891708374023, 0.22553446888923645, -0.5043409466743469, -0.2925437092781067, 0.1961357295513153, -0.6971550583839417, 0.011616579256951809, -0.0858784094452858, 0.6727288961410522, -0.7167267203330994, -0.024967778474092484, 0.40041235089302063, -0.2759647071361542, 0.35158029198646545, -0.21120211482048035, -0.6341299414634705, 0.15361197292804718, 0.3502421975135803, 0.894999623298645, 0.02032836340367794, -0.5056434869766235, -0.23030683398246765, -0.060826174914836884, -0.01800188422203064, 0.6478490233421326, -0.3008154034614563, -0.17399710416793823, 0.11213046312332153, 0.34092238545417786, -0.45823249220848083, -0.2929786443710327, 0.7638565897941589, -0.33022287487983704, 0.8386805057525635, 0.06770539283752441, -0.9499160647392273, -0.21072189509868622, 0.1527957171201706, -0.5761715173721313, 1.242082118988037, 0.25990167260169983, -0.9123287796974182, 0.22163482010364532, -0.7575883865356445, -0.3460829257965088, -0.082706019282341, -0.054707121104002, -0.5868531465530396, 0.07787907868623734, 0.4454238712787628, 0.7041047811508179, -0.08872616291046143, 0.297873318195343, -0.15243440866470337, -0.3052736520767212, 0.1841246336698532, -0.3561912775039673, 1.0774871110916138, 0.12756304442882538, -0.4770698845386505, 0.23857253789901733, -0.7097274661064148, 0.025545582175254822, 0.4022243916988373, -0.16523534059524536, -0.17257355153560638, -0.10346274822950363, 0.3962119221687317, 0.5020530819892883, 0.31813183426856995, -0.6455633640289307, -0.038960810750722885, -0.6516109108924866, 0.6990559697151184, 0.6117358803749084, 0.01438866462558508, 0.4135650396347046, -0.26438480615615845, 0.2389144003391266, 0.3021085560321808, -0.004084283486008644, -0.07310276478528976, -0.4576864540576935, -1.0871520042419434, -0.19408456981182098, 0.356654554605484, 0.6962681412696838, -0.7738462686538696, 1.122315764427185, -0.6140133142471313, -0.6663995385169983, -0.845858633518219, 0.07844466716051102, 0.2705499529838562, 0.46818068623542786, 0.6629204154014587, -0.005321397911757231, -0.4727104604244232, -1.096471905708313, -0.1409262865781784, 0.014713598415255547, -0.1567913293838501, 0.2672737240791321, 0.8467524647712708, -0.49753978848457336, 0.9280608296394348, -0.7058665156364441, -0.5074388980865479, -0.42407408356666565, 0.125632643699646, 0.3195277750492096, 0.5967121124267578, 0.5290641784667969, -0.759604275226593, -0.35673627257347107, -0.4705222249031067, -0.8138880133628845, 0.008296392858028412, -0.12205471098423004, -0.20139089226722717, 0.2666049897670746, 0.636246383190155, -0.9172382354736328, 0.2710309326648712, 0.5778106451034546, -0.7488664388656616, 0.3196081519126892, -0.34117844700813293, -0.17986533045768738, -1.5358664989471436, 0.11295422911643982, 0.12395793199539185, -0.1686774343252182, -0.39656880497932434, 0.07769054919481277, 0.07616305351257324, -0.0084536112844944, -0.5220195055007935, 0.6372750997543335, -0.3578508496284485, 0.2565563917160034, 0.01161058060824871, 0.4616323709487915, 0.028109192848205566, 0.6251742839813232, -0.057815320789813995, 0.7008883357048035, 0.5253071784973145, -0.514914870262146, 0.3773856461048126, 0.7712761759757996, -0.5930889248847961, 0.2507862150669098, -0.9088379740715027, -0.021416805684566498, -0.11375618726015091, 0.3673534095287323, -1.1075026988983154, -0.21849314868450165, 0.27099016308784485, -0.5912317633628845, 0.058708302676677704, 0.3172979950904846, -0.7665542364120483, -0.5307854413986206, -0.3186093270778656, -0.019296374171972275, 0.5537277460098267, -0.41650667786598206, 0.6173062920570374, 0.23483088612556458, -0.04885084927082062, -0.46328112483024597, -1.0073527097702026, 0.09881222248077393, -0.2087806910276413, -0.8451538681983948, 0.6146263480186462, -0.0008831123122945428, 0.06807436048984528, 0.2969420254230499, 0.19058635830879211, 0.1015593484044075, 0.03731584548950195, -0.035442452877759933, 0.34169507026672363, -0.053631845861673355, 0.14205564558506012, 0.15824873745441437, -0.22512075304985046, 0.05953320488333702, -0.20030641555786133, 0.8609431982040405, -0.2317991554737091, -0.09249390661716461, -0.49338236451148987, 0.2720312476158142, 0.41848838329315186, -0.15079976618289948, 1.127870798110962, 1.1009684801101685, -0.41992807388305664, 0.013960417360067368, -0.5861278772354126, -0.3111813962459564, -0.4710114896297455, 0.6745953559875488, -0.373597651720047, -1.0349549055099487, 0.4569719433784485, 0.1719292253255844, 0.01685863360762596, 0.9050867557525635, 0.6905600428581238, -0.03371136635541916, 0.9241989850997925, 0.5053678750991821, -0.17869223654270172, 0.4479987919330597, -0.5097628831863403, 0.1615360826253891, -0.743963360786438, -0.14316345751285553, -0.29724347591400146, -0.3063603937625885, -0.8235399723052979, -0.38660746812820435, 0.2540441155433655, -0.03906326740980148, -0.2959095239639282, 0.7158608436584473, -0.5144801735877991, 0.1592153012752533, 0.7331867814064026, 0.1688322275876999, -0.09226736426353455, -0.018315885215997696, -0.36139625310897827, -0.09996259212493896, -0.7317212820053101, -0.5695894956588745, 0.8080375790596008, 0.46581295132637024, 0.3746228516101837, -0.10065582394599915, 0.6488991379737854, 0.040405675768852234, -0.12365636229515076, -0.7164082527160645, 0.6365072727203369, -0.24522317945957184, -0.4854806363582611, -0.3436445891857147, -0.39210692048072815, -0.9070598483085632, 0.43095508217811584, -0.23455366492271423, -0.7330236434936523, -0.0262162983417511, -0.22114457190036774, -0.18265077471733093, 0.09964624792337418, -0.8761285543441772, 1.2187564373016357, 0.06722431629896164, -0.014755063690245152, -0.24578188359737396, -0.8956488966941833, 0.08131812512874603, 0.1738310009241104, 0.12066172063350677, -0.1147996261715889, -0.058892376720905304, 0.9506305456161499, -0.24263396859169006, 0.8187821507453918, -0.16247165203094482, 0.13255803287029266, 0.22429922223091125, -0.23370516300201416, 0.46047061681747437, -0.16420836746692657, -0.044222794473171234, 0.2414475381374359, 0.025592364370822906, -0.4434063136577606, -0.4986904561519623, 0.6821936964988708, -0.9433687329292297, -0.42338570952415466, -0.4136880934238434, -0.5942953824996948, -0.07472290098667145, 0.3540895879268646, 0.5457316637039185, 0.22120791673660278, -0.152182936668396, 0.5112059116363525, 0.4968605041503906, -0.3867790400981903, 0.5482375621795654, 0.3011991083621979, 0.033214353024959564, -0.5179375410079956, 0.6578630208969116, 0.04807916656136513, 0.08077500015497208, 0.3029193878173828, 0.17006203532218933, -0.4331124424934387, -0.2838999927043915, -0.42804569005966187, 0.4838148355484009, -0.7294658422470093, -0.18108628690242767, -1.0147463083267212, -0.4614703953266144, -0.7401081919670105, -0.01117317657917738, -0.22755716741085052, -0.44578054547309875, -0.4802686274051666, -0.39328429102897644, 0.3377617299556732, 0.3690899610519409, 0.17541608214378357, 0.4572705626487732, -0.7037219405174255, 0.1751686930656433, -0.029281843453645706, 0.17745263874530792, -0.25382956862449646, -0.7881120443344116, -0.32154008746147156, 0.02695346623659134, -0.29817062616348267, -0.812168538570404, 0.6026629209518433, 0.17690546810626984, 0.5499876737594604, 0.13524313271045685, 0.07136189192533493, 0.5567642450332642, -0.5993742346763611, 0.9814209938049316, 0.08129022270441055, -1.0369319915771484, 0.5350101590156555, -0.14093580842018127, 0.514403760433197, 0.550036609172821, 0.272619366645813, -0.6659215092658997, -0.4676514267921448, -0.8516117334365845, -1.1562221050262451, 0.7505910396575928, 0.4975055158138275, 0.5009362697601318, -0.23727940022945404, 0.27470847964286804, -0.25147154927253723, 0.1173284500837326, -0.9613454937934875, -0.4707182049751282, -0.3389185070991516, -0.7268983721733093, -0.25149106979370117, -0.2830284535884857, 0.04245105758309364, -0.3655848503112793, 0.9103516936302185, 0.0035087016876786947, 0.504095196723938, 0.30108851194381714, -0.40659087896347046, 0.2639075815677643, 0.21810872852802277, 0.5085543394088745, 0.29026493430137634, -0.014235208742320538, 0.0835506021976471, 0.43975767493247986, -0.36522340774536133, -0.05976346507668495, 0.49364861845970154, -0.19883586466312408, 0.25453701615333557, 0.4805396795272827, 1.0842839479446411, 0.41658246517181396, -0.6240003705024719, 0.7914345264434814, -0.006470798514783382, -0.35280144214630127, -0.5530053377151489, -0.03471588343381882, 0.2690657079219818, 0.33724501729011536, 0.20246239006519318, -0.15925094485282898, 0.01009775884449482, -0.1852526068687439, 0.42010653018951416, 0.25269612669944763, -0.42217856645584106, -0.10922792553901672, 0.7162869572639465, -0.04816281422972679, -0.1921444684267044, 0.8771858215332031, -0.23598265647888184, -0.6789589524269104, 0.3960895240306854, 0.592746376991272, 0.9406837224960327, -0.008542965166270733, 0.24458445608615875, 0.5001614093780518, 0.3455398380756378, -0.0390947163105011, 0.0669441819190979, 0.18166720867156982, -0.9788013100624084, -0.20599648356437683, -0.7545502185821533, 0.15053556859493256, 0.09101125597953796, -0.6502249836921692, 0.43016135692596436, 0.004019415006041527, -0.04569707065820694, -0.049891285598278046, 0.02859223261475563, -0.8257468342781067, 0.23662182688713074, 0.06138855591416359, 1.0060466527938843, -1.0138168334960938, 0.9066250920295715, 0.6465311646461487, -0.6811389327049255, -0.7538898587226868, -0.000490547448862344, -0.27249881625175476, -0.9139785766601562, 0.49445295333862305, 0.3924590051174164, 0.1838056892156601, 0.28858107328414917, -0.4869248569011688, -0.9349941611289978, 1.3785667419433594, 0.281049907207489, -0.3663320541381836, -0.2751089632511139, 0.16102918982505798, 0.5876380205154419, -0.3265821933746338, 0.27271392941474915, 0.6143098473548889, 0.4728354811668396, 0.06503789871931076, -0.783437967300415, 0.23939573764801025, -0.36719027161598206, 0.22952383756637573, -0.09325496852397919, -0.637279748916626, 0.7948470711708069, 0.08149340003728867, -0.17703630030155182, 0.07839015871286392, 0.9374056458473206, 0.23776103556156158, -0.08310694992542267, 0.5392695665359497, 0.8801905512809753, 0.5716054439544678, -0.09835418313741684, 1.0402902364730835, -0.48361843824386597, 0.815653920173645, 1.0124529600143433, 0.12014317512512207, 1.0030051469802856, 0.5262972116470337, -0.07975663244724274, 0.6957342028617859, 0.5713430047035217, -0.419882208108902, 0.6057002544403076, 0.0858580693602562, 0.006486160214990377, -0.0898282378911972, 0.10284318029880524, -0.18371638655662537, 0.5744544267654419, 0.2263006716966629, -0.6520289778709412, -0.20736625790596008, 0.09164226800203323, 0.3158242106437683, -0.013131613843142986, 0.1472495049238205, 0.747117280960083, 0.11400700360536575, -0.5515989065170288, 0.4335983991622925, 0.3138694167137146, 0.8793985247612, -0.4880630075931549, 0.23814721405506134, 0.07298336923122406, 0.3990093171596527, 0.0067902822047472, -0.7310904860496521, 0.40174564719200134, -0.17792755365371704, -0.06833001971244812, -0.23808503150939941, 0.5999929904937744, -0.6502960920333862, -0.7964143753051758, 0.480576753616333, 0.5765615701675415, 0.06270302087068558, 0.029653044417500496, -1.1365827322006226, -0.0637160912156105, 0.034727808088064194, -0.6592972278594971, 0.09766478836536407, 0.32397401332855225, 0.2604577839374542, 0.5312666893005371, 0.3980651795864105, -0.16300883889198303, 0.05128292366862297, 0.1233384907245636, 0.8412171006202698, -0.6995239853858948, -0.4865941107273102, -1.0350888967514038, 0.6400281190872192, -0.3336836099624634, -0.5151413083076477, 0.8182095289230347, 0.6096364855766296, 0.9870193004608154, -0.1653691530227661, 0.6031849980354309, -0.26374319195747375, 0.40979596972465515, -0.6243952512741089, 0.8639347553253174, -0.5200530886650085, -0.10320966690778732, -0.2821808159351349, -0.914973258972168, -0.27820196747779846, 0.9181370139122009, -0.37563881278038025, 0.09371302276849747, 0.8473870158195496, 0.8849449753761292, -0.07754596322774887, -0.1489066183567047, 0.1264030784368515, 0.4579888582229614, 0.2747775614261627, 0.5029728412628174, 0.30268022418022156, -0.9118358492851257, 0.6906648278236389, -0.4273175895214081, -0.05640190839767456, -0.04743491858243942, -0.6696068048477173, -0.9247271418571472, -0.8250348567962646, -0.40235430002212524, -0.5195614099502563, -0.1824762523174286, 1.117752194404602, 0.5013636350631714, -0.8420010209083557, -0.07466955482959747, -0.2654869854450226, -0.2887393534183502, -0.08362171053886414, -0.3355776071548462, 0.6592469215393066, -0.5549907684326172, -0.8827853202819824, 0.23009978234767914, -0.18857064843177795, 0.06695602834224701, -0.23896141350269318, 0.04524863138794899, -0.5226206183433533, 0.10530894994735718, 0.5898956060409546, -0.376024454832077, -0.8373467922210693, -0.3930695950984955, 0.12783567607402802, -0.37679412961006165, -0.08584390580654144, 0.2592642605304718, -0.5821130871772766, 0.17809812724590302, 0.40668582916259766, 0.5911203026771545, 0.764668345451355, -0.19570210576057434, 0.40694019198417664, -0.7692619562149048, 0.33664214611053467, 0.15041066706180573, 0.682177722454071, 0.41481658816337585, -0.31551411747932434, 0.5880246162414551, 0.3150995373725891, -0.46950218081474304, -0.6009988784790039, -0.007472391705960035, -1.0513944625854492, -0.3823305070400238, 1.3045727014541626, -0.2981874346733093, -0.3233994245529175, 0.21938593685626984, -0.21870258450508118, 0.5250024199485779, -0.24532245099544525, 0.7408153414726257, 1.0243525505065918, 0.10435532033443451, -0.13711343705654144, -0.45449426770210266, 0.2711939513683319, 0.6072179079055786, -0.6236584782600403, -0.18594428896903992, 0.3986384868621826, 0.46143069863319397, 0.18165220320224762, 0.32540467381477356, -0.10893388092517853, -0.014234289526939392, 0.011357189156115055, 0.07795874029397964, -0.0057955170050263405, 0.07306458801031113, -0.367717981338501, 0.08672559261322021, -0.4038063883781433, -0.33621513843536377 ]
facebook/wav2vec2-large-960h
facebook
"2022-04-05T16:40:42Z"
12,686
15
transformers
[ "transformers", "pytorch", "wav2vec2", "automatic-speech-recognition", "speech", "en", "dataset:librispeech_asr", "arxiv:2006.11477", "license:apache-2.0", "endpoints_compatible", "has_space", "region:us" ]
automatic-speech-recognition
"2022-03-02T23:29:05Z"
--- language: en datasets: - librispeech_asr tags: - speech license: apache-2.0 --- # Wav2Vec2-Large-960h [Facebook's Wav2Vec2](https://ai.facebook.com/blog/wav2vec-20-learning-the-structure-of-speech-from-raw-audio/) The large model pretrained and fine-tuned on 960 hours of Librispeech on 16kHz sampled speech audio. When using the model make sure that your speech input is also sampled at 16Khz. [Paper](https://arxiv.org/abs/2006.11477) Authors: Alexei Baevski, Henry Zhou, Abdelrahman Mohamed, Michael Auli **Abstract** We show for the first time that learning powerful representations from speech audio alone followed by fine-tuning on transcribed speech can outperform the best semi-supervised methods while being conceptually simpler. wav2vec 2.0 masks the speech input in the latent space and solves a contrastive task defined over a quantization of the latent representations which are jointly learned. Experiments using all labeled data of Librispeech achieve 1.8/3.3 WER on the clean/other test sets. When lowering the amount of labeled data to one hour, wav2vec 2.0 outperforms the previous state of the art on the 100 hour subset while using 100 times less labeled data. Using just ten minutes of labeled data and pre-training on 53k hours of unlabeled data still achieves 4.8/8.2 WER. This demonstrates the feasibility of speech recognition with limited amounts of labeled data. The original model can be found under https://github.com/pytorch/fairseq/tree/master/examples/wav2vec#wav2vec-20. # Usage To transcribe audio files the model can be used as a standalone acoustic model as follows: ```python from transformers import Wav2Vec2Processor, Wav2Vec2ForCTC from datasets import load_dataset import torch # load model and processor processor = Wav2Vec2Processor.from_pretrained("facebook/wav2vec2-large-960h") model = Wav2Vec2ForCTC.from_pretrained("facebook/wav2vec2-large-960h") # load dummy dataset and read soundfiles ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation") # tokenize input_values = processor(ds[0]["audio"]["array"],, return_tensors="pt", padding="longest").input_values # Batch size 1 # retrieve logits logits = model(input_values).logits # take argmax and decode predicted_ids = torch.argmax(logits, dim=-1) transcription = processor.batch_decode(predicted_ids) ``` ## Evaluation This code snippet shows how to evaluate **facebook/wav2vec2-large-960h** on LibriSpeech's "clean" and "other" test data. ```python from datasets import load_dataset from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor import soundfile as sf import torch from jiwer import wer librispeech_eval = load_dataset("librispeech_asr", "clean", split="test") model = Wav2Vec2ForCTC.from_pretrained("facebook/wav2vec2-large-960h").to("cuda") processor = Wav2Vec2Processor.from_pretrained("facebook/wav2vec2-large-960h") def map_to_pred(batch): input_values = processor(batch["audio"]["array"], return_tensors="pt", padding="longest").input_values with torch.no_grad(): logits = model(input_values.to("cuda")).logits predicted_ids = torch.argmax(logits, dim=-1) transcription = processor.batch_decode(predicted_ids) batch["transcription"] = transcription return batch result = librispeech_eval.map(map_to_pred, batched=True, batch_size=1, remove_columns=["speech"]) print("WER:", wer(result["text"], result["transcription"])) ``` *Result (WER)*: | "clean" | "other" | |---|---| | 2.8 | 6.3 |
[ -0.19972755014896393, -0.6348516345024109, 0.17414036393165588, 0.16749554872512817, -0.18586298823356628, -0.16691313683986664, -0.5382614731788635, -0.576479971408844, -0.02480347454547882, 0.1710500419139862, -0.5741364359855652, -0.5692833065986633, -0.5918076038360596, -0.40195339918136597, -0.4182118773460388, 0.9478756189346313, 0.2678358852863312, 0.0984911173582077, 0.08546333760023117, -0.13295668363571167, -0.4042682349681854, -0.2740943133831024, -0.8868633508682251, -0.4431054890155792, 0.25781193375587463, 0.19012795388698578, 0.2170320451259613, 0.20308555662631989, 0.34049662947654724, 0.33724910020828247, -0.23693618178367615, 0.06220981106162071, -0.7065653204917908, -0.08023172616958618, 0.12868045270442963, -0.3830960988998413, -0.2782089114189148, 0.28295356035232544, 0.5816117525100708, 0.471605122089386, -0.2090645432472229, 0.5073019862174988, 0.09049572795629501, 0.42201584577560425, -0.3069135248661041, 0.34373441338539124, -0.5941604375839233, -0.20178112387657166, -0.12960600852966309, -0.09724843502044678, -0.615007221698761, -0.11967428773641586, 0.14839228987693787, -0.5269257426261902, 0.1831069439649582, -0.22486057877540588, 0.8804545998573303, 0.23127692937850952, -0.33113354444503784, -0.4129661023616791, -0.9752494096755981, 0.870313823223114, -0.635377824306488, 0.7434921860694885, 0.4602195918560028, 0.2175188958644867, -0.058325812220573425, -1.1380014419555664, -0.43934929370880127, -0.054315850138664246, 0.307057648897171, 0.4502798020839691, -0.3213918209075928, 0.0794597640633583, 0.41773244738578796, 0.2725752294063568, -0.6633269190788269, 0.14265845715999603, -0.9112034440040588, -0.49721887707710266, 0.8029972314834595, -0.33746030926704407, -0.014725522138178349, 0.009356199763715267, -0.341838538646698, -0.5863351225852966, -0.25214457511901855, 0.4654412865638733, 0.31406790018081665, 0.15973280370235443, -0.4014681875705719, 0.41579583287239075, 0.08933243900537491, 0.6063153147697449, 0.04586270451545715, -0.40631183981895447, 0.6939579248428345, -0.15612533688545227, -0.12488574534654617, 0.43480953574180603, 0.8469002842903137, 0.1828322857618332, 0.17914825677871704, 0.1173345297574997, -0.17146001756191254, 0.1625131517648697, -0.1911427527666092, -0.8051654696464539, -0.5244086980819702, 0.4605713486671448, -0.4109281599521637, 0.10039395093917847, 0.13755285739898682, -0.258304238319397, -0.11973562091588974, -0.2737901210784912, 0.9687173962593079, -0.5279777646064758, -0.26127004623413086, 0.1604403406381607, -0.27898839116096497, 0.2264358401298523, -0.08420184254646301, -0.8145767450332642, 0.14841845631599426, 0.48750433325767517, 0.847842276096344, 0.13342775404453278, -0.08534178137779236, -0.6149985194206238, -0.06719767302274704, -0.26868999004364014, 0.48131880164146423, -0.09299155324697495, -0.5447658896446228, -0.27988719940185547, -0.12223881483078003, 0.10593277215957642, -0.621256411075592, 0.7547610998153687, -0.40933647751808167, 0.2432301938533783, -0.07641976326704025, -0.6900432705879211, -0.2715003490447998, -0.5966010689735413, -0.578423798084259, 1.2130318880081177, 0.14427219331264496, -0.5996326208114624, 0.2698681354522705, -0.3808765411376953, -0.6377539038658142, -0.33451274037361145, -0.04618695005774498, -0.6141372323036194, 0.14268933236598969, 0.19864106178283691, 0.4504663944244385, -0.19992245733737946, 0.028743363916873932, -0.1594594419002533, -0.6342005133628845, 0.4070275127887726, -0.5449002981185913, 1.104993224143982, 0.3009255528450012, -0.5330144762992859, 0.1977817565202713, -0.9093700647354126, 0.1811930388212204, 0.05490034818649292, -0.45209959149360657, 0.12710288166999817, -0.1428174525499344, 0.39563852548599243, 0.26354554295539856, 0.12916339933872223, -0.5770521759986877, -0.18792463839054108, -0.7550835013389587, 0.6363150477409363, 0.6865445971488953, -0.13600856065750122, 0.34281083941459656, -0.31898853182792664, -0.06075327843427658, -0.2768861651420593, -0.039806611835956573, 0.14161746203899384, -0.4424225389957428, -0.6159924864768982, -0.4534431993961334, 0.3799777328968048, 0.4813252091407776, -0.2279234677553177, 0.6574345827102661, -0.12421136349439621, -0.9041401147842407, -0.943342924118042, 0.01376118790358305, 0.3157830536365509, 0.4832916855812073, 0.6686211824417114, -0.20265285670757294, -0.7930739521980286, -0.7784153819084167, -0.10212311893701553, -0.1103593185544014, -0.25429603457450867, 0.270887553691864, 0.2650452256202698, -0.32505154609680176, 0.6057687997817993, -0.2480117827653885, -0.42155295610427856, -0.2313428670167923, 0.1833583414554596, 0.6254968047142029, 0.6543142199516296, 0.2456117570400238, -0.6275988221168518, -0.29823270440101624, -0.341331422328949, -0.5109850168228149, -0.08902696520090103, -0.09145858138799667, 0.012235460802912712, 0.1291043907403946, 0.4488231837749481, -0.5094704627990723, 0.36043450236320496, 0.5492013692855835, -0.1275704801082611, 0.40082770586013794, -0.11447536200284958, -0.02148325927555561, -0.9846306443214417, 0.016085872426629066, -0.09581052511930466, -0.23093973100185394, -0.501970648765564, -0.565987229347229, -0.12736999988555908, -0.08798162639141083, -0.5238000154495239, 0.4120839834213257, -0.4397833049297333, -0.2888615131378174, -0.19050882756710052, 0.206044539809227, -0.14972321689128876, 0.4744940996170044, 0.06086611747741699, 0.6889934539794922, 0.6211608648300171, -0.5450038909912109, 0.6270889639854431, 0.19807378947734833, -0.626334547996521, 0.004007359500974417, -0.8744181394577026, 0.44950011372566223, 0.1546173393726349, 0.38876909017562866, -1.180423378944397, -0.11296472698450089, -0.1484919786453247, -0.9191811084747314, 0.3373528718948364, 0.04101221635937691, -0.4252329468727112, -0.4170401394367218, -0.0978856086730957, 0.3929813802242279, 0.9993172883987427, -0.685829758644104, 0.5307590961456299, 0.4339671730995178, 0.1585996001958847, -0.4289717972278595, -0.9276170134544373, -0.465016633272171, -0.032438624650239944, -0.7439968585968018, 0.36215147376060486, 0.029659492895007133, -0.004577585496008396, -0.18356123566627502, -0.45087260007858276, 0.1736154854297638, -0.1194605678319931, 0.5362728834152222, 0.22671572864055634, -0.09093763679265976, 0.20245635509490967, -0.12392189353704453, -0.25395098328590393, 0.19927220046520233, -0.539720356464386, 0.758340060710907, -0.10280996561050415, -0.19245025515556335, -0.9124456644058228, -0.0509093701839447, 0.22209706902503967, -0.3493843972682953, 0.47242337465286255, 1.1913646459579468, -0.39430370926856995, -0.2531767785549164, -0.5601164102554321, -0.33047088980674744, -0.5344483256340027, 0.7264532446861267, -0.2324526458978653, -0.6580451726913452, 0.3407171964645386, 0.018905382603406906, 0.1567762792110443, 0.6438372731208801, 0.7600735425949097, -0.4252384901046753, 0.8720287084579468, 0.23552469909191132, 0.009883769787847996, 0.5372189879417419, -0.8735508918762207, 0.11244294792413712, -0.7028519511222839, -0.45566195249557495, -0.3807221055030823, -0.45070022344589233, -0.5281866192817688, -0.5354580879211426, 0.48112136125564575, 0.07154282182455063, -0.15060918033123016, 0.31962135434150696, -0.6691105365753174, 0.17917992174625397, 0.7157464027404785, 0.3124516010284424, -0.15904182195663452, 0.22922465205192566, 0.052419669926166534, -0.02679205685853958, -0.4788244068622589, -0.19426152110099792, 1.249873399734497, 0.4514521360397339, 0.7044116258621216, -0.11587885767221451, 0.7477130889892578, 0.14727894961833954, -0.2928258776664734, -0.9036675691604614, 0.4361913204193115, -0.13918322324752808, -0.6836704015731812, -0.3004230260848999, -0.2570311427116394, -0.8771998882293701, 0.1375620812177658, -0.3604840934276581, -0.8238109350204468, 0.07836464047431946, 0.006297321990132332, -0.3007231652736664, 0.18740969896316528, -0.7881425619125366, 0.5999605655670166, -0.15384240448474884, -0.3561628758907318, -0.3556419014930725, -0.6881380081176758, 0.0644383355975151, 0.06874733418226242, 0.19041304290294647, -0.13144457340240479, 0.4376765489578247, 1.3826053142547607, -0.1766776442527771, 0.48850375413894653, -0.4213177263736725, -0.0029042724054306746, 0.6809943914413452, -0.22903171181678772, 0.3702247440814972, 0.029334302991628647, -0.2511760890483856, 0.2869616448879242, 0.11857595294713974, -0.3287286162376404, -0.3958974778652191, 0.6361783742904663, -1.046352505683899, -0.2725578546524048, -0.20397572219371796, -0.4629090130329132, -0.29108065366744995, 0.11258351802825928, 0.8098016381263733, 0.8056527972221375, -0.05366918444633484, 0.5098077654838562, 0.6844910979270935, -0.09077844768762589, 0.4630172848701477, 0.059689633548259735, -0.09765495359897614, -0.4169130325317383, 0.9504186511039734, 0.24755476415157318, 0.21222320199012756, 0.10133078694343567, 0.22049616277217865, -0.6212916374206543, -0.5053154230117798, -0.05005183070898056, 0.22587603330612183, -0.6812946796417236, -0.043855469673871994, -0.5979341268539429, -0.39584335684776306, -0.6632193326950073, 0.05694955214858055, -0.6884385347366333, -0.4265507161617279, -0.44057121872901917, -0.10314048826694489, 0.35445353388786316, 0.5849760174751282, -0.4616096615791321, 0.39669549465179443, -0.5730041861534119, 0.4511321485042572, 0.34641706943511963, -0.045971013605594635, -0.12256302684545517, -1.0315511226654053, -0.3364192545413971, 0.2485438585281372, -0.02693864516913891, -0.8262453675270081, 0.16784319281578064, 0.22745780646800995, 0.42867791652679443, 0.3533048629760742, -0.07460537552833557, 0.6223362684249878, -0.30543699860572815, 0.7497022747993469, 0.29746729135513306, -1.0477255582809448, 0.6230015754699707, -0.07587319612503052, 0.15171706676483154, 0.4369831085205078, 0.18743260204792023, -0.3534875214099884, -0.05579487979412079, -0.7008047699928284, -0.9852758049964905, 0.892824113368988, 0.3808301091194153, -0.018329445272684097, 0.44169917702674866, 0.24979716539382935, -0.09975162893533707, -0.07908885180950165, -0.6235851645469666, -0.4473676383495331, -0.33055010437965393, -0.29565393924713135, -0.40357184410095215, -0.2616448402404785, -0.05869753658771515, -0.5119203925132751, 0.9580719470977783, 0.38215452432632446, 0.5633814334869385, 0.35129329562187195, -0.15683040022850037, 0.11132363975048065, 0.12877021729946136, 0.37663230299949646, 0.3442794382572174, -0.33748963475227356, 0.16168837249279022, 0.3318406343460083, -0.6325052976608276, 0.18604741990566254, 0.24641244113445282, 0.18532557785511017, 0.07912168651819229, 0.7550758123397827, 1.1447583436965942, -0.027208715677261353, -0.4645101726055145, 0.5279667377471924, 0.031778521835803986, -0.3090238571166992, -0.5602684020996094, 0.20317451655864716, 0.4621410071849823, 0.3997870087623596, 0.41755667328834534, -0.0031520433258265257, 0.10657307505607605, -0.42707398533821106, 0.3419948220252991, 0.23479515314102173, -0.49544426798820496, -0.31228265166282654, 0.8976820111274719, 0.07753933221101761, -0.24906975030899048, 0.7295001745223999, -0.0361773781478405, -0.28245019912719727, 0.633275032043457, 0.597835123538971, 0.7314926981925964, -0.32905665040016174, -0.23754630982875824, 0.5949186682701111, 0.22001542150974274, -0.045384038239717484, 0.4566715359687805, -0.14600297808647156, -0.4411132037639618, -0.3123159110546112, -0.6210777759552002, 0.04707415774464607, 0.25535619258880615, -0.7846224308013916, 0.370156466960907, -0.4334876239299774, -0.3769822418689728, 0.2961406707763672, 0.236016184091568, -0.7825509309768677, 0.3605287969112396, 0.27393633127212524, 0.7413309216499329, -0.8502131700515747, 1.0573978424072266, 0.3134191334247589, -0.2967098355293274, -1.3053228855133057, -0.17032217979431152, -0.04977982118725777, -0.7531855702400208, 0.6295619010925293, 0.33631423115730286, -0.389963835477829, 0.18204127252101898, -0.564700186252594, -0.8407629728317261, 1.0724515914916992, 0.35765889286994934, -0.760782778263092, 0.09274732321500778, -0.13167650997638702, 0.4936259686946869, -0.015442910604178905, 0.2307823896408081, 0.7322218418121338, 0.4550119936466217, 0.12535053491592407, -0.9982318878173828, -0.13988249003887177, -0.09562133997678757, -0.2632226347923279, -0.2215520441532135, -0.6358625888824463, 0.9673360586166382, -0.41532641649246216, -0.29564419388771057, -0.0773874968290329, 1.0203299522399902, 0.2497175633907318, 0.29876965284347534, 0.6040323972702026, 0.49520549178123474, 0.988711953163147, -0.2391086220741272, 0.7463775277137756, 0.02061758004128933, 0.532945990562439, 1.121734857559204, 0.06105142831802368, 0.901490330696106, 0.2599383592605591, -0.3659107983112335, 0.3600641191005707, 0.593645453453064, -0.14669090509414673, 0.7023698091506958, 0.26027706265449524, -0.24797344207763672, -0.17736849188804626, 0.03586210310459137, -0.6539528369903564, 0.9373443126678467, 0.31389811635017395, -0.1484062373638153, 0.25746944546699524, 0.1806633472442627, -0.11623512208461761, -0.1337774246931076, -0.1344456672668457, 0.7334362268447876, 0.17144955694675446, -0.24708110094070435, 0.9689428806304932, 0.031476665288209915, 0.7689193487167358, -0.6289832592010498, 0.06018736958503723, 0.24669484794139862, 0.3119702935218811, -0.4086630046367645, -0.6206815838813782, 0.10095596313476562, -0.22415557503700256, -0.17978328466415405, 0.06354574114084244, 0.5767802596092224, -0.6594021320343018, -0.47626668214797974, 0.5948272943496704, 0.05156860873103142, 0.30086982250213623, -0.02456899918615818, -0.6147518157958984, 0.36179229617118835, 0.27512285113334656, -0.4103080928325653, -0.06479911506175995, 0.08644954860210419, 0.35987067222595215, 0.2749810516834259, 0.7480323314666748, 0.2048044502735138, 0.15095026791095734, 0.007562505546957254, 0.5851171016693115, -0.5184722542762756, -0.5373631119728088, -0.588134229183197, 0.3701196014881134, 0.06015218421816826, -0.22770316898822784, 0.5503791570663452, 0.8264697790145874, 1.0332796573638916, 0.048497121781110764, 0.6926255226135254, 0.010511033236980438, 0.658012866973877, -0.7288905382156372, 0.7843128442764282, -0.6193296313285828, 0.11029607057571411, -0.14512217044830322, -0.8535371422767639, 0.05559315159916878, 0.9097094535827637, -0.15636847913265228, 0.3379179835319519, 0.4971666634082794, 0.8650240898132324, -0.08591733127832413, 0.030592290684580803, 0.18584775924682617, 0.37833651900291443, 0.3596205413341522, 0.7508898377418518, 0.5618852972984314, -0.7795478105545044, 0.7272365689277649, -0.5340844392776489, -0.1896362602710724, -0.1046830490231514, -0.22481252253055573, -0.8798729181289673, -0.8364947438240051, -0.24546095728874207, -0.7072864770889282, -0.08001191914081573, 1.0734426975250244, 0.8455488085746765, -0.8559970855712891, -0.3781636357307434, 0.28101640939712524, -0.16359597444534302, -0.38075560331344604, -0.1794610172510147, 0.7664863467216492, 0.037063952535390854, -0.8752766251564026, 0.7309495806694031, -0.08393257856369019, 0.05699891597032547, 0.03164997324347496, -0.1582481861114502, -0.26524367928504944, -0.01920715533196926, 0.41901662945747375, 0.20753836631774902, -0.6731557846069336, -0.263872891664505, -0.18782684206962585, -0.15514494478702545, 0.11921627819538116, 0.4274826943874359, -0.6555072665214539, 0.5899474024772644, 0.5728359222412109, 0.32591238617897034, 1.0558749437332153, -0.2842212915420532, 0.08387599140405655, -0.6656470894813538, 0.488474577665329, 0.28489378094673157, 0.31360185146331787, 0.25059980154037476, -0.182203471660614, 0.27193981409072876, 0.27483299374580383, -0.5994174480438232, -0.7781115770339966, -0.06907164305448532, -1.348905324935913, -0.22404183447360992, 1.2951908111572266, 0.06751096993684769, -0.20808804035186768, 0.15890240669250488, -0.38068482279777527, 0.9694976210594177, -0.4832026958465576, 0.38318932056427, 0.4073157012462616, -0.18250593543052673, 0.16972719132900238, -0.5716233849525452, 0.5544404983520508, 0.4324193000793457, -0.32062286138534546, -0.06275695562362671, 0.415248304605484, 0.5383287668228149, 0.08866624534130096, 0.8366069197654724, -0.11392907798290253, 0.3733673095703125, 0.3004731833934784, 0.23629538714885712, -0.2711954116821289, -0.28611835837364197, -0.4815410077571869, 0.09678918123245239, -0.0823977068066597, -0.49734893441200256 ]
nlpai-lab/kullm-polyglot-5.8b-v2
nlpai-lab
"2023-06-07T06:45:30Z"
12,665
19
transformers
[ "transformers", "pytorch", "gpt_neox", "text-generation", "ko", "dataset:nlpai-lab/kullm-v2", "license:apache-2.0", "endpoints_compatible", "has_space", "text-generation-inference", "region:us" ]
text-generation
"2023-06-07T05:30:10Z"
--- license: apache-2.0 datasets: - nlpai-lab/kullm-v2 language: - ko --- # KULLM-Polyglot-5.8B-v2 This model is a parameter-efficient fine-tuned version of [EleutherAI/polyglot-ko-5.8b](https://huggingface.co/EleutherAI/polyglot-ko-5.8b) on a KULLM v2 Detail Codes are available at [KULLM Github Repository](https://github.com/nlpai-lab/KULLM) ## Training procedure ### Training hyperparameters The following hyperparameters were used during training: - learning_rate: 3e-4 - train_batch_size: 128 - seed: 42 - distributed_type: multi-GPU (A100 80G) - num_devices: 4 - gradient_accumulation_steps: 8 - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08 - lr_scheduler_type: linear - num_epochs: 8.0 ### Framework versions - Transformers 4.28.1 - Pytorch 2.0.0+cu117 - Datasets 2.11.0 - Tokenizers 0.13.3
[ -0.653451144695282, -0.9232434630393982, 0.47736743092536926, 0.32187125086784363, -0.576713502407074, 0.01083436794579029, -0.10849572718143463, -0.34610122442245483, -0.003011847846210003, 0.2769066095352173, -0.30461806058883667, -0.5269187688827515, -0.6893420219421387, -0.17848624289035797, 0.08010628819465637, 1.1196166276931763, 0.07364757359027863, 0.28797227144241333, -0.5266096591949463, -0.3168523609638214, -0.03821495920419693, -0.5996803641319275, -0.7016038298606873, -0.8793338537216187, 0.6610454320907593, 0.21639902889728546, 0.6397044658660889, 0.3786335587501526, 0.4868696331977844, 0.1364351212978363, -0.696595311164856, 0.16815800964832306, -0.7682033777236938, -0.20742718875408173, 0.066659115254879, -0.32305359840393066, -0.6406684517860413, -0.22799052298069, 0.6131113767623901, 0.3920390009880066, -0.4901920557022095, 0.7170514464378357, -0.008890616707503796, 0.7204605340957642, -0.9210636019706726, 0.6141785979270935, -0.3105620741844177, 0.2747746407985687, -0.05959414318203926, 0.20153401792049408, -0.573404848575592, -0.373810738325119, 0.047786444425582886, -0.6771596670150757, 0.15808594226837158, -0.09633590281009674, 1.1367950439453125, 0.21590057015419006, -0.3464887738227844, 0.16664405167102814, -0.7569298148155212, 0.8186727166175842, -0.8183779716491699, 0.5916852951049805, 0.46526503562927246, 0.6266219019889832, 0.11964858323335648, -1.1815522909164429, -0.10147400200366974, -0.04424745589494705, -0.1903218924999237, 0.28443461656570435, 0.014297041110694408, 0.15413741767406464, 0.6948975324630737, 0.13174736499786377, -0.5882335305213928, 0.18088510632514954, -0.7955423593521118, -0.3222702145576477, 0.5602988004684448, 0.41726967692375183, -0.44622504711151123, 0.03131088986992836, -0.3799520432949066, -0.1989346593618393, -0.3845723569393158, 0.31485170125961304, 0.5056730508804321, 0.013513749465346336, -0.5630705952644348, 0.4329635202884674, -0.3754544258117676, 0.8891716599464417, 0.1605554074048996, -0.23019228875637054, 0.6227077841758728, -0.05938221514225006, -0.3365772068500519, -0.004819745663553476, 0.678972065448761, 0.4171391427516937, 0.03859696164727211, 0.04803621396422386, -0.22515112161636353, -0.1789306104183197, 0.2855803668498993, -1.2161808013916016, -0.580269455909729, 0.14555852115154266, -0.43040138483047485, -0.5772072076797485, 0.11834381520748138, -0.6595578789710999, 0.014606909826397896, -0.31335532665252686, 0.4289844036102295, -0.2640302777290344, -0.20128418505191803, 0.3080610930919647, 0.022505322471261024, 0.6467804312705994, 0.33607250452041626, -0.8798876404762268, 0.4294199049472809, 0.44686341285705566, 0.8369473218917847, 0.06228182464838028, -0.2916375398635864, -0.37962210178375244, 0.1491827368736267, -0.29927539825439453, 0.5424017310142517, -0.11858857423067093, -0.40022310614585876, -0.35382354259490967, 0.15547166764736176, -0.04612896218895912, -0.5659345984458923, 0.7456711530685425, -0.5139741897583008, 0.18283776938915253, -0.052885908633470535, -0.6920811533927917, -0.6031953692436218, 0.18711209297180176, -0.7340822815895081, 1.244433045387268, 0.2951176166534424, -0.588394820690155, 0.35670286417007446, -0.6137332320213318, -0.20365914702415466, 0.3078194856643677, -0.044848330318927765, -1.157549262046814, 0.31623974442481995, -0.059333834797143936, 0.23065437376499176, -0.37010887265205383, 0.052208226174116135, -0.6081493496894836, -0.5666953921318054, -0.33979418873786926, -0.11010522395372391, 0.8284202218055725, 0.2961026132106781, -0.3040328621864319, 0.09710606187582016, -0.900607168674469, 0.503711462020874, 0.29995033144950867, -0.336643785238266, 0.15801185369491577, -0.28609970211982727, 0.5077016949653625, 0.11843957006931305, 0.6218465566635132, -0.49874046444892883, 0.12672999501228333, -0.19414156675338745, 0.14633096754550934, 0.7364588379859924, -0.265279084444046, 0.024997547268867493, -0.23508377373218536, 0.43924736976623535, 0.1452307552099228, 0.6368966698646545, 0.5132318139076233, -0.6139350533485413, -0.690293550491333, -0.31001466512680054, 0.31431448459625244, 0.3597753345966339, -0.26249635219573975, 0.5584517121315002, 0.3629492521286011, -1.0672563314437866, -0.429004430770874, 0.061246372759342194, 0.29656755924224854, 0.4014735519886017, 0.42151007056236267, 0.13173487782478333, -0.44035086035728455, -1.0957105159759521, 0.2743939161300659, 0.013064094819128513, 0.36575159430503845, 0.5017027258872986, 0.6222745776176453, -0.19921138882637024, 0.7017138600349426, -0.8105520009994507, 0.20930951833724976, -0.2743595838546753, 0.18941189348697662, 0.5720430612564087, 0.3607550263404846, 0.8048559427261353, -0.6635576486587524, -0.8597942590713501, 0.14412809908390045, -0.9667999148368835, -0.07275179773569107, 0.4582881033420563, -0.06466223299503326, 0.0573536641895771, 0.4903136193752289, -0.8175457715988159, 0.25098633766174316, 0.5333401560783386, -0.4216304123401642, 1.0363296270370483, -0.5059515833854675, -0.2653109133243561, -1.0763003826141357, 0.1777232140302658, -0.1094609946012497, -0.26431047916412354, -0.3391541540622711, 0.31387025117874146, 0.18655742704868317, -0.019304463639855385, -0.7417086362838745, 0.5858038067817688, -0.3535189926624298, 0.18280565738677979, -0.4307878613471985, -0.6081380248069763, -0.0035270308144390583, 0.460135281085968, -0.2345622032880783, 0.6431725025177002, 1.038762092590332, -0.43137022852897644, 0.605161726474762, 0.06496235728263855, -0.23811350762844086, 0.1742188185453415, -1.1852869987487793, 0.5560687780380249, -0.22543096542358398, 0.012807635590434074, -0.34185144305229187, -0.2725180685520172, 0.3803221583366394, -0.25810107588768005, 0.06666804850101471, -0.1734057515859604, -0.5835481882095337, -0.2602117359638214, -0.433761864900589, 0.6404045820236206, 1.0891073942184448, -0.5189366936683655, 0.6024884581565857, 0.0917433425784111, 0.1905449628829956, -0.30388322472572327, -0.15541251003742218, -0.4960266947746277, -0.313320517539978, -0.48796534538269043, 0.10685092210769653, -0.12056155502796173, 0.1428287774324417, -0.08212383836507797, 0.07133865356445312, -0.058507051318883896, 0.01414893101900816, 0.22100873291492462, 0.25579357147216797, -0.158939391374588, -0.3306266963481903, 0.22699347138404846, -0.3131708800792694, 0.22705450654029846, -0.021805880591273308, 0.7952707409858704, -0.20376040041446686, -0.06310902535915375, -0.5476568341255188, -0.009839674457907677, 0.8537054061889648, -0.08767741173505783, 1.0615438222885132, 1.4027578830718994, -0.5625985264778137, -0.04925251379609108, -0.38283899426460266, -0.29071497917175293, -0.45622166991233826, 0.6214103102684021, -0.4941980540752411, -0.7004815936088562, 0.6491718888282776, -0.13162170350551605, -0.09248773008584976, 0.4977705776691437, 0.7923295497894287, 0.09288588166236877, 1.504058837890625, 0.3944091200828552, 0.0472077950835228, 0.1586814969778061, -0.6488829851150513, 0.07387068122625351, -0.8868341445922852, -0.5888404846191406, -0.29459133744239807, -0.22695624828338623, -0.8133373260498047, -0.1057809591293335, 0.4891519844532013, 0.5916864275932312, -0.4771459996700287, 0.30392494797706604, -0.4024583697319031, 0.5287171602249146, 0.9444100856781006, 0.32805803418159485, -0.11493512988090515, 0.11373685300350189, -0.26519185304641724, 0.0985146313905716, -0.7748385667800903, -0.4054209887981415, 1.0078625679016113, 0.39144715666770935, 0.9906647801399231, -0.03868839889764786, 0.5243471264839172, -0.09880568087100983, -0.29851117730140686, -0.6573221683502197, 0.5318873524665833, -0.054183050990104675, -0.5364174246788025, -0.05855927988886833, -0.37465813755989075, -0.7787894606590271, 0.20166297256946564, -0.3405620753765106, -0.8722310066223145, -0.031232494860887527, 0.4393131732940674, -0.30274271965026855, 0.3303503096103668, -0.8232720494270325, 1.1270955801010132, -0.18917351961135864, -0.35697343945503235, -0.4207507073879242, -0.4521256983280182, -0.10644139349460602, -0.14750362932682037, -0.42244353890419006, -0.3787815272808075, 0.07705128937959671, 0.5514543056488037, -0.4398820102214813, 0.4144868552684784, -0.4595334827899933, 0.5750731229782104, 0.3280250132083893, -0.34929126501083374, 0.7380095720291138, 0.2819603383541107, -0.09753125160932541, 0.5179356932640076, -0.043309494853019714, -0.8298967480659485, -0.5511699914932251, 0.5956791639328003, -1.2266985177993774, -0.19710448384284973, -0.5311130285263062, -0.8206158876419067, -0.023621629923582077, 0.25269806385040283, 0.49783971905708313, 0.2580825090408325, 0.12039993703365326, 0.6422133445739746, 0.49510708451271057, -0.08007116615772247, 0.22527901828289032, 0.3678102493286133, -0.26877668499946594, -0.5480032563209534, 0.9100407361984253, -0.012508988380432129, 0.44351643323898315, -0.2197318971157074, 0.4312875270843506, -0.3463536202907562, -0.8211545348167419, -0.4051397144794464, 0.3229007422924042, -0.4542371332645416, -0.19937235116958618, -0.41099852323532104, -0.618284285068512, -0.33425915241241455, 0.06840602308511734, -0.5230705738067627, -0.050455909222364426, -0.42504921555519104, -0.3423241674900055, 0.6698591709136963, 0.711515486240387, -0.044473838061094284, 0.555699348449707, -0.5547951459884644, 0.062285229563713074, 0.2801178991794586, 0.4692184329032898, -0.09860468655824661, -0.578683078289032, -0.7164819240570068, 0.1031905934214592, -0.5361525416374207, -0.39038369059562683, 0.23084382712841034, 0.1849381923675537, 0.6644054055213928, 0.18168291449546814, -0.2476128786802292, 0.49087288975715637, -0.3185686469078064, 0.6141716837882996, 0.294813334941864, -0.3631592094898224, 0.4404027760028839, -0.26530396938323975, 0.7877498269081116, 0.35248687863349915, 0.6642224192619324, 0.08252796530723572, -0.26245319843292236, -0.7772982716560364, -1.039265513420105, 0.919607937335968, 0.4682837128639221, -0.0023269541561603546, 0.3767288029193878, 0.4075985848903656, 0.1392970234155655, 0.187037855386734, -0.804275393486023, -0.6019456386566162, -0.16841234266757965, -0.18787658214569092, -0.11023164540529251, -0.46964529156684875, -0.13472163677215576, -0.7498210072517395, 1.042026162147522, -0.06824879348278046, 0.16591966152191162, -0.12751023471355438, -0.14497214555740356, -0.10147064924240112, -0.3261663019657135, 0.6205592155456543, 0.9515387415885925, -0.8080248832702637, -0.14606013894081116, 0.34768593311309814, -0.7482641339302063, 0.14593850076198578, 0.44452205300331116, -0.6230703592300415, 0.12797948718070984, -0.004888918250799179, 1.3758829832077026, -0.1558140069246292, -0.321781188249588, 0.050742022693157196, -0.03380231559276581, -0.3525199294090271, -0.3120613098144531, 0.24375224113464355, 0.21043367683887482, 0.38393667340278625, 0.14480578899383545, -0.12945619225502014, 0.1219245046377182, 0.15102332830429077, 0.15163850784301758, 0.18803225457668304, -0.39504432678222656, -0.4212733507156372, 0.8060576319694519, -0.00967906229197979, -0.3437522351741791, 0.7035747766494751, -0.49884411692619324, -0.14543505012989044, 0.7518438696861267, 0.7271892428398132, 0.885708212852478, -0.06981855630874634, 0.1631777435541153, 0.7772195935249329, 0.029673445969820023, -0.1000257134437561, 0.40828245878219604, 0.2696007490158081, -0.663637638092041, -0.3161868155002594, -0.8923554420471191, -0.3393746018409729, 0.43587085604667664, -1.0542138814926147, 0.703373372554779, -0.6358261108398438, -0.40771549940109253, 0.22480514645576477, -0.12368189543485641, -0.6360701322555542, 0.09412269294261932, 0.289218932390213, 0.8593006134033203, -0.8308617472648621, 0.826426088809967, 1.153562068939209, -0.19131982326507568, -0.8443973064422607, -0.5948558449745178, -0.22421753406524658, -0.8245189785957336, 0.31935974955558777, 0.12741249799728394, 0.09878207743167877, 0.24705737829208374, -0.48731890320777893, -0.8401971459388733, 1.3259705305099487, 0.6912510395050049, -0.6869762539863586, 0.003450101474300027, 0.2091783732175827, 0.44881191849708557, 0.04662436991930008, 0.4999927878379822, 0.26114362478256226, 0.28495848178863525, 0.04509107023477554, -1.0465538501739502, -0.29467472434043884, -0.20522668957710266, 0.07666680961847305, 0.5565812587738037, -1.0457754135131836, 0.9628809094429016, -0.20205911993980408, 0.6745226979255676, 0.01965937949717045, 0.5583929419517517, 0.5860754251480103, 0.2594841718673706, 0.5035393238067627, 1.1057456731796265, 0.34458407759666443, -0.03601032868027687, 0.9769774675369263, -0.6190324425697327, 1.261866807937622, 1.0851868391036987, -0.018499674275517464, 0.3865177035331726, 0.5620698928833008, -0.2111612856388092, 0.3531826138496399, 0.8788388967514038, -0.37134280800819397, 0.7756856679916382, 0.03975831717252731, -0.40646377205848694, -0.3537648022174835, 0.008004577830433846, -0.6437624096870422, 0.3817027509212494, -0.019164057448506355, -0.3508286476135254, -0.41136109828948975, -0.11736632883548737, -0.02009432204067707, -0.5684396624565125, -0.41836443543434143, 0.7329208254814148, 0.1365407258272171, -0.1977171003818512, 0.7671560645103455, -0.0018559450982138515, 0.31139394640922546, -0.8567452430725098, -0.1345061957836151, -0.05533865839242935, 0.3685184121131897, -0.29731279611587524, -0.47339382767677307, 0.00687732407823205, -0.35352110862731934, -0.3117392957210541, 0.27844125032424927, 0.6408713459968567, -0.26609984040260315, -1.0648759603500366, 0.5429584383964539, 0.40673282742500305, 0.20903897285461426, 0.04625236988067627, -1.073594331741333, 0.015618816949427128, -0.23880937695503235, -0.5114114284515381, 0.3670371472835541, -0.011083381250500679, 0.15372420847415924, 0.5185134410858154, 0.533953070640564, 0.11156080663204193, 0.07943554222583771, 0.42303013801574707, 0.6489267945289612, -0.48155441880226135, -0.397254079580307, -0.9191880226135254, 0.4672749936580658, -0.19419065117835999, -0.6628192663192749, 0.6284251809120178, 1.087482213973999, 1.1635029315948486, -0.25686219334602356, 0.44414252042770386, -0.08614301681518555, 0.1865989714860916, -0.423782080411911, 0.6409795880317688, -0.46479830145835876, -0.38758233189582825, -0.14568224549293518, -1.151310920715332, 0.13712136447429657, 0.6766427159309387, 0.05506764352321625, 0.2878502309322357, 0.5564138889312744, 0.888580322265625, -0.325170636177063, -0.19767405092716217, 0.43824100494384766, 0.3028329908847809, 0.2031651735305786, 0.3746052384376526, 0.3789343535900116, -0.6075443029403687, 0.4116760492324829, -0.8383422493934631, -0.1341431885957718, -0.27783751487731934, -0.5460019111633301, -0.7028706669807434, -0.16350483894348145, -0.45421600341796875, -0.3795417845249176, 0.32455530762672424, 1.0370582342147827, 1.0350162982940674, -0.8225632309913635, -0.5119233131408691, -0.17215296626091003, -0.16591374576091766, -0.2839743494987488, -0.2307349294424057, 0.3778776228427887, -0.3592943847179413, -0.8010182976722717, -0.20868100225925446, 0.021559150889515877, 0.10456618666648865, -0.1477975696325302, -0.4198661744594574, -0.2417820245027542, -0.3318110704421997, 0.828084409236908, -0.09489692747592926, -0.5544899106025696, -0.4076361358165741, 0.036876123398542404, -0.002285036025568843, 0.18087850511074066, 0.25552886724472046, -0.4563584327697754, 0.4464576840400696, 0.38182514905929565, 0.39738383889198303, 1.05580735206604, -0.028909826651215553, 0.4692004323005676, -0.4868439733982086, 0.513968825340271, 0.3434431850910187, 0.4644749164581299, -0.011117935180664062, -0.2961728572845459, 0.5284881591796875, 0.5189698338508606, -0.717581570148468, -0.8500409722328186, -0.009200786240398884, -1.2316855192184448, 0.05415043979883194, 1.1463741064071655, -0.08073939383029938, -0.34174132347106934, 0.3612997233867645, -0.22942286729812622, 0.21062161028385162, -0.21174123883247375, 0.7395793795585632, 0.7454875111579895, -0.3786872923374176, -0.2174263745546341, -0.6811766028404236, 0.4050061106681824, 0.5714285373687744, -0.8701696991920471, -0.45035549998283386, 0.21806418895721436, 0.3484502136707306, -0.1313997209072113, 0.26525363326072693, -0.18535469472408295, 0.7068359851837158, -0.029508251696825027, 0.21934005618095398, -0.3053553104400635, -0.2476014643907547, -0.13849511742591858, -0.00953464675694704, 0.3101014196872711, -0.3611675500869751 ]
facebook/dpr-ctx_encoder-multiset-base
facebook
"2022-12-21T15:19:57Z"
12,657
3
transformers
[ "transformers", "pytorch", "tf", "dpr", "en", "dataset:nq_open", "arxiv:2004.04906", "arxiv:1702.08734", "arxiv:1910.09700", "license:cc-by-nc-4.0", "has_space", "region:us" ]
null
"2022-03-02T23:29:05Z"
--- language: en license: cc-by-nc-4.0 tags: - dpr datasets: - nq_open inference: false --- # `dpr-ctx_encoder-multiset-base` ## Table of Contents - [Model Details](#model-details) - [How To Get Started With the Model](#how-to-get-started-with-the-model) - [Uses](#uses) - [Risks, Limitations and Biases](#risks-limitations-and-biases) - [Training](#training) - [Evaluation](#evaluation-results) - [Environmental Impact](#environmental-impact) - [Technical Specifications](#technical-specifications) - [Citation Information](#citation-information) - [Model Card Authors](#model-card-authors) ## Model Details **Model Description:** [Dense Passage Retrieval (DPR)](https://github.com/facebookresearch/DPR) is a set of tools and models for state-of-the-art open-domain Q&A research. `dpr-ctx_encoder-multiset-base` is the context encoder trained using the [Natural Questions (NQ) dataset](https://huggingface.co/datasets/nq_open), [TriviaQA](https://huggingface.co/datasets/trivia_qa), [WebQuestions (WQ)](https://huggingface.co/datasets/web_questions), and [CuratedTREC (TREC)](https://huggingface.co/datasets/trec). - **Developed by:** See [GitHub repo](https://github.com/facebookresearch/DPR) for model developers - **Model Type:** BERT-based encoder - **Language(s):** [CC-BY-NC-4.0](https://github.com/facebookresearch/DPR/blob/main/LICENSE), also see [Code of Conduct](https://github.com/facebookresearch/DPR/blob/main/CODE_OF_CONDUCT.md) - **License:** English - **Related Models:** - [`dpr-question_encoder-multiset-base`](https://huggingface.co/facebook/dpr-question_encoder-multiset-base) - [`dpr-reader-multiset-base`](https://huggingface.co/facebook/dpr-reader-multiset-base) - [`dpr-question-encoder-single-nq-base`](https://huggingface.co/facebook/dpr-question_encoder-single-nq-base) - [`dpr-reader-single-nq-base`](https://huggingface.co/facebook/dpr-reader-single-nq-base) - [`dpr-ctx_encoder-single-nq-base`](https://huggingface.co/facebook/dpr-ctx_encoder-single-nq-base) - **Resources for more information:** - [Research Paper](https://arxiv.org/abs/2004.04906) - [GitHub Repo](https://github.com/facebookresearch/DPR) - [Hugging Face DPR docs](https://huggingface.co/docs/transformers/main/en/model_doc/dpr) - [BERT Base Uncased Model Card](https://huggingface.co/bert-base-uncased) ## How to Get Started with the Model Use the code below to get started with the model. ```python from transformers import DPRContextEncoder, DPRContextEncoderTokenizer tokenizer = DPRContextEncoderTokenizer.from_pretrained("facebook/dpr-ctx_encoder-multiset-base") model = DPRContextEncoder.from_pretrained("facebook/dpr-ctx_encoder-multiset-base") input_ids = tokenizer("Hello, is my dog cute ?", return_tensors="pt")["input_ids"] embeddings = model(input_ids).pooler_output ``` ## Uses #### Direct Use `dpr-ctx_encoder-multiset-base`, [`dpr-question_encoder-multiset-base`](https://huggingface.co/facebook/dpr-question_encoder-multiset-base), and [`dpr-reader-multiset-base`](https://huggingface.co/facebook/dpr-reader-multiset-base) can be used for the task of open-domain question answering. #### Misuse and Out-of-scope Use The model should not be used to intentionally create hostile or alienating environments for people. In addition, the set of DPR models was not trained to be factual or true representations of people or events, and therefore using the models to generate such content is out-of-scope for the abilities of this model. ## Risks, Limitations and Biases **CONTENT WARNING: Readers should be aware this section may contain content that is disturbing, offensive, and can propogate historical and current stereotypes.** Significant research has explored bias and fairness issues with language models (see, e.g., [Sheng et al. (2021)](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al. (2021)](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)). Predictions generated by the model can include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups. ## Training #### Training Data This model was trained using the following datasets: - **[Natural Questions (NQ) dataset](https://huggingface.co/datasets/nq_open)** ([Lee et al., 2019](https://aclanthology.org/P19-1612/); [Kwiatkowski et al., 2019](https://aclanthology.org/Q19-1026/)) - **[TriviaQA](https://huggingface.co/datasets/trivia_qa)** ([Joshi et al., 2017](https://aclanthology.org/P17-1147/)) - **[WebQuestions (WQ)](https://huggingface.co/datasets/web_questions)** ([Berant et al., 2013](https://aclanthology.org/D13-1160/)) - **[CuratedTREC (TREC)](https://huggingface.co/datasets/trec)** ([Baudiš & Šedivý, 2015](https://www.aminer.cn/pub/599c7953601a182cd263079b/reading-wikipedia-to-answer-open-domain-questions)) #### Training Procedure The training procedure is described in the [associated paper](https://arxiv.org/pdf/2004.04906.pdf): > Given a collection of M text passages, the goal of our dense passage retriever (DPR) is to index all the passages in a low-dimensional and continuous space, such that it can retrieve efficiently the top k passages relevant to the input question for the reader at run-time. > Our dense passage retriever (DPR) uses a dense encoder EP(·) which maps any text passage to a d- dimensional real-valued vectors and builds an index for all the M passages that we will use for retrieval. At run-time, DPR applies a different encoder EQ(·) that maps the input question to a d-dimensional vector, and retrieves k passages of which vectors are the closest to the question vector. The authors report that for encoders, they used two independent BERT ([Devlin et al., 2019](https://aclanthology.org/N19-1423/)) networks (base, un-cased) and use FAISS ([Johnson et al., 2017](https://arxiv.org/abs/1702.08734)) during inference time to encode and index passages. See the paper for further details on training, including encoders, inference, positive and negative passages, and in-batch negatives. ## Evaluation The following evaluation information is extracted from the [associated paper](https://arxiv.org/pdf/2004.04906.pdf). #### Testing Data, Factors and Metrics The model developers report the performance of the model on five QA datasets, using the top-k accuracy (k ∈ {20, 100}). The datasets were [NQ](https://huggingface.co/datasets/nq_open), [TriviaQA](https://huggingface.co/datasets/trivia_qa), [WebQuestions (WQ)](https://huggingface.co/datasets/web_questions), [CuratedTREC (TREC)](https://huggingface.co/datasets/trec), and [SQuAD v1.1](https://huggingface.co/datasets/squad). #### Results | | Top 20 | | | | | Top 100| | | | | |:----:|:------:|:---------:|:--:|:----:|:-----:|:------:|:---------:|:--:|:----:|:-----:| | | NQ | TriviaQA | WQ | TREC | SQuAD | NQ | TriviaQA | WQ | TREC | SQuAD | | | 79.4 | 78.8 |75.0| 89.1 | 51.6 | 86.0 | 84.7 |82.9| 93.9 | 67.6 | ## Environmental Impact Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700). We present the hardware type and based on the [associated paper](https://arxiv.org/abs/2004.04906). - **Hardware Type:** 8 32GB GPUs - **Hours used:** Unknown - **Cloud Provider:** Unknown - **Compute Region:** Unknown - **Carbon Emitted:** Unknown ## Technical Specifications See the [associated paper](https://arxiv.org/abs/2004.04906) for details on the modeling architecture, objective, compute infrastructure, and training details. ## Citation Information ```bibtex @inproceedings{karpukhin-etal-2020-dense, title = "Dense Passage Retrieval for Open-Domain Question Answering", author = "Karpukhin, Vladimir and Oguz, Barlas and Min, Sewon and Lewis, Patrick and Wu, Ledell and Edunov, Sergey and Chen, Danqi and Yih, Wen-tau", booktitle = "Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP)", month = nov, year = "2020", address = "Online", publisher = "Association for Computational Linguistics", url = "https://www.aclweb.org/anthology/2020.emnlp-main.550", doi = "10.18653/v1/2020.emnlp-main.550", pages = "6769--6781", } ``` ## Model Card Authors This model card was written by the team at Hugging Face.
[ -0.6311689019203186, -0.8904443979263306, 0.2719631493091583, 0.17527727782726288, -0.1057976633310318, -0.0391247533261776, -0.14625343680381775, -0.3150116503238678, 0.03878411650657654, 0.3736230134963989, -0.6979469656944275, -0.4045237898826599, -0.49211883544921875, 0.2401527464389801, -0.3027855455875397, 0.8610542416572571, -0.015547546558082104, 0.013171155005693436, -0.3673611581325531, -0.20771418511867523, -0.20984303951263428, -0.6869651675224304, -0.5440511703491211, -0.06838399916887283, 0.32023885846138, 0.07973109185695648, 0.5956294536590576, 0.37815532088279724, 0.5657830238342285, 0.2621691823005676, -0.379276841878891, 0.2303381860256195, -0.5703594088554382, -0.20502999424934387, 0.0461859405040741, -0.19093291461467743, -0.43808233737945557, -0.011272774077951908, 0.6337222456932068, 0.5366464257240295, -0.05557730793952942, 0.2974078059196472, 0.07930445671081543, 0.6772921681404114, -0.5139504075050354, 0.011549316346645355, -0.37752997875213623, 0.04420829936861992, 0.0982934758067131, -0.030673833563923836, -0.28400442004203796, -0.46490997076034546, 0.07567176222801208, -0.4868139922618866, 0.26027700304985046, 0.04087146371603012, 1.0522388219833374, 0.25955480337142944, -0.3651767373085022, -0.30483096837997437, -0.4069919288158417, 0.7499163150787354, -0.8386306762695312, 0.5115748643875122, 0.36901986598968506, 0.17306479811668396, 0.06106986105442047, -0.659476637840271, -0.9125898480415344, -0.10715068131685257, -0.19263632595539093, 0.21977292001247406, -0.14384691417217255, 0.007905158214271069, 0.4406980276107788, 0.5399227738380432, -0.7264273166656494, -0.08594533801078796, -0.330318421125412, -0.10017058998346329, 0.8890333771705627, 0.18345092236995697, 0.2303539216518402, -0.4436069130897522, -0.3975681662559509, -0.3421309292316437, -0.27722594141960144, 0.3188791573047638, 0.2993932068347931, 0.23602427542209625, -0.37848910689353943, 0.5440810918807983, -0.14937740564346313, 0.7303618788719177, 0.29115989804267883, -0.14243054389953613, 0.539632260799408, -0.614037811756134, -0.025180459022521973, -0.24944429099559784, 0.9499890208244324, 0.37500306963920593, 0.16316737234592438, 0.016729841008782387, -0.17205137014389038, -0.25538909435272217, 0.08495134115219116, -0.9494419097900391, -0.08654329925775528, 0.5427269339561462, -0.42445117235183716, -0.12164417654275894, 0.08772078901529312, -0.8150201439857483, -0.14812131226062775, -0.07321741431951523, 0.4131056070327759, -0.5355415344238281, -0.4138343334197998, 0.39255329966545105, -0.383561909198761, 0.4588450789451599, 0.21067683398723602, -0.5377986431121826, 0.30707117915153503, 0.43930357694625854, 0.7101777195930481, -0.06514234095811844, -0.10154518485069275, -0.11078799515962601, -0.24428114295005798, -0.027051253244280815, 0.5055664777755737, -0.4149101674556732, -0.23024523258209229, 0.008345702663064003, 0.1717410534620285, -0.21444135904312134, -0.4076331555843353, 0.5591841340065002, -0.6047517657279968, 0.3894440233707428, -0.5862423777580261, -0.6560853123664856, -0.20897576212882996, 0.4520004093647003, -0.7129617929458618, 1.2124933004379272, 0.13781099021434784, -0.9161987900733948, 0.132472425699234, -0.6324816942214966, -0.1142173632979393, -0.08432480692863464, -0.05079442262649536, -0.38174766302108765, -0.2961866557598114, 0.46879205107688904, 0.4723428785800934, -0.22767318785190582, 0.2675119638442993, -0.32382485270500183, -0.4630964696407318, 0.37644878029823303, -0.26151105761528015, 1.2582672834396362, 0.12337202578783035, -0.2088402956724167, -0.25596094131469727, -0.6858093738555908, 0.02673177421092987, 0.42410773038864136, -0.2892009913921356, -0.16444379091262817, -0.2871485650539398, 0.09598100185394287, 0.37679290771484375, 0.31677088141441345, -0.7863673567771912, 0.08716506510972977, -0.24988214671611786, 0.500207245349884, 0.5589067339897156, 0.219085231423378, 0.3461311459541321, -0.44073358178138733, 0.5269030928611755, 0.1197647824883461, 0.336524099111557, 0.09466652572154999, -0.5260464549064636, -0.6415660381317139, -0.21499621868133545, 0.33384355902671814, 0.6002315878868103, -0.7913563251495361, 0.5812439918518066, -0.2861779034137726, -0.595559298992157, -0.5799748301506042, -0.10908235609531403, 0.5245553851127625, 0.5511226058006287, 0.5044535994529724, -0.1040685847401619, -0.43008217215538025, -0.8188123106956482, -0.002719963202252984, -0.13510052859783173, 0.1100294440984726, 0.699022114276886, 0.8388708829879761, -0.07528296858072281, 0.9107587337493896, -0.6015629172325134, -0.11736996471881866, -0.3270440697669983, -0.17329686880111694, 0.2154093235731125, 0.4939994513988495, 0.7884365320205688, -1.0843724012374878, -0.5371391177177429, -0.49208152294158936, -0.7712352275848389, 0.2732454240322113, 0.03137601912021637, -0.19014312326908112, 0.17016224563121796, 0.3798310458660126, -0.6807226538658142, 0.3355296552181244, 0.37894830107688904, -0.25932052731513977, 0.43431273102760315, 0.06456543505191803, 0.19265371561050415, -1.0617207288742065, 0.2096804827451706, 0.07259551435709, 0.16563858091831207, -0.5655402541160583, 0.009066451340913773, 0.11383406072854996, -0.0878489688038826, -0.5475596189498901, 0.7281858325004578, -0.35826510190963745, 0.07428129762411118, 0.19516819715499878, 0.21571144461631775, 0.3061211109161377, 0.7791376113891602, 0.1408417820930481, 0.7454562783241272, 0.3067872226238251, -0.719210684299469, 0.21738265454769135, 0.7735983729362488, -0.25673913955688477, 0.36077558994293213, -0.7945008277893066, 0.35675594210624695, -0.3838846981525421, 0.3415345251560211, -0.9766528010368347, -0.12077730149030685, 0.2683851420879364, -0.7643787264823914, 0.25030186772346497, 0.02699902094900608, -0.6886054873466492, -0.6955437064170837, -0.2650781571865082, 0.4351384937763214, 0.5176201462745667, -0.5003557801246643, 0.3710007071495056, 0.348463237285614, 0.04810809716582298, -0.8911747932434082, -0.779039740562439, -0.2601672112941742, -0.02966395393013954, -0.7040579915046692, 0.5148934721946716, -0.3502950966358185, -0.070258729159832, 0.2288944274187088, 0.01444356981664896, -0.38937175273895264, -0.026196371763944626, 0.011566250585019588, 0.11401813477277756, -0.06825192272663116, 0.24294979870319366, -0.1300666630268097, 0.2999586760997772, 0.08659061044454575, 0.09434610605239868, 0.5586273670196533, -0.2828890383243561, -0.16352270543575287, -0.34429028630256653, 0.3076137900352478, 0.23605290055274963, -0.3955628573894501, 0.8012272119522095, 0.6676673293113708, -0.45690375566482544, -0.07331076264381409, -0.633074939250946, -0.39454910159111023, -0.47725942730903625, 0.4412471055984497, -0.29569607973098755, -1.0964716672897339, 0.7102922201156616, 0.409244567155838, 0.07301635295152664, 0.6107242107391357, 0.38873258233070374, -0.12179543823003769, 0.9146547913551331, 0.47230497002601624, 0.097828708589077, 0.4845438301563263, -0.526319146156311, 0.15856307744979858, -0.8660345077514648, -0.30881670117378235, -0.44709867238998413, -0.3419795036315918, -0.6428261399269104, -0.4123399257659912, 0.2808813452720642, 0.017666663974523544, -0.48368990421295166, 0.3478676676750183, -0.6828539967536926, 0.20510320365428925, 0.5704140067100525, 0.3659270405769348, 0.06820454448461533, -0.08469004184007645, -0.04478096589446068, -0.0874510407447815, -0.894023060798645, -0.30141159892082214, 1.1683019399642944, 0.42336899042129517, 0.5113613605499268, -0.008689768612384796, 0.7519388794898987, 0.1657876819372177, -0.05023146793246269, -0.46356621384620667, 0.6683008074760437, -0.14456713199615479, -0.9831972718238831, -0.3020801544189453, -0.5660182237625122, -0.8430835604667664, 0.0979137048125267, -0.17964516580104828, -0.4926041066646576, 0.5801364183425903, -0.05993620306253433, -0.6474553942680359, 0.3596142530441284, -0.4578694999217987, 0.9788582921028137, -0.42759960889816284, -0.4168083071708679, 0.10501109063625336, -0.714135468006134, 0.37293216586112976, 0.10057495534420013, 0.04053361341357231, 0.030918436124920845, -0.024763338267803192, 0.8630692958831787, -0.23192043602466583, 0.8276185989379883, -0.4022238850593567, 0.14460229873657227, 0.5989586114883423, -0.29590314626693726, 0.17854076623916626, 0.15131449699401855, -0.20352500677108765, 0.36520156264305115, 0.2134505957365036, -0.3256129026412964, -0.49873438477516174, 0.38077643513679504, -0.9427285194396973, -0.29437339305877686, -0.5290036797523499, -0.47553977370262146, -0.12025357782840729, 0.09885130822658539, 0.29182901978492737, 0.5246266722679138, -0.20487715303897858, 0.3252902626991272, 0.9460821151733398, -0.6808913350105286, 0.3580363392829895, 0.48008814454078674, 0.04114605486392975, -0.4836583435535431, 0.6778461933135986, 0.14083509147167206, 0.1683652698993683, 0.611755907535553, -0.03291130065917969, -0.5486908555030823, -0.4445938766002655, -0.39908233284950256, 0.37756189703941345, -0.7708842158317566, -0.2747631072998047, -0.9584582448005676, -0.5745072364807129, -0.588571310043335, 0.140985369682312, -0.3971511721611023, -0.3593914210796356, -0.36207762360572815, -0.1572805643081665, 0.5156419277191162, 0.4501623213291168, -0.0035733282566070557, 0.15516185760498047, -0.7078282237052917, 0.38983917236328125, 0.18978331983089447, 0.3431960344314575, -0.05796453729271889, -0.6732499003410339, -0.2150038778781891, 0.3213464319705963, -0.2751188576221466, -0.8001396656036377, 0.38608601689338684, 0.2502380907535553, 0.657825767993927, 0.07533059269189835, 0.39793357253074646, 0.6160377860069275, -0.15783043205738068, 0.8710258603096008, -0.15445615351200104, -0.5535396933555603, 0.4881899654865265, -0.2603914141654968, 0.209058478474617, 0.7339251041412354, 0.6947935223579407, -0.4099520444869995, -0.06032169610261917, -0.6133689880371094, -0.7905383110046387, 0.670751690864563, 0.1925991326570511, 0.20802995562553406, -0.29314330220222473, 0.639202356338501, -0.1375434547662735, 0.37166109681129456, -0.8594624996185303, -0.32413822412490845, -0.24807515740394592, -0.24934305250644684, 0.01004259567707777, -0.3086719214916229, -0.048514049500226974, -0.5020667314529419, 0.6098807454109192, -0.07982400059700012, 0.690652072429657, 0.5928196310997009, -0.18776850402355194, 0.12671935558319092, 0.12163617461919785, 0.3828805983066559, 0.503401517868042, -0.5797528624534607, -0.33645617961883545, 0.08048607409000397, -0.4997486472129822, -0.04320797696709633, 0.38254204392433167, -0.29958707094192505, -0.046642083674669266, 0.28082314133644104, 0.8310006856918335, 0.11129145324230194, -0.7532417178153992, 0.6996924877166748, -0.21329154074192047, -0.5214477777481079, -0.558483362197876, -0.193984255194664, -0.005713684484362602, 0.24350884556770325, 0.25586214661598206, -0.27013325691223145, 0.18011757731437683, -0.4094916880130768, 0.27372798323631287, 0.38485851883888245, -0.4101639688014984, -0.11832636594772339, 0.6305177211761475, 0.16095776855945587, -0.010551825165748596, 0.884738028049469, -0.4446913003921509, -0.6351319551467896, 0.7611900568008423, 0.25665929913520813, 0.7903679013252258, 0.01223731879144907, 0.2500198483467102, 0.8700640797615051, 0.4417729079723358, 0.016453059390187263, 0.5815349221229553, 0.037115368992090225, -0.9379655122756958, -0.28602880239486694, -0.7517995238304138, -0.3028911352157593, 0.19477149844169617, -0.7946845293045044, 0.019070252776145935, -0.3874363303184509, -0.2504306435585022, -0.2151409387588501, 0.1949397623538971, -0.9649428129196167, 0.22866284847259521, 0.01511296071112156, 1.0768578052520752, -0.7061750888824463, 0.46956804394721985, 0.7029749751091003, -0.8031250834465027, -0.7016204595565796, -0.0023037472274154425, -0.17590610682964325, -0.728960394859314, 0.6287897229194641, 0.2383916825056076, 0.36885353922843933, 0.10167369991540909, -0.6296185255050659, -0.9006660580635071, 1.188284993171692, 0.1413060426712036, -0.4631674885749817, -0.15648049116134644, 0.3302410840988159, 0.5152420401573181, -0.3105006217956543, 0.48795008659362793, 0.4614246189594269, 0.4147067070007324, 0.07457257062196732, -0.8691662549972534, 0.2500723600387573, -0.4385526776313782, -0.17148877680301666, -0.18231184780597687, -0.912348747253418, 1.027687668800354, -0.2202416956424713, -0.1978592723608017, -0.051955241709947586, 0.44676336646080017, 0.3816904127597809, 0.2555904686450958, 0.4696302115917206, 0.7627507448196411, 0.6961487531661987, -0.19975432753562927, 1.1711163520812988, -0.4108105003833771, 0.36668407917022705, 0.8627278804779053, -0.134344682097435, 0.9012612104415894, 0.2596188187599182, -0.25798240303993225, 0.45010611414909363, 0.8230473399162292, -0.16580983996391296, 0.5593200922012329, 0.08514466136693954, 0.002025285502895713, -0.2738599479198456, -0.07758907228708267, -0.514290452003479, 0.3765362501144409, 0.21844258904457092, -0.327380508184433, 0.0152078066021204, 0.03738050162792206, -0.08186065405607224, 0.0011402544332668185, -0.13266439735889435, 0.7729750275611877, 0.06681361049413681, -0.6134358048439026, 0.837773323059082, -0.1426897794008255, 0.8055842518806458, -0.5242906808853149, 0.008177260868251324, -0.30610746145248413, 0.29205334186553955, -0.07029499858617783, -0.87910395860672, 0.21534238755702972, -0.11494258046150208, -0.159878209233284, -0.27906113862991333, 0.6147997379302979, -0.3652556836605072, -0.5623374581336975, 0.3922651410102844, 0.6925750374794006, 0.09449949860572815, -0.2580612599849701, -1.1898938417434692, 0.05446144938468933, -0.018385373055934906, -0.3562721014022827, 0.2496500164270401, 0.35627853870391846, 0.19698169827461243, 0.6983769536018372, 0.4298950731754303, -0.31816092133522034, 0.06604229658842087, 0.05566805228590965, 0.9945714473724365, -0.7657507061958313, -0.3256787657737732, -0.5612075924873352, 0.6792036294937134, -0.19297631084918976, -0.4368800222873688, 0.8639430999755859, 0.6205447912216187, 1.0239564180374146, 0.020828988403081894, 0.8758256435394287, -0.28489476442337036, 0.568529486656189, -0.3173413872718811, 0.6842408776283264, -0.8387472033500671, 0.038018569350242615, -0.3385315537452698, -0.7754948139190674, 0.06350472569465637, 0.5864971280097961, -0.2509714663028717, 0.39612632989883423, 0.5906338095664978, 0.8559475541114807, 0.055933818221092224, 0.06847842037677765, -0.03529425710439682, 0.17973974347114563, 0.13598623871803284, 0.6675969958305359, 0.6688875555992126, -0.7698780298233032, 0.6853234171867371, -0.6158776879310608, -0.1778891384601593, -0.12191390246152878, -0.5742802023887634, -1.038754940032959, -0.687478244304657, -0.4914141893386841, -0.5320354104042053, 0.08687859028577805, 0.7200994491577148, 0.5373212099075317, -0.6793447136878967, -0.12163453549146652, 0.05505139008164406, -0.0011025381973013282, -0.34369388222694397, -0.268726110458374, 0.47241416573524475, -0.019499432295560837, -0.6991794109344482, 0.05632343515753746, -0.15634986758232117, 0.04353180527687073, -0.25732722878456116, -0.20932534337043762, -0.5379360318183899, 0.05146444961428642, 0.5146123170852661, 0.2221686840057373, -0.6259746551513672, -0.2674475908279419, 0.5228409171104431, -0.11822549998760223, 0.039692409336566925, 0.25591710209846497, -0.5100347995758057, 0.2621384561061859, 0.6313759684562683, 0.7422441840171814, 0.6503598093986511, 0.14705009758472443, 0.2461194396018982, -0.7543489933013916, 0.02620328776538372, 0.502629280090332, 0.2678586542606354, 0.42127737402915955, -0.44576510787010193, 0.6106360554695129, 0.24868856370449066, -0.5792285203933716, -0.9172089695930481, -0.03615869581699371, -1.1533801555633545, -0.24709124863147736, 1.3147345781326294, -0.06533879786729813, -0.28960680961608887, 0.035279687494039536, -0.10879959166049957, 0.198943629860878, -0.4079780876636505, 0.5348575711250305, 0.6915819048881531, -0.1365472376346588, -0.3530653119087219, -0.6838259696960449, 0.4468308687210083, 0.19565916061401367, -0.5826792120933533, -0.15455210208892822, 0.4238869547843933, 0.3649526536464691, 0.11047078669071198, 0.8324390053749084, -0.2341022789478302, 0.1409825086593628, 0.07779387384653091, 0.27592113614082336, -0.190047487616539, 0.0292956680059433, -0.26967883110046387, 0.08173668384552002, -0.3478788137435913, -0.1847914159297943 ]
Yntec/nuipenimix2
Yntec
"2023-09-28T17:39:27Z"
12,628
4
diffusers
[ "diffusers", "Anime", "Cute", "Animals", "McSionnaigh", "stable-diffusion", "stable-diffusion-diffusers", "text-to-image", "license:creativeml-openrail-m", "endpoints_compatible", "has_space", "diffusers:StableDiffusionPipeline", "region:us" ]
text-to-image
"2023-09-28T16:58:20Z"
--- license: creativeml-openrail-m library_name: diffusers pipeline_tag: text-to-image tags: - Anime - Cute - Animals - McSionnaigh - stable-diffusion - stable-diffusion-diffusers - diffusers - text-to-image --- # nuipenimix 2 fp16 no-ema version of this model. Original page: https://civitai.com/models/81937?modelVersionId=139841 Sample and prompt: ![Sample](https://cdn-uploads.huggingface.co/production/uploads/63239b8370edc53f51cd5d42/SoiwQEhZqvAW9JdXn5Abu.png) ![Sample](https://cdn-uploads.huggingface.co/production/uploads/63239b8370edc53f51cd5d42/MIbzralOKww2sWggu9lFW.png) icon of cute little red panda, round frame, blue glow, purple background
[ -0.5618448257446289, -0.49376893043518066, 0.16779471933841705, 0.7830192446708679, -0.6888304352760315, 0.025610657408833504, 0.5373353362083435, -0.22689595818519592, 1.3483200073242188, 0.49674585461616516, -0.6849725842475891, -0.3260989487171173, -0.249193474650383, 0.4217378795146942, 0.09710708260536194, 0.5560486316680908, 0.09428583830595016, 0.24189911782741547, 0.11877955496311188, -0.05722687765955925, -0.2845853567123413, 0.036590300500392914, -0.6026710271835327, -0.5032052993774414, 0.41285356879234314, 0.7641652226448059, 0.6190847158432007, 0.401626855134964, 0.3102739453315735, 0.18826989829540253, -0.4360332489013672, -0.23547731339931488, 0.003163062036037445, -0.149099200963974, 0.2678719460964203, -0.8136861324310303, -0.9892997145652771, 0.09284527599811554, 0.6272872090339661, 0.4126470685005188, 0.15023638308048248, 0.3704182505607605, 0.186438649892807, 0.33828768134117126, -0.62059086561203, 0.04527419060468674, -0.09110481292009354, 0.35311564803123474, -0.015320153906941414, 0.008641410619020462, -0.04083102568984032, -0.5275459885597229, -0.36145368218421936, -1.116946816444397, -0.27728983759880066, -0.13741686940193176, 1.2807202339172363, 0.3566727638244629, -0.36692824959754944, -0.09842106699943542, -0.21291504800319672, 0.7412211894989014, -0.49195852875709534, 0.07201924175024033, 0.37570467591285706, 0.375285804271698, -0.2113896906375885, -0.6198577284812927, -0.41981688141822815, 0.17961573600769043, 0.26797112822532654, 0.05289164185523987, -0.5781559348106384, -0.5169308185577393, 0.3212006986141205, -0.030099904164671898, -0.6471807956695557, 0.13921165466308594, -0.5580455660820007, 0.19280315935611725, 0.381036639213562, 0.06379937380552292, 0.7098390460014343, -0.052185606211423874, -0.6727480888366699, 0.12094414979219437, -1.0782065391540527, 0.026928652077913284, 0.22486461699008942, 0.029717793688178062, -0.957947313785553, 0.6839920878410339, -0.19330818951129913, 0.5550746917724609, 0.5849095582962036, 0.41321590542793274, 0.650286078453064, -0.2093832641839981, -0.25890007615089417, -0.05420783534646034, 0.7450894117355347, 0.692838191986084, 0.05896482244133949, 0.405894935131073, -0.029380111023783684, -0.2076711654663086, -0.14214223623275757, -1.7581490278244019, -0.34159401059150696, 0.48972564935684204, -0.684612512588501, -0.5853843688964844, 0.08863724023103714, -1.4287017583847046, -0.11318472772836685, 0.08771011978387833, 0.12182237952947617, -0.34984368085861206, -0.9661999344825745, -0.18979479372501373, -0.07585171610116959, 0.6573531627655029, 0.33056047558784485, -1.1072415113449097, 0.022431155666708946, 0.7499359846115112, 1.0472331047058105, 0.8447648882865906, 0.18469808995723724, -0.4710525870323181, -0.010936115868389606, -0.6764373183250427, 1.0445266962051392, -0.9104140400886536, -0.6341308951377869, -0.17733220756053925, 0.19816063344478607, 0.059187959879636765, -0.6053353548049927, 0.39403438568115234, -0.09617618471384048, -0.28335028886795044, -0.5412507653236389, 0.04374998062849045, -0.36512309312820435, 0.12117462605237961, -0.8349810242652893, 1.0278908014297485, 0.286989688873291, -0.7813267707824707, 0.781730592250824, -1.1230652332305908, 0.1391724944114685, 0.3033357262611389, -0.3097991645336151, -0.5549516677856445, -0.031481821089982986, -0.1405419409275055, 0.39669233560562134, 0.08812084794044495, -0.3877347707748413, -1.1939172744750977, -0.4955240488052368, 0.5214361548423767, 0.08861187100410461, 1.3881404399871826, 0.6045732498168945, -0.3771296739578247, 0.048643581569194794, -1.112059473991394, -0.013852081261575222, 0.5170763731002808, -0.08196935802698135, -0.3852626085281372, -0.9794240593910217, 0.17219612002372742, 0.5634426474571228, 0.6850132346153259, -0.902851939201355, 0.35131338238716125, -0.002198656089603901, 0.5262120962142944, 0.35670021176338196, 0.2435174584388733, 0.4249180555343628, -0.5247417092323303, 1.037895917892456, 0.01967931166291237, 0.6304864287376404, 0.0403384193778038, -0.7241781949996948, -0.7772662043571472, -0.6306936740875244, 0.5532811284065247, 0.3684212863445282, -0.7569049000740051, 0.5739127993583679, 0.08127676695585251, -1.0352296829223633, -0.6271138191223145, 0.08087686449289322, 0.15663756430149078, -0.1315910369157791, -0.1573900580406189, -0.5433534383773804, -0.6745278239250183, -0.9494341015815735, 0.14026260375976562, 0.019109167158603668, -0.4801819920539856, 0.5032378435134888, 0.7665982246398926, -0.3306495249271393, 0.6808103322982788, -0.18903054296970367, -0.3357800841331482, -0.341232568025589, 0.18419991433620453, 0.6112660765647888, 0.594237744808197, 1.259325623512268, -1.0743404626846313, -0.5869815349578857, -0.2938551604747772, -0.7955649495124817, -0.46076610684394836, 0.10021399706602097, -0.033566683530807495, 0.03464551270008087, 0.03513731062412262, -0.5335151553153992, 0.6456735134124756, 0.6297018527984619, -0.7583756446838379, 0.24329309165477753, -0.4602784514427185, 0.37109771370887756, -1.317558765411377, 0.5297812223434448, 0.3867156207561493, 0.06871593743562698, -0.3420119285583496, 0.43390581011772156, 0.4037361741065979, -0.33485355973243713, -0.7809302806854248, 0.6802736520767212, -0.8022974133491516, -0.13058748841285706, -0.31600889563560486, 0.03131302818655968, 0.2873421311378479, 0.22469279170036316, -0.15456031262874603, 0.6740246415138245, 0.46391791105270386, -0.5051317811012268, 0.06473032385110855, 0.6368482708930969, -0.37841981649398804, 0.754946231842041, -1.0808089971542358, -0.0265997014939785, 0.25046631693840027, 0.28147485852241516, -0.8928188681602478, -0.39448124170303345, 0.7416459321975708, -0.7174380421638489, 0.33979591727256775, -0.16141460835933685, -0.6754605770111084, -0.09088785201311111, -0.6814590096473694, 0.5755881071090698, 0.6456748843193054, -0.7835763096809387, 0.565163791179657, 0.46799540519714355, -0.2664925456047058, -0.20778129994869232, -0.8596861958503723, 0.09300296008586884, -0.5020062923431396, -0.6041938066482544, 0.32533523440361023, -0.021207913756370544, -0.3778088688850403, -0.47492149472236633, 0.19499360024929047, -0.7365183234214783, 0.19654810428619385, 0.7023078203201294, 0.42829492688179016, -0.2426362931728363, -0.40637609362602234, 0.2886836528778076, -0.2583705186843872, 0.13066153228282928, 1.0264148712158203, 0.7810438871383667, -0.1443907916545868, 0.07491797208786011, -1.0979310274124146, 0.3178001046180725, 0.8138490319252014, -0.19983600080013275, 0.40743762254714966, 0.5895218253135681, -0.6080238223075867, -0.03417295590043068, -0.16831551492214203, -0.38262924551963806, -0.5001652836799622, -0.3096012771129608, -0.7392662763595581, -0.1625279039144516, 0.8208397030830383, 0.1307714283466339, -0.17699049413204193, 0.4733426570892334, 0.5060899257659912, 0.11602559685707092, 1.2111393213272095, 0.6558054685592651, 0.19782152771949768, 0.7890773415565491, -0.6508841514587402, 0.004654087591916323, -1.275465965270996, -0.5977031588554382, -0.6363407373428345, -0.27879875898361206, -0.558777391910553, -0.2512114644050598, -0.017538905143737793, 0.09520889073610306, -0.6263629198074341, 0.7154003381729126, -0.522727370262146, 0.1633731722831726, 0.44706371426582336, 0.4182678461074829, 0.1273449957370758, -0.1175430566072464, -0.11922027915716171, -0.37218818068504333, -0.6933916211128235, -0.7042858004570007, 1.0207703113555908, 0.35623595118522644, 0.5107114911079407, 0.2706952691078186, 0.9650651216506958, -0.06521102786064148, 0.3532489538192749, -0.3505227267742157, 0.6618391871452332, 0.0160920862108469, -0.7065208554267883, 0.19548210501670837, 0.06321322917938232, -0.9999386668205261, 0.4459543824195862, -0.37821534276008606, -0.5820968747138977, 0.8548577427864075, 0.10491753369569778, -0.7389044165611267, 0.2670946419239044, -0.41864293813705444, 0.8194260597229004, -0.14032785594463348, -0.32866713404655457, -0.03054139018058777, -0.35651543736457825, 0.2996763586997986, 0.08903884887695312, 0.09118231385946274, -0.32730573415756226, -0.5483235120773315, 0.6685221791267395, -0.6383851766586304, 1.1605942249298096, -0.27255284786224365, 0.0452500656247139, 0.33553823828697205, -0.06687194854021072, 0.18796800076961517, 0.4495062828063965, -0.3198394477367401, 0.17553506791591644, 0.03570058196783066, -0.32804396748542786, -0.3497919738292694, 0.7233664393424988, -0.5785315036773682, -0.09822052717208862, -0.73017817735672, 0.2591005563735962, 0.5429942607879639, 0.21770839393138885, 0.49309349060058594, 0.32249388098716736, -0.3309324085712433, 0.5064294934272766, 0.5279539227485657, -0.15359516441822052, 0.3496846556663513, 0.6433716416358948, -0.4982858896255493, -0.45657041668891907, 0.8149552941322327, 0.08589939028024673, 0.08093016594648361, 0.42117878794670105, 0.1738366186618805, -0.2219342589378357, -0.11076276749372482, -0.5532327890396118, 0.44128406047821045, -0.16995246708393097, -0.17290177941322327, -0.542702317237854, 0.12526658177375793, -0.592853307723999, -0.21669435501098633, -0.34811925888061523, -0.48762837052345276, -1.262708306312561, 0.13349507749080658, 0.5642827749252319, 0.5084683895111084, -0.6649459004402161, 0.32690051198005676, -0.5435786247253418, 0.39606210589408875, 0.4540800452232361, 0.21115772426128387, -0.46883073449134827, -0.6441490650177002, 0.515358030796051, 0.3464212417602539, -0.7564032077789307, -0.8150843381881714, 0.7999725937843323, 0.012148489244282246, 0.35390451550483704, 0.734510064125061, 0.07726407051086426, 0.6517472267150879, -0.26354461908340454, 0.7480871677398682, 0.5527443289756775, -0.7539018392562866, 0.7573999762535095, -0.47574853897094727, 0.11935780942440033, 0.5708479881286621, 0.27245086431503296, -0.35207265615463257, -0.21030443906784058, -1.0229381322860718, -0.7092870473861694, 0.15445122122764587, -0.023218337446451187, -0.10407362133264542, 0.24505968391895294, 0.3604910373687744, -0.012040163390338421, 0.20177119970321655, -0.5512924790382385, -0.22165843844413757, -0.5511668920516968, 0.07272704690694809, 0.4390268921852112, -0.4623514711856842, -0.07425165176391602, -0.36448121070861816, 0.667214035987854, -0.4046817719936371, 0.5507597923278809, 0.013886339031159878, 0.157603919506073, -0.3568134903907776, 0.07442524284124374, 0.7743293642997742, 0.9615655541419983, -0.6403269171714783, -0.7516167759895325, -0.20719486474990845, -0.17086072266101837, -0.14544136822223663, 0.03063494898378849, -0.5282894372940063, 0.47001174092292786, -0.17802442610263824, 0.682710587978363, 0.9628278613090515, -0.3642154037952423, 0.958297073841095, -0.28692030906677246, -0.10986076295375824, -0.7275484800338745, 0.18488754332065582, -0.12661591172218323, 0.45535045862197876, 0.42388471961021423, -0.037951383739709854, 0.432573139667511, -0.4419136345386505, 0.19655057787895203, 0.4713132381439209, -0.38437268137931824, -0.7068288326263428, 1.1275794506072998, 0.36439162492752075, -0.6227872371673584, 0.511504590511322, -0.15738554298877716, -0.37863627076148987, 1.3412413597106934, 0.5845898389816284, 1.0760339498519897, -0.6060126423835754, 0.7340466380119324, 0.6002258062362671, 0.20934352278709412, 0.2408534288406372, 1.1695407629013062, -0.014286667108535767, -0.35903429985046387, 0.385961651802063, -0.4823670983314514, -0.8977294564247131, 0.10835786163806915, -1.2233868837356567, 0.7631617784500122, -1.1136112213134766, -0.01833360269665718, 0.17719748616218567, 0.28728410601615906, -0.6083189249038696, 0.35158827900886536, -0.18072529137134552, 1.4718588590621948, -1.069583535194397, 0.8107643127441406, 0.6454052925109863, -0.7710525393486023, -0.6364356875419617, -0.47392353415489197, -0.004875877406448126, -1.1489028930664062, 0.5535061955451965, 0.6665106415748596, 0.5007740259170532, -0.46531012654304504, -0.850570023059845, -0.7803007960319519, 1.267998218536377, 0.18895910680294037, -0.5301756262779236, 0.3694700002670288, -0.21955978870391846, 0.2838500142097473, -0.8273707628250122, 0.30860432982444763, 0.3397880792617798, 0.6054661273956299, 0.3601866364479065, -0.8058186769485474, 0.19671477377414703, -0.7523398995399475, 0.15543924272060394, 0.11438111960887909, -1.3187373876571655, 1.051758885383606, -0.5273837447166443, -0.21481655538082123, 0.8787136077880859, 0.7296786904335022, 0.7550041079521179, 0.4104433059692383, 0.5779710412025452, 0.44156643748283386, 0.134669229388237, -0.13678136467933655, 0.8190784454345703, -0.28020238876342773, 0.32482829689979553, 0.8606123328208923, -0.48296788334846497, 1.0468358993530273, 0.7101149559020996, -0.11479446291923523, 0.5470715165138245, 1.150151252746582, -0.6472763419151306, 0.5610324740409851, -0.14017023146152496, -0.29202812910079956, -0.08557868003845215, -0.2927643060684204, -0.7040884494781494, 0.6382313966751099, 0.41380539536476135, -0.4783298373222351, -0.15291941165924072, -0.20251108705997467, 0.014729575254023075, -0.06279878318309784, -0.4248381555080414, 0.7590222954750061, 0.2559301257133484, -0.25818169116973877, 0.4420514702796936, -0.25777751207351685, 0.7257348895072937, -0.42485055327415466, -0.5324210524559021, -0.3266659379005432, 0.1661117970943451, -0.44799092411994934, -0.7188677787780762, 0.15357257425785065, -0.03230942413210869, 0.15562978386878967, -0.26360008120536804, 0.5543525218963623, -0.09890133142471313, -0.8317779302597046, 0.25403404235839844, -0.07001141458749771, 0.567500114440918, 0.11171244084835052, -1.1452088356018066, 0.3137676417827606, -0.06063609942793846, -0.14634989202022552, 0.3836987018585205, 0.3604412078857422, 0.371488094329834, 0.8788717985153198, 0.4061550498008728, 0.09395332634449005, 0.06234913319349289, -0.32111144065856934, 0.7633289098739624, -0.4677150845527649, -0.9296291470527649, -0.5152158141136169, 0.45201823115348816, -0.41709354519844055, -0.7984216213226318, 0.7262780666351318, 0.8198423981666565, 0.5402070879936218, -0.32645708322525024, 0.48519954085350037, 0.016559205949306488, 0.46249887347221375, -0.35062476992607117, 0.9977220892906189, -0.8472309112548828, -0.2564554810523987, -0.15841875970363617, -0.7711798548698425, -0.2467610388994217, 1.263980746269226, 0.290031373500824, 0.11679040640592575, 0.2028958797454834, 1.0411946773529053, -0.07166961580514908, 0.3373868465423584, 0.2049684226512909, 0.18267518281936646, 0.2521425485610962, 0.4081839621067047, 0.5865833163261414, -0.7027384638786316, 0.2527351975440979, -0.5977962017059326, -0.7495299577713013, -0.7835394740104675, -0.851528525352478, -0.9551270008087158, -0.34178081154823303, -0.5849745273590088, -0.4970119595527649, -0.4679381251335144, 1.0023423433303833, 0.6019699573516846, -0.751292884349823, -0.10081648081541061, 0.2843218743801117, 0.08408031612634659, 0.03755539283156395, -0.21416480839252472, 0.022680072113871574, 0.666467547416687, -0.9720697999000549, 0.15010735392570496, 0.3380250334739685, 0.6410902142524719, -0.22938881814479828, 0.127321258187294, -0.12983453273773193, -0.10786759853363037, 0.0657927393913269, 0.9178873300552368, -0.5243105888366699, -0.3336508572101593, -0.12036290019750595, 0.08076518774032593, 0.29814448952674866, 0.6072905659675598, -0.2525669038295746, 0.004938419442623854, 0.4433503746986389, 0.07831283658742905, 0.20711657404899597, -0.3598586916923523, 0.4614817500114441, -0.11634714156389236, 0.40183645486831665, 0.17828288674354553, 0.9189186096191406, 0.23828069865703583, -0.20433619618415833, 0.6349577903747559, 0.08550673723220825, -0.47742247581481934, -1.055844783782959, 0.03872144594788551, -1.5650357007980347, -0.08408205211162567, 1.3336381912231445, -0.07706185430288315, -0.9220683574676514, 0.17674033343791962, -0.29862943291664124, 0.2111460566520691, -0.7354776859283447, 0.7007029056549072, 0.31818532943725586, 0.09088089317083359, -0.27317890524864197, -0.25319498777389526, -0.05254833400249481, 0.1754327118396759, -0.907758355140686, -0.5418823957443237, 0.276897132396698, 0.7490817904472351, 0.4291442036628723, 0.3911619186401367, -0.432722270488739, 0.7814556360244751, 0.3585955500602722, 0.2726779878139496, -0.1063869446516037, -0.3382006287574768, -0.6120757460594177, 0.05085887759923935, -0.18586465716362, -0.958077609539032 ]
timm/vit_base_patch8_224.augreg2_in21k_ft_in1k
timm
"2023-05-06T00:00:01Z"
12,587
0
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "dataset:imagenet-21k", "arxiv:2106.10270", "arxiv:2010.11929", "license:apache-2.0", "region:us" ]
image-classification
"2022-12-22T07:22:31Z"
--- tags: - image-classification - timm library_name: timm license: apache-2.0 datasets: - imagenet-1k - imagenet-21k --- # Model card for vit_base_patch8_224.augreg2_in21k_ft_in1k A Vision Transformer (ViT) image classification model. Trained on ImageNet-21k by paper authors and (re) fine-tuned on ImageNet-1k with additional augmentation and regularization by Ross Wightman. ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 86.6 - GMACs: 66.9 - Activations (M): 65.7 - Image size: 224 x 224 - **Papers:** - How to train your ViT? Data, Augmentation, and Regularization in Vision Transformers: https://arxiv.org/abs/2106.10270 - An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale: https://arxiv.org/abs/2010.11929v2 - **Dataset:** ImageNet-1k - **Pretrain Dataset:** ImageNet-21k - **Original:** https://github.com/google-research/vision_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('vit_base_patch8_224.augreg2_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( 'vit_base_patch8_224.augreg2_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, 785, 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{steiner2021augreg, title={How to train your ViT? Data, Augmentation, and Regularization in Vision Transformers}, author={Steiner, Andreas and Kolesnikov, Alexander and and Zhai, Xiaohua and Wightman, Ross and Uszkoreit, Jakob and Beyer, Lucas}, journal={arXiv preprint arXiv:2106.10270}, 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.5312397480010986, -0.37725573778152466, -0.04431285336613655, 0.10155341029167175, -0.41203662753105164, -0.345737099647522, -0.2703222930431366, -0.4963410198688507, 0.17098146677017212, 0.35888317227363586, -0.5752439498901367, -0.46199074387550354, -0.6619219779968262, -0.005105305463075638, -0.13029803335666656, 0.9536447525024414, -0.12447526305913925, 0.0952879935503006, -0.2433156967163086, -0.45217618346214294, -0.3592146933078766, -0.2767905592918396, -0.6434701681137085, -0.46352270245552063, 0.3334895372390747, 0.1955607384443283, 0.5581773519515991, 0.6508349776268005, 0.7883270978927612, 0.44653990864753723, -0.12680351734161377, 0.1844668835401535, -0.37993761897087097, -0.267439603805542, 0.30952373147010803, -0.6642570495605469, -0.4139711260795593, 0.25518566370010376, 0.7473124265670776, 0.3885413110256195, 0.13787810504436493, 0.33914268016815186, 0.16229675710201263, 0.5564834475517273, -0.3255161941051483, 0.19819170236587524, -0.5551348924636841, 0.25621968507766724, -0.07418356835842133, -0.04541369527578354, -0.3082996904850006, -0.33979639410972595, 0.19663339853286743, -0.5648320317268372, 0.5858190059661865, -0.04481323063373566, 1.4183180332183838, 0.32415643334388733, 0.04966570436954498, 0.2460247427225113, -0.4302898943424225, 0.7717069983482361, -0.6683013439178467, 0.44773614406585693, 0.24431703984737396, 0.17259833216667175, 0.05359281226992607, -0.9958274364471436, -0.6947584748268127, -0.14488926529884338, -0.27041149139404297, 0.11768408119678497, -0.27558183670043945, 0.21290899813175201, 0.4840889275074005, 0.5850010514259338, -0.5327847003936768, 0.023803111165761948, -0.6021332144737244, -0.25718218088150024, 0.567880392074585, -0.041124965995550156, 0.18511465191841125, -0.1449236124753952, -0.6777620911598206, -0.5683240294456482, -0.3854803740978241, 0.32866171002388, 0.31236040592193604, 0.06330713629722595, -0.5031890869140625, 0.5352808237075806, 0.05177450552582741, 0.6376988887786865, 0.30409616231918335, -0.21992646157741547, 0.697161853313446, -0.208604633808136, -0.40138721466064453, -0.2752097547054291, 1.0852841138839722, 0.4881908893585205, 0.41359758377075195, -0.017244471237063408, -0.2066524475812912, -0.12394322454929352, 0.06986971199512482, -1.107079267501831, -0.3508596122264862, 0.07346107065677643, -0.4684402048587799, -0.4036162793636322, 0.36388924717903137, -0.6037737727165222, -0.11452655494213104, -0.140591099858284, 0.7737420201301575, -0.45578625798225403, -0.23337103426456451, 0.10683523863554001, -0.17895673215389252, 0.5434672832489014, 0.22655239701271057, -0.6389652490615845, 0.15521249175071716, 0.26495039463043213, 1.0229103565216064, 0.038819570094347, -0.48189976811408997, -0.24603866040706635, -0.44937652349472046, -0.37865665555000305, 0.5419741272926331, -0.05432981997728348, -0.14704331755638123, -0.19151540100574493, 0.4005732834339142, -0.2539430558681488, -0.615055501461029, 0.3405938446521759, -0.2106809765100479, 0.37686285376548767, 0.0627516657114029, -0.23818504810333252, -0.43457290530204773, 0.3070259690284729, -0.4344101548194885, 1.2894362211227417, 0.4272283911705017, -0.8998326659202576, 0.4298805892467499, -0.4655933380126953, -0.09337029606103897, -0.10773223638534546, 0.0175334345549345, -1.0866265296936035, 0.02831355296075344, 0.2833394408226013, 0.5628653168678284, -0.22962848842144012, -0.016868803650140762, -0.3788808584213257, -0.3568921387195587, 0.3369051218032837, -0.22933772206306458, 0.9324032068252563, -0.0028072032146155834, -0.32144132256507874, 0.2414541244506836, -0.6387497186660767, 0.08408790826797485, 0.43990176916122437, -0.28546077013015747, -0.0107810590416193, -0.610723614692688, 0.14340457320213318, 0.23809072375297546, 0.24073709547519684, -0.6971095204353333, 0.36117640137672424, -0.41101720929145813, 0.4054945111274719, 0.6654714941978455, -0.09843713790178299, 0.3777739107608795, -0.358693391084671, 0.3246658742427826, 0.2905777394771576, 0.432058185338974, -0.16561037302017212, -0.6563012599945068, -1.0566565990447998, -0.40639716386795044, 0.36359384655952454, 0.5157497525215149, -0.658559262752533, 0.5933002233505249, -0.3556416928768158, -0.7321340441703796, -0.6203898191452026, 0.07239404320716858, 0.5043697953224182, 0.5885911583900452, 0.534317135810852, -0.5771244764328003, -0.5482250452041626, -1.0340509414672852, -0.11662004888057709, -0.0675484761595726, 0.005863392259925604, 0.2408565729856491, 0.5965691208839417, -0.2679891884326935, 0.88468337059021, -0.4424889385700226, -0.3380727767944336, -0.18864569067955017, 0.04041502624750137, 0.3236522972583771, 0.7889093160629272, 0.7440189123153687, -0.7106537818908691, -0.48042595386505127, -0.15020065009593964, -0.8823912739753723, 0.13381057977676392, -0.037067558616399765, -0.20352376997470856, 0.13083945214748383, 0.18403708934783936, -0.6799308061599731, 0.7385089993476868, 0.14152640104293823, -0.37776562571525574, 0.41282907128334045, -0.23121938109397888, 0.07814322412014008, -1.2049282789230347, -0.01054149679839611, 0.3938943147659302, -0.27252575755119324, -0.5653253197669983, -0.0011534820077940822, 0.12338827550411224, -0.005375684704631567, -0.43401408195495605, 0.5801647305488586, -0.5146573185920715, -0.014500097371637821, -0.08774443715810776, -0.3538949489593506, 0.07193305343389511, 0.7906291484832764, -0.061080217361450195, 0.5452203750610352, 0.7541232705116272, -0.4911699593067169, 0.5382868647575378, 0.5641657710075378, -0.21989689767360687, 0.4960671663284302, -0.7469098567962646, 0.17250187695026398, -0.07245950400829315, 0.19599202275276184, -1.0720807313919067, -0.18750765919685364, 0.40459826588630676, -0.7384871244430542, 0.7092540860176086, -0.5044859647750854, -0.46457618474960327, -0.6079970002174377, -0.4444311261177063, 0.42166635394096375, 0.7836170196533203, -0.7730323672294617, 0.5499424934387207, 0.11891575902700424, 0.2919061481952667, -0.5988532304763794, -1.0137876272201538, -0.22606848180294037, -0.3725237548351288, -0.7224321961402893, 0.46545669436454773, 0.04446907714009285, 0.15459248423576355, 0.06264521926641464, -0.07713820785284042, -0.034117646515369415, -0.20571313798427582, 0.47287946939468384, 0.4377549886703491, -0.2479235827922821, -0.0702095478773117, -0.3039264380931854, -0.24228259921073914, 0.014663555659353733, -0.33631640672683716, 0.4802318513393402, -0.29003816843032837, -0.1977861523628235, -0.7285246253013611, -0.21040210127830505, 0.48983946442604065, -0.29461246728897095, 0.7222397327423096, 1.1584429740905762, -0.5238450765609741, 0.08080305904150009, -0.6052745580673218, -0.37979504466056824, -0.5056049823760986, 0.46001002192497253, -0.33270078897476196, -0.4796161651611328, 0.7250027656555176, 0.15990383923053741, 0.0954442173242569, 0.8064244985580444, 0.4240877032279968, 0.04089760407805443, 0.8363351821899414, 0.7250233888626099, 0.157293900847435, 0.8617185950279236, -0.9804142117500305, -0.12805873155593872, -0.9668260216712952, -0.4229169189929962, -0.24047313630580902, -0.5663711428642273, -0.6813523173332214, -0.4972948729991913, 0.42766690254211426, 0.13240747153759003, -0.28393977880477905, 0.5569711327552795, -0.8818473815917969, 0.19809913635253906, 0.7277584671974182, 0.5340977907180786, -0.13976827263832092, 0.41591697931289673, -0.18160291016101837, -0.07368721067905426, -0.7648388147354126, -0.12022022902965546, 1.079318642616272, 0.5047468543052673, 0.7788825631141663, -0.28699660301208496, 0.6116966605186462, -0.24504372477531433, 0.29753485321998596, -0.7753525972366333, 0.5499911308288574, -0.08746720850467682, -0.42394933104515076, -0.12888580560684204, -0.36552390456199646, -1.0000247955322266, 0.18658803403377533, -0.3449327051639557, -0.7756530046463013, 0.4031287729740143, 0.19866278767585754, -0.2349638044834137, 0.6546799540519714, -0.8446329236030579, 0.9592121243476868, -0.08826078474521637, -0.44106900691986084, 0.08862274140119553, -0.7698968052864075, 0.22120694816112518, 0.19439135491847992, -0.35729044675827026, 0.12590168416500092, 0.2469296008348465, 1.0029919147491455, -0.6171291470527649, 0.8642101287841797, -0.43177565932273865, 0.3460651636123657, 0.4890531003475189, -0.275569885969162, 0.3954233229160309, -0.0014332004357129335, 0.16308891773223877, 0.3500949442386627, -0.06302232295274734, -0.3760920464992523, -0.4951992332935333, 0.4680541455745697, -1.029706358909607, -0.3747709393501282, -0.4486892521381378, -0.5637589693069458, 0.08981896191835403, 0.08556350320577621, 0.7450732588768005, 0.654904305934906, 0.27876296639442444, 0.3963157534599304, 0.735822856426239, -0.3144494295120239, 0.37932413816452026, 0.023118881508708, -0.11814408004283905, -0.5657307505607605, 0.9483442902565002, 0.2716729938983917, 0.19248424470424652, 0.21695122122764587, 0.21963462233543396, -0.3376719057559967, -0.4973824918270111, -0.3850301206111908, 0.4178755581378937, -0.71738201379776, -0.4767414927482605, -0.5851907730102539, -0.5613881349563599, -0.3527948558330536, 0.03571567311882973, -0.43992140889167786, -0.37351131439208984, -0.39280861616134644, 0.08438228815793991, 0.8196080327033997, 0.5572845935821533, -0.13641318678855896, 0.5413628220558167, -0.5912680625915527, 0.23768292367458344, 0.3041367828845978, 0.5711619853973389, -0.2005937695503235, -1.057539463043213, -0.3945852220058441, 0.03792378306388855, -0.49218159914016724, -0.7698301672935486, 0.4207233488559723, 0.23016609251499176, 0.49349063634872437, 0.42106297612190247, -0.2901703715324402, 0.8522759079933167, -0.1178990975022316, 0.6367263197898865, 0.3462938368320465, -0.5144515037536621, 0.5050725340843201, -0.0831647738814354, 0.14267219603061676, 0.22470280528068542, 0.1953442096710205, -0.2543191611766815, -0.0469917431473732, -1.0732085704803467, -0.7486677765846252, 0.8063333630561829, 0.24924589693546295, 0.061648134142160416, 0.47321823239326477, 0.6596128940582275, -0.012907023541629314, 0.05919928103685379, -0.8847439289093018, -0.37768444418907166, -0.41440513730049133, -0.28908592462539673, -0.08039754629135132, -0.09081262350082397, -0.010871575213968754, -0.8055172562599182, 0.7015157341957092, -0.06989894062280655, 0.81748366355896, 0.45115843415260315, -0.17324388027191162, -0.20413750410079956, -0.38640549778938293, 0.4135729670524597, 0.24950461089611053, -0.2842242121696472, 0.014920654706656933, 0.2994515895843506, -0.7594988346099854, -0.025453897193074226, 0.34303659200668335, -0.12223000079393387, 0.056494664400815964, 0.4758893847465515, 1.1377636194229126, -0.10696469992399216, -0.0005930440966039896, 0.555672824382782, -0.08829234540462494, -0.4684186279773712, -0.28022611141204834, 0.10492346435785294, -0.2382436841726303, 0.3794795572757721, 0.3383689522743225, 0.4256225824356079, -0.12581241130828857, -0.13421675562858582, 0.16550680994987488, 0.5444199442863464, -0.5698583722114563, -0.39778366684913635, 0.6991165280342102, -0.2155098170042038, -0.14179767668247223, 0.792818009853363, -0.08937405049800873, -0.5973544120788574, 0.9124993681907654, 0.3502211570739746, 1.0695734024047852, -0.11138424277305603, -0.07239691913127899, 0.810310423374176, 0.4003484547138214, -0.053220003843307495, 0.19813776016235352, 0.14942240715026855, -0.812968909740448, -0.0748233050107956, -0.6416422724723816, 0.04568491876125336, 0.3820880949497223, -0.5360621809959412, 0.40027809143066406, -0.518250048160553, -0.3687834143638611, 0.059698835015296936, 0.2448015958070755, -1.0174543857574463, 0.30489200353622437, 0.07021068036556244, 0.823733925819397, -0.8368344306945801, 0.6756022572517395, 0.8906310200691223, -0.6515748500823975, -0.9878090620040894, -0.18675388395786285, -0.16439945995807648, -0.8827767968177795, 0.45719224214553833, 0.4507991373538971, 0.1563396155834198, 0.22211810946464539, -0.8596891164779663, -0.6442916393280029, 1.3380104303359985, 0.38225483894348145, -0.1631281077861786, 0.16539275646209717, -0.0002568326599430293, 0.37506821751594543, -0.3172603249549866, 0.4183465242385864, 0.1772000789642334, 0.4385194480419159, 0.20805099606513977, -0.7338280081748962, 0.08162038028240204, -0.395467609167099, 0.18013326823711395, 0.2079479992389679, -0.8774949312210083, 0.9863090515136719, -0.4073227345943451, -0.12034419924020767, 0.1636466383934021, 0.6387327313423157, 0.09750698506832123, 0.08582253009080887, 0.6009898781776428, 0.9218103289604187, 0.4077945947647095, -0.40368854999542236, 0.8977171778678894, -0.16461412608623505, 0.6862635016441345, 0.5191823840141296, 0.48861420154571533, 0.4477972686290741, 0.44823190569877625, -0.3481520712375641, 0.34412881731987, 1.050268292427063, -0.5922874212265015, 0.33534470200538635, 0.09080219268798828, 0.08166586607694626, -0.23767560720443726, 0.05515449494123459, -0.5144297480583191, 0.4968625009059906, 0.21417763829231262, -0.5487573146820068, -0.07712190598249435, 0.16054964065551758, -0.16853009164333344, -0.3678337335586548, -0.18069115281105042, 0.6444229483604431, 0.02791309915482998, -0.4460620880126953, 0.8594861030578613, -0.0008193916291929781, 0.8337646126747131, -0.4707486629486084, -0.06018805503845215, -0.27735453844070435, 0.39698678255081177, -0.3789093494415283, -0.801963746547699, 0.17224708199501038, -0.23082858324050903, -0.13254483044147491, 0.04297599568963051, 0.7554983496665955, -0.4408353269100189, -0.5767917037010193, 0.12118974328041077, 0.30902719497680664, 0.3356342017650604, -0.0551595613360405, -1.0579068660736084, -0.08711349219083786, 0.008352262899279594, -0.5978519320487976, 0.20321950316429138, 0.3957952857017517, 0.03866742178797722, 0.6669881343841553, 0.6824718713760376, -0.0883590504527092, 0.22036373615264893, -0.13546258211135864, 0.9647394418716431, -0.4151739776134491, -0.4189971685409546, -0.8074474930763245, 0.6573741436004639, -0.06963126361370087, -0.6356196403503418, 0.6652047038078308, 0.6575015783309937, 0.938578188419342, -0.14008167386054993, 0.5054582953453064, -0.1360682100057602, 0.06388553977012634, -0.38429343700408936, 0.5982078909873962, -0.7315959334373474, -0.09092707931995392, -0.24573765695095062, -0.8977684378623962, -0.34427231550216675, 0.910869836807251, -0.26386818289756775, 0.4145362973213196, 0.502981960773468, 1.0141465663909912, -0.335736483335495, -0.41310176253318787, 0.17479966580867767, 0.202989399433136, 0.08936362713575363, 0.4077160060405731, 0.5413140654563904, -0.9085698127746582, 0.4615772068500519, -0.6263418793678284, -0.19092579185962677, -0.23495785892009735, -0.48709800839424133, -1.0483072996139526, -0.8456780910491943, -0.5720535516738892, -0.6584136486053467, -0.22595833241939545, 0.8615517020225525, 0.9901860952377319, -0.5834890604019165, -0.06420391798019409, -0.12339188903570175, 0.006659954786300659, -0.3325953483581543, -0.24171973764896393, 0.49575334787368774, -0.1275194138288498, -0.7587118744850159, -0.2805754542350769, 0.018250416964292526, 0.5207465887069702, -0.20061257481575012, -0.20866091549396515, -0.1784876435995102, -0.28383877873420715, 0.26368650794029236, 0.3009796440601349, -0.7024589776992798, -0.2229030728340149, -0.045564014464616776, -0.06443460285663605, 0.5482383370399475, 0.38287603855133057, -0.7445763349533081, 0.5544389486312866, 0.5830714106559753, 0.3548498749732971, 0.8352219462394714, -0.13103221356868744, 0.09359418600797653, -0.8911214470863342, 0.5603455305099487, -0.07246788591146469, 0.5225401520729065, 0.5294071435928345, -0.34058457612991333, 0.6498106718063354, 0.5952365398406982, -0.4554409682750702, -0.8531041145324707, -0.02622196450829506, -1.1447007656097412, 0.1032860204577446, 0.9740592241287231, -0.2450702041387558, -0.45361194014549255, 0.3977329134941101, -0.1825241893529892, 0.7229940295219421, -0.05103828012943268, 0.43398967385292053, 0.25678184628486633, 0.07723558694124222, -0.6024892330169678, -0.4753538966178894, 0.5323036909103394, 0.12192214280366898, -0.5467331409454346, -0.41167935729026794, 0.03025902807712555, 0.5701701045036316, 0.38153472542762756, 0.37645450234413147, -0.15484993159770966, 0.17931731045246124, 0.06407171487808228, 0.5183549523353577, -0.4074883759021759, -0.14603371918201447, -0.45529231429100037, -0.18235954642295837, -0.1085892766714096, -0.6394747495651245 ]
yiyanghkust/finbert-pretrain
yiyanghkust
"2022-10-17T00:38:42Z"
12,566
25
transformers
[ "transformers", "pytorch", "fill-mask", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
fill-mask
"2022-03-02T23:29:05Z"
`FinBERT` is a BERT model pre-trained on financial communication text. The purpose is to enhance financial NLP research and practice. It is trained on the following three financial communication corpus. The total corpora size is 4.9B tokens. - Corporate Reports 10-K & 10-Q: 2.5B tokens - Earnings Call Transcripts: 1.3B tokens - Analyst Reports: 1.1B tokens If you use the model in your academic work, please cite the following papers: Huang, Allen H., Hui Wang, and Yi Yang. "FinBERT: A Large Language Model for Extracting Information from Financial Text." *Contemporary Accounting Research* (2022). Yang, Yi, Mark Christopher Siy Uy, and Allen Huang. "Finbert: A pretrained language model for financial communications." *arXiv preprint arXiv:2006.08097* (2020). `FinBERT` can be further fine-tuned on downstream tasks. Specifically, we have fine-tuned `FinBERT` for financial sentiment analysis, ESG classification, Forward-looking statement classification and etc. Visit [FinBERT.AI](https://finbert.ai/) for more details on these task-specific models and recent development of FinBERT.
[ -0.4932912290096283, -0.6738665103912354, 0.03456713631749153, 0.5198118686676025, -0.31038305163383484, 0.21524843573570251, -0.36142730712890625, -0.7526615262031555, 0.2829727828502655, 0.6848041415214539, -0.4394040107727051, -0.5532993078231812, -0.5071460008621216, -0.02103154920041561, -0.5284389853477478, 1.6581248044967651, 0.261870801448822, 0.3748946189880371, 0.28337350487709045, 0.19275318086147308, -0.10659635066986084, -0.6349105834960938, -1.106566071510315, -0.10105493664741516, 0.7129768133163452, 0.4132750928401947, 0.44118577241897583, 0.2636093497276306, 0.7815935611724854, 0.33392876386642456, 0.0845477283000946, -0.13478398323059082, -0.5529891848564148, -0.2275930792093277, 0.11517628282308578, -0.44374245405197144, -0.57927006483078, 0.21806477010250092, 0.5474185943603516, 0.8622192144393921, 0.05677974224090576, 0.4378294348716736, -0.01581569015979767, 1.0627845525741577, -0.5637174248695374, 0.5126727819442749, -0.24939601123332977, -0.125566765666008, -0.14848542213439941, 0.0297577865421772, -0.6396517157554626, -0.36726123094558716, 0.7333147525787354, -0.4648003578186035, 0.20369476079940796, 0.3830384910106659, 0.975982129573822, -0.02654961124062538, -0.17848263680934906, -0.41721880435943604, -0.6402344703674316, 0.7344890832901001, -0.6865473389625549, 0.5279873609542847, 0.23797596991062164, 0.1925291270017624, 0.1928301304578781, -1.1354649066925049, -0.34291812777519226, -0.13038398325443268, -0.21555128693580627, 0.1205461174249649, -0.4726560711860657, 0.269709050655365, 0.004513284657150507, 0.08885806053876877, -0.33207613229751587, -0.12701429426670074, -0.9614370465278625, -0.10016436129808426, 0.7113005518913269, -0.30039143562316895, -0.11008120328187943, 0.0696013942360878, -0.9152541756629944, -0.45997437834739685, -0.4975587725639343, 0.2674306333065033, 0.5988499522209167, 0.4454064965248108, 0.17786747217178345, 0.052317116409540176, 0.19335044920444489, 0.7891645431518555, 0.10291045904159546, 0.10912211239337921, 0.316175639629364, -0.09329316020011902, -0.4869801700115204, 0.5112739205360413, 0.683734655380249, 0.23574373126029968, 0.5431268811225891, -0.08599178493022919, -0.332967072725296, -0.4920133948326111, 0.4717707335948944, -0.595874547958374, -0.5602768659591675, 0.3725854456424713, -0.5701419711112976, -0.35297781229019165, 0.3214194178581238, -0.4372681975364685, 0.18674148619174957, -0.32247796654701233, 0.3300095200538635, -0.6319144368171692, -0.1437203586101532, 0.25533702969551086, -0.3556983172893524, 0.24577870965003967, 0.12649975717067719, -1.242928385734558, 0.4501758813858032, 0.91524738073349, 0.6344262957572937, 0.06255453079938889, -0.26057013869285583, -0.8095661997795105, -0.08561873435974121, -0.4607904851436615, 0.8358158469200134, -0.17260795831680298, -0.1338513344526291, 0.04175427928566933, -0.10330928862094879, -0.12816984951496124, -0.1483059972524643, 0.48775526881217957, -0.6780166625976562, 0.14368581771850586, -0.22724491357803345, -0.6917598247528076, -0.5574625134468079, -0.2699367105960846, -0.7193890810012817, 0.6023668646812439, 0.2815939784049988, -0.8887810111045837, 0.4972361624240875, -0.9832093715667725, -0.2539163827896118, 0.264691561460495, 0.04472283273935318, -0.23392340540885925, -0.19886867702007294, -0.10443361103534698, 0.5631595849990845, -0.264424204826355, 0.4900799095630646, -0.20208176970481873, -0.5318630933761597, 0.41882383823394775, -0.13132156431674957, 0.7437589764595032, 0.3931184411048889, -0.21842168271541595, 0.3494584262371063, -0.6236770153045654, -0.10324279963970184, -0.2759568691253662, -0.00790232140570879, -0.5823925733566284, -0.051633674651384354, 0.5575580596923828, -0.16152484714984894, 0.6447353959083557, -0.6648772954940796, -0.15329566597938538, -0.750637948513031, 0.5787882208824158, 0.8913463354110718, -0.3347020447254181, 0.40630286931991577, -0.4901544451713562, 0.23435091972351074, -0.4202723205089569, 0.2472981959581375, -0.012635200284421444, -0.18725597858428955, -0.684853732585907, -0.662746787071228, 0.7380775809288025, 0.6170405149459839, -0.10725395381450653, 0.4802529811859131, -0.09288382530212402, -0.703123927116394, -0.49994444847106934, 0.1364486813545227, 0.11067406833171844, 0.3950629234313965, 0.2094305008649826, -0.11807557940483093, -0.5206851959228516, -1.3483498096466064, 0.07293857634067535, -0.32795020937919617, -0.1237492486834526, -0.1025344505906105, 0.47564220428466797, -0.04711102694272995, 0.9606075286865234, -0.5690819621086121, -0.2393541783094406, -0.37790778279304504, 0.5436351895332336, 0.5028682947158813, 0.4043146073818207, 0.959172785282135, -1.0590999126434326, -0.18699148297309875, -0.1363109052181244, -0.3159017860889435, 0.08514082431793213, -0.4436662495136261, -0.4090873599052429, 0.12977172434329987, 0.5617653131484985, -0.18329371511936188, 0.1660470962524414, 0.5420630574226379, -0.5237163305282593, 0.5460078120231628, -0.2628960907459259, -0.2228805124759674, -0.8588234782218933, 0.3980926275253296, 0.1657569259405136, -0.2065819501876831, -0.6336841583251953, -0.11565741151571274, 0.009240949526429176, 0.1019602119922638, -0.20087693631649017, 0.43350961804389954, 0.02475469931960106, -0.11414975672960281, -0.3227764666080475, 0.40710771083831787, -0.03952519968152046, 0.6584407687187195, 0.03214489296078682, 0.802168607711792, 0.248614102602005, -0.6387893557548523, 0.47821807861328125, 0.4143272340297699, -0.2628529965877533, 0.28820744156837463, -0.7713325619697571, -0.24561774730682373, 0.08785910904407501, 0.12585099041461945, -1.2504862546920776, 0.12325568497180939, 0.11830620467662811, -0.5285853147506714, 0.22690770030021667, 0.39668750762939453, -0.5084803104400635, -0.20194296538829803, -0.5742669701576233, 0.09434565901756287, 0.21207956969738007, -0.5835475921630859, 0.5548295974731445, 0.240277498960495, -0.7393152117729187, -0.8649263381958008, -0.6717121005058289, -0.098408542573452, -0.1355905383825302, -0.8404214978218079, 0.36805304884910583, -0.2152765989303589, -0.41931644082069397, -0.021418413147330284, -0.07928194850683212, -0.055174123495817184, 0.16821928322315216, 0.10422034561634064, 0.95523601770401, -0.32267242670059204, 0.5492603182792664, -0.06700573116540909, -0.14910855889320374, 0.16090518236160278, -0.3752647638320923, 0.5340777039527893, -0.7535113096237183, 0.1306142657995224, -0.29095008969306946, 0.26370781660079956, 0.42782583832740784, -0.2671257257461548, 0.8179821968078613, 0.8172297477722168, -0.12200963497161865, 0.04314025491476059, -0.532275378704071, -0.14533591270446777, -0.5376046299934387, 0.16541463136672974, 0.11269737035036087, -1.1694059371948242, 0.5439972281455994, -0.048662345856428146, 0.5584133863449097, 0.8893243074417114, 0.30865737795829773, -0.08219316601753235, 0.37618157267570496, 0.9858513474464417, -0.32061922550201416, 0.5751485228538513, -0.34511321783065796, 0.44508814811706543, -0.4885774552822113, -0.16271676123142242, -0.4905356764793396, -0.3500812351703644, -0.45796123147010803, 0.2316240519285202, -0.009073026478290558, 0.1591484099626541, -0.603928804397583, 0.6271811127662659, -0.5131468772888184, 0.0807047188282013, 0.7818248271942139, -0.3131210505962372, 0.008394857868552208, -0.009524514898657799, -0.1878834068775177, 0.05757230520248413, -0.5677903294563293, -0.6692271828651428, 1.0658241510391235, 0.6182195544242859, 0.6684167385101318, 0.0532049834728241, 0.6579413414001465, 0.588703453540802, 0.5759682059288025, -0.6728537082672119, 0.3070022761821747, -0.42063677310943604, -0.7311795353889465, -0.43986618518829346, -0.46385204792022705, -0.7509005069732666, -0.12602663040161133, -0.31260162591934204, -1.024812936782837, 0.15514545142650604, -0.03549615293741226, -0.810704231262207, 0.17616577446460724, -0.7284111380577087, 0.8910091519355774, -0.4543469250202179, -0.14320315420627594, -0.064048171043396, -0.7208297848701477, 0.33416563272476196, -0.5451810359954834, 0.3779146075248718, -0.025389602407813072, 0.12489131093025208, 1.1167465448379517, -0.40554821491241455, 0.9934436082839966, 0.097562275826931, -0.33611977100372314, 0.2642526626586914, -0.34797757863998413, 0.3823465406894684, 0.13054122030735016, 0.06456861644983292, 0.1702377200126648, 0.4375508427619934, -0.3039630949497223, -0.3598291575908661, 0.4649657607078552, -0.8090580701828003, -0.2899691164493561, -0.5703786015510559, -0.5287025570869446, 0.04428887739777565, 0.07091958075761795, 0.17931175231933594, 0.1846906691789627, -0.3021199405193329, 0.39630261063575745, 0.339114248752594, -0.3738456964492798, 0.4833187162876129, 0.46508169174194336, -0.46949252486228943, -0.5126861333847046, 0.861291229724884, -0.07897435873746872, 0.13005682826042175, 0.4651242792606354, -0.010355108417570591, -0.2927040755748749, -0.09528596699237823, -0.07352625578641891, 0.3018057942390442, -0.6274577975273132, -0.1926364302635193, -0.5786494612693787, -0.5870141386985779, -0.5137836933135986, -0.5786620378494263, -0.5113206505775452, -0.5131740570068359, -0.2932531237602234, -0.3396226763725281, 0.7374545335769653, 0.6195752620697021, -0.3994724452495575, 0.5406215786933899, -0.9493520855903625, -0.07348950207233429, 0.27903565764427185, 0.3778473138809204, 0.09250015765428543, -0.27144667506217957, -0.4354661703109741, -0.09105686843395233, 0.06983096152544022, -0.4057381749153137, 0.5668097734451294, 0.06708399206399918, 0.44475096464157104, 0.868116557598114, 0.25317007303237915, 0.31481441855430603, -0.08895392715930939, 0.5982571840286255, 0.3702333867549896, -1.0668715238571167, 0.26476389169692993, -0.23835980892181396, -0.018062597140669823, 0.6516693234443665, 0.48290959000587463, -0.5958244204521179, -0.523720920085907, -0.8648050427436829, -1.2291078567504883, 0.6935939788818359, 0.25968894362449646, 0.1199362650513649, -0.04284966364502907, 0.3987029194831848, 0.35120341181755066, 0.518554151058197, -0.6125292778015137, -0.28581690788269043, -0.0656009167432785, -0.21691106259822845, -0.16770967841148376, -0.41062378883361816, -0.1371956467628479, -0.33150383830070496, 0.7044848799705505, 0.08929027616977692, 0.535260796546936, 0.20735393464565277, 0.24491307139396667, 0.06869541108608246, 0.022892821580171585, 0.816585123538971, 0.8227939605712891, -0.7587231397628784, -0.09684871137142181, 0.13453492522239685, -0.600763738155365, -0.371500700712204, 0.5453671216964722, 0.20060069859027863, 0.24778184294700623, 0.5534959435462952, 0.7149081826210022, 0.5837767124176025, -1.0150805711746216, 0.5202427506446838, -0.09359417855739594, -0.6182852387428284, -1.0518590211868286, 0.08263394236564636, 0.0011099360417574644, 0.700794517993927, 0.8641636967658997, 0.19730593264102936, 0.1653684377670288, -0.4722350239753723, 0.5829724073410034, 0.09341767430305481, -0.5555976033210754, 0.02565893344581127, 0.8793980479240417, 0.17736577987670898, 0.012084347195923328, 0.784992516040802, 0.016752168536186218, -0.5353835821151733, 0.4977671205997467, 0.3553968369960785, 0.7819539904594421, 0.17316566407680511, 0.4159795939922333, 0.2769547700881958, 0.2692926824092865, -0.27962031960487366, 0.28043556213378906, -0.0037545657251030207, -0.6752927303314209, -0.5402449369430542, -0.8437058925628662, -0.4320240914821625, 0.144324392080307, -0.7764120697975159, 0.2369295209646225, -0.7790629267692566, -0.4911145269870758, 0.4983960688114166, 0.07822167873382568, -0.447661429643631, 0.043046172708272934, 0.12472351640462875, 1.2222541570663452, -0.44091692566871643, 0.637028694152832, 0.38749027252197266, -0.5329796075820923, -0.7831678986549377, -0.31295785307884216, -0.24666263163089752, -0.651272177696228, 1.3085302114486694, 0.07344678789377213, -0.3825170397758484, -0.014763208106160164, -0.8914206624031067, -0.7145793437957764, 0.9442261457443237, 0.25921130180358887, -0.6652362942695618, -0.1379561424255371, -0.26497510075569153, 0.5148910284042358, -0.7541621923446655, -0.23156331479549408, 0.3892570436000824, 0.5215536952018738, 0.18070557713508606, -0.7738810181617737, -0.3416391909122467, -0.43745318055152893, -0.33977487683296204, 0.3297722339630127, -0.7563602328300476, 1.2253843545913696, -0.20062710344791412, 0.09267013520002365, -0.0016346980119124055, 0.7992337942123413, 0.17714981734752655, 0.3131380081176758, 0.49161702394485474, -0.009818893857300282, 0.9145476818084717, -0.07776088267564774, 0.8982710242271423, -0.7825181484222412, 0.4606233239173889, 1.013843297958374, -0.07483500242233276, 1.1094735860824585, 0.3550490140914917, 0.04975219815969467, 0.6343404650688171, 0.8249425292015076, -0.5972481369972229, 0.43337497115135193, 0.4033064842224121, -0.3054088056087494, -0.23671557009220123, 0.16618023812770844, -0.1937878578901291, 0.5941686034202576, 0.367572158575058, -0.7993565201759338, 0.14192132651805878, -0.016878152266144753, 0.16188043355941772, -0.18020887672901154, -0.26559457182884216, 0.3290580213069916, 0.23767057061195374, -0.3265564739704132, 0.27911797165870667, 0.2438921183347702, 0.6358867883682251, -0.9096492528915405, 0.0907660499215126, 0.10521191358566284, 0.23108413815498352, 0.12011118978261948, -0.47946566343307495, 0.2669707238674164, 0.11636053770780563, 0.10131637006998062, -0.2978719174861908, 0.6997699737548828, -0.299193799495697, -0.6067657470703125, 0.45149341225624084, 0.2870522141456604, 0.20967619121074677, 0.031584981828927994, -0.49659064412117004, -0.3826104402542114, 0.00008595378312747926, -0.2547188401222229, 0.07105281203985214, 0.39198094606399536, 0.35453441739082336, 0.6996219754219055, 0.8012374639511108, -0.023751188069581985, -0.5679993629455566, -0.03165885806083679, 0.7851846814155579, -0.8428707122802734, -0.58283531665802, -0.7906261682510376, 0.06775157153606415, -0.2432022988796234, -0.45188549160957336, 0.537266731262207, 0.7549819350242615, 0.9234055280685425, -0.22277282178401947, 0.7328053116798401, 0.24976520240306854, 0.28604239225387573, -0.5222532749176025, 0.9965493083000183, -0.4057791233062744, 0.20091789960861206, -0.5567101836204529, -0.6888970732688904, -0.30789095163345337, 1.0205953121185303, -0.4541982114315033, -0.13675947487354279, 0.6091747879981995, 0.07852000743150711, 0.25516700744628906, 0.5581706762313843, 0.27529090642929077, -0.02141251415014267, -0.08490388840436935, 0.2942579388618469, 0.25848206877708435, -0.24895820021629333, 0.7135167121887207, 0.009041903540492058, -0.07220368087291718, -0.5069705843925476, -0.610641598701477, -1.061096429824829, -0.7995417714118958, -0.1967155933380127, -0.18947744369506836, -0.011465517804026604, 1.2496461868286133, 0.455424427986145, -0.6136646270751953, -0.5255041122436523, 0.23000241816043854, -0.23844638466835022, -0.2673943042755127, -0.18871110677719116, 0.6392326951026917, -0.5238111615180969, -0.5303378701210022, -0.048764657229185104, 0.5142756104469299, 0.1421559453010559, -0.3630548119544983, 0.15531323850154877, -0.34221434593200684, 0.20197705924510956, 0.6986613869667053, 0.1468898057937622, -0.22378432750701904, -0.48915883898735046, 0.18700021505355835, -0.13941854238510132, -0.13143892586231232, 0.6706050634384155, -0.2972368001937866, 0.15160802006721497, 0.20538772642612457, 0.5477613210678101, 0.5604103207588196, -0.04595930501818657, 1.0403265953063965, -0.6046649813652039, 0.1810016632080078, 0.051863960921764374, 0.32294780015945435, 0.058423589915037155, -0.39136257767677307, 0.6623106598854065, -0.07261128723621368, -0.47291356325149536, -0.34772852063179016, -0.21293678879737854, -1.097723364830017, -0.5776104927062988, 0.7560367584228516, -0.13240545988082886, -0.4455174505710602, 0.025657907128334045, -0.3355782628059387, 0.2247420698404312, -0.8305980563163757, 0.6689148545265198, 1.0281579494476318, -0.009521009400486946, -0.0666937381029129, -1.0489546060562134, 0.561692476272583, 0.07663627713918686, -0.2929590344429016, 0.09700898826122284, 0.14438755810260773, 0.08861543238162994, 0.568694531917572, 0.7255141139030457, 0.1830577850341797, 0.35400766134262085, 0.0824698656797409, 0.271698921918869, -0.005425950977951288, -0.24631300568580627, 0.33005544543266296, 0.13668319582939148, -0.0305088572204113, -0.1546964943408966 ]
digiplay/perfectlevel10
digiplay
"2023-08-01T18:49:48Z"
12,551
4
diffusers
[ "diffusers", "stable-diffusion", "stable-diffusion-diffusers", "text-to-image", "license:other", "endpoints_compatible", "has_space", "diffusers:StableDiffusionPipeline", "region:us" ]
text-to-image
"2023-08-01T18:10:46Z"
--- license: other tags: - stable-diffusion - stable-diffusion-diffusers - text-to-image - diffusers inference: true --- https://civitai.com/models/117591/perfectlevel10 Sample image : ![tmp3nsyt_7b.png](https://cdn-uploads.huggingface.co/production/uploads/646c83c871d0c8a6e4455854/RNZZocA65KkXhGUGsLxmh.png)
[ -0.5336788296699524, -0.3099001348018646, 0.32517534494400024, 0.7559747695922852, -0.2512839436531067, 0.11259204149246216, 0.39083030819892883, -0.3865595757961273, 0.6393528580665588, 0.47330382466316223, -0.7450177669525146, -0.9917137622833252, -0.27884966135025024, -0.023914311081171036, -0.5734519362449646, 0.8257560133934021, 0.40783029794692993, 0.32998546957969666, -0.013625268824398518, 0.1810215711593628, -0.5040959119796753, 0.13475392758846283, -0.9953739643096924, -0.3062032163143158, 0.3917926549911499, 0.7550511956214905, 0.4562075734138489, 0.38077312707901, 0.27126240730285645, 0.21634463965892792, -0.2302333414554596, -0.2736589014530182, -0.5509557723999023, 0.0072499788366258144, 0.02947707287967205, -0.7116782665252686, -1.0641961097717285, 0.2499377280473709, 0.9960794448852539, 0.4519444406032562, -0.22282008826732635, 0.4396495223045349, 0.1166621595621109, 0.6201775074005127, -0.44606345891952515, -0.05547482892870903, -0.14145974814891815, 0.14008283615112305, -0.3454141318798065, -0.16370002925395966, -0.06190226599574089, -0.7542263269424438, -0.2794772982597351, -1.2217086553573608, 0.5606262683868408, 0.26316505670547485, 1.4190785884857178, -0.1340603083372116, -0.6169443130493164, -0.14975352585315704, -0.412570595741272, 0.3834231495857239, -0.5176541209220886, 0.09668467938899994, 0.3147236704826355, 0.5639682412147522, -0.35242924094200134, -0.6895416975021362, -0.5133812427520752, 0.16432487964630127, 0.3120245039463043, 0.18323108553886414, -0.44904303550720215, -0.1409096121788025, 0.6558765172958374, 1.0058574676513672, -0.6587024331092834, -0.011006378568708897, -0.6990559697151184, 0.1955142319202423, 0.49619293212890625, 0.06400489807128906, 0.988553524017334, 0.2616504430770874, -0.2021878957748413, -0.1804036647081375, -0.5905894041061401, 0.4581604301929474, 0.4186488389968872, -0.017618419602513313, -0.7761309742927551, 0.5894305109977722, -0.19455844163894653, 0.8363221883773804, 0.4178429841995239, 0.12032291293144226, 0.6678776741027832, -0.06675843894481659, -0.6473233699798584, -0.4378734230995178, 0.3460533916950226, 0.8710471391677856, 0.1922418624162674, 0.11946849524974823, -0.07702768594026566, -0.2449863851070404, 0.16929206252098083, -1.132288932800293, -0.2523457705974579, 0.37340930104255676, -0.3782760202884674, -0.6877636909484863, 0.3360663056373596, -1.254431128501892, -0.09851106256246567, 0.21845532953739166, 0.15718260407447815, -0.3481577932834625, -0.7132747769355774, 0.04359112307429314, -0.2826586961746216, 0.3652580976486206, 0.360324889421463, -0.4313472509384155, 0.22815842926502228, 0.0062945387326180935, 0.6063286662101746, 0.4545859098434448, 0.3183436393737793, -0.5963836908340454, 0.32966098189353943, -0.5860612988471985, 0.708064079284668, -0.2187069207429886, -0.488969624042511, 0.15025922656059265, 0.3806629478931427, 0.121460922062397, -0.7365620732307434, 1.2724215984344482, -0.29728004336357117, 0.2721458673477173, -0.42064470052719116, -0.3904934525489807, -0.39950060844421387, 0.17841997742652893, -0.7773553133010864, 0.8466057181358337, 0.5291517972946167, -0.7470492124557495, 0.672905683517456, -0.7435657382011414, 0.08711542934179306, 0.4533732235431671, 0.04837365448474884, -0.48265811800956726, 0.2812335789203644, 0.06611785292625427, 0.45066189765930176, -0.12033800035715103, -0.36788254976272583, -0.8488438129425049, -0.41404083371162415, 0.2611219584941864, 0.13050375878810883, 1.1586285829544067, 0.5619102716445923, -0.45161762833595276, 0.13000763952732086, -1.30899977684021, 0.3222975432872772, 0.5993558168411255, 0.24264197051525116, -0.38935908675193787, -0.7258116006851196, -0.01672852784395218, 0.7931594252586365, 0.5098544955253601, -0.7206578254699707, 0.4054834842681885, 0.01791456528007984, 0.12694908678531647, 0.49570703506469727, 0.3236616849899292, 0.22083047032356262, -0.23105397820472717, 1.0705337524414062, -0.12957888841629028, 0.5602718591690063, 0.22793711721897125, -0.1597977876663208, -0.8734568357467651, -0.5786492824554443, 0.4461601972579956, 0.3519386053085327, -0.612968385219574, 0.6722983121871948, 0.15831294655799866, -0.8545879125595093, -0.781041145324707, -0.17543648183345795, 0.3339857757091522, 0.4297058880329132, 0.06107332557439804, -0.48120957612991333, -0.17739997804164886, -1.2906211614608765, 0.16835454106330872, 0.099445641040802, -0.7233216166496277, 0.3428018093109131, 0.27658677101135254, 0.19568857550621033, 0.32349133491516113, -0.4964556396007538, -0.32011207938194275, -0.27112531661987305, -0.38149601221084595, 0.7168276906013489, 0.8502309918403625, 1.1078616380691528, -0.9809128046035767, -0.6504053473472595, -0.46239614486694336, -0.8865827322006226, -0.6217572093009949, -0.07949238270521164, -0.6254496574401855, -0.6149226427078247, 0.31477591395378113, -0.26556283235549927, 0.7229679226875305, 0.5320571064949036, -0.9044115543365479, 0.34676796197891235, -0.6417631506919861, 0.6501128077507019, -1.4294660091400146, 0.7592377066612244, 0.5754446387290955, -0.5639789700508118, -0.6136326193809509, 0.9247234463691711, 0.29733699560165405, -0.08627107739448547, -0.5466843247413635, 0.35923951864242554, -0.9026171565055847, -0.00863430742174387, -0.0020529802422970533, 0.04487890005111694, 0.2790951728820801, -0.022423038259148598, -0.4207026958465576, 0.5397174954414368, 1.0162419080734253, -0.52527916431427, 0.24985569715499878, 0.2747814357280731, -0.5685794949531555, 1.106486201286316, -1.362836480140686, -0.009172031655907631, 0.09361710399389267, 0.35191500186920166, -0.9618327617645264, -0.7080312371253967, 0.5680111050605774, -0.6493421792984009, 0.45590561628341675, -0.04133864492177963, -0.6614437103271484, -0.5472548007965088, -0.4176200032234192, 0.8156543970108032, 0.5765900611877441, -0.4879412353038788, -0.18185150623321533, 0.3294444978237152, 0.1662743240594864, -0.29197388887405396, -0.693145751953125, -0.23641476035118103, -0.1952885091304779, -0.47816964983940125, 0.6479707956314087, -0.007434519939124584, 0.03484438359737396, -0.30114755034446716, -0.06376669555902481, -0.44579529762268066, -0.23698276281356812, 0.9183617234230042, 0.6458393931388855, -0.18916702270507812, -0.45353782176971436, 0.020421933382749557, -0.04620854929089546, -0.04699719697237015, 0.07177137583494186, 0.7369455099105835, -0.3095629811286926, -0.3897007703781128, -1.4306702613830566, 0.24979828298091888, 0.8229974508285522, 0.022658174857497215, 0.6895862817764282, 0.5861173272132874, -0.6565780639648438, 0.09207604080438614, -0.719157338142395, 0.19753585755825043, -0.48879435658454895, -0.283230185508728, -0.6004155278205872, -0.5228068828582764, 0.7220872044563293, 0.3307320177555084, -0.3200514316558838, 0.9606626033782959, 0.23507972061634064, -0.16140450537204742, 1.3368157148361206, 0.5768037438392639, -0.009544606320559978, 0.3634284436702728, -0.9267415404319763, -0.08576881885528564, -0.7112582921981812, -0.7638081312179565, -0.5905706882476807, -0.6375112533569336, -0.704508900642395, -0.1055002436041832, 0.18776565790176392, 0.4665038287639618, -0.673858642578125, 0.6224712133407593, -0.5221747756004333, 0.6205938458442688, 0.6797909736633301, 0.52813321352005, 0.19710052013397217, -0.10962102562189102, -0.1892217993736267, -0.16280290484428406, -0.3532370328903198, -0.09190801531076431, 0.37343528866767883, 0.3648485839366913, 0.2775479257106781, 0.06502670794725418, 0.7991209030151367, -0.061129409819841385, 0.01545656193047762, -0.24553672969341278, 0.5449942946434021, 0.16879168152809143, -1.095441460609436, 0.07897919416427612, -0.17639271914958954, -0.7739055752754211, -0.0810214951634407, -0.5202996134757996, -0.2781691551208496, 0.4758913516998291, 0.23180146515369415, -0.5955370664596558, 0.5223507285118103, -0.42118266224861145, 0.8349059224128723, 0.07521538436412811, -0.37822890281677246, -0.10711854696273804, -0.4307413697242737, 0.23282529413700104, 0.43486085534095764, 0.2207828313112259, -0.11959697306156158, -0.027389753609895706, 0.3395194709300995, -0.5962835550308228, 0.5630101561546326, -0.5417625904083252, -0.039977725595235825, 0.15793967247009277, 0.13515326380729675, -0.02623213641345501, 0.28708723187446594, -0.0539119690656662, -0.23152750730514526, -0.04034170135855675, -1.1951874494552612, -0.3428856134414673, 0.7671296000480652, -0.7787389755249023, -0.13267818093299866, -0.7785838842391968, -0.1417238712310791, 0.13109104335308075, 0.17514443397521973, 1.0300514698028564, 0.4397418200969696, -0.35216808319091797, 0.4910820722579956, 0.6455487012863159, -0.23528169095516205, 0.10088490694761276, 0.27522316575050354, -0.3939379155635834, -0.32351523637771606, 1.0596803426742554, -0.18895502388477325, 0.2968827188014984, 0.22504885494709015, -0.049564097076654434, -0.10256757587194443, -0.547355055809021, -0.2028520405292511, 0.4288143217563629, -0.12652446329593658, -0.20317000150680542, -0.18531028926372528, -0.40975674986839294, -0.6340715289115906, -0.5490951538085938, -0.27723097801208496, -0.30052798986434937, -0.6926806569099426, -0.23764115571975708, 0.016098860651254654, 0.8461518883705139, -0.27924782037734985, 0.4209443926811218, -0.2453138381242752, 0.3443036377429962, 0.5548985600471497, 0.39824429154396057, -0.04642277583479881, -0.8833426833152771, 0.4578711688518524, 0.11307825893163681, -0.507202684879303, -0.6353362798690796, 0.8127626180648804, 0.26848211884498596, 0.7105024456977844, 0.6819580793380737, -0.16478347778320312, 0.765770673751831, -0.11477521806955338, 0.8609111905097961, 0.6433780789375305, -0.9013687372207642, 0.9632432460784912, -0.6296873092651367, 0.4501846134662628, 0.9543173313140869, 0.464511513710022, -0.5891878008842468, -0.6449301838874817, -1.028861403465271, -0.8360934853553772, 0.1580202281475067, 0.41356855630874634, -0.0920354574918747, 0.5287941098213196, 0.6101238131523132, -0.17024186253547668, 0.12662507593631744, -0.7769822478294373, -0.3731018900871277, -0.3553069531917572, -0.2303195595741272, 0.08005985617637634, -0.3731028735637665, -0.143492192029953, -0.7734464406967163, 0.7285609245300293, 0.12233997136354446, 0.2508368492126465, 0.08181474357843399, -0.058644987642765045, -0.0041145882569253445, -0.016415925696492195, 0.9642209410667419, 0.9266211986541748, -0.5946900844573975, -0.2969109117984772, -0.08727807551622391, -0.30328211188316345, 0.2239246517419815, -0.3560183048248291, -0.23716092109680176, 0.08936192095279694, 0.3109934329986572, 0.8036211729049683, 0.4213317334651947, -0.12169526517391205, 1.0064630508422852, -0.3688681125640869, -0.15297992527484894, -0.4207589030265808, 0.273122638463974, 0.14341582357883453, 0.3268870413303375, 0.5476973652839661, 0.09597047418355942, 0.35931095480918884, -0.2985704839229584, 0.3144267797470093, 0.2342386394739151, -0.7147476673126221, -0.5905750393867493, 0.9438141584396362, 0.14069679379463196, -0.3848884701728821, 0.7842678427696228, -0.3050267696380615, -0.24473965167999268, 1.0677437782287598, 0.7387567162513733, 0.8269707560539246, -0.6256561279296875, 0.7496218681335449, 0.799828827381134, 0.042297475039958954, 0.22689510881900787, 0.8023882508277893, 0.4194509983062744, -0.26665931940078735, 0.1433214694261551, -0.6876797080039978, -0.3735266327857971, 0.4564429521560669, -1.1577080488204956, 0.48474475741386414, -1.0113798379898071, 0.3199414312839508, 0.016775697469711304, 0.04930528998374939, -0.8486126065254211, 0.8153871297836304, 0.039908286184072495, 1.6729241609573364, -1.0101311206817627, 1.0066213607788086, 0.4557665288448334, -0.6791911125183105, -0.949529230594635, -0.09256665408611298, 0.052587322890758514, -1.2884083986282349, 0.4701915681362152, 0.4594273567199707, 0.2449006736278534, -0.0822671428322792, -1.1196355819702148, -0.33959734439849854, 1.2589552402496338, 0.35736677050590515, -0.7868225574493408, -0.2288973331451416, -0.46132269501686096, 0.6528422236442566, -0.8587486147880554, 0.40025588870048523, 0.12170197069644928, 0.37375563383102417, 0.5682309865951538, -0.6552069187164307, -0.12922324240207672, -0.8722315430641174, 0.3025401830673218, -0.15690627694129944, -0.6294481754302979, 0.884583055973053, -0.11504585295915604, -0.09370418637990952, 0.2877908945083618, 0.9500945210456848, 0.34526023268699646, 0.23214398324489594, 1.1702313423156738, 0.7077516317367554, 0.32304081320762634, -0.12269985675811768, 1.3448853492736816, -0.48699989914894104, 0.22510674595832825, 0.7169975638389587, -0.04759694263339043, 0.41624829173088074, -0.06801538914442062, 0.06594788283109665, 0.46470335125923157, 1.3294893503189087, -0.33138221502304077, 0.44095611572265625, 0.3462628126144409, -0.5064935684204102, -0.18317747116088867, -0.28054845333099365, -0.8750791549682617, 0.287869393825531, 0.21578526496887207, -0.19750209152698517, -0.1793092042207718, -0.13325251638889313, -0.21589626371860504, 0.20005613565444946, -0.6955779790878296, 0.43451234698295593, -0.056114841252565384, -0.11496996879577637, 0.6545243859291077, -0.4093085825443268, 0.6973634362220764, -0.2870251536369324, 0.02768487110733986, -0.34469273686408997, -0.002849383745342493, -0.6154178380966187, -0.8557454347610474, 0.0898338109254837, 0.08188217133283615, 0.031192634254693985, -0.29131531715393066, 0.8108430504798889, -0.5201059579849243, -1.093339204788208, 0.3304692208766937, 0.15747232735157013, 0.24625247716903687, -0.038082025945186615, -1.0410141944885254, -0.042216453701257706, 0.09781353175640106, 0.15480226278305054, 0.0006784974248148501, 0.4078160226345062, 0.25609055161476135, 0.5813465118408203, 0.35301247239112854, 0.5971909761428833, 0.12730199098587036, 0.14809663593769073, 0.7331470251083374, -0.5570148229598999, -0.5004104375839233, -0.5987949371337891, 0.6009232401847839, -0.8802288174629211, -0.8703648447990417, 0.6508309841156006, 0.7521596550941467, 0.8473844528198242, -0.48350298404693604, 0.31326305866241455, -0.23447871208190918, 0.7141207456588745, -0.3567107319831848, 1.227155089378357, -1.0093326568603516, -0.5742766857147217, -0.4319475293159485, -1.0019726753234863, -0.3748372495174408, 0.6832528114318848, 0.2534371316432953, 0.000998068368062377, 0.19722996652126312, 0.695110023021698, -0.17023718357086182, -0.22812782227993011, 0.42709973454475403, 0.2307196408510208, 0.36285415291786194, 0.6050177812576294, 0.5054574012756348, -0.5236291885375977, -0.04225321486592293, -0.5459297299385071, -0.8934034705162048, -0.39001473784446716, -0.6949907541275024, -0.7676052451133728, -0.8683521151542664, -0.3007913827896118, -0.6342939138412476, -0.12121500819921494, 1.0267667770385742, 0.7463039755821228, -1.1298376321792603, -0.4294206202030182, -0.009443249553442001, 0.07211507111787796, 0.14215543866157532, -0.3465038239955902, -0.10688937455415726, 0.4038069248199463, -1.124951958656311, -0.16029615700244904, 0.11218670010566711, 0.6211032271385193, -0.021837059408426285, 0.3388406038284302, -0.3736586272716522, -0.27748486399650574, 0.01889670267701149, 0.6631583571434021, -0.30790314078330994, -0.36434975266456604, -0.06638889014720917, -0.44776955246925354, 0.1658424288034439, 0.576743483543396, -0.034151870757341385, -0.07883184403181076, 0.804623007774353, 0.22403307259082794, 0.3875769376754761, -0.20188845694065094, 0.7304113507270813, -0.5232895612716675, 0.4920361340045929, 0.2635987102985382, 0.3975972533226013, 0.32422351837158203, -0.12780161201953888, 0.6461085677146912, 0.37723690271377563, -0.6237869262695312, -1.2190539836883545, -0.2459026277065277, -1.4044861793518066, 0.16134682297706604, 0.5020917057991028, 0.018062371760606766, -0.44702401757240295, 0.6217378377914429, -0.2956507205963135, 0.41222047805786133, -0.358902245759964, 0.6457020044326782, 0.8074269890785217, 0.2958375811576843, -0.13221287727355957, -0.6639406681060791, 0.35491040349006653, 0.3281210660934448, -0.8716462850570679, -0.8737130761146545, 0.3194870948791504, 0.43290627002716064, 0.46336090564727783, 0.4188981354236603, -0.35673439502716064, 0.3671756982803345, -0.02774120308458805, 0.561913251876831, 0.06960106641054153, -0.2834745943546295, -0.45013752579689026, 0.40837544202804565, -0.14749446511268616, -0.750908613204956 ]
CompVis/stable-diffusion-v1-2
CompVis
"2023-07-05T16:18:11Z"
12,542
34
diffusers
[ "diffusers", "stable-diffusion", "stable-diffusion-diffusers", "text-to-image", "arxiv:2112.10752", "arxiv:2103.00020", "arxiv:2205.11487", "arxiv:2207.12598", "arxiv:1910.09700", "license:creativeml-openrail-m", "has_space", "diffusers:StableDiffusionPipeline", "region:us" ]
text-to-image
"2022-08-19T10:24:37Z"
--- license: creativeml-openrail-m tags: - stable-diffusion - stable-diffusion-diffusers - text-to-image inference: false extra_gated_prompt: |- 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 claim 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 carefully here: https://huggingface.co/spaces/CompVis/stable-diffusion-license extra_gated_heading: Please read the LICENSE to access this model --- # Stable Diffusion v1-2 Model Card Stable Diffusion is a latent text-to-image diffusion model capable of generating photo-realistic images given any text input. For more information about how Stable Diffusion functions, please have a look at [🤗's Stable Diffusion with D🧨iffusers blog](https://huggingface.co/blog/stable_diffusion). The **Stable-Diffusion-v1-2** checkpoint was initialized with the weights of the [Stable-Diffusion-v1-1](https:/steps/huggingface.co/CompVis/stable-diffusion-v1-1) checkpoint and subsequently fine-tuned on 515,000 steps at resolution `512x512` on "laion-improved-aesthetics" (a subset of laion2B-en, filtered to images with an original size `>= 512x512`, estimated aesthetics score `> 5.0`, and an estimated watermark probability `< 0.5`. For more information, please refer to [Training](#training). This weights here are intended to be used with the D🧨iffusers library. If you are looking for the weights to be loaded into the CompVis Stable Diffusion codebase, [come here](https://huggingface.co/CompVis/stable-diffusion-v-1-2-original) ## Model Details - **Developed by:** Robin Rombach, Patrick Esser - **Model type:** Diffusion-based text-to-image generation model - **Language(s):** English - **License:** [The CreativeML OpenRAIL M license](https://huggingface.co/spaces/CompVis/stable-diffusion-license) is an [Open RAIL M license](https://www.licenses.ai/blog/2022/8/18/naming-convention-of-responsible-ai-licenses), adapted from the work that [BigScience](https://bigscience.huggingface.co/) and [the RAIL Initiative](https://www.licenses.ai/) are jointly carrying in the area of responsible AI licensing. See also [the article about the BLOOM Open RAIL license](https://bigscience.huggingface.co/blog/the-bigscience-rail-license) on which our license is based. - **Model Description:** This is a model that can be used to generate and modify images based on text prompts. It is a [Latent Diffusion Model](https://arxiv.org/abs/2112.10752) that uses a fixed, pretrained text encoder ([CLIP ViT-L/14](https://arxiv.org/abs/2103.00020)) as suggested in the [Imagen paper](https://arxiv.org/abs/2205.11487). - **Resources for more information:** [GitHub Repository](https://github.com/CompVis/stable-diffusion), [Paper](https://arxiv.org/abs/2112.10752). - **Cite as:** @InProceedings{Rombach_2022_CVPR, author = {Rombach, Robin and Blattmann, Andreas and Lorenz, Dominik and Esser, Patrick and Ommer, Bj\"orn}, title = {High-Resolution Image Synthesis With Latent Diffusion Models}, booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)}, month = {June}, year = {2022}, pages = {10684-10695} } ## Examples We recommend using [🤗's Diffusers library](https://github.com/huggingface/diffusers) to run Stable Diffusion. ```bash pip install --upgrade diffusers transformers scipy ``` Running the pipeline with the default PNDM scheduler: ```python import torch from torch import autocast from diffusers import StableDiffusionPipeline model_id = "CompVis/stable-diffusion-v1-2" device = "cuda" pipe = StableDiffusionPipeline.from_pretrained(model_id) pipe = pipe.to(device) prompt = "a photo of an astronaut riding a horse on mars" with autocast("cuda"): image = pipe(prompt)["sample"][0] image.save("astronaut_rides_horse.png") ``` **Note**: If you are limited by GPU memory and have less than 10GB of GPU RAM available, please make sure to load the StableDiffusionPipeline in float16 precision instead of the default float32 precision as done above. You can do so by telling diffusers to expect the weights to be in float16 precision: ```py import torch pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16) pipe = pipe.to(device) prompt = "a photo of an astronaut riding a horse on mars" with autocast("cuda"): image = pipe(prompt, guidance_scale=7.5)["sample"][0] image.save("astronaut_rides_horse.png") ``` To swap out the noise scheduler, pass it to `from_pretrained`: ```python from diffusers import StableDiffusionPipeline, LMSDiscreteScheduler model_id = "CompVis/stable-diffusion-v1-2" # Use the K-LMS scheduler here instead scheduler = LMSDiscreteScheduler(beta_start=0.00085, beta_end=0.012, beta_schedule="scaled_linear", num_train_timesteps=1000) pipe = StableDiffusionPipeline.from_pretrained(model_id, scheduler=scheduler, use_auth_token=True) pipe = pipe.to("cuda") prompt = "a photo of an astronaut riding a horse on mars" with autocast("cuda"): image = pipe(prompt, guidance_scale=7.5)["sample"][0] image.save("astronaut_rides_horse.png") ``` # Uses ## Direct Use The model is intended for research purposes only. Possible research areas and tasks include - Safe deployment of models which have the potential to generate harmful content. - Probing and understanding the limitations and biases of generative models. - Generation of artworks and use in design and other artistic processes. - Applications in educational or creative tools. - Research on generative models. Excluded uses are described below. ### Misuse, Malicious Use, and Out-of-Scope Use _Note: This section is taken from the [DALLE-MINI model card](https://huggingface.co/dalle-mini/dalle-mini), but applies in the same way to Stable Diffusion v1_. The model should not be used to intentionally create or disseminate images that create hostile or alienating environments for people. This includes generating images that people would foreseeably find disturbing, distressing, or offensive; or content that propagates historical or current stereotypes. #### Out-of-Scope Use The model was not trained to be factual or true representations of people or events, and therefore using the model to generate such content is out-of-scope for the abilities of this model. #### Misuse and Malicious Use Using the model to generate content that is cruel to individuals is a misuse of this model. This includes, but is not limited to: - Generating demeaning, dehumanizing, or otherwise harmful representations of people or their environments, cultures, religions, etc. - Intentionally promoting or propagating discriminatory content or harmful stereotypes. - Impersonating individuals without their consent. - Sexual content without consent of the people who might see it. - Mis- and disinformation - Representations of egregious violence and gore - Sharing of copyrighted or licensed material in violation of its terms of use. - Sharing content that is an alteration of copyrighted or licensed material in violation of its terms of use. ## Limitations and Bias ### Limitations - The model does not achieve perfect photorealism - The model cannot render legible text - The model does not perform well on more difficult tasks which involve compositionality, such as rendering an image corresponding to “A red cube on top of a blue sphere” - Faces and people in general may not be generated properly. - The model was trained mainly with English captions and will not work as well in other languages. - The autoencoding part of the model is lossy - The model was trained on a large-scale dataset [LAION-5B](https://laion.ai/blog/laion-5b/) which contains adult material and is not fit for product use without additional safety mechanisms and considerations. - No additional measures were used to deduplicate the dataset. As a result, we observe some degree of memorization for images that are duplicated in the training data. The training data can be searched at [https://rom1504.github.io/clip-retrieval/](https://rom1504.github.io/clip-retrieval/) to possibly assist in the detection of memorized images. ### Bias While the capabilities of image generation models are impressive, they can also reinforce or exacerbate social biases. Stable Diffusion v1 was trained on subsets of [LAION-2B(en)](https://laion.ai/blog/laion-5b/), which consists of images that are primarily limited to English descriptions. Texts and images from communities and cultures that use other languages are likely to be insufficiently accounted for. This affects the overall output of the model, as white and western cultures are often set as the default. Further, the ability of the model to generate content with non-English prompts is significantly worse than with English-language prompts. ## Training ### Training Data The model developers used the following dataset for training the model: - LAION-2B (en) and subsets thereof (see next section) ### Training Procedure Stable Diffusion v1-4 is a latent diffusion model which combines an autoencoder with a diffusion model that is trained in the latent space of the autoencoder. During training, - Images are encoded through an encoder, which turns images into latent representations. The autoencoder uses a relative downsampling factor of 8 and maps images of shape H x W x 3 to latents of shape H/f x W/f x 4 - Text prompts are encoded through a ViT-L/14 text-encoder. - The non-pooled output of the text encoder is fed into the UNet backbone of the latent diffusion model via cross-attention. - The loss is a reconstruction objective between the noise that was added to the latent and the prediction made by the UNet. We currently provide four checkpoints, which were trained as follows. - [`stable-diffusion-v1-1`](https://huggingface.co/CompVis/stable-diffusion-v1-1): 237,000 steps at resolution `256x256` on [laion2B-en](https://huggingface.co/datasets/laion/laion2B-en). 194,000 steps at resolution `512x512` on [laion-high-resolution](https://huggingface.co/datasets/laion/laion-high-resolution) (170M examples from LAION-5B with resolution `>= 1024x1024`). - [`stable-diffusion-v1-2`](https://huggingface.co/CompVis/stable-diffusion-v1-2): Resumed from `stable-diffusion-v1-1`. 515,000 steps at resolution `512x512` on "laion-improved-aesthetics" (a subset of laion2B-en, filtered to images with an original size `>= 512x512`, estimated aesthetics score `> 5.0`, and an estimated watermark probability `< 0.5`. The watermark estimate is from the LAION-5B metadata, the aesthetics score is estimated using an [improved aesthetics estimator](https://github.com/christophschuhmann/improved-aesthetic-predictor)). - [`stable-diffusion-v1-3`](https://huggingface.co/CompVis/stable-diffusion-v1-3): Resumed from `stable-diffusion-v1-2`. 195,000 steps at resolution `512x512` on "laion-improved-aesthetics" and 10 % dropping of the text-conditioning to improve [classifier-free guidance sampling](https://arxiv.org/abs/2207.12598). - [**`stable-diffusion-v1-4`**](https://huggingface.co/CompVis/stable-diffusion-v1-4) Resumed from `stable-diffusion-v1-2`.225,000 steps at resolution `512x512` on "laion-aesthetics v2 5+" and 10 % dropping of the text-conditioning to improve [classifier-free guidance sampling](https://arxiv.org/abs/2207.12598). ### Training details - **Hardware:** 32 x 8 x A100 GPUs - **Optimizer:** AdamW - **Gradient Accumulations**: 2 - **Batch:** 32 x 8 x 2 x 4 = 2048 - **Learning rate:** warmup to 0.0001 for 10,000 steps and then kept constant ## Evaluation Results Evaluations with different classifier-free guidance scales (1.5, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0) and 50 PLMS sampling steps show the relative improvements of the checkpoints: ![pareto](https://huggingface.co/CompVis/stable-diffusion/resolve/main/v1-variants-scores.jpg) Evaluated using 50 PLMS steps and 10000 random prompts from the COCO2017 validation set, evaluated at 512x512 resolution. Not optimized for FID scores. ## Environmental Impact **Stable Diffusion v1** **Estimated Emissions** Based on that information, we estimate the following CO2 emissions using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700). The hardware, runtime, cloud provider, and compute region were utilized to estimate the carbon impact. - **Hardware Type:** A100 PCIe 40GB - **Hours used:** 150000 - **Cloud Provider:** AWS - **Compute Region:** US-east - **Carbon Emitted (Power consumption x Time x Carbon produced based on location of power grid):** 11250 kg CO2 eq. ## Citation ```bibtex @InProceedings{Rombach_2022_CVPR, author = {Rombach, Robin and Blattmann, Andreas and Lorenz, Dominik and Esser, Patrick and Ommer, Bj\"orn}, title = {High-Resolution Image Synthesis With Latent Diffusion Models}, booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)}, month = {June}, year = {2022}, pages = {10684-10695} } ``` *This model card was written by: Robin Rombach and Patrick Esser and is based on the [DALL-E Mini model card](https://huggingface.co/dalle-mini/dalle-mini).*
[ -0.3544841706752777, -0.7827984690666199, 0.3610433042049408, 0.23178009688854218, -0.2776823937892914, -0.35181084275245667, 0.023595919832587242, -0.32816535234451294, -0.04639548063278198, 0.41147691011428833, -0.3045061528682709, -0.48316025733947754, -0.706361711025238, -0.21111129224300385, -0.3798655569553375, 0.8359755277633667, -0.1735742837190628, -0.0020615875255316496, -0.12996096909046173, -0.08376529067754745, -0.2705324590206146, -0.2460375279188156, -0.8860294222831726, -0.24632708728313446, 0.5435503125190735, 0.07683025300502777, 0.6020758748054504, 0.6090447306632996, 0.4881627857685089, 0.2872142195701599, -0.2347503900527954, 0.03816289082169533, -0.5043216347694397, -0.06152091920375824, 0.012137260288000107, -0.2840385138988495, -0.4903058111667633, 0.16821375489234924, 0.6729245781898499, 0.2567981481552124, -0.13108250498771667, 0.02008628658950329, 0.007136083673685789, 0.5945083498954773, -0.5381268262863159, -0.008758620359003544, -0.321483850479126, 0.13584676384925842, -0.10364128649234772, 0.08251402527093887, -0.3569791316986084, -0.18461403250694275, 0.07110760360956192, -0.8327086567878723, 0.3417191207408905, -0.22414346039295197, 1.1357057094573975, 0.3480539917945862, -0.2554594874382019, -0.22373344004154205, -0.6837653517723083, 0.6398520469665527, -0.6209705471992493, 0.19456802308559418, 0.3142147958278656, 0.10926083475351334, 0.020456597208976746, -1.1094377040863037, -0.6297482252120972, -0.1521139293909073, -0.008347349241375923, 0.43644577264785767, -0.20448437333106995, -0.042135704308748245, 0.369276762008667, 0.22594551742076874, -0.5583578944206238, -0.05143439769744873, -0.5454058647155762, -0.06267353147268295, 0.6178144812583923, 0.10129407793283463, 0.31644901633262634, -0.13840709626674652, -0.43531978130340576, -0.18559898436069489, -0.4784175157546997, -0.03205272555351257, 0.3463810384273529, -0.2504071891307831, -0.3780374526977539, 0.4745032787322998, 0.21509885787963867, 0.4932281970977783, 0.2934498190879822, -0.11640655994415283, 0.3828069269657135, -0.23042312264442444, -0.2360716313123703, -0.36969810724258423, 0.9211656451225281, 0.5329577326774597, -0.018885064870119095, 0.11377042531967163, -0.14886337518692017, 0.07249778509140015, 0.04960956797003746, -1.1322121620178223, -0.5494167804718018, 0.13769710063934326, -0.6486231088638306, -0.48417845368385315, -0.20278997719287872, -0.8325058221817017, -0.24074411392211914, 0.06071540340781212, 0.6507278680801392, -0.4247286021709442, -0.43262726068496704, 0.08894195407629013, -0.3470056354999542, 0.09832490980625153, 0.4304772913455963, -0.625537633895874, 0.022109799087047577, -0.01967858523130417, 1.0722357034683228, -0.2572016417980194, -0.17081503570079803, -0.07337591797113419, 0.1594075709581375, -0.28207603096961975, 0.6518241763114929, -0.20731355249881744, -0.6137110590934753, -0.2948674261569977, 0.3628239929676056, 0.023500237613916397, -0.5798014402389526, 0.531686544418335, -0.5050355195999146, 0.2757711410522461, -0.06375470757484436, -0.5140218734741211, -0.19185392558574677, -0.013845485635101795, -0.6659455299377441, 0.9777176976203918, 0.2151993066072464, -0.8575624227523804, 0.23387382924556732, -0.7014287710189819, -0.19810554385185242, -0.04269997030496597, 0.0003851598303299397, -0.742680013179779, -0.27107328176498413, 0.014161990024149418, 0.36317184567451477, -0.04302974417805672, 0.1863093078136444, -0.24306100606918335, -0.18719367682933807, -0.03149673715233803, -0.47768592834472656, 1.029030203819275, 0.3892570436000824, -0.38046881556510925, 0.06111613288521767, -0.6328485012054443, -0.23097141087055206, 0.40834465622901917, -0.3076772093772888, -0.1790372133255005, -0.14733895659446716, 0.30055198073387146, 0.2822618782520294, 0.16532869637012482, -0.3913993239402771, 0.09277717024087906, -0.2598172724246979, 0.4872547388076782, 0.750918984413147, 0.26869460940361023, 0.6266860365867615, -0.45888635516166687, 0.49061161279678345, 0.3721877634525299, 0.21006837487220764, -0.23462428152561188, -0.7161003351211548, -0.7187134623527527, -0.4339240789413452, 0.15468521416187286, 0.5343654155731201, -0.709389865398407, 0.3577477037906647, -0.0015902374871075153, -0.7338961958885193, -0.2161826491355896, -0.011259680613875389, 0.2094781994819641, 0.7020601034164429, 0.3593202829360962, -0.4290849566459656, -0.3058417737483978, -0.7396581172943115, 0.2198963314294815, -0.07751072198152542, 0.10929122567176819, 0.33810144662857056, 0.6773557066917419, -0.2861473560333252, 0.5645025372505188, -0.5366276502609253, -0.3477320075035095, 0.16783854365348816, 0.2573075592517853, 0.10982076823711395, 0.7958669066429138, 0.7445043325424194, -0.8532835841178894, -0.6675021648406982, -0.22012189030647278, -0.8566255569458008, 0.02835712395608425, -0.1317368447780609, -0.30947500467300415, 0.28535160422325134, 0.5204553008079529, -0.8324626684188843, 0.5847442746162415, 0.4396219849586487, -0.33356449007987976, 0.5291134715080261, -0.4719020128250122, 0.1187920793890953, -0.9834229350090027, 0.23302049934864044, 0.21777625381946564, -0.32197991013526917, -0.4629148840904236, 0.054664745926856995, -0.06803825497627258, -0.10353460162878036, -0.6460461616516113, 0.7657811641693115, -0.42726707458496094, 0.42167460918426514, -0.3042706847190857, -0.06349563598632812, 0.14896702766418457, 0.30251893401145935, 0.3071044981479645, 0.6169041991233826, 0.8934017419815063, -0.6526999473571777, 0.2641993761062622, 0.23293963074684143, -0.2439073920249939, 0.5677799582481384, -0.8889144062995911, 0.1432686150074005, -0.39357829093933105, 0.2850709557533264, -1.007116436958313, -0.13790951669216156, 0.5949008464813232, -0.3896852731704712, 0.4057370126247406, -0.22297586500644684, -0.4967457354068756, -0.38355734944343567, -0.07200923562049866, 0.5670341849327087, 0.9307494163513184, -0.36984944343566895, 0.47132542729377747, 0.3667775094509125, 0.13231581449508667, -0.37910616397857666, -0.7998666763305664, -0.11753255128860474, -0.41378748416900635, -0.7468888163566589, 0.5358708500862122, -0.28269729018211365, -0.07750444114208221, 0.14743497967720032, 0.2514519691467285, -0.10600797086954117, -0.13967832922935486, 0.36520931124687195, 0.26442277431488037, -0.02733572944998741, -0.06694944202899933, 0.04665178433060646, -0.09558690339326859, -0.019490187987685204, -0.21376346051692963, 0.3229035437107086, 0.11020088940858841, -0.18338322639465332, -0.7090967893600464, 0.2863798141479492, 0.5524850487709045, 0.10796134918928146, 0.8058194518089294, 0.9568411111831665, -0.47046977281570435, -0.005833473056554794, -0.362760454416275, -0.21331265568733215, -0.4965883791446686, 0.33657392859458923, -0.12410745024681091, -0.44834113121032715, 0.6492577791213989, 0.02833406627178192, 0.031634435057640076, 0.6479717493057251, 0.7824463248252869, -0.2845394015312195, 1.0060774087905884, 0.4489213228225708, 0.34312182664871216, 0.6983910202980042, -0.8223225474357605, -0.10369241237640381, -0.7728599309921265, -0.2990560829639435, -0.16870145499706268, -0.32898998260498047, -0.3480212688446045, -0.6900248527526855, 0.41479161381721497, 0.19353511929512024, -0.32056793570518494, 0.1338835507631302, -0.6318261623382568, 0.29936718940734863, 0.3538095951080322, 0.27342140674591064, 0.057941924780607224, 0.1499403715133667, -0.05795698240399361, -0.16297945380210876, -0.7064287662506104, -0.6087408661842346, 1.0101768970489502, 0.42002367973327637, 0.951529860496521, -0.10313034057617188, 0.5585429072380066, 0.418497771024704, 0.4006916880607605, -0.4559285640716553, 0.5206154584884644, -0.20846347510814667, -0.7144967913627625, -0.1494593769311905, -0.23834136128425598, -0.9644978046417236, 0.17743700742721558, -0.20849819481372833, -0.40820449590682983, 0.4573710560798645, 0.32715338468551636, -0.23202812671661377, 0.43483370542526245, -0.7683067321777344, 0.9298276305198669, -0.13469244539737701, -0.6720399260520935, -0.10677196830511093, -0.5942986011505127, 0.33290812373161316, 0.013742133043706417, 0.15186437964439392, 0.01714973896741867, -0.08272698521614075, 0.8629370927810669, -0.34279105067253113, 0.8545829057693481, -0.4442058801651001, 0.0614817813038826, 0.5300224423408508, -0.07623669505119324, 0.40629854798316956, 0.09484168142080307, -0.07879282534122467, 0.2941962480545044, 0.17036746442317963, -0.43816930055618286, -0.28300178050994873, 0.695266604423523, -0.954342782497406, -0.32897430658340454, -0.4198446273803711, -0.4191180169582367, 0.5065853595733643, 0.26015275716781616, 0.7936766743659973, 0.2602998614311218, -0.13580875098705292, -0.02161744050681591, 0.7681949734687805, -0.3718571364879608, 0.43781691789627075, 0.23740482330322266, -0.31498417258262634, -0.5245158672332764, 0.8631658554077148, 0.24173083901405334, 0.46911630034446716, -0.1140994280576706, 0.09718973934650421, -0.23101818561553955, -0.49663829803466797, -0.5109808444976807, 0.33292698860168457, -0.874040961265564, -0.12427832186222076, -0.7363268136978149, -0.37986406683921814, -0.3146582841873169, -0.12947314977645874, -0.39619719982147217, -0.34491220116615295, -0.888958215713501, 0.18603503704071045, 0.28538694977760315, 0.5206819176673889, -0.3203950524330139, 0.46459656953811646, -0.45191383361816406, 0.36162614822387695, 0.19653227925300598, 0.2276582270860672, 0.059046871960163116, -0.7863999009132385, -0.25268974900245667, 0.10253693908452988, -0.6873567700386047, -0.8326305747032166, 0.462167888879776, 0.13104738295078278, 0.570766031742096, 0.41733649373054504, -0.1605878323316574, 0.5750521421432495, -0.45095759630203247, 0.9487174153327942, 0.3210456967353821, -0.570101797580719, 0.5743086338043213, -0.42006462812423706, 0.09229468554258347, 0.1647699773311615, 0.4780828058719635, -0.26659491658210754, -0.32814890146255493, -0.8211942315101624, -0.9037700891494751, 0.5518327951431274, 0.39506763219833374, 0.24205482006072998, -0.0007787731010466814, 0.6646316647529602, -0.08398464322090149, -0.007544223219156265, -1.0386924743652344, -0.5291606783866882, -0.36425843834877014, -0.0005714301951229572, 0.031127046793699265, -0.1637081354856491, -0.1568734347820282, -0.5469714999198914, 0.873748779296875, 0.1766003519296646, 0.5297299027442932, 0.4682129919528961, -0.03472364693880081, -0.36291617155075073, -0.33672547340393066, 0.5145733952522278, 0.4390561580657959, -0.19532936811447144, -0.002377039287239313, -0.10649162530899048, -0.5380282998085022, 0.2661828398704529, 0.11643502861261368, -0.5506069660186768, 0.07847323268651962, 0.02084294892847538, 0.7622275948524475, -0.32568231225013733, -0.40518489480018616, 0.5662639141082764, -0.1327720284461975, -0.37941595911979675, -0.504271924495697, 0.11962007731199265, 0.16224925220012665, 0.27368438243865967, 0.17623117566108704, 0.4213956594467163, 0.08074433356523514, -0.2665199339389801, 0.12371529638767242, 0.5597972273826599, -0.2629445195198059, -0.2854956388473511, 1.0800864696502686, 0.02041451446712017, -0.23134462535381317, 0.49934735894203186, -0.4151405990123749, -0.19173341989517212, 0.7607868909835815, 0.5843527317047119, 0.7623353600502014, -0.18337449431419373, 0.34332048892974854, 0.6910800933837891, 0.28532856702804565, -0.3172411024570465, 0.18075500428676605, 0.23750430345535278, -0.6823956370353699, -0.054222188889980316, -0.3810606598854065, 0.006183817517012358, 0.19845286011695862, -0.38789913058280945, 0.523877739906311, -0.5016794204711914, -0.4575962424278259, 0.008167456835508347, -0.2960573434829712, -0.622167706489563, 0.20066653192043304, 0.32039007544517517, 0.7717160582542419, -0.9810929298400879, 0.7889010310173035, 0.6736716628074646, -0.7103655934333801, -0.581499457359314, -0.07417866587638855, -0.2279272973537445, -0.41924014687538147, 0.6419472694396973, -0.040826983749866486, 0.061834800988435745, 0.18455170094966888, -0.8547385334968567, -0.7567987442016602, 1.2608591318130493, 0.36502426862716675, -0.24516336619853973, -0.07032584398984909, -0.19984248280525208, 0.5723476409912109, -0.4274149239063263, 0.29052960872650146, 0.19747473299503326, 0.40806129574775696, 0.432221382856369, -0.5498759150505066, 0.055910706520080566, -0.29032862186431885, 0.19251662492752075, -0.2085603028535843, -0.8494211435317993, 1.0485644340515137, -0.32962703704833984, -0.29579728841781616, 0.29632672667503357, 0.6012989282608032, 0.2944328188896179, 0.3161439895629883, 0.4475916028022766, 0.8520802855491638, 0.566770076751709, -0.04279514402151108, 0.9500922560691833, -0.12844614684581757, 0.556719958782196, 0.7251526117324829, 0.020131004974246025, 0.5647954940795898, 0.4541948735713959, -0.18965379893779755, 0.5887019038200378, 0.7217918634414673, -0.3329055607318878, 0.7596200108528137, 0.10555874556303024, -0.25147712230682373, -0.10151968896389008, 0.06997919827699661, -0.5409404635429382, -0.019416773691773415, 0.34775373339653015, -0.6768794059753418, -0.13442891836166382, 0.21262410283088684, -0.0699525773525238, -0.22391659021377563, -0.13351412117481232, 0.4562067687511444, 0.0962204709649086, -0.4285160005092621, 0.76772540807724, 0.07661677896976471, 0.8114802837371826, -0.44842642545700073, -0.12115972489118576, -0.031021133065223694, 0.17272010445594788, -0.23836317658424377, -0.7854923009872437, 0.3718443512916565, -0.1987266093492508, -0.1888355165719986, -0.2431880235671997, 0.7107933163642883, -0.42298367619514465, -0.6405965089797974, 0.2465539574623108, 0.2671787738800049, 0.38108938932418823, 0.12946562469005585, -1.0411487817764282, 0.17122051119804382, -0.1225220263004303, -0.401726096868515, 0.18248975276947021, 0.21459756791591644, 0.24528679251670837, 0.6483452320098877, 0.4837077856063843, 0.081744484603405, 0.19116194546222687, -0.1576204150915146, 0.7882475256919861, -0.3380856513977051, -0.37315016984939575, -0.7300708889961243, 0.7534112930297852, -0.017130393534898758, -0.1767914742231369, 0.6457629799842834, 0.6651933193206787, 0.6203749775886536, -0.2556917071342468, 0.8348978161811829, -0.2983856201171875, 0.07792150229215622, -0.47178342938423157, 0.9256879687309265, -0.8204225301742554, 0.14404965937137604, -0.3701973557472229, -0.7580974698066711, -0.20562593638896942, 0.9105949997901917, -0.2513388395309448, 0.3091506063938141, 0.4809877872467041, 1.033286213874817, -0.24424441158771515, -0.3719860911369324, 0.26775500178337097, 0.2857256531715393, 0.37067121267318726, 0.34515950083732605, 0.7881178855895996, -0.7260925769805908, 0.48327985405921936, -0.4420738220214844, -0.18023668229579926, -0.002913092263042927, -0.887640118598938, -0.7780897617340088, -0.7139387130737305, -0.8028639554977417, -0.7541854381561279, -0.08148016035556793, 0.4713626503944397, 1.0019346475601196, -0.4889509975910187, -0.08427998423576355, -0.29344847798347473, 0.019172122702002525, 0.00629451172426343, -0.2675119936466217, 0.42111530900001526, 0.016411446034908295, -0.8454124927520752, -0.15440554916858673, 0.19082599878311157, 0.5669529438018799, -0.430550217628479, -0.23326873779296875, -0.3015102446079254, -0.0824398472905159, 0.41294896602630615, 0.27011266350746155, -0.6027055978775024, -0.0012602159986272454, -0.15792898833751678, -0.19548961520195007, 0.19101297855377197, 0.33969858288764954, -0.623029887676239, 0.504217803478241, 0.48588085174560547, 0.11316150426864624, 0.8621206283569336, -0.07674439996480942, 0.06710408627986908, -0.4813433885574341, 0.4074667692184448, 0.20062443614006042, 0.32814210653305054, 0.29133445024490356, -0.48066186904907227, 0.3982534408569336, 0.6416195631027222, -0.8456184267997742, -0.7219844460487366, 0.0890791118144989, -1.1090091466903687, -0.2371460199356079, 1.2185301780700684, -0.30169373750686646, -0.2866362929344177, 0.11573432385921478, -0.38715559244155884, 0.314047247171402, -0.2359352707862854, 0.6239804625511169, 0.5649595260620117, -0.16206605732440948, -0.4578723609447479, -0.6143210530281067, 0.5032972097396851, 0.08332718163728714, -0.6362619996070862, -0.24310515820980072, 0.6213750243186951, 0.7226207256317139, 0.27447444200515747, 0.944017767906189, -0.29023104906082153, 0.25183266401290894, 0.04868350550532341, 0.15961046516895294, 0.09943673014640808, -0.09860976040363312, -0.345665842294693, -0.016737911850214005, -0.04039553180336952, -0.1833103448152542 ]
m-a-p/MERT-v1-330M
m-a-p
"2023-06-02T13:50:23Z"
12,510
29
transformers
[ "transformers", "pytorch", "mert_model", "feature-extraction", "music", "custom_code", "arxiv:2306.00107", "license:cc-by-nc-4.0", "region:us" ]
feature-extraction
"2023-03-17T12:07:01Z"
--- 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-330M", trust_remote_code=True) # loading the corresponding preprocessor config processor = Wav2Vec2FeatureExtractor.from_pretrained("m-a-p/MERT-v1-330M",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 25 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) # [25 layer, Time steps, 1024 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) # [25, 1024] # you can even use a learnable weighted average representation aggregator = nn.Conv1d(in_channels=25, out_channels=1, kernel_size=1) weighted_avg_hidden_states = aggregator(time_reduced_hidden_states.unsqueeze(0)).squeeze() print(weighted_avg_hidden_states.shape) # [1024] ``` # 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.7060184478759766, -0.45779603719711304, 0.21496768295764923, 0.11923198401927948, -0.11029405891895294, -0.16614991426467896, -0.2879348397254944, -0.30201780796051025, 0.1722472608089447, 0.35601359605789185, -0.9196601510047913, -0.4804542362689972, -0.5263257622718811, -0.19866107404232025, -0.1974598914384842, 1.0024622678756714, 0.16464880108833313, 0.07262444496154785, 0.13448700308799744, -0.1921447366476059, -0.593392550945282, -0.4527382254600525, -0.7095327973365784, -0.3704434335231781, 0.2066202312707901, 0.38180404901504517, 0.31465527415275574, 0.5585232377052307, 0.6130005121231079, 0.3200397193431854, -0.19352029263973236, -0.2477162778377533, -0.2995392680168152, 0.012742924503982067, 0.3974132835865021, -0.36304378509521484, -0.8045759201049805, 0.28369054198265076, 0.4562273621559143, 0.3451738655567169, 0.009975061751902103, 0.6077824234962463, 0.1391211450099945, 0.6571111679077148, -0.22701996564865112, 0.1270599514245987, -0.30206871032714844, 0.19848525524139404, -0.10525961220264435, -0.3559553325176239, -0.4213380515575409, 0.01966395601630211, 0.24234846234321594, -0.7215154767036438, 0.14108037948608398, 0.048668090254068375, 1.0924938917160034, 0.467670202255249, -0.30162835121154785, -0.18672135472297668, -0.7912344932556152, 0.8542689681053162, -0.8139781951904297, 0.7674552202224731, 0.6160011887550354, 0.45583710074424744, 0.22574938833713531, -0.6339565515518188, -0.4239558279514313, -0.27861297130584717, -0.026212917640805244, 0.37680020928382874, -0.09278135746717453, -0.13169251382350922, 0.4431706964969635, 0.6406912207603455, -0.6761017441749573, -0.016086997464299202, -0.5877712965011597, -0.2744293510913849, 0.7298879623413086, -0.12337755411863327, 0.08808918297290802, -0.3030538856983185, -0.5629748106002808, -0.45452913641929626, -0.4840478301048279, 0.26367321610450745, 0.355886310338974, -0.0048929848708212376, -0.4968315064907074, 0.2861695885658264, 0.11006642878055573, 0.554578959941864, 0.348197877407074, -0.49691832065582275, 0.6921260356903076, -0.3039531707763672, -0.30155882239341736, 0.13011890649795532, 0.8366208672523499, 0.1529943197965622, -0.023702187463641167, 0.20207998156547546, -0.37947019934654236, -0.10498233884572983, 0.014397847466170788, -0.7859447598457336, -0.45963427424430847, 0.2778884470462799, -0.6199386119842529, -0.1439252644777298, 0.005382703151553869, -0.45380258560180664, 0.03972748667001724, -0.622106671333313, 0.9209263324737549, -0.6430985331535339, -0.47522687911987305, 0.2111145406961441, -0.09902846813201904, 0.3142542541027069, -0.04539916664361954, -0.7205259203910828, 0.25403353571891785, 0.4357343912124634, 0.752060055732727, 0.04226725921034813, -0.2754494845867157, -0.10414978116750717, -0.10215304791927338, -0.04441952705383301, 0.3485771119594574, 0.10367116332054138, -0.24144744873046875, -0.4781514108181, -0.0037222555838525295, -0.1527353823184967, -0.5436105132102966, 0.682661235332489, -0.4204431176185608, 0.4875677227973938, -0.29040592908859253, -0.5745957493782043, -0.4992230236530304, -0.03541940450668335, -0.5436878204345703, 1.0201319456100464, 0.3118768632411957, -0.8890802264213562, 0.432721346616745, -0.7503212690353394, -0.19198131561279297, -0.4267504811286926, 0.15468643605709076, -0.8044373393058777, -0.13607299327850342, 0.28473642468452454, 0.47942572832107544, -0.33319389820098877, 0.08562465757131577, -0.2203080952167511, -0.5054870247840881, 0.2247961163520813, -0.40696969628334045, 0.9862743020057678, 0.4613282382488251, -0.6274000406265259, 0.22155945003032684, -1.1341488361358643, -0.09593114256858826, 0.2314588725566864, -0.43167349696159363, 0.06449175626039505, -0.3030182123184204, 0.35080236196517944, 0.490264356136322, 0.10872586816549301, -0.38653966784477234, -0.08405514806509018, -0.39713335037231445, 0.6159054636955261, 0.6419737339019775, 0.014255005866289139, 0.35334235429763794, -0.6421099305152893, 0.4899137616157532, -0.07978750020265579, 0.10372268408536911, -0.2909155488014221, -0.2975131869316101, -0.7872119545936584, -0.4435603618621826, 0.40750283002853394, 0.652969241142273, -0.18489423394203186, 0.852118730545044, -0.1412915587425232, -0.7151706218719482, -0.9078477025032043, -0.04647042602300644, 0.4304378628730774, 0.5377703309059143, 0.5996389985084534, -0.38526734709739685, -0.829255998134613, -1.0045900344848633, 0.03188106417655945, 0.04076444357633591, -0.30976811051368713, 0.47302407026290894, 0.37331026792526245, -0.1273922473192215, 0.8592290282249451, -0.2970793545246124, -0.2742626368999481, -0.18950729072093964, 0.12913072109222412, 0.6300211548805237, 0.8745959997177124, 0.6515935063362122, -0.6166888475418091, -0.34581729769706726, -0.3533776104450226, -0.7385807633399963, -0.12538208067417145, -0.1589670330286026, -0.14683866500854492, -0.020431028679013252, 0.2837698459625244, -0.6061776876449585, 0.2603451609611511, 0.39658257365226746, -0.35550644993782043, 0.694534420967102, 0.0922582671046257, 0.31050875782966614, -1.0975621938705444, 0.0690002515912056, -0.011684075929224491, -0.10502259433269501, -0.5715596675872803, -0.23582103848457336, -0.11842434108257294, -0.08201145380735397, -0.5813654661178589, 0.2550880014896393, -0.5589260458946228, -0.3292663097381592, -0.23101352155208588, -0.03711122274398804, -0.09196615219116211, 0.9443812370300293, 0.060344669967889786, 0.7231701612472534, 0.7612400054931641, -0.7050175070762634, 0.3352046012878418, 0.22361904382705688, -0.45334577560424805, 0.439761757850647, -0.8620638847351074, 0.22903071343898773, 0.10011853277683258, 0.35774412751197815, -0.9763171076774597, -0.0429970808327198, 0.26652684807777405, -0.7960479855537415, 0.5676762461662292, -0.2917060852050781, -0.43817704916000366, -0.6277376413345337, -0.06683577597141266, 0.5507499575614929, 0.7954615354537964, -0.5038266777992249, 0.31433796882629395, 0.34766146540641785, 0.16814549267292023, -0.4168083667755127, -0.7010723352432251, -0.4880821406841278, -0.6187418103218079, -0.8687587976455688, 0.3069084882736206, -0.07245887070894241, -0.062124382704496384, -0.11886085569858551, -0.31197458505630493, 0.01629117876291275, 0.0968596562743187, 0.503201961517334, 0.18584094941616058, -0.49321192502975464, 0.1482061743736267, -0.22810731828212738, -0.29573971033096313, 0.23893804848194122, -0.5341119170188904, 0.9080379009246826, -0.22042229771614075, -0.41498270630836487, -0.9661586284637451, 0.011877031996846199, 0.5928988456726074, -0.42214858531951904, 0.40874215960502625, 1.0359277725219727, -0.1704239845275879, 0.20152924954891205, -0.5134853720664978, -0.33790042996406555, -0.5158778429031372, 0.3899976909160614, -0.42826810479164124, -0.699566125869751, 0.5843590497970581, 0.18757562339305878, 0.11249034106731415, 0.7838053703308105, 0.4503844976425171, -0.2737096846103668, 0.9119523763656616, 0.38369569182395935, -0.12413885444402695, 0.5392606258392334, -0.8915512561798096, -0.159482941031456, -0.9527333378791809, -0.16712817549705505, -0.3142426311969757, -0.618768572807312, -0.6060498952865601, -0.36025819182395935, 0.5761104226112366, 0.04835892468690872, -0.6913120150566101, 0.6167333126068115, -0.5681819319725037, 0.03066450171172619, 0.8908578753471375, 0.2087932825088501, -0.09702063351869583, -0.0164467915892601, 0.054491396993398666, -0.09059926867485046, -0.5450699329376221, -0.2061678171157837, 1.4009873867034912, 0.7139201760292053, 0.5176159739494324, -0.05545767396688461, 0.8329836130142212, 0.07621171325445175, -0.1399030089378357, -0.772897481918335, 0.27491995692253113, 0.20438207685947418, -0.7106723785400391, -0.2884920835494995, -0.25470665097236633, -0.7084212899208069, 0.37416887283325195, -0.3430466055870056, -0.5295325517654419, 0.20489871501922607, 0.1574154794216156, -0.44340482354164124, 0.412122905254364, -0.5970158576965332, 0.8193786144256592, -0.2110137641429901, -0.2026974856853485, -0.07469388842582703, -0.7433710098266602, 0.4587199091911316, 0.012204157188534737, 0.27841827273368835, -0.13965514302253723, 0.48135286569595337, 1.2307204008102417, -0.39578792452812195, 0.4687315821647644, -0.43287572264671326, -0.020748740062117577, 0.6008774638175964, -0.015563794411718845, 0.30855703353881836, -0.014368372038006783, 0.008378282189369202, 0.119487464427948, -0.10379459708929062, -0.3683052957057953, -0.3987103998661041, 0.43981730937957764, -1.0146808624267578, -0.40635421872138977, -0.18594542145729065, -0.8020604848861694, -0.23174841701984406, 0.05213634669780731, 0.7251738905906677, 0.6267945170402527, 0.1584266722202301, 0.36095884442329407, 0.7480297684669495, -0.22912919521331787, 0.5024793148040771, 0.37201204895973206, -0.11104139685630798, -0.5597418546676636, 0.867952823638916, 0.10720805078744888, 0.32236939668655396, 0.2584525942802429, 0.23129507899284363, -0.3505878448486328, -0.4471336305141449, -0.32821306586265564, 0.2752165198326111, -0.4410177171230316, -0.12454669922590256, -0.8027749061584473, -0.17111751437187195, -0.5409805178642273, 0.05327875167131424, -0.660140335559845, -0.6108008027076721, -0.22534574568271637, -0.07682988047599792, 0.45847249031066895, 0.5348795652389526, -0.22804906964302063, 0.6972923278808594, -0.7546512484550476, 0.21759669482707977, 0.23995211720466614, 0.14167308807373047, -0.11181801557540894, -1.2174241542816162, -0.3581993281841278, -0.015969600528478622, -0.38493308424949646, -1.031326174736023, 0.38426652550697327, 0.0013874613214284182, 0.44835084676742554, 0.5926541090011597, -0.2625442147254944, 0.5718385577201843, -0.3599635362625122, 0.7172443270683289, 0.2167385369539261, -0.9958819150924683, 0.7718398571014404, -0.5148180723190308, 0.1399488002061844, 0.5578985214233398, 0.35650718212127686, -0.4443616569042206, -0.07358953356742859, -0.893616259098053, -0.8076353073120117, 1.074483036994934, 0.24181124567985535, -0.29842421412467957, 0.5425366163253784, 0.20796166360378265, 0.03194393590092659, 0.2418336123228073, -0.9513350129127502, -0.6757407188415527, -0.4929198622703552, -0.030134551227092743, -0.3685443103313446, -0.12423389405012131, -0.04390041157603264, -0.7541128396987915, 0.9277876019477844, 0.33275407552719116, 0.5704837441444397, 0.22617952525615692, -0.12872880697250366, 0.007075633388012648, 0.19291986525058746, 0.6336947083473206, 0.38101378083229065, -0.5786595344543457, -0.010956467129290104, 0.16976429522037506, -0.5225495100021362, 0.32381749153137207, -0.03366175293922424, -0.035048361867666245, -0.033599838614463806, 0.5069689154624939, 1.1940077543258667, 0.307740181684494, -0.2378847450017929, 0.516882061958313, 0.18257734179496765, -0.3748362064361572, -0.5217497944831848, 0.08232667297124863, 0.26333457231521606, 0.29338499903678894, 0.19202153384685516, 0.19215258955955505, 0.1645558476448059, -0.3749884068965912, 0.5491507053375244, 0.09437350928783417, -0.5384311676025391, -0.3939012289047241, 0.9420896172523499, -0.08157270401716232, -0.2639504075050354, 0.6003982424736023, -0.20022548735141754, -0.6017566323280334, 0.8531515002250671, 0.5684595704078674, 0.9833396673202515, -0.4621640741825104, -0.16117635369300842, 0.7645877599716187, 0.32320091128349304, 0.06012124940752983, 0.28105759620666504, -0.30146998167037964, -0.37254422903060913, -0.24163900315761566, -0.7511338591575623, 0.04183172062039375, 0.3770301640033722, -0.9095909595489502, 0.3067605495452881, -0.3845946788787842, -0.24244056642055511, -0.06560076028108597, 0.2870706617832184, -0.7936986088752747, 0.3541858494281769, 0.07702323794364929, 1.066727638244629, -0.9990401864051819, 0.9941083192825317, 0.41522547602653503, -0.5381751656532288, -1.2127807140350342, -0.13028846681118011, 0.2134586125612259, -0.7177878022193909, 0.6318312287330627, 0.16013263165950775, 0.09912897646427155, 0.09825538843870163, -0.539811909198761, -1.123188853263855, 1.4339932203292847, 0.13533657789230347, -0.6645824313163757, 0.1888747364282608, -0.09213177114725113, 0.4774330258369446, -0.4039963185787201, 0.2950509190559387, 0.8635722398757935, 0.6126129627227783, 0.1809256672859192, -1.0244972705841064, -0.11211876571178436, -0.38541942834854126, -0.3653787076473236, 0.04412321001291275, -0.6741505265235901, 1.3521530628204346, -0.24418216943740845, -0.016255443915724754, -0.2390223890542984, 0.8682274222373962, 0.42814648151397705, 0.4389369785785675, 0.7985851168632507, 0.7982813715934753, 0.6605246067047119, -0.18167752027511597, 0.9481427669525146, -0.3875281512737274, 0.5370908975601196, 1.0994826555252075, 0.3147759437561035, 0.6102997660636902, 0.21369899809360504, -0.5197129845619202, 0.21361444890499115, 0.9347009062767029, -0.2589454650878906, 0.5954698920249939, 0.3068697154521942, -0.08106433600187302, -0.3103142976760864, 0.24858547747135162, -0.9104193449020386, 0.6635047197341919, 0.16907888650894165, -0.3961943984031677, 0.31468403339385986, 0.2946600019931793, 0.024027489125728607, -0.3645736277103424, -0.2169366329908371, 0.5872625708580017, 0.0063773877918720245, -0.40341511368751526, 0.915032684803009, -0.07684879004955292, 0.9361667037010193, -0.3647252917289734, 0.28593114018440247, -0.01838676445186138, -0.03924468532204628, -0.24148774147033691, -0.546866774559021, 0.10132094472646713, -0.3114796578884125, -0.34706026315689087, -0.17785407602787018, 0.4891692101955414, -0.5238415598869324, -0.3231179416179657, 0.40665003657341003, 0.40380769968032837, 0.3745516538619995, -0.18924477696418762, -0.8284969925880432, 0.04076847806572914, 0.05137188360095024, -0.5442957282066345, 0.10664793848991394, 0.23745517432689667, 0.3722805082798004, 0.4911799132823944, 0.5662387609481812, 0.08647847920656204, 0.3805166780948639, 0.0021047175396233797, 0.6361121535301208, -0.6933332085609436, -0.5880357027053833, -0.4852578639984131, 0.4389345943927765, 0.2328077256679535, -0.33559614419937134, 0.7404292225837708, 0.697152316570282, 0.9938911199569702, -0.1349496841430664, 0.5854882597923279, -0.005491733551025391, 0.6792159080505371, -0.5848283767700195, 0.8825634717941284, -0.7333517074584961, 0.4212687313556671, -0.38879695534706116, -0.9500585198402405, 0.11381133645772934, 0.6885156035423279, -0.26432153582572937, 0.3429188132286072, 0.4329083263874054, 0.6701536774635315, -0.2662869393825531, 0.12352054566144943, 0.07896682620048523, 0.3256465792655945, 0.16180863976478577, 0.8608801364898682, 0.7410484552383423, -0.899878978729248, 0.45920342206954956, -0.7880256772041321, -0.17226697504520416, -0.14878442883491516, -0.33948856592178345, -0.7358958721160889, -0.7688372731208801, -0.3321593403816223, -0.37158942222595215, -0.20579881966114044, 1.1439017057418823, 0.9879283308982849, -0.8187879323959351, -0.3991206884384155, 0.21377697587013245, 0.01852591708302498, -0.5230477452278137, -0.23994080722332, 0.7616392970085144, -0.07580332458019257, -0.7819486260414124, 0.6281542778015137, -0.10423368215560913, 0.2709309160709381, -0.1672036349773407, -0.35999053716659546, -0.24141375720500946, -0.08715701103210449, 0.4076601564884186, 0.17064175009727478, -0.5830227136611938, -0.2202577441930771, -0.052935101091861725, 0.01958983764052391, 0.3805456757545471, 0.6298925280570984, -0.5841872692108154, 0.16915364563465118, 0.5525509119033813, 0.20728783309459686, 0.6988540887832642, -0.1377824991941452, 0.13494639098644257, -0.5954586267471313, 0.23757733404636383, 0.1677841991186142, 0.4045040011405945, 0.1576138287782669, -0.18203280866146088, 0.5311774015426636, 0.44291725754737854, -0.7400664687156677, -0.9127565622329712, -0.050051499158144, -1.2810109853744507, -0.13262058794498444, 1.0525339841842651, -0.04100886359810829, -0.2308415323495865, 0.07895340025424957, -0.22291299700737, 0.60213702917099, -0.26744112372398376, 0.3876948356628418, 0.49233344197273254, -0.20450034737586975, -0.1096355989575386, -0.8421359658241272, 0.7502018213272095, 0.4742843210697174, -0.48024889826774597, -0.2328059822320938, 0.4319061040878296, 0.5686723589897156, 0.24913376569747925, 0.8039248585700989, -0.2272634506225586, 0.4096119701862335, 0.17769001424312592, 0.3223201334476471, -0.353231281042099, -0.4762730300426483, -0.4988389015197754, 0.21772941946983337, -0.22257833182811737, -0.5817825198173523 ]
microsoft/BiomedVLP-CXR-BERT-specialized
microsoft
"2022-07-11T14:52:06Z"
12,482
14
transformers
[ "transformers", "pytorch", "cxr-bert", "feature-extraction", "exbert", "fill-mask", "custom_code", "en", "arxiv:2204.09817", "arxiv:2103.00020", "arxiv:2002.05709", "license:mit", "region:us" ]
fill-mask
"2022-05-11T17:20:52Z"
--- language: en tags: - exbert license: mit pipeline_tag: fill-mask widget: - text: "Left pleural effusion with adjacent [MASK]." example_title: "Radiology 1" - text: "Heart size normal and lungs are [MASK]." example_title: "Radiology 2" inference: false --- # CXR-BERT-specialized [CXR-BERT](https://arxiv.org/abs/2204.09817) is a chest X-ray (CXR) domain-specific language model that makes use of an improved vocabulary, novel pretraining procedure, weight regularization, and text augmentations. The resulting model demonstrates improved performance on radiology natural language inference, radiology masked language model token prediction, and downstream vision-language processing tasks such as zero-shot phrase grounding and image classification. First, we pretrain [**CXR-BERT-general**](https://huggingface.co/microsoft/BiomedVLP-CXR-BERT-general) from a randomly initialized BERT model via Masked Language Modeling (MLM) on abstracts [PubMed](https://pubmed.ncbi.nlm.nih.gov/) and clinical notes from the publicly-available [MIMIC-III](https://physionet.org/content/mimiciii/1.4/) and [MIMIC-CXR](https://physionet.org/content/mimic-cxr/). In that regard, the general model is expected be applicable for research in clinical domains other than the chest radiology through domain specific fine-tuning. **CXR-BERT-specialized** is continually pretrained from CXR-BERT-general to further specialize in the chest X-ray domain. At the final stage, CXR-BERT is trained in a multi-modal contrastive learning framework, similar to the [CLIP](https://arxiv.org/abs/2103.00020) framework. The latent representation of [CLS] token is utilized to align text/image embeddings. ## Model variations | Model | Model identifier on HuggingFace | Vocabulary | Note | | ------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -------------- | --------------------------------------------------------- | | CXR-BERT-general | [microsoft/BiomedVLP-CXR-BERT-general](https://huggingface.co/microsoft/BiomedVLP-CXR-BERT-general) | PubMed & MIMIC | Pretrained for biomedical literature and clinical domains | | CXR-BERT-specialized (after multi-modal training) | [microsoft/BiomedVLP-CXR-BERT-specialized](https://huggingface.co/microsoft/BiomedVLP-CXR-BERT-specialized) | PubMed & MIMIC | Pretrained for chest X-ray domain | ## Image model **CXR-BERT-specialized** is jointly trained with a ResNet-50 image model in a multi-modal contrastive learning framework. Prior to multi-modal learning, the image model is pre-trained on the same set of images in MIMIC-CXR using [SimCLR](https://arxiv.org/abs/2002.05709). The corresponding model definition and its loading functions can be accessed through our [HI-ML-Multimodal](https://github.com/microsoft/hi-ml/blob/main/hi-ml-multimodal/src/health_multimodal/image/model/model.py) GitHub repository. The joint image and text model, namely [BioViL](https://arxiv.org/abs/2204.09817), can be used in phrase grounding applications as shown in this python notebook [example](https://mybinder.org/v2/gh/microsoft/hi-ml/HEAD?labpath=hi-ml-multimodal%2Fnotebooks%2Fphrase_grounding.ipynb). Additionally, please check the [MS-CXR benchmark](https://physionet.org/content/ms-cxr/0.1/) for a more systematic evaluation of joint image and text models in phrase grounding tasks. ## Citation The corresponding manuscript is accepted to be presented at the [**European Conference on Computer Vision (ECCV) 2022**](https://eccv2022.ecva.net/) ```bibtex @misc{https://doi.org/10.48550/arxiv.2204.09817, doi = {10.48550/ARXIV.2204.09817}, url = {https://arxiv.org/abs/2204.09817}, author = {Boecking, Benedikt and Usuyama, Naoto and Bannur, Shruthi and Castro, Daniel C. and Schwaighofer, Anton and Hyland, Stephanie and Wetscherek, Maria and Naumann, Tristan and Nori, Aditya and Alvarez-Valle, Javier and Poon, Hoifung and Oktay, Ozan}, title = {Making the Most of Text Semantics to Improve Biomedical Vision-Language Processing}, publisher = {arXiv}, year = {2022}, } ``` ## Model Use ### Intended Use This model is intended to be used solely for (I) future research on visual-language processing and (II) reproducibility of the experimental results reported in the reference paper. #### Primary Intended Use The primary intended use is to support AI researchers building on top of this work. CXR-BERT and its associated models should be helpful for exploring various clinical NLP & VLP research questions, especially in the radiology domain. #### Out-of-Scope Use **Any** deployed use case of the model --- commercial or otherwise --- is currently out of scope. Although we evaluated the models using a broad set of publicly-available research benchmarks, the models and evaluations are not intended for deployed use cases. Please refer to [the associated paper](https://arxiv.org/abs/2204.09817) for more details. ### How to use Here is how to use this model to extract radiological sentence embeddings and obtain their cosine similarity in the joint space (image and text): ```python import torch from transformers import AutoModel, AutoTokenizer # Load the model and tokenizer url = "microsoft/BiomedVLP-CXR-BERT-specialized" tokenizer = AutoTokenizer.from_pretrained(url, trust_remote_code=True) model = AutoModel.from_pretrained(url, trust_remote_code=True) # Input text prompts (e.g., reference, synonym, contradiction) text_prompts = ["There is no pneumothorax or pleural effusion", "No pleural effusion or pneumothorax is seen", "The extent of the pleural effusion is constant."] # Tokenize and compute the sentence embeddings tokenizer_output = tokenizer.batch_encode_plus(batch_text_or_text_pairs=text_prompts, add_special_tokens=True, padding='longest', return_tensors='pt') embeddings = model.get_projected_text_embeddings(input_ids=tokenizer_output.input_ids, attention_mask=tokenizer_output.attention_mask) # Compute the cosine similarity of sentence embeddings obtained from input text prompts. sim = torch.mm(embeddings, embeddings.t()) ``` ## Data This model builds upon existing publicly-available datasets: - [PubMed](https://pubmed.ncbi.nlm.nih.gov/) - [MIMIC-III](https://physionet.org/content/mimiciii/) - [MIMIC-CXR](https://physionet.org/content/mimic-cxr/) These datasets reflect a broad variety of sources ranging from biomedical abstracts to intensive care unit notes to chest X-ray radiology notes. The radiology notes are accompanied with their associated chest x-ray DICOM images in MIMIC-CXR dataset. ## Performance We demonstrate that this language model achieves state-of-the-art results in radiology natural language inference through its improved vocabulary and novel language pretraining objective leveraging semantics and discourse characteristics in radiology reports. A highlight of comparison to other common models, including [ClinicalBERT](https://aka.ms/clinicalbert) and [PubMedBERT](https://aka.ms/pubmedbert): | | RadNLI accuracy (MedNLI transfer) | Mask prediction accuracy | Avg. # tokens after tokenization | Vocabulary size | | ----------------------------------------------- | :-------------------------------: | :----------------------: | :------------------------------: | :-------------: | | RadNLI baseline | 53.30 | - | - | - | | ClinicalBERT | 47.67 | 39.84 | 78.98 (+38.15%) | 28,996 | | PubMedBERT | 57.71 | 35.24 | 63.55 (+11.16%) | 28,895 | | CXR-BERT (after Phase-III) | 60.46 | 77.72 | 58.07 (+1.59%) | 30,522 | | **CXR-BERT (after Phase-III + Joint Training)** | **65.21** | **81.58** | **58.07 (+1.59%)** | 30,522 | CXR-BERT also contributes to better vision-language representation learning through its improved text encoding capability. Below is the zero-shot phrase grounding performance on the **MS-CXR** dataset, which evaluates the quality of image-text latent representations. | Vision–Language Pretraining Method | Text Encoder | MS-CXR Phrase Grounding (Avg. CNR Score) | | ---------------------------------- | ------------ | :--------------------------------------: | | Baseline | ClinicalBERT | 0.769 | | Baseline | PubMedBERT | 0.773 | | ConVIRT | ClinicalBERT | 0.818 | | GLoRIA | ClinicalBERT | 0.930 | | **BioViL** | **CXR-BERT** | **1.027** | | **BioViL-L** | **CXR-BERT** | **1.142** | Additional details about performance can be found in the corresponding paper, [Making the Most of Text Semantics to Improve Biomedical Vision-Language Processing](https://arxiv.org/abs/2204.09817). ## Limitations This model was developed using English corpora, and thus can be considered English-only. ## Further information Please refer to the corresponding paper, ["Making the Most of Text Semantics to Improve Biomedical Vision-Language Processing", ECCV'22](https://arxiv.org/abs/2204.09817) for additional details on the model training and evaluation. For additional inference pipelines with CXR-BERT, please refer to the [HI-ML-Multimodal GitHub](https://aka.ms/biovil-code) repository.
[ -0.2984490990638733, -0.7130638360977173, 0.5355452299118042, 0.046620965003967285, -0.3866799473762512, -0.1468428671360016, -0.11453979462385178, -0.45601943135261536, 0.04907285422086716, 0.3562910556793213, -0.3653351366519928, -0.6880311369895935, -0.788257896900177, 0.0746244564652443, -0.1150025948882103, 0.8463073372840881, 0.03090907819569111, 0.30551502108573914, -0.2588714361190796, -0.29959070682525635, -0.3039647042751312, -0.7032573819160461, -0.44834181666374207, -0.3161504864692688, 0.3746294379234314, -0.12264648824930191, 0.9183933138847351, 0.7163804769515991, 0.6552589535713196, 0.255700021982193, -0.061678528785705566, 0.04333842545747757, -0.19705617427825928, -0.2532973289489746, 0.00008867072756402194, -0.23465929925441742, -0.351615846157074, -0.11453553289175034, 0.5783035755157471, 0.6746867299079895, 0.10008919984102249, -0.29509443044662476, 0.001620011986233294, 0.50068598985672, -0.40287691354751587, 0.18474607169628143, -0.4094828963279724, 0.11234819144010544, 0.07899206131696701, -0.28774651885032654, -0.38647350668907166, -0.14041495323181152, 0.4874971807003021, -0.6090412735939026, 0.0810970887541771, 0.16675159335136414, 1.4427287578582764, 0.20699144899845123, -0.3132466971874237, -0.34293821454048157, -0.11505552381277084, 0.9196948409080505, -0.7679689526557922, 0.5998412370681763, 0.20740725100040436, 0.04944261908531189, 0.12925460934638977, -1.069130778312683, -0.5746080279350281, -0.3025752007961273, -0.40840789675712585, 0.29294833540916443, -0.49104464054107666, 0.3127491772174835, 0.10154403001070023, 0.3017025291919708, -0.756353497505188, -0.03979708254337311, -0.28084278106689453, -0.3132021427154541, 0.3262794017791748, -0.0056816693395376205, 0.46970173716545105, -0.4925883114337921, -0.5794956684112549, -0.36545565724372864, -0.48926568031311035, -0.05567987263202667, -0.2275650054216385, 0.16604119539260864, -0.46535322070121765, 0.5196653008460999, 0.016024937853217125, 0.8551852107048035, 0.10821548104286194, -0.3087537884712219, 0.7733855843544006, -0.40067267417907715, -0.43551525473594666, -0.08526052534580231, 0.9685689210891724, 0.416622132062912, 0.05850459262728691, -0.05168823152780533, -0.01235213503241539, 0.18747086822986603, -0.020996108651161194, -0.7654663324356079, -0.23095040023326874, 0.23014746606349945, -0.8909995555877686, -0.38949671387672424, 0.08905123919248581, -0.4420887529850006, -0.04374348372220993, -0.2992452085018158, 0.6824273467063904, -0.7636429667472839, -0.08596385270357132, 0.31768274307250977, -0.17895275354385376, 0.3019927442073822, 0.07725954055786133, -0.32878783345222473, 0.29100772738456726, 0.385386198759079, 0.8672815561294556, -0.11768686771392822, -0.07483567297458649, -0.39144670963287354, -0.12746965885162354, -0.02004852518439293, 0.6994010806083679, -0.529577910900116, -0.34975966811180115, -0.030294086784124374, 0.23016270995140076, -0.2615560293197632, -0.4427465498447418, 0.5705757737159729, -0.35056963562965393, 0.45964762568473816, -0.09577925503253937, -0.6356395483016968, -0.19679796695709229, 0.33734142780303955, -0.4677931070327759, 1.000846028327942, 0.07985878735780716, -0.9364007115364075, 0.23420022428035736, -0.4791145324707031, -0.31097251176834106, -0.13633227348327637, -0.5431591272354126, -0.6521297097206116, -0.05053303763270378, 0.5324070453643799, 0.6522398591041565, -0.1865934282541275, 0.3085976839065552, -0.13096770644187927, -0.11735294759273529, 0.3670099079608917, -0.10592353343963623, 0.8259453773498535, 0.18931418657302856, -0.4070529043674469, 0.03933829069137573, -0.8414918780326843, 0.13916662335395813, 0.07893603295087814, -0.11639123409986496, -0.4173131287097931, -0.06962376832962036, 0.28240737318992615, 0.5463210344314575, 0.1436288207769394, -0.6071880459785461, -0.06282471120357513, -0.4937303364276886, 0.3382936120033264, 0.47131261229515076, 0.036291688680648804, 0.24337002635002136, -0.6596675515174866, 0.4784384071826935, 0.21580617129802704, 0.014651384204626083, -0.39836323261260986, -0.48713552951812744, -0.6244663000106812, -0.7729239463806152, 0.2602241635322571, 0.6003625988960266, -0.7640852928161621, 0.5839608907699585, -0.3433661162853241, -0.47504526376724243, -0.5964686274528503, -0.27558666467666626, 0.80953049659729, 0.7209519743919373, 0.6611341238021851, -0.3096056580543518, -0.6447452902793884, -0.9938222169876099, -0.0174173004925251, 0.04261605441570282, 0.0651656985282898, 0.5070931911468506, 0.3633881211280823, -0.308136522769928, 0.8616921305656433, -0.6791387796401978, -0.5518712997436523, -0.13706950843334198, 0.27674758434295654, 0.24660637974739075, 0.5823625326156616, 0.6276333332061768, -0.7380636930465698, -0.5788896679878235, 0.04949682578444481, -0.9821694493293762, -0.051448553800582886, -0.27631261944770813, -0.06632833182811737, 0.34247732162475586, 0.7795029282569885, -0.3832177519798279, 0.5033078789710999, 0.683744490146637, -0.2962402105331421, 0.38814112544059753, -0.35989609360694885, 0.10471822321414948, -1.3000386953353882, 0.2621714472770691, 0.10056335479021072, -0.3439410626888275, -0.47751495242118835, 0.09260571748018265, 0.05819936469197273, -0.10192807018756866, -0.3662872612476349, 0.6910713315010071, -0.7621313333511353, 0.24435774981975555, -0.012665843591094017, 0.19031520187854767, 0.13016849756240845, 0.46433013677597046, 0.452842652797699, 0.5324769020080566, 0.7413586378097534, -0.4302608072757721, -0.1757485419511795, 0.4266386330127716, -0.3333468735218048, 0.44952571392059326, -0.9891945719718933, 0.10197565704584122, -0.1670076996088028, 0.2156781554222107, -0.9646268486976624, 0.12512822449207306, 0.14901144802570343, -0.6375487446784973, 0.4957734942436218, -0.020356953144073486, -0.44524526596069336, -0.30393072962760925, -0.3131880462169647, 0.31050512194633484, 0.5885489583015442, -0.36003702878952026, 0.552940309047699, 0.268664687871933, -0.03400586172938347, -0.7182434797286987, -0.8233840465545654, 0.0693485289812088, 0.093546561896801, -0.8324456214904785, 0.7724979519844055, -0.134358748793602, -0.0538630485534668, 0.23103578388690948, 0.1676042079925537, -0.1706109493970871, -0.22313115000724792, 0.31703418493270874, 0.44437435269355774, -0.41199570894241333, 0.09449981153011322, -0.005761601962149143, -0.08831597119569778, -0.14830510318279266, -0.13907918334007263, 0.5555797219276428, -0.15174779295921326, -0.2964833080768585, -0.6464558243751526, 0.38756635785102844, 0.45154836773872375, -0.12886717915534973, 0.7322830557823181, 0.6447537541389465, -0.44328761100769043, 0.38643068075180054, -0.6956667900085449, -0.06226088106632233, -0.4392330050468445, 0.6402535438537598, -0.3709818720817566, -0.9696584343910217, 0.45055291056632996, 0.23351579904556274, -0.27927565574645996, 0.45709529519081116, 0.66813725233078, -0.10560817271471024, 1.0880569219589233, 0.6680701971054077, 0.1043725460767746, 0.34564828872680664, -0.3092801868915558, 0.15043848752975464, -0.8942399621009827, -0.2564692795276642, -0.4797814190387726, -0.0036663017235696316, -0.6531779170036316, -0.5916651487350464, 0.5088220238685608, -0.23266081511974335, 0.12620916962623596, 0.12230414152145386, -0.6421327590942383, 0.12216261029243469, 0.3746989667415619, 0.4256509840488434, 0.1460898369550705, 0.16557320952415466, -0.5240644812583923, -0.38732418417930603, -0.704853892326355, -0.3963736891746521, 0.9944928884506226, 0.41838791966438293, 0.6859668493270874, -0.1723577380180359, 0.8097808957099915, 0.040757857263088226, 0.15406380593776703, -0.728431761264801, 0.3793739378452301, -0.3931182026863098, -0.5374897718429565, 0.0438494049012661, -0.1623823046684265, -1.1699070930480957, 0.2629091143608093, -0.32834354043006897, -0.4843347668647766, 0.36715376377105713, 0.05782559886574745, -0.4174357056617737, 0.17507728934288025, -0.5108162760734558, 0.7917428016662598, -0.14192810654640198, -0.2506900727748871, -0.09415324777364731, -0.9269096255302429, 0.1374930590391159, 0.07832282781600952, 0.3032800257205963, 0.18622365593910217, -0.18510566651821136, 0.6374256610870361, -0.5714298486709595, 0.9300009608268738, -0.1707668900489807, 0.1948893517255783, 0.18878969550132751, -0.2595290243625641, 0.23973993957042694, -0.13564349710941315, 0.013895069248974323, 0.2819375693798065, 0.24345086514949799, -0.368086040019989, -0.3672531843185425, 0.5377511978149414, -1.044681429862976, -0.3229738771915436, -0.7474525570869446, -0.5592199563980103, -0.041666992008686066, 0.35845935344696045, 0.5428773760795593, 0.7320262789726257, -0.2552684247493744, 0.4393373429775238, 0.8011939525604248, -0.7025629281997681, 0.23040667176246643, 0.2954128384590149, -0.06755106896162033, -0.6804892420768738, 0.7259364128112793, 0.1478232443332672, 0.26367703080177307, 0.7979143261909485, 0.2337888479232788, -0.25500914454460144, -0.5685654878616333, -0.005223921034485102, 0.5535094738006592, -0.7852980494499207, -0.24734795093536377, -1.123741626739502, -0.33928996324539185, -0.5262510180473328, -0.42987287044525146, -0.07548323273658752, -0.39018628001213074, -0.40996211767196655, 0.12419240176677704, 0.2323981672525406, 0.3850618302822113, -0.17327912151813507, 0.2951408922672272, -0.8792094588279724, 0.31438735127449036, 0.0371282733976841, 0.079181008040905, -0.2410692572593689, -0.6877400875091553, -0.21461248397827148, -0.10693290829658508, -0.29491257667541504, -0.6769967675209045, 0.6617778539657593, 0.3647351861000061, 0.7798150777816772, 0.2559609115123749, -0.0637596994638443, 0.7699248194694519, -0.3608091473579407, 0.7244576811790466, 0.39145228266716003, -0.8701532483100891, 0.5399908423423767, -0.3018782138824463, 0.4008410573005676, 0.43825921416282654, 0.513690710067749, -0.4969010651111603, -0.34961068630218506, -0.83916836977005, -1.0236787796020508, 0.4378568232059479, 0.16674259305000305, 0.09686589241027832, -0.3269400894641876, 0.31600749492645264, -0.05325944349169731, 0.02249336987733841, -0.8960121273994446, -0.3872922956943512, -0.29993513226509094, -0.4637164771556854, 0.0809212327003479, -0.3110466003417969, -0.07260694354772568, -0.3062876760959625, 0.6482616662979126, -0.2073424607515335, 0.6996803879737854, 0.7332451939582825, -0.43528369069099426, 0.17488938570022583, 0.05392433702945709, 0.7116742730140686, 0.5631886124610901, -0.32758083939552307, 0.08013887703418732, 0.014164305292069912, -0.5469397902488708, -0.1543077677488327, 0.2626955211162567, 0.0434560626745224, 0.2480773776769638, 0.5986377000808716, 0.698989987373352, 0.36179062724113464, -0.7045617699623108, 0.7858866453170776, -0.289970338344574, -0.3841187357902527, -0.2855590879917145, -0.2645513117313385, 0.0006485918420366943, 0.09347856789827347, 0.34669652581214905, 0.18850751221179962, 0.04561534896492958, -0.30625495314598083, 0.4822901785373688, 0.4421880841255188, -0.6542921662330627, -0.1778218150138855, 0.5753626227378845, -0.04110659286379814, 0.1663905829191208, 0.5512414574623108, 0.026823803782463074, -0.4557148814201355, 0.5641438364982605, 0.6330469846725464, 0.7807939648628235, -0.006903997156769037, 0.028134707361459732, 0.6545841693878174, 0.2631308436393738, 0.10366714745759964, 0.4145597815513611, 0.1852368712425232, -0.8270060420036316, -0.3830166459083557, -0.4145027995109558, -0.029168035835027695, 0.029457636177539825, -0.836606502532959, 0.4324072599411011, -0.5158581733703613, -0.18715308606624603, 0.15291741490364075, -0.02499375119805336, -0.7845169901847839, 0.5000385642051697, 0.2084849327802658, 0.9743286371231079, -0.7583255767822266, 1.0336241722106934, 0.8051480054855347, -0.6776970624923706, -0.8317354917526245, -0.07923000305891037, 0.0025895407889038324, -1.06721830368042, 0.8503013849258423, 0.16495925188064575, 0.06363485753536224, -0.0038589078467339277, -0.4349433183670044, -0.9494203329086304, 1.2084347009658813, 0.08870460838079453, -0.49659591913223267, -0.1578109711408615, 0.019532976672053337, 0.5754485726356506, -0.5076900720596313, 0.3078138828277588, 0.13208988308906555, 0.2575967609882355, 0.12569686770439148, -1.0114666223526, 0.3112300932407379, -0.35820725560188293, 0.1854037344455719, -0.1833968460559845, -0.5808926224708557, 0.8540923595428467, -0.22968722879886627, -0.09353514760732651, 0.2680616080760956, 0.6626315116882324, 0.366487056016922, 0.11619829386472702, 0.35922327637672424, 0.8020408749580383, 0.6515944004058838, -0.11351636052131653, 1.2435564994812012, -0.39342620968818665, 0.3525038957595825, 0.9626016020774841, -0.01970238797366619, 0.7669331431388855, 0.48728325963020325, -0.10063035041093826, 0.7458732724189758, 0.5133621692657471, -0.07853677868843079, 0.7045262455940247, -0.062446463853120804, -0.040918853133916855, -0.1473880410194397, -0.11779306083917618, -0.6768059730529785, 0.39259833097457886, 0.3877997100353241, -0.7475855350494385, -0.06259715557098389, 0.13093338906764984, 0.4573522210121155, 0.0019683672580868006, -0.005472295451909304, 0.7559390068054199, 0.19434399902820587, -0.45711344480514526, 0.9519339799880981, -0.08026857674121857, 0.8886445164680481, -0.7072170376777649, 0.07839521020650864, 0.028758186846971512, 0.3580097258090973, -0.1636354774236679, -0.5884862542152405, 0.3582496643066406, -0.3390754461288452, -0.20308324694633484, -0.07876519858837128, 0.6354620456695557, -0.3462013006210327, -0.5578895807266235, 0.3976876437664032, 0.42117467522621155, 0.0108192665502429, 0.13565267622470856, -1.1314826011657715, 0.3070310354232788, 0.012610891833901405, -0.1559564471244812, 0.44488289952278137, 0.422423779964447, 0.04404797777533531, 0.5443680286407471, 0.5758386254310608, 0.03031725063920021, -0.005109558347612619, 0.07669005542993546, 1.037413239479065, -0.5666863918304443, -0.5645427107810974, -0.7423707246780396, 0.6583755612373352, -0.15436877310276031, -0.2753729522228241, 0.5586044788360596, 0.5854532718658447, 0.7974870204925537, -0.0641622543334961, 0.9101698398590088, -0.20775260031223297, 0.4528106153011322, -0.6197441220283508, 0.6644307374954224, -0.7517216801643372, 0.04078364372253418, -0.5615283846855164, -0.46742451190948486, -0.8113303184509277, 0.9265973567962646, -0.19486267864704132, 0.09357313066720963, 1.046128749847412, 1.1052178144454956, -0.037930019199848175, -0.4568423330783844, 0.3976847529411316, 0.3929307460784912, 0.2636043429374695, 0.4318966269493103, 0.4156043827533722, -0.7256223559379578, 0.5745052695274353, -0.37925076484680176, -0.38432154059410095, -0.17938803136348724, -1.0781997442245483, -0.9282457828521729, -0.737976610660553, -0.7539712190628052, -0.6396222114562988, 0.17777690291404724, 1.0575478076934814, 0.9509339928627014, -0.7528412342071533, -0.07089521735906601, 0.11401577293872833, -0.173181414604187, -0.30779561400413513, -0.22587168216705322, 0.7389269471168518, -0.4017862379550934, -0.4981720447540283, 0.04161281883716583, 0.21235394477844238, 0.11283005774021149, 0.022943533957004547, -0.06932053714990616, -0.5681418776512146, 0.0431608110666275, 0.646546483039856, 0.2171495109796524, -0.864058792591095, -0.29130634665489197, 0.32369720935821533, -0.3388388156890869, 0.368732750415802, 0.5800225138664246, -0.8681416511535645, 0.6421994566917419, 0.49215608835220337, 0.5469128489494324, 0.4342139959335327, -0.2287367880344391, 0.4002429246902466, -0.8241683840751648, 0.3425881564617157, 0.15260757505893707, 0.4837603271007538, 0.47247403860092163, -0.40499651432037354, 0.33107003569602966, 0.333199679851532, -0.5575668215751648, -0.7644872069358826, -0.13320761919021606, -1.3591439723968506, -0.40213435888290405, 1.0911569595336914, -0.24435192346572876, -0.25886765122413635, -0.09640929102897644, -0.36853113770484924, 0.36227738857269287, -0.21553604304790497, 0.554718017578125, 0.5296923518180847, -0.1770220249891281, -0.4494570195674896, -0.26778334379196167, 0.3900671601295471, 0.4502047300338745, -0.6895182132720947, -0.43781882524490356, 0.3527851402759552, 0.5037136673927307, 0.26413336396217346, 0.7966649532318115, -0.5456946492195129, 0.3089284598827362, -0.22851549088954926, 0.3019697070121765, 0.0060053011402487755, 0.1445043385028839, -0.4358474612236023, 0.0764923095703125, 0.01944422908127308, -0.23040923476219177 ]
cross-encoder/nli-deberta-v3-small
cross-encoder
"2021-12-27T22:27:07Z"
12,455
5
transformers
[ "transformers", "pytorch", "deberta-v2", "text-classification", "microsoft/deberta-v3-small", "zero-shot-classification", "en", "dataset:multi_nli", "dataset:snli", "license:apache-2.0", "endpoints_compatible", "has_space", "region:us" ]
zero-shot-classification
"2022-03-02T23:29:05Z"
--- language: en pipeline_tag: zero-shot-classification tags: - microsoft/deberta-v3-small datasets: - multi_nli - snli metrics: - accuracy license: apache-2.0 --- # Cross-Encoder for Natural Language Inference This model was trained using [SentenceTransformers](https://sbert.net) [Cross-Encoder](https://www.sbert.net/examples/applications/cross-encoder/README.html) class. This model is based on [microsoft/deberta-v3-small](https://huggingface.co/microsoft/deberta-v3-small) ## Training Data The model was trained on the [SNLI](https://nlp.stanford.edu/projects/snli/) and [MultiNLI](https://cims.nyu.edu/~sbowman/multinli/) datasets. For a given sentence pair, it will output three scores corresponding to the labels: contradiction, entailment, neutral. ## Performance - Accuracy on SNLI-test dataset: 91.65 - Accuracy on MNLI mismatched set: 87.55 For futher evaluation results, see [SBERT.net - Pretrained Cross-Encoder](https://www.sbert.net/docs/pretrained_cross-encoders.html#nli). ## Usage Pre-trained models can be used like this: ```python from sentence_transformers import CrossEncoder model = CrossEncoder('cross-encoder/nli-deberta-v3-small') scores = model.predict([('A man is eating pizza', 'A man eats something'), ('A black race car starts up in front of a crowd of people.', 'A man is driving down a lonely road.')]) #Convert scores to labels label_mapping = ['contradiction', 'entailment', 'neutral'] labels = [label_mapping[score_max] for score_max in scores.argmax(axis=1)] ``` ## Usage with Transformers AutoModel You can use the model also directly with Transformers library (without SentenceTransformers library): ```python from transformers import AutoTokenizer, AutoModelForSequenceClassification import torch model = AutoModelForSequenceClassification.from_pretrained('cross-encoder/nli-deberta-v3-small') tokenizer = AutoTokenizer.from_pretrained('cross-encoder/nli-deberta-v3-small') features = tokenizer(['A man is eating pizza', 'A black race car starts up in front of a crowd of people.'], ['A man eats something', 'A man is driving down a lonely road.'], padding=True, truncation=True, return_tensors="pt") model.eval() with torch.no_grad(): scores = model(**features).logits label_mapping = ['contradiction', 'entailment', 'neutral'] labels = [label_mapping[score_max] for score_max in scores.argmax(dim=1)] print(labels) ``` ## Zero-Shot Classification This model can also be used for zero-shot-classification: ```python from transformers import pipeline classifier = pipeline("zero-shot-classification", model='cross-encoder/nli-deberta-v3-small') sent = "Apple just announced the newest iPhone X" candidate_labels = ["technology", "sports", "politics"] res = classifier(sent, candidate_labels) print(res) ```
[ -0.20765963196754456, -0.7655035257339478, 0.3209395408630371, 0.2610292434692383, -0.006495156325399876, -0.10739109665155411, -0.06726404279470444, -0.3381693363189697, 0.17531199753284454, 0.4341539442539215, -0.519497811794281, -0.4956948161125183, -0.571556031703949, 0.19510558247566223, -0.5122841000556946, 1.048133373260498, -0.10434211790561676, 0.046698033809661865, -0.0967317670583725, -0.12280593067407608, -0.2929571568965912, -0.4508058428764343, -0.3934938609600067, -0.5681406259536743, 0.4181946814060211, 0.2139279991388321, 0.6143998503684998, 0.34734031558036804, 0.1675296276807785, 0.34355151653289795, 0.02287699654698372, -0.17180266976356506, -0.17839421331882477, -0.11775581538677216, 0.015596635639667511, -0.578059196472168, -0.10410989820957184, 0.23489327728748322, 0.3025325834751129, 0.38094642758369446, 0.024228530004620552, 0.25977012515068054, -0.10175272822380066, 0.23037999868392944, -0.65196692943573, 0.0546591654419899, -0.5623417496681213, 0.21422632038593292, 0.07562531530857086, -0.04903903976082802, -0.44333094358444214, -0.34466755390167236, 0.07641631364822388, -0.44111430644989014, 0.27537640929222107, -0.01878676563501358, 1.2799619436264038, 0.41838714480400085, -0.3023972511291504, -0.39266034960746765, -0.5580729842185974, 0.8923503160476685, -1.0006444454193115, 0.2522410750389099, 0.24044524133205414, 0.03966052457690239, 0.09828539192676544, -0.7203239798545837, -0.9617635607719421, -0.15228582918643951, -0.24302518367767334, 0.3709999918937683, -0.4142584800720215, -0.11348981410264969, 0.41611960530281067, 0.3333839476108551, -0.8022071123123169, 0.08278772979974747, -0.45896628499031067, -0.09742233157157898, 0.706246018409729, 0.12037181854248047, 0.24124886095523834, -0.41222038865089417, -0.3539208173751831, -0.1470254808664322, -0.25882160663604736, 0.10777557641267776, 0.27511945366859436, 0.030079450458288193, -0.23138150572776794, 0.8343366384506226, -0.33203989267349243, 0.8330682516098022, 0.2183104008436203, -0.034147653728723526, 0.7400209903717041, -0.28500401973724365, -0.4908372759819031, 0.34579068422317505, 1.0364681482315063, 0.4070810377597809, 0.3478200137615204, -0.0970810204744339, -0.06009826809167862, 0.413812518119812, -0.1165684163570404, -0.7657634615898132, -0.2612127363681793, 0.33957502245903015, -0.3313315510749817, -0.3622426986694336, 0.013304621912539005, -0.7944381237030029, -0.01926448568701744, -0.18276308476924896, 0.8057510852813721, -0.5534428358078003, 0.18041008710861206, 0.33808633685112, -0.25908470153808594, 0.38751664757728577, -0.1728747934103012, -0.8188152313232422, -0.0027764125261455774, 0.3137994706630707, 0.7947930097579956, 0.19985802471637726, -0.4965706467628479, -0.4243301451206207, -0.009479621425271034, 0.04966074600815773, 0.41421592235565186, -0.4242583215236664, 0.010373290628194809, -0.14558923244476318, 0.09201459586620331, -0.34978675842285156, -0.3380362391471863, 0.6289138197898865, -0.304314523935318, 0.5615786910057068, 0.2888420522212982, -0.7770470380783081, -0.3534218668937683, 0.28429049253463745, -0.4522174894809723, 1.1219727993011475, 0.0713653415441513, -0.8899794816970825, 0.168662890791893, -0.5840868353843689, -0.4001012146472931, -0.31537777185440063, -0.0493246465921402, -0.5532744526863098, 0.05986776202917099, 0.4285992383956909, 0.4545832574367523, -0.2014099806547165, 0.44924628734588623, -0.2814514935016632, -0.3950934410095215, 0.323752224445343, -0.5969799160957336, 1.1686636209487915, 0.1321282833814621, -0.5751784443855286, 0.13629689812660217, -0.815190851688385, 0.09008760005235672, 0.1418074071407318, -0.23096850514411926, -0.10042659193277359, -0.30286991596221924, 0.1452246457338333, 0.3532465994358063, 0.04039758816361427, -0.7658306360244751, 0.03200848773121834, -0.4940609335899353, 0.6291974782943726, 0.37389644980430603, -0.07075277715921402, 0.29651519656181335, -0.20739558339118958, 0.26949262619018555, 0.07170921564102173, 0.08954969793558121, -0.035294584929943085, -0.6428741216659546, -1.000352144241333, -0.03235888481140137, 0.5051848292350769, 0.9088291525840759, -0.8453264832496643, 0.9212068319320679, -0.24335172772407532, -0.6759225130081177, -0.720431387424469, -0.21174655854701996, 0.18293724954128265, 0.5282780528068542, 0.6431623101234436, 0.011103332042694092, -0.7164525985717773, -0.768372118473053, -0.3134278357028961, -0.033664003014564514, -0.14679761230945587, -0.04593397304415703, 0.8262609839439392, -0.4346383213996887, 1.0892924070358276, -0.5281846523284912, -0.2479579746723175, -0.4703652262687683, 0.342716783285141, 0.4824238717556, 0.6900519132614136, 0.4605710804462433, -0.5897179841995239, -0.39543360471725464, -0.315924733877182, -0.8380029201507568, -0.1326351910829544, -0.31481602787971497, -0.01052887737751007, 0.14547735452651978, 0.31287750601768494, -0.5774970650672913, 0.6458964347839355, 0.49157068133354187, -0.46377629041671753, 0.40442946553230286, -0.13722172379493713, 0.002725255908444524, -1.0817334651947021, -0.1039407029747963, 0.1724824160337448, -0.09112980216741562, -0.7470712065696716, -0.23749645054340363, -0.13950087130069733, -0.013615129515528679, -0.4392765760421753, 0.51262366771698, -0.23605403304100037, 0.12989351153373718, -0.04071482643485069, 0.2355811446905136, 0.21747542917728424, 0.5922830700874329, 0.24514435231685638, 0.4605830907821655, 0.7614001631736755, -0.5100046992301941, 0.46928802132606506, 0.366252601146698, -0.4187470078468323, 0.2824822962284088, -0.8482775688171387, -0.07407335191965103, -0.16610364615917206, 0.22678373754024506, -0.8548932075500488, -0.10280279815196991, 0.4405985176563263, -0.6156172156333923, 0.0038891092408448458, 0.2004474699497223, -0.4319888949394226, -0.47445788979530334, -0.09125766158103943, 0.3448050320148468, 0.5190864205360413, -0.5139867663383484, 0.7132024765014648, 0.1333136409521103, 0.3384453058242798, -0.581717848777771, -1.1548463106155396, -0.010460970923304558, -0.18024848401546478, -0.4789261817932129, 0.3057086169719696, 0.050282254815101624, 0.009733131155371666, 0.10964073985815048, 0.05239081010222435, -0.22091813385486603, -0.03464552015066147, 0.20747746527194977, 0.28498783707618713, -0.21028214693069458, 0.006300636567175388, -0.08657106012105942, -0.13753831386566162, 0.1316651701927185, -0.26624900102615356, 0.5601234436035156, -0.25452935695648193, -0.2453426569700241, -0.6303080916404724, 0.252076655626297, 0.3195984661579132, -0.19967541098594666, 0.7251632213592529, 0.9779308438301086, -0.39849528670310974, 0.053440194576978683, -0.46983736753463745, -0.20638486742973328, -0.40296831727027893, 0.42452001571655273, -0.336931049823761, -0.6699202656745911, 0.3526282012462616, 0.3355056643486023, -0.1761844903230667, 0.6502317786216736, 0.4475724995136261, 0.04641524702310562, 0.9375318884849548, 0.3854287266731262, -0.28604376316070557, 0.30873164534568787, -0.5970202088356018, 0.2879961431026459, -0.6785719394683838, -0.2339765429496765, -0.5250023007392883, -0.32936474680900574, -0.6233052015304565, -0.3444002866744995, 0.07259576767683029, 0.17769275605678558, -0.3046591877937317, 0.5463851690292358, -0.5412640571594238, 0.43259841203689575, 0.7448276281356812, 0.09117696434259415, 0.13058410584926605, 0.02373475208878517, -0.05011298507452011, 0.01589578203856945, -0.8525808453559875, -0.5013834834098816, 0.8390204906463623, 0.3248937427997589, 0.7935154438018799, -0.1669604331254959, 0.863309919834137, -0.03036666102707386, 0.22605064511299133, -0.6980452537536621, 0.4523937404155731, -0.2708447575569153, -0.7179477214813232, -0.22004468739032745, -0.4852219820022583, -0.8941449522972107, 0.2191230058670044, -0.35938218235969543, -0.8147873282432556, 0.3299187123775482, -0.1532086282968521, -0.5011378526687622, 0.33251070976257324, -0.7424134016036987, 1.2366169691085815, -0.35837939381599426, -0.21848970651626587, 0.11498131603002548, -0.739263117313385, 0.3017898499965668, 0.0904548168182373, -0.006992171984165907, -0.20902132987976074, 0.2914090156555176, 0.8147560954093933, -0.14625248312950134, 0.9637731909751892, -0.11626741290092468, 0.10851000994443893, 0.4352591931819916, -0.2657378911972046, 0.15313595533370972, 0.09530554711818695, -0.31809473037719727, 0.41862013936042786, -0.05086548626422882, -0.309891015291214, -0.6137144565582275, 0.5224989652633667, -0.9103420972824097, -0.3111211955547333, -0.5792394280433655, -0.3984915614128113, 0.1836041510105133, 0.18195122480392456, 0.6977733373641968, 0.49709850549697876, -0.03518272191286087, 0.09487979114055634, 0.35162508487701416, -0.33809608221054077, 0.6645883321762085, 0.19452634453773499, -0.11193761229515076, -0.45379412174224854, 0.8014774322509766, -0.0016940615605562925, 0.11945371329784393, 0.46684563159942627, 0.22703444957733154, -0.4982057213783264, -0.21365760266780853, -0.41560912132263184, 0.23299825191497803, -0.6235536932945251, -0.22688083350658417, -0.7381665110588074, -0.5568516254425049, -0.5790239572525024, -0.07111509144306183, -0.1947232186794281, -0.3750461935997009, -0.5494562387466431, -0.10581930726766586, 0.3529500663280487, 0.4882256090641022, -0.042503565549850464, 0.34718209505081177, -0.7696301341056824, 0.42195427417755127, 0.1681419312953949, 0.09694120287895203, -0.15306268632411957, -0.7214000225067139, -0.1347043663263321, 0.07827328890562057, -0.4189831018447876, -0.9764971733093262, 0.6345146894454956, 0.2722450792789459, 0.6050163507461548, 0.1370510458946228, 0.1951071172952652, 0.653523862361908, -0.3338691294193268, 0.7401925921440125, 0.30308181047439575, -1.2346925735473633, 0.6183266043663025, 0.17533032596111298, 0.4245956540107727, 0.48636096715927124, 0.4954889118671417, -0.672342836856842, -0.46441179513931274, -0.5776987671852112, -0.86688631772995, 0.7076737880706787, 0.482455849647522, 0.09274124354124069, -0.13422037661075592, 0.1752050518989563, 0.039112724363803864, 0.15355679392814636, -1.3112610578536987, -0.45782411098480225, -0.6104691028594971, -0.5866864919662476, -0.3016476333141327, 0.010182194411754608, 0.0959409847855568, -0.5682805180549622, 0.8843860030174255, -0.02832408994436264, 0.3439936935901642, 0.6106032729148865, -0.26322782039642334, 0.33370494842529297, 0.33704474568367004, 0.5754709839820862, 0.27097174525260925, -0.24858953058719635, 0.07786659151315689, 0.37623119354248047, -0.27476832270622253, 0.26536351442337036, 0.30085280537605286, -0.3829299509525299, 0.24073170125484467, 0.4947771430015564, 1.2903670072555542, -0.047950029373168945, -0.47716063261032104, 0.526829719543457, 0.02866724319756031, -0.22982189059257507, -0.447626531124115, 0.036256447434425354, -0.07573111355304718, 0.3460909426212311, 0.23849447071552277, 0.1927613765001297, 0.09014400094747543, -0.564003586769104, 0.3030572533607483, 0.12132665514945984, -0.5697473883628845, -0.20444940030574799, 0.78510582447052, 0.05928885191679001, -0.38661035895347595, 0.6673747897148132, -0.2759076654911041, -0.6633319854736328, 0.6504928469657898, 0.5935267210006714, 1.0221260786056519, 0.016491975635290146, 0.3353961706161499, 0.6588361263275146, 0.39889588952064514, -0.08437523990869522, 0.15562480688095093, 0.09090833365917206, -0.9525305032730103, -0.3524382710456848, -0.673431396484375, -0.05167103186249733, 0.14460106194019318, -0.6461590528488159, 0.19163958728313446, -0.13906462490558624, -0.0566219761967659, 0.08548048883676529, -0.2390575408935547, -0.6630570888519287, 0.3008803129196167, 0.25652962923049927, 0.873742401599884, -1.054587721824646, 0.9360266327857971, 0.4851064682006836, -0.6798859238624573, -0.802324652671814, 0.1533590853214264, -0.2506836950778961, -0.6607149839401245, 0.7587032914161682, 0.5372694730758667, 0.060443099588155746, 0.1153022050857544, -0.3689453601837158, -0.688456118106842, 0.9994881749153137, 0.15359258651733398, -0.549302875995636, -0.113916777074337, 0.32792946696281433, 0.6266013383865356, -0.4268358647823334, 0.7062896490097046, 0.7246114611625671, 0.45704418420791626, -0.05650857090950012, -0.6818548440933228, 0.09820917248725891, -0.1363331824541092, -0.047429364174604416, -0.1340181529521942, -0.38446110486984253, 0.9024152159690857, -0.23190969228744507, 0.031867582350969315, 0.1545172482728958, 0.7016800045967102, 0.2677188813686371, 0.4732101857662201, 0.5048957467079163, 0.7909635901451111, 0.6080604791641235, -0.24549245834350586, 0.8708862066268921, -0.21675120294094086, 0.7095194458961487, 1.0898566246032715, -0.21385706961154938, 0.8815375566482544, 0.46278664469718933, -0.08006498217582703, 0.7113332748413086, 0.6150333285331726, -0.4145866334438324, 0.4951184391975403, 0.2899008095264435, -0.04552917927503586, -0.2375783771276474, 0.18036024272441864, -0.3294318914413452, 0.8260811567306519, 0.07278158515691757, -0.4940478205680847, -0.20662419497966766, 0.2038821429014206, -0.185537651181221, -0.02691148966550827, -0.11174796521663666, 0.5203323364257812, -0.10816735774278641, -0.6558127999305725, 0.7908155918121338, 0.02649356797337532, 0.9492237567901611, -0.3697090744972229, 0.06135741248726845, 0.0053890664130449295, 0.330084890127182, -0.24893350899219513, -0.8754863142967224, 0.334677517414093, -0.022184712812304497, -0.12126313894987106, -0.012581812217831612, 0.44615477323532104, -0.7269103527069092, -0.8031360507011414, 0.48498404026031494, 0.28940343856811523, 0.21634580194950104, 0.01667599380016327, -0.9686444997787476, -0.0398450568318367, 0.19996756315231323, -0.22330451011657715, -0.10084739327430725, 0.4019363522529602, 0.30847740173339844, 0.4789031744003296, 0.41421017050743103, -0.17648102343082428, 0.300915002822876, 0.20146949589252472, 0.5909761190414429, -0.8146286010742188, -0.30223363637924194, -0.9891526699066162, 0.5963626503944397, -0.1667548269033432, -0.5244473814964294, 0.8677550554275513, 0.7684983611106873, 0.9408131241798401, -0.31826502084732056, 0.6794356107711792, -0.26145139336586, 0.2741791903972626, -0.6428706645965576, 0.6204884052276611, -0.5889241099357605, 0.035703446716070175, -0.15274041891098022, -0.7360866069793701, -0.4506121873855591, 0.8726112246513367, -0.3571217656135559, 0.10002882778644562, 0.6407905220985413, 0.9299140572547913, -0.04173927754163742, 0.09002568572759628, 0.13240352272987366, 0.31043046712875366, 0.10577846318483353, 0.747677206993103, 0.7644798755645752, -0.9692502021789551, 0.7134189009666443, -0.5157185196876526, -0.034389205276966095, -0.06839090585708618, -0.6946027874946594, -0.9412238597869873, -0.4368536174297333, -0.5577301979064941, -0.4011301100254059, -0.11938365548849106, 0.7926122546195984, 0.67730712890625, -1.038245677947998, -0.1801588237285614, -0.258810430765152, 0.1732732206583023, -0.2807728052139282, -0.33956143260002136, 0.2290436178445816, -0.24851958453655243, -0.8861129283905029, 0.2991005778312683, -0.06294216215610504, 0.11525757610797882, -0.10472571849822998, -0.0764605700969696, -0.5903738737106323, 0.019844582304358482, 0.46959802508354187, 0.16305874288082123, -0.9098609089851379, -0.3414711356163025, -0.0014738858444616199, -0.2282155603170395, 0.18140947818756104, 0.4193249046802521, -0.870710015296936, 0.17549394071102142, 0.5197202563285828, 0.5707963109016418, 0.6753997206687927, -0.18549679219722748, 0.3314574956893921, -0.6732851266860962, 0.15283626317977905, 0.17118388414382935, 0.44083070755004883, 0.327043354511261, -0.21001745760440826, 0.5386210083961487, 0.3930675685405731, -0.5704331994056702, -0.6177230477333069, 0.06755918264389038, -0.9426171183586121, -0.2962409257888794, 1.0339393615722656, -0.11340321600437164, -0.4313444197177887, -0.07638165354728699, -0.1763223558664322, 0.564673125743866, -0.25345560908317566, 0.6017362475395203, 0.4318683445453644, -0.1969880312681198, -0.1792246252298355, -0.48213744163513184, 0.3036588430404663, 0.5406022071838379, -0.7733670473098755, -0.21651001274585724, 0.17882183194160461, 0.3987964391708374, 0.4164971709251404, 0.38671550154685974, 0.1376706063747406, -0.02431688830256462, 0.17435036599636078, 0.27517274022102356, 0.08351826667785645, -0.13087569177150726, -0.48795202374458313, 0.11968771368265152, -0.5668056011199951, -0.5920016169548035 ]