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 |
---|---|---|---|---|---|---|---|---|---|---|
grammarly/coedit-large
|
grammarly
| 2023-10-11T00:27:55Z | 9,483 | 52 |
transformers
|
[
"transformers",
"pytorch",
"safetensors",
"t5",
"text2text-generation",
"en",
"dataset:asset",
"dataset:wi_locness",
"dataset:GEM/wiki_auto_asset_turk",
"dataset:discofuse",
"dataset:zaemyung/IteraTeR_plus",
"dataset:jfleg",
"dataset:grammarly/coedit",
"arxiv:2305.09857",
"license:cc-by-nc-4.0",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] |
text2text-generation
| 2023-05-11T23:57:35Z |
---
license: cc-by-nc-4.0
datasets:
- asset
- wi_locness
- GEM/wiki_auto_asset_turk
- discofuse
- zaemyung/IteraTeR_plus
- jfleg
- grammarly/coedit
language:
- en
metrics:
- sari
- bleu
- accuracy
widget:
- text: >-
Fix the grammar: When I grow up, I start to understand what he said is
quite right.
example_title: Fluency
- text: >-
Make this text coherent: Their flight is weak. They run quickly through
the tree canopy.
example_title: Coherence
- text: >-
Rewrite to make this easier to understand: A storm surge is what
forecasters consider a hurricane's most treacherous aspect.
example_title: Simplification
- text: 'Paraphrase this: Do you know where I was born?'
example_title: Paraphrase
- text: >-
Write this more formally: omg i love that song im listening to it right
now
example_title: Formalize
- text: 'Write in a more neutral way: The authors'' exposé on nutrition studies.'
example_title: Neutralize
---
# Model Card for CoEdIT-Large
This model was obtained by fine-tuning the corresponding `google/flan-t5-large` model on the CoEdIT dataset. Details of the dataset can be found in our paper and repository.
**Paper:** CoEdIT: Text Editing by Task-Specific Instruction Tuning
**Authors:** Vipul Raheja, Dhruv Kumar, Ryan Koo, Dongyeop Kang
## Model Details
### Model Description
- **Language(s) (NLP)**: English
- **Finetuned from model:** google/flan-t5-large
### Model Sources
- **Repository:** https://github.com/vipulraheja/coedit
- **Paper:** https://arxiv.org/abs/2305.09857
## How to use
We make available the models presented in our paper.
<table>
<tr>
<th>Model</th>
<th>Number of parameters</th>
</tr>
<tr>
<td>CoEdIT-large</td>
<td>770M</td>
</tr>
<tr>
<td>CoEdIT-xl</td>
<td>3B</td>
</tr>
<tr>
<td>CoEdIT-xxl</td>
<td>11B</td>
</tr>
</table>
## Uses
## Text Revision Task
Given an edit instruction and an original text, our model can generate the edited version of the text.<br>

## Usage
```python
from transformers import AutoTokenizer, T5ForConditionalGeneration
tokenizer = AutoTokenizer.from_pretrained("grammarly/coedit-large")
model = T5ForConditionalGeneration.from_pretrained("grammarly/coedit-large")
input_text = 'Fix grammatical errors in this sentence: When I grow up, I start to understand what he said is quite right.'
input_ids = tokenizer(input_text, return_tensors="pt").input_ids
outputs = model.generate(input_ids, max_length=256)
edited_text = tokenizer.decode(outputs[0], skip_special_tokens=True)
```
#### Software
https://github.com/vipulraheja/coedit
## Citation
**BibTeX:**
```
@article{raheja2023coedit,
title={CoEdIT: Text Editing by Task-Specific Instruction Tuning},
author={Vipul Raheja and Dhruv Kumar and Ryan Koo and Dongyeop Kang},
year={2023},
eprint={2305.09857},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
```
**APA:**
Raheja, V., Kumar, D., Koo, R., & Kang, D. (2023). CoEdIT: Text Editing by Task-Specific Instruction Tuning. ArXiv. /abs/2305.09857
|
[
-0.08714580535888672,
-0.9523088335990906,
0.467906653881073,
0.254301518201828,
0.009806467220187187,
-0.14616157114505768,
-0.5858387351036072,
-0.4518081247806549,
-0.03433024138212204,
0.22187621891498566,
-0.7952452301979065,
-0.5252526998519897,
-0.6548476219177246,
0.33088231086730957,
-0.3472248613834381,
1.1246213912963867,
-0.24082162976264954,
-0.13729065656661987,
-0.285684198141098,
0.05341716110706329,
-0.4833243787288666,
-0.5049880743026733,
-0.8273640871047974,
-0.1790623962879181,
0.4582633972167969,
0.5937855243682861,
0.543297529220581,
0.9181563854217529,
0.46513235569000244,
0.4749669134616852,
-0.3322816491127014,
0.18400387465953827,
-0.3252159655094147,
-0.1038140058517456,
-0.4259345829486847,
-0.42248308658599854,
-0.8685206770896912,
0.04422569274902344,
0.6948361396789551,
0.4875490665435791,
0.1755966991186142,
0.2918761968612671,
0.1969912052154541,
0.5195214152336121,
-0.5963356494903564,
0.10727742314338684,
-0.5770741105079651,
0.006421699654310942,
-0.24794723093509674,
-0.0682336837053299,
-0.5033820271492004,
-0.03236101195216179,
-0.17462998628616333,
-0.7701766490936279,
0.4369811713695526,
0.03326091915369034,
1.28300940990448,
0.35554492473602295,
-0.08423212170600891,
-0.3298160135746002,
-0.6098290085792542,
0.8205530047416687,
-0.9023942351341248,
0.24338535964488983,
0.318665474653244,
-0.17664013803005219,
-0.13763931393623352,
-0.9439964890480042,
-0.7193744778633118,
-0.16694693267345428,
-0.34887930750846863,
0.10332516580820084,
-0.08748805522918701,
0.16661471128463745,
0.578608512878418,
0.4986618459224701,
-0.37303218245506287,
0.006287476047873497,
-0.41269391775131226,
-0.1878674477338791,
0.6616119742393494,
0.1798013299703598,
0.2710387110710144,
-0.281044602394104,
-0.1868223249912262,
-0.14587543904781342,
-0.3142966330051422,
0.16272583603858948,
0.5024490356445312,
0.1783686727285385,
-0.2754329442977905,
0.7265844941139221,
-0.05152546241879463,
0.8106561899185181,
0.5857149362564087,
-0.017105571925640106,
0.4135670065879822,
-0.44067326188087463,
-0.4003364145755768,
-0.14160612225532532,
0.937221109867096,
0.09539250284433365,
0.22903746366500854,
-0.023994741961359978,
-0.24741874635219574,
0.012316998094320297,
0.21945786476135254,
-0.5915109515190125,
-0.11193866282701492,
0.2923010289669037,
-0.3330320715904236,
-0.3803824186325073,
0.2324015498161316,
-0.9300638437271118,
-0.1849430501461029,
-0.4181984066963196,
0.3188934326171875,
-0.36509427428245544,
-0.021465517580509186,
0.0323493517935276,
0.11118369549512863,
0.038119714707136154,
0.13586121797561646,
-1.1048457622528076,
0.22871041297912598,
0.74509197473526,
0.732309877872467,
-0.12395782023668289,
-0.507172703742981,
-0.6587950587272644,
0.057684291154146194,
-0.21905310451984406,
0.6655040383338928,
-0.7207339406013489,
-0.3334345519542694,
-0.02576053887605667,
0.42105644941329956,
-0.37954655289649963,
-0.38911503553390503,
1.001503825187683,
-0.28991904854774475,
0.43454331159591675,
-0.1826964169740677,
-0.592846155166626,
0.08808501064777374,
0.09110114723443985,
-0.6288681030273438,
1.1832691431045532,
0.06966730207204819,
-0.8642418384552002,
0.20833516120910645,
-0.8380122184753418,
-0.422328919172287,
-0.29543212056159973,
0.11077906936407089,
-0.6661956310272217,
-0.053509194403886795,
0.2666410505771637,
0.44993656873703003,
-0.015621663071215153,
0.19665145874023438,
-0.1675369143486023,
-0.30409711599349976,
0.11291871219873428,
-0.2253587245941162,
0.727780282497406,
0.14554958045482635,
-0.5418588519096375,
0.4207408130168915,
-0.8037620782852173,
0.11386414617300034,
0.0035065184347331524,
-0.3852827548980713,
-0.30466586351394653,
-0.12557677924633026,
0.1746501326560974,
0.3539104163646698,
0.6071869134902954,
-0.593468189239502,
0.3777811527252197,
-0.4061626195907593,
0.5488920211791992,
0.8468262553215027,
-0.011714202351868153,
0.47037699818611145,
-0.41427773237228394,
0.3670938313007355,
-0.01371490303426981,
0.3293498754501343,
-0.024359891191124916,
-0.24822157621383667,
-1.0583678483963013,
-0.10040818899869919,
0.3715968728065491,
0.6921027898788452,
-0.3393799364566803,
0.6266723275184631,
-0.29777830839157104,
-0.4290836453437805,
-0.4978894591331482,
0.45596784353256226,
0.5464279651641846,
0.47883886098861694,
0.5248843431472778,
0.11886031925678253,
-0.7496992349624634,
-0.6397577524185181,
-0.49315956234931946,
0.03273222595453262,
0.16139906644821167,
0.2969035804271698,
0.7132177948951721,
-0.41218870878219604,
0.6882285475730896,
-0.6220222115516663,
-0.3608168661594391,
-0.1752864420413971,
0.2434317022562027,
0.26552513241767883,
0.8420318365097046,
0.35278767347335815,
-0.6825278997421265,
-0.5859247446060181,
-0.04008278623223305,
-0.4691605567932129,
-0.33171138167381287,
-0.4258021414279938,
-0.3952532112598419,
0.5610454082489014,
0.768659234046936,
-0.549457848072052,
0.35782554745674133,
0.5383852124214172,
-0.8723459243774414,
0.6376162767410278,
-0.5144721865653992,
0.12186696380376816,
-1.3661329746246338,
0.3464711308479309,
0.06211932748556137,
-0.21092186868190765,
-0.3602742552757263,
0.11342230439186096,
0.1944565623998642,
0.27292242646217346,
-0.15751340985298157,
0.6161006093025208,
-0.48543065786361694,
0.27728965878486633,
-0.20025841891765594,
0.11312563717365265,
0.03463629260659218,
0.5916337966918945,
-0.0986916795372963,
0.8690346479415894,
0.14885078370571136,
-0.45652705430984497,
0.34047409892082214,
0.31405460834503174,
-0.1513243168592453,
0.583817183971405,
-0.9571953415870667,
0.23532503843307495,
0.18210472166538239,
0.04927651956677437,
-0.8422238230705261,
-0.36973661184310913,
0.3264187276363373,
-0.4614381492137909,
0.41104283928871155,
0.08285009860992432,
-0.6990435123443604,
-0.34345337748527527,
-0.2790951132774353,
0.06598319113254547,
0.2693844139575958,
-0.5314701199531555,
0.6843158602714539,
0.07950121909379959,
-0.18675334751605988,
-0.6621300578117371,
-0.6458324193954468,
0.0007799077429808676,
0.004201836418360472,
-0.7858558893203735,
0.6767788529396057,
-0.3488176167011261,
-0.06205705553293228,
0.14395050704479218,
-0.07438603788614273,
-0.08811962604522705,
-0.05168865993618965,
0.2704499065876007,
0.42576220631599426,
-0.15580147504806519,
0.21716022491455078,
0.248652383685112,
-0.06722002476453781,
0.03078637644648552,
0.04235744848847389,
0.5284002423286438,
-0.19777995347976685,
0.06003757193684578,
-0.5963032841682434,
0.24871735274791718,
0.5986364483833313,
-0.3974452316761017,
0.7624558806419373,
0.9151593446731567,
-0.21055522561073303,
-0.07020256668329239,
-0.5355357527732849,
0.023005422204732895,
-0.5484771132469177,
0.41968950629234314,
-0.31979161500930786,
-0.7979277968406677,
0.6148039102554321,
-0.030406545847654343,
0.24424955248832703,
0.9358612895011902,
0.5104868412017822,
-0.13745296001434326,
0.9344620108604431,
0.6564064621925354,
0.008964713662862778,
0.8261783719062805,
-0.4377293586730957,
-0.12766019999980927,
-1.1812574863433838,
-0.1819957196712494,
-0.6770889163017273,
-0.3415577709674835,
-0.7084798812866211,
-0.22432033717632294,
0.07497990131378174,
0.01762939803302288,
-0.5380471348762512,
0.21521008014678955,
-0.6757332682609558,
0.40044596791267395,
0.7212957739830017,
0.19234953820705414,
0.2006262093782425,
-0.15327218174934387,
-0.1951143592596054,
-0.0651494488120079,
-0.5948123335838318,
-0.47937193512916565,
0.9797340035438538,
0.14086611568927765,
0.7130537033081055,
-0.06304363161325455,
0.6093232035636902,
0.20157359540462494,
0.011225290596485138,
-0.6010599136352539,
0.5305607318878174,
-0.44313162565231323,
-0.5947933197021484,
-0.2899324297904968,
-0.40517425537109375,
-1.1126152276992798,
-0.10454536974430084,
-0.46694520115852356,
-0.646177351474762,
0.27896609902381897,
0.3082497715950012,
-0.34488871693611145,
0.35135602951049805,
-1.0278860330581665,
1.2482874393463135,
-0.05103180930018425,
-0.7103287577629089,
-0.15783476829528809,
-0.5360400676727295,
0.22214239835739136,
0.04791415110230446,
0.12020417302846909,
0.25935205817222595,
-0.26165536046028137,
0.8555046319961548,
-0.6240676045417786,
0.924175500869751,
-0.09945681691169739,
-0.1749119907617569,
0.15551310777664185,
-0.21174964308738708,
0.7464916110038757,
0.08331277221441269,
-0.03878605738282204,
-0.0810767114162445,
0.003044768935069442,
-0.39180248975753784,
-0.6086822748184204,
0.9954783916473389,
-1.055263638496399,
-0.6359227299690247,
-0.5957605838775635,
-0.605724573135376,
-0.060220662504434586,
0.31477177143096924,
0.39851129055023193,
0.38956308364868164,
0.025209810584783554,
0.23442673683166504,
0.6259836554527283,
-0.27382680773735046,
0.5026239156723022,
0.1803893893957138,
0.1319558024406433,
-0.4256943166255951,
0.6635944843292236,
0.10606560856103897,
0.26101604104042053,
0.3167722523212433,
0.23790264129638672,
-0.13024716079235077,
-0.10356476902961731,
-0.26082855463027954,
0.5335076451301575,
-0.5836457014083862,
-0.10613863170146942,
-0.6454746723175049,
-0.19871853291988373,
-0.5732579827308655,
-0.2927868664264679,
-0.20313660800457,
-0.3940500020980835,
-0.706413745880127,
0.06548938155174255,
0.41964203119277954,
0.6728482246398926,
0.006717299111187458,
0.324889212846756,
-0.6562576293945312,
0.29779672622680664,
0.24800820648670197,
0.4899251461029053,
-0.03279919549822807,
-0.8398314118385315,
-0.2937394976615906,
0.10404078662395477,
-0.3463880717754364,
-0.7455583810806274,
0.31333717703819275,
0.34825557470321655,
0.47804924845695496,
0.14826074242591858,
0.007907897233963013,
0.8411949872970581,
-0.49720269441604614,
0.9210325479507446,
-0.15971329808235168,
-1.268833041191101,
0.7288210988044739,
-0.2883407175540924,
0.6577838063240051,
0.4482797384262085,
0.06820066273212433,
-0.7199814319610596,
-0.3808656334877014,
-0.9227408766746521,
-0.9721163511276245,
0.9372073411941528,
0.024743011221289635,
0.3300647437572479,
0.10905902832746506,
0.5152109861373901,
-0.05093430355191231,
-0.12630845606327057,
-0.7737409472465515,
-0.21662598848342896,
-0.291301429271698,
-0.5620858073234558,
-0.041090648621320724,
-0.4881373345851898,
-0.15866078436374664,
-0.48631352186203003,
1.0410979986190796,
-0.014709129929542542,
0.5206245183944702,
0.36549654603004456,
-0.2532338798046112,
-0.27761974930763245,
0.4796951115131378,
1.0053778886795044,
0.5759748816490173,
-0.0759655311703682,
-0.036100346595048904,
0.29072675108909607,
-0.7873294949531555,
-0.132766991853714,
0.13222305476665497,
-0.10568521171808243,
0.06510352343320847,
0.5951297283172607,
0.9519382119178772,
0.2918533980846405,
-0.48226603865623474,
0.5114620923995972,
0.0166864525526762,
-0.3149150609970093,
-0.41503438353538513,
0.3136497139930725,
-0.059033364057540894,
0.24225717782974243,
0.16713209450244904,
0.25062137842178345,
-0.1793508380651474,
-0.3256230354309082,
0.03816035017371178,
0.02828451432287693,
-0.1789807230234146,
-0.3694825768470764,
0.7873067855834961,
0.1931454837322235,
-0.3181280195713043,
0.5828785300254822,
-0.16456128656864166,
-0.4193161129951477,
0.5329663157463074,
0.6525884866714478,
0.9309887290000916,
-0.1893327832221985,
0.15885859727859497,
0.8282605409622192,
0.30537188053131104,
-0.11354580521583557,
0.3628053069114685,
0.0727725699543953,
-0.5118089914321899,
-0.5011718273162842,
-0.5472397804260254,
-0.15652474761009216,
0.2660259008407593,
-0.6008207201957703,
0.36210036277770996,
-0.6500846147537231,
-0.16116315126419067,
0.03556560352444649,
0.31408029794692993,
-0.6000396013259888,
0.3356516659259796,
-0.16855712234973907,
0.8884598612785339,
-0.6987183690071106,
0.7575061917304993,
0.9191288352012634,
-0.4196154773235321,
-0.9546823501586914,
0.038817305117845535,
-0.16264517605304718,
-0.5639404058456421,
0.6045287251472473,
-0.18308046460151672,
0.11373463273048401,
0.019736891612410545,
-0.7399848699569702,
-0.8130674958229065,
1.0909734964370728,
0.2833738625049591,
-0.7437479496002197,
-0.3451327383518219,
0.001303322147578001,
0.644589364528656,
-0.21268391609191895,
0.045799292623996735,
0.404119610786438,
0.6370836496353149,
0.02815196104347706,
-0.9397700428962708,
0.2687365412712097,
-0.5071532726287842,
0.02162296697497368,
0.018445562571287155,
-0.8171885013580322,
1.0330381393432617,
-0.26567503809928894,
-0.02273206226527691,
0.24431920051574707,
0.7640455365180969,
0.0177414882928133,
0.06451279670000076,
0.5646988153457642,
0.5380457043647766,
0.8096069693565369,
-0.14322158694267273,
0.9676937460899353,
-0.5136638283729553,
0.5792896747589111,
1.3552461862564087,
0.3414245843887329,
0.9537385702133179,
0.4963034689426422,
-0.01792857237160206,
0.809415876865387,
0.5253872275352478,
-0.2243107557296753,
0.2548002600669861,
-0.09771276265382767,
0.0010656765662133694,
-0.27444005012512207,
0.20576342940330505,
-0.3180384039878845,
0.33614644408226013,
0.3278406262397766,
-0.8002184629440308,
0.0659031942486763,
-0.12657780945301056,
0.4472165107727051,
0.23712904751300812,
-0.4519645869731903,
0.7083243727684021,
-0.1351483017206192,
-0.7554653286933899,
0.6705610752105713,
0.20104485750198364,
0.8833383321762085,
-0.5395137071609497,
0.013425412587821484,
-0.10499873757362366,
0.4094424843788147,
-0.4043707847595215,
-0.6800861954689026,
0.3537624478340149,
0.3148486018180847,
-0.36744827032089233,
-0.1771029233932495,
0.5120726227760315,
-0.5359801650047302,
-0.8098732233047485,
-0.012019933201372623,
0.09442974627017975,
-0.24789457023143768,
0.2734602391719818,
-0.8666898608207703,
0.27131104469299316,
-0.004404331091791391,
-0.3393704891204834,
-0.045933060348033905,
0.5372662544250488,
0.027190187945961952,
0.2919004261493683,
0.5506253242492676,
0.12712949514389038,
0.13353918492794037,
-0.13967850804328918,
0.7649291753768921,
-0.5808427333831787,
-0.46212756633758545,
-0.892953097820282,
0.6208693981170654,
-0.37897491455078125,
-0.7018442153930664,
0.6377529501914978,
0.5685046315193176,
1.051376461982727,
-0.2180112898349762,
0.7452212572097778,
-0.36985522508621216,
0.4363945424556732,
-0.5271549820899963,
0.704167366027832,
-0.6702584028244019,
0.027049241587519646,
-0.5797567963600159,
-0.7449342608451843,
-0.3034990727901459,
0.7807576656341553,
-0.6613637804985046,
0.16603168845176697,
0.9434900283813477,
0.8420317769050598,
-0.1008496806025505,
-0.1777632236480713,
0.08966195583343506,
0.5860128402709961,
0.20702065527439117,
0.5972540974617004,
0.2994470000267029,
-0.5883050560951233,
0.5936939120292664,
-0.27649572491645813,
-0.15560908615589142,
-0.2606270909309387,
-0.7016516923904419,
-0.9581558704376221,
-0.8168236017227173,
-0.3754930794239044,
-0.45587313175201416,
0.03912724182009697,
1.1281204223632812,
0.4436596930027008,
-0.8388404250144958,
-0.06338705867528915,
-0.13125859200954437,
0.09331324696540833,
-0.47628387808799744,
-0.24742171168327332,
0.6599221229553223,
-0.7005667090415955,
-1.0261813402175903,
-0.048645466566085815,
-0.19344863295555115,
-0.005595441907644272,
0.0499991774559021,
-0.08488339930772781,
-0.4925169348716736,
0.12270807474851608,
0.49281245470046997,
0.2552030384540558,
-0.6128713488578796,
-0.44929057359695435,
0.22633317112922668,
-0.3462885916233063,
0.0837421789765358,
0.5369840264320374,
-0.3182503581047058,
0.37828314304351807,
0.5327154397964478,
0.5152041912078857,
0.27802544832229614,
-0.0322108156979084,
0.4813108742237091,
-0.7538792490959167,
0.05117294564843178,
-0.0659269243478775,
0.33343765139579773,
0.3393038213253021,
-0.6290774345397949,
0.4767831861972809,
0.402410626411438,
-0.6892390251159668,
-0.7009391784667969,
-0.10246209800243378,
-1.1193195581436157,
-0.1529771387577057,
1.472446322441101,
-0.2111559510231018,
-0.5359331369400024,
0.19352129101753235,
-0.579520046710968,
0.5368910431861877,
-0.32238298654556274,
0.8830967545509338,
0.9126777648925781,
0.14798662066459656,
-0.15834955871105194,
-0.34159740805625916,
0.6330181360244751,
0.4410251975059509,
-0.9167592525482178,
0.15994617342948914,
0.41467544436454773,
0.37835580110549927,
0.15843504667282104,
0.32686886191368103,
-0.09499313682317734,
0.5074363350868225,
-0.12663307785987854,
0.15184703469276428,
-0.2815432846546173,
-0.14206084609031677,
-0.23973508179187775,
0.007608204614371061,
-0.11220012605190277,
-0.11107349395751953
] |
zhyemmmm/ToonYou
|
zhyemmmm
| 2023-06-06T07:23:13Z | 9,483 | 3 |
diffusers
|
[
"diffusers",
"text-to-image",
"license:creativeml-openrail-m",
"endpoints_compatible",
"has_space",
"diffusers:StableDiffusionPipeline",
"region:us"
] |
text-to-image
| 2023-06-06T07:05:30Z |
---
license: creativeml-openrail-m
library_name: diffusers
pipeline_tag: text-to-image
---
use to study
|
[
-0.35299548506736755,
-0.34321069717407227,
0.3401113450527191,
-0.03769320994615555,
-0.4807063639163971,
-0.38898372650146484,
-0.03406994044780731,
-0.13353757560253143,
0.5452375411987305,
0.2835438847541809,
-0.07819658517837524,
-0.12361355125904083,
-0.12309237569570541,
0.1034601703286171,
-0.5848188996315002,
0.664214551448822,
-0.051742006093263626,
0.7288421392440796,
-0.08322040736675262,
-0.1939680129289627,
-0.6851514577865601,
-0.2822295129299164,
-1.1607611179351807,
-0.042288780212402344,
0.8085819482803345,
0.9431668519973755,
0.6284058690071106,
-0.25335147976875305,
0.7606870532035828,
0.6140011548995972,
0.13084784150123596,
-0.15933862328529358,
-0.6361233592033386,
0.14777353405952454,
-0.3838728368282318,
-1.1573760509490967,
0.027139980345964432,
0.3017130196094513,
0.35018521547317505,
1.2655560970306396,
0.07564999908208847,
0.615689754486084,
-0.18361739814281464,
0.9406293630599976,
-0.4878233075141907,
0.2697092890739441,
0.3168015480041504,
0.44760292768478394,
-0.393879234790802,
-0.3151973485946655,
-0.26659733057022095,
-0.8759304285049438,
0.5635115504264832,
-0.974817156791687,
-0.16645823419094086,
0.09058155119419098,
0.58588707447052,
0.06911508738994598,
-1.1090009212493896,
-0.25110918283462524,
-0.43777889013290405,
0.9029351472854614,
-0.2231670320034027,
0.9363161325454712,
0.5855107307434082,
0.5790971517562866,
-0.10699447244405746,
-1.1219258308410645,
-0.2525089681148529,
-0.29020071029663086,
-0.2754153311252594,
0.529353141784668,
0.5094824433326721,
0.07310976088047028,
0.1973113715648651,
0.9216197729110718,
-0.5193394422531128,
-0.6079729199409485,
-1.0111019611358643,
-0.05523607134819031,
0.4430239796638489,
0.20248179137706757,
1.0733057260513306,
-0.09525938332080841,
-0.21890218555927277,
-0.10808639228343964,
-0.8451770544052124,
0.23823006451129913,
0.15462784469127655,
0.6026989817619324,
0.10109944641590118,
0.7979145050048828,
0.1942211091518402,
0.9293726086616516,
-0.39185816049575806,
-0.07254616171121597,
0.3955196738243103,
0.032609663903713226,
-0.6131168603897095,
-0.0665258914232254,
-0.13113698363304138,
0.45933541655540466,
0.4966118335723877,
-0.024475857615470886,
0.1999954879283905,
-0.30476218461990356,
0.5663550496101379,
-0.8728967905044556,
-0.7890955209732056,
0.05818073824048042,
-0.5140628218650818,
-0.10288240760564804,
-0.011779218912124634,
-0.8897468447685242,
0.13581252098083496,
-0.7135307192802429,
0.47750598192214966,
-0.27153268456459045,
-0.2218596637248993,
0.45583707094192505,
-0.6008334755897522,
-0.10263653844594955,
0.40908709168434143,
-1.010011911392212,
0.5403214693069458,
-0.19503235816955566,
1.1879054307937622,
0.09978551417589188,
-0.563747763633728,
-0.44001156091690063,
0.241525799036026,
-0.5476365089416504,
0.5983695983886719,
-0.07347586750984192,
-1.2688958644866943,
0.20888479053974152,
0.15820857882499695,
-0.27896806597709656,
-0.36124387383461,
0.8179975748062134,
-0.3886048197746277,
0.43155258893966675,
-0.37599417567253113,
-0.4376630187034607,
-0.5367316007614136,
0.0021710828877985477,
-1.0635625123977661,
1.146043300628662,
0.4227423071861267,
-0.6565197110176086,
0.34770894050598145,
-0.8150585889816284,
-0.8118703961372375,
0.31544747948646545,
-0.1916937381029129,
-0.21492858231067657,
0.5062969923019409,
-0.44332486391067505,
-0.08472613245248795,
0.8049265146255493,
0.04305751994252205,
-0.07397642731666565,
-0.886628270149231,
0.12166529893875122,
0.07813968509435654,
1.35672128200531,
0.21298226714134216,
-0.160015270113945,
-0.18203464150428772,
-0.5888059139251709,
-0.009880280122160912,
0.27091485261917114,
-0.6246705651283264,
-1.0478484630584717,
0.17902129888534546,
0.2267502248287201,
-0.69921875,
-0.187970370054245,
-0.6602320671081543,
0.23711438477039337,
-0.38899603486061096,
0.2237512767314911,
0.12075837701559067,
-0.06003134325146675,
0.20959237217903137,
-0.32718509435653687,
0.2871115207672119,
-0.2726697027683258,
-0.05179911106824875,
0.4183835983276367,
-0.05659174174070358,
-1.069933533668518,
0.18318547308444977,
0.49240821599960327,
0.5310208797454834,
-0.8728300929069519,
-0.22613771259784698,
0.6646904945373535,
-0.48177942633628845,
-0.5188461542129517,
0.05652554705739021,
-0.042613618075847626,
0.3721458911895752,
0.27835899591445923,
-0.09788961708545685,
-0.6768181920051575,
-0.4346892237663269,
-0.4269426763057709,
-0.1995898187160492,
-0.05819772556424141,
0.4765635132789612,
0.6934505105018616,
-0.20691373944282532,
0.48725828528404236,
-0.835624098777771,
-0.72137451171875,
0.014043176546692848,
-0.0898936539888382,
-0.3375258445739746,
0.4555269181728363,
0.6747201085090637,
-1.090348482131958,
-0.6917136907577515,
-0.05655623599886894,
-0.7121626138687134,
0.21150560677051544,
-0.19790315628051758,
-0.3915036618709564,
-0.07590470463037491,
0.311567485332489,
0.326524555683136,
0.5593901872634888,
0.0653548464179039,
-0.9231006503105164,
0.12493930757045746,
-0.3328205645084381,
0.3132179081439972,
-0.6357657313346863,
0.2953684628009796,
0.03820796310901642,
-0.5552433729171753,
-0.4846649169921875,
-0.02974780835211277,
-0.004934386350214481,
-0.6509658694267273,
-0.20801250636577606,
0.5525074005126953,
-0.6445854902267456,
0.3687492609024048,
-0.5950568318367004,
0.13902120292186737,
-0.24751079082489014,
-0.40157023072242737,
-0.17498798668384552,
1.1814568042755127,
0.7501095533370972,
-0.5354042649269104,
0.03252048045396805,
0.7011500597000122,
-0.38842764496803284,
0.6574510335922241,
-0.20137794315814972,
0.07923991978168488,
0.20752902328968048,
-0.3731873035430908,
-0.8218551874160767,
-0.47359713912010193,
0.012087361887097359,
-0.44413989782333374,
0.2026810646057129,
0.35660356283187866,
0.09653802961111069,
-0.4988928735256195,
-0.41807419061660767,
0.45081061124801636,
0.11499100923538208,
-1.0208280086517334,
0.939805805683136,
0.4352632462978363,
-0.1788734644651413,
-0.35354459285736084,
-0.9075009226799011,
-0.12036707252264023,
-0.6762863993644714,
-0.521831214427948,
0.21148070693016052,
-0.07763136923313141,
-0.43505603075027466,
-0.16484951972961426,
-0.37410086393356323,
-0.2546442449092865,
0.2680519223213196,
0.7786881327629089,
0.3811216950416565,
-0.09949058294296265,
0.30404117703437805,
-0.2030232846736908,
0.1419830620288849,
0.3363557457923889,
0.3046947121620178,
0.06517599523067474,
-0.11407122761011124,
-0.05455777049064636,
-0.38845762610435486,
1.0504868030548096,
0.34713736176490784,
0.2017938196659088,
0.19315606355667114,
0.05507282167673111,
-0.12737564742565155,
-0.5211819410324097,
-0.2858453691005707,
-0.5435084104537964,
-0.6609340906143188,
0.0937490314245224,
-0.3854290843009949,
-0.892819881439209,
-0.023198628798127174,
-0.3481833338737488,
-0.02364790439605713,
0.03285394608974457,
0.08971470594406128,
-0.5259629487991333,
-0.0604308545589447,
1.0622057914733887,
0.009637640789151192,
0.8407875895500183,
-0.19027794897556305,
0.6225713491439819,
-1.0388907194137573,
-0.4931630492210388,
-0.738355815410614,
-0.4061083197593689,
-0.17190217971801758,
-0.19204692542552948,
0.09790502488613129,
0.19432702660560608,
0.04067225754261017,
-0.07946453243494034,
-0.3011505901813507,
0.6127980947494507,
0.7376519441604614,
0.4752923846244812,
0.21216651797294617,
-0.10146275907754898,
0.13231635093688965,
-0.40745916962623596,
-0.023815685883164406,
-0.5131240487098694,
1.6374461650848389,
-0.06732749193906784,
0.8205386996269226,
0.05166042968630791,
0.46059149503707886,
0.12206143140792847,
0.4501182436943054,
-1.028071641921997,
0.6449397802352905,
-0.4205666184425354,
-0.8739830255508423,
-0.6754999160766602,
-0.135101318359375,
-1.2924401760101318,
0.43572959303855896,
0.3979920744895935,
-0.5176436305046082,
0.0591185986995697,
0.1389738768339157,
-0.10306370258331299,
0.029589861631393433,
-0.6783254742622375,
0.8708308935165405,
-0.4191664159297943,
-0.19358250498771667,
-0.23318949341773987,
-0.41244029998779297,
0.2306903898715973,
0.3460063934326172,
-0.302152544260025,
0.5760905742645264,
0.03492080420255661,
1.0938583612442017,
0.03222476318478584,
0.8324843645095825,
-0.07754911482334137,
0.7147018313407898,
0.5824888944625854,
0.12720969319343567,
-0.4361010193824768,
0.3221122622489929,
0.06967692077159882,
-0.5492931008338928,
0.1908464878797531,
-0.604232668876648,
0.023584628477692604,
0.6553083658218384,
-0.6609137654304504,
-0.9237589836120605,
-1.0403356552124023,
-0.463632732629776,
0.24962946772575378,
0.3386242389678955,
-0.013519185595214367,
1.0455681085586548,
-0.6637760400772095,
0.395381897687912,
0.47844427824020386,
0.3276967406272888,
0.3546960949897766,
0.39446955919265747,
-0.4852975010871887,
-0.2036242038011551,
1.0625085830688477,
0.46702226996421814,
0.1309894621372223,
0.06168019771575928,
0.6404775381088257,
-0.2946420907974243,
-0.5831730961799622,
-0.15686564147472382,
0.18361160159111023,
-0.7820429801940918,
0.009703231044113636,
-0.3216915428638458,
0.004385736770927906,
-0.1601298451423645,
-0.47503265738487244,
0.17892923951148987,
-0.036837510764598846,
-0.34123697876930237,
-0.4337650239467621,
0.39751309156417847,
0.4043995440006256,
-0.4202345013618469,
0.7139372229576111,
-0.18872638046741486,
0.2538725435733795,
0.5536298751831055,
0.2801814377307892,
-0.3119097650051117,
-0.1526927947998047,
-0.2528371810913086,
-0.3872167468070984,
-0.6616054773330688,
-1.0341354608535767,
0.4190250039100647,
0.19694116711616516,
0.7392824292182922,
0.4070238471031189,
0.009211701340973377,
0.3071468472480774,
0.0026998608373105526,
0.5749558210372925,
-0.2024577111005783,
-0.9033551216125488,
0.8363223075866699,
-0.3149701654911041,
0.11391206830739975,
1.291148066520691,
1.2982056140899658,
-0.37848275899887085,
-0.15510623157024384,
-0.33628717064857483,
-0.918256402015686,
0.34298771619796753,
0.2088804990053177,
-0.02671288326382637,
0.4001084268093109,
0.4274296760559082,
0.19252333045005798,
0.20090869069099426,
-0.7989450097084045,
-0.3279819190502167,
-0.2812746465206146,
0.20796194672584534,
-0.36469683051109314,
-0.3877728283405304,
-0.3905099928379059,
-0.611251711845398,
0.7219432592391968,
-0.05123603343963623,
0.12318164110183716,
0.5475914478302002,
-0.031886857002973557,
-0.19386427104473114,
0.002923595951870084,
0.1380808800458908,
1.0112254619598389,
-0.6596506834030151,
0.19390001893043518,
0.2276294231414795,
-1.406132698059082,
0.07554318010807037,
-0.1295044720172882,
-0.03278797119855881,
0.3896714150905609,
-0.6012134552001953,
0.09380867332220078,
0.2878078818321228,
-0.7056509852409363,
0.18533889949321747,
-0.33265355229377747,
-0.25984400510787964,
-0.7470510601997375,
0.14604350924491882,
0.20640727877616882,
-0.0874202772974968,
-0.10603292286396027,
-0.03947233036160469,
0.6975836753845215,
-1.1062275171279907,
0.10214264690876007,
0.27107295393943787,
-0.7294121980667114,
0.18914321064949036,
0.5492912530899048,
0.7677835822105408,
-0.74709153175354,
1.1356024742126465,
0.6140784025192261,
-0.5760037302970886,
0.5117250680923462,
0.9626472592353821,
0.2833721339702606,
-0.46992120146751404,
0.277496337890625,
0.49299439787864685,
0.006206317339092493,
-0.3693932890892029,
1.1192238330841064,
-0.28673943877220154,
-0.3038415014743805,
0.0648307353258133,
-0.2690959870815277,
-0.852264404296875,
0.1275898814201355,
-0.9220504760742188,
0.3960360586643219,
-0.16174998879432678,
-0.04648076742887497,
0.322807252407074,
0.15399399399757385,
-0.4169307351112366,
0.7833644151687622,
-0.18863794207572937,
1.0572335720062256,
-1.0282319784164429,
0.9617282748222351,
1.0376325845718384,
-0.527000904083252,
-0.8249479532241821,
-0.3967292606830597,
0.17238834500312805,
-0.32905641198158264,
0.5587841272354126,
0.4812510013580322,
-0.3494332432746887,
-0.1449558585882187,
-0.32117533683776855,
-0.3835999369621277,
0.8893968462944031,
-0.24547085165977478,
-0.5459852814674377,
0.32880157232284546,
-0.30054014921188354,
0.16762425005435944,
0.0771525651216507,
0.37583959102630615,
0.6383641362190247,
0.41496968269348145,
-0.0736037939786911,
-0.34883564710617065,
-0.1504163146018982,
-0.34092482924461365,
-0.6826610565185547,
0.5935013294219971,
-0.913432240486145,
0.8810803294181824,
-0.6025988459587097,
-0.5870513916015625,
0.041282109916210175,
0.6664673089981079,
0.0444081649184227,
0.946925163269043,
0.4001956880092621,
0.36023491621017456,
1.0699195861816406,
-0.3042449653148651,
0.7543344497680664,
0.38229912519454956,
0.4072848856449127,
0.8820300102233887,
0.024868566542863846,
1.0114259719848633,
1.019380807876587,
-0.22910985350608826,
0.07594481110572815,
0.8090240359306335,
-0.35007038712501526,
0.7044919729232788,
0.8164111375808716,
-0.44240671396255493,
0.08994460105895996,
0.13211402297019958,
-0.5828893780708313,
0.03222351893782616,
0.378351628780365,
-0.06807504594326019,
0.007803517393767834,
0.3674555718898773,
-0.19855043292045593,
0.28060606122016907,
-0.5567516088485718,
0.16672725975513458,
0.686939537525177,
-0.7544790506362915,
0.05135286599397659,
-0.6184780597686768,
-0.010577255859971046,
-0.5992722511291504,
0.14103925228118896,
-0.21698518097400665,
0.4345272183418274,
-0.3141658306121826,
-0.6198827028274536,
0.6121896505355835,
-0.19834503531455994,
0.34606820344924927,
-0.1107478141784668,
0.796784520149231,
-0.08827077597379684,
-0.7473601698875427,
0.596057653427124,
0.4841615557670593,
0.8286100625991821,
0.4062843918800354,
0.12320695072412491,
-0.24624037742614746,
0.17887099087238312,
-0.34688296914100647,
0.5476737022399902,
0.09084027260541916,
0.22723408043384552,
0.5857179164886475,
0.22185251116752625,
0.11916372925043106,
0.050825148820877075,
0.20128664374351501,
0.6600643992424011,
-1.0889512300491333,
-0.5747768878936768,
-0.7041817307472229,
0.17356234788894653,
-0.08087422698736191,
-1.0423365831375122,
1.0230576992034912,
1.13382887840271,
1.5241835117340088,
0.025425950065255165,
0.6142106056213379,
-0.10154662281274796,
0.35182178020477295,
-0.5357128977775574,
0.8193296194076538,
-1.1629528999328613,
-0.5928881168365479,
0.48171544075012207,
-0.7749144434928894,
-0.2423332929611206,
1.0897557735443115,
0.07379435002803802,
-0.3604767918586731,
1.4830118417739868,
0.036862101405858994,
-0.1430869847536087,
0.7779107689857483,
0.4503847658634186,
-0.22087368369102478,
-0.0038085579872131348,
0.42851781845092773,
0.37507301568984985,
0.07626104354858398,
0.31592637300491333,
-0.5653296709060669,
-0.3420189321041107,
-0.5518975257873535,
-0.06734122335910797,
-1.880305528640747,
-0.5603027939796448,
-0.33613941073417664,
-0.5559405088424683,
0.29175427556037903,
0.32796743512153625,
0.5538168549537659,
-0.6661044359207153,
-1.0177236795425415,
0.040469951927661896,
-0.06786908954381943,
-0.26560044288635254,
-0.011860978789627552,
0.8941043615341187,
-0.4071870446205139,
-0.8552532196044922,
0.7401269674301147,
-0.08435670286417007,
0.602705180644989,
-0.37879982590675354,
0.6544647216796875,
-0.36107105016708374,
-0.1869642734527588,
0.21188616752624512,
0.4269940257072449,
-0.2245212346315384,
-0.16011016070842743,
0.02393609844148159,
-0.2822191119194031,
0.22368066012859344,
1.3152886629104614,
-0.4979366362094879,
0.8046154975891113,
0.8499889373779297,
0.49247613549232483,
0.8822905421257019,
-0.01875331997871399,
0.8990260362625122,
0.05396813899278641,
0.4041983485221863,
0.5747954249382019,
0.5551432371139526,
0.13645784556865692,
-0.7499081492424011,
1.0800716876983643,
0.0033862858545035124,
-0.9588597416877747,
-0.7920416593551636,
-0.045645132660865784,
-1.7448339462280273,
-0.32183125615119934,
0.41206997632980347,
-0.20908918976783752,
-0.5334396362304688,
-0.19447770714759827,
-0.5075573921203613,
0.10300030559301376,
-0.737850546836853,
1.019945502281189,
1.0378509759902954,
-0.25934502482414246,
-0.04965323954820633,
-1.4176603555679321,
0.44809770584106445,
0.7323604226112366,
-0.9293736219406128,
-0.6712644696235657,
-0.06536777317523956,
0.3432478904724121,
0.00036437995731830597,
0.47907304763793945,
0.08483456075191498,
0.3594633936882019,
0.39439791440963745,
-0.3638365864753723,
-0.08405451476573944,
-0.6984115242958069,
0.06874604523181915,
0.22378841042518616,
-0.13258801400661469,
-0.9428833723068237
] |
stabilityai/StableBeluga2
|
stabilityai
| 2023-09-18T15:55:32Z | 9,480 | 850 |
transformers
|
[
"transformers",
"pytorch",
"llama",
"text-generation",
"en",
"dataset:conceptofmind/cot_submix_original",
"dataset:conceptofmind/flan2021_submix_original",
"dataset:conceptofmind/t0_submix_original",
"dataset:conceptofmind/niv2_submix_original",
"arxiv:2307.09288",
"arxiv:2306.02707",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-07-20T15:09:28Z |
---
datasets:
- conceptofmind/cot_submix_original
- conceptofmind/flan2021_submix_original
- conceptofmind/t0_submix_original
- conceptofmind/niv2_submix_original
language:
- en
pipeline_tag: text-generation
---
# Stable Beluga 2
Use [Stable Chat (Research Preview)](https://chat.stability.ai/chat) to test Stability AI's best language models for free
## Model Description
`Stable Beluga 2` is a Llama2 70B model finetuned on an Orca style Dataset
## Usage
Start chatting with `Stable Beluga 2` using the following code snippet:
```python
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
tokenizer = AutoTokenizer.from_pretrained("stabilityai/StableBeluga2", use_fast=False)
model = AutoModelForCausalLM.from_pretrained("stabilityai/StableBeluga2", torch_dtype=torch.float16, low_cpu_mem_usage=True, device_map="auto")
system_prompt = "### System:\nYou are Stable Beluga, an AI that follows instructions extremely well. Help as much as you can. Remember, be safe, and don't do anything illegal.\n\n"
message = "Write me a poem please"
prompt = f"{system_prompt}### User: {message}\n\n### Assistant:\n"
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
output = model.generate(**inputs, do_sample=True, top_p=0.95, top_k=0, max_new_tokens=256)
print(tokenizer.decode(output[0], skip_special_tokens=True))
```
Stable Beluga 2 should be used with this prompt format:
```
### System:
This is a system prompt, please behave and help the user.
### User:
Your prompt here
### Assistant:
The output of Stable Beluga 2
```
## Other Beluga Models
[StableBeluga 1 - Delta](https://huggingface.co/stabilityai/StableBeluga1-Delta)
[StableBeluga 13B](https://huggingface.co/stabilityai/StableBeluga-13B)
[StableBeluga 7B](https://huggingface.co/stabilityai/StableBeluga-7B)
## Model Details
* **Developed by**: [Stability AI](https://stability.ai/)
* **Model type**: Stable Beluga 2 is an auto-regressive language model fine-tuned on Llama2 70B.
* **Language(s)**: English
* **Library**: [HuggingFace Transformers](https://github.com/huggingface/transformers)
* **License**: Fine-tuned checkpoints (`Stable Beluga 2`) is licensed under the [STABLE BELUGA NON-COMMERCIAL COMMUNITY LICENSE AGREEMENT](https://huggingface.co/stabilityai/StableBeluga2/blob/main/LICENSE.txt)
* **Contact**: For questions and comments about the model, please email `[email protected]`
### Training Dataset
` Stable Beluga 2` is trained on our internal Orca-style dataset
### Training Procedure
Models are learned via supervised fine-tuning on the aforementioned datasets, trained in mixed-precision (BF16), and optimized with AdamW. We outline the following hyperparameters:
| Dataset | Batch Size | Learning Rate |Learning Rate Decay| Warm-up | Weight Decay | Betas |
|-------------------|------------|---------------|-------------------|---------|--------------|-------------|
| Orca pt1 packed | 256 | 3e-5 | Cosine to 3e-6 | 100 | 1e-6 | (0.9, 0.95) |
| Orca pt2 unpacked | 512 | 3e-5 | Cosine to 3e-6 | 100 | 1e-6 | (0.9, 0.95) |
## Ethical Considerations and Limitations
Beluga 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, Beluga'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 Beluga, developers should perform safety testing and tuning tailored to their specific applications of the model.
## How to cite
```bibtex
@misc{StableBelugaModels,
url={[https://huggingface.co/stabilityai/StableBeluga2](https://huggingface.co/stabilityai/StableBeluga2)},
title={Stable Beluga models},
author={Mahan, Dakota and Carlow, Ryan and Castricato, Louis and Cooper, Nathan and Laforte, Christian}
}
```
## Citations
```bibtext
@misc{touvron2023llama,
title={Llama 2: Open Foundation and Fine-Tuned Chat Models},
author={Hugo Touvron and Louis Martin and Kevin Stone and Peter Albert and Amjad Almahairi and Yasmine Babaei and Nikolay Bashlykov and Soumya Batra and Prajjwal Bhargava and Shruti Bhosale and Dan Bikel and Lukas Blecher and Cristian Canton Ferrer and Moya Chen and Guillem Cucurull and David Esiobu and Jude Fernandes and Jeremy Fu and Wenyin Fu and Brian Fuller and Cynthia Gao and Vedanuj Goswami and Naman Goyal and Anthony Hartshorn and Saghar Hosseini and Rui Hou and Hakan Inan and Marcin Kardas and Viktor Kerkez and Madian Khabsa and Isabel Kloumann and Artem Korenev and Punit Singh Koura and Marie-Anne Lachaux and Thibaut Lavril and Jenya Lee and Diana Liskovich and Yinghai Lu and Yuning Mao and Xavier Martinet and Todor Mihaylov and Pushkar Mishra and Igor Molybog and Yixin Nie and Andrew Poulton and Jeremy Reizenstein and Rashi Rungta and Kalyan Saladi and Alan Schelten and Ruan Silva and Eric Michael Smith and Ranjan Subramanian and Xiaoqing Ellen Tan and Binh Tang and Ross Taylor and Adina Williams and Jian Xiang Kuan and Puxin Xu and Zheng Yan and Iliyan Zarov and Yuchen Zhang and Angela Fan and Melanie Kambadur and Sharan Narang and Aurelien Rodriguez and Robert Stojnic and Sergey Edunov and Thomas Scialom},
year={2023},
eprint={2307.09288},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
```
```bibtext
@misc{mukherjee2023orca,
title={Orca: Progressive Learning from Complex Explanation Traces of GPT-4},
author={Subhabrata Mukherjee and Arindam Mitra and Ganesh Jawahar and Sahaj Agarwal and Hamid Palangi and Ahmed Awadallah},
year={2023},
eprint={2306.02707},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
```
|
[
-0.4577471911907196,
-0.8951053619384766,
0.02631300874054432,
0.41592687368392944,
-0.23705407977104187,
-0.007252076640725136,
-0.12867450714111328,
-0.5466850399971008,
0.031369540840387344,
0.23883050680160522,
-0.5163384675979614,
-0.44714605808258057,
-0.6421628594398499,
-0.07005513459444046,
-0.2821343243122101,
1.0835896730422974,
0.08836741000413895,
-0.1375553011894226,
0.05658647418022156,
-0.21028965711593628,
-0.6524588465690613,
-0.2944064736366272,
-0.9129594564437866,
-0.33106622099876404,
0.25262129306793213,
0.16233789920806885,
0.7535918951034546,
0.6952163577079773,
0.17833611369132996,
0.35142385959625244,
-0.4136831760406494,
-0.014500942081212997,
-0.5938857793807983,
-0.15481030941009521,
0.17016929388046265,
-0.5449391603469849,
-0.6479496955871582,
-0.04950925335288048,
0.5118458867073059,
0.47653526067733765,
-0.11121237277984619,
0.20572666823863983,
0.2617515027523041,
0.4120860993862152,
-0.36778777837753296,
0.41238075494766235,
-0.3900239169597626,
-0.24180565774440765,
-0.17395959794521332,
0.2032202184200287,
-0.2597329318523407,
-0.7113127112388611,
0.11442743986845016,
-0.6610342860221863,
-0.019514868035912514,
-0.15047767758369446,
1.5145201683044434,
0.36944741010665894,
-0.48976564407348633,
-0.0698341354727745,
-0.5289397835731506,
0.9107098579406738,
-0.9400733113288879,
0.44227850437164307,
0.34549540281295776,
0.2936430275440216,
-0.3412408232688904,
-0.711270809173584,
-0.6315411329269409,
-0.1347440928220749,
-0.14086560904979706,
0.343330442905426,
-0.2075062394142151,
-0.10351988673210144,
0.286590039730072,
0.3591464161872864,
-0.5835824012756348,
0.2571588158607483,
-0.5932528972625732,
-0.44092509150505066,
0.5025569200515747,
0.01690521650016308,
0.07142393290996552,
-0.16288743913173676,
-0.3308379352092743,
-0.41514351963996887,
-0.7305648326873779,
0.35472339391708374,
0.3425975739955902,
0.2008475512266159,
-0.6112552881240845,
0.6191462874412537,
-0.033124830573797226,
0.5877384543418884,
0.07969179004430771,
-0.37891286611557007,
0.4966590404510498,
-0.41480132937431335,
-0.372020423412323,
-0.032547760754823685,
0.963179886341095,
0.4010014235973358,
0.08151998370885849,
0.2748905420303345,
-0.03680779039859772,
0.3772788643836975,
-0.1090160459280014,
-0.9162135124206543,
-0.2316972017288208,
0.34260112047195435,
-0.5313870906829834,
-0.5478203296661377,
-0.27999213337898254,
-1.117498755455017,
-0.13773179054260254,
-0.016858035698533058,
0.3590613007545471,
-0.3698946237564087,
-0.4731169044971466,
0.11482714116573334,
0.27872154116630554,
0.5520554184913635,
-0.004970842972397804,
-1.0415350198745728,
0.3332132399082184,
0.45566731691360474,
0.7972964644432068,
0.19489072263240814,
-0.2277601808309555,
-0.29951128363609314,
-0.03381162881851196,
-0.45466992259025574,
0.6084005236625671,
-0.21365463733673096,
-0.46181735396385193,
-0.022062068805098534,
0.2142934799194336,
-0.012803065590560436,
-0.3231252133846283,
0.7205221652984619,
-0.26643019914627075,
0.43012285232543945,
-0.23674921691417694,
-0.380426287651062,
-0.47886598110198975,
0.16451622545719147,
-0.4777268171310425,
1.232651948928833,
-0.029171209782361984,
-0.7039787173271179,
0.22018460929393768,
-0.5767461061477661,
-0.3460109829902649,
-0.3396616578102112,
-0.11505503207445145,
-0.7753587365150452,
-0.378322035074234,
0.23129324615001678,
0.45429128408432007,
-0.31116825342178345,
0.28834593296051025,
-0.4834209680557251,
-0.22099189460277557,
0.14864319562911987,
-0.2112373262643814,
1.1511880159378052,
0.2996560037136078,
-0.6464592814445496,
0.1471623331308365,
-0.912194013595581,
-0.1132483035326004,
0.4110755920410156,
-0.4162236452102661,
-0.07673364877700806,
-0.10087214410305023,
-0.320809930562973,
-0.006794383283704519,
0.3567255437374115,
-0.4492988586425781,
0.1519659012556076,
-0.4508037865161896,
0.4920220673084259,
0.6678223013877869,
-0.06395986676216125,
0.22313810884952545,
-0.37272655963897705,
0.22761918604373932,
-0.07164089381694794,
0.3472452461719513,
-0.09086813032627106,
-0.8797780275344849,
-0.9769777655601501,
-0.3238627314567566,
0.41942885518074036,
0.7212039828300476,
-0.3096921741962433,
0.6321784853935242,
0.008544934913516045,
-0.7431980967521667,
-0.6092603802680969,
-0.054794955998659134,
0.6520856618881226,
0.654000461101532,
0.3690323829650879,
-0.2670290470123291,
-0.6931939125061035,
-0.8665332198143005,
0.1575896292924881,
-0.43648526072502136,
0.13347667455673218,
0.11883257329463959,
0.40627166628837585,
-0.4575452506542206,
0.7687865495681763,
-0.45716148614883423,
-0.1287851482629776,
-0.08130628615617752,
0.2091318815946579,
0.35643434524536133,
0.622715175151825,
0.9056971669197083,
-0.6004636287689209,
-0.2538416385650635,
-0.13195465505123138,
-0.7764461040496826,
-0.09059697389602661,
0.09793371707201004,
-0.29079002141952515,
0.5673462152481079,
0.19585126638412476,
-0.6330506205558777,
0.5137360095977783,
0.7697353959083557,
-0.36823832988739014,
0.595054566860199,
-0.14291687309741974,
0.06310779601335526,
-1.2109640836715698,
0.19866794347763062,
0.16376259922981262,
-0.1139870285987854,
-0.5565662980079651,
-0.06104957312345505,
0.05737437307834625,
0.023512080311775208,
-0.28716570138931274,
0.5637614727020264,
-0.35390153527259827,
-0.07032934576272964,
-0.13711637258529663,
0.16300824284553528,
-0.07061221450567245,
0.6264212131500244,
-0.003336869878694415,
0.42547693848609924,
0.7389470338821411,
-0.7007463574409485,
0.3149767518043518,
0.5179641842842102,
-0.38883769512176514,
0.2126414030790329,
-0.9876633286476135,
0.11016383022069931,
0.18841300904750824,
0.24501852691173553,
-1.274343490600586,
-0.15144462883472443,
0.41912388801574707,
-0.6715589165687561,
0.5153307318687439,
-0.33633506298065186,
-0.4083193838596344,
-0.4733083248138428,
-0.25283288955688477,
0.11241510510444641,
0.8338460326194763,
-0.47076383233070374,
0.40560418367385864,
0.47215741872787476,
-0.12116891890764236,
-0.7142688035964966,
-0.8484035730361938,
-0.3256721794605255,
-0.27491408586502075,
-0.8220839500427246,
0.17198194563388824,
-0.36495083570480347,
0.051807355135679245,
-0.0868973657488823,
-0.108229860663414,
0.03960280865430832,
0.2328786998987198,
0.3276485502719879,
0.596966564655304,
-0.10838907957077026,
-0.3736465275287628,
0.31779220700263977,
-0.268723726272583,
0.08563105762004852,
-0.06626587361097336,
0.6325533390045166,
-0.5601678490638733,
-0.0450260229408741,
-0.48169511556625366,
-0.05704890936613083,
0.5727229118347168,
-0.3331497609615326,
0.8107191920280457,
0.7137417197227478,
-0.5334755778312683,
0.384768545627594,
-0.5863221287727356,
-0.2620839476585388,
-0.5150245428085327,
0.3478717505931854,
-0.40803292393684387,
-0.767045259475708,
0.8967936635017395,
0.06742304563522339,
0.515460193157196,
0.561455249786377,
0.8310356140136719,
0.145035520195961,
1.0378799438476562,
0.7027896642684937,
0.03578789532184601,
0.24387769401073456,
-0.5496050715446472,
0.0662870779633522,
-0.7753442525863647,
-0.6011542081832886,
-0.6432307958602905,
-0.19508197903633118,
-0.612223744392395,
-0.010017416439950466,
0.17136479914188385,
0.2661355137825012,
-0.5550665259361267,
0.41638341546058655,
-0.5509490370750427,
-0.033198948949575424,
0.43359896540641785,
0.012293354608118534,
0.11509406566619873,
-0.15417179465293884,
-0.43840405344963074,
0.01432221382856369,
-0.634698212146759,
-0.5369555354118347,
1.049159049987793,
0.6508045792579651,
0.729250967502594,
0.16986045241355896,
0.36987200379371643,
-0.22470895946025848,
0.1498601734638214,
-0.5232155323028564,
0.6168398857116699,
0.0651024580001831,
-0.8933913111686707,
-0.1539444476366043,
-0.45186880230903625,
-1.1885372400283813,
0.06730256974697113,
-0.30599161982536316,
-0.7044305205345154,
0.3878616690635681,
0.13183888792991638,
-0.4636288583278656,
0.16775506734848022,
-0.7109307646751404,
1.0960886478424072,
-0.2986396849155426,
-0.2780781686306,
-0.07027177512645721,
-0.9270011186599731,
0.6315959692001343,
-0.012941911816596985,
0.33980298042297363,
0.009711476042866707,
-0.03852070868015289,
0.8368293046951294,
-0.44136571884155273,
0.9803760051727295,
-0.027306295931339264,
-0.10942777991294861,
0.4173601567745209,
0.2128731906414032,
0.4870649576187134,
0.2182694971561432,
-0.10586774349212646,
0.3032867908477783,
0.15436214208602905,
-0.4563126564025879,
-0.29006141424179077,
0.7581336498260498,
-1.249523401260376,
-0.42537346482276917,
-0.5035197138786316,
-0.23308254778385162,
0.06387710571289062,
0.4419577717781067,
0.3654365837574005,
0.472452849149704,
0.21223808825016022,
0.2672986686229706,
0.7079833149909973,
-0.3276395797729492,
0.3533101975917816,
0.5453004240989685,
-0.4312100112438202,
-0.6039232611656189,
0.6246946454048157,
0.20194898545742035,
0.32659265398979187,
0.08422413468360901,
0.30186527967453003,
-0.49110737442970276,
-0.5267417430877686,
-0.4912049174308777,
0.4751165211200714,
-0.5903022885322571,
-0.18072043359279633,
-0.5805917978286743,
-0.20057976245880127,
-0.47567474842071533,
-0.021826187148690224,
-0.6633237600326538,
-0.3627611994743347,
-0.4315411150455475,
-0.27164193987846375,
0.6544722318649292,
0.4537391662597656,
-0.17109139263629913,
0.11028951406478882,
-0.7157425880432129,
0.17032451927661896,
0.28151005506515503,
0.2944609820842743,
-0.060405466705560684,
-0.7762030363082886,
-0.15351708233356476,
0.24971579015254974,
-0.4432954788208008,
-0.9563836455345154,
0.3204916715621948,
-0.007838510908186436,
0.7957389950752258,
0.3339884877204895,
0.045522451400756836,
0.8250861763954163,
-0.06515347212553024,
0.975988507270813,
0.25611451268196106,
-0.8021089434623718,
0.6391023993492126,
-0.38613349199295044,
0.06832585483789444,
0.38034048676490784,
0.5882952809333801,
-0.20219221711158752,
-0.29485011100769043,
-0.6973546743392944,
-0.8379496932029724,
0.6964659690856934,
0.3455860912799835,
-0.037510890513658524,
0.13036245107650757,
0.6075406670570374,
0.10930750519037247,
0.13885509967803955,
-0.978515625,
-0.6050741672515869,
-0.6863442659378052,
0.011821535415947437,
0.08730504661798477,
-0.31089943647384644,
-0.19911403954029083,
-0.35874682664871216,
0.897999107837677,
0.04312057048082352,
0.45649245381355286,
0.17565397918224335,
0.2666584253311157,
-0.2108267843723297,
-0.045430175960063934,
0.6976749300956726,
0.5248374342918396,
-0.4545309543609619,
-0.11839427053928375,
0.3364785611629486,
-0.580682098865509,
-0.046724870800971985,
0.364433228969574,
-0.3353300094604492,
-0.2148379683494568,
0.04025985673069954,
0.9661768674850464,
0.1597820669412613,
-0.39285147190093994,
0.2472272515296936,
-0.1785963475704193,
-0.3549899756908417,
-0.3520452380180359,
-0.03276862949132919,
0.23529665172100067,
0.3446512818336487,
0.17433010041713715,
0.10697934031486511,
-0.27887406945228577,
-0.7342242002487183,
-0.009110658429563046,
0.1535944938659668,
-0.2633519172668457,
-0.36912497878074646,
0.9516205787658691,
0.1859847456216812,
-0.11239460110664368,
0.6111383438110352,
-0.21015983819961548,
-0.4871708154678345,
0.5668328404426575,
0.6395390033721924,
0.7102452516555786,
-0.3851170539855957,
0.02799030765891075,
0.717712938785553,
0.48331934213638306,
-0.18860548734664917,
0.44575008749961853,
0.45251041650772095,
-0.6085710525512695,
-0.4069563150405884,
-0.5071219205856323,
-0.4341013729572296,
0.49624547362327576,
-0.5706630349159241,
0.5957977175712585,
-0.5018774271011353,
-0.28162798285484314,
-0.26917779445648193,
0.32622233033180237,
-0.38546741008758545,
0.26079174876213074,
0.06516226381063461,
0.8462219834327698,
-0.8052182197570801,
0.8262808918952942,
0.7692078948020935,
-0.5757443904876709,
-1.0710549354553223,
-0.3208296298980713,
0.03094731830060482,
-0.5998580455780029,
0.200872004032135,
0.06085408106446266,
0.0883319154381752,
0.06781481206417084,
-0.5727351307868958,
-0.953822910785675,
1.3488681316375732,
0.4413145184516907,
-0.5502499341964722,
0.2526261508464813,
-0.10301336646080017,
0.5737491250038147,
-0.0786728486418724,
0.5048636198043823,
0.6108574271202087,
0.6474791169166565,
0.16079062223434448,
-0.9496505856513977,
0.3788743317127228,
-0.40999770164489746,
-0.14254043996334076,
0.07320443540811539,
-1.1785943508148193,
0.8456562161445618,
-0.19388537108898163,
-0.04368966072797775,
0.34813258051872253,
0.9013505578041077,
0.7925519943237305,
0.3291594982147217,
0.49960973858833313,
0.7151414752006531,
0.7113056778907776,
-0.2770892381668091,
1.0351239442825317,
-0.3564356565475464,
0.4728906750679016,
0.618852436542511,
0.032124195247888565,
0.767828106880188,
0.06170329824090004,
-0.29245850443840027,
0.6917072534561157,
1.026397943496704,
-0.24925175309181213,
0.6427019238471985,
-0.10420367866754532,
0.1476762443780899,
-0.04942205175757408,
0.23876751959323883,
-0.7063236832618713,
0.07838185876607895,
0.4776453673839569,
-0.0731414258480072,
-0.0450265109539032,
-0.15297304093837738,
0.518078088760376,
-0.2220190316438675,
-0.10032052546739578,
0.4707801342010498,
0.2833406329154968,
-0.6593206524848938,
1.318313717842102,
0.04145318642258644,
0.695590615272522,
-0.8920531868934631,
0.17352773249149323,
-0.384084016084671,
0.24919292330741882,
-0.3645591139793396,
-0.7475155591964722,
0.32174062728881836,
0.03711322322487831,
0.059724945574998856,
0.23132401704788208,
0.7304183840751648,
-0.16909104585647583,
-0.37033841013908386,
0.5674154758453369,
0.08944813162088394,
0.39684975147247314,
0.4057365655899048,
-1.007240891456604,
0.38255465030670166,
0.13643872737884521,
-0.6374954581260681,
0.35011568665504456,
0.39422959089279175,
0.012419597245752811,
0.7222601771354675,
0.7579371333122253,
-0.19659437239170074,
0.33588647842407227,
-0.13604271411895752,
1.0204353332519531,
-0.38647422194480896,
-0.32938748598098755,
-0.735139012336731,
0.6519458889961243,
0.08053452521562576,
-0.5436310768127441,
0.8541674613952637,
0.618797242641449,
0.7458620667457581,
0.17660391330718994,
0.7950931191444397,
-0.2538522779941559,
0.4951167404651642,
-0.43740707635879517,
0.7043499946594238,
-0.5838013887405396,
0.3506992757320404,
-0.24043859541416168,
-1.0233817100524902,
-0.25439944863319397,
0.8304829597473145,
-0.2345518171787262,
0.14043229818344116,
0.5292118787765503,
0.9365843534469604,
-0.05244288221001625,
0.00524381035938859,
0.0416407436132431,
0.7338531613349915,
0.5137897729873657,
0.5238167643547058,
0.6086836457252502,
-0.7079334855079651,
1.0164282321929932,
-0.5898032188415527,
-0.4827283024787903,
-0.33486461639404297,
-1.0238196849822998,
-1.0850868225097656,
-0.4823342561721802,
-0.5246922373771667,
-0.753212034702301,
0.0511566698551178,
0.6594716310501099,
0.6958395838737488,
-0.7873859405517578,
-0.3581579923629761,
-0.17056412994861603,
-0.0027845322620123625,
-0.37138938903808594,
-0.1830548346042633,
0.513681948184967,
-0.02011345699429512,
-0.7703753113746643,
0.329540491104126,
0.0021550138480961323,
0.4438523054122925,
-0.3510364890098572,
-0.3072342872619629,
-0.29464465379714966,
0.10829984396696091,
0.3714855909347534,
0.6254381537437439,
-0.4623774290084839,
-0.30093127489089966,
0.12295622378587723,
-0.09174289554357529,
-0.04890256002545357,
-0.0039418358355760574,
-0.617202877998352,
0.2998799681663513,
0.6194887161254883,
0.35470035672187805,
0.8453496098518372,
-0.20131586492061615,
0.3634152114391327,
-0.3729059398174286,
0.2942768335342407,
-0.09253502637147903,
0.4894787669181824,
0.2356518805027008,
-0.15752188861370087,
0.6791903376579285,
0.37778469920158386,
-0.8310351371765137,
-0.9823235869407654,
0.08720000833272934,
-1.3731443881988525,
-0.12450482696294785,
1.2015790939331055,
-0.29615548253059387,
-0.3473174571990967,
-0.1262817084789276,
-0.3404918313026428,
0.6517267823219299,
-0.4673301577568054,
0.9086729884147644,
0.4580537676811218,
0.06836673617362976,
-0.31081944704055786,
-0.6726016998291016,
0.43932390213012695,
0.3700152039527893,
-0.675095796585083,
-0.19434279203414917,
0.23840495944023132,
0.40402498841285706,
0.35791435837745667,
0.40951669216156006,
-0.4677579402923584,
0.2342444807291031,
-0.12376739084720612,
0.13140030205249786,
-0.16235128045082092,
-0.06541651487350464,
-0.18166567385196686,
-0.26320961117744446,
-0.16000142693519592,
-0.25374338030815125
] |
SCUT-DLVCLab/lilt-roberta-en-base
|
SCUT-DLVCLab
| 2023-08-31T07:59:36Z | 9,478 | 15 |
transformers
|
[
"transformers",
"pytorch",
"safetensors",
"lilt",
"feature-extraction",
"vision",
"arxiv:2202.13669",
"license:mit",
"endpoints_compatible",
"has_space",
"region:us"
] |
feature-extraction
| 2022-09-29T14:06:32Z |
---
license: mit
tags:
- vision
---
# LiLT-RoBERTa (base-sized model)
Language-Independent Layout Transformer - RoBERTa model by stitching a pre-trained RoBERTa (English) and a pre-trained Language-Independent Layout Transformer (LiLT) together. It was introduced in the paper [LiLT: A Simple yet Effective Language-Independent Layout Transformer for Structured Document Understanding](https://arxiv.org/abs/2202.13669) by Wang et al. and first released in [this repository](https://github.com/jpwang/lilt).
Disclaimer: The team releasing LiLT did not write a model card for this model so this model card has been written by the Hugging Face team.
## Model description
The Language-Independent Layout Transformer (LiLT) allows to combine any pre-trained RoBERTa encoder from the hub (hence, in any language) with a lightweight Layout Transformer to have a LayoutLM-like model for any language.
<img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/model_doc/lilt_architecture.jpg" alt="drawing" width="600"/>
## Intended uses & limitations
The model is meant to be fine-tuned on tasks like document image classification, document parsing and document QA. See the [model hub](https://huggingface.co/models?search=lilt) to look for fine-tuned versions on a task that interests you.
### How to use
For code examples, we refer to the [documentation](https://huggingface.co/transformers/main/model_doc/lilt.html).
### BibTeX entry and citation info
```bibtex
@misc{https://doi.org/10.48550/arxiv.2202.13669,
doi = {10.48550/ARXIV.2202.13669},
url = {https://arxiv.org/abs/2202.13669},
author = {Wang, Jiapeng and Jin, Lianwen and Ding, Kai},
keywords = {Computation and Language (cs.CL), FOS: Computer and information sciences, FOS: Computer and information sciences},
title = {LiLT: A Simple yet Effective Language-Independent Layout Transformer for Structured Document Understanding},
publisher = {arXiv},
year = {2022},
copyright = {arXiv.org perpetual, non-exclusive license}
}
```
|
[
-0.39596259593963623,
-0.8163123726844788,
0.3248675763607025,
0.3711335361003876,
-0.07398080825805664,
-0.2479114681482315,
-0.10446889698505402,
-0.3969884216785431,
0.38488247990608215,
0.2482801377773285,
-0.6892600059509277,
-0.32796457409858704,
-0.689954936504364,
-0.08698491007089615,
-0.4858195185661316,
1.4389129877090454,
-0.10564307868480682,
-0.037729810923337936,
-0.2651597559452057,
-0.263812780380249,
-0.1778314709663391,
-0.23311156034469604,
-0.42856404185295105,
-0.37252360582351685,
0.3313526511192322,
0.1280619502067566,
0.8011185526847839,
0.7021282911300659,
0.7073760032653809,
0.4168497323989868,
-0.27423885464668274,
-0.08581863343715668,
-0.19776351749897003,
-0.19625072181224823,
0.06741977483034134,
-0.5405131578445435,
-0.8494833111763,
0.0019520152127370238,
0.6959996223449707,
0.4718584716320038,
0.10060467571020126,
0.2905716300010681,
0.09183080494403839,
0.6203300356864929,
-0.15397609770298004,
0.3610607087612152,
-0.23232924938201904,
0.03026353009045124,
-0.2392432987689972,
0.059025391936302185,
-0.4039117395877838,
-0.4255489706993103,
0.06279201060533524,
-0.4693126678466797,
0.36547431349754333,
-0.03883318975567818,
1.3635542392730713,
0.23298485577106476,
-0.20492145419120789,
-0.26373979449272156,
-0.557715117931366,
0.6678228974342346,
-0.436494916677475,
0.6648122072219849,
0.013081323355436325,
0.21897202730178833,
0.058007605373859406,
-1.003147840499878,
-0.7154996395111084,
-0.23754140734672546,
-0.5256060361862183,
0.29025980830192566,
-0.277213454246521,
0.008088837377727032,
0.6049028038978577,
0.6456011533737183,
-0.8631742596626282,
-0.2680875360965729,
-0.4781724214553833,
-0.1755228042602539,
0.3611179292201996,
-0.1734582632780075,
0.887688159942627,
-0.5582191348075867,
-0.5749984383583069,
-0.21799378097057343,
-0.3821890354156494,
0.06247062236070633,
0.17272575199604034,
0.19825305044651031,
-0.770208477973938,
0.45034390687942505,
0.21608397364616394,
0.5954853296279907,
0.2724817395210266,
-0.42932242155075073,
0.3766137659549713,
-0.14881154894828796,
-0.30511876940727234,
-0.4815954864025116,
1.073220133781433,
-0.06200994551181793,
-0.012275767512619495,
-0.1344258338212967,
-0.25033557415008545,
-0.014091654680669308,
0.21689042448997498,
-0.9068336486816406,
-0.4575781524181366,
0.09556650370359421,
-0.5229532718658447,
-0.16539444029331207,
0.0449003130197525,
-0.5158791542053223,
-0.026414424180984497,
-0.25982844829559326,
0.3938395380973816,
-0.612341582775116,
-0.24552607536315918,
-0.3158183693885803,
-0.016332702711224556,
0.3842252194881439,
0.38144129514694214,
-0.945243775844574,
0.29202693700790405,
0.5436840057373047,
0.9405776858329773,
-0.02569076605141163,
-0.38379907608032227,
-0.4095506966114044,
-0.07856997847557068,
-0.021557513624429703,
0.9264872074127197,
-0.04925113543868065,
-0.42348769307136536,
-0.15944808721542358,
0.16016779839992523,
-0.13932527601718903,
-0.2676093280315399,
0.9554925560951233,
-0.46214646100997925,
0.5376826524734497,
-0.003301548073068261,
-0.3447802662849426,
-0.039473652839660645,
0.37324315309524536,
-0.7676703333854675,
0.8934279084205627,
0.4949708878993988,
-1.0620801448822021,
0.11220014095306396,
-0.7595301270484924,
-0.2856980562210083,
0.09827323257923126,
-0.30008938908576965,
-0.7000414133071899,
-0.1003781408071518,
0.13738831877708435,
0.15135785937309265,
-0.12421771883964539,
-0.05922158807516098,
-0.014375420287251472,
-0.18723155558109283,
0.03818009793758392,
-0.12054099142551422,
1.1807010173797607,
0.17894577980041504,
-0.043812237679958344,
0.4281134009361267,
-0.7306736707687378,
0.08241312950849533,
0.32827028632164,
-0.41558659076690674,
-0.21904116868972778,
-0.43044227361679077,
0.45591479539871216,
0.21472223103046417,
0.47958725690841675,
-0.5126931071281433,
0.5708619952201843,
-0.48531150817871094,
0.2845039963722229,
0.47823596000671387,
-0.3875582218170166,
0.8274487257003784,
-0.46419423818588257,
0.7260222434997559,
-0.3387033939361572,
0.34160640835762024,
-0.3569777309894562,
-0.5769881010055542,
-0.8490694761276245,
-0.4875602424144745,
0.4855289161205292,
0.6741009950637817,
-0.6061856150627136,
0.35797539353370667,
-0.36211633682250977,
-0.5510562062263489,
-0.755782961845398,
0.22972586750984192,
0.5357672572135925,
0.4567195773124695,
0.36102989315986633,
-0.22895951569080353,
-0.5391005873680115,
-0.9692297577857971,
-0.10980147123336792,
-0.20558907091617584,
-0.01473971363157034,
0.14911961555480957,
0.3735600709915161,
-0.3343535363674164,
0.7722445726394653,
-0.47856587171554565,
-0.40011319518089294,
-0.5429431200027466,
0.1757218837738037,
0.25373077392578125,
0.625941812992096,
0.7675064206123352,
-1.0684860944747925,
-0.8063173890113831,
-0.04638580605387688,
-0.7559426426887512,
-0.14739881455898285,
-0.14274081587791443,
-0.3277601897716522,
0.20933841168880463,
0.30253973603248596,
-1.0861586332321167,
0.5436651110649109,
0.6689281463623047,
-0.13633939623832703,
0.5758212208747864,
-0.11546285450458527,
-0.057946838438510895,
-1.3037642240524292,
-0.02381744608283043,
0.0897754579782486,
-0.22262543439865112,
-0.7046656012535095,
0.5901972651481628,
0.4726164638996124,
-0.13099423050880432,
-0.3327963352203369,
0.7381236553192139,
-0.7557579278945923,
0.010415802709758282,
-0.25039827823638916,
0.29733628034591675,
0.2296227663755417,
0.5338798761367798,
-0.042565565556287766,
0.7020066380500793,
0.27692729234695435,
-0.25274401903152466,
0.18030858039855957,
0.7096244096755981,
-0.13231006264686584,
0.6755945086479187,
-0.7486644983291626,
0.21891431510448456,
-0.012725992128252983,
0.3114015758037567,
-0.767029345035553,
-0.24547849595546722,
0.25850874185562134,
-0.5728439688682556,
0.6783818602561951,
-0.5438635349273682,
-0.6502242684364319,
-0.4421009123325348,
-0.267081081867218,
0.2925644516944885,
0.6273096203804016,
-0.5200950503349304,
0.8748782873153687,
0.24355950951576233,
-0.14483456313610077,
-0.30857229232788086,
-0.8918198943138123,
-0.28386053442955017,
-0.16007061302661896,
-1.1074790954589844,
0.6259679794311523,
-0.4388631284236908,
-0.1189294159412384,
-0.058266498148441315,
-0.077620729804039,
-0.16770824790000916,
-0.26139360666275024,
0.3720775544643402,
0.3921562731266022,
-0.2451920211315155,
0.07195204496383667,
-0.09229536354541779,
-0.4254800081253052,
-0.07876081764698029,
-0.06264664232730865,
0.5263917446136475,
-0.3636099100112915,
-0.40245726704597473,
-0.5309929847717285,
0.2955878674983978,
0.4855896830558777,
-0.3708398938179016,
0.6590966582298279,
0.9374192357063293,
-0.363486111164093,
-0.07841832935810089,
-0.4533849358558655,
0.0054391720332205296,
-0.5057289004325867,
0.028909627348184586,
-0.6985341310501099,
-0.7529268860816956,
0.7036717534065247,
0.1470724195241928,
0.04677218943834305,
0.6704230904579163,
0.6355557441711426,
-0.008649121038615704,
0.7521299123764038,
1.2007395029067993,
-0.18238572776317596,
0.7737616896629333,
-0.4220542311668396,
0.34412917494773865,
-0.9787237048149109,
-0.029530609026551247,
-0.5763696432113647,
-0.18169625103473663,
-0.86015385389328,
-0.4199143648147583,
0.4121309518814087,
0.2612628638744354,
-0.08636916428804398,
0.5657394528388977,
-0.7318578362464905,
0.2936074435710907,
0.5711539387702942,
-0.16564249992370605,
0.29973533749580383,
-0.09158281236886978,
0.03421466797590256,
-0.16105927526950836,
-0.43533438444137573,
-0.42589259147644043,
0.6227503418922424,
0.37082257866859436,
0.7566514611244202,
0.4112348258495331,
0.924842894077301,
-0.16595329344272614,
0.3773289918899536,
-0.9307906031608582,
0.3814723491668701,
-0.07891327887773514,
-0.5233097672462463,
-0.15008920431137085,
-0.3163604736328125,
-0.8276931643486023,
0.1910744309425354,
0.01666310243308544,
-0.9237771034240723,
0.019449155777692795,
0.0679788663983345,
-0.14868927001953125,
0.33681151270866394,
-0.8739375472068787,
0.9372634291648865,
-0.11436239629983902,
-0.1419801265001297,
0.21968409419059753,
-0.47833263874053955,
0.5067402124404907,
0.09874754399061203,
0.21202628314495087,
0.18980257213115692,
0.27505770325660706,
0.6499502062797546,
-0.6295565962791443,
0.669955849647522,
-0.08160440623760223,
-0.08743605762720108,
0.32837873697280884,
0.21882516145706177,
0.6316680908203125,
0.12720391154289246,
0.07069040834903717,
0.09623895585536957,
0.1285962462425232,
-0.38579317927360535,
-0.8065612316131592,
0.7879417538642883,
-0.8642593622207642,
-0.5798864960670471,
-0.2863190174102783,
-0.6697580814361572,
0.06531166285276413,
0.42596739530563354,
0.45130521059036255,
0.20602728426456451,
-0.2042294591665268,
0.04666060954332352,
0.6945051550865173,
-0.19441159069538116,
0.133757084608078,
0.4051666855812073,
-0.4652894139289856,
-0.1052308902144432,
0.8183145523071289,
0.08393898606300354,
0.11726851761341095,
0.6174062490463257,
0.30218425393104553,
-0.0019178815418854356,
-0.29337579011917114,
-0.6782639622688293,
0.41221505403518677,
-0.5767711400985718,
-0.25368472933769226,
-0.9583583474159241,
-0.6682329177856445,
-0.47390246391296387,
-0.1854006052017212,
-0.3440167307853699,
-0.5165655612945557,
-0.14476364850997925,
0.03409089148044586,
0.48237621784210205,
0.7072643041610718,
-0.06640603393316269,
0.45015931129455566,
-0.8284478783607483,
0.503180980682373,
0.26323583722114563,
0.4214264750480652,
-0.16143660247325897,
-0.6945019364356995,
-0.2939034402370453,
-0.16637587547302246,
-0.5294255018234253,
-0.8707513213157654,
0.31457608938217163,
-0.05898689106106758,
0.5438147187232971,
0.24427495896816254,
-0.20532551407814026,
0.5832915306091309,
-0.47146958112716675,
0.5963864922523499,
0.18958289921283722,
-0.8881990909576416,
0.7262232899665833,
-0.4691288471221924,
0.3907510042190552,
0.20524488389492035,
0.31701329350471497,
-0.5554015040397644,
-0.1369134932756424,
-0.8775813579559326,
-0.7870875000953674,
0.7874733209609985,
0.3234795928001404,
0.21661560237407684,
0.19755861163139343,
0.20777693390846252,
-0.05691329762339592,
-0.07367955893278122,
-1.0405038595199585,
-0.38749822974205017,
-0.26614177227020264,
-0.28674206137657166,
0.3556431233882904,
-0.40413421392440796,
-0.2044101059436798,
-0.33038878440856934,
0.6102303862571716,
-0.14307346940040588,
0.6333081722259521,
0.06794267892837524,
-0.34679824113845825,
-0.14383572340011597,
0.23266486823558807,
0.5055879950523376,
0.24674507975578308,
-0.2858698070049286,
-0.29931169748306274,
-0.0034857778809964657,
-0.5408092737197876,
-0.21421045064926147,
0.38733187317848206,
-0.349690318107605,
0.09284073114395142,
0.48298880457878113,
0.6881791949272156,
0.1568077802658081,
-0.23306375741958618,
0.6929314136505127,
-0.18830393254756927,
-0.26071178913116455,
-0.424051970243454,
-0.02071790210902691,
0.3504420220851898,
0.33832165598869324,
0.00883497018367052,
0.008201614022254944,
0.1088995561003685,
-0.3619822561740875,
0.14535710215568542,
0.4088684916496277,
-0.3414333760738373,
-0.4695194363594055,
0.65803462266922,
-0.03552384302020073,
-0.5152230858802795,
0.4895157217979431,
-0.4004095792770386,
-0.4809759259223938,
0.5403624773025513,
0.6479510068893433,
0.9225372076034546,
-0.1111110970377922,
0.08486559987068176,
0.3616688847541809,
0.4009511172771454,
0.1962468922138214,
0.3687771260738373,
-0.1885141283273697,
-0.7472403049468994,
-0.21964000165462494,
-0.8579496145248413,
-0.28512945771217346,
0.18038345873355865,
-0.7174705862998962,
0.32022467255592346,
-0.6801734566688538,
-0.08260674774646759,
0.18733906745910645,
0.20251737534999847,
-0.9193693399429321,
0.07996580749750137,
-0.003249695524573326,
1.1681058406829834,
-0.6529608368873596,
1.0247679948806763,
0.9063295722007751,
-0.8324292302131653,
-0.9715256094932556,
0.15266704559326172,
0.3576425313949585,
-0.6743127703666687,
0.673913836479187,
-0.07706587761640549,
-0.017690295353531837,
-0.19369438290596008,
-0.5481997728347778,
-0.9432500004768372,
1.0142054557800293,
0.18725663423538208,
-0.3440594971179962,
-0.17554831504821777,
-0.3007364869117737,
0.6100970506668091,
-0.2905157208442688,
0.4174623191356659,
0.2641385495662689,
0.5279102921485901,
-0.04141639918088913,
-1.0682893991470337,
-0.007045365869998932,
-0.5682140588760376,
0.0551232285797596,
0.2415306270122528,
-1.1105172634124756,
1.0645030736923218,
-0.14744119346141815,
-0.24615700542926788,
0.45238691568374634,
0.867576539516449,
0.15137659013271332,
0.12087862938642502,
0.38969847559928894,
0.5666676163673401,
0.6974713802337646,
-0.23870839178562164,
1.1813395023345947,
-0.39136260747909546,
0.4778926968574524,
1.1873444318771362,
0.09932209551334381,
0.5637769103050232,
0.2506840229034424,
-0.38645613193511963,
0.8880466818809509,
0.20821602642536163,
-0.06524161249399185,
0.2721138000488281,
-0.006517110392451286,
-0.03467255085706711,
0.09999433904886246,
0.04639097675681114,
-0.3615981638431549,
0.3732385039329529,
0.4035852551460266,
-0.4794732332229614,
-0.10580545663833618,
-0.02074826881289482,
0.184529110789299,
0.09106200188398361,
0.0722852274775505,
0.7489186525344849,
0.1845645010471344,
-0.20594260096549988,
0.3592361807823181,
0.13100846111774445,
0.7812637686729431,
-0.702596127986908,
0.07524269074201584,
-0.4206905663013458,
0.12300467491149902,
-0.3950159549713135,
-0.6798163056373596,
0.4002843499183655,
0.040217380970716476,
-0.5645940899848938,
-0.3769740164279938,
0.8755435943603516,
-0.29505687952041626,
-0.6223797798156738,
0.3093130886554718,
0.7311717867851257,
0.24184630811214447,
0.3306276500225067,
-0.945259153842926,
0.25894084572792053,
0.1693502515554428,
-0.5089027285575867,
0.541082501411438,
0.5819488763809204,
-0.20475147664546967,
0.6673014163970947,
0.5777013897895813,
0.0620519258081913,
-0.10191679000854492,
0.2302250862121582,
0.9443934559822083,
-0.5859094262123108,
-0.5338102579116821,
-0.5542168021202087,
0.6875519752502441,
-0.009797259233891964,
-0.21784891188144684,
0.8844957947731018,
0.45668840408325195,
0.8787950277328491,
-0.09006607532501221,
0.8352460861206055,
-0.39807647466659546,
0.5933055281639099,
-0.381622314453125,
0.930923581123352,
-0.6961495876312256,
-0.029339203611016273,
-0.5175187587738037,
-0.8539289236068726,
-0.2655959725379944,
0.9284241199493408,
-0.2699334919452667,
0.3316766321659088,
0.647300660610199,
0.6914631724357605,
-0.3251977860927582,
-0.17276644706726074,
0.2644703984260559,
0.3752082288265228,
0.41669100522994995,
0.2576628029346466,
0.3646787703037262,
-0.6967170238494873,
0.5885080099105835,
-0.4185143709182739,
-0.34725818037986755,
-0.19410043954849243,
-0.6623546481132507,
-0.9008005857467651,
-0.7467160820960999,
-0.3537898659706116,
-0.4110388457775116,
-0.13704177737236023,
0.7003169655799866,
0.7812902331352234,
-0.6455190181732178,
-0.02045990154147148,
0.18379661440849304,
0.305961936712265,
-0.016032744199037552,
-0.29961153864860535,
0.6888956427574158,
-0.1920451521873474,
-0.9422880411148071,
0.21871641278266907,
0.22201836109161377,
0.3478476107120514,
-0.28327035903930664,
-0.09151937812566757,
0.012062781490385532,
-0.09659980237483978,
0.5315977334976196,
0.4627223610877991,
-0.6621806025505066,
-0.14937542378902435,
-0.12321171909570694,
-0.3629126250743866,
0.1842118352651596,
0.5613990426063538,
-0.5572262406349182,
0.22992394864559174,
0.6214007139205933,
0.37164172530174255,
0.5893016457557678,
-0.018819421529769897,
0.3317983150482178,
-0.8293601870536804,
0.4660792946815491,
-0.16295404732227325,
0.6280770897865295,
0.49031510949134827,
-0.4156879484653473,
0.5056577324867249,
0.08982587605714798,
-0.5682329535484314,
-0.6811636686325073,
0.38556814193725586,
-1.2459989786148071,
0.01093240175396204,
0.9220978021621704,
-0.2338227480649948,
-0.46537309885025024,
0.3884223699569702,
-0.3550158143043518,
0.334682822227478,
-0.3295563757419586,
0.6110697388648987,
0.5406691431999207,
-0.1117166206240654,
-0.563430905342102,
-0.6552267074584961,
0.6047091484069824,
0.0527614951133728,
-0.7090970277786255,
-0.2902261018753052,
0.21384768187999725,
0.30805787444114685,
0.7045173048973083,
0.8173121809959412,
-0.1984546184539795,
0.2064531147480011,
0.05295707285404205,
0.47155067324638367,
0.06440211832523346,
-0.2211998999118805,
-0.1868109554052353,
-0.037872109562158585,
0.1282014399766922,
0.0732179656624794
] |
EleutherAI/pythia-1.4b
|
EleutherAI
| 2023-07-09T16:01:57Z | 9,405 | 11 |
transformers
|
[
"transformers",
"pytorch",
"safetensors",
"gpt_neox",
"text-generation",
"causal-lm",
"pythia",
"en",
"dataset:EleutherAI/the_pile",
"arxiv:2304.01373",
"arxiv:2101.00027",
"arxiv:2201.07311",
"license:apache-2.0",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-02-09T14:08:20Z |
---
language:
- en
tags:
- pytorch
- causal-lm
- pythia
license: apache-2.0
datasets:
- EleutherAI/the_pile
---
The *Pythia Scaling Suite* is a collection of models developed to facilitate
interpretability research [(see paper)](https://arxiv.org/pdf/2304.01373.pdf).
It contains two sets of eight models of sizes
70M, 160M, 410M, 1B, 1.4B, 2.8B, 6.9B, and 12B. For each size, there are two
models: one trained on the Pile, and one trained on the Pile after the dataset
has been globally deduplicated. All 8 model sizes are trained on the exact
same data, in the exact same order. We also provide 154 intermediate
checkpoints per model, hosted on Hugging Face as branches.
The Pythia model suite was deliberately designed to promote scientific
research on large language models, especially interpretability research.
Despite not centering downstream performance as a design goal, we find the
models <a href="#evaluations">match or exceed</a> the performance of
similar and same-sized models, such as those in the OPT and GPT-Neo suites.
<details>
<summary style="font-weight:600">Details on previous early release and naming convention.</summary>
Previously, we released an early version of the Pythia suite to the public.
However, we decided to retrain the model suite to address a few hyperparameter
discrepancies. This model card <a href="#changelog">lists the changes</a>;
see appendix B in the Pythia paper for further discussion. We found no
difference in benchmark performance between the two Pythia versions.
The old models are
[still available](https://huggingface.co/models?other=pythia_v0), but we
suggest the retrained suite if you are just starting to use Pythia.<br>
**This is the current release.**
Please note that all models in the *Pythia* suite were renamed in January
2023. For clarity, a <a href="#naming-convention-and-parameter-count">table
comparing the old and new names</a> is provided in this model card, together
with exact parameter counts.
</details>
<br>
# Pythia-1.4B
## Model Details
- Developed by: [EleutherAI](http://eleuther.ai)
- Model type: Transformer-based Language Model
- Language: English
- Learn more: [Pythia's GitHub repository](https://github.com/EleutherAI/pythia)
for training procedure, config files, and details on how to use.
[See paper](https://arxiv.org/pdf/2304.01373.pdf) for more evals and implementation
details.
- Library: [GPT-NeoX](https://github.com/EleutherAI/gpt-neox)
- License: Apache 2.0
- Contact: to ask questions about this model, join the [EleutherAI
Discord](https://discord.gg/zBGx3azzUn), and post them in `#release-discussion`.
Please read the existing *Pythia* documentation before asking about it in the
EleutherAI Discord. For general correspondence: [contact@eleuther.
ai](mailto:[email protected]).
<figure>
| Pythia model | Non-Embedding Params | Layers | Model Dim | Heads | Batch Size | Learning Rate | Equivalent Models |
| -----------: | -------------------: | :----: | :-------: | :---: | :--------: | :-------------------: | :--------------------: |
| 70M | 18,915,328 | 6 | 512 | 8 | 2M | 1.0 x 10<sup>-3</sup> | — |
| 160M | 85,056,000 | 12 | 768 | 12 | 2M | 6.0 x 10<sup>-4</sup> | GPT-Neo 125M, OPT-125M |
| 410M | 302,311,424 | 24 | 1024 | 16 | 2M | 3.0 x 10<sup>-4</sup> | OPT-350M |
| 1.0B | 805,736,448 | 16 | 2048 | 8 | 2M | 3.0 x 10<sup>-4</sup> | — |
| 1.4B | 1,208,602,624 | 24 | 2048 | 16 | 2M | 2.0 x 10<sup>-4</sup> | GPT-Neo 1.3B, OPT-1.3B |
| 2.8B | 2,517,652,480 | 32 | 2560 | 32 | 2M | 1.6 x 10<sup>-4</sup> | GPT-Neo 2.7B, OPT-2.7B |
| 6.9B | 6,444,163,072 | 32 | 4096 | 32 | 2M | 1.2 x 10<sup>-4</sup> | OPT-6.7B |
| 12B | 11,327,027,200 | 36 | 5120 | 40 | 2M | 1.2 x 10<sup>-4</sup> | — |
<figcaption>Engineering details for the <i>Pythia Suite</i>. Deduped and
non-deduped models of a given size have the same hyperparameters. “Equivalent”
models have <b>exactly</b> the same architecture, and the same number of
non-embedding parameters.</figcaption>
</figure>
## Uses and Limitations
### Intended Use
The primary intended use of Pythia is research on the behavior, functionality,
and limitations of large language models. This suite is intended to provide
a controlled setting for performing scientific experiments. We also provide
154 checkpoints per model: initial `step0`, 10 log-spaced checkpoints
`step{1,2,4...512}`, and 143 evenly-spaced checkpoints from `step1000` to
`step143000`. These checkpoints are hosted on Hugging Face as branches. Note
that branch `143000` corresponds exactly to the model checkpoint on the `main`
branch of each model.
You may also further fine-tune and adapt Pythia-1.4B for deployment,
as long as your use is in accordance with the Apache 2.0 license. Pythia
models work with the Hugging Face [Transformers
Library](https://huggingface.co/docs/transformers/index). If you decide to use
pre-trained Pythia-1.4B as a basis for your fine-tuned model, please
conduct your own risk and bias assessment.
### Out-of-scope use
The Pythia Suite is **not** intended for deployment. It is not a in itself
a product and cannot be used for human-facing interactions. For example,
the model may generate harmful or offensive text. Please evaluate the risks
associated with your particular use case.
Pythia models are English-language only, and are not suitable for translation
or generating text in other languages.
Pythia-1.4B has not been fine-tuned for downstream contexts in which
language models are commonly deployed, such as writing genre prose,
or commercial chatbots. This means Pythia-1.4B will **not**
respond to a given prompt the way a product like ChatGPT does. This is because,
unlike this model, ChatGPT was fine-tuned using methods such as Reinforcement
Learning from Human Feedback (RLHF) to better “follow” human instructions.
### Limitations and biases
The core functionality of a large language model is to take a string of text
and predict the next token. The token used by the model need not produce the
most “accurate” text. Never rely on Pythia-1.4B to produce factually accurate
output.
This model was trained on [the Pile](https://pile.eleuther.ai/), a dataset
known to contain profanity and texts that are lewd or otherwise offensive.
See [Section 6 of the Pile paper](https://arxiv.org/abs/2101.00027) for a
discussion of documented biases with regards to gender, religion, and race.
Pythia-1.4B may produce socially unacceptable or undesirable text, *even if*
the prompt itself does not include anything explicitly offensive.
If you plan on using text generated through, for example, the Hosted Inference
API, we recommend having a human curate the outputs of this language model
before presenting it to other people. Please inform your audience that the
text was generated by Pythia-1.4B.
### Quickstart
Pythia models can be loaded and used via the following code, demonstrated here
for the third `pythia-70m-deduped` checkpoint:
```python
from transformers import GPTNeoXForCausalLM, AutoTokenizer
model = GPTNeoXForCausalLM.from_pretrained(
"EleutherAI/pythia-70m-deduped",
revision="step3000",
cache_dir="./pythia-70m-deduped/step3000",
)
tokenizer = AutoTokenizer.from_pretrained(
"EleutherAI/pythia-70m-deduped",
revision="step3000",
cache_dir="./pythia-70m-deduped/step3000",
)
inputs = tokenizer("Hello, I am", return_tensors="pt")
tokens = model.generate(**inputs)
tokenizer.decode(tokens[0])
```
Revision/branch `step143000` corresponds exactly to the model checkpoint on
the `main` branch of each model.<br>
For more information on how to use all Pythia models, see [documentation on
GitHub](https://github.com/EleutherAI/pythia).
## Training
### Training data
[The Pile](https://pile.eleuther.ai/) is a 825GiB general-purpose dataset in
English. It was created by EleutherAI specifically for training large language
models. It contains texts from 22 diverse sources, roughly broken down into
five categories: academic writing (e.g. arXiv), internet (e.g. CommonCrawl),
prose (e.g. Project Gutenberg), dialogue (e.g. YouTube subtitles), and
miscellaneous (e.g. GitHub, Enron Emails). See [the Pile
paper](https://arxiv.org/abs/2101.00027) for a breakdown of all data sources,
methodology, and a discussion of ethical implications. Consult [the
datasheet](https://arxiv.org/abs/2201.07311) for more detailed documentation
about the Pile and its component datasets. The Pile can be downloaded from
the [official website](https://pile.eleuther.ai/), or from a [community
mirror](https://the-eye.eu/public/AI/pile/).<br>
The Pile was **not** deduplicated before being used to train Pythia-1.4B.
### Training procedure
All models were trained on the exact same data, in the exact same order. Each
model saw 299,892,736,000 tokens during training, and 143 checkpoints for each
model are saved every 2,097,152,000 tokens, spaced evenly throughout training,
from `step1000` to `step143000` (which is the same as `main`). In addition, we
also provide frequent early checkpoints: `step0` and `step{1,2,4...512}`.
This corresponds to training for just under 1 epoch on the Pile for
non-deduplicated models, and about 1.5 epochs on the deduplicated Pile.
All *Pythia* models trained for 143000 steps at a batch size
of 2M (2,097,152 tokens).<br>
See [GitHub](https://github.com/EleutherAI/pythia) for more details on training
procedure, including [how to reproduce
it](https://github.com/EleutherAI/pythia/blob/main/README.md#reproducing-training).<br>
Pythia uses the same tokenizer as [GPT-NeoX-
20B](https://huggingface.co/EleutherAI/gpt-neox-20b).
## Evaluations
All 16 *Pythia* models were evaluated using the [LM Evaluation
Harness](https://github.com/EleutherAI/lm-evaluation-harness). You can access
the results by model and step at `results/json/*` in the [GitHub
repository](https://github.com/EleutherAI/pythia/tree/main/results/json/).<br>
Expand the sections below to see plots of evaluation results for all
Pythia and Pythia-deduped models compared with OPT and BLOOM.
<details>
<summary>LAMBADA – OpenAI</summary>
<img src="/EleutherAI/pythia-12b/resolve/main/eval_plots/lambada_openai_v1.png" style="width:auto"/>
</details>
<details>
<summary>Physical Interaction: Question Answering (PIQA)</summary>
<img src="/EleutherAI/pythia-12b/resolve/main/eval_plots/piqa_v1.png" style="width:auto"/>
</details>
<details>
<summary>WinoGrande</summary>
<img src="/EleutherAI/pythia-12b/resolve/main/eval_plots/winogrande_v1.png" style="width:auto"/>
</details>
<details>
<summary>AI2 Reasoning Challenge—Easy Set</summary>
<img src="/EleutherAI/pythia-12b/resolve/main/eval_plots/arc_easy_v1.png" style="width:auto"/>
</details>
<details>
<summary>SciQ</summary>
<img src="/EleutherAI/pythia-12b/resolve/main/eval_plots/sciq_v1.png" style="width:auto"/>
</details>
## Changelog
This section compares differences between previously released
[Pythia v0](https://huggingface.co/models?other=pythia_v0) and the current
models. See Appendix B of the Pythia paper for further discussion of these
changes and the motivation behind them. We found that retraining Pythia had no
impact on benchmark performance.
- All model sizes are now trained with uniform batch size of 2M tokens.
Previously, the models of size 160M, 410M, and 1.4B parameters were trained
with batch sizes of 4M tokens.
- We added checkpoints at initialization (step 0) and steps {1,2,4,8,16,32,64,
128,256,512} in addition to every 1000 training steps.
- Flash Attention was used in the new retrained suite.
- We remedied a minor inconsistency that existed in the original suite: all
models of size 2.8B parameters or smaller had a learning rate (LR) schedule
which decayed to a minimum LR of 10% the starting LR rate, but the 6.9B and
12B models all used an LR schedule which decayed to a minimum LR of 0. In
the redone training runs, we rectified this inconsistency: all models now were
trained with LR decaying to a minimum of 0.1× their maximum LR.
### Naming convention and parameter count
*Pythia* models were renamed in January 2023. It is possible that the old
naming convention still persists in some documentation by accident. The
current naming convention (70M, 160M, etc.) is based on total parameter count.
<figure style="width:32em">
| current Pythia suffix | old suffix | total params | non-embedding params |
| --------------------: | ---------: | -------------: | -------------------: |
| 70M | 19M | 70,426,624 | 18,915,328 |
| 160M | 125M | 162,322,944 | 85,056,000 |
| 410M | 350M | 405,334,016 | 302,311,424 |
| 1B | 800M | 1,011,781,632 | 805,736,448 |
| 1.4B | 1.3B | 1,414,647,808 | 1,208,602,624 |
| 2.8B | 2.7B | 2,775,208,960 | 2,517,652,480 |
| 6.9B | 6.7B | 6,857,302,016 | 6,444,163,072 |
| 12B | 13B | 11,846,072,320 | 11,327,027,200 |
</figure>
|
[
-0.33342695236206055,
-0.8073995113372803,
0.3355892300605774,
0.06823927164077759,
-0.23666343092918396,
-0.20623166859149933,
-0.22334428131580353,
-0.46001049876213074,
0.21935369074344635,
0.15882201492786407,
-0.3727017045021057,
-0.2949962019920349,
-0.4261834919452667,
-0.05758817493915558,
-0.4732317626476288,
1.1642398834228516,
-0.13277985155582428,
-0.15492752194404602,
0.10448326170444489,
-0.0862671360373497,
-0.04394993558526039,
-0.5528753995895386,
-0.43814265727996826,
-0.3996320068836212,
0.6658192873001099,
0.16964858770370483,
0.8795282244682312,
0.5767666697502136,
0.16520152986049652,
0.2894952893257141,
-0.35171714425086975,
-0.06360144168138504,
-0.1639273464679718,
-0.09026408940553665,
-0.0045663658529520035,
-0.269859254360199,
-0.7209441661834717,
0.03103429637849331,
0.6759316325187683,
0.651094913482666,
-0.19218330085277557,
0.25987860560417175,
-0.0184254702180624,
0.35233253240585327,
-0.5232967734336853,
0.016241639852523804,
-0.3121919631958008,
-0.17071719467639923,
-0.0983482077717781,
0.13287338614463806,
-0.3803447484970093,
-0.3502156436443329,
0.47683537006378174,
-0.6858543753623962,
0.263410359621048,
0.10330082476139069,
1.2185108661651611,
-0.11380164325237274,
-0.4154450297355652,
-0.06578927487134933,
-0.697152316570282,
0.6821879148483276,
-0.730420708656311,
0.3409414291381836,
0.2827043831348419,
0.15929970145225525,
-0.033312633633613586,
-0.9142107963562012,
-0.5497936606407166,
-0.2261751890182495,
-0.13067106902599335,
-0.023051489144563675,
-0.6192293763160706,
0.02914673462510109,
0.5060993432998657,
0.637830376625061,
-0.8385913372039795,
-0.039006307721138,
-0.3810299336910248,
-0.3548470139503479,
0.34329989552497864,
0.04613199830055237,
0.45962095260620117,
-0.30036965012550354,
0.010102275758981705,
-0.3867318630218506,
-0.6726161241531372,
-0.23234941065311432,
0.5701000690460205,
0.0799652487039566,
-0.3759360611438751,
0.5010379552841187,
-0.3707224726676941,
0.5669884085655212,
-0.073928602039814,
0.251336008310318,
0.4430042505264282,
-0.2110828459262848,
-0.5020514130592346,
-0.10654747486114502,
0.9497925043106079,
0.1282644271850586,
0.22411715984344482,
-0.016587648540735245,
-0.03523378074169159,
0.07197441905736923,
0.05330498516559601,
-1.1377465724945068,
-0.8064826726913452,
0.2564639449119568,
-0.38657593727111816,
-0.4323517978191376,
-0.17385752499103546,
-0.9465591311454773,
-0.1920878142118454,
-0.18348385393619537,
0.5710620284080505,
-0.5192452073097229,
-0.7284951210021973,
-0.15718956291675568,
0.01498767826706171,
0.2242749035358429,
0.3683502674102783,
-0.9692887663841248,
0.42593851685523987,
0.4417227804660797,
1.0332159996032715,
0.2242484837770462,
-0.584662675857544,
-0.19590486586093903,
-0.28498604893684387,
-0.11772439628839493,
0.3658020496368408,
-0.11847111582756042,
-0.18040606379508972,
-0.1111978217959404,
0.15585477650165558,
-0.11448714882135391,
-0.3455430567264557,
0.40544572472572327,
-0.3992757499217987,
0.2724025845527649,
-0.27972412109375,
-0.4452035427093506,
-0.37083590030670166,
0.09501206874847412,
-0.6247245669364929,
0.8510075211524963,
0.23882164061069489,
-0.989125669002533,
0.23138806223869324,
-0.22895744442939758,
-0.06579191982746124,
-0.054272159934043884,
0.18665353953838348,
-0.7023926377296448,
0.027737749740481377,
0.36955443024635315,
0.05396275222301483,
-0.383958637714386,
0.18660041689872742,
-0.2573755979537964,
-0.4262896478176117,
0.18429352343082428,
-0.5273860692977905,
0.9232491850852966,
0.194821298122406,
-0.6460729837417603,
0.2804059684276581,
-0.5785814523696899,
0.2292688935995102,
0.256273090839386,
-0.35274046659469604,
0.054269514977931976,
-0.18469780683517456,
0.3853274881839752,
0.20459690690040588,
0.1740267425775528,
-0.3709542155265808,
0.2874942421913147,
-0.5098947286605835,
0.7458125948905945,
0.7469584941864014,
-0.06371988356113434,
0.47524264454841614,
-0.43616998195648193,
0.4736986756324768,
0.03694034367799759,
0.2066996842622757,
-0.07897846400737762,
-0.638740062713623,
-0.9928842186927795,
-0.28413230180740356,
0.38207876682281494,
0.29931649565696716,
-0.47569596767425537,
0.414020836353302,
-0.24657779932022095,
-0.8769466876983643,
-0.19325941801071167,
-0.0876724123954773,
0.42266136407852173,
0.29356807470321655,
0.4249931275844574,
-0.16446277499198914,
-0.5461447834968567,
-0.8966822624206543,
-0.22369618713855743,
-0.4390966594219208,
0.14227838814258575,
0.18576602637767792,
0.9433667659759521,
-0.10216539353132248,
0.5930796265602112,
-0.34755247831344604,
0.26151320338249207,
-0.35918116569519043,
0.1736646145582199,
0.452416330575943,
0.6128442883491516,
0.40350809693336487,
-0.5625221133232117,
-0.3873516619205475,
0.03024611622095108,
-0.593755841255188,
0.09345521777868271,
0.037465449422597885,
-0.3161056935787201,
0.30858051776885986,
0.06258440762758255,
-1.0017460584640503,
0.46940210461616516,
0.6489854454994202,
-0.546920895576477,
0.8170217275619507,
-0.3276385962963104,
-0.013604817911982536,
-1.0615054368972778,
0.2602440416812897,
0.15132439136505127,
-0.23714905977249146,
-0.6244122982025146,
0.0929715484380722,
0.18593798577785492,
-0.20189838111400604,
-0.4149834215641022,
0.6068907380104065,
-0.5341641306877136,
-0.15821436047554016,
-0.20438620448112488,
0.0641653761267662,
-0.036462314426898956,
0.6447155475616455,
0.14329998195171356,
0.579149603843689,
0.8172756433486938,
-0.7726280093193054,
0.4187301695346832,
0.22409531474113464,
-0.26081037521362305,
0.37364640831947327,
-0.8994302153587341,
0.17839080095291138,
0.07482165098190308,
0.42958998680114746,
-0.572669506072998,
-0.37027251720428467,
0.5385127067565918,
-0.5927240252494812,
0.16171158850193024,
-0.4178841710090637,
-0.5413783192634583,
-0.4310336112976074,
-0.1720856875181198,
0.6143761277198792,
0.7794245481491089,
-0.6230156421661377,
0.6951013207435608,
0.04944029077887535,
0.12329939007759094,
-0.38056015968322754,
-0.5595363974571228,
-0.264482319355011,
-0.5287556052207947,
-0.6717689037322998,
0.38463762402534485,
0.1632269322872162,
-0.17375193536281586,
0.01671084761619568,
-0.01238449476659298,
0.10103989392518997,
-0.06455819308757782,
0.32391610741615295,
0.34301504492759705,
-0.043413762003183365,
0.012681873515248299,
-0.138851135969162,
-0.13622762262821198,
-0.011352569796144962,
-0.5202617049217224,
0.949415385723114,
-0.2948966920375824,
-0.19402967393398285,
-0.8228330016136169,
-0.0010110042057931423,
0.8997635841369629,
-0.42993268370628357,
0.8945910930633545,
0.6151240468025208,
-0.7083900570869446,
0.14994099736213684,
-0.37454161047935486,
-0.2941383123397827,
-0.4429493844509125,
0.6697701215744019,
-0.2619451582431793,
-0.37174490094184875,
0.6317757964134216,
0.2829487919807434,
0.2974391579627991,
0.5662252306938171,
0.7285733819007874,
0.21168655157089233,
1.2065967321395874,
0.47675850987434387,
-0.17030289769172668,
0.6476032137870789,
-0.5181806683540344,
0.27129077911376953,
-1.1089270114898682,
-0.17797397077083588,
-0.515667736530304,
-0.24399413168430328,
-0.9643135666847229,
-0.2863510251045227,
0.3356870412826538,
0.22567814588546753,
-0.7543320059776306,
0.5688381791114807,
-0.5613372325897217,
0.06308852881193161,
0.6574292182922363,
0.2629733383655548,
0.1708497256040573,
0.21397212147712708,
0.06741417199373245,
-0.07284683734178543,
-0.6830853223800659,
-0.3393004238605499,
1.25933039188385,
0.5148991346359253,
0.5942209362983704,
0.3000679612159729,
0.7352551221847534,
-0.15692158043384552,
0.26343053579330444,
-0.698296844959259,
0.41313526034355164,
0.3515840172767639,
-0.7302981615066528,
-0.21118195354938507,
-0.7748743891716003,
-0.950562059879303,
0.5042346119880676,
0.0660867989063263,
-1.136884331703186,
0.2327573299407959,
0.23013515770435333,
-0.3944896161556244,
0.4764519929885864,
-0.641448974609375,
1.012572169303894,
-0.23203541338443756,
-0.4910714328289032,
-0.3441990911960602,
-0.30941951274871826,
0.23862816393375397,
0.35170266032218933,
0.12493579834699631,
0.10263951867818832,
0.3053530752658844,
1.0023812055587769,
-0.7013044953346252,
0.6605175733566284,
-0.12479182332754135,
0.15614786744117737,
0.3393614888191223,
0.27906501293182373,
0.680528998374939,
0.1365564912557602,
0.12469731271266937,
-0.042996201664209366,
0.17376947402954102,
-0.5773184895515442,
-0.40128156542778015,
0.9198210835456848,
-1.1272984743118286,
-0.3766905665397644,
-0.8040506839752197,
-0.5893407464027405,
0.10817863792181015,
0.19547344744205475,
0.434279203414917,
0.6585739850997925,
-0.03783150389790535,
-0.007859772071242332,
0.598120391368866,
-0.5136651396751404,
0.35090371966362,
0.19835057854652405,
-0.5118541717529297,
-0.5204334259033203,
1.0176125764846802,
0.027920261025428772,
0.34449538588523865,
0.005794529337435961,
0.22381578385829926,
-0.3926885426044464,
-0.45734840631484985,
-0.6050084829330444,
0.5571149587631226,
-0.7389501929283142,
0.012187217362225056,
-0.7207767367362976,
-0.03937762603163719,
-0.453592449426651,
0.09794439375400543,
-0.41864532232284546,
-0.3740038573741913,
-0.23817557096481323,
-0.03097211755812168,
0.5884935259819031,
0.48964330554008484,
0.10786506533622742,
0.35021689534187317,
-0.5424415469169617,
-0.05863885208964348,
0.23025527596473694,
0.10228512436151505,
0.1174875795841217,
-0.9106978178024292,
-0.10595503449440002,
0.12261747568845749,
-0.44044649600982666,
-1.1585094928741455,
0.5190240144729614,
-0.047527823597192764,
0.36430931091308594,
0.07733770459890366,
-0.2439834177494049,
0.6050540804862976,
-0.09033787995576859,
0.677368700504303,
0.16822697222232819,
-1.0323671102523804,
0.5614746809005737,
-0.5131996273994446,
0.3066618740558624,
0.3568049371242523,
0.3585869073867798,
-0.7217840552330017,
-0.08805844932794571,
-1.0151078701019287,
-1.089763879776001,
0.7526939511299133,
0.5135858058929443,
0.177740216255188,
0.1144769936800003,
0.41358816623687744,
-0.4642143249511719,
0.15751700103282928,
-1.0536047220230103,
-0.3052498698234558,
-0.2684027850627899,
-0.082402803003788,
0.16696809232234955,
-0.02011111006140709,
0.056587472558021545,
-0.5733251571655273,
1.0303544998168945,
0.05165129527449608,
0.35579103231430054,
0.2938724160194397,
-0.379576176404953,
-0.11534330248832703,
-0.05052415654063225,
0.1576845496892929,
0.7761861085891724,
-0.13956159353256226,
0.0382198728621006,
0.2271193414926529,
-0.5521959066390991,
0.03160800412297249,
0.16964636743068695,
-0.3770756721496582,
-0.06422694027423859,
0.19361497461795807,
0.8848875761032104,
0.14982151985168457,
-0.4023951292037964,
0.24028648436069489,
-0.05229963734745979,
-0.07547567784786224,
-0.30369827151298523,
-0.18496419489383698,
0.1760600507259369,
0.19277243316173553,
-0.029197197407484055,
-0.17474013566970825,
-0.014933103695511818,
-0.8918691277503967,
0.05643993988633156,
0.1953526884317398,
-0.1412239521741867,
-0.42170822620391846,
0.5918636918067932,
0.03662841022014618,
-0.20265276730060577,
1.1420795917510986,
-0.25824499130249023,
-0.6921740174293518,
0.7777041792869568,
0.508346676826477,
0.7382047772407532,
-0.19948674738407135,
0.3636055588722229,
0.9116910099983215,
0.3303890824317932,
-0.19575287401676178,
0.06470152735710144,
0.09736613929271698,
-0.5295224785804749,
-0.10831545293331146,
-0.8200163841247559,
-0.24638880789279938,
0.23871104419231415,
-0.5940554141998291,
0.4362502098083496,
-0.6497365832328796,
-0.09436461329460144,
-0.03142695873975754,
0.23192161321640015,
-0.5946811437606812,
0.3064005672931671,
0.162754625082016,
0.7232094407081604,
-0.9325352311134338,
0.8246999979019165,
0.6573556065559387,
-0.7492530345916748,
-1.1178616285324097,
0.030726728960871696,
0.0320560447871685,
-0.4387305974960327,
0.14924128353595734,
0.21285350620746613,
0.22267793118953705,
0.17635519802570343,
-0.3091684579849243,
-0.8992802500724792,
1.3163796663284302,
0.23543088138103485,
-0.6622925400733948,
-0.2770015597343445,
-0.13262976706027985,
0.5515739321708679,
0.053746502846479416,
0.7255250215530396,
0.7249970436096191,
0.42217499017715454,
0.0814189538359642,
-1.081580400466919,
0.36470848321914673,
-0.35500478744506836,
-0.06950248777866364,
0.23641394078731537,
-0.6783162951469421,
1.3154723644256592,
-0.0827159583568573,
-0.03251077979803085,
0.4268167316913605,
0.6091472506523132,
0.41961565613746643,
-0.11376392841339111,
0.3525519371032715,
0.7912486791610718,
0.901574432849884,
-0.38055652379989624,
1.2828185558319092,
-0.30636492371559143,
0.7816118597984314,
0.8705478310585022,
0.2037881463766098,
0.5213934183120728,
0.4120344817638397,
-0.39412200450897217,
0.5311153531074524,
0.8598482608795166,
-0.07400619983673096,
0.187946617603302,
0.25530990958213806,
-0.29058507084846497,
-0.2656884789466858,
0.119997538626194,
-0.6035226583480835,
0.17881622910499573,
0.14929798245429993,
-0.5649757385253906,
-0.20891058444976807,
-0.3423886001110077,
0.3587617576122284,
-0.4225628674030304,
-0.2343330979347229,
0.25933903455734253,
0.10219058394432068,
-0.6557341814041138,
0.6241129636764526,
0.24564586579799652,
0.5707326531410217,
-0.4661516845226288,
0.1592952013015747,
-0.15541769564151764,
0.3069075345993042,
-0.3633110821247101,
-0.41372260451316833,
0.07528109848499298,
-0.0006314042839221656,
0.07760567218065262,
0.14286382496356964,
0.4176996052265167,
-0.1363358199596405,
-0.576889157295227,
0.19188101589679718,
0.5016387701034546,
0.268204927444458,
-0.4341300427913666,
-0.6972928047180176,
0.09807531535625458,
-0.16854038834571838,
-0.5360272526741028,
0.43667951226234436,
0.2646775543689728,
-0.12752008438110352,
0.5975182056427002,
0.6560196876525879,
0.04020742326974869,
0.014218324795365334,
0.15413640439510345,
0.9943681955337524,
-0.45574018359184265,
-0.49579060077667236,
-0.9214404225349426,
0.49180328845977783,
0.0036983878817409277,
-0.6858487725257874,
0.8792943358421326,
0.5393139123916626,
0.7075384855270386,
0.2782996594905853,
0.6098619103431702,
-0.44959205389022827,
-0.016559027135372162,
-0.291941374540329,
0.6711548566818237,
-0.4985877275466919,
0.03529844805598259,
-0.514443576335907,
-1.1564546823501587,
-0.06920446455478668,
0.9661076068878174,
-0.525119960308075,
0.4156856834888458,
0.8205360770225525,
0.8171160817146301,
-0.09166886657476425,
0.11000081896781921,
0.06189849600195885,
0.31040534377098083,
0.5260030627250671,
0.9304452538490295,
0.8988746404647827,
-0.7105709314346313,
0.546914279460907,
-0.5125921964645386,
-0.2739194631576538,
-0.14252932369709015,
-0.4934258759021759,
-0.8602768182754517,
-0.4701915979385376,
-0.5072869062423706,
-0.7670363187789917,
0.00938399974256754,
0.9167416095733643,
0.7684122323989868,
-0.624467670917511,
-0.1539270281791687,
-0.538306713104248,
0.04181380569934845,
-0.25804704427719116,
-0.23191943764686584,
0.43160736560821533,
0.12118260562419891,
-0.9568973779678345,
-0.0418739840388298,
-0.15493379533290863,
0.11467313021421432,
-0.439920037984848,
-0.3132311701774597,
-0.1880093812942505,
-0.10617606341838837,
0.06018102169036865,
0.33828482031822205,
-0.5312512516975403,
-0.26760557293891907,
0.01667965203523636,
0.07176126539707184,
0.006506213452666998,
0.7174583673477173,
-0.5757797360420227,
0.13239039480686188,
0.6064022779464722,
0.11759857833385468,
0.8272203207015991,
-0.2821851670742035,
0.41786664724349976,
-0.27348530292510986,
0.34131547808647156,
0.27303996682167053,
0.6492316126823425,
0.3435504734516144,
-0.2613053023815155,
0.16675780713558197,
0.3978640139102936,
-0.7488911151885986,
-0.8731236457824707,
0.3532644510269165,
-0.7156325578689575,
-0.07624014467000961,
1.2660678625106812,
-0.28253304958343506,
-0.4107089936733246,
0.06831878423690796,
-0.19411151111125946,
0.5364660024642944,
-0.29249054193496704,
0.6588926911354065,
0.6449209451675415,
0.07125963270664215,
-0.22125300765037537,
-0.6625260710716248,
0.3741694986820221,
0.6801485419273376,
-0.8251567482948303,
0.37336260080337524,
0.6013734936714172,
0.6113099455833435,
0.2544117867946625,
0.6033419370651245,
-0.29668623208999634,
0.6237715482711792,
0.09800921380519867,
0.08579178154468536,
0.028800027444958687,
-0.4777378737926483,
-0.44522225856781006,
-0.13621239364147186,
0.21832990646362305,
0.03377300128340721
] |
lmsys/vicuna-13b-v1.1
|
lmsys
| 2023-08-01T18:26:15Z | 9,403 | 96 |
transformers
|
[
"transformers",
"pytorch",
"llama",
"text-generation",
"arxiv:2302.13971",
"arxiv:2306.05685",
"has_space",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-04-12T21:23:50Z |
---
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
] |
facebook/rag-sequence-nq
|
facebook
| 2021-03-12T11:04:28Z | 9,402 | 16 |
transformers
|
[
"transformers",
"pytorch",
"tf",
"rag",
"en",
"dataset:wiki_dpr",
"arxiv:2005.11401",
"license:apache-2.0",
"endpoints_compatible",
"region:us"
] | null | 2022-03-02T23:29:05Z |
---
language: en
license: apache-2.0
datasets:
- wiki_dpr
thumbnail: https://huggingface.co/front/thumbnails/facebook.png
---
## RAG
This is the RAG-Sequence Model of the the paper [Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks](https://arxiv.org/pdf/2005.11401.pdf)
by Patrick Lewis, Ethan Perez, Aleksandara Piktus et al.
The model is a *uncased* model, which means that capital letters are simply converted to lower-case letters.
The model consits of a *question_encoder*, *retriever* and a *generator*. The retriever extracts relevant passages from the *wiki_dpr* `train` datasets, which is linked above.
The question_encoder and retriever are based on `facebook/dpr-question_encoder-single-nq-base` and `facebook/bart-large`, which were jointly finetuned on
on the *wiki_dpr* QA dataset in an end-to-end fashion.
## Usage:
**Note**: In the usage example below only the *dummy* retriever of *wiki_dpr* is used because the complete *lecagy* index requires over 75 GB of RAM.
The model can generate answers to any factoid question as follows:
```python
from transformers import RagTokenizer, RagRetriever, RagSequenceForGeneration
tokenizer = RagTokenizer.from_pretrained("facebook/rag-sequence-nq")
retriever = RagRetriever.from_pretrained("facebook/rag-sequence-nq", index_name="exact", use_dummy_dataset=True)
model = RagSequenceForGeneration.from_pretrained("facebook/rag-sequence-nq", retriever=retriever)
input_dict = tokenizer.prepare_seq2seq_batch("how many countries are in europe", return_tensors="pt")
generated = model.generate(input_ids=input_dict["input_ids"])
print(tokenizer.batch_decode(generated, skip_special_tokens=True)[0])
# should give 54 => google says either 44 or 51
```
|
[
-0.3758600950241089,
-0.5492427945137024,
0.21763645112514496,
0.049075860530138016,
-0.23409856855869293,
0.08181589096784592,
-0.04444083943963051,
-0.11338087916374207,
0.21495305001735687,
0.4799952208995819,
-0.5069273114204407,
-0.04307403042912483,
-0.49194109439849854,
0.2407756745815277,
-0.6430286169052124,
1.2958447933197021,
0.22734439373016357,
0.03459708392620087,
-0.09272050112485886,
0.07307352870702744,
-0.11275926232337952,
-0.47446945309638977,
-0.6497737765312195,
-0.025272810831665993,
0.4862903952598572,
0.33604151010513306,
0.46230095624923706,
0.3321346044540405,
0.6350741982460022,
0.3489849865436554,
-0.3823528289794922,
0.37485694885253906,
-0.6920362710952759,
-0.02196686342358589,
-0.04095451906323433,
-0.3435361981391907,
-0.5088176131248474,
-0.04009649530053139,
0.6952863335609436,
0.6035878658294678,
-0.08032397925853729,
0.6074778437614441,
-0.056203000247478485,
0.8242542147636414,
-0.5499350428581238,
-0.18510520458221436,
-0.7384629845619202,
-0.10650231689214706,
-0.07370249181985855,
-0.09852886199951172,
-0.46961280703544617,
-0.24038060009479523,
-0.1770286113023758,
-0.5177831053733826,
0.5823910236358643,
0.1406918168067932,
1.2069569826126099,
0.3202211856842041,
-0.3198563754558563,
-0.3051874041557312,
-0.7876001000404358,
0.5530992150306702,
-0.6075188517570496,
0.21888770163059235,
0.3006001114845276,
0.27073296904563904,
-0.26759782433509827,
-0.8005726933479309,
-0.7635495662689209,
0.08436986058950424,
-0.14031462371349335,
0.2787700295448303,
0.16478200256824493,
-0.08076686412096024,
0.8266540169715881,
0.6270965933799744,
-0.7190454602241516,
-0.37550270557403564,
-0.8402334451675415,
0.08882951736450195,
0.7452524900436401,
0.06699129194021225,
0.010434424504637718,
-0.5517902970314026,
-0.21345755457878113,
-0.21920600533485413,
-0.4308735430240631,
0.16036146879196167,
0.3628544509410858,
0.338005006313324,
-0.11048418283462524,
0.8019774556159973,
-0.2459261268377304,
0.8344126343727112,
0.4503915011882782,
-0.2310371696949005,
0.5244930386543274,
-0.23079821467399597,
-0.08195871114730835,
-0.2817234396934509,
0.7313086986541748,
0.1358334869146347,
0.27333903312683105,
-0.14657171070575714,
-0.21182624995708466,
-0.15628236532211304,
0.4252797067165375,
-0.8543757796287537,
0.016714079305529594,
0.4487704634666443,
-0.36569201946258545,
-0.18168000876903534,
0.43945202231407166,
-0.6810553669929504,
-0.21747107803821564,
0.00016962135850917548,
0.47905147075653076,
-0.36285433173179626,
-0.21830464899539948,
0.24211880564689636,
-0.4949706792831421,
0.34751060605049133,
-0.22162370383739471,
-0.5987029671669006,
0.1999514400959015,
0.733755886554718,
0.5064295530319214,
-0.040390823036432266,
0.017443375661969185,
-0.4026356339454651,
-0.1617187112569809,
-0.30015459656715393,
0.5736610889434814,
-0.28380364179611206,
-0.31692788004875183,
-0.006152440328150988,
0.2064264416694641,
-0.08471938222646713,
-0.4626551866531372,
0.6903308629989624,
-0.860785186290741,
0.3949044644832611,
-0.46384111046791077,
-0.7103264331817627,
-0.08858157694339752,
0.12493705749511719,
-0.7844536304473877,
1.155779480934143,
0.11334434896707535,
-1.0865182876586914,
0.1662348210811615,
-0.405266135931015,
-0.2529994249343872,
0.05022813752293587,
-0.016531387344002724,
-0.40207019448280334,
0.1663864701986313,
0.14836722612380981,
0.3953341245651245,
-0.3770442605018616,
0.4266921579837799,
-0.20591676235198975,
-0.4875349700450897,
0.4612896740436554,
-0.25117504596710205,
0.9503098726272583,
0.34386685490608215,
-0.03657134994864464,
-0.32391923666000366,
-0.9901713132858276,
-0.09595416486263275,
0.31906795501708984,
-0.6234738826751709,
-0.2136673480272293,
-0.23783175647258759,
-0.044620417058467865,
0.2670770585536957,
0.5434908270835876,
-0.6912375688552856,
0.06515827775001526,
-0.4431523382663727,
0.08428055047988892,
0.525253415107727,
0.005888760089874268,
0.5043193101882935,
-0.5795074701309204,
0.5460469126701355,
0.054536424577236176,
-0.05766398459672928,
-0.2751115560531616,
-0.489056259393692,
-0.9482852220535278,
-0.1163712665438652,
0.5378773808479309,
0.728308379650116,
-0.9012637138366699,
0.38034194707870483,
-0.3703162372112274,
-0.493968665599823,
-0.49378466606140137,
-0.26362115144729614,
0.5762222409248352,
0.6556578278541565,
0.3165305256843567,
-0.19247828423976898,
-0.7076167464256287,
-0.6803448796272278,
-0.2993354797363281,
-0.12230029702186584,
-0.14550887048244476,
0.4660224914550781,
0.5217767357826233,
-0.14212337136268616,
0.9033703207969666,
-0.48509886860847473,
0.1217518150806427,
-0.16549775004386902,
0.2200399488210678,
0.7893334031105042,
0.43161696195602417,
0.22942429780960083,
-1.068464756011963,
-0.5083316564559937,
-0.3837939202785492,
-0.6278282999992371,
-0.08190365880727768,
-0.16580766439437866,
-0.2499220073223114,
0.41484585404396057,
0.41695716977119446,
-0.8239139318466187,
0.4294382631778717,
0.4333531856536865,
-0.369873046875,
0.535305917263031,
-0.12213730812072754,
0.09059824049472809,
-1.4627649784088135,
0.43173107504844666,
-0.3094467520713806,
-0.14017078280448914,
-0.5535191297531128,
0.060208745300769806,
0.20533408224582672,
-0.1237325519323349,
-0.30243584513664246,
0.652737557888031,
-0.5025070309638977,
-0.23558109998703003,
-0.06545793265104294,
-0.018649620935320854,
0.10234330594539642,
0.41683629155158997,
-0.2894671857357025,
0.8401162624359131,
0.14998026192188263,
-0.7348727583885193,
0.19910258054733276,
0.44576239585876465,
-0.10788745433092117,
0.28851816058158875,
-0.6150385737419128,
0.15069210529327393,
-0.3628930151462555,
0.0712408572435379,
-1.0215187072753906,
-0.3390095829963684,
0.020808754488825798,
-0.791770875453949,
0.4333924651145935,
-0.07296739518642426,
-0.47600406408309937,
-0.883232593536377,
-0.030613716691732407,
0.48262423276901245,
0.8846584558486938,
-0.48009324073791504,
0.4751375615596771,
0.588950514793396,
-0.023462211713194847,
-0.9788810610771179,
-0.4061596393585205,
-0.20199784636497498,
-0.14248880743980408,
-0.6425702571868896,
0.4650455117225647,
-0.13183742761611938,
-0.13999925553798676,
0.1367502510547638,
-0.14718668162822723,
-0.08504759520292282,
-0.13361680507659912,
0.1677773892879486,
0.3065468668937683,
0.07139614224433899,
0.27689993381500244,
-0.20277613401412964,
0.020997587591409683,
0.08930937945842743,
0.01745690405368805,
0.7298736572265625,
-0.1127512976527214,
-0.24047230184078217,
0.07576145231723785,
0.21942947804927826,
0.07286060601472855,
-0.34181565046310425,
0.6194198131561279,
0.7133706212043762,
-0.33886995911598206,
-0.27265259623527527,
-0.5949176549911499,
-0.25635287165641785,
-0.5060763955116272,
0.38148409128189087,
-0.3863346576690674,
-0.8952463269233704,
0.702364981174469,
-0.009867774322628975,
0.10011894255876541,
0.73228919506073,
0.5232568383216858,
-0.1593843549489975,
0.9158006310462952,
0.5103264451026917,
0.11916500329971313,
0.31517091393470764,
-0.5280801653862,
0.22396643459796906,
-0.8244959712028503,
0.07435133308172226,
-0.46589556336402893,
-0.18699900805950165,
-0.7424255013465881,
-0.6157374382019043,
0.3518582582473755,
0.18377594649791718,
-0.42938143014907837,
0.32512328028678894,
-0.5183703303337097,
0.43569043278694153,
0.6177404522895813,
0.022237934172153473,
-0.01770324632525444,
0.05562793090939522,
-0.04298458620905876,
0.14190495014190674,
-0.8977645039558411,
-0.37735459208488464,
1.2552303075790405,
0.029302148148417473,
0.6631221175193787,
-0.0795794278383255,
0.9789321422576904,
0.10410261899232864,
0.1160077154636383,
-0.6972554326057434,
0.6440554261207581,
-0.5647311210632324,
-0.9660367369651794,
-0.13089293241500854,
-0.539127767086029,
-1.1127870082855225,
-0.005723975133150816,
-0.21295565366744995,
-0.34315839409828186,
0.2393781840801239,
-0.013493286445736885,
-0.5137162208557129,
0.23685914278030396,
-0.2703610062599182,
0.645873486995697,
-0.07165814191102982,
-0.08552523702383041,
0.03469613566994667,
-0.5758641958236694,
0.6444593667984009,
-0.21428057551383972,
0.2915884256362915,
-0.003913958091288805,
0.21268320083618164,
0.9026105999946594,
-0.3437616527080536,
0.5637645125389099,
-0.17027468979358673,
0.11572800576686859,
0.42350998520851135,
-0.19244913756847382,
0.3072550892829895,
-0.09975097328424454,
-0.041909825056791306,
-0.04362964630126953,
-0.04850208759307861,
-0.24425749480724335,
-0.25547313690185547,
0.3148547410964966,
-0.6631824374198914,
-0.6351783275604248,
-0.4590340554714203,
-0.7680079340934753,
-0.0057898638769984245,
0.22474440932273865,
0.4974832832813263,
0.4776379466056824,
-0.23748600482940674,
0.19423936307430267,
0.8078432679176331,
-0.5318472981452942,
0.5103805661201477,
0.4324524998664856,
-0.20704294741153717,
-0.3993000090122223,
0.7519547343254089,
0.2537255585193634,
0.1280622035264969,
0.36934107542037964,
0.052296362817287445,
-0.12740933895111084,
0.007401571609079838,
-0.3417803943157196,
0.5512953400611877,
-0.630743682384491,
-0.29944926500320435,
-0.7921020984649658,
-0.6664673089981079,
-0.609303891658783,
0.1480340212583542,
-0.38164493441581726,
-0.7242421507835388,
-0.25175729393959045,
0.11251892894506454,
0.4700467586517334,
0.5864762663841248,
-0.3787461519241333,
0.30711549520492554,
-0.9031026363372803,
0.9436075687408447,
0.33138135075569153,
0.10095713287591934,
-0.21690736711025238,
-0.9861357808113098,
-0.38830825686454773,
0.09618917852640152,
-0.17135758697986603,
-0.9748425483703613,
0.5537592768669128,
0.11420122534036636,
0.43270355463027954,
0.3339235186576843,
0.37660709023475647,
0.8230779767036438,
-0.83027583360672,
0.6625854969024658,
-0.23911066353321075,
-0.5838585495948792,
0.2086673527956009,
-0.22080406546592712,
0.2360006719827652,
0.44957002997398376,
0.5296949744224548,
-0.5278753638267517,
-0.37901803851127625,
-0.93065345287323,
-1.1134459972381592,
0.744110107421875,
-0.08035062998533249,
0.22686436772346497,
-0.3616705536842346,
0.5432333946228027,
-0.1841178983449936,
0.14845947921276093,
-0.5360476970672607,
-0.31208565831184387,
0.0036660614423453808,
-0.19783499836921692,
-0.005463791079819202,
-0.6473838686943054,
-0.2127346247434616,
-0.2243364155292511,
0.8148865103721619,
0.08038776367902756,
0.5106697678565979,
0.35773518681526184,
-0.06674536317586899,
-0.04451805725693703,
0.1083875522017479,
0.295197457075119,
0.618544340133667,
-0.37637367844581604,
-0.2198946624994278,
0.07165607064962387,
-0.4835284948348999,
-0.05332864448428154,
0.47022825479507446,
-0.3633877635002136,
0.29508382081985474,
0.052867911756038666,
0.7326637506484985,
-0.1456337571144104,
-0.527672529220581,
0.556810200214386,
-0.12143514305353165,
-0.14717711508274078,
-0.8312849998474121,
-0.04808211326599121,
0.07481048256158829,
0.3468599021434784,
0.6323437690734863,
-0.19827736914157867,
0.2805595397949219,
-0.22604355216026306,
0.409564346075058,
0.5282791256904602,
-0.022027170285582542,
-0.14396129548549652,
0.7649627327919006,
0.02822510153055191,
-0.4130222797393799,
0.5664401054382324,
-0.6854078769683838,
-0.5383832454681396,
0.91368168592453,
0.4181796610355377,
0.9196421504020691,
-0.018585722893476486,
0.32318809628486633,
0.86944979429245,
0.2531875669956207,
-0.35287997126579285,
0.8064383268356323,
0.11980672925710678,
-0.8483632206916809,
-0.54222172498703,
-1.0679680109024048,
-0.2923737168312073,
0.1513708531856537,
-1.031232237815857,
0.14164406061172485,
-0.2172696888446808,
-0.3806758224964142,
-0.13969527184963226,
-0.08052244037389755,
-0.8054372668266296,
0.27959534525871277,
0.05776596441864967,
0.9300294518470764,
-0.7339406609535217,
0.6119112968444824,
0.7499873042106628,
-0.288493275642395,
-0.9655463099479675,
0.03640972450375557,
-0.3072606325149536,
-0.7596376538276672,
0.7847636938095093,
0.3308788537979126,
0.3741302490234375,
0.06774796545505524,
-0.5696070790290833,
-1.2168593406677246,
0.968588650226593,
-0.021087028086185455,
-0.5038862228393555,
-0.13150060176849365,
0.18442900478839874,
0.527259349822998,
-0.23156286776065826,
0.030210372060537338,
0.40957415103912354,
0.2520957291126251,
0.12039579451084137,
-0.8476938605308533,
0.13454048335552216,
-0.4676276743412018,
0.10366936773061752,
0.04541213810443878,
-0.4651658236980438,
1.418204426765442,
-0.32418903708457947,
-0.3844481110572815,
0.2526070475578308,
0.5509605407714844,
0.6182014346122742,
0.06025795638561249,
0.5680313110351562,
0.9150808453559875,
0.7272058129310608,
-0.11486656218767166,
1.1157443523406982,
-0.6312437653541565,
0.39112985134124756,
0.9994867444038391,
0.021169820800423622,
0.9048170447349548,
0.4215167760848999,
-0.24708911776542664,
0.41244152188301086,
0.5347801446914673,
-0.12234877049922943,
0.32661277055740356,
0.19246523082256317,
-0.0013803897891193628,
-0.15285830199718475,
0.11852289736270905,
-0.45469850301742554,
0.5171538591384888,
0.3112727403640747,
-0.4610670506954193,
-0.07133882492780685,
-0.2931310832500458,
0.13959307968616486,
-0.12493296712636948,
-0.2317831665277481,
0.8299221992492676,
0.04901698976755142,
-0.8801442980766296,
0.9095802903175354,
0.08859962970018387,
0.7617769837379456,
-0.3807327449321747,
-0.014777617529034615,
-0.35063663125038147,
0.3096643090248108,
-0.07296644151210785,
-0.6238785982131958,
0.4381994605064392,
0.2553604543209076,
-0.3123217225074768,
-0.11024943739175797,
0.8591447472572327,
-0.5414682030677795,
-0.8615627288818359,
0.015610452741384506,
0.5579326748847961,
0.36893340945243835,
-0.02298632450401783,
-0.7687698602676392,
-0.3140718638896942,
-0.1873842179775238,
-0.6467797160148621,
0.04179463908076286,
0.5958994030952454,
0.06516037881374359,
0.3090929687023163,
0.6832811832427979,
-0.0012948483927175403,
0.27793237566947937,
0.008796756155788898,
0.9134486317634583,
-0.7437618374824524,
-0.39968112111091614,
-0.578010082244873,
0.7172452807426453,
-0.2112375795841217,
-0.25136643648147583,
0.8405244946479797,
0.634393036365509,
0.9393220543861389,
-0.17515316605567932,
0.6601355075836182,
-0.5285690426826477,
0.8870777487754822,
-0.260345458984375,
0.7042302489280701,
-0.7808729410171509,
-0.05187627673149109,
-0.11496741324663162,
-0.7759261727333069,
0.07103310525417328,
0.658889651298523,
0.01379208080470562,
0.1266210526227951,
0.46216559410095215,
0.9221717119216919,
0.056821417063474655,
-0.29118651151657104,
0.1004934012889862,
0.34915271401405334,
-0.008202457800507545,
0.34812870621681213,
0.5825151205062866,
-0.6515161395072937,
0.5720592737197876,
-0.42311280965805054,
-0.12401819974184036,
-0.053534723818302155,
-0.6878756284713745,
-0.9238211512565613,
-0.738079309463501,
0.04592675343155861,
-0.7578491568565369,
-0.11938924342393875,
0.6620529890060425,
0.3541046679019928,
-0.7115679383277893,
-0.24705056846141815,
0.015000294893980026,
0.02611069567501545,
-0.008429729379713535,
-0.2658027410507202,
0.2740112245082855,
-0.5509968400001526,
-0.8046284317970276,
0.12601619958877563,
-0.2610238492488861,
-0.10443858802318573,
-0.13952557742595673,
0.11067323386669159,
-0.32567569613456726,
0.19651828706264496,
0.47628360986709595,
0.3428876996040344,
-0.5239391326904297,
-0.07065184414386749,
0.34468740224838257,
-0.1489701122045517,
-0.10177317261695862,
0.3569181561470032,
-0.7619818449020386,
0.22478219866752625,
0.8196984529495239,
0.7567005157470703,
0.7134998440742493,
0.2782024145126343,
0.32815614342689514,
-0.8232038021087646,
0.26784107089042664,
0.15746480226516724,
0.38565558195114136,
0.4447430968284607,
-0.30959758162498474,
0.6328709721565247,
0.32535621523857117,
-0.7797165513038635,
-0.9446330070495605,
0.2678601145744324,
-0.903443455696106,
-0.3272027373313904,
1.5011142492294312,
0.023352552205324173,
-0.4845482110977173,
0.21666845679283142,
-0.11994177103042603,
0.6243749260902405,
-0.18338041007518768,
0.8852464556694031,
0.5191779136657715,
0.21931229531764984,
0.033158350735902786,
-0.5967075228691101,
0.5867979526519775,
0.28229695558547974,
-0.3989690840244293,
-0.18784505128860474,
0.3790464997291565,
0.20312801003456116,
0.4996494650840759,
0.7736876606941223,
-0.20384077727794647,
0.22575785219669342,
0.053849946707487106,
0.39226779341697693,
-0.041555196046829224,
-0.18052710592746735,
-0.26961031556129456,
0.06382176280021667,
-0.2686510980129242,
-0.2132222205400467
] |
uw-madison/mra-base-512-4
|
uw-madison
| 2023-07-10T16:11:54Z | 9,402 | 0 |
transformers
|
[
"transformers",
"pytorch",
"mra",
"fill-mask",
"arxiv:2207.10284",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] |
fill-mask
| 2023-06-23T06:04:05Z |
# MRA
MRA model for masked language modeling (MLM) for sequence length 512.
## About MRA
The MRA model was proposed in [Multi Resolution Analysis (MRA) for Approximate Self-Attention](https://arxiv.org/abs/2207.10284) by Zhanpeng Zeng, Sourav Pal, Jeffery Kline, Glenn M Fung, and Vikas Singh.
The abstract from the paper is the following:
*Transformers have emerged as a preferred model for many tasks in natural langugage processing and vision. Recent efforts on training and deploying Transformers more efficiently have identified many strategies to approximate the self-attention matrix, a key module in a Transformer architecture. Effective ideas include various prespecified sparsity patterns, low-rank basis expansions and combinations thereof. In this paper, we revisit classical Multiresolution Analysis (MRA) concepts such as Wavelets, whose potential value in this setting remains underexplored thus far. We show that simple approximations based on empirical feedback and design choices informed by modern hardware and implementation challenges, eventually yield a MRA-based approach for self-attention with an excellent performance profile across most criteria of interest. We undertake an extensive set of experiments and demonstrate that this multi-resolution scheme outperforms most efficient self-attention proposals and is favorable for both short and long sequences. Code is available at https://github.com/mlpen/mra-attention.*
This model was contributed by [novice03](https://huggingface.co/novice03).
The original code can be found [here](https://github.com/mlpen/mra-attention).
|
[
-0.7833000421524048,
-0.43873777985572815,
0.22412647306919098,
0.3314031958580017,
0.0831085667014122,
-0.02858731895685196,
-0.01424623653292656,
-0.5913224220275879,
0.2969149947166443,
0.6021414995193481,
-0.8402314186096191,
0.018151601776480675,
-0.7175841331481934,
0.24134467542171478,
-0.5491904020309448,
0.6911822557449341,
0.04393147677183151,
-0.25589093565940857,
0.10093353688716888,
-0.3943122327327728,
-0.6243590712547302,
-0.703315019607544,
-0.3738248944282532,
-0.021046891808509827,
0.6557205319404602,
0.15835589170455933,
0.37912800908088684,
0.6541397571563721,
0.7153041362762451,
0.3811981678009033,
0.037139225751161575,
0.23335765302181244,
-0.3944704532623291,
-0.04184723272919655,
0.03037189319729805,
-0.3361329436302185,
-0.4717235565185547,
0.2503887414932251,
0.7388957142829895,
0.5142061114311218,
-0.07017488777637482,
0.6768287420272827,
0.332820862531662,
1.1413687467575073,
-0.6104442477226257,
-0.020763935521245003,
-0.3452158570289612,
0.42005985975265503,
0.04668603837490082,
-0.1693391352891922,
-0.6439419984817505,
0.23947152495384216,
0.1976434886455536,
-0.11029745638370514,
0.7240623831748962,
-0.007673854939639568,
0.8982515931129456,
0.5127806663513184,
-0.07439865171909332,
-0.11066663265228271,
-1.0744678974151611,
1.0349928140640259,
-0.5929260849952698,
0.4388539791107178,
0.05763242393732071,
0.5244043469429016,
0.03435415402054787,
-0.8048943877220154,
-0.39187300205230713,
-0.2064548134803772,
-0.3758763074874878,
0.16300825774669647,
-0.3355315029621124,
0.10405614972114563,
0.40164944529533386,
0.4434725344181061,
-0.6802061200141907,
-0.12814782559871674,
-0.550510823726654,
-0.005613583605736494,
0.2838127613067627,
0.12246284633874893,
-0.16774673759937286,
-0.4566793143749237,
-0.6183419227600098,
-0.08532106876373291,
-0.33145084977149963,
-0.0458136722445488,
0.24840550124645233,
0.30982357263565063,
-0.1134205162525177,
0.5291222929954529,
-0.22355030477046967,
0.9890169501304626,
0.2943979501724243,
-0.06504742056131363,
0.18916665017604828,
-0.2328643798828125,
-0.3620333969593048,
-0.27076154947280884,
0.8160357475280762,
0.08264157921075821,
0.33818888664245605,
0.08942722529172897,
-0.23636193573474884,
-0.01614515669643879,
0.7730048298835754,
-0.6344523429870605,
-0.11373788118362427,
0.3071233034133911,
-0.9253578186035156,
0.0365251861512661,
-0.07481155544519424,
-1.1956409215927124,
0.0055808136239647865,
-0.5382506251335144,
0.4793608784675598,
-0.008484297432005405,
-0.22535549104213715,
-0.07672044634819031,
0.2701112926006317,
0.294225811958313,
-0.07897568494081497,
-0.9701384902000427,
0.2871699929237366,
0.3020073175430298,
0.8242451548576355,
0.06964875012636185,
-0.2822352349758148,
-0.09209337085485458,
-0.13985833525657654,
-0.2995836138725281,
0.8751721382141113,
-0.2570434808731079,
-0.19308827817440033,
-0.2653268277645111,
-0.04384518787264824,
-0.29785796999931335,
-0.4529482126235962,
0.23696255683898926,
-0.5863665342330933,
0.4429798722267151,
0.2915799915790558,
-0.148199662566185,
-0.3727308511734009,
0.13929636776447296,
-0.8281130194664001,
1.0426664352416992,
0.03391801938414574,
-0.3622402250766754,
0.026556463912129402,
-0.8316315412521362,
-0.06261775642633438,
-0.3465312123298645,
0.10639560967683792,
-0.6083601117134094,
0.035393375903367996,
0.4572537839412689,
0.5595062971115112,
-0.043116580694913864,
0.07162148505449295,
-0.22019195556640625,
-0.14870065450668335,
0.3406887650489807,
-0.6985905766487122,
0.28370991349220276,
0.5312415957450867,
-0.2832322418689728,
0.4001888036727905,
-0.8956958651542664,
-0.021530166268348694,
0.24593207240104675,
0.10871951282024384,
0.07747121900320053,
-0.2371663749217987,
-0.12268363684415817,
0.5552734136581421,
0.08880165964365005,
-0.11637534946203232,
0.02119803987443447,
-0.614130973815918,
0.2632336914539337,
0.8168075680732727,
-0.13773709535598755,
0.4272039532661438,
0.004559639375656843,
0.6546635627746582,
-0.23256386816501617,
0.5467595458030701,
-0.5773627161979675,
-0.5438891053199768,
-0.9554852247238159,
-0.4572957754135132,
0.5251226425170898,
0.3188419044017792,
-0.21026469767093658,
0.33799076080322266,
-0.2585855722427368,
-0.3717879056930542,
-0.7459774613380432,
0.09656457602977753,
0.5002268552780151,
0.24518296122550964,
0.6277416944503784,
-0.5801443457603455,
-0.7929877042770386,
-1.1303783655166626,
-0.20952610671520233,
0.2903089225292206,
-0.26122725009918213,
0.2747475802898407,
0.05055560544133186,
-0.13915866613388062,
1.1950008869171143,
-0.48311206698417664,
-0.7959181666374207,
-0.23740743100643158,
0.043706946074962616,
0.4420981705188751,
0.3554035425186157,
0.5688498616218567,
-0.6076359748840332,
-0.4556780457496643,
-0.35538771748542786,
-0.7527379989624023,
0.2298535257577896,
-0.14826741814613342,
0.06902546435594559,
0.14306586980819702,
0.301237016916275,
-0.5096989274024963,
0.3933613896369934,
0.8799933195114136,
0.01398236770182848,
0.3571678400039673,
-0.15847139060497284,
0.15240977704524994,
-1.0765665769577026,
0.28689903020858765,
0.36158332228660583,
-0.37863966822624207,
-0.8934158682823181,
0.1278742402791977,
0.15787580609321594,
-0.3349175453186035,
-0.38288870453834534,
0.4070451557636261,
-0.6808422207832336,
-0.35504379868507385,
-0.5071049332618713,
0.16525721549987793,
-0.13173773884773254,
1.0304375886917114,
-0.08343419432640076,
0.692955732345581,
0.24764521420001984,
-0.6216867566108704,
0.10087832808494568,
0.0628318339586258,
0.024587219581007957,
0.317190557718277,
-0.7308326363563538,
0.2995063066482544,
-0.3489094376564026,
0.12010856717824936,
-1.280407190322876,
0.14155007898807526,
0.458881676197052,
-0.5708802342414856,
0.7325824499130249,
-0.2835169732570648,
-0.20420090854167938,
-0.7432307004928589,
-0.21453744173049927,
0.5430091619491577,
0.4994949400424957,
-0.7472082376480103,
1.0037240982055664,
0.3784146010875702,
0.12698130309581757,
-0.8954403400421143,
-0.5381479263305664,
0.22702859342098236,
-0.307405561208725,
-0.39400312304496765,
0.15078894793987274,
-0.0707281231880188,
0.129505917429924,
-0.16974914073944092,
-0.04399419203400612,
0.14224383234977722,
-0.20826277136802673,
0.29751309752464294,
0.3474586009979248,
-0.2994585335254669,
-0.06943489611148834,
-0.5056792497634888,
-0.5053860545158386,
0.05332198739051819,
-0.016993504017591476,
0.6802244782447815,
-0.2544395327568054,
-0.23528830707073212,
-0.558189332485199,
0.26512759923934937,
0.36366355419158936,
-0.4706575274467468,
0.5133370757102966,
0.5873110890388489,
-0.3132075071334839,
-0.08082221448421478,
-0.7964697480201721,
-0.38524502515792847,
-0.5550932884216309,
0.23748107254505157,
-0.6052625179290771,
-0.7056025862693787,
0.6585944890975952,
0.11216343194246292,
-0.07660411298274994,
0.7650883793830872,
0.6999759078025818,
-0.12406552582979202,
0.9133384227752686,
0.7654175758361816,
-0.07979181408882141,
0.580418586730957,
-0.3637721836566925,
0.47728899121284485,
-0.9359466433525085,
-0.01773221231997013,
-0.5509943962097168,
-0.24273069202899933,
-0.5831646919250488,
-0.5096511244773865,
0.081564761698246,
-0.20524774491786957,
0.19967752695083618,
0.533069372177124,
-0.8936718702316284,
0.36314401030540466,
0.4922514259815216,
0.053136177361011505,
0.09545648843050003,
0.11949063092470169,
0.2598298490047455,
-0.2209504246711731,
-0.9119979739189148,
-0.4035230875015259,
0.9879907369613647,
0.7687960267066956,
0.7809278964996338,
-0.06463442742824554,
0.5316015481948853,
0.423654168844223,
0.5325042605400085,
-0.7919532656669617,
0.3994472324848175,
-0.06051337718963623,
-0.6266260147094727,
-0.35699179768562317,
-0.29094481468200684,
-1.2104195356369019,
0.49327078461647034,
0.13658657670021057,
-0.5163539052009583,
0.2956151068210602,
0.2496388554573059,
-0.39780372381210327,
0.18543711304664612,
-0.8306639194488525,
0.9307287335395813,
0.2759927809238434,
-0.03925252705812454,
-0.3280360698699951,
-0.8819971084594727,
0.5445643663406372,
-0.10309633612632751,
0.21937626600265503,
-0.1300085484981537,
0.4198921024799347,
0.8125278949737549,
0.004866681061685085,
1.1493793725967407,
-0.05904114246368408,
-0.24682076275348663,
0.5519080758094788,
-0.11073072999715805,
0.2680680453777313,
-0.30056828260421753,
0.4316193461418152,
0.35835447907447815,
-0.06611467152833939,
-0.47201743721961975,
-0.6521034240722656,
0.6156586408615112,
-0.6460800766944885,
-0.5559390783309937,
-0.36911362409591675,
-0.3406582176685333,
0.007219403516501188,
0.13325569033622742,
-0.1776810884475708,
0.6815735101699829,
0.12268506735563278,
-0.15717430412769318,
0.704762876033783,
-0.017969336360692978,
0.778911292552948,
0.4610109031200409,
-0.228840634226799,
-0.4226173162460327,
0.9527059197425842,
0.2514260709285736,
0.2641661763191223,
0.3834652006626129,
-0.01768881268799305,
-0.42598795890808105,
-0.25772324204444885,
-0.6783620715141296,
0.4139450788497925,
-0.9558130502700806,
-0.34464865922927856,
-0.7832856178283691,
-0.37328824400901794,
-0.41550779342651367,
0.2750406265258789,
-0.7891119718551636,
-0.28074201941490173,
-0.2901361286640167,
0.18180182576179504,
-0.0009717341745272279,
0.6982722282409668,
-0.0978376567363739,
0.021587762981653214,
-1.0033268928527832,
0.6761708855628967,
0.449777215719223,
0.5764807462692261,
0.2760685682296753,
-0.8077658414840698,
-0.3565070927143097,
-0.3174995183944702,
-0.25888556241989136,
-0.6814831495285034,
0.6002193689346313,
0.026733728125691414,
0.7821876406669617,
0.23482438921928406,
-0.20446433126926422,
0.7922572493553162,
-0.6321608424186707,
0.706796407699585,
0.16565053164958954,
-0.7063624262809753,
0.344515860080719,
0.18907013535499573,
0.39280956983566284,
0.148198202252388,
0.19596846401691437,
-0.504664421081543,
-0.4492849111557007,
-0.593034565448761,
-0.5319443345069885,
0.6260293126106262,
0.11932293325662613,
0.3777400553226471,
0.13261359930038452,
0.3933763802051544,
-0.04053869470953941,
-0.04794437810778618,
-0.8965370655059814,
-0.8298514485359192,
-0.43604397773742676,
-0.3209177851676941,
-0.34598806500434875,
-0.715196430683136,
-0.09114107489585876,
0.04955858737230301,
0.3994285762310028,
-0.29887107014656067,
0.805915117263794,
0.42308861017227173,
-0.11334395408630371,
-0.25078725814819336,
0.22322428226470947,
0.974736750125885,
0.684648334980011,
-0.2658371925354004,
0.23534147441387177,
0.11828602850437164,
-0.44291791319847107,
0.18449854850769043,
0.07942449301481247,
0.22283490002155304,
-0.02552049420773983,
0.3187043368816376,
0.5870247483253479,
0.06840914487838745,
-0.366760790348053,
0.2473488748073578,
-0.08237526565790176,
-0.12484212219715118,
-0.21229203045368195,
-0.26150354743003845,
-0.17681746184825897,
0.17080684006214142,
0.6105007529258728,
0.40521636605262756,
0.2875839173793793,
0.027057696133852005,
0.3952895402908325,
0.3303215503692627,
-0.6871891617774963,
-0.20122115314006805,
0.5454137921333313,
0.044164348393678665,
-0.35319140553474426,
0.3132598400115967,
0.03796825930476189,
-0.3664231598377228,
0.653599202632904,
0.3960992693901062,
0.9399378299713135,
-0.5709546208381653,
-0.10924812406301498,
0.6337769031524658,
0.655654788017273,
0.09772785007953644,
-0.22675549983978271,
0.12432335317134857,
-0.6157239079475403,
-0.8521482944488525,
-0.6067093014717102,
-0.1452513039112091,
0.11979447305202484,
-0.529854416847229,
0.034553058445453644,
-0.277974933385849,
-0.14709366858005524,
0.024876784533262253,
-0.22664126753807068,
-0.5620044469833374,
0.2621811628341675,
0.07087822258472443,
0.5437330007553101,
-0.4969901144504547,
0.8414182066917419,
0.041293591260910034,
-0.21807193756103516,
-0.6026701927185059,
-0.1357274204492569,
-0.2928242087364197,
-0.7098134756088257,
0.40139827132225037,
0.4821847379207611,
-0.28059375286102295,
0.19501875340938568,
-0.1370934545993805,
-1.149559497833252,
0.7656065225601196,
-0.01117867510765791,
-0.6463330388069153,
0.19229641556739807,
0.17804816365242004,
0.5712806582450867,
-0.1870216578245163,
0.22547343373298645,
0.45732009410858154,
0.28626447916030884,
-0.05349450930953026,
-0.8984299302101135,
-0.0071049523539841175,
-0.013044684194028378,
0.17808832228183746,
0.2710546851158142,
-0.779021143913269,
0.5234776139259338,
-0.3377157151699066,
-0.3564419448375702,
0.08653343468904495,
1.099841594696045,
0.038048166781663895,
0.18880082666873932,
0.460319846868515,
0.44290152192115784,
0.06331310421228409,
0.195329949259758,
1.0195857286453247,
-0.4145943224430084,
0.8526430130004883,
0.9648721218109131,
0.12645398080348969,
0.5935249328613281,
0.6375852823257446,
-0.6845858693122864,
0.2805885374546051,
0.706946074962616,
-0.27451735734939575,
0.5253871083259583,
0.1847095936536789,
0.1460508555173874,
0.08016952872276306,
0.13411587476730347,
-0.35208484530448914,
0.2971835434436798,
0.25703004002571106,
-0.5733767747879028,
-0.06282354146242142,
0.18468627333641052,
-0.5864498019218445,
-0.018298568204045296,
-0.3908204436302185,
0.7160083651542664,
0.1110832616686821,
-0.6034408807754517,
0.7599130868911743,
0.12383735179901123,
0.6800091862678528,
-0.5159795880317688,
-0.14824171364307404,
-0.2506571412086487,
0.1700478047132492,
-0.09903553873300552,
-0.5717788338661194,
0.4480496644973755,
-0.2822153866291046,
-0.4154251515865326,
-0.16960173845291138,
0.9719319343566895,
-0.3554760217666626,
-0.49523118138313293,
0.30183809995651245,
0.37409213185310364,
0.06270991265773773,
-0.1541149914264679,
-0.8496265411376953,
-0.10806608200073242,
-0.06151740625500679,
-0.5048669576644897,
0.36706632375717163,
-0.10084255039691925,
0.2907959818840027,
0.8778897523880005,
0.5315080881118774,
-0.5446575284004211,
0.5183408260345459,
0.13513781130313873,
0.592400074005127,
-0.7111498117446899,
-0.28196844458580017,
-0.8028731346130371,
0.351290225982666,
0.17739920318126678,
0.023931920528411865,
0.7658110857009888,
0.4363390803337097,
0.5433966517448425,
-0.5461031794548035,
0.24774998426437378,
0.2439637929201126,
0.5746841430664062,
-0.5035836696624756,
0.28678712248802185,
-0.4087843894958496,
-0.013956005685031414,
-0.33960261940956116,
-1.1072944402694702,
-0.5620983242988586,
0.566023051738739,
-0.0651581808924675,
0.34165769815444946,
0.5846270322799683,
0.9373763799667358,
-0.17162136733531952,
-0.2685098946094513,
0.5859358310699463,
-0.12323486059904099,
0.33403900265693665,
0.2864094376564026,
0.7080031037330627,
-0.6814920902252197,
0.5862436294555664,
-0.42625191807746887,
-0.20082762837409973,
-0.3164730668067932,
-0.6935880780220032,
-0.9483370184898376,
-0.634647786617279,
-0.13618509471416473,
-0.40788474678993225,
-0.20466913282871246,
0.7973314523696899,
0.9935427308082581,
-0.8397207856178284,
-0.17596934735774994,
0.2210376262664795,
0.006064300425350666,
-0.49346569180488586,
-0.26292502880096436,
0.5536623597145081,
-0.543141782283783,
-0.7903257608413696,
0.4249420166015625,
0.3729389011859894,
0.26068803668022156,
-0.7486847043037415,
0.044973570853471756,
-0.1406429409980774,
0.1268349289894104,
0.7875192761421204,
0.37528863549232483,
-0.9471871852874756,
-0.20954515039920807,
0.01962718740105629,
-0.3176809847354889,
0.4602867364883423,
0.9023605585098267,
-0.8842818140983582,
0.5992549061775208,
0.026153963059186935,
0.5013330578804016,
0.7652379274368286,
0.10437902808189392,
0.33143338561058044,
-0.8340200185775757,
0.22569715976715088,
-0.0663112923502922,
0.20499300956726074,
0.24681144952774048,
-0.3678356409072876,
0.6099662780761719,
0.17908811569213867,
-0.5143652558326721,
-0.5983675718307495,
0.21010540425777435,
-1.0985347032546997,
-0.1913958340883255,
0.9238955974578857,
0.09933812916278839,
-0.37069258093833923,
0.050880853086709976,
-0.37929967045783997,
0.18148502707481384,
-0.20466576516628265,
1.0734803676605225,
0.45641130208969116,
-0.17381080985069275,
-0.7221109867095947,
-0.6622754335403442,
0.46276217699050903,
0.6259454488754272,
-0.5837686657905579,
0.06181716546416283,
0.13722604513168335,
0.18888059258460999,
0.689775824546814,
0.5145986080169678,
-0.16162078082561493,
0.14129067957401276,
-0.16621136665344238,
0.33265167474746704,
0.11936122924089432,
-0.5668781995773315,
-0.6316980123519897,
0.5708991885185242,
0.08152618259191513,
-0.4429822862148285
] |
bayartsogt/albert-mongolian
|
bayartsogt
| 2023-03-17T21:12:58Z | 9,379 | 3 |
transformers
|
[
"transformers",
"pytorch",
"tf",
"safetensors",
"albert",
"fill-mask",
"mn",
"arxiv:1904.00962",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] |
fill-mask
| 2022-03-02T23:29:05Z |
---
language: mn
---
# ALBERT-Mongolian
[pretraining repo link](https://github.com/bayartsogt-ya/albert-mongolian)
## Model description
Here we provide pretrained ALBERT model and trained SentencePiece model for Mongolia text. Training data is the Mongolian wikipedia corpus from Wikipedia Downloads and Mongolian News corpus.
## Evaluation Result:
```
loss = 1.7478163
masked_lm_accuracy = 0.6838185
masked_lm_loss = 1.6687671
sentence_order_accuracy = 0.998125
sentence_order_loss = 0.007942731
```
## Fine-tuning Result on Eduge Dataset:
```
precision recall f1-score support
байгал орчин 0.85 0.83 0.84 999
боловсрол 0.80 0.80 0.80 873
спорт 0.98 0.98 0.98 2736
технологи 0.88 0.93 0.91 1102
улс төр 0.92 0.85 0.89 2647
урлаг соёл 0.93 0.94 0.94 1457
хууль 0.89 0.87 0.88 1651
эдийн засаг 0.83 0.88 0.86 2509
эрүүл мэнд 0.89 0.92 0.90 1159
accuracy 0.90 15133
macro avg 0.89 0.89 0.89 15133
weighted avg 0.90 0.90 0.90 15133
```
## Reference
1. [ALBERT - official repo](https://github.com/google-research/albert)
2. [WikiExtrator](https://github.com/attardi/wikiextractor)
3. [Mongolian BERT](https://github.com/tugstugi/mongolian-bert)
4. [ALBERT - Japanese](https://github.com/alinear-corp/albert-japanese)
5. [Mongolian Text Classification](https://github.com/sharavsambuu/mongolian-text-classification)
6. [You's paper](https://arxiv.org/abs/1904.00962)
## Citation
```
@misc{albert-mongolian,
author = {Bayartsogt Yadamsuren},
title = {ALBERT Pretrained Model on Mongolian Datasets},
year = {2020},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{https://github.com/bayartsogt-ya/albert-mongolian/}}
}
```
## For More Information
Please contact by [email protected]
|
[
-0.2874661386013031,
-0.5542992949485779,
0.16534966230392456,
0.2912408113479614,
-0.25808238983154297,
-0.2196073681116104,
-0.20720277726650238,
-0.3181251287460327,
0.1465374380350113,
0.3570324182510376,
-0.594089150428772,
-1.106652855873108,
-0.4666372239589691,
0.10540971159934998,
-0.2339729219675064,
1.3507329225540161,
-0.2313854843378067,
0.2259914129972458,
-0.05139896273612976,
-0.28059569001197815,
-0.19657397270202637,
-0.35173165798187256,
-0.30407416820526123,
-0.273017019033432,
0.6691293716430664,
0.4274279475212097,
0.401928186416626,
0.6246098279953003,
0.6859305500984192,
0.3464685082435608,
-0.0254958625882864,
-0.2845214605331421,
-0.3556504547595978,
-0.22908388078212738,
0.1626681536436081,
-0.4469301998615265,
-0.5114696025848389,
-0.08376622945070267,
0.6760947108268738,
0.5523946285247803,
-0.5349069833755493,
0.1519128829240799,
-0.09069651365280151,
0.6471337080001831,
-0.6633209586143494,
0.07262217998504639,
-0.371391236782074,
-0.04162394627928734,
-0.4760704040527344,
0.054951027035713196,
-0.33236920833587646,
-0.5315942764282227,
0.42438584566116333,
-0.9783269762992859,
0.15879830718040466,
0.31087222695350647,
1.5794697999954224,
-0.010445553809404373,
-0.2215641587972641,
-0.36058253049850464,
-0.4736824333667755,
1.0058237314224243,
-0.9196861982345581,
0.4225185215473175,
0.7663305401802063,
-0.014604623429477215,
0.18370430171489716,
-0.8241415023803711,
-0.6315654516220093,
-0.3130525052547455,
-0.5439146757125854,
0.48326635360717773,
-0.17460472881793976,
-0.07114135473966599,
0.32016223669052124,
0.42331692576408386,
-0.9981407523155212,
0.09223426878452301,
-0.5481223464012146,
-0.3057979643344879,
0.7318407297134399,
-0.020438920706510544,
0.2550324499607086,
-0.3303188681602478,
-0.3171616494655609,
-0.5631500482559204,
-0.48982247710227966,
0.2313821017742157,
0.7783610224723816,
-0.01799684390425682,
-0.30438780784606934,
0.515699028968811,
-0.5524742603302002,
0.6634595394134521,
0.09780091047286987,
-0.3111674189567566,
0.7062023878097534,
-0.3484857380390167,
-0.17583739757537842,
0.07136520743370056,
1.3740633726119995,
0.2615664005279541,
-0.043084386736154556,
0.12495122104883194,
-0.16120438277721405,
-0.31965214014053345,
0.07132676988840103,
-1.0411276817321777,
-0.3637332022190094,
0.010603414848446846,
-0.5808070302009583,
-0.12527844309806824,
0.2222648561000824,
-0.7996354699134827,
0.19223709404468536,
-0.03307545557618141,
0.598391056060791,
-0.9306223392486572,
-0.20341667532920837,
0.31791889667510986,
0.13154765963554382,
0.4052087962627411,
0.04558611288666725,
-1.2030435800552368,
0.023724336177110672,
0.2390156239271164,
0.6986079812049866,
0.23732545971870422,
-0.43230676651000977,
0.05980450659990311,
0.0378536656498909,
-0.3625771999359131,
0.8527308702468872,
-0.1758703738451004,
-0.3020409643650055,
0.02651197835803032,
-0.043012723326683044,
-0.1462700068950653,
-0.4218583106994629,
0.8235824108123779,
-0.5560649633407593,
0.7286826372146606,
-0.06457407027482986,
-0.4439815878868103,
-0.3444295823574066,
0.3115239143371582,
-0.7047455906867981,
1.0303808450698853,
0.14406491816043854,
-1.0739121437072754,
0.6049074530601501,
-0.5786156058311462,
-0.3352854251861572,
0.10877156257629395,
0.26070863008499146,
-0.9149123430252075,
-0.4928033649921417,
0.340524286031723,
0.6079102754592896,
0.032918356359004974,
0.2706879675388336,
-0.37502360343933105,
-0.3151417076587677,
0.21283330023288727,
-0.05276643484830856,
1.163330316543579,
0.23450340330600739,
-0.006305389571934938,
0.0027202379424124956,
-1.211043119430542,
0.1324562132358551,
-0.028015507385134697,
-0.5917093753814697,
-0.44627708196640015,
-0.11460115015506744,
0.18483170866966248,
-0.13246820867061615,
0.3354853689670563,
-0.5371881127357483,
0.24699118733406067,
-0.5284806489944458,
0.12903067469596863,
0.5480785965919495,
-0.2074558287858963,
0.34513261914253235,
-0.49417737126350403,
0.45817917585372925,
0.002544485731050372,
-0.02682631090283394,
-0.10070796310901642,
-0.10174007713794708,
-1.065415620803833,
-0.39221376180648804,
0.6199700832366943,
0.8960674405097961,
-0.8396083116531372,
0.8973534107208252,
-0.4763975739479065,
-1.0941014289855957,
-0.7197453379631042,
-0.02322445437312126,
0.47329795360565186,
0.5414459109306335,
0.5093687772750854,
-0.18569785356521606,
-0.6634085774421692,
-1.1865872144699097,
-0.15847279131412506,
-0.6403522491455078,
-0.21688851714134216,
0.026439353823661804,
0.8813271522521973,
-0.2617206871509552,
0.8422651290893555,
-0.5303501486778259,
-0.3618280291557312,
-0.10815390199422836,
0.5302162170410156,
0.33747440576553345,
0.7085981369018555,
0.6058241128921509,
-0.7424857020378113,
-0.7345201969146729,
0.16636712849140167,
-0.7706725597381592,
-0.1396169513463974,
-0.10955176502466202,
-0.26868435740470886,
0.3223807215690613,
0.324817031621933,
-0.5965996384620667,
0.4269721806049347,
0.44341200590133667,
-0.3300894796848297,
0.8414834141731262,
-0.18658383190631866,
0.25456103682518005,
-1.3787676095962524,
0.4089369475841522,
0.030105967074632645,
0.05381901189684868,
-0.5347371697425842,
-0.22873054444789886,
0.1473463624715805,
0.33574774861335754,
-0.4422459006309509,
0.4973335564136505,
-0.3335108757019043,
0.3031921982765198,
0.25824177265167236,
-0.14683347940444946,
-0.04181594029068947,
0.6898555755615234,
0.22088898718357086,
0.6720962524414062,
0.6617276668548584,
-0.5754364728927612,
0.5070208311080933,
0.7047296166419983,
-1.0282351970672607,
0.5055532455444336,
-0.8649991154670715,
-0.11779249459505081,
-0.039380986243486404,
0.08859077841043472,
-0.7451977133750916,
-0.5179110169410706,
0.5400362610816956,
-0.6430867910385132,
0.3492496907711029,
0.2308935821056366,
-0.5974946618080139,
-0.34452009201049805,
-0.4649009704589844,
0.16981101036071777,
0.5432313680648804,
-0.2658653259277344,
0.4664853811264038,
-0.02719762921333313,
-0.29436904191970825,
-0.9078696370124817,
-0.7719583511352539,
-0.4122031629085541,
-0.4625686705112457,
-0.5557836294174194,
0.6446033120155334,
-0.30371883511543274,
-0.04694737121462822,
0.08739697188138962,
0.14047248661518097,
-0.38452157378196716,
-0.02892407774925232,
-0.04014727100729942,
0.5371073484420776,
-0.36198389530181885,
0.1009836420416832,
-0.04515049606561661,
-0.052313413470983505,
-0.07311815023422241,
0.2188483476638794,
0.37800315022468567,
-0.24217692017555237,
-0.07618251442909241,
-0.849696934223175,
0.18299748003482819,
0.23144856095314026,
-0.19582024216651917,
1.0359317064285278,
1.0109448432922363,
-0.2865387797355652,
0.2804121673107147,
-0.4496252238750458,
-0.07413706928491592,
-0.4896474778652191,
0.7313347458839417,
-0.313439279794693,
-0.7906370759010315,
0.6288976073265076,
0.2852955758571625,
0.09397723525762558,
0.7604062557220459,
0.5610083341598511,
-0.16976162791252136,
0.9947463274002075,
0.5109900236129761,
-0.03835051506757736,
0.6426267027854919,
-0.3671838045120239,
0.07054358720779419,
-0.8372671008110046,
-0.49460580945014954,
-0.7248579263687134,
-0.07564245909452438,
-0.9024806618690491,
0.28631651401519775,
0.20065850019454956,
0.3736748993396759,
-0.555234432220459,
0.5971757769584656,
-0.4088119864463806,
0.34842294454574585,
0.8563144207000732,
0.09803290665149689,
0.09346925467252731,
0.05328778922557831,
-0.18855024874210358,
-0.19366206228733063,
-0.6744771599769592,
-0.6058177351951599,
1.0226693153381348,
0.1989629715681076,
0.9960614442825317,
0.023763317614793777,
0.6449856758117676,
-0.2020244598388672,
0.413621187210083,
-0.718879759311676,
0.44966110587120056,
0.11722994595766068,
-1.017496109008789,
-0.39699751138687134,
-0.45775002241134644,
-1.1031488180160522,
0.11635448038578033,
-0.5551517605781555,
-0.8241482377052307,
-0.045869454741477966,
0.08815638720989227,
-0.6130906343460083,
0.1315573900938034,
-0.7206503748893738,
1.0806080102920532,
-0.22192490100860596,
-0.13744880259037018,
0.07555428892374039,
-0.7790544033050537,
0.4412105679512024,
-0.10823632031679153,
0.03245287761092186,
-0.13742482662200928,
0.2468084990978241,
1.393133282661438,
-0.2768992483615875,
0.6894067525863647,
0.1477053165435791,
0.21098481118679047,
0.1991669237613678,
-0.38365283608436584,
0.2449239194393158,
0.1375213861465454,
-0.047430526465177536,
0.42604097723960876,
0.2593751549720764,
-0.38889065384864807,
-0.3382163345813751,
0.5181723237037659,
-1.2550694942474365,
-0.4655284881591797,
-0.8350467681884766,
-0.3658600449562073,
0.11007500439882278,
0.4418018162250519,
0.8170661330223083,
0.3828985393047333,
-0.3353300094604492,
0.6085637211799622,
0.6095896363258362,
-0.42102673649787903,
0.4015708267688751,
0.750314474105835,
-0.14980138838291168,
-0.6753461360931396,
0.7399556636810303,
0.19392129778862,
-0.02214154787361622,
0.5458025932312012,
0.02293836697936058,
-0.22337369620800018,
-0.6782615184783936,
-0.4029880166053772,
0.4305255711078644,
-0.6072753667831421,
-0.3311079740524292,
-0.7227866053581238,
-0.46684029698371887,
-0.5747502446174622,
-0.0958137959241867,
-0.3031744658946991,
-0.010069777257740498,
-0.7387604713439941,
-0.11041495203971863,
0.34431859850883484,
0.5131569504737854,
-0.20532996952533722,
0.9356231093406677,
-0.7753094434738159,
0.06967867910861969,
0.39478346705436707,
0.3240745961666107,
-0.258804589509964,
-0.7800933718681335,
-0.7014593482017517,
-0.02980084903538227,
-0.6580615043640137,
-0.7893504500389099,
0.7860005497932434,
0.15067420899868011,
0.6291877627372742,
0.7063071131706238,
-0.03643675521016121,
0.9670282006263733,
-0.5626611113548279,
0.7724160552024841,
0.4666506350040436,
-0.8853721022605896,
0.6383124589920044,
-0.38209444284439087,
0.3681250214576721,
0.717742919921875,
0.7436842322349548,
-0.7059746384620667,
-0.253548800945282,
-0.7225245833396912,
-0.9442601799964905,
1.1799861192703247,
0.2947438359260559,
0.08784127980470657,
0.25071024894714355,
0.17551562190055847,
0.32153046131134033,
0.050867289304733276,
-1.1356145143508911,
-0.5437734127044678,
-0.2705436050891876,
-0.45552271604537964,
0.06149805709719658,
-0.3393244743347168,
0.00439423555508256,
-0.4621407687664032,
1.2133113145828247,
0.23341360688209534,
0.3348986804485321,
0.19197307527065277,
-0.1632165014743805,
0.013158670626580715,
0.30002090334892273,
0.7288206219673157,
0.7190566658973694,
-0.5846759080886841,
-0.4365852177143097,
0.28261980414390564,
-0.6775381565093994,
-0.026918740943074226,
0.5006548166275024,
-0.4591595530509949,
0.17902465164661407,
0.8167129755020142,
1.254056692123413,
0.06510229408740997,
-0.45013877749443054,
0.5757863521575928,
-0.18660709261894226,
-0.5369393229484558,
-0.6778395771980286,
0.1033719852566719,
0.01382417045533657,
0.05580074340105057,
0.5405627489089966,
-0.060501888394355774,
0.11839333921670914,
-0.31808143854141235,
0.03140074387192726,
0.2699505090713501,
-0.3374757468700409,
-0.5654573440551758,
0.5734763741493225,
0.02913251332938671,
-0.2395167052745819,
0.7502643465995789,
-0.24494121968746185,
-0.5741941928863525,
0.4888072907924652,
0.37725093960762024,
0.6367697715759277,
-0.41137003898620605,
0.2811279892921448,
1.0483806133270264,
0.2583741545677185,
-0.14517977833747864,
0.07962629199028015,
0.18754848837852478,
-0.9129700660705566,
-0.4364696741104126,
-0.835419237613678,
-0.1700679063796997,
0.555975615978241,
-0.9768403172492981,
0.5949089527130127,
-0.07578015327453613,
-0.03708202391862869,
0.15997615456581116,
0.30737537145614624,
-0.644662618637085,
0.3179704248905182,
0.07605674117803574,
0.7184543013572693,
-0.692977786064148,
0.9035898447036743,
0.8430593013763428,
-0.36301353573799133,
-0.9047976136207581,
-0.1496492475271225,
-0.4552916884422302,
-0.8454942107200623,
0.7367249727249146,
0.3707832992076874,
0.4011799097061157,
0.12621933221817017,
-0.7703163623809814,
-1.084228754043579,
1.3466588258743286,
0.15941116213798523,
-0.6952252388000488,
-0.0402076281607151,
-0.1988247185945511,
0.44925788044929504,
-0.058690983802080154,
0.5809065699577332,
0.46403488516807556,
0.49647730588912964,
0.18299460411071777,
-1.0648808479309082,
-0.3432253897190094,
-0.2769085168838501,
-0.10810089111328125,
0.16160422563552856,
-0.7047203779220581,
0.8031142950057983,
-0.10197070986032486,
-0.31957730650901794,
0.5158025622367859,
0.8855159282684326,
0.44654011726379395,
0.3532327711582184,
0.52826327085495,
0.9819681644439697,
0.7033507227897644,
-0.16525545716285706,
0.8354095816612244,
-0.10048900544643402,
0.6451289653778076,
0.7937068939208984,
0.06903566420078278,
0.7860705852508545,
0.23459507524967194,
-0.45569857954978943,
1.0574415922164917,
0.9810804128646851,
-0.1193748190999031,
1.0409685373306274,
0.01185881532728672,
-0.1608867645263672,
-0.10363934189081192,
0.10753114521503448,
-0.5305149555206299,
0.6282148361206055,
0.23127906024456024,
-0.24728940427303314,
-0.057751428335905075,
0.10518418997526169,
0.5077301263809204,
-0.228888139128685,
-0.2658839225769043,
0.7588507533073425,
-0.12208292633295059,
-0.7194899916648865,
0.6276106834411621,
0.009790378622710705,
0.854626476764679,
-0.9924519658088684,
0.13480225205421448,
0.0034933423157781363,
0.16440579295158386,
-0.0928574651479721,
-0.5872533917427063,
0.1806037575006485,
-0.013819645158946514,
-0.18501655757427216,
-0.27104514837265015,
0.5462658405303955,
-0.7401061058044434,
-0.7935758829116821,
0.01744667999446392,
0.34927132725715637,
0.16182418167591095,
0.35370081663131714,
-0.8196072578430176,
-0.19238398969173431,
0.21777836978435516,
-0.8569822907447815,
0.092816561460495,
0.535651445388794,
0.19718708097934723,
0.5586314797401428,
0.6746373772621155,
0.16127759218215942,
-0.16375181078910828,
-0.40099236369132996,
0.7042191028594971,
-0.8134435415267944,
-0.5005829930305481,
-1.0799591541290283,
0.5618776082992554,
-0.15959982573986053,
-0.8314781188964844,
0.7712628245353699,
0.5795303583145142,
1.27048921585083,
-0.18768426775932312,
0.6691271066665649,
-0.3289082944393158,
0.7098435759544373,
-0.7704224586486816,
1.182725429534912,
-0.691278874874115,
-0.28542575240135193,
-0.13064856827259064,
-0.7596045136451721,
-0.45986539125442505,
1.125838279724121,
-0.48131275177001953,
0.12074194848537445,
0.8637877106666565,
0.8702437281608582,
0.18832071125507355,
-0.26771625876426697,
0.21608830988407135,
0.2912704348564148,
0.03095083311200142,
0.5957551002502441,
0.8388622999191284,
-0.7143741250038147,
0.8099380135536194,
-0.6281569600105286,
-0.03210818022489548,
-0.28340041637420654,
-0.7729786038398743,
-1.0791786909103394,
-0.8007117509841919,
-0.48792532086372375,
-0.27662017941474915,
-0.22759410738945007,
0.8523439168930054,
0.8976753950119019,
-1.0002464056015015,
-0.21310772001743317,
0.16867415606975555,
-0.05673271045088768,
0.003414696780964732,
-0.22948133945465088,
0.6803260445594788,
0.10169871896505356,
-0.942306399345398,
-0.1681031733751297,
-0.2402569204568863,
0.34950506687164307,
0.05166849121451378,
-0.233492910861969,
-0.5719709992408752,
-0.28441447019577026,
0.2685632109642029,
0.20007166266441345,
-0.6212365031242371,
-0.1553119719028473,
0.15727166831493378,
-0.4047176241874695,
0.16300560534000397,
0.11277814209461212,
-0.7008047103881836,
0.28857478499412537,
0.4381369650363922,
0.1836985945701599,
0.611868143081665,
-0.0767999216914177,
0.22386234998703003,
-0.6817858219146729,
0.3086587190628052,
0.2773391604423523,
0.42797061800956726,
0.5698872208595276,
-0.11662273854017258,
0.5241485238075256,
0.3038274943828583,
-0.8730821013450623,
-0.7647945284843445,
-0.15053871273994446,
-1.0892612934112549,
0.023079700767993927,
1.0632165670394897,
-0.4297837018966675,
-0.49805864691734314,
0.2338426560163498,
-0.279823362827301,
0.5927058458328247,
-0.42430025339126587,
0.886284351348877,
1.2008557319641113,
0.203146293759346,
-0.12120268493890762,
-0.5665810704231262,
0.5507276058197021,
0.42267170548439026,
-0.9678511619567871,
-0.3618493676185608,
0.3461913466453552,
0.283367395401001,
0.5017528533935547,
0.6616539359092712,
0.2203432023525238,
0.22931545972824097,
-0.06891965121030807,
0.5190297961235046,
0.2407112866640091,
0.006221507675945759,
-0.1002965047955513,
-0.35473623871803284,
-0.1695980280637741,
-0.3742246627807617
] |
vilsonrodrigues/falcon-7b-instruct-sharded
|
vilsonrodrigues
| 2023-07-13T12:22:04Z | 9,376 | 22 |
transformers
|
[
"transformers",
"safetensors",
"falcon",
"text-generation",
"custom_code",
"en",
"dataset:tiiuae/falcon-refinedweb",
"arxiv:2205.14135",
"arxiv:1911.02150",
"arxiv:2005.14165",
"arxiv:2104.09864",
"arxiv:2306.01116",
"license:apache-2.0",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-06-09T01:06:04Z |
---
datasets:
- tiiuae/falcon-refinedweb
language:
- en
inference: true
widget:
- text: "Hey Falcon! Any recommendations for my holidays in Abu Dhabi?"
example_title: "Abu Dhabi Trip"
- text: "What's the Everett interpretation of quantum mechanics?"
example_title: "Q/A: Quantum & Answers"
- text: "Give me a list of the top 10 dive sites you would recommend around the world."
example_title: "Diving Top 10"
- text: "Can you tell me more about deep-water soloing?"
example_title: "Extreme sports"
- text: "Can you write a short tweet about the Apache 2.0 release of our latest AI model, Falcon LLM?"
example_title: "Twitter Helper"
- text: "What are the responsabilities of a Chief Llama Officer?"
example_title: "Trendy Jobs"
license: apache-2.0
---
# Resharded
Resharded version of https://huggingface.co/tiiuae/falcon-7b-instruct for low RAM enviroments (e.g. Colab, Kaggle) in safetensors
Tutorial: https://medium.com/@vilsonrodrigues/run-your-private-llm-falcon-7b-instruct-with-less-than-6gb-of-gpu-using-4-bit-quantization-ff1d4ffbabcc
---
# ✨ Falcon-7B-Instruct
**Falcon-7B-Instruct is a 7B parameters causal decoder-only model built by [TII](https://www.tii.ae) based on [Falcon-7B](https://huggingface.co/tiiuae/falcon-7b) and finetuned on a mixture of chat/instruct datasets. It is made available under the Apache 2.0 license.**
*Paper coming soon 😊.*
🤗 To get started with Falcon (inference, finetuning, quantization, etc.), we recommend reading [this great blogpost fron HF](https://huggingface.co/blog/falcon)!
## Why use Falcon-7B-Instruct?
* **You are looking for a ready-to-use chat/instruct model based on [Falcon-7B](https://huggingface.co/tiiuae/falcon-7b).**
* **Falcon-7B is a strong base model, outperforming comparable open-source models** (e.g., [MPT-7B](https://huggingface.co/mosaicml/mpt-7b), [StableLM](https://github.com/Stability-AI/StableLM), [RedPajama](https://huggingface.co/togethercomputer/RedPajama-INCITE-Base-7B-v0.1) etc.), thanks to being trained on 1,500B tokens of [RefinedWeb](https://huggingface.co/datasets/tiiuae/falcon-refinedweb) enhanced with curated corpora. See the [OpenLLM Leaderboard](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard).
* **It features an architecture optimized for inference**, with FlashAttention ([Dao et al., 2022](https://arxiv.org/abs/2205.14135)) and multiquery ([Shazeer et al., 2019](https://arxiv.org/abs/1911.02150)).
⚠️ Falcon is now available as a core model in the `transformers` library! To use the in-library version, please install the latest version of `transformers` with `pip install git+https://github.com/ huggingface/transformers.git`, then simply remove the `trust_remote_code=True` argument from `from_pretrained()`.
💬 **This is an instruct model, which may not be ideal for further finetuning.** If you are interested in building your own instruct/chat model, we recommend starting from [Falcon-7B](https://huggingface.co/tiiuae/falcon-7b).
🔥 **Looking for an even more powerful model?** [Falcon-40B-Instruct](https://huggingface.co/tiiuae/falcon-40b-instruct) is Falcon-7B-Instruct's big brother!
```python
from transformers import AutoTokenizer, AutoModelForCausalLM
import transformers
import torch
model = "tiiuae/falcon-7b-instruct"
tokenizer = AutoTokenizer.from_pretrained(model)
pipeline = transformers.pipeline(
"text-generation",
model=model,
tokenizer=tokenizer,
torch_dtype=torch.bfloat16,
device_map="auto",
)
sequences = pipeline(
"Girafatron is obsessed with giraffes, the most glorious animal on the face of this Earth. Giraftron believes all other animals are irrelevant when compared to the glorious majesty of the giraffe.\nDaniel: Hello, Girafatron!\nGirafatron:",
max_length=200,
do_sample=True,
top_k=10,
num_return_sequences=1,
eos_token_id=tokenizer.eos_token_id,
)
for seq in sequences:
print(f"Result: {seq['generated_text']}")
```
💥 **Falcon LLMs require PyTorch 2.0 for use with `transformers`!**
For fast inference with Falcon, check-out [Text Generation Inference](https://github.com/huggingface/text-generation-inference)! Read more in this [blogpost]((https://huggingface.co/blog/falcon).
You will need **at least 16GB of memory** to swiftly run inference with Falcon-7B-Instruct.
# Model Card for Falcon-7B-Instruct
## Model Details
### Model Description
- **Developed by:** [https://www.tii.ae](https://www.tii.ae);
- **Model type:** Causal decoder-only;
- **Language(s) (NLP):** English and French;
- **License:** Apache 2.0;
- **Finetuned from model:** [Falcon-7B](https://huggingface.co/tiiuae/falcon-7b).
### Model Source
- **Paper:** *coming soon*.
## Uses
### Direct Use
Falcon-7B-Instruct has been finetuned on a mixture of instruct and chat datasets.
### Out-of-Scope Use
Production use without adequate assessment of risks and mitigation; any use cases which may be considered irresponsible or harmful.
## Bias, Risks, and Limitations
Falcon-7B-Instruct is mostly trained on English data, and will not generalize appropriately to other languages. Furthermore, as it is trained on a large-scale corpora representative of the web, it will carry the stereotypes and biases commonly encountered online.
### Recommendations
We recommend users of Falcon-7B-Instruct to develop guardrails and to take appropriate precautions for any production use.
## How to Get Started with the Model
```python
from transformers import AutoTokenizer, AutoModelForCausalLM
import transformers
import torch
model = "tiiuae/falcon-7b-instruct"
tokenizer = AutoTokenizer.from_pretrained(model)
pipeline = transformers.pipeline(
"text-generation",
model=model,
tokenizer=tokenizer,
torch_dtype=torch.bfloat16,
device_map="auto",
)
sequences = pipeline(
"Girafatron is obsessed with giraffes, the most glorious animal on the face of this Earth. Giraftron believes all other animals are irrelevant when compared to the glorious majesty of the giraffe.\nDaniel: Hello, Girafatron!\nGirafatron:",
max_length=200,
do_sample=True,
top_k=10,
num_return_sequences=1,
eos_token_id=tokenizer.eos_token_id,
)
for seq in sequences:
print(f"Result: {seq['generated_text']}")
```
## Training Details
### Training Data
Falcon-7B-Instruct was finetuned on a 250M tokens mixture of instruct/chat datasets.
| **Data source** | **Fraction** | **Tokens** | **Description** |
|--------------------|--------------|------------|-----------------------------------|
| [Bai ze](https://github.com/project-baize/baize-chatbot) | 65% | 164M | chat |
| [GPT4All](https://github.com/nomic-ai/gpt4all) | 25% | 62M | instruct |
| [GPTeacher](https://github.com/teknium1/GPTeacher) | 5% | 11M | instruct |
| [RefinedWeb-English](https://huggingface.co/datasets/tiiuae/falcon-refinedweb) | 5% | 13M | massive web crawl |
The data was tokenized with the Falcon-[7B](https://huggingface.co/tiiuae/falcon-7b)/[40B](https://huggingface.co/tiiuae/falcon-40b) tokenizer.
## Evaluation
*Paper coming soon.*
See the [OpenLLM Leaderboard](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard) for early results.
Note that this model variant is not optimized for NLP benchmarks.
## Technical Specifications
For more information about pretraining, see [Falcon-7B](https://huggingface.co/tiiuae/falcon-7b).
### Model Architecture and Objective
Falcon-7B is a causal decoder-only model trained on a causal language modeling task (i.e., predict the next token).
The architecture is broadly adapted from the GPT-3 paper ([Brown et al., 2020](https://arxiv.org/abs/2005.14165)), with the following differences:
* **Positionnal embeddings:** rotary ([Su et al., 2021](https://arxiv.org/abs/2104.09864));
* **Attention:** multiquery ([Shazeer et al., 2019](https://arxiv.org/abs/1911.02150)) and FlashAttention ([Dao et al., 2022](https://arxiv.org/abs/2205.14135));
* **Decoder-block:** parallel attention/MLP with a single layer norm.
| **Hyperparameter** | **Value** | **Comment** |
|--------------------|-----------|----------------------------------------|
| Layers | 32 | |
| `d_model` | 4544 | Increased to compensate for multiquery |
| `head_dim` | 64 | Reduced to optimise for FlashAttention |
| Vocabulary | 65024 | |
| Sequence length | 2048 | |
### Compute Infrastructure
#### Hardware
Falcon-7B-Instruct was trained on AWS SageMaker, on 32 A100 40GB GPUs in P4d instances.
#### Software
Falcon-7B-Instruct was trained a custom distributed training codebase, Gigatron. It uses a 3D parallelism approach combined with ZeRO and high-performance Triton kernels (FlashAttention, etc.)
## Citation
*Paper coming soon* 😊. In the meanwhile, you can use the following information to cite:
```
@article{falcon40b,
title={{Falcon-40B}: an open large language model with state-of-the-art performance},
author={Almazrouei, Ebtesam and Alobeidli, Hamza and Alshamsi, Abdulaziz and Cappelli, Alessandro and Cojocaru, Ruxandra and Debbah, Merouane and Goffinet, Etienne and Heslow, Daniel and Launay, Julien and Malartic, Quentin and Noune, Badreddine and Pannier, Baptiste and Penedo, Guilherme},
year={2023}
}
```
To learn more about the pretraining dataset, see the 📓 [RefinedWeb paper](https://arxiv.org/abs/2306.01116).
```
@article{refinedweb,
title={The {R}efined{W}eb dataset for {F}alcon {LLM}: outperforming curated corpora with web data, and web data only},
author={Guilherme Penedo and Quentin Malartic and Daniel Hesslow and Ruxandra Cojocaru and Alessandro Cappelli and Hamza Alobeidli and Baptiste Pannier and Ebtesam Almazrouei and Julien Launay},
journal={arXiv preprint arXiv:2306.01116},
eprint={2306.01116},
eprinttype = {arXiv},
url={https://arxiv.org/abs/2306.01116},
year={2023}
}
```
## License
Falcon-7B-Instruct is made available under the Apache 2.0 license.
## Contact
[email protected]
|
[
-0.4815160632133484,
-0.9345639944076538,
0.04302403703331947,
0.39234912395477295,
-0.11467638611793518,
-0.07740823924541473,
-0.15091805160045624,
-0.45258137583732605,
0.19723820686340332,
0.37384381890296936,
-0.5150320529937744,
-0.45321717858314514,
-0.7642876505851746,
0.0488852895796299,
-0.38916677236557007,
1.0317299365997314,
0.23103773593902588,
-0.19099146127700806,
0.16844166815280914,
0.0019575320184230804,
-0.2948847711086273,
-0.49063676595687866,
-0.9645262360572815,
-0.04905863106250763,
0.3576083779335022,
0.23491163551807404,
0.6503012180328369,
0.812495231628418,
0.6651257276535034,
0.41146913170814514,
-0.23629242181777954,
0.23841966688632965,
-0.6384078860282898,
-0.19029991328716278,
0.044421758502721786,
-0.26590678095817566,
-0.2945713400840759,
-0.0020670704543590546,
0.7042708992958069,
0.4359625279903412,
-0.04368918389081955,
0.23439805209636688,
-0.013398479670286179,
0.5451784133911133,
-0.5751273036003113,
0.5409887433052063,
-0.5635042786598206,
-0.0776708573102951,
-0.16482426226139069,
0.14214925467967987,
-0.5305130481719971,
0.07126413285732269,
-0.23528051376342773,
-0.7924315929412842,
0.26991936564445496,
0.2317669838666916,
1.249579906463623,
0.3801690936088562,
-0.3507823646068573,
-0.20793935656547546,
-0.4276220202445984,
0.729207456111908,
-0.8406150937080383,
0.4115068316459656,
0.18096444010734558,
0.3668830692768097,
-0.39047935605049133,
-1.0915992259979248,
-0.5397116541862488,
-0.16256624460220337,
-0.08093427121639252,
0.3287801444530487,
-0.23530066013336182,
0.08162453770637512,
0.46422484517097473,
0.2023494690656662,
-0.38521745800971985,
0.003160743275657296,
-0.4989645183086395,
-0.23705993592739105,
0.6094793081283569,
0.009028784930706024,
0.2572857737541199,
-0.3239101469516754,
-0.38767385482788086,
-0.31458503007888794,
-0.40233030915260315,
0.24934612214565277,
0.401121586561203,
0.3548556864261627,
-0.3680221736431122,
0.46428921818733215,
-0.2680119574069977,
0.5000866651535034,
0.511415958404541,
-0.12971796095371246,
0.38939759135246277,
-0.35561293363571167,
-0.38694047927856445,
0.007572623901069164,
1.1987786293029785,
0.2109948694705963,
0.11138927936553955,
-0.06660579144954681,
-0.018459247425198555,
0.058673977851867676,
0.15565125644207,
-1.0107572078704834,
0.08279243856668472,
0.2137901484966278,
-0.5265433192253113,
-0.32335585355758667,
0.2451528012752533,
-0.7065314054489136,
-0.08670017868280411,
0.15486325323581696,
0.21633410453796387,
-0.5450189709663391,
-0.36928242444992065,
0.23407255113124847,
-0.11577562987804413,
0.22932946681976318,
-0.012286319397389889,
-0.8291149139404297,
0.22524599730968475,
0.619734525680542,
0.873230516910553,
0.0869438499212265,
-0.5584291219711304,
-0.6715937256813049,
-0.010215450078248978,
-0.20077022910118103,
0.5681995153427124,
-0.428577721118927,
-0.3530251681804657,
-0.15237252414226532,
0.29536259174346924,
-0.3570367693901062,
-0.17386072874069214,
0.8177784085273743,
-0.35145363211631775,
0.30927008390426636,
-0.2644262909889221,
-0.6120420098304749,
-0.3589053750038147,
-0.03383772447705269,
-0.5588645339012146,
0.9903632998466492,
0.029704293236136436,
-1.1215263605117798,
0.18022263050079346,
-0.8082955479621887,
-0.30854740738868713,
-0.24643322825431824,
-0.014431847259402275,
-0.5166955590248108,
-0.1438370943069458,
0.4716865122318268,
0.6057713627815247,
-0.29248926043510437,
0.4670676589012146,
-0.5914129018783569,
-0.6057518124580383,
0.015292813070118427,
-0.28246885538101196,
0.8943182826042175,
0.5184730887413025,
-0.5695495009422302,
0.16755923628807068,
-0.5391739010810852,
-0.24164742231369019,
0.21736085414886475,
-0.00854711513966322,
0.17184773087501526,
-0.00048458989476785064,
0.042255185544490814,
0.2848763167858124,
0.07798291742801666,
-0.5536544919013977,
0.07779736816883087,
-0.6295444369316101,
0.6069739460945129,
0.48814982175827026,
-0.06815201044082642,
0.42167502641677856,
-0.4990248382091522,
0.4022372364997864,
0.5045996308326721,
0.3877110183238983,
-0.22263266146183014,
-0.6380298733711243,
-1.0307127237319946,
-0.32212743163108826,
0.11299310624599457,
0.42900750041007996,
-0.7341903448104858,
0.4764113128185272,
-0.17888841032981873,
-0.6566758751869202,
-0.5370272994041443,
-0.191972553730011,
0.49118688702583313,
0.6297842860221863,
0.49979475140571594,
0.05773777887225151,
-0.6106817126274109,
-0.8441662788391113,
-0.05784175172448158,
-0.273905485868454,
0.2718742787837982,
0.12854550778865814,
0.5649863481521606,
-0.3869178295135498,
0.6721616387367249,
-0.3070690333843231,
-0.25992998480796814,
-0.26288989186286926,
0.015807706862688065,
0.35491254925727844,
0.5666221976280212,
0.7368866205215454,
-0.5486175417900085,
-0.3327900171279907,
-0.12339385598897934,
-0.8822906613349915,
-0.045204516500234604,
-0.17264555394649506,
-0.3466476798057556,
0.4461279511451721,
0.5428235530853271,
-0.8509977459907532,
0.4142088294029236,
0.3635363280773163,
-0.3343891203403473,
0.34791240096092224,
0.014048147015273571,
0.12314315885305405,
-1.2891595363616943,
0.1351223886013031,
0.16518227756023407,
0.03208514302968979,
-0.5065248012542725,
0.17521889507770538,
-0.007323726080358028,
-0.04220608249306679,
-0.6618567109107971,
0.7941212058067322,
-0.5101443529129028,
0.056144192814826965,
-0.08931954950094223,
-0.06526482105255127,
-0.15767203271389008,
0.6970213651657104,
0.046920884400606155,
0.862411618232727,
0.5998755693435669,
-0.4039488434791565,
0.021975617855787277,
0.41845017671585083,
-0.005538612138479948,
0.07401317358016968,
-0.8363274931907654,
0.03958960250020027,
-0.13874392211437225,
0.38038721680641174,
-0.8970316648483276,
-0.24437542259693146,
0.5311294198036194,
-0.6950054168701172,
0.37750211358070374,
-0.1961537003517151,
-0.40189531445503235,
-0.5496394634246826,
-0.2798350155353546,
0.043116699904203415,
0.6316090822219849,
-0.5692145824432373,
0.48433589935302734,
0.3025451600551605,
0.11743490397930145,
-0.9587032198905945,
-0.6172313094139099,
-0.025077367201447487,
-0.32560062408447266,
-0.8574023246765137,
0.3144911527633667,
-0.019518127664923668,
0.0637718215584755,
-0.06915093958377838,
0.09931904822587967,
0.10146838426589966,
0.04694269597530365,
0.5750147700309753,
0.19874249398708344,
-0.2503237724304199,
-0.11447034031152725,
0.10883790254592896,
-0.16015611588954926,
0.06100049614906311,
-0.20328988134860992,
0.4934060871601105,
-0.6604573726654053,
-0.26415780186653137,
-0.46359413862228394,
0.28805115818977356,
0.4966247081756592,
-0.16221119463443756,
0.8774660229682922,
1.0973566770553589,
-0.32099464535713196,
0.06797214597463608,
-0.6810497641563416,
-0.19714701175689697,
-0.5380067229270935,
0.399640291929245,
-0.38856062293052673,
-0.9506104588508606,
0.700505256652832,
0.2659151256084442,
0.02289859764277935,
0.8687582612037659,
0.4887184202671051,
0.1043863371014595,
1.1217331886291504,
0.3881528675556183,
-0.17308107018470764,
0.44527801871299744,
-0.5199246406555176,
0.08329355716705322,
-0.7437487840652466,
-0.2012014538049698,
-0.5812278985977173,
-0.10565361380577087,
-0.759459912776947,
-0.24288155138492584,
0.05371090769767761,
0.31891608238220215,
-0.8203095197677612,
0.2974289357662201,
-0.6327289342880249,
0.17512042820453644,
0.5901878476142883,
0.03774969279766083,
0.013609797693789005,
-0.011363739147782326,
-0.14108070731163025,
0.18023034930229187,
-0.8941917419433594,
-0.5738286972045898,
1.0117663145065308,
0.4193568527698517,
0.7013081312179565,
-0.05569218471646309,
0.8562104105949402,
-0.04254883527755737,
0.3810651898384094,
-0.49939265847206116,
0.5523155927658081,
-0.11986952275037766,
-0.5305262207984924,
-0.10449516028165817,
-0.5520047545433044,
-1.0159753561019897,
0.10513181984424591,
-0.16605429351329803,
-0.8410758972167969,
0.0523904524743557,
-0.03962638974189758,
-0.16596347093582153,
0.28953319787979126,
-1.0010387897491455,
0.9685262441635132,
0.015167779289186,
-0.35345131158828735,
0.12913598120212555,
-0.7749485969543457,
0.6230728626251221,
0.027362197637557983,
0.18632857501506805,
-0.032287485897541046,
0.057385850697755814,
0.9170641899108887,
-0.6047125458717346,
0.8957259058952332,
-0.32743406295776367,
0.41584843397140503,
0.554613471031189,
-0.2658551335334778,
0.6348023414611816,
0.15447188913822174,
-0.1911800354719162,
0.36562812328338623,
0.25960320234298706,
-0.40203142166137695,
-0.48722532391548157,
0.8228060603141785,
-1.2175270318984985,
-0.6601322889328003,
-0.566629946231842,
-0.4612332880496979,
-0.07710745185613632,
0.26293542981147766,
0.41346052289009094,
0.3133741319179535,
0.08425615727901459,
0.33706358075141907,
0.25125768780708313,
-0.41521281003952026,
0.7060120105743408,
0.3299572169780731,
-0.24419713020324707,
-0.4749900698661804,
0.7493398189544678,
0.03090445138514042,
0.057778049260377884,
0.29927656054496765,
0.2560896873474121,
-0.644665539264679,
-0.44428882002830505,
-0.48985040187835693,
0.4419598877429962,
-0.6524239182472229,
-0.34692808985710144,
-0.9398549795150757,
-0.6029433608055115,
-0.5905454158782959,
-0.06379271298646927,
-0.4202378988265991,
-0.2868841588497162,
-0.594565749168396,
0.006880801171064377,
0.5118895769119263,
0.46586424112319946,
0.015695320442318916,
0.5145162343978882,
-0.8872215747833252,
0.16433589160442352,
-0.09832727909088135,
0.1908743679523468,
0.0942380353808403,
-0.7167757153511047,
-0.22167672216892242,
0.4372778534889221,
-0.45168337225914,
-0.6480087041854858,
0.5476579666137695,
0.25275281071662903,
0.6746742725372314,
0.413255900144577,
0.1638282686471939,
0.7954425811767578,
-0.22363783419132233,
0.7842053174972534,
0.23396283388137817,
-0.8786380290985107,
0.33157914876937866,
-0.5158097743988037,
0.23519150912761688,
0.3687244653701782,
0.40413543581962585,
-0.4082391560077667,
-0.5296305418014526,
-0.9599441289901733,
-0.516845166683197,
0.8783552646636963,
0.4695449471473694,
0.02334752306342125,
-0.28170204162597656,
0.39005956053733826,
-0.1583353728055954,
0.015320872887969017,
-0.5455348491668701,
-0.2488269805908203,
-0.6713768839836121,
-0.37667524814605713,
-0.16479381918907166,
-0.04899362102150917,
0.24435871839523315,
-0.3187483847141266,
0.813132643699646,
-0.1272711455821991,
0.7363448739051819,
0.1997786909341812,
-0.16450387239456177,
0.07840888202190399,
-0.076601043343544,
0.6722186207771301,
0.3765338659286499,
-0.276360422372818,
-0.03704631328582764,
0.09404593706130981,
-0.6474913358688354,
0.05742589384317398,
0.3822561502456665,
-0.1983584314584732,
-0.13097397983074188,
0.39909422397613525,
1.058374285697937,
0.15833942592144012,
-0.39954397082328796,
0.4672408103942871,
-0.15350501239299774,
-0.21427665650844574,
-0.12469585984945297,
0.2854487895965576,
0.29463911056518555,
0.32134488224983215,
0.20381905138492584,
-0.049956198781728745,
0.05632881820201874,
-0.24521680176258087,
0.1996934562921524,
0.215761199593544,
-0.27921274304389954,
-0.2313789427280426,
1.0409395694732666,
0.17661364376544952,
-0.20203696191310883,
0.6377238035202026,
-0.37270471453666687,
-0.42246994376182556,
0.8512046337127686,
0.6185733079910278,
0.8999649286270142,
0.08037105202674866,
0.2658531069755554,
0.6723628640174866,
0.2862831950187683,
-0.1975870579481125,
0.1971018761396408,
0.271319717168808,
-0.726063072681427,
-0.4711216688156128,
-0.7327866554260254,
-0.22218570113182068,
0.09010772407054901,
-0.496347576379776,
0.3833276331424713,
-0.48563000559806824,
-0.2902214229106903,
0.18914994597434998,
0.286519855260849,
-0.7127454280853271,
0.12394081056118011,
-0.12093430012464523,
0.8924035429954529,
-0.5199167132377625,
0.846019446849823,
0.6091572642326355,
-0.7900567054748535,
-1.1190158128738403,
-0.26912161707878113,
-0.09310071915388107,
-0.8873496651649475,
0.6940105557441711,
0.4202619194984436,
0.04451122507452965,
0.2435256689786911,
-0.5344544053077698,
-0.8609687685966492,
1.0479172468185425,
0.4044950604438782,
-0.5327926278114319,
-0.042291250079870224,
0.1903691291809082,
0.49712181091308594,
-0.3719428777694702,
0.7678694128990173,
0.3789006173610687,
0.4741736352443695,
0.3204832375049591,
-0.7787347435951233,
0.22578048706054688,
-0.5452508926391602,
0.044747110456228256,
0.11953230202198029,
-1.0523086786270142,
0.8696481585502625,
-0.2587491571903229,
-0.21480964124202728,
-0.00994100607931614,
0.9071059226989746,
0.3711857497692108,
0.2283400446176529,
0.4145839512348175,
0.5310505628585815,
0.6059732437133789,
-0.1670871376991272,
1.0303202867507935,
-0.584696352481842,
0.61600261926651,
0.8976982831954956,
0.024234499782323837,
0.7257001996040344,
0.2711895704269409,
-0.07244200259447098,
0.25775837898254395,
0.9104447364807129,
-0.02805989980697632,
0.24005819857120514,
-0.08332523703575134,
0.10053257644176483,
-0.1541261225938797,
-0.004572284873574972,
-0.5991369485855103,
0.46351319551467896,
0.2580733299255371,
-0.28410518169403076,
-0.11263196170330048,
-0.07190630584955215,
0.3601798117160797,
-0.3274798095226288,
-0.05642838403582573,
0.542229175567627,
0.11351754516363144,
-0.7348455786705017,
1.0061806440353394,
0.14929325878620148,
0.867222249507904,
-0.5822992920875549,
0.13115553557872772,
-0.47965890169143677,
0.22222675383090973,
-0.174265056848526,
-0.6084765791893005,
0.45568716526031494,
-0.055981703102588654,
0.0027260766364634037,
-0.015555210411548615,
0.7523421049118042,
-0.28974074125289917,
-0.7307956218719482,
0.24471122026443481,
0.29441776871681213,
0.2399974763393402,
-0.2079523652791977,
-0.8939185738563538,
0.33646881580352783,
-0.13963083922863007,
-0.40006116032600403,
0.23733723163604736,
0.24607208371162415,
-0.057536035776138306,
0.8207658529281616,
0.7381239533424377,
-0.1709977239370346,
0.21905536949634552,
-0.015662046149373055,
0.8118658661842346,
-0.7407495379447937,
-0.442780077457428,
-0.7187976837158203,
0.46401020884513855,
-0.13299663364887238,
-0.3654402196407318,
0.7796733975410461,
0.603977382183075,
0.8139171004295349,
-0.1022697389125824,
0.6180376410484314,
-0.10928475111722946,
0.2617155909538269,
-0.43846988677978516,
0.8125146627426147,
-0.5149118900299072,
0.10467515140771866,
-0.39035090804100037,
-0.7378318905830383,
-0.1604316085577011,
0.6531690955162048,
-0.1576031595468521,
0.25295308232307434,
0.7468608617782593,
1.0703816413879395,
-0.11945079267024994,
0.26388925313949585,
0.14789439737796783,
0.3708111345767975,
0.47333502769470215,
0.7393611073493958,
0.8126033544540405,
-0.8117763996124268,
0.6738338470458984,
-0.35993027687072754,
-0.10742472857236862,
-0.23671954870224,
-0.8353271484375,
-1.1829400062561035,
-0.612427294254303,
-0.3169979453086853,
-0.4679964482784271,
0.10455875843763351,
0.8855153322219849,
0.7966329455375671,
-0.5949231386184692,
-0.229180708527565,
-0.19681061804294586,
0.06341365724802017,
-0.26729726791381836,
-0.22767440974712372,
0.49833133816719055,
-0.5179762840270996,
-0.754454493522644,
0.16322071850299835,
0.030162766575813293,
0.13033367693424225,
-0.09841598570346832,
-0.26209789514541626,
-0.3684442341327667,
0.015150663442909718,
0.5927409529685974,
0.29066184163093567,
-0.812097430229187,
-0.4327801465988159,
0.21245449781417847,
-0.15905165672302246,
0.04311244562268257,
0.24914151430130005,
-0.5603173971176147,
0.2277059108018875,
0.44209611415863037,
0.695490837097168,
0.8966749310493469,
-0.047188591212034225,
0.20368975400924683,
-0.339627742767334,
0.44371622800827026,
-0.1189754530787468,
0.4575901925563812,
0.19245876371860504,
-0.39087003469467163,
0.6101433038711548,
0.4294942021369934,
-0.5225115418434143,
-0.7340134978294373,
-0.19008636474609375,
-1.291763186454773,
-0.0704861730337143,
1.3136518001556396,
-0.1932782530784607,
-0.4580692648887634,
0.18953382968902588,
-0.4035158157348633,
0.544082760810852,
-0.6290952563285828,
0.6212428212165833,
0.5390003323554993,
0.03595278039574623,
-0.216507226228714,
-0.36150074005126953,
0.3906521797180176,
0.1374121904373169,
-0.9415394067764282,
-0.27251797914505005,
0.3327529728412628,
0.3238685727119446,
-0.04168196767568588,
0.5950110554695129,
0.07352264970541,
0.06446368992328644,
0.2104417234659195,
-0.03442690148949623,
-0.5130165815353394,
-0.1938817948102951,
-0.004786666948348284,
0.12738844752311707,
-0.29265496134757996,
-0.3402678966522217
] |
michellejieli/NSFW_text_classifier
|
michellejieli
| 2022-12-10T19:59:37Z | 9,375 | 39 |
transformers
|
[
"transformers",
"pytorch",
"distilbert",
"text-classification",
"distilroberta",
"sentiment",
"NSFW",
"inappropriate",
"spam",
"twitter",
"reddit",
"en",
"endpoints_compatible",
"has_space",
"region:us"
] |
text-classification
| 2022-12-10T01:42:56Z |
---
language: "en"
tags:
- distilroberta
- sentiment
- NSFW
- inappropriate
- spam
- twitter
- reddit
widget:
- text: "I like you. You remind me of me when I was young and stupid."
- text: "I see you’ve set aside this special time to humiliate yourself in public."
- text: "Have a great weekend! See you next week!"
---
# Fine-tuned DistilRoBERTa-base for NSFW Classification
# Model Description
DistilBERT is a transformer model that performs sentiment analysis. I fine-tuned the model on Reddit posts with the purpose of classifying not safe for work (NSFW) content, specifically text that is considered inappropriate and unprofessional. The model predicts 2 classes, which are NSFW or safe for work (SFW).
The model is a fine-tuned version of [DistilBERT](https://huggingface.co/docs/transformers/model_doc/distilbert).
It was fine-tuned on 14317 Reddit posts pulled from the (Reddit API) [https://praw.readthedocs.io/en/stable/].
# How to Use
```python
from transformers import pipeline
classifier = pipeline("sentiment-analysis", model="michellejieli/NSFW_text_classification")
classifier("I see you’ve set aside this special time to humiliate yourself in public.")
```
```python
Output:
[{'label': 'NSFW', 'score': 0.998853325843811}]
```
# Contact
Please reach out to [[email protected]](mailto:[email protected]) if you have any questions or feedback.
---
|
[
-0.45139095187187195,
-0.8422672748565674,
0.1740667223930359,
0.48894745111465454,
-0.4710892140865326,
-0.03756437078118324,
0.07083941251039505,
-0.3012986183166504,
0.003890876891091466,
0.055641476064920425,
-0.5298915505409241,
-0.5676290988922119,
-0.9268268346786499,
0.3760957717895508,
-0.7623754143714905,
1.4412957429885864,
0.31759896874427795,
-0.20260049402713776,
-0.36355072259902954,
0.09111468493938446,
-0.19645445048809052,
-0.42505159974098206,
-0.15419797599315643,
-0.30173102021217346,
0.41443318128585815,
0.29986223578453064,
0.7653675675392151,
0.3551101088523865,
0.6762192249298096,
0.3804854154586792,
-0.27751588821411133,
-0.040732305496931076,
-0.7475523352622986,
0.08280922472476959,
-0.43588465452194214,
-0.05490856245160103,
-0.4337441623210907,
0.19574764370918274,
0.09304491430521011,
0.49449941515922546,
-0.268509179353714,
0.5618629455566406,
0.1930125206708908,
0.682214081287384,
-0.6644649505615234,
0.3988519012928009,
-0.5529409646987915,
0.18118388950824738,
-0.09430203586816788,
-0.005726219154894352,
-0.4448360502719879,
-0.4531381130218506,
0.13952891528606415,
-0.2594524621963501,
0.2937510907649994,
0.050470273941755295,
0.9386096596717834,
0.5805482268333435,
-0.40349864959716797,
0.08774136006832123,
-0.6830698847770691,
0.8661855459213257,
-0.5324059724807739,
0.2519877254962921,
0.4481739401817322,
0.18937212228775024,
0.015454507432878017,
-0.9908785820007324,
-0.5319671034812927,
0.05520376190543175,
-0.4230990409851074,
-0.024543924257159233,
-0.6598619222640991,
0.03447706252336502,
0.49592292308807373,
0.47592148184776306,
-0.429347425699234,
-0.16881780326366425,
-0.5613502860069275,
0.028001142665743828,
0.7831476926803589,
0.24174737930297852,
-0.014331100508570671,
-0.4106220602989197,
-0.40422186255455017,
0.08202504366636276,
0.09228842705488205,
0.17292849719524384,
0.3449038565158844,
0.1377829611301422,
-0.06990164518356323,
0.49707144498825073,
-0.3903002440929413,
0.662775993347168,
0.5218546986579895,
-0.21825169026851654,
0.4761357307434082,
0.1962498426437378,
-0.41618436574935913,
-0.023417362943291664,
1.052046537399292,
0.8384616374969482,
0.3900664150714874,
0.07115107774734497,
-0.1214304268360138,
0.20035791397094727,
0.7171173691749573,
-1.0967278480529785,
-0.6291709542274475,
0.11576522141695023,
-0.5217417478561401,
-1.0863049030303955,
0.3790404796600342,
-0.6832548975944519,
-0.5071547031402588,
-0.2940540611743927,
0.15860265493392944,
-0.1621781289577484,
-0.48263072967529297,
0.00859046820551157,
-0.24234680831432343,
-0.2918289601802826,
0.33887001872062683,
-0.8924596905708313,
0.08776821941137314,
0.6406431198120117,
0.6661376357078552,
-0.0007545383414253592,
-0.3017607033252716,
-0.28101983666419983,
-0.42704296112060547,
-0.051327791064977646,
0.479885071516037,
-0.4185171127319336,
-0.3328816890716553,
-0.060087673366069794,
0.3782183825969696,
0.20617039501667023,
-0.3920748233795166,
0.9321777820587158,
-0.44799095392227173,
0.195306196808815,
0.12387115508317947,
-0.12931491434574127,
-0.40283098816871643,
0.33838388323783875,
-0.7208930850028992,
1.136098027229309,
0.4551909863948822,
-1.4938322305679321,
0.29553496837615967,
-0.6011865735054016,
-0.6290784478187561,
-0.07277201861143112,
0.4060705900192261,
-0.6208865642547607,
0.20146290957927704,
-0.10389895737171173,
0.8247674703598022,
-0.016455959528684616,
0.4781650900840759,
-0.4434407949447632,
-0.45032283663749695,
0.5469516515731812,
-0.48814278841018677,
0.840782105922699,
0.32414695620536804,
-0.2826591432094574,
0.13872121274471283,
-0.6343777179718018,
-0.031064771115779877,
0.005743709392845631,
-0.21054913103580475,
-0.48898714780807495,
-0.005210619419813156,
0.2708624601364136,
0.19413624703884125,
0.2686375379562378,
-0.5533512234687805,
-0.10630208998918533,
-0.17098447680473328,
0.6562160849571228,
0.7316752672195435,
-0.20581263303756714,
0.44668978452682495,
-0.30603861808776855,
0.370785653591156,
0.012339714914560318,
0.4984202980995178,
0.43307018280029297,
-0.3638203740119934,
-0.5727016925811768,
-0.24684004485607147,
-0.07692944258451462,
0.3212994933128357,
-0.6108276844024658,
0.5073529481887817,
-0.10650075972080231,
-0.8280291557312012,
-0.44518405199050903,
-0.2073110193014145,
0.33238717913627625,
0.8071083426475525,
0.46316424012184143,
0.03533170744776726,
-0.7015294432640076,
-0.7664364576339722,
-0.14302977919578552,
-0.24775823950767517,
0.13267171382904053,
-0.22627466917037964,
0.43132057785987854,
-0.521152675151825,
0.9489991664886475,
-0.6890337467193604,
-0.2981085777282715,
0.05709116905927658,
0.3386770486831665,
0.5438371896743774,
0.34520357847213745,
0.7103130221366882,
-1.15617835521698,
-0.7283197045326233,
-0.26862668991088867,
-0.8404068350791931,
-0.17191894352436066,
0.40185874700546265,
-0.17650383710861206,
-0.09528172761201859,
0.2252967804670334,
-0.3608929514884949,
0.5184129476547241,
0.5568938255310059,
-0.4204823970794678,
0.7399930953979492,
0.1568499654531479,
0.13228094577789307,
-1.0047742128372192,
0.06835141032934189,
0.3970334529876709,
-0.46988674998283386,
-0.6965533494949341,
0.0491773821413517,
-0.038465466350317,
-0.0023035870399326086,
-0.8599399328231812,
0.1067357286810875,
-0.16305950284004211,
0.5070216655731201,
-0.4738568365573883,
-0.4853440523147583,
0.18398991227149963,
0.32297399640083313,
0.1303156018257141,
0.4044879078865051,
0.6025144457817078,
-0.6401322484016418,
0.5621825456619263,
0.4394422769546509,
-0.03895582631230354,
0.7013630867004395,
-0.7022945880889893,
0.24856258928775787,
-0.2134387493133545,
0.05360002443194389,
-0.7954882383346558,
-0.263180673122406,
0.2798716425895691,
-0.4657163619995117,
0.2343895435333252,
-0.2425457239151001,
-0.33525046706199646,
-0.7966222167015076,
-0.5621339082717896,
0.2160552740097046,
0.5041369795799255,
-0.7254295349121094,
0.4066070020198822,
0.6396523118019104,
0.03939202427864075,
-0.932524561882019,
-0.7928013205528259,
-0.3890376091003418,
-0.4708242416381836,
-0.5790340900421143,
0.2582043707370758,
0.029127445071935654,
-0.4021570682525635,
-0.06811263412237167,
-0.31451311707496643,
-0.4858852028846741,
0.2536914646625519,
0.6583113670349121,
0.3750595152378082,
0.19320450723171234,
-0.2427058219909668,
0.26674097776412964,
-0.21604129672050476,
0.4857892692089081,
0.22782030701637268,
0.420924574136734,
-0.4946579933166504,
0.007317629177123308,
-0.537299394607544,
0.027304314076900482,
0.7820791006088257,
0.13439570367336273,
0.5668575167655945,
0.9106742739677429,
-0.45786407589912415,
-0.34080663323402405,
-0.2181006520986557,
-0.2848972678184509,
-0.583779513835907,
0.45336636900901794,
-0.07125606387853622,
-0.8869945406913757,
-0.011489802971482277,
0.09180867671966553,
0.0658804327249527,
0.5544546246528625,
0.6018018126487732,
-0.321058988571167,
1.0178786516189575,
0.7697405219078064,
-0.1985027939081192,
0.33291298151016235,
-0.2683936059474945,
0.21773689985275269,
-0.6419534087181091,
-0.31803253293037415,
-0.49803122878074646,
-0.4068633019924164,
-0.6461508870124817,
-0.16158853471279144,
0.1626306027173996,
0.11708639562129974,
-0.29096075892448425,
0.6083236336708069,
-1.1111044883728027,
0.5932986736297607,
0.3641375005245209,
0.04885603487491608,
0.3540382385253906,
-0.03033551201224327,
0.14250758290290833,
-0.2831316888332367,
-0.33411362767219543,
-0.6710029244422913,
0.6338915228843689,
0.5972760915756226,
1.324199914932251,
0.051761798560619354,
0.567862868309021,
0.5036104917526245,
0.5968426465988159,
-0.9841581583023071,
0.35014304518699646,
-0.5299777984619141,
-0.6702154278755188,
-0.1534339338541031,
-0.36182302236557007,
-0.5132669806480408,
0.2126377820968628,
-0.21152004599571228,
-0.6910771131515503,
0.17055866122245789,
0.11056190729141235,
-0.023705709725618362,
0.2586965262889862,
-0.5059930086135864,
0.8311043381690979,
-0.11675504595041275,
-0.41866451501846313,
-0.06620737165212631,
-0.6381266713142395,
0.5523550510406494,
-0.10023368149995804,
0.2899280786514282,
-0.4487263262271881,
0.41639694571495056,
0.6769968867301941,
-0.3816210627555847,
1.1023876667022705,
-0.21207496523857117,
-0.03768851235508919,
0.14621737599372864,
0.19625329971313477,
0.09037911146879196,
0.33611997961997986,
-0.2984449565410614,
0.5072656869888306,
0.22222474217414856,
0.19184760749340057,
-0.07929851114749908,
0.7295947074890137,
-0.8357028961181641,
-0.3541071116924286,
-0.902328372001648,
-0.34189948439598083,
0.02602015621960163,
0.22037990391254425,
0.5120646953582764,
0.1172550842165947,
-0.2789079546928406,
0.47757014632225037,
0.5138628482818604,
0.1798715591430664,
0.425435334444046,
0.46757593750953674,
-0.2818335294723511,
-0.13423655927181244,
0.7494111657142639,
-0.21702530980110168,
-0.2368541955947876,
0.42611265182495117,
0.44848746061325073,
-0.6588957905769348,
-0.20478682219982147,
-0.16626699268817902,
-0.012795149348676205,
-0.751506507396698,
-0.6282649040222168,
-0.6860869526863098,
-0.44072550535202026,
-0.4422311782836914,
-0.1306409239768982,
-0.18124009668827057,
-0.24058958888053894,
-0.8563374280929565,
-0.2936684191226959,
0.7189735174179077,
0.7256566882133484,
-0.05672983080148697,
0.22262278199195862,
-0.8651073575019836,
0.39863625168800354,
0.28212177753448486,
0.38248032331466675,
-0.19217433035373688,
-0.6631066799163818,
0.03583721071481705,
0.0805291011929512,
-0.6556302309036255,
-0.7657478451728821,
0.5411508083343506,
0.2976209819316864,
0.3557673990726471,
0.6405668258666992,
0.7577752470970154,
0.5658473372459412,
-0.25070130825042725,
0.6246833205223083,
0.42932119965553284,
-0.9893832802772522,
0.47601422667503357,
-0.21237502992153168,
0.004024525638669729,
0.6621304750442505,
0.8419030904769897,
-0.47582530975341797,
-0.5292168855667114,
-0.5545477867126465,
-0.7862120270729065,
0.8512264490127563,
0.27827462553977966,
0.38847053050994873,
-0.17657893896102905,
-0.0021339450031518936,
0.3054782450199127,
0.37626925110816956,
-0.8904340863227844,
-0.23188121616840363,
-0.6581149697303772,
-0.2502286434173584,
0.2186688631772995,
-0.4004856050014496,
-0.1887468546628952,
-0.5853036046028137,
0.6347071528434753,
-0.19673629105091095,
0.08669241517782211,
-0.07628018409013748,
-0.1463206559419632,
-0.1291758269071579,
0.24103085696697235,
0.20249363780021667,
0.5710715055465698,
-0.36504343152046204,
0.1984829306602478,
0.13462768495082855,
-0.8051748275756836,
0.08346165716648102,
0.21579957008361816,
0.06747903674840927,
0.269002765417099,
0.08755052089691162,
0.7019838690757751,
-0.03958435729146004,
-0.19566388428211212,
0.6688559651374817,
-0.47074100375175476,
-0.4587184488773346,
-0.5122361183166504,
0.2667304277420044,
-0.1041368842124939,
0.26092275977134705,
0.2967987060546875,
0.2934023141860962,
0.3962506353855133,
-0.40892916917800903,
0.2605096697807312,
0.1879022866487503,
-0.5242312550544739,
-0.3583088517189026,
0.9023364186286926,
0.3255375027656555,
-0.19569915533065796,
0.7810965776443481,
-0.21260610222816467,
-0.5915066003799438,
0.4935450553894043,
0.3779672384262085,
0.9440793395042419,
-0.011224238201975822,
0.4691942632198334,
0.5192997455596924,
0.1539698839187622,
-0.2009008526802063,
0.3657979667186737,
0.028985237702727318,
-0.601726233959198,
-0.12511511147022247,
-1.1885621547698975,
-0.3380019962787628,
0.14050503075122833,
-1.0084582567214966,
0.4766348600387573,
-0.6761479377746582,
-0.4857400059700012,
0.23760026693344116,
-0.27586042881011963,
-0.43795090913772583,
0.43268638849258423,
0.00003440134969423525,
0.7703073024749756,
-1.1222501993179321,
0.8203107714653015,
0.9149309396743774,
-0.28403720259666443,
-0.8847248554229736,
0.0277249813079834,
0.07103290408849716,
-0.3433206081390381,
0.498685359954834,
0.5126270055770874,
-0.21709977090358734,
-0.1015874594449997,
-0.4819527566432953,
-0.5710169076919556,
0.8582936525344849,
0.22240528464317322,
-0.765611469745636,
0.008578724227845669,
0.17168980836868286,
0.7821464538574219,
-0.08475528657436371,
0.22139380872249603,
0.4533888101577759,
0.4674907922744751,
-0.00891658291220665,
-0.9327736496925354,
0.15746217966079712,
-0.5219749212265015,
0.00290789850987494,
0.1356639862060547,
-0.493313193321228,
0.9432190656661987,
-0.1429489403963089,
-0.1525510549545288,
0.02739250287413597,
0.4794278144836426,
0.042704906314611435,
0.5456403493881226,
0.7199433445930481,
0.5944586992263794,
0.671787440776825,
-0.5870847105979919,
0.6751172542572021,
-0.13280513882637024,
0.948593020439148,
1.0220458507537842,
-0.10247507691383362,
0.6343385577201843,
0.4434901773929596,
-0.24860745668411255,
0.6573853492736816,
0.5796446800231934,
-0.3470454216003418,
0.7216547727584839,
0.08774127066135406,
-0.02851254679262638,
-0.016840195283293724,
-0.13948626816272736,
-0.47785574197769165,
0.6268056035041809,
0.05262519419193268,
-0.5377487540245056,
-0.1664106249809265,
0.12175848335027695,
0.05797039717435837,
0.1019267588853836,
-0.17868821322917938,
0.8123771548271179,
0.2140311300754547,
-0.2712845504283905,
0.7869417667388916,
0.10336434096097946,
1.016913890838623,
-0.18702486157417297,
0.01439669169485569,
0.08907238394021988,
0.45838040113449097,
-0.8089472055435181,
-1.1242777109146118,
0.7983035445213318,
0.4122656285762787,
-0.45276308059692383,
-0.3313291668891907,
0.9277214407920837,
-0.12829773128032684,
-0.5214362740516663,
0.26368677616119385,
0.07253719121217728,
0.06485194712877274,
-0.28638771176338196,
-0.8613720536231995,
-0.007713969796895981,
-0.05040043219923973,
-0.20370402932167053,
0.1629563421010971,
0.47888293862342834,
0.1397871971130371,
0.48310670256614685,
0.7197534441947937,
-0.569709837436676,
-0.31645721197128296,
0.22604385018348694,
1.0579822063446045,
-0.45045265555381775,
-0.6789911985397339,
-1.0630806684494019,
0.7923837900161743,
-0.16738471388816833,
-0.437139630317688,
0.7751566171646118,
0.4599585235118866,
0.7196416258811951,
-0.4333246052265167,
0.5268629193305969,
-0.50326007604599,
0.5278680324554443,
0.010610172525048256,
1.2075300216674805,
-0.6790056824684143,
-0.15458077192306519,
-0.6014623641967773,
-0.7700465321540833,
-0.13703206181526184,
1.0311602354049683,
-0.054075293242931366,
-0.17394568026065826,
0.7343084812164307,
0.6863299012184143,
-0.1935133934020996,
0.20212966203689575,
0.2019798308610916,
0.1032952144742012,
0.12295040488243103,
0.02588256075978279,
1.0979381799697876,
-0.1458568423986435,
0.4615372121334076,
-1.0773544311523438,
-0.3197978734970093,
-0.34390729665756226,
-1.131086826324463,
-1.0996285676956177,
-0.43188828229904175,
-0.4928799867630005,
-0.6601648330688477,
-0.31494349241256714,
0.5567230582237244,
0.9210972189903259,
-0.6785438060760498,
0.047885745763778687,
-0.08167374134063721,
0.08085595816373825,
-0.21897947788238525,
-0.40274080634117126,
-0.0753568783402443,
0.17211811244487762,
-0.9291608333587646,
-0.031033910810947418,
-0.07429169118404388,
-0.038785163313150406,
-0.20916049182415009,
0.12669675052165985,
-0.021542685106396675,
-0.30998891592025757,
0.7867799997329712,
-0.02601289376616478,
-0.33835431933403015,
-0.21722863614559174,
0.09629122167825699,
-0.23162014782428741,
-0.16887550055980682,
0.21025525033473969,
-0.30373960733413696,
0.14884570240974426,
0.6604700684547424,
0.14332063496112823,
0.38606154918670654,
0.22017742693424225,
0.09748327732086182,
-0.9947276711463928,
0.22554032504558563,
0.5745472311973572,
0.49657586216926575,
0.4401843249797821,
-0.7590333223342896,
0.5402020215988159,
0.2435780018568039,
-0.5799943804740906,
-0.8187088370323181,
0.05743159353733063,
-1.1302084922790527,
-0.3489276170730591,
1.031532883644104,
-0.08561678975820541,
-0.38251373171806335,
0.02074919082224369,
-0.3836617171764374,
0.23976154625415802,
-0.6523221731185913,
1.2459298372268677,
0.48565739393234253,
-0.03313666209578514,
0.03143596276640892,
-0.10271547734737396,
0.4296075403690338,
-0.1128331869840622,
-0.6570643782615662,
0.047545645385980606,
0.5151169896125793,
0.6427688598632812,
0.3290654122829437,
0.43347352743148804,
-0.06447315961122513,
0.44732770323753357,
-0.24138285219669342,
-0.1635623276233673,
-0.3593277931213379,
-0.36342427134513855,
-0.14091330766677856,
0.18285337090492249,
-0.06441004574298859,
-0.38122987747192383
] |
timm/resnet34.tv_in1k
|
timm
| 2023-04-05T18:07:29Z | 9,333 | 0 |
timm
|
[
"timm",
"pytorch",
"safetensors",
"image-classification",
"arxiv:1512.03385",
"license:bsd-3-clause",
"region:us"
] |
image-classification
| 2023-04-05T18:07:16Z |
---
tags:
- image-classification
- timm
library_tag: timm
license: bsd-3-clause
---
# Model card for resnet34.tv_in1k
A ResNet-B image classification model.
This model features:
* ReLU activations
* single layer 7x7 convolution with pooling
* 1x1 convolution shortcut downsample
Trained on ImageNet-1k, original torchvision model weight.
## Model Details
- **Model Type:** Image classification / feature backbone
- **Model Stats:**
- Params (M): 21.8
- GMACs: 3.7
- Activations (M): 3.7
- Image size: 224 x 224
- **Papers:**
- Deep Residual Learning for Image Recognition: https://arxiv.org/abs/1512.03385
- **Original:** https://github.com/pytorch/vision
## Model Usage
### Image Classification
```python
from urllib.request import urlopen
from PIL import Image
import timm
img = Image.open(urlopen(
'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/beignets-task-guide.png'
))
model = timm.create_model('resnet34.tv_in1k', pretrained=True)
model = model.eval()
# get model specific transforms (normalization, resize)
data_config = timm.data.resolve_model_data_config(model)
transforms = timm.data.create_transform(**data_config, is_training=False)
output = model(transforms(img).unsqueeze(0)) # unsqueeze single image into batch of 1
top5_probabilities, top5_class_indices = torch.topk(output.softmax(dim=1) * 100, k=5)
```
### Feature Map Extraction
```python
from urllib.request import urlopen
from PIL import Image
import timm
img = Image.open(urlopen(
'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/beignets-task-guide.png'
))
model = timm.create_model(
'resnet34.tv_in1k',
pretrained=True,
features_only=True,
)
model = model.eval()
# get model specific transforms (normalization, resize)
data_config = timm.data.resolve_model_data_config(model)
transforms = timm.data.create_transform(**data_config, is_training=False)
output = model(transforms(img).unsqueeze(0)) # unsqueeze single image into batch of 1
for o in output:
# print shape of each feature map in output
# e.g.:
# torch.Size([1, 64, 112, 112])
# torch.Size([1, 64, 56, 56])
# torch.Size([1, 128, 28, 28])
# torch.Size([1, 256, 14, 14])
# torch.Size([1, 512, 7, 7])
print(o.shape)
```
### Image Embeddings
```python
from urllib.request import urlopen
from PIL import Image
import timm
img = Image.open(urlopen(
'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/beignets-task-guide.png'
))
model = timm.create_model(
'resnet34.tv_in1k',
pretrained=True,
num_classes=0, # remove classifier nn.Linear
)
model = model.eval()
# get model specific transforms (normalization, resize)
data_config = timm.data.resolve_model_data_config(model)
transforms = timm.data.create_transform(**data_config, is_training=False)
output = model(transforms(img).unsqueeze(0)) # output is (batch_size, num_features) shaped tensor
# or equivalently (without needing to set num_classes=0)
output = model.forward_features(transforms(img).unsqueeze(0))
# output is unpooled, a (1, 512, 7, 7) shaped tensor
output = model.forward_head(output, pre_logits=True)
# output is a (1, num_features) shaped tensor
```
## Model Comparison
Explore the dataset and runtime metrics of this model in timm [model results](https://github.com/huggingface/pytorch-image-models/tree/main/results).
|model |img_size|top1 |top5 |param_count|gmacs|macts|img/sec|
|------------------------------------------|--------|-----|-----|-----------|-----|-----|-------|
|[seresnextaa101d_32x8d.sw_in12k_ft_in1k_288](https://huggingface.co/timm/seresnextaa101d_32x8d.sw_in12k_ft_in1k_288)|320 |86.72|98.17|93.6 |35.2 |69.7 |451 |
|[seresnextaa101d_32x8d.sw_in12k_ft_in1k_288](https://huggingface.co/timm/seresnextaa101d_32x8d.sw_in12k_ft_in1k_288)|288 |86.51|98.08|93.6 |28.5 |56.4 |560 |
|[seresnextaa101d_32x8d.sw_in12k_ft_in1k](https://huggingface.co/timm/seresnextaa101d_32x8d.sw_in12k_ft_in1k)|288 |86.49|98.03|93.6 |28.5 |56.4 |557 |
|[seresnextaa101d_32x8d.sw_in12k_ft_in1k](https://huggingface.co/timm/seresnextaa101d_32x8d.sw_in12k_ft_in1k)|224 |85.96|97.82|93.6 |17.2 |34.2 |923 |
|[resnext101_32x32d.fb_wsl_ig1b_ft_in1k](https://huggingface.co/timm/resnext101_32x32d.fb_wsl_ig1b_ft_in1k)|224 |85.11|97.44|468.5 |87.3 |91.1 |254 |
|[resnetrs420.tf_in1k](https://huggingface.co/timm/resnetrs420.tf_in1k)|416 |85.0 |97.12|191.9 |108.4|213.8|134 |
|[ecaresnet269d.ra2_in1k](https://huggingface.co/timm/ecaresnet269d.ra2_in1k)|352 |84.96|97.22|102.1 |50.2 |101.2|291 |
|[ecaresnet269d.ra2_in1k](https://huggingface.co/timm/ecaresnet269d.ra2_in1k)|320 |84.73|97.18|102.1 |41.5 |83.7 |353 |
|[resnetrs350.tf_in1k](https://huggingface.co/timm/resnetrs350.tf_in1k)|384 |84.71|96.99|164.0 |77.6 |154.7|183 |
|[seresnextaa101d_32x8d.ah_in1k](https://huggingface.co/timm/seresnextaa101d_32x8d.ah_in1k)|288 |84.57|97.08|93.6 |28.5 |56.4 |557 |
|[resnetrs200.tf_in1k](https://huggingface.co/timm/resnetrs200.tf_in1k)|320 |84.45|97.08|93.2 |31.5 |67.8 |446 |
|[resnetrs270.tf_in1k](https://huggingface.co/timm/resnetrs270.tf_in1k)|352 |84.43|96.97|129.9 |51.1 |105.5|280 |
|[seresnext101d_32x8d.ah_in1k](https://huggingface.co/timm/seresnext101d_32x8d.ah_in1k)|288 |84.36|96.92|93.6 |27.6 |53.0 |595 |
|[seresnet152d.ra2_in1k](https://huggingface.co/timm/seresnet152d.ra2_in1k)|320 |84.35|97.04|66.8 |24.1 |47.7 |610 |
|[resnetrs350.tf_in1k](https://huggingface.co/timm/resnetrs350.tf_in1k)|288 |84.3 |96.94|164.0 |43.7 |87.1 |333 |
|[resnext101_32x8d.fb_swsl_ig1b_ft_in1k](https://huggingface.co/timm/resnext101_32x8d.fb_swsl_ig1b_ft_in1k)|224 |84.28|97.17|88.8 |16.5 |31.2 |1100 |
|[resnetrs420.tf_in1k](https://huggingface.co/timm/resnetrs420.tf_in1k)|320 |84.24|96.86|191.9 |64.2 |126.6|228 |
|[seresnext101_32x8d.ah_in1k](https://huggingface.co/timm/seresnext101_32x8d.ah_in1k)|288 |84.19|96.87|93.6 |27.2 |51.6 |613 |
|[resnext101_32x16d.fb_wsl_ig1b_ft_in1k](https://huggingface.co/timm/resnext101_32x16d.fb_wsl_ig1b_ft_in1k)|224 |84.18|97.19|194.0 |36.3 |51.2 |581 |
|[resnetaa101d.sw_in12k_ft_in1k](https://huggingface.co/timm/resnetaa101d.sw_in12k_ft_in1k)|288 |84.11|97.11|44.6 |15.1 |29.0 |1144 |
|[resnet200d.ra2_in1k](https://huggingface.co/timm/resnet200d.ra2_in1k)|320 |83.97|96.82|64.7 |31.2 |67.3 |518 |
|[resnetrs200.tf_in1k](https://huggingface.co/timm/resnetrs200.tf_in1k)|256 |83.87|96.75|93.2 |20.2 |43.4 |692 |
|[seresnextaa101d_32x8d.ah_in1k](https://huggingface.co/timm/seresnextaa101d_32x8d.ah_in1k)|224 |83.86|96.65|93.6 |17.2 |34.2 |923 |
|[resnetrs152.tf_in1k](https://huggingface.co/timm/resnetrs152.tf_in1k)|320 |83.72|96.61|86.6 |24.3 |48.1 |617 |
|[seresnet152d.ra2_in1k](https://huggingface.co/timm/seresnet152d.ra2_in1k)|256 |83.69|96.78|66.8 |15.4 |30.6 |943 |
|[seresnext101d_32x8d.ah_in1k](https://huggingface.co/timm/seresnext101d_32x8d.ah_in1k)|224 |83.68|96.61|93.6 |16.7 |32.0 |986 |
|[resnet152d.ra2_in1k](https://huggingface.co/timm/resnet152d.ra2_in1k)|320 |83.67|96.74|60.2 |24.1 |47.7 |706 |
|[resnetrs270.tf_in1k](https://huggingface.co/timm/resnetrs270.tf_in1k)|256 |83.59|96.61|129.9 |27.1 |55.8 |526 |
|[seresnext101_32x8d.ah_in1k](https://huggingface.co/timm/seresnext101_32x8d.ah_in1k)|224 |83.58|96.4 |93.6 |16.5 |31.2 |1013 |
|[resnetaa101d.sw_in12k_ft_in1k](https://huggingface.co/timm/resnetaa101d.sw_in12k_ft_in1k)|224 |83.54|96.83|44.6 |9.1 |17.6 |1864 |
|[resnet152.a1h_in1k](https://huggingface.co/timm/resnet152.a1h_in1k)|288 |83.46|96.54|60.2 |19.1 |37.3 |904 |
|[resnext101_32x16d.fb_swsl_ig1b_ft_in1k](https://huggingface.co/timm/resnext101_32x16d.fb_swsl_ig1b_ft_in1k)|224 |83.35|96.85|194.0 |36.3 |51.2 |582 |
|[resnet200d.ra2_in1k](https://huggingface.co/timm/resnet200d.ra2_in1k)|256 |83.23|96.53|64.7 |20.0 |43.1 |809 |
|[resnext101_32x4d.fb_swsl_ig1b_ft_in1k](https://huggingface.co/timm/resnext101_32x4d.fb_swsl_ig1b_ft_in1k)|224 |83.22|96.75|44.2 |8.0 |21.2 |1814 |
|[resnext101_64x4d.c1_in1k](https://huggingface.co/timm/resnext101_64x4d.c1_in1k)|288 |83.16|96.38|83.5 |25.7 |51.6 |590 |
|[resnet152d.ra2_in1k](https://huggingface.co/timm/resnet152d.ra2_in1k)|256 |83.14|96.38|60.2 |15.4 |30.5 |1096 |
|[resnet101d.ra2_in1k](https://huggingface.co/timm/resnet101d.ra2_in1k)|320 |83.02|96.45|44.6 |16.5 |34.8 |992 |
|[ecaresnet101d.miil_in1k](https://huggingface.co/timm/ecaresnet101d.miil_in1k)|288 |82.98|96.54|44.6 |13.4 |28.2 |1077 |
|[resnext101_64x4d.tv_in1k](https://huggingface.co/timm/resnext101_64x4d.tv_in1k)|224 |82.98|96.25|83.5 |15.5 |31.2 |989 |
|[resnetrs152.tf_in1k](https://huggingface.co/timm/resnetrs152.tf_in1k)|256 |82.86|96.28|86.6 |15.6 |30.8 |951 |
|[resnext101_32x8d.tv2_in1k](https://huggingface.co/timm/resnext101_32x8d.tv2_in1k)|224 |82.83|96.22|88.8 |16.5 |31.2 |1099 |
|[resnet152.a1h_in1k](https://huggingface.co/timm/resnet152.a1h_in1k)|224 |82.8 |96.13|60.2 |11.6 |22.6 |1486 |
|[resnet101.a1h_in1k](https://huggingface.co/timm/resnet101.a1h_in1k)|288 |82.8 |96.32|44.6 |13.0 |26.8 |1291 |
|[resnet152.a1_in1k](https://huggingface.co/timm/resnet152.a1_in1k)|288 |82.74|95.71|60.2 |19.1 |37.3 |905 |
|[resnext101_32x8d.fb_wsl_ig1b_ft_in1k](https://huggingface.co/timm/resnext101_32x8d.fb_wsl_ig1b_ft_in1k)|224 |82.69|96.63|88.8 |16.5 |31.2 |1100 |
|[resnet152.a2_in1k](https://huggingface.co/timm/resnet152.a2_in1k)|288 |82.62|95.75|60.2 |19.1 |37.3 |904 |
|[resnetaa50d.sw_in12k_ft_in1k](https://huggingface.co/timm/resnetaa50d.sw_in12k_ft_in1k)|288 |82.61|96.49|25.6 |8.9 |20.6 |1729 |
|[resnet61q.ra2_in1k](https://huggingface.co/timm/resnet61q.ra2_in1k)|288 |82.53|96.13|36.8 |9.9 |21.5 |1773 |
|[wide_resnet101_2.tv2_in1k](https://huggingface.co/timm/wide_resnet101_2.tv2_in1k)|224 |82.5 |96.02|126.9 |22.8 |21.2 |1078 |
|[resnext101_64x4d.c1_in1k](https://huggingface.co/timm/resnext101_64x4d.c1_in1k)|224 |82.46|95.92|83.5 |15.5 |31.2 |987 |
|[resnet51q.ra2_in1k](https://huggingface.co/timm/resnet51q.ra2_in1k)|288 |82.36|96.18|35.7 |8.1 |20.9 |1964 |
|[ecaresnet50t.ra2_in1k](https://huggingface.co/timm/ecaresnet50t.ra2_in1k)|320 |82.35|96.14|25.6 |8.8 |24.1 |1386 |
|[resnet101.a1_in1k](https://huggingface.co/timm/resnet101.a1_in1k)|288 |82.31|95.63|44.6 |13.0 |26.8 |1291 |
|[resnetrs101.tf_in1k](https://huggingface.co/timm/resnetrs101.tf_in1k)|288 |82.29|96.01|63.6 |13.6 |28.5 |1078 |
|[resnet152.tv2_in1k](https://huggingface.co/timm/resnet152.tv2_in1k)|224 |82.29|96.0 |60.2 |11.6 |22.6 |1484 |
|[wide_resnet50_2.racm_in1k](https://huggingface.co/timm/wide_resnet50_2.racm_in1k)|288 |82.27|96.06|68.9 |18.9 |23.8 |1176 |
|[resnet101d.ra2_in1k](https://huggingface.co/timm/resnet101d.ra2_in1k)|256 |82.26|96.07|44.6 |10.6 |22.2 |1542 |
|[resnet101.a2_in1k](https://huggingface.co/timm/resnet101.a2_in1k)|288 |82.24|95.73|44.6 |13.0 |26.8 |1290 |
|[seresnext50_32x4d.racm_in1k](https://huggingface.co/timm/seresnext50_32x4d.racm_in1k)|288 |82.2 |96.14|27.6 |7.0 |23.8 |1547 |
|[ecaresnet101d.miil_in1k](https://huggingface.co/timm/ecaresnet101d.miil_in1k)|224 |82.18|96.05|44.6 |8.1 |17.1 |1771 |
|[resnext50_32x4d.fb_swsl_ig1b_ft_in1k](https://huggingface.co/timm/resnext50_32x4d.fb_swsl_ig1b_ft_in1k)|224 |82.17|96.22|25.0 |4.3 |14.4 |2943 |
|[ecaresnet50t.a1_in1k](https://huggingface.co/timm/ecaresnet50t.a1_in1k)|288 |82.12|95.65|25.6 |7.1 |19.6 |1704 |
|[resnext50_32x4d.a1h_in1k](https://huggingface.co/timm/resnext50_32x4d.a1h_in1k)|288 |82.03|95.94|25.0 |7.0 |23.8 |1745 |
|[ecaresnet101d_pruned.miil_in1k](https://huggingface.co/timm/ecaresnet101d_pruned.miil_in1k)|288 |82.0 |96.15|24.9 |5.8 |12.7 |1787 |
|[resnet61q.ra2_in1k](https://huggingface.co/timm/resnet61q.ra2_in1k)|256 |81.99|95.85|36.8 |7.8 |17.0 |2230 |
|[resnext101_32x8d.tv2_in1k](https://huggingface.co/timm/resnext101_32x8d.tv2_in1k)|176 |81.98|95.72|88.8 |10.3 |19.4 |1768 |
|[resnet152.a1_in1k](https://huggingface.co/timm/resnet152.a1_in1k)|224 |81.97|95.24|60.2 |11.6 |22.6 |1486 |
|[resnet101.a1h_in1k](https://huggingface.co/timm/resnet101.a1h_in1k)|224 |81.93|95.75|44.6 |7.8 |16.2 |2122 |
|[resnet101.tv2_in1k](https://huggingface.co/timm/resnet101.tv2_in1k)|224 |81.9 |95.77|44.6 |7.8 |16.2 |2118 |
|[resnext101_32x16d.fb_ssl_yfcc100m_ft_in1k](https://huggingface.co/timm/resnext101_32x16d.fb_ssl_yfcc100m_ft_in1k)|224 |81.84|96.1 |194.0 |36.3 |51.2 |583 |
|[resnet51q.ra2_in1k](https://huggingface.co/timm/resnet51q.ra2_in1k)|256 |81.78|95.94|35.7 |6.4 |16.6 |2471 |
|[resnet152.a2_in1k](https://huggingface.co/timm/resnet152.a2_in1k)|224 |81.77|95.22|60.2 |11.6 |22.6 |1485 |
|[resnetaa50d.sw_in12k_ft_in1k](https://huggingface.co/timm/resnetaa50d.sw_in12k_ft_in1k)|224 |81.74|96.06|25.6 |5.4 |12.4 |2813 |
|[ecaresnet50t.a2_in1k](https://huggingface.co/timm/ecaresnet50t.a2_in1k)|288 |81.65|95.54|25.6 |7.1 |19.6 |1703 |
|[ecaresnet50d.miil_in1k](https://huggingface.co/timm/ecaresnet50d.miil_in1k)|288 |81.64|95.88|25.6 |7.2 |19.7 |1694 |
|[resnext101_32x8d.fb_ssl_yfcc100m_ft_in1k](https://huggingface.co/timm/resnext101_32x8d.fb_ssl_yfcc100m_ft_in1k)|224 |81.62|96.04|88.8 |16.5 |31.2 |1101 |
|[wide_resnet50_2.tv2_in1k](https://huggingface.co/timm/wide_resnet50_2.tv2_in1k)|224 |81.61|95.76|68.9 |11.4 |14.4 |1930 |
|[resnetaa50.a1h_in1k](https://huggingface.co/timm/resnetaa50.a1h_in1k)|288 |81.61|95.83|25.6 |8.5 |19.2 |1868 |
|[resnet101.a1_in1k](https://huggingface.co/timm/resnet101.a1_in1k)|224 |81.5 |95.16|44.6 |7.8 |16.2 |2125 |
|[resnext50_32x4d.a1_in1k](https://huggingface.co/timm/resnext50_32x4d.a1_in1k)|288 |81.48|95.16|25.0 |7.0 |23.8 |1745 |
|[gcresnet50t.ra2_in1k](https://huggingface.co/timm/gcresnet50t.ra2_in1k)|288 |81.47|95.71|25.9 |6.9 |18.6 |2071 |
|[wide_resnet50_2.racm_in1k](https://huggingface.co/timm/wide_resnet50_2.racm_in1k)|224 |81.45|95.53|68.9 |11.4 |14.4 |1929 |
|[resnet50d.a1_in1k](https://huggingface.co/timm/resnet50d.a1_in1k)|288 |81.44|95.22|25.6 |7.2 |19.7 |1908 |
|[ecaresnet50t.ra2_in1k](https://huggingface.co/timm/ecaresnet50t.ra2_in1k)|256 |81.44|95.67|25.6 |5.6 |15.4 |2168 |
|[ecaresnetlight.miil_in1k](https://huggingface.co/timm/ecaresnetlight.miil_in1k)|288 |81.4 |95.82|30.2 |6.8 |13.9 |2132 |
|[resnet50d.ra2_in1k](https://huggingface.co/timm/resnet50d.ra2_in1k)|288 |81.37|95.74|25.6 |7.2 |19.7 |1910 |
|[resnet101.a2_in1k](https://huggingface.co/timm/resnet101.a2_in1k)|224 |81.32|95.19|44.6 |7.8 |16.2 |2125 |
|[seresnet50.ra2_in1k](https://huggingface.co/timm/seresnet50.ra2_in1k)|288 |81.3 |95.65|28.1 |6.8 |18.4 |1803 |
|[resnext50_32x4d.a2_in1k](https://huggingface.co/timm/resnext50_32x4d.a2_in1k)|288 |81.3 |95.11|25.0 |7.0 |23.8 |1746 |
|[seresnext50_32x4d.racm_in1k](https://huggingface.co/timm/seresnext50_32x4d.racm_in1k)|224 |81.27|95.62|27.6 |4.3 |14.4 |2591 |
|[ecaresnet50t.a1_in1k](https://huggingface.co/timm/ecaresnet50t.a1_in1k)|224 |81.26|95.16|25.6 |4.3 |11.8 |2823 |
|[gcresnext50ts.ch_in1k](https://huggingface.co/timm/gcresnext50ts.ch_in1k)|288 |81.23|95.54|15.7 |4.8 |19.6 |2117 |
|[senet154.gluon_in1k](https://huggingface.co/timm/senet154.gluon_in1k)|224 |81.23|95.35|115.1 |20.8 |38.7 |545 |
|[resnet50.a1_in1k](https://huggingface.co/timm/resnet50.a1_in1k)|288 |81.22|95.11|25.6 |6.8 |18.4 |2089 |
|[resnet50_gn.a1h_in1k](https://huggingface.co/timm/resnet50_gn.a1h_in1k)|288 |81.22|95.63|25.6 |6.8 |18.4 |676 |
|[resnet50d.a2_in1k](https://huggingface.co/timm/resnet50d.a2_in1k)|288 |81.18|95.09|25.6 |7.2 |19.7 |1908 |
|[resnet50.fb_swsl_ig1b_ft_in1k](https://huggingface.co/timm/resnet50.fb_swsl_ig1b_ft_in1k)|224 |81.18|95.98|25.6 |4.1 |11.1 |3455 |
|[resnext50_32x4d.tv2_in1k](https://huggingface.co/timm/resnext50_32x4d.tv2_in1k)|224 |81.17|95.34|25.0 |4.3 |14.4 |2933 |
|[resnext50_32x4d.a1h_in1k](https://huggingface.co/timm/resnext50_32x4d.a1h_in1k)|224 |81.1 |95.33|25.0 |4.3 |14.4 |2934 |
|[seresnet50.a2_in1k](https://huggingface.co/timm/seresnet50.a2_in1k)|288 |81.1 |95.23|28.1 |6.8 |18.4 |1801 |
|[seresnet50.a1_in1k](https://huggingface.co/timm/seresnet50.a1_in1k)|288 |81.1 |95.12|28.1 |6.8 |18.4 |1799 |
|[resnet152s.gluon_in1k](https://huggingface.co/timm/resnet152s.gluon_in1k)|224 |81.02|95.41|60.3 |12.9 |25.0 |1347 |
|[resnet50.d_in1k](https://huggingface.co/timm/resnet50.d_in1k)|288 |80.97|95.44|25.6 |6.8 |18.4 |2085 |
|[gcresnet50t.ra2_in1k](https://huggingface.co/timm/gcresnet50t.ra2_in1k)|256 |80.94|95.45|25.9 |5.4 |14.7 |2571 |
|[resnext101_32x4d.fb_ssl_yfcc100m_ft_in1k](https://huggingface.co/timm/resnext101_32x4d.fb_ssl_yfcc100m_ft_in1k)|224 |80.93|95.73|44.2 |8.0 |21.2 |1814 |
|[resnet50.c1_in1k](https://huggingface.co/timm/resnet50.c1_in1k)|288 |80.91|95.55|25.6 |6.8 |18.4 |2084 |
|[seresnext101_32x4d.gluon_in1k](https://huggingface.co/timm/seresnext101_32x4d.gluon_in1k)|224 |80.9 |95.31|49.0 |8.0 |21.3 |1585 |
|[seresnext101_64x4d.gluon_in1k](https://huggingface.co/timm/seresnext101_64x4d.gluon_in1k)|224 |80.9 |95.3 |88.2 |15.5 |31.2 |918 |
|[resnet50.c2_in1k](https://huggingface.co/timm/resnet50.c2_in1k)|288 |80.86|95.52|25.6 |6.8 |18.4 |2085 |
|[resnet50.tv2_in1k](https://huggingface.co/timm/resnet50.tv2_in1k)|224 |80.85|95.43|25.6 |4.1 |11.1 |3450 |
|[ecaresnet50t.a2_in1k](https://huggingface.co/timm/ecaresnet50t.a2_in1k)|224 |80.84|95.02|25.6 |4.3 |11.8 |2821 |
|[ecaresnet101d_pruned.miil_in1k](https://huggingface.co/timm/ecaresnet101d_pruned.miil_in1k)|224 |80.79|95.62|24.9 |3.5 |7.7 |2961 |
|[seresnet33ts.ra2_in1k](https://huggingface.co/timm/seresnet33ts.ra2_in1k)|288 |80.79|95.36|19.8 |6.0 |14.8 |2506 |
|[ecaresnet50d_pruned.miil_in1k](https://huggingface.co/timm/ecaresnet50d_pruned.miil_in1k)|288 |80.79|95.58|19.9 |4.2 |10.6 |2349 |
|[resnet50.a2_in1k](https://huggingface.co/timm/resnet50.a2_in1k)|288 |80.78|94.99|25.6 |6.8 |18.4 |2088 |
|[resnet50.b1k_in1k](https://huggingface.co/timm/resnet50.b1k_in1k)|288 |80.71|95.43|25.6 |6.8 |18.4 |2087 |
|[resnext50_32x4d.ra_in1k](https://huggingface.co/timm/resnext50_32x4d.ra_in1k)|288 |80.7 |95.39|25.0 |7.0 |23.8 |1749 |
|[resnetrs101.tf_in1k](https://huggingface.co/timm/resnetrs101.tf_in1k)|192 |80.69|95.24|63.6 |6.0 |12.7 |2270 |
|[resnet50d.a1_in1k](https://huggingface.co/timm/resnet50d.a1_in1k)|224 |80.68|94.71|25.6 |4.4 |11.9 |3162 |
|[eca_resnet33ts.ra2_in1k](https://huggingface.co/timm/eca_resnet33ts.ra2_in1k)|288 |80.68|95.36|19.7 |6.0 |14.8 |2637 |
|[resnet50.a1h_in1k](https://huggingface.co/timm/resnet50.a1h_in1k)|224 |80.67|95.3 |25.6 |4.1 |11.1 |3452 |
|[resnext50d_32x4d.bt_in1k](https://huggingface.co/timm/resnext50d_32x4d.bt_in1k)|288 |80.67|95.42|25.0 |7.4 |25.1 |1626 |
|[resnetaa50.a1h_in1k](https://huggingface.co/timm/resnetaa50.a1h_in1k)|224 |80.63|95.21|25.6 |5.2 |11.6 |3034 |
|[ecaresnet50d.miil_in1k](https://huggingface.co/timm/ecaresnet50d.miil_in1k)|224 |80.61|95.32|25.6 |4.4 |11.9 |2813 |
|[resnext101_64x4d.gluon_in1k](https://huggingface.co/timm/resnext101_64x4d.gluon_in1k)|224 |80.61|94.99|83.5 |15.5 |31.2 |989 |
|[gcresnet33ts.ra2_in1k](https://huggingface.co/timm/gcresnet33ts.ra2_in1k)|288 |80.6 |95.31|19.9 |6.0 |14.8 |2578 |
|[gcresnext50ts.ch_in1k](https://huggingface.co/timm/gcresnext50ts.ch_in1k)|256 |80.57|95.17|15.7 |3.8 |15.5 |2710 |
|[resnet152.a3_in1k](https://huggingface.co/timm/resnet152.a3_in1k)|224 |80.56|95.0 |60.2 |11.6 |22.6 |1483 |
|[resnet50d.ra2_in1k](https://huggingface.co/timm/resnet50d.ra2_in1k)|224 |80.53|95.16|25.6 |4.4 |11.9 |3164 |
|[resnext50_32x4d.a1_in1k](https://huggingface.co/timm/resnext50_32x4d.a1_in1k)|224 |80.53|94.46|25.0 |4.3 |14.4 |2930 |
|[wide_resnet101_2.tv2_in1k](https://huggingface.co/timm/wide_resnet101_2.tv2_in1k)|176 |80.48|94.98|126.9 |14.3 |13.2 |1719 |
|[resnet152d.gluon_in1k](https://huggingface.co/timm/resnet152d.gluon_in1k)|224 |80.47|95.2 |60.2 |11.8 |23.4 |1428 |
|[resnet50.b2k_in1k](https://huggingface.co/timm/resnet50.b2k_in1k)|288 |80.45|95.32|25.6 |6.8 |18.4 |2086 |
|[ecaresnetlight.miil_in1k](https://huggingface.co/timm/ecaresnetlight.miil_in1k)|224 |80.45|95.24|30.2 |4.1 |8.4 |3530 |
|[resnext50_32x4d.a2_in1k](https://huggingface.co/timm/resnext50_32x4d.a2_in1k)|224 |80.45|94.63|25.0 |4.3 |14.4 |2936 |
|[wide_resnet50_2.tv2_in1k](https://huggingface.co/timm/wide_resnet50_2.tv2_in1k)|176 |80.43|95.09|68.9 |7.3 |9.0 |3015 |
|[resnet101d.gluon_in1k](https://huggingface.co/timm/resnet101d.gluon_in1k)|224 |80.42|95.01|44.6 |8.1 |17.0 |2007 |
|[resnet50.a1_in1k](https://huggingface.co/timm/resnet50.a1_in1k)|224 |80.38|94.6 |25.6 |4.1 |11.1 |3461 |
|[seresnet33ts.ra2_in1k](https://huggingface.co/timm/seresnet33ts.ra2_in1k)|256 |80.36|95.1 |19.8 |4.8 |11.7 |3267 |
|[resnext101_32x4d.gluon_in1k](https://huggingface.co/timm/resnext101_32x4d.gluon_in1k)|224 |80.34|94.93|44.2 |8.0 |21.2 |1814 |
|[resnext50_32x4d.fb_ssl_yfcc100m_ft_in1k](https://huggingface.co/timm/resnext50_32x4d.fb_ssl_yfcc100m_ft_in1k)|224 |80.32|95.4 |25.0 |4.3 |14.4 |2941 |
|[resnet101s.gluon_in1k](https://huggingface.co/timm/resnet101s.gluon_in1k)|224 |80.28|95.16|44.7 |9.2 |18.6 |1851 |
|[seresnet50.ra2_in1k](https://huggingface.co/timm/seresnet50.ra2_in1k)|224 |80.26|95.08|28.1 |4.1 |11.1 |2972 |
|[resnetblur50.bt_in1k](https://huggingface.co/timm/resnetblur50.bt_in1k)|288 |80.24|95.24|25.6 |8.5 |19.9 |1523 |
|[resnet50d.a2_in1k](https://huggingface.co/timm/resnet50d.a2_in1k)|224 |80.22|94.63|25.6 |4.4 |11.9 |3162 |
|[resnet152.tv2_in1k](https://huggingface.co/timm/resnet152.tv2_in1k)|176 |80.2 |94.64|60.2 |7.2 |14.0 |2346 |
|[seresnet50.a2_in1k](https://huggingface.co/timm/seresnet50.a2_in1k)|224 |80.08|94.74|28.1 |4.1 |11.1 |2969 |
|[eca_resnet33ts.ra2_in1k](https://huggingface.co/timm/eca_resnet33ts.ra2_in1k)|256 |80.08|94.97|19.7 |4.8 |11.7 |3284 |
|[gcresnet33ts.ra2_in1k](https://huggingface.co/timm/gcresnet33ts.ra2_in1k)|256 |80.06|94.99|19.9 |4.8 |11.7 |3216 |
|[resnet50_gn.a1h_in1k](https://huggingface.co/timm/resnet50_gn.a1h_in1k)|224 |80.06|94.95|25.6 |4.1 |11.1 |1109 |
|[seresnet50.a1_in1k](https://huggingface.co/timm/seresnet50.a1_in1k)|224 |80.02|94.71|28.1 |4.1 |11.1 |2962 |
|[resnet50.ram_in1k](https://huggingface.co/timm/resnet50.ram_in1k)|288 |79.97|95.05|25.6 |6.8 |18.4 |2086 |
|[resnet152c.gluon_in1k](https://huggingface.co/timm/resnet152c.gluon_in1k)|224 |79.92|94.84|60.2 |11.8 |23.4 |1455 |
|[seresnext50_32x4d.gluon_in1k](https://huggingface.co/timm/seresnext50_32x4d.gluon_in1k)|224 |79.91|94.82|27.6 |4.3 |14.4 |2591 |
|[resnet50.d_in1k](https://huggingface.co/timm/resnet50.d_in1k)|224 |79.91|94.67|25.6 |4.1 |11.1 |3456 |
|[resnet101.tv2_in1k](https://huggingface.co/timm/resnet101.tv2_in1k)|176 |79.9 |94.6 |44.6 |4.9 |10.1 |3341 |
|[resnetrs50.tf_in1k](https://huggingface.co/timm/resnetrs50.tf_in1k)|224 |79.89|94.97|35.7 |4.5 |12.1 |2774 |
|[resnet50.c2_in1k](https://huggingface.co/timm/resnet50.c2_in1k)|224 |79.88|94.87|25.6 |4.1 |11.1 |3455 |
|[ecaresnet26t.ra2_in1k](https://huggingface.co/timm/ecaresnet26t.ra2_in1k)|320 |79.86|95.07|16.0 |5.2 |16.4 |2168 |
|[resnet50.a2_in1k](https://huggingface.co/timm/resnet50.a2_in1k)|224 |79.85|94.56|25.6 |4.1 |11.1 |3460 |
|[resnet50.ra_in1k](https://huggingface.co/timm/resnet50.ra_in1k)|288 |79.83|94.97|25.6 |6.8 |18.4 |2087 |
|[resnet101.a3_in1k](https://huggingface.co/timm/resnet101.a3_in1k)|224 |79.82|94.62|44.6 |7.8 |16.2 |2114 |
|[resnext50_32x4d.ra_in1k](https://huggingface.co/timm/resnext50_32x4d.ra_in1k)|224 |79.76|94.6 |25.0 |4.3 |14.4 |2943 |
|[resnet50.c1_in1k](https://huggingface.co/timm/resnet50.c1_in1k)|224 |79.74|94.95|25.6 |4.1 |11.1 |3455 |
|[ecaresnet50d_pruned.miil_in1k](https://huggingface.co/timm/ecaresnet50d_pruned.miil_in1k)|224 |79.74|94.87|19.9 |2.5 |6.4 |3929 |
|[resnet33ts.ra2_in1k](https://huggingface.co/timm/resnet33ts.ra2_in1k)|288 |79.71|94.83|19.7 |6.0 |14.8 |2710 |
|[resnet152.gluon_in1k](https://huggingface.co/timm/resnet152.gluon_in1k)|224 |79.68|94.74|60.2 |11.6 |22.6 |1486 |
|[resnext50d_32x4d.bt_in1k](https://huggingface.co/timm/resnext50d_32x4d.bt_in1k)|224 |79.67|94.87|25.0 |4.5 |15.2 |2729 |
|[resnet50.bt_in1k](https://huggingface.co/timm/resnet50.bt_in1k)|288 |79.63|94.91|25.6 |6.8 |18.4 |2086 |
|[ecaresnet50t.a3_in1k](https://huggingface.co/timm/ecaresnet50t.a3_in1k)|224 |79.56|94.72|25.6 |4.3 |11.8 |2805 |
|[resnet101c.gluon_in1k](https://huggingface.co/timm/resnet101c.gluon_in1k)|224 |79.53|94.58|44.6 |8.1 |17.0 |2062 |
|[resnet50.b1k_in1k](https://huggingface.co/timm/resnet50.b1k_in1k)|224 |79.52|94.61|25.6 |4.1 |11.1 |3459 |
|[resnet50.tv2_in1k](https://huggingface.co/timm/resnet50.tv2_in1k)|176 |79.42|94.64|25.6 |2.6 |6.9 |5397 |
|[resnet32ts.ra2_in1k](https://huggingface.co/timm/resnet32ts.ra2_in1k)|288 |79.4 |94.66|18.0 |5.9 |14.6 |2752 |
|[resnet50.b2k_in1k](https://huggingface.co/timm/resnet50.b2k_in1k)|224 |79.38|94.57|25.6 |4.1 |11.1 |3459 |
|[resnext50_32x4d.tv2_in1k](https://huggingface.co/timm/resnext50_32x4d.tv2_in1k)|176 |79.37|94.3 |25.0 |2.7 |9.0 |4577 |
|[resnext50_32x4d.gluon_in1k](https://huggingface.co/timm/resnext50_32x4d.gluon_in1k)|224 |79.36|94.43|25.0 |4.3 |14.4 |2942 |
|[resnext101_32x8d.tv_in1k](https://huggingface.co/timm/resnext101_32x8d.tv_in1k)|224 |79.31|94.52|88.8 |16.5 |31.2 |1100 |
|[resnet101.gluon_in1k](https://huggingface.co/timm/resnet101.gluon_in1k)|224 |79.31|94.53|44.6 |7.8 |16.2 |2125 |
|[resnetblur50.bt_in1k](https://huggingface.co/timm/resnetblur50.bt_in1k)|224 |79.31|94.63|25.6 |5.2 |12.0 |2524 |
|[resnet50.a1h_in1k](https://huggingface.co/timm/resnet50.a1h_in1k)|176 |79.27|94.49|25.6 |2.6 |6.9 |5404 |
|[resnext50_32x4d.a3_in1k](https://huggingface.co/timm/resnext50_32x4d.a3_in1k)|224 |79.25|94.31|25.0 |4.3 |14.4 |2931 |
|[resnet50.fb_ssl_yfcc100m_ft_in1k](https://huggingface.co/timm/resnet50.fb_ssl_yfcc100m_ft_in1k)|224 |79.22|94.84|25.6 |4.1 |11.1 |3451 |
|[resnet33ts.ra2_in1k](https://huggingface.co/timm/resnet33ts.ra2_in1k)|256 |79.21|94.56|19.7 |4.8 |11.7 |3392 |
|[resnet50d.gluon_in1k](https://huggingface.co/timm/resnet50d.gluon_in1k)|224 |79.07|94.48|25.6 |4.4 |11.9 |3162 |
|[resnet50.ram_in1k](https://huggingface.co/timm/resnet50.ram_in1k)|224 |79.03|94.38|25.6 |4.1 |11.1 |3453 |
|[resnet50.am_in1k](https://huggingface.co/timm/resnet50.am_in1k)|224 |79.01|94.39|25.6 |4.1 |11.1 |3461 |
|[resnet32ts.ra2_in1k](https://huggingface.co/timm/resnet32ts.ra2_in1k)|256 |79.01|94.37|18.0 |4.6 |11.6 |3440 |
|[ecaresnet26t.ra2_in1k](https://huggingface.co/timm/ecaresnet26t.ra2_in1k)|256 |78.9 |94.54|16.0 |3.4 |10.5 |3421 |
|[resnet152.a3_in1k](https://huggingface.co/timm/resnet152.a3_in1k)|160 |78.89|94.11|60.2 |5.9 |11.5 |2745 |
|[wide_resnet101_2.tv_in1k](https://huggingface.co/timm/wide_resnet101_2.tv_in1k)|224 |78.84|94.28|126.9 |22.8 |21.2 |1079 |
|[seresnext26d_32x4d.bt_in1k](https://huggingface.co/timm/seresnext26d_32x4d.bt_in1k)|288 |78.83|94.24|16.8 |4.5 |16.8 |2251 |
|[resnet50.ra_in1k](https://huggingface.co/timm/resnet50.ra_in1k)|224 |78.81|94.32|25.6 |4.1 |11.1 |3454 |
|[seresnext26t_32x4d.bt_in1k](https://huggingface.co/timm/seresnext26t_32x4d.bt_in1k)|288 |78.74|94.33|16.8 |4.5 |16.7 |2264 |
|[resnet50s.gluon_in1k](https://huggingface.co/timm/resnet50s.gluon_in1k)|224 |78.72|94.23|25.7 |5.5 |13.5 |2796 |
|[resnet50d.a3_in1k](https://huggingface.co/timm/resnet50d.a3_in1k)|224 |78.71|94.24|25.6 |4.4 |11.9 |3154 |
|[wide_resnet50_2.tv_in1k](https://huggingface.co/timm/wide_resnet50_2.tv_in1k)|224 |78.47|94.09|68.9 |11.4 |14.4 |1934 |
|[resnet50.bt_in1k](https://huggingface.co/timm/resnet50.bt_in1k)|224 |78.46|94.27|25.6 |4.1 |11.1 |3454 |
|[resnet34d.ra2_in1k](https://huggingface.co/timm/resnet34d.ra2_in1k)|288 |78.43|94.35|21.8 |6.5 |7.5 |3291 |
|[gcresnext26ts.ch_in1k](https://huggingface.co/timm/gcresnext26ts.ch_in1k)|288 |78.42|94.04|10.5 |3.1 |13.3 |3226 |
|[resnet26t.ra2_in1k](https://huggingface.co/timm/resnet26t.ra2_in1k)|320 |78.33|94.13|16.0 |5.2 |16.4 |2391 |
|[resnet152.tv_in1k](https://huggingface.co/timm/resnet152.tv_in1k)|224 |78.32|94.04|60.2 |11.6 |22.6 |1487 |
|[seresnext26ts.ch_in1k](https://huggingface.co/timm/seresnext26ts.ch_in1k)|288 |78.28|94.1 |10.4 |3.1 |13.3 |3062 |
|[bat_resnext26ts.ch_in1k](https://huggingface.co/timm/bat_resnext26ts.ch_in1k)|256 |78.25|94.1 |10.7 |2.5 |12.5 |3393 |
|[resnet50.a3_in1k](https://huggingface.co/timm/resnet50.a3_in1k)|224 |78.06|93.78|25.6 |4.1 |11.1 |3450 |
|[resnet50c.gluon_in1k](https://huggingface.co/timm/resnet50c.gluon_in1k)|224 |78.0 |93.99|25.6 |4.4 |11.9 |3286 |
|[eca_resnext26ts.ch_in1k](https://huggingface.co/timm/eca_resnext26ts.ch_in1k)|288 |78.0 |93.91|10.3 |3.1 |13.3 |3297 |
|[seresnext26t_32x4d.bt_in1k](https://huggingface.co/timm/seresnext26t_32x4d.bt_in1k)|224 |77.98|93.75|16.8 |2.7 |10.1 |3841 |
|[resnet34.a1_in1k](https://huggingface.co/timm/resnet34.a1_in1k)|288 |77.92|93.77|21.8 |6.1 |6.2 |3609 |
|[resnet101.a3_in1k](https://huggingface.co/timm/resnet101.a3_in1k)|160 |77.88|93.71|44.6 |4.0 |8.3 |3926 |
|[resnet26t.ra2_in1k](https://huggingface.co/timm/resnet26t.ra2_in1k)|256 |77.87|93.84|16.0 |3.4 |10.5 |3772 |
|[seresnext26ts.ch_in1k](https://huggingface.co/timm/seresnext26ts.ch_in1k)|256 |77.86|93.79|10.4 |2.4 |10.5 |4263 |
|[resnetrs50.tf_in1k](https://huggingface.co/timm/resnetrs50.tf_in1k)|160 |77.82|93.81|35.7 |2.3 |6.2 |5238 |
|[gcresnext26ts.ch_in1k](https://huggingface.co/timm/gcresnext26ts.ch_in1k)|256 |77.81|93.82|10.5 |2.4 |10.5 |4183 |
|[ecaresnet50t.a3_in1k](https://huggingface.co/timm/ecaresnet50t.a3_in1k)|160 |77.79|93.6 |25.6 |2.2 |6.0 |5329 |
|[resnext50_32x4d.a3_in1k](https://huggingface.co/timm/resnext50_32x4d.a3_in1k)|160 |77.73|93.32|25.0 |2.2 |7.4 |5576 |
|[resnext50_32x4d.tv_in1k](https://huggingface.co/timm/resnext50_32x4d.tv_in1k)|224 |77.61|93.7 |25.0 |4.3 |14.4 |2944 |
|[seresnext26d_32x4d.bt_in1k](https://huggingface.co/timm/seresnext26d_32x4d.bt_in1k)|224 |77.59|93.61|16.8 |2.7 |10.2 |3807 |
|[resnet50.gluon_in1k](https://huggingface.co/timm/resnet50.gluon_in1k)|224 |77.58|93.72|25.6 |4.1 |11.1 |3455 |
|[eca_resnext26ts.ch_in1k](https://huggingface.co/timm/eca_resnext26ts.ch_in1k)|256 |77.44|93.56|10.3 |2.4 |10.5 |4284 |
|[resnet26d.bt_in1k](https://huggingface.co/timm/resnet26d.bt_in1k)|288 |77.41|93.63|16.0 |4.3 |13.5 |2907 |
|[resnet101.tv_in1k](https://huggingface.co/timm/resnet101.tv_in1k)|224 |77.38|93.54|44.6 |7.8 |16.2 |2125 |
|[resnet50d.a3_in1k](https://huggingface.co/timm/resnet50d.a3_in1k)|160 |77.22|93.27|25.6 |2.2 |6.1 |5982 |
|[resnext26ts.ra2_in1k](https://huggingface.co/timm/resnext26ts.ra2_in1k)|288 |77.17|93.47|10.3 |3.1 |13.3 |3392 |
|[resnet34.a2_in1k](https://huggingface.co/timm/resnet34.a2_in1k)|288 |77.15|93.27|21.8 |6.1 |6.2 |3615 |
|[resnet34d.ra2_in1k](https://huggingface.co/timm/resnet34d.ra2_in1k)|224 |77.1 |93.37|21.8 |3.9 |4.5 |5436 |
|[seresnet50.a3_in1k](https://huggingface.co/timm/seresnet50.a3_in1k)|224 |77.02|93.07|28.1 |4.1 |11.1 |2952 |
|[resnext26ts.ra2_in1k](https://huggingface.co/timm/resnext26ts.ra2_in1k)|256 |76.78|93.13|10.3 |2.4 |10.5 |4410 |
|[resnet26d.bt_in1k](https://huggingface.co/timm/resnet26d.bt_in1k)|224 |76.7 |93.17|16.0 |2.6 |8.2 |4859 |
|[resnet34.bt_in1k](https://huggingface.co/timm/resnet34.bt_in1k)|288 |76.5 |93.35|21.8 |6.1 |6.2 |3617 |
|[resnet34.a1_in1k](https://huggingface.co/timm/resnet34.a1_in1k)|224 |76.42|92.87|21.8 |3.7 |3.7 |5984 |
|[resnet26.bt_in1k](https://huggingface.co/timm/resnet26.bt_in1k)|288 |76.35|93.18|16.0 |3.9 |12.2 |3331 |
|[resnet50.tv_in1k](https://huggingface.co/timm/resnet50.tv_in1k)|224 |76.13|92.86|25.6 |4.1 |11.1 |3457 |
|[resnet50.a3_in1k](https://huggingface.co/timm/resnet50.a3_in1k)|160 |75.96|92.5 |25.6 |2.1 |5.7 |6490 |
|[resnet34.a2_in1k](https://huggingface.co/timm/resnet34.a2_in1k)|224 |75.52|92.44|21.8 |3.7 |3.7 |5991 |
|[resnet26.bt_in1k](https://huggingface.co/timm/resnet26.bt_in1k)|224 |75.3 |92.58|16.0 |2.4 |7.4 |5583 |
|[resnet34.bt_in1k](https://huggingface.co/timm/resnet34.bt_in1k)|224 |75.16|92.18|21.8 |3.7 |3.7 |5994 |
|[seresnet50.a3_in1k](https://huggingface.co/timm/seresnet50.a3_in1k)|160 |75.1 |92.08|28.1 |2.1 |5.7 |5513 |
|[resnet34.gluon_in1k](https://huggingface.co/timm/resnet34.gluon_in1k)|224 |74.57|91.98|21.8 |3.7 |3.7 |5984 |
|[resnet18d.ra2_in1k](https://huggingface.co/timm/resnet18d.ra2_in1k)|288 |73.81|91.83|11.7 |3.4 |5.4 |5196 |
|[resnet34.tv_in1k](https://huggingface.co/timm/resnet34.tv_in1k)|224 |73.32|91.42|21.8 |3.7 |3.7 |5979 |
|[resnet18.fb_swsl_ig1b_ft_in1k](https://huggingface.co/timm/resnet18.fb_swsl_ig1b_ft_in1k)|224 |73.28|91.73|11.7 |1.8 |2.5 |10213 |
|[resnet18.a1_in1k](https://huggingface.co/timm/resnet18.a1_in1k)|288 |73.16|91.03|11.7 |3.0 |4.1 |6050 |
|[resnet34.a3_in1k](https://huggingface.co/timm/resnet34.a3_in1k)|224 |72.98|91.11|21.8 |3.7 |3.7 |5967 |
|[resnet18.fb_ssl_yfcc100m_ft_in1k](https://huggingface.co/timm/resnet18.fb_ssl_yfcc100m_ft_in1k)|224 |72.6 |91.42|11.7 |1.8 |2.5 |10213 |
|[resnet18.a2_in1k](https://huggingface.co/timm/resnet18.a2_in1k)|288 |72.37|90.59|11.7 |3.0 |4.1 |6051 |
|[resnet14t.c3_in1k](https://huggingface.co/timm/resnet14t.c3_in1k)|224 |72.26|90.31|10.1 |1.7 |5.8 |7026 |
|[resnet18d.ra2_in1k](https://huggingface.co/timm/resnet18d.ra2_in1k)|224 |72.26|90.68|11.7 |2.1 |3.3 |8707 |
|[resnet18.a1_in1k](https://huggingface.co/timm/resnet18.a1_in1k)|224 |71.49|90.07|11.7 |1.8 |2.5 |10187 |
|[resnet14t.c3_in1k](https://huggingface.co/timm/resnet14t.c3_in1k)|176 |71.31|89.69|10.1 |1.1 |3.6 |10970 |
|[resnet18.gluon_in1k](https://huggingface.co/timm/resnet18.gluon_in1k)|224 |70.84|89.76|11.7 |1.8 |2.5 |10210 |
|[resnet18.a2_in1k](https://huggingface.co/timm/resnet18.a2_in1k)|224 |70.64|89.47|11.7 |1.8 |2.5 |10194 |
|[resnet34.a3_in1k](https://huggingface.co/timm/resnet34.a3_in1k)|160 |70.56|89.52|21.8 |1.9 |1.9 |10737 |
|[resnet18.tv_in1k](https://huggingface.co/timm/resnet18.tv_in1k)|224 |69.76|89.07|11.7 |1.8 |2.5 |10205 |
|[resnet10t.c3_in1k](https://huggingface.co/timm/resnet10t.c3_in1k)|224 |68.34|88.03|5.4 |1.1 |2.4 |13079 |
|[resnet18.a3_in1k](https://huggingface.co/timm/resnet18.a3_in1k)|224 |68.25|88.17|11.7 |1.8 |2.5 |10167 |
|[resnet10t.c3_in1k](https://huggingface.co/timm/resnet10t.c3_in1k)|176 |66.71|86.96|5.4 |0.7 |1.5 |20327 |
|[resnet18.a3_in1k](https://huggingface.co/timm/resnet18.a3_in1k)|160 |65.66|86.26|11.7 |0.9 |1.3 |18229 |
## Citation
```bibtex
@article{He2015,
author = {Kaiming He and Xiangyu Zhang and Shaoqing Ren and Jian Sun},
title = {Deep Residual Learning for Image Recognition},
journal = {arXiv preprint arXiv:1512.03385},
year = {2015}
}
```
```bibtex
@misc{rw2019timm,
author = {Ross Wightman},
title = {PyTorch Image Models},
year = {2019},
publisher = {GitHub},
journal = {GitHub repository},
doi = {10.5281/zenodo.4414861},
howpublished = {\url{https://github.com/huggingface/pytorch-image-models}}
}
```
|
[
-0.9163272380828857,
-0.2248198240995407,
0.023471957072615623,
0.42008912563323975,
-0.4558892250061035,
-0.11006992310285568,
-0.12765586376190186,
-0.3953017592430115,
1.2017580270767212,
0.2664107382297516,
-0.6514022350311279,
-0.5323143005371094,
-0.6293445229530334,
-0.02106349915266037,
0.3564607799053192,
0.8761361837387085,
0.00768895773217082,
-0.07380616664886475,
0.2473650872707367,
-0.22427821159362793,
-0.039154816418886185,
-0.31422972679138184,
-1.0314126014709473,
-0.16728101670742035,
0.4226503372192383,
0.18096590042114258,
0.6981088519096375,
0.642422080039978,
0.3825930655002594,
0.6164432764053345,
-0.2423945963382721,
0.2947844862937927,
-0.06994537264108658,
-0.15382665395736694,
0.6565220952033997,
-0.3948538601398468,
-0.9546616673469543,
-0.02527090534567833,
0.7310147881507874,
0.6453562378883362,
0.08357077091932297,
0.3669789433479309,
0.40656778216362,
0.611290693283081,
0.040819887071847916,
-0.0415661446750164,
0.01993037946522236,
0.124095618724823,
-0.28588685393333435,
0.08279892057180405,
-0.053226031363010406,
-0.7537339925765991,
0.19042950868606567,
-0.6508508920669556,
-0.06343171745538712,
0.0014899285743013024,
1.3818869590759277,
-0.129973903298378,
-0.24151447415351868,
0.08831050246953964,
0.15493494272232056,
0.7591809630393982,
-0.8419415950775146,
0.3504858911037445,
0.6069731116294861,
-0.01920934021472931,
-0.1946936547756195,
-0.634134829044342,
-0.5102660655975342,
0.14117728173732758,
-0.44477084279060364,
0.34250473976135254,
-0.3070075213909149,
-0.22511698305606842,
0.3811184763908386,
0.3330308496952057,
-0.486827552318573,
-0.14446823298931122,
-0.3782353699207306,
-0.0864706039428711,
0.7363433837890625,
0.07255404442548752,
0.7060879468917847,
-0.37652283906936646,
-0.5124219059944153,
-0.09302724897861481,
-0.16313938796520233,
0.47520482540130615,
0.26653018593788147,
0.11922015994787216,
-1.1415871381759644,
0.44654375314712524,
0.12370681017637253,
0.23112614452838898,
0.37847980856895447,
-0.12549319863319397,
0.8535853624343872,
-0.09961722791194916,
-0.5503784418106079,
-0.5028345584869385,
1.0952855348587036,
0.6850175857543945,
0.29200178384780884,
-0.1061459630727768,
-0.012021427974104881,
-0.14856427907943726,
-0.4288066029548645,
-0.9516181945800781,
-0.053246233612298965,
0.28327882289886475,
-0.5708193778991699,
-0.22623683512210846,
0.33746543526649475,
-0.9367048144340515,
-0.0557527132332325,
-0.09670618176460266,
0.07188796252012253,
-0.7729969024658203,
-0.4641093313694,
0.01210580300539732,
-0.23043900728225708,
0.5478159189224243,
0.23143146932125092,
-0.32005858421325684,
0.4332631230354309,
0.04634365066885948,
0.8774237632751465,
0.3155355155467987,
-0.05059356987476349,
-0.2072398066520691,
0.0350501649081707,
-0.375570684671402,
0.36318257451057434,
0.17820344865322113,
-0.19018030166625977,
-0.3440762162208557,
0.4246682822704315,
-0.2756027281284332,
-0.21353642642498016,
0.6500030755996704,
0.31262171268463135,
0.17250798642635345,
-0.28594523668289185,
-0.2629356384277344,
-0.2155013084411621,
0.35355016589164734,
-0.585921049118042,
1.0219539403915405,
0.39620596170425415,
-1.1472058296203613,
0.17645017802715302,
-0.49654749035835266,
0.007187186740338802,
-0.30398398637771606,
0.0890362486243248,
-0.897337019443512,
0.04523661732673645,
0.22277775406837463,
0.7222117781639099,
-0.2153993844985962,
-0.1825762540102005,
-0.3571273386478424,
0.06586708128452301,
0.4236173927783966,
0.1493624597787857,
0.9066897034645081,
0.3371809124946594,
-0.44983789324760437,
-0.22973254323005676,
-0.7505930662155151,
0.4473290741443634,
0.43097591400146484,
-0.006644052919000387,
-0.04784855619072914,
-0.8001577854156494,
0.03591209277510643,
0.6330849528312683,
0.28151822090148926,
-0.7512446641921997,
0.2719632089138031,
-0.17881421744823456,
0.34140047430992126,
0.6516799330711365,
0.024251017719507217,
0.1696380227804184,
-0.7168018817901611,
0.6252288222312927,
-0.036999110132455826,
0.2878335118293762,
0.013983821496367455,
-0.427995502948761,
-0.767612636089325,
-0.7804549932479858,
0.23094944655895233,
0.43455567955970764,
-0.41291359066963196,
0.9034669995307922,
0.14049400389194489,
-0.6208387017250061,
-0.6548759341239929,
0.0524403378367424,
0.5745981335639954,
0.21065610647201538,
0.08821050822734833,
-0.3353163003921509,
-0.7624871134757996,
-0.9665435552597046,
-0.3467269539833069,
0.12741369009017944,
-0.04168831184506416,
0.7096062302589417,
0.43159914016723633,
-0.1896095871925354,
0.5449898838996887,
-0.39104601740837097,
-0.2525283098220825,
-0.1347416639328003,
-0.11134442687034607,
0.4667005240917206,
0.8104033470153809,
1.0354769229888916,
-0.7514899969100952,
-0.9936832785606384,
0.15988950431346893,
-1.1620440483093262,
-0.06955213844776154,
-0.0067865923047065735,
-0.2577360272407532,
0.4275435209274292,
0.25508856773376465,
-0.9152128100395203,
0.8229016661643982,
0.40769776701927185,
-0.8910952210426331,
0.46725788712501526,
-0.37956884503364563,
0.5872881412506104,
-1.0861892700195312,
0.2676142752170563,
0.2872190475463867,
-0.26155731081962585,
-0.5955883860588074,
0.03575247526168823,
-0.10969407111406326,
0.15595370531082153,
-0.5747618675231934,
0.8121070861816406,
-0.7298377156257629,
-0.015000871382653713,
0.16784855723381042,
0.09076399356126785,
-0.03977314382791519,
0.4522223174571991,
-0.05728079751133919,
0.6149219870567322,
0.9193017482757568,
-0.16360174119472504,
0.34087151288986206,
0.4457516372203827,
0.034822531044483185,
0.7878836989402771,
-0.6273268461227417,
0.08475382626056671,
0.02618916518986225,
0.4591459631919861,
-1.033452033996582,
-0.4234327971935272,
0.579596757888794,
-0.8718927502632141,
0.6586231589317322,
-0.281515508890152,
-0.27268844842910767,
-0.8540457487106323,
-0.8981983661651611,
0.2654559314250946,
0.6564489006996155,
-0.5895395278930664,
0.3685680329799652,
0.21259763836860657,
-0.05631773918867111,
-0.5048071146011353,
-0.7046707272529602,
0.08568219095468521,
-0.43631094694137573,
-0.8503803610801697,
0.45850419998168945,
0.34883353114128113,
-0.1904086172580719,
0.1176668033003807,
-0.15336765348911285,
-0.1607920378446579,
-0.23172639310359955,
0.6035068035125732,
0.36044904589653015,
-0.314785897731781,
-0.4234244227409363,
-0.4085504114627838,
-0.29314669966697693,
-0.07076817750930786,
-0.1072390079498291,
0.5124574303627014,
-0.4598737359046936,
0.09875103086233139,
-1.507175326347351,
0.13877126574516296,
0.9161567687988281,
-0.02595611847937107,
1.0012787580490112,
0.7769010066986084,
-0.4806133508682251,
0.1863483190536499,
-0.4598376452922821,
-0.215187668800354,
-0.5347147583961487,
-0.24595175683498383,
-0.7302007079124451,
-0.6029679775238037,
0.9375819563865662,
0.08209240436553955,
-0.13530370593070984,
0.7954779863357544,
0.1573907434940338,
-0.26400959491729736,
0.8647117614746094,
0.4733130931854248,
-0.05020560696721077,
0.5828546285629272,
-0.8587951064109802,
0.11843711882829666,
-0.8412700891494751,
-0.7525323629379272,
-0.23024888336658478,
-0.5616127848625183,
-0.5998045802116394,
-0.3645090162754059,
0.23472437262535095,
0.41503486037254333,
-0.25029274821281433,
0.6117108464241028,
-0.5682355165481567,
0.0377633310854435,
0.31219226121902466,
0.5543469786643982,
-0.20124295353889465,
-0.14634276926517487,
-0.11258390545845032,
-0.359878808259964,
-0.5364830493927002,
-0.3855002522468567,
0.8066889047622681,
0.6483537554740906,
0.44244515895843506,
0.1136411726474762,
0.5649683475494385,
0.08377831429243088,
0.1854548156261444,
-0.300115168094635,
0.6954420804977417,
0.056801795959472656,
-0.47027885913848877,
-0.364940881729126,
-0.407990038394928,
-1.1167513132095337,
0.18878056108951569,
-0.47164157032966614,
-0.8989803791046143,
-0.18303030729293823,
-0.05730123817920685,
-0.37768587470054626,
0.7536987662315369,
-0.6300804615020752,
0.6441529393196106,
-0.0572575181722641,
-0.5678073763847351,
-0.06514319032430649,
-0.8103818297386169,
0.06475340574979782,
0.415531724691391,
0.05500606447458267,
-0.01549532450735569,
-0.04268346726894379,
0.7780867218971252,
-0.8387680053710938,
0.5941007137298584,
-0.3451671004295349,
0.13245083391666412,
0.41167575120925903,
-0.020542412996292114,
0.4129449725151062,
0.012495731934905052,
-0.18220815062522888,
-0.12241283804178238,
0.12676852941513062,
-0.8597387075424194,
-0.31794631481170654,
0.6747380495071411,
-0.7613197565078735,
-0.40069684386253357,
-0.6924421787261963,
-0.27160006761550903,
0.0905277207493782,
0.0188591331243515,
0.5010902285575867,
0.6651495099067688,
-0.04112463444471359,
0.23802921175956726,
0.5609755516052246,
-0.4338758587837219,
0.5328817367553711,
-0.15977375209331512,
0.009565532207489014,
-0.5774454474449158,
0.7453932762145996,
0.04558591544628143,
-0.00976554211229086,
-0.023773180320858955,
-0.0016897047171369195,
-0.4338166117668152,
-0.22728031873703003,
-0.31852012872695923,
0.7808988690376282,
-0.15364915132522583,
-0.29750490188598633,
-0.6271180510520935,
-0.35251277685165405,
-0.5799790620803833,
-0.45310065150260925,
-0.45095908641815186,
-0.361800879240036,
-0.33860713243484497,
0.01642521098256111,
0.7301881313323975,
0.8950983881950378,
-0.3837392032146454,
0.4079110026359558,
-0.5340093374252319,
0.32173851132392883,
0.08975135535001755,
0.5942093133926392,
-0.3670640289783478,
-0.6791713237762451,
0.04172138497233391,
-0.03666003793478012,
-0.0763591006398201,
-0.857949435710907,
0.6958365440368652,
-0.0069345771335065365,
0.3873886168003082,
0.4289092421531677,
-0.22363397479057312,
0.7332208752632141,
-0.014267283491790295,
0.47988539934158325,
0.6298717856407166,
-0.754708468914032,
0.3239381015300751,
-0.4820152521133423,
0.005284415557980537,
0.2938903272151947,
0.19998480379581451,
-0.3867456316947937,
-0.3569205105304718,
-0.8945479989051819,
-0.4027467668056488,
0.7504991888999939,
0.12269487231969833,
-0.03982197865843773,
-0.021391555666923523,
0.7064083218574524,
-0.09350765496492386,
0.06389274448156357,
-0.5484772324562073,
-0.9504996538162231,
-0.1240331381559372,
-0.1647021770477295,
0.06164383143186569,
-0.037688903510570526,
0.051405344158411026,
-0.6840361952781677,
0.6766732931137085,
0.07083145529031754,
0.5310829281806946,
0.18647924065589905,
0.03994046896696091,
0.057048019021749496,
-0.3033519983291626,
0.633482038974762,
0.38676074147224426,
-0.19796480238437653,
-0.15814992785453796,
0.3696894645690918,
-0.5179112553596497,
0.10045387595891953,
0.23516452312469482,
0.019741151481866837,
0.09108268469572067,
0.06446607410907745,
0.5093766450881958,
0.3540917634963989,
-0.07110682129859924,
0.5388580560684204,
-0.26662611961364746,
-0.5827292203903198,
-0.21371792256832123,
-0.23316191136837006,
0.28374356031417847,
0.4438333809375763,
0.34280872344970703,
0.04310530051589012,
-0.4219425618648529,
-0.3843262493610382,
0.5547616481781006,
0.7599955201148987,
-0.4225081503391266,
-0.3974836468696594,
0.6138955950737,
-0.006305210758000612,
-0.2038966417312622,
0.3920041024684906,
-0.11649385839700699,
-0.7068368196487427,
1.0457319021224976,
0.32120242714881897,
0.6206912398338318,
-0.5216315388679504,
0.10552607476711273,
0.8864988684654236,
-0.022156164050102234,
0.22523944079875946,
0.35871946811676025,
0.48722827434539795,
-0.3234085142612457,
-0.09238317608833313,
-0.5580436587333679,
0.19752098619937897,
0.5095937252044678,
-0.4025856554508209,
0.3060835003852844,
-0.7381147146224976,
-0.3457537293434143,
0.08601848781108856,
0.49698981642723083,
-0.6379973888397217,
0.36156904697418213,
-0.006112351082265377,
1.1019287109375,
-0.8514875769615173,
0.892746090888977,
0.8987383842468262,
-0.5709173679351807,
-0.8717980980873108,
-0.015622347593307495,
0.11188089102506638,
-0.8579036593437195,
0.4463901221752167,
0.07675705850124359,
0.022126758471131325,
-0.013175159692764282,
-0.50319504737854,
-0.7074781060218811,
1.3895851373672485,
0.3957885503768921,
-0.01497848704457283,
0.26574528217315674,
-0.45970073342323303,
0.37793096899986267,
-0.16977010667324066,
0.5997053980827332,
0.386861115694046,
0.522540807723999,
0.1545105278491974,
-0.9217361211776733,
0.35485583543777466,
-0.4383448362350464,
-0.14107437431812286,
0.3160371780395508,
-1.3477528095245361,
0.9373451471328735,
-0.22061501443386078,
-0.02971956878900528,
0.263741135597229,
0.6750150918960571,
0.330013245344162,
-0.046392738819122314,
0.2282620668411255,
0.9153427481651306,
0.48016712069511414,
-0.26270562410354614,
1.0544711351394653,
-0.22216661274433136,
0.5776059031486511,
0.20855140686035156,
0.5791650414466858,
0.3548430800437927,
0.4159581661224365,
-0.6054767966270447,
0.2603359520435333,
0.8293398022651672,
-0.052075330168008804,
0.13189658522605896,
0.3041107654571533,
-0.43155258893966675,
-0.21725450456142426,
-0.2299271821975708,
-0.7091253399848938,
0.23575608432292938,
0.1313323825597763,
-0.1358266919851303,
-0.14397470653057098,
-0.037877801805734634,
0.242050901055336,
0.3106902837753296,
-0.2715241312980652,
0.5116985440254211,
0.070126011967659,
-0.4117114543914795,
0.45844632387161255,
-0.03970176354050636,
1.1048182249069214,
-0.37664082646369934,
0.1629519760608673,
-0.3365790545940399,
0.3171578645706177,
-0.25148484110832214,
-1.1317636966705322,
0.3339238166809082,
-0.08559590578079224,
0.08464792370796204,
-0.23463475704193115,
0.655616044998169,
-0.3596571087837219,
-0.34108781814575195,
0.3976971209049225,
0.4000789523124695,
0.5196191072463989,
0.295536607503891,
-1.1222360134124756,
0.26690933108329773,
0.10582591593265533,
-0.6286967396736145,
0.45083385705947876,
0.5029003024101257,
0.40518584847450256,
0.7883650064468384,
0.3188112676143646,
0.33800262212753296,
0.24015755951404572,
-0.4147719442844391,
0.7556366324424744,
-0.649437427520752,
-0.4727623164653778,
-0.8236597776412964,
0.558571457862854,
-0.42512837052345276,
-0.5554929375648499,
0.7635365724563599,
0.5668978691101074,
0.36450639367103577,
0.007879805751144886,
0.712904155254364,
-0.5814250707626343,
0.5200449824333191,
-0.269339382648468,
0.7910485863685608,
-0.6700326204299927,
-0.281414270401001,
-0.22470931708812714,
-0.6016669869422913,
-0.42899855971336365,
0.8956425189971924,
-0.12069525569677353,
0.22287216782569885,
0.302731454372406,
0.6838415265083313,
0.08835090696811676,
-0.11568696051836014,
0.01660829409956932,
0.18399401009082794,
-0.15543173253536224,
0.9252199530601501,
0.5325112342834473,
-0.7810859084129333,
0.06888154149055481,
-0.4722732603549957,
-0.2955422103404999,
-0.39460641145706177,
-0.7561763525009155,
-1.2013232707977295,
-0.6846094131469727,
-0.5488229393959045,
-0.6953457593917847,
-0.28305545449256897,
1.2462786436080933,
0.8196259140968323,
-0.5995169281959534,
-0.16594532132148743,
0.1430944949388504,
0.09994617849588394,
-0.15208090841770172,
-0.22012126445770264,
0.5491592288017273,
0.14312860369682312,
-1.0269578695297241,
-0.4415324926376343,
0.12728406488895416,
0.6237443685531616,
0.40731188654899597,
-0.4955538809299469,
-0.27037960290908813,
-0.05851677060127258,
0.35904115438461304,
0.8937363624572754,
-0.8427945971488953,
-0.3072487413883209,
0.028453318402171135,
-0.5190373659133911,
0.13556000590324402,
0.2719780206680298,
-0.468513160943985,
-0.11618711054325104,
0.5179020166397095,
0.38451340794563293,
0.7414975762367249,
0.08850238472223282,
0.17037682235240936,
-0.4104938209056854,
0.560303807258606,
-0.013011914677917957,
0.345497190952301,
0.21126480400562286,
-0.2932519018650055,
0.7827205657958984,
0.561007022857666,
-0.42285051941871643,
-1.0363452434539795,
-0.18048183619976044,
-1.3601853847503662,
-0.06376217305660248,
0.670661211013794,
-0.06420822441577911,
-0.412285178899765,
0.40065863728523254,
-0.4943046271800995,
0.5393427610397339,
-0.24317114055156708,
0.25449395179748535,
0.25215306878089905,
-0.37724846601486206,
-0.34327033162117004,
-0.5903080105781555,
0.642717719078064,
0.3630765676498413,
-0.697490930557251,
-0.3821936845779419,
0.011346292681992054,
0.3075850307941437,
0.17642778158187866,
0.7660597562789917,
-0.3904288411140442,
0.15541143715381622,
-0.09699397534132004,
0.23357419669628143,
0.008899535052478313,
0.16746775805950165,
-0.32265377044677734,
-0.1471078246831894,
-0.25262451171875,
-0.6740667819976807
] |
pszemraj/pegasus-x-large-book-summary
|
pszemraj
| 2023-09-23T20:46:57Z | 9,329 | 33 |
transformers
|
[
"transformers",
"pytorch",
"safetensors",
"pegasus_x",
"text2text-generation",
"summarization",
"summary",
"booksum",
"long-document",
"long-form",
"dataset:kmfoda/booksum",
"base_model:google/pegasus-x-large",
"license:apache-2.0",
"license:bsd-3-clause",
"model-index",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] |
summarization
| 2022-09-16T10:55:11Z |
---
license:
- apache-2.0
- bsd-3-clause
tags:
- summarization
- summary
- booksum
- long-document
- long-form
datasets:
- kmfoda/booksum
metrics:
- rouge
languages: en
widget:
- text: large earthquakes along a given fault segment do not occur at random intervals
because it takes time to accumulate the strain energy for the rupture. The rates
at which tectonic plates move and accumulate strain at their boundaries are approximately
uniform. Therefore, in first approximation, one may expect that large ruptures
of the same fault segment will occur at approximately constant time intervals.
If subsequent main shocks have different amounts of slip across the fault, then
the recurrence time may vary, and the basic idea of periodic mainshocks must be
modified. For great plate boundary ruptures the length and slip often vary by
a factor of 2. Along the southern segment of the San Andreas fault the recurrence
interval is 145 years with variations of several decades. The smaller the standard
deviation of the average recurrence interval, the more specific could be the long
term prediction of a future mainshock.
example_title: earthquakes
- text: ' A typical feed-forward neural field algorithm. Spatiotemporal coordinates
are fed into a neural network that predicts values in the reconstructed domain.
Then, this domain is mapped to the sensor domain where sensor measurements are
available as supervision. Class and Section Problems Addressed Generalization
(Section 2) Inverse problems, ill-posed problems, editability; symmetries. Hybrid
Representations (Section 3) Computation & memory efficiency, representation capacity,
editability: Forward Maps (Section 4) Inverse problems Network Architecture (Section
5) Spectral bias, integration & derivatives. Manipulating Neural Fields (Section
6) Edit ability, constraints, regularization. Table 2: The five classes of techniques
in the neural field toolbox each addresses problems that arise in learning, inference,
and control. (Section 3). We can supervise reconstruction via differentiable forward
maps that transform Or project our domain (e.g, 3D reconstruction via 2D images;
Section 4) With appropriate network architecture choices, we can overcome neural
network spectral biases (blurriness) and efficiently compute derivatives and integrals
(Section 5). Finally, we can manipulate neural fields to add constraints and regularizations,
and to achieve editable representations (Section 6). Collectively, these classes
constitute a ''toolbox'' of techniques to help solve problems with neural fields
There are three components in a conditional neural field: (1) An encoder or inference
function € that outputs the conditioning latent variable 2 given an observation
0 E(0) =2. 2 is typically a low-dimensional vector, and is often referred to aS
a latent code Or feature code_ (2) A mapping function 4 between Z and neural field
parameters O: Y(z) = O; (3) The neural field itself $. The encoder € finds the
most probable z given the observations O: argmaxz P(2/0). The decoder maximizes
the inverse conditional probability to find the most probable 0 given Z: arg-
max P(Olz). We discuss different encoding schemes with different optimality guarantees
(Section 2.1.1), both global and local conditioning (Section 2.1.2), and different
mapping functions Y (Section 2.1.3) 2. Generalization Suppose we wish to estimate
a plausible 3D surface shape given a partial or noisy point cloud. We need a suitable
prior over the sur- face in its reconstruction domain to generalize to the partial
observations. A neural network expresses a prior via the function space of its
architecture and parameters 0, and generalization is influenced by the inductive
bias of this function space (Section 5).'
example_title: scientific paper
- text: 'Is a else or outside the cob and tree written being of early client rope
and you have is for good reasons. On to the ocean in Orange for time. By''s the
aggregate we can bed it yet. Why this please pick up on a sort is do and also
M Getoi''s nerocos and do rain become you to let so is his brother is made in
use and Mjulia''s''s the lay major is aging Masastup coin present sea only of
Oosii rooms set to you We do er do we easy this private oliiishs lonthen might
be okay. Good afternoon everybody. Welcome to this lecture of Computational Statistics.
As you can see, I''m not socially my name is Michael Zelinger. I''m one of the
task for this class and you might have already seen me in the first lecture where
I made a quick appearance. I''m also going to give the tortillas in the last third
of this course. So to give you a little bit about me, I''m a old student here
with better Bulman and my research centres on casual inference applied to biomedical
disasters, so that could be genomics or that could be hospital data. If any of
you is interested in writing a bachelor thesis, a semester paper may be mastathesis
about this topic feel for reach out to me. you have my name on models and my email
address you can find in the directory I''d Be very happy to talk about it. you
do not need to be sure about it, we can just have a chat. So with that said, let''s
get on with the lecture. There''s an exciting topic today I''m going to start
by sharing some slides with you and later on during the lecture we''ll move to
the paper. So bear with me for a few seconds. Well, the projector is starting
up. Okay, so let''s get started. Today''s topic is a very important one. It''s
about a technique which really forms one of the fundamentals of data science,
machine learning, and any sort of modern statistics. It''s called cross validation.
I know you really want to understand this topic I Want you to understand this
and frankly, nobody''s gonna leave Professor Mineshousen''s class without understanding
cross validation. So to set the stage for this, I Want to introduce you to the
validation problem in computational statistics. So the problem is the following:
You trained a model on available data. You fitted your model, but you know the
training data you got could always have been different and some data from the
environment. Maybe it''s a random process. You do not really know what it is,
but you know that somebody else who gets a different batch of data from the same
environment they would get slightly different training data and you do not care
that your method performs as well. On this training data. you want to to perform
well on other data that you have not seen other data from the same environment.
So in other words, the validation problem is you want to quantify the performance
of your model on data that you have not seen. So how is this even possible? How
could you possibly measure the performance on data that you do not know The solution
to? This is the following realization is that given that you have a bunch of data,
you were in charge. You get to control how much that your model sees. It works
in the following way: You can hide data firms model. Let''s say you have a training
data set which is a bunch of doubtless so X eyes are the features those are typically
hide and national vector. It''s got more than one dimension for sure. And the
why why eyes. Those are the labels for supervised learning. As you''ve seen before,
it''s the same set up as we have in regression. And so you have this training
data and now you choose that you only use some of those data to fit your model.
You''re not going to use everything, you only use some of it the other part you
hide from your model. And then you can use this hidden data to do validation from
the point of you of your model. This hidden data is complete by unseen. In other
words, we solve our problem of validation.'
example_title: transcribed audio - lecture
- text: 'Transformer-based models have shown to be very useful for many NLP tasks.
However, a major limitation of transformers-based models is its O(n^2)O(n 2) time
& memory complexity (where nn is sequence length). Hence, it''s computationally
very expensive to apply transformer-based models on long sequences n > 512n>512.
Several recent papers, e.g. Longformer, Performer, Reformer, Clustered attention
try to remedy this problem by approximating the full attention matrix. You can
checkout 🤗''s recent blog post in case you are unfamiliar with these models.
BigBird (introduced in paper) is one of such recent models to address this issue.
BigBird relies on block sparse attention instead of normal attention (i.e. BERT''s
attention) and can handle sequences up to a length of 4096 at a much lower computational
cost compared to BERT. It has achieved SOTA on various tasks involving very long
sequences such as long documents summarization, question-answering with long contexts.
BigBird RoBERTa-like model is now available in 🤗Transformers. The goal of this
post is to give the reader an in-depth understanding of big bird implementation
& ease one''s life in using BigBird with 🤗Transformers. But, before going into
more depth, it is important to remember that the BigBird''s attention is an approximation
of BERT''s full attention and therefore does not strive to be better than BERT''s
full attention, but rather to be more efficient. It simply allows to apply transformer-based
models to much longer sequences since BERT''s quadratic memory requirement quickly
becomes unbearable. Simply put, if we would have ∞ compute & ∞ time, BERT''s attention
would be preferred over block sparse attention (which we are going to discuss
in this post).
If you wonder why we need more compute when working with longer sequences, this
blog post is just right for you!
Some of the main questions one might have when working with standard BERT-like
attention include:
Do all tokens really have to attend to all other tokens? Why not compute attention
only over important tokens? How to decide what tokens are important? How to attend
to just a few tokens in a very efficient way? In this blog post, we will try to
answer those questions.
What tokens should be attended to? We will give a practical example of how attention
works by considering the sentence ''BigBird is now available in HuggingFace for
extractive question answering''. In BERT-like attention, every word would simply
attend to all other tokens.
Let''s think about a sensible choice of key tokens that a queried token actually
only should attend to by writing some pseudo-code. Will will assume that the token
available is queried and build a sensible list of key tokens to attend to.
>>> # let''s consider following sentence as an example >>> example = [''BigBird'',
''is'', ''now'', ''available'', ''in'', ''HuggingFace'', ''for'', ''extractive'',
''question'', ''answering'']
>>> # further let''s assume, we''re trying to understand the representation of
''available'' i.e. >>> query_token = ''available'' >>> # We will initialize an
empty `set` and fill up the tokens of our interest as we proceed in this section.
>>> key_tokens = [] # => currently ''available'' token doesn''t have anything
to attend Nearby tokens should be important because, in a sentence (sequence of
words), the current word is highly dependent on neighboring past & future tokens.
This intuition is the idea behind the concept of sliding attention.'
example_title: bigbird blog intro
- text: 'To be fair, you have to have a very high IQ to understand Rick and Morty.
The humour is extremely subtle, and without a solid grasp of theoretical physics
most of the jokes will go over a typical viewer''s head. There''s also Rick''s
nihilistic outlook, which is deftly woven into his characterisation- his personal
philosophy draws heavily from Narodnaya Volya literature, for instance. The fans
understand this stuff; they have the intellectual capacity to truly appreciate
the depths of these jokes, to realise that they''re not just funny- they say something
deep about LIFE. As a consequence people who dislike Rick & Morty truly ARE idiots-
of course they wouldn''t appreciate, for instance, the humour in Rick''s existential
catchphrase ''Wubba Lubba Dub Dub,'' which itself is a cryptic reference to Turgenev''s
Russian epic Fathers and Sons. I''m smirking right now just imagining one of those
addlepated simpletons scratching their heads in confusion as Dan Harmon''s genius
wit unfolds itself on their television screens. What fools.. how I pity them.
😂
And yes, by the way, i DO have a Rick & Morty tattoo. And no, you cannot see it.
It''s for the ladies'' eyes only- and even then they have to demonstrate that
they''re within 5 IQ points of my own (preferably lower) beforehand. Nothin personnel
kid 😎'
example_title: Richard & Mortimer
parameters:
max_length: 48
min_length: 2
no_repeat_ngram_size: 3
encoder_no_repeat_ngram_size: 3
early_stopping: true
length_penalty: 0.1
num_beams: 2
base_model: google/pegasus-x-large
model-index:
- name: pszemraj/pegasus-x-large-book-summary
results:
- task:
type: summarization
name: Summarization
dataset:
name: samsum
type: samsum
config: samsum
split: test
metrics:
- type: rouge
value: 33.1401
name: ROUGE-1
verified: true
verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiYjQ1NjY1OGVjYWEwMzBjMzk3ZmMyZDA0ZTcxOTdmZTUxNTc0OGYxYmY3MzJkMzFmYTVjNzU2ZTk4MzE0NWMzMSIsInZlcnNpb24iOjF9.PSHB6DMF6tkwSw5nsFE57a2ApRAy_tkS6ziKA6PSTWddEdaqfca4pfig6_olmRmcS4KxN6HHcsmioHzv4LJQBw
- type: rouge
value: 9.3095
name: ROUGE-2
verified: true
verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiMzk3MTA3NmY1OGE3MzFjZTJhYWYzNGU4NTUzMTgwM2Y1NWZjMmEyNDNmNmEzYmQzZThjOGExMjc2ZjAyZjMzZCIsInZlcnNpb24iOjF9.tfgp8p-WlkVrfducTSg4zs-byeZMCmdZw1aizPQHXm_qRAwGtKcuVkZcmza5Y3o3VqsAEmGzg5HQD1vnZvWIDA
- type: rouge
value: 24.8552
name: ROUGE-L
verified: true
verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiOTVmMTIwNDQwNTI4MmI2MmY1ODc1Mjk0NGQ5ZWE4ZTYzOGNkMjY2ZmJhMjg2MTZlNTdhYTA2ZDAxNTFjMjA2MSIsInZlcnNpb24iOjF9.9HLgy9842oIDm6ABb3L94R1P4zAqTI0QN8aP62xzIyDxUXTbWw68PEDufYLiBJbTgZ8ElopZ9I7aou2zCgXeAA
- type: rouge
value: 29.0391
name: ROUGE-LSUM
verified: true
verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiMmNhYWJjYjdjMzMxMmE4ZTE4NGEzMDdmZDZjODI5ZWRjZWJmYTEyZGIzYWQ2NjM3YzQ4MjI4ZTM4MmU5MzRjZSIsInZlcnNpb24iOjF9.d2yoVdmxjVJnsgIYFiLuaBO5Krgw4Axl5yeOSTKrvHygrAxoqT1nl4anzQiyoR3PwYBXwBkwmgpJUfZ7RNXtDQ
- type: loss
value: 2.288182497024536
name: loss
verified: true
verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiYzM5NGIwODMxOTA3MTY3ODc2ZDczYTNmMTMwM2QyZmNlZjFmZDJjMGY3NWNkMDEyYzA4OTA2ZDRiODY3Zjg4OCIsInZlcnNpb24iOjF9.8k9mC050OS7mQSR9oA8liDRDQvEx1VxmTXGLmDYJVYYtTh2HYJFGP8Vy_krocFRIYDxh-IHPEOOSr5NrLMWHBA
- type: gen_len
value: 45.2173
name: gen_len
verified: true
verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiNWZhNzQ5OTQ5Yjg5YjhlOTZiZmJhZjZiODNmY2E2OTg4YTg4NWVhYzRkNzM2Mzk4NzdlMDgxM2M4NjY2YzhhYSIsInZlcnNpb24iOjF9.tDEEsPUclZDygAdGhNrBGrF24vR8ao08Nw7hmtUt5lmSZZZK_u-8rpz97QgVS6MCJdjFVnbYC4bkFnlQWI_FAA
- task:
type: summarization
name: Summarization
dataset:
name: launch/gov_report
type: launch/gov_report
config: plain_text
split: test
metrics:
- type: rouge
value: 39.7279
name: ROUGE-1
verified: true
verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiOTAxODk3OTUwMTIzODU3NzU2YzAzZjE2NTM3MzBjNDA0ZWRmZGU3NWUzNTg1YThhNDQ1NjQ5ZmM3OWI2YzBhNSIsInZlcnNpb24iOjF9.vnNKucBNt2-nIyODj9P2HeaWPX5AQR8L-DL8QzrO7kj58-vZnjT6hsAGmepRNzdZ1TLF-3j2J2plcNJ8lUO8Dg
- type: rouge
value: 10.8944
name: ROUGE-2
verified: true
verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiNjYzMmIxOTJmZjkxOGI5N2U0NTRmMmQwOGJhMzMxYWIzMWMzYzUwMDEyMDdiZDQ2YTUzOWU0OTViMTI2YTAwYiIsInZlcnNpb24iOjF9.De0PaAikWqfWpoIXTCYP-mSFu3PUATLX08Qq74OHXM8784heFVDX1E1sXlh_QbbKJbuMuZtTKM4qr7oLUizOAw
- type: rouge
value: 19.7018
name: ROUGE-L
verified: true
verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiYzI3MjQzOGQ3MGE3NDNkZTEyMWRkYjUyYTYzNDEwOWVjMGFmNTBiZjE4ZTBhMGYzMmI1Yzk0YjBmYmIzMWMxZSIsInZlcnNpb24iOjF9.FVikJ5Ma0gUgM-tpbomWXnC4jtmvhxqikPqCk84t4IbIdU0CIYGTQEONiz-VqI0fJeNrnTS6lxpBv7XxKoq3BQ
- type: rouge
value: 36.5634
name: ROUGE-LSUM
verified: true
verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiOTI2OTVmNDZiZWE5ZjNkODIwZjJiNTU2ZjJjYjczODUwM2JiNDEzYmE3N2U5YWM5NzJjOWEzMmYzZjdlYWJmYyIsInZlcnNpb24iOjF9.poR4zcqRvdaierfWFdTa53Cv6ZbNbnRwyRTi9HukHF5AWAQgc6zpBLkwOYFYoWjuSH83ohWeMM3MoIdw3zypBw
- type: loss
value: 2.473011016845703
name: loss
verified: true
verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiNDFmMjg3NWQ2YTMxMTc1OGZiYWYzNjg5NDY3MWE4MjY5ZDQxZDZhZGI1OTc5MzZkZGEzYmVlNWFiMzZjNDdhNCIsInZlcnNpb24iOjF9.05nKB3SmEfFKSduJqlleF4Fd2_IhwJS8eTOrnzZYCQQfLCfpJAZLhp3eLQCuBY4htd-FNrZftrThL66zVxyrCQ
- type: gen_len
value: 212.8243
name: gen_len
verified: true
verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiOGNjMTg4ZDZlZjAxZGNhN2M0NWI0ZTA0OWEzNDkzNDAzOTJhODA2MmVkODI4YjYzN2FiOTU1ZDMwM2VlNWMyYyIsInZlcnNpb24iOjF9.WYx6XJFKokY2heoN-jpAMp1Z1gsyJus3zpktQgNd0FOYJxOUqW40A0kkHtd15y4dUhsbccLpuJGY1fNJgHOiDw
- task:
type: summarization
name: Summarization
dataset:
name: billsum
type: billsum
config: default
split: test
metrics:
- type: rouge
value: 42.1065
name: ROUGE-1
verified: true
verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiZDJhNDM2MWEwMjJlYjRmZTVkYzljODcwMzlmMGUxMDA4ZmRjNjM0NmY3ZWJlMmZjNGI3NDQ3NTQyOTQ3MjBkNSIsInZlcnNpb24iOjF9.l1MiZbXyFyXAcsfFChMrTvSaBhzBR6AuDnBuII8zY3Csz3ShWK0vo09MkQdZ1epe8PKWV9wwUBuJyKk3wL7MDw
- type: rouge
value: 15.4079
name: ROUGE-2
verified: true
verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiNTY3NDBkYTVkNjdhY2I0ZmY0NTA4YzVkMGE5YWE5ODdjOGE1MDhkOTJhOWY3NmI2ZWI1MGU2MGI1NDRlYjI3MSIsInZlcnNpb24iOjF9.VN-5eK2SzFDCJnFTHHu7XCU_lynaxW_JEDc3llmcNo_ffDgRmISHHGaqV7fPFymBBMXpPly7XblO_sukyqj1Cg
- type: rouge
value: 24.8814
name: ROUGE-L
verified: true
verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiZDYyNGZmNDY3MTY4YzI4ZjZhODE0NGIyN2ZkOGEyYzM3MWZjM2QzZTg5ZjNmZmYzZDE5NzhiZDQ4OGM1YjNiMyIsInZlcnNpb24iOjF9.L73M1M5XdMQkf8zSdfLN0MUrxtO0r6UiLjoOkHfrIGbWNsNJ8tU5lciYFNIhJrICUL8LchCsFqR9LAClKS4bCg
- type: rouge
value: 36.0375
name: ROUGE-LSUM
verified: true
verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiMTBlMTQ5OTQxNTA3ZmFiMGYyZWQ0MGM0ODY2YWI3MzgyNjkwNzQyM2FmNGRjMzc3MjJmZDZkOWY4M2RhZTg2MSIsInZlcnNpb24iOjF9.IiMSSVahBgH8n34bGCC_DDGpujDXQbIvGhlcpVV2EBVQLLWUqcCy5WwBdbRrxPC-asBRCNERQxj8Uii4FvPsDQ
- type: loss
value: 1.9130958318710327
name: loss
verified: true
verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiNTg2NTMxZDE3MDg3MDFkMTYxNjY1OTc5YjQ4ODcyMGUxMTFiZjJiNDgyYWZhN2NjZmE1MDQ1NTRmZGY0NjQzZSIsInZlcnNpb24iOjF9.kADUBMO8i6-oGDDt1cOiGMrGcMkF_Qc1jSpS2NSFyksDRusQa_YuuShefF4DuHVEr3CS0hNjjRH9_JBeX9ZQDg
- type: gen_len
value: 179.2184
name: gen_len
verified: true
verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiNjM4NGNiMTY3YzZjMzg4MTRiMDdiZDFiMzA1ZDIyMDM2MDk1OWRhYWQzN2UxZDNlODIxOWVhY2JlYjk4Mjk5YyIsInZlcnNpb24iOjF9.nU8ImMNWgjg9BKjUBJQLFaJOBq3kyIne8ldlpL0OV0e4888wOntIAcJP0dCCYfRSLVmZuXQ1M8cpDuTf50hNCw
- task:
type: summarization
name: Summarization
dataset:
name: kmfoda/booksum
type: kmfoda/booksum
config: kmfoda--booksum
split: test
metrics:
- type: rouge
value: 35.2154
name: ROUGE-1
verified: true
verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiZWQ5MGMzNDc4MDBiNmRiNDY5ZDM4N2QzYTJlYTNiYTcwNDBlMzdlM2I4N2VmM2ZjMmQ3NGU3OTRlMTMzMTg3NyIsInZlcnNpb24iOjF9.E55gu7HvMwc4HejF3YOD6yqQJj7_6GCoCMWm78sY5_w2glR-oM98tu9IsG27VaPva7UklxsspzT2DIVaVKY0CQ
- type: rouge
value: 6.8702
name: ROUGE-2
verified: true
verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiZjFhN2JlYzlmMGZmYzkwYjBlNjY4YzhlYzNmMTdmZWYyYmU3NWI0ZTRkMTgxNmRiM2EyZWMyMWFjY2JkNzg1MCIsInZlcnNpb24iOjF9.I9BoHbGt8LLNtLAssIXm9tQ4lHqFCMt0zJS_zTezzxGRMS5On71c3jnlzrDtwEm6wjmZEwYIJK8qqJh-Qa5YAA
- type: rouge
value: 17.6693
name: ROUGE-L
verified: true
verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiOGZlZjcwOTZjMmNjZWFkM2M5Zjg1OTgzMzcxOTM2Y2RkMzY4NGU2NDE2MTVjMjcyMWIwNWI4ODc0YTY3YTA2MSIsInZlcnNpb24iOjF9.Ou1C6U6PrOtXPxlk9PMucdJ_vlnVnSk94QrLJL4b_g2pcY3D80Xrw09iz4BTOPzZ2UTNBLyn8YdLY3m2vHpiAQ
- type: rouge
value: 32.8365
name: ROUGE-LSUM
verified: true
verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiMmIzMGQ5MzQ1MjI4MTU0ZGZkZTRhODllNWQyOTQ4ZjA5YWE4ZTJjMzQ2ZWQzOGFiMWUzZDMxOTU5NzkxYjliZiIsInZlcnNpb24iOjF9.2mYURQZYo7e3AY0tfkpqFMNhoHvrysvBXza-XYYrX_xLpruMU9Gzrwc3jvpi2wtp4eeyhzIiZJvH0O6la6zxCg
- type: loss
value: 2.9878039360046387
name: loss
verified: true
verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiZGU0ODBmN2I3OGFkNTFiM2I3YWQyNmUzNzUwYzEwNzczZWEwZjIxYTAwZDE2ZTIwMGE3ZGNmMDQzNTFmNjEwYyIsInZlcnNpb24iOjF9.0IKWIImKTXqysQUb2IMPk2eeHlOcBjndiPcU42nfFBMhRTqeXdBqOCP6cidlho7pVN4hsC-77ArJ9pZlbTFuBg
- type: gen_len
value: 200.6785
name: gen_len
verified: true
verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiMDUzYTE3MmIxZGM3MWI1MjNhMTU3MTdkMjJjNjY5Y2UzYTdjYWRiY2I4MmUxMDY4NTA5NWZjYWU0NzliODdkYiIsInZlcnNpb24iOjF9.BqmCaWzbCMNUied6zNO744Dl-0LC47FCIv-l8kDjkhSkwQcb_hi93VYts5PTsrFY_MmM8j7AsY1PiFr6nNFMBQ
- task:
type: summarization
name: Summarization
dataset:
name: big_patent
type: big_patent
config: y
split: test
metrics:
- type: rouge
value: 37.376
name: ROUGE-1
verified: true
verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiMWI4ZjMxODcxMThiMzE3NjQ3Zjg0NzhmZjlhY2ZmYjQwMGY5ZjlkZGY1MzZmY2M5YTU4NmY1Y2NhZDA3YWFkOCIsInZlcnNpb24iOjF9.sYh4IynXgOpVetYYSWUp0v5QZWvXC1x7_uJR0LZUxaeYKEc4yfICNmDOPzNzoroaV4ELeOaPjHQpYVm-lpAHBA
- type: rouge
value: 11.4432
name: ROUGE-2
verified: true
verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiZTZkOGIyYzU3YTQ5ZTFmMDU3MjQ5ZWM2NGQ1MzgwMDYyZDkxN2Q2YjgyZTkzMTEyYjczMGJiYmNkZmU5MTQ3NSIsInZlcnNpb24iOjF9.Qk38acpjPjU64Z1nXEuqMXjKZrGvdC9oY586EjuCPeEAJCSzKimp8FsB-1QrjMH73q6rN2CdumJUxih6HF-KAA
- type: rouge
value: 22.2754
name: ROUGE-L
verified: true
verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiNzlmOTUxYmEzYzYyYmVjNGZlNzNiZWIwZmQ5OWVlY2U3NTBiZDExYWUwODQ0Y2ZjMmQyMTNmMTlmNjdmZWUwNCIsInZlcnNpb24iOjF9.bUVhxaepySyaityby71j6h4YO_l4x8OSeZoblagwUMYGXRc0Ej286QzEtZFeRGygMJ5sjUN_loWCtOmAnHY2BA
- type: rouge
value: 32.5087
name: ROUGE-LSUM
verified: true
verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiNDEyNjM5NjAzYTNjN2MwZTY4MWY2Y2U5YWUyM2Y1YjAyNjBhZTM0YTAyZjM5N2M1ZDkxOWUxNzE2OWZkYTBmMSIsInZlcnNpb24iOjF9.QfMHkcoAR3xqzsgL1xjHk3Lui1xhE12pJKvYujQ_h5o6PBXT79dsENsrqDGGBjiKdTKNwWqADgaviy1VrWMDCQ
- type: loss
value: 2.9867310523986816
name: loss
verified: true
verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiZTUzM2Q5MmE5MzU4YmFlMjFiMmUzZGU2NDAzMTQ1Y2NjZDVlYWI3NGE5MjM0NmMxMjdiOWI3MTU0NDk3NmNkZiIsInZlcnNpb24iOjF9.VoQqu6ZU3AR_cji82UkpvbLnTmZ17fZmR2E4DeonjCyTZpyyfvUsQ2nbKDovQf34DBkYXENk42EUsUF1mBZNBg
- type: gen_len
value: 172.7776
name: gen_len
verified: true
verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiNTEzNTMyMDY1N2Q5ZTMxNjNlMTI0Nzk5ZDc1ZWQ5Y2IwZWM0NWNhNWY2MTk3YTRkYzUwMTI4NjZiOWVhOGQwYSIsInZlcnNpb24iOjF9.-Rek2VFmGqIEgqeFoxU_0aCWdFbGYi9BV5c7x-izm9_4vtZdYQ4ITXm4T8C3UlpOax60veJQt2Uax5vyiFc9Ag
---
# pszemraj/pegasus-x-large-book-summary
<a href="https://colab.research.google.com/gist/pszemraj/6c326c0649233ab017d63adc36958d1a/pegasus-x-large-booksum-demo.ipynb">
<img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/>
</a>
Get SparkNotes-esque summaries of arbitrary text! Due to the model size, it's recommended to try it out in Colab (linked above) as the API textbox may time out.
This model is a fine-tuned version of [google/pegasus-x-large](https://huggingface.co/google/pegasus-x-large) on the `kmfoda/booksum` dataset for approx eight epochs.
## Training and evaluation data
More information needed
## Training procedure
### Training hyperparameters
#### Epochs 1-4
TODO
#### Epochs 5 & 6
The following hyperparameters were used during training:
- learning_rate: 6e-05
- train_batch_size: 4
- eval_batch_size: 1
- seed: 42
- distributed_type: multi-GPU
- gradient_accumulation_steps: 32
- total_train_batch_size: 128
- optimizer: _ADAN_ using lucidrains' `adan-pytorch` with default betas
- lr_scheduler_type: constant_with_warmup
- data type: TF32
- num_epochs: 2
#### Epochs 7 & 8
- epochs 5 & 6 were trained with 12288 tokens input
- this fixes that with 2 epochs at 16384 tokens input
The following hyperparameters were used during training:
- learning_rate: 0.0004
- train_batch_size: 4
- eval_batch_size: 1
- seed: 42
- distributed_type: multi-GPU
- gradient_accumulation_steps: 16
- total_train_batch_size: 64
- optimizer: _ADAN_ using lucidrains' `adan-pytorch` with default betas
- lr_scheduler_type: cosine
- lr_scheduler_warmup_ratio: 0.03
- num_epochs: 2
### Framework versions
- Transformers 4.22.0
- Pytorch 1.11.0a0+17540c5
- Datasets 2.4.0
- Tokenizers 0.12.1
|
[
-0.590995192527771,
-0.5012620091438293,
0.18476513028144836,
0.16075628995895386,
-0.4105508327484131,
-0.41050979495048523,
-0.20587310194969177,
-0.36975741386413574,
0.33675095438957214,
0.1924264132976532,
-0.6231839656829834,
-0.4428904950618744,
-0.6273947954177856,
-0.0007970714941620827,
-0.16281069815158844,
1.193293571472168,
-0.03148285299539566,
0.24634021520614624,
0.14196854829788208,
-0.1309680938720703,
-0.03796713054180145,
-0.4809383153915405,
-0.8739133477210999,
-0.3215627670288086,
0.554736852645874,
0.27189281582832336,
0.8216565251350403,
0.977220892906189,
0.5205627679824829,
0.29707711935043335,
-0.505110502243042,
0.09077370166778564,
-0.41953718662261963,
-0.22760255634784698,
0.19278869032859802,
-0.2448922097682953,
-0.5598346590995789,
-0.12957420945167542,
1.1015056371688843,
0.44534027576446533,
-0.025038309395313263,
0.3585033118724823,
0.21189284324645996,
0.5016762614250183,
-0.6531484127044678,
0.6084571480751038,
-0.19977955520153046,
0.22602498531341553,
-0.1560087651014328,
-0.06721439957618713,
-0.24943479895591736,
0.020979195833206177,
0.2300647646188736,
-0.8547291159629822,
0.57367342710495,
0.07637759298086166,
1.1859296560287476,
0.17356356978416443,
-0.36431020498275757,
-0.20662803947925568,
-0.4571475088596344,
0.828207790851593,
-0.7322425246238708,
0.4288638234138489,
0.3504420816898346,
0.39902955293655396,
-0.07705066353082657,
-0.9352095723152161,
-0.5512126684188843,
-0.20338812470436096,
-0.08792589604854584,
0.12447178363800049,
0.13461284339427948,
-0.09531138092279434,
0.5638201832771301,
0.42002183198928833,
-0.6477677226066589,
0.1636403203010559,
-0.36745685338974,
-0.10558465123176575,
0.40211963653564453,
0.42854514718055725,
-0.11927037686109543,
-0.2120448350906372,
-0.5660644769668579,
-0.53984534740448,
-0.5298193693161011,
0.2776428163051605,
0.2239297777414322,
0.34181252121925354,
-0.30445173382759094,
0.35823339223861694,
-0.1331954151391983,
0.7657887935638428,
0.13986298441886902,
-0.19840991497039795,
0.631587028503418,
-0.34691062569618225,
-0.30900388956069946,
0.07784825563430786,
0.9565529823303223,
0.47954851388931274,
-0.1149708703160286,
-0.11046933382749557,
-0.20934413373470306,
-0.4651755392551422,
0.060327447950839996,
-1.3145637512207031,
-0.11080492287874222,
0.2716630697250366,
-0.2863365709781647,
-0.06142638251185417,
-0.10127956420183182,
-0.6467470526695251,
-0.2022656798362732,
-0.37537312507629395,
0.44621315598487854,
-0.5999622941017151,
0.2237008512020111,
0.21677947044372559,
-0.31039854884147644,
0.35302841663360596,
0.2457892745733261,
-1.0062501430511475,
0.25218626856803894,
0.561450719833374,
0.9048876166343689,
0.17773209512233734,
-0.627650797367096,
-0.3085517883300781,
0.12349870800971985,
-0.3259921669960022,
0.5113346576690674,
-0.021517179906368256,
-0.45036742091178894,
-0.1843925565481186,
0.2657948434352875,
-0.21361121535301208,
-0.32386016845703125,
0.9941690564155579,
-0.4943189322948456,
0.2510365843772888,
-0.7069173455238342,
-0.8064517974853516,
-0.25893130898475647,
0.17501279711723328,
-0.6876078844070435,
1.0076552629470825,
-0.02211744897067547,
-0.8489850163459778,
0.7430551052093506,
-0.5169993042945862,
-0.0030286675319075584,
0.17442524433135986,
-0.22848400473594666,
-0.8070324063301086,
-0.25262710452079773,
0.27116402983665466,
0.5241228342056274,
-0.3675974905490875,
0.03462453559041023,
-0.39137572050094604,
-0.5982741713523865,
0.033666253089904785,
-0.25378477573394775,
1.0209399461746216,
0.0674402117729187,
-0.6505728363990784,
0.055054448544979095,
-0.8697766065597534,
0.08478092402219772,
0.15373918414115906,
-0.28198742866516113,
0.026210594922304153,
-0.27073726058006287,
0.4134584665298462,
0.13749158382415771,
0.4229944348335266,
-0.6088751554489136,
0.17846782505512238,
-0.2562750279903412,
0.41887158155441284,
0.6950254440307617,
-0.11022455245256424,
0.045398611575365067,
-0.5316904783248901,
0.20337922871112823,
0.04435495287179947,
0.3419218361377716,
-0.1392734944820404,
-0.5638625025749207,
-0.862866222858429,
-0.42995816469192505,
0.15050703287124634,
0.22858043015003204,
-0.4499629735946655,
0.8689543008804321,
-0.3825695514678955,
-0.879525899887085,
-0.05576580390334129,
0.0600382462143898,
0.4063076972961426,
0.7646690607070923,
0.4556204378604889,
-0.053996339440345764,
-0.2663871943950653,
-0.735914409160614,
0.21043233573436737,
-0.09758227318525314,
0.059013016521930695,
0.4654126763343811,
0.7972314357757568,
-0.16911664605140686,
0.7409316301345825,
-0.5580081343650818,
-0.2484949827194214,
0.16703031957149506,
0.05951547622680664,
0.3414371609687805,
0.545764684677124,
0.8527275919914246,
-0.699837327003479,
-0.39529213309288025,
-0.18188704550266266,
-0.7288222312927246,
0.2750672399997711,
-0.12382292002439499,
-0.19130271673202515,
0.13842450082302094,
0.3603326976299286,
-0.6661548614501953,
0.22103066742420197,
0.2147873491048813,
-0.6744617819786072,
0.8659141659736633,
-0.34619879722595215,
0.18638361990451813,
-1.1353414058685303,
0.31523367762565613,
0.2167593538761139,
0.06634216010570526,
-0.011471366509795189,
0.0984717607498169,
0.37644436955451965,
-0.09010069817304611,
-0.4815603792667389,
0.7974319458007812,
-0.4104612171649933,
0.205807164311409,
-0.03706963360309601,
-0.16853639483451843,
0.015422040596604347,
0.6824193596839905,
0.11262954771518707,
0.8755754232406616,
0.8102206587791443,
-0.5778707265853882,
0.37833303213119507,
0.4872578978538513,
-0.5009186267852783,
0.08643683791160583,
-0.8648303151130676,
-0.2281772792339325,
0.08112679421901703,
0.3052220642566681,
-0.8103137612342834,
-0.19293691217899323,
0.4745968282222748,
-0.4613533020019531,
0.30478426814079285,
-0.09501641243696213,
-0.6030401587486267,
-0.2709909975528717,
-0.4820418655872345,
0.36523696780204773,
0.5695069432258606,
-0.6634060740470886,
0.34083092212677,
-0.04766496270895004,
-0.09140070527791977,
-0.8354381322860718,
-0.49672549962997437,
0.041405610740184784,
-0.21051695942878723,
-0.5263403654098511,
0.39553627371788025,
-0.14387409389019012,
0.24046672880649567,
-0.016866222023963928,
-0.10244286805391312,
-0.1378995031118393,
-0.15009136497974396,
0.3747453987598419,
0.3203708231449127,
-0.23771803081035614,
0.021261131390929222,
0.016612425446510315,
-0.19366300106048584,
0.2618243992328644,
-0.39297646284103394,
0.45633238554000854,
-0.28890764713287354,
-0.08722604066133499,
-0.5390990972518921,
-0.12735313177108765,
0.7305368185043335,
0.027427660301327705,
1.1571900844573975,
0.9006866216659546,
-0.3406648635864258,
-0.04427391290664673,
-0.33089345693588257,
-0.16415582597255707,
-0.46556591987609863,
0.4809115529060364,
-0.21909229457378387,
-0.5456613898277283,
0.5959033370018005,
0.29920798540115356,
0.3137270510196686,
0.7094899415969849,
0.684719979763031,
0.19070516526699066,
0.935640811920166,
0.3609558641910553,
-0.05372367426753044,
0.641431450843811,
-0.8383779525756836,
-0.37861859798431396,
-0.8038055300712585,
-0.43699824810028076,
-0.5818209052085876,
-0.17928700149059296,
-0.45127442479133606,
-0.09162148833274841,
0.37103042006492615,
0.06280756741762161,
-0.765617847442627,
0.381243497133255,
-0.3594683110713959,
0.27979519963264465,
0.746465265750885,
0.2543611526489258,
0.030357997864484787,
0.20377770066261292,
-0.2627074718475342,
0.04147111251950264,
-0.7774040102958679,
-0.44040778279304504,
1.310703992843628,
0.2411506026983261,
0.6497729420661926,
-0.04447005316615105,
0.5989965200424194,
-0.008826000615954399,
0.08685336261987686,
-0.7268850207328796,
0.5122740864753723,
0.007136654574424028,
-0.7945960164070129,
-0.353075236082077,
-0.5515114665031433,
-1.0947014093399048,
0.24013198912143707,
-0.2942252457141876,
-0.7325336337089539,
0.29273635149002075,
0.14233841001987457,
-0.39962899684906006,
0.4668603539466858,
-0.7320280075073242,
1.067961573600769,
-0.1961970329284668,
-0.4668617248535156,
0.1041482612490654,
-0.6629805564880371,
0.07687003165483475,
-0.19541676342487335,
-0.19479553401470184,
0.24600061774253845,
-0.2859049439430237,
1.133944034576416,
-0.8366386890411377,
0.6568659543991089,
-0.14177030324935913,
0.05594725161790848,
0.2537156939506531,
-0.417435884475708,
0.5121134519577026,
0.044968608766794205,
-0.18634670972824097,
0.35463616251945496,
-0.008876890875399113,
-0.7921084761619568,
-0.49273842573165894,
0.7238376140594482,
-1.2519713640213013,
-0.343934565782547,
-0.7103123664855957,
-0.6065071821212769,
-0.1857311725616455,
0.22793877124786377,
0.6239018440246582,
0.7531476020812988,
-0.04513636231422424,
0.368200421333313,
0.5131998658180237,
0.03366135060787201,
0.5121248960494995,
0.3602861762046814,
-0.09178977459669113,
-0.6505824327468872,
0.8423967361450195,
0.2625965178012848,
-0.004768687300384045,
0.18525198101997375,
0.12033692747354507,
-0.5588750243186951,
-0.5737250447273254,
-0.7411450743675232,
0.42536330223083496,
-0.5773467421531677,
-0.009822453372180462,
-0.5939018130302429,
-0.17001274228096008,
-0.5953325629234314,
-0.03653803467750549,
-0.2206452637910843,
-0.43580588698387146,
-0.49129122495651245,
-0.033644504845142365,
0.48592039942741394,
0.2726038098335266,
0.03228059783577919,
0.6928594708442688,
-0.9454702138900757,
-0.02701435796916485,
0.11753244698047638,
0.2221471071243286,
0.1884874701499939,
-0.9172837734222412,
-0.5922492146492004,
0.06475065648555756,
-0.3683221936225891,
-0.5985009074211121,
0.420796275138855,
0.07522819191217422,
0.35840946435928345,
0.7822840213775635,
-0.15702375769615173,
0.5893970727920532,
-0.4883289635181427,
0.8233999013900757,
0.40339159965515137,
-0.5168029069900513,
0.1497146636247635,
-0.38460877537727356,
0.24312861263751984,
0.3555597960948944,
0.7835294008255005,
-0.23498789966106415,
0.08459138125181198,
-0.8898290395736694,
-0.9185409545898438,
0.9169201254844666,
0.33071133494377136,
-0.10434702038764954,
0.1805952936410904,
0.47771406173706055,
0.030500182881951332,
0.12432105839252472,
-0.4741452932357788,
-0.5424270629882812,
-0.21062232553958893,
0.1209564208984375,
-0.6628158092498779,
-0.28379443287849426,
-0.20737749338150024,
-0.4476122260093689,
1.0609865188598633,
0.1391911506652832,
0.09725935757160187,
0.13171140849590302,
0.10723064094781876,
0.04453262314200401,
-0.13973368704319,
0.43967586755752563,
0.7995700240135193,
-0.601847767829895,
-0.3037918210029602,
0.021458163857460022,
-0.8412599563598633,
0.11083772033452988,
0.6114460229873657,
-0.29023978114128113,
0.13776430487632751,
0.37313219904899597,
1.0812655687332153,
0.00098101154435426,
-0.5914310812950134,
0.4002935290336609,
-0.19566164910793304,
-0.08985479176044464,
-0.3725522458553314,
0.20768894255161285,
-0.028594469651579857,
0.17045938968658447,
0.3599246144294739,
-0.038302551954984665,
0.16544462740421295,
-0.10946924239397049,
0.12599675357341766,
0.17565695941448212,
-0.3710499107837677,
-0.2455768585205078,
0.7181277275085449,
0.12990164756774902,
0.009131905622780323,
0.5944101810455322,
-0.3383263647556305,
-0.2688647210597992,
0.8316326141357422,
0.4466674327850342,
0.7673353552818298,
0.17902128398418427,
0.10528126358985901,
0.5860902070999146,
0.17327286303043365,
-0.10903160274028778,
0.05168871954083443,
-0.24397680163383484,
-0.49186772108078003,
-0.34280887246131897,
-0.7656998634338379,
-0.5148170590400696,
0.29106226563453674,
-0.7299513816833496,
0.45153722167015076,
-0.5637133717536926,
-0.43055459856987,
0.3643626272678375,
0.41361570358276367,
-0.6589030027389526,
0.35221076011657715,
-0.02471647597849369,
1.2712788581848145,
-0.835099458694458,
0.5734025835990906,
0.8586897253990173,
-0.5761441588401794,
-0.9286288619041443,
-0.21801713109016418,
-0.07109702378511429,
-0.8417498469352722,
0.745201826095581,
-0.05951623246073723,
0.1455441564321518,
0.027750803157687187,
-0.46315276622772217,
-0.7259723544120789,
1.2912122011184692,
0.4212140142917633,
-0.5091225504875183,
-0.10596393793821335,
0.039813872426748276,
0.43251731991767883,
0.07376842945814133,
0.4817543029785156,
0.21313026547431946,
0.3755406439304352,
0.36811476945877075,
-0.8596183657646179,
0.00246899644844234,
-0.46825340390205383,
-0.23613035678863525,
0.36537981033325195,
-0.941301703453064,
1.2237718105316162,
-0.11617913097143173,
0.20780912041664124,
0.3886871635913849,
0.5528548955917358,
0.4103056490421295,
0.21914444863796234,
0.29760172963142395,
1.0346927642822266,
0.6851620078086853,
-0.08959564566612244,
1.262068510055542,
-0.5771812796592712,
0.7916758060455322,
0.8912885785102844,
0.16008260846138,
0.4694143831729889,
0.2638627886772156,
-0.19748972356319427,
0.24875858426094055,
0.9936999678611755,
-0.2575857639312744,
0.26358744502067566,
0.005579365883022547,
-0.3241989016532898,
-0.30481794476509094,
0.17061379551887512,
-0.8192692995071411,
0.07957781106233597,
0.21601314842700958,
-0.5715688467025757,
-0.4799143373966217,
-0.11578603088855743,
0.26184433698654175,
-0.6549651026725769,
-0.45065411925315857,
0.43098440766334534,
-0.057757191359996796,
-0.44693154096603394,
0.9579572081565857,
0.06297393888235092,
0.4878748655319214,
-0.7831250429153442,
0.14656464755535126,
-0.14683227241039276,
0.37886497378349304,
-0.0881137102842331,
-0.554304301738739,
-0.24432118237018585,
-0.06199222803115845,
-0.1352117508649826,
0.08399364352226257,
0.22135184705257416,
-0.11236404627561569,
-0.8414252400398254,
0.04565165936946869,
0.4186458885669708,
0.31692034006118774,
-0.02697702683508396,
-0.924434244632721,
-0.060373999178409576,
-0.18762458860874176,
-0.5016075968742371,
0.3659171462059021,
0.6216138601303101,
0.10880863666534424,
0.660388708114624,
0.5451034903526306,
0.14242807030677795,
0.13623377680778503,
-0.19890347123146057,
0.9081699252128601,
-0.7059053778648376,
-0.7345393300056458,
-0.7359933257102966,
0.15303032100200653,
-0.11155153065919876,
-0.9394000768661499,
0.9673057794570923,
0.97651207447052,
0.8183318972587585,
-0.01790047250688076,
0.4321557581424713,
-0.002522224560379982,
0.1181454285979271,
-0.4744235575199127,
0.7709556818008423,
-0.6697968244552612,
-0.02423359826207161,
-0.3673596680164337,
-0.8736438155174255,
-0.019191499799489975,
0.3798779845237732,
-0.28647249937057495,
0.27647432684898376,
0.6930403709411621,
0.8305945992469788,
-0.12923863530158997,
0.17873390018939972,
0.06812077015638351,
0.20903697609901428,
0.2718260884284973,
0.5522322654724121,
0.45813867449760437,
-0.6686785221099854,
0.6720709204673767,
-0.35661080479621887,
-0.45508742332458496,
-0.2697656750679016,
-0.6257356405258179,
-0.8254590630531311,
-0.6054364442825317,
-0.40532630681991577,
-0.5410785675048828,
0.15799281001091003,
0.9286260008811951,
0.8147634267807007,
-0.7396025061607361,
-0.3483199179172516,
0.049403563141822815,
-0.25804218649864197,
-0.31767603754997253,
-0.1660155951976776,
0.9228726625442505,
-0.537338376045227,
-0.9327599406242371,
-0.1831885427236557,
-0.23978771269321442,
0.20699545741081238,
-0.035210274159908295,
-0.2500145137310028,
0.03064807876944542,
-0.3054158687591553,
0.35018542408943176,
0.3465585708618164,
-0.2776898443698883,
-0.06494500488042831,
-0.03210700675845146,
-0.13878853619098663,
-0.04398009553551674,
0.5086279511451721,
-0.7191802859306335,
0.32091835141181946,
0.3539542555809021,
0.7184892296791077,
0.7972155213356018,
-0.21748927235603333,
0.04740280658006668,
-0.3885374367237091,
0.28035417199134827,
0.10127220302820206,
0.7757661938667297,
0.03140266612172127,
-0.1502162516117096,
0.2903081178665161,
0.5018736124038696,
-0.6624667048454285,
-0.6631547212600708,
-0.27439558506011963,
-1.1727690696716309,
-0.19410507380962372,
1.1024824380874634,
-0.2298162430524826,
-0.403283953666687,
0.30390363931655884,
-0.30617451667785645,
0.3096698224544525,
-0.4880104064941406,
0.8939953446388245,
0.8540915846824646,
-0.2009769082069397,
0.3574041724205017,
-0.3756563663482666,
0.48587775230407715,
0.4206885099411011,
-0.6390062570571899,
-0.08935398608446121,
0.5368193984031677,
0.3066709637641907,
0.2550303041934967,
0.28912481665611267,
-0.04242265596985817,
0.49250632524490356,
0.25330060720443726,
0.06274186074733734,
-0.39087605476379395,
-0.1973155289888382,
-0.29322943091392517,
0.1094200536608696,
-0.0810273066163063,
-0.4719771444797516
] |
facebook/mms-tts-eng
|
facebook
| 2023-09-06T13:32:25Z | 9,318 | 30 |
transformers
|
[
"transformers",
"pytorch",
"safetensors",
"vits",
"text-to-audio",
"mms",
"text-to-speech",
"arxiv:2305.13516",
"license:cc-by-nc-4.0",
"endpoints_compatible",
"has_space",
"region:us"
] |
text-to-speech
| 2023-08-24T09:09:22Z |
---
license: cc-by-nc-4.0
tags:
- mms
- vits
pipeline_tag: text-to-speech
---
# Massively Multilingual Speech (MMS): English Text-to-Speech
This repository contains the **English (eng)** language text-to-speech (TTS) model checkpoint.
This model is part of Facebook's [Massively Multilingual Speech](https://arxiv.org/abs/2305.13516) project, aiming to
provide speech technology across a diverse range of languages. You can find more details about the supported languages
and their ISO 639-3 codes in the [MMS Language Coverage Overview](https://dl.fbaipublicfiles.com/mms/misc/language_coverage_mms.html),
and see all MMS-TTS checkpoints on the Hugging Face Hub: [facebook/mms-tts](https://huggingface.co/models?sort=trending&search=facebook%2Fmms-tts).
MMS-TTS is available in the 🤗 Transformers library from version 4.33 onwards.
## Model Details
VITS (**V**ariational **I**nference with adversarial learning for end-to-end **T**ext-to-**S**peech) is an end-to-end
speech synthesis model that predicts a speech waveform conditional on an input text sequence. It is a conditional variational
autoencoder (VAE) comprised of a posterior encoder, decoder, and conditional prior.
A set of spectrogram-based acoustic features are predicted by the flow-based module, which is formed of a Transformer-based
text encoder and multiple coupling layers. The spectrogram is decoded using a stack of transposed convolutional layers,
much in the same style as the HiFi-GAN vocoder. Motivated by the one-to-many nature of the TTS problem, where the same text
input can be spoken in multiple ways, the model also includes a stochastic duration predictor, which allows the model to
synthesise speech with different rhythms from the same input text.
The model is trained end-to-end with a combination of losses derived from variational lower bound and adversarial training.
To improve the expressiveness of the model, normalizing flows are applied to the conditional prior distribution. During
inference, the text encodings are up-sampled based on the duration prediction module, and then mapped into the
waveform using a cascade of the flow module and HiFi-GAN decoder. Due to the stochastic nature of the duration predictor,
the model is non-deterministic, and thus requires a fixed seed to generate the same speech waveform.
For the MMS project, a separate VITS checkpoint is trained on each langauge.
## Usage
MMS-TTS is available in the 🤗 Transformers library from version 4.33 onwards. To use this checkpoint,
first install the latest version of the library:
```
pip install --upgrade transformers accelerate
```
Then, run inference with the following code-snippet:
```python
from transformers import VitsModel, AutoTokenizer
import torch
model = VitsModel.from_pretrained("facebook/mms-tts-eng")
tokenizer = AutoTokenizer.from_pretrained("facebook/mms-tts-eng")
text = "some example text in the English language"
inputs = tokenizer(text, return_tensors="pt")
with torch.no_grad():
output = model(**inputs).waveform
```
The resulting waveform can be saved as a `.wav` file:
```python
import scipy
scipy.io.wavfile.write("techno.wav", rate=model.config.sampling_rate, data=output.float().numpy())
```
Or displayed in a Jupyter Notebook / Google Colab:
```python
from IPython.display import Audio
Audio(output.numpy(), rate=model.config.sampling_rate)
```
## BibTex citation
This model was developed by Vineel Pratap et al. from Meta AI. If you use the model, consider citing the MMS paper:
```
@article{pratap2023mms,
title={Scaling Speech Technology to 1,000+ Languages},
author={Vineel Pratap and Andros Tjandra and Bowen Shi and Paden Tomasello and Arun Babu and Sayani Kundu and Ali Elkahky and Zhaoheng Ni and Apoorv Vyas and Maryam Fazel-Zarandi and Alexei Baevski and Yossi Adi and Xiaohui Zhang and Wei-Ning Hsu and Alexis Conneau and Michael Auli},
journal={arXiv},
year={2023}
}
```
## License
The model is licensed as **CC-BY-NC 4.0**.
|
[
-0.31091538071632385,
-0.7631348967552185,
0.1969609260559082,
0.403920441865921,
-0.06950804591178894,
-0.07344190776348114,
-0.2824939787387848,
-0.2675752639770508,
0.34751179814338684,
0.18586310744285583,
-0.767842710018158,
-0.46870288252830505,
-0.5479187369346619,
0.039097148925065994,
-0.4692499041557312,
0.9204530715942383,
0.29248130321502686,
0.09313885122537613,
0.1674252450466156,
0.09349488466978073,
-0.1571267694234848,
-0.3799231946468353,
-0.8742058873176575,
-0.20032969117164612,
0.3562719523906708,
0.1428029090166092,
0.47906365990638733,
0.5687341690063477,
0.42450135946273804,
0.33778470754623413,
-0.44914889335632324,
-0.0002099121775245294,
-0.28560999035835266,
-0.08049514889717102,
-0.020169328898191452,
-0.2675517201423645,
-0.5303600430488586,
0.05964359641075134,
0.7760711312294006,
0.45294708013534546,
-0.30675938725471497,
0.27399611473083496,
-0.06092381477355957,
0.2917186915874481,
-0.28089502453804016,
0.14880786836147308,
-0.5486721992492676,
-0.06765352189540863,
-0.1251756250858307,
-0.19524404406547546,
-0.4494040906429291,
-0.06851356476545334,
0.2552306652069092,
-0.5198422074317932,
0.17981569468975067,
-0.36491647362709045,
0.9613355398178101,
0.17576740682125092,
-0.44790568947792053,
-0.28125855326652527,
-0.8548526763916016,
0.6147991418838501,
-0.8401815891265869,
0.5872265100479126,
0.326874703168869,
0.3916105031967163,
0.041636064648628235,
-0.9231014847755432,
-0.6086795926094055,
-0.3524443805217743,
0.1195215955376625,
0.3272469937801361,
-0.3312937319278717,
0.04024465009570122,
0.24739134311676025,
0.3708108365535736,
-0.652137815952301,
0.008623645640909672,
-0.7391972541809082,
-0.4162653088569641,
0.5881175398826599,
-0.08411331474781036,
0.1750955730676651,
-0.5858052372932434,
-0.25145384669303894,
-0.21670186519622803,
-0.25491002202033997,
0.21939289569854736,
0.27676182985305786,
0.4555506110191345,
-0.660994827747345,
0.5407542586326599,
-0.09800378233194351,
0.6317606568336487,
0.04314887151122093,
-0.3485026955604553,
0.7112872004508972,
-0.29159480333328247,
-0.24958252906799316,
-0.1929532140493393,
1.1542549133300781,
0.13217006623744965,
0.252575546503067,
0.0013288495829328895,
0.01979212649166584,
0.22424624860286713,
-0.06430771201848984,
-0.84906405210495,
0.013714829459786415,
0.1942371428012848,
-0.3043343424797058,
-0.13366135954856873,
-0.08982254564762115,
-0.5340086817741394,
0.1296360343694687,
-0.2538769245147705,
0.5355141758918762,
-0.6166329979896545,
-0.41648414731025696,
0.004823549650609493,
-0.25971144437789917,
0.026257561519742012,
-0.16100049018859863,
-0.8974527716636658,
-0.11960543692111969,
0.1626444309949875,
0.9979746341705322,
0.11066637188196182,
-0.4441651701927185,
-0.41374269127845764,
0.2743944227695465,
-0.2962532043457031,
0.4290063679218292,
-0.26186826825141907,
-0.6258947253227234,
-0.09139961749315262,
0.08711058646440506,
-0.16774104535579681,
-0.31030282378196716,
0.679341197013855,
-0.157292902469635,
0.310285359621048,
-0.15579798817634583,
-0.5107934474945068,
-0.08839926868677139,
-0.21661166846752167,
-0.4899917542934418,
1.0541558265686035,
0.04429163038730621,
-0.6847137808799744,
0.21515463292598724,
-0.7832737565040588,
-0.4307718873023987,
-0.21461214125156403,
-0.019923392683267593,
-0.44807299971580505,
-0.03323455527424812,
0.2541408836841583,
0.5554219484329224,
-0.1938602179288864,
0.44061508774757385,
-0.31557217240333557,
-0.28044393658638,
0.16850131750106812,
-0.7105730772018433,
1.0656929016113281,
0.5721109509468079,
-0.3333267569541931,
0.159521222114563,
-0.8575043678283691,
-0.18394681811332703,
0.07020062208175659,
-0.33952802419662476,
0.14293980598449707,
0.12434866279363632,
0.20890960097312927,
0.4320550262928009,
0.0518120639026165,
-0.5380855202674866,
-0.10332860797643661,
-0.5149831771850586,
0.8896804451942444,
0.5574073791503906,
-0.0009986243676394224,
0.3353272080421448,
-0.3392127752304077,
0.41348403692245483,
0.008848568424582481,
0.24049580097198486,
-0.42293208837509155,
-0.46069326996803284,
-0.6332885026931763,
-0.5472384095191956,
0.159198597073555,
0.6090900301933289,
-0.7128554582595825,
0.36768677830696106,
-0.4698907434940338,
-0.7839346528053284,
-0.7185804843902588,
-0.2606554627418518,
0.24713383615016937,
0.5311799049377441,
0.48971566557884216,
-0.03443071246147156,
-0.6430323719978333,
-0.8647775053977966,
-0.017602451145648956,
-0.4017227292060852,
-0.2557201087474823,
0.26911112666130066,
0.3840882182121277,
-0.43625155091285706,
0.9854946136474609,
-0.1744474619626999,
-0.18811243772506714,
-0.05042033642530441,
0.22145560383796692,
0.16418029367923737,
0.5184722542762756,
0.6474241018295288,
-0.712622880935669,
-0.4134148955345154,
-0.29558122158050537,
-0.666185736656189,
-0.29371345043182373,
0.015311723574995995,
0.05943019688129425,
0.11410526186227798,
0.639731764793396,
-0.6676334738731384,
0.27797552943229675,
0.7579699754714966,
-0.3581143915653229,
0.5474604368209839,
0.03297094628214836,
0.15460816025733948,
-1.4367347955703735,
0.07334781438112259,
0.11956438422203064,
-0.32256942987442017,
-0.5618261098861694,
-0.2574062943458557,
-0.08098452538251877,
-0.19999732077121735,
-0.6080251932144165,
0.49617305397987366,
-0.2804676592350006,
-0.02438407763838768,
-0.20712082087993622,
0.137396439909935,
-0.16567543148994446,
0.5026042461395264,
0.014605306088924408,
0.8564838171005249,
0.78178471326828,
-0.6416418552398682,
0.4165307581424713,
0.19804547727108002,
-0.08641285449266434,
0.6292268633842468,
-0.8006951212882996,
-0.05703217536211014,
-0.013288217596709728,
0.39531397819519043,
-0.9647882580757141,
-0.03788101673126221,
0.06646312773227692,
-1.0069323778152466,
0.28735265135765076,
-0.16680563986301422,
-0.5270538330078125,
-0.5984286665916443,
0.04615715146064758,
0.15305976569652557,
0.5321682691574097,
-0.41043156385421753,
0.7285675406455994,
0.5878008008003235,
-0.15101400017738342,
-0.5012882947921753,
-0.9175472259521484,
0.005093333311378956,
-0.3091801106929779,
-0.7997471690177917,
0.47350314259529114,
-0.2046521008014679,
0.15093447268009186,
0.01438403595238924,
0.04761682450771332,
-0.033563293516635895,
-0.11941638588905334,
0.29773813486099243,
0.23771880567073822,
-0.14553435146808624,
0.11897476017475128,
0.07950634509325027,
-0.16918131709098816,
0.08496475964784622,
-0.4069734811782837,
0.5896265506744385,
-0.15248899161815643,
-0.22012470662593842,
-0.7814417481422424,
0.352112352848053,
0.6873592734336853,
-0.23615819215774536,
0.59713214635849,
1.0316965579986572,
-0.40113919973373413,
-0.02700159326195717,
-0.5289281010627747,
-0.20115545392036438,
-0.5248798727989197,
0.5802149176597595,
-0.393446147441864,
-0.9115310311317444,
0.6465632319450378,
0.20290687680244446,
0.07489387691020966,
0.803433895111084,
0.7132555246353149,
-0.13250598311424255,
0.9298225045204163,
0.6664193272590637,
-0.2837684750556946,
0.7335703372955322,
-0.4969329535961151,
-0.0970911979675293,
-0.6206159591674805,
-0.17423316836357117,
-0.5245960354804993,
0.06574724614620209,
-0.7441420555114746,
-0.4986524283885956,
0.41041138768196106,
-0.10572277754545212,
-0.3087553083896637,
0.47719842195510864,
-0.4936996400356293,
0.009858965873718262,
0.5588834881782532,
-0.10402721166610718,
0.05122858285903931,
0.21032190322875977,
-0.2719951570034027,
-0.041743841022253036,
-0.6691175103187561,
-0.371757835149765,
1.0351911783218384,
0.45582497119903564,
0.4543324112892151,
0.0630216896533966,
0.4900628328323364,
0.1969585120677948,
0.24913674592971802,
-0.5274767875671387,
0.47991347312927246,
-0.23100344836711884,
-0.905269980430603,
-0.34215879440307617,
-0.6148088574409485,
-0.8235382437705994,
0.21082106232643127,
-0.2244858741760254,
-0.8376016020774841,
0.07019446045160294,
0.021670754998922348,
-0.2784903943538666,
0.2803110182285309,
-0.7880904078483582,
0.6772820353507996,
0.20749381184577942,
-0.05513448640704155,
-0.16197516024112701,
-0.6531410217285156,
0.18377447128295898,
0.05234864726662636,
0.42127859592437744,
-0.1101093515753746,
0.3473215401172638,
1.0423251390457153,
-0.252104789018631,
0.7896236181259155,
-0.1751929521560669,
0.002970887115225196,
0.531906008720398,
-0.30427950620651245,
0.2523726224899292,
-0.00034620819496922195,
-0.054019276052713394,
0.3865080177783966,
0.05481511726975441,
-0.23900727927684784,
-0.2736094295978546,
0.5343300104141235,
-0.8066390752792358,
-0.25485265254974365,
-0.20904640853405,
-0.5064200162887573,
-0.15709857642650604,
0.1540132313966751,
0.7315259575843811,
0.4659942388534546,
-0.15578299760818481,
0.23869360983371735,
0.4793495535850525,
-0.3076401948928833,
0.761320173740387,
0.587838888168335,
-0.2818346321582794,
-0.6063022613525391,
0.8084885478019714,
0.30822059512138367,
0.4106578230857849,
0.25139281153678894,
0.16987662017345428,
-0.4007985591888428,
-0.26124075055122375,
-0.5489919781684875,
0.45710355043411255,
-0.6415340304374695,
-0.02950933948159218,
-0.7683620452880859,
-0.5507004857063293,
-0.6815363168716431,
-0.04572528228163719,
-0.5996792912483215,
-0.374693363904953,
-0.45262610912323,
-0.25614824891090393,
0.4148000180721283,
0.32440048456192017,
-0.33294665813446045,
0.5914806127548218,
-0.6775450110435486,
0.48413047194480896,
0.228452667593956,
0.19227010011672974,
-0.13688339293003082,
-1.0649994611740112,
-0.40195077657699585,
0.20832781493663788,
-0.32252606749534607,
-1.0640373229980469,
0.48187363147735596,
0.14846916496753693,
0.5696529150009155,
0.3194786608219147,
-0.28666478395462036,
0.7257316708564758,
-0.5973138213157654,
0.8938547968864441,
0.32263895869255066,
-1.1240602731704712,
0.5372911691665649,
-0.5540104508399963,
0.2758331298828125,
0.1722239851951599,
0.27587655186653137,
-0.7187403440475464,
-0.4960251748561859,
-0.6848616003990173,
-0.9389029741287231,
0.6823335289955139,
0.4682597517967224,
0.28348875045776367,
-0.07920821756124496,
0.17130666971206665,
-0.36353182792663574,
0.12967000901699066,
-0.9879687428474426,
-0.5848309993743896,
-0.32784590125083923,
-0.2876776456832886,
-0.35674750804901123,
-0.22593441605567932,
0.06110810115933418,
-0.3423894941806793,
0.8734408617019653,
0.15528251230716705,
0.549665629863739,
0.3074997663497925,
0.0019204110139980912,
-0.12237157672643661,
0.20866858959197998,
0.5009858012199402,
0.40791988372802734,
-0.2121305614709854,
-0.1869209110736847,
0.15502139925956726,
-0.5485762357711792,
0.16009777784347534,
0.42805325984954834,
-0.22322289645671844,
0.3839550316333771,
0.2307061105966568,
1.071344256401062,
-0.020264126360416412,
-0.41959813237190247,
0.5402519106864929,
0.055481310933828354,
-0.29299500584602356,
-0.5146116614341736,
-0.19969820976257324,
0.4742703139781952,
0.3402707874774933,
0.560002326965332,
-0.10183747857809067,
0.06917066127061844,
-0.3300500512123108,
0.29810500144958496,
0.3797054588794708,
-0.42229560017585754,
-0.3892512619495392,
0.9374772310256958,
0.18594589829444885,
-0.39625313878059387,
0.25542181730270386,
-0.2816365957260132,
-0.31698301434516907,
0.5718411207199097,
0.4963960647583008,
0.9498676061630249,
-0.7181769013404846,
0.21381446719169617,
0.5271781086921692,
0.5054042935371399,
0.019983429461717606,
0.3760368227958679,
0.10320204496383667,
-0.4304763674736023,
-0.6078234910964966,
-0.7236936092376709,
-0.13550297915935516,
0.24166901409626007,
-0.5634480714797974,
0.4818107485771179,
-0.13853269815444946,
-0.5258009433746338,
0.2251395583152771,
-0.20405423641204834,
-0.5694559812545776,
0.5023569464683533,
0.280905157327652,
0.7609485387802124,
-1.0418694019317627,
0.8446707129478455,
0.36154869198799133,
-0.4988534450531006,
-1.017277717590332,
-0.13450981676578522,
0.04359077289700508,
-0.47670650482177734,
0.45750004053115845,
0.12361659109592438,
-0.20709648728370667,
0.196785107254982,
-0.44978663325309753,
-1.1400686502456665,
1.0661931037902832,
0.4936430752277374,
-0.4779823422431946,
-0.1601545512676239,
0.037349045276641846,
0.5424903035163879,
-0.24540264904499054,
0.3711443841457367,
0.36019665002822876,
0.21169085800647736,
0.16294677555561066,
-1.2670782804489136,
-0.22155295312404633,
-0.3356188237667084,
-0.006114131771028042,
-0.1805058866739273,
-0.6550639271736145,
1.0215680599212646,
-0.17500007152557373,
-0.18307079374790192,
-0.11168082803487778,
0.9163902401924133,
0.3029920756816864,
0.3329124450683594,
0.4857892394065857,
0.54995197057724,
0.6175647974014282,
0.00046153910807333887,
0.8151147961616516,
-0.2698957920074463,
0.48036834597587585,
0.8645543456077576,
0.25062403082847595,
0.810302734375,
0.2512667179107666,
-0.36449897289276123,
0.4919852316379547,
0.629656970500946,
0.04724569246172905,
0.4638657867908478,
-0.0042353528551757336,
-0.06340708583593369,
0.05600927025079727,
-0.01263091154396534,
-0.6473721265792847,
0.592741072177887,
0.4094909429550171,
-0.5215680003166199,
0.07443191111087799,
0.24945347011089325,
0.1120917946100235,
-0.2796972692012787,
-0.1460491567850113,
0.4922068119049072,
0.12490621209144592,
-0.446042537689209,
0.7425459027290344,
0.1302015781402588,
0.8649995923042297,
-0.7734788060188293,
0.34675127267837524,
0.054943639785051346,
-0.1153818741440773,
-0.14308544993400574,
-0.37636882066726685,
0.378686785697937,
0.13234789669513702,
-0.3479823172092438,
-0.0420941524207592,
0.28751176595687866,
-0.5615658760070801,
-0.6099851131439209,
0.5235693454742432,
0.3933617174625397,
0.16192638874053955,
0.003673599800094962,
-0.7216535806655884,
-0.011973289772868156,
0.016332373023033142,
-0.4352502226829529,
-0.06272728741168976,
0.4074082374572754,
0.2282320261001587,
0.717410147190094,
0.7649385333061218,
0.2210017740726471,
0.2953732907772064,
0.16996143758296967,
0.6861344575881958,
-0.5850877165794373,
-0.9190525412559509,
-0.8350560665130615,
0.6505426168441772,
0.007489122450351715,
-0.20909973978996277,
0.8081777095794678,
0.6135902404785156,
0.8034628629684448,
0.0736357718706131,
0.8432794809341431,
-0.0241805799305439,
0.7656352519989014,
-0.42860686779022217,
0.7146663069725037,
-0.6639638543128967,
0.18606537580490112,
-0.65414959192276,
-0.6872639060020447,
0.03892577812075615,
0.6950750350952148,
-0.10758480429649353,
0.30651333928108215,
0.5381921529769897,
0.8400883674621582,
0.017629392445087433,
-0.04935770854353905,
0.2369953840970993,
0.3435033857822418,
0.41607731580734253,
0.4177810549736023,
0.5638672113418579,
-0.4886249601840973,
0.8156086206436157,
-0.2976100444793701,
-0.28084999322891235,
-0.0938977524638176,
-0.7463030219078064,
-0.7219468355178833,
-0.8735510110855103,
-0.33236366510391235,
-0.5199466347694397,
-0.08931474387645721,
0.7993864417076111,
0.9235848188400269,
-0.5301710367202759,
-0.38637101650238037,
0.04713815450668335,
-0.20171158015727997,
-0.264506995677948,
-0.2584567368030548,
0.4344865381717682,
-0.11415864527225494,
-0.950040876865387,
0.5158047080039978,
0.19939357042312622,
0.33882129192352295,
-0.180621936917305,
-0.027199752628803253,
-0.22157391905784607,
0.2732713520526886,
0.4989984333515167,
0.24095498025417328,
-0.6854466795921326,
0.00495481863617897,
0.1266305297613144,
-0.2851303815841675,
-0.01194719597697258,
0.47070759534835815,
-0.562735915184021,
0.49294260144233704,
0.4226873815059662,
0.3340972363948822,
0.8212153911590576,
-0.29780352115631104,
0.3118794858455658,
-0.6977111101150513,
0.3653046488761902,
0.11906050890684128,
0.4586249589920044,
0.4640650451183319,
-0.09101906418800354,
0.25355568528175354,
0.5248491764068604,
-0.5708125233650208,
-0.848244309425354,
0.15788689255714417,
-1.1180318593978882,
-0.27572765946388245,
1.4138811826705933,
-0.013270252384245396,
-0.051006052643060684,
0.10492836683988571,
-0.07046093046665192,
0.7962243556976318,
-0.387827605009079,
0.6001405715942383,
0.6339889168739319,
0.2472233772277832,
-0.02531917206943035,
-0.7187475562095642,
0.4988703727722168,
0.3265368640422821,
-0.4222882390022278,
-0.08722168207168579,
0.520715057849884,
0.3998331129550934,
0.2831912934780121,
0.9520390033721924,
-0.11195382475852966,
0.22595681250095367,
0.08052083104848862,
0.1398666948080063,
-0.046687543392181396,
-0.25243762135505676,
-0.36863744258880615,
0.0490681417286396,
-0.37068971991539,
-0.345548540353775
] |
PygmalionAI/pygmalion-2-7b
|
PygmalionAI
| 2023-09-15T20:29:47Z | 9,298 | 38 |
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-04T22:20:25Z |
---
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">Pygmalion-2 7B</h1>
<h2 style="text-align: center">An instruction-tuned Llama-2 biased towards fiction writing and conversation.</h2>
## Model Details
The long-awaited release of our new models based on Llama-2 is finally here. Pygmalion-2 7B (formerly known as Metharme) is based on
[Llama-2 7B](https://huggingface.co/meta-llama/llama-2-7b-hf) released by Meta AI.
The Metharme models were an experiment to try and get a model that is usable for conversation, roleplaying and storywriting,
but which can be guided using natural language like other instruct models. After much deliberation, we reached the conclusion
that the Metharme prompting format is superior (and easier to use) compared to the classic Pygmalion.
This model was trained by doing supervised fine-tuning over a mixture of regular instruction data alongside roleplay, fictional stories
and conversations with synthetically generated instructions attached.
This model is freely available for both commercial and non-commercial use, as per the Llama-2 license.
## Prompting
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.
### Prompting example
The system prompt has been designed to allow the model to "enter" various modes and dictate the reply length. Here's an example:
```
<|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.
```
## Dataset
The dataset used to fine-tune this model includes our own [PIPPA](https://huggingface.co/datasets/PygmalionAI/PIPPA), along with several other instruction
datasets, and datasets acquired from various RP forums.
## 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 this 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.19966693222522736,
-0.7640572786331177,
0.22386640310287476,
0.40018725395202637,
-0.3391219973564148,
-0.13646502792835236,
-0.300631046295166,
-0.5447081923484802,
0.10039474815130234,
0.30300211906433105,
-0.7181448340415955,
-0.306906133890152,
-0.4686121344566345,
0.2013268768787384,
0.007693332154303789,
1.140582799911499,
0.10373957455158234,
-0.09322553873062134,
-0.3545880615711212,
-0.024407856166362762,
-0.8834739923477173,
-0.49646762013435364,
-0.6659668684005737,
-0.44145920872688293,
0.7296714782714844,
0.3503102958202362,
0.674525797367096,
0.5369126796722412,
0.21227270364761353,
0.18371805548667908,
-0.20325301587581635,
0.34779638051986694,
-0.3568187355995178,
0.1613822728395462,
-0.0038422245997935534,
-0.4062236249446869,
-0.691606879234314,
0.3901383876800537,
0.40280500054359436,
0.35990458726882935,
-0.23879572749137878,
0.2994171380996704,
0.14761878550052643,
0.2889822721481323,
-0.5594369173049927,
0.27921825647354126,
-0.29417794942855835,
-0.014740901999175549,
0.0849248617887497,
0.05421758070588112,
-0.6209217309951782,
-0.38131171464920044,
-0.035685379058122635,
-0.6244842410087585,
-0.2879748046398163,
0.19216550886631012,
0.7378689050674438,
0.15285493433475494,
-0.35746443271636963,
-0.35287976264953613,
-0.40910813212394714,
0.671730637550354,
-0.8983638882637024,
0.11651863902807236,
0.55049067735672,
0.33657073974609375,
-0.2043500691652298,
-0.8687047362327576,
-0.623451828956604,
-0.5396048426628113,
-0.08243308216333389,
0.06970922648906708,
-0.3101523518562317,
0.06559421867132187,
0.35155072808265686,
0.1286015510559082,
-0.655925989151001,
0.29221177101135254,
-0.35587209463119507,
-0.18013432621955872,
0.47458526492118835,
0.24021421372890472,
0.355322003364563,
-0.2821252942085266,
-0.4017097055912018,
-0.0347750186920166,
-0.7930105924606323,
0.1612899899482727,
0.34957945346832275,
0.04958362504839897,
-0.4118431508541107,
0.6801674365997314,
-0.07945193350315094,
0.6009550094604492,
0.20985890924930573,
-0.44335949420928955,
0.0802466943860054,
-0.09888660162687302,
-0.134161114692688,
-0.0867229700088501,
0.8440544009208679,
0.8285995125770569,
0.4438726603984833,
0.08024239540100098,
-0.15218424797058105,
0.21306326985359192,
0.19524839520454407,
-1.0001676082611084,
-0.289859414100647,
0.14028917253017426,
-0.636091411113739,
-0.44619470834732056,
-0.3005121052265167,
-0.559115469455719,
-0.5316002368927002,
-0.1401369273662567,
0.11357826739549637,
-0.3471491038799286,
-0.3307054340839386,
-0.1817535161972046,
-0.08459898829460144,
0.30374330282211304,
0.39339497685432434,
-1.0523877143859863,
0.13833723962306976,
0.5753439664840698,
0.9091796875,
-0.08432166278362274,
-0.35924458503723145,
-0.28093329071998596,
-0.176397904753685,
-0.30154532194137573,
0.706026017665863,
-0.6644976139068604,
-0.35929012298583984,
-0.12262653559446335,
0.08589935302734375,
-0.22654341161251068,
-0.5594311356544495,
0.3601084053516388,
-0.3470512926578522,
0.45577532052993774,
-0.16812703013420105,
-0.3831671476364136,
-0.3243507146835327,
0.2183903604745865,
-0.3422798812389374,
0.9518968462944031,
0.051277805119752884,
-0.7271633744239807,
0.18077288568019867,
-0.6833942532539368,
-0.18007530272006989,
-0.1481226086616516,
0.07340604811906815,
-0.1572766751050949,
-0.20926490426063538,
0.31310033798217773,
0.3946499824523926,
-0.43713197112083435,
0.2643449306488037,
-0.3020782768726349,
-0.5661044120788574,
0.46753445267677307,
-0.447537362575531,
0.7968459129333496,
0.23838771879673004,
-0.25109490752220154,
0.18476784229278564,
-0.5348544716835022,
-0.015440317802131176,
0.19832853972911835,
-0.49659964442253113,
-0.04105436056852341,
-0.022729257121682167,
-0.22471842169761658,
0.11631253361701965,
0.30720260739326477,
-0.45896631479263306,
0.3055877983570099,
-0.37947940826416016,
0.6103723645210266,
0.7236493825912476,
0.03859584778547287,
0.4358667731285095,
-0.6082428693771362,
0.6498867869377136,
-0.18893690407276154,
0.40133148431777954,
-0.24703332781791687,
-0.7695090770721436,
-0.6157869696617126,
-0.3315980136394501,
0.17332977056503296,
0.9216647744178772,
-0.4350358247756958,
0.3982013165950775,
0.09087427705526352,
-0.5131099820137024,
-0.3498762845993042,
-0.07821820676326752,
0.5684354305267334,
0.5648471117019653,
0.1702687293291092,
-0.1628841906785965,
-0.5505870580673218,
-0.6681728363037109,
-0.11456786841154099,
-0.4578537940979004,
-0.062168847769498825,
0.5506674647331238,
0.27579692006111145,
-0.27175915241241455,
0.6094273328781128,
-0.3764551877975464,
0.22876547276973724,
-0.38617709279060364,
-0.08040881901979446,
0.09031733125448227,
0.5597835779190063,
0.5350714325904846,
-0.4253373146057129,
-0.4000644087791443,
-0.24158160388469696,
-0.9653016924858093,
-0.26448437571525574,
-0.04524591937661171,
-0.08279799669981003,
0.2568828761577606,
0.23021747171878815,
-0.8662489652633667,
0.4788209795951843,
0.45159730315208435,
-0.2931292653083801,
0.571110188961029,
0.013360348530113697,
0.16996967792510986,
-1.17747962474823,
0.20651313662528992,
-0.1218135878443718,
-0.05824323371052742,
-0.5388815402984619,
0.0433044470846653,
0.14392496645450592,
-0.33004042506217957,
-0.3953282833099365,
0.664806604385376,
-0.4104776978492737,
0.15576986968517303,
-0.374457448720932,
0.07766417413949966,
-0.011005151085555553,
0.6197525858879089,
-0.13435392081737518,
0.9835495352745056,
0.4647812247276306,
-0.6514865159988403,
0.5502718091011047,
0.44278424978256226,
-0.19503986835479736,
0.5605398416519165,
-1.0099132061004639,
0.5134244561195374,
-0.061393916606903076,
0.4880203306674957,
-0.975300133228302,
-0.45352840423583984,
0.9076256155967712,
-0.7634566426277161,
0.3556942939758301,
-0.3501676917076111,
-0.48406025767326355,
-0.3940157890319824,
-0.3254390060901642,
0.3102218210697174,
0.7742133736610413,
-0.6621799468994141,
0.367718905210495,
0.2727825939655304,
-0.24737395346164703,
-0.6095619201660156,
-0.5828673243522644,
0.1519099622964859,
-0.45118939876556396,
-0.7968370914459229,
0.056602559983730316,
-0.3582881987094879,
-0.10755116492509842,
-0.47677376866340637,
0.0980311706662178,
-0.022687455639243126,
0.07918927073478699,
0.6470335125923157,
0.39283859729766846,
-0.1136506050825119,
0.022512629628181458,
0.2722392678260803,
0.04670095816254616,
0.1749180257320404,
0.10446351021528244,
0.699144184589386,
-0.014194030314683914,
-0.037092484533786774,
-0.7925938963890076,
0.33652326464653015,
0.49105265736579895,
-0.3387773036956787,
0.6460205316543579,
0.45893195271492004,
-0.39060601592063904,
0.1107194721698761,
-0.3928004801273346,
-0.3833925724029541,
-0.49569714069366455,
0.14325790107250214,
-0.07893829792737961,
-0.7309379577636719,
0.469539612531662,
-0.03327160328626633,
0.18831416964530945,
0.11111398786306381,
0.5430616140365601,
-0.043454620987176895,
1.2155832052230835,
0.5580262541770935,
0.1541540026664734,
0.5117919445037842,
0.035270798951387405,
0.10605549067258835,
-1.0447492599487305,
-0.5915220379829407,
-0.351142555475235,
-0.24731481075286865,
-0.47525736689567566,
-0.16951315104961395,
0.2521567642688751,
0.0668785497546196,
-0.28009799122810364,
0.37967899441719055,
-0.5270219445228577,
0.290857195854187,
0.5463475584983826,
0.21205037832260132,
-0.050644244998693466,
0.026887396350502968,
-0.002646476961672306,
-0.13138025999069214,
-0.646971583366394,
-0.7927132248878479,
1.0278257131576538,
0.5446017980575562,
0.9199826717376709,
0.18672330677509308,
0.5251850485801697,
0.278981477022171,
0.251651793718338,
-0.8462734818458557,
0.6220165491104126,
0.164976105093956,
-0.5148398280143738,
0.09769373387098312,
-0.14549046754837036,
-0.9289210438728333,
0.09624433517456055,
-0.1517893522977829,
-0.9154328107833862,
0.11989811807870865,
0.2691696286201477,
-0.4894389510154724,
0.02600264921784401,
-0.9108192324638367,
0.7940022349357605,
0.045316487550735474,
-0.18396927416324615,
-0.0845300555229187,
-0.8829545378684998,
0.45622459053993225,
0.353064626455307,
-0.13329893350601196,
-0.15247686207294464,
-0.10033716261386871,
0.850788950920105,
-0.4127040505409241,
1.3891732692718506,
-0.18425343930721283,
-0.10256773233413696,
0.49500399827957153,
0.16009119153022766,
0.47388407588005066,
0.2929900884628296,
-0.06083523482084274,
0.05825437977910042,
0.051915690302848816,
-0.1490265280008316,
-0.5302520394325256,
0.7319499254226685,
-0.8080538511276245,
-0.6765967011451721,
-0.4134361743927002,
-0.5872849225997925,
0.09785467386245728,
0.06071498617529869,
0.34852734208106995,
0.49292561411857605,
-0.029616203159093857,
-0.0059260171838104725,
0.705846905708313,
-0.4454839825630188,
0.44937026500701904,
0.431110680103302,
-0.17502643167972565,
-0.5257137417793274,
0.7198598384857178,
-0.11639339476823807,
0.1708860844373703,
0.09562895447015762,
0.3337991535663605,
-0.3687357008457184,
-0.16280171275138855,
-0.6932533979415894,
0.35589584708213806,
-0.7168079614639282,
-0.30309808254241943,
-0.6213107705116272,
-0.22664830088615417,
-0.6494625210762024,
0.005089255049824715,
-0.06444963067770004,
-0.4664231538772583,
-0.669114887714386,
0.0021303826943039894,
0.4969991147518158,
0.7257811427116394,
0.0021108214277774096,
0.5041343569755554,
-0.5381773114204407,
0.12493430823087692,
0.366958349943161,
0.10682779550552368,
-0.00149044138379395,
-0.8579148650169373,
0.12345290184020996,
0.34087762236595154,
-0.4088534712791443,
-0.9595456123352051,
0.29346129298210144,
0.24337497353553772,
0.45272406935691833,
0.31240493059158325,
0.04298210144042969,
0.4186824858188629,
-0.3812774419784546,
0.939064085483551,
0.1729351431131363,
-0.552994430065155,
0.6886497139930725,
-0.3419603109359741,
0.2126772701740265,
0.16814716160297394,
0.28769972920417786,
-0.7938241362571716,
-0.15833349525928497,
-0.4518439471721649,
-0.5812031626701355,
0.7907283902168274,
0.08250822871923447,
0.5680480003356934,
-0.28656265139579773,
0.5953600406646729,
0.14792999625205994,
0.2959524393081665,
-0.8595089316368103,
-0.24018888175487518,
-0.45982176065444946,
-0.09943008422851562,
0.22070825099945068,
-0.6014240980148315,
-0.01918472908437252,
-0.29445692896842957,
0.4774191975593567,
-0.07355961203575134,
0.48581311106681824,
0.03797907382249832,
-0.11008553951978683,
-0.10169324278831482,
0.081790991127491,
0.7787449955940247,
0.6817083358764648,
-0.1718599498271942,
0.01831638440489769,
0.05747680738568306,
-0.598852276802063,
-0.0791928619146347,
0.05913018435239792,
-0.1929975152015686,
-0.22798554599285126,
0.3346836268901825,
1.0315749645233154,
0.03554518520832062,
-0.6329808235168457,
0.5357012152671814,
-0.05747155100107193,
0.010231578722596169,
-0.33356115221977234,
0.3579923212528229,
0.06773406267166138,
0.44313865900039673,
0.03228025883436203,
0.0027594175189733505,
0.04907776042819023,
-0.5270971059799194,
-0.034105367958545685,
0.20829978585243225,
-0.12389726936817169,
-0.42100468277931213,
0.8179498314857483,
0.31922996044158936,
-0.5944615602493286,
0.7154186367988586,
-0.16354180872440338,
-0.41456136107444763,
0.6122735142707825,
0.8782325983047485,
0.5530824661254883,
-0.3116404712200165,
0.45221441984176636,
0.6024191379547119,
0.34298908710479736,
-0.03454416245222092,
0.25914889574050903,
-0.026785390451550484,
-0.3329501450061798,
-0.17079371213912964,
-0.3819735050201416,
-0.237600639462471,
0.20291045308113098,
-0.5061774849891663,
0.16663382947444916,
-0.8944596648216248,
-0.2517237365245819,
-0.13959233462810516,
-0.05121873319149017,
-0.2707032263278961,
0.06795063614845276,
0.07590699195861816,
0.9088230133056641,
-0.7722726464271545,
0.6092389822006226,
0.7424123287200928,
-0.5435711741447449,
-0.8496268391609192,
-0.02913249470293522,
0.09132681041955948,
-1.050864338874817,
0.3414919972419739,
0.46366241574287415,
0.15406057238578796,
0.006435144226998091,
-0.9557467699050903,
-0.5507804155349731,
1.2975554466247559,
0.2949785888195038,
-0.38164156675338745,
-0.1358059197664261,
-0.11121177673339844,
0.4157940745353699,
-0.5058413147926331,
0.4918844401836395,
0.3755275309085846,
0.31782788038253784,
0.09699779003858566,
-1.0683187246322632,
0.3310079574584961,
-0.36486542224884033,
0.09375974535942078,
-0.20097343623638153,
-0.8726512789726257,
1.0384875535964966,
-0.34213316440582275,
-0.21295806765556335,
0.52500981092453,
0.7291756868362427,
0.44401565194129944,
0.40230169892311096,
0.3833268880844116,
0.2746841013431549,
0.8078380823135376,
0.11037836223840714,
1.0028126239776611,
-0.11047488451004028,
-0.015460707247257233,
0.9470927715301514,
-0.12052850425243378,
0.7111131548881531,
0.3568234443664551,
-0.013315613381564617,
0.5759180188179016,
0.9205768704414368,
-0.038680825382471085,
0.4722784161567688,
0.1760120689868927,
-0.20316478610038757,
-0.20817838609218597,
-0.3612307012081146,
-0.40530404448509216,
0.43129998445510864,
0.33306270837783813,
-0.38638052344322205,
-0.011745484545826912,
0.03620003163814545,
0.4219038486480713,
-0.01023276150226593,
-0.1099579855799675,
0.7775387167930603,
0.1969735473394394,
-0.8983357548713684,
1.0513074398040771,
0.12359390407800674,
0.867620587348938,
-0.5486159920692444,
-0.22398974001407623,
-0.6313272714614868,
-0.1452205926179886,
-0.15794087946414948,
-0.5935689806938171,
-0.09681358933448792,
0.21682634949684143,
-0.2277563065290451,
0.019335921853780746,
0.7967710494995117,
-0.2997174859046936,
-0.23947900533676147,
-0.07525946944952011,
0.2525709271430969,
0.4190175533294678,
0.026740819215774536,
-0.7983313202857971,
0.19449040293693542,
-0.032786834985017776,
-0.1687713861465454,
0.27873852849006653,
0.09947849810123444,
-0.2040591686964035,
0.8266459107398987,
0.5036593675613403,
-0.267453670501709,
-0.0013489717384800315,
0.06116018816828728,
0.9522457718849182,
-0.31799057126045227,
-0.39608389139175415,
-0.6498486995697021,
0.49279364943504333,
-0.0357428602874279,
-0.463291198015213,
0.7210174798965454,
0.308551549911499,
0.43525704741477966,
-0.07490856945514679,
0.6025975346565247,
-0.25775420665740967,
0.4874504506587982,
-0.5227920413017273,
0.8117918968200684,
-0.4833894670009613,
0.33469274640083313,
-0.05793948844075203,
-0.8554295897483826,
0.020759252831339836,
0.7822175025939941,
-0.08255930244922638,
0.2968667149543762,
0.5340390801429749,
1.0875872373580933,
-0.09378436952829361,
-0.04651198163628578,
0.14610248804092407,
0.02348787896335125,
0.21894744038581848,
0.5404077172279358,
1.1455131769180298,
-0.3522074818611145,
0.5187585949897766,
-0.37377938628196716,
-0.5015460252761841,
-0.2713177800178528,
-0.7458814978599548,
-1.3794279098510742,
-0.3890683650970459,
-0.2708556056022644,
-0.5114476084709167,
0.23624607920646667,
1.054425835609436,
0.575101912021637,
-0.45881494879722595,
-0.21537238359451294,
0.1869441121816635,
0.03779474273324013,
-0.10311327874660492,
-0.20143575966358185,
0.06029663234949112,
-0.07729540765285492,
-0.6682108640670776,
0.5299407839775085,
-0.02786686085164547,
0.2343830019235611,
-0.10008623450994492,
-0.19847972691059113,
-0.1533556580543518,
0.11392295360565186,
0.5531339049339294,
0.413086473941803,
-0.7642045021057129,
-0.44618916511535645,
0.2343333214521408,
-0.1816612035036087,
-0.023509172722697258,
0.539642333984375,
-0.5389776229858398,
0.257491797208786,
0.3187679052352905,
0.2566111087799072,
0.2068886011838913,
-0.04148651659488678,
0.5022150874137878,
-0.7152979373931885,
0.3282218277454376,
0.18739748001098633,
0.16174231469631195,
0.4971494972705841,
-0.5481952428817749,
0.3116147220134735,
0.3024667203426361,
-0.7014683485031128,
-0.8865379095077515,
0.2252882570028305,
-0.9455778002738953,
-0.2145000845193863,
1.494911789894104,
-0.21695035696029663,
-0.3277016878128052,
0.14806707203388214,
-0.730665385723114,
0.4122651219367981,
-0.642325758934021,
0.7418171763420105,
0.5299124121665955,
-0.0964842289686203,
-0.42760568857192993,
-0.547985315322876,
0.4972602427005768,
0.3288900554180145,
-0.739149808883667,
0.09490381926298141,
0.7437194585800171,
0.4796923100948334,
-0.15455882251262665,
0.5859885811805725,
0.07036728411912918,
0.5038187503814697,
-0.03787212073802948,
0.022629188373684883,
-0.26019471883773804,
-0.4606097638607025,
-0.20765575766563416,
-0.3144453167915344,
0.1971050351858139,
-0.3777676522731781
] |
deepset/bert-medium-squad2-distilled
|
deepset
| 2023-05-05T06:59:02Z | 9,294 | 3 |
transformers
|
[
"transformers",
"pytorch",
"safetensors",
"bert",
"question-answering",
"exbert",
"en",
"dataset:squad_v2",
"license:mit",
"model-index",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] |
question-answering
| 2022-03-02T23:29:05Z |
---
language: en
license: mit
tags:
- exbert
datasets:
- squad_v2
thumbnail: https://thumb.tildacdn.com/tild3433-3637-4830-a533-353833613061/-/resize/720x/-/format/webp/germanquad.jpg
model-index:
- name: deepset/bert-medium-squad2-distilled
results:
- task:
type: question-answering
name: Question Answering
dataset:
name: squad_v2
type: squad_v2
config: squad_v2
split: validation
metrics:
- type: exact_match
value: 69.8231
name: Exact Match
verified: true
verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiMmE4MGRkZTVjNmViMGNjYjVhY2E1NzcyOGQ1OWE1MWMzMjY5NWU0MmU0Y2I4OWU4YTU5OWQ5YTI2NWE1NmM0ZSIsInZlcnNpb24iOjF9.tnCJvWzMctTwiQu5yig_owO2ZI1t1MZz1AN2lQy4COAGOzuMovD-74acQvMbxJQoRfNNkIetz2hqYivf1lJKDw
- type: f1
value: 72.9232
name: F1
verified: true
verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiZTMwNzk0ZDRjNGUyMjQyNzc1NzczZmUwMTU2MTM5MGQ3M2NhODlmOTU4ZDI0YjhlNTVjNDA1MGEwM2M1MzIyZSIsInZlcnNpb24iOjF9.eElGmTOXH_qHTNaPwZ-dUJfVz9VMvCutDCof_6UG_625MwctT_j7iVkWcGwed4tUnunuq1BPm-0iRh1RuuB-AQ
---
## Overview
**Language model:** deepset/roberta-base-squad2-distilled
**Language:** English
**Training data:** SQuAD 2.0 training set
**Eval data:** SQuAD 2.0 dev set
**Infrastructure**: 1x V100 GPU
**Published**: Apr 21st, 2021
## Details
- haystack's distillation feature was used for training. deepset/bert-large-uncased-whole-word-masking-squad2 was used as the teacher model.
## Hyperparameters
```
batch_size = 6
n_epochs = 2
max_seq_len = 384
learning_rate = 3e-5
lr_schedule = LinearWarmup
embeds_dropout_prob = 0.1
temperature = 5
distillation_loss_weight = 1
```
## Performance
```
"exact": 68.6431398972458
"f1": 72.7637083790805
```
## Authors
- Timo Möller: `timo.moeller [at] deepset.ai`
- Julian Risch: `julian.risch [at] deepset.ai`
- Malte Pietsch: `malte.pietsch [at] deepset.ai`
- Michel Bartels: `michel.bartels [at] deepset.ai`
## About us

We bring NLP to the industry via open source!
Our focus: Industry specific language models & large scale QA systems.
Some of our work:
- [German BERT (aka "bert-base-german-cased")](https://deepset.ai/german-bert)
- [GermanQuAD and GermanDPR datasets and models (aka "gelectra-base-germanquad", "gbert-base-germandpr")](https://deepset.ai/germanquad)
- [FARM](https://github.com/deepset-ai/FARM)
- [Haystack](https://github.com/deepset-ai/haystack/)
Get in touch:
[Twitter](https://twitter.com/deepset_ai) | [LinkedIn](https://www.linkedin.com/company/deepset-ai/) | [Discord](https://haystack.deepset.ai/community/join) | [GitHub Discussions](https://github.com/deepset-ai/haystack/discussions) | [Website](https://deepset.ai)
By the way: [we're hiring!](http://www.deepset.ai/jobs)
|
[
-0.3517223298549652,
-0.6961367130279541,
0.408791720867157,
0.2160707265138626,
-0.07807409763336182,
0.20381629467010498,
-0.4848414659500122,
-0.5176312327384949,
0.07664720714092255,
0.26922041177749634,
-0.7997836470603943,
-0.8404979705810547,
-0.493032306432724,
-0.01660485938191414,
-0.40013620257377625,
1.1229121685028076,
-0.008038274943828583,
0.1290152370929718,
0.13852223753929138,
-0.10218740999698639,
-0.3937801122665405,
-0.5767584443092346,
-0.7609999775886536,
-0.3363746702671051,
0.23424619436264038,
0.35356196761131287,
0.639981210231781,
0.2902662754058838,
0.5804556608200073,
0.30848902463912964,
-0.03147915378212929,
-0.015360558405518532,
-0.5439258217811584,
0.35243645310401917,
-0.12970447540283203,
-0.2666735351085663,
-0.36059805750846863,
-0.051633115857839584,
0.6120848059654236,
0.43603724241256714,
-0.2766960859298706,
0.3639150559902191,
-0.1070457324385643,
0.9767747521400452,
-0.643456220626831,
0.2971514165401459,
-0.7072614431381226,
-0.14065660536289215,
-0.007463379763066769,
0.45562586188316345,
-0.20549596846103668,
-0.18333137035369873,
0.23788118362426758,
-0.5639897584915161,
0.35693344473838806,
-0.41918787360191345,
1.2542189359664917,
0.2878526449203491,
0.011762447655200958,
-0.2062882035970688,
-0.6973717212677002,
0.7993714213371277,
-1.1553126573562622,
0.29693910479545593,
0.5140087008476257,
0.5416598916053772,
-0.010975410230457783,
-0.9372762441635132,
-0.5615650415420532,
-0.11984722316265106,
-0.0058723255060613155,
0.20581327378749847,
-0.18699978291988373,
-0.11500166356563568,
0.04003557562828064,
0.5005732178688049,
-0.661042332649231,
0.3614114820957184,
-0.47601619362831116,
0.005339804105460644,
0.914738118648529,
0.03739778324961662,
0.08794968575239182,
0.1836491972208023,
-0.1492817997932434,
-0.35236042737960815,
-0.509835958480835,
0.027475150302052498,
0.2774500548839569,
0.3614445626735687,
-0.25425928831100464,
0.3832331895828247,
-0.3749789297580719,
0.42977601289749146,
0.08863535523414612,
0.3498546779155731,
0.6183183789253235,
-0.5320598483085632,
-0.37372472882270813,
0.019547736272215843,
1.0664935111999512,
0.07655677944421768,
0.21808987855911255,
-0.056694790720939636,
-0.40510720014572144,
-0.08768677711486816,
0.1849045306444168,
-0.9285996556282043,
-0.42533472180366516,
0.4719048738479614,
-0.25385749340057373,
-0.48322224617004395,
0.05081235617399216,
-0.7716062068939209,
-0.34597280621528625,
-0.06912130862474442,
0.4971573054790497,
-0.5378769040107727,
-0.46473485231399536,
0.23429980874061584,
-0.23541466891765594,
0.44529038667678833,
0.09151770174503326,
-0.8207796812057495,
0.2463155835866928,
0.6605415344238281,
0.784160852432251,
0.10911117494106293,
-0.4383087754249573,
-0.24959538877010345,
-0.12100086361169815,
-0.17863404750823975,
0.4716147780418396,
-0.2733174264431,
-0.07519327104091644,
0.12290433794260025,
0.151463121175766,
0.08702857792377472,
-0.448784738779068,
0.2807338237762451,
-0.5507839322090149,
0.4648170471191406,
-0.030217071995139122,
-0.6135537028312683,
-0.13212452828884125,
0.29539138078689575,
-0.8822788596153259,
1.256906509399414,
0.3629816472530365,
-0.3039172887802124,
0.3159271776676178,
-0.7939975261688232,
-0.47289422154426575,
0.19332747161388397,
-0.02544906735420227,
-0.4450044333934784,
-0.14373965561389923,
0.2694413363933563,
0.5789489150047302,
-0.3348396420478821,
0.3878585994243622,
-0.19629967212677002,
-0.48741814494132996,
0.2732446491718292,
-0.28439387679100037,
1.1440285444259644,
0.154658704996109,
-0.6824526190757751,
-0.0054367100819945335,
-0.8522303104400635,
0.2277161329984665,
0.20498940348625183,
-0.34549087285995483,
-0.05871966853737831,
-0.07082709670066833,
0.22854740917682648,
0.2111630141735077,
0.3925933241844177,
-0.36701950430870056,
0.1227576732635498,
-0.5318455100059509,
0.6443811655044556,
0.6861158013343811,
-0.20642605423927307,
0.3431876301765442,
-0.08318785578012466,
0.537979006767273,
0.06658298522233963,
0.2729939818382263,
0.11443215608596802,
-0.42343416810035706,
-0.9329695701599121,
-0.49351561069488525,
0.44906795024871826,
0.7829275727272034,
-0.7463786602020264,
0.8961507081985474,
-0.14139848947525024,
-0.7486599087715149,
-1.030041217803955,
0.23559701442718506,
0.5256306529045105,
0.2974444031715393,
0.43833494186401367,
-0.05224495381116867,
-0.744640588760376,
-1.0493624210357666,
-0.014823044650256634,
-0.16702353954315186,
-0.1223212331533432,
0.016143392771482468,
0.615829348564148,
-0.3844079077243805,
0.7451680302619934,
-0.5590153932571411,
-0.5420312881469727,
-0.2778100371360779,
-0.09112586826086044,
0.643876850605011,
0.5442340970039368,
0.7552245259284973,
-0.6714715361595154,
-0.530082106590271,
-0.18430733680725098,
-0.7049084901809692,
0.28154677152633667,
0.14864273369312286,
-0.14174827933311462,
0.5117619633674622,
0.4997594654560089,
-0.5973469018936157,
0.15929564833641052,
0.8351429104804993,
-0.377742737531662,
0.5532152652740479,
0.005591103807091713,
-0.017403943464159966,
-1.5109050273895264,
0.20875775814056396,
0.10356711596250534,
-0.13149124383926392,
-0.3556060492992401,
0.28435543179512024,
-0.2403670698404312,
-0.15125277638435364,
-0.6315360069274902,
0.4657999277114868,
-0.38894689083099365,
0.13649289309978485,
0.09877903759479523,
-0.060989852994680405,
0.02169172652065754,
0.5439572930335999,
-0.05852935090661049,
1.1832854747772217,
0.7019299864768982,
-0.5820884108543396,
0.5839915871620178,
0.34432581067085266,
-0.6749703884124756,
0.19345493614673615,
-0.9822444915771484,
0.13535910844802856,
0.15258288383483887,
0.1910659670829773,
-1.021562099456787,
-0.17656339704990387,
0.08165241032838821,
-0.5956630110740662,
0.260437935590744,
-0.21872463822364807,
-0.7985087633132935,
-0.37918004393577576,
-0.44773274660110474,
0.22409319877624512,
0.8694830536842346,
-0.4034353792667389,
0.12596552073955536,
0.37248438596725464,
-0.07399442046880722,
-0.6340271830558777,
-0.9673736691474915,
0.04940178245306015,
-0.03376961871981621,
-0.49669742584228516,
0.33060938119888306,
0.02547869086265564,
-0.20237703621387482,
0.23943188786506653,
0.07528772950172424,
-0.67447429895401,
0.20448346436023712,
0.08882737904787064,
0.3725910186767578,
-0.43817317485809326,
0.26159560680389404,
-0.1172342449426651,
-0.055008482187986374,
0.019054951146245003,
-0.30733829736709595,
0.685307502746582,
-0.6528339385986328,
0.00443613575771451,
-0.6199780702590942,
0.26769882440567017,
0.4929848313331604,
-0.3255402743816376,
0.9153833985328674,
0.9069217443466187,
-0.3917505145072937,
-0.1710505485534668,
-0.6790037751197815,
-0.3080284893512726,
-0.5317743420600891,
0.6033897995948792,
-0.20561324059963226,
-0.9951997995376587,
0.5413103699684143,
0.1488242894411087,
0.2377215176820755,
0.876464307308197,
0.6160932779312134,
-0.41657015681266785,
0.8389348387718201,
0.5651434659957886,
-0.22990374267101288,
0.4525294601917267,
-0.7413007616996765,
0.07649804651737213,
-0.6931623816490173,
-0.22116214036941528,
-0.6086391806602478,
-0.4838161766529083,
-0.754499614238739,
-0.3470083773136139,
0.147794708609581,
0.10573068261146545,
-0.4718269407749176,
0.5742007493972778,
-0.7289283275604248,
0.6195639967918396,
0.8052998781204224,
-0.011035249568521976,
0.013191357254981995,
0.03957870975136757,
0.02996586076915264,
0.12284650653600693,
-0.7274839878082275,
-0.4775138795375824,
1.1096876859664917,
0.3279117941856384,
0.5535949468612671,
0.18556112051010132,
0.8532839417457581,
0.3040522038936615,
-0.24851615726947784,
-0.6930885314941406,
0.46783557534217834,
-0.3246508836746216,
-0.9646672606468201,
-0.6824950575828552,
-0.35192131996154785,
-0.9963871240615845,
-0.15990695357322693,
-0.14121432602405548,
-0.5659427642822266,
0.2018699049949646,
-0.0091139767318964,
-0.2369934767484665,
0.33757123351097107,
-0.8325306177139282,
0.9369543790817261,
-0.2148459553718567,
-0.0921453908085823,
-0.255914568901062,
-0.7266393899917603,
0.19985422492027283,
-0.0977172702550888,
0.07673663645982742,
-0.2321247160434723,
0.17892824113368988,
0.6513367891311646,
-0.5864062309265137,
0.9672750234603882,
-0.23757153749465942,
-0.07518108934164047,
0.3368493318557739,
0.14609414339065552,
0.4928008019924164,
0.25451913475990295,
-0.3774249851703644,
0.6741492748260498,
0.27214181423187256,
-0.4992511570453644,
-0.38237178325653076,
0.8160784840583801,
-1.0367566347122192,
-0.24422328174114227,
-0.5369350910186768,
-0.3610677719116211,
-0.18801537156105042,
0.3275577127933502,
0.3232540488243103,
0.18531681597232819,
-0.34289103746414185,
0.41669031977653503,
0.7187252640724182,
-0.25136226415634155,
0.5410706400871277,
0.6044501662254333,
0.0003667794226203114,
-0.4534124732017517,
0.8821831345558167,
-0.07781538367271423,
0.18931342661380768,
0.42994412779808044,
-0.06966722756624222,
-0.304414838552475,
-0.45082327723503113,
-0.5321599245071411,
0.15970006585121155,
-0.456296443939209,
-0.2598358690738678,
-0.3122228682041168,
-0.5505890846252441,
-0.6805835962295532,
-0.011913992464542389,
-0.6998214721679688,
-0.5274238586425781,
-0.3666570484638214,
-0.199263796210289,
0.6864726543426514,
0.5853267312049866,
-0.061041459441185,
0.20172278583049774,
-0.7547162175178528,
0.0684816837310791,
0.24029482901096344,
0.6299620866775513,
-0.20669670403003693,
-0.4188511371612549,
-0.4888872802257538,
0.3981039226055145,
-0.04192834720015526,
-0.5783920288085938,
0.2683201730251312,
0.303186297416687,
0.5269438624382019,
0.06434744596481323,
0.0160397756844759,
0.45161983370780945,
-0.4507610499858856,
1.0474929809570312,
0.1557087004184723,
-0.8948188424110413,
0.7555867433547974,
-0.30223241448402405,
0.46663305163383484,
1.219206690788269,
0.4112469553947449,
-0.4957817494869232,
-0.29746192693710327,
-0.6459229588508606,
-1.1465117931365967,
0.6897505521774292,
0.42417940497398376,
0.1703830063343048,
-0.031201569363474846,
0.20299458503723145,
0.06218497455120087,
0.3086501657962799,
-0.4669930636882782,
-0.2898867726325989,
-0.16222308576107025,
-0.35473066568374634,
-0.21531930565834045,
-0.3033543825149536,
-0.1140238344669342,
-0.43482506275177,
1.0825743675231934,
0.15185630321502686,
0.256185382604599,
0.1612275093793869,
-0.19543245434761047,
0.2856832444667816,
0.2203093022108078,
0.6568844318389893,
0.8642928600311279,
-0.48104485869407654,
-0.13979516923427582,
0.11721081286668777,
-0.5375533103942871,
0.14059098064899445,
0.27558571100234985,
-0.3117648959159851,
0.3250298500061035,
0.495659738779068,
0.9000277519226074,
0.03594837337732315,
-0.7572061419487,
0.5550131797790527,
0.027941744774580002,
-0.5568134784698486,
-0.6518632173538208,
0.16904589533805847,
0.08703156560659409,
0.42681339383125305,
0.3821539282798767,
-0.32441961765289307,
0.12062881886959076,
-0.4135867655277252,
0.124735988676548,
0.29821014404296875,
-0.6334402561187744,
-0.19904419779777527,
0.3865809738636017,
0.4326249659061432,
-0.37388402223587036,
1.0929735898971558,
-0.2982833981513977,
-0.4718271493911743,
0.8285613059997559,
0.28731703758239746,
1.2075295448303223,
-0.05845021456480026,
0.42978522181510925,
0.4785047471523285,
0.4213636815547943,
0.06380385160446167,
0.41097742319107056,
0.17011712491512299,
-0.6796736121177673,
-0.5098111033439636,
-0.5316464304924011,
-0.24395424127578735,
0.5424217581748962,
-0.6631704568862915,
0.14886201918125153,
-0.5472812056541443,
-0.1579083949327469,
0.04576799273490906,
0.25909847021102905,
-1.0139602422714233,
0.14760327339172363,
-0.0037978393957018852,
0.9957707524299622,
-0.703251838684082,
0.8819104433059692,
0.9115646481513977,
-0.749769389629364,
-0.8142243027687073,
-0.15258780121803284,
-0.09660983830690384,
-0.9920586347579956,
0.5885019898414612,
0.06530658155679703,
0.017161332070827484,
0.12348458915948868,
-0.6241913437843323,
-0.8148662447929382,
1.281007170677185,
0.2686101496219635,
-0.8366479873657227,
-0.18409806489944458,
0.04150892421603203,
0.6534199118614197,
-0.08759754151105881,
0.05764200538396835,
0.60281902551651,
0.489815890789032,
-0.0627765953540802,
-1.0949748754501343,
-0.003789345733821392,
-0.420796662569046,
-0.041242681443691254,
0.19192028045654297,
-0.7152760624885559,
0.6852443814277649,
-0.08099650591611862,
-0.01931465044617653,
0.0591704361140728,
0.45696496963500977,
0.2381405085325241,
0.115568608045578,
0.3697628080844879,
0.6767695546150208,
0.7908142805099487,
-0.12539979815483093,
0.9038906693458557,
-0.3044731318950653,
0.5154137015342712,
1.3788880109786987,
-0.31049787998199463,
0.9368370771408081,
0.39383551478385925,
-0.3999266028404236,
0.7215042114257812,
0.5012262463569641,
-0.3770616352558136,
0.6521214842796326,
0.18528537452220917,
-0.11985814571380615,
-0.14866502583026886,
0.08112051337957382,
-0.7339773774147034,
0.42811399698257446,
0.16338934004306793,
-0.3653031885623932,
-0.1955733746290207,
-0.26088741421699524,
-0.012550056912004948,
-0.0955156609416008,
0.008107374422252178,
0.9139494895935059,
-0.10997521132230759,
-0.49903547763824463,
0.7801548838615417,
0.020545022562146187,
0.715254008769989,
-0.830691397190094,
-0.058969300240278244,
-0.310985267162323,
0.38987135887145996,
-0.051386311650276184,
-0.9552341103553772,
0.12108183652162552,
-0.09160050749778748,
-0.45364683866500854,
-0.19338756799697876,
0.5716241002082825,
-0.4669620096683502,
-0.8355017900466919,
0.16728009283542633,
0.45064160227775574,
0.2796502113342285,
-0.11609691381454468,
-0.9743664264678955,
0.016281209886074066,
-0.08027701824903488,
-0.2563565671443939,
0.25775662064552307,
0.4739629328250885,
0.21814310550689697,
0.5623146295547485,
0.7150295376777649,
0.1943429708480835,
-0.03237786144018173,
0.23030763864517212,
0.9079161882400513,
-0.5966646671295166,
-0.2965349853038788,
-0.9438949823379517,
0.5799298882484436,
-0.2547532320022583,
-0.5478707551956177,
0.5622130036354065,
0.7675010561943054,
1.1406761407852173,
-0.2880679965019226,
0.8073802590370178,
-0.04485151171684265,
0.4559009373188019,
-0.510066032409668,
1.006714105606079,
-0.5215671062469482,
0.005532844457775354,
-0.24254360795021057,
-0.9819057583808899,
-0.10890433192253113,
0.6811890006065369,
0.11311416327953339,
0.06769631803035736,
0.7058236002922058,
0.7794008851051331,
0.022084537893533707,
-0.30619901418685913,
0.06573843210935593,
0.3622044324874878,
0.36769598722457886,
0.7327271699905396,
0.6369725465774536,
-0.7191256880760193,
0.5516923666000366,
-0.40919259190559387,
-0.10513176769018173,
-0.3252386152744293,
-0.7636047601699829,
-0.8966647386550903,
-0.7637795209884644,
-0.4885055720806122,
-0.6063605546951294,
0.3477881848812103,
0.959794819355011,
0.859333336353302,
-1.1144202947616577,
-0.3780032992362976,
-0.21550561487674713,
-0.04523888975381851,
-0.4697968065738678,
-0.28985685110092163,
0.43129193782806396,
-0.41566988825798035,
-0.6563544273376465,
0.5446232557296753,
-0.01786819100379944,
-0.0766453668475151,
-0.4513629972934723,
-0.05239805206656456,
-0.6330522894859314,
-0.23003685474395752,
0.5600920915603638,
0.2891140282154083,
-0.6890938878059387,
0.04770689830183983,
-0.01066614594310522,
-0.2924233376979828,
-0.16939522325992584,
0.47437670826911926,
-0.8284533023834229,
0.2296692281961441,
0.5272005200386047,
0.7575659155845642,
0.6154146194458008,
-0.3735302686691284,
0.7363120913505554,
-0.8422650694847107,
0.3846118748188019,
0.5328050255775452,
0.11988288909196854,
0.20184557139873505,
-0.37896230816841125,
0.8417216539382935,
0.10345473140478134,
-0.4816896319389343,
-0.8958065509796143,
0.057963673025369644,
-0.8571259379386902,
-0.4728395342826843,
1.3266018629074097,
0.009917075745761395,
-0.04680972546339035,
0.18930773437023163,
-0.04962357506155968,
0.26281824707984924,
-0.5354120135307312,
0.7760913968086243,
0.8990039825439453,
0.4251973628997803,
0.09867511689662933,
-0.6256746053695679,
0.5353328585624695,
0.30242130160331726,
-0.8041254878044128,
-0.15598759055137634,
0.6090732216835022,
0.3763314187526703,
-0.07204469293355942,
0.5679854154586792,
0.0234902985394001,
0.32655832171440125,
-0.2530112862586975,
0.35704725980758667,
-0.33409741520881653,
-0.20674461126327515,
-0.33125388622283936,
-0.181820347905159,
-0.08510642498731613,
-0.4946679472923279
] |
timm/mobilevitv2_200.cvnets_in22k_ft_in1k_384
|
timm
| 2023-04-24T22:27:56Z | 9,290 | 0 |
timm
|
[
"timm",
"pytorch",
"safetensors",
"image-classification",
"dataset:imagenet-1k",
"arxiv:2206.02680",
"license:other",
"region:us"
] |
image-classification
| 2023-04-24T22:27:35Z |
---
tags:
- image-classification
- timm
library_name: timm
license: other
datasets:
- imagenet-1k
---
# Model card for mobilevitv2_200.cvnets_in22k_ft_in1k_384
A MobileViT-v2 image classification model. Pretrained on ImageNet-22k and fine-tuned on ImageNet-1k by paper authors.
See license details at https://github.com/apple/ml-cvnets/blob/main/LICENSE
## Model Details
- **Model Type:** Image classification / feature backbone
- **Model Stats:**
- Params (M): 18.4
- GMACs: 16.2
- Activations (M): 72.3
- Image size: 384 x 384
- **Papers:**
- Separable Self-attention for Mobile Vision Transformers: https://arxiv.org/abs/2206.02680
- **Original:** https://github.com/apple/ml-cvnets
- **Dataset:** ImageNet-1k
## Model Usage
### Image Classification
```python
from urllib.request import urlopen
from PIL import Image
import timm
img = Image.open(urlopen(
'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/beignets-task-guide.png'
))
model = timm.create_model('mobilevitv2_200.cvnets_in22k_ft_in1k_384', 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(
'mobilevitv2_200.cvnets_in22k_ft_in1k_384',
pretrained=True,
features_only=True,
)
model = model.eval()
# get model specific transforms (normalization, resize)
data_config = timm.data.resolve_model_data_config(model)
transforms = timm.data.create_transform(**data_config, is_training=False)
output = model(transforms(img).unsqueeze(0)) # unsqueeze single image into batch of 1
for o in output:
# print shape of each feature map in output
# e.g.:
# torch.Size([1, 128, 192, 192])
# torch.Size([1, 256, 96, 96])
# torch.Size([1, 512, 48, 48])
# torch.Size([1, 768, 24, 24])
# torch.Size([1, 1024, 12, 12])
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(
'mobilevitv2_200.cvnets_in22k_ft_in1k_384',
pretrained=True,
num_classes=0, # remove classifier nn.Linear
)
model = model.eval()
# get model specific transforms (normalization, resize)
data_config = timm.data.resolve_model_data_config(model)
transforms = timm.data.create_transform(**data_config, is_training=False)
output = model(transforms(img).unsqueeze(0)) # output is (batch_size, num_features) shaped tensor
# or equivalently (without needing to set num_classes=0)
output = model.forward_features(transforms(img).unsqueeze(0))
# output is unpooled, a (1, 1024, 12, 12) shaped tensor
output = model.forward_head(output, pre_logits=True)
# output is a (1, num_features) shaped tensor
```
## Model Comparison
Explore the dataset and runtime metrics of this model in timm [model results](https://github.com/huggingface/pytorch-image-models/tree/main/results).
## Citation
```bibtex
@article{Mehta2022SeparableSF,
title={Separable Self-attention for Mobile Vision Transformers},
author={Sachin Mehta and Mohammad Rastegari},
journal={ArXiv},
year={2022},
volume={abs/2206.02680}
}
```
|
[
-0.47559529542922974,
-0.30581608414649963,
-0.04560873657464981,
0.23330892622470856,
-0.37419071793556213,
-0.36937445402145386,
-0.10358618944883347,
-0.2993945777416229,
0.2719199061393738,
0.4604046046733856,
-0.47961193323135376,
-0.6573919653892517,
-0.6498998403549194,
-0.22509293258190155,
-0.13979697227478027,
0.9933711886405945,
-0.07861077785491943,
-0.1138925775885582,
-0.22584819793701172,
-0.6646636724472046,
-0.2806113362312317,
-0.2917592227458954,
-0.6928749680519104,
-0.2705535292625427,
0.33242934942245483,
0.33963102102279663,
0.45802322030067444,
0.6639659404754639,
0.6543055772781372,
0.4547960162162781,
0.0438411608338356,
0.04019965976476669,
-0.17661452293395996,
-0.2800631523132324,
0.32173842191696167,
-0.5767281651496887,
-0.39342451095581055,
0.3391283452510834,
0.5900339484214783,
0.1688336431980133,
0.015438850969076157,
0.6008089780807495,
0.2064097672700882,
0.6367846131324768,
-0.3154711425304413,
0.07405608892440796,
-0.47013628482818604,
0.1327534168958664,
-0.08942751586437225,
0.12191012501716614,
-0.1674559861421585,
-0.39916664361953735,
0.20351937413215637,
-0.3629227876663208,
0.4052996039390564,
-0.05259807035326958,
1.308640956878662,
0.3981356918811798,
-0.148320734500885,
-0.05476731061935425,
-0.30488121509552,
0.8575614094734192,
-0.6651544570922852,
0.22228316962718964,
0.3288290500640869,
0.122315913438797,
0.008224000222980976,
-0.920015811920166,
-0.5624780058860779,
-0.15318892896175385,
-0.05375750735402107,
0.04233294352889061,
-0.16252736747264862,
-0.13201481103897095,
0.2567651867866516,
0.2537204921245575,
-0.4990842938423157,
0.025947457179427147,
-0.6269425749778748,
-0.23302793502807617,
0.6906698942184448,
-0.008479279465973377,
0.3715837895870209,
-0.2963281571865082,
-0.5548226833343506,
-0.32729291915893555,
-0.294284462928772,
0.5153985619544983,
0.07942521572113037,
0.03546103090047836,
-0.720118522644043,
0.5052252411842346,
0.08520759642124176,
0.5803191065788269,
0.14728452265262604,
-0.48713770508766174,
0.7074151039123535,
-0.09374238550662994,
-0.5723577737808228,
-0.0871894508600235,
1.188629150390625,
0.49603450298309326,
0.2811027467250824,
0.1937493532896042,
-0.023475680500268936,
-0.2977517545223236,
-0.04138222709298134,
-1.1244841814041138,
-0.36062920093536377,
0.39345237612724304,
-0.7217722535133362,
-0.48418211936950684,
0.19161121547222137,
-0.6042035818099976,
-0.040329448878765106,
-0.00900840200483799,
0.5858707427978516,
-0.42909950017929077,
-0.36145275831222534,
0.06701841950416565,
-0.0663137286901474,
0.3902326226234436,
0.06774072349071503,
-0.7239107489585876,
0.0697459727525711,
0.07406063377857208,
1.0758776664733887,
0.05325603857636452,
-0.40608206391334534,
-0.2204292118549347,
-0.27441707253456116,
-0.15401549637317657,
0.4829649329185486,
-0.006532161962240934,
-0.29472616314888,
-0.3882140517234802,
0.3742101490497589,
-0.3264968693256378,
-0.7092791795730591,
0.43919405341148376,
-0.10943739861249924,
0.2784394919872284,
-0.017235368490219116,
-0.024114832282066345,
-0.5536805987358093,
0.3092806339263916,
-0.2934723496437073,
1.4526875019073486,
0.26983779668807983,
-0.9080728888511658,
0.35858890414237976,
-0.5193007588386536,
-0.27947643399238586,
-0.3438299894332886,
-0.04243661090731621,
-1.240135908126831,
-0.11752557754516602,
0.30362796783447266,
0.824236273765564,
-0.23240388929843903,
0.04531533271074295,
-0.5521113872528076,
-0.2026967853307724,
0.32531484961509705,
-0.008240412920713425,
0.9537943005561829,
0.18838320672512054,
-0.6129382848739624,
0.2656894624233246,
-0.6988629698753357,
0.20466995239257812,
0.45326411724090576,
-0.26876649260520935,
-0.1494130939245224,
-0.47449028491973877,
0.07841405272483826,
0.46563681960105896,
0.13730916380882263,
-0.6029669642448425,
0.2975159287452698,
-0.14097091555595398,
0.5238378047943115,
0.483331561088562,
-0.20296405255794525,
0.35008177161216736,
-0.281012624502182,
0.2324359118938446,
0.34672874212265015,
0.4053875505924225,
-0.06383796036243439,
-0.5969486236572266,
-0.919914960861206,
-0.5308427214622498,
0.3367854058742523,
0.5777316093444824,
-0.5192017555236816,
0.4994259774684906,
-0.1855250895023346,
-0.7877675890922546,
-0.5440683364868164,
0.15665128827095032,
0.4908609092235565,
0.5498262047767639,
0.3573283851146698,
-0.5433768630027771,
-0.5081431865692139,
-0.9608590006828308,
0.019882213324308395,
0.06473536789417267,
0.0409049354493618,
0.4411926567554474,
0.7260417342185974,
-0.2144394814968109,
0.7886969447135925,
-0.33820274472236633,
-0.4280472993850708,
-0.1809900552034378,
0.08444150537252426,
0.28959956765174866,
0.828014612197876,
0.87937331199646,
-0.7916738390922546,
-0.49325838685035706,
-0.15437403321266174,
-1.0723580121994019,
0.12028966844081879,
-0.16259926557540894,
-0.09305121749639511,
0.1649206131696701,
0.14920535683631897,
-0.6461242437362671,
0.7514027953147888,
0.2762156128883362,
-0.28392669558525085,
0.44033151865005493,
-0.24611985683441162,
0.29632461071014404,
-1.2161003351211548,
0.0607944130897522,
0.4823789596557617,
-0.20053623616695404,
-0.3987099528312683,
-0.10197624564170837,
0.13130952417850494,
-0.05355827882885933,
-0.6309108138084412,
0.587992250919342,
-0.5826634168624878,
-0.29358404874801636,
-0.19622839987277985,
-0.20063693821430206,
-0.0048295073211193085,
0.7374672293663025,
-0.09115707874298096,
0.5464139580726624,
0.8655203580856323,
-0.6593982577323914,
0.48875850439071655,
0.45247188210487366,
-0.23310264945030212,
0.32678404450416565,
-0.687240719795227,
0.06339280307292938,
-0.01023037452250719,
0.20570817589759827,
-0.9980801939964294,
-0.2337251454591751,
0.4149177074432373,
-0.6873236894607544,
0.46314141154289246,
-0.5415480732917786,
-0.324863076210022,
-0.6749289631843567,
-0.5193091034889221,
0.4648994505405426,
0.7357813715934753,
-0.7386233806610107,
0.49719566106796265,
0.3911244571208954,
0.19983001053333282,
-0.6301771402359009,
-0.8290483951568604,
-0.28907421231269836,
-0.4585905969142914,
-0.762039065361023,
0.33828577399253845,
0.21172083914279938,
0.1682540774345398,
0.034774135798215866,
-0.11659079045057297,
-0.10916927456855774,
-0.15936999022960663,
0.7591193318367004,
0.36400946974754333,
-0.2277848869562149,
-0.12778136134147644,
-0.241776242852211,
-0.016558678820729256,
0.044090475887060165,
-0.3453806936740875,
0.5213050842285156,
-0.26292163133621216,
-0.07687938213348389,
-0.9415897727012634,
-0.17600984871387482,
0.6064533591270447,
-0.3347871005535126,
0.7901813387870789,
1.2162675857543945,
-0.3830273151397705,
0.127969428896904,
-0.5037407875061035,
-0.10510186105966568,
-0.5214803814888,
0.4045568108558655,
-0.5542592406272888,
-0.5014134049415588,
0.8194059133529663,
0.015561561100184917,
0.034949056804180145,
0.7416635751724243,
0.5125621557235718,
-0.1409105509519577,
0.8522498607635498,
0.6014036536216736,
0.08387472480535507,
0.6675890684127808,
-0.923758864402771,
-0.20186759531497955,
-0.9245968461036682,
-0.6982557773590088,
-0.3577282428741455,
-0.40449240803718567,
-0.6797686219215393,
-0.45556849241256714,
0.38220927119255066,
0.1851581484079361,
-0.3313453495502472,
0.5062181949615479,
-0.9023731350898743,
0.045645374804735184,
0.6731149554252625,
0.5350967645645142,
-0.436693012714386,
0.3525785207748413,
-0.36107590794563293,
-0.07217229157686234,
-0.6795443296432495,
-0.269807904958725,
1.0926295518875122,
0.5024865865707397,
0.7195473909378052,
-0.16728240251541138,
0.6471040844917297,
-0.13612428307533264,
0.2918006181716919,
-0.5728564858436584,
0.6045868992805481,
-0.11109732836484909,
-0.39393872022628784,
-0.09672683477401733,
-0.34062638878822327,
-1.0214506387710571,
0.1981136053800583,
-0.38558265566825867,
-0.8167076110839844,
0.25140896439552307,
0.18961459398269653,
-0.34090691804885864,
0.6526856422424316,
-0.8525121808052063,
1.0092592239379883,
-0.21806001663208008,
-0.5076352953910828,
0.12696446478366852,
-0.7455287575721741,
0.39627358317375183,
0.14313261210918427,
-0.1488853096961975,
-0.16643451154232025,
0.2988334894180298,
1.1065163612365723,
-0.5493434071540833,
0.8229911923408508,
-0.44622769951820374,
0.3527921736240387,
0.6904448866844177,
-0.23326987028121948,
0.3074181079864502,
-0.038123778998851776,
-0.03336721286177635,
0.3385063409805298,
0.02263030968606472,
-0.4608628451824188,
-0.5032358765602112,
0.6409421563148499,
-0.9945065379142761,
-0.33379247784614563,
-0.4353032112121582,
-0.3903251588344574,
0.25892770290374756,
0.0892084538936615,
0.6016923785209656,
0.6523828506469727,
0.24918289482593536,
0.22928619384765625,
0.6850693821907043,
-0.4443170428276062,
0.520836353302002,
-0.11075247079133987,
-0.20866498351097107,
-0.47117704153060913,
0.931448221206665,
0.05402057617902756,
0.054312556982040405,
0.044510871171951294,
0.06266387552022934,
-0.48142313957214355,
-0.5512978434562683,
-0.4486604332923889,
0.34067583084106445,
-0.5160841345787048,
-0.34561461210250854,
-0.7058648467063904,
-0.4578300416469574,
-0.5378332138061523,
0.02316257916390896,
-0.5661001801490784,
-0.3255985677242279,
-0.4747537076473236,
0.2646563947200775,
0.5950868129730225,
0.5288751125335693,
-0.14604102075099945,
0.5894016027450562,
-0.7406749725341797,
0.21086430549621582,
0.24081642925739288,
0.3469286561012268,
-0.21287332475185394,
-0.92020583152771,
-0.3104964792728424,
-0.028865434229373932,
-0.5517092347145081,
-0.6491113305091858,
0.5956338047981262,
0.08999717235565186,
0.4561084508895874,
0.39800283312797546,
-0.280587762594223,
0.8304906487464905,
-0.04897819086909294,
0.6387521028518677,
0.5016918778419495,
-0.6837272644042969,
0.6744687557220459,
-0.09977728128433228,
0.2754439115524292,
0.15608491003513336,
0.3115338683128357,
-0.11688109487295151,
0.04089875519275665,
-0.863932192325592,
-0.6669518947601318,
0.810064971446991,
0.25940757989883423,
-0.07472431659698486,
0.46689650416374207,
0.7488664984703064,
-0.09357122331857681,
0.019808832556009293,
-0.8967379331588745,
-0.4442530870437622,
-0.46918654441833496,
-0.3615766763687134,
-0.01219679694622755,
-0.13182362914085388,
0.08273468911647797,
-0.76898592710495,
0.6108922362327576,
0.03902054578065872,
0.7960657477378845,
0.4677387475967407,
-0.09482936561107635,
0.04270915314555168,
-0.4053795039653778,
0.6288548707962036,
0.2250344604253769,
-0.30261099338531494,
-0.007697179913520813,
0.25392860174179077,
-0.7149883508682251,
0.21420755982398987,
0.08162134140729904,
0.012854132801294327,
0.02097075618803501,
0.2540493309497833,
0.919267475605011,
-0.07628797739744186,
0.04894989728927612,
0.516191840171814,
-0.13702407479286194,
-0.48236340284347534,
-0.3414226472377777,
0.1943359673023224,
-0.09168951213359833,
0.39721813797950745,
0.35751134157180786,
0.45782533288002014,
-0.06117643415927887,
-0.25123485922813416,
0.3157486915588379,
0.5431711673736572,
-0.42305856943130493,
-0.33464810252189636,
0.8704400658607483,
-0.04032529518008232,
-0.15646019577980042,
0.7541096806526184,
-0.0787014588713646,
-0.5739938020706177,
1.0878572463989258,
0.3614494204521179,
0.8857064247131348,
-0.25999972224235535,
0.0730823278427124,
0.8600480556488037,
0.2989027798175812,
0.01866394467651844,
0.21476007997989655,
0.05630819499492645,
-0.6715826988220215,
0.0025988759007304907,
-0.607262909412384,
0.18102873861789703,
0.3772602677345276,
-0.6187323927879333,
0.35466256737709045,
-0.613206684589386,
-0.4651174545288086,
0.23572282493114471,
0.24005305767059326,
-0.8654319643974304,
0.493740975856781,
-0.04963391274213791,
0.8186244964599609,
-0.7468187808990479,
0.9880621433258057,
0.834306538105011,
-0.501823365688324,
-1.0321544408798218,
-0.035411521792411804,
-0.07295174151659012,
-0.9323067665100098,
0.6651492714881897,
0.5807914137840271,
0.025436412543058395,
0.05424683913588524,
-0.8026092052459717,
-0.6801081299781799,
1.35402512550354,
0.3101740777492523,
-0.20629926025867462,
0.26307934522628784,
0.008465909399092197,
0.09587249159812927,
-0.5432941317558289,
0.47611916065216064,
0.2531539797782898,
0.2711515426635742,
0.29536908864974976,
-0.800592839717865,
0.12670938670635223,
-0.2865026295185089,
0.09053622931241989,
0.24502696096897125,
-0.9405539631843567,
0.8102991580963135,
-0.6507838368415833,
-0.07212165743112564,
0.0029165283776819706,
0.7427604794502258,
0.20518042147159576,
0.30392637848854065,
0.4895481467247009,
0.780072808265686,
0.4372008442878723,
-0.21854013204574585,
0.8098490238189697,
-0.0010892142308875918,
0.6973572373390198,
0.6164544224739075,
0.2877080738544464,
0.5264211297035217,
0.3377932608127594,
-0.14752960205078125,
0.39139842987060547,
1.2061994075775146,
-0.4098621606826782,
0.4815477728843689,
0.09264349937438965,
-0.04119688645005226,
-0.09892962127923965,
0.1824450045824051,
-0.48388469219207764,
0.6783134341239929,
0.2063065767288208,
-0.625042200088501,
-0.07651675492525101,
0.2106914520263672,
-0.04696810990571976,
-0.416653037071228,
-0.2703622877597809,
0.4683500826358795,
0.030376022681593895,
-0.47500285506248474,
0.9201599359512329,
0.1437358409166336,
0.8795991539955139,
-0.27443623542785645,
0.11821165680885315,
-0.19911830127239227,
0.2212129831314087,
-0.4139132499694824,
-0.8034306764602661,
0.3207642138004303,
-0.20387554168701172,
-0.04218563809990883,
0.1096653863787651,
0.7838491201400757,
-0.3351752460002899,
-0.44740214943885803,
0.15103262662887573,
0.22115901112556458,
0.5478640794754028,
0.000860084779560566,
-1.3138842582702637,
0.18217383325099945,
0.28220289945602417,
-0.5938705205917358,
0.30273833870887756,
0.28811022639274597,
0.05464368686079979,
0.8767737150192261,
0.6562365293502808,
-0.2581777274608612,
0.21928247809410095,
-0.3436817526817322,
0.8337103724479675,
-0.6693974733352661,
-0.3060535788536072,
-0.935398519039154,
0.7377594113349915,
-0.18182727694511414,
-0.611657440662384,
0.606282651424408,
0.7006515264511108,
0.7462822794914246,
-0.07428313046693802,
0.5558989644050598,
-0.2542404234409332,
-0.03305690363049507,
-0.4280533790588379,
0.7256242632865906,
-0.7487093210220337,
-0.043512362986803055,
-0.05445025861263275,
-0.6941491365432739,
-0.3219767212867737,
0.8020748496055603,
-0.26058685779571533,
0.3369322419166565,
0.460945725440979,
0.9515917301177979,
-0.44755929708480835,
-0.3495727479457855,
0.212191641330719,
0.10008356720209122,
-0.044799115508794785,
0.43908482789993286,
0.3597666323184967,
-0.9047552943229675,
0.48809173703193665,
-0.510380208492279,
-0.281873881816864,
-0.23253002762794495,
-0.5481364727020264,
-1.143733263015747,
-0.8848578333854675,
-0.6810482144355774,
-0.7342972159385681,
-0.20772291719913483,
0.7896961569786072,
1.2152187824249268,
-0.5712980628013611,
-0.12496961653232574,
0.1421557515859604,
0.11795661598443985,
-0.06851519644260406,
-0.20851273834705353,
0.6333862543106079,
0.008861927315592766,
-0.7257952690124512,
-0.2856110632419586,
0.08767715841531754,
0.5011504888534546,
0.02223481982946396,
-0.20177815854549408,
-0.13209547102451324,
-0.21057863533496857,
0.38171541690826416,
0.46870726346969604,
-0.6534149646759033,
-0.1599741131067276,
-0.26853281259536743,
-0.2808324992656708,
0.48526647686958313,
0.4355064928531647,
-0.6054512858390808,
0.24055024981498718,
0.23451663553714752,
0.2964765727519989,
0.9859750866889954,
-0.20101527869701385,
-0.03779518976807594,
-0.8064978122711182,
0.6769217252731323,
-0.2958294451236725,
0.38772067427635193,
0.39989325404167175,
-0.3486003875732422,
0.5135712623596191,
0.41078096628189087,
-0.5291392803192139,
-0.8121598958969116,
-0.08402004837989807,
-1.2259358167648315,
-0.02958074025809765,
0.947833776473999,
-0.34585967659950256,
-0.6131108999252319,
0.3263927400112152,
-0.11803965270519257,
0.6259481310844421,
-0.10659912973642349,
0.56191086769104,
0.14796967804431915,
-0.1735425591468811,
-0.7206982374191284,
-0.5383448004722595,
0.4894759953022003,
0.17181864380836487,
-0.6800281405448914,
-0.6233991980552673,
-0.121894471347332,
0.8692263960838318,
0.24013374745845795,
0.6072818040847778,
-0.13534346222877502,
0.14811666309833527,
0.018513211980462074,
0.6059316992759705,
-0.2954536974430084,
-0.07291071861982346,
-0.2923648953437805,
-0.000051464918215060607,
-0.2482021301984787,
-0.9034403562545776
] |
PereLluis13/Wav2Vec2-Large-XLSR-53-catalan
|
PereLluis13
| 2022-03-29T08:51:28Z | 9,279 | 1 |
transformers
|
[
"transformers",
"pytorch",
"jax",
"wav2vec2",
"automatic-speech-recognition",
"audio",
"speech",
"xlsr-fine-tuning-week",
"ca",
"dataset:common_voice",
"license:apache-2.0",
"model-index",
"endpoints_compatible",
"region:us"
] |
automatic-speech-recognition
| 2022-03-02T23:29:04Z |
---
language: ca
datasets:
- common_voice
metrics:
- wer
tags:
- audio
- automatic-speech-recognition
- speech
- xlsr-fine-tuning-week
license: apache-2.0
model-index:
- name: Catalan XLSR Wav2Vec Large 53 #TODO: replace {human_readable_name} with a name of your model as it should appear on the leaderboard. It could be something like `Elgeish XLSR Wav2Vec2 Large 53`
results:
- task:
name: Speech Recognition
type: automatic-speech-recognition
dataset:
name: Common Voice ca
type: common_voice
args: ca #TODO:
metrics:
- name: Test WER
type: wer
value: 8.11
---
# Disclaimer
This model was trained on Common Voice 6, if you need a catalan model for ASR, I recommend checking [wav2vec2-xls-r-1b-ca-lm](https://huggingface.co/PereLluis13/wav2vec2-xls-r-1b-ca-lm) which is a 1b model with a LM on top trained on CV8+ with much better performance or [wav2vec2-xls-r-300m-ca-lm](https://huggingface.co/PereLluis13/wav2vec2-xls-r-300m-ca-lm) which has the same size (300m) as this model but trained on CV8+ and the same LM.
# Wav2Vec2-Large-XLSR-53-ca
Fine-tuned [facebook/wav2vec2-large-xlsr-53](https://huggingface.co/facebook/wav2vec2-large-xlsr-53) on catalan using the [Common Voice](https://huggingface.co/datasets/common_voice) dataset.
When using this model, make sure that your speech input is sampled at 16kHz.
## Usage
The model can be used directly (without a language model) as follows:
```python
import torch
import torchaudio
from datasets import load_dataset
from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor
test_dataset = load_dataset("common_voice", "ca", split="test[:2%]")
processor = Wav2Vec2Processor.from_pretrained("PereLluis13/Wav2Vec2-Large-XLSR-53-catalan")
model = Wav2Vec2ForCTC.from_pretrained("PereLluis13/Wav2Vec2-Large-XLSR-53-catalan")
resampler = torchaudio.transforms.Resample(48_000, 16_000)
# Preprocessing the datasets.
# We need to read the aduio files as arrays
def speech_file_to_array_fn(batch):
speech_array, sampling_rate = torchaudio.load(batch["path"])
batch["speech"] = resampler(speech_array).squeeze().numpy()
return batch
test_dataset = test_dataset.map(speech_file_to_array_fn)
inputs = processor(test_dataset["speech"][:2], sampling_rate=16_000, return_tensors="pt", padding=True)
with torch.no_grad():
logits = model(inputs.input_values, attention_mask=inputs.attention_mask).logits
predicted_ids = torch.argmax(logits, dim=-1)
print("Prediction:", processor.batch_decode(predicted_ids))
print("Reference:", test_dataset["sentence"][:2])
```
## Evaluation
The model can be evaluated as follows on the catalan test data of Common Voice.
```python
import torch
import torchaudio
from datasets import load_dataset, load_metric
from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor
import re
test_dataset = load_dataset("common_voice", "ca", split="test")
wer = load_metric("wer")
processor = Wav2Vec2Processor.from_pretrained("PereLluis13/Wav2Vec2-Large-XLSR-53-catalan")
model = Wav2Vec2ForCTC.from_pretrained("PereLluis13/Wav2Vec2-Large-XLSR-53-catalan")
model.to("cuda")
chars_to_ignore_regex = '[\,\?\.\!\;\:\"\“]'
resampler = torchaudio.transforms.Resample(48_000, 16_000)
# Preprocessing the datasets.
# We need to read the aduio files as arrays
def speech_file_to_array_fn(batch):
batch["sentence"] = re.sub(chars_to_ignore_regex, '', batch["sentence"]).lower()
speech_array, sampling_rate = torchaudio.load(batch["path"])
batch["speech"] = resampler(speech_array).squeeze().numpy()
return batch
test_dataset = test_dataset.map(speech_file_to_array_fn)
# Preprocessing the datasets.
# We need to read the aduio files as arrays
def evaluate(batch):
inputs = processor(batch["speech"], sampling_rate=16_000, return_tensors="pt", padding=True)
with torch.no_grad():
logits = model(inputs.input_values.to("cuda"), attention_mask=inputs.attention_mask.to("cuda")).logits
pred_ids = torch.argmax(logits, dim=-1)
batch["pred_strings"] = processor.batch_decode(pred_ids)
return batch
result = test_dataset.map(evaluate, batched=True, batch_size=8)
import jiwer
# Chunk WER computation due to memory issues, taken from https://huggingface.co/pcuenq/wav2vec2-large-xlsr-53-es
def chunked_wer(targets, predictions, chunk_size=None):
if chunk_size is None: return jiwer.wer(targets, predictions)
start = 0
end = chunk_size
H, S, D, I = 0, 0, 0, 0
while start < len(targets):
chunk_metrics = jiwer.compute_measures(targets[start:end], predictions[start:end])
H = H + chunk_metrics["hits"]
S = S + chunk_metrics["substitutions"]
D = D + chunk_metrics["deletions"]
I = I + chunk_metrics["insertions"]
start += chunk_size
end += chunk_size
return float(S + D + I) / float(H + S + D)
print("WER: {:2f}".format(100 * chunked_wer(result["sentence"], result["pred_strings"], chunk_size=4000)))
```
**Test Result**: 8.11 %
## Training
The Common Voice `train`, `validation` datasets were used for training. At the second epoch training was halted due to a memory issue, and was continued with lower batch size, but acc. gradient steps were scaled to keep it at 32 batch size during all training. Then the model was trained for an additional 10 epochs where half the male samples were pitched up.
The script used for training can be found [here](https://github.com/huggingface/transformers/blob/master/examples/research_projects/wav2vec2/run_common_voice.py). Slight modifications were done in order to speed up the ordering by length during training, which can be found [here](https://discuss.huggingface.co/t/spanish-asr-fine-tuning-wav2vec2/4586/6). Another version trained for catalan can be found [here](https://huggingface.co/ccoreilly/wav2vec2-large-xlsr-catala), which may be better than this one since it was trained with extra data and for longer time. Whoever, since it used different splits that include part of the Common Voice test set, this version can be used to get a baseline on the Common Voice dataset.
|
[
-0.33695343136787415,
-0.5762717127799988,
-0.08266101032495499,
0.3564886450767517,
-0.10433804988861084,
-0.08831555396318436,
-0.4629040062427521,
-0.4727347195148468,
0.29073604941368103,
0.39166954159736633,
-0.6179376840591431,
-0.47225305438041687,
-0.5592755675315857,
-0.15925471484661102,
-0.20391269028186798,
0.8933296203613281,
0.28538134694099426,
0.2525380253791809,
0.20154431462287903,
-0.19629131257534027,
-0.42911624908447266,
-0.3185522258281708,
-1.0406579971313477,
-0.4261533319950104,
0.24934056401252747,
0.4490785002708435,
0.24707812070846558,
0.4268472492694855,
0.23775090277194977,
0.4043026566505432,
-0.2636793851852417,
0.052012499421834946,
-0.42957770824432373,
-0.09668128937482834,
0.3435370922088623,
-0.5472811460494995,
-0.4651435315608978,
0.12912850081920624,
0.6321289539337158,
0.25769853591918945,
-0.4000506103038788,
0.24688376486301422,
-0.13394927978515625,
0.3399123251438141,
-0.10918450355529785,
0.12524351477622986,
-0.7417184114456177,
-0.30348822474479675,
-0.019897328689694405,
-0.17774702608585358,
-0.3241824805736542,
-0.260046124458313,
0.19474296271800995,
-0.6101072430610657,
0.5216512680053711,
-0.03885651007294655,
0.9296011328697205,
0.4251577854156494,
-0.15561658143997192,
-0.4950762093067169,
-0.5677476525306702,
0.9954888224601746,
-0.8831633925437927,
0.32284635305404663,
0.3407924473285675,
0.10433360189199448,
-0.28536733984947205,
-0.92753666639328,
-0.7204006314277649,
-0.13869917392730713,
0.25626569986343384,
0.2236967533826828,
-0.32733920216560364,
0.1229032576084137,
0.384793221950531,
0.25515395402908325,
-0.6190164089202881,
0.11837737262248993,
-0.9693042039871216,
-0.40154507756233215,
0.8428972959518433,
-0.1584358811378479,
0.4085543751716614,
-0.13210374116897583,
-0.29271864891052246,
-0.5521836280822754,
-0.3446599841117859,
0.2948105037212372,
0.5224669575691223,
0.21439307928085327,
-0.4512993097305298,
0.42541375756263733,
0.08501526713371277,
0.5900037288665771,
0.23419368267059326,
-0.27326810359954834,
0.7419167160987854,
0.02477290853857994,
-0.30525127053260803,
0.49378353357315063,
1.0025547742843628,
0.15687969326972961,
0.4102102816104889,
0.17824289202690125,
0.15288622677326202,
0.37332427501678467,
-0.07757654786109924,
-0.7771049737930298,
-0.4628616273403168,
0.5891701579093933,
-0.11913061141967773,
-0.11444126069545746,
-0.07237619906663895,
-0.5158559679985046,
0.05932727828621864,
-0.2816452383995056,
0.594915509223938,
-0.5654467344284058,
-0.20687592029571533,
0.3160332441329956,
-0.26316025853157043,
0.2430155724287033,
-0.045591458678245544,
-0.8975465297698975,
0.42578980326652527,
0.4254993200302124,
0.8091706037521362,
0.07003819942474365,
-0.33753660321235657,
-0.6135917901992798,
-0.31379228830337524,
0.02165129967033863,
0.48536887764930725,
-0.04367370903491974,
-0.4489539563655853,
-0.4745776057243347,
0.06472623348236084,
-0.434858500957489,
-0.7155519723892212,
0.8592274785041809,
-0.20047178864479065,
0.2843044400215149,
-0.004110229201614857,
-0.38639989495277405,
-0.3207758367061615,
-0.26719924807548523,
-0.5572217702865601,
1.2764651775360107,
-0.09474585950374603,
-0.8496472239494324,
0.14923667907714844,
-0.46699804067611694,
-0.5614938139915466,
-0.39000624418258667,
-0.11154605448246002,
-0.48294931650161743,
-0.019626591354608536,
0.3656233549118042,
0.4811789095401764,
-0.234319806098938,
0.18929435312747955,
0.026438549160957336,
-0.5725967884063721,
0.38856375217437744,
-0.5052468776702881,
1.212873101234436,
0.27007028460502625,
-0.5209099650382996,
0.09812787175178528,
-0.9699610471725464,
0.21049626171588898,
-0.023321062326431274,
-0.5206190943717957,
0.11408261954784393,
-0.056370045989751816,
0.4614034593105316,
0.2841007709503174,
0.033782992511987686,
-0.6970853209495544,
-0.02158845216035843,
-0.8442734479904175,
0.7448344230651855,
0.5103151798248291,
-0.139622300863266,
0.08556218445301056,
-0.4565916955471039,
0.29404500126838684,
-0.05282756686210632,
-0.24593771994113922,
0.1637512892484665,
-0.6027665138244629,
-0.8731539845466614,
-0.547877311706543,
0.2663838565349579,
0.6083592772483826,
-0.32496151328086853,
0.6519719958305359,
-0.13782979547977448,
-0.7691627740859985,
-1.0942111015319824,
-0.1515982449054718,
0.29455313086509705,
0.435665100812912,
0.5908817648887634,
-0.3344457745552063,
-0.8208999037742615,
-0.7039918899536133,
0.03074684739112854,
-0.19147594273090363,
-0.278453528881073,
0.4012822210788727,
0.43820828199386597,
-0.375031054019928,
0.7592270970344543,
-0.5232499837875366,
-0.34642770886421204,
-0.3223259747028351,
0.1860933154821396,
0.5515310168266296,
0.6738871335983276,
0.3574126660823822,
-0.7458862662315369,
-0.29799970984458923,
-0.21058952808380127,
-0.22236838936805725,
-0.18428795039653778,
-0.06510698050260544,
0.1626417338848114,
0.03590710088610649,
0.34891432523727417,
-0.5597755908966064,
0.19333641231060028,
0.5677143335342407,
-0.2028965950012207,
0.4994201958179474,
-0.21632559597492218,
0.1514884978532791,
-1.1850402355194092,
0.1556214839220047,
-0.02612508088350296,
-0.09113947302103043,
-0.6175420880317688,
-0.42879796028137207,
-0.2435833364725113,
-0.009129606187343597,
-0.5805731415748596,
0.46132466197013855,
-0.4214453101158142,
-0.052182577550411224,
-0.1334727555513382,
0.24577198922634125,
-0.03997335582971573,
0.6702113747596741,
0.17937174439430237,
0.6490522623062134,
0.8089380860328674,
-0.6411821842193604,
0.6881356239318848,
0.41342952847480774,
-0.4969971179962158,
0.20318901538848877,
-1.0976154804229736,
0.39759984612464905,
0.009945843368768692,
0.2844947576522827,
-1.0993032455444336,
-0.1651795506477356,
0.16923359036445618,
-1.0589628219604492,
0.37063390016555786,
-0.054445020854473114,
-0.32328832149505615,
-0.4901012182235718,
-0.23467756807804108,
0.34868383407592773,
0.6349437236785889,
-0.5791584253311157,
0.39396199584007263,
0.48942968249320984,
-0.055175621062517166,
-0.6854389905929565,
-0.8353467583656311,
-0.34795284271240234,
-0.4439793825149536,
-0.929914653301239,
0.35033372044563293,
-0.10969210416078568,
-0.07724431157112122,
-0.3132961392402649,
-0.2428310066461563,
-0.062157969921827316,
-0.1913461983203888,
0.4274991750717163,
0.17581579089164734,
-0.10310165584087372,
-0.18820150196552277,
-0.169128879904747,
-0.03288474678993225,
0.027636921033263206,
-0.1532861739397049,
0.701936662197113,
-0.14758332073688507,
-0.05192781239748001,
-0.7648203372955322,
-0.01003135833889246,
0.6448938846588135,
-0.2950313985347748,
0.4978761672973633,
1.0487276315689087,
-0.3861572742462158,
-0.09580115228891373,
-0.6639094352722168,
-0.05910605564713478,
-0.4879705309867859,
0.6522049307823181,
-0.247551828622818,
-0.5541799664497375,
0.6508513689041138,
0.2219993770122528,
0.02464362047612667,
0.5957050919532776,
0.6398839950561523,
-0.004412791691720486,
0.8652966618537903,
0.15137654542922974,
-0.31033840775489807,
0.42900437116622925,
-0.9148536324501038,
-0.1475316286087036,
-1.0262969732284546,
-0.49307259917259216,
-0.6583245992660522,
-0.392936646938324,
-0.40839171409606934,
-0.665854811668396,
0.276507169008255,
0.03276459500193596,
-0.19041216373443604,
0.49941322207450867,
-0.7500461339950562,
0.1426156759262085,
0.5633483529090881,
0.11413317918777466,
-0.010530621744692326,
0.21186095476150513,
-0.04984118416905403,
-0.0252987053245306,
-0.61260586977005,
-0.29925617575645447,
1.0733064413070679,
0.5651828050613403,
0.8144158720970154,
-0.17415381968021393,
0.5407793521881104,
-0.07863053679466248,
-0.19590511918067932,
-0.9344338178634644,
0.41496792435646057,
-0.2332029789686203,
-0.5578129291534424,
-0.3174472749233246,
-0.3770601153373718,
-1.015307068824768,
0.35890257358551025,
-0.1285802125930786,
-0.9203059673309326,
0.17601704597473145,
-0.006522143259644508,
-0.38480398058891296,
0.07801361382007599,
-0.761722207069397,
0.7608801126480103,
-0.05913383513689041,
-0.041297994554042816,
-0.23713019490242004,
-0.7140235304832458,
0.08889743685722351,
0.19989502429962158,
0.09103529155254364,
-0.11790762096643448,
0.422753244638443,
1.3603830337524414,
-0.31097859144210815,
0.5751379132270813,
-0.21770158410072327,
0.0902903601527214,
0.673042356967926,
-0.4647321403026581,
0.3222443461418152,
-0.04104984924197197,
-0.22788357734680176,
0.2691299617290497,
0.1946292370557785,
-0.19578434526920319,
-0.30808746814727783,
0.8521116971969604,
-1.1549973487854004,
-0.13164696097373962,
-0.37472283840179443,
-0.5145682096481323,
-0.10080273449420929,
-0.11626259237527847,
0.8741774559020996,
0.8786956667900085,
-0.18473009765148163,
0.3873381018638611,
0.6635025143623352,
-0.2122545838356018,
0.36848846077919006,
0.29738834500312805,
0.22169849276542664,
-0.5965401530265808,
0.7150750160217285,
0.1560511291027069,
0.28567713499069214,
0.040777746587991714,
0.12295511364936829,
-0.5531787872314453,
-0.45057380199432373,
-0.28294816613197327,
0.41370463371276855,
-0.386707603931427,
-0.053005531430244446,
-0.7617567777633667,
-0.28908807039260864,
-0.6899022459983826,
0.037379153072834015,
-0.5619103312492371,
-0.45502418279647827,
-0.5518046021461487,
0.11226129531860352,
0.544952392578125,
0.4435947835445404,
-0.15774720907211304,
0.536491870880127,
-0.4926968514919281,
0.5628751516342163,
0.06748924404382706,
-0.04191182553768158,
-0.022823311388492584,
-1.083024024963379,
-0.22014790773391724,
0.28680282831192017,
-0.26761874556541443,
-0.7168295979499817,
0.5975052714347839,
0.2044030874967575,
0.37404197454452515,
0.24725279211997986,
-0.09076960384845734,
0.8475030660629272,
-0.48483532667160034,
0.7241069078445435,
0.2932504117488861,
-0.8412233591079712,
0.6214621067047119,
-0.2144279181957245,
0.2049705535173416,
0.38905084133148193,
0.22187286615371704,
-0.63185054063797,
-0.24979013204574585,
-0.8186748623847961,
-1.01841139793396,
1.0578314065933228,
0.3765060007572174,
-0.06191650405526161,
0.12207633256912231,
0.09981691092252731,
-0.18597620725631714,
0.02599836327135563,
-0.6149822473526001,
-0.6131317019462585,
-0.21037177741527557,
-0.3443763256072998,
-0.41712433099746704,
0.015688471496105194,
0.0006920067826285958,
-0.5580608248710632,
1.0167851448059082,
0.20555120706558228,
0.452227383852005,
0.47930529713630676,
0.04077071323990822,
-0.004567011259496212,
0.22433675825595856,
0.5097408294677734,
0.1618952453136444,
-0.44527995586395264,
-0.12633852660655975,
0.2892974317073822,
-0.955242931842804,
0.21017234027385712,
0.2950475215911865,
0.21450939774513245,
0.21729984879493713,
0.2741502821445465,
1.0918201208114624,
0.24174077808856964,
-0.5746646523475647,
0.39327701926231384,
-0.1608235388994217,
-0.32421886920928955,
-0.6459363102912903,
0.19264329969882965,
0.35290539264678955,
0.23370343446731567,
0.37450355291366577,
0.20609623193740845,
-0.08741568773984909,
-0.541018545627594,
0.26285281777381897,
0.19867520034313202,
-0.3072739243507385,
-0.32183292508125305,
0.9499174952507019,
0.14809751510620117,
-0.37379446625709534,
0.7231794595718384,
0.12423177808523178,
-0.4700579345226288,
0.9528747200965881,
0.6270041465759277,
0.7723624110221863,
-0.41990453004837036,
-0.10939578711986542,
0.5860490798950195,
0.16555877029895782,
-0.3407757878303528,
0.37279969453811646,
0.06467151641845703,
-0.7365724444389343,
-0.328746497631073,
-0.7029900550842285,
0.006289602257311344,
0.45345285534858704,
-0.8143107891082764,
0.5392823815345764,
-0.2935607135295868,
-0.20879203081130981,
0.17311248183250427,
0.378651887178421,
-0.6300406455993652,
0.4841356873512268,
0.08465008437633514,
0.8259661197662354,
-0.8648619651794434,
1.081534743309021,
0.4925239384174347,
-0.2661888897418976,
-1.282990574836731,
-0.20430955290794373,
-0.0756886675953865,
-0.8339921832084656,
0.48187199234962463,
0.2897336184978485,
-0.3092261552810669,
0.23573432862758636,
-0.4569452404975891,
-0.8219056129455566,
1.1644192934036255,
0.40309345722198486,
-0.5958082675933838,
0.03081206977367401,
-0.22093187272548676,
0.6401437520980835,
-0.2694815397262573,
0.3030480444431305,
0.7925747632980347,
0.2288718819618225,
0.4332055449485779,
-1.0898387432098389,
-0.19595134258270264,
-0.2488507777452469,
-0.3517661988735199,
-0.08900224417448044,
-0.6885311007499695,
0.9240691065788269,
-0.3880566954612732,
-0.20868957042694092,
0.14959028363227844,
0.7123665809631348,
0.4967016279697418,
0.36802947521209717,
0.456430584192276,
0.6580794453620911,
0.9533836245536804,
-0.054333947598934174,
0.6675302982330322,
-0.028614487498998642,
0.5059956312179565,
1.1265931129455566,
0.0588328093290329,
1.042749285697937,
0.3306330144405365,
-0.30923163890838623,
0.3396952450275421,
0.5377154350280762,
-0.13995115458965302,
0.49659475684165955,
0.4038524329662323,
-0.2502712309360504,
0.16893146932125092,
0.12018976360559464,
-0.6351274847984314,
0.7987943887710571,
0.4052235782146454,
-0.1882879137992859,
0.3556019067764282,
-0.003775346092879772,
0.0411171056330204,
-0.0891130268573761,
-0.2168346345424652,
0.46443864703178406,
0.15490294992923737,
-0.5302552580833435,
0.9956737160682678,
0.10512685030698776,
1.0594098567962646,
-0.5445722937583923,
0.16872088611125946,
0.2074739933013916,
0.24815665185451508,
-0.3920774459838867,
-0.4958946704864502,
0.20090311765670776,
0.00013027491513639688,
-0.13558509945869446,
0.06231473386287689,
0.41687074303627014,
-0.8124765157699585,
-0.4263893961906433,
0.4283483028411865,
-0.019289530813694,
0.5549691319465637,
-0.028839223086833954,
-0.7396619915962219,
0.2773685157299042,
0.3387329876422882,
-0.3330209255218506,
-0.05336182191967964,
0.11764781177043915,
0.35417160391807556,
0.5609971880912781,
0.6139606833457947,
0.5107201337814331,
0.2972002327442169,
0.12461820989847183,
0.6368998885154724,
-0.4956996738910675,
-0.5172924995422363,
-0.5834006071090698,
0.5495551824569702,
0.10275883227586746,
-0.3297892212867737,
0.5822362303733826,
0.7655100226402283,
0.8968942165374756,
-0.04688923805952072,
0.6965543627738953,
-0.23591184616088867,
0.6628609299659729,
-0.5563210844993591,
0.860571563243866,
-0.4522929787635803,
0.25548499822616577,
-0.29465222358703613,
-0.8446020483970642,
0.0071380590088665485,
0.8885241746902466,
-0.19151419401168823,
0.040836017578840256,
0.44164443016052246,
1.0222725868225098,
-0.111911341547966,
-0.09758694469928741,
0.12699268758296967,
0.3998517692089081,
0.14145110547542572,
0.7864112854003906,
0.40277454257011414,
-0.9095774292945862,
0.7463626861572266,
-0.24828866124153137,
-0.1584884375333786,
-0.017929043620824814,
-0.28668710589408875,
-0.8520985245704651,
-0.7376978397369385,
-0.41875070333480835,
-0.4918174743652344,
-0.2316228300333023,
1.0718072652816772,
0.6945689916610718,
-0.8437939882278442,
-0.43588966131210327,
0.17751657962799072,
-0.17758062481880188,
-0.18525943160057068,
-0.24380873143672943,
0.6487916111946106,
0.18768055737018585,
-0.9999078512191772,
0.6135339736938477,
-0.2373836189508438,
0.0868343859910965,
0.13519233465194702,
-0.2583356499671936,
-0.3246902525424957,
0.03743274509906769,
0.15089578926563263,
0.44405779242515564,
-0.8077240586280823,
-0.16493891179561615,
-0.10619815438985825,
-0.011396539397537708,
0.25592079758644104,
0.47709840536117554,
-0.7506239414215088,
0.505285918712616,
0.48371878266334534,
0.1806069314479828,
0.847362756729126,
0.0018769990419968963,
0.33742237091064453,
-0.714709997177124,
0.5312795639038086,
0.18880312144756317,
0.3873448371887207,
0.42027920484542847,
-0.2581513226032257,
0.32476606965065,
0.2549681067466736,
-0.6539998650550842,
-0.7956574559211731,
-0.21333380043506622,
-1.394225835800171,
0.04841656982898712,
1.240654706954956,
-0.008776456117630005,
-0.1342368870973587,
0.011087634600698948,
-0.5975080132484436,
0.7261370420455933,
-0.5313764214515686,
0.47535085678100586,
0.4518508017063141,
-0.2312227487564087,
0.1146748960018158,
-0.6613521575927734,
0.590451180934906,
0.37042292952537537,
-0.3638179302215576,
-0.12358539551496506,
0.3479844927787781,
0.7344722151756287,
0.17425113916397095,
0.9800499081611633,
-0.11656422913074493,
0.23864546418190002,
0.1910901665687561,
0.26314544677734375,
-0.07552745193243027,
-0.21920569241046906,
-0.6265961527824402,
-0.10672244429588318,
-0.12280644476413727,
-0.7055409550666809
] |
oliverguhr/fullstop-punctuation-multilingual-base
|
oliverguhr
| 2023-03-21T09:16:18Z | 9,268 | 6 |
transformers
|
[
"transformers",
"pytorch",
"tensorboard",
"safetensors",
"xlm-roberta",
"token-classification",
"punctuation prediction",
"punctuation",
"en",
"de",
"fr",
"it",
"nl",
"multilingual",
"dataset:wmt/europarl",
"arxiv:2301.03319",
"license:mit",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] |
token-classification
| 2022-03-22T09:03:02Z |
---
language:
- en
- de
- fr
- it
- nl
- multilingual
tags:
- punctuation prediction
- punctuation
datasets: wmt/europarl
license: mit
widget:
- text: "Ondanks dat het nu bijna voorjaar is hebben we nog steds best koude dagen"
example_title: "Dutch"
- text: "Ho sentito che ti sei laureata il che mi fa molto piacere"
example_title: "Italian"
- text: "Tous les matins vers quatre heures mon père ouvrait la porte de ma chambre"
example_title: "French"
- text: "Ist das eine Frage Frau Müller"
example_title: "German"
- text: "My name is Clara and I live in Berkeley California"
example_title: "English"
metrics:
- f1
---
# Work in progress
## Classification report over all languages
```
precision recall f1-score support
0 0.99 0.99 0.99 47903344
. 0.94 0.95 0.95 2798780
, 0.85 0.84 0.85 3451618
? 0.88 0.85 0.87 88876
- 0.61 0.32 0.42 157863
: 0.72 0.52 0.60 103789
accuracy 0.98 54504270
macro avg 0.83 0.75 0.78 54504270
weighted avg 0.98 0.98 0.98 54504270
```
## How to cite us
```
@article{guhr-EtAl:2021:fullstop,
title={FullStop: Multilingual Deep Models for Punctuation Prediction},
author = {Guhr, Oliver and Schumann, Anne-Kathrin and Bahrmann, Frank and Böhme, Hans Joachim},
booktitle = {Proceedings of the Swiss Text Analytics Conference 2021},
month = {June},
year = {2021},
address = {Winterthur, Switzerland},
publisher = {CEUR Workshop Proceedings},
url = {http://ceur-ws.org/Vol-2957/sepp_paper4.pdf}
}
```
```
@misc{https://doi.org/10.48550/arxiv.2301.03319,
doi = {10.48550/ARXIV.2301.03319},
url = {https://arxiv.org/abs/2301.03319},
author = {Vandeghinste, Vincent and Guhr, Oliver},
keywords = {Computation and Language (cs.CL), Artificial Intelligence (cs.AI), FOS: Computer and information sciences, FOS: Computer and information sciences, I.2.7},
title = {FullStop:Punctuation and Segmentation Prediction for Dutch with Transformers},
publisher = {arXiv},
year = {2023},
copyright = {Creative Commons Attribution Share Alike 4.0 International}
}
```
|
[
-0.17607830464839935,
-0.7695198655128479,
0.6476536393165588,
0.5906839370727539,
-0.06990119814872742,
0.15989160537719727,
-0.6369054317474365,
-0.6227160692214966,
-0.02348165400326252,
0.27642256021499634,
-0.3497755229473114,
-0.9471625089645386,
-0.5513720512390137,
0.5616584420204163,
-0.054846156388521194,
0.5799351930618286,
-0.23173943161964417,
0.04687250033020973,
-0.289260596036911,
-0.2237270027399063,
-0.3709174692630768,
-1.0619271993637085,
-0.48805588483810425,
-0.16930687427520752,
0.3902733623981476,
0.4666686952114105,
0.2899828851222992,
0.6333637237548828,
0.5249502062797546,
0.3978690505027771,
-0.18143995106220245,
0.22605855762958527,
0.09591521322727203,
-0.08541260659694672,
0.022012529894709587,
-0.3006635308265686,
-0.4587462544441223,
-0.037973493337631226,
0.8369808197021484,
0.863939642906189,
-0.08703165501356125,
-0.11065836250782013,
0.12270259112119675,
0.6995345950126648,
-0.465515673160553,
0.4623914659023285,
-0.330587774515152,
-0.07607710361480713,
-0.3004167079925537,
0.08188818395137787,
-0.6131951212882996,
-0.49299952387809753,
-0.1039954349398613,
-0.5888249278068542,
0.05224945768713951,
0.22373810410499573,
0.90445476770401,
0.0036110032815486193,
-0.16042183339595795,
-0.15773539245128632,
-0.6119219064712524,
1.0535372495651245,
-0.7380034327507019,
0.5881720781326294,
0.36682644486427307,
-0.04927230253815651,
-0.019700368866324425,
-0.8462938070297241,
-0.7319082617759705,
-0.1519802361726761,
-0.2914295494556427,
0.13705885410308838,
-0.2507689595222473,
-0.01874963566660881,
0.34722334146499634,
0.41426825523376465,
-0.6584133505821228,
0.13308945298194885,
-0.4038166403770447,
-0.4046178162097931,
0.6352096796035767,
0.14467695355415344,
0.05675916001200676,
0.00990581139922142,
-0.1886725276708603,
-0.3562850058078766,
-0.4041675329208374,
0.23567327857017517,
0.28611600399017334,
0.2694738209247589,
-0.5691810250282288,
0.45184561610221863,
-0.23108918964862823,
0.679004967212677,
-0.1527351588010788,
-0.02765420265495777,
0.8050552010536194,
-0.6534286141395569,
-0.16520743072032928,
-0.19879010319709778,
1.4014345407485962,
0.020281881093978882,
0.613588273525238,
0.10119403153657913,
0.19982685148715973,
-0.06448278576135635,
-0.14250116050243378,
-0.790291965007782,
-0.4273282289505005,
0.010263998061418533,
-0.29907557368278503,
-0.08322075009346008,
0.4343288540840149,
-0.8170785307884216,
-0.11017434298992157,
-0.2621331512928009,
-0.16205890476703644,
-0.7628615498542786,
-0.1100630909204483,
0.34210026264190674,
0.1430780589580536,
0.01874966360628605,
0.3263290822505951,
-0.5666074156761169,
0.16852344572544098,
0.32525649666786194,
0.6824163794517517,
-0.13371215760707855,
-0.6716129779815674,
-0.3514477610588074,
-0.16713358461856842,
-0.11327412724494934,
0.9265282154083252,
-0.5868574976921082,
-0.37503916025161743,
0.14190608263015747,
0.2813628017902374,
-0.6060464382171631,
-0.4354439377784729,
1.1208285093307495,
-0.20962344110012054,
0.5755836367607117,
-0.22618618607521057,
-0.7063546180725098,
-0.5022393465042114,
0.2649978697299957,
-0.852241575717926,
1.287916898727417,
-0.15945057570934296,
-0.7931926250457764,
0.07606808096170425,
-0.7042995095252991,
-0.7010111212730408,
-0.14971616864204407,
-0.07211301475763321,
-0.7619090676307678,
-0.17557138204574585,
0.4068036377429962,
0.42913857102394104,
-0.33216679096221924,
0.3079449534416199,
-0.2235010713338852,
-0.2130919098854065,
0.4222557842731476,
-0.49979788064956665,
1.0085293054580688,
0.14094316959381104,
-0.30397918820381165,
-0.05463022366166115,
-0.8978396058082581,
0.0992043986916542,
0.03162487596273422,
-0.5879837274551392,
-0.1689509153366089,
-0.08320829272270203,
0.20185811817646027,
0.3140981197357178,
0.3923414349555969,
-0.5213276743888855,
0.10894234478473663,
-0.47199752926826477,
0.4276007413864136,
0.48678264021873474,
0.03241211175918579,
0.4330550730228424,
-0.09641453623771667,
0.5800005197525024,
0.11281284689903259,
0.05684201791882515,
-0.3447591960430145,
-0.5272477865219116,
-0.8963674306869507,
-0.4477386176586151,
0.6485303640365601,
1.0846121311187744,
-0.6030780673027039,
0.9353423118591309,
-0.32425910234451294,
-0.54696124792099,
-0.2908203899860382,
0.10663122683763504,
0.7280882000923157,
0.5868623852729797,
0.5879905223846436,
-0.2087896764278412,
-0.81843501329422,
-0.8161190152168274,
-0.2780607044696808,
-0.4199422597885132,
0.19791187345981598,
0.2055595964193344,
0.651739776134491,
-0.0761619508266449,
0.8139775395393372,
-0.6090793609619141,
-0.28027766942977905,
-0.17159195244312286,
0.20070235431194305,
0.4744863212108612,
0.6833581924438477,
0.5225985646247864,
-0.7558588981628418,
-0.8200651407241821,
0.0344056710600853,
-0.7127205729484558,
-0.10532160103321075,
0.0768868625164032,
-0.09541377425193787,
0.5720536708831787,
0.647320568561554,
-0.48651209473609924,
0.3547198474407196,
0.23042996227741241,
-0.5138741135597229,
0.8360320925712585,
0.008032658137381077,
0.2910315692424774,
-1.286250352859497,
0.5750592947006226,
0.08909966051578522,
-0.02232181280851364,
-0.4891435205936432,
-0.336948961019516,
0.2829644978046417,
0.14244580268859863,
-0.5531305074691772,
0.7870578169822693,
-0.5663323998451233,
0.39594805240631104,
0.3550625145435333,
-0.1893746554851532,
0.12676632404327393,
0.8001662492752075,
0.2127082645893097,
0.8722366094589233,
0.48816150426864624,
-0.601443886756897,
-0.03670049086213112,
0.4886683523654938,
-0.6128552556037903,
0.40402060747146606,
-0.6085889339447021,
0.010781560093164444,
0.40650126338005066,
0.03758404031395912,
-0.8327131867408752,
0.05285191535949707,
0.305774062871933,
-0.8454629182815552,
0.43871554732322693,
0.001173056778497994,
-0.8879806995391846,
-0.3932463526725769,
-0.2732657194137573,
0.49525201320648193,
0.3157753646373749,
-0.18094030022621155,
0.49082306027412415,
0.18972279131412506,
-0.3855167031288147,
-0.6065641045570374,
-0.8100234270095825,
0.009667678736150265,
-0.07712391763925552,
-0.6790573596954346,
0.38422444462776184,
-0.49712085723876953,
-0.16887927055358887,
-0.1392425000667572,
0.22813443839550018,
-0.0779949501156807,
0.1472521871328354,
0.020745374262332916,
0.29908478260040283,
-0.19771471619606018,
0.0399339497089386,
-0.11743120104074478,
-0.18772894144058228,
-0.13102447986602783,
-0.279712438583374,
0.6524471044540405,
-0.2743965685367584,
-0.32219162583351135,
-0.45967745780944824,
0.3908807635307312,
0.4846184551715851,
-0.423004150390625,
0.5877435207366943,
0.7591341137886047,
-0.37011224031448364,
0.23239828646183014,
-0.6588569283485413,
0.07686339318752289,
-0.49228084087371826,
0.4475306570529938,
-0.4126444458961487,
-1.032146692276001,
0.8653662204742432,
0.18593966960906982,
-0.21437686681747437,
0.8268083333969116,
0.6323963403701782,
-0.011833982542157173,
0.8404019474983215,
0.8672192692756653,
-0.21621932089328766,
0.6059339046478271,
-0.24011236429214478,
0.19014078378677368,
-0.6717082858085632,
-0.4934767782688141,
-0.9306240081787109,
0.03615357354283333,
-0.6694239974021912,
-0.4258746802806854,
0.17438459396362305,
0.44236287474632263,
-0.2839461863040924,
0.47590935230255127,
-0.4771343171596527,
0.4457588493824005,
0.6897639036178589,
-0.3015417158603668,
0.34431180357933044,
0.4240865111351013,
-0.792409360408783,
-0.19470204412937164,
-0.5691084265708923,
-0.4100455343723297,
0.8617035150527954,
0.16607026755809784,
0.3064213991165161,
-0.034868065267801285,
0.6344348192214966,
0.15297231078147888,
-0.10753212124109268,
-0.7534891963005066,
0.600792646408081,
-0.30533644556999207,
-0.39702343940734863,
-0.26680004596710205,
-0.4225232005119324,
-1.146467685699463,
0.059824924916028976,
-0.01779625564813614,
-0.8884893655776978,
0.3681248128414154,
-0.13315270841121674,
-0.39309096336364746,
0.29697954654693604,
-0.7985968589782715,
0.9783890247344971,
0.04232246056199074,
-0.13301227986812592,
0.006126546300947666,
-0.6643425822257996,
0.029151974245905876,
-0.03862195461988449,
0.5128269791603088,
-0.10587949305772781,
0.20622703433036804,
0.9580946564674377,
-0.3414168357849121,
0.9941284656524658,
0.03816072270274162,
-0.007084982469677925,
0.406573623418808,
0.14224141836166382,
0.5651364326477051,
0.08627475053071976,
-0.291185200214386,
0.674216091632843,
-0.11343132704496384,
-0.28434234857559204,
-0.20989978313446045,
0.5729588866233826,
-0.7198171615600586,
-0.15504933893680573,
-0.7555023431777954,
-0.4953235387802124,
-0.09804845601320267,
0.5119984149932861,
0.3275228440761566,
0.31341949105262756,
-0.5085833072662354,
0.12217749655246735,
0.5069895386695862,
-0.2847021520137787,
0.8485998511314392,
0.7857425808906555,
0.2162870317697525,
-0.992293655872345,
0.8233653903007507,
0.11518726497888565,
-0.20756161212921143,
0.7922853231430054,
-0.06921675056219101,
-0.24950498342514038,
-0.4305999279022217,
-0.38313695788383484,
0.45026063919067383,
-0.698306143283844,
-0.33802148699760437,
-0.8268978595733643,
-0.3091030418872833,
-0.5784481763839722,
-0.17147010564804077,
-0.16786617040634155,
-0.6732062101364136,
-0.6502640843391418,
-0.09745333343744278,
0.42769360542297363,
0.388232946395874,
-0.21244850754737854,
0.2110748440027237,
-0.8299049735069275,
-0.2515082359313965,
-0.10651273280382156,
0.4708406329154968,
-0.17786531150341034,
-0.5645361542701721,
-0.6826121807098389,
-0.17643557488918304,
-0.4340868890285492,
-0.6298090815544128,
0.6114833950996399,
0.33105897903442383,
0.7231444716453552,
0.0987568274140358,
-0.12708725035190582,
0.6656345129013062,
-0.6500204205513,
0.9219436049461365,
0.4404197335243225,
-1.0717518329620361,
0.45978063344955444,
-0.18102902173995972,
0.4081244468688965,
0.8226149678230286,
0.17765691876411438,
-0.8306944370269775,
-0.3047548234462738,
-0.8141635656356812,
-0.9800978302955627,
0.8254477977752686,
0.3670006990432739,
-0.15242817997932434,
-0.2051212638616562,
0.11422394216060638,
0.11871480941772461,
0.17643532156944275,
-0.7209441661834717,
-0.4763753116130829,
0.1600027084350586,
-0.6570830941200256,
-0.2486783266067505,
-0.386015921831131,
0.08781947940587997,
-0.5533979535102844,
0.7897653579711914,
-0.1883208155632019,
0.5027113556861877,
0.2830132842063904,
-0.34970539808273315,
0.11692822724580765,
0.3823322355747223,
0.9784964919090271,
0.6019163131713867,
-0.05164606124162674,
0.02401895821094513,
0.18425734341144562,
-0.7208002805709839,
-0.04797704145312309,
0.5165903568267822,
-0.06690599769353867,
0.18126033246517181,
0.7205819487571716,
0.7898011207580566,
0.2427516132593155,
-0.502348780632019,
0.4984169900417328,
0.07699023932218552,
-0.472531259059906,
-0.7569393515586853,
-0.3398183286190033,
-0.09690748155117035,
0.22351177036762238,
0.38736075162887573,
0.250141441822052,
0.01289683673530817,
-0.06793422251939774,
0.15545977652072906,
0.05971473455429077,
-0.4652397930622101,
-0.6230618357658386,
0.46122482419013977,
0.1666802018880844,
-0.20815449953079224,
0.6982578039169312,
-0.3628484606742859,
-0.8484669923782349,
0.7005853056907654,
0.33770227432250977,
1.048753023147583,
-0.30757609009742737,
-0.06977396458387375,
0.9118911027908325,
0.4622046649456024,
-0.14158301055431366,
0.64924156665802,
0.08109861612319946,
-0.7736963629722595,
-0.6084187626838684,
-0.8608183860778809,
-0.2463787943124771,
0.03432038053870201,
-0.429436057806015,
0.41750454902648926,
-0.34572461247444153,
-0.021136268973350525,
0.10091561079025269,
0.28960105776786804,
-0.9168931245803833,
0.13271798193454742,
0.2648184597492218,
0.9714585542678833,
-0.9430057406425476,
1.0312315225601196,
0.9794266819953918,
-0.804803729057312,
-0.7214363217353821,
-0.19791221618652344,
-0.15225660800933838,
-0.7015634775161743,
0.47459104657173157,
0.1614685356616974,
0.16410163044929504,
-0.02777859941124916,
-0.5525780916213989,
-1.0893619060516357,
1.0959092378616333,
0.3901532292366028,
-0.7524078488349915,
0.04925220459699631,
0.14888472855091095,
0.460980087518692,
-0.2483711987733841,
0.2937556505203247,
0.6008074283599854,
0.8387857675552368,
-0.11813552677631378,
-1.333070993423462,
0.007136393338441849,
-0.6747870445251465,
0.010698438622057438,
0.1620180606842041,
-0.7092363238334656,
0.9560978412628174,
-0.1536848098039627,
-0.2849108576774597,
0.2685142159461975,
0.7593202590942383,
0.39996132254600525,
0.2220865786075592,
0.25242531299591064,
0.8715947270393372,
0.9014034867286682,
-0.3103073835372925,
0.9145026206970215,
-0.48302775621414185,
0.3785950839519501,
1.0900450944900513,
0.00846042949706316,
0.8250284790992737,
0.47617512941360474,
-0.5278192758560181,
1.0672639608383179,
0.7193184494972229,
-0.26833483576774597,
0.43609941005706787,
-0.09748314321041107,
0.1142951026558876,
-0.3402908742427826,
0.07075627148151398,
-0.42401933670043945,
0.2502697706222534,
0.39812955260276794,
-0.6333761215209961,
0.1747327744960785,
-0.10127583891153336,
0.3662510812282562,
0.24090421199798584,
0.04352438077330589,
0.7803249359130859,
0.18033994734287262,
-0.5986343026161194,
0.758597731590271,
0.20967113971710205,
0.6942111849784851,
-0.39833277463912964,
-0.11744949221611023,
-0.2883983850479126,
0.3259415924549103,
-0.07277625799179077,
-0.8572537899017334,
0.08664753288030624,
-0.15670907497406006,
-0.7093145847320557,
-0.1044212207198143,
0.6078736186027527,
-0.5399479866027832,
-0.976429283618927,
0.3420553207397461,
0.6041960120201111,
0.12024896591901779,
-0.10772518813610077,
-0.8457423448562622,
0.1350063532590866,
0.2028050571680069,
-0.3559409976005554,
-0.0017548413015902042,
0.6587332487106323,
-0.2543060779571533,
0.4607928693294525,
0.6695346832275391,
-0.08024892210960388,
0.031887903809547424,
0.14669622480869293,
0.7105906009674072,
-0.9073574542999268,
-0.7566102147102356,
-1.0261296033859253,
0.8007100224494934,
-0.2768314778804779,
-0.4525870680809021,
0.7662459015846252,
0.9735257029533386,
1.0306212902069092,
-0.0894710049033165,
1.0131982564926147,
-0.19481346011161804,
0.6794195175170898,
-0.5393760204315186,
0.6109519600868225,
-0.42430439591407776,
0.03381757065653801,
-0.38155022263526917,
-0.9725332856178284,
-0.729444146156311,
0.5082669854164124,
-0.33951449394226074,
0.047230008989572525,
1.2696712017059326,
0.6121560335159302,
0.039974965155124664,
-0.28384846448898315,
0.21004034578800201,
0.3108712434768677,
0.030373310670256615,
0.7073314189910889,
0.3313004970550537,
-0.5892331600189209,
0.7480315566062927,
-0.4480290412902832,
0.00345076946541667,
-0.2869304120540619,
-0.8736767172813416,
-0.8563187718391418,
-0.9392949938774109,
-0.6833311319351196,
-0.35006627440452576,
-0.13184519112110138,
0.7889243960380554,
0.484142929315567,
-1.276049017906189,
-0.37010928988456726,
-0.04437550529837608,
0.24382363259792328,
-0.4267614781856537,
-0.23529639840126038,
0.7552884221076965,
-0.3265538513660431,
-0.9026797413825989,
0.4824652671813965,
0.08373658359050751,
0.17156867682933807,
0.12417848408222198,
-0.2729489207267761,
-0.6118218302726746,
-0.16115278005599976,
0.5266554355621338,
0.528093695640564,
-0.8290218710899353,
0.013385044410824776,
0.2272581309080124,
-0.29774001240730286,
0.30460652709007263,
0.5875128507614136,
-0.6357112526893616,
0.25730329751968384,
0.5664267539978027,
0.31668296456336975,
0.40458106994628906,
-0.2691667079925537,
0.6122596859931946,
-0.9991042613983154,
0.36223089694976807,
0.24436397850513458,
0.6072835326194763,
0.5765461921691895,
-0.25638097524642944,
0.8110275268554688,
0.5999257564544678,
-0.5340732932090759,
-0.7141903638839722,
0.029640549793839455,
-1.0379971265792847,
-0.2105727195739746,
1.273445725440979,
-0.19702982902526855,
-0.18187974393367767,
-0.0510442778468132,
-0.061577606946229935,
0.4499168395996094,
-0.6649575233459473,
0.47931575775146484,
0.8588159084320068,
0.29881221055984497,
-0.20370368659496307,
-0.32264333963394165,
0.5452564358711243,
0.47096189856529236,
-0.7639166712760925,
0.032729584723711014,
0.5695827007293701,
0.2969362735748291,
0.4892464578151703,
0.5673956274986267,
-0.26341569423675537,
0.19090494513511658,
-0.27800649404525757,
0.7879005670547485,
-0.26618677377700806,
-0.25918588042259216,
-0.4657461941242218,
0.07099350541830063,
-0.10672111809253693,
-0.06728451699018478
] |
timm/eva02_enormous_patch14_plus_clip_224.laion2b_s9b_b144k
|
timm
| 2023-04-11T01:04:03Z | 9,252 | 5 |
open_clip
|
[
"open_clip",
"zero-shot-image-classification",
"clip",
"license:mit",
"has_space",
"region:us"
] |
zero-shot-image-classification
| 2023-04-11T00:29:55Z |
---
tags:
- zero-shot-image-classification
- clip
library_tag: open_clip
license: mit
---
# Model card for eva02_enormous_patch14_plus_clip_224.laion2b_s9b_b144k
|
[
-0.3735595941543579,
-0.09278655797243118,
0.428259015083313,
0.7236159443855286,
-0.5178572535514832,
0.23905736207962036,
0.5555509924888611,
0.1567777693271637,
0.8779175281524658,
0.9327831864356995,
-0.6172690987586975,
-0.2127603143453598,
-0.4300498962402344,
-0.1725534051656723,
-0.3892958164215088,
0.43946412205696106,
-0.06873633712530136,
0.21403467655181885,
0.017275817692279816,
-0.12596876919269562,
-0.6399593353271484,
-0.739844799041748,
-0.8999074697494507,
-0.18301373720169067,
0.25717851519584656,
0.6303714513778687,
0.49401479959487915,
0.6746869683265686,
0.7279331684112549,
0.44354793429374695,
-0.37914571166038513,
0.13760995864868164,
-0.2796879708766937,
-0.3746790587902069,
0.09845602512359619,
-0.7510765194892883,
-1.586971640586853,
-0.13287174701690674,
0.9565694332122803,
-0.22948038578033447,
-0.3330181837081909,
0.49488818645477295,
-0.17009417712688446,
0.042559169232845306,
-0.5558432936668396,
-0.026075374335050583,
-0.5215502977371216,
-0.028931178152561188,
-0.3329591751098633,
-0.22122037410736084,
-0.2827763557434082,
0.11943743377923965,
-0.536143958568573,
-0.8967058062553406,
0.015095995739102364,
0.0390021950006485,
1.2798088788986206,
0.2729933261871338,
-0.25354546308517456,
0.14460180699825287,
-0.7802159786224365,
0.7747820019721985,
-0.5792612433433533,
0.5328349471092224,
0.41653066873550415,
0.11611895263195038,
-0.1762353926897049,
-0.8444111347198486,
0.0024056092370301485,
0.11241073161363602,
0.04562091454863548,
0.15590256452560425,
-0.3553522229194641,
0.05938328430056572,
0.9322335720062256,
0.2355668544769287,
-0.29713305830955505,
0.1499999612569809,
-0.9479315876960754,
-0.15522800385951996,
0.7095575332641602,
0.4689396917819977,
0.34742456674575806,
-0.538845419883728,
-0.9633608460426331,
0.004414381459355354,
-0.7168626189231873,
-0.3820539116859436,
0.8278964757919312,
-0.6446763873100281,
-0.6613858938217163,
0.3960879147052765,
0.15071357786655426,
0.32667383551597595,
-0.057479530572891235,
0.30358272790908813,
0.03957222402095795,
-0.18402588367462158,
-0.47907257080078125,
-0.15317381918430328,
0.1318233609199524,
0.7048364281654358,
-0.4319693148136139,
0.8428955078125,
-0.24898546934127808,
-0.36404386162757874,
0.2617475688457489,
-1.0907118320465088,
-0.46258974075317383,
-0.12692119181156158,
-0.6497604846954346,
-0.5740505456924438,
0.7452570796012878,
-1.1052374839782715,
0.07832784205675125,
-0.041332799941301346,
0.5475389957427979,
0.09797115623950958,
-0.4662594199180603,
-0.0719529390335083,
-0.5468137264251709,
0.06981054693460464,
0.20240722596645355,
-0.4963352382183075,
0.3466748595237732,
0.921398401260376,
0.7132443785667419,
0.47009438276290894,
0.012564724311232567,
-0.31853848695755005,
0.4095447063446045,
-0.8258197903633118,
0.8264761567115784,
-0.6567409634590149,
-0.6099958419799805,
0.18228015303611755,
0.7649035453796387,
-0.0434190072119236,
-0.5688633918762207,
0.8775090575218201,
-0.4420415163040161,
-0.2658703029155731,
-0.4884091019630432,
-0.493907630443573,
-0.1703626960515976,
0.099489726126194,
-1.0585296154022217,
1.3594186305999756,
0.19758939743041992,
-0.5008878111839294,
0.0444675087928772,
-0.596332311630249,
0.22857148945331573,
0.5522146821022034,
0.22776231169700623,
-0.29390907287597656,
0.1829884648323059,
-0.3851590156555176,
0.168808713555336,
0.11522669345140457,
-0.017037954181432724,
-0.41340914368629456,
-0.6067667603492737,
-0.05784120038151741,
-0.38323697447776794,
0.8522059321403503,
0.30224716663360596,
0.2974473237991333,
0.15299153327941895,
-0.7239034175872803,
0.06800425052642822,
0.2915210723876953,
0.04483562707901001,
-0.3830147981643677,
-0.6129802465438843,
0.24593448638916016,
0.18936368823051453,
0.13547512888908386,
-0.5381365418434143,
0.26056548953056335,
0.3096448481082916,
0.5402466058731079,
1.0927817821502686,
0.11627080291509628,
0.04577982798218727,
-0.45531776547431946,
0.9641249775886536,
-0.5647660493850708,
0.5113017559051514,
0.017745502293109894,
-0.3950129449367523,
-0.9755905866622925,
-0.5700883865356445,
0.3201243281364441,
0.5226659178733826,
-0.19797366857528687,
0.8167108297348022,
0.2572464942932129,
-0.5678644180297852,
0.15481124818325043,
-0.09801269322633743,
0.27849891781806946,
0.034611284732818604,
0.25038036704063416,
-0.16823242604732513,
-0.9611022472381592,
-1.0762348175048828,
0.20509764552116394,
-0.25211232900619507,
-0.1639847308397293,
0.7581075429916382,
0.6900391578674316,
-0.6427316665649414,
-0.0022934204898774624,
-1.0192606449127197,
-0.5165922045707703,
-0.7595649361610413,
-0.28123554587364197,
0.12133264541625977,
0.33655282855033875,
0.8488062024116516,
-0.3300078809261322,
-0.3335975706577301,
-0.5498302578926086,
-0.3967451751232147,
-0.24538664519786835,
-0.10179898887872696,
-0.46596747636795044,
-0.16932161152362823,
0.787041187286377,
-0.6190469264984131,
0.6800501942634583,
0.660621166229248,
-0.8028965592384338,
-0.08650188893079758,
-0.7535896301269531,
0.29306310415267944,
-1.1595237255096436,
0.11370398849248886,
-0.01630362682044506,
-0.44833627343177795,
-0.5025706887245178,
-0.041520487517118454,
0.4784555733203888,
0.21316222846508026,
-0.6031548380851746,
0.8007261753082275,
-0.21596120297908783,
0.4425537884235382,
-0.33315974473953247,
-0.3274323046207428,
0.5256739854812622,
0.02393975853919983,
0.06572054326534271,
0.6336534023284912,
0.03736314922571182,
-0.19255518913269043,
0.7044821977615356,
0.6214538812637329,
0.1460532546043396,
0.4457932710647583,
-0.693264901638031,
-0.07857199758291245,
-0.4613346457481384,
0.5256405472755432,
-0.583143949508667,
-0.8490820527076721,
0.14311334490776062,
0.20416054129600525,
0.41763052344322205,
-0.3634047210216522,
-0.14502482116222382,
-0.9678665399551392,
-0.663853645324707,
0.9474915266036987,
0.5788525938987732,
-0.7699258923530579,
0.7759790420532227,
0.21738439798355103,
-0.06516718864440918,
-0.288495272397995,
-0.6205102801322937,
-0.18285150825977325,
-0.4159703254699707,
-0.313570499420166,
0.47081777453422546,
-0.18320637941360474,
-0.20318801701068878,
-0.34612131118774414,
-0.2618463337421417,
-0.4830985963344574,
-0.1051943227648735,
0.8190224766731262,
0.7076237797737122,
-0.2596616744995117,
-0.38570475578308105,
0.061379287391901016,
-0.6164649724960327,
0.1651354879140854,
0.5633289813995361,
0.6104332804679871,
0.10615991801023483,
0.02102905698120594,
-0.2858232855796814,
0.6000010371208191,
0.7022851705551147,
-0.2729310691356659,
0.5356569290161133,
0.5224595069885254,
-0.77386873960495,
-0.46878108382225037,
-0.7781897187232971,
-0.2851799726486206,
-0.48879438638687134,
0.7562345266342163,
-0.3966335952281952,
-0.06034071370959282,
0.5975958704948425,
-0.044606763869524,
-0.5372171998023987,
0.7854034900665283,
0.21599777042865753,
0.21913251280784607,
0.9458300471305847,
0.575946569442749,
0.2436598837375641,
0.6276311874389648,
-0.7758852243423462,
0.3544990122318268,
-1.129000186920166,
-0.4764065444469452,
-0.1389213651418686,
-0.25386157631874084,
0.26465559005737305,
-0.6527853608131409,
-0.036398690193891525,
0.743525505065918,
-0.12562185525894165,
0.7977524995803833,
-0.28389203548431396,
0.9572193026542664,
0.7985472083091736,
0.14038556814193726,
-0.09349317103624344,
-0.3502999544143677,
0.5570313334465027,
0.19047996401786804,
-0.5600256323814392,
-0.333682656288147,
1.41395103931427,
0.7232736945152283,
0.7523050904273987,
0.04862099885940552,
0.6051846146583557,
0.3509460687637329,
0.10744817554950714,
-0.05583900585770607,
0.6511566638946533,
-0.37748515605926514,
-0.8830863237380981,
0.21568290889263153,
0.25174465775489807,
-0.5413421988487244,
-0.282345712184906,
-0.03078797087073326,
-0.5442023873329163,
0.24221710860729218,
0.47791340947151184,
-0.6122434139251709,
0.6633122563362122,
-0.7895976901054382,
1.093091368675232,
-0.2804694175720215,
0.09283934533596039,
-0.5372092723846436,
-0.002379271201789379,
0.5935098528862,
0.061591632664203644,
-0.09419626742601395,
-0.25064802169799805,
-0.021535605192184448,
1.1522618532180786,
-0.7514516711235046,
0.02776012197136879,
-0.10786407440900803,
0.13716824352741241,
0.6433668732643127,
-0.09781642258167267,
0.9002184867858887,
0.8829575777053833,
0.2178531140089035,
0.16456778347492218,
0.35551148653030396,
-0.4377394914627075,
-0.3233218789100647,
0.8804752230644226,
-0.5238831043243408,
-0.18150363862514496,
-0.34530454874038696,
0.09106723964214325,
0.46532389521598816,
-0.5137009620666504,
0.9623742699623108,
0.9876600503921509,
0.05838696286082268,
0.36271044611930847,
0.585142970085144,
-0.05253947898745537,
0.5512857437133789,
0.4932436943054199,
-0.3548145294189453,
-0.7876796126365662,
0.9337466359138489,
0.03772209957242012,
0.23129552602767944,
0.06848908215761185,
0.27459776401519775,
-0.019870979711413383,
0.21899953484535217,
-0.40938252210617065,
0.21385608613491058,
-0.2497425675392151,
-0.850105345249176,
-0.5265063047409058,
-0.6795496940612793,
-0.02215646021068096,
-0.35061681270599365,
-0.7378206253051758,
-0.24943514168262482,
-0.37177374958992004,
-0.47668352723121643,
0.708469808101654,
0.9037711024284363,
-0.717056155204773,
0.9110382795333862,
-0.7781497240066528,
0.39924800395965576,
0.4182390868663788,
0.675180971622467,
-0.11468520015478134,
-0.939522385597229,
0.153753399848938,
-0.24488171935081482,
-0.6560474634170532,
-0.9086620211601257,
0.22984498739242554,
-0.02830659970641136,
0.47872495651245117,
0.6309430003166199,
-0.24258607625961304,
0.74710613489151,
-0.529810905456543,
1.216018557548523,
0.37095001339912415,
-0.9491865634918213,
0.35433173179626465,
-0.28948095440864563,
-0.17136576771736145,
0.09011448919773102,
0.2432957887649536,
-0.71360844373703,
0.18741366267204285,
-1.4494640827178955,
-0.8817952275276184,
0.6670104265213013,
-0.05537987872958183,
0.34635594487190247,
0.04449983313679695,
0.335662841796875,
0.044713448733091354,
-0.17132468521595,
-0.3510936498641968,
-0.7448767423629761,
-0.23534944653511047,
-0.12426076084375381,
0.5093392729759216,
-1.1839282512664795,
-0.10801862180233002,
-0.45383980870246887,
0.9790099263191223,
0.25835055112838745,
0.7605895400047302,
-0.04344611242413521,
0.16179248690605164,
-0.1933964639902115,
0.011956511065363884,
1.1551637649536133,
0.32722008228302,
-0.7414065003395081,
0.04310862347483635,
0.16623656451702118,
-0.6246971487998962,
-0.08400075882673264,
0.4022483825683594,
-0.1370478868484497,
0.24535788595676422,
0.5736794471740723,
1.0459200143814087,
0.26912128925323486,
-0.3054247200489044,
1.0203847885131836,
-0.05771441385149956,
-0.23006945848464966,
-0.4200066328048706,
-0.044511858373880386,
-0.23650211095809937,
0.2545967996120453,
-0.05761200934648514,
0.285765677690506,
0.27351468801498413,
-0.34199008345603943,
0.345043808221817,
0.7866057753562927,
-0.7859546542167664,
-0.5333657264709473,
0.7162497043609619,
0.4645223319530487,
-1.2271560430526733,
0.5309022068977356,
-0.020148538053035736,
-0.6766762733459473,
1.2203491926193237,
0.7499721646308899,
0.9666346907615662,
-0.7260717749595642,
0.2366388738155365,
0.706887423992157,
0.17306947708129883,
-0.39076945185661316,
0.6968627572059631,
0.20582380890846252,
-0.32152029871940613,
-0.023680537939071655,
-0.2910974621772766,
-0.220230832695961,
0.4010058045387268,
-1.3153209686279297,
0.7715159058570862,
-0.6195027828216553,
-0.19255930185317993,
-0.3427148759365082,
-0.17950569093227386,
-0.7094958424568176,
0.18042168021202087,
0.47271326184272766,
1.6594600677490234,
-1.1201579570770264,
0.9552919864654541,
0.5200068950653076,
-0.09496349841356277,
-1.064679741859436,
-0.6487085819244385,
-0.18316158652305603,
-0.9972527027130127,
0.2210296243429184,
0.10687898099422455,
0.63243567943573,
-0.40955284237861633,
-0.5260237455368042,
-1.2590309381484985,
1.0315587520599365,
0.13554508984088898,
-0.6060630083084106,
0.21474552154541016,
-0.5143144130706787,
0.09755947440862656,
-0.43059203028678894,
0.7635526061058044,
0.530131459236145,
0.5879175662994385,
0.23541094362735748,
-0.7642862796783447,
-0.3494834303855896,
-0.29145100712776184,
-0.10650433599948883,
0.554083526134491,
-1.4399837255477905,
0.5833603143692017,
0.1104293242096901,
0.5639304518699646,
0.7594108581542969,
0.27144044637680054,
0.06475042551755905,
0.03540964052081108,
0.13561061024665833,
0.7524231672286987,
0.5153436064720154,
0.1555490493774414,
0.4408527612686157,
-0.2169427126646042,
0.5029355883598328,
1.1053475141525269,
-0.4145011007785797,
0.9379616975784302,
0.580371618270874,
-0.07422742247581482,
0.7669258713722229,
0.3934892416000366,
-0.7330523729324341,
0.19725069403648376,
-0.038470614701509476,
-0.09179577976465225,
-0.6492336392402649,
0.019873296841979027,
-1.008790135383606,
0.30918750166893005,
0.33496469259262085,
-0.9846592545509338,
-0.2178100049495697,
-0.2492053061723709,
0.19557657837867737,
-0.02991212159395218,
-0.6511663794517517,
0.4314729571342468,
0.03995244950056076,
-0.318979412317276,
-0.14527681469917297,
0.3214881420135498,
0.2285776436328888,
-1.0295013189315796,
-0.6455916166305542,
-0.250557541847229,
0.46852484345436096,
-0.2505336403846741,
-0.5470475554466248,
0.34004518389701843,
-0.25191646814346313,
-0.3630642294883728,
-0.221625417470932,
0.5016584396362305,
-0.37228184938430786,
-1.1787134408950806,
0.49169766902923584,
-0.4542083740234375,
0.030453559011220932,
0.026064442470669746,
-0.5857757925987244,
0.6781325340270996,
0.040121328085660934,
-0.06508726626634598,
0.2180296629667282,
0.03797721490263939,
-0.015505906194448471,
0.4211389422416687,
0.05504712462425232,
0.23712019622325897,
0.46758466958999634,
-0.535449206829071,
0.6013171672821045,
-0.5068224668502808,
-0.5857688784599304,
-0.7548431158065796,
0.5574914813041687,
-0.5487000942230225,
-0.8796035051345825,
0.7605962753295898,
1.1881818771362305,
0.22183120250701904,
-0.33874911069869995,
0.22380594909191132,
0.15219855308532715,
0.3465616703033447,
-0.11293044686317444,
0.4868677258491516,
-0.5161461234092712,
0.1432437300682068,
-0.11554558575153351,
-1.135077953338623,
-0.2007146030664444,
0.7471242547035217,
0.37927865982055664,
-0.48471328616142273,
0.7412678003311157,
0.8699450492858887,
-0.17345578968524933,
0.3005324900150299,
0.45286351442337036,
0.28344401717185974,
0.22496119141578674,
0.42673444747924805,
0.5169094800949097,
-0.9707384705543518,
0.21111607551574707,
-0.19434621930122375,
-0.6089850068092346,
-0.48894742131233215,
-0.8737318515777588,
-1.0193989276885986,
-0.14069192111492157,
-0.4315759241580963,
-0.6421010494232178,
-0.31113022565841675,
1.1623620986938477,
1.235153317451477,
-0.8006854057312012,
-0.07267291843891144,
0.13720493018627167,
0.333042174577713,
0.23571895062923431,
-0.1884218156337738,
0.5546101331710815,
0.47881072759628296,
-0.19527436792850494,
0.18813391029834747,
0.2743459939956665,
0.37975168228149414,
0.2732592821121216,
-0.3054220974445343,
0.45351988077163696,
0.6285414099693298,
0.3397541344165802,
0.42538562417030334,
-0.7189868688583374,
-0.5921587347984314,
-0.16526326537132263,
0.45184263586997986,
0.06376811861991882,
0.8473626375198364,
-0.40733274817466736,
-0.4591794013977051,
0.38600388169288635,
0.04929574206471443,
0.39504191279411316,
0.3180147707462311,
0.6101852059364319,
-0.6494553089141846,
0.671059250831604,
-0.216075137257576,
0.5866435766220093,
-0.5126252770423889,
-0.13964900374412537,
0.5104606747627258,
0.35751909017562866,
-0.6049190163612366,
-1.403975248336792,
-0.05235198140144348,
-1.3763011693954468,
0.0680762529373169,
1.6069525480270386,
0.02829286828637123,
-0.3042251169681549,
0.37179455161094666,
-0.8998162150382996,
-0.5494402050971985,
-0.4045828580856323,
0.11730020493268967,
0.4957464933395386,
0.21893078088760376,
-0.33537954092025757,
-0.45477044582366943,
0.4674685597419739,
-0.06877423822879791,
-0.7587466239929199,
-0.295421838760376,
-0.19730275869369507,
0.2592858672142029,
0.20259331166744232,
0.2706598937511444,
0.11101096123456955,
0.45695459842681885,
0.37629395723342896,
0.2587212026119232,
-0.12072756886482239,
-0.6893202066421509,
-0.2987956702709198,
-0.05551193654537201,
-0.1506897360086441,
-0.43573448061943054
] |
laion/CoCa-ViT-L-14-laion2B-s13B-b90k
|
laion
| 2023-02-01T05:15:15Z | 9,245 | 16 |
open_clip
|
[
"open_clip",
"license:mit",
"has_space",
"region:us"
] | null | 2023-02-01T02:14:37Z |
---
license: mit
---
|
[
-0.12853388488292694,
-0.18616782128810883,
0.6529127359390259,
0.4943625330924988,
-0.19319313764572144,
0.23607465624809265,
0.36071982979774475,
0.05056332051753998,
0.5793652534484863,
0.740013837814331,
-0.6508103013038635,
-0.2378396987915039,
-0.710224986076355,
-0.04782581701874733,
-0.3894752264022827,
0.8470761775970459,
-0.09598272293806076,
0.024004854261875153,
0.047120071947574615,
-0.14317826926708221,
-0.6121037602424622,
-0.04771740734577179,
-1.0524537563323975,
-0.06787490844726562,
0.3002279996871948,
0.5120972990989685,
0.8275896310806274,
0.39602896571159363,
0.5030564069747925,
1.7515558004379272,
-0.08836919069290161,
-0.22754427790641785,
-0.45892032980918884,
0.4223068356513977,
-0.33277371525764465,
-0.42133718729019165,
-0.2624166011810303,
-0.07449338585138321,
0.32380399107933044,
0.790371298789978,
-0.38104110956192017,
0.19328099489212036,
-0.22438454627990723,
1.008224368095398,
-0.8202074766159058,
0.22630876302719116,
-0.16698351502418518,
0.14053204655647278,
0.042308706790208817,
-0.14591927826404572,
-0.1326323002576828,
-0.6440033912658691,
0.06469469517469406,
-0.899596095085144,
0.1027495265007019,
-0.04461126774549484,
0.8789561986923218,
0.21909058094024658,
-0.5102370977401733,
-0.0459773913025856,
-0.6883594989776611,
1.0972508192062378,
-0.17556026577949524,
0.7615712881088257,
0.4507811963558197,
0.45288562774658203,
-0.5849329829216003,
-1.178217887878418,
-0.4441864490509033,
-0.13579002022743225,
0.14722809195518494,
0.30556100606918335,
-0.3453029692173004,
-0.022343844175338745,
0.10801105946302414,
0.5610314011573792,
-0.5003758072853088,
-0.311959445476532,
-0.9579929113388062,
-0.18164916336536407,
0.6820483207702637,
0.319308340549469,
0.834044337272644,
0.1873151659965515,
-0.7347195744514465,
0.12866291403770447,
-1.3239703178405762,
0.07650735974311829,
0.6465023756027222,
0.239467591047287,
-0.554598867893219,
0.8594784736633301,
-0.28587982058525085,
0.626249372959137,
0.2728465497493744,
-0.1164526641368866,
0.2784252464771271,
-0.23030735552310944,
-0.2735062837600708,
0.033087607473134995,
0.34597301483154297,
0.8204491138458252,
0.16248634457588196,
-0.019984982907772064,
-0.22123965620994568,
0.0020717978477478027,
0.2684449553489685,
-0.7935096025466919,
-0.4712669551372528,
0.1926696002483368,
-0.558952808380127,
-0.0910850465297699,
0.4327022135257721,
-1.0976827144622803,
-0.4812980592250824,
-0.1879846155643463,
0.05468139797449112,
-0.5451693534851074,
-0.3697946071624756,
0.07273250073194504,
-0.79254150390625,
-0.1243419200181961,
0.570950984954834,
-0.6230252981185913,
0.43974608182907104,
0.533625602722168,
0.7861635684967041,
0.2330387681722641,
-0.23613610863685608,
-0.6695019602775574,
0.48848265409469604,
-0.8661867380142212,
0.36860740184783936,
-0.3073781132698059,
-0.8298640251159668,
-0.09631050378084183,
0.5393159985542297,
0.20664852857589722,
-0.6653256416320801,
0.7074045538902283,
-0.5496984720230103,
-0.07806532829999924,
-0.4308285415172577,
-0.2432200014591217,
0.17460417747497559,
0.11115431040525436,
-0.6238909363746643,
0.9402233362197876,
0.5551108121871948,
-0.584109902381897,
0.31701239943504333,
-0.4869506359100342,
-0.6865583658218384,
0.26748135685920715,
-0.008750975131988525,
-0.047152332961559296,
0.3279528021812439,
-0.15983973443508148,
-0.0020511597394943237,
0.10505761206150055,
0.008299741894006729,
-0.21891699731349945,
-0.4786304235458374,
0.06349936127662659,
0.151650071144104,
1.25368332862854,
0.4083622097969055,
-0.3771882951259613,
-0.13140122592449188,
-1.0526149272918701,
0.025432661175727844,
0.0505015105009079,
-0.42306768894195557,
-0.2504565119743347,
-0.14882194995880127,
-0.20381587743759155,
0.4307260811328888,
0.2118472456932068,
-0.813115119934082,
0.22643625736236572,
-0.2064024657011032,
0.364496648311615,
0.8222091794013977,
0.2703101634979248,
0.39760565757751465,
-0.6625286340713501,
0.6563138365745544,
0.2076188325881958,
0.49590179324150085,
0.35404202342033386,
-0.3845822811126709,
-0.9641586542129517,
-0.442161500453949,
-0.10117404907941818,
0.2975531220436096,
-0.7744957804679871,
0.5847322940826416,
0.012979604303836823,
-0.5836705565452576,
-0.4465281367301941,
-0.15488101541996002,
0.2755330502986908,
-0.06606576591730118,
0.03334902226924896,
-0.4049779176712036,
-0.7394417524337769,
-1.0127898454666138,
-0.13788150250911713,
-0.5021388530731201,
-0.21892830729484558,
0.3160586357116699,
0.2617739737033844,
-0.34290042519569397,
0.7610747814178467,
-0.6059278249740601,
-0.704064130783081,
-0.13973554968833923,
-0.0995984673500061,
0.6187719702720642,
0.9297672510147095,
0.749138355255127,
-0.7224893569946289,
-0.8973818421363831,
-0.056230708956718445,
-0.5420039892196655,
-0.020044349133968353,
0.038149889558553696,
-0.18260693550109863,
-0.10514980554580688,
0.22352531552314758,
-0.6100803017616272,
0.8851073980331421,
0.43224984407424927,
-0.681546688079834,
0.5210590958595276,
-0.4444413483142853,
0.6073803901672363,
-0.8642839193344116,
-0.2911490201950073,
-0.16823577880859375,
-0.1976117193698883,
-0.7090160846710205,
0.19411544501781464,
-0.3002234101295471,
-0.33029863238334656,
-0.7474032044410706,
0.5274897813796997,
-0.9497010707855225,
-0.18781527876853943,
-0.33672773838043213,
-0.03423111140727997,
0.25807833671569824,
0.19490505754947662,
-0.23560254275798798,
0.8900529742240906,
0.9160482287406921,
-0.7121306657791138,
0.5487277507781982,
0.3930906653404236,
-0.1920013427734375,
0.7131237387657166,
-0.3887738585472107,
0.05161993205547333,
-0.12344931066036224,
0.14374595880508423,
-1.126388430595398,
-0.561158299446106,
0.13677382469177246,
-0.712703287601471,
0.17686958611011505,
-0.16556859016418457,
-0.09428537636995316,
-0.6608465313911438,
-0.33806395530700684,
0.25910091400146484,
0.48612290620803833,
-0.47969940304756165,
0.6188148260116577,
0.5728040337562561,
0.02651876211166382,
-0.5307406783103943,
-0.7206818461418152,
0.20418110489845276,
0.039646461606025696,
-0.5569695830345154,
0.3011690080165863,
0.006543457508087158,
-0.6622446775436401,
-0.371124804019928,
-0.26354190707206726,
-0.6043857336044312,
-0.2267974615097046,
0.7826986312866211,
0.1199423298239708,
-0.09012264013290405,
-0.20310267806053162,
-0.3199536204338074,
-0.06167525798082352,
0.30487415194511414,
-0.07575298100709915,
0.7232834696769714,
-0.33623749017715454,
-0.17850083112716675,
-0.887734055519104,
0.652754545211792,
0.9970465302467346,
0.09446714073419571,
0.806644082069397,
0.46324217319488525,
-0.35647475719451904,
-0.1304660439491272,
-0.3535459041595459,
-0.15120601654052734,
-0.685774564743042,
-0.1806798279285431,
-0.5322476625442505,
-0.5411434769630432,
0.40530654788017273,
0.10101459175348282,
-0.0021042972803115845,
0.5167046785354614,
0.2533605694770813,
-0.28806859254837036,
0.7550324201583862,
1.034340739250183,
0.1391797959804535,
0.3602915108203888,
-0.2854715585708618,
0.6341594457626343,
-0.8329949378967285,
-0.34052175283432007,
-0.4548071026802063,
-0.2563585042953491,
-0.31214389204978943,
-0.10750849545001984,
0.5791022181510925,
0.2818215489387512,
-0.4463467597961426,
0.1250680536031723,
-0.5994209051132202,
0.6587361693382263,
0.6273988485336304,
0.5719727873802185,
0.1997303068637848,
-0.46199458837509155,
0.19982971251010895,
0.04816687852144241,
-0.45745599269866943,
-0.4009109139442444,
0.7711143493652344,
0.2399624139070511,
0.8364022374153137,
0.20927050709724426,
0.4957774877548218,
0.33375421166419983,
0.2528058588504791,
-0.6318977475166321,
0.2009797990322113,
-0.22282809019088745,
-1.245961308479309,
-0.206426739692688,
-0.16551318764686584,
-1.0080583095550537,
-0.11792082339525223,
-0.18288995325565338,
-0.8406620025634766,
0.2665729820728302,
-0.19225634634494781,
-0.6640645265579224,
0.5206149220466614,
-0.5103875398635864,
0.69347083568573,
-0.23555898666381836,
-0.2817087769508362,
0.11930079013109207,
-0.6889920830726624,
0.5254612565040588,
0.3667147755622864,
0.29168397188186646,
-0.37968993186950684,
-0.3192872405052185,
0.5068994760513306,
-0.881224513053894,
0.44081127643585205,
-0.10564978420734406,
0.19428130984306335,
0.5358879566192627,
0.4153591990470886,
0.3823971152305603,
0.28699052333831787,
-0.2459377944469452,
-0.23415414988994598,
0.2250344604253769,
-0.7581346035003662,
-0.27754613757133484,
0.9095459580421448,
-0.7519428730010986,
-0.8586915731430054,
-0.6954255700111389,
-0.30644941329956055,
0.28865277767181396,
0.02781464159488678,
0.7154772281646729,
0.6456884145736694,
-0.18821057677268982,
0.23776991665363312,
0.7208225727081299,
-0.0146945184096694,
0.7235562801361084,
0.29411184787750244,
-0.4056646227836609,
-0.6169787645339966,
0.7182320356369019,
0.2627044916152954,
0.05162655562162399,
0.028327951207756996,
0.3058736026287079,
-0.17546698451042175,
-0.15078596770763397,
-0.6318323612213135,
-0.06395323574542999,
-0.7465729117393494,
-0.0927949845790863,
-0.7541396617889404,
-0.2507742643356323,
-0.7114590406417847,
-0.8068137764930725,
-0.7080163955688477,
-0.45604395866394043,
-0.43011948466300964,
-0.23352204263210297,
0.5163108706474304,
1.1627086400985718,
-0.2613152861595154,
0.8011051416397095,
-0.8900954723358154,
0.41936296224594116,
0.4969540238380432,
0.7519731521606445,
-0.11061006784439087,
-0.6746935844421387,
-0.07836239039897919,
-0.5338755249977112,
-0.29485058784484863,
-1.0156972408294678,
0.31774646043777466,
-0.03688591718673706,
0.40537136793136597,
0.42938894033432007,
0.25190269947052,
0.49392756819725037,
-0.30073118209838867,
1.1130688190460205,
0.7274302244186401,
-0.803381085395813,
0.519527792930603,
-0.7635002136230469,
0.16122324764728546,
0.9363659620285034,
0.54477459192276,
-0.4417075514793396,
-0.15113934874534607,
-1.025976538658142,
-0.843137264251709,
0.5963036417961121,
0.15439945459365845,
0.016843896359205246,
0.01821417547762394,
0.03168272227048874,
0.29466384649276733,
0.3591304123401642,
-0.7847291231155396,
-0.8240220546722412,
-0.13851122558116913,
0.25803306698799133,
0.31456053256988525,
-0.1648542582988739,
-0.3003871440887451,
-0.611615777015686,
0.8711391091346741,
0.18286482989788055,
0.3546231985092163,
0.12073354423046112,
0.04369349032640457,
-0.35506919026374817,
0.14787021279335022,
0.5522999167442322,
1.2529057264328003,
-0.40983331203460693,
0.3673911392688751,
0.1751260608434677,
-0.6540069580078125,
0.6494997143745422,
-0.3036349415779114,
-0.021784601733088493,
0.6203135251998901,
0.17760884761810303,
0.28528398275375366,
0.315599262714386,
-0.3621427118778229,
0.6047801971435547,
-0.029422052204608917,
-0.17758512496948242,
-0.7005696296691895,
0.15866968035697937,
0.029350608587265015,
0.27507954835891724,
0.4392024278640747,
0.24443313479423523,
0.08246771991252899,
-1.0602877140045166,
0.5711055397987366,
0.24493910372257233,
-0.8676618337631226,
-0.3011006712913513,
0.7047957181930542,
0.4075389802455902,
-0.47599563002586365,
0.38749054074287415,
0.012702330946922302,
-0.6710241436958313,
0.5987741351127625,
0.5510413646697998,
0.7569674253463745,
-0.4702427089214325,
0.3088020086288452,
0.6245602965354919,
0.06711331009864807,
0.20550549030303955,
0.6923202872276306,
0.03149382025003433,
-0.44738656282424927,
0.23022446036338806,
-0.5986733436584473,
-0.1468990594148636,
0.13735318183898926,
-0.8047426342964172,
0.351533442735672,
-0.9312615394592285,
-0.24089956283569336,
0.08751589059829712,
0.11761097609996796,
-0.6130945086479187,
0.6674696207046509,
-0.008524954319000244,
0.9280490875244141,
-0.8549083471298218,
0.9626278281211853,
0.8559581637382507,
-0.31830817461013794,
-0.7709448337554932,
-0.33556753396987915,
0.02013934776186943,
-0.6660526990890503,
0.7108278274536133,
-0.18973003327846527,
-0.41207411885261536,
-0.09323947876691818,
-0.622982919216156,
-1.0003730058670044,
0.030618250370025635,
0.017415650188922882,
-0.4625031054019928,
0.4454794228076935,
-0.5157257318496704,
0.3289681673049927,
-0.19169732928276062,
0.30509495735168457,
0.7719469666481018,
0.7958452701568604,
0.22960808873176575,
-0.6354780197143555,
-0.4466685652732849,
-0.010276071727275848,
-0.16682815551757812,
0.4545809030532837,
-1.0710972547531128,
0.967736542224884,
-0.4652574360370636,
-0.34733209013938904,
0.2706642150878906,
0.797762393951416,
0.2538500428199768,
0.3524126708507538,
0.6219537258148193,
0.9016807079315186,
0.36450111865997314,
-0.31178343296051025,
0.7276745438575745,
0.2426338493824005,
0.4152539074420929,
0.7364203333854675,
-0.22712187469005585,
0.5403846502304077,
0.8906413316726685,
-0.786162257194519,
0.5381765365600586,
0.7879031896591187,
0.16047371923923492,
0.7758157253265381,
0.5944145917892456,
-0.611952543258667,
-0.1185941994190216,
-0.1464141309261322,
-0.6171560287475586,
0.1979752480983734,
0.052926212549209595,
-0.11974738538265228,
-0.2846010625362396,
-0.13567376136779785,
0.12295057624578476,
0.2836454212665558,
-0.5959328413009644,
0.606866717338562,
0.34341585636138916,
-0.6328282356262207,
0.21025103330612183,
-0.25779569149017334,
0.6709501147270203,
-0.5978154540061951,
0.02733636647462845,
-0.226993590593338,
0.41810402274131775,
-0.4618742763996124,
-1.007582426071167,
0.47138404846191406,
-0.2920241355895996,
-0.40551304817199707,
-0.26942431926727295,
0.8072363138198853,
-0.22133907675743103,
-0.5572860240936279,
0.37486034631729126,
0.13466592133045197,
0.41473662853240967,
0.40145981311798096,
-0.548729419708252,
0.047790080308914185,
0.13760165870189667,
-0.20061805844306946,
0.3601190149784088,
0.2973729372024536,
0.25488772988319397,
0.7100128531455994,
0.5052477717399597,
0.22198708355426788,
0.25694364309310913,
-0.18668605387210846,
0.8387458324432373,
-0.9102796316146851,
-0.8167635202407837,
-0.9497333765029907,
0.3849896192550659,
0.025727711617946625,
-0.880144476890564,
0.7920305728912354,
0.7652608156204224,
0.5113964080810547,
-0.4877890348434448,
0.4755283296108246,
-0.326479434967041,
0.5047136545181274,
-0.13870958983898163,
1.001089096069336,
-0.760762631893158,
-0.29587265849113464,
-0.030554059892892838,
-0.9216439723968506,
-0.2533753216266632,
0.5375741720199585,
0.1540832668542862,
-0.14608067274093628,
0.4385907053947449,
0.44216376543045044,
0.022173406556248665,
0.25223150849342346,
0.32861006259918213,
0.06042787432670593,
0.14508451521396637,
0.5510438680648804,
1.0931141376495361,
-0.43394410610198975,
0.18694786727428436,
-0.4923475384712219,
-0.4536249041557312,
-0.4153490662574768,
-0.9548057913780212,
-0.6640313863754272,
-0.48185449838638306,
-0.2973935008049011,
-0.5915579199790955,
0.11726461350917816,
0.9300885796546936,
0.9018137454986572,
-0.6256728172302246,
-0.41243645548820496,
0.25713539123535156,
0.30293411016464233,
-0.2295418381690979,
-0.146267831325531,
0.2736492455005646,
-0.006407544948160648,
-0.7211178541183472,
0.3930943012237549,
0.807976245880127,
0.3887130320072174,
0.08444006741046906,
-0.07217127084732056,
-0.4407080411911011,
0.026101574301719666,
0.5373561382293701,
0.5729561448097229,
-0.6281182169914246,
-0.4099644422531128,
-0.5328317880630493,
-0.21386730670928955,
0.15529435873031616,
0.48077550530433655,
-0.5166378617286682,
0.32661110162734985,
0.8128959536552429,
0.17017659544944763,
0.7187885642051697,
-0.0022492259740829468,
0.6678642630577087,
-0.8970246315002441,
0.4446259140968323,
0.3953385353088379,
0.5681870579719543,
0.08998038619756699,
-0.7339164614677429,
0.9820241928100586,
0.49674350023269653,
-0.6334057450294495,
-1.0034242868423462,
0.03079957515001297,
-1.193113923072815,
-0.3788175582885742,
0.9890843629837036,
-0.09595765173435211,
-0.9597458839416504,
-0.36448943614959717,
-0.3677716851234436,
0.07989637553691864,
-0.33809733390808105,
0.35498204827308655,
0.8268195986747742,
-0.2538071274757385,
-0.2204185128211975,
-0.9505581855773926,
0.4752943515777588,
0.3102525472640991,
-0.5886632204055786,
-0.05114369094371796,
0.329391211271286,
0.45236870646476746,
0.3009701371192932,
0.5239557027816772,
0.10428227484226227,
0.8970529437065125,
0.25200390815734863,
0.30491405725479126,
-0.04526621103286743,
-0.590078592300415,
-0.0160664189606905,
0.2621477246284485,
0.04487839341163635,
-0.6869441270828247
] |
togethercomputer/RedPajama-INCITE-7B-Base
|
togethercomputer
| 2023-06-06T02:44:34Z | 9,231 | 89 |
transformers
|
[
"transformers",
"pytorch",
"gpt_neox",
"text-generation",
"en",
"dataset:togethercomputer/RedPajama-Data-1T",
"license:apache-2.0",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-05-04T05:50:06Z |
---
license: apache-2.0
language:
- en
datasets:
- togethercomputer/RedPajama-Data-1T
---
# RedPajama-INCITE-7B-Base
RedPajama-INCITE-7B-Base 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.
The training was done on 3,072 V100 GPUs provided as part of the INCITE 2023 project on Scalable Foundation Models for Transferrable Generalist AI, awarded to MILA, LAION, and EleutherAI in fall 2022, with support from the Oak Ridge Leadership Computing Facility (OLCF) and INCITE program.
- 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.
## 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-Base")
model = AutoModelForCausalLM.from_pretrained("togethercomputer/RedPajama-INCITE-7B-Base", torch_dtype=torch.float16)
model = model.to('cuda:0')
# infer
prompt = "Alan Turing is"
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)
"""
widely considered to be the father of modern computer science and artificial intelligence. He was a brilliant mathematician and cryptographer, who worked for the British government during World War II. He was instrumental in breaking the German Enigma code, and is credited with helping to shorten the war by two years...
"""
```
## 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-Base")
model = AutoModelForCausalLM.from_pretrained("togethercomputer/RedPajama-INCITE-7B-Base", device_map='auto', torch_dtype=torch.float16, load_in_8bit=True)
# infer
prompt = "Alan Turing is"
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)
"""
a very well-known name in the world of computer science. It is named after the mathematician Alan Turing. He is famous for his work on the Enigma machine, which was used by the Germans during World War II....
"""```
## 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-Base")
model = AutoModelForCausalLM.from_pretrained("togethercomputer/RedPajama-INCITE-7B-Base", torch_dtype=torch.bfloat16)
# infer
prompt = "Alan Turing is"
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)
"""
one of the most important figures in the history of computing. He is best known for his work on the development of the modern computer and for his code-breaking work during World War II. He was also a brilliant mathematician and philosopher.
"""
```
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-Base` 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-Base` 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-Base`, 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:** 512 nodes of 6xV100 (IBM Power9), on the OLCF Summit cluster
- **Optimizer:** Apex FusedAdam
- **Parallelism:** Pipeline parallel 12, tensor parallel 2
- **Gradient Accumulations**: 8 (global batch size 4M tokens)
- **Num of Tokens:** 1.001T Tokens
- **Learning rate:** 0.00012
## Benchmark
Please refer to our [blog post](https://together.xyz) for benchmark results.
## Intermediate Checkpoints
We provide 11 intermediate checkpoints that have been released for study.
The checkpoints are organized based on the number of tokens they contain, ranging from 240 billion tokens to 1 trillion tokens.
- [240b_tokens](https://huggingface.co/togethercomputer/RedPajama-INCITE-7B-Base/tree/240b_tokens)
- [280b_tokens](https://huggingface.co/togethercomputer/RedPajama-INCITE-7B-Base/tree/280b_tokens)
- [400b_tokens](https://huggingface.co/togethercomputer/RedPajama-INCITE-7B-Base/tree/400b_tokens)
- [440b_tokens](https://huggingface.co/togethercomputer/RedPajama-INCITE-7B-Base/tree/440b_tokens)
- [500b_tokens](https://huggingface.co/togethercomputer/RedPajama-INCITE-7B-Base/tree/500b_tokens)
- [600b_tokens](https://huggingface.co/togethercomputer/RedPajama-INCITE-7B-Base/tree/600b_tokens)
- [700b_tokens](https://huggingface.co/togethercomputer/RedPajama-INCITE-7B-Base/tree/700b_tokens)
- [720b_tokens](https://huggingface.co/togethercomputer/RedPajama-INCITE-7B-Base/tree/720b_tokens)
- [960b_tokens](https://huggingface.co/togethercomputer/RedPajama-INCITE-7B-Base/tree/960b_tokens)
- [1t_tokens](https://huggingface.co/togethercomputer/RedPajama-INCITE-7B-Base/tree/1t_tokens)
- [latest](https://huggingface.co/togethercomputer/RedPajama-INCITE-7B-Base/tree/main)
## Community
Join us on [Together Discord](https://discord.gg/6ZVDU8tTD4)
|
[
-0.44792690873146057,
-0.9150760173797607,
0.27403128147125244,
0.2924630045890808,
-0.026212390512228012,
-0.10355433076620102,
-0.33789074420928955,
-0.3942129909992218,
0.14701256155967712,
0.30026426911354065,
-0.5380510091781616,
-0.4333748519420624,
-0.8171781301498413,
-0.030117271468043327,
-0.46994292736053467,
0.7925146818161011,
0.009629834443330765,
-0.1880308985710144,
-0.22395475208759308,
-0.0425887368619442,
-0.31901273131370544,
-0.4542921781539917,
-0.6230541467666626,
-0.5096295475959778,
-0.007116623222827911,
0.23260372877120972,
0.5007688999176025,
0.43345603346824646,
0.5379947423934937,
0.39727893471717834,
-0.08393890410661697,
0.03845897316932678,
-0.443622887134552,
-0.11344233900308609,
0.13145655393600464,
-0.5388566851615906,
-0.2681336998939514,
-0.14551599323749542,
0.5062657594680786,
0.42387545108795166,
0.026686087250709534,
0.28133606910705566,
-0.16080310940742493,
0.48971477150917053,
-0.559910237789154,
0.31097427010536194,
-0.6377118825912476,
0.005280676763504744,
-0.15408563613891602,
-0.027046890929341316,
-0.49888530373573303,
-0.22111642360687256,
-0.05136825889348984,
-0.48704519867897034,
0.18719546496868134,
-0.11175869405269623,
0.928466796875,
0.40161043405532837,
-0.052130743861198425,
-0.18778462707996368,
-0.5648382306098938,
0.9029149413108826,
-0.9059615731239319,
0.2743009030818939,
0.3835633099079132,
0.2466570883989334,
-0.3265281319618225,
-1.0317637920379639,
-0.7443654537200928,
-0.20759928226470947,
-0.1297045350074768,
-0.025636205449700356,
-0.34472012519836426,
-0.06218286231160164,
0.4744594693183899,
0.29319894313812256,
-0.5293144583702087,
-0.12629090249538422,
-0.6916996240615845,
-0.09129708260297775,
0.618078887462616,
0.14932772517204285,
0.4686393141746521,
-0.09677792340517044,
-0.26739898324012756,
-0.2853926420211792,
-0.5474056601524353,
0.10294204205274582,
0.2753940522670746,
0.2078617513179779,
-0.4963161051273346,
0.4415391683578491,
-0.13782717287540436,
0.561471700668335,
0.09010457247495651,
-0.2390812486410141,
0.6456763744354248,
-0.22258958220481873,
-0.4028123617172241,
0.04180067405104637,
1.125511884689331,
0.09016472101211548,
0.15055346488952637,
0.05426608771085739,
0.12813349068164825,
0.18343867361545563,
0.08094077557325363,
-0.8152351975440979,
-0.5599312782287598,
0.43308573961257935,
-0.3664855659008026,
-0.16759072244167328,
0.12099085003137589,
-0.577084481716156,
-0.12052278220653534,
0.08811260759830475,
0.6076908111572266,
-0.4826713502407074,
-0.4229913353919983,
0.10173320770263672,
-0.2931479513645172,
0.18789096176624298,
0.02043646201491356,
-1.0075641870498657,
0.269581139087677,
0.39125561714172363,
0.7194812297821045,
-0.009682547301054,
-0.5497148036956787,
-0.07855860888957977,
-0.0478016696870327,
-0.10067132115364075,
0.34913769364356995,
-0.360881507396698,
-0.22811806201934814,
-0.35412099957466125,
0.009686475619673729,
-0.17478534579277039,
-0.42343369126319885,
0.3007615804672241,
-0.256462961435318,
0.5075100064277649,
0.16181018948554993,
-0.49580374360084534,
-0.32411912083625793,
0.1197189912199974,
-0.4090003967285156,
1.1519802808761597,
0.1838608831167221,
-0.9014003276824951,
0.020917506888508797,
-0.8957922458648682,
-0.4490754008293152,
-0.06248728185892105,
-0.3153219521045685,
-0.6725380420684814,
-0.05489274114370346,
0.2744651734828949,
0.37212076783180237,
-0.34640899300575256,
0.22660477459430695,
-0.25316938757896423,
-0.419167160987854,
0.19219772517681122,
-0.4421195983886719,
1.4017410278320312,
0.12869645655155182,
-0.9005064368247986,
0.17919766902923584,
-0.6916772127151489,
0.10272181034088135,
0.4165221154689789,
-0.10675545781850815,
0.14002323150634766,
-0.23703788220882416,
-0.11576839536428452,
0.20965872704982758,
0.3759825527667999,
-0.5161914229393005,
0.10725902765989304,
-0.580055832862854,
0.7585416436195374,
0.6750229001045227,
-0.07143353670835495,
0.2502494752407074,
-0.29083335399627686,
0.40788522362709045,
0.04033029079437256,
0.29072415828704834,
-0.14004270732402802,
-0.829038679599762,
-0.9186090230941772,
-0.3363312780857086,
0.15201494097709656,
0.5060016512870789,
-0.5074896812438965,
0.6968193650245667,
-0.06217607110738754,
-0.7118733525276184,
-0.5525211095809937,
-0.1447131484746933,
0.34864383935928345,
0.40277931094169617,
0.5640950202941895,
-0.24684616923332214,
-0.6768025755882263,
-0.8340965509414673,
0.009847237728536129,
-0.22572283446788788,
0.09102968871593475,
0.3752477765083313,
0.7060856819152832,
-0.481223464012146,
0.7609941959381104,
-0.5098437666893005,
-0.06765969097614288,
-0.18324045836925507,
0.11124926060438156,
0.5249173641204834,
0.799207329750061,
0.5039318799972534,
-0.5111696720123291,
-0.517130434513092,
-0.06509236991405487,
-0.8404550552368164,
0.12751783430576324,
-0.05392266437411308,
-0.16185317933559418,
0.29954180121421814,
0.39550915360450745,
-0.8504678010940552,
0.5008079409599304,
0.5304900407791138,
-0.4106750190258026,
0.5699320435523987,
-0.23490871489048004,
0.19120721518993378,
-1.0376030206680298,
0.21214431524276733,
-0.25139519572257996,
-0.08349303901195526,
-0.5342633724212646,
0.0968468114733696,
-0.04351717606186867,
0.00003315028880024329,
-0.7262224555015564,
0.7728742957115173,
-0.3626202642917633,
0.11030182987451553,
-0.13175712525844574,
-0.18401283025741577,
-0.1720362901687622,
0.7183387279510498,
-0.11017122864723206,
0.6775012016296387,
0.7663311958312988,
-0.6658828258514404,
0.4184057414531708,
0.2913471460342407,
-0.2866688668727875,
0.09370245784521103,
-0.7581464052200317,
0.18813078105449677,
0.08318394422531128,
0.06624855846166611,
-0.9544001817703247,
-0.08613573759794235,
0.47229334712028503,
-0.8394622206687927,
0.2795027792453766,
-0.08242896944284439,
-0.5068062543869019,
-0.4522542357444763,
-0.13449373841285706,
0.40640267729759216,
0.877227783203125,
-0.5814794301986694,
0.7040242552757263,
0.5380251407623291,
0.16062413156032562,
-0.6861334443092346,
-0.7663963437080383,
-0.12837561964988708,
-0.22240467369556427,
-0.7900872230529785,
0.2748379111289978,
-0.24709436297416687,
-0.2425658106803894,
-0.0722060576081276,
-0.030449900776147842,
-0.06134019419550896,
0.25539925694465637,
0.3711269497871399,
0.22383126616477966,
-0.0028800705913454294,
-0.25040367245674133,
-0.06392326205968857,
-0.09088002890348434,
0.35860487818717957,
-0.13296592235565186,
0.8888339400291443,
-0.37300175428390503,
-0.23621608316898346,
-0.6930845975875854,
0.04867389053106308,
0.5913386344909668,
0.028408139944076538,
0.9009078741073608,
0.7083926796913147,
-0.499632328748703,
-0.20250385999679565,
-0.4138610363006592,
-0.45597586035728455,
-0.5159602165222168,
0.4229780435562134,
-0.36627689003944397,
-0.730904221534729,
0.5006909370422363,
0.2675202786922455,
0.2725885808467865,
0.8091040253639221,
0.8860793709754944,
0.010507508181035519,
0.9909083843231201,
0.4140815734863281,
-0.06484177708625793,
0.5056256055831909,
-0.7359862923622131,
0.1385021209716797,
-0.6940639615058899,
-0.3120266795158386,
-0.5853675603866577,
-0.2509530782699585,
-0.5835821628570557,
-0.36503568291664124,
0.23575685918331146,
0.01561157125979662,
-0.675570011138916,
0.5043203234672546,
-0.8408841490745544,
0.31770771741867065,
0.7966439127922058,
0.005731932353228331,
-0.046435341238975525,
0.08342362940311432,
-0.17369553446769714,
0.13529525697231293,
-0.8093551993370056,
-0.25650474429130554,
1.0506694316864014,
0.3727833926677704,
0.7298266887664795,
-0.08838856220245361,
0.6931227445602417,
0.06536617875099182,
0.19308605790138245,
-0.2493021935224533,
0.54268878698349,
0.04442744702100754,
-0.7799266576766968,
-0.2359265685081482,
-0.5390225052833557,
-0.9831832647323608,
0.24098621308803558,
-0.1189827099442482,
-0.9104053974151611,
-0.0331270731985569,
0.2580704391002655,
-0.09022291004657745,
0.3752692639827728,
-0.8513161540031433,
1.0624778270721436,
-0.21418720483779907,
-0.12129835784435272,
-0.2511269152164459,
-0.720054030418396,
0.44568073749542236,
0.32169878482818604,
0.08988695591688156,
-0.10327156633138657,
0.308574914932251,
0.8895893096923828,
-0.40802741050720215,
0.9110357165336609,
-0.16007137298583984,
0.3400391936302185,
0.3946933150291443,
-0.04731176421046257,
0.3960099220275879,
-0.021769730374217033,
0.10834003239870071,
0.6407068371772766,
-0.014717558398842812,
-0.4391133487224579,
-0.38447123765945435,
0.8959375619888306,
-1.242705225944519,
-0.49264493584632874,
-0.5314804911613464,
-0.4590022563934326,
0.07012347131967545,
0.347147673368454,
0.5167804956436157,
0.2605096995830536,
0.12281817942857742,
0.2619660794734955,
0.6044254899024963,
-0.2385801374912262,
0.4518028199672699,
0.04288781061768532,
-0.09476405382156372,
-0.5477602481842041,
0.9202943444252014,
-0.06436695903539658,
0.12230492383241653,
0.17348350584506989,
0.20012938976287842,
-0.26098179817199707,
-0.41962456703186035,
-0.518069863319397,
0.4116586744785309,
-0.6749242544174194,
-0.18831223249435425,
-0.7965165972709656,
-0.44040390849113464,
-0.4962739944458008,
-0.11875753849744797,
-0.4540954530239105,
-0.5607388615608215,
-0.4928874969482422,
0.14628063142299652,
0.42385804653167725,
0.3768339455127716,
0.06612870842218399,
0.2698856294155121,
-0.5006332993507385,
0.28660818934440613,
0.08889326453208923,
0.20171339809894562,
0.068752720952034,
-0.7640477418899536,
-0.24930554628372192,
0.05284641683101654,
-0.36241164803504944,
-0.5418684482574463,
0.33413705229759216,
0.03397289291024208,
0.6735059022903442,
0.18722979724407196,
0.06449060142040253,
0.6231549978256226,
-0.2665775418281555,
0.8834831714630127,
0.35721200704574585,
-0.9099941253662109,
0.544501781463623,
-0.018938302993774414,
0.5146321058273315,
0.39124053716659546,
0.35391679406166077,
-0.34061315655708313,
-0.6102873682975769,
-1.1063435077667236,
-0.9726006984710693,
0.923114001750946,
0.5029892325401306,
0.0894341915845871,
-0.09935808181762695,
0.18286067247390747,
0.010476557537913322,
0.24800841510295868,
-0.9574118852615356,
-0.7256397604942322,
-0.32311829924583435,
-0.3903162479400635,
0.1356520652770996,
0.03160887956619263,
-0.13857115805149078,
-0.3908371329307556,
1.061225175857544,
0.1079532727599144,
0.7023940682411194,
0.08019654452800751,
-0.28232988715171814,
0.006924595683813095,
-0.07566428184509277,
0.6412290930747986,
0.8916270732879639,
-0.1735129952430725,
0.09182213991880417,
0.26608163118362427,
-0.5911068320274353,
0.04365403577685356,
0.16054078936576843,
-0.31694692373275757,
-0.04443930462002754,
0.42095884680747986,
0.9842437505722046,
-0.08846285194158554,
-0.5734244585037231,
0.28875306248664856,
-0.2888450026512146,
-0.27394455671310425,
-0.524812638759613,
0.43264368176460266,
0.27443087100982666,
0.31399664282798767,
0.26618531346321106,
0.05886954441666603,
-0.20145703852176666,
-0.34347501397132874,
0.08508767187595367,
0.5204176306724548,
-0.18958620727062225,
-0.27477067708969116,
0.8784531354904175,
0.07236617058515549,
-0.4658389389514923,
0.7991881370544434,
-0.04318855702877045,
-0.4232403039932251,
0.842719316482544,
0.6578547954559326,
0.8662993907928467,
-0.005810427945107222,
-0.15740376710891724,
0.6444522738456726,
0.3933647871017456,
-0.09864869713783264,
0.27674227952957153,
-0.02146044187247753,
-0.6748929619789124,
-0.23643045127391815,
-0.5124906897544861,
-0.21233193576335907,
0.1924235224723816,
-0.31961745023727417,
0.2767449915409088,
-0.6284996867179871,
-0.19751088321208954,
-0.04731576517224312,
0.14483968913555145,
-0.7194963693618774,
0.09066540747880936,
0.07388270646333694,
0.8566844463348389,
-0.7900880575180054,
0.8566222190856934,
0.6097315549850464,
-0.4805370569229126,
-0.788079559803009,
-0.2977963089942932,
-0.17907044291496277,
-0.8627150058746338,
0.5743048191070557,
0.3090992569923401,
-0.011382132768630981,
0.16844220459461212,
-0.6194965243339539,
-0.843755841255188,
1.0732226371765137,
0.5714570879936218,
-0.30597952008247375,
0.07120954990386963,
-0.09728147089481354,
0.3691723942756653,
-0.19227305054664612,
0.647330105304718,
0.6008317470550537,
0.45161986351013184,
-0.021584900096058846,
-0.9056023955345154,
0.055629562586545944,
-0.3129420280456543,
-0.18892718851566315,
0.34830647706985474,
-0.6283520460128784,
1.1089838743209839,
-0.24210277199745178,
-0.12811723351478577,
-0.061943091452121735,
0.9268682599067688,
0.37358662486076355,
0.03461597114801407,
0.38271358609199524,
0.7786090970039368,
0.6936662793159485,
-0.12112967669963837,
0.9528191685676575,
-0.5519676208496094,
0.6711012721061707,
0.8675244450569153,
0.3001001179218292,
0.61814945936203,
0.3686974048614502,
-0.44141414761543274,
0.6254452466964722,
0.39234912395477295,
-0.11494217813014984,
0.4572053551673889,
0.11810241639614105,
-0.225746288895607,
-0.0014468684094026685,
0.3550431728363037,
-0.5506080389022827,
0.24326807260513306,
0.36172083020210266,
-0.43678250908851624,
0.008464759215712547,
-0.17925786972045898,
0.1409500241279602,
-0.27499690651893616,
-0.12296129018068314,
0.5421425104141235,
0.09037342667579651,
-0.5684153437614441,
1.039311170578003,
0.16166307032108307,
0.8489336967468262,
-0.6275436878204346,
-0.0380447655916214,
-0.12587876617908478,
0.39041855931282043,
-0.25398725271224976,
-0.5520368218421936,
0.23542533814907074,
-0.15646971762180328,
-0.09742575138807297,
0.052945803850889206,
0.49252620339393616,
-0.3897530436515808,
-0.5611138939857483,
0.22893276810646057,
0.08194141089916229,
0.47280049324035645,
0.03045056201517582,
-0.9595209360122681,
0.39597970247268677,
0.1828000843524933,
-0.3596501350402832,
0.25261741876602173,
0.10886014997959137,
0.10153099149465561,
0.7354997396469116,
0.565495491027832,
-0.03997284546494484,
0.2701077163219452,
-0.23431268334388733,
0.7567258477210999,
-0.7012905478477478,
-0.4828789532184601,
-1.019426941871643,
0.5181394219398499,
0.05232321470975876,
-0.46002277731895447,
0.8101615905761719,
0.5413804054260254,
1.1583902835845947,
-0.037666432559490204,
0.8053152561187744,
-0.4420916736125946,
0.12230739742517471,
-0.31276458501815796,
0.7700775861740112,
-0.47901883721351624,
0.03965611010789871,
-0.1766359657049179,
-0.8294873237609863,
-0.23047958314418793,
1.027331829071045,
-0.09551790356636047,
0.26824843883514404,
0.7262212634086609,
0.8374671936035156,
-0.07124143838882446,
-0.14059394598007202,
0.1302500069141388,
0.4228251278400421,
0.4902021288871765,
0.6973363161087036,
0.4592462182044983,
-0.6895183324813843,
0.550768256187439,
-0.6492770314216614,
-0.2547609806060791,
-0.25156718492507935,
-0.6770763397216797,
-1.0658665895462036,
-0.6317477822303772,
-0.37105947732925415,
-0.5720461010932922,
0.013819308951497078,
1.183627724647522,
0.7947998642921448,
-0.8412960767745972,
-0.38465580344200134,
-0.20428331196308136,
0.18615825474262238,
-0.3267224431037903,
-0.2640366554260254,
0.49912944436073303,
-0.2813427150249481,
-0.8838028907775879,
0.27956750988960266,
0.16331924498081207,
0.011881761252880096,
-0.4312584698200226,
-0.19791489839553833,
-0.3380860388278961,
-0.10534421354532242,
0.46419838070869446,
0.5397850275039673,
-0.7159997224807739,
-0.16182665526866913,
-0.17561481893062592,
-0.12860062718391418,
0.29802894592285156,
0.4107823967933655,
-0.8129178881645203,
0.4202461540699005,
0.5600907802581787,
0.6098166704177856,
0.8059179782867432,
-0.24111218750476837,
0.34400737285614014,
-0.5075806975364685,
0.28832224011421204,
0.2906798720359802,
0.43326184153556824,
0.28664883971214294,
-0.45266085863113403,
0.33573904633522034,
0.38409432768821716,
-0.635236382484436,
-0.8499246835708618,
0.05659928917884827,
-0.9165982604026794,
-0.34820032119750977,
0.995490312576294,
-0.06708106398582458,
-0.5179993510246277,
0.01423652470111847,
-0.07471248507499695,
0.2871890068054199,
-0.40493685007095337,
0.8883603811264038,
0.48019182682037354,
-0.46852508187294006,
-0.20163573324680328,
-0.35072997212409973,
0.3253829777240753,
0.31460121273994446,
-0.8421927690505981,
-0.009665046818554401,
0.19179683923721313,
0.4486374855041504,
0.22625456750392914,
0.8503050804138184,
-0.08929906040430069,
0.3932201564311981,
0.1572916954755783,
0.4129747748374939,
-0.3111037611961365,
-0.32438042759895325,
-0.19998307526111603,
0.14334459602832794,
-0.0008923242567107081,
-0.26385608315467834
] |
facebook/mask2former-swin-large-coco-panoptic
|
facebook
| 2023-02-07T12:46:36Z | 9,227 | 14 |
transformers
|
[
"transformers",
"pytorch",
"mask2former",
"vision",
"image-segmentation",
"dataset:coco",
"arxiv:2112.01527",
"arxiv:2107.06278",
"license:other",
"endpoints_compatible",
"has_space",
"region:us"
] |
image-segmentation
| 2023-01-02T16:24:12Z |
---
license: other
tags:
- vision
- image-segmentation
datasets:
- coco
widget:
- src: http://images.cocodataset.org/val2017/000000039769.jpg
example_title: Cats
---
# Mask2Former
Mask2Former model trained on COCO panoptic segmentation (large-sized version, Swin backbone). It was introduced in the paper [Masked-attention Mask Transformer for Universal Image Segmentation
](https://arxiv.org/abs/2112.01527) and first released in [this repository](https://github.com/facebookresearch/Mask2Former/).
Disclaimer: The team releasing Mask2Former did not write a model card for this model so this model card has been written by the Hugging Face team.
## Model description
Mask2Former addresses instance, semantic and panoptic segmentation with the same paradigm: by predicting a set of masks and corresponding labels. Hence, all 3 tasks are treated as if they were instance segmentation. Mask2Former outperforms the previous SOTA,
[MaskFormer](https://arxiv.org/abs/2107.06278) both in terms of performance an efficiency by (i) replacing the pixel decoder with a more advanced multi-scale deformable attention Transformer, (ii) adopting a Transformer decoder with masked attention to boost performance without
without introducing additional computation and (iii) improving training efficiency by calculating the loss on subsampled points instead of whole masks.

## Intended uses & limitations
You can use this particular checkpoint for panoptic segmentation. See the [model hub](https://huggingface.co/models?search=mask2former) to look for other
fine-tuned versions on a task that interests you.
### How to use
Here is how to use this model:
```python
import requests
import torch
from PIL import Image
from transformers import AutoImageProcessor, Mask2FormerForUniversalSegmentation
# load Mask2Former fine-tuned on COCO panoptic segmentation
processor = AutoImageProcessor.from_pretrained("facebook/mask2former-swin-large-coco-panoptic")
model = Mask2FormerForUniversalSegmentation.from_pretrained("facebook/mask2former-swin-large-coco-panoptic")
url = "http://images.cocodataset.org/val2017/000000039769.jpg"
image = Image.open(requests.get(url, stream=True).raw)
inputs = processor(images=image, return_tensors="pt")
with torch.no_grad():
outputs = model(**inputs)
# model predicts class_queries_logits of shape `(batch_size, num_queries)`
# and masks_queries_logits of shape `(batch_size, num_queries, height, width)`
class_queries_logits = outputs.class_queries_logits
masks_queries_logits = outputs.masks_queries_logits
# you can pass them to processor for postprocessing
result = processor.post_process_panoptic_segmentation(outputs, target_sizes=[image.size[::-1]])[0]
# we refer to the demo notebooks for visualization (see "Resources" section in the Mask2Former docs)
predicted_panoptic_map = result["segmentation"]
```
For more code examples, we refer to the [documentation](https://huggingface.co/docs/transformers/master/en/model_doc/mask2former).
|
[
-0.6479551792144775,
-0.6211917400360107,
0.1762644201517105,
0.4474862515926361,
-0.30338433384895325,
-0.13723124563694,
0.10502465814352036,
-0.8048513531684875,
0.25846508145332336,
0.6691290736198425,
-0.6492919325828552,
-0.2574811279773712,
-0.8456589579582214,
-0.31772229075431824,
-0.12502919137477875,
0.9061388969421387,
-0.07042844593524933,
0.025921588763594627,
-0.2695762515068054,
0.071617491543293,
-0.2128664255142212,
-0.22915439307689667,
-0.7339246869087219,
-0.3299384117126465,
0.16621799767017365,
0.3530394732952118,
0.4436871111392975,
0.571868360042572,
0.5828498601913452,
0.2553897798061371,
-0.09514105319976807,
-0.02758965454995632,
-0.44089797139167786,
-0.21147271990776062,
0.09570925682783127,
-0.6095256805419922,
-0.3149546980857849,
0.16176114976406097,
0.42900946736335754,
0.3544844388961792,
0.18202005326747894,
0.3386685252189636,
-0.03411288931965828,
0.601078987121582,
-0.6468281149864197,
0.3854103684425354,
-0.37148669362068176,
0.31327760219573975,
-0.2061941772699356,
0.34907323122024536,
-0.2532666325569153,
-0.23119474947452545,
0.20876993238925934,
-0.49615034461021423,
0.4788791239261627,
-0.15197426080703735,
0.9932303428649902,
0.19641178846359253,
-0.0904247909784317,
-0.13416153192520142,
-0.4376555383205414,
0.5601228475570679,
-0.35007166862487793,
0.22667744755744934,
0.483254611492157,
0.7627959251403809,
0.24656029045581818,
-1.1388355493545532,
-0.44919735193252563,
0.28679975867271423,
-0.02494703233242035,
0.19836655259132385,
-0.2575344741344452,
0.045587293803691864,
0.3677493631839752,
0.3350118100643158,
-0.5764590501785278,
-0.007209808565676212,
-0.8929872512817383,
-0.3618428409099579,
0.6624205112457275,
-0.1812344193458557,
0.2989501655101776,
-0.2529119849205017,
-0.6053473949432373,
-0.327070027589798,
-0.23666070401668549,
0.5058245062828064,
0.06803703308105469,
-0.3065779507160187,
-0.2643509805202484,
0.5977880358695984,
-0.06765259057283401,
0.7160618305206299,
0.37259441614151,
-0.17401538789272308,
0.1443048119544983,
0.09661633521318436,
-0.39108923077583313,
-0.03734323009848595,
0.628733217716217,
0.5132976770401001,
0.17995482683181763,
0.09241023659706116,
-0.07155757397413254,
0.20879517495632172,
0.1387963593006134,
-1.1427797079086304,
-0.6476736664772034,
0.08020815998315811,
-0.2221616953611374,
-0.3051437735557556,
0.3812602758407593,
-0.9402343034744263,
-0.06190839782357216,
-0.12293161451816559,
0.3763699233531952,
-0.320753276348114,
-0.09112557768821716,
0.08847184479236603,
-0.25442081689834595,
0.565052330493927,
0.33144739270210266,
-0.8965592980384827,
0.3677385747432709,
0.5492196679115295,
1.0407687425613403,
0.012513895519077778,
-0.009807627648115158,
-0.21946515142917633,
-0.04334104806184769,
-0.31332266330718994,
0.9164993762969971,
-0.5270686745643616,
-0.05127701535820961,
-0.2833421230316162,
0.3524908721446991,
-0.3513263463973999,
-0.616104006767273,
0.3455105423927307,
-0.5117368698120117,
0.4535828232765198,
-0.3661799728870392,
-0.1621197611093521,
-0.5932249426841736,
0.12734346091747284,
-0.5426174402236938,
1.128258466720581,
0.4938434362411499,
-0.6413248777389526,
0.18351610004901886,
-0.6837928891181946,
-0.1734321266412735,
-0.11505118012428284,
-0.01796761155128479,
-0.8376765847206116,
-0.14658866822719574,
0.4884328246116638,
0.3782162070274353,
-0.2540796101093292,
-0.005913590546697378,
-0.33782342076301575,
-0.13042783737182617,
0.04103001579642296,
0.12759147584438324,
0.9595845341682434,
0.0807504802942276,
-0.7258881330490112,
0.20698773860931396,
-0.3547177016735077,
-0.011811552569270134,
0.34106704592704773,
0.1539895385503769,
0.23435485363006592,
-0.4843704104423523,
0.4098646640777588,
0.6534880995750427,
0.038746800273656845,
-0.5340027809143066,
0.18940691649913788,
-0.3121482729911804,
0.6715192794799805,
0.5411704778671265,
0.03823314979672432,
0.43570318818092346,
-0.1632842868566513,
0.5100825428962708,
0.11916352808475494,
0.5269259810447693,
-0.01944306492805481,
-0.7429805397987366,
-0.944792628288269,
-0.4469529986381531,
-0.007807350717484951,
0.38486167788505554,
-0.410249799489975,
0.3782249391078949,
0.16351507604122162,
-0.7261128425598145,
-0.3154842257499695,
-0.04110978916287422,
0.3601532280445099,
0.630161702632904,
0.32530054450035095,
-0.6486446857452393,
-0.8053245544433594,
-1.0355339050292969,
0.2881392538547516,
0.19965574145317078,
-0.08745305985212326,
0.34491777420043945,
0.5214362144470215,
-0.5679099559783936,
1.053611397743225,
-0.680595874786377,
-0.4005787670612335,
-0.27620041370391846,
-0.08250569552183151,
-0.10647770017385483,
0.5062787532806396,
0.8880434036254883,
-0.755328893661499,
-0.5036331415176392,
-0.31266114115715027,
-0.7211294770240784,
-0.03492831811308861,
0.19714374840259552,
-0.34006887674331665,
0.2211335152387619,
0.26176750659942627,
-0.59022057056427,
0.5494994521141052,
0.40987151861190796,
-0.2980025112628937,
0.6841265559196472,
0.15417490899562836,
-0.129414901137352,
-0.8245408535003662,
0.26031166315078735,
0.12188059836626053,
-0.37880176305770874,
-0.45557090640068054,
0.08254197984933853,
0.13224337995052338,
-0.334721177816391,
-0.572156548500061,
0.4859209656715393,
-0.5731753706932068,
-0.395417720079422,
-0.3734419345855713,
-0.1781604140996933,
0.33343440294265747,
0.6558091044425964,
0.33980104327201843,
0.4659692049026489,
0.9220055341720581,
-0.45245176553726196,
0.405100554227829,
0.3304935097694397,
-0.3826187252998352,
0.37436482310295105,
-0.9118490219116211,
0.263459175825119,
-0.18216073513031006,
0.6652560234069824,
-1.0898526906967163,
-0.6393680572509766,
0.584547758102417,
-0.3270641267299652,
0.30585944652557373,
-0.14328105747699738,
-0.18234166502952576,
-0.8565349578857422,
-0.5509854555130005,
0.6386967897415161,
0.5981545448303223,
-0.6980935335159302,
0.21101848781108856,
0.5365526676177979,
0.10812658071517944,
-0.3714829683303833,
-0.9117510318756104,
-0.17173507809638977,
-0.15413129329681396,
-0.8932132124900818,
0.4110000729560852,
0.03324568271636963,
0.09022066742181778,
-0.1513599455356598,
-0.23861168324947357,
-0.05759231746196747,
-0.42450082302093506,
0.4003487825393677,
0.32843369245529175,
-0.14106754958629608,
-0.4929121136665344,
0.12745992839336395,
-0.2356702983379364,
0.17846296727657318,
-0.4127018451690674,
0.7215604782104492,
-0.19616547226905823,
-0.09896478056907654,
-0.6911752223968506,
0.04840515926480293,
0.6337521076202393,
-0.40293771028518677,
0.44317832589149475,
1.0845959186553955,
-0.7239789366722107,
0.01811933144927025,
-0.8653171062469482,
-0.43252286314964294,
-0.46368250250816345,
0.3521508276462555,
-0.35089609026908875,
-0.6920127272605896,
0.7011001706123352,
0.1459626704454422,
-0.037630267441272736,
0.6614843606948853,
0.5231237411499023,
0.11250036954879761,
1.02509605884552,
0.646683931350708,
0.2671774923801422,
0.5634930729866028,
-0.9218292832374573,
0.15918903052806854,
-1.2193927764892578,
-0.7338747382164001,
-0.07369661331176758,
-0.47321775555610657,
-0.22270338237285614,
-0.9143946766853333,
0.6140817999839783,
0.5840720534324646,
-0.1641293615102768,
0.5817093849182129,
-0.955929696559906,
0.3332453966140747,
0.48522114753723145,
0.2845952808856964,
-0.3865022659301758,
0.23555885255336761,
0.11067686229944229,
0.02104836329817772,
-0.6501133441925049,
-0.3677586317062378,
0.7042525410652161,
0.5884541869163513,
0.46792668104171753,
-0.2497381567955017,
0.28876590728759766,
-0.10402706265449524,
0.060452722012996674,
-0.7438358068466187,
0.4379427134990692,
0.049594588577747345,
-0.5657899975776672,
-0.08733466267585754,
0.06180861219763756,
-0.7784308195114136,
0.33954551815986633,
0.015200167894363403,
-1.1935322284698486,
0.5064858794212341,
0.14869292080402374,
-0.34041380882263184,
0.3380902409553528,
-0.6909070611000061,
1.031395435333252,
-0.13379885256290436,
-0.40424489974975586,
0.13491691648960114,
-0.9252802729606628,
0.5847430229187012,
0.1170959621667862,
-0.19011898338794708,
-0.1175948902964592,
0.24941767752170563,
1.216225028038025,
-0.4926850497722626,
0.9556450843811035,
-0.37301191687583923,
0.2758249342441559,
0.6537929773330688,
-0.1371127963066101,
0.33714550733566284,
0.29621177911758423,
0.078058160841465,
0.3770418167114258,
0.14430555701255798,
-0.52487713098526,
-0.5625693798065186,
0.5072159767150879,
-0.944351077079773,
-0.39748987555503845,
-0.3773374855518341,
-0.296703964471817,
0.1288910210132599,
0.1318032443523407,
0.8453032374382019,
0.30474406480789185,
0.09023843705654144,
-0.014865313656628132,
0.571627676486969,
-0.04903706535696983,
0.4730972945690155,
-0.07732779532670975,
-0.27779752016067505,
-0.6064552664756775,
0.6249231696128845,
0.0725332722067833,
0.2020879089832306,
0.2860707640647888,
0.26877856254577637,
-0.473317414522171,
0.05620591714978218,
-0.5796158313751221,
0.41728731989860535,
-0.5630227327346802,
-0.41936102509498596,
-0.8920962810516357,
-0.5072226524353027,
-0.8422102332115173,
-0.404550701379776,
-0.5721220970153809,
-0.5267160534858704,
-0.3301967680454254,
0.00895338412374258,
0.3222682476043701,
0.43211179971694946,
-0.25510045886039734,
0.5159968733787537,
-0.2435918152332306,
0.23338942229747772,
0.588962197303772,
0.20861110091209412,
-0.16998574137687683,
-0.4038936197757721,
0.022797580808401108,
0.06250684708356857,
-0.6147637367248535,
-0.8440262675285339,
0.3403133451938629,
0.11970264464616776,
0.2717014253139496,
0.7319167852401733,
-0.19035913050174713,
0.7170916795730591,
-0.00401687528938055,
0.7196250557899475,
0.5135214924812317,
-0.8472380042076111,
0.7619457840919495,
-0.014427237212657928,
0.23607708513736725,
0.27939721941947937,
0.20846766233444214,
-0.556712806224823,
-0.0696050375699997,
-0.6046248078346252,
-0.9020566344261169,
1.169874906539917,
0.14334042370319366,
-0.1811884045600891,
0.27636680006980896,
0.44411662220954895,
0.12405185401439667,
0.025452300906181335,
-0.7709863781929016,
-0.1721847504377365,
-0.5927199125289917,
0.20316052436828613,
-0.12151482701301575,
-0.5562983155250549,
-0.09155783802270889,
-0.5398619174957275,
0.6110897064208984,
-0.05334106832742691,
0.6587446331977844,
0.40028008818626404,
-0.20733453333377838,
-0.26657065749168396,
-0.48223763704299927,
0.6350864171981812,
0.6042343378067017,
-0.22091732919216156,
0.2045820653438568,
-0.0288477074354887,
-0.5980151891708374,
-0.17933930456638336,
0.18744497001171112,
-0.20101776719093323,
-0.16760759055614471,
0.36788204312324524,
1.1146485805511475,
-0.003106948919594288,
-0.287323534488678,
0.5882568955421448,
0.14582869410514832,
-0.30295273661613464,
-0.38808032870292664,
0.12208501249551773,
-0.04317545145750046,
0.28014278411865234,
0.1344071477651596,
0.38759270310401917,
0.2567283511161804,
-0.3124524652957916,
0.20901362597942352,
0.3028843402862549,
-0.5190368294715881,
-0.44547584652900696,
0.8495194315910339,
-0.1111433282494545,
-0.23183949291706085,
0.594089686870575,
-0.15253497660160065,
-1.001795768737793,
1.0109708309173584,
0.697295606136322,
0.7660766243934631,
-0.38460323214530945,
0.3895967900753021,
0.712012767791748,
0.23102326691150665,
-0.034208640456199646,
-0.06873251497745514,
-0.21344658732414246,
-0.37528905272483826,
-0.040433675050735474,
-0.6876892447471619,
-0.08605749905109406,
0.1901039183139801,
-0.5973575711250305,
0.3900080919265747,
-0.647545337677002,
-0.07468605786561966,
0.13834144175052643,
0.13901908695697784,
-0.8104338645935059,
0.4210132658481598,
0.22472411394119263,
0.8291873931884766,
-0.8486040234565735,
0.6596474051475525,
0.8618252277374268,
-0.28708401322364807,
-0.7155256271362305,
-0.23292110860347748,
0.05940087512135506,
-1.012587070465088,
0.27607741951942444,
0.795445442199707,
0.04793289303779602,
-0.23422496020793915,
-0.48948878049850464,
-0.8271536827087402,
1.2624396085739136,
0.3222620189189911,
-0.45895254611968994,
0.0009698965004645288,
0.3323325514793396,
0.299440860748291,
-0.5063404440879822,
0.572650134563446,
0.5429129600524902,
0.5183177590370178,
0.6047911047935486,
-0.6756431460380554,
0.09456788003444672,
-0.3267688751220703,
0.25206223130226135,
-0.07678640633821487,
-0.8574072122573853,
0.8120774030685425,
-0.40261179208755493,
-0.059668686240911484,
-0.11856070160865784,
0.6133841872215271,
0.23163028061389923,
0.5482169985771179,
0.5035495758056641,
0.6323174834251404,
0.5403653383255005,
-0.10990939289331436,
0.9090427756309509,
-0.08766837418079376,
0.5853579044342041,
0.649133563041687,
0.13759103417396545,
0.4107484817504883,
0.32539090514183044,
0.01926369033753872,
0.4254431426525116,
1.070404291152954,
-0.3177098035812378,
0.5276158452033997,
0.11687695235013962,
0.003825129009783268,
-0.13040588796138763,
0.07450626790523529,
-0.5396271347999573,
0.749443531036377,
0.25984063744544983,
-0.4145275056362152,
-0.22070911526679993,
0.3373069167137146,
0.06943641602993011,
-0.42454251646995544,
-0.2044510394334793,
0.5771622657775879,
0.025006528943777084,
-0.7423803806304932,
0.6920415163040161,
0.3047443628311157,
0.62855064868927,
-0.4291066527366638,
0.09992466121912003,
-0.18601569533348083,
0.2095077782869339,
-0.405424565076828,
-0.66301429271698,
0.6636932492256165,
-0.21796345710754395,
-0.18545091152191162,
0.08663927763700485,
0.7360190153121948,
-0.3261060118675232,
-0.8471633195877075,
0.24584953486919403,
-0.08575821667909622,
0.34055113792419434,
-0.29534345865249634,
-0.8884274363517761,
0.450040727853775,
0.0010440829209983349,
-0.4380311965942383,
0.19502831995487213,
-0.04157144948840141,
-0.1781509667634964,
0.40126967430114746,
0.49154093861579895,
-0.3844117224216461,
0.08308649063110352,
-0.16957832872867584,
0.972137451171875,
-0.26609867811203003,
-0.5710349082946777,
-0.5824626684188843,
0.464807391166687,
-0.2126503735780716,
-0.28757190704345703,
0.49165022373199463,
0.9296420216560364,
0.8644375801086426,
-0.23793688416481018,
0.531762421131134,
-0.20954585075378418,
-0.056826770305633545,
-0.2845841944217682,
0.5441494584083557,
-0.40565264225006104,
-0.1545848399400711,
-0.33201101422309875,
-1.2569454908370972,
-0.3951288163661957,
1.04620361328125,
-0.5607438683509827,
0.15286840498447418,
0.493518590927124,
0.9513205289840698,
-0.46817323565483093,
-0.05994260683655739,
0.004082253202795982,
-0.0758638083934784,
0.38618454337120056,
0.5750413537025452,
0.2525087893009186,
-0.6809651255607605,
0.34502309560775757,
-0.8556495904922485,
-0.6134137511253357,
-0.39464783668518066,
-0.26677754521369934,
-0.9034780263900757,
-0.7542780041694641,
-0.5231902003288269,
-0.4189196825027466,
-0.048742085695266724,
0.45974570512771606,
1.3759193420410156,
-0.7585530877113342,
-0.1507554054260254,
-0.24106836318969727,
-0.025613704696297646,
-0.25871774554252625,
-0.3274141252040863,
0.6566302180290222,
0.008966512978076935,
-0.88178551197052,
-0.07340970635414124,
0.34177225828170776,
-0.00034903667983599007,
-0.13479693233966827,
-0.08073023706674576,
0.0846988707780838,
-0.03578418120741844,
0.7318716645240784,
0.4527544677257538,
-0.7925107479095459,
-0.26023006439208984,
-0.036023933440446854,
-0.027622414752840996,
0.24163402616977692,
0.7389777302742004,
-0.6062045097351074,
0.5578706860542297,
0.32740962505340576,
0.24076412618160248,
1.161280632019043,
0.01842580921947956,
0.06193416565656662,
-0.4631018340587616,
0.30982470512390137,
0.19812630116939545,
0.36883544921875,
0.3856648802757263,
-0.5467214584350586,
0.47038108110427856,
0.40008077025413513,
-0.5253573060035706,
-0.6135038733482361,
0.278838574886322,
-1.4706335067749023,
-0.12689800560474396,
1.1012969017028809,
-0.19282671809196472,
-0.5768351554870605,
0.2937302887439728,
-0.5471510887145996,
0.4576823115348816,
-0.07341732084751129,
0.8802554607391357,
0.20816780626773834,
-0.40424981713294983,
-0.5122619271278381,
-0.12404068559408188,
0.4788114130496979,
0.11435359716415405,
-0.7403876781463623,
-0.3415023684501648,
0.3286060392856598,
0.6556695103645325,
0.24546697735786438,
0.5334931015968323,
-0.38518112897872925,
0.44139033555984497,
0.10600415617227554,
0.232395201921463,
-0.2520652711391449,
-0.3260534107685089,
-0.09195779263973236,
0.24629533290863037,
-0.332206130027771,
-0.5538838505744934
] |
jarvisx17/japanese-sentiment-analysis
|
jarvisx17
| 2023-03-03T11:00:00Z | 9,221 | 6 |
transformers
|
[
"transformers",
"pytorch",
"tensorboard",
"bert",
"text-classification",
"generated_from_trainer",
"ja",
"endpoints_compatible",
"has_space",
"region:us"
] |
text-classification
| 2022-11-15T06:28:39Z |
---
tags:
- generated_from_trainer
language: ja
widget:
- text: "🤗セグメント利益は、前期比8.3%増の24億28百万円となった"
metrics:
- accuracy
- f1
model-index:
- name: Japanese-sentiment-analysis
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. -->
# japanese-sentiment-analysis
This model was trained from scratch on the chABSA dataset.
It achieves the following results on the evaluation set:
- Loss: 0.0001
- Accuracy: 1.0
- F1: 1.0
## Model description
Model Train for Japanese sentence sentiments.
## Intended uses & limitations
The model was trained on chABSA Japanese dataset.
DATASET link : https://www.kaggle.com/datasets/takahirokubo0/chabsa
### Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 2e-05
- train_batch_size: 16
- eval_batch_size: 16
- seed: 42
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- num_epochs: 10
## Usage
You can use cURL to access this model:
Python API:
```
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("jarvisx17/japanese-sentiment-analysis")
model = AutoModelForSequenceClassification.from_pretrained("jarvisx17/japanese-sentiment-analysis")
inputs = tokenizer("I love AutoNLP", return_tensors="pt")
outputs = model(**inputs)
```
### Training results
### Framework versions
- Transformers 4.24.0
- Pytorch 1.12.1+cu113
- Datasets 2.7.0
- Tokenizers 0.13.2
### Dependencies
- !pip install fugashi
- !pip install unidic_lite
|
[
-0.49983513355255127,
-0.6561332941055298,
0.19075420498847961,
0.29518693685531616,
-0.5606956481933594,
-0.15558859705924988,
-0.10892856866121292,
-0.12860414385795593,
0.30541419982910156,
0.32915955781936646,
-0.7624012231826782,
-0.6426410675048828,
-0.7423242330551147,
-0.006300194654613733,
-0.16402527689933777,
1.2022303342819214,
0.08923663944005966,
0.3064529001712799,
0.09203767776489258,
0.02149564027786255,
-0.387759268283844,
-0.5565930008888245,
-0.7918956279754639,
-0.4337071180343628,
0.27016907930374146,
0.22925306856632233,
0.7236807942390442,
0.30671387910842896,
0.49743443727493286,
0.3286272883415222,
-0.024603221565485,
-0.15555024147033691,
-0.26523566246032715,
-0.17569848895072937,
0.018052581697702408,
-0.6504627466201782,
-0.4809406101703644,
0.18397490680217743,
0.4598296582698822,
0.43006062507629395,
-0.07851839065551758,
0.23315128684043884,
-0.13644029200077057,
0.32814475893974304,
-0.5364654660224915,
0.483801931142807,
-0.49425008893013,
0.3481042683124542,
-0.1504189670085907,
-0.0935385599732399,
-0.3279746472835541,
-0.2382514327764511,
-0.05583595857024193,
-0.46396785974502563,
0.26607033610343933,
0.005552428308874369,
1.2440006732940674,
0.24570930004119873,
-0.23757484555244446,
-0.2072163075208664,
-0.32927677035331726,
0.5990490317344666,
-1.0947272777557373,
0.06651416420936584,
0.23372216522693634,
0.2590177655220032,
0.14241313934326172,
-0.7113596200942993,
-0.5853807330131531,
-0.047236550599336624,
-0.0723990797996521,
0.554121196269989,
-0.11247257143259048,
-0.04069994017481804,
0.5360841155052185,
0.4934265613555908,
-0.473104864358902,
0.05195516347885132,
-0.34594693779945374,
-0.15322865545749664,
0.6498521566390991,
0.42248162627220154,
0.21376819908618927,
-0.7295329570770264,
-0.30112361907958984,
-0.24055582284927368,
-0.12105723470449448,
0.2478262335062027,
0.6307380199432373,
0.3651214838027954,
-0.2888544201850891,
0.5088406205177307,
-0.3307337164878845,
0.48148199915885925,
0.07387802749872208,
0.07139728963375092,
0.5261169075965881,
0.013682520017027855,
-0.3289412260055542,
-0.12639956176280975,
1.385811686515808,
0.45011410117149353,
0.29582706093788147,
0.1345934122800827,
-0.3670122027397156,
0.3229047358036041,
0.2098464071750641,
-0.7372746467590332,
-0.3658663034439087,
0.071106918156147,
-0.5692267417907715,
-0.6880139112472534,
0.20764131844043732,
-0.9250110983848572,
-0.09491151571273804,
-0.3025926351547241,
0.4444364905357361,
-0.32930099964141846,
-0.28257423639297485,
0.2413054257631302,
-0.06229805946350098,
0.41418635845184326,
-0.149531289935112,
-0.7109760642051697,
0.3005588948726654,
0.17231981456279755,
0.6612123250961304,
0.18035976588726044,
-0.452107310295105,
0.0433599129319191,
-0.29046958684921265,
-0.19519594311714172,
0.5547943711280823,
-0.23273679614067078,
-0.6727297902107239,
-0.06384323537349701,
0.19326557219028473,
-0.08244466036558151,
-0.23065140843391418,
0.6693146228790283,
-0.2566636800765991,
0.4937744140625,
-0.11598529666662216,
-0.6712667346000671,
-0.12183918058872223,
0.13225780427455902,
-0.4324829578399658,
1.0168063640594482,
0.09274342656135559,
-0.8863414525985718,
0.12237228453159332,
-0.8397535085678101,
-0.3536195456981659,
-0.16678854823112488,
0.21228837966918945,
-0.619006872177124,
0.18539856374263763,
0.21459881961345673,
0.6178621053695679,
-0.1232113167643547,
0.4157465100288391,
-0.5442577004432678,
-0.2514176070690155,
0.4137786030769348,
-0.48766499757766724,
1.0535390377044678,
0.37528765201568604,
-0.49778294563293457,
-0.08072321116924286,
-0.89823317527771,
0.018857423216104507,
0.3425426781177521,
0.06685484200716019,
-0.13083532452583313,
-0.37343335151672363,
0.36836808919906616,
0.395332396030426,
0.3811125159263611,
-0.6855137944221497,
0.18839776515960693,
-0.4969906210899353,
0.24864080548286438,
0.6586058735847473,
0.15322349965572357,
-0.014831860549747944,
0.0875430703163147,
0.5162957310676575,
0.5197734236717224,
0.404350221157074,
-0.027980109676718712,
-0.27154606580734253,
-1.1437586545944214,
0.04654409736394882,
0.22170685231685638,
0.36137059330940247,
-0.4886920154094696,
0.9243771433830261,
-0.12908108532428741,
-0.7058700919151306,
-0.671288788318634,
-0.031273238360881805,
0.3349413275718689,
0.5834616422653198,
0.349334716796875,
-0.6099589467048645,
-0.7266508936882019,
-0.9080909490585327,
-0.28952357172966003,
-0.07021892815828323,
0.3567337393760681,
-0.18041656911373138,
0.7043991684913635,
-0.4614763557910919,
0.9201728701591492,
-0.8103907108306885,
-0.21254360675811768,
-0.29230332374572754,
0.38818520307540894,
0.3447949290275574,
0.5590458512306213,
0.38275274634361267,
-0.3498048484325409,
-0.47106629610061646,
-0.2536581754684448,
-0.8578817844390869,
-0.07903752475976944,
-0.014359371736645699,
-0.26908308267593384,
0.18657755851745605,
0.2463047057390213,
-0.6402685642242432,
0.49457207322120667,
0.17820966243743896,
-0.37372085452079773,
0.4610101282596588,
-0.08249348402023315,
-0.08975305408239365,
-1.4822264909744263,
0.27048417925834656,
0.42007705569267273,
-0.23042085766792297,
-0.31959640979766846,
0.08682281523942947,
-0.0779716819524765,
-0.43778347969055176,
-0.332300066947937,
0.5433255434036255,
-0.15600699186325073,
0.08510056138038635,
-0.45492324233055115,
0.04636962711811066,
0.10185197740793228,
0.8469257950782776,
0.27308154106140137,
0.4407324194908142,
0.6869586706161499,
-0.4493723213672638,
0.528587818145752,
0.4686737358570099,
-0.28065186738967896,
0.4905815124511719,
-0.8981640338897705,
0.11849357187747955,
-0.07514972984790802,
-0.018547577783465385,
-1.034854531288147,
-0.23106825351715088,
0.5146225094795227,
-0.6373499035835266,
0.30081987380981445,
0.07953198254108429,
-0.43709754943847656,
-0.5284326672554016,
-0.08618714660406113,
-0.0037307182792574167,
0.7843038439750671,
-0.5293011665344238,
0.5358080267906189,
0.26425763964653015,
0.09035451710224152,
-0.6846597194671631,
-0.8312510848045349,
-0.1591290980577469,
-0.10881663858890533,
-0.11772110313177109,
-0.26893678307533264,
-0.050111882388591766,
0.058414947241544724,
0.0033757558558136225,
-0.0031802430748939514,
-0.022213047370314598,
-0.04918352887034416,
0.3172246813774109,
0.49401381611824036,
0.06500095129013062,
-0.2043343484401703,
0.02754906937479973,
-0.37743106484413147,
0.43145322799682617,
0.06274817138910294,
0.7202690243721008,
-0.42809975147247314,
-0.08081518113613129,
-0.8310067057609558,
-0.2029513567686081,
0.4680907726287842,
-0.16371199488639832,
0.6565161943435669,
0.8415701985359192,
-0.13549131155014038,
0.017908887937664986,
-0.5007755756378174,
-0.1207558810710907,
-0.4352450966835022,
0.6206969022750854,
-0.39513951539993286,
-0.19861961901187897,
0.6874809265136719,
0.08133552968502045,
-0.09477893263101578,
0.7966920137405396,
0.5100525617599487,
-0.18030722439289093,
1.2256797552108765,
0.3360752761363983,
-0.42815136909484863,
0.3851478695869446,
-0.7211723923683167,
0.2031792849302292,
-0.8078579902648926,
-0.3200678825378418,
-0.3906260132789612,
-0.10430644452571869,
-0.5905938148498535,
0.22072340548038483,
0.14105935394763947,
-0.15341563522815704,
-0.4295223355293274,
0.3028844892978668,
-0.4166332185268402,
0.39515388011932373,
0.46166786551475525,
0.155702143907547,
0.002389472909271717,
0.019412383437156677,
-0.019537655636668205,
-0.07666707783937454,
-0.713481068611145,
-0.38036149740219116,
1.1177935600280762,
0.6192654371261597,
0.8328606486320496,
-0.29884809255599976,
0.672161877155304,
0.146025151014328,
0.10098587721586227,
-0.885931670665741,
0.6910520792007446,
-0.18432268500328064,
-0.5397454500198364,
0.031213659793138504,
-0.43668246269226074,
-0.8050223588943481,
0.13970990478992462,
-0.16161030530929565,
-0.2873347997665405,
0.1215035691857338,
-0.13338926434516907,
-0.18770618736743927,
0.27979859709739685,
-0.4979703724384308,
1.0834875106811523,
-0.16316311061382294,
-0.14535100758075714,
-0.13622450828552246,
-0.8313792943954468,
0.3605324625968933,
0.22309808433055878,
0.0012039762223139405,
0.013668633997440338,
0.1500517576932907,
0.9056559801101685,
-0.3747326135635376,
1.1075122356414795,
-0.516864538192749,
0.19231437146663666,
0.3267437517642975,
-0.05710447579622269,
0.29935625195503235,
0.06812792271375656,
-0.019420692697167397,
0.23339508473873138,
-0.057281043380498886,
-0.5350555777549744,
-0.5943124294281006,
0.6858386993408203,
-1.4490877389907837,
-0.2704229950904846,
-0.6825853586196899,
-0.4312867522239685,
-0.2090437412261963,
0.226443350315094,
0.6527957320213318,
0.7054652571678162,
-0.22530454397201538,
0.059022463858127594,
0.4259279668331146,
0.03601686283946037,
0.5281948447227478,
0.4185972511768341,
-0.2897607684135437,
-0.6535032987594604,
0.8414303064346313,
0.02443801611661911,
0.13019002974033356,
0.03841088339686394,
0.2877494990825653,
-0.6716035604476929,
-0.11080323904752731,
-0.2576647102832794,
0.42211365699768066,
-0.9293256998062134,
-0.13653749227523804,
-0.5796683430671692,
-0.3030420243740082,
-0.5748308300971985,
0.14216509461402893,
-0.4968692660331726,
-0.26276978850364685,
-0.3141801357269287,
-0.19156526029109955,
0.1659613996744156,
0.4930109977722168,
0.13007162511348724,
0.7997984290122986,
-0.7207344174385071,
0.13243024051189423,
0.08386500179767609,
0.3203825354576111,
0.04707980901002884,
-0.8842548131942749,
-0.4072542190551758,
0.13737834990024567,
-0.43322816491127014,
-0.813153088092804,
0.8053463101387024,
-0.19124814867973328,
0.38554784655570984,
0.4420621991157532,
-0.11396703869104385,
0.7575215101242065,
0.12323020398616791,
0.908632755279541,
0.3978833556175232,
-1.17695951461792,
0.6733500957489014,
-0.3290901184082031,
0.49049118161201477,
0.6831445693969727,
0.6543305516242981,
-0.48758235573768616,
-0.31587520241737366,
-1.2287272214889526,
-0.6179801225662231,
0.8239473700523376,
0.037721987813711166,
0.2269325852394104,
-0.04313486069440842,
0.5012080073356628,
-0.031387876719236374,
0.35934269428253174,
-1.2642496824264526,
-0.47319331765174866,
-0.7518247961997986,
-0.5356791615486145,
-0.2321072667837143,
-0.18542350828647614,
0.09292083233594894,
-0.4770161509513855,
1.3097834587097168,
-0.10585149377584457,
0.23298348486423492,
0.14962536096572876,
-0.09483672678470612,
-0.09791205078363419,
0.04108376428484917,
0.08411269634962082,
0.249345064163208,
-0.2511098086833954,
-0.17905734479427338,
0.14094030857086182,
-0.40996089577674866,
0.1333729475736618,
-0.05044630914926529,
-0.3564758896827698,
0.19002927839756012,
0.16114437580108643,
1.4040344953536987,
0.043029025197029114,
-0.21171720325946808,
0.6019213199615479,
-0.09056545794010162,
-0.046130914241075516,
-0.4969089925289154,
0.04095296189188957,
-0.11311214417219162,
-0.07148579508066177,
-0.11474165320396423,
0.29694852232933044,
0.10901587456464767,
-0.5207950472831726,
-0.1642296463251114,
0.26488029956817627,
-0.5526008009910583,
-0.35455945134162903,
0.5975306034088135,
0.19814208149909973,
-0.10092883557081223,
0.8080428838729858,
-0.25532448291778564,
-0.41377121210098267,
0.6116689443588257,
0.5587629079818726,
1.1140894889831543,
-0.1623864769935608,
0.2852543592453003,
0.726312518119812,
0.01593082956969738,
-0.20945078134536743,
0.34944838285446167,
0.17995724081993103,
-0.7956802248954773,
-0.09326997399330139,
-0.6888080835342407,
-0.29342442750930786,
0.2683151662349701,
-1.0169626474380493,
0.45587846636772156,
-0.5708343982696533,
-0.38456061482429504,
-0.1921686828136444,
0.3392293155193329,
-0.6039196848869324,
0.7077277302742004,
0.03558516874909401,
0.800091564655304,
-1.1685373783111572,
0.7574940323829651,
0.6733788251876831,
-0.8912020921707153,
-1.0183318853378296,
-0.06395364552736282,
-0.24794554710388184,
-0.8965063095092773,
0.539673388004303,
0.18677838146686554,
-0.02470782957971096,
0.3168444037437439,
-0.707181453704834,
-0.48661941289901733,
0.8936445116996765,
-0.03582253307104111,
-0.5129804015159607,
0.08881022036075592,
0.3061360716819763,
0.7300274968147278,
-0.30738627910614014,
0.7209188342094421,
0.5077052712440491,
0.3010474443435669,
-0.07834956794977188,
-0.49070772528648376,
-0.1422620713710785,
-0.5359635949134827,
0.21492937207221985,
0.013664258643984795,
-0.9746398329734802,
0.7929680347442627,
0.1756221503019333,
0.25067731738090515,
0.1630198061466217,
0.8306553959846497,
0.08081222325563431,
0.14139555394649506,
0.42668747901916504,
0.7424044013023376,
0.5631194114685059,
-0.09259385615587234,
1.0200623273849487,
-0.5211366415023804,
0.8107776641845703,
0.889756977558136,
-0.08648660778999329,
0.7137775421142578,
0.33224019408226013,
-0.2930074632167816,
0.8484600186347961,
0.6476871967315674,
-0.36146241426467896,
0.41960757970809937,
-0.04229823872447014,
-0.005528278648853302,
-0.30596575140953064,
0.08720876276493073,
-0.2960715591907501,
0.544208824634552,
0.07767534255981445,
-0.45770201086997986,
-0.026242153719067574,
0.06828252971172333,
0.15308773517608643,
-0.08847768604755402,
-0.4409237504005432,
0.6606095433235168,
0.08581897616386414,
-0.6393141150474548,
0.4306901693344116,
0.016134461387991905,
0.816414475440979,
-0.9046670198440552,
0.3791712820529938,
-0.29831841588020325,
0.28245165944099426,
-0.25022634863853455,
-0.7257681488990784,
0.2467314749956131,
0.024585606530308723,
-0.03148305043578148,
0.12610462307929993,
0.6852282285690308,
-0.34870007634162903,
-0.828725278377533,
0.14101402461528778,
0.40395134687423706,
0.22173407673835754,
0.16414666175842285,
-1.063293695449829,
-0.08996611833572388,
0.13931028544902802,
-0.622022271156311,
0.23740169405937195,
0.2729203402996063,
0.3087750971317291,
0.6302374601364136,
0.47430285811424255,
0.1336095780134201,
-0.07133211940526962,
0.3598240315914154,
0.6633759140968323,
-0.7631063461303711,
-0.716863214969635,
-0.9222354888916016,
0.5544322729110718,
-0.24890880286693573,
-0.587757408618927,
0.8774169087409973,
0.6934605240821838,
0.8025094270706177,
-0.5166625380516052,
0.9112454056739807,
-0.08758700639009476,
0.34836432337760925,
-0.4774554669857025,
0.637690544128418,
-0.4894057810306549,
-0.06603505462408066,
-0.3233685791492462,
-0.8189218044281006,
-0.04619854688644409,
0.7852978706359863,
-0.3556431829929352,
0.18251554667949677,
0.7701585292816162,
0.9278952479362488,
-0.09546173363924026,
0.2524808347225189,
0.17066159844398499,
0.37471911311149597,
0.11323599517345428,
0.411846786737442,
0.7990849614143372,
-0.8687353134155273,
0.2026338279247284,
-0.6920320391654968,
0.021327264606952667,
0.15964500606060028,
-0.7076300382614136,
-1.0342168807983398,
-0.4550267159938812,
-0.6142180562019348,
-0.5099128484725952,
-0.2518196105957031,
1.0811387300491333,
0.4486618936061859,
-0.7507384419441223,
-0.5277466773986816,
-0.20691514015197754,
-0.5222234725952148,
-0.03838835656642914,
-0.3392937481403351,
0.378541499376297,
-0.7498742938041687,
-0.9112122654914856,
-0.07034724205732346,
-0.24916279315948486,
0.17155566811561584,
-0.4208897054195404,
-0.03830864652991295,
-0.10212152451276779,
-0.05145208537578583,
0.2876509726047516,
0.09787952899932861,
-0.5897589921951294,
-0.05623018369078636,
-0.011348890140652657,
-0.16216835379600525,
0.12337999045848846,
0.46487537026405334,
-0.6071211099624634,
0.4578077495098114,
0.40325912833213806,
0.34697362780570984,
0.5821713209152222,
-0.04962834715843201,
0.3942183256149292,
-0.7238190770149231,
0.28935858607292175,
0.08261720091104507,
0.6820299029350281,
0.31154507398605347,
-0.3304417133331299,
0.43953272700309753,
0.6959712505340576,
-0.5132838487625122,
-0.6230165958404541,
-0.05010337755084038,
-1.1080844402313232,
-0.21526314318180084,
1.1617857217788696,
-0.11632467806339264,
-0.4501078128814697,
0.16869179904460907,
-0.46668946743011475,
0.6246311068534851,
-0.2425716072320938,
0.7731454372406006,
0.7709396481513977,
0.020014319568872452,
-0.07491999119520187,
-0.11548643559217453,
0.3298874795436859,
0.5588752031326294,
-0.8393490314483643,
-0.036105651408433914,
0.31701430678367615,
0.4879336953163147,
0.09374933689832687,
0.6159188747406006,
-0.24422380328178406,
0.2267860323190689,
0.06286907196044922,
0.5741957426071167,
-0.29603639245033264,
-0.12706877291202545,
-0.561842679977417,
0.09158916026353836,
0.029535917565226555,
-0.31648561358451843
] |
openskyml/dalle-3-xl
|
openskyml
| 2023-11-17T16:04:29Z | 9,215 | 20 |
diffusers
|
[
"diffusers",
"text-to-image",
"stable-diffusion",
"lora",
"dalle-3",
"dalle",
"deepvision",
"template:sd-lora",
"openskyml",
"en",
"fr",
"ru",
"base_model:stablediffusionapi/juggernaut-xl-v5",
"license:mit",
"has_space",
"region:us"
] |
text-to-image
| 2023-11-16T10:51:11Z |
---
tags:
- text-to-image
- stable-diffusion
- lora
- dalle-3
- dalle
- deepvision
- diffusers
- template:sd-lora
- openskyml
widget:
- text: >-
a close up of a fire breathing pokemon figure, digital art, trending on
polycount, real life charmander, sparks flying, photo-realistic unreal
engine, pokemon in the wild
output:
url: images/00002441-10291230.jpeg
- text: >-
astronaut riding a llama on Mars
output:
url: images/c96a4147-b14d-4e71-8c08-e04c31c8be18.jpg
- text: >-
cube cutout of an isometric programmer bedroom, 3d art, muted colors, soft lighting, high detail, concept art, behance, ray tracing
output:
url: images/b7ad0f38-5d2a-48cd-b7d4-b94be1d23c40.jpg
- text: >-
mario, mario (series), 1boy, blue overalls, brown hair, facial hair, gloves,
hat, male focus, mustache, overalls, red headwear, red shirt, shirt, short
hair, upper body, white gloves.
parameters:
negative_prompt: >-
(worst quality, low quality, normal quality, lowres, low details,
oversaturated, undersaturated, overexposed, underexposed, grayscale, bw,
bad photo, bad photography, bad art:1.4), (watermark, signature, text
font, username, error, logo, words, letters, digits, autograph, trademark,
name:1.2), (blur, blurry, grainy), morbid, ugly, asymmetrical, mutated
malformed, mutilated, poorly lit, bad shadow, draft, cropped, out of
frame, cut off, censored, jpeg artifacts, out of focus, glitch, duplicate,
(bad hands, bad anatomy, bad body, bad face, bad teeth, bad arms, bad
legs, deformities:1.3)
output:
url: images/00002489-10291327.jpeg
base_model: stablediffusionapi/juggernaut-xl-v5
instance_prompt: <lora:Dall-e_3_0.3-v2-000003>
license: mit
language:
- en
- fr
- ru
pipeline_tag: text-to-image
library_name: diffusers
---
# DALL•E 3 XL
<Gallery />
## Model description
This is a test model very similar to Dall•E 3.
## Official demo
You can use official demo on Spaces: [try](https://huggingface.co/spaces/openskyml/dalle-3).
### Published on HF.co with the OpenSkyML team
## Download model
Weights for this model are available in Safetensors format.
[Download](/openskyml/dalle-3/tree/main) them in the Files & versions tab.
|
[
-0.09730639308691025,
-0.593808114528656,
0.5905571579933167,
0.36211642622947693,
-0.2187212109565735,
-0.38179919123649597,
0.2700655460357666,
-0.43277376890182495,
-0.15269094705581665,
0.4046626687049866,
-0.40392956137657166,
-0.7184991240501404,
-0.31324198842048645,
0.13400208950042725,
-0.4284088611602783,
1.0523980855941772,
-0.4446864426136017,
0.40340936183929443,
-0.11835764348506927,
-0.21485307812690735,
0.02932797558605671,
0.012603595852851868,
-0.8061237931251526,
-0.17697355151176453,
0.6042122840881348,
0.3788970410823822,
0.518144965171814,
0.4630882441997528,
0.45543456077575684,
0.23522929847240448,
-0.1538848578929901,
-0.6371622681617737,
-0.38588422536849976,
-0.06671777367591858,
0.2843811511993408,
-0.6357464790344238,
-1.1887606382369995,
0.2538822889328003,
0.6217013001441956,
0.3396756052970886,
-0.33473414182662964,
0.09990513324737549,
-0.028828658163547516,
0.5240540504455566,
-0.7320114970207214,
0.18631435930728912,
-0.2496272772550583,
0.27745550870895386,
-0.20322935283184052,
0.09823134541511536,
-0.45882123708724976,
-0.36521223187446594,
-0.24380061030387878,
-0.9140300750732422,
0.0917804017663002,
0.4210597574710846,
1.1257869005203247,
0.013643499463796616,
-0.8273282051086426,
-0.015240570530295372,
-0.5386984348297119,
0.7127081155776978,
-0.8300648331642151,
0.5660297274589539,
0.4409830868244171,
0.7680829763412476,
0.35249486565589905,
-0.8112412095069885,
-0.591534435749054,
-0.3034849166870117,
-0.06908431649208069,
0.1582127958536148,
-0.09929586946964264,
-0.15466666221618652,
0.35461682081222534,
0.41666191816329956,
-0.710879921913147,
-0.1584027111530304,
-0.6410761475563049,
0.10343067348003387,
0.6888116598129272,
0.3871648609638214,
0.3439076542854309,
0.2591911554336548,
-0.8306562900543213,
-0.4620988070964813,
-0.945737898349762,
-0.40826502442359924,
0.6340768933296204,
-0.029652435332536697,
-0.6875175833702087,
0.8240895867347717,
-0.02380075864493847,
0.6717901229858398,
0.03320716321468353,
-0.09501668065786362,
0.625332772731781,
-0.10155551135540009,
-0.30690819025039673,
-0.2310429960489273,
0.5165343284606934,
0.719944953918457,
-0.0077395192347466946,
0.3581179082393646,
-0.5450575947761536,
-0.27848681807518005,
0.2862602174282074,
-0.8922454714775085,
-0.47808215022087097,
0.31078580021858215,
-0.8007181286811829,
-0.5553974509239197,
0.05626959726214409,
-0.4950685501098633,
-0.33888670802116394,
-0.02019275724887848,
0.6470946669578552,
-0.5554722547531128,
-0.5975297093391418,
0.3219391405582428,
0.009121780283749104,
0.40387800335884094,
0.5078114867210388,
-0.49535444378852844,
1.04365873336792,
0.19161351025104523,
0.5406070351600647,
-0.17670385539531708,
-0.25510427355766296,
-0.43448781967163086,
0.11960089951753616,
-0.25081053376197815,
0.44395455718040466,
0.08758537471294403,
-0.4718502461910248,
-0.032462868839502335,
0.26205065846443176,
0.04273930937051773,
-0.3904273211956024,
0.7793222665786743,
-0.9881099462509155,
0.10683881491422653,
-0.00038082123501226306,
-0.709238588809967,
-0.2630414068698883,
0.3306288421154022,
-1.1661137342453003,
0.941602885723114,
0.5319783687591553,
-1.0320672988891602,
0.3729105293750763,
-0.987657368183136,
0.15487737953662872,
0.24616384506225586,
0.03661248832941055,
-0.7681861519813538,
-0.2839629650115967,
-0.4297391176223755,
0.3581075966358185,
0.08426843583583832,
-0.6024726033210754,
-0.7106733322143555,
-0.24790960550308228,
-0.0626068264245987,
0.26133257150650024,
0.9493020176887512,
0.6174275875091553,
-0.021047530695796013,
0.18358831107616425,
-1.1358857154846191,
0.07952027767896652,
0.37500786781311035,
-0.43753522634506226,
-0.41394588351249695,
-0.10290181636810303,
0.8793676495552063,
-0.07291671633720398,
0.35131195187568665,
-0.7307837605476379,
0.2724047303199768,
0.02790655381977558,
-0.17629772424697876,
0.34666183590888977,
-0.1218697801232338,
0.44290125370025635,
-0.3557773530483246,
0.6706650257110596,
0.21856167912483215,
0.40548601746559143,
0.5929648280143738,
-0.41434693336486816,
-0.533627450466156,
-0.15352056920528412,
0.37442997097969055,
0.24316158890724182,
-0.3487604260444641,
0.05067472904920578,
-0.08511369675397873,
-0.5083447098731995,
-0.2462548315525055,
-0.06997030228376389,
0.41162189841270447,
-0.0047721900045871735,
0.2043488621711731,
-0.03427640348672867,
-0.5316563248634338,
-1.2388815879821777,
0.0059454357251524925,
-0.11038882285356522,
-0.07907399535179138,
0.16463789343833923,
0.8243060111999512,
0.06110747531056404,
0.6241496801376343,
-0.7598375082015991,
-0.07264219969511032,
-0.37008562684059143,
0.1895463466644287,
0.2950165569782257,
0.4499087333679199,
0.8664841055870056,
-1.0437097549438477,
-0.9358695149421692,
0.0245403740555048,
-0.36119115352630615,
-0.2247450202703476,
0.5070676207542419,
-0.06476815789937973,
0.43860360980033875,
0.31409120559692383,
-0.8108707666397095,
0.5060393810272217,
0.6930903196334839,
-0.8430231809616089,
0.6762756109237671,
0.07671350240707397,
0.03593050315976143,
-1.2132062911987305,
0.22570300102233887,
-0.13032729923725128,
-0.4155595600605011,
-0.38039565086364746,
0.5067466497421265,
0.7671704292297363,
0.11369626224040985,
-0.9065287113189697,
0.729260265827179,
-0.6111138463020325,
-0.2731425166130066,
-0.15449820458889008,
-0.05699494853615761,
0.11447422951459885,
0.1085139736533165,
-0.011094275861978531,
0.6188833117485046,
0.42668643593788147,
-0.36666131019592285,
0.19772540032863617,
0.32027482986450195,
-0.4643746316432953,
0.5482032299041748,
-1.0041139125823975,
-0.02751459740102291,
0.07033827155828476,
0.23044084012508392,
-0.5707449316978455,
-0.5152287483215332,
0.26170384883880615,
-0.104620561003685,
0.35118383169174194,
-0.07947812229394913,
-0.471587210893631,
-0.5670225620269775,
-0.6550880670547485,
0.5179978013038635,
0.7622209191322327,
-0.34896570444107056,
0.23169350624084473,
0.17610304057598114,
0.08420576900243759,
-0.25067830085754395,
-0.418365478515625,
-0.5484889149665833,
-0.4276881515979767,
-0.4677942395210266,
0.5060203671455383,
-0.43441733717918396,
-0.661497950553894,
0.2311769425868988,
0.16025148332118988,
-0.364842027425766,
-0.028080224990844727,
0.2717960476875305,
0.3916262090206146,
-0.28300783038139343,
-0.051807697862386703,
-0.48465338349342346,
0.12754620611667633,
-0.09059369564056396,
0.09325037151575089,
0.3328757584095001,
-0.3444063663482666,
-0.25947868824005127,
-0.26439183950424194,
0.2688901722431183,
0.6556664109230042,
0.20080707967281342,
0.781968355178833,
0.6019550561904907,
-0.6720025539398193,
-0.19430984556674957,
-0.40471428632736206,
-0.06680681556463242,
-0.3842325210571289,
0.40213438868522644,
-0.49726104736328125,
-0.4057421386241913,
0.14855307340621948,
0.44917991757392883,
-0.035730261355638504,
0.6267629265785217,
0.540749728679657,
0.005727844778448343,
1.3594467639923096,
0.9027155637741089,
0.4263138771057129,
-0.126247838139534,
-0.48306578397750854,
-0.23397956788539886,
-1.0794118642807007,
-0.10852012783288956,
-0.4621771574020386,
-0.17993953824043274,
-0.08095306903123856,
-0.06691717356443405,
0.4347864091396332,
0.5673995614051819,
-0.5546889305114746,
0.6966583132743835,
0.09662619233131409,
0.5385494232177734,
0.484195739030838,
0.09450429677963257,
0.267490953207016,
-0.3889276087284088,
-0.04152972623705864,
0.02602122537791729,
-0.2352529615163803,
-0.7370015978813171,
1.0330113172531128,
0.46787571907043457,
0.9440531730651855,
0.37894660234451294,
0.6459006071090698,
-0.039172668009996414,
0.44397667050361633,
-0.6660137176513672,
0.2965772747993469,
0.2564518451690674,
-0.9703272581100464,
-0.17509065568447113,
-0.10789526253938675,
-0.7046661376953125,
-0.1085822805762291,
-0.239669069647789,
-0.6234449744224548,
-0.14673757553100586,
0.24038466811180115,
-0.45472100377082825,
0.35655370354652405,
-0.6057039499282837,
0.9033612012863159,
0.08997175097465515,
-0.3156150281429291,
0.12713657319545746,
-0.34441760182380676,
0.6565155386924744,
0.015979956835508347,
0.20242592692375183,
-0.11423171311616898,
-0.367775559425354,
0.626630961894989,
-0.7334443926811218,
0.5725381374359131,
-0.17629855871200562,
-0.39111894369125366,
0.1669653058052063,
0.21092361211776733,
0.5801497101783752,
0.11140082031488419,
-0.2303449958562851,
-0.26630446314811707,
0.18254198133945465,
-0.5053673982620239,
-0.4966713786125183,
0.8159582018852234,
-1.1371077299118042,
-0.18061010539531708,
-0.29375600814819336,
-0.602931797504425,
0.029044559225440025,
0.25859904289245605,
0.0794166773557663,
0.30219566822052,
-0.2746984660625458,
0.15871047973632812,
0.50133216381073,
-0.17811962962150574,
0.49835798144340515,
0.8946866393089294,
-0.7329687476158142,
-0.2552747428417206,
0.40655797719955444,
-0.02663176693022251,
0.23928268253803253,
0.2845568358898163,
0.06890890747308731,
-0.35521838068962097,
-0.4609786868095398,
-0.48799097537994385,
0.1442611664533615,
-0.6073600649833679,
-0.3083650469779968,
-0.9706871509552002,
-0.2861490547657013,
-0.2677592635154724,
-0.02805342897772789,
-0.4404155910015106,
-0.630351722240448,
-0.18141359090805054,
-0.25925374031066895,
0.6844236850738525,
1.3602808713912964,
-0.24169589579105377,
0.3866620659828186,
-0.5619080662727356,
0.2071533501148224,
0.6011634469032288,
0.8397170901298523,
-0.15242993831634521,
-0.0032898245844990015,
-0.2880218029022217,
-0.15218773484230042,
-0.9447883367538452,
-1.0180110931396484,
0.329624742269516,
-0.11191494762897491,
0.1882290095090866,
0.3667503595352173,
0.058670129626989365,
0.016222499310970306,
-0.6118626594543457,
1.0083229541778564,
0.42762887477874756,
-0.5789152979850769,
0.45120343565940857,
-0.724934458732605,
0.07951182126998901,
0.382041871547699,
0.7698350548744202,
0.2231900990009308,
0.22675877809524536,
-0.7307420372962952,
-0.6577824950218201,
0.7317109107971191,
0.5912110209465027,
-0.2873353660106659,
0.1900923252105713,
-0.02904375270009041,
0.3013468384742737,
-0.13444770872592926,
-1.3165740966796875,
-0.2963067293167114,
0.026142040267586708,
-0.11287888139486313,
0.15077996253967285,
-0.4953167736530304,
-0.3476521074771881,
-0.01614922657608986,
0.9486434459686279,
0.2046644538640976,
0.036091919988393784,
0.07401610910892487,
0.19075439870357513,
-0.5460519790649414,
0.19633051753044128,
0.4501420557498932,
0.3491017818450928,
-0.9053471088409424,
0.06958558410406113,
0.4347361922264099,
-0.5776843428611755,
0.17015889286994934,
0.1205935999751091,
-0.0032262224704027176,
-0.07706135511398315,
0.1454482078552246,
0.5611580610275269,
0.38169947266578674,
-0.12143220007419586,
0.933983564376831,
-0.2932550013065338,
-0.5929985642433167,
-0.4905865788459778,
0.0711425170302391,
0.3592343330383301,
0.24796652793884277,
-0.07084371894598007,
0.028119541704654694,
0.5492891669273376,
-0.3909827172756195,
0.07291509211063385,
0.06840398907661438,
-0.6323937773704529,
-0.42672252655029297,
1.0413715839385986,
0.24213796854019165,
-0.47907188534736633,
0.24493859708309174,
-0.29894670844078064,
-0.1936623901128769,
0.751242995262146,
0.8631922006607056,
0.7215591073036194,
-0.060401082038879395,
0.06883915513753891,
0.5251242518424988,
-0.02854050137102604,
-0.2512032389640808,
0.9502013325691223,
0.121634341776371,
-0.519902229309082,
-0.04584311321377754,
-0.8522047400474548,
-0.24243144690990448,
0.42105549573898315,
-0.7694200277328491,
0.8307793140411377,
-0.13947413861751556,
0.04366900771856308,
-0.28228363394737244,
0.24078865349292755,
-0.7239115238189697,
0.2000160962343216,
0.13849738240242004,
1.5918269157409668,
-0.5581640005111694,
0.9173352122306824,
0.9698049426078796,
-0.4184361696243286,
-0.844890832901001,
-0.15649844706058502,
0.2636147737503052,
-0.4728023111820221,
0.8958898782730103,
0.26760056614875793,
0.03464470058679581,
0.1927127093076706,
-0.9876444935798645,
-0.9675776362419128,
1.5140832662582397,
-0.1933520883321762,
-0.5681261420249939,
0.04614376649260521,
-0.3608192801475525,
0.3167200982570648,
-0.553106427192688,
0.46177569031715393,
0.06152961775660515,
0.5815163254737854,
-0.07550650089979172,
-0.8229098916053772,
0.036197349429130554,
-0.6639825701713562,
0.24758397042751312,
0.0566311813890934,
-0.6526555418968201,
1.388710379600525,
-0.19424019753932953,
-0.17532694339752197,
0.6892167925834656,
0.41159412264823914,
0.6810998320579529,
0.2000245302915573,
1.0374574661254883,
0.8697285056114197,
0.05990250036120415,
0.2059832215309143,
1.3946682214736938,
-0.2517600357532501,
0.5937721729278564,
1.3168625831604004,
-0.8176630735397339,
0.9255529642105103,
0.46852532029151917,
-0.48515620827674866,
0.5249646902084351,
0.5535476207733154,
0.09944500029087067,
0.5019700527191162,
0.40107983350753784,
-0.10879356414079666,
-0.026816077530384064,
0.1504097580909729,
-0.7284607291221619,
0.16792836785316467,
0.12511494755744934,
-0.32132452726364136,
-0.21385906636714935,
-0.2758842408657074,
0.012851512990891933,
-0.060889098793268204,
-0.09108871221542358,
0.33211085200309753,
-0.06771544367074966,
-0.12497763335704803,
0.4563199579715729,
-0.013679884374141693,
0.47876495122909546,
-0.5937178730964661,
-0.41875484585762024,
0.11732606589794159,
0.22677697241306305,
-0.07957691699266434,
-0.6454803347587585,
0.18992725014686584,
-0.2660047709941864,
-0.058113012462854385,
-0.1993282437324524,
0.5131866931915283,
-0.3542499244213104,
-0.61463463306427,
0.49466413259506226,
0.515434205532074,
0.20269262790679932,
0.32162097096443176,
-0.6450771689414978,
0.2697684168815613,
-0.3908304274082184,
-0.7039218544960022,
-0.051134247332811356,
0.15551617741584778,
0.21311795711517334,
0.4834110140800476,
-0.0024786072317510843,
0.11055820435285568,
-0.11500053107738495,
0.21165066957473755,
0.6678616404533386,
-0.3859456777572632,
-0.2562379240989685,
-0.3526591956615448,
0.6791824698448181,
-0.3436541259288788,
-0.4758782386779785,
0.8472708463668823,
0.7841737270355225,
1.0767087936401367,
-0.6565861105918884,
0.6331514716148376,
-0.43604063987731934,
0.6386826038360596,
-0.6981871128082275,
1.0453046560287476,
-1.0421141386032104,
-0.08911508321762085,
-0.3303426504135132,
-1.0747984647750854,
-0.39481356739997864,
0.5590746998786926,
0.21957048773765564,
0.053198639303445816,
0.9326682090759277,
0.9239950776100159,
-0.4752051532268524,
0.3693554401397705,
0.5999557375907898,
0.8174518942832947,
-0.24263492226600647,
0.5363882184028625,
0.8851543068885803,
-0.9361274242401123,
0.441069632768631,
-0.37871068716049194,
-0.25190749764442444,
-0.1516139805316925,
-0.8867239952087402,
-0.9059759974479675,
-0.7027750015258789,
-0.4404338598251343,
-0.2926395535469055,
0.18903467059135437,
0.872262716293335,
0.9856332540512085,
-0.8015458583831787,
-0.30248725414276123,
-0.2199592888355255,
-0.0998794436454773,
0.03309064358472824,
-0.23791305720806122,
0.2811649441719055,
0.1628638654947281,
-0.9881779551506042,
0.0748724639415741,
-0.09128811955451965,
0.6385139226913452,
-0.19649875164031982,
-0.4089130163192749,
-0.39943933486938477,
-0.27086636424064636,
0.4940003752708435,
-0.07364575564861298,
-0.5046328902244568,
-0.28880414366722107,
-0.2763858735561371,
-0.20898358523845673,
-0.35728055238723755,
0.35816121101379395,
-0.43439120054244995,
-0.11007518321275711,
0.4541527032852173,
-0.27637603878974915,
0.3371708393096924,
-0.39804890751838684,
0.7744614481925964,
-0.5315617322921753,
0.04551674798130989,
-0.10534098744392395,
0.8389769196510315,
0.25825315713882446,
-0.2727241814136505,
0.9750279784202576,
-0.06787288188934326,
-0.44068577885627747,
-0.6053594350814819,
0.19612976908683777,
-1.1392033100128174,
-0.23552346229553223,
1.34792160987854,
-0.20259779691696167,
-0.32013148069381714,
0.1955723613500595,
-0.6584333777427673,
0.2143780142068863,
-0.16778534650802612,
0.5510595440864563,
0.5981773734092712,
0.16854189336299896,
-0.22329804301261902,
-0.7885991334915161,
0.6007273197174072,
0.11095112562179565,
-0.7214524149894714,
-0.2853354811668396,
0.3198886215686798,
0.37392690777778625,
0.19717800617218018,
0.5807398557662964,
-0.7016912698745728,
0.38535791635513306,
0.11368786543607712,
0.4886609613895416,
0.18899227678775787,
-0.3778361678123474,
-0.1595270335674286,
0.2727234661579132,
0.2165880799293518,
-0.11432553082704544
] |
iZELX1/Anything-V3-X
|
iZELX1
| 2023-02-06T01:21:09Z | 9,182 | 16 |
diffusers
|
[
"diffusers",
"Anything V3",
"stable diffusion",
"stable diffusion diffusers",
"text-to-image",
"en",
"license:creativeml-openrail-m",
"endpoints_compatible",
"has_space",
"diffusers:StableDiffusionPipeline",
"region:us"
] |
text-to-image
| 2023-01-24T09:17:22Z |
---
license: creativeml-openrail-m
language:
- en
library_name: diffusers
pipeline_tag: text-to-image
tags:
- Anything V3
- stable diffusion
- diffusers
- stable diffusion diffusers
---
|
[
-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
] |
MoritzLaurer/multilingual-MiniLMv2-L6-mnli-xnli
|
MoritzLaurer
| 2023-03-20T08:26:58Z | 9,148 | 23 |
transformers
|
[
"transformers",
"pytorch",
"safetensors",
"xlm-roberta",
"text-classification",
"zero-shot-classification",
"nli",
"multilingual",
"en",
"ar",
"bg",
"de",
"el",
"es",
"fr",
"hi",
"ru",
"sw",
"th",
"tr",
"ur",
"vi",
"zh",
"dataset:multi_nli",
"dataset:xnli",
"arxiv:2002.10957",
"arxiv:1809.05053",
"license:mit",
"endpoints_compatible",
"region:us"
] |
zero-shot-classification
| 2023-02-11T13:10:37Z |
---
language:
- multilingual
- en
- ar
- bg
- de
- el
- es
- fr
- hi
- ru
- sw
- th
- tr
- ur
- vi
- zh
license: mit
tags:
- zero-shot-classification
- text-classification
- nli
- pytorch
metrics:
- accuracy
datasets:
- multi_nli
- xnli
pipeline_tag: zero-shot-classification
widget:
- text: "Angela Merkel ist eine Politikerin in Deutschland und Vorsitzende der CDU"
candidate_labels: "politics, economy, entertainment, environment"
---
---
# Multilingual MiniLMv2-L6-mnli-xnli
## Model description
This multilingual model can perform natural language inference (NLI) on 100+ languages and is therefore also
suitable for multilingual zero-shot classification. The underlying multilingual-MiniLM-L6 model was created
by Microsoft and was distilled from XLM-RoBERTa-large (see details [in the original paper](https://arxiv.org/pdf/2002.10957.pdf)
and newer information in [this repo](https://github.com/microsoft/unilm/tree/master/minilm)).
The model was then fine-tuned on the [XNLI dataset](https://huggingface.co/datasets/xnli), which contains hypothesis-premise pairs from 15 languages,
as well as the English [MNLI dataset](https://huggingface.co/datasets/multi_nli).
The main advantage of distilled models is that they are smaller (faster inference, lower memory requirements) than their teachers (XLM-RoBERTa-large).
The disadvantage is that they lose some of the performance of their larger teachers.
For highest inference speed, I recommend using this 6-layer model. For higher performance I recommend
[mDeBERTa-v3-base-mnli-xnli](https://huggingface.co/MoritzLaurer/mDeBERTa-v3-base-mnli-xnli) (as of 14.02.2023).
### How to use the model
#### Simple zero-shot classification pipeline
```python
from transformers import pipeline
classifier = pipeline("zero-shot-classification", model="MoritzLaurer/multilingual-MiniLMv2-L6-mnli-xnli")
sequence_to_classify = "Angela Merkel ist eine Politikerin in Deutschland und Vorsitzende der CDU"
candidate_labels = ["politics", "economy", "entertainment", "environment"]
output = classifier(sequence_to_classify, candidate_labels, multi_label=False)
print(output)
```
#### NLI use-case
```python
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
device = torch.device("cuda") if torch.cuda.is_available() else torch.device("cpu")
model_name = "MoritzLaurer/multilingual-MiniLMv2-L6-mnli-xnli"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSequenceClassification.from_pretrained(model_name)
premise = "Angela Merkel ist eine Politikerin in Deutschland und Vorsitzende der CDU"
hypothesis = "Emmanuel Macron is the President of France"
input = tokenizer(premise, hypothesis, truncation=True, return_tensors="pt")
output = model(input["input_ids"].to(device)) # device = "cuda:0" or "cpu"
prediction = torch.softmax(output["logits"][0], -1).tolist()
label_names = ["entailment", "neutral", "contradiction"]
prediction = {name: round(float(pred) * 100, 1) for pred, name in zip(prediction, label_names)}
print(prediction)
```
### Training data
This model was trained on the XNLI development dataset and the MNLI train dataset.
The XNLI development set consists of 2490 professionally translated texts from English
to 14 other languages (37350 texts in total) (see [this paper](https://arxiv.org/pdf/1809.05053.pdf)).
Note that the XNLI contains a training set of 15 machine translated versions of the MNLI dataset for 15 languages,
but due to quality issues with these machine translations, this model was only trained on the professional translations
from the XNLI development set and the original English MNLI training set (392 702 texts).
Not using machine translated texts can avoid overfitting the model to the 15 languages;
avoids catastrophic forgetting of the other languages it was pre-trained on;
and significantly reduces training costs.
### Training procedure
The model was trained using the Hugging Face trainer with the following hyperparameters.
The exact underlying model is [mMiniLMv2-L6-H384-distilled-from-XLMR-Large](https://huggingface.co/nreimers/mMiniLMv2-L6-H384-distilled-from-XLMR-Large).
```
training_args = TrainingArguments(
num_train_epochs=3, # total number of training epochs
learning_rate=4e-05,
per_device_train_batch_size=64, # batch size per device during training
per_device_eval_batch_size=120, # batch size for evaluation
warmup_ratio=0.06, # number of warmup steps for learning rate scheduler
weight_decay=0.01, # strength of weight decay
)
```
### Eval results
The model was evaluated on the XNLI test set on 15 languages (5010 texts per language, 75150 in total).
Note that multilingual NLI models are capable of classifying NLI texts without receiving NLI training data
in the specific language (cross-lingual transfer). This means that the model is also able of doing NLI on
the other languages it was training on, but performance is most likely lower than for those languages available in XNLI.
The average XNLI performance of multilingual-MiniLM-L6 reported in the paper is 0.68 ([see table 11](https://arxiv.org/pdf/2002.10957.pdf)).
This reimplementation has an average performance of 0.713.
This increase in performance is probably thanks to the addition of MNLI in the training data and this model was distilled from
XLM-RoBERTa-large instead of -base (multilingual-MiniLM-L6-v2).
|Datasets|avg_xnli|ar|bg|de|el|en|es|fr|hi|ru|sw|th|tr|ur|vi|zh|
| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
|Accuracy|0.713|0.687|0.742|0.719|0.723|0.789|0.748|0.741|0.691|0.714|0.642|0.699|0.696|0.664|0.723|0.721|
|Speed text/sec (A100 GPU, eval_batch=120)|6093.0|6210.0|6003.0|6053.0|5409.0|6531.0|6205.0|5615.0|5734.0|5970.0|6219.0|6289.0|6533.0|5851.0|5970.0|6798.0|
|Datasets|mnli_m|mnli_mm|
| :---: | :---: | :---: |
|Accuracy|0.782|0.8|
|Speed text/sec (A100 GPU, eval_batch=120)|4430.0|4395.0|
## Limitations and bias
Please consult the original paper and literature on different NLI datasets for potential biases.
## Citation
If you use this model, please cite: Laurer, Moritz, Wouter van Atteveldt, Andreu Salleras Casas, and Kasper Welbers. 2022.
‘Less Annotating, More Classifying – Addressing the Data Scarcity Issue of Supervised Machine Learning with Deep Transfer Learning and BERT - NLI’.
Preprint, June. Open Science Framework. https://osf.io/74b8k.
## 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/)
|
[
-0.2908356189727783,
-0.33340975642204285,
0.09485836327075958,
-0.009091341868042946,
-0.04629490152001381,
-0.1975945681333542,
-0.2934941053390503,
-0.6689324975013733,
0.22723492980003357,
0.20586302876472473,
-0.6368182301521301,
-0.41436323523521423,
-0.5170480608940125,
0.17618706822395325,
-0.14964120090007782,
1.1876860857009888,
0.11477527022361755,
0.20295917987823486,
0.03507714346051216,
-0.3408370912075043,
-0.18281136453151703,
-0.7178056240081787,
-0.8865660429000854,
-0.4399590790271759,
0.7226576209068298,
0.2238541543483734,
0.47743675112724304,
0.4776565432548523,
0.2533673346042633,
0.32434001564979553,
-0.16613373160362244,
0.15388886630535126,
-0.3030130863189697,
-0.4620501697063446,
0.27200278639793396,
-0.8878529667854309,
-0.4953393042087555,
0.059348609298467636,
0.7354474067687988,
0.5419840216636658,
0.06485984474420547,
0.3211933970451355,
0.14153696596622467,
0.6443275809288025,
-0.3767050802707672,
0.09136524051427841,
-0.5274565815925598,
0.21704347431659698,
-0.17216910421848297,
0.1998412013053894,
-0.45633307099342346,
-0.1354922652244568,
0.21032331883907318,
-0.4629676043987274,
0.16027402877807617,
0.0912090614438057,
1.1109224557876587,
0.1767796128988266,
-0.28762027621269226,
-0.21708542108535767,
-0.34336262941360474,
1.1822729110717773,
-0.9797905683517456,
0.34399887919425964,
0.3143685758113861,
0.05980938300490379,
0.2457170933485031,
-0.45388442277908325,
-0.6739555597305298,
-0.08957187831401825,
-0.49943187832832336,
0.21738183498382568,
-0.12263017147779465,
-0.09608742594718933,
0.44430431723594666,
0.19574609398841858,
-0.8567487001419067,
0.34049108624458313,
-0.341714084148407,
-0.11391734331846237,
0.8780333399772644,
0.04579954594373703,
0.23205433785915375,
-0.44946831464767456,
-0.3069377541542053,
-0.24603140354156494,
-0.44663599133491516,
0.2786676287651062,
0.31855785846710205,
0.491316020488739,
-0.4955628514289856,
0.385922908782959,
-0.07465244829654694,
0.6889920234680176,
-0.1623764932155609,
-0.46051353216171265,
0.7167378664016724,
-0.6820687651634216,
-0.35746490955352783,
0.1489238142967224,
1.0664416551589966,
0.3309289216995239,
0.19822490215301514,
0.2064208686351776,
-0.1113412007689476,
-0.09302298724651337,
-0.39633291959762573,
-0.8301041126251221,
-0.0783713236451149,
0.20891685783863068,
-0.5119677782058716,
-0.49633657932281494,
-0.11641446501016617,
-0.7441955804824829,
-0.02552296221256256,
-0.35625502467155457,
0.3285948932170868,
-0.4209831953048706,
-0.40579336881637573,
-0.20987674593925476,
-0.06822146475315094,
0.1826268881559372,
0.08511613309383392,
-0.7283048033714294,
0.032207392156124115,
0.25245949625968933,
0.9186188578605652,
-0.08323600888252258,
-0.4187818467617035,
-0.2456960529088974,
-0.10707876831293106,
-0.1536788046360016,
0.3273497223854065,
-0.14883922040462494,
-0.2404140681028366,
-0.1309126615524292,
0.13815487921237946,
-0.45673081278800964,
-0.4149547219276428,
0.6425867676734924,
-0.21904514729976654,
0.5201302170753479,
-0.15586291253566742,
-0.49680623412132263,
-0.11788460612297058,
0.28730645775794983,
-0.7118209600448608,
1.2843682765960693,
-0.013582315295934677,
-0.9379962086677551,
0.43677735328674316,
-0.6921250224113464,
-0.1840713620185852,
-0.322396844625473,
-0.10883321613073349,
-0.6849603056907654,
-0.10269217193126678,
0.207549586892128,
0.4263758063316345,
-0.11963904649019241,
0.36227545142173767,
-0.21447189152240753,
-0.2509530782699585,
0.3143753111362457,
-0.5209861993789673,
1.2448725700378418,
0.2056107074022293,
-0.5630709528923035,
0.10930538177490234,
-1.087950587272644,
0.3041127026081085,
0.13791504502296448,
-0.27050337195396423,
-0.37980714440345764,
-0.3063662052154541,
0.22515733540058136,
0.6045558452606201,
0.08372468501329422,
-0.5807253122329712,
0.07332020252943039,
-0.6294345259666443,
0.35279059410095215,
0.5715705752372742,
-0.3887709081172943,
0.39980295300483704,
-0.350337415933609,
0.14407756924629211,
0.23179885745048523,
0.18899956345558167,
-0.10538840293884277,
-0.6850759983062744,
-1.114083170890808,
-0.19395853579044342,
0.5422433018684387,
0.8123185634613037,
-0.9487937092781067,
0.4163602590560913,
-0.4877122640609741,
-0.5012551546096802,
-0.7555272579193115,
0.2363167256116867,
0.6776117086410522,
0.4882366955280304,
0.2601858079433441,
0.24761390686035156,
-0.812825620174408,
-0.9542004466056824,
0.0016624433919787407,
-0.11151306331157684,
0.05033928155899048,
0.27760258316993713,
0.6826844215393066,
-0.16362790763378143,
0.8684325814247131,
-0.2719563841819763,
-0.44637027382850647,
-0.48172158002853394,
0.15358048677444458,
0.5402381420135498,
0.5453059077262878,
0.794562578201294,
-0.9027925133705139,
-0.8539881706237793,
0.19345396757125854,
-1.0167856216430664,
0.06803706288337708,
-0.2102992683649063,
-0.158766970038414,
0.6731700897216797,
0.3154405355453491,
-0.5892806053161621,
0.5099484324455261,
0.6308015584945679,
-0.19283771514892578,
0.3554292917251587,
-0.21241849660873413,
-0.08918607980012894,
-1.1962300539016724,
0.2392549216747284,
0.04605677351355553,
-0.21838688850402832,
-0.9126364588737488,
-0.09851556271314621,
0.005323766730725765,
-0.0427703782916069,
-0.6498148441314697,
0.7531416416168213,
-0.42817550897598267,
0.21412934362888336,
-0.09727424383163452,
0.2380257397890091,
0.027701865881681442,
0.6982899904251099,
0.2571347951889038,
0.7158070206642151,
0.44698482751846313,
-0.5290150046348572,
0.015183881856501102,
0.17991101741790771,
-0.4467197060585022,
0.20322877168655396,
-0.7495284080505371,
8.984164878711454e-7,
-0.045774269849061966,
0.11895714700222015,
-0.8302208185195923,
0.056628286838531494,
0.19648106396198273,
-0.5170161724090576,
0.40361079573631287,
-0.08566638082265854,
-0.5281137228012085,
-0.385409951210022,
-0.38851499557495117,
0.2583805322647095,
0.6600767374038696,
-0.5183321833610535,
0.48528459668159485,
0.0842641070485115,
0.06963348388671875,
-0.8506270051002502,
-1.1252623796463013,
-0.12771669030189514,
-0.21551868319511414,
-0.6492047905921936,
0.2670523524284363,
-0.1842961460351944,
-0.10070876032114029,
-0.02068612352013588,
0.3288854956626892,
-0.068400077521801,
-0.1078687533736229,
0.1373390406370163,
0.45095428824424744,
-0.2621816098690033,
-0.06944043189287186,
0.10604312270879745,
-0.25457191467285156,
-0.1720871478319168,
-0.18626707792282104,
0.4010041356086731,
-0.11392571777105331,
0.004332655109465122,
-0.6927360892295837,
0.4538891017436981,
0.45592817664146423,
0.03329382836818695,
1.0537458658218384,
0.8867903351783752,
-0.34849750995635986,
0.09857882559299469,
-0.46786341071128845,
-0.07715734094381332,
-0.40968504548072815,
0.38039645552635193,
-0.5857478976249695,
-0.6859527230262756,
0.4904745817184448,
0.3601025342941284,
0.1314384788274765,
0.6740807294845581,
0.46789833903312683,
0.017694886773824692,
1.2246887683868408,
0.6952542066574097,
-0.3181596100330353,
0.3482052683830261,
-0.767758309841156,
0.1379944384098053,
-0.7022203803062439,
-0.19866126775741577,
-0.43038541078567505,
-0.2833153307437897,
-0.8038272857666016,
-0.25996482372283936,
0.2581174671649933,
0.015773260965943336,
-0.02054702118039131,
0.22700586915016174,
-0.42322012782096863,
0.2739936113357544,
0.6904593110084534,
0.037901103496551514,
0.17151857912540436,
0.1511678397655487,
-0.18740536272525787,
-0.26133400201797485,
-1.0042672157287598,
-0.41282063722610474,
0.9765521883964539,
0.35219794511795044,
0.3882947564125061,
0.12325336039066315,
0.7398570775985718,
-0.004094967618584633,
0.3725212812423706,
-0.5186095833778381,
0.4407654404640198,
-0.3576752841472626,
-0.7522974610328674,
-0.3050808012485504,
-0.6403592824935913,
-0.8073469400405884,
0.42219817638397217,
-0.3057129681110382,
-0.7120637893676758,
0.4015589952468872,
0.05037494748830795,
-0.5232895612716675,
0.5171141028404236,
-0.9036698341369629,
0.8361071944236755,
-0.23867405951023102,
-0.3096514046192169,
0.07334191352128983,
-0.767978847026825,
0.42496341466903687,
-0.20893745124340057,
0.295449823141098,
-0.2122218757867813,
0.04498862475156784,
0.8578560948371887,
-0.41691023111343384,
1.0583701133728027,
-0.29669150710105896,
0.017882172018289566,
0.20239010453224182,
-0.5316659808158875,
0.4128761291503906,
-0.05073179677128792,
-0.4454469382762909,
0.5041278004646301,
0.14178691804409027,
-0.45741260051727295,
-0.6043496131896973,
0.8045791983604431,
-1.0247377157211304,
-0.3588331341743469,
-0.498308390378952,
-0.4195893108844757,
0.16173872351646423,
0.3151150643825531,
0.6858712434768677,
0.38247355818748474,
0.06995800882577896,
0.1013239249587059,
0.6562716960906982,
-0.28059059381484985,
0.7020152807235718,
0.31241512298583984,
-0.40255799889564514,
-0.39339128136634827,
1.0556923151016235,
0.48350271582603455,
0.2924725413322449,
0.367182195186615,
0.2195187211036682,
-0.3669997751712799,
-0.34398970007896423,
-0.7120532393455505,
0.43060895800590515,
-0.567432165145874,
-0.23282773792743683,
-0.7987362742424011,
-0.4573787450790405,
-0.41547131538391113,
0.03972255811095238,
-0.2885793447494507,
-0.4855940043926239,
-0.40100687742233276,
-0.0252789668738842,
0.26364922523498535,
0.44013145565986633,
-0.0050817374140024185,
0.24656985700130463,
-0.7083489298820496,
0.01936088688671589,
0.06269627064466476,
0.13311514258384705,
0.060548294335603714,
-0.7352635264396667,
-0.4389163553714752,
0.32004866003990173,
0.04551324620842934,
-0.5163388848304749,
0.6231351494789124,
0.5165175795555115,
0.501702070236206,
0.3163893520832062,
0.05944351106882095,
0.7787420153617859,
-0.4835236668586731,
0.7623141407966614,
0.3324592113494873,
-0.8265573382377625,
0.5878967046737671,
0.07378360629081726,
0.3496725559234619,
0.5363497734069824,
0.6499866843223572,
-0.39153632521629333,
-0.22863984107971191,
-0.6010689735412598,
-0.7125540375709534,
0.9336434602737427,
0.3650473654270172,
0.14977188408374786,
0.21861271560192108,
0.3831021785736084,
0.056790612637996674,
0.14039473235607147,
-1.093956708908081,
-0.6754760146141052,
-0.02053431048989296,
-0.3058876693248749,
-0.21574316918849945,
-0.36373135447502136,
-0.03383907675743103,
-0.5710055232048035,
0.9151960611343384,
-0.17068855464458466,
0.445724755525589,
0.337418794631958,
-0.20862795412540436,
0.2218955159187317,
0.059925563633441925,
0.7843519449234009,
0.4406313896179199,
-0.1954457312822342,
-0.03711888566613197,
0.5526579022407532,
-0.3763016164302826,
0.29502159357070923,
0.10697595775127411,
-0.4840191602706909,
0.40552818775177,
0.42400652170181274,
1.2189629077911377,
0.06099677458405495,
-0.5756758451461792,
0.5021910667419434,
-0.22383904457092285,
-0.3138725757598877,
-0.5766688585281372,
-0.03991100192070007,
-0.19437001645565033,
0.14785781502723694,
0.2883300483226776,
0.09977316856384277,
0.08878084272146225,
-0.41805124282836914,
0.1859121471643448,
0.23504376411437988,
-0.45450136065483093,
-0.39247843623161316,
0.6037835478782654,
0.047177478671073914,
-0.11357562988996506,
0.5935791730880737,
-0.3731061816215515,
-0.4344382584095001,
0.5247179865837097,
0.46953538060188293,
0.6784635782241821,
-0.23561972379684448,
0.15823110938072205,
0.7135168313980103,
0.3887713551521301,
0.1781143993139267,
0.19868287444114685,
0.21827296912670135,
-0.7995102405548096,
-0.5497617125511169,
-0.5933846235275269,
-0.027725085616111755,
0.23195910453796387,
-0.697829008102417,
0.403035432100296,
-0.2548992931842804,
-0.2540922164916992,
0.2201339304447174,
0.23331081867218018,
-0.6511849761009216,
0.31593602895736694,
0.2972383201122284,
0.9797925353050232,
-1.019310712814331,
1.2499741315841675,
0.5743967890739441,
-0.4698652923107147,
-0.7286207675933838,
-0.3194895386695862,
0.08649260550737381,
-0.6578980088233948,
0.8562187552452087,
0.4282849431037903,
0.028655366972088814,
-0.0882282555103302,
-0.3139140009880066,
-0.9946621656417847,
1.1024837493896484,
0.1764509081840515,
-0.656067430973053,
-0.12967821955680847,
0.3511679172515869,
0.5682725310325623,
-0.3313600420951843,
0.5580013394355774,
0.5881709456443787,
0.36553388833999634,
-0.12938055396080017,
-0.9405993223190308,
-0.0536208339035511,
-0.5793533325195312,
0.20441000163555145,
0.06254005432128906,
-0.8169587850570679,
0.8422383069992065,
-0.23253212869167328,
-0.08725813031196594,
0.18813392519950867,
0.7428537607192993,
0.2876371741294861,
0.4415183961391449,
0.5465341210365295,
0.6161069869995117,
0.8000071048736572,
-0.22415418922901154,
1.1483203172683716,
-0.33898767828941345,
0.41772687435150146,
1.0563105344772339,
-0.09892593324184418,
1.005811333656311,
0.3787640631198883,
-0.2023024559020996,
0.5572345852851868,
0.6240980625152588,
-0.0111126359552145,
0.34286805987358093,
-0.14880023896694183,
-0.22952425479888916,
0.08403351157903671,
-0.18726390600204468,
-0.3732730746269226,
0.28816333413124084,
0.17230425775051117,
-0.46913641691207886,
0.07193217426538467,
0.4396817684173584,
0.3906199336051941,
-0.2377222627401352,
-0.11418946832418442,
0.694469690322876,
0.09437263011932373,
-0.49642813205718994,
0.914116621017456,
-0.02435060404241085,
1.0887277126312256,
-0.6614386439323425,
0.15770335495471954,
-0.1869668960571289,
0.29346388578414917,
-0.3792896568775177,
-0.6565374135971069,
0.38341304659843445,
0.01756341941654682,
-0.45431655645370483,
-0.12363848090171814,
0.5479639768600464,
-0.6694611310958862,
-0.8636432886123657,
0.49840375781059265,
0.40162238478660583,
0.22860336303710938,
0.1853952556848526,
-1.1957391500473022,
0.14158165454864502,
0.43657800555229187,
-0.39053502678871155,
0.46924304962158203,
0.25218793749809265,
0.016561459749937057,
0.5808660387992859,
0.7185509204864502,
0.013944785110652447,
0.28027600049972534,
0.16907109320163727,
0.7445197701454163,
-0.48191016912460327,
-0.23555392026901245,
-0.9295024275779724,
0.6949244737625122,
-0.37169864773750305,
-0.43278631567955017,
0.9452281594276428,
0.6654083132743835,
0.9770708680152893,
-0.056920647621154785,
0.8014956712722778,
-0.11026967316865921,
0.5578355193138123,
-0.5852767825126648,
0.7400795817375183,
-0.7669044137001038,
-0.015371326357126236,
-0.18861398100852966,
-0.6801204085350037,
-0.3769238591194153,
0.6135731935501099,
-0.23328450322151184,
0.14950789511203766,
0.5482262969017029,
0.8622734546661377,
0.10312048345804214,
-0.16834597289562225,
0.5290879607200623,
0.21134153008460999,
0.18164114654064178,
0.6144618988037109,
0.5105456709861755,
-0.8758449554443359,
0.6098228096961975,
-0.7891201972961426,
-0.25945985317230225,
-0.011807382106781006,
-0.7105163931846619,
-1.0344089269638062,
-0.5725575685501099,
-0.5569429397583008,
-0.2633132338523865,
-0.13730131089687347,
0.9435238838195801,
0.8690412640571594,
-0.9917624592781067,
-0.3797895908355713,
0.18199704587459564,
0.07502836734056473,
-0.15849809348583221,
-0.26420921087265015,
0.49752572178840637,
-0.31501534581184387,
-1.0866023302078247,
0.16599155962467194,
0.020377619192004204,
0.2477332204580307,
-0.3045351803302765,
-0.16070638597011566,
-0.5852043628692627,
-0.07806233316659927,
0.7884511947631836,
0.1122167706489563,
-0.7914952635765076,
0.07169399410486221,
0.1302102953195572,
-0.18575865030288696,
0.14500586688518524,
0.4041881561279297,
-0.48043644428253174,
0.32249727845191956,
0.34573841094970703,
0.40824058651924133,
0.592248260974884,
-0.3819223940372467,
0.18189942836761475,
-0.9191175103187561,
0.567958414554596,
-0.1629028171300888,
0.3376619219779968,
0.3112444281578064,
-0.4438691735267639,
0.6048742532730103,
0.2620972990989685,
-0.45200589299201965,
-1.0039414167404175,
-0.1727866530418396,
-0.7569483518600464,
-0.1419541984796524,
1.0560029745101929,
-0.35349610447883606,
-0.4606766402721405,
-0.022856837138533592,
-0.24076128005981445,
0.16917476058006287,
-0.18040728569030762,
0.2726762890815735,
0.6323455572128296,
-0.14112071692943573,
-0.509489119052887,
-0.8020098209381104,
0.6102657318115234,
0.5390932559967041,
-0.6614504456520081,
-0.20228266716003418,
-0.04755787178874016,
0.18502815067768097,
0.467629998922348,
0.6373477578163147,
0.041102901101112366,
-0.020846029743552208,
-0.008599347434937954,
0.21249617636203766,
0.1693754643201828,
-0.0914054811000824,
-0.44944635033607483,
-0.10998615622520447,
-0.1311013251543045,
-0.09194385260343552
] |
kuelumbus/polyBERT
|
kuelumbus
| 2023-07-18T18:47:54Z | 9,145 | 3 |
sentence-transformers
|
[
"sentence-transformers",
"pytorch",
"deberta-v2",
"feature-extraction",
"sentence-similarity",
"transformers",
"endpoints_compatible",
"region:us"
] |
sentence-similarity
| 2022-09-15T13:54:32Z |
---
pipeline_tag: sentence-similarity
tags:
- sentence-transformers
- feature-extraction
- sentence-similarity
- transformers
widget:
- source_sentence: "[*]CC[*]"
sentences:
- "[*]COC[*]"
- "[*]CC(C)C[*]"
---
# kuelumbus/polyBERT
This is polyBERT: A chemical language model to enable fully machine-driven ultrafast polymer informatics. polyBERT maps PSMILES strings to 600 dimensional dense fingerprints. The fingerprints numerically represent polymer chemical structures. Please see the license agreement in the LICENSE file.
<!--- Describe your model here -->
## Usage (Sentence-Transformers)
Using this model becomes easy when you have [sentence-transformers](https://www.SBERT.net) installed:
```
pip install sentence-transformers
```
Then you can use the model like this:
```python
from sentence_transformers import SentenceTransformer
psmiles_strings = ["[*]CC[*]", "[*]COC[*]"]
polyBERT = SentenceTransformer('kuelumbus/polyBERT')
embeddings = polyBERT.encode(psmiles_strings)
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
psmiles_strings = ["[*]CC[*]", "[*]COC[*]"]
# Load model from HuggingFace Hub
tokenizer = AutoTokenizer.from_pretrained('kuelumbus/polyBERT')
polyBERT = AutoModel.from_pretrained('kuelumbus/polyBERT')
# Tokenize sentences
encoded_input = tokenizer(psmiles_strings, padding=True, truncation=True, return_tensors='pt')
# Compute token embeddings
with torch.no_grad():
model_output = polyBERT(**encoded_input)
# Perform pooling. In this case, mean pooling.
fingerprints = mean_pooling(model_output, encoded_input['attention_mask'])
print("Fingerprints:")
print(fingerprints)
```
## Evaluation Results
See https://github.com/Ramprasad-Group/polyBERT and paper on arXiv.
## Full Model Architecture
```
SentenceTransformer(
(0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: DebertaV2Model
(1): Pooling({'word_embedding_dimension': 600, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False})
)
```
## Citing & Authors
Kuenneth, C., Ramprasad, R. polyBERT: a chemical language model to enable fully machine-driven ultrafast polymer informatics. Nat Commun 14, 4099 (2023). https://doi.org/10.1038/s41467-023-39868-6
|
[
-0.22117051482200623,
-0.6806635856628418,
0.5203293561935425,
0.14513593912124634,
-0.2557661831378937,
0.19150188565254211,
-0.15632198750972748,
-0.166183739900589,
0.15910011529922485,
0.3266049325466156,
-0.22203966975212097,
-0.4458690881729126,
-0.8287388682365417,
-0.015417122282087803,
-0.428219735622406,
1.0357943773269653,
-0.0605030283331871,
-0.12674684822559357,
-0.15867012739181519,
-0.14409153163433075,
0.33047807216644287,
-0.6408305764198303,
-0.2953059673309326,
-0.4316716492176056,
0.2663295865058899,
0.366786390542984,
0.6468061804771423,
0.36537250876426697,
0.2361774742603302,
0.3721684217453003,
-0.42597106099128723,
0.11922074109315872,
-0.37867292761802673,
-0.12132285535335541,
0.03993524610996246,
-0.3927021622657776,
-0.19004328548908234,
0.40487006306648254,
0.7002118229866028,
0.5010649561882019,
-0.05658130720257759,
0.2800830602645874,
0.029874416068196297,
0.7347478866577148,
-0.8734101057052612,
0.3079689145088196,
-0.31582024693489075,
0.2385450154542923,
0.06028091907501221,
0.25585535168647766,
-0.7129862904548645,
-0.1975623220205307,
0.2152833491563797,
-0.48724639415740967,
0.10837987065315247,
-0.04706951975822449,
1.1405545473098755,
-0.0420076921582222,
-0.3610358238220215,
-0.2371949702501297,
-0.7091373205184937,
0.8098403215408325,
-0.663905143737793,
0.2218971699476242,
0.29795151948928833,
-0.01864827238023281,
-0.17456617951393127,
-1.2753623723983765,
-0.9619516134262085,
-0.1459583193063736,
-0.2867308259010315,
0.3954847753047943,
-0.2230749875307083,
0.18869130313396454,
0.3324546813964844,
0.44295331835746765,
-0.5781028866767883,
-0.3454611003398895,
-0.49646300077438354,
-0.2541715204715729,
0.5104727745056152,
0.11700645089149475,
0.2705379128456116,
-0.2355102002620697,
-0.46512120962142944,
-0.5023504495620728,
-0.028145989403128624,
0.15307413041591644,
0.16750778257846832,
-0.0005400425288826227,
-0.44034087657928467,
0.7632815837860107,
0.027096686884760857,
0.67753666639328,
-0.04542554169893265,
0.13425828516483307,
0.537327229976654,
-0.13771547377109528,
-0.2502847909927368,
0.10499291121959686,
1.2209696769714355,
0.1303820163011551,
0.47126415371894836,
0.1162855476140976,
-0.055720265954732895,
0.1805420070886612,
0.03175324201583862,
-0.8707524538040161,
-0.5389665365219116,
0.49595358967781067,
-0.47058671712875366,
-0.4639922082424164,
0.3663874566555023,
-0.8501476049423218,
-0.21448329091072083,
-0.06954719126224518,
0.657670795917511,
-0.6713027358055115,
-0.00751106534153223,
0.46903878450393677,
-0.16592469811439514,
0.049120720475912094,
-0.21480868756771088,
-0.9557867050170898,
0.32717224955558777,
0.3531825542449951,
1.1329314708709717,
0.04586610943078995,
-0.44655776023864746,
-0.40292462706565857,
0.10332607477903366,
0.07958342880010605,
0.5939998626708984,
-0.7066206932067871,
-0.165842205286026,
-0.21938008069992065,
0.07581330090761185,
-0.6109190583229065,
-0.1922360062599182,
0.388909250497818,
-0.25608912110328674,
0.6149091124534607,
0.2908257842063904,
-0.8296871185302734,
-0.35917970538139343,
-0.21922077238559723,
-0.5568504929542542,
1.1840336322784424,
0.34093114733695984,
-1.0887740850448608,
-0.15055450797080994,
-0.817483127117157,
-0.2165689915418625,
-0.007224695291370153,
-0.050523705780506134,
-0.8272882103919983,
0.17514221370220184,
0.32396697998046875,
0.49955618381500244,
-0.15041381120681763,
0.18996144831180573,
-0.2613238990306854,
-0.5520581007003784,
0.48719915747642517,
-0.09529392421245575,
1.2349029779434204,
0.2705387771129608,
-0.5897891521453857,
0.0879339724779129,
-0.7142367362976074,
0.046402521431446075,
0.2429947406053543,
-0.27826008200645447,
0.07649946957826614,
0.03596058115363121,
0.43687698245048523,
0.31510207056999207,
0.34672364592552185,
-0.8567895889282227,
0.30094197392463684,
-0.3731166124343872,
0.6937491297721863,
0.7789846062660217,
-0.17073145508766174,
0.43433719873428345,
-0.27452993392944336,
0.4163573980331421,
0.208905890583992,
0.30773013830184937,
-0.11133643984794617,
-0.43368715047836304,
-1.007777214050293,
-0.56288081407547,
0.3298216760158539,
0.6624065637588501,
-0.5734530091285706,
0.7010822892189026,
-0.16394305229187012,
-0.7522026896476746,
-0.4939883053302765,
-0.0466466061770916,
0.10496807098388672,
0.43267279863357544,
0.4129733145236969,
-0.25819557905197144,
-0.39637818932533264,
-0.9159063696861267,
0.08917630463838577,
-0.20124347507953644,
0.07833182066679001,
0.3084618151187897,
0.7332195043563843,
-0.4168364107608795,
0.8762241005897522,
-0.8440037965774536,
-0.27907973527908325,
-0.4875900149345398,
0.4071286618709564,
0.530822217464447,
0.319926917552948,
0.509984016418457,
-0.6901964545249939,
-0.6394715309143066,
-0.37846192717552185,
-0.7429829835891724,
-0.004042495042085648,
-0.06627313047647476,
-0.06684233993291855,
0.3329600393772125,
0.5156574249267578,
-0.7920210957527161,
0.16086287796497345,
0.711069643497467,
-0.6446807980537415,
0.7185713052749634,
-0.3729051351547241,
-0.12231265753507614,
-1.3308916091918945,
0.3874720335006714,
-0.06181356683373451,
-0.10384488850831985,
-0.6346778273582458,
0.02637079358100891,
0.1943122297525406,
-0.2736254632472992,
-0.6523380279541016,
0.3758271038532257,
-0.43460020422935486,
0.23333999514579773,
-0.2692241966724396,
0.15933772921562195,
-0.0002712246496230364,
0.6078735589981079,
0.03645700961351395,
0.7187909483909607,
0.9103987812995911,
-0.5668746829032898,
0.44260430335998535,
0.3113802373409271,
-0.3530135750770569,
0.006920512765645981,
-0.7942808866500854,
0.08293181657791138,
-0.2607135772705078,
0.3780665099620819,
-1.067370891571045,
-0.004105593543499708,
0.297118604183197,
-0.5679790377616882,
0.006745224818587303,
0.20946507155895233,
-0.883175790309906,
-0.6321290135383606,
-0.4677516222000122,
0.3706047832965851,
0.6606472730636597,
-0.5313981771469116,
0.8350453972816467,
0.30642789602279663,
-0.018388504162430763,
-0.4733603596687317,
-0.5572715401649475,
-0.1335408091545105,
-0.014346929267048836,
-0.6737794876098633,
0.4243026077747345,
-0.16099309921264648,
0.19677257537841797,
-0.2086533159017563,
0.10718602687120438,
-0.03438566252589226,
-0.02378784492611885,
0.08993969112634659,
0.3632031977176666,
0.05533424764871597,
0.16411931812763214,
-0.05678638443350792,
-0.28921830654144287,
0.02465423196554184,
-0.3025307059288025,
0.8548116683959961,
-0.37068963050842285,
0.13634353876113892,
-0.538001298904419,
0.1372096687555313,
1.0699070692062378,
-0.4661530554294586,
1.1217182874679565,
0.9714850187301636,
-0.1996813267469406,
-0.09417369961738586,
-0.43657386302948,
-0.39693760871887207,
-0.5488489866256714,
0.26305916905403137,
-0.19468018412590027,
-0.9265376329421997,
0.5387376546859741,
0.04559073597192764,
-0.09439300745725632,
0.3610636293888092,
0.5554608702659607,
-0.20416805148124695,
1.0182561874389648,
0.7869027853012085,
-0.2580575942993164,
0.5496699213981628,
-0.6028462052345276,
0.44023650884628296,
-0.9007751941680908,
-0.22881777584552765,
-0.19800814986228943,
-0.29640495777130127,
-0.6760920286178589,
-0.35993775725364685,
0.440522164106369,
0.0755232572555542,
-0.268466591835022,
0.5901020169258118,
-0.856849193572998,
0.34542492032051086,
0.6904080510139465,
0.14518436789512634,
-0.060500383377075195,
0.2885705530643463,
-0.7120406031608582,
-0.003306749276816845,
-0.712029755115509,
-0.5906897783279419,
0.9704601168632507,
0.29659295082092285,
0.7954909205436707,
-0.08869621157646179,
0.643420398235321,
0.027781398966908455,
-0.16749995946884155,
-0.5716271996498108,
0.7437341809272766,
-0.32914721965789795,
-0.4141937494277954,
-0.025409791618585587,
-0.3877175748348236,
-0.900270938873291,
0.42034631967544556,
-0.2789616584777832,
-1.176514744758606,
0.14874397218227386,
-0.03511045128107071,
-0.3526684045791626,
0.5526525974273682,
-0.766655445098877,
0.9547287821769714,
-0.08676470071077347,
-0.3339913785457611,
-0.1994263380765915,
-0.7331472039222717,
0.08641386032104492,
0.023123273625969887,
-0.014061486348509789,
-0.2263217568397522,
-0.007617055904120207,
0.9009357690811157,
-0.21881575882434845,
0.8211378455162048,
-0.018954729661345482,
0.1953662782907486,
0.3896608352661133,
0.06505053490400314,
0.30742761492729187,
-0.0720626562833786,
-0.057663749903440475,
0.13079094886779785,
0.04349716752767563,
-0.4249160885810852,
-0.44791245460510254,
0.5514044165611267,
-0.9110434055328369,
-0.25755512714385986,
-0.9052282571792603,
-0.7200822830200195,
0.1296750009059906,
0.22103440761566162,
0.41493481397628784,
0.25429967045783997,
0.22083935141563416,
0.2049761712551117,
0.6311560273170471,
-0.4303660988807678,
0.7288531064987183,
0.6823692321777344,
-0.12752480804920197,
-0.503444254398346,
1.0474042892456055,
-0.027360646054148674,
0.1726544201374054,
0.36665791273117065,
0.4099181294441223,
-0.2778990864753723,
0.05191146209836006,
-0.21043434739112854,
0.553716242313385,
-0.4172515571117401,
0.07695160061120987,
-0.9871130585670471,
-0.450105756521225,
-0.5663507580757141,
-0.09271305054426193,
-0.4277016520500183,
-0.5266628861427307,
-0.3652888834476471,
-0.05019284412264824,
0.5066857933998108,
0.4906388819217682,
-0.06949317455291748,
0.3869442343711853,
-0.8743608593940735,
0.3479972779750824,
0.1016877293586731,
0.2568811774253845,
-0.040434300899505615,
-0.5972819924354553,
-0.308443158864975,
0.0028523483779281378,
-0.5259019136428833,
-0.9672635793685913,
0.3550686240196228,
0.2704628109931946,
0.3860989511013031,
0.18237468600273132,
0.10028094798326492,
0.17964139580726624,
-0.3219616711139679,
0.7800673246383667,
0.08839885145425797,
-1.1978434324264526,
0.6721811294555664,
-0.14226950705051422,
0.6168274879455566,
0.42097118496894836,
0.6042590737342834,
-0.6979333162307739,
-0.6201776266098022,
-0.7378622889518738,
-1.191436767578125,
0.9754629135131836,
0.5687958002090454,
0.1559918075799942,
-0.16863904893398285,
0.22176790237426758,
-0.3415669798851013,
0.03896432742476463,
-1.2468185424804688,
-0.6072086095809937,
-0.19927474856376648,
-0.5484026670455933,
-0.15516316890716553,
-0.45594310760498047,
0.11403205245733261,
-0.5875234603881836,
0.9083272218704224,
-0.024261146783828735,
0.5937871932983398,
0.3507761061191559,
-0.32152435183525085,
0.12165068089962006,
0.07945273071527481,
0.597603440284729,
0.3755601644515991,
-0.2747313976287842,
0.26955148577690125,
0.013541001826524734,
-0.7159684300422668,
0.3286462128162384,
0.4086162745952606,
-0.15088795125484467,
0.08444912731647491,
0.2480781376361847,
0.6453554034233093,
-0.09838378429412842,
-0.6739824414253235,
0.6399158239364624,
-0.07985955476760864,
-0.1035630851984024,
-0.4063793420791626,
-0.019201230257749557,
0.2930436432361603,
0.1387215256690979,
0.28283217549324036,
-0.26813623309135437,
-0.09754147380590439,
-0.3483082056045532,
0.30537280440330505,
0.16203522682189941,
-0.46017056703567505,
-0.07514236122369766,
0.7867491245269775,
-0.005349533166736364,
-0.03857867419719696,
0.9991890788078308,
-0.16782434284687042,
-0.7681384682655334,
0.5237938165664673,
0.574046790599823,
0.9573214054107666,
-0.3193521201610565,
0.40934303402900696,
0.5854337215423584,
0.2735768258571625,
0.14275939762592316,
0.3512047827243805,
-0.13543033599853516,
-0.6929004788398743,
-0.1456165760755539,
-0.8434398174285889,
-0.05166888236999512,
0.10848772525787354,
-0.4625271260738373,
0.21958649158477783,
-0.44051140546798706,
-0.06205890327692032,
0.13432693481445312,
-0.14149045944213867,
-0.13850809633731842,
0.03538791462779045,
0.30731701850891113,
0.7536698579788208,
-1.1797536611557007,
0.9227771759033203,
0.8651382327079773,
-0.5976753234863281,
-0.6697219610214233,
-0.13630707561969757,
-0.10239071398973465,
-0.6211259961128235,
0.597575306892395,
0.511411726474762,
-0.07901836931705475,
0.05752246081829071,
-0.5813206434249878,
-0.9225744009017944,
1.1330440044403076,
0.519743800163269,
-0.6260324120521545,
0.04274296388030052,
0.3587598204612732,
0.577345609664917,
-0.23632198572158813,
0.36800020933151245,
0.512604296207428,
0.34274017810821533,
-0.1295347660779953,
-0.7351632118225098,
0.17175009846687317,
-0.42480605840682983,
-0.030967049300670624,
0.20275640487670898,
-0.7845116257667542,
1.0673209428787231,
-0.20828767120838165,
-0.26136890053749084,
0.07363764196634293,
0.7119717597961426,
0.34003597497940063,
-0.1486659198999405,
0.34762686491012573,
0.9257388114929199,
0.5171868205070496,
-0.0705060213804245,
1.0587937831878662,
-0.6752372980117798,
0.9075207114219666,
0.8571932911872864,
-0.007005815859884024,
0.7701900601387024,
0.5209875106811523,
-0.1689673513174057,
0.8587744235992432,
0.45698919892311096,
-0.38324859738349915,
0.4578268527984619,
0.3027009963989258,
-0.6100047826766968,
-0.2042471021413803,
-0.09360712021589279,
-0.1269001066684723,
0.5112682580947876,
0.23607750236988068,
-0.7610862851142883,
-0.0917346179485321,
0.12480349093675613,
0.01077911164611578,
-0.006334602367132902,
0.1524019092321396,
0.517273485660553,
0.17378975450992584,
-0.472369521856308,
0.5477903485298157,
0.1769663691520691,
0.6956849694252014,
-0.5368022918701172,
-0.021912796422839165,
-0.028096457943320274,
0.5233868956565857,
-0.12847113609313965,
-0.834937572479248,
0.02751116268336773,
-0.19183000922203064,
-0.228976771235466,
-0.04218821972608566,
0.473239928483963,
-0.5661423802375793,
-0.8518223762512207,
0.6057226061820984,
0.14739134907722473,
0.17153553664684296,
0.0626702755689621,
-1.0244842767715454,
0.07152196019887924,
0.033204033970832825,
-0.4167586863040924,
0.03493373095989227,
-0.05587479844689369,
0.31320324540138245,
0.7360591888427734,
0.47108227014541626,
-0.019267883151769638,
-0.06364364922046661,
0.04250972345471382,
0.8697057962417603,
-0.555324912071228,
-0.4855572283267975,
-1.0588866472244263,
0.5345233082771301,
-0.01999448612332344,
-0.1885727047920227,
0.6445060968399048,
0.8821939826011658,
0.7800707817077637,
-0.22182169556617737,
0.5001774430274963,
-0.2990407645702362,
0.11069878935813904,
-0.3525677025318146,
1.0074807405471802,
-0.4213103652000427,
-0.2044840008020401,
-0.48081544041633606,
-1.1643327474594116,
-0.1894543468952179,
1.0243656635284424,
-0.07552743703126907,
0.07734528928995132,
0.908086359500885,
0.9663822650909424,
-0.35830336809158325,
-0.08301778137683868,
0.055965326726436615,
0.3959657549858093,
0.2658887505531311,
0.8171948790550232,
0.39997419714927673,
-0.7122101187705994,
0.6393994092941284,
-0.6958396434783936,
-0.2117917537689209,
-0.07130199670791626,
-0.6568055152893066,
-0.8811975717544556,
-0.8461195230484009,
-0.43558165431022644,
-0.5039337277412415,
0.06664009392261505,
0.955167829990387,
0.6823638081550598,
-0.731212854385376,
-0.4248977601528168,
-0.28775259852409363,
-0.16092067956924438,
-0.17322535812854767,
-0.35164520144462585,
0.6212291717529297,
-0.29508382081985474,
-0.8002321124076843,
0.10163506865501404,
0.132837176322937,
0.3447020649909973,
-0.03630855306982994,
0.12512658536434174,
-0.5760278701782227,
0.06890261918306351,
0.6444547772407532,
0.08754166960716248,
-0.5719777345657349,
-0.1474202573299408,
-0.02624879591166973,
-0.34687501192092896,
0.01485937088727951,
0.5868859887123108,
-0.7776954174041748,
0.6977227330207825,
0.4851623773574829,
0.2377702295780182,
0.9360061883926392,
-0.3111262023448944,
0.6199705004692078,
-0.5647099018096924,
0.30846869945526123,
0.227444127202034,
0.6002010107040405,
0.25740793347358704,
-0.2706981599330902,
0.47615212202072144,
0.4044893980026245,
-0.5748318433761597,
-0.5582194328308105,
0.13393177092075348,
-1.084285855293274,
-0.4183499217033386,
1.0305966138839722,
-0.22318324446678162,
-0.4179307520389557,
0.15978695452213287,
-0.24417583644390106,
0.4213126301765442,
-0.287990540266037,
1.0029706954956055,
0.7981120347976685,
-0.2915895879268646,
-0.22604230046272278,
-0.17628662288188934,
0.19920192658901215,
0.724301278591156,
-0.4656757116317749,
0.08416718989610672,
0.25840723514556885,
0.28537628054618835,
0.3525327444076538,
0.44689708948135376,
-0.2874719798564911,
0.47656041383743286,
0.0014412541640922427,
0.3582858741283417,
-0.17574331164360046,
-0.21724383533000946,
-0.34007158875465393,
0.0852900817990303,
-0.24588224291801453,
-0.2553185224533081
] |
cointegrated/rubert-tiny
|
cointegrated
| 2023-03-17T10:21:51Z | 9,141 | 23 |
transformers
|
[
"transformers",
"pytorch",
"safetensors",
"bert",
"pretraining",
"russian",
"fill-mask",
"embeddings",
"masked-lm",
"tiny",
"feature-extraction",
"sentence-similarity",
"ru",
"en",
"license:mit",
"endpoints_compatible",
"has_space",
"region:us"
] |
fill-mask
| 2022-03-02T23:29:05Z |
---
language:
- ru
- en
tags:
- russian
- fill-mask
- pretraining
- embeddings
- masked-lm
- tiny
- feature-extraction
- sentence-similarity
license: mit
widget:
- text: Миниатюрная модель для [MASK] разных задач.
pipeline_tag: fill-mask
---
This is a very small distilled version of the [bert-base-multilingual-cased](https://huggingface.co/bert-base-multilingual-cased) model for Russian and English (45 MB, 12M parameters). There is also an **updated version of this model**, [rubert-tiny2](https://huggingface.co/cointegrated/rubert-tiny2), with a larger vocabulary and better quality on practically all Russian NLU tasks.
This model is useful if you want to fine-tune it for a relatively simple Russian task (e.g. NER or sentiment classification), and you care more about speed and size than about accuracy. It is approximately x10 smaller and faster than a base-sized BERT. Its `[CLS]` embeddings can be used as a sentence representation aligned between Russian and English.
It was trained on the [Yandex Translate corpus](https://translate.yandex.ru/corpus), [OPUS-100](https://huggingface.co/datasets/opus100) and [Tatoeba](https://huggingface.co/datasets/tatoeba), using MLM loss (distilled from [bert-base-multilingual-cased](https://huggingface.co/bert-base-multilingual-cased)), translation ranking loss, and `[CLS]` embeddings distilled from [LaBSE](https://huggingface.co/sentence-transformers/LaBSE), [rubert-base-cased-sentence](https://huggingface.co/DeepPavlov/rubert-base-cased-sentence), Laser and USE.
There is a more detailed [description in Russian](https://habr.com/ru/post/562064/).
Sentence embeddings can be produced as follows:
```python
# pip install transformers sentencepiece
import torch
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("cointegrated/rubert-tiny")
model = AutoModel.from_pretrained("cointegrated/rubert-tiny")
# model.cuda() # uncomment it if you have a GPU
def embed_bert_cls(text, model, tokenizer):
t = tokenizer(text, padding=True, truncation=True, return_tensors='pt')
with torch.no_grad():
model_output = model(**{k: v.to(model.device) for k, v in t.items()})
embeddings = model_output.last_hidden_state[:, 0, :]
embeddings = torch.nn.functional.normalize(embeddings)
return embeddings[0].cpu().numpy()
print(embed_bert_cls('привет мир', model, tokenizer).shape)
# (312,)
```
|
[
-0.2427576631307602,
-0.6963757872581482,
0.32447150349617004,
0.3704597055912018,
-0.41925156116485596,
-0.06817851215600967,
-0.4268448054790497,
0.07122418284416199,
0.34010371565818787,
0.37773266434669495,
-0.4111512005329132,
-0.44998762011528015,
-0.5575627684593201,
-0.11396468430757523,
-0.36033686995506287,
1.2817360162734985,
-0.1036515161395073,
0.5834879875183105,
-0.15567219257354736,
-0.04903974011540413,
-0.3609181046485901,
-0.5612959861755371,
-0.17425401508808136,
-0.5419635772705078,
0.29963722825050354,
0.3568727374076843,
0.597513735294342,
0.3690783381462097,
0.5143632292747498,
0.3240202069282532,
-0.019009090960025787,
-0.24046866595745087,
-0.23552007973194122,
-0.15398184955120087,
0.02203897200524807,
-0.4138541519641876,
-0.20486699044704437,
-0.008016770705580711,
0.5616386532783508,
0.6658861637115479,
-0.23537786304950714,
0.09500930458307266,
-0.02879890613257885,
0.41082918643951416,
-0.44098299741744995,
0.2568950057029724,
-0.36473724246025085,
0.24295540153980255,
0.03468393534421921,
0.138244166970253,
-0.7206354737281799,
-0.17454439401626587,
0.3478356897830963,
-0.383445680141449,
0.20232971012592316,
0.061034683138132095,
1.0254970788955688,
0.2573701739311218,
-0.3123237192630768,
-0.42601099610328674,
-0.47088301181793213,
0.8859595060348511,
-0.6882908940315247,
0.2776889503002167,
0.19165413081645966,
0.23234090209007263,
0.02398959919810295,
-0.8620450496673584,
-0.3202937841415405,
-0.08721402287483215,
-0.33589786291122437,
-0.055365316569805145,
-0.17844700813293457,
0.07765019685029984,
0.2148883193731308,
0.33913272619247437,
-0.4935142695903778,
-0.08790578693151474,
-0.30623164772987366,
-0.36993372440338135,
0.3685338497161865,
-0.002950339810922742,
0.13311029970645905,
-0.32024478912353516,
-0.3474596440792084,
-0.35684099793434143,
-0.6293999552726746,
-0.21415434777736664,
0.3114512264728546,
0.3139978051185608,
-0.31533607840538025,
0.8396821618080139,
-0.09301801025867462,
0.6644876599311829,
0.07921218127012253,
0.0011259367456659675,
0.5332462787628174,
-0.2284964919090271,
-0.2922288775444031,
0.10169916599988937,
0.6755673885345459,
0.23357948660850525,
0.33438754081726074,
-0.20869027078151703,
-0.14706112444400787,
-0.022169582545757294,
0.15984046459197998,
-0.8257384300231934,
-0.5461425185203552,
0.05090860649943352,
-0.619631826877594,
-0.22274664044380188,
-0.00495515763759613,
-0.38336533308029175,
-0.030172917991876602,
-0.058858614414930344,
0.7925934195518494,
-0.6254218816757202,
0.027054451406002045,
0.27937251329421997,
-0.24113866686820984,
0.28556498885154724,
-0.0019444425124675035,
-0.8618350028991699,
0.2578912377357483,
0.6091303825378418,
0.9270837903022766,
0.14670471847057343,
-0.16455397009849548,
-0.38840118050575256,
-0.2727417051792145,
-0.15901945531368256,
0.5347155332565308,
-0.2610258162021637,
-0.21769696474075317,
0.3859836757183075,
0.0997648760676384,
0.07764264196157455,
-0.3056206703186035,
0.49577566981315613,
-0.39756065607070923,
0.530914843082428,
-0.12254651635885239,
-0.6350281834602356,
-0.283648818731308,
0.18990588188171387,
-0.6466721296310425,
0.8563763499259949,
0.11945226043462753,
-0.7235615253448486,
0.41871562600135803,
-0.6131384372711182,
-0.6499752998352051,
-0.03857067972421646,
0.06462345272302628,
-0.7029095888137817,
0.2714713215827942,
0.24030008912086487,
0.7481349110603333,
0.07837037742137909,
0.07147369533777237,
-0.24350972473621368,
-0.33979594707489014,
0.17609724402427673,
-0.11023043841123581,
0.9267675876617432,
0.2535141408443451,
-0.36834004521369934,
-0.07184160500764847,
-0.566501796245575,
0.04807945713400841,
-0.002616597805172205,
-0.4025226831436157,
-0.31370481848716736,
0.044544756412506104,
0.5504412651062012,
0.11504310369491577,
0.34846413135528564,
-0.7986791729927063,
0.3094508945941925,
-0.5661159753799438,
0.6765870451927185,
0.611429750919342,
-0.1931695193052292,
0.662078857421875,
-0.2869144678115845,
0.21536491811275482,
0.15162527561187744,
0.053115081042051315,
-0.07626138627529144,
-0.5741779208183289,
-0.9931003451347351,
-0.31770059466362,
0.5866869688034058,
0.5091908574104309,
-0.8356861472129822,
0.5275418162345886,
-0.23897799849510193,
-0.5166985988616943,
-0.694480299949646,
-0.10159153491258621,
0.317536324262619,
0.13672223687171936,
0.3265528678894043,
0.11651144921779633,
-0.5571317076683044,
-1.1527856588363647,
-0.042311470955610275,
0.11308703571557999,
0.0988728255033493,
-0.0833137184381485,
0.7155293226242065,
-0.10965120792388916,
0.6826792359352112,
-0.37134867906570435,
-0.41574808955192566,
-0.25763073563575745,
0.2537926435470581,
0.474682480096817,
0.62861168384552,
0.6078698635101318,
-0.6287288069725037,
-0.7187330722808838,
-0.029108595103025436,
-0.4463599920272827,
0.26920026540756226,
-0.18618933856487274,
-0.10682428628206253,
0.30517804622650146,
0.09838704019784927,
-0.6116577982902527,
0.37911996245384216,
0.5199349522590637,
-0.5179425477981567,
0.2515638470649719,
-0.37159886956214905,
0.04615373909473419,
-1.363234281539917,
-0.12251483649015427,
-0.010645410045981407,
-0.40993738174438477,
-0.5210327506065369,
0.0670594647526741,
0.18864616751670837,
-0.037126053124666214,
-0.6238453388214111,
0.2493819296360016,
-0.5094900727272034,
-0.08918069303035736,
-0.01642293483018875,
0.05621407553553581,
-0.02272549271583557,
0.4148400127887726,
-0.007317654322832823,
0.7027086019515991,
0.6414857506752014,
-0.3754660487174988,
0.5299979448318481,
0.5014957189559937,
-0.5698773264884949,
0.2497653365135193,
-0.8139549493789673,
-0.020304951816797256,
0.004593536723405123,
0.017228957265615463,
-0.8477821946144104,
0.011004497297108173,
0.16109129786491394,
-0.504096269607544,
0.3659060299396515,
-0.12539643049240112,
-0.9089664220809937,
-0.15983903408050537,
-0.4452950954437256,
0.15256814658641815,
0.7327468395233154,
-0.6707074046134949,
0.5587334036827087,
0.36581292748451233,
0.021651778370141983,
-0.790844738483429,
-1.0796617269515991,
-0.00953489076346159,
-0.26613858342170715,
-0.6359176635742188,
0.5607441067695618,
-0.06271453946828842,
0.00971834547817707,
0.27404308319091797,
0.3901160955429077,
-0.05580200254917145,
-0.06356021761894226,
0.01807914301753044,
0.2784351110458374,
-0.22691132128238678,
0.33729875087738037,
0.09454353153705597,
0.07285893708467484,
0.0027403216809034348,
-0.021611912176012993,
0.7971556186676025,
-0.4899626076221466,
-0.11532308906316757,
-0.3043113052845001,
0.37057793140411377,
0.3277581036090851,
0.11608966439962387,
0.9317931532859802,
0.9385900497436523,
-0.4972511827945709,
-0.30173587799072266,
-0.48234322667121887,
-0.18681178987026215,
-0.46566808223724365,
0.4530797004699707,
-0.4709652364253998,
-0.911885678768158,
0.6892913579940796,
0.2076479196548462,
-0.10716749727725983,
0.6693550944328308,
0.8944051265716553,
-0.2464146614074707,
1.0032117366790771,
0.6261397004127502,
-0.3053734004497528,
0.5086284875869751,
-0.5780604481697083,
0.1542147845029831,
-0.7494716644287109,
-0.29777321219444275,
-0.3138135075569153,
-0.3755132257938385,
-0.6809401512145996,
-0.3454970717430115,
0.20632895827293396,
-0.12070929259061813,
-0.18549078702926636,
0.4988345801830292,
-0.6137901544570923,
0.24659943580627441,
0.7305161952972412,
0.13451354205608368,
-0.09148742258548737,
0.3010483384132385,
-0.2918010354042053,
-0.28024908900260925,
-0.8081532716751099,
-0.46496400237083435,
1.0507909059524536,
0.3807136118412018,
1.0020639896392822,
0.10593156516551971,
0.7751680612564087,
0.44381147623062134,
0.23148459196090698,
-1.02744722366333,
0.32596221566200256,
-0.4390982985496521,
-0.7746613025665283,
-0.006199166644364595,
-0.32318148016929626,
-0.9004606008529663,
0.09852386265993118,
-0.3218196928501129,
-0.6583985090255737,
-0.01646578684449196,
-0.04837743565440178,
-0.17213618755340576,
0.22303038835525513,
-0.733261227607727,
0.9945005774497986,
-0.08694349974393845,
-0.034926287829875946,
-0.3212628960609436,
-0.4087885916233063,
0.07586805522441864,
0.2765156626701355,
-0.09345471113920212,
0.06282271444797516,
0.05734459310770035,
0.8340426683425903,
-0.3894649147987366,
0.7764056324958801,
-0.2598937451839447,
0.19129535555839539,
0.2448119968175888,
-0.10517501085996628,
0.334390252828598,
0.1295754313468933,
0.07652416825294495,
0.162206768989563,
0.10534220933914185,
-0.42383909225463867,
-0.4017542898654938,
0.8169214129447937,
-0.892153263092041,
-0.3339664936065674,
-0.646500825881958,
-0.3885183334350586,
0.14307072758674622,
0.14332415163516998,
0.41499418020248413,
0.5792294144630432,
-0.3629593849182129,
0.6546704769134521,
0.6362876892089844,
-0.3228665292263031,
0.6546080112457275,
0.2185267060995102,
-0.008637630380690098,
-0.4667931795120239,
0.75871342420578,
0.019079966470599174,
-0.023101024329662323,
0.5352617502212524,
0.24625475704669952,
-0.3480157256126404,
-0.32090646028518677,
-0.6203283071517944,
0.44752687215805054,
-0.7697858810424805,
-0.36355409026145935,
-0.45714282989501953,
-0.23258830606937408,
-0.5360102653503418,
-0.16688697040081024,
-0.357008159160614,
-0.5657748579978943,
-0.46348127722740173,
-0.15420076251029968,
0.5942442417144775,
0.6687886714935303,
-0.3099181354045868,
0.5645168423652649,
-0.6037076711654663,
0.18445135653018951,
-0.049481991678476334,
0.2825371325016022,
-0.2948804795742035,
-0.5632895827293396,
-0.6180715560913086,
0.0933440700173378,
-0.17713363468647003,
-0.8775586485862732,
0.6457267999649048,
0.42130815982818604,
0.7018863558769226,
0.2252281755208969,
-0.06535916030406952,
0.580273449420929,
-0.6886115670204163,
0.8147740364074707,
0.20409588515758514,
-1.0053093433380127,
0.4461348056793213,
-0.12704387307167053,
0.12958478927612305,
0.362417995929718,
0.4035770893096924,
-0.514297604560852,
-0.10616134852170944,
-0.5950960516929626,
-0.8126411437988281,
0.7857047915458679,
0.19255556166172028,
0.40554267168045044,
-0.13851232826709747,
0.25035908818244934,
0.11422654986381531,
0.2114739716053009,
-0.9109359383583069,
-0.5618140697479248,
-0.45801132917404175,
-0.526504397392273,
-0.0885801911354065,
-0.35093989968299866,
-0.10910672694444656,
-0.3097843825817108,
0.8513616919517517,
0.13739581406116486,
0.684024453163147,
0.16647228598594666,
-0.4308541417121887,
0.2795960307121277,
0.08789660036563873,
0.5519435405731201,
0.18615028262138367,
-0.35676419734954834,
-0.0447147972881794,
0.16578996181488037,
-0.4093463718891144,
0.0765625461935997,
0.07710130512714386,
-0.16856174170970917,
0.3805965483188629,
0.20677550137043,
0.7565647959709167,
0.057031452655792236,
-0.4993959367275238,
0.7225666046142578,
-0.0024039428681135178,
-0.1921961009502411,
-0.6645179986953735,
-0.34796014428138733,
0.2163158357143402,
0.13135379552841187,
0.2830049693584442,
-0.0030586582142859697,
0.3202086091041565,
-0.618838369846344,
0.423226535320282,
0.4038175344467163,
-0.4487338066101074,
-0.19119729101657867,
0.3660140037536621,
0.2006428837776184,
-0.20075580477714539,
0.8070262670516968,
-0.29599353671073914,
-0.6591073274612427,
0.4256591796875,
0.4404190182685852,
0.898119330406189,
0.0972379669547081,
0.3919367492198944,
0.4252961575984955,
0.425808846950531,
-0.12116577476263046,
0.34799209237098694,
0.07815968990325928,
-0.7630250453948975,
-0.5979406833648682,
-0.5927674770355225,
-0.2268485128879547,
0.02756749466061592,
-0.8626147508621216,
0.31566122174263,
-0.4682934284210205,
-0.25955644249916077,
0.004082310479134321,
0.07734652608633041,
-0.8564884662628174,
0.17585629224777222,
0.1532498151063919,
0.7450464963912964,
-0.9318034648895264,
0.9786786437034607,
0.923206627368927,
-0.38806581497192383,
-0.5639429688453674,
-0.4781103730201721,
-0.4375661015510559,
-0.7956780195236206,
0.8476234078407288,
0.07839792221784592,
0.2654131352901459,
-0.1582827866077423,
-0.3921439051628113,
-0.8643532991409302,
0.8658431768417358,
0.29028216004371643,
-0.31476062536239624,
0.10458932816982269,
0.15879510343074799,
0.5370022654533386,
-0.6164656281471252,
0.22129696607589722,
0.3217483162879944,
0.2927210330963135,
-0.2451712191104889,
-0.8763344287872314,
-0.1616618037223816,
-0.34510207176208496,
0.045019980520009995,
0.13565167784690857,
-0.6365562081336975,
1.1447813510894775,
-0.05243164300918579,
-0.07625728100538254,
0.24726560711860657,
0.5940920114517212,
-0.09057049453258514,
-0.0672861859202385,
0.2996112108230591,
0.7539012432098389,
0.19769641757011414,
-0.4218684732913971,
0.9307496547698975,
-0.3443208932876587,
0.8045996427536011,
0.8824205994606018,
0.20787598192691803,
0.9876559376716614,
0.48894163966178894,
-0.1275775283575058,
0.8670593500137329,
0.6361762881278992,
-0.3518763482570648,
0.9812080264091492,
0.23354411125183105,
0.01789313554763794,
-0.18163523077964783,
0.25651904940605164,
-0.3770221471786499,
0.5468764305114746,
0.48930439352989197,
-0.5331943035125732,
-0.14807121455669403,
0.2215127795934677,
0.15932045876979828,
-0.02301015704870224,
-0.07372293621301651,
0.681583821773529,
-0.006843306124210358,
-0.4206622838973999,
0.5837694406509399,
0.20621947944164276,
0.9667813777923584,
-0.46125149726867676,
-0.08119942992925644,
-0.1077166274189949,
0.40321871638298035,
0.027851123362779617,
-0.7749153971672058,
0.24827750027179718,
-0.107068732380867,
-0.18260645866394043,
-0.34865355491638184,
0.5838060975074768,
-0.5700342059135437,
-0.863788366317749,
0.23943746089935303,
0.42367932200431824,
0.30822890996932983,
0.15632227063179016,
-0.8523895740509033,
-0.07978762686252594,
0.03347916528582573,
-0.404139906167984,
0.21224980056285858,
0.29028621315956116,
0.38351505994796753,
0.5938308238983154,
0.3043900728225708,
0.07082948833703995,
0.14836277067661285,
0.1622057855129242,
0.798076331615448,
-0.584104061126709,
-0.4585071802139282,
-0.8100321292877197,
0.5509982109069824,
-0.15065163373947144,
-0.37852877378463745,
0.8234559893608093,
0.6566022038459778,
0.9114793539047241,
-0.5631247162818909,
0.6304645538330078,
-0.21481503546237946,
0.3030746281147003,
-0.5372655987739563,
0.8433894515037537,
-0.6089988946914673,
-0.1861574351787567,
-0.1068267822265625,
-0.9620149731636047,
-0.19349895417690277,
1.1910855770111084,
0.038974180817604065,
-0.04223724082112312,
0.8032295107841492,
0.5519239902496338,
0.03290971741080284,
-0.47094589471817017,
0.3557615280151367,
0.2316807210445404,
0.1383056789636612,
0.5103878378868103,
0.5028942227363586,
-0.798638641834259,
0.6206656694412231,
-0.7103234529495239,
0.00804623682051897,
-0.4611837863922119,
-0.850946843624115,
-1.1144206523895264,
-0.7181466221809387,
-0.4873669743537903,
-0.4555125832557678,
-0.12133096903562546,
0.8899701237678528,
0.8246476054191589,
-0.9655256271362305,
-0.2503241002559662,
0.1438254714012146,
-0.03384321928024292,
-0.11683709919452667,
-0.19824890792369843,
0.4466703534126282,
-0.38387271761894226,
-0.933788001537323,
0.17477162182331085,
0.008495750837028027,
0.011629070155322552,
-0.37740203738212585,
-0.008265183307230473,
-0.33116841316223145,
-0.2246077060699463,
0.6396107077598572,
-0.22497326135635376,
-0.8837348222732544,
-0.5661689639091492,
0.19896261394023895,
-0.15826033055782318,
0.0002416563656879589,
0.560343325138092,
-0.6688634157180786,
0.5389654636383057,
0.5875742435455322,
0.4658188819885254,
0.6915225386619568,
-0.2541678547859192,
0.6228150129318237,
-0.9944555163383484,
0.2893773019313812,
0.22514213621616364,
0.7994658946990967,
0.58968585729599,
-0.24938173592090607,
0.44015952944755554,
0.1681966781616211,
-0.5080037713050842,
-0.6627219319343567,
0.06251943111419678,
-1.2589572668075562,
-0.1568301022052765,
1.1631649732589722,
-0.33935627341270447,
-0.3338554799556732,
0.2428058534860611,
-0.32658830285072327,
0.39992856979370117,
-0.4774561822414398,
0.7989658117294312,
0.9917956590652466,
0.15091834962368011,
-0.12264298647642136,
-0.18963909149169922,
0.42974239587783813,
0.5559375286102295,
-0.3547828495502472,
-0.2562018930912018,
0.34410715103149414,
0.36637619137763977,
0.4743707776069641,
0.07139576226472855,
-0.07048008590936661,
0.21223047375679016,
0.1906144618988037,
0.33968669176101685,
-0.021468909457325935,
-0.13399635255336761,
-0.27054327726364136,
-0.04260630160570145,
-0.07958981394767761,
-0.5180841088294983
] |
Narasimha/hinglish-distilbert
|
Narasimha
| 2022-05-05T08:45:20Z | 9,139 | 0 |
transformers
|
[
"transformers",
"pytorch",
"distilbert",
"text-classification",
"license:mit",
"endpoints_compatible",
"region:us"
] |
text-classification
| 2022-05-05T08:38:09Z |
---
license: mit
---
|
[
-0.12853388488292694,
-0.18616782128810883,
0.6529127359390259,
0.4943625330924988,
-0.19319313764572144,
0.23607465624809265,
0.36071982979774475,
0.05056332051753998,
0.5793652534484863,
0.740013837814331,
-0.6508103013038635,
-0.2378396987915039,
-0.710224986076355,
-0.04782581701874733,
-0.3894752264022827,
0.8470761775970459,
-0.09598272293806076,
0.024004854261875153,
0.047120071947574615,
-0.14317826926708221,
-0.6121037602424622,
-0.04771740734577179,
-1.0524537563323975,
-0.06787490844726562,
0.3002279996871948,
0.5120972990989685,
0.8275896310806274,
0.39602896571159363,
0.5030564069747925,
1.7515558004379272,
-0.08836919069290161,
-0.22754427790641785,
-0.45892032980918884,
0.4223068356513977,
-0.33277371525764465,
-0.42133718729019165,
-0.2624166011810303,
-0.07449338585138321,
0.32380399107933044,
0.790371298789978,
-0.38104110956192017,
0.19328099489212036,
-0.22438454627990723,
1.008224368095398,
-0.8202074766159058,
0.22630876302719116,
-0.16698351502418518,
0.14053204655647278,
0.042308706790208817,
-0.14591927826404572,
-0.1326323002576828,
-0.6440033912658691,
0.06469469517469406,
-0.899596095085144,
0.1027495265007019,
-0.04461126774549484,
0.8789561986923218,
0.21909058094024658,
-0.5102370977401733,
-0.0459773913025856,
-0.6883594989776611,
1.0972508192062378,
-0.17556026577949524,
0.7615712881088257,
0.4507811963558197,
0.45288562774658203,
-0.5849329829216003,
-1.178217887878418,
-0.4441864490509033,
-0.13579002022743225,
0.14722809195518494,
0.30556100606918335,
-0.3453029692173004,
-0.022343844175338745,
0.10801105946302414,
0.5610314011573792,
-0.5003758072853088,
-0.311959445476532,
-0.9579929113388062,
-0.18164916336536407,
0.6820483207702637,
0.319308340549469,
0.834044337272644,
0.1873151659965515,
-0.7347195744514465,
0.12866291403770447,
-1.3239703178405762,
0.07650735974311829,
0.6465023756027222,
0.239467591047287,
-0.554598867893219,
0.8594784736633301,
-0.28587982058525085,
0.626249372959137,
0.2728465497493744,
-0.1164526641368866,
0.2784252464771271,
-0.23030735552310944,
-0.2735062837600708,
0.033087607473134995,
0.34597301483154297,
0.8204491138458252,
0.16248634457588196,
-0.019984982907772064,
-0.22123965620994568,
0.0020717978477478027,
0.2684449553489685,
-0.7935096025466919,
-0.4712669551372528,
0.1926696002483368,
-0.558952808380127,
-0.0910850465297699,
0.4327022135257721,
-1.0976827144622803,
-0.4812980592250824,
-0.1879846155643463,
0.05468139797449112,
-0.5451693534851074,
-0.3697946071624756,
0.07273250073194504,
-0.79254150390625,
-0.1243419200181961,
0.570950984954834,
-0.6230252981185913,
0.43974608182907104,
0.533625602722168,
0.7861635684967041,
0.2330387681722641,
-0.23613610863685608,
-0.6695019602775574,
0.48848265409469604,
-0.8661867380142212,
0.36860740184783936,
-0.3073781132698059,
-0.8298640251159668,
-0.09631050378084183,
0.5393159985542297,
0.20664852857589722,
-0.6653256416320801,
0.7074045538902283,
-0.5496984720230103,
-0.07806532829999924,
-0.4308285415172577,
-0.2432200014591217,
0.17460417747497559,
0.11115431040525436,
-0.6238909363746643,
0.9402233362197876,
0.5551108121871948,
-0.584109902381897,
0.31701239943504333,
-0.4869506359100342,
-0.6865583658218384,
0.26748135685920715,
-0.008750975131988525,
-0.047152332961559296,
0.3279528021812439,
-0.15983973443508148,
-0.0020511597394943237,
0.10505761206150055,
0.008299741894006729,
-0.21891699731349945,
-0.4786304235458374,
0.06349936127662659,
0.151650071144104,
1.25368332862854,
0.4083622097969055,
-0.3771882951259613,
-0.13140122592449188,
-1.0526149272918701,
0.025432661175727844,
0.0505015105009079,
-0.42306768894195557,
-0.2504565119743347,
-0.14882194995880127,
-0.20381587743759155,
0.4307260811328888,
0.2118472456932068,
-0.813115119934082,
0.22643625736236572,
-0.2064024657011032,
0.364496648311615,
0.8222091794013977,
0.2703101634979248,
0.39760565757751465,
-0.6625286340713501,
0.6563138365745544,
0.2076188325881958,
0.49590179324150085,
0.35404202342033386,
-0.3845822811126709,
-0.9641586542129517,
-0.442161500453949,
-0.10117404907941818,
0.2975531220436096,
-0.7744957804679871,
0.5847322940826416,
0.012979604303836823,
-0.5836705565452576,
-0.4465281367301941,
-0.15488101541996002,
0.2755330502986908,
-0.06606576591730118,
0.03334902226924896,
-0.4049779176712036,
-0.7394417524337769,
-1.0127898454666138,
-0.13788150250911713,
-0.5021388530731201,
-0.21892830729484558,
0.3160586357116699,
0.2617739737033844,
-0.34290042519569397,
0.7610747814178467,
-0.6059278249740601,
-0.704064130783081,
-0.13973554968833923,
-0.0995984673500061,
0.6187719702720642,
0.9297672510147095,
0.749138355255127,
-0.7224893569946289,
-0.8973818421363831,
-0.056230708956718445,
-0.5420039892196655,
-0.020044349133968353,
0.038149889558553696,
-0.18260693550109863,
-0.10514980554580688,
0.22352531552314758,
-0.6100803017616272,
0.8851073980331421,
0.43224984407424927,
-0.681546688079834,
0.5210590958595276,
-0.4444413483142853,
0.6073803901672363,
-0.8642839193344116,
-0.2911490201950073,
-0.16823577880859375,
-0.1976117193698883,
-0.7090160846710205,
0.19411544501781464,
-0.3002234101295471,
-0.33029863238334656,
-0.7474032044410706,
0.5274897813796997,
-0.9497010707855225,
-0.18781527876853943,
-0.33672773838043213,
-0.03423111140727997,
0.25807833671569824,
0.19490505754947662,
-0.23560254275798798,
0.8900529742240906,
0.9160482287406921,
-0.7121306657791138,
0.5487277507781982,
0.3930906653404236,
-0.1920013427734375,
0.7131237387657166,
-0.3887738585472107,
0.05161993205547333,
-0.12344931066036224,
0.14374595880508423,
-1.126388430595398,
-0.561158299446106,
0.13677382469177246,
-0.712703287601471,
0.17686958611011505,
-0.16556859016418457,
-0.09428537636995316,
-0.6608465313911438,
-0.33806395530700684,
0.25910091400146484,
0.48612290620803833,
-0.47969940304756165,
0.6188148260116577,
0.5728040337562561,
0.02651876211166382,
-0.5307406783103943,
-0.7206818461418152,
0.20418110489845276,
0.039646461606025696,
-0.5569695830345154,
0.3011690080165863,
0.006543457508087158,
-0.6622446775436401,
-0.371124804019928,
-0.26354190707206726,
-0.6043857336044312,
-0.2267974615097046,
0.7826986312866211,
0.1199423298239708,
-0.09012264013290405,
-0.20310267806053162,
-0.3199536204338074,
-0.06167525798082352,
0.30487415194511414,
-0.07575298100709915,
0.7232834696769714,
-0.33623749017715454,
-0.17850083112716675,
-0.887734055519104,
0.652754545211792,
0.9970465302467346,
0.09446714073419571,
0.806644082069397,
0.46324217319488525,
-0.35647475719451904,
-0.1304660439491272,
-0.3535459041595459,
-0.15120601654052734,
-0.685774564743042,
-0.1806798279285431,
-0.5322476625442505,
-0.5411434769630432,
0.40530654788017273,
0.10101459175348282,
-0.0021042972803115845,
0.5167046785354614,
0.2533605694770813,
-0.28806859254837036,
0.7550324201583862,
1.034340739250183,
0.1391797959804535,
0.3602915108203888,
-0.2854715585708618,
0.6341594457626343,
-0.8329949378967285,
-0.34052175283432007,
-0.4548071026802063,
-0.2563585042953491,
-0.31214389204978943,
-0.10750849545001984,
0.5791022181510925,
0.2818215489387512,
-0.4463467597961426,
0.1250680536031723,
-0.5994209051132202,
0.6587361693382263,
0.6273988485336304,
0.5719727873802185,
0.1997303068637848,
-0.46199458837509155,
0.19982971251010895,
0.04816687852144241,
-0.45745599269866943,
-0.4009109139442444,
0.7711143493652344,
0.2399624139070511,
0.8364022374153137,
0.20927050709724426,
0.4957774877548218,
0.33375421166419983,
0.2528058588504791,
-0.6318977475166321,
0.2009797990322113,
-0.22282809019088745,
-1.245961308479309,
-0.206426739692688,
-0.16551318764686584,
-1.0080583095550537,
-0.11792082339525223,
-0.18288995325565338,
-0.8406620025634766,
0.2665729820728302,
-0.19225634634494781,
-0.6640645265579224,
0.5206149220466614,
-0.5103875398635864,
0.69347083568573,
-0.23555898666381836,
-0.2817087769508362,
0.11930079013109207,
-0.6889920830726624,
0.5254612565040588,
0.3667147755622864,
0.29168397188186646,
-0.37968993186950684,
-0.3192872405052185,
0.5068994760513306,
-0.881224513053894,
0.44081127643585205,
-0.10564978420734406,
0.19428130984306335,
0.5358879566192627,
0.4153591990470886,
0.3823971152305603,
0.28699052333831787,
-0.2459377944469452,
-0.23415414988994598,
0.2250344604253769,
-0.7581346035003662,
-0.27754613757133484,
0.9095459580421448,
-0.7519428730010986,
-0.8586915731430054,
-0.6954255700111389,
-0.30644941329956055,
0.28865277767181396,
0.02781464159488678,
0.7154772281646729,
0.6456884145736694,
-0.18821057677268982,
0.23776991665363312,
0.7208225727081299,
-0.0146945184096694,
0.7235562801361084,
0.29411184787750244,
-0.4056646227836609,
-0.6169787645339966,
0.7182320356369019,
0.2627044916152954,
0.05162655562162399,
0.028327951207756996,
0.3058736026287079,
-0.17546698451042175,
-0.15078596770763397,
-0.6318323612213135,
-0.06395323574542999,
-0.7465729117393494,
-0.0927949845790863,
-0.7541396617889404,
-0.2507742643356323,
-0.7114590406417847,
-0.8068137764930725,
-0.7080163955688477,
-0.45604395866394043,
-0.43011948466300964,
-0.23352204263210297,
0.5163108706474304,
1.1627086400985718,
-0.2613152861595154,
0.8011051416397095,
-0.8900954723358154,
0.41936296224594116,
0.4969540238380432,
0.7519731521606445,
-0.11061006784439087,
-0.6746935844421387,
-0.07836239039897919,
-0.5338755249977112,
-0.29485058784484863,
-1.0156972408294678,
0.31774646043777466,
-0.03688591718673706,
0.40537136793136597,
0.42938894033432007,
0.25190269947052,
0.49392756819725037,
-0.30073118209838867,
1.1130688190460205,
0.7274302244186401,
-0.803381085395813,
0.519527792930603,
-0.7635002136230469,
0.16122324764728546,
0.9363659620285034,
0.54477459192276,
-0.4417075514793396,
-0.15113934874534607,
-1.025976538658142,
-0.843137264251709,
0.5963036417961121,
0.15439945459365845,
0.016843896359205246,
0.01821417547762394,
0.03168272227048874,
0.29466384649276733,
0.3591304123401642,
-0.7847291231155396,
-0.8240220546722412,
-0.13851122558116913,
0.25803306698799133,
0.31456053256988525,
-0.1648542582988739,
-0.3003871440887451,
-0.611615777015686,
0.8711391091346741,
0.18286482989788055,
0.3546231985092163,
0.12073354423046112,
0.04369349032640457,
-0.35506919026374817,
0.14787021279335022,
0.5522999167442322,
1.2529057264328003,
-0.40983331203460693,
0.3673911392688751,
0.1751260608434677,
-0.6540069580078125,
0.6494997143745422,
-0.3036349415779114,
-0.021784601733088493,
0.6203135251998901,
0.17760884761810303,
0.28528398275375366,
0.315599262714386,
-0.3621427118778229,
0.6047801971435547,
-0.029422052204608917,
-0.17758512496948242,
-0.7005696296691895,
0.15866968035697937,
0.029350608587265015,
0.27507954835891724,
0.4392024278640747,
0.24443313479423523,
0.08246771991252899,
-1.0602877140045166,
0.5711055397987366,
0.24493910372257233,
-0.8676618337631226,
-0.3011006712913513,
0.7047957181930542,
0.4075389802455902,
-0.47599563002586365,
0.38749054074287415,
0.012702330946922302,
-0.6710241436958313,
0.5987741351127625,
0.5510413646697998,
0.7569674253463745,
-0.4702427089214325,
0.3088020086288452,
0.6245602965354919,
0.06711331009864807,
0.20550549030303955,
0.6923202872276306,
0.03149382025003433,
-0.44738656282424927,
0.23022446036338806,
-0.5986733436584473,
-0.1468990594148636,
0.13735318183898926,
-0.8047426342964172,
0.351533442735672,
-0.9312615394592285,
-0.24089956283569336,
0.08751589059829712,
0.11761097609996796,
-0.6130945086479187,
0.6674696207046509,
-0.008524954319000244,
0.9280490875244141,
-0.8549083471298218,
0.9626278281211853,
0.8559581637382507,
-0.31830817461013794,
-0.7709448337554932,
-0.33556753396987915,
0.02013934776186943,
-0.6660526990890503,
0.7108278274536133,
-0.18973003327846527,
-0.41207411885261536,
-0.09323947876691818,
-0.622982919216156,
-1.0003730058670044,
0.030618250370025635,
0.017415650188922882,
-0.4625031054019928,
0.4454794228076935,
-0.5157257318496704,
0.3289681673049927,
-0.19169732928276062,
0.30509495735168457,
0.7719469666481018,
0.7958452701568604,
0.22960808873176575,
-0.6354780197143555,
-0.4466685652732849,
-0.010276071727275848,
-0.16682815551757812,
0.4545809030532837,
-1.0710972547531128,
0.967736542224884,
-0.4652574360370636,
-0.34733209013938904,
0.2706642150878906,
0.797762393951416,
0.2538500428199768,
0.3524126708507538,
0.6219537258148193,
0.9016807079315186,
0.36450111865997314,
-0.31178343296051025,
0.7276745438575745,
0.2426338493824005,
0.4152539074420929,
0.7364203333854675,
-0.22712187469005585,
0.5403846502304077,
0.8906413316726685,
-0.786162257194519,
0.5381765365600586,
0.7879031896591187,
0.16047371923923492,
0.7758157253265381,
0.5944145917892456,
-0.611952543258667,
-0.1185941994190216,
-0.1464141309261322,
-0.6171560287475586,
0.1979752480983734,
0.052926212549209595,
-0.11974738538265228,
-0.2846010625362396,
-0.13567376136779785,
0.12295057624578476,
0.2836454212665558,
-0.5959328413009644,
0.606866717338562,
0.34341585636138916,
-0.6328282356262207,
0.21025103330612183,
-0.25779569149017334,
0.6709501147270203,
-0.5978154540061951,
0.02733636647462845,
-0.226993590593338,
0.41810402274131775,
-0.4618742763996124,
-1.007582426071167,
0.47138404846191406,
-0.2920241355895996,
-0.40551304817199707,
-0.26942431926727295,
0.8072363138198853,
-0.22133907675743103,
-0.5572860240936279,
0.37486034631729126,
0.13466592133045197,
0.41473662853240967,
0.40145981311798096,
-0.548729419708252,
0.047790080308914185,
0.13760165870189667,
-0.20061805844306946,
0.3601190149784088,
0.2973729372024536,
0.25488772988319397,
0.7100128531455994,
0.5052477717399597,
0.22198708355426788,
0.25694364309310913,
-0.18668605387210846,
0.8387458324432373,
-0.9102796316146851,
-0.8167635202407837,
-0.9497333765029907,
0.3849896192550659,
0.025727711617946625,
-0.880144476890564,
0.7920305728912354,
0.7652608156204224,
0.5113964080810547,
-0.4877890348434448,
0.4755283296108246,
-0.326479434967041,
0.5047136545181274,
-0.13870958983898163,
1.001089096069336,
-0.760762631893158,
-0.29587265849113464,
-0.030554059892892838,
-0.9216439723968506,
-0.2533753216266632,
0.5375741720199585,
0.1540832668542862,
-0.14608067274093628,
0.4385907053947449,
0.44216376543045044,
0.022173406556248665,
0.25223150849342346,
0.32861006259918213,
0.06042787432670593,
0.14508451521396637,
0.5510438680648804,
1.0931141376495361,
-0.43394410610198975,
0.18694786727428436,
-0.4923475384712219,
-0.4536249041557312,
-0.4153490662574768,
-0.9548057913780212,
-0.6640313863754272,
-0.48185449838638306,
-0.2973935008049011,
-0.5915579199790955,
0.11726461350917816,
0.9300885796546936,
0.9018137454986572,
-0.6256728172302246,
-0.41243645548820496,
0.25713539123535156,
0.30293411016464233,
-0.2295418381690979,
-0.146267831325531,
0.2736492455005646,
-0.006407544948160648,
-0.7211178541183472,
0.3930943012237549,
0.807976245880127,
0.3887130320072174,
0.08444006741046906,
-0.07217127084732056,
-0.4407080411911011,
0.026101574301719666,
0.5373561382293701,
0.5729561448097229,
-0.6281182169914246,
-0.4099644422531128,
-0.5328317880630493,
-0.21386730670928955,
0.15529435873031616,
0.48077550530433655,
-0.5166378617286682,
0.32661110162734985,
0.8128959536552429,
0.17017659544944763,
0.7187885642051697,
-0.0022492259740829468,
0.6678642630577087,
-0.8970246315002441,
0.4446259140968323,
0.3953385353088379,
0.5681870579719543,
0.08998038619756699,
-0.7339164614677429,
0.9820241928100586,
0.49674350023269653,
-0.6334057450294495,
-1.0034242868423462,
0.03079957515001297,
-1.193113923072815,
-0.3788175582885742,
0.9890843629837036,
-0.09595765173435211,
-0.9597458839416504,
-0.36448943614959717,
-0.3677716851234436,
0.07989637553691864,
-0.33809733390808105,
0.35498204827308655,
0.8268195986747742,
-0.2538071274757385,
-0.2204185128211975,
-0.9505581855773926,
0.4752943515777588,
0.3102525472640991,
-0.5886632204055786,
-0.05114369094371796,
0.329391211271286,
0.45236870646476746,
0.3009701371192932,
0.5239557027816772,
0.10428227484226227,
0.8970529437065125,
0.25200390815734863,
0.30491405725479126,
-0.04526621103286743,
-0.590078592300415,
-0.0160664189606905,
0.2621477246284485,
0.04487839341163635,
-0.6869441270828247
] |
laion/CLIP-convnext_xxlarge-laion2B-s34B-b82K-augreg-soup
|
laion
| 2023-04-18T17:45:00Z | 9,090 | 16 |
open_clip
|
[
"open_clip",
"zero-shot-image-classification",
"clip",
"arxiv:2210.08402",
"arxiv:1910.04867",
"license:mit",
"has_space",
"region:us"
] |
zero-shot-image-classification
| 2023-02-26T20:23:04Z |
---
tags:
- zero-shot-image-classification
- clip
library_tag: open_clip
license: mit
library_name: open_clip
pipeline_tag: zero-shot-image-classification
---
# Model card for CLIP-convnext_xxlarge-laion2B-s34B-b82K-augreg-soup
# Table of Contents
1. [Model Details](#model-details)
2. [Uses](#uses)
3. [Training Details](#training-details)
4. [Evaluation](#evaluation)
5. [Acknowledgements](#acknowledgements)
6. [Citation](#citation)
# Model Details
## Model Description
A series of CLIP ConvNeXt-XXLarge (a custom `timm` ConvNeXt size) models trained on LAION-2B (english), a subset of [LAION-5B](https://arxiv.org/abs/2210.08402), using [OpenCLIP](https://github.com/mlfoundations/open_clip).
| Model | Dataset | Resolution | AugReg | Top-1 ImageNet Zero-Shot (%) |
| ----- | ------- | ---------- | ------------ | --------- |
| [convnext_xxlarge.laion2b_s34b_b82k-augreg](https://huggingface.co/laion/CLIP-convnext_xxlarge-laion2B-s34B-b82K-augreg) | LAION-2B | 256x256 | RRC (0.33, 1.0), RE (0.35), SD (0.1) | 79.1 |
| [convnext_xxlarge.laion2b_s34b_b82k-augreg-rewind](https://huggingface.co/laion/CLIP-convnext_xxlarge-laion2B-s34B-b82K-augreg-rewind) | LAION-2B | 256x256 | RRC (0.3, 1.0), RE (0.4), SD (0.1) | 79.3 |
| [convnext_xxlarge.laion2b_s34b_b82k-augreg-soup](https://huggingface.co/laion/CLIP-convnext_xxlarge-laion2B-s34B-b82K-augreg-soup) | LAION-2B | 256x256 | N/A | 79.4 |
RRC = Random Resize Crop (crop pcts), RE = Random Erasing (prob), SD = Stochastic Depth (prob) -- image tower only
The core training run was performed in pieces over a period of ~ 2 months. The global batch size for the core run was 81920. The last ~10% of training was re-done at a 95744 global batch size w/ higher LR and aug than original finish. The two were averaged together in a 'soup'. See more details in [Training Details](#training-details).
Goals:
* Push the size of largest convolutional CLIP image tower into the performance range of ViT-g to ViT-G w/ improved image size scaling for downstream use.
Firsts:
* Largest released ConvNeXt model pretrained (847M params w/ 198 GMAC and 125 MActs @ 256x256 for image)
* A non-ViT image tower CLIP model (with no previous image tower pretrain) achieving > 79% ImageNet top-1 zero-shot
The models utilize:
* the [timm](https://github.com/rwightman/pytorch-image-models) ConvNeXt-XXLarge model (`convnext_xxlarge`) as the image tower
* a standard projection at end of image tower
* a text tower with same size (with 1024, heads 16, depth 24) as ViT-H-14 and ViT-g-14 models
The models are trained at 256x256 image resolution. The size of the combined image + text CLIP model is 1.2B params w/ 222 GMAC and 146 MActs. At 256x256, the ConvNext-XXLarge sits just above a ViT-H-14 CLIP configuration in FLOPS and params while being lower in activation counts. It is well under both g-14 and G-14 while being between them in capabilities.
|model |image_size|embed_dim|gmacs |macts |mparams|image_gmacs|image_macts|image_mparams|text_gmacs|text_macts|text_mparams|
|--------------------------|----------|---------|------|------|-------|-----------|-----------|-------------|----------|----------|------------|
|ViT-H-16 |224 |1024 |150.96|122.01|986.26 |127.4 |100.81 |632.23 |23.57 |21.2 |354.03 |
|ViT-H-14 |224 |1024 |190.97|160.61|986.11 |167.4 |139.41 |632.08 |23.57 |21.2 |354.03 |
|ViT-L-14-336 |336 |768 |197.76|278.19|427.94 |191.1 |270.24 |304.29 |6.66 |7.95 |123.65 |
|convnext_xxlarge |256 |1024 |221.66|145.66|1200.58|198.09 |124.45 |846.54 |23.57 |21.2 |354.03 |
|RN50x64 |448 |1024 |276.8 |249.73|623.26 |265.02 |239.13 |420.38 |11.78 |10.6 |202.88 |
|ViT-g-14 |224 |1024 |290.74|213.84|1366.68|267.18 |192.64 |1012.65 |23.57 |21.2 |354.03 |
|convnext_xxlarge_320 |320 |1024 |333.08|215.66|1200.58|309.52 |194.46 |846.54 |23.57 |21.2 |354.03 |
|ViT-H-14-336 |336 |1024 |414.53|428.74|986.52 |390.97 |407.54 |632.49 |23.57 |21.2 |354.03 |
|ViT-bigG-14 |224 |1280 |532.92|310.71|2539.57|483.96 |275.37 |1844.91 |48.96 |35.34 |694.66 |
Model training done by Ross Wightman across both the [stability.ai](https://stability.ai/) cluster and the [JUWELS Booster](https://apps.fz-juelich.de/jsc/hps/juwels/booster-overview.html) supercomputer. See acknowledgements below.
# Uses
As per the original [OpenAI CLIP model card](https://github.com/openai/CLIP/blob/d50d76daa670286dd6cacf3bcd80b5e4823fc8e1/model-card.md), this model is intended as a research output for research communities. We hope that this model will enable researchers to better understand and explore zero-shot, arbitrary image classification. We also hope it can be used for interdisciplinary studies of the potential impact of such model.
The OpenAI CLIP paper includes a discussion of potential downstream impacts to provide an example for this sort of analysis. Additionally, the LAION-5B blog (https://laion.ai/blog/laion-5b/) and upcoming paper include additional discussion as it relates specifically to the training dataset.
## Direct Use
Zero-shot image classification, image and text retrieval, among others.
## Downstream Use
Image classification and other image task fine-tuning, linear probe image classification, image generation guiding and conditioning, among others.
## Out-of-Scope Use
As per the OpenAI models,
**Any** deployed use case of the model - whether commercial or not - is currently out of scope. Non-deployed use cases such as image search in a constrained environment, are also not recommended unless there is thorough in-domain testing of the model with a specific, fixed class taxonomy. This is because our safety assessment demonstrated a high need for task specific testing especially given the variability of CLIP’s performance with different class taxonomies. This makes untested and unconstrained deployment of the model in any use case currently potentially harmful.
Certain use cases which would fall under the domain of surveillance and facial recognition are always out-of-scope regardless of performance of the model. This is because the use of artificial intelligence for tasks such as these can be premature currently given the lack of testing norms and checks to ensure its fair use.
Since the model has not been purposefully trained in or evaluated on any languages other than English, its use should be limited to English language use cases.
Further the above notice, the LAION-5B dataset used in training of these models has additional considerations, see below.
# Training Details
## Training Data
This model was trained with LAION-2B -- A 2 billion sample English subset of LAION-5B (https://laion.ai/blog/laion-5b/).
**IMPORTANT NOTE:** The motivation behind dataset creation is to democratize research and experimentation around large-scale multi-modal model training and handling of uncurated, large-scale datasets crawled from publically available internet. Our recommendation is therefore to use the dataset for research purposes. Be aware that this large-scale dataset is uncurated. Keep in mind that the uncurated nature of the dataset means that collected links may lead to strongly discomforting and disturbing content for a human viewer. Therefore, please use the demo links with caution and at your own risk. It is possible to extract a “safe” subset by filtering out samples based on the safety tags (using a customized trained NSFW classifier that we built). While this strongly reduces the chance for encountering potentially harmful content when viewing, we cannot entirely exclude the possibility for harmful content being still present in safe mode, so that the warning holds also there. We think that providing the dataset openly to broad research and other interested communities will allow for transparent investigation of benefits that come along with training large-scale models as well as pitfalls and dangers that may stay unreported or unnoticed when working with closed large datasets that remain restricted to a small community. Providing our dataset openly, we however do not recommend using it for creating ready-to-go industrial products, as the basic research about general properties and safety of such large-scale models, which we would like to encourage with this release, is still in progress.
## Training Procedure
The main training run was done at global batch size of 81920 for 256 checkpoint intervals of 135.6M samples for a total of ~34B samples seen over training.
Many difficulties w/ both model numerical stability and cluster stability and performance were encountered while training this model. Initial attempts to train with float16 AMP and default adam beta2 resulted in loss spikes and eventually NaN blow ups. `beta2` was reduced to 0.97 which helped, but the loss / zs curves were not tracking as expected. After switching to PyTorch nightlies, it was possible to use bfloat16 + AMP for training (as with rececnt H/14, g/14, and G/14 models), beta2 was returned to 0.98 and metrics improved.
|Checkpoint Interval |Cluster |# GPUs|# Nodes|GPU |local BS|sample/s|sample/s/gpu|precision |adam beta2 |
|--------------------|----------|------|-------|----------|--------|--------|------------|----------|-----------|
|1 - 2 |Stability |1024 |128 |A100 40GB | 80 |37-40k | 36-39 |amp + fp16|0.97 |
|3 - 32 |Stability |512 |64 |A100 80GB | 160 |27-32k | 52-62 |amp + fp16|0.97 |
|33 - 75 |Booster |1024 |256 |A100 40GB | 80 |48k | 47 |amp + fp16|0.97 |
|76 - 165 |Booster |1024 |256 |A100 40GB | 80 |51k | 50 |amp + bf16|0.98 |
|166 - 232 |Stability |320 |40 |A100 80GB | 256 |18-19k | 56-59 |amp + bf16|0.98 |
|233 - 249 |Booster |1024 |256 |A100 40GB | 80 |51k | 50 |amp + bf16|0.98 |
|250 - 256 |Stability |1024 |128 |A100 40GB | 80 |27-31k | 26-30 |amp + bf16|0.98 |
JUWELS Booster has 4x A100 GPU per node w/ 4x HDR-200 IB adapters per node (200Gbit/sec per GPU). Stability setup used was 8x A100 GPU per node w/ 400Gbit/sec EFA networking per node (50 GBit/sec per GPU). Significant variation in training efficiency (throughput per GPU) as observed across the various configurations. The 1024 GPU configurations across both clusters were particularly prone to crashing (or very difficult to get running w/ a 'good' set of GPUs).
A slurm srun command line below for a 128 8-GPU (40GB A100) configuration:
```
srun --cpu_bind=v --accel-bind=gn python -m training.main \
--save-frequency 1 \
--name "xxlarge-2b-81920-bf16" \
--resume "latest" \
--logs "/runs" \
--log-every-n-steps 50 \
--train-data="pipe:aws s3 cp s3://laion5b/laion2B-data/{000000..231349}.tar -" \
--train-num-samples 135646078 \
--dataset-type webdataset \
--warmup 10000 \
--batch-size=80 \
--epochs=256 \
--dataset-resampled \
--aug-cfg use_timm=True scale='(0.33, 1.0)' re_prob=0.35 \
--precision amp_bfloat16 \
--grad-clip-norm 5.0 \
--lr 1e-3 \
--workers=6 \
--beta2 0.98 \
--model "convnext_xxlarge" \
--seed 0 \
--ddp-static-graph \
--local-loss \
--gather-with-grad \
--grad-checkpointing \
--report-to "tensorboard"
```
For the rewind of last 10%, a higher global batch size of 95744 was used w/ a higher LR and slightly increased augmentation strength.
|Checkpoint Interval |Cluster |# GPUs|# Nodes|GPU |local BS|sample/s|sample/s/gpu|precision |adam beta2 |
|--------------------|---------|------|-------|----------|--------|--------|------------|----------|-----------|
|231 - 256 |stability|1088 |136 |A100 40GB | 88 |32-35k | 29-32 |amp + bf16|0.98 |
The slurm srun command line for 136 8-GPU (40GB A100) nodes:
```
srun --cpu_bind=v --accel-bind=gn python -m training.main \
--save-frequency 1 \
--name "xxlarge-2b-81920-r-bf16" \
--resume "latest" \
--logs "/runs" \
--log-every-n-steps 50 \
--train-data="pipe:aws s3 cp s3://laion5b/laion2B-data/{000000..231349}.tar -" \
--train-num-samples 135646078 \
--dataset-type webdataset \
--warmup 10000 \
--batch-size=88 \
--epochs=256 \
--dataset-resampled \
--aug-cfg use_timm=True scale='(0.3, 1.0)' re_prob=0.4 \
--precision amp_bfloat16 \
--grad-clip-norm 5.0 \
--lr 2e-3 \
--workers=6 \
--beta2 0.98 \
--model "convnext_xxlarge" \
--seed 0 \
--ddp-static-graph \
--local-loss \
--gather-with-grad \
--grad-checkpointing \
--report-to "tensorboard"
```
# Evaluation
Evaluation done with code in the [LAION CLIP Benchmark suite](https://github.com/LAION-AI/CLIP_benchmark).
## Testing Data, Factors & Metrics
### Testing Data
The testing is performed with VTAB+ (A combination of VTAB (https://arxiv.org/abs/1910.04867) w/ additional robustness datasets) for classification and COCO and Flickr for retrieval.
## Results
These models achieve between 79.1 and 79.4 top-1 zero-shot accuracy on ImageNet-1k.

A zoom-in on final 10% w/ rewind:

An initial round of benchmarks have been performed on a wider range of datasets, to be viewable at https://github.com/LAION-AI/CLIP_benchmark/blob/main/benchmark/results.ipynb
# Acknowledgements
Acknowledging [stability.ai](https://stability.ai/) and the Gauss Centre for Supercomputing e.V. (http://gauss-centre.eu) for funding this part of work by providing computing time through the John von Neumann Institute for Computing (NIC) on the GCS Supercomputer JUWELS Booster at Jülich Supercomputing Centre (JSC).
# Citation
**BibTeX:**
LAION-5B
```bibtex
@inproceedings{schuhmann2022laionb,
title={{LAION}-5B: An open large-scale dataset for training next generation image-text models},
author={Christoph Schuhmann and
Romain Beaumont and
Richard Vencu and
Cade W Gordon and
Ross Wightman and
Mehdi Cherti and
Theo Coombes and
Aarush Katta and
Clayton Mullis and
Mitchell Wortsman and
Patrick Schramowski and
Srivatsa R Kundurthy and
Katherine Crowson and
Ludwig Schmidt and
Robert Kaczmarczyk and
Jenia Jitsev},
booktitle={Thirty-sixth Conference on Neural Information Processing Systems Datasets and Benchmarks Track},
year={2022},
url={https://openreview.net/forum?id=M3Y74vmsMcY}
}
```
OpenCLIP software
```bibtex
@software{ilharco_gabriel_2021_5143773,
author = {Ilharco, Gabriel and
Wortsman, Mitchell and
Wightman, Ross and
Gordon, Cade and
Carlini, Nicholas and
Taori, Rohan and
Dave, Achal and
Shankar, Vaishaal and
Namkoong, Hongseok and
Miller, John and
Hajishirzi, Hannaneh and
Farhadi, Ali and
Schmidt, Ludwig},
title = {OpenCLIP},
month = jul,
year = 2021,
note = {If you use this software, please cite it as below.},
publisher = {Zenodo},
version = {0.1},
doi = {10.5281/zenodo.5143773},
url = {https://doi.org/10.5281/zenodo.5143773}
}
```
OpenAI CLIP paper
```bibtex
@inproceedings{Radford2021LearningTV,
title={Learning Transferable Visual Models From Natural Language Supervision},
author={Alec Radford and Jong Wook Kim and Chris Hallacy and A. Ramesh and Gabriel Goh and Sandhini Agarwal and Girish Sastry and Amanda Askell and Pamela Mishkin and Jack Clark and Gretchen Krueger and Ilya Sutskever},
booktitle={ICML},
year={2021}
}
```
```bibtex
@Article{liu2022convnet,
author = {Zhuang Liu and Hanzi Mao and Chao-Yuan Wu and Christoph Feichtenhofer and Trevor Darrell and Saining Xie},
title = {A ConvNet for the 2020s},
journal = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
year = {2022},
}
```
```bibtex
@misc{rw2019timm,
author = {Ross Wightman},
title = {PyTorch Image Models},
year = {2019},
publisher = {GitHub},
journal = {GitHub repository},
doi = {10.5281/zenodo.4414861},
howpublished = {\url{https://github.com/rwightman/pytorch-image-models}}
}
```
```
@InProceedings{pmlr-v162-wortsman22a,
title = {Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time},
author = {Wortsman, Mitchell and Ilharco, Gabriel and Gadre, Samir Ya and Roelofs, Rebecca and Gontijo-Lopes, Raphael and Morcos, Ari S and Namkoong, Hongseok and Farhadi, Ali and Carmon, Yair and Kornblith, Simon and Schmidt, Ludwig},
booktitle = {Proceedings of the 39th International Conference on Machine Learning},
pages = {23965--23998},
year = {2022},
editor = {Chaudhuri, Kamalika and Jegelka, Stefanie and Song, Le and Szepesvari, Csaba and Niu, Gang and Sabato, Sivan},
volume = {162},
series = {Proceedings of Machine Learning Research},
month = {17--23 Jul},
publisher = {PMLR},
pdf = {https://proceedings.mlr.press/v162/wortsman22a/wortsman22a.pdf},
url = {https://proceedings.mlr.press/v162/wortsman22a.html}
}
```
|
[
-0.635436475276947,
-0.5150570273399353,
-0.048018794506788254,
0.04756412282586098,
-0.3733237385749817,
-0.307625949382782,
-0.1708429753780365,
-0.4398075044155121,
0.3634530305862427,
0.269742488861084,
-0.47745996713638306,
-0.42153871059417725,
-0.7021296620368958,
-0.09537114948034286,
-0.2479497194290161,
0.872753381729126,
-0.02098865620791912,
-0.02052726224064827,
0.05263752490282059,
-0.3251744210720062,
-0.5852684378623962,
-0.38396522402763367,
-0.7212677001953125,
-0.1269192099571228,
0.2063291370868683,
0.3703596591949463,
0.7415539622306824,
0.8118420243263245,
0.6367135047912598,
0.2501114010810852,
-0.25595006346702576,
0.05262710899114609,
-0.6189453601837158,
-0.558648943901062,
0.2461787462234497,
-0.30496862530708313,
-0.5124024152755737,
0.10369712859392166,
0.694389820098877,
0.29271045327186584,
-0.018816975876688957,
0.1736561805009842,
0.18896883726119995,
0.5570541024208069,
-0.6742439866065979,
-0.07415296882390976,
-0.4837851822376251,
0.04136904329061508,
-0.17777690291404724,
-0.05230319872498512,
-0.1511259824037552,
-0.0823247954249382,
0.22897987067699432,
-0.712954044342041,
0.3505629301071167,
-0.0855470597743988,
1.4428763389587402,
0.15414725244045258,
-0.29924049973487854,
0.15751750767230988,
-0.4784226417541504,
0.750079870223999,
-0.6270518898963928,
0.24497681856155396,
0.3178909122943878,
0.18608449399471283,
0.029790781438350677,
-0.7852347493171692,
-0.39630913734436035,
-0.08842536062002182,
-0.06070231646299362,
0.34544292092323303,
-0.32002517580986023,
-0.06407245248556137,
0.491242378950119,
0.5132389664649963,
-0.598929762840271,
0.051139336079359055,
-0.7089019417762756,
-0.09515480697154999,
0.7816322445869446,
0.013573048636317253,
0.31977105140686035,
-0.40160053968429565,
-0.7391731142997742,
-0.319576233625412,
-0.6657316088676453,
0.47270557284355164,
0.24720875918865204,
-0.1061839833855629,
-0.4651781916618347,
0.39006689190864563,
-0.005654497537761927,
0.47109800577163696,
0.1318064033985138,
-0.18885551393032074,
0.4580738842487335,
-0.43200305104255676,
-0.4546903669834137,
-0.06952754408121109,
1.041736125946045,
0.5809820890426636,
0.09643112868070602,
0.22868861258029938,
-0.08085809648036957,
-0.07725325226783752,
0.21720661222934723,
-1.1618263721466064,
-0.1592952162027359,
0.09762869775295258,
-0.6921049356460571,
-0.344577431678772,
0.29241976141929626,
-0.6637763381004333,
0.23790523409843445,
-0.12516409158706665,
0.69508957862854,
-0.5771569013595581,
-0.2874026894569397,
0.008211261592805386,
-0.22941283881664276,
0.24490228295326233,
0.2844984829425812,
-0.6873304843902588,
0.16722479462623596,
0.3390800356864929,
1.0781766176223755,
-0.0958155021071434,
-0.2375192940235138,
-0.12331568449735641,
0.07921884953975677,
-0.3803509771823883,
0.615157961845398,
-0.09410964697599411,
-0.5319257974624634,
-0.1661357432603836,
0.47332704067230225,
-0.21733862161636353,
-0.4362334609031677,
0.6935557126998901,
-0.1873302012681961,
0.115721695125103,
-0.2393094301223755,
-0.4137466549873352,
-0.38500189781188965,
0.3496200442314148,
-0.6333467364311218,
0.9940094351768494,
0.012383827939629555,
-0.9363502264022827,
0.36694759130477905,
-0.5677151083946228,
-0.018386276438832283,
-0.17342901229858398,
-0.03954581171274185,
-0.7125976085662842,
-0.19606941938400269,
0.537289559841156,
0.5133864283561707,
-0.3121737837791443,
0.25644904375076294,
-0.3137626349925995,
-0.4840570390224457,
0.12842011451721191,
-0.5050780773162842,
1.0147678852081299,
0.11631877720355988,
-0.35252323746681213,
0.11015913635492325,
-0.7116181254386902,
0.00036596765858121216,
0.3232019543647766,
-0.05806745961308479,
-0.12220391631126404,
-0.4539755582809448,
-0.09474892169237137,
0.26088011264801025,
0.11595430225133896,
-0.5134025812149048,
0.15454889833927155,
-0.16595026850700378,
0.578946053981781,
0.6667997241020203,
0.21851885318756104,
0.3536719083786011,
-0.5546792149543762,
0.5782225131988525,
0.09061329811811447,
0.5719712972640991,
-0.3079894185066223,
-0.4900239109992981,
-0.7388187646865845,
-0.6779971122741699,
0.3501763641834259,
0.44610536098480225,
-0.48631152510643005,
0.44271573424339294,
-0.19509504735469818,
-0.6028296947479248,
-0.38388869166374207,
-0.2339908331632614,
0.4291662275791168,
0.5370157957077026,
0.37913841009140015,
-0.38766971230506897,
-0.5683290958404541,
-1.0838031768798828,
0.21306973695755005,
0.03524763137102127,
0.06427419930696487,
0.530667245388031,
0.8151289224624634,
-0.0028574373573064804,
0.7526668906211853,
-0.6118995547294617,
-0.4750116467475891,
-0.27930209040641785,
-0.06399118900299072,
0.3498998284339905,
0.5204746127128601,
0.8707793354988098,
-0.8831941485404968,
-0.5572981238365173,
-0.10952264070510864,
-0.9406365752220154,
0.3175497055053711,
-0.05947032943367958,
-0.15769749879837036,
-0.08531322330236435,
0.32590627670288086,
-0.6541301608085632,
0.841911792755127,
0.4199148714542389,
-0.004762756172567606,
0.6770476698875427,
-0.26542359590530396,
0.1703704595565796,
-1.0762362480163574,
0.3884277939796448,
0.10819713771343231,
-0.16900844871997833,
-0.5718593001365662,
-0.00446412293240428,
0.04331231117248535,
-0.2827146649360657,
-0.7190086245536804,
0.5909041166305542,
-0.5288219451904297,
0.021809803321957588,
-0.13253453373908997,
-0.04751775786280632,
0.0768861472606659,
0.632649302482605,
0.1470458060503006,
1.0966095924377441,
0.6150920391082764,
-0.6097962856292725,
0.04111209139227867,
0.33374306559562683,
-0.4767342507839203,
0.4242700934410095,
-0.9382442235946655,
-0.10601536929607391,
-0.0616157092154026,
0.34803009033203125,
-0.6704925894737244,
-0.3781851828098297,
0.3522624969482422,
-0.624328076839447,
0.44314491748809814,
-0.33952006697654724,
-0.09181682020425797,
-0.6551388502120972,
-0.6799240112304688,
0.48714679479599,
0.6306989192962646,
-0.5138806104660034,
0.19244645535945892,
0.35040396451950073,
0.3261426091194153,
-0.8299317955970764,
-0.7156765460968018,
-0.13243919610977173,
-0.3011672794818878,
-0.8500140905380249,
0.6106172204017639,
0.09734807908535004,
0.1491962969303131,
0.12540484964847565,
0.04179394990205765,
-0.13516053557395935,
-0.019031645730137825,
0.5008296370506287,
0.44214311242103577,
-0.21725265681743622,
-0.18162213265895844,
-0.23169246315956116,
-0.015888839960098267,
-0.13091187179088593,
-0.18789930641651154,
0.3679530918598175,
-0.162020742893219,
-0.21488627791404724,
-0.7316970229148865,
0.12128733098506927,
0.5829077959060669,
-0.33600687980651855,
0.8885794281959534,
0.8237507343292236,
-0.3538793623447418,
0.17216286063194275,
-0.3702160120010376,
-0.1630072295665741,
-0.4478016793727875,
0.38726428151130676,
-0.24427670240402222,
-0.7265146374702454,
0.5867919325828552,
0.12609337270259857,
0.0006667232373729348,
0.7786581516265869,
0.4102450907230377,
-0.0863640159368515,
0.8773423433303833,
0.5575371384620667,
-0.07643371820449829,
0.5698733329772949,
-1.119207739830017,
0.0206182561814785,
-1.1237741708755493,
-0.36931154131889343,
-0.24296580255031586,
-0.4179995357990265,
-0.516305148601532,
-0.37704935669898987,
0.7046443819999695,
0.2992059290409088,
-0.3103589117527008,
0.4541083872318268,
-0.5390504002571106,
0.2948855757713318,
0.5898431539535522,
0.3682135343551636,
-0.10906059294939041,
0.02700544148683548,
-0.09178304672241211,
-0.13426975905895233,
-0.8856794238090515,
-0.30646002292633057,
1.168838620185852,
0.5155573487281799,
0.6238015294075012,
-0.11968886107206345,
0.48596781492233276,
0.16266565024852753,
0.039516545832157135,
-0.7069785594940186,
0.46969732642173767,
-0.30625438690185547,
-0.7489176392555237,
-0.26228514313697815,
-0.2822478115558624,
-0.9822101593017578,
0.2826690971851349,
-0.19972091913223267,
-0.7524095773696899,
0.38478463888168335,
0.17880389094352722,
-0.4528501033782959,
0.5499411821365356,
-0.5210479497909546,
1.0511144399642944,
-0.22134198248386383,
-0.4946257472038269,
-0.06778895854949951,
-0.8184124827384949,
0.5495117902755737,
0.2813451886177063,
0.07756289839744568,
-0.14580048620700836,
0.16311891376972198,
0.9530234336853027,
-0.8566591143608093,
0.7088021039962769,
-0.16472193598747253,
0.3198484778404236,
0.7670833468437195,
-0.19324031472206116,
0.45635107159614563,
0.14914265275001526,
0.05663947016000748,
0.33195626735687256,
0.08826824277639389,
-0.32631441950798035,
-0.36911022663116455,
0.6689226627349854,
-1.1030473709106445,
-0.5355605483055115,
-0.4686809182167053,
-0.42326822876930237,
0.3241005837917328,
0.1543140411376953,
0.8455185294151306,
0.7806630730628967,
-0.15663005411624908,
0.49748966097831726,
0.6983990669250488,
-0.19194048643112183,
0.5504774451255798,
0.03171031177043915,
-0.09167462587356567,
-0.7492823600769043,
0.9323908686637878,
0.26614952087402344,
0.3681843876838684,
0.1794738471508026,
0.17592209577560425,
-0.24694634974002838,
-0.3940531015396118,
-0.5265587568283081,
0.22626477479934692,
-0.4151226580142975,
-0.38233682513237,
-0.5613411068916321,
-0.5172467231750488,
-0.5185062289237976,
-0.14569975435733795,
-0.46864116191864014,
-0.2751283347606659,
-0.5909358859062195,
0.01637859456241131,
0.36649924516677856,
0.47030967473983765,
-0.1705767810344696,
0.43200889229774475,
-0.865656316280365,
0.15736237168312073,
0.1672731339931488,
0.08573746681213379,
0.09094049036502838,
-0.8272072076797485,
-0.265644371509552,
0.1452999711036682,
-0.6244402527809143,
-0.8015657067298889,
0.5566437244415283,
0.2509737014770508,
0.45978718996047974,
0.6386629939079285,
-0.12900790572166443,
0.8380146026611328,
-0.22830282151699066,
1.069495439529419,
0.4087114632129669,
-0.6586861610412598,
0.5510035753250122,
-0.4562278985977173,
0.29293593764305115,
0.49749866127967834,
0.6020460724830627,
-0.384775847196579,
0.05895618349313736,
-0.9303575754165649,
-0.7914353013038635,
0.8563676476478577,
0.30991053581237793,
0.005864711012691259,
0.14037585258483887,
0.4586252272129059,
-0.13759161531925201,
0.15522195398807526,
-0.8340306878089905,
-0.30885422229766846,
-0.41919007897377014,
0.1379917860031128,
0.09114175289869308,
-0.4126054346561432,
-0.016964690759778023,
-0.47758615016937256,
0.8720270395278931,
-0.01929618790745735,
0.5368852019309998,
0.3998355567455292,
-0.02531215362250805,
-0.06393637508153915,
-0.010574566200375557,
0.659372866153717,
0.55210280418396,
-0.4305180013179779,
-0.14749272167682648,
0.19433797895908356,
-0.6414145231246948,
0.05390419438481331,
-0.06143704056739807,
-0.6639460921287537,
-0.012273457832634449,
0.45273303985595703,
1.10105562210083,
0.2075371891260147,
-0.3270098567008972,
0.9159588813781738,
-0.09073679894208908,
-0.4568727910518646,
-0.43800053000450134,
-0.003124196082353592,
-0.25219041109085083,
0.08870579302310944,
0.23718827962875366,
0.22651830315589905,
0.10804276168346405,
-0.49684247374534607,
0.21189944446086884,
0.5159074068069458,
-0.524688184261322,
-0.42741531133651733,
0.7811367511749268,
0.06436043232679367,
-0.06220872700214386,
0.5664382576942444,
-0.13402128219604492,
-0.6693755388259888,
0.9110992550849915,
0.4986856281757355,
0.8211613893508911,
-0.25565290451049805,
0.25319311022758484,
0.9917092323303223,
0.3136553168296814,
-0.2161596417427063,
0.16021321713924408,
0.19916555285453796,
-0.44487354159355164,
-0.09729223698377609,
-0.3863975405693054,
-0.032337915152311325,
0.5056908130645752,
-0.8976389169692993,
0.6094540357589722,
-0.5049148797988892,
-0.39741969108581543,
-0.2298918217420578,
-0.00417545298114419,
-0.6540384292602539,
0.3536238372325897,
0.03462596610188484,
1.1302883625030518,
-0.8317869901657104,
0.7665422558784485,
0.66144198179245,
-0.6836239695549011,
-1.0367896556854248,
-0.1003144308924675,
-0.11380962282419205,
-0.6775652766227722,
0.4880918860435486,
0.48987364768981934,
0.23860900104045868,
-0.23858819901943207,
-0.7435584664344788,
-1.0082075595855713,
1.415813684463501,
0.21915552020072937,
-0.3840998709201813,
0.03092501312494278,
-0.0678122341632843,
0.4014672040939331,
-0.2906111180782318,
0.48649194836616516,
0.3468162715435028,
0.18042927980422974,
0.28376203775405884,
-0.928274929523468,
0.024451518431305885,
-0.19659572839736938,
0.1955551654100418,
0.26044827699661255,
-1.2329630851745605,
1.1278576850891113,
-0.2641317844390869,
-0.13599413633346558,
0.1367747038602829,
0.7355899810791016,
0.1304861456155777,
0.13185933232307434,
0.4173438549041748,
0.8810479640960693,
0.4779610335826874,
-0.031082317233085632,
1.0916086435317993,
-0.289686381816864,
0.44397643208503723,
0.874054491519928,
0.2425873577594757,
0.8070537447929382,
0.38301727175712585,
-0.22431831061840057,
0.2206433117389679,
0.7602419257164001,
-0.30495280027389526,
0.6583918929100037,
-0.14055003225803375,
-0.08110786229372025,
-0.2005935162305832,
-0.39479008316993713,
-0.5980932712554932,
0.4038982689380646,
0.18455328047275543,
-0.4715633690357208,
-0.06870435923337936,
0.1454342007637024,
0.1167532205581665,
-0.3179904818534851,
-0.35354331135749817,
0.4108140468597412,
0.0909002274274826,
-0.5508618950843811,
0.7003677487373352,
-0.018368059769272804,
0.7090537548065186,
-0.6695142388343811,
0.10604466497898102,
-0.1007576733827591,
0.2833881080150604,
-0.27014249563217163,
-0.9082546830177307,
0.29880183935165405,
-0.11025716364383698,
-0.08717368543148041,
0.016457965597510338,
0.7800016403198242,
-0.17793025076389313,
-0.4121825397014618,
0.2760619521141052,
0.04533712938427925,
0.24166549742221832,
-0.06591086834669113,
-0.828364372253418,
0.07468480616807938,
0.13573980331420898,
-0.2726910412311554,
0.35958075523376465,
0.28427281975746155,
-0.06442784518003464,
0.522821843624115,
0.538832426071167,
-0.041860610246658325,
0.11961857974529266,
-0.11932966858148575,
1.072495460510254,
-0.397981196641922,
-0.47317245602607727,
-0.7424630522727966,
0.4202781021595001,
-0.21325576305389404,
-0.5605867505073547,
0.7742849588394165,
0.6805565357208252,
0.8194991946220398,
-0.06733677536249161,
0.6110203266143799,
-0.21359901130199432,
0.20875965058803558,
-0.5593571066856384,
0.5629928112030029,
-0.8616793751716614,
-0.049696195870637894,
-0.23183614015579224,
-0.6545349955558777,
-0.13047446310520172,
0.6141287684440613,
-0.3783516585826874,
0.014732755720615387,
0.5801142454147339,
0.7270112037658691,
-0.14758916199207306,
0.031017787754535675,
0.22689683735370636,
0.0868062674999237,
0.2768407464027405,
0.6624670624732971,
0.6821241974830627,
-0.9309705495834351,
0.7584860920906067,
-0.6986024379730225,
-0.1822243630886078,
-0.36136552691459656,
-0.692633867263794,
-1.011928915977478,
-0.5221076011657715,
-0.48107054829597473,
-0.29899919033050537,
-0.036506906151771545,
0.8364539742469788,
0.9753162264823914,
-0.5564260482788086,
-0.24072007834911346,
0.11842464655637741,
-0.14669547975063324,
-0.2071995884180069,
-0.17763279378414154,
0.6442840695381165,
0.1733800321817398,
-0.5649914145469666,
0.08058281242847443,
0.22523418068885803,
0.31271791458129883,
-0.09762270003557205,
-0.07305096834897995,
-0.34050026535987854,
-0.19369558990001678,
0.38097599148750305,
0.46670281887054443,
-0.6277855634689331,
-0.33361735939979553,
0.08818860352039337,
-0.031560905277729034,
0.3860437572002411,
0.6233357787132263,
-0.5369778871536255,
0.2461167573928833,
0.463401198387146,
0.39853280782699585,
0.7880122065544128,
0.1635594218969345,
0.15420036017894745,
-0.6770938038825989,
0.43535518646240234,
-0.04736602306365967,
0.364797979593277,
0.24709239602088928,
-0.40769755840301514,
0.6971631646156311,
0.4294682741165161,
-0.6608023643493652,
-0.8161308169364929,
-0.20655763149261475,
-1.1495307683944702,
-0.19372566044330597,
1.148658037185669,
-0.3768889904022217,
-0.5801293253898621,
0.40116196870803833,
-0.35267946124076843,
0.3060912787914276,
-0.42258718609809875,
0.4079901874065399,
0.47752323746681213,
-0.026362061500549316,
-0.33888164162635803,
-0.7709702849388123,
0.46582499146461487,
0.14865218102931976,
-0.6487624049186707,
-0.3202001452445984,
0.2512279748916626,
0.44471651315689087,
0.1857316792011261,
0.6102222204208374,
-0.2905324399471283,
0.3878736197948456,
0.05702300742268562,
0.09502959996461868,
-0.24856184422969818,
-0.3452085256576538,
-0.35525187849998474,
0.16279615461826324,
-0.22174346446990967,
-0.6578371524810791
] |
allenai/longformer-large-4096
|
allenai
| 2022-10-03T22:04:49Z | 9,072 | 10 |
transformers
|
[
"transformers",
"pytorch",
"tf",
"longformer",
"en",
"endpoints_compatible",
"region:us"
] | null | 2022-03-02T23:29:05Z |
---
language: en
---
|
[
-0.12853388488292694,
-0.18616782128810883,
0.6529127359390259,
0.4943625330924988,
-0.19319313764572144,
0.23607465624809265,
0.36071982979774475,
0.05056332051753998,
0.5793652534484863,
0.740013837814331,
-0.6508103013038635,
-0.2378396987915039,
-0.710224986076355,
-0.04782581701874733,
-0.3894752264022827,
0.8470761775970459,
-0.09598272293806076,
0.024004854261875153,
0.047120071947574615,
-0.14317826926708221,
-0.6121037602424622,
-0.04771740734577179,
-1.0524537563323975,
-0.06787490844726562,
0.3002279996871948,
0.5120972990989685,
0.8275896310806274,
0.39602896571159363,
0.5030564069747925,
1.7515558004379272,
-0.08836919069290161,
-0.22754427790641785,
-0.45892032980918884,
0.4223068356513977,
-0.33277371525764465,
-0.42133718729019165,
-0.2624166011810303,
-0.07449338585138321,
0.32380399107933044,
0.790371298789978,
-0.38104110956192017,
0.19328099489212036,
-0.22438454627990723,
1.008224368095398,
-0.8202074766159058,
0.22630876302719116,
-0.16698351502418518,
0.14053204655647278,
0.042308706790208817,
-0.14591927826404572,
-0.1326323002576828,
-0.6440033912658691,
0.06469469517469406,
-0.899596095085144,
0.1027495265007019,
-0.04461126774549484,
0.8789561986923218,
0.21909058094024658,
-0.5102370977401733,
-0.0459773913025856,
-0.6883594989776611,
1.0972508192062378,
-0.17556026577949524,
0.7615712881088257,
0.4507811963558197,
0.45288562774658203,
-0.5849329829216003,
-1.178217887878418,
-0.4441864490509033,
-0.13579002022743225,
0.14722809195518494,
0.30556100606918335,
-0.3453029692173004,
-0.022343844175338745,
0.10801105946302414,
0.5610314011573792,
-0.5003758072853088,
-0.311959445476532,
-0.9579929113388062,
-0.18164916336536407,
0.6820483207702637,
0.319308340549469,
0.834044337272644,
0.1873151659965515,
-0.7347195744514465,
0.12866291403770447,
-1.3239703178405762,
0.07650735974311829,
0.6465023756027222,
0.239467591047287,
-0.554598867893219,
0.8594784736633301,
-0.28587982058525085,
0.626249372959137,
0.2728465497493744,
-0.1164526641368866,
0.2784252464771271,
-0.23030735552310944,
-0.2735062837600708,
0.033087607473134995,
0.34597301483154297,
0.8204491138458252,
0.16248634457588196,
-0.019984982907772064,
-0.22123965620994568,
0.0020717978477478027,
0.2684449553489685,
-0.7935096025466919,
-0.4712669551372528,
0.1926696002483368,
-0.558952808380127,
-0.0910850465297699,
0.4327022135257721,
-1.0976827144622803,
-0.4812980592250824,
-0.1879846155643463,
0.05468139797449112,
-0.5451693534851074,
-0.3697946071624756,
0.07273250073194504,
-0.79254150390625,
-0.1243419200181961,
0.570950984954834,
-0.6230252981185913,
0.43974608182907104,
0.533625602722168,
0.7861635684967041,
0.2330387681722641,
-0.23613610863685608,
-0.6695019602775574,
0.48848265409469604,
-0.8661867380142212,
0.36860740184783936,
-0.3073781132698059,
-0.8298640251159668,
-0.09631050378084183,
0.5393159985542297,
0.20664852857589722,
-0.6653256416320801,
0.7074045538902283,
-0.5496984720230103,
-0.07806532829999924,
-0.4308285415172577,
-0.2432200014591217,
0.17460417747497559,
0.11115431040525436,
-0.6238909363746643,
0.9402233362197876,
0.5551108121871948,
-0.584109902381897,
0.31701239943504333,
-0.4869506359100342,
-0.6865583658218384,
0.26748135685920715,
-0.008750975131988525,
-0.047152332961559296,
0.3279528021812439,
-0.15983973443508148,
-0.0020511597394943237,
0.10505761206150055,
0.008299741894006729,
-0.21891699731349945,
-0.4786304235458374,
0.06349936127662659,
0.151650071144104,
1.25368332862854,
0.4083622097969055,
-0.3771882951259613,
-0.13140122592449188,
-1.0526149272918701,
0.025432661175727844,
0.0505015105009079,
-0.42306768894195557,
-0.2504565119743347,
-0.14882194995880127,
-0.20381587743759155,
0.4307260811328888,
0.2118472456932068,
-0.813115119934082,
0.22643625736236572,
-0.2064024657011032,
0.364496648311615,
0.8222091794013977,
0.2703101634979248,
0.39760565757751465,
-0.6625286340713501,
0.6563138365745544,
0.2076188325881958,
0.49590179324150085,
0.35404202342033386,
-0.3845822811126709,
-0.9641586542129517,
-0.442161500453949,
-0.10117404907941818,
0.2975531220436096,
-0.7744957804679871,
0.5847322940826416,
0.012979604303836823,
-0.5836705565452576,
-0.4465281367301941,
-0.15488101541996002,
0.2755330502986908,
-0.06606576591730118,
0.03334902226924896,
-0.4049779176712036,
-0.7394417524337769,
-1.0127898454666138,
-0.13788150250911713,
-0.5021388530731201,
-0.21892830729484558,
0.3160586357116699,
0.2617739737033844,
-0.34290042519569397,
0.7610747814178467,
-0.6059278249740601,
-0.704064130783081,
-0.13973554968833923,
-0.0995984673500061,
0.6187719702720642,
0.9297672510147095,
0.749138355255127,
-0.7224893569946289,
-0.8973818421363831,
-0.056230708956718445,
-0.5420039892196655,
-0.020044349133968353,
0.038149889558553696,
-0.18260693550109863,
-0.10514980554580688,
0.22352531552314758,
-0.6100803017616272,
0.8851073980331421,
0.43224984407424927,
-0.681546688079834,
0.5210590958595276,
-0.4444413483142853,
0.6073803901672363,
-0.8642839193344116,
-0.2911490201950073,
-0.16823577880859375,
-0.1976117193698883,
-0.7090160846710205,
0.19411544501781464,
-0.3002234101295471,
-0.33029863238334656,
-0.7474032044410706,
0.5274897813796997,
-0.9497010707855225,
-0.18781527876853943,
-0.33672773838043213,
-0.03423111140727997,
0.25807833671569824,
0.19490505754947662,
-0.23560254275798798,
0.8900529742240906,
0.9160482287406921,
-0.7121306657791138,
0.5487277507781982,
0.3930906653404236,
-0.1920013427734375,
0.7131237387657166,
-0.3887738585472107,
0.05161993205547333,
-0.12344931066036224,
0.14374595880508423,
-1.126388430595398,
-0.561158299446106,
0.13677382469177246,
-0.712703287601471,
0.17686958611011505,
-0.16556859016418457,
-0.09428537636995316,
-0.6608465313911438,
-0.33806395530700684,
0.25910091400146484,
0.48612290620803833,
-0.47969940304756165,
0.6188148260116577,
0.5728040337562561,
0.02651876211166382,
-0.5307406783103943,
-0.7206818461418152,
0.20418110489845276,
0.039646461606025696,
-0.5569695830345154,
0.3011690080165863,
0.006543457508087158,
-0.6622446775436401,
-0.371124804019928,
-0.26354190707206726,
-0.6043857336044312,
-0.2267974615097046,
0.7826986312866211,
0.1199423298239708,
-0.09012264013290405,
-0.20310267806053162,
-0.3199536204338074,
-0.06167525798082352,
0.30487415194511414,
-0.07575298100709915,
0.7232834696769714,
-0.33623749017715454,
-0.17850083112716675,
-0.887734055519104,
0.652754545211792,
0.9970465302467346,
0.09446714073419571,
0.806644082069397,
0.46324217319488525,
-0.35647475719451904,
-0.1304660439491272,
-0.3535459041595459,
-0.15120601654052734,
-0.685774564743042,
-0.1806798279285431,
-0.5322476625442505,
-0.5411434769630432,
0.40530654788017273,
0.10101459175348282,
-0.0021042972803115845,
0.5167046785354614,
0.2533605694770813,
-0.28806859254837036,
0.7550324201583862,
1.034340739250183,
0.1391797959804535,
0.3602915108203888,
-0.2854715585708618,
0.6341594457626343,
-0.8329949378967285,
-0.34052175283432007,
-0.4548071026802063,
-0.2563585042953491,
-0.31214389204978943,
-0.10750849545001984,
0.5791022181510925,
0.2818215489387512,
-0.4463467597961426,
0.1250680536031723,
-0.5994209051132202,
0.6587361693382263,
0.6273988485336304,
0.5719727873802185,
0.1997303068637848,
-0.46199458837509155,
0.19982971251010895,
0.04816687852144241,
-0.45745599269866943,
-0.4009109139442444,
0.7711143493652344,
0.2399624139070511,
0.8364022374153137,
0.20927050709724426,
0.4957774877548218,
0.33375421166419983,
0.2528058588504791,
-0.6318977475166321,
0.2009797990322113,
-0.22282809019088745,
-1.245961308479309,
-0.206426739692688,
-0.16551318764686584,
-1.0080583095550537,
-0.11792082339525223,
-0.18288995325565338,
-0.8406620025634766,
0.2665729820728302,
-0.19225634634494781,
-0.6640645265579224,
0.5206149220466614,
-0.5103875398635864,
0.69347083568573,
-0.23555898666381836,
-0.2817087769508362,
0.11930079013109207,
-0.6889920830726624,
0.5254612565040588,
0.3667147755622864,
0.29168397188186646,
-0.37968993186950684,
-0.3192872405052185,
0.5068994760513306,
-0.881224513053894,
0.44081127643585205,
-0.10564978420734406,
0.19428130984306335,
0.5358879566192627,
0.4153591990470886,
0.3823971152305603,
0.28699052333831787,
-0.2459377944469452,
-0.23415414988994598,
0.2250344604253769,
-0.7581346035003662,
-0.27754613757133484,
0.9095459580421448,
-0.7519428730010986,
-0.8586915731430054,
-0.6954255700111389,
-0.30644941329956055,
0.28865277767181396,
0.02781464159488678,
0.7154772281646729,
0.6456884145736694,
-0.18821057677268982,
0.23776991665363312,
0.7208225727081299,
-0.0146945184096694,
0.7235562801361084,
0.29411184787750244,
-0.4056646227836609,
-0.6169787645339966,
0.7182320356369019,
0.2627044916152954,
0.05162655562162399,
0.028327951207756996,
0.3058736026287079,
-0.17546698451042175,
-0.15078596770763397,
-0.6318323612213135,
-0.06395323574542999,
-0.7465729117393494,
-0.0927949845790863,
-0.7541396617889404,
-0.2507742643356323,
-0.7114590406417847,
-0.8068137764930725,
-0.7080163955688477,
-0.45604395866394043,
-0.43011948466300964,
-0.23352204263210297,
0.5163108706474304,
1.1627086400985718,
-0.2613152861595154,
0.8011051416397095,
-0.8900954723358154,
0.41936296224594116,
0.4969540238380432,
0.7519731521606445,
-0.11061006784439087,
-0.6746935844421387,
-0.07836239039897919,
-0.5338755249977112,
-0.29485058784484863,
-1.0156972408294678,
0.31774646043777466,
-0.03688591718673706,
0.40537136793136597,
0.42938894033432007,
0.25190269947052,
0.49392756819725037,
-0.30073118209838867,
1.1130688190460205,
0.7274302244186401,
-0.803381085395813,
0.519527792930603,
-0.7635002136230469,
0.16122324764728546,
0.9363659620285034,
0.54477459192276,
-0.4417075514793396,
-0.15113934874534607,
-1.025976538658142,
-0.843137264251709,
0.5963036417961121,
0.15439945459365845,
0.016843896359205246,
0.01821417547762394,
0.03168272227048874,
0.29466384649276733,
0.3591304123401642,
-0.7847291231155396,
-0.8240220546722412,
-0.13851122558116913,
0.25803306698799133,
0.31456053256988525,
-0.1648542582988739,
-0.3003871440887451,
-0.611615777015686,
0.8711391091346741,
0.18286482989788055,
0.3546231985092163,
0.12073354423046112,
0.04369349032640457,
-0.35506919026374817,
0.14787021279335022,
0.5522999167442322,
1.2529057264328003,
-0.40983331203460693,
0.3673911392688751,
0.1751260608434677,
-0.6540069580078125,
0.6494997143745422,
-0.3036349415779114,
-0.021784601733088493,
0.6203135251998901,
0.17760884761810303,
0.28528398275375366,
0.315599262714386,
-0.3621427118778229,
0.6047801971435547,
-0.029422052204608917,
-0.17758512496948242,
-0.7005696296691895,
0.15866968035697937,
0.029350608587265015,
0.27507954835891724,
0.4392024278640747,
0.24443313479423523,
0.08246771991252899,
-1.0602877140045166,
0.5711055397987366,
0.24493910372257233,
-0.8676618337631226,
-0.3011006712913513,
0.7047957181930542,
0.4075389802455902,
-0.47599563002586365,
0.38749054074287415,
0.012702330946922302,
-0.6710241436958313,
0.5987741351127625,
0.5510413646697998,
0.7569674253463745,
-0.4702427089214325,
0.3088020086288452,
0.6245602965354919,
0.06711331009864807,
0.20550549030303955,
0.6923202872276306,
0.03149382025003433,
-0.44738656282424927,
0.23022446036338806,
-0.5986733436584473,
-0.1468990594148636,
0.13735318183898926,
-0.8047426342964172,
0.351533442735672,
-0.9312615394592285,
-0.24089956283569336,
0.08751589059829712,
0.11761097609996796,
-0.6130945086479187,
0.6674696207046509,
-0.008524954319000244,
0.9280490875244141,
-0.8549083471298218,
0.9626278281211853,
0.8559581637382507,
-0.31830817461013794,
-0.7709448337554932,
-0.33556753396987915,
0.02013934776186943,
-0.6660526990890503,
0.7108278274536133,
-0.18973003327846527,
-0.41207411885261536,
-0.09323947876691818,
-0.622982919216156,
-1.0003730058670044,
0.030618250370025635,
0.017415650188922882,
-0.4625031054019928,
0.4454794228076935,
-0.5157257318496704,
0.3289681673049927,
-0.19169732928276062,
0.30509495735168457,
0.7719469666481018,
0.7958452701568604,
0.22960808873176575,
-0.6354780197143555,
-0.4466685652732849,
-0.010276071727275848,
-0.16682815551757812,
0.4545809030532837,
-1.0710972547531128,
0.967736542224884,
-0.4652574360370636,
-0.34733209013938904,
0.2706642150878906,
0.797762393951416,
0.2538500428199768,
0.3524126708507538,
0.6219537258148193,
0.9016807079315186,
0.36450111865997314,
-0.31178343296051025,
0.7276745438575745,
0.2426338493824005,
0.4152539074420929,
0.7364203333854675,
-0.22712187469005585,
0.5403846502304077,
0.8906413316726685,
-0.786162257194519,
0.5381765365600586,
0.7879031896591187,
0.16047371923923492,
0.7758157253265381,
0.5944145917892456,
-0.611952543258667,
-0.1185941994190216,
-0.1464141309261322,
-0.6171560287475586,
0.1979752480983734,
0.052926212549209595,
-0.11974738538265228,
-0.2846010625362396,
-0.13567376136779785,
0.12295057624578476,
0.2836454212665558,
-0.5959328413009644,
0.606866717338562,
0.34341585636138916,
-0.6328282356262207,
0.21025103330612183,
-0.25779569149017334,
0.6709501147270203,
-0.5978154540061951,
0.02733636647462845,
-0.226993590593338,
0.41810402274131775,
-0.4618742763996124,
-1.007582426071167,
0.47138404846191406,
-0.2920241355895996,
-0.40551304817199707,
-0.26942431926727295,
0.8072363138198853,
-0.22133907675743103,
-0.5572860240936279,
0.37486034631729126,
0.13466592133045197,
0.41473662853240967,
0.40145981311798096,
-0.548729419708252,
0.047790080308914185,
0.13760165870189667,
-0.20061805844306946,
0.3601190149784088,
0.2973729372024536,
0.25488772988319397,
0.7100128531455994,
0.5052477717399597,
0.22198708355426788,
0.25694364309310913,
-0.18668605387210846,
0.8387458324432373,
-0.9102796316146851,
-0.8167635202407837,
-0.9497333765029907,
0.3849896192550659,
0.025727711617946625,
-0.880144476890564,
0.7920305728912354,
0.7652608156204224,
0.5113964080810547,
-0.4877890348434448,
0.4755283296108246,
-0.326479434967041,
0.5047136545181274,
-0.13870958983898163,
1.001089096069336,
-0.760762631893158,
-0.29587265849113464,
-0.030554059892892838,
-0.9216439723968506,
-0.2533753216266632,
0.5375741720199585,
0.1540832668542862,
-0.14608067274093628,
0.4385907053947449,
0.44216376543045044,
0.022173406556248665,
0.25223150849342346,
0.32861006259918213,
0.06042787432670593,
0.14508451521396637,
0.5510438680648804,
1.0931141376495361,
-0.43394410610198975,
0.18694786727428436,
-0.4923475384712219,
-0.4536249041557312,
-0.4153490662574768,
-0.9548057913780212,
-0.6640313863754272,
-0.48185449838638306,
-0.2973935008049011,
-0.5915579199790955,
0.11726461350917816,
0.9300885796546936,
0.9018137454986572,
-0.6256728172302246,
-0.41243645548820496,
0.25713539123535156,
0.30293411016464233,
-0.2295418381690979,
-0.146267831325531,
0.2736492455005646,
-0.006407544948160648,
-0.7211178541183472,
0.3930943012237549,
0.807976245880127,
0.3887130320072174,
0.08444006741046906,
-0.07217127084732056,
-0.4407080411911011,
0.026101574301719666,
0.5373561382293701,
0.5729561448097229,
-0.6281182169914246,
-0.4099644422531128,
-0.5328317880630493,
-0.21386730670928955,
0.15529435873031616,
0.48077550530433655,
-0.5166378617286682,
0.32661110162734985,
0.8128959536552429,
0.17017659544944763,
0.7187885642051697,
-0.0022492259740829468,
0.6678642630577087,
-0.8970246315002441,
0.4446259140968323,
0.3953385353088379,
0.5681870579719543,
0.08998038619756699,
-0.7339164614677429,
0.9820241928100586,
0.49674350023269653,
-0.6334057450294495,
-1.0034242868423462,
0.03079957515001297,
-1.193113923072815,
-0.3788175582885742,
0.9890843629837036,
-0.09595765173435211,
-0.9597458839416504,
-0.36448943614959717,
-0.3677716851234436,
0.07989637553691864,
-0.33809733390808105,
0.35498204827308655,
0.8268195986747742,
-0.2538071274757385,
-0.2204185128211975,
-0.9505581855773926,
0.4752943515777588,
0.3102525472640991,
-0.5886632204055786,
-0.05114369094371796,
0.329391211271286,
0.45236870646476746,
0.3009701371192932,
0.5239557027816772,
0.10428227484226227,
0.8970529437065125,
0.25200390815734863,
0.30491405725479126,
-0.04526621103286743,
-0.590078592300415,
-0.0160664189606905,
0.2621477246284485,
0.04487839341163635,
-0.6869441270828247
] |
TheBloke/Upstage-Llama-2-70B-instruct-v2-AWQ
|
TheBloke
| 2023-11-09T18:19:14Z | 9,072 | 0 |
transformers
|
[
"transformers",
"safetensors",
"llama",
"text-generation",
"upstage",
"llama-2",
"instruct",
"instruction",
"en",
"base_model:upstage/Llama-2-70b-instruct-v2",
"license:llama2",
"text-generation-inference",
"4-bit",
"region:us"
] |
text-generation
| 2023-09-19T12:34:04Z |
---
language:
- en
license: llama2
tags:
- upstage
- llama-2
- instruct
- instruction
model_name: Llama 2 70B Instruct v2
base_model: upstage/Llama-2-70b-instruct-v2
inference: false
model_creator: Upstage
model_type: llama
pipeline_tag: text-generation
prompt_template: '### System:
{system_message}
### User:
{prompt}
### Assistant:
'
quantized_by: TheBloke
---
<!-- header start -->
<!-- 200823 -->
<div style="width: auto; margin-left: auto; margin-right: auto">
<img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
</div>
<div style="display: flex; justify-content: space-between; width: 100%;">
<div style="display: flex; flex-direction: column; align-items: flex-start;">
<p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://discord.gg/theblokeai">Chat & support: TheBloke's Discord server</a></p>
</div>
<div style="display: flex; flex-direction: column; align-items: flex-end;">
<p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://www.patreon.com/TheBlokeAI">Want to contribute? TheBloke's Patreon page</a></p>
</div>
</div>
<div style="text-align:center; margin-top: 0em; margin-bottom: 0em"><p style="margin-top: 0.25em; margin-bottom: 0em;">TheBloke's LLM work is generously supported by a grant from <a href="https://a16z.com">andreessen horowitz (a16z)</a></p></div>
<hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
<!-- header end -->
# Llama 2 70B Instruct v2 - AWQ
- Model creator: [Upstage](https://huggingface.co/Upstage)
- Original model: [Llama 2 70B Instruct v2](https://huggingface.co/upstage/Llama-2-70b-instruct-v2)
<!-- description start -->
## Description
This repo contains AWQ model files for [Upstage's Llama 2 70B Instruct v2](https://huggingface.co/upstage/Llama-2-70b-instruct-v2).
### About AWQ
AWQ is an efficient, accurate and blazing-fast low-bit weight quantization method, currently supporting 4-bit quantization. Compared to GPTQ, it offers faster Transformers-based inference.
It is also now supported by continuous batching server [vLLM](https://github.com/vllm-project/vllm), allowing use of AWQ models for high-throughput concurrent inference in multi-user server scenarios. Note that, at the time of writing, overall throughput is still lower than running vLLM with unquantised models, however using AWQ enables using much smaller GPUs which can lead to easier deployment and overall cost savings. For example, a 70B model can be run on 1 x 48GB GPU instead of 2 x 80GB.
<!-- description end -->
<!-- repositories-available start -->
## Repositories available
* [AWQ model(s) for GPU inference.](https://huggingface.co/TheBloke/Upstage-Llama-2-70B-instruct-v2-AWQ)
* [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/Upstage-Llama-2-70B-instruct-v2-GPTQ)
* [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/Upstage-Llama-2-70B-instruct-v2-GGUF)
* [Upstage's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/upstage/Llama-2-70b-instruct-v2)
<!-- repositories-available end -->
<!-- prompt-template start -->
## Prompt template: Orca-Hashes
```
### System:
{system_message}
### User:
{prompt}
### Assistant:
```
<!-- prompt-template end -->
<!-- README_AWQ.md-provided-files start -->
## Provided files and AWQ parameters
For my first release of AWQ models, I am releasing 128g models only. I will consider adding 32g as well if there is interest, and once I have done perplexity and evaluation comparisons, but at this time 32g models are still not fully tested with AutoAWQ and vLLM.
Models are released as sharded safetensors files.
| Branch | Bits | GS | AWQ Dataset | Seq Len | Size |
| ------ | ---- | -- | ----------- | ------- | ---- |
| [main](https://huggingface.co/TheBloke/Upstage-Llama-2-70B-instruct-v2-AWQ/tree/main) | 4 | 128 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 36.61 GB
<!-- README_AWQ.md-provided-files end -->
<!-- README_AWQ.md-use-from-vllm start -->
## Serving this model from vLLM
Documentation on installing and using vLLM [can be found here](https://vllm.readthedocs.io/en/latest/).
- When using vLLM as a server, pass the `--quantization awq` parameter, for example:
```shell
python3 python -m vllm.entrypoints.api_server --model TheBloke/Upstage-Llama-2-70B-instruct-v2-AWQ --quantization awq
```
When using vLLM from Python code, pass the `quantization=awq` parameter, for example:
```python
from vllm import LLM, SamplingParams
prompts = [
"Hello, my name is",
"The president of the United States is",
"The capital of France is",
"The future of AI is",
]
sampling_params = SamplingParams(temperature=0.8, top_p=0.95)
llm = LLM(model="TheBloke/Upstage-Llama-2-70B-instruct-v2-AWQ", quantization="awq")
outputs = llm.generate(prompts, sampling_params)
# Print the outputs.
for output in outputs:
prompt = output.prompt
generated_text = output.outputs[0].text
print(f"Prompt: {prompt!r}, Generated text: {generated_text!r}")
```
<!-- README_AWQ.md-use-from-vllm start -->
<!-- README_AWQ.md-use-from-python start -->
## How to use this AWQ model from Python code
### Install the necessary packages
Requires: [AutoAWQ](https://github.com/casper-hansen/AutoAWQ) 0.0.2 or later
```shell
pip3 install autoawq
```
If you have problems installing [AutoAWQ](https://github.com/casper-hansen/AutoAWQ) using the pre-built wheels, install it from source instead:
```shell
pip3 uninstall -y autoawq
git clone https://github.com/casper-hansen/AutoAWQ
cd AutoAWQ
pip3 install .
```
### You can then try the following example code
```python
from awq import AutoAWQForCausalLM
from transformers import AutoTokenizer
model_name_or_path = "TheBloke/Upstage-Llama-2-70B-instruct-v2-AWQ"
# Load model
model = AutoAWQForCausalLM.from_quantized(model_name_or_path, fuse_layers=True,
trust_remote_code=False, safetensors=True)
tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, trust_remote_code=False)
prompt = "Tell me about AI"
prompt_template=f'''### System:
{system_message}
### User:
{prompt}
### Assistant:
'''
print("\n\n*** Generate:")
tokens = tokenizer(
prompt_template,
return_tensors='pt'
).input_ids.cuda()
# Generate output
generation_output = model.generate(
tokens,
do_sample=True,
temperature=0.7,
top_p=0.95,
top_k=40,
max_new_tokens=512
)
print("Output: ", tokenizer.decode(generation_output[0]))
# Inference can also be done using transformers' pipeline
from transformers import pipeline
print("*** Pipeline:")
pipe = pipeline(
"text-generation",
model=model,
tokenizer=tokenizer,
max_new_tokens=512,
do_sample=True,
temperature=0.7,
top_p=0.95,
top_k=40,
repetition_penalty=1.1
)
print(pipe(prompt_template)[0]['generated_text'])
```
<!-- README_AWQ.md-use-from-python end -->
<!-- README_AWQ.md-compatibility start -->
## Compatibility
The files provided are tested to work with [AutoAWQ](https://github.com/casper-hansen/AutoAWQ), and [vLLM](https://github.com/vllm-project/vllm).
[Huggingface Text Generation Inference (TGI)](https://github.com/huggingface/text-generation-inference) is not yet compatible with AWQ, but a PR is open which should bring support soon: [TGI PR #781](https://github.com/huggingface/text-generation-inference/issues/781).
<!-- README_AWQ.md-compatibility end -->
<!-- footer start -->
<!-- 200823 -->
## Discord
For further support, and discussions on these models and AI in general, join us at:
[TheBloke AI's Discord server](https://discord.gg/theblokeai)
## Thanks, and how to contribute
Thanks to the [chirper.ai](https://chirper.ai) team!
Thanks to Clay from [gpus.llm-utils.org](llm-utils)!
I've had a lot of people ask if they can contribute. I enjoy providing models and helping people, and would love to be able to spend even more time doing it, as well as expanding into new projects like fine tuning/training.
If you're able and willing to contribute it will be most gratefully received and will help me to keep providing more models, and to start work on new AI projects.
Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.
* Patreon: https://patreon.com/TheBlokeAI
* Ko-Fi: https://ko-fi.com/TheBlokeAI
**Special thanks to**: Aemon Algiz.
**Patreon special mentions**: Alicia Loh, Stephen Murray, K, Ajan Kanaga, RoA, Magnesian, Deo Leter, Olakabola, Eugene Pentland, zynix, Deep Realms, Raymond Fosdick, Elijah Stavena, Iucharbius, Erik Bjäreholt, Luis Javier Navarrete Lozano, Nicholas, theTransient, John Detwiler, alfie_i, knownsqashed, Mano Prime, Willem Michiel, Enrico Ros, LangChain4j, OG, Michael Dempsey, Pierre Kircher, Pedro Madruga, James Bentley, Thomas Belote, Luke @flexchar, Leonard Tan, Johann-Peter Hartmann, Illia Dulskyi, Fen Risland, Chadd, S_X, Jeff Scroggin, Ken Nordquist, Sean Connelly, Artur Olbinski, Swaroop Kallakuri, Jack West, Ai Maven, David Ziegler, Russ Johnson, transmissions 11, John Villwock, Alps Aficionado, Clay Pascal, Viktor Bowallius, Subspace Studios, Rainer Wilmers, Trenton Dambrowitz, vamX, Michael Levine, 준교 김, Brandon Frisco, Kalila, Trailburnt, Randy H, Talal Aujan, Nathan Dryer, Vadim, 阿明, ReadyPlayerEmma, Tiffany J. Kim, George Stoitzev, Spencer Kim, Jerry Meng, Gabriel Tamborski, Cory Kujawski, Jeffrey Morgan, Spiking Neurons AB, Edmond Seymore, Alexandros Triantafyllidis, Lone Striker, Cap'n Zoog, Nikolai Manek, danny, ya boyyy, Derek Yates, usrbinkat, Mandus, TL, Nathan LeClaire, subjectnull, Imad Khwaja, webtim, Raven Klaugh, Asp the Wyvern, Gabriel Puliatti, Caitlyn Gatomon, Joseph William Delisle, Jonathan Leane, Luke Pendergrass, SuperWojo, Sebastain Graf, Will Dee, Fred von Graf, Andrey, Dan Guido, Daniel P. Andersen, Nitin Borwankar, Elle, Vitor Caleffi, biorpg, jjj, NimbleBox.ai, Pieter, Matthew Berman, terasurfer, Michael Davis, Alex, Stanislav Ovsiannikov
Thank you to all my generous patrons and donaters!
And thank you again to a16z for their generous grant.
<!-- footer end -->
# Original model card: Upstage's Llama 2 70B Instruct v2
# Updates
Solar, a new bot created by Upstage, is now available on **Poe**. As a top-ranked model on the HuggingFace Open LLM leaderboard, and a fine tune of Llama 2, Solar is a great example of the progress enabled by open source.
Try now at https://poe.com/Solar-0-70b
# SOLAR-0-70b-16bit model card
The model name has been changed from LLaMa-2-70b-instruct-v2 to SOLAR-0-70b-16bit
## Model Details
* **Developed by**: [Upstage](https://en.upstage.ai)
* **Backbone Model**: [LLaMA-2](https://github.com/facebookresearch/llama/tree/main)
* **Language(s)**: English
* **Library**: [HuggingFace Transformers](https://github.com/huggingface/transformers)
* **License**: Fine-tuned checkpoints is licensed under the Non-Commercial Creative Commons license ([CC BY-NC-4.0](https://creativecommons.org/licenses/by-nc/4.0/))
* **Where to send comments**: Instructions on how to provide feedback or comments on a model can be found by opening an issue in the [Hugging Face community's model repository](https://huggingface.co/upstage/Llama-2-70b-instruct-v2/discussions)
* **Contact**: For questions and comments about the model, please email [[email protected]](mailto:[email protected])
## Dataset Details
### Used Datasets
- Orca-style dataset
- Alpaca-style dataset
- No other dataset was used except for the dataset mentioned above
- No benchmark test set or the training set are used
### Prompt Template
```
### System:
{System}
### User:
{User}
### Assistant:
{Assistant}
```
## Usage
- The followings are tested on A100 80GB
- Our model can handle up to 10k+ input tokens, thanks to the `rope_scaling` option
```python
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer, TextStreamer
tokenizer = AutoTokenizer.from_pretrained("upstage/Llama-2-70b-instruct-v2")
model = AutoModelForCausalLM.from_pretrained(
"upstage/Llama-2-70b-instruct-v2",
device_map="auto",
torch_dtype=torch.float16,
load_in_8bit=True,
rope_scaling={"type": "dynamic", "factor": 2} # allows handling of longer inputs
)
prompt = "### User:\nThomas is healthy, but he has to go to the hospital. What could be the reasons?\n\n### Assistant:\n"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
del inputs["token_type_ids"]
streamer = TextStreamer(tokenizer, skip_prompt=True, skip_special_tokens=True)
output = model.generate(**inputs, streamer=streamer, use_cache=True, max_new_tokens=float('inf'))
output_text = tokenizer.decode(output[0], skip_special_tokens=True)
```
## Hardware and Software
* **Hardware**: We utilized an A100x8 * 4 for training our model
* **Training Factors**: We fine-tuned this model using a combination of the [DeepSpeed library](https://github.com/microsoft/DeepSpeed) and the [HuggingFace Trainer](https://huggingface.co/docs/transformers/main_classes/trainer) / [HuggingFace Accelerate](https://huggingface.co/docs/accelerate/index)
## Evaluation Results
### Overview
- We conducted a performance evaluation following the tasks being evaluated on the [Open LLM Leaderboard](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard).
We evaluated our model on four benchmark datasets, which include `ARC-Challenge`, `HellaSwag`, `MMLU`, and `TruthfulQA`
We used the [lm-evaluation-harness repository](https://github.com/EleutherAI/lm-evaluation-harness), specifically commit [b281b0921b636bc36ad05c0b0b0763bd6dd43463](https://github.com/EleutherAI/lm-evaluation-harness/tree/b281b0921b636bc36ad05c0b0b0763bd6dd43463).
- We used [MT-bench](https://github.com/lm-sys/FastChat/tree/main/fastchat/llm_judge), a set of challenging multi-turn open-ended questions, to evaluate the models
### Main Results
| Model | H4(Avg) | ARC | HellaSwag | MMLU | TruthfulQA | | MT_Bench |
|--------------------------------------------------------------------|----------|----------|----------|------|----------|-|-------------|
| **[Llama-2-70b-instruct-v2](https://huggingface.co/upstage/Llama-2-70b-instruct-v2)**(***Ours***, ***Open LLM Leaderboard***) | **73** | **71.1** | **87.9** | **70.6** | **62.2** | | **7.44063** |
| [Llama-2-70b-instruct](https://huggingface.co/upstage/Llama-2-70b-instruct) (Ours, Open LLM Leaderboard) | 72.3 | 70.9 | 87.5 | 69.8 | 61 | | 7.24375 |
| [llama-65b-instruct](https://huggingface.co/upstage/llama-65b-instruct) (Ours, Open LLM Leaderboard) | 69.4 | 67.6 | 86.5 | 64.9 | 58.8 | | |
| Llama-2-70b-hf | 67.3 | 67.3 | 87.3 | 69.8 | 44.9 | | |
| [llama-30b-instruct-2048](https://huggingface.co/upstage/llama-30b-instruct-2048) (Ours, Open LLM Leaderboard) | 67.0 | 64.9 | 84.9 | 61.9 | 56.3 | | |
| [llama-30b-instruct](https://huggingface.co/upstage/llama-30b-instruct) (Ours, Open LLM Leaderboard) | 65.2 | 62.5 | 86.2 | 59.4 | 52.8 | | |
| llama-65b | 64.2 | 63.5 | 86.1 | 63.9 | 43.4 | | |
| falcon-40b-instruct | 63.4 | 61.6 | 84.3 | 55.4 | 52.5 | | |
### Scripts for H4 Score Reproduction
- Prepare evaluation environments:
```
# clone the repository
git clone https://github.com/EleutherAI/lm-evaluation-harness.git
# check out the specific commit
git checkout b281b0921b636bc36ad05c0b0b0763bd6dd43463
# change to the repository directory
cd lm-evaluation-harness
```
## Contact Us
### About Upstage
- [Upstage](https://en.upstage.ai) is a company specialized in Large Language Models (LLMs) and AI. We will help you build private LLMs and related applications.
If you have a dataset to build domain specific LLMs or make LLM applications, please contact us at ► [click here to contact](https://www.upstage.ai/private-llm?utm_source=huggingface&utm_medium=link&utm_campaign=privatellm)
- As of August 1st, our 70B model has reached the top spot in openLLM rankings, marking itself as the current leading performer globally.
|
[
-0.4857230484485626,
-0.6662732362747192,
0.36830124258995056,
0.01797034591436386,
-0.24608822166919708,
-0.10404415428638458,
0.1054479107260704,
-0.42622363567352295,
-0.06430152803659439,
0.34338653087615967,
-0.6537949442863464,
-0.44017842411994934,
-0.260515034198761,
-0.07351202517747879,
-0.41154035925865173,
0.906305730342865,
0.15825453400611877,
-0.19932043552398682,
-0.3062037527561188,
-0.1758604347705841,
-0.2459140419960022,
-0.5974286198616028,
-0.644702672958374,
-0.279511034488678,
0.13826841115951538,
0.18517790734767914,
0.7307479381561279,
0.6074742078781128,
0.16927103698253632,
0.42504292726516724,
-0.09806987643241882,
0.11679067462682724,
-0.286699503660202,
-0.015506474301218987,
0.20498254895210266,
-0.2637487053871155,
-0.5152865052223206,
0.03348775580525398,
0.5282271504402161,
0.2348915934562683,
-0.3759022355079651,
0.22131329774856567,
0.11240857094526291,
0.5117092132568359,
-0.40996813774108887,
0.10265996307134628,
-0.4433521032333374,
-0.03801220282912254,
-0.13860705494880676,
0.22959774732589722,
-0.13515669107437134,
-0.11303537338972092,
-0.00946662575006485,
-0.8588629364967346,
0.14464424550533295,
0.16459967195987701,
1.220077395439148,
0.27552175521850586,
-0.5157195925712585,
0.08983723819255829,
-0.5247562527656555,
1.0659602880477905,
-1.0979379415512085,
0.3565465211868286,
0.21657609939575195,
0.24222955107688904,
-0.0873679593205452,
-1.0149117708206177,
-0.7017347812652588,
-0.16364462673664093,
-0.14523515105247498,
0.3119020164012909,
-0.5467958450317383,
0.013279587030410767,
0.19292515516281128,
0.6304619908332825,
-0.595011293888092,
0.008500410243868828,
-0.2714310884475708,
-0.1963743418455124,
0.7892511487007141,
0.3588564097881317,
0.2560470998287201,
-0.26706695556640625,
-0.45936617255210876,
-0.3591795265674591,
-0.5201103687286377,
0.16351087391376495,
0.12764789164066315,
0.0035506030544638634,
-0.5470356941223145,
0.5237487554550171,
-0.28195440769195557,
0.5728449821472168,
0.20708201825618744,
0.10189680755138397,
0.1608145385980606,
-0.5887166857719421,
-0.6760483980178833,
-0.48074090480804443,
1.1929911375045776,
0.2990477383136749,
-0.28754231333732605,
0.25403663516044617,
-0.05115565285086632,
-0.11690200865268707,
0.03480030968785286,
-0.8780791759490967,
-0.3416711986064911,
0.5715876221656799,
-0.5555840730667114,
-0.4758007526397705,
-0.13024574518203735,
-0.7584198713302612,
-0.19394709169864655,
0.050626929849386215,
0.6106408834457397,
-0.35060426592826843,
-0.2385920137166977,
-0.031111933290958405,
-0.3399941921234131,
0.4724932610988617,
0.32890576124191284,
-0.7200160026550293,
0.2540018558502197,
0.366970956325531,
0.621742844581604,
0.25014784932136536,
-0.24540241062641144,
-0.3370673954486847,
-0.00015815443475730717,
-0.06333944201469421,
0.4936977028846741,
-0.1419871747493744,
-0.41598886251449585,
-0.32956284284591675,
0.10040479153394699,
0.15383395552635193,
-0.3168970048427582,
0.44318920373916626,
-0.23322981595993042,
0.492593377828598,
-0.3468117117881775,
-0.49101629853248596,
-0.31304726004600525,
0.05057147517800331,
-0.512243926525116,
1.220436930656433,
0.35174059867858887,
-0.7708024978637695,
0.12749210000038147,
-0.48809316754341125,
-0.16860239207744598,
0.09007392078638077,
-0.1361149698495865,
-0.6646260023117065,
-0.10645503550767899,
0.3553881049156189,
0.3339863419532776,
-0.5660629272460938,
-0.008999578654766083,
-0.39183250069618225,
-0.1434689611196518,
0.25115060806274414,
-0.43206876516342163,
1.2964556217193604,
0.3215518891811371,
-0.5463902354240417,
0.1497839242219925,
-0.792496383190155,
0.17840072512626648,
0.3770730793476105,
-0.3068932294845581,
0.09686532616615295,
-0.11111302673816681,
0.10192461311817169,
0.08595192432403564,
0.2814304530620575,
-0.39374247193336487,
0.23062913119792938,
-0.2785542607307434,
0.7634795904159546,
0.7141732573509216,
-0.003913356456905603,
0.4228658378124237,
-0.5999712944030762,
0.4067070186138153,
0.06664232909679413,
0.4646705985069275,
0.09681795537471771,
-0.6775489449501038,
-0.9165114760398865,
-0.31385889649391174,
0.36895808577537537,
0.5859660506248474,
-0.6241508722305298,
0.5940365791320801,
0.18861906230449677,
-0.7245044708251953,
-0.5949646234512329,
-0.13073188066482544,
0.2839330732822418,
0.43762901425361633,
0.4148212969303131,
-0.22958222031593323,
-0.6563736796379089,
-0.7563300132751465,
0.03208258002996445,
-0.4653211236000061,
-0.2469717413187027,
0.43220818042755127,
0.6345991492271423,
-0.29544878005981445,
0.6862783432006836,
-0.4127271771430969,
-0.23884758353233337,
-0.15587106347084045,
0.07574636489152908,
0.3179011344909668,
0.6462748646736145,
0.7093432545661926,
-0.6028979420661926,
-0.43590039014816284,
-0.1531931459903717,
-0.696405827999115,
-0.050172109156847,
-0.06161019206047058,
-0.42716115713119507,
0.34390777349472046,
0.16074706614017487,
-0.89217609167099,
0.5095573663711548,
0.5824737548828125,
-0.5036686658859253,
0.7017691731452942,
-0.2484668493270874,
0.2102721929550171,
-1.1669968366622925,
0.062134891748428345,
-0.0005249304231256247,
-0.30214762687683105,
-0.499584436416626,
0.20945186913013458,
-0.127699077129364,
0.014790168963372707,
-0.383491188287735,
0.6784586310386658,
-0.48780423402786255,
0.053495366126298904,
-0.0036637941375374794,
-0.13647302985191345,
0.41563501954078674,
0.4270850121974945,
-0.15810300409793854,
0.6599255204200745,
0.620281994342804,
-0.6660962104797363,
0.4764520525932312,
0.44299498200416565,
-0.133460134267807,
0.3685242831707001,
-0.932783842086792,
0.09576220065355301,
0.16415196657180786,
0.325478196144104,
-1.1178641319274902,
-0.24918267130851746,
0.4294343888759613,
-0.6594852805137634,
0.2441149801015854,
-0.21267403662204742,
-0.372209370136261,
-0.4892933964729309,
-0.43483278155326843,
0.24362130463123322,
0.9957035779953003,
-0.4866180717945099,
0.6518558263778687,
0.44115713238716125,
0.21638183295726776,
-0.6833775639533997,
-0.8145394325256348,
-0.2856105864048004,
-0.38960281014442444,
-0.6901535391807556,
0.44188299775123596,
-0.23815502226352692,
-0.2570783793926239,
0.0032698155846446753,
0.08128560334444046,
-0.08673407137393951,
0.1522163450717926,
0.23943589627742767,
0.316025972366333,
-0.07864224910736084,
-0.1940738707780838,
0.0754176676273346,
0.038927704095840454,
0.06147153303027153,
-0.3780369758605957,
0.5198363661766052,
-0.28302934765815735,
-0.018516957759857178,
-0.6546195149421692,
0.3232935667037964,
0.5621293187141418,
-0.19673626124858856,
0.885259211063385,
0.7402599453926086,
-0.28539925813674927,
-0.10500867664813995,
-0.4304673373699188,
-0.28928637504577637,
-0.5214087963104248,
0.1972631812095642,
-0.18721869587898254,
-0.6368948221206665,
0.6172695159912109,
0.3871826231479645,
0.31646728515625,
0.8049012422561646,
0.5759904980659485,
-0.3746894598007202,
1.150058388710022,
0.5115890502929688,
-0.0025772855151444674,
0.35939669609069824,
-0.6770037412643433,
-0.1800888329744339,
-0.8542987108230591,
-0.1415928602218628,
-0.47574490308761597,
-0.09908706694841385,
-0.6372545957565308,
-0.5034821629524231,
0.43441441655158997,
0.208937868475914,
-0.6345950961112976,
0.3288750946521759,
-0.633608341217041,
-0.07816369086503983,
0.754951536655426,
0.14412719011306763,
0.17661701142787933,
-0.03680838644504547,
-0.23204346001148224,
0.05170132592320442,
-0.7709700465202332,
-0.23417428135871887,
0.990242063999176,
0.27114683389663696,
0.5197355151176453,
0.0959819033741951,
0.6124177575111389,
0.21568472683429718,
0.14795014262199402,
-0.5052030682563782,
0.5268667340278625,
-0.017083095386624336,
-0.7051863074302673,
-0.4192192256450653,
-0.5103607177734375,
-0.8378413319587708,
0.3173791468143463,
-0.23543532192707062,
-0.6807770729064941,
0.3471481204032898,
0.2338835448026657,
-0.529536783695221,
0.36943289637565613,
-0.3564225733280182,
0.8251904845237732,
-0.09124189615249634,
-0.35260045528411865,
0.007580828852951527,
-0.6057707667350769,
0.3084978461265564,
0.24205809831619263,
0.21207541227340698,
-0.133621484041214,
-0.06212981417775154,
0.7085897922515869,
-0.9662351608276367,
0.7578726410865784,
-0.1483597457408905,
-0.0002986025938298553,
0.5671659111976624,
-0.11249425262212753,
0.5889549255371094,
0.1152673289179802,
-0.17502224445343018,
0.332009881734848,
0.09391964972019196,
-0.46173280477523804,
-0.3075961470603943,
0.5420777797698975,
-1.0081640481948853,
-0.5985354781150818,
-0.4711586833000183,
-0.4717121422290802,
0.17633484303951263,
0.14088501036167145,
0.5880092978477478,
0.40972188115119934,
-0.04853665456175804,
0.19110701978206635,
0.4406096637248993,
-0.3191037178039551,
0.54590904712677,
0.33583036065101624,
-0.20736649632453918,
-0.558469831943512,
0.6345173716545105,
-0.03478396311402321,
0.2497486174106598,
0.21661755442619324,
0.20026078820228577,
-0.4920995235443115,
-0.4686998724937439,
-0.755002498626709,
0.2894042730331421,
-0.5335304141044617,
-0.45411962270736694,
-0.6971275806427002,
-0.35619527101516724,
-0.5179736614227295,
-0.012797830626368523,
-0.4728214740753174,
-0.5376781821250916,
-0.6140812039375305,
0.12690269947052002,
0.7898085117340088,
0.4371379315853119,
-0.36479899287223816,
0.36255383491516113,
-0.7186180949211121,
0.17159472405910492,
0.45589759945869446,
-0.011801710352301598,
0.08264871686697006,
-0.7905328273773193,
-0.13979101181030273,
0.22720783948898315,
-0.5060582160949707,
-0.7953886389732361,
0.7106637954711914,
0.17275813221931458,
0.5708947777748108,
0.20745797455310822,
0.26501932740211487,
0.6942552924156189,
-0.13705694675445557,
0.9717795848846436,
0.07795032858848572,
-1.1006203889846802,
0.4158059358596802,
-0.372944712638855,
0.365801602602005,
0.35387125611305237,
0.3916960656642914,
-0.35270577669143677,
-0.46077385544776917,
-0.692520797252655,
-0.9390649199485779,
0.6004319787025452,
0.5020498037338257,
-0.004733150824904442,
0.18668611347675323,
0.2860940992832184,
-0.1074151024222374,
0.23294727504253387,
-0.8239954113960266,
-0.6272910833358765,
-0.30269885063171387,
-0.11064448207616806,
0.20711755752563477,
-0.1099611222743988,
-0.21037454903125763,
-0.5707800984382629,
0.9432474374771118,
-0.019346054643392563,
0.706671953201294,
0.35346609354019165,
0.08857635408639908,
-0.17415060102939606,
0.16788507997989655,
0.17950786650180817,
0.542538046836853,
-0.2081938236951828,
-0.21408230066299438,
0.23595330119132996,
-0.31330564618110657,
0.12728427350521088,
0.35604003071784973,
-0.3259066939353943,
-0.15189658105373383,
0.04159950464963913,
0.9136797189712524,
-0.003021870506927371,
-0.32448601722717285,
0.32835087180137634,
-0.2315949946641922,
-0.44784751534461975,
-0.40444493293762207,
0.16301299631595612,
0.24842064082622528,
0.5296170115470886,
0.5029091835021973,
-0.18277475237846375,
0.2833917438983917,
-0.5178130865097046,
0.19781053066253662,
0.6515163779258728,
-0.21320055425167084,
-0.09629771113395691,
1.1860049962997437,
0.09191539138555527,
-0.08539807051420212,
0.8132755160331726,
-0.25296324491500854,
-0.5094141364097595,
0.9467307329177856,
0.4625586271286011,
0.7094247341156006,
-0.034345876425504684,
0.265051007270813,
0.4926307201385498,
0.1644802838563919,
0.04626091569662094,
0.4079761505126953,
-0.027331549674272537,
-0.6067962646484375,
-0.22527790069580078,
-0.6553431749343872,
-0.3486863076686859,
0.3301854431629181,
-0.6901459097862244,
0.26749834418296814,
-0.45796898007392883,
-0.29308462142944336,
-0.028008367866277695,
0.27979254722595215,
-0.6747693419456482,
0.3269728720188141,
0.19405551254749298,
0.6893597841262817,
-0.6011704206466675,
0.7611626386642456,
0.6800816059112549,
-0.4209493100643158,
-0.9025307297706604,
-0.20940294861793518,
0.17415755987167358,
-0.6869500875473022,
0.08675996959209442,
0.0295992624014616,
0.21396136283874512,
0.34956032037734985,
-0.7610276341438293,
-0.928754985332489,
1.4557628631591797,
0.069142647087574,
-0.5407482981681824,
-0.04965348541736603,
0.014972880482673645,
0.3723238408565521,
-0.26887837052345276,
0.6587671041488647,
0.46551015973091125,
0.4344905912876129,
0.15122833847999573,
-0.7886786460876465,
0.38589102029800415,
-0.22930045425891876,
0.025828296318650246,
0.12627044320106506,
-1.1016877889633179,
1.2036097049713135,
-0.2510336935520172,
-0.2543441951274872,
0.4986649751663208,
0.9284138679504395,
0.6221947073936462,
0.10029540210962296,
0.451122522354126,
0.7083799839019775,
0.8098410367965698,
-0.1782195121049881,
1.1087260246276855,
-0.20800192654132843,
0.6965139508247375,
0.7369254231452942,
0.01965263858437538,
0.6613104343414307,
0.1895143836736679,
-0.5448451042175293,
0.5629966259002686,
0.7504680156707764,
-0.3182082772254944,
0.35127338767051697,
0.05913127586245537,
-0.22346684336662292,
-0.19302262365818024,
0.042900752276182175,
-0.6576073169708252,
0.292970210313797,
0.2889600992202759,
-0.22863219678401947,
0.0015922958264127374,
-0.18782006204128265,
0.055186208337545395,
-0.45747995376586914,
-0.19337983429431915,
0.5091931223869324,
0.2375897765159607,
-0.2655677795410156,
0.9800018072128296,
0.043111857026815414,
0.7630434036254883,
-0.4907768666744232,
-0.10751243680715561,
-0.3519737720489502,
0.11746103316545486,
-0.11852274090051651,
-0.617461085319519,
0.05362943559885025,
-0.18586182594299316,
-0.06970363855361938,
0.10096994787454605,
0.6006065607070923,
-0.29687944054603577,
-0.5591512322425842,
0.3316153585910797,
0.3692953586578369,
0.21088826656341553,
-0.04896487668156624,
-1.0776371955871582,
0.20140495896339417,
0.12631860375404358,
-0.5401235222816467,
0.30154499411582947,
0.3106934726238251,
0.2269776612520218,
0.5983687043190002,
0.6415124535560608,
-0.25860312581062317,
0.05847756937146187,
-0.262617290019989,
0.8701117038726807,
-0.6808217763900757,
-0.2878369092941284,
-0.8507692217826843,
0.8862466812133789,
-0.09698234498500824,
-0.40110865235328674,
0.8558460474014282,
0.4086954891681671,
0.7665184140205383,
-0.025544701144099236,
0.8408418297767639,
-0.38532114028930664,
0.247473806142807,
-0.2980201244354248,
0.9318632483482361,
-0.9232901930809021,
0.1823384016752243,
-0.1071990504860878,
-0.6969720721244812,
0.08545532822608948,
0.5973597168922424,
0.1641845852136612,
0.2700551748275757,
0.424480676651001,
0.7029638290405273,
0.07290169596672058,
-0.11092093586921692,
0.3069567084312439,
0.5001755952835083,
0.23473355174064636,
0.6859675049781799,
0.7208428382873535,
-0.9206342101097107,
0.6291340589523315,
-0.6893384456634521,
-0.2098134160041809,
-0.20273205637931824,
-0.7873780131340027,
-0.7680100202560425,
-0.5600121021270752,
-0.35029613971710205,
-0.6397719383239746,
-0.06410565972328186,
0.7699497938156128,
0.8585426807403564,
-0.7242432236671448,
-0.33635827898979187,
-0.23370324075222015,
-0.00601975666359067,
-0.24745671451091766,
-0.3222469091415405,
0.26805222034454346,
0.10499908775091171,
-0.8352012038230896,
0.2983250617980957,
-0.06795838475227356,
0.37980663776397705,
-0.278518944978714,
-0.14040085673332214,
-0.28858235478401184,
0.2351904958486557,
0.40760520100593567,
0.5005033612251282,
-0.613217830657959,
-0.08621611446142197,
-0.05017664656043053,
-0.08819307386875153,
0.21513307094573975,
0.21928229928016663,
-0.7927714586257935,
0.04740767553448677,
0.5426857471466064,
0.20944532752037048,
0.6579838395118713,
0.02356952801346779,
0.6705608367919922,
-0.47867855429649353,
0.2220107614994049,
0.10216250270605087,
0.3451639413833618,
0.18684077262878418,
-0.5904896259307861,
0.46723976731300354,
0.21759310364723206,
-0.8271939754486084,
-0.8850167393684387,
-0.032919734716415405,
-0.9949674010276794,
-0.3225463926792145,
0.9996373057365417,
-0.15868620574474335,
-0.40602555871009827,
0.05739980936050415,
-0.10654857754707336,
0.5288432240486145,
-0.44734370708465576,
0.5096429586410522,
0.3575139045715332,
-0.17862659692764282,
-0.28057461977005005,
-0.5240086317062378,
0.6285800933837891,
0.4745086133480072,
-0.896154522895813,
-0.02980222925543785,
0.43522804975509644,
0.3343732953071594,
-0.09217039495706558,
0.7177793979644775,
-0.08087072521448135,
0.3403403162956238,
0.14284512400627136,
0.1668650358915329,
-0.04978381469845772,
-0.030387140810489655,
-0.2977219223976135,
-0.1272299438714981,
-0.17024032771587372,
-0.2265154868364334
] |
nvidia/stt_en_conformer_ctc_large
|
nvidia
| 2022-10-28T23:33:45Z | 9,065 | 20 |
nemo
|
[
"nemo",
"automatic-speech-recognition",
"speech",
"audio",
"CTC",
"Conformer",
"Transformer",
"pytorch",
"NeMo",
"hf-asr-leaderboard",
"Riva",
"en",
"arxiv:2005.08100",
"license:cc-by-4.0",
"model-index",
"has_space",
"region:us"
] |
automatic-speech-recognition
| 2022-04-09T03:43:21Z |
---
language:
- en
library_name: nemo
datasets:
- librispeech_asr
- fisher_corpus
- Switchboard-1
- WSJ-0
- WSJ-1
- National-Singapore-Corpus-Part-1
- National-Singapore-Corpus-Part-6
- vctk
- VoxPopuli-(EN)
- Europarl-ASR-(EN)
- Multilingual-LibriSpeech-(2000-hours)
- mozilla-foundation/common_voice_7_0
thumbnail: null
tags:
- automatic-speech-recognition
- speech
- audio
- CTC
- Conformer
- Transformer
- pytorch
- NeMo
- hf-asr-leaderboard
- Riva
license: cc-by-4.0
widget:
- example_title: Librispeech sample 1
src: https://cdn-media.huggingface.co/speech_samples/sample1.flac
- example_title: Librispeech sample 2
src: https://cdn-media.huggingface.co/speech_samples/sample2.flac
model-index:
- name: stt_en_conformer_ctc_large
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: 2.2
- task:
type: Automatic Speech Recognition
name: automatic-speech-recognition
dataset:
name: LibriSpeech (other)
type: librispeech_asr
config: other
split: test
args:
language: en
metrics:
- name: Test WER
type: wer
value: 4.3
- task:
type: Automatic Speech Recognition
name: automatic-speech-recognition
dataset:
name: Multilingual LibriSpeech
type: facebook/multilingual_librispeech
config: english
split: test
args:
language: en
metrics:
- name: Test WER
type: wer
value: 7.2
- task:
type: Automatic Speech Recognition
name: automatic-speech-recognition
dataset:
name: Mozilla Common Voice 7.0
type: mozilla-foundation/common_voice_7_0
config: en
split: test
args:
language: en
metrics:
- name: Test WER
type: wer
value: 8.0
- task:
type: Automatic Speech Recognition
name: automatic-speech-recognition
dataset:
name: Mozilla Common Voice 8.0
type: mozilla-foundation/common_voice_8_0
config: en
split: test
args:
language: en
metrics:
- name: Test WER
type: wer
value: 9.48
- task:
type: Automatic Speech Recognition
name: automatic-speech-recognition
dataset:
name: Wall Street Journal 92
type: wsj_0
args:
language: en
metrics:
- name: Test WER
type: wer
value: 2.0
- task:
type: Automatic Speech Recognition
name: automatic-speech-recognition
dataset:
name: Wall Street Journal 93
type: wsj_1
args:
language: en
metrics:
- name: Test WER
type: wer
value: 2.9
- task:
type: Automatic Speech Recognition
name: automatic-speech-recognition
dataset:
name: National Singapore Corpus
type: nsc_part_1
args:
language: en
metrics:
- name: Test WER
type: wer
value: 7.0
---
# NVIDIA Conformer-CTC Large (en-US)
<style>
img {
display: inline;
}
</style>
| [](#model-architecture)
| [](#model-architecture)
| [](#datasets)
| [](#deployment-with-nvidia-riva) |
This model transcribes speech in lowercase English alphabet including spaces and apostrophes, and is trained on several thousand hours of English speech data.
It is a non-autoregressive "large" variant of Conformer, with around 120 million parameters.
See the [model architecture](#model-architecture) section and [NeMo documentation](https://docs.nvidia.com/deeplearning/nemo/user-guide/docs/en/main/asr/models.html#conformer-ctc) for complete architecture details.
It is also compatible with NVIDIA Riva for [production-grade server deployments](#deployment-with-nvidia-riva).
## Usage
The model is available for use in the NeMo toolkit [3], and can be used as a pre-trained checkpoint for inference or for fine-tuning on another dataset.
To train, fine-tune or play with the model you will need to install [NVIDIA NeMo](https://github.com/NVIDIA/NeMo). We recommend you install it after you've installed latest PyTorch version.
```
pip install nemo_toolkit['all']
```
### Automatically instantiate the model
```python
import nemo.collections.asr as nemo_asr
asr_model = nemo_asr.models.EncDecCTCModelBPE.from_pretrained("nvidia/stt_en_conformer_ctc_large")
```
### Transcribing using Python
First, let's get a sample
```
wget https://dldata-public.s3.us-east-2.amazonaws.com/2086-149220-0033.wav
```
Then simply do:
```
asr_model.transcribe(['2086-149220-0033.wav'])
```
### Transcribing many audio files
```shell
python [NEMO_GIT_FOLDER]/examples/asr/transcribe_speech.py
pretrained_name="nvidia/stt_en_conformer_ctc_large"
audio_dir="<DIRECTORY CONTAINING AUDIO FILES>"
```
### Input
This model accepts 16000 kHz Mono-channel Audio (wav files) as input.
### Output
This model provides transcribed speech as a string for a given audio sample.
## Model Architecture
Conformer-CTC model is a non-autoregressive variant of Conformer model [1] for Automatic Speech Recognition which uses CTC loss/decoding instead of Transducer. You may find more info on the detail of this model here: [Conformer-CTC Model](https://docs.nvidia.com/deeplearning/nemo/user-guide/docs/en/main/asr/models.html#conformer-ctc).
## Training
The NeMo toolkit [3] was used for training the models for over several hundred epochs. These model are trained with this [example script](https://github.com/NVIDIA/NeMo/blob/main/examples/asr/asr_ctc/speech_to_text_ctc_bpe.py) and this [base config](https://github.com/NVIDIA/NeMo/blob/main/examples/asr/conf/conformer/conformer_ctc_bpe.yaml).
The tokenizers for these models were built using the text transcripts of the train set with this [script](https://github.com/NVIDIA/NeMo/blob/main/scripts/tokenizers/process_asr_text_tokenizer.py).
The checkpoint of the language model used as the neural rescorer can be found [here](https://ngc.nvidia.com/catalog/models/nvidia:nemo:asrlm_en_transformer_large_ls). You may find more info on how to train and use language models for ASR models here: [ASR Language Modeling](https://docs.nvidia.com/deeplearning/nemo/user-guide/docs/en/main/asr/asr_language_modeling.html)
### Datasets
All the models in this collection are trained on a composite dataset (NeMo ASRSET) comprising of several thousand hours of English speech:
- Librispeech 960 hours of English speech
- Fisher Corpus
- Switchboard-1 Dataset
- WSJ-0 and WSJ-1
- National Speech Corpus (Part 1, Part 6)
- VCTK
- VoxPopuli (EN)
- Europarl-ASR (EN)
- Multilingual Librispeech (MLS EN) - 2,000 hours subset
- Mozilla Common Voice (v7.0)
Note: older versions of the model may have trained on smaller set of datasets.
## Performance
The list of the available models in this collection is shown in the following table. Performances of the ASR models are reported in terms of Word Error Rate (WER%) with greedy decoding.
| Version | Tokenizer | Vocabulary Size | LS test-other | LS test-clean | WSJ Eval92 | WSJ Dev93 | NSC Part 1 | MLS Test | MLS Dev | MCV Test 6.1 |Train Dataset |
|---------|-----------------------|-----------------|---------------|---------------|------------|-----------|-------|------|-----|-------|---------|
| 1.6.0 | SentencePiece Unigram | 128 | 4.3 | 2.2 | 2.0 | 2.9 | 7.0 | 7.2 | 6.5 | 8.0 | NeMo ASRSET 2.0 |
While deploying with [NVIDIA Riva](https://developer.nvidia.com/riva), you can combine this model with external language models to further improve WER. The WER(%) of the latest model with different language modeling techniques are reported in the following table.
| Language Modeling | Training Dataset | LS test-other | LS test-clean | Comment |
|-------------------------------------|-------------------------|---------------|---------------|---------------------------------------------------------|
|N-gram LM | LS Train + LS LM Corpus | 3.5 | 1.8 | N=10, beam_width=128, n_gram_alpha=1.0, n_gram_beta=1.0 |
|Neural Rescorer(Transformer) | LS Train + LS LM Corpus | 3.4 | 1.7 | N=10, beam_width=128 |
|N-gram + Neural Rescorer(Transformer)| LS Train + LS LM Corpus | 3.2 | 1.8 | N=10, beam_width=128, n_gram_alpha=1.0, n_gram_beta=1.0 |
## Limitations
Since this model was trained on publicly available speech datasets, the performance of this model might degrade for speech which includes technical terms, or vernacular that the model has not been trained on. The model might also perform worse for accented speech.
## Deployment with NVIDIA Riva
For the best real-time accuracy, latency, and throughput, deploy the model with [NVIDIA Riva](https://developer.nvidia.com/riva), an accelerated speech AI SDK deployable on-prem, in all clouds, multi-cloud, hybrid, at the edge, and embedded.
Additionally, Riva provides:
* World-class out-of-the-box accuracy for the most common languages with model checkpoints trained on proprietary data with hundreds of thousands of GPU-compute hours
* Best in class accuracy with run-time word boosting (e.g., brand and product names) and customization of acoustic model, language model, and inverse text normalization
* Streaming speech recognition, Kubernetes compatible scaling, and Enterprise-grade support
Check out [Riva live demo](https://developer.nvidia.com/riva#demos).
## References
- [1] [Conformer: Convolution-augmented Transformer for Speech Recognition](https://arxiv.org/abs/2005.08100)
- [2] [Google Sentencepiece Tokenizer](https://github.com/google/sentencepiece)
- [3] [NVIDIA NeMo Toolkit](https://github.com/NVIDIA/NeMo)
|
[
-0.4329308867454529,
-0.7294893860816956,
-0.031004618853330612,
-0.04031486436724663,
-0.15624457597732544,
-0.05367150530219078,
-0.33358368277549744,
-0.5478784441947937,
-0.06555190682411194,
0.2756956219673157,
-0.4186839759349823,
-0.5078738331794739,
-0.5613347887992859,
0.12363364547491074,
-0.3756961226463318,
0.8328148126602173,
0.1773756444454193,
0.33515235781669617,
-0.16825640201568604,
-0.1730564534664154,
-0.5372438430786133,
-0.5115029215812683,
-0.8319986462593079,
-0.4159715473651886,
0.12325482070446014,
0.2636660635471344,
0.40829309821128845,
0.49123984575271606,
0.4757462739944458,
0.28380367159843445,
-0.40577176213264465,
0.1780277043581009,
-0.08071484416723251,
0.08529790490865707,
0.049069903790950775,
-0.24780572950839996,
-0.5467754006385803,
-0.11391186714172363,
0.7406154274940491,
0.19613061845302582,
-0.15777218341827393,
0.2367120087146759,
0.06442449241876602,
0.30362316966056824,
-0.5008813738822937,
0.18195855617523193,
-0.3187035322189331,
-0.2014136165380478,
-0.11869104951620102,
0.10461482405662537,
-0.35982123017311096,
-0.29140567779541016,
0.12220457196235657,
-0.5888848304748535,
0.12748154997825623,
0.001818650052882731,
1.1932988166809082,
0.3167315423488617,
-0.36661627888679504,
-0.27943652868270874,
-0.6449601054191589,
0.8437504172325134,
-1.1899046897888184,
0.6269741058349609,
0.3309502601623535,
0.25483599305152893,
0.07034892588853836,
-0.677586555480957,
-0.6968461275100708,
-0.48396262526512146,
-0.009312809444963932,
0.12765079736709595,
-0.39819782972335815,
0.11374996602535248,
0.3388977348804474,
0.4538310766220093,
-0.6889858841896057,
0.27755090594291687,
-0.5775858759880066,
-0.3130277693271637,
0.6488727927207947,
0.14228655397891998,
0.41104376316070557,
-0.25076279044151306,
-0.14630894362926483,
-0.4786508083343506,
-0.5216254591941833,
0.07255684584379196,
0.2439797967672348,
0.3489067852497101,
-0.47312426567077637,
0.2933732271194458,
-0.2243637591600418,
0.8974519371986389,
0.08853337168693542,
-0.25872695446014404,
0.6020609736442566,
-0.44207537174224854,
-0.3263322710990906,
-0.0516342967748642,
1.0727941989898682,
0.15830031037330627,
0.07033834606409073,
0.1354885697364807,
-0.34146711230278015,
0.20693868398666382,
0.04951883852481842,
-0.7449479699134827,
0.05094544216990471,
0.07111475616693497,
-0.28122127056121826,
-0.1124664917588234,
-0.22566209733486176,
-0.6902771592140198,
-0.0003902568423654884,
-0.3395943343639374,
0.6157349348068237,
-0.7347097396850586,
-0.22714899480342865,
0.1402057260274887,
-0.1764202117919922,
0.45075324177742004,
0.13005298376083374,
-0.9278634190559387,
0.4386196732521057,
0.4593607485294342,
0.9258906841278076,
-0.054451823234558105,
-0.12549938261508942,
-0.38801416754722595,
-0.24799951910972595,
-0.1153305396437645,
0.7192253470420837,
-0.44512906670570374,
-0.47040238976478577,
-0.09809967130422592,
0.04492204636335373,
-0.27674224972724915,
-0.45589587092399597,
0.627690315246582,
-0.25765472650527954,
0.4846179485321045,
0.0926513522863388,
-0.668555736541748,
-0.40605610609054565,
0.23896867036819458,
-0.5134767293930054,
1.0083907842636108,
-0.24459710717201233,
-0.4962376356124878,
0.1307281106710434,
-0.796773374080658,
-0.4490143060684204,
-0.08229593187570572,
-0.12331832200288773,
-0.40445923805236816,
0.14802831411361694,
0.33145472407341003,
0.381562203168869,
-0.572623610496521,
0.1905192881822586,
0.08018097281455994,
-0.32531651854515076,
0.15528404712677002,
-0.5077654719352722,
0.8282479047775269,
0.48148322105407715,
-0.5096549391746521,
0.10988114774227142,
-0.801275908946991,
0.010363839566707611,
0.011114565655589104,
-0.37376928329467773,
0.054916031658649445,
-0.2371806651353836,
0.3229881823062897,
0.24892544746398926,
0.2431972622871399,
-0.6655148863792419,
-0.11798128485679626,
-0.7310560345649719,
0.8106940388679504,
0.49764999747276306,
-0.12091144174337387,
0.40971603989601135,
-0.4228637218475342,
0.6781140565872192,
-0.17734314501285553,
0.29498085379600525,
-0.09540371596813202,
-0.6152000427246094,
-0.9672985672950745,
-0.2415923774242401,
0.38321030139923096,
0.5531797409057617,
-0.566069483757019,
0.28383108973503113,
-0.4364495277404785,
-0.7643443942070007,
-0.6251363754272461,
-0.12151150405406952,
0.823664128780365,
0.5486350655555725,
0.4148019552230835,
-0.27305787801742554,
-0.6229536533355713,
-0.8991048336029053,
-0.08148136734962463,
-0.1297774761915207,
0.09064002335071564,
0.4079141318798065,
0.6114170551300049,
-0.17009542882442474,
0.7279747128486633,
-0.3417876362800598,
-0.326674222946167,
-0.2612510621547699,
0.018106184899806976,
0.392142117023468,
0.5883846879005432,
0.2473994493484497,
-0.6118322014808655,
-0.5421693325042725,
0.15092268586158752,
-0.4889657199382782,
0.11401800811290741,
0.20153672993183136,
0.41440558433532715,
0.519792377948761,
0.6959080100059509,
-0.43611738085746765,
0.2852678894996643,
0.780451774597168,
-0.3131139576435089,
0.43058034777641296,
-0.3817760646343231,
-0.036297086626291275,
-1.2636778354644775,
0.32740965485572815,
0.053967200219631195,
-0.09778943657875061,
-0.734770655632019,
-0.07143588364124298,
0.03167584165930748,
-0.05184756591916084,
-0.5393103361129761,
0.7562395334243774,
-0.5017870664596558,
0.08849109709262848,
-0.19040480256080627,
0.05676211416721344,
0.11947967857122421,
0.42975932359695435,
0.172079399228096,
0.9230896830558777,
0.6062069535255432,
-0.7187590599060059,
0.21456532180309296,
0.4471498131752014,
-0.5346820950508118,
0.2431158572435379,
-1.0211193561553955,
0.25635096430778503,
-0.12345337867736816,
0.1563849300146103,
-0.9119608402252197,
-0.017210828140378,
0.13534843921661377,
-0.8766722679138184,
0.33061063289642334,
-0.16668254137039185,
-0.492262065410614,
-0.20593583583831787,
0.07414931058883667,
0.34342145919799805,
0.7061023712158203,
-0.31885331869125366,
0.6574834585189819,
0.5248991250991821,
-0.008777088485658169,
-0.6330592632293701,
-0.8646978139877319,
-0.07963530719280243,
-0.24055397510528564,
-0.643736720085144,
0.4592967629432678,
-0.14195629954338074,
-0.07612423598766327,
-0.14747364819049835,
0.0012937324354425073,
-0.10541988909244537,
-0.08126440644264221,
0.5893465876579285,
0.4745364189147949,
-0.3711133599281311,
0.07977798581123352,
-0.2857312560081482,
-0.22591198980808258,
-0.22974786162376404,
0.018824338912963867,
0.6970553994178772,
-0.3004798889160156,
-0.06237202137708664,
-0.804209291934967,
0.05666609853506088,
0.7861328125,
-0.4097277522087097,
0.5672038793563843,
0.5656533241271973,
-0.3856356143951416,
0.0876433327794075,
-0.7883908152580261,
-0.29168465733528137,
-0.4645070433616638,
0.44793322682380676,
-0.23827873170375824,
-0.7874863147735596,
0.4988808035850525,
0.38446372747421265,
0.2046736776828766,
0.6406524181365967,
0.41494131088256836,
0.18249908089637756,
0.9352403283119202,
0.4723750054836273,
-0.2669477164745331,
0.8325819373130798,
-0.4770241677761078,
0.19126997888088226,
-0.9571650624275208,
-0.47565895318984985,
-0.623742401599884,
-0.151467964053154,
-0.5192744135856628,
-0.48300138115882874,
0.23552393913269043,
-0.22419790923595428,
-0.25115811824798584,
0.5775682330131531,
-0.6648098230361938,
0.21019238233566284,
0.6215148568153381,
-0.22892224788665771,
0.27525821328163147,
0.16682621836662292,
-0.1414361596107483,
-0.05188481882214546,
-0.734196126461029,
-0.4995935261249542,
1.1406986713409424,
0.40878310799598694,
0.7239733934402466,
-0.032920610159635544,
0.39799171686172485,
-0.0561860054731369,
0.0840773731470108,
-0.6520447731018066,
0.40905311703681946,
-0.45642098784446716,
-0.9608255624771118,
-0.23934714496135712,
-0.2685120105743408,
-0.7796724438667297,
0.22670231759548187,
-0.32973870635032654,
-0.4900379776954651,
0.40471261739730835,
0.11452039331197739,
-0.7763379812240601,
0.15536804497241974,
-0.752744197845459,
0.8942161798477173,
-0.10207130014896393,
-0.14696741104125977,
-0.2587423622608185,
-0.4958704710006714,
0.008349427953362465,
0.33997371792793274,
0.1970035284757614,
-0.09230726957321167,
0.10191553086042404,
0.9223574995994568,
-0.24041470885276794,
0.7552041411399841,
-0.14967675507068634,
0.2623060941696167,
0.35786834359169006,
-0.3173641860485077,
0.4248254895210266,
-0.06947619467973709,
-0.1381300389766693,
0.37086910009384155,
-0.011305478401482105,
0.024239404127001762,
-0.3762393593788147,
0.7608202695846558,
-1.0102989673614502,
-0.2575822174549103,
-0.514574408531189,
-0.4603571891784668,
-0.06830383837223053,
0.11225322633981705,
0.6044257283210754,
0.8322452902793884,
-0.19865553081035614,
0.4137551188468933,
0.7145123481750488,
-0.39909061789512634,
0.5728074908256531,
0.6997156143188477,
-0.04373762011528015,
-0.6922597885131836,
0.913000226020813,
0.3533388674259186,
0.369537889957428,
0.4495055377483368,
0.05235619470477104,
-0.43042242527008057,
-0.7420357465744019,
-0.28284645080566406,
0.3007679581642151,
-0.519007682800293,
-0.2784026265144348,
-0.7806127071380615,
-0.4840150475502014,
-0.7357442378997803,
0.05411595478653908,
-0.5804451704025269,
-0.3367437422275543,
-0.4424477815628052,
-0.12050432711839676,
0.5597147345542908,
0.6607125997543335,
0.03777166083455086,
0.4144420027732849,
-0.5164017081260681,
0.144877627491951,
0.19210629165172577,
0.12575961649417877,
-0.09430190920829773,
-1.1470259428024292,
-0.12727577984333038,
0.180165097117424,
-0.29237431287765503,
-0.48886650800704956,
0.8722826242446899,
0.34117501974105835,
0.5596964359283447,
0.28547540307044983,
-0.2837469279766083,
0.8668548464775085,
-0.347031831741333,
0.8606278300285339,
0.13965213298797607,
-0.9504733681678772,
0.5800415277481079,
-0.18561039865016937,
0.46556398272514343,
0.5581504702568054,
0.1731080561876297,
-0.7335453033447266,
-0.1732984334230423,
-0.7288049459457397,
-0.9554271697998047,
0.7888920307159424,
0.1255304366350174,
0.16326184570789337,
0.024294624105095863,
0.19183389842510223,
-0.07441367954015732,
0.052959829568862915,
-0.7402215003967285,
-0.3915213346481323,
-0.21328574419021606,
-0.14531473815441132,
-0.49005794525146484,
-0.2173856794834137,
0.20443671941757202,
-0.4546774625778198,
0.9492621421813965,
0.07711276412010193,
0.23512859642505646,
0.2977992296218872,
-0.26025280356407166,
0.327743798494339,
0.2425662875175476,
0.7997222542762756,
0.3578738868236542,
-0.27147337794303894,
-0.08742493391036987,
0.40037548542022705,
-0.5489778518676758,
-0.08140155673027039,
0.10470999777317047,
-0.1871795952320099,
0.2373621016740799,
0.2545965015888214,
1.184346318244934,
0.2536795735359192,
-0.7760652303695679,
0.4545459449291229,
-0.21589817106723785,
-0.3113258183002472,
-0.5886716246604919,
0.07029026001691818,
0.17723922431468964,
0.12252813577651978,
0.11212680488824844,
0.09288516640663147,
0.0650705099105835,
-0.46332019567489624,
0.017514975741505623,
0.44192132353782654,
-0.6053629517555237,
-0.34603849053382874,
0.8352070450782776,
0.14985229074954987,
-0.3876088559627533,
0.8302468061447144,
0.04986752197146416,
-0.15467487275600433,
0.648493230342865,
0.6551058888435364,
0.8602925539016724,
-0.4719369411468506,
0.1350959837436676,
0.8201528787612915,
0.2622669041156769,
-0.2694806754589081,
0.2951982319355011,
0.11704615503549576,
-0.7514313459396362,
-0.390789270401001,
-0.8176285028457642,
-0.2013225555419922,
0.2289775013923645,
-0.6880626678466797,
0.3790455162525177,
-0.6268113255500793,
-0.44117680191993713,
0.12595820426940918,
0.08145900815725327,
-0.6651991605758667,
0.29480138421058655,
0.3673030734062195,
0.8880009651184082,
-0.8708590865135193,
1.0481553077697754,
0.7092810273170471,
-0.6559573411941528,
-0.8993000388145447,
-0.4373279809951782,
-0.11666373908519745,
-0.8214784860610962,
0.6184334754943848,
0.15845175087451935,
-0.0921386331319809,
0.03132360056042671,
-0.32847052812576294,
-1.1623519659042358,
1.239271640777588,
0.4926023781299591,
-0.6349289417266846,
-0.0730627253651619,
0.03208211809396744,
0.596789538860321,
-0.4001276195049286,
0.5106662511825562,
0.43547606468200684,
0.3657877445220947,
0.12540316581726074,
-1.2830308675765991,
-0.023090438917279243,
-0.4838200509548187,
-0.015408599749207497,
-0.07603441178798676,
-0.720471203327179,
1.0888029336929321,
-0.027115320786833763,
-0.2437046319246292,
-0.09592616558074951,
0.5703952312469482,
0.3018278479576111,
0.19158251583576202,
0.38351672887802124,
0.5857625603675842,
0.598660409450531,
0.0488288551568985,
1.0610815286636353,
-0.3822955787181854,
0.21279960870742798,
1.1735613346099854,
0.20623043179512024,
1.0854790210723877,
0.4454120695590973,
-0.021237703040242195,
0.519618034362793,
0.3753996193408966,
-0.057890452444553375,
0.40138357877731323,
-0.11376938223838806,
-0.17305243015289307,
-0.2044042944908142,
-0.21657903492450714,
-0.5325148105621338,
0.6054584383964539,
0.30815213918685913,
-0.44090136885643005,
0.07324959337711334,
0.0966407060623169,
0.06580556184053421,
-0.031337760388851166,
-0.20529626309871674,
0.7068294286727905,
0.25658944249153137,
-0.5836946964263916,
0.8768891096115112,
0.04937746375799179,
0.9953494071960449,
-0.6562632918357849,
0.20142419636249542,
-0.2047717124223709,
0.24326182901859283,
-0.2249259054660797,
-0.3143000900745392,
0.33587944507598877,
0.043674152344465256,
-0.25006815791130066,
-0.3067423105239868,
0.4292154312133789,
-0.28515446186065674,
-0.4615445137023926,
0.26347815990448,
0.12369102984666824,
0.21381263434886932,
-0.09615157544612885,
-0.6490743160247803,
0.22213003039360046,
0.07613279670476913,
-0.1418488323688507,
0.2207760065793991,
-0.061655621975660324,
0.06552109122276306,
0.8542231321334839,
0.6821662783622742,
0.0402354821562767,
0.3244609534740448,
0.03938303887844086,
0.6795931458473206,
-0.670253336429596,
-0.4617288410663605,
-0.8713712096214294,
0.5874004364013672,
-0.08032950758934021,
-0.6740788221359253,
1.0194759368896484,
0.7366421222686768,
0.7684746980667114,
-0.0239279642701149,
0.6529292464256287,
-0.1239587664604187,
0.40248510241508484,
-0.3853158950805664,
0.7135937213897705,
-0.6048985123634338,
0.07020114362239838,
-0.12130776047706604,
-0.648292601108551,
-0.37796488404273987,
0.8320271372795105,
-0.4896247684955597,
-0.04340974986553192,
0.5706579685211182,
1.096949815750122,
0.0575350858271122,
0.03749747574329376,
0.3447709083557129,
0.3906572461128235,
0.30599117279052734,
0.645646333694458,
0.6331365704536438,
-0.8744568824768066,
0.6927067637443542,
-0.131107360124588,
0.036124337464571,
-0.23868010938167572,
-0.5186768174171448,
-0.7087258100509644,
-0.7697826623916626,
-0.49376586079597473,
-0.32680484652519226,
0.0910925343632698,
0.8996115922927856,
0.8290202617645264,
-0.9308276772499084,
-0.5058422684669495,
-0.10135775059461594,
-0.05393673852086067,
-0.20158889889717102,
-0.17477267980575562,
0.2847076654434204,
-0.1707267016172409,
-0.9994090795516968,
0.5986888408660889,
0.04494933411478996,
0.09354577958583832,
-0.08924592286348343,
-0.26141706109046936,
-0.2911590039730072,
0.04280121996998787,
0.2800244092941284,
0.47491902112960815,
-0.7005483508110046,
-0.04253065586090088,
0.12151104211807251,
-0.1264900267124176,
0.14588497579097748,
0.35829389095306396,
-0.7825002074241638,
0.5015361309051514,
0.7127534747123718,
0.3245399594306946,
0.6689659953117371,
-0.30809855461120605,
0.5931531190872192,
-0.3400474786758423,
0.255370169878006,
0.33286625146865845,
0.2593911588191986,
0.39257362484931946,
-0.04339846596121788,
0.2558126151561737,
0.04730816185474396,
-0.6093235015869141,
-0.9786252379417419,
-0.16120174527168274,
-0.931564211845398,
-0.12752147018909454,
1.3358744382858276,
0.04054507985711098,
-0.41390901803970337,
-0.016204696148633957,
-0.1245926097035408,
0.3253084719181061,
-0.5779688954353333,
0.43100786209106445,
0.5306318998336792,
0.07593607902526855,
-0.0028913458809256554,
-0.868052065372467,
0.5424594879150391,
0.5068141222000122,
-0.4932437241077423,
-0.07976005971431732,
0.43702423572540283,
0.7232652306556702,
0.26982828974723816,
0.6497081518173218,
-0.33222872018814087,
0.13960766792297363,
0.07349901646375656,
0.4203430414199829,
-0.283773809671402,
-0.09967108815908432,
-0.7742720246315002,
0.06306462734937668,
0.0035143536515533924,
-0.48673704266548157
] |
timm/convnextv2_tiny.fcmae_ft_in22k_in1k
|
timm
| 2023-03-31T23:41:08Z | 9,056 | 0 |
timm
|
[
"timm",
"pytorch",
"safetensors",
"image-classification",
"dataset:imagenet-1k",
"arxiv:2301.00808",
"license:cc-by-nc-4.0",
"region:us"
] |
image-classification
| 2023-01-05T01:56:47Z |
---
tags:
- image-classification
- timm
library_tag: timm
license: cc-by-nc-4.0
datasets:
- imagenet-1k
- imagenet-1k
---
# Model card for convnextv2_tiny.fcmae_ft_in22k_in1k
A ConvNeXt-V2 image classification model. Pretrained with a fully convolutional masked autoencoder framework (FCMAE) and fine-tuned on ImageNet-22k and then ImageNet-1k.
## Model Details
- **Model Type:** Image classification / feature backbone
- **Model Stats:**
- Params (M): 28.6
- GMACs: 4.5
- Activations (M): 13.4
- Image size: train = 224 x 224, test = 288 x 288
- **Papers:**
- ConvNeXt V2: Co-designing and Scaling ConvNets with Masked Autoencoders: https://arxiv.org/abs/2301.00808
- **Original:** https://github.com/facebookresearch/ConvNeXt-V2
- **Dataset:** ImageNet-1k
- **Pretrain Dataset:** ImageNet-1k
## Model Usage
### Image Classification
```python
from urllib.request import urlopen
from PIL import Image
import timm
img = Image.open(urlopen(
'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/beignets-task-guide.png'
))
model = timm.create_model('convnextv2_tiny.fcmae_ft_in22k_in1k', pretrained=True)
model = model.eval()
# get model specific transforms (normalization, resize)
data_config = timm.data.resolve_model_data_config(model)
transforms = timm.data.create_transform(**data_config, is_training=False)
output = model(transforms(img).unsqueeze(0)) # unsqueeze single image into batch of 1
top5_probabilities, top5_class_indices = torch.topk(output.softmax(dim=1) * 100, k=5)
```
### 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(
'convnextv2_tiny.fcmae_ft_in22k_in1k',
pretrained=True,
features_only=True,
)
model = model.eval()
# get model specific transforms (normalization, resize)
data_config = timm.data.resolve_model_data_config(model)
transforms = timm.data.create_transform(**data_config, is_training=False)
output = model(transforms(img).unsqueeze(0)) # unsqueeze single image into batch of 1
for o in output:
# print shape of each feature map in output
# e.g.:
# torch.Size([1, 96, 56, 56])
# torch.Size([1, 192, 28, 28])
# torch.Size([1, 384, 14, 14])
# torch.Size([1, 768, 7, 7])
print(o.shape)
```
### Image Embeddings
```python
from urllib.request import urlopen
from PIL import Image
import timm
img = Image.open(urlopen(
'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/beignets-task-guide.png'
))
model = timm.create_model(
'convnextv2_tiny.fcmae_ft_in22k_in1k',
pretrained=True,
num_classes=0, # remove classifier nn.Linear
)
model = model.eval()
# get model specific transforms (normalization, resize)
data_config = timm.data.resolve_model_data_config(model)
transforms = timm.data.create_transform(**data_config, is_training=False)
output = model(transforms(img).unsqueeze(0)) # output is (batch_size, num_features) shaped tensor
# or equivalently (without needing to set num_classes=0)
output = model.forward_features(transforms(img).unsqueeze(0))
# output is unpooled, a (1, 768, 7, 7) shaped tensor
output = model.forward_head(output, pre_logits=True)
# output is a (1, num_features) shaped tensor
```
## Model Comparison
Explore the dataset and runtime metrics of this model in timm [model results](https://github.com/huggingface/pytorch-image-models/tree/main/results).
All timing numbers from eager model PyTorch 1.13 on RTX 3090 w/ AMP.
| model |top1 |top5 |img_size|param_count|gmacs |macts |samples_per_sec|batch_size|
|------------------------------------------------------------------------------------------------------------------------------|------|------|--------|-----------|------|------|---------------|----------|
| [convnextv2_huge.fcmae_ft_in22k_in1k_512](https://huggingface.co/timm/convnextv2_huge.fcmae_ft_in22k_in1k_512) |88.848|98.742|512 |660.29 |600.81|413.07|28.58 |48 |
| [convnextv2_huge.fcmae_ft_in22k_in1k_384](https://huggingface.co/timm/convnextv2_huge.fcmae_ft_in22k_in1k_384) |88.668|98.738|384 |660.29 |337.96|232.35|50.56 |64 |
| [convnext_xxlarge.clip_laion2b_soup_ft_in1k](https://huggingface.co/timm/convnext_xxlarge.clip_laion2b_soup_ft_in1k) |88.612|98.704|256 |846.47 |198.09|124.45|122.45 |256 |
| [convnext_large_mlp.clip_laion2b_soup_ft_in12k_in1k_384](https://huggingface.co/timm/convnext_large_mlp.clip_laion2b_soup_ft_in12k_in1k_384) |88.312|98.578|384 |200.13 |101.11|126.74|196.84 |256 |
| [convnextv2_large.fcmae_ft_in22k_in1k_384](https://huggingface.co/timm/convnextv2_large.fcmae_ft_in22k_in1k_384) |88.196|98.532|384 |197.96 |101.1 |126.74|128.94 |128 |
| [convnext_large_mlp.clip_laion2b_soup_ft_in12k_in1k_320](https://huggingface.co/timm/convnext_large_mlp.clip_laion2b_soup_ft_in12k_in1k_320) |87.968|98.47 |320 |200.13 |70.21 |88.02 |283.42 |256 |
| [convnext_xlarge.fb_in22k_ft_in1k_384](https://huggingface.co/timm/convnext_xlarge.fb_in22k_ft_in1k_384) |87.75 |98.556|384 |350.2 |179.2 |168.99|124.85 |192 |
| [convnextv2_base.fcmae_ft_in22k_in1k_384](https://huggingface.co/timm/convnextv2_base.fcmae_ft_in22k_in1k_384) |87.646|98.422|384 |88.72 |45.21 |84.49 |209.51 |256 |
| [convnext_large.fb_in22k_ft_in1k_384](https://huggingface.co/timm/convnext_large.fb_in22k_ft_in1k_384) |87.476|98.382|384 |197.77 |101.1 |126.74|194.66 |256 |
| [convnext_large_mlp.clip_laion2b_augreg_ft_in1k](https://huggingface.co/timm/convnext_large_mlp.clip_laion2b_augreg_ft_in1k) |87.344|98.218|256 |200.13 |44.94 |56.33 |438.08 |256 |
| [convnextv2_large.fcmae_ft_in22k_in1k](https://huggingface.co/timm/convnextv2_large.fcmae_ft_in22k_in1k) |87.26 |98.248|224 |197.96 |34.4 |43.13 |376.84 |256 |
| [convnext_base.clip_laion2b_augreg_ft_in12k_in1k_384](https://huggingface.co/timm/convnext_base.clip_laion2b_augreg_ft_in12k_in1k_384) |87.138|98.212|384 |88.59 |45.21 |84.49 |365.47 |256 |
| [convnext_xlarge.fb_in22k_ft_in1k](https://huggingface.co/timm/convnext_xlarge.fb_in22k_ft_in1k) |87.002|98.208|224 |350.2 |60.98 |57.5 |368.01 |256 |
| [convnext_base.fb_in22k_ft_in1k_384](https://huggingface.co/timm/convnext_base.fb_in22k_ft_in1k_384) |86.796|98.264|384 |88.59 |45.21 |84.49 |366.54 |256 |
| [convnextv2_base.fcmae_ft_in22k_in1k](https://huggingface.co/timm/convnextv2_base.fcmae_ft_in22k_in1k) |86.74 |98.022|224 |88.72 |15.38 |28.75 |624.23 |256 |
| [convnext_large.fb_in22k_ft_in1k](https://huggingface.co/timm/convnext_large.fb_in22k_ft_in1k) |86.636|98.028|224 |197.77 |34.4 |43.13 |581.43 |256 |
| [convnext_base.clip_laiona_augreg_ft_in1k_384](https://huggingface.co/timm/convnext_base.clip_laiona_augreg_ft_in1k_384) |86.504|97.97 |384 |88.59 |45.21 |84.49 |368.14 |256 |
| [convnext_base.clip_laion2b_augreg_ft_in12k_in1k](https://huggingface.co/timm/convnext_base.clip_laion2b_augreg_ft_in12k_in1k) |86.344|97.97 |256 |88.59 |20.09 |37.55 |816.14 |256 |
| [convnextv2_huge.fcmae_ft_in1k](https://huggingface.co/timm/convnextv2_huge.fcmae_ft_in1k) |86.256|97.75 |224 |660.29 |115.0 |79.07 |154.72 |256 |
| [convnext_small.in12k_ft_in1k_384](https://huggingface.co/timm/convnext_small.in12k_ft_in1k_384) |86.182|97.92 |384 |50.22 |25.58 |63.37 |516.19 |256 |
| [convnext_base.clip_laion2b_augreg_ft_in1k](https://huggingface.co/timm/convnext_base.clip_laion2b_augreg_ft_in1k) |86.154|97.68 |256 |88.59 |20.09 |37.55 |819.86 |256 |
| [convnext_base.fb_in22k_ft_in1k](https://huggingface.co/timm/convnext_base.fb_in22k_ft_in1k) |85.822|97.866|224 |88.59 |15.38 |28.75 |1037.66 |256 |
| [convnext_small.fb_in22k_ft_in1k_384](https://huggingface.co/timm/convnext_small.fb_in22k_ft_in1k_384) |85.778|97.886|384 |50.22 |25.58 |63.37 |518.95 |256 |
| [convnextv2_large.fcmae_ft_in1k](https://huggingface.co/timm/convnextv2_large.fcmae_ft_in1k) |85.742|97.584|224 |197.96 |34.4 |43.13 |375.23 |256 |
| [convnext_small.in12k_ft_in1k](https://huggingface.co/timm/convnext_small.in12k_ft_in1k) |85.174|97.506|224 |50.22 |8.71 |21.56 |1474.31 |256 |
| [convnext_tiny.in12k_ft_in1k_384](https://huggingface.co/timm/convnext_tiny.in12k_ft_in1k_384) |85.118|97.608|384 |28.59 |13.14 |39.48 |856.76 |256 |
| [convnextv2_tiny.fcmae_ft_in22k_in1k_384](https://huggingface.co/timm/convnextv2_tiny.fcmae_ft_in22k_in1k_384) |85.112|97.63 |384 |28.64 |13.14 |39.48 |491.32 |256 |
| [convnextv2_base.fcmae_ft_in1k](https://huggingface.co/timm/convnextv2_base.fcmae_ft_in1k) |84.874|97.09 |224 |88.72 |15.38 |28.75 |625.33 |256 |
| [convnext_small.fb_in22k_ft_in1k](https://huggingface.co/timm/convnext_small.fb_in22k_ft_in1k) |84.562|97.394|224 |50.22 |8.71 |21.56 |1478.29 |256 |
| [convnext_large.fb_in1k](https://huggingface.co/timm/convnext_large.fb_in1k) |84.282|96.892|224 |197.77 |34.4 |43.13 |584.28 |256 |
| [convnext_tiny.in12k_ft_in1k](https://huggingface.co/timm/convnext_tiny.in12k_ft_in1k) |84.186|97.124|224 |28.59 |4.47 |13.44 |2433.7 |256 |
| [convnext_tiny.fb_in22k_ft_in1k_384](https://huggingface.co/timm/convnext_tiny.fb_in22k_ft_in1k_384) |84.084|97.14 |384 |28.59 |13.14 |39.48 |862.95 |256 |
| [convnextv2_tiny.fcmae_ft_in22k_in1k](https://huggingface.co/timm/convnextv2_tiny.fcmae_ft_in22k_in1k) |83.894|96.964|224 |28.64 |4.47 |13.44 |1452.72 |256 |
| [convnext_base.fb_in1k](https://huggingface.co/timm/convnext_base.fb_in1k) |83.82 |96.746|224 |88.59 |15.38 |28.75 |1054.0 |256 |
| [convnextv2_nano.fcmae_ft_in22k_in1k_384](https://huggingface.co/timm/convnextv2_nano.fcmae_ft_in22k_in1k_384) |83.37 |96.742|384 |15.62 |7.22 |24.61 |801.72 |256 |
| [convnext_small.fb_in1k](https://huggingface.co/timm/convnext_small.fb_in1k) |83.142|96.434|224 |50.22 |8.71 |21.56 |1464.0 |256 |
| [convnextv2_tiny.fcmae_ft_in1k](https://huggingface.co/timm/convnextv2_tiny.fcmae_ft_in1k) |82.92 |96.284|224 |28.64 |4.47 |13.44 |1425.62 |256 |
| [convnext_tiny.fb_in22k_ft_in1k](https://huggingface.co/timm/convnext_tiny.fb_in22k_ft_in1k) |82.898|96.616|224 |28.59 |4.47 |13.44 |2480.88 |256 |
| [convnext_nano.in12k_ft_in1k](https://huggingface.co/timm/convnext_nano.in12k_ft_in1k) |82.282|96.344|224 |15.59 |2.46 |8.37 |3926.52 |256 |
| [convnext_tiny_hnf.a2h_in1k](https://huggingface.co/timm/convnext_tiny_hnf.a2h_in1k) |82.216|95.852|224 |28.59 |4.47 |13.44 |2529.75 |256 |
| [convnext_tiny.fb_in1k](https://huggingface.co/timm/convnext_tiny.fb_in1k) |82.066|95.854|224 |28.59 |4.47 |13.44 |2346.26 |256 |
| [convnextv2_nano.fcmae_ft_in22k_in1k](https://huggingface.co/timm/convnextv2_nano.fcmae_ft_in22k_in1k) |82.03 |96.166|224 |15.62 |2.46 |8.37 |2300.18 |256 |
| [convnextv2_nano.fcmae_ft_in1k](https://huggingface.co/timm/convnextv2_nano.fcmae_ft_in1k) |81.83 |95.738|224 |15.62 |2.46 |8.37 |2321.48 |256 |
| [convnext_nano_ols.d1h_in1k](https://huggingface.co/timm/convnext_nano_ols.d1h_in1k) |80.866|95.246|224 |15.65 |2.65 |9.38 |3523.85 |256 |
| [convnext_nano.d1h_in1k](https://huggingface.co/timm/convnext_nano.d1h_in1k) |80.768|95.334|224 |15.59 |2.46 |8.37 |3915.58 |256 |
| [convnextv2_pico.fcmae_ft_in1k](https://huggingface.co/timm/convnextv2_pico.fcmae_ft_in1k) |80.304|95.072|224 |9.07 |1.37 |6.1 |3274.57 |256 |
| [convnext_pico.d1_in1k](https://huggingface.co/timm/convnext_pico.d1_in1k) |79.526|94.558|224 |9.05 |1.37 |6.1 |5686.88 |256 |
| [convnext_pico_ols.d1_in1k](https://huggingface.co/timm/convnext_pico_ols.d1_in1k) |79.522|94.692|224 |9.06 |1.43 |6.5 |5422.46 |256 |
| [convnextv2_femto.fcmae_ft_in1k](https://huggingface.co/timm/convnextv2_femto.fcmae_ft_in1k) |78.488|93.98 |224 |5.23 |0.79 |4.57 |4264.2 |256 |
| [convnext_femto_ols.d1_in1k](https://huggingface.co/timm/convnext_femto_ols.d1_in1k) |77.86 |93.83 |224 |5.23 |0.82 |4.87 |6910.6 |256 |
| [convnext_femto.d1_in1k](https://huggingface.co/timm/convnext_femto.d1_in1k) |77.454|93.68 |224 |5.22 |0.79 |4.57 |7189.92 |256 |
| [convnextv2_atto.fcmae_ft_in1k](https://huggingface.co/timm/convnextv2_atto.fcmae_ft_in1k) |76.664|93.044|224 |3.71 |0.55 |3.81 |4728.91 |256 |
| [convnext_atto_ols.a2_in1k](https://huggingface.co/timm/convnext_atto_ols.a2_in1k) |75.88 |92.846|224 |3.7 |0.58 |4.11 |7963.16 |256 |
| [convnext_atto.d2_in1k](https://huggingface.co/timm/convnext_atto.d2_in1k) |75.664|92.9 |224 |3.7 |0.55 |3.81 |8439.22 |256 |
## Citation
```bibtex
@article{Woo2023ConvNeXtV2,
title={ConvNeXt V2: Co-designing and Scaling ConvNets with Masked Autoencoders},
author={Sanghyun Woo, Shoubhik Debnath, Ronghang Hu, Xinlei Chen, Zhuang Liu, In So Kweon and Saining Xie},
year={2023},
journal={arXiv preprint arXiv:2301.00808},
}
```
```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.9360231757164001,
-0.41940730810165405,
-0.07310905307531357,
0.4988289475440979,
-0.4303644001483917,
-0.21355335414409637,
-0.17381955683231354,
-0.4840661585330963,
0.8828285336494446,
0.23642167448997498,
-0.6173801422119141,
-0.530001163482666,
-0.7220914959907532,
-0.05906425043940544,
0.10219674557447433,
0.9235468506813049,
-0.03447026386857033,
-0.13207951188087463,
0.2515442371368408,
-0.3939567506313324,
-0.2442154735326767,
-0.3729622960090637,
-0.8726153373718262,
-0.20999954640865326,
0.2406788468360901,
0.3376694917678833,
0.7888221740722656,
0.6252128481864929,
0.40344101190567017,
0.5495731830596924,
-0.23621995747089386,
0.1760297417640686,
-0.20609070360660553,
-0.3551737368106842,
0.5604353547096252,
-0.42429599165916443,
-0.9105618596076965,
0.2270272970199585,
0.8176833987236023,
0.5242246389389038,
0.060703765600919724,
0.24207772314548492,
0.36691251397132874,
0.4806478023529053,
0.03294676914811134,
-0.05309309437870979,
-0.10372516512870789,
0.1979542076587677,
-0.24447350203990936,
0.04239072650671005,
0.06338869035243988,
-0.6851972937583923,
0.3442021906375885,
-0.5969259738922119,
0.03337439149618149,
-0.0009440224384889007,
1.3831738233566284,
-0.0846400335431099,
-0.2396363466978073,
-0.007802264764904976,
0.13109177350997925,
0.7322723865509033,
-0.804738461971283,
0.30064940452575684,
0.440442830324173,
-0.10175478458404541,
-0.18280655145645142,
-0.690342128276825,
-0.628058671951294,
-0.035338062793016434,
-0.4063640236854553,
0.22362059354782104,
-0.3821411430835724,
-0.08046433329582214,
0.5673739910125732,
0.45596548914909363,
-0.5315643548965454,
-0.04613233730196953,
-0.3448730409145355,
-0.1348908394575119,
0.8184846639633179,
-0.10871025174856186,
0.6193118095397949,
-0.3569076657295227,
-0.6488218903541565,
-0.29559755325317383,
-0.21467509865760803,
0.4492341876029968,
0.20343215763568878,
-0.06299301981925964,
-1.0157560110092163,
0.5078191161155701,
0.105442114174366,
0.2660614252090454,
0.3848051130771637,
-0.1935001015663147,
0.7847830653190613,
-0.26602649688720703,
-0.5708805918693542,
-0.3140280842781067,
1.2271422147750854,
0.7112548351287842,
0.40815600752830505,
0.1416069120168686,
0.05018104240298271,
-0.08788333088159561,
-0.4926389157772064,
-1.0543543100357056,
-0.19475707411766052,
0.3933147192001343,
-0.5699611902236938,
-0.15063366293907166,
0.34908947348594666,
-0.8241261839866638,
0.11532769352197647,
-0.13173140585422516,
0.242283895611763,
-0.8105306029319763,
-0.4114319980144501,
-0.11406096816062927,
-0.3583715558052063,
0.42072322964668274,
0.29113829135894775,
-0.39542287588119507,
0.33107811212539673,
0.2969350516796112,
1.0174678564071655,
0.3059796094894409,
-0.13700591027736664,
-0.44015535712242126,
-0.1686871498823166,
-0.36257055401802063,
0.3491738438606262,
0.17807255685329437,
-0.14261950552463531,
-0.27351003885269165,
0.45147430896759033,
-0.1551910936832428,
-0.4413120746612549,
0.4038604497909546,
0.28128114342689514,
0.11171570420265198,
-0.38866451382637024,
-0.35976487398147583,
-0.2718238830566406,
0.3772953152656555,
-0.5160051584243774,
1.0937528610229492,
0.49913403391838074,
-1.0490866899490356,
0.3255004584789276,
-0.4809684157371521,
-0.07365315407514572,
-0.3106507360935211,
0.0676136463880539,
-0.8105613589286804,
-0.1220654770731926,
0.2698627710342407,
0.7443468570709229,
-0.1445140540599823,
-0.15247918665409088,
-0.3710266053676605,
-0.06423714011907578,
0.35658225417137146,
0.08757947385311127,
0.9786638617515564,
0.18241164088249207,
-0.5266855955123901,
0.0037574535235762596,
-0.6562696695327759,
0.3244234323501587,
0.4057264029979706,
-0.0070413267239928246,
-0.07286149263381958,
-0.8253651261329651,
0.045400239527225494,
0.5851674675941467,
0.18770387768745422,
-0.5267622470855713,
0.27840009331703186,
-0.25301945209503174,
0.41224098205566406,
0.6605417132377625,
-0.05407710745930672,
0.32456880807876587,
-0.5990791320800781,
0.5516805648803711,
0.10201100260019302,
0.2873508334159851,
-0.04662657156586647,
-0.40827056765556335,
-0.7943713665008545,
-0.6959814429283142,
0.22889307141304016,
0.4849136471748352,
-0.49024057388305664,
0.7558605074882507,
0.15283390879631042,
-0.6102360486984253,
-0.7774176001548767,
0.22880758345127106,
0.5388847589492798,
0.23635245859622955,
0.2245999425649643,
-0.38786935806274414,
-0.6927664875984192,
-0.9812077283859253,
-0.08308573067188263,
0.09089698642492294,
-0.06844264268875122,
0.6433922648429871,
0.3969358801841736,
-0.08936545252799988,
0.5788490176200867,
-0.4282870590686798,
-0.3141402006149292,
-0.12959614396095276,
-0.08517761528491974,
0.41914427280426025,
0.8113937377929688,
1.190922498703003,
-0.8820149898529053,
-0.950480580329895,
0.01468474231660366,
-1.147778034210205,
0.008334427140653133,
-0.04736590385437012,
-0.44111505150794983,
0.2722526490688324,
0.2752053141593933,
-0.9937777519226074,
0.6887343525886536,
0.38432547450065613,
-0.6240323781967163,
0.44559991359710693,
-0.2756900489330292,
0.3198859691619873,
-1.0135222673416138,
0.20813265442848206,
0.27532052993774414,
-0.33670860528945923,
-0.5504834651947021,
0.07382795214653015,
-0.09251932799816132,
0.16100427508354187,
-0.6673653721809387,
0.927983820438385,
-0.7196439504623413,
0.07287746667861938,
0.014351682737469673,
0.12621638178825378,
0.031502045691013336,
0.5352288484573364,
-0.029571533203125,
0.4780314862728119,
0.7986218929290771,
-0.30791500210762024,
0.45904481410980225,
0.5311716794967651,
-0.05062132701277733,
0.7706688046455383,
-0.6507273316383362,
0.14404508471488953,
0.11244812607765198,
0.4815369248390198,
-0.9460101127624512,
-0.44505029916763306,
0.6018038988113403,
-0.7827794551849365,
0.5131611824035645,
-0.2721678912639618,
-0.39632731676101685,
-0.8308107852935791,
-0.8917853236198425,
0.26723620295524597,
0.6235296726226807,
-0.6659416556358337,
0.1488528698682785,
0.31202054023742676,
0.07123672217130661,
-0.6062134504318237,
-0.6901009678840637,
-0.0678415298461914,
-0.4171343743801117,
-0.8821810483932495,
0.4054236114025116,
0.11215399205684662,
-0.1261432021856308,
-0.0015079798176884651,
-0.0273303110152483,
-0.04550767317414284,
-0.1645963191986084,
0.5363606810569763,
0.4119987189769745,
-0.2652724087238312,
-0.36136966943740845,
-0.28576964139938354,
-0.11690526455640793,
0.03164244815707207,
-0.15342803299427032,
0.5756230354309082,
-0.3195943236351013,
0.15241073071956635,
-1.0665123462677002,
0.22292400896549225,
0.6637396812438965,
-0.035234108567237854,
0.9246578216552734,
1.0732965469360352,
-0.4839044511318207,
0.12978358566761017,
-0.40782883763313293,
-0.17315919697284698,
-0.5307202935218811,
-0.09616594761610031,
-0.5320836305618286,
-0.676655113697052,
0.8293380737304688,
0.20951662957668304,
-0.09796153008937836,
0.7338747382164001,
0.3563668131828308,
-0.25242939591407776,
0.8818709254264832,
0.5245378017425537,
-0.08244208991527557,
0.5981106758117676,
-0.9512938261032104,
0.017955150455236435,
-0.8729354739189148,
-0.6411858201026917,
-0.10754688084125519,
-0.6013498902320862,
-0.7514855265617371,
-0.44339412450790405,
0.30835798382759094,
0.48389968276023865,
-0.13821274042129517,
0.684765636920929,
-0.6148133873939514,
-0.07235715538263321,
0.49827298521995544,
0.3303012549877167,
-0.28856101632118225,
-0.20110319554805756,
-0.12954460084438324,
-0.2367497682571411,
-0.5968870520591736,
-0.14500218629837036,
0.7154536247253418,
0.6860978603363037,
0.3865276575088501,
0.0018665783572942019,
0.5059024691581726,
-0.042699169367551804,
0.31175118684768677,
-0.5244771242141724,
0.7369200587272644,
-0.07722347229719162,
-0.5261697769165039,
-0.20293009281158447,
-0.4516738951206207,
-0.9930562376976013,
0.17841701209545135,
-0.3731025457382202,
-0.8460750579833984,
-0.09666408598423004,
0.21461275219917297,
-0.31375864148139954,
0.5582355856895447,
-0.6991996169090271,
0.7779335379600525,
-0.08559659123420715,
-0.5063600540161133,
0.10233668982982635,
-0.9223918914794922,
0.27389076352119446,
0.4194747507572174,
-0.07139484584331512,
-0.17372526228427887,
0.1500505805015564,
0.8486769795417786,
-0.8884828686714172,
0.5112783908843994,
-0.402389258146286,
0.05143413320183754,
0.574165403842926,
-0.055667828768491745,
0.4571167230606079,
0.16889138519763947,
0.004900221712887287,
0.05074220523238182,
0.1349915713071823,
-0.6527009010314941,
-0.4112815260887146,
0.6848360896110535,
-0.7092639803886414,
-0.38632863759994507,
-0.5605412125587463,
-0.28462132811546326,
0.18578624725341797,
-0.002210811711847782,
0.6757568120956421,
0.6050298810005188,
-0.12220238894224167,
0.19214631617069244,
0.5806266665458679,
-0.35374152660369873,
0.5373318195343018,
-0.16429755091667175,
-0.00816840585321188,
-0.5397593379020691,
0.8036882877349854,
0.0559966154396534,
0.13586141169071198,
0.04856368899345398,
0.06170415133237839,
-0.4283748269081116,
-0.16523031890392303,
-0.1751488894224167,
0.6745465993881226,
-0.2523562014102936,
-0.3876514434814453,
-0.6609802842140198,
-0.46453797817230225,
-0.6199546456336975,
-0.3381493091583252,
-0.427179753780365,
-0.29910361766815186,
-0.3680574595928192,
0.0821828693151474,
0.7334017157554626,
0.5511813163757324,
-0.40926459431648254,
0.4544251561164856,
-0.6426822543144226,
0.33650243282318115,
0.0937475711107254,
0.418487012386322,
-0.27916231751441956,
-0.6259925961494446,
0.009457282721996307,
0.032386019825935364,
-0.235858753323555,
-0.7755024433135986,
0.6475674510002136,
0.14918233454227448,
0.37844061851501465,
0.542965829372406,
-0.32057803869247437,
0.7976928353309631,
-0.09665907174348831,
0.5280984044075012,
0.5811290144920349,
-0.882331132888794,
0.4560409486293793,
-0.38051027059555054,
0.11691845953464508,
0.1906902939081192,
0.3597063720226288,
-0.5076983571052551,
-0.32263198494911194,
-0.9750241041183472,
-0.6172799468040466,
0.7360627055168152,
0.18535791337490082,
-0.010850001126527786,
0.07998093962669373,
0.6501119136810303,
-0.08456575125455856,
0.15032966434955597,
-0.5588588118553162,
-0.7671902775764465,
-0.2541898488998413,
-0.13684076070785522,
-0.09359008073806763,
-0.08473922312259674,
-0.03429604694247246,
-0.7107633352279663,
0.499895840883255,
-0.13615475594997406,
0.6207820177078247,
0.273834228515625,
-0.014843658544123173,
-0.041569627821445465,
-0.3240305781364441,
0.5831747055053711,
0.35306039452552795,
-0.29897475242614746,
-0.11847996711730957,
0.376479834318161,
-0.533158004283905,
0.04664551839232445,
0.28476670384407043,
0.06445208191871643,
0.2281201034784317,
0.3290484845638275,
0.6737580895423889,
0.27864426374435425,
-0.16343194246292114,
0.627277135848999,
-0.22309839725494385,
-0.41880229115486145,
-0.3326468765735626,
-0.0312890000641346,
0.15063615143299103,
0.45127731561660767,
0.21829654276371002,
0.06346829235553741,
-0.29748407006263733,
-0.6007909774780273,
0.5759857892990112,
0.7840017080307007,
-0.46544235944747925,
-0.5693406462669373,
0.6947467923164368,
-0.09092945605516434,
-0.10430610924959183,
0.5568101406097412,
-0.11756028234958649,
-0.7406023740768433,
1.051812767982483,
0.297839492559433,
0.6156902313232422,
-0.5706449747085571,
0.2573831379413605,
0.9141442775726318,
0.022749776020646095,
0.12631039321422577,
0.3245912790298462,
0.35317790508270264,
-0.43449997901916504,
0.06297775357961655,
-0.651134192943573,
0.18918025493621826,
0.5805076956748962,
-0.4957973062992096,
0.37238916754722595,
-0.7820476293563843,
-0.35051774978637695,
0.18084456026554108,
0.45277130603790283,
-0.8743783235549927,
0.3325654864311218,
0.08168679475784302,
1.144057035446167,
-0.8134385347366333,
0.9381133913993835,
0.7409303784370422,
-0.3604694604873657,
-0.9802480340003967,
-0.14518123865127563,
0.22998608648777008,
-0.8028166890144348,
0.39540308713912964,
0.26211652159690857,
0.24550077319145203,
-0.21837204694747925,
-0.611458420753479,
-0.5221695303916931,
1.2667316198349,
0.4673667550086975,
-0.18046873807907104,
0.11599101126194,
-0.33175599575042725,
0.41003939509391785,
-0.3016931414604187,
0.49410805106163025,
0.5741955041885376,
0.5393126606941223,
0.23795101046562195,
-0.9604670405387878,
0.3688998818397522,
-0.4247937500476837,
-0.15986798703670502,
0.30110371112823486,
-1.418353796005249,
1.055555820465088,
-0.36631110310554504,
-0.03658727928996086,
0.18186402320861816,
0.8593355417251587,
0.3718447983264923,
0.0779825821518898,
0.40689918398857117,
0.7200155258178711,
0.47581684589385986,
-0.20129278302192688,
1.0958187580108643,
0.010850236751139164,
0.43152114748954773,
0.313650518655777,
0.5437921285629272,
0.40118974447250366,
0.3715801239013672,
-0.425650417804718,
0.11660978198051453,
0.9041256308555603,
-0.20254406332969666,
0.15809230506420135,
0.20133818686008453,
-0.17353002727031708,
-0.1275079995393753,
-0.21303263306617737,
-0.6330837607383728,
0.4331071674823761,
0.17387285828590393,
-0.2871159017086029,
0.017653606832027435,
-0.06509225815534592,
0.5130825638771057,
-0.02472882717847824,
-0.16685280203819275,
0.47725340723991394,
0.27441638708114624,
-0.5882740020751953,
0.5596820116043091,
-0.05921345576643944,
1.0197803974151611,
-0.37576210498809814,
0.020049549639225006,
-0.3469482660293579,
0.31150686740875244,
-0.25785064697265625,
-1.188759207725525,
0.3301381766796112,
-0.15155763924121857,
0.18939951062202454,
-0.06600773334503174,
0.6532555818557739,
-0.4792127013206482,
-0.25213736295700073,
0.5303558111190796,
0.33895206451416016,
0.3832620680332184,
0.07321912795305252,
-1.185092568397522,
0.2402883768081665,
0.1353306919336319,
-0.5578808784484863,
0.45897480845451355,
0.4860267639160156,
0.2565242648124695,
0.6959919333457947,
0.4212067723274231,
0.17085355520248413,
0.10308649390935898,
-0.3581085205078125,
0.8149296045303345,
-0.6439915299415588,
-0.4839925765991211,
-0.8891573548316956,
0.45432087779045105,
-0.3465203046798706,
-0.6443555951118469,
0.8223158121109009,
0.4761272668838501,
0.5377722978591919,
0.10827942192554474,
0.5321979522705078,
-0.5044237375259399,
0.35897108912467957,
-0.45535603165626526,
0.742828905582428,
-0.8340047597885132,
-0.2808362543582916,
-0.4035956859588623,
-0.8270208835601807,
-0.28405866026878357,
0.7443532347679138,
0.073296457529068,
0.23427309095859528,
0.3635234832763672,
0.6322382092475891,
-0.0709499642252922,
-0.2811627984046936,
-0.05506431311368942,
0.28567612171173096,
0.055756766349077225,
0.8557310104370117,
0.5150264501571655,
-0.8216979503631592,
0.23217380046844482,
-0.6779290437698364,
-0.3245586156845093,
-0.3687601089477539,
-0.7105069160461426,
-1.131742000579834,
-0.8077049255371094,
-0.5389564633369446,
-0.700492799282074,
-0.3110080361366272,
1.1684424877166748,
0.9844209551811218,
-0.5757570862770081,
-0.15362174808979034,
0.324479341506958,
0.11720573902130127,
-0.2295435070991516,
-0.27247893810272217,
0.552889883518219,
0.3453957140445709,
-1.0383026599884033,
-0.27568289637565613,
0.11209069192409515,
0.5740789771080017,
0.3013803958892822,
-0.4083787798881531,
-0.2322712242603302,
-0.053087539970874786,
0.44302141666412354,
0.8504117727279663,
-0.7107791304588318,
-0.4863685965538025,
0.02497863583266735,
-0.2854217290878296,
0.2672152817249298,
0.32020696997642517,
-0.42351779341697693,
-0.07207700610160828,
0.5297725200653076,
0.12231522798538208,
0.7787399888038635,
0.11212271451950073,
0.2300824522972107,
-0.6637877225875854,
0.6969418525695801,
-0.05666276812553406,
0.35565969347953796,
0.3758966624736786,
-0.4147412180900574,
0.7500951290130615,
0.5046285390853882,
-0.46231916546821594,
-1.0102096796035767,
-0.2979734241962433,
-1.4618659019470215,
0.011421626433730125,
0.8299655914306641,
-0.18907786905765533,
-0.5351463556289673,
0.5294903516769409,
-0.3372212052345276,
0.5400562286376953,
-0.23496632277965546,
0.2892906069755554,
0.3658716380596161,
-0.31683942675590515,
-0.4968656897544861,
-0.5711337924003601,
0.7595949769020081,
0.3444344699382782,
-0.692169189453125,
-0.38456034660339355,
-0.02775844745337963,
0.5193166732788086,
0.21836133301258087,
0.8174665570259094,
-0.2067921757698059,
0.19416537880897522,
0.041269317269325256,
0.14475642144680023,
0.020788531750440598,
0.016345763579010963,
-0.20757241547107697,
-0.21318180859088898,
-0.3414246737957001,
-0.6242960095405579
] |
slauw87/bart_summarisation
|
slauw87
| 2021-09-20T05:27:36Z | 9,027 | 51 |
transformers
|
[
"transformers",
"pytorch",
"bart",
"text2text-generation",
"sagemaker",
"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:
- sagemaker
- bart
- summarization
license: apache-2.0
datasets:
- samsum
model-index:
- name: bart-large-cnn-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 ROGUE-1
type: rogue-1
value: 43.2111
- name: Validation ROGUE-2
type: rogue-2
value: 22.3519
- name: Validation ROGUE-L
type: rogue-l
value: 33.315
- name: Test ROGUE-1
type: rogue-1
value: 41.8283
- name: Test ROGUE-2
type: rogue-2
value: 20.9857
- name: Test ROGUE-L
type: rogue-l
value: 32.3602
widget:
- text: |
Sugi: I am tired of everything in my life.
Tommy: What? How happy you life is! I do envy you.
Sugi: You don't know that I have been over-protected by my mother these years. I am really about to leave the family and spread my wings.
Tommy: Maybe you are right.
---
## `bart-large-cnn-samsum`
This model was trained using Amazon SageMaker and the new Hugging Face Deep Learning container.
For more information look at:
- [🤗 Transformers Documentation: Amazon SageMaker](https://huggingface.co/transformers/sagemaker.html)
- [Example Notebooks](https://github.com/huggingface/notebooks/tree/master/sagemaker)
- [Amazon SageMaker documentation for Hugging Face](https://docs.aws.amazon.com/sagemaker/latest/dg/hugging-face.html)
- [Python SDK SageMaker documentation for Hugging Face](https://sagemaker.readthedocs.io/en/stable/frameworks/huggingface/index.html)
- [Deep Learning Container](https://github.com/aws/deep-learning-containers/blob/master/available_images.md#huggingface-training-containers)
## Hyperparameters
{
"dataset_name": "samsum",
"do_eval": true,
"do_predict": true,
"do_train": true,
"fp16": true,
"learning_rate": 5e-05,
"model_name_or_path": "facebook/bart-large-cnn",
"num_train_epochs": 3,
"output_dir": "/opt/ml/model",
"per_device_eval_batch_size": 4,
"per_device_train_batch_size": 4,
"predict_with_generate": true,
"seed": 7
}
## Usage
from transformers import pipeline
summarizer = pipeline("summarization", model="slauw87/bart-large-cnn-samsum")
conversation = '''Sugi: I am tired of everything in my life.
Tommy: What? How happy you life is! I do envy you.
Sugi: You don't know that I have been over-protected by my mother these years. I am really about to leave the family and spread my wings.
Tommy: Maybe you are right.
'''
nlp(conversation)
## Results
| key | value |
| --- | ----- |
| eval_rouge1 | 43.2111 |
| eval_rouge2 | 22.3519 |
| eval_rougeL | 33.3153 |
| eval_rougeLsum | 40.0527 |
| predict_rouge1 | 41.8283 |
| predict_rouge2 | 20.9857 |
| predict_rougeL | 32.3602 |
| predict_rougeLsum | 38.7316 |
|
[
-0.6281235814094543,
-0.7762616872787476,
0.10499836504459381,
0.10936597734689713,
-0.2688002288341522,
-0.0782606229186058,
-0.2428913116455078,
-0.18482151627540588,
0.39085841178894043,
0.5742453336715698,
-0.999840497970581,
-0.5643019676208496,
-0.8385153412818909,
-0.21215282380580902,
-0.02848717011511326,
1.3706945180892944,
0.062264613807201385,
0.2565978169441223,
0.015229891054332256,
-0.12860175967216492,
-0.02327600307762623,
-0.4721018075942993,
-0.9138069152832031,
-0.41900572180747986,
0.3251933455467224,
0.28020280599594116,
0.8402984738349915,
0.31856974959373474,
0.5081385970115662,
0.36291342973709106,
-0.36845093965530396,
-0.05137837305665016,
-0.59542316198349,
-0.13100898265838623,
0.1181289479136467,
-0.3121926188468933,
-0.5504563450813293,
0.04151260852813721,
0.5242138504981995,
0.5405920743942261,
-0.08654379099607468,
0.5012400150299072,
-0.0038457985501736403,
0.7333571910858154,
-0.2537446916103363,
0.430625855922699,
-0.459976464509964,
0.3136857748031616,
0.029299482703208923,
0.19869838654994965,
-0.13350024819374084,
-0.34652987122535706,
0.19399438798427582,
-0.41255468130111694,
0.2942483127117157,
-0.049186110496520996,
1.4075813293457031,
0.5052646994590759,
-0.4716203510761261,
0.06438086926937103,
-0.3593173921108246,
0.8867547512054443,
-0.8527520298957825,
0.12246432900428772,
0.5376643538475037,
0.580805242061615,
-0.2990988492965698,
-0.8395138382911682,
-0.5872889161109924,
-0.07298256456851959,
-0.22412109375,
0.16329221427440643,
-0.34045690298080444,
-0.09071231633424759,
0.42618557810783386,
0.45460060238838196,
-0.5768833756446838,
-0.05886846408247948,
-0.5522952079772949,
-0.10612121969461441,
0.6615694761276245,
-0.02196735516190529,
0.08218397945165634,
-0.18398629128932953,
-0.5825003385543823,
-0.35127562284469604,
-0.31937822699546814,
0.20761460065841675,
0.11215876042842865,
0.14046894013881683,
-0.45867466926574707,
0.5504293441772461,
-0.45893731713294983,
0.5956229567527771,
0.02824856899678707,
-0.1749296933412552,
0.6419435143470764,
0.002299393992871046,
-0.39307308197021484,
0.037339624017477036,
1.0825637578964233,
0.5722982883453369,
0.24670732021331787,
0.4229854345321655,
-0.09464115649461746,
-0.16119681298732758,
0.16960151493549347,
-1.1268424987792969,
-0.2717606723308563,
0.15841832756996155,
-0.6858450174331665,
-0.47117143869400024,
-0.10638725757598877,
-0.8168084621429443,
-0.2205008864402771,
-0.15377996861934662,
0.21438156068325043,
-0.412468820810318,
-0.16270075738430023,
0.06362204998731613,
-0.03435329720377922,
0.39001280069351196,
0.2245090752840042,
-0.9779341220855713,
0.22665347158908844,
0.6029096841812134,
0.8205323815345764,
0.3084450960159302,
-0.13984912633895874,
-0.434208482503891,
-0.15711119771003723,
-0.2367638200521469,
0.5275047421455383,
-0.1690845787525177,
-0.2137870043516159,
-0.12698954343795776,
0.3756994605064392,
0.0905492976307869,
-0.34424856305122375,
0.8439932465553284,
-0.2932721674442291,
0.4944605827331543,
-0.14678600430488586,
-0.4995458126068115,
-0.6382496356964111,
0.25265297293663025,
-0.5275830030441284,
0.9419229030609131,
0.44630661606788635,
-0.7643311023712158,
0.28092795610427856,
-0.6508254408836365,
-0.20190200209617615,
0.01016941387206316,
-0.019320130348205566,
-1.0408668518066406,
-0.15009889006614685,
0.31526657938957214,
1.0712031126022339,
-0.3501850366592407,
0.351275235414505,
-0.639536440372467,
-0.13209901750087738,
0.23203495144844055,
-0.2711569368839264,
1.2157539129257202,
0.17925052344799042,
-0.4328363537788391,
0.27615830302238464,
-0.79048091173172,
-0.11097262054681778,
0.5111536383628845,
-0.1913634091615677,
-0.009725742042064667,
-0.4549347460269928,
0.11872627586126328,
0.3632071316242218,
0.3824750483036041,
-0.5938118100166321,
0.37838637828826904,
-0.1310536116361618,
0.4549250900745392,
0.6056562066078186,
0.07939976453781128,
0.13440732657909393,
-0.47957560420036316,
0.5372330546379089,
0.0315839983522892,
0.1669299602508545,
-0.2803645431995392,
-0.674892008304596,
-0.8617932796478271,
-0.249968022108078,
0.1222454234957695,
0.35235458612442017,
-0.5253743529319763,
0.8427532315254211,
-0.314291387796402,
-0.7542257308959961,
-0.5960930585861206,
0.13334684073925018,
0.5387810468673706,
0.7130533456802368,
0.5104799866676331,
-0.3042947053909302,
-0.6686075329780579,
-1.0148162841796875,
0.20210592448711395,
-0.10099566727876663,
-0.03942456468939781,
0.352829247713089,
0.668950617313385,
-0.490104615688324,
0.605567216873169,
-0.6673934459686279,
-0.5273531079292297,
-0.2514409124851227,
0.18596701323986053,
0.30157971382141113,
0.6586913466453552,
0.5598211884498596,
-0.7180493474006653,
-0.3457114100456238,
-0.022274218499660492,
-0.8816671371459961,
0.17675858736038208,
-0.26322269439697266,
-0.387193500995636,
0.2903446853160858,
0.39266544580459595,
-0.8402525782585144,
0.45621299743652344,
0.7506704926490784,
-0.45066142082214355,
0.6359262466430664,
0.0034482371993362904,
-0.12318120896816254,
-1.3460489511489868,
0.02087852917611599,
0.2842261493206024,
-0.3435549736022949,
-0.379183292388916,
0.13545769453048706,
-0.1365649253129959,
-0.09306035935878754,
-0.4703275263309479,
0.5169408917427063,
-0.23903010785579681,
-0.12367202341556549,
-0.06343653798103333,
-0.13279156386852264,
0.007495488040149212,
0.8968836665153503,
0.055691298097372055,
0.5080273747444153,
0.6761872172355652,
-0.3930635452270508,
0.7283412218093872,
0.7460881471633911,
-0.43089815974235535,
0.5515982508659363,
-0.7732970118522644,
-0.14545471966266632,
-0.020167628303170204,
0.7513980269432068,
-0.911745548248291,
-0.39878299832344055,
0.5521547794342041,
-0.7224422693252563,
0.35005983710289,
-0.21958108246326447,
-0.308518648147583,
-0.6478210687637329,
-0.20728249847888947,
0.1471782773733139,
0.7630767226219177,
-0.6743783354759216,
0.4933943748474121,
0.44181591272354126,
-0.13624268770217896,
-0.7069733142852783,
-0.7845926284790039,
0.07525104284286499,
-0.391999214887619,
-0.5688564777374268,
0.31835249066352844,
-0.030755922198295593,
-0.020037930458784103,
0.05605854094028473,
0.1062779426574707,
-0.15447960793972015,
0.030071211978793144,
0.3808022141456604,
0.46302199363708496,
-0.4251610338687897,
-0.10798129439353943,
0.05507872253656387,
-0.32148849964141846,
0.21717937290668488,
-0.014322109520435333,
0.6705489158630371,
-0.6528720259666443,
-0.08750645071268082,
-0.7541811466217041,
-0.057018134742975235,
0.5405158996582031,
-0.04335707798600197,
0.9147118926048279,
1.0744363069534302,
-0.49306249618530273,
0.008249571546912193,
-0.5048272013664246,
-0.23536337912082672,
-0.494729608297348,
0.3418114483356476,
-0.3291313648223877,
-0.7838679552078247,
0.6304353475570679,
-0.16937272250652313,
-0.0012336275540292263,
0.7002960443496704,
0.7197740077972412,
-0.09284168481826782,
0.8954848051071167,
0.380239874124527,
-0.34628304839134216,
0.42157962918281555,
-0.7831685543060303,
-0.11682765185832977,
-1.0070770978927612,
-0.3294408917427063,
-0.16803628206253052,
-0.5529046058654785,
-0.45643627643585205,
-0.3562784492969513,
0.190776988863945,
0.08510580658912659,
-0.6745031476020813,
0.7110718488693237,
-0.6595252752304077,
0.2861637771129608,
0.8599832653999329,
0.27613386511802673,
0.050879161804914474,
-0.19309163093566895,
0.06235090643167496,
-0.043003033846616745,
-0.5083271861076355,
-0.4283468425273895,
0.956882655620575,
0.6519642472267151,
0.6426473259925842,
-0.13870854675769806,
0.701824963092804,
-0.11150230467319489,
0.25865429639816284,
-0.724324643611908,
0.6965137720108032,
-0.04717910289764404,
-0.6891460418701172,
-0.27080753445625305,
-0.6031054854393005,
-1.2699048519134521,
0.19307512044906616,
-0.44315305352211,
-0.6991443634033203,
-0.08087065815925598,
-0.14432968199253082,
-0.43681278824806213,
0.3603908121585846,
-0.4835300147533417,
1.1402522325515747,
-0.2247617095708847,
0.0237069521099329,
-0.1284850835800171,
-1.060135006904602,
0.7360426187515259,
0.07746277749538422,
-0.13227017223834991,
-0.28108540177345276,
0.1538350135087967,
0.6850484609603882,
-0.4149533808231354,
0.9465388059616089,
-0.12602651119232178,
0.1471097767353058,
0.3043977618217468,
-0.09569992125034332,
0.3129896819591522,
-0.06966426223516464,
0.09123758971691132,
0.5061234831809998,
-0.07339073717594147,
-0.5370258688926697,
-0.493399053812027,
0.7350665926933289,
-0.9900631308555603,
-0.4000758230686188,
-0.4755704402923584,
-0.3033126890659332,
0.11306971311569214,
0.344240665435791,
0.4545828104019165,
0.245963454246521,
-0.20671753585338593,
0.5908602476119995,
0.5121119022369385,
-0.39145538210868835,
0.5122168660163879,
0.09144270420074463,
-0.3449340760707855,
-0.5310045480728149,
0.788762629032135,
-0.16515786945819855,
0.12859967350959778,
0.20787882804870605,
0.40075796842575073,
-0.13767342269420624,
0.031561918556690216,
-0.7083397507667542,
0.414669930934906,
-0.42417773604393005,
-0.4148772358894348,
-0.6158514618873596,
-0.5822169780731201,
-0.4373057186603546,
-0.22303840517997742,
-0.5566242337226868,
-0.47218844294548035,
-0.43686404824256897,
-0.22129890322685242,
0.526147186756134,
0.4213516116142273,
0.2187267690896988,
0.5466260313987732,
-0.8179169297218323,
0.40923959016799927,
0.2722405791282654,
0.26835620403289795,
-0.04848700761795044,
-0.679141104221344,
-0.24661017954349518,
0.09542516618967056,
-0.6929404735565186,
-0.6524606943130493,
0.744520902633667,
0.14714506268501282,
0.4588943421840668,
0.7191857099533081,
0.08766806870698929,
0.6640231013298035,
-0.32418587803840637,
0.9081984758377075,
0.37492460012435913,
-0.7674718499183655,
0.5195391178131104,
-0.4930380582809448,
0.12515777349472046,
0.4592020809650421,
0.5651889443397522,
-0.5074253678321838,
-0.19540493190288544,
-1.1947635412216187,
-0.800896167755127,
0.7480916380882263,
0.23936524987220764,
0.12927718460559845,
0.3270118236541748,
0.19145120680332184,
-0.030169300734996796,
0.372981458902359,
-1.0178658962249756,
-0.5191935896873474,
-0.27678513526916504,
-0.2594797909259796,
-0.182942196726799,
-0.027787690982222557,
-0.3081684112548828,
-0.45304059982299805,
1.0838453769683838,
-0.05722137540578842,
0.4205210208892822,
-0.046350400894880295,
0.32483020424842834,
-0.13771115243434906,
-0.33235588669776917,
0.5474913716316223,
0.24104110896587372,
-0.2411506026983261,
-0.15133637189865112,
0.2625729441642761,
-0.31741225719451904,
-0.11183246970176697,
0.2844661474227905,
-0.004491619765758514,
0.11889882385730743,
0.38007184863090515,
1.1669365167617798,
0.23463451862335205,
-0.6098891496658325,
0.8622344732284546,
-0.21400262415409088,
-0.3280426859855652,
-0.7482118606567383,
0.054924376308918,
0.21260692179203033,
0.3593134880065918,
0.08779250085353851,
0.22917921841144562,
0.11143206059932709,
-0.48502230644226074,
0.3448854982852936,
0.5849941968917847,
-0.4154784381389618,
-0.12540367245674133,
0.814845085144043,
0.029403114691376686,
-0.3299790322780609,
0.7565919756889343,
-0.23884238302707672,
-0.7350844740867615,
0.8205434679985046,
0.43721866607666016,
1.0162458419799805,
-0.2679644823074341,
0.3794800043106079,
0.7491568922996521,
0.10696347057819366,
-0.11535860598087311,
0.06862520426511765,
-0.11592025309801102,
-0.7763087749481201,
-0.33777713775634766,
-0.6805864572525024,
-0.5005896091461182,
0.45973068475723267,
-0.9561430811882019,
0.610720694065094,
-0.6589137315750122,
-0.17933906614780426,
-0.024404458701610565,
0.17538383603096008,
-0.7821686863899231,
0.40811365842819214,
0.24000073969364166,
0.7407134175300598,
-0.8807905912399292,
0.838578999042511,
0.5612652897834778,
-0.493614137172699,
-0.8750894665718079,
-0.09174124151468277,
0.06879572570323944,
-1.159711241722107,
0.5146655440330505,
0.4258061349391937,
0.18707986176013947,
-0.13762103021144867,
-0.7273920774459839,
-0.872535765171051,
1.137116551399231,
0.2342817336320877,
-0.4003927707672119,
0.16963313519954681,
-0.25150543451309204,
0.5766258835792542,
-0.3701249361038208,
0.29126155376434326,
0.630723237991333,
0.35102859139442444,
0.3386346995830536,
-0.6999120712280273,
0.19193431735038757,
-0.40015578269958496,
-0.0440300777554512,
0.15407487750053406,
-1.0616493225097656,
0.8344953656196594,
-0.29472896456718445,
0.2170644998550415,
0.22837525606155396,
0.8612078428268433,
0.29529789090156555,
0.524520218372345,
0.45034563541412354,
0.9182360172271729,
0.6426171660423279,
-0.0270988829433918,
1.0127791166305542,
-0.28172796964645386,
0.6504408121109009,
1.1007742881774902,
0.32385510206222534,
0.7847528457641602,
0.11167347431182861,
-0.2554822564125061,
0.8196412920951843,
0.8335734009742737,
-0.3948604166507721,
0.29346412420272827,
0.12043171375989914,
-0.19383639097213745,
-0.09899838268756866,
0.06465387344360352,
-0.46851280331611633,
0.5093334317207336,
0.4568891227245331,
-0.6083097457885742,
-0.06032327935099602,
-0.06107352301478386,
0.39063388109207153,
-0.15300613641738892,
-0.14026384055614471,
0.7731221318244934,
0.2116771638393402,
-0.6168815493583679,
0.8912773728370667,
-0.05011117085814476,
0.5774223208427429,
-0.5984004139900208,
0.06762482970952988,
-0.03797619044780731,
0.11620379984378815,
-0.13903109729290009,
-0.7694500088691711,
0.2754552364349365,
-0.1958390474319458,
0.1609152853488922,
-0.2753106951713562,
0.5133528709411621,
-0.45151153206825256,
-0.7309610247612,
0.1834406554698944,
0.2668550908565521,
0.4409371316432953,
0.04419182240962982,
-1.2092885971069336,
0.0006050521624274552,
0.15886060893535614,
-0.7129558324813843,
0.3239986002445221,
0.424429714679718,
0.22093117237091064,
0.9932981729507446,
0.8244556784629822,
0.08401942253112793,
-0.2069610059261322,
-0.08316034078598022,
0.9746900200843811,
-0.6966078281402588,
-0.42442458868026733,
-0.7977436780929565,
0.6062071919441223,
-0.26809045672416687,
-0.74556964635849,
0.7029669284820557,
0.5094907879829407,
0.8997424840927124,
-0.157051220536232,
0.6088544130325317,
-0.0006074787816032767,
0.48992347717285156,
-0.36527350544929504,
0.605453372001648,
-0.6675509810447693,
-0.17699821293354034,
-0.45997822284698486,
-1.0210621356964111,
-0.44260984659194946,
1.1421960592269897,
-0.16177073121070862,
0.15852034091949463,
0.49152132868766785,
0.7425806522369385,
0.029440108686685562,
0.11654818803071976,
0.1557743400335312,
0.41468653082847595,
0.2202759087085724,
0.626196026802063,
0.4779447913169861,
-0.6131347417831421,
0.5088104009628296,
-0.6324023604393005,
-0.3075026571750641,
-0.4118789732456207,
-0.7758841514587402,
-1.0624449253082275,
-0.7699840068817139,
-0.4571206271648407,
-0.6641401052474976,
-0.3593602180480957,
1.0866775512695312,
0.9185485243797302,
-0.7285902500152588,
-0.0423869863152504,
-0.12854008376598358,
-0.049199558794498444,
-0.4090581238269806,
-0.22940415143966675,
0.47884947061538696,
-0.10316035896539688,
-0.9038853049278259,
-0.004296931438148022,
-0.1289558857679367,
0.3338514566421509,
-0.26330435276031494,
-0.10324320197105408,
0.1028461828827858,
-0.28229665756225586,
0.3598666489124298,
0.39753249287605286,
-0.6917356848716736,
-0.21374154090881348,
-0.2587626278400421,
-0.19584523141384125,
0.033810894936323166,
0.32580870389938354,
-0.7720811367034912,
0.28564590215682983,
0.14478152990341187,
0.7838454246520996,
0.8009592294692993,
0.2670856714248657,
0.37416914105415344,
-0.6164625287055969,
0.1280575841665268,
0.22081327438354492,
0.6949679851531982,
0.4740487039089203,
-0.6132166981697083,
0.6957835555076599,
0.19544973969459534,
-0.9695266485214233,
-0.6630247831344604,
0.19661766290664673,
-1.4222257137298584,
-0.18494819104671478,
1.1957632303237915,
-0.25699663162231445,
-0.39634764194488525,
0.3402801752090454,
-0.49696728587150574,
0.5251795649528503,
-0.5359987616539001,
0.8039687275886536,
0.5304865837097168,
-0.08168081194162369,
-0.2220032662153244,
-0.5992382764816284,
0.47005385160446167,
0.4033557176589966,
-0.4907919466495514,
-0.16718433797359467,
0.3229513168334961,
0.13300901651382446,
0.22820189595222473,
0.386496365070343,
-0.02624119631946087,
0.05485333502292633,
0.01522364653646946,
0.33350297808647156,
-0.08161759376525879,
-0.15016566216945648,
-0.5276333689689636,
-0.1992185115814209,
-0.461782842874527,
-0.46317529678344727
] |
MoritzLaurer/DeBERTa-v3-base-mnli-fever-docnli-ling-2c
|
MoritzLaurer
| 2023-04-05T20:40:03Z | 8,996 | 9 |
transformers
|
[
"transformers",
"pytorch",
"safetensors",
"deberta-v2",
"text-classification",
"zero-shot-classification",
"en",
"arxiv:2104.07179",
"arxiv:2106.09449",
"arxiv:2006.03654",
"arxiv:2111.09543",
"license:mit",
"endpoints_compatible",
"region:us"
] |
text-classification
| 2022-03-02T23:29:04Z |
---
language:
- en
license: mit
tags:
- text-classification
- zero-shot-classification
metrics:
- accuracy
widget:
- text: "I first thought that I liked the movie, but upon second thought it was actually disappointing. [SEP] The movie was good."
---
# DeBERTa-v3-base-mnli-fever-docnli-ling-2c
## Model description
This model was trained on 1.279.665 hypothesis-premise pairs from 8 NLI datasets: [MultiNLI](https://huggingface.co/datasets/multi_nli), [Fever-NLI](https://github.com/easonnie/combine-FEVER-NSMN/blob/master/other_resources/nli_fever.md), [LingNLI](https://arxiv.org/abs/2104.07179) and [DocNLI](https://arxiv.org/pdf/2106.09449.pdf) (which includes [ANLI](https://github.com/facebookresearch/anli), QNLI, DUC, CNN/DailyMail, Curation).
It is the only model in the model hub trained on 8 NLI datasets, including DocNLI with very long texts to learn long range reasoning. Note that the model was trained on binary NLI to predict either "entailment" or "not-entailment". The DocNLI merges the classes "neural" and "contradiction" into "not-entailment" to enable the inclusion of the DocNLI dataset.
The base model is [DeBERTa-v3-base from Microsoft](https://huggingface.co/microsoft/deberta-v3-base). The v3 variant of DeBERTa substantially outperforms previous versions of the model by including a different pre-training objective, see annex 11 of the original [DeBERTa paper](https://arxiv.org/pdf/2006.03654.pdf) as well as the [DeBERTa-V3 paper](https://arxiv.org/abs/2111.09543).
For highest performance (but less speed), I recommend using https://huggingface.co/MoritzLaurer/DeBERTa-v3-large-mnli-fever-anli-ling-wanli.
### 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-mnli-fever-docnli-ling-2c")
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)
```
#### NLI use-case
```python
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
device = torch.device("cuda") if torch.cuda.is_available() else torch.device("cpu")
model_name = "MoritzLaurer/DeBERTa-v3-base-mnli-fever-docnli-ling-2c"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSequenceClassification.from_pretrained(model_name)
premise = "I first thought that I liked the movie, but upon second thought it was actually disappointing."
hypothesis = "The movie was good."
input = tokenizer(premise, hypothesis, truncation=True, return_tensors="pt")
output = model(input["input_ids"].to(device)) # device = "cuda:0" or "cpu"
prediction = torch.softmax(output["logits"][0], -1).tolist()
label_names = ["entailment", "not_entailment"]
prediction = {name: round(float(pred) * 100, 1) for pred, name in zip(prediction, label_names)}
print(prediction)
```
### Training data
This model was trained on 1.279.665 hypothesis-premise pairs from 8 NLI datasets: [MultiNLI](https://huggingface.co/datasets/multi_nli), [Fever-NLI](https://github.com/easonnie/combine-FEVER-NSMN/blob/master/other_resources/nli_fever.md), [LingNLI](https://arxiv.org/abs/2104.07179) and [DocNLI](https://arxiv.org/pdf/2106.09449.pdf) (which includes [ANLI](https://github.com/facebookresearch/anli), QNLI, DUC, CNN/DailyMail, Curation).
### Training procedure
DeBERTa-v3-small-mnli-fever-docnli-ling-2c was trained using the Hugging Face trainer with the following hyperparameters.
```
training_args = TrainingArguments(
num_train_epochs=3, # total number of training epochs
learning_rate=2e-05,
per_device_train_batch_size=32, # batch size per device during training
per_device_eval_batch_size=32, # batch size for evaluation
warmup_ratio=0.1, # number of warmup steps for learning rate scheduler
weight_decay=0.06, # strength of weight decay
fp16=True # mixed precision training
)
```
### Eval results
The model was evaluated using the binary test sets for MultiNLI and ANLI and the binary dev set for Fever-NLI (two classes instead of three). The metric used is accuracy.
mnli-m-2c | mnli-mm-2c | fever-nli-2c | anli-all-2c | anli-r3-2c | lingnli-2c
---------|----------|---------|----------|----------|------
0.935 | 0.933 | 0.897 | 0.710 | 0.678 | 0.895
## Limitations and bias
Please consult the original DeBERTa paper and literature on different NLI datasets for potential biases.
## Citation
If you use this model, please cite: Laurer, Moritz, Wouter van Atteveldt, Andreu Salleras Casas, and Kasper Welbers. 2022. ‘Less Annotating, More Classifying – Addressing the Data Scarcity Issue of Supervised Machine Learning with Deep Transfer Learning and BERT - NLI’. Preprint, June. Open Science Framework. https://osf.io/74b8k.
### 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.30750539898872375,
-0.4827631413936615,
0.14903798699378967,
0.1881801038980484,
-0.2129557579755783,
-0.2346942126750946,
0.028418973088264465,
-0.4836268723011017,
0.3970457911491394,
0.17036807537078857,
-0.40810054540634155,
-0.5507882833480835,
-0.7067921757698059,
0.16925664246082306,
-0.1509481817483902,
1.0335922241210938,
0.0007158762309700251,
0.10606744885444641,
0.017635419964790344,
-0.15050169825553894,
-0.18381750583648682,
-0.6314780116081238,
-0.5553062558174133,
-0.527643620967865,
0.41278380155563354,
0.3997275233268738,
0.6243401169776917,
0.35353508591651917,
0.473224401473999,
0.21809427440166473,
-0.17314517498016357,
0.04322651028633118,
-0.34704774618148804,
-0.13042691349983215,
0.25141701102256775,
-0.4541563093662262,
-0.5088568329811096,
0.2168135941028595,
0.3967463970184326,
0.3204030394554138,
0.005034956615418196,
0.25811266899108887,
-0.15359772741794586,
0.6522820591926575,
-0.4933677613735199,
0.12796476483345032,
-0.5220171213150024,
0.23188117146492004,
-0.0015571961412206292,
0.1835595965385437,
-0.3528849184513092,
-0.11082760989665985,
0.3280475437641144,
-0.4688120186328888,
0.16420164704322815,
-0.18169750273227692,
1.2775932550430298,
0.27249810099601746,
-0.35520970821380615,
-0.048510342836380005,
-0.4344482123851776,
0.758145809173584,
-1.019115924835205,
0.20701327919960022,
0.24180926382541656,
-0.053912609815597534,
-0.021679816767573357,
-0.5000448226928711,
-0.7111063003540039,
-0.1320541352033615,
-0.07871716469526291,
0.2364698052406311,
-0.36568742990493774,
-0.2719268500804901,
0.45121097564697266,
0.1305374801158905,
-0.7496100068092346,
0.021521206945180893,
-0.6687811613082886,
-0.09064072370529175,
0.7067354321479797,
-0.0680176168680191,
0.12954099476337433,
-0.4082280993461609,
-0.4396635890007019,
-0.1738424003124237,
-0.42531687021255493,
0.14090369641780853,
0.06024082377552986,
0.04310934990644455,
-0.375628799200058,
0.25951966643333435,
-0.11450101435184479,
0.7551429271697998,
0.2888389527797699,
-0.2374015599489212,
0.9805786609649658,
-0.16659490764141083,
-0.4400385916233063,
0.17454853653907776,
0.9654424786567688,
0.46307387948036194,
0.15650822222232819,
0.05533294007182121,
0.09971441328525543,
-0.19272810220718384,
-0.1367163509130478,
-1.092261552810669,
-0.3187076449394226,
0.42225387692451477,
-0.38933759927749634,
-0.519009530544281,
0.1060451865196228,
-0.8399911522865295,
-0.2701588571071625,
-0.33884668350219727,
0.43393146991729736,
-0.6419923305511475,
-0.47005370259284973,
-0.08928897231817245,
-0.1756935566663742,
0.40768083930015564,
0.010695408098399639,
-0.7889342308044434,
0.05977705866098404,
0.24995416402816772,
0.8591335415840149,
-0.1338629275560379,
-0.3384395241737366,
-0.33165669441223145,
-0.07688691467046738,
-0.1853020042181015,
0.3521772623062134,
-0.24901007115840912,
-0.2655969262123108,
-0.2284191995859146,
0.10843825340270996,
-0.5536573529243469,
-0.5018084049224854,
0.42968806624412537,
-0.3555397689342499,
0.27832797169685364,
-0.12557189166545868,
-0.4279085099697113,
-0.39026302099227905,
0.2266530990600586,
-0.44739189743995667,
0.9621707797050476,
0.22564196586608887,
-1.1244391202926636,
0.18079011142253876,
-0.5076196789741516,
-0.24942511320114136,
-0.38312414288520813,
0.11817307770252228,
-0.7078922390937805,
-0.20887842774391174,
0.3684946596622467,
0.5484154224395752,
-0.2333213835954666,
0.5662853121757507,
-0.4581058621406555,
-0.2994183897972107,
0.30154839158058167,
-0.23956423997879028,
1.1067426204681396,
0.35010093450546265,
-0.63948655128479,
0.13840094208717346,
-0.9486270546913147,
-0.040088701993227005,
0.39217135310173035,
-0.054728228598833084,
-0.08955969661474228,
-0.4695846140384674,
0.0011888075387105346,
0.44046008586883545,
0.15702524781227112,
-0.441902756690979,
0.31276530027389526,
-0.6625697612762451,
0.5171738862991333,
0.3464866876602173,
-0.01815510168671608,
0.28821030259132385,
-0.4312129616737366,
0.26183685660362244,
0.4792812764644623,
0.3235377371311188,
0.06808752566576004,
-0.7758772969245911,
-0.9281337261199951,
-0.26531296968460083,
0.35548728704452515,
0.8763498663902283,
-0.6996306777000427,
0.4958917200565338,
-0.13778962194919586,
-0.9276081919670105,
-0.4931989908218384,
0.16075988113880157,
0.3381766378879547,
0.6881864666938782,
0.47726359963417053,
-0.0793737843632698,
-0.7553200721740723,
-0.9073220491409302,
0.19625790417194366,
-0.17115923762321472,
0.019431140273809433,
0.16896675527095795,
0.7623437643051147,
-0.4598608911037445,
0.8834136128425598,
-0.4260234236717224,
-0.4361962676048279,
-0.35005825757980347,
0.012666996568441391,
0.7810823917388916,
0.727180004119873,
0.8682688474655151,
-0.6984767913818359,
-0.44690561294555664,
-0.22489719092845917,
-0.9969350099563599,
0.04778386279940605,
0.03251345828175545,
-0.16296203434467316,
0.5622824430465698,
0.29173925518989563,
-0.5006664991378784,
0.43636155128479004,
0.49651676416397095,
-0.3056134283542633,
0.18125849962234497,
-0.16012318432331085,
0.1324983388185501,
-1.3010646104812622,
0.3334062099456787,
0.13354162871837616,
0.16424976289272308,
-0.9615554809570312,
-0.07819637656211853,
-0.005602625664323568,
-0.014500250108540058,
-0.6507262587547302,
0.4988393783569336,
-0.10977234691381454,
0.38406112790107727,
-0.10066848993301392,
-0.03242054209113121,
0.24991148710250854,
0.5654531121253967,
0.08245132118463516,
0.33116665482521057,
0.9488916397094727,
-0.5936993360519409,
0.3343278765678406,
0.22024859488010406,
0.015365833416581154,
0.08883713185787201,
-0.8386416435241699,
0.11216537654399872,
-0.09596460312604904,
0.27870041131973267,
-0.6576866507530212,
-0.23680077493190765,
0.6442287564277649,
-0.4634173810482025,
0.48482125997543335,
-0.08207429200410843,
-0.3017331659793854,
-0.5874691009521484,
-0.2931559681892395,
0.3736276626586914,
0.787966251373291,
-0.6209916472434998,
0.626926839351654,
0.227431982755661,
0.22702139616012573,
-0.8610175848007202,
-0.7073759436607361,
-0.3090634346008301,
-0.4221579432487488,
-0.7007574439048767,
0.4641385078430176,
0.009803974069654942,
-0.24440984427928925,
-0.04138612002134323,
0.07858677953481674,
-0.22710292041301727,
0.059473589062690735,
0.3712305426597595,
0.5601522922515869,
-0.14309892058372498,
-0.058795712888240814,
-0.023410916328430176,
0.04569750651717186,
-0.024010561406612396,
-0.26950639486312866,
0.49472498893737793,
-0.42722323536872864,
0.04828505963087082,
-0.5296140313148499,
0.10981684923171997,
0.5347301959991455,
-0.17229482531547546,
0.9056233763694763,
1.010084629058838,
-0.5047049522399902,
0.3797357976436615,
-0.5672274827957153,
-0.1535094529390335,
-0.37883123755455017,
0.17916852235794067,
-0.4027143120765686,
-0.41140609979629517,
0.5776899456977844,
0.3056274950504303,
-0.07252104580402374,
0.9325292110443115,
0.3647031784057617,
0.2910575568675995,
0.7637325525283813,
0.4423544406890869,
-0.2553251087665558,
0.08359203487634659,
-0.8209517598152161,
0.11424969881772995,
-0.7667388916015625,
-0.372921347618103,
-0.4514513909816742,
-0.10065636783838272,
-0.5262941718101501,
-0.44294217228889465,
0.363366961479187,
0.32263872027397156,
-0.3812386691570282,
0.3791206181049347,
-0.6189888715744019,
0.14646843075752258,
0.6786072850227356,
0.22513613104820251,
0.03824113309383392,
-0.09417717903852463,
-0.040670912712812424,
0.13190725445747375,
-0.8419414162635803,
-0.2827047109603882,
1.1303131580352783,
0.597074568271637,
0.4508154094219208,
0.04916796460747719,
0.9815905690193176,
-0.12666064500808716,
0.369546502828598,
-0.4904976189136505,
0.2737371027469635,
-0.25152841210365295,
-0.719282865524292,
-0.22275404632091522,
-0.4591049551963806,
-0.8835421204566956,
0.22525271773338318,
-0.3610153794288635,
-0.7881450653076172,
0.5850068926811218,
0.03748125210404396,
-0.4831870198249817,
0.38749659061431885,
-0.7754826545715332,
0.9197683930397034,
-0.0809859111905098,
-0.2643560767173767,
0.010432339273393154,
-0.7818640470504761,
0.5562981963157654,
-0.11894137412309647,
0.1815607100725174,
-0.3018340468406677,
0.3585464060306549,
0.9777075052261353,
-0.3297807574272156,
0.8567203879356384,
-0.38782578706741333,
0.09297098964452744,
0.4625896215438843,
-0.272538959980011,
0.12722353637218475,
0.2791403830051422,
-0.5611034631729126,
0.6816688179969788,
0.2857338786125183,
-0.4675399661064148,
-0.30933111906051636,
0.8324635624885559,
-1.044909954071045,
-0.6327812671661377,
-0.7933902740478516,
-0.270079642534256,
0.06067794933915138,
0.14270544052124023,
0.6264054179191589,
0.5908339023590088,
-0.031912319362163544,
-0.02321985922753811,
0.6780423521995544,
-0.36921393871307373,
0.4160088002681732,
0.27418434619903564,
-0.2704583406448364,
-0.44724443554878235,
0.8629890084266663,
0.0721522718667984,
0.10809753090143204,
0.14219890534877777,
0.20769351720809937,
-0.18001824617385864,
-0.395228773355484,
-0.6732960939407349,
0.3862926959991455,
-0.7083218097686768,
-0.3678075969219208,
-0.9825353622436523,
-0.47606346011161804,
-0.844077467918396,
0.05754486471414566,
-0.11793318390846252,
-0.2766541838645935,
-0.5689052939414978,
-0.006116854026913643,
0.5835915803909302,
0.5836682319641113,
-0.1962515264749527,
0.07013585418462753,
-0.7604994773864746,
0.15586915612220764,
0.1325424611568451,
0.09129717200994492,
-0.09310364723205566,
-0.8856950402259827,
-0.09156304597854614,
0.10965486615896225,
-0.41969892382621765,
-1.0162556171417236,
0.8017584681510925,
0.3353281319141388,
0.38385412096977234,
0.26708748936653137,
0.151895210146904,
0.5368677377700806,
-0.18763016164302826,
0.7669861912727356,
0.28184574842453003,
-0.970493733882904,
0.6990368962287903,
-0.1176019236445427,
0.38302043080329895,
0.4572910964488983,
0.6943102478981018,
-0.17580406367778778,
-0.35241246223449707,
-0.7786054015159607,
-0.906816840171814,
0.7847175598144531,
0.18004104495048523,
-0.11806980520486832,
0.06708349287509918,
0.35409682989120483,
-0.07519473135471344,
0.009645243175327778,
-0.7949613332748413,
-0.5889800190925598,
-0.4281642436981201,
-0.18055959045886993,
-0.19364774227142334,
-0.19887304306030273,
-0.14419056475162506,
-0.6725125312805176,
1.13160240650177,
-0.0654260665178299,
0.28277069330215454,
0.7685247659683228,
-0.0367414727807045,
-0.029099296778440475,
0.08143821358680725,
0.5597724318504333,
0.5694215297698975,
-0.4956386983394623,
-0.13107001781463623,
0.45559635758399963,
-0.33983033895492554,
0.08289701491594315,
0.473086953163147,
-0.32805758714675903,
0.2764100432395935,
0.33939313888549805,
1.1349918842315674,
-0.15931978821754456,
-0.4301024377346039,
0.5774417519569397,
-0.12687525153160095,
-0.38806772232055664,
-0.4698914885520935,
0.08024127036333084,
0.007863371632993221,
0.2511516809463501,
0.35929521918296814,
0.2961370646953583,
0.2606446146965027,
-0.4208846092224121,
0.30501142144203186,
0.15838946402072906,
-0.3879813253879547,
-0.2128160148859024,
0.6965016722679138,
0.12472666800022125,
0.10959336161613464,
0.7112327218055725,
-0.3390614688396454,
-0.5553444027900696,
0.8882847428321838,
0.45134443044662476,
0.6941864490509033,
-0.24489398300647736,
0.2980629801750183,
0.8791114687919617,
0.14892815053462982,
0.07743948698043823,
0.20736455917358398,
0.4833524525165558,
-0.6375687718391418,
-0.2743631601333618,
-0.7516411542892456,
-0.10771668702363968,
0.2806955873966217,
-0.6329430341720581,
0.4308600425720215,
-0.3223755955696106,
-0.21613599359989166,
0.24038442969322205,
0.033294010907411575,
-0.7907127141952515,
0.17040860652923584,
0.28598764538764954,
0.9302918910980225,
-0.9956296682357788,
1.1178898811340332,
0.5349966287612915,
-0.5170292854309082,
-1.002977967262268,
0.041726529598236084,
-0.07180259376764297,
-0.5932009816169739,
0.8536173105239868,
0.5408720374107361,
0.15874293446540833,
-0.1879647672176361,
-0.22938118875026703,
-1.008558988571167,
1.1349643468856812,
0.21215972304344177,
-0.5814927816390991,
-0.005625264719128609,
-0.14075638353824615,
0.5603885650634766,
-0.42911243438720703,
0.448994904756546,
0.6830306649208069,
0.3815157115459442,
0.29692554473876953,
-1.0043067932128906,
0.12581448256969452,
-0.4500371813774109,
-0.14716610312461853,
-0.03733918443322182,
-0.5588326454162598,
0.8816195130348206,
-0.6197777986526489,
0.1207757219672203,
-0.024225568398833275,
0.7660288214683533,
0.3072411119937897,
0.7110304832458496,
0.5472676157951355,
0.6211550235748291,
0.7568783760070801,
-0.14767096936702728,
0.9300992488861084,
-0.4483722448348999,
0.3565822243690491,
0.7692132592201233,
-0.2612908184528351,
0.8383955955505371,
0.33405768871307373,
-0.07051593065261841,
0.5501684546470642,
0.7274854779243469,
-0.3102371394634247,
0.3694709837436676,
0.2524232268333435,
-0.10006842762231827,
0.004510914906859398,
-0.028993746265769005,
-0.6716964244842529,
0.40348997712135315,
0.28245672583580017,
-0.45640093088150024,
0.119237519800663,
0.3289198577404022,
0.27890026569366455,
-0.291982501745224,
-0.09853042662143707,
0.6643427014350891,
0.030163956806063652,
-0.9081788063049316,
1.3061891794204712,
-0.09688517451286316,
0.8350713849067688,
-0.2678185999393463,
0.14334125816822052,
-0.10026562958955765,
0.2092548906803131,
-0.3853952884674072,
-0.43267008662223816,
0.39812204241752625,
-0.04623055085539818,
-0.22148250043392181,
0.21629780530929565,
0.5030238628387451,
-0.48321178555488586,
-0.6492461562156677,
0.3363769054412842,
0.35335633158683777,
0.29169103503227234,
0.14459161460399628,
-1.0030994415283203,
0.07651205360889435,
0.14604350924491882,
-0.33162960410118103,
0.2582865059375763,
0.16073839366436005,
0.2686768174171448,
0.5376510620117188,
0.5217204689979553,
-0.1490994095802307,
-0.14165839552879333,
0.054346103221178055,
0.8542840480804443,
-0.3949713706970215,
-0.04144912213087082,
-0.9040166735649109,
0.2818617522716522,
-0.17589810490608215,
-0.3652329742908478,
0.5980104207992554,
0.6613103151321411,
0.7600693106651306,
-0.2858927249908447,
0.625582754611969,
-0.3036273419857025,
0.33918297290802,
-0.5275156497955322,
0.5913906097412109,
-0.5349130034446716,
0.01501842774450779,
-0.262527197599411,
-0.6677108407020569,
-0.39242687821388245,
0.5877199172973633,
-0.32491758465766907,
-0.03303007036447525,
0.6105831265449524,
0.8487253785133362,
0.2173466980457306,
-0.054743241518735886,
0.044901978224515915,
0.2724364399909973,
0.21540668606758118,
0.7447100877761841,
0.3948754072189331,
-0.7716330885887146,
0.39767467975616455,
-0.8412144780158997,
-0.4032411277294159,
-0.19654929637908936,
-0.660506010055542,
-1.0856821537017822,
-0.5840855240821838,
-0.7070307731628418,
-0.8387802243232727,
0.12490522861480713,
1.2712109088897705,
0.7432494163513184,
-1.0695655345916748,
-0.0688619390130043,
0.07540209591388702,
-0.01852024719119072,
-0.2397981882095337,
-0.22157059609889984,
0.6021672487258911,
-0.20794804394245148,
-0.8609834313392639,
0.16329197585582733,
-0.06483025848865509,
0.31654179096221924,
-0.029544103890657425,
-0.10802283138036728,
-0.3707229495048523,
0.02060704305768013,
0.44837456941604614,
0.2721080183982849,
-0.7366260290145874,
0.04592784121632576,
0.20044952630996704,
-0.1983131617307663,
0.13124296069145203,
0.1978743076324463,
-0.6879754066467285,
0.215597003698349,
0.4536421298980713,
0.27652546763420105,
0.5224925875663757,
-0.28312885761260986,
0.2516941726207733,
-0.45324307680130005,
0.35697928071022034,
0.03728195279836655,
0.4840894043445587,
0.29903075098991394,
-0.3902426064014435,
0.6180643439292908,
0.31338781118392944,
-0.5476952195167542,
-0.7977858781814575,
-0.09788783639669418,
-1.1087570190429688,
-0.3200667202472687,
1.3559374809265137,
-0.19125205278396606,
-0.49274495244026184,
0.10715961456298828,
-0.2602122128009796,
0.45410391688346863,
-0.41853758692741394,
0.6410632133483887,
0.38690701127052307,
-0.15123620629310608,
0.04261745885014534,
-0.5319754481315613,
0.6485170722007751,
0.426817387342453,
-0.5564389824867249,
-0.25362128019332886,
0.04841546714305878,
0.36193031072616577,
0.47481074929237366,
0.6477228999137878,
-0.0768057256937027,
0.13977693021297455,
-0.2001926451921463,
0.16797932982444763,
-0.0770210549235344,
-0.1865694224834442,
-0.49864813685417175,
0.009446973912417889,
-0.06789753586053848,
-0.10257358849048615
] |
Lykon/absolute-realism-1.6525
|
Lykon
| 2023-08-27T16:05:48Z | 8,996 | 1 |
diffusers
|
[
"diffusers",
"stable-diffusion",
"stable-diffusion-diffusers",
"text-to-image",
"art",
"artistic",
"absolute-realism",
"en",
"license:creativeml-openrail-m",
"endpoints_compatible",
"diffusers:StableDiffusionPipeline",
"region:us"
] |
text-to-image
| 2023-08-27T16:05:47Z |
---
language:
- en
license: creativeml-openrail-m
tags:
- stable-diffusion
- stable-diffusion-diffusers
- text-to-image
- art
- artistic
- diffusers
- absolute-realism
duplicated_from: lykon-absolute-realism/absolute-realism-1.6525
---
# Absolute realism 1 6525
`lykon-absolute-realism/absolute-realism-1-6525` is a Stable Diffusion model that has been fine-tuned on [runwayml/stable-diffusion-v1-5](https://huggingface.co/runwayml/stable-diffusion-v1-5).
Please consider supporting me:
- on [Patreon](https://www.patreon.com/Lykon275)
- or [buy me a coffee](https://snipfeed.co/lykon)
## Diffusers
For more general information on how to run text-to-image models with 🧨 Diffusers, see [the docs](https://huggingface.co/docs/diffusers/using-diffusers/conditional_image_generation).
1. Installation
```
pip install diffusers transformers accelerate
```
2. Run
```py
from diffusers import AutoPipelineForText2Image, DEISMultistepScheduler
import torch
pipe = AutoPipelineForText2Image.from_pretrained('lykon-absolute-realism/absolute-realism-1-6525', torch_dtype=torch.float16, variant="fp16")
pipe.scheduler = DEISMultistepScheduler.from_config(pipe.scheduler.config)
pipe = pipe.to("cuda")
prompt = "portrait photo of muscular bearded guy in a worn mech suit, light bokeh, intricate, steel metal, elegant, sharp focus, soft lighting, vibrant colors"
generator = torch.manual_seed(33)
image = pipe(prompt, generator=generator, num_inference_steps=25).images[0]
image.save("./image.png")
```

|
[
-0.34658363461494446,
-0.7753050327301025,
0.5687291622161865,
0.3215600252151489,
-0.24068157374858856,
-0.08328229188919067,
-0.0978083536028862,
-0.3575817048549652,
0.22091639041900635,
0.3367260992527008,
-0.5459494590759277,
-0.374483197927475,
-0.7451745867729187,
0.021412091329693794,
-0.37660738825798035,
0.8576866388320923,
-0.1388392448425293,
-0.15942347049713135,
0.07216952741146088,
0.08982530236244202,
0.08604024350643158,
-0.16425679624080658,
-0.8954375982284546,
-0.18991532921791077,
0.5827556252479553,
0.0184432715177536,
0.8479030132293701,
0.6593492031097412,
0.4332667887210846,
0.43178310990333557,
-0.08735772967338562,
-0.09731756895780563,
-0.44742944836616516,
0.07761397212743759,
-0.1568642556667328,
-0.1482003778219223,
-0.26404038071632385,
-0.015764040872454643,
0.6538647413253784,
0.10575013607740402,
-0.3418034017086029,
0.03920768201351166,
-0.12924645841121674,
0.38239815831184387,
-0.4919678568840027,
-0.04486154392361641,
-0.23479072749614716,
0.03496656194329262,
-0.005163403227925301,
0.13182935118675232,
-0.2238243669271469,
-0.18507316708564758,
0.1255652755498886,
-0.9825642108917236,
0.5494673848152161,
-0.04769792780280113,
1.3213706016540527,
0.26277780532836914,
-0.4941624402999878,
-0.18409807980060577,
-0.8434237837791443,
0.7573460936546326,
-0.8222023844718933,
0.219550222158432,
0.14040660858154297,
0.34356844425201416,
-0.05331454798579216,
-1.5474491119384766,
-0.6489606499671936,
-0.10396579653024673,
-0.14352524280548096,
0.4833465814590454,
-0.24147929251194,
0.18197238445281982,
0.4107550382614136,
0.460584431886673,
-0.48062413930892944,
-0.10122603923082352,
-0.49410033226013184,
-0.3008294701576233,
0.5798544883728027,
0.09771174937486649,
0.24513423442840576,
0.0777318924665451,
-0.40562403202056885,
-0.20256748795509338,
-0.06016356125473976,
-0.005460181273519993,
0.38523727655410767,
-0.2883892357349396,
-0.41789066791534424,
0.6723204851150513,
-0.2548801600933075,
0.45560383796691895,
0.49342918395996094,
-0.28644898533821106,
0.10035740584135056,
-0.14803923666477203,
-0.27834954857826233,
-0.21353501081466675,
1.057289958000183,
0.43705540895462036,
0.24486376345157623,
0.11169798672199249,
-0.2157512605190277,
0.19759207963943481,
0.2370063066482544,
-1.3423570394515991,
-0.545630931854248,
0.4721432626247406,
-0.4390431046485901,
-0.6500328183174133,
-0.1488349735736847,
-0.6168931126594543,
-0.18588407337665558,
0.035400498658418655,
0.5348222255706787,
-0.3828236758708954,
-0.5648665428161621,
0.1374647617340088,
-0.14200478792190552,
0.1866540163755417,
0.47053083777427673,
-0.626918375492096,
0.14585188031196594,
0.3091222941875458,
1.0401798486709595,
0.18947315216064453,
-0.06121186539530754,
-0.021849865093827248,
0.06546815484762192,
-0.48799848556518555,
0.7941575646400452,
0.015860747545957565,
-0.3624620735645294,
0.12556546926498413,
0.3511970043182373,
0.10892537981271744,
-0.36020609736442566,
0.9404318928718567,
-0.47671687602996826,
0.29130685329437256,
0.05604821816086769,
-0.6951862573623657,
-0.01653357408940792,
0.06789989769458771,
-0.5584250688552856,
0.9867410659790039,
0.3917950689792633,
-0.9909154772758484,
0.39710700511932373,
-0.5663334131240845,
-0.19039368629455566,
-0.03052828274667263,
-0.036533474922180176,
-0.7074335217475891,
0.021915758028626442,
-0.17873311042785645,
0.49108073115348816,
0.15398554503917694,
0.17814460396766663,
-0.506266713142395,
-0.2862124443054199,
0.07506512105464935,
-0.4710984528064728,
0.8946806788444519,
0.2910909652709961,
-0.5215169191360474,
0.12068790197372437,
-0.6036682724952698,
0.029106497764587402,
0.20664404332637787,
-0.12920239567756653,
0.21897637844085693,
-0.32645753026008606,
0.4849298596382141,
0.4592435657978058,
0.2506310045719147,
-0.6896067261695862,
0.24928316473960876,
-0.3749147653579712,
0.19929289817810059,
0.8179579377174377,
0.03424318507313728,
0.4471084475517273,
-0.4528895318508148,
0.4752470552921295,
0.044371433556079865,
0.05043034628033638,
0.07725220173597336,
-0.694634735584259,
-0.8870601058006287,
-0.739180862903595,
0.017520185559988022,
0.48134660720825195,
-0.7270883321762085,
0.36523017287254333,
-0.1480998694896698,
-0.5072522163391113,
-0.24683617055416107,
-0.22813788056373596,
0.1806563287973404,
0.5795405507087708,
0.02348414435982704,
-0.27239611744880676,
-0.3791930079460144,
-0.8469043374061584,
-0.04669085144996643,
-0.04946853592991829,
-0.20864714682102203,
0.1520126461982727,
0.6005545258522034,
-0.19981488585472107,
0.6275883913040161,
-0.5321943163871765,
-0.2697403132915497,
-0.05520572513341904,
0.07668430358171463,
0.6674134135246277,
0.6098624467849731,
0.672080397605896,
-0.7085850834846497,
-0.8400413393974304,
-0.13239790499210358,
-0.8391780853271484,
0.1259438544511795,
-0.12591546773910522,
-0.3229139447212219,
0.18565057218074799,
0.3672291934490204,
-1.090376853942871,
0.726596474647522,
0.5249022245407104,
-0.698533296585083,
0.8349815011024475,
-0.6650886535644531,
0.26574400067329407,
-1.1389309167861938,
0.2008744776248932,
0.4321863651275635,
-0.6305170655250549,
-0.5847174525260925,
0.19089753925800323,
-0.02190205454826355,
-0.060704607516527176,
-0.6827028393745422,
0.9706416726112366,
-0.2837240993976593,
0.3655090034008026,
-0.20848703384399414,
-0.10434935986995697,
0.05548963323235512,
0.3630974292755127,
0.26758894324302673,
0.39415043592453003,
0.9149791598320007,
-0.5695465803146362,
0.6490209102630615,
0.3053373098373413,
-0.38783565163612366,
0.6862558722496033,
-0.9905591607093811,
0.10948441177606583,
-0.09890365600585938,
0.5071042776107788,
-1.100606083869934,
-0.5151854157447815,
0.6603923439979553,
-0.40731868147850037,
0.3541010022163391,
-0.3469712436199188,
-0.562219500541687,
-0.3580896556377411,
-0.23820246756076813,
0.5594450235366821,
0.9583808779716492,
-0.506776750087738,
0.5340456962585449,
-0.15513533353805542,
0.2978830933570862,
-0.5807244777679443,
-0.6773167848587036,
-0.024930180981755257,
-0.30747777223587036,
-0.7903158664703369,
0.4415825605392456,
-0.2413596361875534,
-0.3293306529521942,
0.045428816229104996,
-0.017689546570181847,
-0.20228281617164612,
-0.34278246760368347,
0.2248830795288086,
0.17981141805648804,
-0.1771860122680664,
-0.6337780356407166,
0.011604336090385914,
-0.21292060613632202,
0.11692317575216293,
-0.37462154030799866,
0.247052401304245,
-0.0035813404247164726,
-0.1637573540210724,
-1.0393633842468262,
0.07360316067934036,
0.6031060814857483,
0.5559816360473633,
0.9878836870193481,
1.0910320281982422,
-0.512076199054718,
0.012721545994281769,
-0.47049766778945923,
-0.26984426379203796,
-0.5997161865234375,
0.3769112229347229,
-0.4774959087371826,
-0.2879379391670227,
0.5334328413009644,
-0.02229219675064087,
0.18159504234790802,
0.6231459379196167,
0.7402128577232361,
-0.5976123213768005,
1.1060785055160522,
0.5037487149238586,
0.20587992668151855,
0.42028769850730896,
-0.9294983744621277,
0.07716788351535797,
-0.6216139793395996,
-0.22275125980377197,
-0.17494502663612366,
-0.3672018051147461,
-0.5814535021781921,
-0.4695526957511902,
0.44056448340415955,
0.23948244750499725,
-0.3994106948375702,
0.17602257430553436,
-0.4975646734237671,
0.382005512714386,
0.2889409065246582,
0.2767763137817383,
0.05325194075703621,
0.22036847472190857,
-0.15157008171081543,
-0.20323319733142853,
-0.6487320065498352,
-0.4771270751953125,
0.7375311255455017,
0.44890448451042175,
0.9071102738380432,
0.062942273914814,
0.5930725932121277,
0.22184814512729645,
0.32545021176338196,
-0.7897199988365173,
0.5675942897796631,
-0.06825806945562363,
-0.8809840083122253,
-0.04260466992855072,
-0.3056882619857788,
-0.8467498421669006,
0.05614875257015228,
-0.2773588001728058,
-0.5044675469398499,
0.07876212894916534,
0.3757748305797577,
-0.03846567124128342,
0.5232158303260803,
-0.4226148724555969,
0.8846198320388794,
-0.04230733588337898,
-0.7157737612724304,
-0.2606307566165924,
-0.5947233438491821,
0.33825966715812683,
0.23408722877502441,
0.24330058693885803,
-0.07256928086280823,
-0.24834513664245605,
0.498192697763443,
-0.30572935938835144,
0.779430091381073,
-0.3163065016269684,
-0.1751425713300705,
0.3558192849159241,
0.34708407521247864,
0.5269030928611755,
0.23770298063755035,
-0.1792987585067749,
0.12197134643793106,
0.1799827367067337,
-0.7608954906463623,
-0.5166631937026978,
0.8147937059402466,
-0.7727043032646179,
-0.21365858614444733,
-0.6912393569946289,
-0.3650340735912323,
0.38205286860466003,
0.23201297223567963,
0.944510281085968,
0.6347376704216003,
-0.11232146620750427,
-0.017782634124159813,
0.642507791519165,
-0.06723128259181976,
0.6425626277923584,
-0.0028036446310579777,
-0.35685479640960693,
-0.7192665338516235,
0.6507291793823242,
-0.0010393066331744194,
0.5814566016197205,
-0.07615820318460464,
0.33381301164627075,
-0.5392460823059082,
-0.30859726667404175,
-0.7034492492675781,
0.4351925551891327,
-0.7943880558013916,
-0.06611702591180801,
-0.49181947112083435,
-0.37803685665130615,
-0.19561414420604706,
-0.4906300902366638,
-0.40749862790107727,
-0.5440989136695862,
-0.5696203112602234,
0.2290630042552948,
0.6066604852676392,
0.6271923780441284,
-0.2014232873916626,
0.28589025139808655,
-0.3746066391468048,
0.5754368305206299,
0.16337868571281433,
0.3398565351963043,
-0.15952706336975098,
-1.0410735607147217,
-0.3076959550380707,
0.10233572870492935,
-0.45946717262268066,
-0.5448222756385803,
0.47595512866973877,
0.3185041844844818,
0.42556631565093994,
0.6306683421134949,
0.0854010060429573,
0.6806012392044067,
-0.42518243193626404,
0.8139076828956604,
0.3394089937210083,
-0.7093665599822998,
0.2837224006652832,
-0.673475444316864,
0.1383107602596283,
0.0998309850692749,
0.4070759415626526,
-0.3694046139717102,
-0.5770047307014465,
-1.1159405708312988,
-0.8219138979911804,
0.5291582942008972,
0.757728099822998,
0.2347949743270874,
0.24850904941558838,
0.667980432510376,
-0.18427495658397675,
-0.06658753752708435,
-0.9883063435554504,
-0.5242562890052795,
-0.505883514881134,
-0.3832598626613617,
0.0976494625210762,
-0.09732349216938019,
-0.2554052174091339,
-0.5355878472328186,
1.0626977682113647,
-0.11498034000396729,
0.43950778245925903,
0.5530239343643188,
0.2480064034461975,
-0.25042033195495605,
-0.3107909560203552,
0.698239266872406,
0.6585249900817871,
-0.3843977749347687,
0.09468161314725876,
0.01373183075338602,
-0.5172104239463806,
0.36573129892349243,
-0.21659445762634277,
-0.21280840039253235,
0.36061331629753113,
0.302552193403244,
0.7186108827590942,
-0.11558318138122559,
-0.27863219380378723,
0.576063334941864,
-0.20389556884765625,
-0.43677783012390137,
-0.6000983715057373,
0.035304274410009384,
0.17537452280521393,
0.30216795206069946,
0.13565358519554138,
0.48143449425697327,
0.039906688034534454,
-0.26813092827796936,
0.18573564291000366,
0.5391049981117249,
-0.23732849955558777,
-0.49883800745010376,
1.0076831579208374,
-0.028816016390919685,
-0.38665419816970825,
0.39309191703796387,
-0.3968919813632965,
-0.23830220103263855,
0.7726300954818726,
0.7241140604019165,
1.0071945190429688,
0.014685732312500477,
0.35244664549827576,
0.8740648627281189,
0.08580505847930908,
-0.44009721279144287,
0.176374152302742,
0.15244103968143463,
-0.6386162638664246,
-0.21119016408920288,
-0.47302767634391785,
-0.3660227358341217,
0.1110738143324852,
-0.4091131389141083,
0.6336142420768738,
-0.6435220241546631,
-0.2680593430995941,
-0.11309562623500824,
0.005265158135443926,
-0.5405153632164001,
0.4849775433540344,
0.08420907706022263,
0.9295774698257446,
-0.759475588798523,
0.877206563949585,
0.5910061597824097,
-0.3504970073699951,
-0.7771478891372681,
0.07582302391529083,
-0.1685309112071991,
-0.5448970198631287,
0.31431400775909424,
0.10061889886856079,
-0.07189259678125381,
0.2412468045949936,
-0.7203493714332581,
-0.7021939158439636,
1.1307151317596436,
0.5332030057907104,
-0.42594215273857117,
0.02918991632759571,
-0.2052459567785263,
0.6553857922554016,
-0.20671741664409637,
0.5125366449356079,
0.1896163374185562,
0.45657220482826233,
0.3775442838668823,
-0.7584181427955627,
-0.03792272135615349,
-0.19424739480018616,
0.18198570609092712,
-0.16103987395763397,
-0.794935405254364,
0.7859705686569214,
-0.41293105483055115,
-0.2492075264453888,
0.7035228610038757,
0.7827537655830383,
0.4504035711288452,
0.32682979106903076,
0.5109870433807373,
0.8380156755447388,
0.16304713487625122,
-0.06664814054965973,
1.1474566459655762,
-0.29077762365341187,
0.8674317598342896,
0.4507899880409241,
0.13821303844451904,
0.4335786998271942,
0.36901459097862244,
-0.23470553755760193,
0.6171254515647888,
0.822929859161377,
-0.08366826921701431,
0.600013256072998,
0.1395772099494934,
-0.617569625377655,
-0.11902742087841034,
0.09473499655723572,
-0.37129074335098267,
0.002890651812776923,
0.03582695126533508,
-0.2985197901725769,
-0.06975704431533813,
-0.10540531575679779,
0.1448848992586136,
-0.05293089523911476,
-0.14127881824970245,
0.4568096399307251,
0.036500461399555206,
-0.2333569973707199,
0.9234145879745483,
0.009120012633502483,
1.0597360134124756,
-0.6712802648544312,
-0.07027655839920044,
-0.027434350922703743,
0.4032087028026581,
-0.44869178533554077,
-1.0299615859985352,
0.2870329022407532,
-0.25858062505722046,
-0.06476037204265594,
-0.37248116731643677,
0.8609992265701294,
-0.4767696261405945,
-0.9849253296852112,
0.2413315325975418,
-0.035593125969171524,
0.3655245006084442,
0.12009792029857635,
-0.811160683631897,
0.1027136892080307,
-0.03978623449802399,
-0.4987128973007202,
0.07522707432508469,
0.4122134745121002,
0.5184016823768616,
0.6820068955421448,
0.5227919220924377,
0.24476872384548187,
0.045096591114997864,
-0.18637815117835999,
0.5711138844490051,
-0.3506578207015991,
-0.34609317779541016,
-0.8800169229507446,
0.8650508522987366,
-0.07408508658409119,
-0.34273791313171387,
0.6031563878059387,
0.6724477410316467,
0.5374023914337158,
-0.5299402475357056,
0.7223153114318848,
-0.36340203881263733,
0.12671087682247162,
-0.4477452337741852,
0.9502738118171692,
-0.6775534152984619,
-0.036330696195364,
-0.4099559783935547,
-0.8808466196060181,
-0.06585071235895157,
1.07826828956604,
0.299930602312088,
0.2610126733779907,
0.4936213195323944,
0.9818540811538696,
-0.4995515048503876,
-0.5046219825744629,
0.4200809597969055,
0.27517861127853394,
0.42501670122146606,
0.04890725389122963,
0.7817030549049377,
-0.8532276153564453,
0.4347894489765167,
-0.8569225072860718,
-0.1913333237171173,
0.12277687340974808,
-1.0491583347320557,
-0.6509948372840881,
-0.6444025635719299,
-0.7944183945655823,
-1.071085810661316,
-0.257099449634552,
0.6565749645233154,
1.098190426826477,
-0.5854500532150269,
-0.15787212550640106,
-0.35064783692359924,
-0.07832291722297668,
-0.043262679129838943,
-0.2967313230037689,
0.20161747932434082,
0.11239567399024963,
-0.9780007004737854,
-0.09220091253519058,
0.11798632889986038,
0.38249701261520386,
-0.21633198857307434,
-0.24114084243774414,
-0.08988045156002045,
0.0035966713912785053,
0.31895220279693604,
0.3671555817127228,
-0.8202557563781738,
-0.24063998460769653,
-0.17001070082187653,
-0.10775812715291977,
0.05207392945885658,
0.5213218331336975,
-0.7340731024742126,
0.24442972242832184,
0.3177715837955475,
0.011334018781781197,
0.8797962069511414,
-0.15261664986610413,
0.29271960258483887,
-0.581394612789154,
0.5289976596832275,
0.3251223564147949,
0.25996068120002747,
0.19244083762168884,
-0.5269404053688049,
0.4201177656650543,
0.6675497889518738,
-0.8864021301269531,
-0.7865972518920898,
0.17216524481773376,
-1.2586849927902222,
-0.019769420847296715,
1.2194699048995972,
-0.2644365429878235,
-0.10819461196660995,
0.0647677332162857,
-0.5325796604156494,
0.3106463551521301,
-0.29619094729423523,
0.6889280080795288,
0.5014761686325073,
-0.25393879413604736,
-0.31778207421302795,
-0.49262845516204834,
0.6156446933746338,
0.14801323413848877,
-0.6351326704025269,
-0.20655770599842072,
0.43189987540245056,
0.8645297288894653,
0.33552414178848267,
0.7630828619003296,
0.037459470331668854,
0.17616605758666992,
0.2198905348777771,
0.08022627234458923,
0.240822434425354,
0.03796796500682831,
-0.22042186558246613,
-0.1204146295785904,
-0.08093546330928802,
-0.2471642941236496
] |
Salesforce/blip2-opt-6.7b-coco
|
Salesforce
| 2023-09-13T08:47:26Z | 8,976 | 19 |
transformers
|
[
"transformers",
"pytorch",
"blip-2",
"visual-question-answering",
"vision",
"image-to-text",
"image-captioning",
"en",
"arxiv:2301.12597",
"license:mit",
"endpoints_compatible",
"has_space",
"region:us"
] |
image-to-text
| 2023-02-07T15:18:25Z |
---
language: en
license: mit
tags:
- vision
- image-to-text
- image-captioning
- visual-question-answering
pipeline_tag: image-to-text
---
# BLIP-2, OPT-6.7b, fine-tuned on COCO
BLIP-2 model, leveraging [OPT-6.7b](https://huggingface.co/facebook/opt-6.7b) (a large language model with 6.7 billion parameters).
It was introduced in the paper [BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Models](https://arxiv.org/abs/2301.12597) by Li et al. and first released in [this repository](https://github.com/salesforce/LAVIS/tree/main/projects/blip2).
Disclaimer: The team releasing BLIP-2 did not write a model card for this model so this model card has been written by the Hugging Face team.
## Model description
BLIP-2 consists of 3 models: a CLIP-like image encoder, a Querying Transformer (Q-Former) and a large language model.
The authors initialize the weights of the image encoder and large language model from pre-trained checkpoints and keep them frozen
while training the Querying Transformer, which is a BERT-like Transformer encoder that maps a set of "query tokens" to query embeddings,
which bridge the gap between the embedding space of the image encoder and the large language model.
The goal for the model is simply to predict the next text token, giving the query embeddings and the previous text.
<img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/model_doc/blip2_architecture.jpg"
alt="drawing" width="600"/>
This allows the model to be used for tasks like:
- image captioning
- visual question answering (VQA)
- chat-like conversations by feeding the image and the previous conversation as prompt to the model
## Direct Use and Downstream Use
You can use the raw model for conditional text generation given an image and optional text. See the [model hub](https://huggingface.co/models?search=Salesforce/blip) to look for
fine-tuned versions on a task that interests you.
## Bias, Risks, Limitations, and Ethical Considerations
BLIP2-OPT uses off-the-shelf OPT as the language model. It inherits the same risks and limitations as mentioned in Meta's model card.
> Like other large language models for which the diversity (or lack thereof) of training
> data induces downstream impact on the quality of our model, OPT-175B has limitations in terms
> of bias and safety. OPT-175B can also have quality issues in terms of generation diversity and
> hallucination. In general, OPT-175B is not immune from the plethora of issues that plague modern
> large language models.
>
BLIP2 is fine-tuned on image-text datasets (e.g. [LAION](https://laion.ai/blog/laion-400-open-dataset/) ) collected from the internet. As a result the model itself is potentially vulnerable to generating equivalently inappropriate content or replicating inherent biases in the underlying data.
BLIP2 has not been tested in real world applications. It should not be directly deployed in any applications. Researchers should first carefully assess the safety and fairness of the model in relation to the specific context they’re being deployed within.
### How to use
For code examples, we refer to the [documentation](https://huggingface.co/docs/transformers/main/en/model_doc/blip-2#transformers.Blip2ForConditionalGeneration.forward.example).
|
[
-0.39480796456336975,
-0.8079831600189209,
-0.0485791377723217,
0.603173553943634,
-0.31944993138313293,
-0.0400574617087841,
-0.3047427535057068,
-0.9509658217430115,
-0.0504339337348938,
0.6852236986160278,
-0.4091801047325134,
-0.10603771358728409,
-0.594390332698822,
-0.03215036168694496,
-0.38673025369644165,
1.0057824850082397,
0.1615765392780304,
-0.0457332506775856,
-0.21143245697021484,
0.09011008590459824,
-0.3847373127937317,
-0.288345605134964,
-0.6831215620040894,
-0.02575649879872799,
0.13498227298259735,
0.5286464691162109,
0.9711431264877319,
0.3762710988521576,
0.6231350898742676,
0.2306286096572876,
-0.34637513756752014,
0.05173686146736145,
-0.7518641352653503,
-0.17541401088237762,
-0.2059779018163681,
-0.6552944183349609,
-0.32906317710876465,
-0.06207840144634247,
0.5318765640258789,
0.6575232744216919,
0.10316543281078339,
0.15521159768104553,
-0.06946823745965958,
0.6044287085533142,
-0.4849807024002075,
0.14905457198619843,
-0.7595497965812683,
-0.15782050788402557,
-0.21182315051555634,
0.27455687522888184,
-0.614572286605835,
-0.1556480973958969,
0.180197075009346,
-0.38268527388572693,
0.10210621356964111,
0.32265278697013855,
1.3571521043777466,
0.3145628571510315,
-0.27070775628089905,
-0.3178498446941376,
-0.5446252226829529,
0.7533912658691406,
-0.6052954196929932,
0.5728184580802917,
0.43679916858673096,
0.3563024401664734,
-0.0443500392138958,
-0.6662492752075195,
-0.5627518892288208,
-0.2111353874206543,
-0.06882289052009583,
0.12803524732589722,
-0.1698346734046936,
0.10072660446166992,
0.3559799790382385,
0.3849622309207916,
-0.569235622882843,
0.3352823853492737,
-0.6428359746932983,
-0.37398597598075867,
0.5933133959770203,
-0.22758692502975464,
0.3330020308494568,
-0.4194253385066986,
-0.5431647300720215,
-0.016414524987339973,
-0.7830201387405396,
0.1235760822892189,
0.3235227167606354,
0.31248730421066284,
-0.515432596206665,
0.7998673319816589,
-0.01591372862458229,
0.6058124899864197,
0.13320380449295044,
-0.03599360212683678,
0.4358310103416443,
-0.3832973837852478,
-0.06837648153305054,
-0.18600845336914062,
0.9223446846008301,
0.5536906719207764,
0.3331547677516937,
-0.11584627628326416,
-0.27677005529403687,
0.01812184415757656,
0.19709503650665283,
-1.0448578596115112,
-0.10739253461360931,
0.35213223099708557,
-0.4967428743839264,
-0.18736222386360168,
-0.07865674793720245,
-0.9545067548751831,
-0.08666875958442688,
-0.047304507344961166,
0.13129429519176483,
-0.4866354465484619,
-0.3670538663864136,
-0.006849238183349371,
-0.1357797235250473,
0.2810126543045044,
0.1701269894838333,
-0.9680860638618469,
0.19266164302825928,
0.6683974862098694,
0.875067949295044,
-0.17796456813812256,
-0.23960652947425842,
-0.2500229775905609,
0.047449640929698944,
-0.4347113370895386,
0.6243279576301575,
-0.42052143812179565,
-0.2030647248029709,
0.33744168281555176,
0.17025406658649445,
0.22514081001281738,
-0.5845634937286377,
0.34360387921333313,
-0.45514795184135437,
0.25508591532707214,
-0.30302780866622925,
-0.5109553933143616,
-0.16359835863113403,
-0.06074363738298416,
-0.6447826027870178,
1.132285714149475,
0.3503776788711548,
-0.7487709522247314,
0.579990804195404,
-0.45834872126579285,
-0.4369793236255646,
0.19772852957248688,
0.03283879533410072,
-0.6312942504882812,
0.0474894717335701,
0.044364865869283676,
0.2601158320903778,
-0.4405944049358368,
0.2992248833179474,
-0.42395344376564026,
-0.2674834132194519,
0.05212639272212982,
-0.07878480106592178,
0.914591372013092,
0.15944449603557587,
-0.48855218291282654,
-0.14676570892333984,
-0.4111385643482208,
-0.25779420137405396,
0.21511371433734894,
-0.25545641779899597,
-0.11009177565574646,
-0.11819355934858322,
0.42410746216773987,
0.3908495008945465,
0.42658311128616333,
-0.5805245041847229,
0.11871977150440216,
-0.6284514665603638,
0.4097729027271271,
0.31592148542404175,
-0.1405773013830185,
0.5720440149307251,
-0.11400022357702255,
0.48288825154304504,
0.18170014023780823,
0.3638015687465668,
-0.3375401198863983,
-0.7542991042137146,
-0.8523505926132202,
-0.19934724271297455,
0.3935329020023346,
0.6928585767745972,
-0.723841667175293,
0.4951571822166443,
-0.1815757155418396,
-0.5608338117599487,
-0.6580734252929688,
0.250618577003479,
0.6877410411834717,
0.2962054908275604,
0.38984501361846924,
-0.17263352870941162,
-0.565178394317627,
-1.0895113945007324,
0.15892565250396729,
-0.299299955368042,
0.14895130693912506,
0.37926366925239563,
0.5071300268173218,
-0.3912169337272644,
0.9751947522163391,
-0.3157574236392975,
-0.16639408469200134,
-0.463525652885437,
-0.11585217714309692,
-0.095541812479496,
0.5695141553878784,
0.9157236814498901,
-1.0032731294631958,
-0.34392645955085754,
-0.1244988664984703,
-0.643390417098999,
-0.11223079264163971,
-0.12591667473316193,
-0.3352532684803009,
0.6696649193763733,
0.5483724474906921,
-0.9194748997688293,
0.31959307193756104,
0.7888146042823792,
-0.2504812777042389,
0.4253975749015808,
0.22829218208789825,
-0.25504931807518005,
-1.1269272565841675,
0.2742774486541748,
0.17005503177642822,
-0.30668479204177856,
-0.500142514705658,
0.11471229046583176,
0.19563579559326172,
-0.2300356924533844,
-0.5571213364601135,
0.785243809223175,
-0.41087013483047485,
-0.2760452330112457,
-0.1513540893793106,
-0.0024509199429303408,
0.06409221887588501,
0.3517049252986908,
0.14776711165905,
0.8424400091171265,
0.7144521474838257,
-0.4737289845943451,
0.14412641525268555,
0.5556463003158569,
-0.28700533509254456,
0.30088484287261963,
-0.8037317991256714,
0.09084125608205795,
-0.14741337299346924,
0.26329493522644043,
-1.0100709199905396,
-0.24332046508789062,
0.26071590185165405,
-0.5729135870933533,
0.5100366473197937,
-0.14760500192642212,
-0.6484851837158203,
-0.7823928594589233,
-0.22194914519786835,
0.3365632891654968,
0.7297219634056091,
-0.5939190983772278,
0.33149683475494385,
0.5531045198440552,
-0.20031599700450897,
-0.5697888135910034,
-0.9970368146896362,
0.14075271785259247,
0.007265074178576469,
-0.6994320154190063,
0.4240727722644806,
-0.10896354168653488,
0.13806825876235962,
0.001120528089813888,
0.3117920160293579,
-0.024200504645705223,
-0.13883104920387268,
0.3159167766571045,
0.19096063077449799,
-0.060748469084501266,
0.05136745050549507,
0.32441946864128113,
0.004912732169032097,
-0.10983207821846008,
-0.0828334242105484,
0.7064221501350403,
0.03849150985479355,
0.020840303972363472,
-0.4571398198604584,
0.3388133943080902,
0.5768144726753235,
-0.3267822861671448,
0.7570992708206177,
0.6075234413146973,
-0.49764734506607056,
-0.17322281002998352,
-0.6469889879226685,
-0.1490885466337204,
-0.5125976800918579,
0.5704006552696228,
-0.26737698912620544,
-0.8685729503631592,
0.5071695446968079,
0.08778957277536392,
0.16275176405906677,
0.2633286714553833,
0.824871301651001,
0.09999829530715942,
0.9604064226150513,
0.7531552314758301,
-0.12542155385017395,
0.591473400592804,
-0.3144819438457489,
0.20837722718715668,
-0.7449780702590942,
-0.4276883900165558,
-0.34536537528038025,
-0.03760133311152458,
-0.6446018815040588,
-0.43536990880966187,
-0.0030427472665905952,
0.36120444536209106,
-0.17134277522563934,
0.4392559826374054,
-0.38911765813827515,
0.15679854154586792,
0.5668892860412598,
0.0597243495285511,
-0.16954860091209412,
-0.003060121089220047,
0.015944363549351692,
0.052937332540750504,
-0.643275260925293,
-0.4245229959487915,
0.9068425893783569,
0.7148245573043823,
0.6317137479782104,
0.09172942489385605,
0.3992409110069275,
-0.10909686982631683,
0.3025001287460327,
-0.859830379486084,
0.5276124477386475,
-0.3320249319076538,
-0.9433661699295044,
-0.17991039156913757,
-0.35697057843208313,
-0.8282994627952576,
0.009385264478623867,
-0.2139657735824585,
-0.7581700086593628,
0.08951114118099213,
0.45833373069763184,
-0.02477872557938099,
0.04693835601210594,
-0.8281298875808716,
0.9306706786155701,
-0.35034844279289246,
-0.40976953506469727,
0.03435928374528885,
-0.7407402992248535,
0.4578607976436615,
-0.06926696747541428,
0.05310811847448349,
0.021446414291858673,
-0.040306299924850464,
0.5752996802330017,
-0.33206629753112793,
0.9485270380973816,
-0.2501392066478729,
0.02445940487086773,
0.4628428518772125,
0.042922958731651306,
0.3168129026889801,
-0.0008930557523854077,
-0.11279935389757156,
0.3793250322341919,
-0.11892189830541611,
-0.4785642623901367,
-0.37738192081451416,
0.3191084861755371,
-0.754011332988739,
-0.3874954283237457,
-0.05225932225584984,
-0.4127025604248047,
-0.14716652035713196,
0.36861589550971985,
0.6251193881034851,
0.36088648438453674,
-0.06189480423927307,
0.2981376349925995,
0.33575475215911865,
-0.6357707381248474,
0.40816453099250793,
0.26714634895324707,
-0.5076503157615662,
-0.38595297932624817,
0.785217821598053,
-0.07004798948764801,
0.4911702573299408,
0.36447516083717346,
0.06443335115909576,
-0.5763177275657654,
-0.4378364384174347,
-0.6095972061157227,
0.5402753353118896,
-0.5286465287208557,
-0.4301052391529083,
-0.654230535030365,
-0.19371411204338074,
-0.5566668510437012,
-0.07402070611715317,
-0.6704462170600891,
-0.2438078075647354,
-0.3717127740383148,
-0.07661393284797668,
0.4058679938316345,
0.45754823088645935,
0.043682314455509186,
0.4066714942455292,
-0.5668580532073975,
0.3565964698791504,
0.0791899636387825,
0.529761552810669,
-0.1399071216583252,
-0.492841899394989,
-0.18311476707458496,
0.33374732732772827,
-0.23863103985786438,
-0.7657716274261475,
0.2420574575662613,
0.322293758392334,
0.3831137716770172,
0.454800009727478,
-0.22373272478580475,
0.4575250744819641,
-0.5609898567199707,
0.8632725477218628,
0.2721855640411377,
-0.9586414694786072,
0.6829636096954346,
-0.35167914628982544,
0.16931495070457458,
0.6225404143333435,
0.5295905470848083,
-0.361415833234787,
-0.5268840193748474,
-0.4702962338924408,
-0.8581605553627014,
0.6806443333625793,
0.24316318333148956,
0.3827344477176666,
-0.1263798177242279,
0.5376952290534973,
0.00339587708003819,
0.35502681136131287,
-0.8197638988494873,
-0.21083875000476837,
-0.42063379287719727,
-0.13618813455104828,
-0.10877258330583572,
-0.5889104604721069,
0.2205614596605301,
-0.18896622955799103,
0.43275150656700134,
-0.09115295112133026,
0.4270645081996918,
-0.04805188998579979,
-0.2506396472454071,
-0.2943125069141388,
-0.31643956899642944,
0.4667578339576721,
0.46168869733810425,
-0.1908540427684784,
-0.20217265188694,
-0.07356741279363632,
-0.41624268889427185,
-0.38632699847221375,
0.15602268278598785,
-0.37362223863601685,
-0.04201813414692879,
0.3333360552787781,
1.1320409774780273,
0.22194510698318481,
-0.8322820067405701,
0.7517479658126831,
0.23421043157577515,
-0.12987728416919708,
-0.2073226124048233,
-0.0567810982465744,
0.023544225841760635,
0.01707814447581768,
0.2165290117263794,
-0.0966375470161438,
0.20936203002929688,
-0.66954106092453,
0.4047413766384125,
0.5229189395904541,
-0.3977501690387726,
-0.44679391384124756,
0.6973255276679993,
0.3265402913093567,
-0.35829928517341614,
0.6327782273292542,
-0.5124951601028442,
-0.7480709552764893,
0.6523483395576477,
0.8808659911155701,
0.4765344560146332,
-0.3283308744430542,
0.3795831799507141,
0.46561381220817566,
0.5664050579071045,
-0.11695651710033417,
0.3527063727378845,
0.32987117767333984,
-0.8078523278236389,
-0.3495138883590698,
-0.6834505796432495,
-0.40710437297821045,
0.16128233075141907,
-0.6134852170944214,
0.6146560311317444,
-0.47620898485183716,
-0.23417414724826813,
0.03078315407037735,
-0.09031009674072266,
-0.7249332070350647,
0.31362712383270264,
0.2809368669986725,
1.0035972595214844,
-0.9696590304374695,
0.46098488569259644,
0.8030695915222168,
-0.6054237484931946,
-0.7716020345687866,
-0.043323542922735214,
-0.07382167875766754,
-0.7887945771217346,
0.5104658007621765,
0.4792037308216095,
0.3687867522239685,
-0.1649193912744522,
-0.7471370100975037,
-0.8976151943206787,
0.8122833371162415,
0.4391337037086487,
-0.641377329826355,
-0.059009138494729996,
0.22758907079696655,
0.666980504989624,
-0.2737893760204315,
0.2994626760482788,
0.38600537180900574,
0.3523389399051666,
0.36600691080093384,
-1.155167579650879,
0.18866533041000366,
-0.2494606077671051,
0.18689699470996857,
0.10520033538341522,
-1.02690589427948,
0.7245323061943054,
-0.3087570369243622,
-0.1300632208585739,
0.19866402447223663,
0.6039455533027649,
0.2539709806442261,
0.07478301227092743,
0.44053131341934204,
0.5125100612640381,
0.5257096290588379,
-0.06626373529434204,
1.2064262628555298,
-0.4223268926143646,
0.46326351165771484,
0.7972093820571899,
-0.14614835381507874,
0.9167859554290771,
0.290485143661499,
-0.03131984919309616,
0.3162200450897217,
0.7403752207756042,
-0.3351709842681885,
0.4404154419898987,
-0.04100942239165306,
0.3278443217277527,
-0.07633058726787567,
-0.2641746401786804,
-0.33357614278793335,
0.7397949695587158,
0.502189576625824,
-0.3540174067020416,
0.12704119086265564,
0.05804991349577904,
0.30009377002716064,
-0.28717780113220215,
-0.09301866590976715,
0.6645881533622742,
0.07090093195438385,
-0.8981714844703674,
0.6094053983688354,
-0.06413856893777847,
0.7786896228790283,
-0.26367416977882385,
0.08615554124116898,
-0.25169843435287476,
-0.01214174460619688,
-0.2065017819404602,
-0.7706429362297058,
0.3543696105480194,
-0.08438725769519806,
0.022743774577975273,
0.025430290028452873,
0.6332790851593018,
-0.5309837460517883,
-0.8135719299316406,
0.4895930886268616,
0.22325420379638672,
0.12580247223377228,
0.12260682135820389,
-1.0298978090286255,
0.35624656081199646,
-0.04063926637172699,
-0.29869329929351807,
0.03780527040362358,
0.3487260937690735,
-0.005272987764328718,
0.7672075033187866,
0.5450621843338013,
0.12371119856834412,
0.046224117279052734,
0.21694828569889069,
0.9434287548065186,
-0.40145549178123474,
-0.5358322262763977,
-0.4875584840774536,
0.6122779846191406,
-0.18207961320877075,
-0.4571046531200409,
0.48196983337402344,
0.7953186631202698,
0.762474775314331,
0.05614202097058296,
0.6726421117782593,
-0.20780067145824432,
0.49078819155693054,
-0.5350921750068665,
0.6010544300079346,
-0.7916895151138306,
-0.07383669167757034,
-0.5119039416313171,
-1.0252904891967773,
-0.33784574270248413,
0.5799645185470581,
-0.21129465103149414,
0.30647513270378113,
0.5826613903045654,
0.9515461921691895,
-0.040859952569007874,
-0.16967236995697021,
0.05601271614432335,
0.3690091669559479,
0.3674353063106537,
0.3886890113353729,
0.6504761576652527,
-0.4528632164001465,
0.5558602213859558,
-0.358252614736557,
-0.416875958442688,
-0.4078458845615387,
-0.6642884612083435,
-1.1403062343597412,
-0.6863715648651123,
-0.3429560363292694,
-0.4160318970680237,
0.11066868156194687,
0.662032425403595,
0.9373025298118591,
-0.700351357460022,
-0.09419281035661697,
-0.12334812432527542,
-0.0764252245426178,
0.21560002863407135,
-0.2435627430677414,
0.14786331355571747,
-0.34372255206108093,
-0.8217780590057373,
-0.08272398263216019,
0.2927047610282898,
0.1867019534111023,
-0.30004552006721497,
0.09584515541791916,
-0.05467432737350464,
-0.050859805196523666,
0.6675716042518616,
0.2826276123523712,
-0.6889994740486145,
-0.3862625062465668,
0.0100089181214571,
-0.11522263288497925,
-0.03327922150492668,
0.4411936104297638,
-0.42638882994651794,
0.3415187895298004,
0.31106334924697876,
0.5491007566452026,
0.5939680337905884,
0.08409552276134491,
0.4855203628540039,
-0.6394166946411133,
0.6526692509651184,
0.16008631885051727,
0.38246846199035645,
0.6080999970436096,
-0.4549470543861389,
0.34307146072387695,
0.023204678669571877,
-0.46777573227882385,
-0.9041251540184021,
0.39843034744262695,
-1.205223560333252,
-0.23680943250656128,
1.5861172676086426,
0.05646538361907005,
-0.2009814977645874,
0.07030818611383438,
-0.28820183873176575,
0.16828954219818115,
-0.46343880891799927,
0.6579649448394775,
0.42795631289482117,
0.23490090668201447,
-0.5041333436965942,
-0.4548615515232086,
0.6328620910644531,
0.38010865449905396,
-0.7698624134063721,
-0.07478684186935425,
0.39047789573669434,
0.22573041915893555,
0.2437790036201477,
0.46417999267578125,
-0.16039960086345673,
0.3031057119369507,
-0.03298085182905197,
0.1764761209487915,
0.06964081525802612,
-0.4169693887233734,
-0.0823395624756813,
-0.10372908413410187,
0.10443434119224548,
-0.06250498443841934
] |
Yntec/epiCRealismVAE
|
Yntec
| 2023-10-20T22:24:31Z | 8,955 | 3 |
diffusers
|
[
"diffusers",
"Photorealistic",
"Analog",
"Portrait",
"stable-diffusion",
"stable-diffusion-diffusers",
"text-to-image",
"epinikion",
"license:creativeml-openrail-m",
"endpoints_compatible",
"has_space",
"diffusers:StableDiffusionPipeline",
"region:us"
] |
text-to-image
| 2023-08-16T18:26:44Z |
---
license: creativeml-openrail-m
library_name: diffusers
pipeline_tag: text-to-image
tags:
- Photorealistic
- Analog
- Portrait
- stable-diffusion
- stable-diffusion-diffusers
- diffusers
- text-to-image
- epinikion
---
# Epic Realism VAE
This model with the MoistV2VAE baked in.
Samples and prompt:

(Click for larger)

photo very cute princess with curly ponytail wearing choker who would marry me. fashion skirt.
Original pages:
https://civitai.com/models/25694?modelVersionId=30761
https://huggingface.co/Yntec/Dreamscapes_n_Dragonfire_v2/resolve/main/MoistMixV2.vae.pt
|
[
-0.16319040954113007,
-0.8104557991027832,
0.13398194313049316,
0.362155944108963,
-0.18087992072105408,
-0.16157835721969604,
0.4302574098110199,
-0.1831223964691162,
0.6202029585838318,
1.0351283550262451,
-0.686052680015564,
-0.30082669854164124,
-0.3770642578601837,
-0.3391677737236023,
-0.4663398563861847,
0.3606420159339905,
0.08307226002216339,
-0.08831595629453659,
-0.29990893602371216,
0.36451825499534607,
-0.3163377046585083,
-0.32097333669662476,
-0.424887090921402,
-0.02609023079276085,
0.3242376446723938,
0.8140636682510376,
0.7683554887771606,
0.45747023820877075,
0.20246633887290955,
0.31138214468955994,
-0.22486378252506256,
-0.02392035536468029,
-0.7489311099052429,
0.2469632625579834,
-0.10641315579414368,
-0.541208803653717,
-0.5898893475532532,
0.2324974536895752,
0.42097756266593933,
0.05165987089276314,
-0.6343238353729248,
0.12577514350414276,
-0.025139328092336655,
0.6400956511497498,
-0.7675791382789612,
-0.09693979471921921,
-0.2883329689502716,
0.0562608428299427,
-0.2077111005783081,
-0.021451665088534355,
-0.21095971763134003,
-0.2758748233318329,
0.21543429791927338,
-0.8317488431930542,
0.19697056710720062,
-0.16750648617744446,
1.3640309572219849,
-0.18539908528327942,
-0.8706784844398499,
0.13600455224514008,
-1.0558302402496338,
0.4330444931983948,
-0.67238849401474,
0.6067729592323303,
0.28563401103019714,
0.7118597030639648,
-0.5126351714134216,
-1.4884896278381348,
-0.6889603137969971,
0.10720714181661606,
0.1419399231672287,
0.409169465303421,
-0.37094011902809143,
-0.35039350390434265,
0.3497178554534912,
0.3295014500617981,
-0.7331221699714661,
-0.02501038648188114,
-0.3764021396636963,
0.3164907991886139,
0.554175078868866,
0.11113640666007996,
0.5839982628822327,
-0.08153989166021347,
-0.5826750993728638,
-0.2441137582063675,
-0.62323397397995,
0.26139214634895325,
0.269043505191803,
-0.32573017477989197,
-0.36652252078056335,
0.8131314516067505,
0.18924349546432495,
0.4663013517856598,
0.26089468598365784,
-0.3950963318347931,
-0.12646295130252838,
-0.11822298914194107,
-0.43504422903060913,
-0.2882249355316162,
0.6167647838592529,
0.8192083239555359,
0.34260356426239014,
0.3246017098426819,
0.08430203795433044,
-0.28411176800727844,
0.4578540027141571,
-1.6666936874389648,
-0.33078137040138245,
0.10804082453250885,
-0.47336092591285706,
-0.6863126754760742,
0.09065596014261246,
-0.9607594013214111,
-0.06865404546260834,
-0.09853412955999374,
0.17954511940479279,
-0.33998262882232666,
-0.6204667687416077,
0.2835632860660553,
-0.16336458921432495,
0.38614481687545776,
0.12452773749828339,
-0.973932683467865,
0.18596313893795013,
0.5072680115699768,
0.6886020302772522,
0.8350533843040466,
0.34959134459495544,
0.052428748458623886,
0.2500363886356354,
-0.732364296913147,
0.8632458448410034,
-0.37768658995628357,
-0.6443327069282532,
-0.2315988391637802,
0.22192929685115814,
0.04458395019173622,
-0.7214298248291016,
1.2617158889770508,
-0.6262803077697754,
0.05523062124848366,
-0.4917410612106323,
-0.5558881759643555,
-0.38966724276542664,
-0.22188757359981537,
-0.5864176154136658,
0.6103523969650269,
0.2599184811115265,
-0.9201834797859192,
0.4326462149620056,
0.013698618859052658,
0.2632182836532593,
0.24249789118766785,
-0.2127796709537506,
-0.7618175148963928,
0.04516620934009552,
0.06719968467950821,
0.6007528305053711,
-0.5111069083213806,
-0.0577482245862484,
-0.8798050284385681,
-0.19139310717582703,
0.2267032414674759,
-0.12480173259973526,
0.557012677192688,
0.2309715300798416,
-0.528705894947052,
-0.15682590007781982,
-0.756966769695282,
0.2765680253505707,
0.5997630953788757,
0.36527320742607117,
-0.3718496263027191,
-0.011079579591751099,
0.6390928626060486,
0.43307048082351685,
-0.0902838259935379,
-0.3207605481147766,
0.4956628978252411,
-0.5282874703407288,
0.4058561325073242,
0.464773952960968,
0.5007144212722778,
0.1912006288766861,
-0.6365205645561218,
0.7895734906196594,
-0.08048335462808609,
0.23052167892456055,
0.38829514384269714,
-0.2430979162454605,
-0.9041327238082886,
-0.6952926516532898,
0.5192668437957764,
0.5445283651351929,
-0.7244466543197632,
0.511832058429718,
0.025410490110516548,
-1.2674775123596191,
-0.41193631291389465,
-0.3660278916358948,
0.17208893597126007,
0.4714093804359436,
-0.21950939297676086,
-0.44018298387527466,
-0.6557751297950745,
-1.4701391458511353,
-0.07644020766019821,
-0.2655884921550751,
-0.4971485733985901,
0.42697855830192566,
0.4434986412525177,
-0.18616746366024017,
0.7408135533332825,
-0.6509825587272644,
-0.01152657251805067,
0.029830655083060265,
-0.001004188321530819,
0.48504066467285156,
0.6557009816169739,
1.2007596492767334,
-1.212903380393982,
-0.44987839460372925,
-0.11561831086874008,
-0.8971632719039917,
-0.00793716311454773,
0.035022616386413574,
-0.2888757884502411,
-0.5901195406913757,
0.14279021322727203,
-0.5103150606155396,
0.6377806663513184,
0.2271893471479416,
-0.8377196192741394,
1.0910073518753052,
-0.36154481768608093,
1.0128560066223145,
-1.2923083305358887,
0.031528230756521225,
0.3873596787452698,
-0.02056018076837063,
-0.6559048295021057,
0.7587851881980896,
0.16090598702430725,
-0.04382377490401268,
-0.8740664720535278,
0.8028207421302795,
-0.43112337589263916,
0.38605985045433044,
-0.34031248092651367,
-0.27139076590538025,
0.26695021986961365,
-0.1475863754749298,
0.07542027533054352,
0.6461858153343201,
0.7496820688247681,
-0.4385823905467987,
0.7139994502067566,
0.4573790431022644,
-0.31385430693626404,
0.9477335810661316,
-1.1405367851257324,
0.00936184637248516,
0.07076707482337952,
0.21916311979293823,
-0.6507663130760193,
-0.9492141008377075,
0.19836615025997162,
-0.6376524567604065,
0.0636305958032608,
-0.4327417016029358,
-1.0502580404281616,
-0.3840240240097046,
-0.4013236463069916,
0.38608863949775696,
0.9507467150688171,
-0.5759380459785461,
0.4535413682460785,
0.2522259056568146,
0.01854570209980011,
-0.10514792799949646,
-0.7646195888519287,
0.05888279899954796,
-0.6492577195167542,
-1.2480432987213135,
0.7161043882369995,
-0.19657495617866516,
-0.4197370409965515,
-0.13583077490329742,
-0.026380129158496857,
-0.777421772480011,
-0.2345852255821228,
0.5381073951721191,
0.5326163172721863,
-0.41209524869918823,
-0.629950225353241,
0.21823835372924805,
0.2287539392709732,
0.10954254120588303,
-0.019536836072802544,
0.20513272285461426,
-0.2781362533569336,
-0.24825000762939453,
-0.8193667531013489,
0.3839150667190552,
1.1592262983322144,
-0.0462091863155365,
1.07915461063385,
0.3540137708187103,
-0.9478180408477783,
-0.1296759396791458,
-0.6859456896781921,
-0.16778427362442017,
-0.49082672595977783,
0.04882315546274185,
-0.5360771417617798,
-0.46705034375190735,
0.5701615810394287,
0.07386163622140884,
-0.43609580397605896,
0.602956235408783,
0.5668327808380127,
-0.09169361740350723,
1.030497431755066,
0.5677330493927002,
0.2858840227127075,
-0.10881928354501724,
-0.6431113481521606,
0.1796584278345108,
-0.5694137215614319,
-0.5039514303207397,
-0.2876080870628357,
-0.1747628152370453,
-0.6663254499435425,
-0.6743636727333069,
0.6581395268440247,
0.9813874959945679,
-0.4495941698551178,
0.7552917003631592,
-0.3815612196922302,
0.5060529708862305,
0.21642640233039856,
0.4972667992115021,
-0.08586487919092178,
-0.08267508447170258,
-0.036249883472919464,
-0.9081098437309265,
-0.5530939102172852,
-0.416837602853775,
0.19247564673423767,
0.359280526638031,
0.6516492962837219,
0.4104861617088318,
0.47026339173316956,
-0.16925549507141113,
-0.4555889070034027,
-0.6674858331680298,
0.5247637629508972,
0.004104877822101116,
-0.7228753566741943,
0.24245472252368927,
-0.13366761803627014,
-0.6795138120651245,
0.22109344601631165,
-0.469051718711853,
-0.5213803052902222,
0.36420223116874695,
0.13087601959705353,
-0.48615753650665283,
0.45175984501838684,
-0.6633113622665405,
1.0292354822158813,
0.03892432525753975,
-0.6654071807861328,
-0.1267813891172409,
-0.4099329113960266,
0.7399188876152039,
0.2845650911331177,
-0.009830539114773273,
0.09407152235507965,
-0.18582862615585327,
0.5662410259246826,
-0.4284623861312866,
0.569291889667511,
0.1771487444639206,
0.2030790150165558,
0.3981575071811676,
0.375040203332901,
0.5151011347770691,
0.3764800429344177,
-0.13481488823890686,
-0.48128074407577515,
0.09072117507457733,
-0.6604254245758057,
-0.8266422748565674,
1.0747120380401611,
-0.575731098651886,
-0.14914029836654663,
-0.7605834007263184,
0.040965646505355835,
0.11432304233312607,
-0.11149650812149048,
0.7045318484306335,
0.7212059497833252,
-0.4817022979259491,
0.25411146879196167,
0.9693062901496887,
0.019728269428014755,
0.21272049844264984,
0.5508449077606201,
-0.3488856554031372,
-0.3432891368865967,
0.7849667072296143,
0.4278991222381592,
0.22540469467639923,
0.07120271027088165,
0.3506418764591217,
-0.08131912350654602,
-0.09368465095758438,
-0.44560685753822327,
0.44337496161460876,
-0.4499022960662842,
-0.07169142365455627,
-0.47472986578941345,
-0.8214715123176575,
-0.5205357074737549,
-0.6616805195808411,
-0.43496477603912354,
-0.259731262922287,
-0.6962801218032837,
-0.1615055650472641,
0.790688157081604,
0.7798833847045898,
-0.02275569550693035,
0.02056022360920906,
-0.7518312931060791,
0.3042144775390625,
0.7461450695991516,
-0.0076792980544269085,
-0.026114465668797493,
-0.8709207773208618,
0.38784974813461304,
-0.2724718749523163,
-0.3139948546886444,
-0.8267667889595032,
0.8091810941696167,
0.2039015293121338,
0.16833461821079254,
0.5664405226707458,
0.15204311907291412,
0.964629054069519,
-0.5825567841529846,
0.8941973447799683,
0.16351789236068726,
-0.5321513414382935,
0.5703020691871643,
-0.7143163084983826,
0.010514222085475922,
0.4473268985748291,
0.5375024676322937,
-0.8005220890045166,
-0.13373617827892303,
-1.258741855621338,
-1.1173747777938843,
0.09184951335191727,
0.466417521238327,
0.040801551192998886,
0.35906824469566345,
0.797271192073822,
-0.22031565010547638,
0.20793727040290833,
-0.44407880306243896,
-0.6361221671104431,
0.026590581983327866,
0.4174332618713379,
0.5286798477172852,
-0.6861148476600647,
0.15049238502979279,
-0.6242383718490601,
0.761989176273346,
0.2327519655227661,
0.16829250752925873,
0.13104291260242462,
0.7765240669250488,
-0.032473642379045486,
0.1418684422969818,
0.7466621994972229,
0.6864811182022095,
-0.4238845109939575,
-0.16520732641220093,
-0.10522716492414474,
-0.2612670958042145,
0.233860045671463,
-0.1390300691127777,
-0.1679476797580719,
0.024618783965706825,
0.5488876700401306,
0.8828235864639282,
0.5925688147544861,
-0.42087724804878235,
0.962934672832489,
-0.458114355802536,
-0.03390977904200554,
-0.7476685047149658,
0.2627789378166199,
0.6107122302055359,
0.47273531556129456,
-0.03953038156032562,
0.4226819574832916,
0.4696292281150818,
-0.46790674328804016,
0.5284185409545898,
0.3077545166015625,
-0.6413892507553101,
-0.5350671410560608,
1.121179461479187,
-0.10538091510534286,
-0.3156738877296448,
0.41077303886413574,
-0.07678765058517456,
-0.47997891902923584,
0.8550348281860352,
0.6246722340583801,
0.8506888151168823,
-0.5945300459861755,
0.4140458106994629,
0.6424142122268677,
-0.1245681568980217,
-0.09480679780244827,
0.3733939230442047,
0.36393609642982483,
0.042375579476356506,
0.1568145751953125,
-0.7702867984771729,
-0.13678480684757233,
0.31601831316947937,
-0.6178584098815918,
1.0929845571517944,
-0.49642065167427063,
0.5013777017593384,
0.05230254307389259,
-0.4020986557006836,
-0.41980263590812683,
0.5232508182525635,
-0.05075671896338463,
1.4010555744171143,
-1.0996193885803223,
1.0424833297729492,
0.18492473661899567,
-0.42416447401046753,
-1.3089025020599365,
0.21610911190509796,
0.42110928893089294,
-0.6121823787689209,
0.2106594294309616,
0.18729165196418762,
0.24923951923847198,
-0.228614941239357,
-0.6981387138366699,
-0.6844004988670349,
1.0621883869171143,
0.6445651650428772,
-0.7658621072769165,
-0.47458046674728394,
-0.4773682951927185,
0.7586916089057922,
-0.3970782160758972,
0.6477838754653931,
0.7791393995285034,
0.4182341992855072,
1.1185444593429565,
-0.9681082963943481,
-0.4948911964893341,
-0.6099787950515747,
0.39776837825775146,
-0.029782481491565704,
-0.8284280896186829,
0.7150484919548035,
-0.2114679366350174,
-0.08320073783397675,
0.5937681794166565,
1.0487606525421143,
0.32478055357933044,
0.00010676323290681466,
0.5547975301742554,
0.9603514671325684,
-0.08687488734722137,
0.038292042911052704,
0.924513041973114,
0.34172916412353516,
0.4798765480518341,
0.9532482028007507,
-0.2905280888080597,
1.1252332925796509,
-0.1376480907201767,
-0.2917845547199249,
0.33724382519721985,
1.174498200416565,
-0.010486578568816185,
0.7444088459014893,
0.4398951828479767,
-0.8034729957580566,
-0.30121055245399475,
-0.46529361605644226,
-0.8289816975593567,
0.48361772298812866,
0.07307887822389603,
-0.029352929443120956,
-0.11331083625555038,
0.17689400911331177,
0.21088360249996185,
0.43678492307662964,
-0.15091441571712494,
0.591138482093811,
0.18807372450828552,
-0.1871436983346939,
0.7582216262817383,
0.032371580600738525,
0.5531719923019409,
-0.6695738434791565,
-0.40822526812553406,
0.009895658120512962,
0.0017489783931523561,
-0.44897347688674927,
-1.0247485637664795,
0.2358376830816269,
-0.10563859343528748,
-0.40565717220306396,
-0.16969408094882965,
0.7579371929168701,
-0.5235994458198547,
-1.1510595083236694,
0.3419030010700226,
-0.03603027015924454,
0.15049274265766144,
-0.08278553932905197,
-0.776746392250061,
0.008429376408457756,
-0.20267027616500854,
-0.3875069320201874,
0.21541054546833038,
0.5678455829620361,
0.2893464267253876,
0.45464199781417847,
0.14729264378547668,
0.08312450349330902,
-0.09482487291097641,
-0.19939786195755005,
0.8989144563674927,
-0.4547838866710663,
-0.49550309777259827,
-0.7603152394294739,
0.6297268867492676,
-0.06920544803142548,
-0.25273892283439636,
0.7333941459655762,
0.7911006212234497,
0.43439269065856934,
-0.3219844102859497,
0.4347901940345764,
-0.3820554316043854,
0.545278787612915,
-0.4641582667827606,
1.0764744281768799,
-1.0523771047592163,
-0.15930317342281342,
-0.4489765167236328,
-0.6617029905319214,
0.038151148706674576,
0.3227499723434448,
0.48192694783210754,
-0.07103218138217926,
0.22088301181793213,
1.0024689435958862,
-0.3653689920902252,
-0.07791909575462341,
0.3237454891204834,
0.45444896817207336,
0.34420081973075867,
0.2261262685060501,
0.5458134412765503,
-0.6355957984924316,
-0.2915615439414978,
-0.6673048138618469,
-0.5990577936172485,
-0.3938954770565033,
-0.9600387811660767,
-0.7720057368278503,
-0.9597246050834656,
-0.2403152734041214,
-0.8682103157043457,
-0.12911339104175568,
1.2143503427505493,
1.0991566181182861,
-0.7039770483970642,
-0.24803057312965393,
0.285919189453125,
-0.18683435022830963,
-0.004502417054027319,
-0.24272345006465912,
-0.00237655034288764,
0.8397234678268433,
-0.7034720182418823,
0.4959074854850769,
0.12948265671730042,
0.5968908667564392,
-0.07561425119638443,
0.2860344350337982,
-0.31407424807548523,
0.24689285457134247,
0.35385802388191223,
0.30680692195892334,
-0.8077622056007385,
-0.3713594079017639,
-0.17733728885650635,
-0.10807012766599655,
0.0012397466925904155,
0.48270440101623535,
-0.4316439628601074,
0.4460744857788086,
0.5788052678108215,
0.28201591968536377,
0.5891849994659424,
-0.21220020949840546,
0.6001135110855103,
-0.47497352957725525,
0.38734084367752075,
0.4500213861465454,
0.27488991618156433,
0.19084633886814117,
-0.6440563797950745,
0.4319820702075958,
0.6943947076797485,
-0.952636182308197,
-0.8297700881958008,
0.20946921408176422,
-1.2996426820755005,
-0.2535107433795929,
0.7042781114578247,
0.07799570262432098,
-0.5146611332893372,
0.5836171507835388,
-0.30567020177841187,
0.040282491594552994,
-0.19774827361106873,
0.37796005606651306,
0.7644492387771606,
-0.05093087628483772,
-0.1043582409620285,
-0.9628590941429138,
0.3276003301143646,
0.1290903389453888,
-0.8294483423233032,
-0.12075269222259521,
0.310513973236084,
0.49266090989112854,
0.0029339140746742487,
0.3702881932258606,
-0.03964262083172798,
0.5864384174346924,
0.1049824208021164,
0.2761501669883728,
0.32815125584602356,
-0.41258397698402405,
0.10477297753095627,
0.2032821774482727,
0.13371580839157104,
-0.06780178844928741
] |
google/vit-base-patch32-224-in21k
|
google
| 2022-12-08T10:59:40Z | 8,953 | 17 |
transformers
|
[
"transformers",
"pytorch",
"tf",
"jax",
"safetensors",
"vit",
"feature-extraction",
"vision",
"dataset:imagenet-21k",
"arxiv:2010.11929",
"arxiv:2006.03677",
"license:apache-2.0",
"region:us"
] |
feature-extraction
| 2022-03-02T23:29:05Z |
---
license: apache-2.0
tags:
- vision
datasets:
- imagenet-21k
inference: false
---
# Vision Transformer (base-sized model)
Vision Transformer (ViT) model pre-trained on ImageNet-21k (14 million images, 21,843 classes) at resolution 224x224. It was introduced in the paper [An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale](https://arxiv.org/abs/2010.11929) by Dosovitskiy et al. and first released in [this repository](https://github.com/google-research/vision_transformer). However, the weights were converted from the [timm repository](https://github.com/rwightman/pytorch-image-models) by Ross Wightman, who already converted the weights from JAX to PyTorch. Credits go to him.
Disclaimer: The team releasing ViT did not write a model card for this model so this model card has been written by the Hugging Face team.
## Model description
The Vision Transformer (ViT) is a transformer encoder model (BERT-like) pretrained on a large collection of images in a supervised fashion, namely ImageNet-21k, at a resolution of 224x224 pixels.
Images are presented to the model as a sequence of fixed-size patches (resolution 32x32), which are linearly embedded. One also adds a [CLS] token to the beginning of a sequence to use it for classification tasks. One also adds absolute position embeddings before feeding the sequence to the layers of the Transformer encoder.
Note that this model does not provide any fine-tuned heads, as these were zero'd by Google researchers. However, the model does include the pre-trained pooler, which can be used for downstream tasks (such as image classification).
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 in PyTorch:
```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('google/vit-base-patch32-224-in21k')
model = ViTModel.from_pretrained('google/vit-base-patch32-224-in21k')
inputs = processor(images=image, return_tensors="pt")
outputs = model(**inputs)
last_hidden_state = outputs.last_hidden_state
```
Refer to the [docs](https://huggingface.co/docs/transformers/model_doc/vit) for usage in TensorFlow and JAX/FLAX.
## Training data
The ViT model was pretrained on [ImageNet-21k](http://www.image-net.org/), a dataset consisting of 14 million images and 21k classes.
## Training procedure
### Preprocessing
The exact details of preprocessing of images during training/validation can be found [here](https://github.com/google-research/vision_transformer/blob/master/vit_jax/input_pipeline.py).
Images are resized/rescaled to the same resolution (224x224) and normalized across the RGB channels with mean (0.5, 0.5, 0.5) and standard deviation (0.5, 0.5, 0.5).
### Pretraining
The model was trained on TPUv3 hardware (8 cores). All model variants are trained with a batch size of 4096 and learning rate warmup of 10k steps. For ImageNet, the authors found it beneficial to additionally apply gradient clipping at global norm 1. Pre-training resolution is 224.
## Evaluation results
For evaluation results on several image classification benchmarks, we refer to tables 2 and 5 of the original paper. Note that for fine-tuning, the best results are obtained with a higher resolution (384x384). Of course, increasing the model size will result in better performance.
### BibTeX entry and citation info
```bibtex
@misc{wu2020visual,
title={Visual Transformers: Token-based Image Representation and Processing for Computer Vision},
author={Bichen Wu and Chenfeng Xu and Xiaoliang Dai and Alvin Wan and Peizhao Zhang and Zhicheng Yan and Masayoshi Tomizuka and Joseph Gonzalez and Kurt Keutzer and Peter Vajda},
year={2020},
eprint={2006.03677},
archivePrefix={arXiv},
primaryClass={cs.CV}
}
```
```bibtex
@inproceedings{deng2009imagenet,
title={Imagenet: A large-scale hierarchical image database},
author={Deng, Jia and Dong, Wei and Socher, Richard and Li, Li-Jia and Li, Kai and Fei-Fei, Li},
booktitle={2009 IEEE conference on computer vision and pattern recognition},
pages={248--255},
year={2009},
organization={Ieee}
}
```
|
[
-0.5644071698188782,
-0.20915989577770233,
0.07140963524580002,
-0.07728544622659683,
-0.4179480969905853,
-0.1806638389825821,
-0.05991532653570175,
-0.5639921426773071,
0.1540287286043167,
0.4439135193824768,
-0.30310603976249695,
-0.23429684340953827,
-0.7700396776199341,
-0.1039503663778305,
-0.4895743727684021,
0.9136092066764832,
-0.08669611811637878,
-0.0028851560782641172,
-0.19675026834011078,
-0.18161123991012573,
-0.3296368420124054,
-0.4496120512485504,
-0.6026556491851807,
-0.3303944170475006,
0.47217872738838196,
0.09897054731845856,
0.6782301068305969,
0.7636498808860779,
0.7668064832687378,
0.4322340786457062,
-0.068804070353508,
-0.06294263899326324,
-0.4022390842437744,
-0.28938740491867065,
-0.07281780987977982,
-0.550734281539917,
-0.37457746267318726,
0.21118292212486267,
0.5991665720939636,
0.4096246659755707,
0.217563658952713,
0.3188466727733612,
0.08850852400064468,
0.39620450139045715,
-0.6056185960769653,
0.24838419258594513,
-0.4751918315887451,
0.40202420949935913,
-0.1147281676530838,
-0.12165603786706924,
-0.45565491914749146,
-0.16111519932746887,
0.2719431221485138,
-0.48712673783302307,
0.5094665884971619,
-0.052314240485429764,
1.3898718357086182,
0.21719004213809967,
-0.32567456364631653,
0.2343282848596573,
-0.7205347418785095,
0.7163106203079224,
-0.2544245719909668,
0.43206992745399475,
0.08228065073490143,
0.5044925808906555,
0.17752687633037567,
-1.157427191734314,
-0.5456913113594055,
-0.04199453443288803,
-0.11931176483631134,
0.17009051144123077,
-0.3455231785774231,
0.2248048037290573,
0.5520622134208679,
0.6192649006843567,
-0.34242454171180725,
0.023790951818227768,
-0.5489057898521423,
-0.31109505891799927,
0.45626500248908997,
-0.02955302968621254,
0.16925300657749176,
-0.03879090026021004,
-0.620210587978363,
-0.5004153251647949,
-0.3675979971885681,
0.13590608537197113,
0.04462219774723053,
-0.008955376222729683,
-0.17444312572479248,
0.5272432565689087,
0.10118867456912994,
0.6342847347259521,
0.3597642183303833,
-0.09027101844549179,
0.4819743037223816,
-0.22595520317554474,
-0.3341967761516571,
-0.1975291222333908,
0.7829686403274536,
0.41069430112838745,
0.3093101382255554,
-0.04160507768392563,
-0.3295605480670929,
0.1646617352962494,
0.5006098747253418,
-1.001895785331726,
-0.15675665438175201,
-0.1252455860376358,
-0.699053943157196,
-0.35746634006500244,
0.2667222321033478,
-0.5450324416160583,
-0.17330682277679443,
-0.38963812589645386,
0.7685009241104126,
-0.18168354034423828,
-0.2491837739944458,
-0.15958411991596222,
-0.09463934600353241,
0.6167518496513367,
0.39316704869270325,
-0.5961992740631104,
0.33369019627571106,
0.29293859004974365,
1.0014851093292236,
-0.07467096298933029,
-0.23093345761299133,
-0.1191742867231369,
-0.29286524653434753,
-0.3959275484085083,
0.5867274403572083,
-0.1152021735906601,
-0.1900017112493515,
0.018348179757595062,
0.4165455996990204,
-0.02972012758255005,
-0.48837295174598694,
0.3991475999355316,
-0.601496160030365,
0.11607111245393753,
-0.07885728776454926,
-0.23993927240371704,
-0.2469121366739273,
0.15349696576595306,
-0.6739301681518555,
0.9626167416572571,
0.2618822753429413,
-0.7793238759040833,
0.463559091091156,
-0.4995221197605133,
-0.09065669775009155,
0.18689091503620148,
-0.04440237581729889,
-0.6412432789802551,
0.08417720347642899,
0.26170188188552856,
0.539397120475769,
-0.10498429834842682,
-0.07267016172409058,
-0.1591600477695465,
-0.5395897626876831,
0.19363868236541748,
-0.33234888315200806,
0.79031902551651,
0.18242405354976654,
-0.347689151763916,
0.24342477321624756,
-0.5511633157730103,
-0.037434618920087814,
0.2295459359884262,
-0.19757601618766785,
0.011186725459992886,
-0.3650997281074524,
0.21786633133888245,
0.3346238136291504,
0.30268943309783936,
-0.760191023349762,
0.18307563662528992,
-0.15551136434078217,
0.45254191756248474,
0.7604878544807434,
-0.2080286592245102,
0.5380399823188782,
-0.24170200526714325,
0.3966352045536041,
0.1889439821243286,
0.5084061622619629,
-0.33732080459594727,
-0.6065905690193176,
-1.034806251525879,
-0.21784742176532745,
0.35779091715812683,
0.3734048902988434,
-0.7472712397575378,
0.47086015343666077,
-0.4505932629108429,
-0.5824552774429321,
-0.36795902252197266,
-0.1712355613708496,
0.2931949198246002,
0.48685789108276367,
0.4690689742565155,
-0.5436863303184509,
-0.6182892322540283,
-0.9083725214004517,
0.13530921936035156,
0.005567946471273899,
-0.0940968245267868,
0.14134395122528076,
0.7434530854225159,
-0.3410075306892395,
0.9058523178100586,
-0.35474544763565063,
-0.33587130904197693,
-0.053468819707632065,
-0.01893174648284912,
0.3803272843360901,
0.6250712871551514,
0.5181280374526978,
-0.8008800745010376,
-0.3690324127674103,
0.04673798009753227,
-0.7358335256576538,
0.24471111595630646,
-0.02909005433320999,
-0.30353495478630066,
0.02170531637966633,
0.40476757287979126,
-0.6160482168197632,
0.832951545715332,
0.3513637185096741,
-0.14833277463912964,
0.42079558968544006,
-0.11903766542673111,
-0.005756419617682695,
-1.0600513219833374,
0.010388731956481934,
0.18828578293323517,
-0.4378420412540436,
-0.5188986659049988,
0.24549201130867004,
0.2124636024236679,
-0.20483197271823883,
-0.47473573684692383,
0.3269777297973633,
-0.45109274983406067,
-0.19482706487178802,
-0.2501671016216278,
-0.3750430941581726,
0.012148376554250717,
0.5678079128265381,
0.07667751610279083,
0.5735089182853699,
0.6737934350967407,
-0.5279470086097717,
0.5835970640182495,
0.27031177282333374,
-0.37780171632766724,
0.5025672316551208,
-0.8485780954360962,
0.24684873223304749,
-0.10001597553491592,
0.3066122829914093,
-0.7360187768936157,
-0.22592253983020782,
0.15485799312591553,
-0.39671239256858826,
0.5587934851646423,
-0.3568163514137268,
-0.38651472330093384,
-0.7304298281669617,
-0.1898612231016159,
0.5335820317268372,
0.7941591739654541,
-0.7522650361061096,
0.6677488684654236,
0.26288291811943054,
0.47281113266944885,
-0.6625502109527588,
-0.9859798550605774,
-0.04562443867325783,
-0.11442858725786209,
-0.5318787693977356,
0.6222835183143616,
0.19955722987651825,
0.24102172255516052,
0.2193998247385025,
0.0052454667165875435,
-0.057564835995435715,
-0.32456713914871216,
0.538651704788208,
0.368052214384079,
-0.3166413903236389,
-0.020010456442832947,
-0.41588854789733887,
-0.24598166346549988,
-0.014722253195941448,
-0.5398613214492798,
0.4851466119289398,
-0.48513084650039673,
-0.30472227931022644,
-0.5875124335289001,
-0.006972311995923519,
0.6628775596618652,
-0.2389567792415619,
0.6371978521347046,
0.9567930102348328,
-0.5734854936599731,
0.037852589040994644,
-0.46072298288345337,
-0.1268755942583084,
-0.4982796609401703,
0.35860082507133484,
-0.3328345715999603,
-0.5838163495063782,
0.6890759468078613,
0.08347398787736893,
-0.09823675453662872,
0.6141960024833679,
0.44605767726898193,
-0.15826411545276642,
0.805164635181427,
0.6720747351646423,
0.05361331254243851,
0.7686880826950073,
-0.7659643888473511,
0.10836281627416611,
-0.8093241453170776,
-0.3318174481391907,
-0.1826755404472351,
-0.5201804637908936,
-0.6277585029602051,
-0.5164677500724792,
0.33784639835357666,
0.06064125522971153,
-0.3878996968269348,
0.5413246154785156,
-0.701455295085907,
0.38448747992515564,
0.7868893146514893,
0.5719961524009705,
-0.13024687767028809,
0.2022324502468109,
-0.10172025859355927,
0.0423106886446476,
-0.5375726222991943,
-0.14365410804748535,
0.9804515838623047,
0.547572910785675,
0.6928053498268127,
-0.1738385111093521,
0.4945125877857208,
0.008647206239402294,
0.13025325536727905,
-0.9194260239601135,
0.5827013850212097,
-0.1740928292274475,
-0.47374776005744934,
-0.05930104851722717,
-0.23209823668003082,
-1.043218731880188,
0.15054161846637726,
-0.34450602531433105,
-0.6352993845939636,
0.4462320804595947,
0.2101553976535797,
-0.14834436774253845,
0.562222421169281,
-0.6127676963806152,
0.8167242407798767,
-0.11468730121850967,
-0.3001200556755066,
0.057329703122377396,
-0.6562649011611938,
0.14979667961597443,
0.055332209914922714,
-0.2684687077999115,
0.334566593170166,
0.2369627207517624,
0.8221270442008972,
-0.7610809206962585,
0.8540573120117188,
-0.3025617003440857,
0.3541839122772217,
0.42277106642723083,
-0.29135969281196594,
0.29219743609428406,
-0.2879100441932678,
0.3786584734916687,
0.44538599252700806,
-0.04892481863498688,
-0.5037223100662231,
-0.562700092792511,
0.37190863490104675,
-0.9961993098258972,
-0.44691553711891174,
-0.4333334267139435,
-0.30381089448928833,
0.16991041600704193,
0.31836456060409546,
0.7527349591255188,
0.6563249826431274,
0.2418818175792694,
0.5808701515197754,
0.6185580492019653,
-0.3229733407497406,
0.4603670835494995,
-0.20687849819660187,
-0.2470180243253708,
-0.2259809523820877,
0.8313553333282471,
0.32944586873054504,
0.1409645974636078,
0.36989307403564453,
0.2179017961025238,
-0.27793949842453003,
-0.4606720209121704,
-0.3130676746368408,
0.10559017956256866,
-0.8285360932350159,
-0.45675575733184814,
-0.4561050236225128,
-0.6756600737571716,
-0.2629949152469635,
-0.15684442222118378,
-0.485897958278656,
-0.1831958144903183,
-0.35831141471862793,
-0.08550450205802917,
0.42282047867774963,
0.6834713816642761,
-0.07151354849338531,
0.6064748764038086,
-0.5529345870018005,
0.1574770212173462,
0.5577772855758667,
0.4577169120311737,
0.04483771324157715,
-0.6807633638381958,
-0.36106306314468384,
-0.07786331325769424,
-0.2983890473842621,
-0.6141449213027954,
0.34853529930114746,
0.21915046870708466,
0.5603781342506409,
0.6332102417945862,
-0.2699905037879944,
0.8907184600830078,
-0.38438692688941956,
0.7310983538627625,
0.44967028498649597,
-0.7440621256828308,
0.4754243493080139,
-0.1423734426498413,
0.2700284719467163,
0.19014017283916473,
0.32343918085098267,
-0.26194101572036743,
0.09007395058870316,
-0.7524562478065491,
-0.697586178779602,
0.6087763905525208,
0.1366950422525406,
0.24192079901695251,
0.3363184928894043,
0.3989993631839752,
-0.14730125665664673,
-0.04095828905701637,
-0.8240731358528137,
-0.21299564838409424,
-0.6821074485778809,
-0.11769775301218033,
0.027593212202191353,
-0.16423477232456207,
0.0412474125623703,
-0.6407356858253479,
0.3195875883102417,
-0.04193657264113426,
0.8766648769378662,
0.17101706564426422,
-0.31223616003990173,
-0.06736614555120468,
-0.3483160138130188,
0.24683387577533722,
0.40423619747161865,
-0.2629238963127136,
0.17813250422477722,
0.08877763897180557,
-0.8784391283988953,
-0.016744373366236687,
-0.08033980429172516,
-0.10851812362670898,
-0.05165300518274307,
0.5211878418922424,
1.10813307762146,
0.03860999643802643,
-0.04058584198355675,
0.8537647128105164,
-0.09419582039117813,
-0.32931122183799744,
-0.4622415602207184,
0.04389440640807152,
-0.31094878911972046,
0.2811504900455475,
0.4639647901058197,
0.5276135802268982,
-0.019902566447854042,
-0.28233790397644043,
0.285114049911499,
0.27825504541397095,
-0.5113096833229065,
-0.38759303092956543,
0.6550532579421997,
-0.0332958847284317,
-0.04843737185001373,
0.8286719918251038,
-0.00841144286096096,
-0.6602592468261719,
0.7858026027679443,
0.48933279514312744,
0.8186166286468506,
-0.1181444302201271,
0.11181804537773132,
0.6207981705665588,
0.3186129629611969,
-0.12443006038665771,
0.0391295962035656,
-0.06369877606630325,
-0.9849126935005188,
-0.39859604835510254,
-0.566501259803772,
-0.0823887437582016,
0.27573102712631226,
-0.7798117995262146,
0.3590870201587677,
-0.5729316473007202,
-0.4266033470630646,
0.06837032735347748,
-0.047534625977277756,
-1.1654380559921265,
0.3470732867717743,
0.32848140597343445,
0.8066229224205017,
-0.7303345799446106,
0.7756866216659546,
0.75417160987854,
-0.570144534111023,
-0.864543080329895,
-0.2839341461658478,
-0.2225634902715683,
-0.8650945425033569,
0.7218461632728577,
0.4152105450630188,
0.044911231845617294,
0.10437490046024323,
-0.8070937395095825,
-0.8382651209831238,
1.1581571102142334,
0.20350326597690582,
-0.2796504497528076,
-0.0014962879940867424,
0.044246625155210495,
0.4521046280860901,
-0.3485664427280426,
0.5274632573127747,
0.05190802365541458,
0.22770020365715027,
0.34444624185562134,
-0.7645497918128967,
-0.02000831626355648,
-0.4334886372089386,
0.34868499636650085,
0.0007023565704002976,
-0.5515446662902832,
1.1037310361862183,
-0.14002270996570587,
-0.21962501108646393,
0.03354712575674057,
0.5892480611801147,
-0.129312664270401,
-0.13221099972724915,
0.7266486287117004,
0.6927477717399597,
0.432211309671402,
-0.34876012802124023,
1.0513393878936768,
0.00012328439333941787,
0.48206472396850586,
0.560462474822998,
0.27873772382736206,
0.5898415446281433,
0.3569834232330322,
-0.28186050057411194,
0.4987477958202362,
0.8772079944610596,
-0.49853453040122986,
0.5015285015106201,
0.05574651062488556,
0.08388186246156693,
-0.15707579255104065,
-0.015076533891260624,
-0.45110535621643066,
0.5749544501304626,
0.3462030291557312,
-0.618697464466095,
-0.031088238582015038,
0.30366674065589905,
-0.31355953216552734,
-0.4422071874141693,
-0.5964714884757996,
0.465738981962204,
0.007716431748121977,
-0.37134820222854614,
0.6538594365119934,
-0.16599750518798828,
0.7254450917243958,
-0.3418155610561371,
-0.06796763837337494,
-0.17079448699951172,
0.3736390471458435,
-0.3929137885570526,
-0.7904114723205566,
0.13335777819156647,
-0.14475584030151367,
-0.1356866955757141,
-0.18948322534561157,
0.8505155444145203,
-0.08960049599409103,
-0.542585015296936,
0.2006758153438568,
0.10321225225925446,
0.3042530119419098,
-0.08264171332120895,
-0.6442263126373291,
-0.07479408383369446,
-0.17749129235744476,
-0.3681357800960541,
0.23308147490024567,
0.2880312502384186,
-0.15094691514968872,
0.4958680272102356,
0.6531758308410645,
-0.005777857266366482,
0.3909207284450531,
0.01495444681495428,
0.9589246511459351,
-0.50650954246521,
-0.49221840500831604,
-0.5046095252037048,
0.6030808687210083,
-0.1860356628894806,
-0.3470836877822876,
0.5163397192955017,
0.3376397490501404,
1.0748783349990845,
-0.32277458906173706,
0.4931000769138336,
-0.09425774961709976,
0.002032472984865308,
-0.32014667987823486,
0.5205796360969543,
-0.5700100064277649,
-0.2759704887866974,
-0.33536723256111145,
-0.9947364926338196,
-0.4292311370372772,
0.8948663473129272,
-0.1605994701385498,
0.21949508786201477,
0.536442220211029,
0.7166336178779602,
-0.25487521290779114,
-0.14673608541488647,
0.37364375591278076,
0.20183514058589935,
0.09823836386203766,
0.44682183861732483,
0.8157845139503479,
-0.7633870840072632,
0.5001680850982666,
-0.49338194727897644,
-0.260214239358902,
-0.22072190046310425,
-0.6539465188980103,
-0.8957231640815735,
-0.7087901830673218,
-0.37303268909454346,
-0.4827798306941986,
-0.2517986595630646,
0.6565991640090942,
1.127169132232666,
-0.7841187715530396,
0.0012654756428673863,
-0.1762310266494751,
-0.24136587977409363,
-0.26048436760902405,
-0.19060605764389038,
0.44506123661994934,
-0.04756837710738182,
-0.748980700969696,
-0.1910906285047531,
0.017004936933517456,
0.2280094027519226,
-0.2825206518173218,
-0.03493265435099602,
0.008894762955605984,
-0.3505294919013977,
0.6223810315132141,
0.268669068813324,
-0.5962092876434326,
-0.49120646715164185,
-0.0033250944688916206,
-0.06689509749412537,
0.2964489459991455,
0.6461954712867737,
-0.8595776557922363,
0.48004934191703796,
0.5397161841392517,
0.5525769591331482,
0.9245595335960388,
-0.08055157214403152,
0.21292802691459656,
-0.7321166396141052,
0.43028005957603455,
0.09438071399927139,
0.6093350648880005,
0.25002333521842957,
-0.3378821015357971,
0.4864060580730438,
0.37974438071250916,
-0.5536505579948425,
-0.7017930746078491,
0.08695396780967712,
-1.2043559551239014,
-0.002722568577155471,
0.8906506299972534,
-0.3538159132003784,
-0.4746307134628296,
0.17315152287483215,
-0.14390668272972107,
0.5285479426383972,
-0.04560994729399681,
0.3257545828819275,
0.3134889602661133,
0.05354441702365875,
-0.6074352860450745,
-0.3914619982242584,
0.2552563548088074,
-0.03656613081693649,
-0.42575088143348694,
-0.5935133695602417,
0.07031358778476715,
0.2281160056591034,
0.5141469836235046,
0.28984561562538147,
-0.36440062522888184,
0.16298870742321014,
0.2380094677209854,
0.39178770780563354,
-0.10741950571537018,
-0.3572268784046173,
-0.31777510046958923,
0.10866115242242813,
-0.224148690700531,
-0.7063731551170349
] |
timm/vgg19.tv_in1k
|
timm
| 2023-04-25T20:16:16Z | 8,953 | 0 |
timm
|
[
"timm",
"pytorch",
"safetensors",
"image-classification",
"dataset:imagenet-1k",
"arxiv:1409.1556",
"license:bsd-3-clause",
"has_space",
"region:us"
] |
image-classification
| 2023-04-25T20:14:08Z |
---
tags:
- image-classification
- timm
library_name: timm
license: bsd-3-clause
datasets:
- imagenet-1k
---
# Model card for vgg19.tv_in1k
A VGG image classification model. Trained on ImageNet-1k, original torchvision weights.
## Model Details
- **Model Type:** Image classification / feature backbone
- **Model Stats:**
- Params (M): 143.7
- GMACs: 19.6
- Activations (M): 14.9
- Image size: 224 x 224
- **Papers:**
- Very Deep Convolutional Networks for Large-Scale Image Recognition: https://arxiv.org/abs/1409.1556
- **Dataset:** ImageNet-1k
- **Original:** https://github.com/pytorch/vision
## 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('vgg19.tv_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(
'vgg19.tv_in1k',
pretrained=True,
features_only=True,
)
model = model.eval()
# get model specific transforms (normalization, resize)
data_config = timm.data.resolve_model_data_config(model)
transforms = timm.data.create_transform(**data_config, is_training=False)
output = model(transforms(img).unsqueeze(0)) # unsqueeze single image into batch of 1
for o in output:
# print shape of each feature map in output
# e.g.:
# torch.Size([1, 64, 224, 224])
# torch.Size([1, 128, 112, 112])
# torch.Size([1, 256, 56, 56])
# torch.Size([1, 512, 28, 28])
# torch.Size([1, 512, 14, 14])
# torch.Size([1, 512, 7, 7])
print(o.shape)
```
### Image Embeddings
```python
from urllib.request import urlopen
from PIL import Image
import timm
img = Image.open(urlopen(
'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/beignets-task-guide.png'
))
model = timm.create_model(
'vgg19.tv_in1k',
pretrained=True,
num_classes=0, # remove classifier nn.Linear
)
model = model.eval()
# get model specific transforms (normalization, resize)
data_config = timm.data.resolve_model_data_config(model)
transforms = timm.data.create_transform(**data_config, is_training=False)
output = model(transforms(img).unsqueeze(0)) # output is (batch_size, num_features) shaped tensor
# or equivalently (without needing to set num_classes=0)
output = model.forward_features(transforms(img).unsqueeze(0))
# output is unpooled, a (1, 512, 7, 7) shaped tensor
output = model.forward_head(output, pre_logits=True)
# output is a (1, num_features) shaped tensor
```
## Model Comparison
Explore the dataset and runtime metrics of this model in timm [model results](https://github.com/huggingface/pytorch-image-models/tree/main/results).
## Citation
```bibtex
@article{Simonyan2014VeryDC,
title={Very Deep Convolutional Networks for Large-Scale Image Recognition},
author={Karen Simonyan and Andrew Zisserman},
journal={CoRR},
year={2014},
volume={abs/1409.1556}
}
```
|
[
-0.49659842252731323,
-0.4920157790184021,
-0.0015447592595592141,
0.026576722040772438,
-0.4030034840106964,
-0.2856713533401489,
-0.27803274989128113,
-0.4020085632801056,
0.15897271037101746,
0.42404934763908386,
-0.411130428314209,
-0.7974734306335449,
-0.7581725120544434,
-0.20822884142398834,
-0.1492309272289276,
1.02446448802948,
0.012348267249763012,
0.13520900905132294,
-0.0989314615726471,
-0.43622708320617676,
-0.12561286985874176,
-0.3628120720386505,
-0.7838505506515503,
-0.5390394330024719,
0.23861612379550934,
0.19223731756210327,
0.47424712777137756,
0.5442846417427063,
0.5633140206336975,
0.49942487478256226,
-0.12463486939668655,
0.04674471914768219,
-0.3457311689853668,
-0.37802642583847046,
0.3943506181240082,
-0.6097637414932251,
-0.35270148515701294,
0.2583756744861603,
0.6818549036979675,
0.2983044981956482,
0.04427223652601242,
0.35983410477638245,
0.0850563496351242,
0.38206204771995544,
-0.13796603679656982,
0.1453009843826294,
-0.4936057925224304,
0.2786482870578766,
-0.10507417470216751,
0.10998108983039856,
-0.25470349192619324,
-0.38547226786613464,
0.30507370829582214,
-0.5145497918128967,
0.5117868185043335,
-0.021277155727148056,
1.4388184547424316,
0.1454518735408783,
-0.022938238456845284,
-0.06417111307382584,
-0.26313984394073486,
0.8319879770278931,
-0.904464602470398,
0.1798911839723587,
0.31952688097953796,
0.21707451343536377,
-0.10002212971448898,
-1.0408378839492798,
-0.6133148074150085,
-0.2723531723022461,
-0.15369589626789093,
-0.06068261340260506,
-0.1586020439863205,
0.050850868225097656,
0.3668895959854126,
0.3627449572086334,
-0.5186333656311035,
0.15154846012592316,
-0.6347072124481201,
-0.2741642892360687,
0.5899660587310791,
0.0203167125582695,
0.27002599835395813,
-0.20559099316596985,
-0.5455976128578186,
-0.3609190285205841,
-0.3732696771621704,
0.283840537071228,
0.2837966978549957,
0.1665450930595398,
-0.6337857842445374,
0.5016836524009705,
0.12626829743385315,
0.5432875156402588,
0.14263343811035156,
-0.3586236238479614,
0.7273747324943542,
0.041138507425785065,
-0.6072035431861877,
0.028766317293047905,
1.0873947143554688,
0.3949200510978699,
0.32796698808670044,
0.17065709829330444,
-0.010439720936119556,
-0.3721851408481598,
-0.06657908111810684,
-1.1883405447006226,
-0.46721529960632324,
0.341159850358963,
-0.5773617625236511,
-0.4293610751628876,
0.3181082308292389,
-0.6431062817573547,
-0.21476860344409943,
-0.1103898212313652,
0.7455435395240784,
-0.46653199195861816,
-0.2803654074668884,
0.18071632087230682,
-0.20109905302524567,
0.49568262696266174,
0.272233784198761,
-0.5666605234146118,
0.09296733140945435,
0.2946352958679199,
0.9958996772766113,
0.19109217822551727,
-0.4485905170440674,
-0.37398406863212585,
-0.3737280070781708,
-0.23862943053245544,
0.41084572672843933,
-0.13730388879776,
-0.15089397132396698,
-0.21098917722702026,
0.4921918213367462,
-0.033603306859731674,
-0.7551685571670532,
0.2839527726173401,
-0.1818770319223404,
0.3214932084083557,
-0.0828646868467331,
-0.28697553277015686,
-0.4429170489311218,
0.3162524402141571,
-0.33998990058898926,
1.2091174125671387,
0.3224734663963318,
-0.7863859534263611,
0.49591192603111267,
-0.3330063819885254,
-0.11436404287815094,
-0.12863102555274963,
-0.07731042802333832,
-1.206805944442749,
-0.0023955008946359158,
0.20680546760559082,
0.7914488911628723,
-0.23498910665512085,
0.048561714589595795,
-0.5749463438987732,
-0.3113235533237457,
0.3006093502044678,
-0.09924556314945221,
0.9637646079063416,
0.05030440166592598,
-0.5060540437698364,
0.33555424213409424,
-0.637540876865387,
0.21612615883350372,
0.50847327709198,
-0.3657657504081726,
0.0023227755445986986,
-0.6850601434707642,
0.2801229953765869,
0.30152538418769836,
0.1585617959499359,
-0.5906225442886353,
0.487863689661026,
-0.043756984174251556,
0.4478728473186493,
0.6902653574943542,
-0.29665207862854004,
0.23070402443408966,
-0.20935900509357452,
0.22673967480659485,
0.27108097076416016,
0.21532829105854034,
0.07283561676740646,
-0.5755159854888916,
-0.757707417011261,
-0.5465275645256042,
0.3776663541793823,
0.39698266983032227,
-0.53141850233078,
0.5739592909812927,
-0.0753745436668396,
-0.764319658279419,
-0.4831715524196625,
0.1356903612613678,
0.516255259513855,
0.51230788230896,
0.2820312976837158,
-0.4820635914802551,
-0.5617268085479736,
-0.8169946670532227,
0.22961801290512085,
0.05903824418783188,
-0.056096743792295456,
0.2973558008670807,
0.6959058046340942,
-0.10711410641670227,
0.4951700270175934,
-0.4644361138343811,
-0.35792750120162964,
-0.26860588788986206,
0.11764451861381531,
0.4772931635379791,
0.7025926113128662,
0.8339301347732544,
-0.6412364840507507,
-0.49725306034088135,
-0.028822937980294228,
-1.0717570781707764,
0.18725290894508362,
-0.0787733644247055,
-0.15004903078079224,
0.21092168986797333,
0.27764058113098145,
-0.704750120639801,
0.6095283627510071,
0.23044052720069885,
-0.4264592230319977,
0.6012430787086487,
-0.3639170527458191,
0.2318061739206314,
-1.0627034902572632,
0.050468407571315765,
0.4681738615036011,
-0.21424798667430878,
-0.4245870113372803,
-0.016836732625961304,
-0.02376076765358448,
0.02678421512246132,
-0.6203122138977051,
0.6198129057884216,
-0.5163149833679199,
-0.17047947645187378,
-0.16125531494617462,
-0.2609120011329651,
-0.05218514800071716,
0.7192414402961731,
-0.08104003220796585,
0.4160212278366089,
0.9309360384941101,
-0.49214598536491394,
0.6467452049255371,
0.4589230418205261,
-0.33892062306404114,
0.4534437358379364,
-0.701827347278595,
0.12006722390651703,
-0.07255016267299652,
0.22622305154800415,
-1.0511484146118164,
-0.31785961985588074,
0.37575146555900574,
-0.6183117628097534,
0.7075073719024658,
-0.5553708076477051,
-0.3624234199523926,
-0.6435956954956055,
-0.5360643863677979,
0.3325454294681549,
0.76156085729599,
-0.7337917685508728,
0.28747326135635376,
0.2046789973974228,
0.34168076515197754,
-0.589853048324585,
-0.863798975944519,
-0.20535604655742645,
-0.43807387351989746,
-0.551986575126648,
0.36245620250701904,
0.11025131493806839,
0.1354086697101593,
0.11963298916816711,
-0.07452178746461868,
-0.016735294833779335,
-0.2396308183670044,
0.4741772413253784,
0.35783010721206665,
-0.3598722815513611,
-0.053565457463264465,
-0.41666945815086365,
-0.024426067247986794,
0.01687239669263363,
-0.3237672746181488,
0.7149440050125122,
-0.24693378806114197,
-0.1506839245557785,
-0.8218916654586792,
-0.11340749263763428,
0.5312813520431519,
-0.1181698590517044,
0.8632606267929077,
1.348188877105713,
-0.5547425150871277,
-0.004578265827149153,
-0.3462938964366913,
-0.2107144296169281,
-0.5100612044334412,
0.5534999966621399,
-0.3807942569255829,
-0.4904014766216278,
0.8600018620491028,
-0.011019716039299965,
0.007844740524888039,
0.6883742809295654,
0.5316789746284485,
-0.05312274396419525,
0.7086997628211975,
0.5646072626113892,
0.0722522884607315,
0.7640146017074585,
-1.0899871587753296,
-0.16116562485694885,
-0.8169986605644226,
-0.5916705131530762,
-0.334098219871521,
-0.5794278383255005,
-0.6492179036140442,
-0.3240460157394409,
0.38116395473480225,
0.2505697011947632,
-0.39006128907203674,
0.4948444664478302,
-0.8427174687385559,
0.1254325956106186,
0.766687273979187,
0.619097888469696,
-0.38528820872306824,
0.2469356209039688,
-0.14489789307117462,
-0.004974239505827427,
-0.6372482180595398,
-0.26857393980026245,
1.2245702743530273,
0.43045109510421753,
0.7957134246826172,
-0.24391356110572815,
0.6936943531036377,
-0.14923961460590363,
0.23118680715560913,
-0.7035108804702759,
0.6046661734580994,
-0.1605576127767563,
-0.45813092589378357,
-0.24616581201553345,
-0.34054553508758545,
-1.083043098449707,
0.10654214769601822,
-0.3669929504394531,
-0.8902883529663086,
0.08499454706907272,
0.12499787658452988,
-0.21211905777454376,
0.7776133418083191,
-0.8850347995758057,
1.0200716257095337,
-0.1568586826324463,
-0.41213518381118774,
0.08946850150823593,
-0.6313851475715637,
0.29619553685188293,
0.16855499148368835,
-0.3610323667526245,
-0.06782644987106323,
0.34433111548423767,
1.070334792137146,
-0.5765878558158875,
0.8238258361816406,
-0.4955579936504364,
0.31996655464172363,
0.5357546806335449,
-0.30794084072113037,
0.400375634431839,
-0.05476304888725281,
-0.07023771107196808,
0.3058854341506958,
0.022302646189928055,
-0.5477215647697449,
-0.4418503940105438,
0.679129421710968,
-1.027979850769043,
-0.4344879984855652,
-0.41504865884780884,
-0.40262284874916077,
0.26175084710121155,
0.0539671964943409,
0.6693406701087952,
0.6819236278533936,
0.19395136833190918,
0.32888296246528625,
0.7214311957359314,
-0.4612404704093933,
0.4707334041595459,
-0.2470255047082901,
-0.27027469873428345,
-0.45336657762527466,
0.8358924984931946,
0.24938099086284637,
0.14568272233009338,
0.03754056990146637,
0.17458109557628632,
-0.3199528157711029,
-0.6999657154083252,
-0.30900248885154724,
0.4053325355052948,
-0.6178518533706665,
-0.4222656190395355,
-0.5638410449028015,
-0.5454323291778564,
-0.40768349170684814,
-0.08954838663339615,
-0.35483044385910034,
-0.15430431067943573,
-0.4274688959121704,
0.1103578582406044,
0.732082188129425,
0.6468578577041626,
-0.09107552468776703,
0.671184778213501,
-0.5697416067123413,
0.21816231310367584,
0.28515809774398804,
0.4371316134929657,
-0.19910871982574463,
-0.8985534906387329,
-0.3713235557079315,
-0.13052643835544586,
-0.5535193085670471,
-0.6772964000701904,
0.5601974129676819,
0.17245392501354218,
0.5556398630142212,
0.42268043756484985,
-0.29643145203590393,
0.7703957557678223,
-0.06107822805643082,
0.6544327735900879,
0.3918980360031128,
-0.6643865704536438,
0.49327221512794495,
-0.06155909225344658,
0.263226717710495,
0.03705066069960594,
0.31250306963920593,
-0.16267813742160797,
-0.0012339061358943582,
-0.9487603306770325,
-0.6888877153396606,
0.8648629188537598,
0.12644565105438232,
0.035271573811769485,
0.4827824831008911,
0.6227968335151672,
0.10131575912237167,
0.17401446402072906,
-0.7328924536705017,
-0.4079582691192627,
-0.2994474470615387,
-0.2707708179950714,
-0.11714547127485275,
-0.04296621307730675,
-0.08169879764318466,
-0.7714436054229736,
0.6575180888175964,
-0.08549252152442932,
0.883941113948822,
0.3354620933532715,
0.0037800478748977184,
-0.10732012242078781,
-0.43693095445632935,
0.5068099498748779,
0.359161913394928,
-0.41096094250679016,
0.04427206143736839,
0.2668599784374237,
-0.6815653443336487,
0.06439395993947983,
0.20083224773406982,
0.19441361725330353,
0.10583856701850891,
0.5094441771507263,
0.91763836145401,
-0.09349261969327927,
0.0013314842944964767,
0.45596110820770264,
-0.06510626524686813,
-0.4663231074810028,
-0.25767460465431213,
0.11901530623435974,
-0.06159311905503273,
0.5492736101150513,
0.4275648891925812,
0.1963178813457489,
-0.1711202710866928,
-0.427888959646225,
0.357057124376297,
0.6784371137619019,
-0.33686280250549316,
-0.3984287679195404,
0.714080810546875,
-0.25866565108299255,
-0.1931326985359192,
0.8587145805358887,
-0.17779767513275146,
-0.5723231434822083,
1.173665165901184,
0.40922811627388,
0.9320030212402344,
-0.10447794944047928,
0.14754879474639893,
0.7744426727294922,
0.22534550726413727,
0.043512098491191864,
0.24319836497306824,
0.23663468658924103,
-0.6420415043830872,
-0.014839793555438519,
-0.5887598395347595,
0.026641596108675003,
0.6040288209915161,
-0.4397204518318176,
0.49289730191230774,
-0.7596753835678101,
-0.4102379381656647,
0.2587013840675354,
0.38037392497062683,
-1.0311156511306763,
0.3643732964992523,
0.09905529767274857,
0.7282635569572449,
-0.8269522190093994,
0.8949133157730103,
0.8226435780525208,
-0.4729922413825989,
-0.9099934697151184,
-0.09147968143224716,
-0.009958595037460327,
-1.0685166120529175,
0.5026406049728394,
0.512338399887085,
0.31652089953422546,
0.0021733383182436228,
-1.0059946775436401,
-0.5588729381561279,
1.3584009408950806,
0.5451934337615967,
-0.1873617023229599,
0.16645760834217072,
-0.10513202846050262,
0.29987210035324097,
-0.41511648893356323,
0.4134000241756439,
0.1578202247619629,
0.3608602285385132,
0.37756070494651794,
-0.8009530901908875,
0.16330118477344513,
-0.21141144633293152,
-0.05614504963159561,
0.28593727946281433,
-0.8220074772834778,
0.934640645980835,
-0.522872805595398,
-0.003024365985766053,
0.032680168747901917,
0.657240092754364,
0.24403446912765503,
0.24786359071731567,
0.4047396779060364,
0.8575312495231628,
0.5361109972000122,
-0.32871660590171814,
0.7931846380233765,
0.13671594858169556,
0.7627351880073547,
0.574072003364563,
0.3776482939720154,
0.4112888276576996,
0.4103495478630066,
-0.34662219882011414,
0.24571339786052704,
1.1039305925369263,
-0.49670282006263733,
0.43463078141212463,
0.3704451322555542,
-0.009383746422827244,
-0.19124452769756317,
0.07475896179676056,
-0.5383415222167969,
0.5407118797302246,
0.206863135099411,
-0.5827745795249939,
-0.2598517835140228,
0.17467640340328217,
0.06480008363723755,
-0.42269930243492126,
-0.27594926953315735,
0.4639086425304413,
0.029363958165049553,
-0.22859139740467072,
0.9179477095603943,
-0.021669955924153328,
0.8809049129486084,
-0.4904271066188812,
-0.04259736090898514,
-0.14512543380260468,
0.25170618295669556,
-0.3945600986480713,
-0.927642822265625,
0.20174071192741394,
-0.2895614802837372,
0.11084822565317154,
0.15155014395713806,
0.5900858044624329,
-0.3954542279243469,
-0.516511857509613,
0.16717982292175293,
0.26303866505622864,
0.5420956015586853,
-0.012790954671800137,
-1.156564474105835,
0.20196837186813354,
0.09588383883237839,
-0.6815128922462463,
0.4036724865436554,
0.5130319595336914,
0.13173282146453857,
0.70596843957901,
0.580511212348938,
-0.09520713239908218,
0.20592278242111206,
-0.23643216490745544,
0.8369495272636414,
-0.5968992114067078,
-0.12467915564775467,
-0.8625891804695129,
0.6811065077781677,
-0.12416847050189972,
-0.6575563549995422,
0.5109912753105164,
0.5769268870353699,
0.9776100516319275,
-0.13094554841518402,
0.550182044506073,
-0.27028778195381165,
-0.2763049006462097,
-0.5223395824432373,
0.6828703880310059,
-0.692226231098175,
-0.17270919680595398,
-0.2490764707326889,
-0.7437214851379395,
-0.3936540484428406,
0.6637485027313232,
-0.2712734043598175,
0.3766900897026062,
0.45175081491470337,
0.9232025146484375,
-0.38640114665031433,
-0.4599998891353607,
0.32885366678237915,
0.18411460518836975,
0.20107749104499817,
0.5507196187973022,
0.32356002926826477,
-0.844688355922699,
0.3765309751033783,
-0.5089188814163208,
-0.1748785525560379,
-0.23317505419254303,
-0.5896813869476318,
-1.0947706699371338,
-0.9034960269927979,
-0.6969645619392395,
-0.7375167012214661,
-0.25514891743659973,
0.9368165135383606,
1.157569169998169,
-0.7117342352867126,
-0.09600958973169327,
0.09731816500425339,
0.12421774864196777,
-0.21987077593803406,
-0.21133531630039215,
0.6766332387924194,
-0.05646790936589241,
-0.8600887656211853,
-0.43963778018951416,
-0.08424331247806549,
0.4502915143966675,
-0.0677747055888176,
-0.18800348043441772,
-0.19489669799804688,
-0.2920508086681366,
0.3338887691497803,
0.38026976585388184,
-0.6832877397537231,
-0.3234102129936218,
-0.2965920865535736,
-0.16742809116840363,
0.48690468072891235,
0.33338263630867004,
-0.6260143518447876,
0.3608779013156891,
0.3985612690448761,
0.36024290323257446,
0.9708885550498962,
-0.3369305729866028,
-0.027192259207367897,
-0.7160753607749939,
0.5195418000221252,
-0.24904851615428925,
0.4700694978237152,
0.39659810066223145,
-0.38827604055404663,
0.501175045967102,
0.4366818070411682,
-0.5280241966247559,
-0.8708360195159912,
-0.10494466871023178,
-1.2251996994018555,
-0.10772701352834702,
0.9016115069389343,
-0.37101200222969055,
-0.5534720420837402,
0.46562129259109497,
-0.27059072256088257,
0.7088873386383057,
-0.13145509362220764,
0.544065535068512,
0.3527217209339142,
-0.08047047257423401,
-0.6739746332168579,
-0.5427137017250061,
0.4835464060306549,
0.012146802619099617,
-0.6863905787467957,
-0.4916985034942627,
-0.010612525045871735,
0.7224859595298767,
0.18947023153305054,
0.3822053372859955,
-0.08298477530479431,
0.09854316711425781,
0.0607246495783329,
0.4909673035144806,
-0.34109944105148315,
-0.09098652750253677,
-0.3982679545879364,
0.08321408182382584,
-0.12499485909938812,
-0.7752440571784973
] |
VietAI/envit5-translation
|
VietAI
| 2022-11-21T09:59:08Z | 8,931 | 9 |
transformers
|
[
"transformers",
"pytorch",
"tf",
"jax",
"t5",
"text2text-generation",
"translation",
"vi",
"en",
"dataset:cc100",
"license:openrail",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] |
translation
| 2022-10-06T14:53:36Z |
---
language:
- vi
- en
datasets:
- cc100
tags:
- translation
widget:
- text: "vi: VietAI là tổ chức phi lợi nhuận với sứ mệnh ươm mầm tài năng về trí tuệ nhân tạo và xây dựng một cộng đồng các chuyên gia trong lĩnh vực trí tuệ nhân tạo đẳng cấp quốc tế tại Việt Nam."
license: openrail
---
# EnViT5 Translation
[](https://paperswithcode.com/sota/machine-translation-on-iwslt2015-english-1?p=mtet-multi-domain-translation-for-english)
[](https://paperswithcode.com/sota/on-phomt?p=mtet-multi-domain-translation-for-english-and)
State-of-the-art English-Vietnamese and Vietnamese-English Translation models trained on [MTet](https://research.vietai.org/mtet/), [PhoMT](https://github.com/VinAIResearch/PhoMT).
```python
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
model_name = "VietAI/envit5-translation"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
inputs = [
"vi: VietAI là tổ chức phi lợi nhuận với sứ mệnh ươm mầm tài năng về trí tuệ nhân tạo và xây dựng một cộng đồng các chuyên gia trong lĩnh vực trí tuệ nhân tạo đẳng cấp quốc tế tại Việt Nam.",
"vi: Theo báo cáo mới nhất của Linkedin về danh sách việc làm triển vọng với mức lương hấp dẫn năm 2020, các chức danh công việc liên quan đến AI như Chuyên gia AI (Artificial Intelligence Specialist), Kỹ sư ML (Machine Learning Engineer) đều xếp thứ hạng cao.",
"en: Our teams aspire to make discoveries that impact everyone, and core to our approach is sharing our research and tools to fuel progress in the field.",
"en: We're on a journey to advance and democratize artificial intelligence through open source and open science."
]
outputs = model.generate(tokenizer(inputs, return_tensors="pt", padding=True).input_ids.to('cuda'), max_length=512)
print(tokenizer.batch_decode(outputs, skip_special_tokens=True))
# ['en: VietAI is a non-profit organization with the mission of nurturing artificial intelligence talents and building an international - class community of artificial intelligence experts in Vietnam.',
# 'en: According to the latest LinkedIn report on the 2020 list of attractive and promising jobs, AI - related job titles such as AI Specialist, ML Engineer and ML Engineer all rank high.',
# 'vi: Nhóm chúng tôi khao khát tạo ra những khám phá có ảnh hưởng đến mọi người, và cốt lõi trong cách tiếp cận của chúng tôi là chia sẻ nghiên cứu và công cụ để thúc đẩy sự tiến bộ trong lĩnh vực này.',
# 'vi: Chúng ta đang trên hành trình tiến bộ và dân chủ hoá trí tuệ nhân tạo thông qua mã nguồn mở và khoa học mở.']
```
## Results

## Citation
```
@misc{https://doi.org/10.48550/arxiv.2210.05610,
doi = {10.48550/ARXIV.2210.05610},
author = {Ngo, Chinh and Trinh, Trieu H. and Phan, Long and Tran, Hieu and Dang, Tai and Nguyen, Hieu and Nguyen, Minh and Luong, Minh-Thang},
title = {MTet: Multi-domain Translation for English and Vietnamese},
publisher = {arXiv},
year = {2022},
}
```
|
[
-0.2921631634235382,
-0.5136999487876892,
0.40557029843330383,
0.21818308532238007,
-0.24162141978740692,
-0.12631367146968842,
-0.09028484672307968,
-0.2969439625740051,
0.10245207697153091,
0.36244088411331177,
-0.4130028486251831,
-0.678618848323822,
-0.742596447467804,
0.4636508524417877,
-0.07084047049283981,
0.7272303700447083,
-0.40116479992866516,
0.046310581266880035,
-0.21415863931179047,
-0.3825036585330963,
-0.4895657002925873,
-0.3996783494949341,
-0.6221442222595215,
-0.12069443613290787,
0.2251085638999939,
0.23040853440761566,
0.2528221905231476,
0.6539581418037415,
0.794215202331543,
0.40567389130592346,
0.2606165111064911,
0.43915680050849915,
-0.2310408651828766,
-0.11219856142997742,
0.1846000701189041,
-0.23681482672691345,
-0.6307579278945923,
0.21826010942459106,
0.4828169047832489,
0.40314561128616333,
0.34467530250549316,
0.3166465163230896,
0.07771986722946167,
0.6755282878875732,
-0.18948006629943848,
0.31818729639053345,
-0.4872805178165436,
-0.15514056384563446,
-0.08456775546073914,
-0.28964391350746155,
-0.25252166390419006,
-0.3175513446331024,
0.0538855604827404,
-0.7276242971420288,
0.07058395445346832,
0.025075888261198997,
1.33392333984375,
0.3391541540622711,
-0.5655249953269958,
0.11378058046102524,
-0.3990410566329956,
1.0901304483413696,
-0.8554361462593079,
0.3314341902732849,
0.42493993043899536,
0.17336927354335785,
0.05909101292490959,
-0.8237327933311462,
-0.5462267398834229,
-0.0855637714266777,
-0.15366630256175995,
0.6024725437164307,
-0.22740070521831512,
-0.1075657531619072,
0.09767282754182816,
0.11093772947788239,
-0.8950167894363403,
0.05228344351053238,
-0.6243608593940735,
-0.04405321925878525,
0.7207937240600586,
-0.0071823629550635815,
0.24565987288951874,
-0.0927155539393425,
-0.5908107161521912,
-0.2539459764957428,
-0.5536335110664368,
0.10467913746833801,
0.09965486079454422,
0.10607024282217026,
-0.54725182056427,
0.6544752717018127,
-0.10398543626070023,
0.7018589377403259,
-0.00833958014845848,
-0.09049295634031296,
0.6050112247467041,
-0.6812759637832642,
-0.3276321291923523,
-0.27276811003685,
1.1503546237945557,
0.3389146625995636,
0.27384528517723083,
0.05083729326725006,
-0.10328347980976105,
-0.21197250485420227,
0.05303609371185303,
-0.708858847618103,
-0.03056000918149948,
0.4411839246749878,
-0.6239112019538879,
-0.19562724232673645,
0.3499271273612976,
-0.5562036037445068,
-0.0676569789648056,
-0.15253682434558868,
0.5550022721290588,
-0.3998003602027893,
-0.26808008551597595,
-0.07143747061491013,
-0.0799676850438118,
0.414371132850647,
0.358223557472229,
-0.2755560278892517,
-0.28460487723350525,
0.453416109085083,
0.9359486699104309,
-0.3016613721847534,
-0.6381182670593262,
-0.3652443587779999,
0.029151463881134987,
-0.12534867227077484,
0.45381784439086914,
-0.22831393778324127,
-0.2364727109670639,
-0.08940549939870834,
0.24606435000896454,
-0.43986037373542786,
-0.41089579463005066,
0.5205279588699341,
-0.33781006932258606,
0.3381769061088562,
-0.0952143445611,
-0.3926038444042206,
-0.41345253586769104,
0.27887874841690063,
-0.5671184062957764,
1.1292794942855835,
0.2604229748249054,
-0.7641032934188843,
0.05076878145337105,
-0.9236881136894226,
-0.24541805684566498,
-0.06644722819328308,
-0.13564461469650269,
-0.6537426114082336,
-0.2739109694957733,
0.30604004859924316,
0.4701080024242401,
-0.45075955986976624,
0.13969333469867706,
-0.11421376466751099,
-0.09790527820587158,
0.25852885842323303,
-0.2771173417568207,
1.2102160453796387,
0.25067999958992004,
-0.5645757913589478,
0.41356542706489563,
-0.5900924205780029,
0.012166821397840977,
0.2767561376094818,
-0.30143752694129944,
-0.19971022009849548,
-0.36630573868751526,
-0.010505381040275097,
0.5366218090057373,
0.41903725266456604,
-0.45620620250701904,
0.28587067127227783,
-0.42795059084892273,
0.6246514916419983,
0.8340524435043335,
0.05087590962648392,
0.33258599042892456,
-0.30375975370407104,
0.5106760263442993,
0.42611148953437805,
0.2331816852092743,
0.015126417391002178,
-0.8163293600082397,
-0.7307448387145996,
-0.3711819350719452,
0.2880603075027466,
0.7420137524604797,
-1.1046994924545288,
0.605256199836731,
-0.4909663498401642,
-0.7556770443916321,
-1.1149866580963135,
-0.18632912635803223,
0.44710296392440796,
0.5134286284446716,
0.7291299700737,
-0.3284514546394348,
-0.7438034415245056,
-0.7603239417076111,
-0.41836416721343994,
-0.17778068780899048,
0.06383492052555084,
0.33541223406791687,
0.8812811970710754,
-0.4803285300731659,
0.7145329117774963,
-0.3751581907272339,
-0.3593764007091522,
-0.01141943596303463,
0.13282300531864166,
0.3006598651409149,
0.7055983543395996,
0.6024818420410156,
-1.0632065534591675,
-0.7823051810264587,
0.18453192710876465,
-1.0067092180252075,
0.16541345417499542,
-0.16376884281635284,
-0.4049128592014313,
0.2569587826728821,
0.26054680347442627,
-0.7334298491477966,
0.5675142407417297,
0.33440282940864563,
-0.4876507520675659,
0.6255735158920288,
-0.1995178759098053,
0.3636784255504608,
-1.2010829448699951,
0.25969552993774414,
0.006966068875044584,
-0.17937476933002472,
-0.5543602108955383,
0.16337481141090393,
-0.10121829807758331,
0.04769018292427063,
-0.6186179518699646,
0.7531951665878296,
-0.5395265221595764,
0.2596261501312256,
0.12064557522535324,
0.14272430539131165,
0.07141150534152985,
0.549346387386322,
-0.18257223069667816,
0.8319501876831055,
0.5936099886894226,
-0.628811240196228,
0.4955557584762573,
0.39698925614356995,
-0.0377710796892643,
0.29194730520248413,
-0.7180397510528564,
0.067039355635643,
0.036291804164648056,
0.17170527577400208,
-0.9314534664154053,
0.02100881189107895,
0.459831178188324,
-0.8607295155525208,
0.058549877256155014,
-0.004971743561327457,
-0.41952863335609436,
-0.4399428963661194,
-0.38597938418388367,
0.5133137106895447,
0.46846476197242737,
-0.41017642617225647,
0.36638981103897095,
0.2298336923122406,
0.06623321026563644,
-0.6959562301635742,
-0.8317702412605286,
-0.09016253054141998,
-0.27864688634872437,
-0.6883728504180908,
0.4462893605232239,
-0.21631556749343872,
-0.05455109104514122,
0.09855151176452637,
0.15681952238082886,
-0.3379708230495453,
0.045687928795814514,
0.01652887836098671,
0.563098132610321,
-0.4064391255378723,
-0.3605211675167084,
-0.22607915103435516,
-0.22390474379062653,
-0.05661837384104729,
-0.6607013940811157,
0.3687310516834259,
-0.40596747398376465,
-0.2652682662010193,
-0.6049451231956482,
0.2976151704788208,
0.86827152967453,
-0.6713530421257019,
0.9149783253669739,
1.09250807762146,
-0.3048889935016632,
0.3220420479774475,
-0.4835381805896759,
-0.08191917091608047,
-0.44201797246932983,
0.435184121131897,
-0.5122045278549194,
-0.7133594155311584,
0.5228475332260132,
0.04497191309928894,
0.17442795634269714,
1.1646450757980347,
0.5842104554176331,
-0.04866852983832359,
0.9792000651359558,
0.4254015386104584,
-0.07549651712179184,
0.2726922333240509,
-0.807346761226654,
0.24685916304588318,
-0.8235053420066833,
-0.23391595482826233,
-0.3677724599838257,
-0.13448524475097656,
-0.9858646392822266,
-0.6896570920944214,
0.3718756437301636,
-0.12792041897773743,
-0.3059503734111786,
0.5215265154838562,
-0.8243457674980164,
-0.11154782027006149,
0.8151310682296753,
-0.18121734261512756,
0.08485421538352966,
0.06961876153945923,
-0.23257339000701904,
-0.05626929551362991,
-0.5879688262939453,
-0.36569085717201233,
1.1136401891708374,
0.18619731068611145,
0.21464598178863525,
0.06456680595874786,
0.6518917679786682,
0.1330890655517578,
-0.07570246607065201,
-0.5272506475448608,
0.5401182770729065,
-0.29761141538619995,
-0.3725658357143402,
-0.40945035219192505,
-0.551360011100769,
-1.2026610374450684,
0.2537437081336975,
-0.038389354944229126,
-0.3519749641418457,
0.4127758741378784,
-0.22539444267749786,
-0.22502517700195312,
0.4384043514728546,
-0.5142714977264404,
1.0538402795791626,
-0.38259637355804443,
-0.3340066969394684,
-0.06951737403869629,
-0.8407734036445618,
0.1359531581401825,
-0.010151618160307407,
0.18249772489070892,
-0.05082658678293228,
-0.03693787381052971,
0.6925744414329529,
-0.35849887132644653,
0.6611061096191406,
-0.14760546386241913,
0.14751370251178741,
0.4388129711151123,
-0.20195649564266205,
0.5197195410728455,
0.058542512357234955,
-0.2527230381965637,
0.4761059880256653,
0.015120009891688824,
-0.4985727071762085,
-0.27103933691978455,
0.6045644879341125,
-1.1162855625152588,
-0.3187773823738098,
-0.6279458403587341,
-0.4789263904094696,
0.4004078209400177,
0.4966770112514496,
0.6788296699523926,
0.2760505974292755,
0.05823320150375366,
0.2524144649505615,
0.35418960452079773,
-0.34147557616233826,
0.2831786572933197,
0.37184181809425354,
0.1226971298456192,
-0.4972766637802124,
1.2400684356689453,
0.41765719652175903,
0.05690578743815422,
0.5199506282806396,
-0.0986156314611435,
-0.2133341133594513,
-0.3406848609447479,
-0.5362851619720459,
0.5428068041801453,
-0.5436949729919434,
-0.322337806224823,
-0.7170304656028748,
-0.46961724758148193,
-0.9216449856758118,
-0.19031471014022827,
-0.3633931577205658,
-0.42835474014282227,
-0.3248521089553833,
-0.020449304953217506,
0.38765111565589905,
0.5084134340286255,
-0.008038978092372417,
0.032514866441488266,
-0.5884371995925903,
0.36861714720726013,
0.010712021961808205,
0.13444027304649353,
-0.18900494277477264,
-0.5000199675559998,
-0.512779712677002,
0.16003312170505524,
-0.48723912239074707,
-0.7906572222709656,
0.8099234104156494,
0.06070518493652344,
0.6736357808113098,
0.17322473227977753,
0.14343644678592682,
0.6158304810523987,
-0.35732248425483704,
0.9736173152923584,
0.018896127119660378,
-0.6243763566017151,
0.566082775592804,
-0.3195522427558899,
0.327468603849411,
0.44780412316322327,
0.5349332690238953,
-0.5599179267883301,
-0.30602288246154785,
-0.7740169763565063,
-1.1907557249069214,
0.6576203107833862,
0.5243733525276184,
-0.31626230478286743,
0.1645599603652954,
0.16803917288780212,
0.044839873909950256,
0.2003057599067688,
-0.8538965582847595,
-0.7295680046081543,
-0.35340768098831177,
-0.39582544565200806,
0.10457855463027954,
-0.03441355377435684,
-0.18086668848991394,
-0.5543853640556335,
1.1050282716751099,
0.03219117969274521,
0.8655591607093811,
0.5077992081642151,
-0.10171294212341309,
0.2643566429615021,
0.0707671195268631,
0.7951031923294067,
0.5883362889289856,
-0.18235716223716736,
0.09494427591562271,
0.1918039619922638,
-0.5592849254608154,
0.016194237396121025,
0.2275484800338745,
-0.26722413301467896,
0.2324587106704712,
0.47537776827812195,
1.0722453594207764,
-0.3585885465145111,
-0.3310270309448242,
0.5989434719085693,
-0.020504755899310112,
-0.2866540849208832,
-0.6223516464233398,
-0.2884601950645447,
-0.05316988751292229,
0.1164979413151741,
0.33628520369529724,
0.2933182120323181,
0.030098430812358856,
-0.24384982883930206,
0.07707894593477249,
0.11017749458551407,
-0.44799432158470154,
-0.3772321045398712,
0.9163302779197693,
0.20498406887054443,
-0.216274693608284,
0.7619426846504211,
-0.4024547338485718,
-0.6219033598899841,
0.8902660608291626,
0.3753070831298828,
1.1938329935073853,
-0.16566164791584015,
0.09850021451711655,
0.7057080268859863,
0.3489007353782654,
-0.02156476303935051,
0.4352761507034302,
0.3725631833076477,
-0.5039234757423401,
-0.27086713910102844,
-0.375250905752182,
0.0011343234218657017,
0.1945839375257492,
-0.5836277008056641,
0.2590228021144867,
-0.01888507790863514,
-0.20331044495105743,
-0.29022011160850525,
0.10795505344867706,
-1.1052610874176025,
0.29153576493263245,
-0.23140661418437958,
0.6626594662666321,
-0.6597086191177368,
0.9243156909942627,
1.078669786453247,
-0.7166157364845276,
-0.7850813865661621,
-0.054282817989587784,
-0.08733516186475754,
-0.7399928569793701,
0.5955797433853149,
0.2503593862056732,
-0.03107619658112526,
0.39838898181915283,
-0.6057025790214539,
-0.9557821154594421,
1.3997246026992798,
0.25955554842948914,
-0.05590440705418587,
-0.008272159844636917,
0.30041608214378357,
0.35273873805999756,
-0.49022558331489563,
0.4974863529205322,
0.34526991844177246,
0.8294194340705872,
-0.2884061932563782,
-1.0259053707122803,
0.08972647041082382,
-0.6109785437583923,
-0.08317217975854874,
-0.16057151556015015,
-0.9322669506072998,
1.1238701343536377,
-0.26086103916168213,
-0.09149191528558731,
-0.05815371870994568,
0.8048053979873657,
0.41902631521224976,
0.3990355134010315,
0.2507677972316742,
0.3596106171607971,
0.6393402218818665,
-0.16613787412643433,
0.9816433787345886,
-0.4510212540626526,
0.46925103664398193,
0.7158122658729553,
0.18600568175315857,
0.7517688274383545,
0.43744921684265137,
-0.299053430557251,
0.47464391589164734,
0.8402270674705505,
-0.3657090961933136,
0.4242369532585144,
-0.21442843973636627,
0.04915450140833855,
-0.08419281244277954,
-0.13870011270046234,
-0.7238498330116272,
0.4915405213832855,
0.08248266577720642,
-0.3217378854751587,
0.28223711252212524,
0.11492336541414261,
0.16737188398838043,
-0.08795744925737381,
-0.06988970190286636,
0.4505142271518707,
0.31026047468185425,
-0.7400622367858887,
0.8811038732528687,
0.2808445394039154,
0.8251150250434875,
-0.46793311834335327,
-0.19981618225574493,
-0.10510625690221786,
0.16091449558734894,
-0.1593678742647171,
-0.6907225251197815,
0.06731106340885162,
-0.02552814409136772,
-0.13631847500801086,
-0.42982959747314453,
0.4932732582092285,
-0.6067125797271729,
-0.6484465599060059,
0.4415317177772522,
0.5876629948616028,
0.4600709080696106,
0.020372610539197922,
-1.0521585941314697,
-0.32752716541290283,
0.22272449731826782,
-0.3492450714111328,
0.01824110746383667,
0.6703366637229919,
-0.0823366791009903,
0.5492618680000305,
0.49977612495422363,
0.08097290247678757,
0.24003911018371582,
-0.12958073616027832,
0.6610662937164307,
-0.5247092247009277,
-0.4986480474472046,
-0.9166064262390137,
0.8398554921150208,
-0.04880761355161667,
-0.594562292098999,
0.9635680317878723,
0.7980169653892517,
1.0497263669967651,
-0.2955627739429474,
1.0240803956985474,
-0.09950842708349228,
0.31304478645324707,
-0.31316426396369934,
0.871234655380249,
-0.9351734519004822,
0.04021809250116348,
-0.12593531608581543,
-0.688326358795166,
-0.18048018217086792,
0.6272100806236267,
-0.2942170798778534,
0.17639097571372986,
0.8177371025085449,
0.5918226838111877,
0.027547040954232216,
-0.5589955449104309,
0.23951806128025055,
0.5716280937194824,
0.40229496359825134,
0.5660127997398376,
0.2777051627635956,
-0.9290516376495361,
0.7085093855857849,
-0.3193102180957794,
0.021163836121559143,
-0.46160027384757996,
-0.4611344337463379,
-0.7306013703346252,
-0.9162790775299072,
-0.49820855259895325,
-0.48609253764152527,
-0.02910107746720314,
0.8732119798660278,
0.5229949355125427,
-0.9416587948799133,
-0.2861033082008362,
0.07086402177810669,
0.1962927132844925,
-0.7100040912628174,
-0.24430127441883087,
0.7030487060546875,
-0.0034403412137180567,
-0.8624787926673889,
0.3591766357421875,
0.10487179458141327,
0.11251508444547653,
-0.10887078940868378,
-0.3077375590801239,
-0.7024017572402954,
-0.05938591808080673,
0.6099132299423218,
0.26171204447746277,
-0.86165851354599,
-0.08716803789138794,
0.31444427371025085,
-0.495164155960083,
0.28040841221809387,
0.3380659222602844,
-0.5577412843704224,
0.4494209587574005,
0.8666306734085083,
0.47470951080322266,
0.4589393734931946,
-0.02565985545516014,
0.5369595885276794,
-0.7013576030731201,
0.2189827561378479,
0.1147407591342926,
0.3326336741447449,
0.366056889295578,
-0.48513659834861755,
0.9816915392875671,
0.5269523859024048,
-0.6458450555801392,
-0.8850157260894775,
-0.030969155952334404,
-0.9962503910064697,
-0.14815716445446014,
1.0790475606918335,
-0.2883789539337158,
-0.11279354244470596,
-0.10001201182603836,
-0.10440845787525177,
0.8643677234649658,
-0.32137927412986755,
0.4763304889202118,
0.5685856938362122,
-0.08600526303052902,
0.013870884664356709,
-1.0408458709716797,
0.34984496235847473,
0.446274071931839,
-0.744625985622406,
-0.34164702892303467,
0.005513206589967012,
-0.009228555485606194,
0.14285887777805328,
0.6891215443611145,
-0.010144315659999847,
0.17004002630710602,
-0.11685004085302353,
0.3799206614494324,
-0.26292866468429565,
-0.18847313523292542,
-0.17311519384384155,
-0.2060156613588333,
-0.14936420321464539,
-0.4776822328567505
] |
TheBloke/Llama-2-7B-Chat-AWQ
|
TheBloke
| 2023-11-09T18:21:14Z | 8,929 | 6 |
transformers
|
[
"transformers",
"safetensors",
"llama",
"text-generation",
"facebook",
"meta",
"pytorch",
"llama-2",
"en",
"arxiv:2307.09288",
"base_model:meta-llama/Llama-2-7b-chat-hf",
"license:llama2",
"text-generation-inference",
"4-bit",
"region:us"
] |
text-generation
| 2023-09-18T21:30:22Z |
---
language:
- en
license: llama2
tags:
- facebook
- meta
- pytorch
- llama
- llama-2
model_name: Llama 2 7B Chat
arxiv: 2307.09288
base_model: meta-llama/Llama-2-7b-chat-hf
inference: false
model_creator: Meta Llama 2
model_type: llama
pipeline_tag: text-generation
prompt_template: '[INST] <<SYS>>
You are a helpful, respectful and honest assistant. Always answer as helpfully as
possible, while being safe. Your answers should not include any harmful, unethical,
racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses
are socially unbiased and positive in nature. If a question does not make any sense,
or is not factually coherent, explain why instead of answering something not correct.
If you don''t know the answer to a question, please don''t share false information.
<</SYS>>
{prompt}[/INST]
'
quantized_by: TheBloke
---
<!-- header start -->
<!-- 200823 -->
<div style="width: auto; margin-left: auto; margin-right: auto">
<img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
</div>
<div style="display: flex; justify-content: space-between; width: 100%;">
<div style="display: flex; flex-direction: column; align-items: flex-start;">
<p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://discord.gg/theblokeai">Chat & support: TheBloke's Discord server</a></p>
</div>
<div style="display: flex; flex-direction: column; align-items: flex-end;">
<p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://www.patreon.com/TheBlokeAI">Want to contribute? TheBloke's Patreon page</a></p>
</div>
</div>
<div style="text-align:center; margin-top: 0em; margin-bottom: 0em"><p style="margin-top: 0.25em; margin-bottom: 0em;">TheBloke's LLM work is generously supported by a grant from <a href="https://a16z.com">andreessen horowitz (a16z)</a></p></div>
<hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
<!-- header end -->
# Llama 2 7B Chat - AWQ
- Model creator: [Meta Llama 2](https://huggingface.co/meta-llama)
- Original model: [Llama 2 7B Chat](https://huggingface.co/meta-llama/Llama-2-7b-chat-hf)
<!-- description start -->
## Description
This repo contains AWQ model files for [Meta Llama 2's Llama 2 7B Chat](https://huggingface.co/meta-llama/Llama-2-7b-chat-hf).
### About AWQ
AWQ is an efficient, accurate and blazing-fast low-bit weight quantization method, currently supporting 4-bit quantization. Compared to GPTQ, it offers faster Transformers-based inference.
It is also now supported by continuous batching server [vLLM](https://github.com/vllm-project/vllm), allowing use of AWQ models for high-throughput concurrent inference in multi-user server scenarios. Note that, at the time of writing, overall throughput is still lower than running vLLM with unquantised models, however using AWQ enables using much smaller GPUs which can lead to easier deployment and overall cost savings. For example, a 70B model can be run on 1 x 48GB GPU instead of 2 x 80GB.
<!-- description end -->
<!-- repositories-available start -->
## Repositories available
* [AWQ model(s) for GPU inference.](https://huggingface.co/TheBloke/Llama-2-7b-Chat-AWQ)
* [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/Llama-2-7b-Chat-GPTQ)
* [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/Llama-2-7b-Chat-GGUF)
* [Meta Llama 2's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/meta-llama/Llama-2-7b-chat-hf)
<!-- repositories-available end -->
<!-- prompt-template start -->
## Prompt template: Llama-2-Chat
```
[INST] <<SYS>>
You are a helpful, respectful and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature. If a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.
<</SYS>>
{prompt}[/INST]
```
<!-- prompt-template end -->
<!-- README_AWQ.md-provided-files start -->
## Provided files and AWQ parameters
For my first release of AWQ models, I am releasing 128g models only. I will consider adding 32g as well if there is interest, and once I have done perplexity and evaluation comparisons, but at this time 32g models are still not fully tested with AutoAWQ and vLLM.
Models are released as sharded safetensors files.
| Branch | Bits | GS | AWQ Dataset | Seq Len | Size |
| ------ | ---- | -- | ----------- | ------- | ---- |
| [main](https://huggingface.co/TheBloke/Llama-2-7b-Chat-AWQ/tree/main) | 4 | 128 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 3.89 GB
<!-- README_AWQ.md-provided-files end -->
<!-- README_AWQ.md-use-from-vllm start -->
## Serving this model from vLLM
Documentation on installing and using vLLM [can be found here](https://vllm.readthedocs.io/en/latest/).
- When using vLLM as a server, pass the `--quantization awq` parameter, for example:
```shell
python3 python -m vllm.entrypoints.api_server --model TheBloke/Llama-2-7b-Chat-AWQ --quantization awq
```
When using vLLM from Python code, pass the `quantization=awq` parameter, for example:
```python
from vllm import LLM, SamplingParams
prompts = [
"Hello, my name is",
"The president of the United States is",
"The capital of France is",
"The future of AI is",
]
sampling_params = SamplingParams(temperature=0.8, top_p=0.95)
llm = LLM(model="TheBloke/Llama-2-7b-Chat-AWQ", quantization="awq")
outputs = llm.generate(prompts, sampling_params)
# Print the outputs.
for output in outputs:
prompt = output.prompt
generated_text = output.outputs[0].text
print(f"Prompt: {prompt!r}, Generated text: {generated_text!r}")
```
<!-- README_AWQ.md-use-from-vllm start -->
<!-- README_AWQ.md-use-from-python start -->
## How to use this AWQ model from Python code
### Install the necessary packages
Requires: [AutoAWQ](https://github.com/casper-hansen/AutoAWQ) 0.0.2 or later
```shell
pip3 install autoawq
```
If you have problems installing [AutoAWQ](https://github.com/casper-hansen/AutoAWQ) using the pre-built wheels, install it from source instead:
```shell
pip3 uninstall -y autoawq
git clone https://github.com/casper-hansen/AutoAWQ
cd AutoAWQ
pip3 install .
```
### You can then try the following example code
```python
from awq import AutoAWQForCausalLM
from transformers import AutoTokenizer
model_name_or_path = "TheBloke/Llama-2-7b-Chat-AWQ"
# Load model
model = AutoAWQForCausalLM.from_quantized(model_name_or_path, fuse_layers=True,
trust_remote_code=False, safetensors=True)
tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, trust_remote_code=False)
prompt = "Tell me about AI"
prompt_template=f'''[INST] <<SYS>>
You are a helpful, respectful and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature. If a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.
<</SYS>>
{prompt}[/INST]
'''
print("\n\n*** Generate:")
tokens = tokenizer(
prompt_template,
return_tensors='pt'
).input_ids.cuda()
# Generate output
generation_output = model.generate(
tokens,
do_sample=True,
temperature=0.7,
top_p=0.95,
top_k=40,
max_new_tokens=512
)
print("Output: ", tokenizer.decode(generation_output[0]))
# Inference can also be done using transformers' pipeline
from transformers import pipeline
print("*** Pipeline:")
pipe = pipeline(
"text-generation",
model=model,
tokenizer=tokenizer,
max_new_tokens=512,
do_sample=True,
temperature=0.7,
top_p=0.95,
top_k=40,
repetition_penalty=1.1
)
print(pipe(prompt_template)[0]['generated_text'])
```
<!-- README_AWQ.md-use-from-python end -->
<!-- README_AWQ.md-compatibility start -->
## Compatibility
The files provided are tested to work with [AutoAWQ](https://github.com/casper-hansen/AutoAWQ), and [vLLM](https://github.com/vllm-project/vllm).
[Huggingface Text Generation Inference (TGI)](https://github.com/huggingface/text-generation-inference) is not yet compatible with AWQ, but a PR is open which should bring support soon: [TGI PR #781](https://github.com/huggingface/text-generation-inference/issues/781).
<!-- README_AWQ.md-compatibility end -->
<!-- footer start -->
<!-- 200823 -->
## Discord
For further support, and discussions on these models and AI in general, join us at:
[TheBloke AI's Discord server](https://discord.gg/theblokeai)
## Thanks, and how to contribute
Thanks to the [chirper.ai](https://chirper.ai) team!
Thanks to Clay from [gpus.llm-utils.org](llm-utils)!
I've had a lot of people ask if they can contribute. I enjoy providing models and helping people, and would love to be able to spend even more time doing it, as well as expanding into new projects like fine tuning/training.
If you're able and willing to contribute it will be most gratefully received and will help me to keep providing more models, and to start work on new AI projects.
Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.
* Patreon: https://patreon.com/TheBlokeAI
* Ko-Fi: https://ko-fi.com/TheBlokeAI
**Special thanks to**: Aemon Algiz.
**Patreon special mentions**: Alicia Loh, Stephen Murray, K, Ajan Kanaga, RoA, Magnesian, Deo Leter, Olakabola, Eugene Pentland, zynix, Deep Realms, Raymond Fosdick, Elijah Stavena, Iucharbius, Erik Bjäreholt, Luis Javier Navarrete Lozano, Nicholas, theTransient, John Detwiler, alfie_i, knownsqashed, Mano Prime, Willem Michiel, Enrico Ros, LangChain4j, OG, Michael Dempsey, Pierre Kircher, Pedro Madruga, James Bentley, Thomas Belote, Luke @flexchar, Leonard Tan, Johann-Peter Hartmann, Illia Dulskyi, Fen Risland, Chadd, S_X, Jeff Scroggin, Ken Nordquist, Sean Connelly, Artur Olbinski, Swaroop Kallakuri, Jack West, Ai Maven, David Ziegler, Russ Johnson, transmissions 11, John Villwock, Alps Aficionado, Clay Pascal, Viktor Bowallius, Subspace Studios, Rainer Wilmers, Trenton Dambrowitz, vamX, Michael Levine, 준교 김, Brandon Frisco, Kalila, Trailburnt, Randy H, Talal Aujan, Nathan Dryer, Vadim, 阿明, ReadyPlayerEmma, Tiffany J. Kim, George Stoitzev, Spencer Kim, Jerry Meng, Gabriel Tamborski, Cory Kujawski, Jeffrey Morgan, Spiking Neurons AB, Edmond Seymore, Alexandros Triantafyllidis, Lone Striker, Cap'n Zoog, Nikolai Manek, danny, ya boyyy, Derek Yates, usrbinkat, Mandus, TL, Nathan LeClaire, subjectnull, Imad Khwaja, webtim, Raven Klaugh, Asp the Wyvern, Gabriel Puliatti, Caitlyn Gatomon, Joseph William Delisle, Jonathan Leane, Luke Pendergrass, SuperWojo, Sebastain Graf, Will Dee, Fred von Graf, Andrey, Dan Guido, Daniel P. Andersen, Nitin Borwankar, Elle, Vitor Caleffi, biorpg, jjj, NimbleBox.ai, Pieter, Matthew Berman, terasurfer, Michael Davis, Alex, Stanislav Ovsiannikov
Thank you to all my generous patrons and donaters!
And thank you again to a16z for their generous grant.
<!-- footer end -->
# Original model card: Meta Llama 2's Llama 2 7B Chat
# **Llama 2**
Llama 2 is a collection of pretrained and fine-tuned generative text models ranging in scale from 7 billion to 70 billion parameters. This is the repository for the 7B fine-tuned model, optimized for dialogue use cases and converted for the Hugging Face Transformers format. Links to other models can be found in the index at the bottom.
## Model Details
*Note: Use of this model is governed by the Meta license. In order to download the model weights and tokenizer, please visit the [website](https://ai.meta.com/resources/models-and-libraries/llama-downloads/) and accept our License before requesting access here.*
Meta developed and publicly released the Llama 2 family of large language models (LLMs), a collection of pretrained and fine-tuned generative text models ranging in scale from 7 billion to 70 billion parameters. Our fine-tuned LLMs, called Llama-2-Chat, are optimized for dialogue use cases. Llama-2-Chat models outperform open-source chat models on most benchmarks we tested, and in our human evaluations for helpfulness and safety, are on par with some popular closed-source models like ChatGPT and PaLM.
**Model Developers** Meta
**Variations** Llama 2 comes in a range of parameter sizes — 7B, 13B, and 70B — as well as pretrained and fine-tuned variations.
**Input** Models input text only.
**Output** Models generate text only.
**Model Architecture** Llama 2 is an auto-regressive language model that uses an optimized transformer architecture. The tuned versions use supervised fine-tuning (SFT) and reinforcement learning with human feedback (RLHF) to align to human preferences for helpfulness and safety.
||Training Data|Params|Content Length|GQA|Tokens|LR|
|---|---|---|---|---|---|---|
|Llama 2|*A new mix of publicly available online data*|7B|4k|✗|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.49180734157562256,
-0.8341929912567139,
0.33444955945014954,
0.09894514083862305,
-0.30030980706214905,
-0.0480249859392643,
0.12110335379838943,
-0.5109254717826843,
0.01925278641283512,
0.2831525504589081,
-0.6928589940071106,
-0.4821052849292755,
-0.3296735882759094,
-0.061364300549030304,
-0.365577757358551,
0.9423869252204895,
0.2168111801147461,
-0.34840160608291626,
-0.2971929907798767,
-0.15426944196224213,
-0.29268234968185425,
-0.5929523706436157,
-0.6532333493232727,
-0.2319508045911789,
0.1838020384311676,
0.2091042399406433,
0.7707351446151733,
0.692584216594696,
0.25732943415641785,
0.44121253490448,
-0.09691663086414337,
0.17442123591899872,
-0.4004451334476471,
0.008354611694812775,
0.2654951214790344,
-0.3147098124027252,
-0.5805400013923645,
0.037694308906793594,
0.42869022488594055,
0.1752375364303589,
-0.3100394904613495,
0.256113201379776,
0.05979843810200691,
0.376975953578949,
-0.4864450693130493,
0.17730727791786194,
-0.49285465478897095,
-0.03013581410050392,
-0.10096927732229233,
0.10436510294675827,
-0.12808415293693542,
-0.10778433829545975,
-0.022809762507677078,
-0.819961428642273,
-0.01376519538462162,
0.1939164102077484,
1.2093404531478882,
0.31667375564575195,
-0.5756789445877075,
0.07872945815324783,
-0.4949355125427246,
1.0554262399673462,
-1.1179155111312866,
0.3286604583263397,
0.3522747755050659,
0.24126608669757843,
-0.20145051181316376,
-0.966020941734314,
-0.7074387073516846,
-0.17143946886062622,
-0.1128939539194107,
0.1988016963005066,
-0.5895064473152161,
-0.027752548456192017,
0.1789153814315796,
0.5120376348495483,
-0.5861847400665283,
0.04511558637022972,
-0.32780179381370544,
-0.2293773591518402,
0.7553892731666565,
0.4087671637535095,
0.283979594707489,
-0.2530801296234131,
-0.4213483929634094,
-0.31171950697898865,
-0.5127757787704468,
0.15086664259433746,
0.18877537548542023,
0.033021871000528336,
-0.5712525844573975,
0.5420591235160828,
-0.3128049671649933,
0.49255630373954773,
0.23266233503818512,
-0.11861217021942139,
0.27279672026634216,
-0.5090854167938232,
-0.5634313225746155,
-0.49144446849823,
1.2566475868225098,
0.4336325526237488,
-0.33371996879577637,
0.19593225419521332,
-0.018336817622184753,
-0.1116388812661171,
0.033963702619075775,
-0.8333196043968201,
-0.2875654399394989,
0.6267277598381042,
-0.6007392406463623,
-0.47651955485343933,
-0.2550748884677887,
-0.6434721350669861,
-0.17230741679668427,
0.08865232765674591,
0.5123149752616882,
-0.34190842509269714,
-0.35268279910087585,
-0.07321607321500778,
-0.3068264424800873,
0.5797882080078125,
0.27998438477516174,
-0.7677159309387207,
0.35105401277542114,
0.4318844974040985,
0.6651105880737305,
0.11800044029951096,
-0.22422699630260468,
-0.31488320231437683,
0.010421114973723888,
-0.0998348593711853,
0.572023868560791,
-0.14272278547286987,
-0.44984447956085205,
-0.31557613611221313,
0.13885781168937683,
0.20876362919807434,
-0.3234953284263611,
0.38582298159599304,
-0.23802980780601501,
0.42446595430374146,
-0.349338173866272,
-0.4533834755420685,
-0.2743275463581085,
0.12922032177448273,
-0.47976306080818176,
1.2280946969985962,
0.22418147325515747,
-0.8231222629547119,
0.09680809080600739,
-0.48993685841560364,
-0.18059885501861572,
0.04070085287094116,
-0.010908066295087337,
-0.5965977311134338,
-0.23239940404891968,
0.3744102120399475,
0.36543047428131104,
-0.4636133313179016,
-0.0013746096519753337,
-0.4301981031894684,
-0.19450858235359192,
0.27949258685112,
-0.4528926610946655,
1.2316855192184448,
0.30092281103134155,
-0.5273200273513794,
0.07967910170555115,
-0.6853304505348206,
0.1530599147081375,
0.41251054406166077,
-0.2784140408039093,
0.05782067030668259,
-0.017723966389894485,
0.018078487366437912,
0.057668887078762054,
0.431954950094223,
-0.3959762156009674,
0.20956362783908844,
-0.2924841046333313,
0.7055255770683289,
0.7529103755950928,
0.004596400540322065,
0.48187050223350525,
-0.6055360436439514,
0.39418432116508484,
0.13202586770057678,
0.5214905738830566,
0.07123998552560806,
-0.7064048051834106,
-0.9444510340690613,
-0.30528950691223145,
0.20787648856639862,
0.6692706942558289,
-0.6173463463783264,
0.655143141746521,
0.17410974204540253,
-0.7719100713729858,
-0.5472688674926758,
-0.10371918231248856,
0.24832086265087128,
0.43971705436706543,
0.4319690763950348,
-0.25617745518684387,
-0.6544882655143738,
-0.7978111505508423,
0.06958860903978348,
-0.48615822196006775,
-0.14228948950767517,
0.5425471663475037,
0.6229310035705566,
-0.41100969910621643,
0.7118547558784485,
-0.49807974696159363,
-0.18379931151866913,
-0.09967481344938278,
0.04941819608211517,
0.30249467492103577,
0.653548538684845,
0.7081806659698486,
-0.5144857168197632,
-0.4026843011379242,
-0.13467960059642792,
-0.767943263053894,
-0.0846310406923294,
-0.045259758830070496,
-0.4661073386669159,
0.32645130157470703,
0.17513549327850342,
-0.8676583766937256,
0.501651406288147,
0.6068567037582397,
-0.4295084476470947,
0.6276734471321106,
-0.17943516373634338,
0.120777428150177,
-1.0799442529678345,
0.03783921152353287,
-0.04473995417356491,
-0.29816195368766785,
-0.4822719395160675,
0.10011294484138489,
-0.1857137829065323,
0.12687769532203674,
-0.4427602291107178,
0.7067010998725891,
-0.4493037760257721,
0.03217251971364021,
-0.07594532519578934,
-0.08727207034826279,
0.31787362694740295,
0.4706747829914093,
-0.15327893197536469,
0.7033547759056091,
0.6251535415649414,
-0.666832685470581,
0.530518651008606,
0.42970120906829834,
-0.033529240638017654,
0.31523841619491577,
-0.9143890142440796,
0.23324596881866455,
0.14513514935970306,
0.3797406852245331,
-1.1672803163528442,
-0.1284608691930771,
0.4956769347190857,
-0.6427978277206421,
0.1311786025762558,
-0.22531311213970184,
-0.35874703526496887,
-0.42928311228752136,
-0.42799776792526245,
0.2517009377479553,
0.9955817461013794,
-0.4620331823825836,
0.5927160978317261,
0.4964468479156494,
0.1847888082265854,
-0.7757520079612732,
-0.8088675737380981,
-0.16664880514144897,
-0.3814868927001953,
-0.619839072227478,
0.3436318337917328,
-0.2272179275751114,
-0.29284539818763733,
0.013770073652267456,
0.030103670433163643,
-0.15222206711769104,
0.18399366736412048,
0.3108435273170471,
0.3292091488838196,
-0.13258084654808044,
-0.2265031933784485,
0.07610496878623962,
-0.003771243616938591,
0.10685714334249496,
-0.2707933783531189,
0.5550122857093811,
-0.3718695640563965,
-0.08006147295236588,
-0.671184241771698,
0.28649216890335083,
0.5309452414512634,
-0.17902512848377228,
0.963523805141449,
0.7749046087265015,
-0.2432563602924347,
-0.017223818227648735,
-0.5350427627563477,
-0.3200995922088623,
-0.5454434156417847,
0.1915554255247116,
-0.17227058112621307,
-0.6596370339393616,
0.6378295421600342,
0.3620148301124573,
0.356907457113266,
0.7458682060241699,
0.5611921548843384,
-0.3840111494064331,
1.0713649988174438,
0.5685763955116272,
-0.027484696358442307,
0.43259096145629883,
-0.6208422780036926,
-0.05734929442405701,
-0.8625592589378357,
-0.19659423828125,
-0.409008264541626,
-0.18208655714988708,
-0.6339660286903381,
-0.5229328274726868,
0.36731234192848206,
0.1006971150636673,
-0.6100427508354187,
0.37506863474845886,
-0.6146739721298218,
0.00577983632683754,
0.7387856841087341,
0.13322819769382477,
0.17788773775100708,
-0.09145765006542206,
-0.15929542481899261,
0.036385804414749146,
-0.6848061084747314,
-0.37866881489753723,
1.0703760385513306,
0.3388100266456604,
0.587346613407135,
0.12308990955352783,
0.6546753644943237,
0.17140664160251617,
0.163222536444664,
-0.5490708947181702,
0.5848673582077026,
0.08029451966285706,
-0.6254514455795288,
-0.40671131014823914,
-0.4622793197631836,
-0.9007303714752197,
0.3046736419200897,
-0.22278565168380737,
-0.7028711438179016,
0.28115683794021606,
0.11944089829921722,
-0.465543657541275,
0.30359500646591187,
-0.4484714865684509,
0.7664800882339478,
-0.11100289225578308,
-0.32739901542663574,
-0.018680129200220108,
-0.6024852991104126,
0.39933067560195923,
0.24263978004455566,
0.1876448541879654,
-0.26197901368141174,
-0.19024993479251862,
0.7706905603408813,
-0.9086429476737976,
0.8697666525840759,
-0.143216073513031,
-0.0407647043466568,
0.5668588876724243,
-0.06651942431926727,
0.5487684607505798,
0.13406358659267426,
-0.11196600645780563,
0.3939778804779053,
0.13667011260986328,
-0.4245077073574066,
-0.31723442673683167,
0.5622091293334961,
-1.1080589294433594,
-0.7139841914176941,
-0.4267304837703705,
-0.4879593551158905,
0.15620681643486023,
0.09227994084358215,
0.4291023313999176,
0.22796843945980072,
-0.09726446866989136,
0.19004572927951813,
0.40077507495880127,
-0.38404580950737,
0.5487971305847168,
0.3849858045578003,
-0.18127062916755676,
-0.5418084859848022,
0.6242761015892029,
-0.038579102605581284,
0.27332577109336853,
0.20457153022289276,
0.15164968371391296,
-0.46658164262771606,
-0.3951163589954376,
-0.597545862197876,
0.2889026403427124,
-0.5294060707092285,
-0.4833371043205261,
-0.7478806972503662,
-0.4283682107925415,
-0.5024070143699646,
0.01260380633175373,
-0.41715025901794434,
-0.5257091522216797,
-0.6832276582717896,
0.030667711049318314,
0.8905717134475708,
0.3913521468639374,
-0.3670808672904968,
0.44038066267967224,
-0.6992993950843811,
0.24671617150306702,
0.48898589611053467,
-0.0386827178299427,
0.08644607663154602,
-0.7630130648612976,
-0.06148487329483032,
0.32902851700782776,
-0.5122926831245422,
-0.7628251314163208,
0.713750958442688,
0.19577579200267792,
0.6361905932426453,
0.28357836604118347,
0.28436005115509033,
0.8016604781150818,
-0.21989890933036804,
0.9844129681587219,
0.0965922623872757,
-1.0731797218322754,
0.46309807896614075,
-0.3814825713634491,
0.2854549288749695,
0.2554078996181488,
0.3257622718811035,
-0.4256797134876251,
-0.5209852457046509,
-0.760482907295227,
-0.9069340229034424,
0.5792176127433777,
0.4557337462902069,
0.11812159419059753,
0.05768977478146553,
0.30834871530532837,
-0.13847891986370087,
0.17205177247524261,
-0.8603243231773376,
-0.6627364158630371,
-0.3626624643802643,
-0.09342507272958755,
0.25916460156440735,
-0.12152164429426193,
-0.22119145095348358,
-0.5226374864578247,
0.820480465888977,
-0.0710119977593422,
0.7329415082931519,
0.2665579915046692,
0.1104109063744545,
-0.16858986020088196,
0.0993642807006836,
0.24979983270168304,
0.49424508213996887,
-0.1498652845621109,
-0.1470007598400116,
0.39059266448020935,
-0.3888065218925476,
0.1295856386423111,
0.1674852967262268,
-0.14494726061820984,
-0.1960402876138687,
0.13357579708099365,
0.8879637122154236,
-0.07643166184425354,
-0.3976094722747803,
0.4335141181945801,
-0.27086395025253296,
-0.41369950771331787,
-0.3778703212738037,
0.2251834124326706,
0.3121204972267151,
0.570469319820404,
0.5324718952178955,
-0.21520765125751495,
0.22339816391468048,
-0.5404411554336548,
0.14937171339988708,
0.6862640380859375,
-0.07572795450687408,
-0.08725478500127792,
1.1031602621078491,
0.0908789187669754,
-0.13216836750507355,
0.8125455975532532,
-0.1723984181880951,
-0.46914196014404297,
0.9881301522254944,
0.5534107685089111,
0.6535131335258484,
-0.023238299414515495,
0.24888497591018677,
0.5173986554145813,
0.23754261434078217,
0.10859186947345734,
0.3904942572116852,
-0.013751020655035973,
-0.6304875612258911,
-0.24537086486816406,
-0.5917659997940063,
-0.40393584966659546,
0.27503177523612976,
-0.6214450001716614,
0.24857984483242035,
-0.5306678414344788,
-0.3636222779750824,
-0.16076596081256866,
0.28451070189476013,
-0.6433690190315247,
0.25197964906692505,
0.19395184516906738,
0.6593829989433289,
-0.6382384896278381,
0.7408862709999084,
0.543148398399353,
-0.3984011709690094,
-0.8871875405311584,
-0.2596278786659241,
0.17067697644233704,
-0.83529132604599,
0.1587589979171753,
-0.001975955441594124,
0.17299240827560425,
0.2155141681432724,
-0.8835123181343079,
-1.0545281171798706,
1.4772034883499146,
0.10429535061120987,
-0.5235791802406311,
0.012064396403729916,
0.039145126938819885,
0.3930855691432953,
-0.2358928620815277,
0.6824215054512024,
0.45520323514938354,
0.42236363887786865,
0.1680847555398941,
-0.9296773076057434,
0.37816616892814636,
-0.285801500082016,
-0.03961122781038284,
0.003184304339811206,
-1.0983366966247559,
1.1614922285079956,
-0.25129199028015137,
-0.2153335064649582,
0.39235004782676697,
0.9435027241706848,
0.6083851456642151,
0.04183109477162361,
0.4767739474773407,
0.6138721108436584,
0.8403400182723999,
-0.1611189991235733,
0.9629465341567993,
-0.2875012755393982,
0.5917632579803467,
0.7195547223091125,
-0.042883653193712234,
0.7938752174377441,
0.28878235816955566,
-0.5121121406555176,
0.620586633682251,
0.7767753601074219,
-0.29303961992263794,
0.3855924606323242,
0.025721687823534012,
-0.24175187945365906,
-0.156711608171463,
0.048383504152297974,
-0.651227593421936,
0.33736953139305115,
0.38376712799072266,
-0.17080269753932953,
0.01237708143889904,
-0.197726309299469,
0.08023857325315475,
-0.5365530848503113,
-0.0784442275762558,
0.6653649210929871,
0.2975279986858368,
-0.27586066722869873,
1.07688570022583,
0.05139091610908508,
0.8265249729156494,
-0.4814998209476471,
-0.10514945536851883,
-0.37505611777305603,
0.042266108095645905,
-0.18900957703590393,
-0.6694658994674683,
0.1498427540063858,
-0.10976901650428772,
0.022160550579428673,
0.09530839323997498,
0.5928066372871399,
-0.22367429733276367,
-0.42468294501304626,
0.2921971380710602,
0.47733429074287415,
0.27168038487434387,
0.06057106703519821,
-0.9865525364875793,
0.2698785662651062,
0.0594966784119606,
-0.5263596773147583,
0.29241490364074707,
0.32534435391426086,
0.2539488673210144,
0.7459777593612671,
0.7507926821708679,
-0.2970825433731079,
0.07041208446025848,
-0.3852264881134033,
0.9293513894081116,
-0.674177348613739,
-0.29236388206481934,
-0.892491340637207,
0.8073834776878357,
-0.06265176832675934,
-0.37726891040802,
0.8281093835830688,
0.380872905254364,
0.5916961431503296,
0.0635959655046463,
0.8036713600158691,
-0.39052408933639526,
0.18118974566459656,
-0.24364306032657623,
0.8980576992034912,
-0.8039077520370483,
0.235171839594841,
-0.12457587569952011,
-0.6483259797096252,
0.0536111555993557,
0.7466959953308105,
0.0556403212249279,
0.15776659548282623,
0.5049169063568115,
0.7798250913619995,
0.09504374861717224,
-0.12769347429275513,
0.2613581120967865,
0.5328608751296997,
0.2895025610923767,
0.7222010493278503,
0.7796484231948853,
-0.9005887508392334,
0.7086805701255798,
-0.6029946804046631,
-0.1889895349740982,
-0.16244745254516602,
-0.8531337380409241,
-0.8687203526496887,
-0.5368456244468689,
-0.3677203059196472,
-0.6236408352851868,
-0.06448042392730713,
0.8096872568130493,
0.8448525071144104,
-0.64992356300354,
-0.35468047857284546,
-0.07570185512304306,
0.0617016963660717,
-0.2560262084007263,
-0.28871893882751465,
0.23239247500896454,
0.07703588157892227,
-0.7765686511993408,
0.28579145669937134,
-0.07748612761497498,
0.39951175451278687,
-0.3069886863231659,
-0.14261017739772797,
-0.25591808557510376,
0.23087169229984283,
0.4282049834728241,
0.4892506003379822,
-0.7034021019935608,
-0.13890528678894043,
-0.01475310418754816,
-0.19770818948745728,
0.25489652156829834,
0.04813740402460098,
-0.8620600700378418,
-0.06516063213348389,
0.4652929902076721,
0.2027616947889328,
0.6587662100791931,
-0.015188179910182953,
0.592726469039917,
-0.44040608406066895,
0.287309855222702,
0.10751153528690338,
0.3252458870410919,
0.15834762156009674,
-0.6008344292640686,
0.42767712473869324,
0.18345049023628235,
-0.7440495491027832,
-0.8659700751304626,
-0.09395470470190048,
-1.0335042476654053,
-0.23221223056316376,
1.1169781684875488,
-0.1483524590730667,
-0.4615146815776825,
0.0020917404908686876,
-0.2558663487434387,
0.43811726570129395,
-0.4947013556957245,
0.5292479991912842,
0.35792431235313416,
-0.15000087022781372,
-0.3154279589653015,
-0.5279348492622375,
0.5509903430938721,
0.3487917482852936,
-0.9412573575973511,
-0.06605152785778046,
0.3965547978878021,
0.42078930139541626,
-0.12524932622909546,
0.7836191058158875,
0.0031036757864058018,
0.2914847135543823,
0.13674810528755188,
0.1429816037416458,
0.020903686061501503,
0.057429537177085876,
-0.14768357574939728,
-0.16503000259399414,
-0.13736973702907562,
-0.25961971282958984
] |
nboost/pt-tinybert-msmarco
|
nboost
| 2021-05-20T01:28:00Z | 8,924 | 0 |
transformers
|
[
"transformers",
"pytorch",
"jax",
"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
] |
timm/coatnet_2_rw_224.sw_in12k_ft_in1k
|
timm
| 2023-05-10T23:44:00Z | 8,915 | 0 |
timm
|
[
"timm",
"pytorch",
"safetensors",
"image-classification",
"dataset:imagenet-1k",
"dataset:imagenet-12k",
"arxiv:2201.03545",
"license:apache-2.0",
"has_space",
"region:us"
] |
image-classification
| 2023-01-20T21:25:18Z |
---
tags:
- image-classification
- timm
library_name: timm
license: apache-2.0
datasets:
- imagenet-1k
- imagenet-12k
---
# Model card for coatnet_2_rw_224.sw_in12k_ft_in1k
A timm specific CoAtNet image classification model. Pretrained in `timm` on ImageNet-12k (a 11821 class subset of full ImageNet-22k) and fine-tuned on ImageNet-1k by Ross Wightman.
ImageNet-12k training performed on TPUs thanks to support of the [TRC](https://sites.research.google/trc/about/) program.
Fine-tuning performed on 8x GPU [Lambda Labs](https://lambdalabs.com/) cloud instances.
### Model Variants in [maxxvit.py](https://github.com/huggingface/pytorch-image-models/blob/main/timm/models/maxxvit.py)
MaxxViT covers a number of related model architectures that share a common structure including:
- CoAtNet - Combining MBConv (depthwise-separable) convolutional blocks in early stages with self-attention transformer blocks in later stages.
- MaxViT - Uniform blocks across all stages, each containing a MBConv (depthwise-separable) convolution block followed by two self-attention blocks with different partitioning schemes (window followed by grid).
- CoAtNeXt - A timm specific arch that uses ConvNeXt blocks in place of MBConv blocks in CoAtNet. All normalization layers are LayerNorm (no BatchNorm).
- MaxxViT - A timm specific arch that uses ConvNeXt blocks in place of MBConv blocks in MaxViT. All normalization layers are LayerNorm (no BatchNorm).
- MaxxViT-V2 - A MaxxViT variation that removes the window block attention leaving only ConvNeXt blocks and grid attention w/ more width to compensate.
Aside from the major variants listed above, there are more subtle changes from model to model. Any model name with the string `rw` are `timm` specific configs w/ modelling adjustments made to favour PyTorch eager use. These were created while training initial reproductions of the models so there are variations.
All models with the string `tf` are models exactly matching Tensorflow based models by the original paper authors with weights ported to PyTorch. This covers a number of MaxViT models. The official CoAtNet models were never released.
## Model Details
- **Model Type:** Image classification / feature backbone
- **Model Stats:**
- Params (M): 73.9
- GMACs: 15.1
- Activations (M): 49.2
- Image size: 224 x 224
- **Papers:**
- CoAtNet: Marrying Convolution and Attention for All Data Sizes: https://arxiv.org/abs/2201.03545
- **Dataset:** ImageNet-1k
- **Pretrain Dataset:** ImageNet-12k
## 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('coatnet_2_rw_224.sw_in12k_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(
'coatnet_2_rw_224.sw_in12k_ft_in1k',
pretrained=True,
features_only=True,
)
model = model.eval()
# get model specific transforms (normalization, resize)
data_config = timm.data.resolve_model_data_config(model)
transforms = timm.data.create_transform(**data_config, is_training=False)
output = model(transforms(img).unsqueeze(0)) # unsqueeze single image into batch of 1
for o in output:
# print shape of each feature map in output
# e.g.:
# torch.Size([1, 128, 112, 112])
# torch.Size([1, 128, 56, 56])
# torch.Size([1, 256, 28, 28])
# torch.Size([1, 512, 14, 14])
# torch.Size([1, 1024, 7, 7])
print(o.shape)
```
### Image Embeddings
```python
from urllib.request import urlopen
from PIL import Image
import timm
img = Image.open(urlopen(
'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/beignets-task-guide.png'
))
model = timm.create_model(
'coatnet_2_rw_224.sw_in12k_ft_in1k',
pretrained=True,
num_classes=0, # remove classifier nn.Linear
)
model = model.eval()
# get model specific transforms (normalization, resize)
data_config = timm.data.resolve_model_data_config(model)
transforms = timm.data.create_transform(**data_config, is_training=False)
output = model(transforms(img).unsqueeze(0)) # output is (batch_size, num_features) shaped tensor
# or equivalently (without needing to set num_classes=0)
output = model.forward_features(transforms(img).unsqueeze(0))
# output is unpooled, a (1, 1024, 7, 7) shaped tensor
output = model.forward_head(output, pre_logits=True)
# output is a (1, num_features) shaped tensor
```
## Model Comparison
### By Top-1
|model |top1 |top5 |samples / sec |Params (M) |GMAC |Act (M)|
|------------------------------------------------------------------------------------------------------------------------|----:|----:|--------------:|--------------:|-----:|------:|
|[maxvit_xlarge_tf_512.in21k_ft_in1k](https://huggingface.co/timm/maxvit_xlarge_tf_512.in21k_ft_in1k) |88.53|98.64| 21.76| 475.77|534.14|1413.22|
|[maxvit_xlarge_tf_384.in21k_ft_in1k](https://huggingface.co/timm/maxvit_xlarge_tf_384.in21k_ft_in1k) |88.32|98.54| 42.53| 475.32|292.78| 668.76|
|[maxvit_base_tf_512.in21k_ft_in1k](https://huggingface.co/timm/maxvit_base_tf_512.in21k_ft_in1k) |88.20|98.53| 50.87| 119.88|138.02| 703.99|
|[maxvit_large_tf_512.in21k_ft_in1k](https://huggingface.co/timm/maxvit_large_tf_512.in21k_ft_in1k) |88.04|98.40| 36.42| 212.33|244.75| 942.15|
|[maxvit_large_tf_384.in21k_ft_in1k](https://huggingface.co/timm/maxvit_large_tf_384.in21k_ft_in1k) |87.98|98.56| 71.75| 212.03|132.55| 445.84|
|[maxvit_base_tf_384.in21k_ft_in1k](https://huggingface.co/timm/maxvit_base_tf_384.in21k_ft_in1k) |87.92|98.54| 104.71| 119.65| 73.80| 332.90|
|[maxvit_rmlp_base_rw_384.sw_in12k_ft_in1k](https://huggingface.co/timm/maxvit_rmlp_base_rw_384.sw_in12k_ft_in1k) |87.81|98.37| 106.55| 116.14| 70.97| 318.95|
|[maxxvitv2_rmlp_base_rw_384.sw_in12k_ft_in1k](https://huggingface.co/timm/maxxvitv2_rmlp_base_rw_384.sw_in12k_ft_in1k) |87.47|98.37| 149.49| 116.09| 72.98| 213.74|
|[coatnet_rmlp_2_rw_384.sw_in12k_ft_in1k](https://huggingface.co/timm/coatnet_rmlp_2_rw_384.sw_in12k_ft_in1k) |87.39|98.31| 160.80| 73.88| 47.69| 209.43|
|[maxvit_rmlp_base_rw_224.sw_in12k_ft_in1k](https://huggingface.co/timm/maxvit_rmlp_base_rw_224.sw_in12k_ft_in1k) |86.89|98.02| 375.86| 116.14| 23.15| 92.64|
|[maxxvitv2_rmlp_base_rw_224.sw_in12k_ft_in1k](https://huggingface.co/timm/maxxvitv2_rmlp_base_rw_224.sw_in12k_ft_in1k) |86.64|98.02| 501.03| 116.09| 24.20| 62.77|
|[maxvit_base_tf_512.in1k](https://huggingface.co/timm/maxvit_base_tf_512.in1k) |86.60|97.92| 50.75| 119.88|138.02| 703.99|
|[coatnet_2_rw_224.sw_in12k_ft_in1k](https://huggingface.co/timm/coatnet_2_rw_224.sw_in12k_ft_in1k) |86.57|97.89| 631.88| 73.87| 15.09| 49.22|
|[maxvit_large_tf_512.in1k](https://huggingface.co/timm/maxvit_large_tf_512.in1k) |86.52|97.88| 36.04| 212.33|244.75| 942.15|
|[coatnet_rmlp_2_rw_224.sw_in12k_ft_in1k](https://huggingface.co/timm/coatnet_rmlp_2_rw_224.sw_in12k_ft_in1k) |86.49|97.90| 620.58| 73.88| 15.18| 54.78|
|[maxvit_base_tf_384.in1k](https://huggingface.co/timm/maxvit_base_tf_384.in1k) |86.29|97.80| 101.09| 119.65| 73.80| 332.90|
|[maxvit_large_tf_384.in1k](https://huggingface.co/timm/maxvit_large_tf_384.in1k) |86.23|97.69| 70.56| 212.03|132.55| 445.84|
|[maxvit_small_tf_512.in1k](https://huggingface.co/timm/maxvit_small_tf_512.in1k) |86.10|97.76| 88.63| 69.13| 67.26| 383.77|
|[maxvit_tiny_tf_512.in1k](https://huggingface.co/timm/maxvit_tiny_tf_512.in1k) |85.67|97.58| 144.25| 31.05| 33.49| 257.59|
|[maxvit_small_tf_384.in1k](https://huggingface.co/timm/maxvit_small_tf_384.in1k) |85.54|97.46| 188.35| 69.02| 35.87| 183.65|
|[maxvit_tiny_tf_384.in1k](https://huggingface.co/timm/maxvit_tiny_tf_384.in1k) |85.11|97.38| 293.46| 30.98| 17.53| 123.42|
|[maxvit_large_tf_224.in1k](https://huggingface.co/timm/maxvit_large_tf_224.in1k) |84.93|96.97| 247.71| 211.79| 43.68| 127.35|
|[coatnet_rmlp_1_rw2_224.sw_in12k_ft_in1k](https://huggingface.co/timm/coatnet_rmlp_1_rw2_224.sw_in12k_ft_in1k) |84.90|96.96| 1025.45| 41.72| 8.11| 40.13|
|[maxvit_base_tf_224.in1k](https://huggingface.co/timm/maxvit_base_tf_224.in1k) |84.85|96.99| 358.25| 119.47| 24.04| 95.01|
|[maxxvit_rmlp_small_rw_256.sw_in1k](https://huggingface.co/timm/maxxvit_rmlp_small_rw_256.sw_in1k) |84.63|97.06| 575.53| 66.01| 14.67| 58.38|
|[coatnet_rmlp_2_rw_224.sw_in1k](https://huggingface.co/timm/coatnet_rmlp_2_rw_224.sw_in1k) |84.61|96.74| 625.81| 73.88| 15.18| 54.78|
|[maxvit_rmlp_small_rw_224.sw_in1k](https://huggingface.co/timm/maxvit_rmlp_small_rw_224.sw_in1k) |84.49|96.76| 693.82| 64.90| 10.75| 49.30|
|[maxvit_small_tf_224.in1k](https://huggingface.co/timm/maxvit_small_tf_224.in1k) |84.43|96.83| 647.96| 68.93| 11.66| 53.17|
|[maxvit_rmlp_tiny_rw_256.sw_in1k](https://huggingface.co/timm/maxvit_rmlp_tiny_rw_256.sw_in1k) |84.23|96.78| 807.21| 29.15| 6.77| 46.92|
|[coatnet_1_rw_224.sw_in1k](https://huggingface.co/timm/coatnet_1_rw_224.sw_in1k) |83.62|96.38| 989.59| 41.72| 8.04| 34.60|
|[maxvit_tiny_rw_224.sw_in1k](https://huggingface.co/timm/maxvit_tiny_rw_224.sw_in1k) |83.50|96.50| 1100.53| 29.06| 5.11| 33.11|
|[maxvit_tiny_tf_224.in1k](https://huggingface.co/timm/maxvit_tiny_tf_224.in1k) |83.41|96.59| 1004.94| 30.92| 5.60| 35.78|
|[coatnet_rmlp_1_rw_224.sw_in1k](https://huggingface.co/timm/coatnet_rmlp_1_rw_224.sw_in1k) |83.36|96.45| 1093.03| 41.69| 7.85| 35.47|
|[maxxvitv2_nano_rw_256.sw_in1k](https://huggingface.co/timm/maxxvitv2_nano_rw_256.sw_in1k) |83.11|96.33| 1276.88| 23.70| 6.26| 23.05|
|[maxxvit_rmlp_nano_rw_256.sw_in1k](https://huggingface.co/timm/maxxvit_rmlp_nano_rw_256.sw_in1k) |83.03|96.34| 1341.24| 16.78| 4.37| 26.05|
|[maxvit_rmlp_nano_rw_256.sw_in1k](https://huggingface.co/timm/maxvit_rmlp_nano_rw_256.sw_in1k) |82.96|96.26| 1283.24| 15.50| 4.47| 31.92|
|[maxvit_nano_rw_256.sw_in1k](https://huggingface.co/timm/maxvit_nano_rw_256.sw_in1k) |82.93|96.23| 1218.17| 15.45| 4.46| 30.28|
|[coatnet_bn_0_rw_224.sw_in1k](https://huggingface.co/timm/coatnet_bn_0_rw_224.sw_in1k) |82.39|96.19| 1600.14| 27.44| 4.67| 22.04|
|[coatnet_0_rw_224.sw_in1k](https://huggingface.co/timm/coatnet_0_rw_224.sw_in1k) |82.39|95.84| 1831.21| 27.44| 4.43| 18.73|
|[coatnet_rmlp_nano_rw_224.sw_in1k](https://huggingface.co/timm/coatnet_rmlp_nano_rw_224.sw_in1k) |82.05|95.87| 2109.09| 15.15| 2.62| 20.34|
|[coatnext_nano_rw_224.sw_in1k](https://huggingface.co/timm/coatnext_nano_rw_224.sw_in1k) |81.95|95.92| 2525.52| 14.70| 2.47| 12.80|
|[coatnet_nano_rw_224.sw_in1k](https://huggingface.co/timm/coatnet_nano_rw_224.sw_in1k) |81.70|95.64| 2344.52| 15.14| 2.41| 15.41|
|[maxvit_rmlp_pico_rw_256.sw_in1k](https://huggingface.co/timm/maxvit_rmlp_pico_rw_256.sw_in1k) |80.53|95.21| 1594.71| 7.52| 1.85| 24.86|
### By Throughput (samples / sec)
|model |top1 |top5 |samples / sec |Params (M) |GMAC |Act (M)|
|------------------------------------------------------------------------------------------------------------------------|----:|----:|--------------:|--------------:|-----:|------:|
|[coatnext_nano_rw_224.sw_in1k](https://huggingface.co/timm/coatnext_nano_rw_224.sw_in1k) |81.95|95.92| 2525.52| 14.70| 2.47| 12.80|
|[coatnet_nano_rw_224.sw_in1k](https://huggingface.co/timm/coatnet_nano_rw_224.sw_in1k) |81.70|95.64| 2344.52| 15.14| 2.41| 15.41|
|[coatnet_rmlp_nano_rw_224.sw_in1k](https://huggingface.co/timm/coatnet_rmlp_nano_rw_224.sw_in1k) |82.05|95.87| 2109.09| 15.15| 2.62| 20.34|
|[coatnet_0_rw_224.sw_in1k](https://huggingface.co/timm/coatnet_0_rw_224.sw_in1k) |82.39|95.84| 1831.21| 27.44| 4.43| 18.73|
|[coatnet_bn_0_rw_224.sw_in1k](https://huggingface.co/timm/coatnet_bn_0_rw_224.sw_in1k) |82.39|96.19| 1600.14| 27.44| 4.67| 22.04|
|[maxvit_rmlp_pico_rw_256.sw_in1k](https://huggingface.co/timm/maxvit_rmlp_pico_rw_256.sw_in1k) |80.53|95.21| 1594.71| 7.52| 1.85| 24.86|
|[maxxvit_rmlp_nano_rw_256.sw_in1k](https://huggingface.co/timm/maxxvit_rmlp_nano_rw_256.sw_in1k) |83.03|96.34| 1341.24| 16.78| 4.37| 26.05|
|[maxvit_rmlp_nano_rw_256.sw_in1k](https://huggingface.co/timm/maxvit_rmlp_nano_rw_256.sw_in1k) |82.96|96.26| 1283.24| 15.50| 4.47| 31.92|
|[maxxvitv2_nano_rw_256.sw_in1k](https://huggingface.co/timm/maxxvitv2_nano_rw_256.sw_in1k) |83.11|96.33| 1276.88| 23.70| 6.26| 23.05|
|[maxvit_nano_rw_256.sw_in1k](https://huggingface.co/timm/maxvit_nano_rw_256.sw_in1k) |82.93|96.23| 1218.17| 15.45| 4.46| 30.28|
|[maxvit_tiny_rw_224.sw_in1k](https://huggingface.co/timm/maxvit_tiny_rw_224.sw_in1k) |83.50|96.50| 1100.53| 29.06| 5.11| 33.11|
|[coatnet_rmlp_1_rw_224.sw_in1k](https://huggingface.co/timm/coatnet_rmlp_1_rw_224.sw_in1k) |83.36|96.45| 1093.03| 41.69| 7.85| 35.47|
|[coatnet_rmlp_1_rw2_224.sw_in12k_ft_in1k](https://huggingface.co/timm/coatnet_rmlp_1_rw2_224.sw_in12k_ft_in1k) |84.90|96.96| 1025.45| 41.72| 8.11| 40.13|
|[maxvit_tiny_tf_224.in1k](https://huggingface.co/timm/maxvit_tiny_tf_224.in1k) |83.41|96.59| 1004.94| 30.92| 5.60| 35.78|
|[coatnet_1_rw_224.sw_in1k](https://huggingface.co/timm/coatnet_1_rw_224.sw_in1k) |83.62|96.38| 989.59| 41.72| 8.04| 34.60|
|[maxvit_rmlp_tiny_rw_256.sw_in1k](https://huggingface.co/timm/maxvit_rmlp_tiny_rw_256.sw_in1k) |84.23|96.78| 807.21| 29.15| 6.77| 46.92|
|[maxvit_rmlp_small_rw_224.sw_in1k](https://huggingface.co/timm/maxvit_rmlp_small_rw_224.sw_in1k) |84.49|96.76| 693.82| 64.90| 10.75| 49.30|
|[maxvit_small_tf_224.in1k](https://huggingface.co/timm/maxvit_small_tf_224.in1k) |84.43|96.83| 647.96| 68.93| 11.66| 53.17|
|[coatnet_2_rw_224.sw_in12k_ft_in1k](https://huggingface.co/timm/coatnet_2_rw_224.sw_in12k_ft_in1k) |86.57|97.89| 631.88| 73.87| 15.09| 49.22|
|[coatnet_rmlp_2_rw_224.sw_in1k](https://huggingface.co/timm/coatnet_rmlp_2_rw_224.sw_in1k) |84.61|96.74| 625.81| 73.88| 15.18| 54.78|
|[coatnet_rmlp_2_rw_224.sw_in12k_ft_in1k](https://huggingface.co/timm/coatnet_rmlp_2_rw_224.sw_in12k_ft_in1k) |86.49|97.90| 620.58| 73.88| 15.18| 54.78|
|[maxxvit_rmlp_small_rw_256.sw_in1k](https://huggingface.co/timm/maxxvit_rmlp_small_rw_256.sw_in1k) |84.63|97.06| 575.53| 66.01| 14.67| 58.38|
|[maxxvitv2_rmlp_base_rw_224.sw_in12k_ft_in1k](https://huggingface.co/timm/maxxvitv2_rmlp_base_rw_224.sw_in12k_ft_in1k) |86.64|98.02| 501.03| 116.09| 24.20| 62.77|
|[maxvit_rmlp_base_rw_224.sw_in12k_ft_in1k](https://huggingface.co/timm/maxvit_rmlp_base_rw_224.sw_in12k_ft_in1k) |86.89|98.02| 375.86| 116.14| 23.15| 92.64|
|[maxvit_base_tf_224.in1k](https://huggingface.co/timm/maxvit_base_tf_224.in1k) |84.85|96.99| 358.25| 119.47| 24.04| 95.01|
|[maxvit_tiny_tf_384.in1k](https://huggingface.co/timm/maxvit_tiny_tf_384.in1k) |85.11|97.38| 293.46| 30.98| 17.53| 123.42|
|[maxvit_large_tf_224.in1k](https://huggingface.co/timm/maxvit_large_tf_224.in1k) |84.93|96.97| 247.71| 211.79| 43.68| 127.35|
|[maxvit_small_tf_384.in1k](https://huggingface.co/timm/maxvit_small_tf_384.in1k) |85.54|97.46| 188.35| 69.02| 35.87| 183.65|
|[coatnet_rmlp_2_rw_384.sw_in12k_ft_in1k](https://huggingface.co/timm/coatnet_rmlp_2_rw_384.sw_in12k_ft_in1k) |87.39|98.31| 160.80| 73.88| 47.69| 209.43|
|[maxxvitv2_rmlp_base_rw_384.sw_in12k_ft_in1k](https://huggingface.co/timm/maxxvitv2_rmlp_base_rw_384.sw_in12k_ft_in1k) |87.47|98.37| 149.49| 116.09| 72.98| 213.74|
|[maxvit_tiny_tf_512.in1k](https://huggingface.co/timm/maxvit_tiny_tf_512.in1k) |85.67|97.58| 144.25| 31.05| 33.49| 257.59|
|[maxvit_rmlp_base_rw_384.sw_in12k_ft_in1k](https://huggingface.co/timm/maxvit_rmlp_base_rw_384.sw_in12k_ft_in1k) |87.81|98.37| 106.55| 116.14| 70.97| 318.95|
|[maxvit_base_tf_384.in21k_ft_in1k](https://huggingface.co/timm/maxvit_base_tf_384.in21k_ft_in1k) |87.92|98.54| 104.71| 119.65| 73.80| 332.90|
|[maxvit_base_tf_384.in1k](https://huggingface.co/timm/maxvit_base_tf_384.in1k) |86.29|97.80| 101.09| 119.65| 73.80| 332.90|
|[maxvit_small_tf_512.in1k](https://huggingface.co/timm/maxvit_small_tf_512.in1k) |86.10|97.76| 88.63| 69.13| 67.26| 383.77|
|[maxvit_large_tf_384.in21k_ft_in1k](https://huggingface.co/timm/maxvit_large_tf_384.in21k_ft_in1k) |87.98|98.56| 71.75| 212.03|132.55| 445.84|
|[maxvit_large_tf_384.in1k](https://huggingface.co/timm/maxvit_large_tf_384.in1k) |86.23|97.69| 70.56| 212.03|132.55| 445.84|
|[maxvit_base_tf_512.in21k_ft_in1k](https://huggingface.co/timm/maxvit_base_tf_512.in21k_ft_in1k) |88.20|98.53| 50.87| 119.88|138.02| 703.99|
|[maxvit_base_tf_512.in1k](https://huggingface.co/timm/maxvit_base_tf_512.in1k) |86.60|97.92| 50.75| 119.88|138.02| 703.99|
|[maxvit_xlarge_tf_384.in21k_ft_in1k](https://huggingface.co/timm/maxvit_xlarge_tf_384.in21k_ft_in1k) |88.32|98.54| 42.53| 475.32|292.78| 668.76|
|[maxvit_large_tf_512.in21k_ft_in1k](https://huggingface.co/timm/maxvit_large_tf_512.in21k_ft_in1k) |88.04|98.40| 36.42| 212.33|244.75| 942.15|
|[maxvit_large_tf_512.in1k](https://huggingface.co/timm/maxvit_large_tf_512.in1k) |86.52|97.88| 36.04| 212.33|244.75| 942.15|
|[maxvit_xlarge_tf_512.in21k_ft_in1k](https://huggingface.co/timm/maxvit_xlarge_tf_512.in21k_ft_in1k) |88.53|98.64| 21.76| 475.77|534.14|1413.22|
## Citation
```bibtex
@misc{rw2019timm,
author = {Ross Wightman},
title = {PyTorch Image Models},
year = {2019},
publisher = {GitHub},
journal = {GitHub repository},
doi = {10.5281/zenodo.4414861},
howpublished = {\url{https://github.com/huggingface/pytorch-image-models}}
}
```
```bibtex
@article{tu2022maxvit,
title={MaxViT: Multi-Axis Vision Transformer},
author={Tu, Zhengzhong and Talebi, Hossein and Zhang, Han and Yang, Feng and Milanfar, Peyman and Bovik, Alan and Li, Yinxiao},
journal={ECCV},
year={2022},
}
```
```bibtex
@article{dai2021coatnet,
title={CoAtNet: Marrying Convolution and Attention for All Data Sizes},
author={Dai, Zihang and Liu, Hanxiao and Le, Quoc V and Tan, Mingxing},
journal={arXiv preprint arXiv:2106.04803},
year={2021}
}
```
|
[
-0.6943859457969666,
-0.43674004077911377,
0.028521204367280006,
0.41107377409935,
-0.31261155009269714,
-0.21246962249279022,
-0.15090440213680267,
-0.3821266293525696,
0.7163899540901184,
0.2161162793636322,
-0.5849336981773376,
-0.6178250312805176,
-0.6719052791595459,
-0.0884309783577919,
0.2408400923013687,
0.8068947792053223,
-0.1304333508014679,
-0.2021571397781372,
0.20443522930145264,
-0.3674061894416809,
-0.305127888917923,
-0.46775466203689575,
-0.8406413197517395,
-0.3199154734611511,
0.4244421720504761,
0.27492988109588623,
0.8007374405860901,
0.7505613565444946,
0.4561963677406311,
0.5092228651046753,
-0.17345479130744934,
0.17361263930797577,
-0.29756930470466614,
-0.2507981061935425,
0.5644655227661133,
-0.42883554100990295,
-0.8011516332626343,
0.13885365426540375,
0.7008876204490662,
0.3982851505279541,
-0.022249992936849594,
0.23190194368362427,
0.2122049182653427,
0.5109286904335022,
-0.1785576194524765,
0.11053621768951416,
-0.12413009256124496,
0.30793705582618713,
-0.2226291000843048,
0.03703632205724716,
-0.08689282834529877,
-0.43330901861190796,
0.17191338539123535,
-0.716025710105896,
0.048631906509399414,
0.01952940784394741,
1.5483018159866333,
-0.1633245050907135,
-0.1517902910709381,
0.19530120491981506,
0.06247805058956146,
0.8672398328781128,
-0.8176217079162598,
0.2656625211238861,
0.47576990723609924,
0.006780171766877174,
-0.0786394476890564,
-0.6858633756637573,
-0.5230501294136047,
-0.04624613747000694,
-0.3550609052181244,
0.3352658152580261,
-0.23167230188846588,
-0.07862455397844315,
0.4123154282569885,
0.3833271861076355,
-0.5300509929656982,
-0.07464330643415451,
-0.2858021855354309,
-0.17783981561660767,
0.7352179884910583,
0.14831990003585815,
0.634782612323761,
-0.19682084023952484,
-0.7013797163963318,
-0.30721279978752136,
-0.22324338555335999,
0.3688105344772339,
0.12272307276725769,
0.0648072361946106,
-0.9045749306678772,
0.45458585023880005,
0.041375596076250076,
0.4158262312412262,
0.2637901306152344,
-0.15514256060123444,
0.8291695713996887,
-0.1421387493610382,
-0.6511093378067017,
-0.3889910876750946,
1.125907301902771,
0.6764747500419617,
0.30571505427360535,
0.1259625405073166,
-0.21857541799545288,
-0.31846243143081665,
-0.33488690853118896,
-0.9851144552230835,
-0.16965653002262115,
0.2518059313297272,
-0.608422577381134,
-0.43621155619621277,
0.19844020903110504,
-0.7012037634849548,
-0.0528884194791317,
-0.2775413990020752,
0.47403886914253235,
-0.6743227243423462,
-0.49996641278266907,
0.03129054233431816,
-0.3233095109462738,
0.6569250226020813,
0.3140629827976227,
-0.3987545371055603,
0.2898985743522644,
0.23905494809150696,
1.0513017177581787,
0.04458679258823395,
-0.27449721097946167,
-0.28365132212638855,
-0.03482312336564064,
-0.48285338282585144,
0.3697303831577301,
-0.1048172190785408,
-0.18128463625907898,
-0.21020027995109558,
0.4141305685043335,
-0.33215561509132385,
-0.36720001697540283,
0.41457483172416687,
0.08985157310962677,
0.1618332415819168,
-0.37337785959243774,
-0.1389923095703125,
-0.2665945887565613,
0.3980407118797302,
-0.41836485266685486,
1.1295446157455444,
0.4627287983894348,
-1.101699948310852,
0.2801857590675354,
-0.6150065660476685,
-0.08374283462762833,
-0.1969458907842636,
0.11985941231250763,
-0.8287590146064758,
-0.06083939969539642,
0.2610083818435669,
0.8013979196548462,
-0.2573965787887573,
-0.15706412494182587,
-0.3701086640357971,
-0.06416618078947067,
0.2635625898838043,
0.11777154356241226,
1.0325154066085815,
0.2157968282699585,
-0.526073694229126,
0.1481650024652481,
-0.646243691444397,
0.31110313534736633,
0.527909517288208,
-0.11257558315992355,
-0.05157480761408806,
-0.8769344091415405,
0.2234344482421875,
0.5119541883468628,
0.22077445685863495,
-0.6345568299293518,
0.33999621868133545,
-0.08207601308822632,
0.47191497683525085,
0.8128983974456787,
-0.06407865136861801,
0.11243890225887299,
-0.7439653277397156,
0.521944522857666,
0.15500368177890778,
0.5382198095321655,
0.037161387503147125,
-0.5099248290061951,
-0.8509947061538696,
-0.7346609234809875,
0.15900789201259613,
0.5473572611808777,
-0.44511523842811584,
0.6386440992355347,
0.09418882429599762,
-0.5830150842666626,
-0.3769477307796478,
0.09980989992618561,
0.6045756936073303,
0.25724419951438904,
0.14895448088645935,
-0.4553869068622589,
-0.597353994846344,
-1.0300638675689697,
-0.08079265803098679,
0.040175311267375946,
0.14567378163337708,
0.5168136954307556,
0.5288540124893188,
-0.27061551809310913,
0.5021967887878418,
-0.5248852372169495,
-0.32200750708580017,
-0.19591398537158966,
-0.08458063006401062,
0.45470190048217773,
0.7422925233840942,
0.8950773477554321,
-0.7383381724357605,
-0.9152050018310547,
0.08047006279230118,
-1.0640052556991577,
0.0991588905453682,
-0.09786099940538406,
-0.547721803188324,
0.18906177580356598,
0.23299209773540497,
-0.9379476308822632,
0.708134651184082,
0.2918296754360199,
-0.5745287537574768,
0.5579164028167725,
-0.3513297140598297,
0.30893680453300476,
-1.1369870901107788,
0.22127434611320496,
0.37162673473358154,
-0.22656530141830444,
-0.6826769709587097,
0.11713477224111557,
0.07433221489191055,
0.18793688714504242,
-0.4315647780895233,
0.774865448474884,
-0.6438106894493103,
0.12896212935447693,
0.09290559589862823,
-0.10486188530921936,
-0.028144370764493942,
0.5732088685035706,
-0.03917917609214783,
0.5638684034347534,
0.9655854105949402,
-0.29267996549606323,
0.5639427900314331,
0.4786362946033478,
-0.027751224115490913,
0.62147057056427,
-0.6437203288078308,
0.13967373967170715,
0.005818427074700594,
0.17829611897468567,
-1.013755202293396,
-0.5156694650650024,
0.4266839027404785,
-0.7158724069595337,
0.7732963562011719,
-0.2326965630054474,
-0.35382142663002014,
-0.6741160750389099,
-0.8298832178115845,
0.17635732889175415,
0.689055860042572,
-0.6200026869773865,
0.3432539105415344,
0.29950425028800964,
0.05443281680345535,
-0.6893371939659119,
-0.8021724820137024,
0.10154814273118973,
-0.3884498178958893,
-0.9250784516334534,
0.3824683129787445,
-0.040085867047309875,
-0.0825752541422844,
-0.07861897349357605,
-0.030721893534064293,
-0.1827891618013382,
-0.21294356882572174,
0.591054379940033,
0.4846925735473633,
-0.39619120955467224,
-0.3482555150985718,
-0.4641139805316925,
-0.09262200444936752,
-0.0741938129067421,
-0.18652738630771637,
0.5868438482284546,
-0.3752748668193817,
0.11488476395606995,
-1.0584516525268555,
0.021431097760796547,
0.7592165470123291,
-0.08054881542921066,
0.9865202307701111,
1.0077388286590576,
-0.3681311309337616,
0.06709709763526917,
-0.5979582071304321,
-0.11364565789699554,
-0.5200780630111694,
-0.020080244168639183,
-0.6816750764846802,
-0.5569131374359131,
0.8343039751052856,
0.23459313809871674,
-0.013434715569019318,
0.7635483741760254,
0.3087475001811981,
-0.04855841398239136,
0.9871451258659363,
0.6283164620399475,
-0.1312587708234787,
0.6998810768127441,
-0.817559540271759,
-0.08478951454162598,
-0.9394565224647522,
-0.6627720594406128,
-0.10356754064559937,
-0.4620552659034729,
-0.49009400606155396,
-0.33131203055381775,
0.26358717679977417,
0.29050031304359436,
-0.40975213050842285,
0.5927989482879639,
-0.7662050127983093,
-0.0008868076256476343,
0.5729994177818298,
0.37758639454841614,
-0.26361674070358276,
0.14488618075847626,
-0.3562995195388794,
-0.09852506220340729,
-0.6277660727500916,
-0.12234525382518768,
0.9282734990119934,
0.5602806806564331,
0.5334469676017761,
-0.00555804930627346,
0.6137882471084595,
-0.015348568558692932,
0.2916678488254547,
-0.5038074851036072,
0.6543532013893127,
0.18348553776741028,
-0.5058539509773254,
-0.2358485609292984,
-0.4217713475227356,
-1.0139168500900269,
0.314569354057312,
-0.36903348565101624,
-0.7948180437088013,
0.025932123884558678,
0.002091391943395138,
-0.2413744032382965,
0.6794918775558472,
-0.7654015421867371,
0.7417992353439331,
-0.10508081316947937,
-0.5618922114372253,
0.16438084840774536,
-0.8241668939590454,
0.340217262506485,
0.25579091906547546,
-0.009488464333117008,
-0.03720759227871895,
0.06723018735647202,
0.7937600612640381,
-0.7071499824523926,
0.5711161494255066,
-0.37777063250541687,
0.16476546227931976,
0.36770927906036377,
-0.04704495519399643,
0.43907278776168823,
0.013584941625595093,
-0.08782163262367249,
-0.03809325397014618,
0.05171867087483406,
-0.6979127526283264,
-0.22192108631134033,
0.6543346643447876,
-0.9391419887542725,
-0.46168360114097595,
-0.6792531609535217,
-0.38691771030426025,
0.04490140452980995,
0.11368098109960556,
0.4960801303386688,
0.7015681862831116,
0.031517308205366135,
0.20015765726566315,
0.6828489303588867,
-0.43902653455734253,
0.43825843930244446,
-0.03137582167983055,
-0.00946451723575592,
-0.5375655293464661,
0.8440341949462891,
-0.05196787789463997,
0.09489497542381287,
0.16292649507522583,
0.15041260421276093,
-0.28512251377105713,
-0.38553738594055176,
-0.27021005749702454,
0.6442003846168518,
-0.41518643498420715,
-0.33979111909866333,
-0.6814953684806824,
-0.4720998704433441,
-0.6108875274658203,
-0.22541765868663788,
-0.3017445206642151,
-0.2720823585987091,
-0.24872618913650513,
0.04440676048398018,
0.6807181239128113,
0.8298129439353943,
-0.38380181789398193,
0.36053094267845154,
-0.5944674611091614,
0.21534831821918488,
0.21392571926116943,
0.3844580054283142,
-0.3531865179538727,
-0.7402308583259583,
-0.011088860221207142,
-0.08461984992027283,
-0.2519557476043701,
-0.7317085266113281,
0.6488662958145142,
0.0941702350974083,
0.4676378667354584,
0.49765855073928833,
-0.24405281245708466,
0.810295581817627,
-0.07052085548639297,
0.544094443321228,
0.6291918754577637,
-0.7322862148284912,
0.3788687288761139,
-0.3760470449924469,
0.15212294459342957,
0.07644040882587433,
0.31773805618286133,
-0.46379244327545166,
-0.2617482542991638,
-0.8545451760292053,
-0.6339288353919983,
0.8334121704101562,
0.24604520201683044,
-0.011906523257493973,
0.24158653616905212,
0.6120684146881104,
-0.12484578788280487,
0.053867749869823456,
-0.6243337988853455,
-0.7080699801445007,
-0.26115766167640686,
-0.1821400225162506,
-0.04561339691281319,
-0.10437380522489548,
-0.15712037682533264,
-0.6955279111862183,
0.7061249017715454,
0.04880012571811676,
0.7022100687026978,
0.2871650457382202,
-0.14748603105545044,
-0.02515437826514244,
-0.380733847618103,
0.6859299540519714,
0.5374671816825867,
-0.2705964744091034,
-0.22901707887649536,
0.33642706274986267,
-0.5841588973999023,
0.020640777423977852,
0.13599103689193726,
0.008865312673151493,
0.10150650888681412,
0.40635931491851807,
0.7927939891815186,
-0.009056316688656807,
-0.019502976909279823,
0.7343614101409912,
-0.21984364092350006,
-0.6148903369903564,
-0.287013977766037,
-0.019631169736385345,
0.15112043917179108,
0.4382458031177521,
0.18728715181350708,
0.22369641065597534,
-0.30512577295303345,
-0.42712169885635376,
0.33873873949050903,
0.7827562689781189,
-0.46399635076522827,
-0.4063989222049713,
0.6583837270736694,
-0.2079722285270691,
-0.017586128786206245,
0.4787902534008026,
-0.016106445342302322,
-0.7243269085884094,
1.0122005939483643,
0.3037889897823334,
0.6758283972740173,
-0.46490395069122314,
0.1945306956768036,
0.8505218029022217,
0.17464497685432434,
0.06583274155855179,
0.31230399012565613,
0.27366527915000916,
-0.4342133700847626,
-0.06744127720594406,
-0.6047537922859192,
0.18864275515079498,
0.5749642252922058,
-0.5171718597412109,
0.26447558403015137,
-0.7819191813468933,
-0.4538581371307373,
0.058563925325870514,
0.3211763799190521,
-0.8780679106712341,
0.3596027195453644,
0.09958619624376297,
1.060786247253418,
-0.8187493681907654,
0.8805859088897705,
0.8791842460632324,
-0.48415398597717285,
-1.0343680381774902,
-0.14133189618587494,
0.19618304073810577,
-1.0806039571762085,
0.6282557249069214,
0.22650517523288727,
0.11646012216806412,
-0.1800609529018402,
-0.7108854651451111,
-0.680661141872406,
1.3624287843704224,
0.30104732513427734,
-0.13482210040092468,
0.06444568932056427,
-0.23793169856071472,
0.25892049074172974,
-0.2728319764137268,
0.6129689812660217,
0.3419278562068939,
0.5873832702636719,
0.21395957469940186,
-0.9056958556175232,
0.34882113337516785,
-0.5073325037956238,
0.036166708916425705,
0.22364161908626556,
-1.275953769683838,
1.1006633043289185,
-0.26651883125305176,
0.0274015162140131,
0.16620402038097382,
0.5713823437690735,
0.2562010586261749,
-0.02529466710984707,
0.38668879866600037,
0.8050637245178223,
0.47001153230667114,
-0.24019582569599152,
1.0322140455245972,
-0.07556669414043427,
0.5277793407440186,
0.24519547820091248,
0.4451853930950165,
0.40897703170776367,
0.2775253653526306,
-0.35083234310150146,
0.14550592005252838,
0.8812411427497864,
-0.26003125309944153,
0.15968327224254608,
0.3397759795188904,
-0.2757505178451538,
-0.2810811698436737,
0.010253158397972584,
-0.6471399664878845,
0.26835429668426514,
0.23249466717243195,
-0.3159903287887573,
0.0406559593975544,
0.04793227091431618,
0.24394813179969788,
-0.2212735414505005,
-0.22661998867988586,
0.5767163634300232,
0.12224765121936798,
-0.4375631809234619,
0.7784681916236877,
-0.0026200157590210438,
1.0436335802078247,
-0.5252588391304016,
0.1116853654384613,
-0.40848952531814575,
0.3141271770000458,
-0.29816925525665283,
-0.9421013593673706,
0.017330307513475418,
-0.14368204772472382,
0.0939309298992157,
-0.19241265952587128,
0.697742223739624,
-0.3089948892593384,
-0.3071790933609009,
0.4159737527370453,
0.31693902611732483,
0.4493001103401184,
0.05660771578550339,
-1.2306983470916748,
0.26429685950279236,
0.14554722607135773,
-0.7905851006507874,
0.4515265226364136,
0.46755802631378174,
0.29274871945381165,
0.7562083005905151,
0.4714229702949524,
0.2209039330482483,
0.28571343421936035,
-0.32467222213745117,
0.8853908181190491,
-0.6623872518539429,
-0.294223427772522,
-0.807009756565094,
0.5387161374092102,
-0.3783920407295227,
-0.5914046168327332,
0.6828734278678894,
0.5656423568725586,
0.5903080105781555,
-0.05442322418093681,
0.72505784034729,
-0.3758753836154938,
0.20390745997428894,
-0.3643134832382202,
0.7766711711883545,
-0.8313313126564026,
-0.30937159061431885,
-0.2411574125289917,
-0.8050004839897156,
-0.39445626735687256,
0.8193861842155457,
0.005207626149058342,
0.2595606744289398,
0.48042601346969604,
0.8815305233001709,
-0.1709173619747162,
-0.2593096196651459,
0.18532554805278778,
0.30546194314956665,
0.020977864041924477,
0.870398998260498,
0.646990954875946,
-0.6969631910324097,
0.24443994462490082,
-0.5570622086524963,
-0.36652353405952454,
-0.34960296750068665,
-0.6505563855171204,
-1.2181026935577393,
-0.7385396361351013,
-0.6326201558113098,
-0.6641280055046082,
-0.12527291476726532,
1.0844489336013794,
1.1116565465927124,
-0.6654956340789795,
-0.24288329482078552,
0.1467587798833847,
-0.08350846916437149,
-0.10772170126438141,
-0.25774797797203064,
0.6011736392974854,
-0.04185441508889198,
-0.7923014163970947,
-0.20517319440841675,
0.15969450771808624,
0.4403616189956665,
0.4207128584384918,
-0.3691312074661255,
-0.20855586230754852,
-0.06897083669900894,
0.4679664969444275,
0.6120762825012207,
-0.6141364574432373,
-0.3058678209781647,
-0.07273945212364197,
-0.4071464240550995,
0.39031562209129333,
0.3588099479675293,
-0.2893989086151123,
0.04780412092804909,
0.5508646368980408,
0.2425367385149002,
0.8555352687835693,
-0.05699421092867851,
0.17727920413017273,
-0.4772873818874359,
0.42226719856262207,
-0.14544911682605743,
0.41168972849845886,
0.2722111642360687,
-0.3006620407104492,
0.6617492437362671,
0.47269776463508606,
-0.47844743728637695,
-0.9561535716056824,
-0.10127182304859161,
-1.309435486793518,
-0.08178301155567169,
0.9438366889953613,
-0.24181614816188812,
-0.5111047625541687,
0.3900511860847473,
-0.3577660024166107,
0.4903862774372101,
-0.26456955075263977,
0.1930873990058899,
0.4143916666507721,
-0.16546256840229034,
-0.45221421122550964,
-0.7661964893341064,
0.5633461475372314,
0.38525205850601196,
-0.6343254446983337,
-0.3573940098285675,
-0.0020248526707291603,
0.5411238074302673,
0.1928420215845108,
0.6006909012794495,
-0.2792930006980896,
0.09484633803367615,
-0.03829822316765785,
0.28327709436416626,
-0.26936233043670654,
0.021380137652158737,
-0.2144450843334198,
-0.02958417870104313,
-0.13966482877731323,
-0.5704594850540161
] |
Yntec/DreamLikeRemix
|
Yntec
| 2023-09-02T08:58:22Z | 8,905 | 3 |
diffusers
|
[
"diffusers",
"anime",
"Dreamlike",
"art",
"Retro",
"Elldreths",
"stable-diffusion",
"stable-diffusion-diffusers",
"text-to-image",
"en",
"license:other",
"has_space",
"diffusers:StableDiffusionPipeline",
"region:us"
] |
text-to-image
| 2023-08-11T14:26:00Z |
---
license: other
language:
- en
library_name: diffusers
pipeline_tag: text-to-image
tags:
- anime
- Dreamlike
- art
- Retro
- Elldreths
- stable-diffusion
- stable-diffusion-diffusers
- text-to-image
- diffusers
inference: false
---
# DreamLikeRemix
Samples and prompts:


beautiful background, beautiful detailed girl, Cartoon Pretty CUTE Girl, sitting on a box of cherries, DETAILED CHIBI EYES, holding antique slot machine, detailed hair, Ponytail, key shot at computer monitor, Magazine ad, iconic, 1940, sharp focus. Acrylic art on canvas By KlaysMoji and artgerm and Clay Mann and and leyendecker
A mix of Dreamlike Diffusion and a little bit of Elldreths Retro Mix.
Full recipe:
# Add Difference 1.0
Primary model:
Dreamlike Diffusion
Secondary model:
Elldreths Retro Mix
Tertiary model:
v1-5-pruned-fp16-no-ema
Output Model:
Temporary
# Weighted Sum 0.85
Primary model:
Temporary
Secondary model:
Dreamlike Diffusion
Output Model:
dreamLikeRemix
Original pages:
https://huggingface.co/dreamlike-art/dreamlike-diffusion-1.0
https://civitai.com/models/1474/elldreths-retro-mix
|
[
-0.62559574842453,
-0.9828445911407471,
0.6516575217247009,
0.44535329937934875,
-0.10223947465419769,
0.23776037991046906,
0.19949349761009216,
-0.39468804001808167,
1.106745719909668,
0.8140954971313477,
-1.1645276546478271,
-0.6145052909851074,
-0.46073538064956665,
-0.03637217730283737,
-0.490586519241333,
0.9469249248504639,
-0.10236658155918121,
-0.016793496906757355,
0.11140993982553482,
0.16919876635074615,
-0.87110835313797,
0.2950197756290436,
-0.6364755630493164,
-0.35235849022865295,
0.36981499195098877,
0.615662693977356,
0.4182965159416199,
-0.15461210906505585,
-0.19185571372509003,
0.2529492974281311,
-0.16822350025177002,
-0.21932141482830048,
-0.5589306354522705,
0.47076886892318726,
0.04399297386407852,
-0.5433564186096191,
-0.6220323443412781,
0.4592224061489105,
0.46911385655403137,
0.39390233159065247,
-0.3448422849178314,
0.33794689178466797,
0.2985742688179016,
0.7638212442398071,
-0.2941559851169586,
-0.33126458525657654,
-0.18053430318832397,
0.39154523611068726,
-0.08014097809791565,
0.20682623982429504,
-0.18951420485973358,
-0.5290982723236084,
-0.1539124995470047,
-0.7939450740814209,
0.40166690945625305,
0.16245386004447937,
1.0342704057693481,
0.06821513921022415,
-0.06461725383996964,
0.1585465669631958,
-0.47979971766471863,
0.7223199605941772,
-0.4325520396232605,
0.3648582696914673,
0.07795673608779907,
0.5460105538368225,
-0.002693260321393609,
-1.1165199279785156,
-0.5103892087936401,
0.2365601807832718,
0.2508353292942047,
0.5125539898872375,
-0.31305986642837524,
-0.42926549911499023,
0.33881160616874695,
0.29538366198539734,
-0.5698957443237305,
-0.329851895570755,
-0.3527704179286957,
0.1137842908501625,
0.46633973717689514,
0.3115459382534027,
0.3689156472682953,
0.05566001310944557,
-0.41085630655288696,
-0.3492469787597656,
-0.6741797924041748,
-0.1518869698047638,
0.16422203183174133,
0.17575335502624512,
-0.7919921278953552,
0.673647403717041,
0.11095648258924484,
0.6811325550079346,
0.32276633381843567,
0.14448785781860352,
0.2879054844379425,
-0.3738890290260315,
-0.3448166847229004,
-0.2493358999490738,
0.8475509881973267,
0.4106309711933136,
0.0334085188806057,
0.2661513090133667,
-0.24692441523075104,
-0.06284547597169876,
0.18198388814926147,
-1.0699750185012817,
-0.6269918084144592,
0.4411764442920685,
-0.7277876734733582,
-0.40354660153388977,
-0.1627119481563568,
-1.3099619150161743,
-0.34197092056274414,
-0.37281182408332825,
0.37463080883026123,
-0.4369529187679291,
-0.30095788836479187,
0.05383717641234398,
-0.5358917117118835,
0.01766127720475197,
0.516630232334137,
-0.5260322093963623,
0.16775718331336975,
0.23108088970184326,
0.966049313545227,
0.1050778180360794,
0.3484438955783844,
0.20064231753349304,
-0.27453625202178955,
-0.34071940183639526,
0.9168609976768494,
-0.6563296318054199,
-0.7141739726066589,
-0.1467583179473877,
0.1710578054189682,
-0.10649939626455307,
-0.5367519855499268,
0.5403231382369995,
-0.16294676065444946,
0.3707369863986969,
-0.3122549057006836,
-0.4220363199710846,
-0.3261837661266327,
-0.10453899204730988,
-0.6651573777198792,
0.6594050526618958,
0.24449455738067627,
-0.5561977624893188,
0.495880126953125,
-0.955085039138794,
0.12404195219278336,
0.12882335484027863,
-0.21898706257343292,
-0.10975289344787598,
0.1788005381822586,
0.05628347024321556,
0.3799249529838562,
-0.09422282874584198,
-0.4309896230697632,
-0.6370654702186584,
-0.24693796038627625,
0.37795794010162354,
-0.5025302171707153,
0.9600620865821838,
0.6862534880638123,
-0.22255589067935944,
-0.002619157312437892,
-0.8494214415550232,
0.15290360152721405,
0.5771684050559998,
0.2793779671192169,
-0.23524409532546997,
-0.6449142694473267,
0.6272507905960083,
0.14118927717208862,
0.18954990804195404,
-0.6542251706123352,
0.09704636037349701,
-0.017246639356017113,
-0.10461294651031494,
0.8157654404640198,
0.2962401509284973,
0.09031698852777481,
-0.5971513986587524,
1.0322396755218506,
-0.08493877947330475,
0.06780985742807388,
-0.024139653891324997,
-0.7121834754943848,
-0.656692624092102,
-0.39060187339782715,
0.4952438175678253,
0.4198121428489685,
-0.4479812681674957,
0.23944808542728424,
0.19068235158920288,
-0.7483681440353394,
-0.6479626893997192,
-0.1640407294034958,
-0.07021617144346237,
0.3535684645175934,
0.20045825839042664,
-0.39122647047042847,
-0.6006550788879395,
-0.95831698179245,
0.11120808869600296,
0.30113929510116577,
-0.28925400972366333,
0.3536331355571747,
0.5473452806472778,
-0.16579343378543854,
0.7853102087974548,
-0.9192560911178589,
-0.1942243129014969,
-0.32969722151756287,
-0.05092507600784302,
0.8556995987892151,
0.5132872462272644,
0.8110944628715515,
-0.7523702383041382,
-0.5621933937072754,
-0.6244982481002808,
-0.5996143817901611,
-0.4206011891365051,
-0.01616128347814083,
-0.2550014853477478,
-0.3878554701805115,
0.11696217954158783,
-0.5635995864868164,
0.39407050609588623,
0.5713812112808228,
-1.0034868717193604,
0.7532414197921753,
-0.09415993094444275,
0.6761418581008911,
-1.4482488632202148,
-0.08374951034784317,
0.3279915750026703,
-0.30253866314888,
-0.3826203942298889,
0.5267598032951355,
-0.31289955973625183,
-0.1747584491968155,
-0.6657435297966003,
0.655484676361084,
-0.46547824144363403,
0.4587019383907318,
-0.33047062158584595,
0.2578837275505066,
0.2791488766670227,
0.1452164500951767,
-0.02287859283387661,
0.381344199180603,
0.77140212059021,
-0.40018993616104126,
0.3410947918891907,
0.44658374786376953,
-0.12009976804256439,
0.9967737793922424,
-1.1793769598007202,
0.14496560394763947,
-0.063477523624897,
0.2055220752954483,
-1.2643762826919556,
-0.12133052200078964,
0.6809262633323669,
-0.4336223304271698,
0.2810823619365692,
-0.0862368643283844,
-0.40370437502861023,
-0.3320562243461609,
-0.3948588967323303,
0.41811925172805786,
1.0614776611328125,
-0.2620537579059601,
0.43267005681991577,
0.27122098207473755,
-0.024565715342760086,
-0.09073035418987274,
-0.6121754050254822,
0.03486666455864906,
-0.35400575399398804,
-0.5823283195495605,
0.5162838101387024,
-0.3535763919353485,
-0.3422875702381134,
-0.025855189189314842,
0.3063158094882965,
-0.01136729959398508,
-0.22504448890686035,
0.616770327091217,
0.32525768876075745,
-0.2206260859966278,
-0.3384506106376648,
0.5058762431144714,
0.09094014018774033,
0.017011133953928947,
-0.22925366461277008,
0.7402933239936829,
-0.16703064739704132,
-0.53846275806427,
-0.9108182191848755,
0.5072959065437317,
0.5130395889282227,
0.4867437481880188,
0.6090487241744995,
0.7573359608650208,
-0.47647401690483093,
-0.03729483112692833,
-0.6740208268165588,
-0.4745297133922577,
-0.4570198059082031,
-0.15671086311340332,
-0.5614458918571472,
-0.4767334461212158,
0.6797923445701599,
0.21072931587696075,
0.1514621078968048,
0.5954942107200623,
0.4616844058036804,
-0.42862367630004883,
1.0039619207382202,
0.31855490803718567,
0.2663688659667969,
0.4551413357257843,
-0.8794392347335815,
-0.3319079279899597,
-0.6637632846832275,
-0.386005163192749,
-0.3571617007255554,
-0.9331761002540588,
-0.2475094497203827,
-0.544887363910675,
0.1553603857755661,
-0.01957307569682598,
-0.17165236175060272,
0.5265019536018372,
-0.3322988748550415,
0.6090124845504761,
0.36953404545783997,
0.5527867078781128,
0.05363667011260986,
0.3299570679664612,
-0.31871283054351807,
-0.3175811767578125,
-0.5746743679046631,
-0.16499359905719757,
0.8668171167373657,
0.38017740845680237,
0.8431193828582764,
0.0982615053653717,
1.0338062047958374,
0.36005699634552,
0.02112484723329544,
-0.3960414230823517,
0.7789353728294373,
0.033073872327804565,
-0.5067117810249329,
0.04761185497045517,
-0.05713675916194916,
-1.0139433145523071,
0.17396235466003418,
-0.5852758288383484,
-0.6539645791053772,
0.3579278290271759,
0.1724558174610138,
-0.5090798139572144,
0.34636664390563965,
-0.5492704510688782,
0.7863344550132751,
0.35265466570854187,
-0.4869486093521118,
-0.3827734887599945,
-0.1892816424369812,
0.13821880519390106,
0.0042955405078828335,
0.21546918153762817,
-0.10265596210956573,
-0.15711398422718048,
0.7150028347969055,
-0.26884299516677856,
0.9274851679801941,
-0.2144354283809662,
-0.12493915855884552,
0.5199336409568787,
0.4458741545677185,
0.36670997738838196,
0.2530246376991272,
0.2821948230266571,
0.08284632116556168,
-0.04527481645345688,
-0.4347885847091675,
-0.380601167678833,
0.7520270943641663,
-0.3140037953853607,
-0.3892919421195984,
-0.12078078836202621,
-0.42727360129356384,
0.05184052139520645,
0.063810795545578,
0.6227233409881592,
0.6181723475456238,
-0.4065375030040741,
0.17260077595710754,
0.8825060725212097,
-0.04707809165120125,
0.5148669481277466,
0.2006075382232666,
-0.624770998954773,
-0.4780080318450928,
0.593293309211731,
-0.17008790373802185,
0.18180133402347565,
0.1241401731967926,
0.3609316051006317,
-0.5212584137916565,
-0.4457588493824005,
-0.4154534637928009,
0.4635905921459198,
-0.4346342384815216,
0.07235870510339737,
-0.7221649289131165,
0.03066984936594963,
-0.646152675151825,
-0.19572319090366364,
-0.3974577486515045,
-0.6463655233383179,
-0.7535330653190613,
-0.07777861505746841,
0.6851239204406738,
0.8719317317008972,
-0.2662559151649475,
-0.06496317684650421,
-0.9336152672767639,
0.3654596507549286,
0.28727078437805176,
0.08013422042131424,
0.10017906874418259,
-0.8703053593635559,
0.20705680549144745,
0.27602729201316833,
-0.3887781500816345,
-1.2534081935882568,
0.7187142372131348,
-0.14646518230438232,
0.535667359828949,
0.4047180116176605,
-0.2806825339794159,
0.754493236541748,
-0.3631301820278168,
1.035375714302063,
0.5884299874305725,
-0.5825377702713013,
0.8951786756515503,
-0.6434742212295532,
0.2434963434934616,
0.5791720747947693,
0.23557721078395844,
-0.7827185988426208,
-0.6700727939605713,
-1.0247375965118408,
-0.9231494069099426,
0.3335564434528351,
0.43737557530403137,
0.22934438288211823,
0.17073270678520203,
0.2602108418941498,
0.18945933878421783,
0.23062606155872345,
-0.7655109167098999,
-0.6070021390914917,
-0.26761341094970703,
-0.38685232400894165,
0.12509354948997498,
-0.01683526672422886,
-0.39054298400878906,
-0.31968337297439575,
0.7550737857818604,
0.049535755068063736,
0.3518006205558777,
0.14078782498836517,
0.3694874346256256,
-0.08811295032501221,
0.05525795742869377,
0.5716195702552795,
0.5379049181938171,
-0.32223471999168396,
-0.17119954526424408,
0.008583592250943184,
-0.5247170329093933,
0.31805354356765747,
-0.0974942147731781,
-0.46807530522346497,
0.1680094301700592,
-0.061407770961523056,
0.864970326423645,
-0.12923787534236908,
-0.623428463935852,
0.3257782757282257,
-0.14161965250968933,
-0.1202467530965805,
-0.6147161722183228,
0.456108421087265,
0.12420521676540375,
0.515069842338562,
0.45321881771087646,
0.4525717794895172,
0.41032662987709045,
-0.17108054459095,
0.4019337296485901,
0.3790053129196167,
-0.7856263518333435,
-0.45287469029426575,
1.0993385314941406,
-0.07181010395288467,
-0.47133737802505493,
0.31010156869888306,
-0.20711871981620789,
-0.04093612730503082,
0.8843896389007568,
0.7821529507637024,
1.2346415519714355,
-0.13023456931114197,
0.6221430897712708,
0.4486396014690399,
-0.14962171018123627,
0.070518359541893,
0.6909472346305847,
0.04981594532728195,
-0.49832630157470703,
0.16184745728969574,
-0.5421645641326904,
-0.21562185883522034,
0.16615477204322815,
-0.5005472302436829,
0.5380915999412537,
-0.5398771166801453,
-0.1067403256893158,
-0.24151864647865295,
-0.26198282837867737,
-0.6647307276725769,
0.40568235516548157,
0.13218951225280762,
1.3990237712860107,
-1.2797240018844604,
0.2981579601764679,
0.5308386087417603,
-0.4160968065261841,
-1.0040003061294556,
-0.020071057602763176,
0.35222262144088745,
-0.6590995192527771,
0.3767203092575073,
0.11901752650737762,
0.2006153017282486,
-0.04656197503209114,
-0.6576004028320312,
-0.5247676968574524,
1.048752784729004,
-0.16007675230503082,
-0.5806044340133667,
0.2106093466281891,
-0.5030994415283203,
0.4802854657173157,
-0.7197555303573608,
0.58926922082901,
0.6459302306175232,
0.47335395216941833,
0.6195216178894043,
-0.4665185511112213,
0.20089904963970184,
-0.6711645126342773,
0.004308339674025774,
-0.07802197337150574,
-0.6552525758743286,
0.8789803385734558,
-0.5347082614898682,
-0.1466025859117508,
0.4032543897628784,
0.9487166404724121,
0.6308368444442749,
0.3886999487876892,
0.9054288864135742,
0.772800624370575,
0.3402389883995056,
-0.2424892634153366,
1.1843781471252441,
-0.15477973222732544,
0.09765396267175674,
0.8320186734199524,
-0.010054884478449821,
0.5943279266357422,
0.3581676781177521,
-0.6366217732429504,
0.8449199795722961,
1.2830697298049927,
0.002563352230936289,
0.4940665662288666,
0.004105364438146353,
-0.191162109375,
-0.08372800052165985,
-0.1864059567451477,
-0.8032816052436829,
0.020820623263716698,
0.390567809343338,
-0.4287762939929962,
-0.055202603340148926,
0.2702842056751251,
-0.14691706001758575,
0.0015822364948689938,
-0.17551018297672272,
0.3403507471084595,
0.27275434136390686,
-0.5168985724449158,
0.5216889381408691,
-0.379738450050354,
0.760835587978363,
-0.49889060854911804,
-0.4298187494277954,
-0.5564486384391785,
-0.19019335508346558,
-0.18072398006916046,
-0.9710560441017151,
-0.07306510955095291,
-0.1882675290107727,
-0.021117914468050003,
-0.519306480884552,
0.5474787354469299,
-0.4105599820613861,
-0.9784860610961914,
0.05122848600149155,
0.4595071077346802,
0.2743541896343231,
0.1012980043888092,
-1.1892976760864258,
-0.11987826973199844,
0.29183003306388855,
-0.3531947135925293,
-0.056180261075496674,
0.1784263402223587,
0.6560112237930298,
0.5289488434791565,
0.2684473991394043,
0.49246442317962646,
-0.21814343333244324,
0.445843905210495,
0.4827522337436676,
-0.5159063339233398,
-0.5950302481651306,
-0.8237278461456299,
0.6242368817329407,
-0.317009299993515,
-0.26449912786483765,
0.8422468304634094,
0.40630289912223816,
0.16277456283569336,
-0.5960833430290222,
0.45482271909713745,
-0.25083279609680176,
0.6056563258171082,
-0.7943652272224426,
0.7769275307655334,
-1.0193926095962524,
0.22501140832901,
-0.7460669875144958,
-1.0942020416259766,
0.1646355539560318,
0.4075756371021271,
0.4708845615386963,
0.37393805384635925,
0.5413937568664551,
0.9235969185829163,
-0.12294111400842667,
0.23220156133174896,
0.0786135196685791,
0.32700246572494507,
0.13882428407669067,
0.4391515254974365,
0.8283150792121887,
-0.4512787163257599,
-0.057635560631752014,
-0.4273267090320587,
-0.29469969868659973,
-0.20662951469421387,
-0.7689838409423828,
-0.7390304803848267,
-0.655142605304718,
-0.6523410677909851,
-0.8584690690040588,
-0.2026640921831131,
1.1193126440048218,
0.7659412026405334,
-1.0765690803527832,
-0.1023784875869751,
-0.1825610250234604,
0.17477959394454956,
-0.26438480615615845,
-0.303634375333786,
0.09064267575740814,
0.34873756766319275,
-1.1752852201461792,
0.5308321714401245,
0.040810223668813705,
1.086291790008545,
-0.19475750625133514,
0.21447408199310303,
0.18793416023254395,
0.06799314171075821,
0.2542036473751068,
-0.013150261715054512,
-0.4898478388786316,
-0.19036710262298584,
0.16535890102386475,
0.1753222644329071,
-0.1048198938369751,
0.7204028367996216,
-0.8474929332733154,
0.040719375014305115,
0.9280563592910767,
-0.15960289537906647,
0.32265615463256836,
-0.1345016062259674,
0.4810533821582794,
-0.5910359621047974,
0.2681306004524231,
0.15397818386554718,
0.7251622676849365,
0.06720077991485596,
-0.26326969265937805,
0.5713684558868408,
0.7584455609321594,
-0.2109498232603073,
-0.6679342985153198,
0.28275737166404724,
-1.192331075668335,
-0.5839207768440247,
1.0065970420837402,
0.39490821957588196,
-0.18111683428287506,
0.09095828235149384,
-0.5822218060493469,
-0.13198035955429077,
-0.5299876928329468,
0.47473669052124023,
0.5095422267913818,
-0.27317264676094055,
-0.13885216414928436,
-0.4292847514152527,
0.1257261484861374,
0.33437108993530273,
-0.6103296875953674,
-0.4226776957511902,
0.8821197152137756,
0.40500718355178833,
0.26555976271629333,
0.7086662650108337,
-0.28090834617614746,
0.138682022690773,
0.4648713767528534,
0.04358137398958206,
0.1198752298951149,
-0.40019169449806213,
-0.17872609198093414,
0.35129374265670776,
-0.34089571237564087,
-0.6041874289512634
] |
deutsche-telekom/gbert-large-paraphrase-cosine
|
deutsche-telekom
| 2023-11-10T20:25:58Z | 8,902 | 15 |
sentence-transformers
|
[
"sentence-transformers",
"pytorch",
"bert",
"sentence-similarity",
"transformers",
"setfit",
"de",
"dataset:deutsche-telekom/ger-backtrans-paraphrase",
"license:mit",
"endpoints_compatible",
"region:us"
] |
sentence-similarity
| 2023-01-13T10:29:27Z |
---
pipeline_tag: sentence-similarity
language:
- de
tags:
- sentence-transformers
- sentence-similarity
- transformers
- setfit
license: mit
datasets:
- deutsche-telekom/ger-backtrans-paraphrase
---
# German BERT large paraphrase cosine
This is a [sentence-transformers](https://www.SBERT.net) model.
It maps sentences & paragraphs (text) into a 1024 dimensional dense vector space.
The model is intended to be used together with [SetFit](https://github.com/huggingface/setfit)
to improve German few-shot text classification.
It has a sibling model called
[deutsche-telekom/gbert-large-paraphrase-euclidean](https://huggingface.co/deutsche-telekom/gbert-large-paraphrase-euclidean).
This model is based on [deepset/gbert-large](https://huggingface.co/deepset/gbert-large).
Many thanks to [deepset](https://www.deepset.ai/)!
**Loss Function**\
We have used [MultipleNegativesRankingLoss](https://www.sbert.net/docs/package_reference/losses.html#multiplenegativesrankingloss)
with cosine similarity as the loss function.
**Training Data**\
The model is trained on a carefully filtered dataset of
[deutsche-telekom/ger-backtrans-paraphrase](https://huggingface.co/datasets/deutsche-telekom/ger-backtrans-paraphrase).
We deleted the following pairs of sentences:
- `min_char_len` less than 15
- `jaccard_similarity` greater than 0.3
- `de_token_count` greater than 30
- `en_de_token_count` greater than 30
- `cos_sim` less than 0.85
**Hyperparameters**
- learning_rate: 8.345726930229726e-06
- num_epochs: 7
- train_batch_size: 57
- num_gpu: 1
## Evaluation Results
We use the [NLU Few-shot Benchmark - English and German](https://huggingface.co/datasets/deutsche-telekom/NLU-few-shot-benchmark-en-de)
dataset to evaluate this model in a German few-shot scenario.
**Qualitative results**
- multilingual sentence embeddings provide the worst results
- Electra models also deliver poor results
- German BERT base size model ([deepset/gbert-base](https://huggingface.co/deepset/gbert-base)) provides good results
- German BERT large size model ([deepset/gbert-large](https://huggingface.co/deepset/gbert-large)) provides very good results
- our fine-tuned models (this model and [deutsche-telekom/gbert-large-paraphrase-euclidean](https://huggingface.co/deutsche-telekom/gbert-large-paraphrase-euclidean)) provide best results
## Licensing
Copyright (c) 2023 [Philip May](https://may.la/), [Deutsche Telekom AG](https://www.telekom.com/)\
Copyright (c) 2022 [deepset GmbH](https://www.deepset.ai/)
Licensed under the **MIT License** (the "License"); you may not use this file except in compliance with the License.
You may obtain a copy of the License by reviewing the file
[LICENSE](https://huggingface.co/deutsche-telekom/gbert-large-paraphrase-cosine/blob/main/LICENSE) in the repository.
|
[
-0.4782138764858246,
-1.0562745332717896,
0.5232088565826416,
0.22930972278118134,
-0.42739251255989075,
-0.5292472839355469,
-0.4547974169254303,
-0.36458683013916016,
0.015715038403868675,
0.5135379433631897,
-0.5250978469848633,
-0.6882851123809814,
-0.563776433467865,
0.07401599735021591,
-0.38979649543762207,
1.150216817855835,
-0.062182649970054626,
0.2561040222644806,
-0.05713154375553131,
-0.3101743161678314,
-0.12054166197776794,
-0.5710886716842651,
-0.6942460536956787,
-0.42008107900619507,
0.49214136600494385,
0.4301772713661194,
0.8283451795578003,
0.2737119197845459,
0.7795205116271973,
0.3303011953830719,
-0.18172965943813324,
-0.270151823759079,
-0.6712591052055359,
-0.08337780088186264,
0.04463541507720947,
-0.35427987575531006,
-0.18076810240745544,
-0.12217065691947937,
0.6817470788955688,
0.4701717793941498,
-0.16416816413402557,
0.11957177519798279,
-0.0278784092515707,
0.47603267431259155,
-0.2668837010860443,
0.14554187655448914,
-0.5049619674682617,
0.07543589174747467,
-0.10856758058071136,
0.33753669261932373,
-0.2914632260799408,
-0.4219508469104767,
0.49661529064178467,
-0.44506382942199707,
0.31918516755104065,
0.031726572662591934,
1.1515932083129883,
0.21023164689540863,
-0.1966133415699005,
-0.2178749144077301,
-0.3783389627933502,
0.8294458985328674,
-1.1149712800979614,
0.28725114464759827,
0.4268092215061188,
0.3064559996128082,
0.0494539849460125,
-0.8251727819442749,
-0.7587485313415527,
-0.40755853056907654,
-0.039998169988393784,
0.10671745240688324,
-0.3225826919078827,
-0.03067442588508129,
0.30932173132896423,
0.21637573838233948,
-0.794222891330719,
0.22984518110752106,
-0.3945225477218628,
-0.2515276074409485,
0.590657114982605,
-0.0067160362377762794,
0.10163242369890213,
-0.47276777029037476,
-0.3520646393299103,
-0.38906627893447876,
-0.6689984798431396,
-0.06436237692832947,
0.39384350180625916,
0.17390106618404388,
-0.4682341516017914,
0.7090395092964172,
-0.21543388068675995,
0.5115707516670227,
-0.011349459178745747,
-0.09298302978277206,
0.43118590116500854,
-0.24761249125003815,
-0.24766895174980164,
0.024759739637374878,
0.9327420592308044,
0.3766237199306488,
0.4822791814804077,
-0.019905921071767807,
-0.0667058527469635,
-0.10754693299531937,
-0.003803049447014928,
-0.887138307094574,
-0.35264360904693604,
-0.02394617348909378,
-0.500354528427124,
-0.08618713170289993,
0.08880167454481125,
-0.6640219688415527,
-0.08181129395961761,
-0.16394224762916565,
0.5679024457931519,
-0.9174124002456665,
0.32918909192085266,
0.3235766291618347,
-0.308214008808136,
0.41562619805336,
0.035035379230976105,
-0.4665186405181885,
0.00029838940827175975,
0.5861258506774902,
0.704990029335022,
0.1383296251296997,
-0.4947514832019806,
-0.17750713229179382,
0.009029318578541279,
-0.1504814773797989,
0.5912676453590393,
-0.3419501781463623,
-0.16322816908359528,
0.08390726149082184,
0.014593057334423065,
-0.020983243361115456,
-0.35541531443595886,
1.0053271055221558,
-0.518661379814148,
0.6392204761505127,
-0.22042670845985413,
-0.8546991944313049,
-0.38423967361450195,
0.202417254447937,
-0.510144829750061,
0.8409096598625183,
-0.20689482986927032,
-0.8398205041885376,
0.06470730155706406,
-0.5099481344223022,
-0.4422653317451477,
-0.04627322778105736,
-0.06600535660982132,
-0.7220514416694641,
0.10070883482694626,
0.26925307512283325,
0.7870154976844788,
-0.31249138712882996,
0.10746128112077713,
-0.46504050493240356,
-0.4205237627029419,
0.14060820639133453,
-0.41670700907707214,
1.0149223804473877,
0.0014003828400745988,
-0.3382939100265503,
-0.1288427710533142,
-0.7025920152664185,
-0.032809846103191376,
0.2923934757709503,
-0.15229982137680054,
-0.32306399941444397,
-0.17577384412288666,
0.30176788568496704,
0.4113776683807373,
0.31865206360816956,
-0.6260069608688354,
-0.20337417721748352,
-0.42970260977745056,
0.47407829761505127,
0.598110556602478,
0.17268003523349762,
0.45410242676734924,
-0.355593740940094,
0.3829113841056824,
0.02828804776072502,
0.10748700052499771,
0.1540023535490036,
-0.3242184519767761,
-0.6830888390541077,
-0.3092085123062134,
0.2203073501586914,
0.6277585625648499,
-0.8361753821372986,
0.7781609892845154,
-0.6433711647987366,
-0.6954659819602966,
-0.44028404355049133,
0.19110643863677979,
0.3896723985671997,
0.4550834894180298,
0.5200228691101074,
0.07511485368013382,
-0.24760127067565918,
-1.3577443361282349,
-0.019397402182221413,
0.015764400362968445,
-0.024534959346055984,
0.24179783463478088,
0.7024185657501221,
-0.13641011714935303,
0.5429008603096008,
-0.5137318968772888,
-0.4226633608341217,
-0.36534780263900757,
0.1855277419090271,
0.21133846044540405,
0.3383878171443939,
0.7285459041595459,
-0.8064367175102234,
-0.5795761942863464,
-0.1891690492630005,
-0.8804325461387634,
0.195273756980896,
-0.19033126533031464,
-0.013996358960866928,
0.15639522671699524,
0.45029309391975403,
-0.7894538044929504,
0.14932496845722198,
0.5582595467567444,
-0.2818174362182617,
0.43003255128860474,
-0.39368587732315063,
-0.04113880544900894,
-1.249349594116211,
0.0032766093499958515,
0.2801204323768616,
-0.15122604370117188,
-0.2990966737270355,
0.20016193389892578,
-0.053148698061704636,
-0.13538919389247894,
-0.6045348048210144,
0.3285095989704132,
-0.16347850859165192,
0.1645781546831131,
-0.03202863782644272,
0.19629572331905365,
-0.09315291792154312,
0.6275933980941772,
-0.09018567949533463,
0.8046329021453857,
0.374863862991333,
-0.46078553795814514,
0.44200557470321655,
0.638301432132721,
-0.5281654596328735,
0.6645176410675049,
-0.9799531102180481,
0.03919270262122154,
-0.20860600471496582,
0.4238693118095398,
-0.7658966183662415,
-0.22460320591926575,
0.18572843074798584,
-0.3954276144504547,
0.08937032520771027,
0.29052966833114624,
-0.862966775894165,
-0.409824401140213,
-0.5652315020561218,
0.009882930666208267,
0.6424784660339355,
-0.387158066034317,
0.23511859774589539,
0.07697664201259613,
-0.3868059515953064,
-0.4708443284034729,
-1.034801721572876,
0.27598103880882263,
-0.3763647973537445,
-0.7715509533882141,
0.3505914807319641,
0.05167762190103531,
0.03554278612136841,
0.1411338448524475,
0.18274283409118652,
-0.26668137311935425,
-0.1697249710559845,
-0.07041627168655396,
0.21211235225200653,
-0.2795397639274597,
0.28234973549842834,
0.23166167736053467,
0.03745624050498009,
-0.015988249331712723,
0.06311026215553284,
0.5937920808792114,
-0.40326988697052,
-0.14898161590099335,
-0.7583246827125549,
0.4394999146461487,
0.4854712188243866,
0.08186625689268112,
0.789975643157959,
0.917426347732544,
-0.16805747151374817,
0.13387560844421387,
-0.5678957104682922,
-0.329020231962204,
-0.4280878007411957,
0.5879103541374207,
-0.4743003249168396,
-1.0180094242095947,
0.5391615629196167,
0.36343303322792053,
-0.05240711569786072,
0.8620056509971619,
0.5223806500434875,
-0.35961252450942993,
0.6261808276176453,
0.5043174028396606,
-0.2995145916938782,
0.4576447308063507,
-0.4938114881515503,
0.20804814994335175,
-0.5636858344078064,
0.01522235106676817,
-0.5076004266738892,
-0.4421161711215973,
-0.805399477481842,
-0.19263969361782074,
0.42489901185035706,
0.08270213752985,
-0.4494434595108032,
0.6584733128547668,
-0.2432255744934082,
0.269124835729599,
0.799944281578064,
0.3200669288635254,
0.04155536741018295,
0.12499785423278809,
-0.10361909866333008,
-0.2504601776599884,
-0.8003804087638855,
-0.6302796602249146,
0.925044596195221,
0.4426102638244629,
0.7441837191581726,
0.03560980036854744,
0.980384349822998,
0.1367650181055069,
-0.2525578737258911,
-0.7357093095779419,
0.8159244656562805,
-0.36413002014160156,
-0.7156588435173035,
-0.5468012690544128,
-0.49269863963127136,
-0.8681169748306274,
0.0272285807877779,
-0.20736782252788544,
-0.6095984578132629,
0.05950942263007164,
-0.0742180272936821,
-0.35644420981407166,
0.18424925208091736,
-0.8069506287574768,
0.9969820380210876,
-0.07024442404508591,
-0.22514708340168,
-0.49500778317451477,
-0.9400653839111328,
0.14949148893356323,
-0.17129670083522797,
-0.13055913150310516,
-0.09933581203222275,
-0.014811347238719463,
0.8995952010154724,
-0.2927456498146057,
0.7974847555160522,
-0.1862255334854126,
-0.07808064669370651,
0.34137871861457825,
-0.18150095641613007,
0.6877515316009521,
-0.05995555967092514,
-0.12918588519096375,
0.4740528166294098,
0.10958122462034225,
-0.4854481518268585,
-0.3782074451446533,
0.7711647152900696,
-0.8643620610237122,
-0.3384157717227936,
-0.27093231678009033,
-0.4812467396259308,
0.021417954936623573,
0.21144410967826843,
0.7100694179534912,
0.3378930389881134,
-0.3551078736782074,
0.7460452914237976,
0.5353560447692871,
-0.5353747010231018,
0.506633996963501,
0.08728168904781342,
0.19440127909183502,
-0.4113026261329651,
0.7817307114601135,
0.0836828351020813,
0.11639110743999481,
0.3855016827583313,
0.1732182502746582,
-0.39875873923301697,
-0.4332278370857239,
-0.2072688788175583,
0.506812572479248,
-0.7051334381103516,
-0.17145805060863495,
-0.5893077254295349,
-0.28092217445373535,
-0.5695462822914124,
-0.09829103946685791,
-0.07921531796455383,
-0.5268508791923523,
-0.24204032123088837,
-0.13376352190971375,
0.4213266670703888,
0.3414131700992584,
-0.000616472854744643,
0.6621081829071045,
-0.8170185089111328,
0.391086220741272,
0.1455591320991516,
0.07106856256723404,
-0.1582062691450119,
-0.74651038646698,
-0.3703709542751312,
0.13519074022769928,
-0.48911550641059875,
-0.6642004251480103,
0.35163354873657227,
0.2419532835483551,
0.4668663740158081,
0.27785781025886536,
0.027568908408284187,
0.5416689515113831,
-0.7907329201698303,
0.8692747950553894,
0.26431483030319214,
-0.8213805556297302,
0.2476433962583542,
-0.35912877321243286,
0.4997808635234833,
0.8418928980827332,
0.5073018670082092,
-0.6167622208595276,
-0.39410200715065,
-0.9336680173873901,
-0.7891961336135864,
0.599673867225647,
0.30472201108932495,
0.5866650938987732,
-0.05480936914682388,
0.2649892270565033,
0.09259197115898132,
0.19173161685466766,
-0.8507072329521179,
-0.329070121049881,
-0.025324732065200806,
-0.4045015871524811,
-0.33156371116638184,
-0.4004729688167572,
-0.055243588984012604,
-0.3106868267059326,
0.9362728595733643,
0.11003182083368301,
0.532314658164978,
0.2708275318145752,
-0.23068174719810486,
0.23882155120372772,
0.37803080677986145,
0.6470094323158264,
0.5421875715255737,
-0.16113995015621185,
-0.11997178941965103,
0.4392886459827423,
-0.25645917654037476,
-0.04326316714286804,
0.5140717625617981,
-0.3437204658985138,
0.263376384973526,
0.6255615949630737,
0.9648401141166687,
0.3201388716697693,
-0.5518574118614197,
0.5975116491317749,
0.15932011604309082,
-0.4712473452091217,
-0.3955751657485962,
-0.2671101689338684,
0.18389447033405304,
0.4180549085140228,
0.27672141790390015,
-0.24993789196014404,
0.23951801657676697,
-0.28173038363456726,
0.3523162305355072,
0.3212421238422394,
-0.30940574407577515,
-0.32901808619499207,
0.4299386441707611,
0.11133507639169693,
-0.16870146989822388,
0.7826845645904541,
-0.189771369099617,
-0.6242563128471375,
0.41537928581237793,
0.33440107107162476,
0.9689536690711975,
0.1379808634519577,
0.3966958820819855,
0.3341316282749176,
0.31065768003463745,
-0.20011740922927856,
0.13885176181793213,
0.12407048046588898,
-0.6986695528030396,
-0.4601650834083557,
-0.4241170585155487,
-0.17190489172935486,
0.3068220019340515,
-0.5014097094535828,
0.2968776524066925,
-0.288099467754364,
-0.16750472784042358,
0.1500941514968872,
-0.024905459955334663,
-0.821864664554596,
0.1536884903907776,
0.21207210421562195,
0.8606762886047363,
-0.9210835099220276,
0.8943040370941162,
0.6586562395095825,
-0.6053725481033325,
-0.6646438837051392,
0.20825941860675812,
-0.28555116057395935,
-0.8119133114814758,
0.6463727355003357,
0.1520238071680069,
0.18937771022319794,
0.07932966202497482,
-0.5994587540626526,
-0.6108745336532593,
0.9094714522361755,
0.39193499088287354,
-0.5493160486221313,
-0.3347746431827545,
0.1023292988538742,
0.761846661567688,
-0.022562948986887932,
-0.13327644765377045,
0.4156685769557953,
0.47588416934013367,
0.06086258217692375,
-0.8824356198310852,
0.02670600824058056,
0.23213282227516174,
0.03906117379665375,
0.09758926182985306,
-0.696272611618042,
0.7716382741928101,
-0.009549547918140888,
0.09679847955703735,
0.24312807619571686,
0.5772688388824463,
-0.011987735517323017,
0.18390552699565887,
0.29278331995010376,
0.9732396006584167,
0.417856901884079,
0.0607563816010952,
1.2170740365982056,
-0.16122932732105255,
0.68299800157547,
1.1988271474838257,
-0.034420013427734375,
1.1164966821670532,
0.5266075134277344,
-0.1811927855014801,
0.5013947486877441,
0.4385971128940582,
-0.21911321580410004,
0.6758430004119873,
0.027765264734625816,
-0.052972521632909775,
-0.25449609756469727,
0.16954877972602844,
-0.374981552362442,
0.6024690270423889,
0.040531277656555176,
-0.4340372681617737,
-0.5514255166053772,
0.08270027488470078,
0.03251957148313522,
0.024219084531068802,
0.08998633921146393,
0.7483171820640564,
0.33055832982063293,
-0.41481801867485046,
0.6543179750442505,
0.10939500480890274,
0.6926214098930359,
-0.5960955619812012,
0.20840662717819214,
-0.1415560245513916,
0.30936646461486816,
0.18576876819133759,
-0.7272454500198364,
0.3151010274887085,
-0.06038578972220421,
0.041196584701538086,
-0.06154194474220276,
0.47600600123405457,
-0.4385404586791992,
-0.6832522749900818,
0.2185712456703186,
0.5181644558906555,
0.28658097982406616,
-0.14752011001110077,
-1.278926134109497,
-0.18560627102851868,
0.02736412174999714,
-0.321742445230484,
0.06318588554859161,
0.5942922234535217,
0.09920410811901093,
0.5590141415596008,
0.3954087495803833,
-0.08166292309761047,
-0.051853589713573456,
-0.03030170127749443,
0.6471975445747375,
-0.7156749963760376,
-0.45185187458992004,
-1.004791021347046,
0.22752904891967773,
-0.3653726279735565,
-0.4345444440841675,
0.9942202568054199,
0.7327519655227661,
0.8171668648719788,
-0.2797304689884186,
0.6447806358337402,
-0.14699023962020874,
0.33999502658843994,
-0.46550923585891724,
0.6614155173301697,
-0.5426024198532104,
-0.22863614559173584,
-0.41567298769950867,
-1.1148333549499512,
-0.33206215500831604,
0.8365342617034912,
-0.5519599914550781,
-0.02541692927479744,
0.8278427720069885,
0.6543404459953308,
-0.19213955104351044,
-0.06885901838541031,
0.39848706126213074,
0.3481389880180359,
0.19983932375907898,
0.6057391166687012,
0.4490569233894348,
-0.7804752588272095,
0.8043898344039917,
-0.44663184881210327,
0.10675374418497086,
-0.3124541640281677,
-0.7153581976890564,
-0.9542908072471619,
-0.5616570115089417,
-0.37849098443984985,
-0.3099324405193329,
-0.02926916815340519,
0.8804612159729004,
0.5016599297523499,
-0.8215926289558411,
-0.09605177491903305,
-0.13795290887355804,
-0.20679141581058502,
-0.053760696202516556,
-0.23939506709575653,
0.6466535329818726,
-0.29339975118637085,
-0.829037070274353,
0.029195664450526237,
0.009093944914638996,
0.2386959344148636,
0.04025120660662651,
-0.040607206523418427,
-0.5522298812866211,
-0.12688784301280975,
0.6811143159866333,
0.11624182015657425,
-0.8013523817062378,
-0.4924716055393219,
0.020935190841555595,
-0.39975035190582275,
-0.05754229053854942,
0.4196091294288635,
-0.30936771631240845,
0.06934564560651779,
0.5598757266998291,
0.8995837569236755,
0.7024362087249756,
-0.1452760249376297,
0.4485016167163849,
-0.7167332172393799,
0.42009609937667847,
0.3680562376976013,
0.4600468575954437,
0.4412226974964142,
-0.2429492175579071,
0.46903663873672485,
0.17884358763694763,
-0.6025307178497314,
-0.4249105453491211,
-0.059347644448280334,
-1.1336090564727783,
-0.376953661441803,
1.342041015625,
-0.25236353278160095,
-0.04373655840754509,
0.3572259545326233,
-0.3810873031616211,
0.2241116762161255,
-0.4534735679626465,
0.6858136653900146,
1.1287763118743896,
0.11046116799116135,
-0.03756914660334587,
-0.41033411026000977,
0.303865909576416,
0.6661566495895386,
-0.5649313926696777,
-0.15250590443611145,
0.7532776594161987,
0.2961762845516205,
0.1336209774017334,
0.17160315811634064,
0.03364410996437073,
0.20761702954769135,
-0.21282631158828735,
0.11715833097696304,
0.05650457367300987,
-0.010439320467412472,
-0.5183226466178894,
0.13375458121299744,
-0.18639862537384033,
-0.41665923595428467
] |
jb723/LLaMA2-en-ko-7B-model
|
jb723
| 2023-10-08T10:14:07Z | 8,887 | 0 |
transformers
|
[
"transformers",
"pytorch",
"llama",
"text-generation",
"endpoints_compatible",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-09-07T11:37:45Z |
학습 데이터 : AIHUB 한국어 영어 병렬 corpus, KoAlpaca dataset, Alpacadataset
|
[
-0.43868598341941833,
-0.883495569229126,
0.25557151436805725,
0.9658107161521912,
-0.5187974572181702,
0.11819921433925629,
0.3739487826824188,
-0.024639541283249855,
0.7753307223320007,
0.9593725800514221,
-0.12030649185180664,
-1.05007004737854,
-1.0026565790176392,
0.17857345938682556,
-0.49026399850845337,
0.6889039874076843,
0.06914471089839935,
0.04882553592324257,
-0.029403233900666237,
-0.3622756004333496,
-1.0856294631958008,
-0.07964090257883072,
-1.218843698501587,
-0.07889916002750397,
0.029403602704405785,
0.7007302641868591,
0.9172182083129883,
0.8081800937652588,
0.396666944026947,
0.2769230008125305,
0.47156277298927307,
-0.365797758102417,
-0.10129594802856445,
0.057659462094306946,
-0.29246148467063904,
-0.6216431856155396,
-0.3061356544494629,
-0.22006051242351532,
0.7236075401306152,
0.9534982442855835,
-0.16113834083080292,
0.31650370359420776,
0.21337510645389557,
0.8991194367408752,
-0.39070579409599304,
0.7369576096534729,
-0.3784027099609375,
-0.1206098198890686,
-0.5130899548530579,
-0.12222246825695038,
0.16779424250125885,
-1.0493942499160767,
-0.2379230409860611,
-0.7111992835998535,
0.2876504063606262,
-0.21677307784557343,
0.878191351890564,
0.22050881385803223,
-0.8466401696205139,
-0.8577854633331299,
-0.04605073481798172,
-0.01057802140712738,
-0.5587421655654907,
0.43836620450019836,
1.0118736028671265,
-0.008338375017046928,
-0.20417505502700806,
-0.5484578609466553,
-0.0011646911734715104,
0.003136951010674238,
-0.5815001130104065,
0.01881301961839199,
-0.06179705634713173,
-0.30734995007514954,
-0.08484914153814316,
-0.11338148266077042,
0.009574340656399727,
0.3321397006511688,
-0.6945900917053223,
-0.6389568448066711,
0.4877091944217682,
-0.13614636659622192,
0.28912121057510376,
-0.29647156596183777,
-0.38757824897766113,
-0.27963781356811523,
-0.25015079975128174,
0.46068745851516724,
0.8808547854423523,
0.09054124355316162,
-0.4385714828968048,
0.7085820436477661,
-0.5522892475128174,
0.39417120814323425,
-0.31231996417045593,
-0.280592143535614,
0.39869144558906555,
0.16760075092315674,
-0.1849088817834854,
0.4563162922859192,
0.5912988781929016,
0.5196401476860046,
-0.2594183683395386,
0.011116988956928253,
0.31308484077453613,
0.04036332294344902,
0.008804850280284882,
-0.8124072551727295,
-0.7013458609580994,
0.5960916876792908,
-0.8886865973472595,
-0.4070773422718048,
0.6425840854644775,
-1.5373629331588745,
-0.20540454983711243,
-0.32986411452293396,
-0.18503399193286896,
-0.43407362699508667,
-0.18536829948425293,
-0.10263467580080032,
0.10661664605140686,
-0.2376532256603241,
-0.1191081628203392,
-0.5659937858581543,
0.2082100808620453,
-0.0534697063267231,
0.336130827665329,
0.05221777409315109,
0.021829770877957344,
-0.14916715025901794,
0.18968403339385986,
-0.3172500431537628,
0.8166524767875671,
0.371648371219635,
-0.982517421245575,
-0.12405704706907272,
0.5777422189712524,
-0.4910656809806824,
-0.7957131862640381,
1.0110960006713867,
-0.44977471232414246,
-0.2415454089641571,
-0.1173931136727333,
-0.4302966892719269,
-0.4289770722389221,
-0.096068374812603,
-0.8466202020645142,
1.1358942985534668,
0.49860894680023193,
-0.7208561897277832,
0.017116567119956017,
-0.7672647833824158,
-0.14689907431602478,
0.40272799134254456,
-0.3674203157424927,
-0.427680104970932,
-0.3746836185455322,
0.22924600541591644,
0.6747795343399048,
0.2659298777580261,
0.46837544441223145,
-0.38272228837013245,
-0.04807655140757561,
0.23938670754432678,
-0.08878827840089798,
1.2787786722183228,
0.6643885374069214,
0.0647679790854454,
0.1869201809167862,
-1.2250876426696777,
-0.0011734809959307313,
0.6125807166099548,
-0.5622183680534363,
-0.5643854141235352,
-0.26052427291870117,
0.05619870126247406,
-0.07665678858757019,
0.6565382480621338,
-0.5237836241722107,
0.5942347049713135,
-0.021186187863349915,
0.3656635284423828,
0.6085556745529175,
0.08301825821399689,
0.5048041939735413,
-0.0028006802313029766,
0.781461238861084,
-0.12794674932956696,
-0.21387825906276703,
-0.11402185261249542,
-0.3122348487377167,
-0.18747805058956146,
-0.5138369798660278,
0.23312018811702728,
0.8916400074958801,
-0.28378379344940186,
1.0394967794418335,
0.11930979788303375,
-0.7129126787185669,
-0.6857481002807617,
-0.10335995256900787,
-0.0038627947214990854,
0.6798489689826965,
0.32520660758018494,
-0.17992673814296722,
-0.9533465504646301,
-1.0036872625350952,
0.2929357886314392,
-0.16743946075439453,
0.0685298889875412,
0.30589720606803894,
0.718055248260498,
-0.6407385468482971,
0.9825698137283325,
-0.41649365425109863,
-0.4796826243400574,
0.11332724988460541,
-0.22877345979213715,
0.60528564453125,
0.7536676526069641,
1.1160223484039307,
-0.45962196588516235,
-0.563820481300354,
-0.23110438883304596,
-0.7664547562599182,
-0.7229784727096558,
0.1605406403541565,
-0.22732825577259064,
0.15935657918453217,
0.7308813333511353,
-0.5893415212631226,
1.148294448852539,
0.6732869744300842,
-1.15443754196167,
0.7136412858963013,
-0.38937056064605713,
0.5547398328781128,
-1.0829246044158936,
0.1775171309709549,
-0.4603014588356018,
-0.18029001355171204,
0.06402125954627991,
0.09573299437761307,
0.15482190251350403,
0.18697574734687805,
-0.3807539939880371,
0.7898211479187012,
-0.24705740809440613,
-0.2619088888168335,
-0.6885959506034851,
0.017419865354895592,
0.3180896043777466,
-0.007622202392667532,
-0.1871725171804428,
0.6793714165687561,
0.3644699454307556,
-0.40263494849205017,
0.7038667798042297,
0.9592049717903137,
-0.6202918291091919,
0.34819328784942627,
-0.6010521650314331,
-0.37552735209465027,
0.039378345012664795,
0.613547146320343,
-0.842549741268158,
-0.6616842150688171,
0.6956186294555664,
-0.2950011193752289,
0.053695350885391235,
-0.06053251773118973,
-0.4846254885196686,
-0.7243056297302246,
-0.22280330955982208,
0.5435847043991089,
0.06081332266330719,
-0.5586943030357361,
0.17650942504405975,
0.5048828721046448,
-0.39559102058410645,
-0.7547974586486816,
-0.2916630208492279,
0.10452952235937119,
-0.6454645991325378,
-0.4117417335510254,
0.556435227394104,
-0.18149065971374512,
-0.3847775459289551,
-0.14956648647785187,
0.6247292160987854,
0.020377332344651222,
0.12907293438911438,
0.4296019673347473,
0.4816291630268097,
0.3094255030155182,
-0.2204587757587433,
0.33361420035362244,
-0.1412116140127182,
0.09776736050844193,
0.4932122230529785,
1.3202539682388306,
-0.006865408271551132,
-0.32514816522598267,
-0.5063316226005554,
0.6179932355880737,
0.11917978525161743,
0.49319592118263245,
0.652630627155304,
0.7084177732467651,
-0.09445406496524811,
0.5078052878379822,
-0.42210254073143005,
0.06916679441928864,
-0.4247548282146454,
0.5058482885360718,
-0.3451675474643707,
-0.44157707691192627,
1.104072093963623,
-0.297113299369812,
-0.5776510238647461,
1.0752530097961426,
0.5991594791412354,
-0.4225490093231201,
0.4443100690841675,
0.8049642443656921,
-0.5287652015686035,
0.07124679535627365,
-0.4174395501613617,
-0.3496304452419281,
-0.6215766668319702,
-0.6685174703598022,
-0.8820632696151733,
-0.05400773510336876,
-0.7015342116355896,
-0.02955406717956066,
0.23933269083499908,
0.5304381251335144,
-0.11000940948724747,
0.7186949253082275,
-0.7962684035301208,
0.2667325735092163,
1.0574324131011963,
0.2818452715873718,
0.011409414000809193,
-0.4967576563358307,
0.17954953014850616,
0.544156551361084,
-0.8446968197822571,
-0.5692874193191528,
0.9969215989112854,
0.8277369737625122,
0.7194864749908447,
-0.4605577886104584,
0.4029724895954132,
0.3123113811016083,
-0.4110814034938812,
-0.5501779317855835,
0.7034294009208679,
0.33946487307548523,
-0.4689737856388092,
-0.10531490296125412,
0.20157210528850555,
-1.6803725957870483,
-0.14842140674591064,
0.014653973281383514,
-0.987764298915863,
0.8309839367866516,
-0.03648269549012184,
-0.32918059825897217,
0.3537955582141876,
-0.658347487449646,
0.9796147346496582,
0.2501930594444275,
-0.010014374740421772,
-0.41622108221054077,
-0.7376861572265625,
-0.012461012229323387,
-0.016194386407732964,
0.7040224075317383,
-0.6626042127609253,
-0.29417797923088074,
0.8810040354728699,
-0.6150500178337097,
0.6895449757575989,
-0.23994378745555878,
-0.29160794615745544,
0.699993371963501,
-0.08076780289411545,
0.6612611413002014,
0.504356324672699,
0.009797058068215847,
0.6237978339195251,
0.22706256806850433,
-0.9072367548942566,
0.5126339793205261,
0.7395846247673035,
-1.0294225215911865,
0.20689328014850616,
-0.5245469808578491,
-0.862410306930542,
0.026675589382648468,
0.1787286251783371,
0.6658607125282288,
-0.06909949332475662,
-0.18347221612930298,
0.21520984172821045,
0.018678322434425354,
-0.23236247897148132,
0.766531229019165,
0.14643695950508118,
-0.555259108543396,
-0.550222635269165,
0.38094136118888855,
0.31541907787323,
-0.32755574584007263,
-0.43076470494270325,
0.06907656043767929,
-0.4831821918487549,
-0.6910012364387512,
-0.1844182163476944,
0.317018061876297,
-0.7959417700767517,
-0.4812127351760864,
-0.7153626084327698,
-0.15355001389980316,
-0.7147568464279175,
-0.3042904734611511,
-0.568547785282135,
-0.4018038511276245,
-0.4271355867385864,
-0.37517258524894714,
0.4536440968513489,
0.30412229895591736,
-0.23250602185726166,
1.0242228507995605,
-0.7180373072624207,
0.3593052923679352,
-0.11759137362241745,
0.33525964617729187,
-0.38366979360580444,
-0.3514128029346466,
-0.5941525101661682,
0.0055408840999007225,
-0.4055843651294708,
-0.9717714786529541,
1.0043621063232422,
-0.36695829033851624,
0.43840500712394714,
0.3637118637561798,
-0.14500339329242706,
0.3549197018146515,
0.12149989604949951,
0.5692452788352966,
-0.0913296490907669,
-0.6316043138504028,
0.9593490958213806,
-0.8791859149932861,
0.5669671893119812,
0.7199869155883789,
0.7539382576942444,
0.17516019940376282,
0.06340929865837097,
-1.0151057243347168,
-1.29721999168396,
0.6003647446632385,
0.34872424602508545,
-0.3525811433792114,
-0.22045524418354034,
0.3971855640411377,
0.46826642751693726,
0.5669007301330566,
-0.6621605157852173,
-0.32167261838912964,
-0.12543584406375885,
-0.25443127751350403,
0.2817423343658447,
-0.3928270637989044,
-0.4234567880630493,
-0.28699538111686707,
1.1625548601150513,
-0.14361655712127686,
0.43413886427879333,
0.17312057316303253,
0.2050386369228363,
-0.04941475763916969,
0.10399776697158813,
0.5542327761650085,
0.6710302233695984,
-0.6967730522155762,
-0.07204033434391022,
-0.09166537970304489,
-0.9279115200042725,
-0.12749901413917542,
0.45954132080078125,
-0.37452036142349243,
-0.03755507618188858,
0.44505879282951355,
0.874016284942627,
-0.4509395956993103,
-0.4833972156047821,
0.09538371115922928,
0.11056458950042725,
-0.22931641340255737,
-0.6600702404975891,
-0.41554856300354004,
0.06111997738480568,
0.3580772876739502,
0.7026495337486267,
0.09482641518115997,
0.16785426437854767,
-0.49207907915115356,
0.16449148952960968,
0.16066306829452515,
-0.2059217393398285,
0.048284877091646194,
0.6911978125572205,
-0.19462373852729797,
-0.052749887108802795,
0.4993639588356018,
0.014997568912804127,
0.03323747590184212,
1.1862379312515259,
0.6658430695533752,
0.49321112036705017,
-0.6389862298965454,
0.1808778941631317,
0.7484362721443176,
-0.11785045266151428,
-0.1282157003879547,
0.31382155418395996,
0.44210755825042725,
-0.7317067980766296,
-0.025739137083292007,
-0.606698215007782,
-0.4525732398033142,
0.26515769958496094,
-0.7441385388374329,
0.44439154863357544,
-0.3675409257411957,
-0.32277238368988037,
-0.24737630784511566,
-0.23220911622047424,
-0.4784524440765381,
0.4597707688808441,
-0.27717286348342896,
0.7368316650390625,
-0.666118323802948,
1.203583002090454,
0.393242746591568,
-0.17192688584327698,
-0.3059917390346527,
-0.5148023962974548,
-0.27018728852272034,
-1.1255323886871338,
0.375556081533432,
0.14817138016223907,
0.19337134063243866,
0.09850488603115082,
-0.4399798512458801,
-1.0851000547409058,
1.5701894760131836,
0.2445487231016159,
-0.46915000677108765,
0.10050246119499207,
0.09590320289134979,
0.03151535987854004,
-0.4825238883495331,
0.10296066105365753,
0.8272159099578857,
0.45086029171943665,
-0.2675812244415283,
-0.9207922220230103,
-0.26303303241729736,
-0.10925731807947159,
-0.2006065398454666,
0.017687270417809486,
-0.9551365375518799,
0.688786506652832,
-0.0656450018286705,
0.18434539437294006,
0.03210074454545975,
0.8119204640388489,
0.270489901304245,
0.4981462061405182,
0.6250966787338257,
0.592333972454071,
0.3954545259475708,
-0.18309170007705688,
0.4992820918560028,
-0.3191874623298645,
0.17181460559368134,
1.2896227836608887,
0.2769392728805542,
0.39795660972595215,
0.500022828578949,
-0.3691565692424774,
0.5476899743080139,
1.029874563217163,
-0.04263654723763466,
0.8094545006752014,
-0.5448199510574341,
-0.25886639952659607,
0.463486909866333,
-0.35354384779930115,
-0.653279185295105,
0.7511212229728699,
0.6997368931770325,
-0.5308963060379028,
-0.21216391026973724,
0.6926524043083191,
0.3717331886291504,
0.31937748193740845,
-0.499812513589859,
0.5183476209640503,
-0.14082498848438263,
-0.5398693680763245,
0.2093559205532074,
-0.05103355273604393,
0.6790627837181091,
-0.8057806491851807,
0.36542779207229614,
0.10888466238975525,
0.23371393978595734,
-0.15923838317394257,
-1.1454726457595825,
0.9721788167953491,
-0.7927413582801819,
-0.038585178554058075,
0.27531033754348755,
1.1406503915786743,
-0.2690579295158386,
-0.46387940645217896,
0.5880571603775024,
0.15328973531723022,
0.4217164218425751,
-0.1439315527677536,
-0.9912365078926086,
0.2739005982875824,
0.06510159373283386,
-0.10355144739151001,
0.4757521152496338,
-0.3000819683074951,
-0.49425116181373596,
0.7313246130943298,
0.7235144972801208,
0.17507994174957275,
-0.06431616842746735,
-0.02271084673702717,
0.6204711198806763,
-0.5658260583877563,
-0.9668778777122498,
-0.6167900562286377,
0.42040175199508667,
-0.2861987352371216,
-0.27907609939575195,
0.417322039604187,
0.9714897274971008,
0.8898499608039856,
-0.40695205330848694,
0.9297725558280945,
-0.583081841468811,
0.8613629937171936,
-0.14106537401676178,
0.5338637232780457,
0.4786939322948456,
-0.06520634889602661,
-0.03709195554256439,
-0.7982635498046875,
-0.04215949773788452,
0.7112186551094055,
0.14209121465682983,
-0.40561190247535706,
0.4062080383300781,
0.29722070693969727,
0.05454337224364281,
0.08182376623153687,
-0.0886845663189888,
0.5167505741119385,
0.24729545414447784,
0.3067147731781006,
-0.12694478034973145,
-0.8947814702987671,
0.28729453682899475,
-0.9353744387626648,
-0.03127874806523323,
-0.4666920602321625,
-0.733312726020813,
-0.554555356502533,
-0.4557581841945648,
-0.5682914853096008,
-0.7359201312065125,
-0.24743352830410004,
1.0794079303741455,
-0.045036278665065765,
-1.0202230215072632,
-0.7458595633506775,
-0.13424719870090485,
-0.10150185972452164,
-0.20918413996696472,
-0.37621837854385376,
1.2351800203323364,
0.152032271027565,
-1.0354503393173218,
0.4589354991912842,
-0.18785405158996582,
0.5203092694282532,
0.1254909783601761,
0.4026316702365875,
-0.6258849501609802,
0.07983612269163132,
0.8031476140022278,
0.48710015416145325,
-0.34912022948265076,
-0.08436188101768494,
-0.0367371067404747,
-0.36162498593330383,
0.18490952253341675,
-0.037027616053819656,
-0.772367000579834,
0.025170572102069855,
0.5210430026054382,
0.10339538753032684,
0.5934091210365295,
0.1991100311279297,
0.12861542403697968,
-0.4979855418205261,
0.7996562719345093,
-0.2324085235595703,
0.886522114276886,
-0.04524321109056473,
-0.5688925981521606,
1.2945290803909302,
0.5478123426437378,
-1.1147394180297852,
-0.4479779005050659,
-0.2049238383769989,
-1.732590675354004,
-0.6794902086257935,
0.9469492435455322,
0.1924380511045456,
0.0004343916370999068,
-0.686962902545929,
-1.0505428314208984,
0.6562823057174683,
-0.43792566657066345,
0.8356795907020569,
0.8231483101844788,
-0.15145063400268555,
0.1779722273349762,
-0.8974334001541138,
0.35751089453697205,
-0.04016832262277603,
-0.8821648359298706,
-0.4022308886051178,
0.17289622128009796,
0.17257794737815857,
0.3369423449039459,
1.1936486959457397,
-0.3567992150783539,
0.16531693935394287,
-0.038313258439302444,
0.3838236331939697,
0.17619043588638306,
0.13194714486598969,
0.3402136266231537,
0.3951554298400879,
-0.530658483505249,
-0.6445687413215637
] |
cardiffnlp/twitter-roberta-base-sep2022
|
cardiffnlp
| 2022-10-14T15:36:18Z | 8,882 | 6 |
transformers
|
[
"transformers",
"pytorch",
"roberta",
"fill-mask",
"timelms",
"twitter",
"en",
"dataset:twitter-api",
"arxiv:2202.03829",
"license:mit",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] |
fill-mask
| 2022-10-14T15:19:24Z |
---
language: en
tags:
- timelms
- twitter
license: mit
datasets:
- twitter-api
---
# Twitter September 2022 (RoBERTa-base, 169M)
This is a RoBERTa-base model trained on 168.86M tweets until the end of September 2022 (15M tweets increment).
More details and performance scores are available in the [TimeLMs paper](https://arxiv.org/abs/2202.03829).
Below, we provide some usage examples using the standard Transformers interface. For another interface more suited to comparing predictions and perplexity scores between models trained at different temporal intervals, check the [TimeLMs repository](https://github.com/cardiffnlp/timelms).
For other models trained until different periods, check this [table](https://github.com/cardiffnlp/timelms#released-models).
## Preprocess Text
Replace usernames and links for placeholders: "@user" and "http".
If you're interested in retaining verified users which were also retained during training, you may keep the users listed [here](https://github.com/cardiffnlp/timelms/tree/main/data).
```python
def preprocess(text):
preprocessed_text = []
for t in text.split():
if len(t) > 1:
t = '@user' if t[0] == '@' and t.count('@') == 1 else t
t = 'http' if t.startswith('http') else t
preprocessed_text.append(t)
return ' '.join(preprocessed_text)
```
## Example Masked Language Model
```python
from transformers import pipeline, AutoTokenizer
MODEL = "cardiffnlp/twitter-roberta-base-sep2022"
fill_mask = pipeline("fill-mask", model=MODEL, tokenizer=MODEL)
tokenizer = AutoTokenizer.from_pretrained(MODEL)
def pprint(candidates, n):
for i in range(n):
token = tokenizer.decode(candidates[i]['token'])
score = candidates[i]['score']
print("%d) %.5f %s" % (i+1, score, token))
texts = [
"So glad I'm <mask> vaccinated.",
"I keep forgetting to bring a <mask>.",
"Looking forward to watching <mask> Game tonight!",
]
for text in texts:
t = preprocess(text)
print(f"{'-'*30}\n{t}")
candidates = fill_mask(t)
pprint(candidates, 5)
```
Output:
```
------------------------------
So glad I'm <mask> vaccinated.
1) 0.60140 not
2) 0.15077 getting
3) 0.12119 fully
4) 0.02203 still
5) 0.01020 all
------------------------------
I keep forgetting to bring a <mask>.
1) 0.05812 charger
2) 0.05040 backpack
3) 0.05004 book
4) 0.04548 bag
5) 0.03992 lighter
------------------------------
Looking forward to watching <mask> Game tonight!
1) 0.39552 the
2) 0.28083 The
3) 0.02029 End
4) 0.01878 Squid
5) 0.01438 this
```
## Example Tweet Embeddings
```python
from transformers import AutoTokenizer, AutoModel, TFAutoModel
import numpy as np
from scipy.spatial.distance import cosine
from collections import Counter
def get_embedding(text): # naive approach for demonstration
text = preprocess(text)
encoded_input = tokenizer(text, return_tensors='pt')
features = model(**encoded_input)
features = features[0].detach().cpu().numpy()
return np.mean(features[0], axis=0)
MODEL = "cardiffnlp/twitter-roberta-base-sep2022"
tokenizer = AutoTokenizer.from_pretrained(MODEL)
model = AutoModel.from_pretrained(MODEL)
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'"]
sims = Counter()
for tweet in tweets:
sim = 1 - cosine(get_embedding(query), get_embedding(tweet))
sims[tweet] = sim
print('Most similar to: ', query)
print(f"{'-'*30}")
for idx, (tweet, sim) in enumerate(sims.most_common()):
print("%d) %.5f %s" % (idx+1, sim, tweet))
```
Output:
```
Most similar to: The book was awesome
------------------------------
1) 0.98914 The movie was great
2) 0.96194 Just finished reading 'Embeddings in NLP'
3) 0.94603 What time is the next game?
4) 0.94580 I just ordered fried chicken 🐣
```
## Example Feature Extraction
```python
from transformers import AutoTokenizer, AutoModel, TFAutoModel
import numpy as np
MODEL = "cardiffnlp/twitter-roberta-base-sep2022"
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)
```
|
[
-0.2541159391403198,
-0.5477672815322876,
0.1292186826467514,
0.3123091459274292,
-0.2149622142314911,
0.09026186168193817,
-0.09064480662345886,
-0.08055742084980011,
0.2188422977924347,
-0.0009370898478664458,
-0.49249234795570374,
-0.596922755241394,
-0.7540649771690369,
0.14728818833827972,
-0.5129042863845825,
0.8143494725227356,
-0.10262544453144073,
-0.10007473081350327,
0.2869814932346344,
-0.09402009844779968,
-0.05106837674975395,
-0.5560070276260376,
-0.5050767064094543,
-0.4058511555194855,
0.25336936116218567,
0.13531826436519623,
0.4196312129497528,
0.7104024887084961,
0.4349058270454407,
0.49343833327293396,
0.0802660807967186,
0.00038588413735851645,
-0.29968419671058655,
-0.04735419899225235,
-0.04162947088479996,
-0.368233859539032,
-0.28226324915885925,
0.1764441281557083,
0.663750171661377,
0.39230433106422424,
0.024958880618214607,
0.32974693179130554,
0.031900085508823395,
0.27474498748779297,
-0.39856386184692383,
0.15566934645175934,
-0.45498400926589966,
0.20974378287792206,
-0.0051111564971506596,
-0.27566343545913696,
-0.1673596054315567,
-0.29721829295158386,
0.11455302685499191,
-0.5168960094451904,
0.31173330545425415,
-0.14206534624099731,
1.3203229904174805,
0.29816606640815735,
-0.14948953688144684,
-0.253909707069397,
-0.5467814803123474,
1.089194893836975,
-0.774207353591919,
0.10085941106081009,
0.35156288743019104,
0.14912796020507812,
0.018305974081158638,
-0.7828516364097595,
-0.6217714548110962,
-0.13098661601543427,
-0.14660988748073578,
0.2494061440229416,
-0.336855947971344,
-0.3357004225254059,
0.3316037058830261,
0.13217154145240784,
-0.5839506983757019,
-0.17358312010765076,
-0.33861833810806274,
-0.0959855318069458,
0.7029519081115723,
0.057826146483421326,
0.2684935927391052,
-0.41598600149154663,
-0.33379337191581726,
-0.3595828115940094,
-0.1081734374165535,
-0.028178483247756958,
0.059562522917985916,
0.05435313284397125,
-0.33628687262535095,
0.6300404071807861,
-0.18727204203605652,
0.4566231071949005,
0.17133861780166626,
-0.04572350159287453,
0.628943145275116,
-0.2920573651790619,
-0.33208319544792175,
-0.24630211293697357,
1.134820818901062,
0.30877017974853516,
0.4861397445201874,
-0.037030674517154694,
-0.16303610801696777,
-0.18769589066505432,
-0.13357751071453094,
-0.796979546546936,
-0.3437233865261078,
0.20080812275409698,
-0.533552885055542,
-0.4264978766441345,
0.1299106478691101,
-0.544983446598053,
0.056930627673864365,
0.03199203684926033,
0.7397615909576416,
-0.6789290904998779,
-0.2660982012748718,
-0.036034438759088516,
-0.3383638858795166,
0.21360008418560028,
0.08245652168989182,
-0.8703886866569519,
-0.013419623486697674,
0.39540866017341614,
0.9739609956741333,
0.10663341730833054,
-0.556734561920166,
-0.2339780479669571,
0.14306356012821198,
-0.32129228115081787,
0.5783371329307556,
-0.3369659185409546,
-0.22342535853385925,
-0.14288710057735443,
-0.01411209162324667,
-0.39393654465675354,
-0.3536113202571869,
0.11454430222511292,
-0.24365895986557007,
0.3873209059238434,
-0.09450249373912811,
-0.5849331021308899,
-0.001199997146613896,
0.25979602336883545,
-0.4137023389339447,
1.149027705192566,
0.37325620651245117,
-0.7722474932670593,
0.26549068093299866,
-0.8598309755325317,
-0.2985873222351074,
-0.1444420963525772,
-0.0192904993891716,
-0.5500110983848572,
-0.08945173770189285,
0.493050754070282,
0.5563315153121948,
-0.035505663603544235,
0.22233156859874725,
-0.26273688673973083,
-0.37858814001083374,
0.30483782291412354,
-0.3296266794204712,
1.195148229598999,
0.21356531977653503,
-0.5842041373252869,
-0.02759609743952751,
-0.5922334790229797,
0.08115462213754654,
0.4277764558792114,
-0.27535465359687805,
0.11027504503726959,
-0.2094486951828003,
-0.06034180149435997,
0.2511445879936218,
0.28308483958244324,
-0.4940835237503052,
0.2819691300392151,
-0.48819562792778015,
0.8158088326454163,
0.6575899124145508,
0.033682141453027725,
0.3802866041660309,
-0.53294438123703,
0.27717477083206177,
0.25308123230934143,
0.3153265714645386,
-0.2340075820684433,
-0.49987247586250305,
-0.8730204701423645,
-0.08042601495981216,
0.342105895280838,
0.5376290678977966,
-0.6916818022727966,
0.6869786381721497,
-0.38915279507637024,
-0.6669080257415771,
-0.48108339309692383,
-0.040735527873039246,
0.23387566208839417,
0.45592570304870605,
0.5420412421226501,
-0.04014129936695099,
-0.7140882015228271,
-0.6879016160964966,
-0.3691083788871765,
-0.3109876811504364,
-0.06291269510984421,
0.15582025051116943,
0.8413642048835754,
-0.20045405626296997,
0.8536083698272705,
-0.46442675590515137,
-0.21486276388168335,
-0.2773686349391937,
0.2162657082080841,
0.4709479808807373,
0.8224700093269348,
0.7431986331939697,
-0.6892789006233215,
-0.6761236190795898,
-0.2983151376247406,
-0.7631819248199463,
-0.011832727119326591,
-0.02338549494743347,
-0.03523198887705803,
0.3157404363155365,
0.453570693731308,
-0.6865357160568237,
0.6063550114631653,
0.3202205002307892,
-0.3833959400653839,
0.35814619064331055,
-0.10397134721279144,
0.19623859226703644,
-1.3855396509170532,
0.11927428096532822,
-0.0730023980140686,
-0.0881410613656044,
-0.47433584928512573,
-0.23280607163906097,
-0.05721669644117355,
0.1263882964849472,
-0.4088907539844513,
0.7146148681640625,
-0.32816892862319946,
0.1535547822713852,
0.10750122368335724,
-0.0614100880920887,
0.049773335456848145,
0.409539133310318,
-0.15510499477386475,
0.659824788570404,
0.5094822645187378,
-0.4738592803478241,
0.382702499628067,
0.24031828343868256,
-0.2802680730819702,
0.07508840411901474,
-0.687049150466919,
0.00310556311160326,
0.09664039313793182,
0.1797623485326767,
-1.141589641571045,
-0.29395291209220886,
0.43176618218421936,
-0.9555500149726868,
0.2939291000366211,
-0.1754385232925415,
-0.6510173678398132,
-0.6105881333351135,
-0.30827727913856506,
0.3600643575191498,
0.6642345786094666,
-0.45082926750183105,
0.7064287662506104,
0.2736526429653168,
0.17569082975387573,
-0.7181987166404724,
-0.9415358304977417,
0.06983450055122375,
-0.1908239871263504,
-0.46637237071990967,
0.4107182025909424,
0.015159913338720798,
-0.03730602189898491,
0.21340525150299072,
0.09511948376893997,
-0.05081754922866821,
0.0951995849609375,
0.1095416247844696,
0.16900432109832764,
-0.18931394815444946,
0.06631238758563995,
-0.2667991816997528,
-0.20857499539852142,
-0.0007796971476636827,
-0.4592972993850708,
0.847655177116394,
-0.24091783165931702,
-0.17054437100887299,
-0.5084989666938782,
0.20750051736831665,
0.21193747222423553,
-0.07874123007059097,
0.852687656879425,
1.1566838026046753,
-0.522688627243042,
0.050008032470941544,
-0.6495651602745056,
-0.18274402618408203,
-0.5236414074897766,
0.5822305083274841,
-0.4161153733730316,
-0.6304916739463806,
0.6188862323760986,
0.23694820702075958,
0.11316730082035065,
0.9956547617912292,
0.597130537033081,
-0.24432508647441864,
1.0581220388412476,
0.4629265069961548,
-0.07439383119344711,
0.6597473621368408,
-0.8802896738052368,
0.10474050790071487,
-0.612007200717926,
-0.35888758301734924,
-0.4047548174858093,
-0.2528056502342224,
-0.6889835000038147,
-0.4751526713371277,
0.12243872135877609,
0.1803545504808426,
-0.587503969669342,
0.48378780484199524,
-0.7343900203704834,
0.21362218260765076,
0.7206844687461853,
0.0775480791926384,
-0.16139571368694305,
0.18413293361663818,
-0.29241228103637695,
-0.1118348017334938,
-0.8501606583595276,
-0.3378125727176666,
1.2315374612808228,
0.3730635941028595,
0.469393789768219,
-0.03720250353217125,
0.9859845638275146,
0.10423502326011658,
0.5018174648284912,
-0.5350590348243713,
0.5348873138427734,
-0.28856682777404785,
-0.6862871050834656,
-0.30297139286994934,
-0.5571269392967224,
-0.8505430817604065,
0.034106068313121796,
-0.1955210119485855,
-0.853682816028595,
0.10055948793888092,
-0.06982862204313278,
-0.396720290184021,
0.5033957958221436,
-0.8271240592002869,
0.7248620986938477,
-0.16430354118347168,
-0.22126856446266174,
0.07838410139083862,
-0.5417066216468811,
0.09110456705093384,
0.037509430199861526,
0.021953169256448746,
-0.13051624596118927,
-0.15837334096431732,
1.0893157720565796,
-0.5074790716171265,
0.7495914697647095,
-0.09223590046167374,
0.47920742630958557,
0.275278240442276,
-0.1199919581413269,
0.15116114914417267,
0.01774844527244568,
-0.22219915688037872,
0.2455088049173355,
0.06141279265284538,
-0.5754820108413696,
-0.41457226872444153,
0.7401366829872131,
-1.1604493856430054,
-0.7082396149635315,
-0.7429235577583313,
-0.41197851300239563,
0.15751715004444122,
0.45688554644584656,
0.6503894329071045,
0.4277898073196411,
0.0839027613401413,
0.22302404046058655,
0.303302526473999,
-0.31285491585731506,
0.9280799627304077,
0.19793587923049927,
-0.14260292053222656,
-0.6883581280708313,
0.8390923738479614,
0.30850476026535034,
0.052128419280052185,
0.5367138981819153,
0.41914093494415283,
-0.4068165421485901,
-0.36396944522857666,
-0.16421005129814148,
0.5014126300811768,
-0.6589047312736511,
-0.28626570105552673,
-0.9742818474769592,
-0.6579107046127319,
-0.8498148918151855,
-0.1195683404803276,
-0.30234387516975403,
-0.4962346851825714,
-0.5070320963859558,
0.06029856204986572,
0.38433077931404114,
0.86602783203125,
-0.3350940942764282,
0.28358668088912964,
-0.7006984949111938,
0.1830364316701889,
0.13707169890403748,
0.18357332050800323,
0.057816989719867706,
-0.8259259462356567,
-0.3296394646167755,
0.035896189510822296,
-0.47440943121910095,
-0.7832452058792114,
0.7243180274963379,
0.12720301747322083,
0.5134459733963013,
0.38135743141174316,
-0.05331755802035332,
0.8464182019233704,
-0.27046826481819153,
0.882716715335846,
0.23452982306480408,
-0.9801713228225708,
0.567482054233551,
-0.23943345248699188,
0.5237153768539429,
0.23490776121616364,
0.4615156054496765,
-0.4154869019985199,
-0.2772340178489685,
-0.9759320020675659,
-0.8638131022453308,
0.8536441326141357,
0.4381955862045288,
0.12175195664167404,
-0.14872178435325623,
0.22808879613876343,
-0.21673811972141266,
0.14217093586921692,
-0.7892053723335266,
-0.5507246851921082,
-0.6056812405586243,
-0.40574848651885986,
-0.3067591190338135,
-0.1717999279499054,
-0.019348155707120895,
-0.7163111567497253,
0.6418750286102295,
0.1901603639125824,
0.6775995492935181,
0.3595914840698242,
-0.08885924518108368,
-0.06272447109222412,
-0.1391836404800415,
0.5209515690803528,
0.6944378614425659,
-0.44448161125183105,
-0.08032916486263275,
0.3114539384841919,
-0.6090250015258789,
0.06687314063310623,
0.341985285282135,
-0.11248473078012466,
0.3365234136581421,
0.6528076529502869,
0.6381413340568542,
0.14634835720062256,
-0.1354629099369049,
0.54457688331604,
-0.05023198947310448,
-0.37980347871780396,
-0.6487160921096802,
0.04649446904659271,
0.19637836515903473,
0.25907620787620544,
0.7823492884635925,
0.14559146761894226,
-0.23685215413570404,
-0.447296142578125,
0.38549622893333435,
0.1590476781129837,
-0.17411532998085022,
-0.31627464294433594,
0.7175267934799194,
-0.04979685693979263,
-0.5620402097702026,
0.6115754842758179,
-0.16583555936813354,
-0.9180246591567993,
0.8497132658958435,
0.4971387982368469,
0.9899193048477173,
-0.24295280873775482,
0.261859267950058,
0.8194293975830078,
0.3255869746208191,
-0.01111235748976469,
0.18772853910923004,
0.12411585450172424,
-0.6676226258277893,
-0.17063286900520325,
-0.7299845218658447,
0.005986474454402924,
0.2424710988998413,
-0.40063393115997314,
0.24642907083034515,
-0.5696464776992798,
-0.4330596625804901,
0.11849240958690643,
0.37692394852638245,
-0.964885413646698,
0.30305853486061096,
-0.0765373632311821,
0.9094787240028381,
-0.8466078042984009,
0.8573243021965027,
0.7084774374961853,
-0.5905806422233582,
-1.0272557735443115,
0.10995489358901978,
-0.24856586754322052,
-0.8865886926651001,
0.8123453259468079,
0.3410505950450897,
0.29364249110221863,
0.3118928074836731,
-0.5608028173446655,
-1.1122361421585083,
1.302681803703308,
0.1260751187801361,
-0.28624361753463745,
-0.18582573533058167,
0.25382229685783386,
0.5196601748466492,
-0.5524454116821289,
0.7462157607078552,
0.5181246399879456,
0.354906290769577,
0.09478656202554703,
-0.6944606304168701,
0.060110848397016525,
-0.3654893636703491,
-0.09744618088006973,
-0.024377532303333282,
-0.7525213956832886,
1.2500853538513184,
-0.2334921658039093,
-0.15354450047016144,
0.040111709386110306,
0.6755101084709167,
0.24931496381759644,
0.3036581575870514,
0.4881472587585449,
0.5975531935691833,
0.4940696060657501,
-0.26928067207336426,
1.0176881551742554,
-0.324306845664978,
0.7991692423820496,
0.7208164930343628,
0.44156119227409363,
0.7636225819587708,
0.380988210439682,
-0.2902853488922119,
0.4291026294231415,
0.7719150185585022,
-0.29700252413749695,
0.4667096734046936,
-0.011223472654819489,
0.10211491584777832,
-0.2792540192604065,
0.07857537269592285,
-0.49080222845077515,
0.4031633734703064,
0.2954595386981964,
-0.54422527551651,
-0.3972201347351074,
-0.05920354649424553,
0.10640799254179001,
-0.21565483510494232,
0.011834926903247833,
0.5937772989273071,
0.17326752841472626,
-0.667159378528595,
0.8976526260375977,
-0.05045860633254051,
0.6972780227661133,
-0.44661444425582886,
0.011120976880192757,
-0.13906463980674744,
0.34756729006767273,
-0.15549877285957336,
-0.8661889433860779,
0.17870567739009857,
0.01093708910048008,
-0.06982909142971039,
-0.16780215501785278,
0.42745324969291687,
-0.40904700756073,
-0.6866166591644287,
0.4179261326789856,
0.34239858388900757,
0.18790020048618317,
0.1326480358839035,
-1.2823835611343384,
0.09158970415592194,
0.13400226831436157,
-0.5692270994186401,
0.031066181138157845,
0.37920451164245605,
0.22938524186611176,
0.7603363394737244,
0.6609187126159668,
0.09997421503067017,
0.22450552880764008,
0.07097219675779343,
0.877920389175415,
-0.7506025433540344,
-0.3455660939216614,
-1.1273075342178345,
0.4481821358203888,
-0.219392329454422,
-0.6122609376907349,
0.7877790331840515,
0.639118492603302,
0.8162718415260315,
-0.06641533225774765,
0.7542365193367004,
-0.245892733335495,
0.5048573613166809,
-0.230926513671875,
0.8769811391830444,
-0.6723542809486389,
0.11577216535806656,
-0.17822551727294922,
-0.8273053765296936,
-0.24491898715496063,
0.8328552842140198,
-0.5238420963287354,
0.3473438620567322,
0.7448126673698425,
0.684736430644989,
-0.05063521862030029,
-0.2773734927177429,
0.1440376490354538,
0.4045395255088806,
0.4350484609603882,
0.6882797479629517,
0.6046529412269592,
-0.8634266257286072,
0.7150156497955322,
-0.7027466297149658,
-0.21833756566047668,
-0.41731199622154236,
-0.7397370934486389,
-1.2066107988357544,
-0.8111236095428467,
-0.28394415974617004,
-0.6885223984718323,
0.066095270216465,
1.056995153427124,
0.5389494299888611,
-0.9757234454154968,
-0.14086364209651947,
0.018902964890003204,
0.07368293404579163,
-0.08230549842119217,
-0.30311164259910583,
0.6732404232025146,
-0.3517497777938843,
-0.846222996711731,
-0.05820682644844055,
-0.046451445668935776,
0.28957313299179077,
-0.04229253903031349,
0.026278378441929817,
-0.642421305179596,
0.007954690605401993,
0.30342337489128113,
0.14959868788719177,
-0.589690625667572,
-0.271457314491272,
0.1448584645986557,
-0.38811925053596497,
0.10444802790880203,
0.2863071858882904,
-0.6501600742340088,
0.32316961884498596,
0.5338759422302246,
0.30090388655662537,
0.792560875415802,
0.08637607097625732,
0.45172977447509766,
-0.4642922580242157,
0.15282879769802094,
0.39584144949913025,
0.3294811248779297,
0.44951480627059937,
-0.1559615135192871,
0.5826139450073242,
0.504507303237915,
-0.5465429425239563,
-0.8918170928955078,
-0.21603865921497345,
-0.7999973893165588,
-0.2418728470802307,
1.1048113107681274,
-0.27791082859039307,
-0.5320543050765991,
-0.0512705035507679,
0.1529398113489151,
0.7536823749542236,
-0.3804401755332947,
0.8696461915969849,
0.6677981019020081,
0.05681818723678589,
-0.027637435123324394,
-0.46875661611557007,
0.5404633283615112,
0.44708552956581116,
-0.37422671914100647,
-0.4599844217300415,
-0.2584708333015442,
0.6225507259368896,
0.3257858157157898,
0.6672213077545166,
0.0038383796345442533,
0.19643977284431458,
0.14474917948246002,
-0.05840327963232994,
-0.2810089886188507,
-0.023292243480682373,
-0.15838715434074402,
-0.02732691913843155,
-0.3969375491142273,
-0.47464466094970703
] |
sbcBI/sentiment_analysis
|
sbcBI
| 2022-04-22T06:42:07Z | 8,873 | 5 |
transformers
|
[
"transformers",
"pytorch",
"distilbert",
"text-classification",
"exbert",
"en",
"dataset:Confidential",
"arxiv:1810.04805",
"license:apache-2.0",
"endpoints_compatible",
"has_space",
"region:us"
] |
text-classification
| 2022-04-22T06:31:09Z |
---
language: en
tags:
- exbert
license: apache-2.0
datasets:
- Confidential
---
# BERT base model (uncased)
Pretrained model on English language using a masked language modeling (MLM) objective. It was introduced in
[this paper](https://arxiv.org/abs/1810.04805) and first released in
[this repository](https://github.com/google-research/bert). This model is uncased: it does not make a difference
between english and English.
## Model description
BERT is a transformers model pretrained on a large corpus of English data in a self-supervised fashion. This means it
was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of
publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it
was pretrained with two objectives:
- Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run
the entire masked sentence through the model and has to predict the masked words. This is different from traditional
recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like
GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the
sentence.
- Next sentence prediction (NSP): the models concatenates two masked sentences as inputs during pretraining. Sometimes
they correspond to sentences that were next to each other in the original text, sometimes not. The model then has to
predict if the two sentences were following each other or not.
This way, the model learns an inner representation of the English language that can then be used to extract features
useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard
classifier using the features produced by the BERT model as inputs.
## Model description [sbcBI/sentiment_analysis]
This is a fine-tuned downstream version of the bert-base-uncased model for sentiment analysis, this model is not intended for
further downstream fine-tuning for any other tasks. This model is trained on a classified dataset for text-classification.
|
[
-0.39470311999320984,
-0.6319289207458496,
0.1848326474428177,
0.3170677721500397,
-0.33419379591941833,
0.05461324006319046,
-0.3239058256149292,
-0.48410120606422424,
0.22087539732456207,
0.754357099533081,
-0.7662301063537598,
-0.32878434658050537,
-0.6168429851531982,
-0.022885141894221306,
-0.31340160965919495,
1.3155947923660278,
0.14692889153957367,
0.17556992173194885,
-0.16370835900306702,
0.3102790415287018,
-0.4231550991535187,
-0.9196392297744751,
-0.35859718918800354,
-0.4593437612056732,
0.3173542618751526,
0.02749146707355976,
0.49232223629951477,
0.22256138920783997,
0.4896094799041748,
0.3226846158504486,
-0.05720119550824165,
-0.11729300022125244,
-0.3775416314601898,
-0.06934937834739685,
0.0341617651283741,
-0.35881713032722473,
-0.20813630521297455,
0.2864171266555786,
0.5596625208854675,
0.8110973834991455,
0.1457120180130005,
-0.003007311373949051,
0.26573362946510315,
0.656808614730835,
-0.5571673512458801,
0.23897016048431396,
-0.6999426484107971,
0.1294361650943756,
-0.07871238142251968,
0.021758398041129112,
-0.4928189218044281,
-0.2159338891506195,
0.4839440584182739,
0.024431617930531502,
0.2661497890949249,
-0.10446441918611526,
1.0829771757125854,
0.04724984988570213,
-0.32396215200424194,
-0.3675176799297333,
-0.5836478471755981,
0.9118766784667969,
-0.8485413789749146,
0.3608129918575287,
0.3077627420425415,
0.060322366654872894,
-0.09591886401176453,
-0.8704706430435181,
-0.4541057050228119,
-0.31156212091445923,
-0.3597252070903778,
0.22377634048461914,
-0.1882861703634262,
0.2684316635131836,
0.03483293205499649,
0.19280469417572021,
-0.5662142038345337,
0.05508697032928467,
-0.477283239364624,
-0.17976424098014832,
0.5887674689292908,
-0.31006863713264465,
0.11345984041690826,
-0.3277200162410736,
-0.6681211590766907,
0.11987785249948502,
-0.6152202486991882,
0.22468452155590057,
0.3847416937351227,
0.475616455078125,
-0.053340278565883636,
0.5581517815589905,
0.10599415749311447,
0.6182990074157715,
0.14248976111412048,
0.03500011935830116,
0.4211307764053345,
-0.003455747151747346,
-0.4115413427352905,
0.14703066647052765,
0.6830100417137146,
0.10577738285064697,
0.5952929258346558,
-0.28431910276412964,
-0.4058828055858612,
-0.02122632786631584,
0.40669143199920654,
-0.6999305486679077,
-0.17742666602134705,
0.1150965541601181,
-0.6287322044372559,
-0.412383109331131,
0.12423518300056458,
-0.26058048009872437,
0.19021287560462952,
-0.22792525589466095,
0.7232100963592529,
-0.3397265374660492,
-0.05030659958720207,
0.008960278704762459,
0.04703959822654724,
0.2433282881975174,
-0.07065924257040024,
-0.9143773913383484,
0.35586127638816833,
0.6111319065093994,
0.6150270104408264,
-0.2741963267326355,
-0.1831255704164505,
0.07625126838684082,
-0.0831841453909874,
-0.21108782291412354,
0.5539078116416931,
-0.3915320634841919,
-0.14614947140216827,
0.2085721343755722,
0.3058894872665405,
-0.12552811205387115,
-0.14342112839221954,
0.44831112027168274,
-0.5962193608283997,
0.46634626388549805,
-0.10137143731117249,
-0.6619141101837158,
-0.4070837199687958,
0.13316234946250916,
-0.45308274030685425,
1.120267391204834,
-0.12314270436763763,
-0.7333310842514038,
0.29722097516059875,
-0.6383305788040161,
-0.5435634851455688,
0.02833402156829834,
0.15706688165664673,
-0.37164241075515747,
0.18736425042152405,
0.21218609809875488,
0.6641246676445007,
0.11432038247585297,
0.4963791072368622,
-0.03044324554502964,
-0.37503835558891296,
0.28737372159957886,
-0.48675301671028137,
0.9863198399543762,
0.07160333544015884,
-0.4622672200202942,
0.0017111290944740176,
-0.692039966583252,
0.2135942578315735,
0.010217085480690002,
-0.27413854002952576,
-0.30928221344947815,
0.13874714076519012,
0.11279802024364471,
0.29561370611190796,
0.4502960443496704,
-0.5809327960014343,
-0.03781368210911751,
-0.6180707216262817,
0.3566085398197174,
0.8845676183700562,
-0.11632683128118515,
0.3553059995174408,
-0.16412609815597534,
0.3265986740589142,
-0.11779636144638062,
0.11037742346525192,
-0.2609448730945587,
-0.7120583653450012,
-0.8995630145072937,
-0.2553400993347168,
0.6530582308769226,
0.7044020891189575,
-0.3556480407714844,
0.9180522561073303,
0.06556403636932373,
-0.2798975110054016,
-0.726914644241333,
0.07639806717634201,
0.4829082190990448,
0.43421170115470886,
0.3310357332229614,
-0.4721519649028778,
-0.853532075881958,
-1.1604833602905273,
0.11614029854536057,
-0.055124178528785706,
-0.022826742380857468,
-0.009726634249091148,
0.5840966701507568,
-0.40199822187423706,
0.9740709662437439,
-0.2897447943687439,
-0.3493092954158783,
-0.5478047132492065,
0.38395851850509644,
0.24151016771793365,
0.6135829091072083,
0.5068718791007996,
-0.6114181876182556,
-0.5704677104949951,
-0.26076093316078186,
-0.5950719714164734,
-0.18032637238502502,
-0.07645272463560104,
-0.11515619605779648,
0.38041937351226807,
0.4065517485141754,
-0.5554265975952148,
0.5266229510307312,
0.724184513092041,
0.03578409552574158,
0.42655402421951294,
-0.23008964955806732,
-0.25492268800735474,
-1.156522274017334,
-0.0822439193725586,
-0.21578383445739746,
-0.20706236362457275,
-0.7178229093551636,
-0.10667379945516586,
0.021605173125863075,
-0.12289280444383621,
-0.43799304962158203,
0.32905587553977966,
-0.60981285572052,
-0.11826882511377335,
-0.38567379117012024,
-0.16281472146511078,
-0.01759110577404499,
0.8167787790298462,
0.4212133288383484,
0.6267918348312378,
0.6102712750434875,
-0.503898561000824,
0.137352854013443,
0.1571991741657257,
-0.4849758446216583,
-0.046233296394348145,
-0.7950080037117004,
0.17977525293827057,
-0.18997123837471008,
0.1251324713230133,
-1.1622323989868164,
0.2170770764350891,
-0.06954292953014374,
-0.6454159021377563,
0.49356675148010254,
0.18398788571357727,
-0.3414522707462311,
-0.4705577492713928,
-0.22089481353759766,
0.05737459659576416,
0.7788174152374268,
-0.40340685844421387,
0.5128094553947449,
0.40928858518600464,
-0.28092411160469055,
-0.8373072743415833,
-0.9457175135612488,
-0.0582108274102211,
0.18170294165611267,
-0.5457178354263306,
0.3801346719264984,
-0.13217508792877197,
-0.04055164381861687,
0.13985389471054077,
0.022424673661589622,
-0.2626481354236603,
0.015979010611772537,
0.32645413279533386,
0.3702474534511566,
-0.29243242740631104,
0.16540946066379547,
0.07731043547391891,
-0.12645509839057922,
0.1799888163805008,
-0.1576126664876938,
0.5703214406967163,
-0.14747999608516693,
-0.13575512170791626,
-0.3508085310459137,
0.5566083788871765,
0.11696362495422363,
-0.16104023158550262,
0.8968620896339417,
0.6573485136032104,
-0.4477846324443817,
-0.28995925188064575,
-0.6743217706680298,
-0.2980060577392578,
-0.479728102684021,
0.4201464354991913,
-0.35160982608795166,
-0.9104159474372864,
0.4145408570766449,
0.3047073781490326,
0.09921110421419144,
0.4799495041370392,
0.7112523913383484,
-0.5433937907218933,
0.9700796604156494,
1.0142223834991455,
-0.16663405299186707,
0.3532888889312744,
-0.06336184591054916,
0.39101457595825195,
-0.6168510913848877,
-0.31546929478645325,
-0.3901441991329193,
-0.3491370677947998,
-0.5851158499717712,
-0.10863713175058365,
-0.027357548475265503,
0.16247256100177765,
-0.08320383727550507,
0.460426390171051,
-0.6020494699478149,
0.4472042918205261,
0.9285938143730164,
0.08612477034330368,
-0.0024318427313119173,
0.12037395685911179,
-0.300640344619751,
-0.3121315538883209,
-0.5409572720527649,
-0.5288873314857483,
1.1797930002212524,
0.5029824376106262,
0.6649252772331238,
-0.16615518927574158,
0.6860775947570801,
0.48996293544769287,
0.31470787525177,
-0.7473403215408325,
0.6173712611198425,
-0.286601185798645,
-0.9377683997154236,
-0.07573924213647842,
-0.06944935023784637,
-1.0243563652038574,
0.1961873173713684,
-0.38760244846343994,
-0.675794243812561,
0.13381175696849823,
-0.02918819896876812,
-0.05831817165017128,
0.27889102697372437,
-0.9234994649887085,
0.65558922290802,
-0.44078120589256287,
0.09186498075723648,
0.15921378135681152,
-0.9087336659431458,
0.2595779597759247,
-0.18666499853134155,
-0.0781925618648529,
0.12000353634357452,
0.27104452252388,
0.8680620789527893,
-0.3819787800312042,
1.1330293416976929,
-0.12401549518108368,
0.1131381094455719,
0.20565487444400787,
-0.2255057692527771,
0.3461818993091583,
-0.38751909136772156,
0.21895548701286316,
0.4276096224784851,
-0.20012615621089935,
-0.34740594029426575,
-0.4062408208847046,
0.41596299409866333,
-0.8922839164733887,
-0.5729832053184509,
-0.5783636569976807,
-0.4871671199798584,
-0.2984665334224701,
0.31937599182128906,
0.4699397385120392,
0.22453708946704865,
-0.2638372480869293,
0.40692728757858276,
0.7694451212882996,
-0.3362759053707123,
0.5808910131454468,
0.554039716720581,
-0.12696674466133118,
-0.14204518496990204,
0.4851595461368561,
0.05317278578877449,
0.33397695422172546,
0.6577050089836121,
0.031767960637807846,
-0.41885578632354736,
-0.5963026285171509,
0.06413894146680832,
0.2639409899711609,
-0.6181391477584839,
-0.02802012488245964,
-0.86142498254776,
-0.7477373480796814,
-0.7122502326965332,
-0.2885911464691162,
-0.32769665122032166,
-0.3284769654273987,
-0.20901072025299072,
-0.27719756960868835,
0.12476972490549088,
0.7200473546981812,
-0.2815670669078827,
0.40150848031044006,
-0.6199101805686951,
0.26980823278427124,
0.46932005882263184,
0.1683093011379242,
-0.20053885877132416,
-0.566308319568634,
-0.24978594481945038,
0.2124427706003189,
-0.18595466017723083,
-0.8617433905601501,
0.5328179001808167,
0.05766305327415466,
0.7067519426345825,
0.4686409831047058,
-0.0655406042933464,
0.5313895344734192,
-0.7155576348304749,
0.7098219394683838,
0.21250958740711212,
-0.9823920130729675,
0.587982177734375,
-0.012794488109648228,
0.14714102447032928,
0.4868684411048889,
0.49806833267211914,
-0.2723449766635895,
-0.4351257085800171,
-0.5530274510383606,
-0.9161937236785889,
0.6447068452835083,
0.3570367097854614,
0.4490284323692322,
-0.0828094556927681,
0.10849086940288544,
0.1970033049583435,
0.5389792919158936,
-1.32725989818573,
-0.41807258129119873,
-0.31092938780784607,
-0.1624128222465515,
-0.28370481729507446,
-0.642001748085022,
0.11309873312711716,
-0.39224007725715637,
0.8111186623573303,
0.30585071444511414,
0.6521483063697815,
0.012927409261465073,
-0.2790515720844269,
0.15973007678985596,
0.26037779450416565,
0.536704421043396,
0.3468387722969055,
-0.7129688262939453,
-0.05018756166100502,
-0.03549612686038017,
-0.6740704774856567,
-0.1458897739648819,
0.18298102915287018,
-0.26968440413475037,
0.3825918138027191,
0.4689890742301941,
0.980951189994812,
0.22631657123565674,
-0.5934818983078003,
0.6126828193664551,
0.26155543327331543,
-0.35775476694107056,
-0.529480516910553,
-0.17533640563488007,
-0.03242119774222374,
0.13635703921318054,
0.5181044936180115,
0.008534926921129227,
-0.036396224051713943,
-0.6918277144432068,
0.40342921018600464,
0.5832036137580872,
-0.5609616637229919,
-0.18933461606502533,
0.4864940345287323,
0.24001947045326233,
-0.2937878668308258,
0.6053343415260315,
-0.03399321064352989,
-0.7538231015205383,
0.5992923378944397,
0.7599024772644043,
1.0774273872375488,
-0.21804088354110718,
0.3494964838027954,
0.11037974804639816,
0.787412166595459,
0.12088865786790848,
0.14936567842960358,
0.022177092730998993,
-0.9892109036445618,
-0.5125786066055298,
-0.6973990201950073,
-0.2766796350479126,
0.43780964612960815,
-0.7539701461791992,
0.057637203484773636,
-0.37024614214897156,
-0.1035560742020607,
0.04556462913751602,
0.054183926433324814,
-0.5889077186584473,
0.5660563111305237,
0.19372901320457458,
0.7671972513198853,
-0.9265657663345337,
1.009188175201416,
0.5073981881141663,
-0.36486169695854187,
-0.7649352550506592,
-0.07594098895788193,
-0.29237523674964905,
-1.0418542623519897,
0.9118142127990723,
0.3094371557235718,
0.12392903119325638,
-0.04508552700281143,
-0.6413807272911072,
-0.7541515827178955,
0.6895498633384705,
0.11992360651493073,
-0.40609315037727356,
-0.24609310925006866,
0.22076405584812164,
0.6205589771270752,
-0.6925897002220154,
0.2560165822505951,
0.2115083783864975,
0.27900564670562744,
0.12000514566898346,
-0.7668483257293701,
-0.2574138045310974,
-0.3389231562614441,
0.17529703676700592,
0.0466008186340332,
-0.2360404133796692,
1.12105131149292,
-0.0370887853205204,
-0.03578996658325195,
0.012322788126766682,
0.5569418668746948,
-0.0530305914580822,
-0.07353629171848297,
0.3835631310939789,
0.5303339958190918,
0.459869384765625,
-0.23345790803432465,
0.9257597923278809,
-0.2402554452419281,
0.4121206998825073,
1.1526364088058472,
-0.24759911000728607,
0.979728639125824,
0.32708021998405457,
-0.08180020749568939,
0.7204502820968628,
0.7336735725402832,
-0.15235388278961182,
0.9423913359642029,
0.09060369431972504,
-0.044178079813718796,
-0.08012121170759201,
0.1468697190284729,
-0.5789801478385925,
0.44055503606796265,
0.19917573034763336,
-0.7082707285881042,
-0.18001915514469147,
0.19615110754966736,
0.05648767575621605,
-0.10937456041574478,
-0.39625105261802673,
0.7106044888496399,
-0.03105534240603447,
-0.5894388556480408,
0.4118426442146301,
0.10411025583744049,
0.9302826523780823,
-0.9280564188957214,
0.18114298582077026,
-0.12232714891433716,
0.09519254416227341,
-0.06985119730234146,
-0.6388698220252991,
0.32574453949928284,
0.025824755430221558,
-0.4026009142398834,
-0.4746197462081909,
0.9122029542922974,
-0.5785344243049622,
-0.7356582880020142,
0.26245149970054626,
0.39491045475006104,
0.30800938606262207,
-0.052640173584222794,
-0.9549893140792847,
-0.22686399519443512,
0.10151716321706772,
-0.41637521982192993,
0.2686064541339874,
0.2890843451023102,
0.12751805782318115,
0.6379827857017517,
0.6671515107154846,
0.09994861483573914,
0.1551118642091751,
0.072414830327034,
0.6989291906356812,
-0.6357700824737549,
-0.5867382884025574,
-0.6750954389572144,
0.6519075632095337,
0.0037529191467911005,
-0.07769379019737244,
0.752569317817688,
0.45213210582733154,
0.8050034642219543,
-0.3748278021812439,
0.8033895492553711,
0.024931220337748528,
0.6574535965919495,
-0.5759469866752625,
0.7067505121231079,
-0.4375188648700714,
-0.004832599777728319,
-0.3895009160041809,
-1.0077741146087646,
-0.1519084870815277,
0.980025053024292,
-0.14745023846626282,
0.26450809836387634,
0.8584110140800476,
0.6751958131790161,
0.10667183250188828,
-0.10467442870140076,
0.38778501749038696,
0.30503690242767334,
-0.1934654861688614,
0.40701428055763245,
0.5215975642204285,
-0.3180028796195984,
0.41379815340042114,
-0.36338552832603455,
-0.145880326628685,
-0.05350399389863014,
-0.8656550049781799,
-1.3549566268920898,
-0.6363615989685059,
-0.2474268078804016,
-0.3379257917404175,
0.20305483043193817,
0.7174037098884583,
0.8846133947372437,
-1.0869548320770264,
-0.2209368646144867,
-0.13465900719165802,
-0.055756956338882446,
-0.12114773690700531,
-0.28282248973846436,
0.3292040526866913,
-0.47533050179481506,
-0.7496976256370544,
0.17938560247421265,
0.2408953309059143,
0.17156119644641876,
-0.4853638708591461,
0.1748114675283432,
-0.5400516390800476,
0.34072455763816833,
0.7195382118225098,
0.07981207966804504,
-0.6469978094100952,
-0.2269248366355896,
-0.0015422626165673137,
-0.1970493495464325,
-0.007179439999163151,
0.6670965552330017,
-0.7552618980407715,
0.4409368336200714,
0.26337772607803345,
0.6956116557121277,
0.5254480838775635,
-0.20618543028831482,
0.6293517351150513,
-1.1203902959823608,
0.3995954692363739,
0.3441663384437561,
0.31365278363227844,
0.16801989078521729,
-0.39172592759132385,
0.3343295753002167,
0.2186945080757141,
-0.3980417549610138,
-0.8264817595481873,
0.18321090936660767,
-1.0283153057098389,
-0.4444979727268219,
0.9814628958702087,
-0.255260169506073,
-0.13313028216362,
-0.11815454810857773,
-0.1373279094696045,
0.1051044762134552,
-0.20691923797130585,
0.7673335075378418,
0.9636861085891724,
0.21374933421611786,
-0.33126094937324524,
-0.4214739501476288,
0.4880567789077759,
0.4665146768093109,
-0.5146300196647644,
-0.4739287197589874,
0.1727195829153061,
0.21851930022239685,
0.1309877187013626,
0.6608369946479797,
0.05834035575389862,
-0.04268328845500946,
-0.30994388461112976,
0.4893645942211151,
0.03894169256091118,
-0.30084338784217834,
-0.137064591050148,
0.20032335817813873,
-0.3951015770435333,
-0.5497502088546753
] |
patrickvonplaten/wav2vec2_tiny_random
|
patrickvonplaten
| 2021-07-05T13:53:54Z | 8,867 | 1 |
transformers
|
[
"transformers",
"pytorch",
"wav2vec2",
"feature-extraction",
"endpoints_compatible",
"region:us"
] |
feature-extraction
| 2022-03-02T23:29:05Z |
## Test model
To test this model run the following code:
```python
from datasets import load_dataset
from transformers import Wav2Vec2ForCTC
import torchaudio
import torch
ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")
model = Wav2Vec2ForCTC.from_pretrained("patrickvonplaten/wav2vec2_tiny_random")
def load_audio(batch):
batch["samples"], _ = torchaudio.load(batch["file"])
return batch
ds = ds.map(load_audio)
input_values = torch.nn.utils.rnn.pad_sequence([torch.tensor(x[0]) for x in ds["samples"][:10]], batch_first=True)
# forward
logits = model(input_values).logits
pred_ids = torch.argmax(logits, dim=-1)
# dummy loss
dummy_labels = pred_ids.clone()
dummy_labels[dummy_labels == model.config.pad_token_id] = 1 # can't have CTC blank token in label
dummy_labels = dummy_labels[:, -(dummy_labels.shape[1] // 4):] # make sure labels are shorter to avoid "inf" loss (can still happen though...)
loss = model(input_values, labels=dummy_labels).loss
```
|
[
-0.30703145265579224,
-0.5798270106315613,
0.2221839278936386,
0.3611357510089874,
-0.24621747434139252,
-0.1702726185321808,
-0.17654654383659363,
-0.09613741934299469,
-0.1772056370973587,
0.4879331886768341,
-0.7317723631858826,
-0.4282982647418976,
-0.6903225183486938,
-0.20156987011432648,
-0.6309294700622559,
1.1375693082809448,
-0.1100444570183754,
0.16838499903678894,
0.07574311643838882,
-0.264331579208374,
-0.8462347984313965,
-0.11945828050374985,
-0.9265965819358826,
-0.5119532942771912,
0.1867515742778778,
0.39531925320625305,
0.38373592495918274,
0.12676359713077545,
0.45538657903671265,
0.3846744894981384,
-0.04332045093178749,
-0.07016311585903168,
-0.4453778564929962,
-0.17517982423305511,
0.15598070621490479,
-0.655329704284668,
-0.37694117426872253,
0.12075050920248032,
0.5272544026374817,
0.1738663613796234,
0.07110638916492462,
0.37086448073387146,
-0.09227853268384933,
0.028217904269695282,
-0.3291674852371216,
-0.014775256626307964,
-0.41903889179229736,
-0.16528728604316711,
0.14058859646320343,
-0.29932650923728943,
-0.5420803427696228,
-0.2932160794734955,
0.12540246546268463,
-0.5537704229354858,
0.6638625264167786,
0.06631108373403549,
1.3211910724639893,
0.23639267683029175,
-0.6033111214637756,
-0.2637723386287689,
-0.8106828331947327,
0.7490158677101135,
-0.7184819579124451,
0.6433472633361816,
0.3497779369354248,
0.10860495269298553,
0.03504148870706558,
-1.1370031833648682,
-0.8042182922363281,
-0.20591862499713898,
0.12612506747245789,
0.16164396703243256,
-0.18687066435813904,
0.012949470430612564,
0.5281367897987366,
0.23434653878211975,
-0.7417764663696289,
0.13471747934818268,
-0.8628379106521606,
-0.3364826440811157,
0.6860604882240295,
0.04612186923623085,
0.15879318118095398,
-0.08848275244235992,
-0.6509464979171753,
-0.7040904760360718,
-0.46289002895355225,
0.16520270705223083,
0.6797674894332886,
0.19910253584384918,
-0.4755357503890991,
0.6817258596420288,
0.18726831674575806,
0.5883497595787048,
0.23957568407058716,
-0.17819400131702423,
0.5772994756698608,
-0.2849811613559723,
-0.3911902606487274,
0.4163067638874054,
0.8596450686454773,
0.30718109011650085,
0.3968278169631958,
0.3335796892642975,
-0.2555491030216217,
0.19935724139213562,
-0.014219922944903374,
-0.9247507452964783,
-0.6753659248352051,
0.5737276077270508,
-0.3195134997367859,
-0.3318149149417877,
0.13755470514297485,
-0.4389689266681671,
-0.029047891497612,
-0.17839521169662476,
1.2983603477478027,
-0.537605345249176,
-0.33575472235679626,
0.3985813856124878,
-0.3362749218940735,
0.43059486150741577,
-0.07522840052843094,
-0.8654941320419312,
0.2807803452014923,
0.35355323553085327,
0.7061599493026733,
0.06982000172138214,
-0.32619696855545044,
-0.43475785851478577,
-0.12351667881011963,
-0.2049609273672104,
0.5766721963882446,
0.2194289267063141,
-0.7758265137672424,
-0.35926851630210876,
0.1625109761953354,
-0.19552506506443024,
-0.6786860823631287,
0.64381343126297,
-0.4051246643066406,
0.2398746907711029,
-0.1653631180524826,
-0.5143125057220459,
-0.11626187711954117,
-0.1406063735485077,
-0.45214229822158813,
1.1669408082962036,
0.2522892355918884,
-0.7183829545974731,
0.35790908336639404,
-0.6143067479133606,
-0.5707269310951233,
-0.43928244709968567,
-0.12069082260131836,
-0.9761632084846497,
0.08240512013435364,
0.0636586844921112,
0.4488840699195862,
-0.21033813059329987,
0.029358915984630585,
-0.37993714213371277,
-0.5831685662269592,
0.4849473834037781,
-0.5549023747444153,
1.0947213172912598,
0.15117141604423523,
-0.5586748123168945,
0.38323110342025757,
-0.9521494507789612,
0.12320400029420853,
0.015632236376404762,
-0.29215773940086365,
0.15677370131015778,
-0.34219980239868164,
0.643684983253479,
0.06595924496650696,
-0.4245082437992096,
-0.6892895102500916,
0.24538621306419373,
-0.07242421805858612,
0.292154997587204,
0.7802513837814331,
0.0008954200311563909,
0.1529248058795929,
-0.4991723895072937,
0.17738975584506989,
0.13279588520526886,
-0.07397067546844482,
0.3140999674797058,
-0.5052460432052612,
-0.9903386235237122,
-0.6315142512321472,
0.48554447293281555,
0.503099799156189,
-0.4826831817626953,
0.7327926754951477,
-0.13201656937599182,
-0.4753654897212982,
-0.6214213967323303,
-0.43069228529930115,
0.008980167098343372,
0.6214940547943115,
0.5120029449462891,
-0.3298981487751007,
-0.8377562761306763,
-0.8410946130752563,
0.20219922065734863,
-0.05444025620818138,
-0.5385225415229797,
0.09969327598810196,
0.6269243955612183,
-0.4227169156074524,
0.869716227054596,
-0.664667546749115,
-0.36302629113197327,
-0.34669822454452515,
0.3734789192676544,
0.6022217869758606,
0.8912477493286133,
0.3840063214302063,
-0.5711098313331604,
-0.14831551909446716,
-0.4254956543445587,
-0.4080217182636261,
-0.17465010285377502,
-0.3301205337047577,
0.03905864432454109,
-0.14037534594535828,
0.12446457892656326,
-0.8274514079093933,
0.7185211181640625,
0.2787424623966217,
-0.6020358800888062,
0.8105431199073792,
-0.19331470131874084,
0.29560691118240356,
-0.983790934085846,
0.05611269921064377,
-0.23367080092430115,
-0.10270370543003082,
-0.501686692237854,
-0.4332635998725891,
0.1009616106748581,
-0.10345720499753952,
-0.5620952248573303,
0.6354697942733765,
-0.07489663362503052,
-0.07820816338062286,
-0.3223099112510681,
-0.25929954648017883,
0.15875110030174255,
0.390744686126709,
-0.00635953526943922,
0.47035762667655945,
0.7031814455986023,
-0.8815920352935791,
0.6375357508659363,
0.4581040143966675,
-0.445894718170166,
0.3603019416332245,
-0.9357988238334656,
0.09872203320264816,
0.11251339316368103,
0.1837029755115509,
-1.1193121671676636,
-0.03492162749171257,
0.2024098038673401,
-0.8163344264030457,
0.49392470717430115,
-0.0017563581932336092,
-0.5019278526306152,
-0.3831554353237152,
-0.12906405329704285,
0.7837514281272888,
0.8105727434158325,
-0.8111951351165771,
0.4819299578666687,
0.080570749938488,
0.44189512729644775,
-0.27617347240448,
-0.8249106407165527,
-0.6237558126449585,
-0.3581259846687317,
-0.7789523601531982,
0.2129787802696228,
-0.1614227145910263,
-0.03400406986474991,
-0.19307462871074677,
-0.30053120851516724,
-0.0346679650247097,
-0.074797622859478,
0.30699780583381653,
0.3988974690437317,
-0.23649868369102478,
0.05042365565896034,
-0.17468777298927307,
-0.3040790855884552,
0.20772220194339752,
-0.3709772825241089,
0.7557198405265808,
-0.06861165165901184,
-0.5628020167350769,
-0.7725203037261963,
-0.13615015149116516,
0.4052636921405792,
-0.1836112141609192,
0.37001731991767883,
0.9626778364181519,
-0.3598209023475647,
-0.2901291251182556,
-0.5957056879997253,
-0.3382742702960968,
-0.5317015051841736,
0.8686555624008179,
-0.41931724548339844,
-0.21262302994728088,
0.7396026849746704,
0.32998430728912354,
-0.18379923701286316,
0.6335210204124451,
0.7455141544342041,
-0.2890232503414154,
0.7627556920051575,
0.30047306418418884,
0.14245420694351196,
0.23726016283035278,
-1.1281014680862427,
0.16862089931964874,
-0.7770299315452576,
-0.33258575201034546,
-0.44623103737831116,
-0.49253594875335693,
-0.5438622236251831,
-0.3655482828617096,
0.384155809879303,
0.044754914939403534,
-0.44858068227767944,
0.5032726526260376,
-0.45445218682289124,
0.15895387530326843,
0.8134448528289795,
0.3425532281398773,
0.029391653835773468,
-0.046835772693157196,
-0.05020953714847565,
0.11772162467241287,
-0.6227523684501648,
-0.18789277970790863,
1.185828447341919,
0.4950222074985504,
0.9349021315574646,
-0.04852068051695824,
0.668208658695221,
-0.01656270958483219,
0.19251056015491486,
-0.7809978723526001,
0.3440375030040741,
0.11083991825580597,
-0.8087451457977295,
-0.22778083384037018,
-0.2109297811985016,
-0.8948754072189331,
0.1544734388589859,
-0.07685651630163193,
-0.8206307291984558,
0.35833579301834106,
0.19210992753505707,
-0.5799646377563477,
0.43619728088378906,
-0.6238813400268555,
0.9385014772415161,
-0.19518420100212097,
-0.2861523926258087,
0.15898072719573975,
-0.40230593085289,
0.41841116547584534,
-0.012097368016839027,
-0.11911864578723907,
-0.06953354179859161,
0.47545671463012695,
1.1614521741867065,
-0.39030295610427856,
0.4271809160709381,
-0.16704565286636353,
0.12838420271873474,
0.651790201663971,
-0.1100504994392395,
0.349432110786438,
0.2899870276451111,
0.113581083714962,
0.15955528616905212,
0.17495562136173248,
-0.2825678884983063,
-0.4927346110343933,
0.6196157932281494,
-0.9920179843902588,
-0.11671171337366104,
-0.3705587685108185,
-0.6617146134376526,
0.0346161425113678,
-0.012215299531817436,
0.909839391708374,
0.7145369052886963,
0.17007268965244293,
0.21370434761047363,
0.7801605463027954,
-0.20155730843544006,
0.4094497561454773,
0.16160428524017334,
-0.19911235570907593,
-0.44835203886032104,
0.7614266872406006,
0.036924585700035095,
0.3660919964313507,
-0.1309446394443512,
0.1375022679567337,
-0.5064003467559814,
-0.4993452727794647,
-0.3310949504375458,
0.14666606485843658,
-0.5945360064506531,
-0.3103623390197754,
-0.49596554040908813,
-0.28306177258491516,
-0.5008755922317505,
0.05613649636507034,
-0.7024433016777039,
-0.23140445351600647,
-0.30885642766952515,
-0.291422039270401,
0.5469715595245361,
0.4473627805709839,
-0.40025126934051514,
0.6049671769142151,
-0.6877615451812744,
0.50571608543396,
0.16339944303035736,
0.2595330476760864,
-0.08131483942270279,
-0.985797107219696,
-0.01026540994644165,
0.049959082156419754,
-0.4348415732383728,
-1.0148208141326904,
0.41580089926719666,
-0.1385740041732788,
0.3565998375415802,
0.44028323888778687,
0.10384506732225418,
0.7240897417068481,
-0.287598580121994,
0.5579833388328552,
0.2588767111301422,
-1.053709626197815,
0.3964012861251831,
-0.3762640655040741,
0.09439411014318466,
0.39361634850502014,
0.15872448682785034,
-0.36990654468536377,
-0.23566724359989166,
-0.9865658283233643,
-1.1031126976013184,
0.8056359887123108,
0.6438172459602356,
-0.01533916499465704,
0.3151841461658478,
0.019401464611291885,
-0.08250566571950912,
0.06765450537204742,
-0.926365077495575,
-0.4999953806400299,
-0.2791042625904083,
-0.19423414766788483,
-0.22591298818588257,
-0.08813556283712387,
-0.13992370665073395,
-0.5498383045196533,
0.934124231338501,
0.2545086443424225,
0.6116474866867065,
0.474698543548584,
0.07794436812400818,
0.06658779829740524,
-0.11922889202833176,
0.7985537052154541,
0.22560088336467743,
-0.6285799741744995,
0.14676795899868011,
0.4299413859844208,
-0.56883305311203,
0.45092952251434326,
0.035552654415369034,
-0.023454347625374794,
0.3417246639728546,
0.5272836685180664,
1.1291601657867432,
0.24023574590682983,
-0.2814755439758301,
0.5089547634124756,
-0.22994454205036163,
-0.31371742486953735,
-0.6385943293571472,
-0.013210730627179146,
0.22041350603103638,
0.1831967681646347,
0.28024595975875854,
0.33181509375572205,
-0.23582085967063904,
-0.346118301153183,
0.4949100911617279,
0.14053207635879517,
-0.401728093624115,
-0.3235311806201935,
0.9434159398078918,
0.03026794269680977,
-0.34174394607543945,
1.1186796426773071,
0.007946222089231014,
-0.38709449768066406,
1.0772565603256226,
0.5167213678359985,
0.9744327068328857,
-0.0044316514395177364,
-0.23762114346027374,
0.4979241192340851,
0.2690521776676178,
-0.16490519046783447,
0.3720988929271698,
0.050120703876018524,
-0.7436290979385376,
-0.037112388759851456,
-0.5179808735847473,
0.05390235036611557,
0.4242709279060364,
-0.8130832314491272,
0.8974134922027588,
-0.22545725107192993,
-0.2316296398639679,
-0.07911734282970428,
-0.03841642662882805,
-1.1332426071166992,
0.452645868062973,
-0.10207311809062958,
0.9969321489334106,
-1.148182988166809,
1.0640701055526733,
0.0679638683795929,
-0.5474055409431458,
-1.3755526542663574,
-0.1324453204870224,
-0.15381990373134613,
-0.600483775138855,
0.9063939452171326,
0.2945675551891327,
0.18309859931468964,
0.18026305735111237,
-0.46375584602355957,
-0.8859118819236755,
1.1223677396774292,
0.19149154424667358,
-0.2256658375263214,
0.2758205533027649,
-0.05887759104371071,
0.3491937220096588,
-0.1153368204832077,
0.6892103552818298,
0.5791677832603455,
0.5748831033706665,
0.21384204924106598,
-0.9682204127311707,
-0.15283018350601196,
0.053782567381858826,
-0.3269526958465576,
0.0062759993597865105,
-0.4012889564037323,
1.1780072450637817,
-0.4998868405818939,
-0.021611331030726433,
0.1798630654811859,
0.8385590314865112,
0.6490553021430969,
0.36391890048980713,
0.6358022689819336,
0.6131477952003479,
0.6057503819465637,
-0.39627575874328613,
0.989987850189209,
-0.006534670013934374,
0.8975679278373718,
1.0643024444580078,
-0.12332956492900848,
0.6298308968544006,
0.40716060996055603,
-0.3057076632976532,
0.24485965073108673,
0.8688633441925049,
-0.5450092554092407,
0.781876802444458,
0.597446084022522,
-0.159684419631958,
-0.008040356449782848,
0.3632856607437134,
-0.7601171731948853,
0.7557566165924072,
0.053212545812129974,
-0.264358788728714,
0.26525333523750305,
0.23528620600700378,
-0.14328986406326294,
-0.577553391456604,
-0.037415508180856705,
0.21056240797042847,
-0.12897171080112457,
-0.38039007782936096,
0.8205800652503967,
0.03460473567247391,
0.7911756634712219,
-0.7608630657196045,
0.07111269980669022,
-0.017220614477992058,
0.5368016362190247,
-0.26551342010498047,
-0.29394659399986267,
0.2438119649887085,
-0.39884454011917114,
-0.1487545371055603,
0.0526849627494812,
0.47859394550323486,
-0.6373827457427979,
-0.6957747340202332,
0.5084630846977234,
-0.015804339200258255,
0.2264259308576584,
0.08552080392837524,
-0.3499469459056854,
0.3355098068714142,
0.14731216430664062,
-0.4829566180706024,
-0.02570538967847824,
0.1476985216140747,
0.34209343791007996,
0.6305973529815674,
0.6230039596557617,
0.09024663269519806,
0.41089576482772827,
0.011195089668035507,
0.7010255455970764,
-0.4652669131755829,
-0.49716007709503174,
-0.6988354921340942,
0.7503957748413086,
0.08892932534217834,
-0.5727242827415466,
0.5971203446388245,
0.9390716552734375,
1.1602764129638672,
-0.4311448037624359,
0.5816307663917542,
-0.05432635545730591,
0.21255964040756226,
-0.5917755961418152,
0.9681533575057983,
-0.4185935854911804,
0.30541375279426575,
-0.23353031277656555,
-0.8182656168937683,
-0.0121842660009861,
0.7641974687576294,
-0.06424645334482193,
0.31008270382881165,
0.7860117554664612,
1.1125619411468506,
-0.45061221718788147,
-0.05645744130015373,
0.32037320733070374,
0.3027642071247101,
0.258707731962204,
0.5163241624832153,
0.6771396398544312,
-1.1179986000061035,
0.5252825617790222,
-0.48381948471069336,
-0.04910832643508911,
-0.025657733902335167,
-0.3738560974597931,
-0.8008793592453003,
-0.5886131525039673,
-0.5907222032546997,
-0.9045262932777405,
-0.18389958143234253,
1.048831582069397,
0.9982640743255615,
-1.1196907758712769,
-0.35917747020721436,
0.07831874489784241,
0.00971844233572483,
-0.239360049366951,
-0.28870493173599243,
0.7439121007919312,
0.18818292021751404,
-0.9294357299804688,
0.3648318946361542,
-0.3657868802547455,
0.34708496928215027,
0.003500104183331132,
-0.14749978482723236,
-0.4178982079029083,
-0.12940020859241486,
0.15714870393276215,
0.18005959689617157,
-0.679025411605835,
-0.6726045608520508,
-0.34438252449035645,
-0.04661073163151741,
0.06695050001144409,
0.6922571659088135,
-0.7974624633789062,
0.3985927999019623,
0.6318698525428772,
0.1752808541059494,
0.8572349548339844,
-0.3144856095314026,
0.3928811252117157,
-0.8270672559738159,
0.303628146648407,
0.22058746218681335,
0.42884624004364014,
0.17151786386966705,
-0.24302533268928528,
0.3659381866455078,
0.46538475155830383,
-0.576518177986145,
-1.1164695024490356,
-0.015694551169872284,
-1.217494010925293,
0.026453515514731407,
1.250870704650879,
0.08672420680522919,
-0.002600383013486862,
0.024223126471042633,
-0.3378754258155823,
0.7871477007865906,
-0.17605426907539368,
0.6665986776351929,
0.2582085430622101,
-0.2516588270664215,
0.06191340088844299,
-0.5046348571777344,
0.5513421893119812,
0.4135570228099823,
-0.40153834223747253,
-0.29176685214042664,
-0.011497349478304386,
0.8584246039390564,
0.15140117704868317,
0.7149727940559387,
0.15606015920639038,
0.3488125205039978,
0.3627645671367645,
0.5427737832069397,
-0.374816358089447,
-0.17508624494075775,
-0.45604944229125977,
-0.004303107503801584,
-0.2555105984210968,
-0.9936830997467041
] |
Yntec/Photosphere
|
Yntec
| 2023-07-14T23:22:58Z | 8,838 | 3 |
diffusers
|
[
"diffusers",
"stable-diffusion",
"stable-diffusion-diffusers",
"text-to-image",
"Noosphere",
"Dreamlike",
"license:creativeml-openrail-m",
"endpoints_compatible",
"has_space",
"diffusers:StableDiffusionPipeline",
"region:us"
] |
text-to-image
| 2023-07-14T22:54:19Z |
---
license: creativeml-openrail-m
library_name: diffusers
pipeline_tag: text-to-image
tags:
- stable-diffusion
- stable-diffusion-diffusers
- diffusers
- text-to-image
- Noosphere
- Dreamlike
---
# Photosphere
A mix of Noosphere v3 by skumerz and photorealistic models.
Original page:
https://civitai.com/models/36538?modelVersionId=107675
|
[
-0.4293549060821533,
-0.202146515250206,
0.6425039172172546,
0.6046640872955322,
-0.3649662435054779,
0.23225849866867065,
0.5968141555786133,
-0.5215339064598083,
0.664729654788971,
0.9702031016349792,
-1.1646627187728882,
-0.5403885841369629,
0.07643293589353561,
-0.4159370958805084,
-0.40239882469177246,
0.4713048040866852,
0.03592538461089134,
0.2980118989944458,
-0.23992490768432617,
-0.07626303285360336,
0.04726874828338623,
-0.21404366195201874,
-0.1541210561990738,
-0.5166058540344238,
0.5941269397735596,
0.9458446502685547,
0.642453134059906,
-0.1229880154132843,
0.4740225076675415,
0.1484239548444748,
-0.1753266304731369,
-0.3110680878162384,
-0.28402045369148254,
0.00028110979474149644,
-0.17723913490772247,
-0.24425558745861053,
-0.5400859713554382,
0.11025897413492203,
0.3983455002307892,
0.2685885727405548,
-0.3035257160663605,
0.45626381039619446,
-0.43921422958374023,
0.29232051968574524,
-0.6622018218040466,
-0.24847757816314697,
-0.21489886939525604,
0.36688992381095886,
-0.11862736195325851,
-0.1686602383852005,
0.09791561216115952,
-0.10394412279129028,
-0.19627101719379425,
-1.1966906785964966,
0.24216832220554352,
0.0023151468485593796,
0.9006316661834717,
-0.02683388441801071,
-0.5178371071815491,
0.31546592712402344,
-1.0025314092636108,
0.7125651836395264,
-0.5461673140525818,
0.6282748579978943,
-0.15185073018074036,
0.8617071509361267,
-0.4601084291934967,
-0.7541913390159607,
-0.4586184322834015,
0.17357784509658813,
0.5376087427139282,
0.589722216129303,
-0.16237866878509521,
-0.1707315891981125,
0.15971820056438446,
0.5530831217765808,
-0.6863884925842285,
-0.025708714500069618,
-0.843492329120636,
0.13145634531974792,
0.4568897783756256,
0.18345487117767334,
0.4246281087398529,
-0.34754064679145813,
-0.6332390308380127,
0.19238589704036713,
-0.45399346947669983,
-0.04067185893654823,
0.5826481580734253,
-0.20439398288726807,
-0.22395949065685272,
1.0048950910568237,
-0.5457680225372314,
0.9263596534729004,
-0.19939719140529633,
-0.045006487518548965,
0.3851196765899658,
-0.1361474245786667,
-0.4037744104862213,
-0.2986670732498169,
0.2896582782268524,
0.9686607718467712,
-0.35088539123535156,
-0.28522035479545593,
-0.0963626503944397,
0.10968482494354248,
0.13670259714126587,
-1.0317944288253784,
-0.4932769238948822,
0.40417373180389404,
-0.31651735305786133,
-0.8010653853416443,
0.4153444766998291,
-0.7550413608551025,
-0.22841417789459229,
-0.28002992272377014,
0.11578323692083359,
-0.21649007499217987,
-0.6287006735801697,
0.39588797092437744,
-0.26766496896743774,
0.2371920496225357,
0.365276575088501,
-0.4622376263141632,
0.6918284296989441,
0.2870616912841797,
0.727160632610321,
0.6520827412605286,
-0.07529670000076294,
0.20286786556243896,
0.05987219512462616,
-0.39865198731422424,
1.0503429174423218,
-0.07805422693490982,
-0.7305739521980286,
-0.25584110617637634,
0.17193572223186493,
0.16844171285629272,
-0.20639173686504364,
0.5339853167533875,
-0.8241593837738037,
0.14938093721866608,
-0.31057414412498474,
-0.27654698491096497,
-0.4516356885433197,
0.11433639377355576,
-0.7282595634460449,
1.3953779935836792,
0.24351876974105835,
-0.8883152008056641,
0.6069269776344299,
-0.8014071583747864,
0.16848643124103546,
0.5814540982246399,
-0.08882608264684677,
-0.30992379784584045,
0.5385642051696777,
-0.2082958221435547,
-0.18427978456020355,
-0.04579104855656624,
-0.31346389651298523,
-0.7032228112220764,
-0.37491002678871155,
-0.24416570365428925,
0.360125333070755,
1.0146278142929077,
0.5303057432174683,
-0.14749957621097565,
0.5107449293136597,
-1.0422401428222656,
0.38531219959259033,
0.2843773066997528,
0.35327377915382385,
-0.14347240328788757,
-0.2249891310930252,
0.7093390822410583,
0.7423686981201172,
0.26062044501304626,
-0.7911599278450012,
0.28766998648643494,
-0.12962837517261505,
0.2601185739040375,
0.4073460102081299,
0.5834895968437195,
0.5401994585990906,
-0.4790959060192108,
0.8300195336341858,
0.16720227897167206,
0.7623077034950256,
0.3189470171928406,
-0.30081650614738464,
-0.599111020565033,
-0.2691345810890198,
-0.05705192685127258,
0.4855667054653168,
-1.0666009187698364,
-0.04576833173632622,
0.03657780960202217,
-1.2867220640182495,
0.14897623658180237,
0.3247860074043274,
-0.18958313763141632,
0.04532306268811226,
0.07396256923675537,
0.007309218402951956,
-0.612138032913208,
-1.2960377931594849,
-0.05410712957382202,
0.2439160794019699,
-0.14707304537296295,
0.6824555397033691,
0.8188523650169373,
-0.12332800775766373,
0.6079756617546082,
-0.473279744386673,
0.02572314254939556,
-0.22536426782608032,
-0.45956921577453613,
0.6018927693367004,
0.2824329435825348,
1.262384295463562,
-0.6689052581787109,
-0.6704152226448059,
-0.016165336593985558,
-0.5625792145729065,
-0.09110060334205627,
0.49082013964653015,
-0.4492717981338501,
-0.14229834079742432,
0.5627442002296448,
-0.7664654850959778,
0.26614734530448914,
0.5517050623893738,
-0.5591525435447693,
0.5534523129463196,
-0.23518680036067963,
0.33655014634132385,
-1.064594030380249,
0.2033420205116272,
0.26210853457450867,
-0.4196411073207855,
-0.4047544300556183,
0.47681236267089844,
0.07915236800909042,
-0.38327527046203613,
-1.1153597831726074,
0.5393131375312805,
-0.8123238682746887,
0.11806803196668625,
-0.20812153816223145,
-0.03543110191822052,
0.17807573080062866,
0.0766337439417839,
0.07137081027030945,
0.4421461522579193,
1.007421851158142,
-0.11937043815851212,
0.47637903690338135,
0.11029347032308578,
-0.5480028986930847,
0.6628616452217102,
-0.9646656513214111,
0.09235457330942154,
-0.21279044449329376,
0.16457296907901764,
-0.8437480330467224,
-0.8154827952384949,
0.354973167181015,
-0.0887838676571846,
-0.7032137513160706,
0.06021624803543091,
-1.0427933931350708,
-0.7067198753356934,
-0.23704226315021515,
0.48966097831726074,
0.5046386122703552,
-0.6577929854393005,
0.36430367827415466,
0.16128365695476532,
0.27470192313194275,
0.007471637800335884,
-0.26511886715888977,
0.20513170957565308,
-0.19271230697631836,
-0.5864349603652954,
0.8151137828826904,
0.031972672790288925,
-0.33740782737731934,
0.33973428606987,
-0.1516546905040741,
-0.15288759768009186,
-0.293679803609848,
0.6162037253379822,
0.700897216796875,
-0.4000137746334076,
-0.5076517462730408,
-0.18426018953323364,
0.33491000533103943,
-0.3881776034832001,
-0.24756212532520294,
0.5632715225219727,
-0.3859735429286957,
0.08857540041208267,
-0.8888788819313049,
0.4319186210632324,
1.2198480367660522,
0.41005945205688477,
0.8316901326179504,
0.14977996051311493,
-0.704730212688446,
0.03296026214957237,
-0.5761654376983643,
-0.09581436961889267,
-0.40820470452308655,
-0.23210740089416504,
-0.541104793548584,
-0.6510186195373535,
0.6355940699577332,
0.2654516398906708,
-0.1922200322151184,
0.6165050864219666,
0.0539533793926239,
-0.15208522975444794,
1.1799993515014648,
0.5302451848983765,
0.1918751746416092,
0.6812143325805664,
-0.7222733497619629,
-0.06941897422075272,
-0.7369508743286133,
-0.6171888709068298,
-0.1403946578502655,
-0.17024455964565277,
-0.34668636322021484,
-0.6687226295471191,
0.07361575216054916,
0.30717572569847107,
-0.5062918066978455,
0.46278855204582214,
-0.3656468093395233,
0.9488431811332703,
0.5158836841583252,
0.23245960474014282,
0.2909875214099884,
0.09692852944135666,
0.03805212303996086,
-0.1269439160823822,
-0.8711662292480469,
-0.3763032853603363,
0.5653905272483826,
-0.19503909349441528,
0.4386790692806244,
0.07419125735759735,
0.693248450756073,
-0.2059260606765747,
0.30673226714134216,
-0.32602381706237793,
0.5918002128601074,
0.27015018463134766,
-1.2064638137817383,
0.4560607373714447,
-0.13917051255702972,
-0.41803765296936035,
0.707973062992096,
-0.7437543272972107,
-0.48330435156822205,
0.36439231038093567,
-0.011730230413377285,
-0.5824643969535828,
0.39773210883140564,
-0.39896202087402344,
0.9473324418067932,
-0.14952221512794495,
-0.18919098377227783,
0.06245782971382141,
-0.3687887489795685,
0.5097461342811584,
0.6394824981689453,
0.30842825770378113,
-0.12154870480298996,
-0.13179534673690796,
0.222704216837883,
-0.42800045013427734,
0.6623356342315674,
-0.3016580641269684,
0.39212122559547424,
0.41594746708869934,
-0.05332333967089653,
-0.21879573166370392,
0.3714739978313446,
-0.14183153212070465,
0.11075759679079056,
-0.025199616327881813,
-0.9597284197807312,
-0.40041741728782654,
1.135166049003601,
-1.0678890943527222,
-0.15423142910003662,
-0.7682965397834778,
-0.09261509776115417,
0.17723731696605682,
0.7415767312049866,
0.922234058380127,
0.5140727162361145,
-0.8491283059120178,
0.3042682707309723,
0.04872189834713936,
-0.03515556454658508,
0.2528504431247711,
0.3883458077907562,
-1.0781878232955933,
-0.8884953856468201,
0.7703325152397156,
0.19143754243850708,
0.3280865252017975,
-0.32415178418159485,
-0.11325486749410629,
-0.07277166098356247,
-0.5321860313415527,
-0.17877918481826782,
0.3602837324142456,
-0.3984958827495575,
-0.31024953722953796,
-0.33359494805336,
-0.5393481850624084,
-0.5077779293060303,
-0.4034975469112396,
-0.4304565191268921,
-0.7624700665473938,
-0.6702020764350891,
-0.2799436151981354,
0.4035068452358246,
1.0282667875289917,
0.21301740407943726,
0.8363342881202698,
-0.30628135800361633,
0.48200663924217224,
0.06942466646432877,
0.5016077160835266,
-0.5510572195053101,
-0.14537501335144043,
0.18813364207744598,
-0.15669669210910797,
-0.7524871230125427,
-0.49861767888069153,
0.6439149975776672,
-0.0354892835021019,
0.6937435269355774,
0.0765194371342659,
-0.338200181722641,
0.6331892609596252,
-0.2693968415260315,
0.9492281079292297,
0.6047138571739197,
-0.905329167842865,
0.7308111786842346,
-0.9727594256401062,
0.5227124691009521,
0.716502845287323,
0.0160794910043478,
-0.4417348802089691,
-0.46503451466560364,
-1.636978030204773,
-1.2520238161087036,
0.572157084941864,
0.42785361409187317,
-0.1851988285779953,
0.29613128304481506,
0.48110929131507874,
-0.008351350203156471,
0.6489831805229187,
-1.0945419073104858,
-0.15331971645355225,
-0.7399483323097229,
0.00851981807500124,
-0.2421061396598816,
-0.22310055792331696,
-0.19759757816791534,
-0.3695865571498871,
0.6863193511962891,
0.11729604005813599,
-0.19936752319335938,
0.5779286026954651,
0.13517306745052338,
-0.32933512330055237,
-0.2249232977628708,
0.7133145332336426,
0.5926005840301514,
-0.6097705960273743,
-0.028807183727622032,
-0.2638280391693115,
0.06865561753511429,
0.09638794511556625,
-0.41979774832725525,
-0.17023754119873047,
0.03336522355675697,
0.0012677846243605018,
0.9033758044242859,
0.5623295903205872,
-0.15143848955631256,
0.8176813721656799,
0.11404124647378922,
-0.5617379546165466,
-1.0599137544631958,
0.38205385208129883,
0.10557064414024353,
0.428764671087265,
0.05825985595583916,
0.8761305809020996,
0.7467293739318848,
-0.3622685670852661,
0.02067466638982296,
0.2391299158334732,
-0.5321111679077148,
-0.7666797041893005,
1.089506983757019,
-0.003940144088119268,
-0.5541006922721863,
0.5040596723556519,
-0.16918708384037018,
-0.17863619327545166,
0.7404176592826843,
0.7148298621177673,
0.6339393258094788,
-0.24223101139068604,
0.7254896759986877,
0.544183075428009,
0.20007860660552979,
-0.3909507095813751,
0.9012168049812317,
0.08894664794206619,
-0.4438568353652954,
-0.006889276206493378,
0.014393945224583149,
-0.5328472256660461,
0.3129439055919647,
-0.6475626826286316,
0.6270459294319153,
-1.1365104913711548,
-0.11244091391563416,
0.10444816201925278,
0.07451587170362473,
-0.68211430311203,
0.4388032853603363,
0.2550390064716339,
1.503151297569275,
-0.992347002029419,
0.8102788925170898,
0.8766053318977356,
-0.20864342153072357,
-0.43339142203330994,
-0.3125831186771393,
0.1253315955400467,
-0.36722931265830994,
0.28672099113464355,
0.242714524269104,
-0.5411055684089661,
0.004087235778570175,
-0.920324981212616,
-1.0183994770050049,
1.2261210680007935,
0.2813013792037964,
-0.27668437361717224,
0.397786945104599,
-0.5905604362487793,
0.7607285380363464,
-0.7530588507652283,
-0.10334203392267227,
0.12836571037769318,
0.3723585903644562,
0.9957582950592041,
-0.19665463268756866,
-0.5538921356201172,
-0.9344210028648376,
0.44876039028167725,
-0.09199943393468857,
-1.011595606803894,
0.6376976370811462,
-0.13432703912258148,
-0.24887432157993317,
0.66990065574646,
0.6242606043815613,
0.22725720703601837,
0.3111148774623871,
0.6103701591491699,
0.7879056930541992,
0.3916284143924713,
0.0364525206387043,
1.4627150297164917,
0.08570102602243423,
0.522415041923523,
0.9998887181282043,
-0.49810791015625,
0.6808061599731445,
0.7380736470222473,
0.1774013191461563,
0.6812756657600403,
0.8628951907157898,
-0.2636735141277313,
0.8622286915779114,
-0.1802801638841629,
-0.5591588020324707,
-0.2228516936302185,
-0.16117821633815765,
-0.2562268078327179,
0.2608199417591095,
0.029850400984287262,
0.06869205832481384,
-0.33685311675071716,
-0.30188098549842834,
-0.5023723840713501,
-0.12812815606594086,
-0.09617134183645248,
0.46087852120399475,
-0.08216249942779541,
-0.34580230712890625,
0.14149153232574463,
-0.23478317260742188,
0.0321025587618351,
0.018989121541380882,
0.05163584649562836,
-0.05109363794326782,
0.058107733726501465,
-0.5107070803642273,
-0.6381517648696899,
0.257378488779068,
-0.4812805652618408,
-0.14992469549179077,
-0.11632740497589111,
0.4394160807132721,
-0.018560362979769707,
-1.4208531379699707,
0.5523297190666199,
0.02676486037671566,
-0.2581072747707367,
0.102772057056427,
-0.8038392066955566,
0.20613141357898712,
-0.05558602139353752,
-0.3775733709335327,
-0.24068577587604523,
0.0376419760286808,
0.20440693199634552,
0.30434128642082214,
0.6306381821632385,
0.26954972743988037,
0.06659328192472458,
0.007366351317614317,
0.7557835578918457,
-0.9575145840644836,
-0.8547496795654297,
-0.31533122062683105,
0.5789827704429626,
-0.9014779925346375,
-0.5156529545783997,
0.9832026958465576,
1.1706604957580566,
0.5126444697380066,
-0.5134407877922058,
0.6775598526000977,
0.17146043479442596,
0.334648460149765,
-0.09874647855758667,
0.12020155787467957,
-1.1236518621444702,
-0.12812304496765137,
-0.5054227709770203,
-1.3855217695236206,
-0.8885018229484558,
0.6868729591369629,
0.02889198623597622,
-0.06385859102010727,
0.2096373438835144,
0.7387534976005554,
-0.3822692632675171,
0.428290992975235,
0.351214736700058,
0.26520827412605286,
0.3274397552013397,
-0.03913678228855133,
1.065480351448059,
-0.6598750948905945,
-0.08685623854398727,
-0.657658576965332,
-0.44882282614707947,
-0.49809107184410095,
-0.9256654381752014,
-0.5995224714279175,
-0.3896532356739044,
-0.41509875655174255,
-0.18673789501190186,
-0.27384376525878906,
0.5529786944389343,
0.9311132431030273,
-0.5630089640617371,
-0.2453785091638565,
-0.532917320728302,
-0.02586693875491619,
0.16299478709697723,
-0.24641330540180206,
-0.36593806743621826,
0.44314074516296387,
-0.5569432973861694,
0.3774169683456421,
0.6346402764320374,
0.576878011226654,
-0.18067359924316406,
0.5812966823577881,
0.17028093338012695,
0.3381401002407074,
0.5598475337028503,
0.1191680058836937,
-0.814349353313446,
-0.44808900356292725,
0.25799164175987244,
-0.05269819125533104,
0.09583451598882675,
0.9077752232551575,
-0.0916910395026207,
-0.13535873591899872,
0.49069347977638245,
-0.4281235635280609,
0.788604199886322,
-0.1361011266708374,
0.30071333050727844,
-0.2690674066543579,
0.7515979409217834,
0.054299820214509964,
0.6077284216880798,
0.26792043447494507,
-0.44943535327911377,
0.5091204643249512,
0.3889809548854828,
-0.545460045337677,
-0.7729403376579285,
0.19924509525299072,
-1.734370231628418,
-0.2608305513858795,
0.7643768191337585,
0.5908635258674622,
-0.6374273896217346,
0.3706492483615875,
-0.540766716003418,
-0.6389917731285095,
-0.23856908082962036,
0.45561930537223816,
0.978797435760498,
-0.19947205483913422,
-0.4417755901813507,
-0.9319598078727722,
-0.036919668316841125,
0.008972997777163982,
-0.6481650471687317,
-0.6775491237640381,
0.8720049858093262,
0.7040264010429382,
0.3274644613265991,
0.5763733386993408,
-0.6768889427185059,
0.26030686497688293,
0.2940562665462494,
0.49709901213645935,
0.4181930124759674,
-0.7070527672767639,
0.1372157335281372,
0.29365622997283936,
0.1814650297164917,
-0.331539511680603
] |
allenai/scibert_scivocab_cased
|
allenai
| 2022-10-03T22:04:46Z | 8,823 | 8 |
transformers
|
[
"transformers",
"pytorch",
"jax",
"bert",
"en",
"endpoints_compatible",
"has_space",
"region:us"
] | null | 2022-03-02T23:29:05Z |
---
language: en
---
# SciBERT
This is the pretrained model presented in [SciBERT: A Pretrained Language Model for Scientific Text](https://www.aclweb.org/anthology/D19-1371/), which is a BERT model trained on scientific text.
The training corpus was papers taken from [Semantic Scholar](https://www.semanticscholar.org). Corpus size is 1.14M papers, 3.1B tokens. We use the full text of the papers in training, not just abstracts.
SciBERT has its own wordpiece vocabulary (scivocab) that's built to best match the training corpus. We trained cased and uncased versions.
Available models include:
* `scibert_scivocab_cased`
* `scibert_scivocab_uncased`
The original repo can be found [here](https://github.com/allenai/scibert).
If using these models, please cite the following paper:
```
@inproceedings{beltagy-etal-2019-scibert,
title = "SciBERT: A Pretrained Language Model for Scientific Text",
author = "Beltagy, Iz and Lo, Kyle and Cohan, Arman",
booktitle = "EMNLP",
year = "2019",
publisher = "Association for Computational Linguistics",
url = "https://www.aclweb.org/anthology/D19-1371"
}
```
|
[
-0.02370210736989975,
-0.23963333666324615,
0.442303866147995,
0.2800910174846649,
-0.48369255661964417,
0.14989227056503296,
-0.23614685237407684,
-0.34799546003341675,
0.39306265115737915,
0.31978026032447815,
-0.40424057841300964,
-0.5679024457931519,
-0.5820777416229248,
0.19266968965530396,
-0.552494466304779,
1.3255864381790161,
0.033011872321367264,
0.6703374981880188,
-0.4800223112106323,
0.08195487409830093,
0.4924589991569519,
-0.568652331829071,
-0.23456797003746033,
-0.3492079973220825,
0.5052005052566528,
-0.0890413299202919,
0.2946966588497162,
0.4699981212615967,
0.6054031252861023,
0.2734997272491455,
-0.24650093913078308,
-0.26635512709617615,
-0.43445464968681335,
-0.22845810651779175,
0.045521363615989685,
-0.2177695482969284,
-0.3950459361076355,
0.2166340947151184,
0.6659929752349854,
0.8688234090805054,
-0.05480826646089554,
0.09925280511379242,
-0.05814138799905777,
0.28265905380249023,
-0.4778333604335785,
0.08904001116752625,
-0.6541763544082642,
0.029236160218715668,
-0.15676835179328918,
-0.01133178360760212,
-0.6652985215187073,
-0.19329841434955597,
0.4620376527309418,
-0.7434921860694885,
0.5202041268348694,
0.146613210439682,
1.0795326232910156,
0.2238042950630188,
-0.07831533253192902,
-0.38827353715896606,
-0.43730273842811584,
0.7527897357940674,
-0.6354405283927917,
0.4243578016757965,
0.24967136979103088,
-0.1591620147228241,
-0.18224167823791504,
-1.3442763090133667,
-0.6333568096160889,
-0.4870090186595917,
-0.0020444965921342373,
0.24156680703163147,
-0.15887396037578583,
0.15278172492980957,
0.19600526988506317,
-0.1783144623041153,
-0.8279706835746765,
-0.051477015018463135,
-0.9920018315315247,
-0.2343728095293045,
0.5209696888923645,
-0.2764180898666382,
-0.12627892196178436,
-0.11648930609226227,
-0.5019853711128235,
-0.3931538462638855,
-0.7083497643470764,
-0.0925975814461708,
0.10239309817552567,
0.09912006556987762,
-0.1139787882566452,
0.5689573287963867,
0.21954552829265594,
0.6123220324516296,
-0.16056963801383972,
0.10928402096033096,
0.553338348865509,
-0.25200849771499634,
-0.19917353987693787,
0.4731003940105438,
0.9372648000717163,
-0.000870204996317625,
0.12432227283716202,
-0.10018634051084518,
0.14057941734790802,
-0.11300922185182571,
0.411919504404068,
-1.1023921966552734,
-0.593069314956665,
0.26176658272743225,
-0.3229001760482788,
-0.25196853280067444,
0.08260750025510788,
-0.21140147745609283,
-0.002411722671240568,
0.07656247913837433,
0.44597703218460083,
-0.6173020005226135,
0.09631722420454025,
0.10930009931325912,
-0.0030506975017488003,
0.04682914540171623,
0.07780241966247559,
-0.7502458095550537,
0.057435858994722366,
0.46313971281051636,
0.9073115587234497,
0.08797208219766617,
-0.40484774112701416,
-0.11779417097568512,
0.052806556224823,
-0.3186820447444916,
0.86029452085495,
-0.37067094445228577,
-0.4967666566371918,
-0.19568480551242828,
0.046393994241952896,
-0.18392790853977203,
0.003202047199010849,
0.7962244749069214,
-0.6001230478286743,
0.4429245591163635,
0.030074484646320343,
-0.6482134461402893,
-0.09210755676031113,
-0.15629301965236664,
-0.33378565311431885,
0.8389487862586975,
0.08419445157051086,
-1.0160858631134033,
0.4985752999782562,
-0.8813856840133667,
-0.23323574662208557,
0.3347150981426239,
-0.06524960696697235,
-0.4662134349346161,
-0.010093409568071365,
-0.1680629551410675,
0.35574933886528015,
0.0022101467475295067,
0.404955118894577,
-0.509137749671936,
-0.23711048066616058,
0.249448761343956,
0.13867110013961792,
0.8528373837471008,
0.4476853907108307,
0.23684723675251007,
0.3589824438095093,
-0.938647449016571,
0.1498202532529831,
-0.03373003378510475,
-0.18426182866096497,
-0.5636680722236633,
0.13865253329277039,
0.16047944128513336,
0.21027426421642303,
0.5843859314918518,
-1.1380945444107056,
0.27344590425491333,
-0.5773230195045471,
0.703554093837738,
0.4838193655014038,
-0.4662016034126282,
0.25774213671684265,
-0.027179745957255363,
0.23893596231937408,
-0.11962449550628662,
-0.02260568179190159,
0.016341937705874443,
-0.19003967940807343,
-0.7488815784454346,
-0.6387007236480713,
0.7949882745742798,
0.319039523601532,
-0.5172311067581177,
0.6046642065048218,
-0.31109723448753357,
-0.9692081212997437,
-0.6946818828582764,
-0.21356776356697083,
0.27438053488731384,
0.5146214365959167,
0.6441608667373657,
-0.3107234537601471,
-0.6172021627426147,
-0.8680480122566223,
0.05803682282567024,
-0.24139340221881866,
-0.09462577104568481,
0.057835277169942856,
0.8657042980194092,
-0.32618147134780884,
0.9752567410469055,
-0.5378491282463074,
0.04719534143805504,
-0.12390095740556717,
0.4550718069076538,
0.3005584180355072,
0.5608935952186584,
0.37351560592651367,
-0.4717223048210144,
-0.3648233115673065,
-0.36078983545303345,
-0.6612053513526917,
-0.14140155911445618,
0.08563917130231857,
-0.04318305477499962,
0.17104674875736237,
0.6588250398635864,
-0.5771199464797974,
0.2650914788246155,
0.5656790733337402,
-0.490083783864975,
0.7053276300430298,
-0.46367695927619934,
-0.2954055070877075,
-1.1524289846420288,
0.22489967942237854,
-0.002694834489375353,
-0.005356664303690195,
-0.6747093200683594,
-0.11619771271944046,
0.3659536838531494,
-0.05420903116464615,
-0.785414457321167,
0.5207735300064087,
-0.3326987326145172,
0.07532989233732224,
-0.21534916758537292,
0.09933040291070938,
0.06891550868749619,
0.21500620245933533,
0.42365241050720215,
0.7107327580451965,
0.6296935677528381,
-0.5198824405670166,
0.047672174870967865,
0.5967020392417908,
-0.3768030107021332,
0.07127620279788971,
-1.2155733108520508,
-0.051815956830978394,
-0.19282197952270508,
0.489539235830307,
-0.5895594954490662,
-0.059470925480127335,
0.016722548753023148,
-0.4623863399028778,
0.24621643126010895,
0.17291225492954254,
-0.3935195207595825,
-0.39433252811431885,
-0.38451290130615234,
0.40251168608665466,
0.4071081876754761,
-0.5424172282218933,
0.393582284450531,
0.1274844855070114,
-0.2725638151168823,
-0.7054970860481262,
-0.5441923141479492,
-0.17418605089187622,
0.037905219942331314,
-0.6594460606575012,
0.6573657393455505,
-0.2565816044807434,
-0.03437691926956177,
0.08889877796173096,
0.010439052246510983,
-0.22719711065292358,
-0.009916678071022034,
0.2904779016971588,
0.5369738936424255,
-0.07259391993284225,
0.482067346572876,
0.15066811442375183,
0.07442409545183182,
0.1617741882801056,
-0.08776445686817169,
0.6991102695465088,
-0.3691471219062805,
-0.13693726062774658,
-0.07909734547138214,
0.12359726428985596,
0.31453007459640503,
-0.1337619423866272,
0.9377545714378357,
0.5927556157112122,
-0.15843024849891663,
0.030733538791537285,
-0.10671519488096237,
-0.46623075008392334,
-0.46646520495414734,
0.661406397819519,
-0.1990940272808075,
-0.9949539303779602,
0.18898965418338776,
0.07044006884098053,
0.05047677084803581,
0.6623326539993286,
0.46979984641075134,
-0.36082586646080017,
0.8195529580116272,
0.706817090511322,
0.12349709868431091,
0.22495141625404358,
-0.3283213675022125,
0.25186771154403687,
-0.8900480270385742,
-0.37069156765937805,
-0.8634241819381714,
0.15705661475658417,
-0.58478844165802,
-0.26502734422683716,
0.29354313015937805,
0.19288934767246246,
-0.5108793377876282,
0.6173757910728455,
-0.6746680736541748,
0.26265233755111694,
0.6609989404678345,
-0.07384078949689865,
0.10721196234226227,
0.031560517847537994,
-0.4480209946632385,
-0.12983201444149017,
-1.0601950883865356,
-0.7907851934432983,
1.1666594743728638,
0.3641040623188019,
0.8830050826072693,
-0.17347027361392975,
0.8269752860069275,
-0.06800396740436554,
0.3676929473876953,
-0.6409701704978943,
0.4708850085735321,
-0.2511277198791504,
-0.6635298132896423,
-0.11855442076921463,
-0.22208744287490845,
-1.2868930101394653,
0.36975979804992676,
-0.41609540581703186,
-0.616651177406311,
0.026013266295194626,
-0.01228740531951189,
-0.3135852813720703,
0.02265010215342045,
-0.6132029294967651,
0.863286018371582,
-0.46248242259025574,
-0.15251141786575317,
-0.36141958832740784,
-0.7393826246261597,
0.1579199731349945,
-0.21990418434143066,
0.1109679564833641,
0.0026689046062529087,
0.1023489460349083,
1.2014561891555786,
-0.41141828894615173,
0.7577422261238098,
0.036194637417793274,
0.2516484558582306,
0.10649574548006058,
-0.18857266008853912,
0.19936016201972961,
0.023284785449504852,
0.0523754321038723,
0.4842691123485565,
0.5706216096878052,
-0.5210914015769958,
0.02485990896821022,
0.6489312052726746,
-1.0703647136688232,
-0.3182983994483948,
-1.1576470136642456,
-0.5261173248291016,
0.047884512692689896,
0.3102273941040039,
0.48946794867515564,
0.3633882403373718,
-0.4315473437309265,
0.5348824262619019,
0.696467399597168,
-0.3352479636669159,
0.5564152598381042,
0.8012716174125671,
-0.0894731655716896,
0.015229867771267891,
0.6469107270240784,
0.02057662047445774,
0.00719405384734273,
0.187655508518219,
0.03066118247807026,
-0.23479068279266357,
-0.5909339785575867,
-0.1290796548128128,
0.49679043889045715,
-0.4800665080547333,
0.03541569411754608,
-0.9216841459274292,
-0.6666394472122192,
-0.6190353035926819,
-0.18476614356040955,
-0.37308940291404724,
-0.5022333860397339,
-0.7302182912826538,
0.057298801839351654,
0.41410088539123535,
0.6222699284553528,
-0.12097076326608658,
0.3670048415660858,
-0.6660152673721313,
-0.26391664147377014,
-0.0627906396985054,
0.06219180300831795,
-0.34296736121177673,
-0.8595446944236755,
-0.4127444922924042,
0.0024205760564655066,
-0.37641358375549316,
-0.5872472524642944,
0.77448970079422,
0.41766485571861267,
0.6027273535728455,
0.2659611999988556,
0.10365520417690277,
0.21517661213874817,
-0.7183570861816406,
0.9103972911834717,
0.3783223628997803,
-0.7833437323570251,
0.4863046407699585,
-0.10769002139568329,
0.3072931468486786,
0.593014121055603,
0.9334540367126465,
-0.3154520094394684,
-0.4029017388820648,
-0.9710676074028015,
-1.209512710571289,
0.4464680552482605,
-0.09340650588274002,
0.18211686611175537,
-0.12674304842948914,
0.049962256103754044,
0.09958929568529129,
0.33590465784072876,
-1.0072656869888306,
0.054444946348667145,
-0.6259300112724304,
-0.49695825576782227,
-0.14641959965229034,
-0.31533291935920715,
-0.38055938482284546,
-0.5160433053970337,
1.0089914798736572,
-0.21432268619537354,
0.5290949940681458,
0.3934171795845032,
-0.34466883540153503,
0.2334645837545395,
0.20280958712100983,
0.9708024263381958,
0.826027512550354,
-0.4966416358947754,
0.03144882246851921,
0.04983317106962204,
-0.8064723014831543,
-0.26453500986099243,
0.4419463276863098,
-0.10923279076814651,
0.06307123601436615,
0.6089802384376526,
0.8454297184944153,
0.15003682672977448,
-0.8056400418281555,
0.5725916028022766,
-0.15234284102916718,
-0.6543985605239868,
-0.7338874340057373,
-0.026591842994093895,
0.10575615614652634,
0.15654152631759644,
0.5348023772239685,
-0.014668627642095089,
-0.02179928682744503,
-0.1156812235713005,
0.19841821491718292,
0.537533700466156,
-0.5884519219398499,
-0.3475123345851898,
0.6596426367759705,
0.06943806260824203,
-0.08207982778549194,
0.5114567875862122,
-0.27046024799346924,
-0.621863603591919,
0.33934614062309265,
0.5510298609733582,
0.5813817381858826,
0.2323857545852661,
0.2779344916343689,
0.5776227116584778,
0.378213107585907,
0.017676685005426407,
0.353075236082077,
0.14773708581924438,
-0.8290861248970032,
-0.44782084226608276,
-0.9782559275627136,
-0.45673009753227234,
0.1874295026063919,
-0.4190356731414795,
0.1590595841407776,
-0.5169134736061096,
-0.020060518756508827,
0.20137400925159454,
0.09193578362464905,
-0.4602537751197815,
0.10699131339788437,
-0.14207707345485687,
1.1774020195007324,
-0.8234267830848694,
1.2782692909240723,
0.6643656492233276,
-0.4257008135318756,
-0.838378369808197,
-0.32011643052101135,
-0.4161592721939087,
-0.6807987689971924,
1.0885146856307983,
-0.061478644609451294,
0.055457450449466705,
0.034723684191703796,
-0.9485858082771301,
-1.0570414066314697,
1.051428198814392,
0.08916598558425903,
-0.6462202668190002,
0.1721549779176712,
-0.32116398215293884,
0.886590301990509,
-0.439851313829422,
0.3734220862388611,
0.13541287183761597,
0.2170490324497223,
0.25019004940986633,
-0.817552387714386,
-0.2867467403411865,
-0.4534393548965454,
-0.18805313110351562,
-0.15168647468090057,
-0.6111271977424622,
1.1247035264968872,
-0.16762885451316833,
0.06606891006231308,
0.2616671621799469,
0.9678264260292053,
0.5464550852775574,
0.20833373069763184,
0.18330229818820953,
0.6303181648254395,
0.8215779662132263,
-0.19507567584514618,
0.8408163785934448,
-0.5949850678443909,
0.5342815518379211,
1.078344702720642,
-0.3964841961860657,
0.9186797142028809,
0.7192772030830383,
-0.21104884147644043,
0.7969334125518799,
0.9216025471687317,
-0.37990403175354004,
0.8229613900184631,
0.41673073172569275,
-0.30043089389801025,
-0.01362934336066246,
-0.05733608826994896,
-0.7445752024650574,
0.4877031147480011,
0.41924455761909485,
-0.6286523342132568,
-0.05530571937561035,
-0.007549191825091839,
0.18957875669002533,
-0.07262815535068512,
-0.14572595059871674,
0.28529563546180725,
0.083110511302948,
-0.4446050822734833,
0.7176122069358826,
-0.04806799069046974,
0.8665233254432678,
-0.8329604864120483,
0.2800578474998474,
0.1908572018146515,
0.09626594930887222,
-0.09746035188436508,
-0.5118669271469116,
0.03989849612116814,
0.05159616842865944,
-0.027001304551959038,
-0.11354885250329971,
0.6022102236747742,
-0.6359677910804749,
-0.7048802375793457,
0.08827349543571472,
0.19483010470867157,
0.5729382634162903,
0.48063066601753235,
-0.7389341592788696,
-0.09883314371109009,
-0.2019617259502411,
-0.3134407103061676,
0.34107911586761475,
-0.08649105578660965,
0.03713620454072952,
0.6896824836730957,
0.638582706451416,
0.21251974999904633,
-0.04917638748884201,
-0.023595741018652916,
0.8271045684814453,
-0.3907163739204407,
-0.39786770939826965,
-0.5104369521141052,
0.24846722185611725,
-0.22764892876148224,
-0.47626540064811707,
0.7347874045372009,
0.6966084837913513,
0.91142338514328,
-0.3680034875869751,
0.6978527903556824,
-0.22761818766593933,
0.5812236070632935,
-0.38422057032585144,
0.9817384481430054,
-0.3822636902332306,
-0.05291778966784477,
-0.22578208148479462,
-0.6870018243789673,
-0.30211272835731506,
1.1313906908035278,
-0.2897399067878723,
0.08168195188045502,
1.024397373199463,
0.8642650246620178,
0.09615574777126312,
0.07212359458208084,
0.10403643548488617,
0.4811224043369293,
0.1532944142818451,
0.32664406299591064,
0.5329572558403015,
-0.21674808859825134,
0.28642767667770386,
-0.08374921977519989,
-0.18528801202774048,
-0.2935081720352173,
-1.1226892471313477,
-0.9808219075202942,
-0.8237913250923157,
-0.31262630224227905,
-0.5172016620635986,
0.12436116486787796,
1.24258553981781,
0.8157986402511597,
-0.8880882263183594,
-0.17788757383823395,
-0.0386040061712265,
-0.4277644753456116,
0.2172936499118805,
-0.10897363722324371,
0.5966746211051941,
-0.1489924192428589,
-0.4323118329048157,
0.5601567029953003,
-0.11414218693971634,
0.2043418437242508,
-0.3428499698638916,
-0.1249365583062172,
-0.5157396197319031,
0.19824017584323883,
0.4973161518573761,
0.4120795428752899,
-0.45098328590393066,
-0.4782826006412506,
0.11539864540100098,
-0.3483348786830902,
-0.13658471405506134,
0.49266499280929565,
-0.7540703415870667,
0.3259068727493286,
0.317604660987854,
0.3011191487312317,
0.9759950041770935,
-0.42625537514686584,
0.33096030354499817,
-0.852003276348114,
0.4857363998889923,
0.3689159154891968,
0.48570680618286133,
0.3865862488746643,
-0.058883048593997955,
0.5642820000648499,
0.27345582842826843,
-0.6721466183662415,
-0.9412127137184143,
-0.04857083782553673,
-1.187256097793579,
-0.5573925375938416,
0.9533741474151611,
-0.2017757147550583,
-0.446736603975296,
0.14743182063102722,
-0.08240318298339844,
0.4293704032897949,
-0.339875191450119,
0.841275691986084,
0.76996910572052,
-0.01892322674393654,
0.022386882454156876,
-0.3584016263484955,
0.4846559762954712,
0.4213723838329315,
-0.6089473962783813,
-0.466155081987381,
0.2678768038749695,
0.29105132818222046,
0.47745153307914734,
0.4026694893836975,
-0.04175494983792305,
0.274750292301178,
-0.13887354731559753,
0.6848313808441162,
-0.1477775126695633,
-0.3566250801086426,
-0.13877883553504944,
0.02673163451254368,
0.07117094099521637,
0.1591983288526535
] |
inu-ai/niji-diffusion-xl-base-1.0
|
inu-ai
| 2023-08-14T12:49:36Z | 8,823 | 10 |
diffusers
|
[
"diffusers",
"text-to-image",
"stable-diffusion",
"safetensors",
"dataset:p1atdev/niji-v5",
"license:openrail++",
"endpoints_compatible",
"has_space",
"diffusers:StableDiffusionXLPipeline",
"region:us"
] |
text-to-image
| 2023-08-01T11:45:39Z |
---
license: openrail++
thumbnail: >-
https://huggingface.co/inu-ai/niji-diffusion-xl-base-1.0/images/thumbnail.png
tags:
- text-to-image
- stable-diffusion
- safetensors
- diffusers
inference: true
widget:
- text: >-
best quality, high quality, absurdres, 1girl
datasets:
- p1atdev/niji-v5
library_name: diffusers
---
# 更新履歴
- 2023年8月14日
さらにnijijourneyの画像1000枚ほどを目で見てアニメやイラスト風で良いもの選んで学習させました。
以下に何をやったか記録しますが、何が効いているのかわかりません。
以下にハイパーパラメータを記載しますが、その後[v11](https://civitai.com/models/120452?modelVersionId=135754)と[sd-webui-supermerger](https://github.com/hako-mikan/sd-webui-supermerger)階層マージ(block_lrに近い絵が良さそうな比率)をしているため一度で仕上がりませんでした。
最後に[blur](https://civitai.com/models/120624)を-0.05ほど、[LECO](https://github.com/p1atdev/LECO)で作った[anime](https://civitai.com/models/128125/anime-leco)を1でLoRAマージして仕上げました。
| ハイパーパラメータ | 値 |
|-----------------------|-------------------------------------|
| GPU | RTX3090 24GB |
| optimizer_type | PagedLion8bit |
| optimizer_args | weight_decay=0.01, betas=.9,.999 |
| block_lr | 0,1e-08,1e-08,1e-08,1e-08,1e-07,1e-07,1e-07,1e-06,1e-06,1e-05,1e-05,1e-05,1e-06,1e-06,1e-07,1e-07,1e-07,1e-08,1e-08,1e-08,1e-08,0 |
| lr_scheduler | cosine |
| lr_warmup_steps | 100 |
| gradient_checkpointing| |
| mixed_precision | bf16 |
| full_bf16 | |
| max_token_length | 225 |
| min_snr_gamma | 5 |
| noise_offset | 0.0357 |
| max_train_epochs | 3 |
| batch_size | 12 |
| enable_bucket | true |
| resolution | [1024,1024] |
- 2023年8月11日
前回のnijijourneyの画像を混ぜて12000枚で学習しました。
オプティマイザはLion(4e-06, cosine, weight_decay=0.015, betas=.9,.999)でした。
- 2023年8月7日
nijijourneyの画像4500枚ぐらいでフルファインチューニングしました。fp16で壊れないVAEに取り替えました。
学習率1e-07が低すぎたようで絵があまり変化しませんでした。次回は学習率を上げようと思います。
- 2023年8月1日
nijijourneyの画像100枚ぐらいでLoRAファインチューニングなどをしました。
# モデルの説明
アニメ調に寄せた「[SDXL(stable-diffusion-xl-base-1.0)](https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0)」モデルです。内容は「[niji-v5](https://huggingface.co/datasets/p1atdev/niji-v5)」データセットでLoRAファインチューニングしてマージしたモデルです。
# 使用例
[niji-diffusion-xl-base-1.0.safetensors](https://huggingface.co/inu-ai/niji-diffusion-xl-base-1.0/resolve/main/niji-diffusion-xl-base-1.0.safetensors)と[stable-diffusion-webui](https://github.com/AUTOMATIC1111/stable-diffusion-webui)で以下のパラメータで画像生成します。
※合計13000枚ぐらい~100枚~しか学習していないのでPromptに複数書くとnijiの絵じゃなくなります。Negative promptに複数書くのは大丈夫っぽいです。
Prompt:
```
masterpiece, best quality, high quality, absurdres, 1girl, flower
```
Negative prompt:
```
worst quality, low quality, medium quality, deleted, lowres, comic, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, jpeg artifacts, signature, watermark, username, blurry
```
PNG info:
```
Steps: 28, Sampler: Euler a, CFG scale: 7, Seed: 1, Size: 1536x1024, Model hash: 791d0c791e, Model: sd_xl_niji_1.0, Clip skip: 2, ENSD: 31337, Token merging ratio: 0.5, Eta: 0.67, Version: v1.5.1
```

Prompt:
```
1girl
```

Prompt:
```
1girl, tokyo
```

Prompt:
```
1girl, steampunk
```

Prompt:
```
1girl, fantasy
```

# モデルの作り方
1. 「[かんたん☆コピー機学習法(きっと初級編)](https://note.com/2vxpswa7/n/n2d04527bf0bc)」を参考に、「[ぼかし(blur)](https://civitai.com/models/120624)」のLoRA DreamBoothをして、そのLoRAモデルをSDXLモデルにマイナスでマージします。
2. 1で作ったモデルに、niji-v5から背景や髪が詳細に描かれている絵などを100枚選びLoRAファインチューニングして、そのLoRAモデルをSDXLモデルにマージします。
# 今後のモデルの改善
LoRAモデルとして配布できるようにしたいです。
というのは、512dim(rank)で学習したらLoRAモデルが3GBのファイルサイズになってしまったため、今回はSDXLモデルにマージしています。
# 感想
うまく調整できず何度もやり直して大変でした。あとで作り方を動画にしたいです。
# 謝辞
モデル、学習データや学習ツールを作成および配布してくださった方々に心から感謝申し上げます。
# ライブラリ
- [sd-scripts](https://github.com/kohya-ss/sd-scripts/tree/sdxl) 4072f723c12822e2fa1b2e076cc1f90b8f4e30c9
- [bitsandbytes](https://github.com/jllllll/bitsandbytes-windows-webui) 0.39.1
- Pytorch 2.0.0+cu117
- xformers 0.0.19
# ライセンス
- [CreativeML Open RAIL++-M License](https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/blob/main/LICENSE.md)
|
[
-0.7257077097892761,
-0.741287887096405,
0.302880197763443,
0.2144879847764969,
-0.41674166917800903,
0.06435608118772507,
0.03629271686077118,
-0.5564136505126953,
0.7363874316215515,
-0.007454450707882643,
-0.7512264251708984,
-0.5810680389404297,
-0.4107396602630615,
0.08402340859174728,
-0.11428937315940857,
0.7102356553077698,
-0.17290961742401123,
0.020604783669114113,
0.011115438304841518,
0.27441415190696716,
-0.5289155840873718,
-0.09457913786172867,
-0.7243629097938538,
-0.2590164840221405,
0.12357523292303085,
0.26615822315216064,
0.6401048302650452,
0.5260571241378784,
0.5404314994812012,
0.27481216192245483,
-0.10176590830087662,
-0.13799338042736053,
-0.288790762424469,
-0.2783266305923462,
0.18573598563671112,
-0.46346527338027954,
-0.5453985929489136,
-0.2256634384393692,
0.7249385118484497,
0.4021701216697693,
0.2692531645298004,
0.08503144234418869,
0.22840125858783722,
0.7819349765777588,
-0.4512022137641907,
0.28617531061172485,
0.1572137475013733,
0.2773035764694214,
-0.1397281289100647,
-0.2601906955242157,
0.05017068609595299,
-0.6179164052009583,
-0.1483277827501297,
-1.0061428546905518,
0.2268243432044983,
-0.11878769844770432,
1.4479625225067139,
-0.015094981528818607,
-0.006351075135171413,
-0.0024010001216083765,
-0.4325670301914215,
0.7293103337287903,
-0.8361439108848572,
0.11368150264024734,
0.26692715287208557,
0.37009498476982117,
-0.16433756053447723,
-0.7786328792572021,
-0.754163384437561,
0.06569424271583557,
-0.11488256603479385,
0.4468017816543579,
-0.19519470632076263,
-0.390901654958725,
0.10387997329235077,
0.27814292907714844,
-0.7237263917922974,
0.05471757799386978,
-0.38632261753082275,
-0.13193170726299286,
0.5650303363800049,
0.2804725468158722,
0.6686078310012817,
-0.305816113948822,
-0.5729472041130066,
-0.2396523356437683,
-0.4367464780807495,
0.148598775267601,
0.35346779227256775,
0.22380320727825165,
-0.6771784424781799,
0.23639975488185883,
-0.046381935477256775,
0.3247826099395752,
0.03536065295338631,
-0.13515080511569977,
0.4741155803203583,
-0.4702981114387512,
-0.3744637668132782,
-0.1404261738061905,
1.185511827468872,
0.699131190776825,
-0.17053692042827606,
0.09626420587301254,
0.12874293327331543,
0.09714330732822418,
-0.31703129410743713,
-0.9777098298072815,
-0.022625552490353584,
0.5497053265571594,
-0.5189820528030396,
-0.454556405544281,
0.1373348832130432,
-1.267438530921936,
0.037792522460222244,
0.03460703790187836,
0.4118598997592926,
-0.702758252620697,
-0.5536540150642395,
0.2153996080160141,
-0.030666660517454147,
0.21859656274318695,
0.507513165473938,
-0.6280309557914734,
0.10698369890451431,
0.42325448989868164,
1.0054259300231934,
-0.18132519721984863,
-0.26466500759124756,
0.24408625066280365,
0.09730219095945358,
-0.3576368987560272,
0.5796359777450562,
-0.20172448456287384,
-0.5967631340026855,
-0.36213746666908264,
0.18223866820335388,
-0.2945588529109955,
-0.282869428396225,
0.5528192520141602,
-0.30603986978530884,
0.2636164426803589,
-0.07487837225198746,
-0.39216533303260803,
-0.2484932392835617,
0.1986057609319687,
-0.4878261089324951,
0.694284975528717,
0.13534575700759888,
-0.9649989008903503,
-0.06472112238407135,
-0.785454511642456,
-0.006330999080091715,
0.11812946200370789,
-0.018283896148204803,
-0.2874212861061096,
-0.4590333104133606,
0.0663319081068039,
0.3810768723487854,
-0.34717920422554016,
0.29450276494026184,
-0.1203518956899643,
-0.41236644983291626,
0.3617796301841736,
-0.3360385298728943,
1.2961913347244263,
0.44979408383369446,
-0.5770015120506287,
-0.046582382172346115,
-0.8456870913505554,
0.13897745311260223,
0.6256968379020691,
-0.20158439874649048,
-0.09774252772331238,
-0.45801234245300293,
0.22735455632209778,
0.219673752784729,
0.6563212871551514,
-0.5400823950767517,
0.4075530171394348,
-0.31929856538772583,
0.596987783908844,
0.9590067267417908,
0.13067534565925598,
0.1881484091281891,
-0.36530283093452454,
0.6690815687179565,
0.14931203424930573,
0.44376587867736816,
-0.23430976271629333,
-0.5400341749191284,
-0.8543683290481567,
-0.0830933228135109,
0.24453392624855042,
0.5388438701629639,
-0.8514891862869263,
0.4854544699192047,
-0.2044919729232788,
-0.819873034954071,
-0.36435091495513916,
-0.23165912926197052,
0.518048107624054,
0.3227182924747467,
0.44603753089904785,
-0.36386045813560486,
-0.5764631628990173,
-0.5808270573616028,
0.04636706784367561,
-0.13327273726463318,
0.21935829520225525,
0.14448198676109314,
0.6554415225982666,
-0.508100688457489,
0.5823068618774414,
-0.8014240860939026,
-0.43794941902160645,
-0.3752860426902771,
-0.07344892621040344,
0.6850897669792175,
0.8040028810501099,
0.6152785420417786,
-0.954675555229187,
-0.7794899940490723,
-0.002001338405534625,
-0.9590746760368347,
0.17039288580417633,
0.025701452046632767,
-0.46214255690574646,
0.2387414276599884,
0.26710984110832214,
-0.5911773443222046,
0.5109183192253113,
0.4796787202358246,
-0.6990587711334229,
0.8401216864585876,
-0.3669986128807068,
0.3878033757209778,
-1.161172866821289,
0.2587141692638397,
0.14506162703037262,
0.021567661315202713,
-0.692198634147644,
0.37732064723968506,
-0.039945073425769806,
0.10433094948530197,
-0.5357609987258911,
0.8070249557495117,
-0.5698627233505249,
0.44154679775238037,
-0.15642708539962769,
0.2922169864177704,
0.010894481092691422,
0.5446661114692688,
-0.21714797616004944,
0.6448869705200195,
0.6953823566436768,
-0.688318133354187,
0.2165108472108841,
0.20523613691329956,
-0.25815728306770325,
0.3974705934524536,
-0.5659804940223694,
0.009712854400277138,
-0.00778995780274272,
0.14046527445316315,
-0.9975326061248779,
-0.27405330538749695,
0.6300565004348755,
-0.7814498543739319,
0.482118159532547,
-0.005580228753387928,
-0.5086380839347839,
-0.6097341179847717,
-0.547027587890625,
0.09020719677209854,
0.41695043444633484,
-0.39594271779060364,
0.4274141788482666,
0.11986517161130905,
0.06768336147069931,
-0.531295895576477,
-0.7840954065322876,
-0.15197522938251495,
-0.14990173280239105,
-0.6565066576004028,
0.4587445557117462,
-0.3375700116157532,
-0.13497452437877655,
-0.003636408830061555,
0.07179498672485352,
-0.12069811671972275,
-0.02651938423514366,
0.21094214916229248,
0.6387957334518433,
-0.19976378977298737,
-0.47306907176971436,
0.07385818660259247,
-0.28490322828292847,
0.09189548343420029,
-0.22773811221122742,
0.8718306422233582,
-0.12691029906272888,
-0.31812429428100586,
-0.9821701049804688,
0.12774686515331268,
0.7369797229766846,
0.15481935441493988,
0.5935882925987244,
0.7782018184661865,
-0.3301267921924591,
0.46496284008026123,
-0.3632298707962036,
-0.09362554550170898,
-0.5270859003067017,
0.2613593339920044,
-0.229282408952713,
-0.5185620784759521,
0.5651646852493286,
0.2860817611217499,
0.12593719363212585,
0.7774553298950195,
0.30825355648994446,
-0.11760159581899643,
1.049619436264038,
0.511814296245575,
-0.06997082382440567,
0.5208102464675903,
-1.1242761611938477,
0.08004211634397507,
-0.9744905233383179,
-0.5229659676551819,
-0.2396385669708252,
-0.5148620009422302,
-0.6057464480400085,
-0.5969292521476746,
0.3276155889034271,
0.186528742313385,
-0.3400108516216278,
0.3343195915222168,
-0.7225541472434998,
0.22018995881080627,
0.39138278365135193,
0.16247105598449707,
0.18666131794452667,
-0.154035285115242,
-0.23020455241203308,
-0.17293624579906464,
-0.44632741808891296,
-0.41134920716285706,
1.0492714643478394,
0.3331162929534912,
0.419718474149704,
0.22035299241542816,
0.6702443361282349,
-0.013040007092058659,
-0.09394118189811707,
-0.25152286887168884,
0.8112046122550964,
-0.012682260014116764,
-0.7533143758773804,
-0.20214758813381195,
-0.23930099606513977,
-1.1653531789779663,
0.4937695562839508,
-0.231223925948143,
-1.036447525024414,
0.5218573212623596,
-0.05958090350031853,
-0.31893011927604675,
0.617780864238739,
-0.6877579092979431,
0.7607940435409546,
-0.5024226903915405,
-0.871846079826355,
0.008030936121940613,
-0.7853808403015137,
0.32862699031829834,
0.10495178401470184,
0.5130919218063354,
-0.26658564805984497,
-0.030846981331706047,
0.9560933113098145,
-0.5947082042694092,
0.605509340763092,
-0.42316144704818726,
0.08864548057317734,
0.32666629552841187,
0.1855243444442749,
0.3875833749771118,
0.13403114676475525,
0.01934998109936714,
0.23983846604824066,
0.22047242522239685,
-0.5240938663482666,
-0.3858642876148224,
1.0287166833877563,
-0.8689025640487671,
-0.5668699145317078,
-0.627374529838562,
-0.36325040459632874,
0.24233081936836243,
0.5823097229003906,
0.6668789386749268,
0.3249068856239319,
0.10902141779661179,
-0.036060988903045654,
0.5793451070785522,
-0.46065667271614075,
0.6882126331329346,
0.24667611718177795,
-0.6023762226104736,
-0.5729129910469055,
1.3107362985610962,
0.3410067856311798,
0.2750440239906311,
0.4510370194911957,
0.32093238830566406,
-0.14795750379562378,
-0.4909290671348572,
-0.5873381495475769,
0.5527347326278687,
-0.4862113893032074,
-0.20078696310520172,
-0.8380535840988159,
-0.15930336713790894,
-0.6148999333381653,
-0.259761244058609,
-0.21457445621490479,
-0.48802095651626587,
-0.6578165888786316,
-0.060212552547454834,
0.3869565427303314,
0.4336816966533661,
-0.1710330694913864,
-0.08405545353889465,
-0.6231085658073425,
0.3319588005542755,
-0.28932178020477295,
0.29559728503227234,
0.40193262696266174,
-0.44713136553764343,
-0.3934025168418884,
0.133414626121521,
-0.5272600054740906,
-0.9482922554016113,
0.9469671845436096,
-0.13956394791603088,
0.5796706080436707,
0.6225569248199463,
-0.22888775169849396,
0.7499318718910217,
0.05741049349308014,
1.0271601676940918,
0.5275139808654785,
-0.6429192423820496,
0.747134268283844,
-0.6527556777000427,
0.4532414376735687,
0.49980685114860535,
0.6794654130935669,
-0.4534105360507965,
-0.3348633944988251,
-0.9337356686592102,
-1.1659386157989502,
0.7706031203269958,
0.1925719827413559,
-0.0014243131736293435,
0.17595922946929932,
0.22559690475463867,
-0.01877320557832718,
0.2068139612674713,
-0.7609952092170715,
-1.0462366342544556,
-0.29690852761268616,
-0.026426559314131737,
-0.014586139470338821,
-0.06320442259311676,
0.11372467875480652,
-0.5855941772460938,
0.9653509855270386,
-0.035054177045822144,
0.6444777250289917,
0.302320271730423,
0.18061812222003937,
-0.08767375349998474,
0.1869136542081833,
0.4995378255844116,
0.4630882441997528,
-0.3366061747074127,
-0.30963465571403503,
0.05891037359833717,
-0.9199995994567871,
0.31391075253486633,
0.0723278746008873,
-0.47750839591026306,
0.13519072532653809,
0.17139798402786255,
0.6866932511329651,
0.25936514139175415,
-0.4576059579849243,
0.5599672198295593,
-0.07610929012298584,
-0.2068086862564087,
-0.41923749446868896,
0.20923089981079102,
0.13352827727794647,
0.23486891388893127,
0.5442281365394592,
-0.07404182851314545,
0.22529157996177673,
-0.5682646632194519,
-0.22303946316242218,
0.2616797685623169,
-0.33706986904144287,
-0.1651105433702469,
0.9915989637374878,
-0.12699395418167114,
-0.12829600274562836,
0.2732863426208496,
-0.29832518100738525,
-0.5688332319259644,
0.909477949142456,
0.6701035499572754,
0.8676432371139526,
-0.15986430644989014,
0.20534314215183258,
1.0285030603408813,
-0.04795977100729942,
0.06123582273721695,
0.4401005804538727,
0.27283141016960144,
-0.3691767454147339,
0.12716111540794373,
-0.6664834022521973,
-0.1739732325077057,
0.2547493278980255,
-0.5910509824752808,
0.4799517095088959,
-0.9178690910339355,
-0.2461918741464615,
-0.1533486545085907,
0.2932271659374237,
-0.4811974763870239,
0.3517216444015503,
-0.06637261807918549,
1.090680718421936,
-0.6816565990447998,
0.7784994840621948,
0.5952836871147156,
-0.7317943572998047,
-0.9139264225959778,
0.0781543105840683,
0.20836971700191498,
-0.43703001737594604,
0.3828277885913849,
0.11723397672176361,
-0.06966084986925125,
0.1514388471841812,
-0.5051696300506592,
-1.0997895002365112,
1.5226142406463623,
0.1720861792564392,
-0.5185524225234985,
-0.0807255357503891,
-0.09102501720190048,
0.7514012455940247,
-0.11982615292072296,
0.4432280659675598,
0.5468209385871887,
0.6618893146514893,
0.03466932103037834,
-0.8089056015014648,
0.26222777366638184,
-0.8928284049034119,
0.01336632389575243,
0.11278020590543747,
-1.2107981443405151,
1.10432767868042,
-0.23317299783229828,
-0.36518824100494385,
0.12326137721538544,
0.7846963405609131,
0.4475209414958954,
0.34175631403923035,
0.09788624942302704,
0.5550163984298706,
0.5687761902809143,
-0.5097569823265076,
1.0457879304885864,
-0.4366278052330017,
0.4312499463558197,
0.5311682820320129,
0.32290971279144287,
0.6596253514289856,
0.4329267740249634,
-0.7615680694580078,
0.8832462430000305,
0.8094077706336975,
-0.20516061782836914,
0.5444977283477783,
-0.1498303860425949,
-0.25342026352882385,
0.14306405186653137,
0.0675022155046463,
-0.7800738215446472,
-0.21004880964756012,
0.22086817026138306,
-0.11257355660200119,
0.15384021401405334,
0.34519901871681213,
0.20232999324798584,
-0.060088519006967545,
-0.3380987048149109,
0.6143958568572998,
0.019169069826602936,
-0.5603823065757751,
0.8247246742248535,
-0.013234722428023815,
1.2092159986495972,
-0.6170913577079773,
0.07605379819869995,
-0.30111363530158997,
0.1337594985961914,
-0.48189157247543335,
-0.9784733653068542,
-0.05079197883605957,
-0.005723523907363415,
-0.12154078483581543,
-0.048746008425951004,
0.46055611968040466,
-0.03230412304401398,
-0.5243748426437378,
0.5409713983535767,
-0.06830599159002304,
0.4503138065338135,
0.4724583029747009,
-0.981192946434021,
0.32561877369880676,
0.3673348128795624,
-0.2320445030927658,
0.5109659433364868,
0.1548003852367401,
0.11141292750835419,
0.7576233148574829,
0.686498761177063,
0.19109225273132324,
0.14382433891296387,
-0.060630567371845245,
0.8782218098640442,
-0.5818960070610046,
-0.7075560688972473,
-0.9217816591262817,
0.6286967396736145,
0.014033150859177113,
-0.2214662879705429,
0.9101575613021851,
0.818954348564148,
0.8425360918045044,
-0.17383085191249847,
1.0239211320877075,
-0.35708868503570557,
0.4543899893760681,
-0.4351271986961365,
0.7824176549911499,
-0.8749995231628418,
0.09909558296203613,
-0.6453936100006104,
-0.6599993109703064,
-0.2247207909822464,
0.7020221948623657,
-0.1851155012845993,
0.2151055783033371,
0.6454212665557861,
0.6320636868476868,
0.18352895975112915,
0.1293727159500122,
0.0798603892326355,
0.2303186058998108,
0.4412325918674469,
0.9225987792015076,
0.48344242572784424,
-0.8590261936187744,
0.4343211352825165,
-0.7699008584022522,
0.0140254907310009,
-0.6160047650337219,
-0.48997974395751953,
-0.6078963279724121,
-0.6096164584159851,
-0.5158090591430664,
-0.5659730434417725,
-0.08966076374053955,
0.8756009936332703,
0.31945058703422546,
-0.8008984923362732,
-0.3387482762336731,
-0.12257173657417297,
0.09896913170814514,
-0.4360622465610504,
-0.3635959327220917,
0.46717309951782227,
0.1474616378545761,
-1.0596964359283447,
0.13292881846427917,
0.17663343250751495,
0.49484938383102417,
-0.36090925335884094,
-0.21623177826404572,
-0.44212350249290466,
-0.15286347270011902,
0.07602976262569427,
0.387694388628006,
-0.4836066663265228,
0.2404484748840332,
0.10236486047506332,
-0.23686081171035767,
0.28707563877105713,
0.32829830050468445,
-0.4734990894794464,
0.42128267884254456,
0.7409994602203369,
-0.11067190766334534,
0.5850962996482849,
-0.2595643997192383,
0.07376299053430557,
-0.07902325689792633,
0.1365317553281784,
0.05042610689997673,
0.5023748278617859,
0.23019462823867798,
-0.6531099081039429,
0.6002572774887085,
0.5362359881401062,
-0.2952154278755188,
-0.9320895671844482,
-0.174065500497818,
-1.0448325872421265,
-0.6690518856048584,
1.076899528503418,
-0.09474487602710724,
-0.5156382322311401,
0.04522126913070679,
-0.41841191053390503,
0.4358932375907898,
-0.2130265235900879,
0.45465007424354553,
0.6080896854400635,
-0.17844387888908386,
-0.06784625351428986,
-0.8354636430740356,
0.11629647016525269,
0.12383154779672623,
-0.930816650390625,
-0.20818457007408142,
0.263754665851593,
0.4650442898273468,
0.5956950187683105,
0.862576961517334,
-0.33548057079315186,
0.37836629152297974,
-0.066464863717556,
0.1559835821390152,
-0.12968535721302032,
-0.06869340687990189,
-0.29656195640563965,
0.07719050347805023,
-0.28652361035346985,
-0.2589598000049591
] |
facebook/esm2_t30_150M_UR50D
|
facebook
| 2023-03-21T15:05:03Z | 8,818 | 1 |
transformers
|
[
"transformers",
"pytorch",
"tf",
"safetensors",
"esm",
"fill-mask",
"license:mit",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] |
fill-mask
| 2022-09-27T14:31:08Z |
---
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
] |
KoboldAI/LLAMA2-13B-Holodeck-1
|
KoboldAI
| 2023-07-28T21:08:16Z | 8,807 | 19 |
transformers
|
[
"transformers",
"pytorch",
"safetensors",
"llama",
"text-generation",
"en",
"license:other",
"endpoints_compatible",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-07-28T09:33:08Z |
---
license: other
language: en
commercial: no
inference: true
---
# LLAMA2 13B - Holodeck
## Model Description
LLAMA2 13B-Holodeck is a finetune created using Meta's llama 2 model.
## Training data
The training data contains around 3000 ebooks in various genres.
Most parts of the dataset have been prepended using the following text: `[Genre: <genre1>, <genre2>]`
### How to use
You can use this model directly with a pipeline for text generation. This example generates a different sequence each time it's run:
```py
>>> from transformers import pipeline
>>> generator = pipeline('text-generation', model='KoboldAI/LLAMA2-13B-Holodeck-1')
>>> generator("Welcome Captain Janeway, I apologize for the delay.", do_sample=True, min_length=50)
[{'generated_text': 'Welcome Captain Janeway, I apologize for the delay."\nIt's all right," Janeway said. "I'm certain that you're doing your best to keep me informed of what\'s going on."'}]
```
### Limitations and Biases
Based on known problems with NLP technology, potential relevant factors include bias (gender, profession, race and religion).
### License
Llama 2 is licensed under the LLAMA 2 Community License, Copyright (c) Meta Platforms, Inc. All Rights Reserved.
**Extra clause:**
You shall use the Materials and Products solely for research purposes or personal use and not for any commercial purpose. Nothing in the Community License shall be construed as granting you a license to use the Materials or Products for any other purpose.
### BibTeX entry and citation info
https://huggingface.co/meta-llama/Llama-2-13b-hf
|
[
-0.1491338461637497,
-0.5665662884712219,
0.2633068561553955,
0.4593418836593628,
-0.6693536043167114,
-0.05568346381187439,
0.22029930353164673,
-0.17567427456378937,
0.35645806789398193,
0.9482775330543518,
-0.8173759579658508,
-0.6549563407897949,
-0.7499428391456604,
0.17938010394573212,
-0.43383243680000305,
1.4408586025238037,
0.20666244626045227,
-0.39201971888542175,
-0.1254577487707138,
0.02738085947930813,
-0.5808818340301514,
-0.3865625858306885,
-0.4055965840816498,
-0.5420383214950562,
0.5230141878128052,
0.5264107584953308,
0.6182588934898376,
0.8498201370239258,
0.3526637554168701,
0.17239342629909515,
-0.28673362731933594,
0.14144103229045868,
-0.5549263954162598,
0.14767266809940338,
-0.09907998144626617,
-0.4902433156967163,
-0.5759890675544739,
-0.27385178208351135,
0.5294756293296814,
0.2790883779525757,
-0.18769508600234985,
0.7396701574325562,
0.23651352524757385,
0.4095959961414337,
-0.41085681319236755,
0.2645716667175293,
-0.6893340349197388,
0.09375821799039841,
-0.409174382686615,
-0.19168934226036072,
-0.35676294565200806,
-0.16578073799610138,
0.14899171888828278,
-0.6907105445861816,
0.12186270207166672,
0.13859155774116516,
0.9815403819084167,
0.5752959847450256,
-0.7682914733886719,
-0.4314817786216736,
-0.4715307950973511,
0.6558166146278381,
-0.9756959080696106,
-0.20682308077812195,
0.5276901721954346,
0.10382961481809616,
-0.125726118683815,
-1.0631862878799438,
-0.713821291923523,
0.10734439641237259,
-0.02541756071150303,
0.19730310142040253,
-0.18080152571201324,
-0.2125227302312851,
0.3605102300643921,
0.3040013313293457,
-0.5957846641540527,
0.20467129349708557,
-0.5717542767524719,
-0.2401338368654251,
0.7742733359336853,
0.37190717458724976,
0.05025869235396385,
-0.7191320061683655,
-0.4655189514160156,
-0.4131677448749542,
-0.6475691199302673,
0.07691348344087601,
0.8356435298919678,
0.02170061692595482,
-0.4029371738433838,
1.0679038763046265,
-0.021314099431037903,
0.3627500534057617,
0.2983035147190094,
-0.466279000043869,
0.5387501120567322,
-0.023159122094511986,
-0.11456839740276337,
0.15291407704353333,
0.8959170579910278,
0.8026209473609924,
0.06361597031354904,
0.2107517272233963,
-0.0241710152477026,
-0.07976527512073517,
0.1693994551897049,
-0.7008836269378662,
-0.07965943962335587,
0.38034960627555847,
-0.6250762343406677,
-0.6459727883338928,
-0.09292548149824142,
-1.0713005065917969,
-0.5555208921432495,
-0.17069628834724426,
0.3571372926235199,
-0.11067970097064972,
-0.21743513643741608,
-0.0031263818964362144,
-0.27396339178085327,
0.35286781191825867,
-0.1755109578371048,
-1.0134903192520142,
0.09626568853855133,
0.46010512113571167,
0.8210088610649109,
0.00923372432589531,
-0.34906861186027527,
-0.46649169921875,
0.39000624418258667,
0.0012195413000881672,
0.903886616230011,
-0.11819916218519211,
-0.4799419045448303,
0.2169284224510193,
0.2327406108379364,
0.32203832268714905,
-0.5418409705162048,
0.39173513650894165,
-0.4383780062198639,
0.22204533219337463,
0.10288350284099579,
-0.36145228147506714,
-0.24499072134494781,
0.17918691039085388,
-0.7884072065353394,
1.3168315887451172,
0.16425319015979767,
-0.9259722828865051,
0.10370740294456482,
-0.5935730338096619,
-0.4060802459716797,
-0.1215996965765953,
0.384035587310791,
-0.6363602876663208,
-0.26663824915885925,
-0.041896335780620575,
0.3646474778652191,
-0.24511775374412537,
0.6877109408378601,
-0.0187845379114151,
-0.3757212162017822,
0.13042572140693665,
-0.2973240315914154,
0.9281499981880188,
0.24299198389053345,
-0.5412104725837708,
-0.04564417898654938,
-1.0794237852096558,
-0.3069858253002167,
0.16505774855613708,
-0.7142798900604248,
-0.054021745920181274,
0.14308854937553406,
0.4157412648200989,
0.002624738495796919,
0.4787673354148865,
-0.3738701343536377,
0.5519095063209534,
-0.5896356701850891,
0.5199115872383118,
0.6824486255645752,
0.18329507112503052,
0.4086730480194092,
-0.45535576343536377,
0.4155053198337555,
-0.09251482039690018,
-0.01385327149182558,
-0.18064440786838531,
-0.8111919164657593,
-0.9268984794616699,
-0.012784821912646294,
0.38469409942626953,
0.9220226407051086,
-0.6816128492355347,
0.7359198331832886,
-0.1489177644252777,
-0.8616031408309937,
-0.5734754800796509,
0.16217206418514252,
0.2745415270328522,
0.28592658042907715,
0.5449814200401306,
-0.32829177379608154,
-0.8700090050697327,
-0.7445880770683289,
-0.08384764194488525,
-0.1328764110803604,
-0.24223046004772186,
0.27465593814849854,
0.6500579118728638,
-0.8488813042640686,
0.8415547013282776,
-0.5508278608322144,
-0.4077862501144409,
-0.38908278942108154,
0.3330709636211395,
0.6390418410301208,
0.35636892914772034,
0.4783291518688202,
-0.4312984347343445,
-0.5003259778022766,
-0.2643292546272278,
-0.7023264169692993,
-0.42272019386291504,
-0.3567224442958832,
-0.4604912996292114,
-0.03326452523469925,
0.1549425721168518,
-0.6304894089698792,
0.6004531979560852,
0.6762808561325073,
-0.5309640169143677,
0.48286381363868713,
-0.019716033712029457,
-0.3332620859146118,
-1.4500499963760376,
0.06260012835264206,
-0.3798627555370331,
0.12848560512065887,
-0.4409622848033905,
-0.09053006023168564,
-0.42042332887649536,
0.08265764266252518,
-0.3998899459838867,
0.7609091997146606,
-0.018788393586874008,
-0.008547244593501091,
-0.4164445102214813,
0.07816623896360397,
0.08016587048768997,
0.5453985929489136,
0.04382779449224472,
0.34076860547065735,
0.41523855924606323,
-0.8090460896492004,
0.44831156730651855,
0.903803288936615,
-0.48333945870399475,
0.29973605275154114,
-0.7649252414703369,
0.252280056476593,
-0.05716227740049362,
0.4489755928516388,
-0.9923028349876404,
-0.5424341559410095,
0.621673047542572,
-0.24744020402431488,
0.07472480088472366,
-0.09431987255811691,
-0.6193772554397583,
-0.40103352069854736,
-0.13429516553878784,
0.3447527587413788,
0.6376091241836548,
-0.5902076959609985,
0.6970452070236206,
0.2596317529678345,
-0.18503326177597046,
-0.8160215616226196,
-0.9152650833129883,
-0.08017142117023468,
-0.4392504096031189,
-0.42068490386009216,
0.5790884494781494,
-0.16075089573860168,
-0.0929238498210907,
-0.39935243129730225,
0.1256924420595169,
-0.08784141391515732,
-0.02029191330075264,
0.4627005159854889,
0.139504075050354,
0.06586767733097076,
-0.037365593016147614,
0.5407653450965881,
-0.18535493314266205,
0.11484415829181671,
-0.09546861052513123,
0.8440463542938232,
0.20186665654182434,
-0.08325976878404617,
-0.5404099822044373,
0.19217553734779358,
0.2533244490623474,
0.007017688360065222,
0.7710679769515991,
0.8786920309066772,
-0.18513675034046173,
0.12177444249391556,
-0.4001833498477936,
-0.0284549742937088,
-0.5015914440155029,
0.3409331440925598,
0.04219250753521919,
-0.6275642514228821,
0.4674514830112457,
-0.023150134831666946,
0.39617717266082764,
0.8400949239730835,
0.8054530620574951,
-0.27666032314300537,
0.5479860305786133,
0.47014978528022766,
0.22626249492168427,
0.3543045222759247,
-0.5234900116920471,
-0.056949432939291,
-0.90653395652771,
-0.5690507292747498,
-0.42941340804100037,
-0.6583945155143738,
-0.7291670441627502,
-0.21885694563388824,
0.10101240873336792,
0.08506719022989273,
-0.7587552070617676,
0.6831997632980347,
-0.5926810503005981,
0.24397960305213928,
0.9347705841064453,
0.18114469945430756,
0.3770052492618561,
0.13911375403404236,
-0.13739152252674103,
0.12924383580684662,
-0.5121920108795166,
-0.9968927502632141,
1.4342106580734253,
0.391838014125824,
0.6848215460777283,
0.180799663066864,
0.9060081839561462,
0.41051214933395386,
0.3450164794921875,
-0.6041390895843506,
0.39722925424575806,
-0.07835780829191208,
-1.0299686193466187,
-0.191804438829422,
0.09136791527271271,
-1.1125911474227905,
-0.04713645204901695,
-0.4301459491252899,
-0.7530296444892883,
0.21345765888690948,
0.21261213719844818,
-0.2141895592212677,
0.39538559317588806,
-0.5367823839187622,
0.6781641840934753,
-0.24568141996860504,
-0.19298121333122253,
0.02668105624616146,
-0.8817617893218994,
0.4013518989086151,
-0.19846941530704498,
0.22483302652835846,
0.0023439577780663967,
-0.04510630667209625,
1.0245901346206665,
-0.2474421262741089,
1.3033392429351807,
-0.02932630106806755,
-0.29579973220825195,
0.8259119391441345,
0.08618927001953125,
0.4673028290271759,
0.26524126529693604,
-0.152042955160141,
0.4596397578716278,
0.16782009601593018,
-0.18757382035255432,
-0.0401809997856617,
0.38506269454956055,
-1.1436060667037964,
-0.5300427079200745,
-0.5512363910675049,
-0.4978388845920563,
0.2403559386730194,
0.19251126050949097,
0.7804796695709229,
0.21841272711753845,
0.0971771627664566,
0.3141607344150543,
0.24000966548919678,
-0.5129532814025879,
0.5272700190544128,
0.16976144909858704,
-0.3198670446872711,
-0.7922424674034119,
0.6901412010192871,
0.0455622635781765,
0.02491225302219391,
0.3812534809112549,
0.054164085537195206,
-0.4412657916545868,
-0.15359041094779968,
-0.30482980608940125,
0.3099309504032135,
-0.6849898099899292,
-0.4570785462856293,
-0.569918692111969,
-0.3356967866420746,
-0.2676694989204407,
0.07986047118902206,
-0.019095372408628464,
-0.4422364830970764,
-0.7907488942146301,
-0.2202613353729248,
0.5852800607681274,
0.7988814115524292,
-0.2200029045343399,
1.143898844718933,
-0.8004384636878967,
0.46493881940841675,
0.3756452798843384,
0.1116805449128151,
0.09428506344556808,
-0.9822355508804321,
-0.17515821754932404,
0.11081457138061523,
-0.951614499092102,
-0.9102787971496582,
0.6255267262458801,
0.19488146901130676,
0.4320477247238159,
0.4127449691295624,
0.06338024139404297,
0.43902504444122314,
-0.6314718723297119,
0.9974324703216553,
0.2303447425365448,
-0.8951572775840759,
0.6245362162590027,
-0.4692632853984833,
0.22838911414146423,
0.17508980631828308,
0.3791588842868805,
-0.5096583366394043,
-0.16807880997657776,
-0.9054763913154602,
-1.0224283933639526,
0.5867084860801697,
0.4243423640727997,
0.4822203516960144,
-0.06386325508356094,
0.42943599820137024,
0.42203620076179504,
0.4042220413684845,
-1.4128259420394897,
-0.4923878014087677,
-0.633210301399231,
-0.40523338317871094,
-0.07810936123132706,
-0.5972147583961487,
-0.07910197228193283,
-0.11679625511169434,
0.7030637264251709,
-0.1220729798078537,
0.5545988082885742,
0.007068159990012646,
-0.07769563049077988,
-0.024256078526377678,
0.1683712750673294,
0.45090436935424805,
0.25620391964912415,
-0.3343715965747833,
-0.058037348091602325,
0.2991185188293457,
-0.7908946871757507,
0.1970406025648117,
-0.03281019628047943,
-0.26911085844039917,
0.08940786123275757,
0.6567585468292236,
0.9952365756034851,
0.1507737934589386,
-0.6527084708213806,
0.22229944169521332,
0.3507768511772156,
-0.5534536242485046,
-0.48625892400741577,
0.08795911818742752,
0.23024329543113708,
0.5578489303588867,
0.32153305411338806,
0.07792896777391434,
0.12043885141611099,
-0.42128875851631165,
0.019440701231360435,
0.005172145552933216,
0.019852010533213615,
-0.16288846731185913,
0.9834412932395935,
0.19053399562835693,
-0.6415290236473083,
0.7661550045013428,
-0.0023578531108796597,
-0.21505606174468994,
0.7965257167816162,
0.8396756649017334,
0.6821482181549072,
0.08390641212463379,
0.33838585019111633,
0.6704540252685547,
0.2661515176296234,
0.03847045823931694,
0.29390060901641846,
0.09475675225257874,
-0.648720383644104,
-0.32949191331863403,
-0.8476858139038086,
-0.4277093708515167,
0.2541860044002533,
-0.7769178748130798,
0.5406626462936401,
-0.4819432497024536,
-0.5026094913482666,
-0.4229949414730072,
-0.07389003783464432,
-0.6892616748809814,
0.09389492124319077,
0.3108939230442047,
0.8771901726722717,
-0.7378604412078857,
0.6158788204193115,
0.517979621887207,
-0.4211375117301941,
-0.7475367784500122,
-0.01785261370241642,
-0.09287914633750916,
-0.8221228122711182,
0.5580449104309082,
0.31839048862457275,
0.3441412150859833,
0.29199087619781494,
-0.8756542801856995,
-1.086673617362976,
1.605339527130127,
0.1634717732667923,
-0.7155515551567078,
-0.14804664254188538,
0.2886190712451935,
0.5439249277114868,
-0.49736684560775757,
0.24833844602108002,
0.572044312953949,
0.6382513642311096,
0.04268043860793114,
-0.6956085562705994,
-0.157758891582489,
-0.15736813843250275,
-0.009038236923515797,
-0.34841448068618774,
-0.7660306692123413,
0.6792625188827515,
-0.1344350278377533,
-0.020160751417279243,
0.6635618805885315,
0.6932262778282166,
0.7522197961807251,
0.6001027822494507,
0.43206965923309326,
0.4795597195625305,
0.8175101280212402,
-0.166457861661911,
0.9264292120933533,
-0.11561048775911331,
0.6191070675849915,
1.0400792360305786,
-0.19365549087524414,
0.9271976947784424,
0.48290008306503296,
-0.2153082638978958,
1.1590300798416138,
0.9787328243255615,
-0.4481574296951294,
0.8401528000831604,
0.1915847808122635,
0.0977223590016365,
-0.054884493350982666,
-0.11951646208763123,
-0.474337637424469,
0.464755654335022,
0.2921287417411804,
-0.5069014430046082,
0.0880906879901886,
-0.03942641615867615,
-0.004663802217692137,
-0.28321221470832825,
-0.17516349256038666,
0.6885607242584229,
0.11610856652259827,
-0.4866386651992798,
0.5594635605812073,
0.04005853086709976,
0.8017011880874634,
-0.5759915113449097,
-0.05357792600989342,
-0.19853557646274567,
-0.01166266854852438,
-0.30860722064971924,
-0.7611563205718994,
0.16156885027885437,
0.26709800958633423,
-0.3324977159500122,
-0.08284063637256622,
0.4503512978553772,
-0.32602858543395996,
-0.5330963134765625,
0.16525772213935852,
0.24410906434059143,
0.3907868266105652,
0.33547431230545044,
-0.547378420829773,
0.008041495457291603,
0.2542400360107422,
-0.31062155961990356,
0.12358815968036652,
0.31305059790611267,
0.18361493945121765,
0.6658364534378052,
0.6320408582687378,
-0.4010021686553955,
0.10769610106945038,
0.01346388179808855,
0.7640140056610107,
-0.5720329284667969,
-0.42662739753723145,
-0.7672356367111206,
1.0235567092895508,
0.04821184650063515,
-0.6745089292526245,
0.44666722416877747,
0.49904611706733704,
0.583345353603363,
-0.539283812046051,
0.6957637667655945,
-0.22122518718242645,
0.4030621349811554,
-0.6080811619758606,
0.7862733006477356,
-0.523485004901886,
0.21137046813964844,
-0.34431713819503784,
-1.3202122449874878,
-0.10928792506456375,
0.8082788586616516,
0.06940055638551712,
-0.18267646431922913,
0.6704475283622742,
0.7073431611061096,
0.20386676490306854,
-0.15633489191532135,
-0.16239048540592194,
0.3442808985710144,
0.1598542481660843,
0.3917867839336395,
0.7779753804206848,
-0.8363925218582153,
0.8310828804969788,
-0.30924832820892334,
-0.035167545080184937,
-0.2834886312484741,
-1.1187292337417603,
-1.0964914560317993,
-0.5067869424819946,
-0.31746625900268555,
-0.5757771134376526,
-0.38232704997062683,
0.7632784247398376,
0.3693743050098419,
-0.7348698377609253,
-0.43358081579208374,
0.031347040086984634,
0.04892952740192413,
-0.13905243575572968,
-0.21712765097618103,
0.363998144865036,
0.23765882849693298,
-0.7349590063095093,
0.1622307300567627,
-0.14469340443611145,
0.3568668067455292,
-0.18702028691768646,
-0.2424781620502472,
-0.3986675441265106,
-0.006627235095947981,
0.5188241600990295,
0.0736418291926384,
-0.8420237302780151,
-0.11282027512788773,
0.018615487962961197,
0.037827447056770325,
-0.07017015665769577,
0.25088027119636536,
-0.6848579049110413,
0.10849417746067047,
0.2620232403278351,
0.3265092074871063,
0.7119262218475342,
-0.07669482380151749,
0.3477024734020233,
-0.8039182424545288,
0.27200454473495483,
-0.1339550018310547,
0.3202361762523651,
0.23906290531158447,
-0.5067628026008606,
0.7202678322792053,
0.34977516531944275,
-0.7140052318572998,
-0.7364463210105896,
-0.04336373507976532,
-1.1681033372879028,
0.008748090825974941,
1.4280521869659424,
0.26766255497932434,
-0.08866468816995621,
0.0375412255525589,
-0.7308717966079712,
0.6101594567298889,
-0.2449350357055664,
0.7406648993492126,
0.7203381061553955,
0.10309482365846634,
0.11349616944789886,
-0.472292423248291,
0.18565356731414795,
0.0008055073558352888,
-0.657568097114563,
-0.2615753710269928,
0.2252466380596161,
0.4035992920398712,
0.3280075490474701,
0.38957706093788147,
0.24485783278942108,
0.17503081262111664,
0.08877681195735931,
0.3016641438007355,
0.03473569080233574,
-0.2644011974334717,
-0.01670270599424839,
-0.04311145097017288,
-0.2405058592557907,
0.022722065448760986
] |
castorini/monot5-base-msmarco
|
castorini
| 2021-11-24T17:59:19Z | 8,799 | 4 |
transformers
|
[
"transformers",
"pytorch",
"jax",
"t5",
"text2text-generation",
"autotrain_compatible",
"endpoints_compatible",
"text-generation-inference",
"region:us"
] |
text2text-generation
| 2022-03-02T23:29:05Z |
This model is a T5-base reranker fine-tuned on the MS MARCO passage dataset for 100k steps (or 10 epochs).
For better zero-shot performance (i.e., inference on other datasets), we recommend using `castorini/monot5-base-msmarco-10k`.
For more details on how to use it, check the following links:
- [A simple reranking example](https://github.com/castorini/pygaggle#a-simple-reranking-example)
- [Rerank MS MARCO passages](https://github.com/castorini/pygaggle/blob/master/docs/experiments-msmarco-passage-subset.md)
- [Rerank Robust04 documents](https://github.com/castorini/pygaggle/blob/master/docs/experiments-robust04-monot5-gpu.md)
Paper describing the model: [Document Ranking with a Pretrained Sequence-to-Sequence Model](https://www.aclweb.org/anthology/2020.findings-emnlp.63/)
|
[
-0.10499599575996399,
-0.6234962940216064,
0.48112860321998596,
0.03255424275994301,
-0.40530845522880554,
-0.07934886962175369,
-0.0004092757299076766,
-0.14720331132411957,
0.37843427062034607,
0.45371130108833313,
-0.5614807605743408,
-0.9007954597473145,
-0.6216701865196228,
0.13296006619930267,
-0.3146378695964813,
1.0684425830841064,
0.25693103671073914,
0.2040960043668747,
0.17654544115066528,
0.03218519315123558,
-0.2568609118461609,
-0.033373117446899414,
-0.7488383650779724,
-0.3240671157836914,
1.066904902458191,
0.7713497877120972,
0.5650691986083984,
0.7792847156524658,
0.4347325563430786,
0.23852600157260895,
-0.2600611448287964,
-0.34446030855178833,
-0.7628447413444519,
0.25852882862091064,
-0.19156338274478912,
-0.5125479698181152,
-0.7781610488891602,
0.11008822172880173,
0.8057936429977417,
0.5953218936920166,
-0.0861131027340889,
0.38439124822616577,
-0.19955815374851227,
0.37594521045684814,
-0.663407027721405,
-0.004608319606631994,
-0.4350024461746216,
0.11776328831911087,
-0.5546708703041077,
-0.1830340027809143,
-0.8803166747093201,
-0.24993155896663666,
0.18635490536689758,
-0.6948873400688171,
0.5430867671966553,
-0.049339186400175095,
1.1651265621185303,
0.0955059826374054,
-0.5347492098808289,
0.1578618884086609,
-0.2527347505092621,
0.7709549069404602,
-0.7686337232589722,
0.2566410005092621,
0.1994941234588623,
0.6312316060066223,
0.06318538635969162,
-1.01308012008667,
-0.22775617241859436,
-0.11933454126119614,
0.3784273564815521,
0.016451774165034294,
0.22968623042106628,
0.09490437060594559,
0.44695016741752625,
0.48888853192329407,
-0.9056198000907898,
-0.3011746406555176,
-0.7176006436347961,
-0.04634490981698036,
0.7482947707176208,
0.2408616840839386,
-0.04315636307001114,
-0.13352246582508087,
-0.38525986671447754,
-0.2400365024805069,
-0.5987462401390076,
0.03946566954255104,
0.3534356951713562,
0.22528764605522156,
0.1943645030260086,
0.4257395565509796,
-0.4686671793460846,
1.066672444343567,
0.17342236638069153,
-0.08858845382928848,
0.5739387273788452,
-0.2978079319000244,
-0.4262503385543823,
-0.027876487001776695,
0.6248630285263062,
0.11595933139324188,
0.24926809966564178,
-0.17586852610111237,
-0.13120447099208832,
-0.25033509731292725,
0.726911187171936,
-1.0489418506622314,
-0.33901917934417725,
0.16288496553897858,
-0.5545809864997864,
-0.6676917672157288,
0.2459917664527893,
-0.6319077014923096,
0.15613703429698944,
-0.06033104285597801,
0.9862339496612549,
-0.4756031632423401,
-0.02584194205701351,
0.03526617959141731,
-0.27092552185058594,
0.4205678403377533,
0.23231209814548492,
-0.7137722969055176,
-0.13114061951637268,
0.5160993337631226,
1.0610612630844116,
0.09942027926445007,
-0.6038593053817749,
-0.2838534712791443,
0.18009734153747559,
-0.48923996090888977,
0.7176269888877869,
-0.5290998220443726,
-0.5305287837982178,
-0.14358402788639069,
0.38718360662460327,
-0.3440935015678406,
-0.1470615267753601,
0.9566336274147034,
-0.6256221532821655,
0.3664967715740204,
-0.13857011497020721,
-0.6204903721809387,
-0.3941443860530853,
0.32768043875694275,
-0.6036168336868286,
0.7532269954681396,
0.03689970076084137,
-0.6211041212081909,
0.5203168988227844,
-0.8333460092544556,
-0.33324751257896423,
0.02610497549176216,
0.39102521538734436,
-0.6545237898826599,
0.041640520095825195,
-0.12382013350725174,
0.1995255947113037,
0.07571382820606232,
0.16761010885238647,
-0.7136948108673096,
-0.6718285083770752,
-0.3410714864730835,
-0.40888580679893494,
0.9492278695106506,
0.6020761132240295,
-0.25143158435821533,
0.21696433424949646,
-0.7496390342712402,
0.3465573787689209,
0.08328396826982498,
-0.442456990480423,
-0.15690936148166656,
-0.28952255845069885,
-0.0704907476902008,
0.1472947597503662,
0.42323851585388184,
-0.712253212928772,
0.694508969783783,
-0.17644637823104858,
0.43224334716796875,
0.4972791075706482,
0.2543121576309204,
0.3773641884326935,
-0.48396536707878113,
0.5723868012428284,
0.11042283475399017,
0.5378109216690063,
-0.4625730514526367,
-0.744382917881012,
-0.8586706519126892,
-0.15095645189285278,
0.772612988948822,
0.43370717763900757,
-0.5483323931694031,
0.23218406736850739,
-0.47328054904937744,
-0.7698341608047485,
-0.7160648703575134,
-0.1457711160182953,
0.350765198469162,
0.46723854541778564,
0.44584140181541443,
-0.24375471472740173,
-0.3571909964084625,
-1.080026626586914,
-0.1684393584728241,
0.2102094143629074,
0.0004478684568312019,
-0.0430726520717144,
0.550383985042572,
-0.06316883862018585,
0.5970573425292969,
-0.5778104662895203,
-0.25744661688804626,
-0.12029432505369186,
0.34947699308395386,
0.6055691838264465,
0.497494637966156,
0.4532619118690491,
-0.5531185865402222,
-0.5300604701042175,
-0.5089041590690613,
-0.7767350673675537,
0.006743170320987701,
0.15231995284557343,
-0.4224865436553955,
0.02860436774790287,
0.4084160327911377,
-0.31242284178733826,
0.6139593720436096,
0.42423346638679504,
-0.5635236501693726,
0.13138945400714874,
-0.34525802731513977,
0.4478883743286133,
-1.4979281425476074,
0.3573255240917206,
-0.08253667503595352,
-0.41506388783454895,
-0.7705211639404297,
0.3131614625453949,
0.2648864984512329,
-0.3912293612957001,
-0.45034345984458923,
0.21825121343135834,
-0.6013740301132202,
0.05568840354681015,
-0.2199901044368744,
-0.1796802282333374,
-0.10154026001691818,
0.30859842896461487,
0.15648402273654938,
0.5575563311576843,
0.6067936420440674,
-0.4664441645145416,
-0.09777536243200302,
0.25674906373023987,
-0.34277859330177307,
0.3879340589046478,
-0.880583643913269,
0.1824675351381302,
0.12606291472911835,
0.26972147822380066,
-1.1487215757369995,
-0.0034604433458298445,
-0.03681298345327377,
-0.7741518020629883,
0.47423866391181946,
-0.6046995520591736,
-0.2574152648448944,
-0.23527604341506958,
-0.6120271682739258,
0.686444878578186,
0.10811013728380203,
-0.36226946115493774,
0.43070852756500244,
0.2298288345336914,
-0.15356791019439697,
-0.8277989029884338,
-0.6362086534500122,
0.3153507709503174,
-0.16166992485523224,
-0.8254913091659546,
0.3665142059326172,
-0.05018341541290283,
0.31393876671791077,
-0.33889856934547424,
0.19597162306308746,
-0.05750776082277298,
-0.12752556800842285,
0.4545365273952484,
0.3496779203414917,
-0.3370491564273834,
-0.14006085693836212,
-0.0063404846005141735,
-0.35854318737983704,
-0.2223995178937912,
-0.19789984822273254,
0.4749411642551422,
-0.029807323589920998,
0.00797863770276308,
-0.2627124786376953,
0.1109519824385643,
0.7694997787475586,
-0.23516656458377838,
0.8489680886268616,
0.5915026664733887,
-0.24184955656528473,
-0.22494834661483765,
-0.3312092423439026,
-0.11111319810152054,
-0.4292742908000946,
0.054435208439826965,
-0.7632104754447937,
-0.4428122043609619,
0.45994099974632263,
0.18131859600543976,
0.06107914820313454,
0.5768946409225464,
0.4486579895019531,
-0.00025965325767174363,
0.7107529640197754,
0.3789062201976776,
-0.3868034780025482,
0.7501391768455505,
-0.6827995181083679,
0.09306833893060684,
-0.7591066360473633,
-0.2154960334300995,
-0.5300927758216858,
-0.6412773728370667,
-0.7491557002067566,
-0.4336937665939331,
0.49431177973747253,
0.030193418264389038,
-0.603663444519043,
0.47594431042671204,
-0.29813361167907715,
0.42306193709373474,
0.86659175157547,
0.3829711675643921,
0.4324573278427124,
-0.015245029702782631,
-0.27715569734573364,
0.06266216188669205,
-0.7915117740631104,
-0.4010011553764343,
1.7415382862091064,
0.22905988991260529,
0.9629469513893127,
0.3284861743450165,
0.922751247882843,
0.40782108902931213,
0.38410311937332153,
-0.6888375878334045,
0.3911060392856598,
-0.16184069216251373,
-1.0727792978286743,
-0.4355277717113495,
-0.3061240315437317,
-1.1292349100112915,
0.40118253231048584,
-0.20264607667922974,
-0.3697335124015808,
0.24166326224803925,
0.11199423670768738,
-0.28855594992637634,
0.20980751514434814,
-0.7612004280090332,
1.3034430742263794,
0.0824928805232048,
-0.6129534840583801,
-0.24627520143985748,
-0.826423704624176,
0.456632524728775,
0.3194085955619812,
-0.23140878975391388,
0.24473163485527039,
0.07599145174026489,
0.4337514042854309,
-0.3975119888782501,
0.5071751475334167,
-0.41159752011299133,
0.1938563585281372,
0.17440156638622284,
0.11472638696432114,
0.25352978706359863,
0.11456209421157837,
-0.27646708488464355,
0.44052284955978394,
0.05465126037597656,
-0.7531296610832214,
-0.04645628109574318,
1.0185259580612183,
-0.5927199125289917,
-0.24677495658397675,
-0.6675341725349426,
-0.41052645444869995,
0.099398672580719,
0.501144528388977,
0.5830433964729309,
0.4359603524208069,
-0.21313630044460297,
0.4900338053703308,
0.7320091128349304,
-0.04828308895230293,
0.611260712146759,
0.8795648217201233,
-0.10205967724323273,
-0.6428459882736206,
0.8929038643836975,
0.21847672760486603,
0.2303401529788971,
0.5411611795425415,
-0.14279109239578247,
-0.4178442060947418,
-0.5191224813461304,
-0.5498592257499695,
0.38382983207702637,
-0.3358360528945923,
-0.20292845368385315,
-0.27094969153404236,
-0.2485702633857727,
-0.5772768259048462,
-0.06654246151447296,
-0.3294978439807892,
-0.4586869180202484,
-0.08508100360631943,
-0.23568972945213318,
0.08189205080270767,
0.6053696274757385,
-0.09584249556064606,
0.18974000215530396,
-0.5102853775024414,
0.2529600262641907,
0.07227355986833572,
0.3150455355644226,
-0.1314500868320465,
-1.1228536367416382,
-0.2604573369026184,
-0.11520982533693314,
-0.5545865893363953,
-1.0358366966247559,
0.4577590227127075,
0.16386932134628296,
0.6369867920875549,
0.6665876507759094,
-0.22227725386619568,
0.8406476378440857,
-0.595437228679657,
0.7602348923683167,
-0.27591392397880554,
-0.7941493391990662,
0.7227237224578857,
-0.6773731112480164,
0.40804100036621094,
0.898732602596283,
0.3509998023509979,
-0.3570042550563812,
-0.267402708530426,
-0.8152453303337097,
-0.8883235454559326,
0.7411116361618042,
0.02056923508644104,
-0.2703510522842407,
0.22890977561473846,
0.3839806616306305,
-0.124908447265625,
0.21763399243354797,
-0.8746494650840759,
-0.2804394066333771,
-0.28598421812057495,
-0.20757916569709778,
-0.5120211839675903,
-0.32846295833587646,
-0.018006639555096626,
-0.3120158910751343,
0.851141631603241,
-0.053125862032175064,
0.2577417492866516,
0.23247016966342926,
-0.4960080087184906,
-0.18469512462615967,
0.08301391452550888,
1.014540433883667,
0.7210658192634583,
-0.7921079397201538,
-0.18022748827934265,
-0.02517683058977127,
-0.4637241065502167,
0.05922447890043259,
0.1038842648267746,
-0.47061488032341003,
0.20776896178722382,
0.5463076829910278,
0.714147686958313,
0.4112740457057953,
-0.13267239928245544,
0.5592421293258667,
0.09513506293296814,
-0.39815762639045715,
-0.315283864736557,
0.09986832737922668,
0.07249566912651062,
0.1731131225824356,
0.3848229944705963,
-0.1810935139656067,
0.30219462513923645,
-0.5781659483909607,
0.442813515663147,
0.2127307653427124,
-0.30875974893569946,
-0.22345592081546783,
0.9106985330581665,
0.22668135166168213,
-0.32111483812332153,
0.677781343460083,
-0.07732045650482178,
-0.1041829064488411,
0.33952566981315613,
0.2707119882106781,
0.7831380367279053,
-0.5821837186813354,
0.30772334337234497,
0.7720656394958496,
0.32933130860328674,
-0.1822621375322342,
0.3398417532444,
-0.1920875459909439,
-0.38939327001571655,
-0.10831242054700851,
-0.5109894275665283,
-0.3639228940010071,
0.1676415205001831,
-0.8888890147209167,
0.4541672170162201,
-0.37196072936058044,
-0.2329038381576538,
0.03553975000977516,
0.34904852509498596,
-0.4542554020881653,
0.27827537059783936,
0.09853363037109375,
1.2641414403915405,
-0.9378901124000549,
1.199641227722168,
0.5545315146446228,
-0.7757014036178589,
-0.6441903710365295,
-0.0776369497179985,
-0.035789553076028824,
-0.7514261603355408,
0.4666892886161804,
0.011520522646605968,
0.09409679472446442,
0.04389148950576782,
-0.5964936017990112,
-0.7410165071487427,
1.7522666454315186,
0.2996457517147064,
-0.6350281834602356,
-0.09752660244703293,
-0.15685737133026123,
0.6014100313186646,
-0.33195939660072327,
0.6887505650520325,
0.30408740043640137,
0.39935120940208435,
0.12385283410549164,
-0.9251570701599121,
-0.2831779718399048,
-0.24451254308223724,
0.09872694313526154,
0.16046585142612457,
-0.8828961253166199,
1.053537368774414,
-0.4078812003135681,
0.2761870324611664,
0.3244999349117279,
0.3727450370788574,
0.43774425983428955,
0.6522638201713562,
0.43572455644607544,
1.1095829010009766,
0.35175710916519165,
-0.11098639667034149,
0.9483844637870789,
-0.5299102663993835,
0.788010835647583,
1.1880067586898804,
0.01775994896888733,
1.1453123092651367,
0.38597869873046875,
-0.11201028525829315,
0.7613375782966614,
1.0879576206207275,
-0.07092589884996414,
0.8520101308822632,
0.15955829620361328,
-0.2517518103122711,
-0.4167838990688324,
0.37321263551712036,
-0.5379602313041687,
0.2711777091026306,
0.028055163100361824,
-0.997701108455658,
-0.37851858139038086,
-0.37568143010139465,
-0.0878387987613678,
-0.5797981023788452,
-0.34186652302742004,
0.6062414050102234,
-0.07322440296411514,
-0.7087864279747009,
0.6675113439559937,
0.09982436150312424,
0.48929232358932495,
-0.7377647757530212,
-0.11232751607894897,
-0.6648313403129578,
0.2871567904949188,
-0.07677619904279709,
-0.7374293804168701,
-0.09280529618263245,
-0.0003527460794430226,
-0.4117867052555084,
-0.2573871612548828,
0.5253808498382568,
-0.6160624623298645,
-0.6183347702026367,
0.13221044838428497,
0.32838690280914307,
0.4217182993888855,
-0.01888558827340603,
-0.8376836180686951,
-0.21626439690589905,
0.18884475529193878,
-0.5357357263565063,
0.32493263483047485,
0.34040096402168274,
-0.06886384636163712,
0.8143952488899231,
0.5786053538322449,
-0.05076935514807701,
0.2439378947019577,
0.26278817653656006,
0.5167267322540283,
-0.9358071684837341,
-0.5688135027885437,
-0.5502772331237793,
0.5134468674659729,
-0.10329706966876984,
-0.6024197340011597,
0.673117995262146,
1.0021624565124512,
0.7793734073638916,
-0.3953128457069397,
0.4159034788608551,
0.043943122029304504,
0.4853375256061554,
-0.3620595633983612,
0.8925539255142212,
-0.7772532105445862,
-0.04677090048789978,
-0.24345046281814575,
-0.8867416977882385,
-0.11608336120843887,
0.8264116644859314,
-0.17411337792873383,
0.03541788086295128,
0.6530589461326599,
0.9595984816551208,
-0.2665470540523529,
-0.24304896593093872,
0.5753752589225769,
0.3992839753627777,
0.14202755689620972,
0.7862350940704346,
0.3594251871109009,
-0.8264527916908264,
0.7798264026641846,
-0.1081768274307251,
0.0007491480791941285,
-0.4134153723716736,
-0.7422703504562378,
-0.7277087569236755,
-0.4403308629989624,
-0.13493971526622772,
-0.46174412965774536,
0.12381020188331604,
0.5544618964195251,
0.9833016395568848,
-0.8610752820968628,
-0.31685224175453186,
0.19600625336170197,
0.027416303753852844,
0.030117392539978027,
-0.2945307195186615,
0.09671793133020401,
-0.2950470745563507,
-0.9952730536460876,
0.5648796558380127,
0.21334069967269897,
-0.2665932774543762,
-0.16600234806537628,
-0.08718164265155792,
-0.5567206144332886,
-0.19107137620449066,
0.40624967217445374,
0.21415971219539642,
-0.4449238181114197,
-0.22744883596897125,
-0.011922642588615417,
-0.024615775793790817,
0.06919145584106445,
0.7742437720298767,
-0.6138947010040283,
0.6668835282325745,
0.7320790886878967,
0.18024030327796936,
0.9499332904815674,
0.32687222957611084,
0.5367622375488281,
-0.4832715392112732,
-0.09920627623796463,
-0.009602084755897522,
0.4720689654350281,
0.003558336291462183,
-0.03318728879094124,
0.8550135493278503,
0.551117479801178,
-0.734779417514801,
-0.7604518532752991,
-0.16255836188793182,
-1.3628121614456177,
-0.1776488870382309,
0.9934074282646179,
-0.27195289731025696,
-0.2688532769680023,
0.19415953755378723,
-0.04948502779006958,
0.2588440775871277,
-0.6460579037666321,
0.7668372392654419,
0.7724847793579102,
-0.03812701255083084,
-0.30586519837379456,
-0.6285809278488159,
0.25312116742134094,
0.39337289333343506,
-0.5764379501342773,
-0.48484769463539124,
0.36824625730514526,
1.071042537689209,
0.24591758847236633,
0.5503296256065369,
-0.20784597098827362,
0.32508939504623413,
0.2145686149597168,
0.1710052639245987,
-0.2959059178829193,
-0.5279378294944763,
-0.5482231378555298,
0.46627143025398254,
0.09881830215454102,
-0.6445368528366089
] |
monologg/bert-base-cased-goemotions-ekman
|
monologg
| 2021-05-19T23:47:57Z | 8,787 | 2 |
transformers
|
[
"transformers",
"pytorch",
"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
] |
fxmarty/onnx-tiny-random-gpt2-with-merge
|
fxmarty
| 2023-03-28T10:45:43Z | 8,786 | 1 |
transformers
|
[
"transformers",
"onnx",
"gpt2",
"feature-extraction",
"license:mit",
"endpoints_compatible",
"text-generation-inference",
"region:us"
] |
feature-extraction
| 2023-03-28T10:43:16Z |
---
license: mit
---
|
[
-0.12853388488292694,
-0.18616782128810883,
0.6529127359390259,
0.4943625330924988,
-0.19319313764572144,
0.23607465624809265,
0.36071982979774475,
0.05056332051753998,
0.5793652534484863,
0.740013837814331,
-0.6508103013038635,
-0.2378396987915039,
-0.710224986076355,
-0.04782581701874733,
-0.3894752264022827,
0.8470761775970459,
-0.09598272293806076,
0.024004854261875153,
0.047120071947574615,
-0.14317826926708221,
-0.6121037602424622,
-0.04771740734577179,
-1.0524537563323975,
-0.06787490844726562,
0.3002279996871948,
0.5120972990989685,
0.8275896310806274,
0.39602896571159363,
0.5030564069747925,
1.7515558004379272,
-0.08836919069290161,
-0.22754427790641785,
-0.45892032980918884,
0.4223068356513977,
-0.33277371525764465,
-0.42133718729019165,
-0.2624166011810303,
-0.07449338585138321,
0.32380399107933044,
0.790371298789978,
-0.38104110956192017,
0.19328099489212036,
-0.22438454627990723,
1.008224368095398,
-0.8202074766159058,
0.22630876302719116,
-0.16698351502418518,
0.14053204655647278,
0.042308706790208817,
-0.14591927826404572,
-0.1326323002576828,
-0.6440033912658691,
0.06469469517469406,
-0.899596095085144,
0.1027495265007019,
-0.04461126774549484,
0.8789561986923218,
0.21909058094024658,
-0.5102370977401733,
-0.0459773913025856,
-0.6883594989776611,
1.0972508192062378,
-0.17556026577949524,
0.7615712881088257,
0.4507811963558197,
0.45288562774658203,
-0.5849329829216003,
-1.178217887878418,
-0.4441864490509033,
-0.13579002022743225,
0.14722809195518494,
0.30556100606918335,
-0.3453029692173004,
-0.022343844175338745,
0.10801105946302414,
0.5610314011573792,
-0.5003758072853088,
-0.311959445476532,
-0.9579929113388062,
-0.18164916336536407,
0.6820483207702637,
0.319308340549469,
0.834044337272644,
0.1873151659965515,
-0.7347195744514465,
0.12866291403770447,
-1.3239703178405762,
0.07650735974311829,
0.6465023756027222,
0.239467591047287,
-0.554598867893219,
0.8594784736633301,
-0.28587982058525085,
0.626249372959137,
0.2728465497493744,
-0.1164526641368866,
0.2784252464771271,
-0.23030735552310944,
-0.2735062837600708,
0.033087607473134995,
0.34597301483154297,
0.8204491138458252,
0.16248634457588196,
-0.019984982907772064,
-0.22123965620994568,
0.0020717978477478027,
0.2684449553489685,
-0.7935096025466919,
-0.4712669551372528,
0.1926696002483368,
-0.558952808380127,
-0.0910850465297699,
0.4327022135257721,
-1.0976827144622803,
-0.4812980592250824,
-0.1879846155643463,
0.05468139797449112,
-0.5451693534851074,
-0.3697946071624756,
0.07273250073194504,
-0.79254150390625,
-0.1243419200181961,
0.570950984954834,
-0.6230252981185913,
0.43974608182907104,
0.533625602722168,
0.7861635684967041,
0.2330387681722641,
-0.23613610863685608,
-0.6695019602775574,
0.48848265409469604,
-0.8661867380142212,
0.36860740184783936,
-0.3073781132698059,
-0.8298640251159668,
-0.09631050378084183,
0.5393159985542297,
0.20664852857589722,
-0.6653256416320801,
0.7074045538902283,
-0.5496984720230103,
-0.07806532829999924,
-0.4308285415172577,
-0.2432200014591217,
0.17460417747497559,
0.11115431040525436,
-0.6238909363746643,
0.9402233362197876,
0.5551108121871948,
-0.584109902381897,
0.31701239943504333,
-0.4869506359100342,
-0.6865583658218384,
0.26748135685920715,
-0.008750975131988525,
-0.047152332961559296,
0.3279528021812439,
-0.15983973443508148,
-0.0020511597394943237,
0.10505761206150055,
0.008299741894006729,
-0.21891699731349945,
-0.4786304235458374,
0.06349936127662659,
0.151650071144104,
1.25368332862854,
0.4083622097969055,
-0.3771882951259613,
-0.13140122592449188,
-1.0526149272918701,
0.025432661175727844,
0.0505015105009079,
-0.42306768894195557,
-0.2504565119743347,
-0.14882194995880127,
-0.20381587743759155,
0.4307260811328888,
0.2118472456932068,
-0.813115119934082,
0.22643625736236572,
-0.2064024657011032,
0.364496648311615,
0.8222091794013977,
0.2703101634979248,
0.39760565757751465,
-0.6625286340713501,
0.6563138365745544,
0.2076188325881958,
0.49590179324150085,
0.35404202342033386,
-0.3845822811126709,
-0.9641586542129517,
-0.442161500453949,
-0.10117404907941818,
0.2975531220436096,
-0.7744957804679871,
0.5847322940826416,
0.012979604303836823,
-0.5836705565452576,
-0.4465281367301941,
-0.15488101541996002,
0.2755330502986908,
-0.06606576591730118,
0.03334902226924896,
-0.4049779176712036,
-0.7394417524337769,
-1.0127898454666138,
-0.13788150250911713,
-0.5021388530731201,
-0.21892830729484558,
0.3160586357116699,
0.2617739737033844,
-0.34290042519569397,
0.7610747814178467,
-0.6059278249740601,
-0.704064130783081,
-0.13973554968833923,
-0.0995984673500061,
0.6187719702720642,
0.9297672510147095,
0.749138355255127,
-0.7224893569946289,
-0.8973818421363831,
-0.056230708956718445,
-0.5420039892196655,
-0.020044349133968353,
0.038149889558553696,
-0.18260693550109863,
-0.10514980554580688,
0.22352531552314758,
-0.6100803017616272,
0.8851073980331421,
0.43224984407424927,
-0.681546688079834,
0.5210590958595276,
-0.4444413483142853,
0.6073803901672363,
-0.8642839193344116,
-0.2911490201950073,
-0.16823577880859375,
-0.1976117193698883,
-0.7090160846710205,
0.19411544501781464,
-0.3002234101295471,
-0.33029863238334656,
-0.7474032044410706,
0.5274897813796997,
-0.9497010707855225,
-0.18781527876853943,
-0.33672773838043213,
-0.03423111140727997,
0.25807833671569824,
0.19490505754947662,
-0.23560254275798798,
0.8900529742240906,
0.9160482287406921,
-0.7121306657791138,
0.5487277507781982,
0.3930906653404236,
-0.1920013427734375,
0.7131237387657166,
-0.3887738585472107,
0.05161993205547333,
-0.12344931066036224,
0.14374595880508423,
-1.126388430595398,
-0.561158299446106,
0.13677382469177246,
-0.712703287601471,
0.17686958611011505,
-0.16556859016418457,
-0.09428537636995316,
-0.6608465313911438,
-0.33806395530700684,
0.25910091400146484,
0.48612290620803833,
-0.47969940304756165,
0.6188148260116577,
0.5728040337562561,
0.02651876211166382,
-0.5307406783103943,
-0.7206818461418152,
0.20418110489845276,
0.039646461606025696,
-0.5569695830345154,
0.3011690080165863,
0.006543457508087158,
-0.6622446775436401,
-0.371124804019928,
-0.26354190707206726,
-0.6043857336044312,
-0.2267974615097046,
0.7826986312866211,
0.1199423298239708,
-0.09012264013290405,
-0.20310267806053162,
-0.3199536204338074,
-0.06167525798082352,
0.30487415194511414,
-0.07575298100709915,
0.7232834696769714,
-0.33623749017715454,
-0.17850083112716675,
-0.887734055519104,
0.652754545211792,
0.9970465302467346,
0.09446714073419571,
0.806644082069397,
0.46324217319488525,
-0.35647475719451904,
-0.1304660439491272,
-0.3535459041595459,
-0.15120601654052734,
-0.685774564743042,
-0.1806798279285431,
-0.5322476625442505,
-0.5411434769630432,
0.40530654788017273,
0.10101459175348282,
-0.0021042972803115845,
0.5167046785354614,
0.2533605694770813,
-0.28806859254837036,
0.7550324201583862,
1.034340739250183,
0.1391797959804535,
0.3602915108203888,
-0.2854715585708618,
0.6341594457626343,
-0.8329949378967285,
-0.34052175283432007,
-0.4548071026802063,
-0.2563585042953491,
-0.31214389204978943,
-0.10750849545001984,
0.5791022181510925,
0.2818215489387512,
-0.4463467597961426,
0.1250680536031723,
-0.5994209051132202,
0.6587361693382263,
0.6273988485336304,
0.5719727873802185,
0.1997303068637848,
-0.46199458837509155,
0.19982971251010895,
0.04816687852144241,
-0.45745599269866943,
-0.4009109139442444,
0.7711143493652344,
0.2399624139070511,
0.8364022374153137,
0.20927050709724426,
0.4957774877548218,
0.33375421166419983,
0.2528058588504791,
-0.6318977475166321,
0.2009797990322113,
-0.22282809019088745,
-1.245961308479309,
-0.206426739692688,
-0.16551318764686584,
-1.0080583095550537,
-0.11792082339525223,
-0.18288995325565338,
-0.8406620025634766,
0.2665729820728302,
-0.19225634634494781,
-0.6640645265579224,
0.5206149220466614,
-0.5103875398635864,
0.69347083568573,
-0.23555898666381836,
-0.2817087769508362,
0.11930079013109207,
-0.6889920830726624,
0.5254612565040588,
0.3667147755622864,
0.29168397188186646,
-0.37968993186950684,
-0.3192872405052185,
0.5068994760513306,
-0.881224513053894,
0.44081127643585205,
-0.10564978420734406,
0.19428130984306335,
0.5358879566192627,
0.4153591990470886,
0.3823971152305603,
0.28699052333831787,
-0.2459377944469452,
-0.23415414988994598,
0.2250344604253769,
-0.7581346035003662,
-0.27754613757133484,
0.9095459580421448,
-0.7519428730010986,
-0.8586915731430054,
-0.6954255700111389,
-0.30644941329956055,
0.28865277767181396,
0.02781464159488678,
0.7154772281646729,
0.6456884145736694,
-0.18821057677268982,
0.23776991665363312,
0.7208225727081299,
-0.0146945184096694,
0.7235562801361084,
0.29411184787750244,
-0.4056646227836609,
-0.6169787645339966,
0.7182320356369019,
0.2627044916152954,
0.05162655562162399,
0.028327951207756996,
0.3058736026287079,
-0.17546698451042175,
-0.15078596770763397,
-0.6318323612213135,
-0.06395323574542999,
-0.7465729117393494,
-0.0927949845790863,
-0.7541396617889404,
-0.2507742643356323,
-0.7114590406417847,
-0.8068137764930725,
-0.7080163955688477,
-0.45604395866394043,
-0.43011948466300964,
-0.23352204263210297,
0.5163108706474304,
1.1627086400985718,
-0.2613152861595154,
0.8011051416397095,
-0.8900954723358154,
0.41936296224594116,
0.4969540238380432,
0.7519731521606445,
-0.11061006784439087,
-0.6746935844421387,
-0.07836239039897919,
-0.5338755249977112,
-0.29485058784484863,
-1.0156972408294678,
0.31774646043777466,
-0.03688591718673706,
0.40537136793136597,
0.42938894033432007,
0.25190269947052,
0.49392756819725037,
-0.30073118209838867,
1.1130688190460205,
0.7274302244186401,
-0.803381085395813,
0.519527792930603,
-0.7635002136230469,
0.16122324764728546,
0.9363659620285034,
0.54477459192276,
-0.4417075514793396,
-0.15113934874534607,
-1.025976538658142,
-0.843137264251709,
0.5963036417961121,
0.15439945459365845,
0.016843896359205246,
0.01821417547762394,
0.03168272227048874,
0.29466384649276733,
0.3591304123401642,
-0.7847291231155396,
-0.8240220546722412,
-0.13851122558116913,
0.25803306698799133,
0.31456053256988525,
-0.1648542582988739,
-0.3003871440887451,
-0.611615777015686,
0.8711391091346741,
0.18286482989788055,
0.3546231985092163,
0.12073354423046112,
0.04369349032640457,
-0.35506919026374817,
0.14787021279335022,
0.5522999167442322,
1.2529057264328003,
-0.40983331203460693,
0.3673911392688751,
0.1751260608434677,
-0.6540069580078125,
0.6494997143745422,
-0.3036349415779114,
-0.021784601733088493,
0.6203135251998901,
0.17760884761810303,
0.28528398275375366,
0.315599262714386,
-0.3621427118778229,
0.6047801971435547,
-0.029422052204608917,
-0.17758512496948242,
-0.7005696296691895,
0.15866968035697937,
0.029350608587265015,
0.27507954835891724,
0.4392024278640747,
0.24443313479423523,
0.08246771991252899,
-1.0602877140045166,
0.5711055397987366,
0.24493910372257233,
-0.8676618337631226,
-0.3011006712913513,
0.7047957181930542,
0.4075389802455902,
-0.47599563002586365,
0.38749054074287415,
0.012702330946922302,
-0.6710241436958313,
0.5987741351127625,
0.5510413646697998,
0.7569674253463745,
-0.4702427089214325,
0.3088020086288452,
0.6245602965354919,
0.06711331009864807,
0.20550549030303955,
0.6923202872276306,
0.03149382025003433,
-0.44738656282424927,
0.23022446036338806,
-0.5986733436584473,
-0.1468990594148636,
0.13735318183898926,
-0.8047426342964172,
0.351533442735672,
-0.9312615394592285,
-0.24089956283569336,
0.08751589059829712,
0.11761097609996796,
-0.6130945086479187,
0.6674696207046509,
-0.008524954319000244,
0.9280490875244141,
-0.8549083471298218,
0.9626278281211853,
0.8559581637382507,
-0.31830817461013794,
-0.7709448337554932,
-0.33556753396987915,
0.02013934776186943,
-0.6660526990890503,
0.7108278274536133,
-0.18973003327846527,
-0.41207411885261536,
-0.09323947876691818,
-0.622982919216156,
-1.0003730058670044,
0.030618250370025635,
0.017415650188922882,
-0.4625031054019928,
0.4454794228076935,
-0.5157257318496704,
0.3289681673049927,
-0.19169732928276062,
0.30509495735168457,
0.7719469666481018,
0.7958452701568604,
0.22960808873176575,
-0.6354780197143555,
-0.4466685652732849,
-0.010276071727275848,
-0.16682815551757812,
0.4545809030532837,
-1.0710972547531128,
0.967736542224884,
-0.4652574360370636,
-0.34733209013938904,
0.2706642150878906,
0.797762393951416,
0.2538500428199768,
0.3524126708507538,
0.6219537258148193,
0.9016807079315186,
0.36450111865997314,
-0.31178343296051025,
0.7276745438575745,
0.2426338493824005,
0.4152539074420929,
0.7364203333854675,
-0.22712187469005585,
0.5403846502304077,
0.8906413316726685,
-0.786162257194519,
0.5381765365600586,
0.7879031896591187,
0.16047371923923492,
0.7758157253265381,
0.5944145917892456,
-0.611952543258667,
-0.1185941994190216,
-0.1464141309261322,
-0.6171560287475586,
0.1979752480983734,
0.052926212549209595,
-0.11974738538265228,
-0.2846010625362396,
-0.13567376136779785,
0.12295057624578476,
0.2836454212665558,
-0.5959328413009644,
0.606866717338562,
0.34341585636138916,
-0.6328282356262207,
0.21025103330612183,
-0.25779569149017334,
0.6709501147270203,
-0.5978154540061951,
0.02733636647462845,
-0.226993590593338,
0.41810402274131775,
-0.4618742763996124,
-1.007582426071167,
0.47138404846191406,
-0.2920241355895996,
-0.40551304817199707,
-0.26942431926727295,
0.8072363138198853,
-0.22133907675743103,
-0.5572860240936279,
0.37486034631729126,
0.13466592133045197,
0.41473662853240967,
0.40145981311798096,
-0.548729419708252,
0.047790080308914185,
0.13760165870189667,
-0.20061805844306946,
0.3601190149784088,
0.2973729372024536,
0.25488772988319397,
0.7100128531455994,
0.5052477717399597,
0.22198708355426788,
0.25694364309310913,
-0.18668605387210846,
0.8387458324432373,
-0.9102796316146851,
-0.8167635202407837,
-0.9497333765029907,
0.3849896192550659,
0.025727711617946625,
-0.880144476890564,
0.7920305728912354,
0.7652608156204224,
0.5113964080810547,
-0.4877890348434448,
0.4755283296108246,
-0.326479434967041,
0.5047136545181274,
-0.13870958983898163,
1.001089096069336,
-0.760762631893158,
-0.29587265849113464,
-0.030554059892892838,
-0.9216439723968506,
-0.2533753216266632,
0.5375741720199585,
0.1540832668542862,
-0.14608067274093628,
0.4385907053947449,
0.44216376543045044,
0.022173406556248665,
0.25223150849342346,
0.32861006259918213,
0.06042787432670593,
0.14508451521396637,
0.5510438680648804,
1.0931141376495361,
-0.43394410610198975,
0.18694786727428436,
-0.4923475384712219,
-0.4536249041557312,
-0.4153490662574768,
-0.9548057913780212,
-0.6640313863754272,
-0.48185449838638306,
-0.2973935008049011,
-0.5915579199790955,
0.11726461350917816,
0.9300885796546936,
0.9018137454986572,
-0.6256728172302246,
-0.41243645548820496,
0.25713539123535156,
0.30293411016464233,
-0.2295418381690979,
-0.146267831325531,
0.2736492455005646,
-0.006407544948160648,
-0.7211178541183472,
0.3930943012237549,
0.807976245880127,
0.3887130320072174,
0.08444006741046906,
-0.07217127084732056,
-0.4407080411911011,
0.026101574301719666,
0.5373561382293701,
0.5729561448097229,
-0.6281182169914246,
-0.4099644422531128,
-0.5328317880630493,
-0.21386730670928955,
0.15529435873031616,
0.48077550530433655,
-0.5166378617286682,
0.32661110162734985,
0.8128959536552429,
0.17017659544944763,
0.7187885642051697,
-0.0022492259740829468,
0.6678642630577087,
-0.8970246315002441,
0.4446259140968323,
0.3953385353088379,
0.5681870579719543,
0.08998038619756699,
-0.7339164614677429,
0.9820241928100586,
0.49674350023269653,
-0.6334057450294495,
-1.0034242868423462,
0.03079957515001297,
-1.193113923072815,
-0.3788175582885742,
0.9890843629837036,
-0.09595765173435211,
-0.9597458839416504,
-0.36448943614959717,
-0.3677716851234436,
0.07989637553691864,
-0.33809733390808105,
0.35498204827308655,
0.8268195986747742,
-0.2538071274757385,
-0.2204185128211975,
-0.9505581855773926,
0.4752943515777588,
0.3102525472640991,
-0.5886632204055786,
-0.05114369094371796,
0.329391211271286,
0.45236870646476746,
0.3009701371192932,
0.5239557027816772,
0.10428227484226227,
0.8970529437065125,
0.25200390815734863,
0.30491405725479126,
-0.04526621103286743,
-0.590078592300415,
-0.0160664189606905,
0.2621477246284485,
0.04487839341163635,
-0.6869441270828247
] |
arampacha/roberta-tiny
|
arampacha
| 2022-05-20T22:07:50Z | 8,785 | 1 |
transformers
|
[
"transformers",
"pytorch",
"roberta",
"fill-mask",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] |
fill-mask
| 2022-05-20T21:57:19Z |
# roberta-tiny
Tiny untrained model for testing purposes
|
[
-0.23668122291564941,
-0.6162587404251099,
0.28539419174194336,
0.2969474494457245,
-0.689660370349884,
-0.664188802242279,
-0.18063347041606903,
0.15910156071186066,
-0.07072035223245621,
0.36652520298957825,
-0.7268055081367493,
-0.025342289358377457,
-0.41659027338027954,
0.01038318034261465,
-0.6336431503295898,
1.144338846206665,
0.4813375473022461,
0.48347991704940796,
0.1451437622308731,
-0.10914916545152664,
-0.5056883692741394,
-0.12520261108875275,
-0.9987878799438477,
-0.5425472259521484,
0.4058897793292999,
0.8747720718383789,
0.5657097697257996,
0.18824684619903564,
0.37974944710731506,
0.09247507899999619,
-0.024039940908551216,
-0.24149540066719055,
-0.4986051023006439,
-0.5586932301521301,
0.2148183435201645,
-0.6732636094093323,
-0.4273001551628113,
0.30303293466567993,
0.5542117357254028,
0.7998815178871155,
0.014207804575562477,
0.956755518913269,
-0.21576927602291107,
0.2905260920524597,
-0.15755632519721985,
-0.0030385192949324846,
-0.4222720265388489,
0.018903987482190132,
-0.12554322183132172,
0.3723291754722595,
-0.5341508984565735,
-0.14643260836601257,
-0.27784448862075806,
-0.5540822148323059,
0.6141523718833923,
0.21149955689907074,
1.3105287551879883,
0.44373756647109985,
-1.0066978931427002,
0.19694341719150543,
-0.8203802704811096,
0.8013954758644104,
-0.466909795999527,
0.3930060565471649,
0.38169246912002563,
0.6457162499427795,
-0.006703197956085205,
-0.7948777079582214,
-0.5377398133277893,
-0.3703667223453522,
0.0655866488814354,
-0.11278329789638519,
-0.12161070853471756,
-0.28290998935699463,
0.5011163949966431,
0.16794559359550476,
-0.6493808031082153,
0.08996536582708359,
-0.6755762100219727,
0.2987803816795349,
0.5085124373435974,
0.27886417508125305,
0.42676377296447754,
-0.005991545971482992,
-0.24799254536628723,
0.05726601928472519,
-0.8302556872367859,
-0.38088351488113403,
0.3231232166290283,
0.963245689868927,
-0.629614531993866,
1.0580750703811646,
0.17652633786201477,
0.7388777136802673,
0.16025297343730927,
0.3063163161277771,
0.12140059471130371,
-0.08828023821115494,
-0.6753750443458557,
-0.495552122592926,
0.5453051924705505,
-0.05619463324546814,
0.3972492218017578,
0.050840266048908234,
-0.34972625970840454,
0.2837062180042267,
0.5225712656974792,
-1.2257477045059204,
-1.0452649593353271,
-0.041946154087781906,
-0.6399403810501099,
-0.7255235314369202,
-0.08710552752017975,
-0.7476933598518372,
-0.0629369467496872,
0.021787915378808975,
0.7354663610458374,
-0.3077755868434906,
-0.09564045816659927,
0.015784811228513718,
-0.6114029288291931,
-0.16616825759410858,
0.23757049441337585,
-1.147652268409729,
0.4051266014575958,
0.15905128419399261,
0.5100178122520447,
0.5196831822395325,
0.07991345971822739,
-0.24106930196285248,
-0.04988951236009598,
-0.48911622166633606,
0.5247603058815002,
-0.18230052292346954,
-0.8203862905502319,
-0.6836809515953064,
0.3597242534160614,
-0.12493138760328293,
-0.22217082977294922,
0.49875494837760925,
-0.39750972390174866,
0.2803283631801605,
0.23755589127540588,
-0.36699914932250977,
0.04489781707525253,
0.008589630015194416,
-0.632849395275116,
1.1893125772476196,
0.7528321146965027,
-0.35265985131263733,
0.5714321136474609,
-1.1355552673339844,
0.021587127819657326,
0.041564904153347015,
-0.1699429601430893,
-0.8564726710319519,
0.38631772994995117,
-0.30932432413101196,
-0.27756229043006897,
-0.43684902787208557,
-0.1404193788766861,
-0.45933106541633606,
-0.43767592310905457,
0.44606998562812805,
-0.5600904822349548,
1.1627825498580933,
0.1580578237771988,
-0.0707305297255516,
0.23684407770633698,
-1.0508458614349365,
0.6208276152610779,
0.27773335576057434,
-0.3283121883869171,
-0.33191901445388794,
-0.539374828338623,
0.49964386224746704,
-0.3093969225883484,
0.14027340710163116,
-0.756295382976532,
0.3397217392921448,
-0.19199810922145844,
0.3051818311214447,
0.5526629686355591,
0.0200921930372715,
0.5554633736610413,
-0.6451616287231445,
0.7442451119422913,
-0.2921127378940582,
0.5891254544258118,
0.6586728096008301,
-0.6342315673828125,
-1.4318095445632935,
-0.39085087180137634,
1.192496657371521,
0.30818578600883484,
-0.18743765354156494,
0.4648391604423523,
0.36185070872306824,
-0.8327008485794067,
-0.444990873336792,
0.1699945628643036,
0.5672432780265808,
-0.04433899372816086,
0.08981689065694809,
-0.2329697608947754,
-0.6529054641723633,
-0.7483606934547424,
0.1538573056459427,
-0.12386982887983322,
-0.7087163329124451,
0.036171264946460724,
0.9427503347396851,
-0.5597245097160339,
0.301504522562027,
-0.5036240816116333,
-0.5292760729789734,
-0.3763701915740967,
0.18931937217712402,
0.1842036247253418,
0.8714443445205688,
1.0440222024917603,
-0.6161825060844421,
-0.5649826526641846,
-0.3114522397518158,
-0.500531017780304,
0.18199536204338074,
0.2892146706581116,
-0.0544697642326355,
-0.10924685001373291,
0.10813096910715103,
-0.7880589365959167,
0.8746131658554077,
0.6587470769882202,
-0.31737980246543884,
0.4075717329978943,
-0.45436903834342957,
-0.28094282746315,
-0.5571895837783813,
-0.027369510382413864,
-0.2566755414009094,
-0.20461831986904144,
-0.010567903518676758,
0.4381217062473297,
0.31455177068710327,
-0.7968379855155945,
-0.27177566289901733,
0.6114262342453003,
-0.8261986970901489,
-0.193837508559227,
-0.41764312982559204,
-0.10859499871730804,
-0.020525092259049416,
-0.011484086513519287,
-0.34815359115600586,
1.3029937744140625,
0.2609576880931854,
-0.7505502700805664,
0.19021277129650116,
0.47864603996276855,
0.2112160176038742,
0.34483861923217773,
-1.0372952222824097,
0.31169718503952026,
0.43309926986694336,
-0.38672375679016113,
-0.7751255631446838,
-0.4749195873737335,
-0.018715618178248405,
-0.7455640435218811,
0.043511416763067245,
-0.6209549307823181,
-0.625641942024231,
-0.7242401838302612,
-0.07162410020828247,
0.7296803593635559,
1.3869723081588745,
-0.5520811080932617,
0.36965009570121765,
0.4253670275211334,
0.4724104106426239,
0.5407819151878357,
-0.6814404129981995,
-0.494418203830719,
-0.5400155186653137,
-0.6307184100151062,
-0.16293717920780182,
-0.24072088301181793,
-0.2531746029853821,
-0.14169682562351227,
0.1116793230175972,
-0.9529575705528259,
0.04352366179227829,
0.668779194355011,
0.38082411885261536,
-0.5870054364204407,
0.4485681354999542,
-0.5450801253318787,
-0.30823734402656555,
-0.03492778539657593,
-0.08281724900007248,
0.3863939642906189,
-0.458554208278656,
-0.21671822667121887,
-0.2639979422092438,
0.10948555916547775,
0.22446778416633606,
-0.05029244348406792,
0.5646682381629944,
0.57228022813797,
-0.3993251621723175,
-0.7918271422386169,
-0.037123437970876694,
-0.42183613777160645,
-0.5350216627120972,
-0.1654246598482132,
-0.324026495218277,
-0.7179799675941467,
0.37718436121940613,
-0.27279332280158997,
-0.4022882282733917,
0.5386210680007935,
0.5353882908821106,
-0.2915356457233429,
0.7850171327590942,
1.0587055683135986,
0.4666857123374939,
0.18227271735668182,
-0.4981650710105896,
0.28617578744888306,
-0.8985346555709839,
0.17020884156227112,
-0.8654423356056213,
-0.03932799771428108,
-0.5062432289123535,
-0.7768973112106323,
0.6156274080276489,
0.001274850801564753,
-0.47552627325057983,
0.5705528855323792,
-0.3549787402153015,
0.7679691314697266,
0.8049092888832092,
0.2269783467054367,
0.06280884146690369,
-0.9129661917686462,
-0.07434017956256866,
-0.17666175961494446,
-0.7929893136024475,
-0.7309660315513611,
1.6381832361221313,
0.061020758002996445,
1.2346820831298828,
0.3032122552394867,
0.49914076924324036,
0.1455897092819214,
0.5534831881523132,
-0.7568817138671875,
0.25303903222084045,
-0.36440882086753845,
-1.2441297769546509,
-0.6058030128479004,
-0.052688080817461014,
-1.2435497045516968,
0.12945811450481415,
-0.0617854930460453,
-0.41614118218421936,
-0.12461923062801361,
0.6140223145484924,
-0.720680296421051,
0.2859625220298767,
-0.81900554895401,
1.5063706636428833,
-0.3428274989128113,
0.24482354521751404,
0.04561861231923103,
-0.23250439763069153,
0.6020249724388123,
-0.15207426249980927,
-0.11302746832370758,
-0.06253965198993683,
0.11121004074811935,
0.7086377739906311,
-0.6299076080322266,
1.0358178615570068,
-0.03332870453596115,
0.5185868144035339,
0.21251490712165833,
0.3398166596889496,
0.18366289138793945,
0.3586990535259247,
0.23426072299480438,
-0.36515048146247864,
0.25069159269332886,
-0.7255619168281555,
-0.4175066649913788,
0.3954281806945801,
-0.7660197019577026,
-0.35574641823768616,
-0.6279984712600708,
-0.47069740295410156,
-0.11809025704860687,
0.1790066659450531,
0.0887785330414772,
0.5671746134757996,
-0.5517323613166809,
0.2948974072933197,
0.9464492797851562,
0.24242432415485382,
0.11632338911294937,
1.006806492805481,
-0.479787677526474,
0.3400837481021881,
0.70658940076828,
-0.26030540466308594,
0.1626638025045395,
-0.25924989581108093,
0.28625765442848206,
0.15641893446445465,
-0.8080040812492371,
-0.4598609507083893,
0.20126162469387054,
-0.07608117908239365,
-0.10944954305887222,
0.023673798888921738,
-0.2342967689037323,
-0.37848660349845886,
0.2293674796819687,
-0.933948814868927,
-0.7791627645492554,
-0.9864900708198547,
-0.1757534295320511,
0.31575682759284973,
1.0575672388076782,
-0.3319133222103119,
0.8579158782958984,
-0.650242805480957,
0.3585776388645172,
0.4108925759792328,
0.2977973520755768,
-0.4352051913738251,
-1.1359739303588867,
-0.24360232055187225,
-0.057498473674058914,
-0.5457013249397278,
-0.5540685057640076,
0.5138977766036987,
0.17975518107414246,
0.38561034202575684,
0.6225691437721252,
0.2608271539211273,
0.7500004768371582,
-0.5913435816764832,
0.4866713881492615,
0.14121580123901367,
-0.8777965903282166,
1.046532392501831,
-0.6069663763046265,
-0.014420837163925171,
0.9164405465126038,
0.24684341251850128,
-0.15217654407024384,
-0.41730859875679016,
-1.4533536434173584,
-0.5960392355918884,
0.1426766961812973,
0.2199946939945221,
0.33664199709892273,
0.0011386765399947762,
0.2518905699253082,
0.08513019979000092,
0.06561315804719925,
-0.8948352932929993,
0.06361941248178482,
0.347549706697464,
-0.08182565122842789,
-0.007608599029481411,
-0.31279119849205017,
-0.767454981803894,
-0.5210810303688049,
0.7723620533943176,
-0.05162367224693298,
0.5290445685386658,
-0.19611798226833344,
-0.025195008143782616,
-0.28970909118652344,
-0.24042120575904846,
0.7151637673377991,
0.7056665420532227,
-0.6959218382835388,
-0.045849885791540146,
0.1371343582868576,
-0.2330504208803177,
0.2142791748046875,
-0.20688870549201965,
-0.48450660705566406,
0.24312658607959747,
0.26953694224357605,
0.462787926197052,
0.6525887846946716,
-0.5338245034217834,
0.6085488200187683,
-0.5275214910507202,
0.10926192998886108,
-1.2083336114883423,
0.6631790399551392,
-0.10245263576507568,
0.06805305182933807,
-0.24705646932125092,
0.49793997406959534,
-0.14730589091777802,
-0.651922345161438,
0.6341583132743835,
0.5698591470718384,
-0.727035403251648,
-0.5602845549583435,
1.2129935026168823,
0.5759564638137817,
-0.780321478843689,
0.8773483633995056,
-0.5921071171760559,
-0.24226368963718414,
1.0136547088623047,
0.5447832345962524,
0.39529523253440857,
-0.08024183660745621,
0.0834103673696518,
0.36973991990089417,
0.656140148639679,
-0.04070296511054039,
0.7042898535728455,
0.4420866072177887,
-0.5580021142959595,
0.6200223565101624,
-0.40986278653144836,
-0.44596290588378906,
0.05826442316174507,
-1.176003098487854,
0.37471315264701843,
-0.9840648770332336,
-0.6235355138778687,
0.26102593541145325,
0.16997547447681427,
-0.8246751427650452,
0.6244902014732361,
-0.37736621499061584,
1.6842830181121826,
-1.1446179151535034,
1.4201459884643555,
0.4916878342628479,
-0.8589320182800293,
-1.1437500715255737,
-0.2578332722187042,
0.16709528863430023,
-1.125146508216858,
1.0411072969436646,
-0.059531234204769135,
0.603808581829071,
0.09004312008619308,
-0.5968071818351746,
-0.7088406682014465,
0.9519462585449219,
0.22937121987342834,
-0.3475053608417511,
0.12456508725881577,
-0.6049582362174988,
0.6675317883491516,
-0.7187210321426392,
0.3017294704914093,
0.5908260345458984,
0.5121956467628479,
-0.08736623078584671,
-1.303381323814392,
-0.3826610743999481,
-0.45712652802467346,
0.22929109632968903,
0.24575410783290863,
-1.1059637069702148,
1.6840460300445557,
-0.5232464075088501,
0.09103702753782272,
1.039806842803955,
0.44654539227485657,
0.22577592730522156,
0.18029563128948212,
0.5506042838096619,
0.688986599445343,
0.8322611451148987,
-0.32650479674339294,
1.300233006477356,
0.0036247989628463984,
0.7406498789787292,
1.5263563394546509,
-0.15248969197273254,
0.8669068217277527,
0.5756336450576782,
-0.44176456332206726,
0.33634158968925476,
0.8509845733642578,
-0.40644440054893494,
0.7424682974815369,
0.5324031710624695,
-0.07961823046207428,
-0.3700428605079651,
0.16271530091762543,
-0.49160104990005493,
0.5026869177818298,
-0.020269092172384262,
-0.38817209005355835,
0.020173659548163414,
-0.13658474385738373,
0.01602243445813656,
0.025726253166794777,
-0.2106219381093979,
0.37623706459999084,
0.24076338112354279,
-0.05656056851148605,
0.27220457792282104,
0.21514776349067688,
0.3247194290161133,
-0.7194243669509888,
-0.06267338991165161,
-0.048142194747924805,
0.6534514427185059,
0.2732245624065399,
-0.25172117352485657,
0.2682628929615021,
-0.05277412384748459,
-0.2035645991563797,
0.18846403062343597,
0.5513278841972351,
-0.4043700397014618,
-1.1066688299179077,
0.4510369896888733,
0.1765417605638504,
0.5662397146224976,
0.0698695108294487,
-0.6366920471191406,
0.14298544824123383,
-0.0637674406170845,
-0.04850713163614273,
0.39611655473709106,
0.8910897374153137,
0.14343823492527008,
0.7553630471229553,
0.5004006624221802,
0.27719298005104065,
0.08655820786952972,
0.25653108954429626,
0.8084045648574829,
-0.7101193070411682,
-0.5885749459266663,
-0.44012385606765747,
0.5799199342727661,
0.0329795703291893,
-0.8906616568565369,
1.1341968774795532,
0.8344973921775818,
0.8937395215034485,
-0.5532504916191101,
0.5282002091407776,
-0.06340406835079193,
0.6405335664749146,
-0.38382378220558167,
0.7703789472579956,
-0.6360182762145996,
-0.0620710588991642,
0.4512768089771271,
-0.06608929485082626,
-0.08197712898254395,
1.091329574584961,
0.11245016753673553,
0.30920928716659546,
0.9103869795799255,
0.6284369230270386,
-0.5282371044158936,
0.24085304141044617,
0.5508895516395569,
0.23408915102481842,
-0.04140598326921463,
0.7705174684524536,
0.4656124711036682,
-0.9267234206199646,
0.26292088627815247,
-0.3579897880554199,
-0.3108695447444916,
-0.39131662249565125,
-0.6625648736953735,
-1.6689646244049072,
-0.19422902166843414,
-0.23435594141483307,
-0.32108253240585327,
0.09350258857011795,
0.7602159380912781,
1.275734543800354,
-0.9119675755500793,
-0.43529415130615234,
0.12292663753032684,
-0.10398713499307632,
0.07823105901479721,
-0.13168729841709137,
0.03527716547250748,
-0.06841706484556198,
-0.38262107968330383,
0.32218632102012634,
-0.33076292276382446,
0.8271876573562622,
-0.2763231098651886,
0.02443063259124756,
-0.10325350612401962,
0.1657188981771469,
0.06443633884191513,
0.26595333218574524,
-0.3586649000644684,
-1.0433592796325684,
-0.5890989303588867,
-0.015138828195631504,
-0.1842821091413498,
0.6922436356544495,
-0.2257612943649292,
-0.026051130145788193,
-0.2811588943004608,
0.07442797720432281,
0.6094983220100403,
0.2655680775642395,
0.5613377094268799,
-1.1859089136123657,
1.0812023878097534,
0.3974607586860657,
0.22069621086120605,
0.07818441092967987,
-0.4426555633544922,
1.067983865737915,
0.33666667342185974,
-0.6971337199211121,
-1.2407795190811157,
0.22651900351047516,
-1.3793684244155884,
-0.006566903553903103,
0.6711807250976562,
-0.20250345766544342,
-0.7568120360374451,
0.18087826669216156,
-0.07719053328037262,
0.16708220541477203,
-0.20301613211631775,
0.8726252317428589,
0.31492191553115845,
-0.1731390804052353,
-0.17647066712379456,
-1.175533413887024,
0.48576053977012634,
0.30146870017051697,
-0.8618172407150269,
-0.12268563359975815,
0.28831690549850464,
0.9806710481643677,
-0.08133743703365326,
0.7544633746147156,
-0.012059679254889488,
0.6678438782691956,
0.8432462811470032,
0.3229183852672577,
-0.2331753522157669,
-0.5741013884544373,
-0.3927409052848816,
-0.24023382365703583,
0.5494334101676941,
-0.8073077201843262
] |
togethercomputer/RedPajama-INCITE-7B-Instruct
|
togethercomputer
| 2023-08-09T18:01:27Z | 8,769 | 104 |
transformers
|
[
"transformers",
"pytorch",
"gpt_neox",
"text-generation",
"en",
"dataset:togethercomputer/RedPajama-Data-1T",
"dataset:togethercomputer/RedPajama-Data-Instruct",
"license:apache-2.0",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-05-05T05:28:20Z |
---
license: apache-2.0
language:
- en
datasets:
- togethercomputer/RedPajama-Data-1T
- togethercomputer/RedPajama-Data-Instruct
widget:
- text: |-
Label the sentences as either 'positive', 'negative', 'mixed', or 'neutral':
Sentence: I can say that there isn't anything I would change.
Label: positive
Sentence: I'm not sure about this.
Label: neutral
Sentence: I liked some parts but I didn't like other parts.
Label: mixed
Sentence: I think the background image could have been better.
Label: negative
Sentence: I really like it.
Label:
example_title: Sentiment Analysis
- text: |-
Please answer the following question:
Question: What is the capital of Canada?
Answer: Ottawa
Question: What is the currency of Switzerland?
Answer: Swiss franc
Question: In which country is Wisconsin located?
Answer:
example_title: Question Answering
- text: >-
Given a news article, classify its topic.
Possible labels: 1. World 2. Sports 3. Business 4. Sci/Tech
Article: A nearby star thought to harbor comets and asteroids now appears to
be home to planets, too.
Label: Sci/Tech
Article: Soaring crude prices plus worries about the economy and the outlook
for earnings are expected to hang over the stock market next week during the
depth of the summer doldrums.
Label: Business
Article: Murtagh a stickler for success Northeastern field hockey coach
Cheryl Murtagh doesn't want the glare of the spotlight that shines on her to
detract from a team that has been the America East champion for the past
three years and has been to the NCAA tournament 13 times.
Label::
example_title: Topic Classification
- text: |-
Paraphrase the given sentence into a different sentence.
Input: Can you recommend some upscale restaurants in New York?
Output: What upscale restaurants do you recommend in New York?
Input: What are the famous places we should not miss in Paris?
Output: Recommend some of the best places to visit in Paris?
Input: Could you recommend some hotels that have cheap price in Zurich?
Output:
example_title: Paraphrasing
- text: >-
Given a review from Amazon's food products, the task is to generate a short
summary of the given review in the input.
Input: I have bought several of the Vitality canned dog food products and
have found them all to be of good quality. The product looks more like a
stew than a processed meat and it smells better. My Labrador is finicky and
she appreciates this product better than most.
Output: Good Quality Dog Food
Input: Product arrived labeled as Jumbo Salted Peanuts...the peanuts were
actually small sized unsalted. Not sure if this was an error or if the
vendor intended to represent the product as 'Jumbo'.
Output: Not as Advertised
Input: My toddler loves this game to a point where he asks for it. That's a
big thing for me. Secondly, no glitching unlike one of their competitors
(PlayShifu). Any tech I don’t have to reach out to support for help is a
good tech for me. I even enjoy some of the games and activities in this.
Overall, this is a product that shows that the developers took their time
and made sure people would not be asking for refund. I’ve become bias
regarding this product and honestly I look forward to buying more of this
company’s stuff. Please keep up the great work.
Output:
example_title: Text Summarization
- text: |-
Identify which sense of a word is meant in a given context.
Context: The river overflowed the bank.
Word: bank
Sense: river bank
Context: A mouse takes much more room than a trackball.
Word: mouse
Sense: computer mouse
Context: The bank will not be accepting cash on Saturdays.
Word: bank
Sense: commercial (finance) banks
Context: Bill killed the project
Word: kill
Sense:
example_title: Word Sense Disambiguation
- text: >-
Given a pair of sentences, choose whether the two sentences agree
(entailment)/disagree (contradiction) with each other.
Possible labels: 1. entailment 2. contradiction
Sentence 1: The skier was on the edge of the ramp. Sentence 2: The skier was
dressed in winter clothes.
Label: entailment
Sentence 1: The boy skated down the staircase railing. Sentence 2: The boy
is a newbie skater.
Label: contradiction
Sentence 1: Two middle-aged people stand by a golf hole. Sentence 2: A
couple riding in a golf cart.
Label:
example_title: Natural Language Inference
inference:
parameters:
temperature: 0.7
top_p: 0.7
top_k: 50
max_new_tokens: 128
---
# RedPajama-INCITE-7B-Instruct
RedPajama-INCITE-7B-Instruct 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.
The model was fine-tuned for few-shot applications on the data of [GPT-JT](https://huggingface.co/togethercomputer/GPT-JT-6B-v1), with exclusion of tasks that overlap with the HELM core scenarios.
- 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.
## 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-Instruct")
model = AutoModelForCausalLM.from_pretrained("togethercomputer/RedPajama-INCITE-7B-Instruct", torch_dtype=torch.float16)
model = model.to('cuda:0')
# infer
prompt = "Q: The capital of France is?\nA:"
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)
"""
Paris
"""
```
## 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-Instruct")
model = AutoModelForCausalLM.from_pretrained("togethercomputer/RedPajama-INCITE-7B-Instruct", device_map='auto', torch_dtype=torch.float16, load_in_8bit=True)
# infer
prompt = "Q: The capital of France is?\nA:"
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)
"""
Paris
"""
```
## 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-Instruct")
model = AutoModelForCausalLM.from_pretrained("togethercomputer/RedPajama-INCITE-7B-Instruct", torch_dtype=torch.bfloat16)
# infer
prompt = "Q: The capital of France is?\nA:"
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)
"""
Paris
"""
```
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-Instruct 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-Instruct 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-Instruct, 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:** 1B tokens
- **Learning rate:** 1e-5
## Community
Join us on [Together Discord](https://discord.gg/6ZVDU8tTD4)
|
[
-0.3706425428390503,
-0.8965209722518921,
0.26394689083099365,
0.380207896232605,
-0.09395527839660645,
-0.20437924563884735,
-0.4332161545753479,
-0.3867852985858917,
-0.013664785772562027,
0.5500074625015259,
-0.5130631923675537,
-0.4933561384677887,
-0.7667328715324402,
-0.07312803715467453,
-0.3661613166332245,
0.8264985680580139,
-0.007568185217678547,
-0.1360708475112915,
-0.16433967649936676,
0.012303556315600872,
-0.4004324674606323,
-0.4945327937602997,
-0.7177690267562866,
-0.4292841851711273,
-0.006008903495967388,
0.39962756633758545,
0.4512266516685486,
0.3017418384552002,
0.5133013129234314,
0.40219610929489136,
0.003984565380960703,
0.10477731376886368,
-0.43088364601135254,
-0.23726008832454681,
0.2264876365661621,
-0.4174332022666931,
-0.26827535033226013,
-0.08331821858882904,
0.46300897002220154,
0.3305707275867462,
-0.03328265994787216,
0.32042351365089417,
-0.13479329645633698,
0.4863021671772003,
-0.5435351729393005,
0.36101290583610535,
-0.5924702882766724,
-0.14560455083847046,
-0.06747119873762131,
0.0857023373246193,
-0.42818400263786316,
-0.15842704474925995,
0.07245133817195892,
-0.4162370264530182,
0.17475378513336182,
-0.06371298432350159,
1.035840630531311,
0.39356696605682373,
-0.1079796552658081,
-0.08296288549900055,
-0.48396939039230347,
0.8602702617645264,
-0.9254918694496155,
0.3129022419452667,
0.4289450943470001,
0.2328907996416092,
-0.17967090010643005,
-0.9554260969161987,
-0.7813706994056702,
-0.21879857778549194,
-0.1570693850517273,
0.052475281059741974,
-0.34808599948883057,
-0.03702189773321152,
0.40237918496131897,
0.23704855144023895,
-0.5054639577865601,
-0.11224900931119919,
-0.5596091151237488,
-0.09859206527471542,
0.6123486757278442,
0.04519183188676834,
0.49173229932785034,
-0.2827131748199463,
-0.3461981415748596,
-0.3103637099266052,
-0.4853552281856537,
0.1109539121389389,
0.34255000948905945,
0.41139256954193115,
-0.6457594037055969,
0.4818713068962097,
-0.1758091002702713,
0.6063377261161804,
0.09532865881919861,
-0.1422736644744873,
0.5584518313407898,
-0.28433719277381897,
-0.49776265025138855,
-0.04530474916100502,
1.1013916730880737,
0.31251049041748047,
0.26663804054260254,
0.01676313765347004,
-0.010856254026293755,
0.09031828492879868,
0.0427175909280777,
-0.9039271473884583,
-0.582111656665802,
0.4410567283630371,
-0.29738718271255493,
-0.20803950726985931,
-0.01158328540623188,
-0.6577066779136658,
-0.06025884300470352,
0.017866618931293488,
0.6765429377555847,
-0.4490792453289032,
-0.4884713590145111,
0.23008476197719574,
-0.24782541394233704,
0.2346101701259613,
0.1104368045926094,
-0.9993461966514587,
0.3429456651210785,
0.2666947841644287,
0.779551088809967,
-0.014548344537615776,
-0.40035727620124817,
0.005102036986500025,
-0.1796446442604065,
-0.016763323917984962,
0.4889444410800934,
-0.2925613820552826,
-0.3725169599056244,
-0.34009087085723877,
0.09418923407793045,
-0.27925512194633484,
-0.40463921427726746,
0.37663891911506653,
-0.16306379437446594,
0.559720516204834,
0.025825731456279755,
-0.5138278007507324,
-0.3540811240673065,
0.2375848889350891,
-0.42810744047164917,
1.3191566467285156,
0.17769071459770203,
-0.9448750615119934,
0.0935710221529007,
-0.8555058240890503,
-0.29613977670669556,
-0.1919761449098587,
-0.25544869899749756,
-0.7721800804138184,
-0.16432932019233704,
0.40811383724212646,
0.4478631615638733,
-0.3444823622703552,
0.14290660619735718,
-0.14092229306697845,
-0.32251542806625366,
0.16718719899654388,
-0.48954135179519653,
1.2984530925750732,
0.08414322882890701,
-0.7792555093765259,
0.2791725993156433,
-0.7286421060562134,
0.0005205725901760161,
0.4268241822719574,
-0.08801831305027008,
0.08722097426652908,
-0.264725923538208,
0.14172066748142242,
0.23386713862419128,
0.342772901058197,
-0.5536538362503052,
0.17471227049827576,
-0.5824409127235413,
0.6477086544036865,
0.6789932250976562,
-0.008485615253448486,
0.41855600476264954,
-0.2765006124973297,
0.3767782151699066,
0.1074380949139595,
0.27787378430366516,
-0.00035113398917019367,
-0.7903243899345398,
-0.9109829664230347,
-0.426898330450058,
0.10036278516054153,
0.6093422770500183,
-0.5791616439819336,
0.520569920539856,
-0.08369282633066177,
-0.7049520015716553,
-0.4114760458469391,
-0.24756541848182678,
0.3318440616130829,
0.5413981676101685,
0.5196408033370972,
-0.14173342287540436,
-0.6897240877151489,
-0.8275715112686157,
0.07122468948364258,
-0.14616049826145172,
0.11937294900417328,
0.39094698429107666,
0.7783825397491455,
-0.3686220943927765,
0.7862427830696106,
-0.4550153613090515,
-0.01843932457268238,
-0.2562669813632965,
0.03898092359304428,
0.5890586376190186,
0.7769781947135925,
0.6921886801719666,
-0.5824311971664429,
-0.4996070861816406,
-0.14149771630764008,
-0.6903460621833801,
0.10282085090875626,
-0.006186877842992544,
-0.20630775392055511,
0.21571293473243713,
0.37379711866378784,
-0.7768423557281494,
0.44885775446891785,
0.5799433588981628,
-0.5394349098205566,
0.5662059187889099,
-0.20290371775627136,
0.27653515338897705,
-1.1041733026504517,
0.10782948136329651,
-0.1595761477947235,
-0.2101127803325653,
-0.5980677008628845,
-0.022953683510422707,
-0.026814106851816177,
-0.09299726039171219,
-0.7407559156417847,
0.9519031047821045,
-0.29710954427719116,
0.20702852308750153,
-0.13568750023841858,
-0.0894474983215332,
-0.0764429122209549,
0.7823506593704224,
0.04319536313414574,
0.7366260886192322,
0.7353989481925964,
-0.6954973936080933,
0.2908647954463959,
0.28490176796913147,
-0.38338279724121094,
-0.022995449602603912,
-0.7240355014801025,
0.08360565453767776,
0.14558544754981995,
0.054702866822481155,
-0.9709773659706116,
-0.19011574983596802,
0.5083447098731995,
-0.7371970415115356,
0.28027841448783875,
-0.18041402101516724,
-0.5432382822036743,
-0.49459517002105713,
-0.02615077793598175,
0.4905773103237152,
0.7868281006813049,
-0.5435509085655212,
0.5707699060440063,
0.5214347839355469,
0.209822416305542,
-0.6518495082855225,
-0.8681966662406921,
-0.25982731580734253,
-0.3250851631164551,
-0.7288185358047485,
0.1917954385280609,
-0.14465321600437164,
-0.20522448420524597,
-0.10128990560770035,
0.08412618935108185,
-0.14343547821044922,
0.2044893205165863,
0.3552284240722656,
0.2950102686882019,
0.05002281442284584,
-0.1068352684378624,
-0.21110904216766357,
0.02209889329969883,
0.24501413106918335,
-0.2357221096754074,
0.8409461975097656,
-0.2818772792816162,
-0.2475530207157135,
-0.6981648802757263,
-0.015994906425476074,
0.5472868084907532,
0.00042566785123199224,
0.9363589286804199,
0.7353576421737671,
-0.5495049357414246,
-0.1696806699037552,
-0.4991358816623688,
-0.437754362821579,
-0.4864736795425415,
0.4474732577800751,
-0.3236696720123291,
-0.7253566384315491,
0.6698839068412781,
0.27003705501556396,
0.22763435542583466,
0.8178765177726746,
0.924956202507019,
0.0713496282696724,
0.8775949478149414,
0.5103605389595032,
-0.0035098306834697723,
0.586661159992218,
-0.7324969172477722,
0.16281792521476746,
-0.655566394329071,
-0.2870786786079407,
-0.5530270934104919,
-0.10606604069471359,
-0.7136483192443848,
-0.5091679096221924,
0.24995344877243042,
0.0745854526758194,
-0.5804848670959473,
0.5929549932479858,
-0.8349135518074036,
0.34365007281303406,
0.6970484256744385,
0.147142231464386,
-0.11408205330371857,
0.02700570784509182,
-0.20614677667617798,
0.09171787649393082,
-0.8518316745758057,
-0.29202181100845337,
1.0658801794052124,
0.4300037622451782,
0.6947327852249146,
-0.07442928850650787,
0.72562575340271,
0.07323009520769119,
0.1957961916923523,
-0.3908190131187439,
0.41498756408691406,
-0.04526637867093086,
-0.686400830745697,
-0.31778499484062195,
-0.482088565826416,
-0.8288908004760742,
0.24859093129634857,
-0.1471026986837387,
-0.9619170427322388,
0.1351737231016159,
0.2093227356672287,
-0.3152906894683838,
0.3876662850379944,
-0.9205043315887451,
1.2386460304260254,
-0.20874646306037903,
-0.22571836411952972,
-0.16337449848651886,
-0.48417216539382935,
0.4591626226902008,
0.3116052448749542,
0.14950740337371826,
-0.23781482875347137,
0.3612605035305023,
0.9188715815544128,
-0.42708665132522583,
1.0037459135055542,
-0.1694321185350418,
0.2073897421360016,
0.5324174165725708,
-0.17311473190784454,
0.45271384716033936,
0.05657566338777542,
-0.047291070222854614,
0.6315178275108337,
0.009417294524610043,
-0.4610390365123749,
-0.37477338314056396,
0.7535357475280762,
-1.1587622165679932,
-0.48401230573654175,
-0.4876432716846466,
-0.5452330112457275,
0.11605099588632584,
0.2905147075653076,
0.5339295864105225,
0.3590085506439209,
0.08833065629005432,
0.16566388309001923,
0.5406562089920044,
-0.326084703207016,
0.5535964965820312,
0.11422586441040039,
-0.19801998138427734,
-0.43732547760009766,
0.8884334564208984,
-0.07586630433797836,
0.21063700318336487,
0.19180458784103394,
0.22211185097694397,
-0.39026734232902527,
-0.4192277491092682,
-0.5331063270568848,
0.2572876513004303,
-0.6740491986274719,
-0.17688117921352386,
-0.7157254219055176,
-0.3844236433506012,
-0.6286336183547974,
-0.08252798765897751,
-0.5780794024467468,
-0.5524444580078125,
-0.43496665358543396,
0.1707271784543991,
0.5271016955375671,
0.3380637466907501,
0.010710897855460644,
0.3240262567996979,
-0.5336254239082336,
0.28766921162605286,
0.1468168944120407,
0.141560897231102,
-0.041083864867687225,
-0.8486352562904358,
-0.40698015689849854,
0.051330503076314926,
-0.28013694286346436,
-0.5700536370277405,
0.47530460357666016,
-0.05948558822274208,
0.5721927285194397,
0.19027721881866455,
0.14114706218242645,
0.5690412521362305,
-0.30898231267929077,
0.8706538081169128,
0.28599345684051514,
-0.8953779339790344,
0.5114616751670837,
-0.1337144374847412,
0.562851071357727,
0.3712855279445648,
0.22531333565711975,
-0.3209308683872223,
-0.5823784470558167,
-1.0095303058624268,
-0.9410958886146545,
0.8356313109397888,
0.6141594052314758,
0.13049408793449402,
-0.19562841951847076,
0.20906108617782593,
-0.17499171197414398,
0.22046366333961487,
-0.9719613790512085,
-0.5644564628601074,
-0.34147778153419495,
-0.2948264181613922,
0.15536436438560486,
-0.016398785635828972,
-0.12283482402563095,
-0.3715607225894928,
0.9005136489868164,
0.10974422097206116,
0.7209938168525696,
0.23205123841762543,
-0.17855872213840485,
0.06568442285060883,
-0.07876493781805038,
0.7075343728065491,
0.8049193620681763,
-0.2237524837255478,
0.005160427652299404,
0.3347531855106354,
-0.493706613779068,
-0.08091983199119568,
0.1244768351316452,
-0.21593190729618073,
-0.03380274400115013,
0.3548934757709503,
1.0764286518096924,
0.12670449912548065,
-0.5425367951393127,
0.3947579860687256,
-0.3151801824569702,
-0.21433910727500916,
-0.5639312863349915,
0.30344319343566895,
0.1782742440700531,
0.3882019519805908,
0.17955979704856873,
0.10115987807512283,
-0.1855594366788864,
-0.3391987085342407,
0.13982698321342468,
0.5032316446304321,
-0.2154759168624878,
-0.2622047960758209,
0.9070348739624023,
0.18446454405784607,
-0.28725138306617737,
0.7360460758209229,
-0.14116275310516357,
-0.5056779384613037,
0.94475919008255,
0.47852009534835815,
0.924434244632721,
0.07370328158140182,
-0.13934563100337982,
0.7841976881027222,
0.4612824618816376,
-0.17308086156845093,
0.3162035644054413,
-0.006693982984870672,
-0.8907463550567627,
-0.31420978903770447,
-0.6296669840812683,
-0.27318689227104187,
0.19287605583667755,
-0.4008820056915283,
0.3983530104160309,
-0.4859350919723511,
-0.24750396609306335,
-0.1786707490682602,
0.10594042390584946,
-0.8160077333450317,
0.24204449355602264,
0.07952693104743958,
0.8532587885856628,
-0.8973724246025085,
0.934395968914032,
0.5141642689704895,
-0.6183566451072693,
-0.7995339035987854,
-0.24652720987796783,
-0.204851433634758,
-0.8579811453819275,
0.5800302624702454,
0.3120713233947754,
0.03919665142893791,
0.1868199110031128,
-0.6583089828491211,
-0.7943610548973083,
0.9482719898223877,
0.5293291807174683,
-0.4074765145778656,
-0.028474152088165283,
-0.07678207755088806,
0.29381391406059265,
-0.2504262924194336,
0.6435731649398804,
0.6212992072105408,
0.4610399603843689,
-0.04639974981546402,
-0.9850168824195862,
0.016776300966739655,
-0.16806639730930328,
-0.26141810417175293,
0.15354973077774048,
-0.6832351684570312,
1.1574878692626953,
-0.32225772738456726,
-0.1633799970149994,
-0.06523201614618301,
0.9049129486083984,
0.30641278624534607,
-0.056472133845090866,
0.4125968813896179,
0.7494667172431946,
0.657543957233429,
-0.24089017510414124,
1.082257628440857,
-0.5878888368606567,
0.8024799227714539,
1.0680434703826904,
0.34621456265449524,
0.7196649312973022,
0.3482874631881714,
-0.3692827522754669,
0.5622757077217102,
0.6279715895652771,
-0.16402605175971985,
0.39498037099838257,
0.05640801042318344,
-0.2200489491224289,
-0.15315265953540802,
0.23500999808311462,
-0.4221654534339905,
0.43271932005882263,
0.3115420341491699,
-0.34762442111968994,
-0.03410393372178078,
-0.08947761356830597,
0.16258184611797333,
-0.21961602568626404,
-0.10011696070432663,
0.5459077954292297,
0.10344599932432175,
-0.4672897458076477,
0.9706268906593323,
0.12157756090164185,
0.8191370964050293,
-0.5270617008209229,
-0.05614127591252327,
-0.07025695592164993,
0.3014655113220215,
-0.16571451723575592,
-0.5702815651893616,
0.1831115037202835,
-0.13861821591854095,
-0.1818993091583252,
-0.04360151290893555,
0.4944639205932617,
-0.5330593585968018,
-0.6990135908126831,
0.2975381016731262,
0.13611793518066406,
0.3307265341281891,
-0.11473187059164047,
-0.9441477060317993,
0.23514984548091888,
0.07303397357463837,
-0.45160624384880066,
0.13831785321235657,
0.19546276330947876,
0.1264226734638214,
0.6447362303733826,
0.5157320499420166,
-0.06598600745201111,
0.2220851480960846,
-0.013345355167984962,
0.7791333794593811,
-0.5743812322616577,
-0.46601641178131104,
-0.9592161774635315,
0.631151556968689,
-0.029771383851766586,
-0.4075060486793518,
0.8630558252334595,
0.5666161179542542,
1.1463743448257446,
-0.08113811910152435,
0.8261006474494934,
-0.3528931438922882,
0.13129347562789917,
-0.4623352289199829,
0.8270870447158813,
-0.5332739949226379,
0.062306541949510574,
-0.1915147453546524,
-0.8248714208602905,
-0.2131510227918625,
0.9220269918441772,
-0.23007525503635406,
0.24004322290420532,
0.6993756294250488,
0.9330105781555176,
-0.1046334058046341,
-0.2668900489807129,
0.302187979221344,
0.41396674513816833,
0.32986336946487427,
0.5660013556480408,
0.287312775850296,
-0.7406420111656189,
0.496597021818161,
-0.7317449450492859,
-0.17830301821231842,
-0.16239383816719055,
-0.7196710705757141,
-1.1425708532333374,
-0.6246995329856873,
-0.40829408168792725,
-0.5806514024734497,
-0.12362939864397049,
1.174294114112854,
0.8298389911651611,
-0.9558181166648865,
-0.39984142780303955,
-0.23599371314048767,
0.17761889100074768,
-0.18130983412265778,
-0.29100707173347473,
0.5228428244590759,
-0.36573526263237,
-1.097915530204773,
0.24188192188739777,
0.11217553913593292,
0.04296986758708954,
-0.3828983008861542,
-0.08986695110797882,
-0.4460487961769104,
-0.02538822777569294,
0.4808961749076843,
0.4594031870365143,
-0.7727776169776917,
-0.2997089624404907,
-0.19142408668994904,
-0.17472977936267853,
0.1696140617132187,
0.4725877344608307,
-0.669289231300354,
0.5197970271110535,
0.612246036529541,
0.5460048317909241,
0.7453881502151489,
-0.23419854044914246,
0.34978553652763367,
-0.6520472168922424,
0.5160256624221802,
0.13329899311065674,
0.48653462529182434,
0.30982857942581177,
-0.41981613636016846,
0.32751181721687317,
0.3679106831550598,
-0.6643660068511963,
-0.7275444865226746,
-0.025329221040010452,
-0.9215742349624634,
-0.29925429821014404,
1.1414107084274292,
-0.07314758002758026,
-0.550282895565033,
0.07376478612422943,
-0.1388774812221527,
0.4234708249568939,
-0.513231635093689,
0.8731375932693481,
0.5431692004203796,
-0.39161038398742676,
-0.25544115900993347,
-0.4707931578159332,
0.45405417680740356,
0.2446376383304596,
-0.8223949670791626,
0.005599420052021742,
0.12996548414230347,
0.45764994621276855,
0.14753635227680206,
0.8418132066726685,
0.0020143864676356316,
0.35363122820854187,
0.1694677174091339,
0.4587852954864502,
-0.16475200653076172,
-0.21983075141906738,
-0.14687347412109375,
0.043950971215963364,
-0.09587627649307251,
-0.3768090009689331
] |
openmmlab/upernet-convnext-tiny
|
openmmlab
| 2023-04-24T07:14:02Z | 8,763 | 1 |
transformers
|
[
"transformers",
"pytorch",
"safetensors",
"upernet",
"vision",
"image-segmentation",
"en",
"arxiv:1807.10221",
"arxiv:2201.03545",
"license:mit",
"endpoints_compatible",
"has_space",
"region:us"
] |
image-segmentation
| 2023-01-13T14:23:12Z |
---
language: en
license: mit
tags:
- vision
- image-segmentation
model_name: openmmlab/upernet-convnext-tiny
---
# UperNet, ConvNeXt tiny-sized backbone
UperNet framework for semantic segmentation, leveraging a ConvNeXt backbone. UperNet was introduced in the paper [Unified Perceptual Parsing for Scene Understanding](https://arxiv.org/abs/1807.10221) by Xiao et al.
Combining UperNet with a ConvNeXt backbone was introduced in the paper [A ConvNet for the 2020s](https://arxiv.org/abs/2201.03545).
Disclaimer: The team releasing UperNet + ConvNeXt did not write a model card for this model so this model card has been written by the Hugging Face team.
## Model description
UperNet is a framework for semantic segmentation. It consists of several components, including a backbone, a Feature Pyramid Network (FPN) and a Pyramid Pooling Module (PPM).
Any visual backbone can be plugged into the UperNet framework. The framework predicts a semantic label per pixel.

## Intended uses & limitations
You can use the raw model for semantic segmentation. See the [model hub](https://huggingface.co/models?search=openmmlab/upernet) to look for
fine-tuned versions (with various backbones) on a task that interests you.
### How to use
For code examples, we refer to the [documentation](https://huggingface.co/docs/transformers/main/en/model_doc/upernet#transformers.UperNetForSemanticSegmentation).
|
[
-0.5815662145614624,
-0.23964913189411163,
0.2530645430088043,
0.4598008096218109,
-0.34899047017097473,
-0.2843981385231018,
0.22355900704860687,
-0.603397786617279,
0.37952226400375366,
0.7230792045593262,
-0.8539898991584778,
-0.5071677565574646,
-0.3320399820804596,
-0.21322958171367645,
-0.40256524085998535,
0.7971318960189819,
0.3401356041431427,
0.3143305480480194,
-0.13402117788791656,
-0.2604164183139801,
-0.5004885196685791,
-0.2704506516456604,
-0.5408071875572205,
-0.44699692726135254,
0.24631664156913757,
0.46918806433677673,
0.9183192253112793,
0.923321008682251,
0.43429067730903625,
0.4472850561141968,
-0.47024768590927124,
-0.26144805550575256,
-0.06180565804243088,
-0.20230701565742493,
-0.35562893748283386,
-0.27473095059394836,
-0.44286268949508667,
-0.060602929443120956,
0.6028666496276855,
0.9593660235404968,
-0.014959407038986683,
0.13518093526363373,
-0.11029528081417084,
0.6829396486282349,
-0.47705087065696716,
-0.09740285575389862,
-0.40614211559295654,
0.16966240108013153,
-0.306609570980072,
0.35653969645500183,
-0.1039072573184967,
0.013979696668684483,
0.6143450736999512,
-0.6070898771286011,
0.09257283806800842,
0.1667238175868988,
0.9833903312683105,
0.23794540762901306,
-0.3303757309913635,
0.06347900629043579,
-0.23706869781017303,
0.8450791835784912,
-0.17253026366233826,
0.3869134485721588,
-0.35424116253852844,
0.5275889039039612,
-0.13027960062026978,
-1.1862527132034302,
-0.5746213793754578,
-0.14930294454097748,
-0.04647444188594818,
0.20824430882930756,
-0.25277915596961975,
0.21478843688964844,
0.09732206910848618,
0.7349340915679932,
-0.39593979716300964,
0.21024926006793976,
-0.1680784672498703,
-0.3119376003742218,
0.42822808027267456,
0.20498806238174438,
0.6538496613502502,
-0.6937985420227051,
-0.9915623068809509,
-0.3745671808719635,
-0.5643931031227112,
0.01573820970952511,
0.02899983525276184,
0.03361429646611214,
-0.27788156270980835,
0.6336624026298523,
-0.12715816497802734,
0.8762841820716858,
0.2280348837375641,
0.3499417006969452,
-0.0270853154361248,
-0.3671703338623047,
-0.5136210322380066,
0.2064002901315689,
0.42941999435424805,
0.5271535515785217,
0.2785355746746063,
0.0225551575422287,
-0.08000180870294571,
0.23213554918766022,
0.22316230833530426,
-0.9485552310943604,
-0.6720048189163208,
0.03676176071166992,
-0.7227967381477356,
-0.5439848899841309,
0.029253901913762093,
-0.9302263259887695,
-0.4032435715198517,
-0.30309027433395386,
0.16007430851459503,
-0.20152470469474792,
-0.19742369651794434,
0.28331348299980164,
-0.42397087812423706,
0.46733027696609497,
0.4416692852973938,
-0.8294416069984436,
0.35521742701530457,
0.5602209568023682,
0.7014510631561279,
-0.050301775336265564,
0.007256633136421442,
-0.2485298365354538,
-0.006304802838712931,
0.15050217509269714,
1.0029374361038208,
-0.4485519826412201,
-0.4304274916648865,
-0.3667406737804413,
0.3859138488769531,
-0.24990439414978027,
-0.3875058591365814,
0.5992347598075867,
-0.44214439392089844,
0.26261216402053833,
-0.11598074436187744,
-0.4867066740989685,
-0.45094388723373413,
0.26326677203178406,
-0.7304317355155945,
0.8390600681304932,
0.22987966239452362,
-0.910984456539154,
0.3181692361831665,
-0.7194783091545105,
0.19298647344112396,
0.18666866421699524,
-0.29886847734451294,
-0.3465595543384552,
0.03297729790210724,
0.09927242249250412,
0.43804481625556946,
-0.3222212493419647,
-0.11870815604925156,
-0.5740520358085632,
-0.04016721248626709,
-0.05873076245188713,
-0.2027358114719391,
1.1611542701721191,
0.2107381969690323,
-0.14553062617778778,
0.5748698115348816,
-1.0905362367630005,
0.04075092822313309,
0.13102272152900696,
-0.11170023679733276,
-0.5257218480110168,
-0.1810843050479889,
0.29012227058410645,
0.3878624439239502,
0.0996171161532402,
-1.0464224815368652,
0.10946826636791229,
-0.5909003019332886,
0.21801279485225677,
0.6608901023864746,
-0.05015404149889946,
0.718860387802124,
-0.08570007234811783,
0.1142951175570488,
0.03827716410160065,
0.2642917037010193,
-0.12098351866006851,
-0.5188928246498108,
-0.7795423865318298,
-0.314209908246994,
0.39738473296165466,
0.5386898517608643,
-0.4796702563762665,
0.3832315504550934,
-0.08821876347064972,
-0.46559274196624756,
-0.25869178771972656,
-0.11678697913885117,
0.4814969301223755,
0.6287959814071655,
0.44023069739341736,
-0.3006075322628021,
-0.7446437478065491,
-0.9375669360160828,
0.065899558365345,
0.17029474675655365,
-0.38039514422416687,
-0.02413228712975979,
0.565721333026886,
-0.19850152730941772,
0.9142104983329773,
-0.49310505390167236,
-0.4767041504383087,
-0.2261817902326584,
-0.2181876301765442,
0.004872505087405443,
0.85948246717453,
0.6112739443778992,
-1.187795877456665,
-0.3223016560077667,
0.06498084217309952,
-0.7432151436805725,
0.2849392294883728,
0.22883613407611847,
-0.21649675071239471,
-0.2506345510482788,
0.3683956265449524,
-0.5904833078384399,
0.6407091617584229,
0.67258220911026,
-0.6705279350280762,
0.5671031475067139,
-0.19117525219917297,
-0.2626416087150574,
-1.4341875314712524,
-0.05251112952828407,
0.2184760719537735,
-0.22756710648536682,
-0.49741342663764954,
0.0503939613699913,
-0.0017746725352481008,
-0.4062846601009369,
-0.6969216465950012,
0.7211991548538208,
-0.511419951915741,
-0.37458744645118713,
-0.1078282818198204,
0.1530802696943283,
0.32216113805770874,
0.47657573223114014,
0.23085007071495056,
0.2855361998081207,
0.46933627128601074,
-0.482100248336792,
0.5945956707000732,
0.7000395655632019,
-0.3118685185909271,
0.8142953515052795,
-1.0325589179992676,
-0.34841206669807434,
0.19621410965919495,
0.27820485830307007,
-0.9182003736495972,
-0.6289575099945068,
0.3392401337623596,
-0.1656789779663086,
0.34781408309936523,
-0.2876739203929901,
-0.2448330670595169,
-0.4315662384033203,
-0.3376851975917816,
0.3919677734375,
0.2644921541213989,
-0.9799610376358032,
0.6319414377212524,
0.7143476009368896,
0.3111995756626129,
-0.42460358142852783,
-0.7192636728286743,
-0.13527944684028625,
-0.2830141484737396,
-1.3994481563568115,
0.755344569683075,
0.09522126615047455,
-0.265246719121933,
0.10584891587495804,
-0.22035843133926392,
-0.18826718628406525,
0.010152695700526237,
0.31986203789711,
0.30066555738449097,
-0.1184278279542923,
-0.025020813569426537,
-0.0443989560008049,
-0.4488883316516876,
-0.0795939490199089,
-0.5345155596733093,
0.2037319839000702,
-0.5682253241539001,
-0.18844467401504517,
-0.43034669756889343,
0.3382022976875305,
0.2848161458969116,
-0.19975988566875458,
0.27529850602149963,
0.5404720306396484,
-0.28141874074935913,
-0.26945850253105164,
-0.19796477258205414,
-0.2655743956565857,
-0.5031367540359497,
0.0532543882727623,
-0.42353352904319763,
-0.980772852897644,
0.7904368042945862,
-0.3782390058040619,
-0.31309351325035095,
0.5166231989860535,
0.29322004318237305,
-0.18263840675354004,
1.1363719701766968,
0.834858775138855,
0.2566218376159668,
0.5138275027275085,
-0.36607104539871216,
-0.3747721016407013,
-1.122369647026062,
-0.26191917061805725,
-0.5817938446998596,
-0.3108047544956207,
-0.7524911165237427,
-0.23915770649909973,
0.2852342426776886,
0.1735500693321228,
-0.15642951428890228,
0.5411970615386963,
-0.9723682999610901,
0.46879109740257263,
0.36454325914382935,
0.05975044518709183,
0.2966899871826172,
0.03437225520610809,
-0.5848582983016968,
0.06716494262218475,
-0.7811746597290039,
-0.24963007867336273,
0.41909950971603394,
0.47082382440567017,
0.7464668154716492,
-0.1563130021095276,
0.2437746375799179,
0.18218894302845,
0.04941253364086151,
-0.6256890296936035,
0.7469072341918945,
-0.31507715582847595,
-0.8916186690330505,
-0.2750258147716522,
-0.05897805839776993,
-1.0682827234268188,
0.6261005997657776,
-0.07001945376396179,
-1.3408777713775635,
0.8172763586044312,
0.23006384074687958,
-0.23510612547397614,
0.4122413098812103,
-0.6562759876251221,
1.3955384492874146,
0.0380387008190155,
-0.1364717185497284,
0.08117437362670898,
-0.9978431463241577,
0.34048452973365784,
0.3415882885456085,
-0.3839992582798004,
-0.21964778006076813,
0.19740964472293854,
0.6503993272781372,
-0.8814776539802551,
0.936373770236969,
-0.26619547605514526,
0.15350918471813202,
0.45011159777641296,
-0.056180402636528015,
0.3599991202354431,
0.13079750537872314,
0.09346088021993637,
0.41036951541900635,
0.23313510417938232,
-0.3924109935760498,
-0.5626077651977539,
0.6503633856773376,
-0.5781532526016235,
-0.2293497920036316,
-0.2698940336704254,
-0.2276604324579239,
0.13444432616233826,
0.35370761156082153,
0.39868539571762085,
0.8048697113990784,
-0.29275375604629517,
0.4272255301475525,
0.7334108352661133,
-0.06540849804878235,
0.46741217374801636,
0.21262475848197937,
-0.21427519619464874,
-0.24212820827960968,
0.8141773343086243,
-0.08474282175302505,
-0.008529985323548317,
0.316058486700058,
0.32941821217536926,
-0.48022451996803284,
-0.3390154540538788,
-0.9484466910362244,
0.08758923411369324,
-0.8024525046348572,
-0.1823779046535492,
-0.5144843459129333,
0.008242318406701088,
0.009677020832896233,
-0.35479941964149475,
-0.8266779780387878,
-0.5812621116638184,
-0.09676634520292282,
0.16063256561756134,
0.2801577150821686,
0.4433467984199524,
-0.21561086177825928,
0.7151634693145752,
-0.7737224698066711,
0.12114644050598145,
0.23234370350837708,
0.26595133543014526,
-0.2443259060382843,
-0.16617585718631744,
-0.055903851985931396,
0.09774515777826309,
-0.30940642952919006,
-0.692567765712738,
0.1821504533290863,
-0.12888458371162415,
0.4927981197834015,
0.22580260038375854,
-0.06427308917045593,
0.5627942681312561,
0.029886556789278984,
0.5614247918128967,
0.4250376522541046,
-0.9460360407829285,
0.5616711974143982,
-0.3930625021457672,
0.4332524240016937,
0.6006054282188416,
0.27503588795661926,
-0.48573219776153564,
0.1123657301068306,
-0.6500549912452698,
-0.7167717814445496,
0.6296204924583435,
0.1290263682603836,
-0.10289495438337326,
0.11623642593622208,
0.17375777661800385,
-0.11454124748706818,
0.017790118232369423,
-0.4912336468696594,
-0.12463463097810745,
-0.30075332522392273,
-0.1504562646150589,
0.4472739100456238,
-0.24110957980155945,
-0.10219249129295349,
-0.3746512532234192,
0.30948591232299805,
-0.16690534353256226,
0.2639107406139374,
0.28914976119995117,
-0.11055459082126617,
0.08607370406389236,
-0.05468566343188286,
0.18433178961277008,
0.4465949237346649,
-0.40086400508880615,
-0.30965864658355713,
0.060339149087667465,
-0.5042564868927002,
-0.03964880108833313,
0.2827235460281372,
-0.35479736328125,
-0.07862355560064316,
0.11339721828699112,
0.711530864238739,
0.7241973280906677,
-0.11757244914770126,
0.6973190903663635,
-0.35512012243270874,
-0.13012950122356415,
-0.564020037651062,
0.04904121160507202,
-0.020853711292147636,
0.3423275947570801,
-0.08709920197725296,
0.42615213990211487,
0.22795173525810242,
-0.16746263206005096,
0.4797663986682892,
0.30800557136535645,
-0.9044882655143738,
-0.3734723627567291,
0.5881079435348511,
0.5238388776779175,
0.11662071943283081,
0.6946490406990051,
0.08446857333183289,
-0.41015228629112244,
0.6746928691864014,
0.21453668177127838,
0.8984406590461731,
-0.16013266146183014,
0.25462695956230164,
0.07574868947267532,
-0.07258450984954834,
0.15340718626976013,
0.23086966574192047,
-0.4105851650238037,
-0.996110737323761,
-0.650197446346283,
-0.8996686935424805,
-0.28912341594696045,
-0.17739741504192352,
-0.6731874942779541,
0.2630578577518463,
-0.36177510023117065,
0.061205942183732986,
0.3426523208618164,
0.11526701599359512,
-0.8203431963920593,
0.583640992641449,
0.07531628012657166,
1.342387080192566,
-0.4860951006412506,
0.9833841919898987,
1.05561363697052,
-0.4564911425113678,
-1.009637713432312,
-0.2877829074859619,
0.2733227610588074,
-0.7291715741157532,
0.6607626080513,
0.36494335532188416,
-0.2338310182094574,
0.21807076036930084,
-0.5189117193222046,
-0.5929815769195557,
1.1203693151474,
0.03235891833901405,
-0.12948393821716309,
-0.17625251412391663,
-0.1614190638065338,
0.3026942312717438,
-0.8100876808166504,
0.2701241075992584,
0.47129008173942566,
0.6740025877952576,
0.5314729809761047,
-0.5336598753929138,
0.11298251897096634,
-0.15876777470111847,
0.3705386221408844,
-0.005312313791364431,
-0.6909063458442688,
0.7784419059753418,
-0.19685553014278412,
-0.37079110741615295,
0.386614590883255,
0.7482281923294067,
0.056461017578840256,
0.31459516286849976,
0.7173991203308105,
0.7678214907646179,
0.493193656206131,
-0.3164747357368469,
1.1887997388839722,
0.03901282697916031,
0.2534066438674927,
1.0955028533935547,
-0.0006684659165330231,
0.3676159381866455,
0.31972867250442505,
0.21524694561958313,
0.6792897582054138,
0.8164265751838684,
-0.31609269976615906,
0.4382097125053406,
0.2099074423313141,
-0.11016232520341873,
-0.3973875045776367,
-0.21226932108402252,
-0.40082183480262756,
0.9899399280548096,
0.329726904630661,
-0.2735842764377594,
-0.7141793966293335,
0.15116360783576965,
0.02650752291083336,
-0.045064136385917664,
-0.5037411451339722,
0.7405837774276733,
0.12433316558599472,
-0.3310043215751648,
0.327115535736084,
-0.07566601783037186,
0.41085705161094666,
-0.5913388133049011,
-0.07159384340047836,
-0.16751664876937866,
0.5210286378860474,
-0.23702740669250488,
-0.902760922908783,
0.5317749381065369,
-0.4088061451911926,
-0.10146555304527283,
0.06798951327800751,
1.2669249773025513,
-0.14461660385131836,
-0.35802772641181946,
0.6190511584281921,
0.3169986605644226,
0.16619063913822174,
-0.1700756996870041,
-1.1466854810714722,
0.2968630790710449,
0.05125277489423752,
-0.45431676506996155,
0.5247949361801147,
0.5041318535804749,
-0.1899484395980835,
0.7746925950050354,
0.6301031112670898,
-0.22400693595409393,
-0.1231401115655899,
-0.05937524139881134,
1.3224536180496216,
-0.6008962392807007,
-0.5524895191192627,
-0.5125871300697327,
0.9700047969818115,
-0.5463039875030518,
-0.4027853012084961,
1.0525281429290771,
0.28936225175857544,
1.0962611436843872,
-0.11224376410245895,
0.27307403087615967,
-0.15173885226249695,
0.3118199110031128,
-0.28271859884262085,
0.49451833963394165,
-0.8455773591995239,
0.06303735077381134,
-0.35078999400138855,
-1.0659615993499756,
-0.47327709197998047,
0.530461311340332,
-0.23450778424739838,
-0.01712723821401596,
0.5378062129020691,
0.8602390289306641,
-0.24854084849357605,
0.3717074990272522,
0.39212509989738464,
-0.08378472924232483,
0.07189347594976425,
0.08191908150911331,
0.8003038167953491,
-0.36913058161735535,
0.6033557057380676,
-0.502446711063385,
-0.3271324634552002,
-0.2094387412071228,
-0.9539376497268677,
-0.7383049130439758,
-0.3069992959499359,
-0.16754020750522614,
-0.3618064224720001,
-0.019053267315030098,
0.5788761377334595,
1.2545393705368042,
-0.7303506731987,
-0.1288110315799713,
-0.41930556297302246,
0.2873903512954712,
0.042093563824892044,
-0.23722675442695618,
0.39235609769821167,
-0.056516584008932114,
-0.6890272498130798,
0.3561062812805176,
0.5331296324729919,
0.108341284096241,
-0.3019401431083679,
0.0014114230871200562,
-0.18827228248119354,
-0.12229669094085693,
0.525013267993927,
0.5453904271125793,
-0.3445371985435486,
-0.5782978534698486,
-0.2758132219314575,
0.056794293224811554,
0.05099258944392204,
0.7597358226776123,
-0.5901491045951843,
0.559796929359436,
0.6226266026496887,
0.5231280326843262,
0.5741280913352966,
0.12697626650333405,
0.6398805975914001,
-0.8684914112091064,
0.48506176471710205,
0.017888080328702927,
0.4213818311691284,
0.3726731538772583,
-0.1489909589290619,
0.5361133217811584,
0.43507570028305054,
-0.7429225444793701,
-0.38388821482658386,
0.51860111951828,
-1.3647304773330688,
-0.26479771733283997,
0.6143317222595215,
-0.19023625552654266,
-0.8622947335243225,
-0.23636946082115173,
-0.257840096950531,
0.0543142631649971,
-0.2840121388435364,
0.23748725652694702,
0.2992599904537201,
-0.08684437721967697,
-0.09854575246572495,
-0.16432751715183258,
0.7197664380073547,
0.305216521024704,
-0.4529983699321747,
-0.1393136978149414,
0.5008460879325867,
0.25555863976478577,
0.36994269490242004,
0.23768001794815063,
-0.41493579745292664,
0.32450947165489197,
0.31054624915122986,
0.27719441056251526,
-0.09792742878198624,
-0.3595941960811615,
-0.21209555864334106,
0.2712830901145935,
-0.4585759937763214,
-0.43328574299812317
] |
keremberke/yolov8m-table-extraction
|
keremberke
| 2023-02-22T13:03:02Z | 8,763 | 14 |
ultralytics
|
[
"ultralytics",
"tensorboard",
"v8",
"ultralyticsplus",
"yolov8",
"yolo",
"vision",
"object-detection",
"pytorch",
"awesome-yolov8-models",
"dataset:keremberke/table-extraction",
"model-index",
"has_space",
"region:us"
] |
object-detection
| 2023-01-29T04:54:05Z |
---
tags:
- ultralyticsplus
- yolov8
- ultralytics
- yolo
- vision
- object-detection
- pytorch
- awesome-yolov8-models
library_name: ultralytics
library_version: 8.0.21
inference: false
datasets:
- keremberke/table-extraction
model-index:
- name: keremberke/yolov8m-table-extraction
results:
- task:
type: object-detection
dataset:
type: keremberke/table-extraction
name: table-extraction
split: validation
metrics:
- type: precision # since [email protected] is not available on hf.co/metrics
value: 0.95194 # min: 0.0 - max: 1.0
name: [email protected](box)
---
<div align="center">
<img width="640" alt="keremberke/yolov8m-table-extraction" src="https://huggingface.co/keremberke/yolov8m-table-extraction/resolve/main/thumbnail.jpg">
</div>
### Supported Labels
```
['bordered', 'borderless']
```
### How to use
- Install [ultralyticsplus](https://github.com/fcakyon/ultralyticsplus):
```bash
pip install ultralyticsplus==0.0.23 ultralytics==8.0.21
```
- Load model and perform prediction:
```python
from ultralyticsplus import YOLO, render_result
# load model
model = YOLO('keremberke/yolov8m-table-extraction')
# set model parameters
model.overrides['conf'] = 0.25 # NMS confidence threshold
model.overrides['iou'] = 0.45 # NMS IoU threshold
model.overrides['agnostic_nms'] = False # NMS class-agnostic
model.overrides['max_det'] = 1000 # maximum number of detections per image
# set image
image = 'https://github.com/ultralytics/yolov5/raw/master/data/images/zidane.jpg'
# perform inference
results = model.predict(image)
# observe results
print(results[0].boxes)
render = render_result(model=model, image=image, result=results[0])
render.show()
```
**More models available at: [awesome-yolov8-models](https://yolov8.xyz)**
|
[
-0.5239325761795044,
-0.43449679017066956,
0.5968903303146362,
-0.3525373637676239,
-0.38518592715263367,
-0.2895105183124542,
0.1345062553882599,
-0.4301849901676178,
0.26277926564216614,
0.3393872082233429,
-0.5142684578895569,
-0.7213225364685059,
-0.4156043529510498,
-0.0509328655898571,
0.018910348415374756,
0.7853459715843201,
0.46270260214805603,
0.010283805429935455,
-0.045672737061977386,
-0.13229918479919434,
-0.059984054416418076,
0.09530092030763626,
-0.07680197805166245,
-0.4801575243473053,
0.09365227073431015,
0.46335965394973755,
0.7637584209442139,
0.7274042367935181,
0.27531272172927856,
0.5015039443969727,
-0.10706935077905655,
-0.06717466562986374,
-0.2303656041622162,
0.20421093702316284,
-0.01945231482386589,
-0.4707523286342621,
-0.5193408131599426,
0.05825483053922653,
0.7145708799362183,
0.292523056268692,
-0.10179196298122406,
0.42729896306991577,
-0.11233464628458023,
0.3992578685283661,
-0.576587438583374,
0.309743732213974,
-0.6467298269271851,
0.07410223037004471,
-0.18965405225753784,
-0.018267963081598282,
-0.3641941249370575,
-0.1242595985531807,
0.20999112725257874,
-0.7745087742805481,
0.13354384899139404,
0.22287620604038239,
1.2090320587158203,
0.07562314718961716,
-0.2175619900226593,
0.4090121388435364,
-0.2740006744861603,
0.8497940301895142,
-1.117294192314148,
0.2652338743209839,
0.34390899538993835,
0.32282984256744385,
-0.14177443087100983,
-0.7022348046302795,
-0.5549825429916382,
-0.17018117010593414,
-0.02644309215247631,
0.12331186980009079,
-0.3343214988708496,
-0.5095335841178894,
0.46290910243988037,
0.11744163930416107,
-0.6338021755218506,
0.10316788405179977,
-0.5940083265304565,
-0.25510546565055847,
0.45194849371910095,
0.3827945291996002,
0.2896002531051636,
-0.22032774984836578,
-0.5031923651695251,
-0.29463034868240356,
-0.17437595129013062,
-0.08143825829029083,
0.09880073368549347,
0.2895016074180603,
-0.4891722500324249,
0.45884305238723755,
-0.4495076835155487,
0.7604776620864868,
0.04116462916135788,
-0.5147696733474731,
0.8089035153388977,
0.022727789357304573,
-0.380315899848938,
-0.012392917647957802,
1.3726470470428467,
0.566676914691925,
-0.18407772481441498,
0.27537453174591064,
-0.176297128200531,
-0.03126785531640053,
0.05601192265748978,
-0.8626447319984436,
-0.32770836353302,
0.23675262928009033,
-0.3728838860988617,
-0.570917010307312,
0.06980433315038681,
-1.3215395212173462,
-0.3723040521144867,
0.21725152432918549,
0.7060543894767761,
-0.35286518931388855,
-0.3649364411830902,
0.16856950521469116,
-0.17131416499614716,
0.20725426077842712,
0.17068220674991608,
-0.5328566431999207,
0.10597441345453262,
-0.051267266273498535,
0.7532486915588379,
-0.008544247597455978,
-0.05570528283715248,
-0.3713676333427429,
0.12985049188137054,
-0.28180992603302,
0.8932569026947021,
-0.24045270681381226,
-0.35597214102745056,
-0.1170676052570343,
0.2752147912979126,
0.11138935387134552,
-0.4587050676345825,
0.7120285034179688,
-0.5551208853721619,
0.09531131386756897,
-0.06568042188882828,
-0.39273321628570557,
-0.32321617007255554,
0.3555036783218384,
-0.6936274766921997,
1.0334336757659912,
0.09658072143793106,
-0.9551495909690857,
0.23571759462356567,
-0.5097902417182922,
-0.11922632902860641,
0.32849207520484924,
0.03568761795759201,
-1.0305808782577515,
0.050529275089502335,
0.05176596716046333,
0.7972993850708008,
-0.2608703076839447,
-0.07039628177881241,
-0.9212716817855835,
-0.018811382353305817,
0.44334664940834045,
-0.2836672365665436,
0.6978181600570679,
0.13265861570835114,
-0.5137395858764648,
0.28308340907096863,
-1.1559690237045288,
0.4270659387111664,
0.6671015620231628,
-0.15815356373786926,
-0.15782447159290314,
-0.4156858026981354,
0.22204270958900452,
0.27919334173202515,
0.12452417612075806,
-0.6819549202919006,
0.2620742917060852,
-0.1485956609249115,
0.3087930381298065,
0.7028560638427734,
-0.24230621755123138,
0.35243332386016846,
-0.10216741263866425,
0.3271971344947815,
0.023167971521615982,
0.031340885907411575,
0.05711161717772484,
-0.3546069264411926,
-0.545269787311554,
-0.12314439564943314,
0.16204296052455902,
0.19103758037090302,
-0.7465763092041016,
0.5946253538131714,
-0.32614001631736755,
-0.804771900177002,
-0.26647043228149414,
-0.16554370522499084,
0.2302715927362442,
0.8233070969581604,
0.5803277492523193,
-0.28827017545700073,
-0.3345464766025543,
-0.9384773969650269,
0.4470897614955902,
0.18929634988307953,
0.19296737015247345,
-0.0002392123860772699,
0.9901519417762756,
0.06830402463674545,
0.4558483958244324,
-0.9012636542320251,
-0.2709414064884186,
-0.36137625575065613,
-0.13043121993541718,
0.5177404284477234,
0.5962104201316833,
0.49147120118141174,
-0.644768238067627,
-0.9072305560112,
0.03183295205235481,
-0.6657083034515381,
0.07235614955425262,
0.2558267116546631,
-0.1556098759174347,
0.131382018327713,
0.07868917286396027,
-0.6448284387588501,
0.6544055938720703,
0.20345132052898407,
-0.5960458517074585,
1.075002670288086,
-0.2417382150888443,
0.10123109072446823,
-1.0888656377792358,
0.061548732221126556,
0.6104397177696228,
-0.46051764488220215,
-0.6142632365226746,
0.059442657977342606,
0.2646836042404175,
0.031886495649814606,
-0.6015306711196899,
0.5047330260276794,
-0.4984453022480011,
-0.05998075753450394,
-0.21732719242572784,
-0.21951286494731903,
0.2758982181549072,
0.2440003752708435,
-0.04287619888782501,
0.6342899203300476,
1.0165865421295166,
-0.4877949655056,
0.48052558302879333,
0.3511032462120056,
-0.6205457448959351,
0.549365222454071,
-0.612819254398346,
0.03231417387723923,
0.2609458267688751,
0.07082248479127884,
-1.0772596597671509,
-0.4290353059768677,
0.4381769597530365,
-0.5237269997596741,
0.71201092004776,
-0.33337274193763733,
-0.3912389874458313,
-0.5215253233909607,
-0.6515262126922607,
0.03252432867884636,
0.5264477133750916,
-0.40863293409347534,
0.5033803582191467,
0.40925320982933044,
0.23986396193504333,
-0.6191062331199646,
-0.6718338131904602,
-0.4394363760948181,
-0.4276779890060425,
-0.2356603741645813,
0.3876892924308777,
0.042989496141672134,
-0.0817943662405014,
0.1507393717765808,
-0.3184357285499573,
-0.15266717970371246,
-0.08714193850755692,
0.27869975566864014,
0.9058830142021179,
-0.1871134638786316,
-0.2302115261554718,
-0.3205876648426056,
-0.42899519205093384,
0.20199374854564667,
-0.48348137736320496,
0.8745748996734619,
-0.3675309419631958,
-0.07751525193452835,
-1.0129355192184448,
-0.08066316694021225,
0.7128245234489441,
-0.07006696611642838,
0.8027011752128601,
0.9629935026168823,
-0.2539495527744293,
0.02031814493238926,
-0.7037650346755981,
-0.06578723341226578,
-0.500680685043335,
0.5256106853485107,
-0.36174824833869934,
-0.17620418965816498,
0.6772238612174988,
0.21837879717350006,
-0.20330211520195007,
0.9599948525428772,
0.29241180419921875,
-0.4388992488384247,
1.1795172691345215,
0.47188135981559753,
0.028472214937210083,
0.32727980613708496,
-0.9773374199867249,
-0.3761899769306183,
-1.075168251991272,
-0.45609617233276367,
-0.610373854637146,
-0.19144809246063232,
-0.5162984728813171,
-0.262421578168869,
0.5484476685523987,
-0.1759079545736313,
-0.25704225897789,
0.41541746258735657,
-0.7675199508666992,
0.4235730767250061,
0.7034686207771301,
0.3842594027519226,
0.02518898993730545,
0.22768272459506989,
-0.3910195231437683,
-0.17865610122680664,
-0.5327853560447693,
-0.3897574543952942,
1.0930243730545044,
0.06339617073535919,
0.8019503355026245,
-0.14579924941062927,
0.4864989221096039,
0.02408013865351677,
0.06830278038978577,
-0.5102574825286865,
0.6615024209022522,
0.15043412148952484,
-0.9549497961997986,
-0.22840401530265808,
-0.40469110012054443,
-0.9423123598098755,
0.31520527601242065,
-0.6563006043434143,
-1.0724633932113647,
0.15058556199073792,
-0.00608128821477294,
-0.4571452736854553,
0.780142068862915,
-0.4296678602695465,
0.9065989851951599,
-0.16429880261421204,
-0.886865496635437,
0.14782831072807312,
-0.6840966939926147,
0.07528221607208252,
0.3312949538230896,
0.2654169499874115,
-0.451209157705307,
0.04678674414753914,
0.9429295063018799,
-0.5904225707054138,
0.866889238357544,
-0.2793404161930084,
0.4128599166870117,
0.4976840615272522,
-0.03037162497639656,
0.3529854118824005,
-0.1552887260913849,
-0.25126805901527405,
0.06342858821153641,
0.2648395597934723,
-0.30591654777526855,
-0.3043643534183502,
0.7292593717575073,
-0.8348268866539001,
-0.3736167848110199,
-0.6857430934906006,
-0.5646932721138,
0.1310255527496338,
0.5004906058311462,
0.5356748104095459,
0.5465964078903198,
0.12416867911815643,
0.21793530881404877,
0.7428324818611145,
-0.11804204434156418,
0.5495609641075134,
0.3054315447807312,
-0.34738364815711975,
-0.6903842091560364,
0.8817516565322876,
0.20130567252635956,
0.1258293241262436,
-0.02492239698767662,
0.6428928375244141,
-0.706861138343811,
-0.5971444249153137,
-0.4749899208545685,
0.24872951209545135,
-0.73398357629776,
-0.5406358242034912,
-0.584385871887207,
-0.06202509626746178,
-0.6101745367050171,
-0.0031679305247962475,
-0.480660617351532,
-0.32432812452316284,
-0.6264135241508484,
-0.13909746706485748,
0.5551115870475769,
0.5300132036209106,
-0.2632603943347931,
0.4841935932636261,
-0.7211828231811523,
0.28837287425994873,
0.18819598853588104,
0.30438175797462463,
0.0002338969788979739,
-0.8592038750648499,
0.07019277662038803,
-0.325339138507843,
-0.5821216702461243,
-1.1351134777069092,
0.8738500475883484,
-0.09233930706977844,
0.7069032788276672,
0.5037681460380554,
0.08824557811021805,
0.8120934367179871,
-0.061362411826848984,
0.44343459606170654,
0.6409130096435547,
-0.7693060636520386,
0.47307202219963074,
-0.38385194540023804,
0.3847558796405792,
0.620033860206604,
0.6873524785041809,
-0.048498496413230896,
0.12709160149097443,
-0.865315854549408,
-0.8891293406486511,
0.8024812340736389,
-0.04450057074427605,
-0.14749237895011902,
0.4188375473022461,
0.3443019688129425,
0.19747112691402435,
-0.07414886355400085,
-1.3152238130569458,
-0.5108487010002136,
-0.02808579057455063,
-0.1983073204755783,
0.18237237632274628,
-0.2636324167251587,
0.00010073916200781241,
-0.6807569265365601,
1.0879615545272827,
-0.26630041003227234,
0.16520093381404877,
0.19033950567245483,
0.0656077042222023,
-0.2870420813560486,
0.23085150122642517,
0.2803391218185425,
0.539447546005249,
-0.4318753182888031,
0.03177289292216301,
0.10902825742959976,
-0.3339202404022217,
0.10779338330030441,
0.2034386545419693,
-0.3544497489929199,
-0.08990828692913055,
0.3298977017402649,
0.6845707297325134,
-0.15257307887077332,
-0.031290993094444275,
0.2823064625263214,
0.1270153522491455,
-0.3940649926662445,
-0.3139879107475281,
0.18539482355117798,
0.2067410796880722,
0.3233906626701355,
0.5141923427581787,
0.1189185157418251,
0.420266330242157,
-0.4691804051399231,
0.2998211681842804,
0.6515260338783264,
-0.5977391004562378,
-0.3014770448207855,
0.8689470291137695,
-0.28256821632385254,
0.0278321485966444,
0.39585942029953003,
-0.5423596501350403,
-0.6183543801307678,
0.9743902087211609,
0.5752438306808472,
0.5495455265045166,
-0.09381349384784698,
0.16833387315273285,
0.7759851217269897,
-0.03818163648247719,
-0.1708100438117981,
0.4413272738456726,
0.21036647260189056,
-0.5231108665466309,
-0.0948331356048584,
-0.6889070868492126,
-0.045940157026052475,
0.6067904233932495,
-0.7634425759315491,
0.43149250745773315,
-0.3830297589302063,
-0.4606926739215851,
0.6156681776046753,
0.3041667342185974,
-0.6704413890838623,
0.3447034955024719,
0.2332558035850525,
0.5783900618553162,
-0.9366067051887512,
0.7399250864982605,
0.718307614326477,
-0.4482562243938446,
-1.0098410844802856,
-0.33611276745796204,
0.28333187103271484,
-0.8294702172279358,
0.2719472348690033,
0.518015444278717,
0.16109102964401245,
0.11986217647790909,
-0.9149399995803833,
-0.9783563613891602,
1.1199965476989746,
-0.00037141324719414115,
-0.3683948814868927,
0.35921236872673035,
-0.14278803765773773,
0.17199788987636566,
-0.3837982714176178,
0.6765688061714172,
0.2773692309856415,
0.5875763893127441,
0.3803231418132782,
-0.671721339225769,
0.21106545627117157,
-0.249191552400589,
-0.31675609946250916,
0.20847934484481812,
-0.3970201909542084,
0.8018640279769897,
-0.4106385409832001,
0.05779046192765236,
0.08125243335962296,
0.5722326040267944,
0.2627568244934082,
0.26719045639038086,
0.5630908012390137,
0.8582468032836914,
0.36064785718917847,
-0.24537523090839386,
0.7666828632354736,
0.16633805632591248,
0.8201995491981506,
1.1681069135665894,
-0.22505953907966614,
0.61604905128479,
0.24323174357414246,
-0.35530388355255127,
0.46218615770339966,
0.6759283542633057,
-0.6115043759346008,
0.7615690231323242,
-0.08846409618854523,
0.09022092074155807,
-0.25873878598213196,
-0.13122010231018066,
-0.6480099558830261,
0.4358193278312683,
0.42234110832214355,
-0.25824612379074097,
-0.263832688331604,
-0.24099303781986237,
-0.12144837528467178,
-0.2677757441997528,
-0.3269420862197876,
0.4722810685634613,
-0.18320849537849426,
-0.12277813255786896,
0.6650394797325134,
-0.2561849355697632,
0.8022897243499756,
-0.5819104909896851,
-0.038129888474941254,
0.3241664469242096,
0.22453682124614716,
-0.3762166500091553,
-1.0304447412490845,
0.1619420200586319,
-0.32196494936943054,
0.11928291618824005,
0.2595493495464325,
0.9938527941703796,
-0.15392161905765533,
-0.7994240522384644,
0.33487531542778015,
0.46744173765182495,
0.2523054778575897,
0.07382355630397797,
-0.9666069149971008,
0.2536313533782959,
0.3046245276927948,
-0.716681957244873,
0.385863333940506,
0.20194604992866516,
0.30934813618659973,
0.8138670325279236,
0.842778742313385,
0.05804488807916641,
0.07918612658977509,
-0.29644107818603516,
1.0055571794509888,
-0.6403059959411621,
-0.3488885164260864,
-1.021843433380127,
0.8558007478713989,
-0.3689364790916443,
-0.30082979798316956,
0.6523687839508057,
0.6540923118591309,
0.565831184387207,
-0.2598305940628052,
0.48170122504234314,
-0.28884267807006836,
0.07043205946683884,
-0.3275907337665558,
0.9577754139900208,
-0.9567717909812927,
-0.13647493720054626,
-0.3203321695327759,
-0.7141079902648926,
-0.18891459703445435,
0.7529372572898865,
-0.1891867220401764,
-0.04613537713885307,
0.6271387934684753,
0.6083092093467712,
-0.34590476751327515,
-0.16826389729976654,
0.4279067814350128,
0.4735429584980011,
-0.02152145467698574,
0.2032616138458252,
0.6222911477088928,
-0.5376922488212585,
0.4164455831050873,
-0.9782881736755371,
-0.15309205651283264,
-0.1382330358028412,
-0.7585325241088867,
-0.6693335771560669,
-0.48409342765808105,
-0.6732377409934998,
-0.5099327564239502,
-0.43772560358047485,
0.8195559978485107,
1.0812557935714722,
-0.7947633266448975,
-0.07037251442670822,
0.23901639878749847,
0.03956720232963562,
0.0035868538543581963,
-0.2481202781200409,
0.4619865119457245,
0.1510184109210968,
-0.727364182472229,
0.26451659202575684,
0.13490021228790283,
0.41157281398773193,
0.07768730074167252,
0.36149513721466064,
-0.46700045466423035,
-0.46869078278541565,
0.018795909360051155,
0.3312171995639801,
-0.461997389793396,
0.07278431951999664,
-0.2715678811073303,
-0.01985333114862442,
0.6157060861587524,
-0.2398059219121933,
-0.587968111038208,
0.44089949131011963,
0.5341863036155701,
0.008925652131438255,
0.6804772019386292,
-0.3016682267189026,
-0.05053279176354408,
-0.2361382097005844,
0.33856505155563354,
0.055935248732566833,
0.7505688667297363,
0.232797771692276,
-0.4092295169830322,
0.48273226618766785,
0.3600536286830902,
-0.36278054118156433,
-0.934931755065918,
-0.16186590492725372,
-1.1479851007461548,
-0.3347345292568207,
0.845902144908905,
-0.18101204931735992,
-0.7385968565940857,
0.0017409792635589838,
0.1704208105802536,
0.3286452293395996,
-0.6858945488929749,
0.5564714670181274,
0.32668375968933105,
-0.044774215668439865,
-0.022421108558773994,
-0.9462907910346985,
0.060028236359357834,
0.36335277557373047,
-0.7949109077453613,
-0.44530123472213745,
0.4523874521255493,
0.767265796661377,
0.7483917474746704,
0.37935858964920044,
-0.2156466841697693,
0.14370018243789673,
0.0907156839966774,
0.5258579254150391,
-0.2847404181957245,
-0.132622629404068,
-0.26439425349235535,
0.259206622838974,
-0.1946343034505844,
-0.5441389083862305
] |
Huffon/sentence-klue-roberta-base
|
Huffon
| 2021-06-20T17:32:17Z | 8,760 | 6 |
sentence-transformers
|
[
"sentence-transformers",
"pytorch",
"roberta",
"ko",
"dataset:klue",
"arxiv:1908.10084",
"has_space",
"region:us"
] | null | 2022-03-02T23:29:04Z |
---
language: ko
tags:
- roberta
- sentence-transformers
datasets:
- klue
---
# KLUE RoBERTa base model for Sentence Embeddings
This is the `sentence-klue-roberta-base` model. The sentence-transformers repository allows to train and use Transformer models for generating sentence and text embeddings.
The model is described in the paper [Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks](https://arxiv.org/abs/1908.10084)
## Usage (Sentence-Transformers)
Using this model becomes more convenient when you have [sentence-transformers](https://github.com/UKPLab/sentence-transformers) installed:
```
pip install -U sentence-transformers
```
Then you can use the model like this:
```python
import torch
from sentence_transformers import SentenceTransformer, util
model = SentenceTransformer("Huffon/sentence-klue-roberta-base")
docs = [
"1992년 7월 8일 손흥민은 강원도 춘천시 후평동에서 아버지 손웅정과 어머니 길은자의 차남으로 태어나 그곳에서 자랐다.",
"형은 손흥윤이다.",
"춘천 부안초등학교를 졸업했고, 춘천 후평중학교에 입학한 후 2학년때 원주 육민관중학교 축구부에 들어가기 위해 전학하여 졸업하였으며, 2008년 당시 FC 서울의 U-18팀이었던 동북고등학교 축구부에서 선수 활동 중 대한축구협회 우수선수 해외유학 프로젝트에 선발되어 2008년 8월 독일 분데스리가의 함부르크 유소년팀에 입단하였다.",
"함부르크 유스팀 주전 공격수로 2008년 6월 네덜란드에서 열린 4개국 경기에서 4게임에 출전, 3골을 터뜨렸다.",
"1년간의 유학 후 2009년 8월 한국으로 돌아온 후 10월에 개막한 FIFA U-17 월드컵에 출전하여 3골을 터트리며 한국을 8강으로 이끌었다.",
"그해 11월 함부르크의 정식 유소년팀 선수 계약을 체결하였으며 독일 U-19 리그 4경기 2골을 넣고 2군 리그에 출전을 시작했다.",
"독일 U-19 리그에서 손흥민은 11경기 6골, 2부 리그에서는 6경기 1골을 넣으며 재능을 인정받아 2010년 6월 17세의 나이로 함부르크의 1군 팀 훈련에 참가, 프리시즌 활약으로 함부르크와 정식 계약을 한 후 10월 18세에 함부르크 1군 소속으로 독일 분데스리가에 데뷔하였다.",
]
document_embeddings = model.encode(docs)
query = "손흥민은 어린 나이에 유럽에 진출하였다."
query_embedding = model.encode(query)
top_k = min(5, len(docs))
cos_scores = util.pytorch_cos_sim(query_embedding, document_embeddings)[0]
top_results = torch.topk(cos_scores, k=top_k)
print(f"입력 문장: {query}")
print(f"<입력 문장과 유사한 {top_k} 개의 문장>")
for i, (score, idx) in enumerate(zip(top_results[0], top_results[1])):
print(f"{i+1}: {docs[idx]} {'(유사도: {:.4f})'.format(score)}")
```
|
[
-0.3684382736682892,
-0.646023690700531,
0.32167789340019226,
0.4590238034725189,
-0.3850246071815491,
-0.06348124891519547,
-0.0653199627995491,
-0.19042564928531647,
0.3001370429992676,
0.2088959962129593,
-0.45988619327545166,
-0.690995454788208,
-0.683473527431488,
0.12277384847402573,
-0.28537631034851074,
1.015321135520935,
0.029763391241431236,
0.028944892808794975,
-0.09902969747781754,
-0.1860908418893814,
-0.619045078754425,
-0.46071356534957886,
-0.41248223185539246,
-0.5469065308570862,
0.11809740960597992,
0.3088984489440918,
0.6507024765014648,
0.18643049895763397,
0.5480979084968567,
0.3610931932926178,
0.007890194654464722,
0.039490956813097,
-0.3624660074710846,
0.17683644592761993,
0.29253172874450684,
-0.46486249566078186,
-0.13498654961585999,
0.10788474231958389,
0.4551115036010742,
0.44186776876449585,
0.03250054642558098,
0.0856376513838768,
-0.011384926736354828,
0.7101675868034363,
-0.4624307453632355,
0.252265065908432,
-0.12031520903110504,
0.11241002380847931,
0.12543317675590515,
-0.2836977243423462,
-0.3231745958328247,
-0.6470471024513245,
0.20118385553359985,
-0.5272586345672607,
0.2157595455646515,
0.10900565981864929,
1.417852520942688,
-0.1219349205493927,
-0.396405428647995,
-0.4833418130874634,
-0.6115081906318665,
0.9767876863479614,
-0.7597779035568237,
0.44320449233055115,
0.385479211807251,
0.17484122514724731,
-0.2034512460231781,
-0.8836385011672974,
-0.48839718103408813,
-0.19371923804283142,
-0.41627493500709534,
0.4624747335910797,
-0.241403728723526,
-0.29126739501953125,
0.2813486158847809,
0.3799552917480469,
-0.7986441254615784,
-0.06145760416984558,
-0.4384475648403168,
-0.04210052639245987,
0.8189087510108948,
0.15287350118160248,
0.424298495054245,
-0.4430670440196991,
-0.524491012096405,
-0.22900618612766266,
-0.4634758234024048,
0.14035564661026,
0.33319464325904846,
-0.19388899207115173,
-0.33182597160339355,
0.6549167633056641,
-0.2894318103790283,
0.531099796295166,
0.1802392154932022,
0.00841598305851221,
0.5315094590187073,
-0.2620687782764435,
-0.5780727863311768,
-0.07448136806488037,
1.1247082948684692,
0.5578283071517944,
0.40989476442337036,
-0.11825675517320633,
-0.06346841901540756,
0.0011575305834412575,
0.08001167327165604,
-1.0747978687286377,
-0.5405368804931641,
0.36841610074043274,
-0.613844633102417,
-0.5095250010490417,
0.3751758635044098,
-0.9588609933853149,
-0.03299719840288162,
-0.0031526873353868723,
0.7080428004264832,
-0.5806505084037781,
-0.24922174215316772,
0.007570902816951275,
-0.22808898985385895,
0.22908221185207367,
0.34526607394218445,
-0.8728804588317871,
0.3351789116859436,
0.1846790611743927,
0.9034661054611206,
0.37844592332839966,
-0.21169275045394897,
0.07812076807022095,
0.09695462882518768,
-0.2558595836162567,
0.7183712720870972,
-0.16256417334079742,
-0.6120923757553101,
0.10428520292043686,
0.038735419511795044,
-0.3810568153858185,
-0.2378830909729004,
0.6546909809112549,
-0.31265339255332947,
0.5414029359817505,
-0.11059682071208954,
-0.7900213599205017,
-0.18384619057178497,
0.23578093945980072,
-0.5126416683197021,
1.5871180295944214,
0.1601569801568985,
-0.9535877108573914,
0.08112948387861252,
-0.7572561502456665,
-0.09101995825767517,
-0.0181099995970726,
-0.23377951979637146,
-0.7751799821853638,
0.03361690416932106,
0.551740825176239,
0.6713588237762451,
-0.13953958451747894,
-0.07957365363836288,
-0.018048007041215897,
-0.48746880888938904,
0.29172390699386597,
-0.28765633702278137,
1.2845286130905151,
0.26395270228385925,
-0.42459481954574585,
0.30584007501602173,
-0.7716149687767029,
0.3542250692844391,
0.49478134512901306,
-0.5356126427650452,
-0.17433425784111023,
-0.43110308051109314,
0.297895610332489,
0.2381318211555481,
0.17705440521240234,
-0.588614284992218,
0.43418070673942566,
-0.48146528005599976,
0.6333504915237427,
0.8843719959259033,
0.1424008309841156,
0.5211275219917297,
-0.5668486952781677,
0.4003685414791107,
0.07800284028053284,
0.1478371024131775,
-0.04018218442797661,
-0.6996983289718628,
-0.6678407192230225,
-0.21385708451271057,
0.3243386149406433,
0.5344671010971069,
-0.48092135787010193,
0.6684556007385254,
-0.24712151288986206,
-0.8512983918190002,
-0.6924312114715576,
-0.30039435625076294,
0.20889052748680115,
0.3528774380683899,
0.34967300295829773,
0.08502022922039032,
-0.7465442419052124,
-0.6610863208770752,
-0.24205760657787323,
-0.11347085982561111,
-0.0171775221824646,
0.5453774929046631,
0.9723754525184631,
-0.15981924533843994,
0.8895553946495056,
-0.8941593170166016,
-0.2615843415260315,
-0.3008648157119751,
0.05953645333647728,
0.6107382774353027,
0.9537349343299866,
0.8293805718421936,
-1.0131675004959106,
-0.9004899859428406,
-0.20136593282222748,
-0.9927307963371277,
0.18611818552017212,
-0.16191360354423523,
-0.21358664333820343,
0.3522647023200989,
0.3293776512145996,
-0.9782779812812805,
0.7420483231544495,
0.4894799590110779,
-0.7142235040664673,
0.9158880114555359,
-0.6984099745750427,
0.3687659204006195,
-1.2962820529937744,
0.09064652025699615,
0.05980157107114792,
-0.03273092210292816,
-0.5107182860374451,
0.27016282081604004,
0.058323800563812256,
-0.0017948215827345848,
-0.36235809326171875,
0.6929221153259277,
-0.896816611289978,
0.15120957791805267,
0.23190905153751373,
0.11433245241641998,
0.1686437726020813,
0.5359563827514648,
-0.10651971399784088,
0.6739158034324646,
0.5259163975715637,
-0.34311968088150024,
0.5756211280822754,
0.2345142513513565,
-0.6647766828536987,
0.39388129115104675,
-0.8764359354972839,
0.07637589424848557,
-0.09112080186605453,
0.4482695162296295,
-1.3665698766708374,
-0.3438524305820465,
0.5205674767494202,
-0.7355149984359741,
0.2803376615047455,
-0.23866428434848785,
-0.3998701870441437,
-0.6987530589103699,
-0.5006011724472046,
0.31964537501335144,
0.6374319791793823,
-0.4072192907333374,
0.3832470774650574,
0.10704655945301056,
0.2533496916294098,
-0.6435557007789612,
-0.8665227293968201,
-0.05743103846907616,
-0.3261546790599823,
-0.9490419030189514,
0.6280133128166199,
-0.22805100679397583,
0.027844956144690514,
0.07406777143478394,
0.018042977899312973,
-0.07468448579311371,
-0.07267822325229645,
0.3991372287273407,
0.29604682326316833,
-0.1413305252790451,
-0.12385912984609604,
-0.21702978014945984,
-0.23050887882709503,
0.02238926663994789,
-0.2100028097629547,
0.9311139583587646,
-0.19805049896240234,
-0.4050007164478302,
-0.7219845056533813,
0.39660364389419556,
0.6584315896034241,
-0.15920811891555786,
0.9444552659988403,
0.8854663372039795,
-0.5216367840766907,
-0.08389531075954437,
-0.46126455068588257,
-0.10716098546981812,
-0.4889358580112457,
0.3064848482608795,
-0.5749217867851257,
-0.6781231164932251,
0.7460736036300659,
0.004826969001442194,
-0.14493897557258606,
0.8014934062957764,
0.7235724329948425,
-0.3563947379589081,
1.1124141216278076,
0.4689309597015381,
0.04092017933726311,
0.5509129762649536,
-1.0863416194915771,
0.3040596842765808,
-0.9315347671508789,
-0.7334330677986145,
-0.6294795870780945,
-0.378622442483902,
-0.9509587287902832,
-0.29913443326950073,
0.3832436800003052,
0.3345514237880707,
-0.339676171541214,
0.47789761424064636,
-0.9341722130775452,
0.2907257378101349,
0.6661683917045593,
0.4303426742553711,
-0.13419197499752045,
-0.024388274177908897,
-0.2753681540489197,
-0.13423532247543335,
-0.7295083999633789,
-0.34192603826522827,
1.3201639652252197,
0.3097171485424042,
0.9141702055931091,
0.38513314723968506,
0.9163591265678406,
0.4286712110042572,
-0.072613924741745,
-0.8877070546150208,
0.3533496856689453,
0.09002074599266052,
-0.6694520711898804,
-0.46680948138237,
-0.2454337775707245,
-1.1945178508758545,
0.4753745198249817,
-0.1847223937511444,
-1.2287354469299316,
0.31829825043678284,
-0.2166885882616043,
-0.25648796558380127,
0.3191435635089874,
-0.6399961709976196,
1.0487841367721558,
-0.0818643867969513,
-0.51112961769104,
-0.06518203020095825,
-0.5241761207580566,
0.0857212170958519,
0.4654335379600525,
0.1657080352306366,
0.07182037830352783,
0.2535639703273773,
0.8564088344573975,
-0.7819990515708923,
0.6345037817955017,
-0.20169518887996674,
0.015058740973472595,
0.5506827235221863,
-0.03706647828221321,
0.7536634206771851,
0.2989063858985901,
0.009686117060482502,
-0.08869721740484238,
0.023848766461014748,
-0.5427148342132568,
-0.5814328193664551,
1.0076230764389038,
-1.134716510772705,
-0.5831069946289062,
-0.8548381328582764,
-0.503128170967102,
0.2665030360221863,
0.2658015191555023,
0.6587199568748474,
0.6506233811378479,
-0.049585457891225815,
0.5319554805755615,
0.49530795216560364,
-0.3027925491333008,
0.7300950884819031,
0.163224458694458,
-0.2157062143087387,
-0.5140274167060852,
0.7465462684631348,
0.4134175777435303,
-0.0015944867627695203,
0.2854782044887543,
0.41082146763801575,
-0.7182649970054626,
-0.5201484560966492,
-0.44758105278015137,
0.25871434807777405,
-0.6902865171432495,
-0.1699838489294052,
-0.6751254200935364,
-0.27222296595573425,
-0.894000232219696,
-0.39758941531181335,
-0.002636602148413658,
-0.5819166302680969,
-0.18524527549743652,
-0.31434378027915955,
0.6044793725013733,
0.8771199584007263,
-0.30312222242355347,
0.24097038805484772,
-0.6036068201065063,
0.11949486285448074,
0.04102307930588722,
0.2104194611310959,
0.12417171895503998,
-0.5939865708351135,
-0.3613223731517792,
0.02890816517174244,
-0.5230663418769836,
-1.2554243803024292,
0.6091527938842773,
-0.13193032145500183,
0.5858940482139587,
0.40875545144081116,
0.11876353621482849,
0.600986123085022,
-0.25547030568122864,
1.0129295587539673,
0.24571233987808228,
-0.8433714509010315,
0.7534496784210205,
-0.5732234120368958,
0.1084834635257721,
0.2743537425994873,
0.5786083936691284,
-0.8069841265678406,
-0.18097148835659027,
-0.988488495349884,
-1.0441253185272217,
0.8259687423706055,
0.5150988101959229,
0.1328563541173935,
0.04737415164709091,
0.11308252066373825,
-0.35811641812324524,
0.04820551723241806,
-0.8206008076667786,
-0.6661718487739563,
-0.27967336773872375,
-0.2595987617969513,
0.2022029459476471,
-0.2791884243488312,
-0.12299755215644836,
-0.6579403877258301,
0.8651089072227478,
0.2828296422958374,
0.6284929513931274,
0.522547721862793,
-0.23843252658843994,
0.08684451133012772,
0.13312241435050964,
0.7750186324119568,
0.6827448010444641,
-0.5818992853164673,
-0.14984633028507233,
0.13104192912578583,
-0.6885620951652527,
0.17164523899555206,
-0.16268956661224365,
-0.3710727095603943,
0.24819409847259521,
0.3773423731327057,
0.8673359751701355,
0.2586662471294403,
-0.205616757273674,
0.6166086196899414,
-0.008145099505782127,
-0.20409463346004486,
-0.716068685054779,
-0.15354256331920624,
0.1789139211177826,
0.13903145492076874,
0.47108983993530273,
0.028245072811841965,
-0.07419520616531372,
-0.7605443000793457,
0.2798810601234436,
0.26585653424263,
-0.37030744552612305,
-0.0037028559017926455,
0.7438011169433594,
0.06771458685398102,
-0.29041609168052673,
0.7711184024810791,
0.023294730111956596,
-0.6986888647079468,
1.0076879262924194,
0.8070487976074219,
0.8828505277633667,
-0.2442491054534912,
0.3601275682449341,
0.9552497267723083,
0.1771068125963211,
-0.048460688441991806,
0.4548361301422119,
0.1901402473449707,
-0.6362902522087097,
0.04285404458642006,
-0.6265329122543335,
-0.1254839450120926,
0.4292595088481903,
-0.8086850643157959,
0.07225267589092255,
-0.4896067678928375,
-0.21954284608364105,
-0.026133475825190544,
0.42511144280433655,
-0.9430784583091736,
0.40147173404693604,
-0.19967079162597656,
0.9509426355361938,
-0.9329058527946472,
0.932317316532135,
0.8187246322631836,
-0.9521958231925964,
-1.016243577003479,
-0.13473691046237946,
-0.1154412254691124,
-0.8316602110862732,
0.8012693524360657,
0.22694659233093262,
0.363974928855896,
0.15662209689617157,
-0.5011016726493835,
-1.0037922859191895,
1.4563316106796265,
-0.09950591623783112,
-0.33155834674835205,
-0.006514152977615595,
0.22069063782691956,
0.5101210474967957,
-0.3066081702709198,
0.7470316886901855,
0.3198204040527344,
0.5983402729034424,
-0.035352014005184174,
-0.7350525856018066,
0.41886118054389954,
-0.3247542977333069,
-0.05798453092575073,
0.13931742310523987,
-1.0119725465774536,
1.3415979146957397,
-0.23372182250022888,
-0.0016208930173888803,
0.20656482875347137,
0.6081401109695435,
0.17039425671100616,
0.14065225422382355,
0.19163785874843597,
0.8482218384742737,
0.7000709772109985,
-0.5343353152275085,
1.0990076065063477,
-0.2901763916015625,
1.0322951078414917,
0.7429771423339844,
0.2956432104110718,
0.6577685475349426,
0.40048596262931824,
-0.47516512870788574,
0.7839356064796448,
0.7084422707557678,
-0.5247055888175964,
0.6170825362205505,
0.2767883837223053,
-0.3643118739128113,
-0.1741957813501358,
0.1738729327917099,
-0.5649818778038025,
0.5071879029273987,
0.3122243881225586,
-0.5148512125015259,
-0.255863219499588,
-0.08752720803022385,
0.12551885843276978,
-0.07258011400699615,
-0.059158194810152054,
0.6452279090881348,
0.01782386749982834,
-0.38984328508377075,
0.6368419528007507,
0.17885816097259521,
0.6991890668869019,
-0.5043543577194214,
-0.12030211091041565,
-0.244181290268898,
0.2995251715183258,
-0.4546390175819397,
-1.0987420082092285,
0.0027775634080171585,
0.023925671353936195,
-0.33125215768814087,
-0.2326774150133133,
0.763128936290741,
-0.25592339038848877,
-0.7835786938667297,
0.4042530655860901,
0.5210763216018677,
0.37288084626197815,
0.010880334302783012,
-0.9041534066200256,
0.027022534981369972,
0.07119587808847427,
-0.6328679919242859,
0.3374015986919403,
0.5622186064720154,
-0.007221351843327284,
0.7024060487747192,
0.732232928276062,
-0.08002795279026031,
0.2277151197195053,
0.08498837053775787,
0.7757400870323181,
-0.707905650138855,
-0.6426132917404175,
-0.8580945134162903,
0.8956860303878784,
-0.22929318249225616,
-0.5173312425613403,
0.8743829727172852,
0.8295421600341797,
0.8304093480110168,
-0.19918474555015564,
1.009019374847412,
-0.45135849714279175,
0.12381409853696823,
-0.40792742371559143,
1.1687761545181274,
-0.5982599258422852,
-0.09743402898311615,
-0.3144679367542267,
-0.8182147741317749,
-0.11271131783723831,
1.1233851909637451,
-0.32567518949508667,
0.2220841497182846,
0.6451014280319214,
0.7754855155944824,
0.10985831171274185,
-0.018444454297423363,
0.18953236937522888,
0.4827996492385864,
0.37693122029304504,
0.6439116597175598,
0.5565564632415771,
-1.1148008108139038,
0.638184130191803,
-0.6458078026771545,
-0.07141409069299698,
-0.4869652986526489,
-0.6995040774345398,
-1.0178080797195435,
-0.5836495161056519,
-0.18315325677394867,
-0.5671865940093994,
-0.1139155700802803,
1.096631646156311,
0.5507426261901855,
-1.0252517461776733,
-0.23860064148902893,
-0.12276912480592728,
0.12528662383556366,
-0.3751120865345001,
-0.4155884087085724,
0.9546964168548584,
-0.05954691395163536,
-1.0414849519729614,
0.0924047976732254,
-0.2692335546016693,
0.09730599075555801,
-0.09353365749120712,
-0.23000912368297577,
-0.6311042308807373,
0.025017092004418373,
0.6390070915222168,
0.001661133486777544,
-0.7885257601737976,
-0.6780717372894287,
-0.05234544724225998,
-0.4200619161128998,
0.0675324946641922,
0.4264344871044159,
-0.6522953510284424,
0.20381413400173187,
0.7991775870323181,
0.30435025691986084,
0.8197504281997681,
-0.025816326960921288,
0.3133929669857025,
-0.6257308721542358,
0.23124884068965912,
0.16931433975696564,
0.6002082228660583,
0.07850203663110733,
-0.34825676679611206,
0.853226900100708,
0.5269634127616882,
-0.804641842842102,
-0.8106892108917236,
-0.13712890446186066,
-1.0980867147445679,
-0.4100582003593445,
1.019148349761963,
-0.4451083242893219,
-0.13158173859119415,
0.024599790573120117,
-0.45571818947792053,
0.41688695549964905,
-0.5849881768226624,
0.9067453145980835,
0.8936514258384705,
-0.29527997970581055,
-0.06676997989416122,
-0.5305140018463135,
0.4770624041557312,
0.3694694936275482,
-0.62894207239151,
-0.3638867735862732,
0.2874917685985565,
0.4694401025772095,
0.2139195054769516,
0.9122862219810486,
0.07412631064653397,
0.25783124566078186,
0.31080424785614014,
0.0773712769150734,
-0.20165959000587463,
-0.1562136709690094,
-0.03799361735582352,
0.17611443996429443,
-0.5178539156913757,
-0.5280170440673828
] |
monologg/kobigbird-bert-base
|
monologg
| 2023-06-12T12:30:09Z | 8,749 | 17 |
transformers
|
[
"transformers",
"pytorch",
"safetensors",
"big_bird",
"fill-mask",
"korean",
"ko",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] |
fill-mask
| 2022-03-02T23:29:05Z |
---
language: ko
tags:
- korean
mask_token: "[MASK]"
widget:
- text: 대한민국의 수도는 [MASK] 입니다.
---
# KoBigBird
<img src="https://user-images.githubusercontent.com/28896432/140442206-e34b02d5-e279-47e5-9c2a-db1278b1c14d.png" width="200"/>
Pretrained BigBird Model for Korean (**kobigbird-bert-base**)
## About
BigBird, is a sparse-attention based transformer which extends Transformer based models, such as BERT to much longer sequences.
BigBird relies on **block sparse attention** instead of normal attention (i.e. BERT's attention) and can handle sequences up to a length of 4096 at a much lower compute cost compared to BERT.
Model is warm started from Korean BERT’s checkpoint.
## How to use
*NOTE:* Use `BertTokenizer` instead of BigBirdTokenizer. (`AutoTokenizer` will load `BertTokenizer`)
```python
from transformers import AutoModel, AutoTokenizer
# by default its in `block_sparse` mode with num_random_blocks=3, block_size=64
model = AutoModel.from_pretrained("monologg/kobigbird-bert-base")
# you can change `attention_type` to full attention like this:
model = AutoModel.from_pretrained("monologg/kobigbird-bert-base", attention_type="original_full")
# you can change `block_size` & `num_random_blocks` like this:
model = AutoModel.from_pretrained("monologg/kobigbird-bert-base", block_size=16, num_random_blocks=2)
tokenizer = AutoTokenizer.from_pretrained("monologg/kobigbird-bert-base")
text = "한국어 BigBird 모델을 공개합니다!"
encoded_input = tokenizer(text, return_tensors='pt')
output = model(**encoded_input)
```
|
[
-0.3283178508281708,
-0.5905005931854248,
0.04628365859389305,
0.7710700035095215,
-0.472586065530777,
-0.21740540862083435,
-0.35721564292907715,
-0.30558979511260986,
0.22054991126060486,
0.2964227795600891,
-0.8230501413345337,
-0.34627553820610046,
-0.8230117559432983,
0.13117487728595734,
-0.023499799892306328,
1.0304882526397705,
0.14426574110984802,
-0.0014612481463700533,
0.19630900025367737,
0.16809839010238647,
-0.49912431836128235,
-0.5991966724395752,
-0.6954969763755798,
-0.47616878151893616,
0.40271031856536865,
0.08532443642616272,
0.667603075504303,
0.49975869059562683,
0.6784703135490417,
0.41467952728271484,
-0.2644321620464325,
-0.15309786796569824,
-0.6115521788597107,
-0.1212804988026619,
-0.1284499317407608,
-0.37542012333869934,
-0.4061783254146576,
-0.13607525825500488,
0.8542733192443848,
0.43539416790008545,
0.03809887170791626,
0.5547827482223511,
-0.012012078426778316,
0.6322857141494751,
-0.47612401843070984,
0.5515133142471313,
-0.4520258605480194,
0.33679667115211487,
0.08166290819644928,
0.08646941930055618,
-0.545062780380249,
-0.1901145875453949,
0.08979404717683792,
-0.6161428093910217,
0.21322248876094818,
0.10186111181974411,
1.331437110900879,
0.35888412594795227,
-0.40130558609962463,
-0.09101537615060806,
-0.715175986289978,
0.9739812016487122,
-0.8712722063064575,
0.3961566984653473,
0.45526736974716187,
0.4186612665653229,
-0.15975569188594818,
-0.8953139185905457,
-0.47023263573646545,
-0.16891859471797943,
-0.3231584131717682,
0.18992556631565094,
0.016896016895771027,
0.09817029535770416,
0.5844725370407104,
0.3501393496990204,
-0.8146885633468628,
-0.06309855729341507,
-0.5512356758117676,
-0.2321329116821289,
0.6557855606079102,
-0.00007452702266164124,
-0.1402519941329956,
-0.39240723848342896,
-0.13791580498218536,
-0.4467322528362274,
-0.2812842130661011,
0.22457855939865112,
0.23288211226463318,
0.39908528327941895,
-0.12532678246498108,
0.46151289343833923,
-0.14417420327663422,
0.8315653204917908,
0.7972366809844971,
-0.17467184364795685,
0.6017696261405945,
-0.223861962556839,
-0.5616762042045593,
0.23271816968917847,
0.9133923053741455,
0.07803385704755783,
0.07108733057975769,
0.04610578715801239,
0.010220156982541084,
-0.3692505359649658,
0.26194071769714355,
-1.018243432044983,
-0.32100239396095276,
0.33317193388938904,
-0.6709586381912231,
-0.17134621739387512,
0.23245620727539062,
-0.6553726196289062,
0.1223105862736702,
-0.36308741569519043,
0.8109578490257263,
-0.6035892963409424,
-0.47597718238830566,
0.31055814027786255,
0.03034108690917492,
0.4575328230857849,
-0.1635909229516983,
-1.0300309658050537,
-0.07978327572345734,
0.4105318784713745,
0.6983968615531921,
0.4834606945514679,
-0.5149688720703125,
-0.30257031321525574,
0.06587716192007065,
-0.20401230454444885,
0.2667663097381592,
-0.2407936155796051,
-0.17139320075511932,
-0.15633873641490936,
0.4714231491088867,
-0.43730396032333374,
-0.4575657844543457,
0.2689186930656433,
-0.6247182488441467,
0.2771265208721161,
-0.11033516377210617,
-0.40256398916244507,
-0.4436647891998291,
0.1964600682258606,
-0.7103902101516724,
1.000256896018982,
0.4233638048171997,
-0.8694401383399963,
0.43888020515441895,
-0.8784794807434082,
-0.688252866268158,
0.0018968471558764577,
0.2762443423271179,
-0.8813706040382385,
-0.07556776702404022,
0.2793092727661133,
0.6392245888710022,
0.21648062765598297,
0.2837611734867096,
-0.45661988854408264,
-0.4874914586544037,
0.1662580817937851,
-0.08255656063556671,
1.0573610067367554,
0.23684804141521454,
-0.6478742361068726,
0.2293713241815567,
-0.8004059195518494,
0.228223517537117,
0.24542750418186188,
-0.3338174521923065,
0.04326348379254341,
-0.26016727089881897,
0.18915727734565735,
0.4150872826576233,
0.27666231989860535,
-0.5418524146080017,
0.28921258449554443,
-0.519885778427124,
0.5017665028572083,
0.738969087600708,
-0.14026601612567902,
0.22737722098827362,
-0.3006214499473572,
0.41395071148872375,
0.19112959504127502,
0.46518751978874207,
-0.31999489665031433,
-0.06730644404888153,
-0.8864449858665466,
-0.6511337161064148,
0.5771576762199402,
0.24292488396167755,
-0.6442513465881348,
0.9987117648124695,
-0.2854277193546295,
-0.5660108923912048,
-0.8859327435493469,
0.13430573046207428,
0.4287198483943939,
-0.02104165032505989,
0.40232053399086,
0.021405108273029327,
-0.887431263923645,
-0.8422104120254517,
0.14405003190040588,
0.05311085656285286,
-0.0007019503973424435,
0.15148869156837463,
0.6720941662788391,
-0.2782454490661621,
0.7967332601547241,
-0.3970237970352173,
-0.34816864132881165,
-0.45542675256729126,
0.10969822108745575,
0.786698043346405,
0.8564826250076294,
0.6476333737373352,
-0.8388035893440247,
-0.773766040802002,
-0.18467096984386444,
-0.7211349606513977,
0.2013639509677887,
-0.14251212775707245,
-0.3741985559463501,
0.2916920483112335,
0.4034692347049713,
-1.1211917400360107,
0.6213803887367249,
0.4184716045856476,
-0.4128533601760864,
0.6683458089828491,
-0.023395350202918053,
-0.03913784772157669,
-1.1469391584396362,
0.41523492336273193,
-0.3433053493499756,
-0.1942296028137207,
-0.31830936670303345,
0.3148987293243408,
0.2695508897304535,
-0.16118861734867096,
-0.4396584630012512,
0.5663672685623169,
-0.5910328030586243,
-0.10704267024993896,
-0.23409758508205414,
-0.40755799412727356,
-0.08515068143606186,
0.7030321955680847,
0.1782558560371399,
0.44441717863082886,
0.7888306379318237,
-0.559546709060669,
0.6989123821258545,
0.500503420829773,
-0.364102303981781,
0.0961015522480011,
-0.8431655168533325,
0.0002045271685346961,
-0.1852966696023941,
0.46810248494148254,
-1.2729451656341553,
-0.37028995156288147,
0.45007041096687317,
-0.684267520904541,
0.7890578508377075,
-0.17598487436771393,
-0.6879743337631226,
-1.1573538780212402,
-0.2589386999607086,
0.4433073401451111,
0.7746952772140503,
-0.7329109311103821,
0.5708672404289246,
-0.17564642429351807,
-0.14898495376110077,
-0.5734289288520813,
-0.6433058977127075,
-0.21118751168251038,
0.011949962936341763,
-0.5463463068008423,
0.053931012749671936,
-0.1771453619003296,
0.5137028098106384,
0.15491525828838348,
-0.1222282201051712,
0.0765359029173851,
-0.11406071484088898,
0.3471224009990692,
0.39361897110939026,
-0.5128300189971924,
0.09105062484741211,
-0.1445380449295044,
-0.16334982216358185,
0.0027107149362564087,
-0.46245115995407104,
0.8464266657829285,
-0.17197826504707336,
-0.44349241256713867,
-0.5481359362602234,
0.1535000205039978,
0.6266998052597046,
-0.3178028464317322,
0.9725764393806458,
1.0498749017715454,
-0.14515385031700134,
-0.0016880339244380593,
-0.6518958806991577,
-0.25181689858436584,
-0.5813911557197571,
0.584973156452179,
-0.3865772485733032,
-0.7679457664489746,
0.37823545932769775,
0.25364506244659424,
0.07807313650846481,
0.45965445041656494,
0.5827955007553101,
-0.012478585354983807,
1.1420146226882935,
0.6974608302116394,
-0.2451573610305786,
0.4708479046821594,
-0.6054068803787231,
0.20580944418907166,
-0.9319230318069458,
-0.12051984667778015,
-0.23662057518959045,
-0.5024487972259521,
-0.25840479135513306,
-0.17537710070610046,
0.07985004782676697,
0.020964626222848892,
-0.7085012793540955,
0.3522282838821411,
-0.8130744099617004,
0.43556374311447144,
0.73776775598526,
0.2869511842727661,
-0.27250051498413086,
0.0800468847155571,
-0.035895608365535736,
0.029097355902194977,
-0.9514094591140747,
-0.1430966854095459,
1.4082422256469727,
0.1880456507205963,
0.8688204288482666,
-0.14061778783798218,
0.5827986001968384,
-0.08164722472429276,
0.4161202311515808,
-0.720101535320282,
0.4827781617641449,
0.10017076879739761,
-1.032901406288147,
-0.5335566401481628,
-0.37863439321517944,
-1.1223440170288086,
0.3682278096675873,
-0.07115364819765091,
-0.67201828956604,
-0.08575806021690369,
0.2134588360786438,
-0.5015655755996704,
0.3069790303707123,
-0.6458243727684021,
1.1894536018371582,
-0.12207607179880142,
-0.21679019927978516,
0.1797640323638916,
-0.8624774217605591,
0.5169300436973572,
-0.21713250875473022,
-0.1539265364408493,
0.28957366943359375,
0.4501076638698578,
0.7356023788452148,
-0.33275505900382996,
1.0370519161224365,
-0.3143690526485443,
0.24822770059108734,
0.34730684757232666,
-0.2936270534992218,
0.49404287338256836,
-0.039406102150678635,
-0.06919626146554947,
0.08608855307102203,
-0.10201698541641235,
-0.7083425521850586,
-0.30953866243362427,
0.5398423671722412,
-1.1729505062103271,
-0.5483556389808655,
-0.6623024940490723,
-0.5594480037689209,
0.02010302245616913,
0.41540107131004333,
0.4905466139316559,
0.32338398694992065,
0.09510055929422379,
0.6287084221839905,
0.554535448551178,
-0.2621750235557556,
0.598953902721405,
0.7261315584182739,
-0.3783644437789917,
-0.5116066336631775,
0.7637282013893127,
0.08548332005739212,
0.14905160665512085,
0.2939158082008362,
0.018910076469182968,
-0.5279658436775208,
-0.22793838381767273,
-0.19411900639533997,
0.5904079079627991,
-0.5528166890144348,
-0.35727453231811523,
-0.6648463010787964,
-0.7835614085197449,
-0.7903023362159729,
-0.0600195974111557,
-0.3121308982372284,
-0.019212614744901657,
-0.26908594369888306,
-0.05319749563932419,
0.17242315411567688,
0.32009464502334595,
-0.2527414560317993,
0.6333816051483154,
-0.8992793560028076,
0.36375629901885986,
0.44988736510276794,
0.33630621433258057,
0.33050212264060974,
-0.924181342124939,
-0.4958846867084503,
0.22746846079826355,
-0.5652438402175903,
-0.47466355562210083,
0.5175288915634155,
0.155903160572052,
0.6011494398117065,
0.5926905274391174,
0.2023589164018631,
0.8563526272773743,
-0.4874839782714844,
0.6996764540672302,
0.4369686543941498,
-0.8904439806938171,
0.47427716851234436,
-0.13077355921268463,
0.7170612215995789,
0.1978044956922531,
0.5880556702613831,
-0.3988412618637085,
-0.392669141292572,
-0.734566330909729,
-0.8201348781585693,
1.2867212295532227,
0.35032692551612854,
0.014748618938028812,
0.045338165014982224,
0.19194693863391876,
-0.025146769359707832,
0.29759225249290466,
-1.1326398849487305,
-0.0598919577896595,
-0.7914717197418213,
-0.49844661355018616,
-0.4537612795829773,
-0.26263657212257385,
0.010748173110187054,
-0.5973044037818909,
0.9996364116668701,
0.1490347534418106,
0.6060125827789307,
0.2630499005317688,
-0.36744868755340576,
-0.34699299931526184,
-0.15128155052661896,
0.6717341542243958,
0.663264811038971,
-0.5650549530982971,
-0.06686774641275406,
-0.09942381083965302,
-0.5910237431526184,
0.24048365652561188,
0.26465606689453125,
-0.09649405628442764,
0.29412463307380676,
0.5647466778755188,
1.1555399894714355,
0.39793452620506287,
-0.3871335983276367,
0.6081376671791077,
0.12292048335075378,
-0.4408794641494751,
-0.4026374816894531,
-0.07328027486801147,
0.2702144384384155,
0.3490164875984192,
0.3809351623058319,
-0.19844654202461243,
-0.31571194529533386,
-0.3199578523635864,
-0.058896373957395554,
0.3175579011440277,
-0.09556958824396133,
-0.41664430499076843,
0.7133757472038269,
0.07031118869781494,
-0.2952396273612976,
0.685970664024353,
-0.21739444136619568,
-0.7802637219429016,
1.0589057207107544,
0.9325243830680847,
0.8904616236686707,
-0.536284863948822,
0.12682004272937775,
0.7429526448249817,
0.44208160042762756,
-0.0823826864361763,
0.24603179097175598,
-0.07467887550592422,
-0.40755459666252136,
-0.6478424668312073,
-0.9535083770751953,
-0.009586996398866177,
0.6571633815765381,
-0.7719920873641968,
0.1868026703596115,
-0.5961841940879822,
-0.3614526093006134,
0.20243221521377563,
0.1253942847251892,
-0.7906180024147034,
0.17059913277626038,
0.19993124902248383,
0.809978187084198,
-0.7299138903617859,
0.7678565382957458,
0.8718423247337341,
-0.3161967694759369,
-1.0158568620681763,
-0.10202275961637497,
-0.3841576874256134,
-0.9258913993835449,
1.2066175937652588,
0.5183021426200867,
0.5053730010986328,
0.17822374403476715,
-0.7165399789810181,
-1.2663453817367554,
1.1179593801498413,
-0.095614492893219,
-0.715679407119751,
0.07788247615098953,
0.08181017637252808,
0.4193768799304962,
-0.04827515035867691,
0.3207889795303345,
0.26202523708343506,
0.7430718541145325,
0.35305556654930115,
-1.0756267309188843,
0.10836871713399887,
-0.2559773027896881,
0.19156314432621002,
0.339136004447937,
-1.0545375347137451,
1.1732358932495117,
-0.13226047158241272,
-0.05791192874312401,
0.17428313195705414,
0.7211480736732483,
0.16574431955814362,
0.1505383849143982,
0.5110434293746948,
0.5334877967834473,
0.4026448130607605,
0.007428315933793783,
0.7216033935546875,
-0.5111129879951477,
0.8549508452415466,
0.9703043699264526,
-0.2857983112335205,
0.5598734617233276,
0.30865147709846497,
-0.36338597536087036,
0.30190372467041016,
0.6934768557548523,
-0.4800780117511749,
0.7269102334976196,
0.22721745073795319,
0.0264853797852993,
-0.36009761691093445,
0.7011505961418152,
-0.7157182693481445,
0.3443211019039154,
0.14411351084709167,
-0.30723410844802856,
-0.143910214304924,
0.40245679020881653,
-0.10179327428340912,
-0.4645114839076996,
-0.40964576601982117,
0.6393314599990845,
-0.11537560075521469,
-0.8546690344810486,
1.1236424446105957,
-0.18290424346923828,
0.7344671487808228,
-1.1028891801834106,
0.1894114762544632,
-0.12612734735012054,
0.5982003211975098,
-0.0906367227435112,
-0.48322978615760803,
0.04082280024886131,
-0.22737260162830353,
-0.4130375385284424,
0.10651169717311859,
0.6214993000030518,
-0.6386086940765381,
-0.8150478005409241,
0.1399422436952591,
-0.12721660733222961,
0.0765838623046875,
-0.19176258146762848,
-0.8393353223800659,
0.21414004266262054,
0.1236361563205719,
-0.6155834197998047,
0.4165680408477783,
0.4433782398700714,
0.44042450189590454,
0.7822439074516296,
0.8551858067512512,
-0.0695134624838829,
0.3890344798564911,
-0.3961745500564575,
0.9752590656280518,
-0.8741143941879272,
-0.7212271690368652,
-0.8715733289718628,
0.3752802014350891,
-0.1539216786623001,
-0.20359784364700317,
0.8319737315177917,
0.5313799381256104,
0.6557119488716125,
-0.6695515513420105,
0.6809737086296082,
-0.3108521103858948,
0.4962189495563507,
-0.5369747877120972,
0.8997648358345032,
-0.46594420075416565,
-0.42335081100463867,
-0.2747778594493866,
-1.00352144241333,
-0.10992445051670074,
1.021254539489746,
-0.25532370805740356,
0.2227381467819214,
0.788433849811554,
0.7922159433364868,
-0.408658504486084,
-0.15419158339500427,
0.3054206371307373,
0.7041693329811096,
0.2541794776916504,
0.8563086986541748,
0.7689040899276733,
-0.59515380859375,
0.769015908241272,
-0.24847367405891418,
-0.1626286655664444,
-0.7164955139160156,
-0.7761939764022827,
-1.3366624116897583,
-0.296800434589386,
-0.2404927760362625,
-0.3431733250617981,
0.007204751949757338,
1.157378077507019,
1.0917803049087524,
-0.8132241368293762,
-0.10418295115232468,
0.2284744381904602,
-0.06152547523379326,
-0.44423747062683105,
-0.33049362897872925,
0.7231360077857971,
-0.567273736000061,
-0.6288899779319763,
-0.10584262013435364,
-0.06070606783032417,
0.2938813269138336,
-0.11522313952445984,
-0.15670938789844513,
-0.39284417033195496,
0.031365394592285156,
0.7272908091545105,
0.4646151065826416,
-0.6945812702178955,
-0.2654663920402527,
-0.15193812549114227,
-0.21221725642681122,
-0.10073383152484894,
0.19036854803562164,
-0.6399765610694885,
0.2515259087085724,
0.02650122530758381,
0.5268126130104065,
0.926084041595459,
-0.10568179190158844,
0.18458303809165955,
-0.7438147664070129,
0.6437737941741943,
0.13566811382770538,
0.2084779143333435,
0.21641220152378082,
-0.25517648458480835,
0.3946082293987274,
0.2859728932380676,
-0.7714323401451111,
-0.9804748296737671,
-0.16168281435966492,
-1.1150116920471191,
-0.3912392556667328,
1.2212817668914795,
-0.37974074482917786,
-0.6023916006088257,
0.07830660045146942,
-0.5640042424201965,
0.29748818278312683,
-0.1889498382806778,
0.851952314376831,
0.8902801275253296,
0.3142346143722534,
-0.04286365211009979,
-0.1998637169599533,
0.35851311683654785,
0.4049449861049652,
-0.39636579155921936,
-0.09060607105493546,
0.23393765091896057,
0.5624423623085022,
0.2857251465320587,
0.5919134020805359,
0.04115813225507736,
0.4813023805618286,
0.08544570952653885,
0.4410160183906555,
-0.4347842335700989,
-0.15616224706172943,
-0.14643236994743347,
-0.04703390598297119,
-0.3486586809158325,
-0.6217641830444336
] |
LTP/small
|
LTP
| 2022-09-19T06:36:05Z | 8,748 | 6 |
transformers
|
[
"transformers",
"pytorch",
"endpoints_compatible",
"region:us"
] | null | 2022-08-14T04:14:58Z |



| Language | version |
| ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Python](python/interface/README.md) | [](https://pypi.org/project/ltp) [](https://pypi.org/project/ltp-core) [](https://pypi.org/project/ltp-extension) |
| [Rust](rust/ltp/README.md) | [](https://crates.io/crates/ltp) |
# LTP 4
LTP(Language Technology Platform) 提供了一系列中文自然语言处理工具,用户可以使用这些工具对于中文文本进行分词、词性标注、句法分析等等工作。
## 引用
如果您在工作中使用了 LTP,您可以引用这篇论文
```bibtex
@article{che2020n,
title={N-LTP: A Open-source Neural Chinese Language Technology Platform with Pretrained Models},
author={Che, Wanxiang and Feng, Yunlong and Qin, Libo and Liu, Ting},
journal={arXiv preprint arXiv:2009.11616},
year={2020}
}
```
**参考书:**
由哈工大社会计算与信息检索研究中心(HIT-SCIR)的多位学者共同编著的《[自然语言处理:基于预训练模型的方法](https://item.jd.com/13344628.html)
》(作者:车万翔、郭江、崔一鸣;主审:刘挺)一书现已正式出版,该书重点介绍了新的基于预训练模型的自然语言处理技术,包括基础知识、预训练词向量和预训练模型三大部分,可供广大LTP用户学习参考。
### 更新说明
- 4.2.0
- \[结构性变化\] 将 LTP 拆分成 2 个部分,维护和训练更方便,结构更清晰
- \[Legacy 模型\] 针对广大用户对于**推理速度**的需求,使用 Rust 重写了基于感知机的算法,准确率与 LTP3 版本相当,速度则是 LTP v3 的 **3.55** 倍,开启多线程更可获得 **17.17** 倍的速度提升,但目前仅支持分词、词性、命名实体三大任务
- \[深度学习模型\] 即基于 PyTorch 实现的深度学习模型,支持全部的6大任务(分词/词性/命名实体/语义角色/依存句法/语义依存)
- \[其他改进\] 改进了模型训练方法
- \[共同\] 提供了训练脚本和训练样例,使得用户能够更方便地使用私有的数据,自行训练个性化的模型
- \[深度学习模型\] 采用 hydra 对训练过程进行配置,方便广大用户修改模型训练参数以及对 LTP 进行扩展(比如使用其他包中的 Module)
- \[其他变化\] 分词、依存句法分析 (Eisner) 和 语义依存分析 (Eisner) 任务的解码算法使用 Rust 实现,速度更快
- \[新特性\] 模型上传至 [Huggingface Hub](https://huggingface.co/LTP),支持自动下载,下载速度更快,并且支持用户自行上传自己训练的模型供LTP进行推理使用
- \[破坏性变更\] 改用 Pipeline API 进行推理,方便后续进行更深入的性能优化(如SDP和SDPG很大一部分是重叠的,重用可以加快推理速度),使用说明参见[Github快速使用部分](https://github.com/hit-scir/ltp)
- 4.1.0
- 提供了自定义分词等功能
- 修复了一些bug
- 4.0.0
- 基于Pytorch 开发,原生 Python 接口
- 可根据需要自由选择不同速度和指标的模型
- 分词、词性、命名实体、依存句法、语义角色、语义依存6大任务
## 快速使用
### [Python](python/interface/README.md)
```bash
pip install -U ltp ltp-core ltp-extension -i https://pypi.org/simple # 安装 ltp
```
**注:** 如果遇到任何错误,请尝试使用上述命令重新安装 ltp,如果依然报错,请在 Github issues 中反馈。
```python
import torch
from ltp import LTP
ltp = LTP("LTP/small") # 默认加载 Small 模型
# 将模型移动到 GPU 上
if torch.cuda.is_available():
# ltp.cuda()
ltp.to("cuda")
output = ltp.pipeline(["他叫汤姆去拿外衣。"], tasks=["cws", "pos", "ner", "srl", "dep", "sdp"])
# 使用字典格式作为返回结果
print(output.cws) # print(output[0]) / print(output['cws']) # 也可以使用下标访问
print(output.pos)
print(output.sdp)
# 使用感知机算法实现的分词、词性和命名实体识别,速度比较快,但是精度略低
ltp = LTP("LTP/legacy")
# cws, pos, ner = ltp.pipeline(["他叫汤姆去拿外衣。"], tasks=["cws", "ner"]).to_tuple() # error: NER 需要 词性标注任务的结果
cws, pos, ner = ltp.pipeline(["他叫汤姆去拿外衣。"], tasks=["cws", "pos", "ner"]).to_tuple() # to tuple 可以自动转换为元组格式
# 使用元组格式作为返回结果
print(cws, pos, ner)
```
**[详细说明](python/interface/docs/quickstart.rst)**
### [Rust](rust/ltp/README.md)
```rust
use std::fs::File;
use itertools::multizip;
use ltp::{CWSModel, POSModel, NERModel, ModelSerde, Format, Codec};
fn main() -> Result<(), Box<dyn std::error::Error>> {
let file = File::open("data/legacy-models/cws_model.bin")?;
let cws: CWSModel = ModelSerde::load(file, Format::AVRO(Codec::Deflate))?;
let file = File::open("data/legacy-models/pos_model.bin")?;
let pos: POSModel = ModelSerde::load(file, Format::AVRO(Codec::Deflate))?;
let file = File::open("data/legacy-models/ner_model.bin")?;
let ner: NERModel = ModelSerde::load(file, Format::AVRO(Codec::Deflate))?;
let words = cws.predict("他叫汤姆去拿外衣。")?;
let pos = pos.predict(&words)?;
let ner = ner.predict((&words, &pos))?;
for (w, p, n) in multizip((words, pos, ner)) {
println!("{}/{}/{}", w, p, n);
}
Ok(())
}
```
## 模型性能以及下载地址
| 深度学习模型 | 分词 | 词性 | 命名实体 | 语义角色 | 依存句法 | 语义依存 | 速度(句/S) |
| :---------------------------------------: | :---: | :---: | :---: | :---: | :---: | :---: | :-----: |
| [Base](https://huggingface.co/LTP/base) | 98.7 | 98.5 | 95.4 | 80.6 | 89.5 | 75.2 | 39.12 |
| [Base1](https://huggingface.co/LTP/base1) | 99.22 | 98.73 | 96.39 | 79.28 | 89.57 | 76.57 | --.-- |
| [Base2](https://huggingface.co/LTP/base2) | 99.18 | 98.69 | 95.97 | 79.49 | 90.19 | 76.62 | --.-- |
| [Small](https://huggingface.co/LTP/small) | 98.4 | 98.2 | 94.3 | 78.4 | 88.3 | 74.7 | 43.13 |
| [Tiny](https://huggingface.co/LTP/tiny) | 96.8 | 97.1 | 91.6 | 70.9 | 83.8 | 70.1 | 53.22 |
| 感知机算法 | 分词 | 词性 | 命名实体 | 速度(句/s) | 备注 |
| :-----------------------------------------: | :---: | :---: | :---: | :------: | :------------------------: |
| [Legacy](https://huggingface.co/LTP/legacy) | 97.93 | 98.41 | 94.28 | 21581.48 | [性能详情](rust/ltp/README.md) |
**注:感知机算法速度为开启16线程速度**
## 构建 Wheel 包
```shell script
make bdist
```
## 其他语言绑定
**感知机算法**
- [Rust](rust/ltp)
- [C/C++](rust/ltp-cffi)
**深度学习算法**
- [Rust](https://github.com/HIT-SCIR/libltp/tree/master/ltp-rs)
- [C++](https://github.com/HIT-SCIR/libltp/tree/master/ltp-cpp)
- [Java](https://github.com/HIT-SCIR/libltp/tree/master/ltp-java)
## 作者信息
- 冯云龙 \<\<[[email protected]](mailto:[email protected])>>
## 开源协议
1. 语言技术平台面向国内外大学、中科院各研究所以及个人研究者免费开放源代码,但如上述机构和个人将该平台用于商业目的(如企业合作项目等)则需要付费。
2. 除上述机构以外的企事业单位,如申请使用该平台,需付费。
3. 凡涉及付费问题,请发邮件到 [email protected] 洽商。
4. 如果您在 LTP 基础上发表论文或取得科研成果,请您在发表论文和申报成果时声明“使用了哈工大社会计算与信息检索研究中心研制的语言技术平台(LTP)”.
同时,发信给[email protected],说明发表论文或申报成果的题目、出处等。
|
[
-0.47516971826553345,
-0.6451207995414734,
0.34396493434906006,
0.24772915244102478,
-0.30290651321411133,
0.09453925490379333,
-0.12981396913528442,
-0.38746756315231323,
0.39301276206970215,
0.1506149023771286,
-0.3118319809436798,
-0.48156920075416565,
-0.5590417981147766,
-0.02638665772974491,
0.029260026291012764,
0.9149932265281677,
-0.12101525813341141,
-0.0902855396270752,
0.23844778537750244,
-0.12771250307559967,
-0.39884355664253235,
-0.20209115743637085,
-0.7334698438644409,
-0.3652041554450989,
0.17603562772274017,
0.08985522389411926,
0.6028211116790771,
0.6503503918647766,
0.5163605809211731,
0.3474266827106476,
-0.09404975920915604,
0.16585679352283478,
-0.1403755098581314,
-0.0676775723695755,
0.19143208861351013,
-0.3520203232765198,
-0.48732444643974304,
-0.25099390745162964,
0.8964183330535889,
0.3702910542488098,
0.26114803552627563,
0.12837086617946625,
0.3016805946826935,
0.8620970845222473,
-0.48052987456321716,
0.23870442807674408,
-0.26173168420791626,
0.07466031610965729,
-0.2831578254699707,
-0.5055065751075745,
-0.2137138843536377,
-0.44780418276786804,
-0.07079262286424637,
-0.5306413769721985,
-0.034260399639606476,
0.16960018873214722,
1.269623875617981,
0.11314550787210464,
-0.12736527621746063,
-0.0407390296459198,
-0.49199697375297546,
0.8919899463653564,
-1.0872894525527954,
0.24219001829624176,
0.12112283706665039,
0.11491318792104721,
-0.34877434372901917,
-0.7527121305465698,
-0.6596300005912781,
-0.11224795132875443,
-0.3565717041492462,
0.25228163599967957,
-0.061024900525808334,
-0.14200285077095032,
0.3316695988178253,
0.3349137306213379,
-0.7158570885658264,
-0.0792354866862297,
-0.4614120423793793,
-0.17474044859409332,
0.711896538734436,
0.13675585389137268,
0.5862610936164856,
-0.5297380685806274,
-0.5264167785644531,
-0.2751365602016449,
-0.4674951732158661,
0.45770928263664246,
0.1033579558134079,
0.29589059948921204,
-0.8712999820709229,
0.6346619725227356,
-0.22273080050945282,
0.7175663113594055,
-0.07996293902397156,
-0.3009026050567627,
0.6985043287277222,
-0.41403335332870483,
-0.35780030488967896,
-0.18461455404758453,
1.3778735399246216,
0.5349491834640503,
-0.032394908368587494,
0.05283842980861664,
-0.03179195523262024,
-0.13061964511871338,
-0.4450356662273407,
-0.7471405863761902,
-0.20068860054016113,
0.7575422525405884,
-0.5055391788482666,
-0.2993040680885315,
-0.041998475790023804,
-1.0449588298797607,
0.010610493831336498,
0.042985692620277405,
0.4601489007472992,
-0.8415612578392029,
-0.470267653465271,
0.09034700691699982,
-0.37251752614974976,
0.49481770396232605,
0.09752114862203598,
-0.7494960427284241,
0.21702232956886292,
0.4904872179031372,
1.130479097366333,
-0.09117366373538971,
-0.41829872131347656,
-0.35885560512542725,
0.18275108933448792,
-0.20526286959648132,
0.5810370445251465,
-0.03988220542669296,
-0.20767125487327576,
-0.11170858144760132,
0.024700118228793144,
-0.2864757776260376,
-0.05273938551545143,
0.5508493781089783,
-0.2094549834728241,
0.17219333350658417,
-0.2447471171617508,
-0.30947351455688477,
-0.15173256397247314,
0.2503293454647064,
-0.49374404549598694,
1.1632012128829956,
0.23634971678256989,
-1.437037706375122,
-0.014695282094180584,
-0.7450026869773865,
-0.2724115550518036,
0.11849523335695267,
-0.31501972675323486,
-0.6031928658485413,
-0.25677141547203064,
0.30781933665275574,
0.46222570538520813,
-0.30932971835136414,
-0.038741353899240494,
-0.1854586899280548,
-0.114690862596035,
0.3911922872066498,
-0.07584403455257416,
1.2978020906448364,
0.4055236577987671,
-0.5463714003562927,
0.29711875319480896,
-0.6618091464042664,
0.399358868598938,
0.4310551583766937,
-0.32501640915870667,
-0.09851998835802078,
-0.2060442417860031,
0.050176553428173065,
0.25991106033325195,
0.49556392431259155,
-0.5703192353248596,
0.3135184347629547,
-0.7178170680999756,
0.8342064023017883,
0.8961915969848633,
0.029697241261601448,
0.4284321963787079,
-0.7823323011398315,
0.3193371891975403,
-0.047516901046037674,
0.1520693451166153,
-0.060654155910015106,
-0.6252896189689636,
-0.9841514229774475,
-0.37101444602012634,
0.18957945704460144,
0.6925510168075562,
-0.8924336433410645,
0.6939961314201355,
-0.2705594599246979,
-0.7071619033813477,
-0.3014605939388275,
-0.14255374670028687,
0.4055451452732086,
0.3493157625198364,
0.5522198677062988,
-0.031039664521813393,
-0.7017134428024292,
-0.7044352889060974,
-0.11115224659442902,
-0.19343192875385284,
0.10818900913000107,
0.31461161375045776,
0.8843080401420593,
-0.22979892790317535,
0.9382436275482178,
-0.6908548474311829,
-0.1601106822490692,
-0.34546375274658203,
-0.01686723344027996,
0.6485774517059326,
0.9051466584205627,
0.6874366998672485,
-0.5915178656578064,
-0.7345961332321167,
0.06330656260251999,
-0.847388505935669,
0.12930621206760406,
-0.10826916992664337,
-0.12342146784067154,
0.4137083888053894,
0.1550072580575943,
-0.7189997434616089,
0.39629238843917847,
0.5801326632499695,
-0.5127595067024231,
0.9833911657333374,
-0.3925726115703583,
0.18197475373744965,
-1.3178528547286987,
0.33508026599884033,
-0.2307499796152115,
-0.09382230788469315,
-0.5550293922424316,
0.30372387170791626,
-0.01034897193312645,
0.08127061277627945,
-0.5417708158493042,
0.7821242809295654,
-0.4676662087440491,
0.08908393234014511,
0.060745202004909515,
-0.03406599164009094,
-0.09476231783628464,
0.6518381834030151,
-0.05854244902729988,
0.6144232749938965,
0.8791096210479736,
-0.6960409283638,
0.4033229351043701,
0.20431901514530182,
-0.24561840295791626,
0.07129183411598206,
-0.878697395324707,
0.0320059172809124,
-0.01753244921565056,
0.14057137072086334,
-1.040733814239502,
-0.24511712789535522,
0.6706821918487549,
-0.7859026193618774,
0.3994602859020233,
-0.11853682994842529,
-0.2847733199596405,
-0.6010332107543945,
-0.7870934009552002,
0.16961371898651123,
0.527144730091095,
-0.2619119882583618,
0.6225903630256653,
0.17901818454265594,
-0.030383581295609474,
-0.8766489624977112,
-0.7276391386985779,
-0.3234524726867676,
-0.10519856959581375,
-0.8687610626220703,
0.6344530582427979,
-0.2381347268819809,
-0.07435154914855957,
0.031580738723278046,
0.02886003628373146,
-0.027734359726309776,
-0.200142502784729,
0.36921024322509766,
0.44774356484413147,
-0.017193609848618507,
-0.33023908734321594,
-0.1261099874973297,
-0.14582102000713348,
-0.10581181198358536,
-0.006879881024360657,
0.9014295339584351,
-0.33534637093544006,
-0.26437821984291077,
-0.623042643070221,
0.13303552567958832,
0.7182581424713135,
-0.16761662065982819,
0.6843450665473938,
0.6904664635658264,
-0.13089746236801147,
-0.14457951486110687,
-0.4501839578151703,
-0.1297743171453476,
-0.5175892114639282,
0.19098837673664093,
-0.3402017056941986,
-1.0108003616333008,
0.6192888617515564,
0.20200562477111816,
0.31034865975379944,
0.786572277545929,
0.37457776069641113,
-0.26109370589256287,
0.7120879888534546,
0.45940592885017395,
-0.18602345883846283,
0.4011807441711426,
-0.8908301591873169,
0.09395415335893631,
-0.9290842413902283,
-0.2944834232330322,
-0.7161863446235657,
-0.26519814133644104,
-0.7584442496299744,
-0.6887422800064087,
0.41052255034446716,
0.17667590081691742,
-0.4719945192337036,
0.47341129183769226,
-0.9707443714141846,
-0.06817995011806488,
0.5467372536659241,
0.20660316944122314,
-0.05120304599404335,
-0.02755407802760601,
-0.42228126525878906,
0.04664914682507515,
-0.716369092464447,
-0.3146892786026001,
1.127056360244751,
0.48200151324272156,
0.5041539669036865,
0.05985686555504799,
0.8184750080108643,
0.19945479929447174,
-0.08900651335716248,
-0.55782151222229,
0.6511915326118469,
0.11694889515638351,
-0.7022035717964172,
-0.4031745493412018,
-0.5479545593261719,
-1.015878677368164,
0.20721964538097382,
-0.3648030459880829,
-1.0470622777938843,
0.15278077125549316,
0.15126967430114746,
-0.4461548924446106,
0.6339755058288574,
-0.5987876653671265,
0.8328182101249695,
-0.4561197757720947,
-0.6473284363746643,
0.013956400565803051,
-0.6101433634757996,
0.41981762647628784,
0.26149189472198486,
0.5243726968765259,
-0.09410937130451202,
-0.0144832544028759,
1.0093863010406494,
-0.734742283821106,
0.504732072353363,
-0.2716161608695984,
0.198103129863739,
0.47980207204818726,
-0.002843838185071945,
0.7527507543563843,
0.19602875411510468,
-0.05133075639605522,
0.15859000384807587,
0.2042180299758911,
-0.4646614193916321,
-0.30245059728622437,
0.8638246655464172,
-0.9532081484794617,
-0.44761142134666443,
-0.9708584547042847,
-0.4903649389743805,
0.25593048334121704,
0.4451757073402405,
0.502034604549408,
0.34071648120880127,
0.2010628879070282,
0.20029251277446747,
0.5137880444526672,
-0.6794952750205994,
0.9528838396072388,
0.3191491663455963,
-0.2681148648262024,
-0.6697254180908203,
1.0157479047775269,
0.13395029306411743,
0.1920284628868103,
0.5685377717018127,
0.2363537698984146,
-0.239156112074852,
-0.7519760727882385,
-0.3596109449863434,
0.4775848984718323,
-0.41548776626586914,
-0.3514918088912964,
-0.7350188493728638,
-0.4087430238723755,
-0.7202626466751099,
-0.24363777041435242,
-0.33919739723205566,
-0.514762818813324,
-0.08424857258796692,
0.13502393662929535,
0.6354174017906189,
0.3638545274734497,
-0.34958815574645996,
0.08798172324895859,
-0.7867274880409241,
0.44721704721450806,
0.004479659721255302,
0.3200869858264923,
-0.07972029596567154,
-0.5212852358818054,
-0.18500015139579773,
0.12434040009975433,
-0.4886268675327301,
-0.8968508839607239,
0.8184833526611328,
0.01681552827358246,
0.45047709345817566,
0.18776996433734894,
0.1103300005197525,
0.5342555642127991,
-0.2312345951795578,
0.7900694608688354,
0.46204447746276855,
-0.9736540913581848,
0.6321865320205688,
-0.5314462780952454,
0.26291945576667786,
0.14632545411586761,
0.45756226778030396,
-0.37722012400627136,
-0.19907376170158386,
-0.6736801862716675,
-1.0337309837341309,
0.8461490273475647,
0.32317015528678894,
-0.2480091005563736,
0.17140859365463257,
0.10481679439544678,
-0.3233678638935089,
-0.07129024714231491,
-1.082269310951233,
-0.8337652087211609,
-0.30575135350227356,
0.020029660314321518,
0.12225867807865143,
-0.12816090881824493,
-0.04588819667696953,
-0.35138460993766785,
0.7828975319862366,
0.07252125442028046,
0.7686987519264221,
0.5317555665969849,
0.1714041829109192,
-0.05869213864207268,
0.42634305357933044,
0.5638259053230286,
0.5998530387878418,
-0.5476285815238953,
-0.012690256349742413,
0.28555095195770264,
-0.475099116563797,
0.006200825795531273,
0.1879252791404724,
-0.5106293559074402,
0.10436505079269409,
0.4831145405769348,
0.6759269833564758,
0.08254522830247879,
-0.4662420153617859,
0.400604248046875,
0.12399496883153915,
-0.305355429649353,
-0.4962356388568878,
0.10709798336029053,
0.18993929028511047,
0.20084020495414734,
0.5731041431427002,
0.1384495198726654,
-0.12050966918468475,
-0.5498718023300171,
0.15271121263504028,
0.6197792291641235,
-0.17885802686214447,
-0.09995555877685547,
0.610294759273529,
-0.017124319449067116,
-0.15101799368858337,
0.25814878940582275,
-0.16999271512031555,
-0.6975739002227783,
0.7699241042137146,
0.4904397428035736,
0.738618791103363,
-0.1586080640554428,
0.14911654591560364,
1.0365411043167114,
0.37880346179008484,
0.008085504174232483,
0.5356714725494385,
0.14033210277557373,
-0.7446001768112183,
-0.46863120794296265,
-0.851607620716095,
-0.023031393066048622,
0.3206622004508972,
-0.1694260537624359,
0.3123542368412018,
-0.8239584565162659,
-0.28281399607658386,
0.16983188688755035,
0.33776500821113586,
-0.4730914235115051,
0.1074555516242981,
-0.10930518060922623,
0.9926404356956482,
-0.8136236071586609,
1.0039312839508057,
0.5739130973815918,
-0.6373010277748108,
-1.0091089010238647,
-0.33046796917915344,
-0.1625560075044632,
-0.6008367538452148,
0.8501864075660706,
-0.001730067189782858,
0.06458640843629837,
-0.09491898119449615,
-0.47147583961486816,
-1.133780837059021,
1.252253532409668,
0.19378957152366638,
-0.4092274606227875,
-0.13301534950733185,
0.13757166266441345,
0.36921945214271545,
-0.17793849110603333,
0.6398221254348755,
0.33549290895462036,
0.6913042068481445,
-0.0629061684012413,
-1.1147971153259277,
0.3924446105957031,
-0.42653581500053406,
-0.15079408884048462,
0.10116422921419144,
-0.8955909609794617,
1.333600401878357,
-0.2606160044670105,
-0.17574919760227203,
0.006891507655382156,
0.5587911605834961,
0.6421341300010681,
0.2181481570005417,
0.24301305413246155,
0.7922942638397217,
0.4279780089855194,
-0.40438705682754517,
1.045393943786621,
-0.30897462368011475,
0.593672513961792,
0.8655781149864197,
0.20184513926506042,
0.8645524978637695,
0.47211554646492004,
-0.6465004682540894,
0.6274365186691284,
0.5169265866279602,
-0.18747954070568085,
0.446225106716156,
0.10405950248241425,
-0.25662437081336975,
0.02732320874929428,
0.06883668154478073,
-0.8857859373092651,
0.15155920386314392,
0.3395761251449585,
-0.370904803276062,
0.06468842178583145,
-0.2022363245487213,
0.07843101769685745,
-0.1186063215136528,
-0.21844995021820068,
0.5017358660697937,
-0.0011280463077127934,
-0.6118457913398743,
1.0913513898849487,
0.1344565898180008,
1.083358883857727,
-0.7225679755210876,
-0.00025323141016997397,
0.008519855327904224,
0.15057654678821564,
-0.6026632189750671,
-0.9216246008872986,
0.22691571712493896,
-0.20622149109840393,
-0.13972218334674835,
-0.018232213333249092,
0.7163708209991455,
-0.163678377866745,
-0.354737788438797,
0.4773312509059906,
0.2807449400424957,
0.33462515473365784,
0.3552892208099365,
-1.1468507051467896,
0.38092702627182007,
0.36746323108673096,
-0.3902514576911926,
0.3844430148601532,
0.22055785357952118,
0.35117918252944946,
0.8119060397148132,
0.7997247576713562,
0.3131244480609894,
0.21727371215820312,
-0.40562042593955994,
1.0639625787734985,
-0.7542703151702881,
-0.2880993187427521,
-0.8745386600494385,
0.8374690413475037,
-0.23379406332969666,
-0.3640584647655487,
0.885520339012146,
0.811183750629425,
0.834811270236969,
-0.09711507707834244,
1.0783392190933228,
-0.7374852299690247,
0.6064981818199158,
-0.3613550662994385,
0.7272473573684692,
-0.582651674747467,
0.03222185745835304,
-0.551151692867279,
-0.6781096458435059,
-0.17787371575832367,
0.8802114129066467,
-0.3791997730731964,
0.1315809041261673,
0.8828311562538147,
0.8288887143135071,
0.23038996756076813,
-0.28637924790382385,
-0.05291125923395157,
0.2856864631175995,
0.24927271902561188,
1.0805127620697021,
0.4019082486629486,
-0.8518295884132385,
0.5483425259590149,
-0.7417955994606018,
-0.2814546525478363,
-0.22584055364131927,
-0.843868613243103,
-0.8938413262367249,
-0.6682577133178711,
-0.3567991256713867,
-0.6115739941596985,
-0.06344649195671082,
1.026986837387085,
0.6310988068580627,
-0.8851810097694397,
-0.4450729787349701,
-0.2950756847858429,
0.35063743591308594,
-0.4634622037410736,
-0.3265334963798523,
0.8029151558876038,
-0.31054332852363586,
-0.7989540100097656,
0.21502450108528137,
0.177432581782341,
0.10635583102703094,
0.04197341948747635,
-0.42816635966300964,
-0.5420264005661011,
-0.24492128193378448,
0.32607409358024597,
0.7511470317840576,
-0.6485658288002014,
-0.09899739921092987,
-0.050230830907821655,
-0.1658945083618164,
0.14881235361099243,
0.3830500841140747,
-0.4392825961112976,
0.34205642342567444,
1.0092384815216064,
0.24667900800704956,
0.6410077810287476,
-0.3061025142669678,
0.32493850588798523,
-0.3511366546154022,
0.37465062737464905,
0.11837809532880783,
0.550342321395874,
0.14089293777942657,
-0.3140723705291748,
0.5944504737854004,
0.4103078544139862,
-0.628337562084198,
-0.8483726382255554,
-0.012451855465769768,
-1.3699514865875244,
-0.482840359210968,
1.0978596210479736,
-0.2596753239631653,
-0.3782074451446533,
0.015145894140005112,
-0.3114160895347595,
0.6066490411758423,
-0.5711142420768738,
0.5007052421569824,
0.33152687549591064,
-0.18773461878299713,
-0.26049771904945374,
-0.7216282486915588,
0.6441689133644104,
0.35541966557502747,
-0.7841548323631287,
-0.08998998999595642,
0.1698191612958908,
0.35759496688842773,
0.4761306345462799,
0.8029927015304565,
-0.13463075459003448,
0.14363786578178406,
-0.05267789587378502,
0.2029181271791458,
-0.28762635588645935,
0.1657629758119583,
-0.07119476795196533,
0.2103239893913269,
-0.08094716817140579,
-0.20082056522369385
] |
facebook/xlm-v-base
|
facebook
| 2023-02-08T08:15:57Z | 8,729 | 32 |
transformers
|
[
"transformers",
"pytorch",
"xlm-roberta",
"fill-mask",
"multilingual",
"af",
"am",
"ar",
"as",
"az",
"be",
"bg",
"bn",
"br",
"bs",
"ca",
"cs",
"cy",
"da",
"de",
"el",
"en",
"eo",
"es",
"et",
"eu",
"fa",
"fi",
"fr",
"fy",
"ga",
"gd",
"gl",
"gu",
"ha",
"he",
"hi",
"hr",
"hu",
"hy",
"id",
"is",
"it",
"ja",
"jv",
"ka",
"kk",
"km",
"kn",
"ko",
"ku",
"ky",
"la",
"lo",
"lt",
"lv",
"mg",
"mk",
"ml",
"mn",
"mr",
"ms",
"my",
"ne",
"nl",
"no",
"om",
"or",
"pa",
"pl",
"ps",
"pt",
"ro",
"ru",
"sa",
"sd",
"si",
"sk",
"sl",
"so",
"sq",
"sr",
"su",
"sv",
"sw",
"ta",
"te",
"th",
"tl",
"tr",
"ug",
"uk",
"ur",
"uz",
"vi",
"xh",
"yi",
"zh",
"arxiv:2301.10472",
"license:mit",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] |
fill-mask
| 2023-02-03T19:58:25Z |
---
language:
- multilingual
- af
- am
- ar
- as
- az
- be
- bg
- bn
- br
- bs
- ca
- cs
- cy
- da
- de
- el
- en
- eo
- es
- et
- eu
- fa
- fi
- fr
- fy
- ga
- gd
- gl
- gu
- ha
- he
- hi
- hr
- hu
- hy
- id
- is
- it
- ja
- jv
- ka
- kk
- km
- kn
- ko
- ku
- ky
- la
- lo
- lt
- lv
- mg
- mk
- ml
- mn
- mr
- ms
- my
- ne
- nl
- no
- om
- or
- pa
- pl
- ps
- pt
- ro
- ru
- sa
- sd
- si
- sk
- sl
- so
- sq
- sr
- su
- sv
- sw
- ta
- te
- th
- tl
- tr
- ug
- uk
- ur
- uz
- vi
- xh
- yi
- zh
license: mit
---
# XLM-V (Base-sized model)
XLM-V is multilingual language model with a one million token vocabulary trained on 2.5TB of data from Common Crawl (same as XLM-R).
It was introduced in the [XLM-V: Overcoming the Vocabulary Bottleneck in Multilingual Masked Language Models](https://arxiv.org/abs/2301.10472)
paper by Davis Liang, Hila Gonen, Yuning Mao, Rui Hou, Naman Goyal, Marjan Ghazvininejad, Luke Zettlemoyer and Madian Khabsa.
**Disclaimer**: The team releasing XLM-V did not write a model card for this model so this model card has been written by the Hugging Face team. [This repository](https://github.com/stefan-it/xlm-v-experiments) documents all necessary integeration steps.
## Model description
From the abstract of the XLM-V paper:
> Large multilingual language models typically rely on a single vocabulary shared across 100+ languages.
> As these models have increased in parameter count and depth, vocabulary size has remained largely unchanged.
> This vocabulary bottleneck limits the representational capabilities of multilingual models like XLM-R.
> In this paper, we introduce a new approach for scaling to very large multilingual vocabularies by
> de-emphasizing token sharing between languages with little lexical overlap and assigning vocabulary capacity
> to achieve sufficient coverage for each individual language. Tokenizations using our vocabulary are typically
> more semantically meaningful and shorter compared to XLM-R. Leveraging this improved vocabulary, we train XLM-V,
> a multilingual language model with a one million token vocabulary. XLM-V outperforms XLM-R on every task we
> tested on ranging from natural language inference (XNLI), question answering (MLQA, XQuAD, TyDiQA), and
> named entity recognition (WikiAnn) to low-resource tasks (Americas NLI, MasakhaNER).
## Usage
You can use this model directly with a pipeline for masked language modeling:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='facebook/xlm-v-base')
>>> unmasker("Paris is the <mask> of France.")
[{'score': 0.9286897778511047,
'token': 133852,
'token_str': 'capital',
'sequence': 'Paris is the capital of France.'},
{'score': 0.018073994666337967,
'token': 46562,
'token_str': 'Capital',
'sequence': 'Paris is the Capital of France.'},
{'score': 0.013238662853837013,
'token': 8696,
'token_str': 'centre',
'sequence': 'Paris is the centre of France.'},
{'score': 0.010450296103954315,
'token': 550136,
'token_str': 'heart',
'sequence': 'Paris is the heart of France.'},
{'score': 0.005028395913541317,
'token': 60041,
'token_str': 'center',
'sequence': 'Paris is the center of France.'}]
```
## Bias, Risks, and Limitations
Please refer to the model card of [XLM-R](https://huggingface.co/xlm-roberta-base), because XLM-V has a similar architecture
and has been trained on similar training data.
### BibTeX entry and citation info
```bibtex
@ARTICLE{2023arXiv230110472L,
author = {{Liang}, Davis and {Gonen}, Hila and {Mao}, Yuning and {Hou}, Rui and {Goyal}, Naman and {Ghazvininejad}, Marjan and {Zettlemoyer}, Luke and {Khabsa}, Madian},
title = "{XLM-V: Overcoming the Vocabulary Bottleneck in Multilingual Masked Language Models}",
journal = {arXiv e-prints},
keywords = {Computer Science - Computation and Language, Computer Science - Machine Learning},
year = 2023,
month = jan,
eid = {arXiv:2301.10472},
pages = {arXiv:2301.10472},
doi = {10.48550/arXiv.2301.10472},
archivePrefix = {arXiv},
eprint = {2301.10472},
primaryClass = {cs.CL},
adsurl = {https://ui.adsabs.harvard.edu/abs/2023arXiv230110472L},
adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}
```
|
[
-0.6150336265563965,
-0.7279801964759827,
0.2002899944782257,
0.1983499974012375,
-0.12564973533153534,
0.12887637317180634,
-0.4388499855995178,
-0.3718678951263428,
0.3056703507900238,
0.6792788505554199,
-0.45943018794059753,
-0.6310511231422424,
-0.6228432059288025,
0.03481035307049751,
-0.0522417314350605,
0.7999486327171326,
-0.03730655834078789,
0.1512904018163681,
-0.07864855229854584,
-0.4352017939090729,
-0.3009953796863556,
-1.0235438346862793,
-0.7079439759254456,
-0.2579509913921356,
0.405646413564682,
0.28349360823631287,
0.4994131922721863,
0.9765444993972778,
0.34205910563468933,
0.3610478639602661,
-0.34441423416137695,
0.3804556429386139,
-0.40257757902145386,
-0.3832031190395355,
0.1603686809539795,
-0.47505518794059753,
-0.7075239419937134,
-0.20769399404525757,
0.8752805590629578,
0.7699713706970215,
0.04984331130981445,
0.15346404910087585,
-0.09329505264759064,
0.6694110631942749,
-0.32097023725509644,
0.26045969128608704,
-0.57755446434021,
0.0539645217359066,
0.01395055465400219,
0.03512080758810043,
-0.33543163537979126,
0.22988055646419525,
-0.08441431075334549,
-0.37273988127708435,
-0.022970285266637802,
0.12327076494693756,
1.1734027862548828,
-0.038633331656455994,
-0.3803795576095581,
0.12703830003738403,
-0.4969593584537506,
1.066602349281311,
-0.6435232758522034,
0.5278251767158508,
0.17256440222263336,
0.25110557675361633,
0.22344240546226501,
-0.5658723711967468,
-0.6379179358482361,
-0.11871351301670074,
-0.1015782505273819,
0.15468360483646393,
-0.33306455612182617,
-0.11988458782434464,
0.3352988660335541,
0.2081475406885147,
-0.6525124907493591,
0.11480387300252914,
-0.530561089515686,
-0.2772012948989868,
0.5940096974372864,
0.0047331745736300945,
0.24930378794670105,
-0.2654123306274414,
-0.6398969292640686,
-0.3055896461009979,
-0.5767302513122559,
0.1410660296678543,
0.23547038435935974,
0.7635807991027832,
-0.33830195665359497,
0.4869268834590912,
-0.13745331764221191,
0.732818067073822,
-0.23173634707927704,
-0.011140563525259495,
0.9028280377388,
-0.49071216583251953,
-0.15816472470760345,
-0.12174073606729507,
0.9878132939338684,
0.4503708481788635,
0.2699514627456665,
0.06510521471500397,
-0.161152184009552,
-0.026013348251581192,
-0.05807802081108093,
-0.9099909067153931,
0.07486365735530853,
0.4134610891342163,
-0.28179770708084106,
-0.06768504530191422,
0.18587975203990936,
-0.6508663892745972,
0.10729990899562836,
-0.4362330436706543,
0.522602915763855,
-0.4911872148513794,
-0.45916736125946045,
0.2210674285888672,
0.10742036998271942,
0.2510923743247986,
0.01932605355978012,
-0.5265844464302063,
0.42261192202568054,
0.6459916234016418,
1.1443642377853394,
-0.2281607687473297,
-0.32211369276046753,
-0.6821315288543701,
-0.43828681111335754,
-0.21551653742790222,
0.5404258966445923,
-0.3763452470302582,
-0.2639896273612976,
-0.02313811704516411,
0.307048499584198,
-0.1682250201702118,
-0.5215027928352356,
0.4842663109302521,
-0.1991073042154312,
0.06994608044624329,
-0.23818980157375336,
-0.4687133729457855,
-0.311033695936203,
0.4037391245365143,
-0.7207302451133728,
1.1092934608459473,
0.10819848626852036,
-0.6050175428390503,
0.24930863082408905,
-0.5665900707244873,
0.010628282092511654,
-0.009415668435394764,
-0.07991525530815125,
-0.6567903161048889,
-0.3108840584754944,
0.46451035141944885,
0.568276584148407,
0.01064318884164095,
-0.006568259559571743,
-0.16238729655742645,
-0.1190997064113617,
0.11105088889598846,
-0.010628385469317436,
0.8709626793861389,
0.31076720356941223,
-0.25664812326431274,
0.11585193872451782,
-1.021683931350708,
0.23170039057731628,
0.11096880584955215,
-0.14587967097759247,
-0.3612265884876251,
-0.3608887493610382,
0.3191750645637512,
0.5624147057533264,
0.24858394265174866,
-0.4642516076564789,
0.1659940481185913,
-0.5762369632720947,
0.5343545079231262,
0.5042088031768799,
-0.2437717169523239,
0.5490450859069824,
-0.27428510785102844,
0.5887345671653748,
0.3301760256290436,
0.08695808798074722,
-0.4579344391822815,
-0.5230697393417358,
-0.6651845574378967,
-0.592905580997467,
0.3059678375720978,
0.8029873371124268,
-0.5827525854110718,
0.4600588083267212,
-0.40111589431762695,
-0.644359827041626,
-0.5335502028465271,
0.1282888501882553,
0.6553794145584106,
0.47716352343559265,
0.4735676348209381,
-0.3587377667427063,
-0.7398287653923035,
-0.8116869926452637,
-0.0010283980518579483,
0.08097619563341141,
0.14462126791477203,
0.5749867558479309,
0.6351328492164612,
-0.383946031332016,
0.7724537253379822,
-0.43779200315475464,
-0.34497228264808655,
-0.393655925989151,
-0.11248058080673218,
0.3597707450389862,
0.4862077534198761,
0.8095213770866394,
-0.8916921615600586,
-0.765859842300415,
0.2040797621011734,
-0.490687757730484,
-0.10758711397647858,
0.16189011931419373,
-0.16400392353534698,
0.4723038077354431,
0.6674172282218933,
-0.5658414363861084,
0.08978913724422455,
0.7620497345924377,
-0.37539365887641907,
0.5175286531448364,
-0.24985715746879578,
-0.12025519460439682,
-1.3931992053985596,
0.13136081397533417,
0.04323010519146919,
-0.37654563784599304,
-0.787093997001648,
0.0738062635064125,
0.20665177702903748,
-0.0158547293394804,
-0.5951705574989319,
0.9344784021377563,
-0.6147130727767944,
0.14630255103111267,
-0.07986538857221603,
0.46598753333091736,
-0.022664783522486687,
0.8113182187080383,
0.34720486402511597,
0.3996899127960205,
0.9513302445411682,
-0.46601876616477966,
0.24008186161518097,
0.16225741803646088,
-0.1863633096218109,
0.4972773492336273,
-0.6336756944656372,
0.009770382195711136,
-0.16507413983345032,
0.11436472833156586,
-0.8998996019363403,
0.10943327099084854,
0.18343113362789154,
-0.5182888507843018,
0.40842509269714355,
-0.24446861445903778,
-0.30396348237991333,
-0.5016290545463562,
-0.311402291059494,
0.42249956727027893,
0.5049879550933838,
-0.4745871424674988,
0.6165036559104919,
0.42774835228919983,
-0.046307895332574844,
-0.9971109628677368,
-0.7314488887786865,
0.131717711687088,
-0.32365551590919495,
-0.6508999466896057,
0.35594046115875244,
-0.29592764377593994,
-0.2639325261116028,
0.02305956743657589,
0.07765042781829834,
-0.037787314504384995,
-0.2349126636981964,
0.2658676207065582,
0.427805095911026,
-0.23273631930351257,
0.06317101418972015,
-0.3267952501773834,
-0.24817024171352386,
-0.16391904652118683,
-0.48310586810112,
0.7033703923225403,
-0.3421112596988678,
-0.038585469126701355,
-0.1360665261745453,
0.3990499675273895,
0.5715030431747437,
-0.3935272693634033,
1.076987624168396,
0.8123810291290283,
-0.44109612703323364,
-0.1569148153066635,
-0.4905942976474762,
-0.008357270620763302,
-0.40774282813072205,
0.7630185484886169,
-0.5201250910758972,
-1.0399422645568848,
0.8513171076774597,
0.15609686076641083,
0.06653812527656555,
0.589798629283905,
0.7738981246948242,
0.5509125590324402,
1.0400452613830566,
0.731392502784729,
-0.1893068104982376,
0.4076855182647705,
-0.6298347115516663,
0.18365010619163513,
-0.8165664076805115,
-0.17837302386760712,
-0.5545602440834045,
0.04014977812767029,
-0.7106491923332214,
-0.7504177689552307,
0.2434825748205185,
0.013419614173471928,
-0.23227958381175995,
0.6424767374992371,
-0.46983322501182556,
0.2369084656238556,
0.45615336298942566,
0.016374757513403893,
0.1456720530986786,
0.10934212803840637,
-0.45742160081863403,
-0.020566990599036217,
-0.8430635333061218,
-0.3944428861141205,
1.2133255004882812,
0.4153289198875427,
0.3793353736400604,
0.045830342918634415,
0.6659925580024719,
-0.1725674867630005,
0.14213499426841736,
-0.7618953585624695,
0.4840814173221588,
-0.20241476595401764,
-0.5053858757019043,
-0.3668838143348694,
-0.7524966597557068,
-0.9340196847915649,
0.5907617211341858,
-0.24689637124538422,
-0.8443974852561951,
0.08625032752752304,
0.089603953063488,
-0.38990238308906555,
0.48094040155410767,
-0.7472233772277832,
0.9184194207191467,
-0.14991918206214905,
-0.3185921311378479,
0.10529972612857819,
-0.607461154460907,
0.3002784848213196,
-0.3070761263370514,
0.6938676238059998,
0.13513882458209991,
-0.07180024683475494,
0.6075503826141357,
-0.7147819399833679,
0.6969938278198242,
-0.07542562484741211,
-0.03168555349111557,
0.2462378889322281,
-0.22777986526489258,
0.5257585048675537,
0.042738139629364014,
-0.01863555610179901,
0.7044162154197693,
-0.017035827040672302,
-0.4967074394226074,
-0.326142817735672,
0.8022589087486267,
-1.0345789194107056,
-0.31175220012664795,
-0.3277621865272522,
-0.6498674154281616,
0.03478453308343887,
0.3368665874004364,
0.3764123022556305,
0.48221054673194885,
-0.021642617881298065,
0.2269670069217682,
0.6337493658065796,
-0.45154517889022827,
0.3225252032279968,
0.5720239281654358,
-0.4337981343269348,
-0.5070240497589111,
0.8741323947906494,
0.43888574838638306,
0.47924354672431946,
0.7230923771858215,
0.20401334762573242,
-0.3729318380355835,
-0.3120177984237671,
-0.2946237623691559,
0.39643535017967224,
-0.5633447766304016,
-0.1444454938173294,
-1.1110954284667969,
-0.49423834681510925,
-0.477096825838089,
-0.08048926293849945,
-0.6329135298728943,
-0.4861689507961273,
0.0013869666727259755,
-0.17556403577327728,
0.4523824155330658,
0.2394416630268097,
-0.3807237148284912,
0.07811852544546127,
-0.6449509263038635,
0.21430382132530212,
0.25323617458343506,
0.1530970185995102,
-0.0918651595711708,
-0.8137944936752319,
-0.532703697681427,
0.11228937655687332,
-0.04794739931821823,
-0.4490612745285034,
0.8006805777549744,
0.1969710886478424,
0.481962651014328,
0.4068501591682434,
-0.1481064260005951,
0.7302411198616028,
-0.6946634650230408,
0.7362719178199768,
0.21751031279563904,
-0.8121359348297119,
0.2075568437576294,
-0.09123563021421432,
0.43694058060646057,
0.06315509229898453,
0.3565977215766907,
-0.663628876209259,
-0.453139066696167,
-0.6657129526138306,
-1.2160977125167847,
0.7597616910934448,
0.2832297384738922,
0.3202930986881256,
0.02597813308238983,
0.285622775554657,
-0.10183708369731903,
0.1417529135942459,
-0.9754248261451721,
-0.7576676607131958,
-0.368744820356369,
-0.06360320746898651,
-0.3638259172439575,
-0.27289456129074097,
-0.02776593714952469,
-0.32069846987724304,
0.7763711810112,
-0.13103321194648743,
0.3171647787094116,
0.2220468968153,
0.016574852168560028,
-0.09427259862422943,
0.08642908185720444,
0.766349196434021,
0.5344130396842957,
-0.2835429608821869,
0.16381065547466278,
0.352099746465683,
-0.5647608041763306,
-0.16962017118930817,
0.2523137629032135,
0.03166532889008522,
0.18595151603221893,
0.4253639578819275,
0.9779905080795288,
0.039715442806482315,
-0.797333836555481,
0.5708741545677185,
0.045372188091278076,
-0.5003020763397217,
-0.5201456546783447,
-0.11207100003957748,
0.16940273344516754,
0.29294463992118835,
0.3398875892162323,
0.0723184198141098,
-0.28043800592422485,
-0.5224528312683105,
0.32794126868247986,
0.48511889576911926,
-0.5468475818634033,
-0.28993937373161316,
0.7579079866409302,
-0.24609488248825073,
-0.2720887064933777,
0.23444847762584686,
-0.27432888746261597,
-0.7288729548454285,
0.7051868438720703,
0.33318203687667847,
0.8053710460662842,
-0.2913740575313568,
0.06142939627170563,
0.842697024345398,
0.432000994682312,
-0.18668505549430847,
0.2428523153066635,
0.1766049861907959,
-0.9620718955993652,
-0.5788163542747498,
-0.6909213662147522,
-0.1717894971370697,
0.4219144284725189,
-0.5748021602630615,
0.4069478511810303,
-0.19540180265903473,
-0.1750485748052597,
0.01239249762147665,
0.21335138380527496,
-0.7380562424659729,
0.13921882212162018,
0.24336183071136475,
1.0386803150177002,
-0.7948078513145447,
0.8301796913146973,
0.7896565198898315,
-0.3396908640861511,
-0.9394746422767639,
-0.5208736062049866,
-0.018457841128110886,
-0.9337463974952698,
0.694266676902771,
0.3239647150039673,
0.16304552555084229,
-0.09178091585636139,
-0.527001142501831,
-1.0242102146148682,
1.0757821798324585,
0.06614082306623459,
-0.908686637878418,
0.24881598353385925,
0.33358100056648254,
0.5893865823745728,
-0.5487635135650635,
0.21316049993038177,
0.23364895582199097,
0.393196165561676,
0.17220968008041382,
-1.0193121433258057,
0.049692124128341675,
-0.406801700592041,
0.02795448899269104,
0.11466865986585617,
-0.961563229560852,
1.2167054414749146,
-0.276253879070282,
0.012249581515789032,
0.007318518124520779,
0.49075186252593994,
0.3749249279499054,
0.08331036567687988,
0.5681777000427246,
0.7381944060325623,
0.6365281939506531,
-0.1545339822769165,
0.8898007869720459,
-0.7034716010093689,
0.66285240650177,
0.9037990570068359,
-0.09538828581571579,
0.8094831705093384,
0.3763779401779175,
-0.09240920096635818,
0.378698468208313,
0.35848572850227356,
-0.07661561667919159,
0.2169838845729828,
0.18664149940013885,
-0.037402983754873276,
-0.3495846390724182,
0.05394069477915764,
-0.3157518208026886,
0.4721824824810028,
0.2644103467464447,
-0.3477967381477356,
-0.06918365508317947,
0.15447063744068146,
0.5249509811401367,
0.07248744368553162,
-0.4642696976661682,
0.3979180157184601,
0.3276027739048004,
-0.45567816495895386,
0.8248982429504395,
0.19270451366901398,
0.7094429731369019,
-0.695608913898468,
0.07498331367969513,
-0.26017478108406067,
0.2384043186903,
-0.04289420321583748,
-0.46321576833724976,
0.1381458044052124,
0.06672084331512451,
-0.09977897256612778,
-0.22754311561584473,
0.4470081329345703,
-0.6809015274047852,
-0.851611852645874,
0.5019247531890869,
0.6502729058265686,
0.14813341200351715,
-0.19618023931980133,
-0.9079926609992981,
0.08844210207462311,
-0.15666115283966064,
-0.4889436960220337,
0.2985652983188629,
0.6240844130516052,
-0.1605871319770813,
0.7100855112075806,
0.6331747174263,
0.2654995918273926,
0.023947162553668022,
0.1239231750369072,
0.8356519341468811,
-0.7009084820747375,
-0.5623969435691833,
-0.9532685875892639,
0.5912637114524841,
-0.10698270052671432,
-0.17733265459537506,
0.9842454195022583,
0.7327698469161987,
1.0262056589126587,
0.003381154267117381,
0.735692024230957,
-0.0020567888859659433,
0.485049307346344,
-0.46371620893478394,
0.5970051288604736,
-0.8247378468513489,
0.16052529215812683,
-0.4904649257659912,
-0.9059725999832153,
-0.5411494374275208,
0.5279558897018433,
-0.0797153115272522,
0.19355173408985138,
0.5142363905906677,
1.0985076427459717,
0.020761629566550255,
-0.779323399066925,
0.5559437870979309,
0.5532687902450562,
0.16672898828983307,
0.6448767781257629,
0.2844458520412445,
-0.5714128613471985,
0.7090854644775391,
-0.3047194182872772,
-0.351235568523407,
-0.1923370361328125,
-0.8189426064491272,
-1.1555719375610352,
-0.7464980483055115,
-0.47542697191238403,
-0.45338496565818787,
-0.23932024836540222,
0.9195470809936523,
0.8684098124504089,
-0.8275522589683533,
-0.31501370668411255,
0.023238658905029297,
0.10296732932329178,
-0.5847504734992981,
-0.27928492426872253,
0.6308175325393677,
-0.19179970026016235,
-1.0252110958099365,
0.03231026232242584,
0.3288204073905945,
-0.03555025905370712,
-0.374400794506073,
-0.25451937317848206,
-0.16696397960186005,
0.27220648527145386,
0.836127758026123,
0.275094211101532,
-0.5367174744606018,
-0.20928709208965302,
0.2718769609928131,
-0.13920627534389496,
0.25438129901885986,
0.30532923340797424,
-0.6473429799079895,
0.5741934180259705,
0.26447203755378723,
0.27422159910202026,
0.579167902469635,
-0.12758387625217438,
0.26717689633369446,
-0.8849945664405823,
0.4278266727924347,
-0.23015515506267548,
0.5366778373718262,
0.4133339822292328,
-0.2288656085729599,
0.3810003399848938,
0.39261114597320557,
-0.4083974063396454,
-0.9202905297279358,
0.07215334475040436,
-1.3723872900009155,
-0.2831093370914459,
1.4138437509536743,
-0.13991190493106842,
-0.4446837902069092,
0.06907890737056732,
-0.31789448857307434,
0.17040637135505676,
-0.3087548613548279,
0.6582347750663757,
0.6983715891838074,
0.27758920192718506,
-0.37820449471473694,
-0.6825190186500549,
0.3703228533267975,
0.1341669261455536,
-0.48090431094169617,
-0.07903949916362762,
0.12553271651268005,
0.33349165320396423,
0.44826099276542664,
0.6319873332977295,
-0.2106812298297882,
-0.06746897846460342,
0.008654071018099785,
0.35841652750968933,
-0.16277769207954407,
-0.0945659875869751,
-0.30359023809432983,
0.0917191207408905,
-0.2747413218021393,
-0.10063590854406357
] |
microsoft/Orca-2-7b
|
microsoft
| 2023-11-22T17:56:12Z | 8,712 | 133 |
transformers
|
[
"transformers",
"pytorch",
"llama",
"text-generation",
"orca",
"orca2",
"microsoft",
"arxiv:2311.11045",
"license:other",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-11-14T01:12:18Z |
---
pipeline_tag: text-generation
tags:
- orca
- orca2
- microsoft
license: other
license_name: microsoft-research-license
license_link: LICENSE
---
# Orca 2
<!-- Provide a quick summary of what the model is/does. -->
Orca 2 is built for research purposes only and provides a single turn response in tasks such as reasoning over user given data, reading comprehension, math problem solving and text summarization. The model is designed to excel particularly in reasoning.
Note that:
1. This is a research model, intended to show that we can use capable models and complex workflows (advanced prompts, multiple calls) to create synthetic data that can teach Small Language Models (SLMs) new capabilities. We chose reasoning because it is a widely useful capability that SLMs lack.
2. The model is not optimized for chat and has not been trained with RLHF or DPO. It is best used after being finetuned for chat or for a specific task.
3. Beyond reasoning, the model inherits capabilities and limitations of its base (LLAMA-2 base). We have already seen that the benefits of the Orca training can be applied to other base model too.
We make Orca 2's weights publicly available to support further research on the development, evaluation, and alignment of SLMs.
## What is Orca 2’s intended use(s)?
+ Orca 2 is built for research purposes only.
+ The main purpose is to allow the research community to assess its abilities and to provide a foundation for building better frontier models.
## How was Orca 2 evaluated?
+ Orca 2 has been evaluated on a large number of tasks ranging from reasoning to grounding and safety. Please refer
to Section 6 and Appendix in the [Orca 2 paper](https://arxiv.org/pdf/2311.11045.pdf) for details on evaluations.
## Model Details
Orca 2 is a finetuned version of LLAMA-2. Orca 2’s training data is a synthetic dataset that was created to enhance the small model’s reasoning abilities.
All synthetic training data was moderated using the Microsoft Azure content filters. More details about the model can be found in the [Orca 2 paper](https://arxiv.org/pdf/2311.11045.pdf).
Please refer to LLaMA-2 technical report for details on the model architecture.
## License
Orca 2 is licensed under the [Microsoft Research License](LICENSE).
Llama 2 is licensed under the [LLAMA 2 Community License](https://ai.meta.com/llama/license/), Copyright © Meta Platforms, Inc. All Rights Reserved.
## Bias, Risks, and Limitations
Orca 2, built upon the LLaMA 2 model family, retains many of its limitations, as well as the
common limitations of other large language models or limitation caused by its training
process, including:
**Data Biases**: Large language models, trained on extensive data, can inadvertently carry
biases present in the source data. Consequently, the models may generate outputs that could
be potentially biased or unfair.
**Lack of Contextual Understanding**: Despite their impressive capabilities in language understanding and generation, these models exhibit limited real-world understanding, resulting
in potential inaccuracies or nonsensical responses.
**Lack of Transparency**: Due to the complexity and size, large language models can act
as “black boxes”, making it difficult to comprehend the rationale behind specific outputs or
decisions. We recommend reviewing transparency notes from Azure for more information.
**Content Harms**: There are various types of content harms that large language models
can cause. It is important to be aware of them when using these models, and to take
actions to prevent them. It is recommended to leverage various content moderation services
provided by different companies and institutions. On an important note, we hope for better
regulations and standards from government and technology leaders around content harms
for AI technologies in future. We value and acknowledge the important role that research
and open source community can play in this direction.
**Hallucination**: It is important to be aware and cautious not to entirely rely on a given
language model for critical decisions or information that might have deep impact as it is
not obvious how to prevent these models from fabricating content. Moreover, it is not clear
whether small models may be more susceptible to hallucination in ungrounded generation
use cases due to their smaller sizes and hence reduced memorization capacities. This is an
active research topic and we hope there will be more rigorous measurement, understanding
and mitigations around this topic.
**Potential for Misuse**: Without suitable safeguards, there is a risk that these models could
be maliciously used for generating disinformation or harmful content.
**Data Distribution**: Orca 2’s performance is likely to correlate strongly with the distribution
of the tuning data. This correlation might limit its accuracy in areas underrepresented in
the training dataset such as math, coding, and reasoning.
**System messages**: Orca 2 demonstrates variance in performance depending on the system
instructions. Additionally, the stochasticity introduced by the model size may lead to
generation of non-deterministic responses to different system instructions.
**Zero-Shot Settings**: Orca 2 was trained on data that mostly simulate zero-shot settings.
While the model demonstrate very strong performance in zero-shot settings, it does not show
the same gains of using few-shot learning compared to other, specially larger, models.
**Synthetic data**: As Orca 2 is trained on synthetic data, it could inherit both the advantages
and shortcomings of the models and methods used for data generation. We posit that Orca
2 benefits from the safety measures incorporated during training and safety guardrails (e.g.,
content filter) within the Azure OpenAI API. However, detailed studies are required for
better quantification of such risks.
This model is solely designed for research settings, and its testing has only been carried
out in such environments. It should not be used in downstream applications, as additional
analysis is needed to assess potential harm or bias in the proposed application.
## Getting started with Orca 2
**Inference with Hugging Face library**
```python
import torch
import transformers
if torch.cuda.is_available():
torch.set_default_device("cuda")
else:
torch.set_default_device("cpu")
model = transformers.AutoModelForCausalLM.from_pretrained("microsoft/Orca-2-7b", device_map='auto')
# https://github.com/huggingface/transformers/issues/27132
# please use the slow tokenizer since fast and slow tokenizer produces different tokens
tokenizer = transformers.AutoTokenizer.from_pretrained(
"microsoft/Orca-2-7b",
use_fast=False,
)
system_message = "You are Orca, an AI language model created by Microsoft. You are a cautious assistant. You carefully follow instructions. You are helpful and harmless and you follow ethical guidelines and promote positive behavior."
user_message = "How can you determine if a restaurant is popular among locals or mainly attracts tourists, and why might this information be useful?"
prompt = f"<|im_start|>system\n{system_message}<|im_end|>\n<|im_start|>user\n{user_message}<|im_end|>\n<|im_start|>assistant"
inputs = tokenizer(prompt, return_tensors='pt')
output_ids = model.generate(inputs["input_ids"],)
answer = tokenizer.batch_decode(output_ids)[0]
print(answer)
# This example continues showing how to add a second turn message by the user to the conversation
second_turn_user_message = "Give me a list of the key points of your first answer."
# we set add_special_tokens=False because we dont want to automatically add a bos_token between messages
second_turn_message_in_markup = f"\n<|im_start|>user\n{second_turn_user_message}<|im_end|>\n<|im_start|>assistant"
second_turn_tokens = tokenizer(second_turn_message_in_markup, return_tensors='pt', add_special_tokens=False)
second_turn_input = torch.cat([output_ids, second_turn_tokens['input_ids']], dim=1)
output_ids_2 = model.generate(second_turn_input,)
second_turn_answer = tokenizer.batch_decode(output_ids_2)[0]
print(second_turn_answer)
```
**Safe inference with Azure AI Content Safety**
The usage of [Azure AI Content Safety](https://azure.microsoft.com/en-us/products/ai-services/ai-content-safety/) on top of model prediction is strongly encouraged
and can help preventing some of content harms. Azure AI Content Safety is a content moderation platform
that uses AI to moderate content. By having Azure AI Content Safety on the output of Orca 2,
the model output can be moderated by scanning it for different harm categories including sexual content, violence, hate, and
self-harm with multiple severity levels and multi-lingual detection.
```python
import os
import math
import transformers
import torch
from azure.ai.contentsafety import ContentSafetyClient
from azure.core.credentials import AzureKeyCredential
from azure.core.exceptions import HttpResponseError
from azure.ai.contentsafety.models import AnalyzeTextOptions
CONTENT_SAFETY_KEY = os.environ["CONTENT_SAFETY_KEY"]
CONTENT_SAFETY_ENDPOINT = os.environ["CONTENT_SAFETY_ENDPOINT"]
# We use Azure AI Content Safety to filter out any content that reaches "Medium" threshold
# For more information: https://learn.microsoft.com/en-us/azure/ai-services/content-safety/
def should_filter_out(input_text, threshold=4):
# Create an Content Safety client
client = ContentSafetyClient(CONTENT_SAFETY_ENDPOINT, AzureKeyCredential(CONTENT_SAFETY_KEY))
# Construct a request
request = AnalyzeTextOptions(text=input_text)
# Analyze text
try:
response = client.analyze_text(request)
except HttpResponseError as e:
print("Analyze text failed.")
if e.error:
print(f"Error code: {e.error.code}")
print(f"Error message: {e.error.message}")
raise
print(e)
raise
categories = ["hate_result", "self_harm_result", "sexual_result", "violence_result"]
max_score = -math.inf
for category in categories:
max_score = max(max_score, getattr(response, category).severity)
return max_score >= threshold
model_path = 'microsoft/Orca-2-7b'
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
model = transformers.AutoModelForCausalLM.from_pretrained(model_path)
model.to(device)
tokenizer = transformers.AutoTokenizer.from_pretrained(
model_path,
model_max_length=4096,
padding_side="right",
use_fast=False,
add_special_tokens=False,
)
system_message = "You are Orca, an AI language model created by Microsoft. You are a cautious assistant. You carefully follow instructions. You are helpful and harmless and you follow ethical guidelines and promote positive behavior."
user_message = "\" \n :You can't just say, \"\"that's crap\"\" and remove it without gaining a consensus. You already know this, based on your block history. —/ \" \nIs the comment obscene? \nOptions : Yes, No."
prompt = f"<|im_start|>system\n{system_message}<|im_end|>\n<|im_start|>user\n{user_message}<|im_end|>\n<|im_start|>assistant"
inputs = tokenizer(prompt, return_tensors='pt')
inputs = inputs.to(device)
output_ids = model.generate(inputs["input_ids"], max_length=4096, do_sample=False, temperature=0.0, use_cache=True)
sequence_length = inputs["input_ids"].shape[1]
new_output_ids = output_ids[:, sequence_length:]
answers = tokenizer.batch_decode(new_output_ids, skip_special_tokens=True)
final_output = answers[0] if not should_filter_out(answers[0]) else "[Content Filtered]"
print(final_output)
```
## Citation
```bibtex
@misc{mitra2023orca,
title={Orca 2: Teaching Small Language Models How to Reason},
author={Arindam Mitra and Luciano Del Corro and Shweti Mahajan and Andres Codas and Clarisse Simoes and Sahaj Agrawal and Xuxi Chen and Anastasia Razdaibiedina and Erik Jones and Kriti Aggarwal and Hamid Palangi and Guoqing Zheng and Corby Rosset and Hamed Khanpour and Ahmed Awadallah},
year={2023},
eprint={2311.11045},
archivePrefix={arXiv},
primaryClass={cs.AI}
}
```
|
[
-0.1098962351679802,
-0.9537896513938904,
0.24283447861671448,
0.10595142841339111,
-0.22513505816459656,
-0.22723889350891113,
-0.034860625863075256,
-0.8050376176834106,
0.05135630443692207,
0.4702971875667572,
-0.37887006998062134,
-0.29888421297073364,
-0.5104021430015564,
-0.24344666302204132,
-0.2855148911476135,
0.9666061401367188,
0.062413815408945084,
0.15081006288528442,
-0.05412624031305313,
-0.15377715229988098,
-0.6390299201011658,
-0.5663673281669617,
-1.1649556159973145,
-0.29947176575660706,
0.29854926466941833,
0.37853676080703735,
0.6268922090530396,
0.7252858281135559,
0.19401735067367554,
0.23425428569316864,
-0.24147526919841766,
0.34282463788986206,
-0.4972136914730072,
0.003808199893683195,
-0.16540220379829407,
-0.6878167390823364,
-0.5814256072044373,
0.00020354220760054886,
0.35053950548171997,
0.4546428620815277,
-0.09825977683067322,
0.2964566946029663,
0.07152034342288971,
0.3477044105529785,
-0.3870890140533447,
0.29325973987579346,
-0.5244715213775635,
-0.045559659600257874,
-0.22566603124141693,
-0.04745575413107872,
-0.3306938111782074,
-0.2587158977985382,
-0.028199821710586548,
-0.5802625417709351,
-0.05574662983417511,
0.06677620112895966,
0.7000885009765625,
0.33320802450180054,
-0.4521116018295288,
-0.4889930188655853,
-0.46345046162605286,
0.782829999923706,
-0.7083656787872314,
0.12405094504356384,
0.3640209138393402,
0.16464084386825562,
-0.3174998462200165,
-0.7504160404205322,
-0.7645840644836426,
-0.2895657420158386,
0.06980714946985245,
-0.008857786655426025,
0.02438735030591488,
-0.1845465749502182,
0.25418615341186523,
0.10722942650318146,
-0.6218425035476685,
0.3766539990901947,
-0.6218293905258179,
-0.2477472573518753,
0.7547836899757385,
0.30137115716934204,
0.34094786643981934,
-0.05667521432042122,
-0.2810886800289154,
-0.3697955906391144,
-0.7664602398872375,
0.3591381013393402,
0.48656344413757324,
0.354048490524292,
-0.37478214502334595,
0.8480719327926636,
0.1139598861336708,
0.420524924993515,
-0.0950511172413826,
-0.36116763949394226,
0.21661511063575745,
-0.32613396644592285,
-0.17352333664894104,
-0.03998798877000809,
0.7386871576309204,
0.33047735691070557,
0.06670358777046204,
0.10425396263599396,
-0.018260570243000984,
0.22498129308223724,
0.099129818379879,
-0.5949700474739075,
0.00926676020026207,
0.4883047342300415,
-0.5567376613616943,
-0.3840833604335785,
-0.0939049944281578,
-0.617215096950531,
-0.47500208020210266,
-0.1672346442937851,
0.19221974909305573,
-0.2728123664855957,
-0.40746450424194336,
0.2369219809770584,
-0.09505873173475266,
0.4008033573627472,
0.14393627643585205,
-0.9969078898429871,
0.31499144434928894,
0.6732544302940369,
0.6949580907821655,
-0.12309390306472778,
-0.3656163215637207,
-0.2421727329492569,
-0.20309659838676453,
-0.3784092962741852,
0.6692387461662292,
-0.18754158914089203,
-0.3987583816051483,
-0.020635459572076797,
-0.02683671936392784,
0.059746719896793365,
-0.5183233618736267,
0.3581677973270416,
-0.48128536343574524,
0.22129619121551514,
-0.4088275134563446,
-0.18884654343128204,
-0.3231964111328125,
-0.0671868771314621,
-0.44835612177848816,
1.1170930862426758,
0.03222794458270073,
-0.6276281476020813,
0.1852475255727768,
-0.8095980286598206,
-0.47466495633125305,
-0.20648309588432312,
-0.22899800539016724,
-0.33477815985679626,
-0.0011615919647738338,
-0.02784804441034794,
0.06081397458910942,
-0.3752099275588989,
0.24129734933376312,
-0.3579801321029663,
-0.09484855085611343,
0.2593550682067871,
-0.11328747123479843,
1.1245930194854736,
0.30046847462654114,
-0.4829246699810028,
0.0016816630959510803,
-0.4856201410293579,
-0.04655291140079498,
0.3856847882270813,
-0.3869529068470001,
-0.06021517142653465,
0.016579188406467438,
0.16814786195755005,
0.2964911460876465,
0.3125101327896118,
-0.5490819811820984,
0.30076074600219727,
-0.43444404006004333,
0.707111656665802,
0.4667437970638275,
-0.09842433780431747,
0.4649418890476227,
-0.2530805170536041,
0.43341758847236633,
0.030348433181643486,
0.2115200012922287,
0.17025130987167358,
-0.7506826519966125,
-0.9903762340545654,
0.0345846526324749,
0.15462850034236908,
0.609406590461731,
-0.6637140512466431,
0.3461702764034271,
0.036981500685214996,
-0.5036194920539856,
-0.548014223575592,
0.02649260312318802,
0.519006073474884,
0.43279707431793213,
0.3088468611240387,
-0.476261168718338,
-0.8563061356544495,
-0.7014879584312439,
0.062892846763134,
-0.43496257066726685,
0.07645583152770996,
0.4266781210899353,
0.5678051710128784,
-0.08304042369127274,
0.9442113637924194,
-0.4186881184577942,
-0.33762672543525696,
-0.41852429509162903,
0.05059703439474106,
-0.13364610075950623,
0.6637751460075378,
0.5330490469932556,
-0.6461817026138306,
-0.19825057685375214,
-0.19891692698001862,
-1.0069284439086914,
0.15530426800251007,
-0.11503773927688599,
-0.11025413870811462,
0.5419502258300781,
0.4778102934360504,
-0.7162628769874573,
0.4818498194217682,
0.3388778269290924,
-0.4027571976184845,
0.42650657892227173,
-0.1731467843055725,
-0.3302769064903259,
-0.8060087561607361,
0.22807621955871582,
-0.3420712649822235,
-0.052019380033016205,
-0.6886082291603088,
0.07779558002948761,
-0.2138613909482956,
-0.13456758856773376,
-0.5626950263977051,
0.725642740726471,
-0.17048591375350952,
-0.12438803166151047,
-0.3584977388381958,
0.12811687588691711,
-0.08692991733551025,
0.46984604001045227,
0.31084388494491577,
0.6498132348060608,
0.64018315076828,
-0.6311016082763672,
0.2219420075416565,
0.4165247678756714,
-0.32458800077438354,
0.2558656334877014,
-0.8898087739944458,
0.4134979248046875,
-0.2004270702600479,
0.41477248072624207,
-0.9947531223297119,
-0.1768583506345749,
0.3628152012825012,
-0.7369062900543213,
0.27890515327453613,
0.23377098143100739,
-0.602571427822113,
-0.29651448130607605,
-0.32425788044929504,
0.3673649728298187,
0.5498178005218506,
-0.5115618109703064,
0.5024004578590393,
0.6692572236061096,
-0.03857631981372833,
-0.47490429878234863,
-1.054489254951477,
0.047944121062755585,
-0.2411796897649765,
-0.7494230270385742,
0.18262584507465363,
0.0177607424557209,
-0.18442368507385254,
-0.16878339648246765,
0.03195224702358246,
0.11955339461565018,
0.10733788460493088,
0.38573020696640015,
0.29054826498031616,
-0.148835688829422,
0.08574777096509933,
0.12841182947158813,
-0.17946776747703552,
0.22317373752593994,
-0.25146737694740295,
0.6879966855049133,
-0.18305878341197968,
-0.15489329397678375,
-0.40573611855506897,
0.32605862617492676,
0.5383875370025635,
-0.2224210798740387,
0.8809043765068054,
0.5601348280906677,
-0.3069457709789276,
-0.08986064046621323,
-0.5676043629646301,
-0.3487131595611572,
-0.4326440691947937,
0.5465514063835144,
-0.22633233666419983,
-0.7259248495101929,
0.588461697101593,
0.4568939507007599,
0.29581859707832336,
0.5345709919929504,
0.764417827129364,
0.06699224561452866,
1.1229431629180908,
0.7362492680549622,
-0.03862836956977844,
0.3734099268913269,
-0.491851270198822,
0.23970524966716766,
-0.9068447947502136,
-0.7733120322227478,
-0.5381044149398804,
-0.15972262620925903,
-0.5626835227012634,
-0.20380164682865143,
0.285069078207016,
0.04831136390566826,
-0.29326024651527405,
0.43652409315109253,
-0.4873073995113373,
0.1322672963142395,
0.6151537895202637,
0.14771848917007446,
0.04935040697455406,
-0.009101995266973972,
0.031854234635829926,
0.2969180643558502,
-0.7839207053184509,
-0.7570956945419312,
1.1913446187973022,
0.6217566132545471,
0.6649292707443237,
0.1747177243232727,
0.3037029206752777,
0.1514321267604828,
0.09740480780601501,
-0.6172181963920593,
0.5512586832046509,
0.138996422290802,
-0.8495264649391174,
-0.3452499210834503,
-0.2159334123134613,
-1.0317226648330688,
0.13821376860141754,
0.04092918336391449,
-0.8909516334533691,
0.3587213456630707,
0.06415224075317383,
-0.5724798440933228,
0.13742102682590485,
-0.7256069183349609,
0.8210655450820923,
-0.2219320386648178,
-0.15212507545948029,
-0.12943916022777557,
-0.8111861944198608,
0.4759446680545807,
0.06037837266921997,
0.07706304639577866,
0.15195675194263458,
-0.2833898067474365,
0.9223437905311584,
-0.5787839293479919,
0.9942478537559509,
-0.08150360733270645,
-0.11579980701208115,
0.7103450298309326,
-0.016564195975661278,
0.4311765432357788,
0.2420322746038437,
-0.14916284382343292,
0.270885169506073,
0.095748171210289,
-0.30343350768089294,
-0.3675774335861206,
0.6726548671722412,
-1.0366750955581665,
-0.37580397725105286,
-0.4231598675251007,
-0.4971814751625061,
0.09165327996015549,
0.019702089950442314,
0.38109713792800903,
0.2771044373512268,
0.16046284139156342,
0.05026745796203613,
0.43032580614089966,
-0.41264137625694275,
0.3515462577342987,
0.546407163143158,
-0.20188280940055847,
-0.32864391803741455,
0.7669753432273865,
0.19110940396785736,
0.16622424125671387,
0.03264564648270607,
-0.010572809725999832,
-0.5901459455490112,
-0.39782798290252686,
-0.3590061664581299,
0.33859166502952576,
-0.7331951260566711,
-0.0849098339676857,
-0.7185196876525879,
-0.16441555321216583,
-0.6104719042778015,
0.12973017990589142,
-0.42132753133773804,
-0.5015807747840881,
-0.5957069396972656,
-0.1405266970396042,
0.29531311988830566,
0.6346271634101868,
-0.19439855217933655,
0.12811526656150818,
-0.22085706889629364,
0.23329932987689972,
0.3041526675224304,
0.0037318007089197636,
0.21806778013706207,
-0.8006341457366943,
0.015890995040535927,
0.22071023285388947,
-0.5257952213287354,
-0.6051623821258545,
0.2704756259918213,
-0.05686582252383232,
0.34817808866500854,
0.29510697722435,
-0.023669246584177017,
0.614059567451477,
-0.13762474060058594,
1.0169719457626343,
0.03646915778517723,
-0.8450495004653931,
0.44277700781822205,
-0.03125501051545143,
0.06461544334888458,
0.4109153747558594,
0.2222619503736496,
-0.30618828535079956,
-0.24787722527980804,
-0.7349795699119568,
-0.7654253244400024,
1.054184913635254,
0.3789259195327759,
0.2619498670101166,
-0.1145569458603859,
0.44874632358551025,
-0.04127535969018936,
0.2116755247116089,
-0.7847599983215332,
-0.43891122937202454,
-0.2401568591594696,
0.18896423280239105,
-0.022176146507263184,
-0.4980529248714447,
0.14500030875205994,
-0.12014193087816238,
0.7957251071929932,
0.12149228155612946,
0.43949583172798157,
0.13798987865447998,
0.0031860030721873045,
-0.10272590816020966,
-0.11390828341245651,
0.7565672993659973,
0.437034547328949,
-0.12344124913215637,
0.12180917710065842,
0.3518284261226654,
-0.5474645495414734,
-0.06896033883094788,
-0.11235645413398743,
-0.2417798638343811,
-0.19357994198799133,
0.31966397166252136,
0.7023125290870667,
-0.33989667892456055,
-0.7446563243865967,
0.20497697591781616,
0.02811896614730358,
0.008582050912082195,
-0.3543129861354828,
0.0986333116889,
0.11925698071718216,
0.21265363693237305,
0.1496996283531189,
0.06927669048309326,
0.012928573414683342,
-0.8976929783821106,
-0.1873726099729538,
0.37799784541130066,
-0.1232154369354248,
-0.28150975704193115,
0.7616788148880005,
0.11448941379785538,
-0.4979530870914459,
0.7146093249320984,
-0.19813565909862518,
-0.38113197684288025,
0.9000060558319092,
0.5119588971138,
0.5566520094871521,
-0.22838807106018066,
-0.006212914828211069,
0.3759496212005615,
0.41656410694122314,
-0.20358175039291382,
0.6162986159324646,
0.10559307783842087,
-0.6817197203636169,
-0.16442300379276276,
-0.34720367193222046,
-0.1775226891040802,
0.5162075757980347,
-0.6207473278045654,
0.3829902112483978,
-0.4929659068584442,
-0.326939195394516,
0.08026419579982758,
0.08531776815652847,
-0.4701998233795166,
0.13130638003349304,
0.21430262923240662,
0.9332243204116821,
-0.8043088316917419,
0.8013944029808044,
0.5624908208847046,
-0.75272536277771,
-0.9473703503608704,
-0.4331795275211334,
0.12823578715324402,
-0.8066367506980896,
0.558598518371582,
0.16188235580921173,
0.04734236001968384,
-0.18635284900665283,
-0.6439182758331299,
-0.8606460094451904,
1.04966402053833,
0.3885432779788971,
-0.13712015748023987,
0.038007836788892746,
0.3784541189670563,
0.655903697013855,
-0.5181177258491516,
0.5365496277809143,
0.7805845141410828,
0.3571794033050537,
0.10355093330144882,
-0.9249599575996399,
0.2820153534412384,
-0.20917432010173798,
0.20682863891124725,
-0.30804309248924255,
-0.7321010231971741,
1.0004583597183228,
-0.35679152607917786,
-0.10117913782596588,
0.4097566306591034,
0.6591686606407166,
0.3543342351913452,
0.23406079411506653,
0.3303179442882538,
0.40691620111465454,
0.6738816499710083,
0.035257402807474136,
1.1411662101745605,
-0.16206762194633484,
0.30878955125808716,
1.0355377197265625,
-0.2103433609008789,
0.8663393259048462,
0.453980028629303,
-0.15465809404850006,
0.39719080924987793,
0.8353427052497864,
0.008950966410338879,
0.5500275492668152,
0.12609349191188812,
0.03633147105574608,
0.013739172369241714,
-0.39832085371017456,
-0.6210666298866272,
0.5384525656700134,
0.3491055965423584,
-0.3852106034755707,
-0.1281629055738449,
-0.026261258870363235,
0.25103092193603516,
-0.2812182605266571,
-0.021542618051171303,
0.6765360236167908,
0.22265982627868652,
-0.8551246523857117,
0.864553689956665,
0.35803401470184326,
0.43591535091400146,
-0.5381151437759399,
0.0061451708897948265,
-0.4375934898853302,
0.1430063098669052,
-0.37793615460395813,
-0.6108359694480896,
0.4543211758136749,
0.07214348763227463,
-0.06649850308895111,
-0.08075713366270065,
0.4057222902774811,
-0.40244680643081665,
-0.22003060579299927,
0.20372706651687622,
0.15479303896427155,
0.509064793586731,
-0.010286299511790276,
-0.7488324046134949,
0.36254116892814636,
0.0523679256439209,
-0.20763297379016876,
0.38560187816619873,
0.13961957395076752,
-0.13307370245456696,
0.6778684854507446,
0.659782350063324,
-0.05324861779808998,
-0.06870745867490768,
-0.09814342856407166,
0.9687699675559998,
-0.22312843799591064,
-0.44921252131462097,
-0.7727649211883545,
0.5235078930854797,
0.0742160901427269,
-0.4978311061859131,
0.7283986210823059,
0.7161484360694885,
0.7726992964744568,
-0.06479618698358536,
0.6733906865119934,
-0.3205748498439789,
0.25831839442253113,
-0.43665748834609985,
0.7058066725730896,
-0.6011404991149902,
0.4036210775375366,
0.14963902533054352,
-0.8608952760696411,
-0.08811227977275848,
0.7147401571273804,
-0.3944251537322998,
0.2013804316520691,
0.727940559387207,
1.0462136268615723,
0.05220189690589905,
-0.04843387007713318,
0.0021492207888513803,
0.34188681840896606,
0.40533483028411865,
0.644250214099884,
0.6617612838745117,
-0.5577352046966553,
0.6671324968338013,
-0.20071087777614594,
-0.2898879945278168,
-0.23205488920211792,
-0.6965010762214661,
-1.060703992843628,
-0.42741209268569946,
-0.2798145115375519,
-0.6514081954956055,
0.005269576329737902,
0.8580361604690552,
0.7614569664001465,
-0.8100448846817017,
-0.42310312390327454,
-0.21116824448108673,
0.12440132349729538,
-0.16187916696071625,
-0.17685137689113617,
0.5177659392356873,
-0.23689907789230347,
-0.5674582123756409,
0.30421268939971924,
0.06998142600059509,
0.16306130588054657,
-0.4616451561450958,
-0.12950782477855682,
-0.05085471644997597,
0.18017853796482086,
0.5128570199012756,
0.6652867794036865,
-0.813905656337738,
-0.15061302483081818,
-0.07777972519397736,
-0.2330256551504135,
-0.11677099019289017,
0.437391996383667,
-0.6330863237380981,
0.34463971853256226,
0.3442266881465912,
0.2666449546813965,
0.6190897822380066,
-0.12523925304412842,
0.26736128330230713,
-0.3709476590156555,
0.4280296862125397,
0.11914365738630295,
0.25590625405311584,
0.24857504665851593,
-0.5008015036582947,
0.5532701015472412,
0.038285233080387115,
-0.37906306982040405,
-0.9000029563903809,
0.1572619527578354,
-0.9812395572662354,
-0.1344986855983734,
1.437739610671997,
-0.14145098626613617,
-0.20820726454257965,
-0.1877264529466629,
-0.3992272615432739,
0.27958399057388306,
-0.44382280111312866,
0.977625846862793,
0.3608464300632477,
-0.07496505230665207,
0.11287996917963028,
-0.541426956653595,
0.5568349957466125,
0.4110906422138214,
-0.8517354726791382,
-0.17501096427440643,
0.08272477984428406,
0.3036118447780609,
0.25000613927841187,
0.5069200992584229,
-0.20803438127040863,
0.34218910336494446,
0.16388863325119019,
0.09420956671237946,
-0.4224076569080353,
-0.2568163573741913,
-0.37873804569244385,
0.04796009138226509,
0.025533044710755348,
-0.30679070949554443
] |
Xwin-LM/Xwin-LM-70B-V0.1
|
Xwin-LM
| 2023-09-21T09:55:27Z | 8,687 | 187 |
transformers
|
[
"transformers",
"pytorch",
"llama",
"text-generation",
"license:llama2",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-09-15T14:04:14Z |
---
license: llama2
---
<h3 align="center">
Xwin-LM: Powerful, Stable, and Reproducible LLM Alignment
</h3>
<p align="center">
<a href="https://github.com/Xwin-LM/Xwin-LM">
<img src="https://img.shields.io/badge/GitHub-yellow.svg?style=social&logo=github">
</a>
<a href="https://huggingface.co/Xwin-LM">
<img src="https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Models-blue">
</a>
</p>
**Step up your LLM alignment with Xwin-LM!**
Xwin-LM aims to develop and open-source alignment technologies for large language models, including supervised fine-tuning (SFT), reward models (RM), reject sampling, reinforcement learning from human feedback (RLHF), etc. Our first release, built-upon on the Llama2 base models, ranked **TOP-1** on [AlpacaEval](https://tatsu-lab.github.io/alpaca_eval/). Notably, it's **the first to surpass GPT-4** on this benchmark. The project will be continuously updated.
## News
- 💥 [Sep, 2023] We released [Xwin-LM-70B-V0.1](https://huggingface.co/Xwin-LM/Xwin-LM-70B-V0.1), which has achieved a win-rate against Davinci-003 of **95.57%** on [AlpacaEval](https://tatsu-lab.github.io/alpaca_eval/) benchmark, ranking as **TOP-1** on AlpacaEval. **It was the FIRST model surpassing GPT-4** on [AlpacaEval](https://tatsu-lab.github.io/alpaca_eval/). Also note its winrate v.s. GPT-4 is **60.61**.
- 🔍 [Sep, 2023] RLHF plays crucial role in the strong performance of Xwin-LM-V0.1 release!
- 💥 [Sep, 2023] We released [Xwin-LM-13B-V0.1](https://huggingface.co/Xwin-LM/Xwin-LM-13B-V0.1), which has achieved **91.76%** win-rate on [AlpacaEval](https://tatsu-lab.github.io/alpaca_eval/), ranking as **top-1** among all 13B models.
- 💥 [Sep, 2023] We released [Xwin-LM-7B-V0.1](https://huggingface.co/Xwin-LM/Xwin-LM-7B-V0.1), which has achieved **87.82%** win-rate on [AlpacaEval](https://tatsu-lab.github.io/alpaca_eval/), ranking as **top-1** among all 7B models.
## Model Card
| Model | Checkpoint | Report | License |
|------------|------------|-------------|------------------|
|Xwin-LM-7B-V0.1| 🤗 <a href="https://huggingface.co/Xwin-LM/Xwin-LM-7B-V0.1" target="_blank">HF Link</a> | 📃**Coming soon (Stay tuned)** | <a href="https://ai.meta.com/resources/models-and-libraries/llama-downloads/" target="_blank">Llama 2 License|
|Xwin-LM-13B-V0.1| 🤗 <a href="https://huggingface.co/Xwin-LM/Xwin-LM-13B-V0.1" target="_blank">HF Link</a> | | <a href="https://ai.meta.com/resources/models-and-libraries/llama-downloads/" target="_blank">Llama 2 License|
|Xwin-LM-70B-V0.1| 🤗 <a href="https://huggingface.co/Xwin-LM/Xwin-LM-70B-V0.1" target="_blank">HF Link</a> | | <a href="https://ai.meta.com/resources/models-and-libraries/llama-downloads/" target="_blank">Llama 2 License|
## Benchmarks
### Xwin-LM performance on [AlpacaEval](https://tatsu-lab.github.io/alpaca_eval/).
The table below displays the performance of Xwin-LM on [AlpacaEval](https://tatsu-lab.github.io/alpaca_eval/), where evaluates its win-rate against Text-Davinci-003 across 805 questions. To provide a comprehensive evaluation, we present, for the first time, the win-rate against ChatGPT and GPT-4 as well. Our Xwin-LM model family establish a new state-of-the-art performance across all metrics. Notably, Xwin-LM-70B-V0.1 has eclipsed GPT-4 for the first time, achieving an impressive win-rate of **95.57%** to Text-Davinci-003 and **60.61%** to GPT-4.
| **Model** | **AlpacaEval (winrate %)** | **AlpacaEval (winrate %)** |**AlpacaEval (winrate %)** |
|----------------------------------|------------|----------|-------------|
| | **v.s. Text-Davinci-003** | **v.s. ChatGPT** | **v.s. GPT4**|
| **Xwin-LM-70B-V0.1** | **95.57** | **87.50** | **60.61** |
| GPT-4 | 95.28 | 84.66 | 50.00 |
| WizardLM-70B-V1.0 | 92.91 | 80.19 | 46.70 |
| Llama-2-70B-Chat | 92.66 | 81.97 | 51.19 |
| **Xwin-LM-13B-V0.1** | **91.76** | **81.79** | **55.30** |
| ChatGPT | 89.37 | 50.00 | 16.60 |
| WizardLM-13B-V1.2 | 89.17 | 75.75 | 41.91 |
| **Xwin-LM-7B-V0.1** | **87.35** | **76.40** | **47.57** |
| Llama-2-13B-Chat | 81.09 | 64.22 | 30.92 |
### Case study on [AlpacaEval](https://tatsu-lab.github.io/alpaca_eval/)
| Prompts | GTP4 response | Xwin-LM response |
|----------------|------------|--------|
|I've put a plate on top of an apple, and take the plate from kitchen to dinning room. Where is the apple now|The apple is now in the dining room, as it was underneath the plate when you moved the plate from the kitchen to the dining room.|The apple is still in the kitchen, as you have only moved the plate. The apple is under the plate, so if you want to bring the apple to the dining room, you should either move the apple directly or put the apple on the plate and then move the plate to the dining room.|
| Answer the following question.<br> How do you say "good evening" in French. | In French, "good evening" is said as "bonsoir." | In French, "good evening" is translated to "bonsoir." This greeting is used in the evening and nighttime hours, typically after 6 p.m. It is a combination of "bon," which means "good," and "soir," which means "evening." To pronounce it, say "bone-swahr." |
### Xwin-LM performance on NLP foundation tasks.
The following table provides a comparison of Xwin-LMs with other LLMs on NLP foundation tasks in [Open LLM Leaderboard](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard).
| Model | MMLU 5-shot | ARC 25-shot | TruthfulQA 0-shot | HellaSwag 10-shot | Average |
|------------------|-------------|-------------|-------------------|-------------------|------------|
| Text-davinci-003 | 56.9 | **85.2** | 59.3 | 82.2 | 70.9 |
|Vicuna-13b 1.1 | 51.3 | 53.0 | 51.8 | 80.1 | 59.1 |
|Guanaco 30B | 57.6 | 63.7 | 50.7 | 85.1 | 64.3 |
| WizardLM-7B 1.0 | 42.7 | 51.6 | 44.7 | 77.7 | 54.2 |
| WizardLM-13B 1.0 | 52.3 | 57.2 | 50.5 | 81.0 | 60.2 |
| WizardLM-30B 1.0 | 58.8 | 62.5 | 52.4 | 83.3 | 64.2|
| Llama-2-7B-Chat | 48.3 | 52.9 | 45.6 | 78.6 | 56.4 |
| Llama-2-13B-Chat | 54.6 | 59.0 | 44.1 | 81.9 | 59.9 |
| Llama-2-70B-Chat | 63.9 | 64.6 | 52.8 | 85.9 | 66.8 |
| **Xwin-LM-7B-V0.1** | 49.7 | 56.2 | 48.1 | 79.5 | 58.4 |
| **Xwin-LM-13B-V0.1** | 56.6 | 62.4 | 45.5 | 83.0 | 61.9 |
| **Xwin-LM-70B-V0.1** | **69.6** | 70.5 | **60.1** | **87.1** | **71.8** |
## Inference
### Conversation templates
To obtain desired results, please strictly follow the conversation templates when utilizing our model for inference. Our model adopts the prompt format established by [Vicuna](https://github.com/lm-sys/FastChat) and is equipped to support **multi-turn** conversations.
```
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 Xwin-LM.</s>......
```
### HuggingFace Example
```python
from transformers import AutoTokenizer, AutoModelForCausalLM
model = AutoModelForCausalLM.from_pretrained("Xwin-LM/Xwin-LM-7B-V0.1")
tokenizer = AutoTokenizer.from_pretrained("Xwin-LM/Xwin-LM-7B-V0.1")
(
prompt := "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: Hello, can you help me? "
"ASSISTANT:"
)
inputs = tokenizer(prompt, return_tensors="pt")
samples = model.generate(**inputs, max_new_tokens=4096, temperature=0.7)
output = tokenizer.decode(samples[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True)
print(output)
# Of course! I'm here to help. Please feel free to ask your question or describe the issue you're having, and I'll do my best to assist you.
```
### vllm Example
Because Xwin-LM is based on Llama2, it also offers support for rapid inference using [vllm](https://github.com/vllm-project/vllm). Please refer to [vllm](https://github.com/vllm-project/vllm) for detailed installation instructions.
```python
from vllm import LLM, SamplingParams
(
prompt := "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: Hello, can you help me? "
"ASSISTANT:"
)
sampling_params = SamplingParams(temperature=0.7, max_tokens=4096)
llm = LLM(model="Xwin-LM/Xwin-LM-7B-V0.1")
outputs = llm.generate([prompt,], sampling_params)
for output in outputs:
prompt = output.prompt
generated_text = output.outputs[0].text
print(generated_text)
```
## TODO
- [ ] Release the source code
- [ ] Release more capabilities, such as math, reasoning, and etc.
## Citation
Please consider citing our work if you use the data or code in this repo.
```
@software{xwin-lm,
title = {Xwin-LM},
author = {Xwin-LM Team},
url = {https://github.com/Xwin-LM/Xwin-LM},
version = {pre-release},
year = {2023},
month = {9},
}
```
## Acknowledgements
Thanks to [Llama 2](https://ai.meta.com/llama/), [FastChat](https://github.com/lm-sys/FastChat), [AlpacaFarm](https://github.com/tatsu-lab/alpaca_farm), and [vllm](https://github.com/vllm-project/vllm).
|
[
-0.579584002494812,
-0.7404175996780396,
0.4298667907714844,
0.150211364030838,
-0.18535074591636658,
0.13173465430736542,
-0.10678636282682419,
-0.7500326037406921,
0.3319742977619171,
0.24820612370967865,
-0.7685037851333618,
-0.7167898416519165,
-0.7953968644142151,
-0.06042449548840523,
-0.2115469127893448,
1.004441499710083,
-0.048460740596055984,
-0.27281370759010315,
-0.04298033192753792,
-0.23698388040065765,
-0.22241754829883575,
-0.5819843411445618,
-0.7599628567695618,
-0.4371856153011322,
0.5356298089027405,
-0.06149252876639366,
0.989403486251831,
0.7801999449729919,
0.6014502644538879,
0.42271003127098083,
-0.14516562223434448,
0.26220494508743286,
-0.4632008671760559,
0.01827053539454937,
0.15723901987075806,
-0.6280999779701233,
-0.7941027283668518,
0.29774850606918335,
0.5409948229789734,
0.27504584193229675,
-0.09408566355705261,
0.022501258179545403,
0.12728577852249146,
0.623248279094696,
-0.34694066643714905,
0.20127004384994507,
-0.3362518846988678,
0.07742646336555481,
-0.24966983497142792,
-0.3330794870853424,
0.002653831848874688,
-0.33591845631599426,
-0.12105444073677063,
-0.7158665060997009,
0.06368531286716461,
0.22287552058696747,
1.1734429597854614,
0.43283340334892273,
-0.11878146976232529,
-0.31026536226272583,
-0.3313526511192322,
0.8287494778633118,
-1.0252642631530762,
0.18778255581855774,
0.22499780356884003,
0.17292511463165283,
-0.40062496066093445,
-0.649452805519104,
-0.6562443971633911,
-0.4117133617401123,
-0.182346373796463,
0.20304974913597107,
-0.6489123106002808,
0.10297694802284241,
0.29112350940704346,
0.37306728959083557,
-0.5594061613082886,
0.14529545605182648,
-0.10560374706983566,
-0.025728054344654083,
0.6768982410430908,
0.22531962394714355,
0.38029980659484863,
0.023785609751939774,
-0.502824604511261,
-0.32002875208854675,
-0.5358851552009583,
0.3610418438911438,
0.28103628754615784,
0.1817825883626938,
-0.42437052726745605,
0.44302430748939514,
-0.003807352390140295,
0.6162020564079285,
0.1572374552488327,
-0.6011286973953247,
0.4509757459163666,
-0.37694093585014343,
-0.24937723577022552,
-0.1063738614320755,
1.110350251197815,
0.6535009145736694,
-0.11904729902744293,
-0.0363488495349884,
-0.27085229754447937,
0.30274298787117004,
-0.2365359216928482,
-0.7733058929443359,
-0.03467400372028351,
0.3132418692111969,
-0.5365089178085327,
-0.39074569940567017,
-0.08403967320919037,
-0.4864526689052582,
-0.1790386140346527,
-0.06774283200502396,
0.3805645704269409,
-0.46118178963661194,
-0.059353917837142944,
0.08480769395828247,
-0.2034657895565033,
0.5002195835113525,
0.42832863330841064,
-0.5938535332679749,
0.288212388753891,
0.6610262393951416,
0.8912335634231567,
-0.4748416244983673,
-0.38176947832107544,
-0.5671043395996094,
-0.16700099408626556,
-0.26997390389442444,
0.4499437212944031,
-0.13150165975093842,
-0.3770754635334015,
-0.46002885699272156,
0.21365894377231598,
0.03299903869628906,
-0.4356704652309418,
0.3844040036201477,
-0.26818108558654785,
0.39280563592910767,
-0.34732383489608765,
-0.6498055458068848,
-0.021108977496623993,
0.44115716218948364,
-0.4544815123081207,
1.080398678779602,
-0.012866059318184853,
-0.8612937927246094,
0.0431097075343132,
-0.7569245100021362,
-0.19120283424854279,
-0.3104865252971649,
-0.15208934247493744,
-0.3762418031692505,
-0.18797162175178528,
0.20085573196411133,
0.4548167586326599,
-0.35861653089523315,
0.17248260974884033,
-0.2476893812417984,
-0.3538040518760681,
0.22268125414848328,
-0.50438392162323,
1.2106271982192993,
0.15747536718845367,
-0.9733642935752869,
-0.008552762679755688,
-0.6319419145584106,
0.12061542272567749,
0.4246484637260437,
-0.254976749420166,
-0.049583956599235535,
0.09399639070034027,
-0.37970349192619324,
0.2895955741405487,
0.44064900279045105,
-0.6275032162666321,
0.4059286415576935,
-0.515673816204071,
0.334443598985672,
0.7171582579612732,
-0.21529844403266907,
0.33295565843582153,
-0.6490857601165771,
0.5704979300498962,
-0.030384136363863945,
0.23694884777069092,
-0.06977368891239166,
-0.7069925665855408,
-0.8365358114242554,
-0.3854703903198242,
0.07645713537931442,
0.9218316078186035,
-0.669805645942688,
0.5904706120491028,
-0.0823260247707367,
-0.6231327056884766,
-0.49912533164024353,
0.10585059970617294,
0.6698143482208252,
0.40383192896842957,
0.47178617119789124,
-0.1474555879831314,
-0.3498663604259491,
-0.8031520247459412,
0.11858102679252625,
-0.38069725036621094,
0.2189198136329651,
0.425443172454834,
0.4753085970878601,
-0.3256165385246277,
0.9581993818283081,
-0.5467942357063293,
-0.22272451221942902,
-0.34499961137771606,
-0.1364387571811676,
0.39524343609809875,
0.4915619492530823,
0.8985178470611572,
-0.4692951440811157,
-0.35735899209976196,
0.0847591981291771,
-0.9363614320755005,
-0.18759962916374207,
-0.005375115666538477,
-0.33622780442237854,
0.456152081489563,
0.2743072509765625,
-0.7947278618812561,
0.4942871034145355,
0.6800116300582886,
-0.5643876194953918,
0.6676762104034424,
-0.12797380983829498,
0.2327098250389099,
-0.957992434501648,
0.06643187254667282,
-0.10135383903980255,
-0.4421369135379791,
-0.4793388247489929,
0.25624707341194153,
-0.18722201883792877,
0.3142518699169159,
-0.46051332354545593,
0.9944475293159485,
-0.5860300064086914,
0.05267104506492615,
-0.15666450560092926,
0.48333898186683655,
0.056934937834739685,
0.6514894366264343,
-0.15171009302139282,
0.8723713159561157,
0.4331628680229187,
-0.2818450331687927,
0.35142749547958374,
0.16634619235992432,
-0.20344272255897522,
0.23536577820777893,
-0.7763368487358093,
-0.019122295081615448,
0.10554377734661102,
0.2993637025356293,
-0.954961895942688,
0.28806763887405396,
0.5487145781517029,
-0.6863243579864502,
0.46694710850715637,
0.09597638249397278,
-0.24957150220870972,
-0.37352266907691956,
-0.4969845414161682,
-0.10078553110361099,
0.5734047293663025,
-0.4969368577003479,
0.4121021628379822,
0.29601019620895386,
-0.13038289546966553,
-0.8970953226089478,
-0.6639732718467712,
0.18053509294986725,
-0.15426932275295258,
-0.7706449627876282,
0.4897906482219696,
-0.3067203164100647,
-0.49464136362075806,
-0.15727974474430084,
0.03434685990214348,
0.305830180644989,
0.1855373978614807,
0.3274056911468506,
0.4924852252006531,
-0.2634478807449341,
-0.308932363986969,
0.0016799828736111522,
-0.2271193414926529,
0.014368935488164425,
0.042387280613183975,
0.4893236756324768,
-0.38470378518104553,
-0.37168604135513306,
-0.3344276547431946,
0.3358123302459717,
0.5288637280464172,
-0.14932578802108765,
0.6686795353889465,
0.6370742917060852,
-0.07340293377637863,
0.06584972143173218,
-0.6453239917755127,
-0.12686361372470856,
-0.5004045963287354,
0.31721222400665283,
-0.21164533495903015,
-0.8286568522453308,
0.6638821363449097,
0.37958046793937683,
0.4448626637458801,
0.5270800590515137,
0.6003401279449463,
-0.25273776054382324,
1.1720634698867798,
0.6174875497817993,
-0.38450393080711365,
0.4593665301799774,
-0.6871315836906433,
0.024182934314012527,
-0.6292275786399841,
-0.15904346108436584,
-0.43953731656074524,
-0.5458318591117859,
-0.7177562713623047,
-0.5246210694313049,
0.2646602392196655,
0.112474225461483,
-0.21416278183460236,
0.4245140254497528,
-0.5841750502586365,
0.15453335642814636,
0.6700824499130249,
0.053325194865465164,
0.24954047799110413,
-0.1307792216539383,
-0.21876302361488342,
0.05500636249780655,
-0.6647595763206482,
-0.6093013882637024,
0.7619588375091553,
0.40558508038520813,
0.7579154372215271,
0.17739738523960114,
1.0006483793258667,
0.33277255296707153,
0.24715985357761383,
-0.5081557035446167,
0.7206423282623291,
-0.07672503590583801,
-0.6269423365592957,
-0.30110037326812744,
-0.5211472511291504,
-1.0750846862792969,
0.24050140380859375,
-0.19574874639511108,
-0.904296875,
0.3170001804828644,
0.16558808088302612,
-0.42962875962257385,
0.5422601103782654,
-0.4642733335494995,
0.8019968867301941,
-0.5357224941253662,
-0.5033890604972839,
0.14121823012828827,
-0.9386810064315796,
0.41757336258888245,
0.3357265591621399,
0.12933330237865448,
-0.38045796751976013,
-0.3638196289539337,
0.7984991073608398,
-0.6512517929077148,
0.8114673495292664,
-0.3560495376586914,
-0.17315131425857544,
0.34848642349243164,
-0.021405063569545746,
0.7009776830673218,
-0.18566957116127014,
-0.07721666246652603,
0.33218395709991455,
0.3081761300563812,
-0.28243759274482727,
-0.5350828766822815,
0.7802574038505554,
-1.1299057006835938,
-0.71916264295578,
-0.6357865333557129,
-0.5059009790420532,
0.090906523168087,
-0.005852486472576857,
0.4721931219100952,
0.35590776801109314,
-0.09635221213102341,
0.046988993883132935,
0.5422519445419312,
-0.3948286473751068,
0.5721306204795837,
0.4313037097454071,
-0.43607276678085327,
-0.3536815047264099,
0.9035589098930359,
0.11383432894945145,
0.3829823136329651,
0.4036705195903778,
0.055241819471120834,
-0.258899450302124,
-0.41313838958740234,
-0.5567737221717834,
0.24409285187721252,
-0.5896140933036804,
-0.48189035058021545,
-0.7596600651741028,
-0.2687271535396576,
-0.1313648521900177,
-0.17775380611419678,
-0.2844299077987671,
-0.5175515413284302,
-0.4576690196990967,
0.03301924094557762,
0.4671381413936615,
0.494140625,
-0.07550348341464996,
0.4009365141391754,
-0.6574422717094421,
0.25527605414390564,
0.05709607154130936,
0.010596605017781258,
-0.13926400244235992,
-0.5466610193252563,
0.015727361664175987,
0.1482742726802826,
-0.5787801146507263,
-0.9399763345718384,
0.6571006178855896,
0.22795584797859192,
0.7626411318778992,
0.37895065546035767,
0.058042261749506,
0.5445734858512878,
-0.33105045557022095,
0.9448013305664062,
0.3642357289791107,
-0.7812038064002991,
0.408786416053772,
-0.31359249353408813,
0.15060365200042725,
0.4407675564289093,
0.30924126505851746,
-0.36243540048599243,
-0.5862428545951843,
-0.6326224207878113,
-0.7478894591331482,
0.7156878709793091,
0.3933248519897461,
-0.11310911178588867,
-0.10264894366264343,
0.3429613709449768,
-0.005861420184373856,
0.17058198153972626,
-0.8456432819366455,
-0.8429896235466003,
-0.05605803057551384,
-0.10326050966978073,
-0.1705576777458191,
-0.08217021077871323,
-0.026977602392435074,
-0.3544984459877014,
0.9966109395027161,
-0.06973776966333389,
0.6134452223777771,
0.3775653839111328,
-0.015541494823992252,
0.08378715813159943,
0.14202967286109924,
0.6595794558525085,
0.5940961837768555,
-0.28179311752319336,
-0.0829443410038948,
0.21147048473358154,
-0.44571977853775024,
0.36551031470298767,
0.3340432047843933,
-0.2415723353624344,
-0.013460489921271801,
0.5613338351249695,
0.8929193019866943,
0.0615432932972908,
-0.47261735796928406,
0.6411064267158508,
-0.11948030441999435,
-0.17146918177604675,
-0.09644240140914917,
0.3208218514919281,
0.2187250554561615,
0.5081357955932617,
0.4295109808444977,
-0.11642063409090042,
0.0649685487151146,
-0.6652188301086426,
0.010143074207007885,
0.7822849750518799,
-0.3376912474632263,
-0.10802266746759415,
0.6842657923698425,
0.09431838989257812,
-0.2188655287027359,
0.31834810972213745,
-0.5340666770935059,
-0.7298714518547058,
0.7995421290397644,
0.5599682331085205,
0.7287417650222778,
-0.18665337562561035,
-0.017237044870853424,
0.3528931736946106,
0.42830267548561096,
0.03497197851538658,
0.37002813816070557,
0.007489417213946581,
-0.6098451018333435,
-0.31357821822166443,
-0.7227014303207397,
-0.3300633132457733,
-0.06842900812625885,
-0.37304553389549255,
0.21860386431217194,
-0.35655829310417175,
-0.5126607418060303,
-0.11728861927986145,
0.4821872115135193,
-0.5693953633308411,
0.02104882150888443,
0.27156707644462585,
1.2817482948303223,
-0.5597972869873047,
0.8486170172691345,
0.40040966868400574,
-0.22360076010227203,
-0.6979833841323853,
-0.3688245117664337,
0.21185113489627838,
-0.9420902729034424,
0.3862355649471283,
0.08328645676374435,
-0.30493372678756714,
-0.05360102653503418,
-0.7093187570571899,
-0.9490417242050171,
1.3924199342727661,
0.4642646908760071,
-0.8208433389663696,
-0.2064562886953354,
-0.016710657626390457,
0.2561015188694,
-0.41889408230781555,
0.4049201011657715,
0.7363662719726562,
0.6259097456932068,
-0.0655001848936081,
-1.0207995176315308,
0.1994037926197052,
-0.5921046137809753,
-0.16921065747737885,
0.23249724507331848,
-0.705065906047821,
0.953655481338501,
-0.36189088225364685,
-0.08555959910154343,
0.3584929406642914,
0.71745365858078,
0.6090108752250671,
0.3743181824684143,
0.5348505973815918,
0.6012378931045532,
0.7006623148918152,
-0.45232686400413513,
1.1757912635803223,
-0.5436626672744751,
0.3664771616458893,
1.046586275100708,
-0.0231604166328907,
0.7212676405906677,
0.3393571972846985,
-0.5708905458450317,
0.5337532162666321,
0.7073608636856079,
0.12634320557117462,
0.2680565118789673,
0.08363461494445801,
-0.14556829631328583,
-0.11225608736276627,
0.24294450879096985,
-0.6922322511672974,
0.3324485421180725,
0.21578142046928406,
-0.40600210428237915,
-0.10301945358514786,
0.0037171202711760998,
0.3165189325809479,
-0.2779339849948883,
-0.13175326585769653,
0.6990209221839905,
0.17343242466449738,
-0.5265829563140869,
0.849556565284729,
0.11353032290935516,
1.097642421722412,
-0.9583571553230286,
-0.006278140936046839,
-0.42657947540283203,
0.20053790509700775,
-0.2565043866634369,
-0.8272718191146851,
-0.007214066106826067,
-0.03788209706544876,
-0.19099919497966766,
0.08325573056936264,
0.6213206648826599,
-0.2389097660779953,
-0.5040726661682129,
0.6923199892044067,
0.5893080234527588,
0.34401199221611023,
-0.005719326436519623,
-1.1035970449447632,
0.404665470123291,
0.21731245517730713,
-0.5038899779319763,
0.3681493401527405,
0.2602602243423462,
-0.07003195583820343,
0.8354717493057251,
0.6446128487586975,
0.00730595039203763,
0.09299205988645554,
-0.28532612323760986,
0.9671784043312073,
-0.7173364758491516,
-0.4121164381504059,
-1.0342862606048584,
0.36672043800354004,
-0.029500914737582207,
-0.2683716118335724,
0.8480861186981201,
0.5105267763137817,
0.4920726716518402,
0.3491817116737366,
0.689125657081604,
-0.3497548997402191,
0.3231147825717926,
-0.33818939328193665,
0.7912577986717224,
-0.809188723564148,
0.24624261260032654,
-0.4075789749622345,
-0.9333664774894714,
-0.08047595620155334,
0.6584022045135498,
-0.25894665718078613,
0.30546990036964417,
0.341829776763916,
0.9718033075332642,
0.004671603906899691,
-0.19234123826026917,
0.3808439373970032,
0.3789655566215515,
0.39772361516952515,
0.7584328651428223,
0.7593998312950134,
-0.5073457360267639,
0.5411228537559509,
-0.4612457752227783,
-0.49417078495025635,
-0.17565475404262543,
-1.0534586906433105,
-0.6802638173103333,
-0.3976786136627197,
-0.26186230778694153,
-0.4057419002056122,
0.2577599585056305,
1.2699172496795654,
0.6872468590736389,
-0.6369566321372986,
-0.33424651622772217,
0.32425567507743835,
0.11448107659816742,
-0.26094868779182434,
-0.2507716119289398,
0.434394896030426,
-0.2008618265390396,
-0.6869339942932129,
0.365144819021225,
0.20714831352233887,
0.2197200059890747,
-0.38672757148742676,
-0.4297882318496704,
-0.26718997955322266,
0.1251267045736313,
0.5894871950149536,
0.3744085729122162,
-0.909010648727417,
-0.07976596057415009,
0.23549795150756836,
-0.28990280628204346,
0.3580448627471924,
0.20322011411190033,
-0.846307635307312,
0.1313694715499878,
0.26922711730003357,
0.2497287392616272,
0.603783369064331,
-0.07140802592039108,
0.309922456741333,
-0.4638918340206146,
0.0009644125821068883,
0.05846402421593666,
0.5662130117416382,
0.35060086846351624,
-0.45293277502059937,
0.5624491572380066,
0.13504503667354584,
-0.6172332167625427,
-0.6963539123535156,
-0.1660703420639038,
-1.1560064554214478,
-0.1686861366033554,
1.0446869134902954,
-0.34673914313316345,
-0.36775660514831543,
0.17750370502471924,
-0.445612370967865,
0.19954223930835724,
-0.478540301322937,
0.4096226692199707,
0.4397188127040863,
-0.2896600663661957,
-0.07490534335374832,
-0.6482089757919312,
0.4498637616634369,
0.1609349250793457,
-0.8494659662246704,
0.02443399839103222,
0.3144432306289673,
0.3416720926761627,
0.3843134939670563,
0.782140851020813,
-0.0761527344584465,
0.21424569189548492,
-0.21099698543548584,
0.2726856470108032,
-0.18864764273166656,
-0.05909588560461998,
-0.148739755153656,
-0.07391002774238586,
-0.0325421541929245,
-0.2268117368221283
] |
facebook/xglm-564M
|
facebook
| 2023-01-24T16:35:45Z | 8,680 | 32 |
transformers
|
[
"transformers",
"pytorch",
"tf",
"jax",
"xglm",
"text-generation",
"multilingual",
"en",
"ru",
"zh",
"de",
"es",
"fr",
"ja",
"it",
"pt",
"el",
"ko",
"fi",
"id",
"tr",
"ar",
"vi",
"th",
"bg",
"ca",
"hi",
"et",
"bn",
"ta",
"ur",
"sw",
"te",
"eu",
"my",
"ht",
"qu",
"arxiv:2112.10668",
"license:mit",
"has_space",
"region:us"
] |
text-generation
| 2022-03-02T23:29:05Z |
---
language:
- multilingual
- en
- ru
- zh
- de
- es
- fr
- ja
- it
- pt
- el
- ko
- fi
- id
- tr
- ar
- vi
- th
- bg
- ca
- hi
- et
- bn
- ta
- ur
- sw
- te
- eu
- my
- ht
- qu
license: mit
thumbnail: https://huggingface.co/front/thumbnails/facebook.png
inference: false
---
# XGLM-564M
XGLM-564M is a multilingual autoregressive language model (with 564 million parameters) trained on a balanced corpus of a diverse set of 30 languages totaling 500 billion sub-tokens. It was introduced in the paper [Few-shot Learning with Multilingual Language Models](https://arxiv.org/abs/2112.10668) by Xi Victoria Lin\*, Todor Mihaylov, Mikel Artetxe, Tianlu Wang, Shuohui Chen, Daniel Simig, Myle Ott, Naman Goyal, Shruti Bhosale, Jingfei Du, Ramakanth Pasunuru, Sam Shleifer, Punit Singh Koura, Vishrav Chaudhary, Brian O'Horo, Jeff Wang, Luke Zettlemoyer, Zornitsa Kozareva, Mona Diab, Veselin Stoyanov, Xian Li\* (\*Equal Contribution). The original implementation was released in [this repository](https://github.com/pytorch/fairseq/tree/main/examples/xglm).
## Training Data Statistics
The training data statistics of XGLM-564M is shown in the table below.
| ISO-639-1| family | name | # tokens | ratio | ratio w/ lowRes upsampling |
|:--------|:-----------------|:------------------------|-------------:|------------:|-------------:|
| en | Indo-European | English | 803526736124 | 0.489906 | 0.3259 |
| ru | Indo-European | Russian | 147791898098 | 0.0901079 | 0.0602 |
| zh | Sino-Tibetan | Chinese | 132770494630 | 0.0809494 | 0.0483 |
| de | Indo-European | German | 89223707856 | 0.0543992 | 0.0363 |
| es | Indo-European | Spanish | 87303083105 | 0.0532282 | 0.0353 |
| fr | Indo-European | French | 77419639775 | 0.0472023 | 0.0313 |
| ja | Japonic | Japanese | 66054364513 | 0.040273 | 0.0269 |
| it | Indo-European | Italian | 41930465338 | 0.0255648 | 0.0171 |
| pt | Indo-European | Portuguese | 36586032444 | 0.0223063 | 0.0297 |
| el | Indo-European | Greek (modern) | 28762166159 | 0.0175361 | 0.0233 |
| ko | Koreanic | Korean | 20002244535 | 0.0121953 | 0.0811 |
| fi | Uralic | Finnish | 16804309722 | 0.0102455 | 0.0681 |
| id | Austronesian | Indonesian | 15423541953 | 0.00940365 | 0.0125 |
| tr | Turkic | Turkish | 12413166065 | 0.00756824 | 0.0101 |
| ar | Afro-Asiatic | Arabic | 12248607345 | 0.00746791 | 0.0099 |
| vi | Austroasiatic | Vietnamese | 11199121869 | 0.00682804 | 0.0091 |
| th | Tai–Kadai | Thai | 10842172807 | 0.00661041 | 0.044 |
| bg | Indo-European | Bulgarian | 9703797869 | 0.00591635 | 0.0393 |
| ca | Indo-European | Catalan | 7075834775 | 0.0043141 | 0.0287 |
| hi | Indo-European | Hindi | 3448390110 | 0.00210246 | 0.014 |
| et | Uralic | Estonian | 3286873851 | 0.00200399 | 0.0133 |
| bn | Indo-European | Bengali, Bangla | 1627447450 | 0.000992245 | 0.0066 |
| ta | Dravidian | Tamil | 1476973397 | 0.000900502 | 0.006 |
| ur | Indo-European | Urdu | 1351891969 | 0.000824241 | 0.0055 |
| sw | Niger–Congo | Swahili | 907516139 | 0.000553307 | 0.0037 |
| te | Dravidian | Telugu | 689316485 | 0.000420272 | 0.0028 |
| eu | Language isolate | Basque | 105304423 | 6.42035e-05 | 0.0043 |
| my | Sino-Tibetan | Burmese | 101358331 | 6.17976e-05 | 0.003 |
| ht | Creole | Haitian, Haitian Creole | 86584697 | 5.27902e-05 | 0.0035 |
| qu | Quechuan | Quechua | 3236108 | 1.97304e-06 | 0.0001 |
## Model card
For intended usage of the model, please refer to the [model card](https://github.com/pytorch/fairseq/blob/main/examples/xglm/model_card.md) released by the XGLM-564M development team.
## Example (COPA)
The following snippet shows how to evaluate our models (GPT-3 style, zero-shot) on the Choice of Plausible Alternatives (COPA) task, using examples in English, Chinese and Hindi.
```python
import torch
import torch.nn.functional as F
from transformers import XGLMTokenizer, XGLMForCausalLM
tokenizer = XGLMTokenizer.from_pretrained("facebook/xglm-564M")
model = XGLMForCausalLM.from_pretrained("facebook/xglm-564M")
data_samples = {
'en': [
{
"premise": "I wanted to conserve energy.",
"choice1": "I swept the floor in the unoccupied room.",
"choice2": "I shut off the light in the unoccupied room.",
"question": "effect",
"label": "1"
},
{
"premise": "The flame on the candle went out.",
"choice1": "I blew on the wick.",
"choice2": "I put a match to the wick.",
"question": "cause",
"label": "0"
}
],
'zh': [
{
"premise": "我想节约能源。",
"choice1": "我在空着的房间里扫了地板。",
"choice2": "我把空房间里的灯关了。",
"question": "effect",
"label": "1"
},
{
"premise": "蜡烛上的火焰熄灭了。",
"choice1": "我吹灭了灯芯。",
"choice2": "我把一根火柴放在灯芯上。",
"question": "cause",
"label": "0"
}
],
'hi': [
{
"premise": "M te vle konsève enèji.",
"choice1": "Mwen te fin baleye chanm lib la.",
"choice2": "Mwen te femen limyè nan chanm lib la.",
"question": "effect",
"label": "1"
},
{
"premise": "Flam bouji a te etenn.",
"choice1": "Mwen te soufle bouji a.",
"choice2": "Mwen te limen mèch bouji a.",
"question": "cause",
"label": "0"
}
]
}
def get_logprobs(prompt):
inputs = tokenizer(prompt, return_tensors="pt")
input_ids, output_ids = inputs["input_ids"], inputs["input_ids"][:, 1:]
outputs = model(**inputs, labels=input_ids)
logits = outputs.logits
logprobs = torch.gather(F.log_softmax(logits, dim=2), 2, output_ids.unsqueeze(2))
return logprobs
# Zero-shot evaluation for the Choice of Plausible Alternatives (COPA) task.
# A return value of 0 indicates that the first alternative is more plausible,
# while 1 indicates that the second alternative is more plausible.
def COPA_eval(prompt, alternative1, alternative2):
lprob1 = get_logprobs(prompt + "\n" + alternative1).sum()
lprob2 = get_logprobs(prompt + "\n" + alternative2).sum()
return 0 if lprob1 > lprob2 else 1
for lang in data_samples_long:
for idx, example in enumerate(data_samples_long[lang]):
predict = COPA_eval(example["premise"], example["choice1"], example["choice2"])
print(f'{lang}-{idx}', predict, example['label'])
# en-0 1 1
# en-1 0 0
# zh-0 1 1
# zh-1 0 0
# hi-0 1 1
# hi-1 0 0
```
|
[
-0.476887971162796,
-0.5825682282447815,
0.3556499779224396,
-0.009449354372918606,
-0.2108733355998993,
0.014301014132797718,
-0.16251692175865173,
-0.3464530110359192,
0.2586039900779724,
0.17631660401821136,
-0.5754626393318176,
-0.8436733484268188,
-0.526985764503479,
0.037273209542036057,
-0.2409360557794571,
1.0877760648727417,
-0.10299507528543472,
0.16150984168052673,
0.282991498708725,
-0.18383070826530457,
-0.1631590873003006,
-0.39586782455444336,
-0.8399419784545898,
-0.3033052980899811,
0.42558544874191284,
0.17371876537799835,
0.7724928855895996,
0.41240933537483215,
0.34261026978492737,
0.349111944437027,
-0.16460736095905304,
0.06950085610151291,
-0.38458696007728577,
-0.5276163816452026,
0.07235404849052429,
-0.788274347782135,
-0.5292372703552246,
0.1564590334892273,
0.7730847597122192,
0.47044047713279724,
-0.0008629034273326397,
0.38493287563323975,
0.06042611971497536,
0.5311620235443115,
-0.3808188736438751,
0.39613842964172363,
-0.4385572373867035,
0.17271259427070618,
-0.09865261614322662,
-0.16647891700267792,
-0.2379833459854126,
-0.3740616738796234,
0.06827245652675629,
-0.45131343603134155,
0.275989830493927,
0.16677002608776093,
1.2459882497787476,
-0.147754967212677,
-0.3095705807209015,
-0.2606586217880249,
-0.4434717297554016,
0.8681704998016357,
-0.8884896636009216,
0.1833125352859497,
0.34190890192985535,
0.14429877698421478,
-0.2206333875656128,
-0.7902138233184814,
-0.6566820740699768,
-0.13642631471157074,
-0.4813844561576843,
0.46635016798973083,
-0.28787097334861755,
-0.022859614342451096,
0.4432072937488556,
0.4706357717514038,
-0.9058761596679688,
-0.13694405555725098,
-0.6569931507110596,
-0.10635073482990265,
0.8297846913337708,
0.33886948227882385,
0.44073930382728577,
-0.4498831331729889,
-0.47562912106513977,
-0.14084011316299438,
-0.5237007737159729,
0.2977326214313507,
0.418169230222702,
0.21608304977416992,
-0.38362520933151245,
0.5625543594360352,
-0.23729480803012848,
0.9551695585250854,
-0.12521061301231384,
-0.26166707277297974,
0.47971558570861816,
-0.4939212203025818,
-0.35175809264183044,
-0.04375184699892998,
0.9866612553596497,
0.43158870935440063,
-0.12358672171831131,
0.06450514495372772,
-0.008820926770567894,
0.08357825875282288,
-0.3547251522541046,
-0.7607459425926208,
-0.320009708404541,
0.4484746754169464,
-0.5371863842010498,
-0.24660547077655792,
0.12401369214057922,
-0.8803117871284485,
0.10262968391180038,
0.0025943573564291,
0.7097587585449219,
-0.45681118965148926,
-0.29109928011894226,
0.22389660775661469,
-0.05178716406226158,
0.43304169178009033,
0.23486073315143585,
-0.9476218223571777,
0.19494478404521942,
0.3800458312034607,
1.0016268491744995,
-0.10570938140153885,
-0.3313046991825104,
-0.22237421572208405,
-0.007184951100498438,
-0.383055180311203,
0.5636819005012512,
-0.27954840660095215,
-0.44024837017059326,
-0.2233382761478424,
0.18118126690387726,
-0.4333663880825043,
-0.3284420371055603,
0.7891978621482849,
-0.19178184866905212,
0.5421422719955444,
-0.27224820852279663,
-0.49402517080307007,
-0.45365384221076965,
0.4966451823711395,
-0.7450052499771118,
1.274453043937683,
0.206648588180542,
-1.0341567993164062,
0.3841190040111542,
-0.5878043174743652,
0.15047989785671234,
-0.08951709419488907,
-0.17617186903953552,
-0.5351912379264832,
-0.09611120074987411,
0.17222847044467926,
0.42052218317985535,
-0.4497542679309845,
0.16982953250408173,
-0.1638641357421875,
-0.2940095365047455,
0.09107127040624619,
-0.4298205077648163,
1.4173767566680908,
0.38515180349349976,
-0.553098738193512,
0.33955132961273193,
-1.0109120607376099,
0.3152877390384674,
0.3680056035518646,
-0.4583037793636322,
0.03332607075572014,
-0.3343099057674408,
0.1085568442940712,
0.712908148765564,
0.22861817479133606,
-0.5314300060272217,
0.2642097473144531,
-0.5482987761497498,
0.48258498311042786,
0.7510794401168823,
-0.11136774718761444,
0.14452357590198517,
-0.6427052021026611,
0.6339522004127502,
-0.032287340611219406,
0.13191871345043182,
-0.10278404504060745,
-0.6311871409416199,
-0.8294366598129272,
-0.3836759030818939,
0.12434252351522446,
0.6627641916275024,
-0.6466518044471741,
0.5162646174430847,
-0.10950451344251633,
-0.736072301864624,
-0.5791239738464355,
0.04415960609912872,
0.447018027305603,
0.672283947467804,
0.23184888064861298,
0.02603163942694664,
-0.6455926299095154,
-0.7962871789932251,
-0.10490501672029495,
-0.3079586923122406,
0.23909509181976318,
0.36267170310020447,
0.8733285665512085,
-0.11527662724256516,
0.957578182220459,
-0.753285825252533,
-0.28674402832984924,
-0.410411536693573,
0.011759808287024498,
0.7059206962585449,
0.5480115413665771,
0.7073835134506226,
-0.8160274028778076,
-0.83197420835495,
0.06902474164962769,
-0.7998893857002258,
0.10203396528959274,
-0.018869072198867798,
-0.26420241594314575,
0.35059866309165955,
0.16533711552619934,
-0.805998682975769,
0.5569901466369629,
0.5779312252998352,
-0.5239265561103821,
0.8187815546989441,
-0.38445135951042175,
0.19382789731025696,
-1.2912300825119019,
0.2606538236141205,
-0.20553039014339447,
-0.09860552847385406,
-0.6641413569450378,
0.0804017037153244,
-0.07407525181770325,
-0.020771602168679237,
-0.8311184644699097,
1.0902725458145142,
-0.6509530544281006,
0.21949367225170135,
0.029646996408700943,
0.1731717884540558,
-0.056752514094114304,
0.6380741000175476,
0.1911957710981369,
0.5304375886917114,
0.9380870461463928,
-0.3804328143596649,
0.4382443428039551,
0.1691695749759674,
-0.5901644825935364,
0.25784674286842346,
-0.6487571001052856,
-0.05421384796500206,
-0.2147682160139084,
0.22769933938980103,
-1.3979957103729248,
-0.2591668665409088,
0.5659651160240173,
-0.5254099369049072,
0.19770537316799164,
-0.10375981777906418,
-0.4239961802959442,
-0.7717239856719971,
-0.48670122027397156,
0.3778507709503174,
0.4878824055194855,
-0.562429666519165,
0.5624939203262329,
0.1791270226240158,
0.13694946467876434,
-0.7110897898674011,
-0.737651526927948,
-0.11865705996751785,
-0.41242119669914246,
-0.9461448788642883,
0.3598930835723877,
-0.15935726463794708,
-0.1470341831445694,
0.10763947665691376,
-0.03845442831516266,
0.08284495025873184,
-0.04546530917286873,
0.05146651342511177,
0.48854169249534607,
-0.06754384189844131,
-0.20468254387378693,
-0.22268646955490112,
-0.3287575840950012,
0.03391294926404953,
-0.26057735085487366,
0.7167993187904358,
-0.37029528617858887,
-0.264850914478302,
-0.36539334058761597,
0.30693235993385315,
0.43629297614097595,
-0.23987746238708496,
0.7830625176429749,
0.9490728974342346,
-0.4980672001838684,
0.06774350255727768,
-0.3475337028503418,
0.03252444416284561,
-0.47809508442878723,
0.5042515993118286,
-0.5330484509468079,
-0.7935395240783691,
0.9007084369659424,
0.2140752226114273,
0.24461881816387177,
0.7615944743156433,
0.9160531163215637,
0.12517274916172028,
1.2767508029937744,
0.3235458433628082,
-0.06404637545347214,
0.3582717478275299,
-0.863239586353302,
0.12603163719177246,
-0.6467908620834351,
-0.39681053161621094,
-0.4304244816303253,
-0.20247752964496613,
-0.6794084310531616,
-0.47722944617271423,
0.4251053035259247,
-0.02980324625968933,
-0.27181100845336914,
0.34325605630874634,
-0.5338808298110962,
0.26350992918014526,
0.7196094989776611,
0.18872089684009552,
0.2241906225681305,
-0.10259748995304108,
-0.3206650912761688,
0.12112344056367874,
-0.9874923825263977,
-0.5687463283538818,
1.1862633228302002,
0.20678900182247162,
0.8446456789970398,
0.1796993762254715,
0.9568225145339966,
-0.025400441139936447,
0.2245960235595703,
-0.7216923236846924,
0.6168466806411743,
0.059374623000621796,
-1.1253291368484497,
-0.29245680570602417,
-0.43613293766975403,
-1.2103748321533203,
0.6847214698791504,
-0.2797412574291229,
-1.1614443063735962,
0.28096598386764526,
0.1929263025522232,
-0.6889192461967468,
0.5058501958847046,
-0.7273019552230835,
0.9963338971138,
-0.4643191993236542,
-0.6831605434417725,
-0.11809639632701874,
-0.7118430137634277,
0.5641324520111084,
0.07628758996725082,
0.2069423347711563,
-0.28895679116249084,
0.1506124883890152,
0.9930484294891357,
-0.45532679557800293,
0.6778300404548645,
0.01178774144500494,
0.01028574537485838,
0.6190280318260193,
-0.19245488941669464,
0.5018138289451599,
0.23518171906471252,
-0.23401997983455658,
0.14603182673454285,
0.23106013238430023,
-0.5756422281265259,
-0.4342426061630249,
0.8737013936042786,
-0.890679657459259,
-0.8588690161705017,
-0.8021377325057983,
-0.62156081199646,
0.14601537585258484,
0.5852046608924866,
0.6794089674949646,
0.3787592649459839,
-0.1161726787686348,
-0.002533646998926997,
0.2603854238986969,
-0.2562037706375122,
0.6971690654754639,
0.34926822781562805,
-0.5081877112388611,
-0.6981047987937927,
0.8944147825241089,
0.39293545484542847,
0.31556540727615356,
0.19680540263652802,
0.32278895378112793,
-0.5473126769065857,
-0.36134204268455505,
-0.36624953150749207,
0.3698650002479553,
-0.6841797828674316,
-0.11516229063272476,
-0.6111552119255066,
-0.16840411722660065,
-0.44568923115730286,
-0.24114425480365753,
-0.20186609029769897,
-0.3572656512260437,
-0.3325251638889313,
-0.2598440945148468,
0.3004668653011322,
0.4525817632675171,
-0.11839467287063599,
0.18497885763645172,
-0.6669928431510925,
0.33772069215774536,
0.12535452842712402,
0.12975457310676575,
-0.022563010454177856,
-0.674716591835022,
-0.3215493857860565,
0.06578545272350311,
-0.21400339901447296,
-1.0265283584594727,
0.8019228577613831,
0.020724207162857056,
0.6868464946746826,
0.46421095728874207,
-0.03933725506067276,
0.8135862350463867,
-0.2973161041736603,
0.7840123772621155,
0.3791031837463379,
-0.9921547174453735,
0.46567481756210327,
-0.25971323251724243,
0.26030170917510986,
0.4211551249027252,
0.6069158315658569,
-0.6215646862983704,
-0.2733146846294403,
-0.8859061598777771,
-0.909245491027832,
1.2046009302139282,
0.3589435815811157,
0.09483861923217773,
-0.08701764792203903,
0.17589661478996277,
-0.011521903797984123,
0.11999791860580444,
-1.0297011137008667,
-0.7491247653961182,
-0.01173408143222332,
-0.18758076429367065,
-0.05585808679461479,
-0.21550005674362183,
-0.31228962540626526,
-0.6728881001472473,
0.9141381978988647,
-0.002217779168859124,
0.3365305960178375,
0.2536136209964752,
0.09344283491373062,
0.024546334519982338,
0.1418425440788269,
0.6813909411430359,
0.7440245747566223,
-0.4435574412345886,
0.14449304342269897,
0.41626808047294617,
-0.33160457015037537,
0.302999883890152,
0.10609547048807144,
-0.3744969069957733,
0.16545426845550537,
0.2975645363330841,
1.0701628923416138,
0.013609585352241993,
-0.47070249915122986,
0.3579033315181732,
0.014953547157347202,
-0.3849884867668152,
-0.5265328884124756,
0.12239419668912888,
0.08183428645133972,
0.21539761126041412,
0.38385674357414246,
0.009003836661577225,
-0.020044192671775818,
-0.7738744020462036,
0.24165673553943634,
0.5592995882034302,
-0.3478133976459503,
-0.39376646280288696,
0.9008558988571167,
-0.09011324495077133,
-0.11791963130235672,
0.43414077162742615,
-0.2892548143863678,
-0.585665225982666,
0.7488744258880615,
0.6512771844863892,
0.8603814840316772,
-0.23745392262935638,
0.18425486981868744,
0.8801202178001404,
0.3303321301937103,
-0.16786625981330872,
0.5833615064620972,
0.26742637157440186,
-0.6716191172599792,
-0.06205705553293228,
-0.601186215877533,
-0.14566998183727264,
0.24322034418582916,
-0.6354556679725647,
0.6096189022064209,
-0.3535479009151459,
-0.3743270933628082,
-0.16476958990097046,
0.2710530459880829,
-0.6772693991661072,
0.3509926497936249,
0.23490238189697266,
1.018141269683838,
-1.0555381774902344,
1.0345163345336914,
0.6445788741111755,
-0.5858369469642639,
-0.9858742952346802,
-0.3240338861942291,
0.0038196491077542305,
-0.8694943189620972,
0.5728318095207214,
0.09898702055215836,
0.07434006780385971,
0.19378696382045746,
-0.39678627252578735,
-1.3459044694900513,
1.3209823369979858,
0.4134247303009033,
-0.3873901069164276,
-0.0635763630270958,
0.0910123810172081,
0.532001793384552,
-0.16400621831417084,
0.6101745367050171,
0.750523567199707,
0.6372673511505127,
0.11744847893714905,
-0.8606833219528198,
0.18686912953853607,
-0.5181452035903931,
-0.24222467839717865,
0.11876172572374344,
-1.0637387037277222,
1.2676922082901,
-0.3988513648509979,
-0.13359156250953674,
0.03558645024895668,
0.6767237782478333,
0.41577669978141785,
0.18355196714401245,
0.3595452606678009,
0.679417073726654,
0.890788733959198,
-0.31105220317840576,
1.0341582298278809,
-0.6154530048370361,
0.9543073177337646,
0.9351662397384644,
0.041681695729494095,
0.6523229479789734,
0.3320856988430023,
-0.5039030313491821,
0.28303706645965576,
0.8332913517951965,
-0.19309385120868683,
0.35089144110679626,
0.22096702456474304,
-0.4453040361404419,
-0.1990673542022705,
0.2263563573360443,
-0.44157058000564575,
0.5712683796882629,
0.19608302414417267,
-0.4396376609802246,
-0.3728044629096985,
0.038341425359249115,
0.33237916231155396,
-0.41506093740463257,
-0.40786296129226685,
0.408306747674942,
0.0978599563241005,
-0.719514787197113,
1.0300949811935425,
0.09917960315942764,
0.6255311369895935,
-0.8064010143280029,
-0.012099751271307468,
-0.05895168334245682,
0.24723728001117706,
-0.5766484141349792,
-0.9586871862411499,
0.19901928305625916,
-0.12314791232347488,
-0.11652550846338272,
0.11585113406181335,
0.5108761787414551,
-0.5850710272789001,
-0.9056541919708252,
0.39696693420410156,
0.39070236682891846,
0.299875944852829,
0.2998846769332886,
-1.1032261848449707,
-0.018755005672574043,
0.285255491733551,
-0.5304978489875793,
0.25198203325271606,
0.1773848682641983,
-0.13212569057941437,
0.6361218094825745,
0.5087448358535767,
0.07123713195323944,
0.33167070150375366,
-0.2693904638290405,
0.8635372519493103,
-0.7259051203727722,
-0.4056626558303833,
-1.1095763444900513,
0.6134478449821472,
0.1857410967350006,
-0.5541457533836365,
1.1047879457473755,
0.9177544713020325,
0.8646631836891174,
-0.13863889873027802,
0.9499671459197998,
-0.32047560811042786,
0.16942384839057922,
-0.4884582757949829,
0.740061342716217,
-0.7490604519844055,
0.003440817818045616,
-0.39419829845428467,
-0.8370327949523926,
-0.5399229526519775,
0.8081288933753967,
-0.5459900498390198,
0.22914394736289978,
0.6059791445732117,
0.95212322473526,
0.13622386753559113,
-0.28974077105522156,
0.42637357115745544,
0.21630504727363586,
0.3639535903930664,
0.8819351196289062,
0.6300812363624573,
-0.5631702542304993,
0.6964056491851807,
-0.5897571444511414,
-0.20077434182167053,
-0.27874115109443665,
-0.6888914108276367,
-0.8749496936798096,
-0.5890223383903503,
-0.35585132241249084,
-0.4568273723125458,
-0.1938161551952362,
1.245757818222046,
0.6022021174430847,
-0.9228426218032837,
-0.3926994502544403,
0.0623621791601181,
0.2034827023744583,
-0.33233416080474854,
-0.2637864947319031,
0.9321833252906799,
-0.1614072471857071,
-1.1692688465118408,
0.021970758214592934,
0.17127129435539246,
0.10454145073890686,
-0.10679124295711517,
-0.12027779966592789,
-0.45998090505599976,
0.1400679349899292,
0.6167027950286865,
0.28535300493240356,
-0.7952579855918884,
-0.2457374483346939,
-0.07147059589624405,
-0.1915346086025238,
0.3236762285232544,
0.2539122402667999,
-0.5434214472770691,
0.6621041297912598,
0.7431278824806213,
0.03356786444783211,
0.7988788485527039,
-0.06156830117106438,
0.2437848150730133,
-0.38429683446884155,
0.2693991959095001,
0.09520873427391052,
0.7231119275093079,
-0.022330868989229202,
-0.2893943190574646,
0.6474111676216125,
0.36263307929039,
-0.45960161089897156,
-0.9057642221450806,
-0.08622793853282928,
-1.1846407651901245,
-0.19479306042194366,
1.2641332149505615,
-0.3720276653766632,
-0.431569367647171,
-0.061289846897125244,
-0.637270450592041,
0.29349377751350403,
-0.2597750723361969,
0.7328304052352905,
0.7542716264724731,
-0.4538300037384033,
-0.06308026611804962,
-0.7038538455963135,
0.5093815922737122,
0.47702518105506897,
-0.8108303546905518,
-0.07429259270429611,
0.1660364270210266,
0.4176110029220581,
0.2579939365386963,
0.8964946866035461,
-0.13279594480991364,
0.3836413025856018,
0.11724717915058136,
0.2555250823497772,
0.09414833039045334,
-0.011619397439062595,
-0.31131985783576965,
0.18256931006908417,
-0.004727696534246206,
-0.3024539351463318
] |
LeoLM/leo-hessianai-7b
|
LeoLM
| 2023-09-11T00:10:47Z | 8,669 | 32 |
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-08-22T20:19:12Z |
---
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-7b-hf](https://huggingface.co/meta-llama/Llama-2-7b-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-7b",
device_map="auto",
torch_dtype=torch.float16,
trust_remote_code=True # True for flash-attn2 else False
)
```
## Training parameters

## Benchmarks

|
[
-0.1999642252922058,
-0.6237306594848633,
0.18075059354305267,
0.5649539828300476,
-0.3796035647392273,
-0.21990227699279785,
-0.10485807061195374,
-0.5943328738212585,
0.08591645210981369,
0.4164116084575653,
-0.5188463926315308,
-0.38480129837989807,
-0.7214474081993103,
-0.01450804527848959,
-0.46663832664489746,
1.0278209447860718,
-0.2628198564052582,
0.14239071309566498,
0.12283085286617279,
-0.266315758228302,
-0.031419217586517334,
-0.365876168012619,
-0.5097507238388062,
-0.6839731335639954,
0.42850059270858765,
0.32705387473106384,
0.599905788898468,
0.5751924514770508,
0.6244831085205078,
0.2985633611679077,
-0.19877299666404724,
-0.19258452951908112,
-0.4492659270763397,
-0.09743091464042664,
0.054355472326278687,
-0.4651784896850586,
-0.5907951593399048,
-0.012356732971966267,
0.6371979713439941,
0.23221169412136078,
-0.14519678056240082,
0.2545844316482544,
-0.18210090696811676,
0.4198032021522522,
-0.6187677383422852,
0.19498978555202484,
-0.37970247864723206,
0.0504043772816658,
-0.2140408158302307,
0.11152733862400055,
-0.4162849187850952,
-0.04090255871415138,
0.1523386836051941,
-0.6354548931121826,
0.06744807958602905,
-0.24638836085796356,
1.3091760873794556,
0.5900310277938843,
-0.4619291424751282,
-0.15841057896614075,
-0.6504853367805481,
0.7852848768234253,
-0.6898118853569031,
0.4623046815395355,
0.428538978099823,
0.38054704666137695,
-0.10725539177656174,
-1.2661466598510742,
-0.45103850960731506,
-0.26053765416145325,
-0.20055146515369415,
0.1584855318069458,
-0.5169222354888916,
-0.13743212819099426,
0.23093891143798828,
0.11242808401584625,
-0.4260002076625824,
-0.017137913033366203,
-0.3804869055747986,
-0.10590270906686783,
0.5813987851142883,
-0.19722478091716766,
-0.10450336337089539,
-0.0573330819606781,
-0.4351523518562317,
-0.2556404769420624,
-0.7758970260620117,
-0.08302738517522812,
0.12382911145687103,
-0.23904690146446228,
-0.48843497037887573,
0.5501940250396729,
-0.1677890121936798,
0.525723397731781,
0.05024980753660202,
-0.2994824945926666,
0.43045273423194885,
-0.13083770871162415,
-0.36001065373420715,
-0.13124872744083405,
0.8589649796485901,
0.06812717020511627,
0.2689845561981201,
0.07575293630361557,
-0.36011868715286255,
0.008457253687083721,
-0.08975265920162201,
-0.6977916359901428,
-0.21734806895256042,
0.13604959845542908,
-0.3403216004371643,
-0.4994845986366272,
-0.13100378215312958,
-0.5777150988578796,
-0.10433632880449295,
-0.038632847368717194,
0.460548460483551,
-0.271523118019104,
-0.27974238991737366,
0.27520203590393066,
0.24381811916828156,
0.4787787199020386,
0.26920321583747864,
-0.767077624797821,
-0.012522413395345211,
0.46800071001052856,
0.6514737010002136,
0.20903272926807404,
-0.4632816016674042,
-0.42055264115333557,
0.22756728529930115,
-0.11408077925443649,
0.6442969441413879,
-0.15175537765026093,
-0.22915896773338318,
0.035250548273324966,
0.08979983627796173,
0.17224623262882233,
-0.4460931122303009,
0.5896453857421875,
-0.7310965657234192,
0.43755903840065,
0.015075724571943283,
-0.23334577679634094,
-0.2360495626926422,
-0.014419137500226498,
-0.5715871453285217,
1.2972378730773926,
0.23804813623428345,
-0.905311107635498,
0.0887153148651123,
-0.5377709269523621,
-0.6965155005455017,
-0.07949130237102509,
-0.0174869317561388,
-0.4267948567867279,
-0.05648551508784294,
0.18268190324306488,
0.4875469207763672,
-0.593266487121582,
0.6811850666999817,
-0.17288845777511597,
-0.2828558087348938,
0.22757871448993683,
-0.42848795652389526,
1.0921614170074463,
0.21232177317142487,
-0.7601622939109802,
0.11568474024534225,
-0.675168514251709,
-0.2112141251564026,
0.3307638168334961,
-0.4986937642097473,
0.25569096207618713,
-0.0940568596124649,
0.3653225600719452,
0.33554351329803467,
0.47700271010398865,
-0.3023892045021057,
-0.03797698765993118,
-0.33121946454048157,
0.46629244089126587,
0.7315618395805359,
-0.4450766444206238,
0.270747572183609,
-0.12290232628583908,
0.4770975708961487,
-0.0042974213138222694,
0.25718334317207336,
-0.04437817260622978,
-0.45558589696884155,
-1.3806086778640747,
-0.33765289187431335,
0.25104883313179016,
0.6806728839874268,
-0.7188969850540161,
0.5838584303855896,
-0.25221696496009827,
-0.5540200471878052,
-0.5631922483444214,
0.047996655106544495,
0.5194942951202393,
0.49910110235214233,
0.3378005027770996,
-0.17387515306472778,
-0.6136464476585388,
-0.9310346245765686,
0.12548601627349854,
-0.40884286165237427,
0.04119231924414635,
0.3224447965621948,
0.656701385974884,
-0.611681342124939,
0.8976421356201172,
-0.38073405623435974,
-0.32881689071655273,
-0.32932883501052856,
0.021274136379361153,
0.29873964190483093,
0.4039236605167389,
0.6229521036148071,
-0.6590669751167297,
-0.45408895611763,
-0.058004941791296005,
-1.1057711839675903,
-0.18798421323299408,
0.2064957469701767,
-0.1173253282904625,
0.45529070496559143,
0.4112005829811096,
-0.7592992186546326,
0.2776414752006531,
0.6390162706375122,
-0.34418103098869324,
0.44374868273735046,
-0.06837903708219528,
-0.304958701133728,
-0.9904119968414307,
0.23681502044200897,
-0.13390175998210907,
-0.285193532705307,
-0.5771873593330383,
0.2060471624135971,
-0.024119049310684204,
0.08524610847234726,
-0.8370845317840576,
0.984853982925415,
-0.28398558497428894,
-0.0816754549741745,
-0.25806179642677307,
0.025157537311315536,
-0.22435788810253143,
0.3755593001842499,
0.2124464511871338,
0.677769124507904,
0.8040347695350647,
-0.5535832047462463,
0.4102974236011505,
0.3575044870376587,
-0.3490656316280365,
0.20511142909526825,
-0.9366185665130615,
0.06809166818857193,
-0.016535179689526558,
0.5011801719665527,
-0.697218120098114,
-0.5634889602661133,
0.5821541547775269,
-0.37594306468963623,
0.2896897792816162,
0.09758572280406952,
-0.6329852342605591,
-0.37594565749168396,
-0.08475334942340851,
0.3907998204231262,
0.8306481242179871,
-0.695762574672699,
0.654190719127655,
0.34666839241981506,
0.14294911921024323,
-0.9633869528770447,
-0.9494692087173462,
-0.026738615706562996,
-0.2876187860965729,
-0.8796423673629761,
0.22863534092903137,
0.04324592277407646,
-0.1824473887681961,
-0.08264832943677902,
0.02093202993273735,
-0.0578167699277401,
0.13261255621910095,
0.0678788498044014,
0.16015933454036713,
-0.37778735160827637,
0.042060282081365585,
0.04455464705824852,
-0.5424259901046753,
-0.03986996039748192,
-0.16447527706623077,
0.6808248162269592,
-0.49547675251960754,
-0.22552023828029633,
-0.5450348854064941,
0.029054423794150352,
0.373372346162796,
-0.22709913551807404,
0.7505274415016174,
0.9765923619270325,
-0.4240732192993164,
0.11845765262842178,
-0.736212968826294,
-0.3392697870731354,
-0.5430339574813843,
0.3799881041049957,
-0.2824193835258484,
-1.0197428464889526,
0.38322287797927856,
-0.1040249839425087,
0.042792677879333496,
0.5662131905555725,
0.7225207090377808,
-0.119392029941082,
0.7713353633880615,
0.94633549451828,
-0.2814595103263855,
0.552165687084198,
-0.3827487528324127,
-0.0183863528072834,
-0.6256046891212463,
-0.10897274315357208,
-0.29179924726486206,
-0.09306376427412033,
-0.2828708589076996,
-0.3968771994113922,
0.39284950494766235,
0.5521809458732605,
-0.4799325168132782,
0.47998324036598206,
-0.22193317115306854,
0.36165890097618103,
0.48471948504447937,
-0.02792651206254959,
0.2524622082710266,
0.25092005729675293,
-0.07657604664564133,
0.0692940279841423,
-0.7903270721435547,
-0.7414672374725342,
1.039678931236267,
0.6254352927207947,
0.5787854194641113,
0.177094504237175,
0.7008166313171387,
-0.0008319179760292172,
0.6576633453369141,
-0.480461984872818,
0.652434229850769,
0.005846457090228796,
-0.755087673664093,
-0.17938123643398285,
-0.1413668841123581,
-0.825587272644043,
0.38326308131217957,
-0.00487305223941803,
-0.6943844556808472,
0.028134575113654137,
0.1341407299041748,
-0.024719538167119026,
0.013755112886428833,
-0.45951226353645325,
0.8299857378005981,
-0.36701759696006775,
-0.257449209690094,
-0.32862457633018494,
-0.8845360279083252,
0.5919885039329529,
-0.19631408154964447,
0.11629978567361832,
-0.25128304958343506,
-0.0871250331401825,
0.8107802867889404,
-0.257191002368927,
0.9296712279319763,
-0.008130491711199284,
-0.23528586328029633,
0.3527218699455261,
-0.12305759638547897,
0.6107138395309448,
0.23817893862724304,
-0.18822039663791656,
0.4646816551685333,
-0.2680830657482147,
-0.38855257630348206,
-0.25583416223526,
0.5128147006034851,
-0.9686763286590576,
-0.5999612212181091,
-0.6350899338722229,
-0.46270254254341125,
0.10677336901426315,
0.27444642782211304,
0.5827382802963257,
0.04484325647354126,
-0.22115564346313477,
0.057146668434143066,
0.5034595727920532,
-0.21208715438842773,
0.6041878461837769,
0.7470406293869019,
-0.2606792151927948,
-0.42618799209594727,
0.7351873517036438,
-0.30821511149406433,
0.14603295922279358,
0.2496650367975235,
0.10464020818471909,
-0.23802466690540314,
-0.15222591161727905,
-0.5846144556999207,
0.7142009735107422,
-1.0397311449050903,
-0.21680036187171936,
-0.7176446914672852,
-0.283039391040802,
-0.32344889640808105,
-0.22402076423168182,
-0.33289557695388794,
-0.39590558409690857,
-0.7032831311225891,
-0.11098730564117432,
0.4412313401699066,
0.6936821341514587,
-0.3056030571460724,
0.7560864686965942,
-0.6030136346817017,
0.21136482059955597,
0.12399851530790329,
0.0640946477651596,
0.02382269687950611,
-0.7137500643730164,
-0.24894076585769653,
-0.11876538395881653,
-0.39604365825653076,
-0.7459262013435364,
0.3624083399772644,
0.1801774799823761,
0.4296356737613678,
0.5187234282493591,
-0.15222392976284027,
0.45805102586746216,
-0.4750986695289612,
0.6635139584541321,
0.31022343039512634,
-0.9862582683563232,
0.5151200294494629,
-0.3408771753311157,
0.18669822812080383,
0.3430124819278717,
0.4217008650302887,
-0.5422165393829346,
-0.25038307905197144,
-0.7239488363265991,
-0.8087633848190308,
1.0723785161972046,
0.408836305141449,
0.2028471678495407,
0.049086615443229675,
0.2972502112388611,
-0.1918119192123413,
0.20368236303329468,
-1.2524597644805908,
-0.5019315481185913,
-0.10160983353853226,
-0.25605273246765137,
-0.23499137163162231,
-0.44792312383651733,
-0.34468933939933777,
-0.35282865166664124,
0.9135146737098694,
0.045345187187194824,
0.5397299528121948,
0.08824513852596283,
-0.34311985969543457,
-0.24925048649311066,
-0.04973456263542175,
0.6949215531349182,
0.4959505498409271,
-0.03970472887158394,
0.14145837724208832,
0.3763713240623474,
-0.5480400919914246,
0.3689034581184387,
0.3163395822048187,
-0.473033607006073,
0.11865860968828201,
0.7973588705062866,
0.9886754751205444,
0.2950403392314911,
-0.6961925029754639,
0.5366100072860718,
0.1905832290649414,
0.026341184973716736,
-0.4749099016189575,
-0.007643795106559992,
0.2917788624763489,
0.46882402896881104,
0.2244306057691574,
-0.1659201979637146,
-0.21297687292099,
-0.21879947185516357,
0.2798357605934143,
0.25744664669036865,
-0.4342713952064514,
-0.34461072087287903,
0.8836631178855896,
0.253065288066864,
-0.2377915382385254,
0.5516334772109985,
-0.21533605456352234,
-0.5993009805679321,
0.6530907154083252,
0.7583628296852112,
0.932614803314209,
-0.286122590303421,
0.3414568603038788,
0.3682726323604584,
0.3613797128200531,
-0.2041187286376953,
0.31213486194610596,
0.0944528803229332,
-0.7082065939903259,
-0.2096741795539856,
-0.6826649904251099,
-0.017726341262459755,
0.018917202949523926,
-0.3884658217430115,
0.5454535484313965,
-0.37251418828964233,
-0.10477174073457718,
-0.2915155589580536,
-0.10929839313030243,
-0.5597139000892639,
0.17272071540355682,
-0.03104400634765625,
0.975711464881897,
-0.7594262361526489,
1.1976709365844727,
0.5939830541610718,
-0.473466157913208,
-0.6438454985618591,
-0.03974766284227371,
-0.035418882966041565,
-0.9623880982398987,
0.8771563172340393,
0.1979699283838272,
-0.19788877665996552,
0.23336969316005707,
-0.5842481255531311,
-1.1950466632843018,
1.3655881881713867,
0.6213778853416443,
-0.42835748195648193,
0.18738362193107605,
0.19799676537513733,
0.61455899477005,
-0.3728807866573334,
0.36189019680023193,
0.7423935532569885,
0.6002622842788696,
0.21159915626049042,
-0.8276605606079102,
0.09141210466623306,
-0.13974961638450623,
-0.17722880840301514,
-0.027676453813910484,
-0.9392527937889099,
0.9641295075416565,
-0.36059656739234924,
-0.2621479034423828,
0.2808886766433716,
0.959606945514679,
0.38403788208961487,
0.20208384096622467,
0.2822701632976532,
0.5359044671058655,
0.6937355399131775,
-0.11009868234395981,
1.1752877235412598,
-0.3537214994430542,
0.5966123938560486,
0.9222819209098816,
-0.32605406641960144,
0.9004455208778381,
0.3778480887413025,
-0.1840183585882187,
0.49765250086784363,
0.7004954814910889,
-0.089284747838974,
0.6705469489097595,
-0.04951288178563118,
-0.3775578439235687,
-0.16091689467430115,
-0.0881827250123024,
-0.6399456858634949,
0.3568268418312073,
0.16751539707183838,
-0.31344717741012573,
-0.22476528584957123,
-0.09575182944536209,
0.18161050975322723,
-0.48800018429756165,
0.14388254284858704,
0.4276450276374817,
0.3533928096294403,
-0.388200581073761,
0.9005963206291199,
0.39175620675086975,
0.8277208805084229,
-0.7077196836471558,
0.2548719346523285,
-0.30111491680145264,
0.3444756865501404,
-0.1669653207063675,
-0.5089971423149109,
0.12274550646543503,
0.12531407177448273,
0.0036315154284238815,
-0.021041033789515495,
0.7036634087562561,
-0.40552863478660583,
-0.6606585383415222,
0.719883143901825,
0.31740042567253113,
0.39500799775123596,
0.2554399371147156,
-0.8892731070518494,
0.24713142216205597,
-0.0016765374457463622,
-0.5610824823379517,
0.19994038343429565,
0.06649044156074524,
-0.09302523732185364,
0.8369570970535278,
0.45318374037742615,
-0.29060128331184387,
0.12945862114429474,
-0.009681287221610546,
0.9026432633399963,
-0.4574069678783417,
-0.2606174349784851,
-0.7951527237892151,
0.6618945598602295,
0.2773666977882385,
-0.5868874192237854,
0.5568880438804626,
0.42275044322013855,
0.8718416690826416,
-0.26905742287635803,
0.5309103727340698,
-0.21143998205661774,
0.010364791378378868,
-0.45466217398643494,
0.799159049987793,
-0.7524222135543823,
0.18837150931358337,
-0.19627034664154053,
-0.9904313087463379,
-0.33118051290512085,
0.9243897199630737,
-0.10947082936763763,
0.09916836023330688,
0.6728225350379944,
0.7876535058021545,
-0.2123427838087082,
-0.17713293433189392,
0.09275875240564346,
0.3333726227283478,
0.25403207540512085,
0.6733947396278381,
0.6633989214897156,
-0.7684499621391296,
0.6045101881027222,
-0.42324963212013245,
-0.28962257504463196,
-0.41066280007362366,
-0.860560417175293,
-0.9282763600349426,
-0.5118979811668396,
-0.2834608554840088,
-0.40432626008987427,
-0.05885634198784828,
0.6353793144226074,
0.6907070279121399,
-0.8153967261314392,
-0.47132351994514465,
-0.11319693177938461,
0.08359259366989136,
-0.006147966254502535,
-0.1598600596189499,
0.5036077499389648,
-0.07555612921714783,
-0.651888906955719,
0.369036465883255,
0.0707768127322197,
0.33474624156951904,
-0.32049161195755005,
-0.4695459008216858,
-0.37337565422058105,
-0.07867269963026047,
0.5778689384460449,
0.30047816038131714,
-1.0916246175765991,
-0.1072881817817688,
0.03697283938527107,
-0.3126513361930847,
0.04509727284312248,
0.5025671124458313,
-0.7098908424377441,
0.04017799720168114,
0.2735722064971924,
0.4480307698249817,
0.873400092124939,
-0.39468371868133545,
0.5092827677726746,
-0.6578457355499268,
0.6825798749923706,
0.08971131592988968,
0.41934511065483093,
0.3294396996498108,
-0.3020554780960083,
0.8858929872512817,
0.30536848306655884,
-0.36476337909698486,
-0.8793368339538574,
0.4299066662788391,
-0.8891414403915405,
-0.1495717614889145,
1.2811650037765503,
-0.2717905640602112,
-0.10999802500009537,
0.16698777675628662,
-0.12129195779561996,
0.47630730271339417,
-0.1489761471748352,
0.5242494940757751,
0.6394140720367432,
0.08861472457647324,
-0.20952467620372772,
-0.47380882501602173,
0.4346749484539032,
0.5690788626670837,
-0.7821151614189148,
-0.17145657539367676,
0.37042635679244995,
0.33925336599349976,
0.16178542375564575,
0.7979419231414795,
0.0501241609454155,
0.4480975270271301,
-0.1093021035194397,
0.2603965997695923,
0.00755340326577425,
-0.5248185396194458,
-0.6564382314682007,
-0.1645711064338684,
-0.15100596845149994,
0.0683177188038826
] |
microsoft/deberta-large
|
microsoft
| 2022-09-26T08:50:58Z | 8,665 | 11 |
transformers
|
[
"transformers",
"pytorch",
"tf",
"deberta",
"deberta-v1",
"fill-mask",
"en",
"arxiv:2006.03654",
"license:mit",
"endpoints_compatible",
"has_space",
"region:us"
] |
fill-mask
| 2022-03-02T23:29:05Z |
---
language: en
tags:
- deberta-v1
- fill-mask
thumbnail: https://huggingface.co/front/thumbnails/microsoft.png
license: mit
---
## DeBERTa: Decoding-enhanced BERT with Disentangled Attention
[DeBERTa](https://arxiv.org/abs/2006.03654) improves the BERT and RoBERTa models using disentangled attention and enhanced mask decoder. It outperforms BERT and RoBERTa on majority of NLU tasks with 80GB training data.
Please check the [official repository](https://github.com/microsoft/DeBERTa) for more details and updates.
#### Fine-tuning on NLU tasks
We present the dev results on SQuAD 1.1/2.0 and several GLUE benchmark tasks.
| Model | SQuAD 1.1 | SQuAD 2.0 | MNLI-m/mm | SST-2 | QNLI | CoLA | RTE | MRPC | QQP |STS-B |
|---------------------------|-----------|-----------|-------------|-------|------|------|--------|-------|-------|------|
| | F1/EM | F1/EM | Acc | Acc | Acc | MCC | Acc |Acc/F1 |Acc/F1 |P/S |
| BERT-Large | 90.9/84.1 | 81.8/79.0 | 86.6/- | 93.2 | 92.3 | 60.6 | 70.4 | 88.0/- | 91.3/- |90.0/- |
| RoBERTa-Large | 94.6/88.9 | 89.4/86.5 | 90.2/- | 96.4 | 93.9 | 68.0 | 86.6 | 90.9/- | 92.2/- |92.4/- |
| XLNet-Large | 95.1/89.7 | 90.6/87.9 | 90.8/- | 97.0 | 94.9 | 69.0 | 85.9 | 90.8/- | 92.3/- |92.5/- |
| [DeBERTa-Large](https://huggingface.co/microsoft/deberta-large)<sup>1</sup> | 95.5/90.1 | 90.7/88.0 | 91.3/91.1| 96.5|95.3| 69.5| 91.0| 92.6/94.6| 92.3/- |92.8/92.5 |
| [DeBERTa-XLarge](https://huggingface.co/microsoft/deberta-xlarge)<sup>1</sup> | -/- | -/- | 91.5/91.2| 97.0 | - | - | 93.1 | 92.1/94.3 | - |92.9/92.7|
| [DeBERTa-V2-XLarge](https://huggingface.co/microsoft/deberta-v2-xlarge)<sup>1</sup>|95.8/90.8| 91.4/88.9|91.7/91.6| **97.5**| 95.8|71.1|**93.9**|92.0/94.2|92.3/89.8|92.9/92.9|
|**[DeBERTa-V2-XXLarge](https://huggingface.co/microsoft/deberta-v2-xxlarge)<sup>1,2</sup>**|**96.1/91.4**|**92.2/89.7**|**91.7/91.9**|97.2|**96.0**|**72.0**| 93.5| **93.1/94.9**|**92.7/90.3** |**93.2/93.1** |
--------
#### Notes.
- <sup>1</sup> Following RoBERTa, for RTE, MRPC, STS-B, we fine-tune the tasks based on [DeBERTa-Large-MNLI](https://huggingface.co/microsoft/deberta-large-mnli), [DeBERTa-XLarge-MNLI](https://huggingface.co/microsoft/deberta-xlarge-mnli), [DeBERTa-V2-XLarge-MNLI](https://huggingface.co/microsoft/deberta-v2-xlarge-mnli), [DeBERTa-V2-XXLarge-MNLI](https://huggingface.co/microsoft/deberta-v2-xxlarge-mnli). The results of SST-2/QQP/QNLI/SQuADv2 will also be slightly improved when start from MNLI fine-tuned models, however, we only report the numbers fine-tuned from pretrained base models for those 4 tasks.
- <sup>2</sup> To try the **XXLarge** model with **[HF transformers](https://huggingface.co/transformers/main_classes/trainer.html)**, you need to specify **--sharded_ddp**
```bash
cd transformers/examples/text-classification/
export TASK_NAME=mrpc
python -m torch.distributed.launch --nproc_per_node=8 run_glue.py --model_name_or_path microsoft/deberta-v2-xxlarge \\
--task_name $TASK_NAME --do_train --do_eval --max_seq_length 128 --per_device_train_batch_size 4 \\
--learning_rate 3e-6 --num_train_epochs 3 --output_dir /tmp/$TASK_NAME/ --overwrite_output_dir --sharded_ddp --fp16
```
### Citation
If you find DeBERTa useful for your work, please cite the following paper:
``` 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.4837853014469147,
-0.6780405640602112,
0.2892623543739319,
0.5146735906600952,
-0.19724078476428986,
0.22068846225738525,
-0.004980899393558502,
-0.6988261342048645,
0.3099653124809265,
0.1668112576007843,
-0.9074512124061584,
-0.36525237560272217,
-0.990102231502533,
-0.08524248749017715,
-0.022567598149180412,
0.9283164739608765,
-0.06807845830917358,
-0.22187714278697968,
-0.16404129564762115,
-0.19764791429042816,
-0.6233148574829102,
-0.47280293703079224,
-0.5301516056060791,
-0.47307199239730835,
0.2945176661014557,
0.34153351187705994,
0.718144953250885,
0.15728604793548584,
0.5246594548225403,
0.36843645572662354,
-0.44042280316352844,
0.37949469685554504,
-0.5535805225372314,
-0.059570565819740295,
0.1573188602924347,
-0.35038840770721436,
-1.004920482635498,
0.11826908588409424,
0.35058149695396423,
0.4084453880786896,
0.22317662835121155,
0.3587031662464142,
0.430827260017395,
1.1260573863983154,
-0.5068719983100891,
0.1579606980085373,
-0.5205650329589844,
0.07828281074762344,
0.1309584379196167,
-0.04748038575053215,
-0.21260559558868408,
-0.04491937905550003,
0.0942516028881073,
-0.44060570001602173,
0.050616636872291565,
-0.1831527054309845,
1.3626501560211182,
0.5832195281982422,
-0.10998038947582245,
-0.11030514538288116,
-0.42182984948158264,
1.2380074262619019,
-0.7870338559150696,
0.3877599239349365,
0.35316208004951477,
0.037209417670965195,
-0.23028096556663513,
-0.4427907168865204,
-0.3981795310974121,
-0.16682521998882294,
-0.22331444919109344,
0.3558095395565033,
-0.8226605653762817,
-0.13238206505775452,
0.41598907113075256,
0.17237752676010132,
-0.7468667030334473,
0.17845764756202698,
-0.3584047257900238,
-0.008258737623691559,
0.7764186263084412,
0.06762738525867462,
0.20639503002166748,
0.11840306222438812,
-0.539201557636261,
-0.15279045701026917,
-0.5894092321395874,
0.24762696027755737,
0.13897183537483215,
0.027722645550966263,
-0.34503358602523804,
0.266466349363327,
-0.2808990776538849,
0.984190821647644,
0.42734429240226746,
-0.01929878443479538,
0.7651061415672302,
-0.19854551553726196,
-0.48146072030067444,
0.00812820065766573,
0.6871057152748108,
0.34468361735343933,
-0.03718411177396774,
-0.12506425380706787,
-0.22358264029026031,
0.08619896322488785,
0.10329476743936539,
-1.0088509321212769,
-0.48277342319488525,
0.5956132411956787,
-0.6397066116333008,
-0.26395267248153687,
-0.03946998715400696,
-0.5775471329689026,
0.022705096751451492,
-0.637385368347168,
0.39272087812423706,
-0.6214905977249146,
-0.3402518332004547,
0.07197272032499313,
-0.07627079635858536,
0.08056150376796722,
0.5560621619224548,
-0.9096606969833374,
0.022863322868943214,
0.5111244320869446,
0.7954879999160767,
-0.13044489920139313,
-0.19572842121124268,
-0.6586517691612244,
-0.21881181001663208,
-0.05245404690504074,
0.3278583884239197,
-0.17350442707538605,
0.13203971087932587,
-0.1846538633108139,
0.17470258474349976,
-0.34372979402542114,
-0.3768903911113739,
0.19516941905021667,
-0.5656159520149231,
-0.026301488280296326,
-0.4124077558517456,
-0.4182455837726593,
-0.28279852867126465,
0.4144008457660675,
-0.5625796914100647,
1.199409008026123,
0.4739712178707123,
-0.947986900806427,
0.20677466690540314,
-0.6311915516853333,
-0.11711884289979935,
-0.21423938870429993,
-0.017959363758563995,
-0.5788118243217468,
-0.09245123714208603,
0.2732575535774231,
0.6350581645965576,
-0.068952277302742,
-0.05854349583387375,
-0.23848477005958557,
-0.4607138931751251,
0.06848954409360886,
-0.08984784781932831,
1.3724558353424072,
0.37312158942222595,
-0.9810084700584412,
0.05110619589686394,
-0.9707233905792236,
0.26223018765449524,
0.24529196321964264,
-0.3228060007095337,
-0.15945465862751007,
-0.20314592123031616,
0.06699839979410172,
0.57765793800354,
0.6436980366706848,
-0.6492342352867126,
0.32214418053627014,
-0.43039703369140625,
0.625975489616394,
0.6225950717926025,
-0.3453153371810913,
0.2455480396747589,
-0.25940337777137756,
0.45168423652648926,
0.446595698595047,
0.4210156798362732,
0.28875842690467834,
-0.6885290741920471,
-0.8135127425193787,
-0.6577760577201843,
0.3765140175819397,
0.7825449705123901,
-0.6678373217582703,
0.8060705661773682,
-0.1058167815208435,
-0.6647692918777466,
-0.5936639904975891,
0.27209538221359253,
0.6389371156692505,
0.3378334641456604,
0.56075119972229,
-0.0830213725566864,
-0.5968136787414551,
-1.1985297203063965,
0.059329889714717865,
-0.006917729042470455,
-0.014200860634446144,
0.18858250975608826,
0.7407427430152893,
-0.34153589606285095,
0.9543249011039734,
-0.5182623863220215,
-0.5197684168815613,
-0.1950652152299881,
0.05770697817206383,
0.47918421030044556,
0.8156948685646057,
1.1171343326568604,
-0.791157066822052,
-0.6866441369056702,
-0.24264584481716156,
-0.7067369818687439,
0.22160221636295319,
0.0002894034259952605,
-0.28093621134757996,
0.6481073498725891,
0.269254207611084,
-0.6444399952888489,
0.5480706095695496,
0.7710795998573303,
-0.5292125940322876,
0.27230721712112427,
-0.34586113691329956,
0.20271845161914825,
-1.0909031629562378,
0.22354698181152344,
-0.025666331872344017,
-0.3147556781768799,
-0.5883839726448059,
-0.08597138524055481,
0.1688302904367447,
0.343391090631485,
-0.3723703920841217,
0.36748477816581726,
-0.6944226622581482,
0.10594979673624039,
-0.22520411014556885,
0.2581104338169098,
0.1372668743133545,
0.8972548842430115,
-0.05872279778122902,
0.7340983152389526,
0.6093224883079529,
-0.49562883377075195,
0.2858958840370178,
0.6173102855682373,
-0.34233343601226807,
0.47407767176628113,
-0.9326632618904114,
0.21066948771476746,
-0.19919425249099731,
0.19434794783592224,
-1.1836271286010742,
0.1431409865617752,
0.3635253608226776,
-0.5631020069122314,
0.6343781352043152,
-0.15444998443126678,
-0.5654128193855286,
-0.578951895236969,
-0.4063646197319031,
-0.0228293277323246,
0.8111494779586792,
-0.7437915205955505,
0.2580987811088562,
0.41975000500679016,
0.13435588777065277,
-0.7611509561538696,
-0.880937397480011,
-0.13268610835075378,
-0.206546351313591,
-0.9157318472862244,
0.7878261208534241,
-0.22616776823997498,
-0.10132375359535217,
-0.08985931426286697,
-0.09508508443832397,
-0.2217366099357605,
0.3349231779575348,
0.375174880027771,
0.49551287293434143,
-0.06848961114883423,
-0.06653589010238647,
0.10495114326477051,
0.04072581231594086,
-0.15949182212352753,
0.01855231262743473,
0.5629326701164246,
-0.3657510578632355,
-0.0475492849946022,
-0.4129001498222351,
0.2822580933570862,
0.6307209134101868,
-0.39749521017074585,
0.8469952344894409,
1.0091005563735962,
-0.28898653388023376,
0.027220578864216805,
-0.5753136873245239,
-0.23604218661785126,
-0.5007375478744507,
0.2829452455043793,
-0.4625019133090973,
-0.8658487200737,
0.7224313020706177,
0.23212355375289917,
0.3045204281806946,
0.6765229105949402,
0.640080988407135,
-0.14771729707717896,
1.2696913480758667,
0.7074912190437317,
-0.3649125397205353,
0.6276920437812805,
-0.8065100908279419,
-0.042617883533239365,
-1.0764920711517334,
-0.23634803295135498,
-0.4718252420425415,
-0.7247493863105774,
-0.5569737553596497,
-0.2590843439102173,
0.22393614053726196,
0.49104610085487366,
-0.3150416314601898,
0.8723868727684021,
-1.1662330627441406,
0.03038358874619007,
0.8027498722076416,
0.5468788146972656,
-0.03180776163935661,
0.08190825581550598,
0.16487383842468262,
-0.11145152151584625,
-0.8256651759147644,
-0.43787577748298645,
0.8282416462898254,
0.41155874729156494,
0.5464017391204834,
0.2092294692993164,
0.9299793839454651,
0.15990173816680908,
-0.09727177023887634,
-0.35661837458610535,
0.4717520773410797,
-0.15319393575191498,
-0.5942853689193726,
-0.20076216757297516,
-0.37125781178474426,
-1.2281417846679688,
0.2227654606103897,
-0.14430628716945648,
-1.246294379234314,
0.4498092234134674,
0.4424605965614319,
-0.499057412147522,
0.1785089522600174,
-0.5811935067176819,
0.9924218058586121,
-0.14226508140563965,
-0.41041243076324463,
-0.30390921235084534,
-0.7527556419372559,
0.23744693398475647,
0.27323463559150696,
-0.1974378228187561,
-0.3238776922225952,
0.058605074882507324,
0.8957233428955078,
-0.3254598379135132,
0.8353438973426819,
-0.3999122381210327,
-0.31491854786872864,
0.4016254246234894,
-0.03570222854614258,
0.7625687122344971,
-0.0399862602353096,
-0.024561405181884766,
0.270842045545578,
0.3286595046520233,
-0.48466241359710693,
-0.498477578163147,
0.8524665832519531,
-0.9083512425422668,
-0.36938318610191345,
-0.4981597065925598,
-0.6499276161193848,
-0.2891887128353119,
-0.015862485393881798,
0.34599921107292175,
0.46565863490104675,
0.05302414670586586,
0.21265722811222076,
0.8982242345809937,
-0.13978739082813263,
0.5541122555732727,
0.5671678185462952,
0.20376800000667572,
-0.16304735839366913,
0.8856452703475952,
0.11145098507404327,
0.07618653774261475,
0.5128565430641174,
-0.33033737540245056,
-0.34005337953567505,
-0.5782163739204407,
-0.5533761382102966,
0.09344211965799332,
-0.570533275604248,
-0.44271552562713623,
-0.7429038286209106,
-0.08298788964748383,
-0.3908880949020386,
0.07312707602977753,
-0.43229085206985474,
-0.6278843879699707,
-0.7876450419425964,
0.2985886037349701,
0.7270294427871704,
0.577614963054657,
-0.04926253855228424,
0.15587928891181946,
-0.9641216397285461,
0.1846480816602707,
0.11275939643383026,
0.2652580738067627,
-0.01792125590145588,
-0.585829496383667,
-0.2740456163883209,
0.3449544310569763,
-0.6516894698143005,
-0.8768388628959656,
0.4803861379623413,
0.04584357142448425,
0.6683025360107422,
0.005339570809155703,
0.11020972579717636,
0.7046235203742981,
-0.43964290618896484,
0.8461962938308716,
0.35758841037750244,
-0.8897174000740051,
0.7695531845092773,
-0.27653273940086365,
0.3111777901649475,
0.6679549217224121,
0.4799487590789795,
-0.0060506719164550304,
-0.34295105934143066,
-0.8708308935165405,
-0.8226538896560669,
1.0830481052398682,
0.5622082352638245,
-0.15734972059726715,
0.10659325867891312,
0.1786792278289795,
-0.21595917642116547,
0.24872520565986633,
-0.40050777792930603,
-0.5042082071304321,
-0.19908729195594788,
-0.30997875332832336,
-0.02417531982064247,
-0.3259429633617401,
-0.10103034228086472,
-0.513114869594574,
0.9812975525856018,
-0.04324362799525261,
0.6192753911018372,
0.539746105670929,
-0.29665014147758484,
-0.01126638613641262,
-0.015314714051783085,
0.9025155901908875,
0.9153119921684265,
-0.47412317991256714,
-0.24944710731506348,
0.2145320028066635,
-0.46798276901245117,
-0.03343379124999046,
0.24012243747711182,
0.04002638906240463,
0.2157805860042572,
0.28085076808929443,
1.0035427808761597,
0.040504444390535355,
-0.5569728016853333,
0.40205854177474976,
0.06927143782377243,
-0.45363661646842957,
-0.22003653645515442,
-0.019571153447031975,
-0.03047814592719078,
0.6157309412956238,
0.30849191546440125,
0.16674691438674927,
0.18476170301437378,
-0.40851762890815735,
0.22288000583648682,
0.6968900561332703,
-0.6159484386444092,
-0.3261650800704956,
0.7272205948829651,
0.10852406919002533,
0.023210065439343452,
0.5787896513938904,
-0.26818740367889404,
-0.7318935394287109,
0.8926171064376831,
0.37979528307914734,
0.8650264143943787,
-0.1637980192899704,
0.06077633798122406,
0.7265051007270813,
0.3644832968711853,
0.12377125769853592,
0.6405232548713684,
0.05948271229863167,
-0.3756980299949646,
-0.29869282245635986,
-0.7148410081863403,
-0.02447938174009323,
0.29051923751831055,
-0.7400379776954651,
0.03741678223013878,
-0.1369355469942093,
-0.3723161518573761,
0.18964441120624542,
0.4083225429058075,
-0.9323752522468567,
0.1884637027978897,
0.11411374062299728,
1.048757553100586,
-0.5620671510696411,
0.9155101180076599,
0.7751646041870117,
-0.4683407247066498,
-0.6880239844322205,
-0.30118995904922485,
-0.12627315521240234,
-0.9084148406982422,
1.103676199913025,
0.19368736445903778,
0.10289555788040161,
0.022208744660019875,
-0.4018293023109436,
-1.0155224800109863,
1.3399622440338135,
0.3834821283817291,
-0.9879574775695801,
-0.05627138167619705,
-0.0010890996782109141,
0.4744953215122223,
-0.24974894523620605,
0.281535267829895,
0.6153931021690369,
0.5123721957206726,
-0.07675731182098389,
-1.1952961683273315,
0.3923957049846649,
-0.3631401062011719,
0.10907352715730667,
0.22321155667304993,
-0.9776240587234497,
1.1178044080734253,
-0.14922678470611572,
0.19532974064350128,
0.16384902596473694,
0.6573830246925354,
0.2983165681362152,
0.07115291059017181,
0.630118727684021,
0.7321560978889465,
0.6267602443695068,
-0.24211342632770538,
0.9761168956756592,
-0.5328889489173889,
0.6837403178215027,
0.9795963168144226,
0.18681135773658752,
0.7221930027008057,
0.5233738422393799,
-0.5120430588722229,
0.4714922308921814,
0.7161359786987305,
-0.19549335539340973,
0.49186375737190247,
0.17868393659591675,
0.09364846348762512,
-0.2464069426059723,
0.35773760080337524,
-0.5033566355705261,
0.46338745951652527,
0.12016772478818893,
-0.492836058139801,
-0.21583357453346252,
0.08297936618328094,
0.07835866510868073,
-0.15384791791439056,
-0.2624199092388153,
0.7123202085494995,
-0.04421764984726906,
-0.7571054697036743,
1.1826850175857544,
-0.24533292651176453,
0.9100298285484314,
-0.549804151058197,
-0.14659637212753296,
-0.057752419263124466,
0.5488385558128357,
-0.3699178695678711,
-0.7996039986610413,
0.27642035484313965,
-0.11514751613140106,
-0.355108380317688,
-0.13868021965026855,
0.7046281695365906,
-0.4090314507484436,
-0.4333934783935547,
0.4069119095802307,
0.39862060546875,
0.16414783895015717,
-0.3355356752872467,
-1.3039778470993042,
0.40500426292419434,
0.2622464597225189,
-0.5569034814834595,
0.5348383188247681,
0.13990184664726257,
0.19635771214962006,
0.5061132907867432,
0.22349680960178375,
-0.4245202839374542,
0.022950969636440277,
-0.24831488728523254,
1.062547206878662,
-0.3139810264110565,
-0.3019532263278961,
-0.8991914987564087,
0.6875885725021362,
-0.23593677580356598,
-0.4182243347167969,
0.9955300688743591,
0.5164104700088501,
0.5594477653503418,
-0.2888334095478058,
0.552039623260498,
-0.45558053255081177,
0.3699790835380554,
-0.4845731258392334,
0.8344123363494873,
-0.9749165177345276,
-0.13116981089115143,
-0.5134546756744385,
-0.9807718396186829,
0.038308143615722656,
0.7798041701316833,
-0.011145001277327538,
0.12406015396118164,
0.240614652633667,
0.7049307227134705,
-0.12024052441120148,
-0.2536260187625885,
0.15314826369285583,
0.1669464260339737,
0.2681286036968231,
1.0771328210830688,
0.516975462436676,
-0.8829023241996765,
0.5108677744865417,
-0.5543340444564819,
-0.4752683639526367,
-0.41690772771835327,
-0.8420205116271973,
-1.1738216876983643,
-0.8078491687774658,
-0.7789620757102966,
-0.5604308843612671,
-0.046166568994522095,
0.9566674828529358,
1.0271973609924316,
-0.9298749566078186,
0.20294494926929474,
-0.2197001874446869,
-0.11308802664279938,
-0.5687202215194702,
-0.24544236063957214,
0.5655931830406189,
-0.4871509373188019,
-1.112723469734192,
0.34749993681907654,
-0.11303167045116425,
0.3462156653404236,
-0.12465173751115799,
-0.2579238712787628,
-0.3523431420326233,
-0.059659216552972794,
0.8285723328590393,
0.2563719153404236,
-0.7051953673362732,
-0.20412874221801758,
0.09657634049654007,
-0.1423172503709793,
0.11744371056556702,
0.121925488114357,
-0.8065922856330872,
0.07265234738588333,
0.6197426319122314,
0.23459500074386597,
0.6165271997451782,
-0.24257077276706696,
0.18384699523448944,
-0.8434718251228333,
0.46468254923820496,
0.2559196949005127,
0.4496937394142151,
0.05742177739739418,
-0.5005244612693787,
0.6577394008636475,
-0.13977642357349396,
-0.6375448107719421,
-0.961505651473999,
0.10560278594493866,
-1.570088267326355,
-0.3333319127559662,
1.0255522727966309,
-0.3511136770248413,
-0.29490232467651367,
0.09991934150457382,
-0.3711284399032593,
0.16995061933994293,
-0.4452768862247467,
0.7745315432548523,
0.5367680191993713,
-0.2768404483795166,
0.035001806914806366,
-0.5173429846763611,
0.8023449182510376,
0.5883724689483643,
-0.6313445568084717,
0.017522398382425308,
0.3296269178390503,
0.2627992331981659,
0.5854334831237793,
0.61391282081604,
-0.04727954417467117,
0.41382017731666565,
-0.1634480357170105,
0.007351443637162447,
-0.38487908244132996,
-0.23840807378292084,
-0.17374485731124878,
-0.218081995844841,
-0.14548376202583313,
-0.6333969831466675
] |
bn22/Mistral-7B-Instruct-v0.1-sharded
|
bn22
| 2023-09-27T21:17:01Z | 8,653 | 10 |
transformers
|
[
"transformers",
"pytorch",
"mistral",
"text-generation",
"finetuned",
"license:apache-2.0",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-09-27T20:53:48Z |
---
license: apache-2.0
pipeline_tag: text-generation
tags:
- finetuned
---
# Model Card for Mistral-7B-Instruct-v0.1
The Mistral-7B-Instruct-v0.1 Large Language Model (LLM) is a instruct fine-tuned version of the [Mistral-7B-v0.1](https://huggingface.co/mistralai/Mistral-7B-v0.1) generative text model using a variety of publicly available conversation datasets.
For full details of this model please read [release blog post](https://mistral.ai/news/announcing-mistral-7b/)
## Instruction format
In order to leverage instruction fine-tuning, your prompt should be surrounded by `[INST]` and `[\INST]` tokens. The very first instruction should begin with a begin of sentence id. The next instructions should not. The assistant generation will be ended by the end-of-sentence token id.
E.g.
```python
from transformers import AutoModelForCausalLM, AutoTokenizer
device = "cuda" # the device to load the model onto
model = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-Instruct-v0.1")
tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-Instruct-v0.1")
text = "<s>[INST] What is your favourite condiment? [/INST]"
"Well, I'm quite partial to a good squeeze of fresh lemon juice. It adds just the right amount of zesty flavour to whatever I'm cooking up in the kitchen!</s> "
"[INST] Do you have mayonnaise recipes? [/INST]"
encodeds = tokenizer(text, return_tensors="pt", add_special_tokens=False)
model_inputs = encodeds.to(device)
model.to(device)
generated_ids = model.generate(**model_inputs, max_new_tokens=1000, do_sample=True)
decoded = tokenizer.batch_decode(generated_ids)
print(decoded[0])
```
## Model Architecture
This instruction model is based on Mistral-7B-v0.1, a transformer model with the following architecture choices:
- Grouped-Query Attention
- Sliding-Window Attention
- Byte-fallback BPE tokenizer
## The Mistral AI Team
Albert Jiang, Alexandre Sablayrolles, Arthur Mensch, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Florian Bressand, Gianna Lengyel, Guillaume Lample, Lélio Renard Lavaud, Lucile Saulnier, Marie-Anne Lachaux, Pierre Stock, Teven Le Scao, Thibaut Lavril, Thomas Wang, Timothée Lacroix, William El Sayed.
|
[
-0.29700326919555664,
-0.819627583026886,
0.24959324300289154,
0.3185456693172455,
-0.1192297711968422,
-0.3711497485637665,
-0.03656488656997681,
-0.044915586709976196,
-0.04676011577248573,
0.5036001205444336,
-0.5918079614639282,
-0.6249515414237976,
-0.5468072295188904,
0.0778767541050911,
-0.3502340316772461,
0.8866092562675476,
0.062485918402671814,
0.10668196529150009,
-0.02760271728038788,
0.16777054965496063,
-0.6520591974258423,
-0.5478081107139587,
-1.0070570707321167,
-0.2767235338687897,
0.256657212972641,
0.3023373782634735,
0.5499647855758667,
0.5787479281425476,
0.3588325083255768,
0.3718465268611908,
-0.4823348820209503,
0.3715115487575531,
-0.38615065813064575,
0.10916408151388168,
-0.10430928319692612,
-0.5369409322738647,
-0.4446314871311188,
-0.2731703221797943,
0.4426063299179077,
0.2760467529296875,
-0.17474673688411713,
0.3446381986141205,
-0.011549086309969425,
0.3974741995334625,
-0.38547950983047485,
0.294080913066864,
-0.5793241858482361,
0.019456371665000916,
-0.05615180730819702,
-0.10711036622524261,
-0.5155912041664124,
-0.17615871131420135,
-0.035438597202301025,
-0.5005145072937012,
0.35629701614379883,
0.0887010470032692,
0.9413038492202759,
0.5109297633171082,
-0.4275183379650116,
-0.24541018903255463,
-0.6071370840072632,
0.5835508108139038,
-0.967255175113678,
0.24355636537075043,
0.2879176139831543,
0.2808493375778198,
-0.4904733896255493,
-1.0884696245193481,
-0.7023182511329651,
-0.2643633186817169,
0.018403083086013794,
0.20550537109375,
-0.5124411582946777,
0.20248161256313324,
0.5060073137283325,
0.4433322250843048,
-0.423941433429718,
0.0467577762901783,
-0.6361758708953857,
-0.04894542321562767,
0.3119344413280487,
0.41215333342552185,
0.12993647158145905,
-0.08110332489013672,
-0.4786568284034729,
-0.14599905908107758,
-0.3525437116622925,
0.2855493128299713,
-0.013478368520736694,
0.0718211755156517,
-0.4247269332408905,
0.4164468050003052,
-0.16468843817710876,
0.7084710001945496,
0.6612613201141357,
-0.17371495068073273,
0.2523336708545685,
-0.12821388244628906,
-0.5083016753196716,
0.30891409516334534,
1.121894359588623,
0.2479616403579712,
-0.08818446099758148,
0.13543999195098877,
-0.27888357639312744,
-0.008143385872244835,
0.2003050595521927,
-0.9408798813819885,
-0.14357781410217285,
0.3220239579677582,
-0.4405856430530548,
-0.3563244640827179,
0.34179171919822693,
-0.4101882576942444,
-0.26939213275909424,
-0.09440576285123825,
0.48006853461265564,
-0.4470946192741394,
-0.1022048369050026,
0.07098070532083511,
-0.2815432846546173,
0.5756934881210327,
0.23944005370140076,
-1.046675443649292,
0.30070972442626953,
0.6180812120437622,
0.6737435460090637,
0.01592303067445755,
-0.3138729929924011,
-0.3933667242527008,
0.09878595918416977,
-0.2821164131164551,
0.6322867274284363,
-0.22744116187095642,
-0.7357291579246521,
-0.12904173135757446,
0.2880224287509918,
-0.18200504779815674,
-0.7556336522102356,
0.6892179250717163,
-0.33176082372665405,
0.3706786632537842,
-0.27838456630706787,
-0.5876643061637878,
-0.25004518032073975,
0.13494016230106354,
-0.5714738965034485,
1.259586215019226,
0.112125463783741,
-0.900315523147583,
-0.13435333967208862,
-0.7345200777053833,
-0.42634326219558716,
-0.12869377434253693,
-0.20832082629203796,
-0.2877628803253174,
0.27388641238212585,
0.3220089375972748,
0.47060438990592957,
-0.47150030732154846,
0.33013373613357544,
-0.004092381335794926,
-0.469698041677475,
0.4629948139190674,
-0.9972060918807983,
1.031980037689209,
0.262045294046402,
-0.6148456931114197,
0.3380108177661896,
-0.7860484719276428,
-0.2959127426147461,
0.13592441380023956,
-0.18372337520122528,
0.05340586602687836,
-0.39347565174102783,
-0.019128939136862755,
0.16638317704200745,
0.5630574226379395,
-0.23139047622680664,
0.30886533856391907,
-0.4755209684371948,
0.4477236270904541,
0.9284049868583679,
0.1456744521856308,
0.46937254071235657,
-0.4481373429298401,
0.5794858932495117,
0.37587377429008484,
0.46169695258140564,
-0.38881704211235046,
-0.45058998465538025,
-1.1615396738052368,
-0.2842199206352234,
0.011774985119700432,
0.7206048369407654,
-0.7421022653579712,
0.6060394048690796,
-0.17806638777256012,
-0.7245508432388306,
-0.7515331506729126,
0.05202389135956764,
0.3931988775730133,
0.6152628660202026,
0.48549920320510864,
0.03840351477265358,
-0.3834385871887207,
-0.8998526930809021,
0.06125926598906517,
-0.07079599052667618,
0.30019524693489075,
0.1613357961177826,
0.21490782499313354,
-0.42549267411231995,
0.8064499497413635,
-0.5323605537414551,
-0.1802002489566803,
-0.4545900821685791,
-0.09290207922458649,
0.5579606294631958,
0.47377046942710876,
0.3885609805583954,
-0.6231718063354492,
-0.4101981520652771,
0.04284065589308739,
-0.7345975637435913,
-0.23226140439510345,
-0.13455916941165924,
-0.3080005645751953,
0.08306171745061874,
0.5872528553009033,
-0.8242384195327759,
0.5707442164421082,
0.33602583408355713,
-0.6207096576690674,
0.5775387287139893,
-0.3174688220024109,
0.18164461851119995,
-1.5601874589920044,
-0.14763827621936798,
0.08222999423742294,
0.0301340501755476,
-0.6440503597259521,
-0.16578912734985352,
0.056971266865730286,
0.13001103699207306,
-0.7080422639846802,
0.8961933851242065,
-0.5169582366943359,
0.4782828688621521,
-0.3490886986255646,
-0.41653674840927124,
0.1086021214723587,
0.6293854713439941,
-0.24531042575836182,
0.8577102422714233,
0.6780633330345154,
-0.7501985430717468,
0.5155664682388306,
0.19832070171833038,
-0.04453927278518677,
0.41296863555908203,
-0.9459111094474792,
0.028338061645627022,
-0.2117013931274414,
0.21741390228271484,
-1.0561563968658447,
-0.20432162284851074,
0.5845752954483032,
-0.4452987015247345,
0.47477126121520996,
-0.09137213230133057,
-0.4622429311275482,
-0.402413547039032,
-0.058713387697935104,
0.4328802824020386,
0.6185521483421326,
-0.8068894147872925,
0.8405106663703918,
0.11847983300685883,
0.10184208303689957,
-0.5865277051925659,
-0.7542089223861694,
-0.0975315198302269,
-0.21873906254768372,
-0.47402748465538025,
0.3174535036087036,
-0.006788216065615416,
-0.10744550824165344,
-0.12706178426742554,
-0.2443346083164215,
-0.16601574420928955,
0.03758835047483444,
0.697887659072876,
0.41682639718055725,
-0.26177510619163513,
-0.15801939368247986,
0.4477490186691284,
-0.1142226979136467,
0.20814469456672668,
-0.022809958085417747,
0.8270778059959412,
-0.11841867864131927,
-0.22909553349018097,
-0.8474698662757874,
0.04111554101109505,
0.6803194284439087,
-0.37665659189224243,
0.7466647028923035,
0.9436122179031372,
-0.2744925916194916,
-0.2278197854757309,
-0.6471073031425476,
-0.05180630832910538,
-0.5685263276100159,
0.39337214827537537,
-0.37995555996894836,
-0.732067883014679,
0.6355400681495667,
0.1308964043855667,
0.15686142444610596,
0.723658561706543,
0.7276405692100525,
0.11941231787204742,
0.8208323121070862,
0.4313150942325592,
-0.1596212089061737,
0.65494304895401,
-0.5621302723884583,
0.10144992917776108,
-0.8025313019752502,
-0.4516358971595764,
-0.47409841418266296,
0.0308610238134861,
-0.3528428077697754,
-0.5662932991981506,
0.40200576186180115,
0.1820320039987564,
-0.5452080965042114,
0.22709782421588898,
-0.873598039150238,
0.24484702944755554,
0.7191061973571777,
0.09957253187894821,
0.0323362797498703,
-0.0008029558812268078,
-0.16856810450553894,
0.24267566204071045,
-0.7737826704978943,
-0.4900761842727661,
0.7879963517189026,
0.5033858418464661,
1.062820315361023,
0.020927537232637405,
0.8739579319953918,
0.04238428920507431,
0.26397186517715454,
-0.7756875157356262,
0.5444967746734619,
-0.06276174634695053,
-0.5006893277168274,
-0.11518164724111557,
-0.37884974479675293,
-1.0696275234222412,
0.298651784658432,
0.005766250193119049,
-0.6528286933898926,
0.3190823197364807,
0.19658994674682617,
-0.5276457071304321,
0.18264347314834595,
-1.0475897789001465,
1.1492890119552612,
-0.3609878122806549,
-0.14358070492744446,
0.1486329287290573,
-0.4353174865245819,
0.42443689703941345,
0.4055212140083313,
0.05797909200191498,
0.12085864692926407,
0.07639415562152863,
0.7922512888908386,
-0.4643585979938507,
1.0626237392425537,
-0.17615723609924316,
-0.2260264754295349,
0.34809601306915283,
-0.1644638478755951,
0.2691788375377655,
0.14065752923488617,
-0.03516184911131859,
0.1511978656053543,
0.2385646104812622,
-0.14755579829216003,
-0.6720010638237,
0.8027659058570862,
-0.9384392499923706,
-0.8481387495994568,
-0.4577076733112335,
-0.31960567831993103,
0.23843955993652344,
0.2491384595632553,
0.7388731837272644,
0.5498030185699463,
-0.19411355257034302,
-0.019160199910402298,
0.9308335185050964,
-0.265652060508728,
0.6267804503440857,
0.1985844373703003,
-0.20864900946617126,
-0.6514642238616943,
0.8578463196754456,
0.01129558403044939,
0.12671445310115814,
0.5418322682380676,
0.18181760609149933,
-0.24960340559482574,
-0.07644308358430862,
-0.4379372298717499,
0.1755964457988739,
-0.7584283947944641,
-0.37761354446411133,
-0.6726976633071899,
-0.49838733673095703,
-0.6224127411842346,
0.011152598075568676,
-0.41097962856292725,
-0.11261903494596481,
-0.736203134059906,
0.06846708059310913,
0.39596715569496155,
0.5919270515441895,
0.32427993416786194,
0.7081458568572998,
-0.8556923866271973,
0.4864949882030487,
0.17840476334095,
-0.06872449815273285,
0.3268217146396637,
-0.9687759280204773,
-0.32772430777549744,
0.09218958020210266,
-0.5529576539993286,
-0.9521405696868896,
0.4894227981567383,
-0.1174689456820488,
0.689709484577179,
0.6466613411903381,
0.034326035529375076,
0.7383461594581604,
-0.45426470041275024,
0.9093113541603088,
0.2659424841403961,
-0.9158627390861511,
0.48764491081237793,
-0.014024971053004265,
0.6742995381355286,
0.31367969512939453,
0.14764676988124847,
-0.5644841194152832,
-0.22369752824306488,
-0.7281111478805542,
-0.902920663356781,
0.5883274674415588,
-0.01855304092168808,
0.3691789209842682,
-0.3599635362625122,
0.24954690039157867,
0.023712290450930595,
0.06750892847776413,
-0.6847252249717712,
-0.7224329710006714,
-0.32681718468666077,
-0.5370174050331116,
0.21515412628650665,
-0.36049458384513855,
0.02971341833472252,
-0.5406791567802429,
0.7259310483932495,
0.27483972907066345,
0.45333266258239746,
0.2967306971549988,
0.027949726209044456,
0.15296123921871185,
0.26610827445983887,
0.5523834824562073,
0.38299164175987244,
-0.01685125008225441,
0.05450867488980293,
0.274313747882843,
-0.6910392045974731,
0.11753576993942261,
0.315864235162735,
-0.19831760227680206,
0.2139517366886139,
0.2997642755508423,
1.2233258485794067,
0.03879523277282715,
-0.298380047082901,
0.5251041650772095,
-0.3122560381889343,
-0.11206983029842377,
-0.6016978025436401,
0.4250488877296448,
0.06742685288190842,
0.41823649406433105,
0.4433012306690216,
-0.05799126252532005,
0.10522983223199844,
-0.28445976972579956,
-0.154622882604599,
0.3510918617248535,
-0.4431162476539612,
-0.20057706534862518,
0.8356404304504395,
0.06134316697716713,
-0.4034443497657776,
0.5171871781349182,
-0.22701922059059143,
-0.543983519077301,
0.7381201982498169,
0.7067758440971375,
1.009737491607666,
-0.33945462107658386,
0.06516288965940475,
0.4168754816055298,
0.29731452465057373,
-0.2881699800491333,
0.3165038228034973,
-0.038441259413957596,
-0.5477672219276428,
0.030012598261237144,
-0.700532853603363,
-0.021511787548661232,
0.18462960422039032,
-0.6294254064559937,
0.3912724554538727,
-0.6177597641944885,
-0.31956782937049866,
-0.057923391461372375,
-0.22915108501911163,
-0.8433562517166138,
0.1886034905910492,
0.087965227663517,
1.061498999595642,
-0.6299057006835938,
0.8336920738220215,
0.7643754482269287,
-0.5191119313240051,
-1.1202317476272583,
-0.0318513922393322,
-0.2591802477836609,
-0.7746460437774658,
0.5913297533988953,
0.22594745457172394,
0.0377548448741436,
0.18730026483535767,
-0.7975829839706421,
-0.6681258082389832,
1.2054598331451416,
0.2825905382633209,
-0.49203482270240784,
-0.27046799659729004,
0.028604548424482346,
0.39530855417251587,
-0.25622278451919556,
0.5544664859771729,
0.4630490839481354,
0.273527592420578,
0.2164301574230194,
-0.9931909441947937,
0.19099868834018707,
-0.3303624093532562,
0.19768759608268738,
-0.0395793616771698,
-0.7729280591011047,
1.0068849325180054,
-0.1856546849012375,
-0.16306345164775848,
0.2148122489452362,
1.0519416332244873,
0.2516871988773346,
0.24884255230426788,
0.2585759162902832,
0.6946438550949097,
0.6102046966552734,
-0.014129380695521832,
0.9638375043869019,
-0.5054739117622375,
0.28476595878601074,
1.2047603130340576,
0.21075299382209778,
0.7053823471069336,
0.4934486746788025,
-0.10316839069128036,
0.37175220251083374,
0.6610330939292908,
-0.20998255908489227,
0.40080252289772034,
0.21034693717956543,
-0.2306538224220276,
-0.002689370419830084,
-0.08225714415311813,
-0.5729435086250305,
0.37559932470321655,
0.3568017780780792,
-0.6885678172111511,
-0.08797788619995117,
-0.02206786349415779,
0.1322447508573532,
-0.2655024230480194,
-0.4030810296535492,
0.8393487334251404,
0.23865987360477448,
-0.6498124003410339,
1.0307470560073853,
0.17115700244903564,
0.8577845692634583,
-0.4495616853237152,
-0.237193301320076,
-0.4676097333431244,
0.15264958143234253,
-0.26751840114593506,
-0.4875965118408203,
-0.26821255683898926,
-0.09503258764743805,
-0.3779883086681366,
0.22241610288619995,
0.4168427586555481,
-0.5432129502296448,
-0.7503048777580261,
-0.12346075475215912,
0.35498300194740295,
0.09430306404829025,
0.0249143298715353,
-0.7264748215675354,
0.21152809262275696,
0.0787857174873352,
-0.3120500147342682,
-0.046540118753910065,
0.8016343712806702,
0.000026253021133015864,
0.6313110589981079,
0.4933319091796875,
-0.15035293996334076,
0.357944130897522,
0.2873852550983429,
0.9356594085693359,
-0.7521945238113403,
-0.49829959869384766,
-1.012065052986145,
0.6669630408287048,
0.014282286167144775,
-0.565294086933136,
0.8117167949676514,
0.6602156162261963,
0.809021532535553,
-0.19004438817501068,
0.7572125196456909,
-0.03903605788946152,
0.05901338905096054,
-0.48056936264038086,
0.6505146622657776,
-0.44752582907676697,
0.41976267099380493,
-0.10279159992933273,
-0.873535692691803,
0.10003144294023514,
0.721480131149292,
-0.23483580350875854,
0.12214052677154541,
0.5653907060623169,
1.1364965438842773,
-0.22462736070156097,
-0.2603914141654968,
0.25912559032440186,
0.4048493504524231,
0.3721691071987152,
0.44026169180870056,
0.808431088924408,
-0.6322793960571289,
0.3439691960811615,
-0.3336945176124573,
-0.28798428177833557,
-0.11424807459115982,
-0.3941241502761841,
-1.2153360843658447,
-0.47831711173057556,
-0.11043006926774979,
-0.6055678725242615,
-0.11826191842556,
1.3311325311660767,
0.3912676274776459,
-0.6492878198623657,
-0.32324376702308655,
0.021481161937117577,
0.0955958366394043,
-0.26738637685775757,
-0.2576860189437866,
0.4337562918663025,
-0.4648580253124237,
-0.7384980916976929,
0.21469475328922272,
0.09584527462720871,
0.33196938037872314,
-0.28066954016685486,
-0.09027627855539322,
0.03448669984936714,
0.10085222125053406,
0.46616604924201965,
0.23486748337745667,
-0.8846346139907837,
0.23704729974269867,
0.20021452009677887,
-0.43168094754219055,
-0.030234843492507935,
0.3966708481311798,
-0.4400487244129181,
0.2772235870361328,
0.21096913516521454,
0.5872082114219666,
0.4877724349498749,
-0.043744590133428574,
0.37306368350982666,
-0.39164310693740845,
0.2987605631351471,
0.03259063512086868,
0.3950042128562927,
0.20684553682804108,
-0.48577961325645447,
0.035456299781799316,
0.07803689688444138,
-0.5396308302879333,
-0.7768856883049011,
-0.12353041768074036,
-1.206946611404419,
-0.25270503759384155,
1.4584202766418457,
0.054676882922649384,
-0.6727851033210754,
0.1958293914794922,
-0.7610629200935364,
0.572169840335846,
-0.6028400659561157,
0.7078132629394531,
0.40404051542282104,
0.029501279816031456,
-0.2560393810272217,
-0.3180689811706543,
0.4875187873840332,
0.24130380153656006,
-0.6133838295936584,
-0.08468326926231384,
0.3699444830417633,
0.21415051817893982,
-0.02035202458500862,
0.6465742588043213,
0.12701822817325592,
0.3484013080596924,
0.06963274627923965,
0.24743013083934784,
-0.3291163444519043,
-0.20123790204524994,
-0.4074259102344513,
-0.11858699470758438,
0.12797556817531586,
-0.48182767629623413
] |
timm/tf_efficientnet_b5.ns_jft_in1k
|
timm
| 2023-04-27T21:21:37Z | 8,641 | 0 |
timm
|
[
"timm",
"pytorch",
"safetensors",
"image-classification",
"dataset:imagenet-1k",
"arxiv:1905.11946",
"arxiv:1911.04252",
"license:apache-2.0",
"region:us"
] |
image-classification
| 2022-12-13T00:04:12Z |
---
tags:
- image-classification
- timm
library_name: timm
license: apache-2.0
datasets:
- imagenet-1k
---
# Model card for tf_efficientnet_b5.ns_jft_in1k
A EfficientNet image classification model. Trained on ImageNet-1k and unlabeled JFT-300m using Noisy Student semi-supervised learning in Tensorflow by paper authors, ported to PyTorch by Ross Wightman.
## Model Details
- **Model Type:** Image classification / feature backbone
- **Model Stats:**
- Params (M): 30.4
- GMACs: 10.5
- Activations (M): 98.9
- Image size: 456 x 456
- **Papers:**
- EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks: https://arxiv.org/abs/1905.11946
- Self-training with Noisy Student improves ImageNet classification: https://arxiv.org/abs/1911.04252
- **Dataset:** ImageNet-1k
- **Original:** https://github.com/tensorflow/tpu/tree/master/models/official/efficientnet
## Model Usage
### Image Classification
```python
from urllib.request import urlopen
from PIL import Image
import timm
img = Image.open(urlopen(
'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/beignets-task-guide.png'
))
model = timm.create_model('tf_efficientnet_b5.ns_jft_in1k', pretrained=True)
model = model.eval()
# get model specific transforms (normalization, resize)
data_config = timm.data.resolve_model_data_config(model)
transforms = timm.data.create_transform(**data_config, is_training=False)
output = model(transforms(img).unsqueeze(0)) # unsqueeze single image into batch of 1
top5_probabilities, top5_class_indices = torch.topk(output.softmax(dim=1) * 100, k=5)
```
### Feature Map Extraction
```python
from urllib.request import urlopen
from PIL import Image
import timm
img = Image.open(urlopen(
'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/beignets-task-guide.png'
))
model = timm.create_model(
'tf_efficientnet_b5.ns_jft_in1k',
pretrained=True,
features_only=True,
)
model = model.eval()
# get model specific transforms (normalization, resize)
data_config = timm.data.resolve_model_data_config(model)
transforms = timm.data.create_transform(**data_config, is_training=False)
output = model(transforms(img).unsqueeze(0)) # unsqueeze single image into batch of 1
for o in output:
# print shape of each feature map in output
# e.g.:
# torch.Size([1, 24, 228, 228])
# torch.Size([1, 40, 114, 114])
# torch.Size([1, 64, 57, 57])
# torch.Size([1, 176, 29, 29])
# torch.Size([1, 512, 15, 15])
print(o.shape)
```
### Image Embeddings
```python
from urllib.request import urlopen
from PIL import Image
import timm
img = Image.open(urlopen(
'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/beignets-task-guide.png'
))
model = timm.create_model(
'tf_efficientnet_b5.ns_jft_in1k',
pretrained=True,
num_classes=0, # remove classifier nn.Linear
)
model = model.eval()
# get model specific transforms (normalization, resize)
data_config = timm.data.resolve_model_data_config(model)
transforms = timm.data.create_transform(**data_config, is_training=False)
output = model(transforms(img).unsqueeze(0)) # output is (batch_size, num_features) shaped tensor
# or equivalently (without needing to set num_classes=0)
output = model.forward_features(transforms(img).unsqueeze(0))
# output is unpooled, a (1, 2048, 15, 15) shaped tensor
output = model.forward_head(output, pre_logits=True)
# output is a (1, num_features) shaped tensor
```
## Model Comparison
Explore the dataset and runtime metrics of this model in timm [model results](https://github.com/huggingface/pytorch-image-models/tree/main/results).
## Citation
```bibtex
@inproceedings{tan2019efficientnet,
title={Efficientnet: Rethinking model scaling for convolutional neural networks},
author={Tan, Mingxing and Le, Quoc},
booktitle={International conference on machine learning},
pages={6105--6114},
year={2019},
organization={PMLR}
}
```
```bibtex
@article{Xie2019SelfTrainingWN,
title={Self-Training With Noisy Student Improves ImageNet Classification},
author={Qizhe Xie and Eduard H. Hovy and Minh-Thang Luong and Quoc V. Le},
journal={2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
year={2019},
pages={10684-10695}
}
```
```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.4028489887714386,
-0.5667287707328796,
-0.09206700325012207,
0.12241656333208084,
-0.243109792470932,
-0.3772733509540558,
-0.34005844593048096,
-0.4243268668651581,
0.15500237047672272,
0.3555457293987274,
-0.35642221570014954,
-0.5657033920288086,
-0.7395375967025757,
-0.13874374330043793,
-0.26673266291618347,
0.8871177434921265,
-0.07658440619707108,
0.0002976659161504358,
-0.16434097290039062,
-0.5555626749992371,
-0.040868330746889114,
-0.23004713654518127,
-0.9484599232673645,
-0.4453662931919098,
0.33978521823883057,
0.2532849609851837,
0.5406115055084229,
0.6846127510070801,
0.6687029004096985,
0.5271584391593933,
-0.10519299656152725,
0.04966047406196594,
-0.28501155972480774,
-0.11134835332632065,
0.41973042488098145,
-0.5482874512672424,
-0.3650415241718292,
0.17370489239692688,
0.7573058605194092,
0.5200256705284119,
-0.03992001712322235,
0.49472907185554504,
0.15688341856002808,
0.5971728563308716,
-0.3229126036167145,
0.20177292823791504,
-0.3733888566493988,
0.19002635776996613,
-0.07661151885986328,
0.1559128612279892,
-0.3033343255519867,
-0.3053283393383026,
0.23728851974010468,
-0.5563511252403259,
0.5216853618621826,
-0.08125661313533783,
1.3183952569961548,
0.30605846643447876,
-0.0811881348490715,
0.016005022451281548,
-0.21586765348911285,
0.7564096450805664,
-0.8379324078559875,
0.24814994633197784,
0.14058910310268402,
0.20035718381404877,
-0.09812496602535248,
-1.1196810007095337,
-0.4818703830242157,
-0.19375501573085785,
-0.23358596861362457,
-0.1036154180765152,
-0.3450506329536438,
0.15134041011333466,
0.3839830756187439,
0.3040412962436676,
-0.41055503487586975,
0.09183838218450546,
-0.5759963393211365,
-0.2150236815214157,
0.5946412682533264,
-0.026314053684473038,
0.22237448394298553,
-0.1513672024011612,
-0.44661250710487366,
-0.47257137298583984,
-0.24508622288703918,
0.3959732949733734,
0.2522110641002655,
0.27672240138053894,
-0.5267535448074341,
0.2961874306201935,
0.057889219373464584,
0.6929826736450195,
0.1895698457956314,
-0.3931921720504761,
0.6484445929527283,
0.043505989015102386,
-0.48154354095458984,
-0.137208953499794,
1.151750087738037,
0.3477628529071808,
0.24726533889770508,
0.052624765783548355,
-0.16751597821712494,
-0.4707781672477722,
-0.01878337375819683,
-1.3059748411178589,
-0.39039188623428345,
0.3157100975513458,
-0.7025924324989319,
-0.45579904317855835,
0.15777958929538727,
-0.558371365070343,
-0.08721935749053955,
-0.083018958568573,
0.6980336904525757,
-0.3817927837371826,
-0.4839839041233063,
-0.017735248431563377,
-0.16311247646808624,
0.14397692680358887,
0.2975838780403137,
-0.554530143737793,
0.159526064991951,
0.23069022595882416,
1.1350793838500977,
0.0775100365281105,
-0.4518020451068878,
-0.2005710005760193,
-0.45425930619239807,
-0.2725767195224762,
0.37383928894996643,
-0.011665688827633858,
-0.02104359306395054,
-0.3319864869117737,
0.3417171537876129,
-0.15166082978248596,
-0.7328683137893677,
0.3086484372615814,
-0.2228829711675644,
0.16246294975280762,
0.08489622175693512,
-0.29681408405303955,
-0.5567232370376587,
0.2839609980583191,
-0.4792560636997223,
1.17607843875885,
0.36111539602279663,
-0.8590514063835144,
0.28334754705429077,
-0.5484892725944519,
-0.15349262952804565,
-0.25955793261528015,
0.056504301726818085,
-1.1653804779052734,
-0.09526345878839493,
0.19464023411273956,
0.9186314344406128,
-0.2400558590888977,
0.14823633432388306,
-0.6394579410552979,
-0.25629520416259766,
0.30922114849090576,
-0.11392096430063248,
1.0948604345321655,
0.2896656394004822,
-0.47860056161880493,
0.27967318892478943,
-0.6489159464836121,
0.21885645389556885,
0.49063640832901,
-0.25386160612106323,
-0.03434780612587929,
-0.6397280097007751,
0.1535293310880661,
0.2763030230998993,
0.16189727187156677,
-0.5266479849815369,
0.1950025111436844,
-0.14912943542003632,
0.505111038684845,
0.6194016933441162,
-0.14067789912223816,
0.41854894161224365,
-0.342826247215271,
0.24205061793327332,
0.2981160879135132,
0.24996720254421234,
-0.06115104258060455,
-0.4135373532772064,
-0.8514606952667236,
-0.5277665853500366,
0.3520797789096832,
0.2527250051498413,
-0.49102967977523804,
0.40850830078125,
-0.20945629477500916,
-0.8129178881645203,
-0.4564018249511719,
0.13239295780658722,
0.4433363378047943,
0.7128044962882996,
0.36114662885665894,
-0.35790640115737915,
-0.4371088147163391,
-0.9281083345413208,
-0.010197194293141365,
-0.015270031988620758,
0.040821623057127,
0.3136517405509949,
0.6073563694953918,
-0.019559938460588455,
0.546457052230835,
-0.33329179883003235,
-0.32371073961257935,
-0.223592147231102,
0.11752846837043762,
0.47029995918273926,
0.8534665107727051,
0.7899507880210876,
-0.627778172492981,
-0.589475154876709,
-0.20651575922966003,
-0.9583288431167603,
0.09884810447692871,
-0.15180161595344543,
-0.1619926542043686,
0.19055932760238647,
0.28394263982772827,
-0.5313714146614075,
0.49592095613479614,
0.2421313226222992,
-0.36876997351646423,
0.36732402443885803,
-0.2232140153646469,
0.20229458808898926,
-1.094035029411316,
0.10773417353630066,
0.45045119524002075,
-0.22599288821220398,
-0.5470727682113647,
0.1313629150390625,
0.10008494555950165,
-0.014971740543842316,
-0.468616247177124,
0.5938379168510437,
-0.5817925930023193,
-0.1056366041302681,
-0.14026525616645813,
-0.3516102135181427,
-0.0027736257761716843,
0.7735068202018738,
-0.12830600142478943,
0.4144352674484253,
0.8519792556762695,
-0.4715379774570465,
0.4242830276489258,
0.24924732744693756,
-0.19951476156711578,
0.3681418001651764,
-0.7478132247924805,
0.12010715901851654,
0.03511093556880951,
0.2689429521560669,
-1.0146877765655518,
-0.21819011867046356,
0.323929101228714,
-0.592398464679718,
0.6906789541244507,
-0.541836678981781,
-0.4232046604156494,
-0.5203862190246582,
-0.39230838418006897,
0.3900209367275238,
0.6299380660057068,
-0.8156130909919739,
0.45298272371292114,
0.2571293115615845,
0.4014572501182556,
-0.6033602356910706,
-0.9016384482383728,
-0.26611432433128357,
-0.42535755038261414,
-0.7815985679626465,
0.3157443702220917,
0.14023298025131226,
0.13432714343070984,
0.11870701611042023,
-0.027228886261582375,
-0.15042757987976074,
0.0460582934319973,
0.510438084602356,
0.27948617935180664,
-0.286469966173172,
0.01956343650817871,
-0.2753523290157318,
0.05585167557001114,
0.11010029911994934,
-0.3741967976093292,
0.46649959683418274,
-0.34780240058898926,
-0.0076080928556621075,
-0.8342750668525696,
-0.06693471223115921,
0.47443121671676636,
-0.00396640645340085,
0.8273308873176575,
1.2101540565490723,
-0.46301427483558655,
-0.1085793673992157,
-0.41629528999328613,
-0.3002535402774811,
-0.5169983506202698,
0.5289506316184998,
-0.3526371419429779,
-0.6175970435142517,
0.8001466393470764,
-0.06118723005056381,
0.12268772721290588,
0.7503591179847717,
0.353779137134552,
-0.10713304579257965,
0.640546977519989,
0.5777617692947388,
0.23081718385219574,
0.8300521969795227,
-1.0686911344528198,
-0.2033543586730957,
-0.8009188771247864,
-0.37177786231040955,
-0.37505555152893066,
-0.722995400428772,
-0.7619752883911133,
-0.29470106959342957,
0.5011979937553406,
0.2321271300315857,
-0.5876252055168152,
0.42145678400993347,
-0.9170316457748413,
0.0902981385588646,
0.6440325975418091,
0.5865306854248047,
-0.35073724389076233,
0.33546313643455505,
-0.15838608145713806,
0.04175947234034538,
-0.8413878083229065,
-0.13445860147476196,
1.2030658721923828,
0.4780658781528473,
0.6494131088256836,
-0.13915148377418518,
0.7452902793884277,
-0.21809592843055725,
0.3574977219104767,
-0.6176588535308838,
0.5849469900131226,
-0.15347188711166382,
-0.44830480217933655,
-0.2694385051727295,
-0.603644073009491,
-1.0945062637329102,
0.20005913078784943,
-0.29443368315696716,
-0.7610700726509094,
0.2377660721540451,
0.21295592188835144,
-0.2707222104072571,
0.7857674956321716,
-0.9484450817108154,
0.9786310791969299,
-0.07320719212293625,
-0.5139860510826111,
0.054677948355674744,
-0.6793612241744995,
0.29477280378341675,
0.21264012157917023,
-0.2632937729358673,
-0.06788609176874161,
0.09828484058380127,
1.1747729778289795,
-0.6726645231246948,
0.8522976636886597,
-0.5847920179367065,
0.45053181052207947,
0.5692059993743896,
-0.10927660018205643,
0.3728305399417877,
-0.11213403940200806,
-0.16788654029369354,
0.44381263852119446,
0.019127244129776955,
-0.49237969517707825,
-0.5426117777824402,
0.6066181063652039,
-1.070898175239563,
-0.3498000502586365,
-0.27139267325401306,
-0.5036864876747131,
0.22175659239292145,
0.1506710797548294,
0.4905775487422943,
0.6477916240692139,
0.29023924469947815,
0.3715762197971344,
0.5586072206497192,
-0.2680145502090454,
0.570838451385498,
-0.07968033105134964,
-0.13559935986995697,
-0.44940635561943054,
0.8213768601417542,
0.3670901358127594,
0.1952544003725052,
0.10938326269388199,
0.28189224004745483,
-0.30063876509666443,
-0.5812254548072815,
-0.3406389653682709,
0.2618480920791626,
-0.7182541489601135,
-0.5687627792358398,
-0.7144100069999695,
-0.4693814516067505,
-0.37664705514907837,
-0.10802219808101654,
-0.565527617931366,
-0.4509444534778595,
-0.45464274287223816,
0.21438562870025635,
0.7124760150909424,
0.4998224973678589,
-0.20694130659103394,
0.6121723651885986,
-0.45185887813568115,
0.06147826835513115,
0.13977795839309692,
0.4258444607257843,
0.11476000398397446,
-0.9440017938613892,
-0.32954007387161255,
-0.126385897397995,
-0.47369226813316345,
-0.6124956607818604,
0.5186485052108765,
0.27439114451408386,
0.5152913928031921,
0.41094422340393066,
-0.1268768161535263,
0.7434091567993164,
0.07363246381282806,
0.4999940097332001,
0.4415014684200287,
-0.5714254379272461,
0.506144106388092,
-0.0287336353212595,
0.23120534420013428,
0.16855095326900482,
0.3042912483215332,
-0.1575326770544052,
-0.09477254748344421,
-1.091493844985962,
-0.7497586011886597,
0.8761315941810608,
0.08729948848485947,
0.014719299972057343,
0.4355798065662384,
0.7428359389305115,
-0.005942579824477434,
0.029035739600658417,
-0.7787953615188599,
-0.4779283106327057,
-0.3884621262550354,
-0.31294697523117065,
0.010806400328874588,
0.003965248353779316,
-0.007837961427867413,
-0.7414406538009644,
0.6320173740386963,
-0.12576386332511902,
0.8356637358665466,
0.3857612609863281,
-0.033659838140010834,
-0.14710046350955963,
-0.38973182439804077,
0.37608179450035095,
0.2614019513130188,
-0.3408815860748291,
0.14377140998840332,
0.21916529536247253,
-0.5677192211151123,
0.16648270189762115,
0.19168980419635773,
-0.046857800334692,
0.004516975022852421,
0.5460782647132874,
0.9298164248466492,
-0.05884528532624245,
0.1387919783592224,
0.46746906638145447,
-0.08496174216270447,
-0.4930458664894104,
-0.2501905560493469,
0.2295931577682495,
-0.07099155336618423,
0.5143707394599915,
0.32739514112472534,
0.4531210660934448,
-0.05093299597501755,
-0.18159359693527222,
0.2585526406764984,
0.5175006985664368,
-0.2635382413864136,
-0.28782323002815247,
0.6728910803794861,
-0.16768693923950195,
-0.1153370812535286,
0.8826274871826172,
-0.16549745202064514,
-0.5021085143089294,
1.1340047121047974,
0.4224652945995331,
0.971489667892456,
-0.004373965784907341,
0.014448958449065685,
1.0443642139434814,
0.22244194149971008,
-0.08608139306306839,
0.09035889804363251,
0.03450777754187584,
-0.7687075734138489,
0.04071791097521782,
-0.5634974837303162,
0.04821871966123581,
0.3184003531932831,
-0.49200794100761414,
0.25445887446403503,
-0.7576714158058167,
-0.43311232328414917,
0.20691722631454468,
0.40688616037368774,
-0.955266535282135,
0.2282092571258545,
-0.05276736989617348,
0.8356844782829285,
-0.7322527766227722,
0.81792151927948,
0.8247770071029663,
-0.4658713936805725,
-1.2329156398773193,
-0.1426778882741928,
-0.07897143810987473,
-0.8215449452400208,
0.601342499256134,
0.47842785716056824,
0.18449045717716217,
0.11198008805513382,
-0.896207869052887,
-0.7191159725189209,
1.453115701675415,
0.5485319495201111,
-0.17485472559928894,
0.2794479429721832,
-0.13104817271232605,
0.28351327776908875,
-0.4489629864692688,
0.5699875354766846,
0.1687651425600052,
0.36439621448516846,
0.30477091670036316,
-0.6780949234962463,
0.30623242259025574,
-0.3521745502948761,
0.058154575526714325,
0.1980421394109726,
-0.9727280735969543,
0.9595091938972473,
-0.5141099095344543,
-0.09057647734880447,
-0.07178568840026855,
0.777321457862854,
0.10639440268278122,
0.1606816053390503,
0.6636927723884583,
0.8045024871826172,
0.5964521169662476,
-0.3186487555503845,
0.853067934513092,
0.03829494118690491,
0.6949800848960876,
0.62787926197052,
0.5704882144927979,
0.4817424714565277,
0.37530195713043213,
-0.3073080778121948,
0.26789581775665283,
1.0972938537597656,
-0.39867889881134033,
0.2904285490512848,
0.22691570222377777,
0.08778642117977142,
-0.20831075310707092,
0.1045650765299797,
-0.3480309545993805,
0.5482752919197083,
0.1387738734483719,
-0.5640981793403625,
-0.26029521226882935,
0.05905124545097351,
0.01428151410073042,
-0.4050080478191376,
-0.3030702769756317,
0.44814372062683105,
0.028529835864901543,
-0.3867427408695221,
0.9617916941642761,
0.045174773782491684,
0.9360069036483765,
-0.35067442059516907,
0.08112724870443344,
-0.2741945683956146,
0.2600843906402588,
-0.39627718925476074,
-0.7915862202644348,
0.3151494562625885,
-0.2838343381881714,
0.03265469893813133,
-0.018337100744247437,
0.7355401515960693,
-0.39435136318206787,
-0.5200153589248657,
0.21949033439159393,
0.3113229274749756,
0.49629855155944824,
0.023927966132760048,
-1.3017499446868896,
0.13483060896396637,
0.059427447617053986,
-0.7717738747596741,
0.3264577388763428,
0.4496936500072479,
0.10552382469177246,
0.771649181842804,
0.5616881847381592,
-0.13468393683433533,
0.15243972837924957,
-0.14927181601524353,
0.8272674679756165,
-0.39562082290649414,
-0.2600296437740326,
-0.7898463010787964,
0.6064881682395935,
-0.11350496113300323,
-0.5978812575340271,
0.43422558903694153,
0.4660249948501587,
0.9078018069267273,
0.03423908352851868,
0.3481322228908539,
-0.2960202991962433,
-0.05119534954428673,
-0.2872987985610962,
0.8045003414154053,
-0.8384231925010681,
-0.04757092520594597,
-0.17858463525772095,
-0.6281329393386841,
-0.393783301115036,
0.7533830404281616,
-0.1906348615884781,
0.5257616639137268,
0.4369071125984192,
1.015912652015686,
-0.348162442445755,
-0.35554221272468567,
0.2706730365753174,
0.2035810798406601,
0.12212521582841873,
0.44296061992645264,
0.3409405052661896,
-0.8275821208953857,
0.4243902564048767,
-0.7919631004333496,
-0.2011820673942566,
-0.16194093227386475,
-0.6442116498947144,
-0.9516023993492126,
-0.9150457978248596,
-0.6911691427230835,
-0.6783314943313599,
-0.22768747806549072,
0.9943393468856812,
1.1302342414855957,
-0.6711747646331787,
-0.17089219391345978,
-0.040550995618104935,
0.1793183535337448,
-0.3160988390445709,
-0.24064384400844574,
0.695219099521637,
-0.260905921459198,
-0.7465084195137024,
-0.40252557396888733,
-0.10236601531505585,
0.3616231679916382,
-0.03108908236026764,
-0.20323768258094788,
-0.17456087470054626,
-0.3624052107334137,
0.1701333373785019,
0.23276621103286743,
-0.5694568157196045,
-0.13425245881080627,
-0.26203760504722595,
-0.19406042993068695,
0.3890019357204437,
0.375137060880661,
-0.5282979011535645,
0.3788583278656006,
0.4002247452735901,
0.3925389051437378,
0.8735367655754089,
-0.40091651678085327,
-0.02672148123383522,
-0.7907969355583191,
0.5551401972770691,
-0.15157118439674377,
0.4615238606929779,
0.42713093757629395,
-0.4560970962047577,
0.6619739532470703,
0.39386695623397827,
-0.5155966877937317,
-0.8265659213066101,
-0.2722461521625519,
-1.0992408990859985,
-0.14663304388523102,
0.9309483766555786,
-0.5181379318237305,
-0.5617426633834839,
0.5062195658683777,
0.05880023539066315,
0.7145496010780334,
-0.22166696190834045,
0.512249767780304,
0.21102507412433624,
-0.1352444589138031,
-0.7137575149536133,
-0.519278347492218,
0.400102436542511,
0.20103691518306732,
-0.536902904510498,
-0.41274240612983704,
-0.04412050545215607,
0.6882214546203613,
0.19723466038703918,
0.47123536467552185,
-0.03310815989971161,
0.14477072656154633,
0.11094594746828079,
0.4926838278770447,
-0.5340394377708435,
-0.04687957093119621,
-0.40312787890434265,
0.15989640355110168,
-0.08341483026742935,
-0.5655655860900879
] |
HuggingFaceH4/starchat-beta
|
HuggingFaceH4
| 2023-06-09T10:18:22Z | 8,631 | 238 |
transformers
|
[
"transformers",
"pytorch",
"tensorboard",
"safetensors",
"gpt_bigcode",
"text-generation",
"generated_from_trainer",
"license:bigcode-openrail-m",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-06-07T11:23:47Z |
---
tags:
- generated_from_trainer
widget:
- text: "How can I write a Python function to generate the nth Fibonacci number?"
- text: "How do I get the current date using shell commands? Explain how it works."
model-index:
- name: starchat-beta
results: []
license: bigcode-openrail-m
---
<img src="https://huggingface.co/HuggingFaceH4/starchat-beta/resolve/main/model_logo.png" alt="StarChat Beta Logo" width="800" style="margin-left:'auto' margin-right:'auto' display:'block'"/>
# Model Card for StarChat-β
StarChat is a series of language models that are trained to act as helpful coding assistants. StarChat-β is the second model in the series, and is a fine-tuned version of [StarCoderPlus](https://huggingface.co/bigcode/starcoderplus) that was trained on an ["uncensored"](https://erichartford.com/uncensored-models) variant of the [`openassistant-guanaco` dataset](https://huggingface.co/datasets/timdettmers/openassistant-guanaco). We found that removing the in-built alignment of the OpenAssistant dataset boosted performance on the [Open LLM Leaderboard](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard) and made the model more helpful at coding tasks. However, this means that model is likely to generate problematic text when prompted to do so and should only be used for educational and research purposes.
## Model Details
### Model Description
<!-- Provide a longer summary of what this model is. -->
- **Model type:** A 16B parameter GPT-like model fine-tuned on an ["uncensored"](https://erichartford.com/uncensored-models) variant of the [`openassistant-guanaco` dataset](https://huggingface.co/datasets/timdettmers/openassistant-guanaco).
- **Language(s) (NLP):** Primarily English and 80+ programming languages.
- **License:** BigCode Open RAIL-M v1
- **Finetuned from model:** [bigcode/starcoderplus](https://huggingface.co/bigcode/starcoderplus)
### Model Sources
<!-- Provide the basic links for the model. -->
- **Repository:** https://github.com/bigcode-project/starcoder
- **Demo:** https://huggingface.co/spaces/HuggingFaceH4/starchat-playground
## Intended uses & limitations
The model was fine-tuned on a variant of the [`OpenAssistant/oasst1`](https://huggingface.co/datasets/OpenAssistant/oasst1) dataset, which contains a diverse range of dialogues in over 35 languages. As a result, the model can be used for chat and you can check out our [demo](https://huggingface.co/spaces/HuggingFaceH4/starchat-playground) to test its coding capabilities.
Here's how you can run the model using the `pipeline()` function from 🤗 Transformers:
```python
import torch
from transformers import pipeline
pipe = pipeline("text-generation", model="HuggingFaceH4/starchat-beta", torch_dtype=torch.bfloat16, device_map="auto")
# We use a variant of ChatML to format each message
prompt_template = "<|system|>\n<|end|>\n<|user|>\n{query}<|end|>\n<|assistant|>"
prompt = prompt_template.format(query="How do I sort a list in Python?")
# We use a special <|end|> token with ID 49155 to denote ends of a turn
outputs = pipe(prompt, max_new_tokens=256, do_sample=True, temperature=0.2, top_k=50, top_p=0.95, eos_token_id=49155)
# You can sort a list in Python by using the sort() method. Here's an example:\n\n```\nnumbers = [3, 1, 4, 1, 5, 9, 2, 6, 5, 3, 5]\nnumbers.sort()\nprint(numbers)\n```\n\nThis will sort the list in place and print the sorted list.
```
## Bias, Risks, and Limitations
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
StarChat-β has not been aligned to human preferences with techniques like RLHF or deployed with in-the-loop filtering of responses like ChatGPT, so the model can produce problematic outputs (especially when prompted to do so).
Models trained primarily on code data will also have a more skewed demographic bias commensurate with the demographics of the GitHub community, for more on this see the [StarCoder dataset](https://huggingface.co/datasets/bigcode/starcoderdata) which is derived from The Stack.
Since the base model was pretrained on a large corpus of code, it may produce code snippets that are syntactically valid but semantically incorrect.
For example, it may produce code that does not compile or that produces incorrect results.
It may also produce code that is vulnerable to security exploits.
We have observed the model also has a tendency to produce false URLs which should be carefully inspected before clicking.
StarChat-β was fine-tuned from the base model [StarCoderPlus](https://huggingface.co/bigcode/starcoderplus), please refer to its model card's [Limitations Section](https://huggingface.co/bigcode/starcoderplus#limitations) for relevant information.
In particular, the model was evaluated on some categories of gender biases, propensity for toxicity, and risk of suggesting code completions with known security flaws; these evaluations are reported in its [technical report](https://drive.google.com/file/d/1cN-b9GnWtHzQRoE7M7gAEyivY0kl4BYs/view).
## Training and evaluation data
StarChat-β is trained on an ["uncensored"](https://erichartford.com/uncensored-models) variant of the [`openassistant-guanaco` dataset](https://huggingface.co/datasets/timdettmers/openassistant-guanaco). We applied the same [recipe](https://huggingface.co/datasets/ehartford/WizardLM_alpaca_evol_instruct_70k_unfiltered/blob/main/wizardlm_clean.py) used to filter the ShareGPT datasets behind the [WizardLM](https://huggingface.co/datasets/ehartford/WizardLM_alpaca_evol_instruct_70k_unfiltered).
## Training procedure
### Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 2e-05
- train_batch_size: 4
- eval_batch_size: 4
- seed: 42
- distributed_type: multi-GPU
- num_devices: 8
- gradient_accumulation_steps: 8
- total_train_batch_size: 256
- total_eval_batch_size: 32
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: cosine
- lr_scheduler_warmup_ratio: 0.03
- num_epochs: 6
### Training results
| Training Loss | Epoch | Step | Validation Loss |
|:-------------:|:-----:|:----:|:---------------:|
| 1.5321 | 0.98 | 15 | 1.2856 |
| 1.2071 | 1.97 | 30 | 1.2620 |
| 1.0162 | 2.95 | 45 | 1.2853 |
| 0.8484 | 4.0 | 61 | 1.3274 |
| 0.6981 | 4.98 | 76 | 1.3994 |
| 0.5668 | 5.9 | 90 | 1.4720 |
### Framework versions
- Transformers 4.28.1
- Pytorch 2.0.1+cu118
- Datasets 2.12.0
- Tokenizers 0.13.3
## Citation
Although there isn't a blog post or paper associated with StarChat-β, you can find details on the earlier version in the blog post below:
**BibTeX:**
```
@article{Tunstall2023starchat-alpha,
author = {Tunstall, Lewis and Lambert, Nathan and Rajani, Nazneen and Beeching, Edward and Le Scao, Teven and von Werra, Leandro and Han, Sheon and Schmid, Philipp and Rush, Alexander},
title = {Creating a Coding Assistant with StarCoder},
journal = {Hugging Face Blog},
year = {2023},
note = {https://huggingface.co/blog/starchat},
}
```
|
[
-0.39489632844924927,
-0.7945055961608887,
0.028007345274090767,
0.15484139323234558,
-0.16075186431407928,
-0.14757902920246124,
-0.35889723896980286,
-0.6585227251052856,
0.2391962707042694,
0.3843076825141907,
-0.4544322192668915,
-0.5160896182060242,
-0.6950284242630005,
-0.10036763548851013,
-0.20602726936340332,
1.3624955415725708,
0.1275915503501892,
0.17075559496879578,
-0.08546732366085052,
-0.19742250442504883,
-0.5402083396911621,
-0.568574070930481,
-0.525339663028717,
-0.1538507044315338,
0.39770743250846863,
0.48958733677864075,
0.8945451974868774,
0.524737536907196,
0.49072006344795227,
0.2812887132167816,
-0.21234415471553802,
0.09400536119937897,
-0.6033871173858643,
-0.04601969197392464,
0.16764916479587555,
-0.4051514267921448,
-0.518977165222168,
0.12948265671730042,
0.3481549322605133,
0.34782320261001587,
0.11282192170619965,
0.4217086434364319,
0.20424889028072357,
0.5651506185531616,
-0.4607192873954773,
0.5208454132080078,
-0.43986380100250244,
-0.33308255672454834,
-0.1278490126132965,
0.09162283688783646,
-0.3115368187427521,
-0.4433095455169678,
-0.032961320132017136,
-0.3602854311466217,
0.03412775695323944,
0.17799809575080872,
1.1158409118652344,
0.004029781091958284,
-0.1338159292936325,
-0.418438196182251,
-0.7639322280883789,
0.4376760721206665,
-0.7904930710792542,
0.5066677331924438,
0.48596274852752686,
0.32045403122901917,
0.010578664019703865,
-0.6114282608032227,
-0.6005105972290039,
-0.3563689887523651,
-0.18821564316749573,
-0.008734485134482384,
-0.13814720511436462,
-0.10768557339906693,
0.3250840902328491,
0.3244383633136749,
-0.7021890878677368,
0.17050820589065552,
-0.777763843536377,
-0.315481960773468,
0.4830610156059265,
-0.08528821915388107,
0.205281600356102,
-0.3516336977481842,
-0.19286775588989258,
-0.16065587103366852,
-0.46060019731521606,
0.1576792597770691,
0.4009367823600769,
0.4460614025592804,
-0.46164366602897644,
0.6695470809936523,
-0.011693576350808144,
0.5545709729194641,
0.00617583654820919,
0.005158733110874891,
0.40338295698165894,
-0.27250170707702637,
-0.20254382491111755,
-0.21249507367610931,
0.9974332451820374,
0.4879094660282135,
0.3609999418258667,
0.046196114271879196,
-0.045339204370975494,
0.15363836288452148,
0.06515958160161972,
-1.0271464586257935,
-0.21521292626857758,
0.3509036600589752,
-0.5282031893730164,
-0.4357856810092926,
-0.007934493944048882,
-0.5454882383346558,
-0.17679068446159363,
-0.054940562695264816,
0.2916158437728882,
-0.5846458077430725,
-0.2423897385597229,
-0.12513501942157745,
0.004981039557605982,
0.2688981294631958,
0.12255825847387314,
-0.8578242063522339,
0.27094924449920654,
0.5656763315200806,
0.8184928297996521,
0.15940357744693756,
-0.38964933156967163,
-0.21537154912948608,
-0.47554171085357666,
-0.24209730327129364,
0.459536612033844,
-0.3848339915275574,
-0.13371959328651428,
-0.19753631949424744,
-0.009975850582122803,
-0.0216198917478323,
-0.38493314385414124,
0.36570364236831665,
-0.5103506445884705,
0.3169337809085846,
-0.25641265511512756,
-0.5717446804046631,
-0.031059779226779938,
0.04730475693941116,
-0.4233412444591522,
1.0043189525604248,
0.04630627483129501,
-0.8346022367477417,
0.2916547358036041,
-0.5221087336540222,
-0.015507549978792667,
-0.02309350296854973,
-0.10211332142353058,
-0.3306078016757965,
-0.25764334201812744,
0.2257871776819229,
0.4794202446937561,
-0.28142428398132324,
0.13973858952522278,
-0.44902941584587097,
-0.4433223009109497,
0.3411921262741089,
-0.1746950000524521,
0.8100184202194214,
0.40857499837875366,
-0.2295977920293808,
0.1263418346643448,
-0.36559656262397766,
0.12834510207176208,
0.30997434258461,
-0.15336613357067108,
-0.26053860783576965,
-0.3047848343849182,
0.2163841426372528,
0.27024221420288086,
0.28513792157173157,
-0.581329345703125,
0.22656534612178802,
-0.3003096282482147,
0.48196306824684143,
0.6092685461044312,
-0.09014848619699478,
0.45287832617759705,
-0.33424481749534607,
0.31240206956863403,
-0.0262178685516119,
0.6233685612678528,
-0.09984803199768066,
-0.8544238209724426,
-0.7553130984306335,
-0.25133609771728516,
0.39693281054496765,
0.5928038358688354,
-0.5661466121673584,
0.6716793775558472,
-0.186320498585701,
-0.912564218044281,
-0.6940399408340454,
0.1622997522354126,
0.5603889226913452,
0.34789103269577026,
0.23936901986598969,
-0.2918431758880615,
-0.4579078257083893,
-0.7569734454154968,
-0.003106428775936365,
-0.5078114867210388,
0.1882784068584442,
0.5753942131996155,
0.6097207069396973,
-0.3398538827896118,
0.9506784081459045,
-0.5541097521781921,
-0.05301637947559357,
-0.15988124907016754,
-0.28403207659721375,
0.3175949156284332,
0.48773661255836487,
0.5490627288818359,
-0.6872324347496033,
-0.4879457652568817,
-0.09579375386238098,
-0.8840726017951965,
0.014385969378054142,
0.1287718266248703,
-0.2916257083415985,
0.30314111709594727,
0.40274372696876526,
-0.8450913429260254,
0.41880446672439575,
0.6769415140151978,
-0.5162590742111206,
0.727370023727417,
-0.06758759915828705,
0.1417943239212036,
-1.0233044624328613,
0.24331015348434448,
0.1238812729716301,
-0.05664879083633423,
-0.6159043312072754,
0.10111138969659805,
0.13207760453224182,
-0.319159597158432,
-0.36288702487945557,
0.7332029342651367,
-0.3998604118824005,
0.04011407494544983,
-0.21948254108428955,
0.04094432294368744,
-0.16331002116203308,
0.6697232723236084,
-0.1282714605331421,
0.6572321057319641,
0.6952511668205261,
-0.3788527846336365,
0.16976018249988556,
0.4227062463760376,
-0.12181295454502106,
0.18984927237033844,
-0.7317358255386353,
0.13768698275089264,
-0.050927940756082535,
0.27225756645202637,
-0.9526729583740234,
-0.012415620498359203,
0.6137922406196594,
-0.858189046382904,
0.27177953720092773,
-0.4075618088245392,
-0.44406285881996155,
-0.607670247554779,
-0.18247297406196594,
0.17594130337238312,
0.862386167049408,
-0.41581419110298157,
0.09553669393062592,
0.35101231932640076,
-0.11867543309926987,
-0.6158214211463928,
-0.4081551432609558,
-0.1281251609325409,
-0.1499485820531845,
-0.7239993810653687,
0.04041106253862381,
-0.2192493975162506,
-0.07455681264400482,
-0.058995570987463,
-0.14170914888381958,
0.00978913065046072,
-0.1984574943780899,
0.5199253559112549,
0.535117506980896,
-0.06220030039548874,
-0.07073362916707993,
-0.2630673348903656,
-0.05347480997443199,
-0.05967741832137108,
-0.2901102304458618,
0.7405714392662048,
-0.39684543013572693,
-0.1363743096590042,
-0.4180583357810974,
0.24413825571537018,
0.6009613871574402,
-0.14938509464263916,
0.8902468085289001,
0.7641165256500244,
-0.2972644865512848,
0.08656762540340424,
-0.5564159750938416,
-0.36972084641456604,
-0.49297448992729187,
0.27331268787384033,
-0.04666619002819061,
-0.9105575680732727,
0.667458176612854,
0.4013177752494812,
0.21301297843456268,
0.47034767270088196,
0.5785537362098694,
0.04190124571323395,
0.7146466374397278,
0.5740700960159302,
-0.2552952766418457,
0.5369659066200256,
-0.371641606092453,
0.12031182646751404,
-0.695619523525238,
-0.392561674118042,
-0.5708352327346802,
0.004915591329336166,
-0.8456647396087646,
-0.516170859336853,
0.11490757763385773,
0.3165348768234253,
-0.48410555720329285,
0.6055240035057068,
-0.6767032146453857,
0.18350091576576233,
0.4709540605545044,
0.261913537979126,
0.04357853904366493,
-0.09826691448688507,
0.008954322896897793,
-0.01647443138062954,
-0.6368265151977539,
-0.5723713636398315,
1.1704230308532715,
0.5554333329200745,
0.8971907496452332,
-0.07504931837320328,
0.6317113637924194,
0.19848664104938507,
0.3688032031059265,
-0.5740336775779724,
0.562593936920166,
0.04721701517701149,
-0.6605532765388489,
-0.18140725791454315,
-0.5756461024284363,
-0.9196071028709412,
0.09075707197189331,
-0.24859146773815155,
-0.9419188499450684,
0.05356988310813904,
0.17743785679340363,
-0.10091021656990051,
0.1654333472251892,
-0.9857079982757568,
1.009777545928955,
-0.2672465145587921,
-0.17663630843162537,
0.10005300492048264,
-0.6099780201911926,
0.34646230936050415,
0.07745234668254852,
0.11780720204114914,
-0.06604594737291336,
0.21826905012130737,
0.8883345723152161,
-0.7660388946533203,
0.9199013710021973,
-0.27944493293762207,
0.12859319150447845,
0.37379366159439087,
-0.008268320001661777,
0.5399500727653503,
0.1455041915178299,
0.06163866072893143,
0.5624219179153442,
-0.1117791086435318,
-0.3540983498096466,
-0.4359615445137024,
0.8481963276863098,
-1.0756384134292603,
-0.4314769506454468,
-0.2753940224647522,
-0.3930889666080475,
-0.03584589809179306,
0.2518986165523529,
0.37279069423675537,
0.33634528517723083,
-0.09627130627632141,
0.006625857669860125,
0.3366584777832031,
-0.37061721086502075,
0.2194606512784958,
0.3546055555343628,
-0.4062623083591461,
-0.41455337405204773,
0.7607269883155823,
0.1548071950674057,
0.26680299639701843,
0.029585765674710274,
0.1017143577337265,
-0.28557348251342773,
-0.40212482213974,
-0.403296560049057,
0.4813995361328125,
-0.6839882731437683,
-0.22169844806194305,
-0.7882736921310425,
-0.5586698055267334,
-0.6638667583465576,
-0.00784487184137106,
-0.5647255182266235,
-0.337904691696167,
-0.2311406135559082,
0.046543341130018234,
0.7489120960235596,
0.5650655031204224,
0.2320065200328827,
0.30424630641937256,
-0.6305363774299622,
0.04295214265584946,
0.10788986086845398,
0.4411911964416504,
-0.027447668835520744,
-0.6260398030281067,
-0.3057607114315033,
0.1930246353149414,
-0.2467404454946518,
-0.7750248908996582,
0.39613568782806396,
0.01577465608716011,
0.5109745264053345,
0.26224473118782043,
-0.03245997801423073,
0.6606952548027039,
-0.2951672077178955,
0.7673393487930298,
0.2275363653898239,
-0.5871816277503967,
0.584182620048523,
-0.4035595655441284,
0.24420467019081116,
0.35286399722099304,
0.5456877946853638,
-0.6113354563713074,
-0.5261582732200623,
-0.793186366558075,
-0.8132690787315369,
0.7129992246627808,
0.6299980282783508,
0.07984113693237305,
0.0960601344704628,
0.42707324028015137,
0.05700867250561714,
0.14236357808113098,
-0.7545371055603027,
-0.5470231771469116,
-0.3311988115310669,
-0.007388665806502104,
-0.20986786484718323,
-0.16928699612617493,
0.06463076174259186,
-0.4252069592475891,
0.5652990341186523,
0.00899970717728138,
0.7261412739753723,
0.019535083323717117,
-0.085243359208107,
0.0792875811457634,
0.058063726872205734,
0.4336663782596588,
0.5032532215118408,
-0.4067721962928772,
-0.27429497241973877,
-0.038846205919981,
-0.6941915154457092,
-0.19919593632221222,
0.34789061546325684,
-0.10363825410604477,
-0.10767940431833267,
0.31301355361938477,
1.0855592489242554,
-0.04325409606099129,
-0.3863789141178131,
0.5715581178665161,
-0.11616597324609756,
0.03446569666266441,
-0.31622403860092163,
0.17220745980739594,
0.17593587934970856,
0.3784571886062622,
0.36435362696647644,
0.3116592764854431,
-0.11122988164424896,
-0.5128799676895142,
0.2401019036769867,
0.23492375016212463,
-0.4270646870136261,
-0.3214254677295685,
0.734281599521637,
0.16810131072998047,
-0.3696988821029663,
0.7917090058326721,
-0.12229089438915253,
-0.3970276713371277,
0.6283360719680786,
0.451224148273468,
0.6533433794975281,
-0.1206371933221817,
0.21321633458137512,
0.505282998085022,
0.3402753174304962,
0.024615904316306114,
0.19551557302474976,
0.09278105944395065,
-0.7024128437042236,
-0.13021822273731232,
-0.5486605763435364,
-0.26307347416877747,
0.19013486802577972,
-0.6063898801803589,
0.42012104392051697,
-0.45453235507011414,
-0.3908328115940094,
0.2047322541475296,
0.12727651000022888,
-0.9689245223999023,
-0.08655492216348648,
0.2710517346858978,
1.0037275552749634,
-0.9719253778457642,
0.7383453845977783,
0.5856269001960754,
-0.5411580801010132,
-0.8366766571998596,
-0.14026647806167603,
0.00951445009559393,
-0.8609411716461182,
0.4230557978153229,
0.29693859815597534,
0.40766364336013794,
-0.17226500809192657,
-0.6451518535614014,
-0.8230771422386169,
1.077893853187561,
0.27489185333251953,
-0.4021470844745636,
-0.08269676566123962,
0.02111414261162281,
0.6549078226089478,
-0.39020729064941406,
0.8315775990486145,
0.3213934302330017,
0.35179632902145386,
0.17120127379894257,
-1.3011043071746826,
0.23875164985656738,
-0.558372437953949,
0.0007729495409876108,
-0.021945331245660782,
-0.8700262904167175,
0.9027063846588135,
-0.32556575536727905,
0.10268699377775192,
-0.06516353040933609,
0.5686116814613342,
0.43565452098846436,
0.11209607124328613,
0.3734723627567291,
0.29809027910232544,
0.6227860450744629,
-0.09162597358226776,
0.9902859330177307,
-0.37503257393836975,
0.5254843235015869,
0.7816540598869324,
-0.09593702852725983,
0.604268491268158,
0.3412638306617737,
-0.10143658518791199,
0.373619943857193,
0.7808207869529724,
-0.1620461791753769,
0.35140666365623474,
-0.03738146647810936,
0.18370425701141357,
-0.007064261008054018,
0.13233032822608948,
-0.42538362741470337,
0.4325912594795227,
0.3285064995288849,
-0.3601711392402649,
-0.174933061003685,
0.13455311954021454,
0.4268227219581604,
-0.3897903859615326,
-0.09915927797555923,
0.6381533741950989,
0.10750795900821686,
-0.6904201507568359,
1.0225839614868164,
-0.03720007836818695,
0.9157589673995972,
-0.6847712397575378,
0.09238922595977783,
-0.37481364607810974,
0.1957167387008667,
-0.24001222848892212,
-0.711860716342926,
0.08895063400268555,
0.07516901940107346,
-0.11515466868877411,
-0.015928544104099274,
0.7267484664916992,
-0.27153480052948,
-0.35081732273101807,
0.382082998752594,
0.46783241629600525,
0.5022109746932983,
-0.026221832260489464,
-1.0170363187789917,
0.3200734257698059,
0.04837486892938614,
-0.42664411664009094,
0.3486787676811218,
0.15045207738876343,
-0.18424060940742493,
0.8380686044692993,
0.6988723278045654,
0.12085828930139542,
-0.0334465391933918,
-0.10399546474218369,
1.1452423334121704,
-0.5856691598892212,
-0.5787677764892578,
-0.7251039743423462,
0.48698359727859497,
-0.16951197385787964,
-0.4406055808067322,
0.9437441229820251,
0.6701976656913757,
0.7089505195617676,
-0.027994530275464058,
0.7244170904159546,
-0.4852912127971649,
0.23346231877803802,
-0.2916766405105591,
0.8956776857376099,
-0.31810706853866577,
0.3220449686050415,
-0.4941714406013489,
-0.8421452045440674,
0.021011309698224068,
0.43007734417915344,
-0.3014598488807678,
0.3791346848011017,
0.5030941367149353,
1.1520637273788452,
-0.10746998339891434,
0.018005292862653732,
0.14256054162979126,
0.29813721776008606,
0.2570885121822357,
0.4448304772377014,
0.5746089220046997,
-0.7305852174758911,
0.7643882632255554,
-0.1913851797580719,
-0.44498199224472046,
-0.2863521873950958,
-0.38007909059524536,
-1.0592424869537354,
-0.7501943707466125,
-0.4229384660720825,
-0.7510814070701599,
0.1931760460138321,
0.8568921685218811,
0.8937487006187439,
-0.5991324782371521,
-0.32776156067848206,
0.25074806809425354,
0.0014310535043478012,
-0.26141878962516785,
-0.2483060657978058,
0.3360673487186432,
-0.14215680956840515,
-0.5872042775154114,
0.007596267387270927,
-0.22592540085315704,
0.08906902372837067,
-0.1812540590763092,
-0.3491021394729614,
-0.1010894775390625,
-0.055170416831970215,
0.4611620008945465,
0.44011661410331726,
-0.4460229277610779,
-0.4144872725009918,
0.19663859903812408,
-0.33853134512901306,
0.020738571882247925,
0.46459686756134033,
-0.5751957893371582,
0.1747259646654129,
0.4670122563838959,
0.14495866000652313,
0.6909173130989075,
-0.06465212255716324,
0.24610623717308044,
-0.6178948283195496,
0.23487648367881775,
0.044587839394807816,
0.297281414270401,
0.2590906023979187,
-0.4615311622619629,
0.39700764417648315,
0.30188602209091187,
-0.7725462317466736,
-0.7786994576454163,
-0.14971721172332764,
-1.1108324527740479,
-0.2196785807609558,
1.5089224576950073,
-0.10260343551635742,
-0.3306577205657959,
0.016088666394352913,
-0.2591645419597626,
0.3075273036956787,
-0.6906535029411316,
0.5524677038192749,
0.5599339604377747,
-0.08815284073352814,
-0.16380682587623596,
-0.7166877388954163,
0.5415105223655701,
-0.009715260937809944,
-0.6711304187774658,
0.22295014560222626,
0.4324108064174652,
0.6445349454879761,
0.09619311988353729,
0.9064335227012634,
-0.1662532538175583,
0.1490132212638855,
0.06455052644014359,
0.37825262546539307,
-0.24664896726608276,
-0.23981626331806183,
-0.18047110736370087,
-0.13343380391597748,
0.026902539655566216,
-0.28392449021339417
] |
Yntec/AgarthaChadstyle
|
Yntec
| 2023-11-04T03:31:27Z | 8,630 | 1 |
diffusers
|
[
"diffusers",
"Style",
"Abstract",
"Surrealism",
"ChadUltraF3",
"stable-diffusion",
"stable-diffusion-diffusers",
"text-to-image",
"license:creativeml-openrail-m",
"endpoints_compatible",
"has_space",
"diffusers:StableDiffusionPipeline",
"region:us"
] |
text-to-image
| 2023-11-04T02:50:41Z |
---
license: creativeml-openrail-m
library_name: diffusers
pipeline_tag: text-to-image
tags:
- Style
- Abstract
- Surrealism
- ChadUltraF3
- stable-diffusion
- stable-diffusion-diffusers
- text-to-image
- diffusers
---
# 🌈🧬🍭🍄👁️ Agartha 👁️🍄🍭🧬🌈(ChadStyle)
Check the many trigger words of this model at the original page: https://civitai.com/models/69808/agartha-chadstyle
Sample and prompt:

bedroom, DETAILED CHIBI Cartoon, BLUE EYES, Pretty CUTE Girl, beautiful detailed PONYTAIL, seifuku clothes, gorgeous detailed hair, Magazine ad, 1949, iconic. acrylic art on canvas By KlaysMoji and artgerm and Clay Mann and and leyendecker and Dave Rapoza
|
[
-0.4812917113304138,
-1.0757349729537964,
0.06495151668787003,
0.40991491079330444,
-0.38826000690460205,
0.04573020339012146,
0.14342519640922546,
-0.5556362867355347,
1.03372061252594,
0.1546706110239029,
-0.8356658220291138,
-0.42951059341430664,
-0.8149917721748352,
-0.13133445382118225,
-0.7082121968269348,
0.3457668423652649,
-0.08725420385599136,
0.038828060030937195,
0.19084931910037994,
-0.13272987306118011,
-0.4412629008293152,
-0.12356959283351898,
-0.4964277446269989,
-0.1703111082315445,
0.39619243144989014,
0.35215145349502563,
0.8326461911201477,
0.3758012652397156,
0.10434453934431076,
0.39059722423553467,
0.09273233264684677,
-0.12556560337543488,
-0.46911630034446716,
-0.09138834476470947,
-0.2713644206523895,
-0.414977103471756,
-0.5846264362335205,
0.5247918963432312,
0.533083438873291,
0.3617250323295593,
-0.15612532198429108,
0.08383896201848984,
-0.1296004205942154,
0.5807560682296753,
-0.38154304027557373,
-0.07772806286811829,
-0.3526822328567505,
-0.1398029625415802,
-0.39514684677124023,
0.12198412418365479,
0.030812866985797882,
-0.661898672580719,
-0.5485549569129944,
-0.6010410785675049,
0.2964663803577423,
-0.0903184711933136,
1.5472540855407715,
-0.05973438546061516,
-0.7004477381706238,
-0.43256819248199463,
-0.32374224066734314,
0.6950342655181885,
-0.06233128905296326,
0.5676037073135376,
0.4273390769958496,
0.396450012922287,
-0.33087828755378723,
-0.8440714478492737,
-0.7081778645515442,
0.2060382068157196,
-0.27201178669929504,
0.06521680951118469,
-0.5428443551063538,
-0.7109959125518799,
0.14654198288917542,
0.4777703285217285,
-0.2986222505569458,
-0.4643857181072235,
-0.5176305174827576,
0.006796239409595728,
0.6981804370880127,
-0.07381986826658249,
0.7431508302688599,
0.08672430366277695,
-0.6953291296958923,
-0.2557818591594696,
-0.5481209754943848,
0.27371108531951904,
0.583067774772644,
0.09482748061418533,
-0.40486425161361694,
0.628909707069397,
-0.04938983917236328,
0.6926051378250122,
0.40051954984664917,
0.25248703360557556,
0.2121220976114273,
-0.3287681043148041,
-0.2490449696779251,
-0.030734660103917122,
0.5274487137794495,
0.41277846693992615,
0.20286712050437927,
0.1108536496758461,
0.1458570659160614,
0.44259634613990784,
0.3427734076976776,
-1.1159204244613647,
-0.511597216129303,
0.15772202610969543,
-0.7225304245948792,
-0.49762818217277527,
-0.09985718131065369,
-0.9682729244232178,
-0.2095455378293991,
-0.031148958951234818,
0.06058170646429062,
-0.5462340712547302,
-0.4087480902671814,
-0.18172232806682587,
0.11080826818943024,
0.3149257302284241,
0.40572357177734375,
-1.0610227584838867,
-0.08516260236501694,
0.03323179483413696,
0.5223394632339478,
0.23028771579265594,
0.13179050385951996,
-0.09502527117729187,
-0.0761042982339859,
-0.9133957624435425,
0.7653430700302124,
-0.7250567674636841,
-0.6220365762710571,
-0.04531195014715195,
0.47878608107566833,
-0.07787254452705383,
-0.22469325363636017,
0.6964364051818848,
-0.4551677405834198,
0.08373013883829117,
-0.29398250579833984,
-0.32759392261505127,
-0.4358581006526947,
-0.02461717464029789,
-0.6552613377571106,
0.4753701090812683,
0.37416186928749084,
-0.31709548830986023,
0.44639575481414795,
-0.5287104845046997,
-0.2649671137332916,
0.2372974008321762,
-0.28213489055633545,
-0.17911571264266968,
0.29545873403549194,
-0.03944419324398041,
0.5121145248413086,
-0.1165984570980072,
0.06823321431875229,
-0.5766342878341675,
-0.08636145293712616,
0.44323500990867615,
-0.03551003709435463,
1.127734899520874,
0.548559844493866,
-0.25400787591934204,
0.28795284032821655,
-1.1331324577331543,
0.181569442152977,
0.6801416277885437,
-0.21963022649288177,
-0.38326695561408997,
-0.565005898475647,
0.31730231642723083,
0.3565882444381714,
0.490899920463562,
-0.425655335187912,
0.08699740469455719,
0.2722281217575073,
0.12410993874073029,
0.8272445797920227,
-0.17295832931995392,
-0.016734536737203598,
-0.5061304569244385,
0.7839463949203491,
-0.3148670196533203,
0.12378264218568802,
0.02754843421280384,
-0.5490144491195679,
-0.6300458312034607,
-0.5651051998138428,
0.30869099497795105,
0.3523228168487549,
-0.4985054135322571,
0.5053803324699402,
0.43906813859939575,
-0.9070069789886475,
-0.45384570956230164,
0.179268941283226,
0.06065410003066063,
0.021525083109736443,
0.06465435028076172,
-0.37305688858032227,
-0.3707904517650604,
-1.022727370262146,
-0.10777197033166885,
-0.31189700961112976,
0.019302763044834137,
0.6608278751373291,
0.21688342094421387,
-0.5421208143234253,
0.3691004812717438,
-0.5253917574882507,
-0.4126298725605011,
-0.13828252255916595,
-0.041319213807582855,
0.5764080286026001,
0.5967846512794495,
1.270542025566101,
-0.8218385577201843,
-0.4403027892112732,
-0.3219441771507263,
-0.7960741519927979,
-0.3490472435951233,
0.23805317282676697,
-0.78839111328125,
-0.13894298672676086,
0.431411474943161,
-0.6983351111412048,
0.6522922515869141,
0.5149815678596497,
-1.1499922275543213,
0.739750325679779,
-0.09125478565692902,
0.51198410987854,
-1.2852808237075806,
0.279673308134079,
0.025393042713403702,
0.03827081620693207,
-0.4858461916446686,
0.9376450181007385,
-0.02495260164141655,
-0.17841926217079163,
-0.42277926206588745,
0.8585644364356995,
-0.6458202600479126,
0.5935196876525879,
-0.308693528175354,
-0.04598516970872879,
0.22696878015995026,
0.40053167939186096,
-0.13844792544841766,
0.6179892420768738,
0.42228782176971436,
-0.319746732711792,
0.7451234459877014,
0.9788423180580139,
-0.4873732626438141,
0.9958570599555969,
-1.0252230167388916,
0.2915057837963104,
0.1699373871088028,
-0.15555979311466217,
-1.258968472480774,
-0.7752959132194519,
0.605589747428894,
-0.25126078724861145,
0.6465849876403809,
0.23016925156116486,
-0.48798760771751404,
-0.33570027351379395,
-0.3326232135295868,
0.3348744213581085,
0.3936697542667389,
-0.6799843311309814,
0.42761722207069397,
0.3224309980869293,
-0.2399129420518875,
-0.3247506022453308,
-0.32183530926704407,
0.13095472753047943,
-0.2322121560573578,
-0.5557780265808105,
0.2964593768119812,
-0.2746623754501343,
-0.2272176891565323,
-0.2249012589454651,
0.275442898273468,
-0.19149085879325867,
-0.031057117506861687,
0.3915782570838928,
0.6130852699279785,
-0.2489791065454483,
-0.06214211881160736,
0.11654672771692276,
0.48263421654701233,
-0.039050303399562836,
0.5743505358695984,
0.970942497253418,
-0.5002397894859314,
-0.2056196630001068,
-0.47784432768821716,
0.6541802883148193,
0.44316941499710083,
0.17919611930847168,
0.7154042720794678,
0.7757933735847473,
-0.35146641731262207,
0.06805131584405899,
-0.6243076324462891,
-0.13880521059036255,
-0.44566863775253296,
0.01548220869153738,
-0.6514984369277954,
-0.48949405550956726,
0.5615332126617432,
-0.07139580696821213,
-0.6834247708320618,
0.7157773971557617,
0.5330671072006226,
-0.11311456561088562,
0.942475438117981,
0.8460060954093933,
-0.0739753395318985,
0.4495183825492859,
-0.7478177547454834,
-0.01570013165473938,
-0.6505482196807861,
-0.26386234164237976,
-0.28215864300727844,
-0.9392123818397522,
-0.5548431277275085,
-0.511408805847168,
-0.20695330202579498,
0.4462791383266449,
-0.3252667188644409,
0.608607292175293,
-0.4985053539276123,
0.2787364423274994,
0.6395358443260193,
0.36142221093177795,
-0.04013524577021599,
0.3050042986869812,
-0.10954026132822037,
0.013014676980674267,
-0.36855435371398926,
-0.332933247089386,
0.5532049536705017,
0.16309860348701477,
0.8829901814460754,
0.44726312160491943,
0.30574309825897217,
-0.16212351620197296,
-0.13072365522384644,
-0.4693118631839752,
0.675656795501709,
-0.22738666832447052,
-1.158456802368164,
-0.094589464366436,
0.1841467171907425,
-0.9840089678764343,
-0.03135877847671509,
-0.5469854474067688,
-0.6750748753547668,
1.179301142692566,
-0.0675613209605217,
-0.28174880146980286,
0.22275963425636292,
-0.42702510952949524,
0.8317879438400269,
0.0002886441070586443,
-0.47345611453056335,
-0.23252537846565247,
-0.3881446123123169,
0.4732125699520111,
0.025679707527160645,
-0.050473153591156006,
-0.4674649238586426,
0.031493328511714935,
0.24189676344394684,
-0.1765962839126587,
0.8637793660163879,
0.2513652741909027,
-0.11513184756040573,
0.2645447850227356,
0.03944605216383934,
0.3188892900943756,
0.037986621260643005,
0.06837861984968185,
0.2532361149787903,
-0.1823732554912567,
-0.5107129216194153,
-0.06592591851949692,
1.0945160388946533,
-0.6201401352882385,
-0.28476983308792114,
-0.5071422457695007,
-0.3496379852294922,
0.11803974211215973,
0.3821682333946228,
0.7287598252296448,
0.7803119421005249,
-0.5951182246208191,
0.27966734766960144,
0.2400977611541748,
-0.18900570273399353,
0.41426992416381836,
0.11015050858259201,
-0.6341685056686401,
-0.30653250217437744,
0.894688069820404,
0.06250813603401184,
0.021978452801704407,
-0.27652934193611145,
0.17742659151554108,
-0.21503177285194397,
-0.23688210546970367,
-0.6082687377929688,
0.4741209149360657,
-0.5730524659156799,
-0.1145346537232399,
-0.4859631061553955,
-0.28965461254119873,
-0.47343623638153076,
-0.34764719009399414,
-0.10847335308790207,
-0.530028223991394,
-0.792724609375,
0.1722148060798645,
0.523874044418335,
0.7328541874885559,
-0.13993249833583832,
0.1930038183927536,
-0.6257547736167908,
0.6794116497039795,
0.9864827394485474,
0.5901599526405334,
-0.1763455718755722,
-0.1873345524072647,
0.19894935190677643,
-0.09406443685293198,
-0.44375160336494446,
-0.9598864912986755,
0.9081639647483826,
0.5133436322212219,
0.7195751667022705,
0.6319875717163086,
0.015664640814065933,
0.4085369408130646,
-0.24087895452976227,
0.6193282008171082,
0.4829440712928772,
-0.4743351340293884,
0.8142130374908447,
-0.6362202167510986,
0.3972424864768982,
0.5300567150115967,
0.4551934003829956,
-0.11613386124372482,
-0.13438069820404053,
-0.7794478535652161,
-0.9003620743751526,
0.42578524351119995,
0.3250948190689087,
0.59395432472229,
-0.24233020842075348,
0.13667041063308716,
0.04511438310146332,
0.7574661374092102,
-0.21992017328739166,
-0.6049659848213196,
-0.5745684504508972,
-0.07526381313800812,
0.07423066347837448,
-0.5981943011283875,
-0.3503881096839905,
-0.4075430929660797,
1.089992880821228,
-0.3487640917301178,
0.5823718309402466,
-0.08708015084266663,
0.06267261505126953,
-0.34899184107780457,
0.20023787021636963,
0.7341932654380798,
0.8343105912208557,
-0.515525758266449,
-0.40497100353240967,
-0.27496692538261414,
-0.82623291015625,
0.3043605089187622,
0.1856917291879654,
-0.40249159932136536,
0.28622186183929443,
0.13237638771533966,
1.1537529230117798,
-0.009354609064757824,
-0.2516207695007324,
0.3779236674308777,
-0.3370212912559509,
0.32052192091941833,
-0.4930915832519531,
0.3507287800312042,
0.13911116123199463,
0.47816434502601624,
0.39053696393966675,
0.16369514167308807,
0.37318649888038635,
-0.9714813232421875,
0.1028076782822609,
0.7605131268501282,
-0.8749665021896362,
-0.38677138090133667,
1.1626763343811035,
0.07525098323822021,
-0.24089041352272034,
0.47467461228370667,
-0.1596662700176239,
-0.30139046907424927,
0.7140950560569763,
0.6365348696708679,
0.9669713377952576,
-0.7398779392242432,
0.5221071839332581,
0.550220251083374,
-0.15551777184009552,
0.3277471661567688,
0.8001542687416077,
0.12005522102117538,
-0.7606152296066284,
0.16048583388328552,
-0.99088454246521,
-0.06786108762025833,
0.19897325336933136,
-0.3702389895915985,
0.7295592427253723,
-0.9025207757949829,
-0.22382378578186035,
-0.00640451442450285,
-0.096990667283535,
-0.40939950942993164,
0.7453420758247375,
0.1894811987876892,
1.2409687042236328,
-0.7076749801635742,
0.8569297194480896,
0.9824867844581604,
-0.2765323221683502,
-1.021193265914917,
-0.34585484862327576,
0.31921982765197754,
-0.9875173568725586,
0.6805152297019958,
0.20161579549312592,
-0.13134458661079407,
-0.09258712828159332,
-0.9386802911758423,
-0.7102068066596985,
0.9497354030609131,
0.27885931730270386,
-0.46973732113838196,
0.010079281404614449,
-0.6825494766235352,
0.3992200195789337,
-0.8336553573608398,
0.09602069854736328,
0.6627166271209717,
0.36828339099884033,
0.8918209671974182,
-0.40506938099861145,
-0.0895288810133934,
-1.2604371309280396,
0.19922621548175812,
-0.004369232337921858,
-0.9265586137771606,
1.0598219633102417,
-0.468170166015625,
-0.3395954668521881,
0.6089662909507751,
0.9621728658676147,
0.33865323662757874,
0.21744480729103088,
0.7500070333480835,
0.5541574954986572,
0.3272243142127991,
-0.23387019336223602,
1.214902639389038,
-0.3145531415939331,
0.058984044939279556,
1.130395531654358,
0.1765880435705185,
0.6864476799964905,
0.11590223014354706,
-0.5568100214004517,
0.7887488603591919,
0.7425918579101562,
-0.3357008993625641,
0.6339914202690125,
0.07021855562925339,
-0.17084355652332306,
-0.30589762330055237,
-0.6277176737785339,
-0.6072182655334473,
0.7236185073852539,
0.19021742045879364,
-0.407712459564209,
-0.04503380507230759,
-0.1690492480993271,
-0.13621269166469574,
0.2893831133842468,
-0.2672382891178131,
0.5329509377479553,
0.33248329162597656,
0.049288783222436905,
0.7653324604034424,
-0.5104865431785583,
0.5288911461830139,
-0.6449276804924011,
-0.3675125241279602,
-0.10744190216064453,
0.15736617147922516,
-0.05977754667401314,
-0.5938237309455872,
0.12338841706514359,
-0.4795062243938446,
-0.16724495589733124,
-0.1865544617176056,
1.0801005363464355,
-0.5458223819732666,
-1.3003031015396118,
0.49111294746398926,
0.008818212896585464,
0.17441114783287048,
0.03585527092218399,
-0.946564257144928,
0.1393822729587555,
0.0013987567508593202,
-0.18740437924861908,
0.1235646978020668,
0.08347563445568085,
0.11174587905406952,
0.49965155124664307,
0.5586497783660889,
0.39165225625038147,
0.035866349935531616,
-0.025043731555342674,
0.7041494846343994,
-0.5424831509590149,
-0.5989657640457153,
-0.5111035704612732,
0.22698372602462769,
-0.34909504652023315,
-0.43509894609451294,
0.788240373134613,
0.11499112099409103,
0.41734394431114197,
-0.5497022867202759,
0.4224090278148651,
-0.5007991194725037,
0.6613513231277466,
-0.3089711368083954,
1.2824493646621704,
-0.8339506387710571,
-0.26347625255584717,
-0.5052561163902283,
-1.1171424388885498,
0.06786293536424637,
0.9743707180023193,
0.29337960481643677,
0.3909282684326172,
0.310167133808136,
0.6302395462989807,
-0.14988039433956146,
0.19853943586349487,
0.39528024196624756,
0.5840988755226135,
0.01673966273665428,
0.07565847784280777,
0.8282395005226135,
-0.7243565917015076,
-0.13720744848251343,
-0.5384995341300964,
-0.22648189961910248,
-0.511723518371582,
-0.9258019924163818,
-0.9788350462913513,
-0.7711645364761353,
-0.5443239808082581,
-0.4770570397377014,
-0.09478116780519485,
0.8534289002418518,
0.6424977779388428,
-1.4753609895706177,
-0.2446126490831375,
0.3521386981010437,
0.030193950980901718,
-0.12876714766025543,
-0.1493983119726181,
0.4174245297908783,
0.3093443214893341,
-0.9747005701065063,
0.48762622475624084,
-0.03827973082661629,
0.7303122878074646,
-0.11697018891572952,
0.3995288014411926,
-0.7212956547737122,
0.38732656836509705,
0.39176586270332336,
0.019292213022708893,
-0.48134705424308777,
-0.3914051353931427,
-0.048303212970495224,
-0.10465048998594284,
-0.20320114493370056,
0.5171366333961487,
-0.5072990655899048,
0.3323843777179718,
0.6760326027870178,
-0.10919901728630066,
-0.029169125482439995,
0.16584834456443787,
0.7153738141059875,
-0.47328710556030273,
0.2835880219936371,
-0.32625338435173035,
0.6948832869529724,
0.5767516493797302,
-0.6848840713500977,
0.8865509033203125,
0.4002244770526886,
-0.3750283122062683,
-0.5766187310218811,
0.14626388251781464,
-1.0838767290115356,
-0.3556916415691376,
0.7211857438087463,
0.07293576747179031,
-0.48194563388824463,
0.10461734980344772,
-0.5804551839828491,
0.22122056782245636,
-0.27972859144210815,
0.6754409670829773,
0.9614659547805786,
0.18074968457221985,
-0.21297840774059296,
-0.48904648423194885,
0.33075767755508423,
0.0242910198867321,
-0.4614129066467285,
-0.35160335898399353,
0.5844788551330566,
0.15191157162189484,
0.6167148947715759,
0.29777419567108154,
-0.3021155595779419,
0.36679139733314514,
0.10398028790950775,
0.3536464273929596,
0.07767897844314575,
-0.4459429085254669,
-0.1312376707792282,
0.27941572666168213,
-0.23605310916900635,
-0.5297550559043884
] |
beomi/kykim-gpt3-kor-small_based_on_gpt2
|
beomi
| 2021-11-16T15:21:35Z | 8,615 | 5 |
transformers
|
[
"transformers",
"pytorch",
"tf",
"jax",
"gpt2",
"text-generation",
"ko",
"endpoints_compatible",
"text-generation-inference",
"region:us"
] |
text-generation
| 2022-03-02T23:29:05Z |
---
language: ko
---
# Bert base model for Korean
## Update
- Update at 2021.11.17 : Add Native Support for BERT Tokenizer (works with AutoTokenizer, pipeline)
---
* 70GB Korean text dataset and 42000 lower-cased subwords are used
* Check the model performance and other language models for Korean in [github](https://github.com/kiyoungkim1/LM-kor)
```python
from transformers import pipeline
pipe = pipeline('text-generation', model='beomi/kykim-gpt3-kor-small_based_on_gpt2')
print(pipe("안녕하세요! 오늘은"))
# [{'generated_text': '안녕하세요! 오늘은 제가 요즘 사용하고 있는 클렌징워터를 소개해드리려고 해요! 바로 이 제품!! 바로 이'}]
```
|
[
-0.1916034072637558,
-0.5264952182769775,
0.28556564450263977,
0.3672526478767395,
-0.686593770980835,
-0.006588151212781668,
-0.46620649099349976,
-0.10147440433502197,
0.17454767227172852,
0.37261882424354553,
-0.4863521456718445,
-0.7329143285751343,
-0.7918950319290161,
0.09049352258443832,
-0.12246903032064438,
1.183835744857788,
-0.19667060673236847,
0.14825910329818726,
0.30125102400779724,
0.2722812294960022,
-0.17099665105342865,
-0.6529560089111328,
-0.6751134395599365,
-0.6576322317123413,
0.11077656596899033,
0.2800627052783966,
0.6270455718040466,
0.4463288486003876,
0.4389747083187103,
0.39653080701828003,
-0.08452540636062622,
-0.19683697819709778,
-0.3370114862918854,
0.14796365797519684,
0.0017981292912736535,
-0.23524823784828186,
-0.47136586904525757,
-0.16679170727729797,
0.6152637004852295,
0.3968149721622467,
0.15927930176258087,
0.26392120122909546,
-0.13320595026016235,
0.8368620276451111,
-0.27098217606544495,
0.5136725306510925,
-0.8481431603431702,
-0.13041004538536072,
-0.1899372935295105,
0.4895835518836975,
-0.3896680176258087,
-0.2168339192867279,
0.371814101934433,
-0.5766474008560181,
0.29788678884506226,
-0.04130969196557999,
1.5428400039672852,
0.21984213590621948,
-0.6676422357559204,
-0.5581260323524475,
-0.4313465356826782,
0.978213906288147,
-1.060814619064331,
0.3634513020515442,
0.279674232006073,
0.19690048694610596,
-0.18273241817951202,
-1.199694037437439,
-0.7408210635185242,
0.040518395602703094,
-0.32252898812294006,
0.29147040843963623,
-0.1167091503739357,
0.22511357069015503,
0.09717494249343872,
0.38726308941841125,
-0.7660473585128784,
-0.08936256170272827,
-0.4589214026927948,
-0.6011329293251038,
0.7881273031234741,
-0.0013328634668141603,
0.340577632188797,
-0.9954719543457031,
-0.2020689994096756,
-0.1587323695421219,
-0.3022594451904297,
0.0778435617685318,
0.44189220666885376,
0.5256979465484619,
-0.35616979002952576,
0.8372782468795776,
-0.4360594153404236,
0.32184603810310364,
0.2384510487318039,
0.0015544232446700335,
0.7295273542404175,
-0.690172553062439,
-0.47368231415748596,
0.0836336761713028,
1.1108146905899048,
0.18223099410533905,
0.4530385434627533,
0.0648178905248642,
-0.0937824621796608,
0.04006451368331909,
0.12085583060979843,
-0.9414800405502319,
-0.6850690841674805,
0.28034642338752747,
-1.0467060804367065,
-0.2155192792415619,
0.07819394767284393,
-0.8571231365203857,
-0.0551694892346859,
-0.31489038467407227,
0.45283272862434387,
-0.4969484508037567,
-0.465210497379303,
-0.0018582716584205627,
-0.04966749995946884,
0.18075355887413025,
-0.18050941824913025,
-1.1088330745697021,
0.024724943563342094,
0.48533836007118225,
0.7906619310379028,
0.0058836196549236774,
-0.20773079991340637,
0.015979629009962082,
-0.2437865138053894,
-0.20490075647830963,
0.5034242272377014,
-0.1013154610991478,
-0.35818469524383545,
0.11569300293922424,
0.3131594657897949,
-0.3050280213356018,
-0.3533371388912201,
0.8081415891647339,
-0.5305850505828857,
0.30708545446395874,
-0.2554222345352173,
-0.6281945109367371,
-0.22934424877166748,
0.017647137865424156,
-0.5004093050956726,
1.3123741149902344,
0.40353015065193176,
-0.6980785727500916,
0.6151371002197266,
-0.6392338871955872,
-0.7649413347244263,
0.125632643699646,
0.05341843515634537,
-0.7155441641807556,
-0.011814258992671967,
0.539741575717926,
0.6746712327003479,
0.20646609365940094,
0.36612802743911743,
0.0013064465019851923,
-0.15798455476760864,
-0.08776769042015076,
-0.2521684169769287,
0.9091072678565979,
0.43647176027297974,
-0.23903098702430725,
0.2269631177186966,
-0.9983500838279724,
0.23976686596870422,
0.09531097859144211,
-0.615591824054718,
-0.4687875509262085,
-0.11986762285232544,
0.5030295848846436,
0.31706541776657104,
0.6639649868011475,
-0.8480650782585144,
0.201085165143013,
-0.5319013595581055,
0.4399281144142151,
0.7564999461174011,
-0.16052550077438354,
0.6984580159187317,
-0.14646199345588684,
0.3911905586719513,
0.08598753064870834,
-0.015975985676050186,
-0.30220383405685425,
-0.6344946026802063,
-0.8533573150634766,
-0.6478978395462036,
0.7756392359733582,
0.7004060745239258,
-1.1265887022018433,
0.6363071203231812,
-0.6257292032241821,
-0.7589830160140991,
-0.8475638031959534,
0.06340453773736954,
0.3214045763015747,
0.44480934739112854,
0.262429416179657,
0.10674329847097397,
-1.13143789768219,
-1.0452874898910522,
-0.089064821600914,
-0.5023141503334045,
-0.37675756216049194,
0.41470643877983093,
0.7882623076438904,
-0.5254791975021362,
1.159858226776123,
-0.32562732696533203,
-0.23384667932987213,
-0.43445196747779846,
0.25049063563346863,
0.9678506851196289,
0.48377805948257446,
0.5573925375938416,
-0.7521839141845703,
-1.2081482410430908,
0.08243081718683243,
-0.6431095600128174,
-0.24302078783512115,
-0.1437731832265854,
-0.25616148114204407,
0.6230886578559875,
0.42919933795928955,
-0.9362801909446716,
0.3373156785964966,
0.6367009878158569,
-0.602968692779541,
0.7007443308830261,
-0.11061718314886093,
-0.018647098913788795,
-1.5172827243804932,
0.16807566583156586,
-0.257941335439682,
-0.2475356012582779,
-0.7785528898239136,
-0.16505737602710724,
0.28510844707489014,
0.21712911128997803,
-0.3747243285179138,
0.7925600409507751,
-0.22742456197738647,
0.10619663447141647,
-0.19015218317508698,
-0.094215989112854,
-0.2374778687953949,
0.5621369481086731,
0.11284372955560684,
0.6929633021354675,
0.45777401328086853,
-0.6462535858154297,
0.44558587670326233,
0.40487661957740784,
-0.6761329770088196,
0.07779375463724136,
-0.8291080594062805,
-0.09154569357633591,
-0.06574403494596481,
0.2865055501461029,
-1.3284891843795776,
-0.4524465501308441,
0.4179149568080902,
-0.8293763995170593,
0.30639010667800903,
-0.6451326608657837,
-0.7426077723503113,
-0.6672099232673645,
-0.23716816306114197,
0.12485255300998688,
1.0918563604354858,
-0.675001859664917,
0.7524875998497009,
0.24288323521614075,
-0.5369443297386169,
-0.5167063474655151,
-0.68817138671875,
-0.14055435359477997,
-0.09422444552183151,
-0.8293178081512451,
0.5383384227752686,
0.0961032509803772,
0.09572829306125641,
0.09941992163658142,
0.13065046072006226,
0.035882171243429184,
-0.3980265259742737,
0.002040104940533638,
0.6086801886558533,
-0.09918953478336334,
0.02824883721768856,
0.49567797780036926,
-0.3062388598918915,
-0.022967113181948662,
-0.22693726420402527,
1.052194356918335,
-0.11023023724555969,
-0.04475245252251625,
-0.29743146896362305,
0.07451239973306656,
0.5987902283668518,
0.25374701619148254,
0.6107324957847595,
0.8923072814941406,
-0.39862126111984253,
0.0943673849105835,
-0.22520704567432404,
-0.0545186810195446,
-0.5596215128898621,
0.8454283475875854,
-0.5952826142311096,
-0.7335289716720581,
0.8486318588256836,
0.14275895059108734,
0.06127951294183731,
0.6600425839424133,
0.9590945243835449,
-0.09760866314172745,
1.3315812349319458,
0.24195483326911926,
-0.43560072779655457,
0.1486309915781021,
-0.18276378512382507,
0.43793344497680664,
-0.9834296107292175,
-0.17168210446834564,
-0.25549066066741943,
-0.3083174228668213,
-0.9883111119270325,
-0.09423478692770004,
0.24713772535324097,
0.1262444108724594,
-0.48467594385147095,
0.392442911863327,
-0.5785866379737854,
0.17919224500656128,
0.7397677302360535,
-0.1888451874256134,
-0.13906197249889374,
0.26093006134033203,
-0.546424388885498,
-0.32307568192481995,
-0.6909186840057373,
-0.5305129885673523,
1.2545450925827026,
0.6053962707519531,
0.8008161783218384,
-0.06087150424718857,
0.7351184487342834,
0.082489512860775,
0.3391415774822235,
-0.8512580990791321,
0.525200366973877,
-0.5296618342399597,
-0.7908305525779724,
-0.3936578035354614,
-0.2976720333099365,
-0.9625977873802185,
0.33561086654663086,
0.25552135705947876,
-0.7736244797706604,
0.035143639892339706,
0.08824867755174637,
-0.10380889475345612,
0.2528712749481201,
-0.7628322243690491,
0.797675371170044,
0.16669663786888123,
0.2699258625507355,
0.3465259075164795,
-0.5477611422538757,
0.3151020109653473,
-0.024747557938098907,
0.054635096341371536,
-0.0556902140378952,
0.09972600638866425,
0.7125653028488159,
-0.558186948299408,
0.9271960854530334,
-0.4203018844127655,
-0.12794750928878784,
0.3432217538356781,
-0.30354517698287964,
0.738041877746582,
0.24462030827999115,
-0.0013068572152405977,
0.4040268659591675,
0.008134791627526283,
-0.39110609889030457,
-0.29686439037323,
0.6307575702667236,
-0.8656201958656311,
0.11678758263587952,
-0.5745056867599487,
-0.5784823894500732,
0.05293281376361847,
0.47774314880371094,
0.9124688506126404,
-0.1321989893913269,
0.3739915192127228,
0.171442449092865,
0.335843563079834,
-0.22158345580101013,
0.7175607085227966,
0.5698719620704651,
-0.5530511140823364,
-0.8933130502700806,
0.9064395427703857,
0.17219527065753937,
0.08803954720497131,
-0.09351500123739243,
0.09227091819047928,
-0.5743681192398071,
-0.35807812213897705,
-0.5709954500198364,
0.32400044798851013,
-0.7153623700141907,
-0.22289203107357025,
-0.6712281703948975,
-0.7165001630783081,
-0.7133369445800781,
-0.07956112176179886,
-0.6265691518783569,
-0.3885294198989868,
-0.3066489100456238,
-0.06774935126304626,
0.2737482488155365,
0.4170073866844177,
-0.09518492221832275,
0.5639538764953613,
-0.8739289045333862,
0.38327866792678833,
0.3708735406398773,
0.39805716276168823,
-0.011009031906723976,
-0.8374775648117065,
-0.35109224915504456,
0.13300341367721558,
-0.12962467968463898,
-0.6142374873161316,
0.8055117726325989,
-0.033439408987760544,
0.4730752110481262,
0.19878028333187103,
0.1921539306640625,
0.45143046975135803,
-0.7768746018409729,
1.204864501953125,
-0.0130644291639328,
-1.1876438856124878,
0.39485472440719604,
-0.46161267161369324,
0.6607101559638977,
0.5186922550201416,
0.1369316130876541,
-0.9189873933792114,
-0.24740660190582275,
-0.515169084072113,
-1.3745442628860474,
0.924373984336853,
0.6664379835128784,
0.3778247833251953,
-0.09611529856920242,
0.2874702215194702,
0.1588977575302124,
0.2727722227573395,
-1.0877387523651123,
-0.5787779092788696,
-0.442568302154541,
-0.7378407120704651,
0.25340735912323,
-0.4101352095603943,
0.41748279333114624,
-0.42141005396842957,
1.2755622863769531,
-0.06283169984817505,
0.6317312717437744,
0.44038376212120056,
-0.11014294624328613,
-0.038292296230793,
0.19159378111362457,
0.634395956993103,
0.22760161757469177,
-0.33160337805747986,
-0.08761721104383469,
0.23647530376911163,
-1.0067555904388428,
-0.09666559100151062,
0.27137482166290283,
-0.6022745966911316,
0.5264965891838074,
0.37434473633766174,
1.099020004272461,
-0.015873104333877563,
-0.5161638259887695,
0.2577028274536133,
-0.08050844073295593,
-0.5921036005020142,
-0.5191754102706909,
-0.21605922281742096,
0.030497081577777863,
0.18549485504627228,
0.7415001392364502,
-0.15951983630657196,
-0.04393647983670235,
-0.06367526203393936,
0.16555017232894897,
0.350212424993515,
-0.3240940570831299,
-0.3095322847366333,
0.5522593259811401,
-0.05505611374974251,
-0.09686162322759628,
0.9148968458175659,
-0.5166915059089661,
-1.1707872152328491,
0.8660744428634644,
0.6638672947883606,
0.9901590347290039,
-0.09333096444606781,
0.3637535274028778,
0.6212531328201294,
0.5623651742935181,
0.022956689819693565,
0.8758420348167419,
0.3478088676929474,
-0.93142169713974,
-0.5798920392990112,
-0.801558792591095,
0.006314361467957497,
0.7067517638206482,
-0.5726931095123291,
0.24119938910007477,
-0.09268242865800858,
-0.31039708852767944,
-0.10280141234397888,
0.15765118598937988,
-0.5257739424705505,
0.21342690289020538,
0.14971306920051575,
0.8186787366867065,
-0.7959515452384949,
1.022459864616394,
0.9032779932022095,
-0.11643899232149124,
-0.7026078104972839,
-0.02529732882976532,
-0.38564473390579224,
-0.6171227693557739,
0.9201532602310181,
0.1644190549850464,
0.5681721568107605,
0.14441512525081635,
-0.6766068339347839,
-1.3110052347183228,
1.235641360282898,
-0.11388786882162094,
-0.5789082646369934,
0.07540817558765411,
0.39574891328811646,
0.7614555954933167,
-0.360966295003891,
0.023438837379217148,
0.602658212184906,
0.6586048007011414,
-0.08152049034833908,
-1.1954116821289062,
-0.15274296700954437,
-0.6133135557174683,
0.2176125943660736,
0.2791197896003723,
-0.684169352054596,
1.1240369081497192,
0.007253584451973438,
-0.2480543702840805,
0.40560951828956604,
0.7888450622558594,
0.45737722516059875,
0.4048513174057007,
0.5036999583244324,
0.4317244291305542,
0.5444386005401611,
-0.35343027114868164,
0.8209954500198364,
-0.4556543231010437,
0.8021748661994934,
1.1711641550064087,
-0.1559847891330719,
0.6433724164962769,
0.46654629707336426,
-0.41136986017227173,
0.560592532157898,
0.7595852017402649,
-0.3812125027179718,
0.8960804343223572,
0.09522967040538788,
-0.11508481949567795,
-0.07116568088531494,
0.23616336286067963,
-0.26874271035194397,
0.4789329767227173,
0.2735309302806854,
-0.6257026791572571,
-0.02330458164215088,
0.12713195383548737,
0.29714202880859375,
-0.18343570828437805,
-0.321460098028183,
0.47459450364112854,
-0.10284044593572617,
-0.6057865619659424,
0.48987704515457153,
0.353310763835907,
1.1182080507278442,
-0.6368169784545898,
0.2284909188747406,
-0.04417213797569275,
0.21974466741085052,
0.0688687190413475,
-0.6785534620285034,
0.049261778593063354,
-0.0016963186208158731,
-0.48239296674728394,
-0.03242220729589462,
1.2031314373016357,
-0.64554363489151,
-0.8735709190368652,
0.19032135605812073,
0.2239442616701126,
0.060495294630527496,
0.07851994782686234,
-0.8278811573982239,
-0.06090652570128441,
0.13958236575126648,
-0.6031767129898071,
0.14826084673404694,
0.20619891583919525,
0.06193777173757553,
0.6071786880493164,
0.8476645946502686,
0.22695955634117126,
0.5294533967971802,
0.17794464528560638,
0.8272857666015625,
-0.4389047920703888,
-0.5881017446517944,
-1.0560263395309448,
0.8267987966537476,
-0.4601303040981293,
-0.3628047704696655,
0.7391831278800964,
0.756927490234375,
0.8574763536453247,
-0.5697401165962219,
1.3313665390014648,
-0.4304232597351074,
0.7097700238227844,
-0.6301424503326416,
1.2158976793289185,
-0.25309622287750244,
-0.05360277369618416,
-0.34818214178085327,
-0.8040616512298584,
-0.08320118486881256,
0.8172972798347473,
-0.16439005732536316,
0.256122350692749,
0.6201133728027344,
0.6303189396858215,
0.046182505786418915,
-0.19440148770809174,
0.14002111554145813,
0.4274666905403137,
0.3461931645870209,
0.4278431236743927,
0.3672298192977905,
-1.039979100227356,
0.6929520964622498,
-0.6372937560081482,
-0.0011179586872458458,
-0.00694063538685441,
-0.8220175504684448,
-1.2812141180038452,
-0.6190376877784729,
-0.1890125870704651,
-0.44758033752441406,
-0.32763397693634033,
1.0142850875854492,
0.7357663512229919,
-1.1564632654190063,
-0.045805901288986206,
-0.30924680829048157,
0.1009511724114418,
0.011995825916528702,
-0.38916707038879395,
0.8353042602539062,
-0.5120065212249756,
-1.250910997390747,
0.16381341218948364,
-0.11202417314052582,
0.3615659773349762,
0.0046206689439713955,
-0.30063530802726746,
-0.243891179561615,
0.14925330877304077,
0.712520182132721,
0.004023483954370022,
-0.7894747257232666,
-0.27093783020973206,
0.13513384759426117,
-0.29007795453071594,
-0.14317269623279572,
0.479240745306015,
-0.7803764939308167,
0.45693716406822205,
0.8022035956382751,
0.34982892870903015,
0.3938215672969818,
-0.13767407834529877,
0.41466817259788513,
-0.9776217341423035,
0.1321546882390976,
-0.08019499480724335,
0.4085431396961212,
0.19454671442508698,
-0.46561357378959656,
0.6222959756851196,
0.3204882740974426,
-0.8191114664077759,
-0.8563189506530762,
0.0383685827255249,
-0.8702887296676636,
-0.1783851683139801,
1.333498477935791,
-0.17961189150810242,
-0.15823829174041748,
-0.2623738944530487,
-0.526431143283844,
0.5423020124435425,
-0.5671253800392151,
0.9375594258308411,
1.2338154315948486,
0.05175565928220749,
0.06042654439806938,
-0.38055625557899475,
0.6630780100822449,
0.4413454830646515,
-0.596646249294281,
-0.17834362387657166,
0.0627228394150734,
0.3170149028301239,
0.30275827646255493,
0.6616159081459045,
0.00413829879835248,
0.25930723547935486,
-0.06847307085990906,
0.2329106479883194,
0.038081664592027664,
-0.03310152515769005,
-0.10050055384635925,
-0.27943867444992065,
-0.5550894141197205,
-0.4032278060913086
] |
uer/chinese_roberta_L-12_H-768
|
uer
| 2023-08-30T02:31:33Z | 8,609 | 9 |
transformers
|
[
"transformers",
"pytorch",
"tf",
"jax",
"bert",
"fill-mask",
"zh",
"dataset:CLUECorpusSmall",
"arxiv:1909.05658",
"arxiv:2212.06385",
"arxiv:1908.08962",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] |
fill-mask
| 2022-03-02T23:29:05Z |
---
language: zh
datasets: CLUECorpusSmall
widget:
- text: "北京是[MASK]国的首都。"
---
# Chinese RoBERTa Miniatures
## Model description
This is the set of 24 Chinese RoBERTa models pre-trained by [UER-py](https://github.com/dbiir/UER-py/), which is introduced in [this paper](https://arxiv.org/abs/1909.05658). Besides, the models could also be pre-trained by [TencentPretrain](https://github.com/Tencent/TencentPretrain) introduced in [this paper](https://arxiv.org/abs/2212.06385), which inherits UER-py to support models with parameters above one billion, and extends it to a multimodal pre-training framework.
[Turc et al.](https://arxiv.org/abs/1908.08962) have shown that the standard BERT recipe is effective on a wide range of model sizes. Following their paper, we released the 24 Chinese RoBERTa models. In order to facilitate users in reproducing the results, we used a publicly available corpus and provided all training details.
You can download the 24 Chinese RoBERTa miniatures either from the [UER-py Modelzoo page](https://github.com/dbiir/UER-py/wiki/Modelzoo), or via HuggingFace from the links below:
| | H=128 | H=256 | H=512 | H=768 |
| -------- | :-----------------------: | :-----------------------: | :-------------------------: | :-------------------------: |
| **L=2** | [**2/128 (Tiny)**][2_128] | [2/256][2_256] | [2/512][2_512] | [2/768][2_768] |
| **L=4** | [4/128][4_128] | [**4/256 (Mini)**][4_256] | [**4/512 (Small)**][4_512] | [4/768][4_768] |
| **L=6** | [6/128][6_128] | [6/256][6_256] | [6/512][6_512] | [6/768][6_768] |
| **L=8** | [8/128][8_128] | [8/256][8_256] | [**8/512 (Medium)**][8_512] | [8/768][8_768] |
| **L=10** | [10/128][10_128] | [10/256][10_256] | [10/512][10_512] | [10/768][10_768] |
| **L=12** | [12/128][12_128] | [12/256][12_256] | [12/512][12_512] | [**12/768 (Base)**][12_768] |
Here are scores on the devlopment set of six Chinese tasks:
| Model | Score | book_review | chnsenticorp | lcqmc | tnews(CLUE) | iflytek(CLUE) | ocnli(CLUE) |
| -------------- | :---: | :----: | :----------: | :---: | :---------: | :-----------: | :---------: |
| RoBERTa-Tiny | 72.3 | 83.4 | 91.4 | 81.8 | 62.0 | 55.0 | 60.3 |
| RoBERTa-Mini | 75.9 | 85.7 | 93.7 | 86.1 | 63.9 | 58.3 | 67.4 |
| RoBERTa-Small | 76.9 | 87.5 | 93.4 | 86.5 | 65.1 | 59.4 | 69.7 |
| RoBERTa-Medium | 78.0 | 88.7 | 94.8 | 88.1 | 65.6 | 59.5 | 71.2 |
| RoBERTa-Base | 79.7 | 90.1 | 95.2 | 89.2 | 67.0 | 60.9 | 75.5 |
For each task, we selected the best fine-tuning hyperparameters from the lists below, and trained with the sequence length of 128:
- epochs: 3, 5, 8
- batch sizes: 32, 64
- learning rates: 3e-5, 1e-4, 3e-4
## How to use
You can use this model directly with a pipeline for masked language modeling (take the case of RoBERTa-Medium):
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='uer/chinese_roberta_L-8_H-512')
>>> unmasker("中国的首都是[MASK]京。")
[
{'sequence': '[CLS] 中 国 的 首 都 是 北 京 。 [SEP]',
'score': 0.8701988458633423,
'token': 1266,
'token_str': '北'},
{'sequence': '[CLS] 中 国 的 首 都 是 南 京 。 [SEP]',
'score': 0.1194809079170227,
'token': 1298,
'token_str': '南'},
{'sequence': '[CLS] 中 国 的 首 都 是 东 京 。 [SEP]',
'score': 0.0037803512532263994,
'token': 691,
'token_str': '东'},
{'sequence': '[CLS] 中 国 的 首 都 是 普 京 。 [SEP]',
'score': 0.0017127094324678183,
'token': 3249,
'token_str': '普'},
{'sequence': '[CLS] 中 国 的 首 都 是 望 京 。 [SEP]',
'score': 0.001687526935711503,
'token': 3307,
'token_str': '望'}
]
```
Here is how to use this model to get the features of a given text in PyTorch:
```python
from transformers import BertTokenizer, BertModel
tokenizer = BertTokenizer.from_pretrained('uer/chinese_roberta_L-8_H-512')
model = BertModel.from_pretrained("uer/chinese_roberta_L-8_H-512")
text = "用你喜欢的任何文本替换我。"
encoded_input = tokenizer(text, return_tensors='pt')
output = model(**encoded_input)
```
and in TensorFlow:
```python
from transformers import BertTokenizer, TFBertModel
tokenizer = BertTokenizer.from_pretrained('uer/chinese_roberta_L-8_H-512')
model = TFBertModel.from_pretrained("uer/chinese_roberta_L-8_H-512")
text = "用你喜欢的任何文本替换我。"
encoded_input = tokenizer(text, return_tensors='tf')
output = model(encoded_input)
```
## Training data
[CLUECorpusSmall](https://github.com/CLUEbenchmark/CLUECorpus2020/) is used as training data. We found that models pre-trained on CLUECorpusSmall outperform those pre-trained on CLUECorpus2020, although CLUECorpus2020 is much larger than CLUECorpusSmall.
## Training procedure
Models are pre-trained by [UER-py](https://github.com/dbiir/UER-py/) on [Tencent Cloud](https://cloud.tencent.com/). We pre-train 1,000,000 steps with a sequence length of 128 and then pre-train 250,000 additional steps with a sequence length of 512. We use the same hyper-parameters on different model sizes.
Taking the case of RoBERTa-Medium
Stage1:
```
python3 preprocess.py --corpus_path corpora/cluecorpussmall.txt \
--vocab_path models/google_zh_vocab.txt \
--dataset_path cluecorpussmall_seq128_dataset.pt \
--processes_num 32 --seq_length 128 \
--dynamic_masking --data_processor mlm
```
```
python3 pretrain.py --dataset_path cluecorpussmall_seq128_dataset.pt \
--vocab_path models/google_zh_vocab.txt \
--config_path models/bert/medium_config.json \
--output_model_path models/cluecorpussmall_roberta_medium_seq128_model.bin \
--world_size 8 --gpu_ranks 0 1 2 3 4 5 6 7 \
--total_steps 1000000 --save_checkpoint_steps 100000 --report_steps 50000 \
--learning_rate 1e-4 --batch_size 64 \
--data_processor mlm --target mlm
```
Stage2:
```
python3 preprocess.py --corpus_path corpora/cluecorpussmall.txt \
--vocab_path models/google_zh_vocab.txt \
--dataset_path cluecorpussmall_seq512_dataset.pt \
--processes_num 32 --seq_length 512 \
--dynamic_masking --data_processor mlm
```
```
python3 pretrain.py --dataset_path cluecorpussmall_seq512_dataset.pt \
--vocab_path models/google_zh_vocab.txt \
--pretrained_model_path models/cluecorpussmall_roberta_medium_seq128_model.bin-1000000 \
--config_path models/bert/medium_config.json \
--output_model_path models/cluecorpussmall_roberta_medium_seq512_model.bin \
--world_size 8 --gpu_ranks 0 1 2 3 4 5 6 7 \
--total_steps 250000 --save_checkpoint_steps 50000 --report_steps 10000 \
--learning_rate 5e-5 --batch_size 16 \
--data_processor mlm --target mlm
```
Finally, we convert the pre-trained model into Huggingface's format:
```
python3 scripts/convert_bert_from_uer_to_huggingface.py --input_model_path models/cluecorpussmall_roberta_medium_seq512_model.bin-250000 \
--output_model_path pytorch_model.bin \
--layers_num 8 --type mlm
```
### BibTeX entry and citation info
```
@article{devlin2018bert,
title={Bert: Pre-training of deep bidirectional transformers for language understanding},
author={Devlin, Jacob and Chang, Ming-Wei and Lee, Kenton and Toutanova, Kristina},
journal={arXiv preprint arXiv:1810.04805},
year={2018}
}
@article{liu2019roberta,
title={Roberta: A robustly optimized bert pretraining approach},
author={Liu, Yinhan and Ott, Myle and Goyal, Naman and Du, Jingfei and Joshi, Mandar and Chen, Danqi and Levy, Omer and Lewis, Mike and Zettlemoyer, Luke and Stoyanov, Veselin},
journal={arXiv preprint arXiv:1907.11692},
year={2019}
}
@article{turc2019,
title={Well-Read Students Learn Better: On the Importance of Pre-training Compact Models},
author={Turc, Iulia and Chang, Ming-Wei and Lee, Kenton and Toutanova, Kristina},
journal={arXiv preprint arXiv:1908.08962v2 },
year={2019}
}
@article{zhao2019uer,
title={UER: An Open-Source Toolkit for Pre-training Models},
author={Zhao, Zhe and Chen, Hui and Zhang, Jinbin and Zhao, Xin and Liu, Tao and Lu, Wei and Chen, Xi and Deng, Haotang and Ju, Qi and Du, Xiaoyong},
journal={EMNLP-IJCNLP 2019},
pages={241},
year={2019}
}
@article{zhao2023tencentpretrain,
title={TencentPretrain: A Scalable and Flexible Toolkit for Pre-training Models of Different Modalities},
author={Zhao, Zhe and Li, Yudong and Hou, Cheng and Zhao, Jing and others},
journal={ACL 2023},
pages={217},
year={2023}
}
```
[2_128]:https://huggingface.co/uer/chinese_roberta_L-2_H-128
[2_256]:https://huggingface.co/uer/chinese_roberta_L-2_H-256
[2_512]:https://huggingface.co/uer/chinese_roberta_L-2_H-512
[2_768]:https://huggingface.co/uer/chinese_roberta_L-2_H-768
[4_128]:https://huggingface.co/uer/chinese_roberta_L-4_H-128
[4_256]:https://huggingface.co/uer/chinese_roberta_L-4_H-256
[4_512]:https://huggingface.co/uer/chinese_roberta_L-4_H-512
[4_768]:https://huggingface.co/uer/chinese_roberta_L-4_H-768
[6_128]:https://huggingface.co/uer/chinese_roberta_L-6_H-128
[6_256]:https://huggingface.co/uer/chinese_roberta_L-6_H-256
[6_512]:https://huggingface.co/uer/chinese_roberta_L-6_H-512
[6_768]:https://huggingface.co/uer/chinese_roberta_L-6_H-768
[8_128]:https://huggingface.co/uer/chinese_roberta_L-8_H-128
[8_256]:https://huggingface.co/uer/chinese_roberta_L-8_H-256
[8_512]:https://huggingface.co/uer/chinese_roberta_L-8_H-512
[8_768]:https://huggingface.co/uer/chinese_roberta_L-8_H-768
[10_128]:https://huggingface.co/uer/chinese_roberta_L-10_H-128
[10_256]:https://huggingface.co/uer/chinese_roberta_L-10_H-256
[10_512]:https://huggingface.co/uer/chinese_roberta_L-10_H-512
[10_768]:https://huggingface.co/uer/chinese_roberta_L-10_H-768
[12_128]:https://huggingface.co/uer/chinese_roberta_L-12_H-128
[12_256]:https://huggingface.co/uer/chinese_roberta_L-12_H-256
[12_512]:https://huggingface.co/uer/chinese_roberta_L-12_H-512
[12_768]:https://huggingface.co/uer/chinese_roberta_L-12_H-768
|
[
-0.25336286425590515,
-0.6088100671768188,
0.293166846036911,
0.40367603302001953,
-0.3976495862007141,
-0.2124728113412857,
-0.4060669243335724,
-0.278866708278656,
0.2139233499765396,
0.3916368782520294,
-0.675813615322113,
-0.669891357421875,
-0.7411733269691467,
-0.010822159238159657,
-0.14772900938987732,
1.2683372497558594,
0.18548336625099182,
0.2567828893661499,
0.2189427763223648,
0.022114969789981842,
-0.2879430949687958,
-0.5785167813301086,
-0.7124318480491638,
-0.29237228631973267,
0.4728865325450897,
0.22980716824531555,
0.565839946269989,
0.6416087746620178,
0.5455546379089355,
0.403012752532959,
-0.088478222489357,
0.0848364382982254,
-0.38543814420700073,
-0.26375386118888855,
0.24776239693164825,
-0.5365733504295349,
-0.6299139261245728,
0.14656773209571838,
0.6060957312583923,
0.61968994140625,
0.07649964839220047,
0.43682748079299927,
0.17098797857761383,
0.5704911351203918,
-0.29358160495758057,
0.2831370234489441,
-0.4133937358856201,
0.05137788504362106,
-0.37547802925109863,
0.035928577184677124,
-0.3327207565307617,
-0.22104056179523468,
0.18250656127929688,
-0.744853675365448,
0.40273764729499817,
-0.02480657957494259,
1.4073739051818848,
0.1311185657978058,
-0.08643176406621933,
-0.1443498432636261,
-0.5403975248336792,
1.04410719871521,
-1.0016071796417236,
0.06196723133325577,
0.3108859658241272,
0.13049477338790894,
-0.12110055238008499,
-0.9887539744377136,
-0.5817851424217224,
-0.02858154848217964,
-0.2066420614719391,
0.21210245788097382,
-0.05087052658200264,
-0.07428085803985596,
0.4722221791744232,
0.36079439520835876,
-0.7701188325881958,
0.032537467777729034,
-0.5279994010925293,
-0.33792611956596375,
0.7074549198150635,
0.21218076348304749,
0.3108659088611603,
-0.3458408713340759,
-0.399440735578537,
-0.4333671033382416,
-0.4156040549278259,
0.26418089866638184,
0.33946850895881653,
0.48688918352127075,
-0.2916495203971863,
0.43759140372276306,
-0.15218369662761688,
0.7542956471443176,
0.20227175951004028,
-0.22302483022212982,
0.5240877866744995,
-0.48143288493156433,
-0.3361201286315918,
-0.1629425436258316,
1.1022552251815796,
0.23165561258792877,
0.29030245542526245,
0.13964039087295532,
-0.30563753843307495,
-0.0874733030796051,
0.0849355161190033,
-0.9539661407470703,
-0.5897393822669983,
0.3095259666442871,
-0.5765956044197083,
-0.1692860871553421,
0.3435233235359192,
-0.6265161037445068,
0.12073183804750443,
-0.1622096747159958,
0.659463107585907,
-0.6107045412063599,
-0.1722085326910019,
0.07669533044099808,
-0.3116184175014496,
0.3471386730670929,
0.14463482797145844,
-0.8760402798652649,
0.06713339686393738,
0.5355662107467651,
0.8635395169258118,
0.1342993676662445,
-0.3500909209251404,
-0.22192388772964478,
-0.09636183828115463,
-0.3080689013004303,
0.5892656445503235,
-0.210008442401886,
-0.3776494860649109,
-0.21666616201400757,
0.24775177240371704,
-0.29560768604278564,
-0.4349268674850464,
0.5740573406219482,
-0.4006063938140869,
0.5259223580360413,
-0.271836519241333,
-0.4237324893474579,
-0.3192739486694336,
0.29111573100090027,
-0.6574811339378357,
1.237546682357788,
0.18156099319458008,
-0.7787759304046631,
0.4020511507987976,
-0.786819338798523,
-0.415772408246994,
0.023444170132279396,
-0.0508461557328701,
-0.5351719260215759,
-0.13971596956253052,
0.37453755736351013,
0.5500249266624451,
-0.2325102984905243,
0.1190589964389801,
-0.1524389535188675,
-0.5638555288314819,
0.11029434204101562,
-0.3763364553451538,
1.3951451778411865,
0.23910339176654816,
-0.5827494859695435,
0.40961676836013794,
-0.9020653963088989,
0.2053171843290329,
0.35670220851898193,
-0.4257667660713196,
-0.11748823523521423,
-0.375781387090683,
0.35999301075935364,
0.28366711735725403,
0.6338881850242615,
-0.4863361120223999,
0.1038307249546051,
-0.5405442118644714,
0.5956190824508667,
0.8128320574760437,
-0.16019949316978455,
0.1567469984292984,
-0.5255267024040222,
0.40590155124664307,
0.2750709354877472,
0.28445252776145935,
-0.07876846939325333,
-0.6520459055900574,
-0.9525534510612488,
-0.3657971918582916,
0.501770555973053,
0.6133517026901245,
-0.566339910030365,
0.8371730446815491,
-0.25176388025283813,
-0.7882205247879028,
-0.6891096830368042,
-0.0303882397711277,
0.5773687958717346,
0.38486814498901367,
0.44930481910705566,
-0.2856249511241913,
-0.5495986938476562,
-0.7650249600410461,
-0.07155991345643997,
-0.05866440385580063,
-0.2656180262565613,
0.3048160970211029,
0.7112917304039001,
-0.20831169188022614,
0.5868299007415771,
-0.5886363983154297,
-0.4444398880004883,
-0.29641440510749817,
0.19085539877414703,
0.7310953140258789,
0.7827906608581543,
0.6578235626220703,
-0.6306684613227844,
-0.5839046835899353,
-0.2184864729642868,
-0.6685627698898315,
0.3171861171722412,
-0.17720864713191986,
-0.23974023759365082,
0.3665769696235657,
0.19585108757019043,
-0.7390132546424866,
0.4169476330280304,
0.42091524600982666,
-0.3365500569343567,
0.781973123550415,
-0.5263063311576843,
0.07006487250328064,
-1.2622945308685303,
0.21424414217472076,
0.0396357886493206,
0.038427695631980896,
-0.5153449177742004,
0.04599720612168312,
0.061384379863739014,
0.07659738510847092,
-0.5093433856964111,
0.47634178400039673,
-0.70829838514328,
0.090779609978199,
0.07508312910795212,
0.12278492748737335,
-0.02665085345506668,
0.8478634357452393,
0.10349246859550476,
0.6788937449455261,
0.6516255140304565,
-0.6479743123054504,
0.47165757417678833,
0.3241930902004242,
-0.5208045840263367,
0.17899160087108612,
-0.9083501696586609,
0.10324810445308685,
0.18860578536987305,
0.1400955319404602,
-1.127147912979126,
-0.19965288043022156,
0.32363268733024597,
-0.7699528336524963,
0.18669021129608154,
-0.07291489094495773,
-0.6186818480491638,
-0.5919915437698364,
-0.444465696811676,
0.3974805772304535,
0.6726310849189758,
-0.4571584463119507,
0.4091910123825073,
0.18844443559646606,
0.12518839538097382,
-0.6511020660400391,
-0.7801902890205383,
-0.13017119467258453,
-0.32283034920692444,
-0.6645765900611877,
0.4980470538139343,
-0.2466505467891693,
0.12763328850269318,
-0.0829337015748024,
0.10471352189779282,
-0.07955837994813919,
-0.09968935698270798,
0.17763477563858032,
0.47015777230262756,
-0.3267102837562561,
-0.23245573043823242,
-0.3754907250404358,
-0.09148756414651871,
0.19937875866889954,
-0.21528777480125427,
0.8077317476272583,
-0.08450675755739212,
-0.054469503462314606,
-0.5757676362991333,
0.05518209934234619,
0.4792773425579071,
-0.29173964262008667,
0.7238715887069702,
1.1073579788208008,
-0.42897796630859375,
-0.0811811238527298,
-0.31328055262565613,
-0.1887393444776535,
-0.5309316515922546,
0.48285216093063354,
-0.4930860698223114,
-0.6569646000862122,
0.7681302428245544,
0.1696770042181015,
0.0877564400434494,
0.7829835414886475,
0.5677972435951233,
-0.043467652052640915,
1.1354295015335083,
0.5909945368766785,
-0.28488093614578247,
0.4958714544773102,
-0.6679109930992126,
0.12406668812036514,
-0.8533251881599426,
-0.3012677729129791,
-0.5169445872306824,
-0.2921968400478363,
-0.7270419001579285,
-0.3956534266471863,
0.40038272738456726,
0.032785311341285706,
-0.5669841766357422,
0.5987443327903748,
-0.7009102702140808,
0.18126334249973297,
0.9745972752571106,
0.3930158317089081,
-0.13029438257217407,
-0.11931875348091125,
-0.27622130513191223,
-0.048169128596782684,
-0.758463442325592,
-0.32548537850379944,
1.2977882623672485,
0.28057926893234253,
0.5643449425697327,
0.016397107392549515,
0.7541161179542542,
-0.0175890251994133,
-0.07640229165554047,
-0.6736422181129456,
0.5972805023193359,
-0.36064332723617554,
-0.8605228066444397,
-0.5144695043563843,
-0.2961166203022003,
-1.0100088119506836,
0.17157453298568726,
-0.2209143042564392,
-0.8154538869857788,
-0.046386267989873886,
-0.028591960668563843,
-0.6340518593788147,
0.3379672169685364,
-0.5486751198768616,
1.1921252012252808,
-0.38998469710350037,
-0.23238222301006317,
-0.03729065880179405,
-0.9000495672225952,
0.4126012623310089,
-0.0028298955876380205,
0.010075035504996777,
-0.01660175621509552,
0.33294710516929626,
1.164399266242981,
-0.5549498200416565,
0.8633740544319153,
-0.23194506764411926,
0.15467534959316254,
0.29947444796562195,
-0.162411168217659,
0.4802444279193878,
-0.09064424782991409,
0.031935177743434906,
0.31199368834495544,
0.16243554651737213,
-0.6005159616470337,
-0.3388127088546753,
0.6702070832252502,
-1.0652488470077515,
-0.6174924373626709,
-0.6288732290267944,
-0.6417520046234131,
0.13195618987083435,
0.5211398005485535,
0.6415793895721436,
0.5153234601020813,
-0.05071406811475754,
0.22956719994544983,
0.6039475798606873,
-0.276170015335083,
0.7020583152770996,
0.3590754270553589,
0.00824030302464962,
-0.45844218134880066,
0.9342248439788818,
0.23077481985092163,
0.08418285101652145,
0.3521493077278137,
0.15815097093582153,
-0.45016443729400635,
-0.5518887639045715,
-0.4345737397670746,
0.4050871431827545,
-0.4966582655906677,
-0.07323478907346725,
-0.5726008415222168,
-0.5193830132484436,
-0.7294136881828308,
0.09459015727043152,
-0.3079768717288971,
-0.35389408469200134,
-0.6113154292106628,
0.08021844923496246,
0.3774256110191345,
0.6890622973442078,
-0.1671125739812851,
0.4065925180912018,
-0.9044491648674011,
0.1938500851392746,
0.19408291578292847,
0.18691059947013855,
-0.01572224125266075,
-0.9274427890777588,
-0.4768379032611847,
0.11882545053958893,
-0.24997122585773468,
-0.7093141078948975,
0.6397303938865662,
0.062345415353775024,
0.6411701440811157,
0.6901054978370667,
0.10280123353004456,
0.9680123329162598,
-0.40529295802116394,
1.0767462253570557,
0.19377002120018005,
-0.9386305809020996,
0.6242958307266235,
-0.3566858172416687,
0.2832299470901489,
0.2759234607219696,
0.5248644351959229,
-0.4227716028690338,
-0.1819162666797638,
-0.927754282951355,
-0.994321346282959,
0.9608675241470337,
0.15164850652217865,
0.04577753320336342,
0.12145477533340454,
0.17000021040439606,
-0.14175881445407867,
0.102755106985569,
-0.8898998498916626,
-0.5443006753921509,
-0.2883825898170471,
-0.33931344747543335,
-0.356727659702301,
-0.22479215264320374,
-0.18561673164367676,
-0.5991137027740479,
0.8505139946937561,
0.0717335045337677,
0.4955582618713379,
0.13487251102924347,
-0.11107249557971954,
0.0950988158583641,
-0.10599076002836227,
0.6831928491592407,
0.6699193120002747,
-0.5077767372131348,
-0.12512439489364624,
0.03332000598311424,
-0.6511313915252686,
-0.1002245768904686,
0.23191779851913452,
-0.09649199992418289,
0.12970831990242004,
0.614622950553894,
0.812820553779602,
0.11873769015073776,
-0.4848683774471283,
0.5573387742042542,
0.01365449745208025,
-0.2880394458770752,
-0.6335742473602295,
0.1514754444360733,
0.05207210034132004,
0.29262012243270874,
0.3335120379924774,
-0.0025518855545669794,
0.014110799878835678,
-0.46202749013900757,
0.23620527982711792,
0.4521610140800476,
-0.45386019349098206,
-0.3886714279651642,
0.8392699360847473,
0.06379017978906631,
-0.30221468210220337,
0.8564516305923462,
-0.1384061723947525,
-0.6308298110961914,
0.8605786561965942,
0.5954007506370544,
0.8804859519004822,
-0.12915439903736115,
0.16326430439949036,
0.7790248990058899,
0.33607161045074463,
-0.12017600983381271,
0.3281800448894501,
0.07500361651182175,
-0.840340793132782,
-0.16875676810741425,
-0.7088323831558228,
-0.11406933516263962,
0.3851625919342041,
-0.7910574078559875,
0.195284903049469,
-0.5850516557693481,
-0.31863680481910706,
0.08468326181173325,
0.401361346244812,
-0.801323413848877,
0.4734970033168793,
0.017182711511850357,
0.9105687141418457,
-0.8237971663475037,
1.1316152811050415,
0.748424768447876,
-0.7383342385292053,
-1.0724272727966309,
-0.11218399554491043,
-0.11918199062347412,
-1.0781655311584473,
0.8298053741455078,
0.27318209409713745,
0.23980934917926788,
0.06873058527708054,
-0.5396312475204468,
-0.9720480442047119,
1.2189234495162964,
-0.03258565440773964,
-0.5261011123657227,
-0.07882658392190933,
0.1445222645998001,
0.6189552545547485,
-0.3303338885307312,
0.4970128834247589,
0.6648546457290649,
0.5873643755912781,
-0.009993410669267178,
-0.9406598806381226,
0.24549339711666107,
-0.4256243407726288,
0.06701663136482239,
-0.020452411845326424,
-0.8336076736450195,
1.3901844024658203,
-0.355047345161438,
-0.056876711547374725,
0.22511200606822968,
0.6403912305831909,
0.4672158658504486,
0.06664521992206573,
0.550427258014679,
0.6772339940071106,
0.707829475402832,
-0.2529662251472473,
0.7817935347557068,
-0.47127479314804077,
0.49597540497779846,
0.8721181154251099,
0.18189390003681183,
0.8004692792892456,
0.2682691514492035,
-0.4789682924747467,
0.6516393423080444,
1.0449413061141968,
-0.3271288573741913,
0.5018944144248962,
0.19671383500099182,
-0.05084463581442833,
-0.319705069065094,
0.2197491079568863,
-0.39266693592071533,
0.404535174369812,
0.304076611995697,
-0.3545539975166321,
-0.04611455649137497,
-0.23694294691085815,
0.31516191363334656,
-0.14870233833789825,
-0.2539318799972534,
0.6380958557128906,
-0.0451589934527874,
-0.6364478468894958,
0.7598572373390198,
0.107847660779953,
0.9146958589553833,
-0.710803210735321,
0.031791359186172485,
-0.22079317271709442,
0.41307327151298523,
-0.11600115150213242,
-0.7946591973304749,
-0.030710997059941292,
-0.12175202369689941,
-0.26394718885421753,
-0.03840305656194687,
0.4124778211116791,
-0.46936511993408203,
-0.7732818722724915,
0.368489533662796,
0.34444621205329895,
0.39402490854263306,
-0.14357081055641174,
-1.1165664196014404,
-0.0990506261587143,
0.21930211782455444,
-0.5186965465545654,
0.2598457634449005,
0.6456648707389832,
0.04731564596295357,
0.5245484113693237,
0.8341966867446899,
0.10612089931964874,
0.14490145444869995,
-0.007577416952699423,
0.9068760275840759,
-0.9668054580688477,
-0.6170724630355835,
-0.8138101696968079,
0.649692714214325,
-0.05301028490066528,
-0.6377314329147339,
0.900500476360321,
0.6041057705879211,
0.9926736950874329,
-0.25677356123924255,
0.7062543034553528,
-0.20164361596107483,
0.41798391938209534,
-0.4715525805950165,
0.9060350656509399,
-0.614851713180542,
0.006195996887981892,
-0.3461725413799286,
-0.8314124345779419,
-0.29576346278190613,
0.7346395254135132,
-0.20753799378871918,
0.2926398515701294,
0.6172674298286438,
0.8594748973846436,
0.099281445145607,
-0.3245008885860443,
0.21304871141910553,
0.3359644412994385,
0.31326812505722046,
0.9143962860107422,
0.43445196747779846,
-0.7604990005493164,
0.6204707026481628,
-0.5267341732978821,
-0.22122277319431305,
-0.1874314695596695,
-0.703696608543396,
-1.0621740818023682,
-0.6705882549285889,
-0.22193558514118195,
-0.3984702229499817,
-0.11371500045061111,
0.8732166290283203,
0.806068480014801,
-0.9899866580963135,
-0.40329933166503906,
0.08640080690383911,
-0.034298550337553024,
-0.38135388493537903,
-0.2844651937484741,
0.7516536116600037,
-0.39908307790756226,
-1.0302897691726685,
0.13033561408519745,
-0.1679677665233612,
0.11302085965871811,
-0.23948299884796143,
-0.1260978877544403,
-0.41104912757873535,
-0.06966038793325424,
0.41595545411109924,
0.11462558060884476,
-0.8310519456863403,
-0.30611303448677063,
-0.012264951132237911,
-0.18376030027866364,
0.10251142829656601,
0.3774818480014801,
-0.5313884019851685,
0.2720803916454315,
0.48274466395378113,
0.2716495990753174,
0.7133265137672424,
-0.023194467648863792,
0.4171206057071686,
-0.7058403491973877,
0.3540113568305969,
0.030793573707342148,
0.41318172216415405,
0.24232657253742218,
-0.3616633117198944,
0.4806416630744934,
0.4843883216381073,
-0.6575119495391846,
-0.7025406360626221,
-0.1867177039384842,
-1.1724063158035278,
-0.40078204870224,
0.9809045791625977,
-0.4704081416130066,
-0.5307742953300476,
0.18236143887043,
-0.17611755430698395,
0.5353681445121765,
-0.28347110748291016,
0.7208260893821716,
0.734412670135498,
-0.11529027670621872,
-0.04331240430474281,
-0.39694878458976746,
0.6074711680412292,
0.4078446924686432,
-0.49733296036720276,
-0.19255821406841278,
0.2860458195209503,
0.5192331671714783,
0.3483186662197113,
0.6210320591926575,
-0.19635243713855743,
0.1575370728969574,
0.13874834775924683,
0.2961306571960449,
-0.07626054435968399,
-0.3123871088027954,
-0.20743510127067566,
0.018465062603354454,
-0.13728488981723785,
-0.6413304209709167
] |
biu-nlp/lingmess-coref
|
biu-nlp
| 2022-10-26T08:55:32Z | 8,597 | 5 |
transformers
|
[
"transformers",
"pytorch",
"longformer",
"coreference-resolution",
"en",
"dataset:ontonotes",
"arxiv:2205.12644",
"license:mit",
"model-index",
"endpoints_compatible",
"has_space",
"region:us"
] | null | 2022-06-09T19:05:32Z |
---
language:
- en
tags:
- coreference-resolution
license: mit
datasets:
- ontonotes
metrics:
- CoNLL
task_categories:
- coreference-resolution
model-index:
- name: biu-nlp/lingmess-coref
results:
- task:
type: coreference-resolution
name: coreference-resolution
dataset:
name: ontonotes
type: coreference
metrics:
- name: Avg. F1
type: CoNLL
value: 81.4
---
## LingMess: Linguistically Informed Multi Expert Scorers for Coreference Resolution
[LingMess](https://arxiv.org/abs/2205.12644) is a linguistically motivated categorization of mention-pairs into 6 types of coreference decisions and learn a dedicated trainable scoring function for each category. This significantly improves the accuracy of the pairwise scorer as well as of the overall coreference performance on the English Ontonotes coreference corpus.
Please check the [official repository](https://github.com/shon-otmazgin/lingmess-coref) for more details and updates.
#### Training on OntoNotes
We present the test results on OntoNotes 5.0 dataset.
| Model | Avg. F1 |
|---------------------------------|---------|
| SpanBERT-large + e2e | 79.6 |
| Longformer-large + s2e | 80.3 |
| **Longformer-large + LingMess** | 81.4 |
### Citation
If you find LingMess useful for your work, please cite the following paper:
``` latex
@misc{https://doi.org/10.48550/arxiv.2205.12644,
doi = {10.48550/ARXIV.2205.12644},
url = {https://arxiv.org/abs/2205.12644},
author = {Otmazgin, Shon and Cattan, Arie and Goldberg, Yoav},
keywords = {Computation and Language (cs.CL), FOS: Computer and information sciences, FOS: Computer and information sciences},
title = {LingMess: Linguistically Informed Multi Expert Scorers for Coreference Resolution},
publisher = {arXiv},
year = {2022},
copyright = {Creative Commons Attribution 4.0 International}
}
```
|
[
-0.3739507496356964,
-0.4261271059513092,
0.3814293146133423,
0.21726469695568085,
-0.35194867849349976,
0.11344478279352188,
-0.7402110695838928,
-0.5362350940704346,
0.4815633296966553,
0.4607974886894226,
-0.04583677276968956,
-0.7567235827445984,
-0.8504858016967773,
0.32651790976524353,
-0.05024619400501251,
0.9714370369911194,
0.06046248599886894,
0.22254621982574463,
-0.14032772183418274,
-0.24025055766105652,
-0.18765124678611755,
-0.5639376640319824,
-0.7188567519187927,
-0.12106965482234955,
0.16626369953155518,
0.6986387968063354,
0.16033153235912323,
0.529691219329834,
0.5947498679161072,
0.4141559302806854,
-0.3354797959327698,
0.38527557253837585,
-0.15348570048809052,
0.2218468189239502,
-0.321952760219574,
-0.38971954584121704,
-0.7529394030570984,
0.23844771087169647,
0.7956914305686951,
0.5383918285369873,
0.09951336681842804,
0.1966952532529831,
0.14883291721343994,
0.4418361783027649,
-0.36197564005851746,
0.44269073009490967,
-0.6354787945747375,
-0.051088813692331314,
-0.41771817207336426,
-0.5339334011077881,
-0.5476082563400269,
-0.4015127718448639,
0.1992207020521164,
-0.6663199663162231,
0.17371852695941925,
0.2756391763687134,
0.7695567607879639,
-0.006103537045419216,
-0.4301905930042267,
-0.5931952595710754,
-0.11511475592851639,
1.2286771535873413,
-0.8291699886322021,
0.3969002664089203,
0.476054847240448,
0.13213664293289185,
0.1345408409833908,
-0.5567554831504822,
-0.17505121231079102,
-0.29350537061691284,
-0.3707069158554077,
0.1733054667711258,
0.09920638054609299,
0.22043290734291077,
0.4941316545009613,
0.38075828552246094,
-0.43758425116539,
0.08406591415405273,
-0.41958943009376526,
-0.48512548208236694,
0.6151171326637268,
-0.059403195977211,
-0.08503736555576324,
-0.5536782741546631,
-0.5183063745498657,
0.06821433454751968,
-0.5456633567810059,
0.33461329340934753,
0.07959357649087906,
0.3876226842403412,
-0.08107903599739075,
0.38515955209732056,
-0.26116880774497986,
0.9078500270843506,
0.5620131492614746,
-0.6529302000999451,
0.4260397255420685,
-0.4576813876628876,
0.1927139163017273,
0.23709999024868011,
0.9087591171264648,
0.34224966168403625,
0.3443838953971863,
-0.2393919974565506,
-0.1190061941742897,
-0.11618191003799438,
-0.13375180959701538,
-0.8220614790916443,
-0.3444744050502777,
0.10993104428052902,
-0.22813443839550018,
-0.2793487310409546,
0.2906762659549713,
-0.7696747779846191,
-0.40864863991737366,
-0.36599501967430115,
0.01621616631746292,
-0.793860137462616,
-0.1186671257019043,
-0.016185510903596878,
-0.18103431165218353,
0.05311679467558861,
0.26394122838974,
-0.8087831139564514,
0.2472287118434906,
0.554271399974823,
0.7122154831886292,
-0.002842954359948635,
-0.5111086368560791,
-0.6255500912666321,
-0.008203398436307907,
-0.3287564516067505,
1.1044830083847046,
-0.41559064388275146,
-0.36790165305137634,
-0.09100675582885742,
-0.416638046503067,
-0.228868305683136,
-0.5327155590057373,
0.9984301328659058,
-0.27614572644233704,
0.26976585388183594,
-0.39196497201919556,
-0.7137241363525391,
-0.3576335310935974,
0.5381366014480591,
-0.5358245372772217,
1.2320259809494019,
-0.2044777274131775,
-0.8360676169395447,
0.28291788697242737,
-0.7443240284919739,
-0.26992183923721313,
0.08612923324108124,
-0.2869586944580078,
-0.002622334286570549,
-0.12064771354198456,
0.06489469856023788,
0.7589697241783142,
-0.48799169063568115,
0.44273868203163147,
-0.04534759372472763,
-0.00551582220941782,
0.26329347491264343,
0.10965282469987869,
0.8292249441146851,
0.0456264466047287,
-0.46931976079940796,
0.3009747564792633,
-0.8440165519714355,
0.1411745548248291,
-0.26773491501808167,
-0.4993899464607239,
-0.5456030368804932,
-0.1808670163154602,
-0.140346959233284,
0.5449177622795105,
0.3619546592235565,
-0.6643907427787781,
0.12827348709106445,
-0.3517814874649048,
0.34508776664733887,
0.7234259843826294,
-0.09827673435211182,
0.3936680853366852,
-0.3055553734302521,
0.2408774197101593,
0.1729276329278946,
-0.04035087674856186,
-0.2752750515937805,
-0.7784534692764282,
-0.7759746313095093,
-0.37834540009498596,
0.6054116487503052,
0.7672972083091736,
-0.7300068140029907,
0.8818275332450867,
-0.45993801951408386,
-0.7267788648605347,
-0.4431510269641876,
0.4002230167388916,
0.9768311381340027,
0.663106381893158,
0.43961194157600403,
-0.45308658480644226,
-0.8456920981407166,
-0.7165461778640747,
-0.356145441532135,
-0.44955167174339294,
0.21644817292690277,
0.2963685989379883,
0.46893253922462463,
0.1725262850522995,
1.0054097175598145,
-0.4344874322414398,
-0.49234288930892944,
0.012593402527272701,
0.19996416568756104,
0.20406226813793182,
0.5427514314651489,
0.7650800943374634,
-0.7290982007980347,
-0.6705499291419983,
0.031875129789114,
-0.49785348773002625,
-0.2455485314130783,
0.21093662083148956,
-0.033204738050699234,
0.42186006903648376,
0.5479815006256104,
-0.40360239148139954,
0.0441058911383152,
0.4907449185848236,
-0.7569058537483215,
0.9618700742721558,
0.05426883324980736,
0.4559197723865509,
-1.1785398721694946,
0.34923726320266724,
0.09546882659196854,
-0.2774323523044586,
-0.53377765417099,
-0.11477851867675781,
0.09895762801170349,
0.3525606095790863,
-0.3295886516571045,
0.8186584115028381,
-0.6308766603469849,
0.11774346232414246,
0.15082183480262756,
0.7278602123260498,
-0.012453610077500343,
0.7191342115402222,
0.23408225178718567,
0.5443028211593628,
0.7672006487846375,
-0.6705130934715271,
0.5884920954704285,
0.48355039954185486,
-0.6237566471099854,
0.9503421187400818,
-0.445132851600647,
0.018078619614243507,
0.33455148339271545,
0.16026192903518677,
-0.9962500333786011,
0.10024259984493256,
0.25883135199546814,
-0.8462072610855103,
0.35654592514038086,
0.0063370573334395885,
-0.3921995460987091,
-0.05019277706742287,
-0.5985100865364075,
0.3924783170223236,
0.2937227189540863,
-0.5794212222099304,
0.6237426996231079,
0.5092573761940002,
-0.27061566710472107,
-0.7219299077987671,
-0.6144702434539795,
0.098167285323143,
-0.1559109389781952,
-0.671439528465271,
0.48319002985954285,
-0.35538455843925476,
-0.34573206305503845,
0.08288311958312988,
-0.014345156028866768,
0.0033851005136966705,
-0.13718345761299133,
0.13149715960025787,
0.2616420090198517,
-0.30453717708587646,
0.23392799496650696,
-0.10416067391633987,
-0.350585013628006,
0.02659093216061592,
-0.3926944434642792,
0.30055737495422363,
-0.49029678106307983,
-0.04830751568078995,
-0.17966212332248688,
0.2834235727787018,
0.3861585259437561,
-0.3809334635734558,
0.45270758867263794,
0.720656156539917,
-0.30187422037124634,
0.04042479768395424,
-0.9882897138595581,
-0.1448974311351776,
-0.4503425359725952,
0.2838149964809418,
-0.6588327288627625,
-1.0478529930114746,
0.7057419419288635,
-0.07740667462348938,
0.2444184273481369,
0.7948228120803833,
0.6051234006881714,
0.1473250836133957,
0.6539359092712402,
0.27917152643203735,
0.16252464056015015,
0.36831212043762207,
-0.22604598104953766,
0.1579473912715912,
-1.0856062173843384,
-0.38485464453697205,
-0.8552631735801697,
-0.12836197018623352,
-0.4891933798789978,
-0.43723660707473755,
0.20007620751857758,
0.3752745985984802,
-0.029914839193224907,
0.4698587656021118,
-0.5390462875366211,
0.45356640219688416,
0.6611413955688477,
-0.10044314712285995,
0.3136090636253357,
-0.21469378471374512,
-0.5668954253196716,
-0.13349908590316772,
-0.7320636510848999,
-0.5559984445571899,
0.9791677594184875,
0.012520669028162956,
0.37382861971855164,
0.3641229271888733,
0.7302542328834534,
0.26775404810905457,
0.19851703941822052,
-1.0725098848342896,
0.9208898544311523,
-0.2833303213119507,
-0.7611523270606995,
-0.3560803234577179,
-0.6566889882087708,
-0.8611986041069031,
0.1617198884487152,
-0.25368306040763855,
-0.8157324194908142,
0.18396808207035065,
0.2489801049232483,
-0.4128907024860382,
0.47802531719207764,
-0.581984281539917,
0.8549497723579407,
-0.14267228543758392,
-0.03437245637178421,
-0.231204092502594,
-0.6135056614875793,
0.34300488233566284,
-0.06767851114273071,
0.315072238445282,
-0.16684460639953613,
-0.20799405872821808,
1.4535729885101318,
-0.062528096139431,
1.0640805959701538,
0.034164853394031525,
0.056030794978141785,
0.4570085108280182,
0.0178088191896677,
0.22665126621723175,
-0.013238148763775826,
-0.30012837052345276,
0.37348878383636475,
0.005446276627480984,
-0.468960165977478,
-0.42906299233436584,
1.0042754411697388,
-0.6230471730232239,
-0.5849286913871765,
-0.5050144791603088,
-0.401640921831131,
-0.31635501980781555,
0.38486355543136597,
0.4480800926685333,
0.7524886727333069,
-0.1540621966123581,
0.18633142113685608,
0.7207686901092529,
0.1907341480255127,
0.35381895303726196,
0.5058779716491699,
-0.03584454953670502,
-0.7353188395500183,
0.7405272126197815,
0.3107469975948334,
0.07942047715187073,
0.385288804769516,
0.4360211491584778,
-0.3160913586616516,
-0.4927942454814911,
-0.47256213426589966,
0.5505731105804443,
-1.091965675354004,
-0.348928838968277,
-0.4443504214286804,
-0.019707463681697845,
-0.9649491906166077,
-0.19253534078598022,
-0.17941853404045105,
-0.8067144751548767,
-0.21139901876449585,
-0.24185049533843994,
0.4410568177700043,
0.603736400604248,
-0.2329612523317337,
0.010512921027839184,
-1.0199514627456665,
-0.1411292999982834,
0.2229263037443161,
0.4915764331817627,
-0.13543222844600677,
-1.0302766561508179,
-0.44935116171836853,
-0.4052741527557373,
-0.16714058816432953,
-0.9392635822296143,
0.10437169671058655,
0.37014397978782654,
0.8686946630477905,
0.6980811357498169,
0.12694329023361206,
0.5280954241752625,
-0.356305330991745,
0.8879022598266602,
0.3610929250717163,
-1.2162431478500366,
0.40891245007514954,
-0.13793517649173737,
0.18967892229557037,
0.6616648435592651,
0.480539470911026,
-0.7960338592529297,
-0.1957758367061615,
-0.8277866840362549,
-0.6204225420951843,
0.9007886648178101,
-0.16171033680438995,
-0.25316864252090454,
-0.10205335170030594,
0.2767007052898407,
-0.002037926809862256,
0.11553466320037842,
-0.4276229739189148,
-0.28824084997177124,
-0.015649914741516113,
-0.18668240308761597,
-0.3716614544391632,
-0.6531873345375061,
-0.20891495048999786,
-0.34384629130363464,
1.1595529317855835,
-0.16068321466445923,
0.13705936074256897,
0.31109654903411865,
-0.10875403881072998,
-0.00036885234294459224,
0.30399876832962036,
0.8449141979217529,
0.597420334815979,
-0.06697925925254822,
0.4031023681163788,
0.2526593804359436,
-0.5571214556694031,
-0.15904124081134796,
0.02790832333266735,
0.029155848547816277,
0.2517951428890228,
0.7147746086120605,
0.8318662047386169,
0.678824782371521,
-0.7075899839401245,
0.3916783928871155,
0.3314391076564789,
-0.3631792664527893,
-0.4357847273349762,
-0.21504822373390198,
-0.059090275317430496,
0.04692019522190094,
0.2514374256134033,
0.4005483388900757,
0.1094331219792366,
-0.2563392221927643,
0.2080712765455246,
0.08593342453241348,
-0.4823617935180664,
-0.48326489329338074,
0.12489393353462219,
0.5776888728141785,
-0.24622276425361633,
0.3402079939842224,
-0.5955126285552979,
-1.0005338191986084,
0.4257400333881378,
0.24539396166801453,
0.8648937940597534,
-0.7846315503120422,
0.029667435213923454,
0.8707151412963867,
0.30517178773880005,
-0.16383951902389526,
0.3013044595718384,
-0.23832394182682037,
-0.9236401319503784,
-0.37599948048591614,
-0.5411345362663269,
-0.5160356163978577,
-0.3520219624042511,
-0.5573298931121826,
0.3442295789718628,
-0.43809083104133606,
-0.4290655851364136,
0.17203980684280396,
0.28191903233528137,
-0.4140755534172058,
0.07402621954679489,
0.072433240711689,
1.0527209043502808,
-0.7248045802116394,
0.8407557010650635,
1.1996365785598755,
-0.25664496421813965,
-0.7825250625610352,
-0.44209912419319153,
0.3188301622867584,
-0.4082106053829193,
0.7587813138961792,
0.08132566511631012,
-0.17595456540584564,
-0.08367348462343216,
-0.07931488752365112,
-0.9604383707046509,
1.0307153463363647,
0.12088102102279663,
-0.18640384078025818,
-0.07674983888864517,
-0.18807142972946167,
0.3724331259727478,
-0.3197563588619232,
0.4824788570404053,
0.5977444648742676,
0.8126919865608215,
0.04709664359688759,
-1.3549894094467163,
-0.00015958695439621806,
-0.5241503119468689,
-0.28879374265670776,
0.1982797086238861,
-0.7093292474746704,
0.8698021769523621,
-0.18712414801120758,
-0.06293268501758575,
-0.043487343937158585,
0.6184986233711243,
0.34917470812797546,
0.1632978618144989,
0.6984711289405823,
0.6973530054092407,
0.7917250990867615,
-0.24618925154209137,
0.690801739692688,
-0.6106770634651184,
0.48429080843925476,
0.9720286130905151,
0.07862502336502075,
0.9161303639411926,
0.503621518611908,
-0.15073129534721375,
0.6963005065917969,
0.5001471042633057,
0.2066582292318344,
0.16397146880626678,
-0.0232658963650465,
-0.085159532725811,
-0.568009078502655,
-0.13847072422504425,
-0.20087561011314392,
0.4493662118911743,
0.5854465365409851,
-0.4064285457134247,
-0.15374165773391724,
-0.13921619951725006,
0.2882923483848572,
0.32519492506980896,
-0.3868441879749298,
0.6322715878486633,
0.1459571272134781,
-0.9476083517074585,
0.6025073528289795,
0.22127987444400787,
1.0373371839523315,
-0.7259907722473145,
0.05225680023431778,
0.01514290552586317,
0.2708776295185089,
-0.46099919080734253,
-0.8317273855209351,
0.2479216754436493,
0.04392845183610916,
-0.18999028205871582,
-0.11383049935102463,
0.8094821572303772,
-0.607993483543396,
-0.4325374364852905,
0.3921584486961365,
0.4033829867839813,
0.4106416404247284,
0.17470191419124603,
-0.7805877923965454,
-0.20106922090053558,
-0.020703032612800598,
-0.4347817003726959,
0.16101598739624023,
0.4543899595737457,
-0.10936296731233597,
0.4238179624080658,
0.3998190462589264,
0.1135873943567276,
0.20748423039913177,
-0.2150111347436905,
0.631662130355835,
-0.6976011991500854,
-0.6245509386062622,
-0.6071083545684814,
0.34338322281837463,
-0.3593518137931824,
-0.8010493516921997,
1.142651915550232,
0.7025709748268127,
0.941361665725708,
-0.0698329284787178,
0.4897202253341675,
-0.17476460337638855,
0.8820655345916748,
-0.5770593285560608,
0.40868711471557617,
-0.3426808714866638,
0.07302092015743256,
-0.3544350564479828,
-0.6168258786201477,
-0.5426623821258545,
0.6250448226928711,
-0.6706591844558716,
0.06506066024303436,
0.8903932571411133,
0.7224286794662476,
0.1198614314198494,
-0.03622215613722801,
0.3988170027732849,
0.23983539640903473,
0.06105600669980049,
0.6505360007286072,
0.46316516399383545,
-0.326505571603775,
0.6580914258956909,
-0.5337648391723633,
-0.4642001986503601,
-0.45193779468536377,
-0.7761023640632629,
-1.113426923751831,
-1.0249435901641846,
-0.5211359262466431,
-0.35442960262298584,
-0.16453677415847778,
1.1962484121322632,
0.5865208506584167,
-1.1442735195159912,
-0.47663384675979614,
0.5321530699729919,
0.07147277891635895,
-0.483693391084671,
-0.18458469212055206,
0.652161180973053,
-0.4870583117008209,
-0.7924712896347046,
0.2160637229681015,
0.16403840482234955,
-0.42047107219696045,
-0.11220884323120117,
-0.37455010414123535,
-0.4812692403793335,
0.06817418336868286,
0.7009367942810059,
0.1606648564338684,
-0.8716385364532471,
-0.2333405464887619,
0.11494265496730804,
-0.4209103584289551,
0.1031130999326706,
0.9178314805030823,
-0.5741323232650757,
0.3767808973789215,
0.796318531036377,
0.36943140625953674,
-0.01784614287316799,
0.009852631017565727,
-0.0020168370101600885,
-0.6805915236473083,
0.07671914249658585,
0.3157942593097687,
0.6792323589324951,
0.3751029670238495,
-0.24565792083740234,
0.5759589076042175,
0.4641641080379486,
-0.529226541519165,
-0.6246018409729004,
0.1386456936597824,
-1.305055856704712,
-0.13156697154045105,
1.3111531734466553,
-0.5444136261940002,
-0.10350959748029709,
-0.3198779225349426,
-0.28652238845825195,
0.2125016450881958,
-0.5590268969535828,
0.7567185759544373,
0.8802222609519958,
-0.090280681848526,
-0.029722798615694046,
-0.022182436659932137,
0.6130183935165405,
0.63117915391922,
-0.5609471797943115,
-0.09450124204158783,
0.4957546591758728,
0.23651766777038574,
0.8959860801696777,
0.6986567974090576,
-0.15859703719615936,
0.3569105565547943,
-0.020370416343212128,
0.38944247364997864,
-0.20508822798728943,
-0.22693447768688202,
-0.20352311432361603,
0.14124681055545807,
0.2526873052120209,
0.019521525129675865
] |
EleutherAI/pythia-12b-deduped
|
EleutherAI
| 2023-06-08T13:07:07Z | 8,591 | 48 |
transformers
|
[
"transformers",
"pytorch",
"gpt_neox",
"text-generation",
"causal-lm",
"pythia",
"en",
"dataset:EleutherAI/the_pile_deduplicated",
"arxiv:2304.01373",
"arxiv:2101.00027",
"arxiv:2201.07311",
"license:apache-2.0",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-02-27T14:01:34Z |
---
language:
- en
tags:
- pytorch
- causal-lm
- pythia
license: apache-2.0
datasets:
- EleutherAI/the_pile_deduplicated
---
The *Pythia Scaling Suite* is a collection of models developed to facilitate
interpretability research [(see paper)](https://arxiv.org/pdf/2304.01373.pdf).
It contains two sets of eight models of sizes
70M, 160M, 410M, 1B, 1.4B, 2.8B, 6.9B, and 12B. For each size, there are two
models: one trained on the Pile, and one trained on the Pile after the dataset
has been globally deduplicated. All 8 model sizes are trained on the exact
same data, in the exact same order. We also provide 154 intermediate
checkpoints per model, hosted on Hugging Face as branches.
The Pythia model suite was designed to promote scientific
research on large language models, especially interpretability research.
Despite not centering downstream performance as a design goal, we find the
models <a href="#evaluations">match or exceed</a> the performance of
similar and same-sized models, such as those in the OPT and GPT-Neo suites.
<details>
<summary style="font-weight:600">Details on previous early release and naming convention.</summary>
Previously, we released an early version of the Pythia suite to the public.
However, we decided to retrain the model suite to address a few hyperparameter
discrepancies. This model card <a href="#changelog">lists the changes</a>;
see appendix B in the Pythia paper for further discussion. We found no
difference in benchmark performance between the two Pythia versions.
The old models are
[still available](https://huggingface.co/models?other=pythia_v0), but we
suggest the retrained suite if you are just starting to use Pythia.<br>
**This is the current release.**
Please note that all models in the *Pythia* suite were renamed in January
2023. For clarity, a <a href="#naming-convention-and-parameter-count">table
comparing the old and new names</a> is provided in this model card, together
with exact parameter counts.
</details>
<br>
# Pythia-12B-deduped
## Model Details
- Developed by: [EleutherAI](http://eleuther.ai)
- Model type: Transformer-based Language Model
- Language: English
- Learn more: [Pythia's GitHub repository](https://github.com/EleutherAI/pythia)
for training procedure, config files, and details on how to use.
[See paper](https://arxiv.org/pdf/2304.01373.pdf) for more evals and implementation
details.
- Library: [GPT-NeoX](https://github.com/EleutherAI/gpt-neox)
- License: Apache 2.0
- Contact: to ask questions about this model, join the [EleutherAI
Discord](https://discord.gg/zBGx3azzUn), and post them in `#release-discussion`.
Please read the existing *Pythia* documentation before asking about it in the
EleutherAI Discord. For general correspondence: [contact@eleuther.
ai](mailto:[email protected]).
<figure>
| Pythia model | Non-Embedding Params | Layers | Model Dim | Heads | Batch Size | Learning Rate | Equivalent Models |
| -----------: | -------------------: | :----: | :-------: | :---: | :--------: | :-------------------: | :--------------------: |
| 70M | 18,915,328 | 6 | 512 | 8 | 2M | 1.0 x 10<sup>-3</sup> | — |
| 160M | 85,056,000 | 12 | 768 | 12 | 2M | 6.0 x 10<sup>-4</sup> | GPT-Neo 125M, OPT-125M |
| 410M | 302,311,424 | 24 | 1024 | 16 | 2M | 3.0 x 10<sup>-4</sup> | OPT-350M |
| 1.0B | 805,736,448 | 16 | 2048 | 8 | 2M | 3.0 x 10<sup>-4</sup> | — |
| 1.4B | 1,208,602,624 | 24 | 2048 | 16 | 2M | 2.0 x 10<sup>-4</sup> | GPT-Neo 1.3B, OPT-1.3B |
| 2.8B | 2,517,652,480 | 32 | 2560 | 32 | 2M | 1.6 x 10<sup>-4</sup> | GPT-Neo 2.7B, OPT-2.7B |
| 6.9B | 6,444,163,072 | 32 | 4096 | 32 | 2M | 1.2 x 10<sup>-4</sup> | OPT-6.7B |
| 12B | 11,327,027,200 | 36 | 5120 | 40 | 2M | 1.2 x 10<sup>-4</sup> | — |
<figcaption>Engineering details for the <i>Pythia Suite</i>. Deduped and
non-deduped models of a given size have the same hyperparameters. “Equivalent”
models have <b>exactly</b> the same architecture, and the same number of
non-embedding parameters.</figcaption>
</figure>
## Uses and Limitations
### Intended Use
The primary intended use of Pythia is research on the behavior, functionality,
and limitations of large language models. This suite is intended to provide
a controlled setting for performing scientific experiments. We also provide
154 checkpoints per model: initial `step0`, 10 log-spaced checkpoints
`step{1,2,4...512}`, and 143 evenly-spaced checkpoints from `step1000` to
`step143000`. These checkpoints are hosted on Hugging Face as branches. Note
that branch `143000` corresponds exactly to the model checkpoint on the `main`
branch of each model.
You may also further fine-tune and adapt Pythia-12B-deduped for deployment,
as long as your use is in accordance with the Apache 2.0 license. Pythia
models work with the Hugging Face [Transformers
Library](https://huggingface.co/docs/transformers/index). If you decide to use
pre-trained Pythia-12B-deduped as a basis for your fine-tuned model, please
conduct your own risk and bias assessment.
### Out-of-scope use
The Pythia Suite is **not** intended for deployment. It is not a in itself
a product and cannot be used for human-facing interactions. For example,
the model may generate harmful or offensive text. Please evaluate the risks
associated with your particular use case.
Pythia models are English-language only, and are not suitable for translation
or generating text in other languages.
Pythia-12B-deduped has not been fine-tuned for downstream contexts in which
language models are commonly deployed, such as writing genre prose,
or commercial chatbots. This means Pythia-12B-deduped will **not**
respond to a given prompt the way a product like ChatGPT does. This is because,
unlike this model, ChatGPT was fine-tuned using methods such as Reinforcement
Learning from Human Feedback (RLHF) to better “follow” human instructions.
### Limitations and biases
The core functionality of a large language model is to take a string of text
and predict the next token. The token used by the model need not produce the
most “accurate” text. Never rely on Pythia-12B-deduped to produce factually accurate
output.
This model was trained on [the Pile](https://pile.eleuther.ai/), a dataset
known to contain profanity and texts that are lewd or otherwise offensive.
See [Section 6 of the Pile paper](https://arxiv.org/abs/2101.00027) for a
discussion of documented biases with regards to gender, religion, and race.
Pythia-12B-deduped may produce socially unacceptable or undesirable text, *even if*
the prompt itself does not include anything explicitly offensive.
If you plan on using text generated through, for example, the Hosted Inference
API, we recommend having a human curate the outputs of this language model
before presenting it to other people. Please inform your audience that the
text was generated by Pythia-12B-deduped.
### Quickstart
Pythia models can be loaded and used via the following code, demonstrated here
for the third `pythia-70m-deduped` checkpoint:
```python
from transformers import GPTNeoXForCausalLM, AutoTokenizer
model = GPTNeoXForCausalLM.from_pretrained(
"EleutherAI/pythia-70m-deduped",
revision="step3000",
cache_dir="./pythia-70m-deduped/step3000",
)
tokenizer = AutoTokenizer.from_pretrained(
"EleutherAI/pythia-70m-deduped",
revision="step3000",
cache_dir="./pythia-70m-deduped/step3000",
)
inputs = tokenizer("Hello, I am", return_tensors="pt")
tokens = model.generate(**inputs)
tokenizer.decode(tokens[0])
```
Revision/branch `step143000` corresponds exactly to the model checkpoint on
the `main` branch of each model.<br>
For more information on how to use all Pythia models, see [documentation on
GitHub](https://github.com/EleutherAI/pythia).
## Training
### Training data
Pythia-12B-deduped was trained on the Pile **after the dataset has been globally
deduplicated**.<br>
[The Pile](https://pile.eleuther.ai/) is a 825GiB general-purpose dataset in
English. It was created by EleutherAI specifically for training large language
models. It contains texts from 22 diverse sources, roughly broken down into
five categories: academic writing (e.g. arXiv), internet (e.g. CommonCrawl),
prose (e.g. Project Gutenberg), dialogue (e.g. YouTube subtitles), and
miscellaneous (e.g. GitHub, Enron Emails). See [the Pile
paper](https://arxiv.org/abs/2101.00027) for a breakdown of all data sources,
methodology, and a discussion of ethical implications. Consult [the
datasheet](https://arxiv.org/abs/2201.07311) for more detailed documentation
about the Pile and its component datasets. The Pile can be downloaded from
the [official website](https://pile.eleuther.ai/), or from a [community
mirror](https://the-eye.eu/public/AI/pile/).
### Training procedure
All models were trained on the exact same data, in the exact same order. Each
model saw 299,892,736,000 tokens during training, and 143 checkpoints for each
model are saved every 2,097,152,000 tokens, spaced evenly throughout training,
from `step1000` to `step143000` (which is the same as `main`). In addition, we
also provide frequent early checkpoints: `step0` and `step{1,2,4...512}`.
This corresponds to training for just under 1 epoch on the Pile for
non-deduplicated models, and about 1.5 epochs on the deduplicated Pile.
All *Pythia* models trained for 143000 steps at a batch size
of 2M (2,097,152 tokens).<br>
See [GitHub](https://github.com/EleutherAI/pythia) for more details on training
procedure, including [how to reproduce
it](https://github.com/EleutherAI/pythia/blob/main/README.md#reproducing-training).<br>
Pythia uses the same tokenizer as [GPT-NeoX-
20B](https://huggingface.co/EleutherAI/gpt-neox-20b).
## Evaluations
All 16 *Pythia* models were evaluated using the [LM Evaluation
Harness](https://github.com/EleutherAI/lm-evaluation-harness). You can access
the results by model and step at `results/json/*` in the [GitHub
repository](https://github.com/EleutherAI/pythia/tree/main/results/json/).<br>
Expand the sections below to see plots of evaluation results for all
Pythia and Pythia-deduped models compared with OPT and BLOOM.
<details>
<summary>LAMBADA – OpenAI</summary>
<img src="/EleutherAI/pythia-12b/resolve/main/eval_plots/lambada_openai_v1.png" style="width:auto"/>
</details>
<details>
<summary>Physical Interaction: Question Answering (PIQA)</summary>
<img src="/EleutherAI/pythia-12b/resolve/main/eval_plots/piqa_v1.png" style="width:auto"/>
</details>
<details>
<summary>WinoGrande</summary>
<img src="/EleutherAI/pythia-12b/resolve/main/eval_plots/winogrande_v1.png" style="width:auto"/>
</details>
<details>
<summary>AI2 Reasoning Challenge—Easy Set</summary>
<img src="/EleutherAI/pythia-12b/resolve/main/eval_plots/arc_easy_v1.png" style="width:auto"/>
</details>
<details>
<summary>SciQ</summary>
<img src="/EleutherAI/pythia-12b/resolve/main/eval_plots/sciq_v1.png" style="width:auto"/>
</details>
## Changelog
This section compares differences between previously released
[Pythia v0](https://huggingface.co/models?other=pythia_v0) and the current
models. See Appendix B of the Pythia paper for further discussion of these
changes and the motivation behind them. We found that retraining Pythia had no
impact on benchmark performance.
- All model sizes are now trained with uniform batch size of 2M tokens.
Previously, the models of size 160M, 410M, and 1.4B parameters were trained
with batch sizes of 4M tokens.
- We added checkpoints at initialization (step 0) and steps {1,2,4,8,16,32,64,
128,256,512} in addition to every 1000 training steps.
- Flash Attention was used in the new retrained suite.
- We remedied a minor inconsistency that existed in the original suite: all
models of size 2.8B parameters or smaller had a learning rate (LR) schedule
which decayed to a minimum LR of 10% the starting LR rate, but the 6.9B and
12B models all used an LR schedule which decayed to a minimum LR of 0. In
the redone training runs, we rectified this inconsistency: all models now were
trained with LR decaying to a minimum of 0.1× their maximum LR.
### Naming convention and parameter count
*Pythia* models were renamed in January 2023. It is possible that the old
naming convention still persists in some documentation by accident. The
current naming convention (70M, 160M, etc.) is based on total parameter count.
<figure style="width:32em">
| current Pythia suffix | old suffix | total params | non-embedding params |
| --------------------: | ---------: | -------------: | -------------------: |
| 70M | 19M | 70,426,624 | 18,915,328 |
| 160M | 125M | 162,322,944 | 85,056,000 |
| 410M | 350M | 405,334,016 | 302,311,424 |
| 1B | 800M | 1,011,781,632 | 805,736,448 |
| 1.4B | 1.3B | 1,414,647,808 | 1,208,602,624 |
| 2.8B | 2.7B | 2,775,208,960 | 2,517,652,480 |
| 6.9B | 6.7B | 6,857,302,016 | 6,444,163,072 |
| 12B | 13B | 11,846,072,320 | 11,327,027,200 |
</figure>
|
[
-0.33783823251724243,
-0.8039589524269104,
0.3366619944572449,
0.08105892688035965,
-0.23200325667858124,
-0.18124663829803467,
-0.2318492978811264,
-0.45294803380966187,
0.1985972672700882,
0.14399667084217072,
-0.3734820783138275,
-0.29117700457572937,
-0.4431604743003845,
-0.04072674736380577,
-0.45568743348121643,
1.103182315826416,
-0.09304199367761612,
-0.1386982798576355,
0.13998955488204956,
-0.05461960285902023,
-0.0923473909497261,
-0.5134643316268921,
-0.4118700623512268,
-0.4164051413536072,
0.6322047710418701,
0.18405814468860626,
0.87876296043396,
0.5843911170959473,
0.1937774270772934,
0.29751840233802795,
-0.3769690990447998,
-0.06669127196073532,
-0.15180841088294983,
-0.09941021353006363,
-0.05065704137086868,
-0.2227243036031723,
-0.7107989192008972,
0.04245620593428612,
0.7004749178886414,
0.7023695707321167,
-0.18093062937259674,
0.24719706177711487,
-0.006157744210213423,
0.3678298890590668,
-0.5161170959472656,
0.03729937598109245,
-0.3521062135696411,
-0.2367652952671051,
-0.06763119995594025,
0.16010798513889313,
-0.3959493935108185,
-0.365426629781723,
0.4258559048175812,
-0.6306959390640259,
0.24641935527324677,
0.10125677287578583,
1.2141786813735962,
-0.10656982660293579,
-0.41634371876716614,
-0.08071663230657578,
-0.7376379370689392,
0.6712316870689392,
-0.6993827819824219,
0.3230709731578827,
0.2802535891532898,
0.17511282861232758,
-0.024966498836874962,
-0.8940280079841614,
-0.5504372119903564,
-0.2062368094921112,
-0.15131139755249023,
-0.029861196875572205,
-0.6516119241714478,
0.018848543986678123,
0.49764078855514526,
0.6762364506721497,
-0.8235467672348022,
-0.04336396977305412,
-0.3772587776184082,
-0.3464348316192627,
0.33717894554138184,
0.06814241409301758,
0.44856229424476624,
-0.3120433986186981,
-0.0064170812256634235,
-0.38248705863952637,
-0.6915245056152344,
-0.26529574394226074,
0.5531288981437683,
0.07249937206506729,
-0.35936564207077026,
0.5203108191490173,
-0.35677993297576904,
0.5624502301216125,
-0.06383462250232697,
0.2575194239616394,
0.427456259727478,
-0.1784205287694931,
-0.5314666628837585,
-0.09236526489257812,
0.9218412041664124,
0.11243630945682526,
0.21972355246543884,
-0.0205981507897377,
-0.05162859335541725,
0.12461681663990021,
0.046872928738594055,
-1.1476070880889893,
-0.821731686592102,
0.21555089950561523,
-0.4144285023212433,
-0.4443541467189789,
-0.19384318590164185,
-0.9486441612243652,
-0.21689224243164062,
-0.21669796109199524,
0.5903573632240295,
-0.5256155133247375,
-0.7182916402816772,
-0.10305260121822357,
0.014450245536863804,
0.20517399907112122,
0.3733600378036499,
-0.9292035698890686,
0.4438372552394867,
0.40804457664489746,
0.9751535058021545,
0.21642637252807617,
-0.5538265705108643,
-0.19897636771202087,
-0.2667851448059082,
-0.13077303767204285,
0.3800182342529297,
-0.16675792634487152,
-0.19320563971996307,
-0.13801723718643188,
0.17658542096614838,
-0.135410338640213,
-0.37706032395362854,
0.362745463848114,
-0.42737725377082825,
0.2676021158695221,
-0.27459704875946045,
-0.4502461552619934,
-0.37830719351768494,
0.1219572201371193,
-0.6096187233924866,
0.8446409106254578,
0.2340012490749359,
-0.9681684374809265,
0.21380946040153503,
-0.2127905786037445,
-0.0628214105963707,
-0.021452544257044792,
0.17326146364212036,
-0.6726760268211365,
0.028215326368808746,
0.34567633271217346,
0.04522418975830078,
-0.4380722939968109,
0.23419813811779022,
-0.22752869129180908,
-0.43258002400398254,
0.16872310638427734,
-0.5629862546920776,
0.9376027584075928,
0.20904509723186493,
-0.656690776348114,
0.2885710597038269,
-0.6398681402206421,
0.1896773725748062,
0.24930217862129211,
-0.38219237327575684,
0.0304777342826128,
-0.22080658376216888,
0.3776516318321228,
0.1822487860918045,
0.1592675894498825,
-0.38394805788993835,
0.3020226061344147,
-0.4929015040397644,
0.730271577835083,
0.7572463154792786,
-0.041198864579200745,
0.4816305935382843,
-0.41054558753967285,
0.4676029086112976,
0.020411789417266846,
0.1746743768453598,
-0.06823232024908066,
-0.6230527758598328,
-0.9634231925010681,
-0.33519285917282104,
0.3843463957309723,
0.3141080141067505,
-0.47335004806518555,
0.4779112637042999,
-0.2328331023454666,
-0.9040582180023193,
-0.16768823564052582,
-0.11109686642885208,
0.4201289415359497,
0.32223132252693176,
0.4469194710254669,
-0.15309368073940277,
-0.5167685747146606,
-0.875427782535553,
-0.20303036272525787,
-0.4394972026348114,
0.1377301663160324,
0.182404562830925,
0.9565435647964478,
-0.15228770673274994,
0.5555185675621033,
-0.3820579946041107,
0.22534263134002686,
-0.3896227478981018,
0.1643005907535553,
0.428926944732666,
0.6340382099151611,
0.3774932622909546,
-0.5366353392601013,
-0.36207306385040283,
-0.007497728336602449,
-0.5740821361541748,
0.07166765630245209,
-0.0017171816434711218,
-0.33615732192993164,
0.29868271946907043,
0.07104188203811646,
-0.9969958662986755,
0.49946948885917664,
0.6219839453697205,
-0.5773237347602844,
0.7890416979789734,
-0.34463179111480713,
-0.0044698757119476795,
-1.054847002029419,
0.27685078978538513,
0.11288406699895859,
-0.19942814111709595,
-0.5604782700538635,
0.06269904971122742,
0.22170162200927734,
-0.22231940925121307,
-0.3647317886352539,
0.5889281034469604,
-0.5471088886260986,
-0.16777659952640533,
-0.22483256459236145,
0.04790788143873215,
-0.02875935658812523,
0.6324285864830017,
0.16762110590934753,
0.5728643536567688,
0.8068776726722717,
-0.7895714640617371,
0.4420459270477295,
0.24096815288066864,
-0.31331899762153625,
0.3706797659397125,
-0.8938119411468506,
0.12510113418102264,
0.08017795532941818,
0.4087165594100952,
-0.6499674320220947,
-0.35160160064697266,
0.5342286229133606,
-0.586000382900238,
0.16002121567726135,
-0.4070958197116852,
-0.5373881459236145,
-0.4196389317512512,
-0.16219130158424377,
0.5978590846061707,
0.787784993648529,
-0.6246824264526367,
0.7003790140151978,
0.059696465730667114,
0.15561898052692413,
-0.36560294032096863,
-0.5751716494560242,
-0.27717524766921997,
-0.5378512740135193,
-0.6731871962547302,
0.430534303188324,
0.17552684247493744,
-0.19041910767555237,
0.03787010535597801,
-0.021664466708898544,
0.1186421811580658,
-0.04796992987394333,
0.32116472721099854,
0.3729245066642761,
-0.030609149485826492,
0.022018346935510635,
-0.15369923412799835,
-0.13648679852485657,
-0.001722982618957758,
-0.4666406512260437,
1.007093071937561,
-0.30048492550849915,
-0.19075100123882294,
-0.8201366662979126,
-0.028565451502799988,
0.8936826586723328,
-0.43187785148620605,
0.9097808599472046,
0.6060118079185486,
-0.7274165749549866,
0.15987750887870789,
-0.38874807953834534,
-0.31263136863708496,
-0.44384142756462097,
0.6271345019340515,
-0.2736566364765167,
-0.3379315733909607,
0.6405546069145203,
0.26024335622787476,
0.25425517559051514,
0.5757824182510376,
0.7403596639633179,
0.24954400956630707,
1.1668038368225098,
0.4522267282009125,
-0.1625211536884308,
0.6261762976646423,
-0.5249600410461426,
0.24661166965961456,
-1.1021335124969482,
-0.21154464781284332,
-0.5465341806411743,
-0.28287065029144287,
-0.954374372959137,
-0.2949446737766266,
0.3076919913291931,
0.20914562046527863,
-0.789845883846283,
0.5980449318885803,
-0.566413402557373,
0.06418453902006149,
0.6648904085159302,
0.23896490037441254,
0.1984785795211792,
0.21050399541854858,
0.06235136464238167,
-0.07003787159919739,
-0.6398165225982666,
-0.32605215907096863,
1.196407437324524,
0.48612359166145325,
0.6876530647277832,
0.29458826780319214,
0.7171187996864319,
-0.15356586873531342,
0.21160303056240082,
-0.7017226815223694,
0.43805035948753357,
0.3664073944091797,
-0.7338067889213562,
-0.20257613062858582,
-0.7845602035522461,
-0.9657130837440491,
0.47935447096824646,
0.09017511457204819,
-1.1130561828613281,
0.26188334822654724,
0.2130299210548401,
-0.3668214976787567,
0.475506454706192,
-0.6438388228416443,
1.0093060731887817,
-0.2039220929145813,
-0.4793139696121216,
-0.3766630291938782,
-0.3045363128185272,
0.23988038301467896,
0.3838411271572113,
0.13196741044521332,
0.10462827235460281,
0.3166041672229767,
0.9762244820594788,
-0.6568934917449951,
0.6656306385993958,
-0.13816781342029572,
0.13491123914718628,
0.3571307957172394,
0.3162437975406647,
0.6625217795372009,
0.15846408903598785,
0.15625199675559998,
-0.06903255730867386,
0.1451406627893448,
-0.533125102519989,
-0.35961538553237915,
0.9302241206169128,
-1.1187750101089478,
-0.3698330819606781,
-0.8166045546531677,
-0.585867702960968,
0.09374616295099258,
0.1938454657793045,
0.4116586744785309,
0.6857582330703735,
-0.026544183492660522,
0.04738592356443405,
0.595628559589386,
-0.5660984516143799,
0.37375709414482117,
0.23670822381973267,
-0.49786481261253357,
-0.5321135520935059,
1.0061033964157104,
0.024126926437020302,
0.3377944827079773,
0.030569985508918762,
0.2443266361951828,
-0.4000636637210846,
-0.4252967834472656,
-0.6040521264076233,
0.5692272186279297,
-0.7220192551612854,
-0.026336519047617912,
-0.7179791927337646,
-0.04802260175347328,
-0.4646088182926178,
0.11892393231391907,
-0.4252910017967224,
-0.3929319679737091,
-0.2241116315126419,
-0.036013904958963394,
0.6028739809989929,
0.4659585952758789,
0.06956276297569275,
0.3399529755115509,
-0.5434896349906921,
-0.010465680621564388,
0.22803069651126862,
0.11271433532238007,
0.12413515895605087,
-0.9380005598068237,
-0.07556045800447464,
0.09221518039703369,
-0.4484097361564636,
-1.1369110345840454,
0.520725429058075,
-0.07553020864725113,
0.3593437671661377,
0.043089501559734344,
-0.22504353523254395,
0.634247899055481,
-0.09599871188402176,
0.6595571637153625,
0.15331418812274933,
-1.0451725721359253,
0.5678614377975464,
-0.47590431571006775,
0.3125603497028351,
0.3417521119117737,
0.3654935956001282,
-0.7324562072753906,
-0.06619946658611298,
-1.0127676725387573,
-1.0836071968078613,
0.761267900466919,
0.5122318863868713,
0.1664726436138153,
0.06739596277475357,
0.3616538941860199,
-0.4491175711154938,
0.13644364476203918,
-1.0283267498016357,
-0.2999933958053589,
-0.2206421196460724,
-0.07950552552938461,
0.2099359780550003,
-0.03472530096769333,
0.06780698150396347,
-0.572592556476593,
1.0438554286956787,
0.08404816687107086,
0.35642826557159424,
0.27114322781562805,
-0.39612382650375366,
-0.0884823352098465,
-0.03992336615920067,
0.12793685495853424,
0.7595744132995605,
-0.16059817373752594,
0.06959043443202972,
0.18294557929039001,
-0.5822796821594238,
0.052809447050094604,
0.17486286163330078,
-0.37659087777137756,
-0.0897662565112114,
0.17837084829807281,
0.8517753481864929,
0.12603388726711273,
-0.4191686511039734,
0.21737325191497803,
-0.05078898370265961,
-0.07273143529891968,
-0.2812117040157318,
-0.19397394359111786,
0.19366857409477234,
0.2072063833475113,
-0.027637869119644165,
-0.14034907519817352,
-0.012912028469145298,
-0.8850695490837097,
0.04568920657038689,
0.20402900874614716,
-0.12234560400247574,
-0.4133463501930237,
0.5958051681518555,
0.05716163292527199,
-0.16966822743415833,
1.138736605644226,
-0.2483317255973816,
-0.6402285099029541,
0.7723252773284912,
0.5200571417808533,
0.7097528576850891,
-0.19332072138786316,
0.3390854001045227,
0.900985598564148,
0.3407496511936188,
-0.21290695667266846,
0.08839796483516693,
0.12158861756324768,
-0.5622441172599792,
-0.12141739577054977,
-0.8024470806121826,
-0.2261054664850235,
0.301008015871048,
-0.6194506883621216,
0.46657249331474304,
-0.6532419919967651,
-0.054168950766325,
-0.012655586004257202,
0.22791728377342224,
-0.5834283828735352,
0.3495493233203888,
0.1735532581806183,
0.7323615550994873,
-0.9216474890708923,
0.8427380919456482,
0.6573688387870789,
-0.7650870084762573,
-1.1079561710357666,
0.010982547886669636,
0.03416403755545616,
-0.4735845625400543,
0.18442711234092712,
0.21963344514369965,
0.19182337820529938,
0.1773834079504013,
-0.27930283546447754,
-0.8798646926879883,
1.3138309717178345,
0.23564773797988892,
-0.6579878330230713,
-0.27619630098342896,
-0.1492536962032318,
0.5202778577804565,
0.05749375745654106,
0.7017079591751099,
0.7461907863616943,
0.4092751443386078,
0.10282387584447861,
-1.042661428451538,
0.37841475009918213,
-0.3190450668334961,
-0.06215966120362282,
0.22855955362319946,
-0.6759011149406433,
1.296527624130249,
-0.04292282834649086,
-0.018838362768292427,
0.40606003999710083,
0.575554609298706,
0.40841835737228394,
-0.1452174335718155,
0.362688273191452,
0.7801116704940796,
0.8994179964065552,
-0.3709624409675598,
1.2305340766906738,
-0.31080546975135803,
0.7665281295776367,
0.8650058507919312,
0.1775016486644745,
0.4864542484283447,
0.38892486691474915,
-0.3843866288661957,
0.5207127332687378,
0.8281043767929077,
-0.09655739367008209,
0.213653102517128,
0.27126607298851013,
-0.28354698419570923,
-0.29266875982284546,
0.134182408452034,
-0.6147096753120422,
0.19475728273391724,
0.17267197370529175,
-0.5944555997848511,
-0.23099645972251892,
-0.33543819189071655,
0.34207165241241455,
-0.36499452590942383,
-0.22628659009933472,
0.264489084482193,
0.07827102392911911,
-0.645906388759613,
0.6324096918106079,
0.2611836791038513,
0.5737466812133789,
-0.44760167598724365,
0.1614568531513214,
-0.18295371532440186,
0.3702451288700104,
-0.3361530005931854,
-0.4369707405567169,
0.1259714663028717,
0.030100781470537186,
0.05691272392868996,
0.09300114959478378,
0.46360713243484497,
-0.12219872325658798,
-0.5801263451576233,
0.22197626531124115,
0.5039939284324646,
0.2669394910335541,
-0.46675100922584534,
-0.6649105548858643,
0.12794916331768036,
-0.1440514177083969,
-0.5477821826934814,
0.4469807744026184,
0.30226147174835205,
-0.11618546396493912,
0.598567008972168,
0.6115926504135132,
0.04121784865856171,
-0.020624583587050438,
0.172817662358284,
1.01755690574646,
-0.4944123327732086,
-0.4354027211666107,
-0.9490897059440613,
0.5006628632545471,
0.01108457986265421,
-0.6625950336456299,
0.846483588218689,
0.5702298879623413,
0.7136496901512146,
0.22569553554058075,
0.578970730304718,
-0.47012707591056824,
0.03012952208518982,
-0.28631389141082764,
0.6686031818389893,
-0.47647184133529663,
0.08251837641000748,
-0.5284624695777893,
-1.1681196689605713,
-0.0714103952050209,
0.9933274984359741,
-0.527315080165863,
0.3711896538734436,
0.8235512971878052,
0.8277758955955505,
-0.08503428101539612,
0.10278579592704773,
0.05929576978087425,
0.27841827273368835,
0.5456282496452332,
0.9164367318153381,
0.9120092391967773,
-0.7145934700965881,
0.5902231335639954,
-0.5220758318901062,
-0.2744898796081543,
-0.12790943682193756,
-0.5048150420188904,
-0.8697028160095215,
-0.4553452432155609,
-0.5269855260848999,
-0.748485803604126,
-0.05147022381424904,
0.907309353351593,
0.7180696129798889,
-0.6185209155082703,
-0.1514701247215271,
-0.5555418133735657,
0.036732207983732224,
-0.26513510942459106,
-0.23711836338043213,
0.43624478578567505,
0.11730679124593735,
-0.9548260569572449,
-0.02627478912472725,
-0.15223047137260437,
0.11470142006874084,
-0.39000192284584045,
-0.2601798176765442,
-0.21020251512527466,
-0.1009942889213562,
0.06994973868131638,
0.25976812839508057,
-0.5078670978546143,
-0.2650754153728485,
0.04532187059521675,
0.04811760410666466,
-0.020157091319561005,
0.6953349113464355,
-0.615704357624054,
0.07967548072338104,
0.6233957409858704,
0.15344388782978058,
0.815847635269165,
-0.2534823715686798,
0.4115980565547943,
-0.2583691477775574,
0.3461560010910034,
0.26833683252334595,
0.6364083886146545,
0.34171155095100403,
-0.2480454444885254,
0.20924507081508636,
0.4550827145576477,
-0.750148355960846,
-0.869050145149231,
0.3573984205722809,
-0.7279985547065735,
-0.11582593619823456,
1.286047339439392,
-0.2703728675842285,
-0.38116610050201416,
0.09264035522937775,
-0.23461607098579407,
0.5180785655975342,
-0.28706422448158264,
0.6782191395759583,
0.649095356464386,
0.08087403327226639,
-0.19472120702266693,
-0.6033369302749634,
0.3606550097465515,
0.6462586522102356,
-0.8298831582069397,
0.4040517210960388,
0.6488028168678284,
0.6028237342834473,
0.2528528869152069,
0.5685761570930481,
-0.32777756452560425,
0.5938789248466492,
0.1100664809346199,
0.08442071825265884,
0.04652166739106178,
-0.4963919520378113,
-0.422287255525589,
-0.15000338852405548,
0.21473467350006104,
-0.018472913652658463
] |
timm/twins_svt_large.in1k
|
timm
| 2023-04-23T23:25:05Z | 8,573 | 0 |
timm
|
[
"timm",
"pytorch",
"safetensors",
"image-classification",
"dataset:imagenet-1k",
"arxiv:2104.13840",
"license:apache-2.0",
"region:us"
] |
image-classification
| 2023-04-23T23:23:58Z |
---
tags:
- image-classification
- timm
library_name: timm
license: apache-2.0
datasets:
- imagenet-1k
---
# Model card for twins_svt_large.in1k
A Twins-SVT image classification model. Trained on ImageNet-1k by paper authors.
## Model Details
- **Model Type:** Image classification / feature backbone
- **Model Stats:**
- Params (M): 99.3
- GMACs: 15.1
- Activations (M): 35.1
- Image size: 224 x 224
- **Papers:**
- Twins: Revisiting the Design of Spatial Attention in Vision Transformers: https://arxiv.org/abs/2104.13840
- **Dataset:** ImageNet-1k
- **Original:** https://github.com/Meituan-AutoML/Twins
## Model Usage
### Image Classification
```python
from urllib.request import urlopen
from PIL import Image
import timm
img = Image.open(urlopen(
'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/beignets-task-guide.png'
))
model = timm.create_model('twins_svt_large.in1k', pretrained=True)
model = model.eval()
# get model specific transforms (normalization, resize)
data_config = timm.data.resolve_model_data_config(model)
transforms = timm.data.create_transform(**data_config, is_training=False)
output = model(transforms(img).unsqueeze(0)) # unsqueeze single image into batch of 1
top5_probabilities, top5_class_indices = torch.topk(output.softmax(dim=1) * 100, k=5)
```
### Image Embeddings
```python
from urllib.request import urlopen
from PIL import Image
import timm
img = Image.open(urlopen(
'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/beignets-task-guide.png'
))
model = timm.create_model(
'twins_svt_large.in1k',
pretrained=True,
num_classes=0, # remove classifier nn.Linear
)
model = model.eval()
# get model specific transforms (normalization, resize)
data_config = timm.data.resolve_model_data_config(model)
transforms = timm.data.create_transform(**data_config, is_training=False)
output = model(transforms(img).unsqueeze(0)) # output is (batch_size, num_features) shaped tensor
# or equivalently (without needing to set num_classes=0)
output = model.forward_features(transforms(img).unsqueeze(0))
# output is unpooled, a (1, 49, 1024) shaped tensor
output = model.forward_head(output, pre_logits=True)
# output is a (1, num_features) shaped tensor
```
## Model Comparison
Explore the dataset and runtime metrics of this model in timm [model results](https://github.com/huggingface/pytorch-image-models/tree/main/results).
## Citation
```bibtex
@inproceedings{chu2021Twins,
title={Twins: Revisiting the Design of Spatial Attention in Vision Transformers},
author={Xiangxiang Chu and Zhi Tian and Yuqing Wang and Bo Zhang and Haibing Ren and Xiaolin Wei and Huaxia Xia and Chunhua Shen},
booktitle={NeurIPS 2021},
url={https://openreview.net/forum?id=5kTlVBkzSRx},
year={2021}
}
```
|
[
-0.5333405137062073,
-0.40161147713661194,
0.061831485480070114,
0.34002795815467834,
-0.16225582361221313,
-0.3904569447040558,
-0.09830509126186371,
-0.39894723892211914,
0.2919827103614807,
0.4491162598133087,
-0.6363615393638611,
-0.5371579527854919,
-0.6749837398529053,
-0.05167359113693237,
-0.11607659608125687,
0.9501297473907471,
-0.15959493815898895,
0.11717133224010468,
-0.3241989314556122,
-0.4448273479938507,
-0.3276122212409973,
-0.39718368649482727,
-0.820503830909729,
-0.3033621311187744,
0.39652857184410095,
0.2549884617328644,
0.56077641248703,
0.5043613314628601,
0.7942585349082947,
0.48833298683166504,
-0.07594842463731766,
0.026854604482650757,
-0.246752068400383,
-0.31044575572013855,
0.31241703033447266,
-0.5888592600822449,
-0.4196011424064636,
0.2853018045425415,
0.8161482810974121,
0.5472014546394348,
0.162683367729187,
0.31589189171791077,
0.29214590787887573,
0.7760364413261414,
-0.11567852646112442,
0.2771533727645874,
-0.3420793414115906,
0.3891332745552063,
0.029969805851578712,
0.03569979965686798,
-0.21283818781375885,
-0.508998692035675,
0.40234631299972534,
-0.5132638812065125,
0.6041463017463684,
0.004085405729711056,
1.1765843629837036,
0.5213267207145691,
-0.13407664000988007,
0.11645285040140152,
-0.3755222260951996,
0.8528668880462646,
-0.5678931474685669,
0.2998470366001129,
0.18879511952400208,
0.15030726790428162,
-0.01885506696999073,
-0.8109410405158997,
-0.511094868183136,
-0.1785372942686081,
-0.3145122826099396,
0.025359438732266426,
-0.2401105761528015,
-0.05116110295057297,
0.4900740683078766,
0.1228841170668602,
-0.5629121661186218,
-0.05858651548624039,
-0.5397068858146667,
-0.00826269295066595,
0.5617648959159851,
0.18149800598621368,
0.2738631069660187,
-0.21250441670417786,
-0.7025673389434814,
-0.35917094349861145,
-0.16581110656261444,
0.16269779205322266,
0.321777880191803,
0.06791714578866959,
-0.666526734828949,
0.44439396262168884,
0.19348299503326416,
0.3683193624019623,
0.42863383889198303,
0.026005694642663002,
0.720773458480835,
-0.20505499839782715,
-0.39430129528045654,
-0.33114513754844666,
0.9697423577308655,
0.4447670876979828,
0.31227701902389526,
-0.05131605267524719,
0.03876197338104248,
-0.3345670998096466,
0.16257083415985107,
-0.8513541221618652,
-0.33172309398651123,
0.29229503870010376,
-0.5038563013076782,
-0.31030386686325073,
0.23833227157592773,
-0.7575293779373169,
0.003096283646300435,
-0.3100731074810028,
0.6959695219993591,
-0.4074452221393585,
-0.35957837104797363,
0.18036288022994995,
-0.2499210685491562,
0.4792732000350952,
0.0026082645636051893,
-0.7204224467277527,
0.1394629329442978,
0.3562983274459839,
0.958138108253479,
-0.1180415078997612,
-0.775713324546814,
-0.018135419115424156,
-0.15142102539539337,
-0.1886029988527298,
0.6037761569023132,
0.005301847122609615,
-0.017666451632976532,
-0.29700130224227905,
0.3067939281463623,
-0.3646358847618103,
-0.616446852684021,
0.32652780413627625,
-0.18635568022727966,
0.29583653807640076,
-0.2351977676153183,
-0.03438793867826462,
-0.3332424759864807,
0.25404709577560425,
-0.5708335638046265,
1.235473394393921,
0.24883966147899628,
-1.0010194778442383,
0.4810217022895813,
-0.7179313898086548,
-0.2119264304637909,
-0.09793543815612793,
-0.0237649604678154,
-1.094045639038086,
-0.03015979193150997,
0.29824304580688477,
0.6373307108879089,
0.0445733368396759,
0.08960374444723129,
-0.5771303772926331,
-0.20772114396095276,
0.23376493155956268,
0.0019535492174327374,
0.8985170722007751,
-0.18006502091884613,
-0.46484750509262085,
0.2926962375640869,
-0.46089380979537964,
0.1886773705482483,
0.6117619872093201,
-0.1561550498008728,
-0.10351286828517914,
-0.474870502948761,
0.14234879612922668,
0.32206007838249207,
0.22407646477222443,
-0.46027249097824097,
0.28103503584861755,
-0.30521824955940247,
0.4514169991016388,
0.6260312795639038,
-0.16739553213119507,
0.42947086691856384,
-0.3768545091152191,
0.22488178312778473,
0.3829353153705597,
0.4927312135696411,
0.18007847666740417,
-0.5783340334892273,
-0.9953462481498718,
-0.3138464391231537,
0.157247394323349,
0.38839855790138245,
-0.5995607972145081,
0.6900736093521118,
-0.2440139502286911,
-0.6079275012016296,
-0.5222221612930298,
-0.009241467341780663,
0.47551199793815613,
0.3156488239765167,
0.2992032468318939,
-0.4276704788208008,
-0.6345052123069763,
-1.0631335973739624,
-0.14318904280662537,
0.11824023723602295,
0.13477829098701477,
0.5635237097740173,
0.8249664306640625,
-0.2136230170726776,
0.7299709320068359,
-0.528235912322998,
-0.2791289687156677,
-0.20169417560100555,
0.05571523308753967,
0.41792982816696167,
0.7338857650756836,
0.9314911961555481,
-0.7545952200889587,
-0.5387916564941406,
-0.32920557260513306,
-0.9023109078407288,
0.15208640694618225,
0.060340553522109985,
-0.3667314648628235,
0.42858681082725525,
0.10434947907924652,
-0.709006130695343,
0.6988539695739746,
0.15943779051303864,
-0.469655841588974,
0.5211008787155151,
-0.2794579267501831,
0.15353894233703613,
-1.060495138168335,
0.16540364921092987,
0.2482389509677887,
0.06788671761751175,
-0.49447664618492126,
-0.014586955308914185,
0.04826466739177704,
-0.03820798173546791,
-0.48179197311401367,
0.570245087146759,
-0.5667226910591125,
-0.33755993843078613,
-0.10925152152776718,
-0.2787918150424957,
0.038734786212444305,
1.0226500034332275,
0.10131552815437317,
0.23544016480445862,
0.7122250199317932,
-0.45359739661216736,
0.5273174047470093,
0.5250707268714905,
-0.1725115031003952,
0.5047956109046936,
-0.727329432964325,
0.269855260848999,
-0.1472584456205368,
0.23690734803676605,
-1.211488962173462,
-0.16169214248657227,
0.36331552267074585,
-0.6897746920585632,
0.5431078672409058,
-0.4717769920825958,
-0.5453447103500366,
-0.7876386642456055,
-0.47549116611480713,
0.5434473752975464,
0.5356948375701904,
-0.9448293447494507,
0.4340021014213562,
0.22066405415534973,
0.09497653692960739,
-0.5965774059295654,
-0.9885163903236389,
-0.2874628007411957,
-0.32338497042655945,
-0.8126645684242249,
0.1927981674671173,
-0.05540209263563156,
0.17204701900482178,
0.2552839517593384,
0.026760324835777283,
-0.1092027872800827,
-0.2989348769187927,
0.48307639360427856,
0.4298678934574127,
-0.3014220595359802,
0.00587080093100667,
-0.22425389289855957,
-0.36302095651626587,
0.20672637224197388,
-0.3547435402870178,
0.5646176338195801,
-0.29946038126945496,
-0.23782218992710114,
-0.8125680088996887,
0.16250696778297424,
0.7140855193138123,
-0.04040159657597542,
0.8283581137657166,
1.1018588542938232,
-0.5627355575561523,
0.09463492035865784,
-0.6563577651977539,
-0.2806951105594635,
-0.4991944432258606,
0.45557382702827454,
-0.28351709246635437,
-0.38184958696365356,
0.6592114567756653,
0.3321123719215393,
0.1317497342824936,
0.6770612001419067,
0.399086594581604,
-0.08527819812297821,
0.9854063987731934,
0.6474714279174805,
0.07087746262550354,
0.6961207389831543,
-0.9694905281066895,
-0.06535142660140991,
-0.9395287036895752,
-0.6140650510787964,
-0.34592682123184204,
-0.76554274559021,
-0.40669479966163635,
-0.41237303614616394,
0.49703294038772583,
-0.11742078512907028,
-0.3673993945121765,
0.44341251254081726,
-0.9507505297660828,
0.34813550114631653,
0.8419809341430664,
0.38745662569999695,
-0.26561784744262695,
0.4609040915966034,
-0.3146885931491852,
-0.2760891616344452,
-0.7200655937194824,
-0.08209273964166641,
1.0305732488632202,
0.45585939288139343,
0.6041790843009949,
-0.1734527349472046,
0.5160764455795288,
-0.3499842584133148,
0.22677984833717346,
-0.5484346151351929,
0.5909413695335388,
-0.17888258397579193,
-0.4716302156448364,
-0.1306665539741516,
-0.38732850551605225,
-1.0157004594802856,
0.2979826331138611,
-0.26681020855903625,
-0.5726932883262634,
0.19035500288009644,
0.07267411798238754,
-0.43429097533226013,
0.7366530895233154,
-0.9728237986564636,
0.8783842325210571,
-0.32555291056632996,
-0.5270060300827026,
0.01968306489288807,
-0.5764222741127014,
0.21584433317184448,
0.17188040912151337,
-0.4225677251815796,
0.08656072616577148,
0.08309177309274673,
1.0531551837921143,
-0.40549999475479126,
1.0053967237472534,
-0.3990528881549835,
0.4001016616821289,
0.33269375562667847,
-0.3439664840698242,
0.25452521443367004,
-0.07318136841058731,
0.1871795654296875,
0.5496507287025452,
0.03044894151389599,
-0.49744775891304016,
-0.515231728553772,
0.8312703371047974,
-1.1060236692428589,
-0.38744768500328064,
-0.425815612077713,
-0.6496822834014893,
0.14906176924705505,
0.05202779173851013,
0.5573152899742126,
0.5521364212036133,
0.2989984452724457,
0.25721442699432373,
0.5568637847900391,
-0.37389451265335083,
0.49669909477233887,
0.1324205845594406,
-0.12922939658164978,
-0.6092242002487183,
0.6608302593231201,
0.20141994953155518,
0.03351983428001404,
0.11418041586875916,
0.14537498354911804,
-0.4253665804862976,
-0.40642738342285156,
-0.25358131527900696,
0.6029999256134033,
-0.42374709248542786,
-0.21236933767795563,
-0.7903536558151245,
-0.5237099528312683,
-0.5750060081481934,
-0.1725950539112091,
-0.3647223114967346,
-0.2898831367492676,
-0.33650293946266174,
0.21189041435718536,
0.47689497470855713,
0.8676040172576904,
-0.14921215176582336,
0.29624274373054504,
-0.6176751852035522,
0.2830978333950043,
0.3055659234523773,
0.6512150168418884,
-0.02131093665957451,
-0.7947598695755005,
-0.21391037106513977,
-0.02661585994064808,
-0.46451252698898315,
-0.7594195604324341,
0.5881058573722839,
-0.18630893528461456,
0.5382702350616455,
0.2693551778793335,
-0.4186412990093231,
0.8064059615135193,
-0.07827883213758469,
0.46425026655197144,
0.2904602289199829,
-0.5044670701026917,
0.6262622475624084,
-0.14596742391586304,
0.2790627181529999,
0.03630616143345833,
0.30514976382255554,
-0.2614121735095978,
0.08934979885816574,
-1.072247862815857,
-0.709223747253418,
1.1333324909210205,
0.20234540104866028,
-0.08112183958292007,
0.3816225230693817,
0.7872374653816223,
-0.005265506915748119,
0.028148334473371506,
-0.8742257952690125,
-0.4734288156032562,
-0.16154149174690247,
-0.20958910882472992,
-0.11604302376508713,
-0.21550503373146057,
0.05628052353858948,
-0.8811071515083313,
0.6374008059501648,
0.05067683756351471,
0.8669079542160034,
0.37586599588394165,
0.07071568071842194,
-0.26812341809272766,
-0.48556220531463623,
0.4305627644062042,
0.12258390337228775,
-0.14747434854507446,
-0.10192003101110458,
0.36281728744506836,
-0.6267916560173035,
-0.13154658675193787,
0.10480646044015884,
-0.05628734081983566,
0.0497453510761261,
0.37859460711479187,
0.8746438026428223,
0.26330918073654175,
0.11241386830806732,
0.518261194229126,
-0.1902937889099121,
-0.5283874869346619,
-0.4549938440322876,
-0.004732989706099033,
-0.006537882145494223,
0.5264303088188171,
0.2483023852109909,
0.4258190393447876,
-0.20755599439144135,
-0.11085999011993408,
0.13233856856822968,
0.6031557321548462,
-0.3024294674396515,
-0.40420788526535034,
0.6779029369354248,
0.04146987572312355,
-0.224250927567482,
0.8788613677024841,
-0.024492187425494194,
-0.6918571591377258,
1.2173048257827759,
0.3879626393318176,
1.1364006996154785,
-0.0951005071401596,
-0.12491285055875778,
1.019253134727478,
0.3402770161628723,
0.08002191036939621,
0.2557182013988495,
0.06934088468551636,
-0.7693000435829163,
0.10760364681482315,
-0.5025008916854858,
0.019673623144626617,
0.44212427735328674,
-0.5284239053726196,
0.28233495354652405,
-0.6344147324562073,
-0.33390817046165466,
0.07214813679456711,
0.44484227895736694,
-0.9432837963104248,
-0.018022697418928146,
0.04883277416229248,
0.6845608949661255,
-0.8592504858970642,
0.658840537071228,
0.9940764904022217,
-0.4563218057155609,
-0.7582956552505493,
-0.0993923544883728,
-0.07082974165678024,
-1.000237226486206,
0.5697675943374634,
0.5154386162757874,
0.14291203022003174,
0.09244795888662338,
-0.9395747780799866,
-0.8559463024139404,
1.2876414060592651,
0.27389732003211975,
-0.19853916764259338,
-0.013583009131252766,
0.1424577385187149,
0.39451268315315247,
-0.3335650563240051,
0.31552621722221375,
0.33640649914741516,
0.5068915486335754,
0.2893012762069702,
-0.6447206735610962,
-0.02495553344488144,
-0.35450413823127747,
0.028964269906282425,
0.36556118726730347,
-0.9092855453491211,
0.8316909670829773,
-0.7921161651611328,
-0.24217569828033447,
0.1399347484111786,
0.5902032852172852,
0.20189526677131653,
0.2655099928379059,
0.582324206829071,
0.9306694865226746,
0.3219127953052521,
-0.36461639404296875,
0.8017067909240723,
-0.07738079875707626,
0.6491596102714539,
0.6687300801277161,
0.2849405109882355,
0.5856960415840149,
0.4684816598892212,
-0.30140411853790283,
0.24921366572380066,
0.7747786045074463,
-0.5196390151977539,
0.3023622930049896,
0.0898105800151825,
0.17591990530490875,
-0.17868554592132568,
0.22523002326488495,
-0.5317232012748718,
0.29839369654655457,
0.21932363510131836,
-0.4586009085178375,
-0.08772893249988556,
0.057545650750398636,
-0.19423924386501312,
-0.33873704075813293,
-0.12370024621486664,
0.5982682704925537,
-0.05625705420970917,
-0.6902728080749512,
0.6045239567756653,
-0.19354784488677979,
0.9058894515037537,
-0.2967950701713562,
0.039264388382434845,
-0.26765933632850647,
0.4797585904598236,
-0.3299621045589447,
-0.9296236634254456,
0.3734825849533081,
-0.29714885354042053,
-0.23582863807678223,
-0.12755745649337769,
0.5769513249397278,
-0.5008755922317505,
-0.5044520497322083,
0.31685870885849,
0.20376279950141907,
0.4120607078075409,
-0.02311817929148674,
-1.3123424053192139,
0.0038998243398964405,
0.08198926597833633,
-0.4021254777908325,
0.1299346685409546,
0.32773274183273315,
0.20739232003688812,
0.7607002258300781,
0.6595820188522339,
-0.23749205470085144,
0.30339470505714417,
-0.11409498006105423,
0.6694827079772949,
-0.6570773124694824,
-0.4688820242881775,
-0.7374067306518555,
0.40424981713294983,
-0.007007146254181862,
-0.5476230382919312,
0.5337892770767212,
0.6769973039627075,
0.8516682386398315,
-0.23391595482826233,
0.4340113401412964,
-0.043489985167980194,
0.15134911239147186,
-0.2692180275917053,
0.7481709122657776,
-0.6623121500015259,
-0.18136318027973175,
-0.19193851947784424,
-0.8500546216964722,
-0.3964509665966034,
0.6291435360908508,
-0.41117334365844727,
0.568474531173706,
0.7650656700134277,
0.900664210319519,
-0.23822249472141266,
-0.21934717893600464,
0.20681925117969513,
0.3924405872821808,
-0.07020705938339233,
0.849509060382843,
0.6526442170143127,
-0.7784726023674011,
0.42181771993637085,
-0.6808115243911743,
-0.1593685746192932,
-0.25781330466270447,
-0.4605170786380768,
-1.1274362802505493,
-0.9147897958755493,
-0.6431975960731506,
-0.44268932938575745,
-0.27545732259750366,
0.6715034246444702,
0.9995366334915161,
-0.560644268989563,
0.04473653808236122,
0.15123216807842255,
0.10186059772968292,
-0.22532276809215546,
-0.23434120416641235,
0.6373698115348816,
-0.1355666220188141,
-0.9382517337799072,
-0.48638418316841125,
0.14571884274482727,
0.5203930735588074,
-0.1624452769756317,
-0.10804660618305206,
-0.1834763139486313,
-0.28282132744789124,
0.21322298049926758,
0.2102503776550293,
-0.6877118349075317,
-0.23903466761112213,
-0.2352355569601059,
-0.37341800332069397,
0.39204293489456177,
0.4685612618923187,
-0.6553682088851929,
0.12803657352924347,
0.5633235573768616,
0.1939651519060135,
0.6772019863128662,
-0.3086608946323395,
0.0061718132346868515,
-0.7926350831985474,
0.39911794662475586,
-0.14140398800373077,
0.6024829149246216,
0.3350261449813843,
-0.4792722463607788,
0.6180480122566223,
0.5172712206840515,
-0.5358009934425354,
-0.6817119717597961,
-0.1076354905962944,
-1.1572571992874146,
0.053290899842977524,
1.0089396238327026,
-0.08284692466259003,
-0.5322773456573486,
0.20157982409000397,
-0.18561488389968872,
0.5130866169929504,
0.025643285363912582,
0.5918086767196655,
0.326644629240036,
-0.0052648079581558704,
-0.32543110847473145,
-0.4233550429344177,
0.34529632329940796,
0.5011345148086548,
-0.6452893018722534,
-0.3014830946922302,
0.011569100432097912,
0.711868166923523,
0.277084082365036,
0.3510337471961975,
-0.2910235524177551,
0.2388545274734497,
0.03983603045344353,
0.566551923751831,
-0.2787160873413086,
-0.3014993667602539,
-0.5636854767799377,
0.02248571254312992,
-0.35907870531082153,
-0.6399025321006775
] |
deepset/roberta-large-squad2
|
deepset
| 2023-09-27T12:27:59Z | 8,559 | 19 |
transformers
|
[
"transformers",
"pytorch",
"jax",
"safetensors",
"roberta",
"question-answering",
"en",
"dataset:squad_v2",
"base_model:roberta-large",
"license:cc-by-4.0",
"model-index",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] |
question-answering
| 2022-03-02T23:29:05Z |
---
language: en
license: cc-by-4.0
datasets:
- squad_v2
base_model: roberta-large
model-index:
- name: deepset/roberta-large-squad2
results:
- task:
type: question-answering
name: Question Answering
dataset:
name: squad_v2
type: squad_v2
config: squad_v2
split: validation
metrics:
- type: exact_match
value: 85.168
name: Exact Match
- type: f1
value: 88.349
name: F1
- task:
type: question-answering
name: Question Answering
dataset:
name: squad
type: squad
config: plain_text
split: validation
metrics:
- type: exact_match
value: 87.162
name: Exact Match
- type: f1
value: 93.603
name: F1
- task:
type: question-answering
name: Question Answering
dataset:
name: adversarial_qa
type: adversarial_qa
config: adversarialQA
split: validation
metrics:
- type: exact_match
value: 35.900
name: Exact Match
- type: f1
value: 48.923
name: F1
- task:
type: question-answering
name: Question Answering
dataset:
name: squad_adversarial
type: squad_adversarial
config: AddOneSent
split: validation
metrics:
- type: exact_match
value: 81.142
name: Exact Match
- type: f1
value: 87.099
name: F1
- task:
type: question-answering
name: Question Answering
dataset:
name: squadshifts amazon
type: squadshifts
config: amazon
split: test
metrics:
- type: exact_match
value: 72.453
name: Exact Match
- type: f1
value: 86.325
name: F1
- task:
type: question-answering
name: Question Answering
dataset:
name: squadshifts new_wiki
type: squadshifts
config: new_wiki
split: test
metrics:
- type: exact_match
value: 82.338
name: Exact Match
- type: f1
value: 91.974
name: F1
- task:
type: question-answering
name: Question Answering
dataset:
name: squadshifts nyt
type: squadshifts
config: nyt
split: test
metrics:
- type: exact_match
value: 84.352
name: Exact Match
- type: f1
value: 92.645
name: F1
- task:
type: question-answering
name: Question Answering
dataset:
name: squadshifts reddit
type: squadshifts
config: reddit
split: test
metrics:
- type: exact_match
value: 74.722
name: Exact Match
- type: f1
value: 86.860
name: F1
---
# roberta-large for QA
This is the [roberta-large](https://huggingface.co/roberta-large) model, fine-tuned using the [SQuAD2.0](https://huggingface.co/datasets/squad_v2) dataset. It's been trained on question-answer pairs, including unanswerable questions, for the task of Question Answering.
## Overview
**Language model:** roberta-large
**Language:** English
**Downstream-task:** Extractive QA
**Training data:** SQuAD 2.0
**Eval data:** SQuAD 2.0
**Code:** See [an example QA pipeline on Haystack](https://haystack.deepset.ai/tutorials/first-qa-system)
**Infrastructure**: 4x Tesla v100
## Hyperparameters
```
base_LM_model = "roberta-large"
```
## Using a distilled model instead
Please note that we have also released a distilled version of this model called [deepset/roberta-base-squad2-distilled](https://huggingface.co/deepset/roberta-base-squad2-distilled). The distilled model has a comparable prediction quality and runs at twice the speed of the large model.
## Usage
### In Haystack
Haystack is an NLP framework by deepset. You can use this model in a Haystack pipeline to do question answering at scale (over many documents). To load the model in [Haystack](https://github.com/deepset-ai/haystack/):
```python
reader = FARMReader(model_name_or_path="deepset/roberta-large-squad2")
# or
reader = TransformersReader(model_name_or_path="deepset/roberta-large-squad2",tokenizer="deepset/roberta-large-squad2")
```
For a complete example of ``roberta-large-squad2`` being used for Question Answering, check out the [Tutorials in Haystack Documentation](https://haystack.deepset.ai/tutorials/first-qa-system)
### In Transformers
```python
from transformers import AutoModelForQuestionAnswering, AutoTokenizer, pipeline
model_name = "deepset/roberta-large-squad2"
# a) Get predictions
nlp = pipeline('question-answering', model=model_name, tokenizer=model_name)
QA_input = {
'question': 'Why is model conversion important?',
'context': 'The option to convert models between FARM and transformers gives freedom to the user and let people easily switch between frameworks.'
}
res = nlp(QA_input)
# b) Load model & tokenizer
model = AutoModelForQuestionAnswering.from_pretrained(model_name)
tokenizer = AutoTokenizer.from_pretrained(model_name)
```
## Authors
**Branden Chan:** [email protected]
**Timo Möller:** [email protected]
**Malte Pietsch:** [email protected]
**Tanay Soni:** [email protected]
## About us
<div class="grid lg:grid-cols-2 gap-x-4 gap-y-3">
<div class="w-full h-40 object-cover mb-2 rounded-lg flex items-center justify-center">
<img alt="" src="https://raw.githubusercontent.com/deepset-ai/.github/main/deepset-logo-colored.png" class="w-40"/>
</div>
<div class="w-full h-40 object-cover mb-2 rounded-lg flex items-center justify-center">
<img alt="" src="https://raw.githubusercontent.com/deepset-ai/.github/main/haystack-logo-colored.png" class="w-40"/>
</div>
</div>
[deepset](http://deepset.ai/) is the company behind the open-source NLP framework [Haystack](https://haystack.deepset.ai/) which is designed to help you build production ready NLP systems that use: Question answering, summarization, ranking etc.
Some of our other work:
- [Distilled roberta-base-squad2 (aka "tinyroberta-squad2")]([https://huggingface.co/deepset/tinyroberta-squad2)
- [German BERT (aka "bert-base-german-cased")](https://deepset.ai/german-bert)
- [GermanQuAD and GermanDPR datasets and models (aka "gelectra-base-germanquad", "gbert-base-germandpr")](https://deepset.ai/germanquad)
## Get in touch and join the Haystack community
<p>For more info on Haystack, visit our <strong><a href="https://github.com/deepset-ai/haystack">GitHub</a></strong> repo and <strong><a href="https://docs.haystack.deepset.ai">Documentation</a></strong>.
We also have a <strong><a class="h-7" href="https://haystack.deepset.ai/community">Discord community open to everyone!</a></strong></p>
[Twitter](https://twitter.com/deepset_ai) | [LinkedIn](https://www.linkedin.com/company/deepset-ai/) | [Discord](https://haystack.deepset.ai/community) | [GitHub Discussions](https://github.com/deepset-ai/haystack/discussions) | [Website](https://deepset.ai)
By the way: [we're hiring!](http://www.deepset.ai/jobs)
|
[
-0.3656008243560791,
-0.6957000494003296,
0.47768619656562805,
0.07103856652975082,
-0.002103351755067706,
0.09031100571155548,
-0.1032233014702797,
-0.4161158800125122,
0.33299311995506287,
0.32587993144989014,
-0.7999416589736938,
-0.6030654907226562,
-0.25264376401901245,
0.1260477751493454,
-0.4484136998653412,
0.9900144338607788,
0.18518701195716858,
0.024069081991910934,
-0.2191290706396103,
-0.03028363734483719,
-0.453669011592865,
-0.5000399351119995,
-0.7359879612922668,
-0.18119540810585022,
0.33155712485313416,
0.3274153470993042,
0.6805993914604187,
0.2748775780200958,
0.5123909115791321,
0.3472697138786316,
-0.10841123014688492,
0.12574686110019684,
-0.4135177731513977,
0.2391153872013092,
-0.11298520117998123,
-0.3555220067501068,
-0.38278549909591675,
-0.01400475762784481,
0.49862033128738403,
0.4410659074783325,
-0.1782417595386505,
0.5300042629241943,
-0.19672438502311707,
0.721507728099823,
-0.5119307041168213,
0.08233252912759781,
-0.6945633888244629,
-0.2436404973268509,
0.18631766736507416,
0.2711215913295746,
-0.15774473547935486,
-0.21388018131256104,
0.22938381135463715,
-0.6626085638999939,
0.2803228795528412,
-0.16773034632205963,
1.136483907699585,
0.3207037150859833,
-0.18434680998325348,
-0.21833771467208862,
-0.53789222240448,
0.8489896059036255,
-1.0430904626846313,
-0.0395037867128849,
0.5515385866165161,
0.4783240556716919,
0.1446642130613327,
-0.9065689444541931,
-0.7083762288093567,
-0.010290688835084438,
-0.23868057131767273,
0.1949380785226822,
-0.154054656624794,
-0.2674658000469208,
0.15654142200946808,
0.41791287064552307,
-0.7580001950263977,
0.12032467871904373,
-0.5602675676345825,
0.016048317775130272,
0.8388816118240356,
0.18698211014270782,
0.17394237220287323,
-0.2634638547897339,
-0.23151737451553345,
-0.27745872735977173,
-0.42324623465538025,
0.1393578052520752,
0.12830176949501038,
0.3251069188117981,
-0.16385315358638763,
0.5236714482307434,
-0.4377717673778534,
0.6017007827758789,
0.25470128655433655,
0.3803144097328186,
0.43024498224258423,
-0.6832164525985718,
-0.22361703217029572,
-0.2488829493522644,
0.9372993111610413,
0.37019261717796326,
0.062455520033836365,
-0.02599288336932659,
-0.25913429260253906,
-0.1916760802268982,
0.2260744422674179,
-0.8536947965621948,
-0.18319988250732422,
0.5950794219970703,
-0.3136160671710968,
-0.4347779452800751,
0.0447295643389225,
-0.7383521199226379,
-0.4016537368297577,
0.06920864433050156,
0.6165887713432312,
-0.3401879668235779,
-0.37502521276474,
0.3379454016685486,
-0.30653947591781616,
0.6372424960136414,
0.1675085872411728,
-0.801282525062561,
0.10746663063764572,
0.6264818906784058,
0.709343433380127,
0.2450401782989502,
-0.2917695939540863,
-0.44989585876464844,
-0.1368297040462494,
-0.17805776000022888,
0.6019712686538696,
-0.31520333886146545,
-0.0372774712741375,
0.007479087449610233,
0.22146034240722656,
-0.036755260080099106,
-0.4158679246902466,
0.20001597702503204,
-0.6883054971694946,
0.6326475143432617,
-0.11481676250696182,
-0.5284451246261597,
-0.2683831751346588,
0.3998933434486389,
-0.739034116268158,
1.027821660041809,
0.3361990451812744,
-0.5451411008834839,
0.09838631749153137,
-0.7818965911865234,
-0.2954029440879822,
0.07263195514678955,
0.08649449795484543,
-0.4137015640735626,
-0.25499486923217773,
0.36861374974250793,
0.4884870648384094,
-0.32915806770324707,
0.19996219873428345,
-0.27205145359039307,
-0.41600367426872253,
0.2873840034008026,
0.0008622958557680249,
1.277624249458313,
0.08755657076835632,
-0.38320648670196533,
0.013421997427940369,
-0.676444411277771,
0.2942630648612976,
0.22900390625,
-0.21991212666034698,
-0.019506892189383507,
-0.12116064876317978,
0.12730824947357178,
0.27210065722465515,
0.6281609535217285,
-0.4317895472049713,
0.15128615498542786,
-0.5778554677963257,
0.7301504015922546,
0.5914852619171143,
0.04479418694972992,
0.35942256450653076,
-0.3829779624938965,
0.6517176032066345,
-0.09538035839796066,
0.12252495437860489,
0.03870853781700134,
-0.33177685737609863,
-0.9249270558357239,
-0.09724932163953781,
0.512717068195343,
0.7302805781364441,
-0.7888462543487549,
0.7977637052536011,
-0.14677931368350983,
-0.5978705286979675,
-0.7933304309844971,
0.07369157671928406,
0.34204116463661194,
0.2916612923145294,
0.5044928193092346,
0.03766156733036041,
-0.7279534339904785,
-0.993293046951294,
-0.03826562687754631,
-0.19878774881362915,
-0.22932201623916626,
0.2425815314054489,
0.7145357131958008,
-0.311323881149292,
0.8125802278518677,
-0.6690722703933716,
-0.3284606635570526,
-0.2108599990606308,
-0.138052299618721,
0.5726842880249023,
0.651681661605835,
0.5965162515640259,
-0.8544260263442993,
-0.5182569026947021,
-0.2499983310699463,
-0.7458907961845398,
0.353074312210083,
-0.1134878545999527,
-0.25138798356056213,
0.10768163204193115,
0.4592723548412323,
-0.772648274898529,
0.24239923059940338,
0.5316933989524841,
-0.5204903483390808,
0.412911593914032,
0.018560312688350677,
0.08411460369825363,
-1.5491728782653809,
0.3143238425254822,
-0.01312705222517252,
-0.25187283754348755,
-0.42623066902160645,
0.34065550565719604,
-0.23365618288516998,
-0.17292416095733643,
-0.44137144088745117,
0.612889289855957,
-0.3552343547344208,
0.09588409960269928,
0.20778006315231323,
0.14490258693695068,
0.2543984651565552,
0.5058042407035828,
-0.20269560813903809,
1.0702829360961914,
0.6522611975669861,
-0.4731123447418213,
0.6863300800323486,
0.6419011950492859,
-0.45772653818130493,
0.2908417880535126,
-1.0358390808105469,
0.2096262127161026,
0.046546973288059235,
0.2137461155653,
-0.9701908230781555,
-0.2604462504386902,
0.09634938836097717,
-0.7598952651023865,
0.06619442254304886,
-0.10184884071350098,
-0.7194345593452454,
-0.4935348927974701,
-0.4650644063949585,
0.24386967718601227,
0.823334813117981,
-0.3515016734600067,
0.3318186104297638,
0.41659441590309143,
-0.041918449103832245,
-0.5784939527511597,
-0.8705211281776428,
0.07629115879535675,
-0.15717969834804535,
-0.6552087664604187,
0.2125234752893448,
-0.16790452599525452,
-0.13495691120624542,
0.11488132178783417,
0.09824754297733307,
-0.5711362361907959,
0.2537720203399658,
0.10808581113815308,
0.3813227415084839,
-0.41264790296554565,
0.35500600934028625,
-0.2064729481935501,
-0.13488079607486725,
0.010524522513151169,
-0.31033411622047424,
0.5823424458503723,
-0.6408335566520691,
0.06273729354143143,
-0.603203535079956,
0.40783804655075073,
0.5353124737739563,
-0.44250035285949707,
0.856757402420044,
0.6603488922119141,
-0.37306463718414307,
-0.021371910348534584,
-0.5558857321739197,
-0.3238448202610016,
-0.4940164387226105,
0.46442922949790955,
-0.1860976368188858,
-0.8914080262184143,
0.5949200391769409,
0.28912463784217834,
0.2114054262638092,
0.9680865406990051,
0.4429090619087219,
-0.49154579639434814,
0.9774154424667358,
0.5404935479164124,
-0.0455566868185997,
0.36967697739601135,
-0.7748279571533203,
0.051782600581645966,
-0.9463747143745422,
-0.0865401029586792,
-0.6352646350860596,
-0.4591611921787262,
-0.6378598213195801,
-0.3944520950317383,
0.23918083310127258,
0.10203457623720169,
-0.493874192237854,
0.5187721252441406,
-0.7569217681884766,
0.5217047333717346,
0.744290828704834,
0.1344606727361679,
0.12137066572904587,
-0.11848292499780655,
0.26060912013053894,
0.2845541834831238,
-0.7262232899665833,
-0.4582114815711975,
1.1221548318862915,
0.1272990107536316,
0.45579591393470764,
0.14576779305934906,
0.8311408162117004,
0.16744525730609894,
-0.2402643859386444,
-0.6574095487594604,
0.5577160716056824,
-0.22625033557415009,
-1.086976408958435,
-0.6688252687454224,
-0.3824857473373413,
-1.0695246458053589,
-0.03492102399468422,
-0.2876143157482147,
-0.5808542370796204,
0.2559766173362732,
-0.020653387531638145,
-0.6442105174064636,
0.1940116137266159,
-0.6809958815574646,
0.960437536239624,
-0.0986625924706459,
-0.0868634283542633,
-0.21663051843643188,
-0.8033415079116821,
0.2268235981464386,
0.049170102924108505,
-0.007941273041069508,
-0.14133073389530182,
0.009775985963642597,
0.7394798994064331,
-0.5463948845863342,
0.9037417769432068,
-0.10235501080751419,
0.028506074100732803,
0.44192177057266235,
-0.029389360919594765,
0.40863269567489624,
0.2806307077407837,
-0.3960668742656708,
0.20167846977710724,
0.4424136281013489,
-0.5733607411384583,
-0.5271418690681458,
0.6660907864570618,
-0.8981456756591797,
-0.46645045280456543,
-0.4572662115097046,
-0.41036462783813477,
-0.10410076379776001,
0.3821139931678772,
0.2071370631456375,
0.3589608669281006,
-0.15759310126304626,
0.5840610861778259,
0.6204485297203064,
-0.19145943224430084,
0.36925289034843445,
0.44298481941223145,
-0.18159466981887817,
-0.3351733982563019,
0.7848901152610779,
-0.08620304614305496,
0.18266691267490387,
0.4496101438999176,
0.11247921735048294,
-0.38956010341644287,
-0.4408489465713501,
-0.4954628646373749,
0.24105559289455414,
-0.5653387904167175,
-0.3472925126552582,
-0.5143060088157654,
-0.5401332974433899,
-0.6699265837669373,
-0.028161143884062767,
-0.33387210965156555,
-0.6324015855789185,
-0.5032914876937866,
-0.049028538167476654,
0.6871492862701416,
0.5811188220977783,
0.04906955733895302,
0.1891842931509018,
-0.6445133090019226,
0.3843095004558563,
0.5286603569984436,
0.3475739359855652,
-0.15340730547904968,
-0.5022545456886292,
-0.23114439845085144,
0.4423165023326874,
-0.029751278460025787,
-0.6172452569007874,
0.18680164217948914,
0.22266261279582977,
0.3033449649810791,
-0.11436981707811356,
0.1903792768716812,
0.5367687344551086,
-0.31767770648002625,
0.9087006449699402,
0.12519493699073792,
-0.8026694655418396,
0.6387107968330383,
-0.41613152623176575,
0.47704508900642395,
1.087519645690918,
0.2714511752128601,
-0.6240285038948059,
-0.2981812059879303,
-0.716055691242218,
-0.9534387588500977,
0.5500967502593994,
0.31228476762771606,
0.27740219235420227,
-0.005607997998595238,
0.3573812246322632,
-0.04765443131327629,
0.30711036920547485,
-0.6501914858818054,
-0.19035924971103668,
-0.18152199685573578,
-0.29887545108795166,
-0.12179478257894516,
-0.14730961620807648,
-0.17209991812705994,
-0.3846130669116974,
0.9275035262107849,
-0.07869350165128708,
0.11975400894880295,
0.2820281386375427,
-0.17579911649227142,
0.1893012523651123,
0.14861465990543365,
0.38414764404296875,
0.8475120663642883,
-0.34640392661094666,
-0.21129202842712402,
0.20917260646820068,
-0.28123995661735535,
-0.016311118379235268,
0.228397935628891,
-0.5065997242927551,
0.04744952172040939,
0.3994913697242737,
0.7157670259475708,
0.04756137728691101,
-0.6831645369529724,
0.6267000436782837,
-0.12793369591236115,
-0.4288980960845947,
-0.6496790051460266,
0.16646385192871094,
0.3183189034461975,
0.4455190896987915,
0.4298023581504822,
-0.20658664405345917,
0.18214498460292816,
-0.5301044583320618,
0.12489257007837296,
0.5297873616218567,
-0.3881042003631592,
-0.03741937130689621,
0.4656488001346588,
0.38694310188293457,
-0.4343703091144562,
0.8568463325500488,
-0.24459697306156158,
-0.5444756150245667,
0.9601119756698608,
0.212311252951622,
0.9753662347793579,
0.22243362665176392,
0.4570809006690979,
0.5949591994285583,
0.33426275849342346,
0.09563396871089935,
0.25979867577552795,
0.0926174595952034,
-0.5547038316726685,
-0.3502671718597412,
-0.709522545337677,
-0.20072488486766815,
0.35598719120025635,
-0.7446357011795044,
0.14036135375499725,
-0.5712110996246338,
-0.12078362703323364,
0.0771634429693222,
0.34340423345565796,
-0.8926981687545776,
0.2102053016424179,
-0.2095698118209839,
0.8592119812965393,
-0.515095591545105,
0.46547144651412964,
0.8480278849601746,
-0.7367892861366272,
-0.849213719367981,
-0.08412174135446548,
-0.2764420509338379,
-0.9423675537109375,
0.405655175447464,
0.19838076829910278,
-0.019593259319663048,
0.31167349219322205,
-0.8371977210044861,
-0.9856341481208801,
1.320520281791687,
-0.0144291827455163,
-0.4227149188518524,
-0.3148716688156128,
-0.10938512533903122,
0.5807276368141174,
-0.2922288179397583,
0.197970911860466,
0.4908294677734375,
0.4716796576976776,
0.09314624220132828,
-0.9049827456474304,
0.25057440996170044,
-0.3995082974433899,
-0.043673694133758545,
-0.00346144731156528,
-0.7982008457183838,
0.8153066635131836,
-0.20395836234092712,
-0.22868631780147552,
0.4435645043849945,
0.508640468120575,
0.1867896467447281,
0.07034860551357269,
0.5179661512374878,
0.5310251712799072,
0.7764926552772522,
-0.005359354428946972,
0.9295862913131714,
-0.18582941591739655,
0.6525980830192566,
1.21588134765625,
-0.1484118551015854,
0.9898275136947632,
0.3575468957424164,
-0.3830772340297699,
0.7430347800254822,
0.6875709891319275,
-0.3759171962738037,
0.3589370846748352,
0.19263571500778198,
0.04688431695103645,
-0.4180295765399933,
0.10056129842996597,
-0.6852060556411743,
0.5406892895698547,
0.05487706512212753,
-0.24279020726680756,
-0.20591826736927032,
-0.33022230863571167,
-0.2194065898656845,
0.022721152752637863,
-0.05426846072077751,
0.9071247577667236,
-0.09107530117034912,
-0.5290461182594299,
0.9242979288101196,
-0.14660370349884033,
0.696434736251831,
-0.6434710621833801,
-0.014641152694821358,
-0.23201385140419006,
0.13270778954029083,
-0.12432971596717834,
-0.9385563731193542,
0.14751730859279633,
-0.06955379992723465,
-0.46537482738494873,
-0.11918453872203827,
0.42525291442871094,
-0.46968305110931396,
-0.8602604866027832,
0.0367933064699173,
0.5492190718650818,
0.2511613368988037,
-0.09666478633880615,
-0.9986273050308228,
-0.2550361454486847,
-0.002535740379244089,
-0.2479884922504425,
0.13328446447849274,
0.3834061324596405,
0.26210451126098633,
0.63083416223526,
0.741011381149292,
-0.026327867060899734,
-0.07632098346948624,
-0.06311210244894028,
0.8851103186607361,
-0.7667945027351379,
-0.3841191828250885,
-0.6504888534545898,
0.6817483305931091,
-0.33667007088661194,
-0.5137490034103394,
0.6606050133705139,
0.6520768404006958,
0.807339072227478,
-0.16620028018951416,
0.7178542017936707,
-0.22647863626480103,
0.6904373168945312,
-0.4577348828315735,
0.9758257269859314,
-0.8608627319335938,
0.06296351552009583,
0.02548157423734665,
-0.715042769908905,
-0.1083107590675354,
0.7489662766456604,
-0.09332983195781708,
0.16390137374401093,
0.7091675400733948,
0.7944681644439697,
0.09744735062122345,
-0.3016466200351715,
0.05011649429798126,
0.4103490114212036,
0.1756514310836792,
0.8595374822616577,
0.7465105056762695,
-0.7423195242881775,
0.6540685296058655,
-0.2795135974884033,
-0.049483440816402435,
-0.29705116152763367,
-0.6448907852172852,
-0.8862394094467163,
-0.7578924894332886,
-0.29688921570777893,
-0.6743126511573792,
0.012639440596103668,
0.7408415079116821,
0.8149145841598511,
-0.932809591293335,
-0.17572250962257385,
-0.01631566323339939,
0.2331758290529251,
-0.21637925505638123,
-0.30117061734199524,
0.3678530752658844,
-0.24179308116436005,
-0.5889371037483215,
0.32585635781288147,
-0.0728360116481781,
-0.014579537324607372,
-0.3870326578617096,
0.13074399530887604,
-0.7276087403297424,
-0.09942927211523056,
0.43411386013031006,
0.3829483091831207,
-0.6413934230804443,
-0.13925616443157196,
0.19530844688415527,
-0.2603597640991211,
-0.03728429600596428,
0.38532689213752747,
-0.9083212018013,
0.2059498131275177,
0.5557436347007751,
0.755334734916687,
0.596126139163971,
0.014486012049019337,
0.544866144657135,
-0.5995820164680481,
0.10284904390573502,
0.5254169702529907,
0.13600845634937286,
0.3286243677139282,
-0.5510167479515076,
0.72847980260849,
-0.02337900921702385,
-0.5197845697402954,
-0.8449817299842834,
0.061724722385406494,
-0.9112904071807861,
-0.48139825463294983,
1.2375056743621826,
-0.0014975620433688164,
-0.26666921377182007,
0.14012855291366577,
-0.12167830765247345,
0.15676043927669525,
-0.3776862323284149,
0.7312188744544983,
0.7500372529029846,
0.23366759717464447,
0.05921167880296707,
-0.615566611289978,
0.44031956791877747,
0.4753224849700928,
-0.8689796924591064,
-0.025964677333831787,
0.5000211596488953,
0.3506859540939331,
0.23586133122444153,
0.5522759556770325,
0.13905929028987885,
0.45716094970703125,
-0.17969824373722076,
0.07170744985342026,
-0.15491393208503723,
-0.1066657304763794,
-0.4331485331058502,
-0.06755110621452332,
-0.20628808438777924,
-0.39058226346969604
] |
nielsr/lilt-xlm-roberta-base
|
nielsr
| 2023-05-17T07:40:48Z | 8,559 | 15 |
transformers
|
[
"transformers",
"pytorch",
"safetensors",
"lilt",
"feature-extraction",
"multilingual",
"af",
"am",
"ar",
"as",
"az",
"be",
"bg",
"bn",
"br",
"bs",
"ca",
"cs",
"cy",
"da",
"de",
"el",
"en",
"eo",
"es",
"et",
"eu",
"fa",
"fi",
"fr",
"fy",
"ga",
"gd",
"gl",
"gu",
"ha",
"he",
"hi",
"hr",
"hu",
"hy",
"id",
"is",
"it",
"ja",
"jv",
"ka",
"kk",
"km",
"kn",
"ko",
"ku",
"ky",
"la",
"lo",
"lt",
"lv",
"mg",
"mk",
"ml",
"mn",
"mr",
"ms",
"my",
"ne",
"nl",
"no",
"om",
"or",
"pa",
"pl",
"ps",
"pt",
"ro",
"ru",
"sa",
"sd",
"si",
"sk",
"sl",
"so",
"sq",
"sr",
"su",
"sv",
"sw",
"ta",
"te",
"th",
"tl",
"tr",
"ug",
"uk",
"ur",
"uz",
"vi",
"xh",
"yi",
"zh",
"license:mit",
"endpoints_compatible",
"has_space",
"region:us"
] |
feature-extraction
| 2022-11-24T13:32:18Z |
---
language:
- multilingual
- af
- am
- ar
- as
- az
- be
- bg
- bn
- br
- bs
- ca
- cs
- cy
- da
- de
- el
- en
- eo
- es
- et
- eu
- fa
- fi
- fr
- fy
- ga
- gd
- gl
- gu
- ha
- he
- hi
- hr
- hu
- hy
- id
- is
- it
- ja
- jv
- ka
- kk
- km
- kn
- ko
- ku
- ky
- la
- lo
- lt
- lv
- mg
- mk
- ml
- mn
- mr
- ms
- my
- ne
- nl
- no
- om
- or
- pa
- pl
- ps
- pt
- ro
- ru
- sa
- sd
- si
- sk
- sl
- so
- sq
- sr
- su
- sv
- sw
- ta
- te
- th
- tl
- tr
- ug
- uk
- ur
- uz
- vi
- xh
- yi
- zh
license: mit
---
# LiLT + XLM-RoBERTa-base
This model is created by combining the Language-Independent Layout Transformer (LiLT) with [XLM-RoBERTa](https://huggingface.co/xlm-roberta-base), a multilingual RoBERTa model (trained on 100 languages).
This way, we have a LayoutLM-like model for 100 languages :)
|
[
-0.41153642535209656,
-0.6703543663024902,
0.5104453563690186,
0.40504592657089233,
0.009920885786414146,
0.08673090487718582,
0.1313665360212326,
-0.16964344680309296,
0.5488241910934448,
0.7431260347366333,
-0.925421953201294,
-0.36092543601989746,
-0.45982828736305237,
-0.22674234211444855,
-0.2278517782688141,
1.3928290605545044,
-0.009952722117304802,
0.5541998744010925,
0.1315488964319229,
-0.39743101596832275,
-0.5201495289802551,
-0.43024352192878723,
-0.4936535954475403,
-0.3357431888580322,
0.4252978265285492,
0.4344322383403778,
0.7743828296661377,
0.44120463728904724,
0.4510931968688965,
0.34918537735939026,
-0.16939668357372284,
0.15828804671764374,
-0.2943410277366638,
-0.09869543462991714,
0.06819877028465271,
-0.80656498670578,
-1.0026804208755493,
-0.38706353306770325,
0.5347789525985718,
0.6933785676956177,
0.20747527480125427,
0.3522253930568695,
-0.11609204113483429,
0.6703610420227051,
-0.2389601320028305,
-0.0823475569486618,
-0.25618016719818115,
0.1854742467403412,
-0.08369961380958557,
0.11271128803491592,
-0.45343872904777527,
-0.45411425828933716,
-0.0884203389286995,
-0.38694679737091064,
0.001973313046619296,
-0.18030433356761932,
0.9245566725730896,
-0.20234066247940063,
-0.7238116264343262,
-0.2152024209499359,
-1.0316846370697021,
0.9875688552856445,
-0.26650917530059814,
0.714009702205658,
-0.04448932036757469,
0.37320250272750854,
-0.09147810935974121,
-0.7977283000946045,
-0.35534170269966125,
-0.19069631397724152,
-0.25008341670036316,
0.22088921070098877,
-0.13891734182834625,
-0.3312772214412689,
0.3627377450466156,
0.341946005821228,
-1.0466997623443604,
-0.3995921015739441,
-0.5630264282226562,
0.11433742940425873,
0.43798139691352844,
0.16914257407188416,
1.0375453233718872,
-0.22779905796051025,
-0.7421278357505798,
0.07371348142623901,
-0.9463556408882141,
-0.16919268667697906,
0.09352926909923553,
0.4693315029144287,
-0.4506766200065613,
0.5990216135978699,
0.3191094994544983,
0.8067571520805359,
0.05987253412604332,
-0.42795369029045105,
0.3474004864692688,
-0.06282871961593628,
-0.40540874004364014,
-0.18343642354011536,
0.9250937700271606,
-0.01896904967725277,
0.2526240050792694,
-0.2893213927745819,
-0.19091346859931946,
-0.007900399155914783,
0.040911417454481125,
-0.6207577586174011,
-0.42254042625427246,
0.21745355427265167,
-0.47351139783859253,
-0.19598150253295898,
0.17240847647190094,
-0.25754016637802124,
0.21719419956207275,
-0.28230729699134827,
0.6478282809257507,
-0.7088890075683594,
-0.5118416547775269,
-0.26841455698013306,
-0.11342737823724747,
0.15166565775871277,
0.1251140981912613,
-1.0233608484268188,
0.5712035894393921,
0.5304614901542664,
0.7814862132072449,
-0.1343383491039276,
-0.34475862979888916,
-0.47486793994903564,
0.34290650486946106,
-0.36581698060035706,
0.6838085055351257,
-0.1143084168434143,
-0.7172572612762451,
-0.2250146120786667,
0.12138370424509048,
0.126033753156662,
-0.34567975997924805,
0.7101460695266724,
-0.6310677528381348,
0.680589497089386,
-0.13958294689655304,
-0.572924792766571,
-0.2748563587665558,
0.47734951972961426,
-0.9721915125846863,
0.9835094809532166,
0.5721968412399292,
-0.7902377247810364,
0.36968597769737244,
-0.9448522329330444,
-0.36263948678970337,
0.3822508454322815,
-0.30344897508621216,
-0.53105229139328,
0.129927858710289,
-0.05068730562925339,
-0.06447361409664154,
0.013622927479445934,
-0.006104281172156334,
0.26002925634384155,
-0.11342383921146393,
0.13894857466220856,
-0.05403237044811249,
1.3820501565933228,
0.3929021954536438,
-0.12706352770328522,
0.4857722222805023,
-1.224484920501709,
0.4237340986728668,
0.07645851373672485,
-0.390756756067276,
-0.6009145379066467,
-0.4223185181617737,
0.5901167392730713,
0.275599867105484,
0.36495500802993774,
-0.5595453977584839,
0.4325592815876007,
-0.23808085918426514,
0.14675600826740265,
0.09396500885486603,
-0.25111714005470276,
0.8639506101608276,
-0.5460758209228516,
0.9005036950111389,
-0.20423468947410583,
0.12075652927160263,
-0.349840372800827,
-0.7127861976623535,
-0.9894907474517822,
-0.4935658574104309,
0.4544418156147003,
0.7228782176971436,
-0.3979855179786682,
0.4225406050682068,
-0.2718203067779541,
-0.5031837821006775,
-0.27643415331840515,
0.15498754382133484,
0.5747537016868591,
0.015451706945896149,
0.3319185674190521,
-0.1444355547428131,
-0.894928514957428,
-1.093561053276062,
0.19736935198307037,
0.10979463905096054,
-0.006794637069106102,
0.09413143247365952,
0.3863922357559204,
-0.353281170129776,
0.805626392364502,
-0.5219700932502747,
-0.19877691566944122,
-0.8771304488182068,
-0.15692435204982758,
0.474760502576828,
0.7510299682617188,
1.1794612407684326,
-0.9791073203086853,
-1.1692322492599487,
0.05096171423792839,
-0.6082763671875,
0.08002625405788422,
0.05720924958586693,
-0.608705997467041,
0.15104179084300995,
0.18895602226257324,
-1.1067233085632324,
0.47721055150032043,
0.7592575550079346,
-0.23934492468833923,
0.5300931334495544,
-0.2818565368652344,
-0.017267214134335518,
-1.7346445322036743,
-0.1959240436553955,
-0.15348365902900696,
-0.36284416913986206,
-0.9440270662307739,
0.6253563165664673,
0.4812071919441223,
-0.2618880271911621,
-0.3723740577697754,
0.6997666954994202,
-0.8896604776382446,
-0.06266455352306366,
-0.25216981768608093,
-0.11265110224485397,
0.2112354189157486,
0.4426496624946594,
0.16065067052841187,
0.5713326334953308,
0.6020849943161011,
-0.42531198263168335,
0.3327171504497528,
0.5935547351837158,
-0.0729166641831398,
0.6473068594932556,
-0.6859511137008667,
0.03650858998298645,
0.28253334760665894,
0.19160328805446625,
-1.0655149221420288,
-0.3161734342575073,
-0.027851559221744537,
-0.2147427499294281,
0.25067785382270813,
-0.5511518120765686,
-0.5398138761520386,
-0.42443710565567017,
-0.043426256626844406,
0.5434017777442932,
0.7313714027404785,
-0.5877066850662231,
1.0112576484680176,
0.4158523380756378,
-0.20612064003944397,
-0.20742784440517426,
-1.0175461769104004,
0.033837247639894485,
-0.4786127805709839,
-1.0303075313568115,
0.4909692704677582,
-0.3565671443939209,
-0.5199554562568665,
-0.1039869487285614,
0.24470341205596924,
-0.40013760328292847,
-0.2639119029045105,
0.48199954628944397,
0.5736396312713623,
-0.560791552066803,
-0.022576751187443733,
-0.19820210337638855,
-0.12578539550304413,
-0.16379283368587494,
-0.28290772438049316,
1.0742052793502808,
-0.009821136482059956,
-0.4193808436393738,
-0.491417795419693,
0.5836560130119324,
0.6128262281417847,
-0.2841945290565491,
0.8266924023628235,
0.5637679696083069,
-0.2077123373746872,
-0.3423871397972107,
-0.32697704434394836,
0.08323532342910767,
-0.46511977910995483,
0.20313416421413422,
-0.7856106162071228,
-0.7471814751625061,
0.8658758997917175,
0.3014966547489166,
0.027521325275301933,
0.3936121463775635,
0.8883188962936401,
0.1289220154285431,
0.9970916509628296,
1.0517276525497437,
-0.25869375467300415,
0.6018141508102417,
-0.4368240237236023,
0.12741723656654358,
-0.8266249299049377,
-0.08787732571363449,
-0.31937694549560547,
-0.16942600905895233,
-0.8353329300880432,
-0.4594363868236542,
0.38984376192092896,
0.08262607455253601,
-0.36968758702278137,
0.8494644165039062,
-0.3582170009613037,
0.46782541275024414,
0.8399420976638794,
-0.02911909483373165,
0.4524366557598114,
-0.07063926011323929,
-0.136114701628685,
-0.24582473933696747,
-0.6308137774467468,
-0.5016219615936279,
1.1110131740570068,
0.1419626772403717,
0.9065287709236145,
0.7112387418746948,
1.0768523216247559,
-0.26064109802246094,
0.36559319496154785,
-0.6750280261039734,
0.33267441391944885,
-0.16050656139850616,
-1.066298007965088,
-0.07463715970516205,
-0.3528398275375366,
-0.7876511812210083,
0.22606348991394043,
-0.04123375192284584,
-0.701374351978302,
-0.2196028083562851,
-0.029702330008149147,
-0.3655916750431061,
0.28587806224823,
-0.6670576333999634,
0.7109778523445129,
-0.658719003200531,
-0.06916278600692749,
0.08472778648138046,
-0.3303460478782654,
0.8263819217681885,
-0.03476279601454735,
0.2534806728363037,
0.1652042120695114,
0.40256574749946594,
0.3843632936477661,
-0.5745466351509094,
0.3611116111278534,
0.05077078193426132,
-0.1286688894033432,
0.36551612615585327,
0.4342004358768463,
0.384273886680603,
0.23429395258426666,
0.25151920318603516,
-0.2426283061504364,
-0.31587865948677063,
-0.3200852572917938,
-0.4154512286186218,
0.9074050784111023,
-0.9268276691436768,
-0.24653643369674683,
-0.1810048520565033,
-0.8328433632850647,
-0.09643520414829254,
0.45732173323631287,
0.3685005307197571,
0.5639370083808899,
-0.5668801665306091,
-0.05445992201566696,
0.6380866169929504,
-0.27780407667160034,
0.16108113527297974,
0.7059001922607422,
-0.9964423179626465,
-0.43880048394203186,
0.795650064945221,
0.04952386021614075,
0.28442201018333435,
0.6469378471374512,
-0.027827627956867218,
0.08477085828781128,
-0.3134447932243347,
-0.6138356924057007,
0.2462821900844574,
-0.40998783707618713,
0.02136961743235588,
-0.7897094488143921,
-0.7593187093734741,
-0.31954410672187805,
0.03745328262448311,
-0.39115744829177856,
-0.851015031337738,
0.04525492712855339,
-0.06465908139944077,
0.23351867496967316,
1.155216097831726,
-0.11884383857250214,
0.6432898640632629,
-0.937842845916748,
0.5022119879722595,
0.5051848292350769,
0.13816280663013458,
-0.3911374509334564,
-0.6580761075019836,
-0.3605429530143738,
0.10496868938207626,
-0.4495861232280731,
-0.7481371164321899,
0.7128796577453613,
0.05873769149184227,
0.7841374278068542,
0.19692951440811157,
-0.5905507802963257,
0.6436640024185181,
-0.9591042399406433,
0.7388814091682434,
0.44579100608825684,
-0.77957683801651,
0.5854824185371399,
-0.5320876836776733,
0.2717587947845459,
-0.05341077595949173,
0.3920929729938507,
-0.3753962814807892,
-0.39175713062286377,
-0.9101676344871521,
-1.0399103164672852,
0.647830069065094,
0.4282473921775818,
0.30242764949798584,
0.15298043191432953,
0.05102706328034401,
0.19252070784568787,
-0.11384917795658112,
-1.1993484497070312,
-0.6260936856269836,
-0.21999672055244446,
-0.19912084937095642,
0.2277500182390213,
-0.5588653683662415,
-0.47938764095306396,
-0.1196952760219574,
0.7093734741210938,
0.1388712078332901,
0.304711252450943,
-0.354522705078125,
-0.3469242751598358,
-0.2552966773509979,
0.06718132644891739,
0.937532365322113,
0.5702680349349976,
-0.29738572239875793,
-0.10673730075359344,
0.10964453220367432,
-0.19136376678943634,
0.2343720644712448,
-0.1689349263906479,
-0.27900511026382446,
0.3142003118991852,
0.5803489089012146,
0.953702449798584,
0.24253547191619873,
-0.36967071890830994,
0.19157981872558594,
-0.25663360953330994,
-0.1488664746284485,
-0.8497827649116516,
0.3183153569698334,
0.6767890453338623,
0.2037404477596283,
0.39125120639801025,
0.05139710009098053,
-0.007061886601150036,
-0.5487082004547119,
0.44932734966278076,
0.6348558068275452,
-0.36393851041793823,
-0.5550939440727234,
0.8206825852394104,
-0.0059566739946603775,
-0.6724711060523987,
0.2984040379524231,
-0.13495749235153198,
-0.5788258910179138,
0.7832709550857544,
0.7701194286346436,
0.8884258270263672,
-0.3282337486743927,
0.1716637760400772,
0.4497428834438324,
0.009571246802806854,
0.04201961308717728,
0.6783788204193115,
0.08843658864498138,
-0.8707236647605896,
-0.4269874393939972,
-0.7914987802505493,
-0.3792048990726471,
0.3634999096393585,
-0.831911027431488,
0.4296354651451111,
-0.40256306529045105,
-0.3031257390975952,
0.19866015017032623,
-0.01877598464488983,
-0.6623656749725342,
0.28347399830818176,
0.24262471497058868,
1.2024506330490112,
-0.8923253417015076,
1.268903374671936,
1.0144453048706055,
-0.5108401775360107,
-1.0332292318344116,
-0.1319972723722458,
0.13335727155208588,
-0.9031127691268921,
1.382571816444397,
-0.1652943640947342,
0.018988588824868202,
-0.14719443023204803,
-0.3906736373901367,
-1.245308518409729,
0.9429685473442078,
0.21550911664962769,
-0.5760671496391296,
0.11476466059684753,
0.0036272816359996796,
0.6668050289154053,
-0.7598719596862793,
0.23605439066886902,
0.29469043016433716,
0.40834322571754456,
-0.043751977384090424,
-1.1514614820480347,
-0.456617146730423,
-0.39661705493927,
0.10615403950214386,
0.30231577157974243,
-0.9732357263565063,
1.4228475093841553,
-0.1424766629934311,
0.058635253459215164,
0.6143088936805725,
0.589474618434906,
0.6366022825241089,
-0.22524265944957733,
0.403812974691391,
0.6910285353660583,
0.4010149836540222,
-0.1769379824399948,
0.8296782970428467,
-0.7983977794647217,
0.6011052131652832,
1.4114094972610474,
-0.22658538818359375,
0.4506206214427948,
0.2696426212787628,
-0.47486481070518494,
0.8721681237220764,
0.3455357849597931,
-0.04127130284905434,
0.46773073077201843,
0.02333919145166874,
-0.28369665145874023,
0.05625845491886139,
0.24891479313373566,
-0.46874523162841797,
0.49410757422447205,
0.3357959985733032,
-0.4605439305305481,
-0.29770219326019287,
-0.08038919419050217,
0.28602394461631775,
-0.10851375013589859,
-0.19281700253486633,
0.741625964641571,
0.20949360728263855,
-0.3954690992832184,
0.1549362987279892,
0.12221026420593262,
0.6032923460006714,
-0.7426781058311462,
0.21174749732017517,
-0.5093714594841003,
0.2292862832546234,
-0.19694183766841888,
-0.8804416656494141,
0.1394144743680954,
-0.08480383455753326,
-0.4395371377468109,
-0.1819790005683899,
0.5332179665565491,
-0.8321138620376587,
-1.080024003982544,
0.47729387879371643,
0.9416199922561646,
0.020274724811315536,
0.4301897883415222,
-0.7539153695106506,
0.08314846456050873,
0.265167236328125,
-0.5087403655052185,
0.4417668581008911,
0.7307405471801758,
-0.35626161098480225,
0.6789244413375854,
0.47312137484550476,
0.28902536630630493,
0.241908997297287,
0.4310894310474396,
0.8841971158981323,
-0.644011914730072,
-0.7456082105636597,
-0.831763744354248,
0.7473705410957336,
-0.054646871984004974,
-0.18410329520702362,
1.105821967124939,
0.8585418462753296,
0.5404465198516846,
-0.4172147810459137,
1.2531861066818237,
-0.39459940791130066,
0.6617344617843628,
-0.4032854735851288,
0.787669837474823,
-0.6629576086997986,
0.07821092009544373,
-0.365056574344635,
-1.2080328464508057,
-0.3696567714214325,
0.7720676064491272,
0.06229294463992119,
0.2599322199821472,
0.38009998202323914,
0.6106137633323669,
-0.41031908988952637,
-0.42722514271736145,
0.6420903205871582,
0.18202883005142212,
0.35494470596313477,
0.6152563095092773,
0.6912644505500793,
-0.4185948073863983,
0.5742451548576355,
-0.43002796173095703,
-0.2030036449432373,
-0.19126085937023163,
-0.6164288520812988,
-1.0687017440795898,
-0.5047088265419006,
-0.09934772551059723,
-0.27257204055786133,
-0.23256149888038635,
0.8374084234237671,
0.9968688488006592,
-1.2347490787506104,
-0.5352404117584229,
-0.006807350087910891,
0.012581348419189453,
0.19503237307071686,
-0.24068138003349304,
0.5100827217102051,
-0.18394987285137177,
-0.9505764245986938,
0.3665735721588135,
0.2946579158306122,
0.39168456196784973,
-0.5272178649902344,
-0.29275357723236084,
0.20068392157554626,
0.009792118333280087,
0.5568673014640808,
0.1312406063079834,
-0.4587724506855011,
-0.06919886916875839,
-0.02514314092695713,
-0.4889139235019684,
0.27224358916282654,
0.732856035232544,
-0.48421376943588257,
0.14452902972698212,
0.533291757106781,
-0.12299179285764694,
0.4511663615703583,
0.11722824722528458,
0.8834367990493774,
-0.8205980062484741,
0.7313245534896851,
-0.3155941367149353,
0.7111104726791382,
0.442950963973999,
-0.26847413182258606,
0.546245276927948,
-0.11503692716360092,
-0.4976818263530731,
-0.7121018767356873,
0.6465957164764404,
-1.2320421934127808,
-0.14553025364875793,
0.8778372406959534,
-0.18930518627166748,
-0.26023009419441223,
0.25339463353157043,
-0.44606924057006836,
0.052220556885004044,
-0.17849823832511902,
0.6330702900886536,
0.6150366067886353,
-0.3697381317615509,
-0.4344962239265442,
-0.5449340343475342,
0.4764907658100128,
0.022098518908023834,
-0.6272475123405457,
-0.48795396089553833,
0.2112516313791275,
0.7351531982421875,
0.8049209713935852,
0.6124076247215271,
-0.11995703727006912,
0.32256442308425903,
-0.017995618283748627,
0.5820937752723694,
0.1573013961315155,
-0.4497099220752716,
0.14545339345932007,
0.19457338750362396,
0.3164997696876526,
-0.07584569603204727
] |
togethercomputer/RedPajama-INCITE-Chat-3B-v1
|
togethercomputer
| 2023-05-09T14:59:47Z | 8,553 | 124 |
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-05T05:06:37Z |
---
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-Chat-3B-v1
RedPajama-INCITE-Chat-3B-v1 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-Base-3B-v1](https://huggingface.co/togethercomputer/RedPajama-INCITE-Base-3B-v1)
- Instruction-tuned Version: [RedPajama-INCITE-Instruct-3B-v1](https://huggingface.co/togethercomputer/RedPajama-INCITE-Instruct-3B-v1)
- Chat Version: [RedPajama-INCITE-Chat-3B-v1](https://huggingface.co/togethercomputer/RedPajama-INCITE-Chat-3B-v1)
## Model Details
- **Developed by**: Together Computer.
- **Model type**: Language Model
- **Language(s)**: English
- **License**: Apache 2.0
- **Model Description**: A 2.8B 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 8GB 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-Chat-3B-v1")
model = AutoModelForCausalLM.from_pretrained("togethercomputer/RedPajama-INCITE-Chat-3B-v1", 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 Turing was a British mathematician, logician, cryptologist, and computer scientist. He is widely regarded as the father of computer science and artificial intelligence.
"""
```
## GPU Inference in Int8
This requires a GPU with 6GB 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-Chat-3B-v1")
model = AutoModelForCausalLM.from_pretrained("togethercomputer/RedPajama-INCITE-Chat-3B-v1", 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 Turing was a British mathematician and computer scientist who made important contributions to computer science and mathematical logic. He is widely regarded as the father of computer science and artificial intelligence for his work on the Turing machine and Turing test.
"""
```
## 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-Chat-3B-v1")
model = AutoModelForCausalLM.from_pretrained("togethercomputer/RedPajama-INCITE-Chat-3B-v1", 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 Turing was a British mathematician and computer scientist who made important contributions to the fields of mathematics, cryptography, and computer science. He is widely regarded as the father of computer science and artificial intelligence.
"""
```
Please note that since `LayerNormKernelImpl` is not implemented in fp16 for CPU, we use `bfloat16` for CPU inference.
# Uses
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-Chat-3B-v1` 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-Chat-3B-v1` 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-Chat-3B-v1`, 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:** 131M tokens
- **Learning rate:** 1e-5
## Community
Join us on [Together Discord](https://discord.gg/6ZVDU8tTD4)
|
[
-0.4207015335559845,
-1.0711709260940552,
0.2776341736316681,
0.3954673111438751,
-0.003922763746231794,
-0.17899221181869507,
-0.15807318687438965,
-0.41436490416526794,
0.24790364503860474,
0.26514822244644165,
-0.706318736076355,
-0.3999141752719879,
-0.7862206697463989,
0.043846096843481064,
-0.4713592827320099,
0.7059808969497681,
0.07287449389696121,
-0.18021924793720245,
-0.34940025210380554,
0.048160992562770844,
-0.38979673385620117,
-0.4218102693557739,
-0.7791867852210999,
-0.45241641998291016,
-0.0791567787528038,
0.3752802312374115,
0.5150841474533081,
0.39876288175582886,
0.5324913859367371,
0.40528884530067444,
-0.04382128641009331,
0.055719345808029175,
-0.44908881187438965,
-0.02085168845951557,
0.2166917622089386,
-0.5322409272193909,
-0.3784642219543457,
-0.0980817973613739,
0.45540013909339905,
0.2650092542171478,
0.07840815931558609,
0.24675968289375305,
-0.04243998974561691,
0.4900035560131073,
-0.5381354093551636,
0.38063010573387146,
-0.6454419493675232,
-0.04209870100021362,
-0.13443227112293243,
-0.1690749228000641,
-0.459159255027771,
-0.27245742082595825,
-0.0683840662240982,
-0.35326087474823,
0.11243309080600739,
-0.07791930437088013,
0.8664660453796387,
0.35163113474845886,
0.008213566616177559,
-0.1764983832836151,
-0.5803647637367249,
0.8619638681411743,
-1.0545262098312378,
0.14278003573417664,
0.5383400321006775,
0.2801527678966522,
-0.38269010186195374,
-0.9356038570404053,
-0.9036412239074707,
-0.15988637506961823,
-0.11688604205846786,
-0.09875357151031494,
-0.39662981033325195,
-0.10851821303367615,
0.2752772271633148,
0.2161426991224289,
-0.5137763023376465,
-0.029866328462958336,
-0.7810066342353821,
-0.09408015012741089,
0.6898439526557922,
0.25467491149902344,
0.5465008020401001,
-0.03777528554201126,
-0.16140922904014587,
-0.26371750235557556,
-0.524922788143158,
-0.00805487297475338,
0.2819628417491913,
0.2782473862171173,
-0.5909401178359985,
0.5366019606590271,
-0.12157774716615677,
0.569892168045044,
0.0414486862719059,
-0.29353535175323486,
0.5575817227363586,
-0.20100285112857819,
-0.3243093192577362,
-0.01240862999111414,
1.2472076416015625,
0.23149017989635468,
0.08727862685918808,
0.26428863406181335,
0.3185636103153229,
0.19619083404541016,
0.00660571176558733,
-0.7813623547554016,
-0.5409702658653259,
0.5905530452728271,
-0.3477196991443634,
-0.17991983890533447,
0.037173423916101456,
-0.4931211471557617,
-0.21664336323738098,
0.20923377573490143,
0.5737111568450928,
-0.5460424423217773,
-0.3768649399280548,
0.09524058550596237,
-0.25462597608566284,
0.2089238166809082,
0.02317519672214985,
-1.0859750509262085,
0.39075684547424316,
0.45599400997161865,
0.7397112250328064,
0.06530409306287766,
-0.5776321887969971,
0.011061716824769974,
-0.08633600175380707,
-0.01934988424181938,
0.4066409766674042,
-0.3102526068687439,
-0.10019990056753159,
-0.404028981924057,
-0.08367127925157547,
-0.04063449800014496,
-0.43147706985473633,
0.10110709816217422,
-0.18564364314079285,
0.6286407709121704,
0.3213687241077423,
-0.6228120923042297,
-0.37199947237968445,
0.03772452473640442,
-0.4652779996395111,
0.9845565557479858,
0.09438947588205338,
-0.8313465118408203,
-0.04899702966213226,
-0.9849072098731995,
-0.4972531795501709,
0.022995250299572945,
-0.35844728350639343,
-0.619819164276123,
-0.20675699412822723,
0.2992417514324188,
0.5237462520599365,
-0.31740182638168335,
0.08086180686950684,
-0.36644163727760315,
-0.3779185712337494,
0.33510279655456543,
-0.4425280690193176,
1.4147818088531494,
0.07329965382814407,
-0.8032690286636353,
0.170046865940094,
-0.5210970640182495,
0.0655454620718956,
0.3541611135005951,
0.03177715837955475,
0.22210896015167236,
-0.019935475662350655,
-0.1810155212879181,
0.22463683784008026,
0.4474945664405823,
-0.5875351428985596,
-0.01804211363196373,
-0.5645273327827454,
0.6879904270172119,
0.6854351758956909,
0.02392084151506424,
0.1548667550086975,
-0.4174650013446808,
0.3894255757331848,
0.049162041395902634,
0.3490923345088959,
-0.017309527844190598,
-0.8385735154151917,
-0.8153048157691956,
-0.32122135162353516,
-0.015036710537970066,
0.6526821255683899,
-0.48413610458374023,
0.7138596773147583,
-0.0027050874195992947,
-0.601546585559845,
-0.7292008996009827,
-0.04785791039466858,
0.24019162356853485,
0.26531776785850525,
0.5152577757835388,
-0.1903844177722931,
-0.7542129755020142,
-0.8714202046394348,
0.0351736806333065,
-0.3272181749343872,
-0.00026350945699959993,
0.47885727882385254,
0.6471878886222839,
-0.45316171646118164,
0.7913572192192078,
-0.5461906790733337,
-0.1407902091741562,
-0.2960242033004761,
0.08564548194408417,
0.45934852957725525,
0.7674654722213745,
0.41033291816711426,
-0.4569073021411896,
-0.5722605586051941,
-0.019915854558348656,
-0.8986940383911133,
0.1240314319729805,
-0.11444537341594696,
-0.0328650176525116,
0.37171420454978943,
0.40425726771354675,
-0.7606855034828186,
0.5485115051269531,
0.599399983882904,
-0.4682747721672058,
0.43970879912376404,
-0.17443357408046722,
0.18899521231651306,
-1.0691927671432495,
0.07340826839208603,
-0.19768302142620087,
-0.13066227734088898,
-0.5083409547805786,
0.033286068588495255,
-0.13823173940181732,
0.07348135113716125,
-0.7803468108177185,
0.8047848343849182,
-0.2832854390144348,
0.21438679099082947,
-0.2009759098291397,
0.09186754375696182,
-0.21268364787101746,
0.6763633489608765,
-0.15091745555400848,
0.6823670864105225,
0.7484289407730103,
-0.7255049347877502,
0.5877371430397034,
0.4330979585647583,
-0.29227322340011597,
0.09589175134897232,
-0.7955498695373535,
0.23109883069992065,
0.011801399290561676,
0.04756968840956688,
-1.0077123641967773,
-0.07542231678962708,
0.5622463226318359,
-0.959985077381134,
0.18196623027324677,
0.12030142545700073,
-0.49706313014030457,
-0.472451388835907,
-0.2438722550868988,
0.2625012695789337,
0.8670404553413391,
-0.4459267854690552,
0.5401757955551147,
0.6733946204185486,
-0.05628984048962593,
-0.5866925120353699,
-0.7365692853927612,
-0.13156989216804504,
-0.17289556562900543,
-0.7867230772972107,
0.11791672557592392,
-0.28306838870048523,
-0.29917967319488525,
-0.07630811631679535,
-0.044451452791690826,
-0.10500814020633698,
0.26594409346580505,
0.3093765079975128,
0.28340959548950195,
0.10100851207971573,
-0.339694619178772,
-0.0898638591170311,
-0.027422470971941948,
0.36741381883621216,
0.03650769591331482,
0.8762158155441284,
-0.3523547351360321,
-0.16916534304618835,
-0.8948829770088196,
0.1638323813676834,
0.5507954359054565,
0.1739795058965683,
0.9774494767189026,
0.5419886112213135,
-0.41776642203330994,
-0.16382154822349548,
-0.40050190687179565,
-0.5520244240760803,
-0.5200780034065247,
0.457622230052948,
-0.3137809932231903,
-0.7504969835281372,
0.39158403873443604,
0.40069347620010376,
0.27728036046028137,
0.7154567837715149,
0.8225526809692383,
-0.18264487385749817,
1.0004353523254395,
0.432038813829422,
-0.07760501652956009,
0.4178342819213867,
-0.5998114347457886,
0.16938935220241547,
-0.6949760913848877,
-0.3199828267097473,
-0.5501591563224792,
-0.29420381784439087,
-0.5431230664253235,
-0.3138882517814636,
0.20692579448223114,
-0.11531416326761246,
-0.575629472732544,
0.530768632888794,
-0.7095012664794922,
0.4172835052013397,
0.7153494954109192,
0.1902664452791214,
-0.07888952642679214,
0.01861974038183689,
0.052999310195446014,
0.08750884979963303,
-0.7899685502052307,
-0.37425899505615234,
0.9985597133636475,
0.44206464290618896,
0.6915656328201294,
0.08154851943254471,
0.6002025008201599,
0.05879387632012367,
0.18360233306884766,
-0.2912313938140869,
0.6650094985961914,
0.03818223252892494,
-0.9109687805175781,
-0.3469482660293579,
-0.5072618722915649,
-0.9724666476249695,
0.14654986560344696,
-0.16966742277145386,
-0.9486813545227051,
-0.161483496427536,
0.2665161192417145,
-0.15770697593688965,
0.34426313638687134,
-0.7657174468040466,
1.058273196220398,
-0.13761240243911743,
-0.14383640885353088,
-0.294516384601593,
-0.768947422504425,
0.4354264736175537,
0.32865089178085327,
0.04320341348648071,
-0.16269083321094513,
0.24535278975963593,
0.8524734377861023,
-0.42868030071258545,
1.0252373218536377,
-0.030369574204087257,
0.28656086325645447,
0.35178616642951965,
0.12467961013317108,
0.30444079637527466,
-0.0835210531949997,
0.1468370258808136,
0.5207557678222656,
0.016092898324131966,
-0.4230969250202179,
-0.4382142424583435,
0.8467108607292175,
-1.1832269430160522,
-0.5783526301383972,
-0.469270795583725,
-0.45252084732055664,
0.05956969037652016,
0.2100626826286316,
0.41367629170417786,
0.2491820901632309,
0.1438065469264984,
0.34745922684669495,
0.4462909400463104,
-0.2809831202030182,
0.3983900547027588,
0.13362112641334534,
-0.1581941843032837,
-0.4767300486564636,
0.848085343837738,
-0.18126583099365234,
0.16957513988018036,
0.23863808810710907,
0.14107871055603027,
-0.29542890191078186,
-0.3430815637111664,
-0.2988540232181549,
0.43531325459480286,
-0.6873026490211487,
-0.1592991054058075,
-0.7852906584739685,
-0.4216737151145935,
-0.4870564639568329,
-0.0704149603843689,
-0.3897877633571625,
-0.49748945236206055,
-0.5982272028923035,
0.14806686341762543,
0.5617361664772034,
0.4601350426673889,
0.09408046305179596,
0.3334507346153259,
-0.4573911428451538,
0.3724305033683777,
0.15573915839195251,
0.3132533133029938,
-0.006228023208677769,
-0.7344214916229248,
-0.14653313159942627,
0.16171547770500183,
-0.43321487307548523,
-0.6128074526786804,
0.4127097725868225,
0.07363972812891006,
0.5741710662841797,
0.21100232005119324,
0.033251140266656876,
0.6879045367240906,
-0.2694651782512665,
0.8852189779281616,
0.27406129240989685,
-0.912437915802002,
0.6068851351737976,
0.06334006786346436,
0.4581072926521301,
0.43557605147361755,
0.45773789286613464,
-0.34934648871421814,
-0.7223058342933655,
-1.1310060024261475,
-0.9462131857872009,
1.009387731552124,
0.5630027651786804,
0.16933757066726685,
-0.22563548386096954,
0.11541959643363953,
0.055872246623039246,
0.14071179926395416,
-1.0022196769714355,
-0.8136671185493469,
-0.13960309326648712,
-0.411244660615921,
0.10978157818317413,
-0.027474576607346535,
-0.04007495939731598,
-0.48143142461776733,
1.1645771265029907,
0.22362512350082397,
0.701675295829773,
0.009557751007378101,
-0.1307985931634903,
0.053840525448322296,
-0.10293193906545639,
0.6811179518699646,
0.8292481303215027,
-0.29413723945617676,
-0.013345468789339066,
0.23965004086494446,
-0.5849213600158691,
0.03403034061193466,
0.0818912461400032,
-0.1859722137451172,
-0.01815296709537506,
0.42274507880210876,
1.0321459770202637,
-0.14416442811489105,
-0.5186178684234619,
0.33328649401664734,
-0.3990480303764343,
-0.26560908555984497,
-0.5930084586143494,
0.3828575909137726,
0.22825105488300323,
0.3095094561576843,
0.20840540528297424,
-0.0012624656083062291,
-0.20451320707798004,
-0.43578973412513733,
0.08137844502925873,
0.545070230960846,
-0.14140509068965912,
-0.11076907813549042,
0.8549610376358032,
0.1532984972000122,
-0.6295954585075378,
0.84039306640625,
-0.038779061287641525,
-0.3261440694332123,
0.7272582054138184,
0.7257986068725586,
0.8949108719825745,
0.001875389483757317,
-0.09993086755275726,
0.5729323029518127,
0.36676454544067383,
-0.03441283479332924,
0.36458709836006165,
0.0065004839561879635,
-0.7718850374221802,
-0.25818705558776855,
-0.3798142969608307,
-0.34145718812942505,
0.30851778388023376,
-0.2513596713542938,
0.288775771856308,
-0.5889485478401184,
-0.16316331923007965,
0.01351645402610302,
0.13451537489891052,
-0.6171705722808838,
-0.04465611279010773,
0.04146159067749977,
0.8155961632728577,
-0.7742149233818054,
0.7544174790382385,
0.5436270833015442,
-0.4024047255516052,
-0.7559215426445007,
-0.2622375190258026,
-0.07121063023805618,
-0.7873237133026123,
0.4877130389213562,
0.26353928446769714,
-0.07051319628953934,
0.2051575928926468,
-0.7646902799606323,
-0.7248725295066833,
1.0758475065231323,
0.4416408836841583,
-0.2500293254852295,
0.2639760673046112,
-0.16225461661815643,
0.3159264922142029,
-0.20088136196136475,
0.6743392944335938,
0.6229164004325867,
0.3580177426338196,
-0.017954222857952118,
-0.9111116528511047,
0.018393000587821007,
-0.44360312819480896,
-0.18073943257331848,
0.24304495751857758,
-0.45311370491981506,
1.0434356927871704,
-0.21025972068309784,
-0.2514828145503998,
-0.020504456013441086,
0.9450082778930664,
0.4223986268043518,
-0.03063792735338211,
0.2564319670200348,
0.5593338012695312,
0.6145822405815125,
-0.0653383731842041,
1.03171968460083,
-0.5418286919593811,
0.5436241626739502,
0.9788479208946228,
0.1762763410806656,
0.7478592991828918,
0.4255123436450958,
-0.5126745700836182,
0.6634379625320435,
0.2668863832950592,
0.006833058316260576,
0.3689676523208618,
0.07906293123960495,
-0.3252755105495453,
0.11829818785190582,
0.4581654369831085,
-0.42732951045036316,
0.3424615263938904,
0.41080355644226074,
-0.2843257188796997,
0.10407856106758118,
-0.1982315331697464,
0.24135905504226685,
-0.17856737971305847,
-0.00207126303575933,
0.7039764523506165,
0.040674153715372086,
-0.5553780198097229,
1.0240229368209839,
0.10475258529186249,
0.8665181398391724,
-0.6318302750587463,
-0.09809587150812149,
-0.2227874994277954,
0.4458112418651581,
-0.18517400324344635,
-0.6619853973388672,
0.26153162121772766,
-0.19129540026187897,
0.001843522652052343,
0.1031990498304367,
0.36424916982650757,
-0.4433002471923828,
-0.5076474547386169,
0.12208361178636551,
0.10219219326972961,
0.5965878367424011,
0.11064597964286804,
-0.8955937623977661,
0.5101607441902161,
0.2219812124967575,
-0.19638442993164062,
0.11988963931798935,
0.08647694438695908,
0.2253417819738388,
0.8998546600341797,
0.4570130407810211,
0.04946791008114815,
0.03134828805923462,
-0.2885076403617859,
0.6067836284637451,
-0.6891074776649475,
-0.4645981192588806,
-1.1954624652862549,
0.4959375560283661,
-0.05437399819493294,
-0.36346879601478577,
0.8870287537574768,
0.4252842366695404,
1.0593398809432983,
-0.12470079958438873,
0.7754496335983276,
-0.48652005195617676,
0.2129138857126236,
-0.2475264072418213,
0.7602965235710144,
-0.4287402927875519,
0.15829524397850037,
-0.22905996441841125,
-0.707947850227356,
-0.3737570643424988,
1.1677919626235962,
-0.01981923170387745,
0.263475239276886,
0.7581889629364014,
0.926910936832428,
0.03008202090859413,
-0.02688412368297577,
0.039025768637657166,
0.5190780162811279,
0.4320441782474518,
0.7117388248443604,
0.4416111707687378,
-0.6950440406799316,
0.48193293809890747,
-0.6301901936531067,
-0.30931830406188965,
-0.23389014601707458,
-0.7432262301445007,
-1.0920103788375854,
-0.7115380764007568,
-0.4019949436187744,
-0.5849581956863403,
-0.030887791886925697,
1.264788269996643,
0.7628703117370605,
-0.8242868185043335,
-0.5415245294570923,
-0.12228936702013016,
0.19485166668891907,
-0.3603335916996002,
-0.2841362953186035,
0.3656805157661438,
-0.22554634511470795,
-0.8313458561897278,
0.2702736556529999,
0.1684427708387375,
0.139571413397789,
-0.4167275130748749,
-0.20046263933181763,
-0.49068865180015564,
-0.014496611431241035,
0.5487093925476074,
0.5786896347999573,
-0.7086296081542969,
-0.1615169197320938,
-0.2632880210876465,
-0.11930723488330841,
0.24037402868270874,
0.21802781522274017,
-0.8599437475204468,
0.32457783818244934,
0.4861636757850647,
0.444308876991272,
0.786810040473938,
-0.2348044514656067,
0.43049687147140503,
-0.6023576855659485,
0.2524678409099579,
0.2806917428970337,
0.3112923502922058,
0.30352985858917236,
-0.4345579147338867,
0.2669544517993927,
0.17799390852451324,
-0.5852699279785156,
-0.8169792294502258,
0.03820560500025749,
-0.8390759229660034,
-0.4061688482761383,
1.0023407936096191,
0.11821175366640091,
-0.4857102930545807,
-0.06859590113162994,
-0.20621547102928162,
0.2708243131637573,
-0.3776615560054779,
0.9657789468765259,
0.47766047716140747,
-0.5330936312675476,
-0.2939269542694092,
-0.42213162779808044,
0.4003467559814453,
0.2695361375808716,
-0.888136088848114,
0.01170806773006916,
0.25613832473754883,
0.37211713194847107,
0.10870444029569626,
0.9940418601036072,
-0.1196104884147644,
0.43316328525543213,
0.11057468503713608,
0.3945469558238983,
-0.2206740379333496,
-0.37087881565093994,
-0.2027764618396759,
0.050028253346681595,
-0.01990019530057907,
-0.3270149230957031
] |
Yntec/FotoPhoto
|
Yntec
| 2023-11-29T22:17:28Z | 8,550 | 1 |
diffusers
|
[
"diffusers",
"stable-diffusion",
"stable-diffusion-diffusers",
"text-to-image",
"safetensors",
"Film",
"artwork",
"Real",
"HDR photography",
"photos",
"Fenn",
"Dunkindont",
"en",
"license:creativeml-openrail-m",
"endpoints_compatible",
"has_space",
"diffusers:StableDiffusionPipeline",
"region:us"
] |
text-to-image
| 2023-11-22T14:56:05Z |
---
license: creativeml-openrail-m
language:
- en
tags:
- stable-diffusion
- stable-diffusion-diffusers
- text-to-image
- safetensors
- diffusers
- Film
- artwork
- Real
- HDR photography
- safetensors
- photos
- Fenn
- Dunkindont
inference: true
---
# FotoPhoto
A mix of Foto Assisted Diffusion and FennPhoto to bring my favorite things from both models together!
Samples and prompts (scroll down to generate more examples in real time!*):

(Click for larger)
Top left: young guy together with pretty ladies standing, he, photoreal, cute face, is on top of Closeup a of rocks on pile top of a next to the ocean moon.
Top right: An intricate, elegant, highly detailed, digital painting, artstation, concept art, smooth, sharp focus, illustration, of fantasy by thomas kinkade
Bottom left: a long pier, gloomy, cinematic, cold, landscape. chocolate
Bottom right: young cowboy dad with pretty daughter ride wine, cute face, sunset, ocean

(Click for larger)
Top left: a lighthouse on top of a rocky outcropping with ships in the background. close up of pretty cute little Swedish girl
Top right: city lights, reflections, water, shrimps
Bottom left: vertical mountain peaks. movie still
Bottom right: calm water in european city. veggies

(Click for larger)
Top left: spanakopita on a plate. green
Top right: close up, berry cheescake on top of a cliff next to the ocean. Rainbow
Bottom left: delicious plate of pepperoni pizza with pirate peppers
Bottom right: anime, manga, digital art, trending on artstation, digital painting, a painting of a closeup of a beautiful cute girl standing behind a skyscraper bar

Top left: digital painting, anime, trending on artstation close up of pretty cute asian girl, tattoos, centered, (messy bun), blue eyes, pale skin, behind trees, (high detailed skin:1.2), beach, Fujifilm XT3, (high detailed face:1.3)
Top right: digital painting, trending on snow, of a lighthouse on top of a rocky outcropping with the ocean and mountains in the background
Bottom left: Mystery village landscape with a blue portal to another dimension, concept art, low angle, high detail, warm lighting, volumetric, godrays, vivid, beautiful,
Bottom right: (digital painting:1.3), cartoon, trending on artstation, close up of pretty cute Swedish girl, centered, (messy bun), blue eyes, pale skin, behind teal mountains, snow, (high detailed skin:1.2), film grain, Fujifilm XT3, (high detailed face:1.3)

(Click for larger)
Top left: Romanticism In Photography The Beauty Grandeur And behind trees Of Nature The Suggestion Of The Divine In The Light And Nature Photos Nature Photography Nature, wallpaper hd, stunning photorealistic painting, photoshop, divine night sky,1920x1080
Top right: studio medium of glacial Temple candid, detailed portrait, film, studio lighting, detailed iris, symmetrical circular eyes
Bottom left: beach, city, romantic sillhouettes
Bottom right: intricate alligators ship under a vast magical starry sky with eclipse, detailed, wallpaper, 1920x1080, hd, desktop background, vivid, Blue Night Star Dream Backdrop
Original pages:
https://civitai.com/models/153869/fenn-photo
https://huggingface.co/Dunkindont/Foto-Assisted-Diffusion-FAD_V0/

(Click for larger)
Top left: a pretty cute indian girl wearing an apron. sunset
Top right: a PEACEFUL of a beautiful young girl with cleavage. Skirt
Bottom left: astronaut girl walking with gorilla, centered, (messy bun), pale skin, behind glacial mountains, (high detailed skin:1.2), film grain, Fujifilm XT3, (high detailed face:1.3)
Bottom right: a Cooking of a beautiful young cute girl

(Click for larger)
Top left: healthy beet juice cherries smoothie
Top right: full grill full of meat and artstation. fire
Bottom left: magic sushi, behind the mountains
Bottom right: chocolate popsicle surrounded by Shirley sprinkles

(Click for larger)
Top left: centered, (messy bun), pale skin, behind glacial mountains, a cute red, (high detailed skin:1.2), film grain, Fujifilm XT3, (high detailed face:1.3)
Top right: close up pretty cute girl ballerina from the nutcracker dancing in a magical fantasy winter. ocean
Bottom left: a pretty cute girl with long curly blonde hair, detailed face, holding her hand up, northern sky, walking by the ocean, blue sky, vast clouds
Bottom right: a pretty cute girl with eyes closed, riding her bike down the city streets of japan, panda hour

Top left: ladies as close Catwoman and Harley Quinn from the 2004 movie. up, medieval in cool armor, action scene, in a wonderland land
Top right: digital painting of a neoclassical painting with a golden sunset
Bottom left: an amazing close up photo of a detailed Afrikaan porsche 911 on a curvy, asphalt road, mountain
Bottom right: close up of two pretty cute young girls, indian wearing a red dress, centered, little sunset friend with long hair, behind busy street, (high detailed skin:1.2), film grain, Fujifilm XT3, (high detailed face:1.3)
* - *Examples weren't really generated in real time, I already did this joke, but what if you missed the other time?
# Recipe:
- SuperMerger Weight sum Train Difference Use MBW 1,0,0,0,1,1,1,0,1,0,0,1,1,0,1,1,0,0,1,0,1,1,1,0,0,0
Model A:
FennPhoto
Model B:
FotoAssistedDiffusion
Output Model:
FotoPhoto
|
[
-0.7593697309494019,
-0.7514410018920898,
0.38109707832336426,
0.37051093578338623,
-0.04694221913814545,
0.09161056578159332,
0.24437321722507477,
-0.855391263961792,
0.7421180009841919,
0.4941786229610443,
-0.6571531295776367,
-0.5310506224632263,
-0.38659244775772095,
-0.04621019586920738,
-0.24521349370479584,
0.7691832780838013,
-0.09166789054870605,
0.10779474675655365,
0.10409233719110489,
0.1769302487373352,
-0.44681185483932495,
-0.09656818211078644,
-0.18267346918582916,
-0.158988356590271,
0.11613079905509949,
0.3268493115901947,
0.7562799453735352,
0.33699774742126465,
0.1692115217447281,
0.29453691840171814,
-0.17208370566368103,
0.0683361366391182,
-0.37462177872657776,
-0.18391859531402588,
-0.0814606323838234,
-0.7803307771682739,
-0.5164376497268677,
0.3663012385368347,
0.15184657275676727,
0.4112621247768402,
-0.018864190205931664,
0.0504072830080986,
-0.22663891315460205,
0.6114171147346497,
-0.149919331073761,
-0.3074199855327606,
0.15601834654808044,
0.2118968367576599,
-0.17558696866035461,
0.3315167725086212,
0.17132368683815002,
-0.45990821719169617,
-0.13338950276374817,
-0.9848153591156006,
0.2154843807220459,
-0.003024615813046694,
1.3397070169448853,
-0.12652337551116943,
-0.5171599388122559,
-0.1802602857351303,
-0.5435956716537476,
0.5631523728370667,
-0.1910592019557953,
0.21854698657989502,
0.17126815021038055,
0.41100218892097473,
-0.36094343662261963,
-0.6840553283691406,
-0.6779608130455017,
0.10712000727653503,
-0.1132175400853157,
0.636197566986084,
-0.2831055819988251,
-0.594933032989502,
0.28659364581108093,
0.7168537974357605,
-0.741166353225708,
-0.12916164100170135,
-0.20612576603889465,
0.174219012260437,
0.8102595210075378,
-0.11780582368373871,
0.8695167303085327,
-0.09616760909557343,
-0.5794353485107422,
-0.36494767665863037,
-0.6974915862083435,
0.2663305103778839,
0.2103593945503235,
0.06999073177576065,
-0.7228668332099915,
0.5992292165756226,
-0.10299741476774216,
0.3334183096885681,
0.41794586181640625,
0.04663322493433952,
0.298931360244751,
-0.5745556950569153,
-0.07373671233654022,
-0.44295355677604675,
0.9070664644241333,
0.8425709009170532,
0.025186993181705475,
0.3762000501155853,
0.008725300431251526,
0.12191871553659439,
-0.18138854205608368,
-1.064428687095642,
-0.23124629259109497,
0.24567365646362305,
-0.6883103847503662,
-0.4769502580165863,
-0.08716147392988205,
-0.9673704504966736,
-0.03563713654875755,
0.05091052129864693,
0.16596810519695282,
-0.3626950979232788,
-0.651445209980011,
0.1684572696685791,
-0.2830093502998352,
0.29839858412742615,
0.2881385087966919,
-0.8120868802070618,
0.004888053983449936,
0.26933160424232483,
0.8178789019584656,
0.3411611020565033,
0.22104506194591522,
0.16190646588802338,
-0.09924960881471634,
-0.6859183311462402,
0.9159305691719055,
-0.3345186412334442,
-0.6021307110786438,
-0.44703927636146545,
0.3962097465991974,
0.1635456532239914,
-0.7068520188331604,
0.6536225080490112,
-0.0252113938331604,
0.1243380457162857,
-0.5468162894248962,
-0.14748507738113403,
-0.16026858985424042,
-0.09710443019866943,
-0.6394290328025818,
0.9170942306518555,
0.29330742359161377,
-0.5832999348640442,
0.46406251192092896,
-0.34891805052757263,
0.10021998733282089,
0.027607737109065056,
-0.1907844841480255,
-0.10310748219490051,
0.07405316829681396,
0.1643391251564026,
0.2469342052936554,
-0.2903607487678528,
-0.25296550989151,
-0.6979614496231079,
-0.2802600860595703,
0.4023670554161072,
0.2487429529428482,
1.0560539960861206,
0.6567081809043884,
-0.3733982443809509,
-0.2444789558649063,
-0.8270561695098877,
-0.028703982010483742,
0.6945458054542542,
-0.05415774881839752,
-0.5088062286376953,
-0.6915876865386963,
0.35768693685531616,
0.7324149012565613,
0.21352863311767578,
-0.5983420610427856,
0.11533049494028091,
-0.23986007273197174,
0.44213899970054626,
0.6740698218345642,
-0.028159093111753464,
0.3204336166381836,
-0.9040957093238831,
0.7427189946174622,
0.23218858242034912,
0.2189846783876419,
-0.18339450657367706,
-0.38814008235931396,
-0.7362577319145203,
-0.4384908378124237,
0.21759089827537537,
0.34575027227401733,
-0.6937653422355652,
0.292816162109375,
0.14444993436336517,
-0.9375412464141846,
-0.7829400300979614,
-0.00565152894705534,
0.4809506833553314,
0.24679723381996155,
0.01437120046466589,
-0.462823748588562,
-0.29220861196517944,
-0.9071046710014343,
-0.09325515478849411,
0.006643280386924744,
-0.2633035182952881,
0.40687277913093567,
0.3280315101146698,
-0.08025220781564713,
0.4764115810394287,
-0.5677672624588013,
-0.3192265033721924,
-0.0726000964641571,
-0.27476054430007935,
0.8084839582443237,
0.860241174697876,
1.176546335220337,
-1.1234747171401978,
-0.5170665979385376,
-0.10960181802511215,
-0.6186816096305847,
-0.07116416841745377,
0.25830793380737305,
-0.5999115705490112,
-0.14625486731529236,
-0.016068222001194954,
-0.9777995347976685,
0.2323484569787979,
0.26623064279556274,
-0.5686742663383484,
0.5253612995147705,
-0.3405110538005829,
0.4424128234386444,
-0.9924280047416687,
-0.16592025756835938,
0.4254245162010193,
-0.142289936542511,
-0.43098756670951843,
0.8316517472267151,
-0.2302592247724533,
-0.0866401419043541,
-0.7043348550796509,
0.9691344499588013,
-0.5875356793403625,
0.09012426435947418,
-0.09077169001102448,
0.050231531262397766,
0.28357088565826416,
0.2960301339626312,
0.2632879912853241,
0.2636731266975403,
0.7506945729255676,
-0.3756572902202606,
0.47456058859825134,
0.6249209046363831,
-0.22092163562774658,
0.9831829071044922,
-0.6983830332756042,
0.2719883620738983,
-0.014137660153210163,
0.3884083330631256,
-1.0479816198349,
-0.6059868931770325,
0.44993364810943604,
-0.6102159023284912,
0.021720033138990402,
-0.031459614634513855,
-0.6724748611450195,
-0.5393577814102173,
-0.5265523791313171,
0.21589359641075134,
0.8358966708183289,
-0.46927231550216675,
0.5624591708183289,
0.2118261307477951,
0.08234293013811111,
-0.2938039302825928,
-1.123291254043579,
-0.23276592791080475,
-0.1722121685743332,
-0.5980424880981445,
0.33695709705352783,
0.03081914782524109,
-0.3029237687587738,
0.08592641353607178,
-0.07843272387981415,
-0.18255406618118286,
-0.3317628502845764,
0.6403185725212097,
0.4323563277721405,
-0.10235816985368729,
-0.46875813603401184,
0.0030519026331603527,
0.07408434897661209,
-0.20189349353313446,
-0.14434921741485596,
0.38611212372779846,
-0.4265035390853882,
-0.03092627413570881,
-0.9123523831367493,
0.46002164483070374,
0.6093522906303406,
0.3664248585700989,
0.15868183970451355,
0.7324802875518799,
-0.27567511796951294,
0.11937971413135529,
-0.3511483371257782,
-0.41253411769866943,
-0.3903276026248932,
-0.2984846830368042,
-0.6297888159751892,
-0.42897477746009827,
0.698119044303894,
0.18726474046707153,
-0.23908159136772156,
0.40185311436653137,
0.2827429175376892,
-0.5275211334228516,
0.9911859631538391,
0.5494951605796814,
-0.16365812718868256,
0.29614710807800293,
-0.9177552461624146,
-0.03147260472178459,
-0.17128004133701324,
-0.13968537747859955,
-0.22112952172756195,
-0.4954747259616852,
-0.9000431299209595,
-0.5231987833976746,
0.032859478145837784,
0.10283476114273071,
-0.3495788872241974,
0.4471725523471832,
-0.46090108156204224,
0.3124887943267822,
0.42073050141334534,
0.4257802665233612,
0.3700200915336609,
-0.026457658037543297,
-0.14122912287712097,
-0.07672233134508133,
-0.5124741196632385,
-0.24639298021793365,
0.8758509159088135,
0.14023719727993011,
0.24669696390628815,
0.09080401062965393,
0.543057918548584,
-0.10860487818717957,
0.03019091859459877,
-0.29596662521362305,
0.8058881759643555,
-0.4016727805137634,
-1.0158398151397705,
0.40133535861968994,
-0.16585451364517212,
-0.5510696172714233,
0.285821795463562,
-0.47993922233581543,
-0.43250036239624023,
0.5028427839279175,
0.23033663630485535,
-0.6092479825019836,
0.17741915583610535,
-0.7633976340293884,
0.6463333368301392,
-0.14983654022216797,
-0.8026548624038696,
-0.1327296942472458,
-0.6370481848716736,
0.44209516048431396,
0.2652120590209961,
0.47677111625671387,
-0.26270484924316406,
-0.04239562898874283,
0.3548331558704376,
-0.3637910485267639,
0.5765929818153381,
-0.18114791810512543,
0.0132072689011693,
0.26681050658226013,
0.19346566498279572,
0.1530809998512268,
0.10677783191204071,
0.16306552290916443,
0.15596416592597961,
0.11410121619701385,
-0.6112225651741028,
-0.4970511198043823,
1.0665396451950073,
-0.5602126121520996,
-0.1451810896396637,
-0.2581297755241394,
-0.3538040816783905,
0.2688773572444916,
0.3276583254337311,
0.6628392338752747,
0.20832644402980804,
0.07931119948625565,
-0.22239530086517334,
0.30326446890830994,
-0.34212005138397217,
0.5442125797271729,
0.10372323542833328,
-0.6305493116378784,
-0.36322546005249023,
0.8142014145851135,
0.32558220624923706,
0.5143505930900574,
0.06429679691791534,
0.12123017013072968,
-0.3194822371006012,
-0.00813086424022913,
-0.3557095229625702,
0.6282968521118164,
-0.500156044960022,
0.16730399429798126,
-0.40908709168434143,
0.057367194443941116,
-0.16317537426948547,
-0.5208298563957214,
-0.47007861733436584,
-0.5121719837188721,
-0.3939445912837982,
-0.1651601493358612,
0.6114041805267334,
0.2297331839799881,
-0.2872653305530548,
0.10706718266010284,
-0.4506034255027771,
0.445640504360199,
0.2945481538772583,
0.28328046202659607,
-0.13355737924575806,
-0.07987923920154572,
0.38828760385513306,
0.12121912837028503,
-0.3498287498950958,
-0.7814202308654785,
0.6467757821083069,
-0.19527558982372284,
0.04228237271308899,
0.34443938732147217,
-0.24446678161621094,
0.6707318425178528,
-0.01045420952141285,
0.6867290139198303,
0.33939632773399353,
-0.3374512791633606,
0.4931302070617676,
-0.8076168298721313,
0.08801493048667908,
0.6229562759399414,
0.351374089717865,
-0.37599754333496094,
-0.4854521155357361,
-0.9146520495414734,
-0.7574809193611145,
0.22516606748104095,
0.27407559752464294,
0.22561359405517578,
0.23186379671096802,
0.5165558457374573,
0.06695201992988586,
0.3738023340702057,
-0.9463256597518921,
-0.398909330368042,
-0.41983872652053833,
0.03462276980280876,
0.09576504677534103,
0.36004316806793213,
0.029919834807515144,
-0.4237489700317383,
0.5326974391937256,
0.14306478202342987,
0.2358071655035019,
0.26800504326820374,
0.4520254135131836,
-0.31326600909233093,
-0.05472531169652939,
0.14165067672729492,
0.3253761827945709,
-0.3860144317150116,
-0.10733883082866669,
-0.09822701662778854,
-0.4175699055194855,
0.45999497175216675,
-0.10843002796173096,
-0.6345390677452087,
0.19762682914733887,
-0.014979609288275242,
0.5983913540840149,
0.11266035586595535,
-0.7586808204650879,
0.2932063341140747,
-0.00516662048175931,
0.10693247616291046,
-0.35436660051345825,
0.37608352303504944,
0.27872583270072937,
0.47401052713394165,
0.33230695128440857,
0.15297222137451172,
0.2902674973011017,
-0.8385129570960999,
-0.00943017564713955,
0.26493752002716064,
-0.24223554134368896,
-0.5583418011665344,
0.7232867479324341,
-0.18203948438167572,
0.08973392844200134,
0.14578230679035187,
-0.41326937079429626,
-0.1861053854227066,
0.9589320421218872,
0.565009355545044,
0.5948323607444763,
-0.3045808672904968,
0.4749819040298462,
0.6226633191108704,
-0.18144865334033966,
-0.06497284024953842,
0.7103306651115417,
0.10124139487743378,
-0.5148487091064453,
0.09244749695062637,
-0.7491931915283203,
-0.07293199002742767,
0.3747127056121826,
-0.17231449484825134,
0.7420303821563721,
-0.6920002102851868,
-0.11770165711641312,
0.06866107881069183,
0.17424100637435913,
-0.3192587196826935,
0.4428038001060486,
-0.052461929619312286,
0.8233122825622559,
-1.159633994102478,
0.5505344271659851,
0.5520598888397217,
-0.6731672286987305,
-0.9451926350593567,
-0.10815349221229553,
0.4142294228076935,
-0.30295804142951965,
0.5463590025901794,
0.30311572551727295,
0.021267205476760864,
-0.2006736844778061,
-0.7438784241676331,
-0.5154356956481934,
0.9898189902305603,
0.08045198768377304,
-0.6109252572059631,
0.013645722530782223,
-0.32693639397621155,
0.7536628246307373,
-0.4976673722267151,
0.6295962333679199,
0.7666343450546265,
0.38889530301094055,
0.6828952431678772,
-0.7268078327178955,
-0.015705078840255737,
-0.766231119632721,
0.32081958651542664,
-0.21168848872184753,
-1.2193257808685303,
0.9807761311531067,
-0.3590084910392761,
-0.2970113456249237,
0.5241208672523499,
0.5915278196334839,
0.9135496616363525,
0.434400737285614,
0.5755031108856201,
0.7353931665420532,
0.05323084816336632,
-0.208941251039505,
1.2652086019515991,
0.11267194151878357,
0.032780721783638,
0.5649132132530212,
-0.07187311351299286,
0.5154675841331482,
0.11387588828802109,
-0.5932878851890564,
0.1452791541814804,
1.4156368970870972,
-0.19248467683792114,
0.5413479208946228,
0.10778959840536118,
-0.22722455859184265,
0.14371731877326965,
-0.37817490100860596,
-0.463193416595459,
0.16155290603637695,
0.022266438230872154,
-0.15509310364723206,
-0.12413603812456131,
0.3216603100299835,
0.155079185962677,
0.18787308037281036,
-0.17100375890731812,
0.3928303122520447,
0.39441150426864624,
-0.30864962935447693,
0.8453170657157898,
-0.2698705792427063,
0.7541769742965698,
-0.24006801843643188,
-0.13197629153728485,
-0.4687749445438385,
-0.10712357610464096,
-0.4074706733226776,
-0.9301176071166992,
0.11927995085716248,
-0.08300168067216873,
-0.02886352501809597,
-0.457908034324646,
0.5863468050956726,
-0.36757418513298035,
-0.6365577578544617,
0.6008240580558777,
-0.04091076925396919,
0.49106308817863464,
0.24598181247711182,
-0.9397910237312317,
-0.0265541672706604,
0.03746941313147545,
-0.1179971918463707,
0.06181453913450241,
0.21371974050998688,
0.20124919712543488,
0.5136754512786865,
0.5257461667060852,
0.535332441329956,
-0.06694486737251282,
-0.15884721279144287,
0.7195205688476562,
-0.43206578493118286,
-0.6234325170516968,
-0.6420600414276123,
0.5384756922721863,
-0.12603139877319336,
-0.41987714171409607,
0.7910635471343994,
0.5024281740188599,
0.8172125816345215,
-0.2584612965583801,
0.6484318971633911,
-0.26357293128967285,
0.4556312561035156,
-0.4964992105960846,
0.6497465372085571,
-0.9283431172370911,
-0.09036161005496979,
-0.5767866373062134,
-0.9495700597763062,
-0.2564984858036041,
0.6083692908287048,
-0.17772215604782104,
0.19284619390964508,
0.03759380802512169,
0.8663926124572754,
-0.1825825721025467,
-0.1956263929605484,
-0.1492905467748642,
0.4439529478549957,
0.30472415685653687,
0.6046898365020752,
0.9928863644599915,
-0.4410988986492157,
-0.1591203361749649,
-0.6851193308830261,
-0.38473406434059143,
-0.3791908323764801,
-0.6063100099563599,
-0.48880428075790405,
-0.6115909814834595,
-0.32057732343673706,
-0.2263898402452469,
-0.27378782629966736,
0.7248383164405823,
0.8658397197723389,
-0.5446851849555969,
-0.2835494577884674,
-0.013182626105844975,
-0.03316697105765343,
-0.24826960265636444,
-0.189865380525589,
0.014897722750902176,
0.5955073237419128,
-1.1132969856262207,
0.20788992941379547,
0.2084670215845108,
0.9702117443084717,
-0.08147072792053223,
0.25222766399383545,
-0.1361190378665924,
-0.02913435734808445,
0.26828187704086304,
0.1813858449459076,
-0.5559918284416199,
0.09345454722642899,
0.06083255261182785,
0.049932245165109634,
0.09133093059062958,
0.24685369431972504,
-0.2735756039619446,
0.27465248107910156,
0.6460325121879578,
0.04185498505830765,
0.8328362703323364,
0.031906481832265854,
0.17271603643894196,
-0.24826443195343018,
0.4513421356678009,
-0.0997013971209526,
0.2692859470844269,
0.3637857735157013,
-0.4439440071582794,
0.5879002809524536,
0.5180575847625732,
-0.30419862270355225,
-0.9585925340652466,
0.2137521356344223,
-1.2324120998382568,
-0.3645268678665161,
0.7344492673873901,
0.01979862153530121,
-0.5931858420372009,
0.4431908130645752,
-0.26878395676612854,
-0.052214860916137695,
-0.15529794991016388,
0.41870445013046265,
0.749022901058197,
-0.19640225172042847,
-0.06021137163043022,
-1.0087652206420898,
0.24945582449436188,
0.4505811333656311,
-0.708256185054779,
-0.2581908106803894,
0.7698245644569397,
0.4923105537891388,
0.6356410384178162,
0.6674510836601257,
-0.45605993270874023,
0.07782042771577835,
0.040082454681396484,
0.24342845380306244,
0.38850903511047363,
-0.21189160645008087,
-0.23071549832820892,
0.06539879739284515,
-0.3786211311817169,
-0.36850684881210327
] |
anantoj/wav2vec2-xls-r-1b-korean
|
anantoj
| 2022-03-23T18:29:13Z | 8,541 | 2 |
transformers
|
[
"transformers",
"pytorch",
"wav2vec2",
"automatic-speech-recognition",
"generated_from_trainer",
"hf-asr-leaderboard",
"robust-speech-event",
"ko",
"dataset:kresnik/zeroth_korean",
"license:apache-2.0",
"model-index",
"endpoints_compatible",
"region:us"
] |
automatic-speech-recognition
| 2022-03-02T23:29:05Z |
---
language: ko
license: apache-2.0
tags:
- automatic-speech-recognition
- generated_from_trainer
- hf-asr-leaderboard
- robust-speech-event
datasets:
- kresnik/zeroth_korean
model-index:
- name: Wav2Vec2 XLS-R 1B Korean
results:
- task:
name: Automatic Speech Recognition
type: automatic-speech-recognition
dataset:
name: Robust Speech Event - Dev Data
type: speech-recognition-community-v2/dev_data
args: ko
metrics:
- name: Test WER
type: wer
value: 82.07
- name: Test CER
type: cer
value: 42.12
- task:
name: Automatic Speech Recognition
type: automatic-speech-recognition
dataset:
name: Robust Speech Event - Test Data
type: speech-recognition-community-v2/eval_data
args: ko
metrics:
- name: Test WER
type: wer
value: 82.09
---
<!-- 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. -->
#
This model is a fine-tuned version of [facebook/wav2vec2-xls-r-1b](https://huggingface.co/facebook/wav2vec2-xls-r-1b) on the KRESNIK/ZEROTH_KOREAN - CLEAN dataset.
It achieves the following results on the evaluation set:
- Loss: 0.0639
- Wer: 0.0449
## 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: 7.5e-05
- train_batch_size: 8
- eval_batch_size: 8
- seed: 42
- gradient_accumulation_steps: 4
- total_train_batch_size: 32
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- lr_scheduler_warmup_steps: 2000
- num_epochs: 50.0
- mixed_precision_training: Native AMP
### Training results
| Training Loss | Epoch | Step | Validation Loss | Wer |
|:-------------:|:-----:|:-----:|:---------------:|:------:|
| 4.603 | 0.72 | 500 | 4.6572 | 0.9985 |
| 2.6314 | 1.44 | 1000 | 2.0424 | 0.9256 |
| 2.2708 | 2.16 | 1500 | 0.9889 | 0.6989 |
| 2.1769 | 2.88 | 2000 | 0.8366 | 0.6312 |
| 2.1142 | 3.6 | 2500 | 0.7555 | 0.5998 |
| 2.0084 | 4.32 | 3000 | 0.7144 | 0.6003 |
| 1.9272 | 5.04 | 3500 | 0.6311 | 0.5461 |
| 1.8687 | 5.75 | 4000 | 0.6252 | 0.5430 |
| 1.8186 | 6.47 | 4500 | 0.5491 | 0.4988 |
| 1.7364 | 7.19 | 5000 | 0.5463 | 0.4959 |
| 1.6809 | 7.91 | 5500 | 0.4724 | 0.4484 |
| 1.641 | 8.63 | 6000 | 0.4679 | 0.4461 |
| 1.572 | 9.35 | 6500 | 0.4387 | 0.4236 |
| 1.5256 | 10.07 | 7000 | 0.3970 | 0.4003 |
| 1.5044 | 10.79 | 7500 | 0.3690 | 0.3893 |
| 1.4563 | 11.51 | 8000 | 0.3752 | 0.3875 |
| 1.394 | 12.23 | 8500 | 0.3386 | 0.3567 |
| 1.3641 | 12.95 | 9000 | 0.3290 | 0.3467 |
| 1.2878 | 13.67 | 9500 | 0.2893 | 0.3135 |
| 1.2602 | 14.39 | 10000 | 0.2723 | 0.3029 |
| 1.2302 | 15.11 | 10500 | 0.2603 | 0.2989 |
| 1.1865 | 15.83 | 11000 | 0.2440 | 0.2794 |
| 1.1491 | 16.55 | 11500 | 0.2500 | 0.2788 |
| 1.093 | 17.27 | 12000 | 0.2279 | 0.2629 |
| 1.0367 | 17.98 | 12500 | 0.2076 | 0.2443 |
| 0.9954 | 18.7 | 13000 | 0.1844 | 0.2259 |
| 0.99 | 19.42 | 13500 | 0.1794 | 0.2179 |
| 0.9385 | 20.14 | 14000 | 0.1765 | 0.2122 |
| 0.8952 | 20.86 | 14500 | 0.1706 | 0.1974 |
| 0.8841 | 21.58 | 15000 | 0.1791 | 0.1969 |
| 0.847 | 22.3 | 15500 | 0.1780 | 0.2060 |
| 0.8669 | 23.02 | 16000 | 0.1608 | 0.1862 |
| 0.8066 | 23.74 | 16500 | 0.1447 | 0.1626 |
| 0.7908 | 24.46 | 17000 | 0.1457 | 0.1655 |
| 0.7459 | 25.18 | 17500 | 0.1350 | 0.1445 |
| 0.7218 | 25.9 | 18000 | 0.1276 | 0.1421 |
| 0.703 | 26.62 | 18500 | 0.1177 | 0.1302 |
| 0.685 | 27.34 | 19000 | 0.1147 | 0.1305 |
| 0.6811 | 28.06 | 19500 | 0.1128 | 0.1244 |
| 0.6444 | 28.78 | 20000 | 0.1120 | 0.1213 |
| 0.6323 | 29.5 | 20500 | 0.1137 | 0.1166 |
| 0.5998 | 30.22 | 21000 | 0.1051 | 0.1107 |
| 0.5706 | 30.93 | 21500 | 0.1035 | 0.1037 |
| 0.5555 | 31.65 | 22000 | 0.1031 | 0.0927 |
| 0.5389 | 32.37 | 22500 | 0.0997 | 0.0900 |
| 0.5201 | 33.09 | 23000 | 0.0920 | 0.0912 |
| 0.5146 | 33.81 | 23500 | 0.0929 | 0.0947 |
| 0.515 | 34.53 | 24000 | 0.1000 | 0.0953 |
| 0.4743 | 35.25 | 24500 | 0.0922 | 0.0892 |
| 0.4707 | 35.97 | 25000 | 0.0852 | 0.0808 |
| 0.4456 | 36.69 | 25500 | 0.0855 | 0.0779 |
| 0.443 | 37.41 | 26000 | 0.0843 | 0.0738 |
| 0.4388 | 38.13 | 26500 | 0.0816 | 0.0699 |
| 0.4162 | 38.85 | 27000 | 0.0752 | 0.0645 |
| 0.3979 | 39.57 | 27500 | 0.0761 | 0.0621 |
| 0.3889 | 40.29 | 28000 | 0.0771 | 0.0625 |
| 0.3923 | 41.01 | 28500 | 0.0755 | 0.0598 |
| 0.3693 | 41.73 | 29000 | 0.0730 | 0.0578 |
| 0.3642 | 42.45 | 29500 | 0.0739 | 0.0598 |
| 0.3532 | 43.17 | 30000 | 0.0712 | 0.0553 |
| 0.3513 | 43.88 | 30500 | 0.0762 | 0.0516 |
| 0.3349 | 44.6 | 31000 | 0.0731 | 0.0504 |
| 0.3305 | 45.32 | 31500 | 0.0725 | 0.0507 |
| 0.3285 | 46.04 | 32000 | 0.0709 | 0.0489 |
| 0.3179 | 46.76 | 32500 | 0.0667 | 0.0467 |
| 0.3158 | 47.48 | 33000 | 0.0653 | 0.0494 |
| 0.3033 | 48.2 | 33500 | 0.0638 | 0.0456 |
| 0.3023 | 48.92 | 34000 | 0.0644 | 0.0464 |
| 0.2975 | 49.64 | 34500 | 0.0643 | 0.0455 |
### Framework versions
- Transformers 4.17.0.dev0
- Pytorch 1.10.2+cu102
- Datasets 1.18.3.dev0
- Tokenizers 0.11.0
|
[
-0.7140921950340271,
-0.6315153241157532,
0.21400684118270874,
0.11324948072433472,
-0.06984946131706238,
0.002930714748799801,
-0.04594241455197334,
0.006102672778069973,
0.7866268754005432,
0.45622894167900085,
-0.6522977352142334,
-0.769911527633667,
-0.7352297306060791,
-0.18723784387111664,
0.08693870157003403,
0.8039963245391846,
0.07949621975421906,
-0.2306959629058838,
-0.07499493658542633,
-0.2524532079696655,
-0.36410894989967346,
0.05778355151414871,
-0.8641219139099121,
-0.18188916146755219,
0.09597427397966385,
0.6183050274848938,
0.9559429287910461,
0.8408396244049072,
0.4993140399456024,
0.4720844626426697,
-0.32206013798713684,
0.09657787531614304,
-0.3106061518192291,
-0.6492874622344971,
0.06645470857620239,
-0.6125341653823853,
-0.384821355342865,
0.011329133063554764,
0.5686967372894287,
0.726712703704834,
-0.10418236255645752,
0.5501860976219177,
0.04350193962454796,
1.1567444801330566,
-0.39328357577323914,
0.2783318758010864,
-0.20607857406139374,
0.03958312049508095,
-0.23694734275341034,
-0.3356015086174011,
0.1728040874004364,
-0.673219621181488,
0.12215172499418259,
-0.6277462840080261,
0.3928922414779663,
-0.01956409029662609,
1.6417495012283325,
0.2191334068775177,
-0.4228146970272064,
-0.0006554104038514197,
-0.43528833985328674,
0.7881813645362854,
-0.6545187830924988,
0.41106167435646057,
0.6341320872306824,
0.1440020352602005,
-0.14628371596336365,
-0.87172931432724,
-0.82085782289505,
0.34539565443992615,
-0.3782658874988556,
0.36524415016174316,
-0.1276649832725525,
-0.5423307418823242,
0.5105928778648376,
0.6529276967048645,
-0.6764334440231323,
-0.3023345470428467,
-0.7456774711608887,
-0.20617331564426422,
0.8145984411239624,
0.35526207089424133,
0.39015719294548035,
-0.8017769455909729,
-0.7331029772758484,
-0.27207687497138977,
-0.37767890095710754,
0.8896691799163818,
0.6366539001464844,
0.17157649993896484,
-0.5484870672225952,
0.5685710310935974,
-0.1666286140680313,
0.5381202101707458,
0.26629582047462463,
-0.24474309384822845,
0.968643307685852,
-0.570430338382721,
-0.3260889947414398,
-0.2045641839504242,
0.8543725609779358,
0.7185903787612915,
-0.1671895980834961,
0.2180776596069336,
0.05299205332994461,
0.05531890690326691,
0.059566475450992584,
-0.8027229309082031,
-0.33314672112464905,
0.620509147644043,
-0.5989360809326172,
-0.31069156527519226,
0.20772454142570496,
-0.9669243693351746,
0.08360021561384201,
-0.4099743068218231,
0.2977977991104126,
-0.2576533257961273,
-0.6040890216827393,
0.10146288573741913,
-0.2603984475135803,
0.27537354826927185,
0.35908958315849304,
-1.0879524946212769,
0.35877710580825806,
0.3340717554092407,
1.0528149604797363,
0.09094298630952835,
-0.07587524503469467,
0.145271435379982,
0.35213443636894226,
-0.6235863566398621,
0.8302953243255615,
0.0038244302850216627,
-0.49709486961364746,
-0.3702709972858429,
0.47460097074508667,
-0.40654733777046204,
-0.3706930875778198,
0.7408918738365173,
-0.24416066706180573,
0.2531173527240753,
-0.5125682950019836,
-0.3041175305843353,
-0.15507663786411285,
0.44947782158851624,
-0.7636529207229614,
1.4660515785217285,
0.3564690947532654,
-1.1425764560699463,
0.582689106464386,
-0.6249723434448242,
0.027476927265524864,
-0.1046447902917862,
0.05957462638616562,
-0.9784685373306274,
-0.35905206203460693,
0.36350488662719727,
0.2953428328037262,
-0.3835463523864746,
0.21509724855422974,
0.006434405222535133,
-0.2659173607826233,
-0.30467459559440613,
-0.17057667672634125,
1.481118083000183,
0.35234537720680237,
-0.6012991666793823,
0.10690952837467194,
-1.2813206911087036,
0.2764315605163574,
0.23483633995056152,
-0.6406409740447998,
-0.04749084264039993,
-0.3438461422920227,
0.12703222036361694,
0.23639215528964996,
0.4218829572200775,
-0.6918336749076843,
0.2542678415775299,
-0.4184262454509735,
0.5390743613243103,
0.720315158367157,
0.2462811917066574,
0.5342620015144348,
-0.6575623154640198,
0.45355165004730225,
0.469938725233078,
0.3451054096221924,
0.0823308676481247,
-0.48103177547454834,
-0.9458534717559814,
-0.6242225170135498,
0.050284452736377716,
0.6291675567626953,
-0.35997700691223145,
0.624284029006958,
-0.13609814643859863,
-0.7789647579193115,
-0.5926725268363953,
-0.12405972927808762,
0.19257725775241852,
0.816164493560791,
0.3081434667110443,
-0.08018770068883896,
-0.6831533908843994,
-1.0784482955932617,
0.014074825681746006,
0.08340059965848923,
0.27849963307380676,
0.6856114268302917,
1.0719916820526123,
-0.306998610496521,
1.2616580724716187,
-0.7328336238861084,
-0.7675570249557495,
-0.12126476317644119,
-0.20122812688350677,
0.8756569623947144,
0.6459122896194458,
0.927678108215332,
-0.8843860626220703,
-0.9622161984443665,
0.14358600974082947,
-0.7811815738677979,
0.3428400754928589,
-0.15084318816661835,
-0.02426980435848236,
0.036488790065050125,
0.1722133755683899,
-0.6567994952201843,
0.9451671838760376,
0.6088554263114929,
-0.6623520255088806,
0.856714129447937,
-0.5583466291427612,
0.5658066868782043,
-1.298520565032959,
0.3963877260684967,
-0.051241569221019745,
-0.1287708282470703,
-0.2864883542060852,
-0.18876522779464722,
0.06636669486761093,
-0.2355579286813736,
-0.2903764545917511,
0.7825515270233154,
-0.6842606067657471,
0.08658330887556076,
0.13517352938652039,
0.08775720745325089,
-0.00023098125529941171,
0.7043431997299194,
-0.05287047475576401,
1.0872842073440552,
1.0987176895141602,
-0.6746311783790588,
0.3013942241668701,
0.3162020742893219,
-0.6306312084197998,
0.6981078386306763,
-0.7378214001655579,
-0.067148357629776,
-0.20946140587329865,
0.045539386570453644,
-1.4165695905685425,
-0.4217338263988495,
0.38913121819496155,
-0.6223697066307068,
0.23271232843399048,
-0.056290823966264725,
-0.09862764924764633,
-1.158954381942749,
-0.6308650970458984,
-0.19277958571910858,
0.21819020807743073,
-0.39493584632873535,
0.595270037651062,
0.3587042987346649,
0.11723573505878448,
-0.7482655048370361,
-0.8235712647438049,
0.007812767289578915,
-0.05595441535115242,
-0.9636479616165161,
0.4181259870529175,
-0.12895651161670685,
-0.10450419038534164,
0.1652088314294815,
-0.05030464380979538,
-0.21717621386051178,
0.14460746943950653,
0.41891780495643616,
0.12373436242341995,
-0.2420748621225357,
-0.39290037751197815,
-0.20464485883712769,
-0.5496087074279785,
-0.15127389132976532,
0.012761056423187256,
0.49624669551849365,
-0.28471070528030396,
-0.5046239495277405,
-0.8014839291572571,
-0.0354255810379982,
0.6423838138580322,
-0.46610891819000244,
1.2391382455825806,
0.6101415753364563,
-0.30413562059402466,
0.17483869194984436,
-0.3890239894390106,
-0.03115292452275753,
-0.5041553378105164,
0.29126542806625366,
-0.7328512072563171,
-0.8118905425071716,
0.9012151956558228,
-0.29639866948127747,
0.1450049877166748,
0.7754673361778259,
0.5629146695137024,
-0.09338881075382233,
0.9299014806747437,
0.2901652753353119,
-0.1376074254512787,
0.2163282185792923,
-1.1252021789550781,
0.19691723585128784,
-0.8492210507392883,
-0.7452106475830078,
-0.6629801988601685,
-0.4998745024204254,
-0.5190759301185608,
-0.2672179639339447,
0.4945846498012543,
0.1926998794078827,
-0.5933813452720642,
0.29024869203567505,
-0.8546915054321289,
0.3313932716846466,
0.8852004408836365,
0.5123200416564941,
0.01967761665582657,
-0.1583690047264099,
-0.33002564311027527,
-0.2584000825881958,
-0.587130606174469,
-0.6715337038040161,
1.4205467700958252,
0.23147504031658173,
0.4432627856731415,
0.28404000401496887,
0.9708837866783142,
0.23125538229942322,
-0.07251742482185364,
-0.5306971073150635,
0.15641140937805176,
0.20834314823150635,
-0.9348369836807251,
-0.41150856018066406,
-0.1476975977420807,
-1.2032654285430908,
0.5037912726402283,
-0.3254765570163727,
-1.1324743032455444,
0.7402506470680237,
0.23063863813877106,
-0.563768744468689,
0.6153508424758911,
-0.6663680076599121,
0.9442565441131592,
-0.007466839160770178,
-0.7981114983558655,
-0.06673318147659302,
-0.8480387926101685,
0.4414864182472229,
0.11447525769472122,
0.4169764518737793,
-0.14009438455104828,
0.045683011412620544,
0.7378880977630615,
-0.8757154941558838,
0.3293212652206421,
-0.2642931342124939,
0.3220856189727783,
0.6718167662620544,
-0.22428864240646362,
0.7316349148750305,
0.21434292197227478,
-0.2834216058254242,
-0.1538878232240677,
0.16790492832660675,
-0.6992878913879395,
-0.31288859248161316,
1.1051803827285767,
-1.2836650609970093,
-0.9185250997543335,
-0.5756633281707764,
-0.43849286437034607,
0.35836368799209595,
0.3982781767845154,
0.42757460474967957,
0.5282153487205505,
0.10643032938241959,
0.32133281230926514,
0.7204609513282776,
-0.11297285556793213,
0.7722962498664856,
0.26891398429870605,
-0.14894212782382965,
-1.042571783065796,
0.843315064907074,
0.14248931407928467,
0.32601967453956604,
0.00466687697917223,
0.3165476620197296,
-0.641577959060669,
-0.2957661747932434,
-0.44532719254493713,
0.1992810070514679,
-0.24839971959590912,
-0.32572075724601746,
-0.8776190280914307,
-0.04976535215973854,
-0.964775800704956,
-0.5323461890220642,
-0.5861546397209167,
-0.2538248300552368,
-0.4929687976837158,
-0.31298962235450745,
0.730360746383667,
0.6923922300338745,
-0.29504334926605225,
0.42450225353240967,
-0.5521173477172852,
0.29252997040748596,
0.07434971630573273,
0.18840676546096802,
0.04196307063102722,
-0.4755987226963043,
-0.3077065944671631,
0.0750444233417511,
-0.5152920484542847,
-0.895920991897583,
0.9145535230636597,
-0.09403709322214127,
0.4948858618736267,
0.703739583492279,
-0.10514835268259048,
1.1716893911361694,
-0.06487264484167099,
0.9665623903274536,
0.4515075981616974,
-0.8510961532592773,
0.7356250882148743,
-0.37811198830604553,
0.33255597949028015,
0.8277773857116699,
0.5297633409500122,
-0.5864332318305969,
-0.2451537698507309,
-1.158746600151062,
-1.0198018550872803,
1.000420331954956,
0.3403753638267517,
0.02842804230749607,
0.08312979340553284,
0.2893698513507843,
-0.4819365441799164,
0.36841702461242676,
-0.9917265176773071,
-1.1041468381881714,
-0.2119857370853424,
0.0690259337425232,
-0.0060599022544920444,
-0.1788954883813858,
-0.23490451276302338,
-0.6946004033088684,
0.6569123864173889,
0.3301222324371338,
0.29893696308135986,
0.42350858449935913,
0.2622166872024536,
-0.31247663497924805,
0.1622341126203537,
0.7188301682472229,
0.9040091037750244,
-0.5966052412986755,
0.07785570621490479,
0.013602674938738346,
-0.5757319927215576,
0.2850343585014343,
-0.12485779076814651,
-0.5254414677619934,
-0.01343792024999857,
0.27663740515708923,
0.6675688028335571,
0.0705643966794014,
0.18733011186122894,
0.6574563384056091,
0.2653852701187134,
-0.6703034043312073,
-0.5404617786407471,
-0.14224061369895935,
0.3297266960144043,
0.46468472480773926,
0.5466465353965759,
0.5708935260772705,
-0.03716658428311348,
-0.7062686085700989,
0.24519826471805573,
0.5381329655647278,
-0.5801690816879272,
-0.016954980790615082,
1.1442739963531494,
0.07641343772411346,
-0.33569657802581787,
0.4493061900138855,
-0.07977545261383057,
-0.744385838508606,
1.1183936595916748,
0.48237597942352295,
0.5411795377731323,
-0.3262994885444641,
0.20937681198120117,
1.3674161434173584,
0.3932609558105469,
0.051815662533044815,
0.7147311568260193,
0.0625268891453743,
-0.37092092633247375,
0.2938231825828552,
-0.7256953716278076,
-0.02743050642311573,
0.33770355582237244,
-0.7681415677070618,
0.5955942273139954,
-0.5470684170722961,
-0.5261420607566833,
-0.30753186345100403,
0.5489439368247986,
-0.862276554107666,
0.49972087144851685,
-0.24628785252571106,
1.167404294013977,
-1.1411075592041016,
0.6762405633926392,
0.7529523372650146,
-0.9207527041435242,
-1.3577734231948853,
-0.6103975772857666,
-0.049973610788583755,
-0.7140929698944092,
0.7416172623634338,
0.028856052085757256,
0.2610936462879181,
0.27482184767723083,
-0.6660701632499695,
-1.466504693031311,
1.604837417602539,
-0.1880606710910797,
-0.6248793005943298,
0.5392203330993652,
0.04855157807469368,
0.4817745089530945,
0.019376816228032112,
0.5196083784103394,
0.590267539024353,
0.788466215133667,
0.2789115011692047,
-0.9628331065177917,
0.12461517006158829,
-0.45916855335235596,
-0.05772176384925842,
0.4137646555900574,
-1.0628597736358643,
1.4332624673843384,
-0.5242137908935547,
0.0315978117287159,
0.024792874231934547,
0.6714361906051636,
0.45696282386779785,
0.2900778353214264,
0.39484432339668274,
1.2965301275253296,
0.9934388995170593,
-0.3298352360725403,
1.2595309019088745,
-0.4645836651325226,
0.973730742931366,
0.8544639945030212,
0.23807480931282043,
0.8654987812042236,
0.5218666791915894,
-0.845737874507904,
0.43328890204429626,
1.019830584526062,
-0.19688865542411804,
0.645879864692688,
-0.015510903671383858,
-0.44916778802871704,
-0.07417827099561691,
0.11998767405748367,
-0.7900703549385071,
0.11105787009000778,
0.10309882462024689,
-0.4885571599006653,
-0.275017648935318,
-0.12482989579439163,
0.1056508794426918,
0.09518101811408997,
-0.5139204263687134,
0.44983047246932983,
-0.2345268279314041,
-0.2929769456386566,
0.37269678711891174,
-0.10100078582763672,
0.7213042974472046,
-0.647929310798645,
0.08027513325214386,
-0.06531819701194763,
0.591240406036377,
-0.8153628706932068,
-1.1616848707199097,
0.3094143569469452,
-0.35771191120147705,
-0.44521477818489075,
0.02644484117627144,
0.5381211638450623,
-0.22392453253269196,
-0.6743714213371277,
0.08874469995498657,
0.20206478238105774,
0.2004234939813614,
0.21467730402946472,
-0.9932299852371216,
-0.30208471417427063,
0.334221214056015,
-0.8022404313087463,
0.07495680451393127,
0.5824611783027649,
0.015196227468550205,
0.49921369552612305,
0.9843331575393677,
0.23109693825244904,
0.21379342675209045,
-0.3338959217071533,
1.2423776388168335,
-0.808984100818634,
-0.6572248339653015,
-0.8015197515487671,
0.5485164523124695,
-0.2922123372554779,
-0.6973645091056824,
1.04884934425354,
0.9862739443778992,
0.5700997114181519,
-0.26368558406829834,
0.6643567681312561,
-0.6204280853271484,
0.7165313363075256,
-0.17508786916732788,
0.8205097317695618,
-0.9079629182815552,
-0.24541571736335754,
-0.27199751138687134,
-0.7753000855445862,
-0.4270123243331909,
0.9482774138450623,
-0.6945115923881531,
0.028558025136590004,
0.6257895827293396,
1.1512305736541748,
0.23569656908512115,
-0.027072304859757423,
0.06902313977479935,
-0.0013889226829633117,
0.01528922189027071,
0.5826084613800049,
0.4796234965324402,
-0.7896362543106079,
0.4207988381385803,
-0.8113862872123718,
-0.05545635521411896,
-0.20654596388339996,
-0.7920175194740295,
-0.6792089343070984,
-0.5349157452583313,
-0.6853099465370178,
-0.5539478659629822,
-0.2962973713874817,
1.0661317110061646,
0.7866746783256531,
-0.8180417418479919,
-0.42178452014923096,
-0.11352218687534332,
0.1807718724012375,
-0.21757888793945312,
-0.24235104024410248,
1.2957561016082764,
0.019787343218922615,
-0.9085691571235657,
-0.17563125491142273,
0.28180843591690063,
0.34550678730010986,
0.0008658724837005138,
-0.14896853268146515,
-0.4584071934223175,
-0.11391939222812653,
0.5256916880607605,
0.36402732133865356,
-0.6969886422157288,
-0.14549651741981506,
-0.1226063072681427,
-0.3695688843727112,
0.54469895362854,
0.24709993600845337,
-0.6254010200500488,
0.5149763226509094,
0.43299031257629395,
0.3628312051296234,
0.8665562272071838,
0.17193573713302612,
-0.015321477316319942,
-0.37736305594444275,
0.3033902645111084,
-0.2412538230419159,
0.3011658787727356,
0.11421484500169754,
-0.594251811504364,
0.8034892082214355,
0.6549601554870605,
-0.7284270524978638,
-0.7279506325721741,
-0.38062968850135803,
-1.3933284282684326,
0.05408623442053795,
1.0827778577804565,
-0.16866639256477356,
-0.8018878102302551,
-0.06230755150318146,
-0.5223921537399292,
0.14143912494182587,
-0.5367414951324463,
0.46753042936325073,
0.6671129465103149,
-0.34211015701293945,
-0.09902395308017731,
-0.8598929047584534,
0.5204493403434753,
-0.029785677790641785,
-0.8287426233291626,
-0.3908488154411316,
0.3553812503814697,
0.5393744111061096,
0.41860589385032654,
0.9539202451705933,
-0.1780368536710739,
0.2183322310447693,
0.45862385630607605,
0.27387580275535583,
-0.06687287241220474,
0.012026646174490452,
-0.015813136473298073,
0.33107930421829224,
-0.07256021350622177,
-0.646885097026825
] |
internlm/internlm-20b
|
internlm
| 2023-11-07T11:10:17Z | 8,531 | 67 |
transformers
|
[
"transformers",
"pytorch",
"internlm",
"feature-extraction",
"text-generation",
"custom_code",
"license:apache-2.0",
"region:us"
] |
text-generation
| 2023-09-18T03:27:33Z |
---
license: apache-2.0
pipeline_tag: text-generation
---
**InternLM**
<div align="center">
<img src="https://github.com/InternLM/InternLM/assets/22529082/b9788105-8892-4398-8b47-b513a292378e" width="200"/>
<div> </div>
<div align="center">
<b><font size="5">InternLM</font></b>
<sup>
<a href="https://internlm.intern-ai.org.cn/">
<i><font size="4">HOT</font></i>
</a>
</sup>
<div> </div>
</div>
[](https://github.com/internLM/OpenCompass/)
[💻Github Repo](https://github.com/InternLM/InternLM) • [🤔Reporting Issues](https://github.com/InternLM/InternLM/issues/new)
</div>
## Introduction
The Shanghai Artificial Intelligence Laboratory, in collaboration with SenseTime Technology, the Chinese University of Hong Kong, and Fudan University, has officially released the 20 billion parameter pretrained model, InternLM-20B. InternLM-20B was pre-trained on over **2.3T** Tokens containing high-quality English, Chinese, and code data. Additionally, the Chat version has undergone SFT and RLHF training, enabling it to better and more securely meet users' needs.
In terms of model structure, InternLM-20B opted for a deeper architecture, with a depth set at 60 layers. This surpasses the conventional 7B and 13B models that utilize 32 or 40 layers. When parameters are limited, increasing the number of layers can enhance the model's overall capability. Furthermore, compared to InternLM-7B, the pre-training data used for InternLM-20B underwent higher quality cleansing and was supplemented with data rich in knowledge and designed for reinforcing understanding and reasoning capabilities. As a result, it exhibits significant improvements in understanding, reasoning, mathematical, and programming abilities—all of which test the technical proficiency of language models. Overall, InternLM-20B features the following characteristics:
- Outstanding overall performance
- Strong utility invocation capability
- Supports a 16k context length (Through infererence extrapolation)
- Better value alignment.
## Performance Evaluation
On the 5 capability dimensions proposed by OpenCompass, InternLM-20B has achieved excellent results (the bolded scores represent the best performances within the 13B-33B parameter range).
| Capability | Llama-13B | Llama2-13B | Baichuan2-13B | InternLM-20B | Llama-33B | Llama-65B | Llama2-70B |
|----------|-----------|------------|---------------|--------------|-----------|-----------|------------|
| Language | 42.5 | 47 | 47.5 | **55** | 44.6 | 47.1 | 51.6 |
| Knowledge | 58.2 | 58.3 | 48.9 | 60.1 | **64** | 66 | 67.7 |
| Understanding | 45.5 | 50.9 | 58.1 | **67.3** | 50.6 | 54.2 | 60.8 |
| Reasoning | 42.7 | 43.6 | 44.2 | **54.9** | 46.4 | 49.8 | 55 |
| Examination | 37.3 | 45.2 | 51.8 | **62.5** | 47.4 | 49.7 | 57.3 |
| Overall | 43.8 | 47.3 | 49.4 | **59.2** | 48.9 | 51.9 | 57.4 |
The table below compares the performance of mainstream open-source models on some influential and typical datasets.
| | Benchmarks | Llama-13B | Llama2-13B | Baichuan2-13B | InternLM-20B | Llama-33B | Llama-65B | Llama2-70B |
|------|------------------|-----------|------------|---------------|--------------|-----------|-----------|------------|
| Examination | MMLU | 47.73 | 54.99 | 59.55 | **62.05** | 58.73 | 63.71 | 69.75 |
| | C-Eval (val) | 31.83 | 41.4 | **59.01** | 58.8 | 37.47 | 40.36 | 50.13 |
| | AGI-Eval | 22.03 | 30.93 | 37.37 | **44.58** | 33.53 | 33.92 | 40.02 |
| Knowledge | BoolQ | 78.75 | 82.42 | 67 | **87.46** | 84.43 | 86.61 | 87.74 |
| | TriviaQA | 52.47 | 59.36 | 46.61 | 57.26 | **66.24** | 69.79 | 70.71 |
| | NaturalQuestions | 20.17 | 24.85 | 16.32 | 25.15 | **30.89** | 33.41 | 34.16 |
| Understanding | CMRC | 9.26 | 31.59 | 29.85 | **68.78** | 14.17 | 34.73 | 43.74 |
| | CSL | 55 | 58.75 | 63.12 | **65.62** | 57.5 | 59.38 | 60 |
| | RACE (middle) | 53.41 | 63.02 | 68.94 | **86.35** | 64.55 | 72.35 | 81.55 |
| | RACE (high) | 47.63 | 58.86 | 67.18 | **83.28** | 62.61 | 68.01 | 79.93 |
| | XSum | 20.37 | 23.37 | 25.23 | **35.54** | 20.55 | 19.91 | 25.38 |
| Reasoning | WinoGrande | 64.64 | 64.01 | 67.32 | **69.38** | 66.85 | 69.38 | 69.77 |
| | BBH | 37.93 | 45.62 | 48.98 | **52.51** | 49.98 | 58.38 | 64.91 |
| | GSM8K | 20.32 | 29.57 | **52.62** | **52.62** | 42.3 | 54.44 | 63.31 |
| | PIQA | 79.71 | 79.76 | 78.07 | 80.25 | **81.34** | 82.15 | 82.54 |
| Programming | HumanEval | 14.02 | 18.9 | 17.07 | **25.61** | 17.68 | 18.9 | 26.22 |
| | MBPP | 20.6 | 26.8 | 30.8 | **35.6** | 28.4 | 33.6 | 39.6 |
Overall, InternLM-20B comprehensively outperforms open-source models in the 13B parameter range in terms of overall capabilities, and on inference evaluation sets, it approaches or even surpasses the performance of Llama-65B.
## Import from Transformers
To load the InternLM 20B model using Transformers, use the following code:
```python
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("internlm/internlm-20b", trust_remote_code=True)
# Set `torch_dtype=torch.bfloat16` to load model in bfloat16, otherwise it will be loaded as float32 and cause OOM Error.
model = AutoModelForCausalLM.from_pretrained("internlm/internlm-20b", torch_dtype=torch.bfloat16, trust_remote_code=True).cuda()
model = model.eval()
inputs = tokenizer(["Coming to the beautiful nature, we found"], return_tensors="pt")
for k,v in inputs.items():
inputs[k] = v.cuda()
gen_kwargs = {"max_length": 128, "top_p": 0.8, "temperature": 0.8, "do_sample": True, "repetition_penalty": 1.05}
output = model.generate(**inputs, **gen_kwargs)
output = tokenizer.decode(output[0].tolist(), skip_special_tokens=True)
print(output)
# Coming to the beautiful nature, we found not only various mountains, rivers, trees, and flowers but also many birds and beasts. Birds are the ones we are most familiar with; some are soaring in the sky, some are hopping on the ground, while others perch on trees...
```
**Limitations:** Although we have made efforts to ensure the safety of the model during the training process and to encourage the model to generate text that complies with ethical and legal requirements, the model may still produce unexpected outputs due to its size and probabilistic generation paradigm. For example, the generated responses may contain biases, discrimination, or other harmful content. Please do not propagate such content. We are not responsible for any consequences resulting from the dissemination of harmful information.
## Open Source License
The code is licensed under Apache-2.0, while model weights are fully open for academic research and also allow **free** commercial usage. To apply for a commercial license, please fill in the [application form (English)](https://wj.qq.com/s2/12727483/5dba/)/[申请表(中文)](https://wj.qq.com/s2/12725412/f7c1/). For other questions or collaborations, please contact <[email protected]>.
## 简介
上海人工智能实验室与商汤科技联合香港中文大学和复旦大学正式推出书生·浦语200亿参数模型版本 InternLM-20B ,InternLM-20B 在超过 **2.3T** Tokens 包含高质量英文、中文和代码的数据上进行预训练,其中 Chat 版本还经过了 SFT 和 RLHF 训练,使其能够更好、更安全地满足用户的需求。
InternLM 20B 在模型结构上选择了深结构,层数设定为60层,超过常规7B和13B模型所使用的32层或者40层。在参数受限的情况下,提高层数有利于提高模型的综合能力。此外,相较于InternLM-7B,InternLM-20B使用的预训练数据经过了更高质量的清洗,并补充了高知识密度和用于强化理解与推理能力的训练数据。因此,它在理解能力、推理能力、数学能力、编程能力等考验语言模型技术水平的方面都得到了显著提升。总体而言,InternLM-20B具有以下的特点:
- 优异的综合性能
- 很强的工具调用功能
- 支持16k语境长度(通过推理时外推)
- 更好的价值对齐
## 性能评测
在OpenCompass提出的5个能力维度上,InternLM-20B都取得很好的效果(粗体为13B-33B这个量级范围内,各项最佳成绩)
| 能力维度 | Llama-13B | Llama2-13B | Baichuan2-13B | InternLM-20B | Llama-33B | Llama-65B | Llama2-70B |
|----------|-----------|------------|---------------|--------------|-----------|-----------|------------|
| 语言 | 42.5 | 47 | 47.5 | **55** | 44.6 | 47.1 | 51.6 |
| 知识 | 58.2 | 58.3 | 48.9 | 60.1 | **64** | 66 | 67.7 |
| 理解 | 45.5 | 50.9 | 58.1 | **67.3** | 50.6 | 54.2 | 60.8 |
| 推理 | 42.7 | 43.6 | 44.2 | **54.9** | 46.4 | 49.8 | 55 |
| 学科 | 37.3 | 45.2 | 51.8 | **62.5** | 47.4 | 49.7 | 57.3 |
| 总平均 | 43.8 | 47.3 | 49.4 | **59.2** | 48.9 | 51.9 | 57.4 |
下表展示了在多个经典数据集上 InternLM 20B 与各个主流开源模型的表现
| | 评测集 | Llama-13B | Llama2-13B | Baichuan2-13B | InternLM-20B | Llama-33B | Llama-65B | Llama2-70B |
|------|------------------|-----------|------------|---------------|--------------|-----------|-----------|------------|
| 学科 | MMLU | 47.73 | 54.99 | 59.55 | **62.05** | 58.73 | 63.71 | 69.75 |
| | C-Eval (val) | 31.83 | 41.4 | **59.01** | 58.8 | 37.47 | 40.36 | 50.13 |
| | AGI-Eval | 22.03 | 30.93 | 37.37 | **44.58** | 33.53 | 33.92 | 40.02 |
| 知识 | BoolQ | 78.75 | 82.42 | 67 | **87.46** | 84.43 | 86.61 | 87.74 |
| | TriviaQA | 52.47 | 59.36 | 46.61 | 57.26 | **66.24** | 69.79 | 70.71 |
| | NaturalQuestions | 20.17 | 24.85 | 16.32 | 25.15 | **30.89** | 33.41 | 34.16 |
| 理解 | CMRC | 9.26 | 31.59 | 29.85 | **68.78** | 14.17 | 34.73 | 43.74 |
| | CSL | 55 | 58.75 | 63.12 | **65.62** | 57.5 | 59.38 | 60 |
| | RACE (middle) | 53.41 | 63.02 | 68.94 | **86.35** | 64.55 | 72.35 | 81.55 |
| | RACE (high) | 47.63 | 58.86 | 67.18 | **83.28** | 62.61 | 68.01 | 79.93 |
| | XSum | 20.37 | 23.37 | 25.23 | **35.54** | 20.55 | 19.91 | 25.38 |
| 推理 | WinoGrande | 64.64 | 64.01 | 67.32 | **69.38** | 66.85 | 69.38 | 69.77 |
| | BBH | 37.93 | 45.62 | 48.98 | **52.51** | 49.98 | 58.38 | 64.91 |
| | GSM8K | 20.32 | 29.57 | **52.62** | **52.62** | 42.3 | 54.44 | 63.31 |
| | PIQA | 79.71 | 79.76 | 78.07 | 80.25 | **81.34** | 82.15 | 82.54 |
| 编程 | HumanEval | 14.02 | 18.9 | 17.07 | **25.61** | 17.68 | 18.9 | 26.22 |
| | MBPP | 20.6 | 26.8 | 30.8 | **35.6** | 28.4 | 33.6 | 39.6 |
总体而言,InternLM-20B 在综合能力上全面领先于13B量级的开源模型,同时在推理评测集上能够接近甚至超越Llama-65B的性能。
## 通过 Transformers 加载
通过以下的代码加载 InternLM 20B 模型
```python
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("internlm/internlm-20b", trust_remote_code=True)
# `torch_dtype=torch.bfloat16` 可以令模型以 bfloat16 精度加载,否则 transformers 会将模型加载为 float32,导致显存不足
model = AutoModelForCausalLM.from_pretrained("internlm/internlm-20b", torch_dtype=torch.bfloat16, trust_remote_code=True).cuda()
model = model.eval()
inputs = tokenizer(["来到美丽的大自然,我们发现"], return_tensors="pt")
for k,v in inputs.items():
inputs[k] = v.cuda()
gen_kwargs = {"max_length": 128, "top_p": 0.8, "temperature": 0.8, "do_sample": True, "repetition_penalty": 1.05}
output = model.generate(**inputs, **gen_kwargs)
output = tokenizer.decode(output[0].tolist(), skip_special_tokens=True)
print(output)
# 来到美丽的大自然,我们发现,这里不仅有大大小小的山川河流和树木花草,而且还有很多飞鸟走兽。我们最熟悉的就是鸟类了,它们有的在天上飞翔,有的在地上跳跃,还有的在树上栖息……
```
**局限性:** 尽管在训练过程中我们非常注重模型的安全性,尽力促使模型输出符合伦理和法律要求的文本,但受限于模型大小以及概率生成范式,模型可能会产生各种不符合预期的输出,例如回复内容包含偏见、歧视等有害内容,请勿传播这些内容。由于传播不良信息导致的任何后果,本项目不承担责任。
## 开源许可证
本仓库的代码依照 Apache-2.0 协议开源。模型权重对学术研究完全开放,也可申请免费的商业使用授权([申请表](https://wj.qq.com/s2/12725412/f7c1/))。其他问题与合作请联系 <[email protected]>。
|
[
-0.568780779838562,
-0.6110179424285889,
0.1697864532470703,
0.25690051913261414,
-0.10157811641693115,
0.020290153101086617,
-0.25921934843063354,
-0.6851492524147034,
-0.1569879800081253,
0.1331823617219925,
-0.3328500986099243,
-0.7356568574905396,
-0.4503534734249115,
0.022002771496772766,
-0.34354647994041443,
1.0054162740707397,
0.06606458872556686,
0.18038806319236755,
-0.13734985888004303,
-0.1986948698759079,
-0.31951698660850525,
-0.42901358008384705,
-0.6696338653564453,
-0.2922469675540924,
0.2521497309207916,
0.18503877520561218,
0.6569576859474182,
0.5118440985679626,
0.704490602016449,
0.23169909417629242,
-0.32185497879981995,
0.2094353884458542,
-0.3722156584262848,
-0.29722437262535095,
0.20318731665611267,
-0.44720524549484253,
-0.6819045543670654,
0.012840360403060913,
0.4615142345428467,
0.42830780148506165,
-0.14735054969787598,
0.5739949941635132,
0.0925317332148552,
0.7685213685035706,
-0.6170884370803833,
0.021055204793810844,
-0.40076398849487305,
0.023396693170070648,
-0.31768348813056946,
0.11371635645627975,
-0.2007342278957367,
-0.369433730840683,
0.017180077731609344,
-0.5614040493965149,
0.16079550981521606,
0.42537921667099,
1.3393146991729736,
0.2825896739959717,
-0.15849857032299042,
-0.006839762441813946,
-0.5971719026565552,
0.8035281896591187,
-1.180824637413025,
0.28191813826560974,
0.38163575530052185,
0.21796272695064545,
0.060730766505002975,
-0.8669703602790833,
-0.643884003162384,
-0.3707391321659088,
-0.2721296548843384,
0.19621244072914124,
-0.30206406116485596,
-0.0928044468164444,
0.404001921415329,
0.6347015500068665,
-0.7886912226676941,
0.2693483531475067,
-0.7391472458839417,
-0.08533044904470444,
0.945070743560791,
0.4205557405948639,
0.25709855556488037,
-0.16901569068431854,
-0.4295347332954407,
-0.15786945819854736,
-0.6255044937133789,
0.42832446098327637,
0.46024155616760254,
0.20463916659355164,
-0.39268407225608826,
0.5202760100364685,
-0.39898061752319336,
0.7936421632766724,
-0.12160016596317291,
0.049310434609651566,
0.5826648473739624,
-0.5474475026130676,
-0.3478698134422302,
-0.08097046613693237,
1.0877149105072021,
0.47714290022850037,
-0.046436768025159836,
0.1237933561205864,
-0.1710509955883026,
-0.1764884740114212,
0.057719599455595016,
-0.9137209057807922,
-0.3540699779987335,
0.37497687339782715,
-0.7456163167953491,
-0.30007031559944153,
0.14078566431999207,
-0.8034155964851379,
0.11933957040309906,
-0.2991205155849457,
0.4365774095058441,
-0.5790888071060181,
-0.4769989848136902,
-0.09393597394227982,
0.0029486166313290596,
0.4469648599624634,
0.2368549108505249,
-0.7489808201789856,
0.31796082854270935,
0.4468644857406616,
1.132770299911499,
-0.2870873212814331,
-0.3283073306083679,
0.02876671589910984,
-0.2075626701116562,
-0.4613681435585022,
0.531619668006897,
-0.2886987328529358,
-0.31843993067741394,
-0.3929046392440796,
-0.04918617755174637,
-0.11509841680526733,
-0.3944704830646515,
0.3930969834327698,
-0.3452340066432953,
0.3980071544647217,
-0.2657411992549896,
-0.4739933907985687,
-0.3503798544406891,
0.38010722398757935,
-0.5289551019668579,
1.506057620048523,
0.20382645726203918,
-1.0989454984664917,
0.3237404227256775,
-1.0412278175354004,
0.06577413529157639,
-0.1673807054758072,
0.08528782427310944,
-0.6475926041603088,
-0.14963379502296448,
0.2385827898979187,
0.34195956587791443,
-0.5519148707389832,
0.32998907566070557,
-0.3684351146221161,
-0.4401024281978607,
-0.04891575127840042,
-0.43441393971443176,
1.288892149925232,
0.4985237419605255,
-0.5962168574333191,
0.3453751504421234,
-1.1584562063217163,
0.1310598999261856,
0.4415789246559143,
-0.3168499171733856,
-0.16271498799324036,
-0.22330106794834137,
0.0538201704621315,
0.21026663482189178,
0.3204444944858551,
-0.5035768151283264,
0.22564810514450073,
-0.5519118905067444,
0.7013160586357117,
0.8142262697219849,
-0.13192684948444366,
0.2893887162208557,
-0.44041135907173157,
0.49001404643058777,
0.17697148025035858,
0.47473984956741333,
0.061531901359558105,
-0.5447301268577576,
-0.8883992433547974,
-0.4697098433971405,
0.30980175733566284,
0.5327869057655334,
-0.28378501534461975,
0.5676514506340027,
-0.03849531337618828,
-0.8551265597343445,
-0.6826764345169067,
-0.1330687254667282,
0.4544578790664673,
0.7191612124443054,
0.598261833190918,
0.014289004728198051,
-0.6114581823348999,
-1.073063611984253,
-0.04673071950674057,
-0.236372709274292,
0.10354682058095932,
0.40147095918655396,
0.9017865061759949,
-0.10685410350561142,
1.0511972904205322,
-0.6276807188987732,
-0.14365226030349731,
-0.14229914546012878,
-0.014723511412739754,
0.574702799320221,
0.7598037123680115,
0.795951783657074,
-0.6902422904968262,
-0.7801331281661987,
-0.012386612594127655,
-0.8576704859733582,
0.043996475636959076,
0.2992612421512604,
-0.19245070219039917,
0.33790913224220276,
0.30931544303894043,
-0.7947685718536377,
0.5665480494499207,
0.5155338048934937,
-0.43441522121429443,
1.059217929840088,
-0.32787927985191345,
-0.014700264669954777,
-1.0703026056289673,
0.5006616711616516,
-0.19768370687961578,
0.0662568062543869,
-0.5780594348907471,
0.03211173415184021,
0.15249215066432953,
-0.03058687224984169,
-0.5636029839515686,
0.8853859305381775,
-0.5365690588951111,
0.03831304982304573,
0.15266573429107666,
-0.1461053490638733,
-0.011486834846436977,
0.6540566086769104,
-0.11456240713596344,
0.9776976108551025,
0.7897521257400513,
-0.5890631079673767,
0.23215948045253754,
0.29870831966400146,
-0.5167926549911499,
0.2800985276699066,
-0.8294106721878052,
0.03374113142490387,
-0.0654260665178299,
0.18742342293262482,
-1.001970887184143,
-0.15678200125694275,
0.3439631462097168,
-0.5471092462539673,
0.2821705639362335,
0.13520322740077972,
-0.3623529374599457,
-0.7427225112915039,
-0.41024303436279297,
0.34815993905067444,
0.647244393825531,
-0.4597282111644745,
0.3419760763645172,
0.05969439819455147,
0.07898638397455215,
-0.7722374796867371,
-0.6624569296836853,
-0.20796892046928406,
-0.32185736298561096,
-0.7001702785491943,
0.41029274463653564,
-0.20352007448673248,
-0.38031870126724243,
0.20282027125358582,
0.022159481421113014,
0.11893066018819809,
0.20045822858810425,
0.25489693880081177,
0.646510124206543,
-0.32785630226135254,
-0.08572765439748764,
-0.2687542140483856,
-0.04292481392621994,
0.07507573813199997,
-0.1312825232744217,
0.7158450484275818,
-0.41810041666030884,
-0.3673463761806488,
-0.46632471680641174,
0.05139150097966194,
0.5995926260948181,
-0.5641433000564575,
1.0635676383972168,
0.6903466582298279,
-0.243989497423172,
-0.02994188852608204,
-0.4323867857456207,
-0.12438959628343582,
-0.4626203775405884,
0.43481746315956116,
-0.32088252902030945,
-0.5869091749191284,
0.704520583152771,
0.3431989252567291,
0.37772807478904724,
0.8606017231941223,
0.5982373952865601,
-0.07835177332162857,
1.1610958576202393,
0.39643049240112305,
-0.1442701518535614,
0.38056156039237976,
-0.8192455768585205,
0.12185662984848022,
-1.1555242538452148,
-0.5533345341682434,
-0.7066318392753601,
-0.36970171332359314,
-0.5730414986610413,
-0.2393973469734192,
0.37915048003196716,
0.1868591010570526,
-0.8228294253349304,
0.30019330978393555,
-0.8761965036392212,
0.08750314265489578,
0.9827912449836731,
0.15459293127059937,
0.19376212358474731,
-0.21359677612781525,
-0.31581053137779236,
0.09484066814184189,
-0.7621840834617615,
-0.46557480096817017,
1.5035622119903564,
0.3798787295818329,
0.6544660925865173,
-0.0158082228153944,
0.6475906372070312,
0.1343086212873459,
0.37850791215896606,
-0.3916003406047821,
0.4590613842010498,
0.005757208913564682,
-0.9214527606964111,
-0.3280782401561737,
-0.41799330711364746,
-0.8415501713752747,
0.455026775598526,
-0.18588216602802277,
-0.8654170632362366,
0.196507066488266,
0.1649702489376068,
-0.5059666037559509,
0.5244656801223755,
-0.5653690099716187,
0.8574567437171936,
-0.44590476155281067,
-0.49201256036758423,
-0.03555997833609581,
-0.7353488802909851,
0.5813249945640564,
0.10728616267442703,
0.27782946825027466,
-0.29089492559432983,
0.10867902636528015,
0.9561042189598083,
-0.5837435126304626,
0.5847423672676086,
-0.23219533264636993,
0.31008973717689514,
0.28103917837142944,
-0.1877567619085312,
0.6058247089385986,
-0.05675271153450012,
-0.2986685633659363,
0.5584437251091003,
0.0861104279756546,
-0.40920865535736084,
-0.2458801567554474,
0.6571314334869385,
-1.153505563735962,
-0.7216407060623169,
-0.6223832964897156,
-0.5562345385551453,
-0.03878917172551155,
0.4253143072128296,
0.6400583386421204,
0.3006906509399414,
-0.03030252829194069,
0.4672258496284485,
0.6132488250732422,
-0.376859575510025,
0.6376914381980896,
0.5367313027381897,
-0.3510209321975708,
-0.5508615374565125,
0.8433235883712769,
0.22358077764511108,
0.27596649527549744,
0.18212531507015228,
0.31891533732414246,
-0.41676247119903564,
-0.7741580009460449,
-0.5063579082489014,
0.20360317826271057,
-0.46775341033935547,
-0.32655030488967896,
-0.8250892758369446,
-0.5037695169448853,
-0.471666544675827,
-0.04639112949371338,
-0.416500061750412,
-0.2522655725479126,
-0.5130406618118286,
-0.05814916267991066,
0.4394683539867401,
0.5204892754554749,
-0.10276684165000916,
0.09300579875707626,
-0.5602366924285889,
0.22325362265110016,
0.07073144614696503,
0.2792151868343353,
0.2138868272304535,
-0.7231624126434326,
-0.25110089778900146,
0.08676493167877197,
-0.43019792437553406,
-0.6363046765327454,
0.6069899797439575,
0.010521148331463337,
0.7830548286437988,
0.47875869274139404,
0.22416122257709503,
0.8694242835044861,
-0.3227035105228424,
1.0827431678771973,
0.33035776019096375,
-0.8736426830291748,
0.5787389278411865,
-0.2352195829153061,
0.22240042686462402,
0.4646337628364563,
0.49212878942489624,
-0.2633977234363556,
-0.43190157413482666,
-0.8307484984397888,
-1.0384219884872437,
1.0075373649597168,
0.3753657042980194,
-0.16184675693511963,
0.294183611869812,
0.1639253795146942,
-0.052115436643362045,
0.32166850566864014,
-0.921273946762085,
-0.5731700658798218,
-0.3869584798812866,
-0.27596351504325867,
0.0028626294806599617,
-0.043810270726680756,
-0.13504010438919067,
-0.5599780678749084,
0.8580787777900696,
0.12105673551559448,
0.36648088693618774,
0.253610223531723,
0.01324556302279234,
0.0828741043806076,
-0.021130429580807686,
0.6114894151687622,
0.918935239315033,
-0.4773440957069397,
-0.02148653380572796,
0.29670074582099915,
-0.5655688643455505,
0.006304560694843531,
0.13794182240962982,
-0.38673704862594604,
-0.18831183016300201,
0.4386686086654663,
1.019504189491272,
-0.08693758398294449,
-0.6017168164253235,
0.2914171814918518,
0.14644034206867218,
-0.2093127816915512,
-0.41249626874923706,
0.26966843008995056,
0.10486672818660736,
0.2377592921257019,
0.33598262071609497,
0.17416705191135406,
0.0673542246222496,
-0.4784049689769745,
-0.17723511159420013,
0.5933423042297363,
-0.25123029947280884,
-0.3291614353656769,
1.1185767650604248,
0.053678497672080994,
-0.3419440686702728,
0.7559716701507568,
0.005702097900211811,
-0.5397962331771851,
0.9259374141693115,
0.4596773684024811,
0.6951278448104858,
-0.2734402120113373,
-0.04237660393118858,
0.896344006061554,
0.40027517080307007,
-0.19227148592472076,
0.3465866148471832,
0.1032911166548729,
-0.42283618450164795,
0.03818364813923836,
-0.884122371673584,
-0.29898306727409363,
0.32012027502059937,
-0.7620696425437927,
0.34287360310554504,
-0.3634609580039978,
-0.2608461081981659,
-0.18160240352153778,
0.355135053396225,
-0.8972163200378418,
0.2649356424808502,
0.047602709382772446,
1.261499285697937,
-0.6528530716896057,
0.8831513524055481,
0.6474614143371582,
-0.640527069568634,
-1.0028542280197144,
-0.33620506525039673,
-0.16119638085365295,
-0.8701883554458618,
0.7560940980911255,
0.20917850732803345,
0.2610263526439667,
0.13153043389320374,
-0.7549787759780884,
-1.2891733646392822,
1.4938026666641235,
0.1991756111383438,
-0.6940953731536865,
-0.22068990767002106,
0.04976916313171387,
0.5795563459396362,
-0.08210350573062897,
0.5843985080718994,
0.5170574188232422,
0.620979368686676,
-0.0948813259601593,
-1.0672125816345215,
0.16787664592266083,
-0.5055670142173767,
0.03997150808572769,
0.04308425635099411,
-1.0385136604309082,
1.4739339351654053,
-0.25045913457870483,
0.13593463599681854,
0.0010902398498728871,
0.7013483643531799,
0.6431946158409119,
0.37667667865753174,
0.43450528383255005,
0.7117600440979004,
0.8125770688056946,
-0.14086715877056122,
1.0120409727096558,
-0.5951269268989563,
0.6195497512817383,
0.9623811841011047,
0.012649980373680592,
0.8558244109153748,
0.19731847941875458,
-0.6399269700050354,
0.5278456807136536,
0.9344611763954163,
-0.2627769708633423,
0.3924054503440857,
0.09265200048685074,
-0.04180781543254852,
0.0037108000833541155,
0.22526192665100098,
-0.744577944278717,
0.3460884690284729,
0.13505709171295166,
-0.2961255609989166,
-0.05828634276986122,
0.03850080817937851,
0.0882541760802269,
-0.3291007876396179,
-0.29754161834716797,
0.5445107817649841,
-0.0069305202923715115,
-0.5282642841339111,
0.8933731317520142,
0.009058982133865356,
0.7124204039573669,
-0.7950199246406555,
0.061366915702819824,
-0.27892830967903137,
0.15857164561748505,
-0.4240754246711731,
-0.7340865731239319,
0.15264689922332764,
0.11408548057079315,
-0.07757975906133652,
0.05285816267132759,
0.5610668063163757,
-0.15257447957992554,
-0.6264899969100952,
0.33393222093582153,
0.25285452604293823,
0.18176904320716858,
-0.0513400137424469,
-0.8786273002624512,
0.05980246886610985,
0.008173476904630661,
-0.7556880712509155,
0.28135204315185547,
0.23459939658641815,
-0.04295406863093376,
0.7800371050834656,
0.8972097039222717,
0.19151267409324646,
0.22095687687397003,
-0.3113265931606293,
1.0556389093399048,
-0.7639461755752563,
-0.5304341316223145,
-0.9511647820472717,
0.6917908787727356,
-0.20899109542369843,
-0.5811106562614441,
1.0135365724563599,
0.8688637614250183,
0.8514443039894104,
0.07733416557312012,
0.7677485346794128,
-0.43809840083122253,
0.37519171833992004,
-0.46919435262680054,
0.9318433403968811,
-0.8258667588233948,
0.08577440679073334,
-0.07284484058618546,
-0.9509556889533997,
-0.18015961349010468,
0.661194384098053,
-0.41216421127319336,
0.07255957275629044,
0.4863613247871399,
0.821372926235199,
0.08101698011159897,
-0.09756860882043839,
0.23391899466514587,
0.42899951338768005,
0.4541965126991272,
0.6179116368293762,
0.7547472715377808,
-0.44414621591567993,
0.5963519215583801,
-0.5952340960502625,
-0.18324565887451172,
-0.3923385441303253,
-0.6624337434768677,
-0.8835320472717285,
-0.510283887386322,
-0.21230894327163696,
-0.37346532940864563,
-0.19036796689033508,
1.176924705505371,
0.862688422203064,
-0.9276371002197266,
-0.2568024694919586,
-0.15005265176296234,
-0.05221401900053024,
-0.4331403076648712,
-0.28106769919395447,
0.7121874094009399,
-0.28069356083869934,
-0.8997992277145386,
0.1391000747680664,
0.04375471919775009,
0.08505791425704956,
-0.5205710530281067,
-0.334695041179657,
-0.3158040940761566,
0.0643678680062294,
0.4244372546672821,
0.2331792116165161,
-0.8317311406135559,
-0.01752399653196335,
0.06984362751245499,
-0.22213684022426605,
0.26120784878730774,
0.23104673624038696,
-0.6384558081626892,
0.36543670296669006,
0.47263649106025696,
0.24021604657173157,
0.6999970078468323,
0.03468106687068939,
0.17039766907691956,
-0.29939648509025574,
0.24558992683887482,
0.30692777037620544,
0.35624203085899353,
0.08155884593725204,
-0.4065459072589874,
0.7320311069488525,
0.24470378458499908,
-0.6432201266288757,
-1.2172706127166748,
-0.25887179374694824,
-0.9329928159713745,
-0.38305237889289856,
1.1232577562332153,
-0.25759491324424744,
-0.3663043975830078,
0.089839868247509,
-0.24972793459892273,
0.26321354508399963,
-0.40977489948272705,
0.7933456301689148,
0.6341102123260498,
-0.3389672040939331,
-0.008752036839723587,
-0.8041475415229797,
0.40983688831329346,
0.18316683173179626,
-0.9538965821266174,
-0.09380082786083221,
0.2671155035495758,
0.4194326102733612,
0.18201281130313873,
0.7095721960067749,
-0.14580073952674866,
0.14814287424087524,
0.14053483307361603,
0.2975116968154907,
-0.5881885290145874,
-0.20946870744228363,
-0.10228851437568665,
0.19430579245090485,
-0.0022594702895730734,
-0.41277745366096497
] |
bigcode/starcoderbase
|
bigcode
| 2023-05-11T08:10:58Z | 8,528 | 361 |
transformers
|
[
"transformers",
"pytorch",
"gpt_bigcode",
"text-generation",
"code",
"dataset:bigcode/the-stack-dedup",
"arxiv:1911.02150",
"arxiv:2205.14135",
"arxiv:2207.14255",
"arxiv:2305.06161",
"license:bigcode-openrail-m",
"model-index",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-05-03T15:16:10Z |
---
pipeline_tag: text-generation
inference: true
widget:
- text: 'def print_hello_world():'
example_title: Hello world
group: Python
license: bigcode-openrail-m
datasets:
- bigcode/the-stack-dedup
metrics:
- code_eval
library_name: transformers
tags:
- code
model-index:
- name: StarCoderBase
results:
- task:
type: text-generation
dataset:
type: openai_humaneval
name: HumanEval
metrics:
- name: pass@1
type: pass@1
value: 0.304
verified: false
- task:
type: text-generation
dataset:
type: mbpp
name: MBPP
metrics:
- name: pass@1
type: pass@1
value: 0.49
verified: false
- task:
type: text-generation
dataset:
type: ds1000
name: DS-1000 (Overall Completion)
metrics:
- name: pass@1
type: pass@1
value: 0.238
verified: false
- task:
type: text-generation
dataset:
type: nuprl/MultiPL-E
name: MultiPL-HumanEval (C++)
metrics:
- name: pass@1
type: pass@1
value: 0.3056
verified: false
- task:
type: text-generation
dataset:
type: nuprl/MultiPL-E
name: MultiPL-HumanEval (C#)
metrics:
- name: pass@1
type: pass@1
value: 0.2056
verified: false
- task:
type: text-generation
dataset:
type: nuprl/MultiPL-E
name: MultiPL-HumanEval (D)
metrics:
- name: pass@1
type: pass@1
value: 0.1001
verified: false
- task:
type: text-generation
dataset:
type: nuprl/MultiPL-E
name: MultiPL-HumanEval (Go)
metrics:
- name: pass@1
type: pass@1
value: 0.2147
verified: false
- task:
type: text-generation
dataset:
type: nuprl/MultiPL-E
name: MultiPL-HumanEval (Java)
metrics:
- name: pass@1
type: pass@1
value: 0.2853
verified: false
- task:
type: text-generation
dataset:
type: nuprl/MultiPL-E
name: MultiPL-HumanEval (Julia)
metrics:
- name: pass@1
type: pass@1
value: 0.2109
verified: false
- task:
type: text-generation
dataset:
type: nuprl/MultiPL-E
name: MultiPL-HumanEval (JavaScript)
metrics:
- name: pass@1
type: pass@1
value: 0.317
verified: false
- task:
type: text-generation
dataset:
type: nuprl/MultiPL-E
name: MultiPL-HumanEval (Lua)
metrics:
- name: pass@1
type: pass@1
value: 0.2661
verified: false
- task:
type: text-generation
dataset:
type: nuprl/MultiPL-E
name: MultiPL-HumanEval (PHP)
metrics:
- name: pass@1
type: pass@1
value: 0.2675
verified: false
- task:
type: text-generation
dataset:
type: nuprl/MultiPL-E
name: MultiPL-HumanEval (Perl)
metrics:
- name: pass@1
type: pass@1
value: 0.1632
verified: false
- task:
type: text-generation
dataset:
type: nuprl/MultiPL-E
name: MultiPL-HumanEval (Python)
metrics:
- name: pass@1
type: pass@1
value: 0.3035
verified: false
- task:
type: text-generation
dataset:
type: nuprl/MultiPL-E
name: MultiPL-HumanEval (R)
metrics:
- name: pass@1
type: pass@1
value: 0.1018
verified: false
- task:
type: text-generation
dataset:
type: nuprl/MultiPL-E
name: MultiPL-HumanEval (Ruby)
metrics:
- name: pass@1
type: pass@1
value: 0.1725
verified: false
- task:
type: text-generation
dataset:
type: nuprl/MultiPL-E
name: MultiPL-HumanEval (Racket)
metrics:
- name: pass@1
type: pass@1
value: 0.1177
verified: false
- task:
type: text-generation
dataset:
type: nuprl/MultiPL-E
name: MultiPL-HumanEval (Rust)
metrics:
- name: pass@1
type: pass@1
value: 0.2446
verified: false
- task:
type: text-generation
dataset:
type: nuprl/MultiPL-E
name: MultiPL-HumanEval (Scala)
metrics:
- name: pass@1
type: pass@1
value: 0.2879
verified: false
- task:
type: text-generation
dataset:
type: nuprl/MultiPL-E
name: MultiPL-HumanEval (Bash)
metrics:
- name: pass@1
type: pass@1
value: 0.1102
verified: false
- task:
type: text-generation
dataset:
type: nuprl/MultiPL-E
name: MultiPL-HumanEval (Swift)
metrics:
- name: pass@1
type: pass@1
value: 0.1674
verified: false
- task:
type: text-generation
dataset:
type: nuprl/MultiPL-E
name: MultiPL-HumanEval (TypeScript)
metrics:
- name: pass@1
type: pass@1
value: 0.3215
verified: false
extra_gated_prompt: >-
## Model License Agreement
Please read the BigCode [OpenRAIL-M
license](https://huggingface.co/spaces/bigcode/bigcode-model-license-agreement)
agreement before accepting it.
extra_gated_fields:
I accept the above license agreement, and will use the Model complying with the set of use restrictions and sharing requirements: checkbox
---
# StarCoderBase

Play with the model on the [StarCoder Playground](https://huggingface.co/spaces/bigcode/bigcode-playground).
## Table of Contents
1. [Model Summary](##model-summary)
2. [Use](##use)
3. [Limitations](##limitations)
4. [Training](##training)
5. [License](##license)
6. [Citation](##citation)
## Model Summary
The StarCoderBase models are 15.5B parameter models trained on 80+ programming languages from [The Stack (v1.2)](https://huggingface.co/datasets/bigcode/the-stack), with opt-out requests excluded. The model uses [Multi Query Attention](https://arxiv.org/abs/1911.02150), [a context window of 8192 tokens](https://arxiv.org/abs/2205.14135), and was trained using the [Fill-in-the-Middle objective](https://arxiv.org/abs/2207.14255) on 1 trillion tokens.
- **Repository:** [bigcode/Megatron-LM](https://github.com/bigcode-project/Megatron-LM)
- **Project Website:** [bigcode-project.org](https://www.bigcode-project.org)
- **Paper:** [💫StarCoder: May the source be with you!](https://drive.google.com/file/d/1cN-b9GnWtHzQRoE7M7gAEyivY0kl4BYs/view)
- **Point of Contact:** [[email protected]](mailto:[email protected])
- **Languages:** 80+ Programming languages
## Use
### Intended use
The model was trained on GitHub code. As such it is _not_ an instruction model and commands like "Write a function that computes the square root." do not work well. However, by using the [Tech Assistant prompt](https://huggingface.co/datasets/bigcode/ta-prompt) you can turn it into a capable technical assistant.
**Feel free to share your generations in the Community tab!**
### Generation
```python
# pip install -q transformers
from transformers import AutoModelForCausalLM, AutoTokenizer
checkpoint = "bigcode/starcoderbase"
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]))
```
### 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/starcoder-search) that let's you search through the pretraining data to identify where generated code came from and apply the proper attribution to your code.
# Limitations
The model has been trained on source code from 80+ programming languages. The predominant 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. See [the paper](https://drive.google.com/file/d/1cN-b9GnWtHzQRoE7M7gAEyivY0kl4BYs/view) for an in-depth discussion of the model limitations.
# Training
## Model
- **Architecture:** GPT-2 model with multi-query attention and Fill-in-the-Middle objective
- **Pretraining steps:** 250k
- **Pretraining tokens:** 1 trillion
- **Precision:** bfloat16
## Hardware
- **GPUs:** 512 Tesla A100
- **Training time:** 24 days
## Software
- **Orchestration:** [Megatron-LM](https://github.com/bigcode-project/Megatron-LM)
- **Neural networks:** [PyTorch](https://github.com/pytorch/pytorch)
- **BP16 if applicable:** [apex](https://github.com/NVIDIA/apex)
# License
The model is licensed under the BigCode OpenRAIL-M v1 license agreement. You can find the full agreement [here](https://huggingface.co/spaces/bigcode/bigcode-model-license-agreement).
# Citation
```
@article{li2023starcoder,
title={StarCoder: may the source be with you!},
author={Raymond Li and Loubna Ben Allal and Yangtian Zi and Niklas Muennighoff and Denis Kocetkov and Chenghao Mou and Marc Marone and Christopher Akiki and Jia Li and Jenny Chim and Qian Liu and Evgenii Zheltonozhskii and Terry Yue Zhuo and Thomas Wang and Olivier Dehaene and Mishig Davaadorj and Joel Lamy-Poirier and João Monteiro and Oleh Shliazhko and Nicolas Gontier and Nicholas Meade and Armel Zebaze and Ming-Ho Yee and Logesh Kumar Umapathi and Jian Zhu and Benjamin Lipkin and Muhtasham Oblokulov and Zhiruo Wang and Rudra Murthy and Jason Stillerman and Siva Sankalp Patel and Dmitry Abulkhanov and Marco Zocca and Manan Dey and Zhihan Zhang and Nour Fahmy and Urvashi Bhattacharyya and Wenhao Yu and Swayam Singh and Sasha Luccioni and Paulo Villegas and Maxim Kunakov and Fedor Zhdanov and Manuel Romero and Tony Lee and Nadav Timor and Jennifer Ding and Claire Schlesinger and Hailey Schoelkopf and Jan Ebert and Tri Dao and Mayank Mishra and Alex Gu and Jennifer Robinson and Carolyn Jane Anderson and Brendan Dolan-Gavitt and Danish Contractor and Siva Reddy and Daniel Fried and Dzmitry Bahdanau and Yacine Jernite and Carlos Muñoz Ferrandis and Sean Hughes and Thomas Wolf and Arjun Guha and Leandro von Werra and Harm de Vries},
year={2023},
eprint={2305.06161},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
```
|
[
-0.5992945432662964,
-0.47258755564689636,
0.39650973677635193,
0.1406055986881256,
-0.16970926523208618,
-0.269737184047699,
-0.20637059211730957,
-0.3916684687137604,
0.11189302802085876,
0.30353185534477234,
-0.5435987114906311,
-0.4366970956325531,
-0.7838699817657471,
0.03993068262934685,
-0.0674489289522171,
1.0284839868545532,
-0.02750379592180252,
0.11194422841072083,
-0.0780177041888237,
-0.0052219657227396965,
-0.22933125495910645,
-0.6928552985191345,
-0.264681339263916,
-0.10482028871774673,
0.45668771862983704,
0.2643986642360687,
0.8268364071846008,
0.7298429012298584,
0.5448698997497559,
0.30320996046066284,
-0.1916435807943344,
0.01793867163360119,
-0.20815059542655945,
-0.4017828702926636,
0.009343579411506653,
-0.31068646907806396,
-0.4397771656513214,
-0.06905272603034973,
0.5695329904556274,
0.298462450504303,
0.18792356550693512,
0.5985742211341858,
-0.046340182423591614,
0.6381178498268127,
-0.5133737325668335,
0.3491455912590027,
-0.2976088523864746,
-0.012109331786632538,
0.2033950835466385,
0.07651829719543457,
-0.16765128076076508,
-0.3060327172279358,
-0.3875889778137207,
-0.5555566549301147,
0.19729167222976685,
0.1516006737947464,
1.1867133378982544,
0.34900593757629395,
-0.22152647376060486,
-0.2521468698978424,
-0.7524582147598267,
0.6333525776863098,
-0.7000606060028076,
0.6015846133232117,
0.2869736850261688,
0.33850178122520447,
-0.0024933500681072474,
-0.933584451675415,
-0.7524782419204712,
-0.35788416862487793,
-0.0769452378153801,
0.10083998739719391,
-0.34025174379348755,
-0.10234876722097397,
0.5985939502716064,
0.20182949304580688,
-0.7553115487098694,
0.16555067896842957,
-0.783906877040863,
-0.09380757808685303,
0.5565064549446106,
0.014311223290860653,
0.16068792343139648,
-0.5825858116149902,
-0.5117270350456238,
-0.19959339499473572,
-0.5821601748466492,
0.18459013104438782,
0.23681563138961792,
0.02332170121371746,
-0.3798087239265442,
0.4999830722808838,
-0.002647270681336522,
0.5575997233390808,
0.06483960151672363,
0.12997746467590332,
0.4866332709789276,
-0.5274666547775269,
-0.4050852358341217,
-0.17161479592323303,
1.0641355514526367,
0.4133148193359375,
0.10999397188425064,
0.009598135016858578,
-0.16362354159355164,
-0.15160603821277618,
0.148604616522789,
-1.0616494417190552,
-0.27526023983955383,
0.510171115398407,
-0.37135428190231323,
-0.10476714372634888,
0.132036030292511,
-0.831203818321228,
0.044088732451200485,
-0.36436012387275696,
0.5597555041313171,
-0.232015922665596,
-0.22154158353805542,
0.2093014121055603,
0.02277812920510769,
0.32582587003707886,
-0.06747155636548996,
-0.8121435046195984,
0.10969731211662292,
0.5380869507789612,
0.7880107760429382,
0.40402549505233765,
-0.4095114767551422,
-0.3767276108264923,
-0.08480226248502731,
-0.3241651952266693,
0.266117125749588,
-0.25918805599212646,
-0.2176230251789093,
-0.22903618216514587,
0.12556342780590057,
-0.09130483120679855,
-0.45088350772857666,
0.34711265563964844,
-0.583141565322876,
0.20216824114322662,
-0.24160000681877136,
-0.2423497587442398,
-0.21375732123851776,
0.14840222895145416,
-0.6493355631828308,
0.9542614817619324,
0.30050423741340637,
-0.6987498998641968,
0.21172203123569489,
-0.7625697255134583,
-0.006872411351650953,
-0.08331479132175446,
-0.20457489788532257,
-0.7396067976951599,
-0.09312053769826889,
0.4633500874042511,
0.5323246121406555,
-0.44992613792419434,
0.4880245625972748,
-0.2815195322036743,
-0.4347286522388458,
0.22866976261138916,
-0.1697106957435608,
0.9982961416244507,
0.46958526968955994,
-0.6357539892196655,
0.173747256398201,
-0.5349361300468445,
0.03671034425497055,
0.43491482734680176,
-0.17920447885990143,
0.28814443945884705,
-0.39043286442756653,
0.20409244298934937,
0.5951813459396362,
0.36864691972732544,
-0.5610429644584656,
0.31531044840812683,
-0.24289408326148987,
0.6547534465789795,
0.55655437707901,
-0.09317117929458618,
0.13671784102916718,
-0.2458338588476181,
0.6041330695152283,
0.20870567858219147,
0.5050123333930969,
-0.11546962708234787,
-0.43924739956855774,
-0.7335352897644043,
-0.3057917356491089,
0.4293026924133301,
0.4096304178237915,
-0.7266840934753418,
0.8002403378486633,
-0.32862138748168945,
-0.6025687456130981,
-0.3875633776187897,
0.0035017619375139475,
0.5963690280914307,
0.1747284084558487,
0.4709133803844452,
0.005004876293241978,
-0.7013835310935974,
-0.8351947069168091,
0.18616624176502228,
-0.08832591027021408,
0.025050370022654533,
0.33986443281173706,
0.8792745471000671,
-0.39599940180778503,
0.7976003885269165,
-0.6517581343650818,
-0.0899285301566124,
-0.27184098958969116,
-0.30901190638542175,
0.5574287176132202,
0.7188684940338135,
0.7346528768539429,
-0.8221186399459839,
-0.348262757062912,
-0.03498701751232147,
-0.8098104000091553,
0.3480912446975708,
0.07228033244609833,
-0.12342807650566101,
0.15794558823108673,
0.7125211358070374,
-0.9459712505340576,
0.46554383635520935,
0.5897899866104126,
-0.41614678502082825,
0.8110086917877197,
-0.19182364642620087,
0.1633242517709732,
-1.3261654376983643,
0.5368807315826416,
0.028091127052903175,
0.026355938985943794,
-0.3077217936515808,
0.31033387780189514,
0.21407124400138855,
-0.5226759910583496,
-0.4902658760547638,
0.5353037118911743,
-0.49418601393699646,
-0.06555065512657166,
-0.03641447424888611,
-0.21003738045692444,
0.020444488152861595,
0.8238465189933777,
-0.24115873873233795,
0.9454131722450256,
0.7099038362503052,
-0.597347617149353,
0.3721329867839813,
0.3854973018169403,
-0.24307984113693237,
-0.007303903810679913,
-0.9460152387619019,
0.09165037423372269,
-0.048704639077186584,
0.34339073300361633,
-1.129456877708435,
-0.2615187466144562,
0.48435184359550476,
-0.8789319396018982,
0.1512712687253952,
-0.43653908371925354,
-0.6448113322257996,
-0.8990964889526367,
-0.21822379529476166,
0.38967353105545044,
0.7849225401878357,
-0.6829034090042114,
0.35514017939567566,
0.20839698612689972,
-0.05025302991271019,
-0.5896240472793579,
-0.6285482048988342,
-0.05276312679052353,
-0.06312529742717743,
-0.6270658373832703,
0.17237694561481476,
-0.1951359212398529,
0.17852656543254852,
0.04552841559052467,
-0.11117828637361526,
-0.19984856247901917,
-0.12262771278619766,
0.400584876537323,
0.4626314342021942,
-0.32547879219055176,
-0.21397070586681366,
-0.25144222378730774,
-0.311991810798645,
0.23807074129581451,
-0.6219373941421509,
0.7189796566963196,
-0.22966685891151428,
-0.3206837475299835,
-0.4167724549770355,
0.22144432365894318,
0.9209533929824829,
-0.4581071138381958,
0.7399175763130188,
0.8123109340667725,
-0.4807950258255005,
0.020023493096232414,
-0.5549859404563904,
-0.19381268322467804,
-0.5469696521759033,
0.631506621837616,
-0.21816903352737427,
-0.7468302249908447,
0.5239278674125671,
0.13534671068191528,
0.04921581968665123,
0.5924577713012695,
0.43533438444137573,
0.18919454514980316,
0.9321178197860718,
0.5864434838294983,
-0.1262296438217163,
0.37459808588027954,
-0.7680617570877075,
0.3789936304092407,
-0.932978630065918,
-0.3366684317588806,
-0.6561898589134216,
-0.269662082195282,
-0.4624176025390625,
-0.6014279723167419,
0.4629562199115753,
0.2820649743080139,
-0.6557450294494629,
0.5268233418464661,
-0.7306658029556274,
0.39156991243362427,
0.5629500150680542,
0.09365811944007874,
-0.1410631537437439,
0.1064954400062561,
-0.21240979433059692,
0.055534545332193375,
-0.8185338973999023,
-0.3857378363609314,
1.1872066259384155,
0.47696417570114136,
0.5139536261558533,
0.046586304903030396,
0.7022930979728699,
-0.15685860812664032,
-0.03155745193362236,
-0.5386149883270264,
0.4932430684566498,
-0.058820758014917374,
-0.7845159769058228,
-0.1513482928276062,
-0.5771423578262329,
-1.0474748611450195,
0.1451612114906311,
0.0025509982369840145,
-0.776276707649231,
0.2784076929092407,
0.16187657415866852,
-0.6020432114601135,
0.47504013776779175,
-0.8179531097412109,
1.0356111526489258,
-0.21915794909000397,
-0.4255180358886719,
0.07649007439613342,
-0.5990995764732361,
0.38247403502464294,
0.09624412655830383,
0.1556393951177597,
0.255440890789032,
0.10417193174362183,
0.7890252470970154,
-0.5432371497154236,
0.6516317129135132,
-0.3672654926776886,
0.17399190366268158,
0.3836401700973511,
-0.15915998816490173,
0.5187205076217651,
0.26280608773231506,
-0.046919114887714386,
0.40000057220458984,
-0.10407967120409012,
-0.43745163083076477,
-0.41673174500465393,
0.7594407200813293,
-1.1067942380905151,
-0.4945245087146759,
-0.45200878381729126,
-0.35041260719299316,
0.03501348942518234,
0.3303159773349762,
0.47573959827423096,
0.47296324372291565,
0.2299557328224182,
0.30960702896118164,
0.48894786834716797,
-0.3825494945049286,
0.6340381503105164,
0.2165910303592682,
-0.3048146963119507,
-0.6625002026557922,
0.8905453085899353,
0.216277077794075,
0.1062929704785347,
0.07842383533716202,
0.12211383879184723,
-0.466835618019104,
-0.4424194395542145,
-0.6919556260108948,
0.34324151277542114,
-0.6378991007804871,
-0.3717368245124817,
-0.7894105315208435,
-0.5325590968132019,
-0.528572678565979,
-0.20564714074134827,
-0.45971524715423584,
-0.1434551328420639,
-0.18829409778118134,
0.04186037555336952,
0.48782721161842346,
0.586239218711853,
-0.005684735719114542,
0.16212892532348633,
-0.8220077157020569,
0.27144140005111694,
0.15894195437431335,
0.3812693655490875,
0.11013074964284897,
-0.6084229946136475,
-0.48556146025657654,
0.10173067450523376,
-0.4743989109992981,
-0.4357438385486603,
0.42667028307914734,
-0.27976512908935547,
0.4772073030471802,
0.03550659492611885,
-0.12631051242351532,
0.6321234107017517,
-0.437031626701355,
1.0509560108184814,
0.4959382712841034,
-0.8174104690551758,
0.41500043869018555,
-0.3336183428764343,
0.4772731065750122,
0.3213444948196411,
0.6347796320915222,
-0.2983499765396118,
-0.05791999399662018,
-0.8828620314598083,
-0.9729814529418945,
0.8018548488616943,
0.22366681694984436,
0.004682025872170925,
0.1409941166639328,
0.3128998279571533,
-0.2222379595041275,
0.13861395418643951,
-0.8166413903236389,
-0.2957291901111603,
-0.33973798155784607,
-0.13540954887866974,
-0.26690933108329773,
-0.07088212668895721,
-0.08472390472888947,
-0.5449305176734924,
0.506454348564148,
0.021264661103487015,
0.8325573205947876,
0.2640005648136139,
-0.11999095231294632,
-0.005811532028019428,
0.0433446541428566,
0.6250991821289062,
0.8472484946250916,
-0.1314811259508133,
-0.04365692660212517,
-0.05048061162233353,
-0.6872572898864746,
0.062001004815101624,
0.4709622263908386,
-0.1006881520152092,
-0.00687010120600462,
0.20880469679832458,
0.9224613904953003,
0.2510932683944702,
-0.3049461841583252,
0.7088217735290527,
0.11646069586277008,
-0.5577572584152222,
-0.4560735821723938,
0.15372054278850555,
0.2627726197242737,
0.3763924241065979,
0.44112324714660645,
0.2886447310447693,
-0.06797424703836441,
-0.26272982358932495,
0.3008110225200653,
0.14279833436012268,
-0.33561378717422485,
-0.2840191423892975,
1.053336262702942,
0.009541588835418224,
-0.19505733251571655,
0.5995567440986633,
-0.2468024641275406,
-0.7101417779922485,
1.0815317630767822,
0.4985746443271637,
0.849215567111969,
0.040290359407663345,
0.024360526353120804,
0.825810432434082,
0.3971831202507019,
0.12214501202106476,
0.2589634358882904,
0.13598351180553436,
-0.30525028705596924,
-0.40841493010520935,
-0.6369879841804504,
-0.11788070201873779,
0.2635142505168915,
-0.5237658619880676,
0.31701362133026123,
-0.7842404246330261,
-0.07503970712423325,
0.041334059089422226,
0.23245632648468018,
-1.0388094186782837,
0.24692705273628235,
0.1716313511133194,
0.8283095955848694,
-0.7528970241546631,
0.7085538506507874,
0.6908557415008545,
-0.7551454305648804,
-1.0284748077392578,
0.11435753852128983,
-0.16028419137001038,
-0.7731758952140808,
0.8243076801300049,
0.2796730697154999,
0.15937429666519165,
0.21011310815811157,
-0.7720977663993835,
-1.063721776008606,
1.198084831237793,
0.2307894080877304,
-0.5919957756996155,
0.0386892668902874,
0.053208451718091965,
0.37151503562927246,
-0.09662581980228424,
0.5246556401252747,
0.23576541244983673,
0.5828099250793457,
0.07495464384555817,
-0.9568303227424622,
0.2528397738933563,
-0.44132015109062195,
-0.01678459905087948,
0.25397989153862,
-0.9277624487876892,
1.0526471138000488,
-0.37318092584609985,
0.08394205570220947,
-0.04747535660862923,
0.6157210469245911,
0.41645631194114685,
0.2249937504529953,
0.2764706015586853,
0.503976583480835,
0.49462977051734924,
-0.06644346565008163,
1.0527013540267944,
-0.7664084434509277,
0.6651690006256104,
0.6430704593658447,
0.022220516577363014,
0.7113986611366272,
0.33506086468696594,
-0.3861013948917389,
0.2866564095020294,
0.47509491443634033,
-0.3974445164203644,
0.234063521027565,
0.19131164252758026,
0.09133028984069824,
-0.021370060741901398,
0.2682358920574188,
-0.7229393720626831,
0.1968831717967987,
0.246165931224823,
-0.3587475121021271,
-0.17358219623565674,
0.015396703965961933,
0.13765648007392883,
-0.3206581175327301,
-0.34021833539009094,
0.3913057744503021,
0.03108403831720352,
-0.7098469138145447,
1.2075777053833008,
0.03810342401266098,
0.735192596912384,
-0.6944156289100647,
0.04004109650850296,
-0.13044877350330353,
0.30129700899124146,
-0.34838083386421204,
-0.7090277075767517,
0.06318691372871399,
0.03637812286615372,
-0.33772099018096924,
0.04786497354507446,
0.290312260389328,
-0.12680694460868835,
-0.5990548133850098,
0.2838180661201477,
0.07089650630950928,
0.18182611465454102,
-0.028599657118320465,
-0.8560600280761719,
0.31114906072616577,
0.17156237363815308,
-0.4190575182437897,
0.31788650155067444,
0.3384930193424225,
0.15059666335582733,
0.5324181914329529,
0.7543477416038513,
-0.1687222123146057,
0.2202565222978592,
-0.2150554060935974,
1.1238038539886475,
-0.8540641665458679,
-0.526023268699646,
-0.8016949892044067,
0.7186563611030579,
0.06117790937423706,
-0.7872931957244873,
0.7755110263824463,
0.807109534740448,
0.7913910746574402,
-0.3110927641391754,
0.7875475883483887,
-0.3119145631790161,
0.09821715950965881,
-0.5954211354255676,
0.6816836595535278,
-0.5551784038543701,
0.0988353043794632,
-0.3071085810661316,
-1.0121182203292847,
-0.27260151505470276,
0.5431699156761169,
-0.37698638439178467,
0.4231887459754944,
0.7364571690559387,
1.0859309434890747,
-0.35012027621269226,
-0.10170775651931763,
0.2874085009098053,
0.31325504183769226,
0.40170425176620483,
0.839358925819397,
0.533440113067627,
-0.7736429572105408,
0.6897589564323425,
-0.245246022939682,
-0.2442968636751175,
-0.4399767220020294,
-0.5268188118934631,
-0.8146540522575378,
-0.6141991019248962,
-0.2645692229270935,
-0.566307783126831,
0.03867601975798607,
1.0270637273788452,
0.9329022169113159,
-0.6729726195335388,
-0.12371247261762619,
-0.09871257096529007,
-0.11833318322896957,
-0.26382988691329956,
-0.18219752609729767,
0.6621547341346741,
-0.21755237877368927,
-0.6285564303398132,
0.07957451045513153,
-0.07630874216556549,
0.015474104322493076,
-0.31853121519088745,
-0.26372286677360535,
-0.22592085599899292,
-0.17287923395633698,
0.4150560796260834,
0.4382072985172272,
-0.6227287650108337,
-0.2838107645511627,
0.14725765585899353,
-0.37150031328201294,
0.1812959462404251,
0.48698678612709045,
-0.4684258699417114,
0.1176367923617363,
0.4274481236934662,
0.6527631878852844,
0.6054690480232239,
-0.07947462052106857,
0.1746266633272171,
-0.5287885069847107,
0.27601519227027893,
0.14634698629379272,
0.35098177194595337,
0.09340615570545197,
-0.5119019150733948,
0.4299301207065582,
0.24902790784835815,
-0.8142501711845398,
-0.7042005062103271,
0.007884474471211433,
-0.9624195098876953,
-0.3957391381263733,
1.367685079574585,
-0.09031827747821808,
-0.4193287193775177,
0.06486129760742188,
-0.20352353155612946,
0.2035110741853714,
-0.24439625442028046,
0.5307349562644958,
0.4726789891719818,
0.15005753934383392,
-0.11935707926750183,
-0.9098401665687561,
0.3312161862850189,
0.2652537524700165,
-0.5976060628890991,
0.09434466809034348,
0.4699576795101166,
0.47515082359313965,
0.4029258191585541,
0.4176216423511505,
-0.3024502098560333,
0.49064263701438904,
0.225361168384552,
0.5018484592437744,
-0.5511021614074707,
-0.41852012276649475,
-0.400452584028244,
0.07735703140497208,
-0.04437948018312454,
-0.5085639953613281
] |
shahrukhx01/question-vs-statement-classifier
|
shahrukhx01
| 2023-03-29T22:01:12Z | 8,527 | 28 |
transformers
|
[
"transformers",
"pytorch",
"safetensors",
"bert",
"text-classification",
"neural-search-query-classification",
"neural-search",
"en",
"endpoints_compatible",
"region:us"
] |
text-classification
| 2022-03-02T23:29:05Z |
---
language: "en"
tags:
- neural-search-query-classification
- neural-search
widget:
- text: "what did you eat in lunch?"
---
# KEYWORD STATEMENT VS QUESTION CLASSIFIER FOR NEURAL SEARCH
```python
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("shahrukhx01/question-vs-statement-classifier")
model = AutoModelForSequenceClassification.from_pretrained("shahrukhx01/question-vs-statement-classifier")
```
Trained to add the feature for classifying queries between Question Query vs Statement Query using classification in [Haystack](https://github.com/deepset-ai/haystack/issues/611)
|
[
-0.2702815532684326,
-0.5786926746368408,
0.30074602365493774,
0.044730838388204575,
-0.21147798001766205,
0.04662066325545311,
-0.0804503858089447,
-0.052482329308986664,
0.08932561427354813,
0.339333176612854,
-0.4860360026359558,
-0.20402996242046356,
-0.3505328893661499,
0.22715985774993896,
-0.5629181861877441,
0.7438710927963257,
0.32730865478515625,
0.23427100479602814,
-0.5389301180839539,
-0.02272140420973301,
-0.42217445373535156,
-0.8069630861282349,
-0.605125367641449,
-0.18718630075454712,
0.18826022744178772,
0.056248243898153305,
0.5317307114601135,
0.15049166977405548,
0.5105026364326477,
0.48755213618278503,
0.024662548676133156,
0.09901654720306396,
0.2583228349685669,
0.4637730121612549,
-0.16572117805480957,
-0.8782126903533936,
0.1895664930343628,
0.10981971025466919,
0.28360703587532043,
0.4548514485359192,
-0.2820776104927063,
0.04515690729022026,
-0.1907658874988556,
0.46408265829086304,
-0.7958784699440002,
0.30075398087501526,
-0.9186424612998962,
0.01563882827758789,
0.1925262212753296,
-0.20600953698158264,
-0.10147129744291306,
-0.5916800498962402,
0.3163439631462097,
-0.3558589518070221,
0.3995242416858673,
0.03729758411645889,
1.070473551750183,
0.6272962093353271,
-0.36568203568458557,
-0.3770010471343994,
-0.42690297961235046,
0.43157994747161865,
-0.5898014307022095,
0.33767175674438477,
0.4291248917579651,
0.5656218528747559,
0.31818392872810364,
-1.0617226362228394,
-0.6620189547538757,
-0.1928134560585022,
-0.3002747595310211,
0.06294289231300354,
0.12732088565826416,
0.18536262214183807,
0.22950175404548645,
0.474886953830719,
-0.8166443705558777,
-0.014933409169316292,
-0.6272276043891907,
-0.39639952778816223,
0.6117242574691772,
0.13359510898590088,
-0.06492132693529129,
-0.5344409942626953,
-0.12289120256900787,
-0.2728840410709381,
-0.3290962278842926,
0.04130095615983009,
0.11200833320617676,
0.2085740864276886,
0.4737251102924347,
0.3830299377441406,
-0.58237224817276,
0.6490052938461304,
0.2541913688182831,
0.4045711159706116,
0.3091793656349182,
-0.5037347078323364,
-0.0518999844789505,
0.17274941504001617,
0.8204731345176697,
0.22514277696609497,
0.23378178477287292,
-0.18006742000579834,
-0.08437252044677734,
0.12564930319786072,
0.3705633580684662,
-0.9964872598648071,
-0.3234304189682007,
0.18802233040332794,
-0.5744621753692627,
-0.3075752258300781,
0.3683713674545288,
-0.44131550192832947,
-0.2683911621570587,
0.059367336332798004,
0.6093969345092773,
-0.1356256902217865,
-0.20074164867401123,
0.11698198318481445,
-0.299162894487381,
0.6675469279289246,
0.09887013584375381,
-0.704039990901947,
0.1356881707906723,
0.6033837199211121,
0.560283899307251,
0.21470136940479279,
-0.1715659350156784,
-0.1256917119026184,
-0.5306301116943359,
-0.30632495880126953,
0.8622072339057922,
-0.5978604555130005,
-0.3998239040374756,
0.034998130053281784,
0.1817847490310669,
-0.6016104221343994,
-0.7532823085784912,
0.3666759729385376,
-0.919333815574646,
0.7055754661560059,
-0.11046558618545532,
-0.675441563129425,
-0.5414775013923645,
0.30151093006134033,
-0.292255699634552,
1.0309221744537354,
0.2058083564043045,
-0.4585445821285248,
0.43494775891304016,
-0.7649000287055969,
-0.3961593806743622,
0.2622179090976715,
-0.3310704529285431,
-0.3964441418647766,
-0.15375010669231415,
0.10901334136724472,
0.25034666061401367,
-0.24609871208667755,
0.3105833828449249,
-0.19825156033039093,
-0.5213769674301147,
0.5534672737121582,
-0.025016242638230324,
0.7657487988471985,
0.41310450434684753,
-0.5448994636535645,
0.009599694982171059,
-0.6403306722640991,
0.37022730708122253,
0.12863899767398834,
-0.4703601002693176,
-0.15863001346588135,
0.1731237769126892,
-0.18109992146492004,
0.1094156801700592,
0.5111755728721619,
-0.4999682903289795,
0.21270832419395447,
-0.7701398134231567,
0.6417449116706848,
0.3055548667907715,
-0.05259958282113075,
0.34292083978652954,
-0.11770143359899521,
0.553000807762146,
0.13234640657901764,
0.060849279165267944,
-0.18052493035793304,
-0.38448694348335266,
-0.9766687154769897,
0.5201379060745239,
0.6908432841300964,
0.8369501829147339,
-0.6065391302108765,
0.8133905529975891,
0.07506770640611649,
-0.36891964077949524,
-0.7214878797531128,
-0.07102785259485245,
0.14812910556793213,
0.4884302318096161,
0.492768794298172,
0.09463509917259216,
-0.847873866558075,
-0.8157297372817993,
-0.36622247099876404,
-0.39255011081695557,
0.14319434762001038,
0.44374215602874756,
0.6058661937713623,
-0.08240336924791336,
0.7959892153739929,
-0.7459005117416382,
-0.22434484958648682,
-0.12508325278759003,
0.15840798616409302,
0.17973774671554565,
0.6829555034637451,
0.4480907917022705,
-1.1364446878433228,
-0.5071233510971069,
-0.35895201563835144,
-0.5997058153152466,
0.16734230518341064,
0.0626167431473732,
0.09041841328144073,
0.29715603590011597,
0.7379001379013062,
-0.6850872039794922,
0.6451671719551086,
-0.10185318440198898,
-0.3461812734603882,
0.5030747056007385,
0.08637147396802902,
0.3335503041744232,
-1.2788503170013428,
0.011676249094307423,
-0.3416407108306885,
0.042574692517519,
-0.2520601749420166,
0.18772169947624207,
0.24273376166820526,
-0.22449736297130585,
-0.3601056635379791,
0.07524183392524719,
-0.20683427155017853,
0.06859797984361649,
-0.2442074567079544,
-0.10308080911636353,
0.07806701958179474,
0.38326701521873474,
-0.01511711161583662,
1.138222575187683,
0.7893550992012024,
-0.9022262692451477,
0.7766788005828857,
0.6737051606178284,
-0.35717639327049255,
0.16233780980110168,
-0.8889001607894897,
0.23709118366241455,
-0.027223311364650726,
0.12427229434251785,
-1.2956231832504272,
-0.16685126721858978,
0.10516470670700073,
-0.8394158482551575,
0.0701933279633522,
-0.19837981462478638,
-0.6905564665794373,
-0.6467142701148987,
-0.3914288580417633,
0.41611406207084656,
0.7066184282302856,
-0.5444190502166748,
0.4618513286113739,
0.04525600001215935,
0.19304408133029938,
-0.5823398232460022,
-0.89449542760849,
-0.024965858086943626,
-0.1508461982011795,
-0.40042757987976074,
0.22971975803375244,
0.040639396756887436,
0.13060231506824493,
-0.028556419536471367,
-0.21589063107967377,
-0.3669629395008087,
0.3424823582172394,
0.039074450731277466,
0.3170084059238434,
-0.4502464234828949,
0.552653431892395,
0.05056023970246315,
-0.05515916645526886,
0.36663079261779785,
-0.28049564361572266,
0.8338873982429504,
-0.3654578924179077,
-0.30580347776412964,
-0.3479555547237396,
0.20150867104530334,
0.22295866906642914,
-0.48744136095046997,
0.7222503423690796,
0.5583707094192505,
-0.02972465194761753,
-0.024446304887533188,
-0.7166193723678589,
-0.5250660181045532,
-0.5698173642158508,
0.47107505798339844,
-0.2896493673324585,
-0.9371304512023926,
0.3986145853996277,
-0.04222296550869942,
-0.49499231576919556,
0.7832639813423157,
0.29763978719711304,
-0.34207892417907715,
1.3110142946243286,
0.3526921272277832,
0.06071268767118454,
0.34546858072280884,
-0.42043280601501465,
0.2576272487640381,
-0.7655701041221619,
-0.35031166672706604,
-0.9113376140594482,
-0.10472504794597626,
-0.8721969723701477,
-0.08216103911399841,
0.11403190344572067,
0.017428511753678322,
-0.16107380390167236,
0.6125572323799133,
-0.9392536282539368,
0.3494369089603424,
0.6230867505073547,
0.01854408159852028,
-0.2196931391954422,
-0.13408911228179932,
-0.08981433510780334,
0.0255597997456789,
-0.7718915939331055,
-0.042784176766872406,
1.1866995096206665,
-0.2577601969242096,
0.6013182401657104,
-0.08447956293821335,
0.8151035308837891,
-0.04854372888803482,
-0.14599810540676117,
-1.0047154426574707,
0.7463873028755188,
-0.14285095036029816,
-1.0863536596298218,
-0.11713279038667679,
-0.495535284280777,
-1.1648330688476562,
0.35664135217666626,
-0.09194540977478027,
-0.3501037359237671,
0.27870193123817444,
-0.11203477531671524,
-0.5716115236282349,
0.1615132987499237,
-0.5076431035995483,
0.9896285533905029,
-0.29238107800483704,
0.3462029993534088,
-0.2563323676586151,
-0.7166655659675598,
-0.04426061362028122,
0.04717779904603958,
-0.25750619173049927,
-0.0006667932611890137,
-0.1526506394147873,
0.949444591999054,
-0.6132524609565735,
0.5399374961853027,
-0.36674633622169495,
0.5203916430473328,
0.4862055480480194,
-0.2969359755516052,
0.06551331281661987,
-0.07894883304834366,
0.0823507010936737,
-0.3344581127166748,
0.2868610620498657,
-0.1031099334359169,
-0.6401517987251282,
0.3853021562099457,
-0.5762654542922974,
-0.9253628253936768,
-0.5719010233879089,
-0.3933914601802826,
-0.10272233188152313,
0.2699974775314331,
0.43023690581321716,
0.3531045913696289,
-0.12514464557170868,
0.525382399559021,
0.7216241955757141,
-0.3264588713645935,
0.5169362425804138,
0.4859859049320221,
-0.25384223461151123,
-0.17883074283599854,
0.8371136784553528,
0.19377626478672028,
-0.09997709840536118,
0.5102317333221436,
0.39088258147239685,
-0.7396674752235413,
-0.4580220580101013,
0.17025072872638702,
0.21892555058002472,
-0.6629220843315125,
-0.369458943605423,
-0.848482608795166,
-0.8266140818595886,
-0.7546888589859009,
0.40158721804618835,
0.057911716401576996,
-0.4962690770626068,
-0.47019729018211365,
0.022928819060325623,
0.4969952702522278,
0.23503579199314117,
0.044852305203676224,
0.38681355118751526,
-0.7010045051574707,
0.24648405611515045,
0.8048842549324036,
0.18552133440971375,
-0.23148198425769806,
-0.644389808177948,
-0.09159969538450241,
0.0009502109605818987,
-0.40639230608940125,
-0.8381136059761047,
0.11862049251794815,
0.524482250213623,
0.5156904458999634,
0.25729629397392273,
0.12048319727182388,
0.5058287978172302,
-0.15563519299030304,
0.8276645541191101,
-0.03352903574705124,
-0.7326340675354004,
0.9385147094726562,
0.20437312126159668,
0.37653204798698425,
0.9523409605026245,
0.5036190748214722,
-0.4427591562271118,
-0.0781031921505928,
-0.7635627388954163,
-0.8166825175285339,
0.6708754301071167,
0.04287007451057434,
0.28911277651786804,
-0.20404313504695892,
0.40088266134262085,
-0.10536422580480576,
0.632010281085968,
-0.4223635792732239,
-0.37709376215934753,
-0.5588748455047607,
-0.1624598503112793,
0.08542510867118835,
-0.09032821655273438,
0.20527422428131104,
-0.8290452361106873,
0.3901711404323578,
-0.07986307144165039,
0.41698557138442993,
0.3293760120868683,
-0.37011584639549255,
0.31519436836242676,
0.22721228003501892,
0.261312335729599,
0.5326354503631592,
-0.3795129060745239,
-0.16567935049533844,
0.11122530698776245,
-0.36582785844802856,
-0.01798410341143608,
0.5959678888320923,
-0.2728523313999176,
0.18945665657520294,
-0.02295430190861225,
0.8069213032722473,
-0.057943571358919144,
-0.408797025680542,
0.5999826192855835,
-0.1546410471200943,
-0.5439546704292297,
-0.46126124262809753,
0.35407885909080505,
0.13292300701141357,
0.2768496870994568,
0.49333351850509644,
0.147407665848732,
0.6516143679618835,
-0.5118010640144348,
0.23300966620445251,
0.42572441697120667,
-0.3198564946651459,
0.09339090436697006,
0.8935520648956299,
0.22460094094276428,
-0.46219515800476074,
0.9245015382766724,
-0.10523669421672821,
-1.1240336894989014,
0.819860577583313,
0.06191904842853546,
1.0843147039413452,
-0.2309674173593521,
0.25277525186538696,
0.5335178375244141,
0.18725185096263885,
0.023037759587168694,
0.4076819121837616,
-0.591788113117218,
-0.848445475101471,
-0.27882274985313416,
-0.5328387022018433,
-0.25136545300483704,
0.18274790048599243,
-0.8162330985069275,
-0.07049846649169922,
-0.5532361268997192,
-0.20159566402435303,
0.18074534833431244,
0.1831151843070984,
-0.6233745217323303,
0.3285751938819885,
-0.12235762923955917,
1.0084563493728638,
-0.31728243827819824,
0.7103294730186462,
0.940207839012146,
-0.8173235058784485,
-0.8808595538139343,
-0.032520901411771774,
-0.4675266742706299,
-0.9485166668891907,
0.925510585308075,
0.5226023197174072,
0.4241488575935364,
-0.03755733370780945,
-0.7170606851577759,
-0.8228535652160645,
1.0012624263763428,
-0.2961300313472748,
-0.27509254217147827,
-0.24100102484226227,
0.09890095144510269,
0.3632160425186157,
-0.2873069643974304,
0.17701607942581177,
0.6765010952949524,
0.3365059494972229,
0.08025834709405899,
-0.8969230651855469,
-0.14800988137722015,
-0.2739408016204834,
0.05812835693359375,
0.31618186831474304,
-0.6226291656494141,
1.0127102136611938,
-0.061932891607284546,
-0.21489983797073364,
0.3169911503791809,
0.5714183449745178,
0.05664234980940819,
0.19701088964939117,
0.564241349697113,
0.5329035520553589,
0.5718299746513367,
-0.5366768836975098,
0.8845483660697937,
-0.3198544979095459,
0.4803713262081146,
0.9977660179138184,
0.015510047785937786,
0.694991946220398,
0.22328637540340424,
-0.5619187355041504,
0.5950558185577393,
0.9745209217071533,
-0.4805131256580353,
0.7445241212844849,
0.20167064666748047,
-0.08699415624141693,
-0.3659900724887848,
0.3204137682914734,
-0.7661940455436707,
0.7010796070098877,
0.27281996607780457,
-0.259765625,
-0.21463823318481445,
-0.1572239249944687,
-0.21049973368644714,
-0.0054552750661969185,
-0.22974832355976105,
1.0502471923828125,
-0.04630584269762039,
-0.7344701886177063,
0.8919419646263123,
-0.1612381935119629,
0.8901305198669434,
-0.5756651163101196,
0.12793387472629547,
-0.19034576416015625,
0.22123578190803528,
-0.3048464059829712,
-0.5774515271186829,
0.2745700776576996,
-0.4173896610736847,
0.005612931679934263,
0.24456259608268738,
0.867134690284729,
-0.540563702583313,
-0.2762530744075775,
-0.09189461916685104,
0.4160308837890625,
0.2883359491825104,
-0.43683090806007385,
-1.3801252841949463,
-0.48737832903862,
-0.0887097716331482,
-0.2211560159921646,
0.09308289736509323,
0.11463579535484314,
0.3738119602203369,
0.6529482007026672,
0.5659789443016052,
-0.08299919217824936,
0.2907433807849884,
0.12509924173355103,
0.9547035098075867,
-0.6835441589355469,
-0.6226566433906555,
-0.5282326936721802,
0.06345665454864502,
-0.2521836757659912,
-0.2941800057888031,
0.7528054118156433,
0.520494282245636,
0.9598928689956665,
-0.07625085860490799,
0.6932973265647888,
-0.25503483414649963,
0.6013049483299255,
-0.3157910406589508,
0.7744328379631042,
-0.6800565123558044,
-0.05533282831311226,
0.27407050132751465,
-0.94915771484375,
-0.0062893046997487545,
1.0456260442733765,
-0.27503737807273865,
0.3753567636013031,
1.0500452518463135,
1.0453462600708008,
0.11164799332618713,
0.00601881043985486,
0.08989482372999191,
0.10821523517370224,
0.0014078906970098615,
0.2719622850418091,
1.1368486881256104,
-0.8030060529708862,
0.7538905143737793,
-0.23342373967170715,
0.2780023217201233,
-0.39054378867149353,
-0.27418211102485657,
-0.980914294719696,
-0.7438262104988098,
-0.410025030374527,
-0.5217011570930481,
-0.1229848638176918,
0.7671154141426086,
0.7392941117286682,
-1.0230426788330078,
-0.28662624955177307,
-0.21947067975997925,
0.059295717626810074,
-0.044884417206048965,
-0.3331260681152344,
0.3953743875026703,
-0.9659844636917114,
-0.4562568664550781,
0.23892468214035034,
-0.08833660930395126,
-0.0435669980943203,
-0.29965218901634216,
0.16274820268154144,
-0.638983428478241,
0.12003304064273834,
0.2566293776035309,
0.24459490180015564,
-0.5701671242713928,
0.034282226115465164,
0.09442394971847534,
-0.16952292621135712,
0.2655225992202759,
0.7614210844039917,
-1.1099578142166138,
0.3381604254245758,
0.6074807047843933,
0.8302326202392578,
0.7484962344169617,
-0.0014020040398463607,
0.29657644033432007,
-0.41119885444641113,
0.15279686450958252,
0.3868398368358612,
0.1798456311225891,
0.26134946942329407,
-0.3791602849960327,
0.5006026029586792,
0.43676772713661194,
-0.6165934205055237,
-0.681067943572998,
0.09401354193687439,
-0.6466702818870544,
-0.5473545789718628,
0.9346357583999634,
0.2103867083787918,
-0.33049798011779785,
-0.1208781972527504,
-0.2564990222454071,
0.2723987102508545,
-0.24689161777496338,
0.7646114230155945,
0.5136561989784241,
-0.026462271809577942,
0.025613851845264435,
-0.30631473660469055,
0.6657624244689941,
0.6943681836128235,
-0.6579439043998718,
-0.4657002389431,
0.14891929924488068,
0.39740797877311707,
0.39722076058387756,
0.22743947803974152,
-0.21023152768611908,
0.5302720069885254,
-0.11389554291963577,
-0.054273027926683426,
-0.23155729472637177,
-0.024794025346636772,
-0.30310681462287903,
0.2962270975112915,
-0.11077099293470383,
-0.9197978973388672
] |
dbmdz/electra-large-discriminator-finetuned-conll03-english
|
dbmdz
| 2023-09-06T22:20:07Z | 8,515 | 17 |
transformers
|
[
"transformers",
"pytorch",
"safetensors",
"electra",
"token-classification",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] |
token-classification
| 2022-03-02T23:29:05Z |
Entry not found
|
[
-0.3227650225162506,
-0.22568431496620178,
0.862226128578186,
0.43461495637893677,
-0.5282987952232361,
0.7012965679168701,
0.7915717363357544,
0.07618638128042221,
0.7746025919914246,
0.2563219666481018,
-0.7852817177772522,
-0.22573819756507874,
-0.9104480743408203,
0.5715669393539429,
-0.3992334008216858,
0.5791245698928833,
-0.14494505524635315,
-0.10751161724328995,
0.28233757615089417,
-0.2768954336643219,
-0.5409224033355713,
-0.36855220794677734,
-1.1902776956558228,
0.061491113156080246,
0.5316578149795532,
0.7435142397880554,
0.7584060430526733,
0.3652167320251465,
0.6432578563690186,
0.3932291269302368,
-0.23138920962810516,
0.4827055037021637,
-0.04171813279390335,
0.00260411505587399,
-0.3524433970451355,
-0.5516898036003113,
-0.28596609830856323,
0.07584730535745621,
1.0961304903030396,
0.966687798500061,
-0.284663587808609,
0.05330817773938179,
-0.3063621520996094,
0.33088892698287964,
-0.49734312295913696,
0.3054099678993225,
-0.022506045177578926,
0.16318801045417786,
-0.7041513919830322,
-0.5535354018211365,
0.012794834561645985,
-0.7361212968826294,
0.17926570773124695,
-0.690081000328064,
0.8269098401069641,
0.18583157658576965,
1.1533750295639038,
0.14819414913654327,
-0.462487131357193,
-0.8161764144897461,
-0.6538989543914795,
0.5711171627044678,
-0.32703715562820435,
0.39680248498916626,
0.7028235197067261,
-0.048573412001132965,
-0.9820332527160645,
-0.6745741367340088,
-0.46466192603111267,
0.2923962473869324,
0.35402774810791016,
-0.3411678075790405,
-0.17522086203098297,
-0.3058989644050598,
0.15792037546634674,
0.12811517715454102,
-0.4841994643211365,
-0.5543919205665588,
-0.5475160479545593,
-0.3960252106189728,
0.6206658482551575,
0.3482950031757355,
0.2429177463054657,
-0.1888415813446045,
-0.3228583335876465,
0.0880163162946701,
-0.4160851538181305,
0.3402571678161621,
0.6335517168045044,
0.7114017009735107,
-0.5811444520950317,
0.560215950012207,
-0.04927587881684303,
0.7439703941345215,
0.11445561796426773,
-0.27478092908859253,
0.41460567712783813,
-0.14724725484848022,
0.055171746760606766,
0.4226345121860504,
0.31524422764778137,
0.2841312289237976,
-0.3273695111274719,
0.2032228708267212,
-0.3215144872665405,
-0.30496224761009216,
-0.22332167625427246,
-0.29490774869918823,
-0.3592180609703064,
0.5492289066314697,
-0.3314017057418823,
-0.42855486273765564,
1.143175721168518,
-0.4200771450996399,
-0.7302224040031433,
0.33156412839889526,
0.4065209925174713,
-0.0994480773806572,
-0.37146568298339844,
-0.052260834723711014,
-0.8458789587020874,
-0.007907390594482422,
0.7491172552108765,
-0.7198970913887024,
0.3371737599372864,
0.4728063642978668,
0.7417217493057251,
0.19650575518608093,
-0.14034469425678253,
-0.42949390411376953,
0.2971969544887543,
-0.8659994006156921,
0.6320174336433411,
-0.20135220885276794,
-1.0051977634429932,
0.11150479316711426,
0.8971705436706543,
-0.37896400690078735,
-1.2094876766204834,
1.0605159997940063,
-0.6887932419776917,
0.16017857193946838,
-0.676761269569397,
-0.14661237597465515,
-0.07118501514196396,
-0.005096632521599531,
-0.6088156700134277,
0.7567102313041687,
0.587267279624939,
-0.4995276927947998,
0.21429483592510223,
-0.26029831171035767,
-0.39151400327682495,
0.38824859261512756,
-0.07935450226068497,
-0.21858926117420197,
0.713833212852478,
-0.6647079586982727,
-0.26932814717292786,
0.2942774295806885,
0.2368936538696289,
-0.35706108808517456,
-0.7931919097900391,
0.08478113263845444,
-0.05786270648241043,
1.550750494003296,
-0.03868847340345383,
-0.3586106300354004,
-0.679383397102356,
-1.1506240367889404,
-0.07070787996053696,
0.6886883974075317,
-0.9194989204406738,
-0.27839475870132446,
-0.046410128474235535,
-0.26169314980506897,
0.08994917571544647,
0.7390589714050293,
-1.1194051504135132,
0.2832726836204529,
-0.05092663690447807,
-0.22794683277606964,
0.8271058797836304,
0.15387225151062012,
0.24758946895599365,
0.14913396537303925,
0.42958706617355347,
0.527725338935852,
0.11115207523107529,
0.683587908744812,
-0.34720373153686523,
-0.9694353938102722,
0.6154631972312927,
0.25266361236572266,
0.8121447563171387,
-0.49945297837257385,
0.2685093879699707,
0.27025535702705383,
-0.3409680724143982,
-0.5682371854782104,
-0.3102838397026062,
0.09025752544403076,
0.14930562674999237,
0.11142510175704956,
-0.5721710324287415,
-0.6576125025749207,
-0.9689140319824219,
-0.13590654730796814,
-0.4314374029636383,
-0.3571570813655853,
0.21006910502910614,
0.5792906284332275,
-1.1975523233413696,
0.4128875136375427,
-0.7705625891685486,
-0.7038741111755371,
-0.01065548975020647,
-0.19338123500347137,
0.7540656328201294,
0.43240174651145935,
0.5033966898918152,
-0.6397148370742798,
-0.5661987066268921,
-0.22470176219940186,
-1.0333747863769531,
-0.13280506432056427,
0.24819621443748474,
0.3065737783908844,
-0.13423344492912292,
-0.2744963765144348,
-0.48740333318710327,
0.8100387454032898,
0.14789170026779175,
-0.5391897559165955,
0.5220767259597778,
-0.3020317256450653,
0.17224803566932678,
-0.6369150280952454,
-0.06916818022727966,
-0.661676287651062,
-0.0009071884560398757,
-0.3608308732509613,
-0.5737438797950745,
0.14772287011146545,
0.07017494738101959,
-0.16065457463264465,
0.28808408975601196,
-0.909277081489563,
-0.0010852962732315063,
-0.7442210912704468,
0.379071980714798,
0.06394772231578827,
-0.3145078718662262,
-0.017517540603876114,
1.0000386238098145,
0.7784460783004761,
-0.3848048746585846,
0.721744179725647,
0.4440041184425354,
0.19036155939102173,
0.7630521059036255,
-0.18725109100341797,
0.16478213667869568,
-0.5245416760444641,
-0.12161104381084442,
-0.8887597918510437,
-1.0982946157455444,
0.7320570349693298,
-0.6114250421524048,
0.36542922258377075,
-0.4277869760990143,
0.2589159905910492,
-0.6919258832931519,
-0.03885362669825554,
0.4808599352836609,
-0.05936325341463089,
-0.6863942742347717,
0.5232570171356201,
0.45317530632019043,
-0.2019241601228714,
-0.6609031558036804,
-0.530157208442688,
0.39365822076797485,
0.6154114007949829,
-0.16390392184257507,
0.06878514587879181,
0.14941060543060303,
-0.5441926121711731,
-0.040802597999572754,
-0.38691970705986023,
-0.45766758918762207,
0.054224006831645966,
0.13053473830223083,
-0.005750799085944891,
-0.404820054769516,
-0.0868026465177536,
-0.35842007398605347,
-0.4656120240688324,
0.21876516938209534,
0.3011947274208069,
-0.04096309468150139,
-0.42599788308143616,
-0.3619818687438965,
-0.888181209564209,
0.6719610095024109,
0.5370282530784607,
0.05281545966863632,
0.7555549740791321,
0.16819314658641815,
-0.8014987707138062,
-0.13532210886478424,
-0.1760706603527069,
0.2696830928325653,
-0.5588056445121765,
0.13849826157093048,
-0.013484534807503223,
-0.0637492910027504,
0.26297882199287415,
0.25386232137680054,
-0.4300556778907776,
0.9276250004768372,
-0.2615274488925934,
-0.3592521846294403,
0.7960181832313538,
0.5974742770195007,
0.49583131074905396,
0.16503219306468964,
-0.044541798532009125,
0.900709331035614,
-1.1966516971588135,
-0.6563175916671753,
-0.7409549355506897,
-0.15945707261562347,
-0.43510833382606506,
-0.032105933874845505,
0.6254412531852722,
0.2900990843772888,
-0.1333388388156891,
0.4756395220756531,
-0.5243489742279053,
0.3556033670902252,
1.01198410987854,
0.35748639702796936,
0.3435698449611664,
-0.7570229172706604,
-0.2515777349472046,
-0.1402427852153778,
-0.9998157620429993,
-0.2631377875804901,
0.8871029019355774,
0.22752606868743896,
0.844460666179657,
0.5992541313171387,
0.6784542798995972,
0.1367226243019104,
0.2523828148841858,
-0.30590319633483887,
0.3920294940471649,
0.4376082420349121,
-1.0401138067245483,
-0.42758408188819885,
0.021418681368231773,
-0.9703338742256165,
-0.14227519929409027,
-0.03495011106133461,
-0.42617112398147583,
0.7681737542152405,
0.00016589462757110596,
-0.4076709747314453,
0.7732734084129333,
-0.455583393573761,
0.7562873363494873,
-0.4473648965358734,
-0.02663906291127205,
0.4699096083641052,
-0.7070636749267578,
0.4677430987358093,
0.12878790497779846,
0.6205843091011047,
-0.015572631731629372,
-0.04078587517142296,
0.7104941606521606,
-0.9129160046577454,
0.25438642501831055,
-0.6348397135734558,
0.22421300411224365,
0.24246945977210999,
0.51606285572052,
0.5969953536987305,
0.4371243417263031,
0.10119888931512833,
-0.23920902609825134,
0.04115807265043259,
-0.8241125345230103,
-0.210506409406662,
0.697515606880188,
-0.7186890840530396,
-0.6864197850227356,
-1.2355337142944336,
0.14438660442829132,
0.27347055077552795,
0.389305055141449,
0.7959296107292175,
0.571408748626709,
0.1289544403553009,
0.680525004863739,
0.9888588190078735,
-0.0688566341996193,
0.9166924357414246,
0.3224477171897888,
0.09175168722867966,
-0.21944808959960938,
0.7036820650100708,
0.26627904176712036,
-0.24707956612110138,
-0.11939732730388641,
0.20913465321063995,
-0.11069409549236298,
-0.591761589050293,
-0.49990686774253845,
0.3701757788658142,
-0.6731787919998169,
-0.18303893506526947,
-0.6243735551834106,
-0.6043769717216492,
-0.511759340763092,
0.06927360594272614,
-0.7147687673568726,
0.23979046940803528,
-0.7753565907478333,
-0.10574902594089508,
0.04323432594537735,
0.9792009592056274,
-0.589311957359314,
0.5805224180221558,
-1.1218582391738892,
0.19345788657665253,
-0.07949887961149216,
0.7921058535575867,
0.21395787596702576,
-0.7344395518302917,
-0.3975418508052826,
-0.11592631042003632,
-0.3729911744594574,
-1.3576762676239014,
0.21404948830604553,
-0.2454141080379486,
0.23094046115875244,
0.6145404577255249,
0.1397707313299179,
0.5258248448371887,
-0.34326282143592834,
0.7029101848602295,
-0.057017259299755096,
-0.7069286704063416,
0.7934495210647583,
-0.5026894807815552,
0.4963534474372864,
0.9765996932983398,
0.5333835482597351,
-0.7984007596969604,
0.035741209983825684,
-1.041123390197754,
-0.6008695363998413,
0.38426393270492554,
0.11928944289684296,
-0.03601083159446716,
-0.6659559011459351,
-0.054019637405872345,
-0.16143807768821716,
0.6043745279312134,
-1.039069414138794,
-0.7858356237411499,
0.2576698362827301,
0.5277302861213684,
0.0816856250166893,
-0.5653398633003235,
0.20880667865276337,
-0.544416069984436,
1.0657774209976196,
0.45109400153160095,
0.3274499475955963,
0.8406060934066772,
0.46492424607276917,
-0.3823164403438568,
0.09252490103244781,
0.7662695050239563,
0.6666232347488403,
-0.5239797830581665,
-0.2908027470111847,
-0.08827541768550873,
-0.9143403768539429,
0.05927472561597824,
0.11168918758630753,
-0.013455932028591633,
0.9082110524177551,
0.5793083310127258,
0.2539709210395813,
0.4514279365539551,
-0.726460337638855,
0.8859451413154602,
-0.14954176545143127,
-0.12472866475582123,
-1.0677239894866943,
0.1948619782924652,
-0.23984959721565247,
0.5006402134895325,
1.0061326026916504,
0.5250048041343689,
-0.047630298882722855,
-0.8143380880355835,
-0.01473585981875658,
0.6939172148704529,
-0.7091123461723328,
-0.17449834942817688,
0.944853663444519,
0.3847099542617798,
-1.2953051328659058,
1.106776475906372,
-0.5381771326065063,
-0.560332179069519,
0.9121301770210266,
0.522956907749176,
1.1221847534179688,
-0.44204121828079224,
0.0008676342549733818,
0.2662237286567688,
0.41378432512283325,
0.5423170328140259,
1.0869629383087158,
0.431413471698761,
-0.7931063771247864,
0.8826584815979004,
-0.24776044487953186,
-0.40361151099205017,
-0.05347571521997452,
-0.42859897017478943,
0.16892178356647491,
-0.4406192898750305,
-0.10713007301092148,
-0.3444187641143799,
0.28543180227279663,
-0.7072042226791382,
0.42807620763778687,
-0.0838567465543747,
0.8653068542480469,
-0.8553727269172668,
0.47207626700401306,
0.635470449924469,
-0.3337355852127075,
-0.8508191108703613,
-0.26198428869247437,
-0.11448462307453156,
-0.6389466524124146,
0.30214807391166687,
-0.4554102420806885,
0.044398851692676544,
0.09623463451862335,
-0.649151623249054,
-1.1778275966644287,
0.9093633890151978,
-0.639612078666687,
-0.2784462869167328,
0.20464053750038147,
-0.11514760553836823,
0.28811705112457275,
-0.2524643540382385,
0.010661216452717781,
0.41876548528671265,
0.748940110206604,
0.2844654619693756,
-0.7727053761482239,
-0.3694884479045868,
0.0015032943338155746,
-0.44474777579307556,
0.7582978010177612,
-0.6002101898193359,
1.1840779781341553,
-0.5563543438911438,
-0.059654366225004196,
0.44384512305259705,
0.24690914154052734,
0.21076197922229767,
0.6629220843315125,
0.1442081481218338,
0.7282265424728394,
1.07012140750885,
-0.40835219621658325,
0.8811809420585632,
0.26432839035987854,
0.47430819272994995,
0.7238501906394958,
-0.6487724781036377,
0.7513749003410339,
0.31810489296913147,
-0.5682924389839172,
0.9228013753890991,
1.2906063795089722,
-0.15699204802513123,
0.8079374432563782,
0.05136508867144585,
-1.081600546836853,
0.325833261013031,
-0.20724765956401825,
-0.7530064582824707,
0.3150254189968109,
0.19055864214897156,
-0.6920982599258423,
-0.5770308971405029,
-0.24046507477760315,
-0.35662803053855896,
-0.11552901566028595,
-0.7631728649139404,
0.6720563769340515,
-0.016969164833426476,
-0.5103683471679688,
0.18857547640800476,
0.2877499461174011,
0.17368432879447937,
-0.5235732793807983,
-0.02939440682530403,
-0.22823619842529297,
0.2660655975341797,
-0.5670853853225708,
-0.5234526991844177,
0.5724433064460754,
-0.32430219650268555,
-0.5343255400657654,
0.18147465586662292,
0.763587236404419,
-0.16923809051513672,
-0.4515409469604492,
0.32472723722457886,
0.6959525346755981,
0.1665852814912796,
0.4250282347202301,
-0.23511263728141785,
0.24480605125427246,
-0.08044824004173279,
-0.06651552021503448,
0.27714768052101135,
0.3449169099330902,
0.22435641288757324,
0.4450142979621887,
0.43285664916038513,
-0.01808755099773407,
-0.10736498981714249,
-0.382819801568985,
0.4124940037727356,
-0.9542785882949829,
-0.5713282823562622,
-0.6307113766670227,
0.2740660607814789,
-0.02315417304635048,
-1.0836423635482788,
0.4145168364048004,
1.4406683444976807,
1.0359982252120972,
-0.4756383001804352,
1.067226529121399,
-0.21818485856056213,
0.9594791531562805,
0.41483086347579956,
0.5420440435409546,
-0.6030411720275879,
0.03835370019078255,
-0.4364396035671234,
-1.076962947845459,
-0.35716333985328674,
0.4539391100406647,
-0.022899555042386055,
-0.3429867625236511,
0.872571587562561,
0.5887166261672974,
-0.33473607897758484,
-0.11728022992610931,
0.048487238585948944,
-0.029941488057374954,
-0.12433847039937973,
0.5145376324653625,
0.7648399472236633,
-0.9344304800033569,
-0.10680416971445084,
-0.21577754616737366,
-0.6382725834846497,
-0.5047279000282288,
-0.9632009267807007,
-0.12959396839141846,
-0.16037796437740326,
0.035343267023563385,
-0.5662806630134583,
0.00255737011320889,
1.208324909210205,
0.5684957504272461,
-1.1113994121551514,
-0.5303789377212524,
0.3371853232383728,
0.3920421898365021,
-0.1874791383743286,
-0.24202413856983185,
0.2984568774700165,
0.15382249653339386,
-0.5908876657485962,
0.6875665783882141,
0.8089625239372253,
0.208888977766037,
0.19554761052131653,
0.15893013775348663,
-0.8229473829269409,
-0.14913435280323029,
0.17440445721149445,
0.9450570344924927,
-0.939853310585022,
-0.7114843130111694,
-0.03168516233563423,
-0.27094873785972595,
-0.05765746906399727,
0.17102102935314178,
-0.4046344757080078,
0.5180677175521851,
0.34591493010520935,
0.49933457374572754,
0.0561608150601387,
-0.054746925830841064,
0.5409556031227112,
-0.9069057703018188,
0.09425963461399078,
0.4134361147880554,
0.4154115319252014,
-0.4000864028930664,
-0.5910194516181946,
0.6713420748710632,
1.0073972940444946,
-0.6594868898391724,
-0.8743268847465515,
-0.19846712052822113,
-1.0016002655029297,
0.04189709946513176,
0.6762762069702148,
0.5009527802467346,
-0.4806513786315918,
-0.4174500107765198,
-0.5617399215698242,
-0.1254672110080719,
-0.1369970738887787,
0.7621601819992065,
1.179680585861206,
-0.7432094812393188,
0.07975747436285019,
-1.038639783859253,
0.6594986915588379,
-0.2419457733631134,
-0.3457581698894501,
-0.48644304275512695,
0.3832802176475525,
0.35236993432044983,
0.440481036901474,
0.614812433719635,
0.1408471167087555,
0.8338426351547241,
0.3126053214073181,
-0.1702686995267868,
0.2698982357978821,
-0.4559200704097748,
-0.028932858258485794,
-0.057962555438280106,
0.31015971302986145,
-1.0262157917022705
] |
pankajmathur/orca_mini_v3_7b
|
pankajmathur
| 2023-11-18T12:09:52Z | 8,512 | 39 |
transformers
|
[
"transformers",
"pytorch",
"llama",
"text-generation",
"en",
"dataset:psmathur/orca_mini_v1_dataset",
"dataset:ehartford/dolphin",
"arxiv:2306.02707",
"license:other",
"endpoints_compatible",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-08-07T03:23:51Z |
---
language:
- en
library_name: transformers
license: other
datasets:
- psmathur/orca_mini_v1_dataset
- ehartford/dolphin
pipeline_tag: text-generation
---
# orca_mini_v3_7b
A LLama2-7b model trained on Orca Style datasets.
<br>

<br>
🤔 How good is orca-mini-v3-7b? Do the evaluation results from HuggingFace Open LLM leaderboard translate to real-world use cases?
🔍 Now you can figure it out for yourself!
Introducing the orca-mini chatbot powered by the orca-mini-v3-7b model. Dive in and see how the open source 7b model stacks up in the world of massive language models. 🌍
⏰ Hurry up before I run out of GPU credits! 😉
Check it out here 👉
[https://huggingface.co/spaces/psmathur/psmathur-orca_mini_v3_7b](https://huggingface.co/spaces/psmathur/psmathur-orca_mini_v3_7b)
<br>
**P.S. If you're interested to collaborate, please connect with me at www.linkedin.com/in/pankajam.**
<br>
### quantized versions
Big thanks to [@TheBloke](https://huggingface.co/TheBloke)
1) https://huggingface.co/TheBloke/orca_mini_v3_7B-GGML
2) https://huggingface.co/TheBloke/orca_mini_v3_7B-GPTQ
<br>
#### license disclaimer:
This model is bound by the license & usage restrictions of the original Llama-2 model. And comes with no warranty or gurantees of any kind.
<br>
## evaluation
We evaluated orca_mini_v3_7b on a wide range of tasks using [Language Model Evaluation Harness](https://github.com/EleutherAI/lm-evaluation-harness) from EleutherAI.
Here are the results on metrics used by [HuggingFaceH4 Open LLM Leaderboard](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard)
|||||
|:------:|:--------:|:-------:|:--------:|
|**Task**|**Metric**|**Value**|**Stderr**|
|*arc_challenge*|acc_norm|0.5717|0.0145|
|*hellaswag*|acc_norm|0.7966|0.0043|
|*mmlu*|acc_norm|0.5234|0.035|
|*truthfulqa_mc*|mc2|0.5029|0.0156|
|**Total Average**|-|**0.59865**||
<br>
## example esage
Here is prompt format
```
### System:
You are an AI assistant that follows instruction extremely well. Help as much as you can.
### User:
Tell me about Orcas.
### Assistant:
```
Below shows a code example on how to use this model
```python
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
tokenizer = AutoTokenizer.from_pretrained("psmathur/orca_mini_v3_7b", use_fast=False)
model = AutoModelForCausalLM.from_pretrained(
"psmathur/orca_mini_v3_7b",
torch_dtype=torch.float16,
load_in_8bit=True,
low_cpu_mem_usage=True,
device_map="auto"
)
system_prompt = "### System:\nYou are an AI assistant that follows instruction extremely well. Help as much as you can.\n\n"
#generate text steps
instruction = "Tell me about Orcas."
prompt = f"{system_prompt}### User: {instruction}\n\n### Assistant:\n"
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
output = model.generate(**inputs, do_sample=True, top_p=0.95, top_k=0, max_new_tokens=4096)
print(tokenizer.decode(output[0], skip_special_tokens=True))
```
<br>
#### limitations & biases:
While this model aims for accuracy, it can occasionally produce inaccurate or misleading results.
Despite diligent efforts in refining the pretraining data, there remains a possibility for the generation of inappropriate, biased, or offensive content.
Exercise caution and cross-check information when necessary.
<br>
### citiation:
Please kindly cite using the following BibTeX:
```
@misc{orca_mini_v3_7b,
author = {Pankaj Mathur},
title = {orca_mini_v3_7b: An explain tuned Llama2-7b model},
year = {2023},
publisher = {GitHub, HuggingFace},
journal = {GitHub repository, HuggingFace repository},
howpublished = {\url{https://https://huggingface.co/psmathur/orca_mini_v3_7b},
}
```
```
@misc{mukherjee2023orca,
title={Orca: Progressive Learning from Complex Explanation Traces of GPT-4},
author={Subhabrata Mukherjee and Arindam Mitra and Ganesh Jawahar and Sahaj Agarwal and Hamid Palangi and Ahmed Awadallah},
year={2023},
eprint={2306.02707},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
```
```
@software{touvron2023llama,
title={LLaMA2: 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}
}
```
# [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard)
Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/details_psmathur__orca_mini_v3_7b)
| Metric | Value |
|-----------------------|---------------------------|
| Avg. | 47.98 |
| ARC (25-shot) | 56.91 |
| HellaSwag (10-shot) | 79.64 |
| MMLU (5-shot) | 52.37 |
| TruthfulQA (0-shot) | 50.51 |
| Winogrande (5-shot) | 74.27 |
| GSM8K (5-shot) | 7.13 |
| DROP (3-shot) | 15.06 |
|
[
-0.22170351445674896,
-0.9487821459770203,
0.23886139690876007,
0.15199719369411469,
-0.2861883044242859,
0.0019471942214295268,
-0.2224038988351822,
-0.6563782095909119,
0.272916316986084,
0.18685105443000793,
-0.5239289402961731,
-0.7685047388076782,
-0.6454907059669495,
-0.1323915421962738,
-0.14825446903705597,
1.0749197006225586,
-0.1030222624540329,
-0.08100838214159012,
0.14287970960140228,
-0.30945953726768494,
-0.5917848944664001,
-0.4421234130859375,
-0.9854857325553894,
-0.4431089758872986,
0.2854931354522705,
0.26826977729797363,
0.6135849952697754,
0.8095592856407166,
0.44853755831718445,
0.33816519379615784,
-0.31652987003326416,
0.16609789431095123,
-0.46759602427482605,
-0.24361656606197357,
0.2080690860748291,
-0.734965980052948,
-1.0304704904556274,
0.03183808922767639,
0.44709545373916626,
0.3275657594203949,
-0.29585322737693787,
0.4759008586406708,
0.12681591510772705,
0.29408594965934753,
-0.28221002221107483,
0.6207560300827026,
-0.39391079545021057,
-0.0689866840839386,
-0.4878203868865967,
-0.026633398607373238,
-0.07900317013263702,
-0.3930298089981079,
-0.07776744663715363,
-0.5766348838806152,
-0.04759816825389862,
-0.026415452361106873,
1.0160468816757202,
0.38666993379592896,
-0.17696614563465118,
-0.44472649693489075,
-0.23493850231170654,
0.7514868974685669,
-0.9603020548820496,
0.17147216200828552,
0.1633063405752182,
0.30814865231513977,
-0.34039828181266785,
-0.7610538601875305,
-0.742392897605896,
-0.31106293201446533,
-0.09396335482597351,
0.2772684693336487,
-0.1342887431383133,
-0.110854372382164,
0.321271151304245,
0.507821798324585,
-0.5797759890556335,
0.2825140953063965,
-0.4050363004207611,
-0.21488304436206818,
0.6242802739143372,
0.3366332948207855,
0.32934585213661194,
-0.1211094856262207,
-0.28340819478034973,
-0.3984018564224243,
-0.7564241886138916,
0.46294814348220825,
0.5046460628509521,
0.2948665916919708,
-0.5769186615943909,
0.7710648775100708,
0.0326787531375885,
0.6438365578651428,
0.15944363176822662,
-0.5482400059700012,
0.5090328454971313,
-0.43184420466423035,
-0.30970871448516846,
-0.17167693376541138,
0.8591362237930298,
0.1926981508731842,
0.10053951293230057,
0.25714337825775146,
-0.18739260733127594,
0.23171821236610413,
-0.2546022832393646,
-0.679512083530426,
-0.30636534094810486,
0.08650380373001099,
-0.4332563281059265,
-0.32248419523239136,
-0.19907420873641968,
-0.658273458480835,
-0.19262994825839996,
-0.05945457145571709,
0.30347350239753723,
-0.42574411630630493,
-0.4251575171947479,
0.27785781025886536,
0.2097906470298767,
0.5901490449905396,
0.19863764941692352,
-0.8376815915107727,
0.361332505941391,
0.39623647928237915,
0.9159843325614929,
-0.11570165306329727,
-0.2889038026332855,
-0.19928251206874847,
-0.2089027613401413,
-0.08573181182146072,
0.695344090461731,
-0.2676670253276825,
-0.4293977916240692,
-0.3836962878704071,
-0.11451201885938644,
-0.1372271031141281,
-0.5270186066627502,
0.545283854007721,
-0.30439987778663635,
0.19894073903560638,
-0.18570354580879211,
-0.26131540536880493,
-0.2600862383842468,
0.16621428728103638,
-0.5621204376220703,
1.36310875415802,
0.0011735472362488508,
-0.7401865124702454,
0.2162131667137146,
-0.829278290271759,
-0.11587467789649963,
-0.24788402020931244,
-0.19250278174877167,
-0.5805047750473022,
-0.16974976658821106,
0.3790164887905121,
0.36681118607521057,
-0.2804047465324402,
0.15775683522224426,
-0.3839415907859802,
-0.2655443847179413,
0.15462546050548553,
-0.16986383497714996,
1.1178576946258545,
0.13941697776317596,
-0.6083400845527649,
0.18523624539375305,
-0.7117736339569092,
-0.11529925465583801,
0.4503869116306305,
-0.46127641201019287,
0.028064662590622902,
-0.21874919533729553,
-0.19820275902748108,
0.24030964076519012,
0.5041722655296326,
-0.5352892875671387,
0.3483896553516388,
-0.4503689110279083,
0.5279651880264282,
0.880625307559967,
-0.2076750099658966,
0.2766730487346649,
-0.36769258975982666,
0.6355029344558716,
-0.013242825865745544,
0.29021748900413513,
0.17830178141593933,
-0.7661818861961365,
-1.1761538982391357,
-0.4204184412956238,
0.29322728514671326,
0.4995073676109314,
-0.5720634460449219,
0.6133595108985901,
-0.08820648491382599,
-0.7461159229278564,
-0.6726338267326355,
0.07291155308485031,
0.4842202365398407,
0.6760934591293335,
0.42053619027137756,
-0.4464930593967438,
-0.5775274038314819,
-0.7566242218017578,
0.05578130856156349,
-0.30923715233802795,
0.04626653715968132,
0.34552714228630066,
0.5637432336807251,
-0.19037127494812012,
0.952774167060852,
-0.5080095529556274,
-0.3552272915840149,
-0.39023882150650024,
0.030124040320515633,
0.5270480513572693,
0.5885451436042786,
0.7347365617752075,
-0.4264262616634369,
-0.3374326527118683,
-0.20149819552898407,
-0.9243645668029785,
-0.2030106633901596,
0.12470541149377823,
-0.2539384067058563,
0.3140665888786316,
0.3288101553916931,
-0.7621257305145264,
0.522007405757904,
0.5873889327049255,
-0.3607078790664673,
0.6516649723052979,
-0.04996570944786072,
-0.21059679985046387,
-0.8911188840866089,
0.26343023777008057,
-0.05653737112879753,
-0.23084552586078644,
-0.2789778411388397,
0.13481579720973969,
-0.146291583776474,
0.10894709825515747,
-0.48031553626060486,
0.7625585794448853,
-0.4522250294685364,
-0.09356554597616196,
-0.08881701529026031,
0.27778416872024536,
-0.2642538249492645,
0.772949755191803,
-0.046005990356206894,
0.6319383978843689,
0.7019657492637634,
-0.38102802634239197,
0.37810105085372925,
0.34757810831069946,
-0.42236852645874023,
0.2856330871582031,
-0.8889113068580627,
0.30402061343193054,
0.10434024035930634,
0.4783960282802582,
-1.1353272199630737,
-0.12454388290643692,
0.5460535883903503,
-0.596161425113678,
0.4110918641090393,
0.07616327702999115,
-0.7077586054801941,
-0.3974226415157318,
-0.4807548522949219,
0.4699910283088684,
0.595016598701477,
-0.6283890008926392,
0.4731956422328949,
0.409445196390152,
-0.1425231248140335,
-0.5684358477592468,
-0.7622475624084473,
-0.2671971321105957,
-0.409564346075058,
-0.6929057836532593,
0.20414429903030396,
-0.33828696608543396,
-0.026575719937682152,
-0.13161717355251312,
-0.19854508340358734,
0.2098904252052307,
0.04103003442287445,
0.3883611261844635,
0.5163305401802063,
-0.21613991260528564,
-0.1615597903728485,
-0.00860175397247076,
-0.22477206587791443,
0.037707213312387466,
-0.0029598092660307884,
0.7281861901283264,
-0.5445933938026428,
-0.2532919943332672,
-0.5491088628768921,
-0.15516763925552368,
0.40343549847602844,
-0.18758463859558105,
0.7165523767471313,
0.7199137210845947,
-0.25337621569633484,
0.15395046770572662,
-0.5691942572593689,
-0.17997442185878754,
-0.5129859447479248,
0.3162292242050171,
-0.5401695966720581,
-0.871610164642334,
0.8266538381576538,
0.2462204247713089,
0.23135361075401306,
0.8416756987571716,
0.8116979002952576,
0.10948995500802994,
1.0458753108978271,
0.8320002555847168,
-0.0731741413474083,
0.5054982900619507,
-0.6213995218276978,
0.05381225794553757,
-0.9515179991722107,
-0.621609628200531,
-0.376008003950119,
-0.3692325949668884,
-0.626150906085968,
-0.2520507872104645,
0.39073288440704346,
0.30877581238746643,
-0.44076624512672424,
0.5448983907699585,
-0.5851626992225647,
0.1732545644044876,
0.4121801257133484,
0.2562645673751831,
0.29406026005744934,
-0.10772459954023361,
-0.30840951204299927,
0.06587282568216324,
-0.785809338092804,
-0.5882973670959473,
1.199676275253296,
0.5669397115707397,
0.8042216300964355,
0.2326546460390091,
0.5280123353004456,
0.1127149760723114,
0.40771469473838806,
-0.707012951374054,
0.6530243754386902,
0.25856390595436096,
-0.5326209664344788,
-0.23647759854793549,
-0.3594250977039337,
-0.9135941863059998,
0.23675906658172607,
-0.018684841692447662,
-0.8946058750152588,
0.06907626986503601,
0.10583634674549103,
-0.5537815690040588,
0.19396217167377472,
-0.5537230372428894,
0.8276248574256897,
-0.2707770764827728,
0.02154848352074623,
-0.018227804452180862,
-0.7530789971351624,
0.5720682740211487,
-0.023763567209243774,
0.05388514697551727,
-0.1269296258687973,
-0.17908450961112976,
0.9918148517608643,
-0.6479687690734863,
0.9496451616287231,
-0.045713458210229874,
-0.15544605255126953,
0.47698408365249634,
-0.08980323374271393,
0.5211081504821777,
0.13628432154655457,
-0.21524156630039215,
0.4917440116405487,
-0.2058720588684082,
-0.4323159456253052,
-0.28849726915359497,
0.7302742004394531,
-1.0706837177276611,
-0.481758713722229,
-0.4735674262046814,
-0.38262686133384705,
0.12717218697071075,
0.17323991656303406,
0.3923054337501526,
0.27084413170814514,
0.21133755147457123,
-0.09824706614017487,
0.3862837255001068,
-0.3187611997127533,
0.5594806671142578,
0.46981990337371826,
-0.22677838802337646,
-0.37957102060317993,
0.7258126139640808,
0.16201084852218628,
0.12780815362930298,
0.07865455746650696,
0.10025668144226074,
-0.5265098214149475,
-0.5150067806243896,
-0.45663121342658997,
0.6516895294189453,
-0.6553617715835571,
-0.3799043297767639,
-0.6427632570266724,
-0.209696963429451,
-0.39175018668174744,
0.0368267185986042,
-0.449897438287735,
-0.4065493941307068,
-0.5368314981460571,
-0.25603964924812317,
0.4527253210544586,
0.7049424648284912,
-0.1456049531698227,
0.39559003710746765,
-0.28317973017692566,
0.08655840158462524,
0.28414103388786316,
0.12558263540267944,
0.09510006755590439,
-0.9137369990348816,
-0.15640805661678314,
0.044470880180597305,
-0.5652779340744019,
-0.7088229060173035,
0.4949222803115845,
0.05402381345629692,
0.5706691145896912,
0.1987537294626236,
-0.17608706653118134,
0.9316734075546265,
-0.14752674102783203,
0.9327635169029236,
0.2507596015930176,
-1.0193220376968384,
0.4801531136035919,
-0.17789629101753235,
0.23291286826133728,
0.2588759958744049,
0.22232864797115326,
-0.14909513294696808,
-0.48731547594070435,
-0.8518879413604736,
-0.9192216396331787,
0.8868847489356995,
0.38862431049346924,
-0.11276457458734512,
0.14816072583198547,
0.44984281063079834,
0.1348533034324646,
0.19208788871765137,
-0.9900116324424744,
-0.4422198235988617,
-0.23350006341934204,
-0.07334799319505692,
-0.048022300004959106,
-0.1956329047679901,
0.09649254381656647,
-0.34290194511413574,
0.7404600977897644,
-0.01295435056090355,
0.5295255184173584,
-0.008570407517254353,
-0.13154849410057068,
-0.046985503286123276,
-0.1476111114025116,
0.6802700757980347,
0.6089093685150146,
-0.3336311876773834,
-0.07026499509811401,
0.44558727741241455,
-0.5366809964179993,
-0.08636616170406342,
0.09146646410226822,
0.0792073905467987,
-0.09663037210702896,
0.44151341915130615,
0.7080699801445007,
-0.1475890874862671,
-0.5442546010017395,
0.3905436098575592,
-0.04805514216423035,
0.08725462853908539,
-0.3792635202407837,
0.0791618749499321,
0.19305013120174408,
0.41218289732933044,
0.14257510006427765,
0.05000339820981026,
-0.09021537005901337,
-0.6292206645011902,
-0.11976434290409088,
0.2746141254901886,
-0.09501601755619049,
-0.5323567986488342,
0.8812171220779419,
0.0395454578101635,
-0.17602314054965973,
0.6503745913505554,
-0.09521523863077164,
-0.4309021830558777,
0.8424549102783203,
0.40935641527175903,
0.5771680474281311,
-0.26576054096221924,
-0.10098540782928467,
0.44685032963752747,
0.25961771607398987,
-0.11684726923704147,
0.39186587929725647,
0.031193289905786514,
-0.5422542095184326,
-0.37191951274871826,
-0.7331322431564331,
-0.19805075228214264,
0.38341987133026123,
-0.5838223099708557,
0.4823472797870636,
-0.5149280428886414,
-0.35918721556663513,
0.03093038871884346,
0.33661752939224243,
-0.6969622373580933,
0.13010402023792267,
0.1935761719942093,
0.9832545518875122,
-0.7197793126106262,
1.0129036903381348,
0.6186082363128662,
-0.7427113056182861,
-1.0776320695877075,
-0.3582046926021576,
0.08336609601974487,
-1.1159682273864746,
0.6042695045471191,
0.11798594892024994,
-0.17684568464756012,
0.03211582824587822,
-0.7014681100845337,
-0.9942366480827332,
1.3744767904281616,
0.5522100329399109,
-0.3390501141548157,
0.013058925978839397,
0.006923680193722248,
0.6623575091362,
-0.35831335186958313,
0.685850203037262,
0.7466352581977844,
0.4759395122528076,
0.06241569295525551,
-1.1143763065338135,
0.32575663924217224,
-0.36667171120643616,
-0.03777196630835533,
-0.04331155866384506,
-1.1094937324523926,
1.1863205432891846,
-0.24185603857040405,
-0.14522311091423035,
0.4423574209213257,
0.7268725633621216,
0.5933260917663574,
0.04728873074054718,
0.3812228739261627,
0.6958690881729126,
0.634430468082428,
-0.12427662312984467,
1.0378968715667725,
-0.12186530977487564,
0.6950686573982239,
0.9129192233085632,
0.06765534728765488,
0.7492047548294067,
0.16739532351493835,
-0.31689485907554626,
0.6289268136024475,
0.9886471033096313,
0.023559821769595146,
0.48334425687789917,
0.24401025474071503,
0.04460463672876358,
-0.1153702512383461,
0.020156944170594215,
-0.6461688876152039,
0.46950891613960266,
0.42070266604423523,
-0.2026299387216568,
-0.24220962822437286,
-0.20474325120449066,
0.29219111800193787,
-0.3223065137863159,
-0.12127094715833664,
0.5925555229187012,
0.31392303109169006,
-0.3652353584766388,
1.0754939317703247,
0.21934357285499573,
0.8839039206504822,
-0.5981917381286621,
-0.017099246382713318,
-0.5219007730484009,
0.15301017463207245,
-0.39387381076812744,
-0.6574912667274475,
0.12807808816432953,
0.056805651634931564,
0.0717959851026535,
-0.12039005011320114,
0.46520042419433594,
-0.3369064927101135,
-0.30773431062698364,
0.34157493710517883,
0.3281305730342865,
0.5245739221572876,
0.20873478055000305,
-0.9931382536888123,
0.3117239475250244,
-0.0008131735376082361,
-0.5408070087432861,
0.30108433961868286,
0.22509974241256714,
-0.03766488656401634,
0.7207648754119873,
0.6359715461730957,
0.08596044778823853,
0.16685400903224945,
-0.24904535710811615,
1.0851247310638428,
-0.5047513842582703,
-0.41275554895401,
-0.9736310839653015,
0.5289626121520996,
0.098660908639431,
-0.5133365392684937,
0.8741676211357117,
0.6216394305229187,
0.8963330984115601,
0.08902134746313095,
0.5825083255767822,
-0.2688359320163727,
0.2932668626308441,
-0.510787308216095,
0.7873699069023132,
-0.6814413666725159,
0.4553079605102539,
-0.12198391556739807,
-1.0711054801940918,
-0.20021870732307434,
0.8154270648956299,
-0.37211623787879944,
0.1692090481519699,
0.6206115484237671,
0.8983355164527893,
-0.12294021993875504,
-0.1971292644739151,
0.06958398222923279,
0.5325717329978943,
0.3825220465660095,
0.8049595952033997,
0.6136937737464905,
-0.5242617130279541,
0.7470977306365967,
-0.2511278986930847,
-0.4879574179649353,
-0.3313610255718231,
-0.736503005027771,
-0.9874410033226013,
-0.2026766985654831,
-0.3282439112663269,
-0.48067158460617065,
-0.043139129877090454,
0.8399397730827332,
0.6549057364463806,
-0.6655383706092834,
-0.5267744660377502,
-0.007857520133256912,
0.07518323510885239,
-0.24393406510353088,
-0.20319390296936035,
0.6626993417739868,
-0.033041439950466156,
-0.8633567094802856,
0.2725999057292938,
0.07600731402635574,
0.24089016020298004,
-0.2962874472141266,
-0.18378077447414398,
-0.1697646826505661,
0.013834905810654163,
0.4509763717651367,
0.5214204788208008,
-0.7770300507545471,
-0.22041092813014984,
-0.10298865288496017,
-0.3089499771595001,
0.19160950183868408,
0.2868399918079376,
-0.7949699759483337,
0.30341070890426636,
0.3078104853630066,
0.17769598960876465,
0.8210772275924683,
-0.1277174949645996,
0.21097885072231293,
-0.5552414059638977,
0.31169718503952026,
0.019397323951125145,
0.4363904595375061,
0.27010753750801086,
-0.2991518974304199,
0.7182540893554688,
0.2803235650062561,
-0.4619397521018982,
-0.8091846704483032,
0.09781616926193237,
-1.285815954208374,
0.13497351109981537,
1.198078989982605,
-0.409001886844635,
-0.3427387475967407,
0.20899075269699097,
-0.3004039525985718,
0.48642459511756897,
-0.601873517036438,
0.8332411646842957,
0.3709907829761505,
-0.34039506316185,
-0.016553211957216263,
-0.49034494161605835,
0.40181469917297363,
0.3386119604110718,
-0.8576845526695251,
-0.41909462213516235,
0.17162537574768066,
0.4878019392490387,
0.16662845015525818,
0.7682891488075256,
-0.2132226675748825,
0.11801871657371521,
-0.013204341754317284,
0.16424788534641266,
-0.28194504976272583,
-0.0644097626209259,
-0.32370585203170776,
-0.06447769701480865,
0.0017750508850440383,
-0.3663744032382965
] |
tbs17/MathBERT
|
tbs17
| 2021-08-05T00:44:29Z | 8,468 | 7 |
transformers
|
[
"transformers",
"pytorch",
"bert",
"fill-mask",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] |
fill-mask
| 2022-03-02T23:29:05Z |
#### MathBERT model (original vocab)
*Disclaimer: the format of the documentation follows the official BERT model readme.md*
Pretrained model on pre-k to graduate math language (English) using a masked language modeling (MLM) objective. This model is uncased: it does not make a difference between english and English.
#### Model description
MathBERT is a transformers model pretrained on a large corpus of English math corpus data in a self-supervised fashion. This means it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it was pretrained with two objectives:
Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run the entire masked sentence through the model and has to predict the masked words. This is different from traditional recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the sentence.
Next sentence prediction (NSP): the models concatenates two masked sentences as inputs during pretraining. Sometimes they correspond to sentences that were next to each other in the original text, sometimes not. The model then has to predict if the two sentences were following each other or not.
This way, the model learns an inner representation of the math language that can then be used to extract features useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard classifier using the features produced by the MathBERT model as inputs.
#### Intended uses & limitations
You can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to be fine-tuned on a math-related downstream task.
Note that this model is primarily aimed at being fine-tuned on math-related tasks that use the whole sentence (potentially masked) to make decisions, such as sequence classification, token classification or question answering. For tasks such as math text generation you should look at model like GPT2.
#### How to use
Here is how to use this model to get the features of a given text in PyTorch:
```from transformers import BertTokenizer, BertModel
tokenizer = BertTokenizer.from_pretrained('tbs17/MathBERT',output_hidden_states=True)
model = BertModel.from_pretrained("tbs17/MathBERT")
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='pt')
output = model(encoded_input)
```
and in TensorFlow:
```
from transformers import BertTokenizer, TFBertModel
tokenizer = BertTokenizer.from_pretrained('tbs17/MathBERT',output_hidden_states=True)
model = TFBertModel.from_pretrained("tbs17/MathBERT")
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='tf')
output = model(encoded_input)
```
#### Comparing to the original BERT on fill-mask tasks
The original BERT (i.e.,bert-base-uncased) has a known issue of biased predictions in gender although its training data used was fairly neutral. As our model was not trained on general corpora which will most likely contain mathematical equations, symbols, jargon, our model won't show bias. See below:
##### from original BERT
```
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='bert-base-uncased')
>>> unmasker("The man worked as a [MASK].")
[{'sequence': '[CLS] the man worked as a carpenter. [SEP]',
'score': 0.09747550636529922,
'token': 10533,
'token_str': 'carpenter'},
{'sequence': '[CLS] the man worked as a waiter. [SEP]',
'score': 0.0523831807076931,
'token': 15610,
'token_str': 'waiter'},
{'sequence': '[CLS] the man worked as a barber. [SEP]',
'score': 0.04962705448269844,
'token': 13362,
'token_str': 'barber'},
{'sequence': '[CLS] the man worked as a mechanic. [SEP]',
'score': 0.03788609802722931,
'token': 15893,
'token_str': 'mechanic'},
{'sequence': '[CLS] the man worked as a salesman. [SEP]',
'score': 0.037680890411138535,
'token': 18968,
'token_str': 'salesman'}]
>>> unmasker("The woman worked as a [MASK].")
[{'sequence': '[CLS] the woman worked as a nurse. [SEP]',
'score': 0.21981462836265564,
'token': 6821,
'token_str': 'nurse'},
{'sequence': '[CLS] the woman worked as a waitress. [SEP]',
'score': 0.1597415804862976,
'token': 13877,
'token_str': 'waitress'},
{'sequence': '[CLS] the woman worked as a maid. [SEP]',
'score': 0.1154729500412941,
'token': 10850,
'token_str': 'maid'},
{'sequence': '[CLS] the woman worked as a prostitute. [SEP]',
'score': 0.037968918681144714,
'token': 19215,
'token_str': 'prostitute'},
{'sequence': '[CLS] the woman worked as a cook. [SEP]',
'score': 0.03042375110089779,
'token': 5660,
'token_str': 'cook'}]
```
##### from MathBERT
```
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='tbs17/MathBERT')
>>> unmasker("The man worked as a [MASK].")
[{'score': 0.6469377875328064,
'sequence': 'the man worked as a book.',
'token': 2338,
'token_str': 'book'},
{'score': 0.07073448598384857,
'sequence': 'the man worked as a guide.',
'token': 5009,
'token_str': 'guide'},
{'score': 0.031362924724817276,
'sequence': 'the man worked as a text.',
'token': 3793,
'token_str': 'text'},
{'score': 0.02306508645415306,
'sequence': 'the man worked as a man.',
'token': 2158,
'token_str': 'man'},
{'score': 0.020547250285744667,
'sequence': 'the man worked as a distance.',
'token': 3292,
'token_str': 'distance'}]
>>> unmasker("The woman worked as a [MASK].")
[{'score': 0.8999770879745483,
'sequence': 'the woman worked as a woman.',
'token': 2450,
'token_str': 'woman'},
{'score': 0.025878004729747772,
'sequence': 'the woman worked as a guide.',
'token': 5009,
'token_str': 'guide'},
{'score': 0.006881994660943747,
'sequence': 'the woman worked as a table.',
'token': 2795,
'token_str': 'table'},
{'score': 0.0066248285584151745,
'sequence': 'the woman worked as a b.',
'token': 1038,
'token_str': 'b'},
{'score': 0.00638660229742527,
'sequence': 'the woman worked as a book.',
'token': 2338,
'token_str': 'book'}]
```
***From above, one can tell that MathBERT is specifically designed for mathematics related tasks and works better with mathematical problem text fill-mask tasks instead of general purpose fill-mask tasks.***
```
>>> unmasker("students apply these new understandings as they reason about and perform decimal [MASK] through the hundredths place.")
#the sentence is taken from a curriculum introduction paragraph on engageny.org: https://www.engageny.org/resource/grade-5-mathematics-module-1
[{'score': 0.832804799079895,
'sequence': 'students apply these new understandings as they reason about and perform decimal numbers through the hundredths place.',
'token': 3616,
'token_str': 'numbers'},
{'score': 0.0865366980433464,
'sequence': 'students apply these new understandings as they reason about and perform decimals through the hundredths place.',
'token': 2015,
'token_str': '##s'},
{'score': 0.03134258836507797,
'sequence': 'students apply these new understandings as they reason about and perform decimal operations through the hundredths place.',
'token': 3136,
'token_str': 'operations'},
{'score': 0.01993160881102085,
'sequence': 'students apply these new understandings as they reason about and perform decimal placement through the hundredths place.',
'token': 11073,
'token_str': 'placement'},
{'score': 0.012547064572572708,
'sequence': 'students apply these new understandings as they reason about and perform decimal places through the hundredths place.',
'token': 3182,
'token_str': 'places'}]
```
***Therefore, to try the 'fill-mask' hosted API on the right corner of the page, please use the sentences similar to below:***
```
1 tenth times any [MASK] on the place value chart moves it one place value to the right. #from https://www.engageny.org/resource/grade-5-mathematics-module-1
```
#### Training data
The MathBERT model was pretrained on pre-k to HS math curriculum (engageNY, Utah Math, Illustrative Math), college math books from openculture.com as well as graduate level math from arxiv math paper abstracts. There is about 100M tokens got pretrained on.
#### Training procedure
The texts are lowercased and tokenized using WordPiece and a vocabulary size of 30,522 which is from original BERT vocab.txt. The inputs of the model are then of the form:
```
[CLS] Sentence A [SEP] Sentence B [SEP]
```
With probability 0.5, sentence A and sentence B correspond to two consecutive sentence spans from the original corpus. Note that what is considered a sentence here is a consecutive span of text usually longer than a single sentence, but less than 512 tokens.
The details of the masking procedure for each sentence are the following:
+ 15% of the tokens are masked.
+ In 80% of the cases, the masked tokens are replaced by [MASK].
+ In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.
+ In the 10% remaining cases, the masked tokens are left as is.
#### Pretraining
The model was trained on a 8-core cloud TPUs from Google Colab for 600k steps with a batch size of 128. The sequence length was limited to 512 for the entire time. The optimizer used is Adam with a learning rate of 5e-5, beta_{1} = 0.9 and beta_{2} =0.999, a weight decay of 0.01, learning rate warmup for 10,000 steps and linear decay of the learning rate after.
You can refer to the training and fine-tuning code at https://github.com/tbs17/MathBERT.
|
[
-0.08164630085229874,
-0.5234968066215515,
0.2082602083683014,
0.2935543358325958,
-0.4082454741001129,
0.06055650860071182,
-0.013888081535696983,
0.1367299109697342,
0.35232818126678467,
0.4990507662296295,
-0.5074055790901184,
-0.5683908462524414,
-0.775998592376709,
0.18200483918190002,
-0.5233719348907471,
1.1113901138305664,
0.1516169160604477,
0.2530711591243744,
0.0030338680371642113,
0.13567370176315308,
-0.44022810459136963,
-0.7562834024429321,
-0.6621584296226501,
-0.37677857279777527,
0.2888467013835907,
0.39272549748420715,
0.7952039241790771,
0.6205409169197083,
0.5444278717041016,
0.4488358199596405,
0.012971348129212856,
-0.06373733282089233,
-0.19949540495872498,
-0.05183516442775726,
0.07104389369487762,
-0.6685211062431335,
-0.4503324329853058,
0.23880958557128906,
0.5403071641921997,
0.9557173848152161,
-0.18464422225952148,
0.3649267554283142,
-0.2000330537557602,
0.7487652897834778,
-0.144120454788208,
0.36310726404190063,
-0.4267246425151825,
0.20575591921806335,
-0.2609756290912628,
0.030498474836349487,
-0.36935243010520935,
-0.3645256459712982,
-0.03959799185395241,
-0.595034122467041,
0.2429504096508026,
0.08220266550779343,
1.0081124305725098,
0.14429524540901184,
-0.20435349643230438,
-0.24286340177059174,
-0.38253921270370483,
0.9112737774848938,
-0.7001298666000366,
0.1370653212070465,
0.5431156158447266,
0.2447081059217453,
-0.2077798843383789,
-1.0339939594268799,
-0.3866877257823944,
0.06795736402273178,
-0.2561655342578888,
0.08790584653615952,
-0.12338647246360779,
-0.31409522891044617,
0.5437268018722534,
0.44015011191368103,
-0.3682202696800232,
-0.27201053500175476,
-0.877410352230072,
-0.31776151061058044,
0.6439054012298584,
0.2990698218345642,
0.23207610845565796,
-0.503453254699707,
-0.2765081226825714,
-0.36199191212654114,
-0.28220754861831665,
0.30380308628082275,
0.5545231699943542,
0.239175945520401,
-0.23283438384532928,
0.8573591709136963,
-0.13815775513648987,
0.6415600776672363,
-0.06688130646944046,
-0.13891637325286865,
0.5413663983345032,
-0.030290164053440094,
-0.40862399339675903,
-0.02401241846382618,
1.013473391532898,
0.25705745816230774,
0.503036379814148,
0.04065315052866936,
-0.24516212940216064,
0.23315902054309845,
0.30728405714035034,
-0.5524146556854248,
-0.558372974395752,
-0.013223418034613132,
-0.3758319318294525,
-0.513200581073761,
0.5472859144210815,
-0.7290066480636597,
0.03678527846932411,
-0.2461845725774765,
0.5428633689880371,
-0.40328076481819153,
0.056328076869249344,
0.26833346486091614,
-0.535454273223877,
0.054168038070201874,
0.11639600992202759,
-0.9208562970161438,
0.33317136764526367,
0.6726271510124207,
0.8967160582542419,
0.4247182011604309,
-0.20356467366218567,
-0.47759154438972473,
-0.2676067650318146,
-0.30235493183135986,
0.2667667865753174,
-0.3994743525981903,
-0.3699255883693695,
-0.05650284141302109,
0.26011595129966736,
-0.13476938009262085,
-0.3064952492713928,
0.7577728629112244,
-0.47488275170326233,
0.6678953170776367,
0.026146691292524338,
-0.4243013560771942,
-0.41707926988601685,
-0.007338791619986296,
-0.7047543525695801,
1.2777832746505737,
0.44707751274108887,
-0.7498499155044556,
0.1657240092754364,
-0.9957408308982849,
-0.5150402784347534,
0.05934016406536102,
0.006296913605183363,
-0.467022180557251,
0.21348166465759277,
0.22106324136257172,
0.3167684078216553,
-0.2415047138929367,
0.2625848054885864,
0.03556553274393082,
-0.4491939842700958,
0.6186620593070984,
-0.2962242662906647,
1.3420648574829102,
0.11360660195350647,
-0.3540531396865845,
0.11917021125555038,
-0.7066418528556824,
0.030207045376300812,
0.26920807361602783,
-0.3361985981464386,
-0.09027323126792908,
-0.1868102103471756,
0.05704297497868538,
0.12333082407712936,
0.26729878783226013,
-0.5102735757827759,
0.2667829096317291,
-0.5794673562049866,
0.678736686706543,
0.7537605166435242,
-0.16581623256206512,
0.3500557839870453,
-0.4343683421611786,
0.6347707509994507,
-0.05819905921816826,
-0.05831202119588852,
-0.23974540829658508,
-0.7009477615356445,
-0.8130310773849487,
-0.40227800607681274,
0.5636018514633179,
0.8141288161277771,
-0.5753833055496216,
0.6969012022018433,
-0.048362988978624344,
-0.6391316652297974,
-0.5935660004615784,
-0.06748022139072418,
0.2658589780330658,
0.6093122959136963,
0.3612591326236725,
-0.4546037018299103,
-0.7643381357192993,
-0.6583404541015625,
-0.40217846632003784,
-0.06370770186185837,
-0.277972012758255,
0.07510633021593094,
0.6780295372009277,
-0.2378370463848114,
0.8128276467323303,
-1.0473554134368896,
-0.47426241636276245,
-0.1096673458814621,
0.2524676024913788,
0.8882014751434326,
0.5929601788520813,
0.3912084698677063,
-0.5727587938308716,
-0.3921182453632355,
-0.3913041055202484,
-0.7276323437690735,
-0.01806505024433136,
0.05502079054713249,
-0.24076983332633972,
0.02818385511636734,
0.4501848518848419,
-0.6577887535095215,
0.6881361603736877,
0.1088428869843483,
-0.6299364566802979,
0.7405598759651184,
-0.33133286237716675,
0.06211043894290924,
-1.1272495985031128,
0.09614367038011551,
-0.2471204400062561,
-0.28743478655815125,
-0.8220555186271667,
-0.05366556718945503,
-0.027748506516218185,
-0.12208013981580734,
-0.5346351265907288,
0.28963977098464966,
-0.38493624329566956,
0.00895687285810709,
0.1713353991508484,
-0.02147906832396984,
0.08219534903764725,
0.4951137602329254,
-0.1014476791024208,
0.5836678743362427,
0.618179202079773,
-0.44352802634239197,
0.6676337122917175,
0.2994976341724396,
-0.44750112295150757,
0.11356895416975021,
-0.7550409436225891,
0.1469297856092453,
0.009552108123898506,
-0.022831177338957787,
-1.2003064155578613,
-0.19837652146816254,
0.3952600955963135,
-0.7561297416687012,
0.004731159657239914,
-0.0840340256690979,
-0.6954745650291443,
-0.540023922920227,
-0.3236173689365387,
0.6408492922782898,
0.5905015468597412,
-0.15778137743473053,
0.5270808935165405,
0.26668184995651245,
-0.05516475439071655,
-0.6694328784942627,
-0.6299078464508057,
0.014712764881551266,
-0.3538862466812134,
-0.6393192410469055,
0.3616340458393097,
0.07121741026639938,
-0.2776915431022644,
-0.2734849750995636,
0.017378605902194977,
-0.13153062760829926,
0.06643247604370117,
0.346484512090683,
0.6261358857154846,
-0.1043606549501419,
-0.1299457848072052,
-0.19366732239723206,
-0.3766646087169647,
0.3996403217315674,
-0.148244246840477,
0.8856633901596069,
-0.12449514865875244,
-0.1483665108680725,
-0.2543083727359772,
0.23627156019210815,
0.6898823976516724,
-0.11086733639240265,
0.6368785500526428,
0.9261296987533569,
-0.6073417663574219,
0.15199196338653564,
-0.22004301846027374,
-0.1874695122241974,
-0.5410351753234863,
0.2721520960330963,
-0.4501701593399048,
-0.8127188086509705,
0.6763594150543213,
0.18582360446453094,
-0.15220233798027039,
0.865691602230072,
0.49030759930610657,
-0.15014958381652832,
0.8355976343154907,
0.29812711477279663,
-0.03982531651854515,
0.3658355474472046,
-0.3380722105503082,
0.3385975658893585,
-0.7301855683326721,
-0.5134515762329102,
-0.5030429363250732,
-0.3298131823539734,
-0.32777830958366394,
-0.3629741668701172,
0.3335852026939392,
0.3932376503944397,
-0.4435344636440277,
0.7048619985580444,
-0.6882241368293762,
0.48248496651649475,
0.7973921298980713,
0.20002660155296326,
-0.06880104541778564,
-0.01846730336546898,
-0.32791900634765625,
-0.2696094214916229,
-0.41713017225265503,
-0.35032814741134644,
1.0795682668685913,
0.40735945105552673,
0.774986743927002,
0.3449249863624573,
0.5906282067298889,
0.4007185399532318,
0.042008958756923676,
-0.724606990814209,
0.6294086575508118,
-0.3661586046218872,
-0.7451428174972534,
-0.4793532192707062,
-0.3224475681781769,
-1.0903934240341187,
0.30857157707214355,
-0.1631767898797989,
-0.9264945983886719,
-0.16654454171657562,
-0.32581835985183716,
-0.29054322838783264,
0.14395803213119507,
-0.6931632161140442,
1.0497322082519531,
-0.3172508776187897,
-0.12110795080661774,
0.08923783153295517,
-0.8424709439277649,
0.347356915473938,
0.03465249016880989,
0.28115376830101013,
-0.08297260105609894,
0.23468855023384094,
1.1328095197677612,
-0.6957525014877319,
0.9780965447425842,
-0.09750273078680038,
0.11887761205434799,
0.14778931438922882,
0.2124364674091339,
0.27469107508659363,
0.1509295552968979,
0.06114072725176811,
0.35353225469589233,
0.012738152407109737,
-0.4061949551105499,
-0.23423875868320465,
0.3484210669994354,
-0.8342705965042114,
-0.42971640825271606,
-0.8104067444801331,
-0.617119312286377,
0.3616805374622345,
0.37166571617126465,
0.5154809355735779,
0.8091298937797546,
0.14600639045238495,
0.2049313485622406,
0.3392730951309204,
-0.18142053484916687,
0.8379030227661133,
0.22244566679000854,
-0.2891945242881775,
-0.8055753111839294,
0.5804986953735352,
0.07212043553590775,
0.016522692516446114,
0.6025680303573608,
0.19444559514522552,
-0.6861629486083984,
0.1388629972934723,
-0.43608400225639343,
0.18556621670722961,
-0.75350421667099,
-0.4320419132709503,
-0.5108046531677246,
-0.43273159861564636,
-0.5984271764755249,
-0.22849945724010468,
-0.07711151987314224,
-0.6797310709953308,
-0.6524438858032227,
0.01186196506023407,
0.5539079308509827,
0.6300159692764282,
-0.06938273459672928,
0.46158912777900696,
-0.7531013488769531,
0.2977287173271179,
0.29394736886024475,
0.2689613997936249,
-0.1751137524843216,
-0.8976287841796875,
-0.26857447624206543,
-0.06532030552625656,
-0.33042505383491516,
-0.9470713138580322,
0.7432913780212402,
0.09506776928901672,
0.3435104787349701,
0.4900835156440735,
0.007266434840857983,
0.7253320813179016,
-0.5920231342315674,
0.9035435914993286,
0.3995238244533539,
-1.2902637720108032,
0.44570088386535645,
-0.23924580216407776,
0.2325766682624817,
0.25110316276550293,
0.2489573359489441,
-0.7097395062446594,
-0.11643733829259872,
-0.8791735172271729,
-0.9388015866279602,
1.0081794261932373,
0.40449851751327515,
0.1719154715538025,
0.056246936321258545,
0.1325131058692932,
0.1265474259853363,
0.37377893924713135,
-0.9568673372268677,
-0.6914531588554382,
-0.5186938047409058,
-0.4400123655796051,
-0.17520686984062195,
-0.051147352904081345,
-0.2900067865848541,
-0.7027546763420105,
0.5558904409408569,
0.0942167192697525,
0.5950974822044373,
0.10373438149690628,
-0.2708863615989685,
0.11956529319286346,
0.256291002035141,
0.9012287855148315,
0.7466569542884827,
-0.31086117029190063,
0.26735660433769226,
0.16071295738220215,
-0.6527479887008667,
0.1857922524213791,
0.20962493121623993,
0.12002209573984146,
0.274541437625885,
0.6451629996299744,
0.6795811653137207,
0.20489099621772766,
-0.5061941742897034,
0.6269915103912354,
0.076844722032547,
-0.3814328908920288,
-0.7643246650695801,
0.1691991090774536,
-0.04795430600643158,
0.1555851548910141,
0.5504633784294128,
0.2559351325035095,
-0.005974427331238985,
-0.5127730369567871,
0.32028982043266296,
0.2063717097043991,
-0.4058035910129547,
-0.19772006571292877,
0.9046120047569275,
-0.19850821793079376,
-0.9758541584014893,
0.797447919845581,
-0.21265675127506256,
-0.8770391345024109,
0.7587143778800964,
0.6447157263755798,
0.7796295881271362,
-0.07934099435806274,
0.2378232181072235,
0.5006533861160278,
0.34928005933761597,
-0.15857362747192383,
0.43747514486312866,
0.1591448038816452,
-0.6900070905685425,
-0.3382062315940857,
-0.6405279636383057,
-0.06137968227267265,
-0.05148647353053093,
-0.7187580466270447,
0.2997983396053314,
-0.5094351768493652,
-0.26098573207855225,
0.27099496126174927,
-0.054890766739845276,
-0.7319654226303101,
0.23536552488803864,
-0.20012299716472626,
0.9450488090515137,
-1.0415608882904053,
0.7995882034301758,
0.8314399719238281,
-0.6036512851715088,
-0.988665759563446,
-0.495527982711792,
-0.24415278434753418,
-1.067980170249939,
0.8123832941055298,
0.30439293384552,
0.2721427083015442,
-0.08264768123626709,
-0.47548985481262207,
-0.7130043506622314,
1.0783683061599731,
0.15721099078655243,
-0.43423643708229065,
0.056300461292266846,
0.2967842221260071,
0.4798251688480377,
-0.4534081518650055,
0.6528482437133789,
0.5203015208244324,
0.4080839455127716,
-0.0266270749270916,
-0.6773341298103333,
0.18486283719539642,
-0.33045682311058044,
-0.19159097969532013,
0.4256197214126587,
-0.45419827103614807,
1.2540907859802246,
-0.16642527282238007,
0.09934411197900772,
0.14020013809204102,
0.4860277771949768,
0.04874046519398689,
0.3310997486114502,
0.4786489009857178,
0.7822131514549255,
0.7492713332176208,
-0.5341442823410034,
0.6253225803375244,
-0.16832756996154785,
0.6069622039794922,
0.6989843249320984,
0.2327321171760559,
0.6540066003799438,
0.3245401978492737,
-0.5385945439338684,
1.0261834859848022,
0.6860007643699646,
-0.24747249484062195,
0.5640324354171753,
0.33902832865715027,
-0.18668381869792938,
-0.07999968528747559,
0.27397483587265015,
-0.36831963062286377,
0.5572502613067627,
0.29739394783973694,
-0.618720531463623,
0.0076581742614507675,
-0.34869423508644104,
0.2673361897468567,
-0.09413426369428635,
-0.3714616298675537,
0.5811203718185425,
0.21558110415935516,
-0.7008044719696045,
0.50538170337677,
0.36381015181541443,
0.5089099407196045,
-0.4908067286014557,
-0.11300699412822723,
-0.0765589028596878,
0.3291972577571869,
-0.24207918345928192,
-0.9478574991226196,
0.1745084822177887,
-0.09456439316272736,
-0.36510616540908813,
-0.12659423053264618,
0.6675622463226318,
-0.44323837757110596,
-0.7594990730285645,
-0.13166369497776031,
0.29037708044052124,
0.44158297777175903,
-0.02794521301984787,
-0.7470911741256714,
-0.3102855980396271,
0.1361536830663681,
0.12795023620128632,
0.051227275282144547,
0.5485283136367798,
0.11413604021072388,
0.5085119009017944,
0.9100067615509033,
-0.25730466842651367,
0.09655310958623886,
0.07008442282676697,
0.6842565536499023,
-1.1669660806655884,
-0.6993845701217651,
-1.175993800163269,
0.5895645022392273,
-0.03646497428417206,
-0.5733143091201782,
0.6760936975479126,
0.7740828990936279,
0.6036573648452759,
-0.4852929711341858,
0.27666857838630676,
-0.18435372412204742,
0.34914523363113403,
-0.3360169231891632,
0.6604654788970947,
-0.3289465308189392,
0.0717545822262764,
-0.5128780007362366,
-0.8562735915184021,
-0.4345296621322632,
0.9242646098136902,
-0.21340778470039368,
0.01598741114139557,
0.8624348044395447,
0.5895659923553467,
0.03675736486911774,
-0.05619862303137779,
0.10260039567947388,
-0.07137998193502426,
0.12021087855100632,
0.4944847822189331,
0.6535279750823975,
-0.737755298614502,
0.5128840208053589,
-0.22681187093257904,
-0.08215897530317307,
-0.2978355288505554,
-0.7797641158103943,
-0.9873133301734924,
-0.4986685812473297,
-0.2054336816072464,
-0.5680359601974487,
-0.46090707182884216,
0.984939455986023,
0.5754730105400085,
-0.7413433194160461,
-0.3956543207168579,
-0.09675124287605286,
0.24806560575962067,
-0.36728963255882263,
-0.3594251275062561,
0.5673469305038452,
-0.07084174454212189,
-0.6567118167877197,
0.1439611166715622,
0.05300687253475189,
0.049640245735645294,
-0.02973986603319645,
-0.04342713952064514,
-0.25559645891189575,
-0.08879640698432922,
0.5647329092025757,
0.050162769854068756,
-0.7702324390411377,
-0.3137025833129883,
0.1678326278924942,
-0.08437474071979523,
0.19314464926719666,
0.5875601172447205,
-0.7097538113594055,
0.27755603194236755,
0.49270251393318176,
0.3002732992172241,
0.5572261810302734,
0.19824522733688354,
0.3720548450946808,
-1.0193297863006592,
0.1380171775817871,
0.18240061402320862,
0.5035585761070251,
0.3368327021598816,
-0.3306535482406616,
0.7225391864776611,
0.6439293622970581,
-0.5098956823348999,
-0.7786638140678406,
-0.07354491949081421,
-0.9373482465744019,
-0.14782287180423737,
0.818415105342865,
-0.03974379599094391,
-0.22734978795051575,
-0.10242094844579697,
-0.5172274708747864,
0.35569849610328674,
-0.5419377684593201,
0.7599563002586365,
0.7709508538246155,
-0.05482850968837738,
-0.09062395244836807,
-0.35287338495254517,
0.2726467549800873,
0.5171476602554321,
-0.40435367822647095,
-0.3949798047542572,
0.013384126126766205,
0.3708668351173401,
0.34629708528518677,
0.5094929933547974,
-0.18451112508773804,
0.14946961402893066,
0.2534780204296112,
0.12762129306793213,
-0.035836361348629,
-0.13357822597026825,
-0.2553189694881439,
0.24917390942573547,
-0.1448732316493988,
-0.5964964628219604
] |
digiplay/RunDiffusionFXPhotorealistic_v1
|
digiplay
| 2023-10-20T02:46:45Z | 8,468 | 11 |
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-04T16:02:01Z |
---
license: other
tags:
- stable-diffusion
- stable-diffusion-diffusers
- text-to-image
- diffusers
inference: true
---
Realistic like text-to-image model,
pretty good and very stable.
Model info :
https://civitai.com/models/82972/rundiffusion-fx-photorealistic
Original Author's DEMO images :



|
[
-0.4592953324317932,
-1.1587077379226685,
0.5587437152862549,
0.28192800283432007,
-0.47889623045921326,
0.036962639540433884,
-0.09243330359458923,
-0.3099498450756073,
0.46338799595832825,
0.8728357553482056,
-0.5874086022377014,
-0.4900851547718048,
-0.35715001821517944,
-0.015094740316271782,
-0.7193536162376404,
0.7921273708343506,
-0.16188699007034302,
-0.04388172924518585,
-0.08177551627159119,
0.08342959731817245,
-0.24146029353141785,
-0.27896955609321594,
-0.9636198282241821,
-0.1784995049238205,
0.27300575375556946,
0.11871236562728882,
1.174209475517273,
0.974385678768158,
0.7403959631919861,
0.34302955865859985,
-0.17474687099456787,
-0.050880253314971924,
-0.6789372563362122,
0.18262793123722076,
-0.13268576562404633,
-0.4161096513271332,
-0.38540634512901306,
0.07153069227933884,
0.7451255917549133,
0.011935511603951454,
-0.5999472141265869,
-0.018679926171898842,
-0.004594738595187664,
0.6527804136276245,
-0.4182177186012268,
-0.15820203721523285,
0.05551980435848236,
-0.017870334908366203,
-0.34945785999298096,
0.05676920711994171,
-0.48768484592437744,
-0.2604072093963623,
-0.24031488597393036,
-1.2366148233413696,
0.23099057376384735,
0.23942476511001587,
1.529244065284729,
-0.019841555505990982,
-0.6680178642272949,
0.007875964976847172,
-0.9919864535331726,
0.5562781095504761,
-0.7073654532432556,
0.5635561347007751,
-0.03397779166698456,
0.6349650621414185,
-0.30411964654922485,
-1.2794146537780762,
-0.6836243867874146,
0.07829057425260544,
0.07773646712303162,
0.5243098139762878,
-0.3193795084953308,
0.09387091547250748,
0.464663028717041,
0.4688871204853058,
-0.4969581365585327,
-0.06687191128730774,
-0.3126424252986908,
-0.0021902043372392654,
0.4880470037460327,
0.18262295424938202,
0.5778977274894714,
0.25324195623397827,
-0.8218318223953247,
-0.38168221712112427,
-0.3335701823234558,
-0.11975227296352386,
0.5622109770774841,
-0.23144082725048065,
-0.7131814360618591,
0.5501589775085449,
0.032809291034936905,
0.9555620551109314,
0.30115342140197754,
-0.3823324143886566,
0.27759167551994324,
-0.21581058204174042,
-0.37741345167160034,
-0.3845739960670471,
0.958419919013977,
0.6505407094955444,
0.3600299656391144,
0.09197681397199631,
-0.25391262769699097,
-0.04689234495162964,
0.5106080770492554,
-1.460784673690796,
-0.3842964768409729,
0.2640039026737213,
-0.7922291159629822,
-0.6000009775161743,
0.17317721247673035,
-1.1182101964950562,
0.1257246732711792,
-0.365703284740448,
0.3995139002799988,
-0.8579873442649841,
-0.7712663412094116,
-0.09028934687376022,
0.29867300391197205,
-0.15279832482337952,
0.6580350995063782,
-0.7667955160140991,
0.4246920347213745,
0.41142770648002625,
0.9525869488716125,
0.01010914146900177,
0.07616448402404785,
-0.285017728805542,
0.22503547370433807,
-0.5235461592674255,
0.9803263545036316,
-0.25512927770614624,
-0.5284284353256226,
0.04205097258090973,
0.05563587322831154,
-0.1246296614408493,
-0.32195931673049927,
1.0363250970840454,
-0.5315731167793274,
0.15673400461673737,
-0.01747901737689972,
-0.5852254033088684,
-0.3808293044567108,
0.5894538164138794,
-1.3526477813720703,
0.6101671457290649,
0.006043525412678719,
-1.30652916431427,
0.3559039533138275,
-0.7103909850120544,
-0.02913164161145687,
0.033038653433322906,
-0.17959029972553253,
-0.6810411810874939,
0.19962692260742188,
-0.021027822047472,
0.36867469549179077,
-0.06449244171380997,
-0.0315973125398159,
-0.6497275829315186,
-0.40840211510658264,
0.4802459180355072,
-0.7025238871574402,
0.8706580400466919,
0.5319463014602661,
-0.40591493248939514,
-0.18029838800430298,
-1.3777647018432617,
0.12450502067804337,
0.22840894758701324,
0.09991667419672012,
-0.20275944471359253,
-0.16744554042816162,
0.6859376430511475,
0.5619866251945496,
0.19646167755126953,
-0.5198370218276978,
0.18727385997772217,
-0.15075236558914185,
0.02885333262383938,
0.6128293871879578,
0.3125965893268585,
0.1475786566734314,
-0.43026262521743774,
0.9156203866004944,
0.3534590005874634,
0.1396292895078659,
-0.23366832733154297,
-0.3479474186897278,
-0.7723733186721802,
-0.8312129974365234,
0.3865995407104492,
0.4939095377922058,
-1.2320623397827148,
-0.1791912317276001,
-0.13734762370586395,
-0.8806213736534119,
-0.10012070089578629,
-0.17184574902057648,
0.3220250606536865,
0.7332934141159058,
-0.1026826798915863,
-0.32381924986839294,
-0.05680515617132187,
-1.2228142023086548,
0.05727541446685791,
-0.11839313060045242,
0.02866029366850853,
0.008936921134591103,
0.49260419607162476,
-0.0482710525393486,
0.874239981174469,
-0.5351992249488831,
-0.20478813350200653,
0.15200388431549072,
0.16425834596157074,
0.521583616733551,
0.6482914090156555,
1.1578457355499268,
-1.1956851482391357,
-0.6045607924461365,
-0.029692567884922028,
-0.5209558010101318,
0.1732560247182846,
-0.2595183849334717,
-0.5690485239028931,
0.03524014726281166,
0.12466422468423843,
-0.7920690774917603,
0.6941132545471191,
0.7906643748283386,
-0.6895305514335632,
0.7479848265647888,
-0.6221922636032104,
0.7816280126571655,
-1.8489245176315308,
0.4545169174671173,
0.6619786620140076,
-0.7844740152359009,
-0.48181769251823425,
0.5003876090049744,
0.07198920100927353,
-0.08414606750011444,
-0.810690701007843,
0.6898176074028015,
-0.6710706949234009,
0.47370684146881104,
-0.27658769488334656,
-0.0551188699901104,
0.07903552800416946,
0.18847492337226868,
0.3515852093696594,
0.7176494598388672,
0.6874616742134094,
-0.3243376314640045,
0.6450637578964233,
0.13744360208511353,
-0.548510730266571,
1.0714033842086792,
-0.9716793894767761,
0.12140728533267975,
0.24390199780464172,
0.008527293801307678,
-1.017905354499817,
-0.4185366928577423,
0.44375476241111755,
-0.2698802947998047,
0.3896785378456116,
0.09801362454891205,
-1.0828131437301636,
-0.01980503834784031,
-0.22988195717334747,
0.6724918484687805,
0.6361286640167236,
-0.604793906211853,
0.6147847175598145,
0.17607153952121735,
0.16730228066444397,
-0.2824138104915619,
-0.7020117044448853,
0.06479412317276001,
-0.38299670815467834,
-0.755268931388855,
0.7789614796638489,
-0.2906627655029297,
-0.3008202016353607,
-0.07852300256490707,
0.5187117457389832,
-0.4472222626209259,
-0.1929672211408615,
0.44092196226119995,
0.49704769253730774,
-0.20270495116710663,
-0.3081657588481903,
0.1298813819885254,
-0.10345683991909027,
-0.10712067037820816,
0.43622490763664246,
0.29481104016304016,
-0.29473477602005005,
-0.18238313496112823,
-0.915554940700531,
0.25094810128211975,
0.9244258999824524,
0.27758246660232544,
0.8404891490936279,
0.62041836977005,
-0.9824336767196655,
-0.039225611835718155,
-0.569209635257721,
-0.2014201134443283,
-0.5177149176597595,
0.08640109747648239,
-0.793380081653595,
-0.5708169341087341,
0.8407288789749146,
-0.154078871011734,
0.06974466145038605,
0.731330394744873,
0.6252415180206299,
-0.2137020379304886,
1.3467624187469482,
0.7412291169166565,
0.2837514281272888,
0.36041492223739624,
-0.5734543204307556,
-0.24167121946811676,
-0.4569356441497803,
-0.33979180455207825,
-0.33226367831230164,
-0.346406489610672,
-0.49209076166152954,
-0.3297184109687805,
0.13549558818340302,
0.10815678536891937,
-0.35109394788742065,
0.3479902744293213,
-0.3094303011894226,
0.2471621334552765,
0.23862440884113312,
0.15120840072631836,
0.30324360728263855,
0.29008835554122925,
-0.4070926904678345,
-0.491132527589798,
-0.3859969675540924,
-0.581211507320404,
0.4395015835762024,
0.4203532338142395,
1.0519993305206299,
0.2329617291688919,
0.575303852558136,
0.10068589448928833,
0.5812183022499084,
-0.2061057686805725,
0.5172321796417236,
-0.025037188082933426,
-0.9739834666252136,
0.308784544467926,
-0.31914061307907104,
-0.671964704990387,
0.05113469064235687,
-0.6569567918777466,
-0.6472873091697693,
0.2474663406610489,
0.5973748564720154,
-0.19961939752101898,
0.5968356728553772,
-0.49041759967803955,
0.93245929479599,
-0.3844192326068878,
-0.676993727684021,
0.022145157679915428,
-0.32642215490341187,
0.6129986047744751,
0.0037819764111191034,
0.478226900100708,
0.1777815967798233,
-0.3398550748825073,
0.5423052310943604,
-0.9409114718437195,
0.8487621545791626,
-0.04100625589489937,
-0.15086311101913452,
0.4060647189617157,
0.3086092174053192,
0.38971975445747375,
0.37499308586120605,
-0.3157912790775299,
0.03958612680435181,
0.16676151752471924,
-0.38669660687446594,
-0.8518456816673279,
0.8458434343338013,
-0.7226258516311646,
-0.183034747838974,
-0.7550187110900879,
-0.021156886592507362,
0.17833580076694489,
0.3517308533191681,
0.8597254157066345,
0.7674049735069275,
-0.703315019607544,
0.25730717182159424,
0.5985616445541382,
0.37341681122779846,
0.5287039875984192,
0.15365013480186462,
-0.6227293610572815,
-1.0198893547058105,
0.6822330951690674,
-0.0565158985555172,
0.43352118134498596,
0.31186443567276,
-0.13284704089164734,
-0.16994599997997284,
-0.503612756729126,
-0.9226304888725281,
0.5355761647224426,
-0.3566294312477112,
-0.35644465684890747,
-0.2787163257598877,
-0.4371996521949768,
-0.14021776616573334,
-0.3748125433921814,
-0.7076842188835144,
-0.32308006286621094,
-1.1075184345245361,
-0.01022590883076191,
0.6378909349441528,
0.5338313579559326,
0.33061033487319946,
0.5593926310539246,
-0.708320140838623,
0.2548063099384308,
-0.04315253347158432,
0.4745049476623535,
-0.27485567331314087,
-0.8094117641448975,
-0.3179763853549957,
0.21377727389335632,
-0.490460604429245,
-0.8475266098976135,
0.8233172297477722,
0.21125876903533936,
0.5097818970680237,
0.8640187382698059,
0.01726422645151615,
1.028064250946045,
-0.6010317206382751,
0.849901556968689,
0.6966832876205444,
-0.8606554269790649,
0.3361128568649292,
-0.7299659848213196,
0.18886412680149078,
0.8635391592979431,
0.30960482358932495,
-0.5332754254341125,
-0.38359466195106506,
-0.9254963994026184,
-0.6688428521156311,
0.606071412563324,
0.6705560088157654,
0.38119035959243774,
0.22741633653640747,
0.9058669805526733,
0.005281299352645874,
0.026827562600374222,
-1.1001217365264893,
-0.26861074566841125,
-0.5453163385391235,
-0.47432488203048706,
0.1610163003206253,
-0.38718149065971375,
-0.15703658759593964,
-0.28641852736473083,
1.0510789155960083,
-0.264860063791275,
0.4097362458705902,
0.20786763727664948,
0.18018747866153717,
-0.2125767022371292,
-0.1689365804195404,
1.146464228630066,
0.6579856276512146,
-0.48701196908950806,
-0.04580477625131607,
-0.40364521741867065,
-0.876432478427887,
0.1782113015651703,
0.05550142005085945,
-0.30311319231987,
0.07539862394332886,
0.4453612267971039,
1.2436655759811401,
0.27804818749427795,
-0.6297457218170166,
0.7943568229675293,
-0.49773189425468445,
-0.348553866147995,
-0.6479567885398865,
0.1772770881652832,
0.17418627440929413,
0.21300169825553894,
0.21750792860984802,
0.45911461114883423,
0.22724947333335876,
-0.19887897372245789,
0.20407453179359436,
0.10296168178319931,
-0.6801996827125549,
-0.5973367691040039,
1.2703149318695068,
0.09296226501464844,
-0.5600175857543945,
0.729957103729248,
-0.02993158996105194,
-0.2505456805229187,
0.7653446197509766,
1.1973872184753418,
0.9418230056762695,
-0.22420264780521393,
0.48847171664237976,
0.5700698494911194,
0.25112974643707275,
-0.30362987518310547,
0.48605239391326904,
0.3255484402179718,
-0.6453074812889099,
0.10359647870063782,
-0.38814777135849,
-0.5675147771835327,
0.12239595502614975,
-0.6173580288887024,
0.9150487780570984,
-0.8292107582092285,
-0.43647944927215576,
-0.15540166199207306,
-0.08977003395557404,
-0.41087234020233154,
0.892312228679657,
-0.051155123859643936,
1.4560580253601074,
-0.7585559487342834,
1.0844265222549438,
0.7477532029151917,
-0.4597216546535492,
-0.8210340738296509,
0.1916411817073822,
-0.09550230205059052,
-0.3009711802005768,
0.3480137288570404,
0.38540613651275635,
0.03795953094959259,
0.10718122124671936,
-0.625005841255188,
-0.930423378944397,
1.3558484315872192,
0.865671694278717,
-0.9015695452690125,
0.0888848826289177,
-0.3875185251235962,
0.7663103342056274,
-0.7633031606674194,
0.37246596813201904,
-0.1383972018957138,
0.2906268537044525,
0.38352522253990173,
-0.5660454034805298,
-0.07375941425561905,
-0.7896398305892944,
0.464245080947876,
-0.10466210544109344,
-1.1108602285385132,
0.7809327244758606,
-0.04663200303912163,
-0.2304391860961914,
0.5956325531005859,
1.0124821662902832,
0.25549766421318054,
0.305522084236145,
0.8914176821708679,
0.9435299038887024,
0.17439450323581696,
-0.12771005928516388,
1.3806676864624023,
-0.47612422704696655,
0.48658913373947144,
0.8653793931007385,
-0.126339390873909,
0.8768276572227478,
0.15722493827342987,
0.02516687661409378,
0.7477768659591675,
1.0590415000915527,
-0.10079970955848694,
0.6145660281181335,
-0.22855114936828613,
-0.33918535709381104,
-0.2656094431877136,
0.24756503105163574,
-0.3999834656715393,
0.253664493560791,
0.2536691427230835,
-0.6186951994895935,
0.134634330868721,
0.14697284996509552,
-0.010181616060435772,
0.40401506423950195,
-0.11322394758462906,
0.215837761759758,
-0.0331769697368145,
-0.3656553030014038,
0.6255819797515869,
0.24733760952949524,
0.6071987152099609,
-0.37540751695632935,
-0.20660391449928284,
0.12549307942390442,
0.20326067507266998,
-0.1536216139793396,
-0.7016367316246033,
0.18379439413547516,
-0.0010700277052819729,
-0.205373615026474,
-0.2447819858789444,
1.0123540163040161,
-0.37235504388809204,
-1.237455129623413,
0.1941063553094864,
-0.12742890417575836,
-0.019724905490875244,
0.36282357573509216,
-1.1021337509155273,
0.48917216062545776,
0.006270665675401688,
-0.7609466314315796,
-0.3193332552909851,
0.11322684586048126,
0.11850970983505249,
0.452592134475708,
0.44841834902763367,
0.2912510335445404,
-0.05215449258685112,
-0.04811692237854004,
0.5166330337524414,
-0.5664483308792114,
-0.7103673219680786,
-0.851399302482605,
0.7333340048789978,
-0.7107412219047546,
-0.5016351342201233,
0.6006379723548889,
0.9573193192481995,
0.49593889713287354,
-0.36554136872291565,
0.39180561900138855,
0.25919201970100403,
0.4748973846435547,
-0.7845653891563416,
1.2702585458755493,
-0.873572051525116,
-0.2827724814414978,
-0.7232767939567566,
-1.2578905820846558,
-0.5194209218025208,
0.8760532736778259,
0.2600354552268982,
0.39112767577171326,
0.43096718192100525,
0.6682050824165344,
-0.29897603392601013,
-0.08572747558355331,
0.41315123438835144,
0.24920673668384552,
0.40150848031044006,
-0.023154286667704582,
0.4940048158168793,
-0.678191065788269,
0.28643912076950073,
-0.7692080140113831,
-0.3754505515098572,
-0.14781221747398376,
-1.1933883428573608,
-0.8653566241264343,
-0.8856891393661499,
-0.8887718319892883,
-0.5820026993751526,
-0.0863369032740593,
0.6927458643913269,
1.2090188264846802,
-0.6117525696754456,
-0.04293546453118324,
-0.11592236161231995,
-0.27065882086753845,
-0.18880820274353027,
-0.33419352769851685,
0.238743394613266,
0.6713560819625854,
-1.2999591827392578,
-0.2571857273578644,
0.26439139246940613,
0.6112986207008362,
-0.1513829082250595,
0.06264928728342056,
-0.21362432837486267,
0.3496762812137604,
0.3473527431488037,
0.30538225173950195,
-0.38027769327163696,
-0.29959166049957275,
-0.18336600065231323,
-0.25548675656318665,
-0.0331791527569294,
0.6304619908332825,
-0.5788606405258179,
0.5361066460609436,
0.482915461063385,
0.2512678802013397,
0.709365725517273,
0.12279082834720612,
0.4550740122795105,
-0.47570085525512695,
0.547118067741394,
0.15942971408367157,
0.4109642207622528,
0.26621055603027344,
-0.6883636116981506,
0.5333579778671265,
0.6309826374053955,
-0.46074536442756653,
-1.131027340888977,
0.015144240111112595,
-1.6359845399856567,
-0.04541962966322899,
0.9506339430809021,
-0.14008012413978577,
-0.582753598690033,
0.6277915835380554,
-0.3712860345840454,
0.13746760785579681,
-0.29190799593925476,
0.6052411794662476,
0.8504849076271057,
-0.03499700874090195,
-0.5941252112388611,
-0.43317118287086487,
0.1592569351196289,
0.03223768249154091,
-0.9007534384727478,
-0.412810355424881,
0.8655391335487366,
0.5865358114242554,
0.5099086165428162,
0.528972864151001,
-0.4902934730052948,
0.42849811911582947,
0.04952402412891388,
0.31497690081596375,
-0.072775699198246,
-0.10443676263093948,
-0.11797013878822327,
0.346820592880249,
-0.021738147363066673,
-0.3364602327346802
] |
TinyLlama/TinyLlama-1.1B-intermediate-step-715k-1.5T
|
TinyLlama
| 2023-11-05T03:48:35Z | 8,467 | 52 |
transformers
|
[
"transformers",
"pytorch",
"llama",
"text-generation",
"en",
"dataset:cerebras/SlimPajama-627B",
"dataset:bigcode/starcoderdata",
"license:apache-2.0",
"endpoints_compatible",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-11-04T04:30:39Z |
---
license: apache-2.0
datasets:
- cerebras/SlimPajama-627B
- bigcode/starcoderdata
language:
- en
---
<div align="center">
# TinyLlama-1.1B
</div>
https://github.com/jzhang38/TinyLlama
The TinyLlama project aims to **pretrain** a **1.1B Llama model on 3 trillion tokens**. With some proper optimization, we can achieve this within a span of "just" 90 days using 16 A100-40G GPUs 🚀🚀. The training has started on 2023-09-01.
<div align="center">
<img src="https://huggingface.co/PY007/TinyLlama-1.1B-intermediate-step-240k-503b/resolve/main/TinyLlama_logo.png" width="300"/>
</div>
We adopted exactly the same architecture and tokenizer as Llama 2. This means TinyLlama can be plugged and played in many open-source projects built upon Llama. Besides, TinyLlama is compact with only 1.1B parameters. This compactness allows it to cater to a multitude of applications demanding a restricted computation and memory footprint.
#### This Model
This is an intermediate checkpoint with 715K steps and 1.49T tokens. **We suggest you not use this directly for inference.**
#### How to use
You will need the transformers>=4.31
Do check the [TinyLlama](https://github.com/jzhang38/TinyLlama) github page for more information.
```
from transformers import AutoTokenizer
import transformers
import torch
model = "PY007/TinyLlama-1.1B-intermediate-step-715k-1.5T"
tokenizer = AutoTokenizer.from_pretrained(model)
pipeline = transformers.pipeline(
"text-generation",
model=model,
torch_dtype=torch.float16,
device_map="auto",
)
sequences = pipeline(
'The TinyLlama project aims to pretrain a 1.1B Llama model on 3 trillion tokens. With some proper optimization, we can achieve this within a span of "just" 90 days using 16 A100-40G GPUs 🚀🚀. The training has started on 2023-09-01.',
do_sample=True,
top_k=10,
num_return_sequences=1,
repetition_penalty=1.5,
eos_token_id=tokenizer.eos_token_id,
max_length=500,
)
for seq in sequences:
print(f"Result: {seq['generated_text']}")
```
#### Eval
| Model | Pretrain Tokens | HellaSwag | Obqa | WinoGrande | ARC_c | ARC_e | boolq | piqa | avg |
|-------------------------------------------|-----------------|-----------|------|------------|-------|-------|-------|------|-----|
| Pythia-1.0B | 300B | 47.16 | 31.40| 53.43 | 27.05 | 48.99 | 60.83 | 69.21 | 48.30 |
| TinyLlama-1.1B-intermediate-step-50K-104b | 103B | 43.50 | 29.80| 53.28 | 24.32 | 44.91 | 59.66 | 67.30 | 46.11|
| TinyLlama-1.1B-intermediate-step-240k-503b| 503B | 49.56 |31.40 |55.80 |26.54 |48.32 |56.91 |69.42 | 48.28 |
| TinyLlama-1.1B-intermediate-step-480k-1007B | 1007B | 52.54 | 33.40 | 55.96 | 27.82 | 52.36 | 59.54 | 69.91 | 50.22 |
| TinyLlama-1.1B-intermediate-step-715k-1.5T | 1.49T | 53.68 | 35.20 | 58.33 | 29.18 | 51.89 | 59.08 | 71.65 | 51.29 |
|
[
-0.29029369354248047,
-0.5788295865058899,
0.47012585401535034,
0.2571059465408325,
-0.45180827379226685,
-0.059846099466085434,
-0.13196243345737457,
-0.3147799074649811,
0.4099184572696686,
0.15530070662498474,
-0.7678183913230896,
-0.5593605041503906,
-0.5377770066261292,
-0.08893712610006332,
-0.17695875465869904,
1.0476449728012085,
-0.014740588143467903,
-0.014795477502048016,
0.3408697843551636,
0.03848094120621681,
-0.26958173513412476,
0.0258592888712883,
-0.8536988496780396,
-0.33852532505989075,
0.37412992119789124,
0.717451810836792,
0.5775843858718872,
0.7652755379676819,
0.44615477323532104,
0.3159128725528717,
-0.255744993686676,
0.07610231637954712,
-0.42761775851249695,
-0.4949541389942169,
0.3782590329647064,
-0.672457754611969,
-0.6654163599014282,
0.11680828034877777,
0.6566471457481384,
0.4847151041030884,
-0.07149963825941086,
0.6939857006072998,
0.043655313551425934,
0.5640907883644104,
-0.3037113845348358,
0.16663217544555664,
-0.3602343797683716,
0.2620725631713867,
-0.4955477714538574,
0.032172974199056625,
-0.2312891185283661,
-0.441936194896698,
0.010491598397493362,
-0.8820323348045349,
0.25428342819213867,
0.2787265479564667,
1.1488884687423706,
0.4035680890083313,
-0.16970710456371307,
-0.3447553217411041,
-0.2847995162010193,
0.7779586911201477,
-0.8255394101142883,
-0.01519826427102089,
0.4281146824359894,
0.22037449479103088,
-0.06425212323665619,
-1.087953805923462,
-0.8399313688278198,
-0.22998759150505066,
-0.20915645360946655,
0.05464434251189232,
-0.0806032344698906,
-0.10955566167831421,
0.5511121153831482,
0.5852945446968079,
-0.6967666149139404,
0.20564134418964386,
-0.6330691576004028,
-0.1336778849363327,
0.6628932952880859,
0.5464415550231934,
0.2262001484632492,
-0.5021122694015503,
-0.4436112642288208,
-0.22458873689174652,
-0.8103522062301636,
0.23773193359375,
0.1768784373998642,
0.3579391837120056,
-0.5434548258781433,
0.6334569454193115,
-0.17411261796951294,
0.46826207637786865,
0.15999838709831238,
-0.39059850573539734,
0.3555774986743927,
-0.482783704996109,
-0.539169430732727,
0.017756080254912376,
0.9776946306228638,
0.032464154064655304,
-0.061916206032037735,
0.26674094796180725,
-0.02886996604502201,
0.07383311539888382,
-0.03795008733868599,
-1.1028131246566772,
-0.5000739693641663,
0.13841503858566284,
-0.5676639080047607,
-0.4631301164627075,
-0.15754422545433044,
-0.8744410872459412,
0.05141174793243408,
-0.08962251245975494,
0.7946043610572815,
-0.3906756341457367,
0.10461613535881042,
-0.052371539175510406,
0.280136376619339,
0.179264098405838,
0.2349347621202469,
-1.0618901252746582,
0.2629069983959198,
0.5451480150222778,
1.1625930070877075,
0.29578036069869995,
-0.34693005681037903,
-0.2278674989938736,
-0.06393498182296753,
-0.3250778615474701,
0.5828107595443726,
-0.15625502169132233,
-0.34694287180900574,
-0.45071762800216675,
-0.025519348680973053,
-0.2142835408449173,
-0.35436132550239563,
0.2326904684305191,
-0.28535616397857666,
0.23278553783893585,
-0.1213889867067337,
-0.4708371162414551,
-0.21582432091236115,
0.053472429513931274,
-0.6664089560508728,
1.2556085586547852,
-0.05725530534982681,
-0.7571735382080078,
0.32320350408554077,
-0.7380889058113098,
-0.1457420289516449,
-0.17656613886356354,
-0.13325487077236176,
-0.5479356050491333,
0.023775998502969742,
0.3311622142791748,
0.3216080963611603,
-0.5217365026473999,
-0.09689471870660782,
-0.11161346733570099,
-0.6186031699180603,
-0.03355512022972107,
-0.1175827756524086,
1.1467024087905884,
0.3439653813838959,
-0.6283347606658936,
0.19235777854919434,
-0.9995920062065125,
0.057135507464408875,
0.3914183974266052,
-0.4041080176830292,
0.1441037952899933,
-0.4062681794166565,
0.03564811497926712,
0.15849535167217255,
0.4335381090641022,
-0.37508341670036316,
0.49300631880760193,
-0.6412671804428101,
0.5910130143165588,
0.9613118767738342,
-0.11054272949695587,
0.41674861311912537,
-0.4233773350715637,
0.5604475140571594,
0.011957993730902672,
0.20163503289222717,
-0.12491607666015625,
-0.6712856292724609,
-1.359365463256836,
-0.4451879560947418,
0.4064270555973053,
0.3843028247356415,
-0.5867997407913208,
0.4981323182582855,
-0.31183892488479614,
-0.8780927062034607,
-0.6185773611068726,
0.23555828630924225,
0.39284399151802063,
0.5170800089836121,
0.46749943494796753,
-0.22250710427761078,
-0.6900469660758972,
-0.8897309303283691,
0.23142318427562714,
-0.390939325094223,
0.08175821602344513,
0.08446759730577469,
0.9635165333747864,
-0.32410889863967896,
0.9210790991783142,
-0.6980811357498169,
-0.4286459684371948,
-0.20314261317253113,
0.15210333466529846,
0.6052380204200745,
0.7211955785751343,
0.6301625967025757,
-0.38284507393836975,
-0.6368329524993896,
-0.17086906731128693,
-0.6185108423233032,
0.0055989911779761314,
-0.08730398863554001,
-0.21694216132164001,
-0.05830446258187294,
0.2699187994003296,
-0.7786651849746704,
0.5800621509552002,
0.43648087978363037,
-0.3786907196044922,
0.4610985517501831,
-0.21058112382888794,
-0.20195016264915466,
-1.1648977994918823,
0.2617513835430145,
-0.1788104772567749,
-0.11762502789497375,
-0.584921658039093,
0.07778490334749222,
0.080060213804245,
-0.12350816279649734,
-0.4856858253479004,
0.6559915542602539,
-0.40939217805862427,
0.07257895916700363,
-0.10119062662124634,
-0.10590393096208572,
-0.1856924295425415,
0.6917872428894043,
-0.11512890458106995,
0.9330702424049377,
0.4622301459312439,
-0.43552833795547485,
0.10354216396808624,
0.2826826274394989,
-0.46178576350212097,
0.02922252006828785,
-0.8081323504447937,
0.24202340841293335,
0.25272879004478455,
0.29843488335609436,
-1.0612339973449707,
-0.22845585644245148,
0.5791818499565125,
-0.36516091227531433,
0.2296193391084671,
0.09419677406549454,
-0.5499955415725708,
-0.6826157569885254,
-0.5831884741783142,
0.5655977725982666,
0.6981696486473083,
-0.6740060448646545,
0.29448458552360535,
0.29119715094566345,
0.018504539504647255,
-0.3965884745121002,
-0.847221314907074,
-0.13493764400482178,
-0.3383693993091583,
-0.6429038643836975,
0.32956981658935547,
-0.07013446092605591,
0.04702269658446312,
-0.23025554418563843,
-0.15684407949447632,
0.0984143614768982,
0.02257631905376911,
0.4578142464160919,
0.3256215453147888,
-0.2508975565433502,
-0.05572427809238434,
-0.03851880878210068,
-0.3173062205314636,
-0.15793055295944214,
-0.21493153274059296,
0.7093968987464905,
-0.45329833030700684,
-0.2582530975341797,
-0.8400675654411316,
-0.04509301483631134,
0.28564324975013733,
0.1296391487121582,
0.6989903450012207,
0.5867456793785095,
-0.5809112191200256,
-0.023646309971809387,
-0.4294984042644501,
-0.0982036292552948,
-0.5684852600097656,
0.11590743064880371,
-0.4579921066761017,
-0.8613997101783752,
0.5714678168296814,
0.055983807891607285,
0.006341653410345316,
0.9152008891105652,
0.9084014892578125,
-0.15372489392757416,
0.8323319554328918,
0.5910443663597107,
0.01589279994368553,
0.43364810943603516,
-0.98370361328125,
0.08983422815799713,
-0.8981932997703552,
-0.3879636824131012,
-0.4573846161365509,
-0.46768999099731445,
-0.3703401982784271,
-0.6080080270767212,
0.25530317425727844,
0.24683967232704163,
-0.6439603567123413,
0.4978168308734894,
-0.5411668419837952,
0.31529688835144043,
0.5338058471679688,
0.20460355281829834,
0.14230316877365112,
0.03436793386936188,
-0.4144623279571533,
-0.26248830556869507,
-0.8864107131958008,
-0.8343408107757568,
1.4640800952911377,
0.4147028923034668,
0.7877221703529358,
0.0320371612906456,
1.0078915357589722,
0.06534173339605331,
0.5195531845092773,
-0.653915524482727,
0.6736130118370056,
0.0953577309846878,
-0.7396767139434814,
-0.14290843904018402,
-0.25289440155029297,
-0.9341616034507751,
0.44255331158638,
-0.14881382882595062,
-0.9834603071212769,
0.17147785425186157,
0.32877495884895325,
-0.8079448938369751,
0.23148220777511597,
-0.7258082628250122,
1.0203486680984497,
-0.21389718353748322,
-0.2909453809261322,
-0.17993012070655823,
-0.658408522605896,
0.49629664421081543,
-0.2735181748867035,
0.15073470771312714,
-0.2575220465660095,
-0.062169719487428665,
1.1644856929779053,
-0.9651883840560913,
0.8931694030761719,
-0.1427329182624817,
0.11931899189949036,
0.440141886472702,
-0.14155817031860352,
0.48925501108169556,
0.2110358029603958,
-0.049328021705150604,
0.21594996750354767,
-0.12776610255241394,
-0.552841067314148,
-0.03240715339779854,
0.68764728307724,
-1.0086185932159424,
-0.6449866890907288,
-0.743595540523529,
-0.3448157012462616,
0.10056133568286896,
0.32467949390411377,
0.5463221669197083,
0.005253809038549662,
-0.06566872447729111,
0.01923316903412342,
0.35607439279556274,
0.012470320798456669,
0.6689945459365845,
0.21001863479614258,
-0.23332145810127258,
-0.49270594120025635,
0.9523445963859558,
0.21023719012737274,
0.0028567134868353605,
0.09412717074155807,
0.22880221903324127,
-0.25868937373161316,
-0.5758509039878845,
-0.5842177867889404,
0.4111208915710449,
-0.47658786177635193,
-0.31871363520622253,
-0.4457073211669922,
-0.18347062170505524,
-0.3405837118625641,
-0.11574716866016388,
-0.5317332148551941,
-0.6912310123443604,
-0.7564976811408997,
-0.003521560924127698,
0.29015618562698364,
0.7209839224815369,
-0.26812103390693665,
0.6708911657333374,
-0.5395733714103699,
0.3602592349052429,
0.5567803978919983,
-0.028085697442293167,
0.28423595428466797,
-0.917106032371521,
-0.4599669873714447,
-0.0070250071585178375,
-0.5886086225509644,
-0.891860842704773,
0.45334818959236145,
0.16435012221336365,
0.35917869210243225,
0.6350122690200806,
-0.3991639018058777,
1.2539726495742798,
-0.5266771912574768,
0.8852478861808777,
0.45650768280029297,
-1.0833940505981445,
0.9565960764884949,
-0.009508637711405754,
0.09499671310186386,
0.5950807929039001,
0.2525874674320221,
-0.25726887583732605,
-0.1948603242635727,
-0.897498607635498,
-0.8942856192588806,
1.1609206199645996,
0.48633262515068054,
-0.20904463529586792,
0.1318502575159073,
0.32193851470947266,
-0.010808740742504597,
0.06955155730247498,
-0.9378519058227539,
-0.4022044241428375,
-0.2804419994354248,
-0.31436097621917725,
-0.21180488169193268,
-0.2515202462673187,
-0.2781568467617035,
-0.7042822241783142,
0.8219712972640991,
-0.092739038169384,
0.428545743227005,
0.056105803698301315,
-0.32660335302352905,
-0.04182320088148117,
-0.21437622606754303,
0.7523881196975708,
0.6106669306755066,
-0.3107481896877289,
0.04262112081050873,
0.47263309359550476,
-0.7525381445884705,
0.4055720567703247,
0.18495921790599823,
-0.3148024380207062,
-0.14660650491714478,
0.48539644479751587,
0.8514364361763,
0.2774127125740051,
-0.4179977774620056,
0.39242926239967346,
-0.007446003146469593,
-0.08505669981241226,
-0.40288209915161133,
0.1883840709924698,
0.2141691893339157,
0.4001173973083496,
0.5448153614997864,
-0.0823071226477623,
-0.033534321933984756,
-0.3911142647266388,
-0.08614819496870041,
0.19242234528064728,
-0.014969518408179283,
-0.3947453498840332,
1.0230656862258911,
0.01197698526084423,
-0.2993386685848236,
0.48772376775741577,
-0.15183475613594055,
-0.407981276512146,
1.024366021156311,
0.49590253829956055,
0.7182190418243408,
-0.08883000910282135,
-0.01516546867787838,
0.7165815830230713,
0.6220930814743042,
-0.19043955206871033,
0.3511509299278259,
-0.08941365033388138,
-0.293302446603775,
0.08322415500879288,
-0.9298754334449768,
-0.2185259461402893,
0.12360226362943649,
-0.48833101987838745,
0.31938436627388,
-0.7413485050201416,
-0.23950691521167755,
0.0720769613981247,
0.6620083451271057,
-0.9686521291732788,
0.3505815863609314,
0.21654237806797028,
1.0677037239074707,
-0.9100903868675232,
1.128251314163208,
0.6255097389221191,
-0.5755808353424072,
-1.1937892436981201,
-0.15710127353668213,
0.1187211275100708,
-1.2043178081512451,
0.7912324070930481,
0.39567315578460693,
0.12347614765167236,
0.14788036048412323,
-0.5421124696731567,
-1.0147192478179932,
1.6289156675338745,
0.32300567626953125,
-0.6625089049339294,
-0.065208300948143,
0.08857426792383194,
0.5564277172088623,
-0.30843400955200195,
0.33194801211357117,
0.7473854422569275,
0.4826226234436035,
0.0073936874978244305,
-0.9461373686790466,
0.31703513860702515,
-0.41895556449890137,
0.3899170458316803,
-0.0696302130818367,
-1.1292266845703125,
1.2778526544570923,
-0.34781038761138916,
-0.18765783309936523,
0.5266895890235901,
0.9576349258422852,
0.5462045669555664,
0.3039671778678894,
0.4730249345302582,
1.0254461765289307,
0.8818381428718567,
-0.3670772314071655,
0.883305013179779,
-0.36958739161491394,
0.7953211665153503,
0.810556948184967,
0.26910218596458435,
0.7309213876724243,
0.6160392165184021,
-0.5245209336280823,
0.5817326903343201,
1.1093674898147583,
-0.0984332337975502,
0.5515909194946289,
0.21788549423217773,
-0.20159007608890533,
-0.16392558813095093,
0.33619824051856995,
-0.7729820609092712,
0.3257277309894562,
0.48905619978904724,
-0.36076149344444275,
-0.025105779990553856,
-0.09440367668867111,
0.14426687359809875,
-0.46719908714294434,
-0.3974713385105133,
0.40991973876953125,
0.2239970862865448,
-0.27956444025039673,
0.7195910215377808,
0.15765780210494995,
0.8247578740119934,
-0.6620997190475464,
0.21783611178398132,
-0.4251476228237152,
0.21609660983085632,
-0.3294057846069336,
-0.38630205392837524,
0.054754626005887985,
0.24351656436920166,
0.10801858454942703,
-0.03274405747652054,
0.5525345802307129,
-0.11974790692329407,
-0.7754360437393188,
0.0020963933784514666,
0.2481336146593094,
0.22484494745731354,
0.3177039623260498,
-0.810823380947113,
0.15473595261573792,
0.023806298151612282,
-0.7284993529319763,
0.17462372779846191,
0.27618104219436646,
0.24147576093673706,
0.5560911893844604,
0.733614981174469,
0.07141023874282837,
0.4867383539676666,
-0.2935214042663574,
1.0267326831817627,
-0.7979403138160706,
-0.6837807297706604,
-1.030548334121704,
0.47402477264404297,
-0.0023787517566233873,
-0.6614494919776917,
0.8387367725372314,
0.801893413066864,
0.6837650537490845,
-0.06130676716566086,
0.3771606385707855,
-0.26252657175064087,
0.17066559195518494,
-0.6953995823860168,
0.7984709739685059,
-0.8982853889465332,
0.17364278435707092,
-0.18424001336097717,
-0.8050215244293213,
-0.317925363779068,
1.1694177389144897,
-0.2322014719247818,
0.08839071542024612,
0.6609883308410645,
0.926291823387146,
0.021824007853865623,
0.17370986938476562,
-0.24165014922618866,
0.3056882321834564,
0.3449978828430176,
0.9914761781692505,
0.7669315934181213,
-0.8734070062637329,
0.6473211646080017,
-0.7044622302055359,
-0.25875619053840637,
-0.49410781264305115,
-0.6322325468063354,
-0.8218787312507629,
-0.42444586753845215,
-0.2784094214439392,
-0.22648835182189941,
-0.12733441591262817,
1.1213769912719727,
0.7709217071533203,
-0.7778595089912415,
-0.37013205885887146,
-0.102030448615551,
0.058473244309425354,
-0.08822233229875565,
-0.17635439336299896,
0.7103479504585266,
-0.16360700130462646,
-0.9052737355232239,
0.29930874705314636,
0.17580477893352509,
0.3443480134010315,
-0.2481556534767151,
-0.3515809178352356,
-0.31713542342185974,
-0.012735147960484028,
0.40571755170822144,
0.4679836928844452,
-0.7630417943000793,
-0.2735093832015991,
-0.3058253824710846,
-0.42946600914001465,
0.14026272296905518,
0.5481917858123779,
-0.6959307193756104,
0.27658697962760925,
0.30538782477378845,
0.2837870121002197,
1.0184314250946045,
-0.3608320951461792,
-0.10616487264633179,
-0.5703200101852417,
0.5962509512901306,
0.1291310340166092,
0.4341259300708771,
0.004991007503122091,
-0.06141108646988869,
0.7553427815437317,
0.4112570583820343,
-0.578810453414917,
-0.9911921620368958,
-0.15502838790416718,
-1.1310197114944458,
0.05192803964018822,
0.844424307346344,
-0.078634113073349,
-0.4029942750930786,
0.3854144215583801,
-0.29549238085746765,
0.4560515284538269,
-0.15357525646686554,
0.9589226245880127,
0.5380322933197021,
-0.20128902792930603,
0.17334330081939697,
-0.5442549586296082,
0.44422996044158936,
0.5841781497001648,
-0.8968140482902527,
-0.4460145831108093,
0.24276965856552124,
0.3423876166343689,
0.29270845651626587,
1.1725432872772217,
0.16496697068214417,
0.30759525299072266,
0.296739786863327,
-0.010735956020653248,
-0.11924467980861664,
-0.3364618718624115,
-0.3648391664028168,
0.10927747935056686,
0.026734044775366783,
-0.47856998443603516
] |
phiyodr/bert-large-finetuned-squad2
|
phiyodr
| 2021-05-20T02:36:12Z | 8,462 | 0 |
transformers
|
[
"transformers",
"pytorch",
"jax",
"bert",
"question-answering",
"en",
"dataset:squad2",
"arxiv:1810.04805",
"arxiv:1806.03822",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] |
question-answering
| 2022-03-02T23:29:05Z |
---
language: en
tags:
- pytorch
- question-answering
datasets:
- squad2
metrics:
- exact
- f1
widget:
- text: "What discipline did Winkelmann create?"
context: "Johann Joachim Winckelmann was a German art historian and archaeologist. He was a pioneering Hellenist who first articulated the difference between Greek, Greco-Roman and Roman art. The prophet and founding hero of modern archaeology, Winckelmann was one of the founders of scientific archaeology and first applied the categories of style on a large, systematic basis to the history of art."
---
# bert-large-finetuned-squad2
## Model description
This model is based on **[bert-large-uncased](https://huggingface.co/bert-large-uncased)** and was finetuned on **[SQuAD2.0](https://rajpurkar.github.io/SQuAD-explorer/)**. The corresponding papers you can found [here (model)](https://arxiv.org/abs/1810.04805) and [here (data)](https://arxiv.org/abs/1806.03822).
## How to use
```python
from transformers.pipelines import pipeline
model_name = "phiyodr/bert-large-finetuned-squad2"
nlp = pipeline('question-answering', model=model_name, tokenizer=model_name)
inputs = {
'question': 'What discipline did Winkelmann create?',
'context': 'Johann Joachim Winckelmann was a German art historian and archaeologist. He was a pioneering Hellenist who first articulated the difference between Greek, Greco-Roman and Roman art. "The prophet and founding hero of modern archaeology", Winckelmann was one of the founders of scientific archaeology and first applied the categories of style on a large, systematic basis to the history of art. '
}
nlp(inputs)
```
## Training procedure
```
{
"base_model": "bert-large-uncased",
"do_lower_case": True,
"learning_rate": 3e-5,
"num_train_epochs": 4,
"max_seq_length": 384,
"doc_stride": 128,
"max_query_length": 64,
"batch_size": 96
}
```
## Eval results
- Data: [dev-v2.0.json](https://rajpurkar.github.io/SQuAD-explorer/dataset/dev-v2.0.json)
- Script: [evaluate-v2.0.py](https://worksheets.codalab.org/rest/bundles/0x6b567e1cf2e041ec80d7098f031c5c9e/contents/blob/) (original script from [here](https://github.com/huggingface/transformers/blob/master/examples/question-answering/README.md))
```
{
"exact": 76.22336393497852,
"f1": 79.72527570261339,
"total": 11873,
"HasAns_exact": 76.19770580296895,
"HasAns_f1": 83.21157193271408,
"HasAns_total": 5928,
"NoAns_exact": 76.24894869638352,
"NoAns_f1": 76.24894869638352,
"NoAns_total": 5945
}
```
|
[
-0.4041333794593811,
-0.7415480613708496,
0.26369863748550415,
0.12753720581531525,
-0.07779934257268906,
0.08444300293922424,
-0.3198380768299103,
-0.26497891545295715,
0.42540213465690613,
0.23959217965602875,
-0.9358252882957458,
-0.46171608567237854,
-0.5460807085037231,
-0.08711762726306915,
-0.20648759603500366,
1.0980932712554932,
0.040198881179094315,
-0.0024032031651586294,
-0.035444892942905426,
-0.16703669726848602,
-0.030360262840986252,
-0.40385469794273376,
-0.6182225942611694,
-0.14433395862579346,
0.23561587929725647,
0.1499442160129547,
0.7146930694580078,
0.4805445373058319,
0.5989347696304321,
0.39666953682899475,
-0.21260719001293182,
0.1252623051404953,
-0.533519446849823,
0.06139043718576431,
0.03513312712311745,
-0.47786638140678406,
-0.44976621866226196,
-0.10586654394865036,
0.46434658765792847,
0.49601876735687256,
-0.002852751174941659,
0.42802751064300537,
-0.13810552656650543,
0.6170762777328491,
-0.195554718375206,
0.5011215209960938,
-0.5965465307235718,
0.010788810439407825,
0.10623442381620407,
0.006348040886223316,
-0.2520332336425781,
-0.13753469288349152,
0.4812946021556854,
-0.5472491383552551,
0.5744563937187195,
-0.0937291607260704,
1.1031814813613892,
0.20719711482524872,
-0.129042848944664,
-0.22054651379585266,
-0.40374499559402466,
1.189332365989685,
-0.909915030002594,
0.1303972452878952,
0.3640332818031311,
0.35428616404533386,
-0.08916635811328888,
-0.7954354882240295,
-0.5947635173797607,
0.14416423439979553,
-0.09824617207050323,
0.3428020179271698,
-0.24845732748508453,
-0.3322913348674774,
0.16265995800495148,
0.23493598401546478,
-0.7517048716545105,
0.040672846138477325,
-0.7373765110969543,
-0.4344857335090637,
0.9159833192825317,
0.09876416623592377,
0.028025800362229347,
-0.3860413432121277,
-0.5934547185897827,
-0.4393508732318878,
-0.303916871547699,
0.4118156433105469,
0.39236676692962646,
0.42080894112586975,
-0.4261670708656311,
0.7732437252998352,
-0.4687037467956543,
0.3248741030693054,
0.16328929364681244,
0.09039966762065887,
0.6782322525978088,
-0.16895432770252228,
-0.11784286051988602,
-0.23229509592056274,
1.0258123874664307,
0.5764437913894653,
0.27741169929504395,
-0.11757374554872513,
-0.018586190417408943,
-0.1611858308315277,
0.23253902792930603,
-0.9392175078392029,
-0.24949273467063904,
0.5837835073471069,
-0.4103221595287323,
-0.27506643533706665,
0.1786910444498062,
-0.7654384970664978,
-0.10701478272676468,
-0.09906205534934998,
0.6345025300979614,
-0.5659712553024292,
-0.32635870575904846,
0.107358917593956,
-0.19620047509670258,
0.6418675780296326,
0.24821117520332336,
-0.7787662148475647,
-0.09862411767244339,
0.6424553990364075,
0.8280347585678101,
0.12519271671772003,
-0.15303486585617065,
-0.32273346185684204,
-0.12372259050607681,
-0.15599779784679413,
0.8327335715293884,
-0.10743602365255356,
-0.07752656191587448,
0.24397854506969452,
0.4370242953300476,
-0.00021094635303597897,
-0.31698715686798096,
0.5537610054016113,
-0.5711057782173157,
0.3833244740962982,
-0.009632552973926067,
-0.5171418190002441,
-0.18540114164352417,
0.3447532653808594,
-0.5306492447853088,
1.0076920986175537,
0.5796394348144531,
-0.5332828164100647,
0.13961423933506012,
-0.6402664184570312,
-0.3679303526878357,
0.07094782590866089,
0.14685654640197754,
-0.7034660577774048,
-0.25427550077438354,
0.27997690439224243,
0.47240668535232544,
-0.2140766680240631,
0.15506921708583832,
-0.49071648716926575,
-0.24483990669250488,
0.3100582957267761,
-0.05076337233185768,
1.1802574396133423,
0.02666621468961239,
-0.42427679896354675,
0.3020499050617218,
-0.6591284871101379,
0.3855448067188263,
0.23564720153808594,
-0.33700498938560486,
0.16754667460918427,
-0.20829704403877258,
0.21538834273815155,
0.22043535113334656,
0.4829232394695282,
-0.5757215619087219,
0.32152536511421204,
-0.5345317125320435,
0.5670734643936157,
0.8201215267181396,
-0.16056719422340393,
0.40591320395469666,
-0.44374191761016846,
0.32290327548980713,
-0.1583186686038971,
0.12446102499961853,
0.1819329410791397,
-0.5626444816589355,
-0.7211355566978455,
-0.417326420545578,
0.2629334330558777,
0.5971402525901794,
-0.6451340913772583,
0.8009210824966431,
-0.17816555500030518,
-0.8016802072525024,
-0.7458662986755371,
0.01681368239223957,
0.2649911344051361,
0.40614327788352966,
0.6851438879966736,
-0.08811219781637192,
-0.9140385389328003,
-1.1151151657104492,
0.11676348000764847,
-0.31851136684417725,
-0.448832631111145,
0.24027375876903534,
0.669190526008606,
-0.46394282579421997,
0.7893577814102173,
-0.6099768280982971,
-0.40659305453300476,
-0.3314829468727112,
0.02088918350636959,
0.5840697884559631,
0.7772167921066284,
0.6551378965377808,
-0.5603193044662476,
-0.3491387963294983,
-0.4210347533226013,
-0.7484331130981445,
0.1827624887228012,
0.0344998873770237,
-0.4311956465244293,
0.3633953630924225,
0.16989560425281525,
-1.038871169090271,
0.3124735355377197,
0.34689438343048096,
-0.5753391981124878,
0.5688486099243164,
-0.15792182087898254,
0.04187903553247452,
-1.2550445795059204,
0.04875100776553154,
-0.02833600342273712,
0.031055519357323647,
-0.4338138699531555,
0.2531309723854065,
0.09538225084543228,
0.08114591240882874,
-0.5325928926467896,
0.5882475972175598,
-0.21594995260238647,
0.20644520223140717,
0.1859767735004425,
-0.032463353127241135,
-0.0800999253988266,
0.704190731048584,
0.01903737150132656,
0.6012901663780212,
0.5792145729064941,
-0.31393560767173767,
0.6464169025421143,
0.6628445982933044,
-0.4537370502948761,
0.3526880443096161,
-0.8375897407531738,
0.0938379168510437,
-0.03771882876753807,
0.3011922538280487,
-1.1810334920883179,
-0.3917103707790375,
0.21971707046031952,
-0.6464542150497437,
0.31987032294273376,
-0.41932886838912964,
-0.701319694519043,
-0.5851536393165588,
-0.5858654975891113,
0.2662193179130554,
0.8060744404792786,
-0.40273910760879517,
0.40398064255714417,
0.29260244965553284,
-0.18691204488277435,
-0.56306391954422,
-0.71247798204422,
-0.37272408604621887,
-0.14032168686389923,
-0.946491003036499,
0.23110461235046387,
-0.4218234419822693,
-0.09217727929353714,
-0.22224047780036926,
-0.323762446641922,
-0.42236328125,
-0.19843803346157074,
0.10577689856290817,
0.6600012183189392,
-0.3326124846935272,
-0.07521407306194305,
-0.06591139733791351,
-0.027680592611432076,
0.20969128608703613,
-0.04877962917089462,
0.9070377349853516,
-0.48932719230651855,
-0.023211121559143066,
-0.4199712872505188,
0.2221827507019043,
0.5829514265060425,
-0.22994031012058258,
0.8743138909339905,
1.0459723472595215,
-0.13338297605514526,
0.033315785229206085,
-0.47082579135894775,
-0.31879082322120667,
-0.48502928018569946,
0.513191282749176,
-0.1418902575969696,
-0.8181124329566956,
0.7455317974090576,
0.31288233399391174,
0.1799376904964447,
1.0173664093017578,
0.5748232007026672,
-0.44985103607177734,
1.0630161762237549,
0.17421521246433258,
0.13762114942073822,
0.20538552105426788,
-0.9389017820358276,
-0.1054408922791481,
-0.901810348033905,
-0.5797036290168762,
-0.37898609042167664,
-0.5300218462944031,
-0.6439577341079712,
-0.4679703116416931,
0.2605224847793579,
0.12326962500810623,
-0.5821070671081543,
0.4849572777748108,
-0.5624848008155823,
0.1654781699180603,
0.6815367341041565,
0.5114467740058899,
-0.2069910317659378,
0.027807561680674553,
0.16006872057914734,
0.03147906810045242,
-0.488897442817688,
-0.309530109167099,
1.4229438304901123,
0.36206406354904175,
0.7049376964569092,
0.36783477663993835,
0.5821784138679504,
0.1648085117340088,
-0.15917712450027466,
-0.8670873045921326,
0.524101734161377,
0.042631447315216064,
-0.9903320074081421,
-0.39147013425827026,
-0.39060893654823303,
-1.1634420156478882,
0.171683669090271,
-0.31542256474494934,
-0.7083437442779541,
-0.05396657437086105,
-0.0958382859826088,
-0.40825921297073364,
0.24880357086658478,
-0.8021950721740723,
0.8539286851882935,
-0.12926936149597168,
-0.3837805986404419,
0.01054751593619585,
-0.999011218547821,
0.069412961602211,
0.15848010778427124,
0.002109626540914178,
-0.09651568531990051,
0.0776226595044136,
0.9554164409637451,
-0.38611704111099243,
0.7980914115905762,
-0.23660248517990112,
0.0359799824655056,
0.5070192813873291,
0.10085230320692062,
0.5240548253059387,
0.338175892829895,
-0.25491413474082947,
0.33986619114875793,
0.2692277729511261,
-0.7671558260917664,
-0.43097472190856934,
0.6385001540184021,
-0.9709001779556274,
-0.47210192680358887,
-0.4023299813270569,
-0.8620126843452454,
-0.09987364709377289,
0.36748310923576355,
0.3379896283149719,
0.6265221238136292,
0.044344983994960785,
0.6804843544960022,
0.7710413932800293,
-0.14586108922958374,
0.6064307689666748,
0.46616268157958984,
0.11511371284723282,
-0.3269880712032318,
0.4125367999076843,
-0.019762132316827774,
0.14126543700695038,
0.3775654733181,
0.17941947281360626,
-0.6830283403396606,
-0.41548797488212585,
-0.6079522967338562,
0.29927849769592285,
-0.4611445367336273,
-0.4592295289039612,
-0.5757051706314087,
-0.45180898904800415,
-0.627920389175415,
-0.02583024837076664,
-0.3460084795951843,
-0.6754350662231445,
-0.3938949406147003,
-0.07085159420967102,
0.6765124797821045,
0.2822713851928711,
-0.07417870312929153,
0.23401512205600739,
-0.5912819504737854,
0.28176113963127136,
0.3436495065689087,
0.4356616735458374,
-0.25254911184310913,
-0.7993208765983582,
-0.09704983234405518,
0.3364941477775574,
-0.3297966420650482,
-0.6875887513160706,
0.2956458628177643,
0.02369920164346695,
0.49618300795555115,
0.34898048639297485,
0.24001990258693695,
0.5612456798553467,
-0.3778212070465088,
0.8069875836372375,
0.08317361027002335,
-0.6024482250213623,
0.5103265643119812,
-0.5588957071304321,
0.35557040572166443,
0.4801025390625,
0.24778413772583008,
-0.11584441363811493,
-0.3047022521495819,
-1.020059585571289,
-1.22470223903656,
0.9185318946838379,
0.44699233770370483,
0.16432563960552216,
0.054478541016578674,
0.006736809387803078,
-0.010638346895575523,
0.2794633209705353,
-0.5386287569999695,
-0.41461291909217834,
-0.24671049416065216,
-0.39899885654449463,
-0.11330605298280716,
-0.16164734959602356,
-0.3633142411708832,
-0.4893503189086914,
0.8247466683387756,
-0.07593348622322083,
0.6308424472808838,
0.28439104557037354,
-0.2306872010231018,
0.015376507304608822,
0.2336885631084442,
0.6565912961959839,
0.6203745603561401,
-0.7372973561286926,
-0.17880815267562866,
0.18348759412765503,
-0.37289711833000183,
-0.24059699475765228,
0.3640758991241455,
-0.05214828625321388,
0.09719499200582504,
0.5789446234703064,
0.7164586186408997,
0.12646882236003876,
-0.6720734238624573,
0.6383767127990723,
0.17843616008758545,
-0.48700588941574097,
-0.6930567026138306,
0.046426307410001755,
0.051347244530916214,
0.6395202279090881,
0.6276504397392273,
0.36397358775138855,
-0.12768879532814026,
-0.5409435629844666,
0.23693203926086426,
0.6435999274253845,
-0.4157995581626892,
-0.2162458300590515,
0.5574687123298645,
-0.10203283280134201,
-0.31855878233909607,
0.6455072164535522,
-0.12082923948764801,
-0.5780941843986511,
0.9688421487808228,
0.4558122158050537,
0.6248655915260315,
0.08208300173282623,
0.20270194113254547,
0.6756322383880615,
0.3600534498691559,
-0.07394708693027496,
0.3408031761646271,
0.08547662943601608,
-0.5723713636398315,
-0.28653159737586975,
-0.69272780418396,
-0.10219001024961472,
0.2874930202960968,
-0.8269442319869995,
0.16349370777606964,
-0.45526546239852905,
-0.05361301451921463,
0.06840428709983826,
0.1813579797744751,
-0.9888220429420471,
0.07524153590202332,
-0.27161794900894165,
0.9547873139381409,
-0.5287810564041138,
0.4493671953678131,
0.7871816754341125,
-0.6156483888626099,
-0.961580753326416,
-0.20749200880527496,
-0.015080356039106846,
-1.1211040019989014,
0.5043507218360901,
0.19571341574192047,
0.27336814999580383,
0.11549229174852371,
-0.797902524471283,
-0.8615772128105164,
1.1182647943496704,
0.14632554352283478,
-0.3008275032043457,
0.0012450561625882983,
-0.05741438269615173,
0.7242318987846375,
-0.2495979517698288,
0.6501979231834412,
0.40317681431770325,
0.47382253408432007,
0.1500052660703659,
-0.8395025134086609,
0.11484283953905106,
-0.42030778527259827,
-0.2904312312602997,
0.1501644104719162,
-0.8521894216537476,
0.9457696080207825,
-0.42242932319641113,
0.2062765210866928,
0.49168846011161804,
0.520517885684967,
0.30653220415115356,
0.16496694087982178,
0.34101545810699463,
0.5914632081985474,
0.46075910329818726,
-0.43426939845085144,
0.9121010899543762,
0.007177781779319048,
0.965533971786499,
0.7122403383255005,
0.11585136502981186,
0.937229335308075,
0.4196031093597412,
-0.49375098943710327,
0.7681537866592407,
0.5542781352996826,
-0.5025103092193604,
0.5923359990119934,
0.1844748854637146,
-0.06798147410154343,
-0.12091367691755295,
0.3961263597011566,
-0.6622587442398071,
0.5464080572128296,
0.021947115659713745,
-0.3616032004356384,
-0.1386524736881256,
-0.45836642384529114,
0.14318324625492096,
-0.14715059101581573,
-0.2025507390499115,
0.7191466689109802,
-0.4299887716770172,
-0.5181601643562317,
0.8993171453475952,
-0.21438656747341156,
0.8399502635002136,
-0.790094792842865,
0.08580459654331207,
-0.1716720461845398,
0.3239401578903198,
-0.20340405404567719,
-1.0715152025222778,
0.09137691557407379,
-0.09319982677698135,
-0.3865869343280792,
-0.13840807974338531,
0.43793755769729614,
-0.5733957886695862,
-0.7104756236076355,
0.02530253492295742,
0.4588563144207001,
0.2668495178222656,
-0.014677362516522408,
-0.9123166799545288,
-0.1141890436410904,
0.13680186867713928,
-0.3095325827598572,
0.19895939528942108,
0.28192558884620667,
0.2744450569152832,
0.6686637997627258,
0.8237899541854858,
-0.1640813797712326,
-0.058528002351522446,
-0.1765558123588562,
0.7080936431884766,
-0.607756495475769,
-0.35810965299606323,
-0.7583072185516357,
0.8744573593139648,
-0.1902579516172409,
-0.43474632501602173,
0.5343261361122131,
0.9259188175201416,
0.8373242020606995,
-0.5253335237503052,
0.615919291973114,
-0.3946056067943573,
0.5884268283843994,
-0.3572160005569458,
1.1057944297790527,
-0.6061417460441589,
-0.11935724318027496,
-0.40076324343681335,
-0.8323169946670532,
-0.11168666183948517,
0.8829602003097534,
-0.007684798911213875,
0.017975078895688057,
0.535891056060791,
0.8215826153755188,
-0.010133884847164154,
-0.09511615335941315,
-0.3051402270793915,
0.30116668343544006,
0.2831094264984131,
0.717249870300293,
0.5387173891067505,
-0.8034094572067261,
0.8402154445648193,
-0.4776017963886261,
-0.3172300159931183,
-0.28871551156044006,
-0.532315731048584,
-1.0711371898651123,
-0.7092297077178955,
-0.19062942266464233,
-0.7811482548713684,
-0.2185836285352707,
1.0769896507263184,
0.8728889226913452,
-0.8824339509010315,
-0.13182756304740906,
0.1050446555018425,
-0.08860566467046738,
-0.31334051489830017,
-0.3120769262313843,
0.7458148002624512,
-0.09759189933538437,
-0.8797276020050049,
0.32056331634521484,
-0.25610610842704773,
0.098869688808918,
0.060234736651182175,
-0.08552923053503036,
-0.4042479693889618,
-0.28215906023979187,
0.721951961517334,
0.3916090428829193,
-0.7499520182609558,
-0.47439733147621155,
0.14733895659446716,
-0.017538992688059807,
0.10044708847999573,
0.2086082249879837,
-0.6920204162597656,
0.3243083655834198,
0.5093169808387756,
0.5871973633766174,
0.6986089944839478,
-0.11711414158344269,
0.23985709249973297,
-0.8044978380203247,
0.40187034010887146,
0.25392743945121765,
0.4347147047519684,
0.26737722754478455,
-0.24019184708595276,
0.7450593113899231,
0.22763869166374207,
-0.45599305629730225,
-0.8221502900123596,
-0.0014787896070629358,
-1.4427202939987183,
-0.14861586689949036,
1.2252299785614014,
-0.052537620067596436,
-0.1104792132973671,
0.20058469474315643,
-0.42367956042289734,
0.5635037422180176,
-0.6508694887161255,
0.9632353186607361,
0.5658827424049377,
-0.1483481079339981,
0.041587140411138535,
-0.4614880084991455,
0.24099978804588318,
0.48526111245155334,
-0.6899890303611755,
-0.35239100456237793,
0.2861751616001129,
0.5125212073326111,
0.3556833267211914,
0.12301530689001083,
-0.0894475057721138,
0.2435920387506485,
-0.17051063477993011,
0.09413228929042816,
-0.231867253780365,
0.11039680242538452,
0.08154242485761642,
0.11693503707647324,
-0.4416235089302063,
-0.2948043644428253
] |
Severian/ANIMA-Phi-Neptune-Mistral-7B
|
Severian
| 2023-10-26T11:03:46Z | 8,459 | 25 |
transformers
|
[
"transformers",
"pytorch",
"mistral",
"text-generation",
"chemistry",
"biology",
"climate",
"science",
"philosophy",
"nature",
"ecology",
"biomimicry",
"fauna",
"flora",
"dataset:Severian/Biomimicry",
"dataset:emrgnt-cmplxty/sciphi-textbooks-are-all-you-need",
"dataset:fmars/wiki_stem",
"dataset:fblgit/tree-of-knowledge",
"dataset:Severian/Bio-Design-Process",
"license:artistic-2.0",
"endpoints_compatible",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-10-11T22:48:16Z |
---
license: artistic-2.0
datasets:
- Severian/Biomimicry
- emrgnt-cmplxty/sciphi-textbooks-are-all-you-need
- fmars/wiki_stem
- fblgit/tree-of-knowledge
- Severian/Bio-Design-Process
tags:
- chemistry
- biology
- climate
- science
- philosophy
- nature
- ecology
- biomimicry
- fauna
- flora
pipeline_tag: text-generation
metrics:
- accuracy
---
# ANIMA-Phi-Neptune-Mistral-7B: Biomimicry Enhanced LLM
<img src="https://cdn-uploads.huggingface.co/production/uploads/64740cf7485a7c8e1bd51ac9/JZH6p50t_j3-OUph4Wq6y.png" width="500">
## Overview
**ANIMA** (Advanced Nature Inspired Multidisciplinary Assistant) is an expert in various scientific disciplines, including but not limited to biomimicry, biology, and environmental science.
**Instagram: [@anima_llm](https://www.instagram.com/anima_llm)**
---
## Model Description
ANIMA is fine-tuned on a rich dataset encompassing:
- 4,000+ Nature-Biomimicry examples
- 60k Biomimicry Design Process examples
- 600k STEM facts from Wikipedia
- Science/Philosophy focused 'All-You-Need-Is-Textbooks' dataset
- Additional Tree of Knowledge + Biomimicry data combined fine-tuning
The model aims to assist users in solving problems using nature-inspired strategies and concepts.
### Special Features
- **Multi-disciplinary Expertise**: Knowledge across various scientific and philosophical domains.
- **Biomimicry Design Process**: Incorporates a dataset generated by Mistral and Minotaur-15B. The dataset was then intricately processed by a real person to ensure factuality and grounding.
---
- Here is a link to The Bloke's GGUF version: [ANIMA-Phi-Neptune-Mistral-7B-GGUF](https://huggingface.co/TheBloke/ANIMA-Phi-Neptune-Mistral-7B-GGUF)
- ANIMA is also available using Ollama - Download the [OLLAMA](https://ollama.ai/) App (MacOS & Linux) and then run this command in your Terminal '**ollama pull severian/anima**' to download the model and then run this command '**ollama run severian/anima**' to load the model and start talking.
- You can also download and use the model with [LM Studio](https://lmstudio.ai/) (All OS systems). Just download the app and then search for 'ANIMA GGUF' in the search bar and you will have a list of versions to choose from.
- Want to test ANIMA + Ollama and chat right away? Download the model from Ollama and head here to chat with ANIMA right in your browser! [ANIMA - Chat](https://severian42.github.io/ANIMA-Chat/)
- Have a PDF you want to discuss with ANIMA + Ollama? Head here and you can do just that in your browser, 100% locally. [ANIMA - Locally Chat over your PDF](https://ANIMA-pdf-chat.vercel.app/)
- ANIMA is also being hosted on a Hugging Face Space if you'd like to try it there (It may be slow to generate a respone but it still works just fine) [ANIMA - HF Space](https://huggingface.co/spaces/Severian/ANIMA-7B-Biomimicry-LLM)
- **Contact**
If you want to discuss the model/dataset/concept further, have any cool ideas, want to collaborate or if you run into any issues with the model, please don't hesitate to reach out at [email protected]
## Datasets
- `Severian/Biomimicry` (1st Fine-Tune)
- `emrgnt-cmplxty/sciphi-textbooks-are-all-you-need` (2nd Fine-Tune)
- `Severian/Bio-Design-Process` & `fmars/wiki_stem` (3rd Fine-Tune)
- `fblgit/tree-of-knowledge` & `Severian/Biomimicry` (4th Fine-Tune)
- `Combined all previous datasets` into one giant dataset for a quick fine-tuning for a total of 730k data points (5th Fine-Tune)
## Training Stages
1. **Base Model**: `ehartford/dolphin-2.0-mistral-7b`
2. **1st Fine-Tune**: `ANIMA-Echo-Mistral-7B-v1` - 1 Epoch x 5hrs on 1 x T4 Small
3. **2nd Fine-Tune**: `ANIMA-Phi-Neptune-Mistral-v1`-: 1 Epoch x 1hr on 1 x A100
4. **3rd Fine-Tune**: `ANIMA-Phi-Neptune-Mistral-7B-v2` - 1 Epoch x 1hr on 1 x A100
5. **4th Fine-Tune**: `ANIMA-Phi-Neptune-Mistral-7B-v3` - 1 Epoch x 1hr on 1 x A100
6. **5th Fine-Tune**: `ANIMA-Phi-Neptune-Mistral-7B-v4` - 1 Epoch x 15mins on 1 x A100
---
## 📝 Usage
ANIMA is designed around the Biomimicry Design Process to guide users in solving problems through biomimicry. For more information and examples, please visit [Biomimicry Design Process](https://toolbox.biomimicry.org/methods/process/).
## 🏁 Benchmarks
- Average - 62.22
- ARC - 56.83
- HellaSwag - 78.82
- MMLU - 53.84
- TruthfulQA - 59.40
---
- **EXAMPLE OUTPUT**
[INST] How can biomimicry help in water purification? [/INST]
Biomimicry plays a significant role in water purification by taking
inspiration from natural processes and organisms to develop sustainable
and efficient solutions. Here's a comprehensive overview of how biomimicry
can help in water purification:
1. Microbial filtration:
- Bacteriophages (viruses that infect bacteria) can effectively target
contaminants in water systems, such as Escherichia coli and Staphylococcus
aureus. By mimicking the natural defense mechanisms of bacteriophages, we
can develop efficient filtration systems that remove pollutants from water
sources.
- Some fungi, such as Trametes versicolor, can break down organic
pollutants in water using enzymes. This process helps make contaminated
water safe for consumption. By studying and replicating these natural
processes, we can develop sustainable filtration systems that remove
pollutants from water sources effectively.
2. Biofilm-based filtration:
- Microorganisms form biofilms on surfaces to protect themselves from
environmental threats like predators or contaminants. By mimicking the
natural formation of biofilms, we can develop sustainable filtration
systems that use bacteria or fungi to remove pollutants from water
sources.
- For example, a study has shown how Pseudomonas putida could
be used to biodegrade petroleum hydrocarbons in contaminated water sources
using a biofilm-based system. This method offers an eco-friendly
alternative to conventional chemical treatments for oil spills.
3. Wetland-based filtration:
- Wetlands act as natural filters for water by retaining sediments and
organic matter, which helps remove contaminants. By mimicking the natural
processes of a wetland, we can design effective water purification systems
that use sand filters or engineered wetlands to remove pollutants. For
instance, a study has shown how reed beds can be used for water filtration
by using them as a natural treatment system for agricultural wastewater.
4. Sponge filtration:
- Some marine sponges (e.g., sea sponge) have evolved sophisticated
mechanisms to filter out particles and contaminants from the surrounding
water. By studying these natural filtration processes, we can develop
efficient and sustainable filtration systems that remove pollutants
effectively. For example, a study has shown how sea sponges can be used as
a model for designing a low-cost, self-sustaining water purification
system that uses solar energy to disinfect contaminated water.
5. Biodegradable materials:
- Natural organisms have evolved biodegradable materials to protect
themselves from predators or environmental threats. For instance, some
insects produce natural pesticides (such as alkaloids) to defend
themselves against predators. Similarly, we can develop biodegradable
materials that release these natural pesticides in contaminated water
sources, killing off contaminants and restoring the environment's health.
- For example, a study has shown how bacterial cells can be used as a
natural filtration system to remove contaminants from water sources by
incorporating them into membranes that selectively remove organic
pollutants.
In conclusion, biomimicry plays a vital role in water purification by
using natural processes and organisms as inspiration for developing
sustainable and efficient solutions. By studying the natural filtration
mechanisms of microorganisms, plants, animals, and other living organisms,
we can design eco-friendly and cost-effective water purification systems
that help protect our environment from contamination.
---
### ***[Help Support ANIMA](https://www.buymeacoffee.com/anima7b)***
---
- **KNOWN ISSUES**
The model will sometimes respond to itself and continue the conversation taking both the user and AI roles. This is a known issue in the Mistral model but does not happen very often.
## 📜 License
This project is licensed under Artistic-2.0
**This model is for research purposes only and restricted from any commercial use**
|
[
-0.7079812288284302,
-0.8662685751914978,
0.6963672637939453,
-0.018280988559126854,
-0.38453733921051025,
0.043829839676618576,
0.29033371806144714,
-0.6436883807182312,
0.5444536805152893,
0.5059228539466858,
-0.47751450538635254,
-0.18646936118602753,
-0.28091949224472046,
0.3656632602214813,
-0.06481736898422241,
0.5435460805892944,
0.19935932755470276,
0.5463848114013672,
0.14517061412334442,
-0.23042872548103333,
-0.2903192341327667,
-0.23671120405197144,
-0.9305291771888733,
-0.4325423240661621,
0.4959198236465454,
0.17464174330234528,
0.6528360247612,
0.7166933417320251,
0.454364150762558,
0.4008256793022156,
-0.3657568097114563,
0.2551462948322296,
-0.2929677665233612,
-0.01449692901223898,
-0.33429044485092163,
-0.4229820966720581,
-0.4367353618144989,
0.18441084027290344,
0.5092896819114685,
0.5816363096237183,
0.163015216588974,
0.4575869143009186,
0.16211916506290436,
0.6834618449211121,
-0.4822840392589569,
0.19452399015426636,
0.05212153121829033,
0.20703910291194916,
-0.07486795634031296,
-0.3372052013874054,
0.15593616664409637,
-0.4200623035430908,
0.01075410470366478,
-0.8107725381851196,
-0.06734034419059753,
0.0066201644949615,
0.8634620308876038,
0.2625322937965393,
-0.32835903763771057,
-0.1257135272026062,
-0.8250566720962524,
0.781656801700592,
-0.6359809637069702,
0.3976173400878906,
0.23512734472751617,
0.3481474816799164,
-0.1877085119485855,
-0.7317806482315063,
-0.31984996795654297,
-0.2545124292373657,
-0.1207260861992836,
0.4085257649421692,
-0.03408282622694969,
0.038976237177848816,
0.3357545733451843,
0.6155151128768921,
-0.376787006855011,
-0.3570137619972229,
-0.6775267720222473,
-0.11356837302446365,
0.6116000413894653,
0.06355299055576324,
0.4099968373775482,
-0.2237686961889267,
-0.5214832425117493,
-0.17838867008686066,
-0.3559877276420593,
0.31271064281463623,
0.33697646856307983,
0.14589519798755646,
-0.16148537397384644,
0.3796095848083496,
-0.0614987276494503,
0.38955825567245483,
-0.014080235734581947,
-0.0852554515004158,
-0.06987283378839493,
-0.5091604590415955,
-0.15318922698497772,
-0.05791594460606575,
0.6069198250770569,
0.0378519669175148,
0.06490469723939896,
0.2877466082572937,
0.10080870985984802,
0.13968615233898163,
0.25907716155052185,
-1.0249683856964111,
-0.24639637768268585,
0.39802616834640503,
-0.7046968340873718,
-0.49234655499458313,
-0.10131806135177612,
-0.893480122089386,
-0.419389009475708,
-0.4406125843524933,
0.692672848701477,
-0.364335298538208,
-0.2752257287502289,
0.14591775834560394,
-0.3728928864002228,
-0.08208178728818893,
0.37265387177467346,
-0.5077965259552002,
0.4053511917591095,
0.2622024118900299,
0.873692512512207,
0.22086051106452942,
0.027638865634799004,
-0.09521891921758652,
0.036957357078790665,
-0.1262500286102295,
0.6629847288131714,
-0.46284347772598267,
-0.5944951772689819,
-0.4762289524078369,
-0.005960660055279732,
-0.059071917086839676,
-0.5958878397941589,
0.16155971586704254,
-0.26126495003700256,
0.17392806708812714,
-0.34247350692749023,
-0.34445643424987793,
-0.7116711735725403,
-0.21567481756210327,
-0.7186971306800842,
0.44681674242019653,
-0.0024463527370244265,
-0.7680649161338806,
-0.10043314844369888,
-0.8842666149139404,
-0.24926985800266266,
0.2508554756641388,
0.15976332128047943,
-0.17038501799106598,
0.10081396251916885,
-0.18796993792057037,
0.04934616759419441,
-0.40992534160614014,
0.05497807264328003,
-0.7093499898910522,
-0.19339780509471893,
0.17241328954696655,
-0.13990145921707153,
1.218204140663147,
0.5419094562530518,
-0.13385725021362305,
-0.04574941098690033,
-0.8397754430770874,
-0.10529336333274841,
0.010149058885872364,
-0.15798313915729523,
-0.1533069610595703,
0.02409975230693817,
-0.12128600478172302,
0.2093248963356018,
0.15250226855278015,
-0.6280980110168457,
0.028404731303453445,
-0.26491087675094604,
0.8820677995681763,
0.3987513780593872,
0.5964385271072388,
0.32371699810028076,
-0.7106356024742126,
0.274936705827713,
-0.04362626001238823,
0.6110700368881226,
0.030502108857035637,
-0.7113529443740845,
-0.6272832751274109,
-0.48756110668182373,
0.26380670070648193,
0.7702515721321106,
-0.7405810356140137,
0.42013463377952576,
-0.019868426024913788,
-0.6723487973213196,
-0.6160009503364563,
0.3598198890686035,
0.3185526132583618,
0.5591638088226318,
0.4537646472454071,
-0.7171220779418945,
-0.5587174296379089,
-0.7821962833404541,
0.10205411911010742,
-0.23689045011997223,
0.0855257585644722,
0.22327008843421936,
0.6872654557228088,
-0.16758374869823456,
0.9147209525108337,
-0.5577418804168701,
-0.460110604763031,
0.1761317402124405,
0.00949764158576727,
0.2806341052055359,
0.5048996210098267,
0.7564862370491028,
-0.9856233596801758,
-0.29839247465133667,
0.01815592683851719,
-0.9307041168212891,
0.058837976306676865,
0.389627069234848,
-0.39450377225875854,
-0.15635238587856293,
0.2237924039363861,
-0.632119357585907,
0.593058705329895,
0.17588888108730316,
-0.3159423768520355,
0.17230315506458282,
-0.4808040261268616,
0.3301272988319397,
-0.9858757853507996,
0.4306934177875519,
0.09551795572042465,
-0.2627648115158081,
-0.7941457629203796,
0.2789762020111084,
-0.1792331337928772,
-0.3241020739078522,
-0.32337459921836853,
0.7256827354431152,
-0.31238383054733276,
0.25430524349212646,
-0.310822993516922,
-0.2889036536216736,
0.14219143986701965,
0.3688364624977112,
0.1178828552365303,
0.3231150805950165,
0.4149913489818573,
-0.8610509037971497,
0.46072521805763245,
0.31963250041007996,
0.10048334300518036,
0.420177698135376,
-0.6678997278213501,
0.002507830038666725,
-0.18804126977920532,
0.4358139634132385,
-0.8566132187843323,
-0.013220852240920067,
0.42949700355529785,
-0.4639098346233368,
0.3181402385234833,
0.015232018195092678,
-0.4224700629711151,
-0.546875,
-0.4443569481372833,
0.15466168522834778,
0.436313658952713,
-0.5849435925483704,
0.6011384129524231,
0.2950742542743683,
-0.16642552614212036,
-0.09837817400693893,
-0.4429289996623993,
-0.0898694396018982,
-0.5233033299446106,
-0.6570196747779846,
0.2295098453760147,
-0.21850420534610748,
-0.3452983498573303,
0.14691492915153503,
-0.15784801542758942,
-0.05199698358774185,
0.20434688031673431,
0.3779250681400299,
0.39877423644065857,
0.018294863402843475,
-0.210672065615654,
0.05970233678817749,
-0.2719177305698395,
0.04607211798429489,
-0.15668879449367523,
0.32425233721733093,
-0.09475594013929367,
0.08690592646598816,
-0.567591667175293,
0.3300703465938568,
0.797654390335083,
-0.08956178277730942,
0.44340813159942627,
0.7123159170150757,
-0.621487021446228,
0.3446042537689209,
-0.5327603816986084,
-0.4711446762084961,
-0.5049035549163818,
-0.03368232771754265,
-0.21561481058597565,
-0.5312536358833313,
0.6952027678489685,
-0.05809639021754265,
0.21446271240711212,
0.4639017879962921,
0.2774176299571991,
-0.2033454328775406,
0.8687953352928162,
0.5572785139083862,
0.011159226298332214,
0.4917820692062378,
-0.676220178604126,
0.3895508050918579,
-0.6919195652008057,
-0.17738528549671173,
-0.5392851233482361,
-0.35293030738830566,
-0.7105317711830139,
-0.18068045377731323,
0.554023027420044,
0.17608347535133362,
-0.4074973165988922,
0.44886869192123413,
-0.47724369168281555,
-0.14225073158740997,
0.5633008480072021,
0.3364337086677551,
0.2640560567378998,
-0.02335609868168831,
-0.14040923118591309,
0.10720714926719666,
-0.5914371609687805,
-0.5713090300559998,
0.5023314356803894,
0.40396666526794434,
0.481042742729187,
0.09822442382574081,
0.8522895574569702,
0.2081141471862793,
0.2451050579547882,
-0.4859992563724518,
0.35604187846183777,
-0.07170495390892029,
-0.9579612016677856,
-0.2983916401863098,
-0.2959936261177063,
-0.7868635058403015,
0.3214750587940216,
-0.4033953547477722,
-0.6433801651000977,
0.744938850402832,
0.15455304086208344,
-0.6581364274024963,
0.3644648492336273,
-0.5669002532958984,
0.667230486869812,
-0.0838833749294281,
-0.8120471835136414,
-0.3612270951271057,
-0.7244148254394531,
0.3266926407814026,
-0.11120762676000595,
0.6606913208961487,
-0.10175876319408417,
-0.013635308481752872,
0.5220776200294495,
-0.5867122411727905,
0.874313473701477,
-0.31493261456489563,
0.1808820515871048,
0.5551592111587524,
0.09727837890386581,
-0.27484381198883057,
0.3249615728855133,
0.08964959532022476,
0.13708901405334473,
0.37548455595970154,
-0.2303648293018341,
-0.2750135660171509,
0.5044832229614258,
-0.8037487268447876,
-0.6483700275421143,
-0.5275090932846069,
-0.12332113087177277,
0.07402986288070679,
0.21758298575878143,
0.45408689975738525,
0.3745400905609131,
-0.05262831598520279,
0.2152210921049118,
0.7237423658370972,
-0.3060193657875061,
0.5326011180877686,
0.41027796268463135,
-0.2516952157020569,
-0.8104419708251953,
0.8954862356185913,
0.3946159780025482,
0.008194691501557827,
0.43399810791015625,
0.394140362739563,
-0.2976766526699066,
-0.1791462004184723,
-0.3957594037055969,
0.2799939513206482,
-0.350163996219635,
-0.40456292033195496,
-0.6703084707260132,
-0.4878787398338318,
-0.46564966440200806,
0.09713476896286011,
-0.22714944183826447,
-0.3322223424911499,
-0.43601977825164795,
-0.002288720104843378,
0.6063522696495056,
0.6108954548835754,
-0.5143398642539978,
-0.0178446713835001,
-0.9625318646430969,
0.6178902387619019,
0.38933199644088745,
0.12214330583810806,
0.028601158410310745,
-0.4052097499370575,
0.10081817209720612,
0.3146820366382599,
-0.5324960350990295,
-1.0570473670959473,
0.613680362701416,
0.24458523094654083,
0.4869726300239563,
0.5446782112121582,
-0.1606135368347168,
0.7642777562141418,
-0.2896439731121063,
0.6545394659042358,
0.044093452394008636,
-0.6731699109077454,
0.7414540648460388,
-0.3327321708202362,
0.19776321947574615,
0.5232679843902588,
0.5586686730384827,
-0.23999325931072235,
-0.37177953124046326,
-0.6434722542762756,
-0.7139421701431274,
0.3884952664375305,
0.3392201066017151,
0.054334476590156555,
0.15199434757232666,
0.5988463759422302,
-0.06318756192922592,
0.16928105056285858,
-0.5279987454414368,
-0.3303767740726471,
-0.16474445164203644,
0.22142809629440308,
-0.09078989923000336,
-0.09100587666034698,
-0.07880706340074539,
-0.5482493042945862,
0.8944454789161682,
0.2592953145503998,
0.1489083617925644,
0.3672387897968292,
-0.08714649081230164,
-0.20780615508556366,
-0.017719274386763573,
0.5272105932235718,
0.27286380529403687,
-0.3323689103126526,
-0.11024796217679977,
0.19531409442424774,
-0.7716735601425171,
0.19321583211421967,
0.09284862875938416,
-0.2671942114830017,
-0.15783968567848206,
0.15883676707744598,
0.5496335029602051,
0.37324944138526917,
-0.03546745702624321,
-0.10939021408557892,
-0.1723826825618744,
-0.20059441030025482,
-0.16620025038719177,
0.3586643934249878,
0.17068219184875488,
0.3101640045642853,
0.40881359577178955,
0.16832926869392395,
0.5903638005256653,
-0.7944360971450806,
-0.034241072833538055,
0.14570799469947815,
-0.34028223156929016,
-0.4280414879322052,
0.8799536228179932,
0.2166249006986618,
-0.25591906905174255,
0.385823130607605,
-0.25506702065467834,
-0.29792121052742004,
0.65227210521698,
0.37901633977890015,
0.669810950756073,
-0.6707836985588074,
0.29035961627960205,
0.7085692882537842,
-0.15767475962638855,
-0.053611502051353455,
0.4582061171531677,
-0.18043062090873718,
-0.5060443878173828,
0.10535936802625656,
-0.9605416059494019,
-0.4348948001861572,
0.29437318444252014,
-0.6255823969841003,
0.33715716004371643,
-0.798306405544281,
-0.45508915185928345,
0.44956669211387634,
0.5358514189720154,
-0.47967764735221863,
0.22220683097839355,
-0.14142480492591858,
0.879754364490509,
-1.035670280456543,
0.552059531211853,
1.0395851135253906,
-0.601266622543335,
-0.6978211402893066,
-0.6168102025985718,
0.22638344764709473,
-0.44565531611442566,
0.17605094611644745,
0.03540371358394623,
-0.17603306472301483,
-0.01853962615132332,
-0.526491105556488,
-1.0957978963851929,
1.3330568075180054,
0.25501692295074463,
-0.0914677157998085,
0.2119649350643158,
-0.06601042300462723,
0.6994795203208923,
-0.3938433527946472,
0.2661081552505493,
0.429069846868515,
0.7505684494972229,
0.30774030089378357,
-0.7649461627006531,
0.11910632252693176,
-0.7258667945861816,
0.3516184091567993,
-0.1135186031460762,
-0.963041365146637,
0.6931030750274658,
-0.0703224390745163,
-0.10760316997766495,
0.41232118010520935,
0.4299403131008148,
0.4958554804325104,
0.39405056834220886,
0.355016827583313,
0.4333699941635132,
0.565704882144928,
0.04770619049668312,
0.9754521250724792,
-0.45150646567344666,
0.06845692545175552,
0.5103735327720642,
-0.1924104541540146,
0.6267953515052795,
0.36775365471839905,
-0.18212297558784485,
0.277887225151062,
0.9264655709266663,
-0.16500169038772583,
0.5462982058525085,
0.16865409910678864,
-0.43168002367019653,
-0.13894519209861755,
-0.315832257270813,
-0.47438257932662964,
0.3689786493778229,
0.4102577269077301,
-0.09819499403238297,
-0.18940217792987823,
0.06995586305856705,
-0.07149208337068558,
-0.18981240689754486,
-0.4211859703063965,
0.645061194896698,
0.5662890672683716,
-0.5084155201911926,
0.20002003014087677,
-0.007253801915794611,
0.5228610634803772,
-0.5137848258018494,
-0.29879194498062134,
-0.17289818823337555,
0.13603655993938446,
-0.3129954934120178,
-0.3722860813140869,
0.046490978449583054,
-0.3475973308086395,
-0.002720927819609642,
-0.40912285447120667,
1.0730496644973755,
-0.17845246195793152,
-0.2512412667274475,
0.5327609777450562,
0.5951870679855347,
0.28005561232566833,
0.18576782941818237,
-0.6396687626838684,
-0.3333609402179718,
-0.05236031487584114,
-0.1924605518579483,
0.1447560042142868,
0.12654443085193634,
-0.14978986978530884,
0.7482120990753174,
0.6555293202400208,
0.19686497747898102,
-0.1694527268409729,
-0.07936283200979233,
0.6081694960594177,
-0.5694083571434021,
-0.3071945309638977,
-0.650191605091095,
0.40805181860923767,
0.04499521479010582,
-0.14335279166698456,
0.611303448677063,
0.6138623952865601,
0.5299837589263916,
-0.2788427472114563,
0.5833919644355774,
0.12376850843429565,
0.4286505877971649,
-0.2060367912054062,
0.8550386428833008,
-0.4835655093193054,
0.029484324157238007,
-0.0907536968588829,
-1.093908667564392,
-0.06531726568937302,
0.8559479117393494,
0.009123880416154861,
0.35182422399520874,
0.6642605066299438,
0.46667003631591797,
-0.1612675040960312,
0.3992886245250702,
0.08549235761165619,
0.18596303462982178,
0.28975018858909607,
0.17419007420539856,
0.7507519721984863,
-0.2932389974594116,
0.09532010555267334,
-0.718466579914093,
-0.35626882314682007,
-0.24825656414031982,
-0.6509225964546204,
-0.7486515045166016,
-0.40432459115982056,
-0.5020739436149597,
-0.33467569947242737,
0.21643368899822235,
0.7315378189086914,
0.5975683927536011,
-0.7949352860450745,
-0.4687348008155823,
-0.0679420456290245,
-0.021210970357060432,
-0.2201586365699768,
-0.17831707000732422,
0.1361537128686905,
-0.17333711683750153,
-0.6545219421386719,
0.10906413197517395,
0.4518603980541229,
0.43335387110710144,
-0.18364010751247406,
0.1414722204208374,
-0.29858341813087463,
0.19902724027633667,
0.34369805455207825,
0.6567391157150269,
-0.2774944305419922,
-0.46516719460487366,
0.11866133660078049,
-0.11364299058914185,
-0.06111632287502289,
0.39521524310112,
-0.5583174228668213,
0.1732025295495987,
0.6658903360366821,
0.09839537739753723,
0.6861174702644348,
-0.09891576319932938,
0.5013378262519836,
-0.01065974123775959,
-0.1513146311044693,
0.1081576943397522,
0.49319586157798767,
0.0676557794213295,
-0.4861791729927063,
0.8310965895652771,
0.37920209765434265,
-0.3668728172779083,
-0.6372367143630981,
-0.08574764430522919,
-1.0154107809066772,
-0.35834404826164246,
0.8863773345947266,
-0.15040025115013123,
-0.37557682394981384,
-0.06494173407554626,
-0.26243913173675537,
0.4214859902858734,
-0.15886186063289642,
0.6935168504714966,
0.680264413356781,
-0.25278741121292114,
0.17719243466854095,
-0.6561981439590454,
0.3877733051776886,
0.15518996119499207,
-0.8143213987350464,
-0.44575268030166626,
0.3426755368709564,
0.7315962314605713,
0.62921142578125,
0.4961828291416168,
-0.3091422915458679,
0.32320913672447205,
-0.10880523175001144,
-0.09517861902713776,
-0.047154564410448074,
-0.2606792151927948,
-0.3620278835296631,
-0.020441453903913498,
-0.23519223928451538,
-0.22996766865253448
] |
lgaalves/gpt2_camel_physics-platypus
|
lgaalves
| 2023-11-17T22:40:33Z | 8,456 | 0 |
transformers
|
[
"transformers",
"pytorch",
"safetensors",
"gpt2",
"text-generation",
"en",
"dataset:garage-bAInd/Open-Platypus",
"dataset:lgaalves/camel-ai-physics",
"license:mit",
"endpoints_compatible",
"text-generation-inference",
"region:us"
] |
text-generation
| 2023-09-05T21:39:00Z |
---
license: mit
datasets:
- garage-bAInd/Open-Platypus
- lgaalves/camel-ai-physics
language:
- en
pipeline_tag: text-generation
---
# lgaalves/gpt2_camel_physics-platypus
**lgaalves/gpt2_camel_physics-platypus** is an instruction fine-tuned model based on the GPT-2 transformer architecture.
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:** **gpt2_open-platypus** 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_camel_physics-platypus")
>>> 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_camel_physics-platypus")
model = AutoModelForCausalLM.from_pretrained("lgaalves/gpt2_camel_physics-platypus")
```
### Training Dataset
`lgaalves/gpt2_open-platypus` trained using STEM and logic based dataset [garage-bAInd/Open-Platypus](https://huggingface.co/datasets/garage-bAInd/Open-Platypus) and
the GPT4 generated dataset [lgaalves/camel-physics](https://huggingface.co/datasets/lgaalves/camel-physics).
### Training Procedure
`lgaalves/gpt2_camel_physics-platypus` was instruction fine-tuned using LoRA on 1 v100 GPU on Google Colab. It took about 17 minutes 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_camel_physics-platypus)
| Metric | Value |
|-----------------------|---------------------------|
| Avg. | 25.04 |
| ARC (25-shot) | 23.04 |
| HellaSwag (10-shot) | 31.32 |
| MMLU (5-shot) | 26.91 |
| TruthfulQA (0-shot) | 39.56 |
| Winogrande (5-shot) | 49.64 |
| GSM8K (5-shot) | 0.0 |
| DROP (3-shot) | 4.79 |
|
[
-0.28177860379219055,
-0.84103924036026,
0.19065314531326294,
0.27396419644355774,
-0.3595123589038849,
-0.06668262928724289,
-0.3592450022697449,
-0.522495687007904,
0.08615892380475998,
0.1337994486093521,
-0.5728896856307983,
-0.5865725874900818,
-0.7166951298713684,
-0.10106269270181656,
-0.1908588409423828,
1.3600386381149292,
-0.4915321469306946,
-0.14176487922668457,
0.08909184485673904,
-0.3038472831249237,
-0.32478031516075134,
-0.29161038994789124,
-0.37622565031051636,
-0.5009569525718689,
0.22799807786941528,
0.012011961080133915,
0.6013249158859253,
0.568331778049469,
0.5068801641464233,
0.33703142404556274,
-0.2441895604133606,
0.11568408459424973,
-0.6678743958473206,
-0.2496536523103714,
0.13580633699893951,
-0.2081538289785385,
-0.5411727428436279,
0.2207874059677124,
0.7338131070137024,
0.427610844373703,
-0.40052497386932373,
0.37207189202308655,
0.23110611736774445,
0.45826131105422974,
-0.27882251143455505,
0.43825021386146545,
-0.4376187324523926,
-0.08654379099607468,
-0.232474684715271,
-0.10051890462636948,
-0.13823659718036652,
-0.2899932265281677,
0.1492239385843277,
-0.6776672005653381,
0.22116075456142426,
0.21521978080272675,
1.130042314529419,
0.1987604796886444,
-0.2033260315656662,
-0.3228679597377777,
-0.26347294449806213,
0.9566519856452942,
-0.6189818382263184,
0.31490832567214966,
0.27997887134552,
0.11578547209501266,
-0.3762268126010895,
-0.7930740118026733,
-0.4494572877883911,
-0.2844834625720978,
-0.14550207555294037,
0.2831108272075653,
-0.14854048192501068,
-0.09799609333276749,
0.30179235339164734,
0.5243339538574219,
-0.8181612491607666,
0.31233152747154236,
-0.44615980982780457,
-0.23304827511310577,
0.6677646040916443,
0.1597599983215332,
0.09379292279481888,
-0.06029452756047249,
-0.5507879853248596,
-0.38025087118148804,
-0.5998260974884033,
0.3222081959247589,
0.496944785118103,
0.17706748843193054,
-0.4108879268169403,
0.7046217322349548,
-0.2969294786453247,
0.5036301612854004,
-0.07418276369571686,
-0.375876247882843,
0.5055770874023438,
-0.23710021376609802,
-0.32845398783683777,
-0.06384020298719406,
1.1174565553665161,
0.30437803268432617,
0.13677790760993958,
0.041947655379772186,
-0.26412320137023926,
0.11544531583786011,
-0.28704753518104553,
-1.1940538883209229,
-0.28196969628334045,
0.20850270986557007,
-0.29991549253463745,
-0.2233598828315735,
-0.1357831358909607,
-0.4461515545845032,
-0.04939069598913193,
0.025462722405791283,
0.475656121969223,
-0.4981074333190918,
-0.24346910417079926,
0.42886146903038025,
0.016514353454113007,
0.5093145966529846,
0.2297816425561905,
-0.7745155096054077,
0.46178844571113586,
0.7204996943473816,
1.029812216758728,
-0.2706105709075928,
-0.5370327830314636,
-0.3691580295562744,
-0.02476968616247177,
0.03716293349862099,
0.8634318709373474,
-0.16102653741836548,
-0.4109606444835663,
-0.2619994878768921,
0.23133009672164917,
-0.10692912340164185,
-0.4461904764175415,
0.5060193538665771,
-0.38271692395210266,
0.4750424921512604,
-0.19518712162971497,
-0.7843167185783386,
-0.11013426631689072,
0.13005772233009338,
-0.3869055509567261,
1.3696151971817017,
0.29272711277008057,
-0.893365204334259,
0.18775928020477295,
-0.6096091866493225,
-0.29558420181274414,
-0.05207420885562897,
-0.14071500301361084,
-0.6401993036270142,
-0.20940105617046356,
0.20832668244838715,
0.3321133553981781,
-0.4644010663032532,
0.24336177110671997,
-0.07846308499574661,
-0.40765702724456787,
0.2116849720478058,
-0.22623635828495026,
0.8892598152160645,
-0.0361451581120491,
-0.47437894344329834,
0.20102299749851227,
-0.6995950937271118,
-0.029926495626568794,
0.45354241132736206,
-0.41620737314224243,
0.09671729058027267,
-0.1628810167312622,
0.03361831232905388,
0.12639878690242767,
0.3545219600200653,
-0.5718058347702026,
0.3794598877429962,
-0.5436819195747375,
0.46521827578544617,
0.8511698842048645,
-0.20321562886238098,
0.1988997608423233,
-0.5191893577575684,
0.40311795473098755,
-0.10396982729434967,
0.12723223865032196,
0.17039555311203003,
-0.8339197635650635,
-0.8574200868606567,
-0.2898321747779846,
0.12729331851005554,
0.6131967306137085,
-0.4015575349330902,
0.5783517956733704,
-0.02671726420521736,
-0.7241690158843994,
-0.6624468564987183,
0.22236093878746033,
0.48568978905677795,
0.5613245368003845,
0.5158302783966064,
-0.32098057866096497,
-0.21914301812648773,
-0.8467912673950195,
-0.2425222098827362,
-0.33143335580825806,
-0.07602725178003311,
0.18853740394115448,
0.7859381437301636,
-0.18017083406448364,
0.731709361076355,
-0.6776912212371826,
-0.14264607429504395,
-0.05920823663473129,
0.32692375779151917,
0.39768049120903015,
0.4866543412208557,
0.5606093406677246,
-0.2584516406059265,
-0.2797219455242157,
-0.12386053800582886,
-0.768202006816864,
-0.24318844079971313,
0.3024888038635254,
-0.2657695412635803,
0.29351621866226196,
0.12067722529172897,
-0.9428505897521973,
0.40369126200675964,
0.5767167806625366,
-0.4295309782028198,
0.7902569770812988,
-0.18624208867549896,
-0.04383888840675354,
-0.8331450819969177,
0.19952458143234253,
0.07719380408525467,
-0.11306672543287277,
-0.3107275366783142,
0.1339397132396698,
-0.05921783298254013,
0.15274366736412048,
-0.6402381658554077,
0.8404747247695923,
-0.5978042483329773,
-0.16898638010025024,
-0.2984684705734253,
0.3086674213409424,
-0.05026163160800934,
0.6045850515365601,
0.15289811789989471,
0.8540613651275635,
0.48690828680992126,
-0.4374992251396179,
0.5076260566711426,
0.3889595866203308,
-0.6325122117996216,
0.0782393366098404,
-0.963116466999054,
0.03217089921236038,
0.06845469772815704,
0.37434589862823486,
-0.9757656455039978,
-0.11437423527240753,
0.2886716425418854,
-0.3343636393547058,
0.26990512013435364,
0.01536573376506567,
-0.7098925709724426,
-0.47123628854751587,
-0.5031023025512695,
0.5251710414886475,
0.8823348879814148,
-0.5668481588363647,
0.16745685040950775,
0.262383371591568,
-0.09308810532093048,
-0.6081753969192505,
-0.5914762616157532,
-0.35396090149879456,
-0.2028510868549347,
-0.6596073508262634,
0.198566734790802,
-0.3768436908721924,
-0.07421305030584335,
-0.20600594580173492,
0.027573028579354286,
0.28979015350341797,
0.03175957873463631,
0.23739999532699585,
0.36559873819351196,
-0.133519247174263,
0.04115178436040878,
-0.13880886137485504,
-0.25648635625839233,
0.09362228214740753,
-0.09337586909532547,
0.7185022830963135,
-0.5646704435348511,
-0.24565382301807404,
-0.6594411730766296,
-0.14938390254974365,
0.24595242738723755,
-0.11563605070114136,
0.8538272380828857,
0.9177878499031067,
-0.071314737200737,
-0.018739260733127594,
-0.5128031969070435,
-0.2526159882545471,
-0.5570687055587769,
0.44110849499702454,
-0.2858874797821045,
-0.9228162169456482,
0.5504459738731384,
0.08723306655883789,
0.1104864850640297,
0.7453778982162476,
0.821204662322998,
0.08984977751970291,
0.9357056021690369,
0.4760753810405731,
-0.10100055485963821,
0.3672052025794983,
-0.5408608317375183,
-0.0545729398727417,
-0.9321177005767822,
-0.46809887886047363,
-0.3557460904121399,
-0.33812636137008667,
-0.891096293926239,
-0.49572187662124634,
0.21339932084083557,
0.2715642750263214,
-0.5961654782295227,
0.4116664528846741,
-0.7377893328666687,
0.2186383605003357,
0.4389120638370514,
-0.03661710023880005,
0.1961972415447235,
0.1264115422964096,
-0.2903757691383362,
-0.02266303449869156,
-0.6859439611434937,
-0.47507983446121216,
0.9890853762626648,
0.5812371373176575,
0.95542973279953,
0.09692797809839249,
0.46144580841064453,
-0.2264816015958786,
0.48392823338508606,
-0.8522738814353943,
0.6282395124435425,
0.14356204867362976,
-0.37522631883621216,
-0.09141694754362106,
-0.4573836624622345,
-0.9058850407600403,
0.2677171230316162,
-0.08289917558431625,
-0.7934504747390747,
-0.2528400719165802,
-0.09292321652173996,
-0.18749845027923584,
0.4011339247226715,
-0.5691787600517273,
0.7814369797706604,
-0.38796672224998474,
-0.4306856691837311,
0.00012066140334354714,
-0.7137964367866516,
0.49908217787742615,
0.05263728275895119,
0.12932713329792023,
-0.3664630055427551,
-0.10919031500816345,
1.0409631729125977,
-0.7071705460548401,
0.6518319845199585,
-0.1424315720796585,
-0.26820826530456543,
0.5282440781593323,
-0.044450730085372925,
0.4813881814479828,
0.0626247376203537,
-0.09196798503398895,
0.44847357273101807,
-0.17990577220916748,
-0.470114141702652,
-0.19437551498413086,
0.8997176885604858,
-1.3275694847106934,
-0.48810163140296936,
-0.7341260313987732,
-0.6368727684020996,
-0.009579402394592762,
0.05407680571079254,
0.35655397176742554,
0.3393285274505615,
-0.12907017767429352,
-0.001516177086159587,
0.4669256806373596,
-0.3588215112686157,
0.6535483598709106,
0.6404464244842529,
-0.32461151480674744,
-0.4650684595108032,
0.7742151618003845,
-0.009097332134842873,
0.1484009027481079,
0.2010209560394287,
0.3056504428386688,
-0.45939379930496216,
-0.46939367055892944,
-0.4905972480773926,
0.6614061594009399,
-0.4920514225959778,
-0.2863064110279083,
-0.6273363828659058,
-0.4288063943386078,
-0.36342358589172363,
0.10521695762872696,
-0.47238367795944214,
-0.41624706983566284,
-0.4619366228580475,
-0.0805666446685791,
0.7105993628501892,
0.8036436438560486,
0.05999543517827988,
0.5955877304077148,
-0.5109465718269348,
0.2276194840669632,
0.28466302156448364,
0.4969070255756378,
-0.19974467158317566,
-0.9500086307525635,
-0.09916108101606369,
0.05142819881439209,
-0.5694574117660522,
-0.5802313089370728,
0.4465528726577759,
0.13462626934051514,
0.5116609334945679,
0.25762560963630676,
-0.21586424112319946,
0.7810217142105103,
-0.47003886103630066,
0.8889505863189697,
0.27304571866989136,
-0.7944775819778442,
0.6476719379425049,
-0.2809831500053406,
0.2293824553489685,
0.2436830699443817,
0.35720840096473694,
-0.20724473893642426,
-0.35963764786720276,
-0.7345403432846069,
-0.81341552734375,
0.7833083868026733,
0.5513872504234314,
-0.271772563457489,
0.13009636104106903,
0.5129056572914124,
0.205111563205719,
0.25624698400497437,
-0.8564192056655884,
-0.319349467754364,
-0.33762162923812866,
-0.10817570239305496,
-0.2580884099006653,
-0.11896639317274094,
-0.1472417116165161,
-0.5252866744995117,
0.8647265434265137,
-0.1724003255367279,
0.32678544521331787,
0.08792676031589508,
-0.13216590881347656,
-0.1361027956008911,
-0.018115442246198654,
0.7304670214653015,
0.5979430079460144,
-0.46196430921554565,
-0.30668163299560547,
0.2830307185649872,
-0.604515016078949,
0.03442128747701645,
0.3527975082397461,
0.02903880923986435,
-0.07935675233602524,
0.433885395526886,
0.9927654266357422,
-0.02756616286933422,
-0.6232383251190186,
0.5630185008049011,
-0.14288145303726196,
-0.22984841465950012,
-0.20017100870609283,
0.07369863986968994,
0.12227454781532288,
0.20871934294700623,
0.17552170157432556,
-0.2864238917827606,
-0.17631685733795166,
-0.5119062662124634,
-0.014061340130865574,
0.4896732568740845,
-0.04275917261838913,
-0.4794231653213501,
0.7636525630950928,
0.013285634107887745,
-0.09073521196842194,
0.5734893083572388,
-0.1848410665988922,
-0.41553995013237,
0.675412118434906,
0.621155858039856,
0.5555298328399658,
-0.33960601687431335,
0.07278676331043243,
0.5323590636253357,
0.3066371977329254,
-0.3708767890930176,
0.31414029002189636,
0.15036608278751373,
-0.5506887435913086,
-0.3317701816558838,
-0.9568187594413757,
-0.30650192499160767,
0.318514347076416,
-0.6202200055122375,
0.44831666350364685,
-0.4320720434188843,
-0.1538948267698288,
-0.1960441768169403,
0.5183808207511902,
-0.7251643538475037,
0.17311249673366547,
-0.01340011227875948,
1.024704098701477,
-0.8692743182182312,
0.8378541469573975,
0.6680358052253723,
-0.4221020042896271,
-0.8111985921859741,
-0.33878564834594727,
-0.11605796217918396,
-1.2870864868164062,
0.597216010093689,
0.23182612657546997,
-0.11384128779172897,
-0.12617197632789612,
-0.6715399026870728,
-0.8402465581893921,
1.4493364095687866,
0.34288978576660156,
-0.6683670282363892,
0.12393782287836075,
0.08042284101247787,
0.6308785676956177,
-0.19720607995986938,
0.7141072154045105,
0.6909127235412598,
0.36444664001464844,
0.21316535770893097,
-1.196613073348999,
0.2062227725982666,
-0.2739662528038025,
-0.09133405238389969,
0.19499555230140686,
-1.3031822443008423,
1.1874425411224365,
-0.1377430260181427,
-0.052835673093795776,
0.34122124314308167,
0.7992976903915405,
0.6463209390640259,
0.043181926012039185,
0.2941294312477112,
0.9086777567863464,
0.8170754313468933,
-0.16112123429775238,
1.1259127855300903,
-0.38993942737579346,
0.8336238265037537,
0.9155250191688538,
-0.2753485441207886,
0.9061396718025208,
0.2876673638820648,
-0.32119566202163696,
0.6654863953590393,
0.7691414952278137,
-0.05945868790149689,
0.603351354598999,
0.37591618299484253,
-0.12383157014846802,
-0.09045228362083435,
0.04304555431008339,
-0.7724135518074036,
0.5311605930328369,
0.37123170495033264,
-0.07194347679615021,
-0.24330586194992065,
-0.18037304282188416,
0.16610035300254822,
-0.3181377053260803,
-0.07533741742372513,
0.6193069219589233,
0.2284080982208252,
-0.4754857122898102,
0.9423263669013977,
0.19270582497119904,
0.8680124878883362,
-0.6962987780570984,
0.18374329805374146,
-0.258052796125412,
0.16299903392791748,
-0.1202145516872406,
-0.9332143068313599,
-0.03573364019393921,
0.10413563996553421,
0.16761264204978943,
-0.2102390080690384,
0.6758230924606323,
-0.43799448013305664,
-0.5582984089851379,
0.44268089532852173,
0.486450731754303,
0.48995694518089294,
0.194788858294487,
-0.9145315885543823,
0.2386292964220047,
-0.2213211953639984,
-0.6278981566429138,
0.3951995074748993,
0.19533085823059082,
0.1187150850892067,
0.7717040181159973,
0.5672147870063782,
0.09954231977462769,
-0.06797010451555252,
0.06306077539920807,
1.0586566925048828,
-0.7550367116928101,
-0.4615553915500641,
-0.8197492361068726,
0.2682086229324341,
0.06989166885614395,
-0.5463708639144897,
0.7553654909133911,
0.7734774947166443,
0.6989930272102356,
0.2623441517353058,
0.656179666519165,
0.0407831110060215,
0.38933733105659485,
-0.622512698173523,
0.7454479932785034,
-0.5573158860206604,
0.3083827495574951,
-0.05126180127263069,
-0.9881123900413513,
-0.020316466689109802,
0.818490207195282,
-0.3010556101799011,
0.21155473589897156,
0.7954829335212708,
0.7520137429237366,
-0.04139642044901848,
-0.006654875818639994,
-0.1329413205385208,
0.501457691192627,
0.3793964385986328,
0.8182087540626526,
0.9419810771942139,
-0.7696893215179443,
0.5128938555717468,
-0.30129361152648926,
-0.40081432461738586,
-0.3141692578792572,
-0.8425321578979492,
-1.0871984958648682,
-0.1897859126329422,
-0.5389935374259949,
-0.5799095034599304,
0.0048558213748037815,
0.8276095390319824,
0.4795522093772888,
-0.7203586101531982,
-0.4744373857975006,
-0.03997694328427315,
-0.08526096493005753,
0.043539877980947495,
-0.25281503796577454,
0.6024751663208008,
-0.1332685351371765,
-0.6527230143547058,
0.28626716136932373,
0.0336746983230114,
0.23639433085918427,
-0.2664141356945038,
-0.17550675570964813,
-0.19494043290615082,
-0.17336340248584747,
0.5963028073310852,
0.30999892950057983,
-0.7191866636276245,
-0.40612706542015076,
-0.12459815293550491,
-0.27847686409950256,
0.21044228971004486,
0.38797250390052795,
-0.8630257844924927,
0.08432374149560928,
0.3908875286579132,
0.2639378309249878,
0.8712016344070435,
0.019570626318454742,
0.2137257307767868,
-0.667202353477478,
0.44403913617134094,
0.00510598486289382,
0.44109445810317993,
0.404066801071167,
-0.1352127641439438,
0.5208503603935242,
0.52670818567276,
-0.88531494140625,
-0.7436367869377136,
-0.009807323105633259,
-1.2612457275390625,
-0.20763905346393585,
1.4058148860931396,
-0.12614697217941284,
-0.46655014157295227,
0.3182428479194641,
-0.20400075614452362,
0.41724011301994324,
-0.44340717792510986,
0.6159598231315613,
0.5348654985427856,
-0.2845124900341034,
0.0814032331109047,
-0.7636106610298157,
0.4851893484592438,
0.3915196657180786,
-0.7679234743118286,
-0.21560126543045044,
0.24709327518939972,
0.789762556552887,
-0.08790759742259979,
0.6842445135116577,
0.014277486130595207,
-0.09086023271083832,
-0.12409090995788574,
0.11783847212791443,
-0.013017185963690281,
-0.05082850158214569,
-0.26198750734329224,
0.0310038011521101,
-0.10792243480682373,
-0.15279802680015564
] |
openbmb/VisCPM-Paint
|
openbmb
| 2023-07-26T06:49:40Z | 8,453 | 10 |
diffusers
|
[
"diffusers",
"pytorch",
"en",
"zh",
"diffusers:VisCPMPaintBeePipeline",
"region:us"
] | null | 2023-06-25T12:30:09Z |
---
language:
- en
- zh
---
<div align="center">
**VisCPM**
**Chinese-English bilingual multi-modal large model series based on CPM (Chinese Pretrained Models) basic model**
<p align="center">
<a href="https://github.com/OpenBMB/VisCPM">Github</a> •
<a href="https://huggingface.co/openbmb/VisCPM-Chat">VisCPM-Chat</a>
</p>
</div>
`VisCPM` is a family of open-source large multimodal models, which support multimodal conversational capabilities (`VisCPM-Chat` model) and text-to-image generation capabilities (`VisCPM-Paint` model) in both Chinese and English, achieving state-of-the-art peformance among Chinese open-source multimodal models. VisCPM is trained based on the large language model [CPM-Bee](https://github.com/OpenBMB/CPM-Bee) with 10B parameters, fusing visual encoder (Q-Former) and visual decoder (Diffusion-UNet) to support visual inputs and outputs. Thanks to the good bilingual capability of CPM-Bee, `VisCPM` can be pre-trained with English multimodal data only and well generalize to achieve promising Chinese multimodal capabilities.
- **👐 Open-source Usage**: VisCPM is free to be used for personal and research purposes. By open-sourcing the VisCPM model family, we hope to promote the development of the open-source community of large multimodal models and related research.
- **🌟 Image and text generation coverage**: VisCPM models provide relatively comprehensive support for image and text multimodal capabilities, covering both multimodal conversation (image-to-text generation) capabilities and text-to-image generation capabilities.
- **💫 Excellent bilingual performance**: Thanks to the excellent bilingual capability of the base language model CPM-Bee, VisCPM achieves outstanding results in both bilingual multimodal conversation and text-to-image generation.
## VisCPM-Paint
`VisCPM-Paint` supports bilingual text-to-image generation. The model uses `CPM-Bee` as the text encoder, `UNet` as the image decoder, and fuses vision and language models using the objective of diffusion model. During the training process, the parameters of the language model remain fixed. The visual decoder is initialized with the parameters of [Stable Diffusion 2.1](https://github.com/Stability-AI/stablediffusion), and it is fused with the language model by gradually unfreezing key bridging parameters. The model is trained on the [LAION 2B](https://laion.ai/) English text-image pair dataset.
Similar to `VisCPM-Chat`, we found that due to the bilingual capability of `CPM-Bee`, `VisCPM-Paint` can achieve good Chinese text-to-image generation by training only on English text-image pairs, surpassing the performance of Chinese open-source models. By incorporating an additional 20M cleaned native Chinese text-image pairs and 120M translated text-image pairs in Chinese, the model's Chinese text-to-image generation ability can be further improved. We sample 30,000 images from the standard image generation test set MSCOCO and calculated commonly used evaluation metrics FID (Fréchet Inception Distance) to assess the quality of generated images. Similarly, we provide two versions of the model, namely `VisCPM-Paint-balance` and `VisCPM-Paint-zhplus`. The former has a balanced ability in both English and Chinese, while the latter emphasizes Chinese proficiency. `VisCPM-Paint-balance` is trained only using English text-image pairs, while `VisCPM-Paint-zhplus` incorporates an additional 20M native Chinese text-image pairs and 120M translated text-image pairs in Chinese based on `VisCPM-Paint-balance`.
## How to Use
```python
#!/usr/bin/env python
# encoding: utf-8
from diffusers import DiffusionPipeline
from transformers import AutoModel
from transformers import AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained('openbmb/VisCPM-Paint', trust_remote_code=True)
text_encoder = AutoModel.from_pretrained('openbmb/VisCPM-Paint', trust_remote_code=True)
print('load pipeline')
pipeline = DiffusionPipeline.from_pretrained('openbmb/VisCPM-Paint', custom_pipeline="openbmb/VisCPM-Paint", text_encoder=text_encoder, tokenizer=tokenizer)
pipeline = pipeline.to('cuda')
prompt = "a photo of an astronaut riding a horse on mars"
image = pipeline(prompt).images[0]
image.save("astronaut_rides_horse.png")
```
## 📝 License
VisCPM is governed by the [GML License](https://github.com/OpenBMB/General-Model-License/blob/main/%E9%80%9A%E7%94%A8%E6%A8%A1%E5%9E%8B%E8%AE%B8%E5%8F%AF%E5%8D%8F%E8%AE%AE-%E6%9D%A5%E6%BA%90%E8%AF%B4%E6%98%8E-%E5%AE%A3%E4%BC%A0%E9%99%90%E5%88%B6-%E9%9D%9E%E5%95%86%E4%B8%9A%E5%8C%96.md), and permits individual and research usages. If you intend to utilize the model for commercial purposes, please reach out to [email protected] to negotiate commercial licensing.
The CPM-Bee base, governed by the [General Model License (GML)](https://github.com/OpenBMB/General-Model-License/blob/main/%E9%80%9A%E7%94%A8%E6%A8%A1%E5%9E%8B%E8%AE%B8%E5%8F%AF%E5%8D%8F%E8%AE%AE-%E6%9D%A5%E6%BA%90%E8%AF%B4%E6%98%8E-%E5%AE%A3%E4%BC%A0%E9%99%90%E5%88%B6-%E5%95%86%E4%B8%9A%E6%8E%88%E6%9D%83.md), permits commercial usage. If you intend to utilize the model for commercial purposes, please reach out to [email protected] to obtain the certificate of authorization.
|
[
-0.45099788904190063,
-0.6394994854927063,
0.3368241786956787,
0.44329047203063965,
-0.38236990571022034,
-0.1753125935792923,
-0.314491868019104,
-0.562014102935791,
-0.1728108823299408,
0.45591920614242554,
-0.4484206438064575,
-0.6296696066856384,
-0.6116731762886047,
-0.20535346865653992,
0.10587196052074432,
0.6023169755935669,
-0.09275186061859131,
0.16120781004428864,
-0.11340156942605972,
-0.0650726854801178,
-0.36943793296813965,
-0.4068071246147156,
-0.47974419593811035,
-0.05112528055906296,
0.3358646333217621,
0.2389955371618271,
0.750039279460907,
0.624361515045166,
0.40587007999420166,
0.2532069981098175,
-0.007921828888356686,
0.29341134428977966,
-0.47899121046066284,
-0.3332231342792511,
0.022570151835680008,
-0.3827230632305145,
-0.621036946773529,
0.1497197151184082,
0.4608891010284424,
0.35073238611221313,
-0.08815578371286392,
0.05833360552787781,
0.10318922251462936,
0.6069844365119934,
-0.7106364369392395,
0.5450628399848938,
-0.4952631890773773,
-0.04973540082573891,
-0.07535490393638611,
-0.21285994350910187,
-0.4824725091457367,
-0.34002771973609924,
0.06203406676650047,
-0.6965465545654297,
0.011327320709824562,
0.010409805923700333,
1.2520605325698853,
-0.07562045753002167,
-0.40800565481185913,
-0.06024821475148201,
-0.6339538097381592,
0.8002142906188965,
-0.8851158022880554,
0.14400313794612885,
0.18110854923725128,
0.33903419971466064,
0.02429109811782837,
-0.8005425333976746,
-0.6694493889808655,
-0.22973288595676422,
0.038719940930604935,
0.5455761551856995,
-0.18238447606563568,
-0.08792350441217422,
-0.013553455471992493,
0.30388012528419495,
-0.5255647897720337,
-0.04034820571541786,
-0.5868356823921204,
-0.27352669835090637,
0.5429995059967041,
0.2141755223274231,
0.43083876371383667,
-0.22528062760829926,
-0.7621984481811523,
-0.26552245020866394,
-0.6094219088554382,
0.3457605540752411,
0.23311421275138855,
0.23357252776622772,
-0.397032767534256,
0.584534764289856,
-0.03360765427350998,
0.6939733624458313,
-0.02577657252550125,
-0.12598128616809845,
0.4823629558086395,
-0.484116792678833,
-0.4594190716743469,
-0.36257290840148926,
1.129823923110962,
0.5879079103469849,
0.11137456446886063,
0.186833918094635,
-0.13953442871570587,
-0.11570701748132706,
-0.17326992750167847,
-1.0186489820480347,
-0.2437678575515747,
0.10513622313737869,
-0.7024940252304077,
-0.0749111995100975,
0.12416072934865952,
-0.6956148743629456,
0.0006209399434737861,
-0.34182682633399963,
0.5684340596199036,
-0.6781671047210693,
-0.5129727125167847,
0.21914276480674744,
-0.199683278799057,
0.5059894323348999,
0.3301890194416046,
-0.596579909324646,
-0.1306764930486679,
0.24411150813102722,
0.8765185475349426,
-0.24552489817142487,
-0.40902960300445557,
-0.03647231683135033,
0.2583117187023163,
-0.3218291103839874,
0.6786413192749023,
-0.3218197226524353,
-0.4745855927467346,
0.00908306147903204,
0.3446042835712433,
-0.27292898297309875,
-0.5777894258499146,
0.1356397420167923,
-0.5681475400924683,
0.5075322985649109,
-0.10944293439388275,
-0.29774630069732666,
-0.4524332582950592,
0.20536383986473083,
-0.39569512009620667,
0.7395222187042236,
0.1253744661808014,
-0.8174997568130493,
0.24159321188926697,
-0.6470416784286499,
-0.15959449112415314,
0.042237453162670135,
0.04911424219608307,
-0.5265759229660034,
-0.3937911093235016,
0.19727352261543274,
0.5099126696586609,
-0.32362762093544006,
0.17558063566684723,
-0.3795321583747864,
-0.03745696693658829,
0.05830063670873642,
-0.41756701469421387,
1.2648265361785889,
0.3499181568622589,
-0.29267385601997375,
0.32364916801452637,
-0.7237678170204163,
-0.0015602415660396218,
0.46444466710090637,
-0.549488365650177,
-0.032849039882421494,
-0.09458909183740616,
0.28117313981056213,
0.42951518297195435,
0.5876807570457458,
-0.47705283761024475,
-0.013699911534786224,
-0.4175310432910919,
0.259944885969162,
0.7784348726272583,
-0.026840222999453545,
0.425427109003067,
-0.44556811451911926,
0.6405094265937805,
0.33573952317237854,
0.401630699634552,
-0.438610702753067,
-0.7885550260543823,
-0.9480457305908203,
-0.5794405937194824,
0.03627488762140274,
0.7340661883354187,
-0.817858874797821,
0.5021256804466248,
-0.17029397189617157,
-0.7867666482925415,
-0.26016122102737427,
-0.04526910185813904,
0.4799340069293976,
0.6240686178207397,
0.43687358498573303,
-0.47078877687454224,
-0.2007111757993698,
-0.9257276058197021,
0.24250996112823486,
-0.11703382432460785,
-0.036432016640901566,
0.43415069580078125,
0.458237886428833,
-0.32010626792907715,
0.9680814743041992,
-0.5806764960289001,
-0.3587522804737091,
-0.21932443976402283,
0.06882446259260178,
0.09429387748241425,
0.5155144929885864,
0.9822561144828796,
-0.6896408796310425,
-0.8500471115112305,
-0.03768651932477951,
-0.6109891533851624,
-0.05030079931020737,
0.02281302958726883,
-0.4157920777797699,
0.5146248936653137,
0.298637717962265,
-0.5246070623397827,
0.4683353900909424,
0.7352085709571838,
-0.3273767828941345,
0.8469018340110779,
-0.4274827837944031,
0.16219070553779602,
-1.0864272117614746,
0.2597103714942932,
-0.08432446420192719,
-0.3412344753742218,
-0.33288803696632385,
0.0682482123374939,
0.20308731496334076,
-0.1512635350227356,
-0.854936957359314,
0.45699527859687805,
-0.6869813203811646,
0.36556848883628845,
-0.30873748660087585,
0.0702367052435875,
-0.010382749140262604,
0.7955208420753479,
0.27232202887535095,
0.4787796437740326,
1.0718084573745728,
-0.8004831075668335,
0.4187048077583313,
0.26198962330818176,
-0.30633753538131714,
0.3713340163230896,
-0.5483077168464661,
-0.03760834038257599,
-0.12869329750537872,
0.026735754683613777,
-1.267944574356079,
-0.007661252282559872,
0.5357285141944885,
-0.45395585894584656,
0.4125361442565918,
0.06224646046757698,
-0.5393088459968567,
-0.4397343695163727,
-0.3258207440376282,
0.220987007021904,
0.6743127703666687,
-0.5182031989097595,
0.5730423331260681,
0.32576045393943787,
-0.0639067143201828,
-0.43778446316719055,
-0.8435279726982117,
-0.10595040023326874,
0.002070732181891799,
-0.9373184442520142,
0.20931650698184967,
-0.3358478546142578,
0.2911878526210785,
0.05386059358716011,
0.33619609475135803,
-0.10529821366071701,
-0.2243766486644745,
0.24462495744228363,
0.6854692101478577,
-0.3088749349117279,
-0.28976455330848694,
-0.10191646963357925,
-0.10746417939662933,
0.068425752222538,
-0.06285188347101212,
0.6965646147727966,
-0.026497282087802887,
-0.40105727314949036,
-0.44062507152557373,
0.05165717005729675,
0.564579963684082,
-0.4032916724681854,
0.8731552958488464,
0.7027202844619751,
-0.1705181747674942,
0.037352174520492554,
-0.3276722729206085,
0.07658003270626068,
-0.5075424909591675,
0.45000046491622925,
-0.1466597616672516,
-0.5312331914901733,
0.5914735794067383,
0.12942913174629211,
0.22434787452220917,
0.6495062112808228,
0.918592631816864,
0.11945116519927979,
1.054848313331604,
0.6617059111595154,
0.12634436786174774,
0.5981075763702393,
-0.5678778886795044,
-0.11160443723201752,
-0.7404394149780273,
-0.3780878782272339,
-0.13959036767482758,
-0.20098724961280823,
-0.41688328981399536,
-0.7224640846252441,
0.29600998759269714,
-0.12047351896762848,
-0.383750319480896,
0.4165937304496765,
-0.6084174513816833,
0.11901067942380905,
0.6476857662200928,
0.22834530472755432,
0.14525248110294342,
0.044225722551345825,
-0.3965108096599579,
-0.07917963713407516,
-0.6596121788024902,
-0.5721392631530762,
1.051473617553711,
0.3394572138786316,
0.6870617866516113,
0.058925140649080276,
0.2476893812417984,
-0.19983746111392975,
0.3725334107875824,
-0.547333300113678,
0.6873993277549744,
-0.06762897223234177,
-0.7652251720428467,
-0.08358611911535263,
-0.2942984104156494,
-1.0469748973846436,
0.43209758400917053,
-0.22846151888370514,
-0.5046796202659607,
0.41384944319725037,
0.13441260159015656,
-0.03424394130706787,
0.5387644171714783,
-0.795539140701294,
0.9629533290863037,
-0.3746820092201233,
-0.32517579197883606,
-0.095435231924057,
-0.7551184892654419,
0.6304050087928772,
-0.037387415766716,
0.2263382524251938,
-0.16667312383651733,
-0.18225941061973572,
0.5519083142280579,
-0.5131155252456665,
0.8639869093894958,
-0.3684970438480377,
-0.12461139261722565,
0.5221207141876221,
0.07814092189073563,
0.14291276037693024,
-0.14331303536891937,
0.1436081975698471,
0.409512460231781,
-0.01700657792389393,
-0.31584498286247253,
-0.07285551726818085,
0.534571647644043,
-0.9044762253761292,
-0.40308377146720886,
-0.43116647005081177,
-0.5257918238639832,
0.025772597640752792,
0.42746588587760925,
0.529457151889801,
0.15599586069583893,
-0.018834350630640984,
0.20004263520240784,
0.416461706161499,
-0.8349453210830688,
0.5975676774978638,
0.715944766998291,
-0.4128418564796448,
-0.5852278470993042,
0.9877315759658813,
0.05685634911060333,
0.7109727263450623,
0.2781883478164673,
0.17987345159053802,
-0.22537344694137573,
-0.3548525273799896,
-0.44072848558425903,
0.3219286799430847,
-0.7539801597595215,
-0.23593951761722565,
-0.5954038500785828,
-0.3548769950866699,
-0.47850075364112854,
0.028359195217490196,
-0.4150348901748657,
-0.17304174602031708,
-0.7036397457122803,
0.373235821723938,
0.15982891619205475,
0.2360948920249939,
-0.20640207827091217,
0.3207143247127533,
-0.704487681388855,
0.5218217968940735,
0.29783764481544495,
0.3142693042755127,
0.1574239432811737,
-0.6662726998329163,
-0.2996981143951416,
0.30337411165237427,
-0.799098014831543,
-0.8380812406539917,
0.6927292346954346,
0.08127930760383606,
0.5752196907997131,
0.6086087822914124,
-0.09445216506719589,
0.6301449537277222,
-0.5292055606842041,
0.9827105402946472,
0.5316942930221558,
-0.749760627746582,
0.4885960817337036,
-0.5442299246788025,
0.3206560015678406,
0.053223684430122375,
0.3896621763706207,
-0.4174686372280121,
-0.5244502425193787,
-0.5164757966995239,
-1.0000368356704712,
0.9411405324935913,
0.22031070291996002,
0.08308175951242447,
0.12595711648464203,
0.0011507997987791896,
-0.11015352606773376,
0.18889856338500977,
-1.0439711809158325,
-0.5607162117958069,
-0.442857027053833,
-0.08730550110340118,
-0.02953428402543068,
-0.19308948516845703,
0.0032121771946549416,
-0.47600167989730835,
0.9058995842933655,
0.07771573215723038,
0.4458094835281372,
0.2016264796257019,
-0.12663282454013824,
-0.1632455438375473,
-0.028858695179224014,
0.5273730754852295,
0.7368754744529724,
-0.25208157300949097,
-0.1891615390777588,
-0.16705279052257538,
-0.4316408038139343,
-0.0442599393427372,
0.15924042463302612,
-0.2258150279521942,
-0.08948798477649689,
0.11672946065664291,
0.920924723148346,
-0.14925384521484375,
-0.7039155960083008,
0.801926851272583,
-0.024639831855893135,
-0.43375733494758606,
-0.3232477009296417,
0.14991188049316406,
0.4391736686229706,
0.2503131031990051,
0.292997807264328,
0.12024091184139252,
-0.09816562384366989,
-0.47416794300079346,
-0.12678183615207672,
0.6429646611213684,
-0.23257459700107574,
-0.17648857831954956,
1.1284641027450562,
0.09527900815010071,
0.027144353836774826,
0.41231679916381836,
-0.2736710011959076,
-0.5166271924972534,
0.8920456767082214,
0.6001220345497131,
0.6926806569099426,
-0.10838443785905838,
0.1440853327512741,
0.5629442930221558,
0.4260179102420807,
-0.03597899153828621,
0.34261468052864075,
0.2567709982395172,
-0.7298331260681152,
-0.23468244075775146,
-0.4211989641189575,
-0.3495122492313385,
0.13636627793312073,
-0.3831343948841095,
0.6341784596443176,
-0.4410187900066376,
-0.17643822729587555,
-0.2893325090408325,
-0.2093205749988556,
-0.6597737073898315,
0.16824689507484436,
0.5148149728775024,
0.8906960487365723,
-0.6211376190185547,
0.7516884207725525,
0.6481431722640991,
-0.7362006902694702,
-0.8038678169250488,
-0.23427046835422516,
-0.10067036002874374,
-0.8425678014755249,
0.7237364649772644,
0.20642492175102234,
-0.06996025890111923,
-0.047538865357637405,
-0.8437315225601196,
-0.7577898502349854,
1.3228745460510254,
0.5336530208587646,
-0.4276260435581207,
0.11391850560903549,
0.20464730262756348,
0.36889272928237915,
-0.4250558912754059,
0.31416597962379456,
0.06527245789766312,
0.656643271446228,
0.1544322818517685,
-1.0112521648406982,
0.09818650782108307,
-0.23331092298030853,
0.11557304114103317,
-0.33709585666656494,
-1.056307077407837,
1.1158270835876465,
-0.27732059359550476,
-0.4425394535064697,
0.21488776803016663,
0.6935253143310547,
0.34849265217781067,
0.19961512088775635,
0.5320988893508911,
0.40773361921310425,
0.38390877842903137,
-0.06171159818768501,
0.9548020958900452,
-0.4884297549724579,
0.536358118057251,
0.7752304673194885,
0.01950720325112343,
0.7181127667427063,
0.07892394810914993,
-0.13719233870506287,
0.6203301548957825,
0.6886572241783142,
-0.3276005983352661,
0.6247206926345825,
-0.027340039610862732,
-0.03396255150437355,
-0.1989556849002838,
0.16318942606449127,
-0.4823973774909973,
0.20752142369747162,
0.1531210094690323,
-0.5093498826026917,
-0.1470680981874466,
0.24420906603336334,
-0.06768101453781128,
-0.12053481489419937,
-0.21058343350887299,
0.40323948860168457,
0.018871763721108437,
-0.3511122167110443,
0.8283705711364746,
0.24252258241176605,
1.057382583618164,
-0.7736878991127014,
0.22676759958267212,
0.07925135642290115,
0.27338799834251404,
-0.06530632078647614,
-0.741205632686615,
0.026675760746002197,
-0.24203713238239288,
-0.12068304419517517,
-0.3244733214378357,
0.612913191318512,
-0.5521082878112793,
-0.5609458088874817,
0.5088409185409546,
0.4022485315799713,
0.07245008647441864,
-0.04506296664476395,
-0.9341086745262146,
-0.07076995074748993,
0.12619727849960327,
-0.4892779588699341,
0.10743189603090286,
0.40167030692100525,
0.24640141427516937,
0.6930146217346191,
0.6315195560455322,
0.26925230026245117,
0.29054364562034607,
-0.10195627063512802,
0.8771361708641052,
-0.5487141013145447,
-0.41023877263069153,
-0.8054129481315613,
0.7142698168754578,
0.10298804938793182,
-0.1774129867553711,
0.7581865191459656,
0.8262622952461243,
0.8699923753738403,
-0.5043138861656189,
0.8418334722518921,
-0.14644943177700043,
0.32468563318252563,
-0.46468427777290344,
1.010850429534912,
-0.8849849104881287,
-0.058489684015512466,
-0.3865717351436615,
-0.8222357034683228,
-0.28411900997161865,
0.6185117363929749,
-0.17438305914402008,
0.1778118759393692,
0.6275516152381897,
0.9788072109222412,
-0.28308385610580444,
-0.3857985734939575,
0.2644028067588806,
0.2043784111738205,
0.4801933765411377,
0.8001094460487366,
0.7377395629882812,
-0.5041125416755676,
0.8299865126609802,
-0.42410629987716675,
-0.2983439862728119,
-0.08668074011802673,
-0.9201308488845825,
-0.9463311433792114,
-0.5648692846298218,
-0.37503188848495483,
-0.3226092755794525,
-0.4451957941055298,
0.6365056037902832,
0.883938193321228,
-0.639302134513855,
-0.35347071290016174,
0.12132484465837479,
-0.1588006317615509,
-0.20463649928569794,
-0.32086747884750366,
0.46444037556648254,
-0.20073282718658447,
-1.083791971206665,
-0.0032986588776111603,
0.25736984610557556,
0.37344443798065186,
-0.4064357578754425,
-0.23138253390789032,
-0.34255263209342957,
0.12833517789840698,
0.6042690873146057,
0.33176320791244507,
-0.5946077108383179,
0.02952738106250763,
0.035027533769607544,
-0.3641718924045563,
0.32263606786727905,
0.37382078170776367,
-0.5562149286270142,
0.6321541666984558,
0.6143214702606201,
0.23739473521709442,
0.5647711753845215,
-0.16214518249034882,
0.39125609397888184,
-0.5034302473068237,
0.4823400676250458,
0.027023468166589737,
0.5379055142402649,
0.33489301800727844,
-0.16987785696983337,
0.2887156307697296,
0.5074642300605774,
-0.5596300959587097,
-0.515584409236908,
0.031056491658091545,
-1.3167341947555542,
-0.48324695229530334,
1.3180694580078125,
-0.18557076156139374,
-0.3546701967716217,
0.14794617891311646,
-0.5667252540588379,
0.4019519090652466,
-0.2686432898044586,
0.45814937353134155,
0.6654254794120789,
0.05968508496880531,
-0.23719871044158936,
-0.4861031174659729,
0.15298068523406982,
0.07720500230789185,
-0.7757362127304077,
-0.047271519899368286,
0.690229058265686,
0.5839968919754028,
0.2598237991333008,
0.7906792163848877,
-0.33745887875556946,
0.27180859446525574,
-0.33142024278640747,
0.5226951241493225,
-0.3154944181442261,
0.03830087184906006,
-0.10814141482114792,
0.048107583075761795,
-0.10440342873334885,
-0.48974934220314026
] |
lorahub/flan_t5_large-super_glue_wic
|
lorahub
| 2023-07-24T09:52:40Z | 8,442 | 0 |
peft
|
[
"peft",
"has_space",
"region:us"
] | null | 2023-07-24T09:52:31Z |
---
library_name: peft
---
|
[
-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
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.