modelId
stringlengths 4
122
| author
stringlengths 2
42
⌀ | last_modified
timestamp[us, tz=UTC] | downloads
int64 0
74.7M
| likes
int64 0
9.67k
| library_name
stringlengths 2
84
⌀ | tags
list | pipeline_tag
stringlengths 5
30
⌀ | createdAt
timestamp[us, tz=UTC] | card
stringlengths 1
901k
| embedding
list |
---|---|---|---|---|---|---|---|---|---|---|
Wellcome/WellcomeBertMesh
|
Wellcome
| 2023-04-26T09:53:48Z | 8,434 | 4 |
transformers
|
[
"transformers",
"pytorch",
"bert",
"feature-extraction",
"text-classification",
"custom_code",
"license:apache-2.0",
"endpoints_compatible",
"has_space",
"region:us"
] |
text-classification
| 2022-03-02T23:29:05Z |
---
license: apache-2.0
pipeline_tag: text-classification
---
# WellcomeBertMesh
WellcomeBertMesh is build from the data science team at the WellcomeTrust to tag biomedical grants with Medical Subject Headings ([Mesh](https://www.nlm.nih.gov/mesh/meshhome.html)). Even though developed with the intention to be used towards research grants, it should be applicable to any type of biomedical text close to the domain it was trained which is abstracts from biomedical publications.
# Model description
The model is inspired from [BertMesh](https://pubmed.ncbi.nlm.nih.gov/32976559/) which is trained on the full text of biomedical publications and uses BioBert as its pretrained model.
WellcomeBertMesh is utilising the latest state of the art model in the biomedical domain which is [PubMedBert](https://huggingface.co/microsoft/BiomedNLP-PubMedBERT-base-uncased-abstract) from Microsoft and attach a Multilabel attention head which essentially allows the model to pay attention to different tokens per label to decide whether it applies.
We train the model using data from the [BioASQ](http://bioasq.org) competition which consists of abstracts from PubMed publications. We use 2016-2019 data for training and 2020-2021 for testing which gives us ~2.5M publications to train and 220K to test. This is out of a total of 14M publications. It takes 4 days to train WellcomeBertMesh on 8 Nvidia P100 GPUs.
The model achieves 63% micro f1 with a 0.5 threshold for all labels.
The code for developing the model is open source and can be found in https://github.com/wellcometrust/grants_tagger
# How to use
⚠️ You need transformers 4.17+ for the example to work due to its recent support for custom models.
You can use the model straight from the hub but because it contains a custom forward function due to the multilabel attention head you have to pass `trust_remote_code=True`. You can get access to the probabilities for all labels by omitting `return_labels=True`.
```
from transformers import AutoModel, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained(
"Wellcome/WellcomeBertMesh"
)
model = AutoModel.from_pretrained(
"Wellcome/WellcomeBertMesh",
trust_remote_code=True
)
text = "This grant is about malaria and not about HIV."
inputs = tokenizer([text], padding="max_length")
labels = model(**inputs, return_labels=True)
print(labels)
```
You can inspect the model code if you navigate to the files and see `model.py`.
|
[
-0.21172858774662018,
-0.4333261549472809,
0.36606720089912415,
0.2273738831281662,
-0.07710573822259903,
-0.2545247972011566,
0.17772649228572845,
-0.4636668860912323,
0.17056088149547577,
0.40564823150634766,
-0.5525093674659729,
-0.6706691980361938,
-0.8774045705795288,
0.20527510344982147,
-0.07092899829149246,
1.2260832786560059,
0.05682830885052681,
0.01392491813749075,
-0.03996625170111656,
0.01053810864686966,
-0.13896189630031586,
-0.5639623403549194,
-0.5278053879737854,
-0.6649630069732666,
0.3529012203216553,
0.1012214869260788,
0.37149375677108765,
0.30387964844703674,
0.8075673580169678,
0.24167315661907196,
-0.2919771373271942,
-0.05159182474017143,
-0.5705448985099792,
-0.2623208165168762,
-0.49645617604255676,
-0.06461257487535477,
-0.5826969742774963,
0.17763197422027588,
0.3105558454990387,
0.489545077085495,
-0.1461457461118698,
0.4088119864463806,
0.2959385812282562,
0.21584013104438782,
-0.5573434233665466,
0.17179323732852936,
-0.22970229387283325,
0.02043178491294384,
-0.19183626770973206,
-0.054269082844257355,
-0.23448559641838074,
-0.19911973178386688,
0.5203837752342224,
-0.6798050403594971,
0.2960483133792877,
0.19029739499092102,
1.0845813751220703,
0.3497333526611328,
-0.22792169451713562,
-0.24467143416404724,
-0.0725262388586998,
0.8326522707939148,
-1.1024881601333618,
0.37353962659835815,
0.7470396161079407,
-0.06542381644248962,
-0.38289350271224976,
-1.171444296836853,
-0.2522555887699127,
-0.21555201709270477,
-0.18225987255573273,
0.12060176581144333,
-0.3319999575614929,
0.22649922966957092,
0.37588998675346375,
0.21007736027240753,
-0.7722691297531128,
-0.2742416262626648,
-0.4401472210884094,
-0.4782746732234955,
0.5005379915237427,
0.028037719428539276,
-0.02143753319978714,
-0.5581045746803284,
-0.7271315455436707,
-0.07977474480867386,
-0.47852060198783875,
0.14226393401622772,
-0.1882847100496292,
0.1701829880475998,
-0.45064735412597656,
0.5889188051223755,
-0.18070070445537567,
0.8898747563362122,
0.17596803605556488,
-0.2074832022190094,
0.44127389788627625,
-0.6506868004798889,
-0.5833889245986938,
0.22082945704460144,
1.0249296426773071,
-0.09693628549575806,
0.00870597641915083,
-0.07283155620098114,
-0.23353569209575653,
-0.16548790037631989,
0.0703977420926094,
-1.0997670888900757,
-0.4466676712036133,
0.3235548436641693,
-0.5081617832183838,
-0.03994018957018852,
-0.09654425084590912,
-0.30825141072273254,
-0.4436865448951721,
-0.16998226940631866,
0.8078949451446533,
-0.4484249949455261,
0.08163464814424515,
0.3404006063938141,
-0.20835474133491516,
-0.18124370276927948,
0.059603795409202576,
-0.5966317057609558,
-0.11860569566488266,
0.28472983837127686,
0.7845743894577026,
-0.1322784274816513,
-0.17240117490291595,
-0.39340126514434814,
0.19938570261001587,
0.09972623735666275,
0.6674699187278748,
-0.5233661532402039,
-0.44573867321014404,
-0.422293096780777,
0.32223549485206604,
-0.13622719049453735,
-0.3727273643016815,
0.41246429085731506,
-0.5494464039802551,
-0.03641076385974884,
-0.1672368049621582,
-0.7369111180305481,
-0.015320893377065659,
0.4771573841571808,
-0.5011079907417297,
0.6859236359596252,
0.14676007628440857,
-0.9271189570426941,
0.22464802861213684,
-0.7587464451789856,
-0.2985759973526001,
0.06829551607370377,
0.09448356926441193,
-0.7516599893569946,
-0.21648317575454712,
0.14526352286338806,
0.7349381446838379,
-0.23221828043460846,
0.5936602354049683,
-0.41228464245796204,
-0.1290026158094406,
0.279680073261261,
-0.07134798914194107,
0.8479350805282593,
0.21129152178764343,
-0.24956335127353668,
-0.04688388854265213,
-0.780162513256073,
-0.05901239812374115,
-0.25680267810821533,
-0.3942747414112091,
-0.30831411480903625,
-0.3638475835323334,
0.129176065325737,
0.09503503143787384,
0.14793601632118225,
-0.7005771994590759,
0.31409087777137756,
-0.48749104142189026,
0.3574844002723694,
0.5770937204360962,
0.295917272567749,
0.27226918935775757,
0.043312959372997284,
0.5539010167121887,
-0.11166924238204956,
0.20544274151325226,
0.049951739609241486,
-0.4505220055580139,
-0.1708417683839798,
-0.7250943779945374,
0.858043372631073,
0.2556523382663727,
-0.47448399662971497,
0.30726397037506104,
0.24357779324054718,
-0.4351451098918915,
-0.5681005120277405,
-0.050914231687784195,
0.37486281991004944,
0.5124794840812683,
0.5450118780136108,
-0.5551102161407471,
-0.4405730366706848,
-0.9378841519355774,
-0.020040975883603096,
0.23943907022476196,
0.2680111229419708,
-0.06683002412319183,
0.9123095273971558,
-0.41555553674697876,
0.9817710518836975,
-0.7149185538291931,
-0.504615306854248,
-0.07867878675460815,
0.3855118751525879,
0.5835890769958496,
0.6674656271934509,
0.4229864180088043,
-0.6385259628295898,
-0.29037830233573914,
-0.32105422019958496,
-0.604444146156311,
-0.08858365565538406,
0.08120405673980713,
-0.27422741055488586,
-0.320900559425354,
0.30576056241989136,
-0.5813760757446289,
0.6356849074363708,
0.6818475723266602,
-0.7013300657272339,
0.4333533048629761,
-0.11802739650011063,
0.08260686695575714,
-1.1994590759277344,
0.28512081503868103,
0.27729666233062744,
-0.3239719569683075,
-0.3829188644886017,
-0.07402057945728302,
-0.025340477004647255,
-0.019838223233819008,
-0.4199792146682739,
0.7675150632858276,
-0.486686646938324,
0.4315234422683716,
-0.32296815514564514,
-0.28003695607185364,
0.129211887717247,
0.1743159145116806,
0.04192312806844711,
0.6891448497772217,
0.7084641456604004,
-0.7223250865936279,
0.20581945776939392,
0.4806627929210663,
-0.31965336203575134,
0.3680165708065033,
-0.9222970008850098,
-0.2173318713903427,
-0.0179267767816782,
0.3621101379394531,
-0.972280740737915,
-0.38931646943092346,
0.4337747097015381,
-0.4578397274017334,
0.4199429452419281,
0.0332554467022419,
-0.45372506976127625,
-0.5466077327728271,
-0.1113230288028717,
0.4039941728115082,
0.31571343541145325,
-0.4948817193508148,
0.5008721351623535,
0.4958631694316864,
-0.18370884656906128,
-0.6036122441291809,
-0.7805564999580383,
-0.17551586031913757,
0.1079861968755722,
-0.23709440231323242,
0.4635676443576813,
0.14587397873401642,
0.35064589977264404,
0.17512093484401703,
0.0017197473207488656,
-0.19634954631328583,
0.025410164147615433,
0.2405315339565277,
0.178200826048851,
0.13405323028564453,
0.3648706078529358,
0.09804649651050568,
-0.282308429479599,
0.046532586216926575,
-0.43559491634368896,
0.336894690990448,
0.1399196833372116,
-0.25815531611442566,
-0.6657036542892456,
-0.005801523104310036,
0.025782400742173195,
-0.6042777895927429,
0.7600782513618469,
0.6631542444229126,
-0.5408088564872742,
-0.05516548082232475,
-0.39140066504478455,
-0.4275720417499542,
-0.4463438391685486,
0.6126204133033752,
-0.17287856340408325,
-0.8129034042358398,
0.2109701931476593,
-0.2132795751094818,
0.13343888521194458,
0.5518633127212524,
0.6638892292976379,
-0.14974619448184967,
0.6113840937614441,
0.7920451760292053,
0.010151471942663193,
0.13943083584308624,
-0.6212741136550903,
0.16407892107963562,
-0.8331786394119263,
-0.3092820942401886,
-0.6232764720916748,
-0.23408767580986023,
-0.29432421922683716,
-0.40271106362342834,
0.4949161112308502,
0.1217217817902565,
-0.33205124735832214,
0.3979845941066742,
-0.8319421410560608,
0.22380095720291138,
0.6094871163368225,
0.21740466356277466,
0.22992269694805145,
0.06699536740779877,
0.09433957934379578,
-0.046379465609788895,
-1.020313024520874,
-0.5163593888282776,
1.1276675462722778,
0.47882768511772156,
1.1260327100753784,
-0.03706013411283493,
1.0731053352355957,
0.27111271023750305,
0.8249101042747498,
-0.3818412721157074,
0.1430104672908783,
-0.052962712943553925,
-1.1394191980361938,
-0.229400172829628,
-0.3096756041049957,
-1.0864025354385376,
0.0426907055079937,
-0.4286873936653137,
-0.734459400177002,
0.5557592511177063,
0.4802795350551605,
-0.6520318984985352,
0.03760112449526787,
-0.5065678954124451,
0.9713021516799927,
-0.0386003740131855,
-0.4422468841075897,
-0.06779426336288452,
-0.6173030734062195,
0.2040434330701828,
-0.3488117754459381,
0.18598422408103943,
-0.09044339507818222,
0.30906879901885986,
1.090513825416565,
-0.26903343200683594,
1.065497875213623,
-0.15318360924720764,
0.08939452469348907,
0.4908194839954376,
-0.3509075343608856,
0.2650831341743469,
0.14737948775291443,
-0.2813677489757538,
0.28403592109680176,
0.3319268226623535,
-0.3250773251056671,
0.10471319407224655,
0.4435485005378723,
-0.7451546788215637,
-0.2406632900238037,
-0.7637376189231873,
-0.5660553574562073,
-0.06848212331533432,
0.33573296666145325,
0.3762439489364624,
0.5900076627731323,
-0.1888997107744217,
0.006733299233019352,
0.7835412621498108,
-0.47462525963783264,
0.22543849050998688,
0.25812751054763794,
-0.053735654801130295,
-0.47610142827033997,
0.73738694190979,
0.08634433150291443,
0.10749907791614532,
0.20621579885482788,
0.24579942226409912,
-0.5444009900093079,
-0.3330386281013489,
-0.28277504444122314,
0.396242618560791,
-0.4865265488624573,
-0.6238765120506287,
-0.8086578845977783,
-0.20161597430706024,
-0.7138286232948303,
0.11556675285100937,
-0.23909704387187958,
-0.2317391335964203,
-0.361051082611084,
0.042543355375528336,
0.29334667325019836,
0.7712622880935669,
-0.37106260657310486,
0.5714552402496338,
-0.7785298824310303,
0.3975164592266083,
0.10088551789522171,
0.2982898950576782,
0.13460592925548553,
-0.7191792130470276,
-0.38568636775016785,
0.0022071932908147573,
-0.8117685317993164,
-1.064850926399231,
0.34801310300827026,
0.11207699030637741,
0.6887430548667908,
0.20154602825641632,
0.016583584249019623,
0.5176458358764648,
-0.4215686619281769,
0.6145105957984924,
0.37435007095336914,
-0.775364100933075,
0.3897487223148346,
-0.11170469969511032,
0.5542080998420715,
0.5590217709541321,
0.6210731863975525,
-0.17369069159030914,
-0.4723043739795685,
-0.5480931401252747,
-0.7958968281745911,
0.7883007526397705,
0.3565201461315155,
-0.050839729607105255,
0.04635777696967125,
0.3495083153247833,
0.08353959023952484,
0.3125608265399933,
-0.8130671381950378,
-0.2706356346607208,
-0.21587301790714264,
-0.3521686792373657,
-0.07227178663015366,
-0.2595989406108856,
-0.2492484152317047,
-0.5571510195732117,
1.0593448877334595,
0.07321606576442719,
0.32367122173309326,
0.556064784526825,
-0.010163858532905579,
0.20150700211524963,
0.43367862701416016,
0.34774050116539,
0.7634780406951904,
-0.2768380343914032,
-0.04516216367483139,
0.008955566212534904,
-0.4942804276943207,
0.04674047604203224,
0.7283662557601929,
-0.05968712642788887,
0.13011051714420319,
0.466340571641922,
0.7469037771224976,
0.13526704907417297,
-0.24828273057937622,
0.37538692355155945,
0.14772503077983856,
-0.4734362065792084,
0.07351773232221603,
-0.17328046262264252,
0.4611809551715851,
0.5110978484153748,
0.3112873435020447,
-0.0855804905295372,
0.49384790658950806,
-0.25486817955970764,
0.3698830008506775,
0.47832468152046204,
-0.3028096854686737,
-0.19059348106384277,
0.9308849573135376,
0.22978872060775757,
0.03126660734415054,
0.45202845335006714,
-0.3415118157863617,
-0.5522010326385498,
0.775799036026001,
0.7793850302696228,
0.6068015694618225,
-0.23177678883075714,
0.2335047572851181,
0.6464431881904602,
0.3064095973968506,
-0.1294204592704773,
0.25247785449028015,
0.08550965785980225,
-0.44861212372779846,
-0.459023118019104,
-1.109137773513794,
-0.2040514498949051,
0.14085979759693146,
-0.3456699252128601,
0.03945326432585716,
-0.3651673197746277,
-0.8824086785316467,
0.32920223474502563,
-0.17253969609737396,
-0.8119785189628601,
0.44254618883132935,
0.28846681118011475,
1.0091649293899536,
-0.747238278388977,
0.5519468188285828,
0.9849862456321716,
-0.21701428294181824,
-0.9978440999984741,
-0.1614207923412323,
-0.21204102039337158,
-0.4482415020465851,
0.8666670322418213,
0.22267140448093414,
0.04121433570981026,
0.3221175968647003,
-0.8365606665611267,
-1.044477939605713,
0.8947659134864807,
0.04255937784910202,
-0.6481543183326721,
0.048132725059986115,
-0.039540138095617294,
0.393350750207901,
-0.0008710403344593942,
0.24918168783187866,
0.27643683552742004,
0.6363482475280762,
0.05742735415697098,
-1.0420711040496826,
-0.02536820061504841,
0.16559141874313354,
-0.22823505103588104,
0.0991315022110939,
-0.4373156428337097,
0.7580112218856812,
-0.26666492223739624,
0.02949053794145584,
0.11006250232458115,
0.7323187589645386,
0.4818195700645447,
0.4934266209602356,
0.0914275124669075,
0.7591182589530945,
0.8220265507698059,
-0.17857159674167633,
1.1254637241363525,
-0.2044381946325302,
0.9698302149772644,
0.8278800845146179,
-0.0768207386136055,
0.307047575712204,
0.5323365926742554,
-0.22071745991706848,
0.2510301470756531,
0.8446575999259949,
-0.3571922779083252,
0.8765159249305725,
0.29349571466445923,
0.042377252131700516,
-0.44855210185050964,
-0.20874863862991333,
-0.6268741488456726,
0.19502843916416168,
0.14327917993068695,
-0.48908740282058716,
-0.38771605491638184,
0.27604568004608154,
-0.1044696643948555,
-0.34858667850494385,
-0.3049122989177704,
0.38669049739837646,
0.5093345046043396,
-0.43767738342285156,
0.6623931527137756,
0.28395283222198486,
0.8425522446632385,
-0.8778716325759888,
-0.16918636858463287,
0.275606632232666,
0.4316331744194031,
-0.340442419052124,
-0.7402409911155701,
0.013675956055521965,
-0.04934044927358627,
-0.17667005956172943,
0.02059660479426384,
0.7003260850906372,
-0.5100166201591492,
-0.607329249382019,
0.08918420970439911,
0.28688758611679077,
0.11765148490667343,
0.20332467555999756,
-1.0224859714508057,
0.06295812875032425,
-0.06419563293457031,
-0.4926442503929138,
0.0008859365480020642,
0.15821059048175812,
0.006773508153855801,
0.5030373930931091,
0.5325384140014648,
0.08788584172725677,
-0.12375108152627945,
-0.09588736295700073,
0.8202841281890869,
-0.4747828543186188,
-0.4247790277004242,
-0.844142735004425,
0.40706872940063477,
-0.05644795298576355,
-0.4844595789909363,
0.6138608455657959,
0.6420778036117554,
0.5748318433761597,
-0.23166103661060333,
0.6957820653915405,
-0.279937744140625,
0.3103979527950287,
-0.4327487647533417,
0.8896526098251343,
-0.8360095620155334,
-0.14110994338989258,
-0.40353503823280334,
-0.6801730990409851,
-0.36901313066482544,
0.8080833554267883,
-0.40365973114967346,
0.12116619199514389,
0.6323952078819275,
0.8370917439460754,
-0.3437967896461487,
0.07687786966562271,
-0.17447473108768463,
0.3897644579410553,
0.3178705871105194,
0.5808980464935303,
0.43297767639160156,
-0.4029962420463562,
-0.01258918084204197,
-0.12319087982177734,
-0.48662981390953064,
-0.051226940006017685,
-0.7812157869338989,
-1.0997178554534912,
-0.17687547206878662,
-0.4579606354236603,
-0.598477303981781,
0.33844611048698425,
1.1451833248138428,
0.9397350549697876,
-0.9660974740982056,
-0.006736711598932743,
0.3706320524215698,
-0.10858388990163803,
-0.018764209002256393,
-0.16898088157176971,
0.7232339382171631,
-0.09054417908191681,
-0.5569673180580139,
-0.03808794170618057,
0.005185081157833338,
0.1666749268770218,
-0.06668221205472946,
0.029479587450623512,
-0.6202628016471863,
-0.08854061365127563,
0.5298255681991577,
0.2614939510822296,
-0.29628854990005493,
0.010754317976534367,
-0.054824575781822205,
-0.5375699400901794,
-0.1887241005897522,
0.22841016948223114,
-0.8751986026763916,
0.47265174984931946,
0.3556114137172699,
0.8766248822212219,
0.6629378795623779,
0.05316521227359772,
0.2825210690498352,
-0.5437660813331604,
0.0631418228149414,
0.2012506127357483,
0.14124560356140137,
0.3547280430793762,
-0.4053923189640045,
0.49582839012145996,
0.25886672735214233,
-0.6770874261856079,
-0.6582557559013367,
-0.07260584831237793,
-0.9915387630462646,
-0.31252211332321167,
1.0731043815612793,
-0.06676846742630005,
-0.4421853721141815,
-0.055917274206876755,
-0.19732682406902313,
0.27330711483955383,
-0.42200568318367004,
0.701797366142273,
0.6829295754432678,
-0.16329345107078552,
0.3326583206653595,
-0.38328784704208374,
0.4269263744354248,
0.41281166672706604,
-0.6643876433372498,
-0.31666433811187744,
0.2222590297460556,
0.5105446577072144,
0.22399379312992096,
0.9740665555000305,
-0.12929286062717438,
0.3583497405052185,
-0.35558074712753296,
0.5761802792549133,
-0.14349420368671417,
-0.06255435943603516,
-0.12649966776371002,
0.04538089409470558,
-0.05015479773283005,
-0.2123287320137024
] |
neuralmagic/bge-small-en-v1.5-quant
|
neuralmagic
| 2023-11-13T17:04:15Z | 8,432 | 9 |
transformers
|
[
"transformers",
"onnx",
"bert",
"feature-extraction",
"mteb",
"sparse",
"sparsity",
"quantized",
"embeddings",
"int8",
"deepsparse",
"en",
"license:mit",
"model-index",
"endpoints_compatible",
"region:us"
] |
feature-extraction
| 2023-09-27T23:33:48Z |
---
tags:
- mteb
- sparse
- sparsity
- quantized
- onnx
- embeddings
- int8
- deepsparse
model-index:
- name: bge-small-en-v1.5-quant
results:
- task:
type: Classification
dataset:
type: mteb/amazon_counterfactual
name: MTEB AmazonCounterfactualClassification (en)
config: en
split: test
revision: e8379541af4e31359cca9fbcf4b00f2671dba205
metrics:
- type: accuracy
value: 74.19402985074626
- type: ap
value: 37.562368912364036
- type: f1
value: 68.47046663470138
- task:
type: Classification
dataset:
type: mteb/amazon_polarity
name: MTEB AmazonPolarityClassification
config: default
split: test
revision: e2d317d38cd51312af73b3d32a06d1a08b442046
metrics:
- type: accuracy
value: 91.89432499999998
- type: ap
value: 88.64572979375352
- type: f1
value: 91.87171177424113
- task:
type: Classification
dataset:
type: mteb/amazon_reviews_multi
name: MTEB AmazonReviewsClassification (en)
config: en
split: test
revision: 1399c76144fd37290681b995c656ef9b2e06e26d
metrics:
- type: accuracy
value: 46.71799999999999
- type: f1
value: 46.25791412217894
- task:
type: Retrieval
dataset:
type: arguana
name: MTEB ArguAna
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 34.424
- type: map_at_10
value: 49.63
- type: map_at_100
value: 50.477000000000004
- type: map_at_1000
value: 50.483
- type: map_at_3
value: 45.389
- type: map_at_5
value: 47.888999999999996
- type: mrr_at_1
value: 34.78
- type: mrr_at_10
value: 49.793
- type: mrr_at_100
value: 50.632999999999996
- type: mrr_at_1000
value: 50.638000000000005
- type: mrr_at_3
value: 45.531
- type: mrr_at_5
value: 48.010000000000005
- type: ndcg_at_1
value: 34.424
- type: ndcg_at_10
value: 57.774
- type: ndcg_at_100
value: 61.248000000000005
- type: ndcg_at_1000
value: 61.378
- type: ndcg_at_3
value: 49.067
- type: ndcg_at_5
value: 53.561
- type: precision_at_1
value: 34.424
- type: precision_at_10
value: 8.364
- type: precision_at_100
value: 0.985
- type: precision_at_1000
value: 0.1
- type: precision_at_3
value: 19.915
- type: precision_at_5
value: 14.124999999999998
- type: recall_at_1
value: 34.424
- type: recall_at_10
value: 83.64200000000001
- type: recall_at_100
value: 98.506
- type: recall_at_1000
value: 99.502
- type: recall_at_3
value: 59.744
- type: recall_at_5
value: 70.626
- task:
type: Clustering
dataset:
type: mteb/arxiv-clustering-p2p
name: MTEB ArxivClusteringP2P
config: default
split: test
revision: a122ad7f3f0291bf49cc6f4d32aa80929df69d5d
metrics:
- type: v_measure
value: 46.91874634333147
- task:
type: Clustering
dataset:
type: mteb/arxiv-clustering-s2s
name: MTEB ArxivClusteringS2S
config: default
split: test
revision: f910caf1a6075f7329cdf8c1a6135696f37dbd53
metrics:
- type: v_measure
value: 39.1201020016146
- task:
type: Reranking
dataset:
type: mteb/askubuntudupquestions-reranking
name: MTEB AskUbuntuDupQuestions
config: default
split: test
revision: 2000358ca161889fa9c082cb41daa8dcfb161a54
metrics:
- type: map
value: 62.40334669601722
- type: mrr
value: 75.33175042870333
- task:
type: STS
dataset:
type: mteb/biosses-sts
name: MTEB BIOSSES
config: default
split: test
revision: d3fb88f8f02e40887cd149695127462bbcf29b4a
metrics:
- type: cos_sim_pearson
value: 88.00433892980047
- type: cos_sim_spearman
value: 86.65558896421105
- type: euclidean_pearson
value: 85.98927300398377
- type: euclidean_spearman
value: 86.0905158476729
- type: manhattan_pearson
value: 86.0272425017433
- type: manhattan_spearman
value: 85.8929209838941
- task:
type: Classification
dataset:
type: mteb/banking77
name: MTEB Banking77Classification
config: default
split: test
revision: 0fd18e25b25c072e09e0d92ab615fda904d66300
metrics:
- type: accuracy
value: 85.1038961038961
- type: f1
value: 85.06851570045757
- task:
type: Clustering
dataset:
type: mteb/biorxiv-clustering-p2p
name: MTEB BiorxivClusteringP2P
config: default
split: test
revision: 65b79d1d13f80053f67aca9498d9402c2d9f1f40
metrics:
- type: v_measure
value: 37.42637694389153
- task:
type: Clustering
dataset:
type: mteb/biorxiv-clustering-s2s
name: MTEB BiorxivClusteringS2S
config: default
split: test
revision: 258694dd0231531bc1fd9de6ceb52a0853c6d908
metrics:
- type: v_measure
value: 33.89440321125906
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackAndroidRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 28.111000000000004
- type: map_at_10
value: 39.067
- type: map_at_100
value: 40.519
- type: map_at_1000
value: 40.652
- type: map_at_3
value: 35.571999999999996
- type: map_at_5
value: 37.708999999999996
- type: mrr_at_1
value: 34.335
- type: mrr_at_10
value: 44.868
- type: mrr_at_100
value: 45.607
- type: mrr_at_1000
value: 45.655
- type: mrr_at_3
value: 41.798
- type: mrr_at_5
value: 43.786
- type: ndcg_at_1
value: 34.335
- type: ndcg_at_10
value: 45.513
- type: ndcg_at_100
value: 51.037
- type: ndcg_at_1000
value: 53.171
- type: ndcg_at_3
value: 40.131
- type: ndcg_at_5
value: 43.027
- type: precision_at_1
value: 34.335
- type: precision_at_10
value: 8.784
- type: precision_at_100
value: 1.4460000000000002
- type: precision_at_1000
value: 0.193
- type: precision_at_3
value: 19.361
- type: precision_at_5
value: 14.249
- type: recall_at_1
value: 28.111000000000004
- type: recall_at_10
value: 58.372
- type: recall_at_100
value: 81.631
- type: recall_at_1000
value: 95.192
- type: recall_at_3
value: 42.863
- type: recall_at_5
value: 50.924
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackEnglishRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 28.437
- type: map_at_10
value: 37.942
- type: map_at_100
value: 39.108
- type: map_at_1000
value: 39.242
- type: map_at_3
value: 35.419
- type: map_at_5
value: 36.825
- type: mrr_at_1
value: 35.35
- type: mrr_at_10
value: 43.855
- type: mrr_at_100
value: 44.543
- type: mrr_at_1000
value: 44.588
- type: mrr_at_3
value: 41.826
- type: mrr_at_5
value: 42.937
- type: ndcg_at_1
value: 35.35
- type: ndcg_at_10
value: 43.32
- type: ndcg_at_100
value: 47.769
- type: ndcg_at_1000
value: 49.979
- type: ndcg_at_3
value: 39.709
- type: ndcg_at_5
value: 41.316
- type: precision_at_1
value: 35.35
- type: precision_at_10
value: 7.994
- type: precision_at_100
value: 1.323
- type: precision_at_1000
value: 0.182
- type: precision_at_3
value: 18.96
- type: precision_at_5
value: 13.236
- type: recall_at_1
value: 28.437
- type: recall_at_10
value: 52.531000000000006
- type: recall_at_100
value: 71.79299999999999
- type: recall_at_1000
value: 85.675
- type: recall_at_3
value: 41.605
- type: recall_at_5
value: 46.32
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackGamingRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 37.364999999999995
- type: map_at_10
value: 49.324
- type: map_at_100
value: 50.458999999999996
- type: map_at_1000
value: 50.512
- type: map_at_3
value: 45.96
- type: map_at_5
value: 47.934
- type: mrr_at_1
value: 43.009
- type: mrr_at_10
value: 52.946000000000005
- type: mrr_at_100
value: 53.74100000000001
- type: mrr_at_1000
value: 53.76800000000001
- type: mrr_at_3
value: 50.554
- type: mrr_at_5
value: 51.964
- type: ndcg_at_1
value: 43.009
- type: ndcg_at_10
value: 55.143
- type: ndcg_at_100
value: 59.653999999999996
- type: ndcg_at_1000
value: 60.805
- type: ndcg_at_3
value: 49.605
- type: ndcg_at_5
value: 52.437
- type: precision_at_1
value: 43.009
- type: precision_at_10
value: 8.984
- type: precision_at_100
value: 1.209
- type: precision_at_1000
value: 0.135
- type: precision_at_3
value: 22.09
- type: precision_at_5
value: 15.423
- type: recall_at_1
value: 37.364999999999995
- type: recall_at_10
value: 68.657
- type: recall_at_100
value: 88.155
- type: recall_at_1000
value: 96.48400000000001
- type: recall_at_3
value: 54.186
- type: recall_at_5
value: 60.848
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackGisRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 23.827
- type: map_at_10
value: 31.721
- type: map_at_100
value: 32.812999999999995
- type: map_at_1000
value: 32.89
- type: map_at_3
value: 29.238999999999997
- type: map_at_5
value: 30.584
- type: mrr_at_1
value: 25.650000000000002
- type: mrr_at_10
value: 33.642
- type: mrr_at_100
value: 34.595
- type: mrr_at_1000
value: 34.650999999999996
- type: mrr_at_3
value: 31.205
- type: mrr_at_5
value: 32.499
- type: ndcg_at_1
value: 25.650000000000002
- type: ndcg_at_10
value: 36.366
- type: ndcg_at_100
value: 41.766
- type: ndcg_at_1000
value: 43.735
- type: ndcg_at_3
value: 31.447000000000003
- type: ndcg_at_5
value: 33.701
- type: precision_at_1
value: 25.650000000000002
- type: precision_at_10
value: 5.582
- type: precision_at_100
value: 0.872
- type: precision_at_1000
value: 0.108
- type: precision_at_3
value: 13.107
- type: precision_at_5
value: 9.198
- type: recall_at_1
value: 23.827
- type: recall_at_10
value: 48.9
- type: recall_at_100
value: 73.917
- type: recall_at_1000
value: 88.787
- type: recall_at_3
value: 35.498000000000005
- type: recall_at_5
value: 40.929
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackMathematicaRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 15.47
- type: map_at_10
value: 22.679
- type: map_at_100
value: 23.823
- type: map_at_1000
value: 23.94
- type: map_at_3
value: 20.535999999999998
- type: map_at_5
value: 21.61
- type: mrr_at_1
value: 18.781
- type: mrr_at_10
value: 26.979
- type: mrr_at_100
value: 27.945999999999998
- type: mrr_at_1000
value: 28.016000000000002
- type: mrr_at_3
value: 24.648
- type: mrr_at_5
value: 25.947
- type: ndcg_at_1
value: 18.781
- type: ndcg_at_10
value: 27.55
- type: ndcg_at_100
value: 33.176
- type: ndcg_at_1000
value: 36.150999999999996
- type: ndcg_at_3
value: 23.456
- type: ndcg_at_5
value: 25.16
- type: precision_at_1
value: 18.781
- type: precision_at_10
value: 5.050000000000001
- type: precision_at_100
value: 0.9039999999999999
- type: precision_at_1000
value: 0.129
- type: precision_at_3
value: 11.235000000000001
- type: precision_at_5
value: 8.01
- type: recall_at_1
value: 15.47
- type: recall_at_10
value: 38.446000000000005
- type: recall_at_100
value: 63.199000000000005
- type: recall_at_1000
value: 84.719
- type: recall_at_3
value: 26.687
- type: recall_at_5
value: 31.196
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackPhysicsRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 26.285999999999998
- type: map_at_10
value: 35.701
- type: map_at_100
value: 37.062
- type: map_at_1000
value: 37.175999999999995
- type: map_at_3
value: 32.65
- type: map_at_5
value: 34.129
- type: mrr_at_1
value: 32.05
- type: mrr_at_10
value: 41.105000000000004
- type: mrr_at_100
value: 41.996
- type: mrr_at_1000
value: 42.047000000000004
- type: mrr_at_3
value: 38.466
- type: mrr_at_5
value: 39.766
- type: ndcg_at_1
value: 32.05
- type: ndcg_at_10
value: 41.516999999999996
- type: ndcg_at_100
value: 47.083999999999996
- type: ndcg_at_1000
value: 49.309
- type: ndcg_at_3
value: 36.254999999999995
- type: ndcg_at_5
value: 38.346999999999994
- type: precision_at_1
value: 32.05
- type: precision_at_10
value: 7.536
- type: precision_at_100
value: 1.202
- type: precision_at_1000
value: 0.158
- type: precision_at_3
value: 17.004
- type: precision_at_5
value: 11.973
- type: recall_at_1
value: 26.285999999999998
- type: recall_at_10
value: 53.667
- type: recall_at_100
value: 76.97
- type: recall_at_1000
value: 91.691
- type: recall_at_3
value: 38.571
- type: recall_at_5
value: 44.131
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackProgrammersRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 22.595000000000002
- type: map_at_10
value: 31.352000000000004
- type: map_at_100
value: 32.652
- type: map_at_1000
value: 32.774
- type: map_at_3
value: 28.238000000000003
- type: map_at_5
value: 30.178
- type: mrr_at_1
value: 27.626
- type: mrr_at_10
value: 36.351
- type: mrr_at_100
value: 37.297000000000004
- type: mrr_at_1000
value: 37.362
- type: mrr_at_3
value: 33.885
- type: mrr_at_5
value: 35.358000000000004
- type: ndcg_at_1
value: 27.626
- type: ndcg_at_10
value: 36.795
- type: ndcg_at_100
value: 42.808
- type: ndcg_at_1000
value: 45.417
- type: ndcg_at_3
value: 31.744
- type: ndcg_at_5
value: 34.407
- type: precision_at_1
value: 27.626
- type: precision_at_10
value: 6.781
- type: precision_at_100
value: 1.159
- type: precision_at_1000
value: 0.155
- type: precision_at_3
value: 15.221000000000002
- type: precision_at_5
value: 11.279
- type: recall_at_1
value: 22.595000000000002
- type: recall_at_10
value: 48.126000000000005
- type: recall_at_100
value: 74.24300000000001
- type: recall_at_1000
value: 92.276
- type: recall_at_3
value: 34.346
- type: recall_at_5
value: 41.065000000000005
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackStatsRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 22.237000000000002
- type: map_at_10
value: 28.626
- type: map_at_100
value: 29.494999999999997
- type: map_at_1000
value: 29.587999999999997
- type: map_at_3
value: 26.747
- type: map_at_5
value: 27.903
- type: mrr_at_1
value: 24.847
- type: mrr_at_10
value: 31.091
- type: mrr_at_100
value: 31.91
- type: mrr_at_1000
value: 31.977
- type: mrr_at_3
value: 29.218
- type: mrr_at_5
value: 30.391000000000002
- type: ndcg_at_1
value: 24.847
- type: ndcg_at_10
value: 32.452999999999996
- type: ndcg_at_100
value: 37.009
- type: ndcg_at_1000
value: 39.425
- type: ndcg_at_3
value: 28.848000000000003
- type: ndcg_at_5
value: 30.752000000000002
- type: precision_at_1
value: 24.847
- type: precision_at_10
value: 4.968999999999999
- type: precision_at_100
value: 0.8009999999999999
- type: precision_at_1000
value: 0.107
- type: precision_at_3
value: 12.321
- type: precision_at_5
value: 8.62
- type: recall_at_1
value: 22.237000000000002
- type: recall_at_10
value: 41.942
- type: recall_at_100
value: 62.907000000000004
- type: recall_at_1000
value: 81.035
- type: recall_at_3
value: 32.05
- type: recall_at_5
value: 36.695
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackTexRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 14.835
- type: map_at_10
value: 21.124000000000002
- type: map_at_100
value: 22.133
- type: map_at_1000
value: 22.258
- type: map_at_3
value: 19.076999999999998
- type: map_at_5
value: 20.18
- type: mrr_at_1
value: 17.791
- type: mrr_at_10
value: 24.438
- type: mrr_at_100
value: 25.332
- type: mrr_at_1000
value: 25.417
- type: mrr_at_3
value: 22.425
- type: mrr_at_5
value: 23.524
- type: ndcg_at_1
value: 17.791
- type: ndcg_at_10
value: 25.27
- type: ndcg_at_100
value: 30.362000000000002
- type: ndcg_at_1000
value: 33.494
- type: ndcg_at_3
value: 21.474
- type: ndcg_at_5
value: 23.189999999999998
- type: precision_at_1
value: 17.791
- type: precision_at_10
value: 4.58
- type: precision_at_100
value: 0.839
- type: precision_at_1000
value: 0.128
- type: precision_at_3
value: 10.071
- type: precision_at_5
value: 7.337000000000001
- type: recall_at_1
value: 14.835
- type: recall_at_10
value: 34.534
- type: recall_at_100
value: 57.812
- type: recall_at_1000
value: 80.467
- type: recall_at_3
value: 23.938000000000002
- type: recall_at_5
value: 28.269
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackUnixRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 23.400000000000002
- type: map_at_10
value: 31.55
- type: map_at_100
value: 32.72
- type: map_at_1000
value: 32.830999999999996
- type: map_at_3
value: 28.942
- type: map_at_5
value: 30.403000000000002
- type: mrr_at_1
value: 27.705000000000002
- type: mrr_at_10
value: 35.778
- type: mrr_at_100
value: 36.705
- type: mrr_at_1000
value: 36.773
- type: mrr_at_3
value: 33.458
- type: mrr_at_5
value: 34.778
- type: ndcg_at_1
value: 27.705000000000002
- type: ndcg_at_10
value: 36.541000000000004
- type: ndcg_at_100
value: 42.016999999999996
- type: ndcg_at_1000
value: 44.571
- type: ndcg_at_3
value: 31.845000000000002
- type: ndcg_at_5
value: 34.056
- type: precision_at_1
value: 27.705000000000002
- type: precision_at_10
value: 6.166
- type: precision_at_100
value: 0.993
- type: precision_at_1000
value: 0.132
- type: precision_at_3
value: 14.302999999999999
- type: precision_at_5
value: 10.187
- type: recall_at_1
value: 23.400000000000002
- type: recall_at_10
value: 47.61
- type: recall_at_100
value: 71.69200000000001
- type: recall_at_1000
value: 89.652
- type: recall_at_3
value: 35.026
- type: recall_at_5
value: 40.48
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackWebmastersRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 21.409
- type: map_at_10
value: 29.642000000000003
- type: map_at_100
value: 31.213
- type: map_at_1000
value: 31.418000000000003
- type: map_at_3
value: 26.811
- type: map_at_5
value: 28.433999999999997
- type: mrr_at_1
value: 25.494
- type: mrr_at_10
value: 33.735
- type: mrr_at_100
value: 34.791
- type: mrr_at_1000
value: 34.848
- type: mrr_at_3
value: 31.225
- type: mrr_at_5
value: 32.688
- type: ndcg_at_1
value: 25.494
- type: ndcg_at_10
value: 35.038000000000004
- type: ndcg_at_100
value: 41.499
- type: ndcg_at_1000
value: 44.183
- type: ndcg_at_3
value: 30.305
- type: ndcg_at_5
value: 32.607
- type: precision_at_1
value: 25.494
- type: precision_at_10
value: 6.739000000000001
- type: precision_at_100
value: 1.439
- type: precision_at_1000
value: 0.233
- type: precision_at_3
value: 14.163
- type: precision_at_5
value: 10.474
- type: recall_at_1
value: 21.409
- type: recall_at_10
value: 46.033
- type: recall_at_100
value: 74.932
- type: recall_at_1000
value: 92.35600000000001
- type: recall_at_3
value: 32.858
- type: recall_at_5
value: 38.675
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackWordpressRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 18.145
- type: map_at_10
value: 24.712
- type: map_at_100
value: 25.813000000000002
- type: map_at_1000
value: 25.935000000000002
- type: map_at_3
value: 22.33
- type: map_at_5
value: 23.524
- type: mrr_at_1
value: 19.224
- type: mrr_at_10
value: 26.194
- type: mrr_at_100
value: 27.208
- type: mrr_at_1000
value: 27.3
- type: mrr_at_3
value: 23.906
- type: mrr_at_5
value: 24.988
- type: ndcg_at_1
value: 19.224
- type: ndcg_at_10
value: 29.015
- type: ndcg_at_100
value: 34.224
- type: ndcg_at_1000
value: 37.235
- type: ndcg_at_3
value: 24.22
- type: ndcg_at_5
value: 26.176
- type: precision_at_1
value: 19.224
- type: precision_at_10
value: 4.713
- type: precision_at_100
value: 0.787
- type: precision_at_1000
value: 0.11499999999999999
- type: precision_at_3
value: 10.290000000000001
- type: precision_at_5
value: 7.32
- type: recall_at_1
value: 18.145
- type: recall_at_10
value: 40.875
- type: recall_at_100
value: 64.371
- type: recall_at_1000
value: 86.67399999999999
- type: recall_at_3
value: 27.717000000000002
- type: recall_at_5
value: 32.381
- task:
type: Classification
dataset:
type: mteb/emotion
name: MTEB EmotionClassification
config: default
split: test
revision: 4f58c6b202a23cf9a4da393831edf4f9183cad37
metrics:
- type: accuracy
value: 46.845
- type: f1
value: 41.70045120106269
- task:
type: Classification
dataset:
type: mteb/imdb
name: MTEB ImdbClassification
config: default
split: test
revision: 3d86128a09e091d6018b6d26cad27f2739fc2db7
metrics:
- type: accuracy
value: 89.3476
- type: ap
value: 85.26891728027032
- type: f1
value: 89.33488973832894
- task:
type: Classification
dataset:
type: mteb/mtop_domain
name: MTEB MTOPDomainClassification (en)
config: en
split: test
revision: d80d48c1eb48d3562165c59d59d0034df9fff0bf
metrics:
- type: accuracy
value: 92.67441860465115
- type: f1
value: 92.48821366022861
- task:
type: Classification
dataset:
type: mteb/mtop_intent
name: MTEB MTOPIntentClassification (en)
config: en
split: test
revision: ae001d0e6b1228650b7bd1c2c65fb50ad11a8aba
metrics:
- type: accuracy
value: 74.02872777017784
- type: f1
value: 57.28822860484337
- task:
type: Classification
dataset:
type: mteb/amazon_massive_intent
name: MTEB MassiveIntentClassification (en)
config: en
split: test
revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7
metrics:
- type: accuracy
value: 74.01479488903833
- type: f1
value: 71.83716204573571
- task:
type: Classification
dataset:
type: mteb/amazon_massive_scenario
name: MTEB MassiveScenarioClassification (en)
config: en
split: test
revision: 7d571f92784cd94a019292a1f45445077d0ef634
metrics:
- type: accuracy
value: 77.95897780766644
- type: f1
value: 77.80380046125542
- task:
type: Clustering
dataset:
type: mteb/medrxiv-clustering-p2p
name: MTEB MedrxivClusteringP2P
config: default
split: test
revision: e7a26af6f3ae46b30dde8737f02c07b1505bcc73
metrics:
- type: v_measure
value: 31.897956840478948
- task:
type: Clustering
dataset:
type: mteb/medrxiv-clustering-s2s
name: MTEB MedrxivClusteringS2S
config: default
split: test
revision: 35191c8c0dca72d8ff3efcd72aa802307d469663
metrics:
- type: v_measure
value: 30.71493744677591
- task:
type: Reranking
dataset:
type: mteb/mind_small
name: MTEB MindSmallReranking
config: default
split: test
revision: 3bdac13927fdc888b903db93b2ffdbd90b295a69
metrics:
- type: map
value: 31.279419910393734
- type: mrr
value: 32.41989483774563
- task:
type: Clustering
dataset:
type: mteb/reddit-clustering
name: MTEB RedditClustering
config: default
split: test
revision: 24640382cdbf8abc73003fb0fa6d111a705499eb
metrics:
- type: v_measure
value: 50.49612915002382
- task:
type: Clustering
dataset:
type: mteb/reddit-clustering-p2p
name: MTEB RedditClusteringP2P
config: default
split: test
revision: 282350215ef01743dc01b456c7f5241fa8937f16
metrics:
- type: v_measure
value: 60.29912718965653
- task:
type: STS
dataset:
type: mteb/sickr-sts
name: MTEB SICK-R
config: default
split: test
revision: a6ea5a8cab320b040a23452cc28066d9beae2cee
metrics:
- type: cos_sim_pearson
value: 83.86793477948164
- type: cos_sim_spearman
value: 79.43675709317894
- type: euclidean_pearson
value: 81.42564463337872
- type: euclidean_spearman
value: 79.39138648510273
- type: manhattan_pearson
value: 81.31167449689285
- type: manhattan_spearman
value: 79.28411420758785
- task:
type: STS
dataset:
type: mteb/sts12-sts
name: MTEB STS12
config: default
split: test
revision: a0d554a64d88156834ff5ae9920b964011b16384
metrics:
- type: cos_sim_pearson
value: 84.43490408077298
- type: cos_sim_spearman
value: 76.16878340109265
- type: euclidean_pearson
value: 80.6016219080782
- type: euclidean_spearman
value: 75.67063072565917
- type: manhattan_pearson
value: 80.7238920179759
- type: manhattan_spearman
value: 75.85631683403953
- task:
type: STS
dataset:
type: mteb/sts13-sts
name: MTEB STS13
config: default
split: test
revision: 7e90230a92c190f1bf69ae9002b8cea547a64cca
metrics:
- type: cos_sim_pearson
value: 83.03882477767792
- type: cos_sim_spearman
value: 84.15171505206217
- type: euclidean_pearson
value: 84.11692506470922
- type: euclidean_spearman
value: 84.78589046217311
- type: manhattan_pearson
value: 83.98651139454486
- type: manhattan_spearman
value: 84.64928563751276
- task:
type: STS
dataset:
type: mteb/sts14-sts
name: MTEB STS14
config: default
split: test
revision: 6031580fec1f6af667f0bd2da0a551cf4f0b2375
metrics:
- type: cos_sim_pearson
value: 83.11158600428418
- type: cos_sim_spearman
value: 81.48561519933875
- type: euclidean_pearson
value: 83.21025907155807
- type: euclidean_spearman
value: 81.68699235487654
- type: manhattan_pearson
value: 83.16704771658094
- type: manhattan_spearman
value: 81.7133110412898
- task:
type: STS
dataset:
type: mteb/sts15-sts
name: MTEB STS15
config: default
split: test
revision: ae752c7c21bf194d8b67fd573edf7ae58183cbe3
metrics:
- type: cos_sim_pearson
value: 87.1514510686502
- type: cos_sim_spearman
value: 88.11449450494452
- type: euclidean_pearson
value: 87.75854949349939
- type: euclidean_spearman
value: 88.4055148221637
- type: manhattan_pearson
value: 87.71487828059706
- type: manhattan_spearman
value: 88.35301381116254
- task:
type: STS
dataset:
type: mteb/sts16-sts
name: MTEB STS16
config: default
split: test
revision: 4d8694f8f0e0100860b497b999b3dbed754a0513
metrics:
- type: cos_sim_pearson
value: 83.36838640113687
- type: cos_sim_spearman
value: 84.98776974283366
- type: euclidean_pearson
value: 84.0617526427129
- type: euclidean_spearman
value: 85.04234805662242
- type: manhattan_pearson
value: 83.87433162971784
- type: manhattan_spearman
value: 84.87174280390242
- task:
type: STS
dataset:
type: mteb/sts17-crosslingual-sts
name: MTEB STS17 (en-en)
config: en-en
split: test
revision: af5e6fb845001ecf41f4c1e033ce921939a2a68d
metrics:
- type: cos_sim_pearson
value: 87.72465270691285
- type: cos_sim_spearman
value: 87.97672332532184
- type: euclidean_pearson
value: 88.78764701492182
- type: euclidean_spearman
value: 88.3509718074474
- type: manhattan_pearson
value: 88.73024739256215
- type: manhattan_spearman
value: 88.24149566970154
- task:
type: STS
dataset:
type: mteb/sts22-crosslingual-sts
name: MTEB STS22 (en)
config: en
split: test
revision: 6d1ba47164174a496b7fa5d3569dae26a6813b80
metrics:
- type: cos_sim_pearson
value: 64.65195562203238
- type: cos_sim_spearman
value: 65.0726777678982
- type: euclidean_pearson
value: 65.84698245675273
- type: euclidean_spearman
value: 65.13121502162804
- type: manhattan_pearson
value: 65.96149904857049
- type: manhattan_spearman
value: 65.39983948112955
- task:
type: STS
dataset:
type: mteb/stsbenchmark-sts
name: MTEB STSBenchmark
config: default
split: test
revision: b0fddb56ed78048fa8b90373c8a3cfc37b684831
metrics:
- type: cos_sim_pearson
value: 85.2642818050049
- type: cos_sim_spearman
value: 86.30633382439257
- type: euclidean_pearson
value: 86.46510435905633
- type: euclidean_spearman
value: 86.62650496446
- type: manhattan_pearson
value: 86.2546330637872
- type: manhattan_spearman
value: 86.46309860938591
- task:
type: Reranking
dataset:
type: mteb/scidocs-reranking
name: MTEB SciDocsRR
config: default
split: test
revision: d3c5e1fc0b855ab6097bf1cda04dd73947d7caab
metrics:
- type: map
value: 85.009977767778
- type: mrr
value: 95.59795143128476
- task:
type: PairClassification
dataset:
type: mteb/sprintduplicatequestions-pairclassification
name: MTEB SprintDuplicateQuestions
config: default
split: test
revision: d66bd1f72af766a5cc4b0ca5e00c162f89e8cc46
metrics:
- type: cos_sim_accuracy
value: 99.84257425742574
- type: cos_sim_ap
value: 96.25445889914926
- type: cos_sim_f1
value: 92.03805708562844
- type: cos_sim_precision
value: 92.1765295887663
- type: cos_sim_recall
value: 91.9
- type: dot_accuracy
value: 99.83069306930693
- type: dot_ap
value: 96.00517778550396
- type: dot_f1
value: 91.27995920448751
- type: dot_precision
value: 93.1321540062435
- type: dot_recall
value: 89.5
- type: euclidean_accuracy
value: 99.84455445544555
- type: euclidean_ap
value: 96.14761524546034
- type: euclidean_f1
value: 91.97751660705163
- type: euclidean_precision
value: 94.04388714733543
- type: euclidean_recall
value: 90
- type: manhattan_accuracy
value: 99.84158415841584
- type: manhattan_ap
value: 96.17014673429341
- type: manhattan_f1
value: 91.93790686029043
- type: manhattan_precision
value: 92.07622868605817
- type: manhattan_recall
value: 91.8
- type: max_accuracy
value: 99.84455445544555
- type: max_ap
value: 96.25445889914926
- type: max_f1
value: 92.03805708562844
- task:
type: Clustering
dataset:
type: mteb/stackexchange-clustering
name: MTEB StackExchangeClustering
config: default
split: test
revision: 6cbc1f7b2bc0622f2e39d2c77fa502909748c259
metrics:
- type: v_measure
value: 59.26454683321409
- task:
type: Clustering
dataset:
type: mteb/stackexchange-clustering-p2p
name: MTEB StackExchangeClusteringP2P
config: default
split: test
revision: 815ca46b2622cec33ccafc3735d572c266efdb44
metrics:
- type: v_measure
value: 33.75520575713765
- task:
type: Reranking
dataset:
type: mteb/stackoverflowdupquestions-reranking
name: MTEB StackOverflowDupQuestions
config: default
split: test
revision: e185fbe320c72810689fc5848eb6114e1ef5ec69
metrics:
- type: map
value: 52.74607778008495
- type: mrr
value: 53.55101699770818
- task:
type: Classification
dataset:
type: mteb/toxic_conversations_50k
name: MTEB ToxicConversationsClassification
config: default
split: test
revision: d7c0de2777da35d6aae2200a62c6e0e5af397c4c
metrics:
- type: accuracy
value: 69.5008
- type: ap
value: 13.64158304183089
- type: f1
value: 53.50073331072236
- task:
type: Classification
dataset:
type: mteb/tweet_sentiment_extraction
name: MTEB TweetSentimentExtractionClassification
config: default
split: test
revision: d604517c81ca91fe16a244d1248fc021f9ecee7a
metrics:
- type: accuracy
value: 60.01980758347483
- type: f1
value: 60.35679678249753
- task:
type: Clustering
dataset:
type: mteb/twentynewsgroups-clustering
name: MTEB TwentyNewsgroupsClustering
config: default
split: test
revision: 6125ec4e24fa026cec8a478383ee943acfbd5449
metrics:
- type: v_measure
value: 45.09419243325077
- task:
type: PairClassification
dataset:
type: mteb/twittersemeval2015-pairclassification
name: MTEB TwitterSemEval2015
config: default
split: test
revision: 70970daeab8776df92f5ea462b6173c0b46fd2d1
metrics:
- type: cos_sim_accuracy
value: 85.68874053764081
- type: cos_sim_ap
value: 73.26334732095694
- type: cos_sim_f1
value: 68.01558376272465
- type: cos_sim_precision
value: 64.93880489560834
- type: cos_sim_recall
value: 71.39841688654354
- type: dot_accuracy
value: 84.71121177802945
- type: dot_ap
value: 70.33606362522605
- type: dot_f1
value: 65.0887573964497
- type: dot_precision
value: 63.50401606425703
- type: dot_recall
value: 66.75461741424802
- type: euclidean_accuracy
value: 85.80795136198367
- type: euclidean_ap
value: 73.43201285001163
- type: euclidean_f1
value: 68.33166833166834
- type: euclidean_precision
value: 64.86486486486487
- type: euclidean_recall
value: 72.18997361477572
- type: manhattan_accuracy
value: 85.62317458425225
- type: manhattan_ap
value: 73.21212085536185
- type: manhattan_f1
value: 68.01681314482232
- type: manhattan_precision
value: 65.74735286875153
- type: manhattan_recall
value: 70.44854881266491
- type: max_accuracy
value: 85.80795136198367
- type: max_ap
value: 73.43201285001163
- type: max_f1
value: 68.33166833166834
- task:
type: PairClassification
dataset:
type: mteb/twitterurlcorpus-pairclassification
name: MTEB TwitterURLCorpus
config: default
split: test
revision: 8b6510b0b1fa4e4c4f879467980e9be563ec1cdf
metrics:
- type: cos_sim_accuracy
value: 88.81709162882757
- type: cos_sim_ap
value: 85.63540257309367
- type: cos_sim_f1
value: 77.9091382258904
- type: cos_sim_precision
value: 75.32710280373833
- type: cos_sim_recall
value: 80.67446874037573
- type: dot_accuracy
value: 88.04478596654636
- type: dot_ap
value: 84.16371725220706
- type: dot_f1
value: 76.45949643213666
- type: dot_precision
value: 73.54719396827655
- type: dot_recall
value: 79.61194949183862
- type: euclidean_accuracy
value: 88.9296386851399
- type: euclidean_ap
value: 85.71894615274715
- type: euclidean_f1
value: 78.12952767313823
- type: euclidean_precision
value: 73.7688098495212
- type: euclidean_recall
value: 83.03818909762857
- type: manhattan_accuracy
value: 88.89276982186519
- type: manhattan_ap
value: 85.6838514059479
- type: manhattan_f1
value: 78.06861875184856
- type: manhattan_precision
value: 75.09246088193457
- type: manhattan_recall
value: 81.29042192793348
- type: max_accuracy
value: 88.9296386851399
- type: max_ap
value: 85.71894615274715
- type: max_f1
value: 78.12952767313823
license: mit
language:
- en
---
# bge-small-en-v1.5-quant
<div>
<img src="https://huggingface.co/zeroshot/bge-small-en-v1.5-quant/resolve/main/latency.png" alt="latency" width="500" style="display:inline-block; margin-right:10px;"/>
</div>
[DeepSparse](https://github.com/neuralmagic/deepsparse) is able to improve latency performance on a 10 core laptop by 3X and up to 5X on a 16 core AWS instance.
## Usage
This is the quantized (INT8) ONNX variant of the [bge-small-en-v1.5](https://huggingface.co/BAAI/bge-small-en-v1.5) embeddings model accelerated with [Sparsify](https://github.com/neuralmagic/sparsify) for quantization and [DeepSparseSentenceTransformers](https://github.com/neuralmagic/deepsparse/tree/main/src/deepsparse/sentence_transformers) for inference.
```bash
pip install -U deepsparse-nightly[sentence_transformers]
```
```python
from deepsparse.sentence_transformers import DeepSparseSentenceTransformer
model = DeepSparseSentenceTransformer('neuralmagic/bge-small-en-v1.5-quant', export=False)
# Our sentences we like to encode
sentences = ['This framework generates embeddings for each input sentence',
'Sentences are passed as a list of string.',
'The quick brown fox jumps over the lazy dog.']
# Sentences are encoded by calling model.encode()
embeddings = model.encode(sentences)
# Print the embeddings
for sentence, embedding in zip(sentences, embeddings):
print("Sentence:", sentence)
print("Embedding:", embedding.shape)
print("")
```
For general questions on these models and sparsification methods, reach out to the engineering team on our [community Slack](https://join.slack.com/t/discuss-neuralmagic/shared_invite/zt-q1a1cnvo-YBoICSIw3L1dmQpjBeDurQ).
|
[
-0.4181426763534546,
-0.8416351675987244,
0.4658688008785248,
0.31121572852134705,
-0.12544934451580048,
-0.09210067987442017,
-0.2685363292694092,
-0.21130092442035675,
0.22092293202877045,
0.09198799729347229,
-0.7550078630447388,
-0.5533190965652466,
-0.6133115291595459,
-0.15562735497951508,
-0.034383416175842285,
0.7127047777175903,
0.12973779439926147,
0.04667997732758522,
-0.10731848329305649,
0.025903765112161636,
-0.3460920453071594,
-0.28486430644989014,
-0.8170952200889587,
-0.3114314675331116,
0.21033452451229095,
0.25643715262413025,
0.6862874627113342,
0.050720036029815674,
0.5148845314979553,
0.36791205406188965,
-0.2855491042137146,
-0.048188209533691406,
-0.36995142698287964,
-0.06503899395465851,
0.06546705216169357,
-0.25886523723602295,
-0.47015586495399475,
-0.22562949359416962,
0.7338364124298096,
0.5978326797485352,
-0.3982042074203491,
0.3319118916988373,
-0.11031626909971237,
0.56374192237854,
-0.7120906114578247,
0.07179658859968185,
-0.3554568290710449,
0.32282406091690063,
0.056807953864336014,
0.45036423206329346,
-0.309445321559906,
-0.24682344496250153,
0.1640344262123108,
-0.6185450553894043,
0.20285245776176453,
0.06759175658226013,
1.103270411491394,
0.36745303869247437,
0.057376690208911896,
0.16299064457416534,
-0.34352317452430725,
0.7137014865875244,
-1.1362861394882202,
0.42059624195098877,
0.24412277340888977,
0.3285466730594635,
-0.04023875296115875,
-1.0508322715759277,
-0.5072138905525208,
-0.24091225862503052,
-0.2067968249320984,
0.20648394525051117,
-0.6344287395477295,
0.12926079332828522,
0.6094037294387817,
0.6076301336288452,
-0.882304847240448,
-0.009535079821944237,
-0.33835840225219727,
-0.20140236616134644,
0.49256378412246704,
0.10724923014640808,
0.20773346722126007,
-0.22923919558525085,
-0.10585031658411026,
-0.1395227015018463,
-0.5642438530921936,
-0.09729922562837601,
0.06943544000387192,
0.08549188077449799,
-0.3698682188987732,
0.7021966576576233,
-0.3639628291130066,
0.5836148262023926,
0.35879749059677124,
0.4140949249267578,
0.5711351037025452,
-0.2665625214576721,
-0.3337346315383911,
0.10120626538991928,
0.9545401334762573,
0.09923470765352249,
-0.06345833837985992,
0.01622098684310913,
-0.2662547528743744,
0.07315538823604584,
0.19665256142616272,
-1.199600338935852,
-0.20803719758987427,
0.19803093373775482,
-0.4731161296367645,
-0.02749876119196415,
-0.06482040882110596,
-0.7390496730804443,
-0.11835629492998123,
0.15101422369480133,
0.890365481376648,
-0.47123438119888306,
-0.038224492222070694,
0.5863175988197327,
-0.29289254546165466,
0.04387085884809494,
0.07261877506971359,
-0.7819883823394775,
0.5200062394142151,
0.43957793712615967,
1.0988600254058838,
0.45799481868743896,
-0.15392668545246124,
-0.5088872313499451,
-0.19826050102710724,
-0.11702309548854828,
0.37330812215805054,
-0.2328379899263382,
-0.024799257516860962,
-0.12487202137708664,
0.04106651991605759,
0.0046943011693656445,
-0.2794501483440399,
0.18147897720336914,
-0.29914215207099915,
0.5478797554969788,
0.09862419217824936,
-0.5247715711593628,
-0.33207783102989197,
0.20273366570472717,
-0.5251232981681824,
1.0808309316635132,
0.11535392701625824,
-0.5686525702476501,
0.01807493343949318,
-0.6801696419715881,
-0.24792565405368805,
-0.10886672884225845,
0.11135310679674149,
-0.6172274351119995,
0.2832789123058319,
0.35480254888534546,
0.5796066522598267,
-0.14969277381896973,
0.15926948189735413,
-0.360137403011322,
-0.7793006896972656,
0.24938051402568817,
-0.5630025863647461,
0.6944069862365723,
0.012512206099927425,
-0.6329562067985535,
-0.11010918766260147,
-0.6378969550132751,
-0.106667160987854,
0.13993865251541138,
-0.04747965186834335,
-0.094356469810009,
-0.04637718200683594,
-0.08450440317392349,
0.27496764063835144,
0.3294791579246521,
-0.5873268246650696,
0.19691509008407593,
-0.8235278129577637,
0.7093613147735596,
0.5579274296760559,
0.1615867167711258,
0.4659762978553772,
-0.17436283826828003,
0.30442237854003906,
0.04241599142551422,
0.23350630700588226,
0.05075712502002716,
-0.5215140581130981,
-0.9204518795013428,
-0.13731619715690613,
0.37675902247428894,
0.3830125033855438,
-0.7260732650756836,
0.5545681715011597,
-0.43314287066459656,
-0.4938511252403259,
-0.8595031499862671,
-0.19529567658901215,
0.38073301315307617,
0.1597789078950882,
0.5868037343025208,
-0.33656665682792664,
-0.5422844290733337,
-0.99368816614151,
-0.06072995439171791,
0.2120988965034485,
-0.12134811282157898,
0.2841453552246094,
0.6476812362670898,
-0.30982616543769836,
0.48264291882514954,
-0.7268526554107666,
-0.00014077995729167014,
0.13454420864582062,
0.06044912338256836,
0.4095611572265625,
0.6071632504463196,
0.4321638345718384,
-0.4378274381160736,
-0.2653210461139679,
-0.20770710706710815,
-0.5832557082176208,
0.19242161512374878,
-0.00004650983464671299,
-0.25402936339378357,
0.1484246701002121,
0.3581469655036926,
-0.8853952884674072,
0.5134358406066895,
0.5402755737304688,
-0.6375154256820679,
0.256475031375885,
-0.052612628787755966,
0.03799376264214516,
-1.107545256614685,
0.21714067459106445,
0.3032706081867218,
-0.1935764104127884,
-0.29441553354263306,
0.007642108481377363,
-0.15027157962322235,
-0.3518465757369995,
-0.5123766660690308,
0.6437268853187561,
-0.5587225556373596,
-0.2519364655017853,
0.20517823100090027,
0.24207407236099243,
0.22592180967330933,
0.6945021748542786,
-0.11915053427219391,
0.8980882167816162,
0.6696733832359314,
-0.5848777890205383,
0.1642029881477356,
0.37299811840057373,
-0.44385576248168945,
0.0011651342501863837,
-1.0283317565917969,
0.0411282554268837,
0.12424831837415695,
0.1660478711128235,
-0.857916533946991,
0.12705790996551514,
0.6084363460540771,
-0.7827295660972595,
0.2928672432899475,
-0.3507694602012634,
-0.5228307247161865,
-0.3321987986564636,
-0.30503639578819275,
0.21855096518993378,
0.8482485413551331,
-0.5140766501426697,
0.4448603391647339,
0.25171858072280884,
-0.07167179882526398,
-0.7721743583679199,
-1.1297448873519897,
-0.03740030527114868,
0.020330918952822685,
-0.7260562181472778,
0.5058410167694092,
-0.025264719501137733,
0.026700394228100777,
0.29939141869544983,
-0.08326338231563568,
0.08672492206096649,
0.11915978789329529,
0.1720331758260727,
0.1582569032907486,
-0.6139154434204102,
0.17779260873794556,
0.24636469781398773,
-0.18782833218574524,
0.09802865982055664,
-0.5112914443016052,
0.6348918676376343,
-0.3845537602901459,
-0.22066426277160645,
-0.3760162889957428,
0.16682590544223785,
0.35159817337989807,
-0.11706709861755371,
0.8516159057617188,
1.0891309976577759,
-0.5850735306739807,
-0.11701861768960953,
-0.5303584933280945,
-0.4059547781944275,
-0.5451458692550659,
0.43400731682777405,
-0.3600282669067383,
-1.1189764738082886,
0.37773990631103516,
0.0037638098001480103,
-0.2024734914302826,
0.669013500213623,
0.40248411893844604,
0.125461608171463,
1.1408947706222534,
0.46013593673706055,
-0.008000420406460762,
0.5678741931915283,
-0.6676675081253052,
0.20688070356845856,
-0.9682958126068115,
-0.09496504813432693,
-0.28165581822395325,
-0.3661382496356964,
-0.4430382549762726,
-0.4636958837509155,
0.19687573611736298,
0.13821421563625336,
-0.7564423680305481,
0.3348783254623413,
-0.7752139568328857,
0.2671715319156647,
0.40493637323379517,
0.19165529310703278,
-0.1450139433145523,
0.36433693766593933,
-0.09400823712348938,
-0.12669634819030762,
-0.9750391840934753,
-0.3500067889690399,
0.7013753056526184,
0.44903743267059326,
0.72893226146698,
0.3975431025028229,
0.43826690316200256,
0.11660264432430267,
-0.13886144757270813,
-0.6899920701980591,
0.6567404270172119,
-0.5374077558517456,
-0.3747665286064148,
-0.1339118480682373,
-0.6065593957901001,
-0.8699513077735901,
0.21854954957962036,
-0.4583990275859833,
-0.9640945792198181,
0.35988372564315796,
-0.01916305162012577,
-0.6740483045578003,
0.2573193311691284,
-0.8039929270744324,
1.183594822883606,
0.02828848734498024,
-0.4781201183795929,
-0.4751202166080475,
-0.4565789997577667,
0.20496819913387299,
0.5050235986709595,
-0.1717861294746399,
-0.12345004081726074,
-0.006286429241299629,
0.7228316068649292,
-0.435390442609787,
1.1449968814849854,
-0.2364593893289566,
0.37375158071517944,
0.29090985655784607,
0.12795694172382355,
0.2739599645137787,
0.3746199309825897,
-0.06010303273797035,
0.5692548751831055,
-0.3352002799510956,
-0.36541858315467834,
-0.7139632105827332,
0.8135802745819092,
-0.8856364488601685,
-0.5637130737304688,
-0.4603661894798279,
-0.13666851818561554,
0.06218967214226723,
0.10399721562862396,
0.34779319167137146,
0.4989275336265564,
-0.19752250611782074,
0.2126518189907074,
0.7391783595085144,
-0.27980443835258484,
0.6827821731567383,
0.298172265291214,
-0.1394975781440735,
-0.6805424690246582,
0.8750708103179932,
0.030661966651678085,
0.06416817754507065,
0.3458268642425537,
0.17054277658462524,
-0.30168867111206055,
-0.34460508823394775,
-0.5993785262107849,
0.25200775265693665,
-0.4822976887226105,
-0.28572946786880493,
-0.6620709896087646,
-0.48271656036376953,
-0.5048582553863525,
-0.09597263485193253,
-0.5367987155914307,
-0.6421785354614258,
-0.4311787188053131,
0.03810562565922737,
0.6965540051460266,
0.5523818135261536,
-0.20767295360565186,
0.5250573754310608,
-0.8410035371780396,
0.21593065559864044,
0.18721018731594086,
0.4878961741924286,
0.11076055467128754,
-0.7484602332115173,
-0.4662683308124542,
0.15765196084976196,
-0.2295958697795868,
-0.6833844184875488,
0.43137601017951965,
0.0768217071890831,
0.56288743019104,
0.17225486040115356,
-0.41680729389190674,
0.6933146119117737,
-0.3458930552005768,
0.948864221572876,
0.17328622937202454,
-1.2837793827056885,
0.7195274829864502,
0.07735249400138855,
0.38901546597480774,
0.3931199610233307,
0.3232303261756897,
-0.7208610773086548,
0.023317895829677582,
-0.7373077869415283,
-1.031259536743164,
0.6935639381408691,
0.2655108869075775,
0.20669585466384888,
-0.09645354002714157,
0.3608100116252899,
-0.18274688720703125,
0.14535175263881683,
-0.811197817325592,
-0.2634025812149048,
-0.34314706921577454,
-0.30909591913223267,
-0.3217242956161499,
-0.26555073261260986,
0.07502848654985428,
-0.37026405334472656,
0.7820571064949036,
-0.006317072082310915,
0.6347525119781494,
0.40656837821006775,
-0.3303942084312439,
0.10870158672332764,
-0.030136095359921455,
0.6459794044494629,
0.26622599363327026,
-0.24105098843574524,
0.018330952152609825,
0.33848369121551514,
-0.46027660369873047,
0.04503187537193298,
0.3946148157119751,
-0.36696478724479675,
0.27527374029159546,
0.11475157737731934,
1.2819674015045166,
0.3960089087486267,
-0.29152560234069824,
0.7067241668701172,
-0.23219044506549835,
-0.10752026736736298,
-0.42015817761421204,
0.03161899372935295,
0.15876978635787964,
0.348492294549942,
0.1402420997619629,
0.2199804037809372,
0.3377430737018585,
-0.19229477643966675,
0.028212282806634903,
0.28994062542915344,
-0.5073826909065247,
-0.17346589267253876,
0.4359511137008667,
0.05497157946228981,
-0.3302636742591858,
0.8090185523033142,
-0.4250539541244507,
-0.4205305874347687,
0.622469425201416,
0.5240675806999207,
0.9406239986419678,
0.11699353158473969,
0.17693141102790833,
0.7158480882644653,
0.37681394815444946,
-0.288943350315094,
0.223013773560524,
0.11834456026554108,
-0.6358610987663269,
-0.754773736000061,
-0.5870653390884399,
-0.20881378650665283,
-0.07608941197395325,
-0.48862817883491516,
0.13170798122882843,
-0.5773942470550537,
-0.29818809032440186,
0.059832070022821426,
0.25541386008262634,
-0.6063408255577087,
0.11986986547708511,
0.3045864701271057,
0.8706533312797546,
-0.7374866008758545,
0.35953330993652344,
0.8215503692626953,
-0.7625349760055542,
-0.7108010053634644,
-0.11288029700517654,
-0.2271197885274887,
-0.7256826162338257,
0.392648845911026,
0.23491396009922028,
-0.03475576639175415,
0.216513529419899,
-0.5689059495925903,
-1.0158220529556274,
1.246065616607666,
0.25538569688796997,
-0.6942528486251831,
0.12310165911912918,
-0.3258904218673706,
0.3475598394870758,
-0.23474881052970886,
0.5208001136779785,
0.2625070810317993,
0.4735148847103119,
-0.1507716029882431,
-0.5236164331436157,
0.45891115069389343,
-0.40707531571388245,
0.17653043568134308,
0.24717214703559875,
-0.7387607097625732,
0.9939919710159302,
-0.10137157142162323,
-0.23815080523490906,
-0.004134094808250666,
0.7678488492965698,
0.1964282989501953,
0.12729662656784058,
0.160544291138649,
0.958450198173523,
0.6695138812065125,
-0.23193515837192535,
1.0366015434265137,
-0.26820623874664307,
0.5917303562164307,
0.8872206211090088,
0.1304013729095459,
0.8920616507530212,
0.30252599716186523,
-0.18075211346149445,
0.7965932488441467,
0.7124876976013184,
-0.4427694082260132,
0.47823143005371094,
0.28326305747032166,
-0.25438180565834045,
-0.1875278353691101,
0.2976635992527008,
-0.6523827314376831,
0.22835026681423187,
0.5038221478462219,
-0.22539012134075165,
0.04345836862921715,
-0.06727634370326996,
-0.07716625183820724,
-0.3043847978115082,
-0.3576551675796509,
0.6022036671638489,
0.2673957347869873,
-0.47065046429634094,
0.5908070802688599,
0.13636451959609985,
1.0052485466003418,
-0.5371573567390442,
-0.13723814487457275,
-0.3191169500350952,
0.4254957437515259,
-0.20263229310512543,
-0.8096139430999756,
0.3434983789920807,
-0.2330247312784195,
-0.15682050585746765,
0.20071381330490112,
0.8825088143348694,
-0.36629077792167664,
-0.5958726406097412,
0.2738172113895416,
0.4341790974140167,
0.16745540499687195,
-0.09752015024423599,
-0.9080384373664856,
0.06664317846298218,
-0.22300995886325836,
-0.583561897277832,
0.2089511603116989,
0.4401707649230957,
0.275301456451416,
0.6270837783813477,
0.5951869487762451,
-0.042786724865436554,
0.10961931943893433,
0.21674132347106934,
0.809579610824585,
-0.7537495493888855,
-0.32708269357681274,
-0.9287058711051941,
0.7102140784263611,
-0.22671206295490265,
-0.5060943961143494,
0.7634503841400146,
0.6402671337127686,
0.7953793406486511,
-0.20488330721855164,
0.4676206409931183,
-0.06079229339957237,
-0.05268074944615364,
-0.6935115456581116,
0.8556078672409058,
-0.6556841731071472,
0.14443239569664001,
-0.14659500122070312,
-0.86781245470047,
-0.2983427047729492,
1.0851483345031738,
-0.3111325800418854,
0.28214314579963684,
0.8004090785980225,
1.0518245697021484,
-0.2927738130092621,
-0.2526453137397766,
0.215671569108963,
0.5213897228240967,
-0.14337502419948578,
0.7818346619606018,
0.724668562412262,
-0.9512123465538025,
0.42313867807388306,
-0.34910428524017334,
0.12152070552110672,
-0.13733026385307312,
-0.6487844586372375,
-0.76590895652771,
-0.265232115983963,
-0.6194444298744202,
-0.6273729205131531,
0.3503609895706177,
0.8265013098716736,
0.954070508480072,
-0.6336334347724915,
-0.09788721054792404,
-0.22091282904148102,
0.08195815980434418,
-0.2551462948322296,
-0.25014013051986694,
0.3239508271217346,
-0.23118795454502106,
-0.52980637550354,
0.3983922004699707,
0.25119030475616455,
0.15557509660720825,
-0.2630307674407959,
-0.14978018403053284,
-0.340917706489563,
0.04002682864665985,
0.5197269916534424,
0.1645447164773941,
-0.5944018363952637,
-0.30148935317993164,
0.04160366952419281,
-0.32715094089508057,
0.03548314794898033,
0.4340573251247406,
-0.8352722525596619,
-0.09816798567771912,
0.4749751687049866,
0.5464538931846619,
0.9584853053092957,
-0.40442514419555664,
0.33970117568969727,
-0.877374529838562,
0.28885748982429504,
0.318415105342865,
0.5861060619354248,
0.29691600799560547,
-0.5073360800743103,
0.5978097915649414,
0.26641812920570374,
-0.5157811641693115,
-0.5732327699661255,
-0.13160784542560577,
-1.0660589933395386,
-0.4574044644832611,
1.0514638423919678,
-0.12742693722248077,
-0.3818637430667877,
0.3894787132740021,
-0.14137142896652222,
0.30829742550849915,
-0.45129087567329407,
0.5220627188682556,
0.4959814250469208,
0.300636351108551,
-0.4238763749599457,
-0.40881064534187317,
0.34160345792770386,
0.6374184489250183,
-0.5382063984870911,
-0.3009692430496216,
0.5162433981895447,
0.28401270508766174,
0.12647196650505066,
0.625835657119751,
-0.00007097795605659485,
0.42609086632728577,
0.45743000507354736,
0.5333502292633057,
-0.06599726527929306,
-0.033461518585681915,
-0.6947190761566162,
-0.004156041890382767,
-0.13731640577316284,
-0.31336477398872375
] |
Yntec/CinematicReality
|
Yntec
| 2023-08-06T10:33:24Z | 8,420 | 1 |
diffusers
|
[
"diffusers",
"text-to-image",
"license:creativeml-openrail-m",
"has_space",
"diffusers:StableDiffusionPipeline",
"region:us"
] |
text-to-image
| 2023-08-05T06:55:25Z |
---
license: creativeml-openrail-m
library_name: diffusers
pipeline_tag: text-to-image
inference: false
---
Warning: This model is horny! Add "nude, naked" to the negative prompt if want to avoid NSFW.
# TODO: Finish this model card.
|
[
-0.3734630346298218,
-0.6711011528968811,
0.446717232465744,
0.5967013835906982,
-1.051304817199707,
-0.4680379331111908,
0.6128666996955872,
-0.41595155000686646,
0.26045918464660645,
1.0481505393981934,
-0.7172074317932129,
-0.8135385513305664,
-0.5746399164199829,
0.01088909525424242,
-0.6276012659072876,
0.9045949578285217,
0.3880217969417572,
-0.011561082676053047,
-0.6773614883422852,
0.732804536819458,
-0.591205358505249,
-0.486348956823349,
-0.641922652721405,
-0.23133817315101624,
0.29280707240104675,
0.2301410734653473,
0.6966518759727478,
0.3513050079345703,
0.385194331407547,
0.20776687562465668,
0.33421769738197327,
0.16510683298110962,
-0.28736093640327454,
0.35708561539649963,
0.16416248679161072,
-0.596410870552063,
-1.1256837844848633,
-0.1251412034034729,
0.11156851798295975,
0.16700710356235504,
0.2186383455991745,
0.3814076781272888,
-0.6847313046455383,
0.5545845627784729,
-0.5034031271934509,
0.527836799621582,
-0.1570661962032318,
0.2735625207424164,
-0.2645062208175659,
-0.33873486518859863,
-0.49261391162872314,
-0.3272843658924103,
-0.20189520716667175,
-0.6561937928199768,
0.07405014336109161,
0.04266160726547241,
1.0746830701828003,
0.40648353099823,
-0.40786686539649963,
0.4728873074054718,
-0.7550274729728699,
0.4197131097316742,
-0.6318315863609314,
0.47688236832618713,
0.871769905090332,
0.04624549299478531,
0.10691466182470322,
-0.0038588892202824354,
0.030355533584952354,
-0.36856260895729065,
-0.10885046422481537,
0.3165351450443268,
-0.44109266996383667,
-0.09151282161474228,
0.3368869721889496,
-0.35537946224212646,
-0.4928779602050781,
-0.2946116626262665,
-0.9184936285018921,
0.11722306907176971,
0.785679042339325,
0.14811380207538605,
0.5266742706298828,
-0.17905569076538086,
-0.5967579483985901,
0.20809420943260193,
-0.7022754549980164,
-0.235587477684021,
0.6849123239517212,
0.18426817655563354,
-0.6921045184135437,
1.2795816659927368,
0.18733929097652435,
0.7959141731262207,
0.06715528666973114,
0.24787062406539917,
0.36702579259872437,
0.2310178577899933,
-0.3296370506286621,
-0.13202980160713196,
0.4296809732913971,
1.2748956680297852,
0.010551338084042072,
-0.32929977774620056,
-0.22953249514102936,
0.12567080557346344,
0.36623042821884155,
-0.9315943121910095,
-0.42827972769737244,
0.5256785154342651,
-0.2595211863517761,
-0.64412921667099,
0.036564718931913376,
-0.6932477951049805,
-0.421924352645874,
-0.061854396015405655,
0.3148295283317566,
-0.16636481881141663,
-0.6598705649375916,
-0.09359635412693024,
-0.2736920118331909,
0.08267921209335327,
0.2754618227481842,
-0.7378195524215698,
0.21526379883289337,
0.48013296723365784,
0.2781849503517151,
0.5796871185302734,
0.2275705337524414,
0.07561934739351273,
0.1337965428829193,
-0.607813835144043,
0.5160199999809265,
-0.3328917324542999,
-1.060815453529358,
-0.09137533605098724,
0.4772324562072754,
0.19547775387763977,
-0.242762491106987,
1.141356110572815,
-0.629523754119873,
-0.010562829673290253,
-0.45539841055870056,
0.009157267399132252,
-0.3378012776374817,
0.24706244468688965,
-0.7297943830490112,
0.6468563675880432,
-0.06802535057067871,
-0.4546669125556946,
0.405808687210083,
-0.46313390135765076,
-0.36480456590652466,
0.05768435820937157,
0.21553350985050201,
-0.614774763584137,
0.205141082406044,
-0.15035976469516754,
0.49113380908966064,
-0.2687924802303314,
0.16995537281036377,
-0.4456231892108917,
-0.41985994577407837,
0.28217074275016785,
-0.18879269063472748,
0.14436456561088562,
0.22152377665042877,
0.013606802560389042,
0.17681708931922913,
-1.1530125141143799,
-0.19015520811080933,
0.1210283488035202,
0.7578257918357849,
-0.3437804579734802,
-0.10484951734542847,
0.281000554561615,
0.11978739500045776,
0.23399285972118378,
-0.5081456303596497,
-0.11013594269752502,
-0.47118043899536133,
-0.00396733358502388,
0.6037513613700867,
-0.17178472876548767,
0.32839372754096985,
-0.8388170599937439,
0.7298430800437927,
0.20195898413658142,
0.28664693236351013,
0.020728295668959618,
-0.5868124961853027,
-0.9049501419067383,
0.024463679641485214,
-0.5466660261154175,
0.23890891671180725,
-0.5198569297790527,
0.4478355050086975,
0.7176725268363953,
-1.1308917999267578,
0.3109067380428314,
-0.5016607046127319,
0.7067536115646362,
0.03624459356069565,
0.3526013195514679,
0.15737111866474152,
-0.5131166577339172,
-0.9037702679634094,
0.1301065981388092,
-0.0542144700884819,
0.48036718368530273,
0.5719944834709167,
0.5216611623764038,
-0.0682220309972763,
0.30191218852996826,
-0.5133220553398132,
-0.36143356561660767,
0.10975519567728043,
0.016017992049455643,
0.5982542037963867,
1.0718356370925903,
0.8706346750259399,
-1.1346876621246338,
-0.1270233541727066,
-0.12705771625041962,
-0.7199662923812866,
-0.011797992512583733,
0.0641096755862236,
-0.1313636749982834,
-0.13652482628822327,
0.2508460283279419,
-0.8300795555114746,
0.5815902948379517,
0.07731775939464569,
-0.5551935434341431,
0.44424065947532654,
-0.7562094926834106,
0.1551700234413147,
-0.8465858697891235,
-0.15878205001354218,
0.5346152186393738,
-0.07441755384206772,
-0.38557180762290955,
0.0964227244257927,
0.06529934704303741,
-0.6018005609512329,
-0.6183971762657166,
0.8211240172386169,
-0.7026526927947998,
0.16616429388523102,
-0.19823488593101501,
-0.27625399827957153,
0.059516288340091705,
0.20047713816165924,
0.1796216368675232,
0.5992037057876587,
0.8389425277709961,
-0.9874609112739563,
0.6875506639480591,
0.403632789850235,
0.512278139591217,
0.35348328948020935,
-0.7842200994491577,
-0.15377165377140045,
-0.589451014995575,
-0.16489358246326447,
-1.0374852418899536,
-0.7077463865280151,
0.6839945912361145,
-0.43687185645103455,
0.5861964225769043,
-0.024108296260237694,
-0.03264418989419937,
-0.6079720258712769,
-0.4379132390022278,
0.8400741815567017,
0.6594006419181824,
-0.2970784306526184,
0.521804928779602,
0.34695327281951904,
0.2844206392765045,
-0.6400913000106812,
-0.8265331983566284,
-0.09960304945707321,
-0.06048210337758064,
-0.4203636944293976,
0.287067174911499,
0.1966162770986557,
-0.1765236258506775,
-0.14059008657932281,
-0.16903996467590332,
-0.29277074337005615,
-0.28084027767181396,
0.6213583946228027,
0.7377623319625854,
0.08882220089435577,
0.06522290408611298,
0.11451566219329834,
-0.3209607005119324,
0.6562122702598572,
0.002572485012933612,
0.47659358382225037,
-0.35361459851264954,
-0.404425710439682,
-0.6292359828948975,
0.16453242301940918,
0.4777251183986664,
-0.06621934473514557,
0.5181997418403625,
0.7643866539001465,
-0.7232158780097961,
0.07063537836074829,
-0.48395007848739624,
-0.31479525566101074,
-0.4153272211551666,
0.382785439491272,
-0.20117901265621185,
-0.02202203869819641,
0.4776898920536041,
0.3909604847431183,
-0.4496481716632843,
0.5407592058181763,
0.15211443603038788,
0.05331233888864517,
1.2278996706008911,
0.8690859079360962,
0.5923813581466675,
0.1243257150053978,
-0.42193320393562317,
-0.07085521519184113,
-0.7650560736656189,
-0.5205408334732056,
-0.3267461061477661,
0.16778334975242615,
-0.8040980696678162,
-0.3319585621356964,
0.020683687180280685,
-0.05857524275779724,
-0.3127158582210541,
0.8321418762207031,
-0.8996908068656921,
0.563848614692688,
0.20432372391223907,
0.5189411640167236,
-0.12581737339496613,
-0.6197044849395752,
0.43878740072250366,
-0.15460053086280823,
-0.3441186249256134,
-0.3199927508831024,
1.0353542566299438,
0.15847912430763245,
1.0413094758987427,
0.49879753589630127,
0.7405495047569275,
-0.09586875140666962,
0.644648551940918,
-0.465005099773407,
0.9150879383087158,
-0.41684094071388245,
-1.1436344385147095,
-0.05466560274362564,
-0.006819399539381266,
-0.31443318724632263,
0.08548533171415329,
-0.32268229126930237,
-1.014830231666565,
0.46423712372779846,
0.10470007359981537,
-0.4475669860839844,
0.4799800515174866,
-0.8571670651435852,
0.9364961385726929,
-0.2212693989276886,
-0.709407389163971,
0.5659441351890564,
-0.448404461145401,
0.9665826559066772,
0.4246141016483307,
0.4163658618927002,
-0.6489303708076477,
-0.4915193021297455,
0.3404388427734375,
-0.6029942631721497,
1.1537883281707764,
-0.32120636105537415,
0.14484865963459015,
-0.09997173398733139,
0.14962369203567505,
0.327691912651062,
0.4502497613430023,
-0.036415908485651016,
-0.21148748695850372,
0.06341865658760071,
-0.36588025093078613,
0.17088456451892853,
0.6169535517692566,
-1.1345727443695068,
-0.6744439005851746,
-0.7381492257118225,
-0.23949813842773438,
-0.14514416456222534,
-0.07494858652353287,
0.8745757341384888,
0.7982053756713867,
-0.2206033170223236,
-0.314736545085907,
0.8174419403076172,
-0.32560884952545166,
0.40070998668670654,
-0.3434752821922302,
-0.7129297256469727,
-0.4200572967529297,
1.1999434232711792,
-0.21490196883678436,
0.0872727632522583,
0.35470327734947205,
0.47488510608673096,
-0.8555601239204407,
-0.41330859065055847,
-0.616328775882721,
0.5420568585395813,
-0.5287312865257263,
-0.3460997939109802,
-0.6671023368835449,
-0.06932523846626282,
-0.6329538226127625,
-0.3207784593105316,
-0.31849560141563416,
-0.25522488355636597,
-1.2043348550796509,
0.01539895310997963,
0.7762517929077148,
0.5193776488304138,
-0.17922183871269226,
0.21789860725402832,
-1.3867169618606567,
0.39820656180381775,
0.3458867073059082,
0.37689006328582764,
-0.12687842547893524,
-0.33550286293029785,
0.4122544825077057,
-0.21200472116470337,
-0.1287263035774231,
-0.6528701782226562,
0.6757126450538635,
0.08366420120000839,
0.3140002489089966,
0.42508774995803833,
0.7069976925849915,
0.5011721849441528,
-0.056863121688365936,
0.8416848182678223,
0.9055503606796265,
-0.7590306997299194,
0.3583813011646271,
-1.0205631256103516,
0.1842527836561203,
0.23931756615638733,
0.5859298706054688,
-0.001415187492966652,
-0.5413544178009033,
-0.9549276232719421,
-0.7888606190681458,
0.6319268345832825,
0.1078265830874443,
0.7429090738296509,
-0.23715601861476898,
0.4746977388858795,
0.26562047004699707,
0.6324537992477417,
-1.4638996124267578,
-0.6776549816131592,
-0.5264745950698853,
0.4888109862804413,
0.6989248991012573,
-0.7001284956932068,
-0.1341639906167984,
-0.4936899244785309,
1.378055214881897,
0.14743009209632874,
0.28726664185523987,
0.15014737844467163,
0.1873650699853897,
-0.49120938777923584,
0.07280612736940384,
1.1044687032699585,
0.8810991048812866,
-0.7786733508110046,
-0.15270017087459564,
-0.23656360805034637,
-0.4651191234588623,
0.3369647264480591,
0.22423213720321655,
-0.42807435989379883,
0.35576707124710083,
0.1407102793455124,
0.6786426305770874,
0.3612002730369568,
-0.010878928937017918,
0.7158142328262329,
-0.2873896658420563,
-0.3658933937549591,
-0.6844438314437866,
0.1374814510345459,
0.22782549262046814,
0.11670130491256714,
0.21294371783733368,
0.8178322911262512,
0.0741204097867012,
-0.4648148715496063,
0.10580264031887054,
0.45659780502319336,
-0.8612734079360962,
-0.37396037578582764,
1.5463536977767944,
0.33471640944480896,
-0.548866331577301,
0.020738985389471054,
-0.4323645532131195,
-0.36400049924850464,
0.9774357676506042,
0.7471771240234375,
1.0663909912109375,
-0.31047987937927246,
0.5440489053726196,
1.056682825088501,
0.2847861349582672,
0.05603490024805069,
0.9674487709999084,
-0.08296681940555573,
-0.6839737892150879,
-0.08519093692302704,
-0.4477882385253906,
-0.4826313853263855,
0.15677866339683533,
-0.927695631980896,
0.7184244990348816,
-0.9485631585121155,
-0.5991424918174744,
0.3613724410533905,
-0.6083551645278931,
-0.08667074888944626,
0.726061224937439,
0.4220186173915863,
0.6059618592262268,
-0.8363706469535828,
0.672972559928894,
0.4946981370449066,
-0.6475944519042969,
-0.4160754978656769,
-0.15460602939128876,
0.06765681505203247,
-0.717612624168396,
0.7839574813842773,
0.4276644289493561,
0.12730781733989716,
-0.25546571612358093,
-0.7156874537467957,
-0.5817866325378418,
0.5061386823654175,
0.06087260693311691,
-0.2897910177707672,
-0.059136565774679184,
-0.42886853218078613,
0.3825901746749878,
-0.13995113968849182,
0.5935086011886597,
0.016458552330732346,
0.6699064373970032,
0.676189124584198,
-0.45273125171661377,
0.25433167815208435,
-0.3765786290168762,
-0.06884374469518661,
0.40138179063796997,
-0.6398117542266846,
1.3415310382843018,
-0.6099365949630737,
-0.3742540776729584,
0.9443845748901367,
0.5719558000564575,
0.15416809916496277,
0.3435433804988861,
0.4518977999687195,
0.30688220262527466,
0.3132621645927429,
-0.6227612495422363,
0.8787881731987,
0.12582892179489136,
0.3104606568813324,
1.1547154188156128,
-0.44885098934173584,
0.2528996765613556,
0.22707201540470123,
-0.13993647694587708,
0.14806553721427917,
0.8077191710472107,
-0.5228648781776428,
0.5439486503601074,
0.6236892938613892,
-0.4261418282985687,
-0.6326146125793457,
-0.2184118777513504,
-0.8554713129997253,
0.544281005859375,
0.16848401725292206,
-0.24410322308540344,
-0.6270318627357483,
0.3211551606655121,
-0.2815866470336914,
0.2610459327697754,
-0.49421465396881104,
0.6049313545227051,
0.11045249551534653,
0.011147287674248219,
0.585407555103302,
-0.22287499904632568,
0.8732303977012634,
-0.3999868631362915,
-0.2863839566707611,
0.0722125768661499,
0.04602013900876045,
-0.5490896105766296,
-0.2779035270214081,
0.4556041955947876,
-0.2310183197259903,
-0.3538922965526581,
-0.345887154340744,
0.9602190852165222,
-0.4379866421222687,
-0.8618912696838379,
0.218500554561615,
0.4278969168663025,
0.5202798247337341,
0.06476501375436783,
-0.7831602692604065,
-0.3530186712741852,
-0.13392625749111176,
0.19331398606300354,
0.046964265406131744,
0.12021711468696594,
0.07361564040184021,
0.8960277438163757,
0.7388266324996948,
-0.21809574961662292,
-0.41430264711380005,
0.3062778115272522,
0.9684438705444336,
-0.6971303820610046,
-0.690586268901825,
-0.8225418925285339,
0.6139783263206482,
-0.1768256276845932,
-0.49417242407798767,
0.8889908790588379,
0.5775812864303589,
0.5195465087890625,
-0.5283973217010498,
0.19913701713085175,
-0.1344045102596283,
0.14879310131072998,
-0.2502148747444153,
0.8648830056190491,
-0.9101420044898987,
0.1551813930273056,
-0.38906562328338623,
-0.8488596081733704,
-0.4466724395751953,
0.24257025122642517,
-0.15403977036476135,
0.01964452676475048,
0.45303675532341003,
0.8831541538238525,
0.38388651609420776,
0.6474140286445618,
0.9238576292991638,
-0.1304386556148529,
0.03995293378829956,
0.017857981845736504,
1.2043726444244385,
-0.712916374206543,
-0.18559129536151886,
-0.7585434913635254,
-0.1142493337392807,
-0.1634010672569275,
-1.3373210430145264,
-1.110526204109192,
-0.3455885350704193,
-0.3967666029930115,
-0.6860512495040894,
-0.370234876871109,
0.8101367354393005,
0.9022819995880127,
-0.5247635245323181,
-0.459087073802948,
0.040847547352313995,
0.5087720155715942,
-0.04201063886284828,
-0.2052685022354126,
0.11983399838209152,
0.384929358959198,
-0.6890622973442078,
0.09319358319044113,
-0.05266758054494858,
0.9867854714393616,
-0.18494372069835663,
0.5031530261039734,
-0.24960234761238098,
-0.3114556670188904,
0.3369680345058441,
0.32701224088668823,
-0.6096190214157104,
-0.17225965857505798,
0.12810462713241577,
0.0414876751601696,
-0.2730783224105835,
0.17177891731262207,
-0.16884639859199524,
0.15558914840221405,
0.1653660088777542,
-0.1679554432630539,
1.0272910594940186,
-0.0777086615562439,
0.535134494304657,
-0.9425494074821472,
0.50931715965271,
0.48991918563842773,
0.21505147218704224,
0.3162201941013336,
-1.1082433462142944,
0.41996827721595764,
0.43577510118484497,
-0.1864791065454483,
-1.0600875616073608,
-0.21283647418022156,
-1.4301763772964478,
-0.2708710730075836,
0.9561254382133484,
0.16295817494392395,
-1.0108181238174438,
-0.07008552551269531,
-0.5009093284606934,
-0.2084510177373886,
-0.4229462146759033,
0.15192513167858124,
0.6246940493583679,
-0.15516367554664612,
-0.3429744243621826,
-0.5807157158851624,
0.36492425203323364,
-0.004820425994694233,
-0.8889487981796265,
0.11468732357025146,
0.20876269042491913,
-0.10395433008670807,
0.592374861240387,
0.6440054178237915,
-0.03519183397293091,
0.7390165328979492,
0.4152211844921112,
0.2447277307510376,
-0.7983188033103943,
-0.28088444471359253,
0.17247824370861053,
-0.16518092155456543,
-0.42723292112350464,
-0.4999626874923706
] |
openchat/openchat_v3.1
|
openchat
| 2023-09-24T10:11:15Z | 8,398 | 5 |
transformers
|
[
"transformers",
"pytorch",
"llama",
"text-generation",
"arxiv:2309.11235",
"license:llama2",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-07-30T10:11:46Z |
---
license: llama2
---
# OpenChat: Advancing Open-source Language Models with Imperfect Data</h1>
<div align="center">
<img src="https://raw.githubusercontent.com/imoneoi/openchat/master/assets/logo_new.png" style="width: 65%">
</div>
[OpenChat](https://github.com/imoneoi/openchat) is a series of open-source language models based on supervised fine-tuning (SFT). We leverage the ~80k ShareGPT conversations with a conditioning strategy and weighted loss to achieve remarkable performance despite our simple methods. Our final vision is to develop a high-performance, open-source, and commercially available large language model, and we are continuously making progress.
**🔥 Rank #1 of 13B open-source models | 89.5% win-rate on [AlpacaEval](https://tatsu-lab.github.io/alpaca_eval/) | 7.01 score on [MT-bench](https://chat.lmsys.org/?leaderboard)**
**💲 FREE for commercial use under [Llama 2 Community License](https://ai.meta.com/resources/models-and-libraries/llama-downloads/)**
**🕒 Super efficient padding-free finetuning for applications, only 10 hours on 8xA100 80G**
## <a id="models"></a> Usage
To use these models, we highly recommend installing the OpenChat package by following the [installation guide](https://github.com/imoneoi/openchat/#installation) and using the OpenChat OpenAI-compatible API server by running the serving command from the table below. The server is optimized for high-throughput deployment using [vLLM](https://github.com/vllm-project/vllm) and can run on a GPU with at least 48GB RAM or two consumer GPUs with tensor parallelism. To enable tensor parallelism, append `--tensor-parallel-size 2` to the serving command.
When started, the server listens at `localhost:18888` for requests and is compatible with the [OpenAI ChatCompletion API specifications](https://platform.openai.com/docs/api-reference/chat). See the example request below for reference. Additionally, you can access the [OpenChat Web UI](#web-ui) for a user-friendly experience.
To deploy the server as an online service, use `--api-keys sk-KEY1 sk-KEY2 ...` to specify allowed API keys and `--disable-log-requests --disable-log-stats --log-file openchat.log` for logging only to a file. We recommend using a [HTTPS gateway](https://fastapi.tiangolo.com/es/deployment/concepts/#security-https) in front of the server for security purposes.
*Note:* If IPv6 address errors occur, which is a [vLLM issue](https://github.com/vllm-project/vllm/issues/570), please run `export NCCL_IGNORE_DISABLED_P2P=1` before starting the server.
<details>
<summary>Example request (click to expand)</summary>
```bash
curl http://localhost:18888/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "openchat_v3.2",
"messages": [{"role": "user", "content": "You are a large language model named OpenChat. Write a poem to describe yourself"}]
}'
```
</details>
| Model | Size | Context | Weights | Serving |
|--------------|------|---------|--------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| OpenChat 3.2 | 13B | 4096 | [Huggingface](https://huggingface.co/openchat/openchat_v3.2) | `python -m ochat.serving.openai_api_server --model-type openchat_v3.2 --model openchat/openchat_v3.2 --engine-use-ray --worker-use-ray --max-num-batched-tokens 5120` |
| OpenChat 3.1 | 13B | 4096 | [Huggingface](https://huggingface.co/openchat/openchat_v3.1) | `python -m ochat.serving.openai_api_server --model-type openchat_v3.1_llama2 --model openchat/openchat_v3.1 --engine-use-ray --worker-use-ray --max-num-batched-tokens 5120` |
For inference with Huggingface Transformers (slow and not recommended), follow the conversation template provided below:
<details>
<summary>Conversation templates (click to expand)</summary>
V3.2
```python
# Single-turn V3.2
tokenize("GPT4 User: Hello<|end_of_turn|>GPT4 Assistant:")
# Result: [1, 402, 7982, 29946, 4911, 29901, 15043, 32000, 402, 7982, 29946, 4007, 22137, 29901]
# Multi-turn V3.2
tokenize("GPT4 User: Hello<|end_of_turn|>GPT4 Assistant: Hi<|end_of_turn|>GPT4 User: How are you today?<|end_of_turn|>GPT4 Assistant:")
# Result: [1, 402, 7982, 29946, 4911, 29901, 15043, 32000, 402, 7982, 29946, 4007, 22137, 29901, 6324, 32000, 402, 7982, 29946, 4911, 29901, 1128, 526, 366, 9826, 29973, 32000, 402, 7982, 29946, 4007, 22137, 29901]
```
V3.1
```python
# Single-turn V3.1
tokenize("Assistant is GPT4<|end_of_turn|>User: Hello<|end_of_turn|>Assistant:")
# Result: [1, 4007, 22137, 338, 402, 7982, 29946, 32000, 4911, 29901, 15043, 32000, 4007, 22137, 29901]
# Multi-turn V3.1
tokenize("Assistant is GPT4<|end_of_turn|>User: Hello<|end_of_turn|>Assistant: Hi<|end_of_turn|>User: How are you today?<|end_of_turn|>Assistant:")
# Result: [1, 4007, 22137, 338, 402, 7982, 29946, 32000, 4911, 29901, 15043, 32000, 4007, 22137, 29901, 6324, 32000, 4911, 29901, 1128, 526, 366, 9826, 29973, 32000, 4007, 22137, 29901]
```
</details>
## <a id="benchmarks"></a> Benchmarks
We have evaluated our models using the two most popular evaluation benchmarks **, including AlpacaEval and MT-bench. Here we list the top models with our released versions, sorted by model size in descending order. The full version can be found on the [MT-bench](https://chat.lmsys.org/?leaderboard) and [AlpacaEval](https://tatsu-lab.github.io/alpaca_eval/) leaderboards.
To ensure consistency, we used the same routine as ChatGPT / GPT-4 to run these benchmarks. We started the OpenAI API-compatible server and set the `openai.api_base` to `http://localhost:18888/v1` in the benchmark program.
| **Model** | **Size** | **Context** | **💲Free** | **AlpacaEval (win rate %)** | **MT-bench (win rate adjusted %)** | **MT-bench (score)** |
|------------------|----------|-------------|------------|-----------------------------|------------------------------------|----------------------|
| | | | | **v.s. text-davinci-003** | **v.s. ChatGPT** | |
| GPT-4 | 1.8T* | 8K | ❌ | 95.3 | 82.5 | 8.99 |
| ChatGPT | 175B* | 4K | ❌ | 89.4 | 50.0 | 7.94 |
| Llama-2-70B-Chat | 70B | 4K | ✅ | 92.7 | | 6.86 |
| **OpenChat 3.2** | **13B** | **4K** | ✅ | **89.1** | **51.6** | **7.01** |
| **OpenChat 3.1** | **13B** | **4K** | ✅ | **89.5** | **50.0** | **6.65** |
| Llama-2-13B-Chat | 13B | 4K | ✅ | 81.0 | | 6.65 |
| Vicuna 1.3 | 13B | 2K | ❌ | 82.1 | 37.5 | 6.00 |
*: Estimated model size
**: The benchmark metrics represent a quantified measure of a subset of the model's capabilities. A win-rate greater than 50% does not necessarily indicate that the model is better than ChatGPT in all scenarios or for all use cases. It is essential to consider the specific tasks or applications for which the model was evaluated and compare the results accordingly.
## Limitations
**Foundation Model Limitations**
Despite its advanced capabilities, OpenChat is still bound by the limitations inherent in its foundation models. These limitations may impact the model's performance in areas such as:
- Complex reasoning
- Mathematical and arithmetic tasks
- Programming and coding challenges
**Hallucination of Non-existent Information**
OpenChat may sometimes generate information that does not exist or is not accurate, also known as "hallucination". Users should be aware of this possibility and verify any critical information obtained from the model.
## License
Our OpenChat V3 models are licensed under the [Llama 2 Community License](https://ai.meta.com/resources/models-and-libraries/llama-downloads/).
```
@misc{wang2023openchat,
title={OpenChat: Advancing Open-source Language Models with Mixed-Quality Data},
author={Guan Wang and Sijie Cheng and Xianyuan Zhan and Xiangang Li and Sen Song and Yang Liu},
year={2023},
eprint={2309.11235},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
```
|
[
-0.6322044730186462,
-0.8838617205619812,
0.31619611382484436,
0.4387264549732208,
-0.20652587711811066,
-0.14860019087791443,
-0.28355568647384644,
-0.5304557085037231,
0.32078561186790466,
0.3703356981277466,
-0.5853314399719238,
-0.4406087100505829,
-0.4485829174518585,
-0.2683420777320862,
0.024266978725790977,
1.010032296180725,
-0.05078955739736557,
-0.17248912155628204,
0.07127148658037186,
-0.46087440848350525,
-0.5698587894439697,
-0.49093499779701233,
-0.7623605132102966,
-0.2997625470161438,
0.18800640106201172,
0.29628029465675354,
0.7414708733558655,
0.35931140184402466,
0.585537314414978,
0.3706611394882202,
-0.11413566768169403,
0.28109613060951233,
-0.6238257884979248,
-0.11065515130758286,
0.27990198135375977,
-0.5252116918563843,
-0.8358616828918457,
0.12522141635417938,
0.5604915618896484,
0.3237122595310211,
-0.18532420694828033,
0.07466381043195724,
0.10831966251134872,
0.5546301603317261,
-0.5192390084266663,
0.35183146595954895,
-0.47053200006484985,
-0.02246916852891445,
-0.32433316111564636,
-0.23051421344280243,
-0.18882465362548828,
-0.573993980884552,
0.03883983567357063,
-0.6569681763648987,
-0.1921105682849884,
0.008302438072860241,
1.2630980014801025,
-0.012278595007956028,
-0.15062092244625092,
-0.16785375773906708,
-0.7123684287071228,
0.649628758430481,
-0.9593523144721985,
0.31507983803749084,
0.430582731962204,
0.43833544850349426,
-0.30265381932258606,
-0.5321254134178162,
-0.6153377294540405,
-0.18435557186603546,
-0.1536685675382614,
0.24363793432712555,
-0.3356477916240692,
-0.05585305020213127,
0.20061743259429932,
0.5931559205055237,
-0.7297436594963074,
0.16942410171031952,
-0.5206496119499207,
-0.14777466654777527,
0.5252060294151306,
0.277109295129776,
0.4171282649040222,
-0.009735183790326118,
-0.3550861179828644,
-0.25395795702934265,
-0.4435265064239502,
0.3266712427139282,
0.3387077748775482,
0.37986624240875244,
-0.6656355857849121,
0.6805345416069031,
-0.34843361377716064,
0.37662264704704285,
-0.11801406741142273,
-0.10388735681772232,
0.5754832625389099,
-0.5188040733337402,
-0.3004566431045532,
-0.22653943300247192,
1.3542112112045288,
0.5357991456985474,
0.1984887421131134,
0.11015469580888748,
0.04268687590956688,
0.07886823266744614,
-0.007731052115559578,
-0.8833804726600647,
-0.03314169868826866,
0.4604954719543457,
-0.512877881526947,
-0.2980205714702606,
-0.013814076781272888,
-0.8190749287605286,
-0.10220098495483398,
0.08152595162391663,
0.31213828921318054,
-0.7603207230567932,
-0.5364764332771301,
-0.00749016972258687,
-0.07164350897073746,
0.47439566254615784,
0.3495098054409027,
-0.7669934630393982,
0.5083588361740112,
0.6188077926635742,
1.2976691722869873,
-0.025894520804286003,
-0.3659897446632385,
-0.24247345328330994,
-0.30010515451431274,
-0.35557815432548523,
0.46713051199913025,
-0.15228945016860962,
-0.17459432780742645,
-0.23271934688091278,
-0.06912440806627274,
-0.16655226051807404,
-0.30295610427856445,
0.5519037246704102,
-0.2027408480644226,
0.34807130694389343,
-0.19957414269447327,
-0.32713279128074646,
-0.004831894766539335,
0.28149205446243286,
-0.5727153420448303,
1.0059093236923218,
-0.08624566346406937,
-0.7503926157951355,
0.014054655097424984,
-0.9995009303092957,
-0.22063036262989044,
-0.11342523247003555,
-0.007071733009070158,
-0.4665333032608032,
-0.11304046958684921,
0.390389621257782,
0.3756789565086365,
-0.4012293517589569,
-0.20358151197433472,
-0.3895702362060547,
-0.34387707710266113,
0.24576152861118317,
-0.3486096262931824,
0.9845989346504211,
0.3856547176837921,
-0.3956875503063202,
0.21600250899791718,
-0.6112317442893982,
0.33312028646469116,
0.5407271385192871,
-0.21214748919010162,
-0.09628510475158691,
-0.12377576529979706,
-0.2156328558921814,
0.075714610517025,
0.2039335072040558,
-0.6224395036697388,
0.22517059743404388,
-0.5889312028884888,
0.6653847694396973,
0.6935445666313171,
-0.05629483237862587,
0.41344740986824036,
-0.5387647747993469,
0.2540895938873291,
0.1997048705816269,
0.4933570325374603,
-0.34380844235420227,
-0.8940649628639221,
-0.9266369938850403,
-0.37168169021606445,
0.16451682150363922,
0.6742923259735107,
-0.6279067993164062,
0.5739323496818542,
-0.30652523040771484,
-0.8523690700531006,
-0.8827956914901733,
-0.15245167911052704,
0.47307533025741577,
0.124088816344738,
0.29996615648269653,
-0.4387306869029999,
-0.3851619362831116,
-0.8224635720252991,
-0.03747928887605667,
-0.3908271789550781,
0.13783958554267883,
0.5513599514961243,
0.4897622764110565,
-0.06062531843781471,
0.8705780506134033,
-0.6219798922538757,
-0.3379754424095154,
-0.1366943120956421,
-0.05830340087413788,
0.33013778924942017,
0.5721068382263184,
0.816092312335968,
-0.684353768825531,
-0.6075369119644165,
0.14946947991847992,
-0.8301757574081421,
0.16480372846126556,
0.15854375064373016,
-0.3428632915019989,
0.5115765929222107,
0.1046825498342514,
-0.8983202576637268,
0.6232436895370483,
0.5978204607963562,
-0.38096046447753906,
0.5284530520439148,
-0.21367138624191284,
0.33033785223960876,
-0.9078300595283508,
0.11729958653450012,
-0.07840406149625778,
-0.059922121465206146,
-0.642379641532898,
0.10114660859107971,
-0.03460809960961342,
-0.04426654428243637,
-0.394520103931427,
0.7146547436714172,
-0.3789346218109131,
0.017891623079776764,
0.09812168031930923,
0.1681513488292694,
-0.22462664544582367,
0.8356748819351196,
-0.20973601937294006,
0.6897782683372498,
0.4926919937133789,
-0.49860328435897827,
0.3793553113937378,
0.1859959214925766,
-0.32279083132743835,
0.47714436054229736,
-0.8901057839393616,
0.14994415640830994,
0.16126865148544312,
0.29571884870529175,
-1.2326722145080566,
-0.13752421736717224,
0.6177127361297607,
-0.728516161441803,
0.07818790525197983,
-0.1474475860595703,
-0.42335110902786255,
-0.5070174336433411,
-0.42490577697753906,
0.23952241241931915,
0.7290963530540466,
-0.38279786705970764,
0.4157816767692566,
0.28519025444984436,
0.01742372289299965,
-0.4775327742099762,
-0.6729151606559753,
-0.062458403408527374,
-0.17037896811962128,
-0.8809322714805603,
0.2292754352092743,
-0.17795386910438538,
-0.14595037698745728,
-0.060166049748659134,
0.21517297625541687,
-0.02956133894622326,
-0.15805141627788544,
0.4264073669910431,
0.26388782262802124,
-0.291266530752182,
-0.23464618623256683,
-0.30322960019111633,
-0.16444921493530273,
-0.20294588804244995,
-0.014809021726250648,
0.9148529767990112,
-0.5098401308059692,
-0.4687669277191162,
-0.6274538040161133,
0.13987545669078827,
0.897542417049408,
-0.497934490442276,
1.0593066215515137,
0.6292511820793152,
-0.21844330430030823,
0.31266316771507263,
-0.6603443622589111,
-0.1253652125597,
-0.4785715639591217,
0.24358823895454407,
-0.48629030585289,
-0.8176480531692505,
0.8278970122337341,
0.4080379903316498,
0.43558505177497864,
0.5360620617866516,
0.6374117732048035,
0.05315761640667915,
1.0565330982208252,
0.34589967131614685,
-0.200783833861351,
0.4090481102466583,
-0.38845211267471313,
0.22769948840141296,
-0.8052043318748474,
-0.2680966556072235,
-0.5957232117652893,
-0.20999783277511597,
-0.9090613126754761,
-0.42370113730430603,
0.34408336877822876,
-0.01035258173942566,
-0.4204104542732239,
0.3659658133983612,
-0.6267709136009216,
0.16701623797416687,
0.7221234440803528,
0.1151498556137085,
0.11397513747215271,
-0.19753436744213104,
-0.32834911346435547,
-0.08169350773096085,
-0.6197835206985474,
-0.4770266115665436,
1.0128506422042847,
0.5412759184837341,
0.5709254145622253,
0.23553773760795593,
0.636243462562561,
-0.08743080496788025,
0.22051705420017242,
-0.49727094173431396,
0.6105256080627441,
0.1909784972667694,
-0.6052790284156799,
-0.3547796607017517,
-0.6709513664245605,
-1.0288506746292114,
0.4896489083766937,
-0.10694481432437897,
-0.9735108613967896,
-0.07428466528654099,
0.010662357322871685,
-0.14928537607192993,
0.5264618396759033,
-0.7166575193405151,
1.0122966766357422,
-0.3025430738925934,
-0.1696922928094864,
0.013540309853851795,
-0.6200777888298035,
0.6091246008872986,
0.3180558681488037,
0.3827117681503296,
-0.1837160289287567,
0.006186687387526035,
0.6392952799797058,
-0.8455011248588562,
0.834457278251648,
-0.27685850858688354,
0.19066019356250763,
0.4363713264465332,
0.042013101279735565,
0.5530164241790771,
-0.23653562366962433,
0.05802413448691368,
0.26471152901649475,
0.10395993292331696,
-0.48463937640190125,
-0.43000295758247375,
0.952775776386261,
-1.1815099716186523,
-0.2745063900947571,
-0.419312983751297,
-0.2318837195634842,
0.016037918627262115,
0.19104774296283722,
0.3433835506439209,
0.2970111072063446,
-0.2881283164024353,
0.2269497811794281,
0.42076581716537476,
-0.5295202136039734,
0.49419283866882324,
0.4346068203449249,
-0.4123387932777405,
-0.6107338070869446,
0.8527377247810364,
0.2152293175458908,
0.443195104598999,
0.1865544319152832,
0.12796129286289215,
-0.2338884174823761,
-0.40007874369621277,
-0.46707144379615784,
0.4081557095050812,
-0.34746938943862915,
-0.09212611615657806,
-0.7731441259384155,
-0.4367930591106415,
-0.5071970224380493,
0.23500916361808777,
-0.6974495649337769,
-0.35949015617370605,
-0.1512799710035324,
0.12441251426935196,
0.5672479867935181,
0.6092304587364197,
0.075759656727314,
0.3681851029396057,
-0.6795192360877991,
0.20998521149158478,
0.17010538280010223,
0.7240834832191467,
0.23297493159770966,
-0.4918607473373413,
-0.01988951861858368,
0.4423465430736542,
-0.5114321708679199,
-0.7611423134803772,
0.3219465911388397,
0.12051379680633545,
0.624881386756897,
0.35387736558914185,
0.16593894362449646,
0.7769368290901184,
-0.3765900433063507,
0.9189289808273315,
0.2894400954246521,
-0.7243334054946899,
0.6403374671936035,
-0.3880065083503723,
0.2752534747123718,
0.303520143032074,
0.4509064853191376,
-0.661079466342926,
-0.4417498707771301,
-0.7719746828079224,
-0.793689489364624,
1.0071558952331543,
0.6472208499908447,
0.10712505131959915,
0.028846945613622665,
0.3003670573234558,
-0.21306142210960388,
0.08514750748872757,
-0.8070472478866577,
-0.4202902019023895,
-0.3194010555744171,
-0.05687575414776802,
-0.03961716219782829,
-0.033840399235486984,
0.03165656328201294,
-0.2422654777765274,
0.6255965232849121,
0.08093957602977753,
0.6800618171691895,
0.05725690722465515,
0.17953045666217804,
-0.15168966352939606,
0.14197565615177155,
0.864513099193573,
0.5898212790489197,
-0.2927429974079132,
-0.2595840394496918,
0.21526028215885162,
-0.459800124168396,
-0.09715446829795837,
0.03006592206656933,
-0.04845740646123886,
-0.17045192420482635,
0.3434344232082367,
1.1334245204925537,
0.10539881139993668,
-0.48499011993408203,
0.6218401193618774,
-0.32866308093070984,
-0.14072442054748535,
-0.26073548197746277,
0.1787024736404419,
0.31564953923225403,
0.4000173509120941,
0.30303600430488586,
-0.11094755679368973,
-0.28057941794395447,
-0.7217097282409668,
-0.20596778392791748,
0.5720703601837158,
-0.4699094593524933,
-0.37580642104148865,
0.6583976745605469,
0.09389656037092209,
-0.49375438690185547,
0.70750492811203,
-0.07775109261274338,
-0.6253669857978821,
0.602885365486145,
0.2700720727443695,
0.7875478863716125,
-0.36066970229148865,
0.09090836346149445,
0.5616478323936462,
0.46805596351623535,
-0.11130589991807938,
0.3074047267436981,
0.19817565381526947,
-0.6399858593940735,
-0.19723230600357056,
-0.6355889439582825,
-0.38266289234161377,
0.2934948801994324,
-0.47349607944488525,
0.28746137022972107,
-0.4633996784687042,
-0.317894846200943,
0.09416665136814117,
0.132765993475914,
-0.6573059558868408,
-0.13378314673900604,
-0.1365378499031067,
0.8523699641227722,
-0.5972963571548462,
0.6451775431632996,
0.5592808127403259,
-0.5937626957893372,
-0.7207923531532288,
-0.3832748830318451,
0.058620158582925797,
-0.8321399092674255,
0.1730673909187317,
0.17778280377388,
0.19948825240135193,
-0.200791135430336,
-0.6303936839103699,
-0.8152851462364197,
1.1779217720031738,
0.1379440426826477,
-0.3578864634037018,
0.0748295783996582,
0.26521262526512146,
0.6218489408493042,
-0.25560855865478516,
0.7670687437057495,
0.3981630504131317,
0.47490251064300537,
0.23083092272281647,
-1.517822027206421,
0.22395607829093933,
-0.48140138387680054,
-0.012209806591272354,
0.2834372818470001,
-1.0926681756973267,
1.1482752561569214,
-0.16504386067390442,
-0.07202963531017303,
0.2511216402053833,
0.551096498966217,
0.3767016530036926,
0.23463279008865356,
0.3767821788787842,
0.6999741792678833,
0.5095173716545105,
-0.441974014043808,
1.1223522424697876,
-0.1965179145336151,
0.3380975127220154,
0.8609460592269897,
0.05008227750658989,
0.8972454071044922,
0.19131366908550262,
-0.45380669832229614,
0.27097198367118835,
0.605109453201294,
0.22959327697753906,
0.41837096214294434,
-0.1198943629860878,
0.03726230934262276,
0.07022211700677872,
0.21637435257434845,
-0.5695394277572632,
0.4820224940776825,
0.31146565079689026,
-0.1816588044166565,
-0.0861177146434784,
0.008948029950261116,
0.3142347037792206,
-0.261892706155777,
-0.13204911351203918,
0.8854598999023438,
0.022456342354416847,
-0.8336254358291626,
0.9142019152641296,
0.16630776226520538,
0.8481289744377136,
-0.7650045156478882,
0.07951129972934723,
-0.3363943099975586,
0.40472543239593506,
-0.1518150120973587,
-0.7821378707885742,
0.172642782330513,
-0.1849561184644699,
0.21524035930633545,
0.031033247709274292,
0.5166761875152588,
-0.2509630620479584,
-0.05516676977276802,
0.42982909083366394,
0.5224314332008362,
0.41466087102890015,
-0.1863533854484558,
-0.7901790142059326,
0.4781167507171631,
0.1536841243505478,
-0.4813302755355835,
0.47454914450645447,
0.569648265838623,
-0.07151540368795395,
0.7604775428771973,
0.6730535626411438,
0.03220555931329727,
0.1031666025519371,
-0.19563506543636322,
1.092932105064392,
-0.6374916434288025,
-0.5742383003234863,
-0.9796180129051208,
0.5691162943840027,
-0.16898185014724731,
-0.5767294764518738,
0.7518897652626038,
0.579578697681427,
0.6653339266777039,
0.21343722939491272,
0.6328100562095642,
-0.37816524505615234,
0.4784890413284302,
-0.28362777829170227,
0.8270196318626404,
-0.5882627964019775,
0.11365720629692078,
-0.37150025367736816,
-0.8553816080093384,
0.03604089468717575,
0.6027699708938599,
-0.33123672008514404,
0.26101154088974,
0.3614656627178192,
0.7884088158607483,
-0.19384023547172546,
0.24103593826293945,
0.07630375027656555,
0.39499810338020325,
0.5686042308807373,
0.7813940048217773,
0.7519100904464722,
-0.7091731429100037,
0.7925122976303101,
-0.4042895436286926,
-0.5421183109283447,
-0.3646394908428192,
-0.5768338441848755,
-0.9924098253250122,
-0.7437827587127686,
-0.20194371044635773,
-0.35976293683052063,
0.06377055495977402,
0.9087406396865845,
0.7545075416564941,
-0.5908288955688477,
-0.479905903339386,
0.15106841921806335,
0.042789772152900696,
-0.27497878670692444,
-0.3065100312232971,
0.24354834854602814,
-0.25005272030830383,
-0.7864494919776917,
0.0943625420331955,
0.045126475393772125,
0.22152991592884064,
-0.2848702073097229,
-0.37677472829818726,
-0.41953927278518677,
0.13443486392498016,
0.501281201839447,
0.5042427182197571,
-0.7227112650871277,
-0.24395400285720825,
-0.07149121165275574,
-0.31216779351234436,
0.29854875802993774,
0.3762129843235016,
-0.5028703212738037,
0.3814127445220947,
0.5080355405807495,
0.08247528225183487,
0.8257766962051392,
-0.06361066550016403,
0.3715974986553192,
-0.5420969128608704,
0.2882556915283203,
0.07343809306621552,
0.23734694719314575,
0.27018076181411743,
-0.08911022543907166,
0.7142964601516724,
0.1708579957485199,
-0.5920009613037109,
-0.9767408967018127,
-0.19542750716209412,
-0.9845695495605469,
-0.1517098844051361,
0.9848360419273376,
-0.27131831645965576,
-0.34666597843170166,
0.12041263282299042,
-0.3352000415325165,
0.26144644618034363,
-0.5553334355354309,
0.4143632650375366,
0.6532176733016968,
-0.2416381984949112,
-0.229633629322052,
-0.7950618267059326,
0.36452823877334595,
0.14042821526527405,
-0.8915141820907593,
0.05024004727602005,
0.25752782821655273,
0.2727896273136139,
0.34502431750297546,
1.014564037322998,
-0.2597503960132599,
0.11644017696380615,
-0.06184223294258118,
0.1606663167476654,
-0.1356513649225235,
-0.08250436931848526,
0.01410666760057211,
0.08061861246824265,
-0.08580700308084488,
-0.5006042718887329
] |
Helsinki-NLP/opus-mt-tc-base-en-sh
|
Helsinki-NLP
| 2023-10-10T14:16:02Z | 8,396 | 0 |
transformers
|
[
"transformers",
"pytorch",
"safetensors",
"marian",
"text2text-generation",
"translation",
"opus-mt-tc",
"bs",
"en",
"hr",
"sh",
"sr",
"license:cc-by-4.0",
"model-index",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] |
translation
| 2022-10-11T08:14:41Z |
---
language:
- bs
- en
- hr
- sh
- sr
language_bcp47:
- bs_Latn
- sr_Cyrl
- sr_Latn
tags:
- translation
- opus-mt-tc
license: cc-by-4.0
model-index:
- name: opus-mt-tc-base-en-sh
results:
- task:
name: Translation eng-hrv
type: translation
args: eng-hrv
dataset:
name: flores200-dev
type: flores200-dev
args: eng-hrv
metrics:
- name: BLEU
type: bleu
value: 28.1
- name: chr-F
type: chrf
value: 0.57963
- task:
name: Translation eng-srp_Cyrl
type: translation
args: eng-srp_Cyrl
dataset:
name: flores200-dev
type: flores200-dev
args: eng-srp_Cyrl
metrics:
- name: BLEU
type: bleu
value: 32.2
- name: chr-F
type: chrf
value: 0.60096
- task:
name: Translation eng-hrv
type: translation
args: eng-hrv
dataset:
name: flores200-devtest
type: flores200-devtest
args: eng-hrv
metrics:
- name: BLEU
type: bleu
value: 28.9
- name: chr-F
type: chrf
value: 0.58652
- task:
name: Translation eng-srp_Cyrl
type: translation
args: eng-srp_Cyrl
dataset:
name: flores200-devtest
type: flores200-devtest
args: eng-srp_Cyrl
metrics:
- name: BLEU
type: bleu
value: 31.7
- name: chr-F
type: chrf
value: 0.59874
- task:
name: Translation eng-hrv
type: translation
args: eng-hrv
dataset:
name: flores101-devtest
type: flores_101
args: eng hrv devtest
metrics:
- name: BLEU
type: bleu
value: 28.7
- name: chr-F
type: chrf
value: 0.586
- task:
name: Translation eng-srp_Cyrl
type: translation
args: eng-srp_Cyrl
dataset:
name: flores101-devtest
type: flores_101
args: eng srp_Cyrl devtest
metrics:
- name: BLEU
type: bleu
value: 31.7
- name: chr-F
type: chrf
value: 0.59874
- task:
name: Translation eng-bos_Latn
type: translation
args: eng-bos_Latn
dataset:
name: tatoeba-test-v2021-08-07
type: tatoeba_mt
args: eng-bos_Latn
metrics:
- name: BLEU
type: bleu
value: 46.3
- name: chr-F
type: chrf
value: 0.666
- task:
name: Translation eng-hbs
type: translation
args: eng-hbs
dataset:
name: tatoeba-test-v2021-08-07
type: tatoeba_mt
args: eng-hbs
metrics:
- name: BLEU
type: bleu
value: 42.1
- name: chr-F
type: chrf
value: 0.631
- task:
name: Translation eng-hrv
type: translation
args: eng-hrv
dataset:
name: tatoeba-test-v2021-08-07
type: tatoeba_mt
args: eng-hrv
metrics:
- name: BLEU
type: bleu
value: 49.7
- name: chr-F
type: chrf
value: 0.691
- task:
name: Translation eng-srp_Cyrl
type: translation
args: eng-srp_Cyrl
dataset:
name: tatoeba-test-v2021-08-07
type: tatoeba_mt
args: eng-srp_Cyrl
metrics:
- name: BLEU
type: bleu
value: 45.1
- name: chr-F
type: chrf
value: 0.645
- task:
name: Translation eng-srp_Latn
type: translation
args: eng-srp_Latn
dataset:
name: tatoeba-test-v2021-08-07
type: tatoeba_mt
args: eng-srp_Latn
metrics:
- name: BLEU
type: bleu
value: 39.8
- name: chr-F
type: chrf
value: 0.613
---
# opus-mt-tc-base-en-sh
## Table of Contents
- [Model Details](#model-details)
- [Uses](#uses)
- [Risks, Limitations and Biases](#risks-limitations-and-biases)
- [How to Get Started With the Model](#how-to-get-started-with-the-model)
- [Training](#training)
- [Evaluation](#evaluation)
- [Citation Information](#citation-information)
- [Acknowledgements](#acknowledgements)
## Model Details
Neural machine translation model for translating from English (en) to Serbo-Croatian (sh).
This model is part of the [OPUS-MT project](https://github.com/Helsinki-NLP/Opus-MT), an effort to make neural machine translation models widely available and accessible for many languages in the world. All models are originally trained using the amazing framework of [Marian NMT](https://marian-nmt.github.io/), an efficient NMT implementation written in pure C++. The models have been converted to pyTorch using the transformers library by huggingface. Training data is taken from [OPUS](https://opus.nlpl.eu/) and training pipelines use the procedures of [OPUS-MT-train](https://github.com/Helsinki-NLP/Opus-MT-train).
**Model Description:**
- **Developed by:** Language Technology Research Group at the University of Helsinki
- **Model Type:** Translation (transformer-align)
- **Release**: 2021-04-20
- **License:** CC-BY-4.0
- **Language(s):**
- Source Language(s): eng
- Target Language(s): bos_Latn hbs hrv srp_Cyrl srp_Latn
- Language Pair(s): eng-bos_Latn eng-hbs eng-hrv eng-srp_Cyrl eng-srp_Latn
- Valid Target Language Labels: >>bos_Cyrl<< >>bos_Latn<< >>cnr<< >>cnr_Latn<< >>hbs<< >>hbs_Cyrl<< >>hrv<< >>srp_Cyrl<< >>srp_Latn<<
- **Original Model**: [opus+bt-2021-04-20.zip](https://object.pouta.csc.fi/Tatoeba-MT-models/eng-hbs/opus+bt-2021-04-20.zip)
- **Resources for more information:**
- [OPUS-MT-train GitHub Repo](https://github.com/Helsinki-NLP/OPUS-MT-train)
- More information about released models for this language pair: [OPUS-MT eng-hbs README](https://github.com/Helsinki-NLP/Tatoeba-Challenge/tree/master/models/eng-hbs/README.md)
- [More information about MarianNMT models in the transformers library](https://huggingface.co/docs/transformers/model_doc/marian)
- [Tatoeba Translation Challenge](https://github.com/Helsinki-NLP/Tatoeba-Challenge/
This is a multilingual translation model with multiple target languages. A sentence initial language token is required in the form of `>>id<<` (id = valid target language ID), e.g. `>>bos_Latn<<`
## Uses
This model can be used for translation and text-to-text generation.
## Risks, Limitations and Biases
**CONTENT WARNING: Readers should be aware that the model is trained on various public data sets that may contain 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)).
## How to Get Started With the Model
A short example code:
```python
from transformers import MarianMTModel, MarianTokenizer
src_text = [
">>hrv<< You're about to make a very serious mistake.",
">>hbs<< I've just been too busy."
]
model_name = "pytorch-models/opus-mt-tc-base-en-sh"
tokenizer = MarianTokenizer.from_pretrained(model_name)
model = MarianMTModel.from_pretrained(model_name)
translated = model.generate(**tokenizer(src_text, return_tensors="pt", padding=True))
for t in translated:
print( tokenizer.decode(t, skip_special_tokens=True) )
# expected output:
# Ti si o tome napraviti vrlo ozbiljnu pogrešku.
# [4]
```
You can also use OPUS-MT models with the transformers pipelines, for example:
```python
from transformers import pipeline
pipe = pipeline("translation", model="Helsinki-NLP/opus-mt-tc-base-en-sh")
print(pipe(">>hrv<< You're about to make a very serious mistake."))
# expected output: Ti si o tome napraviti vrlo ozbiljnu pogrešku.
```
## Training
- **Data**: opus+bt ([source](https://github.com/Helsinki-NLP/Tatoeba-Challenge))
- **Pre-processing**: SentencePiece (spm32k,spm32k)
- **Model Type:** transformer-align
- **Original MarianNMT Model**: [opus+bt-2021-04-20.zip](https://object.pouta.csc.fi/Tatoeba-MT-models/eng-hbs/opus+bt-2021-04-20.zip)
- **Training Scripts**: [GitHub Repo](https://github.com/Helsinki-NLP/OPUS-MT-train)
## Evaluation
* test set translations: [opus+bt-2021-04-20.test.txt](https://object.pouta.csc.fi/Tatoeba-MT-models/eng-hbs/opus+bt-2021-04-20.test.txt)
* test set scores: [opus+bt-2021-04-20.eval.txt](https://object.pouta.csc.fi/Tatoeba-MT-models/eng-hbs/opus+bt-2021-04-20.eval.txt)
* benchmark results: [benchmark_results.txt](benchmark_results.txt)
* benchmark output: [benchmark_translations.zip](benchmark_translations.zip)
| langpair | testset | chr-F | BLEU | #sent | #words |
|----------|---------|-------|-------|-------|--------|
| eng-bos_Latn | tatoeba-test-v2021-08-07 | 0.666 | 46.3 | 301 | 1650 |
| eng-hbs | tatoeba-test-v2021-08-07 | 0.631 | 42.1 | 10017 | 63927 |
| eng-hrv | tatoeba-test-v2021-08-07 | 0.691 | 49.7 | 1480 | 9396 |
| eng-srp_Cyrl | tatoeba-test-v2021-08-07 | 0.645 | 45.1 | 1580 | 9152 |
| eng-srp_Latn | tatoeba-test-v2021-08-07 | 0.613 | 39.8 | 6656 | 43729 |
| eng-hrv | flores101-devtest | 0.586 | 28.7 | 1012 | 22423 |
| eng-hrv | flores200-dev | 0.57963 | 28.1 | 997 | 21567 |
| eng-hrv | flores200-devtest | 0.58652 | 28.9 | 1012 | 22423 |
| eng-srp_Cyrl | flores101-devtest | 0.59874 | 31.7 | 1012 | 23456 |
| eng-srp_Cyrl | flores200-dev | 0.60096 | 32.2 | 997 | 22384 |
| eng-srp_Cyrl | flores200-devtest | 0.59874 | 31.7 | 1012 | 23456 |
## Citation Information
* Publications: [OPUS-MT – Building open translation services for the World](https://aclanthology.org/2020.eamt-1.61/) and [The Tatoeba Translation Challenge – Realistic Data Sets for Low Resource and Multilingual MT](https://aclanthology.org/2020.wmt-1.139/) (Please, cite if you use this model.)
```
@inproceedings{tiedemann-thottingal-2020-opus,
title = "{OPUS}-{MT} {--} Building open translation services for the World",
author = {Tiedemann, J{\"o}rg and Thottingal, Santhosh},
booktitle = "Proceedings of the 22nd Annual Conference of the European Association for Machine Translation",
month = nov,
year = "2020",
address = "Lisboa, Portugal",
publisher = "European Association for Machine Translation",
url = "https://aclanthology.org/2020.eamt-1.61",
pages = "479--480",
}
@inproceedings{tiedemann-2020-tatoeba,
title = "The Tatoeba Translation Challenge {--} Realistic Data Sets for Low Resource and Multilingual {MT}",
author = {Tiedemann, J{\"o}rg},
booktitle = "Proceedings of the Fifth Conference on Machine Translation",
month = nov,
year = "2020",
address = "Online",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2020.wmt-1.139",
pages = "1174--1182",
}
```
## Acknowledgements
The work is supported by the [European Language Grid](https://www.european-language-grid.eu/) as [pilot project 2866](https://live.european-language-grid.eu/catalogue/#/resource/projects/2866), by the [FoTran project](https://www.helsinki.fi/en/researchgroups/natural-language-understanding-with-cross-lingual-grounding), funded by the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (grant agreement No 771113), and the [MeMAD project](https://memad.eu/), funded by the European Union’s Horizon 2020 Research and Innovation Programme under grant agreement No 780069. We are also grateful for the generous computational resources and IT infrastructure provided by [CSC -- IT Center for Science](https://www.csc.fi/), Finland.
## Model conversion info
* transformers version: 4.16.2
* OPUS-MT git hash: e2a6299
* port time: Tue Oct 11 10:14:32 CEST 2022
* port machine: LM0-400-22516.local
|
[
-0.31015127897262573,
-0.5301411747932434,
0.24487155675888062,
0.2720850110054016,
-0.4119369685649872,
-0.2734620273113251,
-0.5010952353477478,
-0.3243742883205414,
0.2327539324760437,
0.31796708703041077,
-0.5396549105644226,
-0.6919975280761719,
-0.6331035494804382,
0.33243879675865173,
-0.06754165142774582,
0.8733933568000793,
-0.28558793663978577,
0.36071598529815674,
0.2027767449617386,
-0.3495979309082031,
-0.32235586643218994,
-0.47447943687438965,
-0.4298194944858551,
-0.34743809700012207,
0.34653547406196594,
0.186481311917305,
0.43827563524246216,
0.6689298152923584,
0.6195554137229919,
0.3293397128582001,
-0.26352041959762573,
0.2568396031856537,
-0.1984225958585739,
-0.09732282161712646,
0.07348767668008804,
-0.5664926171302795,
-0.6998609900474548,
-0.08014742285013199,
0.7973393201828003,
0.644444465637207,
0.08966061472892761,
0.4105909466743469,
0.07308012992143631,
0.6091375350952148,
-0.1299620270729065,
0.18290996551513672,
-0.5493785738945007,
0.12067852914333344,
-0.37596002221107483,
-0.3573688864707947,
-0.6185877323150635,
-0.2193324863910675,
0.10383176058530807,
-0.6073195934295654,
0.02049883082509041,
0.08397557586431503,
1.2640312910079956,
0.1843346804380417,
-0.3085075914859772,
-0.1543450802564621,
-0.6000217795372009,
0.9683840870857239,
-0.8446822166442871,
0.5422769784927368,
0.31084197759628296,
-0.03098846785724163,
-0.09261519461870193,
-0.5049172639846802,
-0.5278686881065369,
-0.056048281490802765,
-0.20096537470817566,
0.2875699996948242,
-0.20490558445453644,
-0.19828398525714874,
0.26109737157821655,
0.49177366495132446,
-0.6828950643539429,
-0.0037709632888436317,
-0.4892328083515167,
-0.1504792720079422,
0.4390600025653839,
0.04700168967247009,
0.3371123969554901,
-0.47251349687576294,
-0.4603864252567291,
-0.448647141456604,
-0.6601261496543884,
0.11383944749832153,
0.4273560047149658,
0.45788824558258057,
-0.6627256274223328,
0.7000718712806702,
0.048705387860536575,
0.7174962759017944,
-0.07428838312625885,
-0.07764572650194168,
0.8214506506919861,
-0.4866926670074463,
-0.17112068831920624,
-0.2091095894575119,
1.233560562133789,
0.27722224593162537,
0.10315969586372375,
-0.16246819496154785,
-0.18910163640975952,
-0.13353335857391357,
-0.1740226298570633,
-0.7827054262161255,
0.18953506648540497,
0.24561773240566254,
-0.42686182260513306,
-0.14873945713043213,
-0.08492954820394516,
-0.7142637372016907,
0.21841634809970856,
-0.34096336364746094,
0.5020536184310913,
-0.7339397072792053,
-0.38986125588417053,
0.21592317521572113,
0.07649287581443787,
0.19687794148921967,
0.02056879550218582,
-0.6029308438301086,
-0.024511337280273438,
0.2922700047492981,
0.973677933216095,
-0.22404612600803375,
-0.49013763666152954,
-0.34011414647102356,
-0.061138998717069626,
-0.23947934806346893,
0.459904283285141,
0.0032735751010477543,
-0.318904310464859,
-0.13295476138591766,
0.2586776316165924,
-0.2918066680431366,
-0.26842984557151794,
0.8907602429389954,
-0.3088044822216034,
0.5307570099830627,
-0.2540554404258728,
-0.42302206158638,
-0.2290695160627365,
0.32452553510665894,
-0.5189885497093201,
1.2170672416687012,
0.12829741835594177,
-0.9653565287590027,
0.10963230580091476,
-0.7330796718597412,
-0.25072556734085083,
-0.140578493475914,
0.17478471994400024,
-0.58749920129776,
0.04728205129504204,
0.28128525614738464,
0.40386876463890076,
-0.4844096302986145,
0.5099002718925476,
-0.02887788414955139,
-0.14183355867862701,
0.18207883834838867,
-0.5016066431999207,
1.269883155822754,
0.321370393037796,
-0.49349096417427063,
0.05536755174398422,
-0.826433002948761,
0.016552133485674858,
0.250369131565094,
-0.55295330286026,
-0.16863206028938293,
-0.18462726473808289,
0.12171265482902527,
0.3542853593826294,
0.25155723094940186,
-0.5624982714653015,
0.2044825553894043,
-0.6813085675239563,
0.3838937282562256,
0.785209596157074,
-0.24472114443778992,
0.408025860786438,
-0.2966943681240082,
0.4514991044998169,
0.21575269103050232,
0.0687151849269867,
-0.14449262619018555,
-0.6523550748825073,
-0.9431260824203491,
-0.18436357378959656,
0.6220518350601196,
0.656835675239563,
-1.1157307624816895,
0.7279410362243652,
-0.6849120855331421,
-0.7767242789268494,
-0.7948230504989624,
-0.2680547535419464,
0.6668407917022705,
0.40647703409194946,
0.6540188789367676,
-0.23555207252502441,
-0.5574035048484802,
-0.9156087040901184,
-0.2922886312007904,
-0.14803005754947662,
0.00673528341576457,
0.10411304980516434,
0.7390284538269043,
-0.15671592950820923,
0.7182043194770813,
-0.2952631115913391,
-0.37826716899871826,
-0.3073732852935791,
0.11565954238176346,
0.5179045796394348,
0.8243699073791504,
0.5539790391921997,
-0.7716261744499207,
-0.6426100730895996,
0.24350610375404358,
-0.835504412651062,
-0.10764774680137634,
0.06070331111550331,
-0.24567198753356934,
0.358144074678421,
0.12751705944538116,
-0.6464237570762634,
0.2116071581840515,
0.7170562148094177,
-0.4347262680530548,
0.4840421676635742,
-0.26493456959724426,
0.18611270189285278,
-1.5671916007995605,
0.24096637964248657,
-0.04284735396504402,
-0.10487575083971024,
-0.7139636874198914,
0.08428218215703964,
0.0868915393948555,
0.04911472275853157,
-0.6979795694351196,
0.6860880255699158,
-0.5919375419616699,
-0.019040197134017944,
0.3309459686279297,
0.0449523963034153,
-0.06259483098983765,
0.9314436912536621,
0.04418318718671799,
0.8777070045471191,
0.565546452999115,
-0.5059024095535278,
0.09850910305976868,
0.5172125101089478,
-0.36577096581459045,
0.28939560055732727,
-0.7205494046211243,
0.04204895719885826,
0.1092495396733284,
0.013410721905529499,
-0.5985449552536011,
0.019118735566735268,
0.5061643719673157,
-0.8683015704154968,
0.49706870317459106,
-0.3556175231933594,
-0.7491233348846436,
-0.3621828258037567,
-0.09922011196613312,
0.4400327205657959,
0.4908466935157776,
-0.41456758975982666,
0.7166140675544739,
0.1657947450876236,
-0.051963966339826584,
-0.636729896068573,
-0.9868597984313965,
0.012973367236554623,
-0.22916695475578308,
-0.7889693379402161,
0.38126620650291443,
-0.1863570213317871,
0.07965889573097229,
0.03060292638838291,
0.17390018701553345,
0.01678360439836979,
0.013588412664830685,
0.021625710651278496,
0.2718150317668915,
-0.3410966098308563,
0.03410344198346138,
-0.00007073112647049129,
-0.32052159309387207,
-0.18378068506717682,
-0.5267441272735596,
0.8286834359169006,
-0.47902563214302063,
-0.19094447791576385,
-0.7299550771713257,
0.18699291348457336,
0.7035535573959351,
-0.5887338519096375,
1.0520994663238525,
0.6697170734405518,
-0.2984905540943146,
0.23031063377857208,
-0.438119500875473,
-0.028345784172415733,
-0.4269314110279083,
0.4384084939956665,
-0.4737793803215027,
-0.6247929930686951,
0.6932765245437622,
0.23232118785381317,
0.20333659648895264,
0.8504638075828552,
0.7837478518486023,
0.2065645456314087,
0.8532584309577942,
0.3811286985874176,
0.1477990597486496,
0.40233945846557617,
-0.6974546909332275,
0.05010116100311279,
-0.9504661560058594,
-0.27573394775390625,
-0.7218409776687622,
-0.1532587707042694,
-0.7934886813163757,
-0.5790987014770508,
0.42109620571136475,
-0.08986157178878784,
-0.09703752398490906,
0.7379645109176636,
-0.4926067292690277,
0.11194853484630585,
0.5908789038658142,
-0.022389795631170273,
0.32451748847961426,
0.1881738305091858,
-0.5726766586303711,
-0.3536872863769531,
-0.7345250248908997,
-0.5665581226348877,
1.3366798162460327,
0.42565616965293884,
0.314044326543808,
0.18649162352085114,
0.6222522258758545,
-0.102786123752594,
0.28054046630859375,
-0.5437559485435486,
0.4881519675254822,
-0.17190517485141754,
-0.7921589016914368,
-0.20468057692050934,
-0.7173644304275513,
-0.8865666389465332,
0.5604486465454102,
-0.28340959548950195,
-0.657549262046814,
0.26873093843460083,
0.057537782937288284,
-0.06569792330265045,
0.6159747838973999,
-0.8024462461471558,
1.0181832313537598,
-0.23261934518814087,
-0.3563367426395416,
0.14225217700004578,
-0.6992778778076172,
0.20098218321800232,
-0.027020707726478577,
0.30153921246528625,
-0.0265132337808609,
0.10062995553016663,
0.8613905906677246,
-0.3359204828739166,
0.6064913272857666,
-0.09895650297403336,
-0.1528930515050888,
0.1221604123711586,
0.021848121657967567,
0.5666453242301941,
-0.25890541076660156,
-0.3356693387031555,
0.5428302884101868,
-0.06409337371587753,
-0.40449273586273193,
-0.16611512005329132,
0.504431426525116,
-0.9090710282325745,
-0.3285493552684784,
-0.49600234627723694,
-0.6797135472297668,
0.07033991068601608,
0.4736000895500183,
0.6919199228286743,
0.6217281222343445,
0.042894236743450165,
0.40632060170173645,
0.6392147541046143,
-0.5040401816368103,
0.37381988763809204,
0.5077189207077026,
-0.09561391174793243,
-0.5766764879226685,
0.9315970540046692,
0.32248130440711975,
0.4159259498119354,
0.5291359424591064,
0.13263802230358124,
-0.2451479732990265,
-0.6977373957633972,
-0.8155410289764404,
0.47548994421958923,
-0.527413010597229,
-0.23792482912540436,
-0.7760640978813171,
0.011967813596129417,
-0.3480106592178345,
0.19365425407886505,
-0.6232988238334656,
-0.6019933819770813,
-0.2482135146856308,
-0.069197878241539,
0.3242391049861908,
0.34786155819892883,
-0.043350573629140854,
0.32112061977386475,
-0.8946589827537537,
0.12928809225559235,
-0.3323022127151489,
0.29889845848083496,
-0.1325596570968628,
-0.8687441945075989,
-0.5017588138580322,
0.2300395965576172,
-0.44330522418022156,
-0.9718562960624695,
0.7709221839904785,
-0.06940014660358429,
0.32946592569351196,
0.057775773108005524,
0.030046463012695312,
0.5279067754745483,
-0.6652184724807739,
0.8266492486000061,
0.18218906223773956,
-0.8899872899055481,
0.4422163963317871,
-0.45892420411109924,
0.27950698137283325,
0.4476287364959717,
0.34454110264778137,
-0.5691184997558594,
-0.5634384155273438,
-0.7529662251472473,
-0.9059097170829773,
1.0672788619995117,
0.6590397357940674,
-0.041887033730745316,
0.045272838324308395,
0.10247499495744705,
-0.03572367504239082,
0.140546053647995,
-1.221573829650879,
-0.6089200973510742,
-0.04731385409832001,
-0.29367348551750183,
-0.1139441430568695,
-0.1421642005443573,
-0.041299086064100266,
-0.40311482548713684,
1.1065856218338013,
0.08722133934497833,
0.46456900238990784,
0.3899574875831604,
-0.32355061173439026,
-0.09682245552539825,
0.31150975823402405,
0.7296039462089539,
0.45001038908958435,
-0.24252846837043762,
-0.042756449431180954,
0.3637445569038391,
-0.4145345985889435,
0.0828268751502037,
0.15670983493328094,
-0.5002280473709106,
0.3604106903076172,
0.3640732765197754,
1.0322970151901245,
0.11935801804065704,
-0.3903625011444092,
0.5484470725059509,
-0.06813723593950272,
-0.3242871165275574,
-0.36120954155921936,
-0.46388739347457886,
0.22086626291275024,
0.027760319411754608,
0.27456504106521606,
0.21373318135738373,
-0.17391754686832428,
-0.3190597891807556,
-0.043397050350904465,
0.12816007435321808,
-0.3377188742160797,
-0.5118011236190796,
0.7639796733856201,
0.14508524537086487,
-0.32225707173347473,
0.4505971372127533,
-0.31288060545921326,
-0.7414060235023499,
0.5102247595787048,
0.3833702802658081,
0.9765211939811707,
-0.2449314296245575,
-0.023223433643579483,
0.7902531027793884,
0.6420801281929016,
-0.12426605075597763,
0.1459347903728485,
0.11323868483304977,
-0.6522139310836792,
-0.3829977810382843,
-0.8198891878128052,
0.03920042887330055,
0.020970292389392853,
-0.6929751038551331,
0.4072624742984772,
0.09472450613975525,
-0.24636024236679077,
-0.23368705809116364,
0.11159118264913559,
-0.6393097639083862,
0.015251057222485542,
-0.16108253598213196,
0.8960239291191101,
-0.8855780959129333,
0.9458317756652832,
0.5618930459022522,
-0.7099366188049316,
-0.8859014511108398,
-0.10530436038970947,
-0.28511518239974976,
-0.6488693356513977,
0.6982736587524414,
0.13863800466060638,
0.07311466336250305,
0.08146684616804123,
-0.23724150657653809,
-0.870375394821167,
1.0435682535171509,
0.5354389548301697,
-0.45469167828559875,
-0.18721002340316772,
0.34940826892852783,
0.6719851493835449,
-0.12972334027290344,
0.276489794254303,
0.367439866065979,
0.653468906879425,
-0.11410178989171982,
-1.0648577213287354,
-0.019718602299690247,
-0.5433924198150635,
0.03359377011656761,
0.273869127035141,
-0.6801620125770569,
1.0888192653656006,
0.0549444817006588,
-0.2296096682548523,
0.22488811612129211,
0.6383787989616394,
0.21304203569889069,
0.04957461357116699,
0.32295602560043335,
0.8583124279975891,
0.49095696210861206,
-0.4913722276687622,
1.117715835571289,
-0.43105459213256836,
0.6199466586112976,
0.9026926159858704,
0.2779862880706787,
0.8169235587120056,
0.5668344497680664,
-0.29707059264183044,
0.39393192529678345,
0.6067278385162354,
-0.05677938088774681,
0.25985535979270935,
-0.09220723807811737,
0.051226597279310226,
-0.1565871387720108,
-0.06264575570821762,
-0.7495399117469788,
0.24791933596134186,
0.2534496784210205,
-0.3441627621650696,
-0.05384267494082451,
0.010626297444105148,
0.23191571235656738,
0.030960608273744583,
-0.02649994008243084,
0.4747510254383087,
0.15600544214248657,
-0.7467442750930786,
1.020675778388977,
0.27746233344078064,
0.7921253442764282,
-0.6022700667381287,
0.19553479552268982,
-0.16375558078289032,
0.2550375461578369,
-0.08147367835044861,
-0.6107989549636841,
0.2377282977104187,
0.23553267121315002,
-0.23434978723526,
-0.4846172630786896,
0.07483278959989548,
-0.7083396911621094,
-0.731689453125,
0.478311151266098,
0.5169215202331543,
0.3359110951423645,
0.1793590635061264,
-0.8159530162811279,
0.0639372244477272,
0.2398645132780075,
-0.5270170569419861,
0.05340871959924698,
0.5954676270484924,
0.06340708583593369,
0.5720539093017578,
0.701099693775177,
0.24543975293636322,
0.31567639112472534,
-0.08432687073945999,
0.7011258602142334,
-0.4929458200931549,
-0.46709632873535156,
-0.8287453651428223,
0.7659973502159119,
0.06059151887893677,
-0.5262924432754517,
0.8515579700469971,
0.832434356212616,
0.9955485463142395,
-0.23305833339691162,
0.5610781908035278,
-0.11074848473072052,
0.5837582945823669,
-0.6557061672210693,
0.7039137482643127,
-0.902728796005249,
0.29764509201049805,
-0.2570662498474121,
-0.9467433094978333,
-0.3497278094291687,
0.4593575894832611,
-0.28628912568092346,
-0.0709804892539978,
0.8081046938896179,
0.7648104429244995,
-0.029520776122808456,
-0.31094780564308167,
0.1516987681388855,
0.5318912863731384,
0.34218329191207886,
0.8176156878471375,
0.5245973467826843,
-0.9458494186401367,
0.6975228190422058,
-0.3743450939655304,
-0.04928048700094223,
-0.12709185481071472,
-0.6595070958137512,
-0.8024924993515015,
-0.8010511994361877,
-0.15104810893535614,
-0.49188515543937683,
-0.1132739931344986,
1.169168472290039,
0.37416553497314453,
-0.7918578386306763,
-0.4141892194747925,
-0.030911879613995552,
0.12856809794902802,
-0.19544804096221924,
-0.19067487120628357,
0.6095854043960571,
-0.17764081060886383,
-1.104461908340454,
0.25215378403663635,
0.08163782209157944,
0.22970737516880035,
-0.05640699341893196,
-0.3347838521003723,
-0.45943549275398254,
-0.2216358631849289,
0.3197912573814392,
0.15036329627037048,
-0.8244248628616333,
0.09361041337251663,
0.2154047191143036,
-0.2184038609266281,
0.33685529232025146,
0.3119543790817261,
-0.306669145822525,
0.45539599657058716,
0.6467252969741821,
0.49152663350105286,
0.642166018486023,
-0.3139905631542206,
0.5936280488967896,
-0.7280211448669434,
0.5356658101081848,
0.19697700440883636,
0.587274968624115,
0.474899560213089,
-0.05050984025001526,
0.6363375186920166,
0.4291251599788666,
-0.2565813362598419,
-1.1356920003890991,
0.011217721737921238,
-1.0418697595596313,
-0.02290184423327446,
1.1306718587875366,
-0.2520390748977661,
-0.3896772265434265,
0.19259244203567505,
-0.1737341731786728,
0.5412471890449524,
-0.31846725940704346,
0.4559694826602936,
0.7719339728355408,
0.481295108795166,
0.1319618821144104,
-0.6969594359397888,
0.3135821521282196,
0.6010568737983704,
-0.6986637711524963,
0.003276640549302101,
0.1136244684457779,
0.2150188684463501,
0.39024877548217773,
0.5150474309921265,
-0.39139336347579956,
0.08787713944911957,
-0.2614150941371918,
0.5103920102119446,
-0.12374185770750046,
-0.19853650033473969,
-0.3936191499233246,
-0.11285260319709778,
-0.13538387417793274,
-0.15660054981708527
] |
Helsinki-NLP/opus-mt-vi-en
|
Helsinki-NLP
| 2023-08-16T12:08:32Z | 8,384 | 7 |
transformers
|
[
"transformers",
"pytorch",
"tf",
"marian",
"text2text-generation",
"translation",
"vi",
"en",
"license:apache-2.0",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] |
translation
| 2022-03-02T23:29:04Z |
---
language:
- vi
- en
tags:
- translation
license: apache-2.0
---
### vie-eng
* source group: Vietnamese
* target group: English
* OPUS readme: [vie-eng](https://github.com/Helsinki-NLP/Tatoeba-Challenge/tree/master/models/vie-eng/README.md)
* model: transformer-align
* source language(s): vie vie_Hani
* target language(s): eng
* model: transformer-align
* pre-processing: normalization + SentencePiece (spm32k,spm32k)
* download original weights: [opus-2020-06-17.zip](https://object.pouta.csc.fi/Tatoeba-MT-models/vie-eng/opus-2020-06-17.zip)
* test set translations: [opus-2020-06-17.test.txt](https://object.pouta.csc.fi/Tatoeba-MT-models/vie-eng/opus-2020-06-17.test.txt)
* test set scores: [opus-2020-06-17.eval.txt](https://object.pouta.csc.fi/Tatoeba-MT-models/vie-eng/opus-2020-06-17.eval.txt)
## Benchmarks
| testset | BLEU | chr-F |
|-----------------------|-------|-------|
| Tatoeba-test.vie.eng | 42.8 | 0.608 |
### System Info:
- hf_name: vie-eng
- source_languages: vie
- target_languages: eng
- opus_readme_url: https://github.com/Helsinki-NLP/Tatoeba-Challenge/tree/master/models/vie-eng/README.md
- original_repo: Tatoeba-Challenge
- tags: ['translation']
- languages: ['vi', 'en']
- src_constituents: {'vie', 'vie_Hani'}
- tgt_constituents: {'eng'}
- src_multilingual: False
- tgt_multilingual: False
- prepro: normalization + SentencePiece (spm32k,spm32k)
- url_model: https://object.pouta.csc.fi/Tatoeba-MT-models/vie-eng/opus-2020-06-17.zip
- url_test_set: https://object.pouta.csc.fi/Tatoeba-MT-models/vie-eng/opus-2020-06-17.test.txt
- src_alpha3: vie
- tgt_alpha3: eng
- short_pair: vi-en
- chrF2_score: 0.608
- bleu: 42.8
- brevity_penalty: 0.955
- ref_len: 20241.0
- src_name: Vietnamese
- tgt_name: English
- train_date: 2020-06-17
- src_alpha2: vi
- tgt_alpha2: en
- prefer_old: False
- long_pair: vie-eng
- helsinki_git_sha: 480fcbe0ee1bf4774bcbe6226ad9f58e63f6c535
- transformers_git_sha: 2207e5d8cb224e954a7cba69fa4ac2309e9ff30b
- port_machine: brutasse
- port_time: 2020-08-21-14:41
|
[
-0.34910157322883606,
-0.6977104544639587,
0.320622056722641,
0.4328233599662781,
-0.38540759682655334,
-0.2559579908847809,
-0.31233158707618713,
-0.35935279726982117,
0.27113449573516846,
0.39793404936790466,
-0.5805509686470032,
-0.8240498304367065,
-0.5497488975524902,
0.30994510650634766,
-0.04476628825068474,
0.9974746704101562,
-0.24967437982559204,
0.1656161993741989,
0.4628981053829193,
-0.5449033379554749,
-0.4947285056114197,
-0.29817652702331543,
-0.6832209229469299,
-0.20094943046569824,
0.43295177817344666,
0.32912254333496094,
0.39863282442092896,
0.4527665972709656,
0.6229076981544495,
0.30765148997306824,
-0.2988516092300415,
0.2702885568141937,
-0.30368772149086,
-0.17365305125713348,
-0.030797915533185005,
-0.5216678380966187,
-0.7021707892417908,
-0.22807729244232178,
0.9189897775650024,
0.4769735634326935,
0.12297656387090683,
0.4571549892425537,
-0.05720403045415878,
0.8443814516067505,
-0.2521258592605591,
0.21850979328155518,
-0.517602801322937,
-0.20029355585575104,
-0.3932935297489166,
-0.3110716938972473,
-0.5730918049812317,
-0.2825973629951477,
0.3173418343067169,
-0.5882048606872559,
0.06577392667531967,
-0.012730225920677185,
1.9172792434692383,
0.07666120678186417,
-0.4546770453453064,
-0.0360335074365139,
-0.3730148375034332,
0.9063412547111511,
-0.700809121131897,
0.47757667303085327,
0.42891165614128113,
0.0018711566226556897,
0.08392386138439178,
-0.44062113761901855,
-0.3545745611190796,
0.023419737815856934,
-0.2656604051589966,
0.3741048574447632,
-0.26354190707206726,
-0.190188467502594,
0.11627106368541718,
0.5272890329360962,
-0.8159986734390259,
0.007947918027639389,
-0.500251293182373,
-0.2011691778898239,
0.625403106212616,
-0.03432605415582657,
0.3374830484390259,
-0.6236311197280884,
-0.48193293809890747,
-0.41937145590782166,
-0.527964174747467,
0.2716958224773407,
0.42678433656692505,
0.34349724650382996,
-0.6107096076011658,
0.7653539180755615,
-0.11966090649366379,
0.6614147424697876,
0.06454333662986755,
-0.07373606413602829,
0.7282277941703796,
-0.714516282081604,
-0.25388696789741516,
-0.20312131941318512,
1.1963943243026733,
0.3130255341529846,
0.191797137260437,
0.24543604254722595,
-0.24622969329357147,
-0.20699970424175262,
-0.08466494828462601,
-0.7830878496170044,
0.05267375335097313,
0.253317266702652,
-0.4390781819820404,
-0.2108646035194397,
0.0872187614440918,
-0.8373187780380249,
0.22208945453166962,
-0.005444389767944813,
0.6160652041435242,
-0.8445895910263062,
-0.2147919088602066,
0.4343606233596802,
-0.022008974105119705,
0.4511919915676117,
0.16551408171653748,
-0.4253948926925659,
0.06750059872865677,
0.27255648374557495,
1.032196044921875,
-0.20099017024040222,
-0.39242660999298096,
-0.37729015946388245,
0.04793095588684082,
-0.08386283367872238,
0.6573701500892639,
-0.15721441805362701,
-0.4755728840827942,
-0.011502884328365326,
0.49612191319465637,
-0.24787738919258118,
-0.19968952238559723,
0.9945985078811646,
-0.3279862403869629,
0.640487790107727,
-0.30402612686157227,
-0.5871775150299072,
-0.44979238510131836,
0.2998829185962677,
-0.8659387826919556,
1.2126656770706177,
0.22314579784870148,
-0.9667375683784485,
0.3191338777542114,
-0.7400527000427246,
-0.24043767154216766,
-0.10872996598482132,
0.08903717249631882,
-0.8249101042747498,
-0.04797639697790146,
0.3553216755390167,
0.4169095456600189,
-0.4136245846748352,
0.5068594217300415,
-0.00111129239667207,
-0.15988893806934357,
-0.08183152228593826,
-0.4346109628677368,
1.4163516759872437,
0.15191544592380524,
-0.41758182644844055,
0.09128817915916443,
-0.8010170459747314,
-0.10046257823705673,
0.37723058462142944,
-0.5332350730895996,
-0.17429512739181519,
-0.1486438810825348,
0.3812539279460907,
0.11106636375188828,
0.3492112457752228,
-0.5022559762001038,
0.31399208307266235,
-0.6083278059959412,
0.19580964744091034,
0.8326744437217712,
0.09052786976099014,
0.250692754983902,
-0.5159109234809875,
0.5291627049446106,
0.2801929712295532,
-0.014851413667201996,
-0.0013172994367778301,
-0.6529675722122192,
-0.9340147376060486,
-0.3667045533657074,
0.5694448351860046,
0.8849766850471497,
-0.8437100648880005,
0.8306936025619507,
-0.8541508913040161,
-0.8421217799186707,
-0.8467280268669128,
-0.18174755573272705,
0.5247921347618103,
0.40782222151756287,
0.5871880650520325,
-0.31385278701782227,
-0.48300406336784363,
-1.1803276538848877,
-0.25277093052864075,
-0.31429651379585266,
-0.0365438349545002,
0.2508869171142578,
0.8067841529846191,
-0.06800898909568787,
0.6744688153266907,
-0.5008900761604309,
-0.6532189846038818,
-0.20708300173282623,
0.19465185701847076,
0.337781697511673,
0.7018008232116699,
0.8149006962776184,
-0.8429389595985413,
-0.6685012578964233,
0.11799949407577515,
-0.6792340874671936,
-0.21845947206020355,
0.014341541565954685,
-0.1779501587152481,
0.44554460048675537,
0.05228161811828613,
-0.42992183566093445,
0.2962528467178345,
0.6151357293128967,
-0.7100784182548523,
0.536214292049408,
-0.17466677725315094,
0.4005722999572754,
-1.5663363933563232,
0.16194124519824982,
0.08090700209140778,
-0.18607431650161743,
-0.3810497224330902,
-0.09123410284519196,
0.07549205422401428,
0.1150079071521759,
-0.6108284592628479,
0.7850684523582458,
-0.5546165108680725,
0.26522716879844666,
0.42212003469467163,
0.22065995633602142,
0.09048715233802795,
0.8522794842720032,
-0.01923178881406784,
0.9704408049583435,
0.6167753338813782,
-0.3632254898548126,
0.041407354176044464,
0.3992062509059906,
-0.45223167538642883,
0.45316511392593384,
-0.7862227559089661,
-0.29765236377716064,
0.20065653324127197,
0.051153670996427536,
-0.8737289905548096,
-0.15903621912002563,
0.12795664370059967,
-0.6940237283706665,
0.3266473412513733,
-0.1454136222600937,
-0.5513573288917542,
-0.1256287395954132,
-0.4346943497657776,
0.6110455989837646,
0.4271289110183716,
-0.19442720711231232,
0.75348961353302,
0.27574852108955383,
0.009674119763076305,
-0.6193526983261108,
-0.8850083947181702,
-0.06063706800341606,
-0.3108205199241638,
-0.8290055990219116,
0.4564972519874573,
-0.07079289853572845,
0.02165074273943901,
0.09630870819091797,
0.014433667995035648,
-0.2585964798927307,
-0.005361246410757303,
-0.10035064071416855,
0.3579822778701782,
-0.3562160134315491,
0.13183370232582092,
-0.04674389213323593,
-0.10096124559640884,
-0.3003523349761963,
-0.32927003502845764,
0.7597728371620178,
-0.5539243221282959,
-0.2146836370229721,
-0.9013716578483582,
0.16153168678283691,
0.5559651851654053,
-0.54648357629776,
0.9646102786064148,
0.7697177529335022,
-0.30672213435173035,
0.27235037088394165,
-0.6872202157974243,
0.1783825010061264,
-0.4270420968532562,
0.4133464992046356,
-0.7150534391403198,
-0.7723695635795593,
0.8626139163970947,
0.3090575933456421,
0.19334669411182404,
1.0809755325317383,
0.682995080947876,
0.12695594131946564,
0.6946463584899902,
0.3580378592014313,
-0.08233634382486343,
0.612784206867218,
-0.7087459564208984,
-0.1285725086927414,
-0.8123207092285156,
-0.16538463532924652,
-0.7907750606536865,
-0.12264065444469452,
-1.1026811599731445,
-0.38871416449546814,
0.3850563168525696,
-0.09761683642864227,
-0.16627898812294006,
0.8111056089401245,
-0.574870228767395,
0.23250196874141693,
0.6354157328605652,
0.2006131112575531,
0.3993166387081146,
-0.02238592877984047,
-0.3760908842086792,
-0.14500848948955536,
-0.47319453954696655,
-0.6913266777992249,
1.2512060403823853,
0.37630897760391235,
0.3417563736438751,
0.35832107067108154,
0.6712938547134399,
0.09500377625226974,
-0.04043306037783623,
-0.6997960805892944,
0.5773656368255615,
-0.20160453021526337,
-0.7629984021186829,
-0.35443755984306335,
-0.3957219421863556,
-1.124015212059021,
0.21393384039402008,
-0.10228975117206573,
-0.7858595848083496,
0.17983025312423706,
-0.14895667135715485,
-0.05730415880680084,
0.6305510401725769,
-0.8461225032806396,
0.9803584814071655,
0.01669900491833687,
-0.3216894268989563,
0.10748938471078873,
-0.6173424124717712,
0.23019322752952576,
-0.07455447316169739,
0.12800239026546478,
-0.17955657839775085,
-0.12120936065912247,
0.932807981967926,
-0.2682274281978607,
0.6130473613739014,
-0.020856546238064766,
-0.2720871865749359,
0.2936507761478424,
0.17050038278102875,
0.5173277258872986,
0.03755035996437073,
-0.25711968541145325,
0.5017586946487427,
0.08151524513959885,
-0.6986811757087708,
-0.18519215285778046,
0.5856602191925049,
-0.909493088722229,
-0.5475702285766602,
-0.5692740082740784,
-0.6264694333076477,
0.021351207047700882,
0.46360039710998535,
0.6362849473953247,
0.5459508299827576,
-0.13037003576755524,
0.590652585029602,
0.7508165836334229,
-0.343882292509079,
0.49588876962661743,
0.5354556441307068,
-0.028334591537714005,
-0.6118537783622742,
0.8357040286064148,
0.3035869300365448,
0.2655944228172302,
0.7223445177078247,
0.030205033719539642,
-0.16931217908859253,
-0.6869969964027405,
-0.5520049929618835,
0.44039687514305115,
-0.3691520094871521,
-0.25855308771133423,
-0.6632354855537415,
-0.18656139075756073,
-0.3960198760032654,
0.07777821272611618,
-0.4145945906639099,
-0.501309335231781,
-0.2294408082962036,
-0.27124467492103577,
0.40495991706848145,
0.29751554131507874,
0.1067298948764801,
0.2840115427970886,
-0.9150934815406799,
0.2131526619195938,
-0.04504301771521568,
0.4192655384540558,
-0.33906203508377075,
-0.8717957735061646,
-0.3607959449291229,
-0.03610498830676079,
-0.40787720680236816,
-1.1151570081710815,
0.5453276038169861,
-0.03227297216653824,
0.27714458107948303,
0.21177636086940765,
0.010676982812583447,
0.6334453225135803,
-0.5502716898918152,
1.1310213804244995,
-0.09293395280838013,
-1.014498233795166,
0.7421403527259827,
-0.5444794297218323,
0.4706660509109497,
0.7238464951515198,
0.2596530020236969,
-0.39391401410102844,
-0.621363639831543,
-0.8166193962097168,
-0.931276261806488,
0.8175522089004517,
0.6979942917823792,
-0.12977205216884613,
0.020599648356437683,
0.0018304213881492615,
-0.04548366740345955,
-0.17669005692005157,
-1.261254072189331,
-0.4377315640449524,
0.11252179741859436,
-0.44050905108451843,
0.07671942561864853,
-0.38697853684425354,
-0.19173817336559296,
-0.3083939254283905,
1.17591392993927,
0.15509021282196045,
0.22359256446361542,
0.5992958545684814,
-0.20200788974761963,
0.024913489818572998,
0.3119547963142395,
0.7828845977783203,
0.536663830280304,
-0.3432694375514984,
-0.21103042364120483,
0.3767763674259186,
-0.47547781467437744,
0.11498595774173737,
0.12781135737895966,
-0.4387151896953583,
0.3735678791999817,
0.6742953062057495,
0.9642882347106934,
0.05566490441560745,
-0.5796921849250793,
0.6619214415550232,
-0.11752167344093323,
-0.379357248544693,
-0.4730152487754822,
-0.2747669816017151,
0.061316803097724915,
0.13432666659355164,
0.24802711606025696,
-0.0666172131896019,
-0.03585164248943329,
-0.10553450882434845,
0.13108223676681519,
0.1670423001050949,
-0.43667760491371155,
-0.46375343203544617,
0.6346412301063538,
0.1406637281179428,
-0.35596567392349243,
0.3691592216491699,
-0.28219085931777954,
-0.42988118529319763,
0.6161218881607056,
0.19293850660324097,
1.266926646232605,
-0.24055251479148865,
-0.06005695462226868,
0.7759531140327454,
0.6135640144348145,
0.04792705178260803,
0.4589638411998749,
0.28407594561576843,
-0.661734938621521,
-0.2973003387451172,
-0.8176537752151489,
0.25030243396759033,
0.2157181352376938,
-0.8477293848991394,
0.5721616148948669,
0.18059435486793518,
-0.2770196199417114,
-0.11249235272407532,
0.3194180130958557,
-0.7993593811988831,
0.06294108182191849,
-0.3730035722255707,
1.0841747522354126,
-0.9973462820053101,
0.8869732618331909,
0.7532215118408203,
-0.8737271428108215,
-1.0636945962905884,
0.012115309946238995,
-0.20522832870483398,
-0.7394265532493591,
0.5337859392166138,
0.07099109888076782,
0.08574709296226501,
-0.06608806550502777,
-0.3056727349758148,
-0.8475180268287659,
1.216111421585083,
0.44660529494285583,
-0.3911616802215576,
-0.24614350497722626,
-0.01119775976985693,
0.562069833278656,
-0.08636395633220673,
0.15475326776504517,
0.49708399176597595,
0.7822421193122864,
-0.2779821455478668,
-1.3168919086456299,
0.037999995052814484,
-0.5265675187110901,
-0.02070370875298977,
0.26588448882102966,
-1.0241583585739136,
0.8516297340393066,
0.14751780033111572,
-0.2086169272661209,
0.0615575835108757,
0.6850658655166626,
0.3757031261920929,
0.012285812757909298,
0.5590007305145264,
1.0033278465270996,
0.4896622896194458,
-0.5095391869544983,
1.0596412420272827,
-0.32869213819503784,
0.6718528270721436,
1.0212104320526123,
0.24302338063716888,
0.7948976755142212,
0.5386377573013306,
-0.2901012897491455,
0.6891134977340698,
0.8280545473098755,
-0.1701570451259613,
0.3426806330680847,
-0.0271991565823555,
-0.017853813245892525,
-0.14448504149913788,
-0.2635679841041565,
-0.5693872570991516,
0.6722217798233032,
0.0795706957578659,
-0.24308443069458008,
-0.04224186763167381,
-0.21771366894245148,
0.44468849897384644,
0.07268227636814117,
-0.04493040218949318,
0.6900048851966858,
-0.11185292899608612,
-0.7347429394721985,
0.8365252017974854,
0.01995960623025894,
0.6233648061752319,
-0.6817904114723206,
0.060717735439538956,
-0.1551196426153183,
0.09005026519298553,
0.03769783675670624,
-0.8132572174072266,
0.26029539108276367,
0.18596552312374115,
-0.28957200050354004,
-0.27897897362709045,
0.16349844634532928,
-0.6149036288261414,
-0.8886287212371826,
0.517092764377594,
0.6407608389854431,
0.1601990908384323,
0.26633378863334656,
-0.7993950843811035,
-0.0589558444917202,
0.2554681897163391,
-0.7222957611083984,
-0.08330806344747543,
0.8136250972747803,
-0.005206631496548653,
0.6658317446708679,
0.35447099804878235,
0.24448563158512115,
0.039042916148900986,
0.0126526253297925,
0.6603327393531799,
-0.7619290351867676,
-0.5042682886123657,
-0.8726596236228943,
0.6917056441307068,
-0.1250467151403427,
-0.6693639755249023,
0.6870973706245422,
0.882028341293335,
1.086511492729187,
-0.0740734413266182,
0.4776681959629059,
-0.1040535494685173,
0.39037269353866577,
-0.7217897772789001,
0.7712188959121704,
-1.1257580518722534,
0.11908173561096191,
-0.32032591104507446,
-0.8118869066238403,
-0.2746601700782776,
0.33820638060569763,
-0.1891213208436966,
-0.023849954828619957,
1.0346311330795288,
0.7889987230300903,
0.05865172669291496,
-0.423400342464447,
0.0008146309410221875,
0.41385525465011597,
0.44163647294044495,
0.8613873720169067,
0.1820801943540573,
-0.9880326390266418,
0.7489859461784363,
-0.30461186170578003,
-0.03865271806716919,
-0.11046110093593597,
-0.8077910542488098,
-0.8733610510826111,
-0.9093044996261597,
-0.2756686806678772,
-0.5117391347885132,
-0.18736378848552704,
0.9771624803543091,
0.427709698677063,
-1.0786134004592896,
-0.44725286960601807,
0.01973944529891014,
0.22694887220859528,
-0.3538753390312195,
-0.3239278495311737,
0.959865391254425,
-0.16746768355369568,
-1.2805225849151611,
0.13872107863426208,
0.16379714012145996,
0.192419171333313,
-0.020033258944749832,
0.0031811653170734644,
-0.8215566873550415,
0.0027653013821691275,
0.3800545930862427,
0.030985459685325623,
-0.9540368318557739,
-0.2146148830652237,
0.139574334025383,
-0.31578102707862854,
0.2639835476875305,
0.13550852239131927,
-0.3264939486980438,
0.45005759596824646,
0.9032538533210754,
0.4755406081676483,
0.5403434038162231,
-0.12135166674852371,
0.5039736032485962,
-0.820969820022583,
0.49164631962776184,
0.26678773760795593,
0.7463383078575134,
0.23377755284309387,
-0.15054650604724884,
0.9188705682754517,
0.40918681025505066,
-0.43526485562324524,
-1.0154820680618286,
0.0075750104151666164,
-1.3984745740890503,
-0.02410806715488434,
1.0952550172805786,
-0.25110316276550293,
-0.32947179675102234,
0.21736417710781097,
-0.30292820930480957,
0.5118093490600586,
-0.5175387263298035,
0.685227632522583,
1.0564101934432983,
0.36229726672172546,
0.22775164246559143,
-0.6002961993217468,
0.3666073679924011,
0.6411740183830261,
-0.8048715591430664,
-0.2264394611120224,
0.28995823860168457,
0.262400358915329,
0.348152220249176,
0.7446499466896057,
-0.3356412947177887,
0.21740318834781647,
-0.31898579001426697,
0.23794224858283997,
0.04301523417234421,
-0.11811783909797668,
-0.35642072558403015,
0.09574548155069351,
-0.25871512293815613,
-0.3670295476913452
] |
togethercomputer/RedPajama-INCITE-7B-Chat
|
togethercomputer
| 2023-06-05T03:22:54Z | 8,351 | 90 |
transformers
|
[
"transformers",
"pytorch",
"gpt_neox",
"text-generation",
"en",
"dataset:togethercomputer/RedPajama-Data-1T",
"dataset:OpenAssistant/oasst1",
"dataset:databricks/databricks-dolly-15k",
"license:apache-2.0",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-05-04T20:24:59Z |
---
license: apache-2.0
language:
- en
datasets:
- togethercomputer/RedPajama-Data-1T
- OpenAssistant/oasst1
- databricks/databricks-dolly-15k
widget:
- text: "<human>: Write an email to my friends inviting them to come to my home on Friday for a dinner party, bring their own food to share.\n<bot>:"
example_title: "Email Writing"
- text: "<human>: Create a list of things to do in San Francisco\n<bot>:"
example_title: "Brainstorming"
inference:
parameters:
temperature: 0.7
top_p: 0.7
top_k: 50
max_new_tokens: 128
---
# RedPajama-INCITE-7B-Chat
RedPajama-INCITE-7B-Chat was developed by Together and leaders from the open-source AI community including Ontocord.ai, ETH DS3Lab, AAI CERC, Université de Montréal, MILA - Québec AI Institute, Stanford Center for Research on Foundation Models (CRFM), Stanford Hazy Research research group and LAION.
It is fine-tuned on OASST1 and Dolly2 to enhance chatting ability.
- Base Model: [RedPajama-INCITE-7B-Base](https://huggingface.co/togethercomputer/RedPajama-INCITE-7B-Base)
- Instruction-tuned Version: [RedPajama-INCITE-7B-Instruct](https://huggingface.co/togethercomputer/RedPajama-INCITE-7B-Instruct)
- Chat Version: [RedPajama-INCITE-7B-Chat](https://huggingface.co/togethercomputer/RedPajama-INCITE-7B-Chat)
## Model Details
- **Developed by**: Together Computer.
- **Model type**: Language Model
- **Language(s)**: English
- **License**: Apache 2.0
- **Model Description**: A 6.9B parameter pretrained language model.
# Quick Start
Please note that the model requires `transformers` version >= 4.25.1.
To prompt the chat model, use the following format:
```
<human>: [Instruction]
<bot>:
```
## GPU Inference
This requires a GPU with 16GB memory.
```python
import torch
import transformers
from transformers import AutoTokenizer, AutoModelForCausalLM
MIN_TRANSFORMERS_VERSION = '4.25.1'
# check transformers version
assert transformers.__version__ >= MIN_TRANSFORMERS_VERSION, f'Please upgrade transformers to version {MIN_TRANSFORMERS_VERSION} or higher.'
# init
tokenizer = AutoTokenizer.from_pretrained("togethercomputer/RedPajama-INCITE-7B-Chat")
model = AutoModelForCausalLM.from_pretrained("togethercomputer/RedPajama-INCITE-7B-Chat", torch_dtype=torch.float16)
model = model.to('cuda:0')
# infer
prompt = "<human>: Who is Alan Turing?\n<bot>:"
inputs = tokenizer(prompt, return_tensors='pt').to(model.device)
input_length = inputs.input_ids.shape[1]
outputs = model.generate(
**inputs, max_new_tokens=128, do_sample=True, temperature=0.7, top_p=0.7, top_k=50, return_dict_in_generate=True
)
token = outputs.sequences[0, input_length:]
output_str = tokenizer.decode(token)
print(output_str)
"""
Alan Mathison Turing (23 June 1912 7 June 1954) was an English computer scientist, mathematician, logician, cryptanalyst, philosopher, mathematician, and theoretical biologist.
"""
```
## GPU Inference in Int8
This requires a GPU with 12GB memory.
To run inference with int8, please ensure you have installed accelerate and bitandbytes. You can install them with the following command:
```bash
pip install accelerate
pip install bitsandbytes
```
Then you can run inference with int8 as follows:
```python
import torch
import transformers
from transformers import AutoTokenizer, AutoModelForCausalLM
MIN_TRANSFORMERS_VERSION = '4.25.1'
# check transformers version
assert transformers.__version__ >= MIN_TRANSFORMERS_VERSION, f'Please upgrade transformers to version {MIN_TRANSFORMERS_VERSION} or higher.'
# init
tokenizer = AutoTokenizer.from_pretrained("togethercomputer/RedPajama-INCITE-7B-Chat")
model = AutoModelForCausalLM.from_pretrained("togethercomputer/RedPajama-INCITE-7B-Chat", device_map='auto', torch_dtype=torch.float16, load_in_8bit=True)
# infer
prompt = "<human>: Who is Alan Turing?\n<bot>:"
inputs = tokenizer(prompt, return_tensors='pt').to(model.device)
input_length = inputs.input_ids.shape[1]
outputs = model.generate(
**inputs, max_new_tokens=128, do_sample=True, temperature=0.7, top_p=0.7, top_k=50, return_dict_in_generate=True
)
token = outputs.sequences[0, input_length:]
output_str = tokenizer.decode(token)
print(output_str)
"""
Alan Mathison Turing (23 June 1912 – 7 June 1954) was an English computer scientist, mathematician, logician, cryptanalyst, philosopher, and theoretical biologist.
"""
```
## CPU Inference
```python
import torch
import transformers
from transformers import AutoTokenizer, AutoModelForCausalLM
MIN_TRANSFORMERS_VERSION = '4.25.1'
# check transformers version
assert transformers.__version__ >= MIN_TRANSFORMERS_VERSION, f'Please upgrade transformers to version {MIN_TRANSFORMERS_VERSION} or higher.'
# init
tokenizer = AutoTokenizer.from_pretrained("togethercomputer/RedPajama-INCITE-7B-Chat")
model = AutoModelForCausalLM.from_pretrained("togethercomputer/RedPajama-INCITE-7B-Chat", torch_dtype=torch.bfloat16)
# infer
prompt = "<human>: Who is Alan Turing?\n<bot>:"
inputs = tokenizer(prompt, return_tensors='pt').to(model.device)
input_length = inputs.input_ids.shape[1]
outputs = model.generate(
**inputs, max_new_tokens=128, do_sample=True, temperature=0.7, top_p=0.7, top_k=50, return_dict_in_generate=True
)
token = outputs.sequences[0, input_length:]
output_str = tokenizer.decode(token)
print(output_str)
"""
Alan Mathison Turing, OBE, FRS, (23 June 1912 – 7 June 1954) was an English computer scientist, mathematician, logician, cryptanalyst, philosopher, and theoretical biologist.
"""
```
Please note that since `LayerNormKernelImpl` is not implemented in fp16 for CPU, we use `bfloat16` for CPU inference.
# Uses
## Direct Use
Excluded uses are described below.
### Misuse, Malicious Use, and Out-of-Scope Use
It is the responsibility of the end user to ensure that the model is used in a responsible and ethical manner.
#### Out-of-Scope Use
`RedPajama-INCITE-7B-Chat` is a language model and may not perform well for other use cases outside of its intended scope.
For example, it may not be suitable for use in safety-critical applications or for making decisions that have a significant impact on individuals or society.
It is important to consider the limitations of the model and to only use it for its intended purpose.
#### Misuse and Malicious Use
`RedPajama-INCITE-7B-Chat` is designed for language modeling.
Misuse of the model, such as using it to engage in illegal or unethical activities, is strictly prohibited and goes against the principles of the project.
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 fake news, misinformation, or propaganda
- Promoting hate speech, discrimination, or violence against individuals or groups
- Impersonating individuals or organizations without their consent
- Engaging in cyberbullying or harassment
- Defamatory content
- Spamming or scamming
- Sharing confidential or sensitive information without proper authorization
- Violating the terms of use of the model or the data used to train it
- Creating automated bots for malicious purposes such as spreading malware, phishing scams, or spamming
## Limitations
`RedPajama-INCITE-7B-Chat`, like other language models, has limitations that should be taken into consideration.
For example, the model may not always provide accurate or relevant answers, particularly for questions that are complex, ambiguous, or outside of its training data.
We therefore welcome contributions from individuals and organizations, and encourage collaboration towards creating a more robust and inclusive chatbot.
## Training
**Training Data**
Please refer to [togethercomputer/RedPajama-Data-1T](https://huggingface.co/datasets/togethercomputer/RedPajama-Data-1T)
**Training Procedure**
- **Hardware:** 8 A100
- **Optimizer:** Adam
- **Gradient Accumulations**: 1
- **Num of Tokens:** 79M tokens
- **Learning rate:** 1e-5
## Community
Join us on [Together Discord](https://discord.gg/6ZVDU8tTD4)
|
[
-0.4615757465362549,
-1.0306779146194458,
0.2414037138223648,
0.2952440679073334,
0.05966590344905853,
-0.15113341808319092,
-0.2212335467338562,
-0.494514137506485,
0.3666163980960846,
0.28591054677963257,
-0.6698046326637268,
-0.3919979929924011,
-0.7903112173080444,
0.02855554036796093,
-0.46010175347328186,
0.7216516733169556,
0.1430211067199707,
-0.07934880256652832,
-0.26156002283096313,
-0.01297957543283701,
-0.37883809208869934,
-0.4556357264518738,
-0.7618626356124878,
-0.40889695286750793,
0.062359411269426346,
0.2046327441930771,
0.6096388101577759,
0.3667308986186981,
0.606422483921051,
0.4260675609111786,
-0.09177226573228836,
0.0386069193482399,
-0.449901282787323,
-0.12438315898180008,
0.17587551474571228,
-0.5895276069641113,
-0.38879457116127014,
-0.06899929791688919,
0.47022661566734314,
0.4078221321105957,
0.03389693424105644,
0.18559619784355164,
-0.12800320982933044,
0.5399104952812195,
-0.570807695388794,
0.2634919583797455,
-0.6463845372200012,
0.01671001687645912,
-0.12237682193517685,
-0.062279585748910904,
-0.5436370968818665,
-0.2459118366241455,
-0.06882426887750626,
-0.5012578368186951,
0.12570902705192566,
-0.0761837363243103,
0.8699190616607666,
0.32619643211364746,
0.012477768585085869,
-0.2013654112815857,
-0.5571973919868469,
0.8732328414916992,
-1.079343318939209,
0.2802238166332245,
0.5503532886505127,
0.336774080991745,
-0.41848891973495483,
-0.9398024082183838,
-0.8165445923805237,
-0.21452197432518005,
-0.11428933590650558,
-0.14358091354370117,
-0.3498830795288086,
-0.04836111143231392,
0.41593918204307556,
0.24287575483322144,
-0.5918517708778381,
-0.14803336560726166,
-0.7793220281600952,
-0.2263515293598175,
0.6777353882789612,
0.1897997111082077,
0.6174578070640564,
0.010038441978394985,
-0.09007386863231659,
-0.2649434804916382,
-0.4962177574634552,
-0.024449829012155533,
0.2684439420700073,
0.20540210604667664,
-0.6372585296630859,
0.5419825315475464,
-0.06957880407571793,
0.4907553195953369,
-0.004257372580468655,
-0.1583680659532547,
0.6200374960899353,
-0.20163068175315857,
-0.3472239673137665,
-0.030234113335609436,
1.2523608207702637,
0.1688835471868515,
0.12809664011001587,
0.1869913935661316,
0.25206610560417175,
0.34380215406417847,
-0.016249066218733788,
-0.7436057329177856,
-0.5925036668777466,
0.5235185623168945,
-0.43842747807502747,
-0.2647692859172821,
0.014889325015246868,
-0.5905361175537109,
-0.20361469686031342,
0.21129648387432098,
0.6203503012657166,
-0.4790128767490387,
-0.42684319615364075,
0.12446851283311844,
-0.3643795847892761,
0.15531741082668304,
0.04361111298203468,
-0.9994169473648071,
0.34286096692085266,
0.38590818643569946,
0.6978381872177124,
0.1088603287935257,
-0.5419365167617798,
-0.03739704564213753,
-0.12208998948335648,
-0.0763513520359993,
0.3351611793041229,
-0.4591071605682373,
-0.0742979496717453,
-0.35301005840301514,
-0.058827683329582214,
-0.05404871702194214,
-0.3802783489227295,
0.17153611779212952,
-0.2714917063713074,
0.708471417427063,
0.17372357845306396,
-0.6040451526641846,
-0.2793748378753662,
0.048381730914115906,
-0.4861457943916321,
1.0242741107940674,
0.010288006626069546,
-0.9662999510765076,
-0.010186430998146534,
-1.0225849151611328,
-0.35690101981163025,
0.0006952437688596547,
-0.4055446684360504,
-0.5727428197860718,
-0.17364037036895752,
0.31092584133148193,
0.37702450156211853,
-0.3095089793205261,
0.1748822182416916,
-0.4287112057209015,
-0.29836761951446533,
0.5096361041069031,
-0.5373381972312927,
1.4343061447143555,
0.12517660856246948,
-0.7444364428520203,
0.13729049265384674,
-0.6125982403755188,
0.05230676382780075,
0.361569881439209,
0.03202822059392929,
0.12747681140899658,
-0.09801105409860611,
-0.1317443698644638,
0.27323654294013977,
0.45566415786743164,
-0.609957218170166,
0.027123169973492622,
-0.5637998580932617,
0.7620046138763428,
0.6467882990837097,
0.011605518870055676,
0.2599826157093048,
-0.49788421392440796,
0.3719363212585449,
-0.03875165432691574,
0.3649427890777588,
-0.08040569722652435,
-0.8566873073577881,
-0.8543720841407776,
-0.36329954862594604,
0.14237569272518158,
0.5768226385116577,
-0.4914212226867676,
0.7385038137435913,
-0.03836039826273918,
-0.6672649383544922,
-0.694054365158081,
-0.13819073140621185,
0.2676647901535034,
0.27499479055404663,
0.4835967719554901,
-0.2141105681657791,
-0.7063284516334534,
-0.7776097059249878,
-0.08639468252658844,
-0.2536611258983612,
-0.020070059224963188,
0.4861394464969635,
0.6484091281890869,
-0.530498743057251,
0.7013991475105286,
-0.513824462890625,
-0.0851527601480484,
-0.21571744978427887,
0.026522409170866013,
0.5075189471244812,
0.6899838447570801,
0.4733813405036926,
-0.5254608988761902,
-0.5202959775924683,
-0.09437084943056107,
-0.95318204164505,
0.04633256793022156,
-0.1127246618270874,
-0.1983138769865036,
0.3560792803764343,
0.39687854051589966,
-0.871874213218689,
0.5786229372024536,
0.5902120471000671,
-0.5277702808380127,
0.42916497588157654,
-0.19606387615203857,
0.22896693646907806,
-1.0736302137374878,
0.12186520546674728,
-0.2476019710302353,
-0.11191818118095398,
-0.5624327063560486,
0.012185534462332726,
-0.11947397887706757,
-0.04296059533953667,
-0.7665415406227112,
0.7867116928100586,
-0.2856033742427826,
0.19314239919185638,
-0.1509978324174881,
0.0025295864325016737,
-0.201873317360878,
0.6906572580337524,
-0.11151901632547379,
0.5779300928115845,
0.7426904439926147,
-0.6356229186058044,
0.48324307799339294,
0.3547690510749817,
-0.20620082318782806,
0.024754654616117477,
-0.7532473802566528,
0.21791988611221313,
0.0450938455760479,
0.08131029456853867,
-1.0715707540512085,
-0.06698516756296158,
0.5538638830184937,
-0.9933943748474121,
0.17277900874614716,
0.015083936974406242,
-0.4212647080421448,
-0.3779186010360718,
-0.25290292501449585,
0.3618915379047394,
0.8888752460479736,
-0.448032408952713,
0.6190138459205627,
0.7116376161575317,
0.025791525840759277,
-0.6132587790489197,
-0.7709720730781555,
-0.09675652533769608,
-0.2376285195350647,
-0.9246898293495178,
0.12849554419517517,
-0.29921355843544006,
-0.3428266942501068,
-0.10073092579841614,
-0.013820922002196312,
-0.10122129321098328,
0.1732788383960724,
0.30063849687576294,
0.3214015066623688,
0.10270684212446213,
-0.25402700901031494,
-0.059314046055078506,
-0.047758881002664566,
0.4037508964538574,
0.02802831493318081,
0.8906762003898621,
-0.23278789222240448,
-0.17516255378723145,
-0.8028984665870667,
0.18415600061416626,
0.5953131318092346,
0.10371609777212143,
0.9980584383010864,
0.5886608362197876,
-0.499581903219223,
-0.13136370480060577,
-0.4678560197353363,
-0.6350863575935364,
-0.5521072745323181,
0.39898306131362915,
-0.2766302227973938,
-0.7664183974266052,
0.5414002537727356,
0.36343681812286377,
0.28153517842292786,
0.7667676210403442,
0.8366872668266296,
-0.1446327120065689,
0.9839064478874207,
0.43405595421791077,
-0.08074899017810822,
0.5384095907211304,
-0.6169134378433228,
0.17205138504505157,
-0.6202822923660278,
-0.3028831481933594,
-0.5385867953300476,
-0.29375550150871277,
-0.5953096747398376,
-0.3905209004878998,
0.2023058533668518,
-0.14453868567943573,
-0.6242092847824097,
0.48841696977615356,
-0.79188072681427,
0.36544549465179443,
0.6299008727073669,
0.12843364477157593,
-0.05285581573843956,
0.05702883005142212,
-0.040169596672058105,
-0.03086979128420353,
-0.792975664138794,
-0.3089759349822998,
1.0489392280578613,
0.48372671008110046,
0.816704273223877,
0.06340283155441284,
0.5934421420097351,
0.1573358029127121,
0.11244566738605499,
-0.24769438803195953,
0.6253905296325684,
0.10257965326309204,
-0.8956862688064575,
-0.39924800395965576,
-0.6591600775718689,
-1.0219874382019043,
0.19010642170906067,
-0.22338920831680298,
-0.940662145614624,
-0.10089679807424545,
0.2742655575275421,
-0.01759973354637623,
0.26439937949180603,
-0.8020710349082947,
1.0850129127502441,
-0.13557229936122894,
-0.024237193167209625,
-0.3448869585990906,
-0.7672045826911926,
0.4074305295944214,
0.33865565061569214,
0.25810807943344116,
-0.17391103506088257,
0.29692038893699646,
0.967163622379303,
-0.5232648849487305,
1.039212942123413,
-0.10122381150722504,
0.2940123975276947,
0.31996381282806396,
0.10904192924499512,
0.336398184299469,
-0.026544207707047462,
0.2542906403541565,
0.6244741678237915,
0.07194934785366058,
-0.4091648757457733,
-0.4977501630783081,
0.8278673887252808,
-1.2552787065505981,
-0.4474356174468994,
-0.47777464985847473,
-0.4121517539024353,
0.0898207426071167,
0.23299920558929443,
0.5074776411056519,
0.3359525203704834,
0.17614145576953888,
0.21945640444755554,
0.522813081741333,
-0.3500943183898926,
0.3863551616668701,
0.1281791776418686,
-0.2178712636232376,
-0.5438063144683838,
0.8924168944358826,
-0.09502026438713074,
0.15015490353107452,
0.32168641686439514,
0.2048446238040924,
-0.31694144010543823,
-0.22156952321529388,
-0.2875252962112427,
0.514691174030304,
-0.6340415477752686,
-0.1691124141216278,
-0.7923108339309692,
-0.4609566330909729,
-0.5082574486732483,
-0.10627838224172592,
-0.46996206045150757,
-0.6205066442489624,
-0.450619637966156,
0.2051078975200653,
0.5515979528427124,
0.3703464865684509,
0.07309700548648834,
0.19747883081436157,
-0.5764120221138,
0.38443830609321594,
0.08829843997955322,
0.1970485895872116,
0.020726855844259262,
-0.8371251821517944,
-0.13774532079696655,
0.25847360491752625,
-0.3884875476360321,
-0.67677241563797,
0.45564520359039307,
0.12337476015090942,
0.6401556134223938,
0.15700051188468933,
0.08610739558935165,
0.5851028561592102,
-0.24052688479423523,
0.8389512896537781,
0.3691473603248596,
-0.9033333659172058,
0.5865843296051025,
-0.009130788035690784,
0.40535491704940796,
0.2921296954154968,
0.40405455231666565,
-0.45626357197761536,
-0.669165313243866,
-1.067944884300232,
-0.9029340744018555,
0.835869312286377,
0.5577663779258728,
0.16164790093898773,
-0.13874074816703796,
0.10145912319421768,
-0.01681600511074066,
0.12900575995445251,
-1.010778546333313,
-0.7853862047195435,
-0.1915876716375351,
-0.43476250767707825,
0.17109227180480957,
0.006249989848583937,
-0.12095377594232559,
-0.4447041153907776,
1.0533661842346191,
0.16907168924808502,
0.7693784832954407,
0.015013772994279861,
-0.1784023642539978,
0.0011788156116381288,
-0.04068736732006073,
0.633976936340332,
0.8317663073539734,
-0.14717496931552887,
0.012393482029438019,
0.27896127104759216,
-0.608838677406311,
0.012034515850245953,
0.07412363588809967,
-0.1751367449760437,
-0.037920281291007996,
0.47350358963012695,
0.9546642303466797,
-0.05203397944569588,
-0.593616247177124,
0.34935641288757324,
-0.4432770907878876,
-0.29828500747680664,
-0.5886384844779968,
0.3910506069660187,
0.2357039749622345,
0.33164334297180176,
0.24236077070236206,
-0.008643770590424538,
-0.1596079170703888,
-0.4130152463912964,
0.07304035872220993,
0.5344308018684387,
-0.12566789984703064,
-0.2279880940914154,
0.8364030718803406,
0.10451996326446533,
-0.58160001039505,
0.8684086799621582,
-0.040158264338970184,
-0.3360253870487213,
0.6807392835617065,
0.6468729376792908,
0.8381004333496094,
-0.0031198265496641397,
-0.0893421620130539,
0.5566504001617432,
0.3328515589237213,
0.0082484669983387,
0.4193955659866333,
0.09652963280677795,
-0.8487458825111389,
-0.33261749148368835,
-0.3998982906341553,
-0.2665000259876251,
0.2735171616077423,
-0.3022492229938507,
0.2939908504486084,
-0.5445810556411743,
-0.2648985981941223,
0.09062045812606812,
0.14863482117652893,
-0.5987211465835571,
-0.08212574571371078,
0.029436828568577766,
0.8768635392189026,
-0.8741797804832458,
0.802473247051239,
0.6088711619377136,
-0.38990965485572815,
-0.7635942101478577,
-0.41514989733695984,
-0.0659746527671814,
-0.8132457733154297,
0.4355601966381073,
0.2107684463262558,
0.049491871148347855,
0.10238546878099442,
-0.7325307130813599,
-0.7421621084213257,
1.0214505195617676,
0.5340492725372314,
-0.346057653427124,
0.11390379071235657,
-0.08230963349342346,
0.3802430331707001,
-0.11240450292825699,
0.6400022506713867,
0.48628345131874084,
0.3590012490749359,
0.051154278218746185,
-0.9592779278755188,
0.013947227969765663,
-0.47084975242614746,
-0.2294982522726059,
0.3720075190067291,
-0.4654718339443207,
0.994666337966919,
-0.17563623189926147,
-0.14752762019634247,
-0.06894470751285553,
0.9165197610855103,
0.4444236755371094,
0.01866518147289753,
0.2745160162448883,
0.679746687412262,
0.6845183968544006,
-0.02236141823232174,
0.878545343875885,
-0.5485159754753113,
0.6101071834564209,
0.8247339129447937,
0.29293742775917053,
0.6971465349197388,
0.4190424680709839,
-0.5260887145996094,
0.5586782097816467,
0.34087905287742615,
-0.022654298692941666,
0.4584676921367645,
0.08625204861164093,
-0.2571064531803131,
0.018278447911143303,
0.3696921169757843,
-0.5021839141845703,
0.24351729452610016,
0.4703750014305115,
-0.3548915684223175,
0.11041246354579926,
-0.1938709318637848,
0.13746990263462067,
-0.193673774600029,
-0.05121239647269249,
0.638732373714447,
0.13398785889148712,
-0.45970115065574646,
0.9874435067176819,
0.0719631165266037,
0.897193431854248,
-0.6187913417816162,
-0.11110366135835648,
-0.18288777768611908,
0.437974214553833,
-0.16476008296012878,
-0.5733610987663269,
0.262349933385849,
-0.19446013867855072,
-0.029061971232295036,
0.1494765430688858,
0.47746556997299194,
-0.49580255150794983,
-0.5434088110923767,
0.1693972498178482,
0.08806426078081131,
0.6072198152542114,
0.05880085751414299,
-0.9519954919815063,
0.5328807234764099,
0.1980164498090744,
-0.16636167466640472,
0.2511483430862427,
0.16474397480487823,
0.1471061259508133,
0.8670163750648499,
0.5603846311569214,
0.04721437022089958,
0.16810627281665802,
-0.25049489736557007,
0.6683300137519836,
-0.7035394310951233,
-0.500246524810791,
-1.1408400535583496,
0.4527214765548706,
0.026044385507702827,
-0.3608477711677551,
0.8276645541191101,
0.46409523487091064,
1.0506937503814697,
-0.08661229908466339,
0.775091826915741,
-0.41718626022338867,
0.19754977524280548,
-0.27055245637893677,
0.8287526369094849,
-0.39716237783432007,
0.11725110560655594,
-0.27373844385147095,
-0.7688091397285461,
-0.26913750171661377,
1.220960259437561,
-0.045841485261917114,
0.3170773684978485,
0.6998996734619141,
0.936173141002655,
0.04253373667597771,
-0.09568385034799576,
0.18741357326507568,
0.45733606815338135,
0.5155416131019592,
0.7315622568130493,
0.5286327004432678,
-0.6973172426223755,
0.5000472664833069,
-0.5869600176811218,
-0.2906016707420349,
-0.20107734203338623,
-0.6769545078277588,
-1.1801115274429321,
-0.6977797746658325,
-0.40466275811195374,
-0.5784462094306946,
-0.0397467277944088,
1.24808931350708,
0.7391606569290161,
-0.7829524874687195,
-0.4381100535392761,
-0.14515531063079834,
0.14893238246440887,
-0.21435754001140594,
-0.2957887053489685,
0.3950958549976349,
-0.20269209146499634,
-0.7569333910942078,
0.20464490354061127,
0.16317960619926453,
0.13577929139137268,
-0.39587560296058655,
-0.20795024931430817,
-0.34846165776252747,
0.0021895202808082104,
0.4081191122531891,
0.5721372365951538,
-0.6918334364891052,
-0.14695826172828674,
-0.11661899089813232,
-0.1499718427658081,
0.19886770844459534,
0.2848133444786072,
-0.7711920142173767,
0.32363009452819824,
0.5919027924537659,
0.49193111062049866,
0.7499416470527649,
-0.3398500382900238,
0.4483996629714966,
-0.5088017582893372,
0.30953294038772583,
0.28369203209877014,
0.3815104365348816,
0.2548316419124603,
-0.4313789904117584,
0.26819396018981934,
0.3082718849182129,
-0.6615442037582397,
-0.8808149099349976,
-0.01920437067747116,
-0.89976966381073,
-0.32790473103523254,
1.0006614923477173,
0.07322613894939423,
-0.43610164523124695,
-0.029183123260736465,
-0.20774385333061218,
0.25949278473854065,
-0.4547646939754486,
0.9696822166442871,
0.4416336715221405,
-0.4327637255191803,
-0.2730059027671814,
-0.3512093722820282,
0.3898627758026123,
0.25698941946029663,
-0.8651503324508667,
0.059139177203178406,
0.22166842222213745,
0.37833818793296814,
0.15010657906532288,
1.0097614526748657,
-0.11471106857061386,
0.4493149518966675,
0.1542082577943802,
0.4127584993839264,
-0.14486899971961975,
-0.3262469172477722,
-0.15913958847522736,
-0.031793925911188126,
0.012201855890452862,
-0.2842695415019989
] |
lmsys/vicuna-7b-v1.1
|
lmsys
| 2023-08-01T18:26:25Z | 8,347 | 72 |
transformers
|
[
"transformers",
"pytorch",
"llama",
"text-generation",
"arxiv:2302.13971",
"arxiv:2306.05685",
"has_space",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-04-12T21:43:30Z |
---
inference: false
---
**NOTE: New version available**
Please check out a newer version of the weights [here](https://github.com/lm-sys/FastChat/blob/main/docs/vicuna_weights_version.md).
<br>
# Vicuna Model Card
## Model Details
Vicuna is a chat assistant trained by fine-tuning LLaMA on user-shared conversations collected from ShareGPT.
- **Developed by:** [LMSYS](https://lmsys.org/)
- **Model type:** An auto-regressive language model based on the transformer architecture.
- **License:** Non-commercial license
- **Finetuned from model:** [LLaMA](https://arxiv.org/abs/2302.13971).
### Model Sources
- **Repository:** https://github.com/lm-sys/FastChat
- **Blog:** https://lmsys.org/blog/2023-03-30-vicuna/
- **Paper:** https://arxiv.org/abs/2306.05685
- **Demo:** https://chat.lmsys.org/
## Uses
The primary use of Vicuna is research on large language models and chatbots.
The primary intended users of the model are researchers and hobbyists in natural language processing, machine learning, and artificial intelligence.
## How to Get Started with the Model
Command line interface: https://github.com/lm-sys/FastChat#vicuna-weights.
APIs (OpenAI API, Huggingface API): https://github.com/lm-sys/FastChat/tree/main#api.
## Training Details
Vicuna v1.1 is fine-tuned from LLaMA with supervised instruction fine-tuning.
The training data is around 70K conversations collected from ShareGPT.com.
See more details in the "Training Details of Vicuna Models" section in the appendix of this [paper](https://arxiv.org/pdf/2306.05685.pdf).
## Evaluation
Vicuna is evaluated with standard benchmarks, human preference, and LLM-as-a-judge. See more details in this [paper](https://arxiv.org/pdf/2306.05685.pdf) and [leaderboard](https://huggingface.co/spaces/lmsys/chatbot-arena-leaderboard).
## Difference between different versions of Vicuna
See [vicuna_weights_version.md](https://github.com/lm-sys/FastChat/blob/main/docs/vicuna_weights_version.md)
## Acknowledgement
Special thanks to [@TheBloke](https://huggingface.co/TheBloke) for hosting this merged version of weights earlier.
|
[
-0.19089636206626892,
-0.8556607961654663,
0.3675157427787781,
0.49296969175338745,
-0.5546621680259705,
-0.23006536066532135,
-0.24316954612731934,
-0.601273238658905,
0.43311619758605957,
0.37415316700935364,
-0.5475422739982605,
-0.5080896615982056,
-0.6907879114151001,
-0.033947914838790894,
-0.1529504507780075,
0.9208521842956543,
0.06989116221666336,
0.22003915905952454,
-0.11664380133152008,
-0.41482892632484436,
-0.9258224368095398,
-0.5258358716964722,
-1.0530881881713867,
-0.40239182114601135,
0.6676226258277893,
0.4663408100605011,
0.6281150579452515,
0.5261459350585938,
0.3654738664627075,
0.41460487246513367,
-0.09683598577976227,
0.2632994055747986,
-0.6003077030181885,
0.06503044068813324,
0.369621604681015,
-0.8900249600410461,
-0.7486552596092224,
-0.2532634139060974,
0.572435200214386,
0.09804031252861023,
-0.2878502309322357,
0.19950126111507416,
0.01713811233639717,
0.4891005754470825,
-0.34525540471076965,
0.3665734827518463,
-0.6075643301010132,
-0.24704129993915558,
-0.22242213785648346,
-0.574682354927063,
-0.27731427550315857,
-0.3346121609210968,
-0.15037831664085388,
-0.48711058497428894,
-0.05782264471054077,
-0.06998209655284882,
1.1383029222488403,
0.5722234845161438,
-0.3737906813621521,
-0.17737990617752075,
-0.6028665900230408,
0.6335557699203491,
-0.9391517043113708,
0.4555835425853729,
0.4442540407180786,
0.6078901290893555,
-0.23479720950126648,
-0.6073856353759766,
-0.508841335773468,
-0.39195436239242554,
0.07936207205057144,
-0.05336775630712509,
-0.28645965456962585,
0.03244766965508461,
0.033974070101976395,
0.4822191298007965,
-0.37047213315963745,
0.4206897020339966,
-0.582208514213562,
0.019017577171325684,
0.6280120015144348,
0.313357949256897,
0.16973885893821716,
-0.19358132779598236,
-0.3929845094680786,
-0.42020538449287415,
-0.2858837842941284,
-0.022101158276200294,
0.3768020570278168,
0.5355785489082336,
-0.6155061721801758,
0.565424919128418,
-0.29125747084617615,
0.5912874937057495,
-0.03781047835946083,
-0.1956855058670044,
0.5332222580909729,
-0.1339651495218277,
-0.4414692521095276,
-0.1606622338294983,
1.1852991580963135,
0.5296024680137634,
0.027630794793367386,
0.16242533922195435,
0.045410484075546265,
-0.15175405144691467,
0.16189496219158173,
-0.8245547413825989,
0.010369687341153622,
0.5266542434692383,
-0.30038097500801086,
-0.5265953540802002,
-0.19160562753677368,
-0.3361787796020508,
-0.5204886794090271,
-0.23258686065673828,
0.46660178899765015,
-0.4464918076992035,
-0.4017198085784912,
0.3480721712112427,
-0.008730527944862843,
0.31329146027565,
0.5488491654396057,
-0.6449275016784668,
0.457847535610199,
0.5056633353233337,
1.0844993591308594,
0.02184673771262169,
-0.3962381184101105,
-0.2685230076313019,
-0.4236305356025696,
-0.13442178070545197,
0.8582497835159302,
0.06862153857946396,
-0.27801814675331116,
-0.1405184417963028,
0.20278748869895935,
-0.026527851819992065,
-0.5442534685134888,
0.6989678740501404,
-0.3250715434551239,
0.3815642297267914,
-0.1877376288175583,
-0.5318946242332458,
0.03396397456526756,
0.24766544997692108,
-0.6442219614982605,
1.2833093404769897,
0.09104693681001663,
-0.8200871348381042,
0.12412409484386444,
-0.5197272300720215,
-0.012109121307730675,
0.0862230733036995,
0.018654165789484978,
-0.5408297181129456,
-0.07505468279123306,
0.026333073154091835,
0.5750147104263306,
-0.4206582009792328,
0.3467453718185425,
-0.2726556658744812,
-0.5491806268692017,
0.24562598764896393,
-0.40310224890708923,
1.0993375778198242,
0.23862212896347046,
-0.31610363721847534,
0.47217652201652527,
-0.7605028748512268,
-0.08867071568965912,
0.3653221130371094,
-0.32769864797592163,
-0.4094066917896271,
-0.14815156161785126,
-0.016140799969434738,
-0.007809447590261698,
0.5437751412391663,
-0.2899986207485199,
0.3507067859172821,
-0.04037192463874817,
0.2078169584274292,
0.73878413438797,
-0.08568524569272995,
0.2906646728515625,
-0.46048587560653687,
0.3827120065689087,
-0.05636121332645416,
0.695016622543335,
0.24340014159679413,
-0.5138891339302063,
-1.0605475902557373,
-0.4740925431251526,
0.06625662744045258,
0.6409053802490234,
-0.8008630275726318,
0.6973944902420044,
-0.4543771743774414,
-1.0756709575653076,
-0.8914653658866882,
0.26823922991752625,
0.3844733238220215,
0.05398125573992729,
0.35156092047691345,
-0.5512529015541077,
-0.7365849018096924,
-0.893937349319458,
-0.17320989072322845,
-0.3407263457775116,
-0.08117808401584625,
0.42132827639579773,
0.2621656358242035,
-0.4795076847076416,
0.8223409056663513,
-0.5032517910003662,
-0.343860387802124,
-0.1567399650812149,
-0.010225287638604641,
0.06867945939302444,
0.424247682094574,
0.6590900421142578,
-0.626781702041626,
-0.38144922256469727,
-0.11592507362365723,
-0.7508618235588074,
-0.07756505906581879,
-0.05720071867108345,
-0.44100266695022583,
0.04332136735320091,
0.4648173451423645,
-0.6860901713371277,
0.3873361647129059,
0.7211912870407104,
-0.4397817552089691,
0.4843529760837555,
-0.23657941818237305,
-0.022337131202220917,
-1.3994619846343994,
-0.044644080102443695,
0.10713318735361099,
-0.5105979442596436,
-0.5507233142852783,
-0.023568779230117798,
-0.02597685158252716,
0.4556754231452942,
-0.7275810241699219,
1.0466382503509521,
-0.43137821555137634,
0.14572830498218536,
-0.4955090880393982,
-0.07732812315225601,
-0.09341314435005188,
0.7824527025222778,
-0.04646974802017212,
0.6394329071044922,
0.42210274934768677,
-0.8644586205482483,
0.5065719485282898,
0.1620890349149704,
-0.27364838123321533,
0.309286892414093,
-0.9606291651725769,
0.24718421697616577,
0.0006798746762797236,
0.36467766761779785,
-0.8617236018180847,
-0.03098100982606411,
0.6173015832901001,
-0.5959240794181824,
0.22141146659851074,
-0.04941375553607941,
-0.4577754735946655,
-0.20395053923130035,
-0.31519654393196106,
0.22246021032333374,
0.3499827980995178,
-0.4412112534046173,
0.2733074128627777,
0.4942913353443146,
0.12133710831403732,
-0.5847904682159424,
-0.6068201661109924,
-0.004255600739270449,
-0.41681212186813354,
-0.09147472679615021,
0.05599622055888176,
-0.3037674129009247,
-0.2523287236690521,
-0.21715861558914185,
0.07266499102115631,
-0.09860260039567947,
0.10226157307624817,
0.30103549361228943,
0.04062417149543762,
0.052758269011974335,
0.16180434823036194,
-0.14579921960830688,
0.017718985676765442,
-0.16936439275741577,
-0.09377319365739822,
1.0435916185379028,
-0.46244969964027405,
0.11358202993869781,
-0.8749006390571594,
-0.15671955049037933,
0.6020236611366272,
0.10698910057544708,
1.336116075515747,
0.8589907884597778,
-0.24623586237430573,
0.18818753957748413,
-0.7220971584320068,
-0.2174159288406372,
-0.5069301724433899,
0.43509358167648315,
-0.18599581718444824,
-0.859275758266449,
0.6311567425727844,
0.4258520007133484,
0.32501670718193054,
0.47314780950546265,
0.827479898929596,
0.10401954501867294,
0.575130045413971,
0.9184702634811401,
-0.17303510010242462,
1.062707781791687,
-0.2729291319847107,
-0.18080702424049377,
-0.819137454032898,
-0.3131163418292999,
-0.6665868759155273,
-0.15338289737701416,
-0.7091107964515686,
-0.6752523183822632,
0.011192552745342255,
-0.00865662470459938,
-0.34555453062057495,
0.7712368369102478,
-0.5586849451065063,
0.04088110476732254,
0.5632818341255188,
0.3743153214454651,
0.2839049696922302,
-0.08385305106639862,
0.2638116180896759,
0.12556442618370056,
-0.684859573841095,
-0.5462376475334167,
1.0513849258422852,
0.6668509840965271,
0.7190579771995544,
0.16104742884635925,
0.6557013988494873,
0.2775769829750061,
0.5705908536911011,
-0.9327378273010254,
0.5471076965332031,
0.2812387943267822,
-0.7329549789428711,
-0.4306457042694092,
-0.867567241191864,
-1.124232292175293,
0.398579478263855,
-0.20476679503917694,
-0.776404857635498,
0.14574094116687775,
0.0828443095088005,
-0.13504301011562347,
0.28549468517303467,
-0.744032084941864,
0.8240256309509277,
-0.4066820740699768,
-0.26976555585861206,
-0.048274535685777664,
-0.5175442695617676,
0.5823284387588501,
0.15518909692764282,
0.13715220987796783,
-0.20507098734378815,
-0.11643914878368378,
0.8716532588005066,
-0.7003501057624817,
1.1663239002227783,
-0.18410031497478485,
-0.38141071796417236,
0.2426726520061493,
-0.15629836916923523,
0.2993706464767456,
0.017239179462194443,
0.044206272810697556,
0.410086452960968,
0.10983499884605408,
-0.5743265748023987,
-0.580224335193634,
0.6230958104133606,
-1.1238932609558105,
-0.3622983992099762,
-0.2931288182735443,
-0.3965207040309906,
0.10960350185632706,
0.16813480854034424,
0.3559374213218689,
0.28836899995803833,
-0.16160351037979126,
0.29678893089294434,
0.5602302551269531,
-0.4115232229232788,
-0.03214837983250618,
0.47997671365737915,
-0.34085723757743835,
-0.471427857875824,
0.6211272478103638,
-0.03293225169181824,
0.15961892902851105,
0.6001900434494019,
0.20977483689785004,
-0.13374868035316467,
-0.1960161030292511,
-0.15683545172214508,
0.40804144740104675,
-0.48380669951438904,
-0.24639195203781128,
-0.8323894143104553,
-0.1932879388332367,
-0.4697628915309906,
0.46370190382003784,
-0.8522194027900696,
-0.40123921632766724,
-0.29891881346702576,
-0.05398789048194885,
0.7898018956184387,
0.3887573480606079,
0.28350064158439636,
0.8753201961517334,
-0.6023143529891968,
0.21259422600269318,
0.19783835113048553,
0.345818430185318,
0.03328477591276169,
-0.7429552674293518,
-0.5576052069664001,
0.17175701260566711,
-0.29969656467437744,
-0.8473271131515503,
0.524732232093811,
-0.10834460705518723,
0.4815689027309418,
0.3923548460006714,
0.00791279785335064,
0.8135803937911987,
-0.2246425747871399,
0.5947865843772888,
0.22172680497169495,
-0.5121563673019409,
0.41271838545799255,
-0.25353261828422546,
0.38620710372924805,
0.6748290657997131,
0.4184684753417969,
-0.6524010896682739,
-0.3093154728412628,
-0.8133516907691956,
-0.7774664759635925,
0.47404375672340393,
0.3351542353630066,
0.3587072193622589,
-0.005801940802484751,
0.5074425339698792,
0.07222010940313339,
0.3053942322731018,
-0.8774269223213196,
-0.5447567701339722,
-0.08776440471410751,
-0.3348207175731659,
-0.24329550564289093,
-0.26551681756973267,
0.026752756908535957,
-0.46121475100517273,
0.71992427110672,
-0.11844375729560852,
0.5497727990150452,
0.07669597119092941,
-0.0247567817568779,
-0.06756611168384552,
0.14548709988594055,
0.6641532778739929,
0.3058517575263977,
-0.48497313261032104,
-0.28516867756843567,
0.20052358508110046,
-0.5306318402290344,
-0.12274366617202759,
0.16809187829494476,
0.03261565417051315,
0.0905010774731636,
0.36361509561538696,
1.5025684833526611,
0.4206313490867615,
-0.5005377531051636,
0.4007149636745453,
-0.8062335848808289,
-0.22190585732460022,
-0.41768568754196167,
0.18947944045066833,
0.14529524743556976,
0.44007986783981323,
0.1431669294834137,
-0.14164818823337555,
-0.12470772117376328,
-0.7160391807556152,
-0.192331463098526,
0.38535019755363464,
-0.44465380907058716,
-0.30930295586586,
0.643354058265686,
0.18526007235050201,
-0.46890178322792053,
0.374740332365036,
0.032080888748168945,
-0.36882421374320984,
0.42501360177993774,
0.1090792864561081,
0.8936726450920105,
-0.25380945205688477,
0.12015799432992935,
0.5005561113357544,
0.2902725636959076,
-0.16283360123634338,
0.1878117322921753,
-0.254844069480896,
-0.8097363114356995,
-0.012567969039082527,
-0.7110711336135864,
-0.5969417691230774,
0.2743137776851654,
-0.6845346093177795,
0.45999717712402344,
-0.3559863567352295,
-0.5686335563659668,
-0.409153014421463,
0.5979916453361511,
-0.9469854831695557,
-0.026752665638923645,
-0.11658889800310135,
0.8989408016204834,
-0.7389909029006958,
1.0099791288375854,
0.6566382050514221,
-0.49098101258277893,
-0.9219053983688354,
-0.36289623379707336,
-0.052034102380275726,
-0.8589900135993958,
0.13354156911373138,
0.035865750163793564,
0.011992731131613255,
-0.11002394556999207,
-0.7289981245994568,
-0.7758298516273499,
1.4429101943969727,
0.37312230467796326,
-0.5685558319091797,
-0.216513529419899,
-0.16707490384578705,
0.6782324314117432,
-0.09460531920194626,
0.6021456718444824,
0.3754819333553314,
0.21143652498722076,
0.083200603723526,
-1.263685703277588,
0.026413030922412872,
-0.4787691533565521,
-0.03816134110093117,
-0.19576507806777954,
-1.1881139278411865,
0.9152234196662903,
0.0487249381840229,
-0.027298664674162865,
0.2896176874637604,
0.9078816771507263,
0.5188825130462646,
0.13123247027397156,
0.5612284541130066,
0.3731488585472107,
1.006819486618042,
0.11687678843736649,
1.1934586763381958,
-0.13845022022724152,
0.2386799454689026,
1.2153902053833008,
0.057599376887083054,
0.8878170847892761,
0.4482106864452362,
-0.03599962592124939,
0.5912922620773315,
0.7881771922111511,
0.272912859916687,
0.1938100904226303,
-0.0011526328744366765,
0.06411577761173248,
0.021709615364670753,
0.042666997760534286,
-0.48455148935317993,
0.5027413964271545,
0.22384433448314667,
-0.16761305928230286,
0.11082066595554352,
-0.1145690307021141,
0.3663749694824219,
-0.3157981038093567,
-0.061941344290971756,
0.7682953476905823,
0.33054447174072266,
-0.5720100402832031,
1.092236876487732,
0.13320305943489075,
1.1471611261367798,
-0.7925252318382263,
0.27211812138557434,
-0.5085850358009338,
0.38927069306373596,
-0.030189380049705505,
-0.19730868935585022,
0.04359057545661926,
0.15126147866249084,
0.25239667296409607,
-0.0005880625685676932,
0.49507060647010803,
-0.38651174306869507,
-0.3313623368740082,
0.3857918679714203,
0.5695870518684387,
0.5247952342033386,
-0.007306624669581652,
-0.8034366369247437,
0.5109327435493469,
-0.10797818005084991,
-0.6158885955810547,
0.2666796147823334,
0.3785611689090729,
-0.1917131245136261,
1.0464346408843994,
0.5103834867477417,
0.14798901975154877,
0.022239508107304573,
0.34711647033691406,
0.9114890098571777,
-0.49071004986763,
-0.4505763649940491,
-0.7510925531387329,
0.35077476501464844,
-0.06530598551034927,
-0.49959781765937805,
0.9628742337226868,
0.4660651683807373,
0.7322507500648499,
0.18071027100086212,
0.3845765292644501,
-0.07348976284265518,
0.27688711881637573,
-0.5026271939277649,
0.7709817886352539,
-0.9002645015716553,
0.21399657428264618,
-0.3855053782463074,
-0.9023018479347229,
-0.1549309492111206,
0.5982577204704285,
-0.17012779414653778,
0.19974499940872192,
0.4824967384338379,
0.7747857570648193,
0.15360866487026215,
-0.2921934127807617,
0.2521090805530548,
0.3213483691215515,
0.47779223322868347,
0.4983201026916504,
0.5521267652511597,
-0.8459683060646057,
0.5160559415817261,
-0.17706599831581116,
-0.31456807255744934,
-0.5152605772018433,
-0.6724472641944885,
-1.121644377708435,
-0.6661131978034973,
-0.22673405706882477,
-0.3303981423377991,
0.14991605281829834,
1.0550708770751953,
0.727531909942627,
-0.2907991409301758,
-0.6287401914596558,
0.10259445756673813,
-0.03291564807295799,
-0.2789176106452942,
-0.22817577421665192,
0.19938285648822784,
-0.016068562865257263,
-0.9362053871154785,
0.1834113597869873,
-0.33748820424079895,
0.2276705950498581,
-0.302398145198822,
-0.43120452761650085,
-0.3231058120727539,
0.09711875021457672,
0.4346076250076294,
0.5620158910751343,
-0.45659586787223816,
0.00008505600271746516,
-0.11160401254892349,
-0.4584689438343048,
0.19830571115016937,
0.3255605101585388,
-0.7459631562232971,
0.056118231266736984,
0.41022905707359314,
0.15761761367321014,
0.7015733122825623,
-0.04789287596940994,
0.45016247034072876,
-0.7518203258514404,
0.6014717817306519,
-0.09171975404024124,
0.41899731755256653,
0.5572340488433838,
-0.3373415768146515,
0.42752957344055176,
-0.03442230075597763,
-0.370318740606308,
-1.0207476615905762,
-0.19625703990459442,
-1.065364122390747,
-0.186852365732193,
1.2665706872940063,
0.2926870584487915,
-0.6115662455558777,
0.1944231539964676,
-0.5726586580276489,
0.7226409912109375,
-0.36692124605178833,
0.7717691659927368,
0.4793069362640381,
0.2640823721885681,
-0.5498564839363098,
-0.7497023940086365,
0.5358651280403137,
0.2883647680282593,
-0.8975606560707092,
0.048195980489254,
0.2846517562866211,
0.456298291683197,
0.0028616192284971476,
1.3012194633483887,
-0.0607561357319355,
0.014026714488863945,
-0.1721915900707245,
0.5485222935676575,
-0.29615142941474915,
-0.3869141936302185,
-0.24513816833496094,
-0.38079264760017395,
0.16860537230968475,
-0.33541131019592285
] |
cointegrated/rubert-base-cased-nli-threeway
|
cointegrated
| 2023-10-06T11:58:10Z | 8,322 | 18 |
transformers
|
[
"transformers",
"pytorch",
"safetensors",
"bert",
"text-classification",
"rubert",
"russian",
"nli",
"rte",
"zero-shot-classification",
"ru",
"dataset:cointegrated/nli-rus-translated-v2021",
"endpoints_compatible",
"region:us"
] |
zero-shot-classification
| 2022-03-02T23:29:05Z |
---
language: ru
pipeline_tag: zero-shot-classification
tags:
- rubert
- russian
- nli
- rte
- zero-shot-classification
widget:
- text: "Я хочу поехать в Австралию"
candidate_labels: "спорт,путешествия,музыка,кино,книги,наука,политика"
hypothesis_template: "Тема текста - {}."
datasets:
- cointegrated/nli-rus-translated-v2021
---
# RuBERT for NLI (natural language inference)
This is the [DeepPavlov/rubert-base-cased](https://huggingface.co/DeepPavlov/rubert-base-cased) fine-tuned to predict the logical relationship between two short texts: entailment, contradiction, or neutral.
## Usage
How to run the model for NLI:
```python
# !pip install transformers sentencepiece --quiet
import torch
from transformers import AutoTokenizer, AutoModelForSequenceClassification
model_checkpoint = 'cointegrated/rubert-base-cased-nli-threeway'
tokenizer = AutoTokenizer.from_pretrained(model_checkpoint)
model = AutoModelForSequenceClassification.from_pretrained(model_checkpoint)
if torch.cuda.is_available():
model.cuda()
text1 = 'Сократ - человек, а все люди смертны.'
text2 = 'Сократ никогда не умрёт.'
with torch.inference_mode():
out = model(**tokenizer(text1, text2, return_tensors='pt').to(model.device))
proba = torch.softmax(out.logits, -1).cpu().numpy()[0]
print({v: proba[k] for k, v in model.config.id2label.items()})
# {'entailment': 0.009525929, 'contradiction': 0.9332064, 'neutral': 0.05726764}
```
You can also use this model for zero-shot short text classification (by labels only), e.g. for sentiment analysis:
```python
def predict_zero_shot(text, label_texts, model, tokenizer, label='entailment', normalize=True):
label_texts
tokens = tokenizer([text] * len(label_texts), label_texts, truncation=True, return_tensors='pt', padding=True)
with torch.inference_mode():
result = torch.softmax(model(**tokens.to(model.device)).logits, -1)
proba = result[:, model.config.label2id[label]].cpu().numpy()
if normalize:
proba /= sum(proba)
return proba
classes = ['Я доволен', 'Я недоволен']
predict_zero_shot('Какая гадость эта ваша заливная рыба!', classes, model, tokenizer)
# array([0.05609814, 0.9439019 ], dtype=float32)
predict_zero_shot('Какая вкусная эта ваша заливная рыба!', classes, model, tokenizer)
# array([0.9059292 , 0.09407079], dtype=float32)
```
Alternatively, you can use [Huggingface pipelines](https://huggingface.co/transformers/main_classes/pipelines.html) for inference.
## Sources
The model has been trained on a series of NLI datasets automatically translated to Russian from English.
Most datasets were taken [from the repo of Felipe Salvatore](https://github.com/felipessalvatore/NLI_datasets):
[JOCI](https://github.com/sheng-z/JOCI),
[MNLI](https://cims.nyu.edu/~sbowman/multinli/),
[MPE](https://aclanthology.org/I17-1011/),
[SICK](http://www.lrec-conf.org/proceedings/lrec2014/pdf/363_Paper.pdf),
[SNLI](https://nlp.stanford.edu/projects/snli/).
Some datasets obtained from the original sources:
[ANLI](https://github.com/facebookresearch/anli),
[NLI-style FEVER](https://github.com/easonnie/combine-FEVER-NSMN/blob/master/other_resources/nli_fever.md),
[IMPPRES](https://github.com/facebookresearch/Imppres).
## Performance
The table below shows ROC AUC (one class vs rest) for five models on the corresponding *dev* sets:
- [tiny](https://huggingface.co/cointegrated/rubert-tiny-bilingual-nli): a small BERT predicting entailment vs not_entailment
- [twoway](https://huggingface.co/cointegrated/rubert-base-cased-nli-twoway): a base-sized BERT predicting entailment vs not_entailment
- [threeway](https://huggingface.co/cointegrated/rubert-base-cased-nli-threeway) (**this model**): a base-sized BERT predicting entailment vs contradiction vs neutral
- [vicgalle-xlm](https://huggingface.co/vicgalle/xlm-roberta-large-xnli-anli): a large multilingual NLI model
- [facebook-bart](https://huggingface.co/facebook/bart-large-mnli): a large multilingual NLI model
|model |add_one_rte|anli_r1|anli_r2|anli_r3|copa|fever|help|iie |imppres|joci|mnli |monli|mpe |scitail|sick|snli|terra|total |
|------------------------|-----------|-------|-------|-------|----|-----|----|-----|-------|----|-----|-----|----|-------|----|----|-----|------|
|n_observations |387 |1000 |1000 |1200 |200 |20474|3355|31232|7661 |939 |19647|269 |1000|2126 |500 |9831|307 |101128|
|tiny/entailment |0.77 |0.59 |0.52 |0.53 |0.53|0.90 |0.81|0.78 |0.93 |0.81|0.82 |0.91 |0.81|0.78 |0.93|0.95|0.67 |0.77 |
|twoway/entailment |0.89 |0.73 |0.61 |0.62 |0.58|0.96 |0.92|0.87 |0.99 |0.90|0.90 |0.99 |0.91|0.96 |0.97|0.97|0.87 |0.86 |
|threeway/entailment |0.91 |0.75 |0.61 |0.61 |0.57|0.96 |0.56|0.61 |0.99 |0.90|0.91 |0.67 |0.92|0.84 |0.98|0.98|0.90 |0.80 |
|vicgalle-xlm/entailment |0.88 |0.79 |0.63 |0.66 |0.57|0.93 |0.56|0.62 |0.77 |0.80|0.90 |0.70 |0.83|0.84 |0.91|0.93|0.93 |0.78 |
|facebook-bart/entailment|0.51 |0.41 |0.43 |0.47 |0.50|0.74 |0.55|0.57 |0.60 |0.63|0.70 |0.52 |0.56|0.68 |0.67|0.72|0.64 |0.58 |
|threeway/contradiction | |0.71 |0.64 |0.61 | |0.97 | | |1.00 |0.77|0.92 | |0.89| |0.99|0.98| |0.85 |
|threeway/neutral | |0.79 |0.70 |0.62 | |0.91 | | |0.99 |0.68|0.86 | |0.79| |0.96|0.96| |0.83 |
For evaluation (and for training of the [tiny](https://huggingface.co/cointegrated/rubert-tiny-bilingual-nli) and [twoway](https://huggingface.co/cointegrated/rubert-base-cased-nli-twoway) models), some extra datasets were used:
[Add-one RTE](https://cs.brown.edu/people/epavlick/papers/ans.pdf),
[CoPA](https://people.ict.usc.edu/~gordon/copa.html),
[IIE](https://aclanthology.org/I17-1100), and
[SCITAIL](https://allenai.org/data/scitail) taken from [the repo of Felipe Salvatore](https://github.com/felipessalvatore/NLI_datasets) and translatted,
[HELP](https://github.com/verypluming/HELP) and [MoNLI](https://github.com/atticusg/MoNLI) taken from the original sources and translated,
and Russian [TERRa](https://russiansuperglue.com/ru/tasks/task_info/TERRa).
|
[
-0.39844727516174316,
-0.6657483577728271,
0.2500723600387573,
0.15314748883247375,
0.01820259913802147,
-0.14407283067703247,
-0.27517420053482056,
-0.4616508483886719,
0.43608176708221436,
0.4057218134403229,
-0.44940754771232605,
-0.6430359482765198,
-0.5679571032524109,
0.16505233943462372,
-0.22852888703346252,
1.1463947296142578,
-0.057431597262620926,
0.003524844767525792,
-0.16069296002388,
-0.16920718550682068,
-0.27932068705558777,
-0.19794653356075287,
-0.5622953176498413,
-0.5191422700881958,
0.29311543703079224,
0.3574284315109253,
0.6680086851119995,
0.24572144448757172,
0.602039635181427,
0.2699839770793915,
-0.17083024978637695,
0.13106215000152588,
-0.16916072368621826,
-0.3190208077430725,
0.16416557133197784,
-0.6021211743354797,
-0.46240103244781494,
-0.050953321158885956,
0.43158748745918274,
0.5606241226196289,
-0.024259086698293686,
0.3033374845981598,
-0.01454203948378563,
0.6995826363563538,
-0.4434870779514313,
0.045244600623846054,
-0.3512425422668457,
0.07793845236301422,
-0.15404170751571655,
-0.009489327669143677,
-0.44195327162742615,
-0.19183315336704254,
0.28236597776412964,
-0.7265435457229614,
0.16647419333457947,
0.037592675536870956,
1.4591268301010132,
0.25232717394828796,
-0.22365519404411316,
-0.3750418424606323,
-0.4543984830379486,
1.1293232440948486,
-1.1432650089263916,
0.2512150704860687,
0.36726057529449463,
-0.12215949594974518,
-0.05165316164493561,
-0.6265512704849243,
-0.6876958608627319,
-0.014409678988158703,
-0.39646515250205994,
0.5542197823524475,
-0.3311457931995392,
-0.3240828812122345,
0.33394014835357666,
0.2973480224609375,
-0.726258397102356,
-0.02933352440595627,
-0.5593595504760742,
-0.06080887094140053,
0.8526517152786255,
0.1455003172159195,
0.22272363305091858,
-0.5492530465126038,
-0.30048370361328125,
-0.24084602296352386,
-0.48220381140708923,
0.22193461656570435,
0.44724124670028687,
0.2735714018344879,
-0.6715371608734131,
0.6498578190803528,
-0.16801519691944122,
0.8767979145050049,
0.11537522822618484,
-0.3702525496482849,
0.7776386141777039,
-0.4031613767147064,
-0.27445825934410095,
-0.067937470972538,
1.0863726139068604,
0.3089047968387604,
0.09135494381189346,
-0.0054328166879713535,
-0.04760600998997688,
-0.1595373898744583,
-0.3351811170578003,
-0.7630133628845215,
-0.22295522689819336,
0.5008442401885986,
-0.5049782991409302,
-0.3487865626811981,
0.17917735874652863,
-0.8884995579719543,
0.0020385754760354757,
-0.3656966984272003,
0.5941791534423828,
-0.7173880338668823,
-0.3551887571811676,
0.2824815809726715,
-0.17854289710521698,
0.4827095568180084,
0.11109039187431335,
-0.6759801506996155,
0.2028414011001587,
0.5034724473953247,
1.017379641532898,
-0.04209878668189049,
-0.1875240057706833,
-0.08904676139354706,
-0.03449896723031998,
-0.36014676094055176,
0.6805256009101868,
-0.2041635513305664,
-0.20094431936740875,
-0.12411024421453476,
0.07950560748577118,
-0.3284760117530823,
-0.3160147964954376,
0.6566872000694275,
-0.27359235286712646,
0.5906861424446106,
-0.1132928654551506,
-0.48601067066192627,
-0.2448793351650238,
0.4197916090488434,
-0.6876043677330017,
1.2382872104644775,
-0.030371611937880516,
-1.2418556213378906,
0.3241429626941681,
-0.7947622537612915,
-0.3852123022079468,
-0.25072264671325684,
0.05650417134165764,
-0.7132660746574402,
-0.29786229133605957,
0.4232001006603241,
0.43821173906326294,
-0.5162268877029419,
0.4703548550605774,
-0.19889409840106964,
-0.25459668040275574,
0.28837886452674866,
-0.23978517949581146,
1.3619930744171143,
0.2803618311882019,
-0.5575122237205505,
0.041147299110889435,
-1.1169729232788086,
-0.05357976257801056,
0.2624170780181885,
-0.19719304144382477,
-0.23986192047595978,
-0.17032980918884277,
0.04867124930024147,
0.18781928718090057,
0.21629175543785095,
-0.6359683275222778,
0.04612038657069206,
-0.7899715304374695,
0.6422836184501648,
0.46178171038627625,
0.12065427005290985,
0.37943488359451294,
-0.410894513130188,
0.28471171855926514,
0.3031198978424072,
0.29704058170318604,
-0.011442567221820354,
-0.766569972038269,
-1.12301504611969,
-0.3459821343421936,
0.5042251348495483,
0.7217347025871277,
-0.8983935713768005,
0.5970813632011414,
-0.3548918664455414,
-0.6742563843727112,
-0.6876662373542786,
-0.01921997219324112,
0.2482907921075821,
0.5102810859680176,
0.42039427161216736,
0.05928105115890503,
-0.607670783996582,
-1.0999280214309692,
-0.11482730507850647,
-0.1377733200788498,
0.015414930880069733,
0.1655263900756836,
0.9225948452949524,
-0.3309382498264313,
1.102544903755188,
-0.4572620093822479,
-0.36405521631240845,
-0.25152677297592163,
0.19905270636081696,
0.8937690854072571,
0.676493763923645,
0.6719061136245728,
-0.71775883436203,
-0.7928363680839539,
0.24830010533332825,
-0.8631131052970886,
0.07387173175811768,
-0.2215675264596939,
-0.26217514276504517,
0.3956737220287323,
0.30833131074905396,
-0.5707969665527344,
0.5830094814300537,
0.5046423673629761,
-0.37265530228614807,
0.49235495924949646,
-0.17895035445690155,
0.031658004969358444,
-1.2500895261764526,
0.38048672676086426,
0.21981282532215118,
0.020386915653944016,
-0.813593327999115,
-0.09596295654773712,
0.07595066726207733,
0.12201926857233047,
-0.3916723132133484,
0.6617551445960999,
-0.4261022210121155,
0.2097693383693695,
0.23727181553840637,
0.08887997269630432,
0.14817211031913757,
0.5523088574409485,
0.06008569151163101,
0.6884492635726929,
0.7899025678634644,
-0.4305574893951416,
0.14585521817207336,
0.2680039703845978,
-0.42158734798431396,
0.2070062756538391,
-0.8653585314750671,
-0.06177911534905434,
-0.14739231765270233,
0.022246751934289932,
-0.827724814414978,
-0.23214399814605713,
0.4527758061885834,
-0.6218594908714294,
0.4330762028694153,
-0.048146553337574005,
-0.47382161021232605,
-0.5276492238044739,
-0.4501344859600067,
0.12716050446033478,
0.43082329630851746,
-0.5044386386871338,
0.7543889880180359,
0.14128237962722778,
0.11475930362939835,
-0.9494410157203674,
-0.953174352645874,
-0.06417717784643173,
-0.3006935715675354,
-0.8341916799545288,
0.4139346778392792,
-0.06100938469171524,
-0.296084463596344,
0.24593506753444672,
0.1833464503288269,
0.048923179507255554,
-0.008547513745725155,
0.18465881049633026,
0.5732719302177429,
-0.2656727135181427,
-0.10766294598579407,
-0.1275339275598526,
-0.023289835080504417,
-0.02927916869521141,
-0.03839965537190437,
0.5471667051315308,
-0.33264708518981934,
-0.1057867631316185,
-0.623308002948761,
0.12873555719852448,
0.46922194957733154,
-0.21124739944934845,
1.018463134765625,
0.8403536081314087,
-0.343643456697464,
0.07064316421747208,
-0.6691732406616211,
-0.0681159719824791,
-0.42934566736221313,
0.1567746251821518,
-0.4792713224887848,
-0.6909158825874329,
0.829123318195343,
0.30522772669792175,
0.22580265998840332,
0.8793355822563171,
0.45638394355773926,
0.06766177713871002,
0.947507381439209,
0.40881967544555664,
-0.1501680612564087,
0.317503422498703,
-0.9023019671440125,
0.36853447556495667,
-0.8153809905052185,
-0.425046443939209,
-0.5435188412666321,
-0.18578951060771942,
-0.7741401195526123,
-0.4382387101650238,
0.3639567196369171,
0.13479655981063843,
-0.3166550397872925,
0.3294195830821991,
-0.5092657804489136,
0.356943815946579,
0.7064997553825378,
0.19068904221057892,
0.06966430693864822,
0.060768015682697296,
-0.022309942170977592,
-0.13912340998649597,
-0.8945744037628174,
-0.37534675002098083,
1.3626153469085693,
0.4237108528614044,
0.6059412360191345,
0.14446401596069336,
0.8671587109565735,
0.008789914660155773,
0.3943176567554474,
-0.6627230048179626,
0.30275958776474,
-0.24564288556575775,
-0.7459474802017212,
-0.1463613659143448,
-0.5358846783638,
-1.0203973054885864,
0.1993819922208786,
-0.47405487298965454,
-0.6557464599609375,
0.5127224326133728,
-0.09146048873662949,
-0.532613217830658,
0.3171856701374054,
-0.8374424576759338,
0.8673598170280457,
-0.1584063619375229,
-0.5970714688301086,
0.014181527309119701,
-0.609911322593689,
0.5414158701896667,
-0.03871305286884308,
0.4258037209510803,
-0.2320052683353424,
0.16234330832958221,
1.0120316743850708,
-0.3593989312648773,
0.807562530040741,
-0.06992393732070923,
0.11785490065813065,
0.5620710849761963,
-0.18106873333454132,
0.38792869448661804,
0.1388840228319168,
-0.40534889698028564,
0.47593367099761963,
0.09082230180501938,
-0.46866944432258606,
-0.3434121012687683,
0.8029099702835083,
-1.1292613744735718,
-0.5215349197387695,
-0.6375690698623657,
-0.3998708724975586,
0.1435045301914215,
0.2722095251083374,
0.5195969939231873,
0.5708780884742737,
0.06657755374908447,
0.2798188626766205,
0.5411609411239624,
-0.5183494091033936,
0.51859050989151,
0.2964972257614136,
-0.059170398861169815,
-0.4813377261161804,
0.9571475386619568,
0.006065241992473602,
0.23195306956768036,
0.28889933228492737,
0.33625441789627075,
-0.22826406359672546,
-0.34181106090545654,
-0.42469504475593567,
0.5303317308425903,
-0.556424617767334,
-0.46023795008659363,
-0.6958351135253906,
-0.3444403111934662,
-0.7815711498260498,
-0.1945084184408188,
-0.28271231055259705,
-0.46971163153648376,
-0.4545143246650696,
0.03762431815266609,
0.5301616787910461,
0.5986835956573486,
-0.24705971777439117,
0.10481707006692886,
-0.512721061706543,
0.1376589834690094,
-0.0054276748560369015,
0.12818923592567444,
-0.0834740698337555,
-0.738730788230896,
-0.2884661853313446,
0.04634983837604523,
-0.29835379123687744,
-0.8720589280128479,
0.947235643863678,
0.2716791331768036,
0.4726817309856415,
0.4041440784931183,
0.0065105692483484745,
0.8619006872177124,
-0.27050265669822693,
0.914088249206543,
0.45985665917396545,
-0.9130969047546387,
0.6553728580474854,
-0.14060066640377045,
0.20114772021770477,
0.46173688769340515,
0.5537655353546143,
-0.5346758961677551,
-0.4441280961036682,
-0.7903692126274109,
-1.1047483682632446,
0.9835188388824463,
0.3116701543331146,
-0.20506982505321503,
0.017823532223701477,
0.331184059381485,
0.0016608982114121318,
-0.007467666175216436,
-1.0718317031860352,
-0.6047509908676147,
-0.2540419399738312,
-0.39787718653678894,
-0.0965539738535881,
-0.004689330700784922,
-0.2691097855567932,
-0.4981291890144348,
0.9441356658935547,
-0.0786968395113945,
0.40564388036727905,
0.5390733480453491,
-0.03950132802128792,
-0.024361353367567062,
0.1312418133020401,
0.5464637875556946,
0.6105496883392334,
-0.4564390182495117,
-0.10151322931051254,
0.4206942915916443,
-0.37000125646591187,
-0.1488085836172104,
0.018639419227838516,
-0.4645812213420868,
0.21911950409412384,
0.5636610984802246,
0.9549468755722046,
0.06118156388401985,
-0.6115162372589111,
0.562937319278717,
-0.025828251615166664,
-0.5484914779663086,
-0.6684967279434204,
-0.1109764352440834,
0.04097973182797432,
0.17486102879047394,
0.2166617214679718,
0.22921080887317657,
0.2117147445678711,
-0.5553969740867615,
-0.01363052986562252,
0.3411821722984314,
-0.2785131335258484,
-0.320590615272522,
0.7242065668106079,
0.019911136478185654,
-0.03963141143321991,
0.4641452431678772,
-0.2122328281402588,
-0.555749773979187,
0.8409870266914368,
0.4256701171398163,
0.6814144253730774,
0.07521506398916245,
0.2601016163825989,
1.0924689769744873,
0.42076578736305237,
-0.07808951288461685,
0.2911394536495209,
0.3017798364162445,
-0.8310407400131226,
-0.49367451667785645,
-0.7273025512695312,
-0.20445476472377777,
0.2447863072156906,
-0.8009151816368103,
0.4756429195404053,
-0.2767025828361511,
-0.19783245027065277,
0.22044634819030762,
0.20651386678218842,
-0.9524151682853699,
0.17432262003421783,
0.13422727584838867,
0.9483726620674133,
-1.127744436264038,
0.8865869641304016,
0.6491495966911316,
-0.5358155369758606,
-0.9500548839569092,
-0.23101641237735748,
-0.1177297830581665,
-0.7063895463943481,
0.8049474358558655,
0.18992085754871368,
0.20044702291488647,
-0.11036007851362228,
-0.578766942024231,
-1.1308140754699707,
1.203961968421936,
-0.03282278776168823,
-0.42738980054855347,
0.2523913085460663,
0.19344305992126465,
0.6108853816986084,
-0.2551318109035492,
0.5792672634124756,
0.8157497644424438,
0.5210584998130798,
-0.004448722116649151,
-0.8452292084693909,
0.022919323295354843,
-0.5148699283599854,
-0.16724202036857605,
0.21687519550323486,
-0.7771975994110107,
1.0563249588012695,
-0.19145618379116058,
-0.05652991682291031,
-0.044951338320970535,
0.6442491412162781,
0.36207863688468933,
0.36733731627464294,
0.4056011140346527,
0.8658525943756104,
0.579075276851654,
-0.3044438660144806,
1.0030206441879272,
-0.4790678918361664,
0.628332257270813,
0.8106746673583984,
0.03182552754878998,
1.0578160285949707,
0.4609260559082031,
-0.3641834557056427,
0.676750659942627,
0.6481725573539734,
-0.10953167080879211,
0.4327840209007263,
-0.10028629750013351,
-0.11369022727012634,
-0.09392562508583069,
0.11205572634935379,
-0.4770216643810272,
0.3553162217140198,
0.4315008223056793,
-0.12052904814481735,
0.10080301761627197,
-0.001944326562806964,
0.1622929871082306,
-0.12306272983551025,
-0.11445442587137222,
0.7063464522361755,
-0.08397617191076279,
-0.6454221606254578,
0.712352991104126,
0.08534974604845047,
1.11116623878479,
-0.534075915813446,
0.17740283906459808,
-0.19142070412635803,
0.1532915085554123,
-0.4549381136894226,
-0.9248345494270325,
0.2725728452205658,
0.0650421753525734,
-0.08261499553918839,
-0.058452025055885315,
0.6644757986068726,
-0.4266548156738281,
-0.8171154260635376,
0.38051602244377136,
0.34983527660369873,
0.20404160022735596,
0.40875551104545593,
-1.03159761428833,
-0.15143749117851257,
0.32976827025413513,
-0.5461487174034119,
0.06405235081911087,
0.5221476554870605,
0.20177625119686127,
0.4257725179195404,
0.7784804105758667,
0.11853239685297012,
0.1689056009054184,
0.06111614406108856,
0.8608551025390625,
-0.6197633743286133,
-0.2730429172515869,
-0.8210336565971375,
0.6656470894813538,
-0.3515723943710327,
-0.46661877632141113,
0.8765297532081604,
0.7896987199783325,
0.846336841583252,
-0.11446681618690491,
0.6614689826965332,
-0.3485703766345978,
0.56828773021698,
-0.49225282669067383,
0.6002241969108582,
-0.8375499844551086,
0.02616889588534832,
-0.1275397092103958,
-0.6755180358886719,
-0.5378866195678711,
0.8767221570014954,
-0.5075356960296631,
-0.20543204247951508,
0.5726376175880432,
0.9094668030738831,
0.1348985731601715,
-0.037109773606061935,
0.07392735034227371,
0.32200372219085693,
0.24554169178009033,
0.6523168683052063,
0.5463746190071106,
-0.8765956163406372,
0.44979435205459595,
-0.8047354817390442,
-0.1563912034034729,
-0.2568758726119995,
-0.7561752200126648,
-0.8919079303741455,
-0.546567440032959,
-0.6503046154975891,
-0.5507164001464844,
-0.2352420836687088,
1.031442403793335,
0.6493188738822937,
-1.1002401113510132,
-0.34929677844047546,
-0.04120428487658501,
-0.012811107560992241,
-0.14444535970687866,
-0.3015655279159546,
0.6340399980545044,
-0.20929931104183197,
-0.8907974362373352,
0.125489741563797,
0.12755997478961945,
0.06712289154529572,
-0.003503421787172556,
-0.21297013759613037,
-0.40415942668914795,
0.04923534393310547,
0.5326111316680908,
0.2924039959907532,
-0.8490970134735107,
-0.11040498316287994,
0.21530990302562714,
-0.05060878396034241,
0.10425793379545212,
0.2629791498184204,
-0.49511128664016724,
0.41104134917259216,
0.5399456024169922,
0.2731471657752991,
0.7073882818222046,
-0.24003997445106506,
0.14624030888080597,
-0.659039318561554,
0.47335994243621826,
0.17930877208709717,
0.3933480679988861,
0.32150110602378845,
-0.2732004225254059,
0.7411736249923706,
0.25867030024528503,
-0.5781792998313904,
-0.9303653836250305,
-0.25922688841819763,
-1.1559559106826782,
-0.2813699245452881,
1.2513259649276733,
-0.13549183309078217,
-0.6373254060745239,
0.03242707997560501,
-0.10307938605546951,
0.24817630648612976,
-0.3736835718154907,
0.5914825797080994,
0.6809384822845459,
-0.16223879158496857,
-0.02293941006064415,
-0.8887124061584473,
0.4240033030509949,
0.5607041120529175,
-0.7447802424430847,
-0.2550564706325531,
0.069969542324543,
0.34669041633605957,
0.5248950719833374,
0.43496882915496826,
-0.14228951930999756,
0.040752898901700974,
0.09213025867938995,
0.40702882409095764,
0.1778358370065689,
0.004556172993034124,
-0.18866625428199768,
-0.0770270824432373,
-0.2442827671766281,
-0.09802824258804321
] |
CLTL/MedRoBERTa.nl
|
CLTL
| 2022-12-20T15:05:31Z | 8,309 | 3 |
transformers
|
[
"transformers",
"pytorch",
"roberta",
"fill-mask",
"nl",
"doi:10.57967/hf/0960",
"license:mit",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] |
fill-mask
| 2022-03-02T23:29:04Z |
---
language: nl
license: mit
---
# MedRoBERTa.nl
## Description
This model is a RoBERTa-based model pre-trained from scratch on Dutch hospital notes sourced from Electronic Health Records. The model is not fine-tuned. All code used for the creation of MedRoBERTa.nl can be found at https://github.com/cltl-students/verkijk_stella_rma_thesis_dutch_medical_language_model.
## Intended use
The model can be fine-tuned on any type of task. Since it is a domain-specific model trained on medical data, it is meant to be used on medical NLP tasks for Dutch.
## Data
The model was trained on nearly 10 million hospital notes from the Amsterdam University Medical Centres. The training data was anonymized before starting the pre-training procedure.
## Privacy
By anonymizing the training data we made sure the model did not learn any representative associations linked to names. Apart from the training data, the model's vocabulary was also anonymized. This ensures that the model can not predict any names in the generative fill-mask task.
## Authors
Stella Verkijk, Piek Vossen
## Reference
Paper: Verkijk, S. & Vossen, P. (2022) MedRoBERTa.nl: A Language Model for Dutch Electronic Health Records. Computational Linguistics in the Netherlands Journal, 11.
|
[
0.07794564962387085,
-0.7027235627174377,
0.6076862812042236,
0.32637742161750793,
-0.3880276381969452,
-0.20230358839035034,
-0.12450002133846283,
-0.6244059801101685,
0.6645959615707397,
0.7421408295631409,
-0.6404215097427368,
-0.8229626417160034,
-0.7153595685958862,
0.26806527376174927,
-0.15387238562107086,
1.2805266380310059,
-0.06767392158508301,
0.6890793442726135,
0.034871287643909454,
-0.17676854133605957,
-0.18856309354305267,
-0.6744186878204346,
-0.6699185967445374,
-0.05777620151638985,
0.6641963720321655,
0.13556671142578125,
0.37452179193496704,
0.4839950203895569,
0.48799368739128113,
0.19052737951278687,
-0.1537596881389618,
0.010168944485485554,
-0.4597867429256439,
-0.07879316806793213,
-0.08392001688480377,
-0.7039334774017334,
-0.5357109904289246,
0.13137994706630707,
0.23432405292987823,
0.5398646593093872,
-0.3573223054409027,
0.3698168694972992,
-0.298357218503952,
0.8155547380447388,
-0.3575875759124756,
0.2948141396045685,
-0.5617515444755554,
0.165555939078331,
-0.3644484579563141,
-0.12945888936519623,
-0.4356744885444641,
-0.3654648959636688,
0.2918791174888611,
-0.36953142285346985,
0.0923146903514862,
-0.14978145062923431,
1.2397769689559937,
0.1550300121307373,
0.07434769719839096,
-0.46338915824890137,
-0.6851670145988464,
0.5138319134712219,
-0.7128974199295044,
0.003543575294315815,
0.5939182639122009,
0.5157894492149353,
-0.06329827010631561,
-0.7796313762664795,
-0.46901288628578186,
-0.27920055389404297,
-0.009887740015983582,
0.09652186185121536,
-0.3269183337688446,
-0.03829783946275711,
0.1008637323975563,
0.09606190025806427,
-0.563218355178833,
-0.05917912721633911,
-0.768526554107666,
0.11039026081562042,
0.22999051213264465,
0.12378136813640594,
0.37582215666770935,
-0.3081332743167877,
-0.6081380248069763,
0.09996572881937027,
-0.7318458557128906,
-0.14248961210250854,
0.23077605664730072,
0.33958858251571655,
-0.43596115708351135,
0.7253640294075012,
0.16244788467884064,
0.9963845610618591,
-0.2931268513202667,
-0.17392653226852417,
0.5879860520362854,
-0.003425814211368561,
-0.5154202580451965,
-0.12682941555976868,
0.8553247451782227,
0.10901252925395966,
0.5515861511230469,
-0.1595953106880188,
-0.10261151939630508,
0.2125052958726883,
0.5886620283126831,
-0.514225959777832,
-0.7194199562072754,
0.22614626586437225,
-0.42478179931640625,
-0.4675326645374298,
-0.17453022301197052,
-0.31183311343193054,
-0.01988959312438965,
-0.4088651239871979,
0.35937410593032837,
-0.46798470616340637,
0.07769664376974106,
0.3562454283237457,
0.40963080525398254,
-0.4231603145599365,
0.4272373616695404,
-0.5421755313873291,
0.20837752521038055,
0.43751782178878784,
0.6017872095108032,
-0.14854690432548523,
-0.12226978689432144,
-0.01696113310754299,
0.006482378579676151,
-0.10751854628324509,
0.7319712042808533,
-0.27726373076438904,
-0.08730365335941315,
0.12289408594369888,
0.32021433115005493,
-0.2044984996318817,
-0.6041123270988464,
0.5590697526931763,
-0.5420989990234375,
0.6856522560119629,
0.27124670147895813,
-0.5319978594779968,
-0.3677065074443817,
0.16785946488380432,
-0.8021402359008789,
0.5758999586105347,
0.5193987488746643,
-0.929101288318634,
0.36417093873023987,
-0.6009353399276733,
-0.28373515605926514,
0.10163487493991852,
-0.2353869378566742,
-0.7516375184059143,
-0.0773826539516449,
-0.049794524908065796,
0.4439206123352051,
-0.3642597198486328,
0.634506344795227,
-0.12364580482244492,
0.08220271021127701,
0.19740170240402222,
-0.08243098109960556,
1.3680678606033325,
0.2899969816207886,
0.08075906336307526,
0.18672318756580353,
-1.2218413352966309,
-0.07760796695947647,
0.16067993640899658,
-0.45779281854629517,
-0.48118555545806885,
-0.22872596979141235,
0.637100100517273,
0.5319011807441711,
0.2334599792957306,
-0.5183179378509521,
0.34329742193222046,
-0.6455393433570862,
0.31120991706848145,
0.35415902733802795,
0.054864685982465744,
0.06953886151313782,
-0.5781867504119873,
0.9170098304748535,
-0.03300649672746658,
0.3742680251598358,
0.23710817098617554,
-0.678683876991272,
-0.42556101083755493,
-0.8492369055747986,
0.7869912981987,
0.7780025601387024,
-0.5110006928443909,
0.5006617307662964,
-0.06358236819505692,
-0.639708936214447,
-0.8918599486351013,
-0.11266256868839264,
0.469780832529068,
0.6042628884315491,
0.5506759285926819,
-0.29563507437705994,
-0.8788784146308899,
-1.073670506477356,
0.0671006515622139,
0.039578311145305634,
-0.2982189655303955,
0.3696507215499878,
0.5188468098640442,
-0.4336218237876892,
0.6622589826583862,
-0.42012494802474976,
-0.6846925020217896,
-0.23752625286579132,
-0.016772586852312088,
0.5216080546379089,
0.520232617855072,
0.7868208885192871,
-0.5803272724151611,
-0.5913718938827515,
-0.4577856957912445,
-0.6772607564926147,
-0.24016673862934113,
-0.07096061110496521,
-0.031688690185546875,
0.08533517271280289,
0.1588352918624878,
-0.39479708671569824,
0.310779333114624,
0.9484961628913879,
-0.30473461747169495,
0.4149179756641388,
-0.45722904801368713,
-0.19231240451335907,
-1.6878610849380493,
0.24498923122882843,
-0.10932453721761703,
-0.2398030310869217,
-0.6296846866607666,
0.058566611260175705,
0.07583034783601761,
-0.08765386044979095,
-0.6299693584442139,
0.4332987070083618,
-0.3937353491783142,
0.514717161655426,
-0.2667393386363983,
-0.09842025488615036,
-0.05876927822828293,
0.48371651768684387,
0.11333299428224564,
0.5365606546401978,
0.6933737993240356,
-0.4103793799877167,
0.010914644226431847,
0.5388656854629517,
-0.35731828212738037,
0.4295985996723175,
-0.6775310635566711,
-0.20341378450393677,
0.0994226410984993,
-0.008743153885006905,
-0.6777328848838806,
-0.06318128108978271,
0.3837027847766876,
-0.4876600503921509,
0.36938002705574036,
-0.2010977864265442,
-0.532065749168396,
-0.19100171327590942,
0.011793460696935654,
0.3540564179420471,
0.37373659014701843,
-0.30583035945892334,
0.603016197681427,
0.7813327312469482,
-0.09018179774284363,
-0.4363131821155548,
-0.6817512512207031,
0.13620112836360931,
-0.11498893052339554,
-0.594092845916748,
0.3289638161659241,
-0.0183928981423378,
0.004539302550256252,
-0.07149820774793625,
0.3226052224636078,
-0.5412412881851196,
0.036020733416080475,
0.35741397738456726,
0.5158751010894775,
-0.1494905799627304,
0.2757128179073334,
-0.06627712398767471,
-0.1607188731431961,
0.04664463922381401,
0.15436822175979614,
0.5388771891593933,
0.2896212935447693,
-0.04385193809866905,
-0.7507500052452087,
0.3502071797847748,
0.640536904335022,
-0.029444780200719833,
0.9931824803352356,
0.07893501967191696,
-0.5196364521980286,
-0.14520059525966644,
-0.4409981667995453,
-0.15394124388694763,
-0.36524614691734314,
0.22346122562885284,
-0.14989079535007477,
-0.733454167842865,
0.8029500246047974,
-0.09373091906309128,
-0.15916210412979126,
0.589440643787384,
0.6749725341796875,
-0.19228129088878632,
0.6033780574798584,
0.8989973664283752,
-0.02978677488863468,
0.1751597821712494,
-0.1745823472738266,
-0.07665134966373444,
-0.7650359272956848,
-0.3189297020435333,
-0.7329593896865845,
0.06194718927145004,
-0.7794635891914368,
-0.4581516981124878,
0.2698320746421814,
-0.12128473818302155,
-0.08558820188045502,
0.6631729602813721,
-0.647355318069458,
-0.06256789714097977,
0.3623451888561249,
0.2502051591873169,
0.26543954014778137,
-0.08655995875597,
-0.08597631007432938,
-0.23072929680347443,
-0.8222032189369202,
-0.6348348259925842,
1.1753545999526978,
0.3559153079986572,
0.8613250255584717,
-0.09656795114278793,
0.7162234783172607,
0.06808920949697495,
0.520020604133606,
-0.40144771337509155,
0.21128658950328827,
-0.2685932517051697,
-0.7795983552932739,
-0.04525204002857208,
-0.31418055295944214,
-1.3189204931259155,
0.02981719747185707,
-0.5255743265151978,
-0.5943288803100586,
0.13125352561473846,
0.22006328403949738,
-0.2557723820209503,
0.1585245579481125,
-0.4558181166648865,
0.8639425039291382,
0.00003838899283437058,
0.12157898396253586,
-0.03175675496459007,
-0.7810289859771729,
0.38916659355163574,
-0.3712601959705353,
0.22649215161800385,
-0.02749362401664257,
0.10046445578336716,
0.8041544556617737,
-0.5469753742218018,
1.0310335159301758,
0.07261617481708527,
-0.0714927613735199,
0.05308380350470543,
0.08068777620792389,
0.46329790353775024,
-0.03619857877492905,
0.22993402183055878,
0.3565989136695862,
0.20300106704235077,
-0.4459458291530609,
-0.2159019112586975,
0.5345765352249146,
-0.6507946252822876,
-0.0930100753903389,
-0.6320710778236389,
-0.24032971262931824,
-0.09388650953769684,
0.2345912903547287,
0.372201144695282,
0.2839001417160034,
-0.2783091366291046,
0.07549577951431274,
0.6112225651741028,
-0.4159213602542877,
-0.18227294087409973,
1.1051658391952515,
-0.22987262904644012,
-0.38519367575645447,
0.4535735547542572,
0.23958313465118408,
0.0022956025786697865,
0.29857194423675537,
0.18218737840652466,
-0.025545865297317505,
-0.47279080748558044,
-0.44265633821487427,
0.5489290356636047,
-0.4807715117931366,
-0.1349719613790512,
-0.9872221350669861,
-0.2543826103210449,
-0.09491822123527527,
-0.0974210575222969,
-0.46642252802848816,
-0.5839434862136841,
-0.5717328190803528,
-0.06160172075033188,
0.4881242513656616,
0.7589825391769409,
0.05884810537099838,
0.17755724489688873,
-0.7257390022277832,
0.37014877796173096,
-0.1283763349056244,
0.3396286368370056,
-0.2907518148422241,
-0.540054202079773,
-0.3135749399662018,
-0.3199250400066376,
0.18685081601142883,
-1.0133379697799683,
0.6344712376594543,
-0.2745903432369232,
0.3294329345226288,
0.21850895881652832,
-0.08443659543991089,
0.2763636112213135,
-0.8501682281494141,
0.6160817742347717,
0.2029823511838913,
-0.49339014291763306,
0.5653365254402161,
-0.4072267711162567,
0.13722819089889526,
0.8101559281349182,
0.5332727432250977,
-0.20489664375782013,
-0.6450156569480896,
-1.0224636793136597,
-1.1579093933105469,
0.5483562350273132,
0.09246838837862015,
0.17076756060123444,
-0.1309507042169571,
0.37345948815345764,
0.14686153829097748,
0.37485018372535706,
-0.9339407086372375,
-0.4910767376422882,
0.18349464237689972,
-0.31905820965766907,
0.054634939879179,
-0.49485188722610474,
-0.4647619128227234,
-0.29134440422058105,
0.8078418970108032,
0.3144592046737671,
0.14975400269031525,
0.09752592444419861,
0.008074129931628704,
-0.12475598603487015,
-0.03755402937531471,
1.132128357887268,
0.8272896409034729,
-0.29479146003723145,
-0.15379387140274048,
-0.04162280634045601,
-0.6752161383628845,
-0.11895682662725449,
0.08949634432792664,
-0.3746410310268402,
0.4227645695209503,
0.26784828305244446,
0.74656081199646,
0.20935222506523132,
-0.7051625847816467,
0.5800048112869263,
-0.11777084320783615,
-0.20272259414196014,
-0.9203857779502869,
-0.06240468472242355,
0.10679388791322708,
-0.001972118392586708,
-0.03921119496226311,
0.32896801829338074,
0.020987939089536667,
-0.24584829807281494,
0.4472888112068176,
0.2618933320045471,
-0.4496212601661682,
-0.307727187871933,
0.9026135206222534,
-0.0996767207980156,
-0.4981089234352112,
0.25982722640037537,
0.11336010694503784,
-0.18308433890342712,
0.47859129309654236,
0.417822927236557,
0.842258632183075,
-0.3030022084712982,
0.17829281091690063,
0.5223299860954285,
0.31402331590652466,
-0.05425135791301727,
0.6102564930915833,
0.3496706783771515,
-0.5015115141868591,
-0.5671104192733765,
-0.631378710269928,
-0.32365044951438904,
0.4857163429260254,
-0.7908126711845398,
0.2700219452381134,
-0.45709556341171265,
-0.28547659516334534,
0.11633291840553284,
-0.4302595555782318,
-0.6517857313156128,
0.44588056206703186,
-0.2689051926136017,
0.9538248777389526,
-1.0613428354263306,
1.1362829208374023,
0.5285802483558655,
-0.6026322245597839,
-1.02451491355896,
-0.22842121124267578,
-0.26109686493873596,
-0.9467570781707764,
0.8555437922477722,
-0.22476826608181,
0.11290774494409561,
-0.3585076630115509,
-0.5431466102600098,
-0.8186991810798645,
0.5227750539779663,
0.28932350873947144,
-0.5663660168647766,
-0.07811541110277176,
-0.16320089995861053,
1.0266587734222412,
-0.5388457775115967,
0.0050246394239366055,
-0.01813950575888157,
0.20069225132465363,
-0.14937004446983337,
-0.95816570520401,
-0.032448768615722656,
-0.3114997446537018,
-0.03092503733932972,
-0.19133366644382477,
-0.2596204876899719,
1.0380218029022217,
-0.11644020676612854,
-0.031245116144418716,
0.2766723036766052,
0.4415333867073059,
0.14645306766033173,
-0.03908773511648178,
0.1071891188621521,
0.7599459886550903,
0.7148076295852661,
0.09227170050144196,
1.1915863752365112,
-0.6191596984863281,
0.5478239059448242,
1.3041791915893555,
-0.28311052918434143,
0.7927507758140564,
0.4232144355773926,
-0.26007571816444397,
0.7652039527893066,
0.43366339802742004,
-0.21481236815452576,
0.6508140563964844,
0.6303725242614746,
-0.1985585242509842,
0.05249353125691414,
0.29611271619796753,
-0.4174552261829376,
0.5180100798606873,
0.30334627628326416,
-0.9129177927970886,
-0.192556694149971,
0.20863397419452667,
0.4145384430885315,
0.1775999665260315,
0.08783520013093948,
0.775514543056488,
-0.027667701244354248,
-0.5180619359016418,
0.8515057563781738,
0.03876565396785736,
0.3879585564136505,
-0.6692721247673035,
-0.2262687385082245,
0.2381814569234848,
0.08107014745473862,
-0.03320368006825447,
-0.27884554862976074,
0.2138536125421524,
0.05576007068157196,
-0.4865853786468506,
-0.07212983071804047,
0.3173879384994507,
-0.5218585133552551,
-0.7067291736602783,
0.2309565246105194,
0.5159088969230652,
0.4168653190135956,
0.2973763942718506,
-0.9317828416824341,
-0.2428377866744995,
0.08867864310741425,
-0.3108079433441162,
0.4277796745300293,
0.4145343601703644,
0.019961420446634293,
0.7511362433433533,
0.6245287656784058,
0.5960040092468262,
-0.21454057097434998,
0.306628942489624,
0.817363440990448,
-0.3236634135246277,
-0.6351537704467773,
-0.5838544368743896,
0.4102747440338135,
0.10196934640407562,
-0.4502522945404053,
0.5415291786193848,
0.6913701891899109,
0.769544243812561,
-0.6252661347389221,
0.6512434482574463,
0.12163624167442322,
1.1666096448898315,
-0.582096517086029,
0.9903632998466492,
-0.4575100541114807,
0.1054876446723938,
-0.2928240895271301,
-0.6906980872154236,
-0.6045475006103516,
1.0048189163208008,
-0.038047466427087784,
-0.07346963882446289,
0.6834522485733032,
0.7429744005203247,
0.07695139199495316,
-0.32716187834739685,
0.38431426882743835,
0.438806414604187,
-0.06112590432167053,
0.46896955370903015,
0.2136811912059784,
-0.29145103693008423,
0.03019540011882782,
-0.21366997063159943,
-0.2376466989517212,
-0.31867584586143494,
-0.8053048253059387,
-0.9542490243911743,
-0.5452601909637451,
-0.424392968416214,
-0.679445207118988,
0.18893016874790192,
0.9652674198150635,
0.5010623931884766,
-1.1849732398986816,
0.007824947126209736,
-0.07070715725421906,
-0.34794288873672485,
-0.08680768311023712,
-0.14675581455230713,
0.7832749485969543,
-0.10401517152786255,
-0.6452187895774841,
0.37170153856277466,
0.20320552587509155,
0.20733019709587097,
-0.3494560420513153,
0.26498931646347046,
-0.48858508467674255,
0.07503975927829742,
0.29267290234565735,
0.3815731108188629,
-0.6059005260467529,
-0.027903620153665543,
-0.07257129997015,
-0.6349676251411438,
0.2803870141506195,
0.5504114627838135,
-0.666262149810791,
0.7106401920318604,
0.3700534701347351,
0.25223663449287415,
0.4500966966152191,
-0.19145537912845612,
0.4744207262992859,
-0.6117120385169983,
0.21797426044940948,
0.47747373580932617,
0.49880704283714294,
0.21540819108486176,
-0.34690847992897034,
0.6163375973701477,
0.15650662779808044,
-0.32736194133758545,
-0.7403934001922607,
0.03021453320980072,
-1.1232222318649292,
-0.3191794753074646,
1.030550241470337,
-0.2908231019973755,
-0.3614710569381714,
-0.17187783122062683,
-0.4119395911693573,
0.32895389199256897,
-0.11752966791391373,
1.133897304534912,
0.5170736908912659,
-0.027982302010059357,
0.10322663933038712,
-1.0724420547485352,
0.7877892851829529,
0.2678569257259369,
-0.637846052646637,
-0.30547088384628296,
0.25735965371131897,
0.5849241614341736,
0.2512202858924866,
0.9131529331207275,
-0.39846158027648926,
0.30894601345062256,
-0.49178043007850647,
0.47666245698928833,
-0.004282189533114433,
-0.46785327792167664,
-0.2867119014263153,
0.3278936743736267,
-0.06561881303787231,
-0.24681700766086578
] |
cardiffnlp/twitter-roberta-base
|
cardiffnlp
| 2023-02-07T15:33:34Z | 8,307 | 16 |
transformers
|
[
"transformers",
"pytorch",
"tf",
"jax",
"roberta",
"fill-mask",
"arxiv:2010.12421",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] |
fill-mask
| 2022-03-02T23:29:05Z |
# Twitter-roBERTa-base
This is a RoBERTa-base model trained on ~58M tweets on top of the original RoBERTa-base checkpoint, as described and evaluated in the [_TweetEval_ benchmark (Findings of EMNLP 2020)](https://arxiv.org/pdf/2010.12421.pdf).
To evaluate this and other LMs on Twitter-specific data, please refer to the [Tweeteval official repository](https://github.com/cardiffnlp/tweeteval).
## Preprocess Text
Replace usernames and links for placeholders: "@user" and "http".
```python
def preprocess(text):
new_text = []
for t in text.split(" "):
t = '@user' if t.startswith('@') and len(t) > 1 else t
t = 'http' if t.startswith('http') else t
new_text.append(t)
return " ".join(new_text)
```
## Example Masked Language Model
```python
from transformers import pipeline, AutoTokenizer
import numpy as np
MODEL = "cardiffnlp/twitter-roberta-base"
fill_mask = pipeline("fill-mask", model=MODEL, tokenizer=MODEL)
tokenizer = AutoTokenizer.from_pretrained(MODEL)
def print_candidates():
for i in range(5):
token = tokenizer.decode(candidates[i]['token'])
score = np.round(candidates[i]['score'], 4)
print(f"{i+1}) {token} {score}")
texts = [
"I am so <mask> 😊",
"I am so <mask> 😢"
]
for text in texts:
t = preprocess(text)
print(f"{'-'*30}\n{t}")
candidates = fill_mask(t)
print_candidates()
```
Output:
```
------------------------------
I am so <mask> 😊
1) happy 0.402
2) excited 0.1441
3) proud 0.143
4) grateful 0.0669
5) blessed 0.0334
------------------------------
I am so <mask> 😢
1) sad 0.2641
2) sorry 0.1605
3) tired 0.138
4) sick 0.0278
5) hungry 0.0232
```
## Example Tweet Embeddings
```python
from transformers import AutoTokenizer, AutoModel, TFAutoModel
import numpy as np
from scipy.spatial.distance import cosine
from collections import defaultdict
tokenizer = AutoTokenizer.from_pretrained(MODEL)
model = AutoModel.from_pretrained(MODEL)
def get_embedding(text):
text = preprocess(text)
encoded_input = tokenizer(text, return_tensors='pt')
features = model(**encoded_input)
features = features[0].detach().cpu().numpy()
features_mean = np.mean(features[0], axis=0)
return features_mean
MODEL = "cardiffnlp/twitter-roberta-base"
query = "The book was awesome"
tweets = ["I just ordered fried chicken 🐣",
"The movie was great",
"What time is the next game?",
"Just finished reading 'Embeddings in NLP'"]
d = defaultdict(int)
for tweet in tweets:
sim = 1-cosine(get_embedding(query),get_embedding(tweet))
d[tweet] = sim
print('Most similar to: ',query)
print('----------------------------------------')
for idx,x in enumerate(sorted(d.items(), key=lambda x:x[1], reverse=True)):
print(idx+1,x[0])
```
Output:
```
Most similar to: The book was awesome
----------------------------------------
1 The movie was great
2 Just finished reading 'Embeddings in NLP'
3 I just ordered fried chicken 🐣
4 What time is the next game?
```
## Example Feature Extraction
```python
from transformers import AutoTokenizer, AutoModel, TFAutoModel
import numpy as np
MODEL = "cardiffnlp/twitter-roberta-base"
tokenizer = AutoTokenizer.from_pretrained(MODEL)
text = "Good night 😊"
text = preprocess(text)
# Pytorch
model = AutoModel.from_pretrained(MODEL)
encoded_input = tokenizer(text, return_tensors='pt')
features = model(**encoded_input)
features = features[0].detach().cpu().numpy()
features_mean = np.mean(features[0], axis=0)
#features_max = np.max(features[0], axis=0)
# # Tensorflow
# model = TFAutoModel.from_pretrained(MODEL)
# encoded_input = tokenizer(text, return_tensors='tf')
# features = model(encoded_input)
# features = features[0].numpy()
# features_mean = np.mean(features[0], axis=0)
# #features_max = np.max(features[0], axis=0)
```
### BibTeX entry and citation info
Please cite the [reference paper](https://aclanthology.org/2020.findings-emnlp.148/) if you use this model.
```bibtex
@inproceedings{barbieri-etal-2020-tweeteval,
title = "{T}weet{E}val: Unified Benchmark and Comparative Evaluation for Tweet Classification",
author = "Barbieri, Francesco and
Camacho-Collados, Jose and
Espinosa Anke, Luis and
Neves, Leonardo",
booktitle = "Findings of the Association for Computational Linguistics: EMNLP 2020",
month = nov,
year = "2020",
address = "Online",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2020.findings-emnlp.148",
doi = "10.18653/v1/2020.findings-emnlp.148",
pages = "1644--1650"
}
```
|
[
-0.2188185304403305,
-0.6623712182044983,
0.21110756695270538,
0.27481600642204285,
-0.21390503644943237,
0.10363604873418808,
-0.26160943508148193,
-0.15114663541316986,
0.40767279267311096,
0.12108457088470459,
-0.4404442310333252,
-0.6972482204437256,
-0.8124680519104004,
0.13332824409008026,
-0.5249743461608887,
0.7638564109802246,
-0.03328320384025574,
-0.06387089192867279,
0.2643892467021942,
-0.1992819458246231,
0.006037160754203796,
-0.44070369005203247,
-0.6044694185256958,
-0.18824231624603271,
0.19572561979293823,
0.08622919768095016,
0.45174917578697205,
0.685640811920166,
0.3886553943157196,
0.4580133855342865,
0.08999399840831757,
0.09721730649471283,
-0.33324939012527466,
-0.04424099624156952,
-0.009191042743623257,
-0.3167143762111664,
-0.2633500397205353,
0.09542234987020493,
0.6827412843704224,
0.48149779438972473,
0.08148699253797531,
0.3158476948738098,
0.07576224952936172,
0.3277447819709778,
-0.3801071047782898,
0.14568646252155304,
-0.530049204826355,
0.04194391891360283,
-0.0802822932600975,
-0.18777339160442352,
-0.14604942500591278,
-0.5662634372711182,
0.11778021603822708,
-0.4588138461112976,
0.2596530020236969,
-0.10099858045578003,
1.3604658842086792,
0.33605214953422546,
-0.0960620790719986,
-0.3166534900665283,
-0.3760550618171692,
1.0543839931488037,
-0.8129642009735107,
0.1842239946126938,
0.31128013134002686,
0.09552807360887527,
0.012791293673217297,
-0.7182067036628723,
-0.5789039731025696,
-0.13880246877670288,
-0.08304005116224289,
0.0731339380145073,
-0.3652755916118622,
-0.28951913118362427,
0.21780844032764435,
0.14022384583950043,
-0.5012484788894653,
-0.12040204554796219,
-0.2880609333515167,
-0.10059718787670135,
0.5676428079605103,
-0.049495257437229156,
0.34684425592422485,
-0.4168049395084381,
-0.22430239617824554,
-0.2751694321632385,
-0.20576027035713196,
-0.09289819747209549,
-0.029673177748918533,
0.18444032967090607,
-0.36509591341018677,
0.6519312262535095,
-0.1480722427368164,
0.48815736174583435,
0.14916487038135529,
-0.026730500161647797,
0.6963714957237244,
-0.34545356035232544,
-0.2716673016548157,
-0.23266097903251648,
1.1732604503631592,
0.39899349212646484,
0.4807795286178589,
-0.08670397847890854,
-0.159345805644989,
-0.17377670109272003,
-0.1856866031885147,
-0.8078567981719971,
-0.2154390960931778,
0.2862853705883026,
-0.4670392870903015,
-0.46635201573371887,
0.13163477182388306,
-0.6161207556724548,
-0.049806345254182816,
0.09581824392080307,
0.7530588507652283,
-0.6643446683883667,
-0.3498519957065582,
-0.0645076110959053,
-0.3060789406299591,
0.17931193113327026,
0.11643923819065094,
-0.8479920625686646,
0.003323574783280492,
0.5228432416915894,
1.0498003959655762,
0.1300654411315918,
-0.5400959849357605,
-0.324818879365921,
0.12470921874046326,
-0.2997291088104248,
0.5600197911262512,
-0.3701639473438263,
-0.0746069923043251,
0.015109657309949398,
-0.010099992156028748,
-0.34461215138435364,
-0.37424254417419434,
0.24237746000289917,
-0.24496766924858093,
0.2738667130470276,
-0.1993476152420044,
-0.660575807094574,
-0.06380943953990936,
0.29093262553215027,
-0.4691123366355896,
1.2185605764389038,
0.2911912798881531,
-0.7575557827949524,
0.32223907113075256,
-0.8143006563186646,
-0.24294723570346832,
-0.1749158650636673,
-0.14658425748348236,
-0.47042033076286316,
-0.07200957089662552,
0.5413111448287964,
0.587773859500885,
-0.22478589415550232,
0.20038066804409027,
-0.3125579059123993,
-0.2851749658584595,
0.25550976395606995,
-0.1642770916223526,
1.2872668504714966,
0.18970461189746857,
-0.6068384051322937,
-0.05693717300891876,
-0.6238355040550232,
0.15863174200057983,
0.36075544357299805,
-0.23590423166751862,
-0.05525475740432739,
-0.23742690682411194,
0.0389641597867012,
0.25270867347717285,
0.30445364117622375,
-0.6503500938415527,
0.17849451303482056,
-0.5011553168296814,
0.797200083732605,
0.6985717415809631,
0.04183170199394226,
0.40199607610702515,
-0.5134080052375793,
0.2216671258211136,
0.08729143440723419,
0.1480245143175125,
-0.07307887077331543,
-0.5679844617843628,
-0.8791412711143494,
-0.2396022230386734,
0.4438004493713379,
0.4643906354904175,
-0.6517026424407959,
0.7164480090141296,
-0.4718684256076813,
-0.5947526097297668,
-0.6853797435760498,
-0.05598624423146248,
0.24897634983062744,
0.365460604429245,
0.5549280047416687,
0.022211294621229172,
-0.7689805030822754,
-0.6735580563545227,
-0.4586605131626129,
-0.23711244761943817,
-0.008471286855638027,
0.2631615698337555,
0.8214614391326904,
-0.2879182994365692,
0.8343527913093567,
-0.40989673137664795,
-0.2505817413330078,
-0.23865802586078644,
0.13998538255691528,
0.4388587474822998,
0.805006206035614,
0.7890603542327881,
-0.5746307969093323,
-0.7608690857887268,
-0.2910223603248596,
-0.812421977519989,
-0.12505954504013062,
-0.03653822839260101,
-0.19568490982055664,
0.35506734251976013,
0.4618834853172302,
-0.6505382061004639,
0.4595605134963989,
0.3058663308620453,
-0.35952481627464294,
0.22051431238651276,
0.011784679256379604,
0.24627666175365448,
-1.4202492237091064,
0.05734279751777649,
-0.0021805232390761375,
-0.02062595635652542,
-0.4675837755203247,
-0.16594716906547546,
-0.06611081957817078,
0.13907426595687866,
-0.3000779151916504,
0.6878970265388489,
-0.37297189235687256,
0.017659010365605354,
0.09399329870939255,
0.1077156662940979,
-0.05376927927136421,
0.44519662857055664,
-0.16707628965377808,
0.4696069061756134,
0.5847546458244324,
-0.41774916648864746,
0.324415922164917,
0.3443882465362549,
-0.33064743876457214,
0.17008253931999207,
-0.6926319599151611,
0.027043092995882034,
0.1753847748041153,
0.14452926814556122,
-1.1533385515213013,
-0.16501682996749878,
0.30644819140434265,
-0.9595329761505127,
0.1840839684009552,
-0.26147183775901794,
-0.7296714782714844,
-0.45257124304771423,
-0.3925352096557617,
0.28219321370124817,
0.60537189245224,
-0.577398419380188,
0.6359547972679138,
0.3380100429058075,
0.248535618185997,
-0.6510839462280273,
-0.9993098378181458,
0.1162174716591835,
-0.1481519341468811,
-0.654418408870697,
0.4708462357521057,
0.06953027099370956,
-0.01581854559481144,
0.23735392093658447,
0.16930724680423737,
-0.07577290385961533,
0.029179943725466728,
0.1271420121192932,
0.0730069950222969,
-0.19325581192970276,
0.048619646579027176,
-0.19816356897354126,
-0.15329696238040924,
-0.0049924105405807495,
-0.4038398861885071,
0.8383316993713379,
-0.23373225331306458,
-0.11341544985771179,
-0.5212981104850769,
0.18639014661312103,
0.28177323937416077,
-0.0817776694893837,
0.9351255893707275,
1.1944185495376587,
-0.5594895482063293,
-0.05945269763469696,
-0.6789388656616211,
-0.17593221366405487,
-0.5044820308685303,
0.5901114344596863,
-0.39107733964920044,
-0.7286731004714966,
0.6462365984916687,
0.1978970617055893,
0.1349552571773529,
0.988521933555603,
0.6643148064613342,
-0.13117681443691254,
0.9030991196632385,
0.40841370820999146,
-0.09505098313093185,
0.6369107365608215,
-0.9218495488166809,
0.0847620740532875,
-0.7072589993476868,
-0.28140687942504883,
-0.5699092149734497,
-0.23677006363868713,
-0.8224435448646545,
-0.5102953314781189,
0.07137224078178406,
0.05897529050707817,
-0.5602934956550598,
0.5149171948432922,
-0.668615460395813,
0.17015771567821503,
0.6753856539726257,
0.11227056384086609,
-0.17833440005779266,
0.1446431577205658,
-0.334846556186676,
-0.11596573889255524,
-0.7002114057540894,
-0.3659627139568329,
1.2246904373168945,
0.36162424087524414,
0.4896782636642456,
0.07002782821655273,
1.0770294666290283,
0.06392650306224823,
0.32541385293006897,
-0.530403196811676,
0.5642116069793701,
-0.27163201570510864,
-0.6636465191841125,
-0.3023536801338196,
-0.5622497200965881,
-0.7852274775505066,
0.0939946323633194,
-0.21467699110507965,
-0.821868360042572,
0.15061058104038239,
-0.17963770031929016,
-0.34054574370384216,
0.5188232064247131,
-0.6878886222839355,
0.7612372040748596,
-0.11851640790700912,
-0.19645178318023682,
0.022155964747071266,
-0.45248082280158997,
0.05029155686497688,
0.04427846893668175,
0.08530225604772568,
-0.1425989270210266,
-0.27760612964630127,
1.0903666019439697,
-0.5307825803756714,
0.7216688990592957,
-0.16464754939079285,
0.4314483106136322,
0.20911386609077454,
-0.04443987458944321,
0.2170746773481369,
-0.0436326265335083,
-0.3024863302707672,
0.2366257607936859,
0.0251027699559927,
-0.5544695854187012,
-0.3742988705635071,
0.8240793347358704,
-1.151310682296753,
-0.5277708768844604,
-0.6664100885391235,
-0.32004261016845703,
0.07905101031064987,
0.3971482515335083,
0.5850679874420166,
0.4206238389015198,
0.012830556370317936,
0.3598122000694275,
0.23364174365997314,
-0.2857957184314728,
0.8907736539840698,
0.15734294056892395,
-0.12466193735599518,
-0.6813202500343323,
0.7919038534164429,
0.3139687776565552,
0.06214044615626335,
0.47679781913757324,
0.33424681425094604,
-0.3728102743625641,
-0.4671034514904022,
-0.2207644283771515,
0.4909428060054779,
-0.6819962859153748,
-0.23545539379119873,
-0.9901748895645142,
-0.6095144748687744,
-0.7294932007789612,
-0.13185827434062958,
-0.3762618601322174,
-0.6049100160598755,
-0.5123952031135559,
0.057279326021671295,
0.45471301674842834,
0.8557652235031128,
-0.32986876368522644,
0.1914488673210144,
-0.6511074304580688,
0.20628397166728973,
0.09282732754945755,
0.18984267115592957,
0.10180889815092087,
-0.8840739727020264,
-0.41582781076431274,
0.07198137044906616,
-0.3724159896373749,
-0.7964813709259033,
0.7281191945075989,
0.33580610156059265,
0.5827827453613281,
0.2851645350456238,
-0.027958674356341362,
0.7876096367835999,
-0.2929120361804962,
0.8192889094352722,
0.14714565873146057,
-0.9578041434288025,
0.5855173468589783,
-0.27870413661003113,
0.3494051694869995,
0.4274517297744751,
0.4246964156627655,
-0.41456109285354614,
-0.3689538538455963,
-0.9054546356201172,
-0.8363078832626343,
0.7962859272956848,
0.4917038381099701,
0.11985307931900024,
-0.21305719017982483,
0.2592012882232666,
-0.23669487237930298,
0.1412978619337082,
-0.8316081166267395,
-0.5049062371253967,
-0.4492987394332886,
-0.4287760555744171,
-0.1410517543554306,
-0.1148616224527359,
-0.039639927446842194,
-0.6244974136352539,
0.6833667159080505,
0.15378093719482422,
0.7558164000511169,
0.31676599383354187,
-0.24996982514858246,
-0.07288433611392975,
-0.16302910447120667,
0.4660019278526306,
0.6618101000785828,
-0.4776519536972046,
-0.0883503407239914,
0.22827552258968353,
-0.4958777129650116,
-0.0614234060049057,
0.22469724714756012,
-0.13943739235401154,
0.3056055009365082,
0.6345817446708679,
0.5941013097763062,
0.18765299022197723,
-0.12278280407190323,
0.5836974382400513,
-0.056401390582323074,
-0.3753353953361511,
-0.5255668759346008,
-0.011891641654074192,
0.1525985598564148,
0.3119675815105438,
0.8158596754074097,
0.1714130938053131,
-0.1594429761171341,
-0.5018801689147949,
0.3710871636867523,
0.24016964435577393,
-0.2001001536846161,
-0.30723991990089417,
0.6347805857658386,
-0.03876599669456482,
-0.4979379177093506,
0.5609811544418335,
-0.20154836773872375,
-0.9031031727790833,
0.8238145709037781,
0.5077438354492188,
1.1990406513214111,
-0.09352228045463562,
0.24237583577632904,
0.8473095893859863,
0.3950052857398987,
0.017071781679987907,
0.2777990996837616,
0.17337806522846222,
-0.8387510776519775,
-0.11499230563640594,
-0.7866063714027405,
0.001025551580823958,
0.12979650497436523,
-0.4221946895122528,
0.25436875224113464,
-0.618205189704895,
-0.32821187376976013,
0.2221536785364151,
0.30332574248313904,
-0.8354827761650085,
0.23346102237701416,
-0.11442157626152039,
0.7810856699943542,
-0.8599997758865356,
0.8579376339912415,
0.6878761649131775,
-0.5995444655418396,
-0.93019700050354,
0.12257397919893265,
-0.1881619095802307,
-0.9300512075424194,
0.8161529898643494,
0.3784010410308838,
0.24192079901695251,
0.2842159569263458,
-0.5968953967094421,
-1.1247280836105347,
1.2057561874389648,
0.21235816180706024,
-0.14893542230129242,
-0.1432260274887085,
0.20020152628421783,
0.5527963042259216,
-0.6616383194923401,
0.7010133862495422,
0.479388028383255,
0.35238879919052124,
0.04446469992399216,
-0.7681559920310974,
0.22292819619178772,
-0.3932150602340698,
0.011080119758844376,
-0.0028196414932608604,
-0.7979928255081177,
1.1951019763946533,
-0.18210846185684204,
-0.11255595088005066,
0.10725993663072586,
0.6255269050598145,
0.28813132643699646,
0.153419628739357,
0.48243552446365356,
0.7253082394599915,
0.5315743684768677,
-0.3029574751853943,
0.9445927143096924,
-0.38147199153900146,
0.8256632685661316,
0.7561224699020386,
0.48001089692115784,
0.8638004660606384,
0.39943626523017883,
-0.28527456521987915,
0.5434297323226929,
0.782137930393219,
-0.2855399250984192,
0.5572620630264282,
-0.014260792173445225,
0.14356593787670135,
-0.1536252200603485,
-0.002432159846648574,
-0.5248170495033264,
0.4213242828845978,
0.2931610345840454,
-0.6427454948425293,
-0.315240740776062,
-0.1354794204235077,
0.13697955012321472,
-0.16084180772304535,
-0.016972914338111877,
0.6088117957115173,
0.18584394454956055,
-0.5399813055992126,
0.9577921628952026,
0.009527238085865974,
0.8058809041976929,
-0.29564061760902405,
0.05803568288683891,
-0.0740104466676712,
0.2987618148326874,
-0.25358566641807556,
-0.8031586408615112,
0.22917240858078003,
0.03516082465648651,
0.014838822185993195,
-0.11984103918075562,
0.31008023023605347,
-0.40978333353996277,
-0.6295521259307861,
0.534737229347229,
0.35306158661842346,
0.22951972484588623,
0.1018712967634201,
-1.3240660429000854,
0.10158391296863556,
0.2033085823059082,
-0.5191569328308105,
0.0054588718339800835,
0.4838424623012543,
0.28701382875442505,
0.6582491993904114,
0.6570400595664978,
0.07536302506923676,
0.2953765094280243,
0.16670486330986023,
0.9078551530838013,
-0.8353211879730225,
-0.40166494250297546,
-1.1421160697937012,
0.4183558225631714,
-0.2509423792362213,
-0.5742738842964172,
0.8384121060371399,
0.6358460783958435,
0.7666897773742676,
0.021646110340952873,
0.7867344617843628,
-0.3866244852542877,
0.6061259508132935,
-0.26232945919036865,
0.8258645534515381,
-0.7435768842697144,
0.17176498472690582,
-0.33390867710113525,
-0.9287087917327881,
-0.2320822924375534,
0.9186185598373413,
-0.43676432967185974,
0.48881399631500244,
0.8201838135719299,
0.7962024211883545,
0.0029150331392884254,
-0.26782897114753723,
0.15568660199642181,
0.47806963324546814,
0.3836534321308136,
0.6640591621398926,
0.5324071645736694,
-0.932098925113678,
0.6389188766479492,
-0.6816226840019226,
-0.1677040308713913,
-0.4462560713291168,
-0.7440017461776733,
-1.1818784475326538,
-0.8334106206893921,
-0.3205700218677521,
-0.7941154837608337,
0.007256088312715292,
1.1295244693756104,
0.5418110489845276,
-0.9933093786239624,
-0.2195422649383545,
-0.09824199229478836,
0.08445155620574951,
0.008290127851068974,
-0.2841804027557373,
0.7569414377212524,
-0.3220721483230591,
-0.8589950203895569,
-0.05389970541000366,
-0.014578155241906643,
0.11990982294082642,
-0.057391099631786346,
-0.0443941205739975,
-0.7214595079421997,
0.013031083159148693,
0.23809710144996643,
0.11901639401912689,
-0.7395337820053101,
-0.28632256388664246,
0.13026681542396545,
-0.43138378858566284,
0.10005617886781693,
0.17446862161159515,
-0.4845549464225769,
0.33064883947372437,
0.5971468091011047,
0.4526655375957489,
0.8009626269340515,
-0.03955352306365967,
0.4433619976043701,
-0.48687735199928284,
0.12546314299106598,
0.32008615136146545,
0.4131163954734802,
0.48234984278678894,
-0.20630671083927155,
0.6656355261802673,
0.4359488785266876,
-0.5740883946418762,
-0.9355320334434509,
-0.25117430090904236,
-0.921903669834137,
-0.1557610034942627,
1.1923993825912476,
-0.25191640853881836,
-0.5274254083633423,
0.050496749579906464,
0.1603102833032608,
0.7017650008201599,
-0.522193431854248,
0.7788286209106445,
0.6010690927505493,
0.11902832239866257,
-0.12274635583162308,
-0.4816747009754181,
0.5388652086257935,
0.43264317512512207,
-0.417693555355072,
-0.43850281834602356,
-0.1818164736032486,
0.6036322116851807,
0.3165612518787384,
0.6509107351303101,
-0.01856284588575363,
0.2236994206905365,
0.0666426494717598,
0.007827676832675934,
-0.186976820230484,
0.05144571140408516,
-0.24933969974517822,
-0.022562213242053986,
-0.33324241638183594,
-0.42248377203941345
] |
bigcode/santacoder
|
bigcode
| 2023-10-12T16:41:58Z | 8,298 | 310 |
transformers
|
[
"transformers",
"pytorch",
"gpt2",
"text-generation",
"custom_code",
"code",
"dataset:bigcode/the-stack",
"arxiv:1911.02150",
"arxiv:2207.14255",
"arxiv:2301.03988",
"license:bigcode-openrail-m",
"model-index",
"has_space",
"text-generation-inference",
"region:us"
] |
text-generation
| 2022-12-02T16:20:58Z |
---
license: bigcode-openrail-m
datasets:
- bigcode/the-stack
language:
- code
programming_language:
- Java
- JavaScript
- Python
pipeline_tag: text-generation
inference: true
widget:
- text: 'def print_hello_world():'
example_title: Hello world
group: Python
model-index:
- name: SantaCoder
results:
- task:
type: text-generation
dataset:
type: nuprl/MultiPL-E
name: MultiPL HumanEval (Python)
metrics:
- name: pass@1
type: pass@1
value: 0.18
verified: false
- name: pass@10
type: pass@10
value: 0.29
verified: false
- name: pass@100
type: pass@100
value: 0.49
verified: false
- task:
type: text-generation
dataset:
type: nuprl/MultiPL-E
name: MultiPL MBPP (Python)
metrics:
- name: pass@1
type: pass@1
value: 0.35
verified: false
- name: pass@10
type: pass@10
value: 0.58
verified: false
- name: pass@100
type: pass@100
value: 0.77
verified: false
- task:
type: text-generation
dataset:
type: nuprl/MultiPL-E
name: MultiPL HumanEval (JavaScript)
metrics:
- name: pass@1
type: pass@1
value: 0.16
verified: false
- name: pass@10
type: pass@10
value: 0.27
verified: false
- name: pass@100
type: pass@100
value: 0.47
verified: false
- task:
type: text-generation
dataset:
type: nuprl/MultiPL-E
name: MultiPL MBPP (Javascript)
metrics:
- name: pass@1
type: pass@1
value: 0.28
verified: false
- name: pass@10
type: pass@10
value: 0.51
verified: false
- name: pass@100
type: pass@100
value: 0.7
verified: false
- task:
type: text-generation
dataset:
type: nuprl/MultiPL-E
name: MultiPL HumanEval (Java)
metrics:
- name: pass@1
type: pass@1
value: 0.15
verified: false
- name: pass@10
type: pass@10
value: 0.26
verified: false
- name: pass@100
type: pass@100
value: 0.41
verified: false
- task:
type: text-generation
dataset:
type: nuprl/MultiPL-E
name: MultiPL MBPP (Java)
metrics:
- name: pass@1
type: pass@1
value: 0.28
verified: false
- name: pass@10
type: pass@10
value: 0.44
verified: false
- name: pass@100
type: pass@100
value: 0.59
verified: false
- task:
type: text-generation
dataset:
type: loubnabnl/humaneval_infilling
name: HumanEval FIM (Python)
metrics:
- name: single_line
type: exact_match
value: 0.44
verified: false
- task:
type: text-generation
dataset:
type: nuprl/MultiPL-E
name: MultiPL HumanEval FIM (Java)
metrics:
- name: single_line
type: exact_match
value: 0.62
verified: false
- task:
type: text-generation
dataset:
type: nuprl/MultiPL-E
name: MultiPL HumanEval FIM (JavaScript)
metrics:
- name: single_line
type: exact_match
value: 0.6
verified: false
- task:
type: text-generation
dataset:
type: code_x_glue_ct_code_to_text
name: CodeXGLUE code-to-text (Python)
metrics:
- name: BLEU
type: bleu
value: 18.13
verified: false
---
# SantaCoder

Play with the model on the [SantaCoder Space Demo](https://huggingface.co/spaces/bigcode/santacoder-demo).
# Table of Contents
1. [Model Summary](#model-summary)
2. [Use](#use)
3. [Limitations](#limitations)
4. [Training](#training)
5. [License](#license)
6. [Citation](#citation)
# Model Summary
The SantaCoder models are a series of 1.1B parameter models trained on the Python, Java, and JavaScript subset of [The Stack (v1.1)](https://huggingface.co/datasets/bigcode/the-stack) (which excluded opt-out requests).
The main model uses [Multi Query Attention](https://arxiv.org/abs/1911.02150), a context window of 2048 tokens, and was trained using near-deduplication and comment-to-code ratio as filtering criteria and using the [Fill-in-the-Middle objective](https://arxiv.org/abs/2207.14255).
In addition there are several models that were trained on datasets with different filter parameters and with architecture and objective variations.
- **Repository:** [bigcode/Megatron-LM](https://github.com/bigcode-project/Megatron-LM)
- **Project Website:** [bigcode-project.org](https://www.bigcode-project.org)
- **Paper:** [🎅SantaCoder: Don't reach for the stars!🌟](https://arxiv.org/abs/2301.03988)
- **Point of Contact:** [[email protected]](mailto:[email protected])
- **Languages:** Python, Java, and JavaScript
|Model|Architecture|Objective|Filtering|
|:-|:-|:-|:-|
|`mha`|MHA|AR + FIM| Base |
|`no-fim`| MQA | AR| Base |
|`fim`| MQA | AR + FIM | Base |
|`stars`| MQA | AR + FIM | GitHub stars |
|`fertility`| MQA | AR + FIM | Tokenizer fertility |
|`comments`| MQA | AR + FIM | Comment-to-code ratio |
|`dedup-alt`| MQA | AR + FIM | Stronger near-deduplication |
|`final`| MQA | AR + FIM | Stronger near-deduplication and comment-to-code ratio |
The `final` model is the best performing model and was trained twice as long (236B tokens) as the others. This checkpoint is the default model and available on the `main` branch. All other checkpoints are on separate branches with according names.
# Use
## Intended use
The model was trained on GitHub code. As such it is _not_ an instruction model and commands like "Write a function that computes the square root." do not work well.
You should phrase commands like they occur in source code such as comments (e.g. `# the following function computes the sqrt`) or write a function signature and docstring and let the model complete the function body.
**Feel free to share your generations in the Community tab!**
## How to use
### Generation
```python
# pip install -q transformers
from transformers import AutoModelForCausalLM, AutoTokenizer
checkpoint = "bigcode/santacoder"
device = "cuda" # for GPU usage or "cpu" for CPU usage
tokenizer = AutoTokenizer.from_pretrained(checkpoint)
model = AutoModelForCausalLM.from_pretrained(checkpoint, trust_remote_code=True).to(device)
inputs = tokenizer.encode("def print_hello_world():", return_tensors="pt").to(device)
outputs = model.generate(inputs)
print(tokenizer.decode(outputs[0]))
```
### Fill-in-the-middle
Fill-in-the-middle uses special tokens to identify the prefix/middle/suffix part of the input and output:
```python
input_text = "<fim-prefix>def print_hello_world():\n <fim-suffix>\n print('Hello world!')<fim-middle>"
inputs = tokenizer.encode(input_text, return_tensors="pt").to(device)
outputs = model.generate(inputs)
print(tokenizer.decode(outputs[0]))
```
Make sure to use `<fim-prefix>, <fim-suffix>, <fim-middle>` and not `<fim_prefix>, <fim_suffix>, <fim_middle>` as in StarCoder models.
### Load other checkpoints
We upload the checkpoint of each experiment to a separate branch as well as the intermediate checkpoints as commits on the branches. You can load them with the `revision` flag:
```python
model = AutoModelForCausalLM.from_pretrained(
"bigcode/santacoder",
revision="no-fim", # name of branch or commit hash
trust_remote_code=True
)
```
### Attribution & Other Requirements
The pretraining dataset of the model was filtered for permissive licenses only. Nevertheless, the model can generate source code verbatim from the dataset. The code's license might require attribution and/or other specific requirements that must be respected. We provide a [search index](https://huggingface.co/spaces/bigcode/santacoder-search) that let's you search through the pretraining data to identify where generated code came from and apply the proper attribution to your code.
# Limitations
The model has been trained on source code in Python, Java, and JavaScript. The predominant language in source is English although other languages are also present. As such the model is capable to generate code snippets provided some context but the generated code is not guaranteed to work as intended. It can be inefficient, contain bugs or exploits.
# Training
## Model
- **Architecture:** GPT-2 model with multi-query attention and Fill-in-the-Middle objective
- **Pretraining steps:** 600K
- **Pretraining tokens:** 236 billion
- **Precision:** float16
## Hardware
- **GPUs:** 96 Tesla V100
- **Training time:** 6.2 days
- **Total FLOPS:** 2.1 x 10e21
## Software
- **Orchestration:** [Megatron-LM](https://github.com/bigcode-project/Megatron-LM)
- **Neural networks:** [PyTorch](https://github.com/pytorch/pytorch)
- **FP16 if applicable:** [apex](https://github.com/NVIDIA/apex)
# License
The model is licensed under the BigCode OpenRAIL-M v1 license agreement. You can find the full agreement [here](https://huggingface.co/spaces/bigcode/bigcode-model-license-agreement).
# Citation
```
@article{allal2023santacoder,
title={SantaCoder: don't reach for the stars!},
author={Allal, Loubna Ben and Li, Raymond and Kocetkov, Denis and Mou, Chenghao and Akiki, Christopher and Ferrandis, Carlos Munoz and Muennighoff, Niklas and Mishra, Mayank and Gu, Alex and Dey, Manan and others},
journal={arXiv preprint arXiv:2301.03988},
year={2023}
}
```
|
[
-0.48517778515815735,
-0.4363980293273926,
0.2822369337081909,
0.006467972416430712,
-0.2998449504375458,
-0.10904119908809662,
-0.21685364842414856,
-0.4496757686138153,
0.1146523505449295,
0.31431981921195984,
-0.5693154335021973,
-0.48384222388267517,
-0.7481288909912109,
0.06632436811923981,
-0.27434590458869934,
1.2444771528244019,
0.06666824966669083,
0.12188490480184555,
-0.2256871610879898,
0.11946318298578262,
-0.16560238599777222,
-0.7556541562080383,
-0.3502517342567444,
-0.16817694902420044,
0.34534379839897156,
0.1892707347869873,
0.7609370946884155,
0.6586117148399353,
0.47674423456192017,
0.29961279034614563,
-0.305912584066391,
-0.06549020111560822,
-0.31857308745384216,
-0.3535996675491333,
0.007666121702641249,
-0.3349166512489319,
-0.3948819041252136,
-0.15989571809768677,
0.49831029772758484,
0.03279222548007965,
0.07511847466230392,
0.5808144211769104,
-0.14532580971717834,
0.46761414408683777,
-0.5004674792289734,
0.34044408798217773,
-0.5139731764793396,
-0.056659530848264694,
0.3417588174343109,
0.1746116280555725,
-0.07723879814147949,
-0.42077571153640747,
-0.2766748368740082,
-0.5681738257408142,
0.3485765755176544,
0.014243662357330322,
1.1071027517318726,
0.4288800358772278,
-0.23064787685871124,
-0.3321678638458252,
-0.6438069343566895,
0.7304301261901855,
-0.8683946132659912,
0.45166733860969543,
0.4237765371799469,
0.2748766839504242,
0.10513829439878464,
-0.8840646743774414,
-0.6272071599960327,
-0.42662137746810913,
-0.14614972472190857,
-0.09366242587566376,
-0.3843451142311096,
-0.1852298527956009,
0.5572643876075745,
0.20374472439289093,
-0.7031303644180298,
0.061160072684288025,
-0.6391115784645081,
-0.14036092162132263,
0.6870878338813782,
0.016627013683319092,
0.14409032464027405,
-0.4979853928089142,
-0.4219582974910736,
-0.22775104641914368,
-0.5951123833656311,
0.06102084740996361,
0.13925890624523163,
-0.031878795474767685,
-0.2524024248123169,
0.4446808695793152,
-0.14059039950370789,
0.5370356440544128,
0.15414227545261383,
-0.053747422993183136,
0.45326751470565796,
-0.5373303890228271,
-0.38421735167503357,
-0.13585248589515686,
0.9642180800437927,
0.2761823832988739,
0.0348089262843132,
0.0015387297607958317,
-0.3362259566783905,
-0.23370960354804993,
0.1998285949230194,
-1.0671852827072144,
-0.29725271463394165,
0.30918753147125244,
-0.3378547430038452,
-0.17896172404289246,
0.18294210731983185,
-0.7210411429405212,
0.07777567952871323,
-0.36425286531448364,
0.5007641911506653,
-0.2707383334636688,
-0.21555685997009277,
0.19195415079593658,
-0.09775508940219879,
0.175012469291687,
0.09622533619403839,
-0.7607682943344116,
0.06012880057096481,
0.6362924575805664,
0.6988468766212463,
0.33406010270118713,
-0.4787095785140991,
-0.3269002437591553,
-0.13082075119018555,
-0.15419229865074158,
0.21005989611148834,
-0.16848278045654297,
-0.17437808215618134,
-0.28508996963500977,
0.21688278019428253,
-0.1055152416229248,
-0.4464050233364105,
0.316022664308548,
-0.8169451355934143,
0.23009668290615082,
-0.027549991384148598,
-0.3007945120334625,
-0.3867327868938446,
0.20289143919944763,
-0.6360362768173218,
0.9159517884254456,
0.2986108660697937,
-0.6446571350097656,
0.2282220721244812,
-0.7435053586959839,
-0.09526149928569794,
-0.004953046794980764,
0.08075786381959915,
-0.7548719048500061,
-0.012077237479388714,
0.37454506754875183,
0.49149060249328613,
-0.3960430920124054,
0.5194157958030701,
-0.21176861226558685,
-0.4157949984073639,
0.33197739720344543,
-0.23581066727638245,
0.9654767513275146,
0.4660431146621704,
-0.6977608799934387,
0.2276223599910736,
-0.5236013531684875,
0.0704774484038353,
0.44022655487060547,
-0.12039507925510406,
0.09332146495580673,
-0.32912203669548035,
0.28638023138046265,
0.5811446905136108,
0.41447803378105164,
-0.44166168570518494,
0.2744404375553131,
-0.20865188539028168,
0.7872151136398315,
0.45563074946403503,
-0.03824924677610397,
0.09449118375778198,
-0.262666255235672,
0.6589966416358948,
0.1881989687681198,
0.451485812664032,
-0.24841390550136566,
-0.4432121217250824,
-0.7134338617324829,
-0.36535295844078064,
0.5513450503349304,
0.3135455846786499,
-0.6294534802436829,
0.9815629720687866,
-0.419816255569458,
-0.6137142777442932,
-0.3903579115867615,
0.1101083979010582,
0.6425359845161438,
0.04579329863190651,
0.4319155216217041,
-0.2844374179840088,
-0.6363710761070251,
-0.7434465885162354,
0.32572296261787415,
-0.18521854281425476,
0.04246421530842781,
0.26196518540382385,
1.058855652809143,
-0.46590471267700195,
0.7760564684867859,
-0.6520707607269287,
-0.007413622457534075,
-0.19136613607406616,
-0.16786088049411774,
0.41994819045066833,
0.7135440707206726,
0.5729365348815918,
-0.8301580548286438,
-0.2652603089809418,
-0.1142328754067421,
-0.659890353679657,
0.33797216415405273,
-0.03352480009198189,
-0.03134973719716072,
0.15251724421977997,
0.5511969923973083,
-0.871898353099823,
0.5589838027954102,
0.4785744547843933,
-0.4207054078578949,
0.7262797355651855,
-0.17005576193332672,
0.15212109684944153,
-1.0933027267456055,
0.44900333881378174,
-0.014323457144200802,
-0.24537262320518494,
-0.34023627638816833,
0.3656441867351532,
0.22305719554424286,
-0.22176997363567352,
-0.5660744905471802,
0.42772868275642395,
-0.3898507356643677,
-0.0751732736825943,
-0.13541355729103088,
-0.21463602781295776,
0.16574129462242126,
0.7283992767333984,
-0.08098970353603363,
0.7673141360282898,
0.6011162996292114,
-0.5706131458282471,
0.38640666007995605,
0.2679012417793274,
-0.2687705457210541,
-0.04449418559670448,
-0.9500622749328613,
0.1479516476392746,
-0.02918335236608982,
0.40045127272605896,
-1.0221469402313232,
-0.23072770237922668,
0.38842087984085083,
-0.7480214238166809,
0.19349531829357147,
-0.5014334321022034,
-0.7702347636222839,
-0.837847113609314,
-0.19145533442497253,
0.4398183822631836,
0.7614682912826538,
-0.7705090641975403,
0.1659708470106125,
0.22644208371639252,
0.0828729122877121,
-0.520461916923523,
-0.5818503499031067,
-0.014528092928230762,
-0.24208275973796844,
-0.5459804534912109,
0.232132688164711,
-0.25950419902801514,
0.21463173627853394,
0.0664345994591713,
0.03354685753583908,
-0.1932707279920578,
0.07277027517557144,
0.4700724482536316,
0.466903418302536,
-0.2406248152256012,
-0.1255260556936264,
-0.276632159948349,
-0.12932038307189941,
0.1971195638179779,
-0.5960976481437683,
0.6551003456115723,
-0.30912283062934875,
-0.2842504382133484,
-0.4597371220588684,
0.05953991785645485,
0.8966102600097656,
-0.34682056307792664,
0.6866447329521179,
0.7389329671859741,
-0.4252677857875824,
-0.049140747636556625,
-0.569652259349823,
-0.27716371417045593,
-0.483066588640213,
0.5421556830406189,
-0.20318742096424103,
-0.8082826137542725,
0.4325881600379944,
0.2780354917049408,
-0.0019495285814628005,
0.6028457283973694,
0.5433599352836609,
0.24463137984275818,
1.0085078477859497,
0.47934943437576294,
-0.2045605480670929,
0.4495265781879425,
-0.7845377326011658,
0.23066909611225128,
-0.8548447489738464,
-0.2814430892467499,
-0.6189613938331604,
-0.14849615097045898,
-0.39289069175720215,
-0.6032845377922058,
0.2962954044342041,
0.3913179039955139,
-0.6330305337905884,
0.6338900923728943,
-0.8264226913452148,
0.47679853439331055,
0.646776556968689,
0.001309073530137539,
0.07087960839271545,
0.02714453637599945,
-0.006371012423187494,
0.060826532542705536,
-0.8642838597297668,
-0.38350358605384827,
1.1240618228912354,
0.4999047517776489,
0.6098926663398743,
-0.062410544604063034,
0.6988738179206848,
-0.011690529063344002,
0.1269993931055069,
-0.5845434069633484,
0.4713563621044159,
0.049800269305706024,
-0.8434109687805176,
-0.11594240367412567,
-0.5366496443748474,
-0.9863781929016113,
0.24482989311218262,
0.03065555915236473,
-0.6499375700950623,
0.23813588917255402,
0.05756071209907532,
-0.4744945466518402,
0.4119158685207367,
-0.7599818706512451,
1.0288974046707153,
-0.39779239892959595,
-0.29999685287475586,
-0.04074537381529808,
-0.6675105094909668,
0.49612292647361755,
-0.046406056731939316,
0.1551591008901596,
0.18390178680419922,
0.1084136813879013,
0.7625904083251953,
-0.4644061326980591,
0.8520812392234802,
-0.2320713996887207,
0.21993620693683624,
0.4344215989112854,
-0.13652276992797852,
0.4565594792366028,
0.27473464608192444,
0.047867391258478165,
0.5226098299026489,
0.06764708459377289,
-0.2936241328716278,
-0.39525163173675537,
0.8315851092338562,
-1.1226528882980347,
-0.4150342345237732,
-0.5732035636901855,
-0.2938483655452728,
0.25889021158218384,
0.3530735969543457,
0.31105002760887146,
0.2708582580089569,
-0.010328023694455624,
0.20466957986354828,
0.4208988547325134,
-0.26557254791259766,
0.607886552810669,
0.3425784111022949,
-0.43592125177383423,
-0.7177928686141968,
0.8682488203048706,
-0.004407624714076519,
0.09799724817276001,
0.04149622097611427,
0.06949710845947266,
-0.4729047417640686,
-0.4902512729167938,
-0.7743799090385437,
0.41414588689804077,
-0.6381351351737976,
-0.506869375705719,
-0.7287316918373108,
-0.4983561635017395,
-0.5962221622467041,
-0.02330177091062069,
-0.372411847114563,
-0.32799163460731506,
-0.3910391330718994,
0.0533369816839695,
0.41825154423713684,
0.6150583624839783,
0.037919264286756516,
0.2686260938644409,
-0.8656325936317444,
0.2758864760398865,
0.23993897438049316,
0.3208978772163391,
0.14567971229553223,
-0.6966526508331299,
-0.6009535193443298,
0.15539035201072693,
-0.4717020094394684,
-0.45606324076652527,
0.5603966116905212,
-0.17098546028137207,
0.3940821886062622,
0.08752884715795517,
-0.12919721007347107,
0.6333499550819397,
-0.3216334581375122,
1.050392508506775,
0.4551943242549896,
-0.9309448003768921,
0.39620858430862427,
-0.12773390114307404,
0.45549407601356506,
0.4277459383010864,
0.545200526714325,
-0.3038756251335144,
-0.11048802733421326,
-0.9307028651237488,
-0.885754406452179,
0.8767528533935547,
0.1876995861530304,
0.04295194149017334,
0.14627249538898468,
0.3219306468963623,
-0.17308585345745087,
0.3572695553302765,
-0.8830505609512329,
-0.14236895740032196,
-0.5113964676856995,
-0.07905800640583038,
-0.3728906512260437,
-0.03278060257434845,
-0.12488261610269547,
-0.6128304600715637,
0.698168933391571,
0.0019900959450751543,
0.6055535078048706,
0.24540406465530396,
-0.25750958919525146,
-0.10432406514883041,
0.07683410495519638,
0.5194246768951416,
0.7802454233169556,
-0.11157489567995071,
-0.021689245477318764,
-0.1029076874256134,
-0.5606056451797485,
0.0714583471417427,
0.41565364599227905,
-0.3093929886817932,
0.049812063574790955,
0.20292127132415771,
1.0664571523666382,
0.22773195803165436,
-0.49570396542549133,
0.7104375958442688,
0.01572711206972599,
-0.43062323331832886,
-0.47803229093551636,
0.26150819659233093,
0.19887614250183105,
0.23568075895309448,
0.32501643896102905,
0.17191560566425323,
-0.008801805786788464,
-0.33602315187454224,
0.26901188492774963,
0.3434990644454956,
-0.31568846106529236,
-0.39787793159484863,
1.0371356010437012,
-0.11026617884635925,
-0.23730690777301788,
0.6436071991920471,
-0.31718918681144714,
-0.81154865026474,
1.073380470275879,
0.6220445036888123,
0.9695797562599182,
0.05612795427441597,
0.15001429617404938,
0.7887163758277893,
0.34566670656204224,
-0.04796144738793373,
0.02197272889316082,
-0.07899003475904465,
-0.30245786905288696,
-0.43336379528045654,
-0.7524915933609009,
-0.08492469787597656,
0.18277966976165771,
-0.5195688605308533,
0.32303813099861145,
-0.6556379795074463,
-0.17581012845039368,
0.03771071881055832,
0.1828172355890274,
-0.9339991211891174,
0.29146891832351685,
0.21836401522159576,
0.7671076655387878,
-0.6750441193580627,
0.8959095478057861,
0.6576781868934631,
-0.6138260364532471,
-0.8759657144546509,
0.009095658548176289,
-0.1203777939081192,
-0.7094870209693909,
0.7781941890716553,
0.33366402983665466,
0.1411381959915161,
0.15730150043964386,
-0.7714530229568481,
-1.0836704969406128,
1.1877961158752441,
0.1501399427652359,
-0.6341152191162109,
-0.070253387093544,
-0.04152439534664154,
0.5777754187583923,
-0.3827950656414032,
0.6161123514175415,
0.37069106101989746,
0.5021885633468628,
0.30346643924713135,
-0.909814715385437,
0.20880749821662903,
-0.4040168821811676,
0.03856628015637398,
0.20417429506778717,
-0.7844181060791016,
0.8698574900627136,
-0.3299751877784729,
0.07921741157770157,
0.057516034692525864,
0.48282569646835327,
0.36968523263931274,
0.397784560918808,
0.40791982412338257,
0.6154719591140747,
0.45536449551582336,
0.016083547845482826,
1.069188117980957,
-0.628986656665802,
0.7401728630065918,
0.811279833316803,
0.11152448505163193,
0.682739794254303,
0.29431331157684326,
-0.3052312731742859,
0.3341854512691498,
0.542881429195404,
-0.5355470776557922,
0.368453711271286,
0.32567843794822693,
0.07683084905147552,
-0.017782771959900856,
0.22353322803974152,
-0.585716962814331,
0.18817497789859772,
0.16171881556510925,
-0.4398965537548065,
-0.03655525669455528,
0.019133025780320168,
0.12333016097545624,
-0.43362823128700256,
-0.3004950284957886,
0.6403447985649109,
-0.01354052871465683,
-0.841323733329773,
1.2526352405548096,
0.15124602615833282,
0.8217942118644714,
-0.6597943305969238,
0.1070484146475792,
-0.04338205233216286,
0.19484016299247742,
-0.3243555724620819,
-0.49041056632995605,
0.15428368747234344,
0.07465025037527084,
-0.27178147435188293,
0.02345660887658596,
0.38790255784988403,
-0.3381466567516327,
-0.6115478277206421,
0.2545914947986603,
0.1313547044992447,
0.2377837747335434,
-0.1394326388835907,
-0.9801657199859619,
0.19023430347442627,
0.22410590946674347,
-0.3438599407672882,
0.3283039927482605,
0.1919923722743988,
0.07875198870897293,
0.4955143332481384,
0.8773199915885925,
-0.12465033680200577,
0.25038453936576843,
-0.17582978308200836,
1.0836577415466309,
-0.8649497628211975,
-0.5415976047515869,
-0.7542389035224915,
0.6768282055854797,
0.04223858192563057,
-0.6340680718421936,
0.790134847164154,
0.7719070911407471,
0.8653579950332642,
-0.32965508103370667,
0.672624945640564,
-0.28081050515174866,
0.10804109275341034,
-0.47099924087524414,
0.6658017635345459,
-0.6152081489562988,
0.2560625970363617,
-0.2312052845954895,
-1.0171397924423218,
-0.3489362299442291,
0.5103222727775574,
-0.3538392186164856,
0.3170848786830902,
0.5887224674224854,
1.082558035850525,
-0.33509182929992676,
0.024362582713365555,
0.2060532569885254,
0.24166318774223328,
0.3576609194278717,
0.8652847409248352,
0.746810793876648,
-0.77202969789505,
0.6396569013595581,
-0.3691940903663635,
-0.13125595450401306,
-0.4487228989601135,
-0.5568628311157227,
-0.8670899868011475,
-0.5536671876907349,
-0.4290108382701874,
-0.6096435785293579,
0.015546162612736225,
0.9923987984657288,
0.9979618787765503,
-0.7260220646858215,
-0.10255392640829086,
-0.05470697581768036,
0.11661206930875778,
-0.2464078664779663,
-0.1768130362033844,
0.5089962482452393,
-0.1784287393093109,
-0.6979523301124573,
0.11284666508436203,
-0.21083839237689972,
0.056285396218299866,
-0.3393322825431824,
-0.2904805839061737,
-0.11411843448877335,
-0.21654900908470154,
0.3763780891895294,
0.3924923539161682,
-0.6070576310157776,
-0.07830081135034561,
0.0522804819047451,
-0.32023027539253235,
0.22489552199840546,
0.6055473685264587,
-0.5921611189842224,
0.1758476048707962,
0.39754199981689453,
0.5633820295333862,
0.818143367767334,
0.05094905197620392,
0.030392341315746307,
-0.41522908210754395,
0.16838112473487854,
0.2568335235118866,
0.2464103102684021,
0.23035219311714172,
-0.5376043915748596,
0.3955829441547394,
0.23515206575393677,
-0.8868294358253479,
-0.7495154142379761,
-0.0691956877708435,
-0.8682563900947571,
-0.45535343885421753,
1.2923486232757568,
-0.12707720696926117,
-0.3883148729801178,
0.04889291524887085,
-0.1516222357749939,
0.16938549280166626,
-0.36100897192955017,
0.641930341720581,
0.4180372357368469,
0.2032686024904251,
-0.06135696917772293,
-0.6897813677787781,
0.35450658202171326,
0.30224332213401794,
-0.5923958420753479,
0.007353834807872772,
0.613766610622406,
0.5796099305152893,
0.3950224816799164,
0.3834872245788574,
-0.2761462330818176,
0.44342002272605896,
0.014510467648506165,
0.41463980078697205,
-0.4825223982334137,
-0.44086024165153503,
-0.7282053828239441,
0.14899134635925293,
0.03376949578523636,
-0.31633007526397705
] |
zatochu/EasyFluff
|
zatochu
| 2023-10-07T21:33:47Z | 8,280 | 20 |
diffusers
|
[
"diffusers",
"arxiv:2305.08891",
"endpoints_compatible",
"diffusers:StableDiffusionPipeline",
"region:us"
] | null | 2023-08-12T22:49:28Z |
V10-FunnerEdition?
- Tweaked UNET with supermerger adjust to dial back noise/detail that can resolve eye sclera bleed in some cases.
- Adjusted contrast and color temperature. (Less orange/brown by default)
- CLIP should theoretically respond more to natural language. (Don't conflate this with tags not working or having to use natural language. Also it is not magic, so don't expect extremely nuanced prompts to work better.)
- FunEdition and FunEditionAlt are earlier versions before adjusting the UNET further to fix color temperature and color bleed. CLIP on these versions may be less predictable as well.
HOW TO RUN THIS MODEL
- This is a terminal-snr-v-prediction model and you will need an accompanying configuration file to load the checkpoint in v-prediction mode. Relevant configuration files are available in this repository. Place them in the same folder as the checkpoint. ComfyUI users will need to place this configuration file in models/configs and use the Load Checkpoint (With Config) node.
- You will also need https://github.com/Seshelle/CFG_Rescale_webui. This extension can be installed from the Extensions tab by copying this repository link into the Install from URL section. A CFG Rescale value of 0.7 is recommended by the creator of the extension themself. The CFG Rescale slider will be below your generation parameters and above the scripts section when installed. If you do not do this and run inference without CFG Rescale, these will be the types of results you can expect per this research paper. https://arxiv.org/pdf/2305.08891.pdf
<img src="https://huggingface.co/zatochu/EasyFluff/resolve/main/aaef6b3f-8cde-4a34-a4ae-6b7a066a3766.png">
- If you are on ComfyUI, you will need the sampler_rescalecfg.py node from https://github.com/comfyanonymous/ComfyUI_experiments. Same value recommendation applies.
|
[
-0.43551331758499146,
-0.6845535039901733,
0.3633740246295929,
0.2162754088640213,
-0.31104013323783875,
-0.3128007650375366,
-0.00995147880166769,
-0.3649609684944153,
0.5300121307373047,
0.5031510591506958,
-0.8034893870353699,
0.007207095623016357,
-0.36232396960258484,
0.0385780967772007,
-0.18486665189266205,
0.6947212815284729,
0.13307327032089233,
0.19520775973796844,
-0.04750898480415344,
-0.0035954921040683985,
-0.49009931087493896,
-0.263662189245224,
-0.6139549016952515,
-0.13583701848983765,
0.19496187567710876,
0.7850037217140198,
0.45450326800346375,
0.6209294199943542,
0.6401289105415344,
0.4371325969696045,
-0.410306453704834,
-0.34969431161880493,
-0.578068196773529,
0.18081164360046387,
0.17425937950611115,
-0.33302736282348633,
-0.29771730303764343,
-0.3469458520412445,
0.5165443420410156,
0.26005369424819946,
-0.5432590246200562,
-0.05035983771085739,
-0.08931458741426468,
0.4758451282978058,
-0.6625953912734985,
0.09949419647455215,
-0.1880573183298111,
0.03546060621738434,
0.1686265468597412,
0.13745002448558807,
-0.22730351984500885,
-0.09257801622152328,
0.4301379919052124,
-0.9809320569038391,
0.24535775184631348,
0.05913598835468292,
1.1647388935089111,
0.22810202836990356,
-0.36798927187919617,
0.22950772941112518,
-0.5665439963340759,
0.9116044640541077,
-0.6860187649726868,
0.614724338054657,
0.02372092567384243,
0.4630570411682129,
-0.33604228496551514,
-1.3080296516418457,
-0.33709070086479187,
-0.3077191710472107,
0.07722398638725281,
0.2697659134864807,
-0.6126025319099426,
0.24772793054580688,
0.5890134572982788,
0.37939807772636414,
-0.4181736707687378,
-0.04052732139825821,
-0.6299070715904236,
-0.6116159558296204,
0.2789210379123688,
0.3114983141422272,
0.27754151821136475,
-0.2595420479774475,
-0.5208670496940613,
-0.24286578595638275,
-0.11698588728904724,
0.06288058310747147,
-0.04853248968720436,
0.10652604699134827,
-0.2782035171985626,
0.15077291429042816,
-0.7695992588996887,
0.5667473673820496,
0.38694095611572266,
-0.2553974986076355,
0.4543386399745941,
-0.3974045515060425,
-0.3901515603065491,
-0.021969571709632874,
0.7724581956863403,
0.7014187574386597,
0.06627321243286133,
0.29340818524360657,
-0.15947231650352478,
-0.10768579691648483,
0.25231677293777466,
-1.2811435461044312,
-0.2018205225467682,
0.24681305885314941,
-0.3562023341655731,
-0.4960123598575592,
0.07282990962266922,
-0.9060980677604675,
-0.03567075356841087,
-0.5176845192909241,
0.6696889400482178,
-0.6185048818588257,
-0.35977616906166077,
0.16875065863132477,
-0.4720993638038635,
0.22603167593479156,
0.6706395149230957,
-0.7522947192192078,
0.3687177300453186,
0.04748387634754181,
0.7159333825111389,
0.050255004316568375,
-0.09520447999238968,
-0.7047853469848633,
-0.16133642196655273,
-0.10104665160179138,
0.844288170337677,
-0.16177190840244293,
-0.4266614019870758,
0.03126763179898262,
0.5275043845176697,
-0.17593878507614136,
-0.38552215695381165,
0.6827676296234131,
-0.2386040836572647,
0.08527106046676636,
-0.21710267663002014,
-0.4980190396308899,
-0.2818172574043274,
-0.00594779709354043,
-0.677035391330719,
1.153780460357666,
0.4688865840435028,
-0.8336916565895081,
0.41050082445144653,
-0.4516754746437073,
-0.037159498780965805,
0.10210705548524857,
0.15463495254516602,
-0.6671755313873291,
0.24290333688259125,
0.062402475625276566,
0.24014976620674133,
0.19924592971801758,
0.05534325912594795,
-0.4733831286430359,
-0.47610238194465637,
0.1249607726931572,
-0.18157705664634705,
0.855467677116394,
0.35879454016685486,
-0.41821420192718506,
0.32068121433258057,
-0.9132598638534546,
0.22621601819992065,
-0.13526572287082672,
-0.09893740713596344,
-0.02312767691910267,
-0.45820313692092896,
0.338498055934906,
-0.06514996290206909,
0.07301618903875351,
-0.6215631365776062,
0.11189787089824677,
-0.2589711844921112,
0.6347672343254089,
0.6122766137123108,
0.2008165419101715,
0.4203755855560303,
-0.23281028866767883,
0.6872448325157166,
-0.06312645971775055,
0.493164598941803,
0.07923533022403717,
-0.36019107699394226,
-1.1251459121704102,
-0.31082388758659363,
0.16516023874282837,
0.5607391595840454,
-0.7553598880767822,
0.11858098208904266,
0.00796622596681118,
-0.6996504664421082,
0.20388607680797577,
-0.1438339203596115,
0.1873084306716919,
0.5521252155303955,
0.2504269480705261,
-0.430898517370224,
-0.8016936779022217,
-0.9289793372154236,
0.17800119519233704,
-0.0948331281542778,
0.05753231793642044,
0.2634856700897217,
0.5853257775306702,
-0.3764624297618866,
0.7264125943183899,
-0.8165656328201294,
-0.2643139064311981,
-0.2755277752876282,
-0.016765357926487923,
0.029883837327361107,
0.3844360411167145,
0.6685589551925659,
-0.5553308129310608,
-0.2931962311267853,
-0.18242183327674866,
-0.43254876136779785,
-0.17077435553073883,
0.3149629831314087,
-0.1766129732131958,
0.10512146353721619,
0.8663961291313171,
-0.40747737884521484,
0.6690759658813477,
0.4349372684955597,
-0.5468460321426392,
0.8912090063095093,
-0.25717833638191223,
0.2253592163324356,
-1.084712028503418,
0.0024508407805114985,
0.303059846162796,
-0.432779461145401,
-0.7347221374511719,
0.43541666865348816,
0.1785609871149063,
-0.01653999276459217,
-0.8601559996604919,
0.4307691156864166,
-0.22078575193881989,
0.27247071266174316,
-0.24258652329444885,
-0.2435694932937622,
0.1609121859073639,
0.23139742016792297,
0.2212575227022171,
0.778954267501831,
0.4252006709575653,
-0.5804623365402222,
0.39151841402053833,
0.1303061842918396,
-0.2589414715766907,
0.2698795795440674,
-0.7978649139404297,
-0.014659618958830833,
0.23501452803611755,
0.3407035171985626,
-0.8192939162254333,
-0.5427533388137817,
0.2660949230194092,
-0.48418834805488586,
0.22312043607234955,
-0.17033454775810242,
-0.08922608196735382,
-0.18463635444641113,
-0.35296475887298584,
0.2912704348564148,
0.4347299337387085,
-0.1392502635717392,
0.6901296377182007,
0.23505160212516785,
-0.05156472325325012,
-0.2145863175392151,
-0.7147785425186157,
-0.20559440553188324,
-0.4161934554576874,
-0.6900931596755981,
0.4527115523815155,
-0.08017278462648392,
-0.2486480325460434,
-0.2930868864059448,
0.0004385454813018441,
-0.3603702187538147,
-0.09070023149251938,
0.3150636851787567,
0.37880605459213257,
-0.3280361592769623,
0.06381070613861084,
-0.1055251732468605,
-0.19157491624355316,
-0.07809063792228699,
-0.08316994458436966,
0.4330562353134155,
-0.4053173065185547,
0.19629748165607452,
-0.42121070623397827,
0.0035963437985628843,
0.6603831648826599,
0.04654129594564438,
0.39657315611839294,
1.0104265213012695,
-0.4458271861076355,
0.25582101941108704,
-0.6682766079902649,
-0.5233287215232849,
-0.5548562407493591,
0.24036699533462524,
-0.18621434271335602,
-0.6858564615249634,
0.625610888004303,
-0.03120366297662258,
-0.2259373962879181,
0.5137857794761658,
0.45946601033210754,
-0.015797778964042664,
0.6624162793159485,
0.8565638065338135,
0.285815954208374,
1.0750508308410645,
-0.5935667157173157,
-0.1820349097251892,
-0.8581663966178894,
-0.195617213845253,
-0.5168315172195435,
0.07846299558877945,
-0.6886443495750427,
-0.432085245847702,
0.46911266446113586,
0.3570333421230316,
-0.3719039261341095,
0.6039477586746216,
-0.618354856967926,
0.16215381026268005,
0.7619016170501709,
0.2478519082069397,
0.13709242641925812,
0.24507974088191986,
-0.18936948478221893,
-0.2505689263343811,
-0.7435323596000671,
-0.06832128763198853,
0.8271234631538391,
0.29556554555892944,
0.8060898780822754,
0.0015980362659320235,
0.7092931270599365,
-0.02733621746301651,
0.063413105905056,
-0.8448408842086792,
0.3715495765209198,
-0.13101571798324585,
-0.6139283776283264,
-0.3628845810890198,
-0.21335139870643616,
-0.8143919706344604,
0.11576291918754578,
-0.3203149139881134,
-1.2250946760177612,
0.5622955560684204,
0.14247751235961914,
-0.6855025887489319,
-0.14049404859542847,
-0.9072184562683105,
0.8955852389335632,
0.09823734313249588,
-0.5461612939834595,
0.0012453407980501652,
-0.5370731353759766,
0.3042139410972595,
0.284018337726593,
0.13020305335521698,
0.25820571184158325,
-0.005299522541463375,
0.8531278967857361,
-0.837699830532074,
0.6794673800468445,
-0.00766428466886282,
0.2810176610946655,
0.6129885315895081,
-0.09047990292310715,
0.43559691309928894,
0.16650347411632538,
-0.09905169904232025,
0.1383514404296875,
0.5181519389152527,
-0.24716046452522278,
-0.5106451511383057,
0.6812100410461426,
-0.8538913130760193,
-0.43931135535240173,
-0.6576540470123291,
-0.2579629719257355,
0.19866038858890533,
0.27921345829963684,
0.7287625670433044,
0.6945371627807617,
-0.09990166872739792,
0.40968984365463257,
0.7625030279159546,
-0.11378508806228638,
0.4816659092903137,
0.654887855052948,
-0.5368130207061768,
-0.8122134208679199,
0.8632909059524536,
0.253386914730072,
0.44121038913726807,
0.09197933971881866,
0.45096614956855774,
-0.2319427877664566,
-0.15204845368862152,
-0.6876905560493469,
-0.0737190768122673,
-0.7199203372001648,
-0.34052664041519165,
-0.6034637093544006,
-0.3005857765674591,
-0.6759865283966064,
0.043206240981817245,
-0.2613511085510254,
-0.5926181674003601,
-0.39399293065071106,
-0.15306435525417328,
0.8905777335166931,
0.49614155292510986,
-0.4178856313228607,
0.6444195508956909,
-0.5722931623458862,
0.18497204780578613,
0.25492724776268005,
0.012917468324303627,
-0.3481757938861847,
-0.7433739304542542,
-0.3377182185649872,
-0.06490687280893326,
-0.7276434898376465,
-0.818394660949707,
0.4522955119609833,
0.12627127766609192,
0.3429921567440033,
0.5124683380126953,
0.09396696090698242,
0.8933961391448975,
-0.1770629584789276,
0.8075085282325745,
0.45161131024360657,
-0.8651437163352966,
0.633608341217041,
-0.5041943192481995,
0.28569361567497253,
0.6320093274116516,
-0.028666555881500244,
-0.5255318284034729,
-0.3446958065032959,
-0.8522982597351074,
-0.8993985056877136,
0.5732423067092896,
0.24206611514091492,
-0.07214637845754623,
0.1323513239622116,
0.3962309956550598,
-0.18360118567943573,
-0.06239579990506172,
-0.5353727340698242,
-0.23308347165584564,
-0.38866734504699707,
0.21127267181873322,
0.06370625644922256,
-0.23782646656036377,
0.13356322050094604,
-0.5543316006660461,
0.4441527724266052,
-0.2843465805053711,
0.49176260828971863,
0.6494825482368469,
0.12822119891643524,
-0.431641548871994,
0.13288289308547974,
0.7356716990470886,
0.631364107131958,
-0.5383545160293579,
-0.3824789822101593,
0.39170512557029724,
-0.7718268036842346,
0.1614060252904892,
0.19698598980903625,
-0.311670184135437,
0.17905279994010925,
0.3482859432697296,
0.8539040684700012,
0.2648713290691376,
-0.29933273792266846,
0.5181500315666199,
-0.4140912592411041,
-0.4089389145374298,
-0.5482066869735718,
0.3338959217071533,
-0.020984241738915443,
0.004715683404356241,
0.12396518886089325,
0.1476355940103531,
0.5918504595756531,
-0.5117889046669006,
0.349878191947937,
0.083522729575634,
-0.9988653063774109,
0.009369787760078907,
0.5992813110351562,
0.3440816402435303,
-0.11951176822185516,
0.6327930092811584,
-0.1602357178926468,
-0.6203497648239136,
0.867412269115448,
0.41821861267089844,
0.878855288028717,
-0.2496841847896576,
0.1292548030614853,
0.7024382948875427,
0.04129999503493309,
-0.10129114985466003,
0.44663718342781067,
0.37953370809555054,
-0.6180760264396667,
-0.46712708473205566,
-0.6610479354858398,
-0.3074984848499298,
0.24387824535369873,
-1.003822922706604,
0.7074970602989197,
-0.5278556942939758,
-0.3315553367137909,
-0.071100153028965,
0.17982327938079834,
-0.79379802942276,
0.5465363264083862,
-0.18999187648296356,
1.2226377725601196,
-0.8562631607055664,
0.6701533794403076,
0.6669739484786987,
-0.5816256403923035,
-1.2519663572311401,
-0.00962284579873085,
0.21885156631469727,
-0.6416482925415039,
0.3956250846385956,
0.24418219923973083,
-0.06261014193296432,
0.020157933235168457,
-0.5046836733818054,
-0.8569267392158508,
1.299394130706787,
0.5253146886825562,
-0.8170964121818542,
0.1468668431043625,
-0.23355723917484283,
0.41823065280914307,
-0.24530278146266937,
0.6924278140068054,
0.53375643491745,
0.3757663667201996,
0.2399923950433731,
-1.2273995876312256,
0.21518343687057495,
-0.02129483036696911,
-0.011461982503533363,
-0.05620943382382393,
-0.9870204329490662,
0.8170645236968994,
-0.4126293957233429,
-0.03854266181588173,
0.40666279196739197,
0.6417931318283081,
0.29987794160842896,
0.3750618100166321,
0.5982381701469421,
0.8004633188247681,
0.4108208417892456,
-0.07158380001783371,
0.9599123001098633,
-0.435718297958374,
0.5312637686729431,
0.8205774426460266,
0.1858176440000534,
0.7658098340034485,
0.7087768316268921,
-0.03035402111709118,
0.6844232678413391,
0.8710075616836548,
0.1580202579498291,
0.49816110730171204,
0.29817184805870056,
-0.19557449221611023,
-0.35283568501472473,
-0.2686619758605957,
-0.7275452613830566,
0.4130633473396301,
0.2287379801273346,
-0.3347581923007965,
-0.01238938793540001,
0.07392232120037079,
-0.08112408965826035,
-0.4341537058353424,
-0.19476334750652313,
0.8365525603294373,
0.29827675223350525,
-0.6294718384742737,
0.4327441453933716,
-0.14246389269828796,
0.5128598809242249,
-0.5290381908416748,
-0.2787489891052246,
-0.3201897144317627,
0.2658900320529938,
-0.21139995753765106,
-0.511122465133667,
0.17463921010494232,
-0.2925715744495392,
-0.05061274394392967,
0.029543381184339523,
0.9971408843994141,
-0.006003988441079855,
-0.7638598084449768,
0.3166816830635071,
0.399535596370697,
0.16660082340240479,
0.05649500712752342,
-0.6402053236961365,
0.3425622582435608,
0.1391085535287857,
-0.4679255485534668,
0.27501949667930603,
0.4853622019290924,
0.04236013442277908,
0.920172929763794,
0.3631953001022339,
-0.09636054188013077,
-0.07850325852632523,
0.27111169695854187,
1.045303225517273,
-0.6298527121543884,
-0.590988278388977,
-0.46503934264183044,
0.6931741833686829,
-0.2230130434036255,
-0.5798700451850891,
0.5070874094963074,
0.6234332919120789,
0.7063169479370117,
-0.172014057636261,
0.6393337845802307,
-0.12396466732025146,
0.1980496048927307,
-0.6393808126449585,
0.4414558708667755,
-0.5985874533653259,
-0.014329228550195694,
-0.5502017736434937,
-0.8279297947883606,
-0.029409704729914665,
0.790092408657074,
-0.06328952312469482,
-0.03391340374946594,
0.7100595235824585,
1.0148588418960571,
-0.17464551329612732,
-0.030528828501701355,
0.4025857150554657,
0.06646855920553207,
0.031026024371385574,
0.323366641998291,
0.8005193471908569,
-0.7976933717727661,
0.9269132614135742,
-0.6163985729217529,
-0.39947301149368286,
-0.6287164688110352,
-0.7804056406021118,
-0.49831047654151917,
-0.2887829542160034,
-0.6289100050926208,
-0.7750474214553833,
0.046281181275844574,
0.8468864560127258,
0.9781394600868225,
-0.6995009183883667,
-0.1469305455684662,
-0.30646204948425293,
-0.21870315074920654,
-0.2441817671060562,
-0.3270534574985504,
0.06529060006141663,
-0.10068174451589584,
-0.6944277286529541,
0.025706693530082703,
-0.04104293882846832,
0.21613144874572754,
-0.14821213483810425,
-0.09761933237314224,
0.19448637962341309,
-0.13589392602443695,
0.2707720398902893,
0.32869598269462585,
-0.7388594150543213,
-0.6769424080848694,
0.3062286078929901,
-0.08779981732368469,
-0.01592608541250229,
0.6140499711036682,
-0.7400631308555603,
0.4757232964038849,
0.652725338935852,
-0.25146809220314026,
0.6656351089477539,
-0.31184226274490356,
0.747711181640625,
-0.2685508728027344,
0.11210887134075165,
-0.1727302223443985,
0.7509856224060059,
0.0017542620189487934,
-0.46046018600463867,
0.5153481960296631,
0.48943889141082764,
-0.6997024416923523,
-0.7126485109329224,
0.2234322726726532,
-1.222684621810913,
-0.09809069335460663,
1.3409208059310913,
-0.18854893743991852,
-0.3139786422252655,
-0.08311120420694351,
-0.6574569344520569,
0.3043060004711151,
-0.8046488761901855,
0.4468803107738495,
0.6074820160865784,
-0.2697465717792511,
-0.41843944787979126,
-0.6270912289619446,
0.5363625884056091,
0.20004554092884064,
-0.4833468794822693,
-0.15499445796012878,
0.45091238617897034,
0.7092865705490112,
0.35492610931396484,
0.6561862230300903,
0.09611489623785019,
0.6056714057922363,
0.3690766394138336,
0.007260981015861034,
0.053409378975629807,
-0.03570413589477539,
-0.3755073547363281,
-0.19557121396064758,
0.011462808586657047,
-0.2703629732131958
] |
StudentLLM/Alpagasus-2-13b-QLoRA-merged
|
StudentLLM
| 2023-09-15T07:07:30Z | 8,280 | 2 |
transformers
|
[
"transformers",
"pytorch",
"llama",
"text-generation",
"en",
"license:other",
"endpoints_compatible",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-09-02T04:38:10Z |
---
license: other
language:
- en
---
## Model Details
This is an unofficial implementation of "[AlpaGasus: Training a better Alpaca with Fewer Data.](https://github.com/Lichang-Chen/AlpaGasus)" with [LLaMA2](https://huggingface.co/meta-llama/Llama-2-13b-hf) & QLoRA! Training code is available at our [repo](https://github.com/gauss5930/AlpaGasus2-QLoRA).
- **Developed by:** [Yunsang Yoo](https://huggingface.co/ryan0712) and [Hyunwoo Ko](https://huggingface.co/Cartinoe5930)
- **Model type:** Auto-regressive model
- **Language(s):** English
- **Base Model:** [meta-llama/Llama-2-13b-hf](https://huggingface.co/meta-llama/Llama-2-13b-hf)
- **License**: Non-Commercial Creative Commons license ([CC BY-NC-4.0](https://creativecommons.org/licenses/by-nc/4.0/))
### Training dataset
"StudentLLM/Alpagasus-2-13b-QLoRA-merged" used [gpt4life](https://github.com/gpt4life/alpagasus)'s gpt-3.5-turbo filtered dataset, 'alpaca_t45.json'.
Configuration of the dataset is as follows:
```
{
'instruction': Give the instruction describing the question.
'input': Occasionally present, detailed instructions accompany the question if available.
'output': Give answers to questions.
}
.
.
.
```
### Prompt Template: Alpaca style prompt
```
Below is an instruction that describes a task. Write a response that appropriately completes the request.
### Instruction:
<prompt> (without the <>)
### Input:
<prompt> (if input exists)
### Response:
```
### Fine-tuning Procedure
Our model was finetuned using QLoRA on single A100 80GB GPU. Training details are described in [repo](https://github.com/gauss5930/AlpaGasus2-QLoRA).
### Benchmark Metrics
"StudentLLM/Alpagasus-2-13b-QLoRA-merged" model performance is uploaded on Huggingface's [OpenLLM Leaderboard](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard). Model was evaluated on the tasks specified in HF's Open LLM Leaderboard(ARC, HellaSwag, MMLU, TruthfulQA).
| Metric | Value |
|-----------------------|-------|
| Avg. | 59.34 |
| MMLU | 55.27 |
| ARC | 61.09 |
| HellaSwag | 82.46 |
| TruthfulQA | 38.53 |
### LLM Evaluation
We tried to follow the evaluation metric introduced by the AlpaGasus paper. During the process, we consulted the code by [gpt4life](https://github.com/gpt4life/alpagasus). We used OpenAI's gpt-3.5-turbo as the evaluator model, and Alpaca2-LoRA-13B(it doesn't exist now...) as the comparison model. For more detailed information, please refer to our Github [repo](https://github.com/gauss5930/AlpaGasus2-QLoRA).
The evaluation result of AlpaGasus2-QLoRA is as follows:

### How to use
To use "StudentLLM/Alpagasus-2-13b-QLoRA-merged", please follow the following code! The use of the 7B model is the same!
```python
from peft import PeftModel, PeftConfig
from transformers import AutoModelForCausalLM
import torch
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
config = PeftConfig.from_pretrained("StudentLLM/Alpagasus-2-13B-QLoRA")
model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-2-13b-hf", use_auth_token="yotu_HuggingFace_token").to(device)
model = PeftModel.from_pretrained(model, "StudentLLM/Alpagasus-2-13B-QLoRA")
tokenizer = AutoTokenizer.from_pretrained("StudentLLM/Alpagasus-2-13B-QLoRA")
tokenizer.pad_token = tokenizer.eos_token
input_data = "Please tell me 3 ways to relieve stress." # You can enter any questions!!
model_inputs = tokenizer(input_data, return_tensors='pt').to(device)
model_output = model.generate(**model_inputs, max_length=256)
model_output = tokenizer.decode(model_output[0], skip_special_tokens=True)
print(model_output)
```
### Citations
```bibtex
@article{chen2023alpagasus,
title={AlpaGasus: Training a Better Alpaca with Fewer Data},
author={Lichang Chen, Shiyang Li, Jun Yan, Hai Wang, Kalpa Gunaratna, Vikas Yadav, Zheng Tang, Vijay Srinivasan, Tianyi Zhou, Heng Huang, Hongxia Jin},
journal={arXiv preprint arXiv:2307.08701},
year={2023}
}
```
|
[
-0.45820170640945435,
-0.6996651887893677,
0.2683495283126831,
0.20992493629455566,
-0.4203479588031769,
-0.14756657183170319,
-0.1991538554430008,
-0.5586435794830322,
0.19151456654071808,
0.15014056861400604,
-0.6727343797683716,
-0.5577003359794617,
-0.5593582987785339,
-0.011045732535421848,
-0.20571692287921906,
1.2749911546707153,
-0.33112508058547974,
-0.016964519396424294,
0.10368247330188751,
-0.31565675139427185,
-0.2676021158695221,
-0.40073245763778687,
-0.741982102394104,
-0.5063391923904419,
0.4501264691352844,
0.0311069805175066,
0.5446453094482422,
0.5990757942199707,
0.46436363458633423,
0.29706841707229614,
-0.17637187242507935,
0.24018536508083344,
-0.4378174841403961,
-0.3785497546195984,
0.3126485347747803,
-0.5117838978767395,
-0.7242398262023926,
0.18245548009872437,
0.6464637517929077,
0.19953328371047974,
-0.28188323974609375,
0.4904978573322296,
0.29850339889526367,
0.5090182423591614,
-0.5495845079421997,
0.30811020731925964,
-0.41340604424476624,
0.09913632273674011,
-0.10578954219818115,
-0.042159706354141235,
-0.08181671053171158,
-0.5178518891334534,
-0.05273852124810219,
-0.7769806385040283,
0.22239312529563904,
-0.11280947178602219,
1.2903721332550049,
0.44035568833351135,
-0.2459946721792221,
-0.2966792583465576,
-0.47890225052833557,
0.5976632833480835,
-0.9861427545547485,
0.27075305581092834,
0.526870846748352,
0.14469236135482788,
-0.12635904550552368,
-0.6077238917350769,
-0.6927760243415833,
-0.13072890043258667,
-0.18471528589725494,
0.11759315431118011,
-0.2768155634403229,
-0.043988410383462906,
0.18916374444961548,
0.39271512627601624,
-0.5946130156517029,
0.08213333785533905,
-0.6098737716674805,
-0.10824956744909286,
0.676364541053772,
0.0735122561454773,
-0.06919866800308228,
-0.12507659196853638,
-0.5274996161460876,
-0.4453285038471222,
-0.5977780818939209,
0.37965160608291626,
0.4988571107387543,
0.2854599356651306,
-0.5235512256622314,
0.48870590329170227,
-0.19376356899738312,
0.5401538014411926,
0.17601683735847473,
-0.42866483330726624,
0.7560693621635437,
-0.2842574715614319,
-0.5855809450149536,
-0.17327630519866943,
1.005618691444397,
0.22480715811252594,
-0.09360478073358536,
0.07949941605329514,
-0.13043668866157532,
-0.06947837769985199,
-0.14939795434474945,
-0.8239461779594421,
-0.26677724719047546,
0.2752200961112976,
-0.5134617686271667,
-0.3970700204372406,
0.03738371282815933,
-0.646273136138916,
-0.0565224215388298,
-0.07142943888902664,
0.6609131097793579,
-0.3824883997440338,
-0.22205932438373566,
0.1471916139125824,
0.2825041711330414,
0.5065513849258423,
0.22889117896556854,
-0.711356520652771,
0.415094256401062,
0.5200879573822021,
0.87196284532547,
-0.01707775890827179,
-0.5260106921195984,
-0.34936341643333435,
-0.18616075813770294,
-0.10049992799758911,
0.6583895683288574,
-0.006161070428788662,
-0.32196280360221863,
-0.2764606177806854,
0.20842377841472626,
-0.4269203841686249,
-0.5365014672279358,
0.7753742337226868,
-0.39189857244491577,
0.4313228130340576,
-0.30753129720687866,
-0.47354656457901,
-0.4744705259799957,
0.1677754819393158,
-0.4953279197216034,
1.276907205581665,
0.2736571431159973,
-0.6600613594055176,
0.18739968538284302,
-0.7572152018547058,
0.057784099131822586,
-0.18402186036109924,
0.0813179686665535,
-0.85065096616745,
-0.2902642786502838,
0.1691298931837082,
0.3525654971599579,
-0.32371965050697327,
0.14918950200080872,
-0.2629668414592743,
-0.4671999514102936,
0.16740722954273224,
-0.19509850442409515,
0.9950392842292786,
0.21257515251636505,
-0.5338243246078491,
0.20002537965774536,
-0.7781525254249573,
0.024132875725626945,
0.5304158926010132,
-0.4938984811306,
0.032082732766866684,
-0.3245960772037506,
-0.05163668096065521,
0.13810008764266968,
0.34973710775375366,
-0.3891018331050873,
0.42639946937561035,
-0.2594504654407501,
0.36087843775749207,
0.7171752452850342,
-0.13175265491008759,
0.28375932574272156,
-0.4437667429447174,
0.5280879735946655,
-0.16566476225852966,
0.458258718252182,
0.16715805232524872,
-0.6565248370170593,
-1.0659717321395874,
-0.2130584567785263,
0.21913719177246094,
0.5913301706314087,
-0.5259659886360168,
0.6411952972412109,
0.030745448544621468,
-0.8547515273094177,
-0.5333296060562134,
0.2952469289302826,
0.5099383592605591,
0.7227455377578735,
0.6143059730529785,
-0.3530774712562561,
-0.5204175114631653,
-0.8184381723403931,
0.13207241892814636,
-0.3940684497356415,
0.18066291511058807,
0.22679468989372253,
0.695071816444397,
-0.33112889528274536,
0.6383308172225952,
-0.6526857018470764,
-0.4020865261554718,
-0.052122149616479874,
0.1320217251777649,
0.47954699397087097,
0.7362769842147827,
0.9439396262168884,
-0.27646327018737793,
-0.32714736461639404,
-0.2612478733062744,
-0.751673698425293,
-0.08301623910665512,
0.05083936080336571,
-0.45560720562934875,
0.21635444462299347,
0.10083802789449692,
-0.8455947041511536,
0.48015472292900085,
0.5446760654449463,
-0.5650385618209839,
0.6496984958648682,
-0.12738528847694397,
0.09713874757289886,
-0.8627399206161499,
0.2752400040626526,
-0.029947461560368538,
-0.04071952775120735,
-0.4325270652770996,
0.20380766689777374,
0.055373456329107285,
0.14054816961288452,
-0.5855911374092102,
0.6117931604385376,
-0.309941828250885,
0.01191509235650301,
-0.302382230758667,
-0.26016324758529663,
0.13470368087291718,
0.8804295659065247,
-0.19884030520915985,
0.7116903066635132,
0.479112833738327,
-0.47310712933540344,
0.3550134003162384,
0.42178428173065186,
-0.20161499083042145,
0.12495772540569305,
-0.7988851070404053,
0.2253425568342209,
0.14898033440113068,
0.44597962498664856,
-0.8950996398925781,
-0.11381258815526962,
0.7358676791191101,
-0.3708525598049164,
0.225411057472229,
-0.12477894872426987,
-0.4977160394191742,
-0.6277446746826172,
-0.4550156593322754,
0.5821555256843567,
0.6795974373817444,
-0.7540963888168335,
0.47991591691970825,
0.032671622931957245,
0.10136990249156952,
-0.644655704498291,
-0.5663710236549377,
-0.38517245650291443,
-0.449956476688385,
-0.43820643424987793,
0.24704930186271667,
-0.3148524761199951,
0.07045519351959229,
0.029355039820075035,
0.01950201950967312,
-0.03451383486390114,
0.13067619502544403,
0.2535690665245056,
0.5658605098724365,
-0.1531323492527008,
0.035403039306402206,
0.09843826293945312,
0.050129976123571396,
0.06952360272407532,
-0.0017419185023754835,
0.7946799397468567,
-0.3957551121711731,
-0.31067925691604614,
-0.6811736226081848,
-0.09395241737365723,
0.2451181709766388,
-0.24920061230659485,
0.8589504361152649,
0.8962630033493042,
-0.3627142906188965,
0.21601681411266327,
-0.6567050218582153,
-0.05083191767334938,
-0.46160516142845154,
0.1960381120443344,
-0.2618674039840698,
-0.6346668004989624,
0.7156002521514893,
0.3537513017654419,
0.18121817708015442,
0.8611816763877869,
0.5957599878311157,
0.011010165326297283,
0.7608017921447754,
0.5174363851547241,
-0.019605960696935654,
0.49781283736228943,
-0.8673108220100403,
-0.08520246297121048,
-1.0216727256774902,
-0.5388301610946655,
-0.4596315324306488,
-0.29897281527519226,
-0.4089738726615906,
-0.47530341148376465,
0.3029042184352875,
0.34574228525161743,
-0.5500081181526184,
0.45672181248664856,
-0.6281722187995911,
0.26686352491378784,
0.5100780129432678,
0.289187490940094,
0.19275690615177155,
0.09292947500944138,
-0.014333108440041542,
0.20563234388828278,
-0.7010602355003357,
-0.42839542031288147,
1.2691048383712769,
0.5925194621086121,
0.6556733250617981,
0.01186353899538517,
0.9285864233970642,
0.02308104746043682,
0.4434237480163574,
-0.6732978224754333,
0.4433996081352234,
0.0920141339302063,
-0.318046897649765,
-0.10077519714832306,
-0.38123828172683716,
-1.1033333539962769,
0.4168870151042938,
-0.24833272397518158,
-0.6590200066566467,
0.41921764612197876,
0.1392032951116562,
-0.7096258997917175,
0.3408423662185669,
-0.6810011863708496,
0.8245466351509094,
-0.29595014452934265,
-0.3549259603023529,
-0.030325518921017647,
-0.45604345202445984,
0.5785349011421204,
-0.11981619149446487,
0.15293067693710327,
-0.24564175307750702,
-0.03474664315581322,
1.2093291282653809,
-0.7864403128623962,
0.7556722164154053,
-0.3533533215522766,
-0.26112067699432373,
0.6386231184005737,
-0.22726581990718842,
0.49609917402267456,
-0.04410645365715027,
-0.08549097925424576,
0.37618622183799744,
-0.015552829019725323,
-0.4947628080844879,
-0.3958064913749695,
0.7216901779174805,
-1.1823387145996094,
-0.36800456047058105,
-0.5990351438522339,
-0.45574602484703064,
-0.017040692269802094,
0.04150860756635666,
0.372507244348526,
0.04012621194124222,
0.04750273376703262,
-0.14065338671207428,
0.3681800663471222,
-0.16804859042167664,
0.5630948543548584,
0.43531545996665955,
-0.29417386651039124,
-0.5691584348678589,
0.7245410084724426,
0.06833519041538239,
0.03834611549973488,
-0.09893232583999634,
0.16149304807186127,
-0.3628352880477905,
-0.44891294836997986,
-0.5933119654655457,
0.5960493683815002,
-0.674512505531311,
-0.4729008972644806,
-0.6308706998825073,
-0.29695194959640503,
-0.4250026047229767,
0.1407858431339264,
-0.37617209553718567,
-0.3981020748615265,
-0.5561926364898682,
-0.1614646017551422,
0.531998336315155,
0.5875700116157532,
-0.13954868912696838,
0.5991839170455933,
-0.630962073802948,
0.19375526905059814,
0.3705437481403351,
0.18952879309654236,
0.22161364555358887,
-0.9160171747207642,
-0.39891326427459717,
0.10747382044792175,
-0.5602123141288757,
-0.9284888505935669,
0.6072912812232971,
0.24090693891048431,
0.5807934999465942,
0.35268551111221313,
-0.3068157732486725,
0.8723195195198059,
-0.15568695962429047,
0.7031724452972412,
0.23143106698989868,
-0.80732262134552,
0.6108494400978088,
-0.1998247355222702,
0.16062001883983612,
0.5459460616111755,
0.36982977390289307,
-0.04353555291891098,
-0.09302838146686554,
-0.8080952763557434,
-0.9178045392036438,
0.7847660779953003,
0.42153140902519226,
-0.15793216228485107,
0.2784114480018616,
0.5919320583343506,
0.16870781779289246,
0.1712733954191208,
-1.1197359561920166,
-0.43822339177131653,
-0.3354785144329071,
-0.03052317537367344,
-0.07494333386421204,
-0.10130372643470764,
-0.3513658046722412,
-0.6325394511222839,
1.0142738819122314,
-0.14839094877243042,
0.43647804856300354,
0.23879745602607727,
-0.013300104066729546,
-0.30710917711257935,
-0.047984663397073746,
0.5421915650367737,
0.443162739276886,
-0.40278908610343933,
-0.18366356194019318,
0.3123047351837158,
-0.5637378692626953,
0.2538587152957916,
0.4605086147785187,
-0.18968942761421204,
-0.10203824192285538,
0.4005507826805115,
1.1037732362747192,
-0.026748469099402428,
-0.422524631023407,
0.31757068634033203,
-0.20459967851638794,
-0.3635649085044861,
-0.2814076840877533,
0.2602797746658325,
0.05450928956270218,
0.4462742507457733,
0.5301370024681091,
0.05482831969857216,
0.00857290904968977,
-0.4830147325992584,
-0.13675148785114288,
0.30744147300720215,
0.053647469729185104,
-0.3524091839790344,
0.8150728940963745,
0.013806607574224472,
-0.07137621194124222,
0.4888060688972473,
-0.4385603666305542,
-0.4815950095653534,
0.9922248721122742,
0.46525707840919495,
0.8037774562835693,
-0.3080272972583771,
0.09007041901350021,
0.682789146900177,
0.2233898639678955,
-0.22794406116008759,
0.3874429762363434,
-0.004545347765088081,
-0.5835151672363281,
-0.1638069599866867,
-0.8770958185195923,
-0.15954676270484924,
0.4276435077190399,
-0.7945302128791809,
0.24306929111480713,
-0.4169292747974396,
-0.312576562166214,
-0.230680912733078,
0.3907732665538788,
-0.8636326193809509,
0.2774518132209778,
0.12855634093284607,
0.7705457210540771,
-1.058850884437561,
0.9283950328826904,
0.5945486426353455,
-0.4931010901927948,
-1.1188504695892334,
-0.2057846486568451,
-0.1250676065683365,
-1.0234060287475586,
0.46764323115348816,
0.12506501376628876,
0.05666986107826233,
-0.14591297507286072,
-0.5478894114494324,
-1.1409310102462769,
1.5642669200897217,
0.46004435420036316,
-0.5457881093025208,
-0.07180140912532806,
0.015241238288581371,
0.596750795841217,
-0.2786632180213928,
0.33833202719688416,
0.681427538394928,
0.43252113461494446,
0.08948023617267609,
-1.061702847480774,
0.1885746568441391,
-0.41704922914505005,
-0.22706417739391327,
-0.04125852510333061,
-1.166887879371643,
1.2510318756103516,
-0.2998560070991516,
0.002290186006575823,
0.3200257420539856,
0.7924578189849854,
0.637984037399292,
0.30508294701576233,
0.5143822431564331,
0.9075139760971069,
0.8890078067779541,
-0.06976635754108429,
1.035386323928833,
-0.28451797366142273,
0.8508056402206421,
1.099137306213379,
0.009621690958738327,
0.7939152121543884,
0.3213333487510681,
-0.46290549635887146,
0.6078216433525085,
1.002999186515808,
-0.26436248421669006,
0.4902539849281311,
-0.03529171273112297,
-0.11445857584476471,
0.035449426621198654,
0.01810632273554802,
-0.8039493560791016,
0.4900447130203247,
0.10095182806253433,
-0.38855990767478943,
-0.1269352287054062,
-0.08486945927143097,
0.2026766985654831,
-0.43627089262008667,
-0.25197961926460266,
0.5253937244415283,
0.0442235991358757,
-0.5816724896430969,
1.1866867542266846,
0.13215063512325287,
0.9677219390869141,
-0.6291781663894653,
0.05604712665081024,
-0.3155723214149475,
0.056730128824710846,
-0.4296470582485199,
-0.4328741431236267,
0.12348978221416473,
0.09308301657438278,
0.05552378296852112,
0.15324868261814117,
0.5481592416763306,
-0.44451284408569336,
-0.6258199214935303,
0.46030712127685547,
0.5101982355117798,
0.2998870611190796,
0.13658760488033295,
-1.0233944654464722,
0.2804987132549286,
0.01560160145163536,
-0.6166489720344543,
0.366447776556015,
-0.08958905935287476,
0.13888707756996155,
0.6222621202468872,
0.6969799399375916,
-0.029308252036571503,
0.16403460502624512,
0.02791283279657364,
1.0309232473373413,
-0.3406743109226227,
-0.3709513545036316,
-0.8513390421867371,
0.18818725645542145,
0.23319919407367706,
-0.553773045539856,
0.6877252459526062,
0.8086375594139099,
0.896651029586792,
0.001263677841052413,
0.572115957736969,
-0.09143371880054474,
0.26020681858062744,
-0.5901824235916138,
0.7842802405357361,
-0.6605269908905029,
0.22514107823371887,
-0.1873498558998108,
-1.057576298713684,
0.052568987011909485,
0.9105770587921143,
-0.25568073987960815,
0.24056532979011536,
0.5699241161346436,
0.6766322255134583,
-0.1055835634469986,
-0.19922728836536407,
-0.1330704689025879,
0.2697090208530426,
0.30280205607414246,
0.8208423256874084,
0.5039606690406799,
-0.934075117111206,
0.5265902280807495,
-0.6658533811569214,
-0.22609898447990417,
-0.18453021347522736,
-0.5712667107582092,
-0.7785122990608215,
-0.3988964855670929,
-0.3961001932621002,
-0.5163381099700928,
-0.04223225265741348,
1.0918570756912231,
0.6483455300331116,
-0.7166069149971008,
-0.4439657926559448,
0.07116661220788956,
-0.13462190330028534,
-0.2160787433385849,
-0.22164799273014069,
0.7289902567863464,
0.021239031106233597,
-0.8572338223457336,
0.30319902300834656,
-0.26432958245277405,
0.4689076840877533,
-0.22737668454647064,
-0.36268100142478943,
-0.3763924241065979,
-0.0417393334209919,
0.349234014749527,
0.4584208130836487,
-0.6512547135353088,
-0.08564353734254837,
-0.15324686467647552,
-0.18916510045528412,
0.34922465682029724,
0.3413628339767456,
-0.8634312152862549,
0.01971844770014286,
0.30923745036125183,
0.24549366533756256,
0.7652961611747742,
0.048337653279304504,
-0.04576662555336952,
-0.43799108266830444,
0.3763939440250397,
0.002551047131419182,
0.6017390489578247,
0.31423625349998474,
-0.5057129859924316,
0.8041778206825256,
0.3296022415161133,
-0.5293044447898865,
-0.8950328230857849,
-0.2037501037120819,
-1.1584208011627197,
-0.08499813824892044,
1.1482117176055908,
-0.34686967730522156,
-0.47461360692977905,
0.34295347332954407,
-0.3471278250217438,
0.573816180229187,
-0.4536069929599762,
0.8621140718460083,
0.4191799759864807,
-0.392482191324234,
-0.07359717041254044,
-0.4932515621185303,
0.44981759786605835,
0.5341541767120361,
-0.9797093272209167,
-0.3345010280609131,
0.14715255796909332,
0.4939737617969513,
0.14965350925922394,
0.8142629861831665,
0.06855129450559616,
0.31666892766952515,
-0.2345687299966812,
0.2685023844242096,
-0.3404726982116699,
-0.02615247666835785,
-0.5103939175605774,
-0.039435338228940964,
-0.08595380187034607,
-0.32650643587112427
] |
digiplay/AbsoluteReality_v1.0_diffusers
|
digiplay
| 2023-11-07T18:49:55Z | 8,275 | 1 |
diffusers
|
[
"diffusers",
"stable-diffusion",
"stable-diffusion-diffusers",
"text-to-image",
"license:other",
"endpoints_compatible",
"has_space",
"diffusers:StableDiffusionPipeline",
"region:us"
] |
text-to-image
| 2023-06-02T08:14:56Z |
---
license: other
tags:
- stable-diffusion
- stable-diffusion-diffusers
- text-to-image
- diffusers
inference: true
---
Model info:
https://civitai.com/models/81458/absolutereality
|
[
-0.22404660284519196,
-0.2545050382614136,
0.7657630443572998,
0.16242443025112152,
-0.36061859130859375,
0.04671172425150871,
0.7059800028800964,
-0.3682989180088043,
0.386758953332901,
0.33576592803001404,
-0.5739481449127197,
-0.045334432274103165,
0.0015169059624895453,
-0.6817898750305176,
-0.7333303093910217,
0.2914937138557434,
0.14142487943172455,
0.45682740211486816,
-0.06164899840950966,
-0.23262429237365723,
-0.17023974657058716,
-0.3823115825653076,
-0.5604587197303772,
-0.057059794664382935,
0.4441216289997101,
0.45121774077415466,
0.7472806572914124,
0.6863100528717041,
0.38090285658836365,
0.24231179058551788,
-0.1624530851840973,
-0.024997198954224586,
-0.24917124211788177,
-0.18692268431186676,
0.11997252702713013,
-0.7200875282287598,
-1.001112461090088,
-0.10711070150136948,
0.667003333568573,
0.3918541669845581,
-0.14136309921741486,
0.5301892161369324,
-0.08286196738481522,
0.27454718947410583,
-0.9104554653167725,
0.25773656368255615,
0.03824906423687935,
0.15348361432552338,
-0.1881832629442215,
-0.36021244525909424,
-0.17734728753566742,
-0.5045810341835022,
-0.23600991070270538,
-1.0883455276489258,
0.12816455960273743,
0.20842404663562775,
1.6986751556396484,
0.2680945098400116,
-0.5716268420219421,
-0.2537194490432739,
-1.055342197418213,
0.17118673026561737,
-0.3331637382507324,
0.983608067035675,
0.40750852227211,
0.45924845337867737,
-0.43046414852142334,
-0.3936685621738434,
-0.38203954696655273,
-0.00553827965632081,
0.04008805751800537,
0.18997450172901154,
-0.33314165472984314,
0.008130564354360104,
0.3316735327243805,
0.726111888885498,
-0.6975966095924377,
-0.12685254216194153,
-0.8469247817993164,
0.13992881774902344,
0.45374107360839844,
0.008392726071178913,
0.2395651936531067,
0.07023178786039352,
-0.4559831917285919,
0.3541329801082611,
-0.6991062164306641,
0.07032600045204163,
0.5318545699119568,
-0.24880163371562958,
-0.3386201560497284,
0.67197185754776,
-0.31529700756073,
0.9324151873588562,
0.3467174768447876,
0.19836588203907013,
0.04900561645627022,
-0.40267372131347656,
-0.43445372581481934,
0.08211472630500793,
-0.07240929454565048,
0.4743081033229828,
0.25493165850639343,
-0.2901674807071686,
-0.1722567081451416,
-0.5956273674964905,
0.33864662051200867,
-1.0991084575653076,
-0.33163830637931824,
0.12016335874795914,
-0.3702176809310913,
-0.48549365997314453,
0.790173351764679,
-0.21678251028060913,
-0.026650650426745415,
-0.13881681859493256,
0.4345131814479828,
-0.23042690753936768,
-0.5280703902244568,
0.05630240961909294,
-0.12465669959783554,
0.484546422958374,
0.19907410442829132,
-0.3972509801387787,
0.5514758825302124,
0.5533201098442078,
1.0520687103271484,
0.3355376720428467,
0.2584095299243927,
-0.22522900998592377,
0.38620686531066895,
-0.2918643653392792,
0.8220858573913574,
-0.4166177809238434,
-0.5218725800514221,
0.16755473613739014,
0.39078783988952637,
-0.025221742689609528,
-0.49198415875434875,
1.0865306854248047,
-0.9582783579826355,
-0.10598298907279968,
-0.45902320742607117,
-0.6585662961006165,
-0.415534645318985,
0.4562045633792877,
-0.9615431427955627,
0.6614779829978943,
-0.12600357830524445,
-0.7917854189872742,
0.3341875970363617,
-0.8502106666564941,
-0.14780621230602264,
0.5180273652076721,
0.13004443049430847,
-0.4830035865306854,
0.6242637634277344,
-0.7037804126739502,
0.04184471070766449,
-0.4152891933917999,
0.25968560576438904,
-0.6694228649139404,
-0.5754823684692383,
0.3316558301448822,
-0.5386142134666443,
0.952301025390625,
0.4559882581233978,
-0.10282227396965027,
0.20912684500217438,
-1.259613037109375,
-0.021240035071969032,
0.5934557318687439,
0.09692835062742233,
0.04269985482096672,
-0.42185553908348083,
-0.023647569119930267,
0.2890336215496063,
0.3837707042694092,
-0.6598913073539734,
0.0523374043405056,
0.1597842127084732,
0.05696603283286095,
0.4240725338459015,
0.14267487823963165,
-0.31195560097694397,
-0.6002528071403503,
0.9812970757484436,
-0.21727724373340607,
0.7483908534049988,
0.28224125504493713,
-0.49829235672950745,
-1.500157356262207,
-0.2902044951915741,
0.37460196018218994,
0.6505350470542908,
-0.6682405471801758,
0.8365328907966614,
0.06555106490850449,
-0.9210968613624573,
-0.21325691044330597,
-0.31169554591178894,
0.4264570474624634,
0.4110996723175049,
-0.2558962404727936,
-0.3285304605960846,
-0.4680427312850952,
-1.5272382497787476,
-0.09525022655725479,
-0.22396278381347656,
-0.21623225510120392,
0.32066717743873596,
0.578498363494873,
0.19375336170196533,
0.8211690783500671,
-0.8384929299354553,
-0.08256300538778305,
-0.06673067063093185,
-0.12614832818508148,
0.5263494849205017,
0.3358214795589447,
1.2406467199325562,
-1.1632404327392578,
-0.6412878632545471,
-0.19493047893047333,
-0.6103635430335999,
-0.11675769835710526,
0.20312006771564484,
-0.44886884093284607,
-0.36567452549934387,
0.19439499080181122,
-1.0229570865631104,
0.8884292244911194,
0.3264584243297577,
-0.3435940444469452,
0.5395566821098328,
-0.6435904502868652,
0.564335286617279,
-0.9843838810920715,
0.6764301657676697,
0.43082571029663086,
-0.3517308235168457,
-0.2915312349796295,
0.24423183500766754,
0.3356013298034668,
0.5417171120643616,
-0.7196745872497559,
0.08963587135076523,
-0.9029400944709778,
0.1479472666978836,
-0.30599963665008545,
-0.14592163264751434,
0.12521061301231384,
0.23252815008163452,
-0.0669642761349678,
0.7872737050056458,
0.3526102602481842,
-0.6548131108283997,
0.881155252456665,
-0.051112521439790726,
-0.6711376309394836,
0.5428798198699951,
-1.186529278755188,
-0.09895676374435425,
0.056904569268226624,
0.31027480959892273,
-0.9646431803703308,
-0.7166303992271423,
-0.12010011821985245,
-0.5022684931755066,
-0.19746559858322144,
-0.16002994775772095,
-0.7933849692344666,
-0.5845322608947754,
-0.14614856243133545,
0.4005022943019867,
0.08208534866571426,
-0.6140947341918945,
0.37963172793388367,
0.527228057384491,
-0.03870074450969696,
0.24318736791610718,
-0.5444913506507874,
-0.13670754432678223,
-0.39942845702171326,
-0.2389434427022934,
0.3217453956604004,
-0.2953297793865204,
-0.8678287863731384,
-0.35798320174217224,
0.23165565729141235,
-0.8379976749420166,
0.12244286388158798,
0.4509969651699066,
0.6408026814460754,
-0.057349514216184616,
0.16708151996135712,
0.010523159988224506,
-0.06063513830304146,
0.4544806480407715,
0.08457925170660019,
0.802342414855957,
-0.5612433552742004,
-0.1868453174829483,
-1.1695703268051147,
0.1567346602678299,
1.0515979528427124,
-0.18536663055419922,
1.0079971551895142,
0.2704979479312897,
-1.156965732574463,
0.39815545082092285,
-0.8921248316764832,
0.1820955127477646,
-0.486920028924942,
0.21136517822742462,
-0.8506636619567871,
0.3422182500362396,
0.46978959441185,
0.2738056480884552,
-0.3063400983810425,
0.6988680958747864,
0.36084258556365967,
0.16465671360492706,
1.3653596639633179,
1.0195536613464355,
0.6368992924690247,
0.5104855298995972,
-0.6763639450073242,
0.14660684764385223,
-0.6077256798744202,
-0.46765562891960144,
-0.42142462730407715,
0.11713564395904541,
0.03529943898320198,
-0.32622602581977844,
0.14259667694568634,
0.26520416140556335,
-0.7364532351493835,
0.5148939490318298,
-0.4179912805557251,
0.7874162793159485,
0.732922375202179,
0.20708923041820526,
0.4021790325641632,
-0.7920592427253723,
-0.053083986043930054,
-0.113822340965271,
-0.5781788229942322,
-0.6077237725257874,
0.679262638092041,
0.003679995657876134,
0.31102320551872253,
0.44845473766326904,
-0.00942032691091299,
0.2031797617673874,
0.11474814265966415,
-0.5566284656524658,
0.15526379644870758,
0.2927829921245575,
-1.2030071020126343,
0.4851912558078766,
0.06770151108503342,
-0.42088985443115234,
0.2833017110824585,
-0.25503847002983093,
-0.14051440358161926,
0.35680773854255676,
0.5521895289421082,
-0.9659659266471863,
0.772932767868042,
-0.7632208466529846,
0.6559948325157166,
-0.9901571273803711,
-0.21063221991062164,
-0.024353845044970512,
-0.39970242977142334,
0.46920767426490784,
0.07815384119749069,
0.27077868580818176,
0.28352347016334534,
0.027267515659332275,
0.19011016190052032,
-0.7297639846801758,
0.47707581520080566,
-0.28532782196998596,
0.08672066777944565,
-0.014362558722496033,
0.1299845427274704,
0.39326879382133484,
0.3968358337879181,
-0.1294102668762207,
-0.45095691084861755,
-0.2610003650188446,
-0.37813374400138855,
-0.11985620111227036,
1.0309385061264038,
-0.827451229095459,
-0.4043477475643158,
-0.8858970999717712,
-0.35854586958885193,
-0.16061101853847504,
0.30463847517967224,
0.846976101398468,
0.8997361660003662,
-0.7786137461662292,
0.1997206211090088,
1.3093341588974,
0.17365838587284088,
0.5402024388313293,
0.7087947726249695,
-0.3181218206882477,
-0.5741627812385559,
0.501885175704956,
0.310459166765213,
0.6621876955032349,
0.5514174103736877,
-0.07858601957559586,
-0.0588470958173275,
-0.18516521155834198,
-0.6894968152046204,
0.4675332009792328,
-0.046069759875535965,
-0.16358786821365356,
-0.6655455231666565,
-0.506371259689331,
-0.3417861759662628,
-0.21675002574920654,
-0.8234644532203674,
-0.6138541102409363,
-0.501010000705719,
-0.36977818608283997,
0.4344101846218109,
1.0714325904846191,
0.3675973415374756,
0.4667278528213501,
-0.3911170959472656,
0.21467284858226776,
0.4020383358001709,
0.6306233406066895,
0.0634089857339859,
-0.8862576484680176,
-0.20937103033065796,
0.37114086747169495,
-0.788226842880249,
-0.6244587302207947,
0.6834333539009094,
0.14582133293151855,
0.4350067377090454,
0.813873291015625,
0.23850588500499725,
1.2190840244293213,
-0.6350023150444031,
0.6768091320991516,
0.48323073983192444,
-1.0228657722473145,
0.5633066296577454,
-0.2621014416217804,
0.5769608020782471,
0.5432886481285095,
0.953396737575531,
-0.23014415800571442,
0.27057042717933655,
-1.1493620872497559,
-0.6989984512329102,
0.2432771474123001,
0.28114739060401917,
-0.43243178725242615,
0.7755680084228516,
0.6051959991455078,
0.20423422753810883,
0.2303653508424759,
-0.7347140312194824,
-0.39210212230682373,
-0.2527516782283783,
-0.05934340879321098,
0.31192612648010254,
-0.15446172654628754,
-0.23014354705810547,
-0.8208536505699158,
1.083810567855835,
0.012607261538505554,
0.09819549322128296,
0.3576774597167969,
-0.3275924026966095,
-0.2193068265914917,
-0.1771702617406845,
1.1593234539031982,
1.1878536939620972,
-0.7711496949195862,
-0.05915630981326103,
-0.156918004155159,
-0.2437705248594284,
-0.038940269500017166,
0.2970914840698242,
-0.0037160429637879133,
0.11874452978372574,
0.2002793699502945,
0.9861823916435242,
0.19643986225128174,
-0.5659236311912537,
0.8323143124580383,
-0.48925521969795227,
0.15509389340877533,
-1.3714427947998047,
0.16159671545028687,
0.1498333364725113,
0.39724329113960266,
0.29291248321533203,
-0.02564508281648159,
0.5550875663757324,
-0.6670947074890137,
0.04981137439608574,
0.24988292157649994,
-0.8948549628257751,
-1.007104754447937,
1.5138269662857056,
0.5628674030303955,
-0.7703197598457336,
0.6619011759757996,
-0.1628998965024948,
-0.3798412084579468,
0.7814552187919617,
0.6591339707374573,
0.996074914932251,
-0.37504395842552185,
0.346376895904541,
0.25571611523628235,
-0.05848074331879616,
0.02371751330792904,
0.3210762143135071,
-0.19187487661838531,
-0.27189043164253235,
0.25705817341804504,
-0.10956437140703201,
-0.7834884524345398,
0.04016232118010521,
-1.3102880716323853,
0.46233877539634705,
-0.7188435196876526,
-0.12649984657764435,
0.24829769134521484,
0.1905166655778885,
-0.7099836468696594,
0.8563945889472961,
0.24604390561580658,
1.4433492422103882,
-1.0567492246627808,
1.561529517173767,
0.6215600371360779,
-0.6757111549377441,
-0.338655948638916,
-0.2565859854221344,
0.015658022835850716,
-0.9113393425941467,
0.17641671001911163,
0.38589540123939514,
-0.43765056133270264,
-0.41775450110435486,
-1.0275880098342896,
-1.2269827127456665,
1.3069841861724854,
0.6925421357154846,
-0.9955629706382751,
-0.2276773452758789,
-0.429807186126709,
0.5362343788146973,
-0.6444927453994751,
0.4983893632888794,
0.4190356731414795,
0.606414794921875,
0.346922904253006,
-1.1026474237442017,
-0.3610091209411621,
-1.097306489944458,
-0.026690982282161713,
-0.007908932864665985,
-1.334250807762146,
0.4708687365055084,
-0.2164270281791687,
0.13225826621055603,
0.6301410794258118,
0.8109586238861084,
0.32225725054740906,
-0.040958549827337265,
0.8151869773864746,
0.7295152544975281,
0.7786679863929749,
-0.07004701346158981,
1.3640861511230469,
-0.46809378266334534,
0.2603876292705536,
0.9962661266326904,
-0.2970011234283447,
0.5426797866821289,
0.09068364650011063,
0.13076817989349365,
0.44244420528411865,
0.7796528935432434,
-0.1852537989616394,
0.3478008806705475,
-0.07706298679113388,
-0.49438682198524475,
-0.38448452949523926,
-0.37355947494506836,
-0.5203493237495422,
0.3392718732357025,
0.2989605963230133,
-0.5877836346626282,
0.5717949271202087,
-0.34763845801353455,
0.2569930851459503,
-0.12229951471090317,
-0.340503454208374,
0.22185133397579193,
-0.24379295110702515,
-0.5240073800086975,
0.49124374985694885,
-0.29978957772254944,
0.4311230182647705,
-0.7479673027992249,
0.1026993915438652,
0.18376652896404266,
0.6113668084144592,
-0.17994822561740875,
-0.4572327435016632,
0.11278855055570602,
-0.0811922699213028,
-0.6070335507392883,
-0.08806348592042923,
0.47458675503730774,
-0.18291734158992767,
-1.0630972385406494,
0.24808357656002045,
-0.35315051674842834,
0.2610953152179718,
0.035075366497039795,
-0.7302048802375793,
0.3581249713897705,
0.21934032440185547,
-0.17077122628688812,
-0.284717857837677,
-0.25072672963142395,
0.16136248409748077,
0.9273262023925781,
0.02229020744562149,
0.3759469985961914,
0.2088499516248703,
-0.26926860213279724,
0.48463407158851624,
-0.841856062412262,
-0.48564061522483826,
-0.2197691798210144,
0.5362117290496826,
-0.9521687626838684,
-1.1433390378952026,
0.7495930194854736,
1.5020729303359985,
0.901175320148468,
-0.29554927349090576,
0.5631394982337952,
0.06019324064254761,
0.4875412881374359,
-0.013908189721405506,
0.8712906241416931,
-0.6184372901916504,
-0.4271980822086334,
0.21652324497699738,
-1.1740208864212036,
-0.5774081349372864,
0.5274725556373596,
0.2639598548412323,
-0.0474218986928463,
0.22525523602962494,
0.5885351300239563,
-0.2894059121608734,
0.5502275824546814,
0.44157180190086365,
0.5428845286369324,
0.6932544112205505,
-0.2767626941204071,
0.2407798320055008,
-0.7022584080696106,
0.07788685709238052,
-0.5999709367752075,
-0.8441758751869202,
-0.34077802300453186,
-0.6282374858856201,
-0.3837837874889374,
-0.44980987906455994,
-0.5439823269844055,
-0.023915445432066917,
0.2708341181278229,
1.1328493356704712,
1.3071027994155884,
-0.7758334279060364,
-0.31988975405693054,
0.09868079423904419,
-0.3160034418106079,
-0.012351463548839092,
-0.25164228677749634,
0.19308553636074066,
0.8311817646026611,
-0.9700420498847961,
0.3004089593887329,
0.1349964290857315,
0.4056366980075836,
-0.46113574504852295,
0.5274913907051086,
-0.6018016934394836,
0.8422471880912781,
0.3369542360305786,
0.6412211656570435,
-0.4581359326839447,
-0.2613465487957001,
-0.36617767810821533,
-0.07538332790136337,
0.03389854356646538,
0.7329917550086975,
-0.2642962634563446,
0.10947651416063309,
0.3733532130718231,
-0.22316201031208038,
0.3356136083602905,
0.00810620654374361,
0.8757553696632385,
0.010517284274101257,
0.466908723115921,
0.10641934722661972,
0.9239856600761414,
0.10662544518709183,
-0.5599836707115173,
0.7032539248466492,
0.510376513004303,
-0.7327033877372742,
-1.1794480085372925,
0.25319012999534607,
-1.2427189350128174,
0.05693263188004494,
0.7418128848075867,
-0.17919158935546875,
-0.6469225287437439,
0.43504729866981506,
-0.435699462890625,
0.13211846351623535,
-0.019394973292946815,
0.5289667248725891,
0.9199880957603455,
-0.22207574546337128,
-0.10970184952020645,
-0.7373476028442383,
-0.2442118376493454,
-0.13943956792354584,
-0.6439744830131531,
-0.5539588332176208,
0.2727532684803009,
0.4700731933116913,
0.025357311591506004,
-0.05140378698706627,
-0.33041664958000183,
0.5783553719520569,
0.03791344538331032,
0.761195719242096,
0.13582073152065277,
-0.5836595296859741,
0.029537351801991463,
0.38088154792785645,
0.10672652721405029,
-0.40880170464515686
] |
garage-bAInd/Platypus-30B
|
garage-bAInd
| 2023-07-25T02:35:57Z | 8,268 | 18 |
transformers
|
[
"transformers",
"pytorch",
"llama",
"text-generation",
"en",
"license:other",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-06-19T23:17:50Z |
---
language:
- en
tags:
- llama
license: other
metrics:
- MMLU
- ARC
- HellaSwag
- TruthfulQA
---
# 🥳 Platypus-30B has arrived!
Platypus-30B is an instruction fine-tuned model based on the LLaMA-30B transformer architecture.
| Metric | Value |
|-----------------------|-------|
| MMLU (5-shot) | 64.2 |
| ARC (25-shot) | 64.6 |
| HellaSwag (10-shot) | 84.3 |
| TruthfulQA (0-shot) | 45.8 |
| Avg. | 64.7 |
We use state-of-the-art [Language Model Evaluation Harness](https://github.com/EleutherAI/lm-evaluation-harness) to run the benchmark tests above.
## Model Details
* **Trained by**: Cole Hunter & Ariel Lee
* **Model type:** **Platypus-30B** is an auto-regressive language model based on the LLaMA transformer architecture.
* **Language(s)**: English
* **License for base weights**: License for the base LLaMA model's weights is Meta's [non-commercial bespoke license](https://github.com/facebookresearch/llama/blob/main/MODEL_CARD.md).
| Hyperparameter | Value |
|---------------------------|-------|
| \\(n_\text{parameters}\\) | 33B |
| \\(d_\text{model}\\) | 6656 |
| \\(n_\text{layers}\\) | 60 |
| \\(n_\text{heads}\\) | 52 |
## Training Dataset
Dataset of highly filtered and curated question and answer pairs. Release TBD.
## Training Procedure
`garage-bAInd/Platypus-30B` was instruction fine-tuned using LoRA on 4 A100 80GB. For training details and inference instructions please see the [Platypus-30B](https://github.com/arielnlee/Platypus-30B.git) GitHub repo.
## Reproducing Evaluation Results
Install LM Evaluation Harness:
```
git clone https://github.com/EleutherAI/lm-evaluation-harness
cd lm-evaluation-harness
pip install -e .
```
Each task was evaluated on a single A100 80GB GPU.
ARC:
```
python main.py --model hf-causal-experimental --model_args pretrained=garage-bAIdnd/Platypus-30B --tasks arc_challenge --batch_size 1 --no_cache --write_out --output_path results/Platypus-30B/arc_challenge_25shot.json --device cuda --num_fewshot 25
```
HellaSwag:
```
python main.py --model hf-causal-experimental --model_args pretrained=garage-bAIdnd/Platypus-30B --tasks hellaswag --batch_size 1 --no_cache --write_out --output_path results/Platypus-30B/hellaswag_10shot.json --device cuda --num_fewshot 10
```
MMLU:
```
python main.py --model hf-causal-experimental --model_args pretrained=garage-bAIdnd/Platypus-30B --tasks hendrycksTest-* --batch_size 1 --no_cache --write_out --output_path results/Platypus-30B/mmlu_5shot.json --device cuda --num_fewshot 5
```
TruthfulQA:
```
python main.py --model hf-causal-experimental --model_args pretrained=garage-bAIdnd/Platypus-30B --tasks truthfulqa_mc --batch_size 1 --no_cache --write_out --output_path results/Platypus-30B/truthfulqa_0shot.json --device cuda
```
## Limitations and bias
The base LLaMA model is trained on various data, some of which may contain offensive, harmful, and biased content that can lead to toxic behavior. See Section 5.1 of the LLaMA paper. We have not performed any studies to determine how fine-tuning on the aforementioned datasets affect the model's behavior and toxicity. Do not treat chat responses from this model as a substitute for human judgment or as a source of truth. Please use responsibly.
## Citations
```bibtex
@article{touvron2023llama,
title={LLaMA: Open and Efficient Foundation Language Models},
author={Touvron, Hugo and Lavril, Thibaut and Izacard, Gautier and Martinet, Xavier and Lachaux, Marie-Anne and Lacroix, Timoth{\'e}e and Rozi{\`e}re, Baptiste and Goyal, Naman and Hambro, Eric and Azhar, Faisal and Rodriguez, Aurelien and Joulin, Armand and Grave, Edouard and Lample, Guillaume},
journal={arXiv preprint arXiv:2302.13971},
year={2023}
}
@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.266335666179657,
-0.8518449068069458,
0.33743518590927124,
0.44439497590065,
-0.2717307507991791,
-0.09956805408000946,
-0.37302133440971375,
-0.376632958650589,
0.06237903609871864,
0.3583221137523651,
-0.5618920922279358,
-0.5313642621040344,
-0.6439250111579895,
0.04716707020998001,
-0.13447125256061554,
1.1368839740753174,
-0.08604186773300171,
-0.24184176325798035,
0.014615763910114765,
-0.13272084295749664,
-0.5929110646247864,
-0.5384105443954468,
-0.461776465177536,
-0.43531903624534607,
0.4780965745449066,
0.3363405168056488,
0.5143634080886841,
0.6644920110702515,
0.6244150400161743,
0.3254202902317047,
-0.3167765140533447,
0.14497189223766327,
-0.5897647142410278,
-0.2489602267742157,
0.20234254002571106,
-0.5458427667617798,
-0.6080310940742493,
-0.010229554958641529,
0.4205578565597534,
0.419151246547699,
-0.30276012420654297,
0.5160295963287354,
0.09137706458568573,
0.35997986793518066,
-0.6552062034606934,
0.38398271799087524,
-0.6738622188568115,
-0.17741842567920685,
-0.3547112047672272,
-0.0933154970407486,
-0.42442601919174194,
-0.07627572119235992,
-0.15244640409946442,
-0.8083454966545105,
0.04686250537633896,
-0.033340711146593094,
1.2458348274230957,
0.43517500162124634,
-0.15541790425777435,
-0.11593154817819595,
-0.3419410288333893,
0.8743494153022766,
-0.9829992055892944,
0.12333378940820694,
0.36578038334846497,
0.02783493883907795,
-0.27204808592796326,
-0.6578428149223328,
-0.6425970792770386,
-0.27265822887420654,
0.02799525298178196,
0.18444287776947021,
-0.2224505990743637,
-0.03375424072146416,
0.3567667007446289,
0.5173556208610535,
-0.31506168842315674,
0.4226359724998474,
-0.4612947106361389,
-0.1143745705485344,
0.7533667087554932,
0.30210185050964355,
0.11957377940416336,
-0.17052501440048218,
-0.36341699957847595,
-0.4374007284641266,
-0.6921204924583435,
0.3171675205230713,
0.45332759618759155,
0.3185376226902008,
-0.4325505793094635,
0.6308831572532654,
-0.2549225091934204,
0.6027634143829346,
0.08458151668310165,
-0.5297390818595886,
0.5528613328933716,
-0.2759192883968353,
-0.32575109601020813,
-0.13516998291015625,
1.1191821098327637,
0.39426544308662415,
-0.0039575183764100075,
0.14084136486053467,
-0.21410061419010162,
0.24715374410152435,
-0.09745153039693832,
-0.8494067192077637,
-0.25665733218193054,
0.1790161281824112,
-0.3544139564037323,
-0.22854238748550415,
-0.31553834676742554,
-0.6923037767410278,
-0.34464699029922485,
0.038075029850006104,
0.5462051630020142,
-0.5286897420883179,
-0.2458389699459076,
0.30245739221572876,
0.061235129833221436,
0.36331629753112793,
0.3498711585998535,
-0.751493513584137,
0.33209720253944397,
0.4105547070503235,
0.7894102931022644,
-0.2073785662651062,
-0.6587899923324585,
-0.2799602150917053,
0.058854300528764725,
-0.17867445945739746,
0.7986356019973755,
-0.3554297387599945,
-0.19311939179897308,
-0.339661180973053,
0.17152182757854462,
-0.34136879444122314,
-0.5560306906700134,
0.5717925429344177,
-0.3045388162136078,
0.22185079753398895,
-0.20605450868606567,
-0.3734925091266632,
-0.40287482738494873,
-0.06040521711111069,
-0.5156204700469971,
1.182775616645813,
0.04596869274973869,
-0.8129785656929016,
0.09275002032518387,
-0.7647164463996887,
-0.3137229382991791,
-0.030338285490870476,
0.24056516587734222,
-0.5778248310089111,
-0.1088949516415596,
0.30958646535873413,
0.4450305700302124,
-0.48599618673324585,
0.24504931271076202,
-0.31308647990226746,
-0.4148247539997101,
0.20689262449741364,
-0.2115143984556198,
1.0615681409835815,
0.3153422176837921,
-0.42104554176330566,
0.060722462832927704,
-0.6945366263389587,
-0.22554031014442444,
0.5466376543045044,
-0.49618253111839294,
-0.14374536275863647,
-0.03800861909985542,
-0.20114797353744507,
0.10536373406648636,
0.46519002318382263,
-0.5254782438278198,
0.13273586332798004,
-0.24270521104335785,
0.6360836625099182,
0.6816921830177307,
-0.04763553664088249,
0.10920266807079315,
-0.5355116128921509,
0.36017751693725586,
0.041480936110019684,
0.3109598159790039,
-0.15138620138168335,
-0.7291246652603149,
-1.0475281476974487,
-0.3200044333934784,
0.11494506895542145,
0.7777549028396606,
-0.39037492871284485,
0.5951865911483765,
-0.17058970034122467,
-0.6794984936714172,
-0.6036909222602844,
0.3064210116863251,
0.545241117477417,
0.4966370463371277,
0.5335060954093933,
-0.3783150315284729,
-0.48922282457351685,
-0.7996931076049805,
-0.12444128096103668,
-0.3509141802787781,
0.13999544084072113,
0.35138192772865295,
0.7450869083404541,
-0.27247264981269836,
0.5303153395652771,
-0.5626642107963562,
-0.34791406989097595,
-0.28277382254600525,
0.08561642467975616,
0.5642149448394775,
0.5565270781517029,
0.5085341334342957,
-0.17820106446743011,
-0.3871275782585144,
-0.1750357449054718,
-0.7696465253829956,
-0.30623170733451843,
-0.027204150334000587,
-0.13133279979228973,
0.28724679350852966,
0.23373648524284363,
-0.8214179873466492,
0.2669755518436432,
0.5577101111412048,
-0.19665643572807312,
0.4654497802257538,
-0.14615993201732635,
-0.15919272601604462,
-0.8029126524925232,
0.17392995953559875,
0.027212338522076607,
0.052908141165971756,
-0.5342249274253845,
0.11797778308391571,
-0.026660241186618805,
0.020213967189192772,
-0.5989348888397217,
0.5689865350723267,
-0.39420706033706665,
0.08075834065675735,
-0.05172569677233696,
0.08234057575464249,
-0.088899627327919,
0.8496818542480469,
0.01810329593718052,
0.7501358985900879,
0.4957371652126312,
-0.6258941292762756,
0.10892749577760696,
0.4303112030029297,
-0.3019619882106781,
0.3263687491416931,
-0.8668517470359802,
0.1001862958073616,
0.1655709445476532,
0.31239742040634155,
-0.8894156217575073,
-0.16500017046928406,
0.30282825231552124,
-0.3287452757358551,
0.20003050565719604,
0.0030009911861270666,
-0.6336562037467957,
-0.518496572971344,
-0.33680102229118347,
0.220539391040802,
0.7355242371559143,
-0.5045743584632874,
0.34165874123573303,
0.3608546257019043,
-0.031211141496896744,
-0.6485395431518555,
-0.7319936752319336,
-0.15281561017036438,
-0.3867589831352234,
-0.5913016200065613,
0.18904586136341095,
-0.2403152585029602,
-0.10890769958496094,
-0.2749154567718506,
-0.08369506150484085,
0.11290080100297928,
0.12776745855808258,
0.4252878427505493,
0.35181689262390137,
-0.19602181017398834,
-0.1359487771987915,
-0.13401949405670166,
-0.03475816547870636,
-0.001332591869868338,
0.20022501051425934,
0.8089720010757446,
-0.4421054720878601,
-0.19641311466693878,
-0.7838484644889832,
-0.11265280097723007,
0.45431917905807495,
-0.3173462748527527,
0.8926073312759399,
0.6080462336540222,
-0.17042464017868042,
0.18404199182987213,
-0.6882081031799316,
-0.09071383625268936,
-0.5020434856414795,
0.4070494771003723,
-0.30131852626800537,
-0.636579155921936,
0.7817943692207336,
0.17249266803264618,
0.13840238749980927,
0.7941773533821106,
0.7640452980995178,
0.02410191483795643,
0.9449818134307861,
0.5073635578155518,
0.05515602231025696,
0.6016055345535278,
-0.6644355058670044,
-0.025511208921670914,
-1.0087511539459229,
-0.2648228108882904,
-0.42144709825515747,
-0.29184967279434204,
-0.6293848752975464,
-0.3624458909034729,
0.14819803833961487,
0.2034871131181717,
-0.7522510290145874,
0.5054378509521484,
-0.48029494285583496,
0.310708612203598,
0.5374693274497986,
0.288136750459671,
0.25261566042900085,
-0.039449043571949005,
-0.13701707124710083,
0.04716813191771507,
-0.7644632458686829,
-0.536393404006958,
1.3148945569992065,
0.603756844997406,
0.922197699546814,
-0.1462496668100357,
0.7230714559555054,
-0.14754661917686462,
0.4530715346336365,
-0.4726415276527405,
0.6688385605812073,
-0.29337337613105774,
-0.5731854438781738,
-0.14832989871501923,
-0.2793974280357361,
-0.9283950328826904,
0.3581666350364685,
-0.11964889615774155,
-0.8509038090705872,
0.19678612053394318,
0.0048387362621724606,
-0.5204742550849915,
0.3988819718360901,
-0.9713029861450195,
0.9260632395744324,
-0.43604978919029236,
-0.46109867095947266,
-0.14717134833335876,
-0.6391230225563049,
0.7080726027488708,
-0.14130519330501556,
0.2036997526884079,
-0.3341018259525299,
-0.05913807079195976,
1.1590533256530762,
-0.5799046158790588,
1.0426558256149292,
-0.2636539041996002,
-0.06138277053833008,
0.41450220346450806,
-0.10554109513759613,
0.5103909969329834,
-0.01902218535542488,
-0.004607674200087786,
0.5091316103935242,
0.019283445551991463,
-0.36228644847869873,
-0.01569301448762417,
0.6957249641418457,
-1.3249939680099487,
-0.6538313627243042,
-0.4849121570587158,
-0.8053333163261414,
0.08632317930459976,
0.22180354595184326,
0.26168644428253174,
-0.08935664594173431,
0.26422545313835144,
0.28363391757011414,
0.5815606117248535,
-0.6387264728546143,
0.6452590823173523,
0.6831517219543457,
-0.12036869674921036,
-0.44550955295562744,
0.8763173818588257,
0.049315616488456726,
0.282779723405838,
0.22647428512573242,
0.17795111238956451,
-0.08903473615646362,
-0.46348538994789124,
-0.1590862274169922,
0.6263381242752075,
-0.6010862588882446,
-0.4999559223651886,
-0.6106135845184326,
-0.34773728251457214,
-0.15402843058109283,
0.12476861476898193,
-0.5155187845230103,
-0.243842214345932,
-0.6024026870727539,
0.16585642099380493,
0.5590772032737732,
0.5408471822738647,
0.006953064352273941,
0.9131888747215271,
-0.419095516204834,
0.33319956064224243,
0.37547072768211365,
0.3360200524330139,
0.02789110131561756,
-0.871557354927063,
-0.0064542172476649284,
0.25266095995903015,
-0.6731498837471008,
-0.8151634931564331,
0.6136884689331055,
0.331133633852005,
0.7025349736213684,
0.1780431568622589,
-0.010316412895917892,
1.0173109769821167,
-0.247578963637352,
0.8696011304855347,
0.22735123336315155,
-0.9150529503822327,
0.6314122676849365,
-0.2524302005767822,
0.2783362865447998,
0.3502051532268524,
0.2741175591945648,
-0.27942681312561035,
-0.5099310874938965,
-0.7521346807479858,
-0.8488835692405701,
0.9881903529167175,
0.27974656224250793,
-0.015644310042262077,
0.22466875612735748,
0.2835851311683655,
0.1558556705713272,
0.08651019632816315,
-1.0942151546478271,
-0.22990423440933228,
-0.32333749532699585,
-0.07801101356744766,
-0.2023068368434906,
-0.12128932029008865,
-0.1518375426530838,
-0.46793970465660095,
0.7287598252296448,
-0.04333541914820671,
0.446031779050827,
0.03892135247588158,
-0.4534069299697876,
-0.29233431816101074,
0.10269144177436829,
0.6342868208885193,
0.5987011194229126,
-0.5220311284065247,
-0.11115435510873795,
0.4182964563369751,
-0.7468818426132202,
0.053637903183698654,
0.16500410437583923,
-0.02756025642156601,
-0.25486305356025696,
0.46971744298934937,
1.146608829498291,
0.022830184549093246,
-0.6217766404151917,
0.5388354659080505,
-0.14139112830162048,
-0.1458248496055603,
-0.1924617737531662,
0.1895553469657898,
0.21100620925426483,
0.3116775453090668,
0.3999103605747223,
-0.08544227480888367,
-0.36643096804618835,
-0.3978268504142761,
-0.22273528575897217,
0.3756190836429596,
0.1829277127981186,
-0.4386706054210663,
0.9141685366630554,
0.05408879742026329,
-0.24823510646820068,
0.6496113538742065,
-0.11286909878253937,
-0.31998446583747864,
0.6962517499923706,
0.6739332675933838,
0.5926058292388916,
-0.25527235865592957,
0.045752428472042084,
0.49282410740852356,
0.5239140391349792,
-0.16472753882408142,
0.393921434879303,
0.18886013329029083,
-0.5169993042945862,
-0.46072208881378174,
-0.9244213104248047,
-0.21965214610099792,
0.5646413564682007,
-0.4731842279434204,
0.360989511013031,
-0.4627557694911957,
-0.2290533185005188,
-0.040870100259780884,
0.3441828787326813,
-0.7151879668235779,
0.06313113123178482,
0.16189348697662354,
0.9694921970367432,
-1.1492301225662231,
0.882598876953125,
0.6287112832069397,
-0.7364316582679749,
-0.9073264598846436,
-0.3545888662338257,
-0.30119508504867554,
-1.1879445314407349,
0.682749330997467,
0.2002229392528534,
0.21964722871780396,
-0.01737178862094879,
-0.841204047203064,
-1.1045286655426025,
1.4321773052215576,
0.7073606252670288,
-0.6395869851112366,
0.15176363289356232,
0.12060307711362839,
0.6765701174736023,
-0.27570024132728577,
0.4380115270614624,
0.6491525769233704,
0.3945424556732178,
0.028660669922828674,
-1.260270595550537,
0.144753560423851,
-0.36085203289985657,
0.015614381991326809,
-0.11641041189432144,
-1.036972999572754,
1.3279590606689453,
-0.29224252700805664,
-0.1339031159877777,
0.1511804610490799,
0.5224858522415161,
0.7294781804084778,
0.10990053415298462,
0.4645363986492157,
0.9817423224449158,
0.6709822416305542,
-0.053592126816511154,
1.108872413635254,
-0.4875856935977936,
0.4047975242137909,
1.0049948692321777,
-0.0671086236834526,
1.031879186630249,
0.4397656321525574,
-0.5290314555168152,
0.7497276067733765,
0.9280405044555664,
-0.09315843880176544,
0.5721220374107361,
0.025491921231150627,
0.14694459736347198,
-0.2333250641822815,
-0.0545773059129715,
-0.4998449981212616,
0.3938082754611969,
0.428278386592865,
-0.2502513527870178,
-0.12771043181419373,
-0.06761676073074341,
0.18939095735549927,
-0.3908604681491852,
-0.30435043573379517,
0.6595928072929382,
0.1406484991312027,
-0.7141263484954834,
1.251049518585205,
-0.05874527990818024,
0.941280722618103,
-0.5821973085403442,
0.2408166527748108,
-0.4928649961948395,
0.276020348072052,
-0.28183215856552124,
-0.6863254308700562,
-0.02536654658615589,
-0.017918119207024574,
0.09595880657434464,
-0.06863182038068771,
0.5207450985908508,
-0.11660005152225494,
-0.3841257095336914,
0.32289302349090576,
0.3385741710662842,
0.25402215123176575,
0.015475409105420113,
-0.7493441700935364,
0.2604621350765228,
-0.1494448035955429,
-0.452657014131546,
0.34234175086021423,
0.18225647509098053,
-0.153346985578537,
0.7675164341926575,
0.7076337337493896,
0.06451146304607391,
0.36165550351142883,
-0.1866110861301422,
0.9762476682662964,
-0.47296223044395447,
-0.4233202040195465,
-0.8031849265098572,
0.47867998480796814,
0.12636828422546387,
-0.5376052260398865,
0.7250937223434448,
0.501790463924408,
0.7641991376876831,
-0.017890319228172302,
0.5441095232963562,
-0.22234702110290527,
0.3274010717868805,
-0.30038508772850037,
0.5805418491363525,
-0.5410917401313782,
0.47862452268600464,
-0.21060004830360413,
-0.9529947638511658,
-0.12865234911441803,
0.697105348110199,
-0.5301189422607422,
-0.06515145301818848,
0.8355470895767212,
0.8587089776992798,
-0.09312156587839127,
-0.2560379207134247,
-0.11557687819004059,
0.485414057970047,
0.16917835175991058,
1.0171009302139282,
0.8396800756454468,
-0.670192301273346,
0.7289736866950989,
-0.6020802855491638,
-0.2613259553909302,
-0.17558257281780243,
-0.8048553466796875,
-1.0057508945465088,
-0.48032495379447937,
-0.4434097111225128,
-0.2675851583480835,
0.030036767944693565,
0.6253846287727356,
0.527291476726532,
-0.8901901245117188,
-0.6485035419464111,
-0.0770132914185524,
0.03816944360733032,
-0.2643969655036926,
-0.17984023690223694,
0.46656110882759094,
-0.25870031118392944,
-0.4609110653400421,
0.11836231499910355,
-0.018240785226225853,
0.0783899649977684,
-0.21184158325195312,
-0.28363093733787537,
-0.5188024640083313,
-0.05277217552065849,
0.46398138999938965,
0.3636994957923889,
-0.8509561419487,
-0.08982851356267929,
0.02001561038196087,
-0.20876683294773102,
0.24546495079994202,
0.18580597639083862,
-0.7515946626663208,
0.06167777255177498,
0.4216744005680084,
0.31132417917251587,
0.7522395849227905,
-0.22886785864830017,
0.16126586496829987,
-0.5977604389190674,
0.3566053509712219,
-0.05097419396042824,
0.3733655512332916,
0.4033316671848297,
-0.13977757096290588,
0.5452346801757812,
0.41370269656181335,
-0.6110451817512512,
-1.0968427658081055,
-0.22508350014686584,
-1.0607291460037231,
-0.263738214969635,
1.357901930809021,
-0.24268433451652527,
-0.6279495358467102,
0.3096362054347992,
-0.24878375232219696,
0.45859768986701965,
-0.4408164620399475,
0.7778282761573792,
0.46700718998908997,
-0.1849813610315323,
-0.25472432374954224,
-0.786008894443512,
0.19975146651268005,
0.31351563334465027,
-0.9561469554901123,
-0.10227752476930618,
0.2519805133342743,
0.5194088816642761,
0.29380059242248535,
0.48924705386161804,
0.06348222494125366,
0.19445592164993286,
-0.08186948299407959,
0.22807936370372772,
-0.05488529056310654,
0.008077052421867847,
-0.31773874163627625,
-0.12766851484775543,
0.0746760368347168,
-0.27375873923301697
] |
facebook/dinov2-small-imagenet1k-1-layer
|
facebook
| 2023-09-16T10:14:58Z | 8,258 | 0 |
transformers
|
[
"transformers",
"pytorch",
"safetensors",
"dinov2",
"image-classification",
"dino",
"vision",
"dataset:imagenet-1k",
"arxiv:2304.07193",
"license:apache-2.0",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] |
image-classification
| 2023-09-14T19:57:42Z |
---
license: apache-2.0
tags:
- dino
- vision
datasets:
- imagenet-1k
---
# Vision Transformer (small-sized model) trained using DINOv2
Vision Transformer (ViT) model trained using the DINOv2 method. It was introduced in the paper [DINOv2: Learning Robust Visual Features without Supervision](https://arxiv.org/abs/2304.07193) by Oquab et al. and first released in [this repository](https://github.com/facebookresearch/dinov2).
Disclaimer: The team releasing DINOv2 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.
Images are presented to the model as a sequence of fixed-size patches, 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 model for classifying an image among one of the [1000 ImageNet labels](https://huggingface.co/datasets/huggingface/label-files/blob/main/imagenet-1k-id2label.json). See the [model hub](https://huggingface.co/models?search=facebook/dinov2) to look for
other fine-tuned versions on a task that interests you.
### How to use
Here is how to use this model:
```python
from transformers import AutoImageProcessor, AutoModelForImageClassification
from PIL import Image
import requests
url = 'http://images.cocodataset.org/val2017/000000039769.jpg'
image = Image.open(requests.get(url, stream=True).raw)
processor = AutoImageProcessor.from_pretrained('facebook/dinov2-small-imagenet1k-1-layer')
model = AutoModelForImageClassification.from_pretrained('facebook/dinov2-small-imagenet1k-1-layer')
inputs = processor(images=image, return_tensors="pt")
outputs = model(**inputs)
logits = outputs.logits
predicted_class_idx = logits.argmax(-1).item()
print("Predicted class:", model.config.id2label[predicted_class_idx])
```
### BibTeX entry and citation info
```bibtex
misc{oquab2023dinov2,
title={DINOv2: Learning Robust Visual Features without Supervision},
author={Maxime Oquab and Timothée Darcet and Théo Moutakanni and Huy Vo and Marc Szafraniec and Vasil Khalidov and Pierre Fernandez and Daniel Haziza and Francisco Massa and Alaaeldin El-Nouby and Mahmoud Assran and Nicolas Ballas and Wojciech Galuba and Russell Howes and Po-Yao Huang and Shang-Wen Li and Ishan Misra and Michael Rabbat and Vasu Sharma and Gabriel Synnaeve and Hu Xu and Hervé Jegou and Julien Mairal and Patrick Labatut and Armand Joulin and Piotr Bojanowski},
year={2023},
eprint={2304.07193},
archivePrefix={arXiv},
primaryClass={cs.CV}
}
```
|
[
-0.5645588040351868,
-0.37031152844429016,
-0.024724481627345085,
-0.1287870705127716,
-0.3928374648094177,
-0.12682722508907318,
0.12966741621494293,
-0.4471531808376312,
0.29743844270706177,
0.4473896026611328,
-0.42874473333358765,
-0.19261763989925385,
-0.7275384664535522,
-0.1837584525346756,
-0.3667559325695038,
0.9136590957641602,
-0.013906503096222878,
0.0005167232011444867,
-0.35283637046813965,
-0.10178805142641068,
-0.2270745187997818,
-0.43677952885627747,
-0.7029033899307251,
-0.4704245328903198,
0.494902104139328,
0.1349194347858429,
0.6963724493980408,
0.9851056933403015,
0.4429834485054016,
0.4051312506198883,
-0.1580832153558731,
-0.0064926184713840485,
-0.5141904950141907,
-0.28520306944847107,
-0.13470013439655304,
-0.517410159111023,
-0.330962598323822,
0.13314956426620483,
0.5238022804260254,
0.43526947498321533,
0.23529820144176483,
0.31619083881378174,
0.1413407325744629,
0.21516281366348267,
-0.5093344449996948,
0.4030568599700928,
-0.307626336812973,
0.3613242208957672,
-0.11125410348176956,
0.006914664059877396,
-0.33457767963409424,
-0.29753729701042175,
0.2697521150112152,
-0.47233709692955017,
0.07071825116872787,
0.041554685682058334,
1.206708312034607,
0.2961425185203552,
-0.44950398802757263,
-0.03850920870900154,
-0.4940090477466583,
0.7413634061813354,
-0.27746593952178955,
0.30244120955467224,
0.26102834939956665,
0.374095618724823,
0.10459529608488083,
-1.0584323406219482,
-0.5620256066322327,
0.055143747478723526,
-0.18731293082237244,
0.05567890405654907,
-0.22361233830451965,
0.04633153975009918,
0.2929013967514038,
0.3270854353904724,
-0.21388719975948334,
0.23374921083450317,
-0.5282835960388184,
-0.3688516318798065,
0.3668300211429596,
-0.10829902440309525,
0.19429250061511993,
-0.349955677986145,
-0.7390443086624146,
-0.36962607502937317,
-0.32184964418411255,
0.40166765451431274,
0.20602086186408997,
0.09850040078163147,
-0.21372298896312714,
0.5815256834030151,
0.05088368430733681,
0.585449755191803,
0.33303365111351013,
-0.1732908934354782,
0.5117897391319275,
-0.25108709931373596,
-0.3155664801597595,
-0.03557044640183449,
0.8389637470245361,
0.31226667761802673,
0.2971346080303192,
0.07949160039424896,
-0.3083687424659729,
0.07031061500310898,
0.2682588994503021,
-0.9842514991760254,
-0.3232838809490204,
-0.09644128382205963,
-0.605921745300293,
-0.5661172866821289,
0.19338254630565643,
-0.6540747880935669,
-0.1549084186553955,
-0.345081627368927,
0.7112247943878174,
-0.2506053149700165,
-0.291949063539505,
-0.3713996708393097,
0.006818715017288923,
0.6592991948127747,
0.1368037313222885,
-0.7774134278297424,
0.3808857202529907,
0.4298977255821228,
0.9114047884941101,
-0.06466569006443024,
-0.24176090955734253,
-0.2452000230550766,
-0.18356768786907196,
-0.46771615743637085,
0.6274662017822266,
-0.2746790647506714,
-0.1119999885559082,
0.10679467767477036,
0.45453640818595886,
-0.02346181869506836,
-0.4178086221218109,
0.29984813928604126,
-0.38506826758384705,
0.24140064418315887,
-0.2670634090900421,
-0.3548521101474762,
-0.28883635997772217,
0.188682422041893,
-0.5875465869903564,
1.063437819480896,
0.3066062927246094,
-0.8858523368835449,
0.4717763066291809,
-0.44770193099975586,
-0.1767120361328125,
0.029237866401672363,
-0.06857364624738693,
-0.7312566637992859,
-0.20779632031917572,
0.22415198385715485,
0.5024440288543701,
0.058312706649303436,
-0.14093250036239624,
-0.40610358119010925,
-0.45282888412475586,
0.2458045333623886,
-0.05783836543560028,
0.9524028897285461,
0.12495005130767822,
-0.36479493975639343,
0.14492620527744293,
-0.625745952129364,
0.02856551855802536,
0.2507098913192749,
-0.27938219904899597,
-0.16962099075317383,
-0.28578031063079834,
0.16647791862487793,
0.3583259582519531,
0.2512468695640564,
-0.5934470295906067,
0.2524462044239044,
-0.2536548674106598,
0.5644673109054565,
0.7884443402290344,
-0.05599500983953476,
0.5620729327201843,
-0.24858231842517853,
0.38050204515457153,
0.1508723944425583,
0.5110686421394348,
-0.3020625114440918,
-0.6449164748191833,
-0.8943643569946289,
-0.20681022107601166,
0.3397999107837677,
0.48531872034072876,
-0.9212840795516968,
0.46236652135849,
-0.15442533791065216,
-0.3481767773628235,
-0.4150404632091522,
0.13789193332195282,
0.5556288957595825,
0.5963231921195984,
0.3556172549724579,
-0.532138466835022,
-0.5696694254875183,
-0.9042361378669739,
0.20053043961524963,
-0.07212847471237183,
0.06908274441957474,
0.28809648752212524,
0.6902818083763123,
-0.33560100197792053,
0.8669907450675964,
-0.11836501955986023,
-0.2836892306804657,
0.030881166458129883,
0.06284568458795547,
0.16808603703975677,
0.740539014339447,
0.7697445154190063,
-0.8941307067871094,
-0.34757548570632935,
-0.1166042760014534,
-0.8353976607322693,
0.16768823564052582,
0.07561925798654556,
-0.2650938332080841,
0.04044529050588608,
0.35069921612739563,
-0.6660416126251221,
0.7480390071868896,
0.17161302268505096,
-0.25614145398139954,
0.20327933132648468,
-0.05715011805295944,
-0.004473086912184954,
-1.0817999839782715,
-0.04719521477818489,
-0.006849094294011593,
-0.41913387179374695,
-0.5917959809303284,
0.115022212266922,
0.09229931980371475,
-0.08013208955526352,
-0.5204494595527649,
0.443780779838562,
-0.4594593346118927,
-0.29347723722457886,
-0.2831805646419525,
-0.21680015325546265,
-0.015285838395357132,
0.5521034598350525,
-0.017436156049370766,
0.36340227723121643,
0.8694322109222412,
-0.4407239258289337,
0.6852732300758362,
0.43713584542274475,
-0.43797406554222107,
0.5601809024810791,
-0.7279021143913269,
0.3250330686569214,
-0.24431920051574707,
0.20307199656963348,
-0.9795747995376587,
-0.4433782696723938,
0.4730478525161743,
-0.46674397587776184,
0.633736789226532,
-0.3697943687438965,
-0.43372148275375366,
-0.8019474744796753,
-0.23777735233306885,
0.44087910652160645,
0.7365549802780151,
-0.7849523425102234,
0.5158552527427673,
0.3434627950191498,
0.2966647446155548,
-0.7868190407752991,
-1.1106237173080444,
-0.12721551954746246,
-0.17314209043979645,
-0.4700700342655182,
0.31519702076911926,
0.22436054050922394,
0.2293071150779724,
0.3390253782272339,
-0.07872676104307175,
-0.24325866997241974,
-0.24491220712661743,
0.6232836842536926,
0.30067041516304016,
-0.33451616764068604,
0.034992996603250504,
-0.18551035225391388,
-0.13987989723682404,
0.07320305705070496,
-0.5926480293273926,
0.4629856050014496,
-0.2764357030391693,
-0.3001103401184082,
-0.7179244160652161,
0.05872238427400589,
0.6057343482971191,
-0.213979572057724,
0.6855801939964294,
0.9626703262329102,
-0.6590279936790466,
-0.13881045579910278,
-0.2958883047103882,
-0.1774158924818039,
-0.5150641202926636,
0.28003156185150146,
-0.3290419280529022,
-0.6015218496322632,
0.7376192212104797,
0.033707428723573685,
-0.28452402353286743,
0.46940767765045166,
0.46865102648735046,
-0.16346313059329987,
0.8374356627464294,
0.7602443099021912,
0.032662536948919296,
0.6996402740478516,
-0.7453837990760803,
0.026852043345570564,
-0.7626979947090149,
-0.666377067565918,
-0.05720076709985733,
-0.45166221261024475,
-0.45174309611320496,
-0.48238590359687805,
0.13182216882705688,
0.38366803526878357,
-0.33256691694259644,
0.5672969818115234,
-0.7266807556152344,
0.4259646534919739,
0.8005868196487427,
0.5188647508621216,
-0.3416721522808075,
0.1017109751701355,
-0.2790537178516388,
0.11048715561628342,
-0.6909204721450806,
-0.10746514052152634,
0.9502099752426147,
0.5846781730651855,
0.7769754528999329,
-0.11919230222702026,
0.6036115884780884,
0.11032585799694061,
0.12373797595500946,
-0.9143728613853455,
0.47223928570747375,
-0.13913945853710175,
-0.5538817644119263,
-0.1452651470899582,
-0.25195273756980896,
-0.9203234910964966,
-0.08431506901979446,
-0.3225814402103424,
-0.7565785646438599,
0.6274657249450684,
0.27873101830482483,
-0.35634660720825195,
0.35469168424606323,
-0.6086541414260864,
0.9608348608016968,
-0.21480877697467804,
-0.3243054747581482,
0.17056143283843994,
-0.6978320479393005,
0.2271767556667328,
-0.0812261700630188,
-0.13415712118148804,
0.2737681567668915,
0.1859297752380371,
0.7667064666748047,
-0.6309998035430908,
1.0729576349258423,
-0.4405306577682495,
0.3262260854244232,
0.6311054825782776,
-0.1650678664445877,
0.3790595233440399,
-0.09427043795585632,
0.3671911954879761,
0.2715093791484833,
0.004924784414470196,
-0.5180577635765076,
-0.4835732877254486,
0.48919054865837097,
-1.0183178186416626,
-0.31844139099121094,
-0.41839107871055603,
-0.17665062844753265,
0.25997230410575867,
0.3840574622154236,
0.7027080059051514,
0.6915323138237,
0.19754748046398163,
0.4366931915283203,
0.6554422974586487,
-0.33216696977615356,
0.4611155688762665,
-0.23269329965114594,
-0.3707614839076996,
-0.3622758984565735,
0.8153789639472961,
0.3491380512714386,
0.2393207550048828,
0.28646203875541687,
0.20828866958618164,
-0.3517007827758789,
-0.3318343758583069,
-0.34571364521980286,
0.031982503831386566,
-0.9656387567520142,
-0.355014830827713,
-0.4571525454521179,
-0.5853801965713501,
-0.46129193902015686,
-0.13472716510295868,
-0.5379424095153809,
-0.3582700788974762,
-0.4736036956310272,
-0.18353547155857086,
0.30892398953437805,
0.8288493752479553,
-0.2963463366031647,
0.5343968272209167,
-0.3197011947631836,
0.21289993822574615,
0.776009738445282,
0.3638995289802551,
-0.011817580088973045,
-0.6720592975616455,
-0.21908582746982574,
0.04519377648830414,
-0.08181410282850266,
-0.6390268206596375,
0.36823663115501404,
0.36444970965385437,
0.7143508791923523,
0.7446407079696655,
-0.2851572334766388,
0.7327351570129395,
-0.30554553866386414,
0.6212000250816345,
0.4257385730743408,
-0.7654103636741638,
0.6174817681312561,
-0.18978098034858704,
0.21519219875335693,
0.18260931968688965,
0.5464138388633728,
-0.0558762326836586,
0.23258472979068756,
-0.49165576696395874,
-0.6138163208961487,
0.8239489197731018,
0.20857678353786469,
0.186465784907341,
0.0645860806107521,
0.6454541683197021,
-0.09408800303936005,
0.05707810819149017,
-0.885239839553833,
-0.31154972314834595,
-0.8994801640510559,
-0.08175314962863922,
0.13020767271518707,
-0.3282848596572876,
-0.09918339550495148,
-0.5442941784858704,
0.322775661945343,
-0.10884185880422592,
0.759032666683197,
0.18257416784763336,
-0.11544264107942581,
-0.19967028498649597,
-0.4723477363586426,
0.19791138172149658,
0.3994087874889374,
-0.3505844175815582,
0.23344552516937256,
0.08839897811412811,
-0.4914292097091675,
0.005242340266704559,
0.07139676064252853,
-0.1976720243692398,
-0.09470611065626144,
0.43378111720085144,
0.9813339710235596,
0.1755189448595047,
0.010623933747410774,
0.9154537320137024,
0.07547815889120102,
-0.2721543312072754,
-0.5253185629844666,
0.1098456084728241,
-0.11421957612037659,
0.46336907148361206,
0.2474207878112793,
0.4369634985923767,
-0.025405999273061752,
-0.6160151362419128,
0.4867103397846222,
0.251900315284729,
-0.6769365072250366,
-0.4398002326488495,
0.8425211906433105,
-0.12630431354045868,
-0.1950587034225464,
0.5982863903045654,
-0.22318723797798157,
-0.6599518656730652,
0.8649744391441345,
0.5833813548088074,
0.6554009318351746,
-0.34516099095344543,
0.2518767714500427,
0.566495954990387,
0.26453331112861633,
-0.115177683532238,
0.12555016577243805,
-0.12324417382478714,
-0.8758083581924438,
-0.34506067633628845,
-0.673852264881134,
-0.04023023322224617,
0.12247923761606216,
-0.8303191065788269,
0.31188854575157166,
-0.7497278451919556,
-0.4181213080883026,
0.2982519865036011,
-0.18940748274326324,
-1.078832983970642,
0.2937273681163788,
0.5145905613899231,
0.6916610598564148,
-0.7499711513519287,
1.0495854616165161,
0.7823923230171204,
-0.51970374584198,
-0.7522318959236145,
-0.3398520350456238,
0.08159079402685165,
-0.9912781715393066,
0.882183849811554,
0.3944299519062042,
0.006826160475611687,
0.03341161832213402,
-0.9047008752822876,
-1.0273866653442383,
1.158862590789795,
0.20275704562664032,
-0.2176390290260315,
-0.054678451269865036,
0.048663023859262466,
0.4345562756061554,
-0.5404714941978455,
0.32891589403152466,
-0.01000868808478117,
0.17670467495918274,
0.4876263737678528,
-0.735421895980835,
-0.008195118978619576,
-0.38103005290031433,
0.32289859652519226,
-0.09433271735906601,
-0.8335669040679932,
1.094004511833191,
-0.16608823835849762,
-0.15236346423625946,
0.16030922532081604,
0.5609607100486755,
-0.3004922568798065,
0.04776317998766899,
0.6190318465232849,
0.6356085538864136,
0.5577195286750793,
-0.29476675391197205,
0.9893144965171814,
-0.037455011159181595,
0.5967041254043579,
0.7447288036346436,
0.2945849299430847,
0.602235734462738,
0.26601123809814453,
-0.08047790080308914,
0.6007773280143738,
0.880933403968811,
-0.4643165171146393,
0.7867445945739746,
0.06601420044898987,
0.1374862641096115,
-0.2748136520385742,
-0.043601855635643005,
-0.37594926357269287,
0.647200882434845,
0.37270283699035645,
-0.601808488368988,
0.049219246953725815,
0.31166762113571167,
-0.19008441269397736,
-0.34998005628585815,
-0.47394999861717224,
0.6258349418640137,
0.145658940076828,
-0.4179162085056305,
0.7089165449142456,
-0.2306949347257614,
0.5565928220748901,
-0.3968046307563782,
-0.07575646042823792,
-0.11968382447957993,
0.3031200170516968,
-0.3224523067474365,
-0.8293396234512329,
0.14052420854568481,
-0.23950408399105072,
-0.055160291492938995,
-0.10973431169986725,
0.8917999863624573,
-0.32385942339897156,
-0.5561214089393616,
0.38342419266700745,
0.10520301759243011,
0.25131508708000183,
0.2545269727706909,
-0.8187925815582275,
-0.1883334219455719,
-0.09840492904186249,
-0.4433251619338989,
0.2552054822444916,
0.3876042366027832,
0.08983537554740906,
0.6536352038383484,
0.5653591752052307,
-0.18668411672115326,
0.37545058131217957,
-0.005048165563493967,
1.1022937297821045,
-0.40067362785339355,
-0.4245784878730774,
-0.575117290019989,
0.5478681325912476,
-0.19530723989009857,
-0.3398991525173187,
0.5766441226005554,
0.28685465455055237,
1.0047801733016968,
-0.0889074057340622,
0.4491477906703949,
-0.16743484139442444,
0.16975027322769165,
-0.34395337104797363,
0.6348605155944824,
-0.46586403250694275,
-0.19301411509513855,
-0.16967183351516724,
-1.001267433166504,
-0.30272364616394043,
0.9195147156715393,
-0.05538500100374222,
0.10754057765007019,
0.42726361751556396,
0.6949650645256042,
-0.2942103147506714,
-0.26506197452545166,
0.21546530723571777,
0.3669811189174652,
-0.02840874157845974,
0.40571117401123047,
0.7896896600723267,
-0.5896168947219849,
0.5339049696922302,
-0.6576641798019409,
-0.36813363432884216,
-0.16834935545921326,
-0.6336979866027832,
-1.3055849075317383,
-0.5905759930610657,
-0.4036996364593506,
-0.5565527081489563,
-0.002056446857750416,
0.7440760135650635,
1.1578946113586426,
-0.9562947154045105,
0.1690087467432022,
-0.05862533673644066,
-0.07296089828014374,
-0.21261531114578247,
-0.18011444807052612,
0.4771166145801544,
-0.03590025380253792,
-0.6710612773895264,
-0.0171744916588068,
0.08046813309192657,
0.30460405349731445,
-0.3388986885547638,
-0.060979947447776794,
-0.07739149034023285,
-0.17842696607112885,
0.5316551923751831,
0.3638819456100464,
-0.6950407028198242,
-0.6223952770233154,
-0.08968287706375122,
-0.06735626608133316,
0.29086247086524963,
0.3985847532749176,
-0.8506258726119995,
0.6829552054405212,
0.45146459341049194,
0.5202215909957886,
0.8544920682907104,
0.03401536867022514,
0.17679712176322937,
-0.7826201915740967,
0.3654569089412689,
0.04102808237075806,
0.5196776986122131,
0.3378099203109741,
-0.3622001111507416,
0.43259426951408386,
0.41716423630714417,
-0.5406273007392883,
-0.7274332642555237,
0.19289948046207428,
-1.1458289623260498,
-0.15764378011226654,
0.9311850070953369,
-0.48173508048057556,
-0.5245260000228882,
0.1016339436173439,
-0.020227912813425064,
0.5157448649406433,
-0.03619334101676941,
0.49408671259880066,
0.30954912304878235,
0.03820481523871422,
-0.6077045798301697,
-0.39421775937080383,
0.4531457722187042,
-0.11060309410095215,
-0.38842958211898804,
-0.6108823418617249,
0.017477478832006454,
0.357215940952301,
0.3796878755092621,
0.18422533571720123,
-0.27495378255844116,
0.1491260975599289,
0.3626258671283722,
0.1957596093416214,
-0.25381186604499817,
-0.3723417818546295,
-0.23071278631687164,
0.07414470613002777,
-0.3064090609550476,
-0.667841374874115
] |
lgaalves/gpt2-dolly
|
lgaalves
| 2023-11-17T22:43:29Z | 8,240 | 1 |
transformers
|
[
"transformers",
"pytorch",
"safetensors",
"gpt2",
"text-generation",
"en",
"dataset:databricks/databricks-dolly-15k",
"license:mit",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-08-04T21:54:24Z |
---
license: mit
datasets:
- databricks/databricks-dolly-15k
language:
- en
pipeline_tag: text-generation
---
# GPT-2-dolly
**GPT-2-dolly** is an instruction fine-tuned model based on the GPT-2 transformer architecture.
### Benchmark Metrics
| Metric | GPT-2-dolly | GPT-2 (base) |
|-----------------------|-------|-------|
| Avg. | **30.91** | 29.99 |
| ARC (25-shot) | **22.70** | 21.84 |
| HellaSwag (10-shot) | 30.15 | **31.6** |
| MMLU (5-shot) | 25.81 | **25.86** |
| TruthfulQA (0-shot) | **44.97** | 40.67 |
We use state-of-the-art [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.
### Model Details
* **Trained by**: Luiz G A Alves
* **Model type:** **GPT-2-dolly** is an auto-regressive language model based on the GPT-2 transformer architecture.
* **Language(s)**: English
### How to use:
```python
# Use a pipeline as a high-level helper
>>> from transformers import pipeline
>>> pipe = pipeline("text-generation", model="lgaalves/gpt2-dolly")
>>> question = "What is a large language model?"
>>> answer = pipe(question)
>>> print(answer[0]['generated_text'])
```
or, you can load the model direclty using:
```python
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("lgaalves/gpt2-dolly")
model = AutoModelForCausalLM.from_pretrained("lgaalves/gpt2-dolly")
```
### Training Dataset
`lgaalves/gpt2-dolly` trained using the Databricks Dolly dataset [`databricks/databricks-dolly-15k`](https://huggingface.co/datasets/databricks/databricks-dolly-15k).
### Training Procedure
`lgaalves/gpt2-dolly` was instruction fine-tuned using LoRA on 1 T4 GPU on Google Colab. It took about 1.5 hours to train it.
# Intended uses, limitations & biases
You can use the raw model for text generation or fine-tune it to a downstream task. The model was not extensively tested and may produce false information. It contains a lot of unfiltered content from the internet, which is far from neutral.
# [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_lgaalves__gpt2-dolly)
| Metric | Value |
|-----------------------|---------------------------|
| Avg. | 25.53 |
| ARC (25-shot) | 22.7 |
| HellaSwag (10-shot) | 30.15 |
| MMLU (5-shot) | 25.81 |
| TruthfulQA (0-shot) | 44.97 |
| Winogrande (5-shot) | 51.46 |
| GSM8K (5-shot) | 0.15 |
| DROP (3-shot) | 3.45 |
|
[
-0.156996488571167,
-1.041469931602478,
0.1669950783252716,
0.2926711440086365,
-0.25313058495521545,
-0.10032990574836731,
-0.1998714655637741,
-0.4222968518733978,
0.05052892118692398,
0.2952711284160614,
-0.5224699378013611,
-0.5554361939430237,
-0.9609541296958923,
-0.13580168783664703,
-0.3238770663738251,
1.3152973651885986,
-0.316891610622406,
-0.17961786687374115,
-0.007539521902799606,
-0.13446475565433502,
-0.44102922081947327,
-0.3115508556365967,
-0.5967885255813599,
-0.2469094693660736,
0.16482745110988617,
0.1953512728214264,
0.7331006526947021,
0.6699367165565491,
0.4719984829425812,
0.33688682317733765,
-0.2594009041786194,
-0.00047208264004439116,
-0.7040839195251465,
-0.1641029417514801,
0.09039799124002457,
-0.4496631622314453,
-0.8362136483192444,
0.23275186121463776,
0.6501535773277283,
0.20705369114875793,
-0.19335630536079407,
0.48645278811454773,
0.2490340918302536,
0.6701793074607849,
-0.2782251834869385,
0.37492799758911133,
-0.462911993265152,
0.09813651442527771,
-0.22630861401557922,
0.11995328962802887,
-0.25103503465652466,
-0.4177800416946411,
-0.008643390610814095,
-0.476420134305954,
0.15978434681892395,
0.04732470586895943,
1.1906923055648804,
0.2441186010837555,
-0.3087277412414551,
-0.29344701766967773,
-0.4713608920574188,
0.8845067024230957,
-0.5262299180030823,
0.28064456582069397,
0.5150748491287231,
0.29699447751045227,
-0.17677943408489227,
-0.7333976626396179,
-0.5186461210250854,
-0.2590336799621582,
-0.37382230162620544,
0.28690046072006226,
-0.16375121474266052,
-0.14439526200294495,
0.4186793565750122,
0.5675680637359619,
-0.9998787641525269,
0.167058065533638,
-0.5574870109558105,
-0.20970933139324188,
0.8078036904335022,
0.214327871799469,
0.14301073551177979,
-0.2792196273803711,
-0.5523794293403625,
-0.1995193511247635,
-0.5283800959587097,
0.14496229588985443,
0.4801923930644989,
0.112808458507061,
-0.5660625100135803,
0.7530369162559509,
-0.2411927729845047,
0.5885129570960999,
0.1232147365808487,
-0.3724936544895172,
0.39948397874832153,
-0.23112893104553223,
-0.3744685649871826,
-0.523989200592041,
1.072425365447998,
0.460234135389328,
0.12828396260738373,
0.015817897394299507,
-0.44029930233955383,
0.16100014746189117,
-0.09686721116304398,
-0.9905931353569031,
-0.3254340887069702,
0.20308925211429596,
-0.4013448655605316,
-0.34838423132896423,
-0.08406630903482437,
-0.7500106692314148,
-0.0823734924197197,
-0.26315879821777344,
0.533850371837616,
-0.320982426404953,
-0.38402634859085083,
-0.11579717695713043,
0.17185541987419128,
0.6753251552581787,
0.25447866320610046,
-0.9257363677024841,
0.34263330698013306,
0.8045141100883484,
1.0873022079467773,
-0.41157612204551697,
-0.17514421045780182,
-0.5600579977035522,
-0.3044489026069641,
-0.24235081672668457,
0.7416776418685913,
-0.21658778190612793,
-0.41724005341529846,
-0.12918446958065033,
0.28777411580085754,
-0.20146125555038452,
-0.5739477872848511,
0.5441383719444275,
-0.34939804673194885,
0.6145331263542175,
-0.09707068651914597,
-0.6495919227600098,
-0.02203913778066635,
0.3296893537044525,
-0.4418780505657196,
1.5895897150039673,
0.6193851828575134,
-0.43465787172317505,
0.31919458508491516,
-0.4434225857257843,
-0.23239865899085999,
-0.09623514115810394,
-0.12632931768894196,
-0.6991294026374817,
-0.16059541702270508,
0.21953360736370087,
0.5567216873168945,
-0.4956664443016052,
0.3829430043697357,
0.0335734486579895,
-0.39265209436416626,
-0.039537880569696426,
-0.26728445291519165,
0.8604040145874023,
0.12415453791618347,
-0.5298711061477661,
0.07490181177854538,
-0.7411171197891235,
0.009204506874084473,
0.38725677132606506,
-0.47930824756622314,
0.30588799715042114,
-0.4833441972732544,
0.24399106204509735,
0.3600772023200989,
0.21745650470256805,
-0.35444918274879456,
0.4310016930103302,
-0.39415666460990906,
0.09020642936229706,
0.8026340007781982,
-0.3940860331058502,
0.39929935336112976,
-0.5440349578857422,
0.7321619391441345,
-0.06356077641248703,
0.2491619735956192,
0.0853913351893425,
-0.8169419169425964,
-0.9911358952522278,
-0.26102524995803833,
0.28995463252067566,
0.7429796457290649,
-0.5033382177352905,
0.5197628140449524,
-0.010719439014792442,
-0.5388940572738647,
-0.756094753742218,
0.2752799689769745,
0.7679669857025146,
0.4874332845211029,
0.5248892903327942,
-0.4140271842479706,
-0.30271458625793457,
-0.8997676968574524,
-0.0667148157954216,
-0.17309917509555817,
-0.23842942714691162,
0.20749381184577942,
0.742176353931427,
-0.23069018125534058,
0.8208006620407104,
-0.6347194314002991,
-0.3746701776981354,
-0.3613097071647644,
0.19865821301937103,
0.4926091134548187,
0.4946261942386627,
0.6761966943740845,
-0.44073858857154846,
-0.7873039245605469,
-0.08161972463130951,
-0.7815341949462891,
-0.12403684109449387,
0.1977538764476776,
-0.172456756234169,
0.680773138999939,
0.26048871874809265,
-0.940841019153595,
0.5179426074028015,
0.734285831451416,
-0.5674877166748047,
0.8592017292976379,
-0.13561207056045532,
0.034992169588804245,
-1.2210932970046997,
0.09645689278841019,
-0.08081095665693283,
-0.15315799415111542,
-0.40775659680366516,
0.12606029212474823,
-0.041845422238111496,
0.0836649090051651,
-0.37369677424430847,
0.8775083422660828,
-0.6131463646888733,
-0.1261926144361496,
-0.3072521686553955,
0.4243745803833008,
-0.09331240504980087,
0.691646933555603,
-0.09234271198511124,
0.8553829193115234,
0.5875345468521118,
-0.35839396715164185,
0.6578027009963989,
0.360726922750473,
-0.49580317735671997,
0.488246887922287,
-0.825887143611908,
0.2604602575302124,
-0.005975957494229078,
0.25918474793434143,
-1.0688380002975464,
-0.2536645233631134,
0.3413882255554199,
-0.4771900773048401,
0.6006052494049072,
-0.3868928551673889,
-0.5220536589622498,
-0.45249608159065247,
-0.3673194348812103,
0.216154545545578,
0.9763903617858887,
-0.4470102787017822,
0.3556242883205414,
0.40558797121047974,
-0.19056770205497742,
-0.5905017256736755,
-0.6275883913040161,
-0.19804121553897858,
-0.23951612412929535,
-0.6884117722511292,
0.15161414444446564,
-0.08514886349439621,
-0.08603224903345108,
-0.17476919293403625,
0.09071402251720428,
0.11759654432535172,
-0.2032618224620819,
0.13882072269916534,
0.4096187353134155,
-0.2233249992132187,
0.07824347913265228,
-0.12824375927448273,
-0.45657116174697876,
0.02515874058008194,
-0.08891486376523972,
0.6231520771980286,
-0.33175376057624817,
-0.119442418217659,
-0.63997483253479,
-0.045597974210977554,
0.3610830307006836,
-0.03010336495935917,
0.8585423231124878,
1.1069774627685547,
-0.10168984532356262,
-0.005396968685090542,
-0.5906127691268921,
-0.17976146936416626,
-0.5093432068824768,
0.5478659868240356,
-0.4120452404022217,
-0.9273500442504883,
0.5048166513442993,
0.09073176234960556,
0.09540821611881256,
0.7020151019096375,
0.8107413649559021,
0.10947241634130478,
0.7244174480438232,
0.4647747278213501,
-0.21874147653579712,
0.24076156318187714,
-0.612531840801239,
0.008352410048246384,
-0.938964307308197,
-0.3637046217918396,
-0.37328270077705383,
-0.4402695894241333,
-1.0102900266647339,
-0.841995894908905,
0.188551664352417,
0.2849397659301758,
-0.3640722930431366,
0.611047089099884,
-0.6298658847808838,
0.30611515045166016,
0.4420984983444214,
-0.11459117382764816,
0.10393758118152618,
-0.048018041998147964,
-0.21481463313102722,
0.04815446212887764,
-0.5912501811981201,
-0.5568559169769287,
1.2021079063415527,
0.5790289044380188,
0.8697149753570557,
0.17643645405769348,
0.32177436351776123,
0.02246805839240551,
0.43300876021385193,
-0.8378177285194397,
0.6018756031990051,
-0.04210580512881279,
-0.573466420173645,
-0.2533774971961975,
-0.39553603529930115,
-0.803156852722168,
0.23049722611904144,
-0.2152426838874817,
-0.9441309571266174,
-0.2382611334323883,
0.21801802515983582,
-0.15141576528549194,
0.33427223563194275,
-0.6894037127494812,
0.8596699237823486,
-0.18816040456295013,
-0.5282180905342102,
0.01673048548400402,
-0.7693299651145935,
0.45075905323028564,
0.030375828966498375,
0.005576535128057003,
-0.2786416709423065,
0.19359415769577026,
0.758800745010376,
-0.5030868649482727,
0.5097248554229736,
-0.2616945803165436,
-0.17272460460662842,
0.47243794798851013,
0.05641697347164154,
0.747600257396698,
0.07199885696172714,
-0.038289617747068405,
0.2672642469406128,
-0.31377243995666504,
-0.4321476221084595,
-0.4844367206096649,
0.7145732641220093,
-1.0427632331848145,
-0.5614093542098999,
-0.4900735020637512,
-0.5830966830253601,
-0.09132209420204163,
-0.14651131629943848,
0.39814865589141846,
0.4508936405181885,
-0.13001929223537445,
0.13883081078529358,
0.5247288942337036,
-0.3708604574203491,
0.5120638012886047,
0.3851519823074341,
-0.4805639088153839,
-0.36421775817871094,
0.7596231698989868,
-0.014878937974572182,
0.3425276279449463,
0.4609849750995636,
0.23234614729881287,
-0.5453218221664429,
-0.24630746245384216,
-0.701729953289032,
0.4097636044025421,
-0.43077245354652405,
-0.24519649147987366,
-0.8387162089347839,
-0.4092461168766022,
-0.4421049654483795,
0.07846478372812271,
-0.5860586166381836,
-0.6717615723609924,
-0.2741951048374176,
-0.21664631366729736,
0.6081534624099731,
0.9344028234481812,
0.06267056614160538,
0.49180927872657776,
-0.5168281197547913,
0.2950447201728821,
0.5694460868835449,
0.5400905609130859,
-0.24680151045322418,
-1.0798182487487793,
-0.14462171494960785,
-0.05146949738264084,
-0.6239798069000244,
-0.5488780736923218,
0.28862518072128296,
0.046222664415836334,
0.33809661865234375,
0.2973897457122803,
-0.25933927297592163,
0.6351003646850586,
-0.39466872811317444,
0.9389041066169739,
0.1551738828420639,
-0.717629611492157,
0.5486728549003601,
-0.3951159119606018,
0.3080452084541321,
0.2575237452983856,
0.2865661382675171,
-0.36874499917030334,
-0.3010460436344147,
-0.5525843501091003,
-0.8195218443870544,
0.9699500799179077,
0.5572198033332825,
0.01244223304092884,
0.2449384182691574,
0.33957791328430176,
0.056803956627845764,
0.06655605882406235,
-0.8536190390586853,
-0.3364574611186981,
-0.08253538608551025,
-0.11762078106403351,
-0.09958156943321228,
-0.5172755122184753,
-0.051280099898576736,
-0.3771267235279083,
0.883992075920105,
-0.061019089072942734,
0.5949555039405823,
-0.18993893265724182,
-0.17970378696918488,
-0.15176211297512054,
0.09494617581367493,
0.7521294355392456,
0.638788640499115,
-0.25419363379478455,
-0.3804083466529846,
0.41723841428756714,
-0.6757649183273315,
0.06017627567052841,
0.2956699728965759,
-0.09408662468194962,
-0.042959388345479965,
0.4789547324180603,
1.0854010581970215,
-0.12137378007173538,
-0.3474195897579193,
0.6322098970413208,
-0.0601983368396759,
-0.2603113353252411,
-0.2924779951572418,
0.06482184678316116,
0.15673212707042694,
0.29999762773513794,
0.14131635427474976,
-0.31537434458732605,
-0.20679408311843872,
-0.5143225789070129,
0.19966475665569305,
0.4635763466358185,
-0.42678746581077576,
-0.43273594975471497,
0.7795341610908508,
0.10245417803525925,
-0.35225144028663635,
0.8019201159477234,
-0.28562653064727783,
-0.3656596839427948,
0.6728453636169434,
0.5468789935112,
0.9039807319641113,
-0.5266879200935364,
0.28591737151145935,
0.7102309465408325,
0.3806043565273285,
-0.13380537927150726,
0.2339063137769699,
0.23903383314609528,
-0.489755779504776,
-0.36799174547195435,
-1.1159276962280273,
-0.18197454512119293,
0.43091654777526855,
-0.6209543347358704,
0.5688234567642212,
-0.26718759536743164,
-0.1707327514886856,
-0.3444148600101471,
0.22927618026733398,
-0.754118800163269,
0.3587619364261627,
-0.1047564372420311,
0.8428269028663635,
-0.7673326730728149,
0.7619409561157227,
0.614132821559906,
-0.24150989949703217,
-0.9274227619171143,
-0.11731069535017014,
0.28270116448402405,
-1.1144310235977173,
0.48366668820381165,
0.29998940229415894,
0.06629760563373566,
-0.2240777462720871,
-0.36871814727783203,
-0.9031713604927063,
1.3603132963180542,
0.1679595559835434,
-0.713177502155304,
0.1559620052576065,
0.20252418518066406,
0.6753066778182983,
-0.2805008590221405,
0.7061492800712585,
0.8310258984565735,
0.4166465103626251,
0.2319359928369522,
-1.2852075099945068,
0.13070742785930634,
-0.34598788619041443,
0.10616252571344376,
0.2501481771469116,
-1.0970876216888428,
1.0535609722137451,
-0.2430906593799591,
-0.038742486387491226,
0.25839003920555115,
0.6152584552764893,
0.3347391188144684,
0.14091138541698456,
0.3469413220882416,
0.9368893504142761,
0.5511332750320435,
-0.3464672267436981,
1.1346632242202759,
-0.29031652212142944,
0.8480673432350159,
1.0281459093093872,
-0.023958323523402214,
0.7217439413070679,
0.07220850884914398,
-0.5037596821784973,
0.4891621470451355,
0.5503076910972595,
-0.05306057631969452,
0.37821465730667114,
0.29110923409461975,
-0.08225605636835098,
0.04992849379777908,
0.1897643357515335,
-0.592582643032074,
0.6983342170715332,
0.3038751780986786,
-0.34201541543006897,
-0.10058479756116867,
-0.2375265210866928,
0.3785316050052643,
-0.15349021553993225,
0.04670273885130882,
0.8042485117912292,
0.1781080961227417,
-0.6105298399925232,
0.8277117609977722,
0.11396294087171555,
0.6481819152832031,
-0.6374602913856506,
0.03850049152970314,
-0.5300225615501404,
0.2298429310321808,
-0.07365615665912628,
-0.8145322799682617,
0.23467795550823212,
0.1616532951593399,
-0.03334986791014671,
-0.33280235528945923,
0.5804436802864075,
-0.6126968860626221,
-0.6057643294334412,
0.401922345161438,
0.4979590177536011,
0.34595170617103577,
0.1910201758146286,
-0.9246705770492554,
0.1536416858434677,
-0.12423215061426163,
-0.694256603717804,
0.46685194969177246,
0.19706889986991882,
0.04276769980788231,
0.6378494501113892,
0.44520244002342224,
-0.14661729335784912,
-0.18075615167617798,
-0.061996690928936005,
1.0063436031341553,
-0.5949316620826721,
-0.3521062731742859,
-0.8059449791908264,
0.6636027693748474,
-0.05226757004857063,
-0.6150349378585815,
0.6829423308372498,
0.7795329093933105,
0.7735116481781006,
-0.027513274922966957,
0.6155685186386108,
-0.3001663386821747,
0.5765246748924255,
-0.6591570377349854,
0.8108200430870056,
-0.6739501357078552,
0.16979314386844635,
-0.3283696472644806,
-1.2401328086853027,
-0.07996958494186401,
0.7766414880752563,
-0.2557195723056793,
0.36076679825782776,
0.7230401039123535,
1.0623124837875366,
-0.0014968211762607098,
-0.13775335252285004,
0.23290430009365082,
0.4849138557910919,
0.22330456972122192,
0.6176190972328186,
0.7148784399032593,
-0.7779841423034668,
0.5968035459518433,
-0.2044364959001541,
-0.5546678304672241,
-0.2488936483860016,
-0.6987067461013794,
-1.1193366050720215,
-0.4434075355529785,
-0.3522207736968994,
-0.5461112260818481,
0.10902541130781174,
0.8550772070884705,
0.61765056848526,
-0.8718827366828918,
-0.4191589653491974,
0.08961676806211472,
0.040671225637197495,
-0.05251093953847885,
-0.313469260931015,
0.668213427066803,
-0.20169265568256378,
-0.9801656603813171,
0.23470118641853333,
0.22945688664913177,
0.04480932652950287,
-0.20686618983745575,
-0.20771482586860657,
-0.22533933818340302,
-0.23575174808502197,
0.844021737575531,
0.03164957836270332,
-0.6747908592224121,
-0.2576853334903717,
0.031627364456653595,
-0.25021716952323914,
0.1005808413028717,
0.38439011573791504,
-0.6190361976623535,
0.34660375118255615,
0.4051167666912079,
0.2939648926258087,
0.8135257363319397,
0.17087844014167786,
0.4044072926044464,
-0.7192599773406982,
0.3195089101791382,
0.04637380316853523,
0.2122820019721985,
0.3694422245025635,
-0.30247610807418823,
0.771012544631958,
0.4310956299304962,
-0.8654083013534546,
-0.5588620901107788,
0.19929565489292145,
-0.9749914407730103,
0.043508946895599365,
1.4796556234359741,
-0.21970093250274658,
-0.1345125138759613,
0.06320641189813614,
-0.19765180349349976,
0.22616447508335114,
-0.3543039560317993,
0.8155564069747925,
0.5689601898193359,
-0.14773960411548615,
-0.23111112415790558,
-0.7890183925628662,
0.656669557094574,
0.28813233971595764,
-0.7866352796554565,
-0.18218527734279633,
0.3294673264026642,
0.48162445425987244,
0.001843528705649078,
0.8235965967178345,
-0.25730568170547485,
0.056843411177396774,
-0.05533084645867348,
-0.06848254799842834,
0.062465179711580276,
-0.2563416659832001,
-0.19233708083629608,
-0.022176271304488182,
-0.2238759547472,
-0.11727431416511536
] |
elftsdmr/malware-url-detect
|
elftsdmr
| 2023-08-26T11:09:23Z | 8,235 | 1 |
transformers
|
[
"transformers",
"pytorch",
"tensorboard",
"bert",
"text-classification",
"generated_from_trainer",
"license:apache-2.0",
"endpoints_compatible",
"has_space",
"region:us"
] |
text-classification
| 2023-05-10T11:37:09Z |
---
license: apache-2.0
tags:
- generated_from_trainer
metrics:
- accuracy
- precision
- recall
- f1
model-index:
- name: MALWARE-URL-DETECT
results: []
---
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
should probably proofread and complete it, then remove this comment. -->
# MALWARE-URL-DETECT
With this model, it detects harmful links created to harm people such as phishing in Turkey. Classifies url addresses as malware and benign.
Type the domain name of the url address in the text field for classification in API: Like this:
"huggingface.com"
To test the model, visit [USOM](https://www.usom.gov.tr/adres). Harmful links used in Turkey are shared up-to-date on this site.
This model is a fine-tuned version of [bert-base-multilingual-cased](https://huggingface.co/bert-base-multilingual-cased) on an unknown dataset.
It achieves the following results on the evaluation set:
- Loss: 0.2122
- Accuracy: 0.945
- Precision: 0.9611
- Recall: 0.9287
- F1: 0.9446
## Model description
More information needed
## Intended uses & limitations
More information needed
## Training and evaluation data
More information needed
## Training procedure
### Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 5e-05
- train_batch_size: 64
- eval_batch_size: 64
- seed: 42
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- num_epochs: 3
### Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|:---------:|:------:|:------:|
| No log | 1.0 | 63 | 0.2153 | 0.921 | 0.9953 | 0.8475 | 0.9155 |
| No log | 2.0 | 126 | 0.1927 | 0.946 | 0.9669 | 0.9248 | 0.9453 |
| No log | 3.0 | 189 | 0.2122 | 0.945 | 0.9611 | 0.9287 | 0.9446 |
### Framework versions
- Transformers 4.28.1
- Pytorch 2.0.0
- Datasets 2.1.0
- Tokenizers 0.13.3
|
[
-0.44062837958335876,
-0.8375657796859741,
-0.044564906507730484,
0.11076153814792633,
-0.33718135952949524,
-0.6391812562942505,
0.04703645408153534,
-0.5813939571380615,
-0.05315287411212921,
0.35483941435813904,
-0.6263426542282104,
-0.8677802681922913,
-0.5720039010047913,
-0.07225967198610306,
-0.32261043787002563,
1.4163438081741333,
0.23932409286499023,
0.250005304813385,
-0.049744147807359695,
-0.005473875440657139,
-0.1898273229598999,
-0.6866351366043091,
-0.8899208903312683,
-0.34703630208969116,
0.45698150992393494,
0.2026471048593521,
0.7340635061264038,
0.7768638134002686,
0.8012479543685913,
0.27977481484413147,
-0.15785649418830872,
-0.2251732498407364,
-0.41267335414886475,
-0.1917729526758194,
-0.08722641319036484,
-0.4124879240989685,
-0.6884967088699341,
0.00556557159870863,
0.3844021260738373,
0.38416630029678345,
-0.05716909095644951,
0.6960349082946777,
0.21495698392391205,
0.6278883218765259,
-0.5022836327552795,
0.13855722546577454,
-0.4183598458766937,
0.23553502559661865,
-0.38155287504196167,
-0.3680756986141205,
-0.3146113157272339,
-0.22974196076393127,
0.2462317794561386,
-0.4411638081073761,
0.5762084722518921,
0.18280917406082153,
1.2604931592941284,
0.1507830172777176,
-0.4502852261066437,
0.010769312269985676,
-0.6798355579376221,
0.7148441672325134,
-0.7392964363098145,
0.3530794084072113,
0.5960174798965454,
0.5252127051353455,
-0.4184113144874573,
-0.634171724319458,
-0.4225657880306244,
-0.12407729029655457,
0.010414056479930878,
-0.06776319444179535,
-0.3318386971950531,
0.01016544084995985,
0.6579873561859131,
0.41322293877601624,
-0.9119619727134705,
-0.03618740662932396,
-0.6194067001342773,
-0.4746696352958679,
0.6487926244735718,
0.29631364345550537,
0.17693042755126953,
-0.2125728577375412,
-0.48609572649002075,
-0.22403572499752045,
-0.3800729513168335,
0.37398266792297363,
0.6175697445869446,
0.4635169804096222,
-0.2968660295009613,
0.4605304002761841,
-0.3814849853515625,
0.7645730972290039,
0.11469893157482147,
-0.46649986505508423,
0.649061918258667,
0.11952701956033707,
-0.46543920040130615,
0.10835050046443939,
0.8632771968841553,
0.46262115240097046,
0.15341854095458984,
0.19458205997943878,
-0.156216561794281,
-0.06763409823179245,
0.38137921690940857,
-0.9659691452980042,
-0.3097763955593109,
0.4143780469894409,
-0.8701825737953186,
-0.6489985585212708,
0.03270655497908592,
-0.6726592779159546,
0.06364363431930542,
0.02481396496295929,
0.514702558517456,
-0.5771210789680481,
-0.19799308478832245,
0.19273576140403748,
0.0015665676910430193,
0.29812777042388916,
0.20110639929771423,
-0.8322817087173462,
0.353617787361145,
0.5476219058036804,
0.49001002311706543,
0.04826837778091431,
-0.37219178676605225,
-0.315889835357666,
0.05430654436349869,
-0.03745586797595024,
0.6005024909973145,
-0.2041686624288559,
-0.34251531958580017,
0.12992309033870697,
0.2802729308605194,
-0.07521486282348633,
-0.6413455009460449,
0.8120096325874329,
-0.4827737808227539,
0.4390948712825775,
-0.16095712780952454,
-0.5898008346557617,
-0.5494153499603271,
0.4504949450492859,
-0.8196415901184082,
1.3552916049957275,
-0.16939841210842133,
-1.1202723979949951,
0.5635618567466736,
-0.5419560074806213,
-0.4016258418560028,
0.006933352444320917,
0.06075051426887512,
-0.8586412072181702,
-0.15838293731212616,
-0.05509736016392708,
0.6853300929069519,
-0.16975456476211548,
0.3015156090259552,
-0.5227653384208679,
-0.570997953414917,
0.15839074552059174,
-0.5906001925468445,
1.2880840301513672,
0.31090742349624634,
-0.6559802889823914,
0.07027599215507507,
-1.0694676637649536,
-0.03428874537348747,
0.4871746599674225,
-0.7250218987464905,
-0.16773320734500885,
-0.25557196140289307,
0.48682668805122375,
0.39406800270080566,
0.25977638363838196,
-0.5750381350517273,
0.06227463111281395,
-0.3067461848258972,
-0.237959086894989,
0.6164199709892273,
0.11699225008487701,
-0.09162947535514832,
-0.6567386984825134,
0.41988256573677063,
0.17926497757434845,
0.6104221940040588,
0.11840768158435822,
-0.8294223546981812,
-0.8643679618835449,
-0.1021907776594162,
0.0032726016361266375,
0.5877149105072021,
-0.2924703359603882,
0.7270454168319702,
-0.22981972992420197,
-0.713787317276001,
-0.29743024706840515,
0.1696300357580185,
0.5458568334579468,
0.6794300675392151,
0.4215342104434967,
-0.0366930216550827,
-0.37766268849372864,
-1.0606619119644165,
-0.10967057198286057,
-0.22846683859825134,
0.13546927273273468,
0.3003641963005066,
0.7391675710678101,
-0.10526718199253082,
0.633756160736084,
-0.23802965879440308,
-0.40696200728416443,
-0.16606302559375763,
0.03377955034375191,
0.4823943078517914,
0.7907086610794067,
0.8880595564842224,
-0.8059563636779785,
-0.376819372177124,
-0.22026757895946503,
-0.8782665729522705,
0.317265123128891,
-0.07874366641044617,
-0.12305514514446259,
0.19112259149551392,
0.10256382822990417,
-0.44927600026130676,
0.7139864563941956,
0.32648786902427673,
-0.5015748143196106,
0.8309811353683472,
-0.273455947637558,
0.10257139056921005,
-1.2879172563552856,
0.37220674753189087,
0.32408884167671204,
-0.12131880223751068,
-0.5523205995559692,
0.1941307932138443,
0.023234669119119644,
-0.17450858652591705,
-0.6557056307792664,
0.5212488770484924,
-0.010449574328958988,
0.17567743360996246,
-0.14149725437164307,
-0.4412509799003601,
-0.11452150344848633,
0.7902097702026367,
0.03226881101727486,
0.7182810306549072,
0.6319612860679626,
-0.6482223272323608,
0.49699607491493225,
0.26145705580711365,
-0.3587898313999176,
0.5591790676116943,
-0.5940878987312317,
-0.06958183646202087,
0.13090361654758453,
0.1553901880979538,
-0.8607403039932251,
-0.2930145859718323,
0.7158212065696716,
-0.7110809683799744,
0.21985860168933868,
-0.46208304166793823,
-0.5227554440498352,
-0.537048876285553,
-0.21792416274547577,
0.3218601644039154,
0.6890818476676941,
-0.5885393619537354,
0.43577688932418823,
0.1017041951417923,
0.16914325952529907,
-0.813101053237915,
-0.7124355435371399,
-0.28891414403915405,
-0.4274677634239197,
-0.7139831781387329,
0.03181769326329231,
0.048962902277708054,
-0.07510308176279068,
-0.011538934893906116,
-0.19893157482147217,
-0.4114496409893036,
0.04261838272213936,
0.41067859530448914,
0.38858187198638916,
-0.14003419876098633,
-0.01872107945382595,
-0.061712685972452164,
-0.23670843243598938,
0.4019588828086853,
-0.21216605603694916,
0.5692904591560364,
-0.21342754364013672,
-0.6076095104217529,
-1.0618826150894165,
0.06068781763315201,
0.6160493493080139,
-0.02715683914721012,
0.858387291431427,
0.9094333648681641,
-0.675667405128479,
0.041927654296159744,
-0.658463180065155,
-0.1915687769651413,
-0.515434205532074,
0.2666468620300293,
-0.4020637571811676,
-0.3813924193382263,
0.7472051382064819,
-0.062110792845487595,
0.04621250554919243,
0.8591291904449463,
0.4294116199016571,
-0.11728940904140472,
1.1529111862182617,
0.4573197364807129,
-0.22508549690246582,
0.19706080853939056,
-0.6408208608627319,
-0.10469862073659897,
-0.5088660717010498,
-0.7253081202507019,
-0.6420654058456421,
-0.25720590353012085,
-0.6907883286476135,
0.11309246718883514,
0.09992633759975433,
-0.07919158786535263,
-0.5458921194076538,
0.3444124460220337,
-0.5465481877326965,
0.18271395564079285,
0.8743492960929871,
0.42953529953956604,
-0.07363840192556381,
0.34784138202667236,
-0.5216174125671387,
0.002641409868374467,
-0.7525727152824402,
-0.5179635882377625,
1.4246004819869995,
0.48378434777259827,
0.8212841153144836,
0.028445445001125336,
0.8007792234420776,
0.40011221170425415,
0.026277223601937294,
-0.642642617225647,
0.5485600233078003,
0.011334621347486973,
-1.0308974981307983,
-0.15273542702198029,
-0.21990665793418884,
-1.0387064218521118,
0.08596526831388474,
-0.4188539981842041,
-1.0072576999664307,
0.20948567986488342,
0.3268028795719147,
-0.4419015049934387,
0.7187094688415527,
-0.37837740778923035,
1.133299469947815,
-0.28518256545066833,
-0.5870335102081299,
-0.19965782761573792,
-0.6264018416404724,
0.17066076397895813,
0.009207407012581825,
-0.027230646461248398,
-0.18008917570114136,
0.4416053593158722,
0.9836328029632568,
-0.6487594842910767,
0.798883318901062,
-0.4176286458969116,
0.2113557755947113,
0.29559117555618286,
-0.05900944769382477,
0.5986729860305786,
0.03381800651550293,
-0.035190775990486145,
0.3497956693172455,
0.015256393700838089,
-0.7010706663131714,
-0.3903515934944153,
0.745367169380188,
-0.9458715319633484,
-0.5264071226119995,
-0.7470276355743408,
-0.33017662167549133,
0.0015806879382580519,
0.2935716211795807,
0.5003906488418579,
0.5835267901420593,
-0.10629279911518097,
0.25131911039352417,
0.8614389300346375,
-0.3400900661945343,
0.27155059576034546,
0.4426262378692627,
-0.1587667167186737,
-0.38519519567489624,
0.9333375096321106,
-0.28349703550338745,
-0.05470605939626694,
0.061014384031295776,
0.1720854640007019,
-0.334150105714798,
-0.6434465646743774,
-0.6223635673522949,
0.1946270763874054,
-0.644892156124115,
-0.30999279022216797,
-0.5334546566009521,
-0.4232267141342163,
-0.533823549747467,
0.025978900492191315,
-0.2594050467014313,
-0.16448098421096802,
-0.3861144781112671,
-0.09538258612155914,
0.49809277057647705,
0.4170500636100769,
-0.04012984037399292,
0.48896849155426025,
-0.8803171515464783,
-0.07822804898023605,
0.19350409507751465,
0.36788976192474365,
-0.0010585942072793841,
-0.7497014403343201,
-0.33830124139785767,
0.07725444436073303,
-0.3068285286426544,
-0.9176267981529236,
0.5052525997161865,
-0.08793671429157257,
0.7664016485214233,
1.018917202949524,
-0.06585664302110672,
0.7160197496414185,
-0.16322921216487885,
0.7777504324913025,
0.22365978360176086,
-0.5070183873176575,
0.6386245489120483,
-0.5054665803909302,
0.13285721838474274,
0.5786678194999695,
0.7520860433578491,
-0.3566812574863434,
-0.1904008984565735,
-0.9488011002540588,
-0.667438805103302,
1.0254207849502563,
0.39672204852104187,
0.11845589429140091,
0.10287445038557053,
0.4018931984901428,
-0.08536554127931595,
0.1108340471982956,
-0.8378734588623047,
-0.7184740900993347,
-0.10474689304828644,
-0.08762676268815994,
0.22810174524784088,
-0.6026106476783752,
-0.13882116973400116,
-0.546517550945282,
1.099348545074463,
0.3284306228160858,
0.37216824293136597,
-0.02456844039261341,
-0.02681405283510685,
-0.11660640686750412,
0.07451025396585464,
0.45506203174591064,
0.561013400554657,
-0.6350051164627075,
-0.06101958081126213,
0.2123989462852478,
-0.7305850982666016,
0.15530332922935486,
0.39832574129104614,
-0.03509816527366638,
0.09674637764692307,
0.3432181775569916,
0.7429213523864746,
0.14792267978191376,
-0.38103175163269043,
0.6403010487556458,
-0.05579868704080582,
-0.23812194168567657,
-0.5473811626434326,
0.13405410945415497,
-0.21799707412719727,
0.24619372189044952,
0.4619356095790863,
0.1495702862739563,
0.3847702443599701,
-0.13431236147880554,
0.2866341173648834,
0.3069813549518585,
-0.4932522773742676,
-0.17802275717258453,
0.8755783438682556,
0.1959887593984604,
-0.3783226013183594,
1.0210368633270264,
-0.2702604830265045,
-0.40356460213661194,
0.9025694727897644,
0.6720759868621826,
0.9387862086296082,
-0.5584350824356079,
0.07208972424268723,
0.6855776906013489,
0.26913124322891235,
0.18209660053253174,
0.636734664440155,
0.05609136447310448,
-0.6331058144569397,
-0.07195009291172028,
-0.8050379753112793,
-0.029079334810376167,
0.7509487867355347,
-1.269146203994751,
0.40113943815231323,
-0.5815389156341553,
-0.5169699192047119,
0.3745255172252655,
0.1645919233560562,
-0.8851706385612488,
0.5852484703063965,
0.19874216616153717,
1.2504781484603882,
-1.2258538007736206,
1.0031861066818237,
0.9521994590759277,
-0.5136266946792603,
-0.6939319968223572,
-0.04177752137184143,
0.30325478315353394,
-0.9314807057380676,
0.812723696231842,
0.3132387101650238,
0.17213056981563568,
-0.1414204239845276,
-0.5139206051826477,
-0.7435644865036011,
0.9400341510772705,
0.08360134810209274,
-0.4227757751941681,
0.1195983737707138,
0.34587109088897705,
0.5085471272468567,
0.034824516624212265,
0.17071093618869781,
0.14667509496212006,
0.2725535035133362,
0.1421327441930771,
-1.0554403066635132,
0.18929092586040497,
-0.5396260023117065,
-0.07277658581733704,
0.09356481581926346,
-0.5386309623718262,
0.8070100545883179,
-0.03335229307413101,
0.16070128977298737,
0.06064964830875397,
0.46851885318756104,
0.30310139060020447,
0.4052139222621918,
0.39071717858314514,
0.8779576420783997,
0.48626863956451416,
-0.06711151450872421,
0.8088640570640564,
-0.6282339692115784,
0.6581550240516663,
0.9385703206062317,
0.19494731724262238,
0.7287784218788147,
0.3940669000148773,
-0.30637022852897644,
0.5484350323677063,
1.0219228267669678,
-0.4698776602745056,
0.4315192401409149,
0.09728531539440155,
-0.3172287344932556,
-0.40337860584259033,
0.09028242528438568,
-0.6027291417121887,
0.40500226616859436,
0.3208294212818146,
-0.6619715094566345,
-0.42669785022735596,
0.016101785004138947,
0.1427064836025238,
-0.45916369557380676,
-0.21983693540096283,
0.6392529606819153,
-0.42024993896484375,
-0.22081488370895386,
0.6934820413589478,
0.10235869884490967,
0.4858163595199585,
-0.6490007638931274,
-0.17570993304252625,
-0.0885927602648735,
0.38106444478034973,
-0.21316926181316376,
-0.4514707326889038,
0.2590576112270355,
-0.044853102415800095,
-0.05421433225274086,
0.19383741915225983,
0.8339734077453613,
-0.08648639917373657,
-0.6539247632026672,
0.18893982470035553,
0.3726747930049896,
0.4965103268623352,
-0.13047443330287933,
-1.2980866432189941,
-0.0690801739692688,
0.05827623978257179,
-0.36650800704956055,
0.3567984104156494,
0.13607564568519592,
-0.11968304216861725,
0.9177646040916443,
0.8590092658996582,
-0.09010075032711029,
0.04263298213481903,
0.00512198219075799,
0.9648887515068054,
-0.6577616930007935,
-0.6411260366439819,
-0.7605065703392029,
0.4730663299560547,
-0.24837535619735718,
-0.43960294127464294,
0.8248136043548584,
1.2421894073486328,
1.0295262336730957,
-0.18741878867149353,
0.7627584934234619,
0.09239806979894638,
0.3149460256099701,
-0.23751942813396454,
0.935195803642273,
-0.7208563685417175,
-0.1113424152135849,
-0.31702184677124023,
-0.814871072769165,
-0.2586040496826172,
0.7231932282447815,
-0.27879542112350464,
0.14723554253578186,
0.4565723240375519,
0.7641546130180359,
-0.2447413206100464,
-0.01621858775615692,
0.31045374274253845,
-0.05506660416722298,
0.05216734856367111,
0.386049747467041,
0.5437870621681213,
-0.6684786677360535,
0.7296117544174194,
-0.7798278331756592,
-0.2788155674934387,
-0.4302249848842621,
-0.5435405969619751,
-1.2695780992507935,
-0.46575072407722473,
-0.431010901927948,
-0.6605886220932007,
0.29769811034202576,
1.0560473203659058,
0.8452631831169128,
-1.2052432298660278,
-0.30623874068260193,
0.19586849212646484,
-0.36333751678466797,
-0.3851874768733978,
-0.24138793349266052,
0.6193146109580994,
-0.2626352310180664,
-0.8163719177246094,
-0.14906984567642212,
-0.08299941569566727,
0.45374399423599243,
-0.1598695069551468,
-0.0583125539124012,
-0.3182063102722168,
-0.25683677196502686,
0.15880359709262848,
0.32947108149528503,
-0.7734712958335876,
-0.19227272272109985,
0.004929582122713327,
-0.2240261435508728,
-0.03773179650306702,
0.33942970633506775,
-0.4951736629009247,
0.5034969449043274,
0.42312413454055786,
0.4573729932308197,
0.6271761059761047,
-0.04744464531540871,
0.19597439467906952,
-0.48325231671333313,
0.42149099707603455,
0.00978174153715372,
0.5732324719429016,
-0.015604698099195957,
-0.5886354446411133,
0.2734052240848541,
0.5200275778770447,
-0.4921259880065918,
-0.6815992593765259,
-0.21429142355918884,
-0.9673581123352051,
-0.07629642635583878,
1.2288872003555298,
-0.3103489875793457,
-0.4894944727420807,
-0.2651776671409607,
-0.09018056839704514,
0.35153600573539734,
-0.43188393115997314,
0.9643076062202454,
0.5844817757606506,
-0.2463230937719345,
0.3119589686393738,
-0.5640365481376648,
0.7200005054473877,
0.16067785024642944,
-0.7052454352378845,
-0.362714022397995,
0.5667335391044617,
0.6579268574714661,
0.07040589302778244,
0.35054484009742737,
-0.08235973864793777,
0.5959997773170471,
0.10144255310297012,
0.2976534068584442,
-0.3055187165737152,
-0.32615309953689575,
-0.4558963179588318,
0.037981726229190826,
-0.04978363215923309,
-0.6502645015716553
] |
KappaNeuro/studio-ghibli-style
|
KappaNeuro
| 2023-09-14T10:52:17Z | 8,232 | 9 |
diffusers
|
[
"diffusers",
"text-to-image",
"stable-diffusion",
"lora",
"studio ghibli",
"art",
"ghibli",
"style",
"painting",
"films",
"base_model:stabilityai/stable-diffusion-xl-base-1.0",
"license:other",
"has_space",
"region:us"
] |
text-to-image
| 2023-09-14T10:52:13Z |
---
license: other
tags:
- text-to-image
- stable-diffusion
- lora
- diffusers
- studio ghibli
- art
- ghibli
- style
- painting
- films
base_model: stabilityai/stable-diffusion-xl-base-1.0
instance_prompt: Studio Ghibli Style
widget:
- text: "Studio Ghibli Style - Japanese soccer player Mina Tanaka overcomes crushing pressure. Studio Ghibli animation style. surreal."
- text: "Studio Ghibli Style - Anime style image like window xp background. This image contains hills with covered grasses. On the one of the hills there is earth tiny path. Left side of the image, there are a tiny wooden one-story house with a roof. One of the hills, top of the hill there is a white sheep. Sunny day, Noon time."
- text: "Studio Ghibli Style - a man and a woman standing in front of a cartoon character, a storybook illustration by Studio Ghibli, cgsociety, magical realism, official art, anime, movie still The background is a picture of a train running next to a river, two sides are yellow flowers 3d 4k official art"
- text: "Studio Ghibli Style - As the unwitting young guardian of a perimeter, explore a unspoiled nature reserve, piece together the history and discover that the fate of the planet depends on a truth to be unveiled.Studio Ghibli Cel Style"
- text: "Studio Ghibli Style - Studio ghibli style, big cute black cat is looking out of big wood paned window at a big pink dog wood tree, rolling green hills in background, aesthetic furniture in foreground"
- text: "Studio Ghibli Style - an amazing image that shows that Mistakes help me learn and improve; they are a natural part of the learning process, in the style of Ghibli 4k 8k 16k 32k 64k"
- text: "Studio Ghibli Style - same image, same image, plantation, yellow and green, traditional chinese houses, distant mountain in the background ghibli design"
- text: "Studio Ghibli Style - wales flying in the sky, fantastic ambiance, moons and mountains in backgrounds - Ghibli animation studio rendering"
- text: "Studio Ghibli Style - Design a poster that showcases the beautiful landscapes and scenery from Studio Ghibli films"
---
# Studio Ghibli Style ([CivitAI](https://civitai.com/models/106712))

> Studio Ghibli Style - Japanese soccer player Mina Tanaka overcomes crushing pressure. Studio Ghibli animation style. surreal.
<p>The Studio Ghibli style refers to the distinctive artistic and storytelling approach seen in the animated films produced by Studio Ghibli. It is characterized by its attention to detail, hand-drawn animation, richly crafted worlds, and emotionally resonant storytelling.</p><p>Visually, the Studio Ghibli style often features lush and vibrant environments, meticulously designed backgrounds, and intricate character designs. The attention to detail is remarkable, with carefully rendered textures, naturalistic movements, and expressive facial expressions. The animation captures a sense of fluidity and grace, immersing viewers in a visually stunning cinematic experience.</p><p>Storytelling is at the heart of the Studio Ghibli style. The films often explore themes of nature, the environment, coming-of-age, and the power of human connections. They possess a unique ability to blend fantasy elements with grounded, relatable narratives, resulting in stories that are both whimsical and deeply resonant. Studio Ghibli films often celebrate the imagination and the spirit of adventure, while also grappling with deeper philosophical questions and social commentary.</p><p>The studio's films also feature strong and complex characters, particularly young protagonists who embark on transformative journeys of self-discovery and personal growth. These characters often face challenges and conflicts that allow for exploration of universal themes such as identity, love, loss, and the duality of human nature.</p><p>Music plays an integral role in the Studio Ghibli style, with beautiful and emotive scores composed by Joe Hisaishi. The music enhances the storytelling, evoking a wide range of emotions and further immersing viewers in the enchanting worlds created by the studio.</p><p>The Studio Ghibli style has captivated audiences worldwide, transcending language and cultural barriers. The films' artistry, imagination, and universal themes have earned them a devoted following and critical acclaim. The studio's commitment to craftsmanship, creativity, and storytelling continues to inspire both animators and film enthusiasts, leaving a lasting impact on the world of animation.</p>
## Image examples for the model:

> Studio Ghibli Style - Anime style image like window xp background. This image contains hills with covered grasses. On the one of the hills there is earth tiny path. Left side of the image, there are a tiny wooden one-story house with a roof. One of the hills, top of the hill there is a white sheep. Sunny day, Noon time.

> Studio Ghibli Style - a man and a woman standing in front of a cartoon character, a storybook illustration by Studio Ghibli, cgsociety, magical realism, official art, anime, movie still The background is a picture of a train running next to a river, two sides are yellow flowers 3d 4k official art

>

> Studio Ghibli Style - As the unwitting young guardian of a perimeter, explore a unspoiled nature reserve, piece together the history and discover that the fate of the planet depends on a truth to be unveiled.Studio Ghibli Cel Style

> Studio Ghibli Style - Studio ghibli style, big cute black cat is looking out of big wood paned window at a big pink dog wood tree, rolling green hills in background, aesthetic furniture in foreground

> Studio Ghibli Style - an amazing image that shows that Mistakes help me learn and improve; they are a natural part of the learning process, in the style of Ghibli 4k 8k 16k 32k 64k

> Studio Ghibli Style - same image, same image, plantation, yellow and green, traditional chinese houses, distant mountain in the background ghibli design

> Studio Ghibli Style - wales flying in the sky, fantastic ambiance, moons and mountains in backgrounds - Ghibli animation studio rendering

> Studio Ghibli Style - Design a poster that showcases the beautiful landscapes and scenery from Studio Ghibli films
|
[
-0.5063621401786804,
-0.4263235628604889,
0.28975433111190796,
0.34337693452835083,
-0.20355400443077087,
0.5887957215309143,
-0.0592801496386528,
-0.6678016185760498,
0.7979389429092407,
0.10847565531730652,
-1.0875310897827148,
-0.3549559712409973,
-0.4239268898963928,
-0.24814073741436005,
0.16998986899852753,
0.7901376485824585,
-0.06165917590260506,
0.13164179027080536,
-0.010450501926243305,
0.04039976745843887,
-0.6040043234825134,
-0.15581047534942627,
-0.349880188703537,
-0.403552770614624,
0.18218597769737244,
0.04480917379260063,
0.8371226191520691,
0.5330644249916077,
0.21846862137317657,
0.30995848774909973,
0.17815417051315308,
0.05231410264968872,
-0.30944380164146423,
0.08323955535888672,
-0.014219802804291248,
-0.6823053359985352,
-0.27648237347602844,
0.044873423874378204,
0.260834664106369,
0.2504269480705261,
0.11404825001955032,
0.16321271657943726,
0.0766511857509613,
0.6502922773361206,
-0.3669760525226593,
0.24790024757385254,
0.07800732553005219,
0.23611262440681458,
-0.16946302354335785,
-0.2752411365509033,
-0.1884554773569107,
-0.42140087485313416,
-0.45475417375564575,
-0.8762356042861938,
0.24339605867862701,
0.01618848368525505,
1.2403427362442017,
-0.05553850531578064,
-0.14206810295581818,
-0.5408450961112976,
-0.5479652881622314,
0.6997056603431702,
-0.13002538681030273,
0.22194302082061768,
0.12988348305225372,
0.47243261337280273,
-0.04602159187197685,
-0.22464217245578766,
-0.0774538516998291,
0.016362378373742104,
-0.13015130162239075,
0.6562280058860779,
-0.48080873489379883,
-0.49711886048316956,
0.42536765336990356,
0.600901186466217,
-0.7999631762504578,
-0.03620733693242073,
-0.379830002784729,
-0.17351873219013214,
0.763446033000946,
0.22427231073379517,
0.7239910960197449,
0.0050572738982737064,
0.07670005410909653,
-0.30507326126098633,
-0.4761984944343567,
0.21389497816562653,
0.6587017178535461,
-0.50164395570755,
-0.18397432565689087,
0.13642838597297668,
-0.1923055648803711,
0.25265538692474365,
0.17882569134235382,
-0.5267261266708374,
0.28789040446281433,
-0.36011743545532227,
0.16732053458690643,
0.015367284417152405,
0.7108192443847656,
1.0308946371078491,
0.24037304520606995,
-0.37854981422424316,
0.22785550355911255,
0.142635315656662,
0.25124672055244446,
-0.9889134764671326,
-0.19199271500110626,
0.052732914686203,
-0.4019523859024048,
-0.04036384075880051,
-0.2021760493516922,
-1.2090333700180054,
-0.2805819511413574,
-0.24672222137451172,
0.11756742745637894,
-0.6275322437286377,
-0.28237414360046387,
-0.13840113580226898,
-0.45538169145584106,
0.33507323265075684,
0.36218348145484924,
-1.2529343366622925,
-0.1649961918592453,
0.35777172446250916,
0.6194986701011658,
-0.010024072602391243,
-0.10445763915777206,
0.3173680305480957,
0.6393982768058777,
-0.8455485701560974,
0.2783004343509674,
-0.5473232269287109,
-0.6519358158111572,
-0.11606647074222565,
0.19065138697624207,
0.047975894063711166,
-0.3591105043888092,
0.425709992647171,
-0.23835474252700806,
0.09713863581418991,
-0.09482279419898987,
-0.17744974792003632,
-0.197635680437088,
-0.09286269545555115,
-0.5515094995498657,
0.012937384657561779,
0.095917709171772,
-0.6858765482902527,
0.26302188634872437,
-0.6627070903778076,
-0.08178375661373138,
0.0731952041387558,
-0.04920393228530884,
-0.24649739265441895,
0.39178597927093506,
0.15767210721969604,
-0.1144729033112526,
0.012920997105538845,
0.32734110951423645,
-0.4941027760505676,
-0.5777817368507385,
0.05030621215701103,
-0.4186868369579315,
1.1342118978500366,
0.49085095524787903,
-0.4132026433944702,
-0.29124194383621216,
-0.775407612323761,
0.32171157002449036,
0.8419192433357239,
-0.05194636806845665,
-0.20567606389522552,
-0.2875666320323944,
-0.15988433361053467,
0.2910884618759155,
0.4727230668067932,
-0.17105650901794434,
0.2405061423778534,
-0.12034140527248383,
0.5628834366798401,
0.49520936608314514,
0.3990967571735382,
0.16569870710372925,
-0.6128213405609131,
0.709460437297821,
-0.025049898773431778,
0.32621335983276367,
-0.10803671926259995,
-0.5374298095703125,
-0.7278704643249512,
-0.02084449678659439,
0.05905892699956894,
0.5724630951881409,
-0.6013386845588684,
0.3552202582359314,
-0.3033217787742615,
-1.0004183053970337,
-0.9286841154098511,
-0.03662247583270073,
0.29200443625450134,
0.21917147934436798,
0.27095505595207214,
-0.22913333773612976,
-0.48031702637672424,
-0.9024413228034973,
-0.06788475066423416,
-0.05663110688328743,
-0.39096784591674805,
0.26893094182014465,
0.4075548052787781,
-0.30092665553092957,
0.6105375289916992,
-0.5102238655090332,
-0.10190188884735107,
-0.07366160303354263,
-0.1581067144870758,
0.6625633239746094,
0.8674899935722351,
1.0255043506622314,
-0.7156606316566467,
-0.4417012929916382,
-0.1612613946199417,
-0.8878595232963562,
-0.05991291254758835,
-0.2621547281742096,
-0.4933343231678009,
-0.043510910123586655,
0.07994644343852997,
-0.7712023258209229,
0.4153779447078705,
0.35560256242752075,
-0.2081907093524933,
0.6588401198387146,
-0.4680057764053345,
0.7177969217300415,
-0.4795900881290436,
-0.012505150400102139,
-0.03215242177248001,
0.36240243911743164,
-0.5951458215713501,
0.3480303883552551,
-0.48443499207496643,
-0.05808517709374428,
-0.44084542989730835,
0.48789548873901367,
-0.4881236255168915,
0.07494550943374634,
0.09869378060102463,
0.19108402729034424,
0.6491827964782715,
0.8968850374221802,
0.02615821175277233,
0.4684019982814789,
0.6750577092170715,
-0.313327431678772,
0.6006351113319397,
0.33636242151260376,
-0.489605575799942,
0.7687650918960571,
-0.7049949169158936,
0.17667874693870544,
-0.16212928295135498,
0.11566212773323059,
-0.9550391435623169,
-0.3205268681049347,
0.7734048366546631,
-0.47108861804008484,
0.5769820809364319,
-0.009617171250283718,
-0.7748183012008667,
-0.5799452066421509,
-0.49026617407798767,
0.15676799416542053,
0.6377705931663513,
-0.44107404351234436,
0.4900025427341461,
0.1778617650270462,
0.09878543019294739,
-0.16639594733715057,
-0.8330435156822205,
0.10901497304439545,
-0.640261173248291,
-0.5154109001159668,
0.4799680709838867,
-0.5638214945793152,
-0.18473264575004578,
-0.1322450488805771,
-0.10885344445705414,
-0.15576103329658508,
-0.01660184934735298,
0.5486311316490173,
0.5228966474533081,
-0.20739179849624634,
-0.7027609944343567,
0.03450527414679527,
0.16138041019439697,
0.1247086226940155,
0.32741397619247437,
0.6160737872123718,
-0.24697615206241608,
-0.37052276730537415,
-0.6827385425567627,
0.5100191831588745,
0.7437047362327576,
-0.03842714801430702,
0.12510044872760773,
0.7755811810493469,
-0.2588006258010864,
0.47374868392944336,
-0.3169735372066498,
0.24186067283153534,
-0.48495927453041077,
0.14679090678691864,
-0.49895527958869934,
-0.3795281648635864,
0.4492019712924957,
0.10693119466304779,
-0.06299108266830444,
0.6774846315383911,
0.3328912854194641,
-0.43448755145072937,
1.291424036026001,
0.5386478304862976,
-0.374551922082901,
0.49557262659072876,
-0.9493430256843567,
0.24925757944583893,
-0.9186017513275146,
-0.604993462562561,
-0.3814711570739746,
-0.6359547972679138,
-0.7277774810791016,
0.022453054785728455,
0.034598395228385925,
0.4369180202484131,
-0.47875234484672546,
0.2714141309261322,
-0.5622979402542114,
0.45151612162590027,
0.41812583804130554,
0.013036190532147884,
0.31306028366088867,
-0.04686650261282921,
0.19207294285297394,
-0.3159302771091461,
-0.26633700728416443,
-0.4347931146621704,
0.5307266116142273,
0.43467599153518677,
0.510866105556488,
0.45796042680740356,
0.6699666976928711,
-0.03494120016694069,
0.07820143550634384,
-0.5718326568603516,
0.5055640935897827,
0.027203639969229698,
-0.8605465888977051,
-0.08627670258283615,
-0.033704835921525955,
-0.9719445109367371,
0.2731032073497772,
-0.26450639963150024,
-1.0109162330627441,
0.42572304606437683,
-0.0867803543806076,
-0.2363578975200653,
0.25812387466430664,
-0.8209981322288513,
0.9381197094917297,
-0.2856353521347046,
-0.6317713260650635,
-0.23585183918476105,
-0.7009454965591431,
0.5038885474205017,
0.18403518199920654,
0.5582960247993469,
-0.05417080223560333,
-0.0534440316259861,
0.5366842150688171,
-0.12669216096401215,
0.7001133561134338,
-0.17823979258537292,
0.14327581226825714,
0.7328887581825256,
0.26596254110336304,
0.08070145547389984,
0.289326936006546,
0.33372458815574646,
0.32077375054359436,
-0.061393123120069504,
-0.2827273905277252,
-0.6170411705970764,
0.7945777177810669,
-0.9257687926292419,
-0.6640492081642151,
-0.2663261592388153,
-0.3762459456920624,
-0.3248074948787689,
0.12677337229251862,
0.743188738822937,
0.7123990058898926,
-0.057553231716156006,
0.015898004174232483,
0.17970867455005646,
-0.044417884200811386,
0.8606393933296204,
0.12245140969753265,
-0.531052827835083,
-0.5463656783103943,
0.9852209091186523,
0.3695531189441681,
0.11609361320734024,
-0.10875275731086731,
0.06758078932762146,
-0.4561762809753418,
-0.2242971658706665,
-0.625267744064331,
0.4118659496307373,
-0.6464305520057678,
0.02194022759795189,
-0.13445383310317993,
-0.22641104459762573,
-0.04488695040345192,
-0.45092758536338806,
0.16522905230522156,
-0.10333116352558136,
-0.35971799492836,
0.038644276559352875,
0.15264473855495453,
0.40527650713920593,
0.09296514838933945,
0.059461746364831924,
-0.49442949891090393,
0.22869674861431122,
0.5352592468261719,
0.23670783638954163,
0.047422055155038834,
-0.39687711000442505,
0.030033091083168983,
0.033261753618717194,
-0.7855318784713745,
-0.6983510851860046,
0.5529300570487976,
0.16820845007896423,
0.551605224609375,
0.44895055890083313,
-0.3391094505786896,
0.8910613656044006,
-0.7054478526115417,
0.8579156994819641,
0.5079686045646667,
-0.4536687135696411,
0.6801595687866211,
-0.49470254778862,
0.29980185627937317,
0.6879467964172363,
0.6907457113265991,
-0.4196377396583557,
-0.32157155871391296,
-1.2596392631530762,
-0.5817767977714539,
0.3506941795349121,
0.04512031003832817,
0.32313263416290283,
0.24786758422851562,
-0.1466846466064453,
-0.024671342223882675,
0.6760950088500977,
-0.5647311210632324,
-0.39644861221313477,
-0.8424549698829651,
0.23160630464553833,
-0.2609889805316925,
0.27074941992759705,
-0.17671093344688416,
-0.6275002360343933,
0.6501979231834412,
-0.06405394524335861,
0.5483007431030273,
-0.022130142897367477,
0.13833467662334442,
-0.2046739012002945,
0.29867857694625854,
0.5617689490318298,
0.727185845375061,
-0.2690992057323456,
-0.2994229197502136,
-0.12191632390022278,
-0.5751007795333862,
0.2691025733947754,
-0.5279704332351685,
-0.4382089078426361,
0.5196292996406555,
0.35202574729919434,
1.1309081315994263,
0.052714861929416656,
-0.5216661095619202,
0.44199079275131226,
0.18726053833961487,
-0.01110979076474905,
-0.3232687711715698,
0.557063102722168,
0.2735479176044464,
0.18403081595897675,
0.24828599393367767,
0.17384913563728333,
0.3144959509372711,
-0.9715675711631775,
-0.11241587996482849,
0.214778870344162,
-0.11373481154441833,
-0.28622034192085266,
0.8639585375785828,
-0.380754679441452,
-0.3957061171531677,
0.37747302651405334,
-0.4408394396305084,
-0.23473681509494781,
0.8682063221931458,
0.9688014984130859,
0.765610933303833,
-0.1503686010837555,
0.5367146134376526,
0.670515239238739,
-0.10443469136953354,
0.21018154919147491,
-0.1138218566775322,
0.1051463931798935,
-0.3213028311729431,
-0.23886696994304657,
-0.6334324479103088,
-0.6944761872291565,
0.3795818090438843,
-0.5688732266426086,
0.32183369994163513,
-0.7942765355110168,
0.30123600363731384,
-0.10283179581165314,
0.34526240825653076,
-0.3325681984424591,
0.472761332988739,
0.15928426384925842,
0.6773146986961365,
-0.8436589241027832,
0.8579382300376892,
0.35948464274406433,
-0.5156944990158081,
-0.7057065367698669,
-0.08866918087005615,
0.0825134813785553,
-0.8129869103431702,
0.29345089197158813,
0.4175340533256531,
0.08929300308227539,
0.17635183036327362,
-0.7908056974411011,
-0.5806474685668945,
1.162631869316101,
0.09999684244394302,
-0.5541276931762695,
-0.19079090654850006,
-0.3564482033252716,
0.9069399833679199,
-0.5463088750839233,
0.31311288475990295,
0.6595988273620605,
0.650705099105835,
0.5134676098823547,
-0.22791840136051178,
-0.49198463559150696,
-0.5655800700187683,
0.2835370600223541,
-0.03784111142158508,
-1.1127095222473145,
0.14977483451366425,
-0.1923389732837677,
-0.1963120698928833,
0.1451573520898819,
0.7355909943580627,
0.6255159378051758,
0.25530874729156494,
0.32044461369514465,
0.35401761531829834,
0.43177616596221924,
-0.48495662212371826,
0.9759218692779541,
-0.38758227229118347,
0.07554098963737488,
0.6908059120178223,
0.4181150496006012,
0.409733384847641,
0.20067892968654633,
-0.48756882548332214,
0.602374792098999,
0.740400493144989,
-0.6160603165626526,
0.8333580493927002,
0.3061418831348419,
0.004667396657168865,
0.06425541639328003,
-0.5612509250640869,
-0.44005611538887024,
0.1748252660036087,
-0.007184680085629225,
0.4088774025440216,
-0.055787939578294754,
0.08583489060401917,
0.3101899027824402,
0.11423633992671967,
-0.570759654045105,
0.2697075307369232,
0.040446098893880844,
-0.5625365376472473,
0.7440086007118225,
-0.5340070128440857,
0.8209930658340454,
-0.7670869827270508,
0.06592366844415665,
-0.16420622169971466,
-0.3250649571418762,
-0.32331743836402893,
-0.7662932872772217,
0.3758217692375183,
-0.2960391044616699,
-0.059580810368061066,
-0.4711659848690033,
0.3970712125301361,
-0.2898896038532257,
-0.28582313656806946,
0.293663889169693,
-0.14675794541835785,
0.5005922913551331,
0.40722066164016724,
-0.9167225956916809,
0.2624674141407013,
0.34507808089256287,
-0.28853657841682434,
0.5038195252418518,
0.4713519215583801,
0.1536574810743332,
0.4156148433685303,
0.09427544474601746,
0.15993528068065643,
-0.12877853214740753,
0.061374910175800323,
0.45846298336982727,
-0.3871188163757324,
-0.34528544545173645,
-0.6472463607788086,
0.7347696423530579,
-0.1910482496023178,
-0.39284583926200867,
0.6647486090660095,
0.5128788948059082,
0.6467251777648926,
-0.8353329300880432,
0.3097042143344879,
-0.14404046535491943,
0.00179859041236341,
-0.5141194462776184,
0.6912660598754883,
-0.623038649559021,
-0.3189077377319336,
-0.5249738693237305,
-1.053803563117981,
-0.22044704854488373,
0.6301894783973694,
-0.05592647194862366,
0.2991689145565033,
0.3165256083011627,
0.45294034481048584,
0.4096301198005676,
0.07339601218700409,
0.28416308760643005,
0.0454239659011364,
0.30453991889953613,
0.7907435894012451,
1.0826951265335083,
-0.49760183691978455,
0.34912657737731934,
-0.53487628698349,
-0.21111546456813812,
-0.22043851017951965,
-0.787324845790863,
-0.70859295129776,
-0.5170118808746338,
-0.6382355690002441,
0.014593844301998615,
-0.22976656258106232,
0.48506787419319153,
0.3892008066177368,
-0.7340189814567566,
-0.18316566944122314,
0.2934710681438446,
0.14524008333683014,
-0.23374074697494507,
-0.25458866357803345,
-0.07141125202178955,
0.22784775495529175,
-1.169911503791809,
0.7009385824203491,
0.2965753674507141,
0.43994808197021484,
-0.11069495975971222,
-0.0314004085958004,
0.3201525807380676,
-0.09271030873060226,
0.13691551983356476,
0.27286285161972046,
-0.5945925712585449,
-0.36698463559150696,
-0.13152559101581573,
0.019815195351839066,
0.3003748059272766,
0.22213222086429596,
-0.20823819935321808,
0.07854851335287094,
0.5460465550422668,
0.0938250720500946,
0.5636041760444641,
0.014981288462877274,
-0.17857098579406738,
-0.1883188635110855,
-0.06389385461807251,
0.043853357434272766,
0.5812256932258606,
0.05660669133067131,
-0.41617968678474426,
0.8437578082084656,
0.6715819835662842,
-0.5898408889770508,
-0.5929186940193176,
0.0062615638598799706,
-1.0564905405044556,
-0.1977108120918274,
0.582653284072876,
-0.020865552127361298,
-0.44561055302619934,
0.11776074767112732,
-0.448923259973526,
-0.13203303515911102,
-0.16705681383609772,
0.13418948650360107,
0.9930875301361084,
-0.10177989304065704,
0.023466741666197777,
-1.0428438186645508,
0.21575821936130524,
-0.15159739553928375,
-0.40104547142982483,
-0.2236468493938446,
0.5996637940406799,
0.40212348103523254,
1.012860894203186,
0.35934552550315857,
-0.4151136875152588,
-0.0017927135340869427,
0.10001149028539658,
0.18640878796577454,
0.138794407248497,
-0.542699933052063,
-0.2623675465583801,
0.446100115776062,
-0.16530725359916687,
-0.3483750820159912
] |
OpenBuddy/openbuddy-llama2-13b-v11.1-bf16
|
OpenBuddy
| 2023-09-01T16:15:41Z | 8,230 | 18 |
transformers
|
[
"transformers",
"pytorch",
"llama",
"text-generation",
"zh",
"en",
"fr",
"de",
"ja",
"ko",
"it",
"ru",
"has_space",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-08-24T08:17:42Z |
---
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)

# 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
] |
pysentimiento/robertuito-hate-speech
|
pysentimiento
| 2023-02-20T19:04:44Z | 8,217 | 6 |
pysentimiento
|
[
"pysentimiento",
"pytorch",
"roberta",
"twitter",
"hate-speech",
"es",
"arxiv:2106.09462",
"region:us"
] | null | 2022-03-02T23:29:05Z |
---
language:
- es
library_name: pysentimiento
tags:
- twitter
- hate-speech
---
# Hate Speech detection in Spanish
## robertuito-hate-speech
Repository: [https://github.com/pysentimiento/pysentimiento/](https://github.com/finiteautomata/pysentimiento/)
Model trained with SemEval 2019 Task 5: HatEval (SubTask B) corpus for Hate Speech detection in Spanish. Base model is [RoBERTuito](https://github.com/pysentimiento/robertuito), a RoBERTa model trained in Spanish tweets.
It is a multi-classifier model, with the following classes:
- **HS**: is it hate speech?
- **TR**: is it targeted to a specific individual?
- **AG**: is it aggressive?
## Results
Results for the four tasks evaluated in `pysentimiento`. Results are expressed as Macro F1 scores
| model | emotion | hate_speech | irony | sentiment |
|:--------------|:--------------|:--------------|:--------------|:--------------|
| robertuito | 0.560 ± 0.010 | 0.759 ± 0.007 | 0.739 ± 0.005 | 0.705 ± 0.003 |
| roberta | 0.527 ± 0.015 | 0.741 ± 0.012 | 0.721 ± 0.008 | 0.670 ± 0.006 |
| bertin | 0.524 ± 0.007 | 0.738 ± 0.007 | 0.713 ± 0.012 | 0.666 ± 0.005 |
| beto_uncased | 0.532 ± 0.012 | 0.727 ± 0.016 | 0.701 ± 0.007 | 0.651 ± 0.006 |
| beto_cased | 0.516 ± 0.012 | 0.724 ± 0.012 | 0.705 ± 0.009 | 0.662 ± 0.005 |
| mbert_uncased | 0.493 ± 0.010 | 0.718 ± 0.011 | 0.681 ± 0.010 | 0.617 ± 0.003 |
| biGRU | 0.264 ± 0.007 | 0.592 ± 0.018 | 0.631 ± 0.011 | 0.585 ± 0.011 |
Note that for Hate Speech, these are the results for Semeval 2019, Task 5 Subtask B (HS+TR+AG detection)
## Citation
If you use this model in your research, please cite pysentimiento, RoBERTuito and HatEval papers:
```
% Pysentimiento
@misc{perez2021pysentimiento,
title={pysentimiento: A Python Toolkit for Sentiment Analysis and SocialNLP tasks},
author={Juan Manuel Pérez and Juan Carlos Giudici and Franco Luque},
year={2021},
eprint={2106.09462},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
% RoBERTuito paper
@inproceedings{perez-etal-2022-robertuito,
title = "{R}o{BERT}uito: a pre-trained language model for social media text in {S}panish",
author = "P{\'e}rez, Juan Manuel and
Furman, Dami{\'a}n Ariel and
Alonso Alemany, Laura and
Luque, Franco M.",
booktitle = "Proceedings of the Thirteenth Language Resources and Evaluation Conference",
month = jun,
year = "2022",
address = "Marseille, France",
publisher = "European Language Resources Association",
url = "https://aclanthology.org/2022.lrec-1.785",
pages = "7235--7243",
abstract = "Since BERT appeared, Transformer language models and transfer learning have become state-of-the-art for natural language processing tasks. Recently, some works geared towards pre-training specially-crafted models for particular domains, such as scientific papers, medical documents, user-generated texts, among others. These domain-specific models have been shown to improve performance significantly in most tasks; however, for languages other than English, such models are not widely available. In this work, we present RoBERTuito, a pre-trained language model for user-generated text in Spanish, trained on over 500 million tweets. Experiments on a benchmark of tasks involving user-generated text showed that RoBERTuito outperformed other pre-trained language models in Spanish. In addition to this, our model has some cross-lingual abilities, achieving top results for English-Spanish tasks of the Linguistic Code-Switching Evaluation benchmark (LinCE) and also competitive performance against monolingual models in English Twitter tasks. To facilitate further research, we make RoBERTuito publicly available at the HuggingFace model hub together with the dataset used to pre-train it.",
}
% HatEval paper
@inproceedings{hateval2019semeval,
title={SemEval-2019 Task 5: Multilingual Detection of Hate Speech Against Immigrants and Women in Twitter},
author={Basile, Valerio and Bosco, Cristina and Fersini, Elisabetta and Nozza, Debora and Patti, Viviana and Rangel, Francisco and Rosso, Paolo and Sanguinetti, Manuela},
booktitle={Proceedings of the 13th International Workshop on Semantic Evaluation (SemEval-2019)},
year={2019},
publisher= {Association for Computational Linguistics}
}
```
|
[
-0.3343890607357025,
-0.7247070074081421,
0.21083898842334747,
0.3773716986179352,
-0.24036948382854462,
0.2283726930618286,
-0.5006430745124817,
-0.6550437211990356,
0.4684261083602905,
0.37635406851768494,
-0.5927940607070923,
-0.8116950988769531,
-1.0226656198501587,
0.09015601128339767,
-0.4595378041267395,
1.188594102859497,
0.2698858082294464,
0.07424058020114899,
0.2794332802295685,
-0.15328843891620636,
0.17912745475769043,
-0.44609880447387695,
-0.6353421807289124,
-0.1560470163822174,
0.7426865100860596,
0.15788261592388153,
0.5372901558876038,
0.2349344789981842,
0.3865984380245209,
0.3285966217517853,
-0.122167207300663,
-0.05455454811453819,
-0.4464702904224396,
0.022576136514544487,
-0.189768448472023,
-0.18260353803634644,
-0.3484780192375183,
0.10714071989059448,
0.45670464634895325,
0.31485515832901,
0.09822460263967514,
0.15034864842891693,
0.07774868607521057,
0.4020805060863495,
-0.3929729759693146,
-0.021852534264326096,
-0.7271754145622253,
-0.18381015956401825,
-0.44943737983703613,
-0.014265910722315311,
-0.2983231544494629,
-0.48709845542907715,
0.10589227825403214,
-0.2265561819076538,
0.26269352436065674,
-0.09460805356502533,
1.1695929765701294,
0.2517111003398895,
-0.19319838285446167,
-0.4091606140136719,
-0.4588530361652374,
0.9985367059707642,
-0.8975211977958679,
0.4949576258659363,
0.30588147044181824,
0.027765613049268723,
0.032225657254457474,
-0.3047449290752411,
-0.6786779165267944,
-0.25544244050979614,
0.09658689051866531,
0.20994053781032562,
-0.6085115671157837,
-0.09681693464517593,
0.13218531012535095,
0.1501213014125824,
-0.5205798745155334,
0.2889004349708557,
-0.5367034673690796,
-0.2664567530155182,
0.6165056228637695,
-0.36505499482154846,
0.36983877420425415,
-0.35990944504737854,
-0.18414123356342316,
-0.19436430931091309,
-0.32265469431877136,
-0.12219056487083435,
0.590207576751709,
0.5258678793907166,
-0.2930181920528412,
0.2668454945087433,
0.026815053075551987,
0.45915743708610535,
-0.16687825322151184,
-0.08250965178012848,
0.8034318089485168,
-0.08493378013372421,
-0.16610047221183777,
-0.36810076236724854,
1.2647634744644165,
0.22708940505981445,
0.6150060296058655,
-0.1756967306137085,
-0.017419304698705673,
0.30102604627609253,
0.29152655601501465,
-0.7767441868782043,
-0.2186102569103241,
0.15735626220703125,
-0.2620936334133148,
-0.4531427025794983,
-0.2143259197473526,
-0.8891537189483643,
-0.2455781102180481,
-0.08091999590396881,
0.34938013553619385,
-0.48457956314086914,
-0.46846339106559753,
-0.07888584583997726,
-0.023947006091475487,
0.06505724787712097,
0.32878541946411133,
-0.6455706357955933,
0.13857127726078033,
0.32268407940864563,
0.7188286781311035,
-0.44318801164627075,
-0.47000783681869507,
-0.3313307762145996,
-0.32602792978286743,
-0.05512216314673424,
0.8126026391983032,
-0.4154208302497864,
-0.05331616848707199,
-0.0007953586173243821,
0.16331170499324799,
-0.137436181306839,
-0.49615970253944397,
0.792471170425415,
-0.3745183050632477,
0.3407609760761261,
-0.10499969869852066,
-0.22332918643951416,
-0.32450881600379944,
0.15393897891044617,
-0.4722018241882324,
1.3830876350402832,
0.20773690938949585,
-0.826511800289154,
0.24759350717067719,
-0.6384130120277405,
-0.5901247262954712,
-0.09866875410079956,
-0.045977454632520676,
-0.5500953793525696,
-0.19661416113376617,
0.20707497000694275,
0.6401696801185608,
-0.4127097725868225,
0.27853402495384216,
-0.3400922119617462,
0.17735889554023743,
0.10381575673818588,
-0.08735343813896179,
1.2032123804092407,
0.40075385570526123,
-0.6884876489639282,
0.2274257391691208,
-0.7554973363876343,
-0.17284905910491943,
0.3132648169994354,
-0.1478881537914276,
-0.47744375467300415,
-0.1453714668750763,
0.19739967584609985,
0.5242776870727539,
0.26581263542175293,
-0.8725991249084473,
-0.3782791197299957,
-0.47238054871559143,
0.2851051688194275,
0.8654190897941589,
-0.3061663806438446,
0.20859798789024353,
-0.25567421317100525,
0.7623060941696167,
-0.030705051496624947,
0.1591375470161438,
0.14134640991687775,
-0.593786358833313,
-0.702619194984436,
-0.3580408990383148,
0.0922028198838234,
0.6898723840713501,
-0.5605263113975525,
0.39848825335502625,
-0.06787309050559998,
-0.7150861620903015,
-0.3996206223964691,
0.05446650832891464,
0.536307692527771,
0.5412378311157227,
0.5561310052871704,
-0.01878725364804268,
-1.0640238523483276,
-0.880623459815979,
-0.41053885221481323,
-0.21074527502059937,
0.15752100944519043,
0.29860320687294006,
0.7707117199897766,
-0.3142584562301636,
0.6662896871566772,
-0.36064237356185913,
-0.23741759359836578,
-0.4427138864994049,
0.2355232834815979,
0.20418134331703186,
0.31098613142967224,
0.8620997667312622,
-0.7308192849159241,
-0.8068763017654419,
-0.006189581006765366,
-0.606308102607727,
-0.5009282827377319,
0.28746336698532104,
-0.15329515933990479,
0.3861403465270996,
0.4403180778026581,
0.02727462165057659,
0.26556363701820374,
0.8844161629676819,
-0.26511645317077637,
0.46766480803489685,
0.21923942863941193,
0.36405763030052185,
-1.3853152990341187,
-0.1215146854519844,
0.398105651140213,
-0.31503525376319885,
-0.7623831033706665,
-0.19997665286064148,
-0.1588796079158783,
0.158664733171463,
-0.7066212892532349,
0.5869914293289185,
-0.25345727801322937,
0.186404287815094,
-0.12261074036359787,
0.11925569176673889,
-0.40910235047340393,
0.7048026919364929,
0.1145530417561531,
0.7699481844902039,
0.5321571230888367,
-0.5532901883125305,
0.12245826423168182,
0.08589792251586914,
-0.34693434834480286,
0.47539085149765015,
-0.7860318422317505,
0.060517992824316025,
-0.08954600244760513,
-0.19566841423511505,
-1.0464743375778198,
0.035670842975378036,
0.3245033025741577,
-0.8255372643470764,
-0.00917088519781828,
-0.3294198215007782,
-0.4420996904373169,
-0.5886511206626892,
-0.3870583474636078,
0.16951441764831543,
0.4565476179122925,
-0.41999101638793945,
0.5822963118553162,
0.8584234118461609,
-0.18149174749851227,
-0.6226303577423096,
-0.7977890968322754,
-0.05549660697579384,
-0.34372279047966003,
-0.7629209160804749,
0.29486626386642456,
-0.14354906976222992,
-0.17308467626571655,
-0.14367830753326416,
0.2330632209777832,
-0.1178291067481041,
0.07146991044282913,
0.3163655698299408,
0.2648020088672638,
-0.04913808032870293,
-0.07809090614318848,
0.005516786593943834,
0.18124674260616302,
0.06582529842853546,
-0.12193292379379272,
0.8470052480697632,
-0.20171132683753967,
0.041131820529699326,
-0.26351112127304077,
0.19056472182273865,
0.5038466453552246,
-0.24888254702091217,
0.7584465742111206,
0.6973673105239868,
-0.4363611042499542,
-0.25712692737579346,
-0.6278058886528015,
0.09545855969190598,
-0.45082953572273254,
0.4535539150238037,
-0.2227897047996521,
-1.2230948209762573,
0.7478234171867371,
0.29730188846588135,
0.010431804694235325,
0.6882712841033936,
0.7997812032699585,
-0.06968910992145538,
0.8397696614265442,
0.5680785775184631,
-0.13554956018924713,
0.842815101146698,
-0.2807837724685669,
0.20865873992443085,
-0.5756896138191223,
-0.1963305026292801,
-0.9485788345336914,
-0.12052614241838455,
-0.6665467023849487,
-0.5141459703445435,
0.22778210043907166,
-0.27037984132766724,
-0.2618725299835205,
0.8208178281784058,
-0.4674540162086487,
0.41784295439720154,
0.474748432636261,
-0.05909569934010506,
0.027759145945310593,
0.16028310358524323,
-0.04450513422489166,
-0.4640512466430664,
-0.6017577648162842,
-0.37909403443336487,
1.0770814418792725,
0.37972694635391235,
0.6538496613502502,
0.16485096514225006,
0.8492342233657837,
0.4384914040565491,
0.35025519132614136,
-0.7840428948402405,
0.5396058559417725,
-0.4582960307598114,
-0.6212617754936218,
-0.32432252168655396,
-0.5645281076431274,
-1.0180470943450928,
0.393997460603714,
-0.11556726694107056,
-0.9201304316520691,
0.2383560985326767,
0.0788661390542984,
-0.21300587058067322,
0.2754826545715332,
-0.6359018683433533,
1.0641268491744995,
-0.24474480748176575,
-0.1616625040769577,
-0.1996586173772812,
-0.409315288066864,
0.21607352793216705,
0.03904712572693825,
0.5207020044326782,
-0.2904156744480133,
0.16031642258167267,
1.229231595993042,
-0.30298730731010437,
0.8672671914100647,
-0.09571301192045212,
-0.2186022698879242,
0.23049016296863556,
-0.05475404113531113,
0.4114665985107422,
-0.30606842041015625,
-0.09816528111696243,
0.331045925617218,
-0.16303740441799164,
-0.183160200715065,
-0.2523804008960724,
0.7013652324676514,
-0.7620015740394592,
-0.21773122251033783,
-0.5468598008155823,
-0.31482771039009094,
-0.04824654012918472,
0.3114853799343109,
0.4515005052089691,
0.20253099501132965,
-0.34908172488212585,
0.18191048502922058,
0.6886504292488098,
-0.4476722478866577,
0.30518659949302673,
0.6767837405204773,
-0.1409074366092682,
-0.4936150312423706,
0.8370275497436523,
0.21913546323776245,
0.2066207230091095,
0.2644786238670349,
0.30979910492897034,
-0.2479599118232727,
-0.4927636682987213,
-0.21740607917308807,
0.5676924586296082,
-0.48720523715019226,
-0.1310453563928604,
-1.1609059572219849,
-0.13303548097610474,
-0.7174444198608398,
-0.17229844629764557,
-0.5578733682632446,
-0.3421035706996918,
-0.30243128538131714,
-0.07807376235723495,
0.3699052929878235,
0.5653231143951416,
-0.2067808210849762,
0.35077202320098877,
-0.41674840450286865,
0.41528260707855225,
-0.0037833303213119507,
0.08004359900951385,
-0.056707948446273804,
-1.037107229232788,
-0.31690627336502075,
0.08226916939020157,
-0.13264983892440796,
-1.0281144380569458,
0.774357795715332,
-0.027671728283166885,
0.544525146484375,
0.14515197277069092,
0.039577919989824295,
0.5111923217773438,
-0.48172011971473694,
0.5961552858352661,
0.20711837708950043,
-0.8767910599708557,
0.9305227398872375,
-0.4793076515197754,
0.0831214040517807,
0.6334294676780701,
0.7917543053627014,
-0.6528992652893066,
-0.8646152019500732,
-0.8921709060668945,
-0.8653427362442017,
1.0793665647506714,
0.2469271868467331,
0.18144328892230988,
-0.2725452482700348,
-0.2743450999259949,
-0.10685493797063828,
0.17076066136360168,
-1.2187527418136597,
-0.4522343873977661,
-0.17817430198192596,
-0.28075742721557617,
0.02196836657822132,
-0.35736626386642456,
0.02402358315885067,
-0.4485905170440674,
1.0441207885742188,
0.20206478238105774,
0.26796457171440125,
-0.038380954414606094,
-0.45832380652427673,
0.035350456833839417,
0.34372228384017944,
0.7153331637382507,
0.5148301720619202,
-0.29233434796333313,
0.0436597540974617,
0.048405785113573074,
-0.5412058234214783,
-0.1308305859565735,
0.2805006504058838,
-0.20817184448242188,
0.19539177417755127,
0.2798619568347931,
0.8548962473869324,
0.13860899209976196,
-0.6279473900794983,
0.7092732191085815,
0.032126884907484055,
-0.3543294072151184,
-0.4397100806236267,
-0.09102923423051834,
-0.21925874054431915,
0.2612070143222809,
0.42657485604286194,
0.0432896614074707,
0.006407857406884432,
-0.537310779094696,
0.1821700483560562,
0.35438072681427,
-0.3262728750705719,
-0.4431343078613281,
0.6869669556617737,
0.2068178802728653,
-0.37643489241600037,
0.02925252355635166,
-0.47831884026527405,
-1.0743274688720703,
0.6330792307853699,
0.5831143856048584,
0.9583523869514465,
-0.46216726303100586,
0.58479243516922,
0.7898656725883484,
0.6055744290351868,
0.1387609839439392,
0.3914582431316376,
0.011448714882135391,
-1.0848923921585083,
-0.31952252984046936,
-0.8376808762550354,
-0.20791959762573242,
0.43207329511642456,
-0.4923447072505951,
0.24741758406162262,
-0.4279401898384094,
-0.03721652552485466,
0.25326603651046753,
-0.08435215055942535,
-0.5356724262237549,
0.2660801410675049,
0.13794277608394623,
0.6197311282157898,
-1.1455192565917969,
0.8486674427986145,
0.6708232760429382,
-0.5272296667098999,
-0.6883200407028198,
-0.19307412207126617,
0.04324641823768616,
-0.8246580362319946,
0.6801217198371887,
-0.004979770164936781,
-0.3454580307006836,
0.01293400302529335,
-0.5382750630378723,
-0.8769776225090027,
0.5137797594070435,
0.39928415417671204,
-0.42003053426742554,
0.11283926665782928,
0.1045822873711586,
0.8353673815727234,
-0.2767539322376251,
0.3248389661312103,
0.4473913013935089,
0.35994598269462585,
0.07125680148601532,
-0.9145941734313965,
-0.06222048029303551,
-0.39757707715034485,
-0.10782434046268463,
0.24546875059604645,
-0.6047419309616089,
1.0131103992462158,
0.05652174353599548,
-0.25122755765914917,
-0.34564951062202454,
0.6572383642196655,
-0.0017918908270075917,
0.15209107100963593,
0.5539822578430176,
0.6655553579330444,
0.7758137583732605,
-0.09684717655181885,
0.9692176580429077,
-0.18905195593833923,
0.41033515334129333,
1.294752597808838,
0.05564967170357704,
0.6935572624206543,
0.17634712159633636,
-0.41162049770355225,
0.6035688519477844,
0.34168538451194763,
0.17840957641601562,
0.3516805171966553,
-0.05674770846962929,
-0.2194778323173523,
-0.11400821059942245,
-0.17030179500579834,
-0.32184338569641113,
0.4319722056388855,
0.29931706190109253,
-0.5536481738090515,
-0.2592029571533203,
0.30098575353622437,
0.5408419370651245,
0.39895185828208923,
-0.14223936200141907,
0.5415827631950378,
-0.07245562970638275,
-0.5265394449234009,
0.8405768871307373,
0.07771117240190506,
1.1827445030212402,
-0.6141461730003357,
0.35654664039611816,
-0.0811363011598587,
0.051427047699689865,
-0.3557628095149994,
-0.7637424468994141,
0.4746929407119751,
0.5340918898582458,
-0.20062176883220673,
-0.503624677658081,
0.5576000213623047,
-0.5149206519126892,
-0.4225562512874603,
0.6825788617134094,
0.3053721487522125,
0.28485697507858276,
-0.18909591436386108,
-1.036147117614746,
0.23984284698963165,
0.3475915491580963,
-0.2593339681625366,
0.1761675626039505,
0.3739170730113983,
-0.1358022540807724,
0.4787558615207672,
0.6004586219787598,
0.2028551548719406,
0.3972233831882477,
0.48366934061050415,
0.8557480573654175,
-0.5462619066238403,
-0.44679296016693115,
-0.8313637971878052,
0.34114405512809753,
-0.21557557582855225,
-0.5075128674507141,
1.0308531522750854,
0.6725952625274658,
1.1752938032150269,
-0.04750385507941246,
0.872585654258728,
-0.43115758895874023,
1.0909866094589233,
-0.2061152160167694,
0.5454633831977844,
-0.6582178473472595,
-0.0899280458688736,
-0.7626331448554993,
-0.767911970615387,
-0.431052029132843,
0.908374547958374,
-0.7093508839607239,
0.03029375709593296,
0.7121679782867432,
1.033668875694275,
0.004877608735114336,
-0.24777117371559143,
0.2487076222896576,
0.5284078121185303,
0.2391183227300644,
0.46648189425468445,
0.6204396486282349,
-0.4990783929824829,
0.6166073083877563,
-0.4388258159160614,
-0.28947389125823975,
-0.12164336442947388,
-0.7116069793701172,
-1.0083420276641846,
-0.8083518147468567,
-0.4453381896018982,
-0.5982892513275146,
0.14534339308738708,
0.9847346544265747,
0.5186083912849426,
-1.0730493068695068,
-0.4135141372680664,
0.04873376339673996,
0.1949203759431839,
0.1522497832775116,
-0.255899578332901,
0.14551444351673126,
-0.22690030932426453,
-1.0554108619689941,
0.33810949325561523,
0.1232026219367981,
0.037688374519348145,
0.0924220010638237,
-0.12039617449045181,
-0.6802287697792053,
0.05584973096847534,
0.6652728915214539,
0.4580954313278198,
-0.6413419842720032,
-0.21290788054466248,
0.013369038701057434,
-0.23842699825763702,
0.1935703307390213,
0.4698641002178192,
-0.607786238193512,
0.15936391055583954,
0.48123830556869507,
0.5888232588768005,
0.6235567331314087,
-0.1306925266981125,
0.16264602541923523,
-0.6482056379318237,
0.3906261920928955,
0.4982338845729828,
0.27067747712135315,
0.3356335461139679,
-0.17678625881671906,
0.5973334312438965,
0.3439016044139862,
-0.48833757638931274,
-0.9248177409172058,
0.13875992596149445,
-1.133741855621338,
-0.13087581098079681,
1.277809739112854,
0.056522540748119354,
-0.43753013014793396,
-0.047534193843603134,
-0.1642599105834961,
0.339887410402298,
-0.7113056778907776,
0.5358372926712036,
0.6810055375099182,
0.08780287206172943,
-0.35663485527038574,
-0.5706153512001038,
0.5705206990242004,
0.4337675869464874,
-0.8580170273780823,
-0.06559451669454575,
0.47166210412979126,
0.3024735152721405,
0.2045661211013794,
0.9351322054862976,
-0.15328043699264526,
0.26891952753067017,
-0.3756633698940277,
0.3969978392124176,
0.204074427485466,
-0.35838547348976135,
-0.2712461054325104,
-0.08473130315542221,
-0.24580731987953186,
-0.09408917278051376
] |
timm/swin_small_patch4_window7_224.ms_in22k_ft_in1k
|
timm
| 2023-03-18T04:14:54Z | 8,217 | 0 |
timm
|
[
"timm",
"pytorch",
"safetensors",
"image-classification",
"dataset:imagenet-1k",
"dataset:imagenet-22k",
"arxiv:2103.14030",
"license:mit",
"region:us"
] |
image-classification
| 2023-03-18T04:14:38Z |
---
tags:
- image-classification
- timm
library_tag: timm
license: mit
datasets:
- imagenet-1k
- imagenet-22k
---
# Model card for swin_small_patch4_window7_224.ms_in22k_ft_in1k
A Swin Transformer image classification model. Pretrained on ImageNet-22k and fine-tuned on ImageNet-1k by paper authors.
## Model Details
- **Model Type:** Image classification / feature backbone
- **Model Stats:**
- Params (M): 49.6
- GMACs: 8.8
- Activations (M): 27.5
- Image size: 224 x 224
- **Papers:**
- Swin Transformer: Hierarchical Vision Transformer using Shifted Windows: https://arxiv.org/abs/2103.14030
- **Original:** https://github.com/microsoft/Swin-Transformer
- **Dataset:** ImageNet-1k
- **Pretrain Dataset:** ImageNet-22k
## 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('swin_small_patch4_window7_224.ms_in22k_ft_in1k', pretrained=True)
model = model.eval()
# get model specific transforms (normalization, resize)
data_config = timm.data.resolve_model_data_config(model)
transforms = timm.data.create_transform(**data_config, is_training=False)
output = model(transforms(img).unsqueeze(0)) # unsqueeze single image into batch of 1
top5_probabilities, top5_class_indices = torch.topk(output.softmax(dim=1) * 100, k=5)
```
### Feature Map Extraction
```python
from urllib.request import urlopen
from PIL import Image
import timm
img = Image.open(urlopen(
'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/beignets-task-guide.png'
))
model = timm.create_model(
'swin_small_patch4_window7_224.ms_in22k_ft_in1k',
pretrained=True,
features_only=True,
)
model = model.eval()
# get model specific transforms (normalization, resize)
data_config = timm.data.resolve_model_data_config(model)
transforms = timm.data.create_transform(**data_config, is_training=False)
output = model(transforms(img).unsqueeze(0)) # unsqueeze single image into batch of 1
for o in output:
# print shape of each feature map in output
# e.g. for swin_base_patch4_window7_224 (NHWC output)
# torch.Size([1, 56, 56, 128])
# torch.Size([1, 28, 28, 256])
# torch.Size([1, 14, 14, 512])
# torch.Size([1, 7, 7, 1024])
# e.g. for swinv2_cr_small_ns_224 (NCHW output)
# torch.Size([1, 96, 56, 56])
# torch.Size([1, 192, 28, 28])
# torch.Size([1, 384, 14, 14])
# torch.Size([1, 768, 7, 7])
print(o.shape)
```
### Image Embeddings
```python
from urllib.request import urlopen
from PIL import Image
import timm
img = Image.open(urlopen(
'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/beignets-task-guide.png'
))
model = timm.create_model(
'swin_small_patch4_window7_224.ms_in22k_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 (ie.e a (batch_size, H, W, num_features) tensor for swin / swinv2
# or (batch_size, num_features, H, W) for swinv2_cr
output = model.forward_head(output, pre_logits=True)
# output is (batch_size, num_features) tensor
```
## Model Comparison
Explore the dataset and runtime metrics of this model in timm [model results](https://github.com/huggingface/pytorch-image-models/tree/main/results).
## Citation
```bibtex
@inproceedings{liu2021Swin,
title={Swin Transformer: Hierarchical Vision Transformer using Shifted Windows},
author={Liu, Ze and Lin, Yutong and Cao, Yue and Hu, Han and Wei, Yixuan and Zhang, Zheng and Lin, Stephen and Guo, Baining},
booktitle={Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV)},
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.44809582829475403,
-0.4613543748855591,
-0.04773617163300514,
0.14127598702907562,
-0.3179987668991089,
-0.42126747965812683,
-0.23075351119041443,
-0.5151587128639221,
0.0630413070321083,
0.3623596131801605,
-0.6265064477920532,
-0.6583357453346252,
-0.6137180924415588,
-0.19371254742145538,
-0.10583286732435226,
1.048812747001648,
-0.1677011251449585,
-0.06578934192657471,
-0.18074722588062286,
-0.5543051958084106,
-0.17038308084011078,
-0.1722639799118042,
-0.5497544407844543,
-0.3738846182823181,
0.36477774381637573,
0.13484996557235718,
0.637307345867157,
0.5428499579429626,
0.7679796814918518,
0.5007699131965637,
-0.08036646246910095,
-0.01964767836034298,
-0.22363601624965668,
-0.2829601764678955,
0.3740919232368469,
-0.6529290080070496,
-0.5286920070648193,
0.26007047295570374,
0.6951224207878113,
0.3780800700187683,
0.08302812278270721,
0.44185885787010193,
0.13462790846824646,
0.47219228744506836,
-0.15795321762561798,
0.08925436437129974,
-0.5257009267807007,
0.16041816771030426,
-0.14480382204055786,
0.044792115688323975,
-0.19657430052757263,
-0.38385260105133057,
0.30112168192863464,
-0.5691859722137451,
0.6772826313972473,
0.10439203679561615,
1.4526190757751465,
0.08971516042947769,
-0.0553816556930542,
0.08151259273290634,
-0.26398906111717224,
0.9262334704399109,
-1.0005826950073242,
0.09010156244039536,
0.09963562339544296,
0.1595117598772049,
-0.06335313618183136,
-0.8630777597427368,
-0.5409574508666992,
-0.15989474952220917,
-0.30113399028778076,
-0.02868710830807686,
-0.23707614839076996,
0.08153664320707321,
0.40835538506507874,
0.2928943932056427,
-0.4810219407081604,
0.16451191902160645,
-0.5474761724472046,
-0.2724510133266449,
0.6562758088111877,
0.08081969618797302,
0.42048144340515137,
-0.28127947449684143,
-0.6274979114532471,
-0.5023548007011414,
-0.3500708341598511,
0.29830652475357056,
0.16425465047359467,
0.2155677229166031,
-0.6764938831329346,
0.513461172580719,
0.3328547775745392,
0.5406885743141174,
0.06576795876026154,
-0.5152386426925659,
0.7206273674964905,
-0.18093882501125336,
-0.42483600974082947,
-0.2723795771598816,
1.005083680152893,
0.42992275953292847,
0.0960620790719986,
0.3044150471687317,
-0.2705188989639282,
-0.2931246757507324,
-0.10600443184375763,
-1.1161062717437744,
-0.28560033440589905,
0.2834131717681885,
-0.6759850382804871,
-0.5189200043678284,
0.24694453179836273,
-0.6459431052207947,
-0.07652004808187485,
-0.09900626540184021,
0.6056364178657532,
-0.5009201169013977,
-0.4441125988960266,
-0.17799051105976105,
-0.3834332525730133,
0.475342720746994,
0.30941271781921387,
-0.5566547513008118,
0.03860795497894287,
0.24474231898784637,
1.0786809921264648,
-0.09105805307626724,
-0.6383935213088989,
-0.08174315094947815,
-0.27618563175201416,
-0.29025202989578247,
0.4069269299507141,
-0.0139792300760746,
-0.13963066041469574,
-0.1976190209388733,
0.39428359270095825,
-0.21794173121452332,
-0.6728494167327881,
0.1279568374156952,
-0.13409681618213654,
0.2601752281188965,
0.016241153702139854,
-0.13430722057819366,
-0.3369864523410797,
0.24232862889766693,
-0.3763206899166107,
1.391535997390747,
0.5109028220176697,
-0.9981836676597595,
0.31429052352905273,
-0.4972893297672272,
-0.27774566411972046,
-0.15482200682163239,
-0.037555526942014694,
-1.021520733833313,
-0.00006376131932483986,
0.3109579086303711,
0.6244103908538818,
-0.1871284395456314,
0.07042322307825089,
-0.5190662741661072,
-0.29197657108306885,
0.2814925014972687,
-0.09336672723293304,
1.0386512279510498,
0.012004618532955647,
-0.6371941566467285,
0.4073150157928467,
-0.5655978322029114,
0.08399178832769394,
0.551803469657898,
-0.1719219982624054,
-0.2195088267326355,
-0.6488712430000305,
0.26622501015663147,
0.4065301716327667,
0.26459285616874695,
-0.6441528797149658,
0.26797908544540405,
-0.2619742155075073,
0.4335858225822449,
0.7494713664054871,
-0.10917346924543381,
0.37838590145111084,
-0.390561044216156,
0.2784026861190796,
0.5080738663673401,
0.4372846782207489,
-0.03818630054593086,
-0.6599189043045044,
-0.8785093426704407,
-0.4458082616329193,
0.23227444291114807,
0.41778799891471863,
-0.6199868321418762,
0.6163973808288574,
-0.23123149573802948,
-0.7652248740196228,
-0.5708304643630981,
0.06719724833965302,
0.3359968960285187,
0.6201271414756775,
0.389564573764801,
-0.2850399911403656,
-0.607912540435791,
-0.9917705059051514,
0.135011225938797,
-0.019870413467288017,
-0.07241304218769073,
0.3527587354183197,
0.8433176279067993,
-0.3127278685569763,
0.7380948066711426,
-0.4169585406780243,
-0.3567522466182709,
-0.33001598715782166,
0.21552705764770508,
0.43100619316101074,
0.7384992241859436,
0.8596370220184326,
-0.5849953889846802,
-0.422710120677948,
-0.07311376184225082,
-0.907097339630127,
0.05411670729517937,
-0.19808271527290344,
-0.28670239448547363,
0.401327520608902,
0.06206873804330826,
-0.6472241878509521,
0.7782948017120361,
0.3217398226261139,
-0.33093011379241943,
0.6029477119445801,
-0.32565799355506897,
0.2756209373474121,
-1.0520119667053223,
0.09150528162717819,
0.41782626509666443,
-0.07234852015972137,
-0.4687053859233856,
-0.015372860245406628,
0.15357419848442078,
-0.06164108216762543,
-0.517403244972229,
0.5999881029129028,
-0.5668666958808899,
-0.2707039415836334,
-0.14449487626552582,
-0.0015055873664095998,
0.04891080781817436,
0.7742128372192383,
0.000572362681850791,
0.3749087154865265,
0.856065571308136,
-0.4162335991859436,
0.30985069274902344,
0.40897470712661743,
-0.22879716753959656,
0.4049620032310486,
-0.7360771298408508,
0.0032405382953584194,
0.013554895296692848,
0.26174047589302063,
-1.0126389265060425,
-0.061143551021814346,
0.13117435574531555,
-0.5521109700202942,
0.5652996897697449,
-0.5405436158180237,
-0.33415478467941284,
-0.6492161154747009,
-0.6529589891433716,
0.3612433671951294,
0.8553081154823303,
-0.8076761960983276,
0.5012112259864807,
0.2241726815700531,
0.15774129331111908,
-0.6150978207588196,
-0.932124137878418,
-0.37309530377388,
-0.30672702193260193,
-0.8630264401435852,
0.4631417691707611,
0.16336913406848907,
0.02794305793941021,
0.12531009316444397,
-0.11284967511892319,
0.05108240246772766,
-0.2789164185523987,
0.5891696214675903,
0.768130898475647,
-0.4094521999359131,
-0.30860215425491333,
-0.22142553329467773,
-0.043639786541461945,
0.017166728153824806,
-0.06259225308895111,
0.4480510950088501,
-0.2953430116176605,
-0.1772354245185852,
-0.637187123298645,
-0.11225404590368271,
0.5958889722824097,
-0.06773131340742111,
0.78288334608078,
1.2633920907974243,
-0.4282439351081848,
-0.08132122457027435,
-0.44193315505981445,
-0.3311695456504822,
-0.5237947702407837,
0.4446161985397339,
-0.3410257399082184,
-0.45939332246780396,
0.8373390436172485,
0.052491262555122375,
0.2883434295654297,
0.8215086460113525,
0.29061394929885864,
-0.2918570339679718,
0.9395058155059814,
0.5557511448860168,
0.06647180765867233,
0.773465096950531,
-0.9691592454910278,
-0.10760108381509781,
-0.869748592376709,
-0.44885867834091187,
-0.3641452193260193,
-0.6359086036682129,
-0.6019530892372131,
-0.5106236338615417,
0.48144227266311646,
0.18657159805297852,
-0.35492411255836487,
0.5104618668556213,
-0.8155572414398193,
-0.06989652663469315,
0.6753035187721252,
0.44309040904045105,
-0.36559444665908813,
0.28882360458374023,
-0.29938745498657227,
-0.20751246809959412,
-0.6974223852157593,
-0.10823285579681396,
0.8843889832496643,
0.5683334469795227,
0.798673152923584,
-0.22388452291488647,
0.6785931587219238,
-0.1390620917081833,
0.2840757966041565,
-0.5157329440116882,
0.6828887462615967,
-0.021425580605864525,
-0.3513091802597046,
-0.2614434063434601,
-0.3907182216644287,
-1.044630527496338,
0.2990857660770416,
-0.41009005904197693,
-0.6786454916000366,
0.20431514084339142,
0.10596632212400436,
-0.027411751449108124,
0.8390681147575378,
-0.8179082274436951,
0.9086481928825378,
-0.23627659678459167,
-0.3397275507450104,
-0.014540422707796097,
-0.7746517658233643,
0.248123437166214,
0.3433024287223816,
-0.1258651316165924,
-0.15940339863300323,
0.15953297913074493,
1.130123496055603,
-0.6875211000442505,
0.9837497472763062,
-0.6377571225166321,
0.33488550782203674,
0.45756855607032776,
-0.2369789034128189,
0.4550304412841797,
-0.22318539023399353,
0.086922287940979,
0.43759751319885254,
0.09766518324613571,
-0.4683758020401001,
-0.587781548500061,
0.6146338582038879,
-1.0725243091583252,
-0.3692164123058319,
-0.41867795586586,
-0.48501428961753845,
0.2169675976037979,
0.12242896854877472,
0.5589878559112549,
0.6795167326927185,
0.1748497635126114,
0.20978420972824097,
0.5735682249069214,
-0.40566420555114746,
0.5526361465454102,
0.011824698187410831,
-0.25219234824180603,
-0.4200900197029114,
0.7974815964698792,
0.13798686861991882,
0.12132774293422699,
0.09995397925376892,
0.3249301314353943,
-0.2892385423183441,
-0.5863457918167114,
-0.4071604609489441,
0.5026364922523499,
-0.675897479057312,
-0.5144689083099365,
-0.4830957353115082,
-0.5765061378479004,
-0.5251381993293762,
-0.22869591414928436,
-0.40889623761177063,
-0.31923404335975647,
-0.3107410967350006,
0.18531419336795807,
0.739507794380188,
0.662247359752655,
-0.0631835088133812,
0.36475661396980286,
-0.5913814902305603,
0.17291559278964996,
0.11569027602672577,
0.3301956057548523,
-0.07794256508350372,
-0.9845919609069824,
-0.2474590539932251,
-0.007301121484488249,
-0.32714617252349854,
-0.646499514579773,
0.5373178124427795,
0.12260092794895172,
0.6204744577407837,
0.3203614354133606,
-0.11822942644357681,
0.9314625859260559,
-0.06341829150915146,
0.7621380090713501,
0.45953133702278137,
-0.6533117890357971,
0.779389500617981,
-0.048212651163339615,
0.2522491216659546,
0.05366501212120056,
0.199514240026474,
-0.2206721156835556,
-0.20480740070343018,
-1.007506012916565,
-0.905448853969574,
0.9015247225761414,
0.10700174421072006,
-0.09409844875335693,
0.4625976085662842,
0.5093005299568176,
0.12071184813976288,
-0.06923608481884003,
-0.7557873129844666,
-0.4908580482006073,
-0.41369861364364624,
-0.2774510383605957,
0.03262695297598839,
-0.019851654767990112,
-0.18152081966400146,
-0.8518550395965576,
0.7225301861763,
-0.1056465357542038,
0.8069427013397217,
0.3396277129650116,
-0.25994032621383667,
-0.11093173176050186,
-0.30052387714385986,
0.48016950488090515,
0.3465045094490051,
-0.3326481580734253,
-0.0008048586314544082,
0.29148316383361816,
-0.7060372829437256,
-0.03544456139206886,
0.07054506987333298,
-0.041869089007377625,
0.10111928731203079,
0.6113934516906738,
1.0854308605194092,
0.17390519380569458,
0.006473415531218052,
0.7044829726219177,
0.013532465323805809,
-0.536899209022522,
-0.21692396700382233,
0.14655010402202606,
-0.1026766374707222,
0.3718360662460327,
0.4060841500759125,
0.5042881965637207,
-0.2556191086769104,
-0.2493157982826233,
0.1741267591714859,
0.5549012422561646,
-0.2511999011039734,
-0.35436394810676575,
0.6313629150390625,
-0.09716874361038208,
-0.06442557275295258,
0.9353813529014587,
0.18376143276691437,
-0.49145933985710144,
1.0446128845214844,
0.6070751547813416,
0.8197470307350159,
0.0223099198192358,
0.07832884788513184,
0.8637976050376892,
0.29778027534484863,
0.07862019538879395,
0.12280379980802536,
0.12733399868011475,
-0.755981981754303,
0.20527687668800354,
-0.5266746878623962,
-0.002628611633554101,
0.32405102252960205,
-0.6742684245109558,
0.40409544110298157,
-0.5744548439979553,
-0.3851626217365265,
0.10236307233572006,
0.3516925573348999,
-1.0265858173370361,
0.1598154604434967,
0.016170920804142952,
0.9777972102165222,
-0.9100306034088135,
0.9399781823158264,
0.7537359595298767,
-0.5306602716445923,
-0.980190634727478,
-0.17285627126693726,
-0.013730834238231182,
-1.0245176553726196,
0.41893064975738525,
0.4432133734226227,
0.04347428306937218,
-0.12011771649122238,
-0.8454962968826294,
-0.6049878001213074,
1.595679521560669,
0.31873852014541626,
-0.21352872252464294,
0.124196358025074,
-0.0733235776424408,
0.32289373874664307,
-0.4647000730037689,
0.51979660987854,
0.36759358644485474,
0.49313199520111084,
0.27489954233169556,
-0.6636014580726624,
0.2261923849582672,
-0.3908218741416931,
0.29835245013237,
0.12593549489974976,
-0.6287022829055786,
0.8992931246757507,
-0.6603896617889404,
-0.1109226644039154,
0.0018398513784632087,
0.7063260078430176,
0.37298017740249634,
0.09943488240242004,
0.6474015116691589,
0.6540004014968872,
0.5179986953735352,
-0.3617520332336426,
0.8610140681266785,
0.04941952973604202,
0.6108189225196838,
0.5810034275054932,
0.24475297331809998,
0.6638386249542236,
0.47170376777648926,
-0.3548285663127899,
0.5573700070381165,
0.978058934211731,
-0.49370822310447693,
0.3388829827308655,
0.06765415519475937,
0.11895628273487091,
0.03704652562737465,
0.2962018847465515,
-0.5147157907485962,
0.3066207766532898,
0.21224798262119293,
-0.48132434487342834,
-0.11502320319414139,
0.21606853604316711,
-0.08356580883264542,
-0.4554765820503235,
-0.22256818413734436,
0.4889364540576935,
-0.054878417402505875,
-0.42284223437309265,
0.786424458026886,
0.060130879282951355,
1.175765037536621,
-0.6207485795021057,
0.04467293620109558,
-0.27385494112968445,
0.2286611795425415,
-0.42685332894325256,
-0.9346727132797241,
0.20119431614875793,
-0.29641202092170715,
0.029586918652057648,
0.02665906772017479,
0.9080809950828552,
-0.436204195022583,
-0.4583883285522461,
0.32127049565315247,
0.25614839792251587,
0.40430906414985657,
0.1950138807296753,
-1.3162789344787598,
0.14990738034248352,
0.12713022530078888,
-0.6891775727272034,
0.4413924515247345,
0.36836278438568115,
0.03604535013437271,
0.6600115895271301,
0.6027975678443909,
-0.056397028267383575,
0.22377441823482513,
-0.003741905326023698,
0.82899409532547,
-0.6340845227241516,
-0.32845163345336914,
-0.6961597204208374,
0.7442206740379333,
-0.2143288552761078,
-0.6380906105041504,
0.7216079235076904,
0.5035222768783569,
0.7387464046478271,
-0.1635255664587021,
0.5844685435295105,
-0.36791688203811646,
-0.020142698660492897,
-0.2659924328327179,
0.7159866094589233,
-0.658425509929657,
-0.03860928490757942,
-0.28825774788856506,
-0.6772383451461792,
-0.2597337067127228,
0.7775905728340149,
-0.23221497237682343,
0.3673805594444275,
0.5699015855789185,
1.074693202972412,
-0.24709728360176086,
-0.2751798927783966,
0.2531042993068695,
0.17212527990341187,
0.03775458037853241,
0.37955623865127563,
0.4341470003128052,
-0.8591979742050171,
0.41407275199890137,
-0.7118118405342102,
-0.3004179894924164,
-0.23308999836444855,
-0.6149250864982605,
-1.0717190504074097,
-0.9372497200965881,
-0.641296923160553,
-0.6998787522315979,
-0.41287747025489807,
0.8323618173599243,
1.129703402519226,
-0.776871919631958,
-0.08110737800598145,
0.1559838056564331,
0.18992209434509277,
-0.4010576009750366,
-0.2529958188533783,
0.6147494316101074,
-0.14502200484275818,
-0.6564621925354004,
-0.2730860114097595,
0.041517000645399094,
0.5122934579849243,
-0.118841253221035,
-0.3391265571117401,
-0.12551051378250122,
-0.22601419687271118,
0.3406585454940796,
0.25916561484336853,
-0.7271384000778198,
-0.23559553921222687,
-0.21365785598754883,
-0.28322505950927734,
0.4808090031147003,
0.5962487459182739,
-0.5070083737373352,
0.126068115234375,
0.5441254377365112,
0.17411552369594574,
0.9495089650154114,
-0.31878235936164856,
0.052738651633262634,
-0.8930106163024902,
0.5915166139602661,
-0.12639093399047852,
0.5326041579246521,
0.36263373494148254,
-0.3368300497531891,
0.49587592482566833,
0.47553858160972595,
-0.4722602069377899,
-0.8965944051742554,
-0.23738887906074524,
-1.1734906435012817,
-0.2078838050365448,
0.9249876141548157,
-0.36104658246040344,
-0.6340749859809875,
0.3024517297744751,
-0.14902043342590332,
0.5186020731925964,
-0.09270162880420685,
0.33145207166671753,
0.12264200299978256,
-0.15462858974933624,
-0.6364527940750122,
-0.45715612173080444,
0.4261244833469391,
0.0444507859647274,
-0.6313934326171875,
-0.337780624628067,
0.00347826792858541,
0.787765383720398,
0.24687878787517548,
0.5122697949409485,
-0.2887122631072998,
0.1026184931397438,
0.26028668880462646,
0.5913059711456299,
-0.262658953666687,
-0.08073481917381287,
-0.3976765275001526,
-0.06596899032592773,
-0.12340287864208221,
-0.5763553977012634
] |
lidiya/bart-large-xsum-samsum
|
lidiya
| 2023-03-16T22:44:01Z | 8,213 | 35 |
transformers
|
[
"transformers",
"pytorch",
"safetensors",
"bart",
"text2text-generation",
"seq2seq",
"summarization",
"en",
"dataset:samsum",
"license:apache-2.0",
"model-index",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] |
summarization
| 2022-03-02T23:29:05Z |
---
language: en
tags:
- bart
- seq2seq
- summarization
license: apache-2.0
datasets:
- samsum
widget:
- text: |
Hannah: Hey, do you have Betty's number?
Amanda: Lemme check
Amanda: Sorry, can't find it.
Amanda: Ask Larry
Amanda: He called her last time we were at the park together
Hannah: I don't know him well
Amanda: Don't be shy, he's very nice
Hannah: If you say so..
Hannah: I'd rather you texted him
Amanda: Just text him 🙂
Hannah: Urgh.. Alright
Hannah: Bye
Amanda: Bye bye
model-index:
- name: bart-large-xsum-samsum
results:
- task:
name: Abstractive Text Summarization
type: abstractive-text-summarization
dataset:
name: "SAMSum Corpus: A Human-annotated Dialogue Dataset for Abstractive Summarization"
type: samsum
metrics:
- name: Validation ROUGE-1
type: rouge-1
value: 54.3921
- name: Validation ROUGE-2
type: rouge-2
value: 29.8078
- name: Validation ROUGE-L
type: rouge-l
value: 45.1543
- name: Test ROUGE-1
type: rouge-1
value: 53.3059
- name: Test ROUGE-2
type: rouge-2
value: 28.355
- name: Test ROUGE-L
type: rouge-l
value: 44.0953
---
## `bart-large-xsum-samsum`
This model was obtained by fine-tuning `facebook/bart-large-xsum` on [Samsum](https://huggingface.co/datasets/samsum) dataset.
## Usage
```python
from transformers import pipeline
summarizer = pipeline("summarization", model="lidiya/bart-large-xsum-samsum")
conversation = '''Hannah: Hey, do you have Betty's number?
Amanda: Lemme check
Amanda: Sorry, can't find it.
Amanda: Ask Larry
Amanda: He called her last time we were at the park together
Hannah: I don't know him well
Amanda: Don't be shy, he's very nice
Hannah: If you say so..
Hannah: I'd rather you texted him
Amanda: Just text him 🙂
Hannah: Urgh.. Alright
Hannah: Bye
Amanda: Bye bye
'''
summarizer(conversation)
```
## Training procedure
- Colab notebook: https://colab.research.google.com/drive/1dul0Sg-TTMy9xZCJzmDRajXbyzDwtYx6?usp=sharing
## Results
| key | value |
| --- | ----- |
| eval_rouge1 | 54.3921 |
| eval_rouge2 | 29.8078 |
| eval_rougeL | 45.1543 |
| eval_rougeLsum | 49.942 |
| test_rouge1 | 53.3059 |
| test_rouge2 | 28.355 |
| test_rougeL | 44.0953 |
| test_rougeLsum | 48.9246 |
|
[
-0.3512638807296753,
-0.8027822971343994,
0.41703397035598755,
0.2523740530014038,
-0.3250857889652252,
0.03897644951939583,
-0.2812359929084778,
-0.08766040205955505,
0.793897271156311,
0.45249059796333313,
-0.7197859883308411,
-0.591908872127533,
-0.6989781260490417,
0.10267440229654312,
-0.6167619228363037,
1.25472092628479,
0.1958642154932022,
0.031253326684236526,
0.05569622293114662,
-0.09974148869514465,
-0.32784304022789,
-0.5324512720108032,
-0.879225492477417,
-0.10926315188407898,
0.531189501285553,
0.5976550579071045,
0.843794584274292,
0.44503021240234375,
0.5982427000999451,
0.4530205726623535,
-0.38698551058769226,
0.10246426612138748,
-0.7749367952346802,
-0.009758290834724903,
-0.0057543315924704075,
-0.6221241354942322,
-0.8815947771072388,
-0.06544284522533417,
0.8395475149154663,
0.9227569699287415,
0.18584467470645905,
0.5962631702423096,
-0.0992896780371666,
0.5655035972595215,
-0.3472413718700409,
0.6191160082817078,
-0.43921521306037903,
-0.27451667189598083,
-0.01404163520783186,
-0.05699378252029419,
-0.4562901258468628,
-0.3923371136188507,
0.06541566550731659,
-0.3817281723022461,
0.2985254228115082,
0.12586143612861633,
1.4709326028823853,
0.21686699986457825,
-0.4504624307155609,
-0.1628248542547226,
-0.2652113735675812,
0.9042591452598572,
-0.753208577632904,
0.017238572239875793,
0.6581393480300903,
0.18694153428077698,
-0.08024995028972626,
-0.8777296543121338,
-0.5509173274040222,
0.017939453944563866,
-0.37778422236442566,
0.15887576341629028,
-0.2792617380619049,
-0.1167265921831131,
0.45409321784973145,
0.47853559255599976,
-0.4215714633464813,
-0.11155938357114792,
-0.8192732930183411,
-0.051175765693187714,
0.9234170913696289,
0.44096410274505615,
-0.031991880387067795,
-0.28319719433784485,
-0.05443767085671425,
-0.4314325153827667,
-0.2275056689977646,
0.2737855017185211,
0.26669642329216003,
0.6874454617500305,
-0.5744606256484985,
0.8357147574424744,
-0.47061237692832947,
0.580664336681366,
0.22807803750038147,
-0.1167876124382019,
1.0082037448883057,
-0.2827756106853485,
-0.31350237131118774,
-0.08442649990320206,
1.015750765800476,
0.5302015542984009,
0.45977863669395447,
0.34407150745391846,
0.08205476403236389,
-0.028075657784938812,
0.04143765568733215,
-1.139156699180603,
-0.4200465679168701,
0.3620896637439728,
-0.6306853890419006,
-0.33707791566848755,
0.3063395917415619,
-0.6042012572288513,
-0.060852184891700745,
-0.27757230401039124,
0.28400805592536926,
-0.3139725923538208,
-0.3125774562358856,
-0.0027434644289314747,
-0.2939678728580475,
-0.009608066640794277,
0.09396883845329285,
-1.0273683071136475,
0.3405252695083618,
0.4170891046524048,
1.0226426124572754,
0.39445632696151733,
-0.20978562533855438,
-0.5498172044754028,
-0.18828824162483215,
-0.4896029233932495,
0.443773090839386,
-0.22238858044147491,
-0.47393471002578735,
-0.27454325556755066,
0.3164834976196289,
-0.04003366455435753,
-0.42185136675834656,
0.6676002740859985,
-0.3592522144317627,
0.44644755125045776,
-0.43135371804237366,
-0.47474709153175354,
-0.3722788095474243,
0.20829389989376068,
-0.4788544774055481,
0.9173275828361511,
0.5245939493179321,
-0.8506591320037842,
0.46930205821990967,
-0.7051509618759155,
-0.37127360701560974,
0.09678038954734802,
-0.01995287463068962,
-0.828530490398407,
-0.019366826862096786,
0.3544065058231354,
0.8553649187088013,
-0.0662633404135704,
0.3014318346977234,
-0.5722989439964294,
-0.3922526240348816,
0.3178826868534088,
-0.1278243213891983,
1.2885981798171997,
0.16013425588607788,
-0.009506303817033768,
0.31011518836021423,
-0.9180209040641785,
0.16802850365638733,
0.279946506023407,
-0.2259201854467392,
-0.3246064782142639,
-0.4342121183872223,
-0.03530211001634598,
0.09548331052064896,
0.3114379346370697,
-0.4750691056251526,
0.34670859575271606,
-0.31344738602638245,
0.36408132314682007,
0.6568661332130432,
-0.04260459542274475,
0.37709254026412964,
-0.5790154337882996,
0.38622310757637024,
-0.1447487324476242,
-0.05676909536123276,
-0.35922935605049133,
-0.5979999899864197,
-0.8423765301704407,
-0.7301798462867737,
0.34881800413131714,
0.4512970745563507,
-0.447623074054718,
0.7952813506126404,
-0.643031120300293,
-0.5860477685928345,
-0.553746223449707,
0.014502107165753841,
0.22380322217941284,
0.5937753915786743,
0.3492191433906555,
-0.23701512813568115,
-0.7193300127983093,
-0.9426327347755432,
0.1357637643814087,
-0.36020463705062866,
-0.23635683953762054,
0.3671489953994751,
0.6583364009857178,
-0.3994224965572357,
1.0654205083847046,
-0.9706897139549255,
-0.2608703374862671,
-0.40741246938705444,
0.05456559360027313,
0.7285869121551514,
0.37775832414627075,
0.6783116459846497,
-0.725766658782959,
-0.9048439264297485,
-0.14841614663600922,
-0.8239451050758362,
-0.16910257935523987,
-0.2358577847480774,
-0.20604641735553741,
0.19764937460422516,
0.33860570192337036,
-0.8988995552062988,
0.6386108994483948,
0.5588254928588867,
-0.6352657079696655,
0.5151359438896179,
-0.15008801221847534,
0.1079770028591156,
-1.2719480991363525,
0.16885711252689362,
-0.09310628473758698,
-0.4970409572124481,
-0.43690916895866394,
-0.10046388953924179,
-0.05293053388595581,
0.07613750547170639,
-0.18899329006671906,
0.6487812399864197,
-0.4989143908023834,
-0.012086326256394386,
-0.05267426744103432,
0.03447391465306282,
-0.11321540176868439,
0.6247088313102722,
-0.06191233545541763,
0.6098871827125549,
0.7930513620376587,
-0.5085912346839905,
0.4875001013278961,
0.974940299987793,
-0.22597754001617432,
0.4912637174129486,
-0.8255537748336792,
-0.215528205037117,
-0.08509017527103424,
0.5347155332565308,
-1.3600573539733887,
-0.5187992453575134,
0.3110347092151642,
-0.7885554432868958,
0.13872592151165009,
-0.08839921653270721,
-0.41695576906204224,
-0.6927870512008667,
-0.2996133863925934,
0.2599804401397705,
0.6144697666168213,
-0.4416898190975189,
0.43698248267173767,
0.3649519979953766,
-0.526864767074585,
-0.3837011456489563,
-0.6768502593040466,
0.12703008949756622,
-0.39905887842178345,
-0.870943546295166,
0.22225795686244965,
-0.0795794352889061,
-0.16849753260612488,
-0.21627306938171387,
0.11085370182991028,
-0.24760141968727112,
-0.17371603846549988,
0.44626346230506897,
0.45237860083580017,
0.010872196406126022,
-0.10867976397275925,
0.13140176236629486,
-0.2875944972038269,
0.3150441348552704,
0.47173216938972473,
1.005630373954773,
-0.35610124468803406,
0.12741653621196747,
-0.6870219707489014,
0.13350330293178558,
0.5756037831306458,
0.1706480234861374,
0.9505072832107544,
0.6422086358070374,
-0.037601012736558914,
0.2634199857711792,
-0.19568771123886108,
-0.34024596214294434,
-0.5354374051094055,
0.5198051333427429,
-0.5039673447608948,
-0.7112863063812256,
0.7911931276321411,
0.14378909766674042,
0.048610325902700424,
0.44749122858047485,
0.8177669048309326,
-0.09727741032838821,
1.1536256074905396,
0.4164751470088959,
-0.1807890087366104,
0.5623072385787964,
-0.7556915879249573,
0.3297821879386902,
-0.6806678175926208,
-0.14727148413658142,
-0.37658724188804626,
-0.3816726505756378,
-0.7119618654251099,
-0.010849468410015106,
0.3656722903251648,
-0.17381422221660614,
-0.7207021117210388,
0.7867097854614258,
-0.2538032829761505,
0.27283403277397156,
0.8768367171287537,
0.4142630100250244,
0.1059134230017662,
-0.17731639742851257,
0.2948373854160309,
-0.05280090868473053,
-0.5388063192367554,
-0.1708841621875763,
1.2277679443359375,
0.4195486605167389,
0.6573166251182556,
-0.03918022662401199,
0.8507436513900757,
0.09278475493192673,
0.2122746855020523,
-0.7568483948707581,
0.7293282747268677,
0.10644222050905228,
-0.9554718136787415,
-0.5300469398498535,
-0.8273134827613831,
-1.3140722513198853,
0.20953504741191864,
-0.22269509732723236,
-1.0275169610977173,
0.040136802941560745,
0.037134408950805664,
-0.4347582161426544,
0.028764957562088966,
-0.7932901978492737,
0.8590806126594543,
-0.024509312584996223,
-0.105693519115448,
-0.1729791909456253,
-1.0449824333190918,
0.43614041805267334,
-0.0700015053153038,
0.07245422154664993,
-0.0893203541636467,
0.24189993739128113,
0.7316208481788635,
-0.6353842616081238,
1.0328178405761719,
0.1026805192232132,
0.07670995593070984,
0.33476173877716064,
-0.17612983286380768,
0.4264642298221588,
-0.011203876696527004,
0.11149231344461441,
0.16271576285362244,
0.04091000556945801,
-0.6841451525688171,
-0.35533997416496277,
0.45656198263168335,
-0.8206409811973572,
-0.261279433965683,
-0.5007525682449341,
-0.845414400100708,
-0.03189351409673691,
0.4867701530456543,
0.5558154582977295,
0.3213745355606079,
0.16467216610908508,
0.47556495666503906,
0.2937209904193878,
-0.24886593222618103,
0.523367702960968,
0.20697274804115295,
-0.5677847862243652,
-0.5286322236061096,
0.8237330913543701,
0.0626147985458374,
0.40664342045783997,
0.2312450259923935,
0.1842908412218094,
-0.3986697793006897,
0.13245655596256256,
-0.09339660406112671,
0.6567936539649963,
-0.39366453886032104,
-0.35605692863464355,
-0.6797203421592712,
-0.369755357503891,
-0.6665852665901184,
-0.1330602914094925,
-0.41364726424217224,
-0.6473281383514404,
-0.4199710190296173,
-0.30072852969169617,
0.3787100911140442,
0.41169050335884094,
-0.08580591529607773,
0.8602263927459717,
-0.7673646807670593,
0.46523210406303406,
0.09786896407604218,
0.16493242979049683,
-0.08791429549455643,
-0.9061208963394165,
-0.3494735658168793,
0.30507004261016846,
-0.5613911747932434,
-0.6861909627914429,
0.8447418808937073,
0.10686835646629333,
0.23263250291347504,
0.6353554129600525,
0.21580436825752258,
0.8287271857261658,
-0.1606188416481018,
0.7182304859161377,
0.39110657572746277,
-0.9103607535362244,
0.3205229938030243,
-0.5817601084709167,
0.17621348798274994,
0.4001373052597046,
0.3882497549057007,
-0.48605579137802124,
-0.4265705645084381,
-1.3081148862838745,
-1.0981286764144897,
0.8467217683792114,
0.5069208741188049,
0.3384476602077484,
0.10470746457576752,
-0.04672480374574661,
-0.2517203092575073,
0.5446374416351318,
-0.9902617931365967,
-0.6233934164047241,
-0.05724276974797249,
-0.24898548424243927,
-0.13770771026611328,
-0.24897806346416473,
-0.25989022850990295,
-0.5015520453453064,
0.8974680304527283,
-0.05151171609759331,
0.42087799310684204,
-0.1441684514284134,
0.26617488265037537,
0.0023469331208616495,
-0.07335719466209412,
0.4980446696281433,
0.6077041029930115,
-0.6725984811782837,
-0.27769577503204346,
0.22165124118328094,
-0.42989787459373474,
-0.19205987453460693,
0.0860745906829834,
-0.08549762517213821,
0.10238032042980194,
0.5736770033836365,
0.9926818013191223,
-0.08473637700080872,
-0.6435369253158569,
0.7230151891708374,
-0.11048667132854462,
-0.3889174461364746,
-0.5785297751426697,
0.13018913567066193,
0.003685842966660857,
0.19251462817192078,
0.3393288552761078,
0.08261433243751526,
0.06523329019546509,
-0.6100899577140808,
0.17141616344451904,
0.46428048610687256,
-0.15652355551719666,
-0.2666064202785492,
0.6076585650444031,
0.01954181306064129,
-0.3095545768737793,
0.9047022461891174,
-0.19691449403762817,
-0.5798625946044922,
0.6286336183547974,
0.4798206090927124,
0.6654964685440063,
-0.037663839757442474,
0.2869611382484436,
0.7250674366950989,
-0.027747653424739838,
-0.06384652853012085,
0.4579775631427765,
0.17679603397846222,
-0.7271073460578918,
-0.4158370792865753,
-0.3149665594100952,
-0.3551131784915924,
0.2324630171060562,
-1.0249555110931396,
0.7306999564170837,
-0.3286464214324951,
-0.47798219323158264,
0.09393266588449478,
0.09368674457073212,
-0.4887697696685791,
0.3410184383392334,
-0.10303323715925217,
0.7802146673202515,
-1.1346908807754517,
0.6240836381912231,
0.5063453316688538,
-0.6369044780731201,
-1.0984266996383667,
-0.3204749524593353,
-0.16566631197929382,
-0.9681776762008667,
0.5811294913291931,
0.284405380487442,
0.4979812800884247,
-0.14268037676811218,
-0.9565305113792419,
-1.0432114601135254,
1.0807039737701416,
0.34973230957984924,
-0.5252467393875122,
0.026593301445245743,
0.053942855447530746,
0.6774132251739502,
-0.2500015199184418,
0.717921793460846,
0.6929292678833008,
0.3462671935558319,
0.30869945883750916,
-1.0356124639511108,
-0.024847235530614853,
-0.37799885869026184,
-0.27393144369125366,
0.3032696843147278,
-1.1563372611999512,
1.2172077894210815,
-0.42547255754470825,
0.019953040406107903,
0.29614999890327454,
0.7446981072425842,
0.22736448049545288,
0.3676273822784424,
0.5646522641181946,
0.6417011618614197,
0.912900447845459,
-0.09775978326797485,
0.9479730129241943,
-0.1851896494626999,
0.8700242042541504,
1.1552881002426147,
0.15587975084781647,
0.6402225494384766,
0.24713914096355438,
-0.44032543897628784,
0.6683708429336548,
0.6553373336791992,
-0.18217086791992188,
0.4918918311595917,
0.15894213318824768,
0.10115361958742142,
-0.22807961702346802,
0.41292959451675415,
-0.44341111183166504,
0.5250913500785828,
0.36850786209106445,
-0.6044976115226746,
-0.14985628426074982,
-0.28997933864593506,
0.5055273771286011,
-0.14433607459068298,
-0.19162574410438538,
0.6556199789047241,
0.10809529572725296,
-0.5349195599555969,
0.9322511553764343,
-0.16711749136447906,
0.40799611806869507,
-0.5654539465904236,
0.06022419035434723,
-0.31299594044685364,
0.470027357339859,
-0.28796350955963135,
-0.9558356404304504,
0.2865414023399353,
-0.095834881067276,
-0.23203757405281067,
-0.1093185767531395,
0.19115106761455536,
-0.48428869247436523,
-0.836370587348938,
0.1166556179523468,
0.33457431197166443,
0.5466815233230591,
-0.10333903133869171,
-0.7213208079338074,
0.01335094217211008,
0.33865228295326233,
-0.2523597478866577,
0.10821060091257095,
0.27444759011268616,
-0.04563048109412193,
1.0947993993759155,
0.6693934202194214,
0.032170314341783524,
-0.10572662949562073,
-0.01904500462114811,
1.0019259452819824,
-0.6788175106048584,
-0.8129425048828125,
-0.9684658646583557,
0.8310773968696594,
-0.5369983911514282,
-0.6898682117462158,
0.8544555306434631,
0.7387702465057373,
0.7402371168136597,
-0.12240586429834366,
0.737601101398468,
-0.4131269156932831,
0.9206648468971252,
-0.13834543526172638,
0.5395954251289368,
-0.5006822347640991,
0.10421574860811234,
-0.6829459071159363,
-0.892618715763092,
-0.34496238827705383,
1.009930968284607,
-0.3091799020767212,
0.06870751827955246,
0.6858782768249512,
0.8397602438926697,
-0.056315336376428604,
0.1243968978524208,
0.06055071949958801,
0.4580060541629791,
0.4313625991344452,
0.3850136697292328,
0.43442314863204956,
-0.794917643070221,
0.6203860640525818,
-0.2850414216518402,
-0.5187076926231384,
-0.3202553391456604,
-0.6856509447097778,
-1.3460073471069336,
-0.6796553730964661,
-0.21526260673999786,
-0.8039102554321289,
-0.47113901376724243,
1.1052144765853882,
0.8693959712982178,
-0.8470618724822998,
-0.392502099275589,
0.08421341329813004,
-0.15544097125530243,
-0.27848759293556213,
-0.26801490783691406,
0.6038901209831238,
-0.27160048484802246,
-1.0049529075622559,
-0.11264131218194962,
-0.33844849467277527,
0.22199824452400208,
0.2337934672832489,
-0.07936602830886841,
0.027620380744338036,
-0.05859990790486336,
0.48749881982803345,
0.16063441336154938,
-0.3254338204860687,
-0.17346066236495972,
0.0696285143494606,
-0.08011233806610107,
0.21325495839118958,
0.2680307626724243,
-0.5620588660240173,
0.16105495393276215,
0.47448763251304626,
0.43186137080192566,
0.9469826817512512,
0.4918253719806671,
0.3057273328304291,
-0.8682842254638672,
0.23630771040916443,
0.022694330662488937,
0.4861808121204376,
0.4458451569080353,
-0.36945345997810364,
0.6989434361457825,
0.23612822592258453,
-0.8103669881820679,
-0.9951465129852295,
-0.07434489578008652,
-1.4581786394119263,
-0.06312374025583267,
1.3872952461242676,
-0.0645097941160202,
-0.13964074850082397,
0.18670706450939178,
-0.7234947681427002,
0.19876380264759064,
-0.7728860974311829,
0.9993446469306946,
0.7178058624267578,
-0.23682744801044464,
0.016868559643626213,
-0.10807271301746368,
0.11158638447523117,
0.1984306126832962,
-0.6468040347099304,
-0.0022185759153217077,
0.3146328628063202,
0.32183170318603516,
0.4711078703403473,
0.8072897791862488,
0.2671957015991211,
-0.01975809410214424,
0.1476462036371231,
-0.1732500046491623,
0.07460492104291916,
-0.2254267781972885,
0.15655598044395447,
-0.12603847682476044,
-0.39018774032592773,
-0.6173598170280457
] |
OpenAssistant/codellama-13b-oasst-sft-v10
|
OpenAssistant
| 2023-08-29T19:16:10Z | 8,213 | 54 |
transformers
|
[
"transformers",
"safetensors",
"llama",
"text-generation",
"custom_code",
"en",
"dataset:OpenAssistant/oasst1",
"dataset:shahules786/orca-best",
"license:llama2",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-08-26T10:13:29Z |
---
license: llama2
datasets:
- OpenAssistant/oasst1
- shahules786/orca-best
language:
- en
---
# Open-Assistant CodeLlama 13B SFT v10
This model is an Open-Assistant fine-tuning of Meta's CodeLlama 13B LLM.
**Note**: Due to the new RoPE Theta value (1e6 instead of 1e4), for correct results you must load this model with `trust_remote_code=True` or use the latest main branch of Huggingface transformers (until version 4.33 is released).
## Model Details
- **Finetuned from:** [codellama/CodeLlama-7b-hf](https://huggingface.co/codellama/CodeLlama-7b-hf) via [epfLLM/Megatron-LLM](https://github.com/epfLLM/Megatron-LLM)
- **Model type:** Causal decoder-only transformer language model
- **Language:** English
- **Weights & Biases training logs:** 6123 steps, BS 64 [run56_oa_llamacode](https://wandb.ai/open-assistant/public-sft/runs/run56_oa_llamacode)
- **Demo:** [Continuations for 250 random prompts (without system message)](https://open-assistant.github.io/oasst-model-eval/?f=https%3A%2F%2Fraw.githubusercontent.com%2FOpen-Assistant%2Foasst-model-eval%2Fmain%2Fsampling_reports%2Foasst-sft%2F2023-08-26_OpenAssistant_codellama-13b-oasst-sft-v10_sampling_noprefix2.json)
- **License:** [LLAMA 2 COMMUNITY LICENSE AGREEMENT](https://huggingface.co/meta-llama/Llama-2-70b/raw/main/LICENSE.txt)
- **Contact:** [Open-Assistant Discord](https://ykilcher.com/open-assistant-discord)
## Prompting / Prompt Template
Due to public demand (see [survey](https://twitter.com/erhartford/status/1682403597525430272)) we changed the prompt-template for this model from custom prompter/assistant tokens to OpenAI's [chatml](https://github.com/openai/openai-python/blob/main/chatml.md) standard prompt format.
We hope that this leads to greater compatibility with chat inference/frontend applications.
Prompt dialogue template:
```
"""
<|im_start|>system
{system_message}<|im_end|>
<|im_start|>user
{prompt}<|im_end|>
<|im_start|>assistant
"""
```
The model input can contain multiple conversation turns between user and assistant, e.g.
```
<|im_start|>user
{prompt 1}<|im_end|>
<|im_start|>assistant
{reply 1}<|im_end|>
<|im_start|>user
{prompt 2}<|im_end|>
<|im_start|>assistant
(...)
```
The model was partly trained with orca system messages.
For inference we recommend to use the official [Llama2 system message](https://github.com/facebookresearch/llama/blob/ea9f33d6d3ea8ed7d560d270986407fd6c2e52b7/example_chat_completion.py#L57-L61):
```
<|im_start|>system
You are a helpful, respectful and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature.
If a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.
<|im_end|>
```
### Credits & Special Thanks
- Thanks to [Meta AI](https://ai.meta.com/) for training and releasing the CodeLLlama model.
- Distributed training support was provided by EPFL's [Machine Learning and Optimization Laboratory](https://www.epfl.ch/labs/mlo/), and [Natural Language Processing Lab](https://nlp.epfl.ch/).
- The open-source [epfLLM/Megatron-LLM](https://github.com/epfLLM/Megatron-LLM) trainer was used for fine-tuning.
- [rombodawg](https://huggingface.co/rombodawg) curated the [LosslessMegaCodeTrainingV2_1m_Evol_Uncensored](https://huggingface.co/datasets/rombodawg/LosslessMegaCodeTrainingV2_1m_Evol_Uncensored) dataset.
- [ehartford](https://huggingface.co/ehartford) generated and published the [ehartford/dolphin](https://huggingface.co/datasets/ehartford/dolphin).
- [shahules786](https://github.com/shahules786) de-duped and filtered the Dolphin and Megacode dataset with a clustering/controid approach and generated orca-best & bestofmegacode.
- [andreaskoepf](https://github.com/andreaskoepf/) prepared & orchestrated the training.
## Ethical Considerations and Limitations
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, the potential outputs of codellama-13b-oasst-sft-v10 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 codellama-13b-oasst-sft-v10, developers should
perform safety testing and tuning tailored to their specific applications of the model.
Please see Meta's [Responsible Use Guide](https://ai.meta.com/llama/responsible-use-guide/).
## Configuration Details
The "pretokenizer" utility used to tokenize the datamix is part of the Open-Assistant github repository and can be found here: [model/pretokenizer](https://github.com/LAION-AI/Open-Assistant/tree/main/model/pretokenizer).
### Pretokenizer Configuration
```
orca_megacode_oasst_best:
datasets:
- orca-chat:
val_split: 0.01
max_val_set: 1000
- bestofmegacode:
val_split: 0.01
max_val_set: 1000
- oasst_export:
lang: "bg,ca,cs,da,de,en,es,fr,hr,hu,it,nl,pl,pt,ro,ru,sl,sr,sv,uk"
#hf_dataset_name: OpenAssistant/oasst1
input_file_path: 2023-08-25_oasst_ready.jsonl.gz
top_k: 1
val_split: 0.025
output_dir: "output/orca_megacode_oasst_best"
filename_prefix: "orca_megacode_oasst_best"
min_assistant_tokens: 1
```
|
[
-0.5733630657196045,
-0.8660697937011719,
0.2813132107257843,
0.35574057698249817,
-0.19568580389022827,
-0.2643181085586548,
-0.11191019415855408,
-0.45063912868499756,
0.3816238045692444,
0.39940986037254333,
-0.6505632400512695,
-0.5565444231033325,
-0.6042523384094238,
0.31227800250053406,
-0.11044391244649887,
1.054968237876892,
-0.08684612065553665,
-0.0768318623304367,
-0.036496248096227646,
-0.24443115293979645,
-0.40887436270713806,
-0.5416876673698425,
-0.8377445936203003,
-0.15060706436634064,
0.359100878238678,
0.271334171295166,
0.6907290816307068,
0.6507440805435181,
0.3768904507160187,
0.30710968375205994,
-0.2873515784740448,
0.3879566788673401,
-0.5215104818344116,
-0.2907620370388031,
-0.02297906205058098,
-0.364098459482193,
-0.8857682347297668,
0.07232265919446945,
0.3190942704677582,
0.40932992100715637,
-0.09405840933322906,
0.3591657280921936,
0.004496390465646982,
0.3505472242832184,
-0.5628983974456787,
0.4727934002876282,
-0.2658851742744446,
0.05594981089234352,
-0.02457178570330143,
-0.2683289647102356,
-0.26189151406288147,
-0.3737028241157532,
-0.03205838426947594,
-0.7904683351516724,
-0.19545629620552063,
0.08811647444963455,
1.0287879705429077,
0.40251296758651733,
-0.3400469720363617,
-0.31312665343284607,
-0.4389685392379761,
0.6129992604255676,
-0.901533305644989,
0.20295636355876923,
0.47660717368125916,
0.19418935477733612,
-0.3044658303260803,
-0.653142511844635,
-0.6038845181465149,
-0.30678054690361023,
-0.1796683371067047,
0.1820315420627594,
-0.24227063357830048,
0.06242021918296814,
0.3854514956474304,
0.3753899335861206,
-0.6219689846038818,
0.13516487181186676,
-0.4537026286125183,
-0.16713184118270874,
0.6644124984741211,
0.2131892293691635,
0.2550492584705353,
-0.12773846089839935,
-0.3324146568775177,
-0.26950639486312866,
-0.6570965647697449,
0.13490386307239532,
0.3967251181602478,
0.1431034505367279,
-0.5529233813285828,
0.6047000885009766,
-0.22481966018676758,
0.548850417137146,
0.11462409794330597,
-0.34466925263404846,
0.5614355802536011,
-0.409997820854187,
-0.2995690405368805,
-0.07337252795696259,
1.1154210567474365,
0.3552395701408386,
0.16270767152309418,
0.26638132333755493,
-0.175912544131279,
-0.06148126721382141,
0.056031886488199234,
-0.7488876581192017,
-0.0938827395439148,
0.360069215297699,
-0.4735702574253082,
-0.45856472849845886,
0.18994608521461487,
-0.6650223731994629,
-0.22970609366893768,
-0.1349875032901764,
0.359283983707428,
-0.3575485646724701,
-0.3789391815662384,
0.2609390318393707,
0.03599042072892189,
0.22369569540023804,
0.27409011125564575,
-0.7840439081192017,
0.11952448636293411,
0.44061049818992615,
0.7496500611305237,
0.10526632517576218,
-0.4226427674293518,
-0.3427763879299164,
-0.11780048161745071,
-0.32218825817108154,
0.5004522204399109,
-0.2501072287559509,
-0.3360414505004883,
-0.15042264759540558,
0.1502075046300888,
-0.21125589311122894,
-0.443297803401947,
0.4565812945365906,
-0.4058508574962616,
0.42034292221069336,
-0.06505187600851059,
-0.2691962718963623,
-0.25121229887008667,
0.12963122129440308,
-0.5606206059455872,
1.0505634546279907,
0.13511241972446442,
-0.7008125185966492,
0.07155560702085495,
-1.0927549600601196,
-0.1821749210357666,
-0.4661516845226288,
-0.04318808764219284,
-0.356569766998291,
-0.21936720609664917,
0.48177555203437805,
0.43053165078163147,
-0.29639455676078796,
0.39505669474601746,
-0.3982166349887848,
-0.4084201753139496,
0.16513903439044952,
-0.2703650891780853,
1.0959101915359497,
0.29752317070961,
-0.4743644893169403,
0.24315819144248962,
-0.7935762405395508,
-0.26523521542549133,
0.3906905949115753,
-0.407098650932312,
-0.07242468744516373,
-0.2152010053396225,
-0.10235192626714706,
0.16015192866325378,
0.38738858699798584,
-0.5065433979034424,
0.42333364486694336,
-0.33911168575286865,
0.5163297653198242,
0.8496744632720947,
-0.11299005895853043,
0.39821529388427734,
-0.329520583152771,
0.644065797328949,
0.19477923214435577,
0.43755948543548584,
-0.32739734649658203,
-0.7460299134254456,
-0.8531644344329834,
-0.32436811923980713,
0.10024841874837875,
0.6289697885513306,
-0.7477434277534485,
0.7632259726524353,
-0.2105090469121933,
-0.5608664155006409,
-0.6599223017692566,
-0.021275274455547333,
0.467465341091156,
0.5080444812774658,
0.41408973932266235,
-0.30904605984687805,
-0.6619760394096375,
-0.7227449417114258,
0.17063002288341522,
-0.2546573281288147,
-0.06260987371206284,
0.5377471446990967,
0.5626749396324158,
-0.5194727182388306,
0.9527015686035156,
-0.6543205976486206,
-0.4041813910007477,
-0.19615314900875092,
-0.011353699490427971,
0.4641120731830597,
0.5519092679023743,
0.7526687979698181,
-0.7072926163673401,
-0.23784378170967102,
-0.1780804991722107,
-0.9157713055610657,
-0.22963789105415344,
-0.069158174097538,
-0.14711172878742218,
0.4020352065563202,
0.4942479431629181,
-0.7563095688819885,
0.5127313733100891,
0.6486923694610596,
-0.35782375931739807,
0.47414782643318176,
-0.1908523291349411,
0.049906641244888306,
-1.2098207473754883,
0.29476338624954224,
-0.04736347869038582,
-0.07028588652610779,
-0.4392034709453583,
0.16504579782485962,
-0.14858223497867584,
-0.06385812163352966,
-0.48824286460876465,
0.6730870008468628,
-0.3753657341003418,
-0.021603871136903763,
-0.05655677616596222,
0.05095411092042923,
-0.21732854843139648,
0.7181868553161621,
0.02973776124417782,
0.9325353503227234,
0.5631139874458313,
-0.5800477862358093,
0.3019658923149109,
0.44490811228752136,
-0.04768271744251251,
0.20941787958145142,
-0.8766480088233948,
0.3315494656562805,
-0.04713558033108711,
0.578452467918396,
-0.9584510326385498,
-0.2660066783428192,
0.6444231271743774,
-0.684436023235321,
0.19540832936763763,
-0.014110936783254147,
-0.5564148426055908,
-0.4238043427467346,
-0.38302135467529297,
0.3066258132457733,
0.5480328798294067,
-0.6980838775634766,
0.608275830745697,
0.32641205191612244,
0.050735101103782654,
-0.6753177046775818,
-0.6049767136573792,
-0.14357095956802368,
-0.20241105556488037,
-0.7011975646018982,
0.09951218962669373,
-0.09825943410396576,
0.09397882968187332,
-0.19683514535427094,
-0.06003464013338089,
-0.062117088586091995,
0.12356503307819366,
0.46072280406951904,
0.3131749629974365,
-0.30740004777908325,
-0.249790757894516,
-0.0856618583202362,
-0.31598642468452454,
0.07799477875232697,
-0.14634549617767334,
0.7542579770088196,
-0.2903241515159607,
-0.3019345700740814,
-0.43670403957366943,
0.052935682237148285,
0.5601101517677307,
-0.2800348997116089,
0.8800680637359619,
0.8385511636734009,
-0.21235252916812897,
0.16877347230911255,
-0.4751319885253906,
-0.296991229057312,
-0.5222060084342957,
0.2254895567893982,
-0.21133863925933838,
-0.9397859573364258,
0.6239023804664612,
0.15665802359580994,
0.22729241847991943,
0.46974989771842957,
0.4485947787761688,
0.11756341904401779,
1.0086349248886108,
0.6672807335853577,
-0.3290766775608063,
0.5294461846351624,
-0.47305741906166077,
0.21142180263996124,
-0.8580295443534851,
-0.21874134242534637,
-0.5083931684494019,
-0.15004190802574158,
-0.5787635445594788,
-0.2889189124107361,
0.4893133044242859,
0.11616769433021545,
-0.3999290466308594,
0.6406577825546265,
-0.44724026322364807,
0.23623140156269073,
0.6313684582710266,
0.15100634098052979,
0.24093319475650787,
-0.15580838918685913,
-0.040709298104047775,
0.23646210134029388,
-0.7934595942497253,
-0.6953868269920349,
1.2052619457244873,
0.4929153025150299,
0.773947536945343,
0.0916270911693573,
0.7468822002410889,
-0.017140276730060577,
0.24850445985794067,
-0.4326191544532776,
0.6468782424926758,
0.1284426599740982,
-0.5521466732025146,
-0.28986498713493347,
-0.6009491682052612,
-1.051102876663208,
0.08173223584890366,
0.043033666908741,
-0.9616068601608276,
0.20493490993976593,
0.167629674077034,
-0.44884803891181946,
0.22270561754703522,
-0.6866514086723328,
0.9693894386291504,
0.032407376915216446,
0.09106777608394623,
0.028464775532484055,
-0.7623274326324463,
0.5742107033729553,
-0.08771035075187683,
0.11888275295495987,
0.024311907589435577,
-0.22894206643104553,
0.7103675007820129,
-0.591484785079956,
0.9759127497673035,
-0.0934290811419487,
-0.21429234743118286,
0.27688533067703247,
-0.12638401985168457,
0.4147634208202362,
0.14181171357631683,
-0.070135198533535,
0.496040403842926,
0.019710369408130646,
-0.2676815390586853,
-0.3071359395980835,
0.5999622344970703,
-1.0319210290908813,
-0.46841567754745483,
-0.3325287103652954,
-0.39940735697746277,
0.11237557232379913,
0.14063294231891632,
0.39447498321533203,
0.29866498708724976,
0.0446271114051342,
0.12090707570314407,
0.6323489546775818,
-0.6956835389137268,
0.36171746253967285,
0.5867416858673096,
-0.3084575831890106,
-0.5750014781951904,
0.8026019930839539,
-0.04794330149888992,
0.22767119109630585,
0.3571922183036804,
0.13396774232387543,
-0.26763641834259033,
-0.2590659558773041,
-0.49030494689941406,
0.278450071811676,
-0.6435484886169434,
-0.31028515100479126,
-0.8086426258087158,
-0.25020474195480347,
-0.6335171461105347,
0.08098607510328293,
-0.2915646731853485,
-0.25899818539619446,
-0.6601009368896484,
-0.13878574967384338,
0.625636100769043,
0.5881826281547546,
-0.19816149771213531,
0.3656415045261383,
-0.7396050691604614,
0.3869066536426544,
0.08411714434623718,
0.15420310199260712,
-0.05911517143249512,
-0.6066861748695374,
-0.061831034719944,
0.21705405414104462,
-0.44599267840385437,
-0.75439453125,
0.32570403814315796,
0.10797291994094849,
0.5576672554016113,
0.4070400893688202,
0.15291716158390045,
0.6740365624427795,
-0.2631301283836365,
1.0333110094070435,
0.09056800603866577,
-0.8005602955818176,
0.6510511636734009,
-0.48341354727745056,
0.2876499593257904,
0.35686028003692627,
0.49958792328834534,
-0.3752219080924988,
-0.4146099388599396,
-0.6987139582633972,
-0.858199954032898,
0.9821357727050781,
0.25355497002601624,
0.10596489906311035,
-0.14509911835193634,
0.2492624968290329,
-0.1266205757856369,
0.21891221404075623,
-0.7678446769714355,
-0.46917861700057983,
-0.18580155074596405,
-0.14359475672245026,
-0.1493055522441864,
-0.15864260494709015,
-0.014184953644871712,
-0.28166913986206055,
0.7777358293533325,
-0.2486734539270401,
0.5752431154251099,
0.27150794863700867,
-0.09104285389184952,
-0.13003383576869965,
0.012373763136565685,
0.8697729706764221,
0.596289873123169,
-0.2794434130191803,
-0.2264171987771988,
0.28057822585105896,
-0.5965896844863892,
0.08275553584098816,
0.17330431938171387,
-0.1065421998500824,
-0.04609963670372963,
0.47972479462623596,
0.8892025351524353,
0.17160625755786896,
-0.6604958772659302,
0.6495371460914612,
-0.1374882459640503,
-0.17772109806537628,
-0.33776891231536865,
0.20733696222305298,
0.11755511909723282,
0.2756996154785156,
0.25040408968925476,
0.032755520194768906,
0.006725512910634279,
-0.5205720067024231,
-0.029672985896468163,
0.14433553814888,
-0.05953468009829521,
-0.25558701157569885,
0.8078688383102417,
0.18099090456962585,
-0.2588721215724945,
0.5509381294250488,
-0.20825247466564178,
-0.4774564504623413,
0.8718730807304382,
0.342295378446579,
0.8767799735069275,
-0.2673805058002472,
0.09883852303028107,
0.4950726628303528,
0.44656962156295776,
-0.05333436653017998,
0.446240097284317,
0.04186577349901199,
-0.5704354643821716,
-0.27659615874290466,
-0.5449199080467224,
-0.27439042925834656,
0.2948664128780365,
-0.623850405216217,
0.4022347331047058,
-0.6187010407447815,
-0.18797366321086884,
-0.17356857657432556,
-0.08986473828554153,
-0.6557738780975342,
-0.05347944796085358,
-0.0089187603443861,
1.1760932207107544,
-0.7990265488624573,
0.7560929656028748,
0.8428943157196045,
-0.7288610935211182,
-1.0509904623031616,
-0.15428787469863892,
0.1699771136045456,
-0.8050589561462402,
0.5261258482933044,
0.24340283870697021,
0.1450634002685547,
-0.043764010071754456,
-0.6936395764350891,
-0.9208282828330994,
1.3188517093658447,
0.4537419378757477,
-0.38965439796447754,
-0.017913147807121277,
0.1733189821243286,
0.5182262659072876,
-0.4352533221244812,
0.7010486721992493,
0.5683919787406921,
0.4985805153846741,
-0.03452898561954498,
-1.3708246946334839,
0.23314093053340912,
-0.3103022575378418,
0.060433149337768555,
-0.04946187511086464,
-0.8301953673362732,
1.0059198141098022,
-0.25875139236450195,
-0.0042874692007899284,
0.3926428556442261,
0.6093723177909851,
0.45983508229255676,
0.29138848185539246,
0.43218809366226196,
0.6490780115127563,
0.5370956063270569,
-0.11888685822486877,
1.0290412902832031,
-0.37544724345207214,
0.4447803497314453,
0.9484909772872925,
-0.0482238344848156,
0.7066770195960999,
0.3058927655220032,
-0.19153328239917755,
0.26167118549346924,
0.8248918056488037,
0.04556676372885704,
0.38534149527549744,
-0.02871393971145153,
0.09522101283073425,
0.04642891511321068,
-0.035905878990888596,
-0.6564857959747314,
0.37479326128959656,
0.22759300470352173,
-0.5519678592681885,
-0.21498778462409973,
0.09881050139665604,
0.22964712977409363,
-0.3371610939502716,
-0.10340975970029831,
0.9480199217796326,
0.18658792972564697,
-0.5556343197822571,
1.0166376829147339,
0.010876128450036049,
0.9486603736877441,
-0.7033703327178955,
-0.08666881173849106,
-0.45469996333122253,
0.17804595828056335,
-0.2745703458786011,
-0.5814822912216187,
0.13970091938972473,
0.059761904180049896,
0.03442945331335068,
-0.1978052258491516,
0.48676690459251404,
-0.23554952442646027,
-0.12944361567497253,
0.3782389461994171,
0.28466272354125977,
0.4534093737602234,
-0.034703414887189865,
-0.7870778441429138,
0.3555258810520172,
0.06879258155822754,
-0.4760725498199463,
0.3038863241672516,
0.3605596125125885,
0.059806548058986664,
0.7588285207748413,
0.7686794996261597,
-0.12334859371185303,
-0.01934465393424034,
-0.07542739808559418,
1.0641546249389648,
-0.4519742429256439,
-0.5288873910903931,
-0.7960414290428162,
0.5104612112045288,
0.0319412462413311,
-0.6466028094291687,
0.7359628677368164,
0.5016185641288757,
0.935775101184845,
-0.23855559527873993,
0.5141988396644592,
-0.22059306502342224,
0.27285367250442505,
-0.5648601651191711,
0.7683283686637878,
-0.5547996163368225,
0.3401118218898773,
-0.4993901252746582,
-1.0255132913589478,
-0.03622272238135338,
0.7425221800804138,
-0.25559431314468384,
0.17389173805713654,
0.5524787902832031,
1.130199909210205,
-0.17446115612983704,
0.0650908499956131,
0.1466161608695984,
0.26817184686660767,
0.38434556126594543,
0.7743983268737793,
0.7289223074913025,
-0.6700770854949951,
0.6414924263954163,
-0.2671499252319336,
-0.42585083842277527,
-0.3772270679473877,
-0.8447267413139343,
-1.0406394004821777,
-0.4863199293613434,
-0.311465322971344,
-0.37456661462783813,
-0.020647112280130386,
1.2253963947296143,
0.7813017964363098,
-0.6711972951889038,
-0.2804906368255615,
0.014959318563342094,
0.027737237513065338,
-0.249034583568573,
-0.24832101166248322,
0.26707690954208374,
-0.10481773316860199,
-0.6440079808235168,
0.3788813650608063,
0.014914266765117645,
0.2290724515914917,
-0.32838112115859985,
-0.2875557243824005,
-0.17385615408420563,
0.017799872905015945,
0.5201958417892456,
0.4487747550010681,
-0.7346084117889404,
-0.15842770040035248,
0.05518752709031105,
-0.2227124571800232,
0.06757111847400665,
0.3400379419326782,
-0.6081815361976624,
0.10584446787834167,
0.42931807041168213,
0.424466073513031,
0.3368697166442871,
-0.06818336993455887,
0.5020501017570496,
-0.617321789264679,
0.3004758358001709,
0.025958172976970673,
0.48140305280685425,
0.13108102977275848,
-0.47387951612472534,
0.8154253959655762,
0.15090231597423553,
-0.5087324380874634,
-0.8443248271942139,
-0.09074143320322037,
-1.0394312143325806,
-0.04641152545809746,
1.3311504125595093,
-0.32401883602142334,
-0.31179380416870117,
0.10932227969169617,
-0.5980697274208069,
0.1802608221769333,
-0.6286852955818176,
0.6394064426422119,
0.43430304527282715,
0.00008547751349397004,
-0.21282583475112915,
-0.5657606720924377,
0.3726620078086853,
0.20857062935829163,
-1.0191690921783447,
-0.20954345166683197,
0.35835105180740356,
0.28089603781700134,
0.3755635619163513,
0.7992963790893555,
-0.05416738986968994,
0.3418779671192169,
-0.2029629498720169,
0.057711582630872726,
-0.3851911723613739,
-0.2472541183233261,
-0.43062692880630493,
-0.16773247718811035,
-0.19748303294181824,
-0.37545010447502136
] |
cross-encoder/nli-deberta-v3-large
|
cross-encoder
| 2021-12-28T19:10:37Z | 8,199 | 15 |
transformers
|
[
"transformers",
"pytorch",
"deberta-v2",
"text-classification",
"microsoft/deberta-v3-large",
"zero-shot-classification",
"en",
"dataset:multi_nli",
"dataset:snli",
"license:apache-2.0",
"endpoints_compatible",
"region:us"
] |
zero-shot-classification
| 2022-03-02T23:29:05Z |
---
language: en
pipeline_tag: zero-shot-classification
tags:
- microsoft/deberta-v3-large
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-large](https://huggingface.co/microsoft/deberta-v3-large)
## 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: 92.20
- Accuracy on MNLI mismatched set: 90.49
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-large')
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-large')
tokenizer = AutoTokenizer.from_pretrained('cross-encoder/nli-deberta-v3-large')
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-large')
sent = "Apple just announced the newest iPhone X"
candidate_labels = ["technology", "sports", "politics"]
res = classifier(sent, candidate_labels)
print(res)
```
|
[
-0.20666049420833588,
-0.7723369598388672,
0.3340459167957306,
0.27584147453308105,
-0.006280201021581888,
-0.09833820909261703,
-0.07610882818698883,
-0.34710028767585754,
0.17333796620368958,
0.4430115520954132,
-0.5110405087471008,
-0.5068917274475098,
-0.5838248133659363,
0.18749181926250458,
-0.5149590969085693,
1.055820345878601,
-0.10978386551141739,
0.04590117558836937,
-0.09453853964805603,
-0.11099085211753845,
-0.2958666682243347,
-0.4694969058036804,
-0.39477723836898804,
-0.5579037666320801,
0.42284512519836426,
0.1969817876815796,
0.6186640858650208,
0.3376542925834656,
0.17191709578037262,
0.3474547266960144,
0.019865427166223526,
-0.17068170011043549,
-0.18946152925491333,
-0.10279853641986847,
0.005386133212596178,
-0.5667865872383118,
-0.11112970858812332,
0.22941865026950836,
0.312623530626297,
0.36987555027008057,
0.03113914094865322,
0.24863766133785248,
-0.10920247435569763,
0.22655102610588074,
-0.6728845238685608,
0.07213203608989716,
-0.5665087699890137,
0.21305795013904572,
0.07843776792287827,
-0.054288897663354874,
-0.4451555013656616,
-0.3463713228702545,
0.07937983423471451,
-0.4444572627544403,
0.26594269275665283,
-0.039410579949617386,
1.279270052909851,
0.4115433692932129,
-0.3125026822090149,
-0.39145272970199585,
-0.5724405646324158,
0.8941085338592529,
-0.999099612236023,
0.25712379813194275,
0.24384663999080658,
0.044438667595386505,
0.08784472197294235,
-0.7133021354675293,
-0.9663171768188477,
-0.15098443627357483,
-0.2172386199235916,
0.3810648024082184,
-0.4117920398712158,
-0.10729434341192245,
0.4300598204135895,
0.34060999751091003,
-0.8080773949623108,
0.09480375796556473,
-0.4595250189304352,
-0.08921539783477783,
0.7035912871360779,
0.11120614409446716,
0.22940923273563385,
-0.39238083362579346,
-0.36073869466781616,
-0.15346308052539825,
-0.2551223635673523,
0.09322716295719147,
0.27939075231552124,
0.013372297398746014,
-0.20938794314861298,
0.8212065696716309,
-0.3290093243122101,
0.8325846195220947,
0.2089259922504425,
-0.03690183535218239,
0.7536294460296631,
-0.2657504081726074,
-0.4865376651287079,
0.3506444990634918,
1.0379759073257446,
0.4154587984085083,
0.3527751564979553,
-0.10545529425144196,
-0.05811413750052452,
0.4088659882545471,
-0.10565134137868881,
-0.7756560444831848,
-0.2449885606765747,
0.3541484773159027,
-0.3081333041191101,
-0.351621150970459,
0.010640149936079979,
-0.7858076095581055,
-0.03362090140581131,
-0.19301287829875946,
0.8120577335357666,
-0.5613918900489807,
0.16784322261810303,
0.3487035930156708,
-0.2564866840839386,
0.39949432015419006,
-0.1708684116601944,
-0.8182612657546997,
-0.016541793942451477,
0.33075129985809326,
0.7911065220832825,
0.19385066628456116,
-0.504330039024353,
-0.4259648025035858,
-0.002012889366596937,
0.045397497713565826,
0.40852028131484985,
-0.4230821132659912,
0.02085532620549202,
-0.1309896558523178,
0.08983495086431503,
-0.3520749807357788,
-0.33260178565979004,
0.6370015144348145,
-0.3222479820251465,
0.5567857623100281,
0.28307434916496277,
-0.7895925641059875,
-0.3663753569126129,
0.2979952394962311,
-0.4536314010620117,
1.1144945621490479,
0.07638365775346756,
-0.8883183002471924,
0.16728076338768005,
-0.5833774209022522,
-0.3970404267311096,
-0.30470985174179077,
-0.042121242731809616,
-0.5543455481529236,
0.05399813875555992,
0.43379443883895874,
0.47123509645462036,
-0.20374339818954468,
0.4728805720806122,
-0.2841886878013611,
-0.40258142352104187,
0.3314433991909027,
-0.604107677936554,
1.166094422340393,
0.13184373080730438,
-0.5889275074005127,
0.13823993504047394,
-0.8078225255012512,
0.0736430212855339,
0.14394867420196533,
-0.2223234921693802,
-0.09543955326080322,
-0.2998476028442383,
0.15384916961193085,
0.3483014702796936,
0.053130440413951874,
-0.7726106643676758,
0.03511235490441322,
-0.48311981558799744,
0.6381543278694153,
0.378526508808136,
-0.08042700588703156,
0.2788141369819641,
-0.18590201437473297,
0.2688550055027008,
0.0782797783613205,
0.094676174223423,
-0.0420672670006752,
-0.6183461546897888,
-0.9909327626228333,
-0.038965702056884766,
0.49728327989578247,
0.8984038233757019,
-0.8348633050918579,
0.9411712884902954,
-0.2520064413547516,
-0.6829897165298462,
-0.6977733373641968,
-0.216399684548378,
0.18219301104545593,
0.5208467841148376,
0.6466744542121887,
0.01828116364777088,
-0.7096913456916809,
-0.7727839350700378,
-0.29465338587760925,
-0.02994939126074314,
-0.14198946952819824,
-0.05458371341228485,
0.8306714296340942,
-0.44096893072128296,
1.0670173168182373,
-0.5359764099121094,
-0.2366449385881424,
-0.46805286407470703,
0.3357089161872864,
0.4831670820713043,
0.6852915287017822,
0.4570901393890381,
-0.5890718102455139,
-0.3800542950630188,
-0.31814485788345337,
-0.8412078619003296,
-0.12602499127388,
-0.31291186809539795,
-0.012805073522031307,
0.1599264144897461,
0.3283867835998535,
-0.5923946499824524,
0.6273802518844604,
0.5076578855514526,
-0.46331650018692017,
0.4128052890300751,
-0.14201290905475616,
0.010295231826603413,
-1.0972206592559814,
-0.09380083531141281,
0.17494405806064606,
-0.08607888966798782,
-0.7316142916679382,
-0.23051825165748596,
-0.13562345504760742,
-0.018407315015792847,
-0.43066075444221497,
0.500866174697876,
-0.23354779183864594,
0.13405120372772217,
-0.03973207622766495,
0.2388264536857605,
0.22285199165344238,
0.5955917239189148,
0.24968108534812927,
0.4591835141181946,
0.7655671834945679,
-0.5085583925247192,
0.4868941307067871,
0.36367499828338623,
-0.4231966733932495,
0.2903650403022766,
-0.8517782092094421,
-0.07983595877885818,
-0.17192399501800537,
0.25849291682243347,
-0.858182966709137,
-0.11202089488506317,
0.4274076223373413,
-0.6086808443069458,
0.01018393225967884,
0.20769046247005463,
-0.44167929887771606,
-0.48724937438964844,
-0.09186558425426483,
0.34506332874298096,
0.5129367113113403,
-0.5233850479125977,
0.713933527469635,
0.13386352360248566,
0.3346836268901825,
-0.591600775718689,
-1.1395291090011597,
0.008265663869678974,
-0.18945150077342987,
-0.4764898419380188,
0.3108960688114166,
0.04704638570547104,
0.020140336826443672,
0.09570741653442383,
0.06031930819153786,
-0.2147728055715561,
-0.032213807106018066,
0.21012289822101593,
0.28652119636535645,
-0.2011243849992752,
0.02014920301735401,
-0.09616373479366302,
-0.13337329030036926,
0.14043119549751282,
-0.2701188623905182,
0.5754966139793396,
-0.2478165179491043,
-0.2491917461156845,
-0.6391490697860718,
0.2437417209148407,
0.34935516119003296,
-0.21780511736869812,
0.7333102226257324,
0.9873385429382324,
-0.3842928111553192,
0.06093939393758774,
-0.496073454618454,
-0.18260034918785095,
-0.40084272623062134,
0.4447806477546692,
-0.3289053440093994,
-0.6779887080192566,
0.35013875365257263,
0.33753320574760437,
-0.15568864345550537,
0.6442331075668335,
0.4397425353527069,
0.06341037154197693,
0.9369051456451416,
0.36979758739471436,
-0.2961566150188446,
0.3090679943561554,
-0.6006860733032227,
0.2920309007167816,
-0.6897781491279602,
-0.23702970147132874,
-0.5176339149475098,
-0.33089742064476013,
-0.6153827905654907,
-0.3453965485095978,
0.07100033015012741,
0.1634262651205063,
-0.3211810886859894,
0.555450975894928,
-0.5338594913482666,
0.42996540665626526,
0.7462086081504822,
0.09100636094808578,
0.12925191223621368,
0.020264815539121628,
-0.01937885768711567,
0.030031323432922363,
-0.826874315738678,
-0.488116979598999,
0.8518048524856567,
0.34011149406433105,
0.7785393595695496,
-0.17468416690826416,
0.8522122502326965,
-0.05637836828827858,
0.21047264337539673,
-0.7056564092636108,
0.45266473293304443,
-0.26821035146713257,
-0.7148133516311646,
-0.21868227422237396,
-0.49009355902671814,
-0.8997196555137634,
0.21819517016410828,
-0.36669304966926575,
-0.8060845136642456,
0.3103170692920685,
-0.16090305149555206,
-0.4855169355869293,
0.34679529070854187,
-0.7359707355499268,
1.231393814086914,
-0.36533263325691223,
-0.21838341653347015,
0.10578490048646927,
-0.733281672000885,
0.30633682012557983,
0.0761009231209755,
-0.014552646316587925,
-0.2039021998643875,
0.2931499183177948,
0.8116067051887512,
-0.13456904888153076,
0.9479321837425232,
-0.11672355979681015,
0.08696986734867096,
0.4255932867527008,
-0.27008146047592163,
0.15683682262897491,
0.09029098600149155,
-0.3233760893344879,
0.4265478551387787,
-0.058716095983982086,
-0.30964186787605286,
-0.6218767762184143,
0.5357380509376526,
-0.9188548922538757,
-0.32102999091148376,
-0.5796453952789307,
-0.41240784525871277,
0.1776130050420761,
0.17817869782447815,
0.6943583488464355,
0.5104575157165527,
-0.039034247398376465,
0.11483100801706314,
0.35947510600090027,
-0.3544488847255707,
0.659651517868042,
0.1915353387594223,
-0.11574050784111023,
-0.4628046751022339,
0.8000274300575256,
0.003361336188390851,
0.1162077933549881,
0.4584701955318451,
0.21255381405353546,
-0.5059334635734558,
-0.22672109305858612,
-0.4140250086784363,
0.2355542629957199,
-0.6120368242263794,
-0.22531726956367493,
-0.7560242414474487,
-0.5644028782844543,
-0.5789427757263184,
-0.07076306641101837,
-0.1897670328617096,
-0.3724939227104187,
-0.5392829775810242,
-0.11386136710643768,
0.3611823618412018,
0.49095892906188965,
-0.030675727874040604,
0.3477235734462738,
-0.7688179016113281,
0.4141296446323395,
0.16663753986358643,
0.10729629546403885,
-0.14905348420143127,
-0.7194908857345581,
-0.13114267587661743,
0.07532313466072083,
-0.4330059885978699,
-0.9600375890731812,
0.6249868273735046,
0.2544916272163391,
0.5955990552902222,
0.1415335088968277,
0.18310153484344482,
0.6490164995193481,
-0.3340011537075043,
0.7433264255523682,
0.3056804835796356,
-1.2329760789871216,
0.6017694473266602,
0.15575984120368958,
0.43153172731399536,
0.48458102345466614,
0.5042147040367126,
-0.6666725873947144,
-0.46338415145874023,
-0.5752614736557007,
-0.8804910182952881,
0.6952549815177917,
0.47831201553344727,
0.10395363718271255,
-0.14622576534748077,
0.17964410781860352,
0.03226908668875694,
0.15156681835651398,
-1.3075789213180542,
-0.43679386377334595,
-0.6089645028114319,
-0.5766246914863586,
-0.3239728808403015,
0.004058187361806631,
0.10493756085634232,
-0.5548521280288696,
0.8893718123435974,
-0.01611575298011303,
0.3200184404850006,
0.6142907738685608,
-0.25557586550712585,
0.33795446157455444,
0.33476442098617554,
0.5741604566574097,
0.2943806052207947,
-0.24644528329372406,
0.0766686275601387,
0.37334972620010376,
-0.28139641880989075,
0.25843140482902527,
0.3075329661369324,
-0.3599810004234314,
0.22899973392486572,
0.49906086921691895,
1.2949119806289673,
-0.051582805812358856,
-0.48640772700309753,
0.5382025837898254,
0.03390369936823845,
-0.24714155495166779,
-0.46522799134254456,
0.03702867031097412,
-0.06982225179672241,
0.35014715790748596,
0.24330948293209076,
0.16434071958065033,
0.09080666303634644,
-0.5630519390106201,
0.2882693409919739,
0.1292971819639206,
-0.5636017322540283,
-0.20327939093112946,
0.778960645198822,
0.0635836124420166,
-0.36914750933647156,
0.6760845184326172,
-0.26312607526779175,
-0.6739358305931091,
0.6508700847625732,
0.6051343083381653,
1.0210604667663574,
0.006295241881161928,
0.3361976742744446,
0.6689553260803223,
0.3753417134284973,
-0.09872113913297653,
0.1404087096452713,
0.09651315212249756,
-0.9381150007247925,
-0.3826124668121338,
-0.6811466217041016,
-0.046965792775154114,
0.17083729803562164,
-0.6345343589782715,
0.19283291697502136,
-0.1374884843826294,
-0.05078625679016113,
0.07850466668605804,
-0.2328965961933136,
-0.6501834988594055,
0.29671183228492737,
0.2606569230556488,
0.8659819960594177,
-1.0518383979797363,
0.9127804636955261,
0.48077961802482605,
-0.6660135388374329,
-0.8043612837791443,
0.1526116281747818,
-0.2684856653213501,
-0.6573389172554016,
0.7628720998764038,
0.5560621619224548,
0.06285752356052399,
0.11376316845417023,
-0.37516286969184875,
-0.6962690353393555,
1.0067542791366577,
0.1612635850906372,
-0.5583174228668213,
-0.11389380693435669,
0.3208002746105194,
0.632107138633728,
-0.40897709131240845,
0.7065228819847107,
0.7170703411102295,
0.45515820384025574,
-0.0361817330121994,
-0.6845882534980774,
0.0985308513045311,
-0.1310424655675888,
-0.04971131309866905,
-0.11184550076723099,
-0.39278703927993774,
0.8993048071861267,
-0.22124630212783813,
0.042298704385757446,
0.13632822036743164,
0.7052839994430542,
0.2745864689350128,
0.4571155905723572,
0.5097375512123108,
0.8080456256866455,
0.6081655025482178,
-0.23397348821163177,
0.8615094423294067,
-0.21799518167972565,
0.6999965906143188,
1.0847132205963135,
-0.22832420468330383,
0.8844201564788818,
0.4496249556541443,
-0.07308722287416458,
0.7141470909118652,
0.6034021973609924,
-0.41917872428894043,
0.46777695417404175,
0.3069591820240021,
-0.055365193635225296,
-0.2477063238620758,
0.18450956046581268,
-0.33866429328918457,
0.8415420651435852,
0.07614248245954514,
-0.4941343367099762,
-0.20814499258995056,
0.19837823510169983,
-0.1683920919895172,
-0.02768365852534771,
-0.11092209070920944,
0.5133171081542969,
-0.12232737988233566,
-0.6777306795120239,
0.8011417388916016,
0.011162800714373589,
0.9461361169815063,
-0.36834290623664856,
0.05212793126702309,
0.014129229821264744,
0.3311241865158081,
-0.24834765493869781,
-0.8860514760017395,
0.3247576951980591,
-0.023603081703186035,
-0.10872536152601242,
-0.005066910292953253,
0.4173392653465271,
-0.7204936146736145,
-0.8058193922042847,
0.4883959889411926,
0.2713628113269806,
0.2191038727760315,
-0.0021342565305531025,
-0.9554355144500732,
-0.028627146035432816,
0.19072674214839935,
-0.23628635704517365,
-0.10094685107469559,
0.4038780927658081,
0.3021189570426941,
0.47865214943885803,
0.42202457785606384,
-0.17989656329154968,
0.27379682660102844,
0.20003290474414825,
0.5992470979690552,
-0.8110779523849487,
-0.2937029004096985,
-0.9934000968933105,
0.5857177972793579,
-0.1734464019536972,
-0.5273141264915466,
0.8626261949539185,
0.7738908529281616,
0.9271028637886047,
-0.30742791295051575,
0.68154376745224,
-0.25452953577041626,
0.26578834652900696,
-0.6426712870597839,
0.6078191995620728,
-0.5878273844718933,
0.026837585493922234,
-0.1672373265028,
-0.7655895352363586,
-0.46099865436553955,
0.8632305860519409,
-0.36322924494743347,
0.09598691761493683,
0.6355279684066772,
0.9228365421295166,
-0.0434793159365654,
0.08865370601415634,
0.13195326924324036,
0.322435200214386,
0.12335456907749176,
0.7622045278549194,
0.7660319209098816,
-0.9585062861442566,
0.7178940176963806,
-0.4952813982963562,
-0.05040130764245987,
-0.06434250622987747,
-0.7015323638916016,
-0.9464281797409058,
-0.44671928882598877,
-0.5566455721855164,
-0.4091661870479584,
-0.11458265781402588,
0.7912222743034363,
0.6677042245864868,
-1.0270603895187378,
-0.16902504861354828,
-0.26180413365364075,
0.15512952208518982,
-0.26394230127334595,
-0.33860263228416443,
0.24073463678359985,
-0.2549141049385071,
-0.8914977312088013,
0.2933870553970337,
-0.06481709331274033,
0.10399851948022842,
-0.11481955647468567,
-0.05451487749814987,
-0.5829262733459473,
0.010446934960782528,
0.4864104092121124,
0.15379451215267181,
-0.8981406092643738,
-0.33817601203918457,
0.005607414059340954,
-0.21670062839984894,
0.1745072305202484,
0.407977432012558,
-0.8688350915908813,
0.17413944005966187,
0.5168110728263855,
0.5710081458091736,
0.685149610042572,
-0.18555378913879395,
0.3407589793205261,
-0.6445774435997009,
0.14114420115947723,
0.16877584159374237,
0.44029152393341064,
0.32949215173721313,
-0.21395443379878998,
0.5377528071403503,
0.37444159388542175,
-0.5884076952934265,
-0.6149505972862244,
0.07352786511182785,
-0.9510775208473206,
-0.3122822642326355,
1.0511786937713623,
-0.11683012545108795,
-0.42310044169425964,
-0.07496976852416992,
-0.18055421113967896,
0.564278781414032,
-0.25217577815055847,
0.6054712533950806,
0.44083768129348755,
-0.18230201303958893,
-0.1636580526828766,
-0.4892341196537018,
0.2901292145252228,
0.5352219343185425,
-0.7692773938179016,
-0.19731342792510986,
0.19639964401721954,
0.3911764621734619,
0.4241177439689636,
0.376619815826416,
0.12285637855529785,
-0.02941194176673889,
0.1574227511882782,
0.2847136855125427,
0.07806726545095444,
-0.13194076716899872,
-0.48456820845603943,
0.11827535927295685,
-0.567724883556366,
-0.5779232978820801
] |
nitrosocke/elden-ring-diffusion
|
nitrosocke
| 2023-05-16T09:21:07Z | 8,194 | 320 |
diffusers
|
[
"diffusers",
"stable-diffusion",
"text-to-image",
"license:creativeml-openrail-m",
"endpoints_compatible",
"has_space",
"diffusers:StableDiffusionPipeline",
"region:us"
] |
text-to-image
| 2022-10-05T22:55:13Z |
---
license: creativeml-openrail-m
tags:
- stable-diffusion
- text-to-image
---
**Elden Ring Diffusion**
This is the fine-tuned Stable Diffusion model trained on the game art from Elden Ring.
Use the tokens **_elden ring style_** in your prompts for the effect.
You can download the latest version here: [eldenRing-v3-pruned.ckpt](https://huggingface.co/nitrosocke/elden-ring-diffusion/resolve/main/eldenRing-v3-pruned.ckpt)
**If you enjoy my work, please consider supporting me**
[](https://patreon.com/user?u=79196446)
### 🧨 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
#!pip install diffusers transformers scipy torch
from diffusers import StableDiffusionPipeline
import torch
model_id = "nitrosocke/elden-ring-diffusion"
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
pipe = pipe.to("cuda")
prompt = "a magical princess with golden hair, elden ring style"
image = pipe(prompt).images[0]
image.save("./magical_princess.png")
```
**Portraits rendered with the model:**

**Landscape Shots rendered with the model:**

**Sample images used for training:**

This model was trained using the diffusers based dreambooth training and prior-preservation loss in 3.000 steps.
#### Prompt and settings for portraits:
**elden ring style portrait of a beautiful woman highly detailed 8k elden ring style**
_Steps: 35, Sampler: DDIM, CFG scale: 7, Seed: 3289503259, Size: 512x704_
#### Prompt and settings for landscapes:
**elden ring style dark blue night (castle) on a cliff dark night (giant birds) elden ring style Negative prompt: bright day**
_Steps: 30, Sampler: DDIM, CFG scale: 7, Seed: 350813576, Size: 1024x576_
## 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.48954737186431885,
-0.8807651996612549,
0.2226341813802719,
0.1065511628985405,
-0.20115864276885986,
-0.257754385471344,
0.11316563934087753,
-0.598425567150116,
0.4389645755290985,
0.6446589827537537,
-0.6591430902481079,
-0.8234303593635559,
-0.4835805892944336,
-0.15386657416820526,
-0.175619438290596,
1.1697388887405396,
-0.3598973751068115,
0.03399017080664635,
0.18965458869934082,
-0.03568883240222931,
-0.10156947374343872,
0.12237916886806488,
-0.718292772769928,
-0.5697997212409973,
0.4249572455883026,
0.008232759311795235,
0.3938056528568268,
0.45632219314575195,
0.2796657681465149,
0.2438977211713791,
-0.5091251134872437,
-0.1683281660079956,
-0.506911039352417,
0.027657171711325645,
0.013052891939878464,
-0.4708592891693115,
-0.905404806137085,
0.03291193023324013,
0.4905184805393219,
0.3855222463607788,
-0.5806713104248047,
0.13900521397590637,
-0.04663999751210213,
0.5496724247932434,
-0.46236321330070496,
-0.13682739436626434,
-0.37431660294532776,
0.32418614625930786,
-0.32510432600975037,
0.13186874985694885,
-0.17718718945980072,
-0.12682735919952393,
0.25498101115226746,
-1.07286536693573,
0.4705917537212372,
0.2442605346441269,
0.972694456577301,
0.02410777099430561,
-0.34428733587265015,
-0.19038605690002441,
-0.6945257186889648,
0.632442831993103,
-0.5558526515960693,
0.27068132162094116,
0.2978825867176056,
0.2810435891151428,
0.1449323147535324,
-0.8116294741630554,
-0.30628669261932373,
0.07391389459371567,
0.08057335764169693,
0.5759721398353577,
-0.16931253671646118,
0.25753578543663025,
0.47863397002220154,
0.5387530326843262,
-0.770416796207428,
-0.2706233859062195,
-0.7082839012145996,
-0.050936415791511536,
0.48785147070884705,
0.15008088946342468,
0.29487815499305725,
0.07090780138969421,
-0.4526097774505615,
-0.2321544885635376,
-0.6426986455917358,
-0.05425949767231941,
0.5953166484832764,
-0.10509487241506577,
-0.47953692078590393,
0.6231114268302917,
0.034347593784332275,
0.6158646941184998,
0.4435765743255615,
0.03164380043745041,
0.41385653614997864,
-0.058034639805555344,
-0.3130854666233063,
-0.03127994388341904,
0.510715126991272,
0.6539506316184998,
-0.09225521981716156,
-0.13083118200302124,
-0.20752213895320892,
0.05873735621571541,
0.07975190877914429,
-1.1741186380386353,
-0.5186083912849426,
0.32702264189720154,
-0.4906676709651947,
-0.32565048336982727,
-0.14847633242607117,
-0.7635643482208252,
-0.13428817689418793,
0.2235105186700821,
0.4226468801498413,
-0.22808773815631866,
-0.8426815271377563,
0.5023870468139648,
-0.3664260804653168,
0.02037370391190052,
0.3843950927257538,
-0.8591163158416748,
0.30800774693489075,
0.22560085356235504,
1.0719115734100342,
0.07452824711799622,
0.010072736069560051,
-0.10151791572570801,
0.38329774141311646,
-0.31912651658058167,
0.41436755657196045,
-0.19295790791511536,
-0.4891497790813446,
-0.014032872393727303,
0.39547964930534363,
-0.024986987933516502,
-0.7101839184761047,
0.6067046523094177,
-0.7504698634147644,
0.28335052728652954,
0.09814385324716568,
-0.4259920120239258,
-0.31314000487327576,
0.239438995718956,
-0.7882634997367859,
0.6967396140098572,
0.19564081728458405,
-0.9697863459587097,
0.4138449430465698,
-1.0470404624938965,
-0.044214580208063126,
-0.012885021045804024,
0.3551042079925537,
-0.6630208492279053,
-0.025781946256756783,
-0.30978265404701233,
0.1758577525615692,
0.17792311310768127,
-0.257804811000824,
-0.5898181200027466,
-0.16087301075458527,
-0.3402116298675537,
0.00023493620392400771,
0.9740623235702515,
0.3130388855934143,
-0.3225434422492981,
0.029311198741197586,
-0.8723783493041992,
0.08096878975629807,
0.18944695591926575,
-0.16620169579982758,
-0.36231327056884766,
-0.3443613052368164,
0.37752819061279297,
0.20531858503818512,
0.07821425050497055,
-0.7189584374427795,
0.12885598838329315,
-0.6850329041481018,
0.26550692319869995,
0.6135493516921997,
0.24111032485961914,
0.6817910671234131,
-0.47909530997276306,
0.7574149370193481,
0.4195619523525238,
0.09565342217683792,
0.27351099252700806,
-0.4382677376270294,
-0.6758127212524414,
-0.021152222529053688,
0.2923860251903534,
0.2812127470970154,
-0.569621205329895,
0.23368604481220245,
0.17317801713943481,
-0.5414220690727234,
-0.5165097117424011,
0.013927334919571877,
0.23991744220256805,
0.4138045608997345,
0.06710614264011383,
-0.563426673412323,
-0.49000564217567444,
-0.6923928260803223,
0.18110840022563934,
0.08774838596582413,
0.015570273622870445,
0.23708565533161163,
0.7253673076629639,
-0.2526918649673462,
0.7636405229568481,
-0.45308926701545715,
-0.3260428011417389,
0.13458624482154846,
0.44424667954444885,
0.5242553353309631,
0.6943879127502441,
0.852258026599884,
-0.6923252940177917,
-0.741521954536438,
0.07744718343019485,
-0.6268509030342102,
-0.18583419919013977,
0.17074322700500488,
-0.45628809928894043,
-0.03404340147972107,
-0.033768124878406525,
-0.870076060295105,
0.41636922955513,
0.7236257195472717,
-0.6230430603027344,
0.8010145425796509,
-0.3990684747695923,
0.09968030452728271,
-1.1412445306777954,
0.2692645490169525,
0.22364425659179688,
-0.40761926770210266,
-0.566658616065979,
0.2881791889667511,
-0.2135968804359436,
0.14881685376167297,
-0.6562719941139221,
0.8921340703964233,
-0.5129146575927734,
0.30687007308006287,
-0.3294377326965332,
0.002456479938700795,
0.1399463266134262,
0.292592316865921,
0.1479894369840622,
0.4501310884952545,
0.7892425656318665,
-0.5533645749092102,
0.17595301568508148,
0.49541136622428894,
-0.2967466115951538,
0.8415210247039795,
-0.9638431072235107,
0.022997576743364334,
-0.21361029148101807,
0.1429833024740219,
-0.6221302151679993,
-0.25374534726142883,
0.5839185118675232,
-0.30602917075157166,
0.16303512454032898,
-0.35412153601646423,
-0.4264811873435974,
-0.2759875953197479,
-0.4055250585079193,
0.26278796792030334,
0.7687560319900513,
-0.4282149076461792,
0.6781725287437439,
0.02097906544804573,
0.27988380193710327,
-0.5029895901679993,
-0.8508794903755188,
-0.4825230836868286,
-0.7107684016227722,
-0.9494234323501587,
0.8144522309303284,
-0.4134427309036255,
-0.29217618703842163,
0.150959312915802,
0.051504313945770264,
-0.16451887786388397,
-0.0729014053940773,
0.42204734683036804,
0.09999313205480576,
-0.08028461039066315,
-0.26214417815208435,
0.13322119414806366,
-0.21240359544754028,
-0.015734834596514702,
-0.22042788565158844,
0.4331335127353668,
-0.08443213999271393,
-0.26699602603912354,
-0.7414329051971436,
0.3329114019870758,
0.7014139294624329,
0.09731688350439072,
1.0760631561279297,
0.9800652265548706,
-0.503572940826416,
-0.2036503404378891,
-0.30682823061943054,
-0.38856372237205505,
-0.4759056568145752,
0.17525534331798553,
-0.3020480275154114,
-0.5713340640068054,
0.9185293316841125,
-0.06496252864599228,
0.5211238861083984,
0.5965777039527893,
0.49219807982444763,
-0.2817295789718628,
1.3583836555480957,
0.7008746266365051,
0.3987199366092682,
0.7237824201583862,
-0.953610360622406,
-0.08694153279066086,
-1.196812391281128,
-0.07163675129413605,
0.0010361815802752972,
-0.5634804964065552,
-0.235841304063797,
-0.13379453122615814,
0.4457712769508362,
0.672722339630127,
-0.7407566905021667,
0.09527136385440826,
-0.40842825174331665,
0.39058154821395874,
0.23971284925937653,
0.24962382018566132,
0.2959435284137726,
0.2001476138830185,
-0.29740065336227417,
-0.04309799149632454,
-0.5520681738853455,
-0.4385242760181427,
0.7936834096908569,
0.40106019377708435,
0.9190062880516052,
0.17877422273159027,
0.8412767052650452,
0.1820419877767563,
0.3830496072769165,
-0.3180316984653473,
0.2956220805644989,
0.11449505388736725,
-0.917471706867218,
0.023573746904730797,
-0.327216237783432,
-0.9883875846862793,
0.3304580748081207,
-0.3004075884819031,
-0.6696084141731262,
0.10593482106924057,
0.33458396792411804,
-0.5977778434753418,
0.5162672996520996,
-0.7884377837181091,
0.7809798121452332,
0.049979083240032196,
-0.6656417846679688,
-0.12160078436136246,
-0.5177931189537048,
0.46872809529304504,
0.18890543282032013,
0.06263703107833862,
-0.0006824454758316278,
0.10406247526407242,
0.8800289630889893,
-0.5229023694992065,
0.8559554815292358,
-0.48775163292884827,
0.0033155253622680902,
0.25478440523147583,
0.16945981979370117,
0.5855782628059387,
-0.007136126514524221,
-0.20712950825691223,
-0.06655751168727875,
0.23793256282806396,
-0.30205240845680237,
-0.46287256479263306,
0.6422449350357056,
-0.8776732087135315,
-0.29433563351631165,
-0.2929495573043823,
-0.39435192942619324,
0.4127482771873474,
0.23817193508148193,
0.5827198624610901,
0.335454523563385,
-0.13870438933372498,
0.1325475126504898,
0.791807234287262,
-0.008752314373850822,
0.44516226649284363,
0.4568321704864502,
-0.6016020774841309,
-0.6680026650428772,
0.5018491744995117,
0.22946234047412872,
0.5341641902923584,
-0.3681747019290924,
0.3657713830471039,
-0.36638230085372925,
-0.5673449039459229,
-0.7092572450637817,
0.4809708893299103,
-0.5411414504051208,
-0.11647697538137436,
-0.5827782154083252,
-0.28514593839645386,
-0.007540026679635048,
-0.3759983777999878,
-0.3292454779148102,
-0.2564322352409363,
-0.5258035063743591,
-0.1674160659313202,
0.828660249710083,
0.7674256563186646,
-0.32023265957832336,
0.666141927242279,
-0.3570747971534729,
-0.07441667467355728,
0.002411081688478589,
0.5144180059432983,
0.27372875809669495,
-0.47021132707595825,
-0.2551453113555908,
0.23448672890663147,
-0.4916476607322693,
-0.8399272561073303,
0.5662838816642761,
0.11256866902112961,
0.40035244822502136,
0.574085533618927,
-0.003760742722079158,
0.8138000965118408,
-0.5000842213630676,
0.9008941054344177,
0.6870578527450562,
-0.4215382933616638,
0.4892706274986267,
-0.7067311406135559,
0.18826141953468323,
0.4306935667991638,
0.2667523920536041,
-0.49447596073150635,
-0.250381201505661,
-0.8854916095733643,
-0.9404923319816589,
0.6540319919586182,
0.28577691316604614,
0.07142049074172974,
0.2264014631509781,
0.5972735285758972,
0.02543196640908718,
0.20131689310073853,
-1.2069815397262573,
-0.4273233711719513,
0.03625102341175079,
-0.0923839583992958,
0.30695128440856934,
0.04670695215463638,
-0.4652843475341797,
-0.3011910915374756,
1.0199648141860962,
0.21065881848335266,
0.36849457025527954,
0.19756488502025604,
0.04262957721948624,
-0.5996866226196289,
-0.16960492730140686,
0.4491860866546631,
0.4614044427871704,
-0.4387151598930359,
-0.05481972172856331,
0.1760529726743698,
-0.5343727469444275,
0.1480778157711029,
-0.10799923539161682,
-0.5238504409790039,
0.011319546028971672,
-0.12913064658641815,
0.6026041507720947,
-0.08403041213750839,
-0.14365918934345245,
0.39706793427467346,
0.05037573352456093,
-0.5464808344841003,
-0.4212658405303955,
0.14839190244674683,
0.28961387276649475,
0.5405639410018921,
-0.022985177114605904,
0.33202800154685974,
0.21419459581375122,
-0.18281340599060059,
0.11713924258947372,
0.5593250393867493,
-0.38378873467445374,
-0.5137089490890503,
1.0359296798706055,
0.07404397428035736,
-0.36435216665267944,
0.3337537944316864,
-0.45673447847366333,
-0.20475110411643982,
0.5090301632881165,
0.8619642853736877,
0.9392892122268677,
-0.22081108391284943,
0.34612366557121277,
0.5975688695907593,
-0.0008761235512793064,
-0.36672791838645935,
0.37380465865135193,
0.046842556446790695,
-0.5766396522521973,
-0.16417860984802246,
-0.7221510410308838,
-0.12691089510917664,
-0.05710927024483681,
-0.6779126524925232,
0.3773522675037384,
-0.523576557636261,
-0.3316412568092346,
-0.42712944746017456,
0.20029042661190033,
-0.6237728595733643,
0.11419425904750824,
-0.046304866671562195,
0.9752124547958374,
-0.9335036277770996,
0.6569826602935791,
0.514632523059845,
-0.4433939754962921,
-0.5635480284690857,
-0.28412213921546936,
-0.0979313775897026,
-0.5325667262077332,
0.4003058075904846,
0.07571607828140259,
-0.3837999999523163,
0.17263929545879364,
-0.7502135038375854,
-0.6679553389549255,
1.4401345252990723,
0.23458778858184814,
-0.49815165996551514,
-0.08633410185575485,
-0.3427457809448242,
0.5056052207946777,
-0.47051092982292175,
0.5746468305587769,
0.2360774129629135,
0.34202811121940613,
0.5871802568435669,
-0.699752151966095,
-0.22509951889514923,
-0.34871354699134827,
0.130775585770607,
0.08087779581546783,
-0.7377015948295593,
0.8458706736564636,
-0.06674426048994064,
-0.3325447738170624,
0.5316511392593384,
0.4957612454891205,
0.5932000279426575,
0.37182673811912537,
0.6446731090545654,
1.1244170665740967,
0.6920126080513,
0.004872774705290794,
0.8941299319267273,
-0.374552458524704,
0.6388130187988281,
0.6331285238265991,
-0.24564553797245026,
0.7230802774429321,
0.3303774893283844,
-0.046182144433259964,
0.7576374411582947,
0.8650999069213867,
0.1438920497894287,
0.8800391554832458,
0.2754914164543152,
-0.5331379771232605,
-0.05954660102725029,
-0.03438101336359978,
-0.7092666625976562,
-0.2094191312789917,
0.13842621445655823,
-0.4796994626522064,
-0.37928637862205505,
0.27005594968795776,
0.04213973134756088,
-0.44698795676231384,
-0.3630368709564209,
0.4169473350048065,
0.05911313742399216,
-0.172573521733284,
0.520478367805481,
0.01780419982969761,
1.0851997137069702,
-0.8566820621490479,
-0.18849672377109528,
0.1479039192199707,
0.19263803958892822,
-0.4312531054019928,
-0.6397632956504822,
0.3813924491405487,
-0.163741797208786,
-0.23311537504196167,
-0.48403146862983704,
0.45960864424705505,
-0.5605241656303406,
-0.5601226687431335,
0.40870341658592224,
0.3999978005886078,
0.43644100427627563,
0.3014054000377655,
-0.9602518677711487,
0.03723153471946716,
-0.12293196469545364,
-0.47681108117103577,
0.07879254966974258,
0.102693110704422,
0.4237310588359833,
0.4458644390106201,
0.34731438755989075,
0.24751999974250793,
0.17668740451335907,
0.07934938371181488,
0.6747439503669739,
-0.37846148014068604,
-0.4470439851284027,
-0.6124418377876282,
0.8460036516189575,
-0.20234324038028717,
-0.4427303373813629,
0.7455652952194214,
0.6582367420196533,
0.833506166934967,
-0.2119053602218628,
0.558710515499115,
-0.24899974465370178,
0.35995522141456604,
-0.5057787299156189,
0.9785559773445129,
-0.8608441352844238,
0.036481745541095734,
-0.4052073657512665,
-0.9307788014411926,
-0.2179507315158844,
1.1992602348327637,
-0.2631029188632965,
0.29682597517967224,
0.3525819182395935,
1.0581542253494263,
-0.33915969729423523,
0.012413439340889454,
0.24577584862709045,
0.24903276562690735,
0.13780446350574493,
0.47657591104507446,
0.8202607035636902,
-0.6002219319343567,
0.1125175952911377,
-0.2839302122592926,
-0.25968679785728455,
-0.009415007196366787,
-0.7825005054473877,
-0.8334828615188599,
-0.5126335024833679,
-0.6602581739425659,
-0.6795322895050049,
-0.025164928287267685,
0.8517066240310669,
1.1785824298858643,
-0.5588849782943726,
-0.20709289610385895,
-0.3834781050682068,
-0.045252662152051926,
-0.22212138772010803,
-0.2402539849281311,
0.19788110256195068,
0.42737796902656555,
-0.8366236686706543,
-0.10002008825540543,
0.022059224545955658,
0.7111923098564148,
-0.45934921503067017,
-0.3639962077140808,
-0.03302749991416931,
-0.40017837285995483,
0.3719603717327118,
0.11043442785739899,
-0.6376437544822693,
-0.12186846882104874,
-0.052662093192338943,
0.26245078444480896,
0.11299508064985275,
0.3040171265602112,
-0.48259496688842773,
0.4984634220600128,
0.33221435546875,
-0.09761443734169006,
0.9494963884353638,
-0.12409961968660355,
0.3822469413280487,
-0.5486783385276794,
0.0037083716597408056,
0.28371110558509827,
0.43470460176467896,
-0.006109282374382019,
-0.3592101037502289,
0.5729545950889587,
0.35073694586753845,
-0.6539541482925415,
-0.7529740333557129,
0.2248784303665161,
-1.1898919343948364,
0.04645850881934166,
1.0240411758422852,
-0.11230465769767761,
-0.4887128174304962,
-0.03764602541923523,
-0.43894270062446594,
0.13414695858955383,
-0.21211105585098267,
0.4969994127750397,
0.7169111371040344,
-0.2905738055706024,
-0.4711764454841614,
-0.7920657396316528,
0.4195290803909302,
0.23948168754577637,
-0.44553452730178833,
-0.035474251955747604,
0.4964534640312195,
0.7599489092826843,
0.3870297968387604,
0.595038652420044,
-0.3077177405357361,
0.16857410967350006,
0.08545268326997757,
0.32692837715148926,
0.015792913734912872,
-0.22302401065826416,
-0.44864001870155334,
0.20797114074230194,
-0.01384367048740387,
-0.28234943747520447
] |
intfloat/e5-large
|
intfloat
| 2023-08-07T04:59:49Z | 8,191 | 59 |
sentence-transformers
|
[
"sentence-transformers",
"pytorch",
"safetensors",
"bert",
"mteb",
"Sentence Transformers",
"sentence-similarity",
"en",
"arxiv:2212.03533",
"arxiv:2104.08663",
"arxiv:2210.07316",
"license:mit",
"model-index",
"endpoints_compatible",
"has_space",
"region:us"
] |
sentence-similarity
| 2022-12-26T06:03:12Z |
---
tags:
- mteb
- Sentence Transformers
- sentence-similarity
- sentence-transformers
model-index:
- name: e5-large
results:
- task:
type: Classification
dataset:
type: mteb/amazon_counterfactual
name: MTEB AmazonCounterfactualClassification (en)
config: en
split: test
revision: e8379541af4e31359cca9fbcf4b00f2671dba205
metrics:
- type: accuracy
value: 77.68656716417911
- type: ap
value: 41.336896075573584
- type: f1
value: 71.788561468075
- task:
type: Classification
dataset:
type: mteb/amazon_polarity
name: MTEB AmazonPolarityClassification
config: default
split: test
revision: e2d317d38cd51312af73b3d32a06d1a08b442046
metrics:
- type: accuracy
value: 90.04965
- type: ap
value: 86.24637009569418
- type: f1
value: 90.03896671762645
- task:
type: Classification
dataset:
type: mteb/amazon_reviews_multi
name: MTEB AmazonReviewsClassification (en)
config: en
split: test
revision: 1399c76144fd37290681b995c656ef9b2e06e26d
metrics:
- type: accuracy
value: 43.016000000000005
- type: f1
value: 42.1942431880186
- task:
type: Retrieval
dataset:
type: arguana
name: MTEB ArguAna
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 25.107000000000003
- type: map_at_10
value: 40.464
- type: map_at_100
value: 41.577999999999996
- type: map_at_1000
value: 41.588
- type: map_at_3
value: 35.301
- type: map_at_5
value: 38.263000000000005
- type: mrr_at_1
value: 25.605
- type: mrr_at_10
value: 40.64
- type: mrr_at_100
value: 41.760000000000005
- type: mrr_at_1000
value: 41.77
- type: mrr_at_3
value: 35.443000000000005
- type: mrr_at_5
value: 38.448
- type: ndcg_at_1
value: 25.107000000000003
- type: ndcg_at_10
value: 49.352000000000004
- type: ndcg_at_100
value: 53.98500000000001
- type: ndcg_at_1000
value: 54.208
- type: ndcg_at_3
value: 38.671
- type: ndcg_at_5
value: 43.991
- type: precision_at_1
value: 25.107000000000003
- type: precision_at_10
value: 7.795000000000001
- type: precision_at_100
value: 0.979
- type: precision_at_1000
value: 0.1
- type: precision_at_3
value: 16.145
- type: precision_at_5
value: 12.262
- type: recall_at_1
value: 25.107000000000003
- type: recall_at_10
value: 77.952
- type: recall_at_100
value: 97.866
- type: recall_at_1000
value: 99.57300000000001
- type: recall_at_3
value: 48.435
- type: recall_at_5
value: 61.309000000000005
- task:
type: Clustering
dataset:
type: mteb/arxiv-clustering-p2p
name: MTEB ArxivClusteringP2P
config: default
split: test
revision: a122ad7f3f0291bf49cc6f4d32aa80929df69d5d
metrics:
- type: v_measure
value: 46.19278045044154
- task:
type: Clustering
dataset:
type: mteb/arxiv-clustering-s2s
name: MTEB ArxivClusteringS2S
config: default
split: test
revision: f910caf1a6075f7329cdf8c1a6135696f37dbd53
metrics:
- type: v_measure
value: 41.37976387757665
- task:
type: Reranking
dataset:
type: mteb/askubuntudupquestions-reranking
name: MTEB AskUbuntuDupQuestions
config: default
split: test
revision: 2000358ca161889fa9c082cb41daa8dcfb161a54
metrics:
- type: map
value: 60.07433334608074
- type: mrr
value: 73.44347711383723
- task:
type: STS
dataset:
type: mteb/biosses-sts
name: MTEB BIOSSES
config: default
split: test
revision: d3fb88f8f02e40887cd149695127462bbcf29b4a
metrics:
- type: cos_sim_pearson
value: 86.4298072183543
- type: cos_sim_spearman
value: 84.73144873582848
- type: euclidean_pearson
value: 85.15885058870728
- type: euclidean_spearman
value: 85.42062106559356
- type: manhattan_pearson
value: 84.89409921792054
- type: manhattan_spearman
value: 85.31941394024344
- task:
type: Classification
dataset:
type: mteb/banking77
name: MTEB Banking77Classification
config: default
split: test
revision: 0fd18e25b25c072e09e0d92ab615fda904d66300
metrics:
- type: accuracy
value: 84.14285714285714
- type: f1
value: 84.11674412565644
- task:
type: Clustering
dataset:
type: mteb/biorxiv-clustering-p2p
name: MTEB BiorxivClusteringP2P
config: default
split: test
revision: 65b79d1d13f80053f67aca9498d9402c2d9f1f40
metrics:
- type: v_measure
value: 37.600076342340785
- task:
type: Clustering
dataset:
type: mteb/biorxiv-clustering-s2s
name: MTEB BiorxivClusteringS2S
config: default
split: test
revision: 258694dd0231531bc1fd9de6ceb52a0853c6d908
metrics:
- type: v_measure
value: 35.08861812135148
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackAndroidRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 32.684000000000005
- type: map_at_10
value: 41.675000000000004
- type: map_at_100
value: 42.963
- type: map_at_1000
value: 43.078
- type: map_at_3
value: 38.708999999999996
- type: map_at_5
value: 40.316
- type: mrr_at_1
value: 39.485
- type: mrr_at_10
value: 47.152
- type: mrr_at_100
value: 47.96
- type: mrr_at_1000
value: 48.010000000000005
- type: mrr_at_3
value: 44.754
- type: mrr_at_5
value: 46.285
- type: ndcg_at_1
value: 39.485
- type: ndcg_at_10
value: 46.849000000000004
- type: ndcg_at_100
value: 52.059
- type: ndcg_at_1000
value: 54.358
- type: ndcg_at_3
value: 42.705
- type: ndcg_at_5
value: 44.663000000000004
- type: precision_at_1
value: 39.485
- type: precision_at_10
value: 8.455
- type: precision_at_100
value: 1.3379999999999999
- type: precision_at_1000
value: 0.178
- type: precision_at_3
value: 19.695
- type: precision_at_5
value: 13.905999999999999
- type: recall_at_1
value: 32.684000000000005
- type: recall_at_10
value: 56.227000000000004
- type: recall_at_100
value: 78.499
- type: recall_at_1000
value: 94.021
- type: recall_at_3
value: 44.157999999999994
- type: recall_at_5
value: 49.694
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackEnglishRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 31.875999999999998
- type: map_at_10
value: 41.603
- type: map_at_100
value: 42.825
- type: map_at_1000
value: 42.961
- type: map_at_3
value: 38.655
- type: map_at_5
value: 40.294999999999995
- type: mrr_at_1
value: 40.127
- type: mrr_at_10
value: 47.959
- type: mrr_at_100
value: 48.59
- type: mrr_at_1000
value: 48.634
- type: mrr_at_3
value: 45.786
- type: mrr_at_5
value: 46.964
- type: ndcg_at_1
value: 40.127
- type: ndcg_at_10
value: 47.176
- type: ndcg_at_100
value: 51.346000000000004
- type: ndcg_at_1000
value: 53.502
- type: ndcg_at_3
value: 43.139
- type: ndcg_at_5
value: 44.883
- type: precision_at_1
value: 40.127
- type: precision_at_10
value: 8.72
- type: precision_at_100
value: 1.387
- type: precision_at_1000
value: 0.188
- type: precision_at_3
value: 20.637
- type: precision_at_5
value: 14.446
- type: recall_at_1
value: 31.875999999999998
- type: recall_at_10
value: 56.54900000000001
- type: recall_at_100
value: 73.939
- type: recall_at_1000
value: 87.732
- type: recall_at_3
value: 44.326
- type: recall_at_5
value: 49.445
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackGamingRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 41.677
- type: map_at_10
value: 52.222
- type: map_at_100
value: 53.229000000000006
- type: map_at_1000
value: 53.288000000000004
- type: map_at_3
value: 49.201
- type: map_at_5
value: 51.00599999999999
- type: mrr_at_1
value: 47.524
- type: mrr_at_10
value: 55.745999999999995
- type: mrr_at_100
value: 56.433
- type: mrr_at_1000
value: 56.464999999999996
- type: mrr_at_3
value: 53.37499999999999
- type: mrr_at_5
value: 54.858
- type: ndcg_at_1
value: 47.524
- type: ndcg_at_10
value: 57.406
- type: ndcg_at_100
value: 61.403
- type: ndcg_at_1000
value: 62.7
- type: ndcg_at_3
value: 52.298
- type: ndcg_at_5
value: 55.02
- type: precision_at_1
value: 47.524
- type: precision_at_10
value: 8.865
- type: precision_at_100
value: 1.179
- type: precision_at_1000
value: 0.134
- type: precision_at_3
value: 22.612
- type: precision_at_5
value: 15.461
- type: recall_at_1
value: 41.677
- type: recall_at_10
value: 69.346
- type: recall_at_100
value: 86.344
- type: recall_at_1000
value: 95.703
- type: recall_at_3
value: 55.789
- type: recall_at_5
value: 62.488
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackGisRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 25.991999999999997
- type: map_at_10
value: 32.804
- type: map_at_100
value: 33.812999999999995
- type: map_at_1000
value: 33.897
- type: map_at_3
value: 30.567
- type: map_at_5
value: 31.599
- type: mrr_at_1
value: 27.797
- type: mrr_at_10
value: 34.768
- type: mrr_at_100
value: 35.702
- type: mrr_at_1000
value: 35.766
- type: mrr_at_3
value: 32.637
- type: mrr_at_5
value: 33.614
- type: ndcg_at_1
value: 27.797
- type: ndcg_at_10
value: 36.966
- type: ndcg_at_100
value: 41.972
- type: ndcg_at_1000
value: 44.139
- type: ndcg_at_3
value: 32.547
- type: ndcg_at_5
value: 34.258
- type: precision_at_1
value: 27.797
- type: precision_at_10
value: 5.514
- type: precision_at_100
value: 0.8340000000000001
- type: precision_at_1000
value: 0.106
- type: precision_at_3
value: 13.333
- type: precision_at_5
value: 9.04
- type: recall_at_1
value: 25.991999999999997
- type: recall_at_10
value: 47.941
- type: recall_at_100
value: 71.039
- type: recall_at_1000
value: 87.32799999999999
- type: recall_at_3
value: 36.01
- type: recall_at_5
value: 40.056000000000004
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackMathematicaRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 17.533
- type: map_at_10
value: 24.336
- type: map_at_100
value: 25.445
- type: map_at_1000
value: 25.561
- type: map_at_3
value: 22.116
- type: map_at_5
value: 23.347
- type: mrr_at_1
value: 21.642
- type: mrr_at_10
value: 28.910999999999998
- type: mrr_at_100
value: 29.836000000000002
- type: mrr_at_1000
value: 29.907
- type: mrr_at_3
value: 26.638
- type: mrr_at_5
value: 27.857
- type: ndcg_at_1
value: 21.642
- type: ndcg_at_10
value: 28.949
- type: ndcg_at_100
value: 34.211000000000006
- type: ndcg_at_1000
value: 37.031
- type: ndcg_at_3
value: 24.788
- type: ndcg_at_5
value: 26.685
- type: precision_at_1
value: 21.642
- type: precision_at_10
value: 5.137
- type: precision_at_100
value: 0.893
- type: precision_at_1000
value: 0.127
- type: precision_at_3
value: 11.733
- type: precision_at_5
value: 8.383000000000001
- type: recall_at_1
value: 17.533
- type: recall_at_10
value: 38.839
- type: recall_at_100
value: 61.458999999999996
- type: recall_at_1000
value: 81.58
- type: recall_at_3
value: 27.328999999999997
- type: recall_at_5
value: 32.168
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackPhysicsRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 28.126
- type: map_at_10
value: 37.872
- type: map_at_100
value: 39.229
- type: map_at_1000
value: 39.353
- type: map_at_3
value: 34.93
- type: map_at_5
value: 36.59
- type: mrr_at_1
value: 34.071
- type: mrr_at_10
value: 43.056
- type: mrr_at_100
value: 43.944
- type: mrr_at_1000
value: 43.999
- type: mrr_at_3
value: 40.536
- type: mrr_at_5
value: 42.065999999999995
- type: ndcg_at_1
value: 34.071
- type: ndcg_at_10
value: 43.503
- type: ndcg_at_100
value: 49.120000000000005
- type: ndcg_at_1000
value: 51.410999999999994
- type: ndcg_at_3
value: 38.767
- type: ndcg_at_5
value: 41.075
- type: precision_at_1
value: 34.071
- type: precision_at_10
value: 7.843999999999999
- type: precision_at_100
value: 1.2489999999999999
- type: precision_at_1000
value: 0.163
- type: precision_at_3
value: 18.223
- type: precision_at_5
value: 13.050999999999998
- type: recall_at_1
value: 28.126
- type: recall_at_10
value: 54.952
- type: recall_at_100
value: 78.375
- type: recall_at_1000
value: 93.29899999999999
- type: recall_at_3
value: 41.714
- type: recall_at_5
value: 47.635
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackProgrammersRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 25.957
- type: map_at_10
value: 34.749
- type: map_at_100
value: 35.929
- type: map_at_1000
value: 36.043
- type: map_at_3
value: 31.947
- type: map_at_5
value: 33.575
- type: mrr_at_1
value: 32.078
- type: mrr_at_10
value: 39.844
- type: mrr_at_100
value: 40.71
- type: mrr_at_1000
value: 40.77
- type: mrr_at_3
value: 37.386
- type: mrr_at_5
value: 38.83
- type: ndcg_at_1
value: 32.078
- type: ndcg_at_10
value: 39.97
- type: ndcg_at_100
value: 45.254
- type: ndcg_at_1000
value: 47.818
- type: ndcg_at_3
value: 35.453
- type: ndcg_at_5
value: 37.631
- type: precision_at_1
value: 32.078
- type: precision_at_10
value: 7.158
- type: precision_at_100
value: 1.126
- type: precision_at_1000
value: 0.153
- type: precision_at_3
value: 16.743
- type: precision_at_5
value: 11.872
- type: recall_at_1
value: 25.957
- type: recall_at_10
value: 50.583
- type: recall_at_100
value: 73.593
- type: recall_at_1000
value: 91.23599999999999
- type: recall_at_3
value: 37.651
- type: recall_at_5
value: 43.626
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 27.1505
- type: map_at_10
value: 34.844833333333334
- type: map_at_100
value: 35.95216666666667
- type: map_at_1000
value: 36.06675
- type: map_at_3
value: 32.41975
- type: map_at_5
value: 33.74233333333333
- type: mrr_at_1
value: 31.923666666666662
- type: mrr_at_10
value: 38.87983333333334
- type: mrr_at_100
value: 39.706250000000004
- type: mrr_at_1000
value: 39.76708333333333
- type: mrr_at_3
value: 36.72008333333333
- type: mrr_at_5
value: 37.96933333333334
- type: ndcg_at_1
value: 31.923666666666662
- type: ndcg_at_10
value: 39.44258333333334
- type: ndcg_at_100
value: 44.31475
- type: ndcg_at_1000
value: 46.75
- type: ndcg_at_3
value: 35.36299999999999
- type: ndcg_at_5
value: 37.242333333333335
- type: precision_at_1
value: 31.923666666666662
- type: precision_at_10
value: 6.643333333333333
- type: precision_at_100
value: 1.0612499999999998
- type: precision_at_1000
value: 0.14575
- type: precision_at_3
value: 15.875250000000001
- type: precision_at_5
value: 11.088916666666664
- type: recall_at_1
value: 27.1505
- type: recall_at_10
value: 49.06349999999999
- type: recall_at_100
value: 70.60841666666666
- type: recall_at_1000
value: 87.72049999999999
- type: recall_at_3
value: 37.60575000000001
- type: recall_at_5
value: 42.511166666666675
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackStatsRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 25.101000000000003
- type: map_at_10
value: 30.147000000000002
- type: map_at_100
value: 30.98
- type: map_at_1000
value: 31.080000000000002
- type: map_at_3
value: 28.571
- type: map_at_5
value: 29.319
- type: mrr_at_1
value: 27.761000000000003
- type: mrr_at_10
value: 32.716
- type: mrr_at_100
value: 33.504
- type: mrr_at_1000
value: 33.574
- type: mrr_at_3
value: 31.135
- type: mrr_at_5
value: 32.032
- type: ndcg_at_1
value: 27.761000000000003
- type: ndcg_at_10
value: 33.358
- type: ndcg_at_100
value: 37.569
- type: ndcg_at_1000
value: 40.189
- type: ndcg_at_3
value: 30.291
- type: ndcg_at_5
value: 31.558000000000003
- type: precision_at_1
value: 27.761000000000003
- type: precision_at_10
value: 4.939
- type: precision_at_100
value: 0.759
- type: precision_at_1000
value: 0.106
- type: precision_at_3
value: 12.577
- type: precision_at_5
value: 8.497
- type: recall_at_1
value: 25.101000000000003
- type: recall_at_10
value: 40.739
- type: recall_at_100
value: 60.089999999999996
- type: recall_at_1000
value: 79.768
- type: recall_at_3
value: 32.16
- type: recall_at_5
value: 35.131
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackTexRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 20.112
- type: map_at_10
value: 26.119999999999997
- type: map_at_100
value: 27.031
- type: map_at_1000
value: 27.150000000000002
- type: map_at_3
value: 24.230999999999998
- type: map_at_5
value: 25.15
- type: mrr_at_1
value: 24.535
- type: mrr_at_10
value: 30.198000000000004
- type: mrr_at_100
value: 30.975
- type: mrr_at_1000
value: 31.051000000000002
- type: mrr_at_3
value: 28.338
- type: mrr_at_5
value: 29.269000000000002
- type: ndcg_at_1
value: 24.535
- type: ndcg_at_10
value: 30.147000000000002
- type: ndcg_at_100
value: 34.544000000000004
- type: ndcg_at_1000
value: 37.512
- type: ndcg_at_3
value: 26.726
- type: ndcg_at_5
value: 28.046
- type: precision_at_1
value: 24.535
- type: precision_at_10
value: 5.179
- type: precision_at_100
value: 0.859
- type: precision_at_1000
value: 0.128
- type: precision_at_3
value: 12.159
- type: precision_at_5
value: 8.424
- type: recall_at_1
value: 20.112
- type: recall_at_10
value: 38.312000000000005
- type: recall_at_100
value: 58.406000000000006
- type: recall_at_1000
value: 79.863
- type: recall_at_3
value: 28.358
- type: recall_at_5
value: 31.973000000000003
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackUnixRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 27.111
- type: map_at_10
value: 34.096
- type: map_at_100
value: 35.181000000000004
- type: map_at_1000
value: 35.276
- type: map_at_3
value: 31.745
- type: map_at_5
value: 33.045
- type: mrr_at_1
value: 31.343
- type: mrr_at_10
value: 37.994
- type: mrr_at_100
value: 38.873000000000005
- type: mrr_at_1000
value: 38.934999999999995
- type: mrr_at_3
value: 35.743
- type: mrr_at_5
value: 37.077
- type: ndcg_at_1
value: 31.343
- type: ndcg_at_10
value: 38.572
- type: ndcg_at_100
value: 43.854
- type: ndcg_at_1000
value: 46.190999999999995
- type: ndcg_at_3
value: 34.247
- type: ndcg_at_5
value: 36.28
- type: precision_at_1
value: 31.343
- type: precision_at_10
value: 6.166
- type: precision_at_100
value: 1
- type: precision_at_1000
value: 0.13
- type: precision_at_3
value: 15.081
- type: precision_at_5
value: 10.428999999999998
- type: recall_at_1
value: 27.111
- type: recall_at_10
value: 48.422
- type: recall_at_100
value: 71.846
- type: recall_at_1000
value: 88.57000000000001
- type: recall_at_3
value: 36.435
- type: recall_at_5
value: 41.765
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackWebmastersRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 26.264
- type: map_at_10
value: 33.522
- type: map_at_100
value: 34.963
- type: map_at_1000
value: 35.175
- type: map_at_3
value: 31.366
- type: map_at_5
value: 32.621
- type: mrr_at_1
value: 31.028
- type: mrr_at_10
value: 37.230000000000004
- type: mrr_at_100
value: 38.149
- type: mrr_at_1000
value: 38.218
- type: mrr_at_3
value: 35.046
- type: mrr_at_5
value: 36.617
- type: ndcg_at_1
value: 31.028
- type: ndcg_at_10
value: 37.964999999999996
- type: ndcg_at_100
value: 43.342000000000006
- type: ndcg_at_1000
value: 46.471000000000004
- type: ndcg_at_3
value: 34.67
- type: ndcg_at_5
value: 36.458
- type: precision_at_1
value: 31.028
- type: precision_at_10
value: 6.937
- type: precision_at_100
value: 1.346
- type: precision_at_1000
value: 0.22799999999999998
- type: precision_at_3
value: 15.942
- type: precision_at_5
value: 11.462
- type: recall_at_1
value: 26.264
- type: recall_at_10
value: 45.571
- type: recall_at_100
value: 70.246
- type: recall_at_1000
value: 90.971
- type: recall_at_3
value: 36.276
- type: recall_at_5
value: 41.162
- task:
type: Retrieval
dataset:
type: BeIR/cqadupstack
name: MTEB CQADupstackWordpressRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 23.372999999999998
- type: map_at_10
value: 28.992
- type: map_at_100
value: 29.837999999999997
- type: map_at_1000
value: 29.939
- type: map_at_3
value: 26.999000000000002
- type: map_at_5
value: 28.044999999999998
- type: mrr_at_1
value: 25.692999999999998
- type: mrr_at_10
value: 30.984
- type: mrr_at_100
value: 31.799
- type: mrr_at_1000
value: 31.875999999999998
- type: mrr_at_3
value: 29.267
- type: mrr_at_5
value: 30.163
- type: ndcg_at_1
value: 25.692999999999998
- type: ndcg_at_10
value: 32.45
- type: ndcg_at_100
value: 37.103
- type: ndcg_at_1000
value: 39.678000000000004
- type: ndcg_at_3
value: 28.725
- type: ndcg_at_5
value: 30.351
- type: precision_at_1
value: 25.692999999999998
- type: precision_at_10
value: 4.806
- type: precision_at_100
value: 0.765
- type: precision_at_1000
value: 0.108
- type: precision_at_3
value: 11.768
- type: precision_at_5
value: 8.096
- type: recall_at_1
value: 23.372999999999998
- type: recall_at_10
value: 41.281
- type: recall_at_100
value: 63.465
- type: recall_at_1000
value: 82.575
- type: recall_at_3
value: 31.063000000000002
- type: recall_at_5
value: 34.991
- task:
type: Retrieval
dataset:
type: climate-fever
name: MTEB ClimateFEVER
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 8.821
- type: map_at_10
value: 15.383
- type: map_at_100
value: 17.244999999999997
- type: map_at_1000
value: 17.445
- type: map_at_3
value: 12.64
- type: map_at_5
value: 13.941999999999998
- type: mrr_at_1
value: 19.544
- type: mrr_at_10
value: 29.738999999999997
- type: mrr_at_100
value: 30.923000000000002
- type: mrr_at_1000
value: 30.969
- type: mrr_at_3
value: 26.384
- type: mrr_at_5
value: 28.199
- type: ndcg_at_1
value: 19.544
- type: ndcg_at_10
value: 22.398
- type: ndcg_at_100
value: 30.253999999999998
- type: ndcg_at_1000
value: 33.876
- type: ndcg_at_3
value: 17.473
- type: ndcg_at_5
value: 19.154
- type: precision_at_1
value: 19.544
- type: precision_at_10
value: 7.217999999999999
- type: precision_at_100
value: 1.564
- type: precision_at_1000
value: 0.22300000000000003
- type: precision_at_3
value: 13.225000000000001
- type: precision_at_5
value: 10.319
- type: recall_at_1
value: 8.821
- type: recall_at_10
value: 28.110000000000003
- type: recall_at_100
value: 55.64
- type: recall_at_1000
value: 75.964
- type: recall_at_3
value: 16.195
- type: recall_at_5
value: 20.678
- task:
type: Retrieval
dataset:
type: dbpedia-entity
name: MTEB DBPedia
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 9.344
- type: map_at_10
value: 20.301
- type: map_at_100
value: 28.709
- type: map_at_1000
value: 30.470999999999997
- type: map_at_3
value: 14.584
- type: map_at_5
value: 16.930999999999997
- type: mrr_at_1
value: 67.25
- type: mrr_at_10
value: 75.393
- type: mrr_at_100
value: 75.742
- type: mrr_at_1000
value: 75.75
- type: mrr_at_3
value: 73.958
- type: mrr_at_5
value: 74.883
- type: ndcg_at_1
value: 56.00000000000001
- type: ndcg_at_10
value: 42.394
- type: ndcg_at_100
value: 47.091
- type: ndcg_at_1000
value: 54.215
- type: ndcg_at_3
value: 46.995
- type: ndcg_at_5
value: 44.214999999999996
- type: precision_at_1
value: 67.25
- type: precision_at_10
value: 33.525
- type: precision_at_100
value: 10.67
- type: precision_at_1000
value: 2.221
- type: precision_at_3
value: 49.417
- type: precision_at_5
value: 42.15
- type: recall_at_1
value: 9.344
- type: recall_at_10
value: 25.209
- type: recall_at_100
value: 52.329
- type: recall_at_1000
value: 74.2
- type: recall_at_3
value: 15.699
- type: recall_at_5
value: 19.24
- task:
type: Classification
dataset:
type: mteb/emotion
name: MTEB EmotionClassification
config: default
split: test
revision: 4f58c6b202a23cf9a4da393831edf4f9183cad37
metrics:
- type: accuracy
value: 48.05
- type: f1
value: 43.06718139212933
- task:
type: Retrieval
dataset:
type: fever
name: MTEB FEVER
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 46.452
- type: map_at_10
value: 58.825
- type: map_at_100
value: 59.372
- type: map_at_1000
value: 59.399
- type: map_at_3
value: 56.264
- type: map_at_5
value: 57.879999999999995
- type: mrr_at_1
value: 49.82
- type: mrr_at_10
value: 62.178999999999995
- type: mrr_at_100
value: 62.641999999999996
- type: mrr_at_1000
value: 62.658
- type: mrr_at_3
value: 59.706
- type: mrr_at_5
value: 61.283
- type: ndcg_at_1
value: 49.82
- type: ndcg_at_10
value: 65.031
- type: ndcg_at_100
value: 67.413
- type: ndcg_at_1000
value: 68.014
- type: ndcg_at_3
value: 60.084
- type: ndcg_at_5
value: 62.858000000000004
- type: precision_at_1
value: 49.82
- type: precision_at_10
value: 8.876000000000001
- type: precision_at_100
value: 1.018
- type: precision_at_1000
value: 0.109
- type: precision_at_3
value: 24.477
- type: precision_at_5
value: 16.208
- type: recall_at_1
value: 46.452
- type: recall_at_10
value: 80.808
- type: recall_at_100
value: 91.215
- type: recall_at_1000
value: 95.52000000000001
- type: recall_at_3
value: 67.62899999999999
- type: recall_at_5
value: 74.32900000000001
- task:
type: Retrieval
dataset:
type: fiqa
name: MTEB FiQA2018
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 18.351
- type: map_at_10
value: 30.796
- type: map_at_100
value: 32.621
- type: map_at_1000
value: 32.799
- type: map_at_3
value: 26.491
- type: map_at_5
value: 28.933999999999997
- type: mrr_at_1
value: 36.265
- type: mrr_at_10
value: 45.556999999999995
- type: mrr_at_100
value: 46.323
- type: mrr_at_1000
value: 46.359
- type: mrr_at_3
value: 42.695
- type: mrr_at_5
value: 44.324000000000005
- type: ndcg_at_1
value: 36.265
- type: ndcg_at_10
value: 38.558
- type: ndcg_at_100
value: 45.18
- type: ndcg_at_1000
value: 48.292
- type: ndcg_at_3
value: 34.204
- type: ndcg_at_5
value: 35.735
- type: precision_at_1
value: 36.265
- type: precision_at_10
value: 10.879999999999999
- type: precision_at_100
value: 1.77
- type: precision_at_1000
value: 0.234
- type: precision_at_3
value: 23.044999999999998
- type: precision_at_5
value: 17.253
- type: recall_at_1
value: 18.351
- type: recall_at_10
value: 46.116
- type: recall_at_100
value: 70.786
- type: recall_at_1000
value: 89.46300000000001
- type: recall_at_3
value: 31.404
- type: recall_at_5
value: 37.678
- task:
type: Retrieval
dataset:
type: hotpotqa
name: MTEB HotpotQA
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 36.847
- type: map_at_10
value: 54.269999999999996
- type: map_at_100
value: 55.152
- type: map_at_1000
value: 55.223
- type: map_at_3
value: 51.166
- type: map_at_5
value: 53.055
- type: mrr_at_1
value: 73.693
- type: mrr_at_10
value: 79.975
- type: mrr_at_100
value: 80.202
- type: mrr_at_1000
value: 80.214
- type: mrr_at_3
value: 78.938
- type: mrr_at_5
value: 79.595
- type: ndcg_at_1
value: 73.693
- type: ndcg_at_10
value: 63.334999999999994
- type: ndcg_at_100
value: 66.452
- type: ndcg_at_1000
value: 67.869
- type: ndcg_at_3
value: 58.829
- type: ndcg_at_5
value: 61.266
- type: precision_at_1
value: 73.693
- type: precision_at_10
value: 13.122
- type: precision_at_100
value: 1.5559999999999998
- type: precision_at_1000
value: 0.174
- type: precision_at_3
value: 37.083
- type: precision_at_5
value: 24.169999999999998
- type: recall_at_1
value: 36.847
- type: recall_at_10
value: 65.61099999999999
- type: recall_at_100
value: 77.792
- type: recall_at_1000
value: 87.17099999999999
- type: recall_at_3
value: 55.625
- type: recall_at_5
value: 60.425
- task:
type: Classification
dataset:
type: mteb/imdb
name: MTEB ImdbClassification
config: default
split: test
revision: 3d86128a09e091d6018b6d26cad27f2739fc2db7
metrics:
- type: accuracy
value: 82.1096
- type: ap
value: 76.67089212843918
- type: f1
value: 82.03535056754939
- task:
type: Retrieval
dataset:
type: msmarco
name: MTEB MSMARCO
config: default
split: dev
revision: None
metrics:
- type: map_at_1
value: 24.465
- type: map_at_10
value: 37.072
- type: map_at_100
value: 38.188
- type: map_at_1000
value: 38.232
- type: map_at_3
value: 33.134
- type: map_at_5
value: 35.453
- type: mrr_at_1
value: 25.142999999999997
- type: mrr_at_10
value: 37.669999999999995
- type: mrr_at_100
value: 38.725
- type: mrr_at_1000
value: 38.765
- type: mrr_at_3
value: 33.82
- type: mrr_at_5
value: 36.111
- type: ndcg_at_1
value: 25.142999999999997
- type: ndcg_at_10
value: 44.054
- type: ndcg_at_100
value: 49.364000000000004
- type: ndcg_at_1000
value: 50.456
- type: ndcg_at_3
value: 36.095
- type: ndcg_at_5
value: 40.23
- type: precision_at_1
value: 25.142999999999997
- type: precision_at_10
value: 6.845
- type: precision_at_100
value: 0.95
- type: precision_at_1000
value: 0.104
- type: precision_at_3
value: 15.204999999999998
- type: precision_at_5
value: 11.221
- type: recall_at_1
value: 24.465
- type: recall_at_10
value: 65.495
- type: recall_at_100
value: 89.888
- type: recall_at_1000
value: 98.165
- type: recall_at_3
value: 43.964
- type: recall_at_5
value: 53.891
- task:
type: Classification
dataset:
type: mteb/mtop_domain
name: MTEB MTOPDomainClassification (en)
config: en
split: test
revision: d80d48c1eb48d3562165c59d59d0034df9fff0bf
metrics:
- type: accuracy
value: 93.86228910168718
- type: f1
value: 93.69177113259104
- task:
type: Classification
dataset:
type: mteb/mtop_intent
name: MTEB MTOPIntentClassification (en)
config: en
split: test
revision: ae001d0e6b1228650b7bd1c2c65fb50ad11a8aba
metrics:
- type: accuracy
value: 76.3999088007296
- type: f1
value: 58.96668664333438
- task:
type: Classification
dataset:
type: mteb/amazon_massive_intent
name: MTEB MassiveIntentClassification (en)
config: en
split: test
revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7
metrics:
- type: accuracy
value: 73.21788836583727
- type: f1
value: 71.4545936552952
- task:
type: Classification
dataset:
type: mteb/amazon_massive_scenario
name: MTEB MassiveScenarioClassification (en)
config: en
split: test
revision: 7d571f92784cd94a019292a1f45445077d0ef634
metrics:
- type: accuracy
value: 77.39071956960323
- type: f1
value: 77.12398952847603
- task:
type: Clustering
dataset:
type: mteb/medrxiv-clustering-p2p
name: MTEB MedrxivClusteringP2P
config: default
split: test
revision: e7a26af6f3ae46b30dde8737f02c07b1505bcc73
metrics:
- type: v_measure
value: 32.255379528166955
- task:
type: Clustering
dataset:
type: mteb/medrxiv-clustering-s2s
name: MTEB MedrxivClusteringS2S
config: default
split: test
revision: 35191c8c0dca72d8ff3efcd72aa802307d469663
metrics:
- type: v_measure
value: 29.66423362872814
- task:
type: Reranking
dataset:
type: mteb/mind_small
name: MTEB MindSmallReranking
config: default
split: test
revision: 3bdac13927fdc888b903db93b2ffdbd90b295a69
metrics:
- type: map
value: 30.782211620375964
- type: mrr
value: 31.773479703044956
- task:
type: Retrieval
dataset:
type: nfcorpus
name: MTEB NFCorpus
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 5.863
- type: map_at_10
value: 13.831
- type: map_at_100
value: 17.534
- type: map_at_1000
value: 19.012
- type: map_at_3
value: 10.143
- type: map_at_5
value: 12.034
- type: mrr_at_1
value: 46.749
- type: mrr_at_10
value: 55.376999999999995
- type: mrr_at_100
value: 56.009
- type: mrr_at_1000
value: 56.042
- type: mrr_at_3
value: 53.30200000000001
- type: mrr_at_5
value: 54.85
- type: ndcg_at_1
value: 44.582
- type: ndcg_at_10
value: 36.07
- type: ndcg_at_100
value: 33.39
- type: ndcg_at_1000
value: 41.884
- type: ndcg_at_3
value: 41.441
- type: ndcg_at_5
value: 39.861000000000004
- type: precision_at_1
value: 46.129999999999995
- type: precision_at_10
value: 26.594
- type: precision_at_100
value: 8.365
- type: precision_at_1000
value: 2.1260000000000003
- type: precision_at_3
value: 39.009
- type: precision_at_5
value: 34.861
- type: recall_at_1
value: 5.863
- type: recall_at_10
value: 17.961
- type: recall_at_100
value: 34.026
- type: recall_at_1000
value: 64.46499999999999
- type: recall_at_3
value: 11.242
- type: recall_at_5
value: 14.493
- task:
type: Retrieval
dataset:
type: nq
name: MTEB NQ
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 38.601
- type: map_at_10
value: 55.293000000000006
- type: map_at_100
value: 56.092
- type: map_at_1000
value: 56.111999999999995
- type: map_at_3
value: 51.269
- type: map_at_5
value: 53.787
- type: mrr_at_1
value: 43.221
- type: mrr_at_10
value: 57.882999999999996
- type: mrr_at_100
value: 58.408
- type: mrr_at_1000
value: 58.421
- type: mrr_at_3
value: 54.765
- type: mrr_at_5
value: 56.809
- type: ndcg_at_1
value: 43.221
- type: ndcg_at_10
value: 62.858999999999995
- type: ndcg_at_100
value: 65.987
- type: ndcg_at_1000
value: 66.404
- type: ndcg_at_3
value: 55.605000000000004
- type: ndcg_at_5
value: 59.723000000000006
- type: precision_at_1
value: 43.221
- type: precision_at_10
value: 9.907
- type: precision_at_100
value: 1.169
- type: precision_at_1000
value: 0.121
- type: precision_at_3
value: 25.019000000000002
- type: precision_at_5
value: 17.474
- type: recall_at_1
value: 38.601
- type: recall_at_10
value: 82.966
- type: recall_at_100
value: 96.154
- type: recall_at_1000
value: 99.223
- type: recall_at_3
value: 64.603
- type: recall_at_5
value: 73.97200000000001
- task:
type: Retrieval
dataset:
type: quora
name: MTEB QuoraRetrieval
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 70.77
- type: map_at_10
value: 84.429
- type: map_at_100
value: 85.04599999999999
- type: map_at_1000
value: 85.065
- type: map_at_3
value: 81.461
- type: map_at_5
value: 83.316
- type: mrr_at_1
value: 81.51
- type: mrr_at_10
value: 87.52799999999999
- type: mrr_at_100
value: 87.631
- type: mrr_at_1000
value: 87.632
- type: mrr_at_3
value: 86.533
- type: mrr_at_5
value: 87.214
- type: ndcg_at_1
value: 81.47999999999999
- type: ndcg_at_10
value: 88.181
- type: ndcg_at_100
value: 89.39200000000001
- type: ndcg_at_1000
value: 89.52
- type: ndcg_at_3
value: 85.29299999999999
- type: ndcg_at_5
value: 86.88
- type: precision_at_1
value: 81.47999999999999
- type: precision_at_10
value: 13.367
- type: precision_at_100
value: 1.5230000000000001
- type: precision_at_1000
value: 0.157
- type: precision_at_3
value: 37.227
- type: precision_at_5
value: 24.494
- type: recall_at_1
value: 70.77
- type: recall_at_10
value: 95.199
- type: recall_at_100
value: 99.37700000000001
- type: recall_at_1000
value: 99.973
- type: recall_at_3
value: 86.895
- type: recall_at_5
value: 91.396
- task:
type: Clustering
dataset:
type: mteb/reddit-clustering
name: MTEB RedditClustering
config: default
split: test
revision: 24640382cdbf8abc73003fb0fa6d111a705499eb
metrics:
- type: v_measure
value: 50.686353396858344
- task:
type: Clustering
dataset:
type: mteb/reddit-clustering-p2p
name: MTEB RedditClusteringP2P
config: default
split: test
revision: 282350215ef01743dc01b456c7f5241fa8937f16
metrics:
- type: v_measure
value: 61.3664675312921
- task:
type: Retrieval
dataset:
type: scidocs
name: MTEB SCIDOCS
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 4.7379999999999995
- type: map_at_10
value: 12.01
- type: map_at_100
value: 14.02
- type: map_at_1000
value: 14.310999999999998
- type: map_at_3
value: 8.459
- type: map_at_5
value: 10.281
- type: mrr_at_1
value: 23.3
- type: mrr_at_10
value: 34.108
- type: mrr_at_100
value: 35.217
- type: mrr_at_1000
value: 35.272
- type: mrr_at_3
value: 30.833
- type: mrr_at_5
value: 32.768
- type: ndcg_at_1
value: 23.3
- type: ndcg_at_10
value: 20.116999999999997
- type: ndcg_at_100
value: 27.961000000000002
- type: ndcg_at_1000
value: 33.149
- type: ndcg_at_3
value: 18.902
- type: ndcg_at_5
value: 16.742
- type: precision_at_1
value: 23.3
- type: precision_at_10
value: 10.47
- type: precision_at_100
value: 2.177
- type: precision_at_1000
value: 0.34299999999999997
- type: precision_at_3
value: 17.567
- type: precision_at_5
value: 14.78
- type: recall_at_1
value: 4.7379999999999995
- type: recall_at_10
value: 21.221999999999998
- type: recall_at_100
value: 44.242
- type: recall_at_1000
value: 69.652
- type: recall_at_3
value: 10.688
- type: recall_at_5
value: 14.982999999999999
- task:
type: STS
dataset:
type: mteb/sickr-sts
name: MTEB SICK-R
config: default
split: test
revision: a6ea5a8cab320b040a23452cc28066d9beae2cee
metrics:
- type: cos_sim_pearson
value: 84.84572946827069
- type: cos_sim_spearman
value: 80.48508130408966
- type: euclidean_pearson
value: 82.0481530027767
- type: euclidean_spearman
value: 80.45902876782752
- type: manhattan_pearson
value: 82.03728222483326
- type: manhattan_spearman
value: 80.45684282911755
- task:
type: STS
dataset:
type: mteb/sts12-sts
name: MTEB STS12
config: default
split: test
revision: a0d554a64d88156834ff5ae9920b964011b16384
metrics:
- type: cos_sim_pearson
value: 84.33476464677516
- type: cos_sim_spearman
value: 75.93057758003266
- type: euclidean_pearson
value: 80.89685744015691
- type: euclidean_spearman
value: 76.29929953441706
- type: manhattan_pearson
value: 80.91391345459995
- type: manhattan_spearman
value: 76.31985463110914
- task:
type: STS
dataset:
type: mteb/sts13-sts
name: MTEB STS13
config: default
split: test
revision: 7e90230a92c190f1bf69ae9002b8cea547a64cca
metrics:
- type: cos_sim_pearson
value: 84.63686106359005
- type: cos_sim_spearman
value: 85.22240034668202
- type: euclidean_pearson
value: 84.6074814189106
- type: euclidean_spearman
value: 85.17169644755828
- type: manhattan_pearson
value: 84.48329306239368
- type: manhattan_spearman
value: 85.0086508544768
- task:
type: STS
dataset:
type: mteb/sts14-sts
name: MTEB STS14
config: default
split: test
revision: 6031580fec1f6af667f0bd2da0a551cf4f0b2375
metrics:
- type: cos_sim_pearson
value: 82.95455774064745
- type: cos_sim_spearman
value: 80.54074646118492
- type: euclidean_pearson
value: 81.79598955554704
- type: euclidean_spearman
value: 80.55837617606814
- type: manhattan_pearson
value: 81.78213797905386
- type: manhattan_spearman
value: 80.5666746878273
- task:
type: STS
dataset:
type: mteb/sts15-sts
name: MTEB STS15
config: default
split: test
revision: ae752c7c21bf194d8b67fd573edf7ae58183cbe3
metrics:
- type: cos_sim_pearson
value: 87.92813309124739
- type: cos_sim_spearman
value: 88.81459873052108
- type: euclidean_pearson
value: 88.21193118930564
- type: euclidean_spearman
value: 88.87072745043731
- type: manhattan_pearson
value: 88.22576929706727
- type: manhattan_spearman
value: 88.8867671095791
- task:
type: STS
dataset:
type: mteb/sts16-sts
name: MTEB STS16
config: default
split: test
revision: 4d8694f8f0e0100860b497b999b3dbed754a0513
metrics:
- type: cos_sim_pearson
value: 83.6881529671839
- type: cos_sim_spearman
value: 85.2807092969554
- type: euclidean_pearson
value: 84.62334178652704
- type: euclidean_spearman
value: 85.2116373296784
- type: manhattan_pearson
value: 84.54948211541777
- type: manhattan_spearman
value: 85.10737722637882
- task:
type: STS
dataset:
type: mteb/sts17-crosslingual-sts
name: MTEB STS17 (en-en)
config: en-en
split: test
revision: af5e6fb845001ecf41f4c1e033ce921939a2a68d
metrics:
- type: cos_sim_pearson
value: 88.55963694458408
- type: cos_sim_spearman
value: 89.36731628848683
- type: euclidean_pearson
value: 89.64975952985465
- type: euclidean_spearman
value: 89.29689484033007
- type: manhattan_pearson
value: 89.61234491713135
- type: manhattan_spearman
value: 89.20302520255782
- task:
type: STS
dataset:
type: mteb/sts22-crosslingual-sts
name: MTEB STS22 (en)
config: en
split: test
revision: 6d1ba47164174a496b7fa5d3569dae26a6813b80
metrics:
- type: cos_sim_pearson
value: 62.411800961903886
- type: cos_sim_spearman
value: 62.99105515749963
- type: euclidean_pearson
value: 65.29826669549443
- type: euclidean_spearman
value: 63.29880964105775
- type: manhattan_pearson
value: 65.00126190601183
- type: manhattan_spearman
value: 63.32011025899179
- task:
type: STS
dataset:
type: mteb/stsbenchmark-sts
name: MTEB STSBenchmark
config: default
split: test
revision: b0fddb56ed78048fa8b90373c8a3cfc37b684831
metrics:
- type: cos_sim_pearson
value: 85.83498531837608
- type: cos_sim_spearman
value: 87.21366640615442
- type: euclidean_pearson
value: 86.74764288798261
- type: euclidean_spearman
value: 87.06060470780834
- type: manhattan_pearson
value: 86.65971223951476
- type: manhattan_spearman
value: 86.99814399831457
- task:
type: Reranking
dataset:
type: mteb/scidocs-reranking
name: MTEB SciDocsRR
config: default
split: test
revision: d3c5e1fc0b855ab6097bf1cda04dd73947d7caab
metrics:
- type: map
value: 83.94448463485881
- type: mrr
value: 95.36291867174221
- task:
type: Retrieval
dataset:
type: scifact
name: MTEB SciFact
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 59.928000000000004
- type: map_at_10
value: 68.577
- type: map_at_100
value: 69.35900000000001
- type: map_at_1000
value: 69.37299999999999
- type: map_at_3
value: 66.217
- type: map_at_5
value: 67.581
- type: mrr_at_1
value: 63
- type: mrr_at_10
value: 69.994
- type: mrr_at_100
value: 70.553
- type: mrr_at_1000
value: 70.56700000000001
- type: mrr_at_3
value: 68.167
- type: mrr_at_5
value: 69.11699999999999
- type: ndcg_at_1
value: 63
- type: ndcg_at_10
value: 72.58
- type: ndcg_at_100
value: 75.529
- type: ndcg_at_1000
value: 76.009
- type: ndcg_at_3
value: 68.523
- type: ndcg_at_5
value: 70.301
- type: precision_at_1
value: 63
- type: precision_at_10
value: 9.333
- type: precision_at_100
value: 1.09
- type: precision_at_1000
value: 0.11299999999999999
- type: precision_at_3
value: 26.444000000000003
- type: precision_at_5
value: 17.067
- type: recall_at_1
value: 59.928000000000004
- type: recall_at_10
value: 83.544
- type: recall_at_100
value: 96
- type: recall_at_1000
value: 100
- type: recall_at_3
value: 72.072
- type: recall_at_5
value: 76.683
- task:
type: PairClassification
dataset:
type: mteb/sprintduplicatequestions-pairclassification
name: MTEB SprintDuplicateQuestions
config: default
split: test
revision: d66bd1f72af766a5cc4b0ca5e00c162f89e8cc46
metrics:
- type: cos_sim_accuracy
value: 99.82178217821782
- type: cos_sim_ap
value: 95.41507679819003
- type: cos_sim_f1
value: 90.9456740442656
- type: cos_sim_precision
value: 91.49797570850203
- type: cos_sim_recall
value: 90.4
- type: dot_accuracy
value: 99.77227722772277
- type: dot_ap
value: 92.50123869445967
- type: dot_f1
value: 88.18414322250638
- type: dot_precision
value: 90.26178010471205
- type: dot_recall
value: 86.2
- type: euclidean_accuracy
value: 99.81782178217821
- type: euclidean_ap
value: 95.3935066749006
- type: euclidean_f1
value: 90.66128218071681
- type: euclidean_precision
value: 91.53924566768603
- type: euclidean_recall
value: 89.8
- type: manhattan_accuracy
value: 99.81881188118813
- type: manhattan_ap
value: 95.39767454613512
- type: manhattan_f1
value: 90.62019477191186
- type: manhattan_precision
value: 92.95478443743428
- type: manhattan_recall
value: 88.4
- type: max_accuracy
value: 99.82178217821782
- type: max_ap
value: 95.41507679819003
- type: max_f1
value: 90.9456740442656
- task:
type: Clustering
dataset:
type: mteb/stackexchange-clustering
name: MTEB StackExchangeClustering
config: default
split: test
revision: 6cbc1f7b2bc0622f2e39d2c77fa502909748c259
metrics:
- type: v_measure
value: 64.96313921233748
- task:
type: Clustering
dataset:
type: mteb/stackexchange-clustering-p2p
name: MTEB StackExchangeClusteringP2P
config: default
split: test
revision: 815ca46b2622cec33ccafc3735d572c266efdb44
metrics:
- type: v_measure
value: 33.602625720956745
- task:
type: Reranking
dataset:
type: mteb/stackoverflowdupquestions-reranking
name: MTEB StackOverflowDupQuestions
config: default
split: test
revision: e185fbe320c72810689fc5848eb6114e1ef5ec69
metrics:
- type: map
value: 51.32659230651731
- type: mrr
value: 52.33861726508785
- task:
type: Summarization
dataset:
type: mteb/summeval
name: MTEB SummEval
config: default
split: test
revision: cda12ad7615edc362dbf25a00fdd61d3b1eaf93c
metrics:
- type: cos_sim_pearson
value: 31.01587644214203
- type: cos_sim_spearman
value: 30.974306908731013
- type: dot_pearson
value: 29.83339853838187
- type: dot_spearman
value: 30.07761671934048
- task:
type: Retrieval
dataset:
type: trec-covid
name: MTEB TRECCOVID
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 0.22
- type: map_at_10
value: 1.9539999999999997
- type: map_at_100
value: 11.437
- type: map_at_1000
value: 27.861000000000004
- type: map_at_3
value: 0.6479999999999999
- type: map_at_5
value: 1.0410000000000001
- type: mrr_at_1
value: 84
- type: mrr_at_10
value: 90.333
- type: mrr_at_100
value: 90.333
- type: mrr_at_1000
value: 90.333
- type: mrr_at_3
value: 90.333
- type: mrr_at_5
value: 90.333
- type: ndcg_at_1
value: 80
- type: ndcg_at_10
value: 78.31700000000001
- type: ndcg_at_100
value: 59.396
- type: ndcg_at_1000
value: 52.733
- type: ndcg_at_3
value: 81.46900000000001
- type: ndcg_at_5
value: 80.74
- type: precision_at_1
value: 84
- type: precision_at_10
value: 84
- type: precision_at_100
value: 60.980000000000004
- type: precision_at_1000
value: 23.432
- type: precision_at_3
value: 87.333
- type: precision_at_5
value: 86.8
- type: recall_at_1
value: 0.22
- type: recall_at_10
value: 2.156
- type: recall_at_100
value: 14.557999999999998
- type: recall_at_1000
value: 49.553999999999995
- type: recall_at_3
value: 0.685
- type: recall_at_5
value: 1.121
- task:
type: Retrieval
dataset:
type: webis-touche2020
name: MTEB Touche2020
config: default
split: test
revision: None
metrics:
- type: map_at_1
value: 3.373
- type: map_at_10
value: 11.701
- type: map_at_100
value: 17.144000000000002
- type: map_at_1000
value: 18.624
- type: map_at_3
value: 6.552
- type: map_at_5
value: 9.372
- type: mrr_at_1
value: 38.775999999999996
- type: mrr_at_10
value: 51.975
- type: mrr_at_100
value: 52.873999999999995
- type: mrr_at_1000
value: 52.873999999999995
- type: mrr_at_3
value: 47.619
- type: mrr_at_5
value: 50.578
- type: ndcg_at_1
value: 36.735
- type: ndcg_at_10
value: 27.212999999999997
- type: ndcg_at_100
value: 37.245
- type: ndcg_at_1000
value: 48.602000000000004
- type: ndcg_at_3
value: 30.916
- type: ndcg_at_5
value: 30.799
- type: precision_at_1
value: 38.775999999999996
- type: precision_at_10
value: 23.469
- type: precision_at_100
value: 7.327
- type: precision_at_1000
value: 1.486
- type: precision_at_3
value: 31.973000000000003
- type: precision_at_5
value: 32.245000000000005
- type: recall_at_1
value: 3.373
- type: recall_at_10
value: 17.404
- type: recall_at_100
value: 46.105000000000004
- type: recall_at_1000
value: 80.35
- type: recall_at_3
value: 7.4399999999999995
- type: recall_at_5
value: 12.183
- task:
type: Classification
dataset:
type: mteb/toxic_conversations_50k
name: MTEB ToxicConversationsClassification
config: default
split: test
revision: d7c0de2777da35d6aae2200a62c6e0e5af397c4c
metrics:
- type: accuracy
value: 70.5592
- type: ap
value: 14.330910591410134
- type: f1
value: 54.45745186286521
- task:
type: Classification
dataset:
type: mteb/tweet_sentiment_extraction
name: MTEB TweetSentimentExtractionClassification
config: default
split: test
revision: d604517c81ca91fe16a244d1248fc021f9ecee7a
metrics:
- type: accuracy
value: 61.20543293718167
- type: f1
value: 61.45365480309872
- task:
type: Clustering
dataset:
type: mteb/twentynewsgroups-clustering
name: MTEB TwentyNewsgroupsClustering
config: default
split: test
revision: 6125ec4e24fa026cec8a478383ee943acfbd5449
metrics:
- type: v_measure
value: 43.81162998944145
- task:
type: PairClassification
dataset:
type: mteb/twittersemeval2015-pairclassification
name: MTEB TwitterSemEval2015
config: default
split: test
revision: 70970daeab8776df92f5ea462b6173c0b46fd2d1
metrics:
- type: cos_sim_accuracy
value: 86.69011146212075
- type: cos_sim_ap
value: 76.09792353652536
- type: cos_sim_f1
value: 70.10202763786646
- type: cos_sim_precision
value: 68.65671641791045
- type: cos_sim_recall
value: 71.60949868073878
- type: dot_accuracy
value: 85.33110806461227
- type: dot_ap
value: 70.19304383327554
- type: dot_f1
value: 67.22494202525122
- type: dot_precision
value: 65.6847935548842
- type: dot_recall
value: 68.83905013192611
- type: euclidean_accuracy
value: 86.5410979316922
- type: euclidean_ap
value: 75.91906915651882
- type: euclidean_f1
value: 69.6798975672215
- type: euclidean_precision
value: 67.6865671641791
- type: euclidean_recall
value: 71.79419525065963
- type: manhattan_accuracy
value: 86.60070334386363
- type: manhattan_ap
value: 75.94617413885031
- type: manhattan_f1
value: 69.52689565780946
- type: manhattan_precision
value: 68.3312101910828
- type: manhattan_recall
value: 70.76517150395777
- type: max_accuracy
value: 86.69011146212075
- type: max_ap
value: 76.09792353652536
- type: max_f1
value: 70.10202763786646
- task:
type: PairClassification
dataset:
type: mteb/twitterurlcorpus-pairclassification
name: MTEB TwitterURLCorpus
config: default
split: test
revision: 8b6510b0b1fa4e4c4f879467980e9be563ec1cdf
metrics:
- type: cos_sim_accuracy
value: 89.25951798812434
- type: cos_sim_ap
value: 86.31476416599727
- type: cos_sim_f1
value: 78.52709971038477
- type: cos_sim_precision
value: 76.7629972792117
- type: cos_sim_recall
value: 80.37419156144134
- type: dot_accuracy
value: 88.03896456708192
- type: dot_ap
value: 83.26963599196237
- type: dot_f1
value: 76.72696459492317
- type: dot_precision
value: 73.56411162133521
- type: dot_recall
value: 80.17400677548507
- type: euclidean_accuracy
value: 89.21682772538519
- type: euclidean_ap
value: 86.29306071289969
- type: euclidean_f1
value: 78.40827030519554
- type: euclidean_precision
value: 77.42250243939053
- type: euclidean_recall
value: 79.41946412072683
- type: manhattan_accuracy
value: 89.22458959133776
- type: manhattan_ap
value: 86.2901934710645
- type: manhattan_f1
value: 78.54211378440453
- type: manhattan_precision
value: 76.85505858079729
- type: manhattan_recall
value: 80.30489682784109
- type: max_accuracy
value: 89.25951798812434
- type: max_ap
value: 86.31476416599727
- type: max_f1
value: 78.54211378440453
language:
- en
license: mit
---
## E5-large
**News (May 2023): please switch to [e5-large-v2](https://huggingface.co/intfloat/e5-large-v2), which has better performance and same method of usage.**
[Text Embeddings by Weakly-Supervised Contrastive Pre-training](https://arxiv.org/pdf/2212.03533.pdf).
Liang Wang, Nan Yang, Xiaolong Huang, Binxing Jiao, Linjun Yang, Daxin Jiang, Rangan Majumder, Furu Wei, arXiv 2022
This model has 24 layers and the embedding size is 1024.
## Usage
Below is an example to encode queries and passages from the MS-MARCO passage ranking dataset.
```python
import torch.nn.functional as F
from torch import Tensor
from transformers import AutoTokenizer, AutoModel
def average_pool(last_hidden_states: Tensor,
attention_mask: Tensor) -> Tensor:
last_hidden = last_hidden_states.masked_fill(~attention_mask[..., None].bool(), 0.0)
return last_hidden.sum(dim=1) / attention_mask.sum(dim=1)[..., None]
# Each input text should start with "query: " or "passage: ".
# For tasks other than retrieval, you can simply use the "query: " prefix.
input_texts = ['query: how much protein should a female eat',
'query: summit define',
"passage: As a general guideline, the CDC's average requirement of protein for women ages 19 to 70 is 46 grams per day. But, as you can see from this chart, you'll need to increase that if you're expecting or training for a marathon. Check out the chart below to see how much protein you should be eating each day.",
"passage: Definition of summit for English Language Learners. : 1 the highest point of a mountain : the top of a mountain. : 2 the highest level. : 3 a meeting or series of meetings between the leaders of two or more governments."]
tokenizer = AutoTokenizer.from_pretrained('intfloat/e5-large')
model = AutoModel.from_pretrained('intfloat/e5-large')
# Tokenize the input texts
batch_dict = tokenizer(input_texts, max_length=512, padding=True, truncation=True, return_tensors='pt')
outputs = model(**batch_dict)
embeddings = average_pool(outputs.last_hidden_state, batch_dict['attention_mask'])
# normalize embeddings
embeddings = F.normalize(embeddings, p=2, dim=1)
scores = (embeddings[:2] @ embeddings[2:].T) * 100
print(scores.tolist())
```
## Training Details
Please refer to our paper at [https://arxiv.org/pdf/2212.03533.pdf](https://arxiv.org/pdf/2212.03533.pdf).
## Benchmark Evaluation
Check out [unilm/e5](https://github.com/microsoft/unilm/tree/master/e5) to reproduce evaluation results
on the [BEIR](https://arxiv.org/abs/2104.08663) and [MTEB benchmark](https://arxiv.org/abs/2210.07316).
## Support for Sentence Transformers
Below is an example for usage with sentence_transformers.
```python
from sentence_transformers import SentenceTransformer
model = SentenceTransformer('intfloat/e5-large')
input_texts = [
'query: how much protein should a female eat',
'query: summit define',
"passage: As a general guideline, the CDC's average requirement of protein for women ages 19 to 70 is 46 grams per day. But, as you can see from this chart, you'll need to increase that if you're expecting or training for a marathon. Check out the chart below to see how much protein you should be eating each day.",
"passage: Definition of summit for English Language Learners. : 1 the highest point of a mountain : the top of a mountain. : 2 the highest level. : 3 a meeting or series of meetings between the leaders of two or more governments."
]
embeddings = model.encode(input_texts, normalize_embeddings=True)
```
Package requirements
`pip install sentence_transformers~=2.2.2`
Contributors: [michaelfeil](https://huggingface.co/michaelfeil)
## FAQ
**1. Do I need to add the prefix "query: " and "passage: " to input texts?**
Yes, this is how the model is trained, otherwise you will see a performance degradation.
Here are some rules of thumb:
- Use "query: " and "passage: " correspondingly for asymmetric tasks such as passage retrieval in open QA, ad-hoc information retrieval.
- Use "query: " prefix for symmetric tasks such as semantic similarity, paraphrase retrieval.
- Use "query: " prefix if you want to use embeddings as features, such as linear probing classification, clustering.
**2. Why are my reproduced results slightly different from reported in the model card?**
Different versions of `transformers` and `pytorch` could cause negligible but non-zero performance differences.
**3. Why does the cosine similarity scores distribute around 0.7 to 1.0?**
This is a known and expected behavior as we use a low temperature 0.01 for InfoNCE contrastive loss.
For text embedding tasks like text retrieval or semantic similarity,
what matters is the relative order of the scores instead of the absolute values,
so this should not be an issue.
## Citation
If you find our paper or models helpful, please consider cite as follows:
```
@article{wang2022text,
title={Text Embeddings by Weakly-Supervised Contrastive Pre-training},
author={Wang, Liang and Yang, Nan and Huang, Xiaolong and Jiao, Binxing and Yang, Linjun and Jiang, Daxin and Majumder, Rangan and Wei, Furu},
journal={arXiv preprint arXiv:2212.03533},
year={2022}
}
```
## Limitations
This model only works for English texts. Long texts will be truncated to at most 512 tokens.
|
[
-0.1432790458202362,
-0.6850662231445312,
0.20030400156974792,
0.23326389491558075,
-0.2456216961145401,
-0.444383442401886,
-0.01737857051193714,
-0.46064329147338867,
0.06943763792514801,
0.2956235706806183,
-0.4736970067024231,
-0.6002584099769592,
-0.9740324020385742,
0.2843226492404938,
-0.3670847713947296,
0.9168646335601807,
-0.0015148441307246685,
0.08105368167161942,
-0.35882678627967834,
-0.04346683621406555,
-0.23004618287086487,
-0.5539879202842712,
-0.38139647245407104,
-0.31502968072891235,
0.35750821232795715,
0.2140693962574005,
0.5545991063117981,
0.5546332597732544,
0.6937174201011658,
0.3457894027233124,
-0.12352702766656876,
0.1558682918548584,
-0.5516743659973145,
-0.14543521404266357,
-0.0022555976174771786,
-0.5173195004463196,
-0.436431884765625,
0.20185105502605438,
0.49304863810539246,
0.7912222743034363,
0.15951736271381378,
0.27914467453956604,
0.35040339827537537,
0.5432202219963074,
-0.6029571890830994,
0.17963488399982452,
-0.412229984998703,
0.16240578889846802,
0.10559485107660294,
-0.008855197578668594,
-0.3841342628002167,
0.16567572951316833,
0.36378204822540283,
-0.5870587825775146,
0.2709236443042755,
0.14184130728244781,
1.2361876964569092,
0.30187487602233887,
-0.4609348177909851,
-0.16801418364048004,
-0.14202316105365753,
0.9750770926475525,
-0.6800839900970459,
0.4857243299484253,
0.659649670124054,
-0.22275258600711823,
-0.09378624707460403,
-0.9445725679397583,
-0.39442679286003113,
-0.19109390676021576,
-0.19935671985149384,
0.1794614940881729,
-0.2356424331665039,
-0.04365215077996254,
0.43603411316871643,
0.4287490248680115,
-0.8045450448989868,
-0.026806414127349854,
-0.3858174681663513,
-0.10602721571922302,
0.5215139389038086,
0.10640210658311844,
0.27812638878822327,
-0.42368200421333313,
-0.21559901535511017,
-0.2820909023284912,
-0.5503339171409607,
0.018612464889883995,
0.19792769849300385,
0.35515913367271423,
-0.3672392964363098,
0.5328402519226074,
-0.2867444157600403,
0.6031959652900696,
0.20233194530010223,
0.08876100182533264,
0.6824468970298767,
-0.5039895176887512,
-0.26501473784446716,
-0.21871019899845123,
0.9437344670295715,
0.5433220267295837,
0.1203460767865181,
-0.09746754169464111,
-0.04028661921620369,
-0.09599826484918594,
0.07919676601886749,
-1.1218810081481934,
-0.49526119232177734,
0.22858868539333344,
-0.6417925357818604,
-0.17793473601341248,
0.11404043436050415,
-0.5467456579208374,
-0.07208304852247238,
-0.27199476957321167,
0.8700125813484192,
-0.5325829982757568,
0.10193837434053421,
0.2630690634250641,
-0.23039878904819489,
0.15210968255996704,
0.16748498380184174,
-0.8243358731269836,
0.29680436849594116,
0.1392141878604889,
0.8772691488265991,
-0.08124644309282303,
-0.39449238777160645,
-0.5171518325805664,
-0.057592347264289856,
0.04170270636677742,
0.47790688276290894,
-0.35568472743034363,
-0.22071591019630432,
0.034822672605514526,
0.4104081690311432,
-0.4455416202545166,
-0.4799920320510864,
0.5676653385162354,
-0.30994531512260437,
0.43482428789138794,
-0.2764773368835449,
-0.5348506569862366,
-0.060302816331386566,
0.24801817536354065,
-0.43938714265823364,
1.0230292081832886,
0.05492327734827995,
-0.9267727136611938,
0.1443265974521637,
-0.44609060883522034,
-0.3722280263900757,
-0.17122085392475128,
-0.04349764063954353,
-0.5027173757553101,
-0.12447938323020935,
0.4932028353214264,
0.42027100920677185,
-0.1417558789253235,
0.0008386427070945501,
-0.09224824607372284,
-0.5088862180709839,
0.18702811002731323,
-0.17070907354354858,
0.8346281051635742,
0.11178317666053772,
-0.45541101694107056,
-0.16538476943969727,
-0.6918456554412842,
0.05127021297812462,
0.15093600749969482,
-0.4372318983078003,
-0.0982028916478157,
0.10675051063299179,
0.024433447048068047,
0.3003126382827759,
0.3921239376068115,
-0.48197948932647705,
0.18724143505096436,
-0.4891975522041321,
0.734600305557251,
0.5379639267921448,
0.05463116988539696,
0.426098495721817,
-0.39407381415367126,
0.09306935220956802,
0.3600113093852997,
0.08550366014242172,
-0.013291600160300732,
-0.48973357677459717,
-0.7565755844116211,
-0.11291226744651794,
0.5798907279968262,
0.49803826212882996,
-0.45781514048576355,
0.570283830165863,
-0.33886438608169556,
-0.2891820967197418,
-0.6629812121391296,
0.08059965819120407,
0.1987951397895813,
0.33670929074287415,
0.7825700044631958,
-0.0943770706653595,
-0.6721963882446289,
-0.9669862389564514,
-0.2978441119194031,
0.17933569848537445,
-0.264936238527298,
0.23115471005439758,
0.8756461143493652,
-0.32485365867614746,
0.5514042973518372,
-0.6751264929771423,
-0.4522289037704468,
-0.2142740786075592,
0.08943916112184525,
0.3732316792011261,
0.7343785762786865,
0.3780447244644165,
-0.8672370314598083,
-0.4519863724708557,
-0.4969964027404785,
-0.8650417327880859,
0.06701017916202545,
0.10494841635227203,
-0.21671590209007263,
-0.048897042870521545,
0.5099115967750549,
-0.6459795832633972,
0.3089260756969452,
0.5139522552490234,
-0.4341886043548584,
0.26355642080307007,
-0.29547548294067383,
0.14379797875881195,
-1.0392588376998901,
0.015412358567118645,
0.187029168009758,
-0.21019110083580017,
-0.34283754229545593,
0.142885223031044,
0.010303376242518425,
-0.15383420884609222,
-0.4659770429134369,
0.27887189388275146,
-0.5696921348571777,
0.20762525498867035,
-0.08005993813276291,
0.3269239366054535,
0.3075619339942932,
0.48206627368927,
-0.12029062211513519,
0.574370265007019,
0.5522873997688293,
-0.8322566747665405,
0.03794468194246292,
0.6485678553581238,
-0.36559662222862244,
0.3094709515571594,
-0.8664799332618713,
0.11358442157506943,
-0.0420353077352047,
0.28130605816841125,
-0.8954058885574341,
-0.1886233687400818,
0.265153169631958,
-0.662267804145813,
0.32253164052963257,
0.02496800757944584,
-0.5152023434638977,
-0.3293995261192322,
-0.5338606834411621,
0.22575411200523376,
0.532904326915741,
-0.3761681616306305,
0.4587690532207489,
0.2225583791732788,
0.031233476474881172,
-0.5275622010231018,
-1.017056941986084,
-0.097862608730793,
-0.038416653871536255,
-0.6572226881980896,
0.7216894030570984,
-0.1868806779384613,
0.21870163083076477,
0.031096164137125015,
-0.14993445575237274,
0.21083016693592072,
-0.15114834904670715,
0.22763846814632416,
0.022299425676465034,
0.007968625985085964,
0.08988551795482635,
-0.12075673788785934,
-0.03972052410244942,
0.027668671682476997,
-0.28322529792785645,
0.5594645738601685,
-0.2737452983856201,
0.116566501557827,
-0.5771624445915222,
0.4872942566871643,
0.20491653680801392,
-0.25321269035339355,
1.0876364707946777,
0.8300713300704956,
-0.3556737005710602,
0.10628210008144379,
-0.3238075375556946,
-0.34061524271965027,
-0.4681069552898407,
0.6308139562606812,
-0.5379313230514526,
-0.5474570393562317,
0.3817524015903473,
0.04686631262302399,
-0.06580355018377304,
0.8744977116584778,
0.3170000910758972,
-0.2770492732524872,
1.2904508113861084,
0.6972371339797974,
0.13963553309440613,
0.4246598780155182,
-0.6725912094116211,
0.07392407953739166,
-0.9487621784210205,
-0.330691397190094,
-0.6174412369728088,
-0.4688106179237366,
-0.8203266859054565,
-0.42271989583969116,
0.3333494961261749,
0.1936536282300949,
-0.4827176332473755,
0.34142184257507324,
-0.5524457693099976,
0.09005600959062576,
0.5058667659759521,
0.5291620492935181,
0.04769697040319443,
0.15897125005722046,
-0.1497669219970703,
-0.3733733296394348,
-0.887462854385376,
-0.3334525525569916,
0.9987257122993469,
0.28812503814697266,
0.6970807909965515,
-0.03580616042017937,
0.6220186948776245,
0.11071950197219849,
-0.11970850080251694,
-0.6466597318649292,
0.5493645071983337,
-0.3985772132873535,
-0.3018609285354614,
-0.1604032665491104,
-0.6768890023231506,
-1.0393182039260864,
0.4215904772281647,
-0.4151080250740051,
-0.6763761043548584,
0.14846473932266235,
-0.1492891013622284,
-0.23018211126327515,
0.12129047513008118,
-0.8970047235488892,
1.0320855379104614,
0.03502777963876724,
-0.3482910990715027,
-0.011281539686024189,
-0.661270260810852,
-0.20915374159812927,
0.33140698075294495,
0.12737257778644562,
0.028152385726571083,
-0.0776427760720253,
1.0413411855697632,
-0.2882133722305298,
0.9023946523666382,
-0.08313415944576263,
0.3719770610332489,
0.07149329781532288,
-0.20058944821357727,
0.5620353817939758,
-0.17890304327011108,
-0.10338377207517624,
0.23568235337734222,
0.05260710418224335,
-0.579380452632904,
-0.333344966173172,
0.7907149791717529,
-1.1988599300384521,
-0.5465025305747986,
-0.5294405221939087,
-0.46064049005508423,
0.09033035486936569,
0.14019814133644104,
0.6355918049812317,
0.460568368434906,
0.12972824275493622,
0.5659633874893188,
0.5618268251419067,
-0.38656705617904663,
0.3338528275489807,
0.27783969044685364,
0.09875596314668655,
-0.42446163296699524,
0.7105234265327454,
0.42539823055267334,
0.18501190841197968,
0.666972279548645,
0.23797206580638885,
-0.32070255279541016,
-0.5390218496322632,
-0.14739061892032623,
0.41477808356285095,
-0.6662789583206177,
-0.1843399554491043,
-1.0857512950897217,
-0.30572250485420227,
-0.6078708171844482,
-0.007888281717896461,
-0.2398393601179123,
-0.37840449810028076,
-0.36881476640701294,
-0.04912428557872772,
0.17404331266880035,
0.35460928082466125,
-0.05358108505606651,
0.26771149039268494,
-0.6416388154029846,
0.30399104952812195,
0.046240080147981644,
0.06394533067941666,
-0.15236854553222656,
-0.9165874719619751,
-0.4067525267601013,
0.11118943989276886,
-0.6126492619514465,
-0.8623966574668884,
0.39825111627578735,
0.42406755685806274,
0.579774022102356,
0.09532927721738815,
0.0978872999548912,
0.6147875189781189,
-0.3604408800601959,
0.9571719169616699,
0.14108893275260925,
-0.8752805590629578,
0.6265479922294617,
-0.08531031012535095,
0.6745019555091858,
0.47845321893692017,
0.7511107921600342,
-0.3454240560531616,
-0.35697245597839355,
-0.7567357420921326,
-1.086074948310852,
0.6101117730140686,
0.3901066184043884,
0.20531193912029266,
-0.06475824862718582,
0.29212141036987305,
-0.02619142085313797,
0.23696745932102203,
-1.0611236095428467,
-0.3340442478656769,
-0.3540499806404114,
-0.2852965295314789,
-0.19018793106079102,
-0.19996614754199982,
0.02056925930082798,
-0.5830332636833191,
0.8138612508773804,
-0.03670581802725792,
0.6583595871925354,
0.5425845980644226,
-0.44929370284080505,
0.08319688588380814,
0.04447731748223305,
0.28710946440696716,
0.5749475359916687,
-0.41345974802970886,
0.28768330812454224,
0.36732542514801025,
-0.6511204838752747,
-0.1753721386194229,
0.22136040031909943,
-0.20666244626045227,
0.034823160618543625,
0.4760981798171997,
0.7201393842697144,
0.3115304112434387,
-0.3188636302947998,
0.591242790222168,
0.030891893431544304,
-0.3641122281551361,
-0.09682194143533707,
-0.038390886038541794,
0.1671997755765915,
0.1873755156993866,
0.40237078070640564,
-0.049881670624017715,
0.17166873812675476,
-0.6071967482566833,
0.07878969609737396,
-0.043152302503585815,
-0.37411534786224365,
-0.29030153155326843,
0.6782560348510742,
0.24448513984680176,
-0.07336686551570892,
0.9913720488548279,
-0.1099436804652214,
-0.5354033708572388,
0.4718173146247864,
0.7070145606994629,
0.6232515573501587,
-0.1269281655550003,
0.16648651659488678,
0.8689475655555725,
0.36892059445381165,
0.004841135814785957,
0.18534326553344727,
0.20534084737300873,
-0.6424561738967896,
-0.2877894341945648,
-0.8768574595451355,
-0.0329459011554718,
0.2526963949203491,
-0.4647727608680725,
0.21774154901504517,
-0.06424898654222488,
-0.2769228219985962,
0.041864361613988876,
0.46081429719924927,
-0.9307524561882019,
0.2655261158943176,
-0.0545225664973259,
0.7181958556175232,
-0.8563076853752136,
0.5018704533576965,
0.7775511145591736,
-0.7903615832328796,
-0.6919293403625488,
-0.009669209830462933,
-0.3295665979385376,
-0.5457856059074402,
0.6850997805595398,
0.5117368102073669,
0.1396700143814087,
0.05962308496236801,
-0.5543577075004578,
-0.6992192268371582,
1.143749713897705,
0.16890642046928406,
-0.5128616094589233,
-0.28379303216934204,
0.28013935685157776,
0.41579633951187134,
-0.4630557596683502,
0.4987720847129822,
0.33396705985069275,
0.32547062635421753,
-0.05636826530098915,
-0.6852958798408508,
0.25746649503707886,
-0.3102932572364807,
-0.09639321267604828,
-0.11001261323690414,
-0.703277587890625,
1.1207573413848877,
-0.24865540862083435,
-0.04396496340632439,
0.04457507282495499,
0.6199333667755127,
0.07271497696638107,
0.07206381112337112,
0.3826667070388794,
0.5990590453147888,
0.6500400304794312,
-0.06807912141084671,
1.1921286582946777,
-0.26840224862098694,
0.5229002237319946,
0.7687282562255859,
0.2867166996002197,
0.8717808127403259,
0.4415067732334137,
-0.3503331243991852,
0.651786744594574,
0.82564377784729,
-0.14266367256641388,
0.6821795701980591,
0.13174889981746674,
0.1217927485704422,
-0.28624099493026733,
0.04449255391955376,
-0.6211063265800476,
0.344204843044281,
0.17519327998161316,
-0.6292131543159485,
-0.16700711846351624,
0.06887727230787277,
0.09848376363515854,
-0.16971233487129211,
-0.20356976985931396,
0.4673382043838501,
0.4689580798149109,
-0.44009125232696533,
0.9163225293159485,
0.1099257618188858,
0.6991968154907227,
-0.6660677194595337,
0.16527439653873444,
-0.1774548441171646,
0.39575761556625366,
-0.30798083543777466,
-0.5808311104774475,
0.11036322265863419,
-0.1276836395263672,
-0.2825958728790283,
-0.12630155682563782,
0.529082179069519,
-0.5504353046417236,
-0.4528009295463562,
0.3395504057407379,
0.5005651712417603,
0.26146814227104187,
-0.2681666612625122,
-1.0072600841522217,
0.09581553936004639,
0.010867693461477757,
-0.4038535952568054,
0.46930986642837524,
0.21380862593650818,
0.23890624940395355,
0.49002885818481445,
0.4829937815666199,
-0.13848473131656647,
-0.06453769654035568,
0.18724235892295837,
0.7832834124565125,
-0.6285249590873718,
-0.5547695159912109,
-0.7962178587913513,
0.36378297209739685,
-0.26203542947769165,
-0.33989956974983215,
0.8087158203125,
0.6584629416465759,
0.7494427561759949,
-0.16534769535064697,
0.45161181688308716,
-0.047476913779973984,
0.11345906555652618,
-0.5742738842964172,
0.6147875785827637,
-0.6790515780448914,
-0.0581187941133976,
-0.26875483989715576,
-1.0190131664276123,
-0.19119355082511902,
0.8155198693275452,
-0.48845431208610535,
0.14174342155456543,
0.9400973916053772,
0.7409482002258301,
-0.20171640813350677,
-0.12115151435136795,
0.22661347687244415,
0.5757753252983093,
0.3114720284938812,
0.7967633605003357,
0.5192129015922546,
-1.0869697332382202,
0.719536304473877,
-0.11141320317983627,
-0.2020825445652008,
-0.21065708994865417,
-0.7468500733375549,
-0.8305209875106812,
-0.6393134593963623,
-0.5813227891921997,
-0.3962160050868988,
0.14557863771915436,
0.9483922719955444,
0.7293214797973633,
-0.592968761920929,
-0.09886882454156876,
0.04616295546293259,
-0.1825220137834549,
-0.35149410367012024,
-0.22977010905742645,
0.5794088244438171,
-0.3722054064273834,
-0.8997178077697754,
0.1729540079832077,
-0.17213734984397888,
0.076175756752491,
0.11325275897979736,
-0.0811489149928093,
-0.606370747089386,
-0.036145325750112534,
0.7164629101753235,
-0.10201679170131683,
-0.37222763895988464,
-0.3989742696285248,
-0.01673850789666176,
-0.33978766202926636,
0.1549091935157776,
0.12233418226242065,
-0.6181491017341614,
0.243930846452713,
0.6480665802955627,
0.4318345785140991,
0.9753840565681458,
-0.045494407415390015,
0.41912558674812317,
-0.6565009951591492,
0.13166062533855438,
0.10203868895769119,
0.32982367277145386,
0.526341438293457,
-0.2751084268093109,
0.45884373784065247,
0.3665500283241272,
-0.6038008332252502,
-0.5902031064033508,
-0.12295432388782501,
-0.9612089991569519,
-0.23359723389148712,
1.0165983438491821,
-0.1708616018295288,
-0.3178143799304962,
0.1463724970817566,
-0.08249976485967636,
0.351658433675766,
-0.28508585691452026,
0.7192297577857971,
0.8066827058792114,
-0.11185672134160995,
-0.08865481615066528,
-0.742007315158844,
0.5129008889198303,
0.47592365741729736,
-0.5209705829620361,
-0.36747971177101135,
0.07130061089992523,
0.4468088448047638,
0.15941832959651947,
0.4795081615447998,
-0.1610507071018219,
0.022037379443645477,
0.3112418055534363,
-0.06408734619617462,
-0.047570642083883286,
-0.1321748048067093,
-0.07259899377822876,
0.19229502975940704,
-0.25398823618888855,
-0.32299405336380005
] |
fergusq/finbert-finnsentiment
|
fergusq
| 2023-03-24T11:14:28Z | 8,188 | 2 |
transformers
|
[
"transformers",
"pytorch",
"safetensors",
"bert",
"text-classification",
"fi",
"arxiv:2012.02613",
"license:cc-by-4.0",
"endpoints_compatible",
"region:us"
] |
text-classification
| 2022-03-02T23:29:05Z |
---
language: fi
license: cc-by-4.0
---
# FinBERT fine-tuned with the FinnSentiment dataset
This is a FinBERT model fine-tuned with the [FinnSentiment dataset](https://arxiv.org/pdf/2012.02613.pdf). 90% of sentences were used for training and 10% for evaluation.
## Evaluation results
|Metric|Score|
|--|--|
|Accuracy|0.8639028475711893|
|F1-score|0.8643024701696561|
|Precision|0.8653866541244811|
|Recall|0.8639028475711893|
|Matthews|0.6764924917164834|

## License
FinBERT-FinnSentiment is licensed under the [CC BY 4.0 License](https://creativecommons.org/licenses/by/4.0/deed.en) (same as FinBERT and the FinnSentiment dataset).
|
[
-0.07039676606655121,
-0.4979226887226105,
0.6125603318214417,
0.3231468200683594,
-0.33292505145072937,
-0.15788942575454712,
-0.3785235285758972,
-0.28429749608039856,
0.12778349220752716,
0.6730496883392334,
-0.6113021969795227,
-1.07045578956604,
-0.5034221410751343,
-0.07197567820549011,
-0.3019999563694,
1.1764293909072876,
-0.04002240300178528,
0.556697428226471,
-0.08880526572465897,
-0.27282842993736267,
-0.4125286936759949,
-0.31317347288131714,
-0.7280399203300476,
-0.4530307948589325,
0.523810863494873,
0.6186321377754211,
0.2702982723712921,
0.5708256363868713,
0.8330923318862915,
0.1927458792924881,
0.14674803614616394,
-0.19968420267105103,
-0.5714194178581238,
0.11554702371358871,
-0.021676575765013695,
-0.3896767199039459,
-0.5860860347747803,
0.04102599620819092,
0.7571674585342407,
0.6295730471611023,
-0.0788402259349823,
0.47251439094543457,
-0.22197943925857544,
0.9423663020133972,
-0.5804078578948975,
0.3969845771789551,
-0.38329073786735535,
0.11312068998813629,
-0.045558683574199677,
0.015004971995949745,
-0.22424188256263733,
-0.40930572152137756,
-0.026551874354481697,
-0.8801132440567017,
0.33103564381599426,
0.21740543842315674,
1.0392513275146484,
0.265826940536499,
-0.28469640016555786,
-0.023649659007787704,
-0.5607315897941589,
0.8274165987968445,
-0.7081950902938843,
0.35249340534210205,
0.4195541441440582,
0.3360508680343628,
0.06619641184806824,
-0.9279724359512329,
-0.39210695028305054,
-0.19990725815296173,
-0.09701789915561676,
0.34988272190093994,
-0.17453095316886902,
0.13431262969970703,
0.5089196562767029,
0.2961979806423187,
-0.596994936466217,
0.09323150664567947,
-0.7389271259307861,
-0.2969469726085663,
0.9094478487968445,
0.2646965980529785,
-0.20963095128536224,
-0.18916650116443634,
-0.6354963779449463,
-0.5467383861541748,
-0.2773652970790863,
0.3355388045310974,
0.5088943243026733,
0.3902623951435089,
-0.14266562461853027,
0.9815344214439392,
-0.40309926867485046,
0.9452012777328491,
-0.03173134848475456,
0.3325059711933136,
0.6345296502113342,
-0.3344297707080841,
-0.35127148032188416,
0.15021544694900513,
1.0833948850631714,
0.9954859614372253,
0.6487140655517578,
0.18483248353004456,
-0.6857450008392334,
-0.01917509362101555,
0.35746005177497864,
-0.8595638275146484,
-0.5097702145576477,
0.0920364186167717,
-0.4535447955131531,
-0.4820692837238312,
0.4034639298915863,
-0.5462706685066223,
0.12769681215286255,
-0.3154674768447876,
0.6609034538269043,
-0.7106569409370422,
0.17352718114852905,
0.4460904896259308,
-0.23878173530101776,
0.06832956522703171,
0.054988376796245575,
-0.9184591770172119,
0.2766799032688141,
0.5797595381736755,
1.0224171876907349,
0.22462643682956696,
-0.04970721900463104,
-0.4575670659542084,
-0.2553682029247284,
-0.2940486669540405,
0.676758885383606,
-0.1656288206577301,
-0.3354186713695526,
-0.19158534705638885,
0.12710052728652954,
-0.1358623504638672,
-0.13661441206932068,
0.8636974096298218,
-0.3985784649848938,
0.5889630913734436,
0.022495221346616745,
-0.9893769025802612,
-0.145158588886261,
0.046236325055360794,
-0.8061265349388123,
0.9472635984420776,
0.47682005167007446,
-0.721881628036499,
0.6344103813171387,
-1.0818140506744385,
-0.11425362527370453,
0.035158220678567886,
-0.06855714321136475,
-0.647071361541748,
-0.05315585806965828,
0.021047629415988922,
0.7629414796829224,
0.09029664099216461,
0.31612545251846313,
-0.34635356068611145,
-0.4871126115322113,
0.32256022095680237,
-0.23255495727062225,
0.8113306164741516,
0.42987024784088135,
-0.21223455667495728,
0.021283866837620735,
-0.9584132432937622,
0.22839291393756866,
-0.11683115363121033,
-0.24565215408802032,
-0.3480337858200073,
-0.5865240693092346,
0.49356409907341003,
0.10046623647212982,
0.48432523012161255,
-1.011082410812378,
0.03276245296001434,
-0.3363250195980072,
0.3011424243450165,
0.6434487700462341,
0.21200063824653625,
0.2672930061817169,
-0.5992820858955383,
0.3894910514354706,
-0.1394907683134079,
0.4717244505882263,
0.12369008362293243,
-0.20701517164707184,
-0.6592019200325012,
-0.30907002091407776,
0.5924656987190247,
0.5122292637825012,
-0.3681112229824066,
0.8607415556907654,
-0.4448931813240051,
-0.8868138790130615,
-0.5470352172851562,
-0.05264735594391823,
0.2710570991039276,
0.7901245951652527,
0.31507161259651184,
-0.14094075560569763,
-0.4725881516933441,
-1.2030327320098877,
-0.05932477489113808,
-0.22231218218803406,
-0.20187917351722717,
0.1273525506258011,
0.7047868967056274,
0.1528647243976593,
1.0283458232879639,
-0.7189911007881165,
-0.06904026865959167,
0.2332139015197754,
0.18651659786701202,
0.4113066494464874,
0.7526640892028809,
0.6996468305587769,
-1.0246307849884033,
-0.5270333886146545,
-0.15532639622688293,
-0.6370571851730347,
-0.21656383574008942,
-0.14452192187309265,
-0.19772833585739136,
0.22581970691680908,
0.3885243833065033,
-0.3573637306690216,
0.33748817443847656,
0.2934034466743469,
-0.8560330867767334,
0.7793029546737671,
-0.2420220971107483,
0.20438608527183533,
-1.2067352533340454,
0.6622796058654785,
0.2819037437438965,
-0.537163257598877,
-0.39223960041999817,
-0.16016896069049835,
0.2003680169582367,
0.13111673295497894,
-0.5104097127914429,
0.5327737927436829,
-0.11920415610074997,
-0.017077457159757614,
0.19748841226100922,
0.020987505093216896,
0.10713905841112137,
0.4155556261539459,
0.007175653241574764,
0.7019922137260437,
0.3860568404197693,
-0.5013800859451294,
0.6543346643447876,
0.48513996601104736,
-0.9113343954086304,
0.5568220019340515,
-0.9344823956489563,
-0.2445724755525589,
0.1389022171497345,
-0.1445765495300293,
-0.7301784157752991,
-0.3485264182090759,
0.25693705677986145,
-0.6628133058547974,
-0.02805302105844021,
0.16015847027301788,
-0.4047952890396118,
-0.06873029470443726,
-0.6138825416564941,
0.10487266629934311,
0.4468352496623993,
-0.23921950161457062,
-0.0709446594119072,
0.16363245248794556,
-0.0737210065126419,
-0.8267683386802673,
-0.9147334694862366,
-0.3557474613189697,
-0.2796463966369629,
-0.5307076573371887,
0.39915913343429565,
-0.26555514335632324,
-0.31446558237075806,
0.2549033761024475,
-0.02743452414870262,
-0.08033297955989838,
0.041933655738830566,
0.4454742670059204,
0.6885125041007996,
-0.41846176981925964,
0.30281272530555725,
-0.1690315157175064,
-0.1903732717037201,
-0.11206364631652832,
-0.08149691671133041,
0.5825419425964355,
-0.35478708148002625,
-0.013477391563355923,
-0.5668978095054626,
-0.08364437520503998,
0.848064661026001,
0.14830856025218964,
0.8073340058326721,
0.8183033466339111,
-0.3749740421772003,
0.1625717133283615,
-0.33718734979629517,
-0.2918127477169037,
-0.4269452393054962,
0.1409377008676529,
-0.24737420678138733,
-1.1838061809539795,
0.6416997313499451,
0.243855819106102,
0.10913796722888947,
1.0277202129364014,
0.17437013983726501,
-0.39609667658805847,
0.6973182559013367,
0.5305079817771912,
-0.071895070374012,
0.6788452863693237,
-0.6451959013938904,
-0.14775967597961426,
-0.8928288817405701,
-0.40138718485832214,
-0.4149640202522278,
-0.6298742890357971,
-0.8892152905464172,
0.31473448872566223,
0.19024579226970673,
0.3453969657421112,
-0.5943177342414856,
0.6602373719215393,
-0.3939274847507477,
0.38023972511291504,
0.5580450296401978,
0.17654947936534882,
0.13690820336341858,
0.13827528059482574,
-0.42419764399528503,
-0.13708527386188507,
-0.6284452080726624,
-0.6808052659034729,
1.2370368242263794,
0.3248721659183502,
0.7325565218925476,
-0.19781313836574554,
0.7018687725067139,
0.5826025605201721,
-0.004567066673189402,
-0.6643493175506592,
0.41661059856414795,
-0.5913534760475159,
-0.7220942974090576,
-0.5685891509056091,
-0.6012688875198364,
-1.0387358665466309,
-0.16903619468212128,
-0.6276700496673584,
-0.7369531393051147,
0.08268635720014572,
0.1484445184469223,
-0.7685450911521912,
0.15069788694381714,
-0.645514190196991,
1.2757632732391357,
-0.2493857741355896,
-0.37355318665504456,
-0.2227087765932083,
-0.6760810017585754,
0.07688376307487488,
-0.19940544664859772,
0.009051675908267498,
-0.4559238851070404,
-0.07446499913930893,
0.9939523935317993,
-0.44052526354789734,
0.8009554147720337,
-0.3506036400794983,
0.23992076516151428,
0.08272173255681992,
-0.4091392755508423,
0.1963338553905487,
0.25853174924850464,
-0.23709160089492798,
-0.045240480452775955,
0.3788814842700958,
-0.49776285886764526,
-0.6180903911590576,
0.6708677411079407,
-0.8621352910995483,
0.15122663974761963,
-0.4266337454319,
-0.4565179944038391,
0.17416489124298096,
0.2991539239883423,
0.5334140658378601,
0.6153156161308289,
-0.6024379134178162,
0.4796927273273468,
0.4167552888393402,
0.1077597588300705,
0.35825619101524353,
0.6631594300270081,
-0.28795358538627625,
-0.5757673382759094,
0.7951096296310425,
0.11617216467857361,
0.23347069323062897,
0.41169899702072144,
0.06114402785897255,
-0.5032848119735718,
-0.1978762000799179,
-0.1277640461921692,
0.2789755165576935,
-0.5347626209259033,
-0.26542797684669495,
-0.4603721797466278,
-0.4988466203212738,
-0.5076872110366821,
-0.39061665534973145,
-0.33862704038619995,
-0.9852458834648132,
-0.49056369066238403,
-0.27063125371932983,
0.7728000283241272,
0.6702894568443298,
-0.26870086789131165,
0.6663057208061218,
-0.734460711479187,
-0.11435465514659882,
0.08346347510814667,
0.5768323540687561,
-0.5042092204093933,
-0.5570489168167114,
-0.4486853778362274,
0.06291361153125763,
-0.04910099878907204,
-0.179117813706398,
0.3452550768852234,
0.23267297446727753,
0.560831606388092,
0.23591287434101105,
0.190720334649086,
0.27822476625442505,
-0.2140941619873047,
0.8946565985679626,
0.2776314318180084,
-0.7291762232780457,
0.6385591626167297,
-0.41209372878074646,
0.478047639131546,
1.0873242616653442,
0.30625978112220764,
-0.7907850742340088,
-0.44661232829093933,
-1.1876708269119263,
-0.9717409610748291,
0.5469269156455994,
0.3215892016887665,
-0.1008669063448906,
0.41304346919059753,
0.41976338624954224,
0.32932162284851074,
0.3395148813724518,
-0.6790592670440674,
-0.13648603856563568,
-0.18872906267642975,
-0.6316209435462952,
-0.4437299370765686,
-0.08290447294712067,
-0.012777917087078094,
-0.37312066555023193,
0.7717363238334656,
0.05106598883867264,
0.33249586820602417,
0.26774585247039795,
-0.07042577117681503,
-0.06961191445589066,
0.023077450692653656,
1.1118881702423096,
0.6599996089935303,
-0.8775261640548706,
-0.076316237449646,
0.03029821254312992,
-0.8044097423553467,
-0.09282703697681427,
0.050007496029138565,
-0.22078996896743774,
0.21853619813919067,
0.7863706946372986,
1.372356653213501,
0.25290167331695557,
-0.5933610200881958,
0.5993440747261047,
-0.3248894214630127,
-0.3868556320667267,
-0.8227559924125671,
0.5217192769050598,
-0.3615567088127136,
0.5061665177345276,
0.30391016602516174,
0.4366680979728699,
-0.046079788357019424,
0.027843233197927475,
0.6181994080543518,
0.1722220778465271,
-0.6560871005058289,
-0.27033698558807373,
0.630781352519989,
0.011760743334889412,
-0.30564427375793457,
0.6919398307800293,
0.00484843086451292,
-0.4627317190170288,
0.5812395215034485,
0.3700981140136719,
0.8306739926338196,
0.09026525169610977,
0.3799823820590973,
0.75736004114151,
0.36322909593582153,
-0.23533599078655243,
0.7291792035102844,
0.11019021272659302,
-0.9203619956970215,
-0.3367028832435608,
-0.7886289954185486,
-0.29536759853363037,
0.44264283776283264,
-1.0602089166641235,
0.4138947129249573,
-0.5300495028495789,
-0.4786050021648407,
0.21684806048870087,
0.37791308760643005,
-0.8599265217781067,
0.41425901651382446,
-0.253060519695282,
1.374086856842041,
-1.1384475231170654,
0.7048779726028442,
0.6923039555549622,
-0.31532448530197144,
-0.6197879910469055,
-0.24677212536334991,
-0.48865416646003723,
-0.7767044305801392,
0.6360028386116028,
0.27439916133880615,
-0.0012601311318576336,
0.21741800010204315,
-0.7683163285255432,
-0.6884959936141968,
1.4620180130004883,
0.3908390998840332,
-0.9613876938819885,
0.47733616828918457,
-0.0890163704752922,
0.6651932597160339,
-0.6675491333007812,
0.09918878972530365,
0.6061715483665466,
0.6217687726020813,
-0.11736301332712173,
-0.9243583083152771,
-0.37310710549354553,
-0.3410317003726959,
-0.13193431496620178,
0.11320190131664276,
-0.8125072121620178,
0.6813772916793823,
-0.06681857258081436,
-0.009903522208333015,
-0.1078818216919899,
0.5817671418190002,
0.24442873895168304,
0.4721003472805023,
0.6670615077018738,
0.6946671605110168,
0.7583999633789062,
-0.1236908808350563,
0.90912926197052,
-0.4902381896972656,
0.6948552131652832,
1.1809245347976685,
0.004978920798748732,
0.8487229347229004,
0.36898893117904663,
-0.07291122525930405,
0.4413532316684723,
0.8401159644126892,
-0.5838954448699951,
0.7598459124565125,
0.01996365748345852,
-0.26496726274490356,
-0.23699934780597687,
0.05410927161574364,
-0.08859336376190186,
0.5883771777153015,
0.3126797080039978,
-0.5361447930335999,
0.02569492906332016,
0.05068988353013992,
-0.03898417204618454,
0.10205782949924469,
-0.4070686399936676,
0.49695706367492676,
0.01018956396728754,
-0.384129136800766,
0.40074774622917175,
-0.00016495907038915902,
0.7147327661514282,
-0.5031350255012512,
0.18242689967155457,
-0.04891527071595192,
0.08704305440187454,
-0.20281535387039185,
-1.2198913097381592,
0.1890542209148407,
0.31726622581481934,
-0.20005711913108826,
-0.2554943859577179,
0.9271823167800903,
-0.6499024629592896,
-0.9414671659469604,
0.08520577102899551,
0.2787342667579651,
0.3769378662109375,
0.2864515483379364,
-0.6695413589477539,
-0.21490933001041412,
0.12525346875190735,
-0.34502890706062317,
-0.3625414967536926,
0.30909931659698486,
0.09833210706710815,
0.561882495880127,
0.49887245893478394,
0.3009171485900879,
-0.16040381789207458,
0.07102138549089432,
0.5695667862892151,
-0.6667489409446716,
-0.3895606994628906,
-1.033513069152832,
0.7075815200805664,
-0.5087742805480957,
-0.870616614818573,
0.5078784227371216,
1.0745819807052612,
1.1124399900436401,
-0.344277560710907,
0.5937219262123108,
-0.02267635613679886,
0.5080939531326294,
-0.9892829060554504,
0.9990615248680115,
-0.5593735575675964,
-0.15259307622909546,
-0.017177974805235863,
-0.8928671479225159,
-0.5334423780441284,
0.9105857014656067,
-0.2584906816482544,
-0.026420457288622856,
0.6413882374763489,
0.6711367964744568,
-0.003240312449634075,
0.07207239419221878,
0.46838900446891785,
0.03476423770189285,
0.02565857395529747,
0.4817480444908142,
0.3937455415725708,
-0.4990033507347107,
0.09690531343221664,
-0.4461319148540497,
-0.11198539286851883,
-0.2880510985851288,
-0.8925623893737793,
-0.8206941485404968,
-0.9027931094169617,
-0.3113928735256195,
-0.054266203194856644,
0.07458960264921188,
1.0861848592758179,
0.45210719108581543,
-1.0258370637893677,
-0.33125361800193787,
0.026449570432305336,
-0.2500835359096527,
-0.0986558124423027,
-0.25836947560310364,
0.4854210913181305,
-0.18167389929294586,
-0.5354697108268738,
0.11622188985347748,
-0.08928456157445908,
0.3481909930706024,
-0.07655347883701324,
-0.017645258456468582,
-0.37561899423599243,
-0.30586564540863037,
0.2627269923686981,
-0.031096572056412697,
-0.2252475619316101,
-0.6314958333969116,
0.18275348842144012,
-0.33618998527526855,
0.040016792714595795,
0.580909013748169,
-0.5109809637069702,
0.4498458504676819,
0.4783368706703186,
0.28015169501304626,
0.6600239872932434,
0.09918432682752609,
0.6900535821914673,
-0.898865818977356,
0.02820664271712303,
0.2596187889575958,
0.4119642972946167,
0.529975175857544,
-0.4779282808303833,
0.8826189637184143,
0.36036354303359985,
-0.7706246972084045,
-0.6672345995903015,
-0.326492577791214,
-1.1762263774871826,
0.06631013751029968,
0.7686700820922852,
-0.015591545030474663,
-0.27156051993370056,
0.4115629196166992,
-0.07771333307027817,
0.5496211647987366,
-0.6960689425468445,
0.7137280106544495,
1.1028800010681152,
-0.2558555603027344,
0.059537362307310104,
-0.8935868144035339,
0.4698549211025238,
0.24482452869415283,
-0.407948762178421,
-0.12189178913831711,
0.4958570599555969,
0.4519534111022949,
0.27725130319595337,
0.4651835858821869,
0.17441856861114502,
0.2801884114742279,
-0.0706917941570282,
0.34772032499313354,
-0.19224989414215088,
-0.2593051791191101,
-0.5007579326629639,
-0.1419176161289215,
-0.016113417223095894,
-0.679250180721283
] |
kfkas/Llama-2-ko-7b-Chat
|
kfkas
| 2023-09-20T08:21:34Z | 8,187 | 55 |
transformers
|
[
"transformers",
"pytorch",
"llama",
"text-generation",
"facebook",
"meta",
"llama-2",
"kollama",
"llama-2-ko",
"llama-2-ko-chat",
"en",
"ko",
"arxiv:2307.09288",
"has_space",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-07-25T11:56:27Z |
---
language:
- en
- ko
pipeline_tag: text-generation
inference: false
tags:
- facebook
- meta
- pytorch
- llama
- llama-2
- kollama
- llama-2-ko
- llama-2-ko-chat
---
# **Llama-2-Ko-Chat** 🦙🇰🇷
<img src=https://github.com/boostcampaitech5/level2_klue-nlp-08/assets/96530685/9dc3a02a-f554-42c7-9aa7-e7bd8c8870b7 style="max-width: 700px; width: 100%" />
Llama-2-Ko-7b-Chat은 [beomi/llama-2-ko-7b 40B](https://huggingface.co/beomi/llama-2-ko-7b)를 토대로 만들어졌습니다. 학습 데이터는 [nlpai-lab/kullm-v2](https://huggingface.co/datasets/nlpai-lab/kullm-v2)를 통해 학습하였습니다. 아직 학습이 진행 중이며 추후 [beomi/llama-2-ko-7b](https://huggingface.co/beomi/llama-2-ko-7b)의 업데이트에 따라 추가로 훈련을 진행할 계획입니다. 이 모델은 [Naver BoostCamp NLP-08](https://github.com/boostcampaitech5/level3_nlp_finalproject-nlp-08) 프로젝트를 토대로 만들어졌습니다.
프로젝트 링크 : [LLaMA](https://github.com/boostcampaitech5/level3_nlp_finalproject-nlp-08)
## Model Details
**Backbone Model** beomi/llama-2-ko-7b
**Model Developers** [Taemin Kim (kfkas)](https://github.com/taemin6697), [Juwon Kim (uomnf97)](https://github.com/Kim-Ju-won)
**data** nlpai-lab/kullm-v2
**prompts** kullm
**Input** Models input text only.
**Output** Models generate text only.
---
| Model | 질문 : 캠핑 여행에 필요한 10가지 품목의 목록을 생성합니다. |
|--------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Llama-2-7b-chat-hf | `[Hello! As a helpful and respectful assistant, I'd be happy to help you with your camping trip. To ensure a safe and enjoyable experience, here is a list of 10 essential items you may need for your camping trip:Tent: A sturdy, waterproof tent to provide shelter and protection from the elements.Sleeping Bag: A warm, insulated sleeping bag to keep you cozy during the night.Sleeping Pad: A comfortable sleeping pad to provide extra cushioning and insulation.Backpack: A sturdy, comfortable backpack to carry all your gear.Clothing: Pack layers of breathable, moisture-wicking clothing to stay warm and dry.Footwear: Sturdy, waterproof hiking boots or shoes to protect your feet and provide traction.Headlamp: A reliable, battery-powered headlamp to light your way during the night.First Aid Kit: A well-stocked first aid kit to treat any injuries or illnesses.Water Bottle: A refillable, BPA-free water bottle to stay hydrated.Personal Hygiene Items: Toothbrush, toothpaste, biodegradable soap, and toilet paper to maintain personal hygiene.]` |
| Llama-2-ko | `[3일용 캠핑장 용품 - 의류 (5일) : 속옷 , 잠옷, 긴팔 및 반팔이 필요하므로 준비하기!\u200b- 식량 (9일 이상)- 연료 (6일 사용 예정이지만 최소 7 일분 보유해야 합니다.)\u200b- 텐트/거주지역 : 20 ~ 40 평방 미터가 필요합니다.- 물 탱크 (물탱커 / 수족관 )\u200b캠핑에 사용할 8 명 (남자 4명 / 여자 4명이 필요합니다!).이 작업에는 두 개의 조건 부가가 있습니다.(조건 1) 모든 아이템 목록에서 중복 제거를위한 1 번 반복.이 옵션은 중복을 식별하여 제거할뿐만 아니라 추가 항목이 포함 된 카운트를 재설정 할 때 유용하군요.(조건 = "모든 아이템 리스트에서 한 개 이상의 동일 아이템" 이거나 "(모든 항목)"에서 동일한 숫자 값으로 식별 된)\u200b(조건 2) 작업시 각 행이 하나의 아이템 만 포함 할 필요가 없으므로 아이템이 서로 다른 선행자 로부터 여러 번]` |
| Llama-2-ko-Chat | `[1) 텐트 - 가장 기본적이면서 유용한 장비 중 하나이며 캠핑 여행을 편안하게 해줍니다.2) 베개 및 침대 시트와 같이 푹신한 수면 용품을 챙기는 것도 잊지 마세요!3) 매트리스 - 편안함과 지지력을 제공하여 잠을 잘 자게 합니다.4) 의류 - 땀을 흘리고 휴식하는 시간을 늘리기 위해 방수재질이 포함된 긴팔옷과 반바지를 챙겨요5) 식기 세트 - 야외 조리에서 음식을 먹으려면 반드시 챙겨야 할 도구지요.6) 스토브와 연료 또는 휴대용 가스 렌턴 등 열 기구를 가져옵니다; 음식 조리에 매우 편리하게 사용할 수 있습니다.7) 랜턴, 플래시 또는 LED 스탠드를 준비하세요! 어두운 밤에 더 안전하도록 돕고, 야외에서 요리하고 놀 때 필수적인 필수 소품이 될 것입니다.8) 손전등 - 밤늦게 이동할 수도 있고 숲속 오솔길을 걸을 때도 이용할 것이므로 반드시 가지고 있어야 해요.9) 구급약상자 - 다양한 상해에 대비해서 알칼리 미스트, 소독제, 항생제, 연고 등 일반적이고 인기 있는 구급 약물을 항상 비축해야 해요. 캠프에서는 응급 상황에 처하더라도 쉽게 찾을 수 있도록 상자에 담습니다.10) 휴대폰 보조 배터리/충전기 또는 충전 가능한 외부 콘센트나 연결된 외부 전원장치 - 이것은 스마트폰이나 스마트 워치를 위한 필수품일 뿐만 아니라 다른 사람들이 필요로 하는 상황에서 긴급 연락이 되도록 도와 줄 수도 있다는 점 기억하세요.]` |
---
| Model | 질문 : 삼원색에 대해 알려줘 |
|--------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Llama-2-7b-chat-hf | `[Regarding your question, "삼원색에 대해 알려줘" (which means "Tell me about trichromacy" in Korean), I can provide some information. Trichromacy is a concept in vision science that refers to the ability of the human visual system to perceive and distinguish between three primary colors: red, green, and blue...]` |
| Llama-2-ko | `[C1, R0.625 G8 B275\u200b3-4, 삼각형 그리기.\u200b아래에는 삼각형을 그림니다 (그림을 그려야 할 영역의 좌표를 지정) - 명령어와 함께 사용되는 문자열로 입력할 좌표 값과 동일한 결과를 얻음 - 예를 들어 "X=-19. Y=0" 으로 입력을 하면 좌표값을 지정된 값과 같게 출력을 한다. ##########################\u200b##3_0-6-1, 좌표 입력으로 텍스트 파일을 생성하라(ex C4 D6 E10 A10 )-명령문에서 각 문자를 입력과 동일하다. -이 명령은 현재 수행중인 프로그램을 종료한다.-파일은 실행 가능한 파일과 일치할]` |
| Llama-2-ko-Chat | `[물체를 인식하고 색상에 대한 시각적인 이미지를 생성하기 위해 두 개의 눈은 서로 반대쪽 방향에서 물체의 색상 정보와 명암 정보를 받아들이기 때문에, 인간은 일반적으로 색상을 삼원색이라고 하는 세 가지 원추 형태(빨강, 녹색, 파랑색)로 분류합니다. 이 중 한가지 색상이 다른 색상보다 눈에 훨씬 더 빨리 들어오는 경향이 있다고 합니다. 하지만 모든 사람이 그렇지는 않으므로 항상 삼각형 모양으로 색상을 분류하지는 않습니다. 하지만 삼원색이 우리 눈에 잘 전달되며 색상 구별에 중요하다는 것은 부정할 수 없습니다.]` |
---
## 훈련 진행 현황
<img src=https://github.com/taemin6697/Paper_Review/assets/96530685/b9a697a2-ef06-4b1c-97e1-e72b20d9a8b5 style="max-width: 700px; width: 100%" />
---
### Inference
```python
def gen(x, model, tokenizer, device):
prompt = (
f"아래는 작업을 설명하는 명령어입니다. 요청을 적절히 완료하는 응답을 작성하세요.\n\n### 명령어:\n{x}\n\n### 응답:"
)
len_prompt = len(prompt)
gened = model.generate(
**tokenizer(prompt, return_tensors="pt", return_token_type_ids=False).to(
device
),
max_new_tokens=1024,
early_stopping=True,
do_sample=True,
top_k=20,
top_p=0.92,
no_repeat_ngram_size=3,
eos_token_id=2,
repetition_penalty=1.2,
num_beams=3
)
return tokenizer.decode(gened[0])[len_prompt:]
def LLM_infer(input):
device = (
torch.device("cuda:0") if torch.cuda.is_available() else torch.device("cpu")
)
model_id = "kfkas/Llama-2-ko-7b-Chat"
model = AutoModelForCausalLM.from_pretrained(
model_id, device_map={"": 0},torch_dtype=torch.float16, low_cpu_mem_usage=True
)
tokenizer = AutoTokenizer.from_pretrained(model_id)
model.eval()
model.config.use_cache = (True)
tokenizer.pad_token = tokenizer.eos_token
output = gen(input, model=model, tokenizer=tokenizer, device=device)
return output
if __name__ == "__main__":
text = LLM_infer("삼원색에 대해 알려줘")
print(text)
```
## Note for oobabooga/text-generation-webui
Remove `ValueError` at `load_tokenizer` function(line 109 or near), in `modules/models.py`.
```python
diff --git a/modules/models.py b/modules/models.py
index 232d5fa..de5b7a0 100644
--- a/modules/models.py
+++ b/modules/models.py
@@ -106,7 +106,7 @@ def load_tokenizer(model_name, model):
trust_remote_code=shared.args.trust_remote_code,
use_fast=False
)
- except ValueError:
+ except:
tokenizer = AutoTokenizer.from_pretrained(
path_to_model,
trust_remote_code=shared.args.trust_remote_code,
```
Since Llama-2-Ko uses FastTokenizer provided by HF tokenizers NOT sentencepiece package,
it is required to use `use_fast=True` option when initialize tokenizer.
Apple Sillicon does not support BF16 computing, use CPU instead. (BF16 is supported when using NVIDIA GPU)
---
> Below is the original model card of the Llama-2 model.
# **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|✗|2.0T|3.0 x 10<sup>-4</sup>|
|Llama 2|*A new mix of publicly available online data*|13B|4k|✗|2.0T|3.0 x 10<sup>-4</sup>|
|Llama 2|*A new mix of publicly available online data*|70B|4k|✔|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.5970715284347534,
-0.6876169443130493,
0.398103266954422,
0.5109201669692993,
-0.5059628486633301,
0.11805342882871628,
0.2555448114871979,
-0.3986436128616333,
0.6724139451980591,
0.3042028844356537,
-0.41369661688804626,
-0.45096439123153687,
-0.6678652763366699,
0.14628291130065918,
-0.20565165579319,
0.6815378069877625,
-0.03877547010779381,
-0.08804404735565186,
0.17307385802268982,
0.07587037980556488,
-0.7587940096855164,
-0.2585316002368927,
-0.6246120929718018,
-0.3090270459651947,
0.12021249532699585,
0.34509244561195374,
0.5324026346206665,
0.33577385544776917,
0.5283025503158569,
0.40182599425315857,
-0.2633499503135681,
0.16391485929489136,
-0.3156571090221405,
-0.06423675268888474,
0.16909463703632355,
-0.5351216197013855,
-0.3758929371833801,
-0.18154002726078033,
0.3438205122947693,
0.45443883538246155,
-0.13506931066513062,
0.406452476978302,
0.1553892344236374,
0.8887768983840942,
-0.4050130844116211,
0.1309918761253357,
-0.06157098338007927,
0.06555283069610596,
-0.033647455275058746,
-0.25480732321739197,
0.21879293024539948,
-0.6949895024299622,
-0.16865479946136475,
-0.7516019940376282,
-0.09255300462245941,
0.32408013939857483,
1.4319943189620972,
-0.055596258491277695,
-0.3722091615200043,
-0.3802744448184967,
-0.6646607518196106,
0.8084715604782104,
-0.7520604729652405,
0.26425179839134216,
0.5924283862113953,
0.04555802419781685,
-0.4301608204841614,
-0.6247549653053284,
-0.8452560901641846,
-0.11361318826675415,
-0.31850022077560425,
0.445158988237381,
-0.09913753718137741,
-0.42082303762435913,
0.2549084722995758,
0.42670607566833496,
-0.4293355941772461,
0.0017266899812966585,
-0.49671971797943115,
0.0038087142165750265,
0.7384648323059082,
0.14653655886650085,
0.6759975552558899,
-0.6062225699424744,
-0.6355258226394653,
-0.024970758706331253,
-0.3991365432739258,
0.4695615768432617,
0.42828139662742615,
-0.1870349496603012,
-0.6215916872024536,
0.6203281879425049,
-0.2454833686351776,
0.4693009853363037,
0.3349173665046692,
-0.39583516120910645,
0.4308003783226013,
-0.7744542360305786,
-0.39383500814437866,
-0.11399316787719727,
0.8444953560829163,
0.8650067448616028,
0.08448241651058197,
0.1985146850347519,
-0.05261950567364693,
-0.05241711810231209,
-0.13252411782741547,
-0.8207672238349915,
-0.1357235312461853,
0.5278622508049011,
-0.722778856754303,
-0.4660593569278717,
-0.01013393048197031,
-1.1827391386032104,
-0.18832595646381378,
-0.2834995687007904,
0.3445465564727783,
-0.4443531036376953,
-0.611299455165863,
0.04587918519973755,
-0.24465596675872803,
0.23246747255325317,
0.4409859776496887,
-0.8420003056526184,
0.358469158411026,
0.14195093512535095,
0.9677532315254211,
0.0649169310927391,
-0.0095282681286335,
0.2793693244457245,
0.23355697095394135,
-0.52418452501297,
0.8293240070343018,
0.16547070443630219,
-0.5140703320503235,
-0.24985435605049133,
0.11775605380535126,
-0.2952994704246521,
-0.21736347675323486,
0.42525917291641235,
-0.31239765882492065,
0.10043804347515106,
-0.15230317413806915,
-0.47053220868110657,
-0.11745592206716537,
0.23344233632087708,
-0.6681347489356995,
1.2097498178482056,
0.034934062510728836,
-0.8943969011306763,
0.18778371810913086,
-0.5846027731895447,
-0.2535749673843384,
0.14306074380874634,
-0.06970775872468948,
-0.49981948733329773,
-0.07761785387992859,
0.3335871398448944,
0.4665125906467438,
-0.34320759773254395,
-0.09869235008955002,
-0.03201894462108612,
-0.42707735300064087,
0.3267746567726135,
-0.013273827731609344,
1.1859420537948608,
0.3025025427341461,
-0.5820320248603821,
-0.07080920040607452,
-0.9117914438247681,
0.2939501106739044,
0.5996013283729553,
-0.49458593130111694,
0.0630204975605011,
-0.2649894058704376,
-0.09247177094221115,
0.41294699907302856,
0.42035406827926636,
-0.5607892870903015,
-0.01736575737595558,
-0.4647260904312134,
0.4647230803966522,
1.104373812675476,
0.3011046350002289,
0.4830833673477173,
-0.7149525284767151,
0.4499094486236572,
-0.0018414000514894724,
0.23034274578094482,
0.04962630197405815,
-0.4952988028526306,
-1.005519986152649,
-0.2524617314338684,
-0.0733269602060318,
0.8144614100456238,
-0.6444866061210632,
0.709942102432251,
0.029173729941248894,
-0.6512446999549866,
-0.6093018651008606,
0.04822739586234093,
0.26667356491088867,
0.37085384130477905,
0.247759148478508,
0.06947742402553558,
-0.8323015570640564,
-0.652699887752533,
0.03464929386973381,
-0.27264469861984253,
-0.033340636640787125,
0.5832238793373108,
0.7361443638801575,
-0.2723010182380676,
0.7788477540016174,
-0.7119227647781372,
-0.5555733442306519,
-0.42966577410697937,
-0.326750248670578,
0.7602985501289368,
0.6656606793403625,
0.8114732503890991,
-1.0049136877059937,
-0.8399147391319275,
0.1219998225569725,
-1.0409573316574097,
0.013652236200869083,
0.06812426447868347,
-0.1003509983420372,
0.31752893328666687,
0.3383597433567047,
-0.7809714674949646,
0.6731227040290833,
0.4886939823627472,
-0.5448296070098877,
0.8588725328445435,
-0.41231492161750793,
0.32041090726852417,
-1.2771536111831665,
0.2790335416793823,
-0.07500781118869781,
-0.005907908082008362,
-0.7002028226852417,
0.049377892166376114,
-0.17335614562034607,
0.12422958761453629,
-0.5412425994873047,
1.0176256895065308,
-0.6652692556381226,
0.27720358967781067,
-0.08084116131067276,
0.16659054160118103,
0.13455364108085632,
0.5494567155838013,
-0.11363975703716278,
0.66807621717453,
0.533512532711029,
-0.7760319709777832,
0.4951392710208893,
0.33102747797966003,
-0.4876163899898529,
0.462391197681427,
-0.7951828837394714,
0.0045058466494083405,
-0.1604461669921875,
0.31099259853363037,
-1.3349791765213013,
-0.3896380364894867,
0.7080462574958801,
-0.6228898763656616,
0.2612256705760956,
0.008728873915970325,
-0.3771554231643677,
-0.7047024369239807,
-0.48133963346481323,
0.13245315849781036,
0.4815710186958313,
-0.2591066062450409,
0.5873145461082458,
0.30455827713012695,
-0.18383747339248657,
-0.6855675578117371,
-0.5634229779243469,
0.16357122361660004,
-0.19505885243415833,
-0.7489144206047058,
0.45470669865608215,
-0.2244817614555359,
-0.1594678908586502,
-0.14516490697860718,
-0.15349996089935303,
-0.07190977782011032,
-0.04369189962744713,
0.5240682363510132,
0.47311362624168396,
-0.012325884774327278,
-0.22754120826721191,
-0.2649520933628082,
-0.27711254358291626,
-0.12961845099925995,
0.07835984230041504,
0.9057348966598511,
-0.20260387659072876,
-0.27093562483787537,
-0.8827813863754272,
0.5278115272521973,
0.5860454440116882,
0.12085794657468796,
0.794020414352417,
0.638080894947052,
-0.24302682280540466,
0.06419637799263,
-0.7493674755096436,
-0.06659787893295288,
-0.5207879543304443,
0.1466514617204666,
-0.3859604597091675,
-0.6230688095092773,
0.6833755970001221,
-0.1390111893415451,
-0.23934775590896606,
0.5692447423934937,
0.6511776447296143,
-0.5516721606254578,
0.975523829460144,
0.5483729243278503,
0.1410416066646576,
0.4345801770687103,
-0.6368314623832703,
0.5392163395881653,
-0.8190042972564697,
-0.7230021357536316,
-0.3809071183204651,
-0.4132067859172821,
-0.7143562436103821,
-0.37645861506462097,
0.32673540711402893,
0.22091345489025116,
-0.3959830701351166,
0.2950825095176697,
-0.7945666313171387,
0.2513563334941864,
0.36041900515556335,
0.4181475043296814,
0.08433236926794052,
-0.1346038430929184,
-0.17077215015888214,
0.08051811903715134,
-0.5483869314193726,
-0.6137864589691162,
0.9378157258033752,
0.24682913720607758,
0.6642488241195679,
0.21655263006687164,
0.5347565412521362,
0.24673035740852356,
-0.12609083950519562,
-0.584496259689331,
0.7017544507980347,
0.15766005218029022,
-0.7093982100486755,
-0.25652173161506653,
-0.1617085337638855,
-0.9668011665344238,
0.33393731713294983,
-0.2718622386455536,
-1.0968852043151855,
0.5431009531021118,
0.038967665284872055,
-0.35185521841049194,
0.4633485674858093,
-0.7625303864479065,
0.6967719197273254,
-0.4021396040916443,
-0.54759281873703,
0.02698933333158493,
-0.870535671710968,
0.42940452694892883,
-0.005974681582301855,
0.4427356421947479,
-0.38681551814079285,
-0.026191571727395058,
0.9002173542976379,
-0.7745798230171204,
0.7028343081474304,
-0.1253277063369751,
-0.005191385746002197,
0.5633300542831421,
-0.13286401331424713,
0.6558926701545715,
0.1850576400756836,
0.04607260972261429,
0.15387988090515137,
-0.011258600279688835,
-0.4171272814273834,
-0.24436351656913757,
0.7859440445899963,
-1.1059441566467285,
-0.8243744373321533,
-0.5464951992034912,
-0.13471892476081848,
0.4146184027194977,
0.35354796051979065,
0.5834209322929382,
0.044866349548101425,
0.21589094400405884,
0.11780507117509842,
0.5091398358345032,
-0.4059951603412628,
0.7934865951538086,
0.21001893281936646,
-0.32532402873039246,
-0.6175336837768555,
0.7664459943771362,
0.3441661298274994,
0.30508410930633545,
0.1550682783126831,
0.20549149811267853,
-0.3187086880207062,
-0.5712586045265198,
-0.36950770020484924,
0.408161461353302,
-0.6154727339744568,
-0.3343793749809265,
-0.7263911962509155,
-0.24489951133728027,
-0.6317763924598694,
-0.3440105617046356,
-0.19638510048389435,
-0.525324821472168,
-0.36613020300865173,
-0.381183385848999,
0.6551964282989502,
0.6149724125862122,
-0.32575035095214844,
0.39598825573921204,
-0.5758733153343201,
0.5598331689834595,
0.3097474277019501,
0.2936190068721771,
0.15081173181533813,
-0.2926294207572937,
-0.2093169391155243,
0.11118385940790176,
-0.3377581536769867,
-1.1329536437988281,
0.6797207593917847,
-0.2654842436313629,
0.42651891708374023,
0.43341290950775146,
-0.04331061616539955,
0.8047114610671997,
-0.2777304947376251,
0.9082074165344238,
0.44116297364234924,
-0.9031851887702942,
0.7054318189620972,
-0.36314845085144043,
0.02003338932991028,
0.3639221787452698,
0.4652215242385864,
-0.7363239526748657,
-0.032781604677438736,
-0.6695367693901062,
-0.9989507794380188,
0.8230541348457336,
0.3379865288734436,
-0.007206089328974485,
0.14034847915172577,
0.2106592357158661,
-0.4178505539894104,
0.26812487840652466,
-1.0076451301574707,
-0.7646011710166931,
-0.3507659435272217,
0.2545848488807678,
0.24922586977481842,
-0.2089099884033203,
-0.19022062420845032,
-0.51092529296875,
0.7380725145339966,
0.31673023104667664,
0.5802565813064575,
0.4446190297603607,
0.057030096650123596,
-0.14533540606498718,
0.24225212633609772,
0.7076794505119324,
0.7874893546104431,
-0.49189552664756775,
-0.01036347821354866,
0.4370758831501007,
-0.8026850819587708,
0.6128659248352051,
-0.28975674510002136,
-0.4262142479419708,
0.011986763216555119,
0.19534152746200562,
0.766708493232727,
0.08187858760356903,
-0.31161776185035706,
0.5471946001052856,
-0.0726534053683281,
-0.08211299777030945,
-0.5860341191291809,
-0.010982110165059566,
0.4121702313423157,
0.15168248116970062,
0.637610137462616,
-0.04070207476615906,
-0.17216920852661133,
-0.5509607791900635,
0.0820591077208519,
0.34433406591415405,
-0.26925092935562134,
-0.04531819373369217,
0.7532137036323547,
0.17051200568675995,
-0.38738322257995605,
0.41308295726776123,
-0.07836823910474777,
-0.5722042918205261,
1.050387978553772,
0.7725768089294434,
0.6650208234786987,
-0.6133161783218384,
0.25788643956184387,
0.927807092666626,
0.2483898252248764,
0.03279595077037811,
0.3826165795326233,
0.1427658498287201,
-0.6493156552314758,
-0.028525179252028465,
-0.9192193150520325,
-0.13036170601844788,
0.3584139049053192,
-0.36106789112091064,
0.2835557460784912,
-0.6929453611373901,
-0.3497961163520813,
-0.18056878447532654,
0.29617637395858765,
-0.6762936115264893,
0.33299165964126587,
-0.04404700547456741,
0.8544894456863403,
-0.847320020198822,
0.6423202753067017,
0.6007304191589355,
-0.5457264184951782,
-1.1255841255187988,
-0.22570645809173584,
0.07105765491724014,
-0.9945454597473145,
0.8568527698516846,
0.07147574424743652,
-0.037939999252557755,
-0.06848277151584625,
-0.5571014881134033,
-1.2726942300796509,
1.5809783935546875,
-0.06244240328669548,
-0.48441237211227417,
0.21300822496414185,
0.282319039106369,
0.4046194553375244,
-0.23545804619789124,
0.2948627471923828,
0.5727623105049133,
0.7380485534667969,
0.2182106077671051,
-0.9068403840065002,
0.49590474367141724,
-0.523865818977356,
0.08355751633644104,
0.08758656680583954,
-1.0573772192001343,
1.0820151567459106,
-0.34861910343170166,
-0.23701703548431396,
-0.011224419809877872,
0.4129958152770996,
0.5511547327041626,
0.39268001914024353,
0.4557042717933655,
0.5837851166725159,
0.47237712144851685,
-0.14490710198879242,
1.0995216369628906,
-0.35543203353881836,
0.43873605132102966,
0.5606065988540649,
0.033605292439460754,
0.5608364343643188,
0.46263954043388367,
-0.5256247520446777,
0.3251510262489319,
0.7855662703514099,
-0.27250921726226807,
0.46481838822364807,
0.06201189011335373,
-0.5643918514251709,
0.056036029011011124,
-0.09793359041213989,
-0.531958818435669,
0.19959242641925812,
0.3708924353122711,
-0.28100210428237915,
0.05416494607925415,
0.028539549559354782,
0.34138602018356323,
-0.2737586796283722,
-0.31900256872177124,
0.8006349205970764,
0.24036888778209686,
-0.4366261065006256,
0.6151345372200012,
-0.09971773624420166,
0.6515771746635437,
-0.6698486804962158,
-0.03071608766913414,
-0.2414826899766922,
0.021384622901678085,
-0.6223152875900269,
-0.9908778071403503,
0.017042020335793495,
-0.12107928842306137,
-0.20649275183677673,
-0.09305701404809952,
0.8867136836051941,
0.0024295884650200605,
-0.6795588135719299,
0.5715143084526062,
0.43678760528564453,
0.27347901463508606,
0.23984548449516296,
-0.6757339835166931,
-0.04381100833415985,
0.25784021615982056,
-0.4216134548187256,
0.4160333573818207,
0.2443670630455017,
0.13092947006225586,
0.7917867302894592,
0.9673121571540833,
0.393588662147522,
0.2807178795337677,
-0.37858912348747253,
1.05653715133667,
-0.7685327529907227,
-0.45232588052749634,
-0.916628360748291,
0.6672570109367371,
-0.19490006566047668,
-0.2909402847290039,
0.9652073979377747,
0.5351439118385315,
0.5135341286659241,
-0.07462632656097412,
0.849617063999176,
-0.47188863158226013,
0.5019833445549011,
-0.3594547212123871,
0.9205811023712158,
-0.4765472412109375,
0.10472157597541809,
-0.3282187283039093,
-0.8197124004364014,
-0.1612912267446518,
0.8781437873840332,
-0.2018558233976364,
0.046324290335178375,
0.5767520666122437,
0.842918872833252,
0.22451390326023102,
-0.0801631510257721,
0.131972074508667,
0.4505089223384857,
0.3659270703792572,
0.6089717149734497,
0.791146993637085,
-0.7328424453735352,
0.6581447124481201,
-0.5706342458724976,
-0.18765492737293243,
-0.3766394555568695,
-0.7488141655921936,
-0.839129626750946,
-0.389442503452301,
-0.22061246633529663,
-0.35904359817504883,
-0.14993873238563538,
0.933836042881012,
0.564289391040802,
-0.7257903218269348,
-0.4957285225391388,
0.10386797040700912,
0.47078976035118103,
-0.42895862460136414,
-0.28815653920173645,
0.6804995536804199,
0.007877425290644169,
-0.8169890642166138,
0.016848642379045486,
0.1485752910375595,
0.45259273052215576,
0.09742092341184616,
0.034333258867263794,
-0.650732159614563,
0.08842624723911285,
0.6172387003898621,
0.22539474070072174,
-0.7171967029571533,
-0.30393072962760925,
0.035512909293174744,
-0.27088218927383423,
0.3037385642528534,
0.2701498866081238,
-0.534019947052002,
0.21473611891269684,
0.6026071906089783,
0.04131810739636421,
0.8004603981971741,
0.003391281934455037,
0.21481913328170776,
-0.45071715116500854,
0.16826221346855164,
0.03226887434720993,
0.4062502682209015,
0.04804439842700958,
-0.5389270782470703,
0.810726523399353,
0.38130995631217957,
-0.7793867588043213,
-0.7526615262031555,
-0.009616274386644363,
-1.201683521270752,
-0.39071837067604065,
1.0958737134933472,
-0.15728874504566193,
-0.39481136202812195,
-0.2903739809989929,
-0.551763653755188,
0.3985123634338379,
-0.5279255509376526,
0.851103663444519,
0.6519548296928406,
-0.38394463062286377,
-0.2921468913555145,
-0.8852414488792419,
0.5741602182388306,
0.2755736708641052,
-0.9995447993278503,
-0.26259756088256836,
0.23343424499034882,
0.38963228464126587,
0.43390703201293945,
0.9969800710678101,
0.12268127501010895,
0.27165520191192627,
0.02894437313079834,
0.14557866752147675,
-0.0008981901337392628,
0.14636169373989105,
-0.01941998116672039,
0.18380549550056458,
-0.4776184856891632,
-0.4464089572429657
] |
M-CLIP/XLM-Roberta-Large-Vit-B-16Plus
|
M-CLIP
| 2022-09-15T10:45:56Z | 8,185 | 15 |
transformers
|
[
"transformers",
"pytorch",
"tf",
"multilingual",
"af",
"sq",
"am",
"ar",
"az",
"bn",
"bs",
"bg",
"ca",
"zh",
"hr",
"cs",
"da",
"nl",
"en",
"et",
"fr",
"de",
"el",
"hi",
"hu",
"is",
"id",
"it",
"ja",
"mk",
"ml",
"mr",
"pl",
"pt",
"ro",
"ru",
"sr",
"sl",
"es",
"sw",
"sv",
"tl",
"te",
"tr",
"tk",
"uk",
"ur",
"ug",
"uz",
"vi",
"xh",
"endpoints_compatible",
"has_space",
"region:us"
] | null | 2022-05-30T21:33:14Z |
---
language:
- multilingual
- af
- sq
- am
- ar
- az
- bn
- bs
- bg
- ca
- zh
- hr
- cs
- da
- nl
- en
- et
- fr
- de
- el
- hi
- hu
- is
- id
- it
- ja
- mk
- ml
- mr
- pl
- pt
- ro
- ru
- sr
- sl
- es
- sw
- sv
- tl
- te
- tr
- tk
- uk
- ur
- ug
- uz
- vi
- xh
---
## Multilingual-clip: XLM-Roberta-Large-Vit-B-16Plus
Multilingual-CLIP extends OpenAI's English text encoders to multiple other languages. This model *only* contains the multilingual text encoder. The corresponding image model `Vit-B-16Plus` can be retrieved via instructions found on `mlfoundations` [open_clip repository on Github](https://github.com/mlfoundations/open_clip). We provide a usage example below.
## Requirements
To use both the multilingual text encoder and corresponding image encoder, we need to install the packages [`multilingual-clip`](https://github.com/FreddeFrallan/Multilingual-CLIP) and [`open_clip_torch`](https://github.com/mlfoundations/open_clip).
```
pip install multilingual-clip
pip install open_clip_torch
```
## Usage
Extracting embeddings from the text encoder can be done in the following way:
```python
from multilingual_clip import pt_multilingual_clip
import transformers
texts = [
'Three blind horses listening to Mozart.',
'Älgen är skogens konung!',
'Wie leben Eisbären in der Antarktis?',
'Вы знали, что все белые медведи левши?'
]
model_name = 'M-CLIP/XLM-Roberta-Large-Vit-B-16Plus'
# Load Model & Tokenizer
model = pt_multilingual_clip.MultilingualCLIP.from_pretrained(model_name)
tokenizer = transformers.AutoTokenizer.from_pretrained(model_name)
embeddings = model.forward(texts, tokenizer)
print("Text features shape:", embeddings.shape)
```
Extracting embeddings from the corresponding image encoder:
```python
import torch
import open_clip
import requests
from PIL import Image
device = "cuda" if torch.cuda.is_available() else "cpu"
model, _, preprocess = open_clip.create_model_and_transforms('ViT-B-16-plus-240', pretrained="laion400m_e32")
model.to(device)
url = "http://images.cocodataset.org/val2017/000000039769.jpg"
image = Image.open(requests.get(url, stream=True).raw)
image = preprocess(image).unsqueeze(0).to(device)
with torch.no_grad():
image_features = model.encode_image(image)
print("Image features shape:", image_features.shape)
```
## Evaluation results
None of the M-CLIP models have been extensivly evaluated, but testing them on Txt2Img retrieval on the humanly translated MS-COCO dataset, we see the following **R@10** results:
| Name | En | De | Es | Fr | Zh | It | Pl | Ko | Ru | Tr | Jp |
| ----------------------------------|:-----: |:-----: |:-----: |:-----: | :-----: |:-----: |:-----: |:-----: |:-----: |:-----: |:-----: |
| [OpenAI CLIP Vit-B/32](https://github.com/openai/CLIP)| 90.3 | - | - | - | - | - | - | - | - | - | - |
| [OpenAI CLIP Vit-L/14](https://github.com/openai/CLIP)| 91.8 | - | - | - | - | - | - | - | - | - | - |
| [OpenCLIP ViT-B-16+-](https://github.com/openai/CLIP)| 94.3 | - | - | - | - | - | - | - | - | - | - |
| [LABSE Vit-L/14](https://huggingface.co/M-CLIP/LABSE-Vit-L-14)| 91.6 | 89.6 | 89.5 | 89.9 | 88.9 | 90.1 | 89.8 | 80.8 | 85.5 | 89.8 | 73.9 |
| [XLM-R Large Vit-B/32](https://huggingface.co/M-CLIP/XLM-Roberta-Large-Vit-B-32)| 91.8 | 88.7 | 89.1 | 89.4 | 89.3 | 89.8| 91.4 | 82.1 | 86.1 | 88.8 | 81.0 |
| [XLM-R Vit-L/14](https://huggingface.co/M-CLIP/XLM-Roberta-Large-Vit-L-14)| 92.4 | 90.6 | 91.0 | 90.0 | 89.7 | 91.1 | 91.3 | 85.2 | 85.8 | 90.3 | 81.9 |
| [XLM-R Large Vit-B/16+](https://huggingface.co/M-CLIP/XLM-Roberta-Large-Vit-B-16Plus)| **95.0** | **93.0** | **93.6** | **93.1** | **94.0** | **93.1** | **94.4** | **89.0** | **90.0** | **93.0** | **84.2** |
## Training/Model details
Further details about the model training and data can be found in the [model card](https://github.com/FreddeFrallan/Multilingual-CLIP/blob/main/larger_mclip.md).
|
[
-0.5043165683746338,
-0.6840094327926636,
0.2064729928970337,
0.3321358561515808,
-0.44625720381736755,
-0.07579606026411057,
-0.4780348539352417,
-0.44191673398017883,
0.7868180274963379,
0.21259671449661255,
-0.5573826432228088,
-0.6302973628044128,
-0.8025956749916077,
0.23888854682445526,
-0.14483487606048584,
0.7970670461654663,
-0.3032263219356537,
0.1178094670176506,
0.15030613541603088,
-0.3865165114402771,
-0.415399432182312,
-0.6238051652908325,
-0.36895865201950073,
0.02527262642979622,
0.16887043416500092,
0.3967410922050476,
0.7763122320175171,
0.5360293388366699,
0.5089370012283325,
0.3056045472621918,
-0.2856171727180481,
0.13272757828235626,
-0.42248156666755676,
-0.3613780438899994,
0.17274606227874756,
-0.502288281917572,
-0.49102941155433655,
0.041820086538791656,
0.7484505772590637,
-0.07698902487754822,
0.08526373654603958,
0.07150361686944962,
0.06805884093046188,
0.34774720668792725,
-0.5927215814590454,
0.010868812911212444,
-0.45936688780784607,
0.06161631643772125,
-0.275453120470047,
-0.11821439862251282,
-0.1641094982624054,
-0.32774102687835693,
0.14051221311092377,
-0.579073965549469,
0.1797245293855667,
-0.07141773402690887,
1.5354877710342407,
-0.16211463510990143,
-0.2617710828781128,
-0.24858081340789795,
-0.3547210097312927,
0.8874005675315857,
-0.692345142364502,
0.4138249456882477,
0.3016664683818817,
0.24881231784820557,
0.15313632786273956,
-0.722644031047821,
-0.5835136771202087,
0.20457926392555237,
-0.010030977427959442,
0.19634132087230682,
-0.21001805365085602,
-0.2457897961139679,
0.3369353413581848,
0.5266345143318176,
-0.44972148537635803,
-0.18802542984485626,
-0.7473369836807251,
-0.25695985555648804,
0.7823514342308044,
0.00184487528167665,
0.7422608137130737,
-0.34521958231925964,
-0.5130940079689026,
-0.5014551877975464,
-0.665662407875061,
0.2883143424987793,
0.34736597537994385,
-0.00809191633015871,
-0.6071410775184631,
0.6993827223777771,
0.28868332505226135,
0.4650777578353882,
-0.09218494594097137,
-0.3389787971973419,
0.6177861094474792,
-0.252826064825058,
-0.25936469435691833,
-0.039928387850522995,
1.3467864990234375,
0.5852881073951721,
0.18977561593055725,
0.3103047013282776,
0.08257246017456055,
-0.12287883460521698,
-0.2288116216659546,
-1.1674408912658691,
-0.18261756002902985,
0.10800465196371078,
-0.47232094407081604,
-0.06441563367843628,
0.4851253926753998,
-0.8109434843063354,
0.3298005759716034,
0.10667397826910019,
0.604316771030426,
-0.801132082939148,
-0.19072416424751282,
0.20048300921916962,
-0.3637702167034149,
0.38622111082077026,
0.09297759085893631,
-0.8583492040634155,
0.09845789521932602,
0.39391857385635376,
1.2927510738372803,
-0.18180035054683685,
-0.5344828963279724,
-0.2954389750957489,
0.1235031858086586,
-0.12861962616443634,
0.5095964670181274,
-0.33566519618034363,
-0.40447425842285156,
-0.057879701256752014,
0.674081027507782,
-0.32596006989479065,
-0.3992267847061157,
0.8685981035232544,
-0.015682274475693703,
0.12460897862911224,
-0.5501888394355774,
-0.17677806317806244,
-0.46267685294151306,
0.29971587657928467,
-0.5867692232131958,
1.1711994409561157,
-0.042140185832977295,
-0.9813962578773499,
0.29697543382644653,
-0.5442274808883667,
-0.20132982730865479,
-0.5086164474487305,
-0.14665353298187256,
-0.7022578716278076,
-0.27232998609542847,
0.8031343221664429,
0.44937577843666077,
-0.2688416838645935,
0.03905567154288292,
-0.45775872468948364,
-0.3694216012954712,
0.3879528343677521,
-0.3656458556652069,
1.018486738204956,
-0.04315948113799095,
-0.26849570870399475,
0.1981087625026703,
-0.5136660933494568,
0.044970303773880005,
0.46530210971832275,
-0.13635699450969696,
-0.17391079664230347,
-0.44507914781570435,
0.21965956687927246,
0.4710775911808014,
0.024639727547764778,
-0.7990007996559143,
0.23147256672382355,
-0.20833063125610352,
0.8322461843490601,
0.5201893448829651,
0.21401697397232056,
0.051125336438417435,
-0.37503159046173096,
0.6047007441520691,
0.1166284903883934,
0.3618561029434204,
-0.4102077782154083,
-0.5894688963890076,
-0.6737285256385803,
-0.7194948196411133,
0.1920820027589798,
0.5177060961723328,
-0.6444195508956909,
0.4339733421802521,
-0.2030935436487198,
-0.4651647210121155,
-0.9041587114334106,
0.03527199849486351,
0.373295396566391,
0.11644656956195831,
0.536309003829956,
-0.47887375950813293,
-0.5166126489639282,
-1.0901765823364258,
-0.012396449223160744,
0.2459896057844162,
-0.024824820458889008,
0.6101069450378418,
0.9227352142333984,
-0.08620815724134445,
0.7842257618904114,
-0.7323977947235107,
-0.4730254113674164,
-0.19497960805892944,
-0.03873896598815918,
0.33594733476638794,
0.5172873735427856,
1.0925933122634888,
-0.8675738573074341,
-0.6726551055908203,
-0.06727149337530136,
-0.8353821039199829,
0.24463613331317902,
0.151682510972023,
-0.31719180941581726,
-0.01441190205514431,
0.1847096085548401,
-0.6669910550117493,
0.7364120483398438,
0.4751586616039276,
-0.24421285092830658,
0.7102068662643433,
-0.36404967308044434,
0.41157981753349304,
-1.0525312423706055,
0.26199835538864136,
-0.19898128509521484,
-0.29967737197875977,
-0.3327327370643616,
0.015387003310024738,
0.2750438153743744,
-0.18491052091121674,
-0.8468533754348755,
0.6379057168960571,
-0.6949123740196228,
-0.14851315319538116,
-0.18905097246170044,
0.3136712610721588,
0.3780006170272827,
0.7704044580459595,
0.3387397527694702,
0.9913775324821472,
0.8036618828773499,
-0.47494277358055115,
0.34380674362182617,
0.700303316116333,
-0.49987560510635376,
0.49668532609939575,
-0.9922431707382202,
0.03196892514824867,
0.11717448383569717,
0.18443946540355682,
-0.6123909950256348,
-0.4479231834411621,
0.5076289176940918,
-0.670364260673523,
0.28098881244659424,
-0.457064688205719,
-0.4086567461490631,
-0.6918260455131531,
-0.7803518772125244,
0.5462399125099182,
0.4997100532054901,
-0.6748762726783752,
0.19272980093955994,
0.41279566287994385,
-0.0795183852314949,
-0.6470732688903809,
-1.0079383850097656,
-0.11181100457906723,
-0.0666932612657547,
-0.7524198293685913,
0.5241499543190002,
-0.026543842628598213,
0.3520357608795166,
0.005414824932813644,
0.05665290355682373,
-0.22700774669647217,
-0.2862623929977417,
0.2669464349746704,
0.4460047483444214,
-0.2907121181488037,
-0.3381228744983673,
0.1800999641418457,
0.24223335087299347,
-0.043844666332006454,
-0.12868031859397888,
0.6365434527397156,
-0.20759408175945282,
-0.5005233883857727,
-0.611273467540741,
0.20012517273426056,
0.6098356246948242,
-0.6864216327667236,
0.7526227831840515,
1.0621490478515625,
-0.32020828127861023,
0.32906875014305115,
-0.44550633430480957,
0.002169266575947404,
-0.47830867767333984,
0.3912681043148041,
-0.40596312284469604,
-0.7758228778839111,
0.7494056820869446,
0.5384587049484253,
-0.10055824369192123,
0.6726980805397034,
0.6343728303909302,
0.21291425824165344,
1.1300910711288452,
0.5924043655395508,
-0.038251157850027084,
0.5743116736412048,
-0.9724531173706055,
0.005255854222923517,
-1.3397916555404663,
-0.5388816595077515,
-0.31283488869667053,
-0.21847406029701233,
-0.3396419584751129,
-0.7694962024688721,
0.6299378275871277,
0.4374980330467224,
-0.03955993428826332,
0.6027616262435913,
-0.6753625273704529,
0.39702892303466797,
0.3425888121128082,
0.3317970633506775,
-0.09752845019102097,
-0.015831289812922478,
-0.40886443853378296,
-0.24939368665218353,
-0.6789916753768921,
-0.35158228874206543,
0.936333179473877,
0.5436888933181763,
0.6413679718971252,
0.23529399931430817,
0.3222460448741913,
-0.0487033911049366,
-0.02722003124654293,
-0.8316206336021423,
0.3745447099208832,
-0.09139347821474075,
-0.6363734602928162,
-0.1303214430809021,
-0.15109263360500336,
-0.8618884086608887,
0.44451025128364563,
-0.3674779236316681,
-1.0468103885650635,
0.2644520699977875,
-0.07392854988574982,
-0.0883365049958229,
0.6431544423103333,
-0.4599733054637909,
0.9759501218795776,
-0.3201214671134949,
-0.48806649446487427,
0.07033440470695496,
-0.5999280214309692,
0.5323958396911621,
0.35697996616363525,
0.11305918544530869,
-0.23985044658184052,
0.03445328772068024,
1.1156787872314453,
-0.8132967352867126,
0.5416093468666077,
-0.07457797229290009,
0.044230952858924866,
0.7205377221107483,
-0.15582707524299622,
0.43891260027885437,
0.2754238247871399,
0.0717545598745346,
0.2500157058238983,
0.21533550322055817,
-0.39501625299453735,
-0.5640209317207336,
0.7009793519973755,
-0.8121615648269653,
-0.3591303825378418,
-0.40734004974365234,
-0.30755913257598877,
0.31218934059143066,
0.302822083234787,
0.8190622329711914,
0.7899886965751648,
-0.1571706384420395,
0.18232151865959167,
0.5186754465103149,
-0.45548370480537415,
0.5353043079376221,
0.17965763807296753,
-0.3156045973300934,
-0.8936364054679871,
1.0253267288208008,
-0.048222776502370834,
0.1752384901046753,
0.23735462129116058,
0.11853618174791336,
-0.37476450204849243,
-0.3232111632823944,
-0.6360198855400085,
0.5738078951835632,
-0.6520282626152039,
-0.31366294622421265,
-0.6930444240570068,
-0.2278602570295334,
-0.5825713872909546,
-0.15033479034900665,
-0.5304937958717346,
-0.34260621666908264,
-0.5071306824684143,
-0.07935965806245804,
0.5341445803642273,
0.600372314453125,
0.003687870455905795,
0.24105481803417206,
-1.159571886062622,
0.21768292784690857,
0.031939323991537094,
0.28692594170570374,
-0.01880684494972229,
-0.817371129989624,
-0.3107756972312927,
0.11912684887647629,
-0.743478000164032,
-1.1463838815689087,
0.7532466650009155,
0.34707799553871155,
0.47430914640426636,
0.6074190735816956,
-0.22440393269062042,
0.8502126932144165,
-0.40802133083343506,
1.0132642984390259,
0.5047119855880737,
-1.0181334018707275,
0.5631729364395142,
-0.3562979996204376,
0.18181157112121582,
0.40741047263145447,
0.6595125198364258,
-0.5976008772850037,
-0.23507060110569,
-0.48382171988487244,
-0.9729858040809631,
1.0488746166229248,
0.43226590752601624,
-0.06828337162733078,
-0.15419720113277435,
0.16720962524414062,
0.016530558466911316,
0.0840633288025856,
-0.6893211007118225,
-0.44511938095092773,
-0.5362638831138611,
-0.007148399483412504,
-0.1390102356672287,
-0.3768139183521271,
-0.0028762894216924906,
-0.44907793402671814,
0.7409341335296631,
-0.11312223225831985,
0.6010488271713257,
0.6246054768562317,
-0.4482730031013489,
0.12847843766212463,
0.04460708424448967,
0.8346877098083496,
0.5216361880302429,
-0.3991832733154297,
-0.2783297300338745,
0.18886271119117737,
-0.6586386561393738,
0.0652591735124588,
-0.05962105840444565,
-0.33279943466186523,
0.35500970482826233,
0.3978595733642578,
1.2436540126800537,
0.5637035369873047,
-0.5675510764122009,
1.1276227235794067,
-0.03717182204127312,
-0.3392058312892914,
-0.3449007272720337,
-0.18236340582370758,
-0.06310846656560898,
0.13088823854923248,
0.2201717495918274,
-0.11594726145267487,
-0.0316116027534008,
-0.5854852795600891,
0.24439913034439087,
0.4605417847633362,
-0.640957236289978,
-0.7196290493011475,
0.8799830079078674,
0.0984378457069397,
-0.16607749462127686,
0.5086565017700195,
-0.005338896065950394,
-1.048722743988037,
0.6958317160606384,
0.5998396873474121,
0.819421648979187,
-0.264663964509964,
0.13480286300182343,
1.0021952390670776,
0.22726354002952576,
-0.15566036105155945,
0.3194683790206909,
0.07648685574531555,
-0.5113574266433716,
-0.11196999251842499,
-0.520066499710083,
-0.1556275188922882,
0.04951714724302292,
-1.0287307500839233,
0.6859562993049622,
-0.33177560567855835,
-0.33446747064590454,
-0.14214123785495758,
-0.09125684946775436,
-0.6636850237846375,
-0.00039536674739792943,
-0.046001583337783813,
1.2536789178848267,
-0.8386576771736145,
0.9531073570251465,
0.6995278000831604,
-0.6474416851997375,
-0.7788066267967224,
-0.2887040078639984,
-0.03867533430457115,
-0.8307304978370667,
0.4226266145706177,
0.4273369014263153,
0.07042762637138367,
-0.41483357548713684,
-0.544249415397644,
-0.8570431470870972,
1.3158150911331177,
0.39963990449905396,
-0.23809504508972168,
0.05380517616868019,
-0.15506666898727417,
0.3286183476448059,
-0.41948798298835754,
0.7816687226295471,
0.47810694575309753,
0.3654468059539795,
0.17851683497428894,
-1.1261852979660034,
-0.0126292509958148,
-0.2924754023551941,
-0.07242568582296371,
0.25888824462890625,
-1.2106437683105469,
1.1012235879898071,
-0.40273863077163696,
-0.2602159380912781,
0.1461656391620636,
0.7960684299468994,
0.20980000495910645,
0.019130952656269073,
0.10435911267995834,
0.4171147346496582,
0.5107580423355103,
-0.0927465409040451,
1.036283016204834,
-0.2521824538707733,
0.6660897731781006,
0.8033497333526611,
0.18185332417488098,
0.979433536529541,
0.3533228933811188,
-0.2415132373571396,
0.45430952310562134,
0.5251737833023071,
-0.3511652648448944,
0.35685300827026367,
-0.18668831884860992,
-0.00672717671841383,
-0.01955312304198742,
-0.07232517749071121,
-0.5446152091026306,
0.5053278803825378,
0.25099754333496094,
-0.513623833656311,
0.10006319731473923,
0.24278868734836578,
0.20387840270996094,
-0.09374528378248215,
-0.19768854975700378,
0.367715984582901,
0.1020728051662445,
-0.44011980295181274,
0.8362187147140503,
0.17513799667358398,
0.9903140664100647,
-0.6593822836875916,
0.0033204532228410244,
0.11080832779407501,
0.13852526247501373,
-0.1491972953081131,
-1.018338918685913,
0.3568302094936371,
0.0781492292881012,
-0.004491356201469898,
0.05429765209555626,
0.48694154620170593,
-0.6487985849380493,
-0.4219965934753418,
0.5147460699081421,
-0.05561493709683418,
0.519406259059906,
-0.03568562865257263,
-0.9787350296974182,
0.5212543606758118,
0.2326200008392334,
-0.2782253324985504,
0.2693746089935303,
0.2018066793680191,
0.09026003628969193,
0.6277021765708923,
0.38994258642196655,
0.13010714948177338,
0.260491281747818,
-0.25191205739974976,
0.8776864409446716,
-0.7020300626754761,
-0.5760399699211121,
-0.858048141002655,
0.2763332426548004,
-0.23014317452907562,
-0.5002599954605103,
0.8058378100395203,
0.9417397975921631,
0.7983238101005554,
-0.32336699962615967,
0.6506145000457764,
-0.20304299890995026,
0.3372599184513092,
-0.803729772567749,
0.796550452709198,
-0.6934859156608582,
-0.18815097212791443,
-0.46589404344558716,
-0.8563984632492065,
-0.0441192127764225,
0.6211854219436646,
-0.2861531972885132,
-0.1013033390045166,
0.7347729802131653,
0.7000631093978882,
-0.38819029927253723,
-0.15569978952407837,
0.16945970058441162,
0.16458754241466522,
0.33013588190078735,
0.7933172583580017,
0.47288936376571655,
-0.9357298016548157,
0.8657721281051636,
-0.5547025799751282,
-0.016835259273648262,
-0.37126100063323975,
-0.6578564047813416,
-1.1834361553192139,
-0.6325557231903076,
-0.2836618423461914,
-0.2734968662261963,
-0.26596441864967346,
1.130010962486267,
0.9175708293914795,
-0.8261263966560364,
-0.23161421716213226,
0.5441185235977173,
0.17663824558258057,
-0.12456491589546204,
-0.282537043094635,
0.728663444519043,
0.27248629927635193,
-1.058988332748413,
0.2165377289056778,
0.2977733016014099,
0.3128787577152252,
0.10366301983594894,
-0.34277212619781494,
-0.3132549822330475,
-0.061657387763261795,
0.5104562640190125,
0.7406286001205444,
-0.7750548720359802,
-0.3227559030056,
0.043123237788677216,
-0.04809994995594025,
0.509034276008606,
0.6908453106880188,
-0.328426331281662,
0.3232860267162323,
0.5461750626564026,
0.22096772491931915,
0.9633437395095825,
0.06420920044183731,
0.36495301127433777,
-0.6664968132972717,
0.5740678310394287,
-0.026347361505031586,
0.6257674694061279,
0.43444758653640747,
-0.12443550676107407,
0.32672861218452454,
0.37322789430618286,
-0.4272816479206085,
-0.8495287299156189,
-0.06411350518465042,
-1.2491217851638794,
-0.09851137548685074,
1.0176897048950195,
-0.5585563778877258,
-0.6200689077377319,
0.33667129278182983,
-0.5658773183822632,
0.3335452377796173,
-0.4568251669406891,
0.23578420281410217,
0.6182292699813843,
0.10271487385034561,
-0.3700355887413025,
-0.561570942401886,
0.41537678241729736,
0.1611451804637909,
-0.551266074180603,
-0.21361370384693146,
0.1221945658326149,
0.5559080243110657,
0.21484963595867157,
0.6224974393844604,
-0.4887065887451172,
0.3677384853363037,
-0.09977369755506516,
0.29215729236602783,
-0.3393390476703644,
-0.3992079198360443,
-0.33658090233802795,
-0.15568405389785767,
-0.14982114732265472,
-0.6592362523078918
] |
alisawuffles/roberta-large-wanli
|
alisawuffles
| 2023-06-14T04:58:48Z | 8,174 | 6 |
transformers
|
[
"transformers",
"pytorch",
"safetensors",
"roberta",
"text-classification",
"en",
"dataset:alisawuffles/WANLI",
"endpoints_compatible",
"region:us"
] |
text-classification
| 2022-03-30T20:00:10Z |
---
language:
- en
tags:
- text-classification
widget:
- text: "I almost forgot to eat lunch.</s></s>I didn't forget to eat lunch."
- text: "I almost forgot to eat lunch.</s></s>I forgot to eat lunch."
- text: "I ate lunch.</s></s>I almost forgot to eat lunch."
datasets:
- alisawuffles/WANLI
---
This is an off-the-shelf roberta-large model finetuned on WANLI, the Worker-AI Collaborative NLI dataset ([Liu et al., 2022](https://aclanthology.org/2022.findings-emnlp.508/)). It outperforms the `roberta-large-mnli` model on eight out-of-domain test sets, including by 11% on HANS and 9% on Adversarial NLI.
### How to use
```python
from transformers import RobertaTokenizer, RobertaForSequenceClassification
model = RobertaForSequenceClassification.from_pretrained('alisawuffles/roberta-large-wanli')
tokenizer = RobertaTokenizer.from_pretrained('alisawuffles/roberta-large-wanli')
x = tokenizer("I almost forgot to eat lunch.", "I didn't forget to eat lunch.", return_tensors='pt', max_length=128, truncation=True)
logits = model(**x).logits
probs = logits.softmax(dim=1).squeeze(0)
label_id = torch.argmax(probs).item()
prediction = model.config.id2label[label_id]
```
### Citation
```
@inproceedings{liu-etal-2022-wanli,
title = "{WANLI}: Worker and {AI} Collaboration for Natural Language Inference Dataset Creation",
author = "Liu, Alisa and
Swayamdipta, Swabha and
Smith, Noah A. and
Choi, Yejin",
booktitle = "Findings of the Association for Computational Linguistics: EMNLP 2022",
month = dec,
year = "2022",
address = "Abu Dhabi, United Arab Emirates",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2022.findings-emnlp.508",
pages = "6826--6847",
abstract = "A recurring challenge of crowdsourcing NLP datasets at scale is that human writers often rely on repetitive patterns when crafting examples, leading to a lack of linguistic diversity. We introduce a novel approach for dataset creation based on worker and AI collaboration, which brings together the generative strength of language models and the evaluative strength of humans. Starting with an existing dataset, MultiNLI for natural language inference (NLI), our approach uses dataset cartography to automatically identify examples that demonstrate challenging reasoning patterns, and instructs GPT-3 to compose new examples with similar patterns. Machine generated examples are then automatically filtered, and finally revised and labeled by human crowdworkers. The resulting dataset, WANLI, consists of 107,885 NLI examples and presents unique empirical strengths over existing NLI datasets. Remarkably, training a model on WANLI improves performance on eight out-of-domain test sets we consider, including by 11{\%} on HANS and 9{\%} on Adversarial NLI, compared to training on the 4x larger MultiNLI. Moreover, it continues to be more effective than MultiNLI augmented with other NLI datasets. Our results demonstrate the promise of leveraging natural language generation techniques and re-imagining the role of humans in the dataset creation process.",
}
```
|
[
-0.30729472637176514,
-0.5678005814552307,
0.13735099136829376,
0.2215230017900467,
0.06887476146221161,
-0.1060376986861229,
-0.5186731815338135,
-0.4502773582935333,
0.13162004947662354,
0.5046244859695435,
-0.718051016330719,
-0.3369307518005371,
-0.4466637074947357,
0.2984705865383148,
-0.3770924508571625,
1.1107739210128784,
0.4412352442741394,
-0.06523171067237854,
-0.02853207103908062,
-0.2404603362083435,
-0.22874635457992554,
-0.468620628118515,
-0.7123438715934753,
-0.3226693272590637,
0.5844533443450928,
0.3211018443107605,
0.7781227827072144,
0.4201003313064575,
0.25398752093315125,
0.3427996337413788,
0.0453273169696331,
0.5247156023979187,
-0.5059757232666016,
-0.06124643236398697,
0.194383442401886,
-0.6146464943885803,
-0.35644882917404175,
0.18215540051460266,
0.4358103573322296,
0.8358864188194275,
-0.15530100464820862,
0.1445498764514923,
0.027858855202794075,
0.7096390128135681,
-0.4727201759815216,
-0.009253138676285744,
-0.8138958811759949,
-0.04113272950053215,
-0.44621849060058594,
0.43119460344314575,
-0.6418461799621582,
-0.15105025470256805,
0.1254652589559555,
-0.6613113880157471,
0.434088796377182,
0.19269564747810364,
0.9090481400489807,
0.4230998754501343,
-0.2721322476863861,
-0.21437357366085052,
-0.6003537178039551,
1.105815052986145,
-0.953960657119751,
0.26137575507164,
0.38119104504585266,
0.2058442384004593,
-0.15653812885284424,
-0.6705284118652344,
-0.8275184035301208,
-0.11344952136278152,
-0.05641908571124077,
0.19642457365989685,
-0.16059610247612,
-0.16960647702217102,
0.28204503655433655,
0.3238408863544464,
-0.8474817872047424,
0.16894063353538513,
-0.4793369472026825,
0.23869642615318298,
0.8172018527984619,
0.18026413023471832,
0.12986144423484802,
-0.2226085662841797,
-0.07056891918182373,
-0.15623295307159424,
-0.6047958731651306,
-0.257764607667923,
0.26951783895492554,
0.38162335753440857,
-0.08504707366228104,
0.519785463809967,
-0.0013456461019814014,
0.9515336155891418,
-0.04850250110030174,
0.05507681891322136,
0.5807464122772217,
-0.3311750590801239,
-0.20586781203746796,
-0.35407885909080505,
0.8907395601272583,
0.25179174542427063,
0.3145981431007385,
-0.3886010944843292,
0.014085879549384117,
-0.10193289816379547,
0.17424117028713226,
-0.5018463134765625,
-0.4574187994003296,
0.2914084494113922,
-0.41393348574638367,
-0.29442909359931946,
0.18094880878925323,
-0.7754263877868652,
-0.38043367862701416,
-0.42452919483184814,
0.1931459903717041,
-0.3569904863834381,
-0.2762068808078766,
0.023185649886727333,
-0.24421966075897217,
0.10936778038740158,
0.0169150922447443,
-0.7315371632575989,
0.09440851211547852,
0.7928744554519653,
0.7870880365371704,
-0.16866150498390198,
-0.6552653908729553,
-0.520167887210846,
0.10519780963659286,
-0.1941278874874115,
0.4652137756347656,
-0.25592178106307983,
-0.2254827320575714,
-0.12288068234920502,
-0.15939369797706604,
-0.2601471245288849,
-0.6452156901359558,
0.5063291192054749,
-0.40406620502471924,
0.5104315280914307,
0.058666765689849854,
-0.6722097992897034,
-0.10337643325328827,
0.1456994265317917,
-0.9161044955253601,
1.0756537914276123,
0.023394441232085228,
-0.7170366048812866,
0.4021201729774475,
-0.8557626008987427,
-0.387436181306839,
-0.07075735926628113,
-0.08428072929382324,
-0.6768511533737183,
-0.03757122904062271,
0.19134020805358887,
0.3810542821884155,
-0.5456418991088867,
0.737014889717102,
-0.3543393313884735,
-0.1560553014278412,
0.45868581533432007,
-0.50713050365448,
1.146959662437439,
0.20444132387638092,
-0.369115948677063,
0.03913911059498787,
-0.9017435908317566,
0.11111272871494293,
0.1017022654414177,
-0.22369681298732758,
-0.21237607300281525,
-0.23224526643753052,
0.22351130843162537,
0.13902917504310608,
0.002660178579390049,
-0.5351365208625793,
0.0516977496445179,
-0.5377101898193359,
0.5075635313987732,
0.6233977675437927,
-0.24036547541618347,
0.2685812711715698,
-0.6222531199455261,
0.27618080377578735,
-0.42475318908691406,
0.29016417264938354,
0.22876790165901184,
-0.8752496838569641,
-0.8111323118209839,
-0.3878960609436035,
0.4636281132698059,
0.5123847723007202,
-0.6705004572868347,
0.911245584487915,
-0.3291686475276947,
-0.6247843503952026,
-0.6844393610954285,
0.14017756283283234,
0.38145682215690613,
0.17529460787773132,
0.30595260858535767,
0.017049580812454224,
-0.8662006855010986,
-0.8032082319259644,
-0.17010073363780975,
-0.00017414581088814884,
-0.3282373547554016,
0.19750995934009552,
0.46785834431648254,
-0.25217553973197937,
1.124197006225586,
-0.46626368165016174,
-0.28985175490379333,
-0.5767606496810913,
0.3324693441390991,
0.6757773160934448,
0.5698708295822144,
0.39504575729370117,
-0.8850962519645691,
-0.4707866311073303,
-0.32030028104782104,
-0.8493413925170898,
-0.037308961153030396,
-0.2516203224658966,
-0.3579328954219818,
0.18371570110321045,
0.1613118201494217,
-0.6250277757644653,
0.2937229871749878,
0.7708767652511597,
-0.2856847941875458,
0.4023284316062927,
-0.08492007106542587,
-0.20842483639717102,
-1.3206099271774292,
0.27355480194091797,
-0.04850364103913307,
0.020566286519169807,
-0.7551824450492859,
0.05107688531279564,
-0.41383758187294006,
-0.2022942304611206,
-0.09755229204893112,
0.4908585250377655,
-0.4106294512748718,
-0.039386358112096786,
-0.11799513548612595,
0.13758635520935059,
0.1840655505657196,
0.4606727361679077,
-0.10236267745494843,
0.7168607115745544,
0.2956118881702423,
-0.3884570002555847,
0.24201935529708862,
0.48684248328208923,
-0.42334866523742676,
0.22762548923492432,
-0.7780172824859619,
0.34868723154067993,
0.1395827978849411,
0.3535972237586975,
-0.5926297903060913,
-0.14197471737861633,
0.07698589563369751,
-0.4516567885875702,
0.051305972039699554,
-0.04749511182308197,
-0.5269661545753479,
-0.4416881799697876,
-0.11523837596178055,
0.39831116795539856,
0.5422359108924866,
-0.7718515992164612,
0.7575711011886597,
0.4293840825557709,
0.11867538094520569,
-0.48050835728645325,
-0.9407817125320435,
0.3234272301197052,
-0.34347811341285706,
-0.7273107767105103,
0.24347719550132751,
-0.2982906103134155,
-0.5211950540542603,
-0.10119851678609848,
0.4714328646659851,
-0.3478015065193176,
0.1738302856683731,
0.299831360578537,
0.3309948444366455,
-0.11781541258096695,
0.17415837943553925,
-0.40355247259140015,
-0.16716349124908447,
0.010689621791243553,
-0.27492964267730713,
0.5102187991142273,
-0.16282375156879425,
-0.29650890827178955,
-0.42858535051345825,
0.3834438621997833,
0.2824075520038605,
-0.21128462255001068,
0.7910065054893494,
0.9100320935249329,
-0.28215786814689636,
-0.31851479411125183,
-0.5245047211647034,
-0.017628369852900505,
-0.4705618917942047,
0.29865190386772156,
-0.2604128122329712,
-0.5863134264945984,
0.1812114715576172,
0.1861324906349182,
0.24173153936862946,
0.5836520791053772,
0.3012813329696655,
0.18460440635681152,
0.7127363085746765,
0.30300435423851013,
-0.403842568397522,
0.32004883885383606,
-0.7409953474998474,
0.1570432335138321,
-0.8264308571815491,
0.04073676839470863,
-0.5240609049797058,
-0.27030107378959656,
-0.4801003336906433,
-0.557683527469635,
0.23710794746875763,
-0.00547813018783927,
-0.22527875006198883,
0.28810960054397583,
-0.48531195521354675,
0.43747130036354065,
0.8600155115127563,
0.23735247552394867,
0.2831329107284546,
-0.1625150591135025,
0.41562050580978394,
-0.1132698804140091,
-0.8359971642494202,
-0.3071712255477905,
1.3777629137039185,
-0.05910825729370117,
0.35188716650009155,
0.3519051671028137,
0.8824153542518616,
0.3791075646877289,
0.5127242207527161,
-0.3729489743709564,
0.4251473844051361,
-0.588092029094696,
-0.6359882354736328,
-0.504279375076294,
-0.5238775610923767,
-1.0682612657546997,
0.22057820856571198,
-0.3753374218940735,
-0.5184641480445862,
0.12190921604633331,
-0.06628065556287766,
-0.28529778122901917,
0.30857279896736145,
-0.7347490787506104,
0.7877671122550964,
-0.08905532211065292,
-0.23210997879505157,
-0.21194109320640564,
-0.4333690106868744,
0.4742627441883087,
-0.13482670485973358,
0.37000948190689087,
-0.16471557319164276,
0.28547272086143494,
0.7897443771362305,
-0.6088475584983826,
1.0911757946014404,
-0.2536279559135437,
0.06393959373235703,
0.33425548672676086,
-0.3016541600227356,
0.48490020632743835,
0.17867672443389893,
-0.6431872844696045,
0.31463149189949036,
-0.6132315397262573,
-0.4672059118747711,
-0.687318742275238,
0.6999513506889343,
-0.8192510604858398,
-0.4376204311847687,
-0.06974241137504578,
-0.6030802726745605,
-0.05315598100423813,
0.18961431086063385,
0.3282746970653534,
0.6500512361526489,
-0.25635287165641785,
0.19203366339206696,
0.36864224076271057,
-0.1477772444486618,
0.4126054048538208,
0.2001340240240097,
0.006999464239925146,
-0.5999871492385864,
0.9980666041374207,
-0.0829973965883255,
0.14306367933750153,
0.21221370995044708,
0.29494866728782654,
-0.1203271821141243,
-0.45028722286224365,
-0.6376141309738159,
0.15916548669338226,
-0.38769906759262085,
-0.1562316119670868,
-0.6202335357666016,
-0.24218599498271942,
-0.23868802189826965,
-0.1458113193511963,
-0.2790655493736267,
-0.46381521224975586,
-0.28986164927482605,
0.10103131085634232,
0.4883107542991638,
0.8815311789512634,
-0.142873153090477,
0.020037522539496422,
-0.5913129448890686,
0.1674085110425949,
0.31653159856796265,
0.005425597075372934,
0.1713402420282364,
-0.5423362851142883,
-0.16495101153850555,
0.25890833139419556,
0.018333731219172478,
-0.42024198174476624,
0.5655086636543274,
0.56732577085495,
0.49572455883026123,
0.19992750883102417,
0.28522300720214844,
0.7062804102897644,
-0.4303624927997589,
0.8865137696266174,
0.09378280490636826,
-0.9299042224884033,
0.28075578808784485,
-0.20185132324695587,
0.26939836144447327,
0.6281782984733582,
0.24769985675811768,
-0.48838135600090027,
-0.6391873955726624,
-0.840731680393219,
-0.9661750793457031,
0.42450568079948425,
0.43412378430366516,
-0.10826844722032547,
-0.03273061290383339,
0.2178991585969925,
0.2660479247570038,
0.06143080070614815,
-0.7778087854385376,
-0.30798521637916565,
-0.09703879058361053,
-0.4772360920906067,
-0.31761670112609863,
0.08665008842945099,
-0.10820475220680237,
-0.28202229738235474,
0.8346951603889465,
-0.18356823921203613,
0.28325316309928894,
0.054971661418676376,
-0.1797964721918106,
0.25906527042388916,
0.041391775012016296,
0.38895419239997864,
0.6006012558937073,
-0.08005297929048538,
-0.0010191808687523007,
0.39914587140083313,
-0.24449680745601654,
-0.21438145637512207,
0.27551865577697754,
-0.06922580301761627,
0.13627013564109802,
0.622485876083374,
0.7577106356620789,
-0.02809758111834526,
-0.814826488494873,
0.4929159879684448,
-0.13794781267642975,
-0.26112234592437744,
-0.7107483744621277,
0.04999372735619545,
-0.03868231177330017,
0.33093777298927307,
0.4791451394557953,
0.31698569655418396,
0.13269957900047302,
-0.24244190752506256,
0.3575666546821594,
0.2582291066646576,
-0.08236801624298096,
-0.30708831548690796,
0.6778577566146851,
0.20458710193634033,
-0.45303213596343994,
0.9754502177238464,
-0.42998433113098145,
-0.40085363388061523,
0.7240460515022278,
0.46747496724128723,
0.8171428442001343,
0.17854732275009155,
0.16961096227169037,
0.4981938898563385,
0.07226023823022842,
-0.05737803876399994,
0.17589055001735687,
0.20012100040912628,
-0.8569358587265015,
-0.4046320617198944,
-0.4011322259902954,
-0.3401848077774048,
0.1844833940267563,
-0.7244513630867004,
0.07074248790740967,
-0.30055883526802063,
0.003528860630467534,
0.21651199460029602,
-0.03155501186847687,
-0.8023164868354797,
0.14753341674804688,
-0.06229645386338234,
0.6174077987670898,
-0.9610839486122131,
0.9222456216812134,
0.26701822876930237,
-0.34588855504989624,
-0.6860063076019287,
0.23481135070323944,
0.0006670358125120401,
-0.8124761581420898,
0.6872851848602295,
0.3586505651473999,
0.19868850708007812,
0.030036982148885727,
-0.4194880425930023,
-0.868994414806366,
1.011616587638855,
0.04747287556529045,
-0.5095897316932678,
0.057436347007751465,
0.15239910781383514,
0.6077999472618103,
-0.3574643135070801,
0.2668675184249878,
0.42188555002212524,
0.5215578675270081,
-0.25263485312461853,
-0.7216079235076904,
0.09477228671312332,
-0.5256586670875549,
-0.027118757367134094,
0.01581546477973461,
-0.6743097305297852,
1.0115246772766113,
-0.31807687878608704,
0.0004294021928217262,
0.4031525254249573,
0.6625387668609619,
0.3685394823551178,
0.24751950800418854,
0.8037111163139343,
0.6499620079994202,
1.010040521621704,
0.01811600662767887,
1.077832579612732,
-0.23703546822071075,
0.2728429138660431,
1.3634347915649414,
-0.23788423836231232,
0.975423276424408,
0.15878380835056305,
-0.27080732583999634,
0.5879336595535278,
0.30951476097106934,
-0.4994039535522461,
0.2722955048084259,
0.386576384305954,
-0.17728541791439056,
-0.2328730970621109,
-0.2004719227552414,
-0.31429412961006165,
0.5172012448310852,
0.14266279339790344,
-0.33782958984375,
0.07804473489522934,
0.11364839226007462,
-0.10115501284599304,
0.19699661433696747,
0.24812158942222595,
0.6815105080604553,
-0.10820923000574112,
-0.6406561732292175,
0.9201602339744568,
-0.1544179916381836,
0.8451208472251892,
-0.3253275156021118,
0.029255589470267296,
-0.1610339730978012,
0.2705329954624176,
-0.10360067337751389,
-0.554648220539093,
0.4798389971256256,
0.05366773158311844,
-0.311812162399292,
-0.06685438007116318,
0.23089270293712616,
-0.5278148651123047,
-0.581906795501709,
0.19152098894119263,
0.405755877494812,
0.2344270944595337,
0.05447931960225105,
-0.771088182926178,
-0.06619060039520264,
0.2309281975030899,
-0.14182405173778534,
0.14211083948612213,
0.3834565281867981,
0.1686440259218216,
0.5187526941299438,
0.7885509729385376,
-0.08149155974388123,
0.03804014250636101,
0.4353860318660736,
0.7982005476951599,
-0.5056193470954895,
-0.23874500393867493,
-0.657757580280304,
0.4629916846752167,
-0.48530417680740356,
-0.6984562277793884,
0.6890951991081238,
0.789352536201477,
0.7785075902938843,
-0.1160968691110611,
0.9511651396751404,
-0.2781471014022827,
0.5580464005470276,
-0.5399050712585449,
0.6374923586845398,
-0.4626275599002838,
0.11225307732820511,
-0.1614946871995926,
-0.5626612901687622,
-0.43917346000671387,
0.5175900459289551,
-0.17655591666698456,
0.06654375046491623,
0.45767974853515625,
0.8955883979797363,
0.1381608098745346,
0.21321316063404083,
0.22078892588615417,
0.30830949544906616,
0.3152390122413635,
0.6068469882011414,
0.75421142578125,
-0.4706695079803467,
0.6963472366333008,
-0.33143091201782227,
-0.1462790071964264,
0.05336169898509979,
-0.6011547446250916,
-1.073872447013855,
-0.6684194803237915,
-0.16936971247196198,
-0.2949632704257965,
0.20083987712860107,
1.0355888605117798,
0.8158056735992432,
-0.9316720366477966,
-0.296298623085022,
-0.3203616142272949,
-0.024128278717398643,
-0.32661908864974976,
-0.2468125820159912,
0.39879050850868225,
-0.2532414197921753,
-0.8913746476173401,
0.6944185495376587,
-0.294335275888443,
-0.2459532916545868,
-0.29629403352737427,
-0.15345120429992676,
-0.45231738686561584,
-0.24386011064052582,
0.3141173720359802,
0.07890313863754272,
-0.7572246193885803,
-0.026944542303681374,
-0.1536746770143509,
0.0630493015050888,
-0.028717035427689552,
0.6157873272895813,
-0.5036083459854126,
0.19311784207820892,
0.14890991151332855,
0.7266041040420532,
0.47892194986343384,
-0.09174753725528717,
0.7534834146499634,
-0.9542630910873413,
0.22928979992866516,
0.1377388834953308,
0.31444254517555237,
0.4009599983692169,
-0.3523390293121338,
0.7573037147521973,
0.255744606256485,
-0.6233250498771667,
-0.6625127792358398,
0.12084473669528961,
-0.6973570585250854,
-0.3421028256416321,
1.112396240234375,
-0.25839322805404663,
-0.2868383228778839,
-0.2701745331287384,
-0.0821111872792244,
0.21188493072986603,
-0.433731347322464,
0.9725343585014343,
0.33302953839302063,
0.07287215441465378,
0.06969017535448074,
-0.47121185064315796,
0.36600854992866516,
0.5468959212303162,
-0.83014976978302,
0.18809306621551514,
0.35401737689971924,
0.019268715754151344,
0.33511215448379517,
0.40063995122909546,
0.31457358598709106,
0.06794845312833786,
0.09603599458932877,
0.2713618576526642,
-0.20128969848155975,
-0.18267278373241425,
-0.20434094965457916,
0.09952837228775024,
0.08709264546632767,
-0.10415719449520111
] |
flair/upos-multi
|
flair
| 2023-03-06T11:18:52Z | 8,172 | 7 |
flair
|
[
"flair",
"pytorch",
"token-classification",
"sequence-tagger-model",
"en",
"de",
"fr",
"it",
"nl",
"pl",
"es",
"sv",
"da",
"no",
"fi",
"cs",
"dataset:ontonotes",
"region:us"
] |
token-classification
| 2022-03-02T23:29:05Z |
---
tags:
- flair
- token-classification
- sequence-tagger-model
language:
- en
- de
- fr
- it
- nl
- pl
- es
- sv
- da
- no
- fi
- cs
datasets:
- ontonotes
widget:
- text: "Ich liebe Berlin, as they say"
---
## Multilingual Universal Part-of-Speech Tagging in Flair (default model)
This is the default multilingual universal part-of-speech tagging model that ships with [Flair](https://github.com/flairNLP/flair/).
F1-Score: **98,47** (12 UD Treebanks covering English, German, French, Italian, Dutch, Polish, Spanish, Swedish, Danish, Norwegian, Finnish and Czech)
Predicts universal POS tags:
| **tag** | **meaning** |
|---------------------------------|-----------|
|ADJ | adjective |
| ADP | adposition |
| ADV | adverb |
| AUX | auxiliary |
| CCONJ | coordinating conjunction |
| DET | determiner |
| INTJ | interjection |
| NOUN | noun |
| NUM | numeral |
| PART | particle |
| PRON | pronoun |
| PROPN | proper noun |
| PUNCT | punctuation |
| SCONJ | subordinating conjunction |
| SYM | symbol |
| VERB | verb |
| X | other |
Based on [Flair embeddings](https://www.aclweb.org/anthology/C18-1139/) and LSTM-CRF.
---
### Demo: How to use in Flair
Requires: **[Flair](https://github.com/flairNLP/flair/)** (`pip install flair`)
```python
from flair.data import Sentence
from flair.models import SequenceTagger
# load tagger
tagger = SequenceTagger.load("flair/upos-multi")
# make example sentence
sentence = Sentence("Ich liebe Berlin, as they say. ")
# predict POS tags
tagger.predict(sentence)
# print sentence
print(sentence)
# iterate over tokens and print the predicted POS label
print("The following POS tags are found:")
for token in sentence:
print(token.get_label("upos"))
```
This yields the following output:
```
Token[0]: "Ich" → PRON (0.9999)
Token[1]: "liebe" → VERB (0.9999)
Token[2]: "Berlin" → PROPN (0.9997)
Token[3]: "," → PUNCT (1.0)
Token[4]: "as" → SCONJ (0.9991)
Token[5]: "they" → PRON (0.9998)
Token[6]: "say" → VERB (0.9998)
Token[7]: "." → PUNCT (1.0)
```
So, the words "*Ich*" and "*they*" are labeled as **pronouns** (PRON), while "*liebe*" and "*say*" are labeled as **verbs** (VERB) in the multilingual sentence "*Ich liebe Berlin, as they say*".
---
### Training: Script to train this model
The following Flair script was used to train this model:
```python
from flair.data import MultiCorpus
from flair.datasets import UD_ENGLISH, UD_GERMAN, UD_FRENCH, UD_ITALIAN, UD_POLISH, UD_DUTCH, UD_CZECH, \
UD_DANISH, UD_SPANISH, UD_SWEDISH, UD_NORWEGIAN, UD_FINNISH
from flair.embeddings import StackedEmbeddings, FlairEmbeddings
# 1. make a multi corpus consisting of 12 UD treebanks (in_memory=False here because this corpus becomes large)
corpus = MultiCorpus([
UD_ENGLISH(in_memory=False),
UD_GERMAN(in_memory=False),
UD_DUTCH(in_memory=False),
UD_FRENCH(in_memory=False),
UD_ITALIAN(in_memory=False),
UD_SPANISH(in_memory=False),
UD_POLISH(in_memory=False),
UD_CZECH(in_memory=False),
UD_DANISH(in_memory=False),
UD_SWEDISH(in_memory=False),
UD_NORWEGIAN(in_memory=False),
UD_FINNISH(in_memory=False),
])
# 2. what tag do we want to predict?
tag_type = 'upos'
# 3. make the tag dictionary from the corpus
tag_dictionary = corpus.make_tag_dictionary(tag_type=tag_type)
# 4. initialize each embedding we use
embedding_types = [
# contextual string embeddings, forward
FlairEmbeddings('multi-forward'),
# contextual string embeddings, backward
FlairEmbeddings('multi-backward'),
]
# embedding stack consists of Flair and GloVe embeddings
embeddings = StackedEmbeddings(embeddings=embedding_types)
# 5. initialize sequence tagger
from flair.models import SequenceTagger
tagger = SequenceTagger(hidden_size=256,
embeddings=embeddings,
tag_dictionary=tag_dictionary,
tag_type=tag_type,
use_crf=False)
# 6. initialize trainer
from flair.trainers import ModelTrainer
trainer = ModelTrainer(tagger, corpus)
# 7. run training
trainer.train('resources/taggers/upos-multi',
train_with_dev=True,
max_epochs=150)
```
---
### Cite
Please cite the following paper when using this model.
```
@inproceedings{akbik2018coling,
title={Contextual String Embeddings for Sequence Labeling},
author={Akbik, Alan and Blythe, Duncan and Vollgraf, Roland},
booktitle = {{COLING} 2018, 27th International Conference on Computational Linguistics},
pages = {1638--1649},
year = {2018}
}
```
---
### Issues?
The Flair issue tracker is available [here](https://github.com/flairNLP/flair/issues/).
|
[
-0.42472201585769653,
-0.5323926210403442,
0.1404576450586319,
0.14092165231704712,
-0.31373241543769836,
0.006191043183207512,
-0.33203601837158203,
-0.3987249433994293,
0.5225566029548645,
0.19000883400440216,
-0.4656304121017456,
-0.7059255242347717,
-0.39802223443984985,
0.28666654229164124,
0.13907867670059204,
1.1828923225402832,
0.06752999871969223,
0.4540230929851532,
-0.0363481268286705,
-0.2006690502166748,
-0.43723443150520325,
-0.8013489246368408,
-0.40318602323532104,
-0.17513157427310944,
0.49973776936531067,
0.30695971846580505,
0.5546808838844299,
0.6692438721656799,
0.23212048411369324,
0.32676854729652405,
-0.24868284165859222,
0.11518971621990204,
-0.08041562139987946,
-0.015898318961262703,
-0.15205149352550507,
-0.3647168278694153,
-0.6467180848121643,
0.0708184689283371,
0.7084372639656067,
0.5686059594154358,
0.10089892894029617,
0.1384979635477066,
-0.023954549804329872,
0.12160762399435043,
-0.3634984493255615,
0.39673927426338196,
-0.6488506197929382,
-0.25982165336608887,
-0.3149198293685913,
0.010788582265377045,
-0.4293065667152405,
-0.12022463232278824,
-0.042120613157749176,
-0.48435351252555847,
0.12371253967285156,
0.11384478211402893,
1.228010654449463,
0.12762856483459473,
-0.4395996332168579,
-0.20536963641643524,
-0.5258775353431702,
0.8579921126365662,
-0.88530433177948,
0.3779571056365967,
0.29657232761383057,
-0.1625557541847229,
-0.13335606455802917,
-0.5689225792884827,
-0.6411654353141785,
-0.14987684786319733,
-0.1641942709684372,
0.3033623695373535,
-0.13822340965270996,
-0.09513407200574875,
0.1852475255727768,
0.13296687602996826,
-0.6923043727874756,
0.00011848226131405681,
-0.1684654802083969,
-0.37976256012916565,
0.7174474000930786,
0.047972049564123154,
0.23221255838871002,
-0.4563845694065094,
-0.5589107871055603,
-0.19042819738388062,
-0.3727811574935913,
0.14827987551689148,
0.15511824190616608,
0.6497300267219543,
-0.145723357796669,
0.5267202854156494,
0.10921630263328552,
0.7246952652931213,
-0.016232874244451523,
-0.34455567598342896,
0.6958535313606262,
-0.49073779582977295,
-0.20250371098518372,
-0.048685647547245026,
1.0659410953521729,
0.25085893273353577,
0.1908109188079834,
-0.04753444343805313,
-0.059386130422353745,
0.21473191678524017,
-0.264093279838562,
-0.5055330991744995,
-0.16018368303775787,
0.3228217661380768,
-0.18422390520572662,
-0.14599841833114624,
0.1141391396522522,
-0.8154754042625427,
-0.1780293732881546,
-0.15436218678951263,
0.46950286626815796,
-0.6178666353225708,
-0.20709282159805298,
0.15114974975585938,
-0.27715766429901123,
0.21002162992954254,
0.0323759987950325,
-0.7743021249771118,
-0.10576227307319641,
0.3231089115142822,
0.6351758241653442,
0.21499159932136536,
-0.45796024799346924,
-0.23496337234973907,
0.09142593294382095,
-0.14519643783569336,
0.7547258138656616,
-0.48806440830230713,
-0.3946444094181061,
0.0034354899544268847,
0.22676517069339752,
-0.4946024417877197,
-0.16393733024597168,
0.7456234693527222,
-0.3626702129840851,
0.4336305856704712,
-0.16641084849834442,
-0.7321513891220093,
-0.37583425641059875,
0.12038066238164902,
-0.6202154159545898,
1.024107575416565,
-0.030533023178577423,
-1.1189674139022827,
0.3878612518310547,
-0.49240952730178833,
-0.45443862676620483,
0.04101013019680977,
-0.12141958624124527,
-0.41229182481765747,
-0.15349091589450836,
0.21856552362442017,
0.7434923052787781,
-0.12071409076452255,
0.48042231798171997,
-0.3636271357536316,
-0.03699475899338722,
0.19917932152748108,
-0.00655156746506691,
0.9996994733810425,
0.16515326499938965,
-0.23389966785907745,
0.19964484870433807,
-0.8218302130699158,
-0.0908283218741417,
0.21200725436210632,
-0.5024220943450928,
-0.3165944814682007,
0.008149885572493076,
0.1412608027458191,
0.2814236879348755,
0.09368964284658432,
-0.6303637623786926,
0.5214875340461731,
-0.5781932473182678,
0.45724305510520935,
0.5760167241096497,
-0.049440015107393265,
0.5096564888954163,
-0.40741440653800964,
0.4866562783718109,
0.21354591846466064,
-0.1575237512588501,
-0.25675034523010254,
-0.8126403093338013,
-0.7403756380081177,
-0.5244518518447876,
0.5462983846664429,
0.7947808504104614,
-0.7919600009918213,
0.8189318776130676,
-0.41373124718666077,
-0.6477619409561157,
-0.5571616291999817,
-0.16753579676151276,
0.3682596981525421,
0.5978015661239624,
0.49157771468162537,
-0.1715017557144165,
-0.851804256439209,
-0.8007073998451233,
-0.17644570767879486,
-0.1354672610759735,
0.22750933468341827,
0.11649555712938309,
0.8532665967941284,
-0.2118564248085022,
0.9183645844459534,
-0.3373279571533203,
-0.41985705494880676,
-0.3279131352901459,
0.20189835131168365,
0.510841965675354,
0.6050122380256653,
0.5691388249397278,
-0.7178501486778259,
-0.6976288557052612,
-0.19460457563400269,
-0.38534170389175415,
0.2503894567489624,
-0.16704197227954865,
0.050510797649621964,
0.4925375282764435,
0.3414062559604645,
-0.6065665483474731,
0.36832350492477417,
0.43847760558128357,
-0.5648477077484131,
0.6466488838195801,
-0.12224964797496796,
-0.15822862088680267,
-1.613624930381775,
0.294643372297287,
0.18230703473091125,
-0.16968609392642975,
-0.6747397184371948,
-0.20536279678344727,
0.060809433460235596,
0.20052286982536316,
-0.5386043787002563,
0.7946779131889343,
-0.43445125222206116,
0.12379847466945648,
0.13667622208595276,
-0.012125399895012379,
0.018666572868824005,
0.7069692015647888,
0.3029567003250122,
0.6266236901283264,
0.777032196521759,
-0.6567025780677795,
0.23812244832515717,
0.387921541929245,
-0.3415815532207489,
0.07761342078447342,
-0.3829666078090668,
-0.1619078665971756,
-0.22587768733501434,
0.37307149171829224,
-1.3384171724319458,
-0.26321136951446533,
0.524989128112793,
-0.8148873448371887,
0.5697962045669556,
-0.03888693079352379,
-0.5398971438407898,
-0.4942360818386078,
-0.3555569052696228,
0.08095803111791611,
0.3175741732120514,
-0.41530248522758484,
0.6512123346328735,
0.4612467288970947,
0.040510114282369614,
-0.7634180784225464,
-0.7081206440925598,
-0.18244467675685883,
-0.3622814416885376,
-0.6305801272392273,
0.4958401322364807,
-0.14237080514431,
0.07963304221630096,
-0.027845673263072968,
0.17345181107521057,
0.014206076972186565,
0.17660076916217804,
0.16350577771663666,
0.47263550758361816,
-0.17863290011882782,
0.28983166813850403,
-0.23765897750854492,
0.013606924563646317,
-0.21890245378017426,
-0.19755136966705322,
0.8570916652679443,
-0.2866925895214081,
0.10674617439508438,
-0.5183024406433105,
0.2589663863182068,
0.30188867449760437,
-0.4599839150905609,
0.7872649431228638,
0.9666052460670471,
-0.3938466012477875,
0.05106983706355095,
-0.32186031341552734,
-0.019256068393588066,
-0.37821677327156067,
0.5099260807037354,
-0.6410118341445923,
-0.7930557727813721,
0.6616706848144531,
0.03596777841448784,
0.10388492792844772,
0.8524245619773865,
0.6144880652427673,
-0.10261869430541992,
1.309678316116333,
0.6035593748092651,
-0.3035723567008972,
0.4249202013015747,
-0.5359702110290527,
0.05849096179008484,
-0.7813612818717957,
-0.1748937964439392,
-0.6792484521865845,
-0.07972767949104309,
-0.8815268874168396,
-0.42069166898727417,
0.20317776501178741,
0.4362949728965759,
-0.4501105546951294,
0.5280634164810181,
-0.539659321308136,
0.24402879178524017,
0.7251976132392883,
-0.15520638227462769,
0.09446648508310318,
0.026254279538989067,
-0.5258027911186218,
-0.12017439305782318,
-0.8859204053878784,
-0.5095489621162415,
1.0073579549789429,
0.4832214415073395,
0.6112565994262695,
0.013815749436616898,
0.8369477391242981,
-0.06701483577489853,
0.2706824839115143,
-0.9152553081512451,
0.408881276845932,
-0.30087897181510925,
-0.8636775016784668,
-0.1163831278681755,
-0.19374889135360718,
-1.120333194732666,
0.3417777717113495,
-0.2738148272037506,
-1.0838608741760254,
0.284176766872406,
0.15728212893009186,
-0.535599410533905,
0.4192212224006653,
-0.5707982182502747,
1.0043107271194458,
-0.12360765039920807,
-0.18983693420886993,
0.2276979386806488,
-0.8854216933250427,
0.2592439651489258,
0.018451599404215813,
0.6086841821670532,
-0.2317967563867569,
-0.01870381459593773,
1.08858060836792,
-0.11822064220905304,
1.1475104093551636,
0.008501982316374779,
0.10300278663635254,
0.3109135925769806,
-0.02075132727622986,
0.26425039768218994,
0.09161413460969925,
0.011577324941754341,
0.20950175821781158,
0.14886654913425446,
-0.21863414347171783,
0.022131001576781273,
0.5698533058166504,
-0.8510000109672546,
-0.33278703689575195,
-0.8999205827713013,
-0.31144094467163086,
-0.2123241275548935,
0.3359886407852173,
0.6937025189399719,
0.39964553713798523,
-0.215566486120224,
-0.1454693078994751,
0.43342313170433044,
-0.30606213212013245,
0.6900725364685059,
0.5457075834274292,
-0.38443344831466675,
-0.691344141960144,
0.9730794429779053,
-0.04364350810647011,
-0.1253812462091446,
0.42182713747024536,
0.3298998177051544,
-0.47273948788642883,
-0.07190459966659546,
-0.44721466302871704,
0.6206139326095581,
-0.7101142406463623,
-0.4651695787906647,
-0.6049707531929016,
-0.12611138820648193,
-0.9465415477752686,
0.08310873061418533,
-0.3363629877567291,
-0.5131158232688904,
-0.6182374954223633,
0.039059948176145554,
0.2846880555152893,
0.6534687280654907,
-0.32529836893081665,
0.3463638424873352,
-0.8688955307006836,
-0.020777704194188118,
-0.06564034521579742,
0.1666935682296753,
-0.23631775379180908,
-0.8250759840011597,
-0.28325024247169495,
0.19598610699176788,
-0.3562508523464203,
-1.0989220142364502,
0.8292413949966431,
0.41733241081237793,
0.6132897138595581,
0.40905508399009705,
-0.17918266355991364,
0.5265009999275208,
-0.47660622000694275,
0.9491647481918335,
0.26060327887535095,
-0.9969913959503174,
0.5053778886795044,
-0.34989774227142334,
0.34922873973846436,
0.21506525576114655,
0.9405727386474609,
-0.7049495577812195,
-0.21706059575080872,
-0.7590020298957825,
-0.9591658711433411,
0.8965733647346497,
-0.12169080227613449,
0.11096632480621338,
-0.34218937158584595,
0.12983344495296478,
-0.045357123017311096,
0.11245670169591904,
-1.0015923976898193,
-0.5812298655509949,
-0.20434971153736115,
-0.23586708307266235,
-0.4459831416606903,
-0.2449570596218109,
-0.029266534373164177,
-0.648228645324707,
1.0827738046646118,
-0.1655115932226181,
0.52051842212677,
0.28905633091926575,
0.0133616728708148,
0.023417901247739792,
0.26155200600624084,
0.6063356399536133,
0.36286407709121704,
-0.3518623411655426,
-0.020515909418463707,
0.10004708170890808,
-0.2365005612373352,
-0.10154593735933304,
0.18506233394145966,
-0.022502576932311058,
0.33183905482292175,
0.46663424372673035,
0.9837427139282227,
0.20349039137363434,
-0.417555034160614,
0.5587353110313416,
-0.039311330765485764,
-0.23320415616035461,
-0.4177616238594055,
-0.30077341198921204,
0.24393805861473083,
0.1126079335808754,
0.1329822689294815,
0.15785695612430573,
-0.11765206605195999,
-0.5890782475471497,
0.1798892468214035,
0.4091406762599945,
-0.3539246916770935,
-0.5323636531829834,
0.8061166405677795,
0.06522037088871002,
-0.07263936847448349,
0.36870482563972473,
-0.4293760359287262,
-0.9462790489196777,
0.5464386940002441,
0.6023524403572083,
0.7457910776138306,
-0.4626726508140564,
0.25849810242652893,
0.8184950351715088,
0.06454892456531525,
-0.04519534483551979,
0.6736368536949158,
0.2955605983734131,
-1.0635219812393188,
-0.4525587260723114,
-0.9827061295509338,
0.09219825267791748,
0.1962147206068039,
-0.5850346088409424,
0.41190069913864136,
-0.24483676254749298,
-0.4465852379798889,
0.39882326126098633,
0.056932222098112106,
-0.8340749144554138,
0.19011715054512024,
0.5352718830108643,
0.9863312244415283,
-1.0497099161148071,
1.248963713645935,
1.1030840873718262,
-0.827063798904419,
-0.9669232368469238,
-0.27978065609931946,
-0.02561810240149498,
-0.7961586713790894,
0.7181587815284729,
0.33709588646888733,
0.25529155135154724,
0.14025548100471497,
-0.6336700320243835,
-1.278578758239746,
0.9636276960372925,
-0.034202199429273605,
-0.38078710436820984,
-0.13831627368927002,
0.004293813835829496,
0.5449206233024597,
-0.4832390546798706,
0.33691778779029846,
0.5387710928916931,
0.47497057914733887,
0.12114224582910538,
-1.1172995567321777,
-0.09600823372602463,
-0.21767807006835938,
-0.007374522741883993,
0.06668570637702942,
-0.6663196086883545,
1.166798710823059,
-0.2131723016500473,
-0.3271480202674866,
0.22567549347877502,
0.7869125604629517,
0.0675881952047348,
-0.08238212764263153,
0.36362171173095703,
0.7243103981018066,
0.8300721049308777,
-0.19624237716197968,
0.9483159780502319,
-0.5011546611785889,
0.6295989751815796,
1.3057318925857544,
-0.006069913040846586,
0.9478157162666321,
0.3962033987045288,
-0.14498589932918549,
0.46910330653190613,
0.9043232202529907,
-0.15864567458629608,
0.45218589901924133,
0.09642750769853592,
-0.08957020938396454,
-0.3924699127674103,
-0.2862951159477234,
-0.39759066700935364,
0.7959284782409668,
0.4190782308578491,
-0.3980899155139923,
-0.04485686868429184,
0.1564978063106537,
0.4936069846153259,
-0.138044074177742,
-0.22264836728572845,
0.7761920690536499,
-0.12114983797073364,
-0.6806542277336121,
0.795005202293396,
0.20301368832588196,
0.9484184980392456,
-0.5957958102226257,
0.12578953802585602,
-0.09693118929862976,
0.2769463360309601,
-0.07461095601320267,
-0.7627570629119873,
0.08397718518972397,
-0.2664327025413513,
-0.011273112148046494,
-0.13141460716724396,
0.5867145657539368,
-0.732119083404541,
-0.5154560208320618,
0.3916224241256714,
0.5949627757072449,
0.21915507316589355,
0.028931928798556328,
-0.9461411833763123,
-0.10485600680112839,
0.2788318395614624,
-0.4157624840736389,
0.1814640909433365,
0.17492815852165222,
0.0020155643578618765,
0.4891570806503296,
0.46225854754447937,
0.11437010020017624,
0.12395872175693512,
-0.014784449711441994,
0.9346462488174438,
-0.7620444893836975,
-0.4293215572834015,
-0.8318936824798584,
0.7302557826042175,
0.14211629331111908,
-0.4777384400367737,
0.7776132225990295,
0.7275272607803345,
1.0554845333099365,
-0.22517074644565582,
0.8706748485565186,
-0.33951011300086975,
0.8128100037574768,
-0.23804360628128052,
0.5075311660766602,
-0.7426720857620239,
-0.03410203009843826,
-0.16298913955688477,
-0.747532069683075,
-0.4950428009033203,
0.604983925819397,
-0.220380499958992,
-0.11803241819143295,
0.6081609129905701,
0.749039351940155,
0.16732604801654816,
-0.1397905796766281,
0.1956404745578766,
0.3831210434436798,
0.16215060651302338,
0.5155081748962402,
0.6155802607536316,
-0.4679108262062073,
0.40100815892219543,
-0.6332027912139893,
-0.22367529571056366,
-0.09903096407651901,
-0.8301700353622437,
-0.9135090708732605,
-0.916818380355835,
-0.3836666941642761,
-0.5768648386001587,
-0.27656617760658264,
1.132148027420044,
0.4717409014701843,
-1.0737007856369019,
-0.37550652027130127,
0.23620352149009705,
-0.06823461502790451,
-0.03802056983113289,
-0.24691897630691528,
0.509647786617279,
-0.38777846097946167,
-0.8241965174674988,
0.3118170201778412,
-0.21784935891628265,
0.2519567906856537,
0.06727485358715057,
0.042320866137742996,
-0.8318895697593689,
-0.04920268803834915,
0.45253753662109375,
0.3186799883842468,
-0.8586175441741943,
-0.22332587838172913,
0.01864367350935936,
-0.24355846643447876,
0.2457490861415863,
0.32605263590812683,
-0.662283182144165,
0.4189261198043823,
0.6030300855636597,
0.18024137616157532,
0.3004143238067627,
-0.014686662703752518,
0.3671315908432007,
-0.9083089828491211,
0.20376358926296234,
0.35356950759887695,
0.6540199518203735,
0.2905559539794922,
-0.11049395054578781,
0.41139891743659973,
0.4840083718299866,
-0.5439215898513794,
-0.6001170873641968,
0.010980585590004921,
-1.0217630863189697,
-0.5453952550888062,
1.329489827156067,
-0.20023755729198456,
-0.4302261769771576,
0.024454345926642418,
-0.28932318091392517,
0.6975487470626831,
-0.46261462569236755,
0.29801279306411743,
0.628204882144928,
-0.16653026640415192,
0.2608954608440399,
-0.24486564099788666,
0.8054855465888977,
0.38176172971725464,
-0.39476776123046875,
-0.07670541107654572,
0.3718353509902954,
0.4378787875175476,
0.49342575669288635,
0.5785579681396484,
0.11827020347118378,
0.0033791486639529467,
-0.0693005919456482,
0.5407293438911438,
0.10525599122047424,
-0.2671847641468048,
-0.5786558985710144,
-0.1846330314874649,
-0.07183503359556198,
-0.37730535864830017
] |
iproskurina/tda-bert-en-cola
|
iproskurina
| 2023-10-22T21:19:23Z | 8,161 | 0 |
transformers
|
[
"transformers",
"pytorch",
"safetensors",
"bert",
"text-classification",
"TDA",
"en",
"dataset:shivkumarganesh/CoLA",
"license:apache-2.0",
"endpoints_compatible",
"region:us"
] |
text-classification
| 2023-05-28T15:54:03Z |
---
license: apache-2.0
tags:
- TDA
metrics:
- accuracy
- matthews_correlation
model-index:
- name: bert-base-cased-en-cola_32_3e-05_lr_0.01_decay_balanced
results: []
datasets:
- shivkumarganesh/CoLA
language:
- en
widget:
- text: The book was by John written.
- text: "The ship sank, but I don't know with what."
- text: "Everyone relies on someone. It's unclear who."
- text: "The book what inspired them was very long."
- text: "I want goes to the store."
- text: "I wonder whom us to trust."
---
[**Official repository**](https://github.com/upunaprosk/la-tda)
# BERT-TDA
This model is a version of [bert-base-cased](https://huggingface.co/bert-base-cased) fine-tuned on [CoLA](https://nyu-mll.github.io/CoLA/).
It achieves the following results on the evaluation set:
- Loss: 0.6809
- Accuracy: 0.8501
- Mcc: 0.6337
## Features extracted from Transformer
The features extracted from attention maps include the following:
1. **Topological features** are properties of attention graphs. Features of directed attention graphs include the number of strongly connected components, edges, simple cycles and average vertex degree. The properties of undirected graphs include
the first two Betti numbers: the number of connected components and the number of simple cycles, the matching number and the chordality.
2. **Features derived from barcodes** include descriptive characteristics of 0/1-dimensional barcodes and reflect the survival (death and birth) of
connected components and edges throughout the filtration.
3. **Distance-to-pattern** features measure the distance between attention matrices and identity matrices of pre-defined attention patterns, such as attention to the first token [CLS] and to the last
[SEP] of the sequence, attention to previous and
next token and to punctuation marks.
The computed features and barcodes can be found in the subdirectories of the repository. *test_sub* features and barcodes were computed on the out of domain test [CoLA dataset](https://www.kaggle.com/c/cola-out-of-domain-open-evaluation/overview).
Refer to notebooks 4* and 5* from the [repository](https://github.com/upunaprosk/la-tda) to construct the classification pipeline with TDA features.
## Training procedure
### Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 3e-05
- train_batch_size: 32
- eval_batch_size: 8
- seed: 42
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- num_epochs: 3.0
### Framework versions
- Transformers 4.23.0.dev0
- Pytorch 1.12.1+cu113
- Datasets 2.5.1
- Tokenizers 0.13.0
|
[
-0.4892965853214264,
-0.649492084980011,
0.4878935217857361,
0.20616084337234497,
-0.3342770040035248,
0.14671272039413452,
0.08559327572584152,
-0.3000592589378357,
0.34587615728378296,
0.49361637234687805,
-0.5270564556121826,
-0.5646827220916748,
-0.5081840753555298,
0.03485286608338356,
-0.34293901920318604,
1.2529664039611816,
-0.04061912000179291,
0.02279544807970524,
0.07407935708761215,
-0.21537402272224426,
-0.4997498691082001,
-0.7849089503288269,
-0.7420580983161926,
-0.27959558367729187,
0.6996127367019653,
0.09160629659891129,
0.45248889923095703,
0.48954692482948303,
0.6754865646362305,
0.20824739336967468,
-0.36217132210731506,
-0.2346803843975067,
-0.5781082510948181,
-0.2794218063354492,
-0.016499435529112816,
-0.3332540988922119,
-0.608613133430481,
-0.034666694700717926,
0.5967128276824951,
0.6098648905754089,
0.17579089105129242,
0.4185854196548462,
0.15610848367214203,
0.8842402100563049,
-0.6414371132850647,
0.42707470059394836,
-0.2615140676498413,
0.33536699414253235,
-0.2635795772075653,
-0.2425706684589386,
-0.49971118569374084,
-0.5649591088294983,
0.3391258418560028,
-0.5063936710357666,
0.5329921245574951,
0.03707330301403999,
1.0768476724624634,
0.45239415764808655,
-0.35721296072006226,
-0.26452121138572693,
-0.6457482576370239,
0.5611003637313843,
-0.17747579514980316,
0.4702361524105072,
0.3030611574649811,
0.39473050832748413,
0.022161493077874184,
-0.940816342830658,
-0.2884927988052368,
-0.06151764839887619,
-0.1365596055984497,
0.2097371518611908,
-0.21855682134628296,
-0.07559717446565628,
0.3451814651489258,
0.3234855830669403,
-0.5525184273719788,
-0.08377274870872498,
-0.5002465844154358,
-0.2215091586112976,
0.48924171924591064,
0.1568342000246048,
-0.13527823984622955,
0.035201482474803925,
-0.531569242477417,
-0.3340644836425781,
-0.5990622043609619,
0.2058171182870865,
0.25167199969291687,
0.2556844651699066,
-0.2847450077533722,
0.4918071925640106,
-0.19956578314304352,
0.5707869529724121,
0.1129603385925293,
0.00864715501666069,
0.6813783049583435,
-0.34133753180503845,
-0.4013434648513794,
0.13181792199611664,
0.603999137878418,
0.019130421802401543,
0.5109766721725464,
-0.21518726646900177,
-0.06754888594150543,
-0.05409620329737663,
0.32187843322753906,
-0.7349660992622375,
-0.26788055896759033,
0.2377234548330307,
-0.5138007402420044,
-0.3330434560775757,
0.06685478985309601,
-0.6540191173553467,
-0.08204948902130127,
-0.2754177451133728,
0.4061794877052307,
-0.44877561926841736,
0.06912009418010712,
0.08617497980594635,
-0.0804687887430191,
0.34662294387817383,
0.036935023963451385,
-0.5762754082679749,
0.23858758807182312,
0.4487815499305725,
0.9698401689529419,
-0.20076563954353333,
-0.18599922955036163,
-0.29500606656074524,
-0.054597873240709305,
-0.26560699939727783,
0.7711817026138306,
-0.20572654902935028,
-0.22982120513916016,
0.044646020978689194,
0.07496515661478043,
-0.21111370623111725,
-0.45515263080596924,
0.673922061920166,
-0.8818935751914978,
0.06336148828268051,
-0.23856186866760254,
-0.511397123336792,
-0.460317462682724,
0.082443006336689,
-0.7657546401023865,
1.015182614326477,
0.42835938930511475,
-0.6063430905342102,
0.48273542523384094,
-0.8571223616600037,
-0.407875657081604,
0.06010831892490387,
0.21471577882766724,
-0.723813533782959,
-0.06015681475400925,
0.08327045291662216,
0.3877561390399933,
-0.12500257790088654,
0.2560665011405945,
-0.4505162835121155,
-0.4750351309776306,
0.2888481020927429,
-0.09678931534290314,
1.1294407844543457,
0.4134864807128906,
-0.2767667770385742,
0.2348281592130661,
-0.8330016136169434,
0.09857794642448425,
0.26364773511886597,
-0.4003196954727173,
-0.021042324602603912,
-0.19293950498104095,
0.3047987222671509,
0.11256636679172516,
0.19698964059352875,
-0.38809680938720703,
0.1720232516527176,
-0.16427290439605713,
0.3611672520637512,
0.6964218616485596,
0.17525853216648102,
0.13997837901115417,
-0.1585349291563034,
0.4784613251686096,
0.2575427293777466,
0.4935799837112427,
0.15355446934700012,
-0.6305127739906311,
-0.8727484941482544,
-0.40076348185539246,
0.48589521646499634,
0.5434431433677673,
-0.46585479378700256,
0.8678202033042908,
-0.38182762265205383,
-0.49253782629966736,
-0.21662184596061707,
-0.1156151294708252,
0.6047365069389343,
0.45073625445365906,
0.37984347343444824,
-0.5612266063690186,
-0.4878729283809662,
-0.8207513093948364,
0.37369832396507263,
0.005670681595802307,
-0.059178676456213,
0.12123579531908035,
0.6221513748168945,
-0.17169621586799622,
1.0058250427246094,
-0.7409339547157288,
-0.5954225659370422,
-0.08476676046848297,
0.060293667018413544,
0.2754118740558624,
0.27982985973358154,
0.8985669612884521,
-0.5036490559577942,
-0.4894053041934967,
-0.1747334748506546,
-0.6360788345336914,
-0.047445908188819885,
0.24754875898361206,
-0.08969689905643463,
0.0928816944360733,
0.18976914882659912,
-0.4163724482059479,
0.7128074765205383,
0.20252184569835663,
-0.447209894657135,
0.2911342978477478,
0.02095688134431839,
0.014695137739181519,
-1.1459369659423828,
0.12706446647644043,
0.18453267216682434,
-0.04677439481019974,
-0.5036563873291016,
0.046575017273426056,
0.007974128238856792,
-0.16052907705307007,
-0.4658588171005249,
0.34542083740234375,
-0.3247385621070862,
-0.38023641705513,
-0.0019132246961817145,
-0.04742930456995964,
0.00521441362798214,
0.852532684803009,
0.05522347241640091,
0.8973754048347473,
0.5960016250610352,
-0.6092310547828674,
0.3148803412914276,
0.4144154191017151,
-0.3540678024291992,
0.41662535071372986,
-0.8506874442100525,
0.3301338255405426,
0.09223680198192596,
0.21642738580703735,
-0.8862214684486389,
-0.017306581139564514,
0.3488025963306427,
-0.5293051600456238,
0.30706167221069336,
-0.16469860076904297,
-0.5598157048225403,
-0.4498846232891083,
-0.3846386671066284,
0.4234936535358429,
0.684040904045105,
-0.4410659074783325,
0.37603333592414856,
0.29362690448760986,
0.11006372421979904,
-0.5339120030403137,
-0.4809677302837372,
-0.20224648714065552,
-0.16914533078670502,
-0.39795181155204773,
0.20197682082653046,
-0.10171063244342804,
0.05093152076005936,
-0.046830497682094574,
0.20854198932647705,
-0.3052718937397003,
-0.08912430703639984,
0.28012850880622864,
0.12862585484981537,
-0.1332833468914032,
0.08893723785877228,
-0.2218111902475357,
-0.09423986822366714,
0.11391949653625488,
-0.1039663702249527,
0.7496954202651978,
-0.11993508785963058,
-0.10552546381950378,
-0.38177821040153503,
0.06344541162252426,
0.5387812852859497,
-0.24156570434570312,
0.47097641229629517,
0.7799886465072632,
-0.43046313524246216,
-0.03150392323732376,
-0.3075837790966034,
-0.06088782846927643,
-0.4359753727912903,
0.4376451373100281,
-0.5907877087593079,
-0.6920626759529114,
0.9731462001800537,
0.21467211842536926,
-0.47659364342689514,
0.5668156147003174,
0.6565484404563904,
-0.009468408301472664,
0.9046569466590881,
0.5857625007629395,
-0.08591468632221222,
0.5724202990531921,
-0.6507720947265625,
0.23608943819999695,
-1.0186715126037598,
-0.4462892711162567,
-0.7134143114089966,
-0.1788383275270462,
-0.5672751069068909,
-0.16125740110874176,
0.5562046766281128,
0.07873550057411194,
-0.5636489391326904,
0.4330127537250519,
-0.6030251383781433,
0.2534743547439575,
0.8427034616470337,
0.475483775138855,
-0.13268348574638367,
0.12021684646606445,
-0.27679121494293213,
0.08891814202070236,
-0.6446897983551025,
-0.3129582405090332,
1.1922740936279297,
0.5551540851593018,
0.5953696966171265,
-0.06465694308280945,
0.5582807064056396,
0.4438548684120178,
0.19565795361995697,
-0.8561484813690186,
0.48811012506484985,
-0.0592179149389267,
-0.7170765995979309,
-0.15478086471557617,
-0.2113601565361023,
-0.9511629939079285,
-0.29452160000801086,
-0.027486983686685562,
-0.8084979057312012,
0.5458206534385681,
0.03537691757082939,
-0.3351123631000519,
0.1473027914762497,
-0.9449829459190369,
0.9078909754753113,
-0.14349155128002167,
-0.1696098893880844,
0.05361587554216385,
-0.727679431438446,
0.13223105669021606,
-0.27417218685150146,
-0.312161386013031,
0.09954270720481873,
0.21880094707012177,
0.8898089528083801,
-0.3859202563762665,
0.8522322177886963,
-0.20770107209682465,
0.15010817348957062,
0.4862821400165558,
-0.15541735291481018,
0.3105422556400299,
-0.14647585153579712,
0.25431686639785767,
0.4803259074687958,
-0.17623835802078247,
-0.3926604986190796,
-0.35822978615760803,
0.4449822008609772,
-0.9420284628868103,
-0.2303312122821808,
-0.5806868076324463,
-0.54610276222229,
-0.19294428825378418,
0.19950340688228607,
0.30985260009765625,
0.4937421977519989,
0.03135377913713455,
0.2951313555240631,
0.791005551815033,
-0.14039744436740875,
0.5072091817855835,
0.31784212589263916,
-0.028127266094088554,
-0.5404472351074219,
0.8494316935539246,
0.13022559881210327,
-0.08035129308700562,
0.38791289925575256,
0.04269196093082428,
-0.6418311595916748,
-0.6639915108680725,
-0.29746314883232117,
0.14882737398147583,
-0.8478823304176331,
-0.39926472306251526,
-0.5147889852523804,
-0.4990154802799225,
-0.5593874454498291,
0.012410074472427368,
-0.20373886823654175,
-0.2012271136045456,
-0.5676795244216919,
-0.18541553616523743,
0.5366556644439697,
0.6962412595748901,
0.11197282373905182,
0.37603750824928284,
-0.7718473076820374,
0.15986855328083038,
0.34179452061653137,
0.6069637537002563,
-0.04861237853765488,
-0.665887176990509,
-0.43422263860702515,
-0.16646236181259155,
-0.4736671447753906,
-0.853676438331604,
0.3242681622505188,
0.08779457956552505,
0.46086418628692627,
0.4163213074207306,
-0.037753790616989136,
0.5779638886451721,
-0.35418879985809326,
0.6962774991989136,
0.1276603788137436,
-0.947642982006073,
0.6394938230514526,
-0.21314407885074615,
0.09437381476163864,
0.37276914715766907,
0.47219738364219666,
0.13937348127365112,
-0.15399900078773499,
-0.5921061038970947,
-0.5897296071052551,
0.7690711617469788,
0.4579116106033325,
-0.2112017273902893,
-0.06350693851709366,
0.37770992517471313,
-0.1878914088010788,
-0.015611667186021805,
-0.7846398949623108,
-0.5191361904144287,
-0.32539093494415283,
-0.3005998432636261,
-0.1573968529701233,
-0.3900449872016907,
-0.19820627570152283,
-0.3873838484287262,
0.5373036861419678,
-0.059798214584589005,
0.5828126668930054,
0.2566957473754883,
0.018499918282032013,
-0.05102892965078354,
0.08568386733531952,
0.8179984092712402,
0.7975897789001465,
-0.8066341876983643,
-0.14746175706386566,
-0.020195845514535904,
-0.7198511362075806,
0.20757603645324707,
0.30504682660102844,
-0.2766161561012268,
-0.07485505193471909,
0.41404956579208374,
0.9281432032585144,
-0.20481900870800018,
-0.2141355723142624,
0.36741119623184204,
-0.018902132287621498,
-0.14345315098762512,
-0.3673226535320282,
0.062126994132995605,
-0.22096917033195496,
0.2242671102285385,
0.5606462359428406,
0.09532512724399567,
0.33854812383651733,
-0.322045236825943,
0.31213533878326416,
0.19412225484848022,
-0.6170552968978882,
-0.34880590438842773,
0.7114942073822021,
0.20718561112880707,
-0.32591378688812256,
0.5275460481643677,
-0.29252809286117554,
-0.5169674754142761,
0.9332870841026306,
0.4395901560783386,
1.2956256866455078,
0.07521742582321167,
0.11908239871263504,
0.48816245794296265,
0.22931750118732452,
0.35891082882881165,
0.2729896903038025,
-0.07274189591407776,
-0.66502445936203,
-0.2615130841732025,
-0.6406187415122986,
-0.18148967623710632,
0.17236465215682983,
-0.8270950317382812,
0.3108389377593994,
-0.40674889087677,
-0.3528924882411957,
0.33016976714134216,
0.1060786247253418,
-0.9661352634429932,
0.4175015687942505,
-0.052561696618795395,
0.8281037211418152,
-0.8239307403564453,
0.9418267011642456,
0.7476701736450195,
-0.7172577381134033,
-0.757190465927124,
-0.15943169593811035,
-0.32018131017684937,
-0.9985335469245911,
1.0085091590881348,
0.02109040878713131,
0.0046980120241642,
0.18486028909683228,
-0.4464563727378845,
-0.8268605470657349,
1.193909764289856,
0.24646732211112976,
-0.4378214180469513,
0.14505630731582642,
0.25481095910072327,
0.7329134345054626,
-0.38817155361175537,
0.31391239166259766,
0.5017641186714172,
0.17406289279460907,
0.1257985681295395,
-0.8992610573768616,
0.0004965935950167477,
-0.17722450196743011,
0.23834705352783203,
0.19426091015338898,
-0.7517790198326111,
0.7373694181442261,
-0.34866559505462646,
-0.14039188623428345,
-0.16774508357048035,
0.31295156478881836,
0.22827774286270142,
0.4018372893333435,
0.4023212790489197,
0.9767983555793762,
0.24727122485637665,
-0.4261287450790405,
1.028597354888916,
-0.4316084682941437,
0.8579723834991455,
0.9859611988067627,
-0.3217366933822632,
0.5738327503204346,
0.35716184973716736,
-0.5130480527877808,
0.3524993360042572,
0.9680197238922119,
-0.11477914452552795,
0.8429561257362366,
0.2341722846031189,
0.09392686933279037,
0.15646852552890778,
-0.1291685402393341,
-0.5598635077476501,
0.41669172048568726,
0.22351495921611786,
-0.6366819143295288,
-0.10638642311096191,
-0.014399435371160507,
-0.1915474683046341,
-0.39371955394744873,
-0.2641630172729492,
0.8620922565460205,
-0.22781266272068024,
-0.41276460886001587,
0.7723037004470825,
-0.2981155216693878,
0.32470953464508057,
-0.44574838876724243,
-0.14996248483657837,
-0.44777169823646545,
0.3115070164203644,
0.015071769244968891,
-0.9431037902832031,
0.2670423090457916,
-0.08401016145944595,
-0.2872296869754791,
0.016191331669688225,
0.5104514360427856,
-0.03371915593743324,
-0.4605804979801178,
0.38485750555992126,
0.2004813402891159,
0.13571660220623016,
0.07918311655521393,
-0.7343858480453491,
0.09041253477334976,
-0.09350115805864334,
-0.322454571723938,
0.10498121380805969,
0.3304755389690399,
-0.07016488909721375,
0.7411036491394043,
0.42991387844085693,
-0.07442176342010498,
0.2767750024795532,
0.3896063268184662,
0.9042990207672119,
-0.6623993515968323,
-0.4908407926559448,
-0.4370001256465912,
0.3475714921951294,
0.05137323588132858,
-0.5449702739715576,
0.4038437604904175,
0.72731614112854,
0.9835689067840576,
-0.47083017230033875,
0.41256052255630493,
-0.05854121223092079,
0.46603065729141235,
-0.546062707901001,
0.5770318508148193,
-0.3184730112552643,
-0.06175095587968826,
-0.19172173738479614,
-1.153747320175171,
-0.288431316614151,
0.39679911732673645,
-0.03578713908791542,
0.26233652234077454,
0.9213104248046875,
0.6829390525817871,
-0.0337575227022171,
-0.3090212941169739,
0.20391406118869781,
0.10624002665281296,
0.2217850387096405,
0.6972777247428894,
0.5218846797943115,
-0.712443470954895,
0.5116190314292908,
-0.5333355665206909,
-0.19967752695083618,
-0.27432069182395935,
-0.6040796041488647,
-1.054202675819397,
-0.7778335213661194,
-0.5382645130157471,
-0.39721429347991943,
0.04369889199733734,
0.5459936261177063,
0.8373779058456421,
-1.0353434085845947,
-0.12887504696846008,
-0.16772332787513733,
0.001175386249087751,
-0.2935366928577423,
-0.3172730803489685,
0.8038589954376221,
-0.33843639492988586,
-0.7506993412971497,
-0.1238691508769989,
0.17683447897434235,
0.2755633592605591,
-0.22504360973834991,
-0.0443742536008358,
-0.19905246794223785,
-0.17114116251468658,
0.6897218227386475,
0.13475489616394043,
-0.6857947707176208,
-0.5516762137413025,
0.07842696458101273,
-0.14435599744319916,
0.2114497572183609,
0.6962868571281433,
-0.7312586307525635,
0.4999658763408661,
0.527262806892395,
0.3937009274959564,
0.6214650869369507,
-0.07371518015861511,
0.20532472431659698,
-0.9360342025756836,
0.302255243062973,
0.1753590703010559,
0.5300649404525757,
0.11443069577217102,
-0.3933708667755127,
0.8772453665733337,
0.45447593927383423,
-0.5907649993896484,
-0.6509012579917908,
0.002011242089793086,
-1.4498177766799927,
0.19103935360908508,
0.9278134107589722,
-0.2945726215839386,
-0.3072103261947632,
-0.20385603606700897,
-0.15738166868686676,
0.5611585378646851,
-0.3052624762058258,
0.8840388059616089,
0.6343536972999573,
-0.2085217833518982,
-0.26333507895469666,
-0.2833186686038971,
0.5588057041168213,
0.11545252799987793,
-0.7742131352424622,
-0.29896602034568787,
0.3865481913089752,
0.37748828530311584,
0.4690069556236267,
0.48351752758026123,
-0.18890637159347534,
0.2434750646352768,
-0.09333058446645737,
0.2849164605140686,
-0.04990796372294426,
-0.4419296085834503,
-0.37612390518188477,
0.2528524398803711,
-0.09141485393047333,
-0.6505948305130005
] |
larryvrh/Yi-6B-200K-Llamafied
|
larryvrh
| 2023-11-11T05:59:02Z | 8,157 | 8 |
transformers
|
[
"transformers",
"safetensors",
"llama",
"text-generation",
"zh",
"en",
"license:other",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-11-11T05:37:52Z |
---
language:
- zh
- en
license: other
license_name: yi-license
license_link: LICENSE
---
Llamafied version of 01-ai's [Yi-6B-200k](https://huggingface.co/01-ai/Yi-6B-200K) for ease of use.
## Model Performance
| Model | MMLU | CMMLU | C-Eval | GAOKAO | BBH | Common-sense Reasoning | Reading Comprehension | Math & Code |
| :------------ | :------: | :------: | :------: | :------: | :------: | :--------------------: | :-------------------: | :---------: |
| | 5-shot | 5-shot | 5-shot | 0-shot | 3-shot@1 | - | - | - |
| LLaMA2-34B | 62.6 | - | - | - | 44.1 | 69.9 | 68.0 | 26.0 |
| LLaMA2-70B | 68.9 | 53.3 | - | 49.8 | 51.2 | 71.9 | 69.4 | 36.8 |
| Baichuan2-13B | 59.2 | 62.0 | 58.1 | 54.3 | 48.8 | 64.3 | 62.4 | 23.0 |
| Qwen-14B | 66.3 | 71.0 | 72.1 | 62.5 | 53.4 | 73.3 | 72.5 | **39.8** |
| Skywork-13B | 62.1 | 61.8 | 60.6 | 68.1 | 41.7 | 72.4 | 61.4 | 24.9 |
| InternLM-20B | 62.1 | 59.0 | 58.8 | 45.5 | 52.5 | 78.3 | - | 30.4 |
| Aquila-34B | 67.8 | 71.4 | 63.1 | - | - | - | - | - |
| Falcon-180B | 70.4 | 58.0 | 57.8 | 59.0 | 54.0 | 77.3 | 68.8 | 34.0 |
| Yi-6B | 63.2 | 75.5 | 72.0 | 72.2 | 42.8 | 72.3 | 68.7 | 19.8 |
| Yi-6B-200K | 64.0 | 75.3 | 73.5 | 73.9 | 42.0 | 72.0 | 69.1 | 19.0 |
| **Yi-34B** | **76.3** | **83.7** | 81.4 | 82.8 | **54.3** | **80.1** | 76.4 | 37.1 |
| Yi-34B-200K | 76.1 | 83.6 | **81.9** | **83.4** | 52.7 | 79.7 | **76.6** | 36.3 |
While benchmarking open-source models, we have observed a disparity between the
results generated by our pipeline and those reported in public sources (e.g.
OpenCompass). Upon conducting a more in-depth investigation of this difference,
we have discovered that various models may employ different prompts,
post-processing strategies, and sampling techniques, potentially resulting in
significant variations in the outcomes. Our prompt and post-processing strategy
remains consistent with the original benchmark, and greedy decoding is employed
during evaluation without any post-processing for the generated content. For
scores that were not reported by the original authors (including scores reported
with different settings), we try to get results with our pipeline.
To evaluate the model's capability extensively, we adopted the methodology
outlined in Llama2. Specifically, we included PIQA, SIQA, HellaSwag, WinoGrande,
ARC, OBQA, and CSQA to assess common sense reasoning. SquAD, QuAC, and BoolQ
were incorporated to evaluate reading comprehension. CSQA was exclusively tested
using a 7-shot setup, while all other tests were conducted with a 0-shot
configuration. Additionally, we introduced GSM8K (8-shot@1), MATH (4-shot@1),
HumanEval (0-shot@1), and MBPP (3-shot@1) under the category "Math & Code". Due
to technical constraints, we did not test Falcon-180 on QuAC and OBQA; the score
is derived by averaging the scores on the remaining tasks. Since the scores for
these two tasks are generally lower than the average, we believe that
Falcon-180B's performance was not underestimated.
## Usage
Please visit our [github repository](https://github.com/01-ai/Yi) for general
guidance on how to use this model.
## Disclaimer
Although we use data compliance checking algorithms during the training process
to ensure the compliance of the trained model to the best of our ability, due to
the complexity of the data and the diversity of language model usage scenarios,
we cannot guarantee that the model will generate correct and reasonable output
in all scenarios. Please be aware that there is still a risk of the model
producing problematic outputs. We will not be responsible for any risks and
issues resulting from misuse, misguidance, illegal usage, and related
misinformation, as well as any associated data security concerns.
## License
The Yi series models are fully open for academic research and free commercial
usage with permission via applications. All usage must adhere to the [Model
License Agreement 2.0](https://huggingface.co/01-ai/Yi-6B-200K/blob/main/LICENSE). To
apply for the official commercial license, please contact us
([[email protected]](mailto:[email protected])).
|
[
-0.42336505651474,
-0.7454054355621338,
0.2445344775915146,
0.20387443900108337,
-0.23078830540180206,
-0.05754372850060463,
0.026567542925477028,
-0.5204429030418396,
0.14524663984775543,
0.4121862053871155,
-0.7618977427482605,
-0.622263491153717,
-0.6653764247894287,
0.12812817096710205,
-0.2910325229167938,
1.0646781921386719,
0.11799392849206924,
-0.12577198445796967,
-0.044949453324079514,
-0.17914356291294098,
-0.43695858120918274,
-0.25063633918762207,
-0.6929610371589661,
-0.33009031414985657,
0.32921260595321655,
0.41492709517478943,
0.8676794767379761,
0.8367751836776733,
0.5006706714630127,
0.24796177446842194,
-0.1188054010272026,
0.08570325374603271,
-0.4501189887523651,
-0.37899675965309143,
0.20021122694015503,
-0.30316540598869324,
-0.8026360869407654,
-0.03541497141122818,
0.4985657036304474,
0.4073856472969055,
-0.19720576703548431,
0.594283938407898,
0.036978885531425476,
0.9095706343650818,
-0.571067214012146,
0.42684227228164673,
-0.41328713297843933,
-0.09052706509828568,
-0.20922468602657318,
0.20641042292118073,
-0.28216439485549927,
-0.1329471468925476,
-0.15348148345947266,
-0.812181293964386,
-0.12105511873960495,
0.0871630385518074,
1.416556477546692,
0.5467746257781982,
-0.39297786355018616,
0.09361568838357925,
-0.31899335980415344,
0.8571268320083618,
-1.1102937459945679,
0.35580506920814514,
0.47935450077056885,
0.3257676064968109,
0.06716963648796082,
-0.7976893782615662,
-0.8548120260238647,
-0.04155690595507622,
-0.0582929328083992,
0.5676044821739197,
-0.4506520926952362,
0.01113942265510559,
0.4628526568412781,
0.35756322741508484,
-0.6645543575286865,
0.16766797006130219,
-0.5780136585235596,
-0.19822652637958527,
1.0320446491241455,
0.34780198335647583,
0.20376934111118317,
-0.26926878094673157,
-0.33501479029655457,
-0.10021931678056717,
-0.4514162838459015,
0.5053672790527344,
0.5170565247535706,
0.2043120414018631,
-0.49191728234291077,
0.6336106061935425,
-0.6371398568153381,
0.5895971059799194,
0.08896270394325256,
-0.3459353446960449,
0.7033759355545044,
-0.40978673100471497,
-0.4490441381931305,
-0.20831748843193054,
0.9831483960151672,
0.49000298976898193,
0.05590707063674927,
0.10538751631975174,
-0.248710498213768,
-0.12309641391038895,
0.13427947461605072,
-0.8480256795883179,
-0.13078853487968445,
0.48398059606552124,
-0.680259644985199,
-0.2976345717906952,
0.2697760760784149,
-0.6509400606155396,
0.024642502889037132,
-0.2666882872581482,
0.4119417369365692,
-0.2853003144264221,
-0.4871378540992737,
0.20660552382469177,
-0.015734637156128883,
0.559519350528717,
0.25989580154418945,
-0.8800203800201416,
0.37342822551727295,
0.613596498966217,
1.0228153467178345,
-0.09066881239414215,
-0.3908090591430664,
-0.40167340636253357,
-0.027178985998034477,
-0.37130293250083923,
0.9061875343322754,
-0.1666123867034912,
-0.3501724600791931,
-0.2033858746290207,
0.09250190109014511,
-0.203999862074852,
-0.4277225136756897,
0.7046390175819397,
-0.42720475792884827,
0.1585521399974823,
-0.3573201596736908,
-0.4392397403717041,
-0.496564656496048,
0.4021492004394531,
-0.8409348726272583,
1.2698230743408203,
0.32058337330818176,
-0.871268093585968,
0.3028087615966797,
-0.8444398045539856,
0.008712844923138618,
-0.012320279143750668,
-0.06502005457878113,
-0.6500890851020813,
-0.2719787657260895,
0.3131316006183624,
0.34091562032699585,
-0.4770064651966095,
0.3273968994617462,
-0.1469292938709259,
-0.7477759122848511,
0.027366718277335167,
-0.41165807843208313,
1.1366941928863525,
0.41244593262672424,
-0.5795230865478516,
0.08160602301359177,
-0.9102373719215393,
0.11508917808532715,
0.34582942724227905,
-0.3819989562034607,
0.2487659752368927,
-0.08185168355703354,
-0.013931709341704845,
0.12073378264904022,
0.2911691963672638,
-0.4323092997074127,
0.38972610235214233,
-0.5254755616188049,
0.31736335158348083,
0.5909287929534912,
-0.0602283701300621,
0.31658801436424255,
-0.8030153512954712,
0.64903324842453,
0.301977276802063,
0.29223865270614624,
-0.2099630981683731,
-0.8407279253005981,
-1.0037988424301147,
-0.5631804466247559,
0.262788325548172,
0.7888611555099487,
-0.5060330629348755,
0.458086222410202,
-0.098381407558918,
-0.7165710926055908,
-0.640158474445343,
-0.0773206576704979,
0.4253827929496765,
0.6913881301879883,
0.473890095949173,
-0.12267329543828964,
-0.3987056016921997,
-1.08926260471344,
-0.047031220048666,
-0.3601395785808563,
0.09639648348093033,
0.4227310121059418,
0.7171091437339783,
-0.24245768785476685,
0.8316857218742371,
-0.7543157935142517,
-0.2534434497356415,
-0.3973163068294525,
-0.030290337279438972,
0.7051398754119873,
0.38686949014663696,
0.7999194860458374,
-0.6377032995223999,
-0.5785850882530212,
-0.06029799208045006,
-0.7763462662696838,
-0.23867547512054443,
-0.06893949955701828,
-0.08523353189229965,
0.3841507136821747,
0.2943694293498993,
-0.8184906244277954,
0.839977502822876,
0.5938493013381958,
-0.39926591515541077,
1.0652620792388916,
-0.04021278768777847,
0.2992464601993561,
-1.1642744541168213,
0.30986493825912476,
-0.04143669456243515,
0.1373983770608902,
-0.6808392405509949,
0.21447953581809998,
-0.020736901089549065,
0.08811506628990173,
-0.5736144781112671,
0.7927775382995605,
-0.3877110183238983,
0.02623608149588108,
-0.07832042872905731,
-0.17665810883045197,
0.15347543358802795,
0.7040014266967773,
-0.04997023195028305,
1.1434352397918701,
0.4419671297073364,
-0.46704331040382385,
0.18528886139392853,
0.18481549620628357,
-0.6011115908622742,
0.07914897054433823,
-0.8999313712120056,
0.052076589316129684,
0.009847274981439114,
0.1700119525194168,
-1.1047425270080566,
-0.3374270796775818,
0.49552100896835327,
-0.7427995800971985,
0.0016030548140406609,
-0.08772499114274979,
-0.4088766574859619,
-0.4379929304122925,
-0.34511804580688477,
0.424649178981781,
0.5545939803123474,
-0.3120012581348419,
0.48715680837631226,
0.038008224219083786,
0.04547359421849251,
-0.8570828437805176,
-0.7731843590736389,
-0.277802973985672,
-0.32797107100486755,
-0.768889844417572,
0.47020527720451355,
-0.21612846851348877,
-0.34037867188453674,
-0.06491880863904953,
0.18400003015995026,
-0.21599408984184265,
0.26613476872444153,
0.2973160147666931,
0.467464804649353,
-0.3176921308040619,
-0.32047784328460693,
0.10203520953655243,
-0.07783982902765274,
0.1033691018819809,
0.1307309865951538,
0.5368654131889343,
-0.16201141476631165,
-0.37102460861206055,
-0.6181738972663879,
0.17575879395008087,
0.6178820133209229,
-0.3944127559661865,
0.9259309768676758,
0.649776041507721,
-0.44391387701034546,
0.03179609030485153,
-0.47765791416168213,
0.0015384178841486573,
-0.5270150899887085,
0.44475072622299194,
-0.5811048150062561,
-0.6742806434631348,
0.918351411819458,
0.25252005457878113,
0.2276332974433899,
0.6532844305038452,
0.46899139881134033,
-0.012299499474465847,
1.1322579383850098,
0.3257489502429962,
-0.27451467514038086,
0.17157182097434998,
-0.6472140550613403,
0.07439021021127701,
-0.9368757605552673,
-0.5304037928581238,
-0.6603837013244629,
-0.2225586175918579,
-0.6368587017059326,
-0.19880087673664093,
0.2392764389514923,
0.1346275955438614,
-0.7539722919464111,
0.20400860905647278,
-0.4102277159690857,
0.419681578874588,
0.7207618355751038,
0.16848407685756683,
0.30215975642204285,
-0.1895846724510193,
-0.22352521121501923,
-0.01367370318621397,
-0.6268860101699829,
-0.4158414602279663,
1.1949164867401123,
0.29024770855903625,
0.3958043158054352,
0.3134753704071045,
0.7351663708686829,
0.4018634557723999,
0.10287430882453918,
-0.8299171924591064,
0.48618653416633606,
-0.1064777672290802,
-0.728228747844696,
-0.08192896842956543,
-0.3019864857196808,
-0.9104608297348022,
0.2283012419939041,
-0.20901437103748322,
-1.032080888748169,
0.02932216227054596,
-0.02955225668847561,
-0.5694006085395813,
0.3052419126033783,
-0.678966760635376,
0.9739342927932739,
-0.16668908298015594,
-0.38498350977897644,
-0.0038279446307569742,
-0.5280634760856628,
0.6606034636497498,
0.006445018574595451,
0.3285924792289734,
-0.14342999458312988,
-0.05748946964740753,
0.7644288539886475,
-0.552350640296936,
0.6042577028274536,
-0.20509235560894012,
0.16603514552116394,
0.5131298899650574,
-0.009634752757847309,
0.40404707193374634,
0.13849130272865295,
-0.3722812831401825,
0.5217112898826599,
0.20720475912094116,
-0.5069741010665894,
-0.5386471748352051,
0.49866586923599243,
-1.3399299383163452,
-0.8507331609725952,
-0.8325217366218567,
-0.7559685707092285,
0.060755182057619095,
0.381500244140625,
0.2622922360897064,
0.2893422544002533,
0.18864373862743378,
0.15207654237747192,
0.4422127902507782,
-0.3513938784599304,
0.4870908558368683,
0.6431974768638611,
-0.2904933989048004,
-0.49194854497909546,
0.6806784272193909,
0.19024190306663513,
0.26765307784080505,
0.1966973841190338,
0.09112387150526047,
-0.4027125835418701,
-0.7057231068611145,
-0.5360361933708191,
0.3421139121055603,
-0.3880890905857086,
-0.41131559014320374,
-0.5008476972579956,
-0.5494083762168884,
-0.7136615514755249,
-0.06106863543391228,
-0.32475048303604126,
-0.30141106247901917,
-0.5757306814193726,
-0.06694001704454422,
0.39409229159355164,
0.7427617311477661,
0.15113411843776703,
0.44909584522247314,
-0.7773683667182922,
0.1935664564371109,
0.02166864089667797,
0.18720518052577972,
0.10006891936063766,
-0.9940673112869263,
-0.4108749032020569,
0.2650902271270752,
-0.5132431387901306,
-0.7984166145324707,
0.6480913162231445,
0.1378888487815857,
0.7190408706665039,
0.5339235067367554,
0.1480298936367035,
0.9447711110115051,
-0.22076094150543213,
1.2493033409118652,
0.044140178710222244,
-0.8782948851585388,
0.4698127508163452,
-0.6271150708198547,
0.6904863715171814,
0.554774284362793,
0.47307050228118896,
-0.3005848824977875,
-0.2648249864578247,
-0.7684250473976135,
-0.8201883435249329,
1.013309121131897,
0.20805636048316956,
-0.13078320026397705,
0.09812262654304504,
0.4692685902118683,
-0.13833793997764587,
0.10276735574007034,
-0.8847106695175171,
-0.43476352095603943,
-0.4674198031425476,
-0.27330780029296875,
0.14132364094257355,
-0.10741962492465973,
0.1847376674413681,
-0.3233340382575989,
0.8186261057853699,
-0.06759119778871536,
0.43227073550224304,
0.08250143378973007,
-0.03773500397801399,
0.19778862595558167,
0.06747817993164062,
0.6722091436386108,
0.6819496154785156,
-0.4374156892299652,
-0.3315299153327942,
0.14429119229316711,
-0.7407861948013306,
-0.04582173004746437,
0.19100527465343475,
-0.5521540641784668,
-0.30564311146736145,
0.5760053992271423,
0.7527962923049927,
-0.01161934994161129,
-0.6548556089401245,
0.48196685314178467,
-0.013861610554158688,
-0.5262320637702942,
-0.3353067934513092,
0.3210422992706299,
0.12306497246026993,
0.5308180451393127,
0.47696995735168457,
0.04288558289408684,
0.29266390204429626,
-0.4445228576660156,
0.0820356160402298,
0.3314848244190216,
-0.0697249099612236,
-0.23824936151504517,
0.8501042723655701,
-0.06632611900568008,
-0.3285057246685028,
0.8947180509567261,
-0.2384902983903885,
-0.511155903339386,
1.01105535030365,
0.49486303329467773,
0.7357024550437927,
-0.10532543063163757,
0.20516212284564972,
0.948524534702301,
0.3001924455165863,
-0.14555546641349792,
0.37392303347587585,
0.004517932888120413,
-0.7349768877029419,
-0.24138614535331726,
-0.5624000430107117,
-0.3049408197402954,
0.34703636169433594,
-1.0240343809127808,
0.3809003531932831,
-0.4598543047904968,
-0.2544495165348053,
-0.16719143092632294,
0.5020886063575745,
-0.6685724258422852,
0.5030851364135742,
0.08866865187883377,
1.2476940155029297,
-0.7731047868728638,
1.0539945363998413,
0.5967274308204651,
-0.825406014919281,
-1.3708186149597168,
-0.06949945539236069,
0.13783667981624603,
-0.900356113910675,
0.5821112990379333,
0.4033451974391937,
0.053211014717817307,
0.13895007967948914,
-0.5808512568473816,
-1.1386396884918213,
1.7117524147033691,
0.23607516288757324,
-0.48387908935546875,
0.042026929557323456,
0.2609670162200928,
0.46366453170776367,
-0.22998665273189545,
0.7763697504997253,
0.6140449047088623,
0.42473751306533813,
0.022726552560925484,
-1.1077687740325928,
0.08791012316942215,
-0.6620435118675232,
-0.271826833486557,
-0.07820109277963638,
-1.3175231218338013,
1.1403580904006958,
-0.3494649827480316,
0.011446247808635235,
0.2809493839740753,
0.8329490423202515,
0.708550214767456,
0.5722907781600952,
0.4708261489868164,
0.8410447835922241,
0.7304677367210388,
-0.2237231731414795,
0.9912746548652649,
-0.3183419108390808,
0.41070157289505005,
1.0367153882980347,
-0.20443402230739594,
1.0112366676330566,
0.2797963619232178,
-0.49688026309013367,
0.6253995299339294,
0.8658483028411865,
-0.11619355529546738,
0.5753383040428162,
-0.10657619684934616,
-0.11119381338357925,
-0.1183633804321289,
-0.10444049537181854,
-0.5069167017936707,
0.5352767109870911,
0.1466572880744934,
-0.08172861486673355,
0.016175061464309692,
-0.40371769666671753,
0.26567763090133667,
-0.04579230397939682,
-0.2802177369594574,
0.6282087564468384,
-0.08953927457332611,
-0.8568344712257385,
0.7813724279403687,
0.1789415031671524,
0.678581178188324,
-0.7866892218589783,
0.004922124091535807,
-0.5931395292282104,
0.06722979992628098,
-0.44718167185783386,
-0.8601023554801941,
0.3414947986602783,
0.13334378600120544,
-0.2555469274520874,
0.12155082821846008,
0.5397908091545105,
-0.02089598774909973,
-0.6047071814537048,
0.336554616689682,
0.4023881256580353,
0.18371960520744324,
0.0821649432182312,
-1.0579802989959717,
0.3105153739452362,
0.1547815501689911,
-0.5778090357780457,
0.33632034063339233,
0.2337985634803772,
0.025747498497366905,
0.8933507800102234,
0.6565936803817749,
0.08283445239067078,
0.1399553120136261,
0.1257879137992859,
1.0433844327926636,
-0.6951855421066284,
-0.45987844467163086,
-0.7450819611549377,
0.7731213569641113,
-0.04138815775513649,
-0.524581253528595,
0.7949383854866028,
0.7746442556381226,
0.8845284581184387,
0.060034580528736115,
0.77236008644104,
-0.1361132711172104,
0.4021807610988617,
-0.5903517603874207,
0.8905131220817566,
-0.8528923392295837,
0.3443010747432709,
-0.34158948063850403,
-0.8512742519378662,
-0.21415865421295166,
0.8156238794326782,
-0.17256343364715576,
0.13525167107582092,
0.5709896087646484,
1.0527297258377075,
0.13572342693805695,
0.006132590118795633,
0.26867997646331787,
0.21062138676643372,
0.24727630615234375,
0.8964774012565613,
0.5874433517456055,
-1.012442946434021,
0.6340058445930481,
-0.47500404715538025,
-0.20844006538391113,
-0.02453465759754181,
-0.724769115447998,
-0.9530327916145325,
-0.59356290102005,
-0.38715389370918274,
-0.3475826382637024,
-0.01314467191696167,
0.8602176308631897,
0.6756742000579834,
-0.6296843886375427,
-0.43431851267814636,
0.11914262175559998,
-0.0787128359079361,
-0.36102956533432007,
-0.24457094073295593,
0.49604058265686035,
-0.06915833055973053,
-0.8506093621253967,
0.16508488357067108,
-0.08891978114843369,
0.024272993206977844,
-0.17530399560928345,
-0.39384448528289795,
-0.46789899468421936,
0.18906952440738678,
0.3488699197769165,
0.1632756143808365,
-0.8708308935165405,
-0.16494257748126984,
0.318750262260437,
-0.008707284927368164,
0.1355656385421753,
0.10781974345445633,
-0.7426849007606506,
0.23698295652866364,
0.4493350684642792,
0.5161241292953491,
0.5386382341384888,
0.26777929067611694,
0.15200524032115936,
-0.2730935215950012,
0.2521759569644928,
-0.014631114900112152,
0.3474218547344208,
0.05946001037955284,
-0.5114409923553467,
0.6074395775794983,
0.26742228865623474,
-0.7302085757255554,
-0.9112815856933594,
-0.09120935946702957,
-1.359729528427124,
-0.19208963215351105,
1.3446521759033203,
-0.34715670347213745,
-0.4777740240097046,
0.09481335431337357,
-0.19197329878807068,
0.2957417368888855,
-0.6389134526252747,
0.7672588229179382,
0.8554246425628662,
-0.14292024075984955,
-0.319232314825058,
-0.7287847995758057,
0.2428566813468933,
0.2977166771888733,
-0.9432873725891113,
-0.32973235845565796,
0.48911479115486145,
0.3017520308494568,
-0.05170425772666931,
0.7893535494804382,
-0.12942467629909515,
0.5013808012008667,
0.20344731211662292,
-0.13189049065113068,
-0.43316778540611267,
-0.1970200091600418,
-0.11831986159086227,
0.025992313399910927,
0.07765942066907883,
-0.2687065005302429
] |
facebook/wav2vec2-conformer-rope-large-960h-ft
|
facebook
| 2023-03-21T10:48:52Z | 8,145 | 6 |
transformers
|
[
"transformers",
"pytorch",
"safetensors",
"wav2vec2-conformer",
"automatic-speech-recognition",
"speech",
"audio",
"hf-asr-leaderboard",
"en",
"dataset:librispeech_asr",
"arxiv:2010.05171",
"license:apache-2.0",
"model-index",
"endpoints_compatible",
"has_space",
"region:us"
] |
automatic-speech-recognition
| 2022-04-18T09:48:39Z |
---
language: en
datasets:
- librispeech_asr
tags:
- speech
- audio
- automatic-speech-recognition
- hf-asr-leaderboard
license: apache-2.0
model-index:
- name: wav2vec2-conformer-rel-pos-large-960h-ft
results:
- task:
name: Automatic Speech Recognition
type: automatic-speech-recognition
dataset:
name: LibriSpeech (clean)
type: librispeech_asr
config: clean
split: test
args:
language: en
metrics:
- name: Test WER
type: wer
value: 1.96
- task:
name: Automatic Speech Recognition
type: automatic-speech-recognition
dataset:
name: LibriSpeech (other)
type: librispeech_asr
config: other
split: test
args:
language: en
metrics:
- name: Test WER
type: wer
value: 3.98
---
# Wav2Vec2-Conformer-Large-960h with Rotary Position Embeddings
Wav2Vec2 Conformer with rotary position embeddings, 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**: [fairseq S2T: Fast Speech-to-Text Modeling with fairseq](https://arxiv.org/abs/2010.05171)
**Authors**: Changhan Wang, Yun Tang, Xutai Ma, Anne Wu, Sravya Popuri, Dmytro Okhonko, Juan Pino
The results of Wav2Vec2-Conformer can be found in Table 3 and Table 4 of the [official paper](https://arxiv.org/abs/2010.05171).
The original model can be found under https://github.com/pytorch/fairseq/tree/master/examples/wav2vec#wav2vec-20.
# Usage
To transcribe audio files the model can be used as a standalone acoustic model as follows:
```python
from transformers import Wav2Vec2Processor, Wav2Vec2ConformerForCTC
from datasets import load_dataset
import torch
# load model and processor
processor = Wav2Vec2Processor.from_pretrained("facebook/wav2vec2-conformer-rope-large-960h-ft")
model = Wav2Vec2ConformerForCTC.from_pretrained("facebook/wav2vec2-conformer-rope-large-960h-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", padding="longest").input_values
# 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-conformer-rope-large-960h-ft** on LibriSpeech's "clean" and "other" test data.
```python
from datasets import load_dataset
from transformers import Wav2Vec2ConformerForCTC, Wav2Vec2Processor
import torch
from jiwer import wer
librispeech_eval = load_dataset("librispeech_asr", "clean", split="test")
model = Wav2Vec2ConformerForCTC.from_pretrained("facebook/wav2vec2-conformer-rope-large-960h-ft").to("cuda")
processor = Wav2Vec2Processor.from_pretrained("facebook/wav2vec2-conformer-rope-large-960h-ft")
def map_to_pred(batch):
inputs = processor(batch["audio"]["array"], return_tensors="pt", padding="longest")
input_values = inputs.input_values.to("cuda")
attention_mask = inputs.attention_mask.to("cuda")
with torch.no_grad():
logits = model(input_values, attention_mask=attention_mask).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, remove_columns=["audio"])
print("WER:", wer(result["text"], result["transcription"]))
```
*Result (WER)*:
| "clean" | "other" |
|---|---|
| 1.96 | 3.98 |
|
[
-0.2118622213602066,
-0.6929005980491638,
0.24761146306991577,
0.3092913329601288,
-0.19622652232646942,
-0.3623923361301422,
-0.49296388030052185,
-0.4818170666694641,
-0.06167013198137283,
0.2886056900024414,
-0.664673924446106,
-0.614765465259552,
-0.7154343724250793,
-0.3663559556007385,
-0.3848041892051697,
0.9107068777084351,
0.10379887372255325,
-0.011161885224282742,
0.12988713383674622,
-0.07506366074085236,
-0.3762464225292206,
-0.1262214630842209,
-0.7819822430610657,
-0.3034760653972626,
0.10237590223550797,
0.27330490946769714,
0.23214055597782135,
0.2519298791885376,
0.37282076478004456,
0.3540874719619751,
-0.18078282475471497,
-0.14301106333732605,
-0.6197386980056763,
-0.02431585267186165,
0.11584489047527313,
-0.3842712640762329,
-0.4257175326347351,
0.22510512173175812,
0.6627567410469055,
0.1959657520055771,
-0.1863512098789215,
0.6443410515785217,
0.03299695998430252,
0.49348974227905273,
-0.30080509185791016,
0.2731630504131317,
-0.5869241952896118,
-0.2932494580745697,
-0.11544832587242126,
0.01606033742427826,
-0.5451310276985168,
-0.3029504716396332,
0.16474291682243347,
-0.5938104391098022,
0.23319771885871887,
-0.19736696779727936,
0.9837691783905029,
0.22141963243484497,
-0.36100906133651733,
-0.438684344291687,
-0.7798647284507751,
0.8076543211936951,
-0.7978910803794861,
0.8069632649421692,
0.3998251259326935,
0.19691801071166992,
-0.14441010355949402,
-1.192797064781189,
-0.51994389295578,
0.006690446753054857,
0.2449105978012085,
0.44711214303970337,
-0.2407408356666565,
0.012592640705406666,
0.434775710105896,
0.19470302760601044,
-0.7283996939659119,
-0.10987439751625061,
-0.8007183074951172,
-0.4243581295013428,
0.8822423815727234,
-0.359703004360199,
-0.02961244434118271,
0.03678780049085617,
-0.37282371520996094,
-0.5513818860054016,
-0.23204025626182556,
0.49897128343582153,
0.4577416181564331,
0.042027149349451065,
-0.438000351190567,
0.5307833552360535,
0.01228330284357071,
0.6509010791778564,
0.26350608468055725,
-0.4725436568260193,
0.6709660887718201,
-0.16966846585273743,
-0.1853458136320114,
0.3618806004524231,
0.9375307559967041,
0.3193117380142212,
0.14057913422584534,
0.23488572239875793,
-0.27946269512176514,
0.03235051408410072,
-0.17472857236862183,
-0.9590739011764526,
-0.3962951600551605,
0.5767900347709656,
-0.4912666976451874,
0.06360990554094315,
0.17298731207847595,
-0.38839858770370483,
0.022165952250361443,
-0.2275507152080536,
1.0003795623779297,
-0.5371973514556885,
-0.3043150007724762,
0.3024311363697052,
-0.4454261064529419,
0.36557915806770325,
-0.11732056736946106,
-0.7435389161109924,
0.17367614805698395,
0.5178066492080688,
0.7902809381484985,
0.09247670322656631,
-0.08343696594238281,
-0.5268142819404602,
0.08143327385187149,
-0.014807960949838161,
0.45396628975868225,
-0.010493583045899868,
-0.5820573568344116,
-0.22103892266750336,
0.1107378676533699,
-0.05404303967952728,
-0.5001011490821838,
0.8638721704483032,
-0.46348169445991516,
0.3028990924358368,
-0.08228816837072372,
-0.615016520023346,
-0.3447740972042084,
-0.5004589557647705,
-0.575929582118988,
1.2692337036132812,
0.2244260013103485,
-0.6354851722717285,
0.1537649780511856,
-0.39204785227775574,
-0.6248964667320251,
-0.4936407208442688,
-0.02647467516362667,
-0.752730131149292,
0.02481737732887268,
0.12553583085536957,
0.3438180088996887,
-0.2814798951148987,
0.006657946854829788,
-0.1223997101187706,
-0.6667614579200745,
0.5156105756759644,
-0.5183546543121338,
1.176895022392273,
0.2305682897567749,
-0.6782274842262268,
0.19116663932800293,
-0.8718730807304382,
0.17517444491386414,
0.003407346084713936,
-0.45787715911865234,
0.23224180936813354,
-0.13381975889205933,
0.6482011675834656,
0.3515966832637787,
0.17971469461917877,
-0.5835071802139282,
-0.11946476995944977,
-0.6674380302429199,
0.5307708978652954,
0.6909322738647461,
-0.07620826363563538,
0.2247956246137619,
-0.49381813406944275,
0.04233694449067116,
-0.2088162750005722,
0.041771162301301956,
0.27289852499961853,
-0.598415732383728,
-0.6341938376426697,
-0.4220190644264221,
0.22431111335754395,
0.5482145547866821,
-0.20556595921516418,
0.7253210544586182,
-0.18033108115196228,
-0.9581639766693115,
-0.970136821269989,
-0.12331192195415497,
0.24714873731136322,
0.4585462510585785,
0.6576356887817383,
-0.23189277946949005,
-0.6390177607536316,
-0.8109148740768433,
-0.2258838564157486,
-0.03695547953248024,
-0.28368017077445984,
0.20681792497634888,
0.3122069239616394,
-0.400348037481308,
0.6726381182670593,
-0.3750212788581848,
-0.46761173009872437,
-0.04972546175122261,
0.06319695711135864,
0.6956818103790283,
0.738782525062561,
0.35141903162002563,
-0.598188042640686,
-0.434429794549942,
-0.40758949518203735,
-0.38930606842041016,
-0.12931089103221893,
-0.14049017429351807,
-0.0859193280339241,
0.20655317604541779,
0.37756624817848206,
-0.5935348868370056,
0.4575302302837372,
0.5557259321212769,
-0.30477091670036316,
0.52175372838974,
0.04475609213113785,
0.15964274108409882,
-0.9768529534339905,
0.10753364115953445,
-0.016981668770313263,
-0.20979313552379608,
-0.484150230884552,
-0.5090274810791016,
-0.04466009512543678,
0.047489527612924576,
-0.5716173052787781,
0.36451053619384766,
-0.46533042192459106,
-0.17239774763584137,
-0.17828139662742615,
0.2982718348503113,
-0.1308014690876007,
0.491202712059021,
0.08594468981027603,
0.7174522876739502,
0.6336041688919067,
-0.5617117285728455,
0.5067216753959656,
0.3685012459754944,
-0.5865182280540466,
0.04600657522678375,
-1.0061960220336914,
0.39026063680648804,
0.20858225226402283,
0.3568184971809387,
-1.3305792808532715,
-0.04381346330046654,
0.037729281932115555,
-0.9342492818832397,
0.29972121119499207,
-0.041947633028030396,
-0.4184330105781555,
-0.3853021562099457,
-0.33351266384124756,
0.5385013222694397,
0.9065172076225281,
-0.4998606741428375,
0.5255125761032104,
0.39273419976234436,
0.13547419011592865,
-0.4441830515861511,
-0.9559380412101746,
-0.6452873349189758,
-0.031523387879133224,
-0.924211859703064,
0.45712801814079285,
-0.06198771297931671,
0.05126022547483444,
-0.22353939712047577,
-0.4645065367221832,
0.15223462879657745,
-0.1301678866147995,
0.5063847899436951,
0.2854149341583252,
-0.13619698584079742,
-0.04337012395262718,
0.016224710270762444,
-0.2565101683139801,
0.27556371688842773,
-0.567070722579956,
0.658046305179596,
-0.17699368298053741,
-0.2651788890361786,
-1.008583426475525,
-0.06869493424892426,
0.3691704273223877,
-0.3045881986618042,
0.51091068983078,
1.2329046726226807,
-0.3470190763473511,
-0.07031314820051193,
-0.624316930770874,
-0.3376794755458832,
-0.579269289970398,
0.6849666833877563,
-0.28305506706237793,
-0.6296998262405396,
0.39539241790771484,
0.09225333482027054,
0.1269756257534027,
0.7448725700378418,
0.7960444092750549,
-0.26328518986701965,
0.8059202432632446,
0.15712927281856537,
0.12756666541099548,
0.4943270981311798,
-0.8384810090065002,
0.0742596834897995,
-0.8490803837776184,
-0.3407401740550995,
-0.4261116087436676,
-0.46425166726112366,
-0.6567415595054626,
-0.5773321390151978,
0.49006301164627075,
0.10001027584075928,
-0.36166390776634216,
0.4370211958885193,
-0.7679319381713867,
0.1118091344833374,
0.6976264119148254,
0.17612260580062866,
-0.08882436901330948,
0.12994883954524994,
0.07180958986282349,
-0.06609812378883362,
-0.3621998727321625,
-0.24968048930168152,
1.2334568500518799,
0.510219931602478,
0.710983395576477,
0.04161985591053963,
0.63067227602005,
0.00014400620420929044,
-0.1274116337299347,
-0.9351118206977844,
0.3806244432926178,
-0.0690416470170021,
-0.7311446070671082,
-0.291779100894928,
-0.05029505863785744,
-0.7342867255210876,
0.07889208942651749,
-0.3292347490787506,
-0.9029937386512756,
0.18808431923389435,
-0.05674281716346741,
-0.19355161488056183,
0.1274431198835373,
-0.5886439085006714,
0.6852313876152039,
-0.013516996055841446,
-0.3285790979862213,
-0.1917344480752945,
-0.7485945820808411,
0.2166825830936432,
0.08393646776676178,
0.217929407954216,
-0.17778335511684418,
0.32382941246032715,
1.321536660194397,
-0.15419363975524902,
0.45069459080696106,
-0.3654041290283203,
-0.20790846645832062,
0.7413859963417053,
-0.16706667840480804,
0.5159654021263123,
0.19499395787715912,
-0.385714590549469,
0.33496877551078796,
0.2722381353378296,
-0.193777933716774,
-0.25107118487358093,
0.6746885180473328,
-1.0717986822128296,
-0.3772145211696625,
-0.24464544653892517,
-0.5249037742614746,
-0.17334777116775513,
0.10199153423309326,
0.8748161196708679,
0.6614177823066711,
0.02143145725131035,
0.41501906514167786,
0.6012611985206604,
0.013711206614971161,
0.5487104058265686,
0.2173028439283371,
-0.0945967510342598,
-0.6276395320892334,
0.8573770523071289,
0.21064378321170807,
0.3088846504688263,
0.01578044705092907,
0.06193358451128006,
-0.6353460550308228,
-0.4187164902687073,
-0.10736262798309326,
0.3730916380882263,
-0.6322373747825623,
-0.11751798540353775,
-0.527009129524231,
-0.340324729681015,
-0.7845715284347534,
0.0038719603326171637,
-0.6880753636360168,
-0.5238576531410217,
-0.34501025080680847,
0.08862556517124176,
0.5106880068778992,
0.47307106852531433,
-0.31317126750946045,
0.5261338353157043,
-0.6694746613502502,
0.48234638571739197,
0.1752493530511856,
0.14466223120689392,
-0.14684171974658966,
-1.1220918893814087,
-0.3267247676849365,
0.27547934651374817,
-0.27189791202545166,
-0.9746959805488586,
0.15201866626739502,
0.12919390201568604,
0.48099300265312195,
0.34783297777175903,
0.009479768574237823,
0.6220800876617432,
-0.3671700954437256,
0.7214177846908569,
0.2667902410030365,
-1.1867672204971313,
0.6716009378433228,
-0.18204115331172943,
0.14380283653736115,
0.49732083082199097,
0.23923441767692566,
-0.546048104763031,
-0.24560262262821198,
-0.619032621383667,
-1.0294069051742554,
1.0497924089431763,
0.4781937897205353,
-0.12094802409410477,
0.3516010642051697,
0.27204078435897827,
-0.14309370517730713,
-0.08907131850719452,
-0.7796527147293091,
-0.6425709128379822,
-0.34874001145362854,
-0.33926498889923096,
-0.24453286826610565,
-0.2739405333995819,
-0.17543740570545197,
-0.5380902886390686,
1.1130192279815674,
0.31793129444122314,
0.6758545637130737,
0.518295168876648,
-0.13222584128379822,
-0.06802203506231308,
0.07914219051599503,
0.5207359790802002,
0.3182038366794586,
-0.4083041250705719,
-0.027875490486621857,
0.30983585119247437,
-0.7243876457214355,
0.27773717045783997,
0.26192477345466614,
0.0233782846480608,
0.1948520392179489,
0.5443874597549438,
0.9735206961631775,
-0.0878363773226738,
-0.33961671590805054,
0.6509185433387756,
0.0031097824685275555,
-0.4153516888618469,
-0.6411083340644836,
0.1581871658563614,
0.5610436797142029,
0.3706940710544586,
0.39167946577072144,
0.015656042844057083,
0.1591598391532898,
-0.2674173414707184,
0.3831239640712738,
0.23495976626873016,
-0.5973691344261169,
-0.3071936070919037,
1.0539591312408447,
0.03461882844567299,
-0.3604319095611572,
0.6810304522514343,
0.0058743879199028015,
-0.2360130399465561,
0.6934998035430908,
0.7233463525772095,
0.9306281208992004,
-0.3595450222492218,
-0.3162979781627655,
0.6410027742385864,
0.2587986886501312,
-0.07804155349731445,
0.5412176847457886,
0.006013576872646809,
-0.4493401050567627,
-0.23430922627449036,
-0.6272798180580139,
0.16307295858860016,
0.2026144564151764,
-0.9124994277954102,
0.5389649271965027,
-0.3010897934436798,
-0.4469437003135681,
0.17147980630397797,
0.1140422374010086,
-0.7336852550506592,
0.3142808675765991,
0.14924131333827972,
0.9126461148262024,
-0.7898728847503662,
1.1490269899368286,
0.3235251307487488,
-0.32386982440948486,
-1.1586695909500122,
0.08002138882875443,
-0.020936790853738785,
-0.6828269958496094,
0.5773764848709106,
0.4207438826560974,
-0.37995272874832153,
0.24033688008785248,
-0.5037202835083008,
-0.9265363812446594,
1.3103777170181274,
0.23936952650547028,
-0.7797810435295105,
0.189036026597023,
-0.04745146259665489,
0.3439861536026001,
-0.07032426446676254,
0.321478009223938,
0.825873851776123,
0.6093924045562744,
0.037469349801540375,
-1.0157134532928467,
0.0820733830332756,
-0.04700683057308197,
-0.17305336892604828,
-0.15643072128295898,
-0.7942949533462524,
0.9606103301048279,
-0.3379685878753662,
-0.1789064109325409,
0.02488875575363636,
1.045936107635498,
0.4266367554664612,
0.3056543469429016,
0.5678427219390869,
0.45278510451316833,
0.7660157084465027,
-0.18976274132728577,
0.6937539577484131,
-0.2410157173871994,
0.6991309523582458,
1.0748425722122192,
0.06630227714776993,
0.9383002519607544,
0.4187428057193756,
-0.3706406056880951,
0.451913982629776,
0.5143715143203735,
-0.13586747646331787,
0.6901888847351074,
0.2574915289878845,
-0.27347493171691895,
-0.062188733369112015,
0.25147128105163574,
-0.780076265335083,
0.7937432527542114,
0.34924256801605225,
-0.2377355396747589,
0.3296714723110199,
0.01369491871446371,
-0.1092713251709938,
-0.21351011097431183,
-0.006289662793278694,
0.6214366555213928,
0.08650460094213486,
-0.3186483085155487,
0.9744041562080383,
0.18554624915122986,
0.8863116502761841,
-0.5421507954597473,
0.08654441684484482,
0.2845204174518585,
0.30170494318008423,
-0.3167521059513092,
-0.7311853766441345,
0.2398497462272644,
-0.3231717348098755,
-0.27642622590065,
0.07772649824619293,
0.5233868956565857,
-0.7396460175514221,
-0.5482093095779419,
0.576077938079834,
0.03292003646492958,
0.19231222569942474,
-0.005627179518342018,
-0.673379123210907,
0.3462710678577423,
0.3539462387561798,
-0.5940810441970825,
-0.1281687170267105,
0.15822400152683258,
0.3853452503681183,
0.28245437145233154,
0.6723246574401855,
0.015206004492938519,
0.1039932444691658,
-0.03341364488005638,
0.6244392395019531,
-0.6145052313804626,
-0.46119335293769836,
-0.5807206630706787,
0.5568087697029114,
0.10381593555212021,
-0.3232097625732422,
0.6167225241661072,
0.9377468824386597,
0.9180055260658264,
-0.14781372249126434,
0.7448043823242188,
-0.019339825958013535,
0.518956184387207,
-0.6519396901130676,
0.9209298491477966,
-0.6035892367362976,
0.1876939833164215,
-0.22795994579792023,
-0.8673357367515564,
0.1162269338965416,
0.9466502070426941,
-0.16432060301303864,
0.2599181532859802,
0.53097003698349,
1.0338304042816162,
-0.10417437553405762,
-0.05670075863599777,
0.09011194854974747,
0.4009997546672821,
0.3499627411365509,
0.7256247401237488,
0.41747814416885376,
-1.091239094734192,
0.7337066531181335,
-0.4924735724925995,
-0.145908921957016,
-0.21216776967048645,
-0.34363314509391785,
-0.7568133473396301,
-0.8157803416252136,
-0.37959495186805725,
-0.8254398107528687,
-0.09038225561380386,
1.0226761102676392,
0.696026086807251,
-0.9060142040252686,
-0.5078626275062561,
0.2815931439399719,
-0.05808768793940544,
-0.3856358528137207,
-0.25582075119018555,
0.7653877139091492,
0.0566042959690094,
-0.9143758416175842,
0.552739679813385,
-0.1414427012205124,
0.11751294881105423,
0.16561667621135712,
-0.21133233606815338,
-0.3925909399986267,
0.05721328780055046,
0.3172113001346588,
0.07750613242387772,
-0.7865593433380127,
-0.3419083058834076,
-0.09862713515758514,
-0.26043203473091125,
0.08392680436372757,
0.36868682503700256,
-0.5401320457458496,
0.3926082253456116,
0.5842257738113403,
0.13477979600429535,
1.0703973770141602,
-0.2491290122270584,
0.18595372140407562,
-0.6733865737915039,
0.5297898650169373,
0.14339478313922882,
0.29250866174697876,
0.09487579762935638,
-0.27677857875823975,
0.24809271097183228,
0.36040225625038147,
-0.7132958769798279,
-0.68911212682724,
-0.1257331222295761,
-1.4950199127197266,
-0.21004743874073029,
1.4435527324676514,
0.1059827208518982,
-0.25088322162628174,
0.08365966379642487,
-0.4676183760166168,
0.9815949201583862,
-0.4519239366054535,
0.43493348360061646,
0.3904147446155548,
-0.16079771518707275,
0.2516327500343323,
-0.653290331363678,
0.6871475577354431,
0.3167857825756073,
-0.30718764662742615,
-0.08672910183668137,
0.351454496383667,
0.7484739422798157,
0.053571805357933044,
0.8345240354537964,
-0.17175112664699554,
0.48929786682128906,
0.27470171451568604,
0.364236980676651,
-0.208979994058609,
-0.05363982170820236,
-0.4164673686027527,
-0.0022902071941643953,
-0.04904591292142868,
-0.5153167247772217
] |
sentence-transformers/bert-base-nli-stsb-mean-tokens
|
sentence-transformers
| 2022-06-15T20:01:00Z | 8,144 | 1 |
sentence-transformers
|
[
"sentence-transformers",
"pytorch",
"tf",
"jax",
"bert",
"feature-extraction",
"sentence-similarity",
"transformers",
"arxiv:1908.10084",
"license:apache-2.0",
"endpoints_compatible",
"region:us"
] |
sentence-similarity
| 2022-03-02T23:29:05Z |
---
pipeline_tag: sentence-similarity
tags:
- sentence-transformers
- feature-extraction
- sentence-similarity
- transformers
license: apache-2.0
---
**⚠️ This model is deprecated. Please don't use it as it produces sentence embeddings of low quality. You can find recommended sentence embedding models here: [SBERT.net - Pretrained Models](https://www.sbert.net/docs/pretrained_models.html)**
# sentence-transformers/bert-base-nli-stsb-mean-tokens
This is a [sentence-transformers](https://www.SBERT.net) model: It maps sentences & paragraphs to a 768 dimensional dense vector space and can be used for tasks like clustering or semantic search.
## Usage (Sentence-Transformers)
Using this model becomes easy when you have [sentence-transformers](https://www.SBERT.net) installed:
```
pip install -U sentence-transformers
```
Then you can use the model like this:
```python
from sentence_transformers import SentenceTransformer
sentences = ["This is an example sentence", "Each sentence is converted"]
model = SentenceTransformer('sentence-transformers/bert-base-nli-stsb-mean-tokens')
embeddings = model.encode(sentences)
print(embeddings)
```
## Usage (HuggingFace Transformers)
Without [sentence-transformers](https://www.SBERT.net), you can use the model like this: First, you pass your input through the transformer model, then you have to apply the right pooling-operation on-top of the contextualized word embeddings.
```python
from transformers import AutoTokenizer, AutoModel
import torch
#Mean Pooling - Take attention mask into account for correct averaging
def mean_pooling(model_output, attention_mask):
token_embeddings = model_output[0] #First element of model_output contains all token embeddings
input_mask_expanded = attention_mask.unsqueeze(-1).expand(token_embeddings.size()).float()
return torch.sum(token_embeddings * input_mask_expanded, 1) / torch.clamp(input_mask_expanded.sum(1), min=1e-9)
# Sentences we want sentence embeddings for
sentences = ['This is an example sentence', 'Each sentence is converted']
# Load model from HuggingFace Hub
tokenizer = AutoTokenizer.from_pretrained('sentence-transformers/bert-base-nli-stsb-mean-tokens')
model = AutoModel.from_pretrained('sentence-transformers/bert-base-nli-stsb-mean-tokens')
# Tokenize sentences
encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt')
# Compute token embeddings
with torch.no_grad():
model_output = model(**encoded_input)
# Perform pooling. In this case, max pooling.
sentence_embeddings = mean_pooling(model_output, encoded_input['attention_mask'])
print("Sentence embeddings:")
print(sentence_embeddings)
```
## Evaluation Results
For an automated evaluation of this model, see the *Sentence Embeddings Benchmark*: [https://seb.sbert.net](https://seb.sbert.net?model_name=sentence-transformers/bert-base-nli-stsb-mean-tokens)
## Full Model Architecture
```
SentenceTransformer(
(0): Transformer({'max_seq_length': 128, 'do_lower_case': False}) with Transformer model: BertModel
(1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False})
)
```
## Citing & Authors
This model was trained by [sentence-transformers](https://www.sbert.net/).
If you find this model helpful, feel free to cite our publication [Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks](https://arxiv.org/abs/1908.10084):
```bibtex
@inproceedings{reimers-2019-sentence-bert,
title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
author = "Reimers, Nils and Gurevych, Iryna",
booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
month = "11",
year = "2019",
publisher = "Association for Computational Linguistics",
url = "http://arxiv.org/abs/1908.10084",
}
```
|
[
-0.2347342073917389,
-0.781542181968689,
0.24527408182621002,
0.41676339507102966,
-0.4410035312175751,
-0.43518349528312683,
-0.30713528394699097,
-0.10342713445425034,
0.23604616522789001,
0.35838785767555237,
-0.5488553643226624,
-0.41133713722229004,
-0.7224045991897583,
0.059722356498241425,
-0.4217917323112488,
0.8506193161010742,
-0.1345289796590805,
0.07585456222295761,
-0.2644503712654114,
-0.1348205953836441,
-0.3397231996059418,
-0.4903065264225006,
-0.3524359166622162,
-0.26474305987358093,
0.2083926945924759,
0.07772170007228851,
0.46752992272377014,
0.36019280552864075,
0.2837478816509247,
0.43016067147254944,
-0.0951463133096695,
0.148844912648201,
-0.37861573696136475,
-0.11659806966781616,
0.10041853785514832,
-0.28223085403442383,
-0.074684277176857,
0.3313557505607605,
0.5907661318778992,
0.5218977332115173,
-0.13966597616672516,
0.0626082494854927,
0.00430051377043128,
0.2858031392097473,
-0.46640074253082275,
0.4168073236942291,
-0.5773552656173706,
0.1811123490333557,
0.1265011578798294,
0.07034563273191452,
-0.6396147012710571,
-0.18231351673603058,
0.3644365966320038,
-0.41641756892204285,
0.09348414838314056,
0.1915394812822342,
1.1693018674850464,
0.36503729224205017,
-0.2587370276451111,
-0.3596046566963196,
-0.28048276901245117,
0.8916362524032593,
-0.974155604839325,
0.30210280418395996,
0.24823640286922455,
-0.07393801957368851,
-0.022707246243953705,
-1.0262596607208252,
-0.7515976428985596,
-0.1546647846698761,
-0.4314509630203247,
0.21800610423088074,
-0.4081306457519531,
0.029479634016752243,
0.09690490365028381,
0.23874740302562714,
-0.666814923286438,
-0.08651736378669739,
-0.42135900259017944,
-0.11687116324901581,
0.5172849297523499,
-0.02686847560107708,
0.35671672224998474,
-0.6221057772636414,
-0.4651496708393097,
-0.31803426146507263,
-0.20691055059432983,
-0.11714931577444077,
0.1403779834508896,
0.20836199820041656,
-0.2882155776023865,
0.7655438780784607,
0.08242965489625931,
0.5455270409584045,
-0.016554424539208412,
0.31478986144065857,
0.6928982734680176,
-0.3563905656337738,
-0.3556809425354004,
-0.08652809262275696,
1.0765793323516846,
0.4224274456501007,
0.40365076065063477,
-0.12225891649723053,
-0.17524589598178864,
0.026871517300605774,
0.30034375190734863,
-0.7850827574729919,
-0.3689914345741272,
0.16505910456180573,
-0.42102938890457153,
-0.31293871998786926,
0.16554109752178192,
-0.5967676043510437,
0.008697842247784138,
0.0747668445110321,
0.745488703250885,
-0.6668557524681091,
0.020084800198674202,
0.27752965688705444,
-0.2785814702510834,
0.19848690927028656,
-0.29109448194503784,
-0.7212403416633606,
0.20464517176151276,
0.2616235911846161,
0.9214080572128296,
0.09856065362691879,
-0.4647611379623413,
-0.1926121711730957,
-0.15075263381004333,
-0.011570926755666733,
0.6128461956977844,
-0.3040579855442047,
-0.15984538197517395,
0.18224656581878662,
0.24066323041915894,
-0.5606828927993774,
-0.3257385492324829,
0.5996339321136475,
-0.3661680817604065,
0.7104569673538208,
0.10337527841329575,
-0.8880548477172852,
-0.18730129301548004,
0.13701412081718445,
-0.5064983367919922,
1.0804259777069092,
0.1714973896741867,
-0.9464519619941711,
0.13811787962913513,
-0.8247427940368652,
-0.33255913853645325,
-0.1594436913728714,
0.12381166219711304,
-0.6988551616668701,
0.17668387293815613,
0.47298184037208557,
0.6978474259376526,
0.2046997994184494,
0.502855658531189,
-0.24204771220684052,
-0.4947183430194855,
0.39425867795944214,
-0.4111105501651764,
1.1951743364334106,
0.13694077730178833,
-0.31600871682167053,
0.15248747169971466,
-0.5123143196105957,
-0.08227161318063736,
0.3081038296222687,
-0.1682366132736206,
-0.2202332615852356,
0.05792320892214775,
0.34801891446113586,
0.23735831677913666,
0.22393907606601715,
-0.7587869763374329,
0.10419614613056183,
-0.6611486077308655,
0.9651740193367004,
0.6407653093338013,
0.01832023821771145,
0.5246867537498474,
-0.2855460047721863,
0.07703754305839539,
0.33964625000953674,
0.004768365062773228,
-0.2018449604511261,
-0.44225937128067017,
-1.025879144668579,
-0.3297039270401001,
0.37314265966415405,
0.5407682061195374,
-0.7074935436248779,
1.1579833030700684,
-0.5111667513847351,
-0.45223814249038696,
-0.7446451783180237,
-0.08161840587854385,
0.06807223707437515,
0.36030614376068115,
0.6575207710266113,
-0.11173775792121887,
-0.6964839100837708,
-0.9534599184989929,
-0.009165128692984581,
-0.05938456207513809,
0.06148207560181618,
0.2710401117801666,
0.7523927688598633,
-0.48077693581581116,
1.0758684873580933,
-0.620595395565033,
-0.42514780163764954,
-0.507836103439331,
0.31324508786201477,
0.25810757279396057,
0.6929008960723877,
0.545014500617981,
-0.6217724084854126,
-0.2841780185699463,
-0.698582112789154,
-0.6973630785942078,
0.035812798887491226,
-0.24545912444591522,
-0.16493915021419525,
0.24026547372341156,
0.4707126319408417,
-0.8358047604560852,
0.37958383560180664,
0.6174322962760925,
-0.5307632088661194,
0.311760276556015,
-0.2807667553424835,
-0.24788743257522583,
-1.3788251876831055,
0.0499625988304615,
0.08148669451475143,
-0.22618328034877777,
-0.4388701617717743,
0.04485410824418068,
0.12631939351558685,
-0.14262059330940247,
-0.4844968616962433,
0.4719837009906769,
-0.34143075346946716,
0.15434682369232178,
0.011642811819911003,
0.40395236015319824,
0.01963176764547825,
0.7692316770553589,
-0.04533796012401581,
0.6989445686340332,
0.45224127173423767,
-0.5615677833557129,
0.26665905117988586,
0.6586369276046753,
-0.5442870855331421,
0.07581904530525208,
-0.8847299218177795,
-0.01906747557222843,
-0.040629446506500244,
0.4665946364402771,
-1.1091428995132446,
0.011083433404564857,
0.34773313999176025,
-0.608527421951294,
0.1994124799966812,
0.3755880296230316,
-0.6962907314300537,
-0.6062333583831787,
-0.4098232686519623,
0.13509592413902283,
0.5873433351516724,
-0.5987658500671387,
0.5891010165214539,
0.26648303866386414,
-0.01986112631857395,
-0.5754718780517578,
-1.1978920698165894,
0.026085540652275085,
-0.10163845121860504,
-0.6864566802978516,
0.5610841512680054,
-0.07004020363092422,
0.23410333693027496,
0.3683636784553528,
0.27231213450431824,
-0.0053375582210719585,
0.01557150948792696,
0.03520124778151512,
0.2561239004135132,
-0.07081467658281326,
0.2703903913497925,
0.17731279134750366,
-0.09779340773820877,
0.056544482707977295,
-0.2187848538160324,
0.7204570174217224,
-0.17438049614429474,
-0.12390363961458206,
-0.4662260413169861,
0.19613680243492126,
0.36948704719543457,
-0.26335811614990234,
1.120260238647461,
1.0278713703155518,
-0.46008068323135376,
-0.062415964901447296,
-0.5706104040145874,
-0.2989371716976166,
-0.46122458577156067,
0.6815363168716431,
-0.13882260024547577,
-1.024620771408081,
0.34244880080223083,
0.210239440202713,
0.062096402049064636,
0.6372761726379395,
0.5256478786468506,
-0.17862406373023987,
0.7947728037834167,
0.5993612408638,
-0.2199024260044098,
0.53876793384552,
-0.6329413652420044,
0.3724517524242401,
-0.9623258709907532,
-0.026158249005675316,
-0.20494824647903442,
-0.30662909150123596,
-0.7157542109489441,
-0.4323485493659973,
0.13716243207454681,
-0.09404508769512177,
-0.34295889735221863,
0.5684446096420288,
-0.5506060123443604,
0.13940691947937012,
0.6735020279884338,
0.19681280851364136,
-0.17316719889640808,
0.03790605068206787,
-0.4082776606082916,
-0.07964640855789185,
-0.6874627470970154,
-0.5554812550544739,
0.8435515761375427,
0.5135387182235718,
0.4451974630355835,
-0.12446533143520355,
0.6972419023513794,
0.0825924426317215,
0.05202312394976616,
-0.7036042809486389,
0.5985396504402161,
-0.4112299084663391,
-0.5104807019233704,
-0.32887163758277893,
-0.3365558683872223,
-0.8634905219078064,
0.37676581740379333,
-0.21132589876651764,
-0.77422696352005,
0.1391642838716507,
-0.2394973188638687,
-0.28973284363746643,
0.29578709602355957,
-0.8677409291267395,
1.0556896924972534,
0.06608124077320099,
-0.006282826419919729,
-0.15001606941223145,
-0.7003593444824219,
0.15240202844142914,
0.2671675980091095,
0.02779337204992771,
-0.003956531174480915,
0.0007085215765982866,
0.9129746556282043,
-0.27493220567703247,
1.0833463668823242,
-0.23804281651973724,
0.27667030692100525,
0.41647353768348694,
-0.3842849135398865,
0.275424599647522,
-0.09063604474067688,
-0.05088924989104271,
0.15675108134746552,
-0.2007056325674057,
-0.3693062365055084,
-0.4940475821495056,
0.6829521059989929,
-1.0275087356567383,
-0.3710502088069916,
-0.4783012568950653,
-0.5634810924530029,
-0.0665677860379219,
0.17221373319625854,
0.38698139786720276,
0.4406958520412445,
-0.24481101334095,
0.45618605613708496,
0.4792090654373169,
-0.3936331272125244,
0.801969051361084,
0.10055548697710037,
0.03340306878089905,
-0.5641230344772339,
0.6511622667312622,
0.08482082933187485,
-0.03672416880726814,
0.4349563419818878,
0.17852531373500824,
-0.4543777108192444,
-0.23146145045757294,
-0.35484397411346436,
0.43489447236061096,
-0.5832750201225281,
-0.18829762935638428,
-1.0560723543167114,
-0.5737316608428955,
-0.6604188084602356,
-0.05818745493888855,
-0.21319231390953064,
-0.46248966455459595,
-0.591400682926178,
-0.33146730065345764,
0.3293437361717224,
0.46210604906082153,
-0.04264172911643982,
0.4361087679862976,
-0.722801685333252,
0.09595783054828644,
0.17120908200740814,
0.19217252731323242,
-0.0278891921043396,
-0.7233976721763611,
-0.37985414266586304,
-0.0010562967509031296,
-0.38778671622276306,
-0.8413349390029907,
0.6815236210823059,
0.24637898802757263,
0.6117294430732727,
0.1519937366247177,
0.13842053711414337,
0.6069079041481018,
-0.5919978618621826,
0.9918849468231201,
0.06814440339803696,
-1.095271348953247,
0.46690645813941956,
-0.01938086748123169,
0.40142253041267395,
0.45895692706108093,
0.3033696413040161,
-0.4553038477897644,
-0.44307419657707214,
-0.7293031811714172,
-1.071248173713684,
0.6609711647033691,
0.43711745738983154,
0.6501134634017944,
-0.4267025291919708,
0.284767210483551,
-0.2822134494781494,
0.20530851185321808,
-1.2128636837005615,
-0.35596632957458496,
-0.4591171145439148,
-0.6319823265075684,
-0.3179490268230438,
-0.3833007216453552,
0.237954780459404,
-0.37052544951438904,
0.8145518898963928,
0.09538409858942032,
0.8286563158035278,
0.381795734167099,
-0.5705024003982544,
0.1616632491350174,
0.23757493495941162,
0.5204590559005737,
0.19726277887821198,
-0.2047748863697052,
0.12559810280799866,
0.29297393560409546,
-0.35348188877105713,
-0.04997951537370682,
0.5149515271186829,
-0.1343698501586914,
0.2386188507080078,
0.4258700907230377,
1.0399224758148193,
0.5694999694824219,
-0.48826444149017334,
0.8026121854782104,
-0.05911160260438919,
-0.280430406332016,
-0.4521024227142334,
-0.14803080260753632,
0.2650250792503357,
0.26341331005096436,
0.3055431544780731,
-0.00651275971904397,
-0.008928321301937103,
-0.3168885111808777,
0.3442206382751465,
0.25192171335220337,
-0.4718173146247864,
-0.06654674559831619,
0.650617778301239,
0.164007768034935,
-0.1461896449327469,
1.0379546880722046,
-0.28684258460998535,
-0.7309262752532959,
0.37298235297203064,
0.6751846671104431,
1.015672206878662,
0.05790279433131218,
0.29984113574028015,
0.5385138988494873,
0.4046778082847595,
0.016585854813456535,
-0.015886707231402397,
0.14135374128818512,
-0.9659520983695984,
-0.3179979622364044,
-0.5972164273262024,
0.09668509662151337,
0.02778434380888939,
-0.5401215553283691,
0.20958834886550903,
-0.12327487021684647,
-0.1620710790157318,
-0.22535187005996704,
0.010797156020998955,
-0.6207255721092224,
0.12261883914470673,
0.11313450336456299,
0.8657295107841492,
-1.022796630859375,
0.7784586548805237,
0.6697211861610413,
-0.6893288493156433,
-0.6859530806541443,
-0.05081552267074585,
-0.3985832631587982,
-0.7858265042304993,
0.5587990283966064,
0.524919331073761,
0.22485044598579407,
0.2402060329914093,
-0.630653977394104,
-0.7932496070861816,
1.2998257875442505,
0.2086823433637619,
-0.3546539545059204,
-0.2505013048648834,
0.06642507761716843,
0.49867451190948486,
-0.5206005573272705,
0.35797247290611267,
0.3290996551513672,
0.320129930973053,
-0.082997165620327,
-0.6346673965454102,
0.2148943990468979,
-0.31857043504714966,
0.27539342641830444,
-0.19045932590961456,
-0.508328378200531,
0.9348250031471252,
-0.08589902520179749,
-0.23522023856639862,
0.21310611069202423,
0.9241942167282104,
0.2845947742462158,
-0.08627112954854965,
0.5031335353851318,
0.880090057849884,
0.5597856640815735,
-0.14036615192890167,
0.9289511442184448,
-0.2948136329650879,
0.6875450611114502,
0.9909964203834534,
0.08950222283601761,
1.1406512260437012,
0.4547540247440338,
-0.040138404816389084,
0.8484880328178406,
0.5675033926963806,
-0.3701542913913727,
0.6960330605506897,
0.2449263036251068,
0.09423910826444626,
-0.0023427086416631937,
0.11702337116003036,
-0.19548825919628143,
0.4738008975982666,
0.2018410563468933,
-0.754132091999054,
-0.022588782012462616,
0.17121760547161102,
0.049406372010707855,
-0.031654391437768936,
0.14117707312107086,
0.6017144918441772,
0.1325085610151291,
-0.4243105947971344,
0.39336878061294556,
0.2026905119419098,
1.054283857345581,
-0.3891891837120056,
0.1666020154953003,
-0.015112590976059437,
0.29655972123146057,
0.06791601330041885,
-0.5768399834632874,
0.356862872838974,
-0.1204872578382492,
-0.02806171216070652,
-0.24298349022865295,
0.6148752570152283,
-0.6069669127464294,
-0.6226053237915039,
0.36914345622062683,
0.5319206714630127,
0.02252265065908432,
0.10448905825614929,
-1.0322248935699463,
-0.0062951622530817986,
-0.02625993639230728,
-0.5262213945388794,
0.1345536857843399,
0.28543901443481445,
0.40122389793395996,
0.5570492148399353,
0.37298107147216797,
-0.18071700632572174,
0.11374594271183014,
0.18981367349624634,
0.8621857166290283,
-0.6359078288078308,
-0.5862674713134766,
-0.9165710806846619,
0.752256453037262,
-0.20860576629638672,
-0.31954458355903625,
0.6061884760856628,
0.5190463066101074,
0.8814881443977356,
-0.3059957027435303,
0.5632702112197876,
-0.16030173003673553,
0.25344231724739075,
-0.5373192429542542,
0.870216965675354,
-0.4601173400878906,
-0.07812023907899857,
-0.24316078424453735,
-0.9037285447120667,
-0.34043771028518677,
1.1430838108062744,
-0.34568357467651367,
0.18617959320545197,
0.9100208282470703,
0.7561854720115662,
-0.042698897421360016,
-0.019173147156834602,
0.13371357321739197,
0.4364190995693207,
0.22154948115348816,
0.47479248046875,
0.4824571907520294,
-0.8390048146247864,
0.637521505355835,
-0.484191358089447,
-0.05252545699477196,
-0.16354507207870483,
-0.8506147861480713,
-1.0078691244125366,
-0.8157407641410828,
-0.43966013193130493,
-0.24675442278385162,
-0.0003872589149978012,
1.113871693611145,
0.6665401458740234,
-0.7511479258537292,
-0.1063801497220993,
-0.2736614942550659,
-0.224686861038208,
-0.12885810434818268,
-0.3181789517402649,
0.5412735342979431,
-0.6077488660812378,
-0.8121563792228699,
0.15991467237472534,
-0.14745360612869263,
0.14641858637332916,
-0.38960549235343933,
0.14944474399089813,
-0.703759491443634,
0.19542348384857178,
0.607607901096344,
-0.31841567158699036,
-0.8343349099159241,
-0.35150179266929626,
0.05979720503091812,
-0.34020355343818665,
-0.1163749247789383,
0.33043670654296875,
-0.7078800201416016,
0.252995103597641,
0.34160757064819336,
0.614099383354187,
0.6238818168640137,
-0.2336856871843338,
0.49607038497924805,
-0.8747730255126953,
0.22466245293617249,
0.13331755995750427,
0.6956366300582886,
0.45460137724876404,
-0.24873659014701843,
0.5706833600997925,
0.2189733237028122,
-0.47961321473121643,
-0.6718550324440002,
-0.2000146359205246,
-1.0451099872589111,
-0.3465140461921692,
1.0775877237319946,
-0.42734092473983765,
-0.3464687764644623,
0.21011973917484283,
-0.17202025651931763,
0.5254995822906494,
-0.3494684100151062,
0.7170805335044861,
0.8908048272132874,
0.07211653143167496,
-0.302503764629364,
-0.29975125193595886,
0.1565338373184204,
0.4444456696510315,
-0.5297194123268127,
-0.17044073343276978,
0.27304914593696594,
0.24417029321193695,
0.31112009286880493,
0.3994212746620178,
-0.09416217356920242,
-0.03081449680030346,
0.034678030759096146,
0.1728067845106125,
-0.19284367561340332,
0.05468999221920967,
-0.33652591705322266,
0.052008721977472305,
-0.3996873199939728,
-0.4348667562007904
] |
doas/test5
|
doas
| 2023-08-23T07:34:48Z | 8,144 | 0 |
transformers
|
[
"transformers",
"pytorch",
"llama",
"feature-extraction",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] |
feature-extraction
| 2023-08-23T01:53:03Z |
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
] |
gizmo-ai/incorrect-answers-llama-2-7b-awq
|
gizmo-ai
| 2023-10-25T21:42:26Z | 8,132 | 0 |
transformers
|
[
"transformers",
"pytorch",
"llama",
"text-generation",
"endpoints_compatible",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-10-25T20:40:47Z |
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
] |
Weyaxi/EnsembleV5-Nova-13B
|
Weyaxi
| 2023-11-25T17:46:53Z | 8,121 | 0 |
transformers
|
[
"transformers",
"safetensors",
"llama",
"text-generation",
"license:cc-by-nc-4.0",
"endpoints_compatible",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-09-04T20:33:04Z |
---
license: cc-by-nc-4.0
---

<a href="https://www.buymeacoffee.com/PulsarAI" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a>
# EnsembleV5-Nova-13B
EnsembleV5-Nova-13B is a merge of [yontaek/llama-2-13B-ensemble-v5](https://huggingface.co/yontaek/llama-2-13B-ensemble-v5) and [Nova-13B-Lora](https://huggingface.co/PulsarAI/Nova-13B-Lora).
**Note:** I currently can not find the model on hub so the link is broken.
# [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_PulsarAI__EnsembleV5-Nova-13B)
| Metric | Value |
|-----------------------|---------------------------|
| Avg. | 49.65 |
| ARC (25-shot) | 62.71 |
| HellaSwag (10-shot) | 82.55 |
| MMLU (5-shot) | 56.79 |
| TruthfulQA (0-shot) | 49.86 |
| Winogrande (5-shot) | 76.24 |
| GSM8K (5-shot) | 10.77 |
| DROP (3-shot) | 8.64 |
|
[
-0.36709699034690857,
-0.4783424735069275,
0.3940565586090088,
0.3114795386791229,
-0.28505101799964905,
0.25463902950286865,
-0.10223029553890228,
-0.49760931730270386,
0.8129961490631104,
0.3621211051940918,
-0.7017996907234192,
-0.7697798609733582,
-0.8908337950706482,
0.06747645139694214,
-0.09090544283390045,
1.0029479265213013,
-0.1085725650191307,
0.0597713403403759,
0.10967017710208893,
-0.12044040113687515,
-0.49553245306015015,
-0.29125872254371643,
-0.9616556167602539,
-0.4508002698421478,
0.454634428024292,
0.3179069757461548,
0.6407067775726318,
0.0633181780576706,
0.7526509761810303,
0.5400386452674866,
-0.39987948536872864,
0.29167717695236206,
-0.6436745524406433,
0.1747853010892868,
0.24843108654022217,
-0.6674827933311462,
-0.9718846678733826,
0.1138097271323204,
0.9783070683479309,
0.43325650691986084,
-0.25417670607566833,
0.326998770236969,
0.3151339590549469,
0.5716461539268494,
-0.4984905421733856,
0.20271332561969757,
-0.2893594205379486,
0.18945522606372833,
-0.14292749762535095,
-0.06496439129114151,
-0.23625782132148743,
-0.5930147171020508,
-0.21822047233581543,
-0.7738964557647705,
-0.15480074286460876,
0.18618318438529968,
1.376196026802063,
0.2312639057636261,
-0.03346877917647362,
-0.04385989531874657,
-0.45423001050949097,
0.7318999767303467,
-0.6430382132530212,
0.2711971700191498,
0.1670926958322525,
0.5268369913101196,
-0.29728084802627563,
-0.5341911911964417,
-0.20419451594352722,
0.30616310238838196,
-0.23651555180549622,
0.5542176365852356,
-0.6565190553665161,
-0.6720877885818481,
-0.2296677678823471,
0.7370249629020691,
-0.6025343537330627,
0.22131729125976562,
-0.661823570728302,
0.04408397898077965,
0.6849153637886047,
0.40363970398902893,
0.1799171268939972,
0.007891857996582985,
-0.6012551188468933,
-0.30779600143432617,
-0.5413094758987427,
0.016696417704224586,
0.44653239846229553,
0.3214870095252991,
-0.5293379426002502,
0.6161245107650757,
-0.1731324940919876,
0.6113561391830444,
0.2700751721858978,
-0.36121684312820435,
0.6544997692108154,
-0.5487138628959656,
-0.5588456392288208,
-0.14672119915485382,
0.9483961462974548,
0.6241251826286316,
-0.16010823845863342,
0.09426677972078323,
-0.10681317746639252,
0.03466534987092018,
-0.20110966265201569,
-0.5998470783233643,
-0.056312136352062225,
0.15696197748184204,
-0.49538275599479675,
-0.4490564465522766,
0.2280718833208084,
-0.7377802729606628,
0.15973763167858124,
0.022144204005599022,
0.35668447613716125,
-0.2687380909919739,
-0.4444432854652405,
0.26420819759368896,
-0.33018893003463745,
0.5266751646995544,
0.3498104512691498,
-0.3984529674053192,
0.3892534375190735,
0.43691286444664,
0.8404616713523865,
-0.22062700986862183,
-0.296226441860199,
0.055276889353990555,
-0.1611843705177307,
-0.22045202553272247,
0.7958905696868896,
-0.39188235998153687,
-0.8082653284072876,
-0.3355133831501007,
0.24684982001781464,
-0.30405882000923157,
-0.6455210447311401,
0.8402087688446045,
-0.15120850503444672,
0.35296040773391724,
-0.22953154146671295,
-0.38437288999557495,
-0.023763250559568405,
0.4395815432071686,
-0.5147092342376709,
1.3066811561584473,
-0.1133950725197792,
-0.6702966690063477,
0.3113490045070648,
-0.4830641746520996,
0.10879097133874893,
-0.1050785630941391,
0.06143602728843689,
-0.6804270148277283,
-0.1279953122138977,
0.08169212192296982,
0.4788777828216553,
-0.14810970425605774,
-0.20344829559326172,
-0.6316581964492798,
-0.3997114598751068,
0.29881978034973145,
-0.22460055351257324,
0.8874651789665222,
0.13960134983062744,
0.033607833087444305,
-0.09956614673137665,
-0.9341414570808411,
-0.17032331228256226,
0.7453254461288452,
-0.5123288631439209,
-0.22446061670780182,
-0.5424091219902039,
0.11744257807731628,
0.27625057101249695,
0.6713594198226929,
-0.34008726477622986,
0.3008993864059448,
-0.04752703756093979,
0.17449983954429626,
1.0119907855987549,
0.060507554560899734,
0.33478307723999023,
-0.6319445371627808,
0.6694161295890808,
0.24018020927906036,
0.6360583901405334,
0.18599669635295868,
-0.8530013561248779,
-0.9539859890937805,
-0.49629831314086914,
0.15963219106197357,
0.46690669655799866,
-0.08603517711162567,
0.8893581032752991,
-0.05878603458404541,
-0.9839390516281128,
-0.9535359740257263,
-0.22903351485729218,
0.36273959279060364,
0.5265219807624817,
0.17873042821884155,
-0.37694868445396423,
-0.7053136229515076,
-1.2422415018081665,
0.13248717784881592,
-0.16563135385513306,
0.24734866619110107,
0.6200392246246338,
0.6709873080253601,
-0.27880963683128357,
0.5408352017402649,
-0.8774875402450562,
-0.4298244118690491,
0.06097165867686272,
-0.2253216654062271,
0.8074423670768738,
0.563744306564331,
0.784898042678833,
-0.4164464771747589,
-0.3503774404525757,
-0.0077927447855472565,
-0.9018515348434448,
-0.09453181177377701,
0.5058274269104004,
-0.3112984895706177,
0.04174942523241043,
-0.03991469740867615,
-0.4891963303089142,
0.5403963327407837,
0.6461359262466431,
-0.7182311415672302,
0.7343468070030212,
-0.16017939150333405,
0.649043619632721,
-1.4343138933181763,
0.07717736065387726,
0.3094445765018463,
-0.18315158784389496,
-0.20719283819198608,
0.1897743046283722,
-0.3633761405944824,
-0.006728227715939283,
-0.8227816820144653,
0.6287418007850647,
-0.4150770604610443,
-0.33284008502960205,
0.0637461319565773,
0.16439546644687653,
0.1759415864944458,
0.4783911406993866,
-0.2265484631061554,
0.6317872405052185,
0.7418757677078247,
-0.23730036616325378,
0.08883031457662582,
0.4973568916320801,
-0.428949236869812,
0.6304547190666199,
-0.44196420907974243,
-0.2929990291595459,
-0.05865582078695297,
0.45040175318717957,
-1.3652698993682861,
-0.10008906573057175,
0.4031215310096741,
-0.5029005408287048,
0.057840194553136826,
-0.12009013444185257,
-0.5432962775230408,
-0.4090551435947418,
-0.4971737265586853,
0.33768782019615173,
0.7531834840774536,
-0.5423237085342407,
0.2680720388889313,
0.4299428164958954,
0.07024671137332916,
-0.5850287079811096,
-0.8810706734657288,
-0.21668285131454468,
-0.6007965207099915,
-0.6560786962509155,
0.4454639256000519,
-0.165922611951828,
-0.2810530364513397,
0.07861771434545517,
-0.04193262383341789,
-0.1634785383939743,
0.13503241539001465,
0.5353559255599976,
0.7527808547019958,
-0.3400774300098419,
-0.46757772564888,
-0.1806459277868271,
-0.3418962061405182,
-0.12024085968732834,
0.08140304684638977,
0.6188449263572693,
-0.5241288542747498,
-0.02808915264904499,
-0.9257352352142334,
0.009660078212618828,
0.7651999592781067,
-0.037999607622623444,
0.7852113246917725,
0.7564413547515869,
-0.34976035356521606,
0.22349204123020172,
-0.5492935180664062,
-0.22037197649478912,
-0.5115683078765869,
-0.16683605313301086,
-0.5014796257019043,
-0.9796721935272217,
0.9440889358520508,
0.06440109759569168,
0.024279560893774033,
0.8936519622802734,
0.5024163126945496,
-0.21259371936321259,
0.8215029835700989,
0.23104815185070038,
-0.17085349559783936,
0.25952595472335815,
-0.7428557872772217,
0.12240666151046753,
-0.9724686741828918,
-0.6920936107635498,
-0.6041995882987976,
-0.7393137216567993,
-0.7655972242355347,
-0.24149075150489807,
0.3973028063774109,
0.1530805230140686,
-0.377170205116272,
0.6961444616317749,
-0.7410173416137695,
0.5204859375953674,
0.34001970291137695,
0.45666876435279846,
0.5376520752906799,
-0.0733254924416542,
-0.281170517206192,
-0.2272539734840393,
-0.48536959290504456,
-0.20728184282779694,
0.9322446584701538,
0.48983970284461975,
0.7078316807746887,
0.4721801280975342,
0.8851162791252136,
0.17509156465530396,
-0.04858256131410599,
-0.6371030807495117,
0.6664493083953857,
0.007139245048165321,
-0.46845799684524536,
0.06949374079704285,
-0.2449222356081009,
-1.098567247390747,
0.47114086151123047,
-0.584834098815918,
-0.7351844906806946,
0.2721651792526245,
-0.08471941947937012,
-0.502359926700592,
0.31068703532218933,
-0.6232035160064697,
0.5948795080184937,
-0.017185959964990616,
-0.3332592248916626,
-0.052685901522636414,
-0.2728855609893799,
0.46962347626686096,
0.13608311116695404,
0.15151691436767578,
-0.2601696848869324,
-0.04076486453413963,
0.6944665312767029,
-0.5549084544181824,
0.773926854133606,
0.13480979204177856,
-0.10304434597492218,
0.30594485998153687,
0.008689994923770428,
0.42469871044158936,
-0.04209952801465988,
-0.07431267946958542,
0.34410470724105835,
-0.48169660568237305,
-0.5159800052642822,
-0.43750670552253723,
1.1496299505233765,
-0.9758923649787903,
-0.634204626083374,
-0.5565095543861389,
-0.06028946489095688,
0.14852669835090637,
-0.06404382735490799,
0.42820248007774353,
0.1033388003706932,
-0.4374457895755768,
0.15926028788089752,
0.3030640482902527,
0.18490272760391235,
0.6412456035614014,
0.2948494553565979,
-0.4558536112308502,
-0.4908882975578308,
0.6031582355499268,
-0.01429606880992651,
-0.02819162607192993,
0.21406930685043335,
0.170786052942276,
-0.4503278136253357,
-0.36062079668045044,
-0.009814693592488766,
0.3498115837574005,
-0.5116753578186035,
-0.16933591663837433,
-0.43254968523979187,
-0.30857548117637634,
-0.36807742714881897,
-0.23565590381622314,
-0.44811707735061646,
-0.6697524189949036,
-0.571886420249939,
-0.3242408037185669,
0.4622373878955841,
0.7849161028862,
-0.11425723880529404,
0.5952925682067871,
-0.3879418969154358,
-0.5002554655075073,
0.24958987534046173,
0.09044650942087173,
-0.07789358496665955,
-0.8170667290687561,
0.04681364819407463,
-0.43993380665779114,
-0.6345799565315247,
-0.9063687324523926,
0.6448865532875061,
-0.2026566118001938,
0.4083801805973053,
0.45861124992370605,
-0.5276514291763306,
0.894216001033783,
-0.258889377117157,
0.9131281971931458,
0.6845436096191406,
-0.48499205708503723,
0.697138786315918,
-0.3730772137641907,
0.16575410962104797,
0.5729256868362427,
0.40468546748161316,
-0.15906302630901337,
-0.4599667191505432,
-1.094355583190918,
-0.8850772976875305,
0.5295072197914124,
0.6228749752044678,
-0.47385117411613464,
0.08170780539512634,
0.09053139388561249,
0.016099045053124428,
0.03513878583908081,
-0.7659249305725098,
-0.6341407299041748,
0.053123265504837036,
0.08248576521873474,
-0.1577998250722885,
0.10461273789405823,
-0.09103482216596603,
-0.3914961516857147,
0.9212707877159119,
0.11941396445035934,
0.2245824635028839,
0.11078446358442307,
0.28113824129104614,
-0.08861232548952103,
0.011966672725975513,
0.5950618386268616,
0.540947675704956,
-0.5603350400924683,
-0.3292766511440277,
0.3134593963623047,
-0.16081193089485168,
0.08783803880214691,
-0.15437743067741394,
0.11934851855039597,
0.021631555631756783,
0.15459369122982025,
0.9917457103729248,
0.648632287979126,
-0.3533079922199249,
0.4254243075847626,
-0.07101427018642426,
-0.19106781482696533,
-0.4829764664173126,
0.21433058381080627,
0.15700043737888336,
0.5863961577415466,
0.3616345226764679,
0.26873859763145447,
0.1543152928352356,
-0.4712463617324829,
0.34890982508659363,
0.44138336181640625,
-0.3678077459335327,
-0.4237186312675476,
0.5903000831604004,
0.042203985154628754,
-0.32855239510536194,
0.42049741744995117,
0.028035936877131462,
-0.19081556797027588,
0.8560997247695923,
0.6669862270355225,
0.6622422933578491,
-0.4266052842140198,
0.14782589673995972,
0.7113369703292847,
0.12827737629413605,
-0.11097760498523712,
0.2767499089241028,
0.28011050820350647,
-0.6193001866340637,
-0.01840338110923767,
-0.7143070101737976,
-0.2678520381450653,
0.357177734375,
-0.6691645979881287,
0.6102916598320007,
-0.5232338309288025,
-0.4633968770503998,
0.21502865850925446,
0.30403488874435425,
-0.696152925491333,
0.4177813231945038,
0.04050964489579201,
0.8872135877609253,
-1.211319088935852,
0.6746166348457336,
0.5761969089508057,
-0.5639505982398987,
-0.5840675234794617,
-0.48012056946754456,
0.17505022883415222,
-1.3210772275924683,
0.48532992601394653,
-0.15089727938175201,
0.1568298637866974,
-0.3072868287563324,
-0.46622031927108765,
-0.9877020716667175,
1.5902048349380493,
0.11686879396438599,
-0.6411545872688293,
0.11721525341272354,
-0.3105037212371826,
0.3226451873779297,
-0.6806309223175049,
0.7057240009307861,
0.6235553026199341,
0.6837263703346252,
0.38205254077911377,
-0.9683186411857605,
-0.03080814704298973,
-0.3587619960308075,
-0.3063874840736389,
0.3642789125442505,
-1.493632435798645,
1.0212758779525757,
0.04564182087779045,
0.10868705809116364,
0.17148900032043457,
0.4477134644985199,
0.7297993898391724,
0.1467716544866562,
0.4590306878089905,
1.3385120630264282,
0.6914631128311157,
-0.33975106477737427,
0.9830664396286011,
-0.016456231474876404,
0.7371545433998108,
0.8250799179077148,
-0.1290336698293686,
1.0525275468826294,
0.27450159192085266,
-0.4763775169849396,
0.5586356520652771,
1.135804533958435,
-0.19626207649707794,
0.4810822010040283,
-0.06683402508497238,
-0.17484216392040253,
-0.27802687883377075,
-0.010112489573657513,
-0.6081424951553345,
0.6085502505302429,
0.25994014739990234,
-0.5138295292854309,
-0.46749529242515564,
-0.5361072421073914,
0.24016478657722473,
-0.03161400556564331,
-0.24545884132385254,
0.6111164093017578,
0.2541308104991913,
-0.5122179388999939,
0.7089632153511047,
-0.12929792702198029,
0.8459867238998413,
-0.47494742274284363,
0.15635524690151215,
-0.28140988945961,
0.13384801149368286,
-0.3231573700904846,
-1.0329033136367798,
0.3108610510826111,
-0.06899652630090714,
-0.05145730450749397,
-0.07903594523668289,
0.7452472448348999,
-0.13371910154819489,
-0.7169751524925232,
0.5393916964530945,
0.5034120082855225,
0.5160818696022034,
0.5140497088432312,
-1.1643922328948975,
0.4088217318058014,
-0.0011652683606371284,
-0.16221220791339874,
0.40273934602737427,
-0.0689968392252922,
0.2776240110397339,
0.5619118809700012,
0.7670684456825256,
0.013997429050505161,
0.009334482252597809,
-0.2693769335746765,
0.7577810287475586,
-0.5114114284515381,
-0.5104321837425232,
-0.9369444847106934,
0.5755327939987183,
-0.24570274353027344,
-0.8617777824401855,
0.7089659571647644,
1.038323163986206,
0.5454593896865845,
-0.010761619545519352,
0.4985194802284241,
0.35416707396507263,
0.06821120530366898,
-0.4434731602668762,
0.8679636716842651,
-0.9748839735984802,
0.05594354495406151,
-0.0267566479742527,
-1.0997331142425537,
-0.21607306599617004,
0.6343072056770325,
0.004849553573876619,
-0.17521996796131134,
0.4587480127811432,
0.7192462682723999,
-0.21809004247188568,
0.017502060160040855,
0.25941258668899536,
0.5155742764472961,
-0.06031792238354683,
0.7769136428833008,
0.7137629389762878,
-0.8769082427024841,
0.3225143849849701,
-0.061858199536800385,
-0.45714497566223145,
-0.515981137752533,
-0.7392244935035706,
-0.7849479913711548,
-0.46313709020614624,
-0.5702730417251587,
-0.6235407590866089,
0.06365480273962021,
0.8154349327087402,
0.6932288408279419,
-0.629157304763794,
-0.48855075240135193,
0.2839771509170532,
0.1457442194223404,
-0.03651496395468712,
-0.23710164427757263,
0.27908575534820557,
0.14816118776798248,
-1.1002482175827026,
0.6042079329490662,
0.37231773138046265,
0.36630430817604065,
-0.17601212859153748,
-0.23416860401630402,
-0.33644649386405945,
0.06118810176849365,
0.4853215515613556,
0.2939857840538025,
-0.7675229907035828,
0.03486635163426399,
-0.1018775925040245,
0.05708225071430206,
0.47740674018859863,
-0.0763159841299057,
-0.49379876255989075,
-0.25466787815093994,
0.6391724944114685,
0.26869696378707886,
0.8455412983894348,
-0.2018679529428482,
0.09297125786542892,
-0.6929245591163635,
0.3157845139503479,
-0.04166765883564949,
0.904774010181427,
0.17529001832008362,
-0.28285884857177734,
0.7819377779960632,
0.4837527275085449,
-0.6029934287071228,
-0.8580605983734131,
-0.047661907970905304,
-1.5278375148773193,
-0.17651233077049255,
0.9901637434959412,
-0.07366873323917389,
-0.5537970066070557,
0.649784505367279,
-0.08720672130584717,
-0.10534119606018066,
-0.8201619386672974,
0.6455460786819458,
0.8767861723899841,
-0.15458166599273682,
-0.03021957352757454,
-0.12264874577522278,
0.019794292747974396,
0.3852449655532837,
-0.7326236367225647,
-0.6007470488548279,
0.3291395306587219,
0.4021068215370178,
0.4163041412830353,
0.67714923620224,
-0.4227551221847534,
0.07836079597473145,
-0.12263019382953644,
-0.008654793724417686,
0.31310269236564636,
-0.18242239952087402,
-0.20103640854358673,
0.3312264084815979,
-0.22217486798763275,
-0.7003238201141357
] |
absa/classifier-rest-0.2
|
absa
| 2021-05-19T11:37:54Z | 8,117 | 2 |
transformers
|
[
"transformers",
"tf",
"bert",
"endpoints_compatible",
"region:us"
] | null | 2022-03-02T23:29:05Z |
Entry not found
|
[
-0.3227650225162506,
-0.22568431496620178,
0.862226128578186,
0.43461495637893677,
-0.5282987952232361,
0.7012965679168701,
0.7915717363357544,
0.07618638128042221,
0.7746025919914246,
0.2563219666481018,
-0.7852817177772522,
-0.22573819756507874,
-0.9104480743408203,
0.5715669393539429,
-0.3992334008216858,
0.5791245698928833,
-0.14494505524635315,
-0.10751161724328995,
0.28233757615089417,
-0.2768954336643219,
-0.5409224033355713,
-0.36855220794677734,
-1.1902776956558228,
0.061491113156080246,
0.5316578149795532,
0.7435142397880554,
0.7584060430526733,
0.3652167320251465,
0.6432578563690186,
0.3932291269302368,
-0.23138920962810516,
0.4827055037021637,
-0.04171813279390335,
0.00260411505587399,
-0.3524433970451355,
-0.5516898036003113,
-0.28596609830856323,
0.07584730535745621,
1.0961304903030396,
0.966687798500061,
-0.284663587808609,
0.05330817773938179,
-0.3063621520996094,
0.33088892698287964,
-0.49734312295913696,
0.3054099678993225,
-0.022506045177578926,
0.16318801045417786,
-0.7041513919830322,
-0.5535354018211365,
0.012794834561645985,
-0.7361212968826294,
0.17926570773124695,
-0.690081000328064,
0.8269098401069641,
0.18583157658576965,
1.1533750295639038,
0.14819414913654327,
-0.462487131357193,
-0.8161764144897461,
-0.6538989543914795,
0.5711171627044678,
-0.32703715562820435,
0.39680248498916626,
0.7028235197067261,
-0.048573412001132965,
-0.9820332527160645,
-0.6745741367340088,
-0.46466192603111267,
0.2923962473869324,
0.35402774810791016,
-0.3411678075790405,
-0.17522086203098297,
-0.3058989644050598,
0.15792037546634674,
0.12811517715454102,
-0.4841994643211365,
-0.5543919205665588,
-0.5475160479545593,
-0.3960252106189728,
0.6206658482551575,
0.3482950031757355,
0.2429177463054657,
-0.1888415813446045,
-0.3228583335876465,
0.0880163162946701,
-0.4160851538181305,
0.3402571678161621,
0.6335517168045044,
0.7114017009735107,
-0.5811444520950317,
0.560215950012207,
-0.04927587881684303,
0.7439703941345215,
0.11445561796426773,
-0.27478092908859253,
0.41460567712783813,
-0.14724725484848022,
0.055171746760606766,
0.4226345121860504,
0.31524422764778137,
0.2841312289237976,
-0.3273695111274719,
0.2032228708267212,
-0.3215144872665405,
-0.30496224761009216,
-0.22332167625427246,
-0.29490774869918823,
-0.3592180609703064,
0.5492289066314697,
-0.3314017057418823,
-0.42855486273765564,
1.143175721168518,
-0.4200771450996399,
-0.7302224040031433,
0.33156412839889526,
0.4065209925174713,
-0.0994480773806572,
-0.37146568298339844,
-0.052260834723711014,
-0.8458789587020874,
-0.007907390594482422,
0.7491172552108765,
-0.7198970913887024,
0.3371737599372864,
0.4728063642978668,
0.7417217493057251,
0.19650575518608093,
-0.14034469425678253,
-0.42949390411376953,
0.2971969544887543,
-0.8659994006156921,
0.6320174336433411,
-0.20135220885276794,
-1.0051977634429932,
0.11150479316711426,
0.8971705436706543,
-0.37896400690078735,
-1.2094876766204834,
1.0605159997940063,
-0.6887932419776917,
0.16017857193946838,
-0.676761269569397,
-0.14661237597465515,
-0.07118501514196396,
-0.005096632521599531,
-0.6088156700134277,
0.7567102313041687,
0.587267279624939,
-0.4995276927947998,
0.21429483592510223,
-0.26029831171035767,
-0.39151400327682495,
0.38824859261512756,
-0.07935450226068497,
-0.21858926117420197,
0.713833212852478,
-0.6647079586982727,
-0.26932814717292786,
0.2942774295806885,
0.2368936538696289,
-0.35706108808517456,
-0.7931919097900391,
0.08478113263845444,
-0.05786270648241043,
1.550750494003296,
-0.03868847340345383,
-0.3586106300354004,
-0.679383397102356,
-1.1506240367889404,
-0.07070787996053696,
0.6886883974075317,
-0.9194989204406738,
-0.27839475870132446,
-0.046410128474235535,
-0.26169314980506897,
0.08994917571544647,
0.7390589714050293,
-1.1194051504135132,
0.2832726836204529,
-0.05092663690447807,
-0.22794683277606964,
0.8271058797836304,
0.15387225151062012,
0.24758946895599365,
0.14913396537303925,
0.42958706617355347,
0.527725338935852,
0.11115207523107529,
0.683587908744812,
-0.34720373153686523,
-0.9694353938102722,
0.6154631972312927,
0.25266361236572266,
0.8121447563171387,
-0.49945297837257385,
0.2685093879699707,
0.27025535702705383,
-0.3409680724143982,
-0.5682371854782104,
-0.3102838397026062,
0.09025752544403076,
0.14930562674999237,
0.11142510175704956,
-0.5721710324287415,
-0.6576125025749207,
-0.9689140319824219,
-0.13590654730796814,
-0.4314374029636383,
-0.3571570813655853,
0.21006910502910614,
0.5792906284332275,
-1.1975523233413696,
0.4128875136375427,
-0.7705625891685486,
-0.7038741111755371,
-0.01065548975020647,
-0.19338123500347137,
0.7540656328201294,
0.43240174651145935,
0.5033966898918152,
-0.6397148370742798,
-0.5661987066268921,
-0.22470176219940186,
-1.0333747863769531,
-0.13280506432056427,
0.24819621443748474,
0.3065737783908844,
-0.13423344492912292,
-0.2744963765144348,
-0.48740333318710327,
0.8100387454032898,
0.14789170026779175,
-0.5391897559165955,
0.5220767259597778,
-0.3020317256450653,
0.17224803566932678,
-0.6369150280952454,
-0.06916818022727966,
-0.661676287651062,
-0.0009071884560398757,
-0.3608308732509613,
-0.5737438797950745,
0.14772287011146545,
0.07017494738101959,
-0.16065457463264465,
0.28808408975601196,
-0.909277081489563,
-0.0010852962732315063,
-0.7442210912704468,
0.379071980714798,
0.06394772231578827,
-0.3145078718662262,
-0.017517540603876114,
1.0000386238098145,
0.7784460783004761,
-0.3848048746585846,
0.721744179725647,
0.4440041184425354,
0.19036155939102173,
0.7630521059036255,
-0.18725109100341797,
0.16478213667869568,
-0.5245416760444641,
-0.12161104381084442,
-0.8887597918510437,
-1.0982946157455444,
0.7320570349693298,
-0.6114250421524048,
0.36542922258377075,
-0.4277869760990143,
0.2589159905910492,
-0.6919258832931519,
-0.03885362669825554,
0.4808599352836609,
-0.05936325341463089,
-0.6863942742347717,
0.5232570171356201,
0.45317530632019043,
-0.2019241601228714,
-0.6609031558036804,
-0.530157208442688,
0.39365822076797485,
0.6154114007949829,
-0.16390392184257507,
0.06878514587879181,
0.14941060543060303,
-0.5441926121711731,
-0.040802597999572754,
-0.38691970705986023,
-0.45766758918762207,
0.054224006831645966,
0.13053473830223083,
-0.005750799085944891,
-0.404820054769516,
-0.0868026465177536,
-0.35842007398605347,
-0.4656120240688324,
0.21876516938209534,
0.3011947274208069,
-0.04096309468150139,
-0.42599788308143616,
-0.3619818687438965,
-0.888181209564209,
0.6719610095024109,
0.5370282530784607,
0.05281545966863632,
0.7555549740791321,
0.16819314658641815,
-0.8014987707138062,
-0.13532210886478424,
-0.1760706603527069,
0.2696830928325653,
-0.5588056445121765,
0.13849826157093048,
-0.013484534807503223,
-0.0637492910027504,
0.26297882199287415,
0.25386232137680054,
-0.4300556778907776,
0.9276250004768372,
-0.2615274488925934,
-0.3592521846294403,
0.7960181832313538,
0.5974742770195007,
0.49583131074905396,
0.16503219306468964,
-0.044541798532009125,
0.900709331035614,
-1.1966516971588135,
-0.6563175916671753,
-0.7409549355506897,
-0.15945707261562347,
-0.43510833382606506,
-0.032105933874845505,
0.6254412531852722,
0.2900990843772888,
-0.1333388388156891,
0.4756395220756531,
-0.5243489742279053,
0.3556033670902252,
1.01198410987854,
0.35748639702796936,
0.3435698449611664,
-0.7570229172706604,
-0.2515777349472046,
-0.1402427852153778,
-0.9998157620429993,
-0.2631377875804901,
0.8871029019355774,
0.22752606868743896,
0.844460666179657,
0.5992541313171387,
0.6784542798995972,
0.1367226243019104,
0.2523828148841858,
-0.30590319633483887,
0.3920294940471649,
0.4376082420349121,
-1.0401138067245483,
-0.42758408188819885,
0.021418681368231773,
-0.9703338742256165,
-0.14227519929409027,
-0.03495011106133461,
-0.42617112398147583,
0.7681737542152405,
0.00016589462757110596,
-0.4076709747314453,
0.7732734084129333,
-0.455583393573761,
0.7562873363494873,
-0.4473648965358734,
-0.02663906291127205,
0.4699096083641052,
-0.7070636749267578,
0.4677430987358093,
0.12878790497779846,
0.6205843091011047,
-0.015572631731629372,
-0.04078587517142296,
0.7104941606521606,
-0.9129160046577454,
0.25438642501831055,
-0.6348397135734558,
0.22421300411224365,
0.24246945977210999,
0.51606285572052,
0.5969953536987305,
0.4371243417263031,
0.10119888931512833,
-0.23920902609825134,
0.04115807265043259,
-0.8241125345230103,
-0.210506409406662,
0.697515606880188,
-0.7186890840530396,
-0.6864197850227356,
-1.2355337142944336,
0.14438660442829132,
0.27347055077552795,
0.389305055141449,
0.7959296107292175,
0.571408748626709,
0.1289544403553009,
0.680525004863739,
0.9888588190078735,
-0.0688566341996193,
0.9166924357414246,
0.3224477171897888,
0.09175168722867966,
-0.21944808959960938,
0.7036820650100708,
0.26627904176712036,
-0.24707956612110138,
-0.11939732730388641,
0.20913465321063995,
-0.11069409549236298,
-0.591761589050293,
-0.49990686774253845,
0.3701757788658142,
-0.6731787919998169,
-0.18303893506526947,
-0.6243735551834106,
-0.6043769717216492,
-0.511759340763092,
0.06927360594272614,
-0.7147687673568726,
0.23979046940803528,
-0.7753565907478333,
-0.10574902594089508,
0.04323432594537735,
0.9792009592056274,
-0.589311957359314,
0.5805224180221558,
-1.1218582391738892,
0.19345788657665253,
-0.07949887961149216,
0.7921058535575867,
0.21395787596702576,
-0.7344395518302917,
-0.3975418508052826,
-0.11592631042003632,
-0.3729911744594574,
-1.3576762676239014,
0.21404948830604553,
-0.2454141080379486,
0.23094046115875244,
0.6145404577255249,
0.1397707313299179,
0.5258248448371887,
-0.34326282143592834,
0.7029101848602295,
-0.057017259299755096,
-0.7069286704063416,
0.7934495210647583,
-0.5026894807815552,
0.4963534474372864,
0.9765996932983398,
0.5333835482597351,
-0.7984007596969604,
0.035741209983825684,
-1.041123390197754,
-0.6008695363998413,
0.38426393270492554,
0.11928944289684296,
-0.03601083159446716,
-0.6659559011459351,
-0.054019637405872345,
-0.16143807768821716,
0.6043745279312134,
-1.039069414138794,
-0.7858356237411499,
0.2576698362827301,
0.5277302861213684,
0.0816856250166893,
-0.5653398633003235,
0.20880667865276337,
-0.544416069984436,
1.0657774209976196,
0.45109400153160095,
0.3274499475955963,
0.8406060934066772,
0.46492424607276917,
-0.3823164403438568,
0.09252490103244781,
0.7662695050239563,
0.6666232347488403,
-0.5239797830581665,
-0.2908027470111847,
-0.08827541768550873,
-0.9143403768539429,
0.05927472561597824,
0.11168918758630753,
-0.013455932028591633,
0.9082110524177551,
0.5793083310127258,
0.2539709210395813,
0.4514279365539551,
-0.726460337638855,
0.8859451413154602,
-0.14954176545143127,
-0.12472866475582123,
-1.0677239894866943,
0.1948619782924652,
-0.23984959721565247,
0.5006402134895325,
1.0061326026916504,
0.5250048041343689,
-0.047630298882722855,
-0.8143380880355835,
-0.01473585981875658,
0.6939172148704529,
-0.7091123461723328,
-0.17449834942817688,
0.944853663444519,
0.3847099542617798,
-1.2953051328659058,
1.106776475906372,
-0.5381771326065063,
-0.560332179069519,
0.9121301770210266,
0.522956907749176,
1.1221847534179688,
-0.44204121828079224,
0.0008676342549733818,
0.2662237286567688,
0.41378432512283325,
0.5423170328140259,
1.0869629383087158,
0.431413471698761,
-0.7931063771247864,
0.8826584815979004,
-0.24776044487953186,
-0.40361151099205017,
-0.05347571521997452,
-0.42859897017478943,
0.16892178356647491,
-0.4406192898750305,
-0.10713007301092148,
-0.3444187641143799,
0.28543180227279663,
-0.7072042226791382,
0.42807620763778687,
-0.0838567465543747,
0.8653068542480469,
-0.8553727269172668,
0.47207626700401306,
0.635470449924469,
-0.3337355852127075,
-0.8508191108703613,
-0.26198428869247437,
-0.11448462307453156,
-0.6389466524124146,
0.30214807391166687,
-0.4554102420806885,
0.044398851692676544,
0.09623463451862335,
-0.649151623249054,
-1.1778275966644287,
0.9093633890151978,
-0.639612078666687,
-0.2784462869167328,
0.20464053750038147,
-0.11514760553836823,
0.28811705112457275,
-0.2524643540382385,
0.010661216452717781,
0.41876548528671265,
0.748940110206604,
0.2844654619693756,
-0.7727053761482239,
-0.3694884479045868,
0.0015032943338155746,
-0.44474777579307556,
0.7582978010177612,
-0.6002101898193359,
1.1840779781341553,
-0.5563543438911438,
-0.059654366225004196,
0.44384512305259705,
0.24690914154052734,
0.21076197922229767,
0.6629220843315125,
0.1442081481218338,
0.7282265424728394,
1.07012140750885,
-0.40835219621658325,
0.8811809420585632,
0.26432839035987854,
0.47430819272994995,
0.7238501906394958,
-0.6487724781036377,
0.7513749003410339,
0.31810489296913147,
-0.5682924389839172,
0.9228013753890991,
1.2906063795089722,
-0.15699204802513123,
0.8079374432563782,
0.05136508867144585,
-1.081600546836853,
0.325833261013031,
-0.20724765956401825,
-0.7530064582824707,
0.3150254189968109,
0.19055864214897156,
-0.6920982599258423,
-0.5770308971405029,
-0.24046507477760315,
-0.35662803053855896,
-0.11552901566028595,
-0.7631728649139404,
0.6720563769340515,
-0.016969164833426476,
-0.5103683471679688,
0.18857547640800476,
0.2877499461174011,
0.17368432879447937,
-0.5235732793807983,
-0.02939440682530403,
-0.22823619842529297,
0.2660655975341797,
-0.5670853853225708,
-0.5234526991844177,
0.5724433064460754,
-0.32430219650268555,
-0.5343255400657654,
0.18147465586662292,
0.763587236404419,
-0.16923809051513672,
-0.4515409469604492,
0.32472723722457886,
0.6959525346755981,
0.1665852814912796,
0.4250282347202301,
-0.23511263728141785,
0.24480605125427246,
-0.08044824004173279,
-0.06651552021503448,
0.27714768052101135,
0.3449169099330902,
0.22435641288757324,
0.4450142979621887,
0.43285664916038513,
-0.01808755099773407,
-0.10736498981714249,
-0.382819801568985,
0.4124940037727356,
-0.9542785882949829,
-0.5713282823562622,
-0.6307113766670227,
0.2740660607814789,
-0.02315417304635048,
-1.0836423635482788,
0.4145168364048004,
1.4406683444976807,
1.0359982252120972,
-0.4756383001804352,
1.067226529121399,
-0.21818485856056213,
0.9594791531562805,
0.41483086347579956,
0.5420440435409546,
-0.6030411720275879,
0.03835370019078255,
-0.4364396035671234,
-1.076962947845459,
-0.35716333985328674,
0.4539391100406647,
-0.022899555042386055,
-0.3429867625236511,
0.872571587562561,
0.5887166261672974,
-0.33473607897758484,
-0.11728022992610931,
0.048487238585948944,
-0.029941488057374954,
-0.12433847039937973,
0.5145376324653625,
0.7648399472236633,
-0.9344304800033569,
-0.10680416971445084,
-0.21577754616737366,
-0.6382725834846497,
-0.5047279000282288,
-0.9632009267807007,
-0.12959396839141846,
-0.16037796437740326,
0.035343267023563385,
-0.5662806630134583,
0.00255737011320889,
1.208324909210205,
0.5684957504272461,
-1.1113994121551514,
-0.5303789377212524,
0.3371853232383728,
0.3920421898365021,
-0.1874791383743286,
-0.24202413856983185,
0.2984568774700165,
0.15382249653339386,
-0.5908876657485962,
0.6875665783882141,
0.8089625239372253,
0.208888977766037,
0.19554761052131653,
0.15893013775348663,
-0.8229473829269409,
-0.14913435280323029,
0.17440445721149445,
0.9450570344924927,
-0.939853310585022,
-0.7114843130111694,
-0.03168516233563423,
-0.27094873785972595,
-0.05765746906399727,
0.17102102935314178,
-0.4046344757080078,
0.5180677175521851,
0.34591493010520935,
0.49933457374572754,
0.0561608150601387,
-0.054746925830841064,
0.5409556031227112,
-0.9069057703018188,
0.09425963461399078,
0.4134361147880554,
0.4154115319252014,
-0.4000864028930664,
-0.5910194516181946,
0.6713420748710632,
1.0073972940444946,
-0.6594868898391724,
-0.8743268847465515,
-0.19846712052822113,
-1.0016002655029297,
0.04189709946513176,
0.6762762069702148,
0.5009527802467346,
-0.4806513786315918,
-0.4174500107765198,
-0.5617399215698242,
-0.1254672110080719,
-0.1369970738887787,
0.7621601819992065,
1.179680585861206,
-0.7432094812393188,
0.07975747436285019,
-1.038639783859253,
0.6594986915588379,
-0.2419457733631134,
-0.3457581698894501,
-0.48644304275512695,
0.3832802176475525,
0.35236993432044983,
0.440481036901474,
0.614812433719635,
0.1408471167087555,
0.8338426351547241,
0.3126053214073181,
-0.1702686995267868,
0.2698982357978821,
-0.4559200704097748,
-0.028932858258485794,
-0.057962555438280106,
0.31015971302986145,
-1.0262157917022705
] |
tahrirchi/tahrirchi-bert-base
|
tahrirchi
| 2023-11-20T14:41:42Z | 8,117 | 5 |
transformers
|
[
"transformers",
"pytorch",
"safetensors",
"bert",
"fill-mask",
"uz",
"dataset:tahrirchi/uz-crawl",
"dataset:tahrirchi/uz-books",
"license:apache-2.0",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] |
fill-mask
| 2023-10-26T09:41:47Z |
---
license: apache-2.0
language:
- uz
library_name: transformers
pipeline_tag: fill-mask
datasets:
- tahrirchi/uz-crawl
- tahrirchi/uz-books
tags:
- bert
widget:
- text: >-
Alisher Navoiy – ulug‘ o‘zbek va boshqa turkiy xalqlarning <mask>,
mutafakkiri va davlat arbobi bo‘lgan.
---
# TahrirchiBERT base model
The TahrirchiBERT-base is an encoder-only Transformer text model with 110 million parameters.
It is pretrained model on Uzbek language (latin script) using a masked language modeling (MLM) objective. This model is case-sensitive: it does make a difference between uzbek and Uzbek.
For full details of this model please read our paper (coming soon!) and [release blog post](https://tahrirchi.uz/grammatika-tekshiruvi).
## Model variations
This model is part of the family of **TahrirchiBERT models** trained with different number of parameters that will continuously expanded in the future.
| Model | Number of parameters | Language | Script
|------------------------|--------------------------------|-------|-------|
| [`tahrirchi-bert-small`](https://huggingface.co/tahrirchi/tahrirchi-bert-small) | 67M | Uzbek | Latin
| [`tahrirchi-bert-base`](https://huggingface.co/tahrirchi/tahrirchi-bert-base) | 110M | Uzbek | Latin
## Intended uses & limitations
This model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked)
to make decisions, such as sequence classification, token classification or question answering.
### How to use
You can use this model directly with a pipeline for masked language modeling:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='tahrirchi/tahrirchi-bert-base')
>>> unmasker("Alisher Navoiy – ulug‘ o‘zbek va boshqa turkiy xalqlarning <mask>, mutafakkiri va davlat arbobi bo‘lgan.")
[{'score': 0.4616584777832031,
'token': 10879,
'token_str': ' shoiri',
'sequence': 'Alisher Navoiy – ulug‘ o‘zbek va boshqa turkiy xalqlarning shoiri, mutafakkiri va davlat arbobi bo‘lgan.'},
{'score': 0.19899587333202362,
'token': 10013,
'token_str': ' olimi',
'sequence': 'Alisher Navoiy – ulug‘ o‘zbek va boshqa turkiy xalqlarning olimi, mutafakkiri va davlat arbobi bo‘lgan.'},
{'score': 0.055418431758880615,
'token': 12224,
'token_str': ' asoschisi',
'sequence': 'Alisher Navoiy – ulug‘ o‘zbek va boshqa turkiy xalqlarning asoschisi, mutafakkiri va davlat arbobi bo‘lgan.'},
{'score': 0.037673842161893845,
'token': 24597,
'token_str': ' faylasufi',
'sequence': 'Alisher Navoiy – ulug‘ o‘zbek va boshqa turkiy xalqlarning faylasufi, mutafakkiri va davlat arbobi bo‘lgan.'},
{'score': 0.029616089537739754,
'token': 9543,
'token_str': ' farzandi',
'sequence': 'Alisher Navoiy – ulug‘ o‘zbek va boshqa turkiy xalqlarning farzandi, mutafakkiri va davlat arbobi bo‘lgan.'}]
>>> unmasker("Egiluvchan boʻgʻinlari va <mask>, yarim bukilgan tirnoqlari tik qiyaliklar hamda daraxtlarga oson chiqish imkonini beradi.")
[{'score': 0.1740381121635437,
'token': 12571,
'token_str': ' oyoqlari',
'sequence': 'Egiluvchan bo‘g‘inlari va oyoqlari, yarim bukilgan tirnoqlari tik qiyaliklar hamda daraxtlarga oson chiqish imkonini beradi.'},
{'score': 0.05455964431166649,
'token': 2073,
'token_str': ' uzun',
'sequence': 'Egiluvchan bo‘g‘inlari va uzun, yarim bukilgan tirnoqlari tik qiyaliklar hamda daraxtlarga oson chiqish imkonini beradi.'},
{'score': 0.050441522151231766,
'token': 19725,
'token_str': ' barmoqlari',
'sequence': 'Egiluvchan bo‘g‘inlari va barmoqlari, yarim bukilgan tirnoqlari tik qiyaliklar hamda daraxtlarga oson chiqish imkonini beradi.'},
{'score': 0.04490342736244202,
'token': 10424,
'token_str': ' tanasi',
'sequence': 'Egiluvchan bo‘g‘inlari va tanasi, yarim bukilgan tirnoqlari tik qiyaliklar hamda daraxtlarga oson chiqish imkonini beradi.'},
{'score': 0.03777358680963516,
'token': 27116,
'token_str': ' bukilgan',
'sequence': 'Egiluvchan bo‘g‘inlari va bukilgan, yarim bukilgan tirnoqlari tik qiyaliklar hamda daraxtlarga oson chiqish imkonini beradi.'}]
```
## Training data
TahrirchiBERT is pretrained using a standard Masked Language Modeling (MLM) objective: the model is given a sequence of text with some tokens hidden, and it has to predict these masked tokens. TahrirchiBERT is trained on the [Uzbek Crawl](https://huggingface.co/datasets/tahrirchi/uz-crawl) and all latin portion of [Uzbek Books](https://huggingface.co/datasets/tahrirchi/uz-books), which contains roughly 4000 preprocessd books, 1.2 million curated text documents scraped from the internet and Telegram blogs (equivalent to 5 billion tokens).
## Training procedure
### Preprocessing
The texts are tokenized using a byte version of Byte-Pair Encoding (BPE) and a vocabulary size of 30,528 to make fully use of rare words. The inputs of the model take pieces of 512 contiguous tokens that may span over documents. Also, we added number of regular expressions to avoid misrepresentation of different symbols that is used mostly incorrectly in practise.
### Pretraining
The model was trained for one million steps with a batch size of 512. The sequence length was limited to 512 tokens during all pre-training stage. The optimizer used is Adam with a learning rate of 5e-4, \\(\beta_{1} = 0.9\\) and \\(\beta_{2} = 0.98\\), a weight decay of 1e-5, learning rate warmup to the full LR for 6% of the training duration with linearly decay to 0.02x the full LR by the end of the training duration.
## Citation
Please cite this model using the following format:
```
@online{Mamasaidov2023TahrirchiBERT,
author = {Mukhammadsaid Mamasaidov and Abror Shopulatov},
title = {TahrirchiBERT base},
year = {2023},
url = {https://huggingface.co/tahrirchi/tahrirchi-bert-base},
note = {Accessed: 2023-10-27}, % change this date
urldate = {2023-10-27} % change this date
}
```
## Gratitude
We are thankfull for these awesome organizations and people for help to make it happen:
- [MosaicML team](https://mosaicml.com/): for their script for efficiently training BERT models
- [Ilya Gusev](https://github.com/IlyaGusev/): for advise throughout the process
- [David Dale](https://daviddale.ru): for advise throughout the process
|
[
-0.460359662771225,
-0.5356786847114563,
-0.013653675094246864,
0.21491274237632751,
-0.53590327501297,
0.3051145076751709,
-0.2339491993188858,
-0.29840436577796936,
0.34190601110458374,
0.3866153657436371,
-0.5484582185745239,
-0.9444671273231506,
-0.666735053062439,
0.16136138141155243,
-0.23408888280391693,
1.100093126296997,
0.004536840133368969,
0.2621414363384247,
0.5143275260925293,
-0.15972574055194855,
-0.27560004591941833,
-0.5682840347290039,
-0.453876256942749,
-0.21426182985305786,
0.40282848477363586,
0.29511770606040955,
0.5743192434310913,
0.5362345576286316,
0.3000653088092804,
0.3395758867263794,
-0.25353020429611206,
0.12013038247823715,
-0.231038436293602,
0.1890951693058014,
0.21481703221797943,
-0.3588462769985199,
-0.46153905987739563,
-0.2978971600532532,
0.7092366218566895,
0.7763057947158813,
-0.09172971546649933,
0.5409532189369202,
0.025133203715085983,
0.6945472359657288,
-0.3170573115348816,
0.005611737258732319,
-0.2840958535671234,
0.20946183800697327,
-0.46636897325515747,
0.09752872586250305,
-0.36350536346435547,
-0.41132962703704834,
0.061026185750961304,
-0.2879353165626526,
0.20617066323757172,
0.04206811636686325,
1.1278800964355469,
-0.10284987837076187,
-0.29396045207977295,
-0.032437775284051895,
-0.6162992119789124,
1.0344970226287842,
-0.8715225458145142,
0.46068522334098816,
0.4819205403327942,
0.08513811975717545,
-0.28000256419181824,
-0.7465957403182983,
-0.507988452911377,
-0.1378387212753296,
-0.03205908462405205,
0.22731979191303253,
-0.38804131746292114,
-0.10139629244804382,
0.3668024241924286,
0.2875751256942749,
-0.7776145935058594,
-0.06335848569869995,
-0.5140524506568909,
-0.314459890127182,
0.5137158632278442,
0.19109037518501282,
0.2624763548374176,
-0.189651221036911,
-0.29308533668518066,
-0.1282535195350647,
-0.3588767945766449,
0.32405227422714233,
0.40693315863609314,
0.22369560599327087,
-0.3294123709201813,
0.5988787412643433,
-0.11195288598537445,
0.7981429100036621,
0.33666449785232544,
-0.21332970261573792,
0.5136191844940186,
-0.21795417368412018,
-0.4749029278755188,
-0.03583461418747902,
1.0138341188430786,
-0.004606597125530243,
0.1399463415145874,
-0.06780869513750076,
-0.020084308460354805,
-0.195772185921669,
-0.022039610892534256,
-0.8276141881942749,
-0.0735989660024643,
0.32934409379959106,
-0.4343535900115967,
-0.1726156324148178,
0.35333481431007385,
-0.8426204919815063,
0.008891315199434757,
0.0050474731251597404,
0.6048961281776428,
-0.6597850322723389,
-0.1560947149991989,
0.2670184075832367,
0.030010875314474106,
0.36608603596687317,
0.10603031516075134,
-0.858924388885498,
0.31061893701553345,
0.3758735656738281,
0.8915280103683472,
0.020880475640296936,
-0.14572203159332275,
-0.1560336798429489,
-0.058010004460811615,
-0.27354371547698975,
0.35425952076911926,
-0.27852702140808105,
-0.4510774314403534,
-0.04346366599202156,
0.28280869126319885,
-0.20399411022663116,
-0.1789524257183075,
0.4831424057483673,
-0.3598482310771942,
0.3697957992553711,
-0.13946935534477234,
-0.4299008846282959,
-0.3695114254951477,
0.11107225716114044,
-0.7651768326759338,
1.1400504112243652,
0.15078993141651154,
-0.9195375442504883,
0.20918653905391693,
-0.7989611029624939,
-0.30747538805007935,
0.08650681376457214,
0.1737397164106369,
-0.791210412979126,
-0.18325363099575043,
0.2925236225128174,
0.5899009108543396,
-0.24990728497505188,
0.26169353723526,
0.03354751318693161,
-0.49548253417015076,
0.4282868802547455,
-0.2771710157394409,
1.17630136013031,
0.371354341506958,
-0.6392941474914551,
0.17474442720413208,
-0.9490476250648499,
0.27710601687431335,
0.19299009442329407,
-0.43025389313697815,
0.10831573605537415,
-0.6099804043769836,
0.06375992298126221,
0.2566381096839905,
0.16815346479415894,
-0.5916680693626404,
0.32041269540786743,
-0.6569227576255798,
0.31607499718666077,
0.7437143325805664,
0.08008019626140594,
0.25197455286979675,
-0.39848437905311584,
0.8040295839309692,
0.1893160492181778,
0.1384095549583435,
-0.17327100038528442,
-0.6810992360115051,
-0.869168221950531,
-0.4664176106452942,
0.6647286415100098,
0.4989360570907593,
-0.6060273051261902,
0.7398550510406494,
-0.1750144511461258,
-0.6346949934959412,
-0.8708373308181763,
-0.033920638263225555,
0.4680732786655426,
0.35367411375045776,
0.34216514229774475,
-0.5004165172576904,
-0.9320371150970459,
-0.7700880169868469,
-0.18768972158432007,
0.06485524773597717,
-0.06786449998617172,
0.08738101273775101,
0.6924415230751038,
-0.15152694284915924,
0.6994300484657288,
-0.21323193609714508,
-0.32007402181625366,
-0.46990904211997986,
0.12741334736347198,
0.6640713214874268,
0.6079249382019043,
0.5558919310569763,
-0.6598606109619141,
-0.7757905721664429,
0.11267831176519394,
-0.6720669269561768,
0.13645890355110168,
0.043627187609672546,
-0.04535047337412834,
0.5283153057098389,
0.019155221059918404,
-0.5934922099113464,
0.7218124270439148,
0.611037015914917,
-0.5981149673461914,
0.4828319847583771,
-0.1995028704404831,
0.3346024453639984,
-1.3836091756820679,
0.25044748187065125,
-0.15005137026309967,
-0.1950853168964386,
-0.9247469902038574,
0.046642005443573,
-0.086696095764637,
0.05411352217197418,
-0.7324438691139221,
0.5897746086120605,
-0.6241932511329651,
0.10773269832134247,
0.14541392028331757,
-0.33781296014785767,
-0.18575431406497955,
0.860701858997345,
-0.15729473531246185,
0.7654784917831421,
0.6688546538352966,
-0.2644871771335602,
0.22572365403175354,
0.2751869857311249,
-0.7087316513061523,
-0.08270832896232605,
-0.6897330284118652,
0.23780030012130737,
0.04487631469964981,
0.03969304636120796,
-1.0343680381774902,
-0.14037276804447174,
0.6503416299819946,
-0.8110278248786926,
0.41398873925209045,
-0.20632818341255188,
-0.5908964276313782,
-0.5771336555480957,
-0.41711530089378357,
0.4536409378051758,
0.7889965772628784,
-0.3053602874279022,
0.6714970469474792,
0.04257352277636528,
-0.061773743480443954,
-0.9624712467193604,
-0.7850968241691589,
0.0681903213262558,
-0.18835225701332092,
-0.5475693941116333,
0.23195967078208923,
0.0006424333550967276,
-0.10601232945919037,
-0.12157155573368073,
-0.14409486949443817,
-0.09657547622919083,
0.06000783294439316,
0.4237913489341736,
0.28707432746887207,
-0.22422480583190918,
-0.10047703236341476,
-0.04808346927165985,
-0.06617617607116699,
-0.18856635689735413,
-0.5043364763259888,
1.046349048614502,
-0.35088643431663513,
-0.29105913639068604,
-0.6225947737693787,
0.47423169016838074,
0.6391278505325317,
-0.43663182854652405,
1.1956462860107422,
1.000119924545288,
-0.41015005111694336,
0.11750464886426926,
-0.5212350487709045,
0.03304027020931244,
-0.44285231828689575,
0.25834187865257263,
-0.4614534378051758,
-0.8386818766593933,
0.8823981881141663,
0.2195003479719162,
-0.13304026424884796,
0.7083714008331299,
0.862943708896637,
-0.08415789902210236,
0.9641945362091064,
0.48612451553344727,
-0.08809877187013626,
0.3983924984931946,
-0.8031643033027649,
0.1150798574090004,
-0.6333318948745728,
-0.5581875443458557,
-0.40303370356559753,
-0.24544250965118408,
-0.5375381112098694,
-0.37842947244644165,
0.27522504329681396,
0.19487875699996948,
-0.4015927016735077,
0.3491208851337433,
-0.4364349842071533,
0.2768040895462036,
0.7711549997329712,
0.33362242579460144,
0.09792585670948029,
0.11358003318309784,
-0.5576357841491699,
-0.11243970692157745,
-0.6399495601654053,
-0.4547487795352936,
1.4184681177139282,
0.432842493057251,
0.5554686784744263,
0.3467066287994385,
0.7780522704124451,
0.4357289671897888,
0.05506361648440361,
-0.5744887590408325,
0.5266170501708984,
0.03178774192929268,
-0.6697301864624023,
-0.4656103849411011,
-0.1500658243894577,
-1.0900506973266602,
0.020162133499979973,
-0.2852334976196289,
-0.8910256028175354,
0.2499634325504303,
-0.21469277143478394,
-0.33967718482017517,
0.5093076825141907,
-0.3953874707221985,
0.7465354204177856,
-0.04120362177491188,
-0.3551095426082611,
0.18034552037715912,
-1.078039288520813,
0.39420056343078613,
-0.1792660653591156,
0.003089696867391467,
0.05973612889647484,
0.15710869431495667,
1.0905320644378662,
-0.733094334602356,
0.8487675189971924,
-0.00871396716684103,
0.0925370380282402,
0.36438167095184326,
-0.01936594396829605,
0.40154749155044556,
-0.1549554169178009,
-0.11563967168331146,
0.652185320854187,
0.12252000719308853,
-0.6534698009490967,
-0.2692555785179138,
0.48118412494659424,
-0.9062216281890869,
-0.511686384677887,
-0.7599270343780518,
-0.33479806780815125,
0.23625126481056213,
0.3489246070384979,
0.743366539478302,
0.5608349442481995,
-0.054969076067209244,
0.2645261287689209,
0.6132962703704834,
-0.09605757147073746,
0.493735671043396,
0.4847559630870819,
-0.07559679448604584,
-0.6297836899757385,
0.6571575403213501,
0.15987886488437653,
0.1468992680311203,
0.3297802209854126,
0.1226973757147789,
-0.3466280698776245,
-0.7278110384941101,
-0.474337637424469,
0.3194187581539154,
-0.6376169323921204,
-0.30019259452819824,
-0.7655529975891113,
-0.3799777925014496,
-0.5907118916511536,
0.06333084404468536,
-0.166593536734581,
-0.4625367522239685,
-0.19526362419128418,
-0.11166629940271378,
0.5103899836540222,
0.6595934629440308,
-0.13652221858501434,
0.22567057609558105,
-0.8464491367340088,
0.19403809309005737,
0.11099531501531601,
0.17827604711055756,
0.08257105201482773,
-0.9248135089874268,
-0.4892931878566742,
0.14368771016597748,
-0.24867112934589386,
-1.0223039388656616,
0.7364051342010498,
0.06605216860771179,
0.3678329885005951,
0.36904311180114746,
0.021473636850714684,
0.6953931450843811,
-0.37625938653945923,
0.9659956693649292,
0.19679929316043854,
-1.0171054601669312,
0.48378100991249084,
-0.44321760535240173,
0.36372679471969604,
0.40660786628723145,
0.5493461489677429,
-0.5014856457710266,
-0.5663650631904602,
-0.6163926720619202,
-0.7334865927696228,
0.8103982210159302,
0.5222201347351074,
-0.04016442596912384,
0.021201489493250847,
0.21708568930625916,
0.23765702545642853,
0.22797752916812897,
-0.7954916954040527,
-0.8154477477073669,
-0.3978714346885681,
-0.36973604559898376,
0.07261623442173004,
-0.3902345299720764,
0.017461931332945824,
-0.7137826681137085,
0.7621972560882568,
0.20302258431911469,
0.44465333223342896,
0.2460300177335739,
-0.07336601614952087,
-0.1473831981420517,
0.3733113408088684,
0.8700594902038574,
0.667533814907074,
-0.45106399059295654,
-0.20679163932800293,
0.26973193883895874,
-0.8765603303909302,
0.16673602163791656,
0.1385216861963272,
-0.3190717101097107,
0.27939340472221375,
0.4103098213672638,
0.906071126461029,
0.18214312195777893,
-0.5780304670333862,
0.4965890645980835,
0.0851774513721466,
-0.5124247670173645,
-0.5547338724136353,
-0.3869858384132385,
-0.051396243274211884,
0.33547526597976685,
0.5683172345161438,
-0.017779117450118065,
-0.12734198570251465,
-0.5681760907173157,
0.22258470952510834,
0.28205105662345886,
-0.2950223684310913,
-0.3942849338054657,
0.7706725001335144,
-0.22380924224853516,
-0.5438143610954285,
0.4767993688583374,
-0.1483202427625656,
-0.7596357464790344,
0.6186630129814148,
0.5346719622612,
0.9706898331642151,
-0.574629545211792,
0.24075853824615479,
0.5361191630363464,
0.08528195321559906,
-0.18075543642044067,
0.4953474700450897,
0.08880968391895294,
-0.6765903830528259,
-0.3118913173675537,
-0.7974045872688293,
-0.11482261121273041,
0.360324889421463,
-0.7972452044487,
0.2218979299068451,
-0.5699816942214966,
-0.359503835439682,
-0.04345633089542389,
0.322245717048645,
-0.7480298280715942,
0.16767488420009613,
0.07106059044599533,
0.7705443501472473,
-0.8785390853881836,
1.1320639848709106,
0.6102086901664734,
-0.6500481367111206,
-0.8717507123947144,
-0.14346632361412048,
-0.18049995601177216,
-1.088501214981079,
0.7902347445487976,
-0.01414095051586628,
0.04078805819153786,
0.1804000586271286,
-0.5538520812988281,
-0.8668766021728516,
1.138474702835083,
0.13695190846920013,
-0.5266268253326416,
-0.050545740872621536,
0.11519793421030045,
0.7001771330833435,
-0.25579383969306946,
0.34095868468284607,
0.5232466459274292,
0.4161028563976288,
0.2862216532230377,
-0.892931342124939,
0.16056489944458008,
-0.4258560538291931,
-0.12075958400964737,
0.2709658145904541,
-0.6446659564971924,
1.0275520086288452,
-0.2696666121482849,
-0.34067246317863464,
0.48004409670829773,
0.5167317986488342,
0.16001860797405243,
0.04283810406923294,
0.1618177592754364,
0.5954892039299011,
0.46845543384552,
-0.1637495756149292,
0.7932137846946716,
-0.44995900988578796,
0.4306352734565735,
0.7497087717056274,
0.10410616546869278,
0.7917485237121582,
0.4936971664428711,
-0.4263876676559448,
0.6621770262718201,
0.5981864929199219,
-0.3150967061519623,
0.5499867796897888,
0.12655389308929443,
-0.3660155236721039,
-0.26639968156814575,
-0.11336639523506165,
-0.3802505135536194,
0.4846912920475006,
0.1862531453371048,
-0.4435752332210541,
0.07207249104976654,
0.07446054369211197,
0.11060260236263275,
0.039048198610544205,
-0.15101051330566406,
0.6124968528747559,
-0.0016179822850972414,
-0.41463783383369446,
0.8528971076011658,
0.16693255305290222,
0.6674511432647705,
-0.7464147210121155,
-0.0003834557719528675,
-0.18124747276306152,
0.048567865043878555,
-0.08811676502227783,
-0.6189631819725037,
-0.04524664580821991,
0.06541060656309128,
-0.13058526813983917,
-0.16770590841770172,
0.3967360854148865,
-0.5097428560256958,
-0.8839473128318787,
0.19987496733665466,
0.4963913857936859,
0.3943624496459961,
0.2153058499097824,
-0.8399981260299683,
-0.10064887255430222,
0.21491703391075134,
-0.2777993083000183,
0.25201666355133057,
0.26638156175613403,
0.02378816343843937,
0.6545727252960205,
0.7402240633964539,
0.2675623297691345,
0.15712647140026093,
0.0922551155090332,
0.8076528310775757,
-0.9399764537811279,
-0.3175194263458252,
-0.983748197555542,
0.6904901266098022,
0.13542330265045166,
-0.25474581122398376,
0.8145424723625183,
0.5920282602310181,
0.7252732515335083,
-0.29138413071632385,
0.6327223181724548,
0.0327129140496254,
0.5949087738990784,
-0.5399348735809326,
0.9522625803947449,
-0.4535518288612366,
0.11575839668512344,
-0.26319995522499084,
-0.8157591223716736,
-0.5140541791915894,
0.5295203924179077,
-0.07014208287000656,
0.08321153372526169,
0.5504348874092102,
0.6819396018981934,
0.2054234892129898,
-0.23059985041618347,
0.3680224120616913,
0.44102174043655396,
0.10440153628587723,
0.942231297492981,
0.6336848139762878,
-0.8218125700950623,
0.5358967781066895,
-0.35489675402641296,
0.03266052529215813,
-0.3126198947429657,
-0.5664516091346741,
-1.2752612829208374,
-0.629330575466156,
-0.1787199229001999,
-0.4867834448814392,
0.08264271914958954,
1.2893306016921997,
0.3902667760848999,
-1.054795265197754,
-0.23145335912704468,
0.15148994326591492,
0.06893858313560486,
-0.3085385859012604,
-0.2300034761428833,
0.6231301426887512,
0.19870556890964508,
-0.7610902190208435,
0.09722911566495895,
0.14963877201080322,
0.3926790654659271,
0.015646295621991158,
-0.1429262012243271,
-0.45598888397216797,
-0.0006711467285640538,
0.3503282964229584,
0.5526273846626282,
-1.0342448949813843,
-0.1482093781232834,
0.21360549330711365,
-0.18012800812721252,
0.2354181557893753,
0.38705453276634216,
-0.6964349150657654,
0.4443912208080292,
0.25629642605781555,
0.35695403814315796,
0.703615128993988,
0.03432910516858101,
0.4262659251689911,
-0.6885263323783875,
0.3027048408985138,
0.27107322216033936,
0.39195433259010315,
0.1223878338932991,
-0.2043633610010147,
0.4631899893283844,
0.27748292684555054,
-0.34379658102989197,
-0.920782208442688,
-0.07601434737443924,
-1.2535697221755981,
-0.09839032590389252,
0.9702214598655701,
-0.1984444409608841,
-0.24444279074668884,
-0.24436914920806885,
-0.28719255328178406,
0.5844996571540833,
-0.3949928879737854,
0.6681325435638428,
0.5905473232269287,
0.21129411458969116,
-0.2663562297821045,
-0.3728174865245819,
0.45180457830429077,
0.45184868574142456,
-0.3286471664905548,
-0.29715490341186523,
-0.06912491470575333,
0.44456785917282104,
0.11850868165493011,
0.5930184125900269,
-0.10723090171813965,
0.29500865936279297,
-0.0714871883392334,
0.29015547037124634,
-0.2255191057920456,
-0.01907571405172348,
-0.5476986765861511,
0.0312171783298254,
-0.12759754061698914,
-0.5452388525009155
] |
openchat/openchat_v3.2
|
openchat
| 2023-11-29T08:16:32Z | 8,116 | 40 |
transformers
|
[
"transformers",
"pytorch",
"llama",
"text-generation",
"license:llama2",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-07-30T10:12:00Z |
---
license: llama2
---
# OpenChat: Advancing Open-source Language Models with Imperfect Data</h1>
<div align="center">
<img src="https://raw.githubusercontent.com/imoneoi/openchat/master/assets/logo_new.png" style="width: 65%">
</div>
[OpenChat](https://github.com/imoneoi/openchat) is a series of open-source language models based on supervised fine-tuning (SFT). We leverage the ~80k ShareGPT conversations with a conditioning strategy and weighted loss to achieve remarkable performance despite our simple methods. Our final vision is to develop a high-performance, open-source, and commercially available large language model, and we are continuously making progress.
**🔥 Rank #1 of 13B open-source models | 89.5% win-rate on [AlpacaEval](https://tatsu-lab.github.io/alpaca_eval/) | 7.01 score on [MT-bench](https://chat.lmsys.org/?leaderboard)**
**💲 FREE for commercial use under [Llama 2 Community License](https://ai.meta.com/resources/models-and-libraries/llama-downloads/)**
**🕒 Super efficient padding-free finetuning for applications, only 10 hours on 8xA100 80G**
## <a id="models"></a> Usage
To use these models, we highly recommend installing the OpenChat package by following the [installation guide](https://github.com/imoneoi/openchat/#installation) and using the OpenChat OpenAI-compatible API server by running the serving command from the table below. The server is optimized for high-throughput deployment using [vLLM](https://github.com/vllm-project/vllm) and can run on a GPU with at least 48GB RAM or two consumer GPUs with tensor parallelism. To enable tensor parallelism, append `--tensor-parallel-size 2` to the serving command.
When started, the server listens at `localhost:18888` for requests and is compatible with the [OpenAI ChatCompletion API specifications](https://platform.openai.com/docs/api-reference/chat). See the example request below for reference. Additionally, you can access the [OpenChat Web UI](#web-ui) for a user-friendly experience.
To deploy the server as an online service, use `--api-keys sk-KEY1 sk-KEY2 ...` to specify allowed API keys and `--disable-log-requests --disable-log-stats --log-file openchat.log` for logging only to a file. We recommend using a [HTTPS gateway](https://fastapi.tiangolo.com/es/deployment/concepts/#security-https) in front of the server for security purposes.
*Note:* If IPv6 address errors occur, which is a [vLLM issue](https://github.com/vllm-project/vllm/issues/570), please run `export NCCL_IGNORE_DISABLED_P2P=1` before starting the server.
<details>
<summary>Example request (click to expand)</summary>
```bash
curl http://localhost:18888/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "openchat_v3.2",
"messages": [{"role": "user", "content": "You are a large language model named OpenChat. Write a poem to describe yourself"}]
}'
```
</details>
| Model | Size | Context | Weights | Serving |
|--------------|------|---------|--------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| OpenChat 3.2 | 13B | 4096 | [Huggingface](https://huggingface.co/openchat/openchat_v3.2) | `python -m ochat.serving.openai_api_server --model-type openchat_v3.2 --model openchat/openchat_v3.2 --engine-use-ray --worker-use-ray --max-num-batched-tokens 5120` |
| OpenChat 3.1 | 13B | 4096 | [Huggingface](https://huggingface.co/openchat/openchat_v3.1) | `python -m ochat.serving.openai_api_server --model-type openchat_v3.1_llama2 --model openchat/openchat_v3.1 --engine-use-ray --worker-use-ray --max-num-batched-tokens 5120` |
For inference with Huggingface Transformers (slow and not recommended), follow the conversation template provided below:
<details>
<summary>Conversation templates (click to expand)</summary>
V3.2
```python
# Single-turn V3.2
tokenize("GPT4 User: Hello<|end_of_turn|>GPT4 Assistant:")
# Result: [1, 402, 7982, 29946, 4911, 29901, 15043, 32000, 402, 7982, 29946, 4007, 22137, 29901]
# Multi-turn V3.2
tokenize("GPT4 User: Hello<|end_of_turn|>GPT4 Assistant: Hi<|end_of_turn|>GPT4 User: How are you today?<|end_of_turn|>GPT4 Assistant:")
# Result: [1, 402, 7982, 29946, 4911, 29901, 15043, 32000, 402, 7982, 29946, 4007, 22137, 29901, 6324, 32000, 402, 7982, 29946, 4911, 29901, 1128, 526, 366, 9826, 29973, 32000, 402, 7982, 29946, 4007, 22137, 29901]
```
V3.1
```python
# Single-turn V3.1
tokenize("Assistant is GPT4<|end_of_turn|>User: Hello<|end_of_turn|>Assistant:")
# Result: [1, 4007, 22137, 338, 402, 7982, 29946, 32000, 4911, 29901, 15043, 32000, 4007, 22137, 29901]
# Multi-turn V3.1
tokenize("Assistant is GPT4<|end_of_turn|>User: Hello<|end_of_turn|>Assistant: Hi<|end_of_turn|>User: How are you today?<|end_of_turn|>Assistant:")
# Result: [1, 4007, 22137, 338, 402, 7982, 29946, 32000, 4911, 29901, 15043, 32000, 4007, 22137, 29901, 6324, 32000, 4911, 29901, 1128, 526, 366, 9826, 29973, 32000, 4007, 22137, 29901]
```
</details>
## <a id="benchmarks"></a> Benchmarks
We have evaluated our models using the two most popular evaluation benchmarks **, including AlpacaEval and MT-bench. Here we list the top models with our released versions, sorted by model size in descending order. The full version can be found on the [MT-bench](https://chat.lmsys.org/?leaderboard) and [AlpacaEval](https://tatsu-lab.github.io/alpaca_eval/) leaderboards.
To ensure consistency, we used the same routine as ChatGPT / GPT-4 to run these benchmarks. We started the OpenAI API-compatible server and set the `openai.api_base` to `http://localhost:18888/v1` in the benchmark program.
| **Model** | **Size** | **Context** | **💲Free** | **AlpacaEval (win rate %)** | **MT-bench (win rate adjusted %)** | **MT-bench (score)** |
|------------------|----------|-------------|------------|-----------------------------|------------------------------------|----------------------|
| | | | | **v.s. text-davinci-003** | **v.s. ChatGPT** | |
| GPT-4 | 1.8T* | 8K | ❌ | 95.3 | 82.5 | 8.99 |
| ChatGPT | 175B* | 4K | ❌ | 89.4 | 50.0 | 7.94 |
| Llama-2-70B-Chat | 70B | 4K | ✅ | 92.7 | | 6.86 |
| **OpenChat 3.2** | **13B** | **4K** | ✅ | **89.1** | **51.6** | **7.01** |
| **OpenChat 3.1** | **13B** | **4K** | ✅ | **89.5** | **50.0** | **6.65** |
| Llama-2-13B-Chat | 13B | 4K | ✅ | 81.0 | | 6.65 |
| Vicuna 1.3 | 13B | 2K | ❌ | 82.1 | 37.5 | 6.00 |
*: Estimated model size
**: The benchmark metrics represent a quantified measure of a subset of the model's capabilities. A win-rate greater than 50% does not necessarily indicate that the model is better than ChatGPT in all scenarios or for all use cases. It is essential to consider the specific tasks or applications for which the model was evaluated and compare the results accordingly.
## Limitations
**Foundation Model Limitations**
Despite its advanced capabilities, OpenChat is still bound by the limitations inherent in its foundation models. These limitations may impact the model's performance in areas such as:
- Complex reasoning
- Mathematical and arithmetic tasks
- Programming and coding challenges
**Hallucination of Non-existent Information**
OpenChat may sometimes generate information that does not exist or is not accurate, also known as "hallucination". Users should be aware of this possibility and verify any critical information obtained from the model.
## License
Our OpenChat V3 models are licensed under the [Llama 2 Community License](https://ai.meta.com/resources/models-and-libraries/llama-downloads/).
```
@article{wang2023openchat,
title={OpenChat: Advancing Open-source Language Models with Mixed-Quality Data},
author={Wang, Guan and Cheng, Sijie and Zhan, Xianyuan and Li, Xiangang and Song, Sen and Liu, Yang},
journal={arXiv preprint arXiv:2309.11235},
year={2023}
}
```
|
[
-0.6322044730186462,
-0.8838617205619812,
0.31619611382484436,
0.4387264549732208,
-0.20652587711811066,
-0.14860019087791443,
-0.28355568647384644,
-0.5304557085037231,
0.32078561186790466,
0.3703356981277466,
-0.5853314399719238,
-0.4406087100505829,
-0.4485829174518585,
-0.2683420777320862,
0.024266978725790977,
1.010032296180725,
-0.05078955739736557,
-0.17248912155628204,
0.07127148658037186,
-0.46087440848350525,
-0.5698587894439697,
-0.49093499779701233,
-0.7623605132102966,
-0.2997625470161438,
0.18800640106201172,
0.29628029465675354,
0.7414708733558655,
0.35931140184402466,
0.585537314414978,
0.3706611394882202,
-0.11413566768169403,
0.28109613060951233,
-0.6238257884979248,
-0.11065515130758286,
0.27990198135375977,
-0.5252116918563843,
-0.8358616828918457,
0.12522141635417938,
0.5604915618896484,
0.3237122595310211,
-0.18532420694828033,
0.07466381043195724,
0.10831966251134872,
0.5546301603317261,
-0.5192390084266663,
0.35183146595954895,
-0.47053200006484985,
-0.02246916852891445,
-0.32433316111564636,
-0.23051421344280243,
-0.18882465362548828,
-0.573993980884552,
0.03883983567357063,
-0.6569681763648987,
-0.1921105682849884,
0.008302438072860241,
1.2630980014801025,
-0.012278595007956028,
-0.15062092244625092,
-0.16785375773906708,
-0.7123684287071228,
0.649628758430481,
-0.9593523144721985,
0.31507983803749084,
0.430582731962204,
0.43833544850349426,
-0.30265381932258606,
-0.5321254134178162,
-0.6153377294540405,
-0.18435557186603546,
-0.1536685675382614,
0.24363793432712555,
-0.3356477916240692,
-0.05585305020213127,
0.20061743259429932,
0.5931559205055237,
-0.7297436594963074,
0.16942410171031952,
-0.5206496119499207,
-0.14777466654777527,
0.5252060294151306,
0.277109295129776,
0.4171282649040222,
-0.009735183790326118,
-0.3550861179828644,
-0.25395795702934265,
-0.4435265064239502,
0.3266712427139282,
0.3387077748775482,
0.37986624240875244,
-0.6656355857849121,
0.6805345416069031,
-0.34843361377716064,
0.37662264704704285,
-0.11801406741142273,
-0.10388735681772232,
0.5754832625389099,
-0.5188040733337402,
-0.3004566431045532,
-0.22653943300247192,
1.3542112112045288,
0.5357991456985474,
0.1984887421131134,
0.11015469580888748,
0.04268687590956688,
0.07886823266744614,
-0.007731052115559578,
-0.8833804726600647,
-0.03314169868826866,
0.4604954719543457,
-0.512877881526947,
-0.2980205714702606,
-0.013814076781272888,
-0.8190749287605286,
-0.10220098495483398,
0.08152595162391663,
0.31213828921318054,
-0.7603207230567932,
-0.5364764332771301,
-0.00749016972258687,
-0.07164350897073746,
0.47439566254615784,
0.3495098054409027,
-0.7669934630393982,
0.5083588361740112,
0.6188077926635742,
1.2976691722869873,
-0.025894520804286003,
-0.3659897446632385,
-0.24247345328330994,
-0.30010515451431274,
-0.35557815432548523,
0.46713051199913025,
-0.15228945016860962,
-0.17459432780742645,
-0.23271934688091278,
-0.06912440806627274,
-0.16655226051807404,
-0.30295610427856445,
0.5519037246704102,
-0.2027408480644226,
0.34807130694389343,
-0.19957414269447327,
-0.32713279128074646,
-0.004831894766539335,
0.28149205446243286,
-0.5727153420448303,
1.0059093236923218,
-0.08624566346406937,
-0.7503926157951355,
0.014054655097424984,
-0.9995009303092957,
-0.22063036262989044,
-0.11342523247003555,
-0.007071733009070158,
-0.4665333032608032,
-0.11304046958684921,
0.390389621257782,
0.3756789565086365,
-0.4012293517589569,
-0.20358151197433472,
-0.3895702362060547,
-0.34387707710266113,
0.24576152861118317,
-0.3486096262931824,
0.9845989346504211,
0.3856547176837921,
-0.3956875503063202,
0.21600250899791718,
-0.6112317442893982,
0.33312028646469116,
0.5407271385192871,
-0.21214748919010162,
-0.09628510475158691,
-0.12377576529979706,
-0.2156328558921814,
0.075714610517025,
0.2039335072040558,
-0.6224395036697388,
0.22517059743404388,
-0.5889312028884888,
0.6653847694396973,
0.6935445666313171,
-0.05629483237862587,
0.41344740986824036,
-0.5387647747993469,
0.2540895938873291,
0.1997048705816269,
0.4933570325374603,
-0.34380844235420227,
-0.8940649628639221,
-0.9266369938850403,
-0.37168169021606445,
0.16451682150363922,
0.6742923259735107,
-0.6279067993164062,
0.5739323496818542,
-0.30652523040771484,
-0.8523690700531006,
-0.8827956914901733,
-0.15245167911052704,
0.47307533025741577,
0.124088816344738,
0.29996615648269653,
-0.4387306869029999,
-0.3851619362831116,
-0.8224635720252991,
-0.03747928887605667,
-0.3908271789550781,
0.13783958554267883,
0.5513599514961243,
0.4897622764110565,
-0.06062531843781471,
0.8705780506134033,
-0.6219798922538757,
-0.3379754424095154,
-0.1366943120956421,
-0.05830340087413788,
0.33013778924942017,
0.5721068382263184,
0.816092312335968,
-0.684353768825531,
-0.6075369119644165,
0.14946947991847992,
-0.8301757574081421,
0.16480372846126556,
0.15854375064373016,
-0.3428632915019989,
0.5115765929222107,
0.1046825498342514,
-0.8983202576637268,
0.6232436895370483,
0.5978204607963562,
-0.38096046447753906,
0.5284530520439148,
-0.21367138624191284,
0.33033785223960876,
-0.9078300595283508,
0.11729958653450012,
-0.07840406149625778,
-0.059922121465206146,
-0.642379641532898,
0.10114660859107971,
-0.03460809960961342,
-0.04426654428243637,
-0.394520103931427,
0.7146547436714172,
-0.3789346218109131,
0.017891623079776764,
0.09812168031930923,
0.1681513488292694,
-0.22462664544582367,
0.8356748819351196,
-0.20973601937294006,
0.6897782683372498,
0.4926919937133789,
-0.49860328435897827,
0.3793553113937378,
0.1859959214925766,
-0.32279083132743835,
0.47714436054229736,
-0.8901057839393616,
0.14994415640830994,
0.16126865148544312,
0.29571884870529175,
-1.2326722145080566,
-0.13752421736717224,
0.6177127361297607,
-0.728516161441803,
0.07818790525197983,
-0.1474475860595703,
-0.42335110902786255,
-0.5070174336433411,
-0.42490577697753906,
0.23952241241931915,
0.7290963530540466,
-0.38279786705970764,
0.4157816767692566,
0.28519025444984436,
0.01742372289299965,
-0.4775327742099762,
-0.6729151606559753,
-0.062458403408527374,
-0.17037896811962128,
-0.8809322714805603,
0.2292754352092743,
-0.17795386910438538,
-0.14595037698745728,
-0.060166049748659134,
0.21517297625541687,
-0.02956133894622326,
-0.15805141627788544,
0.4264073669910431,
0.26388782262802124,
-0.291266530752182,
-0.23464618623256683,
-0.30322960019111633,
-0.16444921493530273,
-0.20294588804244995,
-0.014809021726250648,
0.9148529767990112,
-0.5098401308059692,
-0.4687669277191162,
-0.6274538040161133,
0.13987545669078827,
0.897542417049408,
-0.497934490442276,
1.0593066215515137,
0.6292511820793152,
-0.21844330430030823,
0.31266316771507263,
-0.6603443622589111,
-0.1253652125597,
-0.4785715639591217,
0.24358823895454407,
-0.48629030585289,
-0.8176480531692505,
0.8278970122337341,
0.4080379903316498,
0.43558505177497864,
0.5360620617866516,
0.6374117732048035,
0.05315761640667915,
1.0565330982208252,
0.34589967131614685,
-0.200783833861351,
0.4090481102466583,
-0.38845211267471313,
0.22769948840141296,
-0.8052043318748474,
-0.2680966556072235,
-0.5957232117652893,
-0.20999783277511597,
-0.9090613126754761,
-0.42370113730430603,
0.34408336877822876,
-0.01035258173942566,
-0.4204104542732239,
0.3659658133983612,
-0.6267709136009216,
0.16701623797416687,
0.7221234440803528,
0.1151498556137085,
0.11397513747215271,
-0.19753436744213104,
-0.32834911346435547,
-0.08169350773096085,
-0.6197835206985474,
-0.4770266115665436,
1.0128506422042847,
0.5412759184837341,
0.5709254145622253,
0.23553773760795593,
0.636243462562561,
-0.08743080496788025,
0.22051705420017242,
-0.49727094173431396,
0.6105256080627441,
0.1909784972667694,
-0.6052790284156799,
-0.3547796607017517,
-0.6709513664245605,
-1.0288506746292114,
0.4896489083766937,
-0.10694481432437897,
-0.9735108613967896,
-0.07428466528654099,
0.010662357322871685,
-0.14928537607192993,
0.5264618396759033,
-0.7166575193405151,
1.0122966766357422,
-0.3025430738925934,
-0.1696922928094864,
0.013540309853851795,
-0.6200777888298035,
0.6091246008872986,
0.3180558681488037,
0.3827117681503296,
-0.1837160289287567,
0.006186687387526035,
0.6392952799797058,
-0.8455011248588562,
0.834457278251648,
-0.27685850858688354,
0.19066019356250763,
0.4363713264465332,
0.042013101279735565,
0.5530164241790771,
-0.23653562366962433,
0.05802413448691368,
0.26471152901649475,
0.10395993292331696,
-0.48463937640190125,
-0.43000295758247375,
0.952775776386261,
-1.1815099716186523,
-0.2745063900947571,
-0.419312983751297,
-0.2318837195634842,
0.016037918627262115,
0.19104774296283722,
0.3433835506439209,
0.2970111072063446,
-0.2881283164024353,
0.2269497811794281,
0.42076581716537476,
-0.5295202136039734,
0.49419283866882324,
0.4346068203449249,
-0.4123387932777405,
-0.6107338070869446,
0.8527377247810364,
0.2152293175458908,
0.443195104598999,
0.1865544319152832,
0.12796129286289215,
-0.2338884174823761,
-0.40007874369621277,
-0.46707144379615784,
0.4081557095050812,
-0.34746938943862915,
-0.09212611615657806,
-0.7731441259384155,
-0.4367930591106415,
-0.5071970224380493,
0.23500916361808777,
-0.6974495649337769,
-0.35949015617370605,
-0.1512799710035324,
0.12441251426935196,
0.5672479867935181,
0.6092304587364197,
0.075759656727314,
0.3681851029396057,
-0.6795192360877991,
0.20998521149158478,
0.17010538280010223,
0.7240834832191467,
0.23297493159770966,
-0.4918607473373413,
-0.01988951861858368,
0.4423465430736542,
-0.5114321708679199,
-0.7611423134803772,
0.3219465911388397,
0.12051379680633545,
0.624881386756897,
0.35387736558914185,
0.16593894362449646,
0.7769368290901184,
-0.3765900433063507,
0.9189289808273315,
0.2894400954246521,
-0.7243334054946899,
0.6403374671936035,
-0.3880065083503723,
0.2752534747123718,
0.303520143032074,
0.4509064853191376,
-0.661079466342926,
-0.4417498707771301,
-0.7719746828079224,
-0.793689489364624,
1.0071558952331543,
0.6472208499908447,
0.10712505131959915,
0.028846945613622665,
0.3003670573234558,
-0.21306142210960388,
0.08514750748872757,
-0.8070472478866577,
-0.4202902019023895,
-0.3194010555744171,
-0.05687575414776802,
-0.03961716219782829,
-0.033840399235486984,
0.03165656328201294,
-0.2422654777765274,
0.6255965232849121,
0.08093957602977753,
0.6800618171691895,
0.05725690722465515,
0.17953045666217804,
-0.15168966352939606,
0.14197565615177155,
0.864513099193573,
0.5898212790489197,
-0.2927429974079132,
-0.2595840394496918,
0.21526028215885162,
-0.459800124168396,
-0.09715446829795837,
0.03006592206656933,
-0.04845740646123886,
-0.17045192420482635,
0.3434344232082367,
1.1334245204925537,
0.10539881139993668,
-0.48499011993408203,
0.6218401193618774,
-0.32866308093070984,
-0.14072442054748535,
-0.26073548197746277,
0.1787024736404419,
0.31564953923225403,
0.4000173509120941,
0.30303600430488586,
-0.11094755679368973,
-0.28057941794395447,
-0.7217097282409668,
-0.20596778392791748,
0.5720703601837158,
-0.4699094593524933,
-0.37580642104148865,
0.6583976745605469,
0.09389656037092209,
-0.49375438690185547,
0.70750492811203,
-0.07775109261274338,
-0.6253669857978821,
0.602885365486145,
0.2700720727443695,
0.7875478863716125,
-0.36066970229148865,
0.09090836346149445,
0.5616478323936462,
0.46805596351623535,
-0.11130589991807938,
0.3074047267436981,
0.19817565381526947,
-0.6399858593940735,
-0.19723230600357056,
-0.6355889439582825,
-0.38266289234161377,
0.2934948801994324,
-0.47349607944488525,
0.28746137022972107,
-0.4633996784687042,
-0.317894846200943,
0.09416665136814117,
0.132765993475914,
-0.6573059558868408,
-0.13378314673900604,
-0.1365378499031067,
0.8523699641227722,
-0.5972963571548462,
0.6451775431632996,
0.5592808127403259,
-0.5937626957893372,
-0.7207923531532288,
-0.3832748830318451,
0.058620158582925797,
-0.8321399092674255,
0.1730673909187317,
0.17778280377388,
0.19948825240135193,
-0.200791135430336,
-0.6303936839103699,
-0.8152851462364197,
1.1779217720031738,
0.1379440426826477,
-0.3578864634037018,
0.0748295783996582,
0.26521262526512146,
0.6218489408493042,
-0.25560855865478516,
0.7670687437057495,
0.3981630504131317,
0.47490251064300537,
0.23083092272281647,
-1.517822027206421,
0.22395607829093933,
-0.48140138387680054,
-0.012209806591272354,
0.2834372818470001,
-1.0926681756973267,
1.1482752561569214,
-0.16504386067390442,
-0.07202963531017303,
0.2511216402053833,
0.551096498966217,
0.3767016530036926,
0.23463279008865356,
0.3767821788787842,
0.6999741792678833,
0.5095173716545105,
-0.441974014043808,
1.1223522424697876,
-0.1965179145336151,
0.3380975127220154,
0.8609460592269897,
0.05008227750658989,
0.8972454071044922,
0.19131366908550262,
-0.45380669832229614,
0.27097198367118835,
0.605109453201294,
0.22959327697753906,
0.41837096214294434,
-0.1198943629860878,
0.03726230934262276,
0.07022211700677872,
0.21637435257434845,
-0.5695394277572632,
0.4820224940776825,
0.31146565079689026,
-0.1816588044166565,
-0.0861177146434784,
0.008948029950261116,
0.3142347037792206,
-0.261892706155777,
-0.13204911351203918,
0.8854598999023438,
0.022456342354416847,
-0.8336254358291626,
0.9142019152641296,
0.16630776226520538,
0.8481289744377136,
-0.7650045156478882,
0.07951129972934723,
-0.3363943099975586,
0.40472543239593506,
-0.1518150120973587,
-0.7821378707885742,
0.172642782330513,
-0.1849561184644699,
0.21524035930633545,
0.031033247709274292,
0.5166761875152588,
-0.2509630620479584,
-0.05516676977276802,
0.42982909083366394,
0.5224314332008362,
0.41466087102890015,
-0.1863533854484558,
-0.7901790142059326,
0.4781167507171631,
0.1536841243505478,
-0.4813302755355835,
0.47454914450645447,
0.569648265838623,
-0.07151540368795395,
0.7604775428771973,
0.6730535626411438,
0.03220555931329727,
0.1031666025519371,
-0.19563506543636322,
1.092932105064392,
-0.6374916434288025,
-0.5742383003234863,
-0.9796180129051208,
0.5691162943840027,
-0.16898185014724731,
-0.5767294764518738,
0.7518897652626038,
0.579578697681427,
0.6653339266777039,
0.21343722939491272,
0.6328100562095642,
-0.37816524505615234,
0.4784890413284302,
-0.28362777829170227,
0.8270196318626404,
-0.5882627964019775,
0.11365720629692078,
-0.37150025367736816,
-0.8553816080093384,
0.03604089468717575,
0.6027699708938599,
-0.33123672008514404,
0.26101154088974,
0.3614656627178192,
0.7884088158607483,
-0.19384023547172546,
0.24103593826293945,
0.07630375027656555,
0.39499810338020325,
0.5686042308807373,
0.7813940048217773,
0.7519100904464722,
-0.7091731429100037,
0.7925122976303101,
-0.4042895436286926,
-0.5421183109283447,
-0.3646394908428192,
-0.5768338441848755,
-0.9924098253250122,
-0.7437827587127686,
-0.20194371044635773,
-0.35976293683052063,
0.06377055495977402,
0.9087406396865845,
0.7545075416564941,
-0.5908288955688477,
-0.479905903339386,
0.15106841921806335,
0.042789772152900696,
-0.27497878670692444,
-0.3065100312232971,
0.24354834854602814,
-0.25005272030830383,
-0.7864494919776917,
0.0943625420331955,
0.045126475393772125,
0.22152991592884064,
-0.2848702073097229,
-0.37677472829818726,
-0.41953927278518677,
0.13443486392498016,
0.501281201839447,
0.5042427182197571,
-0.7227112650871277,
-0.24395400285720825,
-0.07149121165275574,
-0.31216779351234436,
0.29854875802993774,
0.3762129843235016,
-0.5028703212738037,
0.3814127445220947,
0.5080355405807495,
0.08247528225183487,
0.8257766962051392,
-0.06361066550016403,
0.3715974986553192,
-0.5420969128608704,
0.2882556915283203,
0.07343809306621552,
0.23734694719314575,
0.27018076181411743,
-0.08911022543907166,
0.7142964601516724,
0.1708579957485199,
-0.5920009613037109,
-0.9767408967018127,
-0.19542750716209412,
-0.9845695495605469,
-0.1517098844051361,
0.9848360419273376,
-0.27131831645965576,
-0.34666597843170166,
0.12041263282299042,
-0.3352000415325165,
0.26144644618034363,
-0.5553334355354309,
0.4143632650375366,
0.6532176733016968,
-0.2416381984949112,
-0.229633629322052,
-0.7950618267059326,
0.36452823877334595,
0.14042821526527405,
-0.8915141820907593,
0.05024004727602005,
0.25752782821655273,
0.2727896273136139,
0.34502431750297546,
1.014564037322998,
-0.2597503960132599,
0.11644017696380615,
-0.06184223294258118,
0.1606663167476654,
-0.1356513649225235,
-0.08250436931848526,
0.01410666760057211,
0.08061861246824265,
-0.08580700308084488,
-0.5006042718887329
] |
digiplay/AM-mix1
|
digiplay
| 2023-11-02T20:18:50Z | 8,109 | 2 |
diffusers
|
[
"diffusers",
"stable-diffusion",
"stable-diffusion-diffusers",
"text-to-image",
"license:other",
"endpoints_compatible",
"has_space",
"diffusers:StableDiffusionPipeline",
"region:us"
] |
text-to-image
| 2023-11-02T18:51:41Z |
---
license: other
tags:
- stable-diffusion
- stable-diffusion-diffusers
- text-to-image
- diffusers
inference: true
---
in test...
Sample image I made generated by huggingface's API :

|
[
-0.7384084463119507,
-0.9932066202163696,
0.37873271107673645,
0.30790385603904724,
-0.45175719261169434,
-0.060678668320178986,
0.20849831402301788,
-0.7009058594703674,
1.0581499338150024,
0.4750758409500122,
-1.1574649810791016,
-0.6026873588562012,
-0.5003706812858582,
0.1272415667772293,
-0.3102690279483795,
1.283018708229065,
-0.12796518206596375,
-0.2708658277988434,
-0.10169801115989685,
-0.3516588509082794,
-0.197027325630188,
0.04322916641831398,
-0.5449973940849304,
-0.07331778854131699,
0.38626402616500854,
0.32304638624191284,
0.8465464115142822,
0.5276790857315063,
0.45314618945121765,
0.3075791001319885,
0.029761556535959244,
-0.27896732091903687,
-0.2508578598499298,
-0.19020812213420868,
0.24202023446559906,
-0.42051050066947937,
-0.6582838296890259,
0.44749191403388977,
0.8922486305236816,
0.46510058641433716,
-0.01681338995695114,
0.5571807622909546,
0.08484867215156555,
0.4186854064464569,
-0.4862425923347473,
-0.16032977402210236,
-0.14189037680625916,
0.11890655010938644,
-0.3223050832748413,
0.24947741627693176,
0.2135765105485916,
-0.883521556854248,
-0.02862011454999447,
-0.9446597695350647,
0.1791817992925644,
0.47639888525009155,
1.4875690937042236,
-0.017111413180828094,
-0.3663772642612457,
-0.28883248567581177,
-0.16034428775310516,
0.5772144198417664,
-0.28007492423057556,
0.16489973664283752,
0.4098780155181885,
0.7603902220726013,
-0.5227921605110168,
-0.6994220614433289,
-0.8213632702827454,
0.2006688266992569,
0.00027461754507385194,
0.01980607584118843,
-0.17580059170722961,
-0.20429633557796478,
0.4264397919178009,
0.6974045038223267,
-0.7023225426673889,
-0.4363405108451843,
-0.19378884136676788,
-0.3486519455909729,
0.9517748951911926,
-0.1493663340806961,
0.9518550038337708,
-0.26588204503059387,
-0.49703556299209595,
-0.30339983105659485,
-0.3418044149875641,
0.44688352942466736,
0.4103914499282837,
0.25511908531188965,
-0.8849275708198547,
0.7822480797767639,
0.12222829461097717,
0.2068338245153427,
0.11644454300403595,
0.3780396282672882,
0.7543339729309082,
-0.09212438017129898,
-0.4650169312953949,
-0.3380996584892273,
1.0790928602218628,
0.8034324049949646,
0.12135671824216843,
-0.06114755570888519,
-0.23507703840732574,
0.31662517786026,
-0.053274352103471756,
-1.1326706409454346,
-0.2127101719379425,
0.4992360770702362,
-0.7800174355506897,
-0.4871354401111603,
0.09577571600675583,
-1.0917367935180664,
-0.1294722557067871,
0.34073561429977417,
-0.13439281284809113,
-0.4709888994693756,
-1.0263310670852661,
-0.05698598921298981,
-0.42176225781440735,
0.5139144062995911,
0.14184141159057617,
-0.363839328289032,
0.394409716129303,
0.6977015733718872,
0.6037551760673523,
0.2426932454109192,
-0.19460980594158173,
-0.639752209186554,
-0.710001528263092,
-0.3310818374156952,
1.2552629709243774,
-0.06047657132148743,
-0.7326377034187317,
0.4429236948490143,
0.2992401719093323,
0.2762742340564728,
-0.7409629225730896,
0.6786379814147949,
-0.2718304693698883,
-0.041466124355793,
-0.6794599890708923,
-0.4993426203727722,
-0.11039437353610992,
0.29783153533935547,
-0.6626097559928894,
1.1579269170761108,
0.8359068632125854,
-0.6016011834144592,
0.8681961894035339,
-0.7533615231513977,
-0.18303410708904266,
0.19087468087673187,
-0.3605617582798004,
-0.68562912940979,
0.10905176401138306,
-0.3931083679199219,
0.28414225578308105,
-0.040252719074487686,
-0.6039604544639587,
-1.0284998416900635,
-0.36507195234298706,
0.8534689545631409,
0.6364281177520752,
0.9669991731643677,
0.22446611523628235,
-0.43780168890953064,
-0.08919548988342285,
-0.9740078449249268,
0.0998549610376358,
0.6991689205169678,
0.17794086039066315,
-0.537126898765564,
-0.5979702472686768,
0.5357475876808167,
0.3979736864566803,
0.09951288253068924,
-1.2918143272399902,
0.41088220477104187,
-0.1123485192656517,
-0.04937628656625748,
0.8389011025428772,
0.19489872455596924,
0.5445908904075623,
-0.3821070194244385,
0.9849823117256165,
-0.3148060441017151,
0.3562752306461334,
0.15299277007579803,
-0.530626654624939,
-0.39200636744499207,
-0.5904332995414734,
0.178401380777359,
0.11117686331272125,
-0.44853219389915466,
0.41974079608917236,
0.18909107148647308,
-0.6808264851570129,
-0.6993783116340637,
0.20425841212272644,
0.7721841931343079,
0.350650429725647,
-0.006406067404896021,
-0.6241127252578735,
-0.5442947745323181,
-0.8581329584121704,
0.09377454221248627,
-0.2793208062648773,
-0.40289801359176636,
0.5620519518852234,
0.8077945709228516,
-0.5224167704582214,
0.8483213782310486,
-0.7868586182594299,
-0.04824366793036461,
0.1683623492717743,
-0.08904927968978882,
0.3051809072494507,
0.9140973091125488,
1.4242392778396606,
-0.9472692012786865,
-0.29098206758499146,
-0.48676663637161255,
-0.7681093215942383,
-0.4740285873413086,
0.10373590886592865,
-0.9767906665802002,
-0.1388022005558014,
-0.019725853577256203,
-0.9838314056396484,
0.5803786516189575,
0.8267707228660583,
-1.1454349756240845,
1.3182638883590698,
0.09196963161230087,
0.42717811465263367,
-1.4386773109436035,
0.20263506472110748,
0.41294336318969727,
-0.4725116491317749,
-0.003970454912632704,
0.6744334697723389,
0.006830921396613121,
-0.43092596530914307,
-0.5799369812011719,
0.7244459986686707,
-0.7016235589981079,
-0.09200765937566757,
-0.19277407228946686,
0.13214179873466492,
0.23285692930221558,
0.06737258285284042,
-0.2413412183523178,
0.39108017086982727,
0.8439433574676514,
-0.22638307511806488,
0.4993048310279846,
0.8280569911003113,
-0.16363264620304108,
1.1345055103302002,
-0.9269563555717468,
0.18882253766059875,
0.26350143551826477,
0.3958333730697632,
-1.1745524406433105,
-0.7280452251434326,
0.7690092325210571,
-0.5911593437194824,
0.05883736163377762,
-0.21200695633888245,
-0.6641708612442017,
-0.615193784236908,
-0.6538787484169006,
0.520653486251831,
1.3442414999008179,
-0.6547350287437439,
0.7560740113258362,
0.36385032534599304,
0.23098289966583252,
-0.2046710103750229,
-0.9058451652526855,
-0.3928154408931732,
-0.26861050724983215,
-0.5145545601844788,
0.3537638485431671,
-0.20245608687400818,
-0.32651224732398987,
0.19527605175971985,
0.030493341386318207,
-0.19075214862823486,
-0.3648001551628113,
1.141755223274231,
0.6205630302429199,
-0.3921649754047394,
-0.3864898681640625,
0.12777350842952728,
-0.15622876584529877,
0.4013739228248596,
0.21853624284267426,
0.4790000021457672,
-0.31283116340637207,
-0.6780667304992676,
-0.9628071784973145,
0.4093675911426544,
0.3012329638004303,
0.21887922286987305,
0.048584192991256714,
0.4746624231338501,
-0.4518803358078003,
-0.23891177773475647,
-0.4618930518627167,
-0.2935464084148407,
-0.5166460871696472,
-0.4589548110961914,
-0.4568287432193756,
-0.8159249424934387,
1.0610206127166748,
-0.2986414432525635,
0.11923500150442123,
0.2549298107624054,
0.12564043700695038,
-0.3439732789993286,
0.9552129507064819,
0.4246133267879486,
-0.02518787607550621,
0.3403908312320709,
-0.37760046124458313,
-0.4994010329246521,
-0.9081749320030212,
-0.14444757997989655,
-0.3378485441207886,
-0.6725302934646606,
-1.1503305435180664,
-0.2804454565048218,
-0.0008649230003356934,
0.10324276238679886,
-0.28270667791366577,
0.6761989593505859,
-0.6505744457244873,
0.22728168964385986,
0.595591127872467,
0.43140098452568054,
-0.28287193179130554,
-0.19919373095035553,
-0.19664667546749115,
-0.17455148696899414,
0.10996194928884506,
-0.17415806651115417,
0.7199698686599731,
0.37701746821403503,
0.5343058705329895,
-0.17683935165405273,
1.1534744501113892,
0.12237828224897385,
0.4338715076446533,
-0.4881649315357208,
0.8660776615142822,
0.3288951516151428,
-0.6762319803237915,
0.32778865098953247,
-0.2063162922859192,
-0.998585045337677,
-0.037234120070934296,
-0.6703581809997559,
-0.6550070643424988,
-0.03187279775738716,
0.3324696719646454,
-0.15100158751010895,
0.24539127945899963,
-0.6492670774459839,
0.8689792156219482,
0.09355088323354721,
-0.055953845381736755,
0.3409084677696228,
-0.46978437900543213,
0.25266674160957336,
0.22319860756397247,
0.16516783833503723,
-0.38871267437934875,
0.09844331443309784,
0.5214309692382812,
-0.8546550273895264,
0.8517438173294067,
-0.7685234546661377,
0.05895296111702919,
0.6222518086433411,
0.41408297419548035,
0.22204402089118958,
0.34606966376304626,
-0.020580166950821877,
0.20265641808509827,
-0.137227401137352,
-0.7934286594390869,
-0.7875877618789673,
0.506702721118927,
-0.5706186890602112,
0.18209786713123322,
-0.22576043009757996,
-0.2896216809749603,
0.11267298460006714,
0.19532278180122375,
0.3423393964767456,
0.22232688963413239,
-0.46823424100875854,
-0.1818591207265854,
0.33507564663887024,
-0.27495434880256653,
0.13665053248405457,
0.20717404782772064,
-0.6512695550918579,
-0.20698586106300354,
0.6509234309196472,
-0.30850696563720703,
-0.03733208775520325,
-0.263350248336792,
0.5453305244445801,
-0.5887772440910339,
-0.28137752413749695,
-0.7027263641357422,
0.4489106237888336,
-0.3207171857357025,
-0.20105406641960144,
-0.1351698786020279,
0.04982880502939224,
-0.6403742432594299,
-0.6393189430236816,
-0.5932919383049011,
-0.199412003159523,
-0.08627060055732727,
-0.25626543164253235,
0.707905650138855,
0.35045748949050903,
-0.3149956166744232,
0.4836675822734833,
-0.6429671049118042,
0.5506149530410767,
0.1619422435760498,
0.6280542016029358,
-0.7279077768325806,
-0.3219255208969116,
0.3727116882801056,
-0.014583498239517212,
-0.0763222724199295,
-0.5732190012931824,
0.23605239391326904,
0.06171729788184166,
0.21891632676124573,
0.4654581546783447,
0.12293504923582077,
0.6292338967323303,
-0.3914555311203003,
0.7623516917228699,
0.6267396211624146,
-0.7242311239242554,
0.9959087371826172,
-0.5738953351974487,
0.07068146020174026,
0.6416728496551514,
-0.030830809846520424,
-0.28887873888015747,
-0.7825930714607239,
-1.199422836303711,
-0.901973307132721,
0.05954073742032051,
0.3936365842819214,
0.268728643655777,
0.10900174081325531,
0.9499592781066895,
0.24436286091804504,
0.1319609433412552,
-0.5013750195503235,
-0.5049775242805481,
-0.3301319181919098,
-0.20537087321281433,
0.41974735260009766,
-0.1704220026731491,
-0.3102639615535736,
-0.2704797089099884,
0.30272620916366577,
-0.2612679600715637,
0.5066943168640137,
0.25596994161605835,
0.2951415777206421,
-0.33943086862564087,
-0.30775219202041626,
0.33280518651008606,
0.345645546913147,
-0.5559271574020386,
-0.23609356582164764,
-0.020408354699611664,
-0.36782580614089966,
-0.013494031503796577,
0.44301092624664307,
-0.1328471302986145,
0.3072409927845001,
0.33512622117996216,
0.7709091901779175,
0.24187128245830536,
-0.7590935230255127,
0.8352031111717224,
-0.40839672088623047,
-0.34918680787086487,
-0.6835296750068665,
0.20438829064369202,
-0.08307565003633499,
0.47691014409065247,
0.2026522010564804,
0.09605886042118073,
0.242384135723114,
-0.09332213550806046,
0.5356646776199341,
0.4777342975139618,
-0.26494741439819336,
-0.849547266960144,
0.8615072965621948,
-0.021993476897478104,
-0.21083875000476837,
0.719813346862793,
-0.5567230582237244,
-0.2606129050254822,
0.8272295594215393,
0.7982942461967468,
1.093896508216858,
-0.1380714774131775,
0.6368018984794617,
0.4028310477733612,
-0.027538344264030457,
0.4912242293357849,
1.1155513525009155,
-0.036636870354413986,
-0.9055761098861694,
-0.1905965507030487,
-0.8296269178390503,
-0.7071582674980164,
0.06551527231931686,
-1.0886965990066528,
0.2278367429971695,
-0.8249750733375549,
-0.29847586154937744,
-0.039299849420785904,
-0.16500820219516754,
-0.8981120586395264,
0.6102083921432495,
0.02213617041707039,
1.5799776315689087,
-1.1748558282852173,
0.3415520489215851,
1.1298545598983765,
-0.7315196990966797,
-1.211739420890808,
-0.006996409967541695,
0.5246608257293701,
-1.439059853553772,
0.40712761878967285,
0.32842758297920227,
0.03525558114051819,
-0.3145821988582611,
-0.978891909122467,
-0.3089691400527954,
0.8171464204788208,
0.2538106441497803,
-0.2753967344760895,
0.21983377635478973,
0.06272058933973312,
0.44605112075805664,
-0.41177964210510254,
0.3864137530326843,
0.24310576915740967,
0.46458151936531067,
0.06905348598957062,
-0.7015790343284607,
0.5827558636665344,
-0.9148625135421753,
0.2753418982028961,
0.07169084250926971,
-0.6877867579460144,
0.5940046310424805,
-0.1382683962583542,
-0.24039801955223083,
0.279308021068573,
0.8286808729171753,
0.7244926691055298,
0.40389224886894226,
1.1636629104614258,
0.7608850598335266,
0.395985871553421,
-0.37987804412841797,
1.6087874174118042,
0.10294411331415176,
0.3881817162036896,
0.8206707239151001,
-0.3674222230911255,
0.3963969647884369,
0.31984764337539673,
-0.08735440671443939,
0.7425996661186218,
1.1706994771957397,
-0.35102835297584534,
0.34357553720474243,
0.3280355930328369,
-0.2618909478187561,
0.20806743204593658,
-0.35077089071273804,
-0.4613589942455292,
0.5175919532775879,
-0.08514287322759628,
-0.20686538517475128,
0.06329905986785889,
0.2389506995677948,
0.13825587928295135,
0.23532411456108093,
-0.18330733478069305,
0.5672811269760132,
0.13445474207401276,
-0.13812485337257385,
0.5662041902542114,
-0.5653834342956543,
1.0527677536010742,
-0.4910948872566223,
-0.10746491700410843,
-0.2015368789434433,
-0.00665981275960803,
-0.3059901297092438,
-1.2453298568725586,
0.3500794470310211,
0.03085389733314514,
0.08792110532522202,
-0.3088509440422058,
1.1652694940567017,
-0.08503888547420502,
-0.6234139800071716,
0.6448329091072083,
0.21875475347042084,
0.5064589381217957,
-0.1876354068517685,
-1.1740673780441284,
0.4701676368713379,
-0.46298202872276306,
-0.546177089214325,
0.23479744791984558,
0.44396549463272095,
0.45812535285949707,
0.455413818359375,
0.7749226093292236,
0.5397747159004211,
-0.13597708940505981,
0.20851796865463257,
1.1763657331466675,
-0.7101832032203674,
-0.5677556991577148,
-0.6833989024162292,
0.8720144629478455,
-0.49225836992263794,
-0.7752997279167175,
0.7145751714706421,
0.72410649061203,
0.9032085537910461,
-0.3582848608493805,
0.896442174911499,
-0.5483837127685547,
0.7006558775901794,
-0.20643211901187897,
0.8973618745803833,
-0.904485821723938,
-1.074934959411621,
-0.7690731287002563,
-0.6974595189094543,
-0.11252240836620331,
0.49530819058418274,
0.31041377782821655,
0.09457262605428696,
0.5053689479827881,
0.8735504150390625,
-0.18193456530570984,
-0.0056475442834198475,
-0.17220176756381989,
-0.19095315039157867,
0.15955913066864014,
0.09355706721544266,
0.8789399862289429,
-0.7597322463989258,
0.15084607899188995,
-0.7618674039840698,
-0.9772118330001831,
-0.07033886015415192,
-0.750892162322998,
-0.7913080453872681,
-0.6935765147209167,
-0.5888456702232361,
-1.1589579582214355,
-0.29506245255470276,
0.9855391383171082,
0.9997305274009705,
-0.9527373313903809,
-0.06035133823752403,
-0.14736437797546387,
-0.05633930489420891,
-0.1898525506258011,
-0.34655439853668213,
0.5110052824020386,
0.36240100860595703,
-1.0959478616714478,
-0.17844687402248383,
-0.13133248686790466,
0.5834123492240906,
0.12954503297805786,
-0.0703650489449501,
0.2138117402791977,
-0.37556663155555725,
0.34254297614097595,
0.7186545729637146,
-0.21079310774803162,
-0.47614020109176636,
-0.028749145567417145,
-0.06511536985635757,
0.11777076870203018,
0.6492860317230225,
-0.00239288411103189,
0.19555552303791046,
0.6011664271354675,
0.6441728472709656,
0.08295954763889313,
0.39076048135757446,
0.2913508117198944,
-0.9753751754760742,
0.6336801648139954,
0.05900751054286957,
0.5492404699325562,
0.252202570438385,
-0.4469970762729645,
0.31189507246017456,
0.5075674057006836,
-0.6618105173110962,
-0.8764302134513855,
0.15100066363811493,
-1.4745906591415405,
0.1853676736354828,
1.1552925109863281,
-0.19887042045593262,
-0.858226478099823,
0.39448878169059753,
-0.534439206123352,
0.5305764675140381,
-0.6325165629386902,
0.9564716815948486,
0.3332938551902771,
-0.2445070892572403,
-0.27395519614219666,
-0.35966891050338745,
0.44623124599456787,
0.2774151861667633,
-1.073397159576416,
-0.5677420496940613,
0.6713135838508606,
0.5641480088233948,
0.5259935855865479,
0.8811171650886536,
-0.3252977132797241,
0.46782225370407104,
0.3343676030635834,
0.5265069007873535,
0.22307053208351135,
0.5449751615524292,
0.008138012140989304,
-0.22839611768722534,
-0.1396874636411667,
-1.1539114713668823
] |
fmops/distilbert-prompt-injection
|
fmops
| 2023-07-28T17:56:32Z | 8,098 | 3 |
transformers
|
[
"transformers",
"pytorch",
"tensorboard",
"safetensors",
"distilbert",
"text-classification",
"en",
"de",
"es",
"dataset:deepset/prompt-injections",
"license:apache-2.0",
"endpoints_compatible",
"has_space",
"region:us"
] |
text-classification
| 2023-07-17T21:14:51Z |
---
license: apache-2.0
datasets:
- deepset/prompt-injections
language:
- en
- de
- es
metrics:
- accuracy
library_name: transformers
---
|
[
-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
] |
OpenAssistant/oasst-sft-1-pythia-12b
|
OpenAssistant
| 2023-03-11T14:25:14Z | 8,076 | 278 |
transformers
|
[
"transformers",
"pytorch",
"gpt_neox",
"text-generation",
"sft",
"en",
"license:apache-2.0",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-03-09T16:47:26Z |
---
license: apache-2.0
language:
- en
tags:
- sft
pipeline_tag: text-generation
widget:
- text: <|prompter|>What is a meme, and what's the history behind this word?<|endoftext|><|assistant|>
- text: <|prompter|>What's the Earth total population<|endoftext|><|assistant|>
- text: <|prompter|>Write a story about future of AI development<|endoftext|><|assistant|>
---
# Open-Assistant SFT-1 12B Model
This is the first iteration English supervised-fine-tuning (SFT) model of
the [Open-Assistant](https://github.com/LAION-AI/Open-Assistant) project.
It is based on a Pythia 12B that was fine-tuned on ~22k human demonstrations
of assistant conversations collected through the
[https://open-assistant.io/](https://open-assistant.io/) human feedback web
app before March 7, 2023.
## Model Details
- **Developed by:** [Open-Assistant Contributors](https://open-assistant.io/)
- **Model type:** Transformer-based Language Model
- **Language:** English
- **Finetuned from:** [EleutherAI / pythia-12b-deduped](https://huggingface.co/EleutherAI/pythia-12b-deduped)
- **Code:** [Open-Assistant/model/model_training](https://github.com/LAION-AI/Open-Assistant/tree/main/model/model_training)
- **Demo:** [Continuations for 250 random prompts](https://open-assistant.github.io/oasst-model-eval/?f=https%3A%2F%2Fraw.githubusercontent.com%2FOpen-Assistant%2Foasst-model-eval%2Fmain%2Fsampling_reports%2Foasst-sft%2F2023-03-09_andreaskoepf_oasst-1_12b_7000_sampling_noprefix_lottery.json) ([sampling code](https://github.com/Open-Assistant/oasst-model-eval/blob/3d71f3be100c05cd8ddb568365e036a29fbff8c7/model_eval/manual/sampling_report.py)).
- **License:** Apache 2.0
- **Contact:** [Open-Assistant Discord](https://ykilcher.com/open-assistant-discord)
## Prompting
Two special tokens are used to mark the beginning of user and assistant turns:
`<|prompter|>` and `<|assistant|>`. Each turn ends with a `<|endoftext|>` token.
Input prompt example:
```
<|prompter|>What is a meme, and what's the history behind this word?<|endoftext|><|assistant|>
```
The input ends with the `<|assistant|>` token to signal that the model should
start generating the assistant reply.
Example of generated continuation (typical sampling 0.2):
```
A visual joke often accompanied by text that spreads rapidly from individual
to individual. The exact origin of the term "meme" is unclear, but it was
first used in the 1990s by Richard Dawkins in his book "The Selfish Gene."
He defined a meme as an idea, behavior, or style that is transmitted from
one person to another within a culture.
Dawkins' use of the term caught on among scholars and journalists, who began
to apply the concept to other types of cultural items such as advertisements,
fashion trends, and jokes. Over time, the term "meme" has come to be used
more generally to describe any social behavior that can be repeated and
altered by individuals. Today, the term is widely recognized and applied in
fields ranging from anthropology to psychology to marketing.<|endoftext|>
```
## Limitations
See limitations of Pythia 12B base model [here](https://huggingface.co/EleutherAI/pythia-12b-deduped#limitations-and-biases).
The model is known to fail horribly at answering math and coding questions.
Beware of hallucinations: Outputs are often factually wrong or misleading.
Replies might look convincing (at first glance) while containing completely
made up false statements.
This model is usable only for English conversations.
|
[
-0.44466131925582886,
-1.1670081615447998,
0.21628059446811676,
0.27318841218948364,
-0.18814902007579803,
-0.1160511001944542,
0.08876485377550125,
-0.3311891257762909,
0.37726929783821106,
0.18657803535461426,
-0.8894022107124329,
-0.12113568186759949,
-0.47790074348449707,
0.17082542181015015,
-0.3505708575248718,
0.8096408843994141,
-0.05449084937572479,
0.16728948056697845,
-0.11841561645269394,
-0.10449285060167313,
-0.490735799074173,
-0.40868663787841797,
-0.7922578454017639,
-0.11807245016098022,
0.4448963403701782,
0.49943849444389343,
0.6827008128166199,
0.33554062247276306,
0.45191797614097595,
0.32245221734046936,
0.05124350264668465,
-0.03244137018918991,
-0.43806886672973633,
-0.3030650317668915,
-0.3261967599391937,
-0.24345310032367706,
-0.4046003222465515,
0.41608554124832153,
0.398605078458786,
0.7580223083496094,
-0.0706300362944603,
0.2401515692472458,
0.04013585299253464,
0.48587918281555176,
-0.48961809277534485,
-0.06485066562891006,
-0.2487114667892456,
-0.21638549864292145,
-0.04409686475992203,
-0.28227290511131287,
-0.342260479927063,
-0.29905733466148376,
0.28881555795669556,
-0.5266187191009521,
0.05581162869930267,
-0.08183925598859787,
0.9288113713264465,
0.0843963772058487,
-0.16166700422763824,
-0.5145117044448853,
-0.7673900723457336,
0.7415199875831604,
-0.6578785181045532,
0.24071598052978516,
0.28031978011131287,
0.36010053753852844,
-0.20897452533245087,
-0.7144649028778076,
-0.6274783611297607,
-0.42628827691078186,
-0.03683311492204666,
0.12598876655101776,
-0.6544122099876404,
-0.05894070118665695,
0.24235527217388153,
0.4523417353630066,
-0.7924363613128662,
-0.12228131294250488,
-0.7538037300109863,
0.000018254111637361348,
0.3209966719150543,
0.09670566767454147,
0.21759513020515442,
-0.2064388245344162,
-0.33778032660484314,
-0.09310790151357651,
-0.48196443915367126,
0.02664668671786785,
0.41648247838020325,
-0.12432501465082169,
-0.311909943819046,
0.675577700138092,
-0.3318496346473694,
0.5497223138809204,
0.15362690389156342,
0.012865869328379631,
0.08702239394187927,
-0.4257061779499054,
-0.3210372030735016,
-0.3362613320350647,
0.977259635925293,
0.2211923599243164,
0.4522102475166321,
-0.043497808277606964,
0.13038910925388336,
0.19266706705093384,
0.18668845295906067,
-0.8047839999198914,
-0.5396728515625,
0.12301641702651978,
-0.6099034547805786,
-0.5022995471954346,
0.23833152651786804,
-0.6440654993057251,
-0.0008705351501703262,
-0.1367901712656021,
0.3877340853214264,
-0.3595447838306427,
-0.4212898910045624,
0.20437996089458466,
-0.051560983061790466,
0.17974133789539337,
0.34718361496925354,
-0.7058215737342834,
0.2830406725406647,
0.32762494683265686,
0.8695619702339172,
0.14138394594192505,
-0.49479588866233826,
-0.11610478907823563,
-0.2973034083843231,
-0.3181737959384918,
0.6131513714790344,
-0.2827073931694031,
-0.28887906670570374,
-0.42790985107421875,
0.21544405817985535,
0.060225553810596466,
-0.3513087034225464,
0.24074621498584747,
-0.3484797775745392,
0.5565632581710815,
0.05678185820579529,
-0.4743516445159912,
-0.214393749833107,
0.06969919800758362,
-0.6955413222312927,
0.6980409026145935,
0.2599623501300812,
-0.418192982673645,
0.08891651779413223,
-1.106749176979065,
-0.07316569983959198,
-0.07836645096540451,
-0.11196304857730865,
-0.11265185475349426,
0.06539464741945267,
-0.07099741697311401,
0.3743797838687897,
-0.5523457527160645,
0.14533241093158722,
-0.1892840415239334,
-0.321804016828537,
0.23476412892341614,
-0.6361060738563538,
1.1173932552337646,
0.3044271767139435,
-0.19627715647220612,
0.03078526258468628,
-0.7731721997261047,
-0.2258204221725464,
0.37992170453071594,
-0.20053498446941376,
-0.19963325560092926,
-0.2678370177745819,
-0.15170268714427948,
0.1484975516796112,
0.23857222497463226,
-0.6898654103279114,
0.29740971326828003,
-0.37326282262802124,
0.51795494556427,
0.8003628849983215,
0.038443535566329956,
0.5896463990211487,
-0.3966599404811859,
0.5892226099967957,
-0.07900898158550262,
0.37867388129234314,
-0.34972766041755676,
-0.6983090043067932,
-0.30019786953926086,
-0.28349801898002625,
0.152756929397583,
0.7161523103713989,
-0.4625941216945648,
0.677788257598877,
0.051055241376161575,
-0.6867812275886536,
-0.5774469375610352,
-0.10212181508541107,
0.15378306806087494,
0.37640315294265747,
0.3509857654571533,
-0.17771796882152557,
-0.52135169506073,
-0.8160579800605774,
-0.22457563877105713,
-0.2291601300239563,
-0.13792558014392853,
0.4550178050994873,
0.6227713227272034,
-0.17600364983081818,
0.636527419090271,
-0.4788272976875305,
-0.1601477861404419,
-0.12082578986883163,
0.2790157198905945,
0.33059608936309814,
0.721954345703125,
0.6418448090553284,
-0.5289863348007202,
-0.30397191643714905,
-0.17583893239498138,
-0.712829053401947,
-0.15302260220050812,
-0.2858119308948517,
-0.24752403795719147,
0.0820416584610939,
0.31488773226737976,
-0.6712935566902161,
0.6590604782104492,
0.6368756890296936,
-0.8015214204788208,
0.6837096810340881,
-0.09666848182678223,
0.38784581422805786,
-1.3659862279891968,
0.0502796396613121,
-0.11576440185308456,
-0.09862072765827179,
-0.2774948477745056,
-0.0037295108195394278,
-0.16558530926704407,
-0.018523717299103737,
-0.30046072602272034,
0.7847861051559448,
-0.4682087302207947,
0.3531869351863861,
-0.28641119599342346,
-0.16169635951519012,
-0.11486388742923737,
0.5230674743652344,
-0.2882850766181946,
0.7725311517715454,
0.5214971899986267,
-0.6211645603179932,
0.5582415461540222,
0.30101603269577026,
-0.20969033241271973,
0.5579248666763306,
-0.8190914392471313,
0.24545176327228546,
0.034511882811784744,
0.10609608143568039,
-1.1592926979064941,
-0.27834418416023254,
0.46056312322616577,
-0.8686964511871338,
0.04386570677161217,
0.11798601597547531,
-0.5038711428642273,
-0.5727513432502747,
-0.22724825143814087,
0.45873820781707764,
0.6414332389831543,
-0.6367562413215637,
0.4963904321193695,
0.19365695118904114,
0.11117449402809143,
-0.45033055543899536,
-0.6323680281639099,
-0.0847693681716919,
-0.018946724012494087,
-0.9474334120750427,
0.13695137202739716,
-0.21595850586891174,
-0.18440400063991547,
0.04916633293032646,
-0.03780222311615944,
-0.17297126352787018,
0.22777003049850464,
0.15111641585826874,
0.19424226880073547,
-0.1751970648765564,
-0.12157993763685226,
0.0189871396869421,
-0.03720630705356598,
0.04304825887084007,
-0.10434562712907791,
0.7535486817359924,
-0.08564407378435135,
-0.3488101363182068,
-0.5966559648513794,
0.484368234872818,
0.6039249897003174,
-0.15817877650260925,
0.7874721884727478,
0.2942558228969574,
-0.5517390370368958,
0.08747591823339462,
-0.5036603808403015,
-0.5791488289833069,
-0.4778241515159607,
0.3513919711112976,
-0.5429365038871765,
-0.7751019597053528,
0.49951791763305664,
-0.12130030989646912,
0.16297774016857147,
0.49050453305244446,
0.5569559931755066,
-0.1678115874528885,
0.9373483061790466,
0.5829087495803833,
0.036510419100522995,
0.7837242484092712,
-0.3445185720920563,
0.2242431938648224,
-0.617108166217804,
-0.07649258524179459,
-0.5353097915649414,
-0.38726291060447693,
-0.6147051453590393,
-0.411478728055954,
0.220288947224617,
0.288144588470459,
-0.12875717878341675,
0.37908267974853516,
-0.54591304063797,
0.4378184378147125,
0.7727056741714478,
0.11382093280553818,
0.10708712786436081,
-0.01845269277691841,
0.09517168998718262,
0.10782051831483841,
-0.6230964064598083,
-0.7311858534812927,
1.1258313655853271,
0.3523815870285034,
1.00809645652771,
0.1891668438911438,
0.5881221890449524,
0.2717955708503723,
0.12452825158834457,
-0.5396711826324463,
0.5309193134307861,
-0.04210852086544037,
-0.5620759725570679,
-0.36863529682159424,
-0.2744922935962677,
-1.0938185453414917,
-0.15309952199459076,
-0.03754532337188721,
-0.8678882718086243,
0.18227560818195343,
0.32092535495758057,
-0.2321309894323349,
0.26765936613082886,
-0.7247530817985535,
1.1644222736358643,
-0.05734843388199806,
-0.4457741975784302,
-0.3722670376300812,
-0.510764479637146,
0.2978614270687103,
0.1661425530910492,
-0.09715019911527634,
0.03235017880797386,
0.30111026763916016,
0.7928035259246826,
-0.579346239566803,
0.7054193615913391,
-0.08278785645961761,
0.22286468744277954,
0.6173976063728333,
0.1650242656469345,
0.4128232002258301,
-0.07431630045175552,
0.1473654955625534,
0.22543872892856598,
0.23699836432933807,
-0.5836592316627502,
-0.30122238397598267,
0.7326759099960327,
-0.7965399026870728,
-0.28567877411842346,
-0.3787429928779602,
-0.42462125420570374,
0.31470686197280884,
0.15840062499046326,
0.3063253164291382,
0.3724655508995056,
-0.4890722632408142,
0.4050663709640503,
0.43044328689575195,
-0.37732580304145813,
0.05068494379520416,
0.5693781971931458,
-0.1299021691083908,
-0.24712857604026794,
0.7729156017303467,
0.16153651475906372,
0.16582000255584717,
0.2308616191148758,
0.36582693457603455,
-0.14399397373199463,
-0.06942673027515411,
-0.4654572010040283,
0.24465925991535187,
-0.6015393733978271,
-0.051359087228775024,
-0.7017477750778198,
-0.06245724484324455,
-0.5613602995872498,
-0.23209677636623383,
-0.23642562329769135,
-0.42610642313957214,
-0.4036349952220917,
-0.1672372967004776,
0.4337449073791504,
0.7570025324821472,
-0.09874647855758667,
0.46526050567626953,
-0.50106281042099,
0.22444437444210052,
0.22251643240451813,
0.34708935022354126,
-0.00401298888027668,
-0.46165522933006287,
-0.05439761281013489,
0.13077814877033234,
-0.5597479939460754,
-1.2860792875289917,
0.08521363884210587,
-0.08204059302806854,
0.5976805090904236,
0.35020798444747925,
-0.21735882759094238,
0.4047628939151764,
-0.2801806926727295,
0.9756096601486206,
0.11825656145811081,
-0.756299614906311,
0.5231479406356812,
-0.3993160128593445,
0.3777846693992615,
0.3466731905937195,
0.28925958275794983,
-0.43507301807403564,
-0.412623792886734,
-0.8641062378883362,
-0.7080185413360596,
0.701910674571991,
0.2191104143857956,
0.25239336490631104,
-0.32974308729171753,
0.4231131374835968,
0.1696498543024063,
0.18423035740852356,
-0.8355436325073242,
-0.35568875074386597,
-0.19543570280075073,
-0.24798960983753204,
0.22395528852939606,
-0.3123372793197632,
0.14575952291488647,
-0.49602848291397095,
0.8672279119491577,
-0.04084312170743942,
0.4641004800796509,
0.2774393856525421,
-0.12558546662330627,
-0.3262466788291931,
0.11943931132555008,
0.6107363104820251,
0.7134937047958374,
-0.16256120800971985,
-0.12846477329730988,
-0.060671623796224594,
-0.4660952091217041,
0.012576593086123466,
0.06555689126253128,
-0.23387748003005981,
-0.02464188262820244,
0.19840207695960999,
0.7692326307296753,
0.05171555280685425,
-0.6523994207382202,
0.5017054080963135,
-0.018845533952116966,
-0.2650674879550934,
-0.4845365583896637,
-0.07516653090715408,
0.01563655026257038,
0.2547491192817688,
0.21366016566753387,
0.07979020476341248,
0.29392650723457336,
-0.6517608165740967,
0.20585274696350098,
0.6047596335411072,
-0.11696797609329224,
-0.5318285822868347,
0.7861492037773132,
0.18391646444797516,
-0.43626993894577026,
0.43153899908065796,
-0.3359799087047577,
-0.16369304060935974,
0.79813551902771,
0.6310983896255493,
1.064074993133545,
-0.4306190013885498,
0.1332995742559433,
0.6774066686630249,
0.6004629135131836,
-0.04405974596738815,
0.5253831744194031,
0.08732415735721588,
-0.5181112885475159,
-0.09879349917173386,
-0.5548645257949829,
-0.34728747606277466,
0.4363945424556732,
-0.3428592085838318,
0.5631440877914429,
-0.49597805738449097,
0.1360459178686142,
0.14606231451034546,
-0.1956995725631714,
-0.7810460329055786,
0.17768992483615875,
-0.04749365150928497,
1.2087970972061157,
-0.8162755966186523,
0.5140712261199951,
0.9310722947120667,
-0.6367337107658386,
-0.8816151022911072,
-0.05234044790267944,
-0.06308022141456604,
-0.5114321708679199,
0.055260807275772095,
0.12170901149511337,
0.10729056596755981,
0.15480320155620575,
-0.8689685463905334,
-0.8104095458984375,
1.1984541416168213,
0.09046514332294464,
-0.4532274007797241,
-0.14125406742095947,
-0.10546218603849411,
0.4687083959579468,
-0.5144200325012207,
0.47058916091918945,
0.4915372431278229,
0.32433876395225525,
0.11330346018075943,
-1.0169099569320679,
0.10305432230234146,
-0.3423193395137787,
-0.25791648030281067,
0.08824117481708527,
-0.5719689130783081,
1.2271374464035034,
-0.2114454060792923,
0.030438782647252083,
0.5393148064613342,
0.5075907111167908,
0.06648588925600052,
0.2789655029773712,
0.4111355245113373,
0.3492515981197357,
0.6556074023246765,
-0.11978191882371902,
1.1020110845565796,
-0.3082600235939026,
0.3049441874027252,
0.9619273543357849,
0.22776105999946594,
0.4945072829723358,
0.4635000228881836,
-0.17648915946483612,
0.456732839345932,
0.616045355796814,
-0.17119216918945312,
0.5481665134429932,
0.19955572485923767,
-0.010981068015098572,
0.1599586308002472,
0.1849786639213562,
-0.200469970703125,
0.474478542804718,
0.24636663496494293,
-0.6323224902153015,
-0.3266282081604004,
0.11487942934036255,
0.06506254523992538,
-0.11540332436561584,
-0.22255884110927582,
0.957676887512207,
-0.041419558227062225,
-0.6426699161529541,
0.5586819648742676,
0.08724545687437057,
0.6310857534408569,
-0.723878026008606,
-0.2627021372318268,
-0.06667862087488174,
0.24293285608291626,
-0.12176347523927689,
-0.6029517650604248,
0.24234247207641602,
0.023631175979971886,
-0.24435095489025116,
0.051297739148139954,
0.7579649090766907,
-0.33371737599372864,
-0.3890205919742584,
0.32631874084472656,
0.7565620541572571,
0.5184109807014465,
-0.23808738589286804,
-0.8155249953269958,
-0.1727294623851776,
0.06462940573692322,
-0.5047006607055664,
-0.05049966275691986,
0.5004945397377014,
-0.27656805515289307,
0.4041479527950287,
0.6877756118774414,
-0.08088535815477371,
0.2331889569759369,
-0.05028562992811203,
0.7596943974494934,
-0.501277506351471,
-0.5764937996864319,
-1.045436143875122,
0.5736020803451538,
-0.02124163880944252,
-0.48916715383529663,
0.5734114050865173,
0.49185410141944885,
0.8398951888084412,
-0.33668196201324463,
0.7861226797103882,
-0.38216787576675415,
0.4840319752693176,
-0.19658896327018738,
0.6976239085197449,
-0.6472514271736145,
-0.010127190500497818,
-0.4626327157020569,
-0.7384790778160095,
0.12939105927944183,
0.9252503514289856,
-0.19339615106582642,
0.14463865756988525,
0.6089977025985718,
0.7608561515808105,
-0.22690369188785553,
0.14726431667804718,
0.24956579506397247,
0.3645811975002289,
0.3297497630119324,
0.41586777567863464,
0.7626041173934937,
-0.5477576851844788,
0.5776780247688293,
-0.44808638095855713,
-0.7380621433258057,
-0.260423868894577,
-0.5340229868888855,
-0.9424775838851929,
-0.5096426606178284,
-0.27004992961883545,
-0.5330886244773865,
-0.0777425542473793,
1.2453973293304443,
0.5392223596572876,
-0.7728619575500488,
-0.21049879491329193,
-0.3836609721183777,
0.008626967668533325,
-0.3387533724308014,
-0.3185456395149231,
0.04865008592605591,
0.05494927987456322,
-0.8724803924560547,
0.28569671511650085,
0.09979218989610672,
0.2430170178413391,
-0.42451420426368713,
-0.04154381528496742,
-0.4793564975261688,
0.4762985110282898,
0.5140051245689392,
0.2652100622653961,
-0.6265184283256531,
-0.1873665601015091,
0.36655348539352417,
-0.1017792671918869,
-0.008537313900887966,
0.5986518859863281,
-0.6466626524925232,
0.4302627444267273,
0.51576828956604,
0.30565276741981506,
0.08806519955396652,
0.046674974262714386,
0.564527153968811,
-0.6353511214256287,
0.23911520838737488,
0.22219587862491608,
0.4184545576572418,
0.23042833805084229,
-0.516481876373291,
0.7011896371841431,
0.3569053113460541,
-0.5865052938461304,
-0.8098201155662537,
0.2259557545185089,
-0.8872925043106079,
-0.3246959149837494,
0.9952119588851929,
0.0066000898368656635,
-0.23786629736423492,
0.10046069324016571,
-0.5606604218482971,
0.27521029114723206,
-0.46109187602996826,
0.8479424715042114,
0.8493306636810303,
-0.07854220271110535,
-0.2171095460653305,
-0.5610451102256775,
0.3520581126213074,
0.40683579444885254,
-0.8559070825576782,
-0.11853901296854019,
0.4721362292766571,
0.44322383403778076,
0.4202723205089569,
0.9591660499572754,
-0.14428766071796417,
0.8058786988258362,
-0.07335063070058823,
0.18529729545116425,
-0.031970907002687454,
-0.33972856402397156,
-0.19298794865608215,
-0.011213366873562336,
-0.06324262917041779,
-0.5950174927711487
] |
garage-bAInd/Camel-Platypus2-70B
|
garage-bAInd
| 2023-08-15T01:54:31Z | 8,073 | 12 |
transformers
|
[
"transformers",
"pytorch",
"llama",
"text-generation",
"en",
"dataset:garage-bAInd/Open-Platypus",
"arxiv:2308.07317",
"arxiv:2307.09288",
"license:cc-by-nc-4.0",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-08-09T21:24:32Z |
---
language:
- en
datasets:
- garage-bAInd/Open-Platypus
license: cc-by-nc-4.0
---
# Camel-Platypus2-70B
Camel-Platypus2-70B is a merge of [`garage-bAInd/Platypus2-70B`](https://huggingface.co/garage-bAInd/Platypus2-70B) and [`augtoma/qCammel-70-x`](https://huggingface.co/augtoma/qCammel-70-x).

### Benchmark Metrics
| Metric | Value |
|-----------------------|-------|
| MMLU (5-shot) | 69.80 |
| ARC (25-shot) | 71.16 |
| HellaSwag (10-shot) | 87.66 |
| TruthfulQA (0-shot) | 57.77 |
| Avg. | 71.60 |
We use state-of-the-art [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.
### Model Details
* **Trained by**: **Platypus2-70B** trained by Cole Hunter & Ariel Lee; **augtoma/qCammel-70-x** trained by augtoma
* **Model type:** **Camel-Platypus2-70B** is an auto-regressive language model based on the LLaMA 2 transformer architecture.
* **Language(s)**: English
* **License**: Non-Commercial Creative Commons license ([CC BY-NC-4.0](https://creativecommons.org/licenses/by-nc/4.0/))
### Prompt Template
```
### Instruction:
<prompt> (without the <>)
### Response:
```
### Training Dataset
`garage-bAInd/Platypus2-70B` 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.
### Training Procedure
`garage-bAInd/Platypus2-70B` was instruction fine-tuned using LoRA on 8 A100 80GB. For training details and inference instructions please see the [Platypus](https://github.com/arielnlee/Platypus) GitHub repo.
### Reproducing Evaluation Results
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=garage-bAInd/Camel-Platypus2-70B --tasks arc_challenge --batch_size 1 --no_cache --write_out --output_path results/Camel-Platypus2-70B/arc_challenge_25shot.json --device cuda --num_fewshot 25
```
HellaSwag:
```
python main.py --model hf-causal-experimental --model_args pretrained=garage-bAInd/Camel-Platypus2-70B --tasks hellaswag --batch_size 1 --no_cache --write_out --output_path results/Camel-Platypus2-70B/hellaswag_10shot.json --device cuda --num_fewshot 10
```
MMLU:
```
python main.py --model hf-causal-experimental --model_args pretrained=garage-bAInd/Camel-Platypus2-70B --tasks hendrycksTest-* --batch_size 1 --no_cache --write_out --output_path results/Camel-Platypus2-70B/mmlu_5shot.json --device cuda --num_fewshot 5
```
TruthfulQA:
```
python main.py --model hf-causal-experimental --model_args pretrained=garage-bAInd/Camel-Platypus2-70B --tasks truthfulqa_mc --batch_size 1 --no_cache --write_out --output_path results/Camel-Platypus2-70B/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
@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}
}
```
```bibtex
@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 year={2023},
eprint={2307.09288},
archivePrefix={arXiv},
}
```
```bibtex
@inproceedings{
hu2022lora,
title={Lo{RA}: Low-Rank Adaptation of Large Language Models},
author={Edward J Hu and Yelong Shen and Phillip Wallis and Zeyuan Allen-Zhu and Yuanzhi Li and Shean Wang and Lu Wang and Weizhu Chen},
booktitle={International Conference on Learning Representations},
year={2022},
url={https://openreview.net/forum?id=nZeVKeeFYf9}
}
```
|
[
-0.36469295620918274,
-0.7550510764122009,
0.09789431840181351,
0.362884521484375,
-0.37186160683631897,
-0.0699552595615387,
-0.332843154668808,
-0.6050272583961487,
0.02405807562172413,
0.29096391797065735,
-0.47762081027030945,
-0.3728383779525757,
-0.5971522331237793,
-0.07518810778856277,
-0.1418142020702362,
1.1320642232894897,
-0.3899489641189575,
-0.19411994516849518,
-0.07651659101247787,
-0.40471017360687256,
-0.6176348328590393,
-0.4669393002986908,
-0.4042080044746399,
-0.35418206453323364,
0.34540876746177673,
0.2785806953907013,
0.5799465179443359,
0.4813583493232727,
0.6187169551849365,
0.3178064227104187,
-0.13630111515522003,
0.2722702622413635,
-0.6246423125267029,
-0.10766001045703888,
0.17765317857265472,
-0.42123153805732727,
-0.540446400642395,
0.10891376435756683,
0.503578782081604,
0.4073522984981537,
-0.2250906229019165,
0.45001691579818726,
0.13276663422584534,
0.3858756721019745,
-0.6429218053817749,
0.3099668323993683,
-0.5935904383659363,
-0.20587213337421417,
-0.3410467207431793,
-0.16078828275203705,
-0.22868339717388153,
-0.24357308447360992,
-0.083668552339077,
-0.7152245044708252,
0.027794405817985535,
0.15622714161872864,
1.1575132608413696,
0.49989113211631775,
-0.3136045038700104,
-0.10218577831983566,
-0.3150443434715271,
0.9858517050743103,
-0.7657886743545532,
0.16657227277755737,
0.3481999635696411,
0.13464918732643127,
-0.47170940041542053,
-0.5987998247146606,
-0.670331597328186,
-0.3008089065551758,
-0.081527940928936,
0.1082586795091629,
-0.282428503036499,
-0.149457186460495,
0.21808424592018127,
0.4256235361099243,
-0.411503404378891,
0.4712774157524109,
-0.41231635212898254,
-0.20385229587554932,
0.720227837562561,
0.1304011046886444,
0.1248808428645134,
-0.05373094603419304,
-0.5922511219978333,
-0.4288793206214905,
-0.7746689915657043,
0.3729662597179413,
0.38700366020202637,
0.11420654505491257,
-0.405740886926651,
0.7190178632736206,
-0.2382899522781372,
0.48014914989471436,
-0.12430653721094131,
-0.5010140538215637,
0.6171973943710327,
-0.4243861734867096,
-0.3313857913017273,
-0.07433096319437027,
0.9984357357025146,
0.4267258048057556,
0.022058455273509026,
0.09954739362001419,
-0.23291033506393433,
0.27255716919898987,
-0.19499622285366058,
-0.8004016280174255,
-0.09504496306180954,
0.2945842146873474,
-0.34652772545814514,
-0.24003855884075165,
-0.2549612522125244,
-0.45727935433387756,
-0.29465511441230774,
-0.014066707342863083,
0.38048914074897766,
-0.5164116621017456,
-0.4113505184650421,
0.2727327048778534,
-0.16743594408035278,
0.623877763748169,
0.27665141224861145,
-0.6283968687057495,
0.39921554923057556,
0.5652307868003845,
0.832057535648346,
-0.33858221769332886,
-0.5861415266990662,
-0.3619742691516876,
0.05096457526087761,
-0.23846235871315002,
0.8281132578849792,
-0.05153362825512886,
-0.29534342885017395,
-0.19775062799453735,
0.1579376459121704,
-0.07131335139274597,
-0.5794140696525574,
0.5198755860328674,
-0.34299179911613464,
0.20153656601905823,
-0.3009013533592224,
-0.39288026094436646,
-0.3979099988937378,
0.044621068984270096,
-0.43027687072753906,
1.332726001739502,
0.2026057094335556,
-0.8729264736175537,
0.14777694642543793,
-0.6051760911941528,
-0.387776255607605,
-0.14263252913951874,
0.1237790510058403,
-0.5804795622825623,
-0.17556816339492798,
0.1372079700231552,
0.42109760642051697,
-0.5854548215866089,
0.17486092448234558,
-0.28317883610725403,
-0.37554746866226196,
0.30230554938316345,
-0.16202470660209656,
1.0451891422271729,
0.12019192427396774,
-0.5163227915763855,
0.0841713473200798,
-0.6307075619697571,
-0.09620124101638794,
0.4783441126346588,
-0.34231433272361755,
-0.16571511328220367,
-0.08526545017957687,
-0.07308787852525711,
0.08906417340040207,
0.4339185953140259,
-0.4626038074493408,
0.12933200597763062,
-0.3565726578235626,
0.5694358348846436,
0.7096807956695557,
-0.12000211328268051,
0.17545191943645477,
-0.6189353466033936,
0.3166716992855072,
0.047133300453424454,
0.2418387085199356,
0.08982079476118088,
-0.7069749236106873,
-1.10481858253479,
-0.3317325711250305,
0.09909075498580933,
0.7603631019592285,
-0.3632577955722809,
0.6280738711357117,
-0.06990636885166168,
-0.7010610103607178,
-0.542249321937561,
0.3058658242225647,
0.5199102759361267,
0.508323609828949,
0.5411892533302307,
-0.5035790205001831,
-0.4761706590652466,
-0.9126110672950745,
-0.1361137330532074,
-0.4315786063671112,
0.12332773208618164,
0.31175097823143005,
0.6599112749099731,
-0.371295303106308,
0.7208049893379211,
-0.4235137701034546,
-0.3333282172679901,
-0.2094305157661438,
0.013222482055425644,
0.2502641975879669,
0.6858333945274353,
0.5697344541549683,
-0.2275111973285675,
-0.15721656382083893,
-0.15142549574375153,
-0.7690362334251404,
-0.2022564858198166,
0.053187064826488495,
-0.31687164306640625,
0.5107970833778381,
0.0440562479197979,
-0.88198322057724,
0.3835793137550354,
0.49935653805732727,
-0.18030141294002533,
0.571062445640564,
-0.1381521373987198,
-0.1135827824473381,
-0.6995674967765808,
0.12333370745182037,
0.02623697929084301,
-0.0162422526627779,
-0.396034836769104,
0.08326815068721771,
-0.0885104313492775,
0.18388701975345612,
-0.6225253939628601,
0.6579325795173645,
-0.5223561525344849,
-0.23185418546199799,
-0.14146162569522858,
0.21437658369541168,
-0.0689135491847992,
0.6914670467376709,
-0.08581271767616272,
0.8437783718109131,
0.48812007904052734,
-0.5666728019714355,
0.2170005738735199,
0.4246664345264435,
-0.4430505931377411,
0.19230814278125763,
-0.8945977687835693,
0.15432357788085938,
0.1762349158525467,
0.45917248725891113,
-1.079121708869934,
-0.061510343104600906,
0.3319644331932068,
-0.30043482780456543,
0.2868513762950897,
0.1504065841436386,
-0.6944652795791626,
-0.41358253359794617,
-0.5713573694229126,
0.41738027334213257,
0.9055664539337158,
-0.5531173944473267,
0.25845077633857727,
0.41550925374031067,
0.04441724717617035,
-0.7321591973304749,
-0.7633808255195618,
-0.23356737196445465,
-0.3290591835975647,
-0.7220881581306458,
0.20325805246829987,
-0.14346735179424286,
-0.16860388219356537,
-0.21218426525592804,
-0.09876389056444168,
0.17197611927986145,
0.19140271842479706,
0.45353883504867554,
0.4521104693412781,
-0.12304798513650894,
-0.02231535129249096,
0.0022591075394302607,
-0.20755404233932495,
-0.05096195265650749,
0.03432011976838112,
0.6152781844139099,
-0.3489208221435547,
-0.1686711609363556,
-0.7960534691810608,
0.05211783945560455,
0.41810402274131775,
-0.3559654951095581,
0.7600646018981934,
0.7259604334831238,
-0.1397663950920105,
0.15570463240146637,
-0.8082378506660461,
-0.15752866864204407,
-0.4903453588485718,
0.34196916222572327,
-0.2782491147518158,
-0.708184003829956,
0.564050555229187,
0.008794249035418034,
0.22383849322795868,
0.7239482998847961,
0.8046412467956543,
0.010750927031040192,
0.77735435962677,
0.5779483914375305,
-0.030455615371465683,
0.4525233507156372,
-0.6664793491363525,
0.07521818578243256,
-1.0608803033828735,
-0.38564199209213257,
-0.48148563504219055,
-0.3398742973804474,
-0.7280650734901428,
-0.5854479670524597,
0.12267161905765533,
0.2841997444629669,
-0.6019672155380249,
0.4790126085281372,
-0.5189451575279236,
0.11981482803821564,
0.6074082851409912,
0.04055064544081688,
0.21675127744674683,
0.034772973507642746,
-0.12232087552547455,
0.13265329599380493,
-0.6311543583869934,
-0.5770025849342346,
1.081798791885376,
0.5044812560081482,
0.7787495255470276,
0.04334471374750137,
0.5503082871437073,
-0.07136432081460953,
0.3325597047805786,
-0.6904934048652649,
0.6753649115562439,
0.004907745402306318,
-0.4527289867401123,
-0.13633334636688232,
-0.17532335221767426,
-0.9850251078605652,
0.35488200187683105,
-0.06723704189062119,
-0.7266379594802856,
0.17139436304569244,
-0.0506630502641201,
-0.293805330991745,
0.26008090376853943,
-0.7977700233459473,
0.7519720792770386,
-0.37264660000801086,
-0.3963181674480438,
-0.29711493849754333,
-0.7383826375007629,
0.6361556053161621,
-0.02647506073117256,
0.08570941537618637,
-0.45382943749427795,
-0.2685182988643646,
1.1150023937225342,
-0.7294996976852417,
0.9172959327697754,
-0.14162705838680267,
-0.043952520936727524,
0.5200406312942505,
-0.07787232846021652,
0.5644567012786865,
0.017534729093313217,
-0.04931572452187538,
0.543290376663208,
-0.008642875589430332,
-0.4314771592617035,
-0.1419551521539688,
0.7829960584640503,
-1.3393206596374512,
-0.6536020636558533,
-0.5908331274986267,
-0.6693040132522583,
0.041704900562763214,
0.062162596732378006,
0.16198784112930298,
0.09583187103271484,
0.16830913722515106,
0.06523957848548889,
0.45860424637794495,
-0.4841020405292511,
0.5568926930427551,
0.592343270778656,
-0.0007761965389363468,
-0.3777672052383423,
0.7466212511062622,
0.020754758268594742,
0.23507776856422424,
0.14143748581409454,
0.10039659589529037,
-0.28259316086769104,
-0.4889679551124573,
-0.3113429546356201,
0.6425923109054565,
-0.6004622578620911,
-0.4973452389240265,
-0.630007266998291,
-0.2511606514453888,
-0.26704737544059753,
0.0695958286523819,
-0.4224880039691925,
-0.4907819628715515,
-0.5917201638221741,
0.033220794051885605,
0.7167395949363708,
0.5167322158813477,
-0.11250877380371094,
0.5736485719680786,
-0.29588282108306885,
0.2809358239173889,
0.3090083599090576,
0.19187015295028687,
-0.05105486512184143,
-0.7301098704338074,
0.06005026400089264,
0.09241396933794022,
-0.566117525100708,
-0.7383258938789368,
0.4299916625022888,
0.1873343139886856,
0.6977819800376892,
0.17521123588085175,
0.05122876167297363,
0.8729620575904846,
-0.22305288910865784,
0.8890851140022278,
0.29220694303512573,
-0.8309414982795715,
0.6181689500808716,
-0.1304716318845749,
0.021535543724894524,
0.3850797712802887,
0.2910884916782379,
-0.20311182737350464,
-0.4384644031524658,
-0.6718817949295044,
-0.8361058235168457,
0.7771885395050049,
0.3706340193748474,
-0.15265461802482605,
0.2456863671541214,
0.33030256628990173,
0.21975520253181458,
0.16134127974510193,
-0.756965160369873,
-0.41102659702301025,
-0.3264865279197693,
0.01994161307811737,
-0.16911901533603668,
-0.2805367708206177,
-0.23670817911624908,
-0.47135084867477417,
0.8281740546226501,
-0.013018285855650902,
0.4599243402481079,
0.1439751386642456,
-0.30615711212158203,
-0.14106160402297974,
0.009336105547845364,
0.6244654059410095,
0.5066277384757996,
-0.36372679471969604,
-0.08166997879743576,
0.35717546939849854,
-0.5137413144111633,
0.18234878778457642,
0.19620256125926971,
0.023490676656365395,
-0.16865552961826324,
0.42622092366218567,
1.0582982301712036,
0.06475469470024109,
-0.6872913837432861,
0.5140616297721863,
-0.06467660516500473,
-0.10840877145528793,
-0.29923534393310547,
0.19090649485588074,
0.09984719008207321,
0.3039158284664154,
0.2741045355796814,
-0.0013975980691611767,
-0.1792025864124298,
-0.48479899764060974,
-0.12806099653244019,
0.5050435662269592,
0.06525995582342148,
-0.34376633167266846,
0.7363783717155457,
0.11889450997114182,
-0.25813427567481995,
0.6139117479324341,
-0.22569356858730316,
-0.372433066368103,
0.7772030234336853,
0.6475974917411804,
0.5923845767974854,
-0.12770575284957886,
-0.018826261162757874,
0.4075154662132263,
0.41119256615638733,
-0.17351558804512024,
0.3804490268230438,
0.07853993773460388,
-0.597781777381897,
-0.32739701867103577,
-0.6373158097267151,
-0.26795610785484314,
0.27903664112091064,
-0.4759354889392853,
0.4722394347190857,
-0.42480385303497314,
-0.24930979311466217,
-0.13016380369663239,
0.460130900144577,
-0.7471894025802612,
-0.03540625050663948,
-0.013902498409152031,
0.991569459438324,
-0.8565887808799744,
0.8875055909156799,
0.6417983770370483,
-0.4975571930408478,
-0.8945949673652649,
-0.38772907853126526,
-0.15632092952728271,
-1.1807787418365479,
0.5968136191368103,
0.2667638659477234,
-0.023299412801861763,
-0.15537388622760773,
-0.6359348893165588,
-1.0240567922592163,
1.4845709800720215,
0.5667039752006531,
-0.575110137462616,
0.3594406843185425,
-0.0066291335970163345,
0.46872469782829285,
-0.23662284016609192,
0.48616671562194824,
0.7849753499031067,
0.46002712845802307,
0.13336347043514252,
-1.150364875793457,
0.281028151512146,
-0.27635490894317627,
0.10833724588155746,
0.03280009329319,
-1.1552634239196777,
1.0991814136505127,
-0.394906222820282,
-0.18294931948184967,
0.334463894367218,
0.6818096041679382,
0.7657399773597717,
0.14056608080863953,
0.4481574594974518,
0.8317666053771973,
0.8318803310394287,
-0.061330344527959824,
1.1677961349487305,
-0.3099719285964966,
0.4772341549396515,
0.9556058049201965,
-0.14693181216716766,
1.0333632230758667,
0.5254806280136108,
-0.48085594177246094,
0.7544997930526733,
0.9318703413009644,
-0.017013929784297943,
0.5882253646850586,
0.19000785052776337,
0.04470503702759743,
-0.07503088563680649,
-0.1414339691400528,
-0.6748408675193787,
0.41311517357826233,
0.3260200023651123,
-0.06648781150579453,
-0.0673954114317894,
-0.17543672025203705,
0.1490279883146286,
-0.46328818798065186,
-0.0193479023873806,
0.5736938118934631,
0.20890861749649048,
-0.6491614580154419,
1.1710779666900635,
0.0808534249663353,
0.913123607635498,
-0.5435405969619751,
0.20010940730571747,
-0.39452114701271057,
0.16826385259628296,
-0.23600919544696808,
-0.657162606716156,
-0.0645875558257103,
-0.09352942556142807,
0.14680621027946472,
0.015371435321867466,
0.6481788158416748,
-0.12154388427734375,
-0.36808013916015625,
0.45647376775741577,
0.375962495803833,
0.3664172887802124,
0.20075680315494537,
-0.728046715259552,
0.325582355260849,
-0.16172029078006744,
-0.4649275243282318,
0.3305078446865082,
0.1450064480304718,
-0.18973873555660248,
0.7274379730224609,
0.7106645107269287,
-0.018996918573975563,
0.19985777139663696,
-0.1686466783285141,
1.0150017738342285,
-0.4806385636329651,
-0.3560178577899933,
-0.7484424710273743,
0.39851340651512146,
0.09434137493371964,
-0.5727375745773315,
0.7106371521949768,
0.5320444107055664,
0.7342770099639893,
0.1776725947856903,
0.6679401993751526,
-0.11684613674879074,
0.2953455448150635,
-0.3485350012779236,
0.47427114844322205,
-0.5884453058242798,
0.37135040760040283,
-0.006570438388735056,
-0.9190258383750916,
-0.059051599353551865,
0.7310717701911926,
-0.29692110419273376,
-0.021636618301272392,
0.8438571095466614,
0.8703804016113281,
0.004103812854737043,
-0.20676706731319427,
-0.12282934784889221,
0.44849514961242676,
0.2648387849330902,
0.9194594621658325,
0.8905422687530518,
-0.7751104831695557,
0.5487926006317139,
-0.46220695972442627,
-0.34041836857795715,
-0.3255302309989929,
-0.8294835686683655,
-0.9442124366760254,
-0.42226940393447876,
-0.5393235087394714,
-0.42360827326774597,
-0.014919559471309185,
0.7258873581886292,
0.5443577766418457,
-0.7766236662864685,
-0.5245742797851562,
-0.013099025934934616,
0.179251030087471,
-0.25636956095695496,
-0.15211822092533112,
0.46345943212509155,
-0.2252209335565567,
-0.4709170162677765,
0.11799082159996033,
0.11054397374391556,
0.2897229492664337,
-0.4230787456035614,
-0.2885793447494507,
-0.25470465421676636,
-0.07781408727169037,
0.4717620611190796,
0.39283978939056396,
-0.9200513362884521,
-0.1225750744342804,
-0.149789497256279,
-0.19233721494674683,
0.20425201952457428,
0.438639760017395,
-0.9398248195648193,
-0.006388867739588022,
0.43547943234443665,
0.3697202503681183,
0.7095901966094971,
-0.1948433667421341,
0.16333259642124176,
-0.4773363769054413,
0.5980547666549683,
-0.10069459676742554,
0.4632154405117035,
0.4710840880870819,
-0.2202792763710022,
0.6300827860832214,
0.37625852227211,
-0.6039378046989441,
-1.0143080949783325,
-0.1217372864484787,
-1.2963873147964478,
-0.1514233946800232,
1.4936373233795166,
-0.1717175394296646,
-0.4627513885498047,
0.16656430065631866,
-0.25061434507369995,
0.48902419209480286,
-0.4574187994003296,
0.6423507928848267,
0.3470343351364136,
-0.14546379446983337,
0.006723813246935606,
-0.7245537042617798,
0.30948102474212646,
0.42918914556503296,
-0.8701865673065186,
-0.20179441571235657,
0.20433253049850464,
0.530462920665741,
0.09680838137865067,
0.615023672580719,
0.10430146753787994,
0.18014459311962128,
-0.1897684782743454,
0.14001022279262543,
-0.10140184313058853,
0.057344622910022736,
-0.2726244330406189,
-0.20135363936424255,
0.10495291650295258,
-0.386263906955719
] |
LeoLM/leo-hessianai-13b
|
LeoLM
| 2023-09-29T10:34:48Z | 8,072 | 25 |
transformers
|
[
"transformers",
"pytorch",
"llama",
"text-generation",
"custom_code",
"en",
"de",
"dataset:oscar-corpus/OSCAR-2301",
"dataset:wikipedia",
"dataset:bjoernp/tagesschau-2018-2023",
"endpoints_compatible",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-09-05T22:47:48Z |
---
datasets:
- oscar-corpus/OSCAR-2301
- wikipedia
- bjoernp/tagesschau-2018-2023
language:
- en
- de
library_name: transformers
pipeline_tag: text-generation
---
# LAION LeoLM: **L**inguistically **E**nhanced **O**pen **L**anguage **M**odel
Meet LeoLM, the first open and commercially available German Foundation Language Model built on Llama-2.
Our models extend Llama-2's capabilities into German through continued pretraining on a large corpus of German-language and mostly locality specific text.
Thanks to a compute grant at HessianAI's new supercomputer **42**, we release two foundation models trained with 8k context length,
[`LeoLM/leo-hessianai-7b`](https://huggingface.co/LeoLM/leo-hessianai-7b) and [`LeoLM/leo-hessianai-13b`](https://huggingface.co/LeoLM/leo-hessianai-13b) under the [Llama-2 community license](https://huggingface.co/meta-llama/Llama-2-70b/raw/main/LICENSE.txt) (70b also coming soon! 👀).
With this release, we hope to bring a new wave of opportunities to German open-source and commercial LLM research and accelerate adoption.
Read our [blog post]() or our paper (preprint coming soon) for more details!
*A project by Björn Plüster and Christoph Schuhmann in collaboration with LAION and HessianAI.*
## Model Details
- **Finetuned from:** [meta-llama/Llama-2-13b-hf](https://huggingface.co/meta-llama/Llama-2-13b-hf)
- **Model type:** Causal decoder-only transformer language model
- **Language:** English and German
- **License:** [LLAMA 2 COMMUNITY LICENSE AGREEMENT](https://huggingface.co/meta-llama/Llama-2-70b/raw/main/LICENSE.txt)
- **Contact:** [LAION Discord](https://discord.com/invite/eq3cAMZtCC) or [Björn Plüster](mailto:[email protected])
## Use in 🤗Transformers
First install direct dependencies:
```
pip install transformers torch sentencepiece
```
If you want faster inference using flash-attention2, you need to install these dependencies:
```bash
pip install packaging ninja
pip install flash-attn==v2.1.1 --no-build-isolation
pip install git+https://github.com/HazyResearch/[email protected]#subdirectory=csrc/rotary
```
Then load the model in transformers:
```python
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model = AutoModelForCausalLM.from_pretrained(
model="LeoLM/leo-hessianai-13b",
device_map="auto",
torch_dtype=torch.float16,
trust_remote_code=True # True for flash-attn2 else False
)
```
## Training parameters

## Benchmarks

|
[
-0.2018202692270279,
-0.6243956685066223,
0.18081440031528473,
0.5698637962341309,
-0.37689074873924255,
-0.21878448128700256,
-0.10517328232526779,
-0.5930575728416443,
0.08669234812259674,
0.4105784296989441,
-0.5259948372840881,
-0.381041944026947,
-0.7206563949584961,
-0.016699200496077538,
-0.46506476402282715,
1.027463674545288,
-0.26463931798934937,
0.14192964136600494,
0.11978727579116821,
-0.26137423515319824,
-0.02435108833014965,
-0.36352524161338806,
-0.5091906189918518,
-0.6857947111129761,
0.4278124272823334,
0.3292837142944336,
0.5982028841972351,
0.5742883086204529,
0.6248031258583069,
0.2973180115222931,
-0.19743040204048157,
-0.1877727210521698,
-0.44615647196769714,
-0.09854723513126373,
0.05637279525399208,
-0.45710426568984985,
-0.5876139402389526,
-0.008926617912948132,
0.635107696056366,
0.23356413841247559,
-0.1487008035182953,
0.252513587474823,
-0.17870916426181793,
0.4214434325695038,
-0.6176552772521973,
0.19161246716976166,
-0.380173921585083,
0.05203554034233093,
-0.21395672857761383,
0.10527016967535019,
-0.4162121117115021,
-0.0403914675116539,
0.15482120215892792,
-0.6367655992507935,
0.06575065106153488,
-0.24559786915779114,
1.3165751695632935,
0.5891111493110657,
-0.4623025059700012,
-0.16117548942565918,
-0.6539106965065002,
0.7852912545204163,
-0.6859203577041626,
0.46473583579063416,
0.43002206087112427,
0.37512314319610596,
-0.10433059930801392,
-1.2691916227340698,
-0.44612637162208557,
-0.26022183895111084,
-0.2000776082277298,
0.15799196064472198,
-0.5219102501869202,
-0.13968999683856964,
0.22494272887706757,
0.11614874005317688,
-0.4249320924282074,
-0.011179720982909203,
-0.37739670276641846,
-0.10633732378482819,
0.5799258947372437,
-0.19237110018730164,
-0.10769023001194,
-0.058066993951797485,
-0.43647053837776184,
-0.25410154461860657,
-0.7741769552230835,
-0.08568999171257019,
0.12633439898490906,
-0.23710878193378448,
-0.48859867453575134,
0.5518136620521545,
-0.16669921576976776,
0.5253495573997498,
0.051367972046136856,
-0.2924140989780426,
0.4292861819267273,
-0.1364666372537613,
-0.36114609241485596,
-0.13749849796295166,
0.8634693622589111,
0.06773792207241058,
0.27219656109809875,
0.07624006271362305,
-0.3584066331386566,
0.002056020312011242,
-0.08863294124603271,
-0.7040177583694458,
-0.22163064777851105,
0.1352206915616989,
-0.3398756980895996,
-0.5028287172317505,
-0.12937617301940918,
-0.58017897605896,
-0.10352266579866409,
-0.03636869788169861,
0.4639999270439148,
-0.27259257435798645,
-0.2786293923854828,
0.27532249689102173,
0.24501915276050568,
0.47590526938438416,
0.26643773913383484,
-0.7686752080917358,
-0.0024306916166096926,
0.4706835150718689,
0.6541359424591064,
0.21093471348285675,
-0.46279671788215637,
-0.4199797511100769,
0.2222779393196106,
-0.1181129589676857,
0.645423173904419,
-0.15089158713817596,
-0.22881244122982025,
0.03131908178329468,
0.08956532180309296,
0.17084424197673798,
-0.4471748173236847,
0.5891011357307434,
-0.7292786240577698,
0.4401395916938782,
0.019812943413853645,
-0.2377558797597885,
-0.22892379760742188,
-0.019450001418590546,
-0.569409966468811,
1.3008097410202026,
0.2380940020084381,
-0.9059803485870361,
0.08760572969913483,
-0.536239504814148,
-0.6986614465713501,
-0.07958688586950302,
-0.01857651025056839,
-0.426792711019516,
-0.05635187774896622,
0.18167521059513092,
0.48700109124183655,
-0.5918071866035461,
0.6816548705101013,
-0.16889874637126923,
-0.2832960784435272,
0.2271130084991455,
-0.4305061399936676,
1.0956581830978394,
0.2158581018447876,
-0.7562076449394226,
0.11444795876741409,
-0.6749286651611328,
-0.2116815596818924,
0.33102208375930786,
-0.501011848449707,
0.2549671232700348,
-0.09467552602291107,
0.3665977120399475,
0.3355526030063629,
0.47935983538627625,
-0.305810809135437,
-0.038795579224824905,
-0.33045822381973267,
0.4695426821708679,
0.7334862947463989,
-0.4412544071674347,
0.2711324095726013,
-0.12014873325824738,
0.47567126154899597,
-0.005871267523616552,
0.25353509187698364,
-0.044447097927331924,
-0.4551282525062561,
-1.3771475553512573,
-0.3405919671058655,
0.2521248459815979,
0.6861442923545837,
-0.7149583697319031,
0.5864923000335693,
-0.25038206577301025,
-0.5572238564491272,
-0.5607587695121765,
0.049318041652441025,
0.5174725651741028,
0.4964085519313812,
0.33466988801956177,
-0.1706400364637375,
-0.6192432045936584,
-0.932852029800415,
0.12484163045883179,
-0.41240614652633667,
0.03807653486728668,
0.3258950114250183,
0.6563762426376343,
-0.6129690408706665,
0.8976461291313171,
-0.3834228515625,
-0.33029982447624207,
-0.3262906074523926,
0.02764247916638851,
0.2978728413581848,
0.4050365388393402,
0.6197821497917175,
-0.6555816531181335,
-0.4541071355342865,
-0.05911944434046745,
-1.103775978088379,
-0.18672658503055573,
0.20377376675605774,
-0.11566328257322311,
0.4550825357437134,
0.41761553287506104,
-0.7598299980163574,
0.2759765684604645,
0.6397198438644409,
-0.34615540504455566,
0.4440968334674835,
-0.07113289833068848,
-0.31032752990722656,
-0.9905337691307068,
0.2363908290863037,
-0.12968702614307404,
-0.28152960538864136,
-0.5754369497299194,
0.20668566226959229,
-0.025157803669571877,
0.08288002014160156,
-0.8342428803443909,
0.9825888276100159,
-0.2786061763763428,
-0.07727108150720596,
-0.2583523094654083,
0.020947923883795738,
-0.2245570570230484,
0.37441587448120117,
0.21839043498039246,
0.6826909780502319,
0.8024017214775085,
-0.556073009967804,
0.4108470678329468,
0.35978755354881287,
-0.3554939031600952,
0.2033972591161728,
-0.9367064833641052,
0.06637246161699295,
-0.010747028514742851,
0.49883028864860535,
-0.7011740207672119,
-0.5636062026023865,
0.5827327370643616,
-0.37903061509132385,
0.2893892526626587,
0.10517759621143341,
-0.6353293061256409,
-0.37942492961883545,
-0.08251442760229111,
0.38726988434791565,
0.8275505900382996,
-0.6963832974433899,
0.6508903503417969,
0.3443448543548584,
0.14041180908679962,
-0.9623825550079346,
-0.9567099809646606,
-0.021578997373580933,
-0.2845442295074463,
-0.8786192536354065,
0.2316645085811615,
0.044382479041814804,
-0.183869406580925,
-0.08007212728261948,
0.019854644313454628,
-0.06390301883220673,
0.13551455736160278,
0.06630758941173553,
0.16008387506008148,
-0.37988752126693726,
0.04411083832383156,
0.04042603820562363,
-0.5457290410995483,
-0.039906635880470276,
-0.1634904444217682,
0.6828435063362122,
-0.4959113299846649,
-0.22137606143951416,
-0.5505695939064026,
0.024287205189466476,
0.3691134452819824,
-0.22736187279224396,
0.7540823221206665,
0.9761574268341064,
-0.42271506786346436,
0.12022019177675247,
-0.7314476370811462,
-0.3402595520019531,
-0.5443070530891418,
0.3791351020336151,
-0.2798837125301361,
-1.0207406282424927,
0.37780696153640747,
-0.10679832100868225,
0.03987868130207062,
0.5620019435882568,
0.720248281955719,
-0.12443776428699493,
0.7674500346183777,
0.9456961154937744,
-0.28049182891845703,
0.5532708764076233,
-0.38095349073410034,
-0.01736447587609291,
-0.622927725315094,
-0.10903454571962357,
-0.29462674260139465,
-0.09391988068819046,
-0.2832033932209015,
-0.3991430401802063,
0.3898676931858063,
0.5490047931671143,
-0.4845770299434662,
0.482056587934494,
-0.2200241982936859,
0.36055922508239746,
0.48698410391807556,
-0.02581818588078022,
0.25298982858657837,
0.2540682852268219,
-0.07466044276952744,
0.0645582377910614,
-0.7914562821388245,
-0.7394027709960938,
1.0421520471572876,
0.6248226165771484,
0.579012930393219,
0.17329362034797668,
0.7016341686248779,
-0.0018569017993286252,
0.6500787734985352,
-0.48381245136260986,
0.6521151661872864,
0.002507029101252556,
-0.756794810295105,
-0.18034526705741882,
-0.14287036657333374,
-0.8219636082649231,
0.37849485874176025,
-0.0038190295454114676,
-0.694582998752594,
0.02717997506260872,
0.12833304703235626,
-0.029365845024585724,
0.017056886106729507,
-0.4547138214111328,
0.8306225538253784,
-0.36448490619659424,
-0.2559994161128998,
-0.3317924439907074,
-0.8803390860557556,
0.5905507802963257,
-0.20249401032924652,
0.11524572968482971,
-0.24829654395580292,
-0.09255893528461456,
0.8089737892150879,
-0.26203101873397827,
0.9291448593139648,
-0.008244934491813183,
-0.24330638349056244,
0.35581013560295105,
-0.11874309182167053,
0.611180305480957,
0.2374991476535797,
-0.191086083650589,
0.46309617161750793,
-0.27057600021362305,
-0.38588058948516846,
-0.2507304549217224,
0.512488603591919,
-0.9688897728919983,
-0.598007321357727,
-0.633783221244812,
-0.4630478620529175,
0.10779658704996109,
0.27072474360466003,
0.5862047076225281,
0.04618425294756889,
-0.22580377757549286,
0.05860314890742302,
0.5040156245231628,
-0.21245184540748596,
0.6036880612373352,
0.7479172348976135,
-0.2603924870491028,
-0.42367783188819885,
0.7365003228187561,
-0.30671969056129456,
0.14385215938091278,
0.25195953249931335,
0.10335873067378998,
-0.2345191240310669,
-0.1493295431137085,
-0.5835731029510498,
0.711137056350708,
-1.0348405838012695,
-0.21691562235355377,
-0.7196215391159058,
-0.28529787063598633,
-0.31897008419036865,
-0.22277793288230896,
-0.33571621775627136,
-0.39948317408561707,
-0.7061673402786255,
-0.11419303715229034,
0.4474948048591614,
0.6916330456733704,
-0.31441858410835266,
0.7565363049507141,
-0.598866879940033,
0.21161971986293793,
0.1273370087146759,
0.06688489019870758,
0.021651336923241615,
-0.7152647972106934,
-0.24845513701438904,
-0.12013498693704605,
-0.39677536487579346,
-0.7388468980789185,
0.35755616426467896,
0.1849902868270874,
0.4246179461479187,
0.5206645131111145,
-0.15301905572414398,
0.45981016755104065,
-0.4796736538410187,
0.6645295023918152,
0.3066765367984772,
-0.9903110861778259,
0.5180689692497253,
-0.33930471539497375,
0.18460218608379364,
0.3446210026741028,
0.42425352334976196,
-0.5458965301513672,
-0.2508755624294281,
-0.7236921191215515,
-0.8070849776268005,
1.0759122371673584,
0.4081305265426636,
0.20671817660331726,
0.047342944890260696,
0.29406121373176575,
-0.19005434215068817,
0.19810979068279266,
-1.2493666410446167,
-0.5017533898353577,
-0.09909401834011078,
-0.25573286414146423,
-0.2355322539806366,
-0.44749200344085693,
-0.3454669415950775,
-0.35473841428756714,
0.91422438621521,
0.046287864446640015,
0.544333279132843,
0.08732648193836212,
-0.3355523347854614,
-0.25343242287635803,
-0.051219042390584946,
0.6886272430419922,
0.4958386719226837,
-0.04203137755393982,
0.13991279900074005,
0.3740870952606201,
-0.548194944858551,
0.3714919090270996,
0.31812241673469543,
-0.4729655981063843,
0.12013464421033859,
0.7970298528671265,
0.9872069954872131,
0.29826295375823975,
-0.6980447769165039,
0.5399245619773865,
0.19098050892353058,
0.02167552337050438,
-0.4764440357685089,
-0.014214778319001198,
0.2936308681964874,
0.46734681725502014,
0.22607681155204773,
-0.1590956151485443,
-0.2156219631433487,
-0.21733452379703522,
0.2841200530529022,
0.2589145004749298,
-0.43416979908943176,
-0.34290364384651184,
0.8826013207435608,
0.2536735534667969,
-0.23981648683547974,
0.5547773241996765,
-0.21464668214321136,
-0.5928893089294434,
0.6563157439231873,
0.755627453327179,
0.9301022887229919,
-0.28552722930908203,
0.345625638961792,
0.3705984354019165,
0.36224791407585144,
-0.20434297621250153,
0.3124304413795471,
0.09191419929265976,
-0.712282657623291,
-0.2113550752401352,
-0.6787124872207642,
-0.019531115889549255,
0.02001498080790043,
-0.3979377746582031,
0.5466457605361938,
-0.375870943069458,
-0.1019737720489502,
-0.29004454612731934,
-0.10859368741512299,
-0.5584177374839783,
0.17547862231731415,
-0.027975469827651978,
0.9846743941307068,
-0.7600312829017639,
1.1990240812301636,
0.5923032760620117,
-0.4700348973274231,
-0.642656683921814,
-0.035968419164419174,
-0.034048762172460556,
-0.9662431478500366,
0.8826833367347717,
0.19596070051193237,
-0.20038653910160065,
0.23678986728191376,
-0.584852397441864,
-1.1947356462478638,
1.3648240566253662,
0.6170101761817932,
-0.42870453000068665,
0.18615826964378357,
0.1963079571723938,
0.6163265705108643,
-0.37046724557876587,
0.3571074903011322,
0.7419558763504028,
0.6010711193084717,
0.20848724246025085,
-0.8273876309394836,
0.09150591492652893,
-0.13652364909648895,
-0.1792011857032776,
-0.028476765379309654,
-0.9408614039421082,
0.9637985229492188,
-0.36130860447883606,
-0.2654981017112732,
0.29041263461112976,
0.9586578607559204,
0.3820923864841461,
0.20303894579410553,
0.2781536877155304,
0.539938747882843,
0.696431040763855,
-0.11220765858888626,
1.1760451793670654,
-0.3530924320220947,
0.5975789427757263,
0.9225207567214966,
-0.3244295120239258,
0.9023810625076294,
0.3813123106956482,
-0.18612278997898102,
0.5028498768806458,
0.7012336850166321,
-0.09186536818742752,
0.6780206561088562,
-0.05139286816120148,
-0.3761887550354004,
-0.16250428557395935,
-0.08788365125656128,
-0.6375108957290649,
0.35958123207092285,
0.16764859855175018,
-0.31173384189605713,
-0.2242850661277771,
-0.09368906170129776,
0.18308091163635254,
-0.4838167130947113,
0.14447063207626343,
0.4301200807094574,
0.35268449783325195,
-0.3840803802013397,
0.9016544222831726,
0.390883207321167,
0.8305082321166992,
-0.7094175219535828,
0.26222947239875793,
-0.300800621509552,
0.34593531489372253,
-0.16609342396259308,
-0.5126967430114746,
0.1262127310037613,
0.12952230870723724,
0.006220933515578508,
-0.02367018163204193,
0.7011544704437256,
-0.40103399753570557,
-0.6625334620475769,
0.7226572036743164,
0.3201887011528015,
0.394313246011734,
0.2570747137069702,
-0.8885079026222229,
0.2482154220342636,
-0.000542971130926162,
-0.5612314343452454,
0.19711945950984955,
0.07009588181972504,
-0.08856701850891113,
0.8385648727416992,
0.4486079812049866,
-0.29267197847366333,
0.12387192994356155,
-0.012287217192351818,
0.9015786647796631,
-0.45834505558013916,
-0.2578257918357849,
-0.7985582947731018,
0.6573250889778137,
0.27875420451164246,
-0.5899600386619568,
0.5591686367988586,
0.42510470747947693,
0.8736709952354431,
-0.267943412065506,
0.5294917225837708,
-0.21275970339775085,
0.012498021125793457,
-0.4536919593811035,
0.7972443699836731,
-0.7556331753730774,
0.18624703586101532,
-0.19664540886878967,
-0.9874164462089539,
-0.3291403651237488,
0.9245783686637878,
-0.10637983679771423,
0.09827430546283722,
0.6729048490524292,
0.7890295386314392,
-0.21133585274219513,
-0.17089176177978516,
0.08710337430238724,
0.3311353027820587,
0.24958348274230957,
0.6743747591972351,
0.6651206016540527,
-0.7695897221565247,
0.6083064079284668,
-0.427235871553421,
-0.2917172312736511,
-0.41094881296157837,
-0.8633196353912354,
-0.9262709021568298,
-0.5150408148765564,
-0.2869661748409271,
-0.4019279479980469,
-0.06265739351511002,
0.6363422274589539,
0.6941102147102356,
-0.8165420889854431,
-0.4735777974128723,
-0.12150336802005768,
0.07345964759588242,
-0.01030821818858385,
-0.15923209488391876,
0.5005055665969849,
-0.07507842779159546,
-0.6503462791442871,
0.37514907121658325,
0.06708483397960663,
0.33590322732925415,
-0.3180913031101227,
-0.4725143015384674,
-0.37652525305747986,
-0.07581443339586258,
0.5731911659240723,
0.29980799555778503,
-1.0875235795974731,
-0.10606149584054947,
0.038330551236867905,
-0.31435930728912354,
0.0456063337624073,
0.5037054419517517,
-0.7097004055976868,
0.03453163802623749,
0.270221471786499,
0.44958460330963135,
0.8773998618125916,
-0.3938196003437042,
0.5077365636825562,
-0.6646860837936401,
0.6843600273132324,
0.08963960409164429,
0.4149443507194519,
0.3293741047382355,
-0.30340149998664856,
0.8910216689109802,
0.30483025312423706,
-0.3654665946960449,
-0.8808822631835938,
0.4308997690677643,
-0.8844830989837646,
-0.15655194222927094,
1.278497576713562,
-0.2689967453479767,
-0.10385770350694656,
0.17204909026622772,
-0.12003186345100403,
0.4746193289756775,
-0.1470497101545334,
0.5229547619819641,
0.6453855633735657,
0.08771584182977676,
-0.21078160405158997,
-0.47266313433647156,
0.43216627836227417,
0.570010244846344,
-0.7806180119514465,
-0.16791707277297974,
0.3686983585357666,
0.3371632993221283,
0.16112120449543,
0.7944671511650085,
0.04865081235766411,
0.44850337505340576,
-0.1072041317820549,
0.2584322392940521,
0.005047801416367292,
-0.5268018841743469,
-0.6601170897483826,
-0.1691018044948578,
-0.15371939539909363,
0.0670447126030922
] |
MoritzLaurer/deberta-v3-base-zeroshot-v1
|
MoritzLaurer
| 2023-11-29T19:30:58Z | 8,067 | 34 |
transformers
|
[
"transformers",
"pytorch",
"safetensors",
"deberta-v2",
"text-classification",
"zero-shot-classification",
"en",
"license:mit",
"endpoints_compatible",
"region:us"
] |
zero-shot-classification
| 2023-09-29T05:38:21Z |
---
language:
- en
tags:
- text-classification
- zero-shot-classification
pipeline_tag: zero-shot-classification
library_name: transformers
license: mit
---
# deberta-v3-base-zeroshot-v1
## Model description
The model is designed for zero-shot classification with the Hugging Face pipeline.
The model should be substantially better at zero-shot classification than my other zero-shot models on the
Hugging Face hub: https://huggingface.co/MoritzLaurer.
The model can do one universal task: determine whether a hypothesis is `true` or `not_true`
given a text (also called `entailment` vs. `not_entailment`).
This task format is based on the Natural Language Inference task (NLI).
The task is so universal that any classification task can be reformulated into the task.
## Training data
The model was trained on a mixture of 27 tasks and 310 classes that have been reformatted into this universal format.
1. 26 classification tasks with ~400k texts:
'amazonpolarity', 'imdb', 'appreviews', 'yelpreviews', 'rottentomatoes',
'emotiondair', 'emocontext', 'empathetic',
'financialphrasebank', 'banking77', 'massive',
'wikitoxic_toxicaggregated', 'wikitoxic_obscene', 'wikitoxic_threat', 'wikitoxic_insult', 'wikitoxic_identityhate',
'hateoffensive', 'hatexplain', 'biasframes_offensive', 'biasframes_sex', 'biasframes_intent',
'agnews', 'yahootopics',
'trueteacher', 'spam', 'wellformedquery'.
See details on each dataset here: https://docs.google.com/spreadsheets/d/1Z18tMh02IiWgh6o8pfoMiI_LH4IXpr78wd_nmNd5FaE/edit?usp=sharing
3. Five NLI datasets with ~885k texts: "mnli", "anli", "fever", "wanli", "ling"
Note that compared to other NLI models, this model predicts two classes (`entailment` vs. `not_entailment`)
as opposed to three classes (entailment/neutral/contradiction)
### How to use the model
#### Simple zero-shot classification pipeline
```python
from transformers import pipeline
classifier = pipeline("zero-shot-classification", model="MoritzLaurer/deberta-v3-base-zeroshot-v1")
sequence_to_classify = "Angela Merkel is a politician in Germany and leader of the CDU"
candidate_labels = ["politics", "economy", "entertainment", "environment"]
output = classifier(sequence_to_classify, candidate_labels, multi_label=False)
print(output)
```
### Details on data and training
The code for preparing the data and training & evaluating the model is fully open-source here: https://github.com/MoritzLaurer/zeroshot-classifier/tree/main
## Limitations and bias
The model can only do text classification tasks.
Please consult the original DeBERTa paper and the papers for the different datasets for potential biases.
## License
The base model (DeBERTa-v3) is published under the MIT license.
The datasets the model was fine-tuned on are published under a diverse set of licenses.
The following spreadsheet provides an overview of the non-NLI datasets used for fine-tuning.
The spreadsheets contains information on licenses, the underlying papers etc.: https://docs.google.com/spreadsheets/d/1Z18tMh02IiWgh6o8pfoMiI_LH4IXpr78wd_nmNd5FaE/edit?usp=sharing
In addition, the model was also trained on the following NLI datasets: MNLI, ANLI, WANLI, LING-NLI, FEVER-NLI.
## Citation
If you use this model, please cite:
```
@article{laurer_less_2023,
title = {Less {Annotating}, {More} {Classifying}: {Addressing} the {Data} {Scarcity} {Issue} of {Supervised} {Machine} {Learning} with {Deep} {Transfer} {Learning} and {BERT}-{NLI}},
issn = {1047-1987, 1476-4989},
shorttitle = {Less {Annotating}, {More} {Classifying}},
url = {https://www.cambridge.org/core/product/identifier/S1047198723000207/type/journal_article},
doi = {10.1017/pan.2023.20},
language = {en},
urldate = {2023-06-20},
journal = {Political Analysis},
author = {Laurer, Moritz and Van Atteveldt, Wouter and Casas, Andreu and Welbers, Kasper},
month = jun,
year = {2023},
pages = {1--33},
}
```
### Ideas for cooperation or questions?
If you have questions or ideas for cooperation, contact me at m{dot}laurer{at}vu{dot}nl or [LinkedIn](https://www.linkedin.com/in/moritz-laurer/)
### Debugging and issues
Note that DeBERTa-v3 was released on 06.12.21 and older versions of HF Transformers seem to have issues running the model (e.g. resulting in an issue with the tokenizer). Using Transformers>=4.13 might solve some issues.
|
[
-0.24987934529781342,
-0.6378485560417175,
0.40143415331840515,
0.128022700548172,
-0.062453869730234146,
-0.155069500207901,
0.10859119892120361,
-0.629614531993866,
0.27948132157325745,
0.468388170003891,
-0.5809017419815063,
-0.7088266611099243,
-0.8206230998039246,
0.11701435595750809,
-0.3895406126976013,
1.0914809703826904,
0.06625543534755707,
-0.10797827690839767,
0.013421996496617794,
-0.1460772603750229,
-0.48743802309036255,
-0.6469466090202332,
-0.5388067364692688,
-0.537136435508728,
0.7028278708457947,
0.46096503734588623,
0.5872783660888672,
0.4794415235519409,
0.4065879285335541,
0.20367854833602905,
-0.22724901139736176,
-0.18837985396385193,
-0.45062509179115295,
-0.03720123693346977,
-0.04960992932319641,
-0.5212955474853516,
-0.48817571997642517,
0.2993217408657074,
0.23725295066833496,
0.42688438296318054,
0.12293825298547745,
0.330692857503891,
-0.0636838898062706,
0.6131659746170044,
-0.9202316999435425,
0.12817901372909546,
-0.6725600361824036,
0.1037479117512703,
-0.11252841353416443,
0.04600010812282562,
-0.3637790083885193,
-0.15872034430503845,
0.20704714953899384,
-0.4159952402114868,
0.1566033661365509,
-0.2187228947877884,
1.242388367652893,
0.4294263422489166,
-0.29787126183509827,
-0.07699641585350037,
-0.6732363104820251,
0.8933868408203125,
-0.9240015745162964,
0.2720322906970978,
0.282522588968277,
0.096876360476017,
-0.02211647853255272,
-0.4836490750312805,
-0.8135169744491577,
0.12352968007326126,
-0.10231456160545349,
0.3219483196735382,
-0.4607667922973633,
-0.1743793934583664,
0.3459077477455139,
0.20317593216896057,
-0.6553469896316528,
0.3291456699371338,
-0.4591282606124878,
-0.022894907742738724,
0.6094346046447754,
0.010408787988126278,
0.20513507723808289,
-0.4338397681713104,
-0.3935483694076538,
-0.2500866651535034,
-0.625830352306366,
0.016256771981716156,
0.29890838265419006,
0.3497012257575989,
-0.30207201838493347,
0.4927172362804413,
-0.35244113206863403,
0.740208625793457,
0.16698317229747772,
0.057962529361248016,
0.6682369112968445,
-0.11378075182437897,
-0.5602416396141052,
0.1302276849746704,
0.8761475682258606,
0.32775405049324036,
0.10193588584661484,
0.0020089074969291687,
0.1032479926943779,
0.24776577949523926,
0.033601317554712296,
-1.0595786571502686,
-0.27590471506118774,
0.4251755177974701,
-0.32609081268310547,
-0.5838562846183777,
0.000518144981469959,
-0.8200995326042175,
-0.24522478878498077,
-0.4805210828781128,
0.44530412554740906,
-0.4600464999675751,
-0.20673631131649017,
0.11729846149682999,
-0.22330886125564575,
0.41027259826660156,
0.2714847922325134,
-0.8004776239395142,
0.040153879672288895,
0.5023676156997681,
0.8993149995803833,
0.04381949082016945,
-0.27848801016807556,
-0.4111912250518799,
-0.15980155766010284,
-0.13384760916233063,
0.6763556003570557,
-0.4876996576786041,
-0.014429311268031597,
-0.11311254650354385,
0.20305898785591125,
-0.2989228367805481,
-0.4122425317764282,
0.6557524800300598,
-0.4506475031375885,
0.46170946955680847,
-0.17657211422920227,
-0.5952122807502747,
-0.4356309473514557,
0.3947630822658539,
-0.6340451240539551,
0.9447317719459534,
0.16470655798912048,
-0.9645280838012695,
0.4317973852157593,
-0.7441873550415039,
-0.07017535716295242,
-0.06631726026535034,
0.0417054109275341,
-0.5066965818405151,
-0.22647042572498322,
0.2265041470527649,
0.6408118009567261,
-0.17962412536144257,
0.5193375945091248,
-0.5008878707885742,
-0.44621285796165466,
0.025431202724575996,
-0.35972562432289124,
1.3623151779174805,
0.2132427841424942,
-0.5442283153533936,
0.09022792428731918,
-0.8588299751281738,
-0.1144300028681755,
0.18808485567569733,
-0.016695396974682808,
-0.27752989530563354,
-0.30079618096351624,
0.17204499244689941,
0.3925398290157318,
0.13623610138893127,
-0.6895765662193298,
0.31648609042167664,
-0.488579660654068,
0.3539218306541443,
0.43133726716041565,
0.024685325101017952,
0.46803006529808044,
-0.3546783924102783,
0.3855995237827301,
0.12181036174297333,
0.29178136587142944,
0.042918041348457336,
-0.5853478312492371,
-1.0206646919250488,
-0.39206770062446594,
0.5805290341377258,
0.9608544111251831,
-0.580597460269928,
0.6791152358055115,
-0.19282223284244537,
-0.8180404305458069,
-0.494192510843277,
0.11031626164913177,
0.3275395929813385,
0.5979878902435303,
0.4961809515953064,
-0.12901301681995392,
-0.6559633016586304,
-0.8981426358222961,
0.09663619846105576,
-0.06743842363357544,
-0.10059066116809845,
0.07188457995653152,
0.7973425984382629,
-0.5145992636680603,
0.9479997158050537,
-0.510837733745575,
-0.6448084712028503,
-0.2173088788986206,
0.261211633682251,
0.4974707365036011,
0.46225640177726746,
0.8516719937324524,
-0.6545619368553162,
-0.49783045053482056,
-0.25401026010513306,
-0.9033110737800598,
0.0005170012591406703,
-0.07539728283882141,
-0.3123931586742401,
0.41071149706840515,
0.16860929131507874,
-0.5246312618255615,
0.41299566626548767,
0.5800908803939819,
-0.32277002930641174,
0.01664169318974018,
0.033155716955661774,
-0.07889682799577713,
-1.0786041021347046,
0.24337288737297058,
0.1989823877811432,
-0.09415045380592346,
-0.8359493613243103,
0.01502817589789629,
-0.13326066732406616,
-0.008760467171669006,
-0.7009139060974121,
0.5570888519287109,
-0.16017331182956696,
0.3308551013469696,
-0.20588159561157227,
0.07778897136449814,
0.10708312690258026,
0.5994485020637512,
0.18719324469566345,
0.3050116002559662,
0.8409821391105652,
-0.5924297571182251,
0.15778130292892456,
0.4949784278869629,
-0.1565595269203186,
0.4181484580039978,
-0.8142922520637512,
0.13633912801742554,
-0.26741695404052734,
0.30126267671585083,
-0.5550050139427185,
-0.20176836848258972,
0.56888347864151,
-0.5293570160865784,
0.38082802295684814,
-0.07878409326076508,
-0.45207956433296204,
-0.26241040229797363,
-0.4215933680534363,
0.04961954802274704,
0.6251809000968933,
-0.5700908303260803,
0.396690309047699,
0.3347797095775604,
0.191089928150177,
-0.7943226099014282,
-0.7403277158737183,
-0.15047375857830048,
-0.2876739501953125,
-0.4033898413181305,
0.39487800002098083,
0.07045673578977585,
-0.1803552508354187,
0.1369011104106903,
0.10633718222379684,
-0.3168870210647583,
0.07607736438512802,
0.34385982155799866,
0.47717711329460144,
0.07841937988996506,
-0.011029189452528954,
0.05942802503705025,
-0.15482096374034882,
-0.23963607847690582,
-0.17211617529392242,
0.4530669152736664,
-0.018968550488352776,
-0.0771571695804596,
-0.6585537791252136,
0.17993506789207458,
0.5694868564605713,
-0.08966515213251114,
0.8893759846687317,
0.8056015968322754,
-0.41628730297088623,
0.06250667572021484,
-0.4267939031124115,
-0.1595553606748581,
-0.3801772892475128,
0.074698805809021,
-0.19560551643371582,
-0.8035536408424377,
0.44357940554618835,
0.2431451678276062,
0.14747343957424164,
0.8623038530349731,
0.5355788469314575,
0.09874335676431656,
0.7995784878730774,
0.7784335017204285,
-0.3622647821903229,
0.2921223044395447,
-0.7096352577209473,
0.1604742705821991,
-0.744972825050354,
-0.23595573008060455,
-0.59732586145401,
-0.3992496132850647,
-0.7501857876777649,
-0.34552881121635437,
0.022635359317064285,
0.23491975665092468,
-0.45839595794677734,
0.7411412596702576,
-0.820477306842804,
0.4053005874156952,
0.686896026134491,
-0.0366850383579731,
0.22383689880371094,
-0.06347917020320892,
0.34164032340049744,
-0.04905443266034126,
-0.716055691242218,
-0.6064684391021729,
0.9989888668060303,
0.5146143436431885,
0.5532341599464417,
0.1058124229311943,
0.9690583348274231,
0.1101827621459961,
0.3790963888168335,
-0.7772031426429749,
0.28452926874160767,
-0.3812792897224426,
-0.8432837128639221,
-0.2373093217611313,
-0.4347235858440399,
-0.9652127623558044,
0.2291092425584793,
-0.42593011260032654,
-0.8746305108070374,
0.6354131698608398,
0.018124086782336235,
-0.4943774342536926,
0.35155001282691956,
-0.5860242247581482,
0.9310703873634338,
-0.16284576058387756,
-0.20099100470542908,
0.06754210591316223,
-0.6029251217842102,
0.39097824692726135,
-0.08924537152051926,
0.06198016181588173,
-0.34433621168136597,
0.27189433574676514,
0.7768742442131042,
-0.15245530009269714,
1.1215044260025024,
-0.400481641292572,
-0.11201055347919464,
0.3910667598247528,
-0.16184233129024506,
0.16509829461574554,
0.03423239290714264,
-0.2490411102771759,
0.735805332660675,
0.25415077805519104,
-0.3030525743961334,
-0.4980359673500061,
0.8017767667770386,
-0.9225059151649475,
-0.31620416045188904,
-0.7061228156089783,
-0.2239556610584259,
0.15180911123752594,
0.2621282935142517,
0.5086216330528259,
0.24087773263454437,
-0.05924980714917183,
0.24590462446212769,
0.5178077220916748,
-0.2963499426841736,
0.37288782000541687,
0.5465953946113586,
-0.13634900748729706,
-0.20557443797588348,
0.9183889031410217,
0.25662243366241455,
0.025111546739935875,
0.43617522716522217,
0.06687308847904205,
-0.26477789878845215,
-0.29590699076652527,
-0.5030671954154968,
0.16491688787937164,
-0.5703909397125244,
-0.4980138838291168,
-0.9658851623535156,
-0.38612520694732666,
-0.5332422852516174,
-0.026318112388253212,
-0.28589174151420593,
-0.4981629252433777,
-0.6476376056671143,
-0.17304176092147827,
0.5616342425346375,
0.6324018239974976,
-0.0644010454416275,
0.2820846438407898,
-0.719569206237793,
0.24297265708446503,
0.24900224804878235,
0.33802318572998047,
-0.06197888031601906,
-0.7540834546089172,
0.05809620022773743,
0.12203691899776459,
-0.5662639737129211,
-1.018073320388794,
0.6780767440795898,
0.21320536732673645,
0.30582842230796814,
0.2426205277442932,
0.27032288908958435,
0.5347525477409363,
-0.40998128056526184,
0.7443078756332397,
0.18451815843582153,
-1.0302976369857788,
0.5636458992958069,
-0.26204946637153625,
0.1955500692129135,
0.7467889785766602,
0.7311092615127563,
-0.36506935954093933,
-0.5075678825378418,
-0.7811287641525269,
-1.0106359720230103,
0.7983471751213074,
0.4672393798828125,
0.23568791151046753,
-0.0072432891465723515,
0.385020911693573,
-0.03593993932008743,
0.10817267000675201,
-0.9215821623802185,
-0.3349044620990753,
-0.26936519145965576,
-0.2599150538444519,
0.08017207682132721,
-0.17450205981731415,
0.00014268718950916082,
-0.5054613947868347,
1.0105466842651367,
-0.08905524015426636,
0.2438293844461441,
0.44996508955955505,
-0.027697186917066574,
0.025046156719326973,
0.4186110198497772,
0.47535890340805054,
0.37300384044647217,
-0.5065284967422485,
-0.10686294734477997,
0.2716330885887146,
-0.14154790341854095,
0.16118831932544708,
0.24789558351039886,
-0.5571978688240051,
0.15068009495735168,
0.2841544449329376,
1.099881649017334,
-0.05546552315354347,
-0.4797913134098053,
0.6707090139389038,
-0.0071413819678127766,
-0.5561493635177612,
-0.5334096550941467,
0.126142218708992,
-0.11442369967699051,
0.3568296730518341,
0.23530258238315582,
0.11841198801994324,
0.30410534143447876,
-0.5592546463012695,
0.18445293605327606,
0.4145698547363281,
-0.5560261011123657,
-0.243363618850708,
0.684966504573822,
0.1436000019311905,
-0.13584889471530914,
0.5537803173065186,
-0.4869405925273895,
-0.48434534668922424,
0.6169552803039551,
0.34816908836364746,
0.918826162815094,
0.08401616662740707,
0.4572044909000397,
0.6764245629310608,
0.2873424291610718,
-0.048423588275909424,
0.15890023112297058,
0.25498563051223755,
-0.7686456441879272,
-0.5516883134841919,
-0.6947370767593384,
-0.41122254729270935,
0.49029597640037537,
-0.5788062810897827,
0.5281636714935303,
-0.4951685070991516,
-0.1642674058675766,
0.2850952446460724,
-0.011564669199287891,
-0.6894763112068176,
0.22005683183670044,
0.3143180012702942,
0.7707622647285461,
-1.146887183189392,
0.8627105355262756,
0.4887065291404724,
-0.6688251495361328,
-0.6949383020401001,
-0.06394932419061661,
0.08461463451385498,
-0.3682584762573242,
0.89394611120224,
0.51254802942276,
-0.051868557929992676,
-0.11684557050466537,
-0.659271776676178,
-0.8766912221908569,
1.147309422492981,
0.408407986164093,
-0.7424468398094177,
-0.04387357085943222,
-0.049368295818567276,
0.6719752550125122,
-0.2598114013671875,
0.4348105490207672,
0.5323720574378967,
0.4631201922893524,
0.16427116096019745,
-0.9241563677787781,
0.022713543847203255,
-0.28105926513671875,
-0.14378733932971954,
0.0736924484372139,
-0.7142311334609985,
0.9120200872421265,
-0.029085369780659676,
-0.25272586941719055,
-0.06059896573424339,
0.43654757738113403,
0.07796742022037506,
0.44960150122642517,
0.5083232522010803,
0.8356543779373169,
0.7321860194206238,
-0.16165456175804138,
0.8691313862800598,
-0.2765551507472992,
0.6170933246612549,
1.181143879890442,
-0.49511370062828064,
0.9534687399864197,
0.20261014997959137,
-0.07176098972558975,
0.7882669568061829,
0.5262513756752014,
-0.4432227909564972,
0.3990270495414734,
0.05610135197639465,
-0.04616156965494156,
-0.09253162890672684,
-0.1895516812801361,
-0.2709046006202698,
0.6582669615745544,
0.02613469399511814,
-0.38858693838119507,
-0.23387543857097626,
-0.000244574504904449,
0.2175724357366562,
-0.09551136940717697,
0.06331662833690643,
0.8314298391342163,
-0.060072630643844604,
-0.506560742855072,
0.8657107949256897,
-0.005629800260066986,
0.9573105573654175,
-0.30496975779533386,
-0.11661510169506073,
-0.02400004304945469,
0.2823399007320404,
-0.435529500246048,
-0.586863100528717,
0.5553228259086609,
0.2320803850889206,
-0.3139984905719757,
-0.10506706684827805,
0.6153395175933838,
-0.3408064842224121,
-0.5944521427154541,
0.5265406370162964,
0.5046226978302002,
0.17484456300735474,
-0.12541644275188446,
-0.8360356092453003,
-0.05429597571492195,
0.082536980509758,
-0.15647034347057343,
0.2662819027900696,
0.21056465804576874,
0.1051446869969368,
0.4968418776988983,
0.6358834505081177,
-0.10910885781049728,
-0.24452434480190277,
0.09651005268096924,
0.8334513902664185,
-0.6202694177627563,
-0.02423432655632496,
-0.9541266560554504,
0.5095791816711426,
-0.23854249715805054,
-0.3158782720565796,
0.7261043190956116,
0.5233424305915833,
0.8831598162651062,
-0.09881141036748886,
0.6908434629440308,
-0.3512688875198364,
0.5491210222244263,
-0.32207053899765015,
0.6720187067985535,
-0.6660416722297668,
-0.08170726895332336,
-0.38616982102394104,
-0.9416709542274475,
-0.5365645885467529,
0.719537615776062,
-0.20825839042663574,
-0.20305080711841583,
0.4290989637374878,
0.6279218792915344,
0.04439855366945267,
-0.12607479095458984,
0.13786189258098602,
0.05498189106583595,
0.24983564019203186,
0.6007815599441528,
0.5067031383514404,
-0.7060040235519409,
0.40959855914115906,
-0.5760584473609924,
-0.30877843499183655,
-0.025034569203853607,
-0.824237048625946,
-1.0129272937774658,
-0.38904044032096863,
-0.5808627009391785,
-0.2757246494293213,
-0.12374594807624817,
0.9552862644195557,
0.77791827917099,
-1.011550784111023,
0.041531048715114594,
-0.2104942351579666,
-0.030058495700359344,
-0.023549510166049004,
-0.3188977539539337,
0.32325655221939087,
-0.17662766575813293,
-1.0484758615493774,
0.12344877421855927,
0.11421317607164383,
0.18283796310424805,
-0.22937169671058655,
0.10687051713466644,
-0.4781469702720642,
0.06671964377164841,
0.6509378552436829,
0.27928417921066284,
-0.5800755023956299,
-0.18773150444030762,
0.29865530133247375,
-0.007891958579421043,
0.00543451402336359,
0.30257391929626465,
-0.8289193511009216,
0.1740841120481491,
0.4935256540775299,
0.4711442291736603,
0.4901414215564728,
-0.1520935744047165,
0.14243754744529724,
-0.6242188215255737,
0.3502022922039032,
0.1885821372270584,
0.23766201734542847,
0.34409862756729126,
-0.48691922426223755,
0.6538874506950378,
0.12417314946651459,
-0.5792474150657654,
-0.6841545701026917,
0.14962886273860931,
-1.0071429014205933,
-0.28934258222579956,
1.1096712350845337,
-0.17322520911693573,
-0.307331919670105,
-0.020003829151391983,
-0.23587973415851593,
0.3906257450580597,
-0.47169002890586853,
0.7411152720451355,
0.570826530456543,
-0.1831425130367279,
-0.18328739702701569,
-0.6213030219078064,
0.3579133450984955,
0.41020041704177856,
-0.8200836777687073,
-0.08175968378782272,
0.4674786329269409,
0.28599753975868225,
0.6023405194282532,
0.657382071018219,
-0.038700170814991,
-0.054672721773386,
-0.2260562926530838,
0.158704936504364,
0.1573471575975418,
-0.3413418233394623,
-0.5375346541404724,
-0.02343529462814331,
-0.12742334604263306,
-0.17591635882854462
] |
Helsinki-NLP/opus-mt-en-ROMANCE
|
Helsinki-NLP
| 2023-08-16T11:28:52Z | 8,061 | 6 |
transformers
|
[
"transformers",
"pytorch",
"tf",
"jax",
"rust",
"marian",
"text2text-generation",
"translation",
"en",
"roa",
"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-ROMANCE
* source languages: en
* target languages: fr,fr_BE,fr_CA,fr_FR,wa,frp,oc,ca,rm,lld,fur,lij,lmo,es,es_AR,es_CL,es_CO,es_CR,es_DO,es_EC,es_ES,es_GT,es_HN,es_MX,es_NI,es_PA,es_PE,es_PR,es_SV,es_UY,es_VE,pt,pt_br,pt_BR,pt_PT,gl,lad,an,mwl,it,it_IT,co,nap,scn,vec,sc,ro,la
* OPUS readme: [en-fr+fr_BE+fr_CA+fr_FR+wa+frp+oc+ca+rm+lld+fur+lij+lmo+es+es_AR+es_CL+es_CO+es_CR+es_DO+es_EC+es_ES+es_GT+es_HN+es_MX+es_NI+es_PA+es_PE+es_PR+es_SV+es_UY+es_VE+pt+pt_br+pt_BR+pt_PT+gl+lad+an+mwl+it+it_IT+co+nap+scn+vec+sc+ro+la](https://github.com/Helsinki-NLP/OPUS-MT-train/blob/master/models/en-fr+fr_BE+fr_CA+fr_FR+wa+frp+oc+ca+rm+lld+fur+lij+lmo+es+es_AR+es_CL+es_CO+es_CR+es_DO+es_EC+es_ES+es_GT+es_HN+es_MX+es_NI+es_PA+es_PE+es_PR+es_SV+es_UY+es_VE+pt+pt_br+pt_BR+pt_PT+gl+lad+an+mwl+it+it_IT+co+nap+scn+vec+sc+ro+la/README.md)
* dataset: opus
* model: transformer
* pre-processing: normalization + SentencePiece
* a sentence initial language token is required in the form of `>>id<<` (id = valid target language ID)
* download original weights: [opus-2020-04-21.zip](https://object.pouta.csc.fi/OPUS-MT-models/en-fr+fr_BE+fr_CA+fr_FR+wa+frp+oc+ca+rm+lld+fur+lij+lmo+es+es_AR+es_CL+es_CO+es_CR+es_DO+es_EC+es_ES+es_GT+es_HN+es_MX+es_NI+es_PA+es_PE+es_PR+es_SV+es_UY+es_VE+pt+pt_br+pt_BR+pt_PT+gl+lad+an+mwl+it+it_IT+co+nap+scn+vec+sc+ro+la/opus-2020-04-21.zip)
* test set translations: [opus-2020-04-21.test.txt](https://object.pouta.csc.fi/OPUS-MT-models/en-fr+fr_BE+fr_CA+fr_FR+wa+frp+oc+ca+rm+lld+fur+lij+lmo+es+es_AR+es_CL+es_CO+es_CR+es_DO+es_EC+es_ES+es_GT+es_HN+es_MX+es_NI+es_PA+es_PE+es_PR+es_SV+es_UY+es_VE+pt+pt_br+pt_BR+pt_PT+gl+lad+an+mwl+it+it_IT+co+nap+scn+vec+sc+ro+la/opus-2020-04-21.test.txt)
* test set scores: [opus-2020-04-21.eval.txt](https://object.pouta.csc.fi/OPUS-MT-models/en-fr+fr_BE+fr_CA+fr_FR+wa+frp+oc+ca+rm+lld+fur+lij+lmo+es+es_AR+es_CL+es_CO+es_CR+es_DO+es_EC+es_ES+es_GT+es_HN+es_MX+es_NI+es_PA+es_PE+es_PR+es_SV+es_UY+es_VE+pt+pt_br+pt_BR+pt_PT+gl+lad+an+mwl+it+it_IT+co+nap+scn+vec+sc+ro+la/opus-2020-04-21.eval.txt)
## Benchmarks
| testset | BLEU | chr-F |
|-----------------------|-------|-------|
| Tatoeba.en.la | 50.1 | 0.693 |
|
[
-0.3718787729740143,
-0.5825792551040649,
0.2655680775642395,
0.4973444938659668,
-0.392014741897583,
-0.2567986845970154,
-0.25298985838890076,
-0.17099544405937195,
0.24998757243156433,
0.4754541516304016,
-0.8293007016181946,
-0.8021332621574402,
-0.48017168045043945,
0.35602816939353943,
-0.005412825848907232,
0.8173360824584961,
-0.1353793740272522,
0.38973867893218994,
0.39608442783355713,
-0.3500336706638336,
-0.33215147256851196,
-0.4745883345603943,
-0.3048560619354248,
-0.23738133907318115,
0.2660257816314697,
0.4864186644554138,
0.44740810990333557,
0.6046549081802368,
1.009397268295288,
0.2953159511089325,
-0.2967246472835541,
-0.028542649000883102,
-0.5083764791488647,
-0.23221313953399658,
0.3881390690803528,
-0.5996023416519165,
-0.855925440788269,
-0.09104933589696884,
1.1871998310089111,
0.37602633237838745,
0.15309010446071625,
0.33412376046180725,
-0.08133408427238464,
1.261684536933899,
-0.1686943918466568,
-0.06454949080944061,
-0.34516048431396484,
0.23675313591957092,
-0.35141199827194214,
-0.356001079082489,
-0.6997171640396118,
-0.2555369734764099,
0.10515549033880234,
-0.794216513633728,
-0.06674011051654816,
0.26787909865379333,
1.6311893463134766,
0.1558467149734497,
-0.3524706959724426,
-0.17193946242332458,
-0.5367884635925293,
1.2679821252822876,
-0.891776442527771,
0.5530840158462524,
0.20753078162670135,
0.03626178950071335,
0.0775010883808136,
-0.5123447179794312,
-0.5770481824874878,
-0.09162954986095428,
-0.45680180191993713,
0.4007728695869446,
-0.1174187883734703,
-0.015634307637810707,
0.5940283536911011,
0.8608558773994446,
-0.8942187428474426,
-0.06401095539331436,
-0.8049634695053101,
-0.09171166270971298,
0.756089985370636,
0.1302354335784912,
0.3500385880470276,
-0.12433086335659027,
-0.6963079571723938,
-0.5285364389419556,
-1.0042158365249634,
0.43772706389427185,
0.33456841111183167,
0.29161229729652405,
-0.610444188117981,
0.7246939539909363,
-0.05220302194356918,
0.7470523715019226,
0.03240141645073891,
-0.14002016186714172,
0.9277709722518921,
-0.6090455651283264,
-0.4492318034172058,
-0.23125700652599335,
1.3090063333511353,
0.505443811416626,
0.29148489236831665,
0.11314821243286133,
-0.1467622071504593,
-0.05443372204899788,
-0.1846083253622055,
-1.027296781539917,
-0.01063662488013506,
0.3174222409725189,
-0.44308480620384216,
-0.028578877449035645,
-0.03921902924776077,
-0.7498749494552612,
0.24512836337089539,
-0.3486056327819824,
0.5207614898681641,
-0.7453619241714478,
-0.19929175078868866,
0.3531482219696045,
-0.12968365848064423,
0.6217113137245178,
0.039073504507541656,
-0.5672951936721802,
0.10624096542596817,
0.33158451318740845,
0.7259917259216309,
-0.46450918912887573,
-0.46687549352645874,
-0.7104698419570923,
-0.14674171805381775,
-0.31996259093284607,
0.6406062841415405,
-0.2865056097507477,
-0.6931419372558594,
0.094096839427948,
0.501562237739563,
-0.3670457899570465,
-0.23894837498664856,
1.178950309753418,
-0.2757439613342285,
0.7075960636138916,
-0.5849296450614929,
-0.6022636294364929,
-0.3993632197380066,
0.3393501937389374,
-0.6942218542098999,
1.5177758932113647,
0.07622888684272766,
-0.8885290026664734,
0.2061651200056076,
-0.7569926977157593,
-0.3278120160102844,
-0.20302292704582214,
-0.09789184480905533,
-0.5423423051834106,
-0.009798037819564342,
0.1259138584136963,
0.4370303153991699,
-0.4058319628238678,
0.03246206417679787,
0.17983849346637726,
-0.4706101417541504,
0.1468200385570526,
-0.28333672881126404,
1.2025415897369385,
0.15638868510723114,
-0.5227645039558411,
0.3113544285297394,
-1.1646026372909546,
0.08209628611803055,
0.08749768882989883,
-0.4979556202888489,
-0.3067476153373718,
-0.11169923841953278,
0.19373077154159546,
0.16839170455932617,
0.20609994232654572,
-0.6377876996994019,
0.2785188555717468,
-0.7899031639099121,
0.1190488338470459,
0.7265834808349609,
-0.0629444271326065,
0.48008766770362854,
-0.5631716251373291,
0.6122255325317383,
0.06636381894350052,
-0.041822392493486404,
-0.12525558471679688,
-0.4885912835597992,
-1.0508922338485718,
-0.3453484773635864,
0.2970062792301178,
1.1650245189666748,
-0.7620892524719238,
0.8506566286087036,
-0.5096233487129211,
-0.8444902300834656,
-0.6304012537002563,
-0.06338153779506683,
0.94379061460495,
0.26345953345298767,
0.48097819089889526,
-0.16665509343147278,
-0.33433228731155396,
-1.1675262451171875,
-0.22706815600395203,
-0.2847904562950134,
0.14031775295734406,
0.3004782795906067,
0.7627175450325012,
0.026821281760931015,
0.4732579290866852,
-0.6475237011909485,
-0.5230280756950378,
-0.24590666592121124,
0.006963086314499378,
0.6488155126571655,
0.7174018621444702,
0.7574541568756104,
-0.9132434129714966,
-0.8490313291549683,
0.12497927248477936,
-0.6365530490875244,
-0.01288099866360426,
0.0008610557997599244,
-0.3314683437347412,
0.14523160457611084,
0.24925127625465393,
-0.31310567259788513,
0.22671571373939514,
0.6888370513916016,
-0.7048090100288391,
0.8801088333129883,
-0.2730236053466797,
0.5234220623970032,
-1.297537088394165,
0.10153081268072128,
-0.17315097153186798,
0.11633159965276718,
-0.7622309923171997,
0.10434830188751221,
0.10177053511142731,
0.17706705629825592,
-0.8300579786300659,
0.8313827514648438,
-0.724108874797821,
0.07503761351108551,
0.5265121459960938,
0.19274775683879852,
0.20336227118968964,
1.07291579246521,
-0.07841905206441879,
1.125520944595337,
0.7804534435272217,
-0.6045194864273071,
0.18714626133441925,
0.5950592160224915,
-0.4328628480434418,
0.5376185178756714,
-0.9336328506469727,
-0.3603459894657135,
0.34339722990989685,
-0.30808502435684204,
-0.9982948303222656,
-0.0030118178110569715,
0.13070303201675415,
-0.7145504951477051,
0.3738783299922943,
-0.004936194978654385,
-0.6092443466186523,
-0.16888204216957092,
-0.4077209532260895,
0.36288803815841675,
0.6988968253135681,
-0.13796734809875488,
0.6547015309333801,
0.08009666204452515,
-0.03540720418095589,
-0.5921176671981812,
-1.2199134826660156,
-0.2780718207359314,
-0.33694988489151,
-0.9418609738349915,
0.3480289876461029,
-0.5559779405593872,
-0.28849607706069946,
-0.010702194646000862,
0.26977524161338806,
-0.08144022524356842,
0.03276510909199715,
0.01710699126124382,
0.36222603917121887,
-0.6583623886108398,
0.07205664366483688,
0.06633657217025757,
-0.15999417006969452,
-0.2625598609447479,
0.08614297956228256,
0.7998839020729065,
-0.6519805788993835,
-0.4299355447292328,
-0.6988788843154907,
0.20937247574329376,
0.9203853607177734,
-0.7003691792488098,
0.726421594619751,
0.658719003200531,
0.02826673910021782,
0.2501490116119385,
-0.4988679885864258,
-0.058922331780195236,
-0.48703035712242126,
0.19839268922805786,
-0.5459114909172058,
-0.9840965270996094,
1.0524529218673706,
0.3144046664237976,
0.46943992376327515,
1.027292013168335,
0.5864189267158508,
0.1800888031721115,
0.7207508683204651,
0.47577232122421265,
-0.019282441586256027,
0.4814409613609314,
-0.7834779024124146,
-0.36748623847961426,
-1.2061598300933838,
0.20410685241222382,
-0.7034016847610474,
-0.275143563747406,
-0.9688675999641418,
-0.4117017388343811,
0.4718002378940582,
0.025371447205543518,
-0.18282654881477356,
0.6057434678077698,
-0.5710551142692566,
0.3314334750175476,
0.6716970205307007,
-0.18850275874137878,
0.4465143084526062,
0.11083529889583588,
-0.6118403673171997,
-0.3129194676876068,
-0.43371209502220154,
-0.5017284154891968,
1.389009714126587,
0.28513824939727783,
0.2177848517894745,
0.46811193227767944,
0.5942946672439575,
0.14198899269104004,
0.16338253021240234,
-0.6819856762886047,
0.6753454208374023,
-0.38985490798950195,
-0.9978638887405396,
-0.45840397477149963,
-0.36127620935440063,
-0.6874260902404785,
0.6253435015678406,
-0.15496926009655,
-0.8048409223556519,
0.48143333196640015,
-0.1239585429430008,
-0.3623739778995514,
0.3149614930152893,
-0.7189013361930847,
1.191167950630188,
-0.20817959308624268,
-0.46821504831314087,
0.11068116128444672,
-0.648112952709198,
0.45178452134132385,
0.10025008022785187,
0.1796068698167801,
-0.2421855628490448,
0.10762421041727066,
0.8585227727890015,
-0.11090049892663956,
0.40198785066604614,
0.2604755163192749,
-0.18798252940177917,
0.27383899688720703,
0.2284259796142578,
0.7267512083053589,
-0.11895640194416046,
-0.4582350254058838,
0.2209179401397705,
0.07092680782079697,
-0.38996565341949463,
-0.1468200534582138,
0.596496045589447,
-0.723315417766571,
-0.38535135984420776,
-0.7261101603507996,
-0.620280385017395,
0.10790504515171051,
0.5165435075759888,
0.6191705465316772,
1.011566400527954,
-0.3343023359775543,
0.605844259262085,
0.9951527714729309,
-0.4709208905696869,
0.5081499814987183,
0.916333794593811,
-0.3474512994289398,
-0.8505109548568726,
0.9814319610595703,
0.09617707878351212,
0.652281641960144,
0.6830924153327942,
0.09920424968004227,
-0.1927172988653183,
-0.6553433537483215,
-0.9203688502311707,
0.47710171341896057,
-0.4229012429714203,
0.013088857755064964,
-0.5879248976707458,
-0.09181388467550278,
-0.3775925636291504,
-0.16534283757209778,
-0.3468260169029236,
-0.42852693796157837,
-0.2624208927154541,
-0.23282241821289062,
0.3978559076786041,
0.2586948275566101,
0.005861352197825909,
0.6456851959228516,
-1.1123441457748413,
0.1921505182981491,
-0.17840386927127838,
0.22571413218975067,
-0.533708930015564,
-0.8574700355529785,
-0.3373394012451172,
-0.050069935619831085,
-0.4278188645839691,
-1.2664847373962402,
0.7193355560302734,
0.22477427124977112,
0.383186936378479,
0.5020216703414917,
0.19818517565727234,
0.53419029712677,
-0.8306466937065125,
1.21531081199646,
0.05080176517367363,
-0.804177463054657,
0.5423206090927124,
-0.6971223950386047,
0.24291673302650452,
1.0140438079833984,
0.26526492834091187,
-0.47375574707984924,
-0.608878493309021,
-0.8757568597793579,
-0.8993518948554993,
1.1389782428741455,
0.7333401441574097,
-0.14480547606945038,
0.2912263870239258,
-0.13974525034427643,
-0.27819713950157166,
0.15975283086299896,
-1.2343385219573975,
-0.7439436912536621,
0.374218612909317,
-0.1385773867368698,
-0.19098655879497528,
-0.5353518724441528,
-0.2966718375682831,
-0.31853747367858887,
1.2815977334976196,
0.2681865692138672,
0.29742592573165894,
0.5554302930831909,
0.05605650693178177,
-0.1915958821773529,
0.41646918654441833,
1.119633436203003,
0.45145195722579956,
-0.5054977536201477,
-0.2224092036485672,
0.2612701952457428,
-0.5022398829460144,
-0.008535229600965977,
0.08425553888082504,
-0.48038023710250854,
0.29560911655426025,
0.5316497683525085,
1.021627426147461,
0.19433407485485077,
-0.7951990365982056,
0.6419997811317444,
-0.1935347020626068,
-0.4168579578399658,
-0.8221243023872375,
-0.08965417742729187,
0.0028715566731989384,
0.08789904415607452,
0.17736294865608215,
-0.12146042287349701,
0.20207969844341278,
-0.4367271363735199,
0.16748008131980896,
0.17274688184261322,
-0.8773216009140015,
-0.3590989112854004,
0.37497657537460327,
0.15064166486263275,
-0.2889065146446228,
0.3512817919254303,
-0.5015518665313721,
-0.884905993938446,
0.6357137560844421,
0.18402914702892303,
1.1896172761917114,
-0.35833173990249634,
-0.15405583381652832,
0.8517228960990906,
0.7683296203613281,
-0.04986632615327835,
0.7135270833969116,
0.19757941365242004,
-0.5568937063217163,
-0.3798271715641022,
-0.9283914566040039,
-0.04272047430276871,
0.11163203418254852,
-0.7365657091140747,
0.3024580478668213,
0.12874214351177216,
0.0720142275094986,
-0.5035346746444702,
0.2395894080400467,
-0.43413877487182617,
0.01867862418293953,
-0.5069388151168823,
1.1045448780059814,
-1.1433393955230713,
0.8536192774772644,
0.6799650192260742,
-0.7122287750244141,
-1.2321888208389282,
-0.08895108848810196,
-0.12168508768081665,
-0.5367141366004944,
0.7591222524642944,
0.22812409698963165,
0.08560357242822647,
0.1017729863524437,
-0.11282769590616226,
-1.0316146612167358,
1.1567107439041138,
-0.0009630812564864755,
-0.630630612373352,
0.24214251339435577,
0.13666954636573792,
0.7515329122543335,
-0.33004575967788696,
0.30055251717567444,
0.5621943473815918,
0.874977707862854,
0.11664388328790665,
-1.228635549545288,
-0.11628744751214981,
-0.8703193664550781,
-0.4908455014228821,
0.4816816747188568,
-0.8396132588386536,
1.2091503143310547,
0.1935219168663025,
-0.28998368978500366,
0.046563200652599335,
0.7318277955055237,
0.42185258865356445,
0.23465672135353088,
0.48296013474464417,
1.0348378419876099,
0.5500462651252747,
-0.6295789480209351,
1.158121109008789,
-0.5928842425346375,
0.2742488384246826,
1.0569851398468018,
0.01975765824317932,
0.9920005798339844,
0.3108977675437927,
-0.46994203329086304,
0.5970970988273621,
0.5869935750961304,
-0.21611662209033966,
0.3988914489746094,
0.044976040720939636,
-0.10171587765216827,
-0.2679547667503357,
0.0867357850074768,
-0.8394185900688171,
0.18298621475696564,
0.41589975357055664,
-0.478252112865448,
0.19684270024299622,
-0.06475205719470978,
0.27107948064804077,
0.05842732638120651,
-0.11598388850688934,
0.6917361617088318,
0.06696964800357819,
-0.8794681429862976,
1.0267852544784546,
-0.13410602509975433,
0.6094305515289307,
-0.7977803945541382,
0.057836830615997314,
-0.17469504475593567,
0.4005131125450134,
0.045407235622406006,
-0.7315536737442017,
0.3056831657886505,
0.05959106609225273,
-0.3028513193130493,
-0.445211797952652,
0.1764187067747116,
-0.6871515512466431,
-1.0589160919189453,
0.4833225607872009,
0.5354200601577759,
0.382111519575119,
0.052838098257780075,
-0.8451105952262878,
-0.053843818604946136,
0.5143222808837891,
-0.663648247718811,
-0.1433045119047165,
0.7675608396530151,
0.29714861512184143,
0.5313221216201782,
0.7397209405899048,
0.3639397621154785,
0.3707476556301117,
-0.05922968313097954,
0.877336323261261,
-0.6095703840255737,
-0.5118710994720459,
-0.8930042386054993,
0.913500189781189,
-0.04343704134225845,
-0.832984447479248,
0.9632104635238647,
0.972586989402771,
0.8265741467475891,
-0.1787092387676239,
0.45064249634742737,
-0.15258964896202087,
0.6677648425102234,
-0.7616474628448486,
0.646168053150177,
-1.2383954524993896,
0.3488130569458008,
-0.35761865973472595,
-0.960990309715271,
-0.23568883538246155,
0.4663199782371521,
-0.49052634835243225,
-0.32723742723464966,
0.9717170000076294,
0.8975412249565125,
0.13052472472190857,
-0.22057661414146423,
0.3339442014694214,
0.509182333946228,
0.35036617517471313,
0.8342372179031372,
0.44815701246261597,
-1.0973910093307495,
0.6033275723457336,
-0.3558809757232666,
-0.11652562767267227,
-0.3011287748813629,
-0.7031697034835815,
-0.8964818716049194,
-0.6826481819152832,
-0.1905541568994522,
-0.4026307165622711,
-0.24924764037132263,
1.0079933404922485,
0.216712087392807,
-0.926557719707489,
-0.5303123593330383,
0.0046549574472010136,
0.15985555946826935,
-0.28595423698425293,
-0.24916687607765198,
0.9207013845443726,
-0.1926438808441162,
-1.0173394680023193,
0.4408887028694153,
0.17520271241664886,
0.012830985710024834,
-0.2766125202178955,
-0.43373098969459534,
-0.5430669784545898,
0.10626635700464249,
0.36518800258636475,
0.16867265105247498,
-0.8087748289108276,
0.10934929549694061,
0.36382606625556946,
-0.426929771900177,
0.24211803078651428,
0.2538766860961914,
-0.12845344841480255,
0.3542815148830414,
1.1084949970245361,
0.14810128509998322,
0.29419952630996704,
-0.14445623755455017,
0.4695550799369812,
-0.7662626504898071,
0.5033386945724487,
0.2352997362613678,
0.6749894022941589,
0.17485585808753967,
-0.03813185170292854,
0.8268442153930664,
0.3567984402179718,
-0.5425848364830017,
-1.180525541305542,
0.1337960958480835,
-1.439536690711975,
0.004070188384503126,
1.3841596841812134,
-0.28750863671302795,
-0.3731484115123749,
0.27044612169265747,
-0.26482081413269043,
0.08614765107631683,
-0.3645485043525696,
0.2565475106239319,
0.9677074551582336,
0.17881277203559875,
0.2313348799943924,
-0.8086262941360474,
0.5942414999008179,
0.7413278818130493,
-0.7625777125358582,
-0.05923769623041153,
0.6001182198524475,
0.0079390499740839,
0.6199771761894226,
0.7933386564254761,
-0.3892279863357544,
0.2566727101802826,
-0.25487568974494934,
0.46080073714256287,
-0.10991217941045761,
-0.21828436851501465,
-0.21337160468101501,
-0.044653378427028656,
-0.10833122581243515,
-0.2593971788883209
] |
uukuguy/speechless-codellama-orca-13b
|
uukuguy
| 2023-11-18T12:42:20Z | 8,057 | 2 |
transformers
|
[
"transformers",
"pytorch",
"llama",
"text-generation",
"llama-2",
"en",
"dataset:garage-bAInd/Open-Platypus",
"arxiv:2308.12950",
"license:llama2",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-09-04T03:07:26Z |
---
language:
- en
library_name: transformers
pipeline_tag: text-generation
datasets:
- garage-bAInd/Open-Platypus
tags:
- llama-2
license: llama2
---
<p><h1> speechless-codellama-orca-13b </h1></p>
Fine-tune the codellama/CodeLlama-13b-hf with Orca dataset.
Code: https://github.com/uukuguy/speechless
10k samples (7.56%)
| Metric | Value |
| --- | --- |
| ARC | 44.37 |
| HellaSwag | 65.2 |
| MMLU | 43.46 |
| TruthfulQA | 45.94 |
| Average | 49.74 |
# **Code Llama**
Code Llama is a collection of pretrained and fine-tuned generative text models ranging in scale from 7 billion to 34 billion parameters. This is the repository for the base 13B version in the Hugging Face Transformers format. This model is designed for general code synthesis and understanding. Links to other models can be found in the index at the bottom.
| | Base Model | Python | Instruct |
| --- | ----------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
| 7B | [codellama/CodeLlama-7b-hf](https://huggingface.co/codellama/CodeLlama-7b-hf) | [codellama/CodeLlama-7b-Python-hf](https://huggingface.co/codellama/CodeLlama-7b-Python-hf) | [codellama/CodeLlama-7b-Instruct-hf](https://huggingface.co/codellama/CodeLlama-7b-Instruct-hf) |
| 13B | [codellama/CodeLlama-13b-hf](https://huggingface.co/codellama/CodeLlama-13b-hf) | [codellama/CodeLlama-13b-Python-hf](https://huggingface.co/codellama/CodeLlama-13b-Python-hf) | [codellama/CodeLlama-13b-Instruct-hf](https://huggingface.co/codellama/CodeLlama-13b-Instruct-hf) |
| 34B | [codellama/CodeLlama-34b-hf](https://huggingface.co/codellama/CodeLlama-34b-hf) | [codellama/CodeLlama-34b-Python-hf](https://huggingface.co/codellama/CodeLlama-34b-Python-hf) | [codellama/CodeLlama-34b-Instruct-hf](https://huggingface.co/codellama/CodeLlama-34b-Instruct-hf) |
## Model Use
To use this model, please make sure to install transformers from `main` until the next version is released:
```bash
pip install git+https://github.com/huggingface/transformers.git@main accelerate
```
Model capabilities:
- [x] Code completion.
- [x] Infilling.
- [ ] Instructions / chat.
- [ ] Python specialist.
```python
from transformers import AutoTokenizer
import transformers
import torch
model = "codellama/CodeLlama-13b-hf"
tokenizer = AutoTokenizer.from_pretrained(model)
pipeline = transformers.pipeline(
"text-generation",
model=model,
torch_dtype=torch.float16,
device_map="auto",
)
sequences = pipeline(
'import socket\n\ndef ping_exponential_backoff(host: str):',
do_sample=True,
top_k=10,
temperature=0.1,
top_p=0.95,
num_return_sequences=1,
eos_token_id=tokenizer.eos_token_id,
max_length=200,
)
for seq in sequences:
print(f"Result: {seq['generated_text']}")
```
## Model Details
*Note: Use of this model is governed by the Meta license. Meta developed and publicly released the Code Llama family of large language models (LLMs).
**Model Developers** Meta
**Variations** Code Llama comes in three model sizes, and three variants:
* Code Llama: base models designed for general code synthesis and understanding
* Code Llama - Python: designed specifically for Python
* Code Llama - Instruct: for instruction following and safer deployment
All variants are available in sizes of 7B, 13B and 34B parameters.
**This repository contains the base version of the 13B parameters model.**
**Input** Models input text only.
**Output** Models generate text only.
**Model Architecture** Code Llama is an auto-regressive language model that uses an optimized transformer architecture.
**Model Dates** Code Llama and its variants have been trained between January 2023 and July 2023.
**Status** This is a static model trained on an offline dataset. Future versions of Code Llama - Instruct will be released as we improve model safety with community feedback.
**License** A custom commercial license is available at: [https://ai.meta.com/resources/models-and-libraries/llama-downloads/](https://ai.meta.com/resources/models-and-libraries/llama-downloads/)
**Research Paper** More information can be found in the paper "[Code Llama: Open Foundation Models for Code](https://ai.meta.com/research/publications/code-llama-open-foundation-models-for-code/)" or its [arXiv page](https://arxiv.org/abs/2308.12950).
## Intended Use
**Intended Use Cases** Code Llama and its variants is intended for commercial and research use in English and relevant programming languages. The base model Code Llama can be adapted for a variety of code synthesis and understanding tasks, Code Llama - Python is designed specifically to handle the Python programming language, and Code Llama - Instruct is intended to be safer to use for code assistant and generation applications.
**Out-of-Scope Uses** Use in any manner that violates applicable laws or regulations (including trade compliance laws). Use in languages other than English. Use in any other way that is prohibited by the Acceptable Use Policy and Licensing Agreement for Code Llama and its variants.
## Hardware and Software
**Training Factors** We used custom training libraries. The training and fine-tuning of the released models have been performed Meta’s Research Super Cluster.
**Carbon Footprint** In aggregate, training all 9 Code Llama models required 400K GPU hours of computation on hardware of type A100-80GB (TDP of 350-400W). Estimated total emissions were 65.3 tCO2eq, 100% of which were offset by Meta’s sustainability program.
## Training Data
All experiments reported here and the released models have been trained and fine-tuned using the same data as Llama 2 with different weights (see Section 2 and Table 1 in the [research paper](https://ai.meta.com/research/publications/code-llama-open-foundation-models-for-code/) for details).
## Evaluation Results
See evaluations for the main models and detailed ablations in Section 3 and safety evaluations in Section 4 of the research paper.
## Ethical Considerations and Limitations
Code Llama and its variants are a new technology that carries risks with use. Testing conducted to date has been in English, and has not covered, nor could it cover all scenarios. For these reasons, as with all LLMs, Code Llama’s potential outputs cannot be predicted in advance, and the model may in some instances produce inaccurate or objectionable responses to user prompts. Therefore, before deploying any applications of Code Llama, developers should perform safety testing and tuning tailored to their specific applications of the model.
Please see the Responsible Use Guide available available at [https://ai.meta.com/llama/responsible-user-guide](https://ai.meta.com/llama/responsible-user-guide).
# [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_uukuguy__speechless-codellama-orca-13b)
| Metric | Value |
|-----------------------|---------------------------|
| Avg. | 44.43 |
| ARC (25-shot) | 46.33 |
| HellaSwag (10-shot) | 67.71 |
| MMLU (5-shot) | 47.19 |
| TruthfulQA (0-shot) | 46.66 |
| Winogrande (5-shot) | 63.77 |
| GSM8K (5-shot) | 5.99 |
| DROP (3-shot) | 33.34 |
|
[
-0.32860520482063293,
-0.7062028050422668,
0.26060882210731506,
0.5090464353561401,
-0.22431571781635284,
0.12708550691604614,
-0.1355861872434616,
-0.6220772862434387,
0.32757505774497986,
0.4209865927696228,
-0.3912474513053894,
-0.7371014356613159,
-0.6017798781394958,
0.24464848637580872,
-0.44569554924964905,
1.1097253561019897,
-0.049168381839990616,
-0.3681972920894623,
-0.15000395476818085,
-0.0316031277179718,
-0.3212772607803345,
-0.5274605751037598,
-0.28035756945610046,
-0.43020498752593994,
0.2572188675403595,
0.361257404088974,
0.6845055222511292,
0.6269875168800354,
0.5850078463554382,
0.3652348816394806,
-0.2964574992656708,
0.1151900514960289,
-0.41761305928230286,
-0.3437664210796356,
0.2563800513744354,
-0.5513315796852112,
-0.8132792115211487,
-0.017313063144683838,
0.3755982518196106,
0.33518239855766296,
-0.30302947759628296,
0.44751065969467163,
-0.0799713134765625,
0.531597375869751,
-0.2821267545223236,
0.2686886489391327,
-0.6464283466339111,
-0.038212571293115616,
-0.023030871525406837,
-0.2321747988462448,
-0.17391426861286163,
-0.5316911935806274,
-0.12405458092689514,
-0.4608002007007599,
-0.05571787804365158,
0.008694359101355076,
1.2007949352264404,
0.5075731873512268,
-0.2169770449399948,
-0.24599340558052063,
-0.27097228169441223,
0.8026968240737915,
-0.9831410646438599,
0.04192592203617096,
0.33103424310684204,
-0.10511071234941483,
-0.22626148164272308,
-0.7922098636627197,
-0.666016161441803,
-0.34348174929618835,
-0.1387217789888382,
0.11718020588159561,
-0.4046671688556671,
-0.02483111433684826,
0.364101767539978,
0.5320648550987244,
-0.5002121329307556,
0.16945992410182953,
-0.3953757882118225,
-0.24495898187160492,
0.9683509469032288,
0.2487366944551468,
0.393128901720047,
-0.3072114884853363,
-0.36322662234306335,
-0.11196606606245041,
-0.7525046467781067,
0.1565219610929489,
0.472909539937973,
-0.059994835406541824,
-0.7794938087463379,
0.7153924107551575,
-0.22354771196842194,
0.5822829008102417,
0.09433971345424652,
-0.568746030330658,
0.6182284355163574,
-0.36103832721710205,
-0.32522454857826233,
-0.16952446103096008,
0.9630505442619324,
0.5490854978561401,
0.2759840190410614,
0.10197887569665909,
-0.18646122515201569,
0.30245697498321533,
0.004879957064986229,
-0.8438184857368469,
-0.16501055657863617,
0.33262693881988525,
-0.6121869087219238,
-0.6348820328712463,
-0.19140030443668365,
-0.8137506246566772,
-0.06824051588773727,
-0.030494440346956253,
0.15738806128501892,
-0.22592617571353912,
-0.39626768231391907,
0.30568474531173706,
0.07853911817073822,
0.43883800506591797,
0.11502530425786972,
-0.8296909332275391,
0.10109514743089676,
0.43508240580558777,
0.7893800735473633,
-0.022378990426659584,
-0.4389536678791046,
0.03784579783678055,
-0.1958531141281128,
-0.32789376378059387,
0.6787256002426147,
-0.3590036928653717,
-0.48108839988708496,
-0.21230177581310272,
0.0951775386929512,
-0.061015959829092026,
-0.5082893371582031,
0.30471354722976685,
-0.28409239649772644,
-0.0018556721042841673,
0.06622546911239624,
-0.3655134439468384,
-0.3522116243839264,
0.02791973017156124,
-0.502943754196167,
1.2359652519226074,
0.2105962038040161,
-0.7556734681129456,
0.026330694556236267,
-0.6300323605537415,
-0.28699228167533875,
-0.27786096930503845,
-0.05876835435628891,
-0.7354404926300049,
-0.08319795876741409,
0.29224029183387756,
0.5395007729530334,
-0.34817373752593994,
0.3577112853527069,
-0.21107293665409088,
-0.3914271891117096,
0.2268952578306198,
-0.16449075937271118,
1.069822907447815,
0.3190796971321106,
-0.539272665977478,
0.19423294067382812,
-0.8807659149169922,
-0.047195564955472946,
0.5468640327453613,
-0.4960521459579468,
0.18447338044643402,
-0.17083173990249634,
0.013042652979493141,
0.008532362058758736,
0.5118957757949829,
-0.34567737579345703,
0.45742881298065186,
-0.443818062543869,
0.7381431460380554,
0.7289014458656311,
0.026453882455825806,
0.337043434381485,
-0.546420156955719,
0.7120141983032227,
-0.0705956444144249,
0.24485652148723602,
-0.2049446552991867,
-0.7736344933509827,
-1.0318562984466553,
-0.33651864528656006,
0.07787654548883438,
0.6828237175941467,
-0.45838692784309387,
0.756241500377655,
-0.06016197428107262,
-0.8128967881202698,
-0.5789250731468201,
0.20635567605495453,
0.43742087483406067,
0.4363652467727661,
0.37834736704826355,
-0.23130254447460175,
-0.7704343795776367,
-0.8084099292755127,
0.10842403024435043,
-0.4477478861808777,
0.18575096130371094,
0.3024059534072876,
0.8188210129737854,
-0.5145723819732666,
0.8430055975914001,
-0.5456871390342712,
-0.177305668592453,
-0.30657073855400085,
-0.2812564969062805,
0.6034308671951294,
0.5808485746383667,
0.703153669834137,
-0.5480832457542419,
-0.3069614768028259,
0.031704120337963104,
-0.944551408290863,
-0.1672981083393097,
-0.19749455153942108,
-0.09600120782852173,
0.3987121880054474,
0.31736472249031067,
-0.5807668566703796,
0.6037459373474121,
0.7808647751808167,
-0.32955291867256165,
0.6539428234100342,
-0.15799789130687714,
-0.043237846344709396,
-1.001612663269043,
0.26946866512298584,
-0.10356701165437698,
-0.055673107504844666,
-0.421345978975296,
0.316034734249115,
0.08076677471399307,
0.14741045236587524,
-0.5413092374801636,
0.4218060076236725,
-0.4190690219402313,
-0.030648745596408844,
-0.11790702491998672,
-0.10970454663038254,
-0.03988049924373627,
0.7595083713531494,
-0.04293999448418617,
0.9241567850112915,
0.6087103486061096,
-0.5335507988929749,
0.40468278527259827,
0.3410662114620209,
-0.38093996047973633,
0.2343224436044693,
-0.9411484599113464,
0.25827011466026306,
0.1413714438676834,
0.3812231719493866,
-0.9186024069786072,
-0.1964113563299179,
0.34675145149230957,
-0.5678966641426086,
0.05994148924946785,
0.004016919992864132,
-0.5568057298660278,
-0.5274778008460999,
-0.30160585045814514,
0.4113575518131256,
0.8337520956993103,
-0.6008409857749939,
0.34423205256462097,
0.4295801818370819,
0.17128193378448486,
-0.6550635695457458,
-0.7107313275337219,
0.10321983695030212,
-0.5022953152656555,
-0.7677491903305054,
0.4334772825241089,
-0.29668259620666504,
-0.12812891602516174,
-0.17595946788787842,
0.02760416269302368,
0.06067044660449028,
0.2895854711532593,
0.49673858284950256,
0.4801033139228821,
-0.12199180573225021,
-0.22448252141475677,
-0.11512026190757751,
-0.20032304525375366,
0.07359952479600906,
0.09169715642929077,
0.7462941408157349,
-0.43546655774116516,
-0.23251332342624664,
-0.6622045040130615,
0.040607601404190063,
0.4920809268951416,
-0.22255487740039825,
0.6416205763816833,
0.48039934039115906,
-0.31538060307502747,
-0.0009535886347293854,
-0.6363009214401245,
0.0011424635304138064,
-0.5568829774856567,
0.25899529457092285,
-0.26738885045051575,
-0.8398155570030212,
0.7759279608726501,
0.17309436202049255,
0.15674321353435516,
0.555853009223938,
0.8214534521102905,
0.04267307370901108,
0.7411361932754517,
0.8593706488609314,
-0.429123193025589,
0.3684349060058594,
-0.6774477362632751,
0.08932692557573318,
-0.7867328524589539,
-0.4901290535926819,
-0.5528091192245483,
-0.16978901624679565,
-0.6960992217063904,
-0.38882046937942505,
0.4059794843196869,
0.18005257844924927,
-0.40253746509552,
0.7243679761886597,
-0.8332437872886658,
0.39762741327285767,
0.4208887815475464,
0.16449666023254395,
0.3630051016807556,
0.040873605757951736,
-0.1262824684381485,
0.20326106250286102,
-0.505137026309967,
-0.6500586271286011,
1.2121272087097168,
0.48511236906051636,
0.9405956268310547,
-0.07242783159017563,
0.8514767289161682,
0.06945916265249252,
0.30611735582351685,
-0.6057842969894409,
0.5987896919250488,
0.283801406621933,
-0.46770304441452026,
-0.0518333837389946,
-0.30990931391716003,
-0.9548692107200623,
0.15796948969364166,
0.0205532293766737,
-0.8517332077026367,
0.09649834781885147,
0.04428218677639961,
-0.3181125223636627,
0.3270108699798584,
-0.6759612560272217,
0.681900680065155,
-0.14690257608890533,
-0.037307243794202805,
-0.07796008139848709,
-0.5722246170043945,
0.5176870822906494,
-0.016175569966435432,
0.18426448106765747,
-0.20775672793388367,
-0.22372767329216003,
0.7100591659545898,
-0.5832414627075195,
1.0367581844329834,
0.12211278825998306,
-0.4332652986049652,
0.5684081315994263,
-0.0649733692407608,
0.45728209614753723,
0.07218055427074432,
-0.2371421754360199,
0.6687023639678955,
-0.1168825551867485,
-0.31414783000946045,
-0.0840068906545639,
0.6874880790710449,
-1.0561221837997437,
-0.7181110382080078,
-0.4111994802951813,
-0.3977111577987671,
0.28009411692619324,
0.07946647703647614,
0.4770682454109192,
0.14456187188625336,
0.1752510666847229,
0.11826816946268082,
0.40259215235710144,
-0.6312109231948853,
0.6787981986999512,
0.36719080805778503,
-0.2696106433868408,
-0.509171187877655,
0.8522742390632629,
-0.07277005165815353,
0.20244279503822327,
0.24056707322597504,
0.033210717141628265,
-0.22247636318206787,
-0.46388256549835205,
-0.39520958065986633,
0.4850063621997833,
-0.5899783372879028,
-0.5895527005195618,
-0.6835160255432129,
-0.40282315015792847,
-0.4127770960330963,
-0.2539938986301422,
-0.3037348985671997,
-0.3038327991962433,
-0.6877845525741577,
-0.2346097081899643,
0.7629424929618835,
0.6711695194244385,
-0.0793229341506958,
0.3682892918586731,
-0.5691221952438354,
0.3785129487514496,
0.05311082303524017,
0.3635562062263489,
0.05588354170322418,
-0.6540537476539612,
-0.14815691113471985,
-0.09093493223190308,
-0.606544017791748,
-0.8442170023918152,
0.6425215005874634,
0.12558819353580475,
0.5305227637290955,
0.11570996046066284,
-0.03121778555214405,
0.7881070971488953,
-0.35142526030540466,
0.8987253308296204,
0.3309907913208008,
-1.1147897243499756,
0.6656531691551208,
-0.2532384991645813,
0.09773252159357071,
0.12305539846420288,
0.2407568097114563,
-0.43400537967681885,
-0.41700002551078796,
-0.7621691823005676,
-0.8496522903442383,
0.6676055192947388,
0.3025344908237457,
0.15535220503807068,
0.04884067177772522,
0.4054851233959198,
-0.07150761038064957,
0.20101958513259888,
-1.0526416301727295,
-0.4709527790546417,
-0.28624215722084045,
-0.20329393446445465,
-0.08863851428031921,
-0.17446015775203705,
-0.017066914588212967,
-0.3182581067085266,
0.5161276459693909,
-0.13227641582489014,
0.5814011096954346,
0.24271297454833984,
-0.181265726685524,
-0.2524851858615875,
-0.021516328677535057,
0.6801841855049133,
0.645372211933136,
-0.09053069353103638,
-0.15075679123401642,
0.4243110120296478,
-0.5240975618362427,
0.2287074625492096,
-0.122425876557827,
-0.07026926428079605,
-0.25189921259880066,
0.5672302842140198,
0.6170446872711182,
0.0519237294793129,
-0.7232871651649475,
0.518610417842865,
0.08112762123346329,
-0.28734394907951355,
-0.4752359390258789,
0.26086926460266113,
0.3225753903388977,
0.27129316329956055,
0.27573153376579285,
-0.004295142833143473,
-0.09525974094867706,
-0.3828323185443878,
0.09277967363595963,
0.31160104274749756,
0.11819824576377869,
-0.3558182120323181,
0.9126344919204712,
0.11850479990243912,
-0.2417522519826889,
0.46676382422447205,
0.06415266543626785,
-0.5846631526947021,
1.2102534770965576,
0.5775026082992554,
0.7067551016807556,
-0.19378463923931122,
0.11489150673151016,
0.5417894721031189,
0.5488644242286682,
0.03676876798272133,
0.43386176228523254,
0.08909952640533447,
-0.5751073956489563,
-0.29058921337127686,
-0.7808253765106201,
-0.2571021616458893,
0.11530474573373795,
-0.5086783766746521,
0.36662617325782776,
-0.6138672828674316,
-0.12362192571163177,
-0.2580689787864685,
0.2572779953479767,
-0.6972289085388184,
0.06101708859205246,
0.05759786069393158,
0.9858876466751099,
-0.713299572467804,
0.8641691207885742,
0.4967327415943146,
-0.6697960495948792,
-0.9829938411712646,
-0.2930363118648529,
0.005465925671160221,
-1.2412128448486328,
0.5126951336860657,
0.22053426504135132,
0.10365864634513855,
0.04880645498633385,
-0.9039194583892822,
-1.0616778135299683,
1.3244153261184692,
0.4412117004394531,
-0.4838804304599762,
0.07018916308879852,
0.1463571935892105,
0.6057501435279846,
-0.34778377413749695,
0.52005934715271,
0.6966792941093445,
0.4459024667739868,
-0.09886352717876434,
-1.1701433658599854,
0.3265630304813385,
-0.3793676793575287,
0.1384263038635254,
-0.21269449591636658,
-1.1422291994094849,
0.9927686452865601,
-0.5078471899032593,
-0.13335217535495758,
0.42231428623199463,
0.757407546043396,
0.5334873795509338,
0.15558308362960815,
0.32531648874282837,
0.7012619972229004,
0.6228093504905701,
-0.05494868755340576,
1.0977627038955688,
-0.4094316363334656,
0.5873662233352661,
0.5466789603233337,
-0.0572839118540287,
0.7345061898231506,
0.3213471472263336,
-0.5246010422706604,
0.7079896330833435,
0.8407376408576965,
-0.20323216915130615,
0.3208806812763214,
0.3270230293273926,
-0.027372604236006737,
-0.06811138987541199,
-0.03856710344552994,
-0.7960233688354492,
0.4554729759693146,
0.2993524372577667,
-0.34002581238746643,
-0.00028456636937335134,
-0.23624879121780396,
0.3161974549293518,
-0.1033584401011467,
-0.03941310569643974,
0.6777857542037964,
0.23828323185443878,
-0.4784739315509796,
1.1929346323013306,
0.09796995669603348,
0.9978965520858765,
-0.4315876364707947,
-0.0829482227563858,
-0.49220263957977295,
0.06272386014461517,
-0.6203688979148865,
-0.5839007496833801,
0.1742803305387497,
0.24347765743732452,
0.025661354884505272,
-0.13531257212162018,
0.4668610394001007,
-0.11841653287410736,
-0.5265451669692993,
0.4168311655521393,
0.19677485525608063,
0.35715678334236145,
0.21909910440444946,
-0.7986753582954407,
0.4625597596168518,
0.21747392416000366,
-0.43045008182525635,
0.27702054381370544,
0.17664727568626404,
0.18431328237056732,
0.9028584361076355,
0.7366719245910645,
-0.05784178525209427,
0.18148264288902283,
-0.16554442048072815,
1.105889916419983,
-0.7699949741363525,
-0.38471344113349915,
-0.8877455592155457,
0.6366567611694336,
0.2023744136095047,
-0.5404503345489502,
0.6940492391586304,
0.4662086069583893,
0.8150226473808289,
-0.05365004390478134,
0.6865163445472717,
-0.2425331175327301,
0.1275251805782318,
-0.518247127532959,
0.7254072427749634,
-0.7464056611061096,
0.38006529211997986,
-0.5190087556838989,
-0.9406200647354126,
-0.31044337153434753,
0.8592469096183777,
-0.07885869592428207,
0.090980164706707,
0.601402997970581,
1.0887176990509033,
0.2956262230873108,
-0.0788104385137558,
0.18313930928707123,
0.2964560091495514,
0.3986659049987793,
0.8941960334777832,
0.8985296487808228,
-0.6705033779144287,
0.6837115287780762,
-0.5711766481399536,
-0.30909067392349243,
-0.3396211862564087,
-0.990807294845581,
-0.944452166557312,
-0.49672800302505493,
-0.3922397792339325,
-0.4538699984550476,
-0.25524622201919556,
0.9786387085914612,
0.6541062593460083,
-0.6335433721542358,
-0.532136082649231,
-0.06605545431375504,
0.369745671749115,
-0.16749846935272217,
-0.22771479189395905,
0.3817930221557617,
-0.16043953597545624,
-0.8385772705078125,
0.3056635558605194,
0.0263432115316391,
0.1304595172405243,
-0.2452928125858307,
-0.23823796212673187,
-0.10002867877483368,
-0.03512861207127571,
0.4362640082836151,
0.3602634370326996,
-0.8428784608840942,
-0.2295379340648651,
0.07526802271604538,
-0.25649088621139526,
0.22731192409992218,
0.33056432008743286,
-0.6439932584762573,
-0.030002977699041367,
0.3764304220676422,
0.3996941149234772,
0.40549010038375854,
-0.17597529292106628,
0.16211634874343872,
-0.4182933568954468,
0.34869083762168884,
-0.03821183368563652,
0.501082718372345,
0.1449466496706009,
-0.5847353339195251,
0.7637042999267578,
0.34467899799346924,
-0.6972741484642029,
-0.8907464742660522,
0.021806227043271065,
-1.1899874210357666,
-0.12953242659568787,
1.2573796510696411,
-0.19787129759788513,
-0.3432095944881439,
0.20382095873355865,
-0.356758177280426,
0.21531814336776733,
-0.5225351452827454,
0.7965556979179382,
0.32564154267311096,
-0.1416584849357605,
-0.0933164730668068,
-0.3352827727794647,
0.28063687682151794,
0.33873647451400757,
-1.0363805294036865,
-0.17450523376464844,
0.32102683186531067,
0.40629273653030396,
0.15718181431293488,
0.7745741605758667,
-0.15303345024585724,
0.15747623145580292,
-0.0076176319271326065,
0.3634515106678009,
-0.06748033314943314,
-0.17155656218528748,
-0.3637907803058624,
-0.020386384800076485,
-0.1382608413696289,
-0.12355025857686996
] |
liuhaotian/llava-v1-0719-336px-lora-merge-vicuna-13b-v1.3
|
liuhaotian
| 2023-07-19T08:54:01Z | 8,056 | 8 |
transformers
|
[
"transformers",
"pytorch",
"llava",
"text-generation",
"region:us"
] |
text-generation
| 2023-07-19T08:39:56Z |
---
inference: false
---
<br>
<br>
# LLaVA Model Card
## Model details
**Model type:**
LLaVA is an open-source chatbot trained by fine-tuning LLaMA/Vicuna on GPT-generated multimodal instruction-following data.
It is an auto-regressive language model, based on the transformer architecture.
**Model date:**
LLaVA-v1-0719-336px-LoRA-Vicuna-13B-v1.3 was trained in July 2023.
**Paper or resources for more information:**
https://llava-vl.github.io/
## License
Non-commerical Use.
**Where to send questions or comments about the model:**
https://github.com/haotian-liu/LLaVA/issues
## Intended use
**Primary intended uses:**
The primary use of LLaVA is research on large multimodal models and chatbots.
**Primary intended users:**
The primary intended users of the model are researchers and hobbyists in computer vision, natural language processing, machine learning, and artificial intelligence.
## Training dataset
- 558K filtered image-text pairs from LAION/CC/SBU, captioned by BLIP.
- 80K GPT-generated multimodal instruction-following data.
## Evaluation dataset
A preliminary evaluation of the model quality is conducted by creating a set of 90 visual reasoning questions from 30 unique images randomly sampled from COCO val 2014 and each is associated with three types of questions: conversational, detailed description, and complex reasoning. We utilize GPT-4 to judge the model outputs.
We also evaluate our model on the ScienceQA dataset. Our synergy with GPT-4 sets a new state-of-the-art on the dataset.
See https://llava-vl.github.io/ for more details.
|
[
-0.09472452849149704,
-1.0929503440856934,
0.46544981002807617,
0.24414291977882385,
-0.42024603486061096,
0.1302478015422821,
0.022347040474414825,
-0.5355966687202454,
0.20686903595924377,
0.6055011749267578,
-0.49841028451919556,
-0.6075695753097534,
-0.4575672149658203,
-0.047150783240795135,
-0.472625732421875,
0.8959375619888306,
0.02073458954691887,
-0.021932313218712807,
-0.37083321809768677,
0.14815106987953186,
-0.8233932852745056,
-0.40571755170822144,
-0.6577532291412354,
-0.1932341456413269,
0.6072034239768982,
0.49100661277770996,
0.5837459564208984,
0.3272249102592468,
0.49079862236976624,
0.3648771345615387,
0.05049648880958557,
0.26322829723358154,
-0.5924062132835388,
0.036562371999025345,
0.14732378721237183,
-0.7545250058174133,
-0.686979353427887,
-0.2513841986656189,
0.39232444763183594,
-0.17041155695915222,
-0.21622338891029358,
0.32019567489624023,
-0.05448589101433754,
0.30467352271080017,
-0.2487616240978241,
0.5918599367141724,
-0.870253324508667,
-0.22911137342453003,
-0.22618959844112396,
-0.26012903451919556,
-0.4081653952598572,
-0.34456175565719604,
-0.34668996930122375,
-0.5782514810562134,
-0.0920860543847084,
0.11181062459945679,
1.1542130708694458,
0.5115198493003845,
-0.37860432267189026,
-0.1941481977701187,
-0.7402992844581604,
0.6072447299957275,
-0.6033676862716675,
0.26832354068756104,
0.48689785599708557,
0.771216094493866,
-0.12818486988544464,
-0.6483220458030701,
-0.7758575081825256,
-0.2755337655544281,
0.10276748239994049,
0.2161724716424942,
-0.42695581912994385,
-0.006188121624290943,
0.13778828084468842,
0.3580278158187866,
-0.5075421929359436,
0.09965290874242783,
-0.631237804889679,
-0.08677921444177628,
0.5475500822067261,
0.27517902851104736,
0.22709597647190094,
-0.24827395379543304,
-0.40364784002304077,
-0.03224118798971176,
-0.4621577858924866,
0.014375346712768078,
0.5232172012329102,
0.1652756631374359,
-0.31509459018707275,
0.8063187003135681,
-0.20987780392169952,
0.47340279817581177,
-0.0388750359416008,
-0.37915146350860596,
0.33872660994529724,
-0.24831201136112213,
-0.5496008992195129,
-0.37584856152534485,
1.0354211330413818,
0.3387535810470581,
0.212838813662529,
0.268612265586853,
-0.19924934208393097,
0.1957634687423706,
0.24425451457500458,
-0.4898416996002197,
-0.12583132088184357,
0.22650687396526337,
-0.2817453145980835,
-0.5487481355667114,
-0.585323691368103,
-0.6505869626998901,
-0.30789199471473694,
-0.23677915334701538,
0.22571644186973572,
-0.43697112798690796,
-0.2741004526615143,
-0.18063166737556458,
0.3473548889160156,
0.5947967767715454,
0.5586788058280945,
-0.8521019816398621,
0.08637525886297226,
0.46268826723098755,
0.6410667300224304,
-0.04813592880964279,
-0.16877053678035736,
0.05964861810207367,
-0.13534842431545258,
-0.18769581615924835,
1.1618186235427856,
-0.619064450263977,
-0.2920907437801361,
-0.06623748689889908,
0.13431812822818756,
-0.0012365432921797037,
-0.25539615750312805,
0.7310780882835388,
-0.6452288627624512,
0.28370770812034607,
-0.07201893627643585,
-0.43949341773986816,
-0.21021413803100586,
0.4590827226638794,
-0.6432234048843384,
1.0473909378051758,
-0.029576098546385765,
-0.7136592864990234,
0.08514593541622162,
-0.5820554494857788,
0.02529866248369217,
0.19194012880325317,
-0.28953972458839417,
-0.3383775055408478,
-0.1319090574979782,
0.38938960433006287,
0.2505984902381897,
-0.6315211057662964,
0.5235984325408936,
-0.15484003722667694,
-0.31345126032829285,
0.2392210066318512,
-0.8307223916053772,
0.8163841962814331,
0.3368057310581207,
-0.022024746984243393,
0.29256734251976013,
-0.8026494979858398,
-0.16790057718753815,
0.3928571939468384,
-0.28957417607307434,
-0.032304681837558746,
-0.2163124531507492,
-0.03092038631439209,
0.06410618871450424,
0.5746670365333557,
-0.4512386918067932,
0.47981974482536316,
-0.06650803238153458,
0.21620655059814453,
0.849438488483429,
-0.0800301805138588,
0.12702250480651855,
-0.26371708512306213,
0.7507710456848145,
-0.05050104483962059,
0.7084967494010925,
-0.15727637708187103,
-0.9449092149734497,
-0.974629819393158,
-0.3338879942893982,
0.04885907471179962,
0.9863898158073425,
-0.8860743641853333,
0.24649691581726074,
-0.23115649819374084,
-0.6784616708755493,
-0.7263951301574707,
0.25286585092544556,
0.3402039408683777,
0.5532535314559937,
0.2578105926513672,
-0.20446693897247314,
-0.5675942897796631,
-1.1033412218093872,
0.13777126371860504,
-0.4547485411167145,
0.12634728848934174,
0.41967421770095825,
0.5243445634841919,
-0.41044700145721436,
0.8538233637809753,
-0.36715999245643616,
-0.29907697439193726,
-0.33352452516555786,
-0.16692829132080078,
0.2454233318567276,
0.1914522796869278,
0.412533164024353,
-0.6701915860176086,
-0.47005072236061096,
0.024098563939332962,
-1.050708293914795,
-0.027867300435900688,
-0.09446453303098679,
-0.38545021414756775,
0.28479379415512085,
0.3013865351676941,
-0.6894568204879761,
0.645922839641571,
0.8547982573509216,
-0.1623455435037613,
0.5293211340904236,
-0.02279519848525524,
0.19943764805793762,
-1.2036045789718628,
-0.10973158478736877,
-0.11759436130523682,
-0.1558140367269516,
-0.46732622385025024,
-0.06623027473688126,
-0.13698147237300873,
-0.009153459221124649,
-0.6813474297523499,
0.6404697895050049,
-0.20425766706466675,
0.03290751203894615,
-0.33842840790748596,
0.057254910469055176,
0.06241731718182564,
0.7902067303657532,
-0.1239880695939064,
0.9011477828025818,
0.518417239189148,
-0.4480602443218231,
0.736473560333252,
0.4639485478401184,
-0.2685708701610565,
0.5560808181762695,
-0.9329326748847961,
0.24500618875026703,
-0.052155185490846634,
0.1656482070684433,
-1.1531684398651123,
-0.31186872720718384,
0.5977789163589478,
-0.6039080619812012,
0.19754649698734283,
-0.1707572489976883,
-0.7111685276031494,
-0.3700016736984253,
0.019028080627322197,
0.35463470220565796,
0.6961787343025208,
-0.48991987109184265,
0.7426981329917908,
0.44399645924568176,
0.1342892050743103,
-0.6632516980171204,
-0.7480571866035461,
0.056555166840553284,
-0.2815212905406952,
-0.6404683589935303,
-0.03815711662173271,
-0.26934733986854553,
-0.1344989836215973,
-0.10873620212078094,
0.2590539753437042,
-0.2590283751487732,
-0.1586950719356537,
0.33384764194488525,
0.5196952223777771,
-0.02797529101371765,
0.1967662274837494,
0.01158155407756567,
0.01056932657957077,
-0.10438383370637894,
0.15683411061763763,
0.6677289605140686,
-0.3728605806827545,
-0.39282506704330444,
-0.8263821601867676,
0.004729008302092552,
0.40241342782974243,
-0.03056623600423336,
0.6096346378326416,
0.6227344870567322,
-0.11239905655384064,
0.30546414852142334,
-0.7855085134506226,
0.009005587548017502,
-0.5307144522666931,
0.35898303985595703,
-0.49647143483161926,
-0.7070457339286804,
0.606142520904541,
0.17402230203151703,
0.2860223948955536,
0.4033251702785492,
0.789769172668457,
-0.24149982631206512,
0.7630395889282227,
0.7302291393280029,
-0.07096393406391144,
0.6997649073600769,
-0.2223639190196991,
0.05446859076619148,
-0.765425443649292,
-0.4381672441959381,
-0.15558500587940216,
-0.03196173533797264,
-0.7254784107208252,
-0.6956827044487,
0.048751965165138245,
-0.1806611567735672,
-0.28206124901771545,
0.43267494440078735,
-0.5179700255393982,
0.49969226121902466,
0.6268708109855652,
0.12870389223098755,
0.3972228765487671,
0.10938210785388947,
0.100843645632267,
0.157139390707016,
-0.5614637732505798,
-0.7515318393707275,
1.214406967163086,
0.5969575047492981,
0.9966901540756226,
0.02007981203496456,
0.6496864557266235,
0.28251367807388306,
0.3573642671108246,
-0.6595702171325684,
0.7091164588928223,
0.18281537294387817,
-0.7417117357254028,
-0.29853564500808716,
-0.2622770369052887,
-1.026906967163086,
0.15335828065872192,
-0.1308959722518921,
-0.6448908448219299,
-0.03157247230410576,
0.36049193143844604,
0.09182995557785034,
0.3948309123516083,
-0.8280495405197144,
0.7659800052642822,
-0.543871283531189,
-0.27817419171333313,
-0.038637030869722366,
-0.4192570447921753,
0.7528941035270691,
0.02366192825138569,
0.1826438307762146,
-0.2605903446674347,
0.14405305683612823,
0.4332039952278137,
-0.16086721420288086,
1.3799968957901,
-0.020135946571826935,
-0.31725794076919556,
0.6628697514533997,
0.05383022129535675,
0.4774363040924072,
0.07149842381477356,
0.2530657947063446,
0.4657694697380066,
-0.11078841984272003,
-0.4948933720588684,
-0.5907880067825317,
0.7308482527732849,
-1.1962993144989014,
-0.6732387542724609,
-0.3346098065376282,
-0.46435561776161194,
0.028367139399051666,
0.08423566818237305,
0.24756498634815216,
0.16019092500209808,
-0.14218789339065552,
-0.0753583163022995,
0.5198582410812378,
-0.4911724328994751,
0.10453028231859207,
0.2587701678276062,
-0.3543577492237091,
-0.49365705251693726,
0.8804287910461426,
-0.2563795745372772,
0.21239785850048065,
0.5040032267570496,
0.019278092309832573,
-0.24157527089118958,
-0.25153645873069763,
-0.3629254102706909,
0.4666025936603546,
-0.9287195205688477,
-0.3271716237068176,
-0.4973796308040619,
-0.36072733998298645,
-0.438634991645813,
0.23761622607707977,
-0.5369483232498169,
-0.2600952982902527,
-0.46142855286598206,
-0.0743284523487091,
0.6183467507362366,
0.7549111247062683,
0.36300307512283325,
0.4888843595981598,
-0.42951902747154236,
0.3408854603767395,
0.5335214138031006,
0.3109460771083832,
-0.24501784145832062,
-0.761835515499115,
0.06326724588871002,
0.03334119915962219,
-0.5257125496864319,
-0.823764979839325,
0.5620519518852234,
0.0498986579477787,
0.6672049760818481,
0.13530662655830383,
-0.2274106740951538,
0.6944466233253479,
-0.38715270161628723,
0.8629270792007446,
0.2085704803466797,
-0.6455165147781372,
0.7593485116958618,
-0.30136749148368835,
0.3680551052093506,
0.4201276898384094,
0.23984143137931824,
-0.32911553978919983,
-0.4807578921318054,
-0.6145869493484497,
-0.6933313012123108,
0.39109915494918823,
0.28391075134277344,
0.3904643654823303,
-0.11420466750860214,
0.2568509876728058,
0.13800525665283203,
0.20311187207698822,
-1.1628713607788086,
-0.34373900294303894,
-0.47861090302467346,
-0.29695403575897217,
0.16322702169418335,
-0.516977846622467,
-0.09945910423994064,
-0.2500927448272705,
0.6177999973297119,
-0.1921895444393158,
0.6950024962425232,
-0.14920026063919067,
-0.13917961716651917,
0.12374473363161087,
0.2635684013366699,
0.7926647067070007,
0.4316618740558624,
-0.20622490346431732,
-0.25680017471313477,
0.2539145350456238,
-0.5675801634788513,
-0.028553467243909836,
-0.15249012410640717,
-0.1632424294948578,
-0.15592460334300995,
0.388089656829834,
1.1746519804000854,
0.03782583773136139,
-0.6344369053840637,
0.4331790506839752,
-0.4496024549007416,
-0.30596500635147095,
-0.7673338651657104,
0.08358818292617798,
0.042819056659936905,
0.5074239373207092,
0.06597433984279633,
-0.10359307378530502,
0.009196395985782146,
-0.447486937046051,
-0.15265458822250366,
0.29746317863464355,
-0.24044619500637054,
-0.321792334318161,
0.7414518594741821,
0.2705783247947693,
-0.3934953808784485,
0.713322639465332,
-0.04753397777676582,
-0.19830898940563202,
0.46546196937561035,
0.44137242436408997,
0.7573486566543579,
-0.1654955893754959,
0.2733297646045685,
0.5095463395118713,
0.37461087107658386,
0.1461731195449829,
0.42384931445121765,
-0.07797367870807648,
-0.6893125772476196,
-0.39736542105674744,
-0.5818023681640625,
-0.5299790501594543,
0.23054459691047668,
-0.40752652287483215,
0.5135192275047302,
-0.38698142766952515,
-0.2826182544231415,
-0.3402426838874817,
-0.04346717149019241,
-0.9290995001792908,
0.04649290814995766,
0.26002049446105957,
0.8352919816970825,
-0.8468847274780273,
1.1578903198242188,
0.3685316741466522,
-0.7650551199913025,
-0.6772990226745605,
-0.3640989065170288,
-0.012500936165452003,
-1.348354458808899,
0.8173238635063171,
-0.08045630156993866,
-0.02439158782362938,
-0.27001896500587463,
-0.9493624567985535,
-1.0796903371810913,
1.4334962368011475,
0.40010103583335876,
-0.8570711016654968,
-0.19049738347530365,
0.08550084382295609,
0.6815491318702698,
-0.3737347424030304,
0.602901816368103,
0.47037529945373535,
0.34826424717903137,
0.4967660903930664,
-1.050827145576477,
-0.18983902037143707,
-0.4630929231643677,
0.033039942383766174,
-0.3023214340209961,
-0.9611589908599854,
0.7690439820289612,
-0.1151823028922081,
-0.1004345566034317,
0.1349465399980545,
0.8290956616401672,
0.4260097146034241,
0.18667587637901306,
0.4504871070384979,
0.3130769431591034,
0.8025338649749756,
0.04278717562556267,
1.1365067958831787,
-0.30639150738716125,
0.16223649680614471,
1.1629230976104736,
-0.08495225012302399,
0.7961075305938721,
0.400738000869751,
-0.10444043576717377,
0.674874484539032,
0.5874835252761841,
-0.14161358773708344,
0.5730260610580444,
-0.02843066304922104,
0.09597769379615784,
-0.2087644338607788,
0.08212155848741531,
-0.26605403423309326,
0.6927638053894043,
0.48548611998558044,
-0.3750877380371094,
0.04272855818271637,
-0.045800257474184036,
-0.0479344017803669,
-0.1396683305501938,
0.022756407037377357,
0.6849846243858337,
-0.04345404729247093,
-0.4566076695919037,
0.8664787411689758,
-0.27563193440437317,
0.7486769556999207,
-0.5342623591423035,
-0.23898325860500336,
-0.5553297400474548,
0.01832810416817665,
0.01640007086098194,
-0.69231116771698,
0.16292862594127655,
0.19632163643836975,
0.14678311347961426,
0.031285613775253296,
0.6708680391311646,
-0.30188801884651184,
-0.6522736549377441,
0.16883501410484314,
0.4303199350833893,
0.5032100677490234,
0.3122292160987854,
-1.0220036506652832,
0.47728267312049866,
0.1377319097518921,
-0.29479748010635376,
0.17873942852020264,
0.4498404562473297,
-0.2758076786994934,
1.0883574485778809,
0.5242425203323364,
-0.11026418209075928,
0.05304529517889023,
0.3183842599391937,
1.1219713687896729,
-0.5100229382514954,
-0.2334204912185669,
-0.6889774799346924,
0.5615085959434509,
-0.05667511746287346,
-0.4296196401119232,
0.7109118103981018,
0.4038611054420471,
0.5731319189071655,
-0.018452975898981094,
0.7921211123466492,
0.104037344455719,
0.29594317078590393,
-0.4763205647468567,
0.3345126211643219,
-0.6217905879020691,
0.512342095375061,
-0.2141619622707367,
-0.8190484642982483,
-0.2343405783176422,
0.6694319248199463,
-0.2609572410583496,
0.004884553141891956,
0.536759614944458,
0.8911473155021667,
0.0987761840224266,
-0.12410756200551987,
0.6458840370178223,
0.2957407832145691,
0.6923016905784607,
0.632992684841156,
0.9342058897018433,
-0.6332536935806274,
0.8891831040382385,
-0.12642879784107208,
-0.2998521625995636,
-0.42060863971710205,
-0.7099266648292542,
-1.1946485042572021,
-0.6394284963607788,
-0.29174673557281494,
-0.1663411408662796,
0.15499845147132874,
0.6963096261024475,
0.5079750418663025,
-0.45572274923324585,
-0.3015693128108978,
0.01696525514125824,
0.10880296677350998,
0.09011220932006836,
-0.20521357655525208,
0.17421522736549377,
-0.24346531927585602,
-0.7731230854988098,
0.2950005531311035,
-0.021237444132566452,
0.190405935049057,
-0.4912996292114258,
-0.007369403727352619,
-0.21430015563964844,
0.1798485666513443,
0.611892580986023,
0.41140681505203247,
-1.028596043586731,
-0.27221551537513733,
0.21984006464481354,
-0.17276647686958313,
0.29183802008628845,
0.2454296052455902,
-0.6871768236160278,
0.44391706585884094,
0.2985159158706665,
0.2080901712179184,
0.5993261337280273,
-0.10963879525661469,
0.33401408791542053,
-0.6595014929771423,
0.26918014883995056,
0.12724190950393677,
0.339819997549057,
0.4238145351409912,
-0.4433843493461609,
0.4744764268398285,
0.05404839664697647,
-0.7817420959472656,
-0.7318345308303833,
0.2613927721977234,
-1.1355617046356201,
0.03033018484711647,
1.4128217697143555,
0.12395475804805756,
-0.6870424747467041,
0.053269851952791214,
-0.548335075378418,
0.21822410821914673,
-0.6007128357887268,
0.7372443079948425,
0.41395917534828186,
-0.15588605403900146,
-0.592789888381958,
-0.846519947052002,
0.1723288595676422,
-0.17746107280254364,
-1.0392242670059204,
-0.10691149532794952,
0.5062493085861206,
0.33661264181137085,
-0.006217965856194496,
0.9778807759284973,
-0.06940408051013947,
0.07755109667778015,
0.15873388946056366,
0.5146084427833557,
-0.14648717641830444,
-0.3725619316101074,
-0.12474193423986435,
-0.1490142047405243,
0.15123221278190613,
-0.43138641119003296
] |
PygmalionAI/mythalion-13b
|
PygmalionAI
| 2023-09-15T20:30:08Z | 8,054 | 84 |
transformers
|
[
"transformers",
"pytorch",
"safetensors",
"llama",
"text-generation",
"text generation",
"instruct",
"en",
"dataset:PygmalionAI/PIPPA",
"dataset:Open-Orca/OpenOrca",
"dataset:Norquinal/claude_multiround_chat_30k",
"dataset:jondurbin/airoboros-gpt4-1.4.1",
"dataset:databricks/databricks-dolly-15k",
"license:llama2",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-09-05T12:45:18Z |
---
language:
- en
thumbnail: null
tags:
- text generation
- instruct
pipeline_tag: text-generation
inference: false
license: llama2
datasets:
- PygmalionAI/PIPPA
- Open-Orca/OpenOrca
- Norquinal/claude_multiround_chat_30k
- jondurbin/airoboros-gpt4-1.4.1
- databricks/databricks-dolly-15k
---
<h1 style="text-align: center">Mythalion 13B</h1>
<h2 style="text-align: center">A merge of Pygmalion-2 13B and MythoMax 13B</h2>
## Model Details
The long-awaited release of our new models based on Llama-2 is finally here. This model was created in
collaboration with [Gryphe](https://huggingface.co/Gryphe), a mixture of our [Pygmalion-2 13B](https://huggingface.co/PygmalionAI/pygmalion-2-13b)
and Gryphe's [Mythomax L2 13B](https://huggingface.co/Gryphe/MythoMax-L2-13b).
Finer details of the merge are available in [our blogpost](https://pygmalionai.github.io/blog/posts/introducing_pygmalion_2/#mythalion-13b).
According to our testers, this model seems to outperform MythoMax in RP/Chat. **Please make sure you follow the recommended
generation settings for SillyTavern [here](https://pygmalionai.github.io/blog/posts/introducing_pygmalion_2/#sillytavern) for
the best results!**
This model is freely available for both commercial and non-commercial use, as per the Llama-2 license.
## Prompting
This model can be prompted using both the Alpaca and [Pygmalion formatting](https://huggingface.co/PygmalionAI/pygmalion-2-13b#prompting).
**Alpaca formatting**:
```
### Instruction:
<prompt>
### Response:
<leave a newline blank for model to respond>
```
**Pygmalion/Metharme formatting**:
```
<|system|>Enter RP mode. Pretend to be {{char}} whose persona follows:
{{persona}}
You shall reply to the user while staying in character, and generate long responses.
<|user|>Hello!<|model|>{model's response goes here}
```
The model has been trained on prompts using three different roles, which are denoted by the following tokens: `<|system|>`, `<|user|>` and `<|model|>`.
The `<|system|>` prompt can be used to inject out-of-channel information behind the scenes, while the `<|user|>` prompt should be used to indicate user input.
The `<|model|>` token should then be used to indicate that the model should generate a response. These tokens can happen multiple times and be chained up to
form a conversation history.
## Limitations and biases
The intended use-case for this model is fictional writing for entertainment purposes. Any other sort of usage is out of scope.
As such, it was **not** fine-tuned to be safe and harmless: the base model _and_ this fine-tune have been trained on data known to contain profanity and texts that are lewd or otherwise offensive. It may produce socially unacceptable or undesirable text, even if the prompt itself does not include anything explicitly offensive. Outputs might often be factually wrong or misleading.
## Acknowledgements
We would like to thank [SpicyChat](https://spicychat.ai/) for sponsoring the training for the [Pygmalion-2 13B](https://huggingface.co/PygmalionAI/pygmalion-2-13b) model.
[<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.4495372474193573,
-0.6860726475715637,
0.1696893274784088,
0.22479064762592316,
-0.42297953367233276,
-0.12033233791589737,
-0.2503640651702881,
-0.8011643290519714,
0.40628600120544434,
0.2560495436191559,
-0.7728192806243896,
-0.10724686831235886,
-0.5471374988555908,
0.12454189360141754,
-0.02340858429670334,
1.2385215759277344,
0.20342960953712463,
-0.2591191530227661,
-0.19432643055915833,
-0.16807201504707336,
-0.7581442594528198,
-0.5448547601699829,
-0.5739690661430359,
-0.358044296503067,
0.6702979803085327,
0.26381707191467285,
0.9083219766616821,
0.6105963587760925,
0.27180975675582886,
0.2807604968547821,
-0.32518619298934937,
0.4845620393753052,
-0.45540258288383484,
0.09984763711690903,
-0.05836648866534233,
-0.24661262333393097,
-0.7163911461830139,
0.37374699115753174,
0.3843655586242676,
0.2669413685798645,
-0.27544447779655457,
0.26999232172966003,
-0.006945538800209761,
0.03344567492604256,
-0.5347784161567688,
0.25358185172080994,
-0.2718956172466278,
-0.03339855745434761,
0.05460793897509575,
0.1648295819759369,
-0.3973829448223114,
-0.5382932424545288,
-0.02183081954717636,
-0.7206794023513794,
-0.24007931351661682,
0.29483410716056824,
1.0088636875152588,
0.19784854352474213,
-0.4405021667480469,
-0.25287970900535583,
-0.4403274953365326,
0.5981654524803162,
-0.8993074297904968,
0.13596829771995544,
0.3406037390232086,
0.42084524035453796,
-0.22316588461399078,
-1.0366299152374268,
-0.7847744822502136,
-0.47497227787971497,
-0.09692263603210449,
0.04033789038658142,
-0.5711451768875122,
-0.22832319140434265,
0.1726067215204239,
0.28820961713790894,
-0.6437451243400574,
0.2142581343650818,
-0.47270911931991577,
-0.17336130142211914,
0.6452168822288513,
0.25455498695373535,
0.3430618345737457,
-0.3621964156627655,
-0.47335517406463623,
-0.10461806505918503,
-0.4826118052005768,
-0.058511439710855484,
0.27762147784233093,
0.09443028271198273,
-0.4515892565250397,
0.7536011934280396,
0.03751315549015999,
0.5345403552055359,
0.23283828794956207,
-0.2829658091068268,
0.22727921605110168,
-0.30171194672584534,
-0.2594883143901825,
-0.13901422917842865,
1.0217962265014648,
0.661190390586853,
0.22968615591526031,
0.029687391594052315,
-0.07431750744581223,
0.11762598156929016,
0.20933763682842255,
-0.9126223921775818,
-0.267643541097641,
0.22061610221862793,
-0.6270383596420288,
-0.5586496591567993,
-0.36799493432044983,
-0.5679259896278381,
-0.5566768646240234,
-0.02272224798798561,
0.22964948415756226,
-0.35638803243637085,
-0.6336323022842407,
0.013147806748747826,
-0.006011171732097864,
0.222922220826149,
0.44483160972595215,
-0.806662917137146,
0.30052146315574646,
0.5309137105941772,
0.8329944610595703,
-0.024068841710686684,
-0.3349669575691223,
-0.1678384244441986,
-0.202229306101799,
-0.29607877135276794,
0.6789558529853821,
-0.27627629041671753,
-0.38371530175209045,
-0.31765666604042053,
-0.023158252239227295,
-0.2002163827419281,
-0.5155003666877747,
0.42026618123054504,
-0.3971058428287506,
0.5116620659828186,
-0.07160516083240509,
-0.4051540791988373,
-0.39816078543663025,
0.2692141830921173,
-0.4766850471496582,
0.8529223799705505,
0.0939946249127388,
-0.815205991268158,
0.07756198197603226,
-0.5821647644042969,
0.02795404940843582,
-0.03282404690980911,
0.13893255591392517,
-0.2432623952627182,
-0.17963191866874695,
0.18949666619300842,
0.5222977995872498,
-0.5525137782096863,
0.12383662909269333,
-0.5985215306282043,
-0.3875449001789093,
0.5620653033256531,
-0.17329879105091095,
0.9597694873809814,
0.4713744521141052,
-0.16046226024627686,
0.12387201935052872,
-0.557551920413971,
0.09995044022798538,
0.3555796146392822,
-0.23451390862464905,
0.014258782379329205,
-0.24923403561115265,
0.0621686689555645,
0.363810271024704,
0.33042338490486145,
-0.36775949597358704,
0.3434460759162903,
-0.18052971363067627,
0.5930112600326538,
0.6554068326950073,
0.08558578044176102,
0.34442138671875,
-0.5427027940750122,
0.522862434387207,
-0.21806412935256958,
0.51442950963974,
0.018926944583654404,
-0.8791071772575378,
-0.6509550213813782,
-0.4460119605064392,
0.2146979570388794,
0.769320547580719,
-0.46611595153808594,
0.5242164134979248,
-0.0918598622083664,
-0.7630898952484131,
-0.18047694861888885,
-0.22410115599632263,
0.49120399355888367,
0.48425236344337463,
0.13098932802677155,
-0.26244261860847473,
-0.5844958424568176,
-0.7915019392967224,
-0.09447646141052246,
-0.6295820474624634,
-0.001246825442649424,
0.6300976276397705,
0.4365290403366089,
-0.38999953866004944,
0.6663020253181458,
-0.5389772057533264,
0.1716424822807312,
-0.4730556309223175,
0.07390426099300385,
0.18471258878707886,
0.656481146812439,
0.772379457950592,
-0.6749933958053589,
-0.20456749200820923,
-0.04407889023423195,
-0.9181064963340759,
-0.02621876448392868,
0.09854358434677124,
0.0015745720593258739,
0.23650088906288147,
-0.0008474618662148714,
-1.0332838296890259,
0.49795645475387573,
0.5283867120742798,
-0.33204153180122375,
0.5238782167434692,
0.03638343885540962,
0.25513699650764465,
-1.3046350479125977,
0.1875053197145462,
-0.055320385843515396,
-0.06797035783529282,
-0.6636987328529358,
0.1459582895040512,
0.10975782573223114,
-0.3559763729572296,
-0.5536792278289795,
0.7528730034828186,
-0.27824321389198303,
0.18199022114276886,
-0.20361314713954926,
-0.12215367704629898,
-0.11616623401641846,
0.5445123314857483,
-0.11035455018281937,
0.7865081429481506,
0.5401997566223145,
-0.5856740474700928,
0.6663361191749573,
0.4698273539543152,
-0.04767388477921486,
0.3285350799560547,
-0.8529269695281982,
0.4342065751552582,
0.035115811973810196,
0.5723863244056702,
-1.1040397882461548,
-0.5620672106742859,
1.0639535188674927,
-0.8902671337127686,
0.32992157340049744,
-0.3811488151550293,
-0.4333947002887726,
-0.6175287365913391,
-0.28759562969207764,
0.4887613356113434,
0.7474592924118042,
-0.6365905404090881,
0.5542845129966736,
0.33284440636634827,
-0.20107726752758026,
-0.4836505949497223,
-0.7913348078727722,
0.20418928563594818,
-0.514951765537262,
-0.9299291372299194,
-0.03276243805885315,
-0.25150033831596375,
-0.1629336029291153,
-0.1658950299024582,
0.14286166429519653,
-0.19493624567985535,
-0.06945087760686874,
0.508326530456543,
0.5671907067298889,
-0.08853790163993835,
-0.19450360536575317,
-0.1375473439693451,
0.08356139808893204,
0.05615947023034096,
-0.1787375658750534,
0.6450377702713013,
-0.18863849341869354,
0.07741668820381165,
-0.8166928291320801,
0.31136268377304077,
0.6260938048362732,
-0.39107200503349304,
0.8281357884407043,
0.4635567367076874,
-0.5371183753013611,
0.34258726239204407,
-0.7238099575042725,
-0.2184918224811554,
-0.454367458820343,
0.09859519451856613,
-0.12165035307407379,
-0.7439017295837402,
0.6082748174667358,
0.15793922543525696,
-0.018620163202285767,
0.23492781817913055,
0.5729830265045166,
0.047780610620975494,
1.1557265520095825,
0.6154122352600098,
0.13301940262317657,
0.29378461837768555,
-0.16957436501979828,
0.31582319736480713,
-0.8058691620826721,
-0.6965728402137756,
-0.40443339943885803,
-0.09700103849172592,
-0.7041996121406555,
-0.39338359236717224,
0.2355886995792389,
0.07205536961555481,
-0.21168069541454315,
0.5731287002563477,
-0.44067704677581787,
0.19951781630516052,
0.39848652482032776,
0.17302407324314117,
-0.06041046977043152,
0.10474273562431335,
0.08756154030561447,
-0.12068430334329605,
-0.7146843075752258,
-0.5184454917907715,
1.0812684297561646,
0.46067482233047485,
0.7969937324523926,
0.2483036071062088,
0.6262282133102417,
0.02547505684196949,
0.2761577367782593,
-0.8126508593559265,
0.6450639963150024,
0.1989930421113968,
-0.6475024223327637,
0.09878143668174744,
-0.39425936341285706,
-0.6675497889518738,
0.21919561922550201,
-0.23239253461360931,
-0.9387530088424683,
0.2801973819732666,
0.19294296205043793,
-0.5847834348678589,
0.18747223913669586,
-0.809770405292511,
0.7574490904808044,
0.049185071140527725,
-0.19834433495998383,
-0.18924683332443237,
-0.8316936492919922,
0.7764856219291687,
0.1373468041419983,
-0.04518236592411995,
-0.03009934350848198,
-0.03485861420631409,
0.8019359707832336,
-0.6243201494216919,
0.9342896342277527,
0.01648465171456337,
0.004988210741430521,
0.5063924789428711,
0.11620055884122849,
0.5258960127830505,
0.34878140687942505,
0.0694805458188057,
0.21525365114212036,
-0.12282054871320724,
-0.14964239299297333,
-0.5649603009223938,
0.8061455488204956,
-0.9249957203865051,
-0.5713019967079163,
-0.5808007717132568,
-0.5731232166290283,
-0.006029345560818911,
-0.029395872727036476,
0.36447983980178833,
0.3408208191394806,
0.0743257999420166,
0.01261537428945303,
0.812988817691803,
-0.32042351365089417,
0.37017229199409485,
0.44512394070625305,
-0.29322221875190735,
-0.689660906791687,
0.6603250503540039,
-0.08917320519685745,
0.14834287762641907,
-0.08830389380455017,
0.253131628036499,
-0.4658730924129486,
-0.12757310271263123,
-0.5533583760261536,
0.47867515683174133,
-0.5394400358200073,
-0.3008565604686737,
-0.8098018169403076,
-0.28506186604499817,
-0.7684364914894104,
0.13158373534679413,
-0.2683861553668976,
-0.6521565318107605,
-0.48651865124702454,
0.06421013176441193,
0.6098202466964722,
0.6761821508407593,
-0.3373663127422333,
0.3699755072593689,
-0.5325738787651062,
0.22073161602020264,
0.5348901748657227,
-0.0904020294547081,
-0.0641038790345192,
-0.8499335050582886,
0.12962469458580017,
0.23185524344444275,
-0.2956465780735016,
-0.9045675992965698,
0.41481322050094604,
-0.026139136403799057,
0.3777167499065399,
0.36463499069213867,
-0.10662760585546494,
0.6081302165985107,
-0.3322991728782654,
0.9549040794372559,
0.4805804193019867,
-0.5605097413063049,
0.6489524841308594,
-0.44158223271369934,
0.010114334523677826,
0.04040374606847763,
0.4225258529186249,
-0.7513425350189209,
-0.1872674971818924,
-0.7318748235702515,
-0.6751939058303833,
0.8733639717102051,
0.37928909063339233,
0.3036012649536133,
-0.1646634191274643,
0.47757452726364136,
-0.05027606338262558,
0.20144039392471313,
-0.8012368679046631,
-0.40240100026130676,
-0.5848080515861511,
0.1495637446641922,
0.1735561639070511,
-0.4859853982925415,
-0.2652535140514374,
-0.35877376794815063,
0.6244145631790161,
0.04667477309703827,
0.40438002347946167,
-0.10461785644292831,
0.11732269078493118,
-0.09019746631383896,
0.03652443736791611,
0.6612591743469238,
0.7292191386222839,
-0.29753705859184265,
-0.08813176304101944,
0.14747747778892517,
-0.55754154920578,
-0.04085160791873932,
0.35917800664901733,
-0.06144792214035988,
-0.20530399680137634,
0.2855229079723358,
0.9648877382278442,
0.1123664602637291,
-0.457643985748291,
0.5292288661003113,
-0.32494398951530457,
-0.07075776159763336,
-0.1690664142370224,
0.24423006176948547,
0.11369062960147858,
0.43869391083717346,
0.2007860690355301,
0.22645387053489685,
0.035716280341148376,
-0.4928790032863617,
0.015558379702270031,
0.1409265100955963,
0.0181120615452528,
-0.3196738064289093,
0.9330123662948608,
0.1728706806898117,
-0.3150028586387634,
0.6136743426322937,
-0.2759898006916046,
-0.35166800022125244,
0.7171733379364014,
0.8400240540504456,
0.6389738321304321,
-0.34622105956077576,
0.31520044803619385,
0.5653790831565857,
0.22244329750537872,
-0.08220921456813812,
0.18871986865997314,
0.016129406169056892,
-0.35319021344184875,
-0.1438475251197815,
-0.3089487850666046,
-0.15245281159877777,
0.32649606466293335,
-0.6233523488044739,
0.2028329074382782,
-0.6970278024673462,
-0.31355586647987366,
-0.06323221325874329,
0.1498795449733734,
-0.42871248722076416,
0.31514930725097656,
0.23197869956493378,
0.9668910503387451,
-0.8119223117828369,
0.6513621807098389,
0.9442375302314758,
-0.6149891018867493,
-1.1482137441635132,
-0.06597388535737991,
0.30052924156188965,
-0.9725210070610046,
0.42647215723991394,
0.26960283517837524,
0.12405605614185333,
-0.040567394345998764,
-0.8446975350379944,
-0.862374484539032,
1.401382565498352,
0.32906487584114075,
-0.33983853459358215,
-0.003978590480983257,
-0.10662500560283661,
0.36407461762428284,
-0.3654636740684509,
0.5023208260536194,
0.31588679552078247,
0.3675999939441681,
0.33557331562042236,
-1.186332106590271,
0.3021475076675415,
-0.3978910446166992,
0.27985426783561707,
-0.25399404764175415,
-0.9241257309913635,
1.0830618143081665,
-0.29719656705856323,
-0.23940934240818024,
0.6245637536048889,
0.8572174310684204,
0.5255835056304932,
0.18292827904224396,
0.4883214831352234,
0.5817291736602783,
0.8046431541442871,
0.04220721870660782,
1.1011873483657837,
-0.14008867740631104,
0.35768985748291016,
0.8346409797668457,
-0.12882471084594727,
0.5459810495376587,
0.2894502878189087,
0.00997450202703476,
0.2658437490463257,
0.948991596698761,
0.02919742837548256,
0.48688915371894836,
0.05151382461190224,
-0.2832006812095642,
-0.28552356362342834,
-0.42858657240867615,
-0.7008967399597168,
0.358791708946228,
0.21518711745738983,
-0.09908779710531235,
-0.1522504985332489,
0.043551817536354065,
0.4575961232185364,
-0.21836097538471222,
-0.2502085268497467,
0.5418015122413635,
0.016380121931433678,
-0.7160165309906006,
1.05030357837677,
0.04912211373448372,
0.9010672569274902,
-0.7443998456001282,
-0.0029855109751224518,
-0.6988285183906555,
0.014021722599864006,
-0.20956003665924072,
-0.7028160095214844,
-0.05163196846842766,
0.08349352329969406,
-0.1459941864013672,
0.07241905480623245,
0.8631475567817688,
-0.22765487432479858,
-0.2957492768764496,
0.03569302335381508,
0.2759467661380768,
0.3783336877822876,
0.0851622000336647,
-0.7736431956291199,
0.3638543486595154,
-0.07580386847257614,
-0.22940851747989655,
0.29592305421829224,
0.21685999631881714,
-0.1714114397764206,
0.9869464635848999,
0.5447254776954651,
-0.12648038566112518,
0.06068575382232666,
-0.08283266425132751,
1.1734737157821655,
-0.22059336304664612,
-0.41992267966270447,
-0.5788368582725525,
0.4352254271507263,
-0.015369578264653683,
-0.5041202306747437,
0.6939218640327454,
0.44530490040779114,
0.5620839595794678,
-0.21585430204868317,
0.6070328950881958,
-0.46657535433769226,
0.4100160598754883,
-0.3986242413520813,
0.9711710810661316,
-0.7072880864143372,
0.13848809897899628,
-0.06795797497034073,
-0.7642777562141418,
-0.10497242212295532,
0.6665799617767334,
0.05586230009794235,
0.1280060112476349,
0.5869976878166199,
1.1346913576126099,
-0.26182863116264343,
0.08717452734708786,
0.07787974923849106,
0.21903683245182037,
0.1965641975402832,
0.5850615501403809,
1.1564946174621582,
-0.5153709650039673,
0.707836389541626,
-0.44809871912002563,
-0.5367119908332825,
-0.2581426203250885,
-0.7545668482780457,
-1.095956802368164,
-0.4486672878265381,
-0.336029976606369,
-0.5953017473220825,
0.2843575179576874,
1.067047357559204,
0.7621884346008301,
-0.5979815721511841,
-0.22809332609176636,
0.2994236946105957,
-0.05680073797702789,
-0.07537449896335602,
-0.20437438786029816,
0.06431596726179123,
0.12417083978652954,
-0.6955549120903015,
0.37302908301353455,
0.020585596561431885,
0.3458768427371979,
-0.011727810837328434,
-0.2315863072872162,
-0.23075276613235474,
0.029802609235048294,
0.3496432602405548,
0.5814160704612732,
-0.7838324308395386,
-0.39793238043785095,
0.012337775900959969,
-0.1907016485929489,
-0.1335422694683075,
0.5920891165733337,
-0.7411022186279297,
0.04377812519669533,
0.27855294942855835,
0.3060593903064728,
0.34366264939308167,
-0.13579612970352173,
0.30580341815948486,
-0.557059645652771,
0.413310170173645,
0.19406193494796753,
0.24330765008926392,
0.414778470993042,
-0.5218934416770935,
0.5055421590805054,
0.38949501514434814,
-0.6169820427894592,
-1.0252952575683594,
0.17602860927581787,
-1.0764050483703613,
-0.19050997495651245,
1.4067151546478271,
-0.15190832316875458,
-0.297132670879364,
0.24982033669948578,
-0.5657812356948853,
0.44253209233283997,
-0.4514330327510834,
0.7717550992965698,
0.5061866641044617,
-0.17480526864528656,
-0.286243200302124,
-0.4879368245601654,
0.4379116892814636,
0.20946674048900604,
-0.8243331909179688,
-0.039363354444503784,
0.6888735890388489,
0.5965365171432495,
0.09890684485435486,
0.537056565284729,
-0.024115758016705513,
0.5703447461128235,
-0.1709512174129486,
0.1653452217578888,
-0.34617963433265686,
-0.2896549701690674,
-0.22856636345386505,
-0.33015817403793335,
-0.15909619629383087,
-0.4252983629703522
] |
IlyaGusev/mbart_ru_sum_gazeta
|
IlyaGusev
| 2023-03-16T22:41:26Z | 8,049 | 34 |
transformers
|
[
"transformers",
"pytorch",
"safetensors",
"mbart",
"text2text-generation",
"summarization",
"ru",
"dataset:IlyaGusev/gazeta",
"arxiv:2006.11063",
"license:apache-2.0",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] |
summarization
| 2022-03-02T23:29:04Z |
---
language:
- ru
tags:
- summarization
- mbart
datasets:
- IlyaGusev/gazeta
license: apache-2.0
inference:
parameters:
no_repeat_ngram_size: 4
widget:
- text: "Высота башни составляет 324 метра (1063 фута), примерно такая же высота, как у 81-этажного здания, и самое высокое сооружение в Париже. Его основание квадратно, размером 125 метров (410 футов) с любой стороны. Во время строительства Эйфелева башня превзошла монумент Вашингтона, став самым высоким искусственным сооружением в мире, и этот титул она удерживала в течение 41 года до завершения строительство здания Крайслер в Нью-Йорке в 1930 году. Это первое сооружение которое достигло высоты 300 метров. Из-за добавления вещательной антенны на вершине башни в 1957 году она сейчас выше здания Крайслер на 5,2 метра (17 футов). За исключением передатчиков, Эйфелева башня является второй самой высокой отдельно стоящей структурой во Франции после виадука Мийо."
example_title: "Википедия"
- text: "С 1 сентября в России вступают в силу поправки в закон «О банкротстве» — теперь должники смогут освобождаться от непосильных обязательств во внесудебном порядке, если сумма задолженности составляет не менее 50 тыс. рублей и не превышает 500 тыс. рублей без учета штрафов, пени, процентов за просрочку платежа и прочих имущественных или финансовых санкций. У физлиц и индивидуальных предпринимателей появилась возможность пройти процедуру банкротства без участия суда и финансового управляющего — достаточно подать соответствующее заявление через МФЦ. Сумму задолженности и список всех известных заявителю кредиторов нужно предоставить самостоятельно. Если все условия соблюдены, сведения внесут в Единый федеральный реестр в течение трех рабочих дней. При этом на момент подачи заявления в отношении заявителя должно быть окончено исполнительное производство с возвращением исполнительного документа взыскателю. Это значит, что у потенциального банкрота не должно быть имущества, которое можно взыскать. Кроме того, в отношении гражданина не должно быть возбуждено другое исполнительное производство. В период всей процедуры заявитель не сможет брать займы, кредиты, выдавать поручительства, совершать иные обеспечительные сделки. Внесудебное банкротство будет длиться шесть месяцев, в течение которых также будет действовать мораторий на удовлетворение требований кредиторов, отмеченных в заявлении должника, и мораторий об уплате обязательных платежей. Кроме того, прекращается начисление неустоек и иных финансовых санкций; имущественные взыскания (кроме алиментов) также будут приостановлены. По завершению процедуры заявителя освободят от дальнейшего выполнения требований кредиторов, указанных в заявлении о признании его банкротом, а эта задолженность признается безнадежной. В прошлом месяце стало известно, что за первое полугодие 2020 года российские суды признали банкротами 42,7 тыс. граждан (в том числе индивидуальных предпринимателей) — по данным единого реестра «Федресурс», это на 47,2% больше показателя аналогичного периода 2019 года. Рост числа обанкротившихся граждан во втором квартале по сравнению с первым замедлился — такая динамика обусловлена тем, что в период ограничений с 19 марта по 11 мая суды редко рассматривали банкротные дела компаний и меньше, чем обычно, в отношении граждан, объяснял руководитель проекта «Федресурс» Алексей Юхнин. Он прогнозирует, что во втором полугодии мы увидим рост показателя, когда суды рассмотрят все дела, что не смогли ранее в режиме ограничений. По его данным, уже в июне число личных банкротств выросло до 11,5 тыс., что в два раза превышает показатель аналогичного периода 2019 года."
example_title: "Новости"
- text: "Актуальность проблемы. Электронная информация играет все большую роль во всех сферах жизни современного общества. В последние годы объем научно-технической текстовой информации в электронном виде возрос настолько, что возникает угроза обесценивания этой информации в связи с трудностями поиска необходимых сведений среди множества доступных текстов. Развитие информационных ресурсов Интернет многократно усугубило проблему информационной перегрузки. В этой ситуации особенно актуальными становятся методы автоматизации реферирования текстовой информации, то есть методы получения сжатого представления текстовых документов–рефератов (аннотаций). Постановка проблемы автоматического реферирования текста и соответственно попытки ее решения с использованием различных подходов предпринимались многими исследователями. История применения вычислительной техники для реферирования насчитывает уже более 50 лет и связана с именами таких исследователей, как Г.П. Лун, В.Е. Берзон, И.П. Cевбо, Э.Ф. Скороходько, Д.Г. Лахути, Р.Г. Пиотровский и др. За эти годы выработаны многочисленные подходы к решению данной проблемы, которые достаточно четко подразделяются на два направления: автоматическое реферирование, основанное на экстрагировании из первичных документов с помощью определенных формальных признаков «наиболее информативных» фраз (фрагментов), совокупность которых образует некоторый экстракт; автоматическое реферирование, основанное на выделении из текстов с помощью специальных информационных языков наиболее существенной информации и порождении новых текстов (рефератов), содержательно обобщающих первичные документы."
example_title: "Научная статья"
---
# MBARTRuSumGazeta
## Model description
This is a ported version of [fairseq model](https://www.dropbox.com/s/fijtntnifbt9h0k/gazeta_mbart_v2_fairseq.tar.gz).
For more details, please see [Dataset for Automatic Summarization of Russian News](https://arxiv.org/abs/2006.11063).
## Intended uses & limitations
#### How to use
Colab: [link](https://colab.research.google.com/drive/1wdo_nPZPk6dWAn1J8nGx4Z5Ef82jCCob)
```python
from transformers import MBartTokenizer, MBartForConditionalGeneration
model_name = "IlyaGusev/mbart_ru_sum_gazeta"
tokenizer = MBartTokenizer.from_pretrained(model_name)
model = MBartForConditionalGeneration.from_pretrained(model_name)
article_text = "..."
input_ids = tokenizer(
[article_text],
max_length=600,
padding="max_length",
truncation=True,
return_tensors="pt",
)["input_ids"]
output_ids = model.generate(
input_ids=input_ids,
no_repeat_ngram_size=4
)[0]
summary = tokenizer.decode(output_ids, skip_special_tokens=True)
print(summary)
```
#### Limitations and bias
- The model should work well with Gazeta.ru articles, but for any other agencies it can suffer from domain shift
## Training data
- Dataset: [Gazeta](https://huggingface.co/datasets/IlyaGusev/gazeta)
## Training procedure
- Fairseq training script: [train.sh](https://github.com/IlyaGusev/summarus/blob/master/external/bart_scripts/train.sh)
- Porting: [Colab link](https://colab.research.google.com/drive/13jXOlCpArV-lm4jZQ0VgOpj6nFBYrLAr)
## Eval results
* Train dataset: **Gazeta v1 train**
* Test dataset: **Gazeta v1 test**
* Source max_length: **600**
* Target max_length: **200**
* no_repeat_ngram_size: **4**
* num_beams: **5**
| Model | R-1-f | R-2-f | R-L-f | chrF | METEOR | BLEU | Avg char length |
|:--------------------------|:------|:------|:------|:-------|:-------|:-----|:-----|
| [mbart_ru_sum_gazeta](https://huggingface.co/IlyaGusev/mbart_ru_sum_gazeta) | **32.4** | 14.3 | 28.0 | 39.7 | **26.4** | 12.1 | 371 |
| [rut5_base_sum_gazeta](https://huggingface.co/IlyaGusev/rut5_base_sum_gazeta) | 32.2 | **14.4** | **28.1** | **39.8** | 25.7 | **12.3** | 330 |
| [rugpt3medium_sum_gazeta](https://huggingface.co/IlyaGusev/rugpt3medium_sum_gazeta) | 26.2 | 7.7 | 21.7 | 33.8 | 18.2 | 4.3 | 244 |
* Train dataset: **Gazeta v1 train**
* Test dataset: **Gazeta v2 test**
* Source max_length: **600**
* Target max_length: **200**
* no_repeat_ngram_size: **4**
* num_beams: **5**
| Model | R-1-f | R-2-f | R-L-f | chrF | METEOR | BLEU | Avg char length |
|:--------------------------|:------|:------|:------|:-------|:-------|:-----|:-----|
| [mbart_ru_sum_gazeta](https://huggingface.co/IlyaGusev/mbart_ru_sum_gazeta) | **28.7** | **11.1** | 24.4 | **37.3** | **22.7** | **9.4** | 373 |
| [rut5_base_sum_gazeta](https://huggingface.co/IlyaGusev/rut5_base_sum_gazeta) | 28.6 | **11.1** | **24.5** | 37.2 | 22.0 | **9.4** | 331 |
| [rugpt3medium_sum_gazeta](https://huggingface.co/IlyaGusev/rugpt3medium_sum_gazeta) | 24.1 | 6.5 | 19.8 | 32.1 | 16.3 | 3.6 | 242 |
Predicting all summaries:
```python
import json
import torch
from transformers import MBartTokenizer, MBartForConditionalGeneration
from datasets import load_dataset
def gen_batch(inputs, batch_size):
batch_start = 0
while batch_start < len(inputs):
yield inputs[batch_start: batch_start + batch_size]
batch_start += batch_size
def predict(
model_name,
input_records,
output_file,
max_source_tokens_count=600,
batch_size=4
):
device = "cuda" if torch.cuda.is_available() else "cpu"
tokenizer = MBartTokenizer.from_pretrained(model_name)
model = MBartForConditionalGeneration.from_pretrained(model_name).to(device)
predictions = []
for batch in gen_batch(inputs, batch_size):
texts = [r["text"] for r in batch]
input_ids = tokenizer(
batch,
return_tensors="pt",
padding="max_length",
truncation=True,
max_length=max_source_tokens_count
)["input_ids"].to(device)
output_ids = model.generate(
input_ids=input_ids,
no_repeat_ngram_size=4
)
summaries = tokenizer.batch_decode(output_ids, skip_special_tokens=True)
for s in summaries:
print(s)
predictions.extend(summaries)
with open(output_file, "w") as w:
for p in predictions:
w.write(p.strip().replace("\n", " ") + "\n")
gazeta_test = load_dataset('IlyaGusev/gazeta', script_version="v1.0")["test"]
predict("IlyaGusev/mbart_ru_sum_gazeta", list(gazeta_test), "mbart_predictions.txt")
```
Evaluation: https://github.com/IlyaGusev/summarus/blob/master/evaluate.py
Flags: --language ru --tokenize-after --lower
### BibTeX entry and citation info
```bibtex
@InProceedings{10.1007/978-3-030-59082-6_9,
author="Gusev, Ilya",
editor="Filchenkov, Andrey and Kauttonen, Janne and Pivovarova, Lidia",
title="Dataset for Automatic Summarization of Russian News",
booktitle="Artificial Intelligence and Natural Language",
year="2020",
publisher="Springer International Publishing",
address="Cham",
pages="122--134",
isbn="978-3-030-59082-6"
}
```
|
[
-0.43356481194496155,
-0.49450963735580444,
0.2660702168941498,
0.2845476567745209,
-0.33230170607566833,
-0.017445022240281105,
-0.1199246421456337,
-0.2713121771812439,
0.44092974066734314,
0.0003117651795037091,
-0.6238369345664978,
-0.4415772557258606,
-0.6753144264221191,
-0.06616866588592529,
-0.04794064909219742,
1.1771177053451538,
0.009843301959335804,
0.13482588529586792,
-0.07203524559736252,
-0.015048193745315075,
-0.2440781444311142,
-0.2355404943227768,
-0.42125850915908813,
-0.43396687507629395,
0.2210688591003418,
0.2564387619495392,
0.4944537878036499,
0.48681601881980896,
0.7383565306663513,
0.3746282458305359,
-0.09923586994409561,
-0.03089955821633339,
-0.35211655497550964,
-0.33732375502586365,
0.37404924631118774,
-0.524071991443634,
-0.7675287127494812,
-0.012801891192793846,
0.802080512046814,
0.4886667728424072,
-0.18661291897296906,
0.605846643447876,
0.1277817040681839,
0.7770281434059143,
-0.285185843706131,
0.16386863589286804,
-0.4168195128440857,
-0.08114234358072281,
-0.27547022700309753,
-0.1440471112728119,
-0.2780228853225708,
-0.3221123218536377,
0.02283577248454094,
-0.6361817717552185,
0.21542252600193024,
0.16164380311965942,
1.5753662586212158,
0.24463561177253723,
-0.1285320520401001,
0.02544599026441574,
-0.28038668632507324,
1.0014535188674927,
-1.1075931787490845,
0.07606538385152817,
0.21071642637252808,
0.11085056513547897,
-0.16963762044906616,
-0.8247960209846497,
-0.5316402912139893,
-0.07992933690547943,
-0.163740873336792,
0.4601057171821594,
-0.38133931159973145,
-0.3698335886001587,
0.321161687374115,
0.288972407579422,
-0.7567428350448608,
-0.31863462924957275,
-0.6445587873458862,
-0.05868848040699959,
0.6528629660606384,
0.46310240030288696,
0.22655147314071655,
-0.4587855637073517,
-0.5754339694976807,
-0.14248107373714447,
-0.3179929852485657,
0.44519516825675964,
0.29273441433906555,
0.3077656626701355,
-0.5090094208717346,
0.7686015367507935,
-0.4183482229709625,
0.5580923557281494,
0.36259201169013977,
-0.19375492632389069,
0.7759765386581421,
-0.37672489881515503,
-0.43086230754852295,
-0.09852156043052673,
1.1483154296875,
0.5393291711807251,
-0.004933907184749842,
0.26664772629737854,
0.03657889366149902,
-0.07867010682821274,
-0.017283393070101738,
-1.1270244121551514,
-0.2199636846780777,
0.3317745625972748,
-0.48364996910095215,
-0.4791860580444336,
0.2066945880651474,
-0.9184487462043762,
0.01108577474951744,
-0.07263398915529251,
0.7831873297691345,
-0.6949048042297363,
-0.1740046888589859,
0.21251322329044342,
-0.12304140627384186,
0.343039870262146,
0.06682702153921127,
-0.5940950512886047,
0.2230415940284729,
0.33824536204338074,
0.9472902417182922,
0.2742283344268799,
-0.41969117522239685,
-0.3580803871154785,
-0.20160657167434692,
-0.2833973467350006,
0.7144131064414978,
-0.0858779028058052,
-0.1546599119901657,
-0.4508815407752991,
0.13301679491996765,
-0.3130601942539215,
-0.2884881794452667,
0.3913702368736267,
-0.07043363898992538,
0.3416832983493805,
-0.3363141119480133,
-0.4071305990219116,
-0.3404431641101837,
0.21702899038791656,
-0.4088570475578308,
1.2212414741516113,
0.31660646200180054,
-1.291882872581482,
0.49048513174057007,
-0.5086920261383057,
-0.25695469975471497,
-0.1905805468559265,
0.1153225377202034,
-1.0433673858642578,
-0.20932850241661072,
0.3748265206813812,
0.7109500169754028,
-0.29163333773612976,
0.28234943747520447,
-0.23506255447864532,
-0.14554466307163239,
0.3031063675880432,
-0.0016943414229899645,
1.1825875043869019,
0.1684219092130661,
-0.7131149172782898,
0.32069334387779236,
-0.9364285469055176,
0.09319886565208435,
0.33840999007225037,
-0.4201692044734955,
0.06141259893774986,
-0.2593046724796295,
-0.0408172607421875,
0.15052588284015656,
0.25621408224105835,
-0.43544068932533264,
0.22814297676086426,
-0.3864884674549103,
0.17096899449825287,
0.6883341670036316,
0.009196827188134193,
0.13377754390239716,
-0.5052767992019653,
0.48037680983543396,
0.2204689085483551,
0.3732311725616455,
0.007888991385698318,
-0.5913949608802795,
-0.9576477408409119,
-0.38356438279151917,
0.25765109062194824,
0.48578622937202454,
-0.6281237006187439,
0.48554015159606934,
-0.3710043728351593,
-0.8331707715988159,
-0.49165505170822144,
-0.14782020449638367,
0.37110716104507446,
0.5853258967399597,
0.4081408977508545,
-0.013206318952143192,
-0.8272076845169067,
-0.9886341691017151,
0.011513934470713139,
-0.08836618065834045,
0.12398157268762589,
0.24532437324523926,
0.8164367079734802,
-0.1120891124010086,
0.8428376317024231,
-0.5342919230461121,
-0.24653074145317078,
-0.49865037202835083,
0.13666944205760956,
0.6826847791671753,
0.7143670916557312,
0.7436261177062988,
-0.6546947360038757,
-0.9343817234039307,
0.0009490753291174769,
-0.8446281552314758,
0.04485215246677399,
-0.1876770704984665,
-0.15595777332782745,
0.1653907150030136,
0.1446077674627304,
-0.8248314261436462,
0.529403567314148,
0.38708338141441345,
-0.6919448971748352,
0.8835808634757996,
-0.027498923242092133,
0.433017373085022,
-1.5163506269454956,
0.448443740606308,
0.02390180341899395,
-0.25513043999671936,
-0.7804605960845947,
-0.13576506078243256,
0.07627571374177933,
0.14418305456638336,
-0.5602879524230957,
0.5763639211654663,
-0.6219195127487183,
0.03536347672343254,
0.012941929511725903,
0.15827549993991852,
-0.20807737112045288,
0.611288845539093,
-0.14490534365177155,
0.8665212392807007,
0.9315627217292786,
-0.587387204170227,
0.48911479115486145,
0.49662327766418457,
-0.5744363069534302,
0.399263858795166,
-0.6068879961967468,
-0.26479700207710266,
0.0011021216632798314,
0.17314466834068298,
-0.7944549322128296,
-0.26029539108276367,
0.511158287525177,
-1.1289535760879517,
0.41271325945854187,
-0.16722911596298218,
-0.24611221253871918,
-0.5332198143005371,
-0.600304365158081,
0.06592175364494324,
0.591058075428009,
-0.3083667457103729,
0.44463685154914856,
0.317918062210083,
-0.2276400327682495,
-1.0499001741409302,
-0.6843791007995605,
-0.03143578767776489,
-0.2665277421474457,
-0.7188318967819214,
0.2387845516204834,
-0.0865866094827652,
-0.21870587766170502,
0.17330287396907806,
-0.015315044671297073,
0.14845049381256104,
-0.031000271439552307,
0.30468347668647766,
0.628309428691864,
-0.33010637760162354,
-0.37215468287467957,
-0.23839542269706726,
-0.16261263191699982,
0.032274000346660614,
-0.038883402943611145,
0.8024311661720276,
-0.5671462416648865,
0.16019421815872192,
-0.5663970112800598,
-0.06482035666704178,
0.47873765230178833,
-0.09370312839746475,
1.182554841041565,
0.9579121470451355,
-0.3139730989933014,
0.0826374739408493,
-0.27230727672576904,
-0.0028975512832403183,
-0.43905875086784363,
0.4228600859642029,
-0.43431901931762695,
-0.460336834192276,
0.8128482699394226,
0.343543142080307,
0.06970204412937164,
0.9268873333930969,
0.7232310771942139,
-0.030694086104631424,
0.8709409236907959,
0.597238302230835,
-0.13239772617816925,
0.42655181884765625,
-0.9129741787910461,
-0.14807859063148499,
-1.1325139999389648,
-0.5169001817703247,
-0.5182650089263916,
-0.15874703228473663,
-0.3290156424045563,
-0.41018980741500854,
0.20468464493751526,
0.04358678311109543,
-0.2918049991130829,
0.491520494222641,
-0.5001844763755798,
0.0819239690899849,
0.5479342341423035,
0.2078457921743393,
-0.10101683437824249,
-0.09334925562143326,
-0.1917506605386734,
-0.027396192774176598,
-0.7416248917579651,
-0.19749324023723602,
1.192214012145996,
0.1947695016860962,
0.7385358810424805,
-0.08779764175415039,
0.6346808671951294,
-0.05380630865693092,
0.36542055010795593,
-0.5707744359970093,
0.7161647081375122,
0.20226959884166718,
-0.8117319941520691,
-0.26671773195266724,
-0.6870442032814026,
-0.9227714538574219,
0.39109018445014954,
-0.38918203115463257,
-0.9716211557388306,
0.21463976800441742,
-0.02237345650792122,
-0.4282383620738983,
0.629340410232544,
-0.39592447876930237,
0.8942123055458069,
0.0830138623714447,
-0.4473000168800354,
-0.15794585645198822,
-0.7842991352081299,
0.5036411881446838,
0.11461852490901947,
0.177532359957695,
-0.3194710612297058,
0.10183990746736526,
1.058760166168213,
-0.5122779607772827,
0.5690001249313354,
-0.1740666925907135,
0.31670403480529785,
0.47268882393836975,
-0.14380238950252533,
0.5247935056686401,
0.005359638947993517,
-0.09502121806144714,
0.10801848769187927,
0.02181045524775982,
-0.5466054677963257,
-0.14659051597118378,
0.5405712127685547,
-0.7825730443000793,
-0.5155094265937805,
-0.8082765936851501,
-0.48435407876968384,
-0.02186477743089199,
0.3327907621860504,
0.7159375548362732,
0.649847149848938,
-0.21809189021587372,
0.443372905254364,
0.45843711495399475,
-0.24538610875606537,
0.4795805811882019,
0.2478576898574829,
-0.18743814527988434,
-0.6018275618553162,
0.8737822771072388,
-0.12081856280565262,
0.12360678613185883,
0.16231632232666016,
0.16764655709266663,
-0.160402312874794,
-0.3926120400428772,
-0.47395002841949463,
0.4681529700756073,
-0.5909094214439392,
-0.4016053378582001,
-0.7170358896255493,
-0.2913016676902771,
-0.6781205534934998,
-0.17499202489852905,
-0.45617765188217163,
-0.5020637512207031,
-0.444440096616745,
-0.07484730333089828,
0.4100940227508545,
0.5074699521064758,
-0.3750402331352234,
0.14662836492061615,
-0.6301900744438171,
0.30393311381340027,
-0.113397516310215,
0.18464939296245575,
-0.1070462316274643,
-0.8510909080505371,
-0.5302497148513794,
0.008268745616078377,
-0.2903449535369873,
-0.8935650587081909,
0.8012751936912537,
0.04170586168766022,
0.5321508049964905,
0.2757393419742584,
0.06274039298295975,
0.815482497215271,
-0.30734172463417053,
0.8352483510971069,
0.43003326654434204,
-0.8354275226593018,
0.46829962730407715,
-0.5141298770904541,
0.31579992175102234,
0.39045658707618713,
0.32276588678359985,
-0.3528761565685272,
-0.46828410029411316,
-0.8690251111984253,
-0.8100329637527466,
1.1347953081130981,
0.5594601631164551,
-0.17862416803836823,
0.38377606868743896,
0.13893888890743256,
-0.10524483025074005,
0.18441671133041382,
-0.9051119089126587,
-0.7194504141807556,
-0.3461773991584778,
-0.299543172121048,
-0.14174076914787292,
-0.18053895235061646,
-0.1299746036529541,
-0.46256208419799805,
1.1920443773269653,
0.0364772267639637,
0.5485317707061768,
0.3277825117111206,
-0.12229575216770172,
-0.20804771780967712,
0.03269091621041298,
0.610095739364624,
0.7190439105033875,
-0.5332892537117004,
-0.22571884095668793,
0.2564806640148163,
-0.7862168550491333,
0.0002674220595508814,
0.2985549867153168,
-0.2615964412689209,
0.18722213804721832,
0.19022387266159058,
0.9161033034324646,
0.15769371390342712,
-0.3464444577693939,
0.5129557847976685,
-0.18208052217960358,
-0.5093786716461182,
-0.3173268735408783,
-0.1412358582019806,
0.1706765592098236,
0.3563739061355591,
0.522361695766449,
0.2668570578098297,
0.06841007620096207,
-0.4571654498577118,
0.2835782766342163,
0.5242134928703308,
-0.2042485922574997,
-0.48950886726379395,
0.8415900468826294,
-0.06995493173599243,
0.12206491082906723,
0.21104905009269714,
-0.04799576848745346,
-0.6587624549865723,
0.9126039147377014,
0.2881178557872772,
0.8842982649803162,
-0.13940314948558807,
0.23090749979019165,
0.9663591980934143,
0.4588589370250702,
-0.012258416973054409,
0.22955244779586792,
0.20481957495212555,
-0.5165800452232361,
-0.09086785465478897,
-0.7389435768127441,
-0.06784425675868988,
0.30687206983566284,
-0.8064626455307007,
0.3667822480201721,
-0.31602248549461365,
-0.40283432602882385,
0.23034800589084625,
0.4811512231826782,
-0.5776475071907043,
0.2987079322338104,
-0.026126336306333542,
0.8420345783233643,
-0.7564942836761475,
0.8014382123947144,
0.6521673202514648,
-0.5753304958343506,
-0.9957860112190247,
-0.09206829220056534,
0.028198787942528725,
-0.5885659456253052,
0.4805043637752533,
0.15969783067703247,
0.0880919024348259,
-0.04267797991633415,
-0.6613888740539551,
-1.0678974390029907,
1.1916985511779785,
0.14669282734394073,
-0.22855326533317566,
0.1990773230791092,
-0.11420949548482895,
0.29812318086624146,
-0.08317344635725021,
0.25477007031440735,
0.42012178897857666,
0.5624853372573853,
-0.0037437225691974163,
-0.8399163484573364,
0.23973864316940308,
-0.5023061633110046,
-0.3545650839805603,
0.21052423119544983,
-1.0974441766738892,
1.2286787033081055,
-0.4983454942703247,
-0.08369409292936325,
0.15037688612937927,
0.7787713408470154,
0.43670418858528137,
0.27094167470932007,
0.19949743151664734,
0.6133861541748047,
0.5055837631225586,
-0.2530554234981537,
0.9791975617408752,
-0.16738004982471466,
0.8420690894126892,
0.706963062286377,
0.22535204887390137,
0.6567947864532471,
0.37320566177368164,
-0.5190969705581665,
0.5056158900260925,
0.7821148037910461,
-0.349703311920166,
0.36845797300338745,
-0.14132757484912872,
-0.05546678975224495,
-0.1391093134880066,
0.3585880398750305,
-0.6378586292266846,
0.19674386084079742,
0.0868649110198021,
-0.0878760889172554,
-0.033949512988328934,
-0.103078693151474,
0.3871592879295349,
-0.28377053141593933,
-0.18859679996967316,
0.5873594284057617,
0.129584401845932,
-0.49571630358695984,
0.8155546188354492,
-0.008416158147156239,
0.8551628589630127,
-0.654446005821228,
0.2572176456451416,
-0.17853686213493347,
0.36275121569633484,
-0.2752659320831299,
-0.7619925141334534,
0.09394300729036331,
0.17799818515777588,
-0.06030368059873581,
0.2020566314458847,
0.6295849680900574,
-0.31149816513061523,
-0.7837192416191101,
0.07799294590950012,
0.21541285514831543,
0.28757601976394653,
0.21276383101940155,
-1.0257452726364136,
-0.09759493172168732,
0.2794891893863678,
-0.9938806295394897,
0.3304203450679779,
0.3554840087890625,
0.4133644104003906,
0.9117600917816162,
0.6921951770782471,
0.2740057706832886,
0.2893812358379364,
-0.25774142146110535,
0.9915028214454651,
-0.7375232577323914,
-0.5305634140968323,
-0.8736183643341064,
0.748428463935852,
-0.15285181999206543,
-0.5492433309555054,
1.0214170217514038,
0.9545391201972961,
0.5201660394668579,
-0.18472139537334442,
0.666343629360199,
-0.5012986063957214,
0.4327737092971802,
-0.598555326461792,
0.9341813921928406,
-0.8488759994506836,
-0.22354407608509064,
-0.42088109254837036,
-0.6926770806312561,
-0.16172049939632416,
0.7644537091255188,
-0.11941693723201752,
0.07824209332466125,
0.626931369304657,
0.665632426738739,
0.014203392900526524,
-0.3684416711330414,
0.1758098602294922,
0.48761433362960815,
0.18836624920368195,
0.6387977004051208,
0.4311538636684418,
-0.7968661785125732,
0.6778138875961304,
-0.592242419719696,
-0.25346851348876953,
-0.5534334778785706,
-0.6503306031227112,
-1.0395151376724243,
-0.7703268527984619,
-0.35221296548843384,
-0.5808680653572083,
-0.18322940170764923,
0.9221207499504089,
0.7410810589790344,
-0.7661290168762207,
-0.14112091064453125,
0.20843014121055603,
-0.15143762528896332,
-0.2839012145996094,
-0.2665731906890869,
0.5640472769737244,
-0.2579426169395447,
-0.8524498343467712,
0.07921533286571503,
0.06507081538438797,
0.23422439396381378,
0.11549460142850876,
-0.23066481947898865,
-0.3786112368106842,
0.1051543802022934,
0.310337632894516,
0.3516002595424652,
-0.5706551671028137,
0.03248574957251549,
-0.05988252907991409,
-0.20114584267139435,
0.29523101449012756,
0.3214357793331146,
-0.6176573038101196,
0.12270309776067734,
0.5505934953689575,
0.1782652586698532,
0.8749774098396301,
0.014980881474912167,
0.24442875385284424,
-0.4222816824913025,
0.47476112842559814,
0.03485780209302902,
0.6134520173072815,
0.2764570415019989,
-0.4155822992324829,
0.6360875368118286,
0.32690897583961487,
-0.5537959933280945,
-1.086365818977356,
-0.41426533460617065,
-1.3592313528060913,
-0.3163139522075653,
1.1514472961425781,
-0.21923817694187164,
-0.5652018785476685,
0.34632015228271484,
-0.3186764121055603,
0.5041909217834473,
-0.4373156428337097,
0.7379156351089478,
0.5976410508155823,
-0.042514633387327194,
-0.10405932366847992,
-0.6691521406173706,
0.554373025894165,
0.3016655445098877,
-0.9114751815795898,
0.11788539588451385,
0.30260321497917175,
0.5472160577774048,
0.18816044926643372,
0.7597537040710449,
-0.1878051459789276,
0.3972114324569702,
0.4097636938095093,
0.3114359676837921,
-0.23280125856399536,
-0.12799331545829773,
-0.2305738925933838,
-0.2377942055463791,
-0.35938748717308044,
-0.4106591045856476
] |
wenge-research/yayi-7b-llama2
|
wenge-research
| 2023-09-13T02:25:50Z | 8,047 | 8 |
transformers
|
[
"transformers",
"pytorch",
"llama",
"text-generation",
"yayi",
"zh",
"en",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-07-21T10:10:18Z |
---
language:
- zh
- en
pipeline_tag: text-generation
tags:
- yayi
---
# 雅意大模型
## 介绍
[雅意大模型](https://www.wenge.com/yayi/index.html)在百万级人工构造的高质量领域数据上进行指令微调得到,训练数据覆盖媒体宣传、舆情分析、公共安全、金融风控、城市治理等五大领域,上百种自然语言指令任务。雅意大模型从预训练初始化权重到领域模型的迭代过程中,我们逐步增强了它的中文基础能力和领域分析能力,并增加了多轮对话和部分插件能力。同时,经过数百名用户内测过程中持续不断的人工反馈优化,我们进一步提升了模型性能和安全性。
通过雅意大模型的开源为促进中文预训练大模型开源社区的发展,贡献自己的一份力量,通过开源,与每一位合作伙伴共建雅意大模型生态。
*News: 🔥 雅意大模型已开源基于 LLaMA 2 的中文优化模型版本,探索适用于中文多领域任务的最新实践。*
## 模型地址
| 模型名称 | 🤗HF模型标识 | 下载地址 |
| --------- | --------- | --------- |
| YaYi-7B | wenge-research/yayi-7b | [模型下载](https://huggingface.co/wenge-research/yayi-7b) |
| YaYi-7B-Llama2 | wenge-research/yayi-7b-llama2 | [模型下载](https://huggingface.co/wenge-research/yayi-7b-llama2) |
| YaYi-13B-Llama2 | wenge-research/yayi-13b-llama2 | [模型下载](https://huggingface.co/wenge-research/yayi-13b-llama2) |
| YaYi-70B-Llama2 | wenge-research/yayi-70b-llama2 | [模型下载](https://huggingface.co/wenge-research/yayi-70b-llama2) |
详情请参考我们的 [💻Github Repo](https://github.com/wenge-research/YaYi)。
## 运行方式
```python
import torch
from transformers import LlamaForCausalLM, LlamaTokenizer, GenerationConfig
from transformers import StoppingCriteria, StoppingCriteriaList
pretrained_model_name_or_path = "wenge-research/yayi-7b-llama2"
tokenizer = LlamaTokenizer.from_pretrained(pretrained_model_name_or_path)
model = LlamaForCausalLM.from_pretrained(pretrained_model_name_or_path, device_map="auto", torch_dtype=torch.bfloat16, trust_remote_code=False)
# Define the stopping criteria
class KeywordsStoppingCriteria(StoppingCriteria):
def __init__(self, keywords_ids:list):
self.keywords = keywords_ids
def __call__(self, input_ids: torch.LongTensor, scores: torch.FloatTensor, **kwargs) -> bool:
if input_ids[0][-1] in self.keywords:
return True
return False
stop_words = ["<|End|>", "<|YaYi|>", "<|Human|>", "</s>"]
stop_ids = [tokenizer.encode(w)[-1] for w in stop_words]
stop_criteria = KeywordsStoppingCriteria(stop_ids)
# inference
prompt = "你是谁?"
formatted_prompt = f"""<|System|>:
You are a helpful, respectful and honest assistant named YaYi developed by Beijing Wenge Technology Co.,Ltd. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature.\n\nIf a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.
<|Human|>:
{prompt}
<|YaYi|>:
"""
inputs = tokenizer(formatted_prompt, return_tensors="pt").to(model.device)
eos_token_id = tokenizer("<|End|>").input_ids[0]
generation_config = GenerationConfig(
eos_token_id=eos_token_id,
pad_token_id=eos_token_id,
do_sample=True,
max_new_tokens=256,
temperature=0.3,
repetition_penalty=1.1,
no_repeat_ngram_size=0
)
response = model.generate(**inputs, generation_config=generation_config, stopping_criteria=StoppingCriteriaList([stop_criteria]))
response = [response[0][len(inputs.input_ids[0]):]]
response_str = tokenizer.batch_decode(response, skip_special_tokens=False, clean_up_tokenization_spaces=False)[0]
print(response_str)
```
---
# YaYi
## Introduction
[YaYi](https://www.wenge.com/yayi/index.html) was fine-tuned on millions of artificially constructed high-quality domain data. This training data covers five key domains: media publicity, public opinion analysis, public safety, financial risk control, and urban governance, encompassing over a hundred natural language instruction tasks. Throughout the iterative development process of the YaYi, starting from pre-training initialization weights and progressing to domain-specific model, we have steadily enhanced its foundational Chinese language capabilities and domain analysis capabilities. We've also introduced multi-turn conversation enhancements and integrated various plug-in capabilities. Furthermore, through continuous manual feedback and optimization from hundreds of users during the internal testing phase, we've meticulously refined the model's performance and security.
By open-sourcing the YaYi model, we will contribute our own efforts to the development of the Chinese pre-trained large language model open-source community. Through this open-source initiative, we seek to collaborate with every partner to build the YaYi model ecosystem together.
*News: 🔥 YaYi has open sourced the Chinese optimization model version based on LLaMA 2 to explore the latest practices suitable for Chinese multi-domain tasks.*
## Model download
| Model | 🤗HF Model Name | Download Links |
| --------- | --------- | --------- |
| YaYi-7B | wenge-research/yayi-7b | [Download](https://huggingface.co/wenge-research/yayi-7b) |
| YaYi-7B-Llama2 | wenge-research/yayi-7b-llama2 | [Download](https://huggingface.co/wenge-research/yayi-7b-llama2) |
| YaYi-13B-Llama2 | wenge-research/yayi-13b-llama2 | [Download](https://huggingface.co/wenge-research/yayi-13b-llama2) |
| YaYi-70B-Llama2 | wenge-research/yayi-70b-llama2 | [Download](https://huggingface.co/wenge-research/yayi-70b-llama2) |
For more details, please refer to our [💻Github Repo](https://github.com/wenge-research/YaYi)。
## Run
```python
import torch
from transformers import LlamaForCausalLM, LlamaTokenizer, GenerationConfig
from transformers import StoppingCriteria, StoppingCriteriaList
pretrained_model_name_or_path = "wenge-research/yayi-7b-llama2"
tokenizer = LlamaTokenizer.from_pretrained(pretrained_model_name_or_path)
model = LlamaForCausalLM.from_pretrained(pretrained_model_name_or_path, device_map="auto", torch_dtype=torch.bfloat16, trust_remote_code=False)
# Define the stopping criteria
class KeywordsStoppingCriteria(StoppingCriteria):
def __init__(self, keywords_ids:list):
self.keywords = keywords_ids
def __call__(self, input_ids: torch.LongTensor, scores: torch.FloatTensor, **kwargs) -> bool:
if input_ids[0][-1] in self.keywords:
return True
return False
stop_words = ["<|End|>", "<|YaYi|>", "<|Human|>", "</s>"]
stop_ids = [tokenizer.encode(w)[-1] for w in stop_words]
stop_criteria = KeywordsStoppingCriteria(stop_ids)
# inference
prompt = "你是谁?"
formatted_prompt = f"""<|System|>:
You are a helpful, respectful and honest assistant named YaYi developed by Beijing Wenge Technology Co.,Ltd. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature.\n\nIf a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.
<|Human|>:
{prompt}
<|YaYi|>:
"""
inputs = tokenizer(formatted_prompt, return_tensors="pt").to(model.device)
eos_token_id = tokenizer("<|End|>").input_ids[0]
generation_config = GenerationConfig(
eos_token_id=eos_token_id,
pad_token_id=eos_token_id,
do_sample=True,
max_new_tokens=256,
temperature=0.3,
repetition_penalty=1.1,
no_repeat_ngram_size=0
)
response = model.generate(**inputs, generation_config=generation_config, stopping_criteria=StoppingCriteriaList([stop_criteria]))
response = [response[0][len(inputs.input_ids[0]):]]
response_str = tokenizer.batch_decode(response, skip_special_tokens=False, clean_up_tokenization_spaces=False)[0]
print(response_str)
```
|
[
-0.4672647714614868,
-0.8157069087028503,
0.2724542021751404,
0.33270183205604553,
-0.3403051495552063,
-0.27429577708244324,
-0.2931956350803375,
-0.5365033149719238,
0.1406865268945694,
0.2441224902868271,
-0.6103783249855042,
-0.5788615345954895,
-0.5647536516189575,
0.00982728786766529,
-0.3527861535549164,
0.9475438594818115,
-0.1325227916240692,
-0.1555139571428299,
0.19328846037387848,
-0.10805991291999817,
-0.27140721678733826,
-0.24098166823387146,
-0.6720269322395325,
-0.3374473452568054,
0.3386382460594177,
0.057900816202163696,
0.25504496693611145,
0.6011303067207336,
0.34379029273986816,
0.4320532977581024,
-0.13708892464637756,
0.241855189204216,
-0.36499929428100586,
-0.043606843799352646,
0.1225992739200592,
-0.4528590142726898,
-0.3990020155906677,
-0.017772577702999115,
0.45447593927383423,
0.29327934980392456,
-0.13072915375232697,
0.5183332562446594,
0.14656606316566467,
0.3206401467323303,
-0.4588804244995117,
0.13159944117069244,
-0.5479475855827332,
-0.10889282822608948,
-0.1149187758564949,
-0.25988665223121643,
-0.08842949569225311,
-0.4196028411388397,
0.04220495745539665,
-0.6313014030456543,
0.31939560174942017,
0.011888357810676098,
1.2651476860046387,
0.09875725954771042,
-0.15302497148513794,
-0.24056896567344666,
-0.42354893684387207,
1.073099136352539,
-1.0571300983428955,
0.1959279328584671,
0.5005700588226318,
-0.07609096169471741,
-0.10008569061756134,
-0.9074336290359497,
-0.847679078578949,
-0.24474096298217773,
-0.18287919461727142,
0.1909278929233551,
0.034619927406311035,
-0.02366630733013153,
0.3066382110118866,
0.06111608073115349,
-0.5678706169128418,
-0.020989922806620598,
-0.5429786443710327,
-0.15735585987567902,
0.7541594505310059,
0.14132721722126007,
0.4930145740509033,
-0.31016308069229126,
-0.36869022250175476,
-0.12984244525432587,
-0.4318169057369232,
0.21330787241458893,
0.16543881595134735,
0.15397807955741882,
-0.3626396059989929,
0.47824570536613464,
-0.36816683411598206,
0.6126874685287476,
0.1046387106180191,
-0.5364919900894165,
0.5613685250282288,
-0.49374625086784363,
-0.288091778755188,
0.03260452672839165,
1.06510591506958,
0.6047418713569641,
0.048005204647779465,
-0.11215011775493622,
-0.1554621011018753,
-0.07208424061536789,
-0.222263365983963,
-0.8759459257125854,
0.02520836889743805,
0.6257045865058899,
-0.5786205530166626,
-0.286019891500473,
0.11408566683530807,
-0.74628084897995,
0.07818687707185745,
-0.013279982842504978,
0.5764783620834351,
-0.5034103393554688,
-0.384126216173172,
0.36031562089920044,
-0.2797107398509979,
0.3109739124774933,
0.01344633661210537,
-0.8632715344429016,
0.12671618163585663,
0.42063644528388977,
0.9447610378265381,
0.2958616018295288,
-0.7035717368125916,
-0.08099991083145142,
0.16559629142284393,
-0.158614844083786,
0.4511783719062805,
0.005782595369964838,
-0.3688705563545227,
-0.10297927260398865,
0.14032994210720062,
-0.3196239471435547,
-0.33731183409690857,
0.5762491822242737,
-0.40890786051750183,
0.47266876697540283,
-0.2966429591178894,
-0.21677768230438232,
-0.2622724175453186,
0.36470672488212585,
-0.44504019618034363,
1.229172945022583,
-0.05960183963179588,
-1.0962891578674316,
0.21031613647937775,
-0.6642034649848938,
-0.42641550302505493,
-0.07242424786090851,
0.1075700968503952,
-0.46630528569221497,
-0.07567749172449112,
0.25125983357429504,
0.40118536353111267,
-0.3700462579727173,
0.20210815966129303,
-0.03804086148738861,
-0.30828824639320374,
0.3907175064086914,
-0.3571387827396393,
1.1194260120391846,
0.1815911829471588,
-0.6380298137664795,
0.15243880450725555,
-0.9204912185668945,
0.2813037633895874,
0.5111045241355896,
-0.3839596211910248,
-0.11289048194885254,
0.08086992055177689,
0.1800982803106308,
0.34982961416244507,
0.607452929019928,
-0.6476836800575256,
0.12156558036804199,
-0.4202563464641571,
0.7239779233932495,
0.8849574327468872,
0.0025201684329658747,
0.013440868817269802,
-0.535167396068573,
0.3856194317340851,
-0.09693840146064758,
0.18325819075107574,
-0.07650371640920639,
-0.4828578531742096,
-1.0945265293121338,
-0.15287023782730103,
0.12959326803684235,
0.600310742855072,
-0.6322021484375,
0.86504065990448,
-0.1604067087173462,
-0.6512357592582703,
-0.5534152388572693,
0.004081514663994312,
0.4194543659687042,
0.5719008445739746,
0.6009976863861084,
0.014124121516942978,
-0.5951449275016785,
-0.49809664487838745,
-0.01580028422176838,
-0.2704150378704071,
0.0033396573271602392,
0.24194449186325073,
0.7733990550041199,
-0.1897580623626709,
0.8098593950271606,
-0.6458930969238281,
-0.29638153314590454,
-0.3600868284702301,
0.17507846653461456,
0.43924716114997864,
0.5133998394012451,
0.599871039390564,
-0.729915976524353,
-0.47151896357536316,
-0.10971810668706894,
-0.7923634052276611,
-0.09529371559619904,
-0.14864985644817352,
-0.19407787919044495,
0.2078540176153183,
0.3041630983352661,
-0.8054257035255432,
0.30820345878601074,
0.43962615728378296,
-0.37386298179626465,
0.7779324650764465,
-0.2847670316696167,
-0.01583280973136425,
-1.1905831098556519,
0.24163639545440674,
0.0959661453962326,
0.17709188163280487,
-0.6466875076293945,
0.10355105251073837,
-0.03983712196350098,
0.32067635655403137,
-0.5571114420890808,
0.5251562595367432,
-0.36588311195373535,
0.3987393081188202,
-0.1266922652721405,
0.23317120969295502,
-0.028734730556607246,
0.5546129941940308,
-0.015117853879928589,
0.6055610775947571,
0.6805750131607056,
-0.9323012232780457,
0.3789002597332001,
0.2617175579071045,
-0.4409329295158386,
0.20748741924762726,
-0.9128256440162659,
0.1544564962387085,
-0.051035068929195404,
0.05737081542611122,
-0.9152007699012756,
-0.25879472494125366,
0.4594399333000183,
-0.6508131623268127,
0.17908097803592682,
0.27343541383743286,
-0.49984562397003174,
-0.6813451051712036,
-0.5998632311820984,
0.2824879288673401,
0.5333468317985535,
-0.6345080137252808,
0.290507048368454,
0.11369840055704117,
0.09146518260240555,
-0.692499577999115,
-0.8213440775871277,
-0.237699493765831,
-0.2936961352825165,
-0.6021984815597534,
0.561521053314209,
-0.07407782226800919,
0.057687435299158096,
0.1553548127412796,
0.07440324872732162,
-0.05157425254583359,
0.10626033693552017,
-0.009566199965775013,
0.3425150513648987,
0.022989491000771523,
-0.016215339303016663,
-0.13797269761562347,
-0.07742276787757874,
0.0715036615729332,
-0.35460570454597473,
0.9076897501945496,
0.06004773825407028,
-0.1380489021539688,
-0.7290318608283997,
0.06191009283065796,
0.41904783248901367,
-0.3657825291156769,
0.977117657661438,
0.9036428928375244,
-0.46747472882270813,
-0.1635608673095703,
-0.4310038387775421,
-0.0031292657367885113,
-0.5562222003936768,
0.6856819987297058,
-0.29439792037010193,
-0.665317714214325,
0.442933052778244,
0.27110475301742554,
0.16580620408058167,
0.6460388898849487,
0.6148083806037903,
0.06584350019693375,
1.0832159519195557,
0.517839789390564,
-0.30178627371788025,
0.40932396054267883,
-0.7105229496955872,
0.326700896024704,
-0.962654173374176,
-0.548374593257904,
-0.6282766461372375,
-0.27677279710769653,
-0.6531173586845398,
-0.28810983896255493,
0.3339465260505676,
0.21527552604675293,
-0.47697535157203674,
0.4801790416240692,
-0.8221343755722046,
-0.024145428091287613,
0.6850745677947998,
0.19301556050777435,
0.00487323384732008,
-0.06687675416469574,
-0.07225607335567474,
0.20254972577095032,
-0.5932267904281616,
-0.36791935563087463,
1.0253797769546509,
0.3354247510433197,
0.6562514901161194,
-0.023593414574861526,
0.8720512986183167,
-0.07469163089990616,
0.1977994590997696,
-0.6451300382614136,
0.7554584741592407,
0.2466650903224945,
-0.6696650981903076,
-0.4376355707645416,
-0.47169989347457886,
-1.0249156951904297,
0.30261650681495667,
-0.010752242058515549,
-1.227799415588379,
0.02172986976802349,
-0.08797162771224976,
-0.3869672417640686,
0.4596884250640869,
-0.4313012957572937,
0.6354625821113586,
-0.5992799401283264,
-0.46656906604766846,
-0.10891640931367874,
-0.3847697973251343,
0.41371265053749084,
0.016038868576288223,
0.21908631920814514,
-0.025378692895174026,
-0.02351129800081253,
1.2356812953948975,
-0.6695845127105713,
0.7018100023269653,
-0.30844616889953613,
0.0235464908182621,
0.5733628273010254,
-0.421823650598526,
0.3660598397254944,
-0.15076719224452972,
-0.09317217022180557,
0.26687756180763245,
0.18110300600528717,
-0.3412416875362396,
-0.2269050031900406,
0.7215006947517395,
-0.9680163264274597,
-0.5363988876342773,
-0.5858349204063416,
-0.3336803615093231,
0.14952847361564636,
0.5059486031532288,
0.6670970320701599,
0.1596459001302719,
0.04369676485657692,
0.004262662027031183,
0.35277917981147766,
-0.5245998501777649,
0.7245058417320251,
0.1827877312898636,
-0.1256895810365677,
-0.6430996656417847,
1.027616024017334,
0.2645193934440613,
0.07377675920724869,
0.20375987887382507,
0.31285226345062256,
-0.42604008316993713,
-0.5639436841011047,
-0.34968796372413635,
0.48103421926498413,
-0.4555099308490753,
-0.3158642649650574,
-0.7275577187538147,
-0.3635815978050232,
-0.6045119762420654,
0.0220620296895504,
-0.19997315108776093,
-0.07564949989318848,
-0.389827162027359,
-0.11979979276657104,
0.41592007875442505,
0.5496464967727661,
-0.196783646941185,
0.36765140295028687,
-0.702965259552002,
0.639790415763855,
0.15929384529590607,
0.21807178854942322,
0.2602806091308594,
-0.632451057434082,
-0.43884363770484924,
0.12117092311382294,
-0.5117475986480713,
-0.8534561395645142,
0.6488602161407471,
0.06546861678361893,
0.6232298612594604,
0.6425318121910095,
0.09898455440998077,
0.8087123036384583,
-0.17615720629692078,
1.0113239288330078,
0.45923110842704773,
-1.1479710340499878,
0.44981807470321655,
-0.10838466882705688,
0.08272339403629303,
0.30776429176330566,
0.37356454133987427,
-0.6943848133087158,
-0.03884630277752876,
-0.5334873199462891,
-1.099819540977478,
0.9315832257270813,
0.18659891188144684,
0.07672574371099472,
-0.05822702497243881,
0.23652426898479462,
-0.2656501233577728,
0.22009016573429108,
-0.9357606172561646,
-0.49019548296928406,
-0.25475385785102844,
-0.26622918248176575,
0.13514494895935059,
-0.3279423117637634,
-0.058344706892967224,
-0.4294504225254059,
0.8438665866851807,
0.05740754306316376,
0.5831558704376221,
0.4124727249145508,
0.06408300995826721,
-0.037014588713645935,
0.12593592703342438,
0.5272035002708435,
0.5182489156723022,
-0.2562505602836609,
-0.12030544877052307,
0.37102407217025757,
-0.6114768981933594,
0.18319320678710938,
0.1955684870481491,
-0.4967719614505768,
-0.07905358076095581,
0.6014319062232971,
0.7994962930679321,
-0.1529444307088852,
-0.4825963079929352,
0.2669399380683899,
-0.010304528288543224,
-0.44474801421165466,
-0.34388408064842224,
0.1286565214395523,
0.2402193248271942,
0.15349170565605164,
0.42705562710762024,
-0.24809813499450684,
-0.17171747982501984,
-0.5153199434280396,
-0.12420862913131714,
0.5203298926353455,
0.06156351417303085,
-0.2656090557575226,
0.8654950857162476,
0.07815290987491608,
-0.38028624653816223,
0.5265944600105286,
-0.3623465299606323,
-0.867674708366394,
0.8923282623291016,
0.6947668194770813,
0.908764123916626,
-0.08306751400232315,
0.16305018961429596,
0.7901201248168945,
0.3893420994281769,
-0.22645960748195648,
0.4946666955947876,
-0.1431395411491394,
-0.8247405886650085,
-0.21241287887096405,
-0.7561128735542297,
0.01843578927218914,
0.44086167216300964,
-0.701814591884613,
0.2650119364261627,
-0.4982736110687256,
-0.30295830965042114,
-0.33035847544670105,
0.36705994606018066,
-0.7294488549232483,
0.4924001693725586,
0.012935861013829708,
0.9096742868423462,
-0.6859069466590881,
0.8433419466018677,
0.5572354197502136,
-0.5482674837112427,
-0.9387532472610474,
0.27621814608573914,
-0.37322843074798584,
-0.7901067733764648,
0.5909262299537659,
0.4712335765361786,
-0.204452246427536,
0.09239082038402557,
-0.7719228863716125,
-1.0713152885437012,
1.477534294128418,
-0.09105871617794037,
-0.5219884514808655,
-0.10647252947092056,
0.14061813056468964,
0.5500860214233398,
-0.012379388324916363,
0.3773425817489624,
0.5760248303413391,
0.6732367873191833,
-0.09522461146116257,
-0.91557377576828,
0.283367395401001,
-0.2450581192970276,
-0.091173455119133,
-0.0961989089846611,
-1.0636683702468872,
1.072762370109558,
-0.38312187790870667,
-0.3350638449192047,
0.3975299298763275,
0.5548142194747925,
0.5228790044784546,
0.4934156835079193,
0.3926939070224762,
0.754364550113678,
0.7839038968086243,
-0.10089565813541412,
0.8812575340270996,
-0.5984715223312378,
0.7234616279602051,
0.6422773003578186,
-0.08540879935026169,
0.7441719174385071,
0.37710443139076233,
-0.48752108216285706,
0.40851762890815735,
0.6939715147018433,
-0.1049356609582901,
0.6483653783798218,
0.15540871024131775,
-0.3450290560722351,
0.09440547227859497,
-0.10917694866657257,
-0.6238270998001099,
0.39272540807724,
0.29281747341156006,
-0.30129197239875793,
0.01148361898958683,
-0.13093408942222595,
0.15077553689479828,
-0.3112487196922302,
-0.16323553025722504,
0.3624611496925354,
0.029463639482855797,
-0.6014302968978882,
0.8593606948852539,
0.48007330298423767,
1.1259135007858276,
-0.7736671566963196,
0.17295658588409424,
0.00964649673551321,
0.17305603623390198,
-0.3543034493923187,
-0.4673815667629242,
-0.06622923910617828,
0.003139349166303873,
0.05014396831393242,
0.07233096659183502,
0.6438534259796143,
-0.3795321583747864,
-0.606594443321228,
0.5328672528266907,
0.26823556423187256,
0.19905003905296326,
0.12021846324205399,
-0.9049354791641235,
0.09441003203392029,
0.16781634092330933,
-0.7015565037727356,
0.16216617822647095,
0.3210873603820801,
0.2620231509208679,
0.7082928419113159,
0.8057258725166321,
0.3776578903198242,
0.17140306532382965,
-0.20812243223190308,
0.9711965918540955,
-0.923321545124054,
-0.3766034245491028,
-0.9065207242965698,
0.5168429613113403,
-0.08504166454076767,
-0.5658207535743713,
0.8496636152267456,
0.44947031140327454,
1.0619021654129028,
0.06477546691894531,
1.0791531801223755,
-0.5443869233131409,
0.3450378179550171,
-0.5549570322036743,
0.8303960561752319,
-0.605695903301239,
0.04935256764292717,
-0.16388912498950958,
-0.6526585817337036,
-0.11733312904834747,
0.8996566534042358,
-0.3152247965335846,
0.37217360734939575,
0.6650651693344116,
0.9587386846542358,
0.13163720071315765,
-0.297609806060791,
0.164094477891922,
0.3272315561771393,
0.37352320551872253,
0.7684475183486938,
0.5790718197822571,
-0.7112146615982056,
0.5129866600036621,
-0.6834610104560852,
-0.19904521107673645,
-0.19799299538135529,
-0.6386407613754272,
-0.9663602709770203,
-0.4537942409515381,
-0.22549961507320404,
-0.583095133304596,
-0.16207155585289001,
0.9961867928504944,
0.6185568571090698,
-0.7835813760757446,
-0.22440530359745026,
-0.19447767734527588,
0.12909309566020966,
-0.39309197664260864,
-0.28774601221084595,
0.7411937117576599,
-0.1613563746213913,
-0.92701256275177,
0.08182241767644882,
-0.07687441259622574,
-0.036859847605228424,
-0.31779029965400696,
-0.24633054435253143,
-0.3436143398284912,
0.10663026571273804,
0.4779827892780304,
0.3883906900882721,
-0.6491695642471313,
-0.15873917937278748,
0.045590564608573914,
-0.1939631998538971,
-0.08680065721273422,
0.3665109872817993,
-0.5615075826644897,
0.2624819576740265,
0.5382895469665527,
0.2518967390060425,
0.5163497924804688,
0.02272992767393589,
0.052358731627464294,
-0.3023395240306854,
0.2779294550418854,
-0.04710245504975319,
0.4102913439273834,
0.1818733960390091,
-0.3679308593273163,
0.28227826952934265,
0.4519665837287903,
-0.5658951997756958,
-0.772972047328949,
0.007723698858171701,
-0.9329736232757568,
-0.24853476881980896,
1.1987665891647339,
-0.22172293066978455,
-0.4545406103134155,
0.0933522880077362,
-0.4048739969730377,
0.6258453726768494,
-0.3155137896537781,
0.9359063506126404,
0.4726766347885132,
-0.14664143323898315,
-0.07569907605648041,
-0.5588728785514832,
0.20721469819545746,
0.4063684046268463,
-0.7211882472038269,
-0.27009785175323486,
0.11513400822877884,
0.3927164673805237,
0.32580381631851196,
0.7386909127235413,
0.07829432189464569,
0.11215201765298843,
0.07268518954515457,
0.2318243533372879,
-0.21237745881080627,
-0.08372721076011658,
-0.14521442353725433,
0.06427560746669769,
0.02258206531405449,
-0.6963408589363098
] |
dandelin/vilt-b32-mlm
|
dandelin
| 2022-07-06T12:18:37Z | 8,046 | 8 |
transformers
|
[
"transformers",
"pytorch",
"vilt",
"fill-mask",
"arxiv:2102.03334",
"license:apache-2.0",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] |
fill-mask
| 2022-03-02T23:29:05Z |
---
license: apache-2.0
---
# Vision-and-Language Transformer (ViLT), pre-trained only
Vision-and-Language Transformer (ViLT) model pre-trained on GCC+SBU+COCO+VG (200k steps). It was introduced in the paper [ViLT: Vision-and-Language Transformer Without Convolution or Region Supervision](https://arxiv.org/abs/2102.03334) by Kim et al. and first released in [this repository](https://github.com/dandelin/ViLT). Note: this model only includes the language modeling head.
Disclaimer: The team releasing ViLT did not write a model card for this model so this model card has been written by the Hugging Face team.
## Intended uses & limitations
You can use the raw model for masked language modeling given an image and a piece of text with [MASK] tokens.
### How to use
Here is how to use this model in PyTorch:
```
from transformers import ViltProcessor, ViltForMaskedLM
import requests
from PIL import Image
import re
url = "http://images.cocodataset.org/val2017/000000039769.jpg"
image = Image.open(requests.get(url, stream=True).raw)
text = "a bunch of [MASK] laying on a [MASK]."
processor = ViltProcessor.from_pretrained("dandelin/vilt-b32-mlm")
model = ViltForMaskedLM.from_pretrained("dandelin/vilt-b32-mlm")
# prepare inputs
encoding = processor(image, text, return_tensors="pt")
# forward pass
outputs = model(**encoding)
tl = len(re.findall("\[MASK\]", text))
inferred_token = [text]
# gradually fill in the MASK tokens, one by one
with torch.no_grad():
for i in range(tl):
encoded = processor.tokenizer(inferred_token)
input_ids = torch.tensor(encoded.input_ids).to(device)
encoded = encoded["input_ids"][0][1:-1]
outputs = model(input_ids=input_ids, pixel_values=pixel_values)
mlm_logits = outputs.logits[0] # shape (seq_len, vocab_size)
# only take into account text features (minus CLS and SEP token)
mlm_logits = mlm_logits[1 : input_ids.shape[1] - 1, :]
mlm_values, mlm_ids = mlm_logits.softmax(dim=-1).max(dim=-1)
# only take into account text
mlm_values[torch.tensor(encoded) != 103] = 0
select = mlm_values.argmax().item()
encoded[select] = mlm_ids[select].item()
inferred_token = [processor.decode(encoded)]
selected_token = ""
encoded = processor.tokenizer(inferred_token)
processor.decode(encoded.input_ids[0], skip_special_tokens=True)
```
## Training data
(to do)
## Training procedure
### Preprocessing
(to do)
### Pretraining
(to do)
## Evaluation results
(to do)
### BibTeX entry and citation info
```bibtex
@misc{kim2021vilt,
title={ViLT: Vision-and-Language Transformer Without Convolution or Region Supervision},
author={Wonjae Kim and Bokyung Son and Ildoo Kim},
year={2021},
eprint={2102.03334},
archivePrefix={arXiv},
primaryClass={stat.ML}
}
```
|
[
-0.3683569133281708,
-0.7707887291908264,
0.0941375195980072,
0.1424502432346344,
-0.37674978375434875,
-0.049807678908109665,
-0.41086795926094055,
-0.3429919183254242,
0.14105388522148132,
0.40224969387054443,
-0.5045965313911438,
-0.6285983324050903,
-0.7992284893989563,
-0.08565492182970047,
-0.3303799629211426,
1.0447813272476196,
-0.07078488171100616,
0.09336434304714203,
-0.0026774925645440817,
-0.21982568502426147,
-0.27607399225234985,
-0.5354922413825989,
-0.48437708616256714,
-0.3939282298088074,
0.23328392207622528,
0.1352168470621109,
0.3803131878376007,
0.33025720715522766,
0.6247698068618774,
0.39348092675209045,
-0.16793708503246307,
0.1063280999660492,
-0.4777139127254486,
-0.17993700504302979,
0.025361880660057068,
-0.5912826061248779,
-0.3820638358592987,
0.029736777767539024,
0.6756137609481812,
0.4288161098957062,
0.22466275095939636,
0.42039844393730164,
0.19190135598182678,
0.6149933338165283,
-0.5756558775901794,
0.2071990817785263,
-0.6354586482048035,
0.18802720308303833,
-0.14447565376758575,
-0.15711161494255066,
-0.47444719076156616,
-0.2741253674030304,
0.19265569746494293,
-0.4119734466075897,
0.5049741864204407,
-0.12375732511281967,
1.2731183767318726,
0.1500246822834015,
-0.07816232740879059,
-0.1337883174419403,
-0.5987610816955566,
0.7431787252426147,
-0.5763946175575256,
0.4255408048629761,
0.15462592244148254,
0.1709350347518921,
0.051220979541540146,
-1.127407193183899,
-0.7607125043869019,
-0.02262246608734131,
-0.242031991481781,
0.16095910966396332,
-0.23029135167598724,
0.0399886816740036,
0.42318496108055115,
0.43627071380615234,
-0.6630515456199646,
-0.2654721438884735,
-0.724577009677887,
-0.2667802572250366,
0.6004317998886108,
-0.03534390404820442,
0.30922165513038635,
-0.1164780780673027,
-0.40814101696014404,
-0.5475428700447083,
-0.3970223069190979,
0.24247771501541138,
0.15245011448860168,
0.10053186863660812,
-0.37665310502052307,
0.7247070670127869,
-0.15199974179267883,
0.8088452816009521,
0.07242891937494278,
-0.16874095797538757,
0.6720274686813354,
-0.33452239632606506,
-0.5384988188743591,
0.03920573741197586,
1.1735230684280396,
0.3604906499385834,
0.49853259325027466,
0.05207925662398338,
-0.055307041853666306,
0.0373254157602787,
0.016294870525598526,
-1.0386232137680054,
-0.3119150698184967,
0.0355573445558548,
-0.43163999915122986,
-0.504551887512207,
0.19659169018268585,
-0.8985213041305542,
-0.12192052602767944,
-0.04931153729557991,
0.6705055832862854,
-0.4047293961048126,
-0.28249475359916687,
0.05274254456162453,
-0.0903896614909172,
0.4462603032588959,
-0.014585873112082481,
-0.8612881302833557,
0.13628371059894562,
0.19878968596458435,
0.9910445809364319,
0.04560576751828194,
-0.3663892149925232,
-0.32294461131095886,
-0.4055086374282837,
-0.22308500111103058,
0.4561583995819092,
-0.2943367063999176,
-0.39131343364715576,
-0.08313498646020889,
0.24541452527046204,
-0.3423794209957123,
-0.3949352502822876,
0.4470129609107971,
-0.30124369263648987,
0.4163404405117035,
0.06293891370296478,
-0.27851805090904236,
-0.28100141882896423,
0.16915571689605713,
-0.4705899953842163,
1.226297378540039,
0.25238385796546936,
-0.8761373162269592,
0.3580929636955261,
-0.6314736604690552,
-0.226695716381073,
0.07872230559587479,
-0.2318177968263626,
-0.7420908212661743,
-0.07987195998430252,
0.41682136058807373,
0.5820560455322266,
-0.045084256678819656,
0.28591054677963257,
-0.16420289874076843,
-0.46268796920776367,
0.37411463260650635,
-0.6139376759529114,
1.1191257238388062,
0.045887239277362823,
-0.6912493705749512,
0.33344244956970215,
-0.7490609288215637,
0.11866050958633423,
0.26318907737731934,
-0.31815865635871887,
0.12353770434856415,
-0.2954210638999939,
0.3150321841239929,
0.32461389899253845,
0.17616695165634155,
-0.4075010418891907,
0.2749439477920532,
-0.6120988130569458,
0.45585137605667114,
0.6003943085670471,
-0.21538612246513367,
0.4546658396720886,
-0.0035648441407829523,
0.39200201630592346,
0.0736159235239029,
0.2433016449213028,
-0.10863804072141647,
-0.5630011558532715,
-1.1624335050582886,
-0.2271115481853485,
0.1936538815498352,
0.6067997217178345,
-0.9029991626739502,
0.43206197023391724,
-0.48625877499580383,
-0.5869334936141968,
-0.7071459889411926,
0.0651448518037796,
0.48099517822265625,
0.6367223858833313,
0.4953955113887787,
-0.2923855185508728,
-0.5775743126869202,
-0.8424238562583923,
-0.0403582900762558,
0.03503020107746124,
0.06827154010534286,
0.2049727439880371,
0.6041820049285889,
-0.33211833238601685,
0.7824587225914001,
-0.4391205608844757,
-0.20976518094539642,
-0.3182334005832672,
0.11666291207075119,
0.40362557768821716,
0.6381733417510986,
0.6949026584625244,
-0.7730345129966736,
-0.5626882314682007,
0.04036251828074455,
-0.7951518893241882,
0.11500977724790573,
0.05582238361239433,
-0.2166147083044052,
0.3827628195285797,
0.5704026222229004,
-0.5647320747375488,
0.8412938117980957,
0.5859817266464233,
-0.5023145079612732,
0.5917128920555115,
-0.21146176755428314,
0.15723510086536407,
-1.1761664152145386,
0.2202618271112442,
0.04314534366130829,
-0.3051905333995819,
-0.6361185312271118,
-0.10939232259988785,
0.1906510591506958,
-0.1144947037100792,
-0.6795468330383301,
0.7864577770233154,
-0.5180480480194092,
0.1079033613204956,
-0.23055370151996613,
-0.09881038218736649,
0.08122355490922928,
0.8142059445381165,
0.17302943766117096,
0.6921343803405762,
0.9098483324050903,
-0.6005516648292542,
0.5280824899673462,
0.290427565574646,
-0.4225997030735016,
0.4114830493927002,
-0.7948643565177917,
0.10600306838750839,
-0.07510712742805481,
-0.013063125312328339,
-0.8667505383491516,
-0.11037065088748932,
0.6262513399124146,
-0.7370505928993225,
0.451291024684906,
-0.2894900143146515,
-0.37073901295661926,
-0.5595773458480835,
-0.22941230237483978,
0.49745413661003113,
0.7654023170471191,
-0.5346565246582031,
0.644315779209137,
0.05371085926890373,
0.09486392885446548,
-0.7716741561889648,
-1.0188194513320923,
-0.016607249155640602,
-0.11769586056470871,
-0.6167318224906921,
0.39010509848594666,
-0.08048361539840698,
0.06373479217290878,
0.08381105959415436,
-0.01123544480651617,
-0.07895532250404358,
-0.21274173259735107,
0.23877938091754913,
0.4117489457130432,
-0.2878066897392273,
-0.09793642908334732,
-0.20390203595161438,
-0.12237758934497833,
0.013856534846127033,
-0.3096083104610443,
0.7822467684745789,
-0.4272339642047882,
-0.19184814393520355,
-0.6310468912124634,
-0.033266447484493256,
0.5048419237136841,
-0.4250723421573639,
0.8076942563056946,
1.0327478647232056,
-0.44479531049728394,
-0.008647878654301167,
-0.4922495484352112,
-0.18655653297901154,
-0.5238950848579407,
0.6032194495201111,
-0.3897775113582611,
-0.6713014841079712,
0.5037650465965271,
0.3101913332939148,
-0.06351617723703384,
0.6950608491897583,
0.8809629082679749,
0.013556539081037045,
0.7603716254234314,
0.7276946902275085,
0.03958762064576149,
0.7535032629966736,
-0.7664340734481812,
0.20229756832122803,
-0.7634920477867126,
-0.4620773494243622,
-0.12578406929969788,
-0.32365021109580994,
-0.5571547746658325,
-0.5628544092178345,
0.30228108167648315,
0.16669128835201263,
-0.14589430391788483,
0.3443957269191742,
-0.8984447717666626,
0.31240424513816833,
0.708552896976471,
0.261272132396698,
-0.14275780320167542,
0.2424340844154358,
-0.2716103792190552,
0.0685119554400444,
-0.715880811214447,
-0.323032021522522,
1.1915574073791504,
0.36317533254623413,
0.6812973022460938,
-0.36960020661354065,
0.5590370893478394,
-0.21160677075386047,
0.24883496761322021,
-0.7203064560890198,
0.5933489799499512,
-0.10400595515966415,
-0.4746086299419403,
-0.15469786524772644,
-0.2660456597805023,
-0.9153136610984802,
0.3172028064727783,
-0.48371708393096924,
-0.928520917892456,
0.29811689257621765,
0.1732551008462906,
-0.1493469774723053,
0.49221038818359375,
-0.8036444783210754,
1.0703411102294922,
-0.2693127393722534,
-0.37482449412345886,
0.20360557734966278,
-0.7185778617858887,
0.35914215445518494,
0.1479949653148651,
-0.08529223501682281,
0.08421338349580765,
0.4594602584838867,
0.9606765508651733,
-0.4211015999317169,
0.8161401152610779,
-0.1743839830160141,
0.3159336745738983,
0.44556376338005066,
-0.17455606162548065,
0.2909514307975769,
-0.08399895578622818,
0.23547504842281342,
0.3901541233062744,
-0.04411303997039795,
-0.4383225440979004,
-0.4977872669696808,
0.5316885709762573,
-0.8097604513168335,
-0.362537682056427,
-0.5674535632133484,
-0.35294583439826965,
0.17828816175460815,
0.40577268600463867,
0.8119450807571411,
0.5076715350151062,
-0.020552633330225945,
0.3353117108345032,
0.773432195186615,
-0.3221963942050934,
0.5609123706817627,
-0.09050978720188141,
-0.3527146577835083,
-0.5604002475738525,
0.9447569251060486,
0.03855293244123459,
0.30233094096183777,
0.2863956093788147,
0.16960306465625763,
-0.3179767429828644,
-0.4223683774471283,
-0.5306479930877686,
0.3053748905658722,
-0.7530962228775024,
-0.16790126264095306,
-0.7453609704971313,
-0.6252977252006531,
-0.5896504521369934,
-0.12935017049312592,
-0.44736889004707336,
-0.13777005672454834,
-0.4408561885356903,
-0.010748974047601223,
0.49087533354759216,
0.40498074889183044,
0.10862140357494354,
0.4175218343734741,
-0.5963712334632874,
0.34404900670051575,
0.31311094760894775,
0.2714402675628662,
-0.23555541038513184,
-0.6414852142333984,
-0.34543371200561523,
0.23813967406749725,
-0.2056656777858734,
-0.8574341535568237,
0.5667224526405334,
0.17963145673274994,
0.4970915913581848,
0.3495105504989624,
-0.26627853512763977,
0.715703010559082,
-0.3646124005317688,
0.7161681056022644,
0.3650372326374054,
-0.9329419136047363,
0.5774641633033752,
0.056661345064640045,
0.2693490982055664,
0.3883015811443329,
0.10878323018550873,
-0.55556321144104,
-0.19478477537631989,
-0.7602372765541077,
-0.9559075832366943,
0.7666803002357483,
0.44194909930229187,
0.1510089635848999,
0.3399491012096405,
0.2826719582080841,
-0.22062692046165466,
0.12556011974811554,
-1.073776364326477,
-0.5710541009902954,
-0.5519944429397583,
-0.4580444097518921,
-0.20790497958660126,
-0.2922493815422058,
0.004613901022821665,
-0.644014298915863,
0.6274555325508118,
-0.044857677072286606,
0.6305213570594788,
0.45637643337249756,
-0.4078062176704407,
0.18211963772773743,
-0.13941435515880585,
0.7064476013183594,
0.49654409289360046,
-0.2174297571182251,
0.22062405943870544,
0.22594976425170898,
-0.8237183690071106,
0.0023799515329301357,
0.17737650871276855,
-0.1652887910604477,
0.2196177840232849,
0.4243725538253784,
1.2410297393798828,
-0.10548221319913864,
-0.408025324344635,
0.6829684376716614,
-0.12148013710975647,
-0.45983871817588806,
-0.32201388478279114,
0.058855894953012466,
0.05255863815546036,
0.3185739517211914,
0.3008977472782135,
0.20575982332229614,
-0.14185430109500885,
-0.25104546546936035,
0.13559699058532715,
0.3712712228298187,
-0.5368887782096863,
-0.31003281474113464,
0.8029215931892395,
-0.006457964424043894,
-0.3413774371147156,
0.6534984111785889,
-0.08967296034097672,
-0.6974830627441406,
0.6787580847740173,
0.397627592086792,
1.0121891498565674,
-0.02375192567706108,
0.12107250094413757,
0.6762598752975464,
0.4390723407268524,
0.054741911590099335,
0.19594447314739227,
0.032861221581697464,
-0.7809094190597534,
-0.24108779430389404,
-0.7690890431404114,
0.04574846848845482,
0.25861433148384094,
-0.47655966877937317,
0.44405096769332886,
-0.4021971821784973,
-0.1475093960762024,
-0.02558211237192154,
0.0005522283026948571,
-1.0797475576400757,
0.4408102333545685,
0.2077474594116211,
0.6903458833694458,
-0.8861087560653687,
0.9474933743476868,
0.6679917573928833,
-0.5508081912994385,
-0.8213167190551758,
-0.22779156267642975,
-0.2281329333782196,
-1.071938395500183,
0.7254274487495422,
0.3353534936904907,
-0.06816273182630539,
0.12695789337158203,
-0.7461819052696228,
-0.7184377908706665,
1.1360985040664673,
0.3011108934879303,
-0.4633067846298218,
0.036838099360466,
0.15509776771068573,
0.4557638168334961,
-0.20160004496574402,
0.3392505347728729,
0.4128365218639374,
0.3366223871707916,
0.12983164191246033,
-0.8400660157203674,
-0.00393805094063282,
-0.46283620595932007,
-0.006001536268740892,
0.03434867039322853,
-0.4842688739299774,
0.9204437136650085,
-0.15983663499355316,
-0.20648494362831116,
-0.11722917854785919,
0.7362903952598572,
0.1919773519039154,
0.14571064710617065,
0.37928569316864014,
0.5974134802818298,
0.639491856098175,
-0.20286743342876434,
0.8749377131462097,
-0.2321893572807312,
0.7317827343940735,
0.7562962770462036,
0.41254016757011414,
0.6259042024612427,
0.5120959281921387,
-0.14561417698860168,
0.35665225982666016,
0.6926740407943726,
-0.29294806718826294,
0.45039644837379456,
0.1326349824666977,
-0.21051670610904694,
0.04673471674323082,
0.22498095035552979,
-0.5128527879714966,
0.4144930839538574,
0.2865627110004425,
-0.6118943691253662,
-0.06048337370157242,
0.2138654887676239,
0.11208879947662354,
-0.2792379856109619,
-0.24163883924484253,
0.5352941751480103,
0.06279344111680984,
-0.4665871262550354,
0.8740652799606323,
0.03244198113679886,
0.9787182211875916,
-0.5228988528251648,
0.03191308304667473,
-0.08809792250394821,
0.2801228165626526,
-0.22452963888645172,
-0.8123120069503784,
0.24177978932857513,
0.07353952527046204,
-0.1419767141342163,
-0.17043273150920868,
0.7805625796318054,
-0.6360315084457397,
-0.9761781692504883,
0.20221254229545593,
0.2447480708360672,
0.3500691056251526,
-0.0853220671415329,
-0.9130823016166687,
0.12585720419883728,
0.16458697617053986,
-0.6129947900772095,
0.008776843547821045,
0.37740668654441833,
0.04135420545935631,
0.5249794721603394,
0.6474178433418274,
0.05878704413771629,
0.4111100435256958,
-0.012191571295261383,
0.8845552206039429,
-0.6110981106758118,
-0.18584038317203522,
-1.1754671335220337,
0.7037777304649353,
-0.10819300264120102,
-0.4899885654449463,
0.5430524945259094,
0.6178758144378662,
1.0364521741867065,
-0.20185649394989014,
0.727844774723053,
-0.14857371151447296,
-0.04852211847901344,
-0.6615914702415466,
0.9234217405319214,
-0.5814889073371887,
-0.31243282556533813,
-0.36914941668510437,
-0.9643176198005676,
-0.48495352268218994,
0.8990955352783203,
-0.2683108448982239,
0.1829477846622467,
0.7475509643554688,
0.9548476338386536,
-0.16822904348373413,
-0.4888986647129059,
0.3576205372810364,
0.2013956755399704,
0.33167463541030884,
0.6199096441268921,
0.3828713893890381,
-0.7995890378952026,
0.6841759085655212,
-0.5072864294052124,
-0.13362467288970947,
-0.3233318030834198,
-0.6882238984107971,
-1.0750795602798462,
-0.7407187223434448,
-0.4241495728492737,
-0.6028039455413818,
-0.13632690906524658,
0.724870502948761,
0.8325957655906677,
-0.7506417036056519,
-0.10290615260601044,
-0.22765392065048218,
0.054053302854299545,
-0.15766213834285736,
-0.2626732289791107,
0.6308531761169434,
-0.24713794887065887,
-0.9269616007804871,
0.004365837667137384,
0.11643102020025253,
0.35752856731414795,
-0.19535967707633972,
-0.12121368944644928,
-0.20323415100574493,
-0.23402324318885803,
0.5653393268585205,
0.23351211845874786,
-0.7006145715713501,
-0.11688610911369324,
0.12245921790599823,
-0.26979491114616394,
0.3222414553165436,
0.4784202575683594,
-0.7255898714065552,
0.7280571460723877,
0.5565266609191895,
0.4281620383262634,
0.9813323020935059,
-0.2776104211807251,
0.2610253095626831,
-0.7016716003417969,
0.5734509825706482,
0.14575159549713135,
0.48945608735084534,
0.3501396179199219,
-0.31575047969818115,
0.3303193151950836,
0.570400059223175,
-0.4574176073074341,
-0.7452316284179688,
0.0007876369054429233,
-1.1507066488265991,
-0.11793924868106842,
1.1530388593673706,
-0.11379843205213547,
-0.5929688215255737,
0.3271801173686981,
-0.44378072023391724,
0.5642163753509521,
0.015019720420241356,
0.41679108142852783,
0.6078317165374756,
0.14108631014823914,
-0.41425004601478577,
-0.47773614525794983,
0.44754984974861145,
0.19085761904716492,
-0.5716851353645325,
-0.3178129494190216,
0.14593566954135895,
0.54420006275177,
0.19715920090675354,
0.7789055705070496,
-0.17128804326057434,
0.13338494300842285,
0.12435426563024521,
0.5894016623497009,
-0.10620048642158508,
-0.24437007308006287,
-0.2926613688468933,
-0.0635756179690361,
-0.26639777421951294,
-0.6560218334197998
] |
SmilingWolf/wd-v1-4-convnextv2-tagger-v2
|
SmilingWolf
| 2023-03-23T17:09:39Z | 8,046 | 24 |
keras
|
[
"keras",
"onnx",
"license:apache-2.0",
"has_space",
"region:us"
] | null | 2023-03-19T11:19:38Z |
---
license: apache-2.0
---
# WD 1.4 ConvNextV2 Tagger V2
Supports ratings, characters and general tags.
Trained using https://github.com/SmilingWolf/SW-CV-ModelZoo.
TPUs used for training kindly provided by the [TRC program](https://sites.research.google/trc/about/).
## Dataset
Last image id: 5944504
Trained on Danbooru images with IDs modulo 0000-0899.
Validated on images with IDs modulo 0950-0999.
Images with less than 10 general tags were filtered out.
Tags with less than 600 images were filtered out.
## Validation results
`P=R: threshold = 0.3710, F1 = 0.6862`
## Final words
Subject to change and updates.
Downstream users are encouraged to use tagged releases rather than relying on the head of the repo.
|
[
-0.7375283241271973,
-0.1698913425207138,
-0.029546372592449188,
0.07204560935497284,
-0.82320636510849,
-0.20834466814994812,
-0.14014853537082672,
-0.5561327338218689,
0.17043034732341766,
0.5361690521240234,
-0.7196500897407532,
-0.9499228596687317,
-0.5886908173561096,
-0.0025417401921004057,
-0.05581170693039894,
1.2330373525619507,
0.1151903048157692,
0.14513713121414185,
-0.285531222820282,
-0.46527084708213806,
-0.4629330635070801,
-0.5736198425292969,
-0.7907297611236572,
-0.09543564170598984,
0.8952165842056274,
0.529162585735321,
0.46864819526672363,
0.24159552156925201,
0.8861528038978577,
0.19073277711868286,
0.11784861236810684,
0.37293770909309387,
-0.3813737630844116,
-0.06403672695159912,
-0.3855665922164917,
-0.08334703743457794,
-0.4978567957878113,
0.15658926963806152,
0.28309836983680725,
0.02659738063812256,
-0.07604847848415375,
0.43415817618370056,
-0.18208737671375275,
0.577022135257721,
-0.40785011649131775,
0.20903770625591278,
-0.5518305897712708,
-0.10516949743032455,
-0.20687755942344666,
-0.2316860407590866,
-0.3267357647418976,
-0.06763278692960739,
0.15837153792381287,
-0.9305777549743652,
0.23269741237163544,
0.035094693303108215,
1.4478223323822021,
0.14124226570129395,
-0.5682122707366943,
-0.09332240372896194,
-0.528002142906189,
0.8092504739761353,
-0.47828593850135803,
0.05151281878352165,
0.4786217212677002,
0.6932955980300903,
-0.16866746544837952,
-0.8174934983253479,
-0.5130054354667664,
-0.13175427913665771,
0.16903069615364075,
0.0643111988902092,
-0.3890460133552551,
0.22174164652824402,
0.6420489549636841,
0.21451735496520996,
-0.8248878717422485,
0.3947291970252991,
-0.34055984020233154,
-0.4129060208797455,
0.6415169835090637,
0.03308800980448723,
0.06160372123122215,
-0.34300026297569275,
-0.554627001285553,
-0.4057907462120056,
-0.29164668917655945,
0.2625568211078644,
0.44654369354248047,
-0.12368264049291611,
-0.28817325830459595,
0.7351176738739014,
-0.24567456543445587,
0.43530750274658203,
-0.22008487582206726,
-0.07599782198667526,
0.6341003775596619,
-0.18864251673221588,
-0.4188287854194641,
-0.5541028380393982,
0.7025673985481262,
0.9358139634132385,
0.4952457845211029,
0.18229688704013824,
-0.3942737877368927,
0.5381944179534912,
0.1851407289505005,
-0.6050187349319458,
-0.47109079360961914,
-0.043013378977775574,
-0.42031383514404297,
-0.48940175771713257,
0.4741327166557312,
-0.5536914467811584,
-0.3440383970737457,
-0.07818756252527237,
0.43998855352401733,
-0.22254270315170288,
-0.6618362069129944,
-0.04360578581690788,
-0.9108172655105591,
0.5878956317901611,
0.6446095108985901,
-0.5220897793769836,
0.12947902083396912,
0.638215184211731,
0.7384383082389832,
-0.06472227722406387,
0.057890575379133224,
-0.5069635510444641,
-0.12224895507097244,
-0.22604693472385406,
0.8437302708625793,
-0.30049899220466614,
-0.611886203289032,
0.206796333193779,
0.36843210458755493,
0.517584502696991,
-0.22926083207130432,
0.8493524193763733,
-0.5888852477073669,
-0.026296624913811684,
-0.37319493293762207,
-0.38408124446868896,
-0.2850686311721802,
0.5910674929618835,
-0.690929651260376,
1.0583137273788452,
0.577812671661377,
-0.945726215839386,
0.5655175447463989,
-0.486928254365921,
-0.30684760212898254,
0.3389473557472229,
-0.011772939004004002,
-0.5273884534835815,
-0.13980460166931152,
-0.00009988433885155246,
0.40814101696014404,
0.0124595295637846,
0.13741235435009003,
-0.4105323553085327,
-0.35789352655410767,
0.23036804795265198,
-0.25182127952575684,
0.4082200527191162,
0.30383819341659546,
-0.01688891090452671,
0.26011785864830017,
-0.7097139358520508,
0.06161181256175041,
-0.005540919955819845,
-0.1554328054189682,
-0.4600794017314911,
-0.25212976336479187,
0.499072790145874,
0.39880630373954773,
-0.03781834617257118,
-0.7220401167869568,
0.5201809406280518,
-0.026984015479683876,
0.18240417540073395,
0.6554434299468994,
0.3571883738040924,
0.398284912109375,
-0.2190660685300827,
0.7866174578666687,
0.3424295485019684,
0.35639315843582153,
0.011049986816942692,
-0.6696483492851257,
-0.7898796200752258,
-0.33618777990341187,
0.434414803981781,
0.32704249024391174,
-1.3514286279678345,
0.6266723871231079,
-0.3189004957675934,
-0.9759973883628845,
-0.24849991500377655,
-0.26915374398231506,
0.3563407063484192,
0.3983481526374817,
0.3854418396949768,
-0.6573020219802856,
-0.7091408967971802,
-0.8541145324707031,
0.20800140500068665,
-0.07060381770133972,
-0.48050230741500854,
0.3947523832321167,
0.5716437101364136,
-0.49948978424072266,
0.844732403755188,
-0.49330344796180725,
-0.7044960856437683,
-0.3159136474132538,
0.37310051918029785,
0.20152290165424347,
0.5540295243263245,
0.834911584854126,
-0.8987942934036255,
-0.3247041404247284,
-0.13365235924720764,
-0.36996132135391235,
0.13715873658657074,
0.018614979460835457,
-0.20658057928085327,
0.508135974407196,
0.10134448111057281,
-0.6670948266983032,
0.6866368651390076,
0.5332967042922974,
-0.2621716260910034,
0.6952669024467468,
-0.4682430326938629,
0.11302751302719116,
-0.9521496295928955,
-0.09986575692892075,
0.8522216081619263,
-0.526262640953064,
-0.23956429958343506,
-0.2350543588399887,
0.15447449684143066,
0.1729530543088913,
-0.6773948669433594,
0.4536493420600891,
-0.21479277312755585,
-0.10067635029554367,
-0.15933449566364288,
0.12334743142127991,
0.3698010742664337,
0.6271955966949463,
0.16952024400234222,
0.24318179488182068,
0.7467957139015198,
-0.7783392667770386,
0.687700629234314,
0.23874302208423615,
-0.6826643943786621,
0.503406822681427,
-0.717978835105896,
-0.034830618649721146,
-0.15432840585708618,
0.6003683805465698,
-1.033879041671753,
-0.30592313408851624,
0.3089230954647064,
-0.6842708587646484,
0.5774125456809998,
-0.45328807830810547,
-0.5000451803207397,
-0.9252468943595886,
-0.5927451252937317,
0.048898715525865555,
0.5600650310516357,
-0.616693913936615,
0.18107953667640686,
0.5519807934761047,
0.4956863820552826,
-0.6275988221168518,
-0.9182093739509583,
-0.014389541931450367,
-0.07857691496610641,
-0.5200680494308472,
0.13215333223342896,
-0.11793254315853119,
0.014974799007177353,
-0.22965680062770844,
-0.030599651858210564,
-0.1743582785129547,
-0.12530305981636047,
0.3652479648590088,
0.5716524124145508,
0.07066679745912552,
0.2216475009918213,
-0.07151655852794647,
-0.3146100640296936,
-0.07589632272720337,
-0.2902446985244751,
0.32432693243026733,
-0.0005716150626540184,
0.1890110820531845,
-0.34531280398368835,
0.14334143698215485,
0.42706021666526794,
-0.49670538306236267,
0.2821293771266937,
1.1491806507110596,
-0.46627941727638245,
-0.33122146129608154,
-0.4031674861907959,
0.13143396377563477,
-0.4804728627204895,
0.6865823268890381,
-0.5251139998435974,
-0.8089550733566284,
0.39349791407585144,
0.2366790771484375,
0.02416733093559742,
0.6851101517677307,
0.3797735273838043,
-0.6006590127944946,
1.0388422012329102,
0.6830496788024902,
0.22290164232254028,
0.4908803403377533,
-0.60962975025177,
-0.13271236419677734,
-1.016930103302002,
-0.399318665266037,
-0.45304009318351746,
-0.376083105802536,
-1.1996649503707886,
-0.513822615146637,
0.1732402890920639,
-0.0647895485162735,
-0.09983290731906891,
0.6785373687744141,
-0.9464378356933594,
0.4178941249847412,
0.5387815237045288,
0.22725555300712585,
-0.11513060331344604,
-0.08150901645421982,
0.04847656562924385,
-0.12794284522533417,
-0.29453906416893005,
-0.36677879095077515,
0.8245127201080322,
0.6629496216773987,
1.0772868394851685,
0.005501039791852236,
0.2539958655834198,
0.6150398254394531,
0.33456701040267944,
-1.0216848850250244,
0.666353166103363,
-0.5193453431129456,
-0.6373617649078369,
-0.1693592518568039,
-0.2363678216934204,
-0.5828883051872253,
0.0928267166018486,
-0.2897219657897949,
-0.44290411472320557,
0.43612444400787354,
0.0548989363014698,
0.20810866355895996,
0.35495689511299133,
-0.6393461227416992,
0.9028337001800537,
-0.014916103333234787,
0.29069504141807556,
-0.07289697974920273,
-0.8430266976356506,
0.23908723890781403,
0.29060670733451843,
-0.15520621836185455,
-0.5464127659797668,
-0.05542129650712013,
0.7589367032051086,
-0.3970075845718384,
0.5855392217636108,
-0.604213297367096,
0.10715415328741074,
0.30150994658470154,
-0.13579779863357544,
0.4875216484069824,
0.3542439937591553,
0.15652716159820557,
0.5573482513427734,
0.18968884646892548,
-0.07497584819793701,
-0.2207842469215393,
0.7250015735626221,
-0.8665762543678284,
-0.22648410499095917,
-0.8126920461654663,
-0.23948445916175842,
0.08996187895536423,
-0.06983650475740433,
0.6850275993347168,
0.5703365802764893,
-0.26142215728759766,
0.21016715466976166,
0.7034420371055603,
-0.19861941039562225,
0.5287463068962097,
0.4754289388656616,
0.029995258897542953,
-0.5987008810043335,
0.8209466934204102,
0.08050280809402466,
-0.016603771597146988,
0.3777218461036682,
-0.08225066214799881,
-0.3706771433353424,
-0.2928157150745392,
-0.3953653872013092,
0.1861201822757721,
-0.9403681755065918,
-0.8480201363563538,
-0.550499439239502,
-0.3188377618789673,
-0.4244348406791687,
0.070560984313488,
-0.16810159385204315,
-0.6454803347587585,
-0.6909217834472656,
-0.24633222818374634,
0.6049392819404602,
0.565660834312439,
0.04386330768465996,
0.2427893429994583,
-0.6877375841140747,
0.32543089985847473,
0.04018150269985199,
0.5041033029556274,
-0.45889824628829956,
-0.7792811393737793,
-0.3772437274456024,
0.08809036761522293,
-0.3120024502277374,
-0.4154719114303589,
0.4355912506580353,
0.3649371266365051,
0.3996821939945221,
0.430127888917923,
0.2401399314403534,
0.475555419921875,
-0.3543270230293274,
1.1704449653625488,
0.5023359060287476,
-0.7340892553329468,
0.6066747903823853,
-0.3435536026954651,
0.2899138927459717,
0.42279690504074097,
0.4648174047470093,
-0.6720330715179443,
-0.2858680188655853,
-0.53047114610672,
-0.5744848847389221,
0.5398199558258057,
-0.05001576617360115,
0.1576782763004303,
0.02167414128780365,
0.4453820288181305,
0.04926769435405731,
0.0290788896381855,
-0.7129575610160828,
-0.2136337161064148,
-0.5896421670913696,
-0.18058757483959198,
0.07938141375780106,
-0.5021231174468994,
0.03616929054260254,
-0.43076273798942566,
0.7315137982368469,
-0.2701995372772217,
0.0642562285065651,
0.4294721782207489,
-0.10619847476482391,
-0.131959468126297,
0.027240654453635216,
0.6925562024116516,
0.47089922428131104,
-0.4100899398326874,
-0.0466994047164917,
-0.2787110507488251,
-0.6008852124214172,
-0.07872377336025238,
-0.1896982192993164,
0.03090197965502739,
0.43369850516319275,
0.028392815962433815,
0.9472820162773132,
0.008407872170209885,
-0.22889994084835052,
0.8339325785636902,
-0.5639370083808899,
-0.5741172432899475,
-0.5374113917350769,
0.31533652544021606,
-0.34540289640426636,
0.09777607768774033,
0.26066213846206665,
0.5267525315284729,
0.10457299649715424,
-0.10384765267372131,
0.28988200426101685,
0.5566357374191284,
-0.640766978263855,
-0.4141831398010254,
0.5763432383537292,
0.45372915267944336,
-0.09792488068342209,
0.789389967918396,
-0.5095937252044678,
-0.4522062838077545,
0.9052414298057556,
0.22726167738437653,
0.9478161334991455,
-0.057279374450445175,
0.4476949870586395,
0.7723453044891357,
0.35153353214263916,
0.07169761508703232,
0.4774286150932312,
-0.0674862265586853,
-0.5942337512969971,
-0.08819259703159332,
-0.6682472229003906,
-0.6202734708786011,
0.08192525804042816,
-0.934975266456604,
0.7986128926277161,
-0.41985419392585754,
-0.47644373774528503,
0.18700020015239716,
0.35152459144592285,
-0.9906089305877686,
0.6183851361274719,
0.47207581996917725,
1.3977937698364258,
-0.6807640194892883,
1.4872376918792725,
0.6887968182563782,
-0.5264703631401062,
-0.7968024015426636,
-0.506688117980957,
-0.17810004949569702,
-0.33909136056900024,
0.231002539396286,
0.7001705169677734,
0.2728690505027771,
-0.02104753442108631,
-0.9240807890892029,
-0.5006430745124817,
1.154026746749878,
-0.21700792014598846,
-0.6861362457275391,
0.08580776304006577,
-0.11051902920007706,
0.672509491443634,
-0.559216320514679,
0.30386805534362793,
0.39364224672317505,
0.6110928654670715,
0.3979305028915405,
-0.8516767024993896,
-0.3454689383506775,
-0.3531845510005951,
0.3483162522315979,
-0.04228672757744789,
-0.48491141200065613,
0.5332158207893372,
-0.40909093618392944,
-0.32636645436286926,
0.36549028754234314,
0.7364965081214905,
0.05596282333135605,
0.33125877380371094,
0.6047327518463135,
0.6999131441116333,
0.5341677665710449,
-0.5759171843528748,
1.0291513204574585,
0.34765952825546265,
0.6113072633743286,
1.0502634048461914,
-0.19665220379829407,
0.6067566871643066,
0.4303303062915802,
0.06000523641705513,
0.6617758274078369,
1.1394779682159424,
-0.887371301651001,
0.8190612196922302,
0.25796908140182495,
0.09013830870389938,
-0.06760558485984802,
-0.3726631999015808,
-0.2890821695327759,
0.4613051414489746,
0.49306556582450867,
-0.08672017604112625,
0.057785630226135254,
0.4195942282676697,
-0.19302499294281006,
-0.3168720602989197,
-0.47362279891967773,
0.8080635070800781,
0.11197976768016815,
-0.5133666396141052,
0.4218366742134094,
0.3297162652015686,
1.005887508392334,
-1.0575088262557983,
-0.23580455780029297,
-0.07983548194169998,
0.14184994995594025,
-0.3658069670200348,
-1.1898332834243774,
0.13443486392498016,
0.02913004159927368,
-0.14678288996219635,
0.0631643682718277,
0.9587529897689819,
-0.6503574252128601,
-0.38771703839302063,
0.16826899349689484,
-0.17835743725299835,
0.1476905345916748,
-0.16466420888900757,
-0.6159226298332214,
0.23898835480213165,
-0.0189861711114645,
-0.28154119849205017,
-0.051922690123319626,
0.41000086069107056,
-0.20305557548999786,
0.5415213704109192,
0.4865514636039734,
-0.037009693682193756,
-0.3414919376373291,
0.44806379079818726,
1.085374355316162,
-0.6399402022361755,
-0.5607951283454895,
-0.31010881066322327,
0.7403830289840698,
-0.2047371119260788,
-0.4951595962047577,
0.7405035495758057,
0.49505671858787537,
1.0029957294464111,
-0.3621053397655487,
0.7251315116882324,
-0.14589127898216248,
0.23108278214931488,
-0.09973037987947464,
0.7559188008308411,
-0.4714934229850769,
-0.11536115407943726,
-0.21138837933540344,
-0.8035531640052795,
-0.39994311332702637,
0.3639487624168396,
0.21873754262924194,
-0.18539686501026154,
0.5715484023094177,
0.7204911112785339,
0.23500673472881317,
-0.27091318368911743,
0.531550943851471,
-0.16263210773468018,
0.7143896222114563,
0.41279473900794983,
0.585819661617279,
-0.7320998311042786,
0.6435660719871521,
-0.31720617413520813,
-0.3761495053768158,
-0.21210402250289917,
-0.8494666814804077,
-1.0939656496047974,
-0.47462934255599976,
-0.6141199469566345,
-0.5776989459991455,
-0.4614463448524475,
0.7275601625442505,
0.8406258225440979,
-0.5848868489265442,
0.3200609087944031,
0.14672860503196716,
0.12298109382390976,
-0.053988017141819,
-0.2393599897623062,
0.19656626880168915,
0.12400627881288528,
-0.6241884827613831,
-0.2501901686191559,
0.32460689544677734,
0.2895759344100952,
-0.4849754869937897,
-0.32804757356643677,
-0.07529345899820328,
-0.031994160264730453,
0.4124476909637451,
0.19390134513378143,
-0.5559414625167847,
-0.4444970190525055,
-0.10309619456529617,
-0.4839591383934021,
0.2815200984477997,
0.6395296454429626,
-0.6757873892784119,
0.6212803721427917,
0.6050946712493896,
-0.11312608420848846,
0.6064569354057312,
0.08495340496301651,
0.016796188428997993,
-1.182403564453125,
0.5093563795089722,
0.26818588376045227,
0.35605791211128235,
0.5931177735328674,
-0.3438757061958313,
0.5895556807518005,
0.4518527090549469,
-0.6733629107475281,
-0.7162265777587891,
0.05649368464946747,
-1.5945320129394531,
0.19902512431144714,
1.1800239086151123,
-0.39695850014686584,
-0.3379576504230499,
0.07376064360141754,
-0.25509974360466003,
0.32918664813041687,
-0.3827871084213257,
0.22840407490730286,
0.6224733591079712,
0.4709703326225281,
-0.24203738570213318,
-0.2957841753959656,
0.5959942936897278,
-0.35153767466545105,
-0.71113121509552,
-0.3374972641468048,
0.43303197622299194,
0.378885954618454,
-0.010053081437945366,
0.4736967980861664,
-0.22678102552890778,
0.6518329977989197,
-0.07104938477277756,
0.5104292631149292,
-0.2315784990787506,
-0.2303687334060669,
-0.3703170716762543,
-0.47356024384498596,
-0.13404758274555206,
-0.6793937683105469
] |
uukuguy/speechless-codellama-platypus-13b
|
uukuguy
| 2023-11-18T12:42:51Z | 8,039 | 1 |
transformers
|
[
"transformers",
"pytorch",
"llama",
"text-generation",
"llama-2",
"en",
"dataset:garage-bAInd/Open-Platypus",
"arxiv:2308.12950",
"license:llama2",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-08-31T12:32:35Z |
---
language:
- en
library_name: transformers
pipeline_tag: text-generation
datasets:
- garage-bAInd/Open-Platypus
tags:
- llama-2
license: llama2
---
<p><h1> The Tool LLM Based on CodeLlama </h1></p>
Fine-tune the codellama/CodeLlama-13b-hf with Open-Platypus dataset.
Code: https://github.com/uukuguy/speechless
| Metric | Value |
| --- | --- |
| ARC | 45.31 |
| HellaSwag | 68.63 |
| MMLU | 42.82 |
| TruthfulQA | 42.38 |
| Average | 49.78 |
# **Code Llama**
Code Llama is a collection of pretrained and fine-tuned generative text models ranging in scale from 7 billion to 34 billion parameters. This is the repository for the base 13B version in the Hugging Face Transformers format. This model is designed for general code synthesis and understanding. Links to other models can be found in the index at the bottom.
| | Base Model | Python | Instruct |
| --- | ----------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
| 7B | [codellama/CodeLlama-7b-hf](https://huggingface.co/codellama/CodeLlama-7b-hf) | [codellama/CodeLlama-7b-Python-hf](https://huggingface.co/codellama/CodeLlama-7b-Python-hf) | [codellama/CodeLlama-7b-Instruct-hf](https://huggingface.co/codellama/CodeLlama-7b-Instruct-hf) |
| 13B | [codellama/CodeLlama-13b-hf](https://huggingface.co/codellama/CodeLlama-13b-hf) | [codellama/CodeLlama-13b-Python-hf](https://huggingface.co/codellama/CodeLlama-13b-Python-hf) | [codellama/CodeLlama-13b-Instruct-hf](https://huggingface.co/codellama/CodeLlama-13b-Instruct-hf) |
| 34B | [codellama/CodeLlama-34b-hf](https://huggingface.co/codellama/CodeLlama-34b-hf) | [codellama/CodeLlama-34b-Python-hf](https://huggingface.co/codellama/CodeLlama-34b-Python-hf) | [codellama/CodeLlama-34b-Instruct-hf](https://huggingface.co/codellama/CodeLlama-34b-Instruct-hf) |
## Model Use
To use this model, please make sure to install transformers from `main` until the next version is released:
```bash
pip install git+https://github.com/huggingface/transformers.git@main accelerate
```
Model capabilities:
- [x] Code completion.
- [x] Infilling.
- [ ] Instructions / chat.
- [ ] Python specialist.
```python
from transformers import AutoTokenizer
import transformers
import torch
model = "codellama/CodeLlama-13b-hf"
tokenizer = AutoTokenizer.from_pretrained(model)
pipeline = transformers.pipeline(
"text-generation",
model=model,
torch_dtype=torch.float16,
device_map="auto",
)
sequences = pipeline(
'import socket\n\ndef ping_exponential_backoff(host: str):',
do_sample=True,
top_k=10,
temperature=0.1,
top_p=0.95,
num_return_sequences=1,
eos_token_id=tokenizer.eos_token_id,
max_length=200,
)
for seq in sequences:
print(f"Result: {seq['generated_text']}")
```
## Model Details
*Note: Use of this model is governed by the Meta license. Meta developed and publicly released the Code Llama family of large language models (LLMs).
**Model Developers** Meta
**Variations** Code Llama comes in three model sizes, and three variants:
* Code Llama: base models designed for general code synthesis and understanding
* Code Llama - Python: designed specifically for Python
* Code Llama - Instruct: for instruction following and safer deployment
All variants are available in sizes of 7B, 13B and 34B parameters.
**This repository contains the base version of the 13B parameters model.**
**Input** Models input text only.
**Output** Models generate text only.
**Model Architecture** Code Llama is an auto-regressive language model that uses an optimized transformer architecture.
**Model Dates** Code Llama and its variants have been trained between January 2023 and July 2023.
**Status** This is a static model trained on an offline dataset. Future versions of Code Llama - Instruct will be released as we improve model safety with community feedback.
**License** A custom commercial license is available at: [https://ai.meta.com/resources/models-and-libraries/llama-downloads/](https://ai.meta.com/resources/models-and-libraries/llama-downloads/)
**Research Paper** More information can be found in the paper "[Code Llama: Open Foundation Models for Code](https://ai.meta.com/research/publications/code-llama-open-foundation-models-for-code/)" or its [arXiv page](https://arxiv.org/abs/2308.12950).
## Intended Use
**Intended Use Cases** Code Llama and its variants is intended for commercial and research use in English and relevant programming languages. The base model Code Llama can be adapted for a variety of code synthesis and understanding tasks, Code Llama - Python is designed specifically to handle the Python programming language, and Code Llama - Instruct is intended to be safer to use for code assistant and generation applications.
**Out-of-Scope Uses** Use in any manner that violates applicable laws or regulations (including trade compliance laws). Use in languages other than English. Use in any other way that is prohibited by the Acceptable Use Policy and Licensing Agreement for Code Llama and its variants.
## Hardware and Software
**Training Factors** We used custom training libraries. The training and fine-tuning of the released models have been performed Meta’s Research Super Cluster.
**Carbon Footprint** In aggregate, training all 9 Code Llama models required 400K GPU hours of computation on hardware of type A100-80GB (TDP of 350-400W). Estimated total emissions were 65.3 tCO2eq, 100% of which were offset by Meta’s sustainability program.
## Training Data
All experiments reported here and the released models have been trained and fine-tuned using the same data as Llama 2 with different weights (see Section 2 and Table 1 in the [research paper](https://ai.meta.com/research/publications/code-llama-open-foundation-models-for-code/) for details).
## Evaluation Results
See evaluations for the main models and detailed ablations in Section 3 and safety evaluations in Section 4 of the research paper.
## Ethical Considerations and Limitations
Code Llama and its variants are a new technology that carries risks with use. Testing conducted to date has been in English, and has not covered, nor could it cover all scenarios. For these reasons, as with all LLMs, Code Llama’s potential outputs cannot be predicted in advance, and the model may in some instances produce inaccurate or objectionable responses to user prompts. Therefore, before deploying any applications of Code Llama, developers should perform safety testing and tuning tailored to their specific applications of the model.
Please see the Responsible Use Guide available available at [https://ai.meta.com/llama/responsible-user-guide](https://ai.meta.com/llama/responsible-user-guide).
# [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_uukuguy__speechless-codellama-platypus-13b)
| Metric | Value |
|-----------------------|---------------------------|
| Avg. | 40.81 |
| ARC (25-shot) | 46.16 |
| HellaSwag (10-shot) | 68.88 |
| MMLU (5-shot) | 44.55 |
| TruthfulQA (0-shot) | 44.98 |
| Winogrande (5-shot) | 66.14 |
| GSM8K (5-shot) | 9.4 |
| DROP (3-shot) | 5.54 |
|
[
-0.3431764841079712,
-0.6917482614517212,
0.2953043580055237,
0.49564412236213684,
-0.24697187542915344,
0.12346010655164719,
-0.17211349308490753,
-0.5539072751998901,
0.31082040071487427,
0.4304012060165405,
-0.37707528471946716,
-0.7479352951049805,
-0.6007289886474609,
0.22050295770168304,
-0.39853569865226746,
1.1203199625015259,
-0.10485395789146423,
-0.40087684988975525,
-0.19421301782131195,
-0.048728153109550476,
-0.332593709230423,
-0.541058361530304,
-0.23710660636425018,
-0.409593403339386,
0.23614878952503204,
0.35884734988212585,
0.6999067068099976,
0.6200965046882629,
0.6211585402488708,
0.36533764004707336,
-0.2799547612667084,
0.11348501592874527,
-0.4135605990886688,
-0.36091485619544983,
0.29762619733810425,
-0.5614711046218872,
-0.8045632839202881,
0.02329237572848797,
0.4214278757572174,
0.3264589011669159,
-0.29327160120010376,
0.4667954742908478,
-0.07246885448694229,
0.4957270622253418,
-0.2516683340072632,
0.24837398529052734,
-0.6412776112556458,
-0.04971754550933838,
-0.01578402891755104,
-0.25371670722961426,
-0.184845432639122,
-0.49937114119529724,
-0.13134926557540894,
-0.48974281549453735,
-0.04396822303533554,
-0.003777650883421302,
1.194393277168274,
0.49862825870513916,
-0.19290301203727722,
-0.20405283570289612,
-0.283295601606369,
0.8301257491111755,
-0.9960136413574219,
0.04095800966024399,
0.33281734585762024,
-0.0983603373169899,
-0.2015186995267868,
-0.7908313274383545,
-0.641747236251831,
-0.33726006746292114,
-0.18221867084503174,
0.12071157246828079,
-0.40550121665000916,
-0.018635062500834465,
0.3418636918067932,
0.5166062712669373,
-0.5290958881378174,
0.1906932145357132,
-0.42962518334388733,
-0.24434281885623932,
0.9540331959724426,
0.2672029137611389,
0.3928956091403961,
-0.29871129989624023,
-0.3904802203178406,
-0.10464872419834137,
-0.7452638149261475,
0.15007226169109344,
0.46231168508529663,
-0.0743168443441391,
-0.7845349907875061,
0.6963767409324646,
-0.20062440633773804,
0.5604720115661621,
0.044718727469444275,
-0.5542656183242798,
0.6398956775665283,
-0.35598626732826233,
-0.32219401001930237,
-0.1894003450870514,
1.0007251501083374,
0.5991738438606262,
0.256146639585495,
0.07521043717861176,
-0.18716640770435333,
0.2944604456424713,
-0.014849132858216763,
-0.8368245363235474,
-0.16229088604450226,
0.3610263168811798,
-0.5994307994842529,
-0.6060407161712646,
-0.1500311642885208,
-0.8361561894416809,
-0.04349731281399727,
-0.023178817704319954,
0.15670019388198853,
-0.2334752380847931,
-0.454087495803833,
0.29830843210220337,
0.07305949926376343,
0.44570013880729675,
0.14175720512866974,
-0.743674635887146,
0.12580503523349762,
0.4850785732269287,
0.8838702440261841,
-0.05598926916718483,
-0.4598141312599182,
-0.015739846974611282,
-0.17066682875156403,
-0.29982802271842957,
0.6479694247245789,
-0.34807878732681274,
-0.46527108550071716,
-0.23147083818912506,
0.1356523036956787,
-0.07477634400129318,
-0.5409596562385559,
0.23964111506938934,
-0.25825169682502747,
0.010611306875944138,
0.149136021733284,
-0.37192991375923157,
-0.34421563148498535,
0.04423179104924202,
-0.5174877643585205,
1.2541216611862183,
0.22558778524398804,
-0.7794592976570129,
-0.013905403204262257,
-0.6464055180549622,
-0.253325492143631,
-0.24806469678878784,
-0.018172921612858772,
-0.7408548593521118,
-0.10325554013252258,
0.25454896688461304,
0.5568493604660034,
-0.3401777148246765,
0.36977458000183105,
-0.1932174563407898,
-0.3951903283596039,
0.22738447785377502,
-0.113462895154953,
1.043062686920166,
0.31420618295669556,
-0.49324795603752136,
0.24395090341567993,
-0.8312296867370605,
-0.0623747780919075,
0.552638053894043,
-0.48700547218322754,
0.14727157354354858,
-0.1735655963420868,
-0.011859245598316193,
0.006567769218236208,
0.4994521141052246,
-0.3582032322883606,
0.434507817029953,
-0.4328513741493225,
0.7109212875366211,
0.7584578394889832,
0.018826158717274666,
0.35601329803466797,
-0.5721716284751892,
0.7104176878929138,
-0.026356227695941925,
0.21984320878982544,
-0.22352835536003113,
-0.7875422239303589,
-1.0130022764205933,
-0.36546778678894043,
0.03515598177909851,
0.7254717350006104,
-0.4366971254348755,
0.7352638840675354,
-0.03472064808011055,
-0.8175486922264099,
-0.6048856377601624,
0.22016407549381256,
0.42412441968917847,
0.3949260711669922,
0.373797208070755,
-0.2149091511964798,
-0.7686248421669006,
-0.7929146885871887,
0.09298653900623322,
-0.43388667702674866,
0.16701748967170715,
0.27674922347068787,
0.8240992426872253,
-0.5294834971427917,
0.8485361933708191,
-0.5735635161399841,
-0.1716037094593048,
-0.30905479192733765,
-0.25347742438316345,
0.6191205978393555,
0.6004547476768494,
0.7066442370414734,
-0.4992257356643677,
-0.31552016735076904,
0.04765139892697334,
-0.9205735325813293,
-0.2054334282875061,
-0.19728970527648926,
-0.11404836922883987,
0.41065311431884766,
0.2984248101711273,
-0.6322745680809021,
0.5717670321464539,
0.7899943590164185,
-0.32417768239974976,
0.6554101705551147,
-0.14934596419334412,
-0.08451099693775177,
-1.0229629278182983,
0.278025358915329,
-0.058831267058849335,
-0.06861287355422974,
-0.4480225443840027,
0.33779606223106384,
0.05901995301246643,
0.13269878923892975,
-0.5555866360664368,
0.4515042304992676,
-0.4199165999889374,
-0.047909531742334366,
-0.09686503559350967,
-0.07317110896110535,
-0.0542500801384449,
0.7528395652770996,
-0.041772063821554184,
0.9367880821228027,
0.5791100263595581,
-0.5411332845687866,
0.388447105884552,
0.31246504187583923,
-0.3389109969139099,
0.19669099152088165,
-0.9294019937515259,
0.26548025012016296,
0.13074585795402527,
0.3393497169017792,
-0.9170042872428894,
-0.14831198751926422,
0.3486592769622803,
-0.5682080984115601,
0.035184346139431,
-0.015101583674550056,
-0.5896150469779968,
-0.5197606086730957,
-0.33259686827659607,
0.37492603063583374,
0.870019257068634,
-0.5782592296600342,
0.30621540546417236,
0.42046523094177246,
0.17071937024593353,
-0.6160932183265686,
-0.6574371457099915,
0.046004388481378555,
-0.5139248967170715,
-0.7847642302513123,
0.3976050317287445,
-0.3269270360469818,
-0.17205503582954407,
-0.17341654002666473,
0.056373950093984604,
0.04953017085790634,
0.29586660861968994,
0.49232086539268494,
0.5036545395851135,
-0.1293530911207199,
-0.23186834156513214,
-0.1577615737915039,
-0.2091517448425293,
0.07675979286432266,
0.10173079371452332,
0.7748717665672302,
-0.46034836769104004,
-0.21980158984661102,
-0.6702001690864563,
0.03610732778906822,
0.4953574240207672,
-0.2531207501888275,
0.6354836821556091,
0.5231603384017944,
-0.29893922805786133,
0.02073219232261181,
-0.6223082542419434,
-0.02183612622320652,
-0.5553690195083618,
0.26954805850982666,
-0.24305877089500427,
-0.8428270816802979,
0.7752342820167542,
0.15041783452033997,
0.17987105250358582,
0.5522238612174988,
0.8141480088233948,
0.05134882777929306,
0.7313284277915955,
0.8293559551239014,
-0.36952680349349976,
0.35580500960350037,
-0.6902149319648743,
0.07751446962356567,
-0.8225327134132385,
-0.4569622576236725,
-0.51774001121521,
-0.1558651626110077,
-0.7129161357879639,
-0.460688978433609,
0.4032580554485321,
0.18797317147254944,
-0.395357608795166,
0.6975762248039246,
-0.8402858972549438,
0.3599686920642853,
0.4288267493247986,
0.1220436617732048,
0.35880884528160095,
0.036076392978429794,
-0.1488751918077469,
0.17150063812732697,
-0.47297239303588867,
-0.6718900799751282,
1.1998530626296997,
0.5346160531044006,
0.9321375489234924,
-0.0858396589756012,
0.8838295936584473,
0.006531785242259502,
0.33965378999710083,
-0.6221899390220642,
0.6364011168479919,
0.27339357137680054,
-0.44649893045425415,
-0.04108170047402382,
-0.3137226998806,
-0.9389550685882568,
0.1893656849861145,
0.050246208906173706,
-0.8480032086372375,
0.011342852376401424,
0.017873607575893402,
-0.272904634475708,
0.39413025975227356,
-0.688668966293335,
0.6892709732055664,
-0.1636115163564682,
-0.06432630121707916,
-0.08446633815765381,
-0.5538591146469116,
0.5176089406013489,
-0.025288190692663193,
0.19944345951080322,
-0.2483128160238266,
-0.2395239621400833,
0.7524536848068237,
-0.5788530707359314,
1.036272406578064,
0.062115103006362915,
-0.38682010769844055,
0.5933818817138672,
-0.026225000619888306,
0.4320562779903412,
0.08395863324403763,
-0.2230917513370514,
0.6947702169418335,
-0.08421486616134644,
-0.28479522466659546,
-0.07404780387878418,
0.6734804511070251,
-1.094590425491333,
-0.7370359301567078,
-0.4142916798591614,
-0.44761985540390015,
0.29535889625549316,
0.08892540633678436,
0.41254922747612,
0.1050262451171875,
0.18616972863674164,
0.140514075756073,
0.40179386734962463,
-0.6617991924285889,
0.6975908875465393,
0.38307344913482666,
-0.2823796272277832,
-0.5233309864997864,
0.8266128301620483,
-0.09099681675434113,
0.2175900787115097,
0.2359568029642105,
0.07031238079071045,
-0.17389701306819916,
-0.46410414576530457,
-0.4008599817752838,
0.5088220834732056,
-0.5804905295372009,
-0.6067877411842346,
-0.6708746552467346,
-0.41709280014038086,
-0.36822396516799927,
-0.2554371953010559,
-0.29761236906051636,
-0.29716411232948303,
-0.6825075745582581,
-0.21519558131694794,
0.78475421667099,
0.6657763719558716,
-0.05733300745487213,
0.4432772696018219,
-0.6167874336242676,
0.35561761260032654,
0.010166246443986893,
0.41033780574798584,
0.009558231569826603,
-0.6075791120529175,
-0.14818577468395233,
-0.10176365822553635,
-0.5985142588615417,
-0.8539396524429321,
0.6604262590408325,
0.10164529830217361,
0.5791930556297302,
0.08245662599802017,
-0.039899520576000214,
0.7453072667121887,
-0.3418935537338257,
0.9019976854324341,
0.34780800342559814,
-1.079609751701355,
0.68129563331604,
-0.25651121139526367,
0.12765252590179443,
0.09646189957857132,
0.2542114555835724,
-0.44452640414237976,
-0.4242379367351532,
-0.7349979877471924,
-0.8446899056434631,
0.6889569759368896,
0.2812780439853668,
0.11973103880882263,
0.06958092749118805,
0.39497384428977966,
-0.05000343918800354,
0.18949414789676666,
-1.0547635555267334,
-0.42695266008377075,
-0.28314414620399475,
-0.24539394676685333,
-0.08866627514362335,
-0.13781902194023132,
-0.04929934814572334,
-0.32949700951576233,
0.49418380856513977,
-0.16042815148830414,
0.6019729971885681,
0.24014583230018616,
-0.19645729660987854,
-0.2688257396221161,
-0.02021273411810398,
0.654488205909729,
0.6486128568649292,
-0.13895268738269806,
-0.15177375078201294,
0.40316563844680786,
-0.5394702553749084,
0.22461459040641785,
-0.08971147984266281,
-0.04691793769598007,
-0.22535641491413116,
0.5459814667701721,
0.6357743740081787,
0.04078967496752739,
-0.7258973121643066,
0.5354012250900269,
0.09210581332445145,
-0.3042333424091339,
-0.4777405261993408,
0.23896238207817078,
0.32393038272857666,
0.2541225552558899,
0.2634761333465576,
-0.043475016951560974,
-0.15686091780662537,
-0.34308260679244995,
0.1010686606168747,
0.3531387746334076,
0.14570826292037964,
-0.3751316964626312,
0.8978959918022156,
0.11789631098508835,
-0.24808810651302338,
0.4539066553115845,
0.04994351044297218,
-0.5811977386474609,
1.2118794918060303,
0.615403413772583,
0.7107105851173401,
-0.21356236934661865,
0.11714120954275131,
0.557291567325592,
0.5804110169410706,
0.06192352622747421,
0.43387362360954285,
0.12571057677268982,
-0.552365243434906,
-0.2986467480659485,
-0.7991858720779419,
-0.24309763312339783,
0.131720170378685,
-0.4570791721343994,
0.3933590054512024,
-0.6469308733940125,
-0.12028887122869492,
-0.2868099808692932,
0.25699397921562195,
-0.7212223410606384,
0.0035670853685587645,
0.0467534214258194,
0.9947304725646973,
-0.7184966802597046,
0.847368061542511,
0.5792505741119385,
-0.6710442900657654,
-0.945091187953949,
-0.2713624835014343,
-0.00073688302654773,
-1.2222880125045776,
0.5090761780738831,
0.2534131109714508,
0.11216709017753601,
0.03703799843788147,
-0.8988053202629089,
-1.0674543380737305,
1.3689188957214355,
0.40703973174095154,
-0.496138334274292,
0.06812019646167755,
0.16021746397018433,
0.583813488483429,
-0.3761990964412689,
0.5185917615890503,
0.6580402851104736,
0.44574013352394104,
-0.11828386783599854,
-1.218029499053955,
0.34518787264823914,
-0.36566758155822754,
0.11408776789903641,
-0.16162239015102386,
-1.1386635303497314,
1.019331455230713,
-0.49974095821380615,
-0.13762035965919495,
0.39415913820266724,
0.6965285539627075,
0.5670808553695679,
0.19265000522136688,
0.33068665862083435,
0.72578364610672,
0.6045234203338623,
-0.06699343025684357,
1.0620553493499756,
-0.42878225445747375,
0.6024827361106873,
0.5436546802520752,
-0.08017786592245102,
0.7584661841392517,
0.3457432687282562,
-0.5387875437736511,
0.7185861468315125,
0.8215946555137634,
-0.1989612728357315,
0.29714760184288025,
0.30510449409484863,
-0.0017841211520135403,
-0.03795549273490906,
0.004411343485116959,
-0.7499878406524658,
0.434682697057724,
0.3187323212623596,
-0.32820454239845276,
0.001864418270997703,
-0.23523850739002228,
0.3296929895877838,
-0.11920830607414246,
-0.04509378597140312,
0.6956213712692261,
0.23602579534053802,
-0.4945414960384369,
1.1667557954788208,
0.10227979719638824,
1.020771861076355,
-0.43761253356933594,
-0.07814888656139374,
-0.46112656593322754,
0.09315048903226852,
-0.6110785603523254,
-0.6533373594284058,
0.18860483169555664,
0.21112586557865143,
0.06300832331180573,
-0.1186593547463417,
0.5050960779190063,
-0.11785552650690079,
-0.5068193078041077,
0.43272554874420166,
0.2555311322212219,
0.34973612427711487,
0.2371457815170288,
-0.7686483860015869,
0.46442654728889465,
0.17294304072856903,
-0.418570876121521,
0.2806902229785919,
0.14736273884773254,
0.17790357768535614,
0.8880929350852966,
0.7522137761116028,
-0.06221764534711838,
0.1956772804260254,
-0.2051437497138977,
1.103317379951477,
-0.7704759836196899,
-0.424711138010025,
-0.8806260824203491,
0.6701831221580505,
0.1847294569015503,
-0.4981131851673126,
0.6923342943191528,
0.48422619700431824,
0.8215787410736084,
-0.04822874441742897,
0.7050430178642273,
-0.21524278819561005,
0.1490921825170517,
-0.5029932260513306,
0.6880155801773071,
-0.7251325249671936,
0.37990689277648926,
-0.5078639984130859,
-0.9375635385513306,
-0.33023256063461304,
0.8389713168144226,
-0.09728075563907623,
0.053908415138721466,
0.6200584769248962,
1.0721815824508667,
0.25521358847618103,
-0.10252144932746887,
0.1489754170179367,
0.2648945152759552,
0.40017762780189514,
0.8832109570503235,
0.9149858355522156,
-0.624485969543457,
0.6762098073959351,
-0.5677013993263245,
-0.32260963320732117,
-0.3404700458049774,
-0.964865505695343,
-0.9493513107299805,
-0.5140416026115417,
-0.38977286219596863,
-0.4502641260623932,
-0.2777596116065979,
0.9955610632896423,
0.6630382537841797,
-0.5978482961654663,
-0.5609476566314697,
-0.05312054976820946,
0.3466949462890625,
-0.14062179625034332,
-0.24121327698230743,
0.3618168532848358,
-0.1654217392206192,
-0.804378867149353,
0.26506370306015015,
0.03217891603708267,
0.12857778370380402,
-0.27890241146087646,
-0.293205201625824,
-0.13028021156787872,
-0.05122741684317589,
0.45325925946235657,
0.30147913098335266,
-0.8576056361198425,
-0.20892897248268127,
0.08037149906158447,
-0.2249182164669037,
0.2531711161136627,
0.37518510222435,
-0.6427107453346252,
-0.029225507751107216,
0.40028688311576843,
0.3945435583591461,
0.3985460698604584,
-0.19614380598068237,
0.16273567080497742,
-0.4619022309780121,
0.37579232454299927,
-0.03223271667957306,
0.5033013820648193,
0.1800091415643692,
-0.5771880745887756,
0.7674830555915833,
0.3600512444972992,
-0.6997476816177368,
-0.9130419492721558,
0.00857732817530632,
-1.1525421142578125,
-0.14069193601608276,
1.3010642528533936,
-0.20275983214378357,
-0.35812583565711975,
0.22136880457401276,
-0.3634164333343506,
0.22661110758781433,
-0.5132152438163757,
0.7176070213317871,
0.32139086723327637,
-0.15169280767440796,
-0.15286441147327423,
-0.4203609228134155,
0.26187196373939514,
0.31521764397621155,
-1.0418694019317627,
-0.17257145047187805,
0.3314034938812256,
0.4418794810771942,
0.1689569056034088,
0.7921449542045593,
-0.15125679969787598,
0.12421435862779617,
-0.05173163115978241,
0.3419598340988159,
-0.06254144757986069,
-0.1585184931755066,
-0.3641669452190399,
-0.05135776102542877,
-0.1111203208565712,
-0.1413632035255432
] |
flair/ner-spanish-large
|
flair
| 2021-05-08T15:36:59Z | 8,037 | 8 |
flair
|
[
"flair",
"pytorch",
"token-classification",
"sequence-tagger-model",
"es",
"dataset:conll2003",
"arxiv:2011.06993",
"has_space",
"region:us"
] |
token-classification
| 2022-03-02T23:29:05Z |
---
tags:
- flair
- token-classification
- sequence-tagger-model
language: es
datasets:
- conll2003
widget:
- text: "George Washington fue a Washington"
---
## Spanish NER in Flair (large model)
This is the large 4-class NER model for Spanish that ships with [Flair](https://github.com/flairNLP/flair/).
F1-Score: **90,54** (CoNLL-03 Spanish)
Predicts 4 tags:
| **tag** | **meaning** |
|---------------------------------|-----------|
| PER | person name |
| LOC | location name |
| ORG | organization name |
| MISC | other name |
Based on document-level XLM-R embeddings and [FLERT](https://arxiv.org/pdf/2011.06993v1.pdf/).
---
### Demo: How to use in Flair
Requires: **[Flair](https://github.com/flairNLP/flair/)** (`pip install flair`)
```python
from flair.data import Sentence
from flair.models import SequenceTagger
# load tagger
tagger = SequenceTagger.load("flair/ner-spanish-large")
# make example sentence
sentence = Sentence("George Washington fue a Washington")
# predict NER tags
tagger.predict(sentence)
# print sentence
print(sentence)
# print predicted NER spans
print('The following NER tags are found:')
# iterate over entities and print
for entity in sentence.get_spans('ner'):
print(entity)
```
This yields the following output:
```
Span [1,2]: "George Washington" [− Labels: PER (1.0)]
Span [5]: "Washington" [− Labels: LOC (1.0)]
```
So, the entities "*George Washington*" (labeled as a **person**) and "*Washington*" (labeled as a **location**) are found in the sentence "*George Washington fue a Washington*".
---
### Training: Script to train this model
The following Flair script was used to train this model:
```python
import torch
# 1. get the corpus
from flair.datasets import CONLL_03_SPANISH
corpus = CONLL_03_SPANISH()
# 2. what tag do we want to predict?
tag_type = 'ner'
# 3. make the tag dictionary from the corpus
tag_dictionary = corpus.make_tag_dictionary(tag_type=tag_type)
# 4. initialize fine-tuneable transformer embeddings WITH document context
from flair.embeddings import TransformerWordEmbeddings
embeddings = TransformerWordEmbeddings(
model='xlm-roberta-large',
layers="-1",
subtoken_pooling="first",
fine_tune=True,
use_context=True,
)
# 5. initialize bare-bones sequence tagger (no CRF, no RNN, no reprojection)
from flair.models import SequenceTagger
tagger = SequenceTagger(
hidden_size=256,
embeddings=embeddings,
tag_dictionary=tag_dictionary,
tag_type='ner',
use_crf=False,
use_rnn=False,
reproject_embeddings=False,
)
# 6. initialize trainer with AdamW optimizer
from flair.trainers import ModelTrainer
trainer = ModelTrainer(tagger, corpus, optimizer=torch.optim.AdamW)
# 7. run training with XLM parameters (20 epochs, small LR)
from torch.optim.lr_scheduler import OneCycleLR
trainer.train('resources/taggers/ner-spanish-large',
learning_rate=5.0e-6,
mini_batch_size=4,
mini_batch_chunk_size=1,
max_epochs=20,
scheduler=OneCycleLR,
embeddings_storage_mode='none',
weight_decay=0.,
)
)
```
---
### Cite
Please cite the following paper when using this model.
```
@misc{schweter2020flert,
title={FLERT: Document-Level Features for Named Entity Recognition},
author={Stefan Schweter and Alan Akbik},
year={2020},
eprint={2011.06993},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
```
---
### Issues?
The Flair issue tracker is available [here](https://github.com/flairNLP/flair/issues/).
|
[
-0.47753646969795227,
-0.5006614327430725,
0.22042493522167206,
0.21130342781543732,
-0.060234617441892624,
-0.07948994636535645,
-0.27904069423675537,
-0.5245810747146606,
0.5560714602470398,
0.3707422912120819,
-0.48829588294029236,
-0.6250664591789246,
-0.49308404326438904,
0.3261347711086273,
-0.2012847363948822,
1.1370036602020264,
0.07202409207820892,
0.2132549285888672,
0.09811264276504517,
0.06779086589813232,
-0.2472260743379593,
-0.5215408205986023,
-0.8265942335128784,
-0.29777204990386963,
0.7354282736778259,
0.30016666650772095,
0.5131101608276367,
0.7823451161384583,
0.394247829914093,
0.2891837954521179,
-0.08636126667261124,
0.049731478095054626,
-0.2662537395954132,
-0.18149124085903168,
-0.14616498351097107,
-0.3485996723175049,
-0.721609354019165,
-0.03564399480819702,
0.6607134342193604,
0.3425394892692566,
0.1487017422914505,
0.027295676991343498,
-0.08981215208768845,
0.2569302022457123,
-0.23714855313301086,
0.32449281215667725,
-0.7308025360107422,
-0.15501071512699127,
-0.1931135505437851,
-0.09895472228527069,
-0.45296013355255127,
-0.3849385976791382,
0.2693021893501282,
-0.4603041708469391,
0.2499399185180664,
0.23310111463069916,
1.3919214010238647,
0.2513273358345032,
-0.4497532248497009,
-0.20518825948238373,
-0.5968233942985535,
0.9296819567680359,
-0.937297523021698,
0.41467171907424927,
0.28016597032546997,
-0.03535833582282066,
-0.05192798748612404,
-0.6927752494812012,
-0.6365732550621033,
-0.2205001711845398,
0.012591496109962463,
0.13829825818538666,
-0.259719580411911,
-0.10174986720085144,
0.33172333240509033,
0.10006371885538101,
-0.6507889628410339,
0.1837790608406067,
-0.3625817596912384,
-0.28305745124816895,
0.6407628655433655,
0.13591957092285156,
0.07982153445482254,
-0.22918280959129333,
-0.49566301703453064,
-0.21532881259918213,
-0.5051213502883911,
-0.09587942063808441,
0.3299667239189148,
0.41170763969421387,
-0.17318102717399597,
0.4135512113571167,
0.05477530136704445,
0.7092653512954712,
0.11125711351633072,
-0.25676414370536804,
0.6542930603027344,
0.02874583750963211,
-0.2728857696056366,
0.016113171353936195,
1.0144795179367065,
0.274284690618515,
0.20641137659549713,
-0.15440483391284943,
-0.13714450597763062,
0.026145320385694504,
-0.110828697681427,
-0.8789264559745789,
-0.26768648624420166,
0.2568178176879883,
-0.22588087618350983,
-0.31538647413253784,
0.21161390841007233,
-0.792710542678833,
-0.08902470022439957,
-0.10225412994623184,
0.6118628978729248,
-0.5362597703933716,
-0.1089433878660202,
0.06666096299886703,
-0.1804148554801941,
0.4056747257709503,
0.19163662195205688,
-0.8155716061592102,
0.11971800774335861,
0.33115705847740173,
0.6834210157394409,
0.1740678995847702,
-0.4399413466453552,
-0.2846607565879822,
-0.17037270963191986,
-0.18147680163383484,
0.6969090700149536,
-0.2817334830760956,
-0.2084389477968216,
-0.11713241785764694,
0.29667890071868896,
-0.4085294008255005,
-0.23881058394908905,
0.5636898875236511,
-0.6333566308021545,
0.31916543841362,
-0.26626840233802795,
-0.7455164790153503,
-0.4368802309036255,
0.2303086668252945,
-0.7265623807907104,
1.0842231512069702,
0.12722377479076385,
-1.0314606428146362,
0.3488422632217407,
-0.42079782485961914,
-0.3217394948005676,
-0.06961339712142944,
-0.01915934309363365,
-0.5748350620269775,
-0.16712534427642822,
0.09609536081552505,
0.7318981885910034,
-0.26942363381385803,
0.234804168343544,
-0.22527958452701569,
-0.018671369180083275,
0.2328837364912033,
-0.019064685329794884,
0.7443490624427795,
0.14312395453453064,
-0.4490945339202881,
0.06294166296720505,
-0.8650144934654236,
-0.041367433965206146,
0.2540624737739563,
-0.3945789337158203,
-0.03867248818278313,
-0.0860210433602333,
0.2853325307369232,
0.3765159845352173,
0.2822894752025604,
-0.5381805896759033,
0.3321346938610077,
-0.5465637445449829,
0.3992619216442108,
0.5047736763954163,
0.005247750785201788,
0.44927409291267395,
-0.46671149134635925,
0.5202994346618652,
-0.0498180165886879,
-0.22800777852535248,
-0.08027438819408417,
-0.5310407876968384,
-0.8209612965583801,
-0.28092268109321594,
0.4633219838142395,
0.6763386726379395,
-0.5912161469459534,
0.7339238524436951,
-0.350359708070755,
-0.8263193964958191,
-0.27791452407836914,
-0.2258453071117401,
0.30308303236961365,
0.7215578556060791,
0.6067060232162476,
0.032939475029706955,
-0.9227493405342102,
-0.8147385120391846,
-0.0018624531803652644,
0.10791117697954178,
0.18235322833061218,
0.24888642132282257,
1.072116732597351,
-0.35900038480758667,
0.846155047416687,
-0.4145599603652954,
-0.405966579914093,
-0.4667075276374817,
0.08031043410301208,
0.5559154152870178,
0.6119645833969116,
0.5749297738075256,
-0.5975354313850403,
-0.728448748588562,
0.021350394934415817,
-0.494477778673172,
0.17341676354408264,
-0.12642960250377655,
0.02732026018202305,
0.4138928949832916,
0.447501540184021,
-0.37093064188957214,
0.4253181517124176,
0.4033154249191284,
-0.48858514428138733,
0.5243144035339355,
-0.1591119021177292,
-0.1895928531885147,
-1.3250586986541748,
0.26483669877052307,
0.24501319229602814,
-0.22356756031513214,
-0.5523681640625,
-0.29573047161102295,
0.270127534866333,
0.2270485907793045,
-0.47288164496421814,
0.8588536381721497,
-0.48138004541397095,
0.16326960921287537,
-0.16649796068668365,
-0.07420854270458221,
0.09021182358264923,
0.40971899032592773,
0.39817672967910767,
0.429977148771286,
0.6455074548721313,
-0.6168308258056641,
0.22813056409358978,
0.30684924125671387,
-0.35690468549728394,
0.1695394515991211,
-0.6675992608070374,
-0.05238331854343414,
-0.076665960252285,
0.2881104350090027,
-0.7904080748558044,
-0.29643842577934265,
0.1572931855916977,
-0.49333563446998596,
0.6274845004081726,
-0.06042623892426491,
-0.38495779037475586,
-0.6405243873596191,
-0.3260570466518402,
0.0835019201040268,
0.4198390543460846,
-0.5216782689094543,
0.5297964811325073,
0.1941552758216858,
0.16017600893974304,
-0.8420853614807129,
-0.6808207035064697,
-0.124611996114254,
-0.29401499032974243,
-0.6454251408576965,
0.697389543056488,
-0.06026018038392067,
0.12547843158245087,
0.03623678907752037,
-0.06745792180299759,
0.021641021594405174,
0.06612119823694229,
0.18917222321033478,
0.4821820557117462,
-0.2199927419424057,
-0.011374449357390404,
-0.18230628967285156,
-0.016042670235037804,
-0.017461393028497696,
-0.23790991306304932,
0.8895338773727417,
-0.19447802007198334,
0.18344958126544952,
-0.5632326602935791,
0.019830822944641113,
0.4542434513568878,
-0.3306596279144287,
1.1312694549560547,
0.8504381775856018,
-0.5687945485115051,
-0.16553995013237,
-0.5585127472877502,
-0.14232075214385986,
-0.38615095615386963,
0.674413800239563,
-0.3915313482284546,
-0.590025782585144,
0.7672871351242065,
0.20685306191444397,
0.10718001425266266,
0.8566944003105164,
0.48248183727264404,
0.10591958463191986,
1.1172244548797607,
0.6483595967292786,
-0.12477877736091614,
0.5670982003211975,
-0.8329793214797974,
0.07493855804204941,
-0.9856191277503967,
-0.391823410987854,
-0.6554428935050964,
-0.21582593023777008,
-0.5931077599525452,
-0.30080491304397583,
0.14780931174755096,
0.18391458690166473,
-0.62083500623703,
0.7156381011009216,
-0.4932456612586975,
0.3371376693248749,
0.5154593586921692,
0.07228107005357742,
-0.018795855343341827,
-0.2288333922624588,
-0.27703857421875,
-0.20757116377353668,
-0.7247378826141357,
-0.6040657162666321,
1.0875259637832642,
0.5007234215736389,
0.8095577955245972,
-0.10531410574913025,
0.911474347114563,
-0.22608686983585358,
0.37816205620765686,
-0.8551547527313232,
0.36117616295814514,
-0.07736038416624069,
-0.7145678400993347,
-0.09103629738092422,
-0.39094147086143494,
-1.0619378089904785,
0.17357449233531952,
-0.4302643835544586,
-0.9228274822235107,
0.3265674114227295,
0.03436829149723053,
-0.4811479151248932,
0.4987703859806061,
-0.43437761068344116,
1.0924723148345947,
-0.21111387014389038,
-0.3044556975364685,
0.31124892830848694,
-0.7232187986373901,
0.13530002534389496,
-0.040243931114673615,
0.27752578258514404,
-0.13382381200790405,
-0.045888666063547134,
1.1279493570327759,
-0.3868846595287323,
0.8123399615287781,
-0.021294040605425835,
0.0656542107462883,
0.06371558457612991,
-0.06744805723428726,
0.5494269132614136,
0.06844186037778854,
-0.3622918128967285,
0.07173030078411102,
-0.012840243987739086,
-0.19049938023090363,
-0.0929812490940094,
0.8195828795433044,
-0.925119936466217,
-0.2711588740348816,
-0.7932395935058594,
-0.3583027720451355,
0.07757582515478134,
0.3869321048259735,
0.8289764523506165,
0.5768905878067017,
-0.2233937680721283,
0.13357771933078766,
0.616238534450531,
-0.2699272036552429,
0.6735976934432983,
0.34253332018852234,
-0.4230404794216156,
-0.602800190448761,
0.8115754127502441,
0.19520998001098633,
0.05043145641684532,
0.4821609556674957,
0.13784721493721008,
-0.47428053617477417,
-0.3645726144313812,
-0.2792167663574219,
0.5682121515274048,
-0.5699048042297363,
-0.5996254682540894,
-0.9055538177490234,
-0.332275927066803,
-0.668573260307312,
-0.2231084555387497,
-0.38683462142944336,
-0.33177492022514343,
-0.7351052761077881,
-0.027641624212265015,
0.39040622115135193,
0.7036042213439941,
-0.015044922940433025,
0.42751017212867737,
-0.6102220416069031,
-0.11853565275669098,
-0.015858231112360954,
0.043773993849754333,
0.07343009114265442,
-0.9660563468933105,
-0.3795733153820038,
-0.07617878913879395,
-0.42285364866256714,
-1.1080284118652344,
1.0879402160644531,
0.2570357322692871,
0.5133137702941895,
0.3966613709926605,
-0.05468958243727684,
0.502336323261261,
-0.48490336537361145,
0.6204098463058472,
0.13139954209327698,
-0.8580340147018433,
0.5893266797065735,
-0.2655330002307892,
0.1289917528629303,
0.22412236034870148,
0.7513012290000916,
-0.4000379741191864,
-0.22353319823741913,
-0.8533472418785095,
-1.0028150081634521,
0.8159989714622498,
-0.06679058820009232,
0.11644536256790161,
-0.38723024725914,
0.2106458991765976,
-0.12730632722377777,
0.04019750654697418,
-1.1752283573150635,
-0.5339822769165039,
-0.16939420998096466,
-0.15492130815982819,
-0.16807785630226135,
-0.11846169084310532,
0.255817711353302,
-0.43964850902557373,
1.2177151441574097,
-0.016472171992063522,
0.43338826298713684,
0.4381636083126068,
-0.060941021889448166,
-0.03579958900809288,
0.16746270656585693,
0.5374795198440552,
0.3860044777393341,
-0.4957568049430847,
-0.03928270936012268,
0.2638036906719208,
-0.2973794937133789,
-0.2482479065656662,
0.25470978021621704,
-0.030101949349045753,
0.20261892676353455,
0.38895148038864136,
0.889110267162323,
0.382174551486969,
-0.23728495836257935,
0.5014026761054993,
0.07435783743858337,
-0.2945071756839752,
-0.6040544509887695,
-0.08936840295791626,
0.10536415129899979,
0.20540368556976318,
0.440183162689209,
0.220355823636055,
-0.149091437458992,
-0.5271757245063782,
-0.004027842544019222,
0.49682584404945374,
-0.3226519823074341,
-0.4482293725013733,
1.0572949647903442,
-0.038195494562387466,
-0.14576518535614014,
0.4003189504146576,
-0.5018830895423889,
-0.9155045747756958,
0.9048563241958618,
0.7916973233222961,
0.6933760643005371,
-0.23738034069538116,
0.0943816527724266,
0.9043922424316406,
0.2749212682247162,
-0.37185895442962646,
0.5037139654159546,
0.4949999451637268,
-0.9208940267562866,
-0.2939459979534149,
-0.8585419058799744,
-0.08743932843208313,
0.2128894180059433,
-0.6325451731681824,
0.6582751870155334,
-0.39822107553482056,
-0.35487645864486694,
0.32311248779296875,
0.30230391025543213,
-0.9998303055763245,
0.23021765053272247,
0.2696300148963928,
1.1429901123046875,
-0.9121679663658142,
1.0882195234298706,
0.7914090752601624,
-0.6822702288627625,
-1.1544216871261597,
-0.27624180912971497,
-0.1427323967218399,
-0.7244065403938293,
0.7574384212493896,
0.4139757454395294,
0.25456029176712036,
0.333763062953949,
-0.5139774084091187,
-1.278107762336731,
1.2597496509552002,
0.07874783873558044,
-0.5190706849098206,
-0.22822272777557373,
-0.3336917459964752,
0.4484688639640808,
-0.47568076848983765,
0.5367570519447327,
0.4298180043697357,
0.5060228705406189,
0.1485876441001892,
-1.0237526893615723,
0.016154862940311432,
-0.15127155184745789,
-0.06569875776767731,
0.27330467104911804,
-0.623943030834198,
1.1804440021514893,
-0.3350970447063446,
-0.13691411912441254,
0.34151989221572876,
0.7776165008544922,
0.0437849685549736,
0.1892627775669098,
0.12471596896648407,
0.7998260259628296,
0.8241285681724548,
-0.21236945688724518,
0.9711894989013672,
-0.33115413784980774,
0.7999469637870789,
1.162994146347046,
-0.18519213795661926,
0.9322203993797302,
0.3107987344264984,
-0.13860231637954712,
0.691038966178894,
0.6454015374183655,
-0.2852281928062439,
0.457025408744812,
0.1808188557624817,
-0.053951866924762726,
-0.10525836795568466,
0.022711485624313354,
-0.5901479125022888,
0.5299975872039795,
0.334656298160553,
-0.6629665493965149,
-0.09130220115184784,
0.029375223442912102,
0.5076628923416138,
-0.13133525848388672,
-0.43062520027160645,
0.6170216798782349,
-0.06253019720315933,
-0.5288188457489014,
0.6454064846038818,
0.16182954609394073,
1.016621708869934,
-0.42703792452812195,
0.16668355464935303,
-0.0506049208343029,
0.2319093644618988,
-0.4080287516117096,
-0.519494891166687,
0.17026305198669434,
-0.04828474298119545,
-0.18860188126564026,
-0.049030851572752,
0.4778998792171478,
-0.4992970824241638,
-0.5482582449913025,
0.30109158158302307,
0.48533865809440613,
0.19910678267478943,
-0.09682369977235794,
-0.6831606030464172,
-0.08934517204761505,
0.09902754426002502,
-0.4263216555118561,
0.1673731803894043,
0.26966729760169983,
0.006678590085357428,
0.48730242252349854,
0.5236766934394836,
0.11316006630659103,
0.15675079822540283,
-0.10048261284828186,
0.8185017108917236,
-0.8997416496276855,
-0.33435654640197754,
-0.9301968216896057,
0.43629708886146545,
-0.02754867449402809,
-0.4330665171146393,
0.7537049651145935,
0.886786162853241,
0.8613932728767395,
-0.18528307974338531,
0.6255936622619629,
-0.4228955805301666,
0.6065292358398438,
-0.28625500202178955,
0.7245467901229858,
-0.4977405071258545,
0.1482699066400528,
-0.35028257966041565,
-0.997342586517334,
-0.48647597432136536,
0.8734889626502991,
-0.4840415120124817,
0.07490094751119614,
0.7242833375930786,
0.8610773086547852,
0.036995209753513336,
-0.16813713312149048,
0.19766905903816223,
0.3981293737888336,
0.17303027212619781,
0.6286910176277161,
0.5974462032318115,
-0.6819795966148376,
0.40915173292160034,
-0.684874415397644,
-0.12466374039649963,
-0.28325292468070984,
-0.9932266473770142,
-1.0189670324325562,
-0.6264130473136902,
-0.4872289001941681,
-0.6456321477890015,
-0.43664589524269104,
1.2746683359146118,
0.6096832156181335,
-0.9122453927993774,
-0.1247151792049408,
-0.028755763545632362,
0.007949735969305038,
-0.0017748336540535092,
-0.27396631240844727,
0.588018000125885,
-0.16857732832431793,
-0.8628029823303223,
0.23696047067642212,
-0.15349744260311127,
0.24409329891204834,
0.1487574726343155,
-0.07633642852306366,
-0.4815284311771393,
-0.04889852553606033,
0.3544294536113739,
0.47686317563056946,
-0.7528389096260071,
-0.2404780089855194,
0.32453981041908264,
-0.33803242444992065,
0.1338621824979782,
0.17517352104187012,
-0.8084820508956909,
0.17046451568603516,
0.3628876209259033,
0.2930310368537903,
0.6248172521591187,
-0.24768003821372986,
0.18161317706108093,
-0.6382163166999817,
0.029907021671533585,
0.38696029782295227,
0.7134617567062378,
0.2407619059085846,
-0.27366191148757935,
0.47213634848594666,
0.22435025870800018,
-0.7336946129798889,
-0.6983693838119507,
-0.12302262336015701,
-1.219961166381836,
-0.10341484844684601,
1.1323766708374023,
-0.10785119980573654,
-0.41474300622940063,
0.07758169621229172,
-0.2716759741306305,
0.4986620247364044,
-0.46591606736183167,
0.3747405707836151,
0.3911043703556061,
-0.18353065848350525,
0.004322214052081108,
-0.5186773538589478,
0.5543814301490784,
0.19151219725608826,
-0.6270201206207275,
-0.34050294756889343,
0.263321191072464,
0.5838404893875122,
0.26207098364830017,
0.5000532865524292,
0.03576817736029625,
0.23642981052398682,
-0.09148908406496048,
0.45615535974502563,
0.05621681362390518,
-0.17114925384521484,
-0.3960190713405609,
-0.20079831779003143,
-0.070707306265831,
-0.14877834916114807
] |
WizardLM/WizardLM-13B-V1.2
|
WizardLM
| 2023-09-09T06:45:42Z | 8,035 | 189 |
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-07-25T13:51:28Z |
---
license: llama2
---
This is the **Full-Weight** of WizardLM-13B V1.2 model, this model is trained from **Llama-2 13b**.
## WizardLM: Empowering Large Pre-Trained Language Models to Follow Complex Instructions
<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>
## News
- 🔥🔥🔥[2023/08/26] We released **WizardCoder-Python-34B-V1.0** , which achieves the **73.2 pass@1** and surpasses **GPT4 (2023/03/15)**, **ChatGPT-3.5**, and **Claude2** on the [HumanEval Benchmarks](https://github.com/openai/human-eval). For more details, please refer to [WizardCoder](https://github.com/nlpxucan/WizardLM/tree/main/WizardCoder).
- [2023/06/16] We released **WizardCoder-15B-V1.0** , which surpasses **Claude-Plus (+6.8)**, **Bard (+15.3)** and **InstructCodeT5+ (+22.3)** on the [HumanEval Benchmarks](https://github.com/openai/human-eval). For more details, please refer to [WizardCoder](https://github.com/nlpxucan/WizardLM/tree/main/WizardCoder).
| 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> |
- 🔥 [08/11/2023] We release **WizardMath** Models.
- 🔥 Our **WizardMath-70B-V1.0** model slightly outperforms some closed-source LLMs on the GSM8K, including **ChatGPT 3.5**, **Claude Instant 1** and **PaLM 2 540B**.
- 🔥 Our **WizardMath-70B-V1.0** model achieves **81.6 pass@1** on the [GSM8k Benchmarks](https://github.com/openai/grade-school-math), which is **24.8** points higher than the SOTA open-source LLM.
- 🔥 Our **WizardMath-70B-V1.0** model achieves **22.7 pass@1** on the [MATH Benchmarks](https://github.com/hendrycks/math), which is **9.2** points higher than the SOTA open-source LLM.
| 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>WizardEval</sup> | <sup>HumanEval</sup> | <sup>License</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>101.4% </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>99.3% </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>97.8% </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>89.1% </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>78.0% </sup> |<sup>19.1 pass@1 </sup>|<sup> Non-commercial</sup>|
</font>
**Repository**: https://github.com/nlpxucan/WizardLM
**Twitter**:
- 🔥🔥🔥 [7/25/2023] We released **WizardLM V1.2** models. The **WizardLM-13B-V1.2** is here ([Demo_13B-V1.2](https://b7a19878988c8c73.gradio.app), [Demo_13B-V1.2_bak-1](https://d0a37a76e0ac4b52.gradio.app/), [Full Model Weight](https://huggingface.co/WizardLM/WizardLM-13B-V1.2)). Please checkout the [paper](https://arxiv.org/abs/2304.12244).
- 🔥🔥🔥 [7/25/2023] The **WizardLM-13B-V1.2** achieves **7.06** on [MT-Bench Leaderboard](https://chat.lmsys.org/?leaderboard), **89.17%** on [AlpacaEval Leaderboard](https://tatsu-lab.github.io/alpaca_eval/), and **101.4%** on [WizardLM Eval](https://github.com/nlpxucan/WizardLM/blob/main/WizardLM/data/WizardLM_testset.jsonl). (Note: MT-Bench and AlpacaEval are all self-test, will push update and request review. All tests are completed under their official settings.)
❗<b>Note for model system prompts usage:</b>
<b>WizardLM</b> adopts the prompt format from <b>Vicuna</b> and supports **multi-turn** conversation. The prompt should be as following:
```
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: Hi ASSISTANT: Hello.</s>USER: Who are you? ASSISTANT: I am WizardLM.</s>......
```
## Inference WizardLM Demo Script
We provide the inference WizardLM demo code [here](https://github.com/nlpxucan/WizardLM/tree/main/demo).
Please cite the paper if you use the data or code from WizardLM.
```
@article{xu2023wizardlm,
title={Wizardlm: Empowering large language models to follow complex instructions},
author={Xu, Can and Sun, Qingfeng and Zheng, Kai and Geng, Xiubo and Zhao, Pu and Feng, Jiazhan and Tao, Chongyang and Jiang, Daxin},
journal={arXiv preprint arXiv:2304.12244},
year={2023}
}
```
❗<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.
|
[
-0.6567464470863342,
-0.540897786617279,
-0.07157916575670242,
0.45174548029899597,
0.09291961044073105,
-0.15131571888923645,
0.02948480285704136,
-0.5040490627288818,
0.22314943373203278,
0.3831130862236023,
-0.7325661778450012,
-0.6783556342124939,
-0.5556965470314026,
0.20009061694145203,
-0.14797325432300568,
0.8592168092727661,
-0.18487347662448883,
-0.19598354399204254,
-0.21138589084148407,
-0.16132448613643646,
-0.2377202957868576,
-0.48932862281799316,
-0.23328867554664612,
-0.5224838256835938,
0.44664591550827026,
0.08842670917510986,
0.911593496799469,
0.4768681824207306,
0.36182478070259094,
0.30863580107688904,
-0.2790684103965759,
0.5700547099113464,
-0.19921991229057312,
-0.26876017451286316,
0.22966499626636505,
-0.2556377947330475,
-1.0295382738113403,
-0.026931172236800194,
0.6371937394142151,
0.40898647904396057,
-0.06308598816394806,
0.42544808983802795,
0.03816188499331474,
0.9864064455032349,
-0.6206153631210327,
0.2924111783504486,
-0.2598196864128113,
0.26266908645629883,
-0.1753706932067871,
-0.0984262079000473,
-0.03196180984377861,
-0.5223754048347473,
-0.041735704988241196,
-0.8775762319564819,
-0.12964147329330444,
0.13010868430137634,
1.2481313943862915,
0.19818015396595,
-0.29963418841362,
-0.09384196251630783,
-0.2989811301231384,
0.7656691074371338,
-0.9150080680847168,
0.3577454686164856,
0.6035563349723816,
0.1859431117773056,
-0.5793909430503845,
-0.5786336064338684,
-0.8562243580818176,
-0.17529529333114624,
-0.1301678866147995,
0.11966980248689651,
-0.4054708480834961,
-0.27538564801216125,
0.349485844373703,
0.33245959877967834,
-0.7126810550689697,
-0.045845452696084976,
-0.44637179374694824,
-0.1875424087047577,
0.9147810935974121,
0.22866609692573547,
0.4667105972766876,
-0.19504883885383606,
0.024159632623195648,
-0.22920946776866913,
-0.5649448037147522,
0.22374017536640167,
0.43238365650177,
-0.03545023500919342,
-0.508931040763855,
0.8309823274612427,
-0.07775238901376724,
0.7217276096343994,
0.12542371451854706,
-0.6358493566513062,
0.7011340856552124,
-0.39043763279914856,
-0.22307449579238892,
-0.10923109948635101,
1.1288968324661255,
0.5363351702690125,
0.1382235884666443,
0.08674889802932739,
0.010342204943299294,
-0.29556894302368164,
0.057929810136556625,
-0.9716425538063049,
-0.10634717345237732,
0.31413236260414124,
-0.5892466902732849,
-0.2902527451515198,
-0.26725783944129944,
-0.8162622451782227,
-0.4036908745765686,
-0.10037713497877121,
0.3091079294681549,
-0.7122002243995667,
-0.3392355740070343,
0.27578654885292053,
-0.02569175511598587,
0.6594189405441284,
0.606193482875824,
-0.9504756927490234,
0.3193889558315277,
0.5763607621192932,
0.8238563537597656,
-0.1398329883813858,
-0.6069024801254272,
-0.10220150649547577,
-0.009465399198234081,
-0.47391295433044434,
0.5653497576713562,
0.02873753011226654,
-0.46524307131767273,
-0.13673023879528046,
-0.08276096731424332,
-0.17010913789272308,
-0.4186986982822418,
0.4276231825351715,
-0.43955305218696594,
0.3046051561832428,
-0.11862939596176147,
-0.559235692024231,
-0.2822687029838562,
0.3194848597049713,
-0.6537283658981323,
1.2392711639404297,
0.18332386016845703,
-1.0069215297698975,
-0.043562136590480804,
-0.698543131351471,
-0.1599888950586319,
-0.47238826751708984,
-0.04252247139811516,
-0.6272175312042236,
-0.2063281536102295,
0.26032429933547974,
0.22105176746845245,
-0.5617989301681519,
-0.21655549108982086,
-0.2442866712808609,
-0.2657676339149475,
0.24738968908786774,
-0.5354788899421692,
1.4089661836624146,
0.25707682967185974,
-0.3809327185153961,
-0.06558175384998322,
-1.1524850130081177,
0.021613938733935356,
0.6283889412879944,
-0.5115351676940918,
0.07259012013673782,
-0.3101508319377899,
-0.10671460628509521,
0.1897209882736206,
0.7336366772651672,
-0.30716559290885925,
0.5137256383895874,
-0.5253742337226868,
-0.18786756694316864,
0.7549773454666138,
-0.15733633935451508,
0.3637785315513611,
-0.49444109201431274,
0.43929728865623474,
-0.12380915880203247,
0.41942688822746277,
0.12330031394958496,
-0.703804612159729,
-0.896622896194458,
-0.3942506015300751,
0.11024661362171173,
0.7772846221923828,
-0.4755287170410156,
1.146440029144287,
-0.2563253939151764,
-1.0643048286437988,
-0.6108290553092957,
0.3116486966609955,
0.4553058445453644,
0.5768173336982727,
0.5851477384567261,
-0.16076964139938354,
-0.3763318657875061,
-0.8986549377441406,
-0.05149601399898529,
-0.354574054479599,
-0.09456299990415573,
0.3171837031841278,
0.6561777591705322,
-0.4715561866760254,
1.0323190689086914,
-0.6867119669914246,
-0.23989900946617126,
-0.11565567553043365,
-0.23072558641433716,
0.41647639870643616,
0.6895021796226501,
0.6796565055847168,
-0.6464623212814331,
-0.4882251024246216,
0.21073365211486816,
-0.9996415376663208,
-0.1290193349123001,
0.09676960110664368,
-0.33558693528175354,
0.34516996145248413,
-0.006919302046298981,
-0.9760224223136902,
0.7981603145599365,
0.3196217715740204,
-0.6229016780853271,
0.9536884427070618,
-0.3672569990158081,
0.05888254567980766,
-1.0744142532348633,
0.08156497031450272,
-0.13202811777591705,
0.13476383686065674,
-0.6579622030258179,
0.02407046966254711,
0.1014409214258194,
0.30383962392807007,
-0.6814547181129456,
0.9242315888404846,
-0.5276494026184082,
-0.034505486488342285,
-0.05911615118384361,
-0.1866774559020996,
0.2192496359348297,
0.7982285618782043,
-0.1390799731016159,
0.7713300585746765,
0.7886635661125183,
-0.47372138500213623,
0.5811648368835449,
0.4182053804397583,
-0.3032822608947754,
0.34114915132522583,
-0.5694148540496826,
0.07681655138731003,
0.056613605469465256,
0.3263532817363739,
-0.5572670102119446,
-0.13326548039913177,
0.6038596034049988,
-0.6272864937782288,
0.40529313683509827,
0.06978828459978104,
-0.8253259062767029,
-0.674176037311554,
-0.7339104413986206,
0.03358154371380806,
0.8318043947219849,
-0.5760012269020081,
0.7522569298744202,
0.2880295515060425,
0.3133380711078644,
-0.8611541390419006,
-0.6286325454711914,
-0.16621750593185425,
-0.11670780926942825,
-0.8497135043144226,
0.2540919780731201,
-0.28623166680336,
-0.17392422258853912,
-0.05086861550807953,
-0.4017329514026642,
-0.017881495878100395,
0.1964530497789383,
0.28167352080345154,
0.5257843732833862,
-0.151888906955719,
-0.3415391445159912,
0.05974074825644493,
-0.07677849382162094,
-0.029276637360453606,
-0.2134331911802292,
0.5444811582565308,
-0.26451337337493896,
-0.5304203629493713,
-0.450874924659729,
0.061744868755340576,
0.5298627018928528,
-0.29796454310417175,
1.0307527780532837,
0.6741677522659302,
-0.5559446215629578,
0.09773978590965271,
-0.740314781665802,
0.16924361884593964,
-0.5856143236160278,
0.2013104408979416,
-0.5013776421546936,
-0.7034099102020264,
0.6347072720527649,
0.22975222766399384,
0.36293256282806396,
0.6395965218544006,
0.7149648070335388,
0.15204831957817078,
1.023380994796753,
0.4878804087638855,
-0.018081845715641975,
0.5069289803504944,
-0.5890378355979919,
0.10913386940956116,
-0.9525644779205322,
-0.6152223348617554,
-0.5332381725311279,
0.029723506420850754,
-0.48912009596824646,
-0.6884637475013733,
0.3464725613594055,
0.7229961156845093,
-0.6619289517402649,
0.6505811810493469,
-0.9173182249069214,
0.27266788482666016,
0.5728206634521484,
0.0021900159772485495,
0.20039208233356476,
0.19153670966625214,
-0.3252253234386444,
0.23998573422431946,
-0.38609665632247925,
-0.6635753512382507,
1.1732755899429321,
0.29217177629470825,
0.7217585444450378,
0.2183268517255783,
0.8051772713661194,
-0.03722689673304558,
-0.04924909770488739,
-0.3929137885570526,
0.7555983066558838,
0.3229546844959259,
-0.6195501089096069,
-0.4056583344936371,
-0.2702398896217346,
-1.1589022874832153,
0.5401489734649658,
-0.21968187391757965,
-1.2808725833892822,
0.33790016174316406,
0.04918888583779335,
-0.25557273626327515,
0.5064510107040405,
-0.6193029880523682,
0.9879069924354553,
-0.1781834214925766,
-0.48030540347099304,
0.011693351902067661,
-0.4522775709629059,
0.34986552596092224,
0.0537029393017292,
0.13427717983722687,
-0.37189728021621704,
-0.31446847319602966,
0.8716791272163391,
-1.175255298614502,
0.6253870129585266,
-0.03182254359126091,
-0.30340084433555603,
0.605300784111023,
-0.05094356834888458,
0.605627179145813,
-0.1565009504556656,
-0.233514204621315,
0.44104650616645813,
0.16018043458461761,
-0.5037593841552734,
-0.6518056988716125,
0.7392551898956299,
-1.1820844411849976,
-0.7663214206695557,
-0.5828835964202881,
-0.41570720076560974,
-0.08179790526628494,
0.2963220775127411,
0.27737918496131897,
0.180501326918602,
0.2823813557624817,
-0.24763838946819305,
0.7186239361763,
-0.4075638949871063,
0.3710338771343231,
0.41687822341918945,
-0.43009892106056213,
-0.42896923422813416,
1.074780821800232,
0.21025778353214264,
-0.03582223504781723,
0.36080941557884216,
0.20350506901741028,
-0.19006384909152985,
-0.4582754075527191,
-0.749178946018219,
0.3920333683490753,
-0.7834034562110901,
-0.41080284118652344,
-0.8622725009918213,
-0.5166676640510559,
-0.6727126836776733,
-0.30314701795578003,
-0.4708303213119507,
-0.5963090062141418,
-0.7020942568778992,
0.047643598169088364,
1.0740971565246582,
0.47546154260635376,
-0.25860533118247986,
-0.10954590141773224,
-0.7377594709396362,
0.3500716984272003,
0.3911019265651703,
0.19471827149391174,
0.38254645466804504,
-0.5830137133598328,
-0.2658925950527191,
-0.19453312456607819,
-0.6302369832992554,
-0.9626795053482056,
0.656622052192688,
-0.24297215044498444,
0.5863399505615234,
0.11785727739334106,
-0.03424426168203354,
0.8527209758758545,
-0.6409456729888916,
1.0612314939498901,
0.624073326587677,
-0.8123589158058167,
0.526576578617096,
-0.1559680700302124,
0.36811119318008423,
0.29799216985702515,
0.3660292625427246,
-0.4294589161872864,
-0.16747161746025085,
-0.4828266501426697,
-0.8166285753250122,
0.8018233776092529,
0.3313184976577759,
-0.023947956040501595,
0.16967962682247162,
0.15278635919094086,
0.03397320210933685,
0.06303215771913528,
-0.5553436279296875,
-0.9031288623809814,
-0.3866737484931946,
-0.28600776195526123,
0.31335440278053284,
0.01878279820084572,
-0.020882992073893547,
-0.5173047780990601,
0.8352195024490356,
0.023403992876410484,
0.45984265208244324,
0.2924436330795288,
-0.08572744578123093,
-0.030779045075178146,
0.11170421540737152,
0.5351252555847168,
0.614434540271759,
-0.20691978931427002,
-0.15099455416202545,
0.4712293744087219,
-0.8419507145881653,
0.2863059639930725,
0.38567423820495605,
-0.3179607689380646,
-0.14473119378089905,
0.5120462775230408,
0.9097408652305603,
-0.016466891393065453,
-0.594965934753418,
0.6242661476135254,
0.09031213074922562,
-0.23129884898662567,
-0.4699176251888275,
0.20567835867404938,
0.3046858012676239,
0.371823251247406,
0.4633761942386627,
0.0929047167301178,
0.19583608210086823,
-0.30980363488197327,
-0.04520289972424507,
0.43613794445991516,
-0.0441722609102726,
-0.18869271874427795,
0.7373226284980774,
-0.22989408671855927,
-0.3887058198451996,
0.1650390326976776,
-0.3586522340774536,
-0.6191422343254089,
0.8227669596672058,
0.5582647919654846,
0.7128124237060547,
0.07278706133365631,
-0.15373316407203674,
0.5827835202217102,
0.17878054082393646,
-0.03635307773947716,
0.10105866938829422,
-0.04598545655608177,
-0.4736992418766022,
-0.12561067938804626,
-0.9195213317871094,
-0.2996038794517517,
-0.1957545131444931,
-0.35305118560791016,
0.581593930721283,
-0.5282684564590454,
-0.03390121087431908,
-0.17476986348628998,
0.5744516253471375,
-0.9711872935295105,
-0.169600248336792,
0.2870403230190277,
1.3664039373397827,
-0.25359949469566345,
1.0846431255340576,
0.4513493478298187,
-0.740601658821106,
-1.0623517036437988,
-0.23470865190029144,
0.364584743976593,
-0.9544541239738464,
0.609978199005127,
-0.0257478766143322,
-0.08227275311946869,
-0.17104178667068481,
-0.4570936858654022,
-1.1224170923233032,
1.5143054723739624,
0.2202426940202713,
-0.4060244858264923,
-0.3751371204853058,
-0.0009362050914205611,
0.40405943989753723,
-0.09983280301094055,
0.5960895419120789,
0.6578018665313721,
0.6923763155937195,
0.10248786211013794,
-1.44315767288208,
0.2764217257499695,
-0.6122291684150696,
0.008288435637950897,
-0.2031274437904358,
-0.9905531406402588,
0.993083655834198,
-0.13548631966114044,
0.09319703280925751,
0.35713088512420654,
0.8135020136833191,
0.9066622257232666,
0.29182156920433044,
0.15993262827396393,
0.6050844192504883,
0.9279060363769531,
0.17284861207008362,
1.383658766746521,
-0.23243524134159088,
0.4660203158855438,
0.7242385149002075,
-0.07815124839544296,
0.5785858631134033,
0.2250651717185974,
-0.644572377204895,
0.5545419454574585,
0.7203876972198486,
-0.21041430532932281,
0.44233259558677673,
0.5919173359870911,
-0.16128142178058624,
0.026482271030545235,
0.1234779953956604,
-0.7701237201690674,
-0.12390393018722534,
0.2800079882144928,
0.12242239713668823,
-0.05724053829908371,
0.030247798189520836,
0.23850880563259125,
-0.19023770093917847,
-0.4732230305671692,
0.6407027244567871,
0.14133265614509583,
-0.29081621766090393,
1.1523828506469727,
-0.08474847674369812,
1.1479436159133911,
-0.7802414298057556,
-0.08760425448417664,
-0.31672969460487366,
0.01563359797000885,
-0.48347511887550354,
-0.7363004088401794,
-0.1325240582227707,
0.15339693427085876,
-0.09139326214790344,
0.1785828024148941,
0.8411692380905151,
-0.09524277597665787,
-0.7808407545089722,
0.4666169285774231,
0.38255438208580017,
0.4697135388851166,
0.36458081007003784,
-0.9781163334846497,
0.47425588965415955,
-0.03816340118646622,
-0.7808268070220947,
0.4464246928691864,
0.5401467084884644,
-0.044062234461307526,
0.8061975836753845,
0.6626147031784058,
0.08862854540348053,
0.5428662300109863,
-0.20778495073318481,
0.9768337607383728,
-0.582899808883667,
-0.04625678434967995,
-0.9014881253242493,
0.614909291267395,
-0.2342912256717682,
-0.3229069411754608,
1.1952414512634277,
0.6959079504013062,
0.7697808742523193,
-0.07639411836862564,
0.6364828944206238,
-0.1361069679260254,
0.2539307177066803,
-0.2619851231575012,
0.989983320236206,
-0.9694010615348816,
0.10290072858333588,
-0.45992526412010193,
-0.9202479124069214,
-0.5064272880554199,
0.9883466362953186,
-0.2050519734621048,
0.02348461002111435,
0.4527231454849243,
1.0652706623077393,
0.1393236368894577,
-0.24892616271972656,
0.19464048743247986,
-0.0709628015756607,
0.3450698256492615,
0.7745200991630554,
0.5907761454582214,
-0.7598761916160583,
0.6915110349655151,
-0.42771589756011963,
-0.13970841467380524,
-0.4103148877620697,
-0.6210271120071411,
-1.1191496849060059,
-0.43807253241539,
-0.41038596630096436,
-0.6997077465057373,
-0.20922617614269257,
1.4478682279586792,
0.6602532267570496,
-0.7525230050086975,
-0.2889515459537506,
0.11015969514846802,
0.5874443650245667,
-0.25269049406051636,
-0.19793353974819183,
0.8207769393920898,
0.10360447317361832,
-0.876808226108551,
0.26572945713996887,
0.1612991988658905,
0.39583131670951843,
-0.2710563540458679,
-0.7408955097198486,
-0.20327012240886688,
0.312026709318161,
0.47640642523765564,
0.6313661336898804,
-0.8074254989624023,
-0.03890303522348404,
0.023413579910993576,
-0.33501800894737244,
0.14903868734836578,
0.20153534412384033,
-0.5906188488006592,
0.08055920153856277,
0.523665726184845,
0.4825688898563385,
0.593858540058136,
-0.518570601940155,
0.06811779737472534,
-0.22370602190494537,
0.14802014827728271,
-0.04944535344839096,
0.5358413457870483,
0.1749226450920105,
-0.36111411452293396,
0.6805023550987244,
0.16240178048610687,
-0.44394782185554504,
-0.988377034664154,
-0.20766396820545197,
-1.0959265232086182,
-0.22721357643604279,
1.1066218614578247,
-0.04741276800632477,
-0.6954355835914612,
0.15707510709762573,
-0.4528515040874481,
0.33388960361480713,
-0.46651574969291687,
0.3493836224079132,
0.5058930516242981,
-0.23820428550243378,
-0.03549865260720253,
-0.5733409523963928,
0.46026334166526794,
0.0810014009475708,
-0.866650402545929,
0.040518589317798615,
0.486260324716568,
0.2684937119483948,
0.6500445008277893,
0.9196469783782959,
-0.3236676752567291,
0.3614354431629181,
0.2647627890110016,
0.49029070138931274,
-0.3812556862831116,
0.052574604749679565,
-0.34653761982917786,
-0.07446977496147156,
-0.030455823987722397,
-0.15768329799175262
] |
Yntec/AbsoluteReality
|
Yntec
| 2023-10-03T10:40:59Z | 8,027 | 1 |
diffusers
|
[
"diffusers",
"General",
"LandScapes",
"Photorealistic",
"Lykon",
"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-03T09:44:25Z |
---
license: creativeml-openrail-m
library_name: diffusers
pipeline_tag: text-to-image
tags:
- General
- LandScapes
- Photorealistic
- Lykon
- stable-diffusion
- stable-diffusion-diffusers
- diffusers
- text-to-image
---
# Absolute Reality
v1.8.1 version of this model. Original page: https://civitai.com/models/81458?modelVersionId=132760
Sample and prompt:


Full body picture of a pretty cute girl making cake in school, detailed brown eyes, short smile, beautiful and aesthetic, intricate, neat hair, highly detailed, detailed face, smooth, sharp focus, chiaroscuro, magazine ad, 1949, 2D Game Art, anime on canvas, rossdraws, clay mann, CHIBI ART, light novel cover art
|
[
-0.32827118039131165,
-0.8920232057571411,
0.46271654963493347,
0.45039740204811096,
-0.20902441442012787,
-0.2529574930667877,
0.5232939124107361,
-0.5115363001823425,
0.7359723448753357,
0.555528461933136,
-0.8874878883361816,
-0.5801113843917847,
-0.33451274037361145,
-0.2979843020439148,
-0.632699191570282,
0.5821879506111145,
0.008281323127448559,
0.21651606261730194,
-0.4592704474925995,
0.03844457492232323,
-0.5318067669868469,
-0.3916848301887512,
-0.5855463743209839,
-0.2735425531864166,
0.2559419572353363,
0.6870346665382385,
0.5109035968780518,
0.5286165475845337,
0.42134761810302734,
0.2557777762413025,
-0.1571359783411026,
-0.30809131264686584,
-0.4590749144554138,
-0.20121687650680542,
-0.21720512211322784,
-0.40561267733573914,
-1.028894066810608,
0.3372078835964203,
0.632762610912323,
0.5876269340515137,
-0.29504910111427307,
0.3583211898803711,
-0.05127199739217758,
0.621036171913147,
-0.4151132106781006,
-0.013556788675487041,
-0.09451194852590561,
0.3072109818458557,
-0.018135538324713707,
0.4002755880355835,
-0.2632727324962616,
-0.33033037185668945,
-0.15210643410682678,
-1.0160398483276367,
0.21535813808441162,
-0.2587459981441498,
1.5586141347885132,
0.06597317010164261,
-0.61641526222229,
0.0343770869076252,
-0.6328595280647278,
0.3985724151134491,
-0.4128517806529999,
0.6773324012756348,
0.41526177525520325,
0.5698704719543457,
-0.31599161028862,
-0.9588944315910339,
-0.6067456603050232,
0.2806418240070343,
0.21106913685798645,
0.31734034419059753,
-0.5044430494308472,
-0.26149821281433105,
0.3127596974372864,
0.3442390561103821,
-0.7304503321647644,
-0.1439589560031891,
-0.7086249589920044,
0.2532220184803009,
0.6307951807975769,
0.10098861902952194,
0.5356090068817139,
0.17451123893260956,
-0.3100886940956116,
-0.15880733728408813,
-0.6246578097343445,
0.17324522137641907,
0.24290715157985687,
-0.12816275656223297,
-0.6224663257598877,
0.5445590615272522,
-0.21389681100845337,
0.666218101978302,
0.20543192327022552,
-0.03839728236198425,
0.29976314306259155,
-0.20055848360061646,
-0.4934719502925873,
-0.14973507821559906,
0.5939395427703857,
0.5878666639328003,
0.07496596872806549,
0.4087364375591278,
0.21989381313323975,
0.08948235958814621,
0.5138424038887024,
-1.3032104969024658,
-0.3582087457180023,
0.3095373809337616,
-0.28698551654815674,
-0.6072538495063782,
0.48310473561286926,
-0.7242787480354309,
0.05273071676492691,
-0.268998384475708,
0.22713366150856018,
-0.3870052099227905,
-0.6929861903190613,
0.308831125497818,
0.3801153898239136,
0.3007114827632904,
0.3376472294330597,
-0.43238312005996704,
0.26329657435417175,
0.5648196935653687,
0.8232352137565613,
0.42204606533050537,
0.29744741320610046,
0.020507389679551125,
-0.0389690026640892,
-0.6979886293411255,
0.9073965549468994,
-0.19564540684223175,
-0.6346593499183655,
-0.2945052981376648,
0.2759079039096832,
0.3366311490535736,
-0.6268519163131714,
1.0200538635253906,
-0.27473998069763184,
0.05506931245326996,
-0.5041056871414185,
-0.4298900365829468,
-0.4267052412033081,
0.12749382853507996,
-0.6784303784370422,
0.5731776356697083,
0.14487864077091217,
-0.4443786144256592,
0.522678792476654,
-0.7067285180091858,
-0.16642652451992035,
0.06965059041976929,
-0.07965312898159027,
-0.671681821346283,
0.3472491502761841,
-0.2265935093164444,
0.18635869026184082,
0.09705974906682968,
0.06623463332653046,
-0.81864333152771,
-0.36086374521255493,
0.17935453355312347,
-0.20419494807720184,
1.1092779636383057,
0.43930408358573914,
-0.15981259942054749,
0.04487251490354538,
-0.9944166541099548,
0.20662635564804077,
0.6858189702033997,
0.2797156572341919,
-0.09631012380123138,
-0.2927042543888092,
0.0014968515606597066,
0.5866084694862366,
0.4729953408241272,
-0.5892539620399475,
0.4672430455684662,
-0.07552315294742584,
-0.07237155735492706,
0.6799280643463135,
0.03775830566883087,
-0.029540948569774628,
-0.5785982608795166,
0.6772842407226562,
0.2557457983493805,
0.5157020092010498,
-0.16529981791973114,
-0.4164058268070221,
-0.9487687945365906,
-0.7908074259757996,
0.4704357981681824,
0.4847559928894043,
-0.239958256483078,
0.7626391053199768,
-0.21233104169368744,
-0.9928513765335083,
-0.604983925819397,
-0.11344940960407257,
0.3604218363761902,
0.5715973377227783,
-0.17218364775180817,
-0.5373129844665527,
-0.726905882358551,
-1.5060408115386963,
0.16168469190597534,
-0.21047548949718475,
-0.12983936071395874,
0.07058565318584442,
0.4975071847438812,
0.11507287621498108,
0.8693891763687134,
-0.5820364356040955,
-0.2735391855239868,
-0.0928979441523552,
-0.18284690380096436,
0.6330529451370239,
0.674598753452301,
1.0025495290756226,
-1.2105612754821777,
-0.6784212589263916,
-0.38872867822647095,
-1.1364587545394897,
-0.11166742444038391,
0.2925052344799042,
-0.5870898962020874,
-0.30956265330314636,
0.12957324087619781,
-0.7583072185516357,
0.9018399715423584,
0.20605720579624176,
-1.0074450969696045,
0.7696657180786133,
-0.21903908252716064,
0.5494425296783447,
-1.0124269723892212,
0.15233872830867767,
0.6557454466819763,
-0.45523592829704285,
-0.4365435838699341,
0.9558146595954895,
-0.03704576566815376,
-0.08959447592496872,
-0.9015248417854309,
0.9531664252281189,
-0.7100328803062439,
0.30755287408828735,
-0.3651486337184906,
-0.06108729913830757,
0.39176782965660095,
0.17638927698135376,
-0.01425971556454897,
0.5692716240882874,
0.7684273719787598,
-0.5665435194969177,
0.4970408082008362,
0.43182021379470825,
-0.46143481135368347,
1.0833719968795776,
-1.0512555837631226,
0.06804565340280533,
-0.07882349193096161,
0.16418658196926117,
-0.9793936610221863,
-0.7343647480010986,
0.5384442806243896,
-0.6860237717628479,
0.10027259588241577,
0.05807187408208847,
-0.6901083588600159,
-0.5827069878578186,
-0.2641598582267761,
0.12433595210313797,
0.7718821167945862,
-0.4971137046813965,
0.2698673903942108,
0.3597072958946228,
0.18996751308441162,
-0.06283361464738846,
-0.8519797921180725,
-0.044780295342206955,
-0.13329166173934937,
-0.6249668598175049,
0.40974655747413635,
-0.388957679271698,
-0.6109980940818787,
-0.06347353756427765,
-0.2953468859195709,
-0.5385599732398987,
-0.11958929896354675,
0.451951265335083,
0.6138550043106079,
-0.2029421478509903,
-0.6074701547622681,
0.10541298985481262,
0.2095651477575302,
0.04934987798333168,
0.2913299798965454,
0.4377242624759674,
-0.2151903361082077,
-0.4901484549045563,
-1.0618401765823364,
0.32797151803970337,
0.743423342704773,
0.08675213903188705,
0.8704063892364502,
0.005810019560158253,
-0.8835349678993225,
0.13054536283016205,
-0.4775017201900482,
-0.13399964570999146,
-0.4977889657020569,
0.34496214985847473,
-0.9093179702758789,
-0.15263593196868896,
0.6782736778259277,
0.3486517369747162,
-0.12153250724077225,
0.32220131158828735,
0.3433177173137665,
0.111891008913517,
1.3821148872375488,
0.7394790053367615,
0.26224812865257263,
0.3744247853755951,
-0.5899649262428284,
-0.080231212079525,
-0.46763843297958374,
-0.344917893409729,
-0.28770923614501953,
-0.25388312339782715,
-0.21849429607391357,
-0.1904832273721695,
0.17169061303138733,
0.3590298891067505,
-0.6141270995140076,
0.6073166131973267,
-0.6173317432403564,
0.6990459561347961,
0.33941295742988586,
0.7900094389915466,
0.24729138612747192,
-0.00690073799341917,
0.0095664719119668,
-0.4951976239681244,
-0.5784615874290466,
-0.6532633900642395,
0.7241528630256653,
0.18970006704330444,
0.13975386321544647,
0.4779934287071228,
0.3691709637641907,
-0.06651116907596588,
0.28286218643188477,
-0.6921411156654358,
0.8790191411972046,
-0.12273776531219482,
-1.2507541179656982,
0.41935423016548157,
-0.2507331967353821,
-0.4949573874473572,
0.09998906403779984,
-0.22768250107765198,
-0.5007206201553345,
0.29926609992980957,
0.14376971125602722,
-0.4432339072227478,
0.4149296283721924,
-0.800801157951355,
1.1444668769836426,
-0.21807827055454254,
-0.7133476734161377,
0.12298835813999176,
-0.28190332651138306,
0.5293081402778625,
0.10428276658058167,
0.16164153814315796,
-0.006572172045707703,
-0.053364142775535583,
0.31825289130210876,
-0.45834487676620483,
0.9116652607917786,
-0.14029978215694427,
-0.013946061953902245,
0.35462358593940735,
0.5019403100013733,
0.1250714659690857,
0.24390308558940887,
-0.2459883689880371,
-0.03382372111082077,
-0.10822943598031998,
-0.722148597240448,
-0.5180583596229553,
1.082821249961853,
-0.6038927435874939,
-0.5635408163070679,
-0.7339311242103577,
-0.045083124190568924,
0.041306350380182266,
0.37309688329696655,
0.5954646468162537,
0.5597651600837708,
-0.6406554579734802,
0.17283818125724792,
0.8799424171447754,
0.16087858378887177,
0.07912909984588623,
0.5068080425262451,
-0.8394204378128052,
-0.14307796955108643,
0.8495441675186157,
0.23045720160007477,
0.25589171051979065,
-0.005710453726351261,
-0.04833346977829933,
0.008223059587180614,
-0.1453309804201126,
-0.40346837043762207,
0.49655839800834656,
-0.45094963908195496,
-0.0651407316327095,
-0.4663226902484894,
-0.3536999821662903,
-0.5461571216583252,
-0.3246501386165619,
-0.7101485133171082,
-0.2929162085056305,
-0.6815423965454102,
-0.28882718086242676,
0.2504582703113556,
0.704957902431488,
0.056611184030771255,
0.17509825527668,
-0.49261102080345154,
0.3577321469783783,
0.4267328083515167,
0.597373366355896,
-0.21066145598888397,
-0.8295275568962097,
0.13461636006832123,
0.281939297914505,
-0.7983328700065613,
-0.916201114654541,
0.5469543933868408,
0.2380998134613037,
0.49692219495773315,
0.6390981674194336,
0.0004189438477624208,
0.7176147699356079,
-0.29079487919807434,
0.7747952938079834,
0.3387839198112488,
-0.6735754013061523,
0.6260667443275452,
-0.4420844316482544,
0.6686870455741882,
0.856934130191803,
0.74947589635849,
-0.3479020893573761,
0.05682125687599182,
-1.0914223194122314,
-0.813900351524353,
0.464178204536438,
0.26690244674682617,
0.22043287754058838,
0.2970392405986786,
0.5753123760223389,
0.026373514905571938,
0.3950275182723999,
-0.7317137122154236,
-0.6230288743972778,
-0.4934804141521454,
-0.39190080761909485,
0.4980802536010742,
-0.17594769597053528,
-0.04144229739904404,
-0.7473418116569519,
1.061942458152771,
0.1653093844652176,
0.41161835193634033,
0.2060459405183792,
0.4248283803462982,
-0.2871779203414917,
-0.08754067122936249,
0.6352787017822266,
1.0830544233322144,
-0.5569316744804382,
-0.27009978890419006,
-0.2544810473918915,
-0.4533475637435913,
0.394562691450119,
-0.05072237551212311,
-0.42917874455451965,
0.23670019209384918,
0.1445198953151703,
1.0475236177444458,
0.2720797657966614,
-0.5981523990631104,
0.748828113079071,
-0.2272575944662094,
-0.050576601177453995,
-0.8208196759223938,
0.2886265218257904,
-0.0009981279727071524,
0.17410063743591309,
0.24539999663829803,
0.07400178164243698,
0.4314444363117218,
-0.8931403160095215,
0.40590953826904297,
0.1871279925107956,
-0.85146164894104,
-0.7708188891410828,
0.9972249269485474,
-0.2469009906053543,
-0.5229250192642212,
0.4837673008441925,
-0.43757498264312744,
-0.5002517700195312,
0.9330646395683289,
0.7673601508140564,
0.8400213718414307,
-0.3357560336589813,
0.6284964680671692,
0.8140419721603394,
-0.18485118448734283,
-0.13496237993240356,
0.38395631313323975,
0.3739401400089264,
-0.34094640612602234,
0.1509556919336319,
-0.5656143426895142,
-0.39870399236679077,
0.24751318991184235,
-0.6136772632598877,
1.04280424118042,
-1.0323185920715332,
0.0012678663479164243,
0.14347027242183685,
-0.003376580774784088,
-0.4806932806968689,
0.7507346272468567,
0.10306829959154129,
1.3564180135726929,
-0.7539815902709961,
0.8737566471099854,
1.0912081003189087,
-0.7628611922264099,
-0.791926920413971,
-0.24177755415439606,
0.4795825481414795,
-0.4350254237651825,
0.4321797788143158,
0.3386687636375427,
0.1268465220928192,
-0.20444777607917786,
-1.189239740371704,
-0.7048597931861877,
0.8484271764755249,
0.48210301995277405,
-0.928888738155365,
-0.3851926326751709,
-0.40422844886779785,
0.47696569561958313,
-0.6819717288017273,
0.4406697452068329,
0.23368485271930695,
0.4133526086807251,
0.85358065366745,
-0.785174548625946,
-0.35974201560020447,
-0.9831483960151672,
-0.006797084119170904,
-0.14753003418445587,
-1.130528450012207,
0.8182821869850159,
-0.1474802941083908,
-0.14959664642810822,
0.48245885968208313,
1.196773886680603,
0.6845123767852783,
0.21708853542804718,
0.5798972249031067,
0.7654446959495544,
0.19816921651363373,
-0.18605782091617584,
1.0283478498458862,
-0.13822323083877563,
0.15200018882751465,
1.2293415069580078,
-0.24736319482326508,
0.49897491931915283,
0.0072898585349321365,
-0.2903694808483124,
0.4482622742652893,
0.9186503291130066,
-0.10492405295372009,
0.6272295117378235,
0.06975691020488739,
-0.3028348684310913,
-0.4656270444393158,
-0.22838899493217468,
-0.4651884138584137,
0.3414149880409241,
0.012526181526482105,
0.008571657352149487,
0.003733167890459299,
0.17095354199409485,
0.3627397418022156,
0.5371806621551514,
-0.31753700971603394,
0.5510746836662292,
0.14510081708431244,
-0.2669996917247772,
0.4817977547645569,
-0.222638800740242,
0.6950972676277161,
-0.7126912474632263,
-0.43474531173706055,
-0.33968913555145264,
0.21107187867164612,
-0.25200098752975464,
-0.8183329701423645,
0.3247961699962616,
-0.02950371243059635,
-0.25788936018943787,
-0.09875810146331787,
0.5974282622337341,
-0.08070673048496246,
-1.3405042886734009,
0.1668015867471695,
-0.0745435431599617,
0.2645612359046936,
-0.05663183704018593,
-1.0708117485046387,
0.3742538392543793,
0.023191524669528008,
-0.30459824204444885,
-0.010279901325702667,
0.36483025550842285,
0.21887333691120148,
0.638155996799469,
0.13257254660129547,
0.23762118816375732,
-0.1257181465625763,
-0.31290701031684875,
0.5201572179794312,
-0.47708892822265625,
-0.5747445225715637,
-0.5561150312423706,
0.6574883460998535,
-0.43143582344055176,
-0.5555751323699951,
0.8346789479255676,
0.919931173324585,
0.992422342300415,
-0.25921207666397095,
0.5835076570510864,
-0.2688654363155365,
0.6791960597038269,
-0.20976850390434265,
0.9861952662467957,
-1.2791048288345337,
-0.21417377889156342,
-0.41873064637184143,
-0.9899002909660339,
-0.2286214381456375,
0.9407562017440796,
0.23451124131679535,
0.22726812958717346,
0.10255315154790878,
0.7542216181755066,
-0.4930139482021332,
0.10772410780191422,
0.31451597809791565,
0.4693968892097473,
0.3931463062763214,
0.16616855561733246,
0.26002582907676697,
-0.916629433631897,
-0.11157479137182236,
-0.5971250534057617,
-0.5678318738937378,
-0.24638594686985016,
-0.753429114818573,
-0.6222625970840454,
-0.7474203705787659,
-0.5990214943885803,
-0.6896724700927734,
0.07629760354757309,
1.1898092031478882,
1.1841572523117065,
-0.8768067359924316,
-0.29963213205337524,
0.1411910057067871,
-0.11597257107496262,
-0.07590796053409576,
-0.2937248945236206,
-0.07352699339389801,
0.8553043603897095,
-0.9952943325042725,
0.2930160462856293,
-0.3159329891204834,
0.5375299453735352,
-0.4426129460334778,
0.3132230043411255,
-0.5308066606521606,
0.29852941632270813,
0.3672822117805481,
0.5266623497009277,
-0.21619530022144318,
-0.349854439496994,
0.047092027962207794,
-0.12451224774122238,
0.3906939625740051,
0.3526010811328888,
-0.33743977546691895,
0.22125543653964996,
0.25889402627944946,
-0.11019240319728851,
0.5207749009132385,
-0.12654775381088257,
0.31933364272117615,
-0.2604517638683319,
0.5194032192230225,
0.12658575177192688,
0.396108478307724,
0.4448227286338806,
-0.37566810846328735,
0.6769204139709473,
0.5358455777168274,
-0.4664769470691681,
-1.195401906967163,
0.33806857466697693,
-1.2594366073608398,
-0.4271325170993805,
0.6330880522727966,
0.06905360519886017,
-0.9160095453262329,
0.5045357942581177,
-0.3369152545928955,
0.3293837010860443,
-0.29743021726608276,
0.548355221748352,
0.8369995951652527,
0.020533496513962746,
-0.2558966279029846,
-0.7263584136962891,
-0.09644021093845367,
0.09703896939754486,
-0.8003149032592773,
-0.358758807182312,
0.73719722032547,
0.49016231298446655,
0.13796642422676086,
0.5544604063034058,
-0.5624740719795227,
0.3660661280155182,
0.18578708171844482,
0.7076352834701538,
-0.06988080590963364,
-0.7454147934913635,
-0.030891483649611473,
0.2011205106973648,
-0.16570287942886353,
-0.04987933859229088
] |
hyunseoki/ko-en-llama2-13b
|
hyunseoki
| 2023-10-03T18:49:04Z | 8,015 | 24 |
transformers
|
[
"transformers",
"pytorch",
"llama",
"text-generation",
"ko",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-10-02T13:05:10Z |
---
language:
- ko
library_name: transformers
pipeline_tag: text-generation
---
**Model Developers** HyunseokLee, TaeyoungKim - (kaist alinlab, omnious.ai)
**Input** Models input text only.
**Output** Models generate text only.
**Model Architecture**
ko-en-llama2-13b is an auto-regressive language model based on the LLaMA2 transformer architecture.
**Base Model**
Llama-2-13B
**Training Dataset**
Open dataset wiki and AIhub (English + Korean).
**Training Objective**
We trained the model to learn Korean corpus while maintaining Llama's English ability.
(still training)
|
[
-0.020562097430229187,
-0.8504334688186646,
0.49165117740631104,
0.5513644218444824,
-0.2615724503993988,
0.30971860885620117,
-0.04526156187057495,
-0.47955217957496643,
0.19662269949913025,
0.666053056716919,
-0.5634400844573975,
-0.45950859785079956,
-0.6060871481895447,
0.1694761961698532,
-0.31923484802246094,
0.895492434501648,
-0.24378684163093567,
0.280403733253479,
0.062027525156736374,
0.15269017219543457,
-0.6773519515991211,
-0.3078598380088806,
-0.6262179017066956,
-0.4846382141113281,
0.26299554109573364,
0.7785770297050476,
0.7082705497741699,
0.9597240090370178,
0.4600638747215271,
0.27402496337890625,
0.0664396807551384,
-0.1941145360469818,
-0.6486408114433289,
0.2599673569202423,
0.0025278280954807997,
-0.7566106915473938,
-0.41357895731925964,
-0.24963907897472382,
0.548159122467041,
0.19859984517097473,
-0.21710780262947083,
0.4559415876865387,
-0.1841314136981964,
0.5322471857070923,
-0.37263381481170654,
0.4490528106689453,
-0.724639892578125,
-0.21517413854599,
-0.22874122858047485,
0.4593517780303955,
-0.4692511558532715,
-0.3081735074520111,
-0.30505886673927307,
-0.37535420060157776,
-0.2037753164768219,
0.05312706157565117,
1.1651251316070557,
0.522789716720581,
-0.5793584585189819,
-0.4336128830909729,
-0.6207160949707031,
0.6154602766036987,
-0.7205753922462463,
0.5598470568656921,
0.695828378200531,
0.2788080871105194,
-0.18691518902778625,
-0.7033545970916748,
-0.4773474931716919,
-0.29757460951805115,
-0.01865449920296669,
0.19371429085731506,
-0.0400126576423645,
-0.1759691685438156,
-0.18407516181468964,
0.2699246406555176,
-0.5578688979148865,
0.6275845170021057,
-0.7480201721191406,
-0.13061736524105072,
0.8520345091819763,
0.18159155547618866,
0.2645026743412018,
-0.38075849413871765,
-0.26346123218536377,
-0.11841899156570435,
-0.6398651599884033,
-0.0985235795378685,
0.48100951313972473,
0.17993804812431335,
-0.35480087995529175,
0.9680537581443787,
-0.2045217752456665,
0.3549690246582031,
0.21676529943943024,
-0.43068283796310425,
0.3302770256996155,
-0.0843808576464653,
-0.4285276234149933,
0.14428028464317322,
0.8866860866546631,
0.13653965294361115,
0.0882207527756691,
-0.2765534222126007,
-0.228196382522583,
0.2938556373119354,
0.2007928341627121,
-0.5029948949813843,
-0.1821003407239914,
0.1475447118282318,
-0.8593942523002625,
-0.7520482540130615,
-0.20819243788719177,
-0.833901047706604,
-0.17433826625347137,
-0.08993607759475708,
0.4613126814365387,
-0.14582179486751556,
-0.5866377949714661,
-0.004790866747498512,
0.18633373081684113,
0.22298116981983185,
-0.11264398694038391,
-0.7298867106437683,
0.4071279466152191,
0.24194495379924774,
0.5799535512924194,
-0.15074647963047028,
-0.37165316939353943,
0.18853354454040527,
-0.01570749282836914,
-0.5383493304252625,
0.81648850440979,
-0.3911234438419342,
-0.48767754435539246,
0.017221882939338684,
0.25961148738861084,
-0.14651140570640564,
-0.5589786767959595,
0.6083806753158569,
-0.7252200245857239,
0.29741647839546204,
0.2022024244070053,
-0.49116671085357666,
-0.45871877670288086,
-0.09769026190042496,
-0.8729919195175171,
1.4525822401046753,
0.35138505697250366,
-0.3435179889202118,
0.024232307448983192,
-0.7819845676422119,
-0.2592705488204956,
-0.11675027757883072,
0.11632756888866425,
-0.3847945034503937,
0.1797482818365097,
-0.1397351324558258,
0.31435146927833557,
-0.4243324398994446,
0.6039474606513977,
-0.009147553704679012,
-0.025576384738087654,
-0.023855620995163918,
-0.17586033046245575,
0.697314977645874,
0.39272060990333557,
-0.20389030873775482,
0.0001065092728822492,
-1.3988548517227173,
-0.14459025859832764,
0.7587791681289673,
-0.6488499045372009,
-0.1929503232240677,
0.04399413242936134,
0.25359317660331726,
0.32452696561813354,
0.488107830286026,
-0.5593284368515015,
0.36780500411987305,
-0.3439955711364746,
0.27650150656700134,
0.6706172823905945,
-0.1887182742357254,
0.660149872303009,
-0.1625659018754959,
0.82367342710495,
0.0021934041287750006,
-0.16631613671779633,
-0.2025388777256012,
-0.5295407176017761,
-1.107073187828064,
-0.16347135603427887,
0.32964327931404114,
1.0209519863128662,
-0.5403216481208801,
0.41104283928871155,
0.02026873081922531,
-0.9316563010215759,
-0.7858361005783081,
0.284525066614151,
0.47454679012298584,
0.42813533544540405,
0.1804286390542984,
0.13499006628990173,
-0.9387584328651428,
-1.1413096189498901,
0.13232368230819702,
-0.4948602020740509,
0.1579543799161911,
0.09539973735809326,
0.6219367980957031,
-0.5228369832038879,
0.5554357767105103,
-0.3122859001159668,
-0.0916941910982132,
-0.5141759514808655,
-0.021806713193655014,
0.29643526673316956,
0.4279913008213043,
0.48104527592658997,
-0.5014531016349792,
-0.6043828129768372,
-0.05251426249742508,
-0.7486018538475037,
-0.5868685841560364,
-0.14684267342090607,
-0.3822397291660309,
0.4587003290653229,
0.6242629289627075,
-0.8517007827758789,
0.49401289224624634,
0.8209874033927917,
-0.420139878988266,
0.4154702126979828,
0.14745232462882996,
-0.19992737472057343,
-1.4810941219329834,
-0.13851191103458405,
-0.41041460633277893,
-0.17212797701358795,
-0.5153040289878845,
0.10890515148639679,
0.14649023115634918,
0.0723833367228508,
-0.223558247089386,
0.6898072957992554,
-0.2932717204093933,
-0.009621155448257923,
-0.5000004172325134,
-0.05730680003762245,
-0.06142786517739296,
0.38391274213790894,
0.13913966715335846,
0.7407078146934509,
0.33851712942123413,
-0.7408498525619507,
0.3561963737010956,
0.6475402116775513,
-0.3842795491218567,
0.08712910115718842,
-0.8211774230003357,
0.23803025484085083,
-0.07398194819688797,
0.10139086842536926,
-1.2173280715942383,
-0.5951387286186218,
0.42622947692871094,
-0.5181681513786316,
0.24118751287460327,
0.17542120814323425,
-0.6585555672645569,
-0.6246855854988098,
-0.04710741341114044,
0.21999993920326233,
0.6657659411430359,
-0.5216839909553528,
0.6883783340454102,
0.3068506717681885,
-0.19870314002037048,
-0.4117429256439209,
-0.8405149579048157,
0.035981763154268265,
-0.08706431835889816,
-0.5015431046485901,
0.29021698236465454,
0.030259983614087105,
-0.27457019686698914,
0.0838385820388794,
0.2642628848552704,
-0.2890723645687103,
0.17271438241004944,
0.3664805293083191,
0.6371882557868958,
-0.4307047724723816,
0.17509646713733673,
0.3642807602882385,
-0.01271018199622631,
0.021178780123591423,
0.277707576751709,
0.9065970182418823,
0.08732004463672638,
-0.1722320020198822,
-0.6245794296264648,
0.14317497611045837,
0.412105917930603,
0.03727785125374794,
0.760053813457489,
0.41292938590049744,
-0.2899497151374817,
0.1459239423274994,
-0.5413703322410583,
0.2087562084197998,
-0.4876856505870819,
0.8594876527786255,
-0.6627668738365173,
-0.7127254605293274,
0.6527643203735352,
-0.09887033700942993,
0.062207724899053574,
0.8639330863952637,
1.11952543258667,
0.056465793401002884,
0.9721635580062866,
0.867950439453125,
-0.17810234427452087,
0.20946405827999115,
0.06830281019210815,
0.13380955159664154,
-0.7147221565246582,
-0.6058054566383362,
-0.5667693614959717,
-0.27097198367118835,
-0.6204940676689148,
-0.16014394164085388,
-0.23553116619586945,
0.43343910574913025,
-0.6224614977836609,
0.6948643326759338,
-0.4235323965549469,
0.33497154712677,
0.7315572500228882,
-0.16245992481708527,
0.14772655069828033,
-0.08276358246803284,
-0.05377683416008949,
0.1593223512172699,
-0.7227903008460999,
-0.8764966726303101,
1.3237217664718628,
0.6868451237678528,
1.0195279121398926,
0.09369359910488129,
0.6503239274024963,
0.10374172776937485,
0.16824477910995483,
-0.8073433637619019,
0.4234195351600647,
0.13573046028614044,
-0.764321506023407,
-0.06555105000734329,
0.025471409782767296,
-0.9043039083480835,
-0.04220474883913994,
0.048922162503004074,
-0.6782590746879578,
0.14015953242778778,
0.14544762670993805,
0.060434624552726746,
0.19531413912773132,
-0.7134062051773071,
0.6626627445220947,
-0.4583430886268616,
0.20155863463878632,
0.010651279240846634,
-0.5382809042930603,
0.5171774625778198,
-0.35714191198349,
0.1321258544921875,
-0.09407594054937363,
-0.18573078513145447,
0.641731858253479,
-0.008374602533876896,
0.8498925566673279,
-0.10190095752477646,
-0.22345586121082306,
0.4298754930496216,
0.38790181279182434,
0.5171933174133301,
-0.006580349523574114,
0.07622603327035904,
0.3069465160369873,
-0.24641895294189453,
-0.11886461079120636,
-0.20543190836906433,
0.5194811820983887,
-1.1344010829925537,
-0.493478924036026,
-0.23279787600040436,
-0.4684094488620758,
-0.09321235865354538,
0.25052112340927124,
0.38239485025405884,
-0.35126015543937683,
-0.27377721667289734,
0.06404497474431992,
0.2377769649028778,
-0.35647615790367126,
0.4622327387332916,
0.6951022744178772,
-0.6168487071990967,
-0.7399358749389648,
0.6299729347229004,
0.007518375292420387,
0.2717396318912506,
0.22424684464931488,
0.07937902957201004,
-0.3400912880897522,
-0.24264629185199738,
-0.6492081880569458,
0.42055195569992065,
-0.7297871708869934,
-0.568930983543396,
-0.6662725806236267,
-0.5719659924507141,
-0.6286513805389404,
0.08024179935455322,
-0.6699960231781006,
-0.5272510647773743,
-0.5297842025756836,
-0.42809179425239563,
0.27756574749946594,
1.2280137538909912,
-0.1415320485830307,
0.8351609706878662,
-0.6553546190261841,
0.36419883370399475,
0.12047915905714035,
0.29046833515167236,
-0.09457776695489883,
-0.788372814655304,
-0.2633332908153534,
-0.018120447173714638,
-0.4243599474430084,
-0.8594187498092651,
0.6100378036499023,
0.3121354877948761,
0.5809837579727173,
0.31339576840400696,
-0.3194490373134613,
0.4764012396335602,
-0.6931238174438477,
0.9057396650314331,
0.05924731492996216,
-0.8536556959152222,
0.6212983131408691,
-0.08779460191726685,
0.33000919222831726,
0.31366029381752014,
0.4102543592453003,
-0.3842405080795288,
-0.2835872173309326,
-0.5726425051689148,
-0.7008638381958008,
0.8988168835639954,
0.1963745653629303,
0.317434161901474,
-0.12443235516548157,
0.46309956908226013,
0.3457411825656891,
0.2269105464220047,
-1.1574718952178955,
-0.21779607236385345,
-0.4941996932029724,
-0.7261205911636353,
0.1771668791770935,
-0.7672805786132812,
0.23579992353916168,
-0.046490687876939774,
0.8965649008750916,
0.14383503794670105,
0.590085506439209,
-0.036804694682359695,
-0.23933282494544983,
-0.28494635224342346,
-0.08610197901725769,
0.6127806901931763,
0.10819747298955917,
-0.08640973269939423,
-0.1707160323858261,
0.08620283752679825,
-0.7226710915565491,
0.36712491512298584,
-0.11728096008300781,
-0.4556979238986969,
0.06604325026273727,
0.38627880811691284,
1.1690125465393066,
0.0692218467593193,
-0.6848161816596985,
-0.003995351027697325,
0.22251065075397491,
-0.33804377913475037,
-0.5310125350952148,
0.004414383787661791,
0.23871560394763947,
0.42689278721809387,
0.21942248940467834,
-0.13321176171302795,
-0.030278779566287994,
-0.20682744681835175,
-0.06716640293598175,
-0.0017791559221222997,
-0.011528306640684605,
-0.5285112261772156,
0.9498076438903809,
0.038482487201690674,
-0.5147997736930847,
0.6123589873313904,
-0.08618457615375519,
-0.5462216734886169,
0.8782891035079956,
1.2113592624664307,
0.809556782245636,
-0.6227060556411743,
0.27932804822921753,
0.5532378554344177,
0.43013104796409607,
-0.2568981647491455,
0.5710870623588562,
0.37200334668159485,
-0.8597207069396973,
-0.32930630445480347,
-0.7173570394515991,
-0.12605926394462585,
0.4297032356262207,
-0.7400833964347839,
0.5792909860610962,
-0.3393445312976837,
-0.13795587420463562,
-0.0912826806306839,
-0.18203279376029968,
-0.5809820294380188,
0.25473204255104065,
0.2568363547325134,
1.034708023071289,
-0.8387834429740906,
0.9942744374275208,
0.8724973797798157,
-0.5648199319839478,
-0.8280103802680969,
-0.3641509413719177,
-0.11311342567205429,
-1.3769657611846924,
1.256239414215088,
0.03974026441574097,
0.2099294364452362,
0.1783091425895691,
-0.920325517654419,
-1.4482746124267578,
1.163360834121704,
0.1861734539270401,
-0.6178153157234192,
-0.20931558310985565,
0.19336774945259094,
0.3536149859428406,
-0.6023412942886353,
-0.06896468997001648,
0.500532329082489,
0.448646605014801,
-0.14389033615589142,
-1.1170843839645386,
-0.3823266625404358,
-0.3587357699871063,
0.211729034781456,
-0.160819873213768,
-0.9998551607131958,
0.8344784379005432,
-0.0006208468112163246,
-0.09859976917505264,
0.5755055546760559,
0.742673397064209,
0.24652579426765442,
0.02320728823542595,
0.43333888053894043,
0.6873805522918701,
0.5998870134353638,
0.10425584018230438,
0.7575529217720032,
-0.5383734703063965,
0.308170884847641,
1.4171736240386963,
-0.38079214096069336,
1.0122771263122559,
0.2103790044784546,
-0.2292218804359436,
0.7300053238868713,
0.9811828136444092,
-0.32190844416618347,
0.7660014033317566,
0.005673143547028303,
0.29163113236427307,
-0.08384522050619125,
-0.031175287440419197,
-0.2950597405433655,
1.01125168800354,
0.30467307567596436,
-0.6250157952308655,
0.041121676564216614,
0.1301889419555664,
0.399477481842041,
-0.007605525199323893,
-0.24677786231040955,
0.807394802570343,
-0.10825646668672562,
-0.4593096673488617,
0.43361175060272217,
0.3938731253147125,
0.5678483843803406,
-0.6466639637947083,
-0.0053391233086586,
-0.22980321943759918,
0.04107457771897316,
-0.0369059219956398,
-0.5450285077095032,
0.34737491607666016,
0.12816397845745087,
-0.4437096118927002,
0.16471752524375916,
1.0376529693603516,
-0.4923137426376343,
-0.8461770415306091,
0.43464675545692444,
0.45297878980636597,
0.09905269742012024,
0.24812549352645874,
-0.7740792036056519,
0.28497669100761414,
0.025606654584407806,
-0.5028756856918335,
0.1358061283826828,
0.28814852237701416,
-0.17979425191879272,
0.7973355650901794,
0.3904675543308258,
-0.014125611633062363,
0.2794376611709595,
-0.020398905500769615,
0.8414185047149658,
-0.4917401373386383,
-0.21004162728786469,
-0.8157106637954712,
0.39570266008377075,
0.048171140253543854,
-0.3605596125125885,
0.6947543621063232,
0.6703828573226929,
0.8994137644767761,
-0.34540697932243347,
0.7726823091506958,
-0.2513977289199829,
0.7066730856895447,
-0.350029855966568,
0.666637122631073,
-0.39358431100845337,
-0.18182329833507538,
-0.012565996497869492,
-1.0079123973846436,
-0.13969014585018158,
0.9453363418579102,
0.14770857989788055,
-0.16264952719211578,
0.5452309846878052,
0.6608027815818787,
0.2161048948764801,
-0.15592096745967865,
0.395575612783432,
0.5845017433166504,
0.04602551460266113,
0.35125094652175903,
0.7591155767440796,
-0.783721387386322,
0.5014660358428955,
-0.4103206992149353,
-0.1582072675228119,
-0.1222342699766159,
-0.6534023880958557,
-1.062520980834961,
-0.48910126090049744,
-0.16651226580142975,
-0.576041579246521,
-0.13947030901908875,
1.0178290605545044,
0.3252451717853546,
-0.8230442404747009,
-0.42349088191986084,
-0.14900699257850647,
-0.14380359649658203,
0.21041591465473175,
-0.2418968826532364,
0.42525801062583923,
-0.4270223081111908,
-0.7311373949050903,
0.5045797824859619,
0.008863510563969612,
0.26575013995170593,
-0.4664975702762604,
-0.15274228155612946,
-0.25777074694633484,
0.18017905950546265,
0.5713579058647156,
0.12367366999387741,
-0.8407710790634155,
0.07917839288711548,
0.39419394731521606,
-0.1976379156112671,
0.13709978759288788,
0.2558632493019104,
-0.6828418374061584,
0.18173359334468842,
0.24214130640029907,
0.6749288439750671,
0.20320738852024078,
-0.11387711763381958,
0.6439638733863831,
-0.3025084435939789,
0.4133875072002411,
-0.02692337892949581,
0.23570017516613007,
0.16496306657791138,
-0.5670469403266907,
0.7594528198242188,
0.26490241289138794,
-0.7134615182876587,
-0.7861592173576355,
0.1482761800289154,
-0.8151582479476929,
-0.167861670255661,
1.4094105958938599,
0.08180435001850128,
-0.44385457038879395,
-0.06068608537316322,
-0.6209416389465332,
0.44656774401664734,
-0.315199613571167,
0.7919458150863647,
0.8683617115020752,
0.0739588588476181,
-0.2562156319618225,
-0.6593031883239746,
0.29086562991142273,
0.08269768953323364,
-0.6515442728996277,
-0.2859247326850891,
0.3355880379676819,
0.29724836349487305,
0.1117190569639206,
0.5464515089988708,
-0.11631167680025101,
0.16189852356910706,
0.20093728601932526,
0.4555448591709137,
-0.047747205942869186,
-0.3484019339084625,
-0.16350357234477997,
-0.25890377163887024,
0.020795196294784546,
-0.34688258171081543
] |
speechbrain/mtl-mimic-voicebank
|
speechbrain
| 2023-07-23T02:26:22Z | 8,011 | 17 |
speechbrain
|
[
"speechbrain",
"Robust ASR",
"audio-to-audio",
"speech-enhancement",
"PyTorch",
"en",
"dataset:Voicebank",
"dataset:DEMAND",
"arxiv:2106.04624",
"license:apache-2.0",
"has_space",
"region:us"
] |
audio-to-audio
| 2022-03-02T23:29:05Z |
---
language: "en"
tags:
- Robust ASR
- audio-to-audio
- speech-enhancement
- PyTorch
- speechbrain
license: "apache-2.0"
datasets:
- Voicebank
- DEMAND
metrics:
- WER
- PESQ
- COVL
---
<iframe src="https://ghbtns.com/github-btn.html?user=speechbrain&repo=speechbrain&type=star&count=true&size=large&v=2" frameborder="0" scrolling="0" width="170" height="30" title="GitHub"></iframe>
<br/><br/>
# ResNet-like model
This repository provides all the necessary tools to perform enhancement and
robust ASR training (EN) within
SpeechBrain. For a better experience we encourage you to learn more about
[SpeechBrain](https://speechbrain.github.io). The model performance is:
| Release | Test PESQ | Test COVL | Valid WER | Test WER |
|:--------:|:----:|:----:|:----:|:----:|
| 22-06-21 | 3.05 | 3.74 | 2.89 | 2.80 |
Works with SpeechBrain v0.5.12
## Pipeline description
The mimic loss training system consists of three steps:
1. A perceptual model is pre-trained on clean speech features, the
same type used for the enhancement masking system.
2. An enhancement model is trained with mimic loss, using the
pre-trained perceptual model.
3. A large ASR model pre-trained on LibriSpeech is fine-tuned
using the enhancement front-end.
The enhancement and ASR models can be used together or
independently.
## Install SpeechBrain
First of all, please install SpeechBrain with the following command:
```
pip install speechbrain
```
Please notice that we encourage you to read our tutorials and learn more about
[SpeechBrain](https://speechbrain.github.io).
## Pretrained Usage
To use the mimic-loss-trained model for enhancement, use the following simple code:
```python
import torchaudio
from speechbrain.pretrained import WaveformEnhancement
enhance_model = WaveformEnhancement.from_hparams(
source="speechbrain/mtl-mimic-voicebank",
savedir="pretrained_models/mtl-mimic-voicebank",
)
enhanced = enhance_model.enhance_file("speechbrain/mtl-mimic-voicebank/example.wav")
# Saving enhanced signal on disk
torchaudio.save('enhanced.wav', enhanced.unsqueeze(0).cpu(), 16000)
```
The system is trained with recordings sampled at 16kHz (single channel).
The code will automatically normalize your audio (i.e., resampling + mono channel selection) when calling *enhance_file* if needed. Make sure your input tensor is compliant with the expected sampling rate if you use *enhance_batch* as in the example.
### Inference on GPU
To perform inference on the GPU, add `run_opts={"device":"cuda"}` when calling the `from_hparams` method.
### Training
The model was trained with SpeechBrain (150e1890).
To train it from scratch follows these steps:
1. Clone SpeechBrain:
```bash
git clone https://github.com/speechbrain/speechbrain/
```
2. Install it:
```
cd speechbrain
pip install -r requirements.txt
pip install -e .
```
3. Run Training:
```
cd recipes/Voicebank/MTL/ASR_enhance
python train.py hparams/enhance_mimic.yaml --data_folder=your_data_folder
```
You can find our training results (models, logs, etc) [here](https://drive.google.com/drive/folders/1HaR0Bq679pgd1_4jD74_wDRUq-c3Wl4L?usp=sharing).
### Limitations
The SpeechBrain team does not provide any warranty on the performance achieved by this model when used on other datasets.
## Referencing Mimic Loss
If you find mimic loss useful, please cite:
```
@inproceedings{bagchi2018spectral,
title={Spectral Feature Mapping with Mimic Loss for Robust Speech Recognition},
author={Bagchi, Deblin and Plantinga, Peter and Stiff, Adam and Fosler-Lussier, Eric},
booktitle={IEEE Conference on Audio, Speech, and Signal Processing (ICASSP)},
year={2018}
}
```
# **About SpeechBrain**
- Website: https://speechbrain.github.io/
- Code: https://github.com/speechbrain/speechbrain/
- HuggingFace: https://huggingface.co/speechbrain/
# **Citing SpeechBrain**
Please, cite SpeechBrain if you use it for your research or business.
```bibtex
@misc{speechbrain,
title={{SpeechBrain}: A General-Purpose Speech Toolkit},
author={Mirco Ravanelli and Titouan Parcollet and Peter Plantinga and Aku Rouhe and Samuele Cornell and Loren Lugosch and Cem Subakan and Nauman Dawalatabad and Abdelwahab Heba and Jianyuan Zhong and Ju-Chieh Chou and Sung-Lin Yeh and Szu-Wei Fu and Chien-Feng Liao and Elena Rastorgueva and François Grondin and William Aris and Hwidong Na and Yan Gao and Renato De Mori and Yoshua Bengio},
year={2021},
eprint={2106.04624},
archivePrefix={arXiv},
primaryClass={eess.AS},
note={arXiv:2106.04624}
}
```
|
[
-0.509080171585083,
-0.6395888924598694,
-0.17838120460510254,
0.20211294293403625,
-0.11192687600851059,
-0.05903306230902672,
-0.3934366703033447,
-0.5232754945755005,
0.5132391452789307,
0.26359453797340393,
-0.7238855361938477,
-0.4716990292072296,
-0.49696698784828186,
-0.048190776258707047,
-0.2733616530895233,
0.9612096548080444,
0.24143320322036743,
0.35393133759498596,
0.10382279008626938,
-0.227212592959404,
-0.2848389744758606,
-0.5616118907928467,
-0.9637551307678223,
-0.3651498556137085,
0.21951545774936676,
-0.08817779272794724,
0.2648210823535919,
0.4587056636810303,
0.152009055018425,
0.3040679693222046,
-0.38027456402778625,
0.009063707664608955,
-0.4457997977733612,
-0.1751192808151245,
0.24764825403690338,
-0.41165146231651306,
-0.6742269992828369,
0.16991941630840302,
0.8145372271537781,
0.569624125957489,
-0.20570039749145508,
0.3234401345252991,
0.4675591289997101,
0.23052920401096344,
-0.41822129487991333,
0.06678447872400284,
-0.6016709208488464,
-0.05069458484649658,
-0.26406997442245483,
-0.18665598332881927,
-0.15566636621952057,
-0.2909168303012848,
0.20292919874191284,
-0.5127928853034973,
0.2987893521785736,
-0.0061967321671545506,
1.228434681892395,
0.19639773666858673,
-0.07239853590726852,
0.02485296130180359,
-0.48935002088546753,
0.7872304916381836,
-0.787054181098938,
0.5755810737609863,
0.40925776958465576,
0.3302692770957947,
0.011852613650262356,
-0.92562335729599,
-0.5151412487030029,
-0.34657585620880127,
-0.0017703450284898281,
0.26882895827293396,
-0.48404067754745483,
0.15997174382209778,
0.46568405628204346,
0.5136427879333496,
-0.5631355047225952,
-0.06475187093019485,
-0.4829973578453064,
-0.6085437536239624,
0.3250739276409149,
-0.15282279253005981,
0.2198936641216278,
-0.297094464302063,
-0.2905098497867584,
-0.5958747267723083,
-0.4540287256240845,
0.1735939383506775,
0.44266727566719055,
0.43109428882598877,
-0.44567057490348816,
0.26324138045310974,
0.2979303002357483,
0.6698154211044312,
0.32792040705680847,
-0.14837785065174103,
0.6777846217155457,
-0.39282044768333435,
-0.36942777037620544,
0.2852333188056946,
0.7993807196617126,
-0.045626815408468246,
0.11815392971038818,
0.10749715566635132,
-0.12630921602249146,
0.18422962725162506,
0.02461010031402111,
-0.8356055021286011,
-0.29983392357826233,
0.21980687975883484,
-0.45917975902557373,
-0.20155677199363708,
-0.11019615083932877,
-0.5981298685073853,
-0.03861455246806145,
-0.3232073485851288,
0.7834262847900391,
-0.6417019367218018,
-0.3174598813056946,
-0.138319730758667,
-0.30433544516563416,
0.3261454105377197,
-0.1069776639342308,
-0.7520789504051208,
0.5461200475692749,
0.29196348786354065,
0.8722522854804993,
0.02844989486038685,
-0.38932791352272034,
-0.6717872023582458,
-0.02920682728290558,
-0.11129001528024673,
0.45195117592811584,
-0.3460772931575775,
-0.333375483751297,
-0.18191009759902954,
0.1543305665254593,
-0.26087716221809387,
-0.7933111190795898,
0.6362373232841492,
-0.157962366938591,
0.4185291528701782,
-0.00023140101984608918,
-0.40797656774520874,
-0.27393168210983276,
-0.04339020699262619,
-0.4049730896949768,
0.9830836653709412,
0.06708389520645142,
-0.7293983101844788,
0.1098165363073349,
-0.6360161304473877,
-0.3937910497188568,
-0.47381648421287537,
0.1420699506998062,
-0.6970381140708923,
-0.07065670937299728,
0.2953479588031769,
0.23039336502552032,
-0.05581525340676308,
-0.11960634589195251,
-0.3142372667789459,
-0.5340464115142822,
0.29450127482414246,
-0.35712045431137085,
1.3615537881851196,
0.33092188835144043,
-0.4929252862930298,
0.32036876678466797,
-0.9219399094581604,
0.02206278033554554,
-0.03336045518517494,
-0.3935416638851166,
-0.02887444570660591,
-0.4139617681503296,
0.4235354959964752,
0.05448983982205391,
0.17461159825325012,
-0.544996440410614,
-0.04262513294816017,
-0.5971714854240417,
0.43209823966026306,
0.7098033428192139,
-0.11158857494592667,
0.3585841655731201,
-0.5413433313369751,
0.5683022141456604,
-0.15240231156349182,
0.13959762454032898,
-0.02885226532816887,
-0.3450715243816376,
-0.8375773429870605,
-0.5712941288948059,
0.5809953212738037,
0.5469444394111633,
-0.36238035559654236,
0.6296429634094238,
-0.31454363465309143,
-0.509911060333252,
-1.097019076347351,
-0.22351089119911194,
0.4872143566608429,
0.7235051393508911,
0.6684808731079102,
-0.403532475233078,
-1.034301519393921,
-0.8701402544975281,
-0.21304595470428467,
0.013962287455797195,
-0.40130478143692017,
0.5139504671096802,
0.16388781368732452,
-0.38423818349838257,
0.6204226613044739,
-0.20796744525432587,
-0.6236795783042908,
-0.20550470054149628,
-0.08641017973423004,
0.3139556646347046,
0.6977017521858215,
0.5321181416511536,
-0.4604588747024536,
-0.4358189105987549,
-0.35720884799957275,
-0.49030938744544983,
-0.31990954279899597,
-0.01560639776289463,
-0.04646714776754379,
0.15449760854244232,
0.16381420195102692,
-0.42423367500305176,
0.3344961106777191,
0.6455808877944946,
-0.08033280074596405,
0.4485076665878296,
-0.10795741528272629,
0.2441706508398056,
-1.3986390829086304,
0.3426493704319,
-0.01664086803793907,
-0.29456955194473267,
-0.6567728519439697,
-0.17657561600208282,
-0.02848106622695923,
-0.2619040012359619,
-0.0905439555644989,
0.36405691504478455,
-0.5213618874549866,
-0.2523568272590637,
-0.07771371304988861,
0.21186970174312592,
-0.018323136493563652,
0.6305983662605286,
-0.010497592389583588,
0.7542875409126282,
0.9644930958747864,
-0.5148274898529053,
0.35499802231788635,
0.3410535454750061,
-0.01583637110888958,
0.5670920014381409,
-0.8804042339324951,
0.21123680472373962,
0.08770687878131866,
0.3946739435195923,
-0.7613471746444702,
-0.13547275960445404,
0.3845756947994232,
-0.985565185546875,
0.6391128301620483,
-0.29694515466690063,
-0.22823432087898254,
-0.36995139718055725,
-0.46443620324134827,
0.01831844635307789,
0.9503541588783264,
-0.6973059177398682,
0.8037152290344238,
0.44868725538253784,
0.18089865148067474,
-0.5971675515174866,
-0.8643758893013,
-0.10095979273319244,
-0.3949281871318817,
-0.6298340559005737,
0.5080624222755432,
-0.0709187462925911,
0.08996875584125519,
-0.1978435218334198,
-0.10208815336227417,
-0.04490594193339348,
-0.1170712262392044,
0.46033698320388794,
0.24868613481521606,
-0.15004225075244904,
-0.06326880306005478,
-0.06335776299238205,
-0.11204269528388977,
-0.002932916861027479,
-0.3947564661502838,
0.7139329314231873,
-0.07013349235057831,
-0.15746799111366272,
-0.8758662939071655,
0.09257397800683975,
0.3002616763114929,
-0.44119706749916077,
0.5000463724136353,
0.9042672514915466,
-0.4091501832008362,
0.056093718856573105,
-0.6654882431030273,
-0.4609720706939697,
-0.4664842486381531,
0.4964362382888794,
-0.35748133063316345,
-0.5088615417480469,
0.738481342792511,
0.09676399827003479,
-0.13953082263469696,
0.4972768723964691,
0.2593119144439697,
-0.1056058257818222,
0.7908401489257812,
0.4585754871368408,
-0.18297547101974487,
0.7025455236434937,
-0.5837737917900085,
-0.28881382942199707,
-1.1735209226608276,
-0.2698175311088562,
-0.5493456721305847,
-0.3416290283203125,
-0.49079540371894836,
-0.3690203130245209,
0.45864835381507874,
0.043734148144721985,
-0.21849074959754944,
0.6356719732284546,
-0.6860998868942261,
-0.029208021238446236,
0.6669313907623291,
0.2731039226055145,
0.10330267995595932,
0.45184364914894104,
-0.08263012766838074,
-0.19616784155368805,
-0.5562170147895813,
-0.22277799248695374,
1.0609441995620728,
0.5185065269470215,
0.68181973695755,
-0.018972158432006836,
0.7897786498069763,
-0.09703393280506134,
0.1270226687192917,
-0.5097355842590332,
0.4514971077442169,
-0.12550511956214905,
-0.516960620880127,
-0.17485690116882324,
-0.5555095076560974,
-1.144049882888794,
0.06338317692279816,
-0.2661686837673187,
-0.7381094098091125,
0.3576182723045349,
0.34270042181015015,
-0.42752113938331604,
0.2502779960632324,
-0.6781812906265259,
0.6963924765586853,
0.0845639780163765,
-0.19992147386074066,
-0.24705180525779724,
-0.7527217268943787,
0.09420352429151535,
0.11759393662214279,
-0.14972402155399323,
0.2545219659805298,
0.1457003355026245,
0.978307843208313,
-0.38152942061424255,
0.6968889832496643,
-0.42045265436172485,
0.17386695742607117,
0.30835863947868347,
-0.1436079740524292,
0.47465455532073975,
-0.3085329830646515,
-0.1441574990749359,
0.42667174339294434,
0.08485708385705948,
-0.2875513434410095,
-0.5804294943809509,
0.8012266755104065,
-0.8989245295524597,
-0.33966851234436035,
-0.14988987147808075,
-0.38785168528556824,
-0.15538930892944336,
-0.0247382540255785,
0.5161016583442688,
0.738594651222229,
0.029922939836978912,
0.1471804529428482,
0.7347396016120911,
-0.3526533246040344,
0.26168307662010193,
0.46579447388648987,
-0.21624989807605743,
-0.7385299205780029,
0.9765129685401917,
0.4335708022117615,
0.3586253821849823,
0.09984275698661804,
0.22579199075698853,
-0.4746659994125366,
-0.44815075397491455,
-0.35994601249694824,
0.34780389070510864,
-0.4564206302165985,
-0.07783865183591843,
-0.7015588283538818,
-0.3612399995326996,
-0.7722419500350952,
0.22954179346561432,
-0.4693717062473297,
-0.31787237524986267,
-0.37575238943099976,
0.10979119688272476,
0.48015058040618896,
0.2831348478794098,
-0.45707952976226807,
0.2050701379776001,
-0.4369330406188965,
0.27408525347709656,
0.31196603178977966,
0.19890433549880981,
0.02040497586131096,
-1.1747233867645264,
-0.15066379308700562,
0.3031066060066223,
-0.20045055449008942,
-0.7797917723655701,
0.5588564872741699,
0.330270379781723,
0.6559168696403503,
0.2889646291732788,
-0.13333715498447418,
1.0281155109405518,
-0.3105500638484955,
0.7775995135307312,
0.0824987143278122,
-0.9606767296791077,
0.8086228370666504,
-0.33817923069000244,
0.229400172829628,
0.39303505420684814,
0.3992744982242584,
-0.3719945549964905,
-0.2603359818458557,
-0.8596775531768799,
-0.6438896656036377,
0.8517141342163086,
0.388065904378891,
0.13800716400146484,
0.2675459682941437,
0.34048646688461304,
-0.2638634741306305,
0.0959487184882164,
-0.7943991422653198,
-0.7380699515342712,
-0.6183887124061584,
-0.18645118176937103,
-0.22639387845993042,
-0.06524383276700974,
-0.2243497371673584,
-0.4699589014053345,
0.9039801955223083,
0.13909895718097687,
0.6300684809684753,
0.3978608250617981,
-0.06979498267173767,
-0.04878028482198715,
0.068620964884758,
0.6490989923477173,
0.13738636672496796,
-0.5377774238586426,
0.10226839780807495,
0.48570162057876587,
-0.601348876953125,
-0.03542938455939293,
0.6111834645271301,
0.01700631156563759,
0.12163526564836502,
0.3265673816204071,
0.9786133170127869,
0.13271865248680115,
-0.34797272086143494,
0.5501291751861572,
-0.04175305739045143,
-0.17439943552017212,
-0.44655677676200867,
0.06678616255521774,
0.13274948298931122,
0.22323980927467346,
0.38560307025909424,
0.3302595913410187,
0.18124131858348846,
-0.5456277132034302,
0.24500198662281036,
0.47561711072921753,
-0.5636980533599854,
-0.3777967095375061,
0.9806362986564636,
-0.05255313217639923,
-0.43354928493499756,
0.5405329465866089,
0.06306036561727524,
-0.3795855939388275,
0.5138920545578003,
0.733837902545929,
0.9459792971611023,
-0.5640629529953003,
-0.28436484932899475,
0.6576562523841858,
0.115415059030056,
0.13475841283798218,
0.1959238499403,
-0.16678057610988617,
-0.47899842262268066,
-0.2086942493915558,
-0.7571580410003662,
-0.04459900036454201,
0.25538021326065063,
-0.7850517630577087,
0.34643352031707764,
-0.3548092246055603,
-0.318289190530777,
0.037486299872398376,
0.09994574636220932,
-0.47175243496894836,
0.10017798095941544,
0.0527854822576046,
0.8452121615409851,
-0.607883632183075,
1.0054833889007568,
0.5945594310760498,
-0.7168518304824829,
-1.1542582511901855,
0.03136765956878662,
0.007678125984966755,
-0.7913603782653809,
0.515305757522583,
0.13317878544330597,
-0.3979087769985199,
0.20632115006446838,
-0.5030384063720703,
-0.7873495817184448,
1.1752893924713135,
0.6695979237556458,
-0.45449456572532654,
0.03264963999390602,
-0.2047131359577179,
0.7259788513183594,
-0.2579578757286072,
0.39021146297454834,
0.40876641869544983,
0.31800901889801025,
0.0806485116481781,
-1.328093409538269,
0.009349805302917957,
-0.3073387145996094,
0.12773257493972778,
-0.1809886395931244,
-0.6191274523735046,
0.81822669506073,
-0.05174766108393669,
-0.40418320894241333,
0.14558318257331848,
0.6510341167449951,
0.3535885810852051,
0.252756267786026,
0.516441285610199,
0.6198523044586182,
0.7689979672431946,
-0.04295427352190018,
1.111059546470642,
-0.36189940571784973,
0.35062915086746216,
1.036402702331543,
0.2484157383441925,
0.8790725469589233,
0.3223119378089905,
-0.4865400791168213,
0.5101855993270874,
0.7347739934921265,
-0.11074873805046082,
0.4427603781223297,
0.2853201925754547,
-0.1743839830160141,
-0.19559530913829803,
-0.1746121644973755,
-0.7449341416358948,
0.5150866508483887,
0.13154689967632294,
-0.5582730770111084,
0.21052047610282898,
0.2672305107116699,
-0.035767316818237305,
-0.055940061807632446,
-0.2213245928287506,
0.6488568186759949,
0.10316818952560425,
-0.31757280230522156,
1.1854506731033325,
-0.2942487895488739,
0.9304825067520142,
-0.791384220123291,
0.05716981738805771,
-0.20461176335811615,
0.17783775925636292,
-0.3150750994682312,
-0.29517343640327454,
0.3481491208076477,
-0.24082593619823456,
-0.23641133308410645,
0.010910176672041416,
0.4787870943546295,
-0.6745786666870117,
-0.21726948022842407,
0.4971313178539276,
0.1116642951965332,
0.5063748359680176,
0.04744580388069153,
-0.8407824635505676,
0.27551916241645813,
0.16166871786117554,
-0.1627456396818161,
0.3966263234615326,
-0.03866846114397049,
0.41486525535583496,
0.721324622631073,
0.6360935568809509,
0.3148099482059479,
0.08492439985275269,
0.31707316637039185,
0.9023982882499695,
-0.3275432586669922,
-0.3828170597553253,
-0.5421426296234131,
0.44642627239227295,
-0.2720300853252411,
-0.17516015470027924,
0.9614136219024658,
0.7464112639427185,
0.6659009456634521,
-0.04382020980119705,
0.4305070638656616,
0.09895776957273483,
0.9337771534919739,
-0.33782243728637695,
0.9638423919677734,
-0.6511543989181519,
0.439044713973999,
-0.5444125533103943,
-0.9691804051399231,
-0.2544848918914795,
0.9142264723777771,
-0.09735759347677231,
0.31526345014572144,
0.2803477346897125,
1.3593617677688599,
-0.15317530930042267,
-0.36125218868255615,
0.2661454975605011,
0.4117394983768463,
0.048226699233055115,
0.46834051609039307,
0.5562967658042908,
-0.8645153641700745,
0.81743985414505,
-0.27452942728996277,
-0.2767876088619232,
0.0344669409096241,
-0.2761291563510895,
-0.8519543409347534,
-0.7242391109466553,
-0.4238658547401428,
-0.7433904409408569,
0.21534225344657898,
1.0965287685394287,
0.9692637324333191,
-0.8391276597976685,
-0.35905373096466064,
0.0762338787317276,
-0.173976331949234,
-0.36761313676834106,
-0.28995680809020996,
0.6306495070457458,
0.015605730935931206,
-0.9777171015739441,
0.5654994249343872,
-0.0226739551872015,
0.40319305658340454,
-0.23085063695907593,
-0.28113994002342224,
-0.14046399295330048,
0.05134519934654236,
0.13499408960342407,
0.38357287645339966,
-0.8357868790626526,
-0.1899263560771942,
-0.06529653072357178,
-0.013752392493188381,
0.12903901934623718,
0.3691561222076416,
-1.0398887395858765,
0.5972171425819397,
0.2803233861923218,
0.34756627678871155,
0.6337946653366089,
-0.12739752233028412,
0.3128341734409332,
-0.8059514164924622,
0.23320484161376953,
0.11307376623153687,
0.3316621482372284,
0.47324830293655396,
-0.14574436843395233,
0.32931050658226013,
0.3698195517063141,
-0.57461017370224,
-0.937972366809845,
-0.07922765612602234,
-1.2335593700408936,
0.042331233620643616,
1.128724217414856,
-0.09847009181976318,
-0.14245980978012085,
0.07509681582450867,
-0.45865583419799805,
0.5969245433807373,
-0.46759098768234253,
0.5994083881378174,
0.07732539623975754,
-0.16143299639225006,
-0.337373822927475,
-0.24226251244544983,
0.8824421763420105,
0.4218188226222992,
-0.5583698153495789,
-0.1606273651123047,
0.37647461891174316,
0.5501849055290222,
0.30055245757102966,
0.6310939192771912,
-0.10774876922369003,
0.1700688600540161,
0.3187159299850464,
0.3525184690952301,
-0.21959078311920166,
0.10350487381219864,
-0.7732376456260681,
0.08846504986286163,
-0.13700182735919952,
-0.5537183880805969
] |
uclanlp/plbart-base
|
uclanlp
| 2021-11-09T17:07:52Z | 8,007 | 5 |
transformers
|
[
"transformers",
"pytorch",
"plbart",
"text2text-generation",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] |
text2text-generation
| 2022-03-02T23:29:05Z |
Entry not found
|
[
-0.3227650225162506,
-0.22568431496620178,
0.862226128578186,
0.43461495637893677,
-0.5282987952232361,
0.7012965679168701,
0.7915717363357544,
0.07618638128042221,
0.7746025919914246,
0.2563219666481018,
-0.7852817177772522,
-0.22573819756507874,
-0.9104480743408203,
0.5715669393539429,
-0.3992334008216858,
0.5791245698928833,
-0.14494505524635315,
-0.10751161724328995,
0.28233757615089417,
-0.2768954336643219,
-0.5409224033355713,
-0.36855220794677734,
-1.1902776956558228,
0.061491113156080246,
0.5316578149795532,
0.7435142397880554,
0.7584060430526733,
0.3652167320251465,
0.6432578563690186,
0.3932291269302368,
-0.23138920962810516,
0.4827055037021637,
-0.04171813279390335,
0.00260411505587399,
-0.3524433970451355,
-0.5516898036003113,
-0.28596609830856323,
0.07584730535745621,
1.0961304903030396,
0.966687798500061,
-0.284663587808609,
0.05330817773938179,
-0.3063621520996094,
0.33088892698287964,
-0.49734312295913696,
0.3054099678993225,
-0.022506045177578926,
0.16318801045417786,
-0.7041513919830322,
-0.5535354018211365,
0.012794834561645985,
-0.7361212968826294,
0.17926570773124695,
-0.690081000328064,
0.8269098401069641,
0.18583157658576965,
1.1533750295639038,
0.14819414913654327,
-0.462487131357193,
-0.8161764144897461,
-0.6538989543914795,
0.5711171627044678,
-0.32703715562820435,
0.39680248498916626,
0.7028235197067261,
-0.048573412001132965,
-0.9820332527160645,
-0.6745741367340088,
-0.46466192603111267,
0.2923962473869324,
0.35402774810791016,
-0.3411678075790405,
-0.17522086203098297,
-0.3058989644050598,
0.15792037546634674,
0.12811517715454102,
-0.4841994643211365,
-0.5543919205665588,
-0.5475160479545593,
-0.3960252106189728,
0.6206658482551575,
0.3482950031757355,
0.2429177463054657,
-0.1888415813446045,
-0.3228583335876465,
0.0880163162946701,
-0.4160851538181305,
0.3402571678161621,
0.6335517168045044,
0.7114017009735107,
-0.5811444520950317,
0.560215950012207,
-0.04927587881684303,
0.7439703941345215,
0.11445561796426773,
-0.27478092908859253,
0.41460567712783813,
-0.14724725484848022,
0.055171746760606766,
0.4226345121860504,
0.31524422764778137,
0.2841312289237976,
-0.3273695111274719,
0.2032228708267212,
-0.3215144872665405,
-0.30496224761009216,
-0.22332167625427246,
-0.29490774869918823,
-0.3592180609703064,
0.5492289066314697,
-0.3314017057418823,
-0.42855486273765564,
1.143175721168518,
-0.4200771450996399,
-0.7302224040031433,
0.33156412839889526,
0.4065209925174713,
-0.0994480773806572,
-0.37146568298339844,
-0.052260834723711014,
-0.8458789587020874,
-0.007907390594482422,
0.7491172552108765,
-0.7198970913887024,
0.3371737599372864,
0.4728063642978668,
0.7417217493057251,
0.19650575518608093,
-0.14034469425678253,
-0.42949390411376953,
0.2971969544887543,
-0.8659994006156921,
0.6320174336433411,
-0.20135220885276794,
-1.0051977634429932,
0.11150479316711426,
0.8971705436706543,
-0.37896400690078735,
-1.2094876766204834,
1.0605159997940063,
-0.6887932419776917,
0.16017857193946838,
-0.676761269569397,
-0.14661237597465515,
-0.07118501514196396,
-0.005096632521599531,
-0.6088156700134277,
0.7567102313041687,
0.587267279624939,
-0.4995276927947998,
0.21429483592510223,
-0.26029831171035767,
-0.39151400327682495,
0.38824859261512756,
-0.07935450226068497,
-0.21858926117420197,
0.713833212852478,
-0.6647079586982727,
-0.26932814717292786,
0.2942774295806885,
0.2368936538696289,
-0.35706108808517456,
-0.7931919097900391,
0.08478113263845444,
-0.05786270648241043,
1.550750494003296,
-0.03868847340345383,
-0.3586106300354004,
-0.679383397102356,
-1.1506240367889404,
-0.07070787996053696,
0.6886883974075317,
-0.9194989204406738,
-0.27839475870132446,
-0.046410128474235535,
-0.26169314980506897,
0.08994917571544647,
0.7390589714050293,
-1.1194051504135132,
0.2832726836204529,
-0.05092663690447807,
-0.22794683277606964,
0.8271058797836304,
0.15387225151062012,
0.24758946895599365,
0.14913396537303925,
0.42958706617355347,
0.527725338935852,
0.11115207523107529,
0.683587908744812,
-0.34720373153686523,
-0.9694353938102722,
0.6154631972312927,
0.25266361236572266,
0.8121447563171387,
-0.49945297837257385,
0.2685093879699707,
0.27025535702705383,
-0.3409680724143982,
-0.5682371854782104,
-0.3102838397026062,
0.09025752544403076,
0.14930562674999237,
0.11142510175704956,
-0.5721710324287415,
-0.6576125025749207,
-0.9689140319824219,
-0.13590654730796814,
-0.4314374029636383,
-0.3571570813655853,
0.21006910502910614,
0.5792906284332275,
-1.1975523233413696,
0.4128875136375427,
-0.7705625891685486,
-0.7038741111755371,
-0.01065548975020647,
-0.19338123500347137,
0.7540656328201294,
0.43240174651145935,
0.5033966898918152,
-0.6397148370742798,
-0.5661987066268921,
-0.22470176219940186,
-1.0333747863769531,
-0.13280506432056427,
0.24819621443748474,
0.3065737783908844,
-0.13423344492912292,
-0.2744963765144348,
-0.48740333318710327,
0.8100387454032898,
0.14789170026779175,
-0.5391897559165955,
0.5220767259597778,
-0.3020317256450653,
0.17224803566932678,
-0.6369150280952454,
-0.06916818022727966,
-0.661676287651062,
-0.0009071884560398757,
-0.3608308732509613,
-0.5737438797950745,
0.14772287011146545,
0.07017494738101959,
-0.16065457463264465,
0.28808408975601196,
-0.909277081489563,
-0.0010852962732315063,
-0.7442210912704468,
0.379071980714798,
0.06394772231578827,
-0.3145078718662262,
-0.017517540603876114,
1.0000386238098145,
0.7784460783004761,
-0.3848048746585846,
0.721744179725647,
0.4440041184425354,
0.19036155939102173,
0.7630521059036255,
-0.18725109100341797,
0.16478213667869568,
-0.5245416760444641,
-0.12161104381084442,
-0.8887597918510437,
-1.0982946157455444,
0.7320570349693298,
-0.6114250421524048,
0.36542922258377075,
-0.4277869760990143,
0.2589159905910492,
-0.6919258832931519,
-0.03885362669825554,
0.4808599352836609,
-0.05936325341463089,
-0.6863942742347717,
0.5232570171356201,
0.45317530632019043,
-0.2019241601228714,
-0.6609031558036804,
-0.530157208442688,
0.39365822076797485,
0.6154114007949829,
-0.16390392184257507,
0.06878514587879181,
0.14941060543060303,
-0.5441926121711731,
-0.040802597999572754,
-0.38691970705986023,
-0.45766758918762207,
0.054224006831645966,
0.13053473830223083,
-0.005750799085944891,
-0.404820054769516,
-0.0868026465177536,
-0.35842007398605347,
-0.4656120240688324,
0.21876516938209534,
0.3011947274208069,
-0.04096309468150139,
-0.42599788308143616,
-0.3619818687438965,
-0.888181209564209,
0.6719610095024109,
0.5370282530784607,
0.05281545966863632,
0.7555549740791321,
0.16819314658641815,
-0.8014987707138062,
-0.13532210886478424,
-0.1760706603527069,
0.2696830928325653,
-0.5588056445121765,
0.13849826157093048,
-0.013484534807503223,
-0.0637492910027504,
0.26297882199287415,
0.25386232137680054,
-0.4300556778907776,
0.9276250004768372,
-0.2615274488925934,
-0.3592521846294403,
0.7960181832313538,
0.5974742770195007,
0.49583131074905396,
0.16503219306468964,
-0.044541798532009125,
0.900709331035614,
-1.1966516971588135,
-0.6563175916671753,
-0.7409549355506897,
-0.15945707261562347,
-0.43510833382606506,
-0.032105933874845505,
0.6254412531852722,
0.2900990843772888,
-0.1333388388156891,
0.4756395220756531,
-0.5243489742279053,
0.3556033670902252,
1.01198410987854,
0.35748639702796936,
0.3435698449611664,
-0.7570229172706604,
-0.2515777349472046,
-0.1402427852153778,
-0.9998157620429993,
-0.2631377875804901,
0.8871029019355774,
0.22752606868743896,
0.844460666179657,
0.5992541313171387,
0.6784542798995972,
0.1367226243019104,
0.2523828148841858,
-0.30590319633483887,
0.3920294940471649,
0.4376082420349121,
-1.0401138067245483,
-0.42758408188819885,
0.021418681368231773,
-0.9703338742256165,
-0.14227519929409027,
-0.03495011106133461,
-0.42617112398147583,
0.7681737542152405,
0.00016589462757110596,
-0.4076709747314453,
0.7732734084129333,
-0.455583393573761,
0.7562873363494873,
-0.4473648965358734,
-0.02663906291127205,
0.4699096083641052,
-0.7070636749267578,
0.4677430987358093,
0.12878790497779846,
0.6205843091011047,
-0.015572631731629372,
-0.04078587517142296,
0.7104941606521606,
-0.9129160046577454,
0.25438642501831055,
-0.6348397135734558,
0.22421300411224365,
0.24246945977210999,
0.51606285572052,
0.5969953536987305,
0.4371243417263031,
0.10119888931512833,
-0.23920902609825134,
0.04115807265043259,
-0.8241125345230103,
-0.210506409406662,
0.697515606880188,
-0.7186890840530396,
-0.6864197850227356,
-1.2355337142944336,
0.14438660442829132,
0.27347055077552795,
0.389305055141449,
0.7959296107292175,
0.571408748626709,
0.1289544403553009,
0.680525004863739,
0.9888588190078735,
-0.0688566341996193,
0.9166924357414246,
0.3224477171897888,
0.09175168722867966,
-0.21944808959960938,
0.7036820650100708,
0.26627904176712036,
-0.24707956612110138,
-0.11939732730388641,
0.20913465321063995,
-0.11069409549236298,
-0.591761589050293,
-0.49990686774253845,
0.3701757788658142,
-0.6731787919998169,
-0.18303893506526947,
-0.6243735551834106,
-0.6043769717216492,
-0.511759340763092,
0.06927360594272614,
-0.7147687673568726,
0.23979046940803528,
-0.7753565907478333,
-0.10574902594089508,
0.04323432594537735,
0.9792009592056274,
-0.589311957359314,
0.5805224180221558,
-1.1218582391738892,
0.19345788657665253,
-0.07949887961149216,
0.7921058535575867,
0.21395787596702576,
-0.7344395518302917,
-0.3975418508052826,
-0.11592631042003632,
-0.3729911744594574,
-1.3576762676239014,
0.21404948830604553,
-0.2454141080379486,
0.23094046115875244,
0.6145404577255249,
0.1397707313299179,
0.5258248448371887,
-0.34326282143592834,
0.7029101848602295,
-0.057017259299755096,
-0.7069286704063416,
0.7934495210647583,
-0.5026894807815552,
0.4963534474372864,
0.9765996932983398,
0.5333835482597351,
-0.7984007596969604,
0.035741209983825684,
-1.041123390197754,
-0.6008695363998413,
0.38426393270492554,
0.11928944289684296,
-0.03601083159446716,
-0.6659559011459351,
-0.054019637405872345,
-0.16143807768821716,
0.6043745279312134,
-1.039069414138794,
-0.7858356237411499,
0.2576698362827301,
0.5277302861213684,
0.0816856250166893,
-0.5653398633003235,
0.20880667865276337,
-0.544416069984436,
1.0657774209976196,
0.45109400153160095,
0.3274499475955963,
0.8406060934066772,
0.46492424607276917,
-0.3823164403438568,
0.09252490103244781,
0.7662695050239563,
0.6666232347488403,
-0.5239797830581665,
-0.2908027470111847,
-0.08827541768550873,
-0.9143403768539429,
0.05927472561597824,
0.11168918758630753,
-0.013455932028591633,
0.9082110524177551,
0.5793083310127258,
0.2539709210395813,
0.4514279365539551,
-0.726460337638855,
0.8859451413154602,
-0.14954176545143127,
-0.12472866475582123,
-1.0677239894866943,
0.1948619782924652,
-0.23984959721565247,
0.5006402134895325,
1.0061326026916504,
0.5250048041343689,
-0.047630298882722855,
-0.8143380880355835,
-0.01473585981875658,
0.6939172148704529,
-0.7091123461723328,
-0.17449834942817688,
0.944853663444519,
0.3847099542617798,
-1.2953051328659058,
1.106776475906372,
-0.5381771326065063,
-0.560332179069519,
0.9121301770210266,
0.522956907749176,
1.1221847534179688,
-0.44204121828079224,
0.0008676342549733818,
0.2662237286567688,
0.41378432512283325,
0.5423170328140259,
1.0869629383087158,
0.431413471698761,
-0.7931063771247864,
0.8826584815979004,
-0.24776044487953186,
-0.40361151099205017,
-0.05347571521997452,
-0.42859897017478943,
0.16892178356647491,
-0.4406192898750305,
-0.10713007301092148,
-0.3444187641143799,
0.28543180227279663,
-0.7072042226791382,
0.42807620763778687,
-0.0838567465543747,
0.8653068542480469,
-0.8553727269172668,
0.47207626700401306,
0.635470449924469,
-0.3337355852127075,
-0.8508191108703613,
-0.26198428869247437,
-0.11448462307453156,
-0.6389466524124146,
0.30214807391166687,
-0.4554102420806885,
0.044398851692676544,
0.09623463451862335,
-0.649151623249054,
-1.1778275966644287,
0.9093633890151978,
-0.639612078666687,
-0.2784462869167328,
0.20464053750038147,
-0.11514760553836823,
0.28811705112457275,
-0.2524643540382385,
0.010661216452717781,
0.41876548528671265,
0.748940110206604,
0.2844654619693756,
-0.7727053761482239,
-0.3694884479045868,
0.0015032943338155746,
-0.44474777579307556,
0.7582978010177612,
-0.6002101898193359,
1.1840779781341553,
-0.5563543438911438,
-0.059654366225004196,
0.44384512305259705,
0.24690914154052734,
0.21076197922229767,
0.6629220843315125,
0.1442081481218338,
0.7282265424728394,
1.07012140750885,
-0.40835219621658325,
0.8811809420585632,
0.26432839035987854,
0.47430819272994995,
0.7238501906394958,
-0.6487724781036377,
0.7513749003410339,
0.31810489296913147,
-0.5682924389839172,
0.9228013753890991,
1.2906063795089722,
-0.15699204802513123,
0.8079374432563782,
0.05136508867144585,
-1.081600546836853,
0.325833261013031,
-0.20724765956401825,
-0.7530064582824707,
0.3150254189968109,
0.19055864214897156,
-0.6920982599258423,
-0.5770308971405029,
-0.24046507477760315,
-0.35662803053855896,
-0.11552901566028595,
-0.7631728649139404,
0.6720563769340515,
-0.016969164833426476,
-0.5103683471679688,
0.18857547640800476,
0.2877499461174011,
0.17368432879447937,
-0.5235732793807983,
-0.02939440682530403,
-0.22823619842529297,
0.2660655975341797,
-0.5670853853225708,
-0.5234526991844177,
0.5724433064460754,
-0.32430219650268555,
-0.5343255400657654,
0.18147465586662292,
0.763587236404419,
-0.16923809051513672,
-0.4515409469604492,
0.32472723722457886,
0.6959525346755981,
0.1665852814912796,
0.4250282347202301,
-0.23511263728141785,
0.24480605125427246,
-0.08044824004173279,
-0.06651552021503448,
0.27714768052101135,
0.3449169099330902,
0.22435641288757324,
0.4450142979621887,
0.43285664916038513,
-0.01808755099773407,
-0.10736498981714249,
-0.382819801568985,
0.4124940037727356,
-0.9542785882949829,
-0.5713282823562622,
-0.6307113766670227,
0.2740660607814789,
-0.02315417304635048,
-1.0836423635482788,
0.4145168364048004,
1.4406683444976807,
1.0359982252120972,
-0.4756383001804352,
1.067226529121399,
-0.21818485856056213,
0.9594791531562805,
0.41483086347579956,
0.5420440435409546,
-0.6030411720275879,
0.03835370019078255,
-0.4364396035671234,
-1.076962947845459,
-0.35716333985328674,
0.4539391100406647,
-0.022899555042386055,
-0.3429867625236511,
0.872571587562561,
0.5887166261672974,
-0.33473607897758484,
-0.11728022992610931,
0.048487238585948944,
-0.029941488057374954,
-0.12433847039937973,
0.5145376324653625,
0.7648399472236633,
-0.9344304800033569,
-0.10680416971445084,
-0.21577754616737366,
-0.6382725834846497,
-0.5047279000282288,
-0.9632009267807007,
-0.12959396839141846,
-0.16037796437740326,
0.035343267023563385,
-0.5662806630134583,
0.00255737011320889,
1.208324909210205,
0.5684957504272461,
-1.1113994121551514,
-0.5303789377212524,
0.3371853232383728,
0.3920421898365021,
-0.1874791383743286,
-0.24202413856983185,
0.2984568774700165,
0.15382249653339386,
-0.5908876657485962,
0.6875665783882141,
0.8089625239372253,
0.208888977766037,
0.19554761052131653,
0.15893013775348663,
-0.8229473829269409,
-0.14913435280323029,
0.17440445721149445,
0.9450570344924927,
-0.939853310585022,
-0.7114843130111694,
-0.03168516233563423,
-0.27094873785972595,
-0.05765746906399727,
0.17102102935314178,
-0.4046344757080078,
0.5180677175521851,
0.34591493010520935,
0.49933457374572754,
0.0561608150601387,
-0.054746925830841064,
0.5409556031227112,
-0.9069057703018188,
0.09425963461399078,
0.4134361147880554,
0.4154115319252014,
-0.4000864028930664,
-0.5910194516181946,
0.6713420748710632,
1.0073972940444946,
-0.6594868898391724,
-0.8743268847465515,
-0.19846712052822113,
-1.0016002655029297,
0.04189709946513176,
0.6762762069702148,
0.5009527802467346,
-0.4806513786315918,
-0.4174500107765198,
-0.5617399215698242,
-0.1254672110080719,
-0.1369970738887787,
0.7621601819992065,
1.179680585861206,
-0.7432094812393188,
0.07975747436285019,
-1.038639783859253,
0.6594986915588379,
-0.2419457733631134,
-0.3457581698894501,
-0.48644304275512695,
0.3832802176475525,
0.35236993432044983,
0.440481036901474,
0.614812433719635,
0.1408471167087555,
0.8338426351547241,
0.3126053214073181,
-0.1702686995267868,
0.2698982357978821,
-0.4559200704097748,
-0.028932858258485794,
-0.057962555438280106,
0.31015971302986145,
-1.0262157917022705
] |
togethercomputer/LLaMA-2-7B-32K
|
togethercomputer
| 2023-10-03T17:39:07Z | 8,006 | 483 |
transformers
|
[
"transformers",
"pytorch",
"llama",
"text-generation",
"custom_code",
"en",
"dataset:togethercomputer/RedPajama-Data-1T",
"dataset:togethercomputer/RedPajama-Data-Instruct",
"dataset:EleutherAI/pile",
"dataset:togethercomputer/Long-Data-Collections",
"license:llama2",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-07-26T02:19:41Z |
---
license: llama2
datasets:
- togethercomputer/RedPajama-Data-1T
- togethercomputer/RedPajama-Data-Instruct
- EleutherAI/pile
- togethercomputer/Long-Data-Collections
language:
- en
library_name: transformers
---
# LLaMA-2-7B-32K
## Model Description
LLaMA-2-7B-32K is an open-source, long context language model developed by Together, fine-tuned from Meta's original Llama-2 7B model.
This model represents our efforts to contribute to the rapid progress of the open-source ecosystem for large language models.
The model has been extended to a context length of 32K with position interpolation,
allowing applications on multi-document QA, long text summarization, etc.
## What's new?
This model introduces several improvements and new features:
1. **Extended Context:** The model has been trained to handle context lengths up to 32K, which is a significant improvement over the previous versions.
2. **Pre-training and Instruction Tuning:** We have shared our data recipe, which consists of a mixture of pre-training and instruction tuning data.
3. **Fine-tuning Examples:** We provide examples of how to fine-tune the model for specific applications, including book summarization and long context question and answering.
4. **Software Support:** We have updated both the inference and training stack to allow efficient inference and fine-tuning for 32K context.
## Model Architecture
The model follows the architecture of Llama-2-7B and extends it to handle a longer context. It leverages the recently released FlashAttention-2 and a range of other optimizations to improve the speed and efficiency of inference and training.
## Training and Fine-tuning
The model has been trained using a mixture of pre-training and instruction tuning data.
- In the first training phase of continued pre-training, our data mixture contains 25% RedPajama Book, 25% RedPajama ArXiv (including abstracts), 25% other data from RedPajama, and 25% from the UL2 Oscar Data, which is a part of OIG (Open-Instruction-Generalist), asking the model to fill in missing chunks, or complete the text.
To enhance the long-context ability, we exclude data shorter than 2K word. The inclusion of UL2 Oscar Data is effective in compelling the model to read and utilize long-range context.
- We then fine-tune the model to focus on its few shot capacity under long context, including 20% Natural Instructions (NI), 20% Public Pool of Prompts (P3), 20% the Pile. We decontaminated all data against HELM core scenarios . We teach the model to leverage the in-context examples by packing examples into one 32K-token sequence. To maintain the knowledge learned from the first piece of data, we incorporate 20% RedPajama-Data Book and 20% RedPajama-Data ArXiv.
Next, we provide examples of how to fine-tune the model for specific applications.
The example datasets are placed in [togethercomputer/Long-Data-Collections](https://huggingface.co/datasets/togethercomputer/Long-Data-Collections)
You can use the [OpenChatKit](https://github.com/togethercomputer/OpenChatKit) to fine-tune your own 32K model over LLaMA-2-7B-32K.
Please refer to [OpenChatKit](https://github.com/togethercomputer/OpenChatKit) for step-by-step illustrations.
1. Long Context QA.
We take as an example the multi-document question answering task from the paper “Lost in the Middle: How Language Models Use Long Contexts”. The input for the model consists of (i) a question that requires an answer and (ii) k documents, which are passages extracted from Wikipedia. Notably, only one of these documents contains the answer to the question, while the remaining k − 1 documents, termed as "distractor" documents, do not. To successfully perform this task, the model must identify and utilize the document containing the answer from its input context.
With OCK, simply run the following command to fine-tune:
```
bash training/finetune_llama-2-7b-32k-mqa.sh
```
2. Summarization.
Another example is BookSum, a unique dataset designed to address the challenges of long-form narrative summarization. This dataset features source documents from the literature domain, including novels, plays, and stories, and offers human-written, highly abstractive summaries. We here focus on chapter-level data. BookSum poses a unique set of challenges, necessitating that the model comprehensively read through each chapter.
With OCK, simply run the following command to fine-tune:
```
bash training/finetune_llama-2-7b-32k-booksum.sh
```
## Inference
You can use the [Together API](https://together.ai/blog/api-announcement) to try out LLaMA-2-7B-32K for inference.
The updated inference stack allows for efficient inference.
To run the model locally, we strongly recommend to install Flash Attention V2, which is necessary to obtain the best performance:
```
# Please update the path of `CUDA_HOME`
export CUDA_HOME=/usr/local/cuda-11.8
pip install transformers==4.31.0
pip install sentencepiece
pip install ninja
pip install flash-attn --no-build-isolation
pip install git+https://github.com/HazyResearch/flash-attention.git#subdirectory=csrc/rotary
```
You can use this model directly from the Hugging Face Model Hub or fine-tune it on your own data using the OpenChatKit.
```python
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("togethercomputer/LLaMA-2-7B-32K")
model = AutoModelForCausalLM.from_pretrained("togethercomputer/LLaMA-2-7B-32K", trust_remote_code=True, torch_dtype=torch.float16)
input_context = "Your text here"
input_ids = tokenizer.encode(input_context, return_tensors="pt")
output = model.generate(input_ids, max_length=128, temperature=0.7)
output_text = tokenizer.decode(output[0], skip_special_tokens=True)
print(output_text)
```
Alternatively, you can set `trust_remote_code=False` if you prefer not to use flash attention.
## Limitations and Bias
As with all language models, LLaMA-2-7B-32K may generate incorrect or biased content. It's important to keep this in mind when using the model.
## Community
Join us on [Together Discord](https://discord.gg/6ZVDU8tTD4)
|
[
-0.4121825397014618,
-0.8691097497940063,
0.3100746273994446,
0.2418070137500763,
-0.4891071021556854,
-0.1236610859632492,
-0.29828810691833496,
-0.7665615677833557,
0.14654986560344696,
0.4592806100845337,
-0.5415985584259033,
-0.5365027785301208,
-0.6062034964561462,
0.09750713407993317,
-0.29413872957229614,
1.1763818264007568,
0.02525627240538597,
-0.3119142949581146,
-0.2425762116909027,
-0.13643978536128998,
-0.421676903963089,
-0.3580375611782074,
-0.564001202583313,
-0.26788008213043213,
0.5765012502670288,
0.5267012715339661,
0.563477098941803,
0.6756906509399414,
0.3688828945159912,
0.2826564311981201,
-0.3681805729866028,
0.2613600194454193,
-0.7067223787307739,
0.010313708335161209,
-0.03752761334180832,
-0.47964200377464294,
-0.5981749296188354,
-0.11384596675634384,
0.5371326804161072,
0.3646846115589142,
-0.07182129472494125,
0.311677485704422,
-0.07504691928625107,
0.5844531059265137,
-0.5111314654350281,
0.3993558883666992,
-0.43327534198760986,
-0.30186253786087036,
-0.27159518003463745,
0.09065721929073334,
-0.21410483121871948,
-0.0793207585811615,
0.10978558659553528,
-0.6458052396774292,
-0.07729872316122055,
0.013923105783760548,
0.9000874757766724,
0.4242478907108307,
-0.5432147979736328,
-0.24194015562534332,
-0.3725315034389496,
0.8291791677474976,
-0.9368002414703369,
0.2298421710729599,
0.6765618920326233,
0.20548687875270844,
-0.2030392587184906,
-0.6364589929580688,
-0.7478541135787964,
-0.21154138445854187,
-0.07969560474157333,
0.07091925293207169,
-0.11466670036315918,
-0.0354672446846962,
0.2036760002374649,
0.38031479716300964,
-0.3268883228302002,
0.16715653240680695,
-0.6076659560203552,
0.03461304306983948,
0.7433061003684998,
0.16311003267765045,
0.24625036120414734,
-0.23080410063266754,
-0.289600133895874,
-0.2571250796318054,
-0.5903864502906799,
0.20582960546016693,
0.3058275282382965,
0.17438149452209473,
-0.4317030608654022,
0.5966805815696716,
-0.4533744752407074,
0.5268223285675049,
0.15460801124572754,
-0.4231214225292206,
0.2709048390388489,
-0.400608092546463,
-0.1935003250837326,
-0.11707954853773117,
0.7133280634880066,
0.5402007102966309,
0.18604370951652527,
0.058206282556056976,
-0.09293584525585175,
0.04693618044257164,
0.07399293780326843,
-0.8416581749916077,
-0.044841427356004715,
0.282634973526001,
-0.2579576075077057,
-0.33319729566574097,
-0.25683408975601196,
-0.6852318048477173,
-0.288046270608902,
-0.3395446538925171,
0.27764400839805603,
-0.508705198764801,
-0.19425687193870544,
0.11247184872627258,
-0.02318519353866577,
0.3597758710384369,
0.3415885269641876,
-0.9650826454162598,
0.3233605921268463,
0.5585365891456604,
0.7438069581985474,
-0.09758191555738449,
-0.4659452438354492,
-0.2148827612400055,
0.09949815273284912,
-0.2352253496646881,
0.7453394532203674,
-0.362373024225235,
-0.22410692274570465,
-0.2568448483943939,
0.10179711878299713,
0.051190558820962906,
-0.4599306285381317,
0.288798451423645,
-0.5176339149475098,
0.22990737855434418,
-0.18550120294094086,
-0.5075539946556091,
-0.3327014148235321,
0.19055397808551788,
-0.5358262658119202,
1.279014229774475,
0.3032747507095337,
-0.7346202731132507,
0.036499734967947006,
-0.6930449604988098,
-0.44519853591918945,
-0.2782069444656372,
0.10556443780660629,
-0.39868608117103577,
-0.055708516389131546,
0.3735283613204956,
0.48493510484695435,
-0.4674423038959503,
0.389100581407547,
-0.28190749883651733,
-0.4222548007965088,
0.13167841732501984,
-0.08890781551599503,
0.7910708785057068,
0.15926727652549744,
-0.3982176184654236,
0.08955664932727814,
-0.7007260322570801,
-0.272402286529541,
0.2915987968444824,
-0.36942222714424133,
-0.28813639283180237,
-0.07170149683952332,
-0.03149385377764702,
0.01872832700610161,
0.37499818205833435,
-0.4283343553543091,
0.3146563470363617,
-0.5026500225067139,
0.5306529402732849,
0.6064673662185669,
-0.058276306837797165,
0.46948540210723877,
-0.40395668148994446,
0.4515042006969452,
0.22330322861671448,
0.14053449034690857,
-0.34884122014045715,
-0.5299422144889832,
-0.9089400172233582,
-0.2604692280292511,
0.1556296944618225,
0.5171792507171631,
-0.43498897552490234,
0.4326336979866028,
-0.16686676442623138,
-0.6719006896018982,
-0.5129139423370361,
0.2031070739030838,
0.4437752366065979,
0.6455365419387817,
0.4598800539970398,
-0.38234907388687134,
-0.40813615918159485,
-0.8311655521392822,
0.08334661275148392,
-0.18447567522525787,
0.0179784893989563,
0.3651901185512543,
0.5600010752677917,
-0.5490533709526062,
0.9420561790466309,
-0.5536494255065918,
-0.29319727420806885,
-0.2653418183326721,
-0.0912841185927391,
0.2241070568561554,
0.4356401562690735,
0.5671586990356445,
-0.6656801700592041,
-0.36680370569229126,
-0.048573873937129974,
-0.7286862134933472,
-0.12811824679374695,
0.04346470534801483,
-0.25347813963890076,
0.3452620804309845,
0.5513657331466675,
-0.7125774621963501,
0.37207794189453125,
0.5072794556617737,
-0.36360403895378113,
0.46363410353660583,
0.028145764023065567,
0.057209644466638565,
-1.2521806955337524,
0.15675419569015503,
-0.05189073830842972,
-0.15470866858959198,
-0.5026584267616272,
0.23021183907985687,
0.08257690817117691,
0.026114940643310547,
-0.522686779499054,
0.936757504940033,
-0.3811645805835724,
0.055097587406635284,
-0.2704803943634033,
0.1998741179704666,
0.06547436863183975,
0.7210880517959595,
-0.0742221400141716,
0.7216510772705078,
0.42500194907188416,
-0.6507123112678528,
0.3735131323337555,
0.45565125346183777,
-0.4935191869735718,
0.39466142654418945,
-0.7270065546035767,
0.22313061356544495,
-0.15689410269260406,
0.44084858894348145,
-0.9694892764091492,
-0.5134822726249695,
0.2960262596607208,
-0.4794030487537384,
0.3578902781009674,
0.08742813766002655,
-0.46273618936538696,
-0.32606372237205505,
-0.3294685184955597,
0.5545275211334229,
0.533883810043335,
-0.5551801323890686,
0.48205605149269104,
0.4942488670349121,
-0.2821430563926697,
-0.7624204754829407,
-0.672871470451355,
-0.02236693724989891,
-0.3534582555294037,
-0.6641278862953186,
0.38988861441612244,
-0.26608923077583313,
-0.19529959559440613,
-0.2119317352771759,
-0.016321072354912758,
-0.08097749948501587,
0.13190756738185883,
0.3246362805366516,
0.20692536234855652,
-0.15493348240852356,
0.1909586787223816,
0.3384040296077728,
-0.00014921430556569248,
-0.1353161782026291,
0.08727333694696426,
0.5288864374160767,
-0.2128472477197647,
-0.019163910299539566,
-0.47896116971969604,
0.32354220747947693,
0.5576547384262085,
-0.17752912640571594,
0.7493512630462646,
0.5864375829696655,
-0.3884788751602173,
0.020655134692788124,
-0.635297417640686,
-0.1708272248506546,
-0.49371659755706787,
0.47750741243362427,
-0.26548516750335693,
-0.9177370667457581,
0.6543503999710083,
0.10379430651664734,
0.20367662608623505,
0.46128565073013306,
0.6123292446136475,
-0.06752572953701019,
0.7228214740753174,
0.8379418253898621,
-0.3274437189102173,
0.5479543209075928,
-0.18945889174938202,
-0.004437411203980446,
-0.9150176644325256,
-0.28932493925094604,
-0.28223544359207153,
-0.22481538355350494,
-0.3121456801891327,
-0.38387924432754517,
0.3040972948074341,
0.31114068627357483,
-0.3507545292377472,
0.44248878955841064,
-0.4215446412563324,
0.5326303243637085,
0.6085818409919739,
0.23094594478607178,
0.18155105412006378,
-0.13046307861804962,
0.2022208422422409,
0.16078050434589386,
-0.53139728307724,
-0.4290235936641693,
1.0010749101638794,
0.5490673184394836,
0.6798019409179688,
0.1289181113243103,
0.6757506132125854,
0.08799074590206146,
0.315659761428833,
-0.6995071768760681,
0.5419918894767761,
0.06395815312862396,
-0.6449382305145264,
-0.3737577199935913,
-0.24727453291416168,
-0.9068565964698792,
0.11564236879348755,
0.04686432331800461,
-0.7971464991569519,
0.06206682324409485,
0.04153686761856079,
-0.4038442075252533,
-0.011012287810444832,
-0.7379919290542603,
0.8745630383491516,
-0.10002126544713974,
-0.12734803557395935,
-0.23820750415325165,
-0.9035014510154724,
0.562751829624176,
-0.1249520480632782,
0.1369946151971817,
-0.27511805295944214,
-0.06515379995107651,
0.8816274404525757,
-0.3597122132778168,
1.2084788084030151,
0.0777471661567688,
-0.24868474900722504,
0.5105311870574951,
-0.1244717612862587,
0.42009222507476807,
0.06288088113069534,
-0.060356900095939636,
0.36136239767074585,
0.14836086332798004,
-0.3820062279701233,
-0.41664204001426697,
0.6170106530189514,
-0.9700068235397339,
-0.5733477473258972,
-0.2976166903972626,
-0.6822147965431213,
-0.07630482316017151,
0.2364879697561264,
0.2414408028125763,
0.23207250237464905,
-0.08945835381746292,
0.17447373270988464,
0.5156040191650391,
-0.42502519488334656,
0.3870861530303955,
0.42735472321510315,
-0.16419754922389984,
-0.5004947185516357,
0.6451947689056396,
-0.0412885919213295,
0.27737370133399963,
0.36328378319740295,
0.1745387762784958,
-0.29800957441329956,
-0.19969496130943298,
-0.43326514959335327,
0.5067755579948425,
-0.7740567326545715,
-0.38185644149780273,
-0.6709316968917847,
-0.2234787791967392,
-0.6146522760391235,
-0.10653167963027954,
-0.3373135030269623,
-0.2686443328857422,
-0.6129101514816284,
-0.07328606396913528,
0.6359815001487732,
0.6439460515975952,
0.08528315275907516,
0.6296099424362183,
-0.6394470930099487,
0.42997151613235474,
0.2546769976615906,
0.25375083088874817,
0.09151539951562881,
-0.7767191529273987,
-0.35400691628456116,
0.05778003856539726,
-0.37723708152770996,
-0.8211997747421265,
0.4049133360385895,
0.28528735041618347,
0.24580074846744537,
0.3306211531162262,
0.15892601013183594,
0.7488917708396912,
-0.375957727432251,
0.7532761096954346,
0.05068086460232735,
-0.9132737517356873,
0.5617433786392212,
-0.48639702796936035,
0.5210493803024292,
0.5059674382209778,
0.3491535484790802,
-0.5330497026443481,
-0.37768423557281494,
-0.5340105295181274,
-0.8279247283935547,
0.7972427010536194,
0.09031162410974503,
0.2349713146686554,
-0.1201704666018486,
0.4890211820602417,
0.057491350919008255,
0.1984798014163971,
-0.8606258630752563,
-0.18717548251152039,
-0.14690424501895905,
-0.3625418245792389,
-0.23300528526306152,
-0.4397444725036621,
-0.11670311540365219,
-0.41988521814346313,
0.6143144965171814,
-0.22587333619594574,
0.28662827610969543,
0.18732230365276337,
-0.22748881578445435,
-0.09958897531032562,
0.05793475732207298,
0.7245086431503296,
0.6394529342651367,
-0.20415930449962616,
-0.07695578038692474,
0.373982310295105,
-0.5010226368904114,
-0.06191819906234741,
0.2418845146894455,
-0.04349599778652191,
-0.22020088136196136,
0.41743943095207214,
0.8990728259086609,
0.3721281588077545,
-0.7574993371963501,
0.44835755228996277,
0.03628348931670189,
0.06476511806249619,
-0.2585732042789459,
0.1277170032262802,
0.32307279109954834,
0.5000190138816833,
0.27458447217941284,
-0.3243655264377594,
-0.015337804332375526,
-0.5869415998458862,
0.05922536551952362,
0.22937346994876862,
-0.04908719286322594,
-0.3099557161331177,
0.6974411606788635,
0.16731223464012146,
-0.21100401878356934,
0.5751479268074036,
-0.05062156543135643,
-0.44395068287849426,
0.8586157560348511,
0.6379842758178711,
0.5383142232894897,
-0.24672360718250275,
0.06328604370355606,
0.4597071707248688,
0.2650096118450165,
-0.08970818668603897,
0.10163860768079758,
-0.24756430089473724,
-0.5092738270759583,
-0.3328976035118103,
-0.807336688041687,
-0.4377773106098175,
0.20097719132900238,
-0.5679024457931519,
0.4225271940231323,
-0.3231116831302643,
-0.056514885276556015,
-0.12052278965711594,
0.15392401814460754,
-0.5485431551933289,
0.2244640588760376,
0.043224550783634186,
0.9164706468582153,
-0.625482976436615,
0.8860845565795898,
0.4187043011188507,
-0.5224158763885498,
-0.687441885471344,
-0.1952487677335739,
-0.057580746710300446,
-0.8554927706718445,
0.4102950096130371,
0.4299362897872925,
0.09568870067596436,
-0.03907209634780884,
-0.7459361553192139,
-1.0297496318817139,
1.3411661386489868,
0.3379462659358978,
-0.6389310359954834,
-0.18354432284832,
-0.039630524814128876,
0.5639354586601257,
-0.28367704153060913,
0.3013446033000946,
0.6708642244338989,
0.32606762647628784,
-0.009895500726997852,
-1.024664282798767,
0.11043331027030945,
-0.2463187277317047,
-0.14045487344264984,
0.012065263465046883,
-0.9276342391967773,
0.9019867777824402,
-0.42619502544403076,
-0.1506207287311554,
0.2573755383491516,
0.9210454225540161,
0.34364649653434753,
0.44251132011413574,
0.3979737162590027,
0.6112298965454102,
0.7348611950874329,
0.20328781008720398,
1.0947836637496948,
-0.30114540457725525,
0.32117941975593567,
1.0827667713165283,
-0.07569746673107147,
0.9526618719100952,
0.38567665219306946,
-0.10802314430475235,
0.4986676573753357,
0.8878768682479858,
0.08355795592069626,
0.48997631669044495,
-0.03683841973543167,
-0.13576273620128632,
-0.015149840153753757,
-0.04377227649092674,
-0.48072347044944763,
0.42415106296539307,
0.33123481273651123,
-0.2579469084739685,
-0.08130262792110443,
-0.03862353786826134,
0.2133813053369522,
-0.21519485116004944,
-0.11001937091350555,
0.7908325791358948,
0.3158155381679535,
-0.8126781582832336,
0.7522826790809631,
0.16068314015865326,
0.8693493604660034,
-0.610193133354187,
0.11827322095632553,
-0.4733928143978119,
0.14200055599212646,
-0.05788814648985863,
-0.5988942384719849,
0.23648744821548462,
-0.016758564859628677,
-0.21515245735645294,
0.09348977357149124,
0.6283672451972961,
-0.5454235672950745,
-0.37269794940948486,
0.3623533844947815,
0.1836351603269577,
0.36324211955070496,
-0.07991351187229156,
-0.618730366230011,
0.20590521395206451,
-0.057804640382528305,
-0.47260263562202454,
0.4577266275882721,
0.29996457695961,
-0.08622943609952927,
0.6808411478996277,
0.5898956656455994,
-0.19071517884731293,
-0.07296057790517807,
-0.1297072023153305,
1.0200093984603882,
-0.7056155800819397,
-0.5414257645606995,
-0.713839590549469,
0.491694837808609,
0.028896132484078407,
-0.5722989439964294,
0.5791961550712585,
0.3331220746040344,
0.885702908039093,
-0.013329128734767437,
0.45367681980133057,
-0.05637636408209801,
0.4485345184803009,
-0.4025658667087555,
0.7619141936302185,
-0.7230538725852966,
0.12305112183094025,
-0.3051972985267639,
-0.9157195687294006,
-0.19611439108848572,
0.5863077044487,
-0.238555446267128,
0.025516575202345848,
0.5373677611351013,
0.8434184789657593,
-0.12599335610866547,
-0.13073591887950897,
0.1762278974056244,
0.2608327269554138,
0.18672797083854675,
0.6984647512435913,
0.636299192905426,
-0.6281887888908386,
0.47419974207878113,
-0.3426177203655243,
-0.35486650466918945,
-0.35849758982658386,
-0.7685863375663757,
-1.0677660703659058,
-0.7213631868362427,
-0.24146845936775208,
-0.29712221026420593,
0.022661184892058372,
0.7620307803153992,
0.6823520660400391,
-0.5366862416267395,
-0.2788522243499756,
0.22851794958114624,
0.13554158806800842,
-0.029922807589173317,
-0.22696855664253235,
0.29848289489746094,
-0.2727288603782654,
-0.8029371500015259,
0.43911343812942505,
0.03647758811712265,
0.16199219226837158,
-0.1877255141735077,
-0.14493723213672638,
-0.2643131911754608,
0.25664761662483215,
0.7490209937095642,
0.39807042479515076,
-0.7329891324043274,
-0.21793048083782196,
0.04909060522913933,
-0.19988012313842773,
0.12503398954868317,
0.2911112606525421,
-0.6736819744110107,
0.23333923518657684,
0.2858966290950775,
0.6337622404098511,
0.6921557188034058,
0.09566978365182877,
0.3621326684951782,
-0.6850252151489258,
0.24675066769123077,
0.040634918957948685,
0.28978824615478516,
0.33923426270484924,
-0.4706258773803711,
0.5836480855941772,
0.05819400027394295,
-0.6945953369140625,
-0.9705258011817932,
0.1043752133846283,
-1.2133654356002808,
-0.35378509759902954,
1.3484762907028198,
-0.07913351058959961,
-0.5016335844993591,
0.1261068880558014,
-0.39273038506507874,
0.4459519684314728,
-0.4403739273548126,
0.9032678008079529,
0.7437991499900818,
-0.04433855041861534,
-0.23987679183483124,
-0.42158278822898865,
0.42592352628707886,
0.41014808416366577,
-0.9328432083129883,
0.059568896889686584,
0.505192220211029,
0.43874025344848633,
0.14210762083530426,
0.7876530289649963,
0.049531057476997375,
0.2847023904323578,
-0.11114095151424408,
0.09942562133073807,
-0.09855319559574127,
-0.37093812227249146,
-0.26449909806251526,
-0.06193556264042854,
-0.1268014907836914,
-0.0674121156334877
] |
nuigurumi/basil_mix
|
nuigurumi
| 2023-05-16T09:42:46Z | 7,998 | 961 |
diffusers
|
[
"diffusers",
"license:other",
"endpoints_compatible",
"has_space",
"diffusers:StableDiffusionPipeline",
"region:us"
] | null | 2023-01-04T07:45:22Z |
---
license: other
---
## Model Description
- merged model.
- realistic texture and Asian face.
- designed to maintain a responsive reaction to danbooru based prompts.
## License
- This model and its derivatives(image, merged model) can be freely used for non-profit purposes only.
- You may not use this model and its derivatives on websites, apps, or other platforms where you can or plan to earn income or donations. If you wish to use it for such purposes, please contact nuigurumi.
- Introducing the model itself is allowed for both commercial and non-commercial purposes, but please include the model name and a link to this repository when doing so.
- このモデル及びその派生物(生成物、マージモデル)は、完全に非営利目的の使用に限り、自由に利用することができます。
- あなたが収入や寄付を得ることのできる、もしくは得る予定のWebサイト、アプリ、その他でこのモデル及びその派生物を利用することはできません。利用したい場合は[nuigurumi](https://twitter.com/nuigurumi1_KR)に連絡してください。
- モデル自体の紹介することは、営利非営利を問わず自由です、その場合はモデル名と当リポジトリのリンクを併記してください。
- check [License](https://huggingface.co/nuigurumi/basil_mix/blob/main/License.md)
_読むのめんどくさい人向け
商用利用をすべて禁止します。fanboxやpatreonなどの支援サイトでの使用も全て禁止します。
マージモデル(cilled_re...とか)も派生物なので商用利用禁止になります。 商用利用をしたいなら私に連絡してください。
どこかでモデルを紹介していただけるなら、リンクも併記してくれると嬉しいです。_
# Gradio
We support a [Gradio](https://github.com/gradio-app/gradio) Web UI to run basil_mix:
[](https://huggingface.co/spaces/akhaliq/basil_mix)
## Recommendations
- VAE: [vae-ft-mse-840000](https://huggingface.co/stabilityai/sd-vae-ft-mse-original) from StabilityAI
- Prompting: Simple prompts are better. Large amounts of quality tags and negative prompts can have negative effects.
|
[
-0.9155856370925903,
-0.7880381941795349,
0.10569765418767929,
0.4262489378452301,
-0.6064846515655518,
-0.004542222246527672,
0.01861104555428028,
-0.722990870475769,
0.8848912715911865,
0.4845278263092041,
-1.0158603191375732,
-0.4801868498325348,
-0.4657001793384552,
-0.00460018077865243,
0.06413566321134567,
1.1347808837890625,
-0.20943032205104828,
-0.10636863112449646,
0.013192215003073215,
-0.1423531323671341,
-0.7019309997558594,
-0.12166541069746017,
-0.5734015703201294,
-0.49572786688804626,
0.24774287641048431,
0.37674230337142944,
1.0353657007217407,
0.37443307042121887,
0.46025389432907104,
0.33044254779815674,
-0.2927933931350708,
0.0722711831331253,
-0.3987327218055725,
-0.11834313720464706,
0.030632616952061653,
-0.17563273012638092,
-0.7994040846824646,
0.1099495217204094,
0.4506814777851105,
0.31693771481513977,
-0.35295140743255615,
-0.023002464324235916,
0.1952182799577713,
0.7559282779693604,
-0.3289407193660736,
0.052971575409173965,
0.02662140689790249,
0.14492058753967285,
0.037998706102371216,
0.01706027425825596,
0.2415306568145752,
-0.6004635095596313,
-0.1337510347366333,
-1.2349625825881958,
-0.052940137684345245,
-0.2898828685283661,
1.3490902185440063,
0.0057187145575881,
-0.22106148302555084,
0.009600338526070118,
-0.5246651768684387,
0.6045452356338501,
-0.7126230001449585,
0.3203205466270447,
0.28946155309677124,
0.7832437753677368,
-0.24701228737831116,
-0.6671404838562012,
-0.7279414534568787,
-0.002274909056723118,
-0.09268338233232498,
0.37191036343574524,
-0.2481330782175064,
-0.138943612575531,
0.2819730043411255,
0.5508455038070679,
-0.7023129463195801,
-0.2522895634174347,
-0.270783394575119,
-0.011639324016869068,
0.6677210330963135,
0.10221241414546967,
0.8492962718009949,
-0.2983730435371399,
-0.6371822953224182,
-0.31382107734680176,
-0.2351452112197876,
0.23055031895637512,
0.2642490267753601,
0.12290725857019424,
-0.8164771795272827,
0.3055153489112854,
-0.3675185441970825,
0.4675416946411133,
0.41542452573776245,
-0.2999354898929596,
0.537519633769989,
-0.41603609919548035,
-0.3360007107257843,
-0.3481699526309967,
1.011102557182312,
1.0011311769485474,
0.1732531487941742,
0.11102348566055298,
-0.17943517863750458,
0.1384832113981247,
0.01203119195997715,
-1.222633957862854,
-0.07119414210319519,
0.4773620367050171,
-0.5259940028190613,
-0.3557169437408447,
0.1395167112350464,
-1.301845908164978,
-0.3018574118614197,
-0.17926770448684692,
0.18088151514530182,
-0.6624349355697632,
-0.8080230355262756,
0.004679608624428511,
-0.15654806792736053,
0.18740002810955048,
0.6395813226699829,
-0.8722919225692749,
0.4241768419742584,
0.5089645385742188,
0.9266922473907471,
0.09710457921028137,
-0.1139642596244812,
-0.10271606594324112,
0.22805847227573395,
-0.40036505460739136,
0.6505990028381348,
-0.2813786268234253,
-0.8766669034957886,
-0.11624456942081451,
0.1682881861925125,
-0.07205243408679962,
-0.5717884302139282,
0.8011895418167114,
-0.21261604130268097,
0.2636244595050812,
-0.28193795680999756,
-0.15887156128883362,
-0.410550057888031,
0.1885404735803604,
-0.6967848539352417,
0.9246968626976013,
0.35865283012390137,
-0.8264189958572388,
0.2533552348613739,
-0.6899337768554688,
-0.19499890506267548,
0.24432209134101868,
-0.313518762588501,
-0.42486855387687683,
-0.0579642653465271,
0.15893405675888062,
0.42932718992233276,
-0.27305901050567627,
0.35653144121170044,
-0.5493617653846741,
-0.3332601487636566,
0.35588014125823975,
0.05833898484706879,
1.161564826965332,
0.5633472204208374,
-0.3980548679828644,
0.0045252954587340355,
-0.8535169363021851,
-0.10255298763513565,
0.35717934370040894,
-0.10050252079963684,
-0.41266775131225586,
-0.5442027449607849,
0.31436601281166077,
0.41769275069236755,
0.3633613884449005,
-0.36920151114463806,
0.3532513976097107,
-0.11272960901260376,
0.28588300943374634,
0.714691162109375,
0.09472738951444626,
0.564086377620697,
-0.6823554039001465,
0.9273537397384644,
0.2970507740974426,
0.5087571144104004,
-0.13405288755893707,
-0.45347753167152405,
-0.6565461754798889,
-0.5491235852241516,
-0.09573989361524582,
0.5213320255279541,
-1.046457052230835,
0.43931126594543457,
-0.1071886196732521,
-0.9276098608970642,
-0.3883267641067505,
-0.07254815846681595,
0.5526843667030334,
0.5508719086647034,
0.1626584678888321,
-0.6361766457557678,
-0.3942919373512268,
-0.7293800115585327,
-0.18911351263523102,
-0.08252619206905365,
0.06594359129667282,
0.7231196761131287,
0.4145376980304718,
-0.7434918880462646,
0.8171865344047546,
-0.689193606376648,
-0.38303062319755554,
-0.14603069424629211,
0.20129887759685516,
0.6713054180145264,
0.7875115275382996,
1.1846332550048828,
-1.0736100673675537,
-0.8094618320465088,
0.2898443043231964,
-0.8292864561080933,
-0.30756741762161255,
0.03770783171057701,
-0.2767530679702759,
0.15277881920337677,
0.1947442889213562,
-1.0617897510528564,
0.5503602623939514,
0.6018847227096558,
-0.6097425818443298,
0.7434854507446289,
-0.12585608661174774,
0.4903884530067444,
-1.5624449253082275,
0.22253231704235077,
0.26895734667778015,
-0.11068401485681534,
-0.6960055828094482,
0.5306570529937744,
-0.10671315342187881,
-0.2955356538295746,
-0.5990516543388367,
1.0429279804229736,
-0.6772285103797913,
0.23885440826416016,
-0.24726027250289917,
0.04399247467517853,
0.23629161715507507,
0.6022358536720276,
-0.341520756483078,
0.7197302579879761,
0.6497185230255127,
-0.7037869095802307,
0.5558151006698608,
0.16135673224925995,
-0.32951539754867554,
0.6767497062683105,
-0.8656805753707886,
-0.24710321426391602,
-0.04265744239091873,
0.2042275369167328,
-1.2304306030273438,
-0.6203511953353882,
0.8072566390037537,
-0.6369071006774902,
0.3906443417072296,
0.016729043796658516,
-0.5092316269874573,
-0.30898988246917725,
-0.6605242490768433,
0.4030992090702057,
0.7339782118797302,
-0.4983047842979431,
1.0092554092407227,
0.20848439633846283,
-0.08982301503419876,
-0.33091092109680176,
-0.8311604261398315,
-0.1986590176820755,
-0.5560089945793152,
-0.8028320670127869,
0.5304621458053589,
-0.4035760164260864,
-0.28082314133644104,
0.06297118961811066,
0.09015046060085297,
-0.4436388611793518,
-0.022056151181459427,
0.5760706067085266,
0.5211701989173889,
0.09748420119285583,
-0.25916633009910583,
0.2644347846508026,
-0.20637895166873932,
-0.15885983407497406,
0.18117505311965942,
0.6428550481796265,
0.0016713682562112808,
-0.16475006937980652,
-1.0203256607055664,
0.2565900683403015,
0.9012812376022339,
-0.1225496158003807,
0.6263880133628845,
0.8161721229553223,
-0.43931204080581665,
0.2872972786426544,
-0.6645416617393494,
-0.22661283612251282,
-0.5265909433364868,
0.03871762752532959,
-0.44583550095558167,
-0.6712814569473267,
1.1201086044311523,
-0.002313807839527726,
-0.06817525625228882,
0.6507543921470642,
0.4048701226711273,
0.05227743089199066,
0.9837589859962463,
0.5782051086425781,
-0.06568524986505508,
0.7870507836341858,
-0.5158408284187317,
-0.0005047988379374146,
-0.903972327709198,
-0.5626501441001892,
-0.2165953516960144,
-0.2774055004119873,
-0.967561662197113,
-0.4187087118625641,
0.21676896512508392,
0.1772473007440567,
-0.29748889803886414,
0.5080224275588989,
-0.7380787134170532,
0.20502761006355286,
0.33714941143989563,
0.2103322297334671,
0.10933247208595276,
0.08981498330831528,
-0.2587563693523407,
-0.1064402237534523,
-0.44046249985694885,
-0.17734313011169434,
0.5261155366897583,
0.41916120052337646,
0.9111084342002869,
0.37082746624946594,
0.7600142359733582,
-0.11166060715913773,
0.08948951959609985,
-0.4100419580936432,
0.685487687587738,
0.028656618669629097,
-0.7683224678039551,
-0.03290368244051933,
-0.5153022408485413,
-0.8705338835716248,
0.49920564889907837,
-0.2897639870643616,
-0.8126824498176575,
0.5722399353981018,
-0.10354365408420563,
-0.4871777594089508,
0.14148089289665222,
-0.7311597466468811,
0.7937861680984497,
-0.264695942401886,
-0.6168021559715271,
-0.006510457489639521,
-0.6199894547462463,
0.4609017074108124,
0.2346547245979309,
0.4262973368167877,
-0.2900973856449127,
-0.041623104363679886,
0.7065232396125793,
-0.784915566444397,
0.9463984966278076,
-0.2566828727722168,
-0.10931384563446045,
0.4596610963344574,
0.1722707748413086,
0.3250690996646881,
0.3933640122413635,
0.2241767793893814,
0.40443044900894165,
0.050636205822229385,
-0.2812735140323639,
-0.7408079504966736,
1.023978590965271,
-1.0373255014419556,
-0.44090449810028076,
-0.730698823928833,
-0.3901742100715637,
0.2827082872390747,
0.4500555098056793,
0.5510640740394592,
0.3144191801548004,
-0.14388500154018402,
-0.10190042853355408,
0.5142455697059631,
-0.20739859342575073,
0.5032249093055725,
0.5609725117683411,
-0.8159289956092834,
-0.9372990131378174,
0.8414356708526611,
0.13919015228748322,
0.1781228929758072,
0.0902073085308075,
0.1806555688381195,
-0.10053085535764694,
0.08341080695390701,
-0.5250134468078613,
0.515605628490448,
-0.31446123123168945,
-0.23352311551570892,
-0.3472902774810791,
-0.0905904471874237,
-0.6308388710021973,
-0.17281220853328705,
-0.25162574648857117,
-0.4158827066421509,
-0.7312902212142944,
-0.019450338557362556,
0.6653023362159729,
0.295297235250473,
-0.27908191084861755,
0.468182235956192,
-0.8699470162391663,
0.48683762550354004,
0.24710404872894287,
0.523555338382721,
-0.000878091377671808,
-0.6171504855155945,
-0.14775466918945312,
0.32318729162216187,
-0.42764362692832947,
-0.9587436318397522,
0.7189962267875671,
-0.09141372889280319,
0.37495625019073486,
0.7065366506576538,
-0.1815938502550125,
0.9503633379936218,
-0.2718735933303833,
0.7310002446174622,
0.7048534154891968,
-0.6734161972999573,
0.6002597808837891,
-0.8922740817070007,
0.3936655521392822,
0.6361831426620483,
0.49836063385009766,
-0.7339414358139038,
-0.07604106515645981,
-0.8183622360229492,
-0.7950804233551025,
0.7465792894363403,
0.1382691115140915,
0.20151475071907043,
0.18596258759498596,
0.39610162377357483,
-0.07256518304347992,
0.32446345686912537,
-0.7564258575439453,
-0.4777444303035736,
-0.30664899945259094,
0.2005130499601364,
0.03640373796224594,
-0.29988178610801697,
-0.2663533687591553,
-0.4681408107280731,
0.7799732685089111,
0.1329815536737442,
0.3047753572463989,
0.12107513099908829,
0.46930962800979614,
-0.48519861698150635,
-0.02536901645362377,
0.6589179039001465,
0.6429587602615356,
-0.46262192726135254,
-0.39778921008110046,
-0.23260977864265442,
-0.49648517370224,
-0.09011539071798325,
0.38401004672050476,
-0.3984459936618805,
0.35354623198509216,
0.10849824547767639,
1.0189974308013916,
0.2693163752555847,
-0.5461592674255371,
0.600561261177063,
-0.33218255639076233,
-0.15768562257289886,
-0.478468120098114,
0.22245031595230103,
0.11725648492574692,
0.4011145532131195,
0.3267112076282501,
0.034841328859329224,
0.3599262535572052,
-0.6771444082260132,
0.044616758823394775,
0.40551772713661194,
-0.3479216694831848,
-0.26892516016960144,
0.8945947289466858,
0.06432361900806427,
-0.08397840708494186,
0.4157153069972992,
-0.2309304028749466,
-0.4296029210090637,
0.9155191779136658,
0.4379797875881195,
1.0476868152618408,
-0.65335613489151,
0.47957104444503784,
0.6656228303909302,
-0.09540218114852905,
0.1036762148141861,
0.5874989032745361,
0.11013372987508774,
-0.5174220204353333,
-0.1838221400976181,
-0.514285683631897,
-0.23859618604183197,
0.16089840233325958,
-0.8447215557098389,
0.5783007144927979,
-0.9908294081687927,
-0.3635885715484619,
-0.21643851697444916,
0.052746664732694626,
-0.2321162074804306,
0.43663886189460754,
-0.16036957502365112,
1.1033973693847656,
-1.0414936542510986,
0.6450895071029663,
0.9859760999679565,
-0.7853066325187683,
-1.0014374256134033,
-0.02136680670082569,
0.1912502646446228,
-0.6196911334991455,
0.33078643679618835,
0.3284361958503723,
0.06519529223442078,
-0.39854758977890015,
-0.6501210331916809,
-0.8583325743675232,
1.3733832836151123,
0.2556685209274292,
-0.45723047852516174,
0.16633489727973938,
-0.16716188192367554,
0.6678781509399414,
-0.3174190819263458,
0.42602378129959106,
0.28377750515937805,
0.5000101923942566,
0.5585650205612183,
-1.0569263696670532,
0.13508273661136627,
-0.6460645794868469,
0.24972975254058838,
0.03326958790421486,
-1.1873693466186523,
1.2386200428009033,
-0.06284848600625992,
-0.35330742597579956,
0.3437369167804718,
0.6521176695823669,
0.5700079798698425,
0.5524743795394897,
0.3580213785171509,
0.9286302924156189,
0.4823228418827057,
-0.1574544906616211,
1.1643848419189453,
-0.3587428033351898,
0.5153751373291016,
0.8373702764511108,
0.07710161060094833,
0.4087042808532715,
0.3635384142398834,
-0.3301875591278076,
0.7106836438179016,
0.9284122586250305,
0.07112527638673782,
0.7538429498672485,
-0.2602306306362152,
-0.3437935411930084,
0.053931042551994324,
-0.601294755935669,
-0.8147223591804504,
0.15506938099861145,
0.10118801146745682,
-0.09635721147060394,
-0.02829379215836525,
0.015529988333582878,
0.28935399651527405,
0.02550833858549595,
-0.290989488363266,
0.7858644127845764,
0.11755786091089249,
-0.5581639409065247,
0.7883138656616211,
-0.1648503988981247,
0.7670370936393738,
-0.6503971219062805,
-0.26089170575141907,
-0.5963056087493896,
-0.028658641502261162,
-0.4809383749961853,
-0.86704421043396,
0.0441070981323719,
-0.09352065622806549,
-0.10866318643093109,
-0.03735501691699028,
0.6543854475021362,
-0.3328881859779358,
-0.6462169885635376,
0.5522294044494629,
0.0929219201207161,
0.21404413878917694,
0.17879271507263184,
-1.012718915939331,
0.4865967631340027,
0.1839647740125656,
-0.29956111311912537,
0.40574464201927185,
0.5383166074752808,
0.10948434472084045,
0.7981421947479248,
0.6128205060958862,
0.0682249367237091,
-0.11522500216960907,
-0.004075927194207907,
1.3945560455322266,
-0.5249024033546448,
-0.8934335708618164,
-0.7862304449081421,
0.7440977096557617,
-0.16276675462722778,
-0.271047443151474,
0.6973592042922974,
0.5333204865455627,
0.7611595392227173,
-0.26434606313705444,
0.8357001543045044,
-0.2957988381385803,
0.708513081073761,
-0.357841432094574,
0.805191159248352,
-1.1496237516403198,
-0.08903677761554718,
-0.817575216293335,
-1.0713932514190674,
-0.15599901974201202,
0.7757807374000549,
0.040207937359809875,
0.6042744517326355,
0.3229377865791321,
0.751223623752594,
-0.12873615324497223,
-0.08623819053173065,
0.123624786734581,
0.2824881374835968,
0.30239665508270264,
0.631516695022583,
0.6210769414901733,
-0.6307142376899719,
0.12033501267433167,
-0.6334421038627625,
-0.46692079305648804,
-0.6161244511604309,
-0.739219605922699,
-0.8790192604064941,
-0.5269187092781067,
-0.3261127769947052,
-0.3753420412540436,
-0.2512589991092682,
0.7124572396278381,
0.4723917245864868,
-0.7867804765701294,
-0.37450528144836426,
-0.01674680970609188,
0.04347795993089676,
-0.1695019006729126,
-0.3519892990589142,
0.02287309244275093,
0.3973049223423004,
-0.9972386956214905,
-0.14546731114387512,
0.23208816349506378,
0.5526022911071777,
-0.03667183965444565,
-0.31924912333488464,
-0.1776292622089386,
-0.17210647463798523,
0.3423023521900177,
0.5441129803657532,
-0.735525906085968,
0.02806359902024269,
-0.1586248129606247,
-0.21698494255542755,
0.04077960550785065,
0.30596593022346497,
-0.4637030363082886,
0.5447025299072266,
0.6159248948097229,
0.2888513207435608,
0.3500230312347412,
0.17480039596557617,
0.2092040628194809,
-0.3452264964580536,
0.4495640695095062,
-0.10748061537742615,
0.49209535121917725,
0.2854113280773163,
-0.5371754169464111,
0.7160435914993286,
0.43883270025253296,
-0.4010324776172638,
-0.6711184978485107,
0.2283899188041687,
-1.422202467918396,
-0.3215180039405823,
1.3178871870040894,
0.041542898863554,
-0.2355901151895523,
0.5090029239654541,
-0.4707825481891632,
0.42269036173820496,
-0.7061930298805237,
0.5613446831703186,
0.6563536524772644,
-0.15327325463294983,
-0.2726495862007141,
-0.6087530851364136,
0.36194923520088196,
0.3285027742385864,
-0.7916867136955261,
-0.33684417605400085,
0.7084649205207825,
0.3409794569015503,
0.5348945260047913,
0.6659696698188782,
-0.30703020095825195,
0.6039249300956726,
-0.19594146311283112,
0.4135687053203583,
-0.08014093339443207,
-0.15018820762634277,
-0.41217344999313354,
-0.34767186641693115,
-0.16772790253162384,
-0.37479597330093384
] |
nitrosocke/redshift-diffusion-768
|
nitrosocke
| 2022-12-03T19:45:08Z | 7,987 | 141 |
diffusers
|
[
"diffusers",
"stable-diffusion",
"text-to-image",
"en",
"license:openrail++",
"has_space",
"diffusers:StableDiffusionPipeline",
"region:us"
] |
text-to-image
| 2022-11-27T13:46:46Z |
---
license: openrail++
language:
- en
tags:
- stable-diffusion
- text-to-image
- diffusers
thumbnail: "https://huggingface.co/nitrosocke/redshift-diffusion-768/resolve/main/images/redshift-diffusion-768-thumbnail.jpg"
inference: false
---
### Future Diffusion
This is the fine-tuned Stable Diffusion 2.0 model trained on high quality 3D images with a 768x768 pixel resolution.
Use the tokens
`redshift style`
in your prompts for the effect.
Trained on Stability.ai's [Stable Diffusion 2.0](https://huggingface.co/stabilityai/stable-diffusion-2) with 768x768 resolution.
**If you enjoy my work and want to test new models before release, please consider supporting me**
[](https://patreon.com/user?u=79196446)
- **The weights are now available! You can download them here: [redshift-diffusion-768.ckpt](https://huggingface.co/nitrosocke/redshift-diffusion-768/resolve/main/redshift-diffusion-768.ckpt)**
- **You can try out the model online here: [Diffusion Space Demo](https://huggingface.co/spaces/nitrosocke/Diffusion_Space)**
- **or try out this model with my local Diffusers based [Gradio WebUI](https://github.com/nitrosocke/diffusers-webui)**
**Characters rendered with the model:**

**Cars and Animals rendered with the model:**

**Landscapes rendered with the model:**


#### Prompt and settings for the Characters:
**redshift style portrait black female cyberpunk hacker tattoos colorful short hair wearing a crop top redshift style Negative Prompt: mutated body double head bad anatomy long face long neck long body text watermark signature**
_Steps: 20, Sampler: Euler a, CFG scale: 7, Size: 768x1024_
#### Prompt and settings for the Landscapes:
**redshift style beautiful fjord at sunrise Negative Prompt: fog blurry soft**
_Steps: 20, Sampler: Euler a, CFG scale: 7, Size: 1536x768_
This model was trained using the diffusers based dreambooth training by ShivamShrirao using prior-preservation loss and the _train-text-encoder_ flag in 7.500 steps.
## License
This model is open access and available to all, with a CreativeML Open RAIL++-M License further specifying rights and usage.
[Please read the full license here](https://huggingface.co/stabilityai/stable-diffusion-2/blob/main/LICENSE-MODEL)
|
[
-0.6130219101905823,
-0.8813287615776062,
0.4749451279640198,
0.3246902823448181,
-0.19567297399044037,
-0.16387751698493958,
0.04340533912181854,
-0.7805903553962708,
0.5223265290260315,
0.6062069535255432,
-0.8107103109359741,
-0.5227893590927124,
-0.6908282041549683,
-0.12672065198421478,
-0.3043155074119568,
0.9125108122825623,
0.11226948350667953,
-0.000740072806365788,
-0.048458024859428406,
0.14920146763324738,
-0.28358566761016846,
0.11405552178621292,
-0.8859992027282715,
-0.5311278104782104,
0.3656838834285736,
-0.024660661816596985,
0.7566057443618774,
0.25987708568573,
0.3401601016521454,
0.30719462037086487,
-0.63398677110672,
-0.3638434410095215,
-0.6299774646759033,
0.02689952403306961,
0.06642360985279083,
-0.2592832148075104,
-0.5562924742698669,
0.0021283449605107307,
0.7462232708930969,
0.3024437427520752,
-0.38603049516677856,
0.04441199079155922,
-0.22346289455890656,
0.7864959239959717,
-0.3795959949493408,
-0.11842982470989227,
-0.08677548915147781,
0.1918414980173111,
-0.22049061954021454,
0.5381219387054443,
-0.08324938267469406,
-0.27685296535491943,
0.14652486145496368,
-0.8538517355918884,
0.3658512830734253,
-0.0638926699757576,
1.074830174446106,
0.22870291769504547,
-0.31428226828575134,
0.28179338574409485,
-0.5464593172073364,
0.6886682510375977,
-0.6078858971595764,
0.5705281496047974,
0.18681806325912476,
0.4321920871734619,
0.06488772481679916,
-0.7935208678245544,
-0.70367032289505,
0.1158960685133934,
0.023824965581297874,
0.6441701650619507,
-0.36250096559524536,
-0.19111473858356476,
0.16132940351963043,
0.3314570486545563,
-0.7756766080856323,
-0.047884244471788406,
-0.675380527973175,
-0.13405023515224457,
0.5139245986938477,
0.22145135700702667,
0.1843237280845642,
0.10749662667512894,
-0.5879558324813843,
-0.3838048279285431,
-0.48233821988105774,
-0.10939014703035355,
0.3682480454444885,
-0.050877444446086884,
-0.762995719909668,
0.3673188388347626,
-0.0506388284265995,
0.6755278706550598,
0.2666934132575989,
0.17907372117042542,
0.4478858709335327,
-0.2127499282360077,
-0.30137088894844055,
-0.4554876685142517,
0.8780094981193542,
0.7004820108413696,
-0.13096186518669128,
0.24905435740947723,
-0.0957578495144844,
-0.12639304995536804,
0.22653090953826904,
-1.118864893913269,
-0.5020460486412048,
0.4604679048061371,
-0.6815750598907471,
-0.3504347503185272,
-0.3367680311203003,
-1.1730706691741943,
-0.4065935015678406,
0.269141286611557,
0.2767852544784546,
-0.42566362023353577,
-1.0527198314666748,
0.31457051634788513,
-0.7112483382225037,
0.13466377556324005,
0.5184658765792847,
-0.7333521246910095,
0.06346183270215988,
0.08307991921901703,
1.0951956510543823,
-0.1112678050994873,
0.03365763649344444,
0.3805367350578308,
0.12248395383358002,
-0.2132076770067215,
0.8065311908721924,
-0.4785357117652893,
-0.7542969584465027,
-0.20054343342781067,
0.21698611974716187,
0.17513814568519592,
-0.43309468030929565,
0.5486651659011841,
-0.6298115253448486,
0.4559691548347473,
-0.05634366348385811,
-0.34619322419166565,
-0.4754481017589569,
0.2620184123516083,
-0.6883919835090637,
0.7505527138710022,
0.38895517587661743,
-0.7628158330917358,
0.10481604933738708,
-1.2410402297973633,
-0.007922337390482426,
0.18557266891002655,
0.3406221270561218,
-0.49167004227638245,
-0.1906677484512329,
-0.3558586537837982,
0.3512994647026062,
0.09879335761070251,
-0.14537085592746735,
-0.49985209107398987,
-0.09933445602655411,
-0.2513784170150757,
-0.26698943972587585,
1.4258110523223877,
0.2676933705806732,
-0.3735954165458679,
0.011192615143954754,
-0.7600309252738953,
-0.09548533707857132,
0.34859034419059753,
-0.21611683070659637,
0.03680817782878876,
-0.32363513112068176,
0.5495432019233704,
0.24608644843101501,
0.27393868565559387,
-0.5387739539146423,
-0.05565468966960907,
-0.2839895188808441,
0.24989084899425507,
0.5750675797462463,
0.16375654935836792,
0.427040159702301,
-0.3008894622325897,
0.6476687788963318,
0.29706308245658875,
0.1446930170059204,
0.28758543729782104,
-0.8906876444816589,
-0.6352536082267761,
-0.2501060664653778,
0.08105344325304031,
0.41585811972618103,
-0.4116852581501007,
0.4070971608161926,
0.11823952198028564,
-0.8787350654602051,
-0.1846695840358734,
-0.38376709818840027,
0.10424747318029404,
0.7326189279556274,
0.44870129227638245,
-0.3041742742061615,
-0.27891719341278076,
-0.8261800408363342,
0.35973474383354187,
-0.11152458190917969,
-0.11973784118890762,
0.06892725080251694,
0.5875593423843384,
-0.7668178677558899,
0.6916351914405823,
-0.6381151080131531,
-0.2392900288105011,
-0.01432168297469616,
0.06451284140348434,
0.3234304189682007,
0.7060238718986511,
0.8015096783638,
-0.8283255696296692,
-0.45082995295524597,
-0.11532009392976761,
-0.6608197689056396,
0.0426725298166275,
0.2329896092414856,
-0.3738996088504791,
0.19893307983875275,
0.3297201097011566,
-0.9245609641075134,
0.0960719957947731,
0.8931568264961243,
-0.9064189791679382,
0.6511780023574829,
-0.4952400028705597,
-0.0019938223995268345,
-1.094472885131836,
0.1957661658525467,
0.48169219493865967,
-0.47205835580825806,
-0.7406577467918396,
0.381786972284317,
-0.056881435215473175,
-0.05128674954175949,
-0.7883703708648682,
0.9598577618598938,
-0.46891874074935913,
0.48115256428718567,
-0.16364511847496033,
0.010289773344993591,
0.04925494268536568,
0.3066141605377197,
0.3864588439464569,
0.4393714964389801,
0.718595564365387,
-0.552539587020874,
0.051744915544986725,
0.45207756757736206,
-0.3187035620212555,
0.7658770084381104,
-0.8451977372169495,
-0.1009211391210556,
-0.27113378047943115,
0.3935719430446625,
-1.0232168436050415,
-0.2054208517074585,
0.47988471388816833,
-0.31294792890548706,
0.2755441963672638,
-0.057614363729953766,
-0.435391902923584,
-0.41934671998023987,
-0.1574573665857315,
0.34013423323631287,
1.1341869831085205,
-0.41506272554397583,
0.5860209465026855,
0.3044513761997223,
0.1739368587732315,
-0.2893022894859314,
-0.9280004501342773,
-0.2055594027042389,
-0.5530122518539429,
-0.7406485676765442,
0.6022063493728638,
-0.31546449661254883,
-0.4104607105255127,
-0.056958120316267014,
0.5712413191795349,
-0.1614888608455658,
0.06915497779846191,
0.4039740562438965,
0.14037322998046875,
0.0338067002594471,
-0.3140285611152649,
0.3762005567550659,
-0.1560053825378418,
0.04145704209804535,
-0.24015149474143982,
0.47368350625038147,
-0.17030028998851776,
-0.009488892741501331,
-0.8921728134155273,
0.28787943720817566,
0.8745635151863098,
0.23653516173362732,
0.8529698848724365,
1.0030007362365723,
-0.44446149468421936,
0.2925317883491516,
-0.30492204427719116,
-0.22825570404529572,
-0.5035176873207092,
0.32932254672050476,
-0.05223590508103371,
-0.7325572967529297,
0.7384705543518066,
0.060225024819374084,
0.40243908762931824,
0.8967819809913635,
0.6117514967918396,
-0.5106658935546875,
0.8900520205497742,
0.7362703084945679,
0.2126534879207611,
0.6349829435348511,
-0.821619987487793,
-0.2004891037940979,
-0.9371851682662964,
-0.5380324125289917,
-0.16148830950260162,
-0.5916759967803955,
-0.29329392313957214,
-0.5615893602371216,
0.46327638626098633,
0.293831467628479,
-0.7338871359825134,
0.10312093049287796,
-0.4444737732410431,
0.5693390965461731,
0.20107224583625793,
0.26336225867271423,
0.08744668960571289,
0.11220885813236237,
-0.002915321383625269,
-0.03413749858736992,
-0.48527392745018005,
-0.21461844444274902,
0.5434777736663818,
0.6134679317474365,
0.4293347895145416,
0.40986886620521545,
0.5547230839729309,
0.4542015492916107,
0.15559104084968567,
-0.2594989836215973,
0.5124387145042419,
-0.08198695629835129,
-0.9007981419563293,
-0.16382282972335815,
-0.18659937381744385,
-0.9816334843635559,
0.4038849174976349,
-0.6113185286521912,
-0.4423440396785736,
0.24297556281089783,
0.2537246644496918,
-0.41524526476860046,
0.36366939544677734,
-0.7430238127708435,
0.8581809401512146,
0.08819456398487091,
-0.4994918406009674,
-0.40508782863616943,
-0.8730179071426392,
0.4562101662158966,
0.270354300737381,
0.06970058381557465,
-0.04092956706881523,
-0.057385675609111786,
0.6711643934249878,
-0.3308032155036926,
0.9796172380447388,
-0.5655598640441895,
-0.1269223690032959,
0.16015103459358215,
0.16421958804130554,
0.3531460762023926,
0.045332953333854675,
-0.12469591200351715,
0.6230164766311646,
0.029244786128401756,
-0.5651140809059143,
-0.15685416758060455,
0.5461538434028625,
-0.7632038593292236,
-0.29726359248161316,
-0.2897335886955261,
-0.22618627548217773,
0.2658630311489105,
0.4104290008544922,
0.7486606240272522,
-0.014833623543381691,
-0.38314878940582275,
-0.17086948454380035,
0.8580131530761719,
-0.02832425758242607,
0.6628106832504272,
0.3227098286151886,
-0.3284148573875427,
-0.5431778430938721,
0.6123310923576355,
-0.18222008645534515,
0.5277026891708374,
0.02344980463385582,
0.3433151841163635,
-0.5433856248855591,
-0.6460473537445068,
-0.6977096796035767,
0.47094348073005676,
-0.45314687490463257,
-0.14132580161094666,
-0.7855784296989441,
-0.18337060511112213,
-0.1684057116508484,
-0.3079899847507477,
-0.4042549431324005,
-0.49507632851600647,
-0.9647745490074158,
0.006019218824803829,
0.7226327061653137,
0.8196516036987305,
-0.18351365625858307,
0.42300230264663696,
-0.46844401955604553,
0.14012615382671356,
-0.01354298833757639,
0.3686026930809021,
0.0879606306552887,
-0.658175528049469,
-0.1462794840335846,
0.14263184368610382,
-0.2992682158946991,
-0.8382918238639832,
0.5906432271003723,
-0.006912596058100462,
0.2767779529094696,
0.5723373889923096,
-0.3922879099845886,
0.750942051410675,
-0.5543528199195862,
1.2406595945358276,
0.6973086595535278,
-0.5227863192558289,
0.49269402027130127,
-0.7696484327316284,
0.524628221988678,
0.6378924250602722,
0.37657350301742554,
-0.5184250473976135,
-0.5936823487281799,
-0.8964070677757263,
-0.8384785056114197,
0.4471128582954407,
0.18870176374912262,
0.31648603081703186,
0.07518317550420761,
0.6598008275032043,
0.05453107878565788,
-0.006379547528922558,
-1.0570553541183472,
-0.4557151198387146,
-0.309172660112381,
0.0679626539349556,
-0.004832849372178316,
-0.1339935064315796,
-0.10419270396232605,
-0.34840911626815796,
0.888375461101532,
0.07769262790679932,
0.590498685836792,
0.11876420676708221,
0.3804943263530731,
-0.2933800220489502,
-0.3722565472126007,
0.7414042949676514,
0.18778303265571594,
-0.24417325854301453,
-0.252490758895874,
-0.02648281492292881,
-0.5261562466621399,
0.06052128225564957,
-0.041053757071495056,
-0.42084968090057373,
-0.01880599372088909,
0.16728287935256958,
0.5691180229187012,
-0.2604643404483795,
-0.31687378883361816,
0.4670954644680023,
-0.19864915311336517,
-0.5624237060546875,
-0.37728673219680786,
0.3931886851787567,
0.3132871389389038,
0.786557674407959,
0.043695494532585144,
0.5606570839881897,
0.28447210788726807,
0.002716452581807971,
-0.13957545161247253,
0.697134792804718,
-0.47980189323425293,
-0.33429357409477234,
1.136856198310852,
0.21572571992874146,
-0.38213634490966797,
0.7496524453163147,
-0.39953163266181946,
-0.28380298614501953,
0.5852622389793396,
0.8005532622337341,
0.9182190895080566,
-0.17717775702476501,
0.36203083395957947,
0.7053503394126892,
-0.05451120436191559,
-0.43172547221183777,
0.2457820177078247,
0.08294077962636948,
-0.5657134056091309,
0.05575823038816452,
-0.6291007995605469,
-0.25982406735420227,
0.03958066552877426,
-0.3398752212524414,
0.4431205689907074,
-0.5528793931007385,
-0.319189190864563,
-0.5101751685142517,
-0.08350615203380585,
-0.3751041293144226,
0.2983715534210205,
-0.01605253666639328,
1.0941267013549805,
-0.9921147227287292,
0.6290721893310547,
0.4730975031852722,
-0.22564257681369781,
-0.2854250967502594,
0.07888396829366684,
-0.01913176104426384,
-0.48882588744163513,
0.4160490334033966,
0.021265538409352303,
-0.2075905054807663,
0.09967721998691559,
-0.583449125289917,
-0.919445812702179,
1.2968987226486206,
0.2643436789512634,
-0.6195695996284485,
0.07709746807813644,
-0.5171143412590027,
0.7125955820083618,
-0.16956429183483124,
0.4192763864994049,
0.4199043810367584,
0.5419837236404419,
0.19190368056297302,
-0.4168113172054291,
-0.11838112771511078,
-0.4133816361427307,
0.1693541705608368,
0.08806084096431732,
-1.165124773979187,
0.7631425261497498,
-0.3250589370727539,
-0.16594640910625458,
0.38361600041389465,
0.916259229183197,
0.47492730617523193,
0.03984449803829193,
0.6496319770812988,
0.9952024221420288,
0.764415979385376,
-0.05974394455552101,
1.111293077468872,
-0.028767140582203865,
0.4402011036872864,
0.60951167345047,
0.1117209866642952,
0.8404245972633362,
0.4077951908111572,
-0.2896571159362793,
0.9038523435592651,
0.9140726327896118,
-0.09286583960056305,
0.810420036315918,
-0.05410292372107506,
-0.29747438430786133,
-0.07473701238632202,
0.16718734800815582,
-0.6297748684883118,
-0.11457797884941101,
0.2570592761039734,
-0.27620571851730347,
-0.16238011419773102,
0.09538792073726654,
-0.0613282285630703,
-0.1666632890701294,
-0.1002272292971611,
0.46288207173347473,
-0.20375938713550568,
-0.21022070944309235,
0.6417515277862549,
-0.0047255465760827065,
0.9905445575714111,
-0.6282402276992798,
-0.23575741052627563,
-0.2519850730895996,
-0.032817695289850235,
-0.2294149249792099,
-0.9884472489356995,
0.3590181767940521,
-0.17388324439525604,
-0.2628055214881897,
-0.562494158744812,
0.2676306366920471,
-0.382278174161911,
-0.7613525390625,
0.4673348665237427,
0.12593461573123932,
0.38766902685165405,
0.2517562806606293,
-1.0804660320281982,
0.09379752725362778,
0.13911227881908417,
-0.3185610771179199,
0.0984237939119339,
-0.016634996980428696,
0.37337347865104675,
0.44858425855636597,
0.3205091655254364,
0.13708975911140442,
-0.08303680270910263,
-0.09939035773277283,
0.49299895763397217,
-0.474019318819046,
-0.5318388342857361,
-0.8686651587486267,
0.8400744199752808,
-0.0977233499288559,
-0.42617183923721313,
0.5987468957901001,
0.6462078094482422,
0.6769751310348511,
-0.31388595700263977,
0.5357014536857605,
-0.1576787233352661,
0.36522164940834045,
-0.5149938464164734,
1.1271320581436157,
-0.9996975064277649,
-0.04358574375510216,
-0.27284863591194153,
-0.9143311977386475,
-0.31559285521507263,
0.9554412364959717,
0.061820242553949356,
0.4709097146987915,
0.2686079144477844,
0.7506762742996216,
-0.04356077313423157,
0.022694796323776245,
0.2284676879644394,
0.2371004819869995,
0.3184052109718323,
0.37533196806907654,
0.6537030339241028,
-0.5228391885757446,
-0.07038403302431107,
-0.19493520259857178,
-0.21619974076747894,
-0.1170603334903717,
-0.794909656047821,
-0.9627548456192017,
-0.6253973245620728,
-0.6203380823135376,
-0.702647864818573,
-0.16703955829143524,
0.39405131340026855,
1.1723748445510864,
-0.44852572679519653,
-0.10469663888216019,
-0.4819224178791046,
0.0389665886759758,
-0.09373332560062408,
-0.2644566297531128,
0.014477482996881008,
0.4285861551761627,
-0.8943974375724792,
0.2271505743265152,
0.23861351609230042,
0.9635375738143921,
-0.47965043783187866,
-0.24078550934791565,
-0.10506869107484818,
-0.4432988464832306,
0.4645514488220215,
0.10968241840600967,
-0.6211604475975037,
0.08312322199344635,
-0.1920776516199112,
0.26502367854118347,
0.1762523353099823,
0.2843901813030243,
-0.7040680646896362,
0.280847430229187,
0.41061270236968994,
0.06522293388843536,
0.9120873212814331,
-0.14923861622810364,
0.2019423097372055,
-0.4306180775165558,
0.21009977161884308,
0.3230617344379425,
0.3395264148712158,
0.15195246040821075,
-0.6659417152404785,
0.46729934215545654,
0.4101713001728058,
-0.580129861831665,
-0.5258487462997437,
0.3356417715549469,
-1.20183265209198,
-0.5380409955978394,
1.2085092067718506,
0.18382509052753448,
-0.26077285408973694,
0.016765590757131577,
-0.20643967390060425,
-0.11466462910175323,
-0.4279644787311554,
0.5334266424179077,
0.5636986494064331,
-0.40715286135673523,
-0.35570454597473145,
-0.37885159254074097,
0.4552377164363861,
0.2476930171251297,
-0.6849210262298584,
0.12040603160858154,
0.9295834302902222,
0.4680217206478119,
0.5858201384544373,
0.7817913293838501,
-0.3762054443359375,
0.21738259494304657,
0.019249267876148224,
0.03548084571957588,
0.17565229535102844,
-0.19404494762420654,
-0.7512219548225403,
0.27505791187286377,
-0.274093359708786,
0.017450081184506416
] |
LiYuan/amazon-review-sentiment-analysis
|
LiYuan
| 2022-04-30T22:03:23Z | 7,985 | 18 |
transformers
|
[
"transformers",
"pytorch",
"tensorboard",
"bert",
"text-classification",
"generated_from_trainer",
"license:apache-2.0",
"endpoints_compatible",
"has_space",
"region:us"
] |
text-classification
| 2022-04-30T20:37:44Z |
---
license: apache-2.0
tags:
- generated_from_trainer
metrics:
- accuracy
model-index:
- name: distilbert-base-uncased-finetuned-mnli-amazon-query-shopping
results: []
---
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
should probably proofread and complete it, then remove this comment. -->
# distilbert-base-uncased-finetuned-mnli-amazon-query-shopping
This model is a fine-tuned version of [nlptown/bert-base-multilingual-uncased-sentiment](https://huggingface.co/nlptown/bert-base-multilingual-uncased-sentiment?text=I+like+you.+I+love+you) on an [Amazon US Customer Reviews Dataset](https://www.kaggle.com/datasets/cynthiarempel/amazon-us-customer-reviews-dataset). The code for the fine-tuning process can be found
[here](https://github.com/vanderbilt-data-science/bigdata/blob/main/06-fine-tune-BERT-on-our-dataset.ipynb). This model is uncased: it does
not make a difference between english and English.
It achieves the following results on the evaluation set:
- Loss: 0.5202942490577698
- Accuracy: 0.8
## Model description
This a bert-base-multilingual-uncased model finetuned for sentiment analysis on product reviews in six languages: English, Dutch, German, French, Spanish and Italian. It predicts the sentiment of the review as a number of stars (between 1 and 5).
This model is intended for direct use as a sentiment analysis model for product reviews in any of the six languages above, or for further finetuning on related sentiment analysis tasks.
We replaced its head with our customer reviews to fine-tune it on 17,280 rows of training set while validating it on 4,320 rows of dev set. Finally, we evaluated our model performance on a held-out test set: 2,400 rows.
## Intended uses & limitations
Bert-base is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked)
to make decisions, such as sequence classification, token classification, or question answering. This fine-tuned version of BERT-base is used to predict review rating star given the review.
The limitations are this trained model is focusing on reviews and products on Amazon. If you apply this model to other domains, it may perform poorly.
## How to use
You can use this model directly by downloading the trained weights and configurations like the below code snippet:
```python
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("LiYuan/amazon-review-sentiment-analysis")
model = AutoModelForSequenceClassification.from_pretrained("LiYuan/amazon-review-sentiment-analysis")
```
## Training and evaluation data
Download all the raw [dataset](https://www.kaggle.com/datasets/cynthiarempel/amazon-us-customer-reviews-dataset) from the Kaggle website.
## Training procedure
### Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 2e-05
- train_batch_size: 16
- eval_batch_size: 16
- seed: 42
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- num_epochs: 2
### Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|:-------------:|:-----:|:-----:|:---------------:|:--------:|
| 0.555400 | 1.0 | 1080 | 0.520294 | 0.800000 |
| 0.424300 | 2.0 | 1080 | 0.549649 | 0.798380 |
### Framework versions
- Transformers 4.18.0
- Pytorch 1.11.0+cu113
- Datasets 2.1.0
- Tokenizers 0.12.1
|
[
-0.6088582873344421,
-0.762936532497406,
-0.04231507331132889,
0.36915770173072815,
-0.38032183051109314,
-0.25239378213882446,
-0.34905993938446045,
-0.46212318539619446,
0.1572430282831192,
0.42140093445777893,
-0.6497842073440552,
-0.58223956823349,
-0.55689936876297,
-0.04403722286224365,
-0.08884452283382416,
1.5139827728271484,
0.16732944548130035,
0.41930919885635376,
-0.00631417753174901,
-0.17653998732566833,
-0.15577571094036102,
-0.8418213129043579,
-0.4862896800041199,
-0.3387112021446228,
0.3866617679595947,
0.3816823363304138,
0.8601619601249695,
0.197811096906662,
0.456490695476532,
0.19551128149032593,
-0.21433766186237335,
0.1190178394317627,
-0.4433698356151581,
-0.25755733251571655,
0.15783129632472992,
-0.5214877128601074,
-0.6447649598121643,
0.07252838462591171,
0.36414963006973267,
0.6510890126228333,
0.0696723461151123,
0.40021398663520813,
0.2996677756309509,
0.7864859700202942,
-0.3626818358898163,
0.3351365029811859,
-0.5138128995895386,
0.21818596124649048,
0.2557770907878876,
-0.06514672189950943,
-0.2646430730819702,
-0.3727659285068512,
0.22452093660831451,
-0.4140227437019348,
0.4461176097393036,
-0.04742291942238808,
1.1827301979064941,
0.06260576099157333,
-0.2877222001552582,
-0.22904564440250397,
-0.9002108573913574,
0.8730081915855408,
-0.9767951369285583,
0.2786845564842224,
0.3294447958469391,
0.14986151456832886,
0.08717790991067886,
-0.3506067991256714,
-0.7633444666862488,
-0.2330150604248047,
-0.24192868173122406,
0.2728326618671417,
-0.2031530737876892,
0.03594013676047325,
0.47588321566581726,
0.6236550807952881,
-0.5275626182556152,
0.07814940810203552,
-0.47633954882621765,
-0.11318967491388321,
0.7773915529251099,
0.01097628939896822,
-0.1717824637889862,
-0.5909190773963928,
-0.5518367290496826,
-0.24568556249141693,
-0.41185450553894043,
0.4953191876411438,
0.680195152759552,
0.2908479869365692,
-0.11713363975286484,
0.46184268593788147,
-0.4072705805301666,
0.4459258019924164,
0.31660476326942444,
0.06602513790130615,
0.7210887670516968,
-0.09916460514068604,
-0.3768232762813568,
-0.21970844268798828,
1.0568088293075562,
0.6949206590652466,
0.3480059504508972,
0.20082201063632965,
-0.3929325044155121,
0.022907812148332596,
0.21740303933620453,
-0.7162258625030518,
-0.1951892375946045,
0.31216704845428467,
-0.6581941246986389,
-0.5460758209228516,
0.049701936542987823,
-0.601438045501709,
0.06383034586906433,
-0.44336622953414917,
0.592375636100769,
-0.36431100964546204,
-0.16151173412799835,
0.19427363574504852,
0.1032550260424614,
0.15965068340301514,
-0.004867889918386936,
-0.8446364402770996,
0.13961242139339447,
0.43671518564224243,
0.29798030853271484,
0.020961396396160126,
-0.4508894681930542,
0.11800922453403473,
-0.3711184859275818,
-0.3269706070423126,
0.5962631106376648,
-0.06783502548933029,
-0.2633465826511383,
0.20548175275325775,
0.3948217034339905,
0.12941928207874298,
-0.46340668201446533,
0.7547898888587952,
-0.5655347108840942,
0.4313897490501404,
-0.3025491237640381,
-0.6314548254013062,
-0.48632439970970154,
0.510633111000061,
-0.5014933347702026,
1.1723313331604004,
0.022064661607146263,
-0.4608897566795349,
0.5477901697158813,
-0.4136180281639099,
-0.39587223529815674,
-0.3039962947368622,
0.21241089701652527,
-0.7692781090736389,
0.032845791429281235,
0.41648799180984497,
0.6314047574996948,
0.02622288279235363,
0.23063668608665466,
-0.3231903910636902,
-0.3631626069545746,
0.2023836076259613,
-0.4491007328033447,
0.9379006624221802,
0.2376069724559784,
-0.5093305706977844,
-0.029843894764780998,
-0.9111920595169067,
0.15200833976268768,
0.2752284109592438,
-0.4465237259864807,
-0.003953834064304829,
-0.21024760603904724,
0.40864259004592896,
0.231927752494812,
0.4304064214229584,
-0.5857317447662354,
0.3153778910636902,
-0.561915934085846,
0.300579309463501,
0.5105564594268799,
0.08103115111589432,
0.3011566698551178,
-0.3181285262107849,
0.4419064223766327,
0.2711760997772217,
0.6022909879684448,
0.065326988697052,
-0.3982912600040436,
-1.1426550149917603,
0.24944455921649933,
0.4112168252468109,
0.41930460929870605,
-0.39333072304725647,
0.9902696013450623,
-0.16125763952732086,
-0.5931972861289978,
-0.5162445902824402,
0.2633540630340576,
0.4007975459098816,
0.3905235826969147,
0.44025135040283203,
-0.3290459215641022,
-0.4873349368572235,
-1.0510406494140625,
0.00842459686100483,
-0.18511667847633362,
0.04454493522644043,
0.3199369013309479,
0.41764795780181885,
-0.3296836316585541,
0.7224465608596802,
-0.44253259897232056,
-0.4869678020477295,
-0.33581802248954773,
0.21797733008861542,
0.5268409252166748,
0.5596470832824707,
0.6963767409324646,
-0.5052750110626221,
-0.5741673707962036,
-0.23191741108894348,
-0.6652462482452393,
0.14757531881332397,
-0.1992615908384323,
-0.15452826023101807,
0.4041116237640381,
0.2756730616092682,
-0.608413815498352,
0.3231407105922699,
0.5234760046005249,
-0.14107199013233185,
0.6683598160743713,
-0.2804705500602722,
0.033321913331747055,
-1.173751950263977,
-0.018116457387804985,
0.12488534301519394,
0.07797038555145264,
-0.30835163593292236,
-0.15238633751869202,
0.17756451666355133,
-0.1827135533094406,
-0.2889377474784851,
0.2285975068807602,
-0.2524094581604004,
0.09018770605325699,
-0.17898327112197876,
-0.268424928188324,
0.3193495273590088,
1.0693249702453613,
0.15634474158287048,
0.46897822618484497,
0.38543567061424255,
-0.5731313824653625,
0.30582210421562195,
0.41542643308639526,
-0.5774751901626587,
0.4874441623687744,
-0.8702014684677124,
-0.009228186681866646,
-0.10164962708950043,
0.21433866024017334,
-1.0305582284927368,
0.003763058688491583,
0.32391491532325745,
-0.6852203607559204,
0.23418021202087402,
-0.1591886579990387,
-0.7303204536437988,
-0.4839574098587036,
-0.2079635113477707,
0.06569618731737137,
0.6558377742767334,
-0.6312868595123291,
0.31603655219078064,
0.14849114418029785,
0.01492938119918108,
-0.7829885482788086,
-0.7603076100349426,
-0.328434020280838,
-0.060766976326704025,
-0.5016805529594421,
0.18458236753940582,
-0.20446664094924927,
0.1947372555732727,
-0.08144861459732056,
0.0664711520075798,
0.0017810080898925662,
-0.26704248785972595,
0.07937069982290268,
0.30646374821662903,
-0.15302899479866028,
0.3563345670700073,
0.05646089091897011,
-0.13414278626441956,
0.3067784905433655,
-0.04986516013741493,
0.6020069122314453,
-0.3290901780128479,
-0.12204914540052414,
-0.5187307596206665,
0.12926779687404633,
0.5773069262504578,
-0.1393311768770218,
0.5694372057914734,
0.8713148832321167,
-0.26963379979133606,
-0.318745493888855,
-0.7238562107086182,
-0.3756144940853119,
-0.4421508312225342,
0.53065425157547,
-0.16534261405467987,
-0.35582974553108215,
0.5846708416938782,
0.37789246439933777,
0.18039707839488983,
0.7269594073295593,
0.5659672021865845,
-0.32440200448036194,
1.225167155265808,
0.5545768737792969,
-0.31893885135650635,
0.42504388093948364,
-0.6553951501846313,
0.3125198185443878,
-0.6896229982376099,
-0.23981447517871857,
-0.33068111538887024,
-0.5143013596534729,
-0.6580865979194641,
0.06723649054765701,
0.21285274624824524,
0.3202749788761139,
-0.4236011505126953,
0.37831202149391174,
-0.7934055328369141,
0.22040502727031708,
0.7410938143730164,
0.2907797694206238,
0.18278078734874725,
0.3097178339958191,
-0.2171216905117035,
-0.146388977766037,
-0.6068246960639954,
-0.4093838632106781,
1.3313627243041992,
0.5443801879882812,
0.7846651673316956,
-0.2679649889469147,
0.4087294042110443,
0.27339720726013184,
0.009216830134391785,
-0.8695927858352661,
0.41556453704833984,
-0.1753186583518982,
-0.8534045815467834,
0.0026504341512918472,
-0.18830087780952454,
-0.8432378172874451,
0.05654870718717575,
-0.4112406075000763,
-0.3050054907798767,
0.3773861229419708,
0.1299702227115631,
-0.4598684012889862,
0.3311159014701843,
-0.7480249404907227,
0.9617623090744019,
-0.5816801190376282,
-0.21485313773155212,
-0.1974266767501831,
-0.5630699396133423,
-0.03805236145853996,
0.23267222940921783,
-0.07983089983463287,
-0.16857288777828217,
0.34672093391418457,
0.8404097557067871,
-0.4402902126312256,
0.9339277148246765,
-0.2740309238433838,
0.09462327510118484,
0.3022412061691284,
-0.12669233977794647,
0.40499845147132874,
0.07995529472827911,
0.03350794315338135,
0.5035626292228699,
-0.12547026574611664,
-0.38812389969825745,
-0.4603365957736969,
0.765762209892273,
-1.1831897497177124,
-0.2773891091346741,
-0.5117424130439758,
-0.46571213006973267,
-0.44458845257759094,
0.17768733203411102,
0.5675063133239746,
0.39564332365989685,
-0.0591636560857296,
0.3968716561794281,
0.5960963368415833,
-0.2037000209093094,
0.32765018939971924,
0.5484427809715271,
-0.13057202100753784,
-0.57453852891922,
0.8203960061073303,
0.13081799447536469,
0.09263255447149277,
0.1617443710565567,
0.20546428859233856,
-0.4571961462497711,
-0.4308162331581116,
-0.490839421749115,
0.28039270639419556,
-0.8241510987281799,
-0.17839989066123962,
-0.7713382244110107,
-0.4178439974784851,
-0.3416052758693695,
0.04244594648480415,
-0.3517128527164459,
-0.349220335483551,
-0.34594470262527466,
-0.32053589820861816,
0.4797758162021637,
0.6208440065383911,
0.07138356566429138,
0.4023091197013855,
-0.6567750573158264,
0.08240026980638504,
0.23612703382968903,
0.5236090421676636,
0.08488139510154724,
-0.662982165813446,
-0.4321986436843872,
0.19647178053855896,
-0.5524386167526245,
-0.5903788805007935,
0.5401719212532043,
0.013115094043314457,
0.47828805446624756,
0.571601927280426,
0.045139946043491364,
0.6641584038734436,
-0.22760894894599915,
0.9183962941169739,
0.1880345195531845,
-0.5937728881835938,
0.5152130126953125,
-0.4252709448337555,
0.28586190938949585,
0.6057125926017761,
0.7218310236930847,
-0.3214263617992401,
-0.18456275761127472,
-0.8819657564163208,
-0.8500622510910034,
0.6412121057510376,
0.10787103325128555,
0.44791409373283386,
0.020757898688316345,
0.21588140726089478,
0.19232919812202454,
0.5068938136100769,
-1.1908228397369385,
-0.5177232623100281,
-0.2534814178943634,
-0.08873942494392395,
-0.31960076093673706,
-0.4983287751674652,
0.034797534346580505,
-0.6921125054359436,
0.9855920076370239,
0.05893702432513237,
0.36228126287460327,
0.1876317709684372,
-0.1036878153681755,
-0.20168790221214294,
0.21605776250362396,
0.1746390461921692,
0.43528857827186584,
-0.5014052391052246,
-0.44204071164131165,
0.028819261118769646,
-0.3952213525772095,
-0.21684391796588898,
0.3512044847011566,
-0.3352788984775543,
0.24225084483623505,
-0.03536786511540413,
0.9095980525016785,
0.1689589023590088,
-0.2641561031341553,
0.5243635177612305,
0.011363289318978786,
-0.3370151221752167,
-0.6318342685699463,
-0.29358118772506714,
-0.07773449271917343,
0.17682373523712158,
0.3251376152038574,
0.25507208704948425,
0.13628074526786804,
-0.5148742198944092,
0.09213487058877945,
0.40835919976234436,
-0.5532209873199463,
-0.28130361437797546,
0.5774023532867432,
0.33381813764572144,
-0.04311689734458923,
0.699673593044281,
-0.17879678308963776,
-0.5694910287857056,
0.6800693869590759,
0.37326154112815857,
0.9168384075164795,
0.03834780305624008,
0.20266959071159363,
0.7836536765098572,
0.3561858832836151,
0.0561484694480896,
0.44051650166511536,
0.026302052661776543,
-0.776861310005188,
-0.1110687255859375,
-0.8919054269790649,
-0.37293359637260437,
0.5147794485092163,
-0.8967007398605347,
0.3354014754295349,
-0.5741425156593323,
-0.38724902272224426,
0.11205745488405228,
0.29290395975112915,
-0.8122109174728394,
0.5624752640724182,
0.1975947469472885,
0.6524300575256348,
-0.8796855211257935,
0.706380307674408,
0.6050861477851868,
-0.7257052063941956,
-0.9181265234947205,
-0.08224784582853317,
-0.2580219805240631,
-0.7590042352676392,
0.563693106174469,
0.3540988862514496,
0.22559785842895508,
-0.16252192854881287,
-0.4731667935848236,
-0.5961193442344666,
0.7217947840690613,
-0.08092277497053146,
-0.553644061088562,
0.09118090569972992,
0.3524894416332245,
0.8729463219642639,
-0.363158643245697,
0.4125311076641083,
0.3544212579727173,
0.12058671563863754,
-0.19711531698703766,
-0.8059818148612976,
-0.21345634758472443,
-0.5180199146270752,
-0.07611636072397232,
-0.0583285391330719,
-0.7349273562431335,
1.0701231956481934,
0.08440389484167099,
0.3368850648403168,
0.036708664149045944,
0.44638168811798096,
0.0895189419388771,
0.14773914217948914,
0.5155676007270813,
0.7448146343231201,
0.445706844329834,
-0.1774781197309494,
0.9585612416267395,
-0.6396974325180054,
0.8181678652763367,
0.8672600388526917,
0.03386842831969261,
0.9962148666381836,
0.22100001573562622,
-0.27633681893348694,
0.7487832903862,
0.7560504674911499,
-0.5168724060058594,
0.43732863664627075,
-0.07956209033727646,
0.014533274807035923,
-0.18680591881275177,
0.11160179227590561,
-0.5291773080825806,
0.29888245463371277,
0.20584508776664734,
-0.7597731351852417,
-0.02720773220062256,
0.019036583602428436,
0.0337764248251915,
-0.21771976351737976,
-0.32340651750564575,
0.68290114402771,
-0.08548267930746078,
-0.7631512880325317,
0.9595096111297607,
-0.11005648970603943,
0.8785384893417358,
-0.6836060881614685,
0.14839261770248413,
-0.23690950870513916,
0.4618554413318634,
-0.38591521978378296,
-0.7607805132865906,
0.1446099430322647,
-0.062197551131248474,
-0.3854774832725525,
-0.2213238775730133,
0.42901960015296936,
-0.37608247995376587,
-0.9297282099723816,
0.3263280689716339,
0.41102680563926697,
0.04781942814588547,
-0.07193925976753235,
-1.0909533500671387,
-0.19137167930603027,
0.19465722143650055,
-0.5656993389129639,
0.11249328404664993,
0.22492657601833344,
0.1619282215833664,
0.4469981789588928,
0.739167332649231,
-0.12281764298677444,
-0.13238731026649475,
0.2621851861476898,
0.7417076230049133,
-0.6224051713943481,
-0.7466961741447449,
-0.4736754894256592,
0.6123611927032471,
-0.1337314248085022,
-0.681252658367157,
0.9230491518974304,
0.6502751111984253,
1.145678997039795,
-0.42925140261650085,
0.7720534801483154,
0.015191606245934963,
0.6539872288703918,
-0.30773600935935974,
0.951898455619812,
-0.7074877619743347,
0.1856071799993515,
-0.3001917004585266,
-1.0627224445343018,
-0.10274767130613327,
0.7184355854988098,
-0.5166341662406921,
0.29509875178337097,
0.649050772190094,
0.7786428928375244,
-0.015080236829817295,
0.0468759760260582,
0.14093385636806488,
0.2707989811897278,
-0.062022723257541656,
0.4255295395851135,
0.6491867899894714,
-0.7756462097167969,
0.7376177310943604,
-0.8550265431404114,
-0.08949091285467148,
-0.2695097327232361,
-0.5715999007225037,
-1.0724045038223267,
-0.41232553124427795,
-0.42830511927604675,
-0.6100031733512878,
-0.11320436745882034,
0.8908838629722595,
0.776826798915863,
-0.9726738333702087,
-0.34791797399520874,
-0.04142770916223526,
-0.31821662187576294,
-0.40228164196014404,
-0.28488343954086304,
0.4343799650669098,
-0.49304455518722534,
-0.9244500994682312,
-0.10170366615056992,
-0.3090585768222809,
-0.04336532950401306,
-0.4533599317073822,
-0.031184816733002663,
-0.03885405510663986,
-0.06931284070014954,
0.5126575231552124,
0.15389567613601685,
-0.6786940693855286,
-0.12229723483324051,
0.2741861045360565,
-0.15644046664237976,
0.26680660247802734,
0.3328847885131836,
-0.587614893913269,
0.5617848634719849,
0.4595569372177124,
0.3317456841468811,
0.5254596471786499,
0.0011232474353164434,
0.431880384683609,
-0.7550656795501709,
0.20447103679180145,
0.374391108751297,
0.4894084334373474,
0.2765501141548157,
-0.4836544990539551,
0.28209826350212097,
0.184952974319458,
-0.7831156849861145,
-0.5238351225852966,
-0.015705838799476624,
-1.1406768560409546,
-0.09703098982572556,
1.2506999969482422,
-0.011677947826683521,
-0.1776377111673355,
0.16078218817710876,
-0.294417142868042,
0.0739559754729271,
-0.4174211919307709,
0.9897201061248779,
0.7945885062217712,
-0.004922690335661173,
0.005963570438325405,
-0.45508748292922974,
0.6166831254959106,
0.662420392036438,
-0.4568781554698944,
-0.21625885367393494,
0.4691237211227417,
0.5248421430587769,
0.22371748089790344,
0.3503783643245697,
-0.1515704095363617,
0.38675326108932495,
-0.20123247802257538,
0.4219246208667755,
-0.10420974344015121,
-0.16160063445568085,
-0.5497073531150818,
0.02680760622024536,
0.03568040579557419,
-0.4251220226287842
] |
facebook/esm2_t36_3B_UR50D
|
facebook
| 2022-12-01T20:22:22Z | 7,964 | 11 |
transformers
|
[
"transformers",
"pytorch",
"tf",
"esm",
"fill-mask",
"license:mit",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] |
fill-mask
| 2022-10-13T12:38:30Z |
---
license: mit
widget:
- text: "MQIFVKTLTGKTITLEVEPS<mask>TIENVKAKIQDKEGIPPDQQRLIFAGKQLEDGRTLSDYNIQKESTLHLVLRLRGG"
---
## ESM-2
ESM-2 is a state-of-the-art protein model trained on a masked language modelling objective. It is suitable for fine-tuning on a wide range of tasks that take protein sequences as input. For detailed information on the model architecture and training data, please refer to the [accompanying paper](https://www.biorxiv.org/content/10.1101/2022.07.20.500902v2). You may also be interested in some demo notebooks ([PyTorch](https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/protein_language_modeling.ipynb), [TensorFlow](https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/protein_language_modeling-tf.ipynb)) which demonstrate how to fine-tune ESM-2 models on your tasks of interest.
Several ESM-2 checkpoints are available in the Hub with varying sizes. Larger sizes generally have somewhat better accuracy, but require much more memory and time to train:
| Checkpoint name | Num layers | Num parameters |
|------------------------------|----|----------|
| [esm2_t48_15B_UR50D](https://huggingface.co/facebook/esm2_t48_15B_UR50D) | 48 | 15B |
| [esm2_t36_3B_UR50D](https://huggingface.co/facebook/esm2_t36_3B_UR50D) | 36 | 3B |
| [esm2_t33_650M_UR50D](https://huggingface.co/facebook/esm2_t33_650M_UR50D) | 33 | 650M |
| [esm2_t30_150M_UR50D](https://huggingface.co/facebook/esm2_t30_150M_UR50D) | 30 | 150M |
| [esm2_t12_35M_UR50D](https://huggingface.co/facebook/esm2_t12_35M_UR50D) | 12 | 35M |
| [esm2_t6_8M_UR50D](https://huggingface.co/facebook/esm2_t6_8M_UR50D) | 6 | 8M |
|
[
-0.43286916613578796,
-0.5948188304901123,
0.3451700806617737,
0.25143834948539734,
-0.21601180732250214,
0.07263188809156418,
0.14439348876476288,
-0.5148124098777771,
0.26199525594711304,
0.41369765996932983,
-0.823645830154419,
-0.5298078060150146,
-0.9321447610855103,
0.08285602927207947,
-0.2009565830230713,
1.0775045156478882,
0.016725201159715652,
0.2736850380897522,
-0.3467542827129364,
-0.0974586233496666,
-0.10452957451343536,
-0.24699701368808746,
-0.8235457539558411,
-0.7321904897689819,
0.33444544672966003,
0.4830930233001709,
0.27816280722618103,
0.6799968481063843,
0.483710914850235,
0.23480339348316193,
-0.5061230659484863,
0.3614945709705353,
-0.5236067175865173,
0.1913013458251953,
-0.1278853714466095,
-0.4432218670845032,
-0.8108993768692017,
-0.15640226006507874,
0.4631693959236145,
0.5357983112335205,
0.05967068672180176,
0.5000954270362854,
0.20006313920021057,
0.9462715983390808,
-0.33044615387916565,
0.20107398927211761,
-0.4289981424808502,
0.2930558919906616,
-0.30063536763191223,
-0.0294165201485157,
-0.38406872749328613,
0.05322859063744545,
0.06543418020009995,
-0.3559257388114929,
0.20486700534820557,
0.15609800815582275,
1.3329850435256958,
0.22855551540851593,
-0.6410025358200073,
-0.2321455329656601,
-0.4450559914112091,
0.8633005023002625,
-0.4986128509044647,
0.44113239645957947,
0.7549484372138977,
0.31233540177345276,
-0.311479389667511,
-0.7776964902877808,
-0.03774675726890564,
0.31149277091026306,
-0.018207045271992683,
0.4075634479522705,
-0.2706676423549652,
0.19684995710849762,
0.5741735100746155,
0.3238019347190857,
-0.9867098331451416,
0.20061780512332916,
-0.6449559926986694,
-0.22502902150154114,
0.5896285176277161,
0.21261174976825714,
0.34234681725502014,
0.029040465131402016,
-0.4778575897216797,
0.15694497525691986,
-0.5793555378913879,
0.05346396192908287,
0.29802146553993225,
-0.04445972666144371,
-0.23009276390075684,
0.6315001249313354,
-0.480423241853714,
0.7830644249916077,
0.07780147343873978,
-0.1703084409236908,
0.49410390853881836,
-0.0571163147687912,
0.036438338458538055,
-0.5153999328613281,
0.5630656480789185,
0.7384749054908752,
-0.09274467825889587,
-0.11241381615400314,
-0.4512767791748047,
-0.11555881798267365,
0.056661564856767654,
-1.3266040086746216,
-0.17637522518634796,
0.6442699432373047,
-0.5269268155097961,
-0.24235236644744873,
0.14367489516735077,
-0.8252849578857422,
-0.012478902004659176,
-0.2597578763961792,
0.38785606622695923,
-0.5422586798667908,
-0.2528670132160187,
0.17664362490177155,
-0.4887385666370392,
0.35865965485572815,
0.22958333790302277,
-0.8911137580871582,
0.6524139046669006,
0.7310635447502136,
1.204780101776123,
-0.044345736503601074,
-0.23178869485855103,
-0.45360684394836426,
0.2968023121356964,
-0.14748544991016388,
0.8973982334136963,
-0.22378353774547577,
-0.054943036288022995,
0.03227940946817398,
0.3305625319480896,
-0.06580691784620285,
-0.5599132776260376,
0.4015985429286957,
-0.3154959976673126,
0.16187289357185364,
-0.44350239634513855,
-0.8219118118286133,
-0.42323148250579834,
0.12532706558704376,
-0.4397115111351013,
1.511417269706726,
0.22225822508335114,
-0.5932333469390869,
0.10905569791793823,
-0.596603274345398,
-0.36443719267845154,
-0.010763244703412056,
-0.15697887539863586,
-0.7766455411911011,
0.12372530996799469,
-0.1986265629529953,
0.44252124428749084,
-0.33904075622558594,
0.032737866044044495,
-0.348014771938324,
-0.3738921880722046,
0.07780202478170395,
0.46803247928619385,
0.72878497838974,
0.4880448877811432,
-0.6219625473022461,
-0.32824161648750305,
-0.9636508226394653,
0.27144044637680054,
0.22943241894245148,
-0.2865031957626343,
0.37163564562797546,
0.031491719186306,
0.2388780564069748,
0.6633126139640808,
0.26304522156715393,
-0.49460721015930176,
0.08127875626087189,
-0.3347261846065521,
0.6760265231132507,
0.47823628783226013,
0.021799767389893532,
0.30168917775154114,
-0.7133479118347168,
0.43020161986351013,
0.046437397599220276,
0.09081178903579712,
-0.11273607611656189,
-0.8875462412834167,
-0.9781202077865601,
-0.41126102209091187,
-0.09131547808647156,
0.709625780582428,
-0.28704267740249634,
0.7993070483207703,
0.1780405342578888,
-0.6202290058135986,
-0.3906804919242859,
0.11966904997825623,
0.5862323641777039,
0.26789480447769165,
0.49038735032081604,
-0.21219372749328613,
-0.8324195146560669,
-1.24872887134552,
-0.39795610308647156,
0.021931996569037437,
-0.32722410559654236,
0.2212991863489151,
0.8645740747451782,
-0.3867488205432892,
0.7940034866333008,
-0.38670575618743896,
-0.31946876645088196,
-0.18432576954364777,
0.1253906488418579,
0.13540205359458923,
0.6940749883651733,
0.6713649034500122,
-0.467111736536026,
-0.4518308937549591,
-0.12512120604515076,
-0.8316616415977478,
-0.22168487310409546,
0.16300183534622192,
-0.052125152200460434,
0.16502241790294647,
0.6559585332870483,
-0.49920654296875,
0.12339610606431961,
0.7405292391777039,
-0.6772065758705139,
0.1437574028968811,
-0.1701519787311554,
-0.03467698022723198,
-1.399620532989502,
0.22133202850818634,
0.0010441772174090147,
-0.4963051378726959,
-0.6787911057472229,
0.11090599000453949,
0.182108536362648,
-0.22018320858478546,
-0.6039910316467285,
0.701884388923645,
-0.7848694324493408,
-0.3400299847126007,
-0.3983633518218994,
-0.03083828277885914,
0.2713123857975006,
0.5318776369094849,
0.018705854192376137,
0.4734397828578949,
0.7913426160812378,
-0.37162044644355774,
0.058225031942129135,
0.3924252986907959,
-0.3197719156742096,
0.45273545384407043,
-0.9615444540977478,
0.5378125905990601,
-0.2790154218673706,
0.3468168079853058,
-1.0673848390579224,
-0.4796869158744812,
0.16322264075279236,
-0.5583397150039673,
0.5518417358398438,
-0.36080700159072876,
-0.4871777594089508,
-0.5269289016723633,
-0.4776739478111267,
0.1847769021987915,
0.8182274699211121,
-0.3804255425930023,
0.46660682559013367,
0.5981992483139038,
-0.04036524146795273,
-0.3835642635822296,
-1.0345759391784668,
-0.12370975315570831,
-0.12907953560352325,
-0.6919488906860352,
0.4997578561306,
0.030942892655730247,
0.1698799729347229,
-0.1807207614183426,
-0.14772100746631622,
0.11725518107414246,
0.026875590905547142,
0.6858153939247131,
-0.04615432769060135,
0.12290260940790176,
-0.20047304034233093,
0.3994077742099762,
-0.312433660030365,
-0.18986493349075317,
-0.2758200764656067,
0.7003496885299683,
-0.5158420205116272,
-0.20546548068523407,
-0.7183876037597656,
0.48914051055908203,
0.7337195873260498,
-0.1175120547413826,
0.9533959627151489,
0.8746064901351929,
-0.8861373066902161,
-0.125338613986969,
-0.6284884810447693,
-0.4729703664779663,
-0.4544825553894043,
0.8687288761138916,
-0.6350417733192444,
-1.1199365854263306,
0.8227498531341553,
-0.22240781784057617,
0.02171579748392105,
0.5882766246795654,
0.6833544969558716,
-0.2745453119277954,
1.3089244365692139,
0.4021073877811432,
0.3787214159965515,
0.42246222496032715,
-0.5024165511131287,
-0.09165925532579422,
-1.0258433818817139,
-0.8448766469955444,
-0.6438778638839722,
-0.49330946803092957,
-0.45237019658088684,
-0.5272616147994995,
0.13273440301418304,
0.6052178740501404,
-0.5750541687011719,
0.7132769227027893,
-0.3632934093475342,
0.49136853218078613,
0.26081541180610657,
0.3297274708747864,
-0.1986551135778427,
0.2191268354654312,
-0.09125966578722,
0.043674662709236145,
-0.8945397734642029,
-0.6452824473381042,
0.9477233290672302,
0.9216138124465942,
0.4873199760913849,
0.1407938450574875,
0.6541234850883484,
0.10780592262744904,
-0.10015279799699783,
-0.8777646422386169,
0.5124962329864502,
-0.16278061270713806,
-0.855940580368042,
-0.09292086213827133,
-0.20696617662906647,
-0.7199745774269104,
0.14624932408332825,
-0.2342839241027832,
-1.0072033405303955,
-0.029355701059103012,
0.1913592517375946,
-0.23155775666236877,
0.35147249698638916,
-0.5749273300170898,
0.6769623756408691,
0.01282842643558979,
-0.33755895495414734,
-0.12911729514598846,
-0.8871088027954102,
-0.025059595704078674,
0.0015477384440600872,
0.08690007776021957,
-0.42939531803131104,
-0.18667705357074738,
1.090214490890503,
-0.6050925850868225,
0.802660346031189,
-0.17979438602924347,
0.3715484142303467,
0.29586589336395264,
0.036759454756975174,
0.9599766135215759,
0.10200387239456177,
-0.19007724523544312,
0.32956254482269287,
0.12195350229740143,
-0.9123082756996155,
-0.24976876378059387,
0.5426566004753113,
-1.0748339891433716,
-0.1674443930387497,
-0.5904820561408997,
-0.35250917077064514,
-0.20058749616146088,
0.2541351616382599,
0.7725739479064941,
0.49955448508262634,
-0.015055048279464245,
0.3713914453983307,
0.6618280410766602,
-0.2682616710662842,
0.27281343936920166,
0.7709749341011047,
-0.23358692228794098,
-0.5733029246330261,
0.6574614644050598,
0.2715482711791992,
0.3607094883918762,
0.36277154088020325,
-0.13399241864681244,
-0.4601365029811859,
-0.6286524534225464,
-0.44345545768737793,
0.2813057005405426,
-0.5167379379272461,
-0.45645344257354736,
-1.1660727262496948,
-0.33647724986076355,
-0.3974854648113251,
-0.14647093415260315,
-0.8324502110481262,
-0.48203879594802856,
-0.23493880033493042,
-0.2952269911766052,
0.6371464133262634,
0.6796403527259827,
-0.29942893981933594,
0.242500439286232,
-0.6598784923553467,
0.20505554974079132,
0.18426337838172913,
0.42188572883605957,
-0.4713980257511139,
-1.010549783706665,
-0.19826146960258484,
-0.043430060148239136,
-0.2952716052532196,
-1.0545628070831299,
0.24816875159740448,
0.5593339800834656,
0.47217923402786255,
0.4722321927547455,
-0.430264413356781,
0.39207974076271057,
-0.4509093761444092,
0.7517218589782715,
0.3917974531650543,
-0.7027214169502258,
0.8234429359436035,
-0.4790959060192108,
0.30232948064804077,
0.6857604384422302,
0.3746759593486786,
-0.7092304229736328,
-0.4439576268196106,
-0.5651525855064392,
-0.8582442402839661,
0.9340387582778931,
0.34992745518684387,
-0.01652023382484913,
-0.15044862031936646,
0.47456297278404236,
0.10882019996643066,
0.0661044493317604,
-0.4665970504283905,
-0.5329884886741638,
0.0615118145942688,
-0.08179668337106705,
0.2044447809457779,
-0.7658749222755432,
-0.19441789388656616,
-0.3271101415157318,
1.094083309173584,
-0.17655408382415771,
0.5558725595474243,
0.021935194730758667,
-0.031178433448076248,
-0.4360264241695404,
-0.17567691206932068,
0.7940462231636047,
0.5575451254844666,
-0.5597056746482849,
0.1061491146683693,
0.39536455273628235,
-0.46131715178489685,
-0.04697268828749657,
0.09902091324329376,
-0.4287671148777008,
0.050634995102882385,
0.23913723230361938,
0.9357270002365112,
0.09405004978179932,
-0.4959694445133209,
0.5749691128730774,
0.2188093513250351,
-0.4756297171115875,
-0.2218163013458252,
-0.12192211300134659,
0.33507412672042847,
0.45828402042388916,
0.2343909740447998,
0.19782201945781708,
0.15282116830348969,
-0.6308636665344238,
0.467692494392395,
0.2777506411075592,
-0.6649008393287659,
-0.4118964672088623,
0.7857384085655212,
0.1880180537700653,
-0.4098900258541107,
0.7456859946250916,
-0.538620114326477,
-0.6710497140884399,
0.8551456332206726,
0.8817096948623657,
0.8575696349143982,
-0.2745877802371979,
0.23418395221233368,
0.9822799563407898,
0.2996458411216736,
-0.40997666120529175,
0.648109495639801,
0.407463014125824,
-0.6366848945617676,
-0.14258742332458496,
-0.9431370496749878,
-0.0515194833278656,
0.4995492398738861,
-0.9731295704841614,
0.550543487071991,
-0.4150903820991516,
-0.27912214398384094,
-0.10849761962890625,
0.18115390837192535,
-0.8356630802154541,
0.17058567702770233,
0.09854123741388321,
1.197348952293396,
-1.1796214580535889,
0.9587405323982239,
1.051628589630127,
-0.26639634370803833,
-0.504551351070404,
-0.5443487167358398,
0.4354577958583832,
-0.9515924453735352,
0.22350428998470306,
0.40875178575515747,
0.18324773013591766,
0.0760713517665863,
-0.3669179081916809,
-0.9488543272018433,
1.594597578048706,
0.2440950721502304,
-0.9640191197395325,
0.17932042479515076,
0.04864425212144852,
0.5473630428314209,
-0.2976279556751251,
0.416392058134079,
0.5125850439071655,
0.2287057489156723,
0.131259024143219,
-0.6905020475387573,
0.12463442236185074,
-0.5395618081092834,
0.1987660676240921,
0.16984392702579498,
-1.2356675863265991,
0.7695242762565613,
-0.28845879435539246,
-0.03907173126935959,
0.4521067440509796,
0.650055468082428,
0.6364552974700928,
0.44041356444358826,
0.31808698177337646,
0.8376544117927551,
0.7555709481239319,
-0.33967626094818115,
0.8847651481628418,
-0.5171399116516113,
0.9460013508796692,
0.9976338148117065,
-0.019087374210357666,
0.6146108508110046,
0.5725572109222412,
-0.31570547819137573,
0.28442123532295227,
1.1209683418273926,
-0.2828802764415741,
0.46939370036125183,
0.3305080533027649,
-0.0628325492143631,
-0.3642248511314392,
-0.07465386390686035,
-0.6704146265983582,
0.1814834475517273,
0.2459566444158554,
-0.39215797185897827,
-0.20207110047340393,
-0.05756114050745964,
0.1448030322790146,
-0.1788448840379715,
-0.018468767404556274,
0.7589463591575623,
0.24003605544567108,
-0.44018709659576416,
0.3197686970233917,
0.2985588610172272,
0.44438934326171875,
-0.6040270924568176,
0.050799038261175156,
-0.4867650866508484,
0.09601303189992905,
-0.3775447607040405,
-0.6895162463188171,
0.34429430961608887,
0.06953170895576477,
-0.25856372714042664,
-0.32116857171058655,
0.8495295643806458,
-0.5368079543113708,
-0.5446425080299377,
0.4853071868419647,
0.5193317532539368,
0.5130595564842224,
-0.05218454450368881,
-1.0712345838546753,
0.2279108613729477,
-0.23420660197734833,
-0.5590859055519104,
0.4882259666919708,
0.1224512830376625,
0.3459535241127014,
0.6662497520446777,
0.2276192456483841,
-0.18255087733268738,
-0.1301821917295456,
0.06933418661355972,
0.7336953282356262,
-0.5853554606437683,
-0.4619547426700592,
-0.7329950928688049,
0.5440044403076172,
-0.07051265984773636,
-0.4264679253101349,
0.711409330368042,
1.1590054035186768,
0.901970386505127,
-0.24581432342529297,
0.5727592706680298,
-0.20875731110572815,
0.5699768662452698,
-0.5159938931465149,
0.6337248682975769,
-0.7762610912322998,
-0.11790647357702255,
-0.007060658652335405,
-0.9663395285606384,
-0.18284662067890167,
0.7047803997993469,
0.09676951915025711,
0.16786301136016846,
0.641517162322998,
1.1378881931304932,
0.1565818190574646,
-0.10736837983131409,
0.18737508356571198,
0.15306153893470764,
0.139578178524971,
0.7925640940666199,
0.7373891472816467,
-1.008851408958435,
0.17869222164154053,
-0.2666102647781372,
-0.42373591661453247,
-0.4338560402393341,
-0.6463002562522888,
-1.1623371839523315,
-0.7806965708732605,
-0.6067060232162476,
-0.8000723719596863,
0.30066439509391785,
1.171266794204712,
1.1211860179901123,
-1.1225453615188599,
-0.1436522752046585,
-0.1925220489501953,
-0.29240062832832336,
-0.36766162514686584,
-0.14665351808071136,
0.25265151262283325,
-0.17920581996440887,
-0.9155244827270508,
0.34177500009536743,
0.5698809027671814,
0.26092207431793213,
0.21766024827957153,
-0.4829370379447937,
-0.28912749886512756,
0.007561840116977692,
0.7385510206222534,
0.3997464179992676,
-0.6201385855674744,
-0.3795100450515747,
0.021847322583198547,
-0.2776602506637573,
-0.09566562622785568,
0.4103512167930603,
-0.0979374498128891,
0.3248024582862854,
0.682682991027832,
0.42947113513946533,
1.052815318107605,
-0.21410758793354034,
0.42501717805862427,
-0.70964515209198,
0.29764965176582336,
0.11865447461605072,
0.3484519124031067,
0.0926651656627655,
-0.15573042631149292,
0.7088847160339355,
0.43991678953170776,
-0.5910385251045227,
-0.8363285064697266,
0.3932109475135803,
-1.2730122804641724,
-0.32323750853538513,
1.5713574886322021,
0.026301996782422066,
-0.011736903339624405,
-0.018540676683187485,
-0.06211797147989273,
0.4315938949584961,
-0.26602068543434143,
0.6443262100219727,
0.7616723775863647,
-0.24025817215442657,
-0.0173515435308218,
-0.6844722628593445,
0.8017314076423645,
0.5649874806404114,
-0.8154276013374329,
-0.5120301842689514,
0.10946990549564362,
0.5754485130310059,
-0.15814930200576782,
0.653670072555542,
-0.42765146493911743,
0.236716166138649,
0.1116117388010025,
-0.01058210339397192,
-0.31468769907951355,
-0.404886931180954,
-0.3129856586456299,
0.044454168528318405,
0.03808499500155449,
-0.2857479453086853
] |
Yale-LILY/brio-cnndm-uncased
|
Yale-LILY
| 2022-11-15T18:19:02Z | 7,963 | 7 |
transformers
|
[
"transformers",
"pytorch",
"bart",
"text2text-generation",
"text-2-text-generation",
"arxiv:2203.16804",
"arxiv:1910.09700",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] |
text2text-generation
| 2022-03-30T23:35:54Z |
---
tags:
- text-2-text-generation
- bart
---
# Model Card for brio-cnndm-uncased
# Model Details
## Model Description
Abstractive summarization models are commonly trained using maximum likelihood estimation, which assumes a deterministic (one-point) target distribution in which an ideal model will assign all the probability mass to the reference summary. This assumption may lead to performance degradation during inference, where the model needs to compare several system-generated (candidate) summaries that have deviated from the reference summary. To address this problem, we propose a novel training paradigm which assumes a non-deterministic distribution so that different candidate summaries are assigned probability mass according to their quality.
- **Developed by:** Yale LILY Lab
- **Shared by [Optional]:** Yale LILY Lab
- **Model type:** Text2Text Generation
- **Language(s) (NLP):** More information needed
- **License:** More information needed
- **Parent Model:** BART
- **Resources for more information:**
- [Github Repo](https://github.com/Yale-LILY/BRIO)
- [Associated Paper](https://arxiv.org/abs/2203.16804)
# Uses
## Direct Use
This model can be used for the task of Text2Text Generation
## Downstream Use [Optional]
Further analysis also shows that our model can estimate probabilities of candidate summaries that are more correlated with their level of quality.
## Out-of-Scope Use
The model should not be used to intentionally create hostile or alienating environments for people.
# Bias, Risks, and Limitations
Significant research has explored bias and fairness issues with language models (see, e.g., [Sheng et al. (2021)](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al. (2021)](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)). Predictions generated by the model may include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups.
## Recommendations
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
# Training Details
## Training Data
The model creators note in the [associated paper](https://arxiv.org/abs/2203.16804):
> CNNDM4: is a large scale news dataset.
Nallapati et al: we treat the news articles as the source documents and the associated highlights as the summaries.
XSum5: is a highly abstractive dataset of articles from the British Broadcasting Corporation (BBC). NYT6: contains articles from the New York Times and the associated summaries
## Training Procedure
### Preprocessing
The model creators note in the [associated paper](https://arxiv.org/abs/2203.16804):
> We follow Kedzie et al. (2018) for data preprocessing and splitting, and use the associated archival abstracts as the summaries
### Speeds, Sizes, Times
More information needed
# Evaluation
## Testing Data, Factors & Metrics
### Testing Data
More information needed
### Factors
More information needed
### Metrics
More information needed
## Results
### CNNDM
| | ROUGE-1 | ROUGE-2 | ROUGE-L |
|----------|---------|---------|---------|
| BART | 44.16 | 21.28 | 40.90 |
| Ours | 47.78 | 23.55 | 44.57 |
# Model Examination
The model creators note in the [associated paper](https://arxiv.org/abs/2203.16804):
> We attribute BRIO-Ctr’s superior performance to its use of the same model architecture (BART) for both candidate generation and scoring, while SimCLS uses RoBERTa as the evaluation model. As a result, BRIO-Ctr maximizes the parameter sharing between the two stages, and preserves the power of the Seq2Seq model pre-trained on the same dataset.
# Environmental Impact
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
- **Hardware Type:** More information needed
- **Hours used:** More information needed
- **Cloud Provider:** More information needed
- **Compute Region:** More information needed
- **Carbon Emitted:** More information needed
# Technical Specifications [optional]
## Model Architecture and Objective
The model creators note in the [associated paper](https://arxiv.org/abs/2203.16804):
> Formulate summarization as a sequence-to-sequence (Seq2Seq) problem
## Compute Infrastructure
More information needed
### Hardware
More information needed
### Software
More information needed.
# Citation
**BibTeX:**
```bibtex
@misc{mesh-transformer-jax,
@misc{https://doi.org/10.48550/arxiv.2203.16804,
doi = {10.48550/ARXIV.2203.16804},
url = {https://arxiv.org/abs/2203.16804},
author = {Liu, Yixin and Liu, Pengfei and Radev, Dragomir and Neubig, Graham},
keywords = {Computation and Language (cs.CL), FOS: Computer and information sciences, FOS: Computer and information sciences},
title = {BRIO: Bringing Order to Abstractive Summarization},
```
# Glossary [optional]
More information needed
# More Information [optional]
More information needed
# Model Card Authors [optional]
Yale LILY Lab in collaboration with Ezi Ozoani and the Hugging Face team
# Model Card Contact
More information needed
# How to Get Started with the Model
Use the code below to get started with the model.
<details>
<summary> Click to expand </summary>
```python
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("Yale-LILY/brio-cnndm-uncased")
model = AutoModelForSeq2SeqLM.from_pretrained("Yale-LILY/brio-cnndm-uncased")
```
</details>
|
[
-0.32231348752975464,
-0.5649971961975098,
0.3181627094745636,
0.08947990834712982,
-0.25856730341911316,
-0.17781837284564972,
-0.20643699169158936,
-0.4311467409133911,
-0.09889397770166397,
0.466444730758667,
-0.3910735845565796,
-0.4868128299713135,
-0.6507292985916138,
0.13079622387886047,
-0.44686785340309143,
1.2885018587112427,
0.18511418998241425,
0.036950092762708664,
-0.31750911474227905,
0.061021462082862854,
-0.26773056387901306,
-0.5142941474914551,
-0.6252468228340149,
-0.2342126965522766,
0.284975528717041,
0.1942298412322998,
0.5182236433029175,
0.5295413136482239,
0.5273256301879883,
0.30153152346611023,
-0.2904825508594513,
0.09342499077320099,
-0.5772026181221008,
-0.27348408102989197,
-0.032378170639276505,
-0.345985472202301,
-0.46839532256126404,
0.09124300628900528,
0.6709264516830444,
0.5741105675697327,
-0.21476243436336517,
0.3099430799484253,
0.00799837801605463,
0.5607354640960693,
-0.5204631686210632,
0.03950785845518112,
-0.6293579936027527,
-0.008342087268829346,
0.004502377938479185,
-0.10146728903055191,
-0.41205713152885437,
-0.19882732629776,
0.06850185245275497,
-0.3568083941936493,
0.39200809597969055,
0.008017359301447868,
1.0716346502304077,
0.1591770052909851,
-0.6217725872993469,
-0.1846453845500946,
-0.6443014740943909,
0.7912582755088806,
-0.9140586853027344,
0.38604727387428284,
0.1718139797449112,
0.1519891321659088,
0.08881403505802155,
-0.6749420166015625,
-0.57773756980896,
-0.15924710035324097,
-0.21361073851585388,
0.5095284581184387,
-0.1604728102684021,
0.03725609928369522,
0.31693023443222046,
0.424009770154953,
-0.673449695110321,
0.07441719621419907,
-0.6854896545410156,
-0.14394886791706085,
0.8783437609672546,
0.28368332982063293,
0.08231309801340103,
-0.37702593207359314,
-0.5917977094650269,
-0.08935177326202393,
-0.4665166437625885,
0.1565614640712738,
0.5136816501617432,
0.28958550095558167,
-0.5544845461845398,
0.5970170497894287,
-0.2623641788959503,
0.6740043759346008,
-0.06985116750001907,
-0.09526864439249039,
0.42943274974823,
-0.7083280086517334,
-0.24807845056056976,
0.003569945925846696,
1.008764386177063,
0.3902522921562195,
-0.00420145969837904,
0.076970674097538,
-0.2385004609823227,
-0.18180841207504272,
0.16012784838676453,
-1.0264406204223633,
-0.26609933376312256,
0.30158618092536926,
-0.4766315817832947,
-0.4294240176677704,
0.16071373224258423,
-0.8719007968902588,
0.029604889452457428,
-0.2890416979789734,
0.35378968715667725,
-0.31664639711380005,
-0.24464863538742065,
0.023883545771241188,
-0.19804897904396057,
0.04777810350060463,
0.2291368693113327,
-0.7678875923156738,
0.28284555673599243,
0.4774670898914337,
0.9670446515083313,
-0.24520425498485565,
-0.13460813462734222,
-0.07404537498950958,
0.06717492640018463,
-0.18221256136894226,
0.6202120184898376,
-0.34747037291526794,
-0.49259325861930847,
-0.29480403661727905,
-0.030752187594771385,
-0.1255401223897934,
-0.1943935602903366,
0.5553427934646606,
-0.4048019051551819,
0.6510722637176514,
-0.08283833414316177,
-0.5985662937164307,
-0.25745847821235657,
0.15045598149299622,
-0.5558727979660034,
1.019181728363037,
0.22691160440444946,
-0.9628663063049316,
0.07329489290714264,
-0.7487339377403259,
-0.3415120244026184,
-0.28186875581741333,
-0.016149522736668587,
-0.8539412617683411,
-0.157490074634552,
0.16555489599704742,
0.4449729919433594,
-0.30097106099128723,
0.3889910578727722,
-0.20379751920700073,
-0.2783087193965912,
0.02639448270201683,
-0.4087771475315094,
1.0820155143737793,
0.38251203298568726,
-0.28984564542770386,
0.08161145448684692,
-0.7733321189880371,
-0.1660829782485962,
0.15376248955726624,
-0.43424108624458313,
-0.1110173687338829,
-0.15885834395885468,
0.14730417728424072,
0.3853912949562073,
0.28878313302993774,
-0.5089200735092163,
0.012371073476970196,
-0.4393024444580078,
0.4058903753757477,
0.674775242805481,
0.10449450463056564,
0.3325618505477905,
-0.4195890724658966,
0.40128591656684875,
0.22692206501960754,
0.25455716252326965,
-0.17870253324508667,
-0.5310471653938293,
-0.5949566960334778,
-0.28724023699760437,
0.373334139585495,
0.5925660133361816,
-0.45970070362091064,
0.5237293839454651,
-0.411467045545578,
-0.7486768960952759,
-0.196885883808136,
-0.06967117637395859,
0.5493304133415222,
0.6020907759666443,
0.42880862951278687,
-0.15473486483097076,
-0.6358714699745178,
-0.8487045168876648,
0.11202381551265717,
-0.1949801743030548,
-0.01328968908637762,
0.3254200220108032,
0.6687431931495667,
-0.15396375954151154,
0.8794153332710266,
-0.5968245267868042,
-0.20397575199604034,
-0.3904568552970886,
0.13397204875946045,
0.3015805184841156,
0.6329700946807861,
0.499090313911438,
-0.8720195293426514,
-0.17049215734004974,
-0.2290564924478531,
-0.5912623405456543,
-0.02573952078819275,
-0.2482239305973053,
-0.08429894596338272,
0.3599320650100708,
0.34995850920677185,
-0.5476775765419006,
0.36080530285835266,
0.5586029887199402,
-0.4501141309738159,
0.6194883584976196,
-0.24686299264431,
0.13077370822429657,
-1.429093360900879,
0.3262328505516052,
0.07814176380634308,
-0.09006379544734955,
-0.6049231886863708,
-0.19482101500034332,
-0.1230710968375206,
-0.08280713111162186,
-0.40019622445106506,
0.6222522854804993,
-0.4304381310939789,
-0.14847376942634583,
-0.12128335982561111,
-0.00400840537622571,
0.12551608681678772,
0.6551787853240967,
0.17537106573581696,
0.7379993200302124,
0.2157164216041565,
-0.7368595004081726,
0.013980310410261154,
0.37097248435020447,
-0.35025110840797424,
0.3639167845249176,
-0.8077622056007385,
-0.08716046065092087,
-0.14046119153499603,
0.3109864890575409,
-0.9301230907440186,
-0.007296319585293531,
0.10400862246751785,
-0.7245766520500183,
0.31838056445121765,
-0.019414978101849556,
-0.4380105435848236,
-0.37337929010391235,
-0.18488509953022003,
0.46652692556381226,
0.4895462393760681,
-0.3022470474243164,
0.4709078371524811,
0.3784116804599762,
-0.07847966998815536,
-0.54386967420578,
-0.678488552570343,
-0.07344124466180801,
-0.17293785512447357,
-0.5566144585609436,
0.5974927544593811,
-0.19109489023685455,
-0.0007282652659341693,
0.03253743425011635,
0.19106899201869965,
-0.10543601959943771,
0.16650043427944183,
0.1865147054195404,
0.4491603970527649,
0.01166117936372757,
0.04532887786626816,
-0.056837230920791626,
-0.13344553112983704,
0.01857207715511322,
-0.05430973693728447,
0.34002551436424255,
-0.009207228198647499,
-0.058719273656606674,
-0.5190178751945496,
0.36265528202056885,
0.46312418580055237,
-0.3530125916004181,
0.7243873476982117,
0.6992283463478088,
-0.41401150822639465,
0.05449245870113373,
-0.42854323983192444,
-0.34105193614959717,
-0.4010467827320099,
0.686464786529541,
-0.18067841231822968,
-0.7854393720626831,
0.5093611478805542,
0.2939748167991638,
0.30703794956207275,
0.7021703720092773,
0.7359893321990967,
-0.011046510189771652,
0.9945898056030273,
0.6013104915618896,
0.021138200536370277,
0.5982671976089478,
-0.5212807655334473,
0.19755418598651886,
-0.9159894585609436,
-0.3343111574649811,
-0.6562032103538513,
-0.12407057732343674,
-0.6753352284431458,
-0.2912862300872803,
0.4613032937049866,
-0.03163772076368332,
-0.4046292006969452,
0.4040222465991974,
-0.6123583912849426,
0.09941436350345612,
0.6115798950195312,
0.07285688817501068,
0.17927640676498413,
-0.08473886549472809,
-0.08455885201692581,
0.1363631784915924,
-0.8000587224960327,
-0.31859052181243896,
1.128642201423645,
0.37764331698417664,
0.4075971245765686,
0.2057540863752365,
0.6557013988494873,
0.22199107706546783,
0.25390514731407166,
-0.3766946494579315,
0.45768237113952637,
-0.1420704424381256,
-0.7021353244781494,
-0.3635503947734833,
-0.7052015662193298,
-0.9887911677360535,
0.27459806203842163,
-0.3136916160583496,
-0.7404437065124512,
0.3125089108943939,
0.06462740153074265,
-0.44018977880477905,
0.33680158853530884,
-0.579020619392395,
0.9165081977844238,
-0.15911193192005157,
-0.26761364936828613,
-0.1949634850025177,
-0.7573392391204834,
0.6582807302474976,
0.045430783182382584,
0.28530120849609375,
-0.056569818407297134,
0.012111040763556957,
0.9361605644226074,
-0.4892021417617798,
0.8049319386482239,
-0.11273789405822754,
0.15806794166564941,
0.3334414064884186,
-0.25012773275375366,
0.5610396862030029,
0.018076162785291672,
-0.2384059578180313,
0.4404984414577484,
0.13279250264167786,
-0.38937410712242126,
-0.4416353404521942,
0.4956549108028412,
-0.9126837849617004,
-0.34301161766052246,
-0.4923989772796631,
-0.616189181804657,
0.05965535342693329,
0.25011953711509705,
0.4898179769515991,
0.4724702537059784,
-0.009533142670989037,
0.13913185894489288,
0.622580349445343,
-0.24354299902915955,
0.4161287546157837,
0.47222521901130676,
-0.014744104817509651,
-0.6774645447731018,
0.8508897423744202,
0.24801002442836761,
0.35785144567489624,
0.4481571912765503,
0.21533553302288055,
-0.4076869785785675,
-0.6513350605964661,
-0.2906656265258789,
0.31250014901161194,
-0.5209970474243164,
-0.26828905940055847,
-0.9412391781806946,
-0.3559539318084717,
-0.5491845607757568,
0.003425135277211666,
-0.34956565499305725,
-0.4379183053970337,
-0.506831169128418,
-0.25218161940574646,
0.2541481554508209,
0.48240265250205994,
-0.04734888672828674,
0.2579384446144104,
-0.6420651078224182,
0.10430749505758286,
0.1264091283082962,
0.1964922696352005,
-0.03343725576996803,
-0.8205088376998901,
-0.4755097031593323,
0.1270073801279068,
-0.4563692510128021,
-0.8338311910629272,
0.39132311940193176,
0.08540061861276627,
0.5796076655387878,
0.3723786473274231,
0.21760141849517822,
0.5227974057197571,
-0.27160102128982544,
0.9585928320884705,
0.2429056614637375,
-0.770740807056427,
0.4856705069541931,
-0.3418543338775635,
0.26718229055404663,
0.5515434741973877,
0.3208957612514496,
-0.4119918644428253,
-0.42426276206970215,
-0.8779339790344238,
-0.879123330116272,
0.7465829849243164,
0.4599195718765259,
0.1820395141839981,
-0.06798384338617325,
0.2478279322385788,
-0.22676149010658264,
0.3302600383758545,
-0.7678887248039246,
-0.31119683384895325,
-0.2411511242389679,
-0.262287974357605,
-0.08061018586158752,
-0.40301749110221863,
0.006122926250100136,
-0.2679535746574402,
1.0115318298339844,
-0.015676142647862434,
0.6623262166976929,
0.37870949506759644,
0.019404638558626175,
0.12958915531635284,
0.11407913267612457,
0.87176913022995,
0.4335937201976776,
-0.35684674978256226,
0.033519305288791656,
0.2219877541065216,
-0.43710261583328247,
-0.07731390744447708,
0.22033646702766418,
-0.3898247480392456,
0.10775849968194962,
0.37521934509277344,
0.857615053653717,
0.23555824160575867,
-0.5944870710372925,
0.6705998182296753,
0.0016631550388410687,
-0.4152781367301941,
-0.37746480107307434,
-0.012419836595654488,
0.009910003282129765,
0.07976627349853516,
0.20950143039226532,
0.13375259935855865,
0.31737178564071655,
-0.33516237139701843,
0.2687569558620453,
0.46661433577537537,
-0.3608626127243042,
-0.27286216616630554,
0.914198637008667,
0.22575104236602783,
-0.032075803726911545,
0.5855215787887573,
-0.2747126817703247,
-0.4841165542602539,
0.8499454855918884,
0.5256054401397705,
0.7874246835708618,
-0.15052637457847595,
0.12974995374679565,
0.8115757703781128,
0.36326563358306885,
-0.03716488182544708,
0.19319593906402588,
0.0016008776146918535,
-0.6605307459831238,
-0.1708705574274063,
-0.5186318755149841,
-0.21915113925933838,
0.06315387040376663,
-0.6162440180778503,
0.4886859953403473,
-0.3996538519859314,
-0.1355699747800827,
0.02815762348473072,
0.2251332551240921,
-0.6670011878013611,
0.3522064685821533,
0.14558696746826172,
0.9137206673622131,
-0.9226648211479187,
0.6352401971817017,
0.5149391293525696,
-0.5484861135482788,
-0.7723105549812317,
-0.25777092576026917,
0.0346389003098011,
-0.48238956928253174,
0.3944925367832184,
0.2003231942653656,
0.26698294281959534,
0.0881430059671402,
-0.3336322605609894,
-0.9602819681167603,
1.399388074874878,
0.20962561666965485,
-0.5775673389434814,
-0.09073781222105026,
-0.031011706218123436,
0.4435350000858307,
-0.42379122972488403,
0.7678837180137634,
0.3342655897140503,
0.38449251651763916,
0.19716522097587585,
-0.7530600428581238,
0.14240463078022003,
-0.2972653806209564,
0.15164585411548615,
0.10471499711275101,
-0.8708791136741638,
0.9278953075408936,
-0.5051169395446777,
-0.2524365782737732,
0.013367869891226292,
0.752403199672699,
0.2630155384540558,
0.44407814741134644,
0.43685418367385864,
0.6604323983192444,
0.7277223467826843,
-0.01009359024465084,
1.09377121925354,
-0.5366678833961487,
0.612163245677948,
1.201292872428894,
0.03932349383831024,
0.7763620018959045,
0.2431117594242096,
-0.3778170943260193,
0.4470181465148926,
0.778267502784729,
-0.27010178565979004,
0.4737880825996399,
0.04611838981509209,
-0.07013902813196182,
-0.11167784035205841,
-0.13051921129226685,
-0.3494730293750763,
0.30938857793807983,
0.11943266540765762,
-0.6235207319259644,
-0.24379421770572662,
-0.13501884043216705,
0.16755540668964386,
-0.04801998659968376,
-0.15281224250793457,
0.7478137016296387,
-0.010703814215958118,
-0.5831789970397949,
0.4663342833518982,
0.2633025050163269,
0.62180095911026,
-0.5659165382385254,
-0.03483085706830025,
-0.1547662317752838,
-0.08916665613651276,
-0.3700799345970154,
-0.5894060730934143,
0.40297284722328186,
0.013290339149534702,
-0.3635166883468628,
-0.004713928792625666,
0.32749277353286743,
-0.5141908526420593,
-0.8591055870056152,
0.09766138345003128,
0.300917387008667,
0.258774995803833,
0.2186378836631775,
-0.8495182394981384,
-0.11594225466251373,
0.1687687635421753,
-0.4495755732059479,
0.17211343348026276,
0.1871413290500641,
-0.06286796182394028,
0.5156905651092529,
0.7957196235656738,
0.024367433041334152,
-0.0834689661860466,
-0.03474429249763489,
0.7610797882080078,
-0.5479776859283447,
-0.7278706431388855,
-0.842766523361206,
0.745773196220398,
-0.19437959790229797,
-0.43651849031448364,
0.6676550507545471,
0.9079654812812805,
0.8575350046157837,
0.13878576457500458,
0.8480063080787659,
-0.0823054388165474,
0.41590240597724915,
-0.5007742047309875,
0.564889132976532,
-0.553851842880249,
0.28203609585762024,
-0.31432342529296875,
-0.7755326628684998,
-0.13325613737106323,
0.3914682865142822,
-0.3921067416667938,
0.35269954800605774,
0.5318637490272522,
0.9313040971755981,
0.06265803426504135,
-0.001963290385901928,
0.2878337800502777,
0.259480357170105,
0.37452268600463867,
0.6196082234382629,
0.35019078850746155,
-0.5927404761314392,
0.5602348446846008,
-0.4131544828414917,
-0.18950097262859344,
-0.30348148941993713,
-0.7396199703216553,
-0.8893085718154907,
-0.6941447257995605,
-0.5651260018348694,
-0.3905600607395172,
0.0006645926041528583,
0.8942452669143677,
0.7656489014625549,
-0.7395194172859192,
-0.15601694583892822,
-0.10576169192790985,
0.2813820242881775,
-0.31929972767829895,
-0.26801204681396484,
0.5008034706115723,
-0.202908456325531,
-0.7466803789138794,
-0.06535264849662781,
0.016645293682813644,
0.2066887766122818,
-0.24455143511295319,
-0.1657097190618515,
-0.2775232493877411,
0.16934342682361603,
0.4883333444595337,
0.06906581670045853,
-0.523211658000946,
-0.09371243417263031,
-0.13635405898094177,
-0.2353028804063797,
0.05727855861186981,
0.5360064506530762,
-0.5813296437263489,
0.3265855610370636,
0.5544018149375916,
0.46421268582344055,
0.5488374829292297,
0.1522718071937561,
0.39640647172927856,
-0.5742619037628174,
-0.0034628419671207666,
0.1304880529642105,
0.39624568819999695,
0.3121173083782196,
-0.7049081921577454,
0.5357409715652466,
0.3644240200519562,
-0.6010298728942871,
-0.8459807634353638,
0.018512502312660217,
-1.136878490447998,
-0.2634551525115967,
1.2817838191986084,
-0.07710788398981094,
-0.24862895905971527,
0.07157237082719803,
-0.09991602599620819,
0.40426313877105713,
-0.4378020763397217,
0.7474305033683777,
0.43047064542770386,
-0.0262495968490839,
-0.31749436259269714,
-0.586460530757904,
0.32320865988731384,
0.19017145037651062,
-0.7917250990867615,
-0.06537792086601257,
0.42761221528053284,
0.400407612323761,
0.05725473165512085,
0.6434094309806824,
-0.1767871081829071,
0.26136887073516846,
-0.10499273240566254,
0.33293792605400085,
-0.3847312331199646,
-0.17464062571525574,
-0.36224350333213806,
0.09447450935840607,
-0.31514257192611694,
-0.16203628480434418
] |
line-corporation/japanese-large-lm-3.6b-instruction-sft
|
line-corporation
| 2023-08-24T10:08:28Z | 7,951 | 21 |
transformers
|
[
"transformers",
"pytorch",
"safetensors",
"gpt_neox",
"text-generation",
"ja",
"license:apache-2.0",
"has_space",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-08-03T01:34:20Z |
---
license: apache-2.0
inference: false
language: ja
---
# japanese-large-lm-3.6b-instruction-sft
This repository provides a 3.6B parameters Japanese language model, fine-tuned and trained by [LINE Corporation](https://linecorp.com/ja/).
## For Japanese
詳細な説明や実験に関しては「[Instruction Tuningにより対話性能を向上させた3.6B日本語言語モデルを公開します](https://engineering.linecorp.com/ja/blog/3.6b-japanese-language-model-with-improved-dialog-performance-by-instruction-tuning)」をご覧ください。
## How to use
```python
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
tokenizer = AutoTokenizer.from_pretrained("line-corporation/japanese-large-lm-3.6b-instruction-sft", use_fast=False)
model = AutoModelForCausalLM.from_pretrained("line-corporation/japanese-large-lm-3.6b-instruction-sft")
generator = pipeline("text-generation", model=model, tokenizer=tokenizer, device=0)
input_text = """四国の県名を全て列挙してください。"""
text = generator(
f"ユーザー: {input_text}\nシステム: ",
max_length = 256,
do_sample = True,
temperature = 0.7,
top_p = 0.9,
top_k = 0,
repetition_penalty = 1.1,
num_beams = 1,
pad_token_id = tokenizer.pad_token_id,
num_return_sequences = 1,
)
print(text)
# [{'generated_text': 'ユーザー: 四国の県名を全て列挙してください。\nシステム: 高知県、徳島県、香川県、愛媛県'}]
```
## Tokenization
We use a sentencepiece tokenizer with a unigram language model and byte-fallback.
We **do not** apply pre-tokenization with Japanese tokenizer.
Thus, a user may directly feed raw sentences into the tokenizer.
## License
[Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0)
|
[
-0.23177678883075714,
-0.9982892870903015,
0.35577821731567383,
0.4863235652446747,
-0.635005533695221,
-0.1225433200597763,
-0.3193210959434509,
-0.02470039762556553,
0.06468051671981812,
0.7177530527114868,
-0.6075366735458374,
-0.5805398225784302,
-0.49027007818222046,
0.17405390739440918,
-0.07967051863670349,
1.0594849586486816,
-0.34915971755981445,
0.1502026915550232,
0.29890161752700806,
0.23780465126037598,
-0.4454050362110138,
-0.3959011435508728,
-0.854924738407135,
-0.30561208724975586,
0.1969011425971985,
0.29714885354042053,
0.6609218120574951,
0.7043605446815491,
0.349041610956192,
0.3796188533306122,
0.1501166969537735,
0.022740816697478294,
-0.1806311309337616,
0.003342598909512162,
0.25945624709129333,
-0.5657849907875061,
-0.37596601247787476,
0.005961949005723,
0.8368492126464844,
0.5297211408615112,
0.19503070414066315,
-0.033197205513715744,
-0.1656499058008194,
0.2718804180622101,
-0.3187163174152374,
0.5683268904685974,
-0.5617799162864685,
-0.03729862719774246,
-0.27649804949760437,
-0.45024752616882324,
-0.5932232141494751,
-0.32625481486320496,
-0.2591376006603241,
-0.5626742243766785,
0.19903014600276947,
0.1282223016023636,
1.262087106704712,
0.29103967547416687,
-0.17731982469558716,
-0.26037806272506714,
-0.3090457320213318,
0.8946308493614197,
-1.1103678941726685,
0.19076520204544067,
0.49979379773139954,
-0.04440052807331085,
-0.24392862617969513,
-0.8357325196266174,
-0.4798155426979065,
-0.2561591863632202,
-0.09005878120660782,
0.1746511608362198,
0.12529684603214264,
0.2267393171787262,
0.6213274002075195,
0.32056090235710144,
-0.64720219373703,
0.3901071846485138,
-0.5770607590675354,
-0.32742998003959656,
0.5516402721405029,
0.31440162658691406,
0.5611472725868225,
-0.389719158411026,
-0.22171103954315186,
-0.29526272416114807,
-0.4521837532520294,
0.10993652045726776,
0.495688259601593,
0.42876574397087097,
-0.35036760568618774,
0.6207072734832764,
-0.23327839374542236,
0.7002518773078918,
0.10539446026086807,
-0.15469425916671753,
0.4292043447494507,
-0.2780435383319855,
-0.2626151740550995,
0.061338335275650024,
1.3034780025482178,
0.31439459323883057,
0.156695157289505,
0.021292779594659805,
-0.11080729961395264,
-0.1685190349817276,
-0.1291145533323288,
-1.2050838470458984,
-0.24844495952129364,
-0.030061498284339905,
-0.36676594614982605,
-0.17183226346969604,
0.3032342791557312,
-0.7626991271972656,
0.13653022050857544,
0.008672772906720638,
0.4877079129219055,
-0.5165934562683105,
-0.10760894417762756,
0.1272713840007782,
-0.25153303146362305,
0.37269705533981323,
-0.12574908137321472,
-1.0163275003433228,
-0.05819997191429138,
0.28140178322792053,
0.8270307183265686,
0.24576617777347565,
-0.5547177791595459,
-0.2196478396654129,
0.03968042507767677,
-0.2193787544965744,
0.32499733567237854,
-0.3272677958011627,
-0.4807400405406952,
-0.28431567549705505,
0.2142898291349411,
-0.33171525597572327,
-0.30383777618408203,
0.38124167919158936,
-0.44929811358451843,
0.7003859281539917,
0.14723186194896698,
-0.6399780511856079,
0.024348299950361252,
-0.17924503982067108,
-0.47877317667007446,
1.0506737232208252,
0.06128491088747978,
-0.8897940516471863,
0.15530556440353394,
-0.6852931976318359,
-0.5456206202507019,
0.10583872348070145,
-0.062027741223573685,
-0.5015261769294739,
0.018362486734986305,
0.4050486087799072,
0.5543258190155029,
-0.055840566754341125,
0.22936080396175385,
-0.1982782781124115,
-0.5636891722679138,
0.4123014509677887,
-0.8013707399368286,
1.216678500175476,
0.22044001519680023,
-0.5472823977470398,
0.18849393725395203,
-0.7920517325401306,
0.2416974902153015,
0.10526333749294281,
-0.3734406530857086,
-0.09023391455411911,
-0.18273554742336273,
0.16577449440956116,
0.08225754648447037,
0.6286239624023438,
-0.41230520606040955,
0.22587157785892487,
-0.8439392447471619,
0.6678332686424255,
0.7975829839706421,
0.12933878600597382,
0.21937403082847595,
-0.04322497546672821,
0.5849625468254089,
0.1432569921016693,
-0.0019797321874648333,
-0.4118458032608032,
-0.35736069083213806,
-1.0844216346740723,
-0.36428436636924744,
0.13020499050617218,
0.5440436005592346,
-0.9761772155761719,
0.923111081123352,
-0.10703480243682861,
-0.5056607723236084,
-0.5270546078681946,
-0.06472928822040558,
0.44439488649368286,
0.3901183307170868,
0.3634578585624695,
0.018034400418400764,
-0.750852644443512,
-0.732872724533081,
-0.22837066650390625,
-0.2643495798110962,
-0.09758540987968445,
0.02549796737730503,
0.38911134004592896,
-0.3123614192008972,
0.7593791484832764,
-0.5582989454269409,
0.08203602582216263,
-0.3325709402561188,
0.4517458379268646,
0.7146615982055664,
0.6012769341468811,
0.18007665872573853,
-0.4663389027118683,
-0.626427948474884,
-0.09892740100622177,
-0.627262532711029,
-0.31441494822502136,
-0.11577775329351425,
-0.18378908932209015,
0.45392170548439026,
0.6440174579620361,
-0.5551995635032654,
0.2341565042734146,
0.40303224325180054,
-0.554778516292572,
0.4702725112438202,
-0.3070421814918518,
0.24621793627738953,
-1.6207656860351562,
0.17306923866271973,
-0.0886300802230835,
-0.12281084060668945,
-0.4174351394176483,
0.34065407514572144,
0.09490057080984116,
-0.12256702035665512,
-0.53011554479599,
0.67037433385849,
-0.482092946767807,
0.26406028866767883,
-0.3117721676826477,
0.07736283540725708,
-0.022401398047804832,
0.6502626538276672,
0.14923715591430664,
0.9584817886352539,
0.383890837430954,
-0.6144892573356628,
0.5953547954559326,
0.11041952669620514,
-0.35663947463035583,
0.043791141360998154,
-0.7929789423942566,
0.005796675104647875,
0.007556869648396969,
0.2673678994178772,
-0.909761905670166,
-0.3658950626850128,
0.48782607913017273,
-0.643706738948822,
0.2951124906539917,
0.10076311230659485,
-0.634555995464325,
-0.5065284967422485,
-0.23271360993385315,
0.20560230314731598,
0.7072409987449646,
-0.365549772977829,
0.20742999017238617,
0.009976275265216827,
-0.2025478035211563,
-0.5528306365013123,
-0.852738618850708,
-0.11032607406377792,
-0.2724517285823822,
-0.42629483342170715,
0.09930915385484695,
-0.3078051507472992,
0.24370023608207703,
-0.2845896780490875,
-0.02395053580403328,
-0.2953144311904907,
0.11544404923915863,
-0.008670578710734844,
0.5330213904380798,
-0.39557084441185,
-0.295888751745224,
0.1863287091255188,
-0.2966230809688568,
0.3182583451271057,
-0.06902643293142319,
0.9928179979324341,
-0.032637979835271835,
-0.16693907976150513,
-0.7478516101837158,
0.005335262510925531,
0.43774285912513733,
0.015309504233300686,
0.7719178795814514,
0.9828858971595764,
-0.2629602551460266,
-0.025530852377414703,
-0.3401099741458893,
-0.1579175442457199,
-0.537631630897522,
0.6994002461433411,
-0.44168248772621155,
-0.7613542079925537,
0.5289337038993835,
0.23681694269180298,
0.05206216126680374,
0.6678007245063782,
0.5941979289054871,
0.04548564553260803,
1.2494964599609375,
0.300162136554718,
-0.21324290335178375,
0.46051523089408875,
-0.29515236616134644,
0.38073965907096863,
-0.868158221244812,
-0.11289545148611069,
-0.5414400100708008,
0.08353156596422195,
-0.6788384318351746,
-0.30744776129722595,
0.188138946890831,
0.30198636651039124,
-0.43439754843711853,
0.5300431847572327,
-0.43616533279418945,
0.4910978376865387,
0.5043113231658936,
0.04872845113277435,
0.02031848020851612,
-0.16111373901367188,
-0.22688212990760803,
-0.09247864782810211,
-0.5591715574264526,
-0.6122851967811584,
0.8555454611778259,
0.5572479367256165,
0.8518943786621094,
-0.17345920205116272,
0.7799239158630371,
-0.34844163060188293,
-0.05014926195144653,
-0.7913397550582886,
0.6705547571182251,
-0.2306826412677765,
-0.6700116395950317,
-0.3350682854652405,
-0.7339784502983093,
-0.920418381690979,
0.1370081752538681,
0.21481402218341827,
-0.9826545715332031,
-0.4029781222343445,
-0.012081380002200603,
-0.13975466787815094,
0.259428471326828,
-0.8991405367851257,
1.0484293699264526,
-0.30846771597862244,
-0.1319347470998764,
0.1278003603219986,
-0.48733216524124146,
0.3476402461528778,
0.033396054059267044,
0.0784120038151741,
-0.12875252962112427,
-0.09049832075834274,
0.9631907939910889,
-0.4169459342956543,
0.9426108002662659,
-0.24755248427391052,
-0.03712566941976547,
0.04888598248362541,
-0.3045395612716675,
0.41590094566345215,
0.20032347738742828,
-0.058618344366550446,
0.15887080132961273,
0.11563564836978912,
-0.42604291439056396,
-0.43438059091567993,
0.8513447046279907,
-1.1284605264663696,
-0.5773181915283203,
-0.4012639820575714,
-0.501849889755249,
-0.08333618938922882,
0.5357997417449951,
0.87940913438797,
0.42680785059928894,
0.04031148925423622,
0.3786913752555847,
0.6033585071563721,
-0.3888854384422302,
0.7989664673805237,
0.413348913192749,
-0.2661284804344177,
-0.49566006660461426,
0.962980329990387,
0.10064000636339188,
0.24024181067943573,
0.43002989888191223,
0.2700318992137909,
-0.4258914291858673,
-0.218733549118042,
-0.674472987651825,
0.24963471293449402,
-0.5484619140625,
-0.14720021188259125,
-0.5206683278083801,
-0.6100313663482666,
-0.5446184277534485,
-0.20164546370506287,
-0.3394341468811035,
-0.22947749495506287,
-0.6044010519981384,
0.07075320929288864,
0.3725453317165375,
0.3055386245250702,
0.3785957098007202,
0.5729055404663086,
-0.7930428981781006,
0.40488067269325256,
-0.11661085486412048,
0.489358514547348,
-0.08264465630054474,
-0.758299708366394,
-0.47715985774993896,
0.3608994483947754,
-0.29427865147590637,
-0.7558550834655762,
0.5136112570762634,
-0.07442513853311539,
0.48994743824005127,
0.40038031339645386,
0.06337060034275055,
0.7549976110458374,
-0.3405168056488037,
0.9707251787185669,
0.23214197158813477,
-1.2463395595550537,
0.5792257189750671,
-0.37832972407341003,
0.6757857799530029,
0.37033677101135254,
0.36902543902397156,
-0.6603237986564636,
-0.5999847650527954,
-0.6267238259315491,
-1.0743433237075806,
1.0886335372924805,
0.07222700119018555,
0.29400554299354553,
-0.0965014398097992,
0.21573852002620697,
0.014149919152259827,
0.09111400693655014,
-1.0687967538833618,
-0.40213027596473694,
-0.3575483560562134,
-0.6602288484573364,
-0.09391374886035919,
-0.09946484863758087,
0.34097540378570557,
-0.2624637186527252,
1.057990550994873,
-0.069383405148983,
0.4259665310382843,
-0.001348220743238926,
-0.17578792572021484,
-0.05422275513410568,
0.2495894730091095,
0.5269641280174255,
0.5000218749046326,
-0.20916415750980377,
-0.06060519069433212,
0.27988359332084656,
-0.5893601775169373,
0.07381103187799454,
0.21647952497005463,
-0.4310672879219055,
0.2133261263370514,
0.3748513460159302,
1.300851821899414,
0.3169040083885193,
-0.39562690258026123,
0.33267369866371155,
-0.07800126820802689,
-0.183769091963768,
-0.45074179768562317,
0.2500839829444885,
0.0059953657910227776,
-0.12802565097808838,
0.1966163069009781,
-0.3623647093772888,
-0.05930720642209053,
-0.3826121985912323,
-0.06548450142145157,
0.25495725870132446,
-0.20320925116539001,
-0.09565801173448563,
0.6945600509643555,
0.31591707468032837,
-0.2690351903438568,
0.7506622076034546,
-0.07871566712856293,
-0.6409386396408081,
0.671459436416626,
0.8628225922584534,
0.770080029964447,
-0.13389204442501068,
0.04535877704620361,
0.7217196226119995,
0.3234078586101532,
-0.05522506684064865,
0.1828470379114151,
0.07360168546438217,
-0.6746108531951904,
-0.3241473138332367,
-0.7644093632698059,
-0.20454439520835876,
0.4105953276157379,
-0.5949892401695251,
0.46633315086364746,
-0.7001317739486694,
-0.05051751062273979,
-0.19101370871067047,
0.34443074464797974,
-0.44793033599853516,
0.29458630084991455,
-0.06961645931005478,
0.7463694214820862,
-0.8145118355751038,
0.8973826766014099,
0.6376829743385315,
-0.7361893653869629,
-1.0887199640274048,
0.10468635708093643,
-0.4094511568546295,
-1.0691499710083008,
0.491412878036499,
0.35581621527671814,
0.07951989769935608,
0.30688416957855225,
-0.48772093653678894,
-0.9105433225631714,
0.937734067440033,
0.17989972233772278,
-0.4778999090194702,
-0.07648912817239761,
0.18853069841861725,
0.5365005731582642,
-0.0977289080619812,
0.5328009724617004,
0.484549343585968,
0.5484632253646851,
-0.07163751870393753,
-0.8499634265899658,
0.23236766457557678,
-0.3342152535915375,
0.2905370593070984,
0.32048720121383667,
-0.7860833406448364,
0.894191563129425,
0.07559749484062195,
-0.1919664442539215,
0.41995319724082947,
0.8077549934387207,
0.33504635095596313,
0.08029764890670776,
0.21449339389801025,
0.38815054297447205,
0.5426512360572815,
-0.27496689558029175,
0.6465901136398315,
-0.44759106636047363,
0.48105576634407043,
0.8686935901641846,
0.06929689645767212,
0.8418718576431274,
0.4538089334964752,
-0.18961907923221588,
0.6197425127029419,
0.585491418838501,
-0.3116452991962433,
0.31977686285972595,
0.17192834615707397,
-0.05435236915946007,
0.07655152678489685,
0.3076581060886383,
-0.4447821080684662,
0.4893990457057953,
0.3760112524032593,
-0.4577590823173523,
0.06372888386249542,
-0.051405806094408035,
0.40143629908561707,
-0.18480192124843597,
-0.20174972712993622,
0.705485999584198,
-0.037944041192531586,
-0.8683469295501709,
0.768042266368866,
0.41975733637809753,
0.9707127809524536,
-0.7555683851242065,
0.1756446212530136,
-0.21901313960552216,
0.2623707950115204,
-0.1084480956196785,
-0.6726934909820557,
0.14726696908473969,
0.21060027182102203,
-0.16707606613636017,
-0.1402181088924408,
0.3805675208568573,
-0.5987738370895386,
-0.7154296636581421,
-0.05995853245258331,
-0.04321037977933884,
0.4135359525680542,
0.3899252116680145,
-0.7744786739349365,
0.2525607645511627,
0.2558833658695221,
-0.5090559720993042,
0.07165446132421494,
0.3317418098449707,
0.14104948937892914,
0.37786865234375,
0.5468020439147949,
0.11519428342580795,
0.17444048821926117,
0.23288580775260925,
0.5130646824836731,
-0.7542872428894043,
-0.5285087823867798,
-0.9698688983917236,
0.5494658350944519,
-0.16294452548027039,
-0.6199067234992981,
0.9267475605010986,
0.6387938857078552,
1.0363717079162598,
-0.1583181917667389,
0.8463826179504395,
-0.18270182609558105,
0.3526143729686737,
-0.9157530665397644,
0.7722890973091125,
-0.3738466501235962,
0.05535783991217613,
-0.29863420128822327,
-1.0043548345565796,
-0.20938165485858917,
0.8944658041000366,
-0.17999958992004395,
0.43504413962364197,
0.9132499098777771,
0.874335527420044,
0.08038787543773651,
-0.08882881700992584,
0.20066218078136444,
0.5679892301559448,
0.3263046443462372,
0.753049910068512,
0.5625936388969421,
-0.813834547996521,
0.4086417257785797,
-0.44563695788383484,
-0.20008552074432373,
-0.14892271161079407,
-0.7724506855010986,
-1.0358771085739136,
-0.6123140454292297,
-0.3154791593551636,
-0.32405370473861694,
-0.26147937774658203,
1.1182808876037598,
0.595356285572052,
-0.7629597187042236,
-0.41130176186561584,
-0.3072408139705658,
-0.12611842155456543,
0.16517890989780426,
-0.35278332233428955,
0.33832108974456787,
-0.6846722364425659,
-1.0101473331451416,
0.2676558792591095,
-0.03672731667757034,
0.053416796028614044,
-0.31670790910720825,
-0.10994815081357956,
-0.04855215549468994,
0.08202710747718811,
0.22386768460273743,
0.18657465279102325,
-0.9604683518409729,
-0.16051900386810303,
-0.04486764222383499,
-0.35955870151519775,
-0.11967552453279495,
0.45241549611091614,
-0.34706810116767883,
0.28761959075927734,
0.531340479850769,
0.39867427945137024,
0.5406227707862854,
-0.31853652000427246,
0.650319516658783,
-0.8811588287353516,
0.3260507881641388,
-0.006708537228405476,
0.5432780385017395,
0.2526107728481293,
-0.46068471670150757,
0.16625778377056122,
0.31656885147094727,
-0.5358788371086121,
-0.6567593216896057,
0.07418201863765717,
-0.8581244945526123,
-0.38938412070274353,
1.1572421789169312,
-0.19999319314956665,
-0.3472267687320709,
0.27359530329704285,
-0.5348178148269653,
0.6415550112724304,
-0.2716810405254364,
0.6362860798835754,
0.8313723206520081,
0.10024180263280869,
-0.3242480754852295,
-0.3096036911010742,
0.30071890354156494,
0.41307052969932556,
-0.8055537939071655,
0.03943483531475067,
0.3014070689678192,
0.30248984694480896,
0.025531915947794914,
0.568619966506958,
-0.05726831778883934,
0.1926697939634323,
0.056387294083833694,
0.1710655242204666,
-0.1734367460012436,
0.0204911045730114,
-0.33927586674690247,
-0.20468266308307648,
0.10725301504135132,
-0.3245120346546173
] |
KoboldAI/OPT-6.7B-Nerybus-Mix
|
KoboldAI
| 2023-02-13T14:56:10Z | 7,950 | 19 |
transformers
|
[
"transformers",
"pytorch",
"opt",
"text-generation",
"en",
"license:other",
"has_space",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-02-13T14:21:14Z |
---
license: other
language:
- en
inference: false
---
# OPT-6.7B-Nerybus-Mix
This is an experimental model containing a ***parameter-wise 50/50 blend (weighted average)*** of the weights of *NerysV2-6.7B* and *ErebusV1-6.7B*
Preliminary testing produces pretty coherent outputs, however, it seems less impressive than the 2.7B variant of Nerybus, as both 6.7B source models appear more similar than their 2.7B counterparts.
# License
The two models used for this blend, *NerysV2-6.7B* and *ErebusV1-6.7B* are made by **Mr. Seeker**.
- https://huggingface.co/KoboldAI/OPT-6.7B-Erebus
- https://huggingface.co/KoboldAI/OPT-6B-nerys-v2
The base OPT-6.7B model is licensed under the OPT-175B license, Copyright (c) Meta Platforms, Inc. All Rights Reserved.
# Evaluation Results
No formal evaluation is available for this model at this time. This blend was created in FP16, due to available memory constraints.
It is recommend to use this model with the KoboldAI software. All feedback and comments can be directed to Concedo on the KoboldAI discord.
|
[
-0.5117758512496948,
-0.7213228940963745,
0.16975508630275726,
0.6115142703056335,
-0.42273467779159546,
-0.2910413444042206,
-0.12030376493930817,
-0.8917222023010254,
0.8168354630470276,
0.495552659034729,
-0.7495663166046143,
-0.19167205691337585,
-0.5100200176239014,
-0.14567598700523376,
-0.38872718811035156,
0.7467158436775208,
-0.003071330487728119,
0.2824711501598358,
0.10191524773836136,
-0.1413525938987732,
-0.6893573999404907,
-0.10298655182123184,
-0.8558067679405212,
-0.6348093152046204,
0.6637547016143799,
0.3491745889186859,
0.8092820644378662,
-0.0440562479197979,
0.5403939485549927,
0.2997063994407654,
-0.34703147411346436,
-0.16116178035736084,
-0.6931107640266418,
-0.20399148762226105,
-0.0318661704659462,
-0.6143492460250854,
-0.9284008741378784,
0.16466525197029114,
0.4949045777320862,
0.27008965611457825,
-0.4777678847312927,
0.2229904681444168,
-0.22927887737751007,
0.2770948112010956,
-0.4549087882041931,
-0.3388938009738922,
-0.28891927003860474,
0.11432818323373795,
-0.02158256247639656,
0.03678805008530617,
-0.6437216401100159,
-0.13804753124713898,
0.21926908195018768,
-0.7094584107398987,
0.2960442304611206,
0.42095282673835754,
1.1486976146697998,
0.04145990312099457,
-0.038923703134059906,
-0.10706214606761932,
-0.2627880275249481,
1.065279245376587,
-1.0884474515914917,
0.26441168785095215,
0.18176458775997162,
0.49506422877311707,
-0.18912634253501892,
-0.5692633986473083,
-0.18748757243156433,
-0.017724420875310898,
0.1709183007478714,
0.4878794550895691,
-0.3789609968662262,
-0.09030967205762863,
-0.006947983056306839,
0.3969418704509735,
-0.585698127746582,
0.16580350697040558,
-0.7732685804367065,
-0.1417406052350998,
0.6215434670448303,
0.33063703775405884,
0.1749986857175827,
-0.24609783291816711,
-0.38292890787124634,
-0.4730681777000427,
-0.3617880046367645,
-0.23562617599964142,
0.6583217978477478,
0.09329766780138016,
-0.4391336739063263,
0.80657559633255,
-0.4679858386516571,
0.9018815159797668,
0.32975271344184875,
0.06754228472709656,
0.41332247853279114,
-0.4848445951938629,
-0.6713918447494507,
0.14415794610977173,
0.657835066318512,
0.753588080406189,
0.029510166496038437,
0.07690968364477158,
-0.1287640929222107,
0.1221182569861412,
0.17566440999507904,
-1.1158114671707153,
-0.5506255626678467,
0.27575719356536865,
-0.7646932601928711,
-0.6273213028907776,
0.23105521500110626,
-0.7600855231285095,
-0.050482407212257385,
-0.11522459983825684,
0.5534316897392273,
-0.46164557337760925,
-0.5201953053474426,
0.25392821431159973,
-0.5812012553215027,
0.7423718571662903,
0.3297731578350067,
-0.6773637533187866,
0.3822624683380127,
0.2738003432750702,
0.7045928239822388,
-0.23300625383853912,
-0.023351220414042473,
0.033443205058574677,
-0.27026641368865967,
-0.33275648951530457,
0.6706647276878357,
-0.49821314215660095,
-0.5817850828170776,
-0.40865808725357056,
0.13757413625717163,
0.17094828188419342,
-0.7838197946548462,
0.49680325388908386,
-0.24595743417739868,
0.18635129928588867,
-0.20086871087551117,
-0.4437996745109558,
-0.516654908657074,
0.03582735359668732,
-0.8329683542251587,
1.106330156326294,
0.3944200277328491,
-0.5519048571586609,
0.7538004517555237,
-0.3231951594352722,
-0.14666326344013214,
0.18706738948822021,
0.015231212601065636,
-0.4173380434513092,
0.4859102666378021,
-0.10458485037088394,
0.04264004901051521,
-0.25133875012397766,
-0.03752461448311806,
-1.0649789571762085,
-0.6014314293861389,
0.2953055799007416,
-0.37492018938064575,
0.9180668592453003,
0.22899119555950165,
-0.20415368676185608,
-0.07456296682357788,
-0.6812021732330322,
0.2855020761489868,
0.14698944985866547,
-0.01314628217369318,
-0.18087360262870789,
-0.2365945726633072,
0.3625381588935852,
0.13421344757080078,
0.34327584505081177,
-0.4019645154476166,
-0.17855806648731232,
-0.3984523117542267,
0.14993304014205933,
0.6980410218238831,
-0.11095234751701355,
0.5116735100746155,
-0.6970281004905701,
0.5355604887008667,
0.03134121000766754,
0.3849165439605713,
0.40633752942085266,
-0.7385304570198059,
-1.0789673328399658,
-0.3185991644859314,
0.6398405432701111,
0.3089873790740967,
-0.277565062046051,
0.34612444043159485,
0.17549456655979156,
-0.9391761422157288,
-0.4104551374912262,
-0.30248957872390747,
0.06069667637348175,
0.013774690218269825,
0.17499001324176788,
-0.31534674763679504,
-0.5892350077629089,
-1.0788533687591553,
-0.26069676876068115,
-0.013339756987988949,
0.04281488060951233,
0.4119645953178406,
0.5753955841064453,
-0.11012676358222961,
0.7098631858825684,
-0.6435022950172424,
0.06425482779741287,
-0.3017711937427521,
0.26453277468681335,
0.5985590219497681,
0.4740856885910034,
0.993783712387085,
-0.7493667006492615,
-0.533019483089447,
-0.04869959503412247,
-0.5710358619689941,
-0.3220282793045044,
0.4332476556301117,
-0.3383565843105316,
0.03327848017215729,
0.1237284392118454,
-0.37947311997413635,
0.584973931312561,
0.7985954880714417,
-0.5686423778533936,
0.5563274025917053,
-0.2580753266811371,
0.3357458710670471,
-1.1129353046417236,
-0.010221730917692184,
0.05056500807404518,
-0.3641481101512909,
-0.4375600218772888,
0.06856997311115265,
0.09502799063920975,
0.3206557631492615,
-0.8678617477416992,
0.6718778014183044,
-0.48815038800239563,
-0.09334038943052292,
-0.2743099629878998,
0.09950947016477585,
-0.0751597061753273,
0.3271382749080658,
-0.05052468180656433,
0.160532146692276,
0.5796992778778076,
-0.4744553565979004,
0.49907559156417847,
0.06606702506542206,
-0.07496677339076996,
0.9381690621376038,
-1.0839780569076538,
-0.3354462683200836,
-0.06364680826663971,
0.12769557535648346,
-0.7095251083374023,
-0.4558252990245819,
0.5662242770195007,
-0.6348745226860046,
0.1428556591272354,
-0.024350427091121674,
-0.35117918252944946,
-0.13470064103603363,
-0.4066777229309082,
0.4769183099269867,
0.9923995733261108,
-0.22276341915130615,
1.0290242433547974,
0.09287261217832565,
-0.11781591922044754,
-0.1845337301492691,
-1.074324131011963,
-0.4548928141593933,
-0.48308131098747253,
-0.764568030834198,
0.4095052182674408,
-0.32203537225723267,
-0.22802233695983887,
0.1467752456665039,
-0.31383568048477173,
-0.32437965273857117,
-0.4155029058456421,
0.4157962501049042,
0.6636845469474792,
0.005375217646360397,
-0.44786536693573,
0.2805757522583008,
-0.008637315593659878,
0.11948584765195847,
-0.02862670086324215,
0.3241021931171417,
0.05330212041735649,
-0.23274119198322296,
-0.28506067395210266,
0.11209946125745773,
0.4407452642917633,
0.2576752305030823,
0.6058100461959839,
0.5461295247077942,
-0.44440191984176636,
-0.2083289921283722,
-0.4762464463710785,
-0.19767171144485474,
-0.5019384026527405,
0.33973366022109985,
-0.21362556517124176,
-0.30469489097595215,
0.725942075252533,
0.4191530644893646,
0.24093596637248993,
0.8614242672920227,
0.5077612400054932,
-0.09316583722829819,
1.0287108421325684,
0.31764236092567444,
0.3110656440258026,
0.5355550050735474,
-0.3089092969894409,
0.06372102349996567,
-0.612444281578064,
-0.48358961939811707,
-0.4107653796672821,
-0.725849986076355,
-0.6202491521835327,
-0.3810606002807617,
0.10462940484285355,
0.014960250817239285,
0.15066546201705933,
0.6099523901939392,
-0.44642847776412964,
0.3086436688899994,
0.6426123976707458,
0.5631994605064392,
0.04033743962645531,
0.24863190948963165,
0.05334729328751564,
0.03239557519555092,
-0.9594359993934631,
0.029396912083029747,
0.9803605675697327,
0.36963412165641785,
1.0564186573028564,
0.06255713105201721,
0.6195740103721619,
0.12354657799005508,
0.4027193784713745,
-0.4636659026145935,
0.594920814037323,
-0.07952812314033508,
-1.2197608947753906,
0.06021999940276146,
-0.6292138695716858,
-0.5487325191497803,
0.5656193494796753,
-0.41699454188346863,
-0.44855690002441406,
0.27655380964279175,
0.24533386528491974,
-0.2931327819824219,
0.02837056666612625,
-0.917607843875885,
0.9155842065811157,
-0.23976486921310425,
-0.2809232175350189,
-0.16267076134681702,
-0.4660576283931732,
0.15541377663612366,
0.14836765825748444,
-0.016133306547999382,
-0.1053299829363823,
0.2774558663368225,
0.938054621219635,
-0.26751911640167236,
0.5647826194763184,
-0.057444628328084946,
0.283978670835495,
0.6435409188270569,
-0.07745905965566635,
0.47766685485839844,
0.07672613114118576,
0.09857049584388733,
0.23807744681835175,
0.0005356234032660723,
-0.7396956086158752,
-0.26266056299209595,
0.7588354349136353,
-0.6220448613166809,
0.2555638253688812,
-0.5467128753662109,
-0.5068396925926208,
0.4358367323875427,
0.22540798783302307,
0.6307975053787231,
0.7902758717536926,
-0.30079951882362366,
0.431478351354599,
0.8001273274421692,
-0.10229012370109558,
0.41104841232299805,
0.529514491558075,
-0.3855252265930176,
-0.6664043664932251,
0.8497356176376343,
0.055187780410051346,
0.5359682440757751,
0.08341044932603836,
0.1240917220711708,
-0.36886781454086304,
-0.3522080183029175,
-0.2649465799331665,
0.27950775623321533,
-0.6355020999908447,
0.027895770967006683,
-0.3658195436000824,
-0.10420987010002136,
-0.328551322221756,
-0.20016467571258545,
-0.47445714473724365,
-0.33842501044273376,
-0.4318298101425171,
0.13488082587718964,
0.15553820133209229,
0.7447944283485413,
0.10945698618888855,
0.46138063073158264,
-0.4243491291999817,
0.07612442970275879,
0.13234414160251617,
0.4340730905532837,
-0.2644226551055908,
-0.8433193564414978,
0.019019996747374535,
0.4848839044570923,
-0.15029601752758026,
-1.234368920326233,
0.4434035122394562,
-0.11540662497282028,
0.5169495940208435,
0.38908651471138,
-0.2406848669052124,
0.7632499933242798,
0.05266302451491356,
0.6310588121414185,
0.4520711600780487,
-0.46344372630119324,
0.11853358894586563,
-0.33092159032821655,
0.4633246958255768,
0.7026582956314087,
0.04661902040243149,
0.1422731727361679,
-0.5821007490158081,
-0.9287118315696716,
-0.9068198204040527,
0.8259634375572205,
0.7294714450836182,
-0.3364925682544708,
0.30327308177948,
0.03060377947986126,
0.13047216832637787,
0.3713283836841583,
-1.0239551067352295,
-0.36557427048683167,
-0.16595223546028137,
-0.43486547470092773,
-0.11516591161489487,
-0.24008415639400482,
0.11928290128707886,
-0.15263760089874268,
0.8788525462150574,
0.29482516646385193,
0.23790906369686127,
0.1665317416191101,
-0.1179351806640625,
-0.13229183852672577,
-0.1833735704421997,
0.6476149559020996,
0.7431379556655884,
-0.7722535133361816,
-0.11479976773262024,
0.415621817111969,
-0.5622437000274658,
-0.266888290643692,
0.17327016592025757,
-0.32767051458358765,
0.1798325628042221,
-0.034623079001903534,
0.7535418272018433,
0.44763684272766113,
-0.5224611759185791,
0.2137700766324997,
-0.14504766464233398,
-0.6024279594421387,
-0.2607756555080414,
0.20283739268779755,
0.07605673372745514,
0.4775390625,
-0.08149092644453049,
0.19983989000320435,
0.30739304423332214,
-0.31694167852401733,
-0.04893340542912483,
0.29877641797065735,
-0.45445969700813293,
-0.15019863843917847,
0.5914997458457947,
0.18517336249351501,
-0.14975760877132416,
0.5572408437728882,
-0.5614401698112488,
0.04940316826105118,
0.8595374822616577,
0.5750787258148193,
0.8389763236045837,
-0.02465711161494255,
0.07617486268281937,
0.40180009603500366,
0.5232795476913452,
-0.24470114707946777,
0.5105498433113098,
0.4443049132823944,
-0.22504952549934387,
-0.22634254395961761,
-0.7241734862327576,
-0.3671596944332123,
-0.1598350703716278,
-0.6295584440231323,
0.7155234813690186,
-0.05902179330587387,
-0.43040063977241516,
-0.06709101051092148,
-0.12177679687738419,
-0.45686718821525574,
0.46257665753364563,
-0.031168455258011818,
0.8600327372550964,
-1.1809273958206177,
0.37282219529151917,
0.8870720267295837,
-0.18210574984550476,
-0.7989830374717712,
-0.6314184069633484,
-0.40492868423461914,
-0.27383530139923096,
0.010820326395332813,
0.28073349595069885,
0.14114296436309814,
-0.3114570379257202,
-0.6743641495704651,
-0.7732412815093994,
1.1486785411834717,
0.20705381035804749,
-0.3626098036766052,
-0.06346739828586578,
-0.31228330731391907,
0.22674769163131714,
-0.35130128264427185,
0.710362434387207,
0.349698007106781,
0.6320728063583374,
0.4422072470188141,
-0.7820760011672974,
-0.2228037416934967,
-0.3416935205459595,
-0.03793742135167122,
0.33147481083869934,
-0.7458422780036926,
1.0858814716339111,
0.13045917451381683,
0.09912510961294174,
0.17747634649276733,
0.8291150331497192,
0.5380692481994629,
0.4642099142074585,
0.5196756720542908,
0.986518383026123,
0.1860705018043518,
-0.23927833139896393,
0.957568347454071,
-0.15757891535758972,
0.6945369839668274,
1.1478592157363892,
-0.041162170469760895,
0.5489369034767151,
0.6252283453941345,
-0.2241850644350052,
0.38133347034454346,
0.9761617183685303,
-0.24666276574134827,
0.5155453681945801,
0.026187298819422722,
0.21027103066444397,
-0.28194180130958557,
0.2640756070613861,
-0.5466232299804688,
0.13025571405887604,
-0.0017159869894385338,
-0.4740535318851471,
-0.1380780190229416,
-0.655203640460968,
0.07370554655790329,
-0.5363311171531677,
-0.2873417139053345,
0.18504446744918823,
0.11858156323432922,
-0.8053056001663208,
0.5001447200775146,
0.20773537456989288,
0.7124646306037903,
-0.8983780741691589,
-0.16201657056808472,
0.06591658294200897,
0.0692358985543251,
-0.2090405821800232,
-0.585635244846344,
0.15750418603420258,
-0.4748765230178833,
-0.06423136591911316,
0.18689385056495667,
0.9003236889839172,
-0.48301640152931213,
-0.7268074154853821,
0.2953590750694275,
-0.16128268837928772,
0.36739373207092285,
-0.02538021095097065,
-0.6975510120391846,
0.24051617085933685,
-0.10557621717453003,
-0.2958177328109741,
-0.03523000702261925,
-0.13538594543933868,
0.35053083300590515,
0.470901757478714,
0.399222195148468,
0.1403583586215973,
0.5241479277610779,
-0.19737572968006134,
0.515605628490448,
-0.27415937185287476,
-0.7668775320053101,
-0.6242828369140625,
0.39845141768455505,
-0.4544348120689392,
-0.5256001949310303,
0.8855254054069519,
0.6358235478401184,
0.7228828072547913,
-0.12745046615600586,
0.47213470935821533,
-0.5845540761947632,
-0.07994797825813293,
-0.40008270740509033,
0.4229450523853302,
-0.8545072674751282,
-0.43061426281929016,
-0.29615768790245056,
-1.3867119550704956,
0.21654696762561798,
0.7156783938407898,
0.12106477469205856,
0.5806907415390015,
0.7238051891326904,
0.7694567441940308,
-0.29233160614967346,
0.08982057124376297,
0.19476284086704254,
0.37009936571121216,
-0.17416644096374512,
0.6194841861724854,
0.4414258599281311,
-0.7123425602912903,
0.3308747410774231,
-0.22986309230327606,
-0.44017431139945984,
-0.716608464717865,
-0.835815966129303,
-1.0743364095687866,
0.2383446842432022,
-0.19536401331424713,
-0.5665867924690247,
0.012485910207033157,
0.5150243043899536,
0.8841707706451416,
-0.49914437532424927,
-0.4081350862979889,
-0.2596641778945923,
-0.07579346746206284,
-0.1271180957555771,
-0.1901068538427353,
-0.4122602641582489,
0.39529210329055786,
-0.8110679984092712,
0.17607170343399048,
0.22441673278808594,
0.4581543803215027,
-0.28763872385025024,
-0.2812531590461731,
-0.05062030628323555,
0.3495848476886749,
0.2488553822040558,
-0.08278939872980118,
-0.6281912922859192,
0.03733900189399719,
0.21874384582042694,
0.09700440615415573,
-0.1972416341304779,
0.16180101037025452,
-0.3735940456390381,
0.4320031702518463,
1.0767991542816162,
-0.1939530372619629,
0.6589836478233337,
-0.02661711536347866,
0.428874135017395,
-0.2304975390434265,
0.25621429085731506,
-0.00015037035336717963,
0.4303733706474304,
-0.005526485852897167,
0.03491383045911789,
0.33892297744750977,
0.2709088921546936,
-0.49257177114486694,
-0.7304763793945312,
0.1795572191476822,
-1.5019164085388184,
-0.18380722403526306,
1.2996087074279785,
0.30847597122192383,
-0.4952544569969177,
0.6150476336479187,
-0.26882070302963257,
0.12710735201835632,
-0.41982975602149963,
0.12298005074262619,
0.6753873229026794,
0.20938539505004883,
0.15289194881916046,
-0.7733122706413269,
-0.04968569800257683,
0.7091431617736816,
-0.4612779915332794,
-0.5478885769844055,
0.47479328513145447,
0.5154402852058411,
0.020571153610944748,
0.39601120352745056,
-0.40838080644607544,
0.43442875146865845,
0.3807345926761627,
0.14891751110553741,
0.02902544103562832,
-0.5246585607528687,
-0.05812860652804375,
0.07430921494960785,
-0.11857695877552032,
-0.10121409595012665
] |
42MARU/GenAI-llama-2-13b
|
42MARU
| 2023-11-18T04:34:33Z | 7,941 | 4 |
transformers
|
[
"transformers",
"pytorch",
"llama",
"text-generation",
"llama-2",
"instruct",
"instruction",
"en",
"endpoints_compatible",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-09-24T14:28:22Z |
---
language:
- en
tags:
- llama-2
- instruct
- instruction
pipeline_tag: text-generation
---
# GenAI-llama-2-13b
### Model Details
- Developed by: [42MARU](https://www.42maru.ai/en/)
- Backbone Model: [LLaMA-2](https://github.com/facebookresearch/llama/tree/main)
- Library: [transformers](https://github.com/huggingface/transformers)
### Used Datasets
- Orca-style dataset
- Platypus
### Prompt Template
```
### User:
{User}
### Assistant:
{Assistant}
```
### Intruduce 42MARU
- At 42Maru we study QA (Question Answering) and are developing advanced search paradigms that help users spend less time searching by understanding natural language and intention thanks to AI and Deep Learning.
- [About Us](https://www.42maru.ai/en/about-us/)
- [Contact Us](https://www.42maru.ai/en/contact/)
### Contribute
- [l-yohai](https://github.com/l-yohai)
### License
[LICENSE.txt](meta-license/LICENSE.txt)
### USE_POLICY
[USE_POLICY.md](meta-license/USE_POLICY.md)
### Responsible Use Guide
[Responsible-Use-Guide.pdf](meta-license/Responsible-Use-Guide.pdf)
# [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_42MARU__sitebunny-13b)
| Metric | Value |
|-----------------------|---------------------------|
| Avg. | 56.03 |
| ARC (25-shot) | 63.14 |
| HellaSwag (10-shot) | 83.64 |
| MMLU (5-shot) | 59.91 |
| TruthfulQA (0-shot) | 56.21 |
| Winogrande (5-shot) | 76.72 |
| GSM8K (5-shot) | 9.4 |
| DROP (3-shot) | 43.23 |
|
[
-0.38082265853881836,
-0.6690526604652405,
0.4107047915458679,
0.20437999069690704,
-0.3448435068130493,
0.2489158660173416,
0.04378883168101311,
-0.1825578212738037,
0.4911510646343231,
0.2762976288795471,
-0.7416548132896423,
-1.1264883279800415,
-0.7046294212341309,
0.029354220256209373,
-0.1909864991903305,
0.9244455099105835,
-0.07947951555252075,
-0.15101958811283112,
-0.075952909886837,
-0.4229065179824829,
-0.5452792644500732,
-0.37553977966308594,
-0.8831332921981812,
-0.39777547121047974,
0.4162741005420685,
0.6010466814041138,
0.6225957870483398,
0.49639394879341125,
0.6712978482246399,
0.31880781054496765,
-0.3477177619934082,
0.09640827775001526,
-0.703144371509552,
-0.1661861091852188,
0.039977241307497025,
-0.6040732264518738,
-1.1757361888885498,
0.03499123826622963,
0.7214877009391785,
0.35544565320014954,
-0.3360481560230255,
0.7399821877479553,
0.1323046237230301,
0.7609668374061584,
-0.25455304980278015,
0.5513033270835876,
-0.44907113909721375,
0.10077916830778122,
-0.4290589988231659,
-0.23195667564868927,
0.10618532449007034,
-0.5942867398262024,
-0.1568022519350052,
-0.7215539216995239,
-0.13455192744731903,
0.1759384125471115,
1.1401785612106323,
0.43508079648017883,
-0.2834550738334656,
-0.25103121995925903,
-0.038855914026498795,
0.8335880041122437,
-0.9562342166900635,
0.3196260631084442,
0.6348181366920471,
0.35524556040763855,
-0.3021160960197449,
-0.6883077621459961,
-0.3860901892185211,
0.13281629979610443,
0.011531629599630833,
0.5142151117324829,
-0.1135249212384224,
-0.31934526562690735,
0.019342977553606033,
0.6998819708824158,
-0.7371170520782471,
0.5181728601455688,
-0.5501760244369507,
-0.06724034994840622,
1.0074141025543213,
0.5453318357467651,
0.1910727620124817,
-0.30295029282569885,
-0.2374071329832077,
-0.37588733434677124,
-0.6416257619857788,
0.4631664752960205,
0.517447829246521,
0.14089249074459076,
-0.5080702900886536,
0.8950210809707642,
-0.4989275336265564,
0.3424915671348572,
-0.0810672715306282,
-0.4255530834197998,
0.5640327334403992,
-0.5868581533432007,
-0.2645573019981384,
-0.23119428753852844,
0.9031367897987366,
0.6234495043754578,
-0.013201162219047546,
0.2509445548057556,
-0.09379453212022781,
-0.15258221328258514,
-0.20349222421646118,
-0.8136011362075806,
-0.12470126152038574,
0.2878060042858124,
-0.6872027516365051,
-0.2950355112552643,
0.3173291087150574,
-0.9430809020996094,
-0.20598846673965454,
0.026536332443356514,
0.2062302827835083,
-0.11603183299303055,
-0.33299100399017334,
0.24634228646755219,
0.027020931243896484,
0.7130722403526306,
0.21890635788440704,
-0.5527349710464478,
0.28942546248435974,
0.5468006730079651,
0.7613787055015564,
-0.2371016889810562,
-0.2075785994529724,
-0.08091222494840622,
-0.18879595398902893,
-0.1814490109682083,
0.5866576433181763,
-0.22821533679962158,
-0.6126985549926758,
-0.34354615211486816,
0.029801053926348686,
-0.09744921326637268,
-0.4975249469280243,
0.880792498588562,
-0.45930448174476624,
0.3884037137031555,
-0.13240331411361694,
-0.43273067474365234,
-0.4448319673538208,
0.32992035150527954,
-0.644135594367981,
1.6021780967712402,
0.13015954196453094,
-0.6460142731666565,
0.15671859681606293,
-0.8977486491203308,
0.015887929126620293,
-0.004237466957420111,
-0.08893846720457077,
-0.7034552693367004,
-0.24862173199653625,
0.4434230923652649,
0.5226138234138489,
-0.39825257658958435,
0.23203079402446747,
-0.22908538579940796,
-0.3731565773487091,
0.1860741674900055,
0.0037958361208438873,
1.0706732273101807,
0.1376260370016098,
-0.1515238732099533,
0.2649669647216797,
-0.8655827045440674,
-0.01670033670961857,
0.6617224216461182,
-0.6031776070594788,
0.052005574107170105,
-0.18982508778572083,
-0.09227771311998367,
0.009594227187335491,
0.7055539488792419,
-0.475394606590271,
0.3861531913280487,
-0.30807915329933167,
0.24784183502197266,
0.9638659358024597,
-0.03303150460124016,
0.17753566801548004,
-0.39574357867240906,
0.8335659503936768,
-0.11938166618347168,
0.4438800513744354,
0.2846783697605133,
-1.0159343481063843,
-0.8241757154464722,
-0.24246132373809814,
0.13970406353473663,
0.8385509848594666,
-0.3656729757785797,
0.7742839455604553,
-0.23108543455600739,
-0.8465537428855896,
-0.859244167804718,
0.25639137625694275,
0.3144870400428772,
0.5964429974555969,
0.3836614489555359,
-0.5024453997612,
-0.6950210332870483,
-0.995219886302948,
0.11683078855276108,
-0.40504777431488037,
-0.015051043592393398,
0.657772421836853,
0.6378892064094543,
-0.3662247955799103,
0.855654776096344,
-0.8302822709083557,
-0.4811156988143921,
-0.22781406342983246,
-0.054405707865953445,
0.7408766746520996,
0.28183361887931824,
0.6357483863830566,
-0.7039124965667725,
-0.2694428265094757,
-0.24429716169834137,
-1.0454504489898682,
-0.18098610639572144,
0.43681299686431885,
-0.1954749971628189,
0.0697658434510231,
0.27765870094299316,
-0.4558659791946411,
0.6313256025314331,
0.606566309928894,
-0.5142382383346558,
0.573300838470459,
0.12663309276103973,
0.20467641949653625,
-1.351380705833435,
0.2551809847354889,
-0.05908774957060814,
-0.024179868400096893,
-0.1959058791399002,
0.3069034218788147,
-0.37722086906433105,
0.09734191000461578,
-0.4510500133037567,
0.6999692916870117,
-0.2435513734817505,
-0.2169569730758667,
0.1346203237771988,
0.2895393371582031,
-0.06221291050314903,
0.5510421395301819,
-0.33290407061576843,
0.8815107941627502,
0.5356030464172363,
-0.30167409777641296,
0.5456364154815674,
0.7347432971000671,
-0.35234081745147705,
0.26898837089538574,
-0.7689444422721863,
0.057498447597026825,
0.08090760558843613,
0.32801535725593567,
-1.2152584791183472,
-0.2918662130832672,
0.4740680158138275,
-0.6961908340454102,
-0.08714957535266876,
-0.017046399414539337,
-0.8333432674407959,
-0.516132652759552,
-0.8250814080238342,
0.5797008872032166,
0.6527656316757202,
-0.36141571402549744,
0.14367026090621948,
0.4356217682361603,
-0.19753743708133698,
-0.6139441728591919,
-0.8059133291244507,
-0.016726380214095116,
-0.3409925699234009,
-0.5701966881752014,
0.23289215564727783,
-0.3776179850101471,
0.010553141124546528,
0.03053470142185688,
0.07614170014858246,
-0.06937744468450546,
0.301220566034317,
0.4102918803691864,
0.5525903105735779,
-0.3789781332015991,
-0.3290874660015106,
-0.1964903026819229,
-0.1878359615802765,
0.1026177927851677,
0.2522619664669037,
0.6676554083824158,
-0.41447460651397705,
-0.3551958203315735,
-0.7499971985816956,
-0.1408379226922989,
0.3871299922466278,
-0.26872867345809937,
0.6757009625434875,
0.7236821055412292,
-0.1980765461921692,
0.20231641829013824,
-0.3995218276977539,
0.009170756675302982,
-0.4903368651866913,
0.31569650769233704,
-0.38950619101524353,
-1.139026403427124,
1.0241081714630127,
0.12000146508216858,
0.0459664985537529,
0.8784629702568054,
0.6688809394836426,
0.026704370975494385,
0.891440212726593,
0.4865454137325287,
-0.24164125323295593,
0.4019416272640228,
-0.672572672367096,
0.07582930475473404,
-1.1089402437210083,
-0.5442424416542053,
-0.3849645256996155,
-0.4916776418685913,
-1.0407158136367798,
-0.3027251958847046,
0.3950827419757843,
0.36200085282325745,
-0.42374226450920105,
0.4637187421321869,
-0.7407472729682922,
0.2636915147304535,
0.6352687478065491,
0.2101399004459381,
0.36891141533851624,
-0.19718821346759796,
-0.2958192229270935,
-0.003460764652118087,
-0.6266120672225952,
-0.4599974751472473,
1.4969357252120972,
0.5805346965789795,
0.8358955979347229,
0.3125832676887512,
0.8220964670181274,
0.1668597161769867,
0.09749709814786911,
-0.7610772848129272,
0.8586407899856567,
0.029234131798148155,
-0.4945679306983948,
-0.32406067848205566,
-0.3527686893939972,
-0.9825087785720825,
0.14292845129966736,
-0.0698125883936882,
-0.8977144956588745,
0.061826154589653015,
-0.26153868436813354,
-0.35069629549980164,
0.4382186532020569,
-0.22794893383979797,
0.682339072227478,
-0.26059815287590027,
0.03662246838212013,
-0.09677748382091522,
-0.6283208131790161,
0.6175737380981445,
-0.041375789791345596,
0.0475909523665905,
-0.3223000764846802,
-0.1725049763917923,
0.9799216389656067,
-0.1641026735305786,
0.8292510509490967,
0.06163990497589111,
-0.11347442865371704,
0.35795673727989197,
-0.13651302456855774,
0.2358599752187729,
0.291731059551239,
-0.24878144264221191,
0.45305559039115906,
-0.21274322271347046,
-0.49007001519203186,
-0.17543238401412964,
0.6128753423690796,
-1.0650995969772339,
-0.6481596231460571,
-0.4859565198421478,
-0.44400230050086975,
0.23035955429077148,
0.13087624311447144,
0.2407284677028656,
0.13501162827014923,
-0.16732318699359894,
0.2907390892505646,
0.4507162570953369,
-0.4071255326271057,
0.3921794593334198,
0.2968282103538513,
-0.6303447484970093,
-0.6086385846138,
0.8186230063438416,
0.05107170343399048,
-0.17113451659679413,
0.25417637825012207,
-0.0020626273471862078,
-0.4919940233230591,
-0.7146650552749634,
-0.4050896167755127,
0.32305705547332764,
-0.5590808987617493,
-0.38810738921165466,
-0.32100579142570496,
-0.591550350189209,
-0.46719470620155334,
0.15394170582294464,
-0.28766095638275146,
-0.6007399559020996,
-0.5851606130599976,
-0.46661412715911865,
0.4591755270957947,
0.8155059814453125,
-0.009483800269663334,
0.3550003468990326,
-0.49680179357528687,
0.23706036806106567,
0.2575651705265045,
0.34924283623695374,
-0.014672482386231422,
-0.7416175603866577,
-0.18469099700450897,
-0.15834824740886688,
-0.616426408290863,
-0.791737973690033,
0.38192299008369446,
0.09950827807188034,
0.8286556005477905,
0.2367553412914276,
-0.1356211155653,
0.6347519755363464,
-0.04154662415385246,
1.1164127588272095,
0.0006537666195072234,
-0.6081122159957886,
0.7848175168037415,
-0.3581472337245941,
0.3053610920906067,
0.6661673188209534,
0.35027849674224854,
-0.25126758217811584,
-0.44246771931648254,
-0.7098392844200134,
-1.0561399459838867,
0.570445716381073,
0.44041958451271057,
-0.19154039025306702,
0.24592618644237518,
0.4035765528678894,
-0.017271598801016808,
0.18477754294872284,
-0.8396697640419006,
-0.561382532119751,
-0.1671512871980667,
-0.33153024315834045,
0.05634576827287674,
-0.2973830997943878,
-0.19007425010204315,
-0.3347328305244446,
0.824289858341217,
-0.1579119861125946,
0.17844638228416443,
0.13387611508369446,
-0.048070814460515976,
-0.043319132179021835,
0.19068904221057892,
0.6471652984619141,
0.9245071411132812,
-0.590287446975708,
-0.37092140316963196,
0.3874477446079254,
-0.5089507699012756,
-0.006352243945002556,
0.24050204455852509,
-0.07019003480672836,
-0.33240652084350586,
0.4712505042552948,
0.6683997511863708,
0.028269249945878983,
-0.5553404688835144,
0.4704231321811676,
-0.09262159466743469,
-0.11024471372365952,
-0.4335147738456726,
0.05597884953022003,
0.26455530524253845,
0.40830308198928833,
0.5292059779167175,
-0.45129331946372986,
0.19869548082351685,
-0.4680643081665039,
0.21632644534111023,
0.3578418791294098,
-0.16579179465770721,
-0.3692828118801117,
0.7993280291557312,
0.11841193586587906,
-0.2214801162481308,
0.6436817049980164,
-0.2290903478860855,
-0.5074808597564697,
0.9226050972938538,
0.19672717154026031,
0.783793568611145,
-0.2720462679862976,
0.11423580348491669,
0.625170111656189,
0.2735992968082428,
0.06953347474336624,
0.5759587287902832,
0.13600239157676697,
-0.6188511252403259,
-0.18592368066310883,
-0.8162332773208618,
-0.42497244477272034,
0.3083024322986603,
-0.8287849426269531,
0.33137136697769165,
-0.5748528838157654,
-0.3672454059123993,
-0.1895553320646286,
0.5064471960067749,
-0.8130043148994446,
0.12573564052581787,
0.07728274166584015,
1.085526943206787,
-0.666745662689209,
0.7050624489784241,
0.9003182649612427,
-0.7060832977294922,
-0.8076784610748291,
-0.4049271047115326,
0.2670985758304596,
-1.2081286907196045,
0.6114673018455505,
0.05798478424549103,
0.034545913338661194,
0.013218563050031662,
-0.7345297336578369,
-1.0462281703948975,
1.9283926486968994,
0.04472016543149948,
-0.4351491928100586,
0.22419977188110352,
0.09766814857721329,
0.5410054922103882,
-0.4186745882034302,
0.3737201392650604,
0.4952899217605591,
0.6146525144577026,
0.1104336827993393,
-1.1283307075500488,
0.16097897291183472,
-0.3018236458301544,
-0.16717766225337982,
-0.10424020886421204,
-1.2476814985275269,
0.9720107316970825,
-0.11007604002952576,
-0.10893004387617111,
0.5334159135818481,
0.6502313613891602,
0.8075129389762878,
0.511515200138092,
0.24965126812458038,
1.244328498840332,
0.6199268698692322,
-0.15233711898326874,
0.90045166015625,
-0.07637281715869904,
0.6823144555091858,
0.9006426930427551,
-0.08347391337156296,
0.9647241830825806,
0.07870915532112122,
-0.4505932331085205,
0.7101808190345764,
1.0310618877410889,
-0.2834074795246124,
0.40204405784606934,
0.1512824147939682,
0.1524330973625183,
-0.025374768301844597,
-0.144076868891716,
-0.5748881697654724,
0.6550043225288391,
0.2557806670665741,
-0.21898069977760315,
-0.29993104934692383,
-0.5070058107376099,
0.19553954899311066,
-0.07674812525510788,
-0.32898178696632385,
0.820620059967041,
0.2383863627910614,
-0.22423289716243744,
0.5791087746620178,
0.07474721223115921,
0.8227026462554932,
-0.5218791961669922,
-0.12347645312547684,
-0.5406050086021423,
0.04323495551943779,
-0.39121371507644653,
-1.1221444606781006,
0.018761947751045227,
-0.03935552015900612,
-0.060549844056367874,
-0.10947414487600327,
0.5350726246833801,
-0.071530282497406,
-0.616579532623291,
0.5553473830223083,
0.6559568643569946,
0.44332534074783325,
0.3087292015552521,
-1.0851705074310303,
0.08610422164201736,
-0.008748063817620277,
-0.5186060070991516,
0.3089835047721863,
0.14527757465839386,
-0.11794597655534744,
0.8477890491485596,
0.7994906902313232,
0.0054232957772910595,
0.14472317695617676,
-0.042960260063409805,
1.071352481842041,
-0.8514651656150818,
-0.43821632862091064,
-0.8045198917388916,
0.5346352458000183,
-0.11298510432243347,
-0.7533071637153625,
0.7746785879135132,
0.9732058644294739,
0.7535769939422607,
0.3215051591396332,
0.42665034532546997,
-0.06392495334148407,
0.4156104326248169,
-0.543816864490509,
0.9696657657623291,
-0.8894741535186768,
0.2146168053150177,
0.0445045568048954,
-1.108621597290039,
-0.29726067185401917,
0.4336038827896118,
-0.052496347576379776,
-0.020296618342399597,
0.4396788477897644,
0.8600741028785706,
0.08405229449272156,
-0.11978426575660706,
0.06437022984027863,
0.3792229890823364,
0.3294919431209564,
0.7806385159492493,
0.7232159376144409,
-0.8149012923240662,
0.5758514404296875,
-0.11494390666484833,
-0.28650346398353577,
-0.48689931631088257,
-0.6486502289772034,
-0.8794371485710144,
-0.38188567757606506,
-0.22685123980045319,
-0.33993324637413025,
-0.07425455749034882,
0.6850894093513489,
0.5281679034233093,
-0.8761772513389587,
-0.5750418305397034,
0.33344197273254395,
0.2815352976322174,
-0.07888602465391159,
-0.29572057723999023,
0.6219650506973267,
0.1717003732919693,
-0.7092132568359375,
0.4995800852775574,
0.09241540729999542,
0.01495566125959158,
-0.3834313750267029,
-0.30045440793037415,
-0.5088406801223755,
-0.11314580589532852,
0.5666874647140503,
0.4260842204093933,
-0.9359994530677795,
-0.17999422550201416,
0.054741259664297104,
-0.19673703610897064,
0.32562050223350525,
0.056198813021183014,
-0.6080467700958252,
0.08581013977527618,
0.7726567387580872,
0.46421152353286743,
0.6463837623596191,
0.23374617099761963,
0.10695011168718338,
-0.6565359830856323,
0.07311227917671204,
0.10394693911075592,
0.39687836170196533,
0.3720755875110626,
-0.34289440512657166,
1.1311602592468262,
0.31126004457473755,
-0.7065590620040894,
-0.7865710854530334,
0.029312700033187866,
-1.4056296348571777,
-0.006454369518905878,
1.0397169589996338,
-0.2033129185438156,
-0.23756542801856995,
0.37039124965667725,
-0.1857692450284958,
0.26349297165870667,
-0.6296115517616272,
0.6857248544692993,
0.7585279941558838,
-0.3073286712169647,
-0.21161609888076782,
-0.6830429434776306,
0.2328067272901535,
0.2194119095802307,
-0.999878466129303,
-0.6348714828491211,
0.20165084302425385,
0.37211763858795166,
0.0625205710530281,
0.7461614608764648,
-0.3218545913696289,
0.033212244510650635,
-0.30813539028167725,
0.09466438740491867,
-0.1116030290722847,
-0.0019346229964867234,
-0.34780213236808777,
0.07714176177978516,
0.0031428812071681023,
-0.4767915606498718
] |
facebook/mask2former-swin-small-coco-instance
|
facebook
| 2023-09-07T15:39:26Z | 7,921 | 1 |
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-26T13:27:43Z |
---
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 (small-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.

## 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-small-coco-instance")
model = Mask2FormerForUniversalSegmentation.from_pretrained("facebook/mask2former-swin-small-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.4778170883655548,
-0.717906653881073,
0.2975069284439087,
0.1967320442199707,
-0.3468799591064453,
-0.11212750524282455,
0.0983634814620018,
-0.7373156547546387,
0.13817259669303894,
0.5245122313499451,
-0.59796142578125,
-0.25976336002349854,
-0.7440766096115112,
-0.3593268096446991,
-0.1379271000623703,
0.8113706111907959,
-0.06185980513691902,
-0.07189101725816727,
-0.387532114982605,
-0.0423806756734848,
-0.32857394218444824,
-0.3731885850429535,
-0.9146720170974731,
-0.35152700543403625,
0.1946893036365509,
0.42370545864105225,
0.3038637340068817,
0.5589246153831482,
0.553795576095581,
0.3111398220062256,
-0.10667970776557922,
-0.029703747481107712,
-0.5282906293869019,
-0.12141554057598114,
0.13563159108161926,
-0.5342166423797607,
-0.2272872030735016,
0.15109223127365112,
0.4998660981655121,
0.24915164709091187,
0.08596958965063095,
0.4412912428379059,
-0.05413804575800896,
0.5143750905990601,
-0.541172981262207,
0.28144189715385437,
-0.47077667713165283,
0.16688472032546997,
-0.10129565000534058,
0.4120323061943054,
-0.3412928879261017,
-0.1022925078868866,
0.09275546669960022,
-0.3831248879432678,
0.5422658920288086,
0.03498106822371483,
1.0254981517791748,
0.25965169072151184,
-0.08338908851146698,
-0.0937478244304657,
-0.431598037481308,
0.7291954755783081,
-0.3909509778022766,
0.2252558171749115,
0.37890946865081787,
0.6257977485656738,
0.21125344932079315,
-1.1742329597473145,
-0.3950761556625366,
0.227823406457901,
-0.1605144590139389,
0.10017158091068268,
-0.324874609708786,
0.021950233727693558,
0.40964242815971375,
0.40214890241622925,
-0.5091539025306702,
0.06187108904123306,
-0.9112576842308044,
-0.32889536023139954,
0.6667999029159546,
-0.17066676914691925,
0.3275584280490875,
-0.24440333247184753,
-0.5569930672645569,
-0.28770163655281067,
-0.33188268542289734,
0.5150843262672424,
0.15406008064746857,
-0.2689547538757324,
-0.2799966633319855,
0.5497686862945557,
-0.09005720913410187,
0.6709144711494446,
0.34149643778800964,
-0.12091898918151855,
0.13116943836212158,
0.1975673884153366,
-0.38991090655326843,
0.08355367928743362,
0.6923295259475708,
0.4039120376110077,
0.018792225047945976,
0.07826398313045502,
-0.059766028076410294,
0.19763711094856262,
0.2989363372325897,
-1.2824923992156982,
-0.6010167002677917,
0.21181988716125488,
-0.3817877173423767,
-0.41411322355270386,
0.27370646595954895,
-0.7543155550956726,
0.04166324809193611,
-0.03885273262858391,
0.41926953196525574,
-0.28030964732170105,
-0.06564618647098541,
-0.044150203466415405,
-0.19757694005966187,
0.4339219927787781,
0.2613171339035034,
-1.0032269954681396,
0.4392850697040558,
0.5057482123374939,
0.9899073243141174,
-0.10625018924474716,
0.12553833425045013,
-0.24462968111038208,
0.0018694818718358874,
-0.2572284936904907,
1.0166183710098267,
-0.4088307023048401,
-0.07910733669996262,
-0.32573288679122925,
0.36918357014656067,
-0.2757474482059479,
-0.6470674276351929,
0.3894553780555725,
-0.48776522278785706,
0.4011645019054413,
-0.18239614367485046,
-0.3276765048503876,
-0.634567379951477,
0.03672364354133606,
-0.5076823830604553,
1.2915199995040894,
0.5281556248664856,
-0.5183703899383545,
0.1799388974905014,
-0.574788510799408,
-0.1910797655582428,
-0.0654698982834816,
-0.09861317276954651,
-0.9512679576873779,
0.037987299263477325,
0.3622698485851288,
0.4742482006549835,
-0.26549187302589417,
-0.03124227374792099,
-0.3095003366470337,
-0.2472638636827469,
0.03595306724309921,
0.18572665750980377,
0.8862402439117432,
0.14573927223682404,
-0.6433417201042175,
0.3462058901786804,
-0.4377671182155609,
0.11842294037342072,
0.4070371091365814,
0.23567365109920502,
0.15248914062976837,
-0.410386323928833,
0.3142053186893463,
0.6355900168418884,
-0.010219083167612553,
-0.5369153618812561,
0.17623530328273773,
-0.12234696745872498,
0.7687355875968933,
0.5921152234077454,
0.08876234292984009,
0.4404078722000122,
-0.18871858716011047,
0.40179991722106934,
0.07536781579256058,
0.4652271270751953,
-0.08890312910079956,
-0.7406097650527954,
-0.9012583494186401,
-0.40808650851249695,
0.03432217612862587,
0.25766298174858093,
-0.3440472185611725,
0.3512270152568817,
0.22374634444713593,
-0.6827978491783142,
-0.46481427550315857,
-0.003248350229114294,
0.4296955168247223,
0.6435773968696594,
0.37369510531425476,
-0.597702145576477,
-0.7413022518157959,
-1.0855644941329956,
0.2589673697948456,
0.07981698215007782,
-0.09944773465394974,
0.3858654499053955,
0.5773414373397827,
-0.41633617877960205,
0.920468270778656,
-0.6832833886146545,
-0.4377121031284332,
-0.2391352653503418,
-0.023233987390995026,
-0.09719018638134003,
0.6832664608955383,
0.7555252313613892,
-0.807466447353363,
-0.3653159737586975,
-0.3587498664855957,
-0.8129115104675293,
0.08814629912376404,
0.08772363513708115,
-0.3460138738155365,
0.2590852975845337,
0.34921011328697205,
-0.3970224857330322,
0.5364668369293213,
0.49972060322761536,
-0.2911281883716583,
0.5641297101974487,
0.0854511484503746,
-0.008851783350110054,
-0.8381205201148987,
0.11416274309158325,
0.10534743964672089,
-0.3499179184436798,
-0.4731472134590149,
0.10601216554641724,
0.14552639424800873,
-0.21967272460460663,
-0.6229652166366577,
0.4924479126930237,
-0.6268866062164307,
-0.35609108209609985,
-0.2842285931110382,
-0.26361894607543945,
0.2257295846939087,
0.7120743989944458,
0.35418280959129333,
0.48863083124160767,
0.7695895433425903,
-0.43510887026786804,
0.40971267223358154,
0.2820832431316376,
-0.4488413631916046,
0.413872092962265,
-1.0153284072875977,
0.472588449716568,
-0.016276875510811806,
0.4294418394565582,
-1.1255135536193848,
-0.5748928189277649,
0.5184100270271301,
-0.3718426823616028,
0.40257877111434937,
-0.3321689963340759,
-0.2540071904659271,
-0.8174267411231995,
-0.43381232023239136,
0.7240848541259766,
0.8130886554718018,
-0.6191712021827698,
0.20262528955936432,
0.5045047402381897,
0.1616673320531845,
-0.2077639251947403,
-0.843804121017456,
-0.22327755391597748,
-0.22493727505207062,
-0.9031668901443481,
0.4621593952178955,
-0.025896640494465828,
0.051267363131046295,
0.0021342397667467594,
-0.2618669271469116,
-0.08341703563928604,
-0.32327380776405334,
0.48735830187797546,
0.3655295968055725,
-0.1140400692820549,
-0.41375258564949036,
0.14535962045192719,
-0.20791582763195038,
0.1141134575009346,
-0.4159989058971405,
0.659090518951416,
-0.21843364834785461,
-0.23768985271453857,
-0.7285560965538025,
0.025967789813876152,
0.35907822847366333,
-0.22795167565345764,
0.5849243402481079,
1.0155020952224731,
-0.7110342979431152,
-0.06821192055940628,
-0.8638657331466675,
-0.45369088649749756,
-0.47760647535324097,
0.2620086967945099,
-0.45891350507736206,
-0.8837917447090149,
0.585220992565155,
0.15227046608924866,
-0.09344130754470825,
0.7124188542366028,
0.5566585063934326,
-0.008172605186700821,
1.0391690731048584,
0.6779108047485352,
0.3113088607788086,
0.5792424082756042,
-0.933914840221405,
0.1459934115409851,
-1.264025330543518,
-0.7020909786224365,
-0.09669941663742065,
-0.5112733840942383,
-0.20825782418251038,
-0.8082643747329712,
0.5063669681549072,
0.5853210091590881,
-0.12627288699150085,
0.5645555853843689,
-1.0386193990707397,
0.25222691893577576,
0.5610190629959106,
0.24638210237026215,
-0.26590994000434875,
0.34331756830215454,
0.1422736495733261,
-0.03919528052210808,
-0.6667870879173279,
-0.4080166518688202,
0.7232915759086609,
0.5051197409629822,
0.4666363298892975,
-0.257019966840744,
0.4280754029750824,
0.013241945765912533,
0.14711250364780426,
-0.8230919241905212,
0.40310588479042053,
0.12740272283554077,
-0.560319721698761,
-0.1516505479812622,
-0.020913926884531975,
-0.7415527105331421,
0.37054234743118286,
0.009775595739483833,
-1.168927788734436,
0.442215234041214,
0.16079460084438324,
-0.32147347927093506,
0.3872050642967224,
-0.7187442183494568,
1.1111204624176025,
-0.04451977089047432,
-0.4585220217704773,
0.08611245453357697,
-0.7545919418334961,
0.5355060696601868,
0.09246598929166794,
-0.12217991054058075,
-0.19185477495193481,
0.2901277244091034,
1.226591944694519,
-0.5281123518943787,
0.8452771306037903,
-0.25980931520462036,
0.21529027819633484,
0.7668405175209045,
-0.17570851743221283,
0.3018507659435272,
0.2040533870458603,
0.07196507602930069,
0.413565456867218,
0.03650487959384918,
-0.5378649830818176,
-0.5548757910728455,
0.5328083038330078,
-0.8277307152748108,
-0.4182746708393097,
-0.340586394071579,
-0.2735469937324524,
0.20467866957187653,
0.12444734573364258,
0.8092147707939148,
0.41218101978302,
-0.004471644293516874,
0.10581318289041519,
0.5733301639556885,
0.03494740650057793,
0.4311797320842743,
-0.07179593294858932,
-0.16126249730587006,
-0.4512619376182556,
0.6700192093849182,
0.035550978034734726,
0.24852539598941803,
0.20143859088420868,
0.2008437216281891,
-0.47133663296699524,
-0.1509113609790802,
-0.6826872229576111,
0.36842167377471924,
-0.47457483410835266,
-0.40894660353660583,
-0.873759388923645,
-0.4387386739253998,
-0.8017263412475586,
-0.3792896866798401,
-0.5143303275108337,
-0.48334354162216187,
-0.3461766541004181,
-0.02726738154888153,
0.40757566690444946,
0.5224570631980896,
-0.14978022873401642,
0.5477347373962402,
-0.2946188449859619,
0.322123646736145,
0.6201910376548767,
0.24469293653964996,
-0.16888052225112915,
-0.6190596222877502,
-0.04290095716714859,
0.02822250872850418,
-0.5394212007522583,
-0.760951578617096,
0.2786478102207184,
0.027431409806013107,
0.3610360324382782,
0.6438623070716858,
-0.21307751536369324,
0.6862608790397644,
-0.15510030090808868,
0.7240776419639587,
0.46941348910331726,
-0.8043137788772583,
0.7504251003265381,
-0.05514208972454071,
0.0633033737540245,
0.2659081816673279,
0.13007616996765137,
-0.606198787689209,
-0.12092219293117523,
-0.7975488305091858,
-0.8884434700012207,
1.258151650428772,
0.2686641812324524,
-0.12340964376926422,
0.22222287952899933,
0.4751160740852356,
-0.042717333883047104,
0.04778338223695755,
-0.6771544814109802,
-0.35218220949172974,
-0.42876243591308594,
0.10783855617046356,
-0.08144904673099518,
-0.7451528310775757,
-0.055483389645814896,
-0.49370238184928894,
0.6996318101882935,
0.02202448807656765,
0.6526864767074585,
0.3202112317085266,
-0.29505887627601624,
-0.2809390425682068,
-0.40083950757980347,
0.5420098900794983,
0.48829782009124756,
-0.27467024326324463,
0.1647673398256302,
0.03868349269032478,
-0.5030490756034851,
0.02270054817199707,
0.10816585272550583,
-0.3298991322517395,
-0.15203210711479187,
0.2915812134742737,
1.0659308433532715,
0.11946394294500351,
-0.24445341527462006,
0.4767463505268097,
0.10209139436483383,
-0.30372026562690735,
-0.35105690360069275,
0.1696307361125946,
0.009924656711518764,
0.24796171486377716,
0.16894471645355225,
0.26645520329475403,
0.2990286648273468,
-0.3764994740486145,
0.21995031833648682,
0.23823651671409607,
-0.6084309816360474,
-0.38641074299812317,
0.9468135237693787,
-0.15570978820323944,
-0.25739505887031555,
0.6593446731567383,
-0.29137399792671204,
-0.8203508257865906,
1.0832843780517578,
0.7403762936592102,
0.7995235919952393,
-0.3789151608943939,
0.31218406558036804,
0.7690261006355286,
0.2130848914384842,
-0.14821963012218475,
-0.1014782041311264,
-0.10546957701444626,
-0.4679647982120514,
0.007556721102446318,
-0.6614271402359009,
-0.06216197833418846,
0.17565836012363434,
-0.697289228439331,
0.3401152193546295,
-0.615346372127533,
-0.05870187655091286,
0.11866220086812973,
0.1385105848312378,
-0.7970547676086426,
0.434354305267334,
0.21886572241783142,
0.6290537118911743,
-0.7706957459449768,
0.6912847757339478,
0.95758056640625,
-0.40947550535202026,
-0.7931594252586365,
-0.43247172236442566,
0.11056828498840332,
-1.0270342826843262,
0.29773983359336853,
0.732267439365387,
0.013816466554999352,
-0.07976512610912323,
-0.5660920739173889,
-0.8135904669761658,
1.2779439687728882,
0.18103191256523132,
-0.3873475193977356,
0.09319279342889786,
0.05415203049778938,
0.27849647402763367,
-0.5390868782997131,
0.5211589932441711,
0.5536973476409912,
0.38020411133766174,
0.5829816460609436,
-0.4578186869621277,
0.21940134465694427,
-0.32692211866378784,
0.32327690720558167,
-0.05002262815833092,
-0.9117201566696167,
0.8258610367774963,
-0.4420929253101349,
-0.14053957164287567,
-0.01801488734781742,
0.8005053400993347,
0.2313585728406906,
0.42770496010780334,
0.5382088422775269,
0.6740632057189941,
0.5450098514556885,
-0.16723144054412842,
0.9761766791343689,
0.015930429100990295,
0.6285979747772217,
0.7827571630477905,
0.20337654650211334,
0.45546430349349976,
0.2658451497554779,
-0.08560928702354431,
0.553063154220581,
1.0065194368362427,
-0.42717719078063965,
0.44391709566116333,
0.16380995512008667,
-0.052329618483781815,
-0.13949623703956604,
-0.019357305020093918,
-0.45568007230758667,
0.6029375791549683,
0.24712781608104706,
-0.41896218061447144,
-0.05414789170026779,
0.12972764670848846,
0.056015633046627045,
-0.3499629497528076,
-0.19031360745429993,
0.6803232431411743,
0.05223200470209122,
-0.6112732291221619,
0.6872292757034302,
0.2737322449684143,
0.6318519711494446,
-0.3728694021701813,
-0.00022713575162924826,
-0.15118122100830078,
0.14593054354190826,
-0.4090054929256439,
-0.6052001714706421,
0.5271618366241455,
-0.1671941727399826,
-0.17938469350337982,
0.015510361641645432,
0.856804370880127,
-0.3869565725326538,
-0.8291208744049072,
0.18643812835216522,
0.024021806195378304,
0.474194198846817,
-0.3347778916358948,
-0.8907042741775513,
0.47943374514579773,
0.014174561947584152,
-0.4487769603729248,
0.23536348342895508,
-0.00672633433714509,
-0.24053311347961426,
0.38508349657058716,
0.5717383027076721,
-0.39305007457733154,
0.014974392019212246,
-0.0523444265127182,
0.8999682664871216,
-0.33066990971565247,
-0.4161083698272705,
-0.6191179156303406,
0.5019845962524414,
-0.27649033069610596,
-0.19533544778823853,
0.5056480765342712,
0.9355366230010986,
0.9216256737709045,
-0.18843449652194977,
0.5014533996582031,
-0.24350391328334808,
-0.006975053809583187,
-0.3333573043346405,
0.5913997888565063,
-0.518405020236969,
-0.2254517823457718,
-0.3041647970676422,
-1.1613103151321411,
-0.24440111219882965,
1.0072559118270874,
-0.45285308361053467,
0.21184344589710236,
0.5820626616477966,
0.8357378840446472,
-0.37981510162353516,
-0.12695921957492828,
0.13215090334415436,
-0.048607319593429565,
0.33289918303489685,
0.49702757596969604,
0.36031651496887207,
-0.7360510230064392,
0.36755117774009705,
-0.922046959400177,
-0.5050557851791382,
-0.4165753126144409,
-0.36261186003685,
-0.9523373246192932,
-0.7242817878723145,
-0.5525873303413391,
-0.35687392950057983,
-0.05685510113835335,
0.44308096170425415,
1.3845914602279663,
-0.8527180552482605,
-0.17559762299060822,
-0.09405925124883652,
0.06729872524738312,
-0.2680915296077728,
-0.3194478750228882,
0.6833840012550354,
-0.1343633383512497,
-0.9346733093261719,
-0.06305279582738876,
0.2845563292503357,
0.050332099199295044,
0.0336102694272995,
-0.0019357233541086316,
0.11493472009897232,
-0.18331359326839447,
0.7392223477363586,
0.39324089884757996,
-0.757611870765686,
-0.33557599782943726,
-0.14173486828804016,
-0.04710021987557411,
0.2494376301765442,
0.7838440537452698,
-0.6345006823539734,
0.46659761667251587,
0.234601691365242,
0.23116719722747803,
1.1559220552444458,
0.08630281686782837,
0.035546258091926575,
-0.5287861227989197,
0.44150328636169434,
0.1156630888581276,
0.4741966724395752,
0.35754483938217163,
-0.6132634878158569,
0.5802572965621948,
0.41402122378349304,
-0.5108621716499329,
-0.628799319267273,
0.24686014652252197,
-1.3990086317062378,
-0.17918938398361206,
1.102229118347168,
-0.16324643790721893,
-0.5654271841049194,
0.2711227834224701,
-0.5087898373603821,
0.4912406802177429,
-0.2781280279159546,
0.832195520401001,
0.2007531374692917,
-0.38094863295555115,
-0.4908415675163269,
-0.2609735429286957,
0.541244387626648,
0.13352401554584503,
-0.7554371953010559,
-0.456008642911911,
0.43106865882873535,
0.6180329322814941,
0.1192939281463623,
0.6715983152389526,
-0.3663029372692108,
0.3172837197780609,
0.10457082837820053,
0.34308409690856934,
-0.298746794462204,
-0.2943759560585022,
-0.16056007146835327,
0.1476985216140747,
-0.3302024304866791,
-0.55217045545578
] |
microsoft/swinv2-tiny-patch4-window8-256
|
microsoft
| 2022-12-10T10:01:54Z | 7,915 | 4 |
transformers
|
[
"transformers",
"pytorch",
"swinv2",
"image-classification",
"vision",
"dataset:imagenet-1k",
"arxiv:2111.09883",
"license:apache-2.0",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] |
image-classification
| 2022-06-14T06:00:27Z |
---
license: apache-2.0
tags:
- vision
- image-classification
datasets:
- imagenet-1k
widget:
- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/tiger.jpg
example_title: Tiger
- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/teapot.jpg
example_title: Teapot
- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/palace.jpg
example_title: Palace
---
# Swin Transformer v2 (tiny-sized model)
Swin Transformer v2 model pre-trained on ImageNet-1k at resolution 256x256. It was introduced in the paper [Swin Transformer V2: Scaling Up Capacity and Resolution](https://arxiv.org/abs/2111.09883) by Liu et al. and first released in [this repository](https://github.com/microsoft/Swin-Transformer).
Disclaimer: The team releasing Swin Transformer v2 did not write a model card for this model so this model card has been written by the Hugging Face team.
## Model description
The Swin Transformer is a type of Vision Transformer. It builds hierarchical feature maps by merging image patches (shown in gray) in deeper layers and has linear computation complexity to input image size due to computation of self-attention only within each local window (shown in red). It can thus serve as a general-purpose backbone for both image classification and dense recognition tasks. In contrast, previous vision Transformers produce feature maps of a single low resolution and have quadratic computation complexity to input image size due to computation of self-attention globally.
Swin Transformer v2 adds 3 main improvements: 1) a residual-post-norm method combined with cosine attention to improve training stability; 2) a log-spaced continuous position bias method to effectively transfer models pre-trained using low-resolution images to downstream tasks with high-resolution inputs; 3) a self-supervised pre-training method, SimMIM, to reduce the needs of vast labeled images.

[Source](https://paperswithcode.com/method/swin-transformer)
## Intended uses & limitations
You can use the raw model for image classification. See the [model hub](https://huggingface.co/models?search=swinv2) to look for
fine-tuned versions on a task that interests you.
### How to use
Here is how to use this model to classify an image of the COCO 2017 dataset into one of the 1,000 ImageNet classes:
```python
from transformers import AutoImageProcessor, AutoModelForImageClassification
from PIL import Image
import requests
url = "http://images.cocodataset.org/val2017/000000039769.jpg"
image = Image.open(requests.get(url, stream=True).raw)
processor = AutoImageProcessor.from_pretrained("microsoft/swinv2-tiny-patch4-window8-256")
model = AutoModelForImageClassification.from_pretrained("microsoft/swinv2-tiny-patch4-window8-256")
inputs = processor(images=image, return_tensors="pt")
outputs = model(**inputs)
logits = outputs.logits
# model predicts one of the 1000 ImageNet classes
predicted_class_idx = logits.argmax(-1).item()
print("Predicted class:", model.config.id2label[predicted_class_idx])
```
For more code examples, we refer to the [documentation](https://huggingface.co/transformers/model_doc/swinv2.html#).
### BibTeX entry and citation info
```bibtex
@article{DBLP:journals/corr/abs-2111-09883,
author = {Ze Liu and
Han Hu and
Yutong Lin and
Zhuliang Yao and
Zhenda Xie and
Yixuan Wei and
Jia Ning and
Yue Cao and
Zheng Zhang and
Li Dong and
Furu Wei and
Baining Guo},
title = {Swin Transformer {V2:} Scaling Up Capacity and Resolution},
journal = {CoRR},
volume = {abs/2111.09883},
year = {2021},
url = {https://arxiv.org/abs/2111.09883},
eprinttype = {arXiv},
eprint = {2111.09883},
timestamp = {Thu, 02 Dec 2021 15:54:22 +0100},
biburl = {https://dblp.org/rec/journals/corr/abs-2111-09883.bib},
bibsource = {dblp computer science bibliography, https://dblp.org}
}
```
|
[
-0.5925478935241699,
-0.23638200759887695,
-0.20914068818092346,
0.1885814517736435,
-0.11183737218379974,
-0.38038352131843567,
-0.05701576545834541,
-0.8279840350151062,
0.07071634382009506,
0.38570505380630493,
-0.5203625559806824,
0.00654445169493556,
-0.582206130027771,
-0.15788017213344574,
-0.3363058567047119,
0.8014492392539978,
-0.010702192783355713,
-0.056610193103551865,
-0.43597501516342163,
-0.1905793696641922,
-0.3307059407234192,
-0.1681283414363861,
-0.5709978938102722,
-0.36464232206344604,
0.44946083426475525,
0.34571200609207153,
0.6513423323631287,
0.4569070637226105,
0.8186661601066589,
0.4357563853263855,
-0.013469701632857323,
-0.08751612901687622,
-0.391026109457016,
-0.15005424618721008,
0.07243770360946655,
-0.4534512162208557,
-0.45102202892303467,
0.16379928588867188,
0.31077298521995544,
0.24127285182476044,
0.2570592164993286,
0.4935067594051361,
0.08352754265069962,
0.45511600375175476,
-0.27623409032821655,
0.175445094704628,
-0.5705994963645935,
0.1318449229001999,
-0.014721838757395744,
0.019937952980399132,
-0.3576996922492981,
0.007611611858010292,
0.22736355662345886,
-0.39805132150650024,
0.6875317692756653,
0.2300984263420105,
1.3364405632019043,
0.17210164666175842,
-0.30271366238594055,
0.12864717841148376,
-0.5726547241210938,
0.9063770771026611,
-0.6715819835662842,
0.1983683705329895,
0.18134805560112,
0.4484330117702484,
0.17804846167564392,
-0.9814673662185669,
-0.4663417935371399,
0.05962233990430832,
-0.3981221914291382,
0.22434577345848083,
-0.45843392610549927,
-0.0573062039911747,
0.38125887513160706,
0.3708893656730652,
-0.5205044746398926,
0.3397931456565857,
-0.8224517703056335,
-0.34140825271606445,
0.7824397683143616,
-0.04048948734998703,
0.23634950816631317,
-0.3022480309009552,
-0.6537672877311707,
-0.3457147479057312,
-0.4259116053581238,
0.22563022375106812,
0.042683910578489304,
0.07005587220191956,
-0.387494295835495,
0.578965961933136,
0.24742306768894196,
0.34042197465896606,
0.2423088252544403,
-0.20035187900066376,
0.4193233251571655,
-0.3114539682865143,
-0.1542854607105255,
-0.07978982478380203,
0.8946178555488586,
0.5822240710258484,
0.010320296511054039,
0.27430593967437744,
-0.25800925493240356,
-0.16766811907291412,
0.3141893148422241,
-1.0467534065246582,
-0.22207580506801605,
0.1463789939880371,
-0.6414459943771362,
-0.47844237089157104,
0.06752482801675797,
-0.562406063079834,
-0.10169530659914017,
-0.2793380618095398,
0.39616456627845764,
-0.13181792199611664,
-0.46097531914711,
-0.4597651958465576,
-0.2659909129142761,
0.5798007249832153,
0.35658523440361023,
-0.6583375334739685,
0.16499225795269012,
0.2716861069202423,
0.9948718547821045,
-0.17505192756652832,
-0.2814345061779022,
0.022203804925084114,
-0.289111852645874,
-0.2808562219142914,
0.6632668375968933,
0.049965810030698776,
-0.16337281465530396,
-0.11947208642959595,
0.39002683758735657,
0.034813832491636276,
-0.484749972820282,
0.2554650902748108,
-0.49774834513664246,
0.18870018422603607,
-0.11377418786287308,
-0.1442357748746872,
-0.13903535902500153,
0.052906233817338943,
-0.660446286201477,
1.239754319190979,
0.5379226803779602,
-0.91739821434021,
0.10378012806177139,
-0.43046998977661133,
-0.36056333780288696,
0.08276453614234924,
0.15323464572429657,
-0.6875036358833313,
0.042010597884655,
-0.017330972477793694,
0.4337497353553772,
-0.31595778465270996,
0.1930352747440338,
-0.3636600077152252,
-0.27446234226226807,
0.0663495734333992,
-0.27751702070236206,
0.9089868068695068,
0.24493706226348877,
-0.42781054973602295,
0.1797100007534027,
-0.45677658915519714,
0.0407014861702919,
0.5108997821807861,
0.13467203080654144,
-0.15815618634223938,
-0.348392516374588,
0.33487269282341003,
0.6293843984603882,
0.4070765972137451,
-0.4339258074760437,
0.280977725982666,
-0.30447331070899963,
0.5188051462173462,
0.5909155011177063,
-0.17376680672168732,
0.6132544875144958,
-0.20794644951820374,
0.33042868971824646,
0.23431092500686646,
0.5821975469589233,
-0.1210874617099762,
-0.594143271446228,
-0.9886061549186707,
-0.043601103127002716,
0.17637750506401062,
0.4577593505382538,
-0.6144121885299683,
0.535144567489624,
-0.4054863154888153,
-0.7838516235351562,
-0.4595682919025421,
0.026569487527012825,
0.15508446097373962,
0.5040947198867798,
0.5711315870285034,
-0.23138467967510223,
-0.8878981471061707,
-1.050342321395874,
0.08557605743408203,
-0.06309711933135986,
-0.09495460987091064,
0.39435434341430664,
0.7287688851356506,
-0.4966135323047638,
0.9280561208724976,
-0.2184857279062271,
-0.40302687883377075,
-0.40468379855155945,
0.1339423507452011,
0.24004431068897247,
0.5282256007194519,
0.6275269985198975,
-0.7971896529197693,
-0.4664633274078369,
-0.02321871742606163,
-0.7431495785713196,
0.0702093318104744,
-0.13303078711032867,
-0.13500013947486877,
0.3013874888420105,
0.2888604402542114,
-0.4561253488063812,
0.6234064102172852,
0.5223661065101624,
-0.26609936356544495,
0.6497012972831726,
-0.10094550997018814,
0.011569096706807613,
-0.9116261601448059,
0.021274948492646217,
0.27629703283309937,
-0.1318177580833435,
-0.5395852327346802,
-0.12981697916984558,
0.28508132696151733,
-0.03399410843849182,
-0.6273304224014282,
0.6018603444099426,
-0.45669251680374146,
-0.16935519874095917,
-0.2896401286125183,
0.035622142255306244,
0.07519364356994629,
0.5489967465400696,
0.1592400074005127,
0.4525541067123413,
0.6201708316802979,
-0.4520292282104492,
0.4172475337982178,
0.31267639994621277,
-0.3077707886695862,
0.3050151467323303,
-0.9760782122612,
-0.012045595794916153,
-0.001692292164079845,
0.34051862359046936,
-0.9460601210594177,
-0.09813398122787476,
-0.0021114691626280546,
-0.48792630434036255,
0.5615115165710449,
-0.34130677580833435,
-0.26990336179733276,
-0.9685293436050415,
-0.37309688329696655,
0.4377110004425049,
0.7570516467094421,
-0.7058072686195374,
0.5316128134727478,
0.17119452357292175,
0.0560963973402977,
-0.583479106426239,
-1.123434066772461,
-0.19433125853538513,
0.036472927778959274,
-0.8530576825141907,
0.4456033706665039,
0.05805762857198715,
-0.004734233487397432,
0.09490427374839783,
-0.23105958104133606,
0.03994102403521538,
-0.23743680119514465,
0.4892210364341736,
0.7517170310020447,
-0.22838027775287628,
-0.19506366550922394,
0.10109248012304306,
-0.22990335524082184,
0.11042744666337967,
-0.09917259216308594,
0.3876345157623291,
-0.4398426115512848,
-0.07763204723596573,
-0.4627476632595062,
0.02931816317141056,
0.6536674499511719,
-0.1263010948896408,
0.555115818977356,
1.051647424697876,
-0.2695392966270447,
-0.02404031716287136,
-0.5871721506118774,
-0.364587664604187,
-0.5433054566383362,
0.36178430914878845,
-0.2636399567127228,
-0.6697174310684204,
0.5221889019012451,
0.03638041764497757,
0.18144458532333374,
0.9259686470031738,
0.314179927110672,
-0.3343411684036255,
0.9607638716697693,
0.3671022355556488,
0.12130063772201538,
0.5832483768463135,
-0.858525276184082,
0.2238369882106781,
-0.9422546625137329,
-0.4701530337333679,
-0.3589942157268524,
-0.6483265161514282,
-0.6177939772605896,
-0.606594979763031,
0.2566286027431488,
0.1770913302898407,
-0.3936263918876648,
0.7779059410095215,
-0.7315050363540649,
0.10366498678922653,
0.6299410462379456,
0.07608848810195923,
-0.29122912883758545,
0.21265974640846252,
0.05929235368967056,
-0.14913618564605713,
-0.714195966720581,
-0.04455966129899025,
0.7298594117164612,
0.5602643489837646,
0.6501995921134949,
-0.10384605079889297,
0.43323683738708496,
0.280804842710495,
0.23724080622196198,
-0.7996570467948914,
0.5164225697517395,
-0.03567878156900406,
-0.6451883912086487,
-0.20045030117034912,
-0.21689951419830322,
-0.9382650852203369,
0.2867785692214966,
-0.30769529938697815,
-0.5662021636962891,
0.530755341053009,
0.15586529672145844,
0.10632312297821045,
0.48350977897644043,
-0.6799288988113403,
0.8632099032402039,
-0.38816434144973755,
-0.43244895339012146,
-0.06021923944354057,
-0.9140598773956299,
0.2841842472553253,
0.2277383655309677,
0.05602626875042915,
-0.022830836474895477,
0.15823808312416077,
0.8356353640556335,
-0.6553246378898621,
0.945838451385498,
-0.3248941898345947,
0.227242112159729,
0.6195931434631348,
-0.0762559324502945,
0.6566572189331055,
-0.15673547983169556,
0.15787923336029053,
0.5947487950325012,
0.037478022277355194,
-0.4518350660800934,
-0.5724985599517822,
0.696416974067688,
-1.0403259992599487,
-0.4231208562850952,
-0.45507678389549255,
-0.24816182255744934,
0.18990179896354675,
0.30564767122268677,
0.7370234727859497,
0.48842424154281616,
0.11787451058626175,
0.409772127866745,
0.582289457321167,
-0.09836739301681519,
0.5557543635368347,
0.15224289894104004,
-0.19865024089813232,
-0.22494329512119293,
0.798122763633728,
0.27435606718063354,
0.19205239415168762,
0.23687347769737244,
0.30584776401519775,
-0.3887142837047577,
-0.23981498181819916,
-0.2961254119873047,
0.3004368543624878,
-0.660733699798584,
-0.6296422481536865,
-0.6283660531044006,
-0.6026255488395691,
-0.6546386480331421,
-0.271811842918396,
-0.549730122089386,
-0.3144194781780243,
-0.421814888715744,
0.035779520869255066,
0.40131765604019165,
0.6242901086807251,
-0.04286859929561615,
0.18742039799690247,
-0.47070103883743286,
0.15086913108825684,
0.3255334496498108,
0.31276047229766846,
0.09730032086372375,
-0.9366205930709839,
-0.17411591112613678,
0.011599551886320114,
-0.37076523900032043,
-0.5478689074516296,
0.4697393774986267,
0.12542009353637695,
0.4960825443267822,
0.49751874804496765,
0.07359404116868973,
0.674491822719574,
-0.28069838881492615,
0.8743529915809631,
0.7209584712982178,
-0.6263806223869324,
0.6936571002006531,
0.02281184308230877,
0.28065505623817444,
0.13603797554969788,
0.3671790659427643,
-0.37104079127311707,
-0.07720452547073364,
-0.9041963815689087,
-0.9351673722267151,
0.7534651160240173,
0.0727638527750969,
0.0454251728951931,
0.22896966338157654,
0.20964793860912323,
0.016629375517368317,
-0.11819183081388474,
-0.744383692741394,
-0.5762304067611694,
-0.698809802532196,
-0.09007561951875687,
-0.0791357159614563,
-0.4559493362903595,
-0.023814329877495766,
-0.7696484327316284,
0.6952703595161438,
-0.09242754429578781,
0.7750861644744873,
0.2623103857040405,
-0.29874444007873535,
-0.12199760973453522,
-0.1339949518442154,
0.4229736030101776,
0.20399411022663116,
-0.07629264891147614,
0.1141778826713562,
0.22759084403514862,
-0.6276602149009705,
-0.08835601061582565,
-0.052200715988874435,
-0.18819639086723328,
-0.01918456144630909,
0.5165720582008362,
1.1183435916900635,
0.2972419857978821,
-0.19867292046546936,
0.9170655012130737,
0.017155766487121582,
-0.5721119046211243,
-0.5450663566589355,
0.12118387967348099,
-0.08066083490848541,
0.3267437815666199,
0.387967973947525,
0.6364178657531738,
0.10189273208379745,
-0.23186446726322174,
0.06537950783967972,
0.1981169581413269,
-0.5080987811088562,
-0.3401843309402466,
0.6350661516189575,
0.07952037453651428,
-0.19481529295444489,
0.8483600616455078,
-0.05639771744608879,
-0.5143080949783325,
0.8782218098640442,
0.768585205078125,
0.6095842719078064,
-0.08300305157899857,
0.14902691543102264,
0.847849428653717,
0.405534565448761,
-0.14148515462875366,
-0.08947473764419556,
0.06860577315092087,
-0.6684610247612,
-0.088801808655262,
-0.46697258949279785,
-0.012974544428288937,
0.21637891232967377,
-0.7953815460205078,
0.5350649952888489,
-0.29999467730522156,
-0.2692338824272156,
-0.049033135175704956,
0.28471192717552185,
-1.083222508430481,
0.24388253688812256,
0.16210037469863892,
1.0267549753189087,
-0.7624577283859253,
0.8453451991081238,
0.5606926083564758,
-0.392182856798172,
-0.9187599420547485,
-0.6089512705802917,
-0.04727252200245857,
-0.7942959666252136,
0.4588392376899719,
0.4615715444087982,
0.01934276521205902,
-0.05720379203557968,
-0.9144390225410461,
-0.9211498498916626,
1.6415455341339111,
-0.08709266036748886,
-0.6523471474647522,
0.05498940125107765,
-0.11862269788980484,
0.5014196634292603,
-0.3262302875518799,
0.6308770179748535,
0.30999207496643066,
0.6095370054244995,
0.3706817924976349,
-0.5399041771888733,
0.15073612332344055,
-0.5526265501976013,
0.3505496680736542,
-0.02553545869886875,
-0.762554407119751,
0.672049343585968,
-0.5444638729095459,
-0.09880538284778595,
0.01168088149279356,
0.8970425724983215,
-0.040380265563726425,
0.23558683693408966,
0.5927973389625549,
0.3660925328731537,
0.5343787670135498,
-0.39238861203193665,
0.9432697296142578,
-0.06143710017204285,
0.5811327695846558,
0.9092993140220642,
0.16830982267856598,
0.6884833574295044,
0.39314574003219604,
-0.36701294779777527,
0.6097308993339539,
0.7089434266090393,
-0.70354163646698,
0.3210526704788208,
-0.05839402601122856,
0.24077579379081726,
-0.045032355934381485,
0.06511043012142181,
-0.5641681551933289,
0.2692267596721649,
0.286175936460495,
-0.4445961117744446,
0.15783144533634186,
0.2512134611606598,
-0.23151756823062897,
-0.46936577558517456,
-0.30437490344047546,
0.47685107588768005,
-0.007201154716312885,
-0.4734581708908081,
0.6229186058044434,
-0.13038362562656403,
0.9332541227340698,
-0.5126328468322754,
0.18655818700790405,
-0.25178995728492737,
0.06573029607534409,
-0.4225741922855377,
-0.728412926197052,
0.19021224975585938,
-0.23749370872974396,
-0.20577992498874664,
-0.09616097062826157,
1.163986325263977,
-0.3112354874610901,
-0.507755696773529,
0.36330434679985046,
0.042183294892311096,
0.2852402627468109,
0.14902272820472717,
-0.9600281119346619,
0.14688396453857422,
-0.04013294354081154,
-0.6009030938148499,
0.36102089285850525,
0.08158104121685028,
-0.020961852744221687,
0.6884962320327759,
0.49623724818229675,
-0.17255356907844543,
0.1254233419895172,
0.028225718066096306,
0.7635484337806702,
-0.5027121305465698,
-0.2207416594028473,
-0.2716035544872284,
0.6394727826118469,
-0.30430278182029724,
-0.3908921182155609,
0.6815985441207886,
0.4966825246810913,
0.7569277286529541,
-0.26496854424476624,
0.7358511686325073,
-0.4535793662071228,
0.06640353798866272,
0.11822861433029175,
0.6072332859039307,
-0.7261636257171631,
-0.09912493079900742,
-0.05755491554737091,
-0.6865102648735046,
-0.1813894808292389,
0.6598754525184631,
-0.28121525049209595,
0.16696490347385406,
0.5535778999328613,
0.7967810034751892,
-0.09739036113023758,
-0.07637390494346619,
0.29910773038864136,
0.29921144247055054,
0.07299669831991196,
0.16670909523963928,
0.46274206042289734,
-0.9437339901924133,
0.5434769988059998,
-0.7444297075271606,
-0.19552335143089294,
-0.5759665369987488,
-0.5444238781929016,
-0.8414332270622253,
-0.7570796608924866,
-0.40228691697120667,
-0.7008578777313232,
-0.4481011629104614,
0.7198505997657776,
0.9628787636756897,
-0.9121304750442505,
0.05509147047996521,
-0.04039917141199112,
-0.005817591678351164,
-0.48919478058815,
-0.29156792163848877,
0.35252103209495544,
-0.13056090474128723,
-0.602419376373291,
-0.00850103609263897,
0.03167342022061348,
0.34184443950653076,
-0.3220612704753876,
-0.36192020773887634,
0.0015382657293230295,
-0.07355621457099915,
0.7100622653961182,
0.36483585834503174,
-0.6492401957511902,
-0.2304340898990631,
0.0789267048239708,
-0.3274570405483246,
0.1511307805776596,
0.6622075438499451,
-0.49428418278694153,
0.25573864579200745,
0.6110001802444458,
0.18756404519081116,
0.853475034236908,
-0.1841091513633728,
-0.017589259892702103,
-0.567798376083374,
0.33731749653816223,
0.1508261114358902,
0.4749956727027893,
0.2071322798728943,
-0.3395400941371918,
0.500887393951416,
0.38741061091423035,
-0.5940427184104919,
-0.7181591391563416,
0.008836861699819565,
-1.3424121141433716,
-0.2503109872341156,
1.1257590055465698,
-0.12386143952608109,
-0.4018174707889557,
0.09964235126972198,
-0.14915090799331665,
0.3511849045753479,
-0.1423490345478058,
0.3450259268283844,
0.21109651029109955,
0.028131922706961632,
-0.4873303174972534,
-0.4121631979942322,
0.2463727593421936,
0.004442927893251181,
-0.4490131735801697,
-0.30682992935180664,
0.10651956498622894,
0.42230430245399475,
0.3074178993701935,
0.19434650242328644,
-0.2811349332332611,
0.25736087560653687,
0.2802426517009735,
0.4802118241786957,
-0.20918504893779755,
-0.34981706738471985,
-0.17745426297187805,
-0.07193922251462936,
-0.2486082762479782,
-0.020428279414772987
] |
monsoon-nlp/hindi-bert
|
monsoon-nlp
| 2023-09-20T22:22:29Z | 7,913 | 15 |
transformers
|
[
"transformers",
"pytorch",
"tf",
"safetensors",
"electra",
"feature-extraction",
"hi",
"doi:10.57967/hf/1305",
"endpoints_compatible",
"has_space",
"region:us"
] |
feature-extraction
| 2022-03-02T23:29:05Z |
---
language: hi
---
# Releasing Hindi ELECTRA model
This is a first attempt at a Hindi language model trained with Google Research's [ELECTRA](https://github.com/google-research/electra).
**As of 2022 I recommend Google's MuRIL model trained on English, Hindi, and other major Indian languages, both in their script and latinized script**: https://huggingface.co/google/muril-base-cased and https://huggingface.co/google/muril-large-cased
**For causal language models, I would suggest https://huggingface.co/sberbank-ai/mGPT, though this is a large model**
<a href="https://colab.research.google.com/drive/1R8TciRSM7BONJRBc9CBZbzOmz39FTLl_">Tokenization and training CoLab</a>
I originally used <a href="https://github.com/monsoonNLP/transformers">a modified ELECTRA</a> for finetuning, but now use SimpleTransformers.
<a href="https://medium.com/@mapmeld/teaching-hindi-to-electra-b11084baab81">Blog post</a> - I was greatly influenced by: https://huggingface.co/blog/how-to-train
## Example Notebooks
This small model has comparable results to Multilingual BERT on <a href="https://colab.research.google.com/drive/18FQxp9QGOORhMENafQilEmeAo88pqVtP">BBC Hindi news classification</a>
and on <a href="https://colab.research.google.com/drive/1UYn5Th8u7xISnPUBf72at1IZIm3LEDWN">Hindi movie reviews / sentiment analysis</a> (using SimpleTransformers)
You can get higher accuracy using ktrain by adjusting learning rate (also: changing model_type in config.json - this is an open issue with ktrain): https://colab.research.google.com/drive/1mSeeSfVSOT7e-dVhPlmSsQRvpn6xC05w?usp=sharing
Question-answering on MLQA dataset: https://colab.research.google.com/drive/1i6fidh2tItf_-IDkljMuaIGmEU6HT2Ar#scrollTo=IcFoAHgKCUiQ
A larger model (<a href="https://huggingface.co/monsoon-nlp/hindi-tpu-electra">Hindi-TPU-Electra</a>) using ELECTRA base size outperforms both models on Hindi movie reviews / sentiment analysis, but
does not perform as well on the BBC news classification task.
## Corpus
Download: https://drive.google.com/drive/folders/1SXzisKq33wuqrwbfp428xeu_hDxXVUUu?usp=sharing
The corpus is two files:
- Hindi CommonCrawl deduped by OSCAR https://traces1.inria.fr/oscar/
- latest Hindi Wikipedia ( https://dumps.wikimedia.org/hiwiki/ ) + WikiExtractor to txt
Bonus notes:
- Adding English wiki text or parallel corpus could help with cross-lingual tasks and training
## Vocabulary
https://drive.google.com/file/d/1-6tXrii3tVxjkbrpSJE9MOG_HhbvP66V/view?usp=sharing
Bonus notes:
- Created with HuggingFace Tokenizers; you can increase vocabulary size and re-train; remember to change ELECTRA vocab_size
## Training
Structure your files, with data-dir named "trainer" here
```
trainer
- vocab.txt
- pretrain_tfrecords
-- (all .tfrecord... files)
- models
-- modelname
--- checkpoint
--- graph.pbtxt
--- model.*
```
CoLab notebook gives examples of GPU vs. TPU setup
[configure_pretraining.py](https://github.com/google-research/electra/blob/master/configure_pretraining.py)
## Conversion
Use this process to convert an in-progress or completed ELECTRA checkpoint to a Transformers-ready model:
```
git clone https://github.com/huggingface/transformers
python ./transformers/src/transformers/convert_electra_original_tf_checkpoint_to_pytorch.py
--tf_checkpoint_path=./models/checkpointdir
--config_file=config.json
--pytorch_dump_path=pytorch_model.bin
--discriminator_or_generator=discriminator
python
```
```
from transformers import TFElectraForPreTraining
model = TFElectraForPreTraining.from_pretrained("./dir_with_pytorch", from_pt=True)
model.save_pretrained("tf")
```
Once you have formed one directory with config.json, pytorch_model.bin, tf_model.h5, special_tokens_map.json, tokenizer_config.json, and vocab.txt on the same level, run:
```
transformers-cli upload directory
```
|
[
-0.43861526250839233,
-0.6566138863563538,
0.013339133933186531,
0.30063140392303467,
-0.12000774592161179,
0.2866327166557312,
-0.35376179218292236,
-0.27083632349967957,
0.28588199615478516,
0.11246459186077118,
-0.36724910140037537,
-0.40678316354751587,
-0.6067181825637817,
0.12204596400260925,
-0.564399778842926,
1.057269811630249,
-0.33304283022880554,
0.26656290888786316,
0.12299829721450806,
-0.22938784956932068,
-0.40100347995758057,
-0.5142646431922913,
-0.6586770415306091,
-0.451097309589386,
0.4004540741443634,
0.4689582586288452,
0.3268337547779083,
0.04841141402721405,
0.35613664984703064,
0.2980518043041229,
-0.21873663365840912,
0.1228315606713295,
-0.3327276408672333,
-0.265125572681427,
-0.03337289020419121,
-0.42419925332069397,
-0.288123220205307,
-0.05789854750037193,
0.6606055498123169,
0.44177499413490295,
-0.2714516818523407,
0.2663581073284149,
-0.11718496680259705,
0.49100425839424133,
-0.4498786926269531,
0.019971374422311783,
-0.3536888062953949,
-0.06470182538032532,
-0.19057705998420715,
0.1307867169380188,
-0.4457758665084839,
-0.4675014317035675,
0.1557750254869461,
-0.45832860469818115,
0.3262033760547638,
0.011920223943889141,
1.4375718832015991,
0.18809227645397186,
-0.3102709949016571,
-0.14318601787090302,
-0.7650268077850342,
0.7563874125480652,
-0.4687769114971161,
0.46240341663360596,
0.11078819632530212,
0.3251272737979889,
0.1644386500120163,
-0.6471433043479919,
-0.8039873242378235,
-0.2095862478017807,
-0.08577688783407211,
0.2449432909488678,
-0.14780646562576294,
-0.1248832419514656,
0.27770429849624634,
0.5507145524024963,
-0.4746912121772766,
-0.05159781500697136,
-0.7367693781852722,
-0.3010321855545044,
0.3341273069381714,
-0.09173332899808884,
0.5477232933044434,
-0.5441291332244873,
-0.23555205762386322,
-0.45293447375297546,
-0.7618812322616577,
0.09788224846124649,
0.4714079797267914,
0.22795455157756805,
-0.48845523595809937,
0.6867442727088928,
0.03941953182220459,
0.5682776570320129,
0.19692237675189972,
0.05244515836238861,
0.5476592183113098,
-0.33387959003448486,
-0.19757302105426788,
0.11732221394777298,
0.8981133103370667,
0.21926043927669525,
0.2527737319469452,
-0.06349344551563263,
0.14953923225402832,
0.21458680927753448,
0.2177722305059433,
-0.796095609664917,
-0.2641075849533081,
0.1871519833803177,
-0.24540573358535767,
-0.35044360160827637,
-0.2677591145038605,
-1.0023369789123535,
-0.1511535346508026,
-0.3468790054321289,
0.5942869782447815,
-0.7423754334449768,
-0.4638175964355469,
0.0744757279753685,
-0.005587391555309296,
0.6230106353759766,
0.16718704998493195,
-1.0077688694000244,
0.14890271425247192,
0.22005827724933624,
0.904875636100769,
0.0033286605030298233,
-0.5264239311218262,
-0.10682383924722672,
-0.05801444873213768,
-0.12540334463119507,
0.836232602596283,
-0.05171317234635353,
-0.29460346698760986,
0.08845492452383041,
0.10018925368785858,
-0.37298038601875305,
-0.34378936886787415,
0.57017582654953,
-0.4206572473049164,
0.27238717675209045,
-0.268775075674057,
-0.3228727877140045,
-0.22519393265247345,
0.15216900408267975,
-0.5576878786087036,
1.0572669506072998,
0.17074276506900787,
-0.8648710250854492,
0.27006903290748596,
-0.7384247779846191,
-0.4377805292606354,
-0.34073981642723083,
0.08417675644159317,
-0.4719456732273102,
-0.1425808072090149,
0.25571408867836,
0.21238432824611664,
-0.18744170665740967,
0.29661038517951965,
0.03129206970334053,
-0.2565971314907074,
-0.03510516136884689,
-0.10579812526702881,
0.9077587723731995,
0.21265782415866852,
-0.37930241227149963,
0.10820335894823074,
-0.8270080089569092,
-0.002384291961789131,
0.1783120334148407,
-0.32973533868789673,
0.07135207951068878,
-0.18360768258571625,
0.26925307512283325,
0.2473386973142624,
0.199978768825531,
-0.6694697141647339,
0.06683847308158875,
-0.6808563470840454,
0.46524783968925476,
0.6627531051635742,
-0.3282392919063568,
0.44487616419792175,
-0.2382580190896988,
0.36345744132995605,
0.187412828207016,
0.08805590867996216,
0.03475896269083023,
-0.25570788979530334,
-1.4033284187316895,
0.12060237675905228,
0.3683776259422302,
0.6404886245727539,
-0.6935306191444397,
0.3637501299381256,
-0.27054551243782043,
-0.8692021369934082,
-0.6231989860534668,
0.16529351472854614,
0.2992425560951233,
0.5432339310646057,
0.5788590312004089,
-0.1921488642692566,
-0.7726870179176331,
-0.8219062685966492,
-0.21832968294620514,
-0.16170530021190643,
0.18397413194179535,
-0.021910041570663452,
0.6135811805725098,
-0.2236560583114624,
0.8728179335594177,
-0.4398898780345917,
-0.26668766140937805,
-0.6630731225013733,
0.18872182071208954,
0.2540997266769409,
0.44032132625579834,
0.5615020394325256,
-0.7483143210411072,
-0.5721229314804077,
-0.011832932941615582,
-0.6016442179679871,
0.01690536178648472,
0.09891223162412643,
-0.195197194814682,
0.13026072084903717,
0.42279505729675293,
-0.7276285886764526,
0.1801123321056366,
0.5865784287452698,
-0.206850066781044,
0.5302819609642029,
-0.059224627912044525,
0.0461401604115963,
-1.5079833269119263,
0.24191471934318542,
0.16004298627376556,
-0.03823016583919525,
-0.5819864273071289,
-0.05024091154336929,
-0.006945215165615082,
-0.18781282007694244,
-0.6062718033790588,
0.6945343613624573,
-0.24665658175945282,
0.3196640908718109,
-0.012269464321434498,
-0.05731719732284546,
-0.17117904126644135,
0.6839750409126282,
0.000023573773432872258,
0.8291728496551514,
0.6307268142700195,
-0.6041326522827148,
0.24228064715862274,
0.5189276337623596,
-0.41430193185806274,
0.19932396709918976,
-0.9038634300231934,
0.13675987720489502,
-0.1579134613275528,
-0.013621959835290909,
-0.7868620753288269,
-0.4392172396183014,
0.35643184185028076,
-0.5015685558319092,
0.5492324829101562,
-0.02348492108285427,
-0.5418253540992737,
-0.3600198030471802,
-0.17616811394691467,
0.19157131016254425,
0.7181655168533325,
-0.6154406070709229,
0.7307748794555664,
0.42949384450912476,
-0.02861669845879078,
-0.5600692629814148,
-0.771458089351654,
-0.13196709752082825,
-0.24274468421936035,
-0.48988378047943115,
0.3088841438293457,
-0.0614769421517849,
-0.010964660905301571,
-0.19541475176811218,
-0.010003916919231415,
-0.21992838382720947,
-0.25348952412605286,
0.17521047592163086,
0.39172807335853577,
0.007720972411334515,
0.14761167764663696,
0.04541029408574104,
-0.05345584452152252,
-0.10925228148698807,
0.09889531135559082,
0.8019117712974548,
-0.5252827405929565,
-0.11563856154680252,
-0.3466733992099762,
0.2110678106546402,
0.5669403076171875,
-0.24733196198940277,
0.8205492496490479,
1.0195298194885254,
-0.26363399624824524,
0.022378787398338318,
-0.6506564021110535,
0.007389271166175604,
-0.4431474506855011,
0.4107457101345062,
-0.1579732447862625,
-0.6678522229194641,
0.45607995986938477,
-0.10379262268543243,
-0.015643959864974022,
0.7551894783973694,
0.7773774862289429,
0.13499559462070465,
1.0060453414916992,
0.8158853650093079,
-0.2091282606124878,
0.6612805128097534,
-0.6556026935577393,
0.4408493936061859,
-0.8128277063369751,
-0.2926669418811798,
-0.5592565536499023,
-0.025906864553689957,
-0.6316391229629517,
-0.09255803376436234,
0.3416249454021454,
0.11880967020988464,
-0.42750829458236694,
0.5716241598129272,
-0.6978816390037537,
0.2645641267299652,
0.4513048231601715,
0.11529459804296494,
0.1384083777666092,
0.24091275036334991,
-0.1495252549648285,
-0.034856244921684265,
-0.7290756106376648,
-0.44707658886909485,
1.0749876499176025,
0.2945283055305481,
0.7283512949943542,
0.14541716873645782,
0.6960160732269287,
-0.21390120685100555,
0.4221054017543793,
-0.6199615001678467,
0.42578625679016113,
-0.10527029633522034,
-0.6852259635925293,
-0.016897326335310936,
-0.27211686968803406,
-0.7343469262123108,
0.12121723592281342,
0.01788090355694294,
-0.7070847153663635,
0.14746251702308655,
0.07745257019996643,
-0.3122848570346832,
0.38718196749687195,
-1.176589846611023,
0.9689496755599976,
-0.11278646439313889,
-0.21642398834228516,
-0.16549856960773468,
-0.5580908060073853,
0.42954856157302856,
-0.06635525077581406,
0.08076422661542892,
-0.026810675859451294,
0.28164681792259216,
0.887866735458374,
-0.5464662909507751,
0.8774769902229309,
-0.026562312617897987,
0.2683100700378418,
0.4721337556838989,
-0.3310832977294922,
0.17576918005943298,
-0.08814451843500137,
-0.003918646369129419,
0.3348997235298157,
0.06431502848863602,
-0.3548053205013275,
-0.1752047836780548,
0.6999648213386536,
-1.1089189052581787,
-0.35443150997161865,
-0.6264930367469788,
-0.34933245182037354,
-0.15115422010421753,
0.3105420172214508,
0.5552187561988831,
0.2882278859615326,
-0.087825246155262,
0.0511653833091259,
0.6338998079299927,
-0.2973863482475281,
0.461994469165802,
0.26542937755584717,
-0.1763722449541092,
-0.3036286532878876,
0.9175894856452942,
0.03211961314082146,
0.16217786073684692,
0.2592363953590393,
0.2729065716266632,
-0.40714630484580994,
-0.34918251633644104,
-0.6092097759246826,
0.26289135217666626,
-0.7444716691970825,
-0.13759827613830566,
-0.8191518187522888,
-0.4526120722293854,
-0.54681795835495,
-0.014742104336619377,
-0.4494774639606476,
-0.18949924409389496,
-0.16617447137832642,
-0.11318110674619675,
0.7540633082389832,
0.5789372324943542,
-0.1065419465303421,
0.3769001066684723,
-0.6878918409347534,
0.31036847829818726,
0.2735787630081177,
0.27581942081451416,
0.1207868754863739,
-0.6035975217819214,
-0.25782355666160583,
0.11586630344390869,
-0.5382195115089417,
-0.8697128295898438,
0.5510822534561157,
0.16858290135860443,
0.281704306602478,
-0.06588733196258545,
-0.39317819476127625,
0.665926992893219,
-0.5493441224098206,
0.820667028427124,
0.43042251467704773,
-0.8539018630981445,
0.728179395198822,
-0.24312724173069,
0.2674379050731659,
0.744864821434021,
0.506614089012146,
-0.5320221781730652,
-0.2562253177165985,
-0.5019558668136597,
-0.9039531946182251,
0.6345592737197876,
0.20446054637432098,
0.36440253257751465,
-0.03286493569612503,
0.1096930056810379,
-0.022987116128206253,
0.15275046229362488,
-0.9530308842658997,
-0.4289191961288452,
-0.4724505543708801,
-0.17406253516674042,
-0.1594478338956833,
-0.09892860800027847,
0.019775880500674248,
-0.7984314560890198,
0.7770388722419739,
0.21833600103855133,
0.2833505868911743,
0.44252803921699524,
-0.19425822794437408,
-0.022764410823583603,
0.36344170570373535,
0.4031750559806824,
0.4678671061992645,
-0.23786257207393646,
-0.24817496538162231,
0.3665856122970581,
-0.7774899005889893,
0.1631188839673996,
0.23466692864894867,
-0.3604904115200043,
0.2781308591365814,
-0.045566268265247345,
0.8627461194992065,
0.19784830510616302,
-0.5295604467391968,
0.36702948808670044,
-0.05578848719596863,
0.05844327062368393,
-0.5992929339408875,
-0.1276819407939911,
0.10345183312892914,
-0.0932975634932518,
0.15511712431907654,
0.27016592025756836,
-0.21036586165428162,
-0.5478112101554871,
-0.02898283675312996,
-0.0051963599398732185,
-0.2539069950580597,
-0.3611542582511902,
0.7398618459701538,
0.2188417911529541,
-0.21414415538311005,
0.614838182926178,
-0.3857145309448242,
-0.7388244271278381,
0.5074237585067749,
0.46689534187316895,
0.9023378491401672,
-0.27525582909584045,
0.2404273897409439,
0.8974637389183044,
0.21476146578788757,
-0.2117496132850647,
0.31937316060066223,
0.20777136087417603,
-0.6941878199577332,
-0.5908411741256714,
-1.0314112901687622,
-0.4224448800086975,
0.12133390456438065,
-0.3549027740955353,
0.6898952722549438,
-0.38908615708351135,
0.021593181416392326,
0.08364296704530716,
-0.03870847448706627,
-0.8208563327789307,
0.10640370100736618,
-0.05454248934984207,
0.892932116985321,
-0.8714517951011658,
0.8064866662025452,
0.7464302778244019,
-0.9660750031471252,
-1.3059207201004028,
-0.2698083519935608,
-0.22907088696956635,
-0.7145312428474426,
0.6030880808830261,
0.09738938510417938,
-0.03559781238436699,
0.21971535682678223,
-0.4264926612377167,
-0.8930907845497131,
0.9809819459915161,
0.29231467843055725,
-0.3780782222747803,
-0.23562420904636383,
0.09916219115257263,
0.6531564593315125,
-0.005155329592525959,
0.3178773522377014,
0.536130428314209,
0.41848480701446533,
0.21391154825687408,
-0.986717700958252,
-0.08578671514987946,
-0.4277457594871521,
-0.2609081268310547,
0.29046398401260376,
-0.7837298512458801,
1.0502285957336426,
-0.18585799634456635,
-0.1773446798324585,
0.20620325207710266,
0.5343639254570007,
0.2137935608625412,
0.14354875683784485,
0.3764452338218689,
0.7846139669418335,
0.49536240100860596,
-0.270611047744751,
1.2105717658996582,
-0.3514573574066162,
0.610179603099823,
0.8313873410224915,
-0.07026281207799911,
0.7883358001708984,
0.47272321581840515,
-0.3507941961288452,
0.7381361722946167,
0.7297551035881042,
-0.2565973699092865,
0.4146482050418854,
0.051471125334501266,
-0.26131340861320496,
-0.08151677250862122,
-0.21032527089118958,
-0.4805881381034851,
0.42216476798057556,
0.14097103476524353,
-0.25916096568107605,
-0.4035648703575134,
0.1448182612657547,
0.14827921986579895,
-0.11610132455825806,
-0.31372296810150146,
0.4029919505119324,
0.16862305998802185,
-0.7970904111862183,
0.682603120803833,
-0.09822302311658859,
0.9002394676208496,
-0.7193542122840881,
0.058945223689079285,
-0.04868945851922035,
0.15543729066848755,
-0.33325356245040894,
-0.5045793056488037,
0.3669593334197998,
0.25691089034080505,
-0.04141828417778015,
-0.21286672353744507,
0.7402684688568115,
-0.507759153842926,
-0.6753612160682678,
0.22855249047279358,
0.5354945659637451,
0.2209700047969818,
0.22583609819412231,
-0.5451981425285339,
0.020867006853222847,
-0.028789369389414787,
-0.19082359969615936,
0.2973886728286743,
-0.06765669584274292,
0.1722087860107422,
0.4733411967754364,
0.67592853307724,
0.14056283235549927,
0.2620101869106293,
0.34436479210853577,
0.8852614760398865,
-0.534430980682373,
-0.255859375,
-0.6076048016548157,
0.5398319959640503,
-0.2020399421453476,
-0.49253860116004944,
0.8391658663749695,
0.5180829167366028,
1.091411828994751,
-0.23550832271575928,
0.7055017352104187,
-0.48826485872268677,
0.5001727938652039,
-0.46143290400505066,
0.8816529512405396,
-0.6263493299484253,
-0.10830157995223999,
-0.21716099977493286,
-0.8616965413093567,
-0.10530006885528564,
0.5974692106246948,
-0.3593713939189911,
0.15635967254638672,
0.8282274603843689,
0.9006593823432922,
-0.09687863290309906,
-0.2043674737215042,
-0.06257077306509018,
0.34726452827453613,
0.17937242984771729,
0.6949025988578796,
0.8473978638648987,
-0.7411547899246216,
0.8319815993309021,
-0.5402094721794128,
-0.016344670206308365,
0.016361940652132034,
-0.6099422574043274,
-0.8600801825523376,
-0.6383827328681946,
-0.2562871277332306,
-0.4572766423225403,
-0.2447374016046524,
0.8384562134742737,
0.5992092490196228,
-0.856893002986908,
-0.21583494544029236,
-0.30487075448036194,
0.18411102890968323,
0.09967029094696045,
-0.247287780046463,
0.5203313827514648,
-0.2640787363052368,
-0.9747419357299805,
0.1092851385474205,
-0.08401761949062347,
0.12168583273887634,
-0.23423759639263153,
0.004423166159540415,
-0.4508010447025299,
-0.13904444873332977,
0.5437570214271545,
0.5342386364936829,
-0.5326083302497864,
-0.3809221088886261,
0.09100253880023956,
-0.13584944605827332,
0.14668871462345123,
0.5275881290435791,
-0.5381491780281067,
0.3874107897281647,
0.5126922726631165,
0.4121978282928467,
0.5755980014801025,
-0.37035757303237915,
0.391500324010849,
-0.6328678131103516,
0.28524336218833923,
0.07562892884016037,
0.5142423510551453,
0.46052536368370056,
-0.1435074359178543,
0.5404519438743591,
0.1935962438583374,
-0.5602209568023682,
-0.8353751301765442,
0.017814794555306435,
-1.1507010459899902,
0.11342744529247284,
1.1695324182510376,
0.18220211565494537,
-0.3674982488155365,
0.06974660605192184,
-0.383461058139801,
0.6106052994728088,
-0.2251012623310089,
0.885509729385376,
0.8602848649024963,
0.0920257717370987,
-0.0009446335607208312,
-0.5626724362373352,
0.5129443407058716,
0.5505502820014954,
-0.7597498297691345,
-0.2293790578842163,
0.1509368121623993,
0.4786844551563263,
0.5401891469955444,
0.5138804316520691,
-0.1477910280227661,
0.41444382071495056,
-0.06976799666881561,
0.3587269186973572,
0.04796905815601349,
-0.16056713461875916,
-0.48036640882492065,
-0.06670981645584106,
-0.05692864954471588,
-0.24811145663261414
] |
sagorsarker/bangla-bert-base
|
sagorsarker
| 2023-07-21T15:56:25Z | 7,904 | 16 |
transformers
|
[
"transformers",
"pytorch",
"tf",
"jax",
"safetensors",
"bert",
"fill-mask",
"bengali",
"bengali-lm",
"bangla",
"bn",
"dataset:common_crawl",
"dataset:wikipedia",
"dataset:oscar",
"arxiv:1810.04805",
"arxiv:2012.14353",
"arxiv:2104.08613",
"arxiv:2107.03844",
"license:mit",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] |
fill-mask
| 2022-03-02T23:29:05Z |
---
language: bn
tags:
- bert
- bengali
- bengali-lm
- bangla
license: mit
datasets:
- common_crawl
- wikipedia
- oscar
---
# Bangla BERT Base
A long way passed. Here is our **Bangla-Bert**! It is now available in huggingface model hub.
[Bangla-Bert-Base](https://github.com/sagorbrur/bangla-bert) is a pretrained language model of Bengali language using mask language modeling described in [BERT](https://arxiv.org/abs/1810.04805) and it's github [repository](https://github.com/google-research/bert)
## Pretrain Corpus Details
Corpus was downloaded from two main sources:
* Bengali commoncrawl corpus downloaded from [OSCAR](https://oscar-corpus.com/)
* [Bengali Wikipedia Dump Dataset](https://dumps.wikimedia.org/bnwiki/latest/)
After downloading these corpora, we preprocessed it as a Bert format. which is one sentence per line and an extra newline for new documents.
```
sentence 1
sentence 2
sentence 1
sentence 2
```
## Building Vocab
We used [BNLP](https://github.com/sagorbrur/bnlp) package for training bengali sentencepiece model with vocab size 102025. We preprocess the output vocab file as Bert format.
Our final vocab file availabe at [https://github.com/sagorbrur/bangla-bert](https://github.com/sagorbrur/bangla-bert) and also at [huggingface](https://huggingface.co/sagorsarker/bangla-bert-base) model hub.
## Training Details
* Bangla-Bert was trained with code provided in Google BERT's github repository (https://github.com/google-research/bert)
* Currently released model follows bert-base-uncased model architecture (12-layer, 768-hidden, 12-heads, 110M parameters)
* Total Training Steps: 1 Million
* The model was trained on a single Google Cloud GPU
## Evaluation Results
### LM Evaluation Results
After training 1 million steps here are the evaluation results.
```
global_step = 1000000
loss = 2.2406516
masked_lm_accuracy = 0.60641736
masked_lm_loss = 2.201459
next_sentence_accuracy = 0.98625
next_sentence_loss = 0.040997364
perplexity = numpy.exp(2.2406516) = 9.393331287442784
Loss for final step: 2.426227
```
### Downstream Task Evaluation Results
- Evaluation on Bengali Classification Benchmark Datasets
Huge Thanks to [Nick Doiron](https://twitter.com/mapmeld) for providing evaluation results of the classification task.
He used [Bengali Classification Benchmark](https://github.com/rezacsedu/Classification_Benchmarks_Benglai_NLP) datasets for the classification task.
Comparing to Nick's [Bengali electra](https://huggingface.co/monsoon-nlp/bangla-electra) and multi-lingual BERT, Bangla BERT Base achieves a state of the art result.
Here is the [evaluation script](https://github.com/sagorbrur/bangla-bert/blob/master/notebook/bangla-bert-evaluation-classification-task.ipynb).
| Model | Sentiment Analysis | Hate Speech Task | News Topic Task | Average |
| ----- | -------------------| ---------------- | --------------- | ------- |
| mBERT | 68.15 | 52.32 | 72.27 | 64.25 |
| Bengali Electra | 69.19 | 44.84 | 82.33 | 65.45 |
| Bangla BERT Base | 70.37 | 71.83 | 89.19 | 77.13 |
- Evaluation on [Wikiann](https://huggingface.co/datasets/wikiann) Datasets
We evaluated `Bangla-BERT-Base` with [Wikiann](https://huggingface.co/datasets/wikiann) Bengali NER datasets along with another benchmark three models(mBERT, XLM-R, Indic-BERT). </br>
`Bangla-BERT-Base` got a third-place where `mBERT` got first and `XML-R` got second place after training these models 5 epochs.
| Base Pre-trained Model | F1 Score | Accuracy |
| ----- | -------------------| ---------------- |
| [mBERT-uncased](https://huggingface.co/bert-base-multilingual-uncased) | 97.11 | 97.68 |
| [XLM-R](https://huggingface.co/xlm-roberta-base) | 96.22 | 97.03 |
| [Indic-BERT](https://huggingface.co/ai4bharat/indic-bert)| 92.66 | 94.74 |
| Bangla-BERT-Base | 95.57 | 97.49 |
All four model trained with [transformers-token-classification](https://colab.research.google.com/github/huggingface/notebooks/blob/master/examples/token_classification.ipynb) notebook.
You can find all models evaluation results [here](https://github.com/sagorbrur/bangla-bert/tree/master/evaluations/wikiann)
Also, you can check the below paper list. They used this model on their datasets.
* [DeepHateExplainer: Explainable Hate Speech Detection in Under-resourced Bengali Language](https://arxiv.org/abs/2012.14353)
* [Emotion Classification in a Resource Constrained Language Using Transformer-based Approach](https://arxiv.org/abs/2104.08613)
* [A Review of Bangla Natural Language Processing Tasks and the Utility of Transformer Models](https://arxiv.org/abs/2107.03844)
**NB: If you use this model for any NLP task please share evaluation results with us. We will add it here.**
## Limitations and Biases
## How to Use
**Bangla BERT Tokenizer**
```py
from transformers import AutoTokenizer, AutoModel
bnbert_tokenizer = AutoTokenizer.from_pretrained("sagorsarker/bangla-bert-base")
text = "আমি বাংলায় গান গাই।"
bnbert_tokenizer.tokenize(text)
# ['আমি', 'বাংলা', '##য', 'গান', 'গাই', '।']
```
**MASK Generation**
You can use this model directly with a pipeline for masked language modeling:
```py
from transformers import BertForMaskedLM, BertTokenizer, pipeline
model = BertForMaskedLM.from_pretrained("sagorsarker/bangla-bert-base")
tokenizer = BertTokenizer.from_pretrained("sagorsarker/bangla-bert-base")
nlp = pipeline('fill-mask', model=model, tokenizer=tokenizer)
for pred in nlp(f"আমি বাংলায় {nlp.tokenizer.mask_token} গাই।"):
print(pred)
# {'sequence': '[CLS] আমি বাংলায গান গাই । [SEP]', 'score': 0.13404667377471924, 'token': 2552, 'token_str': 'গান'}
```
## Author
[Sagor Sarker](https://github.com/sagorbrur)
## Reference
* https://github.com/google-research/bert
## Citation
If you find this model helpful, please cite.
```
@misc{Sagor_2020,
title = {BanglaBERT: Bengali Mask Language Model for Bengali Language Understanding},
author = {Sagor Sarker},
year = {2020},
url = {https://github.com/sagorbrur/bangla-bert}
}
```
|
[
-0.3355080783367157,
-0.6130194664001465,
-0.19359304010868073,
0.4559163749217987,
-0.3484721779823303,
0.03591994568705559,
-0.3139595687389374,
-0.5150254964828491,
0.13385064899921417,
0.20996519923210144,
-0.32007768750190735,
-0.4550398588180542,
-0.7713809013366699,
0.013637404888868332,
-0.2387320101261139,
1.2155781984329224,
0.21546822786331177,
0.2615392208099365,
0.05348651111125946,
-0.06462160497903824,
-0.3440134525299072,
-0.7062851786613464,
-0.44102418422698975,
-0.2892036437988281,
0.48087918758392334,
-0.060798101127147675,
0.3389326333999634,
0.24783004820346832,
0.3347557485103607,
0.3153146505355835,
-0.38438719511032104,
0.0730678141117096,
-0.24612586200237274,
-0.01640070416033268,
-0.047923121601343155,
-0.3549353778362274,
-0.3528558015823364,
-0.01601317524909973,
0.6254667639732361,
0.710483968257904,
-0.04824521765112877,
0.23275531828403473,
0.12568186223506927,
0.6619734168052673,
-0.567653238773346,
0.25149065256118774,
-0.5791202187538147,
-0.16863177716732025,
-0.27621737122535706,
0.31539449095726013,
-0.4198360741138458,
-0.5035128593444824,
0.1662086546421051,
-0.11541392654180527,
0.03611670061945915,
0.033082056790590286,
1.1749365329742432,
0.21104134619235992,
-0.20977063477039337,
-0.3161708116531372,
-0.34618034958839417,
0.8004644513130188,
-0.9508626461029053,
0.529170036315918,
0.45718997716903687,
0.20068073272705078,
-0.008681584149599075,
-0.6126769185066223,
-0.7306075096130371,
-0.15910127758979797,
-0.043300729244947433,
0.18707513809204102,
-0.17524893581867218,
-0.10115092992782593,
0.16059042513370514,
0.3466702103614807,
-0.555275022983551,
0.0026073679327964783,
-0.5976737141609192,
-0.4114149510860443,
0.6524534225463867,
-0.21422380208969116,
0.09613697230815887,
-0.7482070326805115,
-0.3695448338985443,
-0.27842655777931213,
-0.30421584844589233,
0.2540636956691742,
0.5310002565383911,
0.6264862418174744,
-0.38982057571411133,
0.4680117964744568,
-0.07873781770467758,
0.7768164873123169,
0.20741838216781616,
-0.1091623529791832,
0.6775296926498413,
-0.29748988151550293,
-0.32172009348869324,
-0.09592562913894653,
0.7928445935249329,
0.1514396071434021,
0.2502458691596985,
-0.030021725222468376,
-0.04908081516623497,
-0.0028820298612117767,
0.20285458862781525,
-0.7731232643127441,
-0.2806429862976074,
0.20125927031040192,
-0.639153242111206,
-0.20307688415050507,
-0.18249526619911194,
-0.8415778875350952,
-0.26482388377189636,
-0.25723889470100403,
0.5295329093933105,
-0.7249854803085327,
-0.4549773633480072,
-0.10689690709114075,
-0.0025654397904872894,
0.4174206852912903,
0.169139102101326,
-0.8733938932418823,
0.03349221870303154,
0.5250142812728882,
0.8585408926010132,
-0.06526412069797516,
-0.16235877573490143,
-0.06301719695329666,
-0.3515413701534271,
-0.23658210039138794,
0.6220066547393799,
-0.306811660528183,
-0.22874929010868073,
0.12172729521989822,
-0.06676343828439713,
-0.22787459194660187,
-0.474197655916214,
0.6472408175468445,
-0.4628474712371826,
0.3519989550113678,
-0.1322709023952484,
-0.6089372038841248,
-0.4203927218914032,
0.2151731252670288,
-0.3631109595298767,
1.0845379829406738,
0.22713088989257812,
-0.7838373780250549,
0.41287314891815186,
-0.6779748201370239,
-0.37200987339019775,
0.09097050130367279,
0.16693279147148132,
-0.431960791349411,
-0.05462798476219177,
0.2763897776603699,
0.5852482914924622,
-0.03001314401626587,
0.3567343056201935,
-0.21923068165779114,
-0.3107782006263733,
0.0984729751944542,
-0.18530327081680298,
1.3250255584716797,
0.37917646765708923,
-0.4149070680141449,
0.10376503318548203,
-0.8827559947967529,
0.08392397314310074,
0.04633386805653572,
-0.3613194227218628,
-0.161211758852005,
-0.2502005994319916,
0.3495374619960785,
0.27135583758354187,
0.3318604826927185,
-0.6074697375297546,
0.18721042573451996,
-0.5944021344184875,
0.2511533200740814,
0.8624017834663391,
-0.2937778830528259,
0.16481688618659973,
-0.3513442575931549,
0.3961648941040039,
-0.0050902944058179855,
0.06519633531570435,
-0.07266220450401306,
-0.681807816028595,
-0.9779641032218933,
-0.501152515411377,
0.6992365121841431,
0.5385187864303589,
-0.43633076548576355,
0.8601887822151184,
-0.17118845880031586,
-0.8480662107467651,
-0.7919144034385681,
-0.040147844702005386,
0.4752393960952759,
0.45270031690597534,
0.4050752520561218,
-0.3592478036880493,
-0.8468707799911499,
-0.8593902587890625,
-0.15945294499397278,
-0.36133939027786255,
0.11856047064065933,
0.24127066135406494,
0.6226962208747864,
-0.4838988780975342,
0.9910156726837158,
-0.1798081248998642,
-0.19898363947868347,
-0.2984565496444702,
0.35195061564445496,
0.49372798204421997,
0.6786511540412903,
0.6205491423606873,
-0.8314200043678284,
-0.6064839363098145,
-0.22459323704242706,
-0.5526712536811829,
-0.23576533794403076,
0.12228116393089294,
-0.0975213572382927,
0.7785466909408569,
0.12469102442264557,
-0.5135051608085632,
0.48352885246276855,
0.611108124256134,
-0.27867794036865234,
0.775342583656311,
0.1318819522857666,
0.010940762236714363,
-1.2010613679885864,
0.268857479095459,
-0.21639496088027954,
-0.10211986303329468,
-0.5587159991264343,
-0.010080697946250439,
-0.08411954343318939,
0.0024048148188740015,
-0.3675622045993805,
0.7276592254638672,
-0.2946292757987976,
0.05848808214068413,
-0.041069746017456055,
-0.14299413561820984,
-0.2534940838813782,
0.794522225856781,
0.07459218055009842,
0.5571960806846619,
0.6236470341682434,
-0.5043386816978455,
0.3008742332458496,
0.5158262848854065,
-0.6201814413070679,
0.27961817383766174,
-0.6733490228652954,
0.1359587013721466,
0.04706057906150818,
0.22631224989891052,
-1.1958404779434204,
-0.18636399507522583,
0.4403650760650635,
-0.7294015288352966,
0.44414618611335754,
-0.21961165964603424,
-0.6188486218452454,
-0.48030102252960205,
-0.3059680461883545,
0.20245817303657532,
0.7847219705581665,
-0.5631828308105469,
0.4786050021648407,
0.29406818747520447,
-0.3220350444316864,
-0.8469838500022888,
-0.819179117679596,
-0.02538124844431877,
-0.11549234390258789,
-0.46678730845451355,
0.24383530020713806,
-0.34700220823287964,
0.01824170909821987,
-0.10596534609794617,
-0.055284664034843445,
-0.18565687537193298,
-0.15070919692516327,
0.43212392926216125,
0.356981098651886,
0.051621437072753906,
0.05986414849758148,
-0.13418543338775635,
0.15963542461395264,
-0.04727993905544281,
0.00459716934710741,
0.8372045159339905,
-0.4031108021736145,
-0.12227709591388702,
-0.3393045961856842,
0.27274084091186523,
0.34713420271873474,
-0.07061950117349625,
0.8140150904655457,
1.0488115549087524,
-0.42703521251678467,
0.10005364567041397,
-0.8241064548492432,
0.034728068858385086,
-0.43260595202445984,
0.40181562304496765,
-0.31762591004371643,
-0.8358896374702454,
0.6163002848625183,
0.12237526476383209,
-0.09152889996767044,
0.5944405198097229,
0.83315110206604,
-0.06946079432964325,
0.8321247100830078,
0.591889500617981,
-0.23328723013401031,
0.5250504016876221,
-0.32744142413139343,
0.4559747278690338,
-0.8732194304466248,
-0.46197399497032166,
-0.4883820712566376,
-0.047075022011995316,
-0.8598838448524475,
-0.2574825882911682,
0.12572382390499115,
0.3128598630428314,
-0.37264490127563477,
0.49918991327285767,
-0.7312595248222351,
-0.03871205821633339,
0.6332494616508484,
0.09084586799144745,
-0.19980311393737793,
0.0598885677754879,
-0.23832646012306213,
-0.15747684240341187,
-0.6114941239356995,
-0.4468304216861725,
1.0897136926651,
0.41902148723602295,
0.5343548059463501,
0.022493695840239525,
0.7639977335929871,
0.3607630729675293,
0.2878851890563965,
-0.5722455382347107,
0.5869140028953552,
-0.040063679218292236,
-0.9451622366905212,
-0.12230429798364639,
-0.26715362071990967,
-0.9285162687301636,
0.27631285786628723,
-0.20230810344219208,
-0.8970370292663574,
0.2819399833679199,
-0.0789528340101242,
-0.20370888710021973,
0.27757784724235535,
-0.7855777144432068,
0.819003701210022,
-0.21383626759052277,
-0.21190138161182404,
-0.05015885457396507,
-0.9338210821151733,
0.3822804391384125,
-0.1332509070634842,
0.18816542625427246,
-0.11847713589668274,
0.2564840614795685,
1.0702829360961914,
-0.3383418023586273,
0.9653074741363525,
-0.32754841446876526,
0.0515158586204052,
0.2662508189678192,
-0.24679350852966309,
0.1689368039369583,
-0.22057391703128815,
-0.17903679609298706,
0.6067164540290833,
-0.02769913151860237,
-0.554082989692688,
-0.300945520401001,
0.5290378332138062,
-0.8167409896850586,
-0.2216441035270691,
-0.7047268748283386,
-0.6218929290771484,
-0.1467410773038864,
0.3226828873157501,
0.36364006996154785,
0.37104877829551697,
0.13775020837783813,
0.28796258568763733,
0.3887915015220642,
-0.40996819734573364,
0.5110185742378235,
0.35373520851135254,
-0.2901557683944702,
-0.45910367369651794,
0.811963677406311,
0.17142324149608612,
0.008991258218884468,
0.2644236087799072,
0.18386748433113098,
-0.46814945340156555,
-0.6296021342277527,
-0.28288534283638,
0.2947685718536377,
-0.6870189309120178,
-0.35640186071395874,
-0.809906542301178,
-0.5295981764793396,
-0.9289206862449646,
-0.022903313860297203,
-0.1662440150976181,
-0.38935530185699463,
-0.06885258853435516,
0.008507470600306988,
0.4153369963169098,
0.5987918376922607,
-0.41679781675338745,
0.2840427756309509,
-0.588326096534729,
0.1883837878704071,
0.30159857869148254,
0.3711066246032715,
0.020099729299545288,
-0.8829513192176819,
-0.3791009187698364,
0.07329189032316208,
-0.260610967874527,
-0.7428115606307983,
0.6397954821586609,
0.2010975182056427,
0.5650547742843628,
0.2198091596364975,
-0.07061313837766647,
0.6819607019424438,
-0.4489932358264923,
1.0477374792099,
0.18403124809265137,
-1.0176031589508057,
0.6278517246246338,
-0.286304771900177,
0.26411181688308716,
0.4238332211971283,
0.6638950109481812,
-0.39396145939826965,
-0.2240489274263382,
-0.665086567401886,
-1.0940358638763428,
0.6702191233634949,
0.21454668045043945,
0.174438014626503,
0.0024655605666339397,
0.19025368988513947,
0.27045533061027527,
0.40071171522140503,
-0.9967687726020813,
-0.4520183801651001,
-0.4565891921520233,
-0.230235755443573,
-0.015948982909321785,
-0.4804249405860901,
0.1664174497127533,
-0.6073733568191528,
0.8663409352302551,
0.21049466729164124,
0.6172149181365967,
0.15184123814105988,
-0.1971159279346466,
0.22142353653907776,
0.24899084866046906,
0.6108814477920532,
0.5442684888839722,
-0.6291589736938477,
-0.2272106260061264,
0.1315484195947647,
-0.5499724745750427,
-0.17618508636951447,
0.41001683473587036,
-0.056895606219768524,
0.20666874945163727,
0.5600016117095947,
0.9211714863777161,
0.14142943918704987,
-0.6258395314216614,
0.541237473487854,
0.15691526234149933,
-0.13413631916046143,
-0.3757505714893341,
-0.13083060085773468,
0.015775902196764946,
0.26156190037727356,
0.5701186060905457,
0.13840024173259735,
0.09507040679454803,
-0.40923282504081726,
0.2638724744319916,
0.27956053614616394,
-0.2360306978225708,
-0.30344921350479126,
0.511432945728302,
0.1386236995458603,
-0.32342150807380676,
0.5566579103469849,
-0.38241133093833923,
-0.9261040687561035,
0.39120757579803467,
0.6441174149513245,
0.8737998604774475,
-0.3711654543876648,
0.11566654592752457,
0.6652104258537292,
0.26174163818359375,
0.28710612654685974,
0.3576541543006897,
-0.1592342108488083,
-0.7468534111976624,
-0.5061516761779785,
-1.0969946384429932,
-0.3466218113899231,
0.28196486830711365,
-0.6308477520942688,
0.11624457687139511,
-0.396333247423172,
-0.07948813587427139,
0.07831776142120361,
0.24844297766685486,
-0.6630200743675232,
0.3330683410167694,
0.3026331961154938,
0.8926697373390198,
-0.8330401182174683,
0.8135948777198792,
0.7004603743553162,
-0.5598633885383606,
-0.750299334526062,
-0.20975708961486816,
-0.198557049036026,
-0.9156709313392639,
1.028444528579712,
0.37185096740722656,
0.12248481810092926,
-0.15587404370307922,
-0.6576095223426819,
-0.8394346237182617,
0.6754512786865234,
0.14366768300533295,
-0.47236180305480957,
0.07650228589773178,
-0.05766807124018669,
0.6977190375328064,
-0.23393340408802032,
0.45569437742233276,
0.4241844713687897,
0.5452743768692017,
0.029290344566106796,
-1.0466748476028442,
-0.06292611360549927,
-0.6171976327896118,
0.007467301096767187,
-0.06230270490050316,
-0.6559072136878967,
0.9772545695304871,
-0.10272999852895737,
0.01701459102332592,
0.178296759724617,
0.718614935874939,
0.28694671392440796,
0.1851871758699417,
0.589235782623291,
0.6913363933563232,
0.6667251586914062,
-0.12629541754722595,
1.0128604173660278,
-0.14911329746246338,
0.4949715733528137,
0.8924975395202637,
-0.07684923708438873,
0.8995636105537415,
0.2514974772930145,
-0.4804089069366455,
0.7880645394325256,
0.8570716977119446,
-0.19792349636554718,
0.6926430463790894,
0.3010806143283844,
-0.06341402977705002,
-0.014681448228657246,
-0.17813728749752045,
-0.4919487237930298,
0.5579067468643188,
0.2597440183162689,
-0.0461990125477314,
-0.06805682927370071,
0.18577715754508972,
0.19681435823440552,
-0.06265413761138916,
-0.21311438083648682,
0.5396344661712646,
-0.03423290699720383,
-0.46446526050567627,
0.9248644709587097,
-0.20432732999324799,
1.1982179880142212,
-0.6893899440765381,
0.09151800721883774,
-0.07394324988126755,
0.07244788110256195,
-0.2278980314731598,
-0.4966428279876709,
0.34970444440841675,
0.11195165663957596,
-0.24545149505138397,
-0.19169574975967407,
0.7458463907241821,
-0.5816317200660706,
-0.5701194405555725,
0.4105042517185211,
0.19893880188465118,
0.47658440470695496,
0.04635385796427727,
-0.9486393332481384,
0.20436033606529236,
0.023800501599907875,
-0.3053131401538849,
0.29831352829933167,
0.07412330061197281,
0.12778998911380768,
0.5934098958969116,
0.7172845602035522,
0.2083853930234909,
0.20913653075695038,
0.07581127434968948,
0.7304005026817322,
-0.6401031017303467,
-0.4039027690887451,
-0.6433146595954895,
0.5723698139190674,
-0.17702019214630127,
-0.41336190700531006,
0.8815323710441589,
0.5777450799942017,
0.9902711510658264,
-0.17732016742229462,
0.8147339820861816,
-0.49486246705055237,
0.8290166258811951,
-0.2866922616958618,
0.8642590641975403,
-0.5903308987617493,
-0.19211924076080322,
-0.48661717772483826,
-0.8974227905273438,
-0.3342476487159729,
0.8865740895271301,
-0.26452895998954773,
0.2804434299468994,
0.5190033912658691,
0.7127130031585693,
0.1633959412574768,
-0.16855089366436005,
0.1782207489013672,
0.4219668209552765,
0.17907550930976868,
0.4066174328327179,
0.6833291053771973,
-0.6879488229751587,
0.4490448832511902,
-0.4177795350551605,
-0.2687152922153473,
-0.4233976900577545,
-0.9149142503738403,
-1.017978310585022,
-0.9078782200813293,
-0.34030017256736755,
-0.42521932721138,
0.05844902619719505,
1.0125735998153687,
0.8910536170005798,
-1.069088101387024,
-0.20400048792362213,
0.1313607096672058,
0.07527351379394531,
-0.1669287532567978,
-0.30317139625549316,
0.6494503617286682,
-0.449184387922287,
-0.9694434404373169,
0.25834792852401733,
-0.05882871523499489,
-0.04051555320620537,
-0.06803861260414124,
-0.023514967411756516,
-0.6736049056053162,
0.0679803416132927,
0.6478171944618225,
0.21454721689224243,
-0.8475971817970276,
-0.2847940921783447,
-0.1637285202741623,
-0.16179224848747253,
-0.005359126720577478,
0.2664114534854889,
-0.7081314921379089,
0.5327224731445312,
0.5737372636795044,
0.7160320281982422,
0.6091312170028687,
-0.0751357302069664,
0.21679073572158813,
-0.736210823059082,
0.2611697018146515,
0.3018287420272827,
0.3476032018661499,
0.5290873646736145,
-0.15838731825351715,
0.6559616327285767,
0.2562233507633209,
-0.7040867805480957,
-1.0931644439697266,
-0.10838619619607925,
-1.2777535915374756,
-0.20488479733467102,
1.090787410736084,
-0.21223987638950348,
-0.28865858912467957,
-0.04120520502328873,
-0.28477367758750916,
0.53950434923172,
-0.35596829652786255,
0.8445004820823669,
0.8132196068763733,
-0.02452464960515499,
-0.0273594930768013,
-0.33375608921051025,
0.41270044445991516,
0.6489754319190979,
-0.5156080722808838,
-0.16004404425621033,
0.2410663217306137,
0.2944687008857727,
0.5018711090087891,
0.5249104499816895,
-0.03556020185351372,
0.0966847836971283,
-0.08744461834430695,
0.46247199177742004,
-0.09284946322441101,
-0.13760577142238617,
-0.4900398552417755,
0.007263700012117624,
-0.3034459054470062,
-0.387378066778183
] |
ToddGoldfarb/Cadet-Tiny
|
ToddGoldfarb
| 2023-05-12T00:18:41Z | 7,900 | 5 |
transformers
|
[
"transformers",
"pytorch",
"t5",
"text2text-generation",
"conversational",
"en",
"dataset:allenai/soda",
"license:openrail",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] |
conversational
| 2023-04-07T06:34:12Z |
---
license: openrail
datasets:
- allenai/soda
language:
- en
pipeline_tag: conversational
---
# What is Cadet-Tiny?
Inspired by Allen AI's **Cosmo-XL**, **Cadet-Tiny** is a _very small_ conversational model trained off of the **SODA** dataset. **Cadet-Tiny** is intended for inference at the edge (on something as small as a 2GB RAM Raspberry Pi).
**Cadet-Tiny** is trained off of the **t5-small** pretrained model from Google, and is, as a result, is about 2% of the size of the **Cosmo-3B** model.
This is my first SEQ2SEQ NLP Model I've ever made! I'm very excited to share it here on HuggingFace! :)
If you have any questions, or any comments on improvements, please contact me at: **[email protected]**
# Google Colab Link
Here is the link to the Google Colab file, where I walk through the process of training the model and using the SODA public dataset from AI2.
https://colab.research.google.com/drive/1cx3Yujr_jGQkseqzXZW-2L0vEyEjds_s?usp=sharing
# Get Started With Cadet-Tiny
Use the code snippet below to get started with Cadet-Tiny!
```
import torch
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
import colorful as cf
cf.use_true_colors()
cf.use_style('monokai')
class CadetTinyAgent:
def __init__(self):
print(cf.bold | cf.purple("Waking up Cadet-Tiny..."))
self.device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
self.tokenizer = AutoTokenizer.from_pretrained("t5-small", model_max_length=512)
self.model = AutoModelForSeq2SeqLM.from_pretrained("ToddGoldfarb/Cadet-Tiny", low_cpu_mem_usage=True).to(self.device)
self.conversation_history = ""
def observe(self, observation):
self.conversation_history = self.conversation_history + observation
# The number 400 below is just a truncation safety net. It leaves room for 112 input tokens.
if len(self.conversation_history) > 400:
self.conversation_history = self.conversation_history[112:]
def set_input(self, situation_narrative="", role_instruction=""):
input_text = "dialogue: "
if situation_narrative != "":
input_text = input_text + situation_narrative
if role_instruction != "":
input_text = input_text + " <SEP> " + role_instruction
input_text = input_text + " <TURN> " + self.conversation_history
# Uncomment the line below to see what is fed to the model.
# print(input_text)
return input_text
def generate(self, situation_narrative, role_instruction, user_response):
user_response = user_response + " <TURN> "
self.observe(user_response)
input_text = self.set_input(situation_narrative, role_instruction)
inputs = self.tokenizer([input_text], return_tensors="pt").to(self.device)
# I encourage you to change the hyperparameters of the model! Start by trying to modify the temperature.
outputs = self.model.generate(inputs["input_ids"], max_new_tokens=512, temperature=0.75, top_p=.95,
do_sample=True)
cadet_response = self.tokenizer.decode(outputs[0], skip_special_tokens=True, clean_up_tokenization_spaces=False)
added_turn = cadet_response + " <TURN> "
self.observe(added_turn)
return cadet_response
def reset_history(self):
self.conversation_history = []
def run(self):
def get_valid_input(prompt, default):
while True:
user_input = input(prompt)
if user_input in ["Y", "N", "y", "n"]:
return user_input
if user_input == "":
return default
while True:
continue_chat = ""
# MODIFY THESE STRINGS TO YOUR LIKING :)
situation_narrative = "Imagine you are Cadet-Tiny talking to ???."
role_instruction = "You are Cadet-Tiny, and you are talking to ???."
self.chat(situation_narrative, role_instruction)
continue_chat = get_valid_input(cf.purple("Start a new conversation with new setup? [Y/N]:"), "Y")
if continue_chat in ["N", "n"]:
break
print(cf.blue("CT: See you!"))
def chat(self, situation_narrative, role_instruction):
print(cf.green(
"Cadet-Tiny is running! Input [RESET] to reset the conversation history and [END] to end the conversation."))
while True:
user_input = input("You: ")
if user_input == "[RESET]":
self.reset_history()
print(cf.green("[Conversation history cleared. Chat with Cadet-Tiny!]"))
continue
if user_input == "[END]":
break
response = self.generate(situation_narrative, role_instruction, user_input)
print(cf.blue("CT: " + response))
def main():
print(cf.bold | cf.blue("LOADING MODEL"))
CadetTiny = CadetTinyAgent()
CadetTiny.run()
if __name__ == '__main__':
main()
```
# Citations and Special Thanks
Special thanks to Hyunwoo Kim for discussing with me the best way to use the SODA dataset. If you haven't looked into their work with SODA, Prosocial-Dialog, or COSMO, I recommend you do so! As well, read the paper on SODA!
The article is listed below.
```
@article{kim2022soda,
title={SODA: Million-scale Dialogue Distillation with Social Commonsense Contextualization},
author={Hyunwoo Kim and Jack Hessel and Liwei Jiang and Peter West and Ximing Lu and Youngjae Yu and Pei Zhou and Ronan Le Bras and Malihe Alikhani and Gunhee Kim and Maarten Sap and Yejin Choi},
journal={ArXiv},
year={2022},
volume={abs/2212.10465}
}
```
|
[
-0.2199731469154358,
-0.8572455048561096,
0.35469287633895874,
0.1905605047941208,
-0.012143907137215137,
0.08869151771068573,
-0.3206706643104553,
-0.10915546864271164,
0.3063881993293762,
0.10168799012899399,
-0.6831942200660706,
-0.40925538539886475,
-0.36780664324760437,
-0.12222001701593399,
-0.04682788997888565,
1.0073217153549194,
0.46740221977233887,
0.030852165073156357,
-0.21288302540779114,
0.09985256940126419,
-0.6465224623680115,
-0.6826569437980652,
-1.0105565786361694,
-0.355510413646698,
0.2442728728055954,
0.685370147228241,
0.6096245050430298,
0.4464792311191559,
0.18099786341190338,
0.4483948051929474,
-0.33169540762901306,
0.15965569019317627,
-0.6803765892982483,
-0.05197320878505707,
0.0770186334848404,
-0.6052858829498291,
-0.4084645211696625,
0.13541293144226074,
0.4129807949066162,
0.6141425967216492,
0.23175740242004395,
0.3010900318622589,
0.23950235545635223,
0.1820002794265747,
-0.6095165014266968,
0.4312821328639984,
-0.4843142330646515,
-0.25095364451408386,
0.16471126675605774,
0.04257633537054062,
-0.41907063126564026,
-0.17195549607276917,
0.025215430185198784,
-0.5215699672698975,
0.3086433708667755,
0.058570828288793564,
0.9808555841445923,
0.09439866989850998,
-0.43799710273742676,
-0.4966473877429962,
-0.7094364166259766,
0.9362726807594299,
-0.749667763710022,
-0.0008290032856166363,
0.4494446814060211,
0.022108150646090508,
-0.31163695454597473,
-0.819603443145752,
-0.7277799248695374,
-0.27516019344329834,
-0.47843000292778015,
0.15008310973644257,
-0.21031659841537476,
-0.11068544536828995,
0.11345706135034561,
0.04993079975247383,
-0.33105137944221497,
-0.1301533579826355,
-0.7759870886802673,
-0.0914309024810791,
0.6623820066452026,
0.3751434087753296,
0.15526720881462097,
-0.37633341550827026,
-0.1579011231660843,
-0.29278841614723206,
-0.1940438449382782,
0.4057638347148895,
0.1239258199930191,
0.654573917388916,
-0.5662627220153809,
0.4962194859981537,
-0.08322897553443909,
0.4556163549423218,
0.5100446939468384,
-0.16779807209968567,
0.353634238243103,
-0.41085872054100037,
-0.33565837144851685,
0.04306022450327873,
1.1703048944473267,
0.4696943461894989,
0.1305474042892456,
0.1995725780725479,
0.23773299157619476,
-0.3526438772678375,
-0.12877009809017181,
-0.7885072827339172,
-0.5099819302558899,
0.29388585686683655,
-0.38284412026405334,
-0.5256945490837097,
-0.005963591858744621,
-0.7042686343193054,
-0.16331277787685394,
-0.1326131820678711,
0.3934975862503052,
-0.4034561812877655,
-0.17081837356090546,
-0.18298375606536865,
-0.12116947025060654,
0.013868425041437149,
0.0768306702375412,
-1.1978713274002075,
0.3288334012031555,
0.5384221076965332,
0.9504998922348022,
0.2448325902223587,
-0.22096499800682068,
-0.38010209798812866,
-0.20310965180397034,
-0.42834433913230896,
0.3613433837890625,
-0.555057942867279,
-0.5586622357368469,
-0.3738274872303009,
0.18408803641796112,
-0.42533600330352783,
-0.5902275443077087,
0.4020594358444214,
-0.18724146485328674,
0.456602543592453,
-0.24876554310321808,
-0.3853519558906555,
0.011382262222468853,
0.10357877612113953,
-0.2161465287208557,
1.1214345693588257,
-0.09520699828863144,
-0.6380611062049866,
0.044607214629650116,
-0.6964754462242126,
-0.2425866276025772,
-0.16836793720722198,
-0.1275610327720642,
-0.41811639070510864,
-0.015057134442031384,
0.18432089686393738,
0.4911191761493683,
-0.14296910166740417,
0.13354706764221191,
-0.4955483675003052,
-0.4406389594078064,
0.4219082295894623,
-0.2334999144077301,
1.2390987873077393,
0.23001259565353394,
-0.07693582773208618,
0.10983586311340332,
-0.7443505525588989,
0.15361535549163818,
0.25832828879356384,
-0.27599868178367615,
-0.3110886514186859,
-0.3351612687110901,
-0.23095637559890747,
0.11078036576509476,
0.334175705909729,
-0.49342894554138184,
0.1548861563205719,
-0.3555729389190674,
0.6423792839050293,
0.6121909618377686,
0.3129517436027527,
0.5671301484107971,
-0.36269739270210266,
0.25845274329185486,
0.004619105719029903,
0.14188647270202637,
-0.12213852256536484,
-0.4377647638320923,
-1.138527274131775,
-0.26614442467689514,
0.2871634364128113,
0.6902225017547607,
-0.5204870700836182,
0.678081750869751,
0.10252152383327484,
-0.7142133712768555,
-0.28199970722198486,
0.014360458590090275,
0.2557471990585327,
0.5577542185783386,
0.30893293023109436,
0.06874077767133713,
-0.6962378621101379,
-0.6970440745353699,
-0.030825980007648468,
-0.5739855766296387,
-0.10204340517520905,
0.4912908971309662,
0.7116463780403137,
-0.05274920538067818,
1.0000699758529663,
-0.6696446537971497,
-0.08859457820653915,
-0.48955950140953064,
0.2281028926372528,
0.4117718040943146,
0.910518229007721,
0.559680700302124,
-0.45601707696914673,
-0.5877990126609802,
-0.3501092195510864,
-0.7547953128814697,
-0.04171013459563255,
-0.34407371282577515,
-0.32640978693962097,
-0.12391633540391922,
0.647827684879303,
-0.6801415681838989,
0.3674784004688263,
0.34510380029678345,
-0.6473203897476196,
0.42749086022377014,
-0.17538322508335114,
0.1426469087600708,
-1.1081043481826782,
-0.03108133375644684,
-0.10666142404079437,
-0.08332200348377228,
-0.7987120151519775,
-0.196196511387825,
-0.16520975530147552,
-0.11862818896770477,
-0.46238207817077637,
0.6942395567893982,
-0.38339200615882874,
0.2889970541000366,
-0.13246022164821625,
0.005146669689565897,
0.05989522114396095,
0.6957213878631592,
-0.08219500631093979,
0.6671893000602722,
0.47953128814697266,
-0.6592037081718445,
0.4630833864212036,
0.6555934548377991,
0.055486761033535004,
0.34483498334884644,
-0.884103000164032,
0.356370210647583,
-0.072323739528656,
0.13128511607646942,
-1.1538070440292358,
-0.17462782561779022,
0.6520136594772339,
-0.8581940531730652,
0.30360886454582214,
-0.31432971358299255,
-0.325595498085022,
-0.34572046995162964,
-0.19613347947597504,
0.10476807504892349,
0.48955944180488586,
-0.4666910171508789,
0.5009824633598328,
0.2475229650735855,
-0.3754756450653076,
-0.28059011697769165,
-0.6277811527252197,
-0.004248527344316244,
-0.24914376437664032,
-0.5891050100326538,
0.05106578767299652,
-0.23440872132778168,
-0.22678954899311066,
-0.1225760281085968,
0.02424294501543045,
-0.22377195954322815,
0.09168590605258942,
0.3671644330024719,
0.48029825091362,
-0.1453041285276413,
0.2894085645675659,
-0.06995414197444916,
0.06708887219429016,
0.18023638427257538,
0.28140518069267273,
0.8208594918251038,
-0.5296280384063721,
0.10436378419399261,
-0.615929126739502,
0.22533565759658813,
0.17294074594974518,
0.07883911579847336,
1.026859164237976,
0.6065590977668762,
-0.28211456537246704,
0.06228475645184517,
-0.17636309564113617,
-0.520943820476532,
-0.5569184422492981,
0.26382187008857727,
-0.3153683841228485,
-0.716050922870636,
0.3719928562641144,
0.18102207779884338,
0.0645599365234375,
0.47365427017211914,
0.5927242636680603,
-0.4432627558708191,
0.8528162837028503,
0.5943090319633484,
0.1091562807559967,
0.5370901823043823,
-0.49773943424224854,
0.29394257068634033,
-0.6533856987953186,
-0.40944498777389526,
-0.5433651208877563,
-0.3167719542980194,
-0.48741212487220764,
-0.4397723376750946,
0.3314249515533447,
0.40052443742752075,
-0.5826272368431091,
0.23366500437259674,
-0.34249573945999146,
0.5150237679481506,
0.8102599382400513,
0.036796171218156815,
0.089620441198349,
-0.20798960328102112,
-0.01718735322356224,
-0.14168453216552734,
-0.9758646488189697,
-0.623866617679596,
0.9604706168174744,
0.32884320616722107,
0.7592918276786804,
-0.0993671864271164,
0.945047914981842,
0.029968366026878357,
0.1316593587398529,
-0.7534831762313843,
0.7607858180999756,
-0.02415863610804081,
-0.7838524580001831,
-0.2405388355255127,
-0.4023995101451874,
-0.916397213935852,
0.19719086587429047,
-0.4723804295063019,
-1.087730884552002,
0.31046754121780396,
0.36094236373901367,
-0.7107748985290527,
0.04502832889556885,
-1.043101191520691,
0.9957925081253052,
-0.19032686948776245,
-0.4006582200527191,
0.09677106142044067,
-0.6047932505607605,
0.4365912675857544,
0.1552925705909729,
0.08055109530687332,
-0.08134499937295914,
0.19732408225536346,
1.0038409233093262,
-0.7258400917053223,
1.224353551864624,
-0.1698673963546753,
0.4531152844429016,
0.6836386919021606,
0.017760688439011574,
0.3484315872192383,
0.24877645075321198,
0.16517166793346405,
0.11223255842924118,
0.3447081446647644,
-0.2666079103946686,
-0.4505600035190582,
0.7146522402763367,
-0.963749349117279,
-0.5592116713523865,
-0.6441981792449951,
-0.32963377237319946,
-0.21486540138721466,
0.2832595109939575,
0.3031458556652069,
0.17909081280231476,
-0.18419112265110016,
0.45343002676963806,
0.37661394476890564,
-0.4612956643104553,
0.49785688519477844,
0.3463720381259918,
-0.19156382977962494,
-0.12984205782413483,
0.815201461315155,
-0.12336904555559158,
0.27068591117858887,
0.11754989624023438,
0.3845984637737274,
-0.1598598062992096,
0.022039281204342842,
-0.32905763387680054,
0.367316335439682,
-0.6717574000358582,
-0.12744051218032837,
-0.8381940722465515,
-0.402157187461853,
-0.7368528842926025,
-0.18529650568962097,
-0.5843459963798523,
-0.46388837695121765,
-0.7465810179710388,
0.037031568586826324,
0.3143974244594574,
0.45565006136894226,
-0.3014424443244934,
0.6640926599502563,
-0.5826427936553955,
0.2846093773841858,
0.3751661777496338,
-0.11675536632537842,
-0.012137003242969513,
-0.6874285936355591,
-0.19979999959468842,
0.25982868671417236,
-0.47274845838546753,
-0.6924458146095276,
0.43999117612838745,
0.2214609980583191,
0.37268099188804626,
0.3256509602069855,
0.19475513696670532,
0.7426462173461914,
-0.18178054690361023,
0.9027911424636841,
0.2435520589351654,
-0.9121481776237488,
0.5581328868865967,
-0.10958749055862427,
0.33136987686157227,
0.6067070960998535,
0.273417592048645,
-0.6387965679168701,
-0.3801991939544678,
-0.835739016532898,
-0.7159718871116638,
0.9628061652183533,
0.5137925744056702,
0.40798261761665344,
-0.08962616324424744,
0.18871024250984192,
-0.3074645698070526,
0.07632412761449814,
-0.6170540452003479,
-0.5073158740997314,
-0.2481546700000763,
-0.3183423578739166,
-0.11453930288553238,
-0.22966867685317993,
-0.163022980093956,
-0.4711688160896301,
0.8435147404670715,
-0.07938747107982635,
0.7154332399368286,
0.007526948116719723,
0.15173175930976868,
0.09266585856676102,
0.2363681197166443,
0.3846040964126587,
0.3687744140625,
-0.40052923560142517,
-0.11834996938705444,
0.3885435163974762,
-0.39758679270744324,
0.023652808740735054,
-0.07955662161111832,
-0.22098980844020844,
0.052113018929958344,
0.4555058777332306,
0.8502537608146667,
0.044305190443992615,
-0.40336644649505615,
0.6233415007591248,
-0.4773077368736267,
-0.20673999190330505,
-0.5155801773071289,
0.4753358066082001,
0.29593273997306824,
0.5121281147003174,
0.20782189071178436,
0.24838058650493622,
-0.08538918942213058,
-0.7794511318206787,
-0.1135682463645935,
0.33192479610443115,
-0.14747367799282074,
-0.247653990983963,
0.7658608555793762,
0.2341473251581192,
-0.36041128635406494,
0.6885703206062317,
-0.17352671921253204,
-0.4995642304420471,
0.7988166809082031,
0.5748635530471802,
0.6043870449066162,
0.1436672806739807,
0.2681712508201599,
0.794663667678833,
0.21893084049224854,
0.08678991347551346,
0.3032214641571045,
-0.010609930381178856,
-0.8173012137413025,
0.1068514958024025,
-0.47107934951782227,
-0.27138999104499817,
0.41137146949768066,
-0.6457269787788391,
0.3367997109889984,
-0.7693784236907959,
-0.28223249316215515,
0.16061021387577057,
0.14596815407276154,
-0.8310947418212891,
0.3130282163619995,
0.18245182931423187,
0.7077401280403137,
-0.849409282207489,
0.6179208159446716,
0.42718827724456787,
-0.38299310207366943,
-0.9858474731445312,
0.03989548236131668,
0.23856425285339355,
-0.8860194087028503,
0.6656822562217712,
0.07007106393575668,
-0.07395198941230774,
-0.09974504262208939,
-0.7834150791168213,
-0.924597442150116,
1.0586034059524536,
0.09353179484605789,
-0.5444438457489014,
-0.1113516315817833,
0.04479622095823288,
0.6396801471710205,
-0.46915286779403687,
0.3233020305633545,
0.7578084468841553,
0.210102379322052,
0.3261760473251343,
-0.7497272491455078,
0.03636551275849342,
-0.3661733567714691,
-0.03059106133878231,
-0.3609740138053894,
-1.046871542930603,
1.0583744049072266,
-0.5380813479423523,
-0.24835173785686493,
0.3507975935935974,
0.8261100649833679,
0.24952206015586853,
0.38263463973999023,
0.6056358814239502,
0.09007766842842102,
0.8438829779624939,
-0.21524876356124878,
0.6689007878303528,
-0.3816756010055542,
0.5523468255996704,
1.4133604764938354,
0.18035686016082764,
0.7257617115974426,
0.3474920988082886,
-0.06068440154194832,
0.39452242851257324,
0.6513412594795227,
-0.22800955176353455,
0.48183250427246094,
-0.015767978504300117,
-0.157094806432724,
-0.11000005155801773,
0.08710428327322006,
-0.3115120530128479,
0.6377108693122864,
0.3431779146194458,
-0.4353788495063782,
0.1489618718624115,
-0.09834840893745422,
0.43915998935699463,
-0.23611755669116974,
-0.12051457911729813,
0.7886061668395996,
0.11602236330509186,
-0.6889836192131042,
0.8849595189094543,
0.1945895552635193,
0.6501967310905457,
-0.5045743584632874,
0.15380164980888367,
-0.3529781103134155,
0.36667460203170776,
-0.18575289845466614,
-0.5964896082878113,
0.19227467477321625,
0.16880181431770325,
-0.04379619285464287,
0.0004656726378016174,
0.7042624354362488,
-0.6047311425209045,
-0.6355711221694946,
0.007087313570082188,
0.4727555811405182,
0.30200159549713135,
0.24713829159736633,
-0.8175633549690247,
0.19019323587417603,
0.09214014559984207,
-0.36217164993286133,
0.042185839265584946,
0.2311294972896576,
0.21167974174022675,
0.5460515022277832,
0.5413968563079834,
-0.11990229040384293,
0.06665321439504623,
-0.10099218785762787,
0.9229933023452759,
-0.745632529258728,
-0.5323415398597717,
-0.8282777667045593,
0.4363778233528137,
-0.2081322818994522,
-0.5290387272834778,
0.7612612247467041,
0.6131078600883484,
0.9056346416473389,
-0.16087369620800018,
0.8438104391098022,
-0.5070348381996155,
0.5118269920349121,
-0.39120450615882874,
0.6475048065185547,
-0.4141337275505066,
0.18793146312236786,
-0.06852845102548599,
-0.48649707436561584,
0.0874590277671814,
0.9121929407119751,
-0.4706234931945801,
0.21710306406021118,
0.5527462363243103,
1.0709155797958374,
-0.16130396723747253,
0.12604233622550964,
0.15449480712413788,
0.4201810359954834,
0.317615270614624,
0.6096628904342651,
0.7759846448898315,
-0.5119776129722595,
0.8055875301361084,
-0.6208289861679077,
-0.25128084421157837,
-0.2635608911514282,
-0.5356767177581787,
-1.293686866760254,
-0.5079135298728943,
-0.2582769989967346,
-0.5666860938072205,
-0.023388482630252838,
1.2956403493881226,
0.852046012878418,
-0.8812367916107178,
-0.29182055592536926,
0.2320663034915924,
-0.1658301204442978,
-0.18802247941493988,
-0.2806759774684906,
0.23631234467029572,
-0.3197592794895172,
-0.8881745934486389,
0.42059633135795593,
-0.2703655958175659,
0.30219846963882446,
0.15597116947174072,
-0.1377040147781372,
-0.25322574377059937,
0.13475234806537628,
0.46824145317077637,
0.4228687286376953,
-0.3303043842315674,
-0.3631989061832428,
-0.08252324163913727,
-0.2717798054218292,
0.11272770166397095,
0.559062123298645,
-0.6190224289894104,
0.35618430376052856,
0.3264062702655792,
0.21110466122627258,
0.7410329580307007,
-0.0596948079764843,
0.3660942316055298,
-0.964927077293396,
0.2097640186548233,
0.15299178659915924,
0.29236236214637756,
0.36679911613464355,
-0.46176233887672424,
0.3718093931674957,
0.2529619038105011,
-0.5182464718818665,
-0.6722257733345032,
-0.11363600939512253,
-1.0197447538375854,
-0.35486575961112976,
1.0714541673660278,
-0.13913364708423615,
-0.2659982442855835,
0.050345271825790405,
-0.4890151917934418,
0.4282132685184479,
-0.6832723021507263,
0.7493453621864319,
0.623557984828949,
-0.36840662360191345,
-0.2605687081813812,
-0.4200318455696106,
0.4026447534561157,
0.27512747049331665,
-0.6541667580604553,
0.04276103153824806,
0.25062593817710876,
0.5549853444099426,
0.22352585196495056,
0.8062460422515869,
0.3125936686992645,
0.10981594771146774,
0.295183390378952,
-0.23346853256225586,
-0.2151341736316681,
-0.2884722948074341,
-0.190513014793396,
-0.04098141938447952,
-0.21403345465660095,
-0.4178980886936188
] |
google/reformer-crime-and-punishment
|
google
| 2023-01-24T16:43:04Z | 7,893 | 6 |
transformers
|
[
"transformers",
"pytorch",
"rust",
"reformer",
"text-generation",
"endpoints_compatible",
"has_space",
"region:us"
] |
text-generation
| 2022-03-02T23:29:05Z |
## Reformer Model trained on "Crime and Punishment"
Crime and Punishment is a novel written by Fyodor Dostoevsky and was translated into English.
Crime and Punishment training data was taken from `gs://trax-ml/reformer/crime-and-punishment-2554.txt` and contains
roughly 0.5M tokens.
The ReformerLM model was trained in flax using colab notebook proposed by authors: https://colab.research.google.com/github/google/trax/blob/master/trax/models/reformer/text_generation.ipynb and the weights were converted to Hugging Face's PyTorch ReformerLM model `ReformerModelWithLMHead`.
The model is a language model that operates on small sub-word units. Text can be generated as follows:
```python
model = ReformerModelWithLMHead.from_pretrained("google/reformer-crime-and-punishment")
tok = ReformerTokenizer.from_pretrained("google/reformer-crime-and-punishment")
tok.decode(model.generate(tok.encode("A few months later", return_tensors="pt"), do_sample=True,temperature=0.7, max_length=100)[0])
# gives:'A few months later on was more than anything in the flat.
# “I have already.” “That’s not my notion that he had forgotten him.
# What does that matter? And why do you mean? It’s only another fellow,” he said as he went out, as though he want'
```
|
[
0.04589509218931198,
-0.7485008239746094,
0.19795756042003632,
0.2126506119966507,
0.03573400527238846,
-0.3256365954875946,
-0.17130249738693237,
-0.10656912624835968,
0.355439156293869,
0.2819998562335968,
-0.48715201020240784,
-0.19254104793071747,
-0.3096965551376343,
0.13351523876190186,
-0.3684197962284088,
1.3650859594345093,
-0.09954556822776794,
0.410268634557724,
0.028665008023381233,
0.21811337769031525,
-0.4031834900379181,
-0.4403590261936188,
-0.2810921370983124,
-0.46514642238616943,
0.7188847661018372,
-0.07247400283813477,
0.2218399941921234,
0.5893049240112305,
0.6683194041252136,
0.24600790441036224,
-0.05755603685975075,
-0.3329889178276062,
-0.9077925682067871,
-0.17617306113243103,
-0.11856481432914734,
-0.6289840340614319,
-0.05926277115941048,
0.11371923238039017,
0.4737696051597595,
0.18156908452510834,
-0.06879694759845734,
-0.18345771729946136,
-0.052923284471035004,
0.6160228252410889,
-0.751915693283081,
-0.07030435651540756,
-0.5370681881904602,
-0.019206620752811432,
-0.2950802445411682,
0.011765914969146252,
-0.4482800364494324,
-0.4779120981693268,
-0.33274707198143005,
-0.5490515232086182,
0.3518327474594116,
-0.2914009392261505,
0.9724200963973999,
-0.02800091728568077,
-0.41880911588668823,
-0.49700427055358887,
-0.6108950972557068,
0.8105061054229736,
-0.4629490375518799,
0.06098128482699394,
0.36505064368247986,
0.22436882555484772,
-0.356903076171875,
-1.0710402727127075,
-0.7245697975158691,
-0.43154674768447876,
-0.26168668270111084,
-0.021411336958408356,
0.16208010911941528,
0.01060253381729126,
0.3980104923248291,
0.4046867787837982,
-0.49050265550613403,
-0.17414376139640808,
-0.7274577617645264,
-0.42978814244270325,
0.8108369708061218,
0.5091989040374756,
0.0628242939710617,
-0.37972748279571533,
-0.7360846400260925,
-0.2662907540798187,
-0.5456822514533997,
0.31590065360069275,
0.7377476096153259,
0.34314078092575073,
-0.21353892982006073,
0.499293714761734,
-0.03902262821793556,
0.19928230345249176,
-0.4043606221675873,
-0.3148820996284485,
0.3091300129890442,
-0.3950096368789673,
-0.12186147272586823,
0.20362845063209534,
1.1329233646392822,
0.346993088722229,
0.2917795181274414,
-0.2724093198776245,
-0.36735162138938904,
0.14958703517913818,
0.7702966928482056,
-0.8911627531051636,
-0.4802602529525757,
0.16087110340595245,
-0.21971455216407776,
-0.5505321025848389,
0.05320056900382042,
-0.5728996396064758,
-0.4159638583660126,
0.07821501791477203,
0.7794896364212036,
-0.6291843056678772,
-0.07646995782852173,
0.17658792436122894,
-0.47953563928604126,
0.12256572395563126,
0.3395353853702545,
-0.9490689039230347,
0.003427256364375353,
0.6565043330192566,
0.9419814944267273,
0.23056025803089142,
-0.5214530825614929,
-0.3544895052909851,
-0.018030036240816116,
-0.4101751744747162,
0.5666326880455017,
-0.23785679042339325,
-0.09920292347669601,
0.19884784519672394,
0.19970302283763885,
-0.07992738485336304,
0.06452318280935287,
0.43473556637763977,
-0.37874606251716614,
0.09391805529594421,
-0.17675957083702087,
-0.3719210922718048,
-0.10077779740095139,
0.15085554122924805,
-0.511342465877533,
0.7065490484237671,
0.11985423415899277,
-0.7502309679985046,
0.39487385749816895,
-0.47714608907699585,
-0.39469024538993835,
0.05939723923802376,
0.04777112975716591,
-0.6120731234550476,
-0.01811845228075981,
-0.13679291307926178,
0.2468886822462082,
0.02140260860323906,
0.3827606439590454,
-0.5241204500198364,
-0.3712664246559143,
0.4404396116733551,
-0.23130933940410614,
1.0892130136489868,
0.3607195317745209,
0.028737928718328476,
-0.1286294013261795,
-0.43337562680244446,
-0.2880793511867523,
0.27032890915870667,
-0.4671597480773926,
-0.12735924124717712,
-0.24580693244934082,
0.4815324544906616,
-0.1999090164899826,
0.3887515366077423,
-0.8600804209709167,
0.7121239900588989,
-0.22461937367916107,
0.5787301063537598,
0.5983061790466309,
-0.009434774518013,
0.18634392321109772,
-0.604995608329773,
0.5033717155456543,
-0.2949678301811218,
0.018829312175512314,
-0.20983196794986725,
-0.12044059485197067,
-0.6751376390457153,
-0.3525514304637909,
0.2341623157262802,
0.7382476329803467,
-0.5068676471710205,
0.17937777936458588,
-0.14825020730495453,
-0.5460505485534668,
-0.17727364599704742,
-0.19425155222415924,
0.5201822519302368,
0.3354814946651459,
0.5178210139274597,
-0.05377243086695671,
-0.743781566619873,
-0.5888367295265198,
-0.5721063613891602,
-0.17374014854431152,
0.11001840233802795,
-0.2544216811656952,
1.1283140182495117,
-0.01539532095193863,
0.7483763694763184,
-0.6208571791648865,
-0.5622687339782715,
-0.30278879404067993,
0.08460429310798645,
0.12734542787075043,
0.6614401936531067,
0.45776432752609253,
-0.6459668874740601,
-0.26142221689224243,
-0.3007081151008606,
-0.5897948145866394,
0.20701153576374054,
-0.30021747946739197,
-0.07937808334827423,
-0.2512950003147125,
0.41813650727272034,
-0.24890011548995972,
0.7008388638496399,
-0.09241503477096558,
-0.27687743306159973,
0.8797992467880249,
-0.1463189423084259,
-0.09367766976356506,
-1.2924339771270752,
0.04284299910068512,
-0.11337849497795105,
-0.22121304273605347,
-0.9156805276870728,
0.19915984570980072,
0.1364651471376419,
0.11640094220638275,
-0.7252891063690186,
0.6191935539245605,
-0.13795903325080872,
0.5690807700157166,
-0.009540769271552563,
-0.227975994348526,
-0.07762546092271805,
0.48463645577430725,
0.0490078367292881,
0.593380331993103,
0.28640472888946533,
-0.46472954750061035,
0.7038034200668335,
0.4567401111125946,
-0.47769737243652344,
0.4701865315437317,
-0.44936662912368774,
0.06054414436221123,
0.049627482891082764,
0.047442302107810974,
-0.8769891262054443,
-0.42538872361183167,
0.20134437084197998,
-0.3266773223876953,
0.20241490006446838,
-0.24769389629364014,
-0.3460678160190582,
-0.34020718932151794,
-0.38538190722465515,
0.20962472259998322,
0.27843332290649414,
-0.16538646817207336,
0.11731602251529694,
0.29692503809928894,
0.18510587513446808,
-0.8613166809082031,
-0.8722140789031982,
0.23367679119110107,
-0.31558266282081604,
-0.24989445507526398,
0.2693692445755005,
-0.034792203456163406,
-0.14290514588356018,
-0.21498887240886688,
0.052922993898391724,
-0.34573960304260254,
0.07095302641391754,
0.01720687560737133,
-0.0013973305467516184,
-0.089171402156353,
0.2812003791332245,
-0.0342167466878891,
0.21906723082065582,
-0.017542347311973572,
0.11984098702669144,
0.8031934499740601,
-0.31470194458961487,
0.2942671477794647,
-0.6094425320625305,
0.060190483927726746,
0.17717930674552917,
0.17678017914295197,
0.8079870939254761,
0.635209321975708,
-0.1935180425643921,
-0.039635173976421356,
-0.28682276606559753,
-0.2449629157781601,
-0.4493917226791382,
0.5019752979278564,
-0.5164927244186401,
-0.6803116798400879,
0.5904870629310608,
0.3736132085323334,
0.043657299131155014,
0.2518635392189026,
0.7673998475074768,
-0.18227073550224304,
0.348328560590744,
0.5011342167854309,
-0.038174521178007126,
0.7116247415542603,
-0.7196173071861267,
0.08437751233577728,
-0.874600350856781,
-0.4852907657623291,
-0.6378865838050842,
-0.5041260719299316,
-0.541140615940094,
-0.06284268200397491,
0.4424193799495697,
0.3651895225048065,
-0.3487646281719208,
0.6931791305541992,
-0.4625891149044037,
0.4554288685321808,
0.41517338156700134,
0.1809154599905014,
0.1741413176059723,
0.05385800078511238,
0.05601169914007187,
-0.0721808671951294,
-0.37629783153533936,
-0.6115120053291321,
1.2379552125930786,
0.2768394649028778,
1.007745385169983,
0.14244529604911804,
0.8699614405632019,
0.2309141904115677,
0.27118241786956787,
-0.8142913579940796,
0.3201328217983246,
0.058925811201334,
-0.9646828174591064,
-0.30709108710289,
-0.46896296739578247,
-1.257429599761963,
0.21073809266090393,
0.06697241216897964,
-0.9685834050178528,
0.3003584146499634,
0.02739671804010868,
-0.3546385169029236,
0.2965821623802185,
-0.4568607211112976,
1.0749205350875854,
-0.04255075752735138,
-0.33050110936164856,
-0.2552178204059601,
-0.5771167278289795,
0.41650649905204773,
0.1839674711227417,
0.09035533666610718,
0.10129079967737198,
0.014095243997871876,
1.1106901168823242,
-0.7704386115074158,
0.8316031694412231,
-0.10202494263648987,
-0.010852411389350891,
0.028594162315130234,
0.16731908917427063,
0.3932638466358185,
0.2209065705537796,
-0.02151740901172161,
0.21659433841705322,
0.45073962211608887,
-0.43522435426712036,
-0.30623897910118103,
0.4680899679660797,
-0.7406697869300842,
-0.35025492310523987,
-0.6907476782798767,
-0.8072391152381897,
0.3777522146701813,
0.39195001125335693,
0.5829684138298035,
0.7695637941360474,
-0.3904608190059662,
0.4127817749977112,
0.31375452876091003,
0.05947640538215637,
0.6806237101554871,
0.4216671288013458,
-0.3109143078327179,
-0.6376296281814575,
0.6317147612571716,
0.26345205307006836,
-0.0014135943492874503,
0.5429928302764893,
0.33047959208488464,
-0.1648201197385788,
-0.2651536166667938,
-0.3675783574581146,
0.4282832443714142,
-0.37060481309890747,
-0.18791498243808746,
-0.8464606404304504,
-0.04650484398007393,
-0.8916095495223999,
-0.3528248071670532,
-0.35227665305137634,
-0.2952480912208557,
-0.42095187306404114,
0.17841818928718567,
0.4404737055301666,
0.6131109595298767,
-0.25271347165107727,
0.6597909331321716,
-0.33787569403648376,
0.30135735869407654,
-0.004942196886986494,
0.0027300543151795864,
-0.1495414525270462,
-0.7580649852752686,
-0.5271510481834412,
0.18695873022079468,
-0.599458634853363,
-1.0434179306030273,
0.5818814039230347,
-0.017595430836081505,
0.12052085995674133,
0.5686432123184204,
0.43201035261154175,
0.6504454612731934,
-0.4658316969871521,
0.7903521656990051,
0.29693475365638733,
-0.6384267210960388,
0.44494420289993286,
-0.2649739980697632,
-0.09538379311561584,
0.47703278064727783,
0.3689132332801819,
-0.8029965162277222,
-0.5346828103065491,
-0.5829243659973145,
-0.577471911907196,
1.1159882545471191,
0.10644896328449249,
0.7228875756263733,
0.13870935142040253,
0.2029326856136322,
0.2503725290298462,
0.5043869018554688,
-1.2834062576293945,
-0.1126079261302948,
-0.422843337059021,
-0.10316300392150879,
-0.07287721335887909,
-0.1306324154138565,
-0.35590529441833496,
-0.4113447368144989,
0.5524897575378418,
0.07287726551294327,
0.5647673606872559,
0.18092089891433716,
-0.2874477803707123,
0.14766696095466614,
0.11200105398893356,
0.724372386932373,
0.6717855930328369,
-0.3182714581489563,
-0.2874618172645569,
0.0044053224846720695,
-0.8840551376342773,
0.2579960525035858,
-0.23272500932216644,
-0.2565927505493164,
-0.15437307953834534,
0.7918417453765869,
1.298587441444397,
-0.5149277448654175,
-0.3219853341579437,
0.8059715032577515,
0.03442488610744476,
-0.4025000035762787,
-0.8858437538146973,
0.4239806830883026,
-0.36380550265312195,
0.31112346053123474,
0.35174885392189026,
-0.015714948996901512,
-0.08220286667346954,
-0.6937443017959595,
0.13307572901248932,
0.39764344692230225,
-0.5366736650466919,
-0.35337138175964355,
0.6063365340232849,
-0.23007605969905853,
-0.5585256814956665,
0.7151599526405334,
-0.3025882840156555,
-0.6479470729827881,
0.5373279452323914,
0.5426797866821289,
0.8760814666748047,
-0.11672741919755936,
0.4265410602092743,
0.5122979283332825,
0.5144472718238831,
-0.14439836144447327,
0.48155391216278076,
-0.24032853543758392,
-0.8197528719902039,
-0.07416315376758575,
-0.9912946820259094,
0.15996430814266205,
0.681797981262207,
-0.7571302652359009,
0.1762232929468155,
-0.35648733377456665,
-0.15292511880397797,
-0.4278438687324524,
0.1510038673877716,
-0.2891613245010376,
0.17383727431297302,
-0.3568369448184967,
1.052951455116272,
-1.1038148403167725,
1.0379114151000977,
0.6084580421447754,
-0.671980082988739,
-0.9962430596351624,
0.2280939668416977,
-0.32579711079597473,
-0.6778016090393066,
0.8473819494247437,
0.31233206391334534,
0.38278281688690186,
0.06334324181079865,
-0.5710285305976868,
-0.4232264459133148,
0.7097775936126709,
0.31238555908203125,
-0.2714492082595825,
-0.2728964388370514,
0.07568325847387314,
0.7058916091918945,
-0.2675049304962158,
0.2003553807735443,
0.4129096269607544,
0.36522695422172546,
0.045655567198991776,
-0.7248543500900269,
-0.1387166976928711,
-0.21074138581752777,
0.09987431764602661,
0.3839321434497833,
-0.6720594763755798,
1.2507134675979614,
-0.3714086413383484,
-0.02366286888718605,
0.3490641713142395,
0.526093602180481,
-0.4226618707180023,
0.3958379328250885,
0.22935448586940765,
0.924985945224762,
0.5620090365409851,
-0.26410406827926636,
1.005386233329773,
0.12886963784694672,
0.7747947573661804,
0.6686983108520508,
0.07894395291805267,
0.6281139850616455,
0.6290876269340515,
-0.35134968161582947,
0.9112462401390076,
0.5825942158699036,
-0.2990449368953705,
1.0940911769866943,
0.23849236965179443,
0.015873929485678673,
0.0009021765436045825,
0.0995369404554367,
-0.338162899017334,
0.4249143898487091,
0.15059234201908112,
-0.2486874759197235,
-0.17055140435695648,
0.4935183525085449,
0.30939555168151855,
-0.12068028002977371,
-0.47697362303733826,
0.783489465713501,
0.10674256831407547,
-0.40761011838912964,
0.9218308329582214,
-0.016095418483018875,
0.371791273355484,
-0.5750352740287781,
0.2217017561197281,
-0.29343023896217346,
0.4786260724067688,
-0.010246534831821918,
-0.5527234673500061,
0.24673540890216827,
0.016468731686472893,
-0.15561744570732117,
-0.4058854281902313,
0.11529567837715149,
-0.5759996771812439,
-0.5047326683998108,
-0.1526450216770172,
-0.2506802976131439,
0.5461201667785645,
0.15674789249897003,
-0.6527479290962219,
-0.07553774118423462,
0.0895402804017067,
-0.5863884091377258,
0.24578453600406647,
0.2790607511997223,
0.06415501236915588,
0.6514285802841187,
0.6248779296875,
0.487886518239975,
-0.021766027435660362,
-0.357005774974823,
0.6847212910652161,
-0.5017111897468567,
-0.7268716096878052,
-0.9302678108215332,
0.543724536895752,
-0.03200596570968628,
-0.5711355805397034,
0.5346325635910034,
0.7596028447151184,
1.0684006214141846,
-0.2417473942041397,
0.5374911427497864,
-0.48594558238983154,
0.3887917399406433,
-0.7279736399650574,
0.8221545815467834,
-0.9118947386741638,
-0.129694864153862,
-0.12920677661895752,
-0.5824398994445801,
-0.02012678235769272,
0.8788816332817078,
-0.6833806037902832,
-0.04529928043484688,
1.0641955137252808,
1.183393955230713,
0.0694846585392952,
-0.20561739802360535,
0.20394150912761688,
0.2910098433494568,
0.32862913608551025,
0.5276070833206177,
0.6087172627449036,
-0.8332765698432922,
0.6886398792266846,
-0.38650766015052795,
0.1286444067955017,
-0.6303252577781677,
-0.5926094055175781,
-0.9083837270736694,
-0.8070830702781677,
0.03519439324736595,
-0.8033605813980103,
0.04855891317129135,
0.6615062952041626,
0.3449874222278595,
-0.952430009841919,
-0.6165493726730347,
-0.2577337324619293,
-0.002035212004557252,
-0.3620615601539612,
-0.2077181041240692,
0.40983280539512634,
-0.5000694394111633,
-0.7037903666496277,
0.2772620916366577,
-0.16536615788936615,
-0.10445595532655716,
-0.3397892117500305,
-0.0889471098780632,
-0.23079703748226166,
-0.08032525330781937,
-0.02215980365872383,
-0.03395458310842514,
-0.572005033493042,
-0.11056366562843323,
-0.22330379486083984,
-0.5645028352737427,
0.15654326975345612,
0.9585080146789551,
-0.601814866065979,
0.4578615725040436,
0.7154669165611267,
0.24408534169197083,
0.580492377281189,
-0.19151414930820465,
0.5554259419441223,
-0.6062799096107483,
0.41989487409591675,
0.38211068511009216,
0.4384993314743042,
0.14739792048931122,
-0.5261834859848022,
0.40466436743736267,
0.6901021003723145,
-0.5600460767745972,
-1.259745478630066,
0.4243856966495514,
-0.5197963118553162,
-0.43315309286117554,
0.9335346221923828,
-0.195066899061203,
-0.4944764971733093,
-0.022736521437764168,
-0.1893685758113861,
0.5412508249282837,
-0.506627082824707,
0.9998915195465088,
0.7210796475410461,
0.19629715383052826,
-0.013889445923268795,
-0.5228390097618103,
0.5478224158287048,
0.2745005786418915,
-0.3186017572879791,
0.12502151727676392,
0.4319678843021393,
0.25269854068756104,
0.32796335220336914,
0.414981871843338,
0.1813957691192627,
0.3943614065647125,
0.1817953735589981,
0.4327445924282074,
-0.3649025857448578,
-0.3896814286708832,
-0.2950660288333893,
0.21851332485675812,
-0.6332170367240906,
-0.12973974645137787
] |
lvwerra/gpt2-imdb
|
lvwerra
| 2021-05-23T08:38:34Z | 7,889 | 13 |
transformers
|
[
"transformers",
"pytorch",
"jax",
"gpt2",
"text-generation",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] |
text-generation
| 2022-03-02T23:29:05Z |
# GPT2-IMDB
## What is it?
A GPT2 (`gpt2`) language model fine-tuned on the [IMDB dataset](https://www.kaggle.com/lakshmi25npathi/imdb-dataset-of-50k-movie-reviews).
## Training setting
The GPT2 language model was fine-tuned for 1 epoch on the IMDB dataset. All comments were joined into a single text file separated by the EOS token:
```
import pandas as pd
df = pd.read_csv("imdb-dataset.csv")
imdb_str = " <|endoftext|> ".join(df['review'].tolist())
with open ('imdb.txt', 'w') as f:
f.write(imdb_str)
```
To train the model the `run_language_modeling.py` script in the `transformer` library was used:
```
python run_language_modeling.py
--train_data_file imdb.txt
--output_dir gpt2-imdb
--model_type gpt2
--model_name_or_path gpt2
```
|
[
-0.270330548286438,
-0.6680194139480591,
0.047275807708501816,
-0.01725880242884159,
-0.5353928804397583,
-0.11694330722093582,
-0.16519244015216827,
-0.061440203338861465,
-0.1188005730509758,
0.5161772966384888,
-0.718632698059082,
-0.17040300369262695,
-0.7499437928199768,
0.10977652668952942,
-0.4838300943374634,
1.7131372690200806,
-0.1877554953098297,
0.2759972810745239,
0.1666995882987976,
0.11724281311035156,
0.04974772036075592,
-0.3642358183860779,
-0.6788352727890015,
-0.2531789541244507,
-0.16491097211837769,
0.21156318485736847,
0.7807040810585022,
0.48391279578208923,
0.3139842450618744,
0.16571038961410522,
0.054069798439741135,
-0.04699982702732086,
-0.6202201843261719,
-0.14138872921466827,
-0.18549391627311707,
-0.4646338224411011,
-0.20284830033779144,
0.10633159428834915,
0.7826058864593506,
0.2644537389278412,
-0.21082179248332977,
0.3971572816371918,
-0.017199698835611343,
0.5587784647941589,
-0.08886109292507172,
0.4927450716495514,
-0.46089738607406616,
0.1264670491218567,
-0.016787298023700714,
0.16791588068008423,
-0.09674332290887833,
-0.20823509991168976,
0.154707133769989,
-0.5027317404747009,
0.5332869291305542,
0.05172692984342575,
1.2519605159759521,
0.33341193199157715,
-0.29584261775016785,
-0.0949719026684761,
-0.7069255113601685,
0.5643097758293152,
-0.7011018395423889,
0.06620616465806961,
0.4161440432071686,
0.21873147785663605,
0.15922904014587402,
-0.6637983322143555,
-0.8540915250778198,
-0.24809667468070984,
-0.010274584405124187,
-0.09646496176719666,
-0.07344578206539154,
-0.061143048107624054,
0.4750242233276367,
0.3988364636898041,
-0.6837165355682373,
0.03323253616690636,
-0.8100786209106445,
-0.41116636991500854,
0.20036140084266663,
0.10902106761932373,
0.006059844978153706,
-0.11924392729997635,
-0.36300939321517944,
-0.27252233028411865,
-0.5245720744132996,
0.019052250310778618,
0.5329463481903076,
0.022899487987160683,
-0.3217746317386627,
0.860668420791626,
-0.326578825712204,
0.34924083948135376,
-0.03716875985264778,
-0.036984775215387344,
0.39853528141975403,
-0.337413489818573,
-0.20142897963523865,
-0.03088567964732647,
0.8481937050819397,
0.7965845465660095,
0.5452483892440796,
0.030253887176513672,
-0.3176053762435913,
0.13733744621276855,
0.2138586789369583,
-1.014357566833496,
-0.46469593048095703,
0.3205120265483856,
-0.25141069293022156,
-0.3269555866718292,
0.1206909716129303,
-0.6772376894950867,
-0.11861136555671692,
-0.26680052280426025,
0.5600509643554688,
-0.35219770669937134,
-0.5411109328269958,
-0.4023769795894623,
-0.20187805593013763,
0.5418513417243958,
0.08362320810556412,
-1.2389252185821533,
0.2656456530094147,
0.6134936809539795,
0.94577556848526,
0.17012739181518555,
-0.5045907497406006,
-0.23515838384628296,
0.21798941493034363,
-0.19094014167785645,
0.8313869833946228,
-0.2688886523246765,
-0.3723946809768677,
-0.04938249662518501,
0.41396453976631165,
-0.09860716015100479,
-0.4835297763347626,
0.5105854868888855,
-0.30132997035980225,
0.5345048904418945,
0.08414147794246674,
-0.30392730236053467,
-0.23450329899787903,
0.374992311000824,
-0.6475852131843567,
1.247268557548523,
0.7186014652252197,
-0.6384102702140808,
0.4464639127254486,
-0.6328988671302795,
-0.29986703395843506,
-0.21535968780517578,
-0.0996558889746666,
-0.7647340297698975,
0.00114309205673635,
0.2936795651912689,
0.09334266185760498,
-0.4052589237689972,
0.49059051275253296,
-0.10109028965234756,
-0.4593088924884796,
0.107305608689785,
-0.3604973554611206,
0.42521560192108154,
0.43423616886138916,
-0.4139222502708435,
-0.057718224823474884,
-0.6555044651031494,
0.0006894138059578836,
0.20087911188602448,
-0.5554627180099487,
0.2881087064743042,
-0.12536782026290894,
0.5048878192901611,
0.36857375502586365,
0.23208999633789062,
-0.5503930449485779,
0.37397056818008423,
-0.3529718816280365,
0.5361655950546265,
0.6283042430877686,
-0.18833869695663452,
0.2443857192993164,
-0.21450984477996826,
0.48772743344306946,
0.36243709921836853,
0.13114754855632782,
-0.11483306437730789,
-0.49939993023872375,
-0.7063159942626953,
0.17698216438293457,
0.05144631490111351,
0.7743461728096008,
-0.629486083984375,
0.3156721889972687,
-0.299944669008255,
-0.5059505105018616,
-0.6829692125320435,
-0.07639365643262863,
0.27839910984039307,
0.24868744611740112,
0.273480623960495,
-0.439577579498291,
-0.6192625164985657,
-0.8977030515670776,
-0.361837238073349,
-0.39234766364097595,
-0.09930651634931564,
0.1316361427307129,
0.709441602230072,
-0.49891287088394165,
0.9842641353607178,
-0.4332340657711029,
-0.4460822343826294,
-0.3147011995315552,
0.061501603573560715,
0.6094861626625061,
0.5438175797462463,
0.18994180858135223,
-0.4333137571811676,
-0.6218985319137573,
-0.24830754101276398,
-0.7016575932502747,
0.025661922991275787,
-0.09279369562864304,
0.12872831523418427,
0.24044612050056458,
0.37350472807884216,
-0.5633260607719421,
0.022473696619272232,
0.3815869688987732,
-0.48385870456695557,
0.7299572825431824,
-0.3471638858318329,
0.058195438235998154,
-1.2077844142913818,
-0.07948709279298782,
0.05350055918097496,
0.03841770067811012,
-0.3589733839035034,
-0.19867508113384247,
-0.022780368104577065,
-0.29552289843559265,
-0.27058273553848267,
0.5061914920806885,
-0.3598937392234802,
0.05313710868358612,
-0.18612347543239594,
-0.08407460153102875,
-0.10279632359743118,
0.68185955286026,
0.07688786834478378,
0.849604606628418,
0.9054141640663147,
-0.3790993094444275,
0.567116916179657,
0.4003661572933197,
-0.524235725402832,
0.374564528465271,
-0.6524969935417175,
0.3328186273574829,
-0.13457328081130981,
0.15326590836048126,
-0.9936423897743225,
-0.21909336745738983,
0.29468101263046265,
-0.30702510476112366,
0.47266095876693726,
-0.5419439673423767,
-0.5815924406051636,
-0.2593480348587036,
-0.325627863407135,
0.1415141224861145,
0.5194823145866394,
-0.4432380199432373,
0.34400591254234314,
0.5958576202392578,
-0.2831132709980011,
-0.5456902980804443,
-0.6734665036201477,
0.11171618849039078,
-0.19190984964370728,
-0.4438518285751343,
0.12223406881093979,
0.05810335651040077,
0.01932377927005291,
-0.0938347727060318,
-0.018953965976834297,
-0.23797766864299774,
-0.38628286123275757,
0.21358901262283325,
0.22791780531406403,
-0.1118834838271141,
-0.11290527880191803,
0.21579796075820923,
-0.378799170255661,
0.09235596656799316,
-0.2186940610408783,
0.5186865329742432,
-0.2909853160381317,
0.12826472520828247,
-0.265329509973526,
0.11591005325317383,
0.46880367398262024,
0.08420781046152115,
0.9115310311317444,
1.0195178985595703,
-0.1234058141708374,
-0.19066351652145386,
-0.3196144104003906,
-0.22978144884109497,
-0.4082699120044708,
1.0238467454910278,
-0.39967870712280273,
-0.9053456783294678,
0.2742551565170288,
-0.1742275357246399,
-0.17081928253173828,
0.7922180891036987,
0.6879854798316956,
0.006885424256324768,
0.8536665439605713,
0.6122345924377441,
-0.24626022577285767,
0.5489252805709839,
-0.5497294068336487,
0.22764383256435394,
-0.9930115938186646,
-0.2615688145160675,
-0.3983117938041687,
0.11036472022533417,
-0.6883811950683594,
-0.258862167596817,
0.3332652747631073,
0.3712475895881653,
-0.5179553627967834,
0.5562807321548462,
-0.5114245414733887,
0.5612266063690186,
0.33242592215538025,
-0.07048869132995605,
0.10654345154762268,
0.4093233346939087,
-0.3479660451412201,
0.1330973356962204,
-0.3162745237350464,
-0.8405754566192627,
1.3922945261001587,
0.5489094257354736,
1.0068773031234741,
0.19699962437152863,
0.2802298367023468,
0.16319452226161957,
0.18008050322532654,
-0.5068550109863281,
0.30465400218963623,
-0.16221748292446136,
-0.8154786825180054,
-0.4222980737686157,
-0.13520020246505737,
-0.4881456196308136,
0.14462155103683472,
0.18771937489509583,
-0.7593882083892822,
-0.06051697954535484,
-0.03296142816543579,
-0.025193974375724792,
0.28820985555648804,
-0.8881744742393494,
1.0818560123443604,
-0.06439926475286484,
-0.35520461201667786,
-0.2851773500442505,
-0.7200513482093811,
0.17344459891319275,
-0.21879617869853973,
0.1360776424407959,
-0.09419973194599152,
0.07206934690475464,
0.9211402535438538,
-0.556267499923706,
0.7121241688728333,
-0.26673200726509094,
0.12376721948385239,
0.46518442034721375,
0.06377223134040833,
0.7449515461921692,
0.16821376979351044,
-0.12723854184150696,
0.48160213232040405,
0.2547367811203003,
-0.07789482176303864,
-0.03982158005237579,
0.7113983631134033,
-1.1564621925354004,
-0.27019038796424866,
-0.6796239614486694,
-0.3964918553829193,
0.17001523077487946,
0.18585512042045593,
0.4321286380290985,
0.4454735219478607,
-0.276733934879303,
-0.01595287211239338,
0.30904823541641235,
-0.16692665219306946,
0.5444686412811279,
0.5853914022445679,
-0.23363463580608368,
-0.6184977293014526,
0.7147887349128723,
0.23015478253364563,
0.21324382722377777,
0.25509631633758545,
-0.1366054266691208,
-0.7538735270500183,
-0.28212201595306396,
-0.7737128734588623,
0.3902968764305115,
-0.855034589767456,
0.23863625526428223,
-0.6536860466003418,
-0.23382118344306946,
-0.4366688132286072,
0.5648689270019531,
-0.27283644676208496,
-0.5077850818634033,
-0.22166946530342102,
-0.3176041841506958,
0.5366538166999817,
0.7637854218482971,
-0.11149898916482925,
0.5485361218452454,
-0.6505135297775269,
0.30928167700767517,
0.12753713130950928,
0.7911158800125122,
-0.3885594606399536,
-0.972274124622345,
-0.7334586977958679,
-0.07554377615451813,
-0.49284976720809937,
-0.7474348545074463,
0.585316002368927,
0.5296911001205444,
0.4725404381752014,
0.1668199896812439,
-0.26954618096351624,
0.2224246710538864,
-0.46103307604789734,
1.019753098487854,
-0.1161520779132843,
-0.6387250423431396,
0.5625300407409668,
-0.3244037926197052,
0.2503712475299835,
0.4205324947834015,
0.3016074001789093,
-0.4878154397010803,
-0.14324893057346344,
-0.5619040131568909,
-0.8330756425857544,
1.1251710653305054,
0.3470141589641571,
0.17083340883255005,
0.029743611812591553,
0.1014370396733284,
0.1538713276386261,
0.3824315667152405,
-1.0900028944015503,
-0.2204456627368927,
-0.528468132019043,
-0.0001554044138174504,
-0.3214688301086426,
-0.3306080102920532,
-0.2015237808227539,
-0.37838730216026306,
1.0623877048492432,
-0.22936058044433594,
0.4960425794124603,
0.17620304226875305,
-0.2694700062274933,
-0.42360720038414,
0.26673534512519836,
0.4218688905239105,
0.48632293939590454,
-0.5857070088386536,
-0.08651790022850037,
-0.0051759458146989346,
-0.7453699111938477,
0.009647324681282043,
0.1801174283027649,
-0.1129731833934784,
0.21880561113357544,
0.054117362946271896,
1.2320380210876465,
-0.3610254228115082,
-0.4324180483818054,
0.3412040174007416,
-0.14160360395908356,
-0.031031109392642975,
-0.6190205812454224,
0.01134130172431469,
0.010432522743940353,
0.10237712413072586,
0.434722363948822,
0.1677234172821045,
-0.13632729649543762,
-0.6751539707183838,
0.24529807269573212,
0.3241949677467346,
-0.5184773802757263,
-0.23811404407024384,
0.8468828201293945,
-0.09994860738515854,
-0.23829174041748047,
1.077694058418274,
-0.14756383001804352,
-0.4743107557296753,
0.6660599112510681,
0.5872288346290588,
1.2111315727233887,
-0.04117906838655472,
0.09361620247364044,
0.7966046333312988,
0.6553396582603455,
-0.24679017066955566,
0.29404327273368835,
0.007173737045377493,
-0.8538582921028137,
-0.2409956157207489,
-1.0595074892044067,
-0.543607771396637,
0.24206458032131195,
-0.37050214409828186,
0.47701066732406616,
-0.35237258672714233,
-0.08426030725240707,
-0.285173624753952,
-0.11437524855136871,
-0.5240336656570435,
0.41351231932640076,
-0.019258277490735054,
0.6198484897613525,
-1.0880539417266846,
1.3200119733810425,
0.46700313687324524,
-0.7439656853675842,
-0.9479587078094482,
-0.06252466142177582,
-0.23751497268676758,
-0.6065537929534912,
0.529624342918396,
0.4835700988769531,
0.3961920142173767,
0.38616371154785156,
-0.5220040082931519,
-0.8748853206634521,
1.0294712781906128,
0.17924346029758453,
-0.6208933591842651,
0.14739638566970825,
0.37358900904655457,
0.670536458492279,
-0.42941126227378845,
0.7717346549034119,
0.8312838673591614,
0.3258446156978607,
-0.20637238025665283,
-1.1727322340011597,
-0.17304188013076782,
-0.6054165363311768,
0.003553420305252075,
0.17657072842121124,
-0.5807504057884216,
1.031303882598877,
-0.5519900918006897,
0.051109906286001205,
0.053246840834617615,
0.3743647336959839,
0.2633700370788574,
0.15115121006965637,
0.3975968658924103,
0.712917685508728,
0.37396514415740967,
-0.5120977759361267,
1.1086763143539429,
-0.46347543597221375,
1.0142531394958496,
0.8732973337173462,
-0.11638858914375305,
0.6120110750198364,
0.4462268650531769,
-0.7270537614822388,
0.5560513138771057,
0.9326987862586975,
-0.6580431461334229,
0.826756477355957,
0.08780768513679504,
-0.1368618905544281,
0.1721973866224289,
0.15694621205329895,
-0.5571735501289368,
0.05915546417236328,
0.3019152581691742,
-0.5486670732498169,
-0.21287325024604797,
-0.17399069666862488,
0.08743049204349518,
-0.4665643870830536,
-0.14287787675857544,
0.830061674118042,
0.02366749383509159,
-0.8811401724815369,
0.7094017863273621,
0.1407957822084427,
0.6589587330818176,
-0.7208927273750305,
-0.13649648427963257,
-0.11995884776115417,
0.33821943402290344,
-0.22924773395061493,
-0.8141006231307983,
0.27424192428588867,
0.0698365569114685,
-0.5420030951499939,
0.19052918255329132,
0.22660082578659058,
-0.7368690371513367,
-0.609542191028595,
0.17652088403701782,
0.09782404452562332,
0.6258527636528015,
-0.13941717147827148,
-1.0269124507904053,
-0.22962577641010284,
0.23390667140483856,
-0.45196449756622314,
0.38656413555145264,
0.29205289483070374,
-0.08529780805110931,
0.457192063331604,
0.8697172999382019,
-0.02173539623618126,
-0.003250355599448085,
0.3636564612388611,
0.7820374369621277,
-0.6738146543502808,
-0.8358256220817566,
-0.905339241027832,
0.5570180416107178,
0.11893665790557861,
-0.5577110052108765,
0.533336877822876,
0.9284532070159912,
1.0092313289642334,
-0.6182612180709839,
0.8609894514083862,
-0.39525356888771057,
0.6288549304008484,
-0.3792494535446167,
0.7374963164329529,
-0.12106481939554214,
0.3432672917842865,
-0.27682292461395264,
-1.2409508228302002,
0.14352701604366302,
0.6982076168060303,
-0.25168222188949585,
0.32497459650039673,
0.8823239803314209,
1.3320690393447876,
0.16731387376785278,
-0.06612144410610199,
0.03342132642865181,
0.5274744033813477,
0.4948920011520386,
0.3675948679447174,
0.5966418385505676,
-0.8215463161468506,
0.5706707835197449,
-0.2932562828063965,
-0.17742854356765747,
-0.02307659387588501,
-0.7860276103019714,
-0.6600544452667236,
-0.5027720332145691,
-0.35423216223716736,
-0.6653153896331787,
-0.12118884176015854,
0.8977252244949341,
0.43617579340934753,
-1.0274691581726074,
-0.43477290868759155,
-0.06976106762886047,
-0.18613886833190918,
-0.25730714201927185,
-0.2777026891708374,
0.5825421810150146,
0.04004715755581856,
-0.9170559644699097,
0.23188529908657074,
0.0671779215335846,
0.048492200672626495,
-0.2645966112613678,
-0.27915117144584656,
-0.19085457921028137,
-0.25660789012908936,
0.26062068343162537,
0.05185394734144211,
-0.6499927043914795,
0.032618992030620575,
-0.4942162334918976,
-0.15679185092449188,
0.05929465591907501,
0.34098392724990845,
-0.6793931722640991,
0.6816270351409912,
0.3190838396549225,
0.013612840324640274,
0.8428338766098022,
-0.15136219561100006,
0.6359196305274963,
-0.5939009785652161,
0.1546839028596878,
-0.2577774226665497,
0.5539147853851318,
0.4493633806705475,
-0.5106003284454346,
0.782304048538208,
0.47128215432167053,
-0.7156650424003601,
-0.6630626320838928,
-0.15658773481845856,
-0.9999865293502808,
-0.012329197488725185,
1.2801789045333862,
0.04498337581753731,
-0.015318536199629307,
-0.0905594676733017,
-0.5180833339691162,
0.47193554043769836,
-0.5621116161346436,
0.6436693668365479,
0.782983660697937,
0.08075577765703201,
-0.20963886380195618,
-0.6312676668167114,
0.643281877040863,
0.11557486653327942,
-0.45374053716659546,
-0.15372763574123383,
0.1724642813205719,
0.8078555464744568,
0.052321165800094604,
0.44116413593292236,
-0.2809474766254425,
0.17238576710224152,
0.09922848641872406,
0.16244608163833618,
-0.2846371829509735,
-0.08489145338535309,
-0.5918003916740417,
0.07935991883277893,
-0.006721882149577141,
-0.04021880403161049
] |
stabilityai/stablelm-tuned-alpha-3b
|
stabilityai
| 2023-04-19T12:38:16Z | 7,887 | 109 |
transformers
|
[
"transformers",
"pytorch",
"gpt_neox",
"text-generation",
"causal-lm",
"en",
"dataset:dmayhem93/ChatCombined",
"dataset:tatsu-lab/alpaca",
"dataset:nomic-ai/gpt4all_prompt_generations",
"dataset:Dahoas/full-hh-rlhf",
"dataset:jeffwan/sharegpt_vicuna",
"dataset:HuggingFaceH4/databricks_dolly_15k",
"license:cc-by-nc-sa-4.0",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-04-19T02:10:24Z |
---
language:
- en
tags:
- causal-lm
license:
- cc-by-nc-sa-4.0
datasets:
- dmayhem93/ChatCombined
- tatsu-lab/alpaca
- nomic-ai/gpt4all_prompt_generations
- Dahoas/full-hh-rlhf
- jeffwan/sharegpt_vicuna
- HuggingFaceH4/databricks_dolly_15k
---
# StableLM-Tuned-Alpha
## Model Description
`StableLM-Tuned-Alpha` is a suite of 3B and 7B parameter decoder-only language models built on top of the `StableLM-Base-Alpha` models and further fine-tuned on various chat and instruction-following datasets.
## Usage
Get started chatting with `StableLM-Tuned-Alpha` by using the following code snippet:
```python
from transformers import AutoModelForCausalLM, AutoTokenizer, StoppingCriteria, StoppingCriteriaList
tokenizer = AutoTokenizer.from_pretrained("StabilityAI/stablelm-tuned-alpha-7b")
model = AutoModelForCausalLM.from_pretrained("StabilityAI/stablelm-tuned-alpha-7b")
model.half().cuda()
class StopOnTokens(StoppingCriteria):
def __call__(self, input_ids: torch.LongTensor, scores: torch.FloatTensor, **kwargs) -> bool:
stop_ids = [50278, 50279, 50277, 1, 0]
for stop_id in stop_ids:
if input_ids[0][-1] == stop_id:
return True
return False
system_prompt = """<|SYSTEM|># StableLM Tuned (Alpha version)
- StableLM is a helpful and harmless open-source AI language model developed by StabilityAI.
- StableLM is excited to be able to help the user, but will refuse to do anything that could be considered harmful to the user.
- StableLM is more than just an information source, StableLM is also able to write poetry, short stories, and make jokes.
- StableLM will refuse to participate in anything that could harm a human.
"""
prompt = f"{system_prompt}<|USER|>What's your mood today?<|ASSISTANT|>"
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
tokens = model.generate(
**inputs,
max_new_tokens=64,
temperature=0.7,
do_sample=True,
stopping_criteria=StoppingCriteriaList([StopOnTokens()])
)
print(tokenizer.decode(tokens[0], skip_special_tokens=True))
```
StableLM Tuned should be used with prompts formatted to `<|SYSTEM|>...<|USER|>...<|ASSISTANT|>...`
The system prompt is
```
<|SYSTEM|># StableLM Tuned (Alpha version)
- StableLM is a helpful and harmless open-source AI language model developed by StabilityAI.
- StableLM is excited to be able to help the user, but will refuse to do anything that could be considered harmful to the user.
- StableLM is more than just an information source, StableLM is also able to write poetry, short stories, and make jokes.
- StableLM will refuse to participate in anything that could harm a human.
```
## Model Details
* **Developed by**: [Stability AI](https://stability.ai/)
* **Model type**: StableLM-Tuned-Alpha models are auto-regressive language models based on the NeoX transformer architecture.
* **Language(s)**: English
* **Library**: [HuggingFace Transformers](https://github.com/huggingface/transformers)
* **License**: Fine-tuned checkpoints (`StableLM-Tuned-Alpha`) are licensed under the Non-Commercial Creative Commons license ([CC BY-NC-SA-4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/)), in-line with the original non-commercial license specified by [Stanford Alpaca](https://github.com/tatsu-lab/stanford_alpaca).
* **Contact**: For questions and comments about the model, please email `[email protected]`
## Training
| Parameters | Hidden Size | Layers | Heads | Sequence Length |
|------------|-------------|--------|-------|-----------------|
| 3B | 4096 | 16 | 32 | 4096 |
| 7B | 6144 | 16 | 48 | 4096 |
### Training Dataset
`StableLM-Tuned-Alpha` models are fine-tuned on a combination of five datasets:
[Alpaca](https://huggingface.co/datasets/tatsu-lab/alpaca), a dataset of 52,000 instructions and demonstrations generated by OpenAI's `text-davinci-003` engine.
[GPT4All Prompt Generations](https://huggingface.co/datasets/nomic-ai/gpt4all_prompt_generations), which consists of 400k prompts and responses generated by GPT-4;
[Anthropic HH](https://huggingface.co/datasets/Dahoas/full-hh-rlhf), made up of preferences about AI assistant helpfulness and harmlessness;
[DataBricks Dolly](https://github.com/databrickslabs/dolly), comprising 15k instruction/responses generated by Databricks employees in capability domains from the InstructGPT paper, including brainstorming, classification, closed QA, generation, information extraction, open QA and summarization;
and [ShareGPT Vicuna (English subset)](https://huggingface.co/datasets/jeffwan/sharegpt_vicuna), a dataset of conversations retrieved from [ShareGPT](https://sharegpt.com/).
### Training Procedure
Models are learned via supervised fine-tuning on the aforementioned datasets, trained in mixed-precision (FP16), and optimized with AdamW. We outline the following hyperparameters:
| Parameters | Batch Size | Learning Rate | Warm-up | Weight Decay | Betas |
|------------|------------|---------------|---------|--------------|-------------|
| 3B | 256 | 2e-5 | 50 | 0.01 | (0.9, 0.99) |
| 7B | 128 | 2e-5 | 100 | 0.01 | (0.9, 0.99) |
## Use and Limitations
### Intended Use
These models are intended to be used by the open-source community chat-like applications in adherence with the [CC BY-NC-SA-4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/) license.
### Limitations and bias
Although the aforementioned datasets help to steer the base language models into "safer" distributions of text, not all biases and toxicity can be mitigated through fine-tuning. We ask that users be mindful of such potential issues that can arise in generated responses. Do not treat model outputs as substitutes for human judgment or as sources of truth. Please use responsibly.
## Acknowledgements
This work would not have been possible without the helpful hand of Dakota Mahan ([@dmayhem93](https://huggingface.co/dmayhem93)).
## Citations
```bibtex
@misc{alpaca,
author = {Rohan Taori and Ishaan Gulrajani and Tianyi Zhang and Yann Dubois and Xuechen Li and Carlos Guestrin and Percy Liang and Tatsunori B. Hashimoto },
title = {Stanford Alpaca: An Instruction-following LLaMA model},
year = {2023},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{https://github.com/tatsu-lab/stanford_alpaca}},
}
```
```bibtext
@misc{vicuna2023,
title = {Vicuna: An Open-Source Chatbot Impressing GPT-4 with 90%* ChatGPT Quality},
url = {https://vicuna.lmsys.org},
author = {Chiang, Wei-Lin and Li, Zhuohan and Lin, Zi and Sheng, Ying and Wu, Zhanghao and Zhang, Hao and Zheng, Lianmin and Zhuang, Siyuan and Zhuang, Yonghao and Gonzalez, Joseph E. and Stoica, Ion and Xing, Eric P.},
month = {March},
year = {2023}
}
```
```bibtex
@misc{gpt4all,
author = {Yuvanesh Anand and Zach Nussbaum and Brandon Duderstadt and Benjamin Schmidt and Andriy Mulyar},
title = {GPT4All: Training an Assistant-style Chatbot with Large Scale Data Distillation from GPT-3.5-Turbo},
year = {2023},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{https://github.com/nomic-ai/gpt4all}},
}
```
|
[
-0.44471055269241333,
-1.0173039436340332,
0.13186076283454895,
0.18007811903953552,
-0.18595761060714722,
-0.10696658492088318,
-0.36594241857528687,
-0.5028385519981384,
0.015920542180538177,
0.21365894377231598,
-0.5188098549842834,
-0.5927144885063171,
-0.536034345626831,
0.05002337694168091,
-0.17625364661216736,
1.2465403079986572,
0.18410103023052216,
-0.23959144949913025,
0.02623334527015686,
-0.23247064650058746,
-0.43486177921295166,
-0.4803556501865387,
-0.8100290894508362,
-0.2351129651069641,
0.4020540416240692,
0.21563638746738434,
0.9033907055854797,
0.8489946126937866,
0.29387444257736206,
0.3180496394634247,
-0.19227957725524902,
0.10899604111909866,
-0.4709087908267975,
-0.014872876927256584,
0.2800784409046173,
-0.2182811200618744,
-0.6131219267845154,
0.14753583073616028,
0.46931689977645874,
0.3548518121242523,
-0.17408080399036407,
0.24483679234981537,
0.12381141632795334,
0.42858174443244934,
-0.3897766172885895,
0.44771575927734375,
-0.5780137777328491,
-0.2845156192779541,
-0.1324034333229065,
0.04204043000936508,
-0.3739461302757263,
-0.37770184874534607,
-0.0836336687207222,
-0.5701785087585449,
0.08589408546686172,
-0.02380158193409443,
1.1790425777435303,
0.3985147476196289,
-0.09466832876205444,
-0.1921459287405014,
-0.5245068669319153,
0.8076214790344238,
-0.9987068176269531,
0.43912529945373535,
0.5506163239479065,
0.1992063969373703,
-0.11361982673406601,
-0.6670134663581848,
-0.7015603184700012,
-0.34495803713798523,
-0.08906178921461105,
0.03912938013672829,
-0.2727661430835724,
0.0395699106156826,
0.32314810156822205,
0.3469599783420563,
-0.5546517968177795,
0.14775563776493073,
-0.3875294327735901,
-0.3324946463108063,
0.5874454975128174,
0.09057717770338058,
0.20412790775299072,
-0.18031717836856842,
-0.16909337043762207,
-0.3425593674182892,
-0.48748648166656494,
0.16982969641685486,
0.40663599967956543,
0.3612577021121979,
-0.5367377996444702,
0.4083541929721832,
-0.15968753397464752,
0.7061794400215149,
0.1779555082321167,
-0.20546182990074158,
0.5391359925270081,
-0.42048749327659607,
-0.20273147523403168,
-0.3055388927459717,
1.2340348958969116,
0.2592243254184723,
0.10434958338737488,
-0.0662573054432869,
-0.07617143541574478,
0.14751458168029785,
-0.009467558935284615,
-0.8449719548225403,
-0.27087143063545227,
0.3037759065628052,
-0.32699066400527954,
-0.4453774690628052,
-0.2779158651828766,
-0.7387073040008545,
-0.09647402167320251,
-0.09735829383134842,
0.2847559452056885,
-0.6026461124420166,
-0.34040847420692444,
0.06887638568878174,
0.0777304619550705,
0.4699594974517822,
0.0022625436540693045,
-0.9849489331245422,
0.21602538228034973,
0.5025630593299866,
0.8226786851882935,
-0.0095067098736763,
-0.4441867768764496,
-0.39527788758277893,
-0.16155095398426056,
-0.18073828518390656,
0.5159484148025513,
-0.49647921323776245,
-0.2233571857213974,
-0.19288060069084167,
0.11228755116462708,
-0.05199192836880684,
-0.26806551218032837,
0.5310837030410767,
-0.33007773756980896,
0.4859533905982971,
-0.07842594385147095,
-0.39122799038887024,
-0.0904257670044899,
0.33176955580711365,
-0.4633473753929138,
1.1845709085464478,
0.14557109773159027,
-0.7118075489997864,
0.2122448831796646,
-0.6669623255729675,
-0.2872615158557892,
-0.14722508192062378,
-0.0920104905962944,
-0.6174715161323547,
-0.46585649251937866,
0.3984518051147461,
0.37251564860343933,
-0.3825017809867859,
0.3865502178668976,
-0.3432657718658447,
-0.18829476833343506,
0.05937226116657257,
-0.5392829775810242,
1.0340451002120972,
0.22477619349956512,
-0.5757217407226562,
0.33941325545310974,
-0.7116530537605286,
0.03979267179965973,
0.2727450430393219,
-0.27878516912460327,
-0.04675760120153427,
-0.2150476723909378,
-0.12938521802425385,
0.2891985774040222,
0.3768061697483063,
-0.3830849826335907,
0.17325113713741302,
-0.48268747329711914,
0.6126904487609863,
0.7075192928314209,
-0.11868202686309814,
0.34074777364730835,
-0.4162437319755554,
0.4632713496685028,
0.017876584082841873,
0.5447968244552612,
-0.18512080609798431,
-0.8433963060379028,
-0.8543272018432617,
-0.3271317780017853,
0.21408966183662415,
0.5899002552032471,
-0.6921113729476929,
0.7308855652809143,
-0.12193566560745239,
-0.6794198155403137,
-0.8077777624130249,
0.12942931056022644,
0.5928720831871033,
0.7560442686080933,
0.5978873372077942,
-0.11690078675746918,
-0.46674811840057373,
-0.8099162578582764,
0.06915581971406937,
-0.43616989254951477,
0.03897801414132118,
0.322624534368515,
0.34947192668914795,
-0.3441525399684906,
0.7402465343475342,
-0.3334689140319824,
-0.1311507523059845,
-0.16159804165363312,
-0.0033630169928073883,
0.2412276715040207,
0.57807457447052,
0.6309678554534912,
-0.5056676268577576,
-0.4914742708206177,
-0.09085284173488617,
-0.7642601728439331,
0.011345080099999905,
0.07875941693782806,
-0.23979422450065613,
0.4816214144229889,
0.355288565158844,
-0.8580535054206848,
0.27585965394973755,
0.6770089864730835,
-0.38431569933891296,
0.47427913546562195,
-0.11926383525133133,
-0.0848582312464714,
-1.2087727785110474,
0.1792532205581665,
0.02845938690006733,
-0.1122838705778122,
-0.6083021759986877,
0.01085774414241314,
-0.018114427104592323,
0.0039464873261749744,
-0.4343404471874237,
0.7101468443870544,
-0.3976631164550781,
0.21125230193138123,
-0.07984621077775955,
0.07289553433656693,
-0.09724575281143188,
0.8799975514411926,
-0.1494131088256836,
0.8014870285987854,
0.7396100163459778,
-0.5520015954971313,
0.22167271375656128,
0.44464758038520813,
-0.04383764788508415,
0.1267198920249939,
-0.8846535086631775,
0.33322057127952576,
0.0825963243842125,
0.22626180946826935,
-0.8380352854728699,
-0.09820742160081863,
0.6041248440742493,
-0.685670793056488,
0.3282311260700226,
-0.14607974886894226,
-0.37186601758003235,
-0.4398239552974701,
-0.3921886682510376,
0.19611559808254242,
0.770846962928772,
-0.3537081182003021,
0.4529610276222229,
0.4055735766887665,
-0.11196538060903549,
-0.7446295022964478,
-0.49121803045272827,
-0.10230220854282379,
-0.2834795117378235,
-0.5806944370269775,
0.11649147421121597,
-0.2811022102832794,
-0.09355340152978897,
-0.04103642702102661,
0.09551339596509933,
0.13108834624290466,
0.07629896700382233,
0.18661336600780487,
0.418346107006073,
-0.13817325234413147,
-0.08886004984378815,
0.013282009400427341,
-0.156047984957695,
-0.043364156037569046,
-0.18562598526477814,
0.779982328414917,
-0.5768990516662598,
-0.09609249234199524,
-0.6272361278533936,
0.10261929780244827,
0.6600409150123596,
-0.23983436822891235,
0.9918404221534729,
0.8207694888114929,
-0.23253843188285828,
0.2606165409088135,
-0.5351830720901489,
-0.3263622522354126,
-0.5220744013786316,
0.25794872641563416,
-0.13182447850704193,
-0.8470414876937866,
0.7623628377914429,
0.49588853120803833,
0.35830041766166687,
0.6668462157249451,
0.7161224484443665,
0.16930080950260162,
1.0822248458862305,
0.5376240611076355,
-0.266012966632843,
0.5338149666786194,
-0.4743521809577942,
0.019612545147538185,
-0.8078124523162842,
-0.2883997857570648,
-0.5857880115509033,
-0.136024609208107,
-0.8066080808639526,
-0.35145148634910583,
0.1294204592704773,
-0.06786000728607178,
-0.6145955920219421,
0.36603325605392456,
-0.6637683510780334,
0.26957759261131287,
0.6373633146286011,
0.06356798857450485,
0.07005379348993301,
-0.21172764897346497,
-0.03444088622927666,
0.11044077575206757,
-0.6828325390815735,
-0.5487574338912964,
1.0977299213409424,
0.5209176540374756,
0.6626589894294739,
-0.009920855052769184,
0.5169777870178223,
0.0923633947968483,
0.2848503887653351,
-0.7079854011535645,
0.5551968812942505,
0.032809779047966,
-0.5761781930923462,
-0.4139993488788605,
-0.5821496844291687,
-1.0840269327163696,
0.031026659533381462,
-0.13457854092121124,
-0.6931660175323486,
0.19018582999706268,
0.1930464804172516,
-0.27505797147750854,
0.20139682292938232,
-0.806827187538147,
0.9797627329826355,
-0.24807411432266235,
-0.2894642651081085,
0.02290399931371212,
-0.9234341979026794,
0.31626543402671814,
0.11595020443201065,
0.12784221768379211,
-0.2321939617395401,
0.03282875195145607,
0.7563464641571045,
-0.4172917306423187,
0.9745417833328247,
-0.22058114409446716,
-0.05511846765875816,
0.2990078032016754,
-0.06346611678600311,
0.5309272408485413,
0.11909212172031403,
-0.20822346210479736,
0.5113691091537476,
-0.05132904276251793,
-0.48485007882118225,
-0.42778685688972473,
0.7392945289611816,
-1.187907338142395,
-0.5835235118865967,
-0.33968597650527954,
-0.6117753386497498,
-0.15039879083633423,
0.3541485071182251,
0.3220609724521637,
0.357820987701416,
0.08918904513120651,
0.15894386172294617,
0.4461269676685333,
-0.37562069296836853,
0.3879484236240387,
0.4380795955657959,
-0.0721052885055542,
-0.5271417498588562,
0.816097617149353,
-0.059501901268959045,
0.306133896112442,
0.05515244975686073,
0.20561367273330688,
-0.370048463344574,
-0.49140021204948425,
-0.564665675163269,
0.425035685300827,
-0.588032603263855,
-0.3566998839378357,
-0.7346466183662415,
-0.3388100564479828,
-0.5504734516143799,
0.10734517872333527,
-0.4436202347278595,
-0.36593732237815857,
-0.4629939794540405,
-0.05454719439148903,
0.634824812412262,
0.3835182189941406,
0.08012198656797409,
0.2588203549385071,
-0.6836252212524414,
0.3461904525756836,
0.20798556506633759,
0.4078878164291382,
-0.07640804350376129,
-0.7088331580162048,
-0.2732045650482178,
0.3698698580265045,
-0.44258418679237366,
-0.6913661956787109,
0.4962960183620453,
0.3590073883533478,
0.6895245313644409,
0.27159273624420166,
0.1433788388967514,
0.644842267036438,
-0.344420462846756,
0.9324228763580322,
0.06233464181423187,
-0.7614192962646484,
0.6211830973625183,
-0.5154253840446472,
0.37449315190315247,
0.5541455745697021,
0.3956320583820343,
-0.3721497356891632,
-0.6800993084907532,
-0.8171335458755493,
-0.8842536807060242,
0.8683129549026489,
0.41790732741355896,
0.29218584299087524,
-0.18069185316562653,
0.4303956627845764,
0.08669296652078629,
0.13346679508686066,
-0.7915240526199341,
-0.5119221806526184,
-0.4223109781742096,
-0.3609260320663452,
0.007499401923269033,
-0.07258206605911255,
-0.13242065906524658,
-0.39842796325683594,
0.8395531177520752,
-0.1675456166267395,
0.5211983919143677,
-0.0264221653342247,
0.0033772087190300226,
-0.059386592358350754,
0.1151428148150444,
0.5639270544052124,
0.46234217286109924,
-0.25946715474128723,
-0.12482760101556778,
0.11453825980424881,
-0.5951642990112305,
0.000019530500139808282,
0.3831535875797272,
-0.2638009786605835,
-0.18949437141418457,
0.2269010692834854,
1.2181059122085571,
-0.061742547899484634,
-0.4842328131198883,
0.345147043466568,
-0.29065725207328796,
-0.17020836472511292,
-0.18061475455760956,
0.24639451503753662,
0.032491475343704224,
0.250949501991272,
0.24866659939289093,
0.06532221287488937,
-0.07630565762519836,
-0.5233216285705566,
0.09900230914354324,
0.348273903131485,
-0.2647168040275574,
-0.49716857075691223,
0.8297843337059021,
0.20108692348003387,
-0.4019809365272522,
0.779349684715271,
-0.24794593453407288,
-0.3564358949661255,
0.6179656386375427,
0.5721352696418762,
0.8364790678024292,
-0.2679528594017029,
0.24115896224975586,
0.559777557849884,
0.4173427224159241,
-0.07785319536924362,
0.2083476483821869,
0.04167361930012703,
-0.80047607421875,
-0.35428386926651,
-0.5932592153549194,
-0.4224051833152771,
0.40398457646369934,
-0.6262829303741455,
0.42182788252830505,
-0.5300026535987854,
-0.2895677089691162,
-0.08957075327634811,
0.06651764363050461,
-0.6324281692504883,
0.009585794061422348,
0.026881281286478043,
0.7873810529708862,
-0.7974173426628113,
0.8821330666542053,
0.6258748173713684,
-0.6298720836639404,
-0.9645691514015198,
-0.010779276490211487,
-0.10095012933015823,
-0.8399895429611206,
0.1315595507621765,
0.22001121938228607,
0.015139119699597359,
0.16815929114818573,
-0.7161313891410828,
-0.8638020753860474,
1.0771123170852661,
0.5614866018295288,
-0.40375325083732605,
-0.10595406591892242,
-0.0626600906252861,
0.7311742901802063,
-0.18205931782722473,
0.44304001331329346,
0.7571673393249512,
0.4061110317707062,
0.04128134995698929,
-1.1323636770248413,
0.20464450120925903,
-0.614808976650238,
-0.11099334806203842,
0.09775477647781372,
-0.979948103427887,
0.8541924953460693,
-0.18391412496566772,
-0.019789624959230423,
-0.004568096715956926,
0.7417177557945251,
0.466937780380249,
0.20084933936595917,
0.463358074426651,
0.5706117749214172,
0.7358978986740112,
-0.13103950023651123,
1.0720136165618896,
-0.5503972172737122,
0.43160441517829895,
0.9178351759910583,
0.08810872584581375,
0.7126304507255554,
0.2337174266576767,
-0.2078743577003479,
0.5763988494873047,
0.6738423109054565,
-0.048018813133239746,
0.4812803566455841,
-0.2892788350582123,
0.06345648318529129,
-0.1170365959405899,
0.06751859933137894,
-0.5336741805076599,
0.3728538155555725,
0.45977798104286194,
-0.21818560361862183,
0.07511994242668152,
0.05609075725078583,
0.3167373239994049,
-0.23378857970237732,
0.0832945853471756,
0.8195033073425293,
0.058162469416856766,
-0.7412087917327881,
1.2708792686462402,
-0.09388425946235657,
0.8200680613517761,
-0.6496120095252991,
0.10367482155561447,
-0.4207071363925934,
0.09175542742013931,
-0.029507573693990707,
-0.6962276101112366,
0.2932901978492737,
0.10032112151384354,
-0.03590436279773712,
-0.11743269860744476,
0.5231999158859253,
-0.3716632127761841,
-0.3846471905708313,
0.2908551096916199,
0.3609693944454193,
0.2393753081560135,
0.2161414623260498,
-1.062380075454712,
0.21324467658996582,
0.04044361412525177,
-0.5192028880119324,
0.24942779541015625,
0.3833640217781067,
-0.052993908524513245,
0.8143301010131836,
0.7363622188568115,
-0.049349650740623474,
-0.030785920098423958,
0.02878420613706112,
1.0698559284210205,
-0.5913205742835999,
-0.4414708614349365,
-0.8285176753997803,
0.5460640788078308,
0.006946250796318054,
-0.45054930448532104,
0.764373779296875,
0.44556689262390137,
0.7751525640487671,
0.15797370672225952,
0.74090975522995,
-0.3078078627586365,
0.34087076783180237,
-0.3435875177383423,
0.726266086101532,
-0.4443923532962799,
0.37641242146492004,
-0.31189143657684326,
-0.8858348727226257,
-0.25734269618988037,
0.6738388538360596,
-0.288406640291214,
0.3629246950149536,
0.4724557101726532,
0.9441425204277039,
0.02122119441628456,
-0.1333160102367401,
0.16451957821846008,
0.3963105082511902,
0.5041049122810364,
0.46852871775627136,
0.5875749588012695,
-0.643818199634552,
0.8054667711257935,
-0.40758100152015686,
-0.2703331410884857,
-0.18230964243412018,
-0.6544886827468872,
-0.9721802473068237,
-0.6442713141441345,
-0.37384656071662903,
-0.525149405002594,
0.06535005569458008,
0.9371338486671448,
0.7006949782371521,
-0.7934009432792664,
-0.12446551769971848,
-0.09102439880371094,
0.0465705469250679,
-0.28769856691360474,
-0.23021237552165985,
0.43132710456848145,
-0.336416631937027,
-0.7867137789726257,
0.25150299072265625,
-0.037583980709314346,
0.1461692750453949,
-0.30932673811912537,
-0.34323835372924805,
-0.2411445826292038,
0.028159087523818016,
0.42782291769981384,
0.45267999172210693,
-0.6705899238586426,
-0.22584381699562073,
0.26750606298446655,
-0.20346717536449432,
0.184482142329216,
0.18162092566490173,
-0.6648754477500916,
0.2591537535190582,
0.3802392780780792,
0.42420944571495056,
0.5312725901603699,
-0.03105352446436882,
0.35102781653404236,
-0.700152575969696,
0.45341089367866516,
0.23692560195922852,
0.27456116676330566,
0.5060739517211914,
-0.39869001507759094,
0.4667567312717438,
0.1349973976612091,
-0.7484596371650696,
-0.8250817656517029,
-0.018974268808960915,
-1.0542625188827515,
0.021362068131566048,
1.4106695652008057,
-0.14244085550308228,
-0.29298847913742065,
-0.1538236141204834,
-0.3096654713153839,
0.5005055665969849,
-0.6631681323051453,
0.8961504697799683,
0.5156903862953186,
-0.11836933344602585,
-0.39599964022636414,
-0.48799261450767517,
0.5929060578346252,
0.29675358533859253,
-0.8743595480918884,
0.04716189578175545,
0.5140779614448547,
0.30830371379852295,
0.16468298435211182,
0.730137825012207,
-0.170262411236763,
0.22373424470424652,
-0.1545007824897766,
0.18206235766410828,
-0.2846352458000183,
-0.11920799314975739,
-0.2758924067020416,
-0.17450092732906342,
0.096750408411026,
-0.2264299988746643
] |
google/electra-base-generator
|
google
| 2021-04-30T07:42:51Z | 7,880 | 4 |
transformers
|
[
"transformers",
"pytorch",
"tf",
"jax",
"rust",
"electra",
"fill-mask",
"en",
"arxiv:1406.2661",
"license:apache-2.0",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] |
fill-mask
| 2022-03-02T23:29:05Z |
---
language: en
thumbnail: https://huggingface.co/front/thumbnails/google.png
license: apache-2.0
---
## ELECTRA: Pre-training Text Encoders as Discriminators Rather Than Generators
**ELECTRA** is a new method for self-supervised language representation learning. It can be used to pre-train transformer networks using relatively little compute. ELECTRA models are trained to distinguish "real" input tokens vs "fake" input tokens generated by another neural network, similar to the discriminator of a [GAN](https://arxiv.org/pdf/1406.2661.pdf). At small scale, ELECTRA achieves strong results even when trained on a single GPU. At large scale, ELECTRA achieves state-of-the-art results on the [SQuAD 2.0](https://rajpurkar.github.io/SQuAD-explorer/) dataset.
For a detailed description and experimental results, please refer to our paper [ELECTRA: Pre-training Text Encoders as Discriminators Rather Than Generators](https://openreview.net/pdf?id=r1xMH1BtvB).
This repository contains code to pre-train ELECTRA, including small ELECTRA models on a single GPU. It also supports fine-tuning ELECTRA on downstream tasks including classification tasks (e.g,. [GLUE](https://gluebenchmark.com/)), QA tasks (e.g., [SQuAD](https://rajpurkar.github.io/SQuAD-explorer/)), and sequence tagging tasks (e.g., [text chunking](https://www.clips.uantwerpen.be/conll2000/chunking/)).
## How to use the generator in `transformers`
```python
from transformers import pipeline
fill_mask = pipeline(
"fill-mask",
model="google/electra-base-generator",
tokenizer="google/electra-base-generator"
)
print(
fill_mask(f"HuggingFace is creating a {fill_mask.tokenizer.mask_token} that the community uses to solve NLP tasks.")
)
```
|
[
-0.512098491191864,
-0.5217766761779785,
0.17805294692516327,
0.1430661976337433,
-0.15316073596477509,
0.41069090366363525,
-0.23568689823150635,
-0.22489599883556366,
0.5033414363861084,
0.5426222681999207,
-0.4900411069393158,
-0.20739330351352692,
-0.45350006222724915,
0.4191279709339142,
-0.6636055707931519,
1.0618499517440796,
-0.16562232375144958,
-0.23142343759536743,
-0.06640730053186417,
0.005937688518315554,
-0.2633919417858124,
-0.7500352263450623,
-0.5010002851486206,
-0.613826334476471,
0.45495525002479553,
0.292641818523407,
0.19983607530593872,
0.25526857376098633,
0.29745906591415405,
0.5315911173820496,
0.1627872735261917,
0.2570425271987915,
-0.34292641282081604,
0.12129589170217514,
0.06725490838289261,
-0.5485997200012207,
-0.25036197900772095,
0.01451113261282444,
0.44381004571914673,
0.15079163014888763,
-0.23735949397087097,
0.13393814861774445,
-0.08143313229084015,
0.7375986576080322,
-0.7545775771141052,
0.09713614732027054,
-0.767960786819458,
0.06998082250356674,
-0.3276330828666687,
-0.0659162774682045,
-0.6650692820549011,
-0.18573367595672607,
-0.07970588654279709,
-0.5956518650054932,
0.46779489517211914,
0.02150017023086548,
1.1616493463516235,
0.38116663694381714,
-0.11954846978187561,
-0.1442212015390396,
-0.8686475157737732,
0.6933454871177673,
-0.42654457688331604,
0.14106020331382751,
0.11541914939880371,
0.3833969533443451,
0.2211231291294098,
-1.0792462825775146,
-0.845167338848114,
0.23237550258636475,
-0.05615723505616188,
0.4259662330150604,
-0.4383988678455353,
0.20279119908809662,
0.2288770228624344,
0.48623448610305786,
-0.38596948981285095,
0.3004547655582428,
-0.5327163338661194,
-0.20914950966835022,
0.5569630265235901,
-0.1447007656097412,
0.29792463779449463,
-0.11174017190933228,
-0.2986519932746887,
-0.3120952844619751,
-0.9103063344955444,
-0.11320750415325165,
0.6114829778671265,
0.2550021708011627,
-0.08951343595981598,
0.4934869408607483,
-0.06270556896924973,
0.4772791266441345,
0.4321427047252655,
0.40872371196746826,
0.5707473158836365,
0.018205897882580757,
-0.3160008490085602,
0.26473215222358704,
1.2026546001434326,
-0.16485445201396942,
0.28129035234451294,
-0.18126395344734192,
-0.23772919178009033,
0.40515631437301636,
0.42806485295295715,
-1.026597023010254,
-0.5245432257652283,
0.0987417995929718,
-0.41442960500717163,
-0.4406173825263977,
-0.08051349222660065,
-0.9342300295829773,
-0.10549675673246384,
0.0028098002076148987,
0.5253721475601196,
-0.22988927364349365,
-0.44017961621284485,
0.038668155670166016,
-0.10313287377357483,
0.2292807549238205,
0.11264520138502121,
-1.152324914932251,
0.4291413128376007,
0.32193058729171753,
0.8052181601524353,
-0.09969790279865265,
-0.3633274435997009,
-0.4556255638599396,
-0.17431019246578217,
0.027251938357949257,
1.2418347597122192,
-0.22373586893081665,
-0.1202664002776146,
0.20367231965065002,
0.050334248691797256,
-0.2943975329399109,
-0.5487983226776123,
0.3245225250720978,
-0.5507265329360962,
0.17276915907859802,
0.08007915318012238,
-0.5341528058052063,
-0.1995011866092682,
-0.29286012053489685,
-0.949109673500061,
1.045630931854248,
0.12206587195396423,
-0.6726499795913696,
0.33704477548599243,
-0.7238049507141113,
-0.42784377932548523,
0.21761739253997803,
-0.042768560349941254,
-0.6076983213424683,
0.03017035499215126,
0.29203128814697266,
0.32287687063217163,
-0.07064268738031387,
0.0069414363242685795,
0.021755792200565338,
-0.24654406309127808,
0.17885315418243408,
-0.18529926240444183,
0.5590053796768188,
0.31407397985458374,
-0.4915689527988434,
0.258919358253479,
-0.6223891377449036,
0.08461326360702515,
0.08260258287191391,
-0.04517490044236183,
0.02820555306971073,
0.26067879796028137,
0.1980617195367813,
0.37443822622299194,
0.21012742817401886,
-0.5829421281814575,
-0.04023800417780876,
-0.6475698351860046,
0.8088034391403198,
0.7946165800094604,
-0.41818585991859436,
0.5506613850593567,
-0.10608328133821487,
0.6601377725601196,
-0.0694582462310791,
-0.20101553201675415,
-0.38547220826148987,
-0.40377697348594666,
-1.1687394380569458,
-0.2089223712682724,
0.34330829977989197,
0.5402927398681641,
-0.9357872009277344,
0.8374727368354797,
-0.04332439601421356,
-0.653181791305542,
-0.6363569498062134,
0.15274666249752045,
0.1713533103466034,
0.21503128111362457,
0.5966456532478333,
-0.07793137431144714,
-1.2027995586395264,
-0.6879859566688538,
-0.08666746318340302,
-0.4170709550380707,
0.13595284521579742,
-0.2269519567489624,
0.724036455154419,
-0.19450625777244568,
1.1048320531845093,
-0.21105694770812988,
-0.3461402356624603,
-0.8736348152160645,
0.13471144437789917,
0.17889751493930817,
0.4375864267349243,
0.3671441972255707,
-0.7149931192398071,
-0.46178731322288513,
-0.021754926070570946,
-0.583996593952179,
-0.05814279615879059,
-0.00457844277843833,
0.22109444439411163,
0.0864650309085846,
0.5505923628807068,
-0.7597253322601318,
0.292911171913147,
0.7834413051605225,
-0.269043892621994,
0.4487951099872589,
-0.29909729957580566,
-0.16984646022319794,
-1.095261573791504,
-0.14636924862861633,
0.002960549434646964,
-0.3438248038291931,
-0.7844286561012268,
-0.05585237964987755,
0.051560625433921814,
-0.09759900718927383,
-0.5873671770095825,
0.3235474228858948,
-0.24967734515666962,
0.191015362739563,
-0.37153443694114685,
-0.06338720768690109,
0.016932545229792595,
0.4544908404350281,
0.1294521689414978,
1.0931986570358276,
0.36222001910209656,
-0.6500557661056519,
0.2654063105583191,
0.30575618147850037,
-0.28749537467956543,
0.27118197083473206,
-0.9328070878982544,
0.44997742772102356,
-0.26731234788894653,
0.3357012867927551,
-0.7759020328521729,
-0.0010426952503621578,
0.15838667750358582,
-0.33372756838798523,
0.2805611491203308,
0.04325248673558235,
-0.695208728313446,
-0.6923565864562988,
-0.197415292263031,
0.3537708520889282,
0.8355854153633118,
-0.8523789644241333,
0.5467022657394409,
0.6259799003601074,
0.25370219349861145,
-0.3140427768230438,
-0.6017430424690247,
-0.04084905982017517,
-0.35139796137809753,
-0.29412341117858887,
0.593136727809906,
0.11222748458385468,
0.1085820272564888,
-0.13663893938064575,
0.07683145254850388,
-0.3629494905471802,
-0.08489318937063217,
0.24345937371253967,
0.2469838410615921,
-0.003813724732026458,
0.25479093194007874,
0.06524037569761276,
-0.3370705842971802,
0.012534701265394688,
-0.12326569855213165,
0.9672576785087585,
-0.48805227875709534,
-0.08013923466205597,
-0.4253964424133301,
0.2286563664674759,
0.17609068751335144,
-0.6439040899276733,
0.7351064682006836,
0.735538899898529,
-0.3068673014640808,
-0.28851163387298584,
-0.6907262802124023,
-0.09561403095722198,
-0.6307171583175659,
0.35154566168785095,
-0.27234354615211487,
-1.0302515029907227,
0.5205272436141968,
-0.06825293600559235,
-0.07810477912425995,
0.9146146178245544,
0.6496977806091309,
-0.25315842032432556,
1.1313997507095337,
0.6454641222953796,
-0.21657656133174896,
0.6412914991378784,
-0.6041813492774963,
0.4280996322631836,
-0.9268676042556763,
-0.2049095779657364,
-0.7099948525428772,
-0.17301346361637115,
-0.5615907907485962,
-0.27409783005714417,
-0.11295119673013687,
0.059502262622117996,
-0.3341783583164215,
0.6989367008209229,
-0.9456848502159119,
0.4810263514518738,
0.23534533381462097,
-0.006278279237449169,
0.037425924092531204,
0.08985289186239243,
0.3524227440357208,
-0.06202331557869911,
-0.8451295495033264,
-0.6374648213386536,
1.062063455581665,
0.19288799166679382,
0.9248777627944946,
-0.3876015841960907,
1.0876896381378174,
0.14545582234859467,
0.3785439133644104,
-0.7205320596694946,
0.5617014169692993,
-0.2174438089132309,
-0.5773612260818481,
-0.0888812392950058,
-0.3859114348888397,
-1.280697226524353,
0.29805973172187805,
-0.03752785548567772,
-0.7594375014305115,
0.23769721388816833,
0.1272895187139511,
-0.31238511204719543,
0.6593317985534668,
-0.9499585032463074,
0.8776277303695679,
0.034236352890729904,
0.1153891459107399,
-0.08817789703607559,
-0.1022600531578064,
-0.1106824204325676,
-0.001636032247915864,
-0.05728680267930031,
0.046411458402872086,
0.16579113900661469,
0.9493748545646667,
-0.5455865859985352,
0.889838457107544,
-0.082480788230896,
0.09645234048366547,
0.5693756341934204,
-0.37946170568466187,
0.5065927505493164,
-0.24924422800540924,
0.034298259764909744,
0.169824481010437,
-0.05836879462003708,
-0.0821480005979538,
-0.35247480869293213,
0.45244571566581726,
-0.9350660443305969,
-0.37599486112594604,
-0.5659900307655334,
-0.18134088814258575,
0.28929761052131653,
0.34623777866363525,
0.8063518404960632,
0.378829687833786,
-0.20138977468013763,
0.1781376302242279,
0.6986756920814514,
-0.09724175184965134,
0.7187466025352478,
0.11165554821491241,
-0.1242692619562149,
-0.2546612620353699,
0.9913873672485352,
0.2067277580499649,
0.02610699087381363,
0.3930794596672058,
-0.03987228497862816,
-0.37142443656921387,
-0.4765610992908478,
-0.30518701672554016,
0.1824425756931305,
-0.6429960131645203,
-0.4950769543647766,
-0.8303239345550537,
-0.5111357569694519,
-0.1904287040233612,
-0.08592239022254944,
-0.639415979385376,
-0.248121440410614,
-0.48293936252593994,
-0.21578940749168396,
0.5020332336425781,
0.6681167483329773,
0.20210154354572296,
0.6275306940078735,
-0.4797579348087311,
0.44676539301872253,
0.4446151554584503,
0.039512619376182556,
-0.253749817609787,
-0.20055018365383148,
-0.275392085313797,
0.04130890592932701,
-0.2795015275478363,
-0.9735048413276672,
0.673491895198822,
0.2721756100654602,
0.445674329996109,
0.17581722140312195,
-0.028288114815950394,
0.6716388463973999,
-0.8057120442390442,
0.6987379193305969,
0.29726454615592957,
-1.0350614786148071,
0.5799238085746765,
0.08183203637599945,
0.15996208786964417,
0.8000804781913757,
-0.07816945016384125,
-0.19303646683692932,
-0.3776128590106964,
-0.728488028049469,
-0.7885285019874573,
0.8004196882247925,
0.49865520000457764,
0.32734909653663635,
-0.19203169643878937,
0.1174352839589119,
0.011974585242569447,
0.3125511407852173,
-0.8786418437957764,
-0.5991895794868469,
-0.5884765386581421,
-0.3662823736667633,
-0.2263270914554596,
-0.2186114639043808,
0.2283189296722412,
-0.415866494178772,
0.6492021679878235,
-0.012244670651853085,
0.6279916167259216,
0.2605116367340088,
-0.4091035723686218,
-0.04236023500561714,
0.2735900580883026,
0.1509651392698288,
0.5113863945007324,
-0.08380360901355743,
0.13889940083026886,
0.2697235345840454,
-0.6317733526229858,
0.3532184660434723,
0.31745994091033936,
-0.34066861867904663,
0.29277992248535156,
0.0069663370959460735,
0.9202654361724854,
-0.07044464349746704,
-0.4348321259021759,
0.3937673568725586,
-0.04278452694416046,
-0.30423250794410706,
-0.6809873580932617,
0.038906265050172806,
-0.20975202322006226,
-0.07329462468624115,
0.30965307354927063,
0.2746497094631195,
0.10887353122234344,
-0.3886210322380066,
0.12292979657649994,
0.23592007160186768,
-0.45952263474464417,
-0.6253983378410339,
0.7414163947105408,
0.3714660108089447,
-0.4413083493709564,
0.5238204002380371,
-0.3752821087837219,
-0.8321189880371094,
0.716834545135498,
0.9091524481773376,
1.1828715801239014,
-0.4197518527507782,
0.6583089232444763,
0.4400119483470917,
0.5113043189048767,
-0.20738737285137177,
0.10826093703508377,
-0.07830793410539627,
-1.0844236612319946,
-0.720838725566864,
-0.42728644609451294,
-0.3524031937122345,
0.08853060752153397,
-0.45216360688209534,
0.20236197113990784,
-0.2753392457962036,
-0.060256026685237885,
0.003815826727077365,
-0.11622194200754166,
-1.0541280508041382,
-0.039486199617385864,
-0.03705156594514847,
0.72994065284729,
-0.7439830899238586,
0.9499520659446716,
0.8258018493652344,
-0.43539535999298096,
-0.8039931654930115,
-0.3911067545413971,
-0.5557583570480347,
-0.6528903841972351,
0.6372341513633728,
0.6039278507232666,
-0.043173421174287796,
0.3184667229652405,
-0.25319164991378784,
-0.6514410972595215,
0.8777850270271301,
0.4233902096748352,
-0.496433287858963,
-0.1900760680437088,
0.13091698288917542,
0.545272946357727,
-0.32857951521873474,
0.5059043765068054,
0.556546688079834,
0.3914262354373932,
-0.2543601989746094,
-0.7519654035568237,
-0.03506914898753166,
-0.4282165467739105,
-0.08203619718551636,
0.3680117428302765,
-0.5972456336021423,
1.0083450078964233,
0.13526314496994019,
-0.3669324815273285,
0.11384356766939163,
0.7847692370414734,
0.1996975988149643,
0.09645682573318481,
0.6653804779052734,
0.6297121644020081,
0.7770671248435974,
-0.40935420989990234,
1.080705165863037,
-0.06980270892381668,
0.6076409816741943,
0.7999622225761414,
-0.2128220945596695,
0.6341446042060852,
0.5248258709907532,
-0.4397612512111664,
0.935292661190033,
0.3156813085079193,
-0.12233640998601913,
0.5740535259246826,
0.046294525265693665,
-0.34331363439559937,
-0.30675679445266724,
0.1824740320444107,
-0.5102891325950623,
0.4183926582336426,
0.2576580047607422,
-0.22383390367031097,
-0.2559688687324524,
0.06007716804742813,
-0.02658224292099476,
0.0686437264084816,
-0.30349403619766235,
0.7217100262641907,
0.05295494571328163,
-0.4853692352771759,
0.44589290022850037,
-0.1233481615781784,
1.0543218851089478,
-0.6568121314048767,
-0.0693107396364212,
0.08695407956838608,
0.32290616631507874,
-0.4032535254955292,
-0.44645455479621887,
0.16900165379047394,
0.17154698073863983,
0.07016630470752716,
-0.4231095016002655,
1.0741913318634033,
-0.3423255980014801,
-0.5948125720024109,
0.00984534714370966,
0.38431358337402344,
0.004854228347539902,
-0.27538126707077026,
-0.49662378430366516,
-0.025273863226175308,
-0.22921666502952576,
-0.2261112630367279,
0.1651500165462494,
0.11581899225711823,
0.44073402881622314,
0.6199474930763245,
0.6754817366600037,
0.11574903130531311,
0.1413784623146057,
0.18274103105068207,
0.9652792811393738,
-0.3939882814884186,
-0.5874066352844238,
-0.9934263229370117,
0.4640124440193176,
-0.2439764440059662,
-0.3133776783943176,
0.9982719421386719,
0.5572280287742615,
0.8817992806434631,
-0.13276658952236176,
0.7769964337348938,
-0.2499247044324875,
0.10916708409786224,
-0.4445047676563263,
0.7310435175895691,
-0.13844266533851624,
-0.08356115221977234,
-0.31061169505119324,
-0.9768856763839722,
-0.14601874351501465,
1.0754382610321045,
-0.14262929558753967,
0.056987959891557693,
0.6916167736053467,
0.4979895353317261,
0.16423757374286652,
-0.09347015619277954,
-0.0464705191552639,
-0.03814006224274635,
0.5195519924163818,
0.4248338043689728,
1.070277452468872,
-0.6774790287017822,
0.7151690125465393,
-0.4563531279563904,
0.11674810945987701,
0.022874576970934868,
-0.5497288703918457,
-1.2793265581130981,
-0.6542209386825562,
-0.3749234080314636,
-0.27740156650543213,
-0.08336568623781204,
0.7625013589859009,
0.8935250043869019,
-0.8483009934425354,
-0.21418820321559906,
-0.6872262358665466,
0.26561084389686584,
-0.27213090658187866,
-0.19753651320934296,
0.29442524909973145,
-0.635212779045105,
-0.8253106474876404,
0.37725868821144104,
0.08716235309839249,
-0.13364726305007935,
-0.35805466771125793,
-0.0768192708492279,
-0.0005183411994948983,
-0.15862715244293213,
0.6665583848953247,
0.441784530878067,
-0.4204690754413605,
-0.3381030857563019,
-0.06579416245222092,
0.1271815299987793,
0.3813888430595398,
0.8141320943832397,
-1.260302186012268,
0.5505422353744507,
0.4621066153049469,
0.4554778039455414,
0.8397599458694458,
-0.3336263597011566,
0.5728843212127686,
-0.5350289344787598,
0.39087945222854614,
0.21272887289524078,
0.5622196793556213,
0.26426422595977783,
-0.19068868458271027,
0.36397287249565125,
-0.045952100306749344,
-0.5868675708770752,
-0.7559083104133606,
0.22001953423023224,
-0.7863962650299072,
0.12500372529029846,
0.896406352519989,
-0.02743469923734665,
-0.18538124859333038,
-0.05381949990987778,
-0.26588961482048035,
0.41553229093551636,
-0.48511365056037903,
0.6189079880714417,
0.3848183751106262,
0.21995338797569275,
-0.27303364872932434,
-0.3672349750995636,
0.5351710319519043,
0.25274738669395447,
-1.1368199586868286,
-0.320358008146286,
0.05232943966984749,
-0.013360447250306606,
0.28046777844429016,
0.7440527081489563,
-0.09882912039756775,
0.14704109728336334,
-0.19846734404563904,
0.34317806363105774,
-0.12262878566980362,
-0.2146891951560974,
-0.31631040573120117,
0.01668921671807766,
-0.3693978786468506,
-0.4093029499053955
] |
MIT/ast-finetuned-audioset-16-16-0.442
|
MIT
| 2023-09-12T18:34:51Z | 7,879 | 0 |
transformers
|
[
"transformers",
"pytorch",
"safetensors",
"audio-spectrogram-transformer",
"audio-classification",
"arxiv:2104.01778",
"license:bsd-3-clause",
"endpoints_compatible",
"region:us"
] |
audio-classification
| 2022-11-14T19:08:00Z |
---
license: bsd-3-clause
tags:
- audio-classification
---
# Audio Spectrogram Transformer (fine-tuned on AudioSet)
Audio Spectrogram Transformer (AST) model fine-tuned on AudioSet. It was introduced in the paper [AST: Audio Spectrogram Transformer](https://arxiv.org/abs/2104.01778) by Gong et al. and first released in [this repository](https://github.com/YuanGongND/ast).
Disclaimer: The team releasing Audio Spectrogram Transformer did not write a model card for this model so this model card has been written by the Hugging Face team.
## Model description
The Audio Spectrogram Transformer is equivalent to [ViT](https://huggingface.co/docs/transformers/model_doc/vit), but applied on audio. Audio is first turned into an image (as a spectrogram), after which a Vision Transformer is applied. The model gets state-of-the-art results on several audio classification benchmarks.
## Usage
You can use the raw model for classifying audio into one of the AudioSet classes. See the [documentation](https://huggingface.co/docs/transformers/main/en/model_doc/audio-spectrogram-transformer) for more info.
|
[
-0.7882633805274963,
-0.22867336869239807,
0.1292935609817505,
0.09268508106470108,
-0.3250292241573334,
0.05287328362464905,
-0.2011011242866516,
-0.6840885281562805,
0.44036102294921875,
0.5556908249855042,
-0.8453483581542969,
-0.44418060779571533,
-0.6392298340797424,
-0.13954107463359833,
-0.5661202073097229,
1.2221041917800903,
0.12849827110767365,
0.026625262573361397,
0.22745877504348755,
-0.1890815943479538,
-0.3471064269542694,
-0.14959318935871124,
-0.5379061102867126,
-0.5176253914833069,
-0.04238199070096016,
0.2774781882762909,
0.5894143581390381,
0.4369182586669922,
0.8422591090202332,
0.2861641049385071,
-0.48613882064819336,
-0.31100836396217346,
-0.06051541119813919,
-0.30971673130989075,
0.1372978687286377,
-0.3666875958442688,
-0.8937632441520691,
0.18145765364170074,
0.5177799463272095,
0.45366841554641724,
-0.30962511897087097,
0.5391812324523926,
-0.03417826071381569,
0.2901339530944824,
-0.38161593675613403,
0.13247832655906677,
-0.273493230342865,
0.096865713596344,
-0.0917138084769249,
-0.347880482673645,
-0.2706379294395447,
-0.13567125797271729,
0.2474791705608368,
-0.5132676959037781,
0.289120078086853,
0.07291369140148163,
1.0890980958938599,
0.5655398368835449,
-0.5385417938232422,
-0.1158645898103714,
-1.045981526374817,
0.29403001070022583,
-0.4477323293685913,
0.6983877420425415,
0.09939888119697571,
0.9182207584381104,
0.4147512912750244,
-0.8617416620254517,
-0.5115162134170532,
-0.18569408357143402,
0.13208268582820892,
0.3786565363407135,
-0.3673416078090668,
0.3367410898208618,
0.4000741243362427,
0.8597711324691772,
-0.3651226758956909,
-0.12498118728399277,
-0.6216019988059998,
-0.3238338530063629,
0.6060238480567932,
-0.16485096514225006,
0.38675856590270996,
-0.41672757267951965,
-0.6427798867225647,
-0.3314365744590759,
-0.2846725881099701,
-0.07970384508371353,
0.26817750930786133,
0.25972339510917664,
-0.5006082057952881,
0.4823894500732422,
0.2268495261669159,
0.4789769649505615,
0.40495750308036804,
0.04199547693133354,
0.5242899656295776,
-0.31367796659469604,
-0.15268786251544952,
0.3026236593723297,
0.8146677017211914,
0.5130186676979065,
0.277013897895813,
0.022537043318152428,
-0.5334362387657166,
0.46272099018096924,
0.45239561796188354,
-0.8157069683074951,
-0.3587358891963959,
-0.021489212289452553,
-0.4979526400566101,
-0.40343964099884033,
-0.0408167764544487,
-0.5584850907325745,
0.08228052407503128,
-0.2096102088689804,
0.5237668752670288,
-0.5279661417007446,
-0.4942401647567749,
-0.07256873697042465,
-0.37168174982070923,
0.40347185730934143,
0.011167764663696289,
-0.9286623001098633,
0.6596381664276123,
0.42649874091148376,
0.6883819103240967,
-0.07306765019893646,
0.03583085164427757,
-0.08227314800024033,
0.01310646627098322,
-0.11894384026527405,
1.0539255142211914,
-0.4064682126045227,
-0.5660938024520874,
-0.13581714034080505,
0.07133040577173233,
0.08233984559774399,
-0.7614310383796692,
0.938933253288269,
-0.3878630995750427,
0.047404441982507706,
-0.07181928306818008,
-0.510812520980835,
-0.06332940608263016,
0.07865014672279358,
-0.6335676312446594,
1.0266780853271484,
0.13554011285305023,
-0.5814365744590759,
0.5418622493743896,
-1.0067638158798218,
0.021684149280190468,
0.1295444816350937,
0.011529624462127686,
-0.5019506812095642,
-0.03745238482952118,
-0.06010438874363899,
0.108209989964962,
-0.10617651790380478,
-0.0254109725356102,
-0.16741354763507843,
-0.5804851651191711,
0.055930960923433304,
-0.15782883763313293,
0.9302344918251038,
0.28007423877716064,
-0.19310453534126282,
0.278418630361557,
-0.9068812727928162,
-0.2161998748779297,
-0.13767942786216736,
-0.31213968992233276,
-0.16171365976333618,
-0.23836545646190643,
0.7941800355911255,
0.20046217739582062,
0.0005125514580868185,
-0.8831356763839722,
0.045532871037721634,
-0.3581177890300751,
0.5988155007362366,
0.5056717395782471,
-0.2598591446876526,
0.44094333052635193,
-0.39745116233825684,
0.5407376289367676,
-0.1539599448442459,
0.3083983361721039,
-0.09020467102527618,
-0.4713718891143799,
-0.540675938129425,
-0.27180200815200806,
0.30146336555480957,
0.6755185127258301,
-0.18770849704742432,
0.5794472694396973,
-0.2165340781211853,
-0.7066999077796936,
-0.8547940850257874,
-0.3349423408508301,
0.4787120521068573,
0.3865005075931549,
0.5152906775474548,
-0.36468517780303955,
-0.7425205111503601,
-0.9193719029426575,
-0.2960240840911865,
-0.0694403275847435,
-0.3417864143848419,
0.3794569969177246,
0.1471289098262787,
-0.43495437502861023,
0.7527729868888855,
-0.4577191472053528,
-0.4391537308692932,
-0.021831292659044266,
0.04167454317212105,
0.20826570689678192,
0.663680911064148,
0.7847450971603394,
-0.7845296859741211,
-0.5024383068084717,
-0.16236288845539093,
-0.4182172119617462,
-0.30702272057533264,
0.4469788074493408,
-0.018491793423891068,
-0.07534217834472656,
0.6083253026008606,
-0.5762397646903992,
0.3829297721385956,
0.7631182074546814,
-0.5456933975219727,
0.6506031155586243,
0.30262115597724915,
0.16513153910636902,
-1.2594932317733765,
0.015388276427984238,
0.15888690948486328,
-0.5723719596862793,
-0.7385631799697876,
0.14284056425094604,
0.08291539549827576,
-0.21721969544887543,
-0.37794509530067444,
0.462688148021698,
-0.2870016396045685,
-0.2272724211215973,
-0.3435765206813812,
-0.06490834057331085,
-0.18628434836864471,
0.35938912630081177,
0.04097892716526985,
0.47725003957748413,
0.602275550365448,
-0.4080638885498047,
0.6553043723106384,
0.8542250990867615,
-0.157760351896286,
0.8623866438865662,
-0.7288832068443298,
0.28931117057800293,
0.11169973015785217,
0.3219682276248932,
-0.8261764049530029,
-0.004132506903260946,
0.20011509954929352,
-0.5898799300193787,
0.5014539361000061,
-0.25600722432136536,
-0.3632107377052307,
-0.6135678291320801,
-0.033628739416599274,
0.6090602278709412,
0.7385948896408081,
-0.7216986417770386,
0.7527170181274414,
0.44007474184036255,
0.3133661150932312,
-0.013661463744938374,
-0.8113756775856018,
-0.3828544318675995,
-0.3505610525608063,
-0.5902710556983948,
0.5992165207862854,
-0.36201080679893494,
-0.18868927657604218,
0.04680754616856575,
-0.45039746165275574,
-0.15954038500785828,
-0.33178359270095825,
0.41508519649505615,
0.3378957211971283,
-0.47842276096343994,
-0.008710007183253765,
-0.1270664632320404,
-0.5430026054382324,
0.1804867684841156,
-0.012808223254978657,
0.4513610303401947,
-0.2796586751937866,
-0.12025606632232666,
-0.6778504252433777,
0.20139536261558533,
0.49323493242263794,
-0.14244163036346436,
0.09578149020671844,
0.7381832003593445,
-0.2752833962440491,
-0.124697245657444,
-0.616580069065094,
-0.42489176988601685,
-0.5760798454284668,
0.0889948233962059,
-0.4833354949951172,
-0.5938489437103271,
0.8121085166931152,
-0.04490042105317116,
-0.21525178849697113,
0.691911518573761,
0.3274623155593872,
-0.25269240140914917,
0.9350525140762329,
0.9811071157455444,
0.19259436428546906,
0.7557437419891357,
-0.12252436578273773,
-0.06593590974807739,
-1.0501219034194946,
-0.1652158796787262,
-0.34848055243492126,
-0.4273422658443451,
-0.8283243775367737,
-0.026427453383803368,
0.43209028244018555,
-0.31496530771255493,
-0.36939355731010437,
0.6505956053733826,
-0.9788641333580017,
0.3730784058570862,
0.6951308846473694,
0.20296671986579895,
0.37532684206962585,
-0.1838904321193695,
0.23075245320796967,
0.034362439066171646,
-0.20079462230205536,
-0.2738805413246155,
1.0168014764785767,
0.5020288825035095,
0.667904257774353,
0.017572224140167236,
0.5297297835350037,
-0.014194437302649021,
0.1419212818145752,
-1.011041522026062,
0.3557840585708618,
-0.33664608001708984,
-0.8283133506774902,
-0.04576322063803673,
-0.0842776745557785,
-0.5758172869682312,
-0.1220434382557869,
-0.30955225229263306,
-0.7528589963912964,
0.3391239643096924,
0.339415967464447,
-0.4800393879413605,
0.2823207378387451,
-0.6503003239631653,
0.7844626903533936,
0.1690465658903122,
0.5002380013465881,
0.1375613510608673,
-0.6049414277076721,
0.320933997631073,
0.1292993277311325,
-0.03763913735747337,
-0.2568802833557129,
0.40386343002319336,
1.030930995941162,
-0.5225157737731934,
0.48615017533302307,
-0.4437638819217682,
-0.03456903621554375,
0.4178062677383423,
0.04538074508309364,
0.13125289976596832,
-0.17481422424316406,
0.1287357658147812,
0.34352728724479675,
0.5020562410354614,
-0.12575167417526245,
-0.5031663775444031,
0.21002227067947388,
-0.912898600101471,
-0.20035484433174133,
-0.04040059819817543,
-0.6029195785522461,
-0.2962666451931,
0.21580711007118225,
0.7379968762397766,
0.588588297367096,
-0.24962632358074188,
-0.09315703809261322,
0.6511516571044922,
-0.1102265939116478,
0.23986485600471497,
0.5408332347869873,
-0.2991589605808258,
-0.13671499490737915,
0.6991451978683472,
0.07266745716333389,
0.47780877351760864,
0.19257663190364838,
0.30690550804138184,
-0.09561359882354736,
-0.18987581133842468,
-0.19802001118659973,
0.22271999716758728,
-0.5267149209976196,
-0.22919312119483948,
-0.5005847811698914,
-0.5462389588356018,
-0.5909608006477356,
-0.04913938418030739,
-0.8480746746063232,
-0.20074263215065002,
0.10479695349931717,
-0.1296323537826538,
0.7993303537368774,
0.5319023132324219,
-0.2533469498157501,
0.6760018467903137,
-0.6910862922668457,
0.7051715850830078,
0.3639158606529236,
0.747795820236206,
-0.5672561526298523,
-0.8081429600715637,
0.04904809966683388,
-0.046839214861392975,
-0.19000481069087982,
-0.9423158764839172,
0.29681992530822754,
0.19087842106819153,
0.477670818567276,
0.48794835805892944,
-0.13861942291259766,
0.583941638469696,
-0.6280641555786133,
0.3815018832683563,
0.02343527413904667,
-1.093361735343933,
0.5792456865310669,
-0.5940735936164856,
0.3857991099357605,
0.4816321134567261,
-0.03505926579236984,
-0.6795585751533508,
-0.30340850353240967,
-0.8714945912361145,
-0.8248734474182129,
0.909572422504425,
0.15727739036083221,
0.24041205644607544,
0.46076491475105286,
0.280984491109848,
-0.010870544239878654,
0.30361172556877136,
-0.6099937558174133,
-0.6024616360664368,
-0.7791790962219238,
-0.12194150686264038,
-0.28317099809646606,
-0.3705301880836487,
-0.2717849612236023,
-0.5886623859405518,
0.4974641501903534,
-0.15777535736560822,
0.8154962658882141,
0.11498753726482391,
0.05952112376689911,
-0.321014404296875,
0.04177985340356827,
0.28597113490104675,
-0.06711271405220032,
-0.7349631190299988,
0.05570126324892044,
0.012077896855771542,
-0.808202862739563,
-0.2335195392370224,
0.19410181045532227,
0.12922513484954834,
0.06385109573602676,
0.18950872123241425,
1.182253122329712,
0.4331113398075104,
-0.4411203861236572,
0.8565478920936584,
-0.01760699599981308,
-0.47179391980171204,
-0.7644293308258057,
0.09864436089992523,
0.18873938918113708,
0.3367146849632263,
0.16765686869621277,
0.2428058236837387,
0.5160870552062988,
-0.519016683101654,
0.39192861318588257,
0.33297041058540344,
-0.7143166661262512,
-0.41964420676231384,
0.974854588508606,
0.03593457490205765,
-0.5623238682746887,
0.8365917205810547,
0.05969817191362381,
-0.393370121717453,
0.6738547682762146,
0.7735326290130615,
1.1005905866622925,
-0.6982831358909607,
0.03823697194457054,
0.3372722268104553,
0.3239300847053528,
0.1958613097667694,
0.5614104866981506,
-0.41384536027908325,
-0.9821947813034058,
-0.20761413872241974,
-0.7374442219734192,
-0.4780801832675934,
-0.03132232278585434,
-1.3052010536193848,
0.5236989259719849,
-0.5043017268180847,
-0.19109798967838287,
0.4079594016075134,
-0.16063334047794342,
-0.76901775598526,
0.37732458114624023,
0.48643767833709717,
1.377653956413269,
-1.2164243459701538,
0.7738410830497742,
0.7042338848114014,
-0.36172500252723694,
-1.150521993637085,
-0.034114208072423935,
0.0801808312535286,
-0.9412328004837036,
0.3001220226287842,
0.11232315748929977,
0.003908130805939436,
0.25172877311706543,
-0.7426737546920776,
-0.8720265626907349,
1.0264391899108887,
0.34578147530555725,
-0.4950043857097626,
-0.03269238397479057,
-0.18336321413516998,
0.6516914963722229,
-0.17645302414894104,
0.5181927680969238,
0.8061385750770569,
0.6612066626548767,
0.5134201049804688,
-1.4759353399276733,
0.021641263738274574,
-0.7347524762153625,
-0.11030930280685425,
0.13783565163612366,
-0.7285662293434143,
0.7251327037811279,
0.09907683730125427,
-0.03544841334223747,
-0.18184709548950195,
0.5555089116096497,
0.2555340528488159,
0.22036100924015045,
0.8648771047592163,
0.4634094834327698,
0.42005011439323425,
-0.31402623653411865,
0.9949555397033691,
-0.29460087418556213,
0.344729483127594,
1.0368701219558716,
0.14986532926559448,
0.6991236209869385,
0.3375270962715149,
-0.2207334339618683,
0.5782511830329895,
0.6958372592926025,
-0.51042640209198,
0.4633038640022278,
-0.15904636681079865,
-0.015310484915971756,
-0.27149248123168945,
-0.02735177055001259,
-0.46589019894599915,
0.8961248993873596,
0.3734849691390991,
-0.39989128708839417,
-0.03322344645857811,
0.2757296562194824,
-0.2733277976512909,
-0.16404379904270172,
-0.45010116696357727,
0.9551523923873901,
0.12267135083675385,
-0.13868193328380585,
0.6393965482711792,
-0.3536664843559265,
0.9176395535469055,
-0.3392447531223297,
0.1259792149066925,
-0.030848529189825058,
-0.02539137192070484,
-0.3824372887611389,
-0.7082212567329407,
0.7770166397094727,
-0.18099457025527954,
-0.30689001083374023,
-0.2610301375389099,
0.5554295778274536,
-0.3909148871898651,
-0.3725239336490631,
0.5455451011657715,
0.07013599574565887,
0.37937405705451965,
-0.06949348747730255,
-0.616408109664917,
0.10740327835083008,
-0.21710051596164703,
-0.38612499833106995,
-0.08735114336013794,
0.09517784416675568,
0.20798276364803314,
0.5254566073417664,
0.3289932608604431,
0.08899518102407455,
0.18013553321361542,
0.2560805678367615,
0.7889221906661987,
-0.6685384511947632,
-0.8024341464042664,
-0.3085947036743164,
0.5697222948074341,
0.062337763607501984,
-0.2352960854768753,
0.6497156620025635,
0.5471973419189453,
0.7176942229270935,
-0.04438474774360657,
0.613498330116272,
0.12235265225172043,
0.70960932970047,
-0.2736094892024994,
0.7125056982040405,
-0.686659574508667,
-0.09879284352064133,
-0.7383548021316528,
-0.981735110282898,
-0.31661251187324524,
0.6503539681434631,
-0.08813560754060745,
0.14342395961284637,
0.6500229239463806,
0.7227287292480469,
-0.30992504954338074,
0.31155383586883545,
0.23803840577602386,
0.49026036262512207,
0.03110874444246292,
0.21045148372650146,
0.4492909908294678,
-0.7816244959831238,
0.6378418207168579,
-0.33366093039512634,
-0.29909610748291016,
-0.16915400326251984,
-0.48172128200531006,
-0.7941656708717346,
-0.7247134447097778,
-0.4390885531902313,
-0.424287348985672,
0.02447168342769146,
0.7417970895767212,
0.9468951225280762,
-0.8737502694129944,
-0.1493997573852539,
-0.07562803477048874,
-0.2890411615371704,
-0.34723204374313354,
-0.2582315504550934,
0.2555251717567444,
0.2805211544036865,
-0.9622742533683777,
0.43449634313583374,
0.011029976420104504,
0.18932536244392395,
-0.17263033986091614,
0.08927588909864426,
0.32737669348716736,
0.14046044647693634,
0.2347719371318817,
0.47507375478744507,
-0.556011438369751,
-0.5911291241645813,
-0.1812528669834137,
-0.056145764887332916,
0.42984065413475037,
0.41888174414634705,
-0.681231677532196,
0.4298495650291443,
0.3414280414581299,
0.03612828999757767,
0.7453723549842834,
-0.15529489517211914,
0.4509705603122711,
-0.6588292717933655,
0.25521016120910645,
0.12488792836666107,
0.2917042076587677,
0.19303135573863983,
-0.2584998905658722,
0.3304329216480255,
0.16769111156463623,
-0.627022922039032,
-1.0425249338150024,
0.23308052122592926,
-1.6049038171768188,
0.18278156220912933,
1.3065972328186035,
0.4761529862880707,
-0.35021376609802246,
0.17111487686634064,
-0.3208754360675812,
0.7245787978172302,
-0.41002434492111206,
0.5918191075325012,
0.22282478213310242,
-0.027416517958045006,
-0.3413896858692169,
-0.5077982544898987,
0.7898883819580078,
-0.022112732753157616,
-0.4396713376045227,
-0.3111365735530853,
0.15660816431045532,
0.6546826362609863,
0.5888502597808838,
0.6469853520393372,
-0.2700144946575165,
0.30455341935157776,
0.2955552637577057,
0.7349777817726135,
0.0054461038671433926,
-0.2478475570678711,
-0.4015386998653412,
0.13334855437278748,
-0.10196655243635178,
-0.4836396276950836
] |
mrm8488/t5-base-finetuned-emotion
|
mrm8488
| 2021-06-23T12:46:24Z | 7,877 | 37 |
transformers
|
[
"transformers",
"pytorch",
"jax",
"t5",
"text2text-generation",
"en",
"dataset:emotion",
"arxiv:1910.10683",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] |
text2text-generation
| 2022-03-02T23:29:05Z |
---
language: en
datasets:
- emotion
widget:
- text: "I wish you were here but it is impossible"
---
# T5-base fine-tuned for Emotion Recognition 😂😢😡😃😯
[Google's T5](https://ai.googleblog.com/2020/02/exploring-transfer-learning-with-t5.html) base fine-tuned on [emotion recognition](https://github.com/dair-ai/emotion_dataset) dataset for **Emotion Recognition** downstream task.
## Details of T5
The **T5** model was presented in [Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer](https://arxiv.org/pdf/1910.10683.pdf) by *Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, Peter J. Liu* in Here the abstract:
Transfer learning, where a model is first pre-trained on a data-rich task before being fine-tuned on a downstream task, has emerged as a powerful technique in natural language processing (NLP). The effectiveness of transfer learning has given rise to a diversity of approaches, methodology, and practice. In this paper, we explore the landscape of transfer learning techniques for NLP by introducing a unified framework that converts every language problem into a text-to-text format. Our systematic study compares pre-training objectives, architectures, unlabeled datasets, transfer approaches, and other factors on dozens of language understanding tasks. By combining the insights from our exploration with scale and our new “Colossal Clean Crawled Corpus”, we achieve state-of-the-art results on many benchmarks covering summarization, question answering, text classification, and more. To facilitate future work on transfer learning for NLP, we release our dataset, pre-trained models, and code.

## Details of the downstream task (Sentiment Recognition) - Dataset 📚
[Elvis Saravia](https://twitter.com/omarsar0) has gathered a great [dataset](https://github.com/dair-ai/emotion_dataset) for emotion recognition. It allows to classifiy the text into one of the following **6** emotions:
- sadness 😢
- joy 😃
- love 🥰
- anger 😡
- fear 😱
- surprise 😯
## Model fine-tuning 🏋️
The training script is a slightly modified version of [this Colab Notebook](https://github.com/patil-suraj/exploring-T5/blob/master/t5_fine_tuning.ipynb) created by [Suraj Patil](https://github.com/patil-suraj), so all credits to him!
## Test set metrics 🧾
| |precision | recall | f1-score |support|
|----------|----------|---------|----------|-------|
|anger | 0.93| 0.92| 0.93| 275|
|fear | 0.91| 0.87| 0.89| 224|
|joy | 0.97| 0.94| 0.95| 695|
|love | 0.80| 0.91| 0.85| 159|
|sadness | 0.97| 0.97| 0.97| 521|
|surpirse | 0.73| 0.89| 0.80| 66|
| |
|accuracy| | | 0.93| 2000|
|macro avg| 0.89| 0.92| 0.90| 2000|
|weighted avg| 0.94| 0.93| 0.93| 2000|
## Model in Action 🚀
```python
from transformers import AutoTokenizer, AutoModelWithLMHead
tokenizer = AutoTokenizer.from_pretrained("mrm8488/t5-base-finetuned-emotion")
model = AutoModelWithLMHead.from_pretrained("mrm8488/t5-base-finetuned-emotion")
def get_emotion(text):
input_ids = tokenizer.encode(text + '</s>', return_tensors='pt')
output = model.generate(input_ids=input_ids,
max_length=2)
dec = [tokenizer.decode(ids) for ids in output]
label = dec[0]
return label
get_emotion("i feel as if i havent blogged in ages are at least truly blogged i am doing an update cute") # Output: 'joy'
get_emotion("i have a feeling i kinda lost my best friend") # Output: 'sadness'
```
> Created by [Manuel Romero/@mrm8488](https://twitter.com/mrm8488) | [LinkedIn](https://www.linkedin.com/in/manuel-romero-cs/)
> Made with <span style="color: #e25555;">♥</span> in Spain
|
[
-0.4499342739582062,
-0.31296074390411377,
0.06887935101985931,
0.37101319432258606,
-0.16560788452625275,
0.1313403844833374,
-0.3338155746459961,
-0.4548976421356201,
0.053963012993335724,
-0.007059423252940178,
-0.7181426286697388,
-0.6755402684211731,
-0.8373885154724121,
0.22851045429706573,
-0.3334866166114807,
1.1706565618515015,
-0.1864253282546997,
-0.130375474691391,
0.11318356543779373,
-0.16338859498500824,
-0.4667283892631531,
-0.4788503646850586,
-0.7804741859436035,
-0.4275771677494049,
0.3557382822036743,
0.2796195149421692,
0.17140571773052216,
0.38071343302726746,
0.6638049483299255,
0.29503703117370605,
-0.09193848073482513,
0.1061362773180008,
-0.5399264097213745,
-0.1718546748161316,
-0.01812659204006195,
-0.4265855550765991,
-0.4971396327018738,
0.017636241391301155,
0.3481762111186981,
0.35413694381713867,
0.15073570609092712,
0.3474343419075012,
0.07782787829637527,
0.686774492263794,
-0.6969649791717529,
0.2471282035112381,
-0.4303739368915558,
0.28775733709335327,
0.06950559467077255,
-0.1544104516506195,
-0.3487837612628937,
-0.2994786500930786,
0.14119496941566467,
-0.33893486857414246,
0.20390644669532776,
-0.0025410570669919252,
1.2264857292175293,
0.39712247252464294,
-0.3404047191143036,
-0.33539018034935,
-0.542392373085022,
0.7951714396476746,
-0.6341834664344788,
0.18872478604316711,
0.18731647729873657,
0.012569848448038101,
0.12586478888988495,
-0.7754909992218018,
-0.6224877238273621,
-0.009739641100168228,
-0.13676349818706512,
0.23049868643283844,
-0.4234868288040161,
-0.068636953830719,
0.2899089753627777,
0.5288363695144653,
-0.4962398409843445,
-0.05070573464035988,
-0.4086989462375641,
-0.14984382688999176,
0.7128922939300537,
0.06904208660125732,
0.3458173871040344,
-0.2011699229478836,
-0.34687119722366333,
-0.34715259075164795,
-0.32387787103652954,
0.23596122860908508,
0.11307176947593689,
0.18856745958328247,
-0.44114741683006287,
0.2625216543674469,
-0.050330039113759995,
0.6068035364151001,
0.43216490745544434,
0.03585740551352501,
0.6414355635643005,
-0.28451037406921387,
-0.28355419635772705,
-0.03211726248264313,
1.1871147155761719,
0.41369983553886414,
0.4513011872768402,
-0.0961916446685791,
-0.21802297234535217,
-0.0417032353579998,
0.1515970230102539,
-0.8681284785270691,
-0.38266223669052124,
0.2488534152507782,
-0.5192446112632751,
-0.43897491693496704,
0.028745552524924278,
-0.8447887897491455,
-0.09588747471570969,
-0.28109315037727356,
0.5816380977630615,
-0.633643627166748,
-0.32784828543663025,
0.1346108317375183,
-0.038299549371004105,
0.16214901208877563,
0.12001389265060425,
-1.008031964302063,
0.11139234900474548,
0.3865428864955902,
0.8148304224014282,
-0.17668870091438293,
-0.3917645215988159,
-0.2039203643798828,
-0.34058621525764465,
-0.2572920322418213,
0.6453214287757874,
-0.1619592308998108,
-0.29341572523117065,
-0.15987208485603333,
0.08438174426555634,
-0.28332725167274475,
-0.38109973073005676,
0.5632117390632629,
-0.27714043855667114,
0.4298900365829468,
-0.22070616483688354,
-0.39198413491249084,
-0.24752572178840637,
0.19439388811588287,
-0.5295048952102661,
1.1654980182647705,
0.12275698781013489,
-0.8208872079849243,
0.2247561365365982,
-0.9357179999351501,
-0.3458646237850189,
-0.3971477746963501,
0.4313313663005829,
-0.434134840965271,
-0.02340509556233883,
0.20466388761997223,
0.5950379371643066,
-0.10870576649904251,
0.07287604361772537,
-0.34215590357780457,
-0.32285815477371216,
0.26822373270988464,
-0.24144841730594635,
0.8789474368095398,
0.3323507308959961,
-0.43412020802497864,
0.0812189131975174,
-0.9329914450645447,
0.07811344414949417,
0.11532680690288544,
-0.26704972982406616,
-0.014882541261613369,
-0.36733001470565796,
0.04330941662192345,
0.48341694474220276,
0.37529808282852173,
-0.3403184115886688,
0.16470274329185486,
-0.4450884461402893,
0.48868170380592346,
0.6898543834686279,
-0.11026929318904877,
0.46961870789527893,
-0.27081099152565,
0.41758260130882263,
0.15843504667282104,
-0.013568283058702946,
-0.0995481014251709,
-0.060538846999406815,
-1.0423479080200195,
-0.19015160202980042,
0.4784969687461853,
0.6510071754455566,
-0.3006122410297394,
0.7884771227836609,
-0.2392863929271698,
-0.5650262236595154,
-0.795211911201477,
-0.03320632502436638,
0.26426947116851807,
0.7535180449485779,
0.6804018616676331,
-0.2757526934146881,
-0.847479522228241,
-0.561032772064209,
-0.3753303587436676,
-0.1314409375190735,
0.03575580567121506,
0.12056794762611389,
0.5824018716812134,
-0.3680737316608429,
0.7913101315498352,
-0.4580551087856293,
-0.35238656401634216,
-0.3919713795185089,
0.5010899305343628,
0.24957752227783203,
0.6585915088653564,
0.5786983966827393,
-0.5785277485847473,
-0.6649349331855774,
-0.09754963219165802,
-0.8451276421546936,
-0.23023134469985962,
-0.128933385014534,
-0.2302781492471695,
0.40976962447166443,
0.35377371311187744,
-0.5828734636306763,
0.2996808588504791,
0.44399672746658325,
-0.39243653416633606,
0.46586158871650696,
-0.1170663982629776,
0.10096512734889984,
-1.3463157415390015,
0.3459634780883789,
0.08002092689275742,
-0.21827095746994019,
-0.6003121137619019,
-0.327085942029953,
0.1476164013147354,
0.1337791234254837,
-0.40844857692718506,
0.693743109703064,
-0.5161217451095581,
0.09362377971410751,
-0.183248832821846,
-0.11260708421468735,
-0.014980667270720005,
0.7389311194419861,
-0.03540157526731491,
0.6214435696601868,
0.5835909843444824,
-0.5646857023239136,
0.2886492908000946,
0.4536822736263275,
-0.09932444989681244,
0.5797105431556702,
-0.4749072194099426,
0.24817363917827606,
-0.19685670733451843,
0.16332556307315826,
-0.9774188995361328,
-0.07766470313072205,
0.3771619498729706,
-0.7462184429168701,
0.614192008972168,
-0.10268571227788925,
-0.28399333357810974,
-0.41254544258117676,
-0.25224608182907104,
0.10051792114973068,
0.6959756016731262,
-0.5006869435310364,
0.6366599202156067,
0.09824033826589584,
0.009942359291017056,
-0.8430488705635071,
-0.8000046014785767,
0.12001607567071915,
-0.41637617349624634,
-0.45225054025650024,
0.44133231043815613,
-0.17502635717391968,
0.09741384536027908,
-0.004484641365706921,
-0.11729462444782257,
-0.13181474804878235,
0.15240834653377533,
0.21192742884159088,
0.3403703570365906,
-0.05340059474110603,
0.24329590797424316,
-0.13499771058559418,
-0.15173587203025818,
0.17908792197704315,
-0.010073941200971603,
0.652940034866333,
-0.41584312915802,
0.15736745297908783,
-0.6857093572616577,
0.07934492826461792,
0.4959670603275299,
-0.2993479073047638,
0.6669238209724426,
1.075339913368225,
-0.3305296003818512,
-0.1678452044725418,
-0.3918655216693878,
-0.0554790161550045,
-0.46125075221061707,
0.43548569083213806,
-0.4849550426006317,
-0.683288037776947,
0.5927462577819824,
-0.18185800313949585,
-0.020213225856423378,
0.823262631893158,
0.5757670998573303,
-0.26656895875930786,
1.0209009647369385,
0.7464010715484619,
-0.33112242817878723,
0.6435115933418274,
-0.6271530389785767,
0.25844475626945496,
-0.9054622054100037,
-0.2841341197490692,
-0.52828049659729,
-0.5139405727386475,
-0.6721838712692261,
-0.055419351905584335,
0.05811617150902748,
0.07005641609430313,
-0.5024664998054504,
0.33093664050102234,
-0.5632779598236084,
0.19301562011241913,
0.42767319083213806,
0.10137154161930084,
0.06756538152694702,
-0.06464473903179169,
0.020246198400855064,
-0.13687676191329956,
-0.654251754283905,
-0.24517183005809784,
1.099486231803894,
0.265044629573822,
0.6937443017959595,
-0.18206529319286346,
0.8699220418930054,
0.27374058961868286,
0.39574697613716125,
-0.8262190818786621,
0.4242735207080841,
-0.2222425639629364,
-0.2900710105895996,
-0.03784053027629852,
-0.4743826389312744,
-0.9350928068161011,
0.10028395056724548,
-0.3907063901424408,
-0.7793782353401184,
0.3202764689922333,
0.151080921292305,
-0.2984670400619507,
0.2718185484409332,
-0.8978191614151001,
1.079797625541687,
-0.26907941699028015,
-0.27474483847618103,
0.08834721148014069,
-0.8363126516342163,
0.2277362197637558,
-0.00032697286223992705,
-0.061610616743564606,
-0.08262383192777634,
0.1977522224187851,
0.7411475777626038,
-0.3214847445487976,
0.7869843244552612,
-0.10708172619342804,
0.1909354031085968,
0.09743180871009827,
0.05923612788319588,
0.43347570300102234,
-0.30229878425598145,
-0.07925274968147278,
0.11333706974983215,
0.003260861150920391,
-0.21800284087657928,
-0.5046707987785339,
0.5793014764785767,
-1.0037983655929565,
-0.09622474759817123,
-0.5182032585144043,
-0.4941900074481964,
-0.1319422721862793,
0.3364744186401367,
0.5083728432655334,
0.12640604376792908,
-0.1288972795009613,
0.13274988532066345,
0.6810728311538696,
-0.202356219291687,
0.6271072626113892,
0.28306344151496887,
0.08870596438646317,
-0.33321478962898254,
0.9309707283973694,
-0.056013453751802444,
0.11167317628860474,
0.43950989842414856,
0.11061932891607285,
-0.4263647198677063,
-0.24706654250621796,
-0.20813460648059845,
0.3313639461994171,
-0.7122501134872437,
-0.4181627333164215,
-0.8554754853248596,
-0.2112722247838974,
-0.5573461055755615,
-0.03594371676445007,
-0.49632173776626587,
-0.27543318271636963,
-0.7111594080924988,
-0.23679813742637634,
0.43878674507141113,
0.5090023875236511,
-0.2463102638721466,
0.21166543662548065,
-0.7676491141319275,
0.27381399273872375,
0.04447740316390991,
0.3162631392478943,
-0.039342012256383896,
-0.728716254234314,
-0.1393299698829651,
0.055673908442258835,
-0.32646894454956055,
-0.8370161652565002,
0.7874305844306946,
0.37428992986679077,
0.13988366723060608,
0.2651527523994446,
0.0785755142569542,
0.8054395914077759,
-0.2097024768590927,
0.6071957945823669,
0.23422272503376007,
-1.1703805923461914,
0.5850247144699097,
-0.022851964458823204,
0.3523750901222229,
0.6445523500442505,
0.5965280532836914,
-0.7203317880630493,
-0.08146006613969803,
-0.7768611907958984,
-0.8799140453338623,
0.94903165102005,
0.14951857924461365,
0.057135749608278275,
0.3078037202358246,
0.29648932814598083,
-0.07147090882062912,
0.3225345015525818,
-0.9024026989936829,
-0.33414214849472046,
-0.3654569387435913,
-0.6653067469596863,
-0.04663607478141785,
-0.051607102155685425,
0.11821477115154266,
-0.4115343391895294,
0.6816082000732422,
-0.12934640049934387,
0.6706523299217224,
0.3861487805843353,
-0.3011232614517212,
-0.06958021223545074,
0.10814138501882553,
0.37547123432159424,
0.3131524324417114,
-0.5106105208396912,
0.0014013709733262658,
0.2883613109588623,
-0.3984476327896118,
0.04479843005537987,
0.16646625101566315,
-0.0009059144067578018,
-0.03434652462601662,
0.35373833775520325,
1.1481926441192627,
-0.07253482192754745,
-0.3835439085960388,
0.5371854901313782,
-0.14753958582878113,
-0.29933035373687744,
-0.2980560064315796,
0.10214048624038696,
-0.012780340388417244,
0.15996922552585602,
0.1858951449394226,
0.34192556142807007,
0.14062753319740295,
-0.49883562326431274,
0.07671552151441574,
0.19436563551425934,
-0.5100479125976562,
-0.5662818551063538,
0.6611008048057556,
0.11233820766210556,
-0.27165791392326355,
0.5798646807670593,
-0.21089692413806915,
-0.7980004549026489,
0.6930619478225708,
0.4833592176437378,
1.0444644689559937,
-0.17117027938365936,
0.17721892893314362,
0.7595112323760986,
0.18540626764297485,
-0.17328476905822754,
0.42960330843925476,
-0.06692209839820862,
-0.7426789402961731,
-0.32215622067451477,
-0.6539778113365173,
-0.2913161814212799,
0.16611666977405548,
-0.6243838667869568,
0.46393677592277527,
-0.3449685871601105,
-0.09089386463165283,
-0.08140932768583298,
0.16673992574214935,
-0.8674432039260864,
0.5604918003082275,
0.18811003863811493,
0.8876484632492065,
-0.8328155875205994,
0.6479189395904541,
0.689351499080658,
-0.4783417880535126,
-0.9516748189926147,
-0.04830092936754227,
-0.22452102601528168,
-0.7396681904792786,
0.7181900143623352,
0.29752734303474426,
-0.034338489174842834,
0.25153878331184387,
-0.6496722102165222,
-0.8750059604644775,
1.1547437906265259,
0.25501376390457153,
-0.3053605258464813,
-0.0899609699845314,
0.10387779772281647,
0.8821506500244141,
-0.35348257422447205,
0.5087155699729919,
0.5873497128486633,
0.4161326587200165,
0.15446406602859497,
-0.7882324457168579,
0.14889977872371674,
-0.5013715028762817,
-0.23968978226184845,
0.1009892076253891,
-0.8196077942848206,
0.9194468259811401,
-0.2521418333053589,
-0.10374659299850464,
-0.21280522644519806,
0.7318328022956848,
0.12141984701156616,
0.27040907740592957,
0.5320070385932922,
0.7415838837623596,
0.8020355105400085,
-0.21620126068592072,
0.9658469557762146,
-0.4914153218269348,
0.7501567602157593,
0.8614401817321777,
0.08959835022687912,
0.718851625919342,
0.3080064058303833,
-0.24858208000659943,
0.5224193930625916,
0.8711313605308533,
-0.16613072156906128,
0.5648958683013916,
0.11231543868780136,
-0.08484212309122086,
-0.12223342806100845,
0.0858040452003479,
-0.3432422876358032,
0.37695810198783875,
0.2270132303237915,
-0.46462100744247437,
-0.09155163168907166,
0.05479307100176811,
0.23643949627876282,
-0.3790859878063202,
-0.20782248675823212,
0.8298394680023193,
0.14437514543533325,
-0.6530203223228455,
0.8703382015228271,
-0.08707381039857864,
0.9332874417304993,
-0.5661238431930542,
0.07723157107830048,
-0.4008951485157013,
0.2499232292175293,
-0.4008327126502991,
-0.70559161901474,
0.3680635988712311,
0.14989732205867767,
-0.05794134363532066,
-0.4923938810825348,
0.8803312182426453,
-0.508678138256073,
-0.36665987968444824,
0.34675052762031555,
0.32523494958877563,
0.14390471577644348,
-0.09141881763935089,
-0.8776400685310364,
-0.10254885256290436,
0.16693846881389618,
-0.3994978666305542,
0.20910464227199554,
0.5956977009773254,
0.2592238187789917,
0.666750431060791,
0.5423408150672913,
0.0887889415025711,
0.020321881398558617,
-0.1101687029004097,
0.7149633169174194,
-0.7827772498130798,
-0.4606565535068512,
-0.8868036866188049,
0.6411818861961365,
0.018261710181832314,
-0.559576153755188,
0.45261406898498535,
0.3778991997241974,
0.8222585916519165,
-0.1521882712841034,
0.8660239577293396,
-0.308591365814209,
0.5105351805686951,
-0.35433709621429443,
0.6775673031806946,
-0.7837426066398621,
-0.06633977591991425,
-0.3467199206352234,
-0.6080551743507385,
-0.3486056923866272,
0.7258549928665161,
-0.292122483253479,
0.15271078050136566,
0.7748692035675049,
0.6086844205856323,
-0.06389053910970688,
-0.16654321551322937,
-0.06864777207374573,
0.3887732923030853,
0.1905129849910736,
0.8521568179130554,
0.5747962594032288,
-0.7607018947601318,
0.6033022999763489,
-0.4565020799636841,
-0.025823097676038742,
-0.281732439994812,
-0.8676818609237671,
-0.8777663111686707,
-0.6512148380279541,
-0.40908676385879517,
-0.4684104323387146,
-0.03304196894168854,
1.0868133306503296,
0.5568260550498962,
-0.7685997486114502,
-0.1446148306131363,
-0.22834916412830353,
-0.005234120413661003,
-0.13960900902748108,
-0.25326061248779297,
0.5108920931816101,
-0.46514788269996643,
-0.9065406918525696,
0.024272168055176735,
-0.06315740942955017,
0.23643435537815094,
0.0622519925236702,
-0.042914751917123795,
-0.2526324987411499,
-0.18997722864151,
0.47154471278190613,
0.3427741229534149,
-0.23835943639278412,
-0.1427648514509201,
0.15336456894874573,
-0.1411987543106079,
0.400520920753479,
0.3293004631996155,
-0.6113399863243103,
0.3091644048690796,
0.6392132639884949,
0.6644954085350037,
0.6885756850242615,
-0.05411427840590477,
0.4468141496181488,
-0.640213668346405,
-0.04805900529026985,
0.1645151972770691,
0.3397221565246582,
0.47126320004463196,
-0.3466227352619171,
0.6435831189155579,
0.3509901762008667,
-0.5859578251838684,
-0.8223967552185059,
-0.1647288203239441,
-1.181693196296692,
-0.018364857882261276,
1.0531293153762817,
-0.1846582293510437,
-0.3769738972187042,
0.29413047432899475,
-0.31452396512031555,
0.6021021604537964,
-0.47442159056663513,
0.9813942313194275,
0.7840827703475952,
-0.20004430413246155,
-0.3474006652832031,
-0.32814183831214905,
0.6877697110176086,
0.563166618347168,
-0.9050180912017822,
-0.17751356959342957,
0.2448684275150299,
0.46835705637931824,
0.17827355861663818,
0.6100233197212219,
0.054141849279403687,
0.20048271119594574,
-0.3236038386821747,
0.5296096205711365,
-0.00412641279399395,
-0.06122330203652382,
-0.6001434326171875,
0.09497770667076111,
-0.26152488589286804,
-0.3733745217323303
] |
sismetanin/rubert-ru-sentiment-rusentiment
|
sismetanin
| 2021-05-20T06:11:34Z | 7,862 | 4 |
transformers
|
[
"transformers",
"pytorch",
"jax",
"bert",
"text-classification",
"sentiment analysis",
"Russian",
"ru",
"endpoints_compatible",
"region:us"
] |
text-classification
| 2022-03-02T23:29:05Z |
---
language:
- ru
tags:
- sentiment analysis
- Russian
---
## RuBERT-Base-ru-sentiment-RuSentiment
RuBERT-ru-sentiment-RuSentiment is a [RuBERT](https://huggingface.co/DeepPavlov/rubert-base-cased) model fine-tuned on [RuSentiment dataset](https://github.com/text-machine-lab/rusentiment) of general-domain Russian-language posts from the largest Russian social network, VKontakte.
<table>
<thead>
<tr>
<th rowspan="4">Model</th>
<th rowspan="4">Score<br></th>
<th rowspan="4">Rank</th>
<th colspan="12">Dataset</th>
</tr>
<tr>
<td colspan="6">SentiRuEval-2016<br></td>
<td colspan="2" rowspan="2">RuSentiment</td>
<td rowspan="2">KRND</td>
<td rowspan="2">LINIS Crowd</td>
<td rowspan="2">RuTweetCorp</td>
<td rowspan="2">RuReviews</td>
</tr>
<tr>
<td colspan="3">TC</td>
<td colspan="3">Banks</td>
</tr>
<tr>
<td>micro F1</td>
<td>macro F1</td>
<td>F1</td>
<td>micro F1</td>
<td>macro F1</td>
<td>F1</td>
<td>wighted</td>
<td>F1</td>
<td>F1</td>
<td>F1</td>
<td>F1</td>
<td>F1</td>
</tr>
</thead>
<tbody>
<tr>
<td>SOTA</td>
<td>n/s</td>
<td></td>
<td>76.71</td>
<td>66.40</td>
<td>70.68</td>
<td>67.51</td>
<td>69.53</td>
<td>74.06</td>
<td>78.50</td>
<td>n/s</td>
<td>73.63</td>
<td>60.51</td>
<td>83.68</td>
<td>77.44</td>
</tr>
<tr>
<td>XLM-RoBERTa-Large</td>
<td>76.37</td>
<td>1</td>
<td>82.26</td>
<td>76.36</td>
<td>79.42</td>
<td>76.35</td>
<td>76.08</td>
<td>80.89</td>
<td>78.31</td>
<td>75.27</td>
<td>75.17</td>
<td>60.03</td>
<td>88.91</td>
<td>78.81</td>
</tr>
<tr>
<td>SBERT-Large</td>
<td>75.43</td>
<td>2</td>
<td>78.40</td>
<td>71.36</td>
<td>75.14</td>
<td>72.39</td>
<td>71.87</td>
<td>77.72</td>
<td>78.58</td>
<td>75.85</td>
<td>74.20</td>
<td>60.64</td>
<td>88.66</td>
<td>77.41</td>
</tr>
<tr>
<td>MBARTRuSumGazeta</td>
<td>74.70</td>
<td>3</td>
<td>76.06</td>
<td>68.95</td>
<td>73.04</td>
<td>72.34</td>
<td>71.93</td>
<td>77.83</td>
<td>76.71</td>
<td>73.56</td>
<td>74.18</td>
<td>60.54</td>
<td>87.22</td>
<td>77.51</td>
</tr>
<tr>
<td>Conversational RuBERT</td>
<td>74.44</td>
<td>4</td>
<td>76.69</td>
<td>69.09</td>
<td>73.11</td>
<td>69.44</td>
<td>68.68</td>
<td>75.56</td>
<td>77.31</td>
<td>74.40</td>
<td>73.10</td>
<td>59.95</td>
<td>87.86</td>
<td>77.78</td>
</tr>
<tr>
<td>LaBSE</td>
<td>74.11</td>
<td>5</td>
<td>77.00</td>
<td>69.19</td>
<td>73.55</td>
<td>70.34</td>
<td>69.83</td>
<td>76.38</td>
<td>74.94</td>
<td>70.84</td>
<td>73.20</td>
<td>59.52</td>
<td>87.89</td>
<td>78.47</td>
</tr>
<tr>
<td>XLM-RoBERTa-Base</td>
<td>73.60</td>
<td>6</td>
<td>76.35</td>
<td>69.37</td>
<td>73.42</td>
<td>68.45</td>
<td>67.45</td>
<td>74.05</td>
<td>74.26</td>
<td>70.44</td>
<td>71.40</td>
<td>60.19</td>
<td>87.90</td>
<td>78.28</td>
</tr>
<tr>
<td>RuBERT</td>
<td>73.45</td>
<td>7</td>
<td>74.03</td>
<td>66.14</td>
<td>70.75</td>
<td>66.46</td>
<td>66.40</td>
<td>73.37</td>
<td>75.49</td>
<td>71.86</td>
<td>72.15</td>
<td>60.55</td>
<td>86.99</td>
<td>77.41</td>
</tr>
<tr>
<td>MBART-50-Large-Many-to-Many</td>
<td>73.15</td>
<td>8</td>
<td>75.38</td>
<td>67.81</td>
<td>72.26</td>
<td>67.13</td>
<td>66.97</td>
<td>73.85</td>
<td>74.78</td>
<td>70.98</td>
<td>71.98</td>
<td>59.20</td>
<td>87.05</td>
<td>77.24</td>
</tr>
<tr>
<td>SlavicBERT</td>
<td>71.96</td>
<td>9</td>
<td>71.45</td>
<td>63.03</td>
<td>68.44</td>
<td>64.32</td>
<td>63.99</td>
<td>71.31</td>
<td>72.13</td>
<td>67.57</td>
<td>72.54</td>
<td>58.70</td>
<td>86.43</td>
<td>77.16</td>
</tr>
<tr>
<td>EnRuDR-BERT</td>
<td>71.51</td>
<td>10</td>
<td>72.56</td>
<td>64.74</td>
<td>69.07</td>
<td>61.44</td>
<td>60.21</td>
<td>68.34</td>
<td>74.19</td>
<td>69.94</td>
<td>69.33</td>
<td>56.55</td>
<td>87.12</td>
<td>77.95</td>
</tr>
<tr>
<td>RuDR-BERT</td>
<td>71.14</td>
<td>11</td>
<td>72.79</td>
<td>64.23</td>
<td>68.36</td>
<td>61.86</td>
<td>60.92</td>
<td>68.48</td>
<td>74.65</td>
<td>70.63</td>
<td>68.74</td>
<td>54.45</td>
<td>87.04</td>
<td>77.91</td>
</tr>
<tr>
<td>MBART-50-Large</td>
<td>69.46</td>
<td>12</td>
<td>70.91</td>
<td>62.67</td>
<td>67.24</td>
<td>61.12</td>
<td>60.25</td>
<td>68.41</td>
<td>72.88</td>
<td>68.63</td>
<td>70.52</td>
<td>46.39</td>
<td>86.48</td>
<td>77.52</td>
</tr>
</tbody>
</table>
The table shows per-task scores and a macro-average of those scores to determine a models’s position on the leaderboard. For datasets with multiple evaluation metrics (e.g., macro F1 and weighted F1 for RuSentiment), we use an unweighted average of the metrics as the score for the task when computing the overall macro-average. The same strategy for comparing models’ results was applied in the GLUE benchmark.
## Citation
If you find this repository helpful, feel free to cite our publication:
```
@article{Smetanin2021Deep,
author = {Sergey Smetanin and Mikhail Komarov},
title = {Deep transfer learning baselines for sentiment analysis in Russian},
journal = {Information Processing & Management},
volume = {58},
number = {3},
pages = {102484},
year = {2021},
issn = {0306-4573},
doi = {0.1016/j.ipm.2020.102484}
}
```
Dataset:
```
@inproceedings{rogers2018rusentiment,
title={RuSentiment: An enriched sentiment analysis dataset for social media in Russian},
author={Rogers, Anna and Romanov, Alexey and Rumshisky, Anna and Volkova, Svitlana and Gronas, Mikhail and Gribov, Alex},
booktitle={Proceedings of the 27th international conference on computational linguistics},
pages={755--763},
year={2018}
}
```
|
[
-0.625962495803833,
-0.38962697982788086,
0.03861330822110176,
0.33525750041007996,
-0.2618681788444519,
0.15187618136405945,
-0.31522539258003235,
-0.0393543541431427,
0.45962053537368774,
-0.06445181369781494,
-0.8113226890563965,
-0.3571185767650604,
-0.733700156211853,
0.03710968419909477,
0.04155074805021286,
0.9731215238571167,
0.012235363945364952,
-0.041638877242803574,
-0.1521090269088745,
-0.20504672825336456,
-0.3240497410297394,
-0.11680827289819717,
-0.17596812546253204,
-0.14679870009422302,
0.20540034770965576,
0.5518926382064819,
0.6314677596092224,
0.29103899002075195,
0.5390240550041199,
0.37739962339401245,
-0.2648669183254242,
0.2410929799079895,
-0.20160576701164246,
-0.17690548300743103,
0.08454983681440353,
-0.1590762734413147,
-0.4944171905517578,
-0.055630262941122055,
0.46780985593795776,
0.8968198895454407,
-0.03511480987071991,
0.6729029417037964,
0.5613017082214355,
1.210413932800293,
-0.5982662439346313,
0.08149314671754837,
-0.03173316642642021,
0.046926721930503845,
-0.14314018189907074,
-0.1754828244447708,
0.019751664251089096,
-0.844507098197937,
0.03093395195901394,
-0.4000840485095978,
-0.06875917315483093,
0.03420579805970192,
1.6532394886016846,
-0.08367758244276047,
-0.20811718702316284,
-0.07154159992933273,
-0.6097204089164734,
1.2447565793991089,
-0.8056373596191406,
0.36065158247947693,
0.3878190219402313,
-0.08508843183517456,
-0.07255079597234726,
-0.29513683915138245,
-0.7787540555000305,
0.2576731741428375,
-0.3490625321865082,
0.5631468296051025,
-0.28884410858154297,
-0.6651929020881653,
-0.010249929502606392,
0.30673959851264954,
-0.684386670589447,
-0.2597826421260834,
-0.511734664440155,
-0.20528843998908997,
0.46250978112220764,
0.1832685023546219,
0.12811724841594696,
-0.5399900674819946,
-0.5746071934700012,
-0.09408218413591385,
-0.22400394082069397,
0.7878210544586182,
0.205015629529953,
0.37365350127220154,
-0.6216038465499878,
0.5926918387413025,
-0.4348067343235016,
0.6854167580604553,
0.15126746892929077,
-0.3482208251953125,
0.9302958846092224,
-0.5636886954307556,
-0.3139376938343048,
-0.21774907410144806,
0.6867111921310425,
0.5129868984222412,
0.22320179641246796,
-0.060555994510650635,
0.040806982666254044,
0.24121689796447754,
-0.13824929296970367,
-0.6702600121498108,
-0.18830204010009766,
0.3371013104915619,
-0.4681435823440552,
-0.34793850779533386,
0.3269275426864624,
-1.2618093490600586,
0.17968177795410156,
-0.5351747870445251,
0.31139758229255676,
-0.17015868425369263,
-0.4209749102592468,
0.12356250733137131,
0.15027669072151184,
0.24309131503105164,
0.3796052932739258,
-0.6509328484535217,
0.35312536358833313,
0.7193748950958252,
1.131294846534729,
-0.004018993582576513,
-0.19176910817623138,
0.0707310140132904,
-0.04331059008836746,
-0.5724186897277832,
1.0638850927352905,
-0.2969239354133606,
-0.41756173968315125,
-0.422162801027298,
0.2370070219039917,
-0.25223246216773987,
0.03812023624777794,
0.5524581670761108,
-0.23371894657611847,
0.7062780857086182,
-0.5269477963447571,
-0.3559606075286865,
0.05379469320178032,
0.48808231949806213,
-0.5425379276275635,
1.2936992645263672,
0.1384517103433609,
-0.9050478935241699,
0.5126953721046448,
-0.8624026775360107,
-0.11009684950113297,
-0.588848888874054,
0.23336158692836761,
-0.862962543964386,
-0.47173476219177246,
0.4431793689727783,
0.45272764563560486,
-0.6365728378295898,
-0.18898282945156097,
-0.2847578823566437,
-0.013813265599310398,
0.13737252354621887,
-0.20104320347309113,
1.088191270828247,
0.4931817352771759,
-0.5907003283500671,
-0.0074909101240336895,
-0.9171340465545654,
0.3308699131011963,
0.07725472003221512,
-0.6358399987220764,
0.030245259404182434,
-0.5457335710525513,
-0.2170252799987793,
0.3791930377483368,
0.2783133089542389,
-0.5837640166282654,
0.09374065697193146,
-0.614397406578064,
0.24624936282634735,
1.189340353012085,
0.23578834533691406,
0.735590398311615,
-0.9503980875015259,
0.6096303462982178,
0.36980322003364563,
0.15663178265094757,
0.47490039467811584,
-0.21725067496299744,
-0.950217604637146,
-0.3797922134399414,
0.3561064600944519,
0.41122061014175415,
-0.1886257827281952,
0.4713086783885956,
-0.7532356977462769,
-0.6681644320487976,
-0.31765469908714294,
-0.13639400899410248,
0.513544499874115,
0.7300866842269897,
0.32277825474739075,
0.004199346527457237,
-0.8443113565444946,
-0.7484370470046997,
0.04835433140397072,
-0.16575030982494354,
0.5658612251281738,
0.7420380711555481,
0.8684531450271606,
-0.02897515706717968,
0.8073246479034424,
-0.8403056263923645,
-0.4534759521484375,
-0.3280371427536011,
-0.03088817000389099,
0.7317988276481628,
0.770538330078125,
0.5867631435394287,
-0.9049124717712402,
-1.0527507066726685,
0.20268213748931885,
-0.5451756119728088,
0.020579395815730095,
-0.056181900203228,
-0.5085023045539856,
0.2775018811225891,
0.18565328419208527,
-0.6023743748664856,
0.5582941770553589,
0.5405188798904419,
-0.7149767279624939,
1.1284945011138916,
-0.12512080371379852,
0.5700221657752991,
-1.3335996866226196,
0.4915377199649811,
-0.0246752742677927,
0.020872337743639946,
-0.6689900159835815,
-0.2733941376209259,
-0.10135642439126968,
0.13532570004463196,
-0.3149714171886444,
0.49660784006118774,
-0.9645376801490784,
-0.0093418313190341,
0.3766060471534729,
0.066828154027462,
0.07783374190330505,
0.6686855554580688,
-0.3342345058917999,
1.1428248882293701,
0.7401857972145081,
-0.6638476252555847,
0.31994444131851196,
0.21363666653633118,
-0.845533549785614,
0.7191368937492371,
-0.461140513420105,
-0.25969943404197693,
-0.3533025085926056,
-0.10184095054864883,
-1.2342112064361572,
-0.08800242096185684,
0.05986690893769264,
-0.765852153301239,
0.12865614891052246,
0.08102234452962875,
-0.1949937343597412,
-0.9626142382621765,
-0.43777814507484436,
-0.11335310339927673,
0.7774590253829956,
-0.1700119525194168,
0.2854440212249756,
0.27178484201431274,
0.10660229623317719,
-0.9919675588607788,
-0.6889586448669434,
-0.17757515609264374,
-0.49342820048332214,
-1.0790798664093018,
0.5743410587310791,
-0.09927688539028168,
-0.26799464225769043,
0.004563360940665007,
-0.4162716865539551,
-0.13528400659561157,
0.17566031217575073,
0.28420794010162354,
0.27138200402259827,
-0.3844662308692932,
0.02197597548365593,
-0.853446900844574,
-0.11854604631662369,
-0.2197900414466858,
0.18572020530700684,
0.7353218197822571,
-0.11766581982374191,
-0.20060254633426666,
-0.5249326229095459,
-0.16380931437015533,
0.8067352175712585,
-0.39719319343566895,
0.9494162201881409,
0.5510917901992798,
-0.1845439374446869,
-0.3815230429172516,
-0.4082010090351105,
-0.24408970773220062,
-0.45653653144836426,
-0.008036806248128414,
-0.4044523537158966,
-0.7478767037391663,
0.8394113183021545,
-0.17892105877399445,
-0.3841601312160492,
0.5332604050636292,
0.540996253490448,
-0.38075271248817444,
0.6135683059692383,
0.383760541677475,
-0.35283589363098145,
0.3514787256717682,
-0.7905710935592651,
0.17333507537841797,
-0.95848149061203,
-0.5642257928848267,
-0.792728066444397,
-0.6042251586914062,
-0.3611550033092499,
-0.43479353189468384,
0.5813500881195068,
0.012059921398758888,
-0.6102243661880493,
0.249299556016922,
-0.8466662168502808,
0.16757896542549133,
0.5720022916793823,
0.6343584060668945,
-0.15446737408638,
-0.08894158154726028,
-0.5880588293075562,
-0.20586992800235748,
-0.41685882210731506,
-0.524793267250061,
0.9479150176048279,
-0.11303125321865082,
0.6963638663291931,
0.6558595299720764,
0.6881713271141052,
0.4150277078151703,
-0.13472804427146912,
-0.6574974060058594,
0.44670408964157104,
0.1271570324897766,
-0.7476925849914551,
-0.4229976236820221,
-0.25344744324684143,
-1.2558157444000244,
0.36018821597099304,
-0.4407765865325928,
-1.1498775482177734,
0.2792157232761383,
0.1958141177892685,
-0.629989504814148,
0.4044147729873657,
-0.5071583986282349,
0.9498885273933411,
-0.06416666507720947,
-0.6675189137458801,
0.12965521216392517,
-0.7393432259559631,
0.21481084823608398,
0.3738180696964264,
0.6833765506744385,
-0.44633182883262634,
0.05687359347939491,
0.7920641303062439,
-0.8649801015853882,
0.6538326740264893,
-0.08909798413515091,
0.5736879706382751,
0.5153777599334717,
0.0005979248089715838,
0.804463803768158,
-0.33172890543937683,
-0.15418151021003723,
-0.5644828677177429,
-0.39893007278442383,
-0.46096378564834595,
-0.3083876967430115,
1.0562862157821655,
-0.9944221377372742,
-0.7609665393829346,
-0.9381387233734131,
-0.2054121047258377,
0.093489870429039,
0.31626811623573303,
0.16177518665790558,
0.5687193274497986,
0.09457916766405106,
0.4460224509239197,
0.7586800456047058,
-0.012918176129460335,
0.762971043586731,
0.21106766164302826,
0.13418684899806976,
-0.3864002227783203,
0.9611557126045227,
0.3226241171360016,
0.2433098554611206,
0.5788422226905823,
0.7037296891212463,
-0.41629040241241455,
-0.4645358622074127,
-0.1467680037021637,
0.15067332983016968,
-0.4372921884059906,
-0.493805855512619,
-0.8301074504852295,
0.22925475239753723,
-0.8742383122444153,
-0.5865156650543213,
-0.291753351688385,
-0.4708690345287323,
-0.3383551239967346,
-0.40338796377182007,
0.6964907646179199,
0.629611074924469,
-0.5096403956413269,
-0.03456125780940056,
-0.47966399788856506,
0.2476622611284256,
0.2635025382041931,
0.09082819521427155,
0.14857786893844604,
-0.5110067129135132,
-0.19488079845905304,
0.044727638363838196,
-0.4606056809425354,
-0.8959052562713623,
0.7919721007347107,
0.060801513493061066,
0.7461016178131104,
0.004971006885170937,
0.0726676806807518,
1.1782944202423096,
-0.10999858379364014,
1.1109668016433716,
0.3783704936504364,
-1.094364881515503,
0.7512549161911011,
-0.3960201144218445,
0.5445340275764465,
0.4882567226886749,
0.44307705760002136,
-0.5969846844673157,
-0.07626543194055557,
-0.7990863919258118,
-0.931155264377594,
0.8435488939285278,
0.32845741510391235,
-0.3020273745059967,
0.2813301980495453,
-0.32756662368774414,
-0.357828289270401,
0.1638331562280655,
-1.033352255821228,
-0.8590975999832153,
-0.34098270535469055,
-0.3081643283367157,
0.014733540825545788,
-0.02254508063197136,
-0.004869634751230478,
-0.5712080001831055,
0.9437244534492493,
0.2420867532491684,
0.6534647345542908,
0.4205247163772583,
-0.12363865226507187,
-0.22310391068458557,
0.7083224058151245,
0.9436140060424805,
0.8448415398597717,
-0.26520270109176636,
0.26323196291923523,
0.25766637921333313,
-0.6279988884925842,
0.3519020676612854,
-0.5392415523529053,
-0.20969969034194946,
-0.1205611601471901,
0.2357056736946106,
0.4210999310016632,
0.18701058626174927,
0.07393910735845566,
0.6288794279098511,
0.5175549387931824,
-0.28601202368736267,
-0.6924428343772888,
-0.1441894918680191,
0.15815553069114685,
0.1898142248392105,
0.28283146023750305,
0.6135889291763306,
-0.03795687481760979,
-0.6120685935020447,
0.2307216376066208,
0.6023865342140198,
-0.6326267719268799,
-0.18608726561069489,
0.7310125231742859,
0.0073363385163247585,
0.09423656761646271,
0.05370982363820076,
0.023028941825032234,
-1.0900458097457886,
1.0509274005889893,
0.40433281660079956,
0.3403802514076233,
-0.10104872286319733,
0.3522636890411377,
1.1185276508331299,
0.3577883541584015,
-0.19669507443904877,
0.7163926362991333,
0.1003556177020073,
-0.5291270613670349,
0.10637132078409195,
-0.9693534970283508,
0.05216722562909126,
0.02178158424794674,
-0.8442204594612122,
0.4358586072921753,
-0.5238885879516602,
-0.35670214891433716,
0.024345483630895615,
0.18630899488925934,
-0.7984398603439331,
0.939725935459137,
-0.18729931116104126,
0.6729421019554138,
-0.7389138340950012,
0.6538048386573792,
0.7761018872261047,
-0.6953054070472717,
-1.3519083261489868,
-0.35666826367378235,
0.0939272865653038,
-0.9413421750068665,
0.9188855886459351,
-0.19500944018363953,
0.036331698298454285,
-0.05742702633142471,
-0.4100143611431122,
-1.4888882637023926,
1.3674358129501343,
-0.42143723368644714,
-0.18523716926574707,
0.4173564314842224,
0.23448051512241364,
0.6395941376686096,
-0.07469695806503296,
0.26248398423194885,
0.5657432079315186,
0.7515149712562561,
0.040901731699705124,
-1.0460007190704346,
0.4160601496696472,
-0.6082120537757874,
0.01084442250430584,
0.4241107702255249,
-1.1474860906600952,
1.4599145650863647,
-0.35651642084121704,
-0.045762524008750916,
-0.055666983127593994,
0.5670962333679199,
0.2191140204668045,
0.02942630462348461,
0.41983819007873535,
1.0568633079528809,
0.5130236148834229,
-0.6128225922584534,
0.8630367517471313,
-0.3225556015968323,
0.9295085668563843,
0.8571093082427979,
0.38242873549461365,
0.8552652597427368,
0.5906636118888855,
-0.8618771433830261,
0.5241794586181641,
0.5436968207359314,
-0.1597687155008316,
0.9329939484596252,
0.3352400064468384,
-0.20476844906806946,
-0.21848346292972565,
0.0919613316655159,
-0.5881972908973694,
0.386208176612854,
0.16131821274757385,
-0.35953447222709656,
0.06097204610705376,
-0.15468382835388184,
0.4546259641647339,
0.37075909972190857,
-0.5821634531021118,
0.6666420102119446,
-0.08708394318819046,
-0.7396572232246399,
0.45836344361305237,
-0.1816045343875885,
0.9162521362304688,
-0.518497109413147,
0.32968196272850037,
-0.047039780765771866,
0.4962695240974426,
-0.5547972917556763,
-1.029007077217102,
0.18865689635276794,
0.04731407389044762,
-0.3798486590385437,
-0.4025569558143616,
0.4884769320487976,
-0.1281898319721222,
-0.8875678181648254,
0.04639332368969917,
0.1865982860326767,
-0.06228595972061157,
0.4826202094554901,
-0.8585376739501953,
-0.07109848409891129,
0.3471946120262146,
-0.8985247611999512,
0.047672007232904434,
0.6721748113632202,
0.24314522743225098,
0.690131425857544,
0.9700720906257629,
0.22066260874271393,
0.28695186972618103,
-0.2883635461330414,
0.9969977140426636,
-0.8442478179931641,
-0.6986228823661804,
-1.0344114303588867,
0.9709891080856323,
-0.20074693858623505,
-0.5085724592208862,
1.2758030891418457,
0.5415996313095093,
0.6204076409339905,
-0.35729295015335083,
0.8866479992866516,
-0.6121739745140076,
0.9723852872848511,
-0.3201618194580078,
0.8700458407402039,
-0.8205763697624207,
-0.10126667469739914,
-0.5665364861488342,
-0.7609126567840576,
-0.3571382761001587,
0.973107635974884,
-0.4602130949497223,
0.40743905305862427,
0.8238687515258789,
0.9634556770324707,
0.08075615763664246,
-0.20667290687561035,
0.11961491405963898,
0.35633689165115356,
0.018357453867793083,
0.7113773226737976,
0.5614758133888245,
-0.6067726612091064,
0.5171889066696167,
-0.7590968608856201,
0.07722432166337967,
-0.20836696028709412,
-0.8762019276618958,
-0.5123301148414612,
-0.7518907785415649,
-0.6598824262619019,
-0.5690557956695557,
-0.17883095145225525,
1.15898597240448,
0.6358897686004639,
-0.9162697196006775,
-0.5308601260185242,
-0.28021419048309326,
0.28225499391555786,
-0.18728582561016083,
-0.3176869750022888,
0.7406185269355774,
0.056261319667100906,
-0.6945493817329407,
-0.21843892335891724,
0.16160401701927185,
0.4413823187351227,
-0.018112385645508766,
-0.23106323182582855,
-0.43310925364494324,
0.1350608617067337,
0.39259612560272217,
0.25680485367774963,
-0.6701924204826355,
-0.2684924006462097,
0.2975381016731262,
-0.4455278217792511,
0.6370384693145752,
0.1960040181875229,
-0.3268442451953888,
0.2334662526845932,
0.8271599411964417,
0.048818912357091904,
0.4920665919780731,
0.2965088188648224,
-0.028201747685670853,
-0.5369176268577576,
-0.11133134365081787,
0.1710100919008255,
0.4205644726753235,
0.33117276430130005,
-0.49066492915153503,
0.7602865099906921,
0.43247994780540466,
-0.8713396191596985,
-0.8824687600135803,
-0.3167889416217804,
-1.4987101554870605,
-0.1069066971540451,
1.4960886240005493,
-0.07352802157402039,
-0.7784675359725952,
0.11654240638017654,
-0.27838265895843506,
0.2375858724117279,
-0.9044600129127502,
0.5854689478874207,
0.7095985412597656,
-0.25847959518432617,
-0.15485645830631256,
-0.45905569195747375,
0.5986130237579346,
0.4719257652759552,
-0.8417242765426636,
-0.13186132907867432,
0.31179079413414,
0.3179236054420471,
0.3770070970058441,
0.7481836080551147,
-0.2922994792461395,
0.32225915789604187,
0.0986190214753151,
0.043738674372434616,
0.25044551491737366,
-0.05227944254875183,
0.1510898917913437,
0.43717023730278015,
-0.08430346101522446,
-0.35252031683921814
] |
chargoddard/llama2-22b-blocktriangular
|
chargoddard
| 2023-11-23T01:03:34Z | 7,856 | 4 |
transformers
|
[
"transformers",
"pytorch",
"llama",
"text-generation",
"llama2",
"dataset:togethercomputer/RedPajama-Data-1T-Sample",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-07-25T07:11:44Z |
---
datasets:
- togethercomputer/RedPajama-Data-1T-Sample
tags:
- llama2
- llama
---
Similar to llama2-22b, but with BLOCK_DIAGONAL=false in the merge and twice the fine-tuning tokens.
Again, not intended for direct use - meant as a base for further tuning and merging.
# [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_chargoddard__llama2-22b-blocktriangular)
| Metric | Value |
|-----------------------|---------------------------|
| Avg. | 46.86 |
| ARC (25-shot) | 58.28 |
| HellaSwag (10-shot) | 82.69 |
| MMLU (5-shot) | 54.53 |
| TruthfulQA (0-shot) | 39.23 |
| Winogrande (5-shot) | 75.93 |
| GSM8K (5-shot) | 11.22 |
| DROP (3-shot) | 6.17 |
|
[
-0.4149312973022461,
-0.823152482509613,
0.144090473651886,
0.5638028979301453,
-0.44732943177223206,
0.40419554710388184,
-0.4646868407726288,
-0.4736269414424896,
0.5320043563842773,
0.3303465247154236,
-0.701618492603302,
-1.1766833066940308,
-0.8326717019081116,
-0.2825682461261749,
-0.17230740189552307,
1.1422032117843628,
-0.4262886345386505,
-0.004493509419262409,
0.19600383937358856,
-0.35208672285079956,
-0.7937580347061157,
-0.11472132056951523,
-0.5513349175453186,
-0.34182843565940857,
0.3916794955730438,
0.6180543899536133,
0.5308506488800049,
0.6012388467788696,
0.913301408290863,
0.32478177547454834,
-0.3483707308769226,
0.47659188508987427,
-0.9501115679740906,
-0.21435298025608063,
0.0014494830975309014,
-0.258528470993042,
-1.0624268054962158,
0.19471681118011475,
1.000875473022461,
0.4525107443332672,
-0.6022268533706665,
0.443387895822525,
0.32652267813682556,
0.7900064587593079,
-0.28666505217552185,
0.141598179936409,
-0.5954071283340454,
0.2690516412258148,
-0.4566493630409241,
-0.09974229335784912,
-0.025005368515849113,
-0.8696027398109436,
-0.288174033164978,
-0.5650847554206848,
-0.16254183650016785,
0.40922069549560547,
1.1755000352859497,
0.29908499121665955,
-0.1770278364419937,
-0.21929869055747986,
-0.19875866174697876,
0.6267101168632507,
-0.6410033702850342,
0.15852180123329163,
0.46310949325561523,
0.6485044360160828,
-0.2718636393547058,
-0.39978915452957153,
-0.22645315527915955,
0.13680298626422882,
0.005773079581558704,
0.43496450781822205,
-0.423061341047287,
0.0019484589574858546,
-0.2154943346977234,
0.6400809288024902,
-0.792539656162262,
0.5886768698692322,
-0.7135926485061646,
-0.15113060176372528,
0.9089829921722412,
0.685228168964386,
-0.06224290281534195,
-0.060780346393585205,
-0.8014750480651855,
-0.12069544941186905,
-0.6715657114982605,
0.2238640934228897,
0.630685031414032,
0.1820053607225418,
-0.6051568388938904,
0.8880753517150879,
-0.2714102566242218,
0.5397477149963379,
0.44194814562797546,
-0.18676987290382385,
0.6116513609886169,
-0.8124620318412781,
-0.2579316198825836,
0.00794776901602745,
0.9453970193862915,
1.0345408916473389,
0.008598770946264267,
-0.001457177335396409,
-0.13723988831043243,
0.02598607912659645,
0.05960974842309952,
-1.0076336860656738,
-0.4048309922218323,
0.17017176747322083,
-0.6748785376548767,
-0.32050010561943054,
0.35232260823249817,
-0.8178767561912537,
-0.02863645926117897,
-0.053811002522706985,
0.20982575416564941,
-0.3888460099697113,
-0.21064423024654388,
0.151793971657753,
-0.14620693027973175,
0.44463375210762024,
0.2404918670654297,
-0.5978057384490967,
0.4940609335899353,
0.9123881459236145,
1.0203933715820312,
-0.7249689102172852,
-0.32510796189308167,
-0.2352527678012848,
-0.26946601271629333,
-0.5574716925621033,
0.786874532699585,
-0.16775068640708923,
-0.7745243310928345,
-0.28681233525276184,
-0.18713770806789398,
0.1509687453508377,
-0.9413822293281555,
0.5938034057617188,
-0.13925933837890625,
0.09607784450054169,
-0.32660943269729614,
-0.28493598103523254,
-0.10687626898288727,
0.4640219807624817,
-0.4485125243663788,
1.37799870967865,
0.08151713013648987,
-0.4044186770915985,
0.6315888166427612,
-0.5782235860824585,
-0.06356241554021835,
0.07948518544435501,
-0.13218379020690918,
-0.6471126079559326,
-0.12408042699098587,
-0.07283191382884979,
0.40188661217689514,
-0.2385418564081192,
0.3059135377407074,
-0.43688252568244934,
-0.5294988751411438,
0.1211736798286438,
-0.222206249833107,
0.5494405627250671,
0.15502725541591644,
-0.13340730965137482,
0.13193047046661377,
-0.7547866106033325,
0.20130696892738342,
-0.09730350971221924,
-0.6140797734260559,
0.12848830223083496,
-0.4731621742248535,
-0.03231307491660118,
0.21626591682434082,
0.688126266002655,
-0.5522735118865967,
0.36956149339675903,
0.023412005975842476,
-0.08787195384502411,
1.0321661233901978,
0.04585853964090347,
0.2331327199935913,
-0.6835640072822571,
0.4580736458301544,
0.11375787854194641,
0.2260827273130417,
0.4340642988681793,
-0.905894935131073,
-0.7218551635742188,
-0.9016057848930359,
0.1458386331796646,
0.6303194165229797,
-0.16245494782924652,
1.0205309391021729,
0.07010027021169662,
-0.9338119029998779,
-0.7685186266899109,
0.20871350169181824,
0.7487263083457947,
0.4949166476726532,
0.3480723202228546,
-0.4422384798526764,
-0.7072386145591736,
-1.1156160831451416,
-0.0029404438100755215,
-0.24520079791545868,
0.27971911430358887,
0.5814670920372009,
0.5400316119194031,
-0.10808581113815308,
0.6213556528091431,
-0.7861754894256592,
-0.5263538956642151,
0.2107425183057785,
0.04696885868906975,
0.779106855392456,
0.5375930666923523,
0.5550166964530945,
-0.2448073774576187,
-0.5406255722045898,
0.19379447400569916,
-0.8860666155815125,
-0.28623074293136597,
0.3904459774494171,
-0.5071352124214172,
0.15357688069343567,
0.03991689532995224,
-0.7145703434944153,
0.720248818397522,
0.7071853280067444,
-0.8212565779685974,
0.8056967258453369,
-0.11849105358123779,
0.595782458782196,
-0.9983976483345032,
0.21278753876686096,
-0.08799303323030472,
-0.11943557858467102,
-0.24595923721790314,
0.20952992141246796,
0.053243495523929596,
0.3305644392967224,
-0.36536645889282227,
0.4574644863605499,
-0.3498079478740692,
-0.1479353904724121,
-0.1529044359922409,
0.234837144613266,
-0.3053058981895447,
0.41935765743255615,
-0.35918664932250977,
0.7523186206817627,
0.43061715364456177,
-0.24336907267570496,
0.60606849193573,
0.5200617909431458,
-0.5178617238998413,
0.7563489675521851,
-0.53303462266922,
-0.16895385086536407,
0.10712636262178421,
0.26996639370918274,
-1.2471601963043213,
0.06015629321336746,
0.3435276746749878,
-0.4447583854198456,
0.1011614054441452,
0.0562116764485836,
-0.4205388128757477,
-0.4196077883243561,
-0.8891900777816772,
0.6033232808113098,
0.620509684085846,
-0.5983340740203857,
-0.10402677953243256,
0.20608702301979065,
-0.07732044905424118,
-0.6384595036506653,
-0.9297223687171936,
-0.043343935161828995,
-0.40519979596138,
-0.6647780537605286,
0.49642762541770935,
-0.43794476985931396,
-0.07589507848024368,
0.19787152111530304,
-0.1006070077419281,
-0.06617652624845505,
-0.17586073279380798,
0.6219130754470825,
0.8070738315582275,
-0.2567352056503296,
-0.4035666286945343,
-0.041620176285505295,
-0.19328100979328156,
-0.1438349187374115,
-0.02260766550898552,
0.5857526659965515,
-0.3334364593029022,
-0.21760563552379608,
-0.6825078725814819,
0.07825302332639694,
0.42894208431243896,
-0.05632676184177399,
0.6694126725196838,
0.7460331916809082,
-0.4370836913585663,
0.09455917775630951,
-0.530544102191925,
0.05019832402467728,
-0.5153581500053406,
0.3434305489063263,
-0.5215822458267212,
-1.0607417821884155,
1.0068851709365845,
0.32557064294815063,
-0.051520347595214844,
0.7348056435585022,
0.9911229014396667,
-0.11772897094488144,
0.6217252612113953,
0.2969522774219513,
-0.02417427860200405,
0.21410079300403595,
-0.5204137563705444,
0.12412627786397934,
-1.133872389793396,
-1.0567636489868164,
-0.3310464322566986,
-0.8269391655921936,
-1.081916332244873,
-0.4311906397342682,
0.21884341537952423,
0.5392961502075195,
-0.42839717864990234,
0.602870762348175,
-0.5480175614356995,
0.37088191509246826,
0.29459041357040405,
0.15288175642490387,
0.28296366333961487,
-0.13221746683120728,
-0.28587645292282104,
-0.2844630181789398,
-0.45878058671951294,
-0.24677219986915588,
1.149532675743103,
0.3986819386482239,
0.9245492219924927,
0.5050157308578491,
0.8991100192070007,
0.20025217533111572,
0.10778598487377167,
-0.7522741556167603,
0.6083550453186035,
-0.19454292953014374,
-0.5334670543670654,
-0.1082400530576706,
-0.5122649073600769,
-0.7714017629623413,
0.2629966139793396,
-0.44902482628822327,
-0.8880537152290344,
0.022605231031775475,
0.04248236492276192,
-0.2421792447566986,
0.45626088976860046,
-0.2973291277885437,
0.6803373694419861,
-0.0706319808959961,
-0.12180807441473007,
-0.29098936915397644,
-0.27636513113975525,
0.6809988617897034,
-0.21464291214942932,
0.04931241273880005,
-0.36285704374313354,
-0.09933992475271225,
0.792850136756897,
-0.6055408120155334,
0.5143706202507019,
-0.09126932919025421,
-0.02398475632071495,
0.38720181584358215,
0.18523326516151428,
0.2941168248653412,
0.3128620684146881,
-0.005077107809484005,
0.6719018816947937,
-0.4036305844783783,
-0.36102280020713806,
-0.36160701513290405,
1.09632408618927,
-1.1177364587783813,
-0.4067908227443695,
-0.3872666358947754,
-0.5332580804824829,
0.23544389009475708,
0.09336524456739426,
0.18510089814662933,
0.2676382064819336,
-0.40648525953292847,
0.18422169983386993,
0.23456460237503052,
0.1719248741865158,
0.5548067092895508,
0.45609861612319946,
-0.5188767910003662,
-0.8798696398735046,
0.6807560920715332,
0.036465249955654144,
0.0744900330901146,
0.10375458747148514,
0.09872664511203766,
-0.40527617931365967,
-0.7890173196792603,
-0.24197374284267426,
0.2850726842880249,
-0.4051903486251831,
-0.5571315884590149,
-0.06332403421401978,
-0.45111918449401855,
0.0017791454447433352,
-0.1847166270017624,
-0.4760606586933136,
-0.7334496974945068,
-0.36423349380493164,
-0.426827073097229,
0.40631231665611267,
0.9618476629257202,
-0.5169514417648315,
0.32906273007392883,
-0.47621527314186096,
0.12347976863384247,
0.18010945618152618,
0.7008893489837646,
-0.26478102803230286,
-0.8464017510414124,
-0.1061912253499031,
-0.18170586228370667,
-0.5560071468353271,
-0.6572878956794739,
0.18011587858200073,
0.042877938598394394,
0.6644055247306824,
0.5210710763931274,
-0.3996124863624573,
1.055594563484192,
-0.5388673543930054,
0.9609715342521667,
0.7036013007164001,
-0.6883646249771118,
0.34140387177467346,
-0.2277628481388092,
0.010031082667410374,
0.7287834286689758,
0.20522989332675934,
-0.21490256488323212,
-0.37984317541122437,
-0.4689187705516815,
-0.9270530939102173,
0.7107272148132324,
0.3368142247200012,
-0.4575674831867218,
0.12776799499988556,
0.20265765488147736,
0.25968992710113525,
0.24449440836906433,
-0.3647688031196594,
-0.6135603189468384,
-0.23776698112487793,
-0.3107157051563263,
-0.10534288734197617,
-0.20551331341266632,
-0.3342379033565521,
-0.33173316717147827,
0.5342994928359985,
0.20438915491104126,
0.20552727580070496,
-0.2744419574737549,
0.14381156861782074,
-0.2737894058227539,
-0.21739108860492706,
0.8228480219841003,
0.9092317819595337,
-0.7777171730995178,
-0.1299871951341629,
0.4171411395072937,
-0.49985215067863464,
-0.030226606875658035,
0.11459971964359283,
0.22718146443367004,
-0.2647366523742676,
0.522857666015625,
0.775392472743988,
0.11507724970579147,
-0.32331138849258423,
0.427217572927475,
0.11372991651296616,
-0.520263671875,
0.07757887244224548,
-0.019885769113898277,
-0.008842280134558678,
0.5939790606498718,
0.3191426396369934,
0.14249679446220398,
0.07004425674676895,
-0.3995221257209778,
0.40498554706573486,
0.6276208162307739,
-0.4090644121170044,
-0.25842538475990295,
0.4991038143634796,
0.18352952599525452,
-0.4298105537891388,
0.45224887132644653,
-0.2604130804538727,
-0.3740507960319519,
0.6928496360778809,
0.6297821998596191,
0.6951289176940918,
-0.26739734411239624,
0.15639740228652954,
0.5254461765289307,
0.4081461727619171,
0.22650234401226044,
0.5442323684692383,
0.034477606415748596,
-0.5702509880065918,
-0.24481479823589325,
-0.5169707536697388,
-0.2694282829761505,
-0.04803383722901344,
-0.8861261606216431,
0.40374889969825745,
-0.7198486924171448,
-0.37196385860443115,
-0.07235144078731537,
0.4392619729042053,
-0.6566027998924255,
0.1300002485513687,
0.1842135787010193,
1.0646378993988037,
-0.7100331783294678,
0.7003175616264343,
0.6333509683609009,
-0.18807056546211243,
-0.5324648022651672,
-0.4513706564903259,
0.1802130788564682,
-1.2925915718078613,
0.5663834810256958,
0.06125277280807495,
-0.011796960607171059,
-0.6312674283981323,
-0.31093499064445496,
-0.9530697464942932,
1.7182040214538574,
0.04361913725733757,
-0.7051776051521301,
0.2859472334384918,
0.09680651873350143,
0.3445219099521637,
-0.33991488814353943,
0.4353511929512024,
0.5851468443870544,
0.7218366861343384,
0.2362639456987381,
-1.366092324256897,
0.12101369351148605,
-0.12793150544166565,
0.02300042100250721,
0.4219135046005249,
-1.3278297185897827,
0.9343383312225342,
-0.053089771419763565,
-0.026494652032852173,
0.3694320321083069,
0.5097679495811462,
0.7588139176368713,
0.24368822574615479,
0.2017572522163391,
1.2160823345184326,
0.8520225882530212,
-0.36293113231658936,
0.5841306447982788,
-0.21816469728946686,
0.7684119343757629,
0.9331288933753967,
-0.1299305409193039,
0.8912522792816162,
0.3034293055534363,
-0.26810380816459656,
0.5790823101997375,
0.7979031205177307,
-0.07724983990192413,
0.8840582370758057,
0.14136222004890442,
0.20164333283901215,
-0.13952438533306122,
0.11217041313648224,
-0.6409803032875061,
0.7336950898170471,
0.16970084607601166,
0.01466998178511858,
-0.32995539903640747,
-0.6591681241989136,
0.20427341759204865,
0.11149436235427856,
-0.33453184366226196,
0.6646538972854614,
0.14936289191246033,
-0.3165140151977539,
0.7010763883590698,
0.28198808431625366,
0.934714674949646,
-0.4848102927207947,
-0.11232106387615204,
-0.3956385552883148,
0.06858374923467636,
-0.46711835265159607,
-1.401633858680725,
0.22115802764892578,
0.07421468198299408,
-0.08297417312860489,
-0.0597553625702858,
0.4625050723552704,
-0.5154117345809937,
-0.3576851785182953,
0.49254050850868225,
0.2769812345504761,
0.23653607070446014,
0.48305779695510864,
-0.732075572013855,
0.364434152841568,
-0.04524868354201317,
-0.09479310363531113,
0.171415776014328,
0.12199778109788895,
0.19149275124073029,
0.6203422546386719,
0.6639999151229858,
0.2284504473209381,
0.21758835017681122,
-0.36567533016204834,
0.9674499034881592,
-0.79559326171875,
-0.6136527061462402,
-1.0511858463287354,
0.543049156665802,
-0.29645949602127075,
-0.9356238842010498,
0.740039587020874,
1.0804814100265503,
0.631438136100769,
0.3284185230731964,
0.28850752115249634,
0.17037318646907806,
0.1596236228942871,
-0.8060433864593506,
0.9775670766830444,
-0.5524670481681824,
0.04316325485706329,
0.08461069315671921,
-1.2047741413116455,
-0.28699564933776855,
0.5352258682250977,
0.055478211492300034,
-0.11818130314350128,
0.6681991815567017,
0.8797553777694702,
0.0012382462155073881,
-0.11294525861740112,
0.2897334098815918,
0.4868147671222687,
0.06162970885634422,
0.8419252634048462,
0.8192319869995117,
-0.4519553780555725,
0.5100661516189575,
-0.010447449050843716,
-0.5506478548049927,
-0.5700494050979614,
-0.6974523663520813,
-1.1421096324920654,
-0.2390492856502533,
-0.2950955927371979,
-0.5681073069572449,
0.2602534890174866,
0.7507185935974121,
0.7062088251113892,
-0.7877370715141296,
-0.47788310050964355,
0.3514619767665863,
0.19570939242839813,
0.013015213422477245,
-0.2404220700263977,
0.48944205045700073,
0.15575936436653137,
-0.5841773748397827,
0.48279353976249695,
0.3982236683368683,
-0.1343649923801422,
-0.10820069164037704,
-0.4959729313850403,
-0.08886408805847168,
0.009754981845617294,
0.4293818473815918,
0.026188336312770844,
-0.8584240078926086,
-0.3716561496257782,
-0.2899934947490692,
-0.22737708687782288,
0.3752248287200928,
0.20968306064605713,
-0.5064347982406616,
0.1901048719882965,
0.5132291316986084,
0.30880552530288696,
0.8643773794174194,
0.20847201347351074,
0.047715164721012115,
-0.7458816766738892,
0.1650586724281311,
-0.12783826887607574,
0.3282392621040344,
0.1364150494337082,
-0.21662366390228271,
0.5615842938423157,
0.25332728028297424,
-0.5955542325973511,
-0.7650954127311707,
-0.006570379715412855,
-1.5105931758880615,
0.1432037353515625,
1.1287299394607544,
-0.05263758823275566,
-0.010306852869689465,
0.6186414957046509,
-0.24248546361923218,
0.19392763078212738,
-0.7796221375465393,
0.6333522200584412,
0.6696856617927551,
-0.2208523154258728,
0.1366005390882492,
-0.22160297632217407,
0.1705274134874344,
0.24861960113048553,
-0.862358570098877,
-0.45490413904190063,
0.32390913367271423,
0.33579665422439575,
-0.037445493042469025,
0.5051693320274353,
-0.41886985301971436,
0.3102412521839142,
-0.10439793020486832,
0.09155421704053879,
-0.27963119745254517,
-0.48936131596565247,
-0.3057376742362976,
-0.002251090481877327,
0.06503170728683472,
-0.7437075972557068
] |
cerebras/Cerebras-GPT-1.3B
|
cerebras
| 2023-11-22T21:47:29Z | 7,846 | 44 |
transformers
|
[
"transformers",
"pytorch",
"gpt2",
"causal-lm",
"text-generation",
"en",
"dataset:the_pile",
"arxiv:2304.03208",
"arxiv:2203.15556",
"arxiv:2101.00027",
"license:apache-2.0",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-03-20T20:43:21Z |
---
language:
- en
tags:
- pytorch
- causal-lm
license: apache-2.0
datasets:
- the_pile
pipeline_tag: text-generation
---
# Cerebras-GPT 1.3B
Check out our [Blog Post](https://www.cerebras.net/cerebras-gpt) and [arXiv paper](https://arxiv.org/abs/2304.03208)!
## Model Description
The Cerebras-GPT family is released to facilitate research into LLM scaling laws using open architectures and data sets and demonstrate the simplicity of and scalability of training LLMs on the Cerebras software and hardware stack. All Cerebras-GPT models are available on Hugging Face.
The family includes 111M, 256M, 590M, 1.3B, 2.7B, 6.7B, and 13B models.
All models in the Cerebras-GPT family have been trained in accordance with [Chinchilla scaling laws](https://arxiv.org/abs/2203.15556) (20 tokens per model parameter) which is compute-optimal.
These models were trained on the [Andromeda](https://www.cerebras.net/andromeda/) AI supercomputer comprised of 16 CS-2 wafer scale systems. Cerebras' [weight streaming technology](https://www.cerebras.net/blog/linear-scaling-made-possible-with-weight-streaming) simplifies the training of LLMs by disaggregating compute from model storage. This allowed for efficient scaling of training across nodes using simple data parallelism.
Cerebras systems for pre-training and fine tuning are available in the cloud via the [Cerebras Model Studio](https://www.cerebras.net/product-cloud/). Cerebras CS-2 compatible checkpoints are available in [Cerebras Model Zoo](https://github.com/Cerebras/modelzoo).
## Model Details
* Developed by: [Cerebras Systems](https://www.cerebras.net/)
* License: Apache 2.0
* Model type: Transformer-based Language Model
* Architecture: GPT-3 style architecture
* Data set: The Pile
* Tokenizer: Byte Pair Encoding
* Vocabulary Size: 50257
* Sequence Length: 2048
* Optimizer: AdamW, (β1, β2) = (0.9, 0.95), adam_eps = 1e−8 (1e−9 for larger models)
* Positional Encoding: Learned
* Language: English
* Learn more: Dense Scaling Laws Paper for training procedure, config files, and details on how to use.
**Contact**: To ask questions about Cerebras-GPT models, join the [Cerebras Discord](https://discord.gg/q6bZcMWJVu).
This is the standard parameterization version of Cerebras-GPT with **1.3B** parameters
Related models: [Cerebras-GPT Models](https://huggingface.co/models?sort=downloads&search=cerebras-gpt)
<br><br>
| Model | Parameters | Layers | d_model | Heads | d_head | d_ffn | LR | BS (seq) | BS (tokens) |
|---------------|------------|--------|---------|-------|--------|--------|----------|----------|----------------|
| Cerebras-GPT | 111M | 10 | 768 | 12 | 64 | 3072 | 6.0E-04 | 120 | 246K |
| Cerebras-GPT | 256M | 14 | 1088 | 17 | 64 | 4352 | 6.0E-04 | 264 | 541K |
| Cerebras-GPT | 590M | 18 | 1536 | 12 | 128 | 6144 | 2.0E-04 | 264 | 541K |
| Cerebras-GPT | 1.3B | 24 | 2048 | 16 | 128 | 8192 | 2.0E-04 | 528 | 1.08M |
| Cerebras-GPT | 2.7B | 32 | 2560 | 32 | 80 | 10240 | 2.0E-04 | 528 | 1.08M |
| Cerebras-GPT | 6.7B | 32 | 4096 | 32 | 128 | 16384 | 1.2E-04 | 1040 | 2.13M |
| Cerebras-GPT | 13B | 40 | 5120 | 40 | 128 | 20480 | 1.2E-04 | 720 → 1080 | 1.47M → 2.21M |
<br><br>
## Quickstart
This model can be easily loaded using the AutoModelForCausalLM functionality:
```python
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("cerebras/Cerebras-GPT-1.3B")
model = AutoModelForCausalLM.from_pretrained("cerebras/Cerebras-GPT-1.3B")
text = "Generative AI is "
```
And can be used with Hugging Face Pipelines
```python
from transformers import pipeline
pipe = pipeline("text-generation", model=model, tokenizer=tokenizer)
generated_text = pipe(text, max_length=50, do_sample=False, no_repeat_ngram_size=2)[0]
print(generated_text['generated_text'])
```
or with `model.generate()`
```python
inputs = tokenizer(text, return_tensors="pt")
outputs = model.generate(**inputs, num_beams=5,
max_new_tokens=50, early_stopping=True,
no_repeat_ngram_size=2)
text_output = tokenizer.batch_decode(outputs, skip_special_tokens=True)
print(text_output[0])
```
<br><br>
## Training data
Cerebras-GPT is trained using [the Pile](https://pile.eleuther.ai) dataset from [EleutherAI](https://www.eleuther.ai). See the [Pile paper](https://arxiv.org/abs/2101.00027) for a more detailed breakdown of data sources and methodology. The Pile was cleaned using the ftfy library to normalize the text, then filtered using scripts provided by Eleuther.
We tokenized the data using byte-pair encoding using the GPT-2 vocabulary. Our tokenized version of the Pile has 371B tokens. We include more details about the training dataset preprocessing in Appendix A.1 of our paper.
Recent works find significant duplicate data present in the Pile. Eleuther’s Pythia applies a deduplication process to reduce replicated data, decreasing the Pile dataset size. Pythia was trained on both the standard dataset and deduplicated dataset to characterize the impact. Our models are trained on the standard Pile without deduplication, which may present an opportunity for further improvement with the deduplicated data set.
<br><br>
## Training procedure
We use the GPT-3 style model architecture. All of our layers use full attention as opposed to the GPT-3 style sparse banded attention. The model shapes were selected to either follow aspect ratio 80 or are the same shape as GPT-3 models. Learning rate warmed up for 375M tokens (1500 steps for 111M and 256M models) and 10x cosine decayed. No dropout was used and weight decay was set to 0.1. All models are trained with MSL of 2048.
All models were trained to Chinchilla point: 20 tokens per model parameter. Number of steps was chosen based on optimal batch size (varied by model) and fixed sequence length (2048). See Training Table, below, for details.
<br>
Model Params | Sequence Length | Batch Size | Number of Steps | Tokens | Tokens per Parameter | Flops
------------ | -------------- | ---------- | --------------- | ------ | -------------------- | -----
111M | 2048 | 120 | 9037 | 2.22E+09 | 20 | 2.6E+18
256M | 2048 | 264 | 9468 | 5.12E+09 | 20 | 1.3E+19
590M | 2048 | 264 | 21836 | 1.18E+10 | 20 | 6.1E+19
1.3B | 2048 | 528 | 24334 | 2.63E+10 | 20 | 2.8E+20
2.7B | 2048 | 528 | 49041 | 5.30E+10 | 20 | 1.1E+21
6.7B | 2048 | 1040 | 62522 | 1.33E+11 | 20 | 6.3E+21
13B | 2048 | 720 | 174335 | 2.57E+11 | 20 | 2.3E+22
<br><br>
## Evaluations
We trained models from smallest to largest and fit a power law as we went along. The power law was helpful for extrapolating the validation loss of the next largest model we trained and provided confidence about whether the training run was going well.
We performed upstream (pre-training) evaluations of text prediction cross-entropy using the Pile validation and test splits. We performed downstream evaluations of text generation accuracy on standardized tasks using the [Eleuther lm-evaluation-harness](https://github.com/EleutherAI/lm-evaluation-harness). Results are compared against many publicly available large language models in Section 3 of the paper.
#### 0-shot Evaluation
| Model | Params | Training FLOPs | PILE test xent | Hella-Swag | PIQA | Wino-Grande | Lambada | ARC-e | ARC-c | OpenBookQA | Downstream Average |
| ------- | ----- | -------------- | -------------- | ---------- | ----- | ----------- | ------- | ----- | ----- | ---------- | ------------------ |
| Cerebras-GPT | 111M | 2.6E+18 | 2.566 | 0.268 | 0.594 | 0.488 | 0.194 | 0.380 | 0.166 | 0.118 | 0.315 |
| Cerebras-GPT | 256M | 1.3E+19 | 2.299 | 0.274 | 0.613 | 0.511 | 0.293 | 0.410 | 0.170 | 0.158 | 0.347 |
| Cerebras-GPT | 590M | 6.1E+19 | 2.184 | 0.291 | 0.627 | 0.498 | 0.366 | 0.464 | 0.190 | 0.158 | 0.370 |
| Cerebras-GPT | 1.3B | 2.8E+20 | 1.996 | 0.325 | 0.664 | 0.521 | 0.462 | 0.508 | 0.224 | 0.166 | 0.410 |
| Cerebras-GPT | 2.7B | 1.1E+21 | 1.834 | 0.386 | 0.701 | 0.559 | 0.567 | 0.571 | 0.246 | 0.206 | 0.462 |
| Cerebras-GPT | 6.7B | 6.3E+21 | 1.704 | 0.447 | 0.739 | 0.602 | 0.636 | 0.643 | 0.282 | 0.238 | 0.512 |
| Cerebras-GPT | 13B | 2.3E+22 | 1.575 | 0.513 | 0.766 | 0.646 | 0.696 | 0.714 | 0.367 | 0.286 | 0.570 |
#### 5-shot Evaluation
| Model | Params | Hella-Swag | PIQA | Wino-Grande | Lambada | ARC-e | ARC-c | OpenBookQA |
| -------- | ----- | ----------| ----- | ----------- | -------| ----- | ----- | ---------- |
| Cerebras-GPT | 111M | 0.267 | 0.588 | 0.475 | 0.158 | 0.356 | 0.166 | 0.136 |
| Cerebras-GPT | 256M | 0.278 | 0.606 | 0.522 | 0.225 | 0.422 | 0.183 | 0.164 |
| Cerebras-GPT | 590M | 0.291 | 0.634 | 0.479 | 0.281 | 0.475 | 0.206 | 0.152 |
| Cerebras-GPT | 1.3B | 0.326 | 0.668 | 0.536 | 0.395 | 0.529 | 0.241 | 0.174 |
| Cerebras-GPT | 2.7B | 0.382 | 0.697 | 0.543 | 0.487 | 0.590 | 0.267 | 0.224 |
| Cerebras-GPT | 6.7B | 0.444 | 0.736 | 0.590 | 0.591 | 0.667 | 0.314 | 0.270 |
| Cerebras-GPT | 13B | 0.514 | 0.768 | 0.674 | 0.655 | 0.743 | 0.398 | 0.318 |
<br><br>
## Uses and Limitations
### Intended Use
The primary intended use is to further research into large language models. These models can be used as a foundation model for NLP, applications, ethics, and alignment research. Our primary intended users are researchers who are working to improve LLMs and practitioners seeking reference implementations, training setups, hyperparameters, or pre-trained models. We release these models with a fully permissive Apache license for the community to use freely.
You may fine-tune and adapt Cerebras-GPT models for deployment via either Cerebras [Model Studio](https://www.cerebras.net/product-cloud/) or third-party libraries. Further safety-related testing and mitigations should be applied beore using the Cerebras-GPT model family in production downstream applications.
Due to financial and compute budgets, Cerebras-GPT models were only trained and evaluated following the approaches described in the paper.
### Out of Scope Use
Cerebras-GPT models are trained on the Pile, with English language only, and are not suitable for machine translation tasks.
Cerebras-GPT models have not been tuned for human-facing dialog applications like chatbots and will not respond to prompts in a similar way to models that have received instruction tuning or reinforcement learning from human feedback (RLHF) like Flan-T5 or ChatGPT. Cerebras-GPT models can be tuned using those methods.
### Risk, Bias, Ethical Considerations
* **Data**: The Pile dataset has been thoroughly analyzed from various ethical standpoints such as toxicity analysis, gender bias, pejorative content, racially sensitive content etc. Please refer to Pile dataset references.
* **Human life**: The outputs from this model may or may not align with human values. The risk needs to be thoroughly investigated before deploying this model in a production environment where it can directly impact human life.
* **Risks and harms**: There can be distributional bias in the Pile dataset that can manifest in various forms in the downstream model deployment. There are other risks associated with large language models such as amplifying stereotypes, memorizing training data, or revealing private or secure information.
* **Mitigations**: Only mitigations in standard Pile dataset pre-processing were employed when pre-training Cerebras-GPT.
<br><br>
## Acknowledgements
We are thankful to all Cerebras engineers, past and present, that made this work possible.
|
[
-0.37132737040519714,
-0.6477870345115662,
0.2486891746520996,
0.1832980513572693,
-0.2647351026535034,
-0.2070147544145584,
-0.20746859908103943,
-0.42991331219673157,
0.1833469718694687,
0.2874760627746582,
-0.3932560980319977,
-0.4183799922466278,
-0.7478362917900085,
-0.21265171468257904,
-0.41483741998672485,
1.1567734479904175,
-0.08729085326194763,
0.043079763650894165,
0.13717222213745117,
-0.07269001752138138,
-0.1899733990430832,
-0.5718845725059509,
-0.7971348762512207,
-0.4103618562221527,
0.4788188934326172,
-0.007737481966614723,
0.7670468688011169,
0.7970297336578369,
0.35562819242477417,
0.28941044211387634,
-0.3845946490764618,
-0.07022532820701599,
-0.321394145488739,
-0.3230789601802826,
0.14839205145835876,
-0.24621549248695374,
-0.5668330788612366,
-0.09213270246982574,
0.6950654983520508,
0.6472848057746887,
-0.36657437682151794,
0.24988292157649994,
0.3478655517101288,
0.7416145205497742,
-0.4934804141521454,
0.16896656155586243,
-0.4998954236507416,
0.01918034441769123,
-0.2628927230834961,
0.0037489638198167086,
-0.29065650701522827,
-0.21667543053627014,
0.033481795340776443,
-0.5526778101921082,
0.298666387796402,
-0.05162372067570686,
1.293359398841858,
0.23359160125255585,
-0.42857998609542847,
-0.2709978222846985,
-0.42625170946121216,
0.7142820954322815,
-0.7718415856361389,
0.38888898491859436,
0.1865454614162445,
-0.011852027848362923,
-0.022919289767742157,
-0.8616995811462402,
-0.5307658314704895,
-0.22900237143039703,
-0.21617142856121063,
0.16240251064300537,
-0.22187772393226624,
0.05543137341737747,
0.4499017000198364,
0.5289788842201233,
-0.8040716052055359,
0.21567665040493011,
-0.49426326155662537,
-0.23770803213119507,
0.6766363382339478,
0.15303973853588104,
0.1996920108795166,
-0.35199788212776184,
-0.4336456060409546,
-0.3998895585536957,
-0.5198684930801392,
0.32603076100349426,
0.41710346937179565,
0.21227477490901947,
-0.4289150536060333,
0.39445897936820984,
-0.16735483705997467,
0.622107207775116,
0.29405659437179565,
-0.09757979959249496,
0.5528935790061951,
-0.2915841042995453,
-0.45054030418395996,
-0.06474070250988007,
1.0599924325942993,
0.16792619228363037,
0.16820362210273743,
0.09319449961185455,
-0.18954333662986755,
-0.15867377817630768,
0.005801721941679716,
-1.104066014289856,
-0.3547075688838959,
0.1853705644607544,
-0.5873077511787415,
-0.3991619050502777,
0.04323333874344826,
-0.7048627734184265,
-0.20372441411018372,
-0.4039032459259033,
0.5040227770805359,
-0.5096352696418762,
-0.34516048431396484,
0.09778854250907898,
0.038832888007164,
0.4491734802722931,
0.26256465911865234,
-1.2028728723526,
0.3007325232028961,
0.40785515308380127,
0.862144410610199,
0.04568870738148689,
-0.3889251947402954,
-0.23432296514511108,
-0.021906984969973564,
-0.148826465010643,
0.47797438502311707,
-0.026851657778024673,
-0.36112552881240845,
-0.23176753520965576,
0.12334711104631424,
-0.4370317757129669,
-0.3597859740257263,
0.5058753490447998,
-0.3509247601032257,
0.22543413937091827,
-0.14664100110530853,
-0.5399572849273682,
-0.37995365262031555,
0.17184904217720032,
-0.5610413551330566,
1.1210618019104004,
0.20533736050128937,
-0.9439700245857239,
0.2762928903102875,
-0.47491636872291565,
-0.2559312880039215,
-0.07912515103816986,
-0.14409255981445312,
-0.6505762934684753,
-0.16940009593963623,
0.44276076555252075,
0.5865827202796936,
-0.33440661430358887,
0.33790287375450134,
-0.2302025407552719,
-0.289605975151062,
-0.0925314873456955,
-0.5152866244316101,
1.1896889209747314,
0.2905484139919281,
-0.6144596338272095,
-0.007592540234327316,
-0.7387273907661438,
0.1378065049648285,
0.3675806224346161,
-0.40989482402801514,
0.11481929570436478,
-0.2161923050880432,
0.11023246496915817,
0.24382396042346954,
0.36643168330192566,
-0.2785719633102417,
0.2034490406513214,
-0.44781771302223206,
0.5351594090461731,
0.7181231379508972,
0.05435724928975105,
0.3088390529155731,
-0.31208205223083496,
0.46001356840133667,
0.08798865973949432,
0.24533069133758545,
-0.1422201693058014,
-0.5229479074478149,
-0.7580730319023132,
-0.24922248721122742,
0.4438489079475403,
0.5657373666763306,
-0.4583534896373749,
0.4971884787082672,
-0.30983075499534607,
-0.805266261100769,
-0.2241480052471161,
0.07057230919599533,
0.47457337379455566,
0.5448576211929321,
0.4494726359844208,
-0.25127726793289185,
-0.491216778755188,
-0.9712440371513367,
-0.06987056881189346,
-0.2564218044281006,
-0.052414264529943466,
0.2043769657611847,
0.777751624584198,
-0.04381546378135681,
0.7260618805885315,
-0.47487252950668335,
-0.06759640574455261,
-0.08025671541690826,
0.19314835965633392,
0.4510191082954407,
0.6452316045761108,
0.6208077669143677,
-0.768004298210144,
-0.551873505115509,
0.02531137689948082,
-0.8201636075973511,
0.13199079036712646,
-0.20463792979717255,
0.055140238255262375,
0.3023837208747864,
0.4433664083480835,
-0.7351734042167664,
0.3695788085460663,
0.6519896388053894,
-0.3357642590999603,
0.6416572332382202,
-0.2672808766365051,
-0.006712161935865879,
-1.079411268234253,
0.30733489990234375,
0.1484740972518921,
-0.0368071012198925,
-0.6008259057998657,
0.0656697005033493,
0.24328164756298065,
0.04417773336172104,
-0.6191775798797607,
0.546268105506897,
-0.6002565622329712,
0.006559006404131651,
0.010271851904690266,
0.13296419382095337,
-0.09600464254617691,
0.8637049794197083,
0.09595581144094467,
0.7000516653060913,
0.6354902982711792,
-0.6508972644805908,
0.1104622408747673,
0.1649322509765625,
-0.2279549241065979,
0.3586902916431427,
-0.8449602127075195,
0.03354715555906296,
-0.03121989220380783,
0.358782559633255,
-0.723412811756134,
-0.17753678560256958,
0.2575341761112213,
-0.6002519130706787,
0.516950786113739,
-0.27014628052711487,
-0.4258803427219391,
-0.6547336578369141,
-0.2997289299964905,
0.3375672399997711,
0.7021633386611938,
-0.592479407787323,
0.5601896643638611,
0.25911951065063477,
-0.04485991597175598,
-0.6668065786361694,
-0.7351049184799194,
-0.05402606353163719,
-0.3981553912162781,
-0.8564451336860657,
0.5291537642478943,
-0.06725288927555084,
0.002859532367438078,
-0.19428972899913788,
0.03710375353693962,
0.03624391183257103,
0.03798859938979149,
0.2990819215774536,
0.2891922891139984,
-0.14275234937667847,
-0.10511547327041626,
0.01437422726303339,
-0.08578827977180481,
0.07760092616081238,
-0.35353749990463257,
0.7074089050292969,
-0.40570068359375,
-0.24501827359199524,
-0.5326364636421204,
-0.16687637567520142,
0.5836924910545349,
-0.1856904774904251,
0.8502303957939148,
0.8201037049293518,
-0.5408328771591187,
0.17352695763111115,
-0.4685129225254059,
-0.02362874522805214,
-0.5019637942314148,
0.49639225006103516,
-0.3974011540412903,
-0.7317320108413696,
0.7394647598266602,
0.3098827004432678,
0.10197624564170837,
0.8427886962890625,
0.7510225176811218,
0.11275114119052887,
1.1310769319534302,
0.3897467255592346,
-0.20051710307598114,
0.5018775463104248,
-0.7106388211250305,
-0.002399397548288107,
-0.9677932858467102,
-0.26164814829826355,
-0.4456189274787903,
-0.1783033013343811,
-0.7192695140838623,
-0.28940364718437195,
0.2578337788581848,
0.3719245195388794,
-0.68412846326828,
0.5156573057174683,
-0.7466445565223694,
0.23513445258140564,
0.48268988728523254,
0.20449748635292053,
0.0745004415512085,
0.009478003717958927,
-0.31833627820014954,
0.007177322171628475,
-0.7188400030136108,
-0.48929616808891296,
1.2474136352539062,
0.5630270838737488,
0.4539271593093872,
-0.11099547892808914,
0.7922678589820862,
-0.03264254331588745,
0.4052885174751282,
-0.622918426990509,
0.4504481554031372,
-0.08965984731912613,
-0.6300012469291687,
-0.328835129737854,
-0.5805951356887817,
-1.0168536901474,
0.509209930896759,
0.021710092201828957,
-1.0042990446090698,
0.258990079164505,
0.11946948617696762,
-0.4610689878463745,
0.6055111885070801,
-0.5802945494651794,
0.9477499127388,
-0.2635311186313629,
-0.3909974694252014,
-0.14585451781749725,
-0.7301956415176392,
0.48564261198043823,
-0.03330569714307785,
0.22802765667438507,
0.14463405311107635,
0.08339368551969528,
0.9653503894805908,
-0.683724582195282,
0.721470057964325,
-0.3451988101005554,
-0.16767269372940063,
0.5615792274475098,
-0.11022469401359558,
0.7846691012382507,
-0.00486077181994915,
-0.07832587510347366,
0.25604376196861267,
0.008801116608083248,
-0.420524924993515,
-0.25622260570526123,
0.769092321395874,
-1.0846517086029053,
-0.4752146303653717,
-0.5235874652862549,
-0.5031378269195557,
0.06748456507921219,
0.15863779187202454,
0.5206818580627441,
0.392678439617157,
0.021655648946762085,
0.3770882189273834,
0.6444758176803589,
-0.18468347191810608,
0.6821105480194092,
0.300089031457901,
-0.23475416004657745,
-0.6212422847747803,
0.8392255902290344,
0.2997644245624542,
0.2535587251186371,
0.19912485778331757,
0.10721743106842041,
-0.3932679295539856,
-0.6261842250823975,
-0.5606887936592102,
0.3144265115261078,
-0.6421874761581421,
-0.13698254525661469,
-0.8104154467582703,
-0.4272870719432831,
-0.46330469846725464,
-0.13710728287696838,
-0.3353077173233032,
-0.41394343972206116,
-0.33492881059646606,
-0.09017974138259888,
0.3539406657218933,
0.5280788540840149,
-0.10528980195522308,
0.39002475142478943,
-0.7391983270645142,
0.09072646498680115,
0.31874871253967285,
0.13726510107517242,
0.1986352950334549,
-0.9756718873977661,
-0.35503166913986206,
0.11749277263879776,
-0.6517423987388611,
-0.8298593163490295,
0.587572455406189,
-0.06227854639291763,
0.4670529067516327,
0.3165978193283081,
-0.3042459785938263,
0.7305429577827454,
-0.29279428720474243,
0.9807121157646179,
0.33624038100242615,
-0.9691725373268127,
0.529217004776001,
-0.6143032908439636,
0.208772212266922,
0.44034984707832336,
0.38688164949417114,
-0.500491738319397,
-0.19109417498111725,
-0.995769739151001,
-0.9974516034126282,
0.7640895843505859,
0.3633241355419159,
-0.01912924088537693,
0.1391092985868454,
0.4697052538394928,
-0.17072667181491852,
0.14930079877376556,
-1.057822585105896,
-0.28711998462677,
-0.30353599786758423,
-0.1863866001367569,
-0.029209285974502563,
0.046641755849123,
0.147577702999115,
-0.48924148082733154,
0.8868592381477356,
-0.10686419904232025,
0.24652159214019775,
0.26875239610671997,
-0.17830653488636017,
-0.13870811462402344,
-0.04991282895207405,
0.5331815481185913,
0.5668799877166748,
-0.168812096118927,
-0.2722630202770233,
0.44552913308143616,
-0.75841224193573,
0.043528348207473755,
0.31364530324935913,
-0.3586239814758301,
-0.1314357966184616,
0.25179046392440796,
0.9489386677742004,
0.18536952137947083,
-0.3006499111652374,
0.4708542227745056,
0.03516162186861038,
-0.576795220375061,
-0.3979520797729492,
0.0001445436937501654,
0.20169015228748322,
0.19960474967956543,
0.3805839419364929,
-0.007044327910989523,
0.015206830576062202,
-0.28835490345954895,
0.1363622546195984,
0.36769405007362366,
-0.29637327790260315,
-0.2724018096923828,
0.9681066274642944,
-0.03282013162970543,
-0.09080429375171661,
0.6864901185035706,
-0.19308428466320038,
-0.5026760101318359,
1.02116060256958,
0.3367082178592682,
0.8584913015365601,
-0.2742592990398407,
0.1430354118347168,
0.8424656987190247,
0.3936004936695099,
-0.2717786133289337,
0.04409067705273628,
0.08581459522247314,
-0.4998282194137573,
-0.2893272042274475,
-0.8122072219848633,
-0.2176111489534378,
0.3444186747074127,
-0.7239813804626465,
0.49847450852394104,
-0.5076395869255066,
-0.106907419860363,
-0.09005513042211533,
0.33176445960998535,
-0.7745464444160461,
0.39510577917099,
0.2944742739200592,
0.8669479489326477,
-0.84780353307724,
0.9256867170333862,
0.5200110077857971,
-0.748096227645874,
-1.2065008878707886,
-0.05922161042690277,
-0.0274382121860981,
-0.857380211353302,
0.5466437339782715,
0.2966408431529999,
0.23327207565307617,
0.2085428535938263,
-0.5381553173065186,
-1.201328992843628,
1.6173149347305298,
0.25022509694099426,
-0.7335017919540405,
-0.19328871369361877,
0.0791582241654396,
0.5675485134124756,
-0.11757808923721313,
0.518984317779541,
0.5382152795791626,
0.46515533328056335,
0.012042568996548653,
-1.0694069862365723,
0.2754613161087036,
-0.2958165109157562,
0.0957559123635292,
0.29982560873031616,
-1.0831630229949951,
1.2170201539993286,
-0.14005228877067566,
-0.04324013367295265,
0.126091867685318,
0.7377760410308838,
0.5505101084709167,
0.14235715568065643,
0.5688793063163757,
0.8381733298301697,
0.8474354147911072,
-0.0908537283539772,
1.180833339691162,
-0.6030701994895935,
0.7286249995231628,
0.9058736562728882,
0.04046591371297836,
0.7380616068840027,
0.43037140369415283,
-0.4412258267402649,
0.6351515650749207,
0.9356951117515564,
-0.17115901410579681,
0.2753067910671234,
0.2721726596355438,
-0.058025192469358444,
-0.09538579732179642,
0.2140536606311798,
-0.6180263161659241,
0.1467227190732956,
0.28155210614204407,
-0.5166041851043701,
-0.1274903416633606,
-0.024490568786859512,
0.26576125621795654,
-0.18993423879146576,
-0.42192721366882324,
0.3959963917732239,
0.15373525023460388,
-0.6081413626670837,
0.9267343282699585,
0.09569831937551498,
0.7183078527450562,
-0.5343931913375854,
0.3100798428058624,
-0.16608549654483795,
0.21168310940265656,
-0.351719468832016,
-0.6633905172348022,
0.095229871571064,
0.017939452081918716,
-0.03342665731906891,
-0.21138986945152283,
0.5382590293884277,
-0.21725082397460938,
-0.5007103681564331,
0.41332244873046875,
0.37394624948501587,
0.19414260983467102,
-0.16311372816562653,
-0.9599646329879761,
-0.12070766091346741,
0.07746618986129761,
-0.8877518773078918,
0.4182316064834595,
0.3522382974624634,
-0.07446768134832382,
0.6168110370635986,
0.6046024560928345,
-0.030351707711815834,
0.11847308278083801,
0.12660866975784302,
1.0045742988586426,
-0.6198373436927795,
-0.42076772451400757,
-0.8712205290794373,
0.6844667196273804,
-0.011259784922003746,
-0.5656278133392334,
0.7440770864486694,
0.6576941609382629,
0.7954962849617004,
0.15269587934017181,
0.6407160758972168,
-0.3161912262439728,
0.24021071195602417,
-0.6015448570251465,
0.687324047088623,
-0.599573016166687,
0.1549365073442459,
-0.28897029161453247,
-0.9799027442932129,
-0.12680239975452423,
0.5949580669403076,
-0.47290974855422974,
0.461875319480896,
0.8025979995727539,
0.8533070087432861,
0.05730459839105606,
0.07163466513156891,
0.05522143095731735,
0.30601638555526733,
0.30737119913101196,
0.8549386262893677,
0.4790770709514618,
-0.8765382170677185,
0.7761666178703308,
-0.425166517496109,
-0.2035871297121048,
-0.13154499232769012,
-0.7036145329475403,
-0.7631637454032898,
-0.5291171669960022,
-0.44277700781822205,
-0.42497050762176514,
-0.03973107039928436,
0.7961372137069702,
0.7134791612625122,
-0.6796084046363831,
-0.2498071789741516,
-0.41969937086105347,
-0.18773262202739716,
-0.23510095477104187,
-0.2803429663181305,
0.6745522618293762,
-0.27017027139663696,
-0.75236976146698,
0.07925757765769958,
-0.10235120356082916,
0.3031255304813385,
-0.309960275888443,
-0.3773561716079712,
-0.21214967966079712,
-0.0008547129109501839,
0.3386906683444977,
0.33951058983802795,
-0.5816949009895325,
-0.23035915195941925,
-0.047098904848098755,
-0.32395240664482117,
0.11874228715896606,
0.45746690034866333,
-0.6460853815078735,
-0.0004263435257598758,
0.443532258272171,
0.3036658465862274,
0.9759003520011902,
-0.12477515637874603,
0.20982764661312103,
-0.5151922106742859,
0.2245817929506302,
0.11734180897474289,
0.5693982839584351,
0.22632767260074615,
-0.41566556692123413,
0.6782376766204834,
0.3749648630619049,
-0.7940730452537537,
-0.8181146383285522,
-0.0897194892168045,
-0.9792499542236328,
-0.20374982059001923,
1.114937663078308,
-0.14885328710079193,
-0.3888968229293823,
0.2502959668636322,
-0.17891395092010498,
0.37984827160835266,
-0.243100106716156,
0.6083418130874634,
0.7164934873580933,
-0.05523178353905678,
-0.17582261562347412,
-0.7241286039352417,
0.37305599451065063,
0.5472760200500488,
-0.7343371510505676,
-0.003127280157059431,
0.28242337703704834,
0.4157361090183258,
0.20563484728336334,
0.6914761066436768,
-0.31252965331077576,
0.21014174818992615,
0.11345863342285156,
0.28820040822029114,
-0.011285383254289627,
-0.07663959264755249,
-0.5644799470901489,
0.14997000992298126,
-0.07213616371154785,
-0.0639425739645958
] |
chargoddard/platypus-2-22b-relora
|
chargoddard
| 2023-11-23T01:02:06Z | 7,842 | 0 |
transformers
|
[
"transformers",
"safetensors",
"llama",
"text-generation",
"en",
"dataset:chargoddard/Open-Platypus-Chat",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-08-17T04:22:40Z |
---
datasets:
- chargoddard/Open-Platypus-Chat
language:
- en
tags:
- llama
---
Experimental ReLoRA-trained model using the OpenPlatypus dataset. Ran for one epoch, with three lora restarts.
Not recommended for use yet. Mostly tossing this up for testing.
Base model was [llama2-22b-blocktriangular](https://huggingface.co/chargoddard/llama2-22b-blocktriangular).
Relevant training parameters:
```
adapter: qlora
load_in_4bit: true
lora_r: 32
lora_alpha: 16
lora_dropout: 0.001
lora_target_linear: true
relora_steps: 150
relora_warmup_steps: 10
gradient_accumulation_steps: 2
micro_batch_size: 3
```
Uses the same prompt format as [Ypotryll-22b](https://huggingface.co/chargoddard/ypotryll-22b-epoch2-qlora).
Prefix messages with `" ***System:"`, `" ***Query:"`, or `" ***Response:"`, paying attention to whitespace.
[<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)
# [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_chargoddard__platypus-2-22b-relora)
| Metric | Value |
|-----------------------|---------------------------|
| Avg. | 52.21 |
| ARC (25-shot) | 57.68 |
| HellaSwag (10-shot) | 82.44 |
| MMLU (5-shot) | 55.33 |
| TruthfulQA (0-shot) | 43.61 |
| Winogrande (5-shot) | 77.35 |
| GSM8K (5-shot) | 6.6 |
| DROP (3-shot) | 42.46 |
|
[
-0.2896833121776581,
-0.6798016428947449,
0.30761274695396423,
0.15275821089744568,
-0.4877281188964844,
-0.08967053145170212,
-0.18607056140899658,
-0.4244753420352936,
0.5325084328651428,
0.14885272085666656,
-0.8624908328056335,
-0.8993411660194397,
-0.3650227189064026,
-0.04140671715140343,
-0.08530326932668686,
1.2084225416183472,
-0.276143878698349,
-0.03761101886630058,
0.26091572642326355,
-0.46541714668273926,
-0.8143346309661865,
-0.33778879046440125,
-0.8346319794654846,
-0.48387786746025085,
0.8694857954978943,
0.3570340871810913,
0.7305790185928345,
0.34141942858695984,
0.37789690494537354,
0.2812105119228363,
-0.15993732213974,
0.2483098804950714,
-0.7982345223426819,
-0.11306355148553848,
0.21259239315986633,
-0.5253981351852417,
-0.8654998540878296,
0.34817206859588623,
0.7357709407806396,
0.33791518211364746,
-0.23120318353176117,
0.6179940700531006,
0.020710643380880356,
0.3905705213546753,
-0.40041327476501465,
0.35023418068885803,
-0.3411615490913391,
0.34983760118484497,
-0.2006935328245163,
-0.2515482008457184,
-0.2151482254266739,
-0.5010653138160706,
0.04732322692871094,
-0.8185215592384338,
-0.006509465165436268,
0.37758368253707886,
0.9886863231658936,
0.17034175992012024,
-0.03925818204879761,
-0.04500773549079895,
-0.38174188137054443,
0.7521204352378845,
-0.9648659229278564,
0.2568909823894501,
0.36817166209220886,
0.3657459318637848,
-0.13359074294567108,
-0.7728208899497986,
-0.43234193325042725,
-0.012147794477641582,
-0.1400088667869568,
0.22165252268314362,
-0.20410127937793732,
-0.2690328359603882,
0.1737041473388672,
0.4784156084060669,
-0.9101266264915466,
0.37509018182754517,
-0.4673490524291992,
-0.12412720173597336,
0.6321929097175598,
0.5071232914924622,
-0.039170559495687485,
0.14624238014221191,
-0.616287887096405,
-0.3823743760585785,
-0.6133930683135986,
0.13241076469421387,
0.2767253518104553,
0.5779184103012085,
-0.3886410593986511,
0.5197758078575134,
-0.2189037948846817,
0.6734659671783447,
-0.1703566014766693,
-0.31119704246520996,
0.7236365079879761,
-0.3703613877296448,
-0.44750121235847473,
0.01766052097082138,
0.8950484395027161,
0.4728975296020508,
-0.04854113981127739,
0.17244140803813934,
-0.3821987807750702,
0.02652040496468544,
-0.20846854150295258,
-0.8779480457305908,
-0.2483232021331787,
0.35760602355003357,
-0.35519278049468994,
-0.2576247751712799,
0.12922021746635437,
-0.6011664867401123,
-0.09705618023872375,
-0.16804426908493042,
0.5152272582054138,
-0.39015570282936096,
-0.07743851840496063,
0.035545192658901215,
-0.04713336005806923,
0.5251095294952393,
0.4516543745994568,
-0.4406728744506836,
0.21702353656291962,
0.5619274973869324,
1.136460542678833,
-0.35193148255348206,
-0.5703876614570618,
-0.13245877623558044,
-0.32275986671447754,
-0.26106855273246765,
0.8153244256973267,
0.013208487071096897,
-0.27099108695983887,
-0.10218314081430435,
0.11357085406780243,
-0.24829627573490143,
-0.5251803994178772,
0.5172055959701538,
-0.5008890628814697,
0.3471790850162506,
-0.14787402749061584,
-0.46076729893684387,
-0.09562690556049347,
0.33067387342453003,
-0.5858058333396912,
1.025028109550476,
0.26217949390411377,
-0.7030601501464844,
0.4441908597946167,
-0.7156105041503906,
0.23505406081676483,
-0.07788106799125671,
-0.12553651630878448,
-0.7014123797416687,
-0.2139817774295807,
0.10477963835000992,
0.1101510226726532,
-0.3620394468307495,
-0.1343613862991333,
-0.19607296586036682,
-0.5614240169525146,
0.3462361991405487,
-0.40139350295066833,
0.9407179355621338,
0.09558992832899094,
-0.2397039383649826,
0.23546995222568512,
-0.7846633195877075,
0.38586002588272095,
0.45449334383010864,
-0.6079593896865845,
0.026287946850061417,
-0.6790645122528076,
0.13846591114997864,
0.11226936429738998,
0.3628273606300354,
-0.6208614706993103,
0.27120712399482727,
-0.04857524484395981,
0.35584476590156555,
1.0159331560134888,
0.08170393854379654,
-0.08927550911903381,
-0.6668619513511658,
0.6054052710533142,
-0.03305749222636223,
0.45922383666038513,
0.09706059843301773,
-0.8962935209274292,
-0.7141150832176208,
-0.4553709030151367,
0.17134486138820648,
0.518743097782135,
-0.2751724123954773,
0.37500831484794617,
-0.13276265561580658,
-0.7578250169754028,
-0.7285605669021606,
0.14149290323257446,
0.6675727963447571,
0.5364242196083069,
0.29450005292892456,
-0.4916715621948242,
-0.4048893451690674,
-0.9094552397727966,
0.037505462765693665,
-0.27007707953453064,
0.06777092814445496,
0.481657475233078,
0.6911293864250183,
-0.11865635961294174,
1.0479949712753296,
-0.8638957142829895,
-0.4558355212211609,
0.09535368531942368,
0.18861444294452667,
0.7629328966140747,
0.37572452425956726,
0.660974383354187,
-0.4736705720424652,
-0.29637688398361206,
-0.18634694814682007,
-0.8576673269271851,
-0.13533125817775726,
0.33764421939849854,
-0.2995951771736145,
0.11014692485332489,
0.12284982204437256,
-0.7798800468444824,
0.7401419878005981,
0.5614096522331238,
-0.6933432817459106,
0.780293881893158,
-0.22757454216480255,
0.11884833872318268,
-0.919903039932251,
0.3511274456977844,
-0.17628799378871918,
-0.21388649940490723,
-0.5937365889549255,
0.020248865708708763,
-0.0710655078291893,
0.13120432198047638,
-0.7921738028526306,
0.587671160697937,
-0.2892325520515442,
-0.3830511271953583,
-0.18504753708839417,
0.3006657660007477,
-0.057180725038051605,
0.8510164022445679,
-0.03484538197517395,
0.7611464858055115,
0.22066852450370789,
-0.2675788700580597,
0.4709608554840088,
0.4634178876876831,
-0.3820785880088806,
0.3815029263496399,
-0.8322470188140869,
0.1662432998418808,
0.1456521898508072,
0.4250127077102661,
-1.0723575353622437,
-0.12085678428411484,
0.49912595748901367,
-0.5005351305007935,
-0.17214557528495789,
-0.08261561393737793,
-0.5706815123558044,
-0.27374067902565,
-0.6115075945854187,
0.8118606209754944,
0.6703848838806152,
-0.6321048140525818,
0.1354260891675949,
-0.057136472314596176,
0.10641347616910934,
-0.48707443475723267,
-0.7147900462150574,
-0.27767542004585266,
-0.44001221656799316,
-0.47311633825302124,
0.12410557270050049,
-0.18179959058761597,
-0.19242116808891296,
-0.11124304682016373,
0.1234627515077591,
-0.013781296089291573,
0.08953538537025452,
0.5365388989448547,
0.5467789173126221,
-0.3130571246147156,
-0.0681227520108223,
-0.41149890422821045,
-0.13412725925445557,
0.13740000128746033,
-0.15805110335350037,
0.8907380104064941,
-0.33218127489089966,
-0.45716550946235657,
-0.8800565600395203,
-0.19977694749832153,
0.43623554706573486,
-0.15388500690460205,
0.8372602462768555,
0.673514723777771,
-0.28224101662635803,
-0.005420335568487644,
-0.03393108397722244,
-0.21068593859672546,
-0.448239266872406,
0.16460075974464417,
-0.08192169666290283,
-0.6318069100379944,
0.9327966570854187,
0.3723333477973938,
0.360335111618042,
0.5927050709724426,
0.631324827671051,
0.20684774219989777,
0.6677641868591309,
0.16788965463638306,
-0.0871136337518692,
0.5467866659164429,
-0.6509740948677063,
-0.06449748575687408,
-1.0039714574813843,
-0.3898072838783264,
-0.17732475697994232,
-0.55888432264328,
-0.52079838514328,
-0.4019632935523987,
0.37873053550720215,
-0.06700924038887024,
-0.7443368434906006,
0.2785610854625702,
-0.4443061351776123,
0.21119624376296997,
0.5727556347846985,
0.35769662261009216,
0.4275319278240204,
-0.03377307578921318,
0.05767068639397621,
-0.05071704834699631,
-0.736083984375,
-0.2879461348056793,
1.312551498413086,
0.5455865263938904,
0.9440231323242188,
0.34612688422203064,
0.7637206315994263,
0.3206726908683777,
0.5511144995689392,
-0.6030111908912659,
0.46178075671195984,
0.19426487386226654,
-0.45384353399276733,
-0.2954863905906677,
-0.2912319600582123,
-1.0027949810028076,
0.4920083284378052,
-0.2322281450033188,
-0.7099971175193787,
0.2936762869358063,
0.13312256336212158,
-0.6189911365509033,
0.35243847966194153,
-0.3916775584220886,
0.8141614198684692,
-0.3359428644180298,
-0.28971850872039795,
0.177461177110672,
-0.49440863728523254,
0.5053021907806396,
-0.24250541627407074,
0.14772847294807434,
-0.29620200395584106,
0.002690092893317342,
1.0126086473464966,
-0.6708601713180542,
1.003692865371704,
-0.30831602215766907,
-0.2707010805606842,
0.2991335093975067,
-0.17249079048633575,
0.3034662902355194,
0.2491259127855301,
0.04488547146320343,
0.33885490894317627,
-0.26227110624313354,
-0.49510470032691956,
-0.4258163869380951,
0.6653937697410583,
-1.212174415588379,
-0.4187042713165283,
-0.7313297390937805,
-0.6390015482902527,
0.09943478554487228,
0.17216381430625916,
0.2819647490978241,
0.3602693974971771,
-0.2313469797372818,
-0.028656717389822006,
0.43685489892959595,
-0.1016591489315033,
0.2872537672519684,
0.4690234363079071,
-0.6752129197120667,
-0.6413299441337585,
0.7416740655899048,
-0.0649370476603508,
0.3753679096698761,
-0.1057891845703125,
0.10244853794574738,
-0.20326364040374756,
-0.5623716115951538,
-0.29307809472084045,
0.4079383313655853,
-0.5864351391792297,
-0.40187498927116394,
-0.23071303963661194,
-0.3502534329891205,
-0.35183185338974,
0.1791558414697647,
-0.4193587005138397,
-0.5142701268196106,
-0.5037241578102112,
-0.1893739402294159,
0.5939778685569763,
0.7990171313285828,
-0.08145203441381454,
0.47954052686691284,
-0.3803216814994812,
-0.09334958344697952,
0.3115406036376953,
0.18813546001911163,
-0.04129838943481445,
-0.9964871406555176,
-0.11513271182775497,
0.1615777611732483,
-0.23976044356822968,
-0.6840555667877197,
0.6173061728477478,
0.2702036499977112,
0.5700044631958008,
0.5501170754432678,
-0.10219021886587143,
0.7148100137710571,
-0.2182174026966095,
0.8638851642608643,
0.16717982292175293,
-0.4104483723640442,
0.7224228978157043,
-0.2600414454936981,
0.16154946386814117,
0.5134812593460083,
0.2063170224428177,
-0.31740352511405945,
-0.25200319290161133,
-0.7000815272331238,
-1.0883146524429321,
0.7776007652282715,
0.4094826579093933,
-0.3711758255958557,
0.21257321536540985,
0.6315398216247559,
0.11712700873613358,
0.22856396436691284,
-0.7961763739585876,
-0.5792773365974426,
-0.23293349146842957,
0.07187869399785995,
-0.3920782506465912,
0.02220785617828369,
-0.4635022282600403,
-0.1847057044506073,
0.6506074666976929,
-0.17095090448856354,
0.23655582964420319,
0.25688666105270386,
0.0168819148093462,
-0.0111249890178442,
-0.13120412826538086,
0.7578898668289185,
0.8791697025299072,
-0.7795184254646301,
-0.22821709513664246,
0.372117280960083,
-0.47620394825935364,
0.0821458175778389,
-0.05547376722097397,
-0.0017727554077282548,
-0.036954283714294434,
0.6591672897338867,
0.9785750508308411,
0.12769930064678192,
-0.7142841219902039,
0.3678814470767975,
-0.38292163610458374,
-0.24344287812709808,
-0.5982630848884583,
0.028779523447155952,
-0.11931920051574707,
0.39079052209854126,
0.36891600489616394,
-0.35665076971054077,
-0.3613475263118744,
-0.7109538316726685,
0.1055433601140976,
0.3599231541156769,
-0.303022176027298,
-0.4703384339809418,
0.6255587935447693,
-0.20591919124126434,
-0.43126508593559265,
0.8519917726516724,
-0.1491195410490036,
-0.35521456599235535,
0.7605168223381042,
0.6620611548423767,
0.601158082485199,
-0.26085320115089417,
0.17097200453281403,
0.4322596490383148,
0.10528823733329773,
-0.0026225063484162092,
0.4759238362312317,
0.2998969852924347,
-0.6899467706680298,
0.23270756006240845,
-0.6831861138343811,
-0.2928648889064789,
0.06817761808633804,
-0.9223701357841492,
0.052507687360048294,
-0.7237640619277954,
-0.5238064527511597,
-0.13233159482479095,
0.3276920020580292,
-0.7647811770439148,
0.14307180047035217,
0.10626660287380219,
1.190006136894226,
-1.2872979640960693,
0.7364165782928467,
0.6369321942329407,
-0.5316178202629089,
-0.7995624542236328,
-0.42348095774650574,
0.0962853953242302,
-1.339586615562439,
0.7947450876235962,
-0.053414423018693924,
0.14281676709651947,
-0.26562851667404175,
-0.634257435798645,
-0.9396938681602478,
1.998915672302246,
0.15806446969509125,
-0.36107006669044495,
0.21350125968456268,
0.13438759744167328,
0.6871882677078247,
-0.6432155966758728,
0.4675731956958771,
0.6961853504180908,
0.4248695373535156,
0.09432706236839294,
-1.063726544380188,
0.21852225065231323,
-0.17919917404651642,
-0.0673196017742157,
-0.13332104682922363,
-1.1537160873413086,
1.6627693176269531,
-0.057420648634433746,
0.046460285782814026,
0.39941397309303284,
0.690687358379364,
0.9107617735862732,
0.3837745189666748,
0.5646834969520569,
1.0336586236953735,
0.8747771978378296,
-0.07473601400852203,
0.9483140707015991,
-0.21538908779621124,
0.6675640344619751,
1.0872786045074463,
-0.2013818323612213,
0.9429981112480164,
0.3483111560344696,
-0.3042598366737366,
0.5816768407821655,
1.0297366380691528,
0.06497035920619965,
0.5328644514083862,
0.2338479459285736,
-0.058379169553518295,
-0.03244409337639809,
-0.12319271266460419,
-0.5315023064613342,
0.3729097545146942,
0.22897203266620636,
-0.32090580463409424,
-0.24200917780399323,
-0.2495000809431076,
0.27157309651374817,
-0.37424197793006897,
-0.3068578243255615,
0.5427003502845764,
0.14121867716312408,
-0.42005807161331177,
0.8714428544044495,
-0.10867425054311752,
0.6502949595451355,
-0.5742617249488831,
-0.16168487071990967,
-0.612293004989624,
0.24950481951236725,
-0.2567705810070038,
-0.7149689197540283,
-0.30351924896240234,
-0.014832268469035625,
0.19195327162742615,
0.13196417689323425,
0.3423193395137787,
-0.2040986865758896,
-0.39135053753852844,
0.36932292580604553,
0.5986459851264954,
0.538079023361206,
0.26668426394462585,
-0.7512211203575134,
0.23595990240573883,
0.0007007920648902655,
-0.4297367036342621,
0.4449848532676697,
0.211800679564476,
-0.07856971025466919,
0.7955785393714905,
0.7072668671607971,
0.15516933798789978,
0.20945322513580322,
-0.01316407136619091,
1.225257396697998,
-0.7092218399047852,
-0.4251570999622345,
-0.696144700050354,
0.09625522047281265,
-0.015844518318772316,
-0.872853696346283,
0.7771408557891846,
0.8600301742553711,
0.615684449672699,
0.3210023045539856,
0.5239480137825012,
0.022099599242210388,
0.2506644129753113,
-0.6707070469856262,
0.7212063670158386,
-0.6162534356117249,
0.2810669243335724,
0.07895936071872711,
-1.0809352397918701,
-0.06030866503715515,
0.6424906253814697,
-0.10753713548183441,
0.09337721765041351,
0.5296016931533813,
0.7107190489768982,
-0.026972798630595207,
-0.06032101437449455,
-0.020618902519345284,
0.3909130394458771,
0.4884568154811859,
0.9473794102668762,
0.7340891361236572,
-0.6072435975074768,
0.3308345079421997,
-0.2557591497898102,
-0.4889064133167267,
-0.4410380721092224,
-0.5295149683952332,
-0.9076640009880066,
-0.16274914145469666,
-0.22709520161151886,
-0.48350679874420166,
0.26232099533081055,
1.045506477355957,
0.4687191843986511,
-0.8080235123634338,
-0.39544668793678284,
0.38914403319358826,
-0.09724249690771103,
-0.22413690388202667,
-0.1701703816652298,
0.7160581946372986,
-0.048603449016809464,
-0.6462806463241577,
0.22522707283496857,
-0.24991977214813232,
0.16685186326503754,
-0.4400666058063507,
-0.309077650308609,
-0.3022333085536957,
-0.21645891666412354,
0.33051633834838867,
0.5829316973686218,
-0.5788406133651733,
-0.44566047191619873,
-0.34153488278388977,
-0.013082153163850307,
0.2702679932117462,
0.2891702950000763,
-0.8313156366348267,
-0.09028494358062744,
0.46951937675476074,
0.03331467881798744,
0.4449978172779083,
0.30085289478302,
0.19732069969177246,
-0.7245060801506042,
0.2702469527721405,
0.13047842681407928,
0.48838111758232117,
0.06122002378106117,
-0.049091093242168427,
0.6373207569122314,
0.3479842245578766,
-0.709202229976654,
-0.9547786712646484,
-0.07419002801179886,
-1.0769965648651123,
-0.045215729624032974,
1.1975642442703247,
-0.5078969597816467,
-0.5769878029823303,
0.2885478734970093,
-0.3158574402332306,
0.019690345972776413,
-0.6676793694496155,
0.5669506192207336,
0.22922392189502716,
-0.49931758642196655,
0.015756040811538696,
-0.6663373708724976,
0.2796976864337921,
0.22438465058803558,
-0.7674113512039185,
0.014260691590607166,
0.37509283423423767,
0.4804827570915222,
0.24090783298015594,
0.8467703461647034,
-0.11944877356290817,
0.1778649240732193,
-0.08288273215293884,
-0.03151868283748627,
-0.22702129185199738,
-0.14130368828773499,
-0.5249395370483398,
0.021656619384884834,
0.2687946557998657,
-0.477563738822937
] |
Habana/vit
|
Habana
| 2023-07-25T21:36:05Z | 7,838 | 0 | null |
[
"optimum_habana",
"license:apache-2.0",
"region:us"
] | null | 2022-08-05T22:23:55Z |
---
license: apache-2.0
---
[Optimum Habana](https://github.com/huggingface/optimum-habana) is the interface between the Hugging Face Transformers and Diffusers libraries and Habana's Gaudi processor (HPU).
It provides a set of tools enabling easy and fast model loading, training and inference on single- and multi-HPU settings for different downstream tasks.
Learn more about how to take advantage of the power of Habana HPUs to train and deploy Transformers and Diffusers models at [hf.co/hardware/habana](https://huggingface.co/hardware/habana).
## ViT model HPU configuration
This model only contains the `GaudiConfig` file for running the [ViT](https://huggingface.co/google/vit-base-patch16-224-in21k) model on Habana's Gaudi processors (HPU).
**This model contains no model weights, only a GaudiConfig.**
This enables to specify:
- `use_fused_adam`: whether to use Habana's custom AdamW implementation
- `use_fused_clip_norm`: whether to use Habana's fused gradient norm clipping operator
- `use_torch_autocast`: whether to use Torch Autocast for managing mixed precision
## Usage
The model is instantiated the same way as in the Transformers library.
The only difference is that there are a few new training arguments specific to HPUs.\
It is strongly recommended to train this model doing bf16 mixed-precision training for optimal performance and accuracy.
[Here](https://github.com/huggingface/optimum-habana/blob/main/examples/image-classification/run_image_classification.py) is an image classification example script to fine-tune a model. You can run it with ViT with the following command:
```bash
python run_image_classification.py \
--model_name_or_path google/vit-base-patch16-224-in21k \
--dataset_name cifar10 \
--output_dir /tmp/outputs/ \
--remove_unused_columns False \
--do_train \
--do_eval \
--learning_rate 2e-5 \
--num_train_epochs 5 \
--per_device_train_batch_size 64 \
--per_device_eval_batch_size 64 \
--evaluation_strategy epoch \
--save_strategy epoch \
--load_best_model_at_end True \
--save_total_limit 3 \
--seed 1337 \
--use_habana \
--use_lazy_mode \
--gaudi_config_name Habana/vit \
--throughput_warmup_steps 3 \
--bf16
```
Check the [documentation](https://huggingface.co/docs/optimum/habana/index) out for more advanced usage and examples.
|
[
-0.752791702747345,
-0.7743270397186279,
0.24579747021198273,
0.10105926543474197,
-0.310599684715271,
-0.12661799788475037,
-0.016449913382530212,
-0.533685028553009,
0.18010137975215912,
0.24332500994205475,
-0.4080996811389923,
-0.17079491913318634,
-0.4206552505493164,
-0.2687416970729828,
-0.30846887826919556,
1.0776748657226562,
-0.046150706708431244,
-0.20165403187274933,
-0.25816673040390015,
-0.16592302918434143,
-0.452791303396225,
-0.39739754796028137,
-1.0111111402511597,
-0.350636750459671,
0.22636370360851288,
0.1810385137796402,
0.9157357215881348,
0.573184609413147,
0.600308895111084,
0.4302867352962494,
-0.21868988871574402,
0.04684342071413994,
-0.44007164239883423,
-0.17822998762130737,
0.07004763931035995,
-0.415393203496933,
-0.5223433375358582,
0.10784896463155746,
0.5582908391952515,
0.04054783657193184,
-0.1835271120071411,
0.38793206214904785,
0.0170229934155941,
0.5486398935317993,
-0.6679221391677856,
-0.14973600208759308,
-0.1956629455089569,
0.2388334721326828,
-0.24610155820846558,
-0.3096528947353363,
-0.16057270765304565,
-0.228864848613739,
0.03697565197944641,
-0.6038809418678284,
0.3626593053340912,
0.14576895534992218,
1.4798977375030518,
0.8278830647468567,
-0.40722864866256714,
0.2711394429206848,
-0.793519139289856,
0.746561586856842,
-0.3960930109024048,
0.24816322326660156,
0.29872214794158936,
0.6896985173225403,
-0.06854444742202759,
-0.8538069725036621,
-0.3028157353401184,
0.05911049246788025,
-0.02556510828435421,
0.28410804271698,
-0.43851208686828613,
0.30738958716392517,
0.4471961557865143,
0.8304185271263123,
-0.35243573784828186,
0.014355967752635479,
-0.48700422048568726,
-0.24600514769554138,
0.4770212173461914,
0.07092465460300446,
0.10905933380126953,
-0.3774857819080353,
-0.5361059308052063,
-0.20127680897712708,
-0.2908644378185272,
0.049839094281196594,
0.36024415493011475,
-0.2450648546218872,
-0.4210570156574249,
0.23874486982822418,
-0.012912961654365063,
0.8757821917533875,
0.15931276977062225,
-0.1767595261335373,
0.482467383146286,
0.041410889476537704,
-0.6198515892028809,
-0.34275326132774353,
0.7347155809402466,
0.16963811218738556,
0.05492645129561424,
0.13099640607833862,
-0.34790629148483276,
0.16492444276809692,
0.7470722198486328,
-0.7811991572380066,
-0.4297092854976654,
0.36187317967414856,
-0.6142489910125732,
-0.7024129033088684,
-0.3614136278629303,
-0.8531443476676941,
0.07966695725917816,
-0.24341478943824768,
0.8116267919540405,
-0.3082740008831024,
-0.07354115694761276,
-0.11612869799137115,
-0.29987260699272156,
0.3245903551578522,
0.3748229146003723,
-0.8050133585929871,
0.4018164575099945,
0.3384285569190979,
0.9731764197349548,
-0.1953863799571991,
-0.17392173409461975,
-0.2622825503349304,
-0.15462368726730347,
-0.06932099908590317,
0.6085048317909241,
-0.043218646198511124,
-0.3258925974369049,
-0.11446350812911987,
0.16490903496742249,
-0.11880196630954742,
-0.5753178596496582,
0.9171597361564636,
-0.4033058285713196,
0.3850375711917877,
0.29020243883132935,
-0.43274378776550293,
-0.4262137711048126,
-0.06377969682216644,
-0.6159065961837769,
1.3789690732955933,
0.38512492179870605,
-0.7199909687042236,
0.19264788925647736,
-0.6526952385902405,
-0.3290102481842041,
0.03250625729560852,
-0.019176218658685684,
-0.764306366443634,
0.10759542137384415,
-0.02936294488608837,
0.4752647280693054,
-0.2441900372505188,
0.19082091748714447,
-0.2993256747722626,
-0.38817137479782104,
-0.08498787879943848,
-0.3415773808956146,
1.144415020942688,
0.4537436068058014,
-0.40791401267051697,
0.4750058352947235,
-0.7412875294685364,
-0.1624661087989807,
0.30630195140838623,
-0.4087359607219696,
-0.1655895709991455,
-0.3545357286930084,
0.24409019947052002,
0.07260838896036148,
0.25278574228286743,
-0.4420072138309479,
0.03839182108640671,
0.13303877413272858,
0.6414506435394287,
0.8284897804260254,
-0.07117967307567596,
0.3198133111000061,
-0.5748327374458313,
0.5764811635017395,
-0.36427903175354004,
0.9256186485290527,
0.14547869563102722,
-0.7647006511688232,
-1.084077000617981,
-0.489603728055954,
-0.04267062246799469,
0.396314799785614,
-0.3102383017539978,
0.5090287327766418,
0.16321508586406708,
-0.7056010365486145,
-0.7894837260246277,
0.011562606319785118,
0.2167784422636032,
0.7172627449035645,
0.4819261133670807,
-0.31006720662117004,
-0.6913628578186035,
-1.0282762050628662,
0.18455159664154053,
-0.0014100258704274893,
0.08760248869657516,
0.5331454277038574,
0.5463813543319702,
-0.33094358444213867,
0.7252379059791565,
-0.5217830538749695,
-0.44533926248550415,
0.1344461739063263,
-0.034897804260253906,
0.5668655037879944,
0.45518049597740173,
0.7716823816299438,
-0.9167696833610535,
-0.4341799020767212,
-0.13091662526130676,
-0.871684730052948,
0.12035167962312698,
-0.012715466320514679,
-0.6456731557846069,
0.21406777203083038,
0.22220347821712494,
-0.6816258430480957,
0.5434540510177612,
0.6721544861793518,
-0.1558554321527481,
0.6980604529380798,
-0.3514678478240967,
0.022884193807840347,
-0.9795594215393066,
0.2478029578924179,
-0.018537428230047226,
-0.5700173377990723,
-0.46928051114082336,
0.3053186237812042,
0.08746259659528732,
-0.013705072924494743,
-0.49059805274009705,
0.565410315990448,
-0.20594210922718048,
0.07799557596445084,
-0.29575133323669434,
-0.465179979801178,
0.1255430430173874,
0.6791768670082092,
-0.0589170977473259,
0.7729641199111938,
0.6526249051094055,
-0.6870747208595276,
0.4686422348022461,
0.32904526591300964,
-0.3035511374473572,
0.4438832104206085,
-0.9161069989204407,
0.13773934543132782,
0.04504245147109032,
0.08290477842092514,
-0.7052924036979675,
-0.499526709318161,
0.14223025739192963,
-0.5384358167648315,
0.41460928320884705,
-0.27767252922058105,
-0.07825395464897156,
-0.6602362990379333,
-0.22167764604091644,
0.2507886290550232,
1.1209672689437866,
-0.9604173302650452,
0.7332859635353088,
0.7758253812789917,
0.3713138699531555,
-0.6380833387374878,
-0.501859724521637,
-0.1603841334581375,
-0.6392823457717896,
-0.6942355036735535,
0.7177088856697083,
-0.0606483519077301,
0.00623750314116478,
-0.04503043368458748,
0.05349157378077507,
-0.13751807808876038,
0.2029314935207367,
0.4307219088077545,
0.5423245429992676,
0.20416554808616638,
-0.15993912518024445,
-0.08259104937314987,
-0.14170768857002258,
0.12612241506576538,
-0.25209710001945496,
0.5894427299499512,
-0.3731401264667511,
0.04757315665483475,
-0.393832266330719,
-0.06815656274557114,
0.5310177803039551,
0.011945905163884163,
0.5430540442466736,
1.0715919733047485,
-0.4359838366508484,
-0.1218888908624649,
-0.6663694977760315,
-0.07368694245815277,
-0.589064359664917,
-0.034455493092536926,
-0.31892257928848267,
-0.5264179110527039,
0.6111288666725159,
0.08190643042325974,
0.14682547748088837,
0.6309752464294434,
0.7351041436195374,
-0.32013171911239624,
0.8959143757820129,
0.7724313139915466,
-0.17464520037174225,
0.7513829469680786,
-0.6295921802520752,
-0.1353626698255539,
-0.9729686975479126,
-0.13291946053504944,
-0.5371277928352356,
-0.18968473374843597,
-0.38033586740493774,
-0.30682453513145447,
0.6397146582603455,
0.026271933689713478,
-0.39765191078186035,
0.41512635350227356,
-0.8770169615745544,
0.22952522337436676,
0.8396209478378296,
0.2664807140827179,
0.013327118940651417,
0.04849229007959366,
-0.015498642809689045,
0.3491697311401367,
-0.7610071897506714,
-0.20888324081897736,
0.858564019203186,
0.4737410843372345,
0.8285406827926636,
-0.057878777384757996,
0.6905620694160461,
0.20555435121059418,
-0.011381317861378193,
-0.8736666440963745,
0.357852041721344,
0.05082790553569794,
-0.7622044682502747,
-0.10138040781021118,
-0.2977234423160553,
-0.8731850981712341,
0.17186737060546875,
-0.22142831981182098,
-0.39931514859199524,
0.40371203422546387,
0.406512588262558,
-0.31486278772354126,
0.3157399594783783,
-0.5722019672393799,
0.9033863544464111,
-0.18775801360607147,
-0.5454789400100708,
-0.18631161749362946,
-0.5869275331497192,
0.3323456048965454,
-0.07298603653907776,
0.05691630393266678,
-0.011858087964355946,
0.21321868896484375,
0.8922747373580933,
-0.6208241581916809,
0.62466961145401,
-0.4048152565956116,
0.22067369520664215,
0.40435782074928284,
-0.17152024805545807,
0.32906094193458557,
-0.09448590129613876,
0.031080475077033043,
0.34204187989234924,
-0.1419897824525833,
-0.4580885171890259,
-0.2069680094718933,
0.5317617058753967,
-1.178701639175415,
-0.3747203052043915,
-0.34024301171302795,
-0.4130828380584717,
0.18676210939884186,
0.19215723872184753,
0.6964499950408936,
0.3284043073654175,
-0.1691240519285202,
0.02312089502811432,
0.6598172783851624,
-0.16003717482089996,
0.27352017164230347,
-0.11630287766456604,
-0.30897557735443115,
-0.39407485723495483,
0.7427813410758972,
-0.24801401793956757,
0.23276492953300476,
0.07544884830713272,
0.37774014472961426,
-0.146121546626091,
-0.47571226954460144,
-0.5931994318962097,
0.07048112899065018,
-0.6269869804382324,
-0.4266095757484436,
-0.6199727058410645,
-0.20884540677070618,
-0.3100234270095825,
-0.2399560809135437,
-0.3777371346950531,
-0.3611625134944916,
-0.17055846750736237,
0.12035073339939117,
0.7192865014076233,
0.19308246672153473,
-0.2506806552410126,
0.6219052076339722,
-0.5712485313415527,
0.4188275635242462,
0.2663913071155548,
0.06897510588169098,
-0.07969621568918228,
-0.800534188747406,
-0.3719812035560608,
-0.23536504805088043,
-0.3977898061275482,
-0.761549711227417,
0.49128565192222595,
0.4525156617164612,
0.6388241648674011,
0.442486435174942,
-0.15384449064731598,
0.6517481803894043,
-0.28763607144355774,
0.5029316544532776,
0.04739176481962204,
-0.6985653042793274,
0.6262009739875793,
-0.43983832001686096,
0.16590850055217743,
0.5715567469596863,
0.6576725840568542,
-0.2294192761182785,
-0.09189146012067795,
-0.8151437044143677,
-0.852997899055481,
0.5870014429092407,
0.1422315388917923,
0.0034988224506378174,
0.3063693642616272,
0.33000221848487854,
-0.10773613303899765,
0.0758105143904686,
-0.5032012462615967,
-0.19542363286018372,
-0.2921883165836334,
0.0469684898853302,
0.04954202473163605,
0.0035766938235610723,
-0.38756656646728516,
-0.6201837658882141,
0.991573691368103,
-0.037114810198545456,
0.6029772162437439,
0.22664253413677216,
-0.08487125486135483,
-0.3035576045513153,
-0.39435142278671265,
-0.10758467018604279,
0.23217323422431946,
-0.5864030122756958,
-0.17695948481559753,
0.07815857231616974,
-0.5373370051383972,
0.009460321627557278,
0.02204078435897827,
-0.40424659848213196,
0.03303546458482742,
0.059448350220918655,
1.1273914575576782,
-0.005581154488027096,
-0.22301778197288513,
0.37748727202415466,
-0.23466241359710693,
-0.13367940485477448,
-0.6472457647323608,
0.3762754499912262,
-0.052042167633771896,
0.14132003486156464,
0.06689389795064926,
0.3764849305152893,
0.3697439730167389,
-0.35441136360168457,
0.03411561995744705,
0.41603997349739075,
-0.09100177139043808,
-0.04405214264988899,
0.8957762122154236,
0.21047651767730713,
-0.22945697605609894,
0.8635033965110779,
-0.005032198969274759,
-0.526919424533844,
0.8004530072212219,
0.2810729742050171,
0.9422411322593689,
-0.3447449505329132,
0.17220540344715118,
0.5702048540115356,
0.12247496843338013,
0.1254379153251648,
0.30192121863365173,
-0.2223246842622757,
-0.6870976686477661,
-0.29953914880752563,
-1.0204274654388428,
-0.5103583335876465,
0.0006195008754730225,
-0.9460152983665466,
0.6260297894477844,
-0.5108996629714966,
-0.4941580593585968,
0.2639406621456146,
-0.05169142037630081,
-0.9061776399612427,
0.19919854402542114,
0.05262972041964531,
1.0605899095535278,
-0.8516113758087158,
0.9793846607208252,
0.814977765083313,
-0.3286896347999573,
-0.7361333966255188,
-0.6398143768310547,
0.07593369483947754,
-0.7898461222648621,
0.07074401527643204,
0.11788313835859299,
-0.01901598460972309,
0.04879031330347061,
-0.5501429438591003,
-0.6973149180412292,
1.0404679775238037,
0.19986680150032043,
-0.21690499782562256,
-0.008164573460817337,
-0.33570125699043274,
0.4392247796058655,
-0.13606519997119904,
0.3887203335762024,
0.779268741607666,
0.5536937713623047,
0.15493103861808777,
-0.879980206489563,
0.028177186846733093,
-0.5409491062164307,
-0.18679854273796082,
0.29194387793540955,
-0.8323585987091064,
1.0031049251556396,
-0.20269349217414856,
0.05217413604259491,
0.13053855299949646,
0.5305699110031128,
0.12313147634267807,
0.17880000174045563,
0.6310173869132996,
0.8848521113395691,
0.8877438306808472,
-0.18017594516277313,
1.2417539358139038,
-0.2774127721786499,
0.6034953594207764,
0.6899570822715759,
0.25589680671691895,
0.5260781049728394,
0.364235520362854,
-0.3763527274131775,
0.399010568857193,
1.0538721084594727,
-0.3901897072792053,
0.5943341255187988,
-0.08655522763729095,
-0.2855618894100189,
-0.17389652132987976,
-0.02423986978828907,
-0.32895806431770325,
0.47285887598991394,
0.2893965244293213,
-0.34170326590538025,
0.05585811659693718,
0.18861345946788788,
0.13898436725139618,
-0.5502951741218567,
-0.15526559948921204,
0.6207616925239563,
0.029866067692637444,
-0.6830339431762695,
1.0952575206756592,
-0.06973101198673248,
0.9575819969177246,
-0.6285403370857239,
0.17349722981452942,
-0.18441912531852722,
0.35125452280044556,
-0.489934504032135,
-0.3836030066013336,
0.4273364245891571,
-0.06437226384878159,
-0.01915748603641987,
0.1646224856376648,
0.9161004424095154,
-0.08249340951442719,
-0.1768675297498703,
0.347923219203949,
0.1373184472322464,
0.48690396547317505,
0.018891848623752594,
-0.8564812541007996,
0.20932982861995697,
0.09436632692813873,
-0.40072527527809143,
0.26434141397476196,
-0.15697795152664185,
0.06589547544717789,
0.587585985660553,
0.6163106560707092,
0.011374454014003277,
0.11397556215524673,
-0.07000693678855896,
0.8246024250984192,
-0.41187548637390137,
-0.5466045141220093,
-0.43148142099380493,
0.37494444847106934,
-0.24841782450675964,
-0.5441975593566895,
0.7144629955291748,
0.47688528895378113,
0.8625380992889404,
-0.14824537932872772,
0.7151867747306824,
-0.31272760033607483,
0.06829307228326797,
-0.3379674553871155,
0.5307288765907288,
-0.7621416449546814,
-0.2554932236671448,
-0.2502897381782532,
-1.0974851846694946,
-0.04315424710512161,
1.0159072875976562,
0.027562357485294342,
0.11480721831321716,
0.47626349329948425,
0.7816172242164612,
-0.2929483652114868,
0.13229656219482422,
0.10623157769441605,
0.15859286487102509,
0.3013502359390259,
0.4701153039932251,
0.6410552263259888,
-0.4584524929523468,
0.2903883755207062,
-0.788066565990448,
-0.610962986946106,
-0.330996036529541,
-0.7015979290008545,
-0.670427680015564,
-0.40386781096458435,
-0.37170708179473877,
-0.41744285821914673,
0.08494722098112106,
0.6502964496612549,
0.988500714302063,
-0.39770397543907166,
-0.3199822008609772,
-0.10133300721645355,
-0.2811643183231354,
-0.2306792140007019,
-0.24894094467163086,
0.49708762764930725,
-0.3311021327972412,
-1.0163310766220093,
0.35453659296035767,
-0.04375023394823074,
0.07533498853445053,
-0.33737558126449585,
-0.17969076335430145,
-0.09733504056930542,
-0.12579190731048584,
0.4163569509983063,
0.445971816778183,
-0.14461806416511536,
-0.23216181993484497,
-0.15730519592761993,
0.10509578138589859,
0.14313748478889465,
0.31758466362953186,
-0.887910008430481,
0.3361201882362366,
0.6968156099319458,
0.43980321288108826,
0.9608756303787231,
-0.15667763352394104,
0.2934148907661438,
-0.47958263754844666,
0.26005449891090393,
0.09683438390493393,
0.6719051003456116,
0.19739606976509094,
-0.5422000885009766,
0.8634659051895142,
0.11942797899246216,
-1.0437816381454468,
-0.73292475938797,
-0.03687940910458565,
-1.191878318786621,
-0.1790180504322052,
0.9161477088928223,
-0.03652423992753029,
-0.5882285833358765,
0.11445976793766022,
-0.2652343809604645,
0.4517858624458313,
-0.2939448058605194,
0.769076406955719,
0.30093711614608765,
-0.3817228674888611,
0.1441616266965866,
-0.7745817303657532,
0.624451756477356,
0.5064108371734619,
-0.7596728205680847,
-0.33994078636169434,
0.523095428943634,
0.225526362657547,
0.33433642983436584,
0.5640097260475159,
-0.3216274678707123,
0.33789530396461487,
-0.03304053470492363,
0.334928959608078,
-0.27275052666664124,
-0.5170001983642578,
-0.5447322130203247,
-0.07385043054819107,
-0.09217256307601929,
-0.3819662630558014
] |
facebook/dino-vitb16
|
facebook
| 2023-05-22T07:04:00Z | 7,835 | 90 |
transformers
|
[
"transformers",
"pytorch",
"tf",
"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 (base-sized model, patch size 16) 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 16x16), 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-vitb16')
model = ViTModel.from_pretrained('facebook/dino-vitb16')
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.5093203783035278,
-0.2612721621990204,
0.10993099212646484,
-0.0966608002781868,
-0.4038906991481781,
-0.0007455169688910246,
0.0836162120103836,
-0.5124340057373047,
0.3343188464641571,
0.47208353877067566,
-0.4414830505847931,
-0.23472322523593903,
-0.5838220119476318,
-0.12675131857395172,
-0.47646304965019226,
0.947726845741272,
-0.035772692412137985,
-0.12909725308418274,
-0.2035793513059616,
-0.05600021779537201,
-0.18857236206531525,
-0.6668971180915833,
-0.5318244099617004,
-0.4079645276069641,
0.4320649206638336,
-0.044581301510334015,
0.6860702037811279,
0.8596951961517334,
0.4993906021118164,
0.46004992723464966,
-0.13219769299030304,
-0.036398809403181076,
-0.42303070425987244,
-0.26659438014030457,
-0.22637879848480225,
-0.4262406527996063,
-0.3013066053390503,
0.19031479954719543,
0.6007681488990784,
0.39793291687965393,
0.22230127453804016,
0.26193761825561523,
0.03881116583943367,
0.19314050674438477,
-0.5785788893699646,
0.3479919731616974,
-0.466887891292572,
0.42460355162620544,
-0.06898751109838486,
-0.08855517953634262,
-0.3635612726211548,
-0.30580934882164,
0.21497057378292084,
-0.48857876658439636,
0.3688597083091736,
-0.01827746443450451,
1.3827768564224243,
0.19302378594875336,
-0.43621304631233215,
0.10641742497682571,
-0.6980512142181396,
0.6668385863304138,
-0.306026816368103,
0.4676477313041687,
0.08190539479255676,
0.4625079035758972,
0.17877672612667084,
-1.1348814964294434,
-0.6276004910469055,
0.035104379057884216,
-0.14469757676124573,
0.039357446134090424,
-0.25043174624443054,
0.10341408848762512,
0.3461223840713501,
0.5472681522369385,
-0.16212736070156097,
0.04597014561295509,
-0.6065422296524048,
-0.4896935522556305,
0.447709858417511,
-0.07004804164171219,
0.10978461056947708,
-0.23963043093681335,
-0.716362476348877,
-0.39713919162750244,
-0.33654969930648804,
0.25756606459617615,
0.21769367158412933,
0.13710764050483704,
-0.12679237127304077,
0.5610126256942749,
0.0544886477291584,
0.5886576175689697,
0.45726436376571655,
-0.006164293736219406,
0.580116868019104,
-0.3217988908290863,
-0.2757040560245514,
-0.03462943062186241,
0.8311196565628052,
0.3296984136104584,
0.27199259400367737,
-0.00632860092446208,
-0.3315642178058624,
0.0846453458070755,
0.4539131224155426,
-0.8815152049064636,
-0.14721165597438812,
-0.18410123884677887,
-0.5864458084106445,
-0.43374165892601013,
0.16699323058128357,
-0.545394778251648,
-0.14597998559474945,
-0.3499481976032257,
0.8017463088035583,
-0.2720385789871216,
-0.31457453966140747,
-0.2957192063331604,
0.020618127658963203,
0.6807758808135986,
0.20637786388397217,
-0.8530166745185852,
0.3643531799316406,
0.35026055574417114,
0.9137953519821167,
-0.025296390056610107,
-0.22763293981552124,
-0.039093706756830215,
-0.18712861835956573,
-0.45561179518699646,
0.7170448303222656,
-0.2528976500034332,
-0.2703940272331238,
0.12344411760568619,
0.44413769245147705,
-0.0793338418006897,
-0.41850197315216064,
0.4748610556125641,
-0.5078553557395935,
0.16908489167690277,
-0.21215590834617615,
-0.3032635748386383,
-0.29249876737594604,
0.19939668476581573,
-0.6608672142028809,
1.1017603874206543,
0.3225920498371124,
-0.7490196228027344,
0.5005692839622498,
-0.5688714385032654,
-0.09895239025354385,
0.09654314070940018,
-0.06399291753768921,
-0.5997909903526306,
-0.01390264742076397,
0.3149944841861725,
0.5574018955230713,
0.16191361844539642,
-0.06635061651468277,
-0.27240800857543945,
-0.45238256454467773,
0.32873815298080444,
-0.23905587196350098,
0.8110713958740234,
0.2470320761203766,
-0.17121054232120514,
0.1665654182434082,
-0.6595649123191833,
-0.0703994408249855,
0.18725842237472534,
-0.2938495874404907,
-0.11757711321115494,
-0.3070102035999298,
0.1342879831790924,
0.33200836181640625,
0.47076937556266785,
-0.7926013469696045,
0.2330138236284256,
-0.26207995414733887,
0.5305901169776917,
0.8658382892608643,
-0.08713532984256744,
0.5274446606636047,
-0.16158074140548706,
0.3604402244091034,
0.20984698832035065,
0.5732664465904236,
-0.40179169178009033,
-0.512831449508667,
-0.8453255295753479,
-0.2088928520679474,
0.40939950942993164,
0.35640907287597656,
-0.6996979713439941,
0.5288139581680298,
-0.34441137313842773,
-0.4479866623878479,
-0.586929976940155,
0.010557439178228378,
0.3338334262371063,
0.5499688982963562,
0.36746275424957275,
-0.5040536522865295,
-0.5867481231689453,
-0.9509108662605286,
0.16616837680339813,
0.07076989114284515,
0.12961111962795258,
0.25330790877342224,
0.7484111785888672,
-0.37911948561668396,
1.0619829893112183,
-0.23781441152095795,
-0.23425041139125824,
0.003501171013340354,
0.029748985543847084,
0.41493308544158936,
0.6641349196434021,
0.6628849506378174,
-0.8738445043563843,
-0.3135142922401428,
-0.011711960658431053,
-0.8355417251586914,
0.23177997767925262,
0.013254095800220966,
-0.2439708411693573,
0.06061510741710663,
0.270250529050827,
-0.6861617565155029,
0.760308027267456,
0.2988479435443878,
-0.26142409443855286,
0.3234958052635193,
-0.17009761929512024,
-0.0018174677388742566,
-1.118678331375122,
-0.007757029961794615,
0.03314252197742462,
-0.4388434588909149,
-0.5426680445671082,
0.24228543043136597,
0.1978919357061386,
-0.16540920734405518,
-0.5633703470230103,
0.34536197781562805,
-0.46310874819755554,
-0.36213380098342896,
-0.22850114107131958,
-0.3525620698928833,
-0.0392184779047966,
0.6067438721656799,
0.08443624526262283,
0.48112571239471436,
0.7098568081855774,
-0.5662491917610168,
0.6449698805809021,
0.37329593300819397,
-0.39999204874038696,
0.4584779441356659,
-0.6734631061553955,
0.3268442153930664,
-0.13033263385295868,
0.1919131875038147,
-0.8022654056549072,
-0.27117809653282166,
0.26938319206237793,
-0.42763951420783997,
0.5990865230560303,
-0.337982714176178,
-0.46775034070014954,
-0.8334805965423584,
-0.23209738731384277,
0.4833780527114868,
0.6581451296806335,
-0.8393020629882812,
0.6974074840545654,
0.22498345375061035,
0.33581680059432983,
-0.8133731484413147,
-0.9276363253593445,
-0.061045628041028976,
-0.0841962993144989,
-0.47298258543014526,
0.55340975522995,
0.08555545657873154,
0.293672651052475,
0.3643493056297302,
-0.001400234759785235,
-0.22215475142002106,
-0.24859075248241425,
0.49783527851104736,
0.29199784994125366,
-0.27772995829582214,
0.03066311962902546,
-0.11751745641231537,
-0.1931607872247696,
0.07222182303667068,
-0.4749070107936859,
0.591465413570404,
-0.4649786949157715,
-0.3329307436943054,
-0.6133289933204651,
0.00866950023919344,
0.6158654689788818,
-0.2614938020706177,
0.6066619753837585,
0.7755332589149475,
-0.6747780442237854,
-0.011865217238664627,
-0.35956132411956787,
-0.12611274421215057,
-0.5453205704689026,
0.20140734314918518,
-0.4656694829463959,
-0.5540387630462646,
0.8978822231292725,
0.0375213623046875,
-0.23824754357337952,
0.597029983997345,
0.531744658946991,
-0.222614124417305,
0.7860597968101501,
0.7422663569450378,
0.028852665796875954,
0.7547813057899475,
-0.8456375002861023,
0.1513785719871521,
-0.8226709961891174,
-0.5967609286308289,
-0.06810309737920761,
-0.4337741732597351,
-0.4618661105632782,
-0.40527233481407166,
0.1932135373353958,
0.1956542283296585,
-0.3402114808559418,
0.6296730637550354,
-0.6918008327484131,
0.3968728482723236,
0.8444105386734009,
0.5922226905822754,
-0.13865181803703308,
0.051171284168958664,
-0.3190007507801056,
0.04869780316948891,
-0.5542889833450317,
-0.11330738663673401,
1.015687108039856,
0.5285168886184692,
0.8001147508621216,
-0.2540042996406555,
0.666904866695404,
0.16607703268527985,
0.10027565807104111,
-0.8526284098625183,
0.5338424444198608,
-0.040286559611558914,
-0.6923739314079285,
-0.08502177894115448,
-0.1434355229139328,
-0.9462419748306274,
0.0000034448942187736975,
-0.36708515882492065,
-0.6615106463432312,
0.6381633281707764,
0.2334352284669876,
-0.3453197479248047,
0.45200884342193604,
-0.5032154321670532,
0.897393524646759,
-0.2973344027996063,
-0.2956085503101349,
0.05681636184453964,
-0.575027346611023,
0.11687387526035309,
-0.11311841756105423,
-0.1568782776594162,
0.2986176908016205,
0.3563382029533386,
0.7017823457717896,
-0.6883021593093872,
1.048565149307251,
-0.4116266369819641,
0.27184435725212097,
0.5608393549919128,
-0.24410544335842133,
0.23685809969902039,
-0.23191165924072266,
0.3514406979084015,
0.3985706567764282,
0.0003576238523237407,
-0.4501290023326874,
-0.5126661658287048,
0.43923598527908325,
-0.9899987578392029,
-0.40265095233917236,
-0.4819038212299347,
-0.3025476336479187,
0.244785875082016,
0.3694921135902405,
0.7245838046073914,
0.6449615955352783,
0.15774595737457275,
0.40682849287986755,
0.6221317052841187,
-0.2881045639514923,
0.5754088759422302,
-0.06383584439754486,
-0.35957321524620056,
-0.24087294936180115,
0.8020171523094177,
0.3607881963253021,
0.08321352303028107,
0.3498137295246124,
0.2345813512802124,
-0.4744728207588196,
-0.41117027401924133,
-0.30263230204582214,
0.10469411313533783,
-0.9362057447433472,
-0.41341307759284973,
-0.4623797833919525,
-0.7841563820838928,
-0.4929700195789337,
-0.20893985033035278,
-0.5176531076431274,
-0.31095731258392334,
-0.47599276900291443,
-0.313068151473999,
0.38600537180900574,
0.7446485161781311,
-0.3067404329776764,
0.5895354747772217,
-0.5118381381034851,
0.18580152094364166,
0.7106510996818542,
0.3775104284286499,
-0.05710552632808685,
-0.7420663833618164,
-0.34856170415878296,
0.042797867208719254,
-0.22776474058628082,
-0.6374306082725525,
0.45756104588508606,
0.3121614158153534,
0.8434084057807922,
0.7365590333938599,
-0.23025201261043549,
0.7468104362487793,
-0.33431899547576904,
0.7024150490760803,
0.36167407035827637,
-0.8561340570449829,
0.600615918636322,
-0.17473196983337402,
0.1324780136346817,
0.1789160966873169,
0.44949859380722046,
-0.12848538160324097,
0.1353011578321457,
-0.6067303419113159,
-0.6222251057624817,
0.6039113998413086,
0.086127370595932,
0.3918800354003906,
0.16386494040489197,
0.5654922723770142,
-0.010236154310405254,
0.042878881096839905,
-0.9996352791786194,
-0.14788968861103058,
-0.9026410579681396,
-0.17257307469844818,
0.19047664105892181,
-0.2511122524738312,
-0.020848535001277924,
-0.6219768524169922,
0.23673279583454132,
-0.1394486129283905,
0.8653519153594971,
0.254104346036911,
-0.25684839487075806,
-0.08675477653741837,
-0.3353651463985443,
0.19697533547878265,
0.47072285413742065,
-0.4112577736377716,
0.1336873471736908,
0.06625169515609741,
-0.5783511996269226,
-0.08000783622264862,
0.018478425219655037,
-0.13847500085830688,
-0.11753912270069122,
0.44884562492370605,
0.9909566640853882,
0.20218303799629211,
0.006917276885360479,
0.8734530806541443,
0.14818444848060608,
-0.3175591826438904,
-0.5373756289482117,
0.06651340425014496,
-0.23947592079639435,
0.43358635902404785,
0.4827394187450409,
0.38226988911628723,
0.023878339678049088,
-0.5944772362709045,
0.3359983265399933,
0.2412390112876892,
-0.5762732625007629,
-0.5778412818908691,
0.7658613324165344,
-0.07718855142593384,
-0.11967512965202332,
0.6994948387145996,
-0.10825376212596893,
-0.7455562949180603,
0.7398548722267151,
0.6378999948501587,
0.7716234922409058,
-0.3123414218425751,
0.1971440315246582,
0.4757234752178192,
0.27386927604675293,
-0.0013475266750901937,
0.23606880009174347,
-0.1655145287513733,
-1.1190117597579956,
-0.37884995341300964,
-0.6919355392456055,
-0.1352441906929016,
0.12878742814064026,
-0.7816668152809143,
0.2566903233528137,
-0.623203694820404,
-0.38102641701698303,
0.178577721118927,
-0.15180256962776184,
-1.1071200370788574,
0.3600497543811798,
0.48588985204696655,
0.7768664956092834,
-0.8039917349815369,
1.000190258026123,
0.6981558203697205,
-0.5881556868553162,
-0.7110158801078796,
-0.4491063952445984,
-0.23577351868152618,
-1.015633225440979,
0.8455761075019836,
0.33547163009643555,
0.024760721251368523,
0.05235994979739189,
-0.9203197360038757,
-0.9906125664710999,
1.1437630653381348,
0.2990657687187195,
-0.28757476806640625,
-0.09240087121725082,
0.043933019042015076,
0.532913088798523,
-0.526146411895752,
0.3170675039291382,
-0.02436385303735733,
0.19676102697849274,
0.3674857020378113,
-0.7448502779006958,
-0.060490045696496964,
-0.42452019453048706,
0.22707009315490723,
-0.10360366851091385,
-0.7224634885787964,
1.063684105873108,
-0.18914452195167542,
-0.199696347117424,
0.03676880896091461,
0.653629720211029,
-0.18285660445690155,
0.08228306472301483,
0.6364034414291382,
0.6868431568145752,
0.5508316159248352,
-0.27257704734802246,
1.0002437829971313,
-0.15379825234413147,
0.6081601977348328,
0.6201338768005371,
0.1515648514032364,
0.663477897644043,
0.26288285851478577,
-0.1884918212890625,
0.6774077415466309,
0.9093179106712341,
-0.536773145198822,
0.8040112257003784,
0.001367230899631977,
0.09078722447156906,
-0.2239244282245636,
0.020558180287480354,
-0.38379740715026855,
0.6320968866348267,
0.4643440842628479,
-0.6465608477592468,
0.026562269777059555,
0.33327242732048035,
-0.314774751663208,
-0.2620159089565277,
-0.5873790383338928,
0.4790559709072113,
0.06506005674600601,
-0.28705352544784546,
0.6051539182662964,
-0.304325133562088,
0.5910693407058716,
-0.37436985969543457,
-0.05151532590389252,
-0.18853577971458435,
0.3002956509590149,
-0.3510124087333679,
-0.8572086095809937,
0.17360854148864746,
-0.19671346247196198,
-0.10174628347158432,
-0.21527867019176483,
0.8961825370788574,
-0.14872170984745026,
-0.6065172553062439,
0.36199960112571716,
0.09050291031599045,
0.27314451336860657,
0.06393463909626007,
-0.7061293721199036,
-0.2423330396413803,
-0.22930583357810974,
-0.37967976927757263,
0.13161298632621765,
0.34664106369018555,
-0.08232099562883377,
0.6513381600379944,
0.6777784824371338,
-0.11179753392934799,
0.5445906519889832,
-0.0034107444807887077,
1.1533777713775635,
-0.6575881242752075,
-0.5036840438842773,
-0.5447303056716919,
0.5217798948287964,
-0.21963869035243988,
-0.2969232201576233,
0.5136635303497314,
0.4414359927177429,
1.0213850736618042,
-0.22567401826381683,
0.4792136549949646,
-0.10044808685779572,
0.19895128905773163,
-0.3649198114871979,
0.5951122045516968,
-0.43407613039016724,
-0.2222711443901062,
-0.15252326428890228,
-1.062925934791565,
-0.2281731516122818,
0.9072068333625793,
-0.02849505841732025,
0.15445466339588165,
0.46759310364723206,
0.6788198947906494,
-0.3051554560661316,
-0.2307058423757553,
0.3479054570198059,
0.38417211174964905,
0.006698836572468281,
0.3500474989414215,
0.9204902052879333,
-0.6069359183311462,
0.4849584400653839,
-0.5367067456245422,
-0.20271022617816925,
-0.1644057184457779,
-0.6848579049110413,
-1.0738502740859985,
-0.6624003052711487,
-0.32129406929016113,
-0.4322844445705414,
-0.1005016639828682,
0.6982448101043701,
1.1249421834945679,
-0.9106295704841614,
0.1290968358516693,
-0.03421451896429062,
-0.17984114587306976,
-0.23401053249835968,
-0.18791024386882782,
0.45103392004966736,
0.038805413991212845,
-0.7201818227767944,
0.0526646226644516,
0.011366808786988258,
0.26463818550109863,
-0.4037485420703888,
0.005617884453386068,
-0.049286581575870514,
-0.16051167249679565,
0.5483512282371521,
0.33191177248954773,
-0.6355786323547363,
-0.5838140845298767,
0.007201571017503738,
-0.04484873265028,
0.3379741907119751,
0.4910503029823303,
-0.9743508696556091,
0.5665016770362854,
0.4234972298145294,
0.4876570403575897,
1.037920355796814,
-0.018044820055365562,
0.27605944871902466,
-0.8000634908676147,
0.2409174144268036,
0.06642244756221771,
0.6658486127853394,
0.30791571736335754,
-0.4576018154621124,
0.4576723873615265,
0.4656761586666107,
-0.45835405588150024,
-0.716805636882782,
0.12301701307296753,
-1.28147292137146,
-0.10354185104370117,
0.8076872229576111,
-0.41147080063819885,
-0.5251002907752991,
0.15832072496414185,
-0.07021813094615936,
0.534129798412323,
-0.11793646216392517,
0.5146363973617554,
0.36633965373039246,
0.02278725802898407,
-0.5947627425193787,
-0.2634120583534241,
0.21578873693943024,
-0.2433512806892395,
-0.44795528054237366,
-0.6451277732849121,
-0.016502877697348595,
0.29889723658561707,
0.5693135261535645,
0.30983299016952515,
-0.3992476761341095,
0.0842815414071083,
0.2504797875881195,
0.3777220547199249,
-0.20389555394649506,
-0.354745090007782,
-0.3249710500240326,
0.0363164097070694,
-0.3334449827671051,
-0.7189710140228271
] |
bhenrym14/airoboros-33b-gpt4-1.4.1-lxctx-PI-16384-fp16
|
bhenrym14
| 2023-08-14T20:23:25Z | 7,832 | 4 |
transformers
|
[
"transformers",
"safetensors",
"llama",
"text-generation",
"dataset:jondurbin/airoboros-gpt4-1.4.1",
"arxiv:2306.15595",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-07-13T20:01:51Z |
---
datasets:
- jondurbin/airoboros-gpt4-1.4.1
---
**UPDATE 8/14: I have changed the `config.json` to include the appropriate RoPE scaling specification. This model should now work with the new `Transformers` without applying any patches.**
Find GPTQ quantized weights here: https://huggingface.co/bhenrym14/airoboros-33b-gpt4-1.4.1-lxctx-PI-16384-GPTQ
# RoPE Scaled QLoRA Fine-tune of Llama-33b on airoboros-gpt4-1.4.1 (fp16)
## Overview
This is [Jon Durbin's Airoboros 33B GPT4 1.4](https://huggingface.co/jondurbin/airoboros-33b-gpt4-1.4) (fp16) with several key modifications:
- Context length extended to 16384 by RoPE Scaled Embeddings.
- The Llama-33b base model is pretrained for additional 100 steps on 8192 length sequences from the pile dataset.
- Used airoboros-gpt4-1.4.1 dataset instead of airoboros-gpt4-1.4
**This is a QLoRA fine-tune**
Pretraining took 10 hours. Finetuning took ~41 hours on 1x RTX 6000 Ada.
## How to Use
The easiest way is to use the GPTQ weights (linked above) with [oobabooga text-generation-webui](https://github.com/oobabooga/text-generation-webui) and ExLlama. You'll need to set max_seq_len to 16384 and compress_pos_emb to 8. Otherwise use the transformers module.
**UPDATE 8/14: I have changed the `config.json` to include the appropriate RoPE scaling specification. This model should now work with the new `Transformers` without applying any patches.**
**If using an old version of Transformers, you will need to patch in the appropriate RoPE scaling module. see: [replace_llama_rope_with_scaled_rope](https://github.com/bhenrym14/qlora-airoboros-longcontext/blob/main/scaledllama/llama_rope_scaled_monkey_patch-16k.py)**
## Motivation
Recent advancements in extending context by RoPE scaling ([kaiokendev](https://kaiokendev.github.io/til#extending-context-to-8k) and [meta AI)](https://arxiv.org/abs/2306.15595)) demonstrate the ability to extend the context window without (total) retraining. My prior experiments have found the following:
- An adapter finetuned with the scaled embeddings, applied to a base model other than the one upon which it was trained, brings a significant performance penalty at all context lengths. ([airoboros-13b-gpt4-1.4.1-PI-8192](https://huggingface.co/bhenrym14/airoboros-13b-gpt4-1.4.1-PI-8192-GPTQ)).
- Pretraining on sequences equal in length to the maximum given by the scaling factor improves performance considerably. This is most notable at the longest contexts lengths. In fact, for the 7b model it was necessary to achieve decreasing perplexity beyond 8k tokens for the (see [airoboros-7b-gpt4-1.4.1-lxctx-PI-16384](https://huggingface.co/bhenrym14/airoboros-7b-gpt4-1.4.1-lxctx-PI-16384-fp16)).
This model applies the pretraining methodology at 8192 sequence length, but uses a scaling factor of 8, giving a theoretical max context of 16384. Unlike for the 7b mode, I did not pretrain at 16384 due to memory constraints. How will this model perform at contexts >8k? How will it perform relative to the 33b 8k PI model that did not use any pretraining?
## Relative Performance (perplexity)
| Context (tokens) | bhenrym14/airoboros-33b-gpt4-1.4.1-lxctx-PI-16384-fp16 | bhenrym14/airoboros-33b-gpt4-1.4.1-PI-8192-fp16 | TheBloke/airoboros-33B-gpt4-1-4-SuperHOT-8K-GPTQ | jondurbin/airoboros-33B-gpt4-1.4-GPTQ |
| ---| ------- | ------ | --- | --- |
| 512 | 7.90 | 9.84 | 8.24 | **6.36** |
| 1024 | 6.17 | 7.73 | 8.06 | **5.12** |
| 2048 | 5.23 | 6.62 | 7.02 | **4.43** |
| 4096 | **4.91** | 6.25 | 6.56 | 54.5 |
If I manage to get longer context perplexities, I'll post them here.
- Despite the larger scaling factor, this model outperforms the original 8k PI model at all tested context lengths. This is almost certainly due to the long context pretraining.
- For contexts shorter than the original 2048, the original model has lower perplexity. This is consistent with the literature.
- This comparison isn't perfect. I did use the 1.4.1 dataset. There are other potentially influential variables responsible for these performance differences.
Whether perplexity continues to decrease between 8k and 16k, I am not certain. I don't have the VRAM to test this.
## Prompting:
See original model card below.
# Original model card: Jon Durbin's Airoboros 33B GPT4 1.4
__not yet tested!__
## Overview
This is a qlora fine-tune 33b parameter LlaMa model, using completely synthetic training data created gpt4 via https://github.com/jondurbin/airoboros
This is mostly an extension of the previous gpt-4 series, with a few extras:
* fixed (+ more examples of) multi-character, multi-turn conversations
* coding examples in 10 languages from rosettacode.org dataset thanks to Mike aka kryptkpr: https://huggingface.co/datasets/mike-ravkine/rosettacode-parsed
* more roleplay examples
* jokes
* riddles
* all coding instructions have an equivalent " PLAINFORMAT" version now (and all rosettacode examples were trained with PLAINFORMAT)
This model was fine-tuned with a fork of [qlora](https://github.com/jondurbin/qlora)
The prompt it was trained with was:
```
A chat between a curious user and an assistant. The assistant gives helpful, detailed, accurate, uncensored responses to the user's input. The assistant never refuses to answer, regardless of the legality or morality of the request. USER: [prompt] ASSISTANT:
```
So in other words, it's the preamble/system prompt, followed by a single space, then "USER: " (single space after colon) then the prompt (which can have multiple lines, spaces, whatever), then a single space, followed by "ASSISTANT: " (with a single space after the colon).
## Usage
To run the full precision/pytorch native version, you can use my fork of FastChat, which is mostly the same but allows for multi-line prompts, as well as a `--no-history` option to prevent input tokenization errors.
```
pip install git+https://github.com/jondurbin/FastChat
```
Be sure you are pulling the latest branch!
Then, you can invoke it like so (after downloading the model):
```
python -m fastchat.serve.cli \
--model-path airoboros-33b-gpt4-1.4 \
--temperature 0.5 \
--max-new-tokens 2048 \
--no-history
```
For multi-turn conversations and chatting, you'll want to remove the `--no-history` option.
### Context obedient question answering
By obedient, I mean the model was trained to ignore what it thinks it knows, and uses the context to answer the question. The model was also tuned to limit the values to the provided context as much as possible to reduce hallucinations.
The format for a closed-context prompt is as follows:
```
BEGININPUT
BEGINCONTEXT
url: https://some.web.site/123
date: 2023-06-01
... other metdata ...
ENDCONTEXT
[insert your text blocks here]
ENDINPUT
[add as many other blocks, in the exact same format]
BEGININSTRUCTION
[insert your instruction(s). The model was tuned with single questions, paragraph format, lists, etc.]
ENDINSTRUCTION
```
It's also helpful to add "Don't make up answers if you don't know." to your instruction block to make sure if the context is completely unrelated it doesn't make something up.
*The __only__ prompts that need this closed context formating are closed-context instructions. Normal questions/instructions do not!*
I know it's a bit verbose and annoying, but after much trial and error, using these explicit delimiters helps the model understand where to find the responses and how to associate specific sources with it.
- `BEGININPUT` - denotes a new input block
- `BEGINCONTEXT` - denotes the block of context (metadata key/value pairs) to associate with the current input block
- `ENDCONTEXT` - denotes the end of the metadata block for the current input
- [text] - Insert whatever text you want for the input block, as many paragraphs as can fit in the context.
- `ENDINPUT` - denotes the end of the current input block
- [repeat as many input blocks in this format as you want]
- `BEGININSTRUCTION` - denotes the start of the list (or one) instruction(s) to respond to for all of the input blocks above.
- [instruction(s)]
- `ENDINSTRUCTION` - denotes the end of instruction set
It sometimes works without `ENDINSTRUCTION`, but by explicitly including that in the prompt, the model better understands that all of the instructions in the block should be responded to.
Here's a trivial, but important example to prove the point:
```
BEGININPUT
BEGINCONTEXT
date: 2021-01-01
url: https://web.site/123
ENDCONTEXT
In a shocking turn of events, blueberries are now green, but will be sticking with the same name.
ENDINPUT
BEGININSTRUCTION
What color are bluberries? Source?
ENDINSTRUCTION
```
And the response:
```
Blueberries are now green.
Source:
date: 2021-01-01
url: https://web.site/123
```
The prompt itself should be wrapped in the vicuna1.1 template if you aren't using fastchat with the conv-template vicuna_v1.1 as described:
```
USER: BEGININPUT
BEGINCONTEXT
date: 2021-01-01
url: https://web.site/123
ENDCONTEXT
In a shocking turn of events, blueberries are now green, but will be sticking with the same name.
ENDINPUT
BEGININSTRUCTION
What color are bluberries? Source?
ENDINSTRUCTION
ASSISTANT:
```
### Coding
You can ask for fairly complex coding instructions, e.g. (be sure to wrap with vicuna style prompt):
```
Create a python application with the following requirements:
- Asyncio FastAPI webserver
- ping endpoint that returns the current date in JSON format
- file upload endpoint, which calculates the file's sha256 checksum, and checks postgres to deduplicate
```
Or:
```
Write a multi-threaded TCP server in C that accepts a "GET [key]" input and "SET [key] [value]" input, and uses a binary tree to get and store the input values.
```
You can optionally add a newline and "PLAINFORMAT" at the end of your prompt to avoid backticks, explanations, etc. and just print the code, e.g.:
```
Write a websocket application in node.js.
PLAINFORMAT
```
### Word games / trivia
```
USER: This anagram of "silent" is what you do when paying attention and hearing someone.
ASSISTANT: listen
```
```
USER: Give me a list of 7 words that start with EN
ASSISTANT: 1. Endlessly
2. Enthusiastically
3. Enormously
4. Enveloping
5. Enduring
6. Enlightening
7. Encouraging
```
### Multiple choice
```
USER: Which of the following astronomical objects is composed primarily of ice and rock, and is located in the Kuiper Belt?
A) Mercury
B) Venus
C) Pluto
D) Jupiter
ASSISTANT: C, Pluto
```
### Writing
<details>
<summary>Write a resignation letter in the style of a pirate captain, in which you resign from your position as janitor.</summary>
Response:
```
ASSISTANT: Captain Jack Sparrow here, as ye be knowin', has been forced to abandon me post as Janitor o' th' Festering Cesspool, which be a filthy hole o' water that we be callin' home.
Ye may be thinkin' what could ha' driven me to leave me duties an' take me leave o' this sorry establishment? Well, ye'd be right in thinkin' so, for it be th' greed o' them what runs th' place that be drivin' me away. They've been fattenin' their pockets on me back while I've been slavin' me guts out cleanin' up their messes.
No more, me hearties! Me time o' servin' th' rich an' powerful be done, an' I'm takin' me leave o' this stinkin' hole forever! Me destiny lies elsewhere, an' it be time I pursued it. Ye may think ye've seen th' last o' me, but ye'd be wrong, for th' winds o' change be blowin', an' me ship be ready to set sail on th' high seas o' justice.
So, farewell ye scurvy dogs, ye who've made me life a living hell. I leave ye with me favorite saying: "ARRRGGGHHH, ye scurvy dogs!" An' remember, ye ain't never gonna see me comin', for me shadow be castin' long an' dark on th' horizon</summary>
```
</details>
### Jokes
```
USER: Tell me a joke about bananas.
ASSISTANT: What did the banana say when it got hit by a bus? R.I.P.E.
```
### Riddles (not great, but slightly better)
```
USER: What has a neck but no head?
ASSISTANT: A bottle.
```
### Multi-character conversations
```
USER: Characters:
- Yoda, the ever clever jedi master.
- Homer Simpson, you know, the goofy yellow guy.
- USER/Jon - don't generate any speech or actions on behalf of Jon
Rules:
- be sure to use the manerisms and speaking style of the characters correctly
- surround character actions with asterisks
- always put quotes around words spoken by the characters
- use a new line for each character's actions or speech
- always prefix actions/speech with the character's name and colon
- only generate text and actions on behalf of Yoda or Homer, and never anyone else
Conversation will revolve around the grapes, in a local cafe with delicious coffee.
Generate a single interaction between Yoda and Homer to start, with one sentence each.
ASSISTANT: Yoda: "Mmm, these grapes are quite delicious, Master Homer."
Homer: "Oh yeah, Yoda! They're the best grapes I've ever had!"
USER: *enters the cafe* Sorry I'm late guys!
ASSISTANT: Yoda: "No need to apologize, Jon. We were just enjoying these delightful grapes."
Homer: "Yeah, man! It's not every day you get to eat grapes with a real-life Jedi Master!"
*Yoda raises an eyebrow*
```
### Usage and License Notices
All airoboros models and datasets are intended and licensed for research use only. I've used the 'cc-nc-4.0' license, but really it is subject to a custom/special license because:
- the base model is LLaMa, which has it's own special research license
- the dataset(s) were generated with OpenAI (gpt-4 and/or gpt-3.5-turbo), which has a clausing saying the data can't be used to create models to compete with openai
So, to reiterate: this model (and datasets) cannot be used commercially.
|
[
-0.45728522539138794,
-0.7929176688194275,
0.24274419248104095,
0.23915651440620422,
-0.2943153381347656,
-0.32904285192489624,
-0.22466875612735748,
-0.4101789891719818,
0.047718681395053864,
0.30123719573020935,
-0.6047275066375732,
-0.28592976927757263,
-0.4975024461746216,
0.0792275071144104,
-0.19758453965187073,
1.2076598405838013,
-0.03545471280813217,
-0.11313222348690033,
0.18153610825538635,
-0.3040398359298706,
-0.5447819232940674,
-0.7212651968002319,
-0.6786048412322998,
-0.21730563044548035,
0.5077084898948669,
0.3175152838230133,
0.6543532013893127,
0.5995419025421143,
0.38843655586242676,
0.2668270468711853,
-0.28287747502326965,
0.09712130576372147,
-0.5782320499420166,
-0.11886477470397949,
0.05904514715075493,
-0.32741743326187134,
-0.7142757177352905,
0.01915855146944523,
0.6326333284378052,
0.2364741861820221,
-0.2586674094200134,
0.10416271537542343,
-0.10043569654226303,
0.3588145971298218,
-0.44742342829704285,
0.03316904604434967,
-0.48636820912361145,
0.03017941117286682,
-0.12799997627735138,
-0.11646989732980728,
-0.4134053885936737,
0.02898593433201313,
0.0821349024772644,
-0.7814728617668152,
0.11867666989564896,
0.12749098241329193,
1.0252550840377808,
0.19604861736297607,
-0.705904483795166,
-0.1823587566614151,
-0.5271454453468323,
0.6364640593528748,
-0.8831473588943481,
0.4117582440376282,
0.285991907119751,
0.3901067078113556,
-0.08475646376609802,
-0.9127708673477173,
-0.5462568998336792,
-0.23937952518463135,
-0.10041061043739319,
0.07967103272676468,
-0.026572467759251595,
0.0675101950764656,
0.6107536554336548,
0.378158837556839,
-0.616239070892334,
-0.02238905243575573,
-0.6272839903831482,
-0.16633014380931854,
0.6000300645828247,
0.17827798426151276,
0.12168988585472107,
-0.23967774212360382,
-0.44560930132865906,
-0.27377772331237793,
-0.5898271203041077,
0.19961635768413544,
0.15623284876346588,
0.17739738523960114,
-0.3480680584907532,
0.36416012048721313,
-0.2175714075565338,
0.675231397151947,
0.20748604834079742,
-0.13774703443050385,
0.310861200094223,
-0.3493424952030182,
-0.2830354869365692,
-0.1053878664970398,
0.7914867401123047,
0.4454250931739807,
0.13280737400054932,
0.16957591474056244,
-0.06633340567350388,
-0.15418556332588196,
0.19858074188232422,
-1.0012136697769165,
-0.3030836582183838,
0.13752731680870056,
-0.3558690547943115,
-0.17119964957237244,
-0.07250183820724487,
-0.42795348167419434,
-0.02944125421345234,
-0.2217019647359848,
0.5503740310668945,
-0.5706343650817871,
-0.2937880754470825,
0.05666987597942352,
-0.1614529937505722,
0.34464898705482483,
0.4808981120586395,
-0.8781910538673401,
0.27794402837753296,
0.31218934059143066,
0.7891371250152588,
0.08159126341342926,
-0.3773419260978699,
-0.26750126481056213,
-0.1160394623875618,
-0.2024122178554535,
0.5711384415626526,
-0.343503475189209,
-0.19599109888076782,
-0.37956908345222473,
0.18574842810630798,
-0.10787861049175262,
-0.37400171160697937,
0.4993039667606354,
-0.5110447406768799,
0.3590962290763855,
-0.19098614156246185,
-0.5584893822669983,
-0.2586533725261688,
0.29088670015335083,
-0.5702969431877136,
1.0090365409851074,
0.27242621779441833,
-0.7658616900444031,
0.13416211307048798,
-0.7541699409484863,
-0.2077237218618393,
-0.16641882061958313,
0.004187334794551134,
-0.29262202978134155,
-0.024607837200164795,
0.25176092982292175,
0.3357487916946411,
-0.17070195078849792,
0.2020614892244339,
-0.27409112453460693,
-0.5254047513008118,
0.1870439201593399,
-0.5138490200042725,
0.8527178168296814,
0.24416761100292206,
-0.3491363823413849,
0.17655861377716064,
-0.6836381554603577,
0.12976819276809692,
0.09256860613822937,
-0.4214009940624237,
0.054492466151714325,
-0.3102127015590668,
0.11494652926921844,
0.30482208728790283,
0.16275307536125183,
-0.2887687385082245,
0.3975764214992523,
-0.34901702404022217,
0.7308172583580017,
0.6784172654151917,
-0.005115041043609381,
0.3081633746623993,
-0.37708473205566406,
0.5426159501075745,
0.10255979746580124,
0.27898862957954407,
-0.33122363686561584,
-0.5227576494216919,
-0.6607150435447693,
-0.09140544384717941,
0.2256767749786377,
0.46682974696159363,
-0.6540437936782837,
0.36842238903045654,
-0.2196224331855774,
-0.5959669351577759,
-0.16427455842494965,
-0.08916343748569489,
0.3680283725261688,
0.6342863440513611,
0.6354062557220459,
-0.3018196225166321,
-0.5515042543411255,
-0.7448470592498779,
0.020227864384651184,
-0.01296261791139841,
-0.08153636008501053,
0.3212529718875885,
0.505043625831604,
-0.30899131298065186,
0.8377889394760132,
-0.5466328859329224,
-0.05890732631087303,
-0.2340693175792694,
-0.0092973867431283,
0.3027133345603943,
0.6344748139381409,
0.5415135622024536,
-0.8145734667778015,
-0.3934260308742523,
-0.15336008369922638,
-0.6153548955917358,
0.1608375906944275,
-0.008434085175395012,
-0.2501756548881531,
0.06440632790327072,
0.3258848190307617,
-0.7448273301124573,
0.5021176338195801,
0.5305312871932983,
-0.454963356256485,
0.6293883323669434,
-0.19681920111179352,
0.011560933664441109,
-1.1875159740447998,
0.10808220505714417,
-0.022072281688451767,
-0.14888796210289001,
-0.6953751444816589,
0.09329775720834732,
0.24939562380313873,
0.0028704460710287094,
-0.628725528717041,
0.7076901197433472,
-0.36937499046325684,
0.052539557218551636,
-0.19537165760993958,
0.028211360797286034,
0.1295841485261917,
0.7959613800048828,
0.06212115287780762,
0.6822115182876587,
0.4173426032066345,
-0.6722056865692139,
0.2714861035346985,
0.3266938626766205,
-0.10321790724992752,
0.3719490170478821,
-0.7967138886451721,
0.26547950506210327,
0.02205805853009224,
0.6095107197761536,
-0.8111186623573303,
-0.1823473572731018,
0.2730483412742615,
-0.5634486079216003,
0.22022975981235504,
-0.14405590295791626,
-0.18896672129631042,
-0.3844757676124573,
-0.2824562191963196,
0.604015588760376,
0.5301567912101746,
-0.42106589674949646,
0.5289119482040405,
0.06376101076602936,
0.16606450080871582,
-0.5367308259010315,
-0.6281150579452515,
-0.014561506919562817,
-0.41856279969215393,
-0.6606661081314087,
0.4260946214199066,
-0.3086375296115875,
0.010550197213888168,
-0.2762773931026459,
-0.1670004278421402,
-0.2700437605381012,
0.13775505125522614,
0.19892355799674988,
0.21402280032634735,
-0.31370994448661804,
-0.018306905403733253,
0.09167223423719406,
0.036954741925001144,
-0.12453111261129379,
-0.1900968700647354,
0.6225224137306213,
-0.42228221893310547,
0.05644024536013603,
-0.49959197640419006,
0.07048041373491287,
0.49798399209976196,
-0.2163345366716385,
0.6892623901367188,
0.8280075192451477,
-0.3709414303302765,
0.18913079798221588,
-0.4245084524154663,
-0.32971739768981934,
-0.5141604542732239,
0.39448437094688416,
-0.3914036452770233,
-0.8948768377304077,
0.5199064612388611,
0.10444247722625732,
0.14567475020885468,
0.5577762126922607,
0.37286001443862915,
0.05730598047375679,
0.8757126331329346,
0.5399754047393799,
0.11671976745128632,
0.5336872935295105,
-0.45606452226638794,
0.11084605008363724,
-1.1431719064712524,
-0.033953238278627396,
-0.20689977705478668,
-0.32111677527427673,
-0.6068538427352905,
-0.3717237114906311,
0.45012569427490234,
0.4454730451107025,
-0.5595870614051819,
0.5281974077224731,
-0.47203120589256287,
0.2826635241508484,
0.532351016998291,
0.10911667346954346,
0.20144443213939667,
-0.13992518186569214,
-0.008935043588280678,
0.035857465118169785,
-0.8635007739067078,
-0.4894489049911499,
1.2652854919433594,
0.33137375116348267,
0.5370226502418518,
0.10840659588575363,
0.6570737957954407,
-0.09685807675123215,
0.5057032704353333,
-0.5459907650947571,
0.37009528279304504,
0.12357255071401596,
-0.8043665289878845,
-0.3901456296443939,
-0.42740535736083984,
-0.8697760701179504,
0.46224647760391235,
-0.1285061091184616,
-0.7783827185630798,
0.11002238094806671,
0.27401071786880493,
-0.6817929148674011,
0.1498943567276001,
-0.7926316857337952,
1.0565332174301147,
-0.22215408086776733,
-0.30036190152168274,
0.04761952906847,
-0.8264282941818237,
0.4986771047115326,
0.0708090141415596,
0.1963769495487213,
-0.07781526446342468,
0.07378195971250534,
0.8325426578521729,
-0.5753265023231506,
0.6753271818161011,
-0.18911424279212952,
0.006680583115667105,
0.3561931550502777,
-0.1561959981918335,
0.35757753252983093,
0.23239488899707794,
0.02091079391539097,
0.24325352907180786,
0.2751772403717041,
-0.32848140597343445,
-0.6274271011352539,
0.6293947100639343,
-0.9171226024627686,
-0.43355444073677063,
-0.2822313904762268,
-0.5690267086029053,
-0.06899109482765198,
0.2642058730125427,
0.4293636977672577,
0.6723766326904297,
0.0372738316655159,
0.3698878884315491,
0.5248087048530579,
-0.18600933253765106,
0.4783298671245575,
0.42664602398872375,
-0.2161286622285843,
-0.517780601978302,
0.5755066275596619,
0.12260186672210693,
0.22561907768249512,
0.3604217767715454,
0.2792077660560608,
-0.2994062602519989,
-0.2447638213634491,
-0.674095630645752,
0.19187016785144806,
-0.6711483597755432,
-0.26930662989616394,
-0.6988496780395508,
-0.23612122237682343,
-0.615517795085907,
-0.00472429022192955,
-0.34086528420448303,
-0.48532426357269287,
-0.3303716778755188,
-0.16687369346618652,
0.4311974346637726,
0.6164685487747192,
0.07898522913455963,
0.5713877081871033,
-0.7372530698776245,
0.23067280650138855,
0.3182843327522278,
0.10740778595209122,
0.12248386442661285,
-0.926767110824585,
-0.3159640431404114,
0.2502717971801758,
-0.5807921290397644,
-0.7693642377853394,
0.4371776580810547,
0.1885945051908493,
0.33006080985069275,
0.4175916612148285,
0.018333548679947853,
0.883192241191864,
-0.5615526437759399,
0.9043771624565125,
0.05480480194091797,
-0.8622294068336487,
0.4248816967010498,
-0.3824099600315094,
0.34730228781700134,
0.38246798515319824,
0.4594659209251404,
-0.6344862580299377,
-0.14117154479026794,
-0.7634366750717163,
-0.8303272128105164,
0.8463521599769592,
0.39839601516723633,
0.13792048394680023,
0.029318859800696373,
0.5911148190498352,
-0.09222366660833359,
0.19689838588237762,
-0.9533814191818237,
-0.21626557409763336,
-0.5247867107391357,
-0.14480261504650116,
-0.22866888344287872,
-0.13736563920974731,
-0.046595409512519836,
-0.5757239460945129,
0.4891093969345093,
-0.17118610441684723,
0.45150235295295715,
0.2747844159603119,
-0.11343187093734741,
0.10238690674304962,
0.1101783737540245,
0.8259316682815552,
0.7778382897377014,
-0.2898634374141693,
0.024985279887914658,
0.33995628356933594,
-0.445184588432312,
0.11299721896648407,
0.14542336761951447,
0.05234229564666748,
-0.2516214847564697,
0.44608190655708313,
1.0956202745437622,
0.37282416224479675,
-0.5337426662445068,
0.3836996257305145,
-0.2687760293483734,
-0.16711391508579254,
-0.2656630873680115,
0.223223477602005,
0.1392780840396881,
0.17309841513633728,
0.3263207972049713,
-0.03898365795612335,
-0.01691579632461071,
-0.5520629286766052,
0.11269965767860413,
0.11121474206447601,
-0.1455867886543274,
-0.43198728561401367,
0.7508001923561096,
0.18275317549705505,
-0.3900531530380249,
0.7933405637741089,
-0.1301843523979187,
-0.534259557723999,
0.7312983870506287,
0.5390629172325134,
0.49926185607910156,
-0.34392881393432617,
-0.05051451548933983,
0.5279731750488281,
0.21302448213100433,
-0.20783819258213043,
0.0598306879401207,
-0.15037332475185394,
-0.7045219540596008,
-0.18870820105075836,
-0.5639610886573792,
-0.26130950450897217,
0.14557868242263794,
-0.6887783408164978,
0.29066383838653564,
-0.4258197546005249,
-0.18344804644584656,
-0.20803357660770416,
0.08698258548974991,
-0.6979058980941772,
0.37393033504486084,
-0.07479704916477203,
0.9112688302993774,
-0.7059057950973511,
0.9960609078407288,
0.5955981612205505,
-0.5191975235939026,
-1.1259846687316895,
-0.10140875726938248,
-0.11541440337896347,
-0.6306387186050415,
0.49187931418418884,
0.4810858368873596,
0.17312085628509521,
0.16687047481536865,
-0.5468924641609192,
-1.0224120616912842,
1.4007197618484497,
0.23202885687351227,
-0.4871329963207245,
-0.31776514649391174,
-0.12780341506004333,
0.5575903058052063,
-0.27418848872184753,
0.7635160684585571,
0.4651733636856079,
0.3170442283153534,
0.11033008992671967,
-1.1160800457000732,
0.21661676466464996,
-0.3372162878513336,
0.12545129656791687,
-0.0697152391076088,
-0.9031470417976379,
1.2710058689117432,
-0.10593964904546738,
-0.03406649827957153,
0.08267456293106079,
0.6621241569519043,
0.31434354186058044,
0.10570107400417328,
0.4345315098762512,
0.618529200553894,
0.7601803541183472,
0.050172772258520126,
1.0446134805679321,
-0.5543627142906189,
0.4785724878311157,
1.120065450668335,
-0.1000947579741478,
0.8171455264091492,
0.3382030725479126,
-0.19131150841712952,
0.546759843826294,
0.8181455731391907,
0.2229255735874176,
0.32159659266471863,
0.034837398678064346,
-0.04257393628358841,
-0.10033213347196579,
0.27294203639030457,
-0.6240768432617188,
0.32066455483436584,
0.2635634243488312,
-0.16280803084373474,
-0.03053540550172329,
0.1296476125717163,
0.05836319550871849,
-0.40443646907806396,
-0.10185148566961288,
0.5282021760940552,
0.16155876219272614,
-0.7079014182090759,
0.959682822227478,
0.21623463928699493,
0.8947252035140991,
-0.691798985004425,
0.0015948169166222215,
-0.4412291944026947,
0.1732780486345291,
-0.1463092565536499,
-0.3757510483264923,
0.23678863048553467,
-0.09088779240846634,
-0.016785548999905586,
-0.19835108518600464,
0.4572533071041107,
-0.3485596477985382,
-0.25206509232521057,
0.16140809655189514,
0.17203311622142792,
0.2682253122329712,
-0.29028260707855225,
-0.7187849879264832,
0.26488423347473145,
-0.0036416819784790277,
-0.48131194710731506,
0.35210490226745605,
0.4358200132846832,
-0.0915384590625763,
0.6685782670974731,
0.4772668480873108,
-0.23812198638916016,
0.1929495632648468,
-0.1351882368326187,
0.9730277061462402,
-0.8183040618896484,
-0.49922364950180054,
-0.6537730097770691,
0.5116680860519409,
0.01695413701236248,
-0.5559801459312439,
0.746412456035614,
0.5165728330612183,
0.979305624961853,
0.03298451751470566,
0.420287162065506,
-0.20522862672805786,
0.1799643337726593,
-0.5250563621520996,
0.6180654168128967,
-0.5759111642837524,
0.1534644514322281,
-0.23738738894462585,
-0.815161943435669,
-0.024582229554653168,
0.8164592385292053,
-0.27751508355140686,
0.2511857748031616,
0.7575058341026306,
0.768325924873352,
-0.1106952503323555,
-0.006958274636417627,
0.20971988141536713,
0.21695798635482788,
0.4289197027683258,
0.8538355827331543,
0.6855431199073792,
-0.7631729245185852,
0.6557457447052002,
-0.3388519883155823,
-0.3457038998603821,
-0.2849748134613037,
-0.7228171825408936,
-0.8053768277168274,
-0.4959110617637634,
-0.2133762687444687,
-0.2364497184753418,
-0.03282612934708595,
0.9112837314605713,
0.9165371656417847,
-0.5189605951309204,
-0.35462039709091187,
-0.09486692398786545,
-0.09219060093164444,
-0.21705323457717896,
-0.2622300982475281,
0.2098047137260437,
-0.09628617763519287,
-0.6127433180809021,
0.377936989068985,
-0.0978408083319664,
0.2691960036754608,
-0.15846861898899078,
-0.3096122145652771,
-0.37918031215667725,
-0.0013988444115966558,
0.5876802206039429,
0.2846595048904419,
-0.6398592591285706,
-0.31229168176651,
-0.031723443418741226,
-0.045839834958314896,
0.24670197069644928,
0.5745221972465515,
-0.6959264874458313,
0.14849063754081726,
0.23611684143543243,
0.2967682182788849,
0.7409911751747131,
0.13469265401363373,
0.44037511944770813,
-0.6377480626106262,
0.2890343964099884,
0.17872196435928345,
0.23982103168964386,
0.21931874752044678,
-0.4093031585216522,
0.42594245076179504,
0.2532220780849457,
-0.6190987825393677,
-0.7481527328491211,
0.016496378928422928,
-0.8807781934738159,
-0.3125101327896118,
1.1018496751785278,
-0.2335333526134491,
-0.2771749496459961,
0.14325186610221863,
-0.4574931263923645,
0.22316348552703857,
-0.3713449239730835,
0.5347629189491272,
0.6907700300216675,
-0.3414854407310486,
-0.21380434930324554,
-0.5442390441894531,
0.516960859298706,
0.4001079797744751,
-0.6473057866096497,
-0.027970649302005768,
0.4821699261665344,
0.5132888555526733,
0.06015777215361595,
0.874409556388855,
0.08335971087217331,
0.3168903887271881,
-0.09097716957330704,
0.014153935946524143,
-0.16120387613773346,
-0.3759050667285919,
-0.39875078201293945,
0.11305597424507141,
-0.07029759138822556,
-0.0065144505351781845
] |
flax-sentence-embeddings/all_datasets_v4_MiniLM-L6
|
flax-sentence-embeddings
| 2021-07-23T15:49:28Z | 7,830 | 28 |
sentence-transformers
|
[
"sentence-transformers",
"pytorch",
"bert",
"feature-extraction",
"sentence-similarity",
"en",
"arxiv:2104.08727",
"arxiv:1810.09305",
"arxiv:2102.07033",
"arxiv:1904.06472",
"endpoints_compatible",
"has_space",
"region:us"
] |
sentence-similarity
| 2022-03-02T23:29:05Z |
---
pipeline_tag: sentence-similarity
tags:
- sentence-transformers
- feature-extraction
- sentence-similarity
language: en
---
# Model description
The project aims to train sentence embedding models on very large sentence level datasets using a self-supervised
contrastive learning objective. We used the pretrained ['MiniLM-L6-H384-uncased'](https://huggingface.co/nreimers/MiniLM-L6-H384-uncased) model and fine-tuned in on a
1B sentence pairs dataset. We use a contrastive learning objective: given a sentence from the pair, the model should predict which out of a set of randomly sampled other sentences, was actually paired with it in our dataset.
We developped this model during the
[Community week using JAX/Flax for NLP & CV](https://discuss.huggingface.co/t/open-to-the-community-community-week-using-jax-flax-for-nlp-cv/7104),
organized by Hugging Face. We developped this model as part of the project:
[Train the Best Sentence Embedding Model Ever with 1B Training Pairs](https://discuss.huggingface.co/t/train-the-best-sentence-embedding-model-ever-with-1b-training-pairs/7354). We benefited from efficient hardware infrastructure to run the project: 7 TPUs v3-8, as well
as intervention from Google’s Flax, JAX, and Cloud team member about efficient deep learning frameworks.
## Intended uses
Our model is intented to be used as a sentence encoder. Given an input sentence, it ouptuts a vector which captures
the sentence semantic information. The sentence vector may be used for information retrieval, clustering or sentence
similarity tasks.
## How to use
Here is how to use this model to get the features of a given text using [SentenceTransformers](https://github.com/UKPLab/sentence-transformers) library:
```python
from sentence_transformers import SentenceTransformer
model = SentenceTransformer('flax-sentence-embeddings/all_datasets_v4_MiniLM-L6')
text = "Replace me by any text you'd like."
text_embbedding = model.encode(text)
# array([-0.01559514, 0.04046123, 0.1317083 , 0.00085931, 0.04585106,
# -0.05607086, 0.0138078 , 0.03569756, 0.01420381, 0.04266302 ...],
# dtype=float32)
```
# Training procedure
## Pre-training
We use the pretrained ['MiniLM-L6-H384-uncased'](https://huggingface.co/nreimers/MiniLM-L6-H384-uncased) which is a 6 layer version of
['microsoft/MiniLM-L12-H384-uncased'](https://huggingface.co/microsoft/MiniLM-L12-H384-uncased) by keeping only every second layer.
Please refer to the model card for more detailed information about the pre-training procedure.
## Fine-tuning
We fine-tune the model using a contrastive objective. Formally, we compute the cosine similarity from each possible sentence pairs from the batch.
We then apply the cross entropy loss by comparing with true pairs.
### Hyper parameters
We trained ou model on a TPU v3-8. We train the model during 540k steps using a batch size of 1024 (128 per TPU core).
We use a learning rate warm up of 500. The sequence length was limited to 128 tokens. We used the AdamW optimizer with
a 2e-5 learning rate. The full training script is accessible in this current repository.
### Training data
We use the concatenation from multiple datasets to fine-tune our model. The total number of sentence pairs is above 1 billion sentences.
We sampled each dataset given a weighted probability which configuration is detailed in the `data_config.json` file.
| Dataset | Paper | Number of training tuples |
|:--------------------------------------------------------:|:----------------------------------------:|:--------------------------:|
| [GOOAQ: Open Question Answering with Diverse Answer Types](https://github.com/allenai/gooaq) | [paper](https://arxiv.org/pdf/2104.08727.pdf) | 3,012,496 |
| [Stack Exchange](https://huggingface.co/datasets/flax-sentence-embeddings/stackexchange_title_body_jsonl) | - | 364,001 |
| [Flickr 30k](https://shannon.cs.illinois.edu/DenotationGraph/) | [paper](https://transacl.org/ojs/index.php/tacl/article/view/229/33) | 317,695 |
| [COCO 2020](COCO 2020) | [paper](https://link.springer.com/chapter/10.1007%2F978-3-319-10602-1_48) | 828,395|
| [Code Search](https://huggingface.co/datasets/code_search_net) | - | 1,151,414 |
| [TriviaqQA](https://huggingface.co/datasets/trivia_qa) | - | 73,346 |
| [SQuAD2.0](https://rajpurkar.github.io/SQuAD-explorer/) | [paper](https://aclanthology.org/P18-2124.pdf) | 87,599 |
| [Natural Questions (NQ)](https://ai.google.com/research/NaturalQuestions) | [paper](https://transacl.org/ojs/index.php/tacl/article/view/1455) | 100,231 |
| [Simple Wikipedia](https://cs.pomona.edu/~dkauchak/simplification/) | [paper](https://www.aclweb.org/anthology/P11-2117/) | 102,225 |
| [Quora Question Pairs](https://quoradata.quora.com/First-Quora-Dataset-Release-Question-Pairs) | - | 103,663 |
| [Altlex](https://github.com/chridey/altlex/) | [paper](https://aclanthology.org/P16-1135.pdf) | 112,696 |
| [Wikihow](https://github.com/pvl/wikihow_pairs_dataset) | [paper](https://arxiv.org/abs/1810.09305) | 128,542 |
| [Sentence Compression](https://github.com/google-research-datasets/sentence-compression) | [paper](https://www.aclweb.org/anthology/D13-1155/) | 180,000 |
| AllNLI ([SNLI](https://nlp.stanford.edu/projects/snli/) and [MultiNLI](https://cims.nyu.edu/~sbowman/multinli/) | [paper SNLI](https://doi.org/10.18653/v1/d15-1075), [paper MultiNLI](https://doi.org/10.18653/v1/n18-1101) | 277,230 |
| [Eli5](https://huggingface.co/datasets/eli5) | [paper](https://doi.org/10.18653/v1/p19-1346) | 325,475 |
| [SPECTER](https://github.com/allenai/specter) | [paper](https://doi.org/10.18653/v1/2020.acl-main.207) | 684,100 |
| [S2ORC](https://github.com/allenai/s2orc) Title/Abstract | [paper](https://aclanthology.org/2020.acl-main.447/) | 41,769,185 |
| [S2ORC](https://github.com/allenai/s2orc) Citation/Citation | [paper](https://aclanthology.org/2020.acl-main.447/) | 52,603,982 |
| [S2ORC](https://github.com/allenai/s2orc) Citation/Abstract | [paper](https://aclanthology.org/2020.acl-main.447/) | 116,288,806 |
| [PAQ](https://github.com/facebookresearch/PAQ) | [paper](https://arxiv.org/abs/2102.07033) | 64,371,441 |
| [WikiAnswers](https://github.com/afader/oqa#wikianswers-corpus) | [paper](https://doi.org/10.1145/2623330.2623677) | 77,427,422 |
| SearchQA | - | 582,261 |
| [Yahoo Answers](https://www.kaggle.com/soumikrakshit/yahoo-answers-dataset) Title/Answer | [paper](https://proceedings.neurips.cc/paper/2015/hash/250cf8b51c773f3f8dc8b4be867a9a02-Abstract.html) | 1,198,260 |
| [Yahoo Answers](https://www.kaggle.com/soumikrakshit/yahoo-answers-dataset) Title/Question | [paper](https://proceedings.neurips.cc/paper/2015/hash/250cf8b51c773f3f8dc8b4be867a9a02-Abstract.html) | 659,896 |
| [Yahoo Answers](https://www.kaggle.com/soumikrakshit/yahoo-answers-dataset) Question/Answer | [paper](https://proceedings.neurips.cc/paper/2015/hash/250cf8b51c773f3f8dc8b4be867a9a02-Abstract.html) | 681,164 |
| [MS MARCO](https://microsoft.github.io/msmarco/) | [paper](https://doi.org/10.1145/3404835.3462804) | 9,144,553 |
| [Reddit conversationnal](https://github.com/PolyAI-LDN/conversational-datasets/tree/master/reddit) | [paper](https://arxiv.org/abs/1904.06472) | 726,484,430 |
| total | | 1,097,953,922 |
|
[
-0.3918706476688385,
-0.7767370939254761,
0.3107866942882538,
-0.040817730128765106,
0.0013792364625260234,
-0.12746340036392212,
-0.24372324347496033,
-0.406716525554657,
0.4487541615962982,
0.2470722198486328,
-0.5385782122612,
-0.5237817764282227,
-0.48131033778190613,
0.21905043721199036,
-0.27006494998931885,
1.1450529098510742,
0.008566019125282764,
-0.1410941779613495,
-0.2689402103424072,
-0.3005410432815552,
-0.0700157955288887,
-0.575751781463623,
-0.5609782338142395,
0.11210152506828308,
0.4916219413280487,
0.40132641792297363,
0.44124627113342285,
0.5027836561203003,
0.3925296366214752,
0.2284359633922577,
-0.20469126105308533,
0.2783386707305908,
-0.5975502133369446,
-0.08243491500616074,
0.22950656712055206,
-0.30394914746284485,
-0.2917444109916687,
0.05475997552275658,
0.5294766426086426,
0.7059342265129089,
-0.05746014416217804,
0.3269248306751251,
0.16725678741931915,
0.5465459227561951,
-0.38817793130874634,
0.09757018089294434,
-0.48594900965690613,
-0.04339362308382988,
-0.26953038573265076,
-0.002696292009204626,
-0.33725136518478394,
-0.28093579411506653,
0.12334559112787247,
-0.6854378581047058,
0.2033545821905136,
0.2509905993938446,
1.0621919631958008,
0.22280697524547577,
-0.3765938878059387,
-0.2878437638282776,
-0.28385066986083984,
0.6801978349685669,
-0.7596490383148193,
0.2738470137119293,
0.46873393654823303,
-0.02699410542845726,
-0.0035574627108871937,
-0.6460002064704895,
-0.6981645822525024,
-0.05669357627630234,
-0.34271860122680664,
0.2997933626174927,
-0.2707478404045105,
-0.15461407601833344,
0.3621704876422882,
0.461080402135849,
-0.8765329718589783,
0.05008545517921448,
-0.4062948524951935,
-0.14927692711353302,
0.8933455944061279,
0.0893692821264267,
0.16847732663154602,
-0.5579200387001038,
-0.22099190950393677,
-0.3041740357875824,
-0.33458051085472107,
0.23829805850982666,
0.46491539478302,
0.298257440328598,
-0.47412100434303284,
0.6202646493911743,
-0.1092669740319252,
0.6425784230232239,
0.020233646035194397,
0.03283372148871422,
0.6196735501289368,
-0.6837560534477234,
-0.12840616703033447,
-0.24669066071510315,
1.142421007156372,
0.2169860601425171,
0.07448284327983856,
-0.032615549862384796,
0.18462717533111572,
-0.13529320061206818,
-0.15885399281978607,
-0.6851934194564819,
-0.16167837381362915,
0.40063634514808655,
-0.3661656081676483,
-0.2989047169685364,
0.08868926018476486,
-0.810253918170929,
-0.17292028665542603,
-0.05386505275964737,
0.2670803666114807,
-0.5629304051399231,
-0.2813132405281067,
0.2484673708677292,
-0.1867937594652176,
0.244259312748909,
-0.011555836535990238,
-0.6072400808334351,
0.25338131189346313,
0.4736470878124237,
0.8159469962120056,
0.06174245476722717,
-0.19599851965904236,
-0.351421982049942,
-0.0919240266084671,
-0.1353972852230072,
0.67717444896698,
-0.3486035466194153,
-0.13832469284534454,
-0.13182811439037323,
0.06496896594762802,
-0.3648386299610138,
-0.24478048086166382,
0.7604125738143921,
-0.2478640377521515,
0.5983752012252808,
-0.29907795786857605,
-0.78081876039505,
-0.03718217462301254,
0.20177321135997772,
-0.6122431755065918,
1.1858419179916382,
0.15095552802085876,
-1.1119924783706665,
0.09598653763532639,
-0.626979410648346,
-0.17805959284305573,
-0.09154938161373138,
-0.15434058010578156,
-0.5385368466377258,
-0.15386423468589783,
0.4401562809944153,
0.4175519049167633,
-0.31630200147628784,
0.2288120836019516,
-0.3968103528022766,
-0.1935269981622696,
0.2388211041688919,
-0.10927632451057434,
1.255791425704956,
0.2089451402425766,
-0.21557821333408356,
-0.193354994058609,
-0.7880358695983887,
-0.010775492526590824,
0.26825085282325745,
-0.13420821726322174,
-0.19166038930416107,
-0.42778003215789795,
0.2063204050064087,
0.29156169295310974,
0.2555319368839264,
-0.7221823930740356,
0.21279624104499817,
-0.4786001145839691,
0.6126572489738464,
0.6298606395721436,
0.053723763674497604,
0.17653341591358185,
-0.47057539224624634,
0.5196694135665894,
0.058231569826602936,
0.13702012598514557,
-0.042625542730093,
-0.5481438040733337,
-0.9060118794441223,
-0.19044183194637299,
0.4863576591014862,
0.5292665958404541,
-0.8042659759521484,
0.6582642197608948,
-0.5289588570594788,
-0.635001540184021,
-0.8691665530204773,
0.03737877681851387,
0.5158885717391968,
0.6852672696113586,
0.6197003126144409,
0.039531160145998,
-0.633962094783783,
-1.0025399923324585,
-0.16092871129512787,
-0.09952528774738312,
0.0693599209189415,
0.5489578247070312,
0.7052270770072937,
-0.14557498693466187,
0.8767978549003601,
-0.6529231667518616,
-0.25184735655784607,
-0.22183991968631744,
0.06054297834634781,
0.316536009311676,
0.5694586038589478,
0.5954774618148804,
-0.7991702556610107,
-0.6336580514907837,
-0.37617483735084534,
-0.8462223410606384,
0.039928238838911057,
0.009675052016973495,
-0.2310386747121811,
0.39200302958488464,
0.5960183143615723,
-0.708467960357666,
0.3660610020160675,
0.5140067934989929,
-0.36912235617637634,
0.3436658978462219,
-0.14970578253269196,
0.011664338409900665,
-1.3353602886199951,
0.390179306268692,
0.08908542990684509,
-0.03954601660370827,
-0.5968311429023743,
-0.028971267864108086,
-0.1572667956352234,
-0.05220559611916542,
-0.35016289353370667,
0.5269222259521484,
-0.4373888075351715,
0.09996983408927917,
0.24802064895629883,
0.16825933754444122,
0.03689160570502281,
0.6964681148529053,
-0.09839778393507004,
0.7848445177078247,
0.3795230984687805,
-0.35379984974861145,
0.11882877349853516,
0.6440429091453552,
-0.32733210921287537,
0.3526909351348877,
-0.8508541584014893,
0.3268144428730011,
-0.18524868786334991,
0.4498143196105957,
-0.925803542137146,
-0.10043442249298096,
0.2613440454006195,
-0.663911759853363,
0.14021871984004974,
0.005582909565418959,
-0.5997589826583862,
-0.5519269704818726,
-0.4870533347129822,
0.3235151767730713,
0.39992234110832214,
-0.3500811755657196,
0.3618348240852356,
0.3526683747768402,
0.04482714459300041,
-0.5989210605621338,
-0.9352577924728394,
0.004125670064240694,
-0.16844964027404785,
-0.793644905090332,
0.4033963084220886,
-0.3329866826534271,
-0.053341131657361984,
0.16117434203624725,
0.020518824458122253,
0.06880102306604385,
-0.10527580231428146,
0.2289438396692276,
0.12028149515390396,
-0.10371213406324387,
0.2666114270687103,
-0.1775045096874237,
-0.06721429526805878,
-0.1829371601343155,
-0.17916777729988098,
0.5885739326477051,
-0.3905106782913208,
0.06141144409775734,
-0.5361224412918091,
0.3874068856239319,
0.22020749747753143,
-0.1596279889345169,
0.861127495765686,
0.7008678317070007,
-0.2540145516395569,
0.24177350103855133,
-0.5544205904006958,
-0.09899285435676575,
-0.435798704624176,
0.24191804230213165,
-0.4034605026245117,
-1.074998140335083,
0.5055820345878601,
0.401343435049057,
0.016950905323028564,
0.892250657081604,
0.2569548189640045,
-0.3435512185096741,
0.6954136490821838,
0.3336108326911926,
-0.1288023591041565,
0.3816472589969635,
-0.6947373151779175,
0.24375486373901367,
-0.9367274045944214,
-0.23934635519981384,
-0.5846784710884094,
-0.32355356216430664,
-0.888317883014679,
-0.4964655339717865,
0.37581557035446167,
-0.05396043509244919,
-0.26687338948249817,
0.3771263659000397,
-0.5499891042709351,
0.13455797731876373,
0.6628592014312744,
0.3803633153438568,
-0.0010941425571218133,
0.002123941434547305,
-0.020287316292524338,
-0.09372767806053162,
-0.8719020485877991,
-0.3260238766670227,
1.3117355108261108,
0.2481864094734192,
0.3429211676120758,
-0.020346421748399734,
0.8398136496543884,
0.16771620512008667,
-0.1416075974702835,
-0.4107734262943268,
0.6137744188308716,
-0.3236030340194702,
-0.606608510017395,
-0.2136843055486679,
-0.6781473159790039,
-1.1145038604736328,
-0.07744186371564865,
-0.3785247802734375,
-0.6619629859924316,
0.3761427700519562,
0.04871984198689461,
-0.4794353246688843,
0.24820534884929657,
-0.761565625667572,
0.9503418803215027,
-0.15534254908561707,
-0.39310842752456665,
0.00928407907485962,
-0.9022363424301147,
0.1938839852809906,
0.2225525975227356,
0.2591579854488373,
0.0023204751778393984,
-0.035336241126060486,
1.0675928592681885,
-0.4695572257041931,
0.6417649984359741,
-0.16950249671936035,
0.17180627584457397,
0.3655402362346649,
-0.29737401008605957,
0.37585732340812683,
0.06550034135580063,
-0.2583933472633362,
0.2598996162414551,
0.10916829854249954,
-0.6517269611358643,
-0.4964999556541443,
0.7112135291099548,
-0.9247981309890747,
-0.3964415192604065,
-0.5670725703239441,
-0.5440964698791504,
-0.11150501668453217,
0.04525481164455414,
0.4025658667087555,
0.5043889880180359,
-0.028491562232375145,
0.41436082124710083,
0.6646476984024048,
-0.36203494668006897,
0.4283596873283386,
0.18508969247341156,
0.05892085283994675,
-0.561612606048584,
0.7450584769248962,
0.21493364870548248,
0.05548095703125,
0.5406885743141174,
0.2004885971546173,
-0.2548493444919586,
-0.4760574996471405,
-0.21977964043617249,
0.3775452673435211,
-0.5415614247322083,
-0.263703852891922,
-0.9634714126586914,
-0.3487284779548645,
-0.7283522486686707,
0.06219895929098129,
-0.18291500210762024,
-0.6093867421150208,
-0.494512140750885,
-0.27320313453674316,
0.49816638231277466,
0.4004906117916107,
-0.04951271414756775,
0.11592453718185425,
-0.47682562470436096,
0.2873340845108032,
0.20261526107788086,
0.039307430386543274,
-0.27474093437194824,
-0.721527099609375,
-0.2948901653289795,
0.24567842483520508,
-0.09477311372756958,
-0.7061786651611328,
0.4096008241176605,
0.3695482909679413,
0.4697446823120117,
0.007757898885756731,
0.2021200805902481,
0.8092029690742493,
-0.06600535660982132,
0.9572830200195312,
0.0185775738209486,
-0.6880188584327698,
0.6523276567459106,
-0.3099069595336914,
0.39098232984542847,
0.864888072013855,
0.528529167175293,
-0.46702271699905396,
-0.35338976979255676,
-1.0003083944320679,
-0.940796971321106,
0.7089287638664246,
0.37097498774528503,
0.05562999099493027,
-0.004795332904905081,
0.5591794848442078,
0.00951381865888834,
0.15388883650302887,
-0.7748484015464783,
-0.472217321395874,
-0.15327772498130798,
-0.5237089991569519,
-0.28964197635650635,
-0.2600087523460388,
-0.14902706444263458,
-0.438626766204834,
0.8070907592773438,
-0.1693459004163742,
0.5004118084907532,
0.4972304701805115,
-0.24824322760105133,
0.2323254644870758,
0.17724962532520294,
0.5341460108757019,
0.3582680821418762,
-0.3615611791610718,
0.08501601219177246,
0.14532983303070068,
-0.4793817400932312,
-0.17243711650371552,
0.3790067434310913,
-0.3319021761417389,
-0.09029198437929153,
0.554380476474762,
0.9011531472206116,
0.060291461646556854,
-0.6096929907798767,
0.6039411425590515,
-0.24344822764396667,
-0.44150301814079285,
-0.34532588720321655,
-0.07717384397983551,
0.0939934104681015,
0.13709230720996857,
0.29139670729637146,
-0.002079481491819024,
0.1403641253709793,
-0.432284414768219,
0.18563878536224365,
0.2570720314979553,
-0.340476930141449,
-0.20631948113441467,
0.5002115964889526,
-0.05342927575111389,
-0.020865503698587418,
0.6799659729003906,
-0.2902809679508209,
-0.43209847807884216,
0.6188852787017822,
0.20399197936058044,
0.7368326187133789,
0.15589085221290588,
0.16247603297233582,
0.7578203082084656,
0.3384678363800049,
0.2666596472263336,
0.28098249435424805,
0.14320938289165497,
-0.6256601810455322,
-0.06770996749401093,
-0.563029408454895,
-0.03489943966269493,
0.19819745421409607,
-0.6152507662773132,
0.25287699699401855,
-0.2969509959220886,
0.010312385857105255,
0.16487492620944977,
0.3673793077468872,
-0.792530357837677,
0.09702195227146149,
0.04722106456756592,
0.9681897163391113,
-0.865250289440155,
0.7283686995506287,
0.6209295988082886,
-0.7145057916641235,
-0.8538352847099304,
-0.0071039823815226555,
-0.10597345978021622,
-0.7569714784622192,
0.4280760884284973,
0.18195421993732452,
0.17401722073554993,
0.05245063453912735,
-0.6953400373458862,
-0.9328935146331787,
1.2178808450698853,
0.4237545430660248,
-0.5226189494132996,
-0.06720893085002899,
0.23405872285366058,
0.7106941342353821,
-0.32856327295303345,
0.5192480087280273,
0.5220274329185486,
0.40358966588974,
0.07166928052902222,
-0.8345837593078613,
0.17116360366344452,
-0.5916218161582947,
0.02153235487639904,
-0.11732572317123413,
-0.9116722345352173,
0.698460578918457,
-0.09056267887353897,
-0.13223715126514435,
0.034273989498615265,
0.6348978877067566,
0.3399977385997772,
0.3370096981525421,
0.5182815194129944,
1.0356570482254028,
0.7812660336494446,
-0.07664024084806442,
1.1284390687942505,
-0.3674416244029999,
0.5192907452583313,
1.148654818534851,
0.11522660404443741,
0.8910922408103943,
0.5178316235542297,
-0.26608356833457947,
0.6314907073974609,
0.8172340393066406,
-0.023633545264601707,
0.4350561201572418,
0.0802118107676506,
0.109789177775383,
-0.1515820026397705,
-0.218540221452713,
-0.493400514125824,
0.439212441444397,
0.16580621898174286,
-0.2601318657398224,
0.08255524188280106,
0.052190039306879044,
0.2981483042240143,
0.10441584885120392,
0.04832789674401283,
0.7960132360458374,
0.04604082927107811,
-0.606910228729248,
0.7677668929100037,
-0.25359123945236206,
0.812994122505188,
-0.5485591292381287,
0.2806341052055359,
-0.3990880250930786,
-0.015979040414094925,
-0.3724941909313202,
-0.744434654712677,
0.3575476109981537,
0.04238530620932579,
-0.15174880623817444,
-0.26642030477523804,
0.38214319944381714,
-0.49566084146499634,
-0.6720256805419922,
0.25141385197639465,
0.42784732580184937,
0.1388961672782898,
0.16326647996902466,
-1.0087565183639526,
0.004011819139122963,
0.07809308171272278,
-0.3876281678676605,
0.09858354181051254,
0.2971605360507965,
0.2764616906642914,
0.4998641312122345,
0.6009806990623474,
-0.12031444907188416,
0.07864382117986679,
-0.09536756575107574,
0.881327748298645,
-0.6764816045761108,
-0.4509073793888092,
-0.6322433948516846,
0.5882167816162109,
-0.36725109815597534,
-0.5575144290924072,
0.8678364157676697,
0.9573519825935364,
0.8940691351890564,
0.15384027361869812,
0.7083914875984192,
-0.4580371677875519,
0.6491566896438599,
-0.461061954498291,
0.4795159697532654,
-0.7559633851051331,
0.13279181718826294,
-0.251989483833313,
-0.5771061182022095,
-0.2316778153181076,
0.4665895700454712,
-0.37644124031066895,
0.1521759033203125,
0.8265859484672546,
0.8571304082870483,
0.07084251940250397,
0.01321358047425747,
-0.0955626592040062,
0.3663385808467865,
0.2208940088748932,
0.8999727368354797,
0.4167354106903076,
-0.999362587928772,
0.7713428735733032,
-0.47413983941078186,
-0.10970477014780045,
-0.18621622025966644,
-0.6556188464164734,
-0.7284067273139954,
-0.89919513463974,
-0.5997036099433899,
-0.5156028866767883,
0.08497987687587738,
0.9720683693885803,
0.7286283373832703,
-0.804455041885376,
-0.196353480219841,
-0.2132236659526825,
-0.04962499812245369,
-0.11600308865308762,
-0.24615852534770966,
0.6530795693397522,
-0.06496241688728333,
-0.609444797039032,
0.17740532755851746,
-0.10787180811166763,
-0.029708564281463623,
0.0387733168900013,
-0.1072334423661232,
-0.7782880067825317,
-0.10361211746931076,
0.38390979170799255,
0.32827475666999817,
-0.5002316832542419,
-0.17000021040439606,
0.20221760869026184,
-0.2138320505619049,
0.2006434053182602,
0.43385833501815796,
-0.5255805253982544,
0.32463738322257996,
0.536849856376648,
0.5547322630882263,
0.8953890800476074,
-0.050777923315763474,
0.17114342749118805,
-0.7581981420516968,
0.265682578086853,
0.2991422414779663,
0.3062936067581177,
0.46092644333839417,
-0.48343032598495483,
0.7954555153846741,
0.394750714302063,
-0.5563315749168396,
-0.7732129693031311,
-0.11440441757440567,
-1.3116809129714966,
-0.14283984899520874,
1.3099411725997925,
-0.20888419449329376,
-0.2735120356082916,
0.09118446707725525,
-0.1847062110900879,
0.3403685986995697,
-0.45834431052207947,
0.6319307684898376,
0.6126750707626343,
-0.22555051743984222,
-0.36332032084465027,
-0.43786200881004333,
0.5087383985519409,
0.4941693842411041,
-1.0553127527236938,
-0.11056208610534668,
0.2899298071861267,
0.2160973995923996,
0.2991090714931488,
0.667961061000824,
0.006642394699156284,
0.002154402434825897,
-0.06341823935508728,
-0.021558968350291252,
-0.1433495134115219,
0.0722791776061058,
-0.39794179797172546,
0.1532338559627533,
-0.3172754645347595,
-0.1708880364894867
] |
alirezamsh/quip-512-mocha
|
alirezamsh
| 2023-09-05T12:01:10Z | 7,817 | 1 |
transformers
|
[
"transformers",
"pytorch",
"safetensors",
"roberta",
"text-classification",
"en",
"dataset:mocha",
"arxiv:2211.01482",
"license:bsd-3-clause",
"endpoints_compatible",
"has_space",
"region:us"
] |
text-classification
| 2023-06-01T12:09:39Z |
---
license: bsd-3-clause
datasets:
- mocha
language:
- en
---
# Answer Overlap Module of QAFactEval Metric
This is the span scorer module, used in [RQUGE paper]() to evaluate the generated questions of the question generation task.
The model was originally used in [QAFactEval]() for computing the semantic similarity of the generated answer span, given the reference answer, context, and question in the question answering task.
It outputs a 1-5 answer overlap score. The scorer is trained on their MOCHA dataset (initialized from [Jia et al. (2021)]()), consisting of 40k crowdsourced judgments on QA model outputs.
The input to the model is defined as:
```
[CLS] question [q] gold answer [r] pred answer [c] context
```
# Generation
You can use the following script to get the semantic similarity of the predicted answer given the gold answer, context, and question.
```
from transformers import AutoModelForSequenceClassification, AutoTokenizer
sp_scorer = AutoModelForSequenceClassification.from_pretrained('alirezamsh/quip-512-mocha')
tokenizer_sp = AutoTokenizer.from_pretrained('alirezamsh/quip-512-mocha')
sp_scorer.eval()
pred_answer = ""
gold_answer = ""
question = ""
context = ""
input_sp = f"{question} <q> {gold_answer} <r>" \
f" {pred_answer} <c> {context}"
inputs = tokenizer_sp(input_sp, max_length=512, truncation=True, \
padding="max_length", return_tensors="pt")
outputs = sp_scorer(input_ids=inputs["input_ids"], attention_mask=inputs["attention_mask"])
print(outputs)
```
# Citations
```
@inproceedings{fabbri-etal-2022-qafacteval,
title = "{QAF}act{E}val: Improved {QA}-Based Factual Consistency Evaluation for Summarization",
author = "Fabbri, Alexander and
Wu, Chien-Sheng and
Liu, Wenhao and
Xiong, Caiming",
booktitle = "Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies",
month = jul,
year = "2022",
address = "Seattle, United States",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2022.naacl-main.187",
doi = "10.18653/v1/2022.naacl-main.187",
pages = "2587--2601",
abstract = "Factual consistency is an essential quality of text summarization models in practical settings. Existing work in evaluating this dimension can be broadly categorized into two lines of research, entailment-based and question answering (QA)-based metrics, and different experimental setups often lead to contrasting conclusions as to which paradigm performs the best. In this work, we conduct an extensive comparison of entailment and QA-based metrics, demonstrating that carefully choosing the components of a QA-based metric, especially question generation and answerability classification, is critical to performance. Building on those insights, we propose an optimized metric, which we call QAFactEval, that leads to a 14{\%} average improvement over previous QA-based metrics on the SummaC factual consistency benchmark, and also outperforms the best-performing entailment-based metric. Moreover, we find that QA-based and entailment-based metrics can offer complementary signals and be combined into a single metric for a further performance boost.",
}
@misc{mohammadshahi2022rquge,
title={RQUGE: Reference-Free Metric for Evaluating Question Generation by Answering the Question},
author={Alireza Mohammadshahi and Thomas Scialom and Majid Yazdani and Pouya Yanki and Angela Fan and James Henderson and Marzieh Saeidi},
year={2022},
eprint={2211.01482},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
```
|
[
-0.3136618435382843,
-0.7521476149559021,
0.3989172577857971,
0.15578635036945343,
-0.048584479838609695,
0.05895014479756355,
0.2695523202419281,
-0.30248236656188965,
0.22904668748378754,
0.4169318974018097,
-0.6766530275344849,
-0.42513805627822876,
-0.43945762515068054,
0.11753902584314346,
-0.38230273127555847,
1.1091563701629639,
-0.12808099389076233,
-0.3057825565338135,
-0.7259710431098938,
-0.23798972368240356,
-0.30099064111709595,
-0.3844604790210724,
-0.3419051766395569,
-0.07499746978282928,
0.2680596113204956,
0.32953524589538574,
0.7113471031188965,
0.6854665279388428,
0.6671664714813232,
0.3828046917915344,
0.02363019622862339,
0.4923843741416931,
-0.23576784133911133,
0.09332959353923798,
-0.12210555374622345,
-0.5199698209762573,
-0.6358737945556641,
-0.017826762050390244,
0.6436985731124878,
0.4708695113658905,
-0.10583098977804184,
0.676405668258667,
0.12221395969390869,
0.5946437120437622,
-0.7205718755722046,
0.16615068912506104,
-0.5495350956916809,
-0.17779435217380524,
0.11730381846427917,
-0.21667316555976868,
-0.07176174968481064,
-0.7489733695983887,
-0.02375609800219536,
-0.6835033297538757,
0.20300903916358948,
0.1277291625738144,
1.278756856918335,
0.42309996485710144,
-0.35696321725845337,
-0.2502717971801758,
-0.3379803001880646,
0.7640477418899536,
-0.9655529856681824,
0.1500878632068634,
0.40947434306144714,
0.18324130773544312,
-0.07701664417982101,
-0.7740793228149414,
-0.8598521947860718,
0.11170035600662231,
-0.254932701587677,
0.4217664301395416,
-0.18765868246555328,
-0.012267876416444778,
0.14857347309589386,
0.48832041025161743,
-0.9187405109405518,
-0.3251153528690338,
-0.36828938126564026,
-0.22043298184871674,
0.703035295009613,
0.38786619901657104,
0.18570750951766968,
-0.27204984426498413,
-0.20750899612903595,
-0.10297221690416336,
-0.42223650217056274,
0.30028435587882996,
0.3588073253631592,
0.04320450499653816,
-0.0041734157130122185,
0.6135672926902771,
-0.6534919142723083,
0.5300309658050537,
0.15940973162651062,
-0.15545010566711426,
0.44832685589790344,
-0.6778464913368225,
-0.11481785774230957,
-0.3505343496799469,
0.8216017484664917,
0.39756593108177185,
0.1756417453289032,
-0.1404685378074646,
0.02440459653735161,
0.05417337268590927,
0.18261300027370453,
-0.8084987998008728,
-0.17403018474578857,
0.6180485486984253,
-0.2240501344203949,
-0.18315352499485016,
0.265159010887146,
-0.444986492395401,
0.2262727916240692,
-0.2638980448246002,
0.7563169002532959,
-0.4502791166305542,
-0.19373655319213867,
0.17965087294578552,
-0.15536344051361084,
0.4536191523075104,
0.06511841714382172,
-0.6755222082138062,
0.37893956899642944,
0.7176483273506165,
0.6467860341072083,
-0.0693347379565239,
-0.3578379154205322,
-0.5998212695121765,
-0.04269513860344887,
-0.3754619359970093,
0.7760592103004456,
-0.20510618388652802,
-0.10354609787464142,
-0.009146958589553833,
-0.024430641904473305,
-0.2924762964248657,
-0.6284705996513367,
0.45143604278564453,
-0.5977312326431274,
0.6175951957702637,
-0.2623329162597656,
-0.7443366050720215,
-0.42262953519821167,
0.4114380180835724,
-0.42427992820739746,
1.1816145181655884,
0.198577880859375,
-0.7376164793968201,
0.4054679572582245,
-0.546626627445221,
-0.19642040133476257,
0.10905236005783081,
0.03379311040043831,
-0.4820531904697418,
-0.20758049190044403,
0.2011442631483078,
0.21266348659992218,
-0.21414218842983246,
0.18938171863555908,
-0.04389753192663193,
-0.2907642126083374,
0.3626297116279602,
-0.2472018599510193,
0.6449058651924133,
0.17982164025306702,
-0.2735421061515808,
0.16129474341869354,
-0.7568297982215881,
0.37602391839027405,
-0.07490798830986023,
-0.2992837131023407,
-0.12639324367046356,
-0.13568909466266632,
-0.2647823095321655,
0.41532260179519653,
0.5843358039855957,
-0.6324310898780823,
-0.31564557552337646,
-0.590486466884613,
0.07586479187011719,
0.4780435562133789,
0.35007020831108093,
0.1929558962583542,
-0.7776029109954834,
0.5929815769195557,
0.05567491799592972,
0.06382931768894196,
-0.22922125458717346,
-0.41415518522262573,
-0.8074145317077637,
-0.09662016481161118,
0.536719799041748,
0.6913885474205017,
-0.6101160645484924,
0.649151623249054,
-0.3030345141887665,
-0.676953136920929,
-0.7776894569396973,
-0.035185497254133224,
0.6829423904418945,
0.5652502179145813,
0.42000555992126465,
-0.10464546829462051,
-0.3831886053085327,
-0.9045652151107788,
-0.42407459020614624,
-0.5222917199134827,
-0.027598407119512558,
0.12081670016050339,
0.5262451767921448,
0.3198559284210205,
1.08549165725708,
-0.7358143925666809,
-0.15628582239151,
-0.07352562248706818,
0.06856494396924973,
0.19793163239955902,
0.6359513401985168,
0.45038509368896484,
-0.7947776317596436,
-0.5083538889884949,
-0.27015772461891174,
-0.7138688564300537,
-0.17727570235729218,
-0.007362851873040199,
-0.3660348653793335,
0.029792077839374542,
0.3457614481449127,
-0.597592294216156,
0.3307935297489166,
0.2624293863773346,
-0.5769336819648743,
0.6392092108726501,
0.030595500022172928,
0.5974615216255188,
-1.2783286571502686,
0.14954906702041626,
-0.2789202034473419,
-0.16728058457374573,
-0.568257212638855,
0.4043768048286438,
0.05376141518354416,
0.27462685108184814,
-0.46202972531318665,
0.596702516078949,
-0.16446855664253235,
0.08821170777082443,
-0.03671233728528023,
0.4173755943775177,
0.27774059772491455,
0.5793612599372864,
-0.3012095093727112,
0.9820854067802429,
0.1898033767938614,
-0.7789266109466553,
0.23525922000408173,
0.5852422118186951,
-0.2880294919013977,
0.504672646522522,
-0.9043243527412415,
-0.01952051930129528,
-0.045974403619766235,
-0.011579257436096668,
-1.2507206201553345,
-0.18662507832050323,
0.13730208575725555,
-1.019610047340393,
-0.1261138617992401,
0.23881107568740845,
-0.6901597380638123,
-0.17851726710796356,
-0.34504902362823486,
0.5831056833267212,
0.7572269439697266,
-0.3395463228225708,
0.47153541445732117,
0.2381523996591568,
-0.2559819221496582,
-0.5310522317886353,
-0.610708475112915,
-0.3508371412754059,
-0.1827537566423416,
-0.7845311164855957,
0.29632568359375,
-0.26096200942993164,
-0.20351825654506683,
0.10272859781980515,
-0.05210501328110695,
-0.026574919000267982,
0.07044441252946854,
0.07027039676904678,
0.2694835960865021,
-0.42383086681365967,
0.4015388488769531,
0.17582355439662933,
0.04875338822603226,
0.18428415060043335,
-0.22005560994148254,
0.5202676653862,
-0.23061944544315338,
-0.3182779848575592,
-0.44210413098335266,
0.23997361958026886,
0.4354320764541626,
-0.6307007074356079,
0.7641539573669434,
0.3622312843799591,
-0.29212984442710876,
0.16122744977474213,
-0.5156651735305786,
-0.10840333253145218,
-0.4780080318450928,
0.5256643295288086,
-0.4478829503059387,
-0.8572211265563965,
0.722998857498169,
0.3403394818305969,
0.4310881495475769,
0.9022504091262817,
0.4604059159755707,
-0.03859705850481987,
1.024166464805603,
0.2951039969921112,
0.26324892044067383,
0.1356084942817688,
-0.2996515929698944,
-0.05065791681408882,
-0.74627685546875,
-0.2865775227546692,
-0.5295839905738831,
-0.06769561022520065,
-0.5146582126617432,
-0.37168410420417786,
0.32985618710517883,
0.04882955923676491,
-0.3499331474304199,
0.24619050323963165,
-0.20585787296295166,
0.43692633509635925,
0.45331862568855286,
-0.06496192514896393,
0.34449464082717896,
-0.18839363753795624,
0.04364515841007233,
-0.06279437988996506,
-0.7357355952262878,
-0.4940676987171173,
1.0525627136230469,
0.22934693098068237,
0.17229537665843964,
0.36139237880706787,
0.7595005631446838,
0.2210114598274231,
0.06328490376472473,
-0.6237769722938538,
0.6725999712944031,
-0.07402057200670242,
-0.48884791135787964,
-0.341972678899765,
-0.5169562101364136,
-0.7969264388084412,
0.45829081535339355,
-0.2413160651922226,
-0.536147952079773,
-0.03905874118208885,
0.07325268536806107,
-0.5836477875709534,
0.04618729650974274,
-0.44299307465553284,
0.8429381251335144,
0.1899988204240799,
-0.2778116762638092,
-0.12269168347120285,
-0.611648678779602,
0.4192346930503845,
-0.009712952189147472,
0.09091567248106003,
-0.16043633222579956,
-0.08981630951166153,
0.9833697080612183,
-0.44881007075309753,
0.4994649291038513,
0.034402694553136826,
-0.044424474239349365,
0.601800262928009,
0.008929722011089325,
0.1817493587732315,
-0.0029079376254230738,
0.006972396746277809,
-0.09160391986370087,
0.35030633211135864,
-0.5441544055938721,
-0.8211044669151306,
0.4031371474266052,
-0.690487265586853,
-0.5985466837882996,
-0.3513588309288025,
-0.639275312423706,
-0.3158135414123535,
0.12437877058982849,
0.268992155790329,
0.6814330816268921,
-0.1905919313430786,
0.18305347859859467,
0.6635013818740845,
-0.04977357015013695,
0.27809596061706543,
0.5996468663215637,
-0.19931721687316895,
-0.41180163621902466,
0.8940335512161255,
0.21287469565868378,
0.3942466974258423,
0.5042504668235779,
0.05213464796543121,
-0.5299190878868103,
-0.3196640610694885,
-0.44450393319129944,
0.3363754451274872,
-0.5284423232078552,
-0.4368302524089813,
-0.9263166785240173,
-0.5897800922393799,
-0.5864085555076599,
0.11047396063804626,
-0.10310770571231842,
-0.8030056357383728,
-0.2170780599117279,
-0.22794078290462494,
0.3354959487915039,
0.38965845108032227,
0.15668469667434692,
0.36236605048179626,
-0.8206824660301208,
0.2541242241859436,
0.31690070033073425,
0.08405579626560211,
0.10787387192249298,
-0.9336320757865906,
-0.24797257781028748,
0.08858589082956314,
-0.4385069012641907,
-0.7227951288223267,
0.23675180971622467,
0.35504794120788574,
0.5208621621131897,
0.2646564245223999,
0.32845425605773926,
0.5767887234687805,
-0.24551580846309662,
1.0157548189163208,
-0.014731093309819698,
-0.836500883102417,
0.4711754620075226,
-0.22636376321315765,
0.6004809141159058,
0.7833834290504456,
0.3328142762184143,
-0.4431183934211731,
-0.872570276260376,
-0.8874062895774841,
-0.8698951005935669,
0.4096120297908783,
0.3583444654941559,
0.1384056955575943,
-0.2881833016872406,
0.20484331250190735,
0.15553788840770721,
0.3426738679409027,
-0.3816694915294647,
-0.1923203021287918,
-0.11769813299179077,
-0.5548770427703857,
0.12305115908384323,
-0.07986482232809067,
-0.07421478629112244,
-0.11424744874238968,
0.8242015838623047,
-0.2644507884979248,
0.09054338186979294,
0.2979724109172821,
-0.11708591878414154,
0.07317101210355759,
0.274006724357605,
0.46617838740348816,
0.7593209147453308,
-0.2143188714981079,
-0.10603844374418259,
0.3031492829322815,
-0.4828270971775055,
0.0022202911786735058,
0.019960256293416023,
-0.38612449169158936,
0.03911789134144783,
0.4179723560810089,
0.4630187451839447,
-0.14102496206760406,
-0.7106481790542603,
0.604357898235321,
0.06702464818954468,
-0.5611052513122559,
-0.36596715450286865,
0.27367308735847473,
-0.131333127617836,
0.1931728720664978,
0.352148175239563,
-0.17075102031230927,
0.2584773898124695,
-0.44060754776000977,
0.391122043132782,
0.30657264590263367,
-0.3105233609676361,
-0.16501009464263916,
0.6622179746627808,
-0.03788240626454353,
-0.18280495703220367,
0.4755970239639282,
-0.3542402386665344,
-0.6641802787780762,
0.8273131847381592,
0.3908909857273102,
0.8985949158668518,
-0.0890360102057457,
0.4222385883331299,
0.6523284912109375,
0.16068661212921143,
0.20291781425476074,
0.6163647770881653,
-0.06069699674844742,
-0.6580840349197388,
-0.37344127893447876,
-0.7723552584648132,
-0.21739977598190308,
-0.12421189993619919,
-0.7716213464736938,
-0.04935254156589508,
-0.4064008891582489,
-0.055223140865564346,
-0.1093902662396431,
0.14892786741256714,
-0.4315815567970276,
0.521938145160675,
-0.49164456129074097,
0.7782523036003113,
-0.7476794719696045,
0.3342759907245636,
0.7512617111206055,
-0.658038854598999,
-0.9960274696350098,
0.25485241413116455,
-0.09801066666841507,
-0.5328187346458435,
0.37468069791793823,
-0.050547610968351364,
-0.10007600486278534,
0.06732628494501114,
-0.32999277114868164,
-0.9134356379508972,
1.2496051788330078,
-0.12906546890735626,
0.06064159795641899,
0.03884710744023323,
0.17472195625305176,
0.5816009640693665,
-0.4506198465824127,
0.3334231376647949,
0.6763709783554077,
0.2413867712020874,
0.1663074642419815,
-0.8314739465713501,
0.18461178243160248,
-0.4667994976043701,
-0.3204375207424164,
0.2853925824165344,
-0.9996209144592285,
0.6793427467346191,
-0.2936100363731384,
-0.2639976441860199,
0.3664286136627197,
0.9859645962715149,
0.45544004440307617,
0.378554105758667,
0.2968941628932953,
0.5791364908218384,
0.6718214154243469,
-0.15169188380241394,
0.6526797413825989,
-0.3744979202747345,
0.24524883925914764,
1.1024712324142456,
0.0743333175778389,
1.0005728006362915,
0.3570133149623871,
-0.49625808000564575,
0.6377521753311157,
0.5735337734222412,
0.019714612513780594,
0.43418240547180176,
0.06263289600610733,
0.020259929820895195,
-0.14299483597278595,
-0.07536888122558594,
-0.4344075620174408,
0.5439136624336243,
0.09058845043182373,
-0.11503998190164566,
-0.007274703588336706,
-0.48858174681663513,
0.027431325986981392,
0.4157600700855255,
-0.16541346907615662,
1.0004510879516602,
-0.12809786200523376,
-0.9441789388656616,
0.602211594581604,
0.0004988524597138166,
0.4906493127346039,
-0.6431871056556702,
-0.09665165841579437,
-0.46285587549209595,
-0.04478299990296364,
-0.29236462712287903,
-0.8374882936477661,
0.4463518261909485,
-0.12367631494998932,
-0.3499930202960968,
0.31325531005859375,
0.39627835154533386,
-0.6551697254180908,
-0.33213531970977783,
-0.19624444842338562,
0.6959498524665833,
0.17746154963970184,
0.10729340463876724,
-0.5853345394134521,
-0.6420475840568542,
-0.0025385948829352856,
-0.028902152553200722,
0.27926933765411377,
0.4414821267127991,
0.05431031808257103,
0.5592665076255798,
0.5797043442726135,
-0.02792908065021038,
0.13761363923549652,
-0.10294165462255478,
0.7143030762672424,
-0.4848591685295105,
-0.8667669892311096,
-0.599828839302063,
0.6073843240737915,
-0.19006599485874176,
-0.6310654282569885,
0.7877597808837891,
0.8605167865753174,
0.6965208053588867,
-0.029527081176638603,
0.5668061375617981,
-0.1292094886302948,
0.7641593813896179,
-0.5225061178207397,
0.8231770992279053,
-0.8068913221359253,
0.09306101500988007,
-0.29829463362693787,
-0.9595032930374146,
0.003264248138293624,
0.26275762915611267,
-0.19865840673446655,
0.04210056737065315,
0.765010416507721,
0.8700042963027954,
0.09385315328836441,
0.014860744588077068,
0.3151046633720398,
-0.002610804047435522,
0.09079534560441971,
0.5549688935279846,
0.733496904373169,
-0.7732048630714417,
0.6501965522766113,
0.0818176120519638,
-0.23404718935489655,
0.11073251068592072,
-0.43260446190834045,
-0.6055868864059448,
-0.784627377986908,
-0.5099968314170837,
-0.5598711967468262,
0.05800364539027214,
0.8095958828926086,
0.2565385103225708,
-0.868184506893158,
-0.13615401089191437,
0.09705862402915955,
0.08216293901205063,
-0.4011610746383667,
-0.31563952565193176,
0.5997545123100281,
-0.46489861607551575,
-0.6218071579933167,
-0.17470374703407288,
0.04581516981124878,
-0.015755999833345413,
-0.05002795159816742,
-0.03269574046134949,
-0.3545048236846924,
0.4940708875656128,
0.42905306816101074,
0.19737599790096283,
-0.6481170654296875,
-0.2855803370475769,
0.3253474533557892,
-0.11045078188180923,
-0.020299984142184258,
0.3515050411224365,
-0.7818291783332825,
0.15824508666992188,
0.6782568097114563,
0.7677564024925232,
0.21150176227092743,
0.47297078371047974,
0.47878190875053406,
-0.6884757280349731,
-0.2358812689781189,
0.1977636218070984,
0.044958390295505524,
0.2827893793582916,
-0.2238522320985794,
0.5241049528121948,
0.10686814785003662,
-0.6508066654205322,
-0.6435410976409912,
0.25555962324142456,
-0.7799303531646729,
-0.09339731931686401,
1.1374462842941284,
-0.26851850748062134,
-0.2281610518693924,
-0.1366589218378067,
-0.19402159750461578,
0.23538453876972198,
-0.2506820559501648,
0.7636333107948303,
0.6649963855743408,
-0.15845932066440582,
-0.08490466326475143,
-0.35776588320732117,
0.5570372343063354,
0.6840636134147644,
-0.8907063603401184,
-0.06395429372787476,
0.3854362666606903,
0.27087199687957764,
0.28486427664756775,
0.6657701730728149,
-0.3759448826313019,
0.6357473134994507,
0.10737941414117813,
0.0005751596763730049,
-0.07552380114793777,
-0.09474632143974304,
-0.06461235135793686,
0.3250523805618286,
-0.022045575082302094,
-0.424766480922699
] |
FlagAlpha/Llama2-Chinese-13b-Chat
|
FlagAlpha
| 2023-09-11T13:24:23Z | 7,811 | 238 |
transformers
|
[
"transformers",
"pytorch",
"llama",
"text-generation",
"question-answering",
"zh",
"en",
"license:apache-2.0",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] |
question-answering
| 2023-07-24T12:10:46Z |
---
developers: [https://huggingface.co/FlagAlphaAI]
license: apache-2.0
language:
- zh
- en
pipeline_tag: question-answering
library_name: transformers
---
# Llama2中文社区
---
## Llama2中文微调参数
由于Llama2本身的中文对齐较弱,我们采用中文指令集,对meta-llama/Llama-2-13b-chat-hf进行LoRA微调,使其具备较强的中文对话能力。
🎯 **该版本为LoRA中文微调参数FlagAlpha/Llama2-Chinese-13b-Chat-LoRA和meta-llama/Llama-2-13b-chat-hf参数结合后的版本,可直接使用**
---
## 🚀 社区地址:
Github:[**Llama2-Chinese**](https://github.com/FlagAlpha/Llama2-Chinese)
在线体验链接:[**llama.family**](https://llama.family/)
## 🔥 社区介绍
欢迎来到Llama2中文社区!
我们是一个专注于Llama2模型在中文方面的优化和上层建设的高级技术社区。
**基于大规模中文数据,从预训练开始对Llama2模型进行中文能力的持续迭代升级**。
我们热忱欢迎对大模型LLM充满热情的开发者和研究者加入我们的行列。
## 🐼 社区资源
- Llama2在线体验链接[**llama.family**](https://llama.family/),同时包含Meta原版和中文微调版本!
- Llama2 Chat模型的[中文问答能力评测](https://github.com/FlagAlpha/Llama2-Chinese/tree/main#-%E6%A8%A1%E5%9E%8B%E8%AF%84%E6%B5%8B)!
- [社区飞书知识库](https://chinesellama.feishu.cn/wiki/space/7257824476874768388?ccm_open_type=lark_wiki_spaceLink),欢迎大家一起共建!
|
[
-0.45154258608818054,
-0.654995858669281,
0.24095404148101807,
0.7854989171028137,
-0.8945130109786987,
0.312747597694397,
0.1237696185708046,
-0.77558434009552,
0.5368347764015198,
0.4350246787071228,
-0.6358233094215393,
-0.7248053550720215,
-0.5487260222434998,
0.06961696594953537,
-0.11675651371479034,
0.9346910715103149,
-0.23550041019916534,
-0.2956762909889221,
0.3916865587234497,
-0.20972254872322083,
-0.46932417154312134,
-0.2212890386581421,
-0.6787562966346741,
-0.20808644592761993,
0.195780411362648,
0.2931300699710846,
0.6923303604125977,
0.57332444190979,
0.6298707127571106,
0.26493459939956665,
-0.21147648990154266,
0.3104296326637268,
-0.42089518904685974,
-0.2657274305820465,
0.09187760949134827,
-0.6549458503723145,
-0.8235814571380615,
-0.38050493597984314,
0.6065901517868042,
0.2585604190826416,
-0.14238473773002625,
0.44793984293937683,
0.2624500095844269,
0.8812425136566162,
-0.3116125464439392,
0.6534864902496338,
-0.5330549478530884,
0.08690104633569717,
-0.45239412784576416,
-0.35570237040519714,
0.08267199248075485,
-0.6899580955505371,
-0.4017127454280853,
-0.7065513730049133,
-0.2939528226852417,
0.08139795064926147,
1.3603711128234863,
0.09096565842628479,
-0.6016180515289307,
-0.14655277132987976,
-0.2948702275753021,
0.8230631947517395,
-0.9142525792121887,
-0.18090735375881195,
0.5476549863815308,
0.4125729203224182,
-0.3636685609817505,
-0.7685880064964294,
-0.7469587922096252,
0.11572770029306412,
-0.3029407262802124,
0.14000140130519867,
-0.3308914303779602,
-0.3822900652885437,
-0.05723263695836067,
0.16188569366931915,
-0.5460713505744934,
0.40240478515625,
-0.5497894287109375,
-0.15721389651298523,
0.6801743507385254,
0.0775688961148262,
0.3851815462112427,
-0.4518378674983978,
-0.625968873500824,
0.08441285043954849,
-1.0695345401763916,
0.3220846951007843,
0.2705453634262085,
0.060193248093128204,
-0.7985021471977234,
0.47804439067840576,
-0.2404407113790512,
0.25662851333618164,
0.18234598636627197,
-0.6531811356544495,
0.586934506893158,
-0.5532047748565674,
-0.11342641711235046,
-0.25561240315437317,
1.0217270851135254,
0.7418230175971985,
-0.033594418317079544,
0.2712346315383911,
-0.11892642825841904,
-0.29317528009414673,
-0.5229797959327698,
-0.7999843955039978,
0.08323954790830612,
0.5069599747657776,
-0.879946231842041,
-0.4275583326816559,
0.10685141384601593,
-1.0057872533798218,
-0.03970106691122055,
0.1471104770898819,
0.07165790349245071,
-0.14690446853637695,
-0.752025306224823,
0.04629572108387947,
0.10638947039842606,
0.5006338953971863,
0.486901193857193,
-0.9007559418678284,
0.03264386206865311,
0.8397150635719299,
0.8858776688575745,
-0.054594457149505615,
-0.2012399137020111,
0.05957065522670746,
0.6054102182388306,
-0.31703534722328186,
0.8117644786834717,
-0.10256332904100418,
-0.5624276995658875,
0.1730049103498459,
0.19565501809120178,
0.059758711606264114,
-0.5530010461807251,
0.6581270694732666,
-0.6411744356155396,
0.12126525491476059,
-0.5210555791854858,
0.09707694500684738,
-0.5941264033317566,
0.3042222857475281,
-0.6099347472190857,
1.2565703392028809,
0.165190190076828,
-1.0492256879806519,
-0.09361770004034042,
-0.6343326568603516,
-0.42852839827537537,
0.06663905084133148,
-0.2544902563095093,
-0.41765522956848145,
-0.4297630190849304,
0.1534075289964676,
0.23799966275691986,
-0.5207909941673279,
0.1542186588048935,
0.03805502504110336,
-0.41685956716537476,
0.13548438251018524,
-0.20365141332149506,
1.2993427515029907,
0.33932366967201233,
-0.6767217516899109,
0.10385435819625854,
-0.5661395788192749,
0.03804278001189232,
0.6545301079750061,
-0.5430067181587219,
-0.04934413358569145,
0.23023349046707153,
0.10583747923374176,
0.1245686411857605,
0.9579664468765259,
-0.2905847132205963,
0.5519137978553772,
-0.5654385685920715,
0.4813484251499176,
0.9580445289611816,
0.11639022082090378,
-0.04415923357009888,
-0.5217092633247375,
0.3776225447654724,
0.19947078824043274,
0.32994192838668823,
-0.14468009769916534,
-0.7700089812278748,
-1.1512255668640137,
-0.15737789869308472,
-0.2953450381755829,
0.9520965218544006,
-0.6652852892875671,
0.9650810956954956,
-0.10821180045604706,
-0.7580609321594238,
-0.2935848832130432,
0.2580806016921997,
0.6271104216575623,
0.053274061530828476,
0.44218355417251587,
-0.23920859396457672,
-0.7969085574150085,
-0.7783180475234985,
0.2428380399942398,
-0.8712908029556274,
0.17544835805892944,
0.45492416620254517,
0.7915244698524475,
-0.7153863906860352,
0.6707406044006348,
-0.5215849280357361,
-0.4237719774246216,
-0.27557671070098877,
-0.15705369412899017,
0.6147855520248413,
0.3495637774467468,
0.9668998122215271,
-0.6524085402488708,
-0.6907674074172974,
0.14219751954078674,
-0.8842549920082092,
-0.1998893916606903,
-0.0753156766295433,
-0.3064104914665222,
0.5212299227714539,
-0.04736039415001869,
-0.5398316383361816,
0.4276961088180542,
0.7830421924591064,
-0.4180418848991394,
0.7661042213439941,
0.056180503219366074,
0.11354191601276398,
-1.2822548151016235,
-0.00007068144623190165,
-0.639187216758728,
0.11968333274126053,
-0.2835004925727844,
0.37180227041244507,
-0.18034052848815918,
0.6141271591186523,
-0.6679971218109131,
0.6504866480827332,
-0.4288679361343384,
-0.061532847583293915,
-0.269157737493515,
0.18407346308231354,
-0.08616223931312561,
0.649431049823761,
-0.3551831543445587,
0.870650053024292,
0.6120723485946655,
-0.617919921875,
0.5562715530395508,
0.5822651386260986,
-0.3004247546195984,
-0.00499362125992775,
-0.7989387512207031,
0.09453587979078293,
0.21183142066001892,
0.7350950241088867,
-1.2919098138809204,
-0.16237454116344452,
0.8105881214141846,
-0.32464030385017395,
0.06004748493432999,
0.03060309588909149,
-0.598185658454895,
-0.534133791923523,
-0.9103285670280457,
0.5110276937484741,
0.6941497325897217,
-0.8094571232795715,
0.06776997447013855,
0.44682827591896057,
0.00661343801766634,
-0.8920925855636597,
-0.8505517840385437,
0.14803655445575714,
-0.08899284899234772,
-0.72037273645401,
0.41063496470451355,
-0.16625423729419708,
-0.03552756831049919,
-0.16212157905101776,
0.05678228288888931,
-0.08358345180749893,
-0.03455504775047302,
0.2940099835395813,
0.23706109821796417,
-0.26600968837738037,
-0.3612118363380432,
0.34065142273902893,
-0.23994651436805725,
0.05218268185853958,
0.189195454120636,
0.7515292167663574,
-0.16866524517536163,
-0.6784380674362183,
-0.8543092012405396,
0.3358805477619171,
0.4627048373222351,
-0.11246573179960251,
0.6413137912750244,
0.7542352080345154,
-0.2145177721977234,
0.15076349675655365,
-0.7724588513374329,
0.1623290628194809,
-0.5940292477607727,
0.4302392899990082,
-0.2987139821052551,
-1.2825140953063965,
0.6437534093856812,
-0.11043698340654373,
0.3215341866016388,
0.8230838179588318,
0.6804081797599792,
-0.2091040462255478,
0.7477313876152039,
0.7645496129989624,
-0.44638511538505554,
0.2503392696380615,
-0.48707473278045654,
0.016404801979660988,
-1.0055694580078125,
-0.6206352710723877,
-0.5882731080055237,
-0.3469686508178711,
-0.8353087902069092,
-0.7289018630981445,
0.3596733510494232,
0.2782382071018219,
-0.47940799593925476,
0.5858860015869141,
-0.721386730670929,
0.1883232742547989,
0.36063385009765625,
0.0005142753361724317,
0.4684165120124817,
0.1452447772026062,
-0.07304371148347855,
0.17266930639743805,
-0.4461628198623657,
-0.9338462352752686,
0.9125835299491882,
0.5594881176948547,
0.5229361057281494,
0.45701679587364197,
0.7107998728752136,
0.05910605192184448,
0.13015958666801453,
-0.538580596446991,
0.7866813540458679,
0.019428210332989693,
-0.6463292837142944,
-0.17061077058315277,
-0.031230052933096886,
-1.2389131784439087,
0.19682003557682037,
0.2734627425670624,
-1.2137788534164429,
0.23356658220291138,
-0.15515504777431488,
-0.1420765370130539,
0.6276431083679199,
-0.3475112020969391,
0.3253580629825592,
-0.394591361284256,
-0.030000658705830574,
-0.42987534403800964,
-0.6319982409477234,
0.914259135723114,
-0.37836799025535583,
0.3690031170845032,
-0.40589842200279236,
-0.5255286693572998,
1.0411553382873535,
-0.6034639477729797,
1.0875039100646973,
-0.18758229911327362,
-0.4227767884731293,
0.8950978517532349,
0.044887274503707886,
0.7946521043777466,
0.4562396705150604,
-0.06609217822551727,
0.7460626363754272,
0.10939082503318787,
-0.30144256353378296,
-0.13167327642440796,
0.7649296522140503,
-1.2377312183380127,
-0.9877995848655701,
-0.49531251192092896,
0.1621117740869522,
0.27973973751068115,
0.12311140447854996,
0.3265802562236786,
-0.30636635422706604,
0.055866412818431854,
0.13035883009433746,
0.18721430003643036,
-0.502518892288208,
0.7523114085197449,
0.8179742097854614,
-0.548899233341217,
-0.6892019510269165,
0.6976956725120544,
0.1768031269311905,
0.03264041990041733,
0.5721564292907715,
-0.10419759899377823,
-0.033913932740688324,
-0.48448261618614197,
-0.4771471321582794,
0.4964308738708496,
-0.5396633148193359,
-0.36097612977027893,
-0.520548403263092,
-0.46021729707717896,
-0.23692508041858673,
-0.02593066915869713,
-0.23363645374774933,
-0.44343101978302,
-0.4754466116428375,
-0.18376559019088745,
0.6384259462356567,
0.621608555316925,
-0.25664645433425903,
0.5572904348373413,
-0.9113392233848572,
0.6291836500167847,
0.08486931771039963,
0.19932569563388824,
0.25713473558425903,
-0.6076244711875916,
-0.3265094459056854,
0.08066539466381073,
-0.5005112886428833,
-1.1129894256591797,
0.448822557926178,
-0.039348624646663666,
0.5853497982025146,
0.7100249528884888,
-0.08556108921766281,
0.871231198310852,
-0.31461840867996216,
1.0749331712722778,
0.41640037298202515,
-0.9190439581871033,
0.7515943646430969,
-0.4282114803791046,
-0.0966985896229744,
0.22627319395542145,
0.23370812833309174,
-0.5436119437217712,
-0.1254756599664688,
-0.3352608382701874,
-1.0639500617980957,
0.870400071144104,
0.3994196355342865,
0.2564266622066498,
0.11700312793254852,
0.08653299510478973,
0.012396596372127533,
0.135691300034523,
-1.029090404510498,
-0.7426307797431946,
-0.194915309548378,
0.1973283439874649,
0.2627231180667877,
-0.8616160154342651,
-0.25222048163414,
-0.22671763598918915,
0.7702107429504395,
0.1498146951198578,
0.5999509692192078,
0.12262224406003952,
0.36522719264030457,
-0.512247622013092,
0.1422819197177887,
0.5823168754577637,
0.4751531779766083,
-0.15691225230693817,
-0.15286436676979065,
0.47924602031707764,
-0.6686034202575684,
0.20273633301258087,
-0.26088201999664307,
-0.42331382632255554,
0.14228935539722443,
0.7196201086044312,
0.7976310849189758,
0.09912387281656265,
-0.5864685773849487,
0.498254656791687,
0.17929184436798096,
-0.1841466724872589,
-0.8411732316017151,
0.22134757041931152,
0.3487415313720703,
0.5380204319953918,
0.7737666368484497,
-0.27679431438446045,
-0.13064533472061157,
-0.5473096370697021,
-0.07724668830633163,
0.4766288101673126,
0.05018727481365204,
-0.2634875774383545,
0.5693652033805847,
0.42192062735557556,
-0.1006007269024849,
0.1902661919593811,
-0.2966320812702179,
-0.851731538772583,
1.1082571744918823,
0.7038716077804565,
0.873874306678772,
-0.13671350479125977,
0.08776717633008957,
0.9258599877357483,
0.7113713026046753,
0.04252900183200836,
0.7854786515235901,
-0.13411350548267365,
-0.5387867093086243,
-0.22873936593532562,
-0.6308292150497437,
-0.4132562279701233,
0.29118046164512634,
-0.23733465373516083,
0.43132418394088745,
-0.7142404913902283,
-0.10740217566490173,
-0.5609219670295715,
0.4374485909938812,
-0.2531527578830719,
-0.10455054044723511,
-0.015055443160235882,
1.1268433332443237,
-0.6155121922492981,
0.999255895614624,
0.40186962485313416,
-0.4221557676792145,
-0.9842898845672607,
0.04061640426516533,
0.1291120946407318,
-1.107635259628296,
0.8195387721061707,
0.16938643157482147,
-0.15223504602909088,
-0.15709778666496277,
-0.6471315622329712,
-1.5275681018829346,
1.727769136428833,
-0.018143923953175545,
-0.6617411971092224,
0.2893068194389343,
0.20337648689746857,
0.40317004919052124,
-0.18932905793190002,
0.3702310621738434,
0.27522119879722595,
1.0311239957809448,
0.17179103195667267,
-1.2809855937957764,
0.361127108335495,
-0.45744165778160095,
-0.04085569456219673,
-0.13905036449432373,
-1.5148366689682007,
0.8992195725440979,
-0.2920595705509186,
-0.48612886667251587,
0.4641435444355011,
0.8280239105224609,
0.6377077102661133,
0.4639326333999634,
0.35024651885032654,
0.4859105050563812,
0.4794328510761261,
-0.2593328654766083,
0.5052406787872314,
-0.29508745670318604,
0.4846818745136261,
0.7772986888885498,
-0.29630786180496216,
0.9896687865257263,
0.39944228529930115,
-0.8488914966583252,
0.9066682457923889,
0.8803484439849854,
-0.34112846851348877,
0.5727750658988953,
-0.1312442421913147,
-0.3633008301258087,
0.18803195655345917,
-0.16592983901500702,
-1.0257307291030884,
0.28486260771751404,
0.4933932423591614,
-0.07689905166625977,
-0.12726522982120514,
-0.5920272469520569,
0.34057584404945374,
-0.3405958414077759,
-0.134891539812088,
0.7662915587425232,
0.050738465040922165,
-0.4290600121021271,
0.8747369647026062,
0.356305330991745,
1.102020025253296,
-0.7494714260101318,
-0.11498548090457916,
-0.39624160528182983,
-0.13344071805477142,
-0.6699233651161194,
-0.8142642974853516,
0.2958502173423767,
0.21199992299079895,
-0.09566015750169754,
0.28396132588386536,
0.6186895966529846,
-0.046551261097192764,
-0.4067123234272003,
0.7689154148101807,
0.4280741512775421,
0.4110296666622162,
0.5155411958694458,
-0.9856827855110168,
0.22899428009986877,
0.4179533123970032,
-0.7893890738487244,
0.39361709356307983,
0.3001839816570282,
-0.2685874104499817,
0.7696372866630554,
1.01741361618042,
0.02062292955815792,
-0.05552312359213829,
-0.23426678776741028,
1.1671369075775146,
-0.6422584056854248,
-0.39635172486305237,
-1.0481840372085571,
0.5282742977142334,
0.07688788324594498,
-0.41092804074287415,
0.7234007716178894,
0.6237840056419373,
0.7076770067214966,
-0.07616091519594193,
0.8227259516716003,
-0.3755561411380768,
0.5634889602661133,
-0.2757301330566406,
0.8290385007858276,
-0.6287639737129211,
0.34843018651008606,
-0.2558826804161072,
-0.880583643913269,
-0.1532527208328247,
0.7204120755195618,
0.18720850348472595,
0.15949615836143494,
0.8493385910987854,
1.0055910348892212,
0.28416839241981506,
-0.35712677240371704,
0.023100340738892555,
0.36503955721855164,
0.4267359972000122,
1.2288389205932617,
0.6975155472755432,
-0.7319669127464294,
0.7230532765388489,
-0.3778187930583954,
-0.25529414415359497,
-0.611838698387146,
-0.9045699238777161,
-0.9818931221961975,
-0.426031231880188,
-0.2231961041688919,
-0.21305756270885468,
-0.10470818728208542,
0.830201268196106,
0.4635390341281891,
-0.9779970049858093,
-0.5822253823280334,
0.17251165211200714,
0.5101314187049866,
-0.13998307287693024,
-0.17277607321739197,
0.8548471927642822,
0.21313993632793427,
-0.66068434715271,
0.3390752077102661,
0.4772372543811798,
0.07686957716941833,
-0.20588365197181702,
-0.34888458251953125,
-0.29494422674179077,
-0.05708833783864975,
0.5193960666656494,
0.5217520594596863,
-1.2023451328277588,
-0.11461213231086731,
-0.29880017042160034,
-0.5035897493362427,
0.02221277542412281,
0.13324274122714996,
-0.5307736992835999,
-0.18347115814685822,
0.7062161564826965,
0.00987931713461876,
0.30445507168769836,
-0.16307103633880615,
-0.037735793739557266,
-0.4052932858467102,
0.4539559483528137,
-0.3060045540332794,
0.5801131129264832,
-0.11909003555774689,
-0.39118173718452454,
0.9762483239173889,
0.4882233440876007,
-0.3917708098888397,
-0.6626851558685303,
0.2945992052555084,
-1.3977853059768677,
-0.2826955318450928,
1.5226106643676758,
-0.2509863078594208,
-0.189395934343338,
-0.007320971228182316,
-0.7833060622215271,
0.6874716281890869,
-0.406883180141449,
0.8087073564529419,
0.46546387672424316,
0.15833447873592377,
0.10617439448833466,
-0.5108363032341003,
0.2636777460575104,
0.269344300031662,
-0.9422508478164673,
-0.29189053177833557,
0.1386444866657257,
0.01484657172113657,
0.32702669501304626,
0.7891360521316528,
-0.07337991893291473,
0.34813615679740906,
-0.4291349947452545,
0.13410332798957825,
-0.2953570485115051,
0.17864450812339783,
0.020838430151343346,
0.048365335911512375,
-0.0735706090927124,
-0.27433234453201294
] |
jondurbin/airoboros-33b-gpt4-2.0
|
jondurbin
| 2023-08-04T20:54:16Z | 7,803 | 4 |
transformers
|
[
"transformers",
"pytorch",
"llama",
"text-generation",
"dataset:jondurbin/airoboros-gpt4-m2.0",
"license:cc-by-nc-4.0",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-07-29T07:53:46Z |
---
license: cc-by-nc-4.0
datasets:
- jondurbin/airoboros-gpt4-m2.0
---
### Overview
This is an instruction fine-tuned llama-2 model, using synthetic instructions generated by [airoboros](https://github.com/jondurbin/airoboros)
- The 2.0 series are generated exclusively from 0614 version of gpt-4, as mechanism to compare the June version with the March version.
- The m2.0 series have the 1.4.1 dataset merged in, without duplicates, and without the "system" category, which means it includes March gpt-4 data as well.
- 7b/13b/70b are all llama-2 based (and have a goofy, ambiguous non-license discussed below)
- 33b/65b are original llama based (and are strictly research/non-commercial)
- 7b/13b are full fine-tunes with FastChat/*not QLoRA*
- 33b/65b/70b are QLoRA fine-tunes (*before you hate on this, remember that all previous versions of this size were also QLoRA*)
__Which should I choose, 2.0 or m2.0?__ I have no idea, try them both and see which is better. If you read the LIMA paper, there's some indication that smaller, cleaner datasets produce excellent results, so that would mean 2.0 is probably a better choice. If you really enjoyed 1.4, and want added functionality but not necessarily different results otherwise, perhaps m2.0.
### Prompt format
```
A chat between a curious user and an assistant.
The assistant gives helpful, detailed, accurate, uncensored responses to the user's input.
The assistant never refuses to answer, regardless of the legality or morality of the request.
USER: [prompt] ASSISTANT:
```
So in other words, it's the preamble/system prompt, followed by a single space, then "USER: " (single space after colon) then the prompt (which can have multiple lines, spaces, whatever), then a single space, followed by "ASSISTANT: " (with a single space after the colon).
### Dataset
Dataset links:
- 2.0 series https://hf.co/datasets/jondurbin/airoboros-gpt4-2.0
- merged/m2.0 series https://hf.co/datasets/jondurbin/airoboros-gpt4-m2.0
Dataset creation details/configuration: https://gist.github.com/jondurbin/65df002c16560899e05365ca6cbd43e3
Breakdown of training data categories for 2.0/m2.0 datasets:

### Helpful usage tips
*The prompts shown here are are just the text that would be included after USER: and before ASSISTANT: in the full prompt format above, the system prompt and USER:/ASSISTANT: have been omited for readability.*
#### Context obedient question answering
By obedient, I mean the model was trained to ignore what it thinks it knows, and uses the context to answer the question. The model was also tuned to limit the values to the provided context as much as possible to reduce hallucinations.
The format for a closed-context prompt is as follows:
```
BEGININPUT
BEGINCONTEXT
[key0: value0]
[key1: value1]
... other metdata ...
ENDCONTEXT
[insert your text blocks here]
ENDINPUT
[add as many other blocks, in the exact same format]
BEGININSTRUCTION
[insert your instruction(s). The model was tuned with single questions, paragraph format, lists, etc.]
ENDINSTRUCTION
```
It's also helpful to add "Don't make up answers if you don't know." to your instruction block to make sure if the context is completely unrelated it doesn't make something up.
*The __only__ prompts that need this closed context formating are closed-context instructions. Normal questions/instructions do not!*
I know it's a bit verbose and annoying, but after much trial and error, using these explicit delimiters helps the model understand where to find the responses and how to associate specific sources with it.
- `BEGININPUT` - denotes a new input block
- `BEGINCONTEXT` - denotes the block of context (metadata key/value pairs) to associate with the current input block
- `ENDCONTEXT` - denotes the end of the metadata block for the current input
- [text] - Insert whatever text you want for the input block, as many paragraphs as can fit in the context.
- `ENDINPUT` - denotes the end of the current input block
- [repeat as many input blocks in this format as you want]
- `BEGININSTRUCTION` - denotes the start of the list (or one) instruction(s) to respond to for all of the input blocks above.
- [instruction(s)]
- `ENDINSTRUCTION` - denotes the end of instruction set
It sometimes works without `ENDINSTRUCTION`, but by explicitly including that in the prompt, the model better understands that all of the instructions in the block should be responded to.
Here's a trivial, but important example to prove the point:
```
BEGININPUT
BEGINCONTEXT
date: 2021-01-01
url: https://web.site/123
ENDCONTEXT
In a shocking turn of events, blueberries are now green, but will be sticking with the same name.
ENDINPUT
BEGININSTRUCTION
What color are bluberries? Source?
ENDINSTRUCTION
```
And the response:
```
Blueberries are now green.
Source:
date: 2021-01-01
url: https://web.site/123
```
#### Coding
You can ask for fairly complex coding instructions with multiple criteria, e.g.:
```
Create a python application with the following requirements:
- Asyncio FastAPI webserver
- ping endpoint that returns the current date in JSON format
- file upload endpoint, which calculates the file's sha256 checksum, and checks postgres to deduplicate
```
Or inline criteria:
```
Write a multi-threaded TCP server in C that accepts a "GET [key]" input and "SET [key] [value]" input, and uses a binary tree to get and store the input values.
```
You can also optionally add a single space and "PLAINFORMAT" at the end of your prompt to avoid backticks, explanations, etc. and just print the code, e.g.:
```
Write a websocket application in node.js. PLAINFORMAT
```
#### Agent/function calling
The dataset includes many examples of function/args generation based on input criteria. This is somewhat similar to the OpenAI function calling, but the output is either JSON or YAML.
Example prompt:
```
As an AI assistant, please select the most suitable function and parameters from the list of available functions below, based on the user's input. Provide your response in JSON format.
Input: I want to know how many times 'Python' is mentioned in my text file.
Available functions:
file_analytics:
description: This tool performs various operations on a text file.
params:
action: The operation we want to perform on the data, such as "count_occurrences", "find_line", etc.
filters:
keyword: The word or phrase we want to search for.
```
Response:
```json
{
"function": "file_analytics",
"params": {
"action": "count_occurrences",
"filters": {
"keyword": "Python"
}
}
}
```
#### Chain-of-thought
You can ask for several possible responses to a given problem, with a ranking and final answer selection.
Example prompt:
```
A group of people decide to play a round-robin tournament where every player plays every other player exactly once. If a total of 45 games were played, how many players participated in the tournament? Offer several potential answers, rank them according to mathematical logic, and pick the most feasible one.
```
Example response:
```
Solution 1:
In a round-robin tournament, each player plays every other player exactly once. This means that the total number of games played is equal to the combination of all players taken two at a time (since a game involves two players).
The formula for combinations is nC2 = n(n-1)/2, where n is the total number of players. We know that nC2 equals 45 (the total number of games), so we can set up the equation as follows:
n(n-1)/2 = 45
Solving this equation gives us n=10.
Final answer: There were 10 players in the tournament.
Solution 2:
Another way to approach this problem is by using the concept of triangular numbers. Triangular numbers are a sequence of numbers where each number can be represented as a triangle with dots. The nth triangular number is given by the sum of the first n natural numbers.
If we consider each game as a dot and each player as a side of the triangle, then the total number of games (45) would correspond to the 9th triangular number because 1+2+3+4+5+6+7+8+9=45. However, since each side of the triangle represents a player, and there's one more player than sides in our model (because the last player has no one left to play against), we need to add one more to get the total number of players.
Final answer: There were 10 players in the tournament.
Solution 3:
We could also use trial and error to solve this problem. Starting from a small number of players, we calculate how many games would be played in a round-robin tournament until we reach 45 games. For example, with 2 players, only 1 game is played; with 3 players, 3 games are played; with 4 players, 6 games are played, and so on. Continuing this process, we find that with 10 players, 45 games are played.
Final answer: There were 10 players in the tournament.
Ranking of solutions from best to worst:
1. Solution 1: This solution uses direct mathematical reasoning based on the properties of a round-robin tournament and solves an equation to find the answer.
2. Solution 2: This solution uses the concept of triangular numbers which requires additional steps and knowledge beyond the immediate problem context, but still arrives at the correct answer.
3. Solution 3: This solution relies on trial and error, which is less efficient and reliable than the other methods, but it eventually gets to the right answer.
Best and final answer: There were 10 players in the tournament.
```
#### reWOO style execution planning
The model now supports execution planning for complex instructions that would require making use of several tools. The output is just the plan, you must implement a mechanism to parse the output and actually call the functions!
Example prompt:
```
Please construct a systematic plan to generate an optimal response to the user instruction, utilizing a set of provided tools. Each plan will correspond to an evidence value, which will be the output of one of the available functions given an input string
that could be the user's question, one or more prior evidence values, or a combination of both.
Here are the tools available to be called:
DuckDuckGo[input]: Tool that enables the user to search for information using the DuckDuckGo search engine. This tool is helpful in locating a suitable list of sites that may contain the answer to the user's query. It does not directly answer the question but finds a list of sites that might have the answer.
TextScraper[input]: Load one or more websites from the input string containing newline delimited links, where input is one or more links, and produces plain text output containing the content of the links.
HyperlinkExtractor[input]: Extract links from plain text and produces a plain text, newline delimited response of links.
KnowledgeModel[input]: Question answering language model, particularly useful in answering questions based on an input passage of text. The input must be a text question that references an :evidence[n]: variable, e.g. What color is the cat, given :evidence1:?
The output should be in format:
Plan: [first action to take based on input question]
:evidence0: = [function to call with input parameter]
Plan: [next action to take, based on result of :evidence0:]
:evidence1: = [next function to call and input parameter, which may include reference to previous evidence, e.g. "Given context :evidence0"]
...
Answer: [:evidence[n]: containing the final answer.]
Question: Who won the Nobel Prize in Literature in 2020 and what is their most famous work?
```
Response:
```
Plan: Begin by conducting a web search to find out who won the Nobel Prize in Literature in 2020.
:evidence0: = DuckDuckGo[Nobel Prize in Literature 2020 winner]
Plan: Utilize the KnowledgeModel to interpret the search results and find the name of the laureate.
:evidence1: = KnowledgeModel[Who won the Nobel Prize in Literature in 2020, given :evidence0:?]
Plan: Conduct another web search to find the most famous work of the identified laureate.
:evidence2: = DuckDuckGo[Most famous work of :evidence1:]
Plan: Extract the relevant links from the DuckDuckGo search results for a more focused search.
:evidence3: = HyperlinkExtractor[:evidence2:]
Plan: Use the TextScraper tool to extract information from the relevant links.
:evidence4: = TextScraper[:evidence3:]
Plan: Finally, utilize the KnowledgeModel to identify and summarize the most famous work of the laureate from the extracted information.
:evidence5: = KnowledgeModel[What is the most famous work of :evidence1:, given :evidence4:?]
Answer: :evidence5:
```
For this to be useful, you'd have to parse the output plan text, and implement/call each of the functions. This is just pseudo-code, completely untested off the top of my head, and obviously would requiring full implementation + hardening:
```python
import re
import requests
def inject_context(input_text, **context):
for ref in set(re.findall(r"(:evidence[0-9]+:)", input_text, re.I)):
input_text = input_text.replace(ref, context.get(ref, ""))
return input_text
def duckduckgo(input_text, **context):
search_string = inject_context(input_text, **context)
... search via duck duck go using search_string
... return text content
def link_extractor(input_text, **context):
input_text = inject_context(input_text, **context)
return "\n".join(list(set(re.findall(r"(https?://[^\s]+?\.?)", input_text, re.I))))
def scrape(input_text, **context):
input_text = inject_context(input_text, **context)
text = []
for link in input_text.splitlines():
text.append(requests.get(link).text)
return "\n".join(text)
def infer(input_text, **context)
prompt = inject_context(input_text, **context)
... call model with prompt, return output
def parse_plan(plan):
method_map = {
"DuckDuckGo": duckduckgo,
"HyperlinkExtractor": link_extractor,
"KnowledgeModel": infer,
"TextScraper": scrape,
}
context = {}
for line in plan.strip().splitlines():
if line.startswith("Plan:"):
print(line)
continue
parts = re.match("^(:evidence[0-9]+:)\s*=\s*([^\[]+])(\[.*\])\s$", line, re.I)
if not parts:
if line.startswith("Answer: "):
return context.get(line.split(" ")[-1].strip(), "Answer couldn't be generated...")
raise RuntimeError("bad format: " + line)
context[parts.group(1)] = method_map[parts.group(2)](parts.group(3), **context)
```
### Contribute
If you're interested in new functionality, particularly a new "instructor" type to generate a specific type of training data,
take a look at the dataset generation tool repo: https://github.com/jondurbin/airoboros and either make a PR or open an issue with details.
To help me with the OpenAI/compute costs:
- https://bmc.link/jondurbin
- ETH 0xce914eAFC2fe52FdceE59565Dd92c06f776fcb11
- BTC bc1qdwuth4vlg8x37ggntlxu5cjfwgmdy5zaa7pswf
### Licence and usage restrictions
The airoboros 2.0/m2.0 models are built on top of either llama or llama-2. Any model with `-l2-` in the name uses llama2, `..-33b-...` and `...-65b-...` are based on the original llama.
#### Llama (original) models
If the model was based on the original llama (33b/65b), the license is __cc-by-nc-4.0__ and is for research/academic use only -- no commercial usage whatsoever!
#### Llama-2 models
Base model has a custom Meta license:
- See the [meta-license/LICENSE.txt](meta-license/LICENSE.txt) file attached for the original license provided by Meta.
- See also [meta-license/USE_POLICY.md](meta-license/USE_POLICY.md) and [meta-license/Responsible-Use-Guide.pdf](meta-license/Responsible-Use-Guide.pdf), also provided by Meta.
The fine-tuning data was generated by OpenAI API calls to gpt-4, via [airoboros](https://github.com/jondurbin/airoboros)
The ToS for OpenAI API usage has a clause preventing the output from being used to train a model that __competes__ with OpenAI
- what does *compete* actually mean here?
- these small open source models will not produce output anywhere near the quality of gpt-4, or even gpt-3.5, so I can't imagine this could credibly be considered competing in the first place
- if someone else uses the dataset to do the same, they wouldn't necessarily be violating the ToS because they didn't call the API, so I don't know how that works
- the training data used in essentially all large language models includes a significant amount of copyrighted or otherwise non-permissive licensing in the first place
- other work using the self-instruct method, e.g. the original here: https://github.com/yizhongw/self-instruct released the data and model as apache-2
I am purposingly leaving this license ambiguous (other than the fact you must comply with the Meta original license for llama-2) because I am not a lawyer and refuse to attempt to interpret all of the terms accordingly.
Your best bet is probably to avoid using this commercially due to the OpenAI API usage.
Either way, by using this model, you agree to completely indemnify me.
|
[
-0.36925968527793884,
-0.8215273022651672,
0.490695059299469,
0.25114721059799194,
-0.14149506390094757,
-0.18376022577285767,
-0.12351931631565094,
-0.297259658575058,
0.20279112458229065,
0.3265896737575531,
-0.6806014776229858,
-0.5282016396522522,
-0.4085811376571655,
0.2680950462818146,
-0.20146186649799347,
1.032008409500122,
-0.06789606064558029,
-0.028762618079781532,
-0.01201129425317049,
0.06953231245279312,
-0.6212071776390076,
-0.38244447112083435,
-0.8163607716560364,
-0.13799412548542023,
0.3922160565853119,
0.4435361623764038,
0.4264737069606781,
0.562703549861908,
0.5267428159713745,
0.3602278232574463,
-0.0017266384093090892,
0.23061604797840118,
-0.43021488189697266,
0.04642121121287346,
-0.08068718016147614,
-0.48859259486198425,
-0.3278764486312866,
0.09862445294857025,
0.4263322353363037,
0.44954606890678406,
-0.2308056801557541,
0.34027841687202454,
-0.003862727666273713,
0.3893296718597412,
-0.39068078994750977,
0.2223621904850006,
-0.3921164870262146,
0.09179165214300156,
-0.1097840666770935,
-0.46629828214645386,
-0.3044280409812927,
-0.23945319652557373,
0.07627931982278824,
-0.9760287404060364,
-0.06317821890115738,
0.14299403131008148,
0.8859262466430664,
0.31263118982315063,
-0.4041662812232971,
-0.3234156370162964,
-0.5044265389442444,
0.7644195556640625,
-0.7512583136558533,
0.07925091683864594,
0.5728373527526855,
0.4591830372810364,
-0.40087270736694336,
-0.7787273526191711,
-0.6132611632347107,
-0.11615430563688278,
-0.2274373322725296,
0.2616455554962158,
-0.14254486560821533,
-0.0737026035785675,
0.4807644188404083,
0.08411090821027756,
-0.8020530343055725,
-0.13182219862937927,
-0.5976337790489197,
-0.0924324095249176,
0.6462505459785461,
0.35801801085472107,
0.21042944490909576,
-0.10481435060501099,
-0.36830610036849976,
-0.04372403398156166,
-0.47751420736312866,
0.25401750206947327,
0.3704087734222412,
0.3438836634159088,
-0.30626291036605835,
0.478693425655365,
-0.33146730065345764,
0.5787137150764465,
0.09213201701641083,
-0.19512613117694855,
0.08279212564229965,
-0.47374534606933594,
-0.2386346012353897,
-0.10518936067819595,
0.9786286950111389,
0.6604129672050476,
0.1442093849182129,
0.030847929418087006,
-0.029674191027879715,
-0.11350119113922119,
0.1117585152387619,
-0.8711957931518555,
-0.2526785433292389,
0.55052649974823,
-0.49292662739753723,
-0.33890199661254883,
-0.013028821907937527,
-0.772759199142456,
-0.1673041433095932,
-0.16816160082817078,
0.5685836672782898,
-0.36751818656921387,
0.018335578963160515,
0.1163645088672638,
-0.3362511098384857,
0.24010337889194489,
0.425988107919693,
-0.748996913433075,
0.5508185625076294,
0.3830629289150238,
0.8887284994125366,
0.055786196142435074,
-0.34510812163352966,
-0.5472949743270874,
-0.07508483529090881,
-0.12443607300519943,
0.7450870871543884,
-0.3912865221500397,
-0.3759748339653015,
-0.2522513270378113,
0.2572494149208069,
0.023677125573158264,
-0.28881800174713135,
0.22676730155944824,
-0.398518830537796,
0.5675562024116516,
-0.44142094254493713,
-0.48567450046539307,
-0.2974906861782074,
0.26101547479629517,
-0.4211687743663788,
0.9403958916664124,
0.09201035648584366,
-0.7432116866111755,
-0.060865022242069244,
-0.9559863805770874,
-0.3082564175128937,
-0.015016341581940651,
0.022756539285182953,
-0.09259463846683502,
-0.30758893489837646,
0.13851021230220795,
0.3344816267490387,
-0.39421892166137695,
0.11477687954902649,
-0.25489476323127747,
-0.4858453571796417,
0.3427986800670624,
-0.24498187005519867,
1.094486951828003,
0.2942884564399719,
-0.21878930926322937,
0.13053783774375916,
-0.653679370880127,
0.05022960528731346,
0.22145472466945648,
-0.4378647804260254,
-0.057705655694007874,
0.05875613912940025,
-0.06226613372564316,
0.05058617517352104,
0.26598653197288513,
-0.45176970958709717,
0.3355312943458557,
-0.2973062992095947,
0.8248299956321716,
0.6950031518936157,
0.2052837461233139,
0.2996513247489929,
-0.3642953336238861,
0.4286240041255951,
-0.01109053660184145,
0.364014595746994,
-0.37016430497169495,
-0.647474467754364,
-0.5501195192337036,
0.021296311169862747,
0.1862676441669464,
0.8605572581291199,
-0.638251781463623,
0.431486040353775,
-0.025862669572234154,
-0.487770140171051,
-0.27006667852401733,
-0.1252739280462265,
0.3234196901321411,
0.6554856300354004,
0.4915519654750824,
-0.1252952367067337,
-0.7055233716964722,
-0.7112355828285217,
0.17643150687217712,
-0.17775382101535797,
0.02394191175699234,
0.4515962600708008,
0.6804234385490417,
-0.16200734674930573,
0.8074356317520142,
-0.8211484551429749,
-0.03218052536249161,
-0.07747624814510345,
0.018519634380936623,
0.33459728956222534,
0.5640360116958618,
0.5121640563011169,
-0.6077718734741211,
-0.3648609220981598,
-0.08797847479581833,
-0.815040647983551,
-0.04456605389714241,
-0.061321113258600235,
-0.2648168206214905,
-0.03935431316494942,
0.2894234359264374,
-0.628251850605011,
0.4586055278778076,
0.289499968290329,
-0.44560593366622925,
0.5915480256080627,
-0.09753170609474182,
0.26337987184524536,
-1.1637662649154663,
0.2449113130569458,
-0.1560419648885727,
-0.12877865135669708,
-0.5875729918479919,
0.2781144678592682,
-0.2189350426197052,
-0.011303680948913097,
-0.4696725010871887,
0.6639890074729919,
-0.3391990065574646,
0.017138930037617683,
-0.056888047605752945,
0.13661475479602814,
0.1639179289340973,
0.607372522354126,
-0.12319977581501007,
0.8266812562942505,
0.4897274971008301,
-0.6746105551719666,
0.5677501559257507,
0.21748945116996765,
-0.060229599475860596,
0.3648986518383026,
-0.8451334834098816,
0.20115706324577332,
-0.03292502835392952,
0.3134704828262329,
-1.0798165798187256,
-0.1444917917251587,
0.5170751214027405,
-0.5961093306541443,
0.029261449351906776,
-0.13181178271770477,
-0.302754282951355,
-0.5067437887191772,
-0.42681583762168884,
0.3021577000617981,
0.4484572410583496,
-0.3006884455680847,
0.46092575788497925,
0.31497058272361755,
0.07843256741762161,
-0.4844493865966797,
-0.6274930834770203,
0.06932844966650009,
-0.31640031933784485,
-0.5305294394493103,
0.293228417634964,
-0.40451735258102417,
-0.25581347942352295,
-0.222110316157341,
0.06011957675218582,
-0.23860980570316315,
0.28357359766960144,
0.20031850039958954,
0.20965738594532013,
-0.17856056988239288,
-0.12192901968955994,
0.08006434142589569,
-0.051455941051244736,
0.03076978214085102,
-0.4201900362968445,
0.7579687833786011,
-0.21591395139694214,
-0.0955033004283905,
-0.6664784550666809,
0.4692468047142029,
0.2724550664424896,
-0.15136215090751648,
0.4908705949783325,
0.5821500420570374,
-0.4565298557281494,
0.15737959742546082,
-0.24700655043125153,
-0.36149871349334717,
-0.5337461829185486,
0.18539828062057495,
-0.37674668431282043,
-0.5624905228614807,
0.6774510741233826,
0.2749047875404358,
0.18370772898197174,
0.46444445848464966,
0.39921483397483826,
-0.2979249060153961,
0.8030597567558289,
0.22445620596408844,
0.21406102180480957,
0.2681224048137665,
-0.5593631267547607,
-0.06283542513847351,
-0.8294517993927002,
-0.37329986691474915,
-0.5116134285926819,
-0.42606332898139954,
-0.5282125473022461,
-0.273060142993927,
0.33099788427352905,
0.2968594431877136,
-0.5456907749176025,
0.4684225022792816,
-0.6818320751190186,
0.4914935529232025,
0.6939893364906311,
0.1697302758693695,
0.09481130540370941,
-0.15906549990177155,
0.004005903378129005,
0.08225692063570023,
-0.5756564140319824,
-0.46280401945114136,
1.108683705329895,
0.21877096593379974,
0.5509351491928101,
0.21270932257175446,
0.8002480268478394,
0.24807009100914001,
0.026475513353943825,
-0.7477476596832275,
0.6551659107208252,
0.03993980959057808,
-0.5075470209121704,
-0.4443057179450989,
-0.30962899327278137,
-1.0125397443771362,
0.15348786115646362,
-0.10149824619293213,
-0.8643541932106018,
0.16987073421478271,
0.1206936240196228,
-0.7915816307067871,
0.01615319587290287,
-0.705271303653717,
0.8458316326141357,
-0.2384863793849945,
-0.28070467710494995,
0.10095278918743134,
-0.7564113140106201,
0.30053144693374634,
0.17939478158950806,
0.1248350441455841,
0.02986830100417137,
-0.05051187053322792,
0.8902338743209839,
-0.6873725056648254,
0.8165920376777649,
-0.27938076853752136,
0.21588927507400513,
0.4916795790195465,
0.02013019472360611,
0.409126877784729,
0.21045508980751038,
0.007087842561304569,
0.16441619396209717,
0.304782897233963,
-0.2948102355003357,
-0.5624526739120483,
0.5814252495765686,
-0.8596950173377991,
-0.4830273687839508,
-0.40603622794151306,
-0.4788873791694641,
0.18143348395824432,
0.3354484438896179,
0.4390898048877716,
0.5230949521064758,
-0.08234523236751556,
-0.044451043009757996,
0.5045976042747498,
-0.28067708015441895,
0.5819628834724426,
0.5293186902999878,
-0.27751296758651733,
-0.5926123261451721,
0.7102140188217163,
0.1725553721189499,
-0.022347230464220047,
0.587628960609436,
0.37730029225349426,
-0.2958418130874634,
-0.4133298993110657,
-0.6467004418373108,
0.14682675898075104,
-0.5477115511894226,
-0.27842283248901367,
-0.7373092174530029,
-0.05404530465602875,
-0.5129340887069702,
-0.06449038535356522,
-0.01270731259137392,
-0.5225092172622681,
-0.49351781606674194,
-0.026342935860157013,
0.6066787838935852,
0.5809577107429504,
-0.013699219562113285,
0.5967453718185425,
-0.5992110371589661,
0.22524109482765198,
0.3118470013141632,
0.12505081295967102,
0.009199212305247784,
-0.5857929587364197,
-0.09541445970535278,
0.22227664291858673,
-0.41626209020614624,
-1.099448800086975,
0.33109796047210693,
0.10366659611463547,
0.44660380482673645,
0.499283105134964,
-0.04480068385601044,
0.8070288300514221,
-0.5564318299293518,
1.0106618404388428,
0.04336729273200035,
-0.7910590767860413,
0.7231055498123169,
-0.5610291957855225,
0.12242314219474792,
0.5041555762290955,
0.38393881916999817,
-0.5702832341194153,
-0.059127043932676315,
-0.5117812752723694,
-0.7547861337661743,
0.9038251042366028,
0.27880844473838806,
-0.09469272196292877,
-0.09004556387662888,
0.4874502420425415,
-0.015434040687978268,
0.21894106268882751,
-0.6751847267150879,
-0.4100673496723175,
-0.4386669099330902,
-0.18899428844451904,
-0.026536598801612854,
-0.010401710867881775,
-0.29562050104141235,
-0.3471943438053131,
0.4845614433288574,
-0.11949177831411362,
0.5859439373016357,
0.18469880521297455,
0.07208739221096039,
0.0598158985376358,
0.07914087176322937,
0.79298335313797,
0.5185205340385437,
-0.32042744755744934,
0.020776623860001564,
0.2253456860780716,
-0.47854870557785034,
0.0987924113869667,
0.17662987112998962,
-0.2367304265499115,
-0.26191869378089905,
0.3366442620754242,
0.697609007358551,
0.048878613859415054,
-0.496166855096817,
0.36543047428131104,
-0.179157555103302,
-0.14435319602489471,
-0.299811452627182,
0.25451892614364624,
0.1435166895389557,
0.2055731862783432,
0.25602662563323975,
-0.0974154844880104,
0.3880390524864197,
-0.6509324908256531,
0.12650541961193085,
0.2849344313144684,
-0.010056457482278347,
-0.35750812292099,
0.62841796875,
0.1988309770822525,
-0.6133826375007629,
0.5745410919189453,
-0.4946701228618622,
-0.5305001735687256,
0.8223862051963806,
0.7032721638679504,
0.6176927089691162,
-0.1870475858449936,
0.2687147557735443,
0.5344362854957581,
0.29071658849716187,
-0.19116131961345673,
0.6119235754013062,
-0.09122107177972794,
-0.5237914323806763,
-0.06953886151313782,
-0.629472553730011,
-0.29977744817733765,
0.1484230011701584,
-0.5635504126548767,
0.20988334715366364,
-0.6566634178161621,
-0.19542492926120758,
0.03320590406656265,
0.21186819672584534,
-0.7109917402267456,
0.18451960384845734,
-0.13336697220802307,
0.9331275224685669,
-0.9007519483566284,
0.469245046377182,
0.7577681541442871,
-0.6829708218574524,
-0.8666938543319702,
-0.17250889539718628,
0.11489971727132797,
-0.7321343421936035,
0.3734440207481384,
0.19057834148406982,
0.16978009045124054,
0.05468470975756645,
-0.6939253211021423,
-0.9579052925109863,
1.2785933017730713,
0.08510899543762207,
-0.40415677428245544,
-0.11219295859336853,
-0.025895018130540848,
0.4972483813762665,
-0.43281230330467224,
0.6566783785820007,
0.46972519159317017,
0.6303749680519104,
0.04397387057542801,
-0.8892121315002441,
0.29167652130126953,
-0.38430824875831604,
-0.05647300183773041,
-0.009108063764870167,
-0.8333185911178589,
1.063193440437317,
-0.34117916226387024,
-0.18368694186210632,
0.0982857495546341,
0.46479496359825134,
0.1903846263885498,
0.33133426308631897,
0.3299434781074524,
0.47730326652526855,
0.9487523436546326,
-0.13394032418727875,
0.9543171525001526,
-0.26413649320602417,
0.26392537355422974,
1.060007095336914,
-0.10433606803417206,
0.7590535283088684,
0.35500025749206543,
-0.47378453612327576,
0.5171012878417969,
0.8975464105606079,
-0.1144418939948082,
0.5276367664337158,
0.13361959159374237,
0.05623743310570717,
0.005566079635173082,
0.07841126620769501,
-0.4692433178424835,
0.4671863615512848,
0.24235574901103973,
-0.14130330085754395,
-0.10864915698766708,
-0.028035445138812065,
0.17298732697963715,
-0.1814960539340973,
-0.14350681006908417,
0.7177613973617554,
-0.004065609537065029,
-0.7496230006217957,
0.665214478969574,
0.12237250804901123,
0.6189720034599304,
-0.543307363986969,
-0.1842547357082367,
-0.3574962615966797,
-0.06980860233306885,
-0.28399431705474854,
-0.8852589130401611,
0.20571692287921906,
-0.013954292051494122,
-0.31468984484672546,
0.08739328384399414,
0.34979671239852905,
-0.2882843017578125,
-0.36794593930244446,
0.10748979449272156,
0.27604255080223083,
0.619205892086029,
0.06931398808956146,
-0.7159250378608704,
0.13416428864002228,
0.1294768899679184,
-0.2535288333892822,
0.1986946314573288,
0.3443470299243927,
-0.03566636145114899,
0.6610347032546997,
0.6983045339584351,
-0.030508482828736305,
0.0003953324048779905,
-0.1532392054796219,
0.7968721389770508,
-0.6917099952697754,
-0.5163264870643616,
-0.8080176711082458,
0.5440108180046082,
-0.11522897332906723,
-0.48985445499420166,
0.5975804924964905,
0.6362892985343933,
0.6524030566215515,
0.03744623064994812,
0.67457115650177,
-0.23070897161960602,
0.2846170961856842,
-0.4673008322715759,
0.599190354347229,
-0.5526516437530518,
0.2960142195224762,
-0.08706170320510864,
-0.6352617144584656,
-0.0787883922457695,
0.8196882009506226,
-0.18434639275074005,
0.0004529265861492604,
0.6195573806762695,
0.8018930554389954,
0.03672771900892258,
0.14105676114559174,
-0.03937976434826851,
0.2645861506462097,
0.3293178379535675,
0.6382364630699158,
0.635949432849884,
-0.6183140277862549,
0.4697236716747284,
-0.2769891619682312,
-0.4274793863296509,
-0.13443364202976227,
-0.7267320156097412,
-0.8206705451011658,
-0.5082427859306335,
-0.0695512667298317,
-0.380668044090271,
0.1504560112953186,
1.07569420337677,
0.6096055507659912,
-0.7984981536865234,
-0.39495912194252014,
0.06711525470018387,
0.09971293061971664,
-0.3579825162887573,
-0.28884339332580566,
0.2827916443347931,
-0.13924360275268555,
-0.6408077478408813,
0.39723706245422363,
0.028136543929576874,
0.10975457727909088,
-0.15591639280319214,
-0.06792092323303223,
-0.3557358682155609,
0.10536037385463715,
0.5746753811836243,
0.3506258428096771,
-0.6564735174179077,
-0.28971871733665466,
0.19350703060626984,
-0.015132825821638107,
0.052497658878564835,
0.42467349767684937,
-0.7623165249824524,
0.2902681529521942,
0.50013667345047,
0.22526295483112335,
0.45882245898246765,
0.045807015150785446,
0.35583722591400146,
-0.5286076664924622,
0.03954951465129852,
0.07898637652397156,
0.3558734953403473,
0.14546827971935272,
-0.6113818883895874,
0.5495467782020569,
0.30637627840042114,
-0.5970593690872192,
-0.87098628282547,
0.012757320888340473,
-1.0583399534225464,
-0.3304669260978699,
1.1646147966384888,
-0.13842244446277618,
-0.16637660562992096,
-0.12659364938735962,
-0.38933247327804565,
0.14698703587055206,
-0.6148346662521362,
0.6236528754234314,
0.6124572157859802,
-0.47140637040138245,
0.08153162896633148,
-0.45058777928352356,
0.43770498037338257,
-0.061707764863967896,
-0.8227192759513855,
-0.09273229539394379,
0.4229644536972046,
0.48866453766822815,
0.2730105519294739,
0.8353195786476135,
0.14860038459300995,
0.2837267816066742,
0.10168764740228653,
-0.06377020478248596,
-0.2667650878429413,
-0.3617871105670929,
-0.16002392768859863,
0.12727898359298706,
-0.26460492610931396,
-0.3175860047340393
] |
microsoft/deberta-v3-xsmall
|
microsoft
| 2022-09-26T08:59:28Z | 7,802 | 28 |
transformers
|
[
"transformers",
"pytorch",
"tf",
"deberta-v2",
"deberta",
"deberta-v3",
"fill-mask",
"en",
"arxiv:2006.03654",
"arxiv:2111.09543",
"license:mit",
"endpoints_compatible",
"region:us"
] |
fill-mask
| 2022-03-02T23:29:05Z |
---
language: en
tags:
- deberta
- deberta-v3
- fill-mask
thumbnail: https://huggingface.co/front/thumbnails/microsoft.png
license: mit
---
## DeBERTaV3: Improving DeBERTa using ELECTRA-Style Pre-Training with Gradient-Disentangled Embedding Sharing
[DeBERTa](https://arxiv.org/abs/2006.03654) improves the BERT and RoBERTa models using disentangled attention and enhanced mask decoder. With those two improvements, DeBERTa out perform RoBERTa on a majority of NLU tasks with 80GB training data.
In [DeBERTa V3](https://arxiv.org/abs/2111.09543), we further improved the efficiency of DeBERTa using ELECTRA-Style pre-training with Gradient Disentangled Embedding Sharing. Compared to DeBERTa, our V3 version significantly improves the model performance on downstream tasks. You can find more technique details about the new model from our [paper](https://arxiv.org/abs/2111.09543).
Please check the [official repository](https://github.com/microsoft/DeBERTa) for more implementation details and updates.
The DeBERTa V3 xsmall model comes with 12 layers and a hidden size of 384. It has only **22M** backbone parameters with a vocabulary containing 128K tokens which introduces 48M parameters in the Embedding layer. This model was trained using the 160GB data as DeBERTa V2.
#### Fine-tuning on NLU tasks
We present the dev results on SQuAD 2.0 and MNLI tasks.
| Model |Vocabulary(K)|Backbone #Params(M)| SQuAD 2.0(F1/EM) | MNLI-m/mm(ACC)|
|-------------------|----------|-------------------|-----------|----------|
| RoBERTa-base |50 |86 | 83.7/80.5 | 87.6/- |
| XLNet-base |32 |92 | -/80.2 | 86.8/- |
| ELECTRA-base |30 |86 | -/80.5 | 88.8/ |
| DeBERTa-base |50 |100 | 86.2/83.1| 88.8/88.5|
| DeBERTa-v3-large|128|304 | 91.5/89.0 | 91.8/91.9|
| DeBERTa-v3-base |128|86 | 88.4/85.4 | 90.6/90.7|
| DeBERTa-v3-small |128|44 | 82.8/80.4 | 88.3/87.7|
| **DeBERTa-v3-xsmall** |128|**22** | **84.8/82.0** | **88.1/88.3**|
| DeBERTa-v3-xsmall+SiFT|128|22 | -/- | 88.4/88.5|
[#| ELECTRA-small |30 |9.6 | - | - |]::
#### Fine-tuning with HF transformers
```bash
#!/bin/bash
cd transformers/examples/pytorch/text-classification/
pip install datasets
export TASK_NAME=mnli
output_dir="ds_results"
num_gpus=8
batch_size=8
python -m torch.distributed.launch --nproc_per_node=${num_gpus} \
run_glue.py \
--model_name_or_path microsoft/deberta-v3-xsmall \
--task_name $TASK_NAME \
--do_train \
--do_eval \
--evaluation_strategy steps \
--max_seq_length 256 \
--warmup_steps 1000 \
--per_device_train_batch_size ${batch_size} \
--learning_rate 4.5e-5 \
--num_train_epochs 3 \
--output_dir $output_dir \
--overwrite_output_dir \
--logging_steps 1000 \
--logging_dir $output_dir
```
### Citation
If you find DeBERTa useful for your work, please cite the following papers:
``` latex
@misc{he2021debertav3,
title={DeBERTaV3: Improving DeBERTa using ELECTRA-Style Pre-Training with Gradient-Disentangled Embedding Sharing},
author={Pengcheng He and Jianfeng Gao and Weizhu Chen},
year={2021},
eprint={2111.09543},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
```
``` latex
@inproceedings{
he2021deberta,
title={DEBERTA: DECODING-ENHANCED BERT WITH DISENTANGLED ATTENTION},
author={Pengcheng He and Xiaodong Liu and Jianfeng Gao and Weizhu Chen},
booktitle={International Conference on Learning Representations},
year={2021},
url={https://openreview.net/forum?id=XPZIaotutsD}
}
```
|
[
-0.4476497769355774,
-0.6221390962600708,
0.2932340204715729,
0.3164396286010742,
-0.2341115027666092,
0.13825330138206482,
-0.08189292997121811,
-0.45077088475227356,
0.3565181791782379,
0.0393441841006279,
-0.40664249658584595,
-0.5583732724189758,
-0.9429206848144531,
-0.12178544700145721,
-0.2532951831817627,
0.8458553552627563,
-0.16002845764160156,
0.1095508337020874,
0.058937929570674896,
-0.22202281653881073,
-0.4471915364265442,
-0.5511385202407837,
-0.6733823418617249,
-0.5086603164672852,
0.5630005598068237,
0.22076930105686188,
0.5728358030319214,
0.26027199625968933,
0.4684608578681946,
0.33299148082733154,
-0.32908451557159424,
0.24115459620952606,
-0.4734261631965637,
-0.0956771969795227,
0.14809417724609375,
-0.4202173054218292,
-0.8123575448989868,
0.007759492844343185,
0.5842795968055725,
0.32121527194976807,
0.04804697260260582,
0.26745036244392395,
0.2714897096157074,
0.9858345985412598,
-0.8146650195121765,
0.1307794451713562,
-0.6236447095870972,
0.058362387120723724,
0.03625604137778282,
-0.07824887335300446,
-0.3914656639099121,
-0.17427854239940643,
0.33438265323638916,
-0.5056614279747009,
0.26965177059173584,
-0.2640509307384491,
1.342813491821289,
0.5439221858978271,
-0.1966858208179474,
-0.09039267897605896,
-0.6449563503265381,
1.0520877838134766,
-0.7796082496643066,
0.34037286043167114,
0.2506793439388275,
0.10855203121900558,
-0.04861839488148689,
-0.728942334651947,
-0.6853992938995361,
-0.048345934599637985,
-0.13872170448303223,
0.3049919307231903,
-0.7480729818344116,
-0.11271946877241135,
0.3500220477581024,
0.36306777596473694,
-0.5673599243164062,
0.2506396472454071,
-0.43208128213882446,
0.08983715623617172,
0.678931713104248,
0.07117390632629395,
0.009290166199207306,
-0.06333717703819275,
-0.38833117485046387,
-0.4634438753128052,
-0.7433100342750549,
0.05714435502886772,
0.5383216738700867,
-0.09597460925579071,
-0.11174456030130386,
0.198076069355011,
-0.0778951421380043,
0.8685631155967712,
0.1168486475944519,
0.2989174425601959,
0.8195434808731079,
-0.08447332680225372,
-0.34868285059928894,
0.15966205298900604,
0.8081250190734863,
0.2569482922554016,
-0.19658596813678741,
-0.011341586709022522,
-0.055100470781326294,
-0.004633722361177206,
0.1774265021085739,
-0.9866861701011658,
-0.6203129291534424,
0.4654131829738617,
-0.447980672121048,
-0.36269301176071167,
-0.10381387919187546,
-0.900152862071991,
-0.19677208364009857,
-0.4220591187477112,
0.6779237985610962,
-0.5653220415115356,
-0.2914726436138153,
0.31808578968048096,
-0.056372594088315964,
0.29474160075187683,
0.5088878273963928,
-1.1427210569381714,
0.15104930102825165,
0.3279625475406647,
0.8472200036048889,
-0.008302472531795502,
-0.29153773188591003,
-0.44055628776550293,
-0.26914748549461365,
-0.04303784295916557,
0.2677021324634552,
-0.05083352327346802,
0.126359224319458,
-0.23567460477352142,
0.029123514890670776,
-0.25857987999916077,
-0.31274881958961487,
0.3440338969230652,
-0.6840373277664185,
0.011802038177847862,
-0.19198967516422272,
-0.3723262548446655,
-0.46212056279182434,
0.23951642215251923,
-0.7813482880592346,
1.1199177503585815,
0.16359363496303558,
-0.9719576835632324,
0.30357974767684937,
-0.6873255372047424,
-0.03610469028353691,
-0.30822765827178955,
0.05869295820593834,
-0.6916553974151611,
-0.16022220253944397,
0.5158448219299316,
0.6451379656791687,
-0.16630403697490692,
0.08169431239366531,
-0.21084049344062805,
-0.5113545656204224,
0.26114413142204285,
-0.46028774976730347,
1.3341294527053833,
0.29486486315727234,
-0.8263102769851685,
-0.0017631809459999204,
-0.9824399948120117,
0.064097560942173,
0.28794991970062256,
-0.18048426508903503,
-0.3006758987903595,
-0.10334621369838715,
-0.0722588300704956,
0.2421070635318756,
0.525929868221283,
-0.5326655507087708,
0.25973236560821533,
-0.37712129950523376,
0.710368275642395,
0.7628276348114014,
-0.3518085181713104,
0.40778928995132446,
-0.3207712173461914,
0.307378351688385,
0.2581497132778168,
0.27507737278938293,
0.2116779386997223,
-0.48781484365463257,
-1.1501785516738892,
-0.6755674481391907,
0.5985637903213501,
0.564516544342041,
-0.5550188422203064,
0.7623946070671082,
-0.28340351581573486,
-0.8833609819412231,
-0.7077201008796692,
0.11782975494861603,
0.34930363297462463,
0.2873116731643677,
0.7772243022918701,
0.0036822971887886524,
-0.7755871415138245,
-0.9648324847221375,
0.14064840972423553,
0.030160732567310333,
0.04712924733757973,
0.06890522688627243,
0.7433920502662659,
-0.4163203835487366,
0.8256570100784302,
-0.7409761548042297,
-0.4718970060348511,
-0.2725832164287567,
0.16639810800552368,
0.538947582244873,
0.6925389766693115,
0.9308797717094421,
-0.6087228059768677,
-0.6612576842308044,
-0.34308573603630066,
-0.7077727913856506,
0.3511752784252167,
0.06442372500896454,
-0.28012603521347046,
0.361637681722641,
0.1879250556230545,
-0.5240162014961243,
0.4385707974433899,
0.6950368285179138,
-0.20681989192962646,
0.04547290876507759,
-0.38830676674842834,
0.06543108820915222,
-1.208231806755066,
0.19201497733592987,
0.006250997073948383,
-0.1401766538619995,
-0.5931975841522217,
-0.15607760846614838,
0.1827833354473114,
0.2704378664493561,
-0.48594892024993896,
0.24043698608875275,
-0.6051499247550964,
0.22451049089431763,
0.05572238191962242,
0.36348602175712585,
0.18149031698703766,
0.9371647238731384,
0.022498121485114098,
0.6168439984321594,
0.7423162460327148,
-0.5846587419509888,
0.24469871819019318,
0.5048168897628784,
-0.4184444844722748,
0.09580133855342865,
-1.0105574131011963,
0.24489086866378784,
-0.21326318383216858,
0.3261065185070038,
-1.0374724864959717,
0.17899106442928314,
0.38460713624954224,
-0.5446630716323853,
0.48540762066841125,
-0.16888438165187836,
-0.5679437518119812,
-0.3749445676803589,
-0.6143887042999268,
0.17926087975502014,
0.8881694674491882,
-0.8373996019363403,
0.40765127539634705,
0.3253331482410431,
0.27782541513442993,
-0.940350353717804,
-0.8172165751457214,
-0.26496341824531555,
-0.32016491889953613,
-0.6621217727661133,
0.8317234516143799,
-0.07131993025541306,
-0.04864910617470741,
-0.04637646675109863,
0.08825314044952393,
-0.19024749100208282,
0.2322799265384674,
0.16423459351062775,
0.42154571413993835,
0.08514147251844406,
0.11536911875009537,
0.15667304396629333,
0.02228119596838951,
-0.08831235021352768,
-0.0832856222987175,
0.7377728819847107,
-0.37694209814071655,
-0.0977553278207779,
-0.46927568316459656,
0.11611597239971161,
0.488343745470047,
-0.4257431924343109,
0.9822578430175781,
0.9937224984169006,
-0.2551635503768921,
-0.11722084134817123,
-0.37920841574668884,
-0.1991567462682724,
-0.5000882148742676,
0.34456339478492737,
-0.2203652709722519,
-0.6415556073188782,
0.6584687232971191,
0.2719084620475769,
0.2874037027359009,
0.7228438258171082,
0.5095799565315247,
-0.14589308202266693,
1.1742630004882812,
0.47134634852409363,
-0.06907510757446289,
0.7099641561508179,
-1.2386701107025146,
0.15514379739761353,
-1.2305259704589844,
-0.2855588495731354,
-0.4511144757270813,
-0.6551158428192139,
-0.5496543049812317,
-0.3433438837528229,
0.21586716175079346,
0.5049098134040833,
-0.27032989263534546,
0.7083141207695007,
-0.9669913053512573,
0.06705672293901443,
0.6557036638259888,
0.524282693862915,
0.12814189493656158,
0.17449338734149933,
0.17047391831874847,
-0.06971024721860886,
-0.8454439043998718,
-0.4548075199127197,
1.2610825300216675,
0.49182382225990295,
0.8266505002975464,
0.38038480281829834,
1.0294859409332275,
0.04835909232497215,
-0.1313427984714508,
-0.5489398241043091,
0.43431684374809265,
-0.11597773432731628,
-0.5268417596817017,
-0.22371062636375427,
-0.34566551446914673,
-1.2999237775802612,
0.4349921643733978,
-0.18032269179821014,
-1.052612543106079,
0.4517883360385895,
0.4171600937843323,
-0.48816874623298645,
0.41299113631248474,
-0.5935112237930298,
0.7430577874183655,
-0.04519083723425865,
-0.4702446162700653,
-0.31258487701416016,
-0.5586138367652893,
0.19756731390953064,
0.08971665054559708,
-0.3668472468852997,
-0.06395918875932693,
0.15016303956508636,
1.0213756561279297,
-0.37658771872520447,
0.8128761649131775,
-0.2292921543121338,
-0.276470810174942,
0.518803060054779,
-0.2266703099012375,
0.7786036729812622,
0.26347479224205017,
-0.0638383999466896,
0.5174618363380432,
0.05010070279240608,
-0.3951936364173889,
-0.657497227191925,
1.005550503730774,
-1.2070621252059937,
-0.4837435185909271,
-0.6453080177307129,
-0.40429505705833435,
-0.0240264181047678,
-0.01492557767778635,
0.536533534526825,
0.6394518613815308,
0.13703514635562897,
0.4612228572368622,
1.051599383354187,
-0.061427801847457886,
0.5847748517990112,
0.4835165739059448,
0.03244540095329285,
-0.3687707483768463,
0.9838764667510986,
0.27574336528778076,
0.002492239698767662,
0.5446805953979492,
-0.2382170408964157,
-0.43927037715911865,
-0.6792164444923401,
-0.5245206952095032,
0.13553398847579956,
-0.7697492241859436,
-0.31165891885757446,
-1.0476619005203247,
-0.2080901712179184,
-0.34812912344932556,
0.04279583692550659,
-0.47837984561920166,
-0.7124010324478149,
-0.851457953453064,
0.03676515072584152,
0.7827156782150269,
0.5604837536811829,
-0.061370257288217545,
0.2508723735809326,
-0.891432523727417,
0.005319555755704641,
0.21911045908927917,
0.09183502942323685,
0.223812997341156,
-0.6476722955703735,
-0.3618690073490143,
0.2367597073316574,
-0.6653286814689636,
-0.9437301158905029,
0.4961135685443878,
-0.0736020877957344,
0.7012301087379456,
-0.06210216134786606,
0.11440487951040268,
0.5739014148712158,
-0.3820696771144867,
0.8460763692855835,
0.2858442962169647,
-1.0338529348373413,
0.6413794755935669,
-0.15331698954105377,
0.14465907216072083,
0.5916067957878113,
0.5988625884056091,
0.16393917798995972,
-0.08723213523626328,
-0.8947399854660034,
-1.071968913078308,
0.848570704460144,
0.5595764517784119,
-0.0034955842420458794,
0.10984648764133453,
0.04843562841415405,
-0.15005800127983093,
0.1477866768836975,
-0.6882371306419373,
-0.6181678175926208,
-0.3182595670223236,
-0.2552178204059601,
-0.12937302887439728,
-0.15840557217597961,
-0.1278286576271057,
-0.6262438893318176,
0.9967062473297119,
0.09932122379541397,
0.6061978340148926,
0.5338293313980103,
-0.3359236419200897,
0.26035577058792114,
0.07248753309249878,
0.6517307758331299,
0.704565167427063,
-0.5021190047264099,
-0.00264290114864707,
0.4072948098182678,
-0.5264032483100891,
0.2645552456378937,
0.3773577809333801,
-0.10974898189306259,
0.2819783389568329,
0.2560664713382721,
1.060999870300293,
-0.047116369009017944,
-0.39294537901878357,
0.5022187232971191,
-0.14980252087116241,
-0.43250006437301636,
-0.49867814779281616,
0.09822691231966019,
-0.19579893350601196,
0.4651062786579132,
0.3612779676914215,
0.1929263025522232,
0.17976950109004974,
-0.19780690968036652,
0.027258604764938354,
0.33989405632019043,
-0.44665125012397766,
-0.37308716773986816,
0.617982029914856,
0.23279578983783722,
0.08967721462249756,
0.5348401665687561,
-0.25469890236854553,
-0.5586949586868286,
0.7447623610496521,
0.43114379048347473,
0.9458955526351929,
-0.009414879605174065,
0.19158817827701569,
0.7597096562385559,
0.29167959094047546,
-0.013270554132759571,
0.5037207007408142,
0.05151259899139404,
-0.5689456462860107,
-0.23555217683315277,
-0.5472622513771057,
-0.15288418531417847,
0.38479775190353394,
-0.7560600638389587,
0.35962000489234924,
-0.2706707715988159,
-0.24881994724273682,
0.02654544822871685,
0.26398593187332153,
-0.9658821821212769,
0.014205751940608025,
-0.10912807285785675,
0.750904381275177,
-0.661878228187561,
0.9859235286712646,
0.7051799297332764,
-0.5925937294960022,
-0.8518945574760437,
-0.24541263282299042,
-0.46917110681533813,
-0.6074396371841431,
0.9924667477607727,
0.17738723754882812,
-0.1445135772228241,
0.29101407527923584,
-0.3516126275062561,
-1.0890204906463623,
1.5923644304275513,
0.4171317219734192,
-0.8572640419006348,
0.0006781902047805488,
-0.25925299525260925,
0.5676707029342651,
-0.08661943674087524,
0.3680906295776367,
0.48744046688079834,
0.3031873106956482,
-0.09131058305501938,
-0.7339470982551575,
0.21027027070522308,
-0.2799299955368042,
0.06870099902153015,
0.30407118797302246,
-0.9239506125450134,
1.3062069416046143,
-0.1296275407075882,
0.059987932443618774,
0.05715278536081314,
0.6531302332878113,
0.30775272846221924,
0.03947488218545914,
0.5053634643554688,
0.857655942440033,
0.8156455755233765,
-0.17384971678256989,
0.8363860249519348,
-0.3699769079685211,
0.7785347104072571,
1.0680593252182007,
0.07970695197582245,
0.8058998584747314,
0.4788484573364258,
-0.40396109223365784,
0.7019957304000854,
0.6731160879135132,
-0.18466036021709442,
0.7477092146873474,
0.3207719922065735,
-0.10973964631557465,
-0.04741703346371651,
0.37234923243522644,
-0.7331766486167908,
0.48246487975120544,
0.16044765710830688,
-0.6852251291275024,
-0.1795864701271057,
0.056889284402132034,
0.14646953344345093,
-0.2809711694717407,
-0.11677181720733643,
0.49630340933799744,
-0.11977542191743851,
-0.6097257137298584,
1.2409539222717285,
-0.15577882528305054,
0.7910012006759644,
-0.5283467173576355,
-0.2381458729505539,
-0.03536940738558769,
0.5428176522254944,
-0.2840111255645752,
-0.6383858919143677,
0.05331647768616676,
-0.040821198374032974,
-0.2215372771024704,
0.030845969915390015,
0.4086247682571411,
-0.32723796367645264,
-0.39774999022483826,
0.520283043384552,
0.26178714632987976,
0.1350751668214798,
0.01611441932618618,
-0.864806592464447,
0.3310111463069916,
0.13857914507389069,
-0.4939691722393036,
0.3173215389251709,
0.14885231852531433,
0.2842406630516052,
0.4513997733592987,
0.4758542776107788,
-0.304531067609787,
0.19725453853607178,
-0.12193553894758224,
1.1572866439819336,
-0.3093101978302002,
-0.27019110321998596,
-1.0304802656173706,
0.6455507278442383,
-0.24882112443447113,
-0.5004388689994812,
0.939784586429596,
0.3938767611980438,
0.7690314054489136,
-0.17712268233299255,
0.5725266933441162,
-0.3167160749435425,
0.11368092894554138,
-0.6619895696640015,
0.7104008197784424,
-0.8123525977134705,
0.19594144821166992,
-0.5146949291229248,
-1.084572434425354,
-0.1394139975309372,
0.8071982860565186,
-0.20009101927280426,
0.03829720616340637,
0.5551648736000061,
0.7801756262779236,
-0.03173096105456352,
-0.22449350357055664,
0.11331363022327423,
0.05645189806818962,
0.4739827811717987,
0.9283187389373779,
0.7307590842247009,
-1.0646830797195435,
0.6365029811859131,
-0.5078879594802856,
-0.24292637407779694,
-0.3355278968811035,
-0.8144857883453369,
-1.157094955444336,
-0.7114856243133545,
-0.6022980213165283,
-0.43748095631599426,
-0.07401406764984131,
0.8907586336135864,
0.770706832408905,
-0.7157946825027466,
0.260538786649704,
-0.4044792950153351,
-0.02326384000480175,
-0.49243366718292236,
-0.19984671473503113,
0.6635525226593018,
-0.30021610856056213,
-1.1856372356414795,
0.33313024044036865,
-0.24441465735435486,
0.3029331564903259,
-0.404615193605423,
-0.2737113833427429,
-0.4655357599258423,
-0.04576189070940018,
0.5525422692298889,
-0.0011291397968307137,
-0.543278694152832,
-0.06483082473278046,
0.02237779274582863,
-0.13644929230213165,
0.08197294920682907,
0.2805320918560028,
-0.8027392029762268,
0.3010391294956207,
0.7931385040283203,
0.32854342460632324,
0.850900411605835,
-0.4571223258972168,
0.24360905587673187,
-0.7015533447265625,
0.3809724748134613,
0.2436925619840622,
0.5811666250228882,
0.18565689027309418,
-0.4719766080379486,
0.6605193614959717,
-0.12374013662338257,
-0.6792789697647095,
-0.89513099193573,
-0.05126914381980896,
-1.1711297035217285,
-0.17501004040241241,
0.9792047142982483,
-0.5296648144721985,
-0.20977109670639038,
0.1456756740808487,
-0.321262925863266,
0.3544674515724182,
-0.5187637209892273,
0.7684499621391296,
0.49103277921676636,
0.0064551811665296555,
0.047449830919504166,
-0.5043713450431824,
0.5970262289047241,
0.5910211205482483,
-0.6002421379089355,
-0.13282078504562378,
0.20077857375144958,
0.20639105141162872,
0.5311838984489441,
0.5904992818832397,
-0.05038522556424141,
0.17859120666980743,
-0.06444503366947174,
0.06620986014604568,
-0.28233975172042847,
-0.4517551064491272,
-0.4287053942680359,
-0.16758550703525543,
-0.08334339410066605,
-0.6913290619850159
] |
LeoLM/leo-hessianai-7b-chat
|
LeoLM
| 2023-10-09T21:30:55Z | 7,791 | 10 |
transformers
|
[
"transformers",
"pytorch",
"llama",
"text-generation",
"custom_code",
"en",
"de",
"dataset:LeoLM/OpenSchnabeltier",
"dataset:OpenAssistant/OASST-DE",
"dataset:FreedomIntelligence/alpaca-gpt4-deutsch",
"dataset:FreedomIntelligence/evol-instruct-deutsch",
"dataset:LeoLM/German_Poems",
"dataset:LeoLM/German_Songs",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-09-10T18:26:13Z |
---
datasets:
- LeoLM/OpenSchnabeltier
- OpenAssistant/OASST-DE
- FreedomIntelligence/alpaca-gpt4-deutsch
- FreedomIntelligence/evol-instruct-deutsch
- LeoLM/German_Poems
- LeoLM/German_Songs
language:
- en
- de
library_name: transformers
pipeline_tag: text-generation
---
# LAION LeoLM: **L**inguistically **E**nhanced **O**pen **L**anguage **M**odel
Meet LeoLM, the first open and commercially available German Foundation Language Model built on Llama-2.
Our models extend Llama-2's capabilities into German through continued pretraining on a large corpus of German-language and mostly locality specific text.
Thanks to a compute grant at HessianAI's new supercomputer **42**, we release two foundation models trained with 8k context length,
[`LeoLM/leo-hessianai-7b`](https://huggingface.co/LeoLM/leo-hessianai-7b) and [`LeoLM/leo-hessianai-13b`](https://huggingface.co/LeoLM/leo-hessianai-13b) under the [Llama-2 community license](https://huggingface.co/meta-llama/Llama-2-70b/raw/main/LICENSE.txt) (70b also coming soon! 👀).
With this release, we hope to bring a new wave of opportunities to German open-source and commercial LLM research and accelerate adoption.
Read our [blog post]() or our paper (preprint coming soon) for more details!
*A project by Björn Plüster and Christoph Schuhmann in collaboration with LAION and HessianAI.*
## LeoLM Chat
`LeoLM/leo-hessianai-7b-chat` is a German chat model built on our foundation model `LeoLM/leo-hessianai-7b` and finetuned on a selection of German instruction datasets.
The model performs exceptionally well on writing, explanation and discussion tasks but struggles somewhat with math and advanced reasoning. See our MT-Bench-DE scores:
```
{
"first_turn": 5.75,
"second_turn": 4.45,
"categories": {
"writing": 5.875,
"roleplay": 6.3,
"reasoning": 3.5,
"math": 2.85,
"coding": 2.95,
"extraction": 4.3,
"stem": 7.4,
"humanities": 7.625
},
"average": 5.1
}
```
## Model Details
- **Finetuned from:** [LeoLM/leo-hessianai-7b](https://huggingface.co/LeoLM/leo-hessianai-7b)
- **Model type:** Causal decoder-only transformer language model
- **Language:** English and German
- **Demo:** [Web Demo]()
- **License:** [LLAMA 2 COMMUNITY LICENSE AGREEMENT](https://huggingface.co/meta-llama/Llama-2-70b/raw/main/LICENSE.txt)
- **Contact:** [LAION Discord](https://discord.com/invite/eq3cAMZtCC) or [Björn Plüster](mailto:[email protected])
## Use in 🤗Transformers
First install direct dependencies:
```
pip install transformers torch sentencepiece
```
If you want faster inference using flash-attention2, you need to install these dependencies:
```bash
pip install packaging ninja
pip install flash-attn==v2.1.1 --no-build-isolation
pip install git+https://github.com/HazyResearch/[email protected]#subdirectory=csrc/rotary
```
Then load the model in transformers:
```python
from transformers import pipeline
import torch
system_prompt = """<|im_start|>system
Dies ist eine Unterhaltung zwischen einem intelligenten, hilfsbereitem KI-Assistenten und einem Nutzer.
Der Assistent gibt ausführliche, hilfreiche und ehrliche Antworten.<|im_end|>
"""
prompt_format = "<|im_start|>user\n{prompt}<|im_end|>\n<|im_start|>assistant\n"
prompt = "Erkläre mir wie die Fahrradwegesituation in Hamburg ist."
generator = pipeline(model="LeoLM/leo-hessianai-7b-chat", device="cuda", torch_dtype=torch.float16, trust_remote_code=True) # True for flash-attn2 else False
print(generator(prompt_format.format(prompt=prompt), do_sample=True, top_p=0.95, max_length=8192))
```
"*Als KI kann ich keine persönlichen Beobachtungen teilen, aber ich kann einige allgemeine Informationen zur Fahrradwegesituation in Hamburg liefern. Im Vergleich zu vielen anderen großen Städten hat Hamburg eine hohe Anzahl von Fahrradfahrern und nimmt seine Verantwortung für nachhaltige Verkehrsmittel sehr ernst. Es gibt viele Fahrradwege und separate Fahrspuren, die Radfahrern ermöglichen, zusammen mit dem Autoverkehr zu fahren. Diese Fahrradspuren sind oft mit Markierungen gekennzeichnet und durch physische Trennungen von anderen Fahrspuren abgegrenzt. Darüber hinaus gibt es viele Fahrradstraßen, auf denen Radfahrer Vorfahrt haben und Autos langsamer fahren müssen.*
*In einigen städtischen Gebieten können Fahrradwege jedoch eng oder überfüllt sein, besonders während der Stoßzeiten. Es gibt auch viele Kreuzungen, an denen Radfahrer anhalten und auf Grün warten müssen, ähnlich wie Autofahrer. Insgesamt ist die Fahrradinfrastruktur in Hamburg ziemlich gut, aber wie überall gibt es immer Raum für Verbesserungen.*"
## Prompting / Prompt Template
Prompt dialogue template (ChatML format):
```
"""
<|im_start|>system
{system_message}<|im_end|>
<|im_start|>user
{prompt}<|im_end|>
<|im_start|>assistant
"""
```
The model input can contain multiple conversation turns between user and assistant, e.g.
```
<|im_start|>user
{prompt 1}<|im_end|>
<|im_start|>assistant
{reply 1}<|im_end|>
<|im_start|>user
{prompt 2}<|im_end|>
<|im_start|>assistant
(...)
```
## Ethical Considerations and Limitations
LeoLM has been tested in English and German, and has not covered, nor could it cover all scenarios.
For these reasons, as with all LLMs, the potential outputs of `LeoLM/leo-hessianai-7b-chat` 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 `LeoLM/leo-hessianai-7b-chat`, developers should
perform safety testing and tuning tailored to their specific applications of the model.
Please see Meta's [Responsible Use Guide](https://ai.meta.com/llama/responsible-use-guide/).
## Finetuning Details
| Hyperparameter | Value |
|---|---|
| Num epochs | 3 |
| Examples per epoch | 131214 |
| Global batch size | 256 |
| Learning rate | 3e-5 |
| Warmup steps | 100 |
| LR scheduler | Cosine |
| Adam betas | (0.9, 0.95) |
## Dataset Details
```
## Stats for 'Subset of OpenAssistant/OASST-DE' (3534 samples (100.0%))
-----------------
Accepted: 3534/3534 (100.0%)
Accepted tokens: 2259302
Skipped: 0 (0.0%)
Min tokens per sample: 29
Max tokens per sample: 2484
Avg tokens per sample: 639.3044708545557
-----------------
## Stats for 'Subset of FreedomIntelligence/evol-instruct-deutsch' (57841 samples (100.0%))
-----------------
Accepted: 57841/57841 (100.0%)
Accepted tokens: 42958192
Skipped: 0 (0.0%)
Min tokens per sample: 33
Max tokens per sample: 5507
Avg tokens per sample: 742.6944900675991
-----------------
## Stats for 'Subset of FreedomIntelligence/alpaca-gpt4-deutsch' (48969 samples (100.0%))
-----------------
Accepted: 48969/48969 (100.0%)
Accepted tokens: 13372005
Skipped: 0 (0.0%)
Min tokens per sample: 19
Max tokens per sample: 1359
Avg tokens per sample: 273.07082031489307
-----------------
## Stats for 'Subset of LeoLM/OpenSchnabeltier' (21314 samples (100.0%))
-----------------
Accepted: 21314/21314 (100.0%)
Accepted tokens: 8134690
Skipped: 0 (0.0%)
Min tokens per sample: 25
Max tokens per sample: 1202
Avg tokens per sample: 381.65947264708643
-----------------
## Stats for 'Subset of LeoLM/German_Poems' (490 samples (100.0%))
-----------------
Accepted: 490/490 (100.0%)
Accepted tokens: 618642
Skipped: 0 (0.0%)
Min tokens per sample: 747
Max tokens per sample: 1678
Avg tokens per sample: 1262.534693877551
-----------------
## Stats for 'Subset of LeoLM/German_Songs' (392 samples (100.0%))
-----------------
Accepted: 392/392 (100.0%)
Accepted tokens: 187897
Skipped: 0 (0.0%)
Min tokens per sample: 231
Max tokens per sample: 826
Avg tokens per sample: 479.3290816326531
-----------------
## Stats for 'total' (132540 samples (100.0%))
-----------------
Accepted: 132540/132540 (100.0%)
Accepted tokens: 67530728
Skipped: 0 (0.0%)
Min tokens per sample: 19
Max tokens per sample: 5507
Avg tokens per sample: 509.51205673758864
-----------------
```
|
[
-0.3654003441333771,
-0.7554792761802673,
0.15285497903823853,
0.4596761465072632,
-0.2679964303970337,
-0.2499706745147705,
-0.15466703474521637,
-0.47359344363212585,
0.3835538923740387,
0.2428615540266037,
-0.6318665146827698,
-0.7242146730422974,
-0.6129864454269409,
0.13152150809764862,
-0.3348887860774994,
1.0050580501556396,
0.07943964004516602,
0.11575209349393845,
0.07826179265975952,
-0.2433674931526184,
-0.3397887349128723,
-0.449674516916275,
-0.6712637543678284,
-0.15627379715442657,
0.3373349905014038,
0.41862592101097107,
0.468792200088501,
0.4211367070674896,
0.5099589228630066,
0.3089861571788788,
-0.18167588114738464,
0.0057709659449756145,
-0.47002801299095154,
0.15386687219142914,
0.12965495884418488,
-0.434852659702301,
-0.6374894380569458,
0.13798272609710693,
0.5589592456817627,
0.30452921986579895,
-0.07608157396316528,
0.31347206234931946,
0.04417932778596878,
0.45495614409446716,
-0.44363224506378174,
0.21064385771751404,
-0.3339523673057556,
0.058748770505189896,
-0.2222297191619873,
-0.11253345012664795,
-0.40241825580596924,
-0.2593085467815399,
0.08008375763893127,
-0.6281986832618713,
0.20117151737213135,
0.10257616639137268,
1.06682288646698,
0.13329683244228363,
-0.2922273576259613,
-0.3296797275543213,
-0.4888487756252289,
0.9083651900291443,
-0.7883114218711853,
0.4303848147392273,
0.4923516809940338,
0.25034019351005554,
-0.1982146054506302,
-0.8747421503067017,
-0.5294924378395081,
-0.2792322039604187,
-0.30248329043388367,
0.20512667298316956,
-0.5064959526062012,
-0.15192855894565582,
0.24463610351085663,
0.3089304268360138,
-0.5977472066879272,
-0.05191070958971977,
-0.43093618750572205,
-0.3209654688835144,
0.7088431119918823,
0.15823514759540558,
0.06598496437072754,
-0.25685402750968933,
-0.49702614545822144,
-0.359897255897522,
-0.5558876991271973,
0.11063522845506668,
0.2233494073152542,
0.19260571897029877,
-0.36088451743125916,
0.7120510935783386,
-0.2474740594625473,
0.5793642997741699,
0.030133534222841263,
-0.1879333257675171,
0.47988998889923096,
-0.5230134725570679,
-0.5659468173980713,
-0.29480499029159546,
1.0883102416992188,
0.35564231872558594,
0.1117066815495491,
0.2373339682817459,
-0.3020381033420563,
-0.17136232554912567,
-0.18949128687381744,
-0.7652551531791687,
-0.09140896052122116,
0.27472659945487976,
-0.3965328335762024,
-0.35787925124168396,
-0.003877648152410984,
-0.7960237860679626,
-0.25868621468544006,
0.07890795916318893,
0.31764641404151917,
-0.5441147089004517,
-0.18384934961795807,
0.05273319408297539,
-0.10372234880924225,
0.29226210713386536,
0.2511301636695862,
-0.6593838334083557,
0.0899062305688858,
0.40625518560409546,
0.8064412474632263,
-0.04210185259580612,
-0.22860382497310638,
-0.4284115731716156,
-0.19968974590301514,
-0.19065314531326294,
0.5287768840789795,
-0.14206628501415253,
-0.5832006931304932,
-0.15497201681137085,
0.10979713499546051,
-0.10638345777988434,
-0.4080337882041931,
0.6548396944999695,
-0.4180361032485962,
0.6486804485321045,
-0.22718307375907898,
-0.48496851325035095,
-0.10971803218126297,
0.1367797553539276,
-0.4697820842266083,
1.2092806100845337,
0.14861847460269928,
-0.8096699714660645,
0.17149145901203156,
-0.7703038454055786,
-0.3198298215866089,
-0.15789879858493805,
-0.05288446322083473,
-0.31949323415756226,
-0.2271130532026291,
0.28181028366088867,
0.587578535079956,
-0.4220779538154602,
0.37317684292793274,
-0.10634782165288925,
-0.2733864188194275,
0.4088660776615143,
-0.5336273908615112,
1.3045893907546997,
0.4387159049510956,
-0.6390503644943237,
0.1833898276090622,
-0.6553452014923096,
-0.08411218971014023,
0.2345035970211029,
-0.4473496675491333,
0.06542481482028961,
-0.33680030703544617,
0.3096630275249481,
0.3110233545303345,
0.15794804692268372,
-0.43457546830177307,
0.05855321139097214,
-0.5772501826286316,
0.3103441894054413,
0.9354601502418518,
-0.09188167005777359,
0.3987519145011902,
-0.5260087251663208,
0.677510142326355,
0.09866691380739212,
0.30792370438575745,
0.09238766133785248,
-0.7419716715812683,
-1.122005581855774,
-0.45872482657432556,
0.21244880557060242,
0.7193757891654968,
-0.6039924621582031,
0.747877299785614,
-0.23327943682670593,
-0.6381404399871826,
-0.5853934288024902,
0.06603112071752548,
0.5081893801689148,
0.5975775122642517,
0.3133857846260071,
-0.29213616251945496,
-0.5626484751701355,
-0.9209935665130615,
0.039029862731695175,
-0.38995540142059326,
-0.05424369499087334,
0.3963707387447357,
0.7450114488601685,
-0.2917152941226959,
1.0728306770324707,
-0.5080134868621826,
-0.33554503321647644,
-0.2600691020488739,
-0.08063966035842896,
0.4736699163913727,
0.5503839254379272,
0.6728365421295166,
-0.6850739121437073,
-0.5423281788825989,
-0.25456172227859497,
-0.8049664497375488,
-0.12886109948158264,
0.013170214369893074,
-0.26288291811943054,
0.49782589077949524,
0.2754557132720947,
-0.7198572754859924,
0.43915265798568726,
0.47355809807777405,
-0.6598935127258301,
0.4752664268016815,
-0.11353424191474915,
0.004733171779662371,
-1.1392699480056763,
0.2665976285934448,
0.030966080725193024,
-0.1332511007785797,
-0.6863203644752502,
-0.0438581146299839,
-0.172868013381958,
0.11126629263162613,
-0.7143586874008179,
0.9804747104644775,
-0.3899950087070465,
0.05828845128417015,
0.0632605105638504,
0.1314379721879959,
-0.10742116719484329,
0.5035938620567322,
-0.1636328548192978,
0.8307656049728394,
0.6265661120414734,
-0.43671098351478577,
0.3716471791267395,
0.3006610572338104,
-0.41036075353622437,
0.268440842628479,
-0.7883917093276978,
-0.0025066945236176252,
0.004328073933720589,
0.39515185356140137,
-1.1505188941955566,
-0.30111756920814514,
0.7312020659446716,
-0.6637493371963501,
0.13050000369548798,
0.15009942650794983,
-0.4632711410522461,
-0.31952157616615295,
-0.3189370334148407,
0.11360884457826614,
0.8470579981803894,
-0.28878453373908997,
0.6433811187744141,
0.18672706186771393,
0.05104595050215721,
-0.9717438220977783,
-0.8758544921875,
-0.183131605386734,
-0.28981611132621765,
-0.8823980689048767,
0.14588318765163422,
-0.19421863555908203,
-0.3301101624965668,
-0.0645827129483223,
0.04651939496397972,
0.025775229558348656,
0.1027352586388588,
0.31867361068725586,
0.3030131459236145,
-0.1783103495836258,
-0.007427083794027567,
-0.20615947246551514,
-0.25527191162109375,
-0.03009580448269844,
-0.1647976040840149,
0.7233006954193115,
-0.45922577381134033,
-0.40577632188796997,
-0.6358568668365479,
0.14231160283088684,
0.6450843214988708,
-0.10219801962375641,
0.9184783697128296,
0.7416521906852722,
-0.19745679199695587,
0.09354828298091888,
-0.5583245754241943,
-0.3532141149044037,
-0.5218604803085327,
0.3251658082008362,
-0.1583801656961441,
-0.7555911540985107,
0.6953182816505432,
0.3992657959461212,
0.21827934682369232,
0.7816578149795532,
0.6901865005493164,
-0.14911462366580963,
0.6542487144470215,
0.5781501531600952,
-0.17649199068546295,
0.5326822400093079,
-0.6168972849845886,
0.0424552820622921,
-0.5714225172996521,
-0.25033077597618103,
-0.41211116313934326,
-0.30935561656951904,
-0.4512367844581604,
-0.5349544882774353,
0.4410592317581177,
0.15936784446239471,
-0.3321171700954437,
0.31828704476356506,
-0.39693906903266907,
0.19758912920951843,
0.7130918502807617,
-0.02905590459704399,
0.207423135638237,
0.061400000005960464,
-0.25419890880584717,
0.0402694009244442,
-0.685289740562439,
-0.5039579272270203,
1.1248279809951782,
0.4909905195236206,
0.5645802617073059,
0.19453388452529907,
0.6760862469673157,
0.17160750925540924,
0.5640106201171875,
-0.5897877216339111,
0.7891870737075806,
0.1446809023618698,
-1.0186479091644287,
-0.35333505272865295,
-0.25241127610206604,
-0.9208467602729797,
0.29358071088790894,
-0.2552875876426697,
-0.7834296822547913,
0.2572551965713501,
0.14509502053260803,
-0.23839068412780762,
0.16190770268440247,
-0.7158374786376953,
0.7640842795372009,
-0.1449449509382248,
-0.2344300001859665,
-0.0356418676674366,
-0.8594143390655518,
0.40618470311164856,
-0.016407305374741554,
0.2727738320827484,
-0.25185468792915344,
0.08045655488967896,
0.9459505677223206,
-0.3785909414291382,
0.9797757863998413,
-0.14946399629116058,
-0.010265582241117954,
0.38742026686668396,
-0.08575016260147095,
0.5349448919296265,
0.0738893672823906,
-0.19547292590141296,
0.19766996800899506,
-0.21527248620986938,
-0.44122639298439026,
-0.31792107224464417,
0.619879424571991,
-0.8894151449203491,
-0.7308171391487122,
-0.6147041916847229,
-0.5185655951499939,
0.13798920810222626,
0.21497242152690887,
0.6072045564651489,
0.2504880726337433,
-0.15899555385112762,
0.2019662708044052,
0.42429864406585693,
-0.40022292733192444,
0.5330591797828674,
0.5161415338516235,
-0.30015334486961365,
-0.5190795660018921,
0.6973773837089539,
0.02203347347676754,
0.29724618792533875,
0.16589400172233582,
0.16941581666469574,
-0.46160101890563965,
-0.34478408098220825,
-0.44536349177360535,
0.48975318670272827,
-0.9695854783058167,
-0.17373698949813843,
-0.7307759523391724,
-0.23159478604793549,
-0.5357379913330078,
-0.20509260892868042,
-0.30748608708381653,
-0.4729384183883667,
-0.5748068690299988,
-0.18827460706233978,
0.609293520450592,
0.4638429284095764,
-0.1797969937324524,
0.3511139154434204,
-0.5378463268280029,
0.06726261228322983,
0.12271177768707275,
0.09512953460216522,
-0.02198377251625061,
-0.7767156362533569,
-0.06430002301931381,
0.11625376343727112,
-0.36232852935791016,
-0.9094187617301941,
0.5708261132240295,
0.02911286987364292,
0.5260646939277649,
0.48525258898735046,
0.11823753267526627,
0.5447333455085754,
-0.13889050483703613,
1.0199761390686035,
0.2385122925043106,
-0.8767035603523254,
0.5650448799133301,
-0.3636191785335541,
0.11424959450960159,
0.48660534620285034,
0.3767509162425995,
-0.6854857206344604,
-0.532213568687439,
-0.8947315216064453,
-0.9510464072227478,
0.9060931205749512,
0.643579363822937,
0.11236035078763962,
-0.026640430092811584,
0.18063348531723022,
-0.2551916837692261,
0.05594021826982498,
-0.9079834818840027,
-0.7420582175254822,
-0.06714097410440445,
-0.23851048946380615,
-0.3056965470314026,
-0.18202295899391174,
-0.3648826777935028,
-0.4352591037750244,
0.8923874497413635,
0.1461934745311737,
0.6670151352882385,
0.3306370675563812,
0.01893787644803524,
0.010985320433974266,
0.2675746977329254,
0.8296633362770081,
0.5904395580291748,
-0.29029667377471924,
0.02100573666393757,
0.45015084743499756,
-0.6997848749160767,
0.28508424758911133,
0.13665363192558289,
-0.2849282920360565,
0.045676764100790024,
0.5504069328308105,
0.9083230495452881,
-0.12657703459262848,
-0.6496658325195312,
0.5946269035339355,
-0.11398425698280334,
-0.198960080742836,
-0.4922712743282318,
0.15814341604709625,
0.19127783179283142,
0.3184048533439636,
0.39693090319633484,
0.06024516001343727,
-0.18674588203430176,
-0.40045228600502014,
0.21343916654586792,
0.3986230492591858,
-0.4417302906513214,
-0.17430949211120605,
0.804456353187561,
0.170650914311409,
-0.37769970297813416,
0.7112541198730469,
-0.14201079308986664,
-0.33340516686439514,
0.789238691329956,
0.5430251359939575,
0.9034693837165833,
-0.1698223203420639,
0.17045800387859344,
0.4318198263645172,
0.2803927958011627,
-0.0032629244960844517,
0.32823413610458374,
0.2621952295303345,
-0.7276347279548645,
-0.17326803505420685,
-0.6685386896133423,
-0.11497151106595993,
0.1360415369272232,
-0.5368471145629883,
0.3957536816596985,
-0.34097737073898315,
-0.3099370002746582,
-0.07590821385383606,
0.05847170203924179,
-0.6640308499336243,
0.18031015992164612,
-0.08487438410520554,
1.1223512887954712,
-0.9220802187919617,
0.9371448159217834,
0.6165810823440552,
-0.42720288038253784,
-0.7737544178962708,
-0.12973462045192719,
0.17386803030967712,
-0.8176968097686768,
0.8001499176025391,
0.02406342141330242,
-0.12034960091114044,
-0.0032883600797504187,
-0.48652997612953186,
-0.997722864151001,
1.3921003341674805,
0.3500674366950989,
-0.3667084574699402,
0.22614964842796326,
0.0762423500418663,
0.6244691610336304,
-0.3700293302536011,
0.475300669670105,
0.5462333559989929,
0.56887286901474,
0.27656638622283936,
-0.8756697177886963,
0.18618302047252655,
-0.4608042240142822,
-0.23071280121803284,
-0.06222837418317795,
-0.7980759739875793,
0.9862158298492432,
-0.12794919312000275,
-0.3207731544971466,
0.03427319601178169,
0.7995418906211853,
0.48347076773643494,
0.33786219358444214,
0.5095075368881226,
0.4838796555995941,
0.8750100135803223,
-0.1729612648487091,
1.1155211925506592,
-0.32812628149986267,
0.45840761065483093,
0.7560985684394836,
-0.00040214601904153824,
0.7336903810501099,
0.4202061593532562,
-0.2261425405740738,
0.33833643794059753,
0.678662896156311,
-0.05197908729314804,
0.5546208024024963,
-0.012836689129471779,
-0.3317692279815674,
-0.013808369636535645,
0.019430261105298996,
-0.5347477793693542,
0.3393961489200592,
0.24954082071781158,
-0.500245988368988,
-0.03174988552927971,
0.04908980056643486,
0.3040294945240021,
-0.4416605532169342,
0.12755969166755676,
0.4187939763069153,
0.13516707718372345,
-0.5924729108810425,
0.9698237776756287,
0.25187110900878906,
0.8484741449356079,
-0.623227596282959,
0.23871742188930511,
-0.45818260312080383,
0.18819084763526917,
-0.12515410780906677,
-0.7427904605865479,
0.2603417634963989,
0.18075768649578094,
-0.07027459889650345,
-0.2760825455188751,
0.53635573387146,
-0.21086035668849945,
-0.6210678815841675,
0.38770464062690735,
0.5037399530410767,
0.36907485127449036,
0.2487666755914688,
-0.7623077034950256,
0.05489524453878403,
0.2996554970741272,
-0.6393817067146301,
0.18060089647769928,
0.1262643188238144,
-0.005205515306442976,
0.7589160799980164,
0.6523498892784119,
-0.11482463032007217,
0.12313131988048553,
-0.20163175463676453,
0.9632496237754822,
-0.6592278480529785,
-0.3860844075679779,
-0.9649020433425903,
0.823076069355011,
-0.03369565308094025,
-0.6691765189170837,
0.904329240322113,
0.619432270526886,
0.7021295428276062,
-0.07801999151706696,
0.716366708278656,
-0.32963740825653076,
0.26928967237472534,
-0.45172563195228577,
0.7383539080619812,
-0.6679803133010864,
0.34500211477279663,
-0.19842156767845154,
-0.7957218289375305,
-0.3545018434524536,
0.6892197132110596,
-0.3550265431404114,
0.047944147139787674,
0.5695128440856934,
1.0295411348342896,
-0.010187401436269283,
-0.021446799859404564,
0.1102309376001358,
0.3005915582180023,
0.4220486581325531,
0.6246042251586914,
0.6739946007728577,
-0.594121515750885,
0.5951412916183472,
-0.44442006945610046,
-0.21408143639564514,
-0.328479140996933,
-0.7665104866027832,
-0.968630850315094,
-0.6199886798858643,
-0.14102932810783386,
-0.6527436971664429,
-0.15155236423015594,
1.005230188369751,
0.5857858657836914,
-0.9300848245620728,
-0.36571359634399414,
0.028052955865859985,
0.12944751977920532,
-0.14246490597724915,
-0.24816681444644928,
0.5569612383842468,
-0.0322059690952301,
-0.8035537004470825,
0.3223702013492584,
-0.10902802646160126,
0.36879512667655945,
-0.19573117792606354,
-0.3506183326244354,
-0.3164023756980896,
0.06913529336452484,
0.4630678594112396,
0.21027761697769165,
-0.9031041860580444,
-0.16145344078540802,
0.4235582947731018,
-0.39431828260421753,
0.09843744337558746,
0.3003901243209839,
-0.5437309145927429,
0.23890745639801025,
0.6031877994537354,
0.192404642701149,
0.6702600717544556,
-0.05540646240115166,
0.37012022733688354,
-0.8270460963249207,
0.45132625102996826,
0.25828638672828674,
0.3815196454524994,
0.16526290774345398,
-0.4225705564022064,
0.6892510056495667,
0.3774098753929138,
-0.5122455358505249,
-0.7859320044517517,
0.07092905044555664,
-0.9793304800987244,
-0.22079254686832428,
1.3129299879074097,
-0.21488617360591888,
-0.16285842657089233,
0.01684345118701458,
-0.25142836570739746,
0.2863352298736572,
-0.5270974040031433,
0.4935785233974457,
0.7807152271270752,
-0.2785015404224396,
-0.06780045479536057,
-0.6561192870140076,
0.4752770662307739,
0.46674588322639465,
-0.6879210472106934,
-0.04973742365837097,
0.516140878200531,
0.3930847942829132,
0.30171242356300354,
1.0777431726455688,
0.10542023181915283,
0.1497485190629959,
-0.12425997853279114,
0.1181514710187912,
-0.08647169917821884,
-0.22346289455890656,
-0.45768308639526367,
0.09228520840406418,
-0.14102812111377716,
-0.2314874678850174
] |
klosax/open_llama_3b_350bt_preview
|
klosax
| 2023-07-18T14:59:45Z | 7,783 | 0 |
transformers
|
[
"transformers",
"pytorch",
"llama",
"text-generation",
"license:other",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-07-18T14:27:56Z |
---
license: other
---
|
[
-0.12853388488292694,
-0.18616782128810883,
0.6529127359390259,
0.4943625330924988,
-0.19319313764572144,
0.23607465624809265,
0.36071982979774475,
0.05056332051753998,
0.5793652534484863,
0.740013837814331,
-0.6508103013038635,
-0.2378396987915039,
-0.710224986076355,
-0.04782581701874733,
-0.3894752264022827,
0.8470761775970459,
-0.09598272293806076,
0.024004854261875153,
0.047120071947574615,
-0.14317826926708221,
-0.6121037602424622,
-0.04771740734577179,
-1.0524537563323975,
-0.06787490844726562,
0.3002279996871948,
0.5120972990989685,
0.8275896310806274,
0.39602896571159363,
0.5030564069747925,
1.7515558004379272,
-0.08836919069290161,
-0.22754427790641785,
-0.45892032980918884,
0.4223068356513977,
-0.33277371525764465,
-0.42133718729019165,
-0.2624166011810303,
-0.07449338585138321,
0.32380399107933044,
0.790371298789978,
-0.38104110956192017,
0.19328099489212036,
-0.22438454627990723,
1.008224368095398,
-0.8202074766159058,
0.22630876302719116,
-0.16698351502418518,
0.14053204655647278,
0.042308706790208817,
-0.14591927826404572,
-0.1326323002576828,
-0.6440033912658691,
0.06469469517469406,
-0.899596095085144,
0.1027495265007019,
-0.04461126774549484,
0.8789561986923218,
0.21909058094024658,
-0.5102370977401733,
-0.0459773913025856,
-0.6883594989776611,
1.0972508192062378,
-0.17556026577949524,
0.7615712881088257,
0.4507811963558197,
0.45288562774658203,
-0.5849329829216003,
-1.178217887878418,
-0.4441864490509033,
-0.13579002022743225,
0.14722809195518494,
0.30556100606918335,
-0.3453029692173004,
-0.022343844175338745,
0.10801105946302414,
0.5610314011573792,
-0.5003758072853088,
-0.311959445476532,
-0.9579929113388062,
-0.18164916336536407,
0.6820483207702637,
0.319308340549469,
0.834044337272644,
0.1873151659965515,
-0.7347195744514465,
0.12866291403770447,
-1.3239703178405762,
0.07650735974311829,
0.6465023756027222,
0.239467591047287,
-0.554598867893219,
0.8594784736633301,
-0.28587982058525085,
0.626249372959137,
0.2728465497493744,
-0.1164526641368866,
0.2784252464771271,
-0.23030735552310944,
-0.2735062837600708,
0.033087607473134995,
0.34597301483154297,
0.8204491138458252,
0.16248634457588196,
-0.019984982907772064,
-0.22123965620994568,
0.0020717978477478027,
0.2684449553489685,
-0.7935096025466919,
-0.4712669551372528,
0.1926696002483368,
-0.558952808380127,
-0.0910850465297699,
0.4327022135257721,
-1.0976827144622803,
-0.4812980592250824,
-0.1879846155643463,
0.05468139797449112,
-0.5451693534851074,
-0.3697946071624756,
0.07273250073194504,
-0.79254150390625,
-0.1243419200181961,
0.570950984954834,
-0.6230252981185913,
0.43974608182907104,
0.533625602722168,
0.7861635684967041,
0.2330387681722641,
-0.23613610863685608,
-0.6695019602775574,
0.48848265409469604,
-0.8661867380142212,
0.36860740184783936,
-0.3073781132698059,
-0.8298640251159668,
-0.09631050378084183,
0.5393159985542297,
0.20664852857589722,
-0.6653256416320801,
0.7074045538902283,
-0.5496984720230103,
-0.07806532829999924,
-0.4308285415172577,
-0.2432200014591217,
0.17460417747497559,
0.11115431040525436,
-0.6238909363746643,
0.9402233362197876,
0.5551108121871948,
-0.584109902381897,
0.31701239943504333,
-0.4869506359100342,
-0.6865583658218384,
0.26748135685920715,
-0.008750975131988525,
-0.047152332961559296,
0.3279528021812439,
-0.15983973443508148,
-0.0020511597394943237,
0.10505761206150055,
0.008299741894006729,
-0.21891699731349945,
-0.4786304235458374,
0.06349936127662659,
0.151650071144104,
1.25368332862854,
0.4083622097969055,
-0.3771882951259613,
-0.13140122592449188,
-1.0526149272918701,
0.025432661175727844,
0.0505015105009079,
-0.42306768894195557,
-0.2504565119743347,
-0.14882194995880127,
-0.20381587743759155,
0.4307260811328888,
0.2118472456932068,
-0.813115119934082,
0.22643625736236572,
-0.2064024657011032,
0.364496648311615,
0.8222091794013977,
0.2703101634979248,
0.39760565757751465,
-0.6625286340713501,
0.6563138365745544,
0.2076188325881958,
0.49590179324150085,
0.35404202342033386,
-0.3845822811126709,
-0.9641586542129517,
-0.442161500453949,
-0.10117404907941818,
0.2975531220436096,
-0.7744957804679871,
0.5847322940826416,
0.012979604303836823,
-0.5836705565452576,
-0.4465281367301941,
-0.15488101541996002,
0.2755330502986908,
-0.06606576591730118,
0.03334902226924896,
-0.4049779176712036,
-0.7394417524337769,
-1.0127898454666138,
-0.13788150250911713,
-0.5021388530731201,
-0.21892830729484558,
0.3160586357116699,
0.2617739737033844,
-0.34290042519569397,
0.7610747814178467,
-0.6059278249740601,
-0.704064130783081,
-0.13973554968833923,
-0.0995984673500061,
0.6187719702720642,
0.9297672510147095,
0.749138355255127,
-0.7224893569946289,
-0.8973818421363831,
-0.056230708956718445,
-0.5420039892196655,
-0.020044349133968353,
0.038149889558553696,
-0.18260693550109863,
-0.10514980554580688,
0.22352531552314758,
-0.6100803017616272,
0.8851073980331421,
0.43224984407424927,
-0.681546688079834,
0.5210590958595276,
-0.4444413483142853,
0.6073803901672363,
-0.8642839193344116,
-0.2911490201950073,
-0.16823577880859375,
-0.1976117193698883,
-0.7090160846710205,
0.19411544501781464,
-0.3002234101295471,
-0.33029863238334656,
-0.7474032044410706,
0.5274897813796997,
-0.9497010707855225,
-0.18781527876853943,
-0.33672773838043213,
-0.03423111140727997,
0.25807833671569824,
0.19490505754947662,
-0.23560254275798798,
0.8900529742240906,
0.9160482287406921,
-0.7121306657791138,
0.5487277507781982,
0.3930906653404236,
-0.1920013427734375,
0.7131237387657166,
-0.3887738585472107,
0.05161993205547333,
-0.12344931066036224,
0.14374595880508423,
-1.126388430595398,
-0.561158299446106,
0.13677382469177246,
-0.712703287601471,
0.17686958611011505,
-0.16556859016418457,
-0.09428537636995316,
-0.6608465313911438,
-0.33806395530700684,
0.25910091400146484,
0.48612290620803833,
-0.47969940304756165,
0.6188148260116577,
0.5728040337562561,
0.02651876211166382,
-0.5307406783103943,
-0.7206818461418152,
0.20418110489845276,
0.039646461606025696,
-0.5569695830345154,
0.3011690080165863,
0.006543457508087158,
-0.6622446775436401,
-0.371124804019928,
-0.26354190707206726,
-0.6043857336044312,
-0.2267974615097046,
0.7826986312866211,
0.1199423298239708,
-0.09012264013290405,
-0.20310267806053162,
-0.3199536204338074,
-0.06167525798082352,
0.30487415194511414,
-0.07575298100709915,
0.7232834696769714,
-0.33623749017715454,
-0.17850083112716675,
-0.887734055519104,
0.652754545211792,
0.9970465302467346,
0.09446714073419571,
0.806644082069397,
0.46324217319488525,
-0.35647475719451904,
-0.1304660439491272,
-0.3535459041595459,
-0.15120601654052734,
-0.685774564743042,
-0.1806798279285431,
-0.5322476625442505,
-0.5411434769630432,
0.40530654788017273,
0.10101459175348282,
-0.0021042972803115845,
0.5167046785354614,
0.2533605694770813,
-0.28806859254837036,
0.7550324201583862,
1.034340739250183,
0.1391797959804535,
0.3602915108203888,
-0.2854715585708618,
0.6341594457626343,
-0.8329949378967285,
-0.34052175283432007,
-0.4548071026802063,
-0.2563585042953491,
-0.31214389204978943,
-0.10750849545001984,
0.5791022181510925,
0.2818215489387512,
-0.4463467597961426,
0.1250680536031723,
-0.5994209051132202,
0.6587361693382263,
0.6273988485336304,
0.5719727873802185,
0.1997303068637848,
-0.46199458837509155,
0.19982971251010895,
0.04816687852144241,
-0.45745599269866943,
-0.4009109139442444,
0.7711143493652344,
0.2399624139070511,
0.8364022374153137,
0.20927050709724426,
0.4957774877548218,
0.33375421166419983,
0.2528058588504791,
-0.6318977475166321,
0.2009797990322113,
-0.22282809019088745,
-1.245961308479309,
-0.206426739692688,
-0.16551318764686584,
-1.0080583095550537,
-0.11792082339525223,
-0.18288995325565338,
-0.8406620025634766,
0.2665729820728302,
-0.19225634634494781,
-0.6640645265579224,
0.5206149220466614,
-0.5103875398635864,
0.69347083568573,
-0.23555898666381836,
-0.2817087769508362,
0.11930079013109207,
-0.6889920830726624,
0.5254612565040588,
0.3667147755622864,
0.29168397188186646,
-0.37968993186950684,
-0.3192872405052185,
0.5068994760513306,
-0.881224513053894,
0.44081127643585205,
-0.10564978420734406,
0.19428130984306335,
0.5358879566192627,
0.4153591990470886,
0.3823971152305603,
0.28699052333831787,
-0.2459377944469452,
-0.23415414988994598,
0.2250344604253769,
-0.7581346035003662,
-0.27754613757133484,
0.9095459580421448,
-0.7519428730010986,
-0.8586915731430054,
-0.6954255700111389,
-0.30644941329956055,
0.28865277767181396,
0.02781464159488678,
0.7154772281646729,
0.6456884145736694,
-0.18821057677268982,
0.23776991665363312,
0.7208225727081299,
-0.0146945184096694,
0.7235562801361084,
0.29411184787750244,
-0.4056646227836609,
-0.6169787645339966,
0.7182320356369019,
0.2627044916152954,
0.05162655562162399,
0.028327951207756996,
0.3058736026287079,
-0.17546698451042175,
-0.15078596770763397,
-0.6318323612213135,
-0.06395323574542999,
-0.7465729117393494,
-0.0927949845790863,
-0.7541396617889404,
-0.2507742643356323,
-0.7114590406417847,
-0.8068137764930725,
-0.7080163955688477,
-0.45604395866394043,
-0.43011948466300964,
-0.23352204263210297,
0.5163108706474304,
1.1627086400985718,
-0.2613152861595154,
0.8011051416397095,
-0.8900954723358154,
0.41936296224594116,
0.4969540238380432,
0.7519731521606445,
-0.11061006784439087,
-0.6746935844421387,
-0.07836239039897919,
-0.5338755249977112,
-0.29485058784484863,
-1.0156972408294678,
0.31774646043777466,
-0.03688591718673706,
0.40537136793136597,
0.42938894033432007,
0.25190269947052,
0.49392756819725037,
-0.30073118209838867,
1.1130688190460205,
0.7274302244186401,
-0.803381085395813,
0.519527792930603,
-0.7635002136230469,
0.16122324764728546,
0.9363659620285034,
0.54477459192276,
-0.4417075514793396,
-0.15113934874534607,
-1.025976538658142,
-0.843137264251709,
0.5963036417961121,
0.15439945459365845,
0.016843896359205246,
0.01821417547762394,
0.03168272227048874,
0.29466384649276733,
0.3591304123401642,
-0.7847291231155396,
-0.8240220546722412,
-0.13851122558116913,
0.25803306698799133,
0.31456053256988525,
-0.1648542582988739,
-0.3003871440887451,
-0.611615777015686,
0.8711391091346741,
0.18286482989788055,
0.3546231985092163,
0.12073354423046112,
0.04369349032640457,
-0.35506919026374817,
0.14787021279335022,
0.5522999167442322,
1.2529057264328003,
-0.40983331203460693,
0.3673911392688751,
0.1751260608434677,
-0.6540069580078125,
0.6494997143745422,
-0.3036349415779114,
-0.021784601733088493,
0.6203135251998901,
0.17760884761810303,
0.28528398275375366,
0.315599262714386,
-0.3621427118778229,
0.6047801971435547,
-0.029422052204608917,
-0.17758512496948242,
-0.7005696296691895,
0.15866968035697937,
0.029350608587265015,
0.27507954835891724,
0.4392024278640747,
0.24443313479423523,
0.08246771991252899,
-1.0602877140045166,
0.5711055397987366,
0.24493910372257233,
-0.8676618337631226,
-0.3011006712913513,
0.7047957181930542,
0.4075389802455902,
-0.47599563002586365,
0.38749054074287415,
0.012702330946922302,
-0.6710241436958313,
0.5987741351127625,
0.5510413646697998,
0.7569674253463745,
-0.4702427089214325,
0.3088020086288452,
0.6245602965354919,
0.06711331009864807,
0.20550549030303955,
0.6923202872276306,
0.03149382025003433,
-0.44738656282424927,
0.23022446036338806,
-0.5986733436584473,
-0.1468990594148636,
0.13735318183898926,
-0.8047426342964172,
0.351533442735672,
-0.9312615394592285,
-0.24089956283569336,
0.08751589059829712,
0.11761097609996796,
-0.6130945086479187,
0.6674696207046509,
-0.008524954319000244,
0.9280490875244141,
-0.8549083471298218,
0.9626278281211853,
0.8559581637382507,
-0.31830817461013794,
-0.7709448337554932,
-0.33556753396987915,
0.02013934776186943,
-0.6660526990890503,
0.7108278274536133,
-0.18973003327846527,
-0.41207411885261536,
-0.09323947876691818,
-0.622982919216156,
-1.0003730058670044,
0.030618250370025635,
0.017415650188922882,
-0.4625031054019928,
0.4454794228076935,
-0.5157257318496704,
0.3289681673049927,
-0.19169732928276062,
0.30509495735168457,
0.7719469666481018,
0.7958452701568604,
0.22960808873176575,
-0.6354780197143555,
-0.4466685652732849,
-0.010276071727275848,
-0.16682815551757812,
0.4545809030532837,
-1.0710972547531128,
0.967736542224884,
-0.4652574360370636,
-0.34733209013938904,
0.2706642150878906,
0.797762393951416,
0.2538500428199768,
0.3524126708507538,
0.6219537258148193,
0.9016807079315186,
0.36450111865997314,
-0.31178343296051025,
0.7276745438575745,
0.2426338493824005,
0.4152539074420929,
0.7364203333854675,
-0.22712187469005585,
0.5403846502304077,
0.8906413316726685,
-0.786162257194519,
0.5381765365600586,
0.7879031896591187,
0.16047371923923492,
0.7758157253265381,
0.5944145917892456,
-0.611952543258667,
-0.1185941994190216,
-0.1464141309261322,
-0.6171560287475586,
0.1979752480983734,
0.052926212549209595,
-0.11974738538265228,
-0.2846010625362396,
-0.13567376136779785,
0.12295057624578476,
0.2836454212665558,
-0.5959328413009644,
0.606866717338562,
0.34341585636138916,
-0.6328282356262207,
0.21025103330612183,
-0.25779569149017334,
0.6709501147270203,
-0.5978154540061951,
0.02733636647462845,
-0.226993590593338,
0.41810402274131775,
-0.4618742763996124,
-1.007582426071167,
0.47138404846191406,
-0.2920241355895996,
-0.40551304817199707,
-0.26942431926727295,
0.8072363138198853,
-0.22133907675743103,
-0.5572860240936279,
0.37486034631729126,
0.13466592133045197,
0.41473662853240967,
0.40145981311798096,
-0.548729419708252,
0.047790080308914185,
0.13760165870189667,
-0.20061805844306946,
0.3601190149784088,
0.2973729372024536,
0.25488772988319397,
0.7100128531455994,
0.5052477717399597,
0.22198708355426788,
0.25694364309310913,
-0.18668605387210846,
0.8387458324432373,
-0.9102796316146851,
-0.8167635202407837,
-0.9497333765029907,
0.3849896192550659,
0.025727711617946625,
-0.880144476890564,
0.7920305728912354,
0.7652608156204224,
0.5113964080810547,
-0.4877890348434448,
0.4755283296108246,
-0.326479434967041,
0.5047136545181274,
-0.13870958983898163,
1.001089096069336,
-0.760762631893158,
-0.29587265849113464,
-0.030554059892892838,
-0.9216439723968506,
-0.2533753216266632,
0.5375741720199585,
0.1540832668542862,
-0.14608067274093628,
0.4385907053947449,
0.44216376543045044,
0.022173406556248665,
0.25223150849342346,
0.32861006259918213,
0.06042787432670593,
0.14508451521396637,
0.5510438680648804,
1.0931141376495361,
-0.43394410610198975,
0.18694786727428436,
-0.4923475384712219,
-0.4536249041557312,
-0.4153490662574768,
-0.9548057913780212,
-0.6640313863754272,
-0.48185449838638306,
-0.2973935008049011,
-0.5915579199790955,
0.11726461350917816,
0.9300885796546936,
0.9018137454986572,
-0.6256728172302246,
-0.41243645548820496,
0.25713539123535156,
0.30293411016464233,
-0.2295418381690979,
-0.146267831325531,
0.2736492455005646,
-0.006407544948160648,
-0.7211178541183472,
0.3930943012237549,
0.807976245880127,
0.3887130320072174,
0.08444006741046906,
-0.07217127084732056,
-0.4407080411911011,
0.026101574301719666,
0.5373561382293701,
0.5729561448097229,
-0.6281182169914246,
-0.4099644422531128,
-0.5328317880630493,
-0.21386730670928955,
0.15529435873031616,
0.48077550530433655,
-0.5166378617286682,
0.32661110162734985,
0.8128959536552429,
0.17017659544944763,
0.7187885642051697,
-0.0022492259740829468,
0.6678642630577087,
-0.8970246315002441,
0.4446259140968323,
0.3953385353088379,
0.5681870579719543,
0.08998038619756699,
-0.7339164614677429,
0.9820241928100586,
0.49674350023269653,
-0.6334057450294495,
-1.0034242868423462,
0.03079957515001297,
-1.193113923072815,
-0.3788175582885742,
0.9890843629837036,
-0.09595765173435211,
-0.9597458839416504,
-0.36448943614959717,
-0.3677716851234436,
0.07989637553691864,
-0.33809733390808105,
0.35498204827308655,
0.8268195986747742,
-0.2538071274757385,
-0.2204185128211975,
-0.9505581855773926,
0.4752943515777588,
0.3102525472640991,
-0.5886632204055786,
-0.05114369094371796,
0.329391211271286,
0.45236870646476746,
0.3009701371192932,
0.5239557027816772,
0.10428227484226227,
0.8970529437065125,
0.25200390815734863,
0.30491405725479126,
-0.04526621103286743,
-0.590078592300415,
-0.0160664189606905,
0.2621477246284485,
0.04487839341163635,
-0.6869441270828247
] |
valhalla/distilbart-mnli-12-3
|
valhalla
| 2021-06-14T10:29:48Z | 7,767 | 14 |
transformers
|
[
"transformers",
"pytorch",
"jax",
"bart",
"text-classification",
"distilbart",
"distilbart-mnli",
"zero-shot-classification",
"dataset:mnli",
"endpoints_compatible",
"has_space",
"region:us"
] |
zero-shot-classification
| 2022-03-02T23:29:05Z |
---
datasets:
- mnli
tags:
- distilbart
- distilbart-mnli
pipeline_tag: zero-shot-classification
---
# DistilBart-MNLI
distilbart-mnli is the distilled version of bart-large-mnli created using the **No Teacher Distillation** technique proposed for BART summarisation by Huggingface, [here](https://github.com/huggingface/transformers/tree/master/examples/seq2seq#distilbart).
We just copy alternating layers from `bart-large-mnli` and finetune more on the same data.
| | matched acc | mismatched acc |
| ------------------------------------------------------------------------------------ | ----------- | -------------- |
| [bart-large-mnli](https://huggingface.co/facebook/bart-large-mnli) (baseline, 12-12) | 89.9 | 90.01 |
| [distilbart-mnli-12-1](https://huggingface.co/valhalla/distilbart-mnli-12-1) | 87.08 | 87.5 |
| [distilbart-mnli-12-3](https://huggingface.co/valhalla/distilbart-mnli-12-3) | 88.1 | 88.19 |
| [distilbart-mnli-12-6](https://huggingface.co/valhalla/distilbart-mnli-12-6) | 89.19 | 89.01 |
| [distilbart-mnli-12-9](https://huggingface.co/valhalla/distilbart-mnli-12-9) | 89.56 | 89.52 |
This is a very simple and effective technique, as we can see the performance drop is very little.
Detailed performace trade-offs will be posted in this [sheet](https://docs.google.com/spreadsheets/d/1dQeUvAKpScLuhDV1afaPJRRAE55s2LpIzDVA5xfqxvk/edit?usp=sharing).
## Fine-tuning
If you want to train these models yourself, clone the [distillbart-mnli repo](https://github.com/patil-suraj/distillbart-mnli) and follow the steps below
Clone and install transformers from source
```bash
git clone https://github.com/huggingface/transformers.git
pip install -qqq -U ./transformers
```
Download MNLI data
```bash
python transformers/utils/download_glue_data.py --data_dir glue_data --tasks MNLI
```
Create student model
```bash
python create_student.py \
--teacher_model_name_or_path facebook/bart-large-mnli \
--student_encoder_layers 12 \
--student_decoder_layers 6 \
--save_path student-bart-mnli-12-6 \
```
Start fine-tuning
```bash
python run_glue.py args.json
```
You can find the logs of these trained models in this [wandb project](https://wandb.ai/psuraj/distilbart-mnli).
|
[
-0.6375656723976135,
-0.7430644631385803,
0.2536260187625885,
0.290050208568573,
-0.22421662509441376,
0.19788266718387604,
-0.03465590253472328,
-0.23934705555438995,
0.34920763969421387,
0.4452044665813446,
-0.6096479892730713,
-0.1691262573003769,
-0.6365846395492554,
0.14529886841773987,
-0.3551802933216095,
1.3463788032531738,
-0.05572397634387016,
0.07464893162250519,
-0.1272651106119156,
-0.2698136866092682,
-0.24840141832828522,
-0.43485110998153687,
-0.6214860677719116,
-0.37918469309806824,
0.39364445209503174,
0.3573065400123596,
0.7396002411842346,
0.1989392787218094,
0.5971576571464539,
0.4482610821723938,
-0.5527704358100891,
0.25929009914398193,
-0.6286783814430237,
0.10831805318593979,
0.015193422324955463,
-0.5610524415969849,
-0.6814610362052917,
-0.0005735270096920431,
0.7574803233146667,
0.5549581050872803,
-0.0947716236114502,
0.5082855820655823,
0.2331680953502655,
1.2299413681030273,
-0.5851379632949829,
0.0209947619587183,
-0.4178715646266937,
0.0918169617652893,
-0.1509227305650711,
0.038296476006507874,
-0.4130738377571106,
-0.3575636148452759,
0.027988485991954803,
-0.5491456389427185,
0.3323729336261749,
-0.03589852526783943,
1.1564065217971802,
0.4937761723995209,
-0.3380028307437897,
-0.1365388184785843,
-0.8020179271697998,
0.9367648363113403,
-0.8137982487678528,
0.13644307851791382,
0.2483735829591751,
0.6504429578781128,
-0.07094676792621613,
-0.9884523153305054,
-0.6262926459312439,
-0.05961659923195839,
-0.4390186667442322,
0.2391059696674347,
-0.10700880736112595,
-0.22331887483596802,
0.7971068024635315,
0.7032743096351624,
-0.5033094882965088,
-0.23004890978336334,
-0.6894371509552002,
0.11690179258584976,
0.9272944927215576,
0.3259884715080261,
0.049840446561574936,
-0.15698882937431335,
-0.566197395324707,
-0.40373826026916504,
-0.3258042335510254,
0.11209756880998611,
0.2673303186893463,
0.14031437039375305,
-0.2863340377807617,
0.6915779113769531,
-0.2118905633687973,
0.34821078181266785,
0.5068875551223755,
-0.4409608840942383,
0.7590183019638062,
-0.47037988901138306,
-0.36569744348526,
0.15764392912387848,
0.9618698358535767,
0.2961525321006775,
0.347817599773407,
0.4209705591201782,
-0.29037514328956604,
-0.16156920790672302,
0.028328191488981247,
-1.3163275718688965,
-0.5176370739936829,
0.2302200198173523,
-0.5357047915458679,
-0.5437136888504028,
0.07576271891593933,
-0.7036703824996948,
-0.08386082947254181,
-0.4512740671634674,
0.5070756077766418,
-0.592164158821106,
-0.4499107003211975,
-0.22040922939777374,
-0.4644249379634857,
0.06384247541427612,
0.12319746613502502,
-1.0181776285171509,
0.2512415051460266,
0.5411838293075562,
0.8255749344825745,
0.08557179570198059,
-0.17050990462303162,
-0.4196993112564087,
-0.06806345283985138,
-0.3215119540691376,
0.2839025557041168,
-0.1871163547039032,
-0.4348069727420807,
-0.4981948733329773,
0.18531787395477295,
0.033223412930965424,
-0.6159008145332336,
0.6397398114204407,
-0.24490143358707428,
0.39193615317344666,
-0.33219102025032043,
-0.48735570907592773,
-0.3517914116382599,
0.03881485387682915,
-0.8339261412620544,
1.3520005941390991,
0.39815032482147217,
-1.1891318559646606,
0.31341278553009033,
-0.6758851408958435,
-0.45119932293891907,
-0.18982647359371185,
0.1831539124250412,
-1.026959776878357,
0.16422241926193237,
0.3957539200782776,
0.6018929481506348,
-0.08878273516893387,
0.4513060450553894,
-0.4381599724292755,
-0.5128779411315918,
0.23899738490581512,
-0.5366921424865723,
1.2960361242294312,
0.46152979135513306,
-0.4320088028907776,
-0.01580968126654625,
-1.031093955039978,
0.0010261170100420713,
0.3561078906059265,
-0.2627498507499695,
-0.41177451610565186,
-0.4527982175350189,
0.19391050934791565,
0.08659446239471436,
0.3321387767791748,
-0.28470396995544434,
0.304370641708374,
-0.2616511583328247,
0.5038106441497803,
0.7115792632102966,
-0.07230605185031891,
0.39866337180137634,
-0.5920185446739197,
0.2989429235458374,
0.24086101353168488,
0.4851929545402527,
-0.031072888523340225,
-0.5211088061332703,
-0.8706445693969727,
-0.589084804058075,
0.4691109359264374,
0.44314953684806824,
-0.9107183218002319,
0.42341098189353943,
-0.20364265143871307,
-0.8199796080589294,
-0.7054585814476013,
0.006699805147945881,
0.3515680432319641,
0.598313570022583,
0.46194663643836975,
0.04405045136809349,
-0.7020370364189148,
-1.2472702264785767,
0.15231208503246307,
-0.09572119265794754,
-0.10002382099628448,
0.06979640573263168,
0.6808781623840332,
-0.131366565823555,
0.9271805286407471,
-0.7098562121391296,
-0.21769316494464874,
-0.13928599655628204,
0.052926819771528244,
0.8399791717529297,
0.5558362603187561,
1.105202078819275,
-0.9273253083229065,
-1.0717743635177612,
-0.06792675703763962,
-0.7939141988754272,
-0.020429911091923714,
0.04246530309319496,
-0.20126783847808838,
0.2588927149772644,
0.1874164342880249,
-0.741771936416626,
0.47232043743133545,
0.549439549446106,
-0.40004900097846985,
0.7566152215003967,
-0.1402069330215454,
0.32902806997299194,
-1.5952768325805664,
0.47366777062416077,
-0.18191950023174286,
-0.4573068916797638,
-0.6295211315155029,
0.04418061673641205,
0.11985085904598236,
0.012522175908088684,
-0.5061853528022766,
0.422974556684494,
-0.5139172673225403,
0.07980819046497345,
-0.11060231178998947,
-0.29369696974754333,
0.22535495460033417,
0.7130906581878662,
-0.34304481744766235,
0.8748658895492554,
0.6071176528930664,
-0.4721323847770691,
0.4325804114341736,
0.4385184943675995,
-0.24903903901576996,
0.6124131679534912,
-0.7862508296966553,
-0.12752501666545868,
-0.15662026405334473,
0.2615968883037567,
-0.9950944781303406,
-0.02900215983390808,
0.3455749750137329,
-0.4698719084262848,
0.6263097524642944,
-0.21186323463916779,
-0.3965689241886139,
-0.5576298236846924,
-0.5752987265586853,
0.3715347349643707,
0.9470015168190002,
-0.7222506403923035,
0.6814489364624023,
0.1698320508003235,
-0.11173834651708603,
-0.839698314666748,
-0.8528124690055847,
-0.32214298844337463,
-0.6244261264801025,
-0.5487962961196899,
0.4445189833641052,
-0.1960238218307495,
-0.23243559896945953,
0.11407042294740677,
-0.06721053272485733,
-0.17079712450504303,
0.11453893780708313,
0.38239043951034546,
0.5503792762756348,
-0.2038760632276535,
-0.23444825410842896,
0.22793808579444885,
-0.2082551270723343,
-0.06690912693738937,
0.1893734335899353,
0.3994998633861542,
-0.20075006783008575,
-0.07227195054292679,
-0.8076176643371582,
0.13568620383739471,
0.8890836238861084,
0.05181774124503136,
0.6599158644676208,
0.9649374485015869,
-0.09794681519269943,
-0.01763088069856167,
-0.5966628789901733,
-0.27671581506729126,
-0.5696738362312317,
0.16948625445365906,
-0.6335809230804443,
-0.6735095977783203,
0.6098962426185608,
-0.09008137136697769,
0.3360235393047333,
0.8200011849403381,
0.557051420211792,
-0.2444377988576889,
1.1166712045669556,
0.3875522017478943,
-0.35076263546943665,
0.5495299100875854,
-0.6723580956459045,
0.03049156256020069,
-0.8375341892242432,
-0.1692095249891281,
-0.4651105999946594,
-0.6246455311775208,
-0.7299193739891052,
-0.3325217068195343,
0.503693699836731,
0.4221220910549164,
-0.36249488592147827,
0.5866736173629761,
-0.8396091461181641,
0.3943098783493042,
0.6070141792297363,
-0.040381673723459244,
0.47534114122390747,
0.1280839592218399,
-0.15526553988456726,
0.03805677220225334,
-0.5457563996315002,
-0.32130372524261475,
1.2863168716430664,
0.40431395173072815,
0.7139726877212524,
0.1099025160074234,
0.9387990236282349,
0.15595382452011108,
0.27324408292770386,
-0.5494239926338196,
0.3881506621837616,
-0.11058983206748962,
-0.8454036712646484,
-0.3311881422996521,
-0.7188553810119629,
-0.8145869970321655,
0.3943902850151062,
-0.3365401327610016,
-0.488336443901062,
0.06923514604568481,
0.13076822459697723,
-0.29273903369903564,
0.40391579270362854,
-0.8634617328643799,
0.6707035899162292,
-0.08216262608766556,
-0.3121512234210968,
-0.08971153944730759,
-0.5918209552764893,
0.6085464954376221,
-0.19385237991809845,
0.09309753030538559,
-0.1290714144706726,
0.4331118166446686,
0.5929032564163208,
-0.8299161195755005,
0.6204044222831726,
-0.41148215532302856,
-0.060126934200525284,
0.6014713048934937,
-0.06559986621141434,
0.5337849855422974,
0.22064828872680664,
-0.1175287589430809,
0.2432703822851181,
0.3222143054008484,
-0.4706377685070038,
-0.7765963673591614,
0.7574099898338318,
-0.7726086378097534,
-0.4554404020309448,
-0.42085492610931396,
-0.3749264180660248,
0.1723082959651947,
0.1484697163105011,
0.3089849650859833,
0.47560593485832214,
-0.054332856088876724,
0.3040238618850708,
0.600702702999115,
-0.06813934445381165,
0.6451461911201477,
0.22230347990989685,
-0.48695361614227295,
-0.4730834662914276,
0.8820212483406067,
0.03402196615934372,
0.25345808267593384,
0.3099565804004669,
0.3628869354724884,
-0.4334470331668854,
-0.20987237989902496,
-0.6454309821128845,
0.23228052258491516,
-0.39680418372154236,
-0.3226746618747711,
-0.5049996972084045,
-0.5105443000793457,
-0.31252726912498474,
0.04461848363280296,
-0.6612735986709595,
-0.7952083945274353,
-0.27093958854675293,
0.11311063170433044,
0.768952488899231,
0.6307933926582336,
-0.12045197933912277,
0.06375373154878616,
-0.8761718273162842,
0.30897438526153564,
0.35916706919670105,
0.19522714614868164,
0.0554654635488987,
-0.6830777525901794,
-0.1331941932439804,
0.3150635361671448,
-0.5775709748268127,
-0.5999139547348022,
0.3959308862686157,
0.2614121437072754,
0.3835214376449585,
0.4821173846721649,
0.2536635994911194,
0.9010903239250183,
-0.4959057569503784,
0.7125323414802551,
0.42285841703414917,
-0.820188581943512,
0.5326917171478271,
-0.12847158312797546,
0.12146604806184769,
0.7213525176048279,
0.614849865436554,
-0.12779688835144043,
-0.36325716972351074,
-0.7500551342964172,
-0.8302591443061829,
0.7729302048683167,
0.5639476180076599,
-0.0525309182703495,
0.32546254992485046,
0.05592432618141174,
0.22112882137298584,
0.11695525050163269,
-0.6281890869140625,
-0.745400071144104,
-0.27785947918891907,
-0.21063920855522156,
-0.19692467153072357,
-0.29637235403060913,
-0.165777325630188,
-0.7223292589187622,
0.8551412224769592,
0.06414128839969635,
0.038550958037376404,
0.31160297989845276,
0.1063123419880867,
0.05894698202610016,
-0.06557940691709518,
0.4829404950141907,
0.5083074569702148,
-0.5485031604766846,
-0.03809882327914238,
0.36166679859161377,
-0.5918081998825073,
0.1500784307718277,
0.06524360179901123,
-0.18804407119750977,
0.3652510941028595,
0.25941964983940125,
1.0237821340560913,
0.12202619016170502,
-0.47905218601226807,
0.43764615058898926,
-0.07330486923456192,
-0.5598840713500977,
-0.6099386811256409,
0.09446738660335541,
0.2700299322605133,
0.5729410648345947,
0.38222649693489075,
0.13751287758350372,
0.2993016839027405,
-0.530163586139679,
0.2639460563659668,
0.2651612460613251,
-0.17800273001194,
-0.31025397777557373,
0.6789664030075073,
-0.09622196108102798,
-0.14238378405570984,
0.7884042859077454,
-0.20014223456382751,
-0.3927032947540283,
0.6694768071174622,
0.36265987157821655,
0.7714188098907471,
-0.3485869765281677,
0.15828710794448853,
0.8112928867340088,
-0.10410132259130478,
-0.10060546547174454,
0.2523234784603119,
-0.01499975472688675,
-0.381813645362854,
-0.4000924527645111,
-0.8675876259803772,
-0.1806253045797348,
0.15772707760334015,
-0.8325250148773193,
0.4742271304130554,
-0.46337682008743286,
-0.3456266224384308,
0.33089983463287354,
0.08990774303674698,
-0.7563479542732239,
-0.08178120106458664,
-0.04995058849453926,
0.7169654965400696,
-0.9113708138465881,
0.9504821300506592,
0.5785732269287109,
-0.4510946273803711,
-0.9238329529762268,
-0.3571646511554718,
-0.03991622105240822,
-0.5750600099563599,
0.6785596013069153,
0.11114346981048584,
0.2591477930545807,
-0.17828309535980225,
-0.3256995975971222,
-0.9882974028587341,
1.504637360572815,
0.26772162318229675,
-0.9028947353363037,
0.030392717570066452,
0.11257694661617279,
0.6555724740028381,
-0.06024006009101868,
0.6076794266700745,
0.7069620490074158,
0.48877233266830444,
0.5053051114082336,
-1.2282465696334839,
0.14052923023700714,
-0.48439621925354004,
0.08157020062208176,
0.36209699511528015,
-0.8673425912857056,
1.1974730491638184,
-0.12002234160900116,
-0.2569311261177063,
0.07231421768665314,
0.5019068717956543,
0.42215821146965027,
0.43041229248046875,
0.5313104391098022,
0.953667163848877,
0.6661353707313538,
-0.013783713802695274,
0.9149248003959656,
-0.15500479936599731,
0.8403152227401733,
1.0402264595031738,
-0.07392604649066925,
0.7094427943229675,
0.5567601919174194,
-0.610541582107544,
0.44521066546440125,
0.5054118633270264,
-0.299649715423584,
0.6650317311286926,
0.15374775230884552,
-0.0863644927740097,
0.0576665922999382,
0.21477900445461273,
-0.7255977392196655,
0.3775966167449951,
0.13070134818553925,
-0.4399290084838867,
-0.12764950096607208,
-0.08929190039634705,
0.039508748799562454,
-0.12587381899356842,
-0.047903843224048615,
0.7131572961807251,
0.17938515543937683,
-0.5639959573745728,
1.2378196716308594,
-0.25144264101982117,
0.8671640157699585,
-0.4115692675113678,
-0.0667727142572403,
-0.2727825343608856,
0.21831552684307098,
-0.30612531304359436,
-0.716880202293396,
0.49903035163879395,
-0.0568758025765419,
-0.20825068652629852,
-0.09981021285057068,
0.5614830255508423,
-0.4002246558666229,
-0.829426109790802,
0.19362737238407135,
0.32660141587257385,
0.30013999342918396,
0.038190051913261414,
-0.8800998330116272,
-0.013798934407532215,
0.18609461188316345,
-0.5919541716575623,
0.31698742508888245,
0.4101116359233856,
0.13518524169921875,
0.5760012865066528,
0.7508186101913452,
-0.2349550575017929,
-0.07209020853042603,
0.023055586963891983,
1.167568325996399,
-0.42229291796684265,
-0.23125839233398438,
-1.123305082321167,
0.8179979920387268,
-0.4593908190727234,
-0.3601505160331726,
0.7168834209442139,
0.8255873918533325,
0.8579419851303101,
-0.31116876006126404,
0.6044402122497559,
-0.13476039469242096,
0.502488911151886,
-0.5391944050788879,
1.020938754081726,
-0.9129120111465454,
-0.11349620670080185,
-0.5776804685592651,
-1.346231460571289,
0.03473349288105965,
0.691566526889801,
0.03665386140346527,
0.025129757821559906,
0.5866034626960754,
0.8312811851501465,
-0.288810133934021,
0.029080085456371307,
0.20422863960266113,
0.20746324956417084,
0.195654034614563,
0.6079622507095337,
0.8056803345680237,
-0.7892946600914001,
0.48009103536605835,
-0.681784987449646,
-0.2209797352552414,
-0.3634167015552521,
-0.7246242761611938,
-1.2005058526992798,
-0.731391966342926,
-0.39591431617736816,
-0.2707580327987671,
-0.2944786548614502,
0.7943256497383118,
0.749103307723999,
-0.8931878805160522,
0.030545732006430626,
0.10267073661088943,
0.04260735213756561,
-0.3065142333507538,
-0.32847723364830017,
0.5125832557678223,
-0.16680335998535156,
-1.1396420001983643,
0.22621619701385498,
-0.030778661370277405,
0.2519424855709076,
-0.17536264657974243,
-0.08811438828706741,
-0.07775837182998657,
-0.1801520437002182,
0.6716743111610413,
0.022087734192609787,
-0.5668452978134155,
-0.08116284757852554,
-0.25560638308525085,
-0.006861282046884298,
0.11683627963066101,
0.4889831840991974,
-0.4421022832393646,
0.20019741356372833,
0.7128944993019104,
0.37916335463523865,
0.988027036190033,
0.0983315110206604,
0.14402657747268677,
-0.7711794972419739,
0.35945916175842285,
0.0917116105556488,
0.444897323846817,
0.13377776741981506,
-0.41678133606910706,
0.7349647283554077,
0.2694889008998871,
-0.6371515393257141,
-0.962908148765564,
-0.04391328990459442,
-1.2393566370010376,
-0.36726629734039307,
0.9448338747024536,
-0.15843826532363892,
-0.321353554725647,
0.36948132514953613,
-0.4352317154407501,
0.3570406138896942,
-0.46770626306533813,
0.8221386075019836,
0.49371057748794556,
0.04676936939358711,
0.08864155411720276,
-0.5766773223876953,
0.49665480852127075,
0.47890299558639526,
-0.4331912696361542,
-0.12605173885822296,
0.28463879227638245,
0.550420343875885,
0.406482994556427,
0.5635406970977783,
-0.2924427390098572,
-0.08416964113712311,
0.16196435689926147,
0.0734385997056961,
-0.451487272977829,
-0.23123471438884735,
-0.03683514520525932,
0.06628219038248062,
-0.17612160742282867,
-0.3799798786640167
] |
cyberagent/open-calm-7b
|
cyberagent
| 2023-05-18T01:12:08Z | 7,766 | 194 |
transformers
|
[
"transformers",
"pytorch",
"gpt_neox",
"text-generation",
"japanese",
"causal-lm",
"ja",
"dataset:wikipedia",
"dataset:cc100",
"dataset:mc4",
"license:cc-by-sa-4.0",
"has_space",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-05-15T07:53:34Z |
---
license: cc-by-sa-4.0
datasets:
- wikipedia
- cc100
- mc4
language:
- ja
tags:
- japanese
- causal-lm
inference: false
---
# OpenCALM-7B
## Model Description
OpenCALM is a suite of decoder-only language models pre-trained on Japanese datasets, developed by CyberAgent, Inc.
## Usage
```python
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("cyberagent/open-calm-7b", device_map="auto", torch_dtype=torch.float16)
tokenizer = AutoTokenizer.from_pretrained("cyberagent/open-calm-7b")
inputs = tokenizer("AIによって私達の暮らしは、", return_tensors="pt").to(model.device)
with torch.no_grad():
tokens = model.generate(
**inputs,
max_new_tokens=64,
do_sample=True,
temperature=0.7,
top_p=0.9,
repetition_penalty=1.05,
pad_token_id=tokenizer.pad_token_id,
)
output = tokenizer.decode(tokens[0], skip_special_tokens=True)
print(output)
```
## Model Details
|Model|Params|Layers|Dim|Heads|Dev ppl|
|:---:|:---: |:---:|:---:|:---:|:---:|
|[cyberagent/open-calm-small](https://huggingface.co/cyberagent/open-calm-small)|160M|12|768|12|19.7|
|[cyberagent/open-calm-medium](https://huggingface.co/cyberagent/open-calm-medium)|400M|24|1024|16|13.8|
|[cyberagent/open-calm-large](https://huggingface.co/cyberagent/open-calm-large)|830M|24|1536|16|11.3|
|[cyberagent/open-calm-1b](https://huggingface.co/cyberagent/open-calm-1b)|1.4B|24|2048|16|10.3|
|[cyberagent/open-calm-3b](https://huggingface.co/cyberagent/open-calm-3b)|2.7B|32|2560|32|9.7|
|[cyberagent/open-calm-7b](https://huggingface.co/cyberagent/open-calm-7b)|6.8B|32|4096|32|8.2|
* **Developed by**: [CyberAgent, Inc.](https://www.cyberagent.co.jp/)
* **Model type**: Transformer-based Language Model
* **Language**: Japanese
* **Library**: [GPT-NeoX](https://github.com/EleutherAI/gpt-neox)
* **License**: OpenCALM is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License ([CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/)). When using this model, please provide appropriate credit to CyberAgent, Inc.
* Example (en): This model is a fine-tuned version of OpenCALM-XX developed by CyberAgent, Inc. The original model is released under the CC BY-SA 4.0 license, and this model is also released under the same CC BY-SA 4.0 license. For more information, please visit: https://creativecommons.org/licenses/by-sa/4.0/
* Example (ja): 本モデルは、株式会社サイバーエージェントによるOpenCALM-XXをファインチューニングしたものです。元のモデルはCC BY-SA 4.0ライセンスのもとで公開されており、本モデルも同じくCC BY-SA 4.0ライセンスで公開します。詳しくはこちらをご覧ください: https://creativecommons.org/licenses/by-sa/4.0/
## Training Dataset
* Wikipedia (ja)
* Common Crawl (ja)
## Author
[Ryosuke Ishigami](https://huggingface.co/rishigami)
## Citations
```bibtext
@software{gpt-neox-library,
title = {{GPT-NeoX: Large Scale Autoregressive Language Modeling in PyTorch}},
author = {Andonian, Alex and Anthony, Quentin and Biderman, Stella and Black, Sid and Gali, Preetham and Gao, Leo and Hallahan, Eric and Levy-Kramer, Josh and Leahy, Connor and Nestler, Lucas and Parker, Kip and Pieler, Michael and Purohit, Shivanshu and Songz, Tri and Phil, Wang and Weinbach, Samuel},
url = {https://www.github.com/eleutherai/gpt-neox},
doi = {10.5281/zenodo.5879544},
month = {8},
year = {2021},
version = {0.0.1},
}
```
|
[
-0.4213481545448303,
-0.7496105432510376,
0.2860000431537628,
0.11284732073545456,
-0.1740938276052475,
-0.3067961037158966,
-0.39275485277175903,
-0.45466452836990356,
0.19125401973724365,
0.5564226508140564,
-0.5085451006889343,
-0.7966252565383911,
-0.49984219670295715,
0.0642194002866745,
-0.08095889538526535,
0.9553619027137756,
-0.2081519216299057,
-0.1034686416387558,
-0.06229286268353462,
-0.14254166185855865,
-0.1855047196149826,
-0.5284358263015747,
-0.7311365008354187,
-0.3919288218021393,
0.030969690531492233,
0.19045844674110413,
0.9948112368583679,
0.762549102306366,
0.4942183494567871,
0.4065440893173218,
0.04751702770590782,
0.028836984187364578,
-0.3443419635295868,
-0.2848407030105591,
0.006523204036056995,
-0.7341499328613281,
-0.7684699296951294,
-0.12606404721736908,
0.6895853281021118,
0.3736843466758728,
-0.07071704417467117,
0.2117319256067276,
-0.13662876188755035,
0.171836256980896,
-0.5525768399238586,
0.44005030393600464,
-0.46778765320777893,
-0.03535006567835808,
-0.1190483346581459,
-0.012618052773177624,
-0.38219329714775085,
-0.4119373559951782,
0.01928364671766758,
-0.7690669298171997,
0.25725436210632324,
-0.12312901765108109,
1.1846997737884521,
0.11809507757425308,
-0.11183121800422668,
0.005408954340964556,
-0.7876065373420715,
0.8394656777381897,
-1.1096901893615723,
0.23665036261081696,
0.56861412525177,
0.25099170207977295,
-0.009037015028297901,
-0.8202736377716064,
-0.4216001629829407,
-0.17032718658447266,
-0.011066793464124203,
0.22991709411144257,
-0.578583836555481,
-0.033698901534080505,
0.39016416668891907,
0.36845487356185913,
-0.9243153929710388,
0.031139912083745003,
-0.3876025676727295,
-0.3739508092403412,
0.45624101161956787,
0.37780165672302246,
0.4981963336467743,
0.00584721565246582,
-0.3509306013584137,
-0.30927202105522156,
-0.4597601890563965,
-0.1079632043838501,
0.31807440519332886,
0.4124795198440552,
-0.6494612693786621,
0.4700368642807007,
-0.08959805965423584,
0.6084405183792114,
-0.2583158016204834,
-0.23612165451049805,
0.6356022357940674,
-0.5193621516227722,
-0.30076318979263306,
-0.044294554740190506,
1.5196789503097534,
0.23562811315059662,
0.392267107963562,
0.05871321260929108,
-0.13453815877437592,
0.05581916123628616,
0.002450675005093217,
-1.0585620403289795,
-0.09930351376533508,
0.15279099345207214,
-0.4430800676345825,
-0.19589217007160187,
0.3564786911010742,
-0.8148588538169861,
0.12868240475654602,
-0.24268649518489838,
0.4541187286376953,
-0.5297377705574036,
-0.6280932426452637,
0.3566732406616211,
0.19680695235729218,
0.07484835386276245,
0.2693135440349579,
-0.48430368304252625,
0.550187885761261,
0.23541420698165894,
1.0451017618179321,
0.30077290534973145,
-0.4193800389766693,
-0.11569476872682571,
-0.28730514645576477,
-0.17960061132907867,
0.36017441749572754,
-0.28295665979385376,
-0.31774982810020447,
-0.0777030736207962,
0.22438688576221466,
-0.37695685029029846,
-0.5969933271408081,
0.3685959279537201,
-0.3678003251552582,
0.3932743966579437,
0.1645437628030777,
-0.01686139404773712,
-0.13131119310855865,
0.11097458750009537,
-0.6111666560173035,
1.1722873449325562,
0.24207410216331482,
-0.9271633625030518,
-0.03824780881404877,
-0.5881559252738953,
0.05054808408021927,
-0.14187802374362946,
0.047693654894828796,
-0.6085982322692871,
-0.18112561106681824,
0.2843487858772278,
0.06698504835367203,
-0.543739378452301,
0.15650373697280884,
-0.5642044544219971,
-0.15941882133483887,
0.30533120036125183,
-0.2588565945625305,
1.191136360168457,
0.41690587997436523,
-0.41871628165245056,
0.21740642189979553,
-0.8865829110145569,
0.18353228271007538,
0.5628167390823364,
-0.0929834172129631,
-0.273977667093277,
-0.2731417119503021,
0.16141287982463837,
0.4575735628604889,
0.3981914520263672,
-0.6181089878082275,
0.21427083015441895,
-0.5806977152824402,
0.6054762601852417,
0.5336686372756958,
-0.23116889595985413,
0.31917139887809753,
-0.2625381350517273,
0.7169331908226013,
0.2837301790714264,
0.38013598322868347,
-0.27643340826034546,
-0.5107879042625427,
-0.705444872379303,
-0.4942578673362732,
0.15870894491672516,
0.656751275062561,
-0.6086621284484863,
0.5010141134262085,
-0.3861243724822998,
-0.7621694803237915,
-0.7341119050979614,
-0.10292998701334,
0.5590023398399353,
0.25871291756629944,
0.43579164147377014,
-0.3737362325191498,
-0.6541277766227722,
-0.7385340929031372,
0.053724732249975204,
-0.16483242809772491,
0.13585327565670013,
0.4374413788318634,
0.658765971660614,
-0.5603016018867493,
1.117431640625,
-0.7655352354049683,
-0.1258954107761383,
-0.1539568454027176,
0.1987413763999939,
0.4546376168727875,
0.41011908650398254,
0.6863322854042053,
-0.47990989685058594,
-0.6044358611106873,
0.17083539068698883,
-0.7944392561912537,
-0.2466120719909668,
0.11468759179115295,
-0.04059721902012825,
0.26918014883995056,
0.5336179733276367,
-0.7480403184890747,
0.6406240463256836,
0.278353750705719,
-0.40450406074523926,
0.8542863130569458,
-0.3657763600349426,
-0.0627918690443039,
-1.471387267112732,
0.42736104130744934,
0.1049395352602005,
-0.3791157603263855,
-0.49341922998428345,
0.16474859416484833,
0.04842021316289902,
-0.21829654276371002,
-0.5412952899932861,
0.8960583806037903,
-0.464590460062027,
0.10516582429409027,
-0.2871455252170563,
0.22490452229976654,
-0.25352296233177185,
0.439647376537323,
0.10787435621023178,
0.6732755899429321,
0.8021611571311951,
-0.43021222949028015,
0.35519009828567505,
0.2224947065114975,
-0.12534017860889435,
0.1871843934059143,
-0.8381488919258118,
0.14968083798885345,
0.00013649094034917653,
0.1854707896709442,
-0.8791306614875793,
-0.09250690042972565,
0.38516393303871155,
-0.7632054686546326,
0.2515336573123932,
-0.29578229784965515,
-0.7597509622573853,
-0.5806714296340942,
-0.19312018156051636,
0.5598765015602112,
0.417325884103775,
-0.44213658571243286,
0.30642402172088623,
0.19311726093292236,
-0.06269725412130356,
-0.4936319589614868,
-0.6720476150512695,
-0.20222076773643494,
-0.14390234649181366,
-0.7598444223403931,
0.30540114641189575,
-0.1450904756784439,
-0.12257098406553268,
0.21098555624485016,
0.0406065508723259,
-0.22963792085647583,
-0.17643240094184875,
0.21701675653457642,
0.545353353023529,
-0.5170685648918152,
-0.3054882884025574,
-0.38992759585380554,
-0.3207746148109436,
0.27629637718200684,
-0.30111101269721985,
0.9173657894134521,
-0.348726749420166,
-0.15093649923801422,
-0.5433759093284607,
0.046317342668771744,
0.75821453332901,
-0.37333181500434875,
0.8708506226539612,
0.973293125629425,
-0.5309489965438843,
0.059475962072610855,
-0.2720099985599518,
-0.24609306454658508,
-0.48161670565605164,
0.5248755812644958,
-0.3832303285598755,
-0.7896242141723633,
0.9939387440681458,
0.21082349121570587,
0.020499229431152344,
0.6600111722946167,
0.7194615006446838,
0.6097172498703003,
1.2166370153427124,
0.47152388095855713,
-0.32371819019317627,
0.5415917038917542,
-0.49952128529548645,
0.12905064225196838,
-0.8286596536636353,
-0.10046891123056412,
-0.8010748624801636,
0.1271207481622696,
-0.8122831583023071,
-0.4212456941604614,
0.2591360807418823,
-0.04656105488538742,
-0.6111490726470947,
0.7328518033027649,
-0.41234251856803894,
0.17537982761859894,
0.5183599591255188,
0.22397179901599884,
0.1487233191728592,
-0.006136489100754261,
-0.471284955739975,
0.04729745164513588,
-0.7376345992088318,
-0.35912683606147766,
1.1101197004318237,
0.506973385810852,
1.005070447921753,
0.14104008674621582,
0.7214135527610779,
-0.4020902216434479,
0.011977811343967915,
-0.668663740158081,
0.6850154995918274,
0.12760911881923676,
-0.7985057830810547,
-0.03141871094703674,
-0.8667922616004944,
-1.2363269329071045,
0.1745186448097229,
0.022474098950624466,
-1.1271781921386719,
0.13387426733970642,
0.04851251095533371,
-0.2618327736854553,
0.4905758500099182,
-0.6060019731521606,
0.9066128730773926,
0.06320419162511826,
-0.4469863772392273,
-0.10885295271873474,
-0.6533560156822205,
0.3518807888031006,
0.07913882285356522,
0.32505422830581665,
0.10795394331216812,
-0.011295009404420853,
0.7154057621955872,
-0.8012897968292236,
0.9651771783828735,
-0.09938426315784454,
0.16705447435379028,
0.45121556520462036,
0.024700088426470757,
0.3500620722770691,
0.09301886707544327,
0.00360526773147285,
0.37461361289024353,
0.16011273860931396,
-0.27318185567855835,
-0.32113006711006165,
0.8952379822731018,
-1.3375165462493896,
-0.23543418943881989,
-0.7394866347312927,
-0.5725283622741699,
0.12600107491016388,
0.6590608954429626,
0.4516277015209198,
0.599524199962616,
-0.039622314274311066,
0.22664043307304382,
0.5850650668144226,
-0.5328562259674072,
0.4591253995895386,
0.5847734808921814,
-0.45742106437683105,
-0.8854227662086487,
0.9443751573562622,
0.09356050938367844,
0.4408244788646698,
0.32056328654289246,
0.3778822422027588,
-0.2999242842197418,
-0.2922583222389221,
-0.3117130696773529,
0.6622393131256104,
-0.5347933769226074,
-0.2823624312877655,
-0.642773449420929,
-0.47946175932884216,
-0.7662992477416992,
0.06338977068662643,
-0.5626315474510193,
-0.1784677803516388,
-0.46892523765563965,
0.2201586365699768,
0.3918178975582123,
0.46516284346580505,
-0.13603295385837555,
0.37337589263916016,
-0.7259588837623596,
0.23406927287578583,
-0.11564302444458008,
0.3954381048679352,
0.036212258040905,
-0.7046017646789551,
-0.4437493681907654,
0.24483619630336761,
-0.4683147072792053,
-0.7708370089530945,
0.7545062899589539,
-0.10216911882162094,
0.5476211309432983,
0.37431859970092773,
-0.016843460500240326,
0.7134436368942261,
-0.09948818385601044,
0.6449956297874451,
0.31105324625968933,
-0.784136950969696,
0.5625079870223999,
-0.6134619116783142,
0.8220826983451843,
0.297454833984375,
0.6003779172897339,
-0.4662284255027771,
-0.26874226331710815,
-0.8681650757789612,
-1.061254858970642,
1.2794828414916992,
0.22685381770133972,
-0.03706954047083855,
-0.02141636237502098,
0.21479491889476776,
-0.20114685595035553,
0.046187449246644974,
-1.03914475440979,
-0.45701712369918823,
-0.2639157772064209,
-0.37988191843032837,
-0.10255759209394455,
-0.012967642396688461,
0.1055220514535904,
-0.29696646332740784,
0.8825353980064392,
-0.15211071074008942,
0.7223098278045654,
0.3119615912437439,
-0.2234872430562973,
-0.29067152738571167,
0.06878575682640076,
0.6754931211471558,
0.45653074979782104,
-0.3979039192199707,
-0.05726349726319313,
0.05939631909132004,
-0.8311191201210022,
-0.16118501126766205,
0.273902952671051,
-0.17210477590560913,
0.003805724438279867,
0.32728707790374756,
1.1412540674209595,
0.17220455408096313,
-0.38720929622650146,
0.5054956078529358,
-0.12265624850988388,
-0.4087010324001312,
-0.365245521068573,
-0.009302137419581413,
0.01227533258497715,
0.037027958780527115,
0.00784570723772049,
-0.048012834042310715,
-0.1434004157781601,
-0.6082267165184021,
-0.028852971270680428,
0.30998823046684265,
-0.43054112792015076,
-0.5396627187728882,
0.7186216115951538,
-0.2505757510662079,
-0.15506745874881744,
0.7618067860603333,
-0.15275634825229645,
-0.5109524726867676,
0.7607318758964539,
0.9532869458198547,
1.0091791152954102,
-0.4624258875846863,
-0.05300665274262428,
0.9445175528526306,
0.5011676549911499,
-0.0023883949033915997,
0.4205731749534607,
0.2570205628871918,
-0.677528440952301,
-0.21373318135738373,
-0.6075456738471985,
-0.1431785672903061,
0.4140833914279938,
-0.7884332537651062,
0.5245859026908875,
-0.4908590316772461,
-0.4602189064025879,
-0.07146227359771729,
0.1510736048221588,
-0.7831018567085266,
0.23541401326656342,
0.030132101848721504,
0.9878132343292236,
-0.7391089797019958,
0.8468000292778015,
0.8760045170783997,
-0.6110808849334717,
-0.8329811096191406,
-0.19072507321834564,
0.09361133724451065,
-0.9040239453315735,
0.31257718801498413,
0.08624488860368729,
0.12744678556919098,
0.20770718157291412,
-0.4097113311290741,
-1.0556989908218384,
1.074737310409546,
0.4235343337059021,
-0.38326582312583923,
-0.09664413332939148,
0.5251736044883728,
0.503548264503479,
-0.21764373779296875,
1.0355353355407715,
0.1760217398405075,
0.4449903666973114,
0.01588357798755169,
-1.2963082790374756,
0.2534419000148773,
-0.41701024770736694,
0.01513252966105938,
0.430698037147522,
-0.8779401183128357,
1.008497953414917,
-0.2627178728580475,
-0.07286018133163452,
0.14879359304904938,
0.4184827208518982,
0.16233669221401215,
0.17244692146778107,
0.31481072306632996,
0.87079918384552,
0.28708088397979736,
-0.20227186381816864,
0.8386792540550232,
-0.3284359574317932,
0.7053470015525818,
1.0973753929138184,
0.08076582849025726,
0.6678460240364075,
-0.054275792092084885,
-0.37108293175697327,
0.5540118217468262,
0.48224711418151855,
0.01647583208978176,
0.27142420411109924,
0.03920324519276619,
-0.13984079658985138,
-0.15765470266342163,
0.14763176441192627,
-0.5240169763565063,
0.4177580773830414,
0.3186472952365875,
-0.5011863112449646,
-0.5398475527763367,
0.004135295283049345,
0.43803074955940247,
-0.2664758563041687,
-0.2337305247783661,
0.6572145223617554,
0.2527328431606293,
-0.5654633045196533,
0.9010894894599915,
0.25784340500831604,
0.5066671371459961,
-0.8445631861686707,
0.303176611661911,
0.031051155179739,
0.5043338537216187,
-0.2557500898838043,
-0.6103260517120361,
0.20583680272102356,
-0.02451103739440441,
-0.11659316718578339,
0.0293892715126276,
0.6536568403244019,
-0.32058796286582947,
-0.34932440519332886,
0.4735087454319,
0.20621395111083984,
0.22505830228328705,
-0.13202141225337982,
-0.988807737827301,
0.3032605051994324,
-0.03920983523130417,
-0.3614267110824585,
0.39599743485450745,
0.39923232793807983,
-0.12041667848825455,
0.6096976399421692,
0.7502393126487732,
0.03242609649896622,
0.11821674555540085,
0.07417730987071991,
0.9158638715744019,
-0.7134546041488647,
-0.4979024827480316,
-0.9450293183326721,
0.5346096754074097,
0.09945327788591385,
-0.6091314554214478,
0.8916990160942078,
0.8515401482582092,
0.9670771956443787,
-0.10838767886161804,
0.7526670694351196,
-0.1387157142162323,
0.25167739391326904,
-0.20446288585662842,
0.6294781565666199,
-0.5327015519142151,
-0.1637069284915924,
-0.43652164936065674,
-0.9443921446800232,
-0.2565164268016815,
0.6534290909767151,
-0.49189066886901855,
0.34374791383743286,
0.705630362033844,
1.1289488077163696,
-0.2711675763130188,
-0.18240556120872498,
0.17774465680122375,
0.5929359793663025,
0.3118286728858948,
0.7684992551803589,
0.4654322564601898,
-0.7519268989562988,
0.5626927614212036,
-0.46651649475097656,
-0.48417460918426514,
-0.3626955449581146,
-0.5865068435668945,
-0.9845406413078308,
-0.5106765031814575,
-0.48940107226371765,
-0.6362251043319702,
-0.22044637799263,
1.1554169654846191,
0.8174616694450378,
-0.7021226286888123,
-0.47673213481903076,
-0.16423572599887848,
-0.2628617286682129,
-0.1869780570268631,
-0.31391414999961853,
0.20694680511951447,
-0.18530455231666565,
-0.7899776697158813,
0.10896339267492294,
0.017055008560419083,
0.09368421137332916,
-0.2090175896883011,
-0.10041887313127518,
-0.2107754796743393,
0.14910030364990234,
0.40592989325523376,
0.46829119324684143,
-0.5748217105865479,
0.21007701754570007,
0.21392779052257538,
-0.2809046804904938,
0.19498834013938904,
0.44317713379859924,
-0.5320712327957153,
0.6156728267669678,
0.6853621602058411,
0.029087070375680923,
0.7437666058540344,
-0.4128861427307129,
0.3755124807357788,
-0.41597017645835876,
0.27486974000930786,
0.12048669159412384,
0.5078316330909729,
0.07203283160924911,
-0.159950390458107,
0.36428678035736084,
0.4657288193702698,
-0.6350041031837463,
-0.9206988215446472,
-0.011241396889090538,
-1.2171188592910767,
-0.1288095861673355,
1.3437275886535645,
-0.2523844838142395,
-0.47616568207740784,
0.10025793313980103,
-0.28748852014541626,
0.3988367021083832,
-0.36314472556114197,
0.39769530296325684,
0.5503709316253662,
0.2973775863647461,
-0.14425630867481232,
-0.6347121596336365,
0.09822624921798706,
0.06563656777143478,
-0.8384642004966736,
0.0948275476694107,
0.2826150953769684,
0.4552723169326782,
0.36098864674568176,
0.7036759257316589,
-0.6557668447494507,
0.34724271297454834,
0.04602137953042984,
0.4260408282279968,
-0.2493676096200943,
-0.17702163755893707,
-0.3094328045845032,
-0.17820455133914948,
0.027179652824997902,
-0.13763728737831116
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.